@spotlightjs/spotlight 4.11.3 → 4.11.5

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 (191) hide show
  1. package/dist/_virtual/ajv.js +6 -3
  2. package/dist/_virtual/ajv2.js +13 -0
  3. package/dist/_virtual/index.js +6 -3
  4. package/dist/_virtual/index10.js +3 -3
  5. package/dist/_virtual/index11.js +3 -3
  6. package/dist/_virtual/index12.js +13 -0
  7. package/dist/_virtual/index2.js +3 -3
  8. package/dist/_virtual/index4.js +3 -3
  9. package/dist/_virtual/index5.js +3 -3
  10. package/dist/_virtual/index6.js +3 -3
  11. package/dist/_virtual/index7.js +3 -3
  12. package/dist/_virtual/index8.js +3 -3
  13. package/dist/node_modules/.pnpm/@modelcontextprotocol_sdk@1.27.1_zod@4.1.13/node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.js +1 -1
  14. package/dist/node_modules/.pnpm/@modelcontextprotocol_sdk@1.27.1_zod@4.1.13/node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.js.map +1 -1
  15. package/dist/node_modules/.pnpm/@modelcontextprotocol_sdk@1.27.1_zod@4.1.13/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.js +3 -3
  16. package/dist/node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.18.0/node_modules/ajv-formats/dist/formats.js +203 -194
  17. package/dist/node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.18.0/node_modules/ajv-formats/dist/formats.js.map +1 -1
  18. package/dist/node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.18.0/node_modules/ajv-formats/dist/index.js +47 -47
  19. package/dist/node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.18.0/node_modules/ajv-formats/dist/index.js.map +1 -1
  20. package/dist/node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.18.0/node_modules/ajv-formats/dist/limit.js +77 -69
  21. package/dist/node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.18.0/node_modules/ajv-formats/dist/limit.js.map +1 -1
  22. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/ajv.js +80 -85
  23. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/ajv.js.map +1 -1
  24. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/code.js +145 -136
  25. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/code.js.map +1 -1
  26. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/index.js +692 -685
  27. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/index.js.map +1 -1
  28. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/scope.js +143 -135
  29. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/scope.js.map +1 -1
  30. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/errors.js +122 -116
  31. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/errors.js.map +1 -1
  32. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/index.js +218 -218
  33. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/index.js.map +1 -1
  34. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/names.js +43 -35
  35. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/names.js.map +1 -1
  36. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/ref_error.js +19 -11
  37. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/ref_error.js.map +1 -1
  38. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/resolve.js +149 -144
  39. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/resolve.js.map +1 -1
  40. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/rules.js +31 -25
  41. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/rules.js.map +1 -1
  42. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/util.js +164 -160
  43. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/util.js.map +1 -1
  44. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/applicability.js +23 -17
  45. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/applicability.js.map +1 -1
  46. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/boolSchema.js +52 -49
  47. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/boolSchema.js.map +1 -1
  48. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/dataType.js +174 -173
  49. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/dataType.js.map +1 -1
  50. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/defaults.js +36 -32
  51. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/defaults.js.map +1 -1
  52. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/index.js +473 -478
  53. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/index.js.map +1 -1
  54. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/keyword.js +113 -111
  55. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/keyword.js.map +1 -1
  56. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/subschema.js +81 -77
  57. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/subschema.js.map +1 -1
  58. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/core.js +573 -574
  59. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/core.js.map +1 -1
  60. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/refs/data.json.js +3 -17
  61. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/refs/data.json.js.map +1 -1
  62. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/refs/json-schema-draft-07.json.js +4 -236
  63. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/refs/json-schema-draft-07.json.js.map +1 -1
  64. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/equal.js +16 -7
  65. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/equal.js.map +1 -1
  66. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/ucs2length.js +27 -18
  67. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/ucs2length.js.map +1 -1
  68. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/uri.js +16 -7
  69. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/uri.js.map +1 -1
  70. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/validation_error.js +17 -8
  71. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/validation_error.js.map +1 -1
  72. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +55 -48
  73. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js.map +1 -1
  74. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +104 -99
  75. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js.map +1 -1
  76. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/allOf.js +30 -22
  77. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/allOf.js.map +1 -1
  78. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +20 -12
  79. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/anyOf.js.map +1 -1
  80. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/contains.js +95 -88
  81. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/contains.js.map +1 -1
  82. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +94 -88
  83. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/dependencies.js.map +1 -1
  84. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/if.js +71 -64
  85. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/if.js.map +1 -1
  86. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/index.js +66 -73
  87. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/index.js.map +1 -1
  88. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/items.js +60 -54
  89. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/items.js.map +1 -1
  90. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/items2020.js +41 -36
  91. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/items2020.js.map +1 -1
  92. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/not.js +34 -26
  93. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/not.js.map +1 -1
  94. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +60 -53
  95. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/oneOf.js.map +1 -1
  96. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +73 -67
  97. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js.map +1 -1
  98. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +20 -12
  99. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js.map +1 -1
  100. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/properties.js +62 -57
  101. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/properties.js.map +1 -1
  102. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +46 -39
  103. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js.map +1 -1
  104. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +21 -13
  105. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/thenElse.js.map +1 -1
  106. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/code.js +132 -129
  107. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/code.js.map +1 -1
  108. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/core/id.js +17 -8
  109. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/core/id.js.map +1 -1
  110. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/core/index.js +27 -20
  111. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/core/index.js.map +1 -1
  112. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/core/ref.js +121 -118
  113. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/core/ref.js.map +1 -1
  114. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/discriminator/index.js +103 -99
  115. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/discriminator/index.js.map +1 -1
  116. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/discriminator/types.js +15 -9
  117. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/discriminator/types.js.map +1 -1
  118. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/draft7.js +30 -26
  119. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/draft7.js.map +1 -1
  120. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/format/format.js +84 -76
  121. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/format/format.js.map +1 -1
  122. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/format/index.js +16 -8
  123. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/format/index.js.map +1 -1
  124. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/metadata.js +24 -18
  125. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/metadata.js.map +1 -1
  126. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/const.js +33 -27
  127. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/const.js.map +1 -1
  128. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/enum.js +53 -47
  129. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/enum.js.map +1 -1
  130. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/index.js +52 -53
  131. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/index.js.map +1 -1
  132. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitItems.js +32 -24
  133. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitItems.js.map +1 -1
  134. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitLength.js +37 -31
  135. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitLength.js.map +1 -1
  136. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +35 -27
  137. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitNumber.js.map +1 -1
  138. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +32 -24
  139. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitProperties.js.map +1 -1
  140. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +31 -23
  141. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/multipleOf.js.map +1 -1
  142. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/pattern.js +41 -35
  143. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/pattern.js.map +1 -1
  144. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/required.js +80 -74
  145. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/required.js.map +1 -1
  146. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +71 -66
  147. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js.map +1 -1
  148. package/dist/node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js +34 -27
  149. package/dist/node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js.map +1 -1
  150. package/dist/node_modules/.pnpm/fast-uri@3.1.2/node_modules/fast-uri/index.js +300 -0
  151. package/dist/node_modules/.pnpm/fast-uri@3.1.2/node_modules/fast-uri/index.js.map +1 -0
  152. package/dist/node_modules/.pnpm/fast-uri@3.1.2/node_modules/fast-uri/lib/schemes.js +223 -0
  153. package/dist/node_modules/.pnpm/{fast-uri@3.1.0 → fast-uri@3.1.2}/node_modules/fast-uri/lib/schemes.js.map +1 -1
  154. package/dist/node_modules/.pnpm/fast-uri@3.1.2/node_modules/fast-uri/lib/utils.js +325 -0
  155. package/dist/node_modules/.pnpm/fast-uri@3.1.2/node_modules/fast-uri/lib/utils.js.map +1 -0
  156. package/dist/node_modules/.pnpm/hono@4.12.18/node_modules/hono/dist/helper/streaming/sse.js.map +1 -0
  157. package/dist/node_modules/.pnpm/{hono@4.12.8 → hono@4.12.18}/node_modules/hono/dist/middleware/cors/index.js +8 -8
  158. package/dist/node_modules/.pnpm/hono@4.12.18/node_modules/hono/dist/middleware/cors/index.js.map +1 -0
  159. package/dist/node_modules/.pnpm/hono@4.12.18/node_modules/hono/dist/utils/html.js.map +1 -0
  160. package/dist/node_modules/.pnpm/hono@4.12.18/node_modules/hono/dist/utils/stream.js.map +1 -0
  161. package/dist/node_modules/.pnpm/json-schema-traverse@1.0.0/node_modules/json-schema-traverse/index.js +83 -78
  162. package/dist/node_modules/.pnpm/json-schema-traverse@1.0.0/node_modules/json-schema-traverse/index.js.map +1 -1
  163. package/dist/node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.1.13/node_modules/zod-to-json-schema/dist/esm/Options.js +1 -1
  164. package/dist/node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.1.13/node_modules/zod-to-json-schema/dist/esm/Options.js.map +1 -1
  165. package/dist/node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/util.js +1 -1
  166. package/dist/node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/util.js.map +1 -1
  167. package/dist/sentry-config.js +2 -2
  168. package/dist/server/cli/run.js +2 -2
  169. package/dist/server/cli.js +2 -2
  170. package/dist/server/main.js +2 -2
  171. package/dist/server/mcp/mcp.js +2 -2
  172. package/dist/server/routes/stream/streaming.js +2 -2
  173. package/dist/ui/assets/index.js +61 -70
  174. package/dist/ui/assets/index2.js +1 -1
  175. package/dist/ui/assets/instrumentation.js +18 -18
  176. package/dist/ui/assets/main.css +1 -1
  177. package/dist/ui/assets/main.js +1 -1
  178. package/dist/ui/assets/serverTimingMeta.js +23 -30
  179. package/package.json +9 -9
  180. package/dist/node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/index.js +0 -264
  181. package/dist/node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/index.js.map +0 -1
  182. package/dist/node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/lib/schemes.js +0 -197
  183. package/dist/node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/lib/utils.js +0 -261
  184. package/dist/node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/lib/utils.js.map +0 -1
  185. package/dist/node_modules/.pnpm/hono@4.12.8/node_modules/hono/dist/helper/streaming/sse.js.map +0 -1
  186. package/dist/node_modules/.pnpm/hono@4.12.8/node_modules/hono/dist/middleware/cors/index.js.map +0 -1
  187. package/dist/node_modules/.pnpm/hono@4.12.8/node_modules/hono/dist/utils/html.js.map +0 -1
  188. package/dist/node_modules/.pnpm/hono@4.12.8/node_modules/hono/dist/utils/stream.js.map +0 -1
  189. /package/dist/node_modules/.pnpm/{hono@4.12.8 → hono@4.12.18}/node_modules/hono/dist/helper/streaming/sse.js +0 -0
  190. /package/dist/node_modules/.pnpm/{hono@4.12.8 → hono@4.12.18}/node_modules/hono/dist/utils/html.js +0 -0
  191. /package/dist/node_modules/.pnpm/{hono@4.12.8 → hono@4.12.18}/node_modules/hono/dist/utils/stream.js +0 -0
@@ -0,0 +1,325 @@
1
+ ;
2
+ !(function() {
3
+ try {
4
+ var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "8de95b25-6412-4afe-bf60-bc8c1bf881f8", e._sentryDebugIdIdentifier = "sentry-dbid-8de95b25-6412-4afe-bf60-bc8c1bf881f8");
6
+ } catch (e2) {
7
+ }
8
+ })();
9
+ var utils;
10
+ var hasRequiredUtils;
11
+ function requireUtils() {
12
+ if (hasRequiredUtils) return utils;
13
+ hasRequiredUtils = 1;
14
+ const isUUID = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu);
15
+ const isIPv4 = RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);
16
+ const isHexPair = RegExp.prototype.test.bind(/^[\da-f]{2}$/iu);
17
+ const isUnreserved = RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu);
18
+ const isPathCharacter = RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);
19
+ function stringArrayToHexStripped(input) {
20
+ let acc = "";
21
+ let code = 0;
22
+ let i = 0;
23
+ for (i = 0; i < input.length; i++) {
24
+ code = input[i].charCodeAt(0);
25
+ if (code === 48) {
26
+ continue;
27
+ }
28
+ if (!(code >= 48 && code <= 57 || code >= 65 && code <= 70 || code >= 97 && code <= 102)) {
29
+ return "";
30
+ }
31
+ acc += input[i];
32
+ break;
33
+ }
34
+ for (i += 1; i < input.length; i++) {
35
+ code = input[i].charCodeAt(0);
36
+ if (!(code >= 48 && code <= 57 || code >= 65 && code <= 70 || code >= 97 && code <= 102)) {
37
+ return "";
38
+ }
39
+ acc += input[i];
40
+ }
41
+ return acc;
42
+ }
43
+ const nonSimpleDomain = RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);
44
+ function consumeIsZone(buffer) {
45
+ buffer.length = 0;
46
+ return true;
47
+ }
48
+ function consumeHextets(buffer, address, output) {
49
+ if (buffer.length) {
50
+ const hex = stringArrayToHexStripped(buffer);
51
+ if (hex !== "") {
52
+ address.push(hex);
53
+ } else {
54
+ output.error = true;
55
+ return false;
56
+ }
57
+ buffer.length = 0;
58
+ }
59
+ return true;
60
+ }
61
+ function getIPV6(input) {
62
+ let tokenCount = 0;
63
+ const output = { error: false, address: "", zone: "" };
64
+ const address = [];
65
+ const buffer = [];
66
+ let endipv6Encountered = false;
67
+ let endIpv6 = false;
68
+ let consume = consumeHextets;
69
+ for (let i = 0; i < input.length; i++) {
70
+ const cursor = input[i];
71
+ if (cursor === "[" || cursor === "]") {
72
+ continue;
73
+ }
74
+ if (cursor === ":") {
75
+ if (endipv6Encountered === true) {
76
+ endIpv6 = true;
77
+ }
78
+ if (!consume(buffer, address, output)) {
79
+ break;
80
+ }
81
+ if (++tokenCount > 7) {
82
+ output.error = true;
83
+ break;
84
+ }
85
+ if (i > 0 && input[i - 1] === ":") {
86
+ endipv6Encountered = true;
87
+ }
88
+ address.push(":");
89
+ continue;
90
+ } else if (cursor === "%") {
91
+ if (!consume(buffer, address, output)) {
92
+ break;
93
+ }
94
+ consume = consumeIsZone;
95
+ } else {
96
+ buffer.push(cursor);
97
+ continue;
98
+ }
99
+ }
100
+ if (buffer.length) {
101
+ if (consume === consumeIsZone) {
102
+ output.zone = buffer.join("");
103
+ } else if (endIpv6) {
104
+ address.push(buffer.join(""));
105
+ } else {
106
+ address.push(stringArrayToHexStripped(buffer));
107
+ }
108
+ }
109
+ output.address = address.join("");
110
+ return output;
111
+ }
112
+ function normalizeIPv6(host) {
113
+ if (findToken(host, ":") < 2) {
114
+ return { host, isIPV6: false };
115
+ }
116
+ const ipv6 = getIPV6(host);
117
+ if (!ipv6.error) {
118
+ let newHost = ipv6.address;
119
+ let escapedHost = ipv6.address;
120
+ if (ipv6.zone) {
121
+ newHost += "%" + ipv6.zone;
122
+ escapedHost += "%25" + ipv6.zone;
123
+ }
124
+ return { host: newHost, isIPV6: true, escapedHost };
125
+ } else {
126
+ return { host, isIPV6: false };
127
+ }
128
+ }
129
+ function findToken(str, token) {
130
+ let ind = 0;
131
+ for (let i = 0; i < str.length; i++) {
132
+ if (str[i] === token) ind++;
133
+ }
134
+ return ind;
135
+ }
136
+ function removeDotSegments(path) {
137
+ let input = path;
138
+ const output = [];
139
+ let nextSlash = -1;
140
+ let len = 0;
141
+ while (len = input.length) {
142
+ if (len === 1) {
143
+ if (input === ".") {
144
+ break;
145
+ } else if (input === "/") {
146
+ output.push("/");
147
+ break;
148
+ } else {
149
+ output.push(input);
150
+ break;
151
+ }
152
+ } else if (len === 2) {
153
+ if (input[0] === ".") {
154
+ if (input[1] === ".") {
155
+ break;
156
+ } else if (input[1] === "/") {
157
+ input = input.slice(2);
158
+ continue;
159
+ }
160
+ } else if (input[0] === "/") {
161
+ if (input[1] === "." || input[1] === "/") {
162
+ output.push("/");
163
+ break;
164
+ }
165
+ }
166
+ } else if (len === 3) {
167
+ if (input === "/..") {
168
+ if (output.length !== 0) {
169
+ output.pop();
170
+ }
171
+ output.push("/");
172
+ break;
173
+ }
174
+ }
175
+ if (input[0] === ".") {
176
+ if (input[1] === ".") {
177
+ if (input[2] === "/") {
178
+ input = input.slice(3);
179
+ continue;
180
+ }
181
+ } else if (input[1] === "/") {
182
+ input = input.slice(2);
183
+ continue;
184
+ }
185
+ } else if (input[0] === "/") {
186
+ if (input[1] === ".") {
187
+ if (input[2] === "/") {
188
+ input = input.slice(2);
189
+ continue;
190
+ } else if (input[2] === ".") {
191
+ if (input[3] === "/") {
192
+ input = input.slice(3);
193
+ if (output.length !== 0) {
194
+ output.pop();
195
+ }
196
+ continue;
197
+ }
198
+ }
199
+ }
200
+ }
201
+ if ((nextSlash = input.indexOf("/", 1)) === -1) {
202
+ output.push(input);
203
+ break;
204
+ } else {
205
+ output.push(input.slice(0, nextSlash));
206
+ input = input.slice(nextSlash);
207
+ }
208
+ }
209
+ return output.join("");
210
+ }
211
+ const HOST_DELIMS = { "@": "%40", "/": "%2F", "?": "%3F", "#": "%23", ":": "%3A" };
212
+ const HOST_DELIM_RE = /[@/?#:]/g;
213
+ const HOST_DELIM_NO_COLON_RE = /[@/?#]/g;
214
+ function reescapeHostDelimiters(host, isIP) {
215
+ const re = isIP ? HOST_DELIM_NO_COLON_RE : HOST_DELIM_RE;
216
+ re.lastIndex = 0;
217
+ return host.replace(re, (ch) => HOST_DELIMS[ch]);
218
+ }
219
+ function normalizePercentEncoding(input, decodeUnreserved = false) {
220
+ if (input.indexOf("%") === -1) {
221
+ return input;
222
+ }
223
+ let output = "";
224
+ for (let i = 0; i < input.length; i++) {
225
+ if (input[i] === "%" && i + 2 < input.length) {
226
+ const hex = input.slice(i + 1, i + 3);
227
+ if (isHexPair(hex)) {
228
+ const normalizedHex = hex.toUpperCase();
229
+ const decoded = String.fromCharCode(parseInt(normalizedHex, 16));
230
+ if (decodeUnreserved && isUnreserved(decoded)) {
231
+ output += decoded;
232
+ } else {
233
+ output += "%" + normalizedHex;
234
+ }
235
+ i += 2;
236
+ continue;
237
+ }
238
+ }
239
+ output += input[i];
240
+ }
241
+ return output;
242
+ }
243
+ function normalizePathEncoding(input) {
244
+ let output = "";
245
+ for (let i = 0; i < input.length; i++) {
246
+ if (input[i] === "%" && i + 2 < input.length) {
247
+ const hex = input.slice(i + 1, i + 3);
248
+ if (isHexPair(hex)) {
249
+ const normalizedHex = hex.toUpperCase();
250
+ const decoded = String.fromCharCode(parseInt(normalizedHex, 16));
251
+ if (decoded !== "." && isUnreserved(decoded)) {
252
+ output += decoded;
253
+ } else {
254
+ output += "%" + normalizedHex;
255
+ }
256
+ i += 2;
257
+ continue;
258
+ }
259
+ }
260
+ if (isPathCharacter(input[i])) {
261
+ output += input[i];
262
+ } else {
263
+ output += escape(input[i]);
264
+ }
265
+ }
266
+ return output;
267
+ }
268
+ function escapePreservingEscapes(input) {
269
+ let output = "";
270
+ for (let i = 0; i < input.length; i++) {
271
+ if (input[i] === "%" && i + 2 < input.length) {
272
+ const hex = input.slice(i + 1, i + 3);
273
+ if (isHexPair(hex)) {
274
+ output += "%" + hex.toUpperCase();
275
+ i += 2;
276
+ continue;
277
+ }
278
+ }
279
+ output += escape(input[i]);
280
+ }
281
+ return output;
282
+ }
283
+ function recomposeAuthority(component) {
284
+ const uriTokens = [];
285
+ if (component.userinfo !== void 0) {
286
+ uriTokens.push(component.userinfo);
287
+ uriTokens.push("@");
288
+ }
289
+ if (component.host !== void 0) {
290
+ let host = unescape(component.host);
291
+ if (!isIPv4(host)) {
292
+ const ipV6res = normalizeIPv6(host);
293
+ if (ipV6res.isIPV6 === true) {
294
+ host = `[${ipV6res.escapedHost}]`;
295
+ } else {
296
+ host = reescapeHostDelimiters(host, false);
297
+ }
298
+ }
299
+ uriTokens.push(host);
300
+ }
301
+ if (typeof component.port === "number" || typeof component.port === "string") {
302
+ uriTokens.push(":");
303
+ uriTokens.push(String(component.port));
304
+ }
305
+ return uriTokens.length ? uriTokens.join("") : void 0;
306
+ }
307
+ utils = {
308
+ nonSimpleDomain,
309
+ recomposeAuthority,
310
+ reescapeHostDelimiters,
311
+ normalizePercentEncoding,
312
+ normalizePathEncoding,
313
+ escapePreservingEscapes,
314
+ removeDotSegments,
315
+ isIPv4,
316
+ isUUID,
317
+ normalizeIPv6,
318
+ stringArrayToHexStripped
319
+ };
320
+ return utils;
321
+ }
322
+ export {
323
+ requireUtils as __require
324
+ };
325
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sources":["../../../../../../../../../node_modules/.pnpm/fast-uri@3.1.2/node_modules/fast-uri/lib/utils.js"],"sourcesContent":["'use strict'\n\n/** @type {(value: string) => boolean} */\nconst isUUID = RegExp.prototype.test.bind(/^[\\da-f]{8}-[\\da-f]{4}-[\\da-f]{4}-[\\da-f]{4}-[\\da-f]{12}$/iu)\n\n/** @type {(value: string) => boolean} */\nconst isIPv4 = RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\\d|1\\d{2}|[1-9]\\d|\\d)\\.){3}(?:25[0-5]|2[0-4]\\d|1\\d{2}|[1-9]\\d|\\d)$/u)\n\n/** @type {(value: string) => boolean} */\nconst isHexPair = RegExp.prototype.test.bind(/^[\\da-f]{2}$/iu)\n\n/** @type {(value: string) => boolean} */\nconst isUnreserved = RegExp.prototype.test.bind(/^[\\da-z\\-._~]$/iu)\n\n/** @type {(value: string) => boolean} */\nconst isPathCharacter = RegExp.prototype.test.bind(/^[\\da-z\\-._~!$&'()*+,;=:@/]$/iu)\n\n/**\n * @param {Array<string>} input\n * @returns {string}\n */\nfunction stringArrayToHexStripped (input) {\n let acc = ''\n let code = 0\n let i = 0\n\n for (i = 0; i < input.length; i++) {\n code = input[i].charCodeAt(0)\n if (code === 48) {\n continue\n }\n if (!((code >= 48 && code <= 57) || (code >= 65 && code <= 70) || (code >= 97 && code <= 102))) {\n return ''\n }\n acc += input[i]\n break\n }\n\n for (i += 1; i < input.length; i++) {\n code = input[i].charCodeAt(0)\n if (!((code >= 48 && code <= 57) || (code >= 65 && code <= 70) || (code >= 97 && code <= 102))) {\n return ''\n }\n acc += input[i]\n }\n return acc\n}\n\n/**\n * @typedef {Object} GetIPV6Result\n * @property {boolean} error - Indicates if there was an error parsing the IPv6 address.\n * @property {string} address - The parsed IPv6 address.\n * @property {string} [zone] - The zone identifier, if present.\n */\n\n/**\n * @param {string} value\n * @returns {boolean}\n */\nconst nonSimpleDomain = RegExp.prototype.test.bind(/[^!\"$&'()*+,\\-.;=_`a-z{}~]/u)\n\n/**\n * @param {Array<string>} buffer\n * @returns {boolean}\n */\nfunction consumeIsZone (buffer) {\n buffer.length = 0\n return true\n}\n\n/**\n * @param {Array<string>} buffer\n * @param {Array<string>} address\n * @param {GetIPV6Result} output\n * @returns {boolean}\n */\nfunction consumeHextets (buffer, address, output) {\n if (buffer.length) {\n const hex = stringArrayToHexStripped(buffer)\n if (hex !== '') {\n address.push(hex)\n } else {\n output.error = true\n return false\n }\n buffer.length = 0\n }\n return true\n}\n\n/**\n * @param {string} input\n * @returns {GetIPV6Result}\n */\nfunction getIPV6 (input) {\n let tokenCount = 0\n const output = { error: false, address: '', zone: '' }\n /** @type {Array<string>} */\n const address = []\n /** @type {Array<string>} */\n const buffer = []\n let endipv6Encountered = false\n let endIpv6 = false\n\n let consume = consumeHextets\n\n for (let i = 0; i < input.length; i++) {\n const cursor = input[i]\n if (cursor === '[' || cursor === ']') { continue }\n if (cursor === ':') {\n if (endipv6Encountered === true) {\n endIpv6 = true\n }\n if (!consume(buffer, address, output)) { break }\n if (++tokenCount > 7) {\n // not valid\n output.error = true\n break\n }\n if (i > 0 && input[i - 1] === ':') {\n endipv6Encountered = true\n }\n address.push(':')\n continue\n } else if (cursor === '%') {\n if (!consume(buffer, address, output)) { break }\n // switch to zone detection\n consume = consumeIsZone\n } else {\n buffer.push(cursor)\n continue\n }\n }\n if (buffer.length) {\n if (consume === consumeIsZone) {\n output.zone = buffer.join('')\n } else if (endIpv6) {\n address.push(buffer.join(''))\n } else {\n address.push(stringArrayToHexStripped(buffer))\n }\n }\n output.address = address.join('')\n return output\n}\n\n/**\n * @typedef {Object} NormalizeIPv6Result\n * @property {string} host - The normalized host.\n * @property {string} [escapedHost] - The escaped host.\n * @property {boolean} isIPV6 - Indicates if the host is an IPv6 address.\n */\n\n/**\n * @param {string} host\n * @returns {NormalizeIPv6Result}\n */\nfunction normalizeIPv6 (host) {\n if (findToken(host, ':') < 2) { return { host, isIPV6: false } }\n const ipv6 = getIPV6(host)\n\n if (!ipv6.error) {\n let newHost = ipv6.address\n let escapedHost = ipv6.address\n if (ipv6.zone) {\n newHost += '%' + ipv6.zone\n escapedHost += '%25' + ipv6.zone\n }\n return { host: newHost, isIPV6: true, escapedHost }\n } else {\n return { host, isIPV6: false }\n }\n}\n\n/**\n * @param {string} str\n * @param {string} token\n * @returns {number}\n */\nfunction findToken (str, token) {\n let ind = 0\n for (let i = 0; i < str.length; i++) {\n if (str[i] === token) ind++\n }\n return ind\n}\n\n/**\n * @param {string} path\n * @returns {string}\n *\n * @see https://datatracker.ietf.org/doc/html/rfc3986#section-5.2.4\n */\nfunction removeDotSegments (path) {\n let input = path\n const output = []\n let nextSlash = -1\n let len = 0\n\n // eslint-disable-next-line no-cond-assign\n while (len = input.length) {\n if (len === 1) {\n if (input === '.') {\n break\n } else if (input === '/') {\n output.push('/')\n break\n } else {\n output.push(input)\n break\n }\n } else if (len === 2) {\n if (input[0] === '.') {\n if (input[1] === '.') {\n break\n } else if (input[1] === '/') {\n input = input.slice(2)\n continue\n }\n } else if (input[0] === '/') {\n if (input[1] === '.' || input[1] === '/') {\n output.push('/')\n break\n }\n }\n } else if (len === 3) {\n if (input === '/..') {\n if (output.length !== 0) {\n output.pop()\n }\n output.push('/')\n break\n }\n }\n if (input[0] === '.') {\n if (input[1] === '.') {\n if (input[2] === '/') {\n input = input.slice(3)\n continue\n }\n } else if (input[1] === '/') {\n input = input.slice(2)\n continue\n }\n } else if (input[0] === '/') {\n if (input[1] === '.') {\n if (input[2] === '/') {\n input = input.slice(2)\n continue\n } else if (input[2] === '.') {\n if (input[3] === '/') {\n input = input.slice(3)\n if (output.length !== 0) {\n output.pop()\n }\n continue\n }\n }\n }\n }\n\n // Rule 2E: Move normal path segment to output\n if ((nextSlash = input.indexOf('/', 1)) === -1) {\n output.push(input)\n break\n } else {\n output.push(input.slice(0, nextSlash))\n input = input.slice(nextSlash)\n }\n }\n\n return output.join('')\n}\n\n/**\n * Re-escape RFC 3986 gen-delims that must not appear literally in the host.\n * After the URI regex parses, these characters cannot be literal in the host\n * field, so any that appear after decoding came from percent-encoding and\n * must be restored to prevent authority structure changes.\n *\n * @param {string} host\n * @param {boolean} isIP - true for IPv4/IPv6 hosts (skip colon re-escaping)\n * @returns {string}\n */\nconst HOST_DELIMS = { '@': '%40', '/': '%2F', '?': '%3F', '#': '%23', ':': '%3A' }\nconst HOST_DELIM_RE = /[@/?#:]/g\nconst HOST_DELIM_NO_COLON_RE = /[@/?#]/g\n\nfunction reescapeHostDelimiters (host, isIP) {\n const re = isIP ? HOST_DELIM_NO_COLON_RE : HOST_DELIM_RE\n re.lastIndex = 0\n return host.replace(re, (ch) => HOST_DELIMS[ch])\n}\n\n/**\n * Normalizes percent escapes and optionally decodes only unreserved ASCII bytes.\n * Reserved delimiters such as `%2F` and `%2E` stay escaped.\n *\n * @param {string} input\n * @param {boolean} [decodeUnreserved=false]\n * @returns {string}\n */\nfunction normalizePercentEncoding (input, decodeUnreserved = false) {\n if (input.indexOf('%') === -1) {\n return input\n }\n\n let output = ''\n\n for (let i = 0; i < input.length; i++) {\n if (input[i] === '%' && i + 2 < input.length) {\n const hex = input.slice(i + 1, i + 3)\n if (isHexPair(hex)) {\n const normalizedHex = hex.toUpperCase()\n const decoded = String.fromCharCode(parseInt(normalizedHex, 16))\n\n if (decodeUnreserved && isUnreserved(decoded)) {\n output += decoded\n } else {\n output += '%' + normalizedHex\n }\n\n i += 2\n continue\n }\n }\n\n output += input[i]\n }\n\n return output\n}\n\n/**\n * Normalizes path data without turning reserved escapes into live path syntax.\n * Valid escapes are uppercased, raw unsafe characters are escaped, and only\n * unreserved bytes that are not `.` are decoded.\n *\n * @param {string} input\n * @returns {string}\n */\nfunction normalizePathEncoding (input) {\n let output = ''\n\n for (let i = 0; i < input.length; i++) {\n if (input[i] === '%' && i + 2 < input.length) {\n const hex = input.slice(i + 1, i + 3)\n if (isHexPair(hex)) {\n const normalizedHex = hex.toUpperCase()\n const decoded = String.fromCharCode(parseInt(normalizedHex, 16))\n\n if (decoded !== '.' && isUnreserved(decoded)) {\n output += decoded\n } else {\n output += '%' + normalizedHex\n }\n\n i += 2\n continue\n }\n }\n\n if (isPathCharacter(input[i])) {\n output += input[i]\n } else {\n output += escape(input[i])\n }\n }\n\n return output\n}\n\n/**\n * Escapes a component while preserving existing valid percent escapes.\n *\n * @param {string} input\n * @returns {string}\n */\nfunction escapePreservingEscapes (input) {\n let output = ''\n\n for (let i = 0; i < input.length; i++) {\n if (input[i] === '%' && i + 2 < input.length) {\n const hex = input.slice(i + 1, i + 3)\n if (isHexPair(hex)) {\n output += '%' + hex.toUpperCase()\n i += 2\n continue\n }\n }\n\n output += escape(input[i])\n }\n\n return output\n}\n\n/**\n * @param {import('../types/index').URIComponent} component\n * @returns {string|undefined}\n */\nfunction recomposeAuthority (component) {\n const uriTokens = []\n\n if (component.userinfo !== undefined) {\n uriTokens.push(component.userinfo)\n uriTokens.push('@')\n }\n\n if (component.host !== undefined) {\n let host = unescape(component.host)\n if (!isIPv4(host)) {\n const ipV6res = normalizeIPv6(host)\n if (ipV6res.isIPV6 === true) {\n host = `[${ipV6res.escapedHost}]`\n } else {\n host = reescapeHostDelimiters(host, false)\n }\n }\n uriTokens.push(host)\n }\n\n if (typeof component.port === 'number' || typeof component.port === 'string') {\n uriTokens.push(':')\n uriTokens.push(String(component.port))\n }\n\n return uriTokens.length ? uriTokens.join('') : undefined\n};\n\nmodule.exports = {\n nonSimpleDomain,\n recomposeAuthority,\n reescapeHostDelimiters,\n normalizePercentEncoding,\n normalizePathEncoding,\n escapePreservingEscapes,\n removeDotSegments,\n isIPv4,\n isUUID,\n normalizeIPv6,\n stringArrayToHexStripped\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;AAGA,QAAM,SAAS,OAAO,UAAU,KAAK,KAAK,6DAA6D;AAGvG,QAAM,SAAS,OAAO,UAAU,KAAK,KAAK,0FAA0F;AAGpI,QAAM,YAAY,OAAO,UAAU,KAAK,KAAK,gBAAgB;AAG7D,QAAM,eAAe,OAAO,UAAU,KAAK,KAAK,kBAAkB;AAGlE,QAAM,kBAAkB,OAAO,UAAU,KAAK,KAAK,gCAAgC;AAMnF,WAAS,yBAA0B,OAAO;AACxC,QAAI,MAAM;AACV,QAAI,OAAO;AACX,QAAI,IAAI;AAER,SAAK,IAAI,GAAG,IAAI,MAAM,QAAQ,KAAK;AACjC,aAAO,MAAM,CAAC,EAAE,WAAW,CAAC;AAC5B,UAAI,SAAS,IAAI;AACf;AAAA,MACN;AACI,UAAI,EAAG,QAAQ,MAAM,QAAQ,MAAQ,QAAQ,MAAM,QAAQ,MAAQ,QAAQ,MAAM,QAAQ,MAAO;AAC9F,eAAO;AAAA,MACb;AACI,aAAO,MAAM,CAAC;AACd;AAAA,IACJ;AAEE,SAAK,KAAK,GAAG,IAAI,MAAM,QAAQ,KAAK;AAClC,aAAO,MAAM,CAAC,EAAE,WAAW,CAAC;AAC5B,UAAI,EAAG,QAAQ,MAAM,QAAQ,MAAQ,QAAQ,MAAM,QAAQ,MAAQ,QAAQ,MAAM,QAAQ,MAAO;AAC9F,eAAO;AAAA,MACb;AACI,aAAO,MAAM,CAAC;AAAA,IAClB;AACE,WAAO;AAAA,EACT;AAaA,QAAM,kBAAkB,OAAO,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,KAAK,IAAI;AAAA,IACvB;AAEE,QAAI,OAAO,UAAU,SAAS,YAAY,OAAO,UAAU,SAAS,UAAU;AAC5E,gBAAU,KAAK,GAAG;AAClB,gBAAU,KAAK,OAAO,UAAU,IAAI,CAAC;AAAA,IACzC;AAEE,WAAO,UAAU,SAAS,UAAU,KAAK,EAAE,IAAI;AAAA,EACjD;AAEA,UAAiB;AAAA,IACf;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;;;","x_google_ignoreList":[0]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sse.js","sources":["../../../../../../../../../../../node_modules/.pnpm/hono@4.12.18/node_modules/hono/dist/helper/streaming/sse.js"],"sourcesContent":["// src/helper/streaming/sse.ts\nimport { HtmlEscapedCallbackPhase, resolveCallback } from \"../../utils/html.js\";\nimport { StreamingApi } from \"../../utils/stream.js\";\nimport { isOldBunVersion } from \"./utils.js\";\nvar SSEStreamingApi = class extends StreamingApi {\n constructor(writable, readable) {\n super(writable, readable);\n }\n async writeSSE(message) {\n const data = await resolveCallback(message.data, HtmlEscapedCallbackPhase.Stringify, false, {});\n const dataLines = data.split(/\\r\\n|\\r|\\n/).map((line) => {\n return `data: ${line}`;\n }).join(\"\\n\");\n for (const key of [\"event\", \"id\", \"retry\"]) {\n if (message[key] && /[\\r\\n]/.test(message[key])) {\n throw new Error(`${key} must not contain \"\\\\r\" or \"\\\\n\"`);\n }\n }\n const sseData = [\n message.event && `event: ${message.event}`,\n dataLines,\n message.id && `id: ${message.id}`,\n message.retry && `retry: ${message.retry}`\n ].filter(Boolean).join(\"\\n\") + \"\\n\\n\";\n await this.write(sseData);\n }\n};\nvar run = async (stream, cb, onError) => {\n try {\n await cb(stream);\n } catch (e) {\n if (e instanceof Error && onError) {\n await onError(e, stream);\n await stream.writeSSE({\n event: \"error\",\n data: e.message\n });\n } else {\n console.error(e);\n }\n } finally {\n stream.close();\n }\n};\nvar contextStash = /* @__PURE__ */ new WeakMap();\nvar streamSSE = (c, cb, onError) => {\n const { readable, writable } = new TransformStream();\n const stream = new SSEStreamingApi(writable, readable);\n if (isOldBunVersion()) {\n c.req.raw.signal.addEventListener(\"abort\", () => {\n if (!stream.closed) {\n stream.abort();\n }\n });\n }\n contextStash.set(stream.responseReadable, c);\n c.header(\"Transfer-Encoding\", \"chunked\");\n c.header(\"Content-Type\", \"text/event-stream\");\n c.header(\"Cache-Control\", \"no-cache\");\n c.header(\"Connection\", \"keep-alive\");\n run(stream, cb, onError);\n return c.newResponse(stream.responseReadable);\n};\nexport {\n SSEStreamingApi,\n streamSSE\n};\n"],"names":[],"mappings":";;;;;;;;;;AAIG,IAAC,kBAAkB,cAAc,aAAa;AAAA,EAC/C,YAAY,UAAU,UAAU;AAC9B,UAAM,UAAU,QAAQ;AAAA,EAC1B;AAAA,EACA,MAAM,SAAS,SAAS;AACtB,UAAM,OAAO,MAAM,gBAAgB,QAAQ,MAAM,yBAAyB,WAAW,OAAO,EAAE;AAC9F,UAAM,YAAY,KAAK,MAAM,YAAY,EAAE,IAAI,CAAC,SAAS;AACvD,aAAO,SAAS,IAAI;AAAA,IACtB,CAAC,EAAE,KAAK,IAAI;AACZ,eAAW,OAAO,CAAC,SAAS,MAAM,OAAO,GAAG;AAC1C,UAAI,QAAQ,GAAG,KAAK,SAAS,KAAK,QAAQ,GAAG,CAAC,GAAG;AAC/C,cAAM,IAAI,MAAM,GAAG,GAAG,kCAAkC;AAAA,MAC1D;AAAA,IACF;AACA,UAAM,UAAU;AAAA,MACd,QAAQ,SAAS,UAAU,QAAQ,KAAK;AAAA,MACxC;AAAA,MACA,QAAQ,MAAM,OAAO,QAAQ,EAAE;AAAA,MAC/B,QAAQ,SAAS,UAAU,QAAQ,KAAK;AAAA,IAC9C,EAAM,OAAO,OAAO,EAAE,KAAK,IAAI,IAAI;AAC/B,UAAM,KAAK,MAAM,OAAO;AAAA,EAC1B;AACF;","x_google_ignoreList":[0]}
@@ -2,24 +2,24 @@
2
2
  !(function() {
3
3
  try {
4
4
  var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
5
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "f27a8065-2a4c-4578-b313-e9c20b507273", e._sentryDebugIdIdentifier = "sentry-dbid-f27a8065-2a4c-4578-b313-e9c20b507273");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "47be3f81-0750-4ff6-baa2-6ea3ba20957c", e._sentryDebugIdIdentifier = "sentry-dbid-47be3f81-0750-4ff6-baa2-6ea3ba20957c");
6
6
  } catch (e2) {
7
7
  }
8
8
  })();
9
9
  var cors = (options) => {
10
- const defaults = {
10
+ const opts = {
11
11
  origin: "*",
12
12
  allowMethods: ["GET", "HEAD", "PUT", "POST", "DELETE", "PATCH"],
13
13
  allowHeaders: [],
14
- exposeHeaders: []
15
- };
16
- const opts = {
17
- ...defaults,
14
+ exposeHeaders: [],
18
15
  ...options
19
16
  };
20
17
  const findAllowOrigin = ((optsOrigin) => {
21
18
  if (typeof optsOrigin === "string") {
22
19
  if (optsOrigin === "*") {
20
+ if (opts.credentials) {
21
+ return (origin) => origin || null;
22
+ }
23
23
  return () => optsOrigin;
24
24
  } else {
25
25
  return (origin) => optsOrigin === origin ? origin : null;
@@ -54,7 +54,7 @@ var cors = (options) => {
54
54
  set("Access-Control-Expose-Headers", opts.exposeHeaders.join(","));
55
55
  }
56
56
  if (c.req.method === "OPTIONS") {
57
- if (opts.origin !== "*") {
57
+ if (opts.origin !== "*" || opts.credentials) {
58
58
  set("Vary", "Origin");
59
59
  }
60
60
  if (opts.maxAge != null) {
@@ -84,7 +84,7 @@ var cors = (options) => {
84
84
  });
85
85
  }
86
86
  await next();
87
- if (opts.origin !== "*") {
87
+ if (opts.origin !== "*" || opts.credentials) {
88
88
  c.header("Vary", "Origin", { append: true });
89
89
  }
90
90
  };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../../../../../../../node_modules/.pnpm/hono@4.12.18/node_modules/hono/dist/middleware/cors/index.js"],"sourcesContent":["// src/middleware/cors/index.ts\nvar cors = (options) => {\n const opts = {\n origin: \"*\",\n allowMethods: [\"GET\", \"HEAD\", \"PUT\", \"POST\", \"DELETE\", \"PATCH\"],\n allowHeaders: [],\n exposeHeaders: [],\n ...options\n };\n const findAllowOrigin = ((optsOrigin) => {\n if (typeof optsOrigin === \"string\") {\n if (optsOrigin === \"*\") {\n if (opts.credentials) {\n return (origin) => origin || null;\n }\n return () => optsOrigin;\n } else {\n return (origin) => optsOrigin === origin ? origin : null;\n }\n } else if (typeof optsOrigin === \"function\") {\n return optsOrigin;\n } else {\n return (origin) => optsOrigin.includes(origin) ? origin : null;\n }\n })(opts.origin);\n const findAllowMethods = ((optsAllowMethods) => {\n if (typeof optsAllowMethods === \"function\") {\n return optsAllowMethods;\n } else if (Array.isArray(optsAllowMethods)) {\n return () => optsAllowMethods;\n } else {\n return () => [];\n }\n })(opts.allowMethods);\n return async function cors2(c, next) {\n function set(key, value) {\n c.res.headers.set(key, value);\n }\n const allowOrigin = await findAllowOrigin(c.req.header(\"origin\") || \"\", c);\n if (allowOrigin) {\n set(\"Access-Control-Allow-Origin\", allowOrigin);\n }\n if (opts.credentials) {\n set(\"Access-Control-Allow-Credentials\", \"true\");\n }\n if (opts.exposeHeaders?.length) {\n set(\"Access-Control-Expose-Headers\", opts.exposeHeaders.join(\",\"));\n }\n if (c.req.method === \"OPTIONS\") {\n if (opts.origin !== \"*\" || opts.credentials) {\n set(\"Vary\", \"Origin\");\n }\n if (opts.maxAge != null) {\n set(\"Access-Control-Max-Age\", opts.maxAge.toString());\n }\n const allowMethods = await findAllowMethods(c.req.header(\"origin\") || \"\", c);\n if (allowMethods.length) {\n set(\"Access-Control-Allow-Methods\", allowMethods.join(\",\"));\n }\n let headers = opts.allowHeaders;\n if (!headers?.length) {\n const requestHeaders = c.req.header(\"Access-Control-Request-Headers\");\n if (requestHeaders) {\n headers = requestHeaders.split(/\\s*,\\s*/);\n }\n }\n if (headers?.length) {\n set(\"Access-Control-Allow-Headers\", headers.join(\",\"));\n c.res.headers.append(\"Vary\", \"Access-Control-Request-Headers\");\n }\n c.res.headers.delete(\"Content-Length\");\n c.res.headers.delete(\"Content-Type\");\n return new Response(null, {\n headers: c.res.headers,\n status: 204,\n statusText: \"No Content\"\n });\n }\n await next();\n if (opts.origin !== \"*\" || opts.credentials) {\n c.header(\"Vary\", \"Origin\", { append: true });\n }\n };\n};\nexport {\n cors\n};\n"],"names":["e"],"mappings":"AACG;AAAA,EAAA,WAAA;AAAA,MAAA;AAAA,QAAA,IAAA,eAAA,OAAA,SAAA,SAAA,eAAA,OAAA,SAAA,SAAA,eAAA,OAAA,aAAA,aAAA,eAAA,OAAA,OAAA,OAAA,CAAA,GAAA,IAAA,IAAA,EAAA,QAAA;AAAA,UAAA,EAAA,kBAAA,EAAA,mBAAA,CAAA,GAAA,EAAA,gBAAA,CAAA,IAAA,wCAAA,EAAA,2BAAA;AAAA,EAAA,SAAAA,IAAA;AAAA,EAAA;AAAA,GAAA;AAAA,IAAC,OAAO,CAAC,YAAY;AACtB,QAAM,OAAO;AAAA,IACX,QAAQ;AAAA,IACR,cAAc,CAAC,OAAO,QAAQ,OAAO,QAAQ,UAAU,OAAO;AAAA,IAC9D,cAAc,CAAA;AAAA,IACd,eAAe,CAAA;AAAA,IACf,GAAG;AAAA,EACP;AACE,QAAM,mBAAmB,CAAC,eAAe;AACvC,QAAI,OAAO,eAAe,UAAU;AAClC,UAAI,eAAe,KAAK;AACtB,YAAI,KAAK,aAAa;AACpB,iBAAO,CAAC,WAAW,UAAU;AAAA,QAC/B;AACA,eAAO,MAAM;AAAA,MACf,OAAO;AACL,eAAO,CAAC,WAAW,eAAe,SAAS,SAAS;AAAA,MACtD;AAAA,I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I,OAAO,gCAAgC;AACpE,YAAI,gBAAgB;AAClB,oBAAU,eAAe,MAAM,SAAS;AAAA,QAC1C;AAAA,MACF;AACA,UAAI,SAAS,QAAQ;AACnB,YAAI,gCAAgC,QAAQ,KAAK,GAAG,CAAC;AACrD,UAAE,IAAI,QAAQ,OAAO,QAAQ,gCAAgC;AAAA,MAC/D;AACA,QAAE,IAAI,QAAQ,OAAO,gBAAgB;AACrC,QAAE,IAAI,QAAQ,OAAO,cAAc;AACnC,aAAO,IAAI,SAAS,MAAM;AAAA,QACxB,SAAS,EAAE,IAAI;AAAA,QACf,QAAQ;AAAA,QACR,YAAY;AAAA,MACpB,CAAO;AAAA,IACH;AACA,UAAM,KAAI;AACV,QAAI,KAAK,WAAW,OAAO,KAAK,aAAa;AAC3C,QAAE,OAAO,QAAQ,UAAU,EAAE,QAAQ,MAAM;AAAA,IAC7C;AAAA,EACF;AACF;","x_google_ignoreList":[0]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"html.js","sources":["../../../../../../../../../../node_modules/.pnpm/hono@4.12.18/node_modules/hono/dist/utils/html.js"],"sourcesContent":["// src/utils/html.ts\nvar HtmlEscapedCallbackPhase = {\n Stringify: 1,\n BeforeStream: 2,\n Stream: 3\n};\nvar raw = (value, callbacks) => {\n const escapedString = new String(value);\n escapedString.isEscaped = true;\n escapedString.callbacks = callbacks;\n return escapedString;\n};\nvar escapeRe = /[&<>'\"]/;\nvar stringBufferToString = async (buffer, callbacks) => {\n let str = \"\";\n callbacks ||= [];\n const resolvedBuffer = await Promise.all(buffer);\n for (let i = resolvedBuffer.length - 1; ; i--) {\n str += resolvedBuffer[i];\n i--;\n if (i < 0) {\n break;\n }\n let r = resolvedBuffer[i];\n if (typeof r === \"object\") {\n callbacks.push(...r.callbacks || []);\n }\n const isEscaped = r.isEscaped;\n r = await (typeof r === \"object\" ? r.toString() : r);\n if (typeof r === \"object\") {\n callbacks.push(...r.callbacks || []);\n }\n if (r.isEscaped ?? isEscaped) {\n str += r;\n } else {\n const buf = [str];\n escapeToBuffer(r, buf);\n str = buf[0];\n }\n }\n return raw(str, callbacks);\n};\nvar escapeToBuffer = (str, buffer) => {\n const match = str.search(escapeRe);\n if (match === -1) {\n buffer[0] += str;\n return;\n }\n let escape;\n let index;\n let lastIndex = 0;\n for (index = match; index < str.length; index++) {\n switch (str.charCodeAt(index)) {\n case 34:\n escape = \"&quot;\";\n break;\n case 39:\n escape = \"&#39;\";\n break;\n case 38:\n escape = \"&amp;\";\n break;\n case 60:\n escape = \"&lt;\";\n break;\n case 62:\n escape = \"&gt;\";\n break;\n default:\n continue;\n }\n buffer[0] += str.substring(lastIndex, index) + escape;\n lastIndex = index + 1;\n }\n buffer[0] += str.substring(lastIndex, index);\n};\nvar resolveCallbackSync = (str) => {\n const callbacks = str.callbacks;\n if (!callbacks?.length) {\n return str;\n }\n const buffer = [str];\n const context = {};\n callbacks.forEach((c) => c({ phase: HtmlEscapedCallbackPhase.Stringify, buffer, context }));\n return buffer[0];\n};\nvar resolveCallback = async (str, phase, preserveCallbacks, context, buffer) => {\n if (typeof str === \"object\" && !(str instanceof String)) {\n if (!(str instanceof Promise)) {\n str = str.toString();\n }\n if (str instanceof Promise) {\n str = await str;\n }\n }\n const callbacks = str.callbacks;\n if (!callbacks?.length) {\n return Promise.resolve(str);\n }\n if (buffer) {\n buffer[0] += str;\n } else {\n buffer = [str];\n }\n const resStr = Promise.all(callbacks.map((c) => c({ phase, buffer, context }))).then(\n (res) => Promise.all(\n res.filter(Boolean).map((str2) => resolveCallback(str2, phase, false, context, buffer))\n ).then(() => buffer[0])\n );\n if (preserveCallbacks) {\n return raw(await resStr, callbacks);\n } else {\n return resStr;\n }\n};\nexport {\n HtmlEscapedCallbackPhase,\n escapeToBuffer,\n raw,\n resolveCallback,\n resolveCallbackSync,\n stringBufferToString\n};\n"],"names":["e"],"mappings":"AACG;AAAA,EAAA,WAAA;AAAA,MAAA;AAAA,QAAA,IAAA,eAAA,OAAA,SAAA,SAAA,eAAA,OAAA,SAAA,SAAA,eAAA,OAAA,aAAA,aAAA,eAAA,OAAA,OAAA,OAAA,CAAA,GAAA,IAAA,IAAA,EAAA,QAAA;AAAA,UAAA,EAAA,kBAAA,EAAA,mBAAA,CAAA,GAAA,EAAA,gBAAA,CAAA,IAAA,wCAAA,EAAA,2BAAA;AAAA,EAAA,SAAAA,IAAA;AAAA,EAAA;AAAA,GAAA;AAAA,IAAC,2BAA2B;AAAA,EAC7B,WAAW;AAGb;AAiFG,IAAC,kBAAkB,OAAO,KAAK,OAAO,mBAAmB,SAAS,WAAW;AAC9E,MAAI,OAAO,QAAQ,YAAY,EAAE,eAAe,SAAS;AACvD,QAAI,EAAE,eAAe,UAAU;AAC7B,YAAM,IAAI,SAAQ;AAAA,IACpB;AACA,QAAI,eAAe,SAAS;AAC1B,YAAM,MAAM;AAAA,IACd;AAAA,EACF;AACA,QAAM,YAAY,IAAI;AACtB,MAAI,CAAC,WAAW,QAAQ;AACtB,WAAO,QAAQ,QAAQ,GAAG;AAAA,EAC5B;AACA,MAAI,QAAQ;AACV,WAAO,CAAC,KAAK;AAAA,EACf,OAAO;AACL,aAAS,CAAC,GAAG;AAAA,EACf;AACA,QAAM,SAAS,QAAQ,IAAI,UAAU,IAAI,CAAC,MAAM,EAAE,EAAE,OAAO,QAAQ,QAAO,CAAE,CAAC,CAAC,EAAE;AAAA,IAC9E,CAAC,QAAQ,QAAQ;AAAA,MACf,IAAI,OAAO,OAAO,EAAE,IAAI,CAAC,SAAS,gBAAgB,MAAM,OAAO,OAAO,SAAS,MAAM,CAAC;AAAA,IAC5F,EAAM,KAAK,MAAM,OAAO,CAAC,CAAC;AAAA,EAC1B;AAGS;AACL,WAAO;AAAA,EACT;AACF;","x_google_ignoreList":[0]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stream.js","sources":["../../../../../../../../../../node_modules/.pnpm/hono@4.12.18/node_modules/hono/dist/utils/stream.js"],"sourcesContent":["// src/utils/stream.ts\nvar StreamingApi = class {\n writer;\n encoder;\n writable;\n abortSubscribers = [];\n responseReadable;\n /**\n * Whether the stream has been aborted.\n */\n aborted = false;\n /**\n * Whether the stream has been closed normally.\n */\n closed = false;\n constructor(writable, _readable) {\n this.writable = writable;\n this.writer = writable.getWriter();\n this.encoder = new TextEncoder();\n const reader = _readable.getReader();\n this.abortSubscribers.push(async () => {\n await reader.cancel();\n });\n this.responseReadable = new ReadableStream({\n async pull(controller) {\n const { done, value } = await reader.read();\n done ? controller.close() : controller.enqueue(value);\n },\n cancel: () => {\n this.abort();\n }\n });\n }\n async write(input) {\n try {\n if (typeof input === \"string\") {\n input = this.encoder.encode(input);\n }\n await this.writer.write(input);\n } catch {\n }\n return this;\n }\n async writeln(input) {\n await this.write(input + \"\\n\");\n return this;\n }\n sleep(ms) {\n return new Promise((res) => setTimeout(res, ms));\n }\n async close() {\n try {\n await this.writer.close();\n } catch {\n }\n this.closed = true;\n }\n async pipe(body) {\n this.writer.releaseLock();\n await body.pipeTo(this.writable, { preventClose: true });\n this.writer = this.writable.getWriter();\n }\n onAbort(listener) {\n this.abortSubscribers.push(listener);\n }\n /**\n * Abort the stream.\n * You can call this method when stream is aborted by external event.\n */\n abort() {\n if (!this.aborted) {\n this.aborted = true;\n this.abortSubscribers.forEach((subscriber) => subscriber());\n }\n }\n};\nexport {\n StreamingApi\n};\n"],"names":["e"],"mappings":"AACG;AAAA,EAAA,WAAA;AAAA,MAAA;AAAA,QAAA,IAAA,eAAA,OAAA,SAAA,SAAA,eAAA,OAAA,SAAA,SAAA,eAAA,OAAA,aAAA,aAAA,eAAA,OAAA,OAAA,OAAA,CAAA,GAAA,IAAA,IAAA,EAAA,QAAA;AAAA,UAAA,EAAA,kBAAA,EAAA,mBAAA,CAAA,GAAA,EAAA,gBAAA,CAAA,IAAA,wCAAA,EAAA,2BAAA;AAAA,EAAA,SAAAA,IAAA;AAAA,EAAA;AAAA,GAAA;AAAA,IAAC,eAAe,MAAM;AAAA,EACvB;AAAA,EACA;AAAA,EACA;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K,SAAS,UAAS;AAAA,EACvC;AAAA,EACA,QAAQ,UAAU;AAChB,SAAK,iBAAiB,KAAK,QAAQ;AAAA,EACrC;AAAA;AAAA;AAAA;AAAA;AAAA,EAKA,QAAQ;AACN,QAAI,CAAC,KAAK,SAAS;AACjB,WAAK,UAAU;AACf,WAAK,iBAAiB,QAAQ,CAAC,eAAe,WAAU,CAAE;AAAA,IAC5D;AAAA,EACF;AACF;","x_google_ignoreList":[0]}
@@ -2,94 +2,99 @@
2
2
  !(function() {
3
3
  try {
4
4
  var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
5
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "1a032022-2816-48ce-bd6e-8d1ef7d61949", e._sentryDebugIdIdentifier = "sentry-dbid-1a032022-2816-48ce-bd6e-8d1ef7d61949");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "494a5aa3-574d-4f7d-9dd7-15e320a3b3c1", e._sentryDebugIdIdentifier = "sentry-dbid-494a5aa3-574d-4f7d-9dd7-15e320a3b3c1");
6
6
  } catch (e2) {
7
7
  }
8
8
  })();
9
- import { __module as jsonSchemaTraverse } from "../../../../../_virtual/index10.js";
10
- var traverse = jsonSchemaTraverse.exports = function(schema, opts, cb) {
11
- if (typeof opts == "function") {
12
- cb = opts;
13
- opts = {};
14
- }
15
- cb = opts.cb || cb;
16
- var pre = typeof cb == "function" ? cb : cb.pre || function() {
9
+ import { __module as jsonSchemaTraverse } from "../../../../../_virtual/index11.js";
10
+ var hasRequiredJsonSchemaTraverse;
11
+ function requireJsonSchemaTraverse() {
12
+ if (hasRequiredJsonSchemaTraverse) return jsonSchemaTraverse.exports;
13
+ hasRequiredJsonSchemaTraverse = 1;
14
+ var traverse = jsonSchemaTraverse.exports = function(schema, opts, cb) {
15
+ if (typeof opts == "function") {
16
+ cb = opts;
17
+ opts = {};
18
+ }
19
+ cb = opts.cb || cb;
20
+ var pre = typeof cb == "function" ? cb : cb.pre || function() {
21
+ };
22
+ var post = cb.post || function() {
23
+ };
24
+ _traverse(opts, pre, post, schema, "", schema);
17
25
  };
18
- var post = cb.post || function() {
26
+ traverse.keywords = {
27
+ additionalItems: true,
28
+ items: true,
29
+ contains: true,
30
+ additionalProperties: true,
31
+ propertyNames: true,
32
+ not: true,
33
+ if: true,
34
+ then: true,
35
+ else: true
19
36
  };
20
- _traverse(opts, pre, post, schema, "", schema);
21
- };
22
- traverse.keywords = {
23
- additionalItems: true,
24
- items: true,
25
- contains: true,
26
- additionalProperties: true,
27
- propertyNames: true,
28
- not: true,
29
- if: true,
30
- then: true,
31
- else: true
32
- };
33
- traverse.arrayKeywords = {
34
- items: true,
35
- allOf: true,
36
- anyOf: true,
37
- oneOf: true
38
- };
39
- traverse.propsKeywords = {
40
- $defs: true,
41
- definitions: true,
42
- properties: true,
43
- patternProperties: true,
44
- dependencies: true
45
- };
46
- traverse.skipKeywords = {
47
- default: true,
48
- enum: true,
49
- const: true,
50
- required: true,
51
- maximum: true,
52
- minimum: true,
53
- exclusiveMaximum: true,
54
- exclusiveMinimum: true,
55
- multipleOf: true,
56
- maxLength: true,
57
- minLength: true,
58
- pattern: true,
59
- format: true,
60
- maxItems: true,
61
- minItems: true,
62
- uniqueItems: true,
63
- maxProperties: true,
64
- minProperties: true
65
- };
66
- function _traverse(opts, pre, post, schema, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex) {
67
- if (schema && typeof schema == "object" && !Array.isArray(schema)) {
68
- pre(schema, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex);
69
- for (var key in schema) {
70
- var sch = schema[key];
71
- if (Array.isArray(sch)) {
72
- if (key in traverse.arrayKeywords) {
73
- for (var i = 0; i < sch.length; i++)
74
- _traverse(opts, pre, post, sch[i], jsonPtr + "/" + key + "/" + i, rootSchema, jsonPtr, key, schema, i);
75
- }
76
- } else if (key in traverse.propsKeywords) {
77
- if (sch && typeof sch == "object") {
78
- for (var prop in sch)
79
- _traverse(opts, pre, post, sch[prop], jsonPtr + "/" + key + "/" + escapeJsonPtr(prop), rootSchema, jsonPtr, key, schema, prop);
37
+ traverse.arrayKeywords = {
38
+ items: true,
39
+ allOf: true,
40
+ anyOf: true,
41
+ oneOf: true
42
+ };
43
+ traverse.propsKeywords = {
44
+ $defs: true,
45
+ definitions: true,
46
+ properties: true,
47
+ patternProperties: true,
48
+ dependencies: true
49
+ };
50
+ traverse.skipKeywords = {
51
+ default: true,
52
+ enum: true,
53
+ const: true,
54
+ required: true,
55
+ maximum: true,
56
+ minimum: true,
57
+ exclusiveMaximum: true,
58
+ exclusiveMinimum: true,
59
+ multipleOf: true,
60
+ maxLength: true,
61
+ minLength: true,
62
+ pattern: true,
63
+ format: true,
64
+ maxItems: true,
65
+ minItems: true,
66
+ uniqueItems: true,
67
+ maxProperties: true,
68
+ minProperties: true
69
+ };
70
+ function _traverse(opts, pre, post, schema, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex) {
71
+ if (schema && typeof schema == "object" && !Array.isArray(schema)) {
72
+ pre(schema, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex);
73
+ for (var key in schema) {
74
+ var sch = schema[key];
75
+ if (Array.isArray(sch)) {
76
+ if (key in traverse.arrayKeywords) {
77
+ for (var i = 0; i < sch.length; i++)
78
+ _traverse(opts, pre, post, sch[i], jsonPtr + "/" + key + "/" + i, rootSchema, jsonPtr, key, schema, i);
79
+ }
80
+ } else if (key in traverse.propsKeywords) {
81
+ if (sch && typeof sch == "object") {
82
+ for (var prop in sch)
83
+ _traverse(opts, pre, post, sch[prop], jsonPtr + "/" + key + "/" + escapeJsonPtr(prop), rootSchema, jsonPtr, key, schema, prop);
84
+ }
85
+ } else if (key in traverse.keywords || opts.allKeys && !(key in traverse.skipKeywords)) {
86
+ _traverse(opts, pre, post, sch, jsonPtr + "/" + key, rootSchema, jsonPtr, key, schema);
80
87
  }
81
- } else if (key in traverse.keywords || opts.allKeys && !(key in traverse.skipKeywords)) {
82
- _traverse(opts, pre, post, sch, jsonPtr + "/" + key, rootSchema, jsonPtr, key, schema);
83
88
  }
89
+ post(schema, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex);
84
90
  }
85
- post(schema, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex);
86
91
  }
92
+ function escapeJsonPtr(str) {
93
+ return str.replace(/~/g, "~0").replace(/\//g, "~1");
94
+ }
95
+ return jsonSchemaTraverse.exports;
87
96
  }
88
- function escapeJsonPtr(str) {
89
- return str.replace(/~/g, "~0").replace(/\//g, "~1");
90
- }
91
- var jsonSchemaTraverseExports = jsonSchemaTraverse.exports;
92
97
  export {
93
- jsonSchemaTraverseExports as j
98
+ requireJsonSchemaTraverse as __require
94
99
  };
95
100
  //# sourceMappingURL=index.js.map