@visulima/vis 6.0.0 → 6.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (152) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/LICENSE.md +89 -152
  3. package/dist/bin.js +1 -1
  4. package/dist/binx.js +1 -1
  5. package/dist/packem_chunks/CONFIG_FILES.js +4 -4
  6. package/dist/packem_chunks/bloom-status.js +1 -1
  7. package/dist/packem_chunks/bloom-sync.js +1 -1
  8. package/dist/packem_chunks/catalog.js +52 -61
  9. package/dist/packem_chunks/cli-exec.js +1 -1
  10. package/dist/packem_chunks/cli-main.js +150 -152
  11. package/dist/packem_chunks/dart-plan.js +1 -1
  12. package/dist/packem_chunks/dart-projects.js +1 -1
  13. package/dist/packem_chunks/dispatch.js +1 -1
  14. package/dist/packem_chunks/doctor-probe.js +1 -1
  15. package/dist/packem_chunks/fix.js +1 -1
  16. package/dist/packem_chunks/handler.js +1 -1
  17. package/dist/packem_chunks/handler10.js +4 -4
  18. package/dist/packem_chunks/handler11.js +1 -1
  19. package/dist/packem_chunks/handler12.js +1 -1
  20. package/dist/packem_chunks/handler13.js +1 -1
  21. package/dist/packem_chunks/handler14.js +1 -1
  22. package/dist/packem_chunks/handler15.js +1 -1
  23. package/dist/packem_chunks/handler16.js +1 -1
  24. package/dist/packem_chunks/handler17.js +1 -1
  25. package/dist/packem_chunks/handler18.js +1 -1
  26. package/dist/packem_chunks/handler19.js +1 -1
  27. package/dist/packem_chunks/handler2.js +1 -1
  28. package/dist/packem_chunks/handler20.js +2 -2
  29. package/dist/packem_chunks/handler21.js +1 -1
  30. package/dist/packem_chunks/handler22.js +2 -2
  31. package/dist/packem_chunks/handler23.js +1 -1
  32. package/dist/packem_chunks/handler24.js +1 -1
  33. package/dist/packem_chunks/handler26.js +1 -1
  34. package/dist/packem_chunks/handler27.js +1 -1
  35. package/dist/packem_chunks/handler28.js +1 -1
  36. package/dist/packem_chunks/handler29.js +1 -1
  37. package/dist/packem_chunks/handler3.js +1 -1
  38. package/dist/packem_chunks/handler30.js +1 -1
  39. package/dist/packem_chunks/handler5.js +1 -1
  40. package/dist/packem_chunks/handler50.js +2 -2
  41. package/dist/packem_chunks/handler51.js +1 -1
  42. package/dist/packem_chunks/handler53.js +1 -1
  43. package/dist/packem_chunks/handler54.js +1 -1
  44. package/dist/packem_chunks/handler55.js +1 -1
  45. package/dist/packem_chunks/handler58.js +1 -1
  46. package/dist/packem_chunks/handler59.js +1 -1
  47. package/dist/packem_chunks/handler6.js +1 -1
  48. package/dist/packem_chunks/handler60.js +7 -7
  49. package/dist/packem_chunks/handler61.js +1 -1
  50. package/dist/packem_chunks/handler62.js +2 -2
  51. package/dist/packem_chunks/handler63.js +1 -1
  52. package/dist/packem_chunks/handler64.js +2 -2
  53. package/dist/packem_chunks/handler65.js +1 -1
  54. package/dist/packem_chunks/handler66.js +1 -1
  55. package/dist/packem_chunks/handler67.js +20 -31
  56. package/dist/packem_chunks/handler68.js +1 -1
  57. package/dist/packem_chunks/handler69.js +1 -1
  58. package/dist/packem_chunks/handler7.js +1 -1
  59. package/dist/packem_chunks/handler70.js +5 -5
  60. package/dist/packem_chunks/handler71.js +1 -1
  61. package/dist/packem_chunks/handler72.js +1 -1
  62. package/dist/packem_chunks/handler73.js +1 -1
  63. package/dist/packem_chunks/handler74.js +1 -1
  64. package/dist/packem_chunks/handler75.js +17 -17
  65. package/dist/packem_chunks/handler76.js +1 -1
  66. package/dist/packem_chunks/handler77.js +2 -2
  67. package/dist/packem_chunks/handler78.js +31 -31
  68. package/dist/packem_chunks/handler8.js +1 -1
  69. package/dist/packem_chunks/handler9.js +1 -1
  70. package/dist/packem_chunks/heal-accept.js +1 -1
  71. package/dist/packem_chunks/heal.js +1 -1
  72. package/dist/packem_chunks/help-command.js +7 -40
  73. package/dist/packem_chunks/index2.js +11 -11
  74. package/dist/packem_chunks/index6.js +1 -1
  75. package/dist/packem_chunks/keys-refresh.js +1 -1
  76. package/dist/packem_chunks/lean.js +1 -1
  77. package/dist/packem_chunks/list.js +1 -1
  78. package/dist/packem_chunks/loader.js +1 -1
  79. package/dist/packem_chunks/orchestrator.js +1 -1
  80. package/dist/packem_chunks/prompts.js +1 -1
  81. package/dist/packem_chunks/status.js +1 -1
  82. package/dist/packem_chunks/sync.js +1 -1
  83. package/dist/packem_chunks/sync2.js +1 -1
  84. package/dist/packem_chunks/tripwire.js +1 -1
  85. package/dist/packem_chunks/ts-loader.js +5 -5
  86. package/dist/packem_chunks/verify-lockfile.js +1 -1
  87. package/dist/packem_shared/Table-Bo1JKNCN-CGGet8ES.js +34 -0
  88. package/dist/packem_shared/{affected-selection-DDxwjwM4.js → affected-selection-CrW7fWEd.js} +1 -1
  89. package/dist/packem_shared/{affected-shas-BuaWvmsG.js → affected-shas-B_kfSKss.js} +1 -1
  90. package/dist/packem_shared/{ai-fix-C2BhFFhi.js → ai-fix-D9MxigBQ.js} +5 -5
  91. package/dist/packem_shared/{augment-CxUPE8KX.js → augment-B9kSZuvW.js} +1 -1
  92. package/dist/packem_shared/{bin-Be7_QhQK.js → bin-D3TtXgz6.js} +1 -1
  93. package/dist/packem_shared/{build-scripts-DxyVSkgM.js → build-scripts-CEDx_nJp.js} +1 -1
  94. package/dist/packem_shared/{command-runtime-BXvH5EC0.js → command-runtime-HSsYGCQd.js} +1 -1
  95. package/dist/packem_shared/{dart-pubspec-DvmyleIr.js → dart-pubspec-BK_cK2EP.js} +2 -2
  96. package/dist/packem_shared/{dependency-scan-DKK3ZEZI.js → dependency-scan-B8jroa1D.js} +1 -1
  97. package/dist/packem_shared/{docker-BTuwdXaC.js → docker-DXqV-07f.js} +1 -1
  98. package/dist/packem_shared/{ecosystem-gate-BpQNUJzN.js → ecosystem-gate-ByxWtzPE.js} +1 -1
  99. package/dist/packem_shared/{env-consistency-CUBJHENL.js → env-consistency-Dt_uDbSP.js} +1 -1
  100. package/dist/packem_shared/{failure-log-kp0n2rbD.js → failure-log-BP-gCUb5.js} +1 -1
  101. package/dist/packem_shared/{formatBytes-BHAzNIrn-DRcKvqnb.js → formatBytes-_HvjOy8a-B_qQr4Hw.js} +3 -3
  102. package/dist/packem_shared/{getRandomSpinner-4ZEcbTYv-DCyIuj19.js → getRandomSpinner-DX11qCB2-CoIsn7ZU.js} +1 -1
  103. package/dist/packem_shared/{index-DsSWb5XH.js → index-BKbMnn8K.js} +1 -1
  104. package/dist/packem_shared/index-BisalDCf.js +39 -0
  105. package/dist/packem_shared/{index-BdMIfGVZ.js → index-BzhrR_iC.js} +15 -15
  106. package/dist/packem_shared/{index-DQfNpt2u.js → index-DGdD4w-b.js} +1 -1
  107. package/dist/packem_shared/index.server-Ca_EEVfw.js +2 -0
  108. package/dist/packem_shared/{isAccessibleSync-DYKTrrvc-BwaMhQs0.js → isAccessibleSync-DYKTrrvc-C-_5cgwu.js} +1 -1
  109. package/dist/packem_shared/{lifecycle-BAhkhE2L.js → lifecycle-DvmDIRbb.js} +1 -1
  110. package/dist/packem_shared/{lockfile-DHmlPGk1.js → lockfile-CiUtEbnt.js} +1 -1
  111. package/dist/packem_shared/{manifests-Dd4Hoztt.js → manifests-Du4yKlf_.js} +1 -1
  112. package/dist/packem_shared/{min-release-age-BJnOQaoF.js → min-release-age-JViyQuBM.js} +1 -1
  113. package/dist/packem_shared/{missing-package-json-DfzrGwe1.js → missing-package-json-Cu5YVAot.js} +1 -1
  114. package/dist/packem_shared/{multi-eco-lockfiles-BIa6xvJc.js → multi-eco-lockfiles-B2X3yhyo.js} +1 -1
  115. package/dist/packem_shared/{native-config-sync-Dr9XvxOf.js → native-config-sync-TdTWjVgI.js} +1 -1
  116. package/dist/packem_shared/osv-bloom-BCAX5ARR.js +2 -0
  117. package/dist/packem_shared/package-version-QFmE9anh.js +4 -0
  118. package/dist/packem_shared/{packument-C9nRiBJf.js → packument-zb18Jnlw.js} +1 -1
  119. package/dist/packem_shared/{pm-runner-ImwtpnWY.js → pm-runner-RM72mDZg.js} +1 -1
  120. package/dist/packem_shared/{project-name-filter-C2rkW-Vn.js → project-name-filter-DIqpdsvP.js} +1 -1
  121. package/dist/packem_shared/{provenance-DF-ypZj3.js → provenance-L1M2FPy_.js} +1 -1
  122. package/dist/packem_shared/{readJsonSync-CbryXYxN-Bm5i10UW.js → readJsonSync-CbryXYxN-EWl7_7KX.js} +1 -1
  123. package/dist/packem_shared/{registry-keys-BLuHOyZu.js → registry-keys-DxdqMzyp.js} +1 -1
  124. package/dist/packem_shared/{resolve-explicit-BDaQRR6o.js → resolve-explicit-CQa37JSq.js} +1 -1
  125. package/dist/packem_shared/{resolve-runtime-Cr19Pk6L.js → resolve-runtime-DNukUjIr.js} +1 -1
  126. package/dist/packem_shared/{run-file-XbRCF6Mp.js → run-file-UBukWaha.js} +1 -1
  127. package/dist/packem_shared/{runtime-check-Bh5q9IrT.js → runtime-check-1U8HrQd9.js} +1 -1
  128. package/dist/packem_shared/{s1ngularity-UCZN7skW.js → s1ngularity-CO5GkkqX.js} +1 -1
  129. package/dist/packem_shared/{scan-progress-DcYI76zE.js → scan-progress-RwCRxJdX.js} +1 -1
  130. package/dist/packem_shared/{selectors-DCiEU0iv.js → selectors-edwcgNl3.js} +2 -2
  131. package/dist/packem_shared/{signatures-CicxPHN4.js → signatures-DIqFUOfs.js} +1 -1
  132. package/dist/packem_shared/spinner-BJjbNl1F.js +1 -0
  133. package/dist/packem_shared/target-merge-DVJl-7Qz.js +4 -0
  134. package/dist/packem_shared/{target-options-PgWIuJnb.js → target-options-DsHFmRZH.js} +1 -1
  135. package/dist/packem_shared/{task-env-Dl08aklA.js → task-env-DzR4RkOj.js} +1 -1
  136. package/dist/packem_shared/{toolchain-DvUxlbDz.js → toolchain-Bz70UIcp.js} +1 -1
  137. package/dist/packem_shared/{typosquats-DxPzyK7u.js → typosquats-D4DEHhFy.js} +1 -1
  138. package/dist/packem_shared/{verify-CadR9PUk.js → verify-B_MblU_Q.js} +1 -1
  139. package/dist/packem_shared/{vis-update-app-DrFWQyPn.js → vis-update-app-9b2kSk9f.js} +1 -1
  140. package/dist/packem_shared/{vis-user-error-k7CLTpA4.js → vis-user-error-S0Fesz5y.js} +15 -15
  141. package/dist/packem_shared/{watch-Dr_6yz3o.js → watch-CcTketln.js} +1 -1
  142. package/dist/packem_shared/{watch-loop-BId9vT7Q.js → watch-loop-BEnGuMBn.js} +1 -1
  143. package/dist/packem_shared/{writeFileSync-DJoHk3Ks-Dhem3Uof.js → writeFileSync-DJoHk3Ks-BPRoepNw.js} +1 -1
  144. package/dist/runtime/preload.js +1 -1
  145. package/index.js +26 -26
  146. package/package.json +12 -12
  147. package/dist/packem_shared/index-C9ENZqH9.js +0 -39
  148. package/dist/packem_shared/index.server-D8BLnYZO.js +0 -2
  149. package/dist/packem_shared/osv-bloom-t40ra5U5.js +0 -2
  150. package/dist/packem_shared/package-version-CFuNUWDG.js +0 -4
  151. package/dist/packem_shared/spinner-ukDEdGvp.js +0 -1
  152. package/dist/packem_shared/target-merge-BClIXg2k.js +0 -14
package/index.js CHANGED
@@ -82,7 +82,7 @@ function requireNative() {
82
82
  const binding = require('@visulima/vis-binding-android-arm64')
83
83
  const bindingPackageVersion = require('@visulima/vis-binding-android-arm64/package.json').version
84
84
  if (bindingPackageVersion !== '4.3.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
85
- throw new Error(`Native binding package version mismatch, expected 6.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
85
+ throw new Error(`Native binding package version mismatch, expected 6.0.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
86
86
  }
87
87
  return binding
88
88
  } catch (e) {
@@ -98,7 +98,7 @@ function requireNative() {
98
98
  const binding = require('@visulima/vis-binding-android-arm-eabi')
99
99
  const bindingPackageVersion = require('@visulima/vis-binding-android-arm-eabi/package.json').version
100
100
  if (bindingPackageVersion !== '4.3.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
101
- throw new Error(`Native binding package version mismatch, expected 6.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
101
+ throw new Error(`Native binding package version mismatch, expected 6.0.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
102
102
  }
103
103
  return binding
104
104
  } catch (e) {
@@ -119,7 +119,7 @@ function requireNative() {
119
119
  const binding = require('@visulima/vis-binding-win32-x64-gnu')
120
120
  const bindingPackageVersion = require('@visulima/vis-binding-win32-x64-gnu/package.json').version
121
121
  if (bindingPackageVersion !== '4.3.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
122
- throw new Error(`Native binding package version mismatch, expected 6.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
122
+ throw new Error(`Native binding package version mismatch, expected 6.0.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
123
123
  }
124
124
  return binding
125
125
  } catch (e) {
@@ -135,7 +135,7 @@ function requireNative() {
135
135
  const binding = require('@visulima/vis-binding-win32-x64-msvc')
136
136
  const bindingPackageVersion = require('@visulima/vis-binding-win32-x64-msvc/package.json').version
137
137
  if (bindingPackageVersion !== '4.3.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
138
- throw new Error(`Native binding package version mismatch, expected 6.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
138
+ throw new Error(`Native binding package version mismatch, expected 6.0.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
139
139
  }
140
140
  return binding
141
141
  } catch (e) {
@@ -152,7 +152,7 @@ function requireNative() {
152
152
  const binding = require('@visulima/vis-binding-win32-ia32-msvc')
153
153
  const bindingPackageVersion = require('@visulima/vis-binding-win32-ia32-msvc/package.json').version
154
154
  if (bindingPackageVersion !== '4.3.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
155
- throw new Error(`Native binding package version mismatch, expected 6.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
155
+ throw new Error(`Native binding package version mismatch, expected 6.0.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
156
156
  }
157
157
  return binding
158
158
  } catch (e) {
@@ -168,7 +168,7 @@ function requireNative() {
168
168
  const binding = require('@visulima/vis-binding-win32-arm64-msvc')
169
169
  const bindingPackageVersion = require('@visulima/vis-binding-win32-arm64-msvc/package.json').version
170
170
  if (bindingPackageVersion !== '4.3.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
171
- throw new Error(`Native binding package version mismatch, expected 6.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
171
+ throw new Error(`Native binding package version mismatch, expected 6.0.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
172
172
  }
173
173
  return binding
174
174
  } catch (e) {
@@ -187,7 +187,7 @@ function requireNative() {
187
187
  const binding = require('@visulima/vis-binding-darwin-universal')
188
188
  const bindingPackageVersion = require('@visulima/vis-binding-darwin-universal/package.json').version
189
189
  if (bindingPackageVersion !== '4.3.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
190
- throw new Error(`Native binding package version mismatch, expected 6.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
190
+ throw new Error(`Native binding package version mismatch, expected 6.0.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
191
191
  }
192
192
  return binding
193
193
  } catch (e) {
@@ -203,7 +203,7 @@ function requireNative() {
203
203
  const binding = require('@visulima/vis-binding-darwin-x64')
204
204
  const bindingPackageVersion = require('@visulima/vis-binding-darwin-x64/package.json').version
205
205
  if (bindingPackageVersion !== '4.3.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
206
- throw new Error(`Native binding package version mismatch, expected 6.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
206
+ throw new Error(`Native binding package version mismatch, expected 6.0.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
207
207
  }
208
208
  return binding
209
209
  } catch (e) {
@@ -219,7 +219,7 @@ function requireNative() {
219
219
  const binding = require('@visulima/vis-binding-darwin-arm64')
220
220
  const bindingPackageVersion = require('@visulima/vis-binding-darwin-arm64/package.json').version
221
221
  if (bindingPackageVersion !== '4.3.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
222
- throw new Error(`Native binding package version mismatch, expected 6.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
222
+ throw new Error(`Native binding package version mismatch, expected 6.0.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
223
223
  }
224
224
  return binding
225
225
  } catch (e) {
@@ -239,7 +239,7 @@ function requireNative() {
239
239
  const binding = require('@visulima/vis-binding-freebsd-x64')
240
240
  const bindingPackageVersion = require('@visulima/vis-binding-freebsd-x64/package.json').version
241
241
  if (bindingPackageVersion !== '4.3.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
242
- throw new Error(`Native binding package version mismatch, expected 6.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
242
+ throw new Error(`Native binding package version mismatch, expected 6.0.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
243
243
  }
244
244
  return binding
245
245
  } catch (e) {
@@ -255,7 +255,7 @@ function requireNative() {
255
255
  const binding = require('@visulima/vis-binding-freebsd-arm64')
256
256
  const bindingPackageVersion = require('@visulima/vis-binding-freebsd-arm64/package.json').version
257
257
  if (bindingPackageVersion !== '4.3.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
258
- throw new Error(`Native binding package version mismatch, expected 6.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
258
+ throw new Error(`Native binding package version mismatch, expected 6.0.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
259
259
  }
260
260
  return binding
261
261
  } catch (e) {
@@ -276,7 +276,7 @@ function requireNative() {
276
276
  const binding = require('@visulima/vis-binding-linux-x64-musl')
277
277
  const bindingPackageVersion = require('@visulima/vis-binding-linux-x64-musl/package.json').version
278
278
  if (bindingPackageVersion !== '4.3.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
279
- throw new Error(`Native binding package version mismatch, expected 6.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
279
+ throw new Error(`Native binding package version mismatch, expected 6.0.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
280
280
  }
281
281
  return binding
282
282
  } catch (e) {
@@ -292,7 +292,7 @@ function requireNative() {
292
292
  const binding = require('@visulima/vis-binding-linux-x64-gnu')
293
293
  const bindingPackageVersion = require('@visulima/vis-binding-linux-x64-gnu/package.json').version
294
294
  if (bindingPackageVersion !== '4.3.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
295
- throw new Error(`Native binding package version mismatch, expected 6.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
295
+ throw new Error(`Native binding package version mismatch, expected 6.0.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
296
296
  }
297
297
  return binding
298
298
  } catch (e) {
@@ -310,7 +310,7 @@ function requireNative() {
310
310
  const binding = require('@visulima/vis-binding-linux-arm64-musl')
311
311
  const bindingPackageVersion = require('@visulima/vis-binding-linux-arm64-musl/package.json').version
312
312
  if (bindingPackageVersion !== '4.3.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
313
- throw new Error(`Native binding package version mismatch, expected 6.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
313
+ throw new Error(`Native binding package version mismatch, expected 6.0.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
314
314
  }
315
315
  return binding
316
316
  } catch (e) {
@@ -326,7 +326,7 @@ function requireNative() {
326
326
  const binding = require('@visulima/vis-binding-linux-arm64-gnu')
327
327
  const bindingPackageVersion = require('@visulima/vis-binding-linux-arm64-gnu/package.json').version
328
328
  if (bindingPackageVersion !== '4.3.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
329
- throw new Error(`Native binding package version mismatch, expected 6.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
329
+ throw new Error(`Native binding package version mismatch, expected 6.0.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
330
330
  }
331
331
  return binding
332
332
  } catch (e) {
@@ -344,7 +344,7 @@ function requireNative() {
344
344
  const binding = require('@visulima/vis-binding-linux-arm-musleabihf')
345
345
  const bindingPackageVersion = require('@visulima/vis-binding-linux-arm-musleabihf/package.json').version
346
346
  if (bindingPackageVersion !== '4.3.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
347
- throw new Error(`Native binding package version mismatch, expected 6.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
347
+ throw new Error(`Native binding package version mismatch, expected 6.0.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
348
348
  }
349
349
  return binding
350
350
  } catch (e) {
@@ -360,7 +360,7 @@ function requireNative() {
360
360
  const binding = require('@visulima/vis-binding-linux-arm-gnueabihf')
361
361
  const bindingPackageVersion = require('@visulima/vis-binding-linux-arm-gnueabihf/package.json').version
362
362
  if (bindingPackageVersion !== '4.3.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
363
- throw new Error(`Native binding package version mismatch, expected 6.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
363
+ throw new Error(`Native binding package version mismatch, expected 6.0.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
364
364
  }
365
365
  return binding
366
366
  } catch (e) {
@@ -378,7 +378,7 @@ function requireNative() {
378
378
  const binding = require('@visulima/vis-binding-linux-loong64-musl')
379
379
  const bindingPackageVersion = require('@visulima/vis-binding-linux-loong64-musl/package.json').version
380
380
  if (bindingPackageVersion !== '4.3.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
381
- throw new Error(`Native binding package version mismatch, expected 6.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
381
+ throw new Error(`Native binding package version mismatch, expected 6.0.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
382
382
  }
383
383
  return binding
384
384
  } catch (e) {
@@ -394,7 +394,7 @@ function requireNative() {
394
394
  const binding = require('@visulima/vis-binding-linux-loong64-gnu')
395
395
  const bindingPackageVersion = require('@visulima/vis-binding-linux-loong64-gnu/package.json').version
396
396
  if (bindingPackageVersion !== '4.3.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
397
- throw new Error(`Native binding package version mismatch, expected 6.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
397
+ throw new Error(`Native binding package version mismatch, expected 6.0.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
398
398
  }
399
399
  return binding
400
400
  } catch (e) {
@@ -412,7 +412,7 @@ function requireNative() {
412
412
  const binding = require('@visulima/vis-binding-linux-riscv64-musl')
413
413
  const bindingPackageVersion = require('@visulima/vis-binding-linux-riscv64-musl/package.json').version
414
414
  if (bindingPackageVersion !== '4.3.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
415
- throw new Error(`Native binding package version mismatch, expected 6.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
415
+ throw new Error(`Native binding package version mismatch, expected 6.0.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
416
416
  }
417
417
  return binding
418
418
  } catch (e) {
@@ -428,7 +428,7 @@ function requireNative() {
428
428
  const binding = require('@visulima/vis-binding-linux-riscv64-gnu')
429
429
  const bindingPackageVersion = require('@visulima/vis-binding-linux-riscv64-gnu/package.json').version
430
430
  if (bindingPackageVersion !== '4.3.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
431
- throw new Error(`Native binding package version mismatch, expected 6.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
431
+ throw new Error(`Native binding package version mismatch, expected 6.0.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
432
432
  }
433
433
  return binding
434
434
  } catch (e) {
@@ -445,7 +445,7 @@ function requireNative() {
445
445
  const binding = require('@visulima/vis-binding-linux-ppc64-gnu')
446
446
  const bindingPackageVersion = require('@visulima/vis-binding-linux-ppc64-gnu/package.json').version
447
447
  if (bindingPackageVersion !== '4.3.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
448
- throw new Error(`Native binding package version mismatch, expected 6.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
448
+ throw new Error(`Native binding package version mismatch, expected 6.0.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
449
449
  }
450
450
  return binding
451
451
  } catch (e) {
@@ -461,7 +461,7 @@ function requireNative() {
461
461
  const binding = require('@visulima/vis-binding-linux-s390x-gnu')
462
462
  const bindingPackageVersion = require('@visulima/vis-binding-linux-s390x-gnu/package.json').version
463
463
  if (bindingPackageVersion !== '4.3.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
464
- throw new Error(`Native binding package version mismatch, expected 6.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
464
+ throw new Error(`Native binding package version mismatch, expected 6.0.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
465
465
  }
466
466
  return binding
467
467
  } catch (e) {
@@ -481,7 +481,7 @@ function requireNative() {
481
481
  const binding = require('@visulima/vis-binding-openharmony-arm64')
482
482
  const bindingPackageVersion = require('@visulima/vis-binding-openharmony-arm64/package.json').version
483
483
  if (bindingPackageVersion !== '4.3.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
484
- throw new Error(`Native binding package version mismatch, expected 6.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
484
+ throw new Error(`Native binding package version mismatch, expected 6.0.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
485
485
  }
486
486
  return binding
487
487
  } catch (e) {
@@ -497,7 +497,7 @@ function requireNative() {
497
497
  const binding = require('@visulima/vis-binding-openharmony-x64')
498
498
  const bindingPackageVersion = require('@visulima/vis-binding-openharmony-x64/package.json').version
499
499
  if (bindingPackageVersion !== '4.3.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
500
- throw new Error(`Native binding package version mismatch, expected 6.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
500
+ throw new Error(`Native binding package version mismatch, expected 6.0.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
501
501
  }
502
502
  return binding
503
503
  } catch (e) {
@@ -513,7 +513,7 @@ function requireNative() {
513
513
  const binding = require('@visulima/vis-binding-openharmony-arm')
514
514
  const bindingPackageVersion = require('@visulima/vis-binding-openharmony-arm/package.json').version
515
515
  if (bindingPackageVersion !== '4.3.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
516
- throw new Error(`Native binding package version mismatch, expected 6.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
516
+ throw new Error(`Native binding package version mismatch, expected 6.0.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
517
517
  }
518
518
  return binding
519
519
  } catch (e) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visulima/vis",
3
- "version": "6.0.0",
3
+ "version": "6.0.1",
4
4
  "description": "A monorepo dev toolkit — task runner, remote caching, security scanning, git hooks, and AI agent integrations — powered by @visulima/task-runner",
5
5
  "keywords": [
6
6
  "build",
@@ -13,10 +13,10 @@
13
13
  "workspace"
14
14
  ],
15
15
  "homepage": "https://visulima.com/packages/vis",
16
- "bugs": "https://github.com/visulima/visulima/issues",
16
+ "bugs": "https://github.com/visulima/vis/issues",
17
17
  "repository": {
18
18
  "type": "git",
19
- "url": "git+https://github.com/visulima/visulima.git",
19
+ "url": "git+https://github.com/visulima/vis.git",
20
20
  "directory": "packages/tooling/vis"
21
21
  },
22
22
  "funding": [
@@ -116,7 +116,7 @@
116
116
  ],
117
117
  "dependencies": {
118
118
  "@visulima/error": "6.1.0",
119
- "@visulima/secret-scanner": "2.0.1",
119
+ "@visulima/secret-scanner": "2.0.2",
120
120
  "@visulima/source-map": "3.0.1",
121
121
  "@visulima/tabular": "4.1.0",
122
122
  "@visulima/task-runner": "3.0.0",
@@ -148,14 +148,14 @@
148
148
  }
149
149
  },
150
150
  "optionalDependencies": {
151
- "@visulima/vis-binding-darwin-arm64": "6.0.0",
152
- "@visulima/vis-binding-darwin-x64": "6.0.0",
153
- "@visulima/vis-binding-linux-arm64-gnu": "6.0.0",
154
- "@visulima/vis-binding-linux-arm64-musl": "6.0.0",
155
- "@visulima/vis-binding-linux-x64-gnu": "6.0.0",
156
- "@visulima/vis-binding-linux-x64-musl": "6.0.0",
157
- "@visulima/vis-binding-win32-arm64-msvc": "6.0.0",
158
- "@visulima/vis-binding-win32-x64-msvc": "6.0.0"
151
+ "@visulima/vis-binding-darwin-arm64": "6.0.1",
152
+ "@visulima/vis-binding-darwin-x64": "6.0.1",
153
+ "@visulima/vis-binding-linux-arm64-gnu": "6.0.1",
154
+ "@visulima/vis-binding-linux-arm64-musl": "6.0.1",
155
+ "@visulima/vis-binding-linux-x64-gnu": "6.0.1",
156
+ "@visulima/vis-binding-linux-x64-musl": "6.0.1",
157
+ "@visulima/vis-binding-win32-arm64-msvc": "6.0.1",
158
+ "@visulima/vis-binding-win32-x64-msvc": "6.0.1"
159
159
  },
160
160
  "engines": {
161
161
  "node": "^22.14.0 || >=24.10.0"
@@ -1,39 +0,0 @@
1
- const de=/[\t\n\r ]/,Xe=(e,n,t=4,s=79)=>{let o=n.position,i=n.position,r="",a="";for(;o>0&&!de.test(e.charAt(o-1));)if(o-=1,n.position-o>s/2-1){r=" ... ",o+=5;break}for(;i<e.length&&!de.test(e.charAt(i));)if(i+=1,i-n.position>s/2-1){a=" ... ",i-=5;break}const l=e.slice(o,i),u=" ".repeat(t+n.position-o+r.length);return`${" ".repeat(t)}${r}${l}${a}
2
- ${u}^`};class oe extends Error{mark;constructor(n,t,s){let o=n,i=t;if(t&&(o+=` at line ${String(t.line+1)}, column ${String(t.column+1)}`,s!==void 0)){const r=Xe(s,t);o+=`:
3
- ${r}`,i={...t,snippet:r}}super(o),this.name="YAMLError",this.mark=i}}let x=class extends oe{constructor(n,t,s){super(n,t,s),this.name="YAMLParseError"}},E=class extends oe{constructor(n,t,s){super(n,t,s),this.name="YAMLStringifyError"}},Ze=class extends oe{constructor(n,t,s){super(n,t,s),this.name="YAMLWarning"}},K=class{kind="SCALAR";value;anchor;comment;commentBefore;spaceBefore;tag;type;constructor(n){this.value=n}toJSON(){return I(this)}toString(){return String(this.value)}},$e=class{kind="ALIAS";source;comment;commentBefore;spaceBefore;constructor(n){this.source=n}toString(){return`*${this.source}`}},te=class{kind="PAIR";key;value;comment;commentBefore;spaceBefore;constructor(n,t){this.key=n,this.value=t}toJSON(){return{key:I(this.key),value:I(this.value)}}};const Q=(e,n)=>typeof e=="object"&&e!==null&&e.kind===n,v=e=>Q(e,"SCALAR"),ie=e=>Q(e,"ALIAS"),Ce=e=>Q(e,"PAIR"),U=e=>Q(e,"MAP"),re=e=>Q(e,"SEQ"),q=e=>U(e)||re(e),He=e=>v(e)||ie(e)||q(e),en=(e,n)=>{const t=v(e)?e.value:e,s=v(n)?n.value:n;return t===s};let Ne=class{anchor;comment;commentBefore;flow;spaceBefore;tag;getIn(n,t=!1){const[s,...o]=[...n];if(s===void 0)return;const i=this.get(s,!0);return o.length===0?t||!v(i)?i:i.value:q(i)?i.getIn(o,t):void 0}hasIn(n){const[t,...s]=[...n];if(t===void 0)return!1;if(s.length===0)return this.has(t);const o=this.get(t,!0);return q(o)?o.hasIn(s):!1}setIn(n,t){const[s,...o]=[...n];if(s===void 0)return;if(o.length===0){this.set(s,t);return}let i=this.get(s,!0);q(i)||(i=new T,this.set(s,i)),i.setIn(o,t)}deleteIn(n){const[t,...s]=[...n];if(t===void 0)return!1;if(s.length===0)return this.delete(t);const o=this.get(t,!0);return q(o)?o.deleteIn(s):!1}toJSON(){return I(this)}};class T extends Ne{kind="MAP";items=[];#e;#n=0;#o(){if(this.#e===void 0||this.#n!==this.items.length){const n=new Map;for(const t of this.items){const s=v(t.key)?t.key.value:t.key;n.has(s)||n.set(s,t)}this.#e=n,this.#n=this.items.length}return this.#e}#t(n){return this.#o().get(v(n)?n.value:n)}get(n,t=!1){const s=this.#t(n);if(s)return t||!v(s.value)?s.value:s.value.value}set(n,t){const s=this.#t(n);if(s){s.value=t;return}const o=new te(n,t);this.items.push(o),this.#e!==void 0&&this.#n===this.items.length-1&&(this.#e.set(v(n)?n.value:n,o),this.#n=this.items.length)}has(n){return this.#t(n)!==void 0}delete(n){const t=this.items.findIndex(s=>en(s.key,n));return t===-1?!1:(this.items.splice(t,1),this.#e=void 0,!0)}add(n){this.items.push(n)}}let ae=class extends Ne{kind="SEQ";items=[];get(n,t=!1){const s=V(n),o=s===void 0?void 0:this.items[s];return t||!v(o)?o:o.value}set(n,t){const s=V(n);s!==void 0&&(this.items[s]=t)}has(n){const t=V(n);return t!==void 0&&t<this.items.length}delete(n){const t=V(n);return t===void 0||t>=this.items.length?!1:(this.items.splice(t,1),!0)}add(n){this.items.push(n)}};const V=e=>{const n=v(e)?e.value:e,t=typeof n=="number"?n:Number(n);return Number.isInteger(t)&&t>=0?t:void 0},nn=e=>(v(e)?e.value:e)==="<<",xe=(e,n,t)=>{Object.defineProperty(e,n,{configurable:!0,enumerable:!0,value:t,writable:!0})},S=e=>typeof e=="string"?e:e===null||typeof e!="object"?String(e):v(e)?S(e.value):re(e)?`[${e.items.map(n=>S(n)).join(",")}]`:U(e)?`{${e.items.map(n=>`${S(n.key)}: ${S(n.value)}`).toSorted((n,t)=>n.localeCompare(t)).join(", ")}}`:ie(e)?`*${e.source}`:Array.isArray(e)?`[${e.map(n=>S(n)).join(",")}]`:Object.prototype.toString.call(e)==="[object Object]"?`{${Object.entries(e).map(([n,t])=>`${n}: ${S(t)}`).toSorted((n,t)=>n.localeCompare(t)).join(", ")}}`:Object.prototype.toString.call(e),tn=(e,n)=>{const t=I(e,n);return Array.isArray(t)?t.filter(s=>ge(s)):ge(t)?[t]:[]},ge=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),sn=(e,n)=>{const t={};e.anchor&&n.set(e.anchor,t);for(const s of e.items){if(nn(s.key)){on(t,s.value,n);continue}xe(t,S(s.key),I(s.value,n))}return t},on=(e,n,t)=>{for(const s of tn(n,t))for(const[o,i]of Object.entries(s))Object.hasOwn(e,o)||xe(e,o,i)},I=(e,n)=>{const t=n??new Map;if(v(e))return e.anchor&&t.set(e.anchor,e.value),e.value;if(ie(e))return t.get(e.source);if(re(e)){const s=[];e.anchor&&t.set(e.anchor,s);for(const o of e.items)s.push(I(o,t));return s}return U(e)?sn(e,t):Ce(e)?{key:I(e.key,t),value:I(e.value,t)}:e},L=e=>{if(He(e)||Ce(e))return e;if(Array.isArray(e)){const n=new ae;for(const t of e)n.items.push(L(t));return n}if(e instanceof Map){const n=new T;for(const[t,s]of e)n.items.push(new te(L(t),L(s)));return n}if(typeof e=="object"&&e!==null&&Object.prototype.toString.call(e)==="[object Object]"){const n=new T;for(const[t,s]of Object.entries(e))n.items.push(new te(new K(t),L(s)));return n}return new K(e)},Me=/^[-+]?\d+$/,je=/^0x[0-9a-fA-F]+$/,Le=/^0o[0-7]+$/,rn=/^[-+]?(?:\.\d+|\d+(?:\.\d*)?)(?:e[-+]?\d+)?$/i,an=/^([-+]?)\.(?:inf|Inf|INF)$/,ln=/^\.(?:nan|NaN|NAN)$/,cn=e=>e==="~"||e==="null"||e==="Null"||e==="NULL",Oe=e=>e==="true"||e==="True"||e==="TRUE",Te=e=>e==="false"||e==="False"||e==="FALSE",le=e=>{if(e.length===0)return null;const n=e.charCodeAt(0);if(n>=65&&n<=90||n>=97&&n<=122||n===126){const{length:t}=e;if(t===1)return n===126?null:e;if(t===4){if(cn(e))return null;if(Oe(e))return!0}else if(t===5&&Te(e))return!1;return e}if(n>=48&&n<=57||n===43||n===45||n===46){if(Me.test(e))return Number.parseInt(e,10);if(n===48&&je.test(e))return Number.parseInt(e.slice(2),16);if(n===48&&Le.test(e))return Number.parseInt(e.slice(2),8);if(n===46||n===43||n===45){const t=an.exec(e);if(t)return t[1]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY;if(ln.test(e))return Number.NaN}if(rn.test(e))return Number.parseFloat(e)}return e},un=e=>le(e)!==e,H={status:"invalid"},pn={status:"unknown"},fn=(e,n)=>{switch(e){case"!!bool":case"tag:yaml.org,2002:bool":return Oe(n)?{status:"ok",value:!0}:Te(n)?{status:"ok",value:!1}:H;case"!!float":case"tag:yaml.org,2002:float":{const t=le(n);return typeof t=="number"?{status:"ok",value:t}:H}case"!!int":case"tag:yaml.org,2002:int":return je.test(n)?{status:"ok",value:Number.parseInt(n.slice(2),16)}:Le.test(n)?{status:"ok",value:Number.parseInt(n.slice(2),8)}:Me.test(n)?{status:"ok",value:Number.parseInt(n,10)}:H;case"!!null":case"tag:yaml.org,2002:null":return{status:"ok",value:null};case"!!str":case"tag:yaml.org,2002:str":return{status:"ok",value:n};default:return pn}},hn=e=>e.startsWith("!!")?[e,`tag:yaml.org,2002:${e.slice(2)}`]:[e],dn=e=>{if(!e)return;const n=typeof e=="function"?e([]):e;if(!Array.isArray(n))throw new x("customTags must be an array of tags, or a function returning one");if(n.length===0)return;const t=new Map,s=[];for(const o of n){for(const i of hn(o.tag))t.set(i,o);if(o.default&&o.test){const i=o.test.flags.includes("g")||o.test.flags.includes("y")?new RegExp(o.test.source,o.test.flags.replaceAll(/[gy]/gu,"")):o.test;s.push({...o,test:i})}}return{byTag:t,implicit:s}},gn=(e,n)=>{if(e){for(const t of e.implicit)if(t.test.test(n))return{value:t.resolve(n)}}},ce=(e,n)=>{if(e){for(const t of e)if(t.identify?.(n)){const s=t.stringify?t.stringify(n):String(n);return`${t.tag} ${s}`}}},mn=/[\u0000-\u0008\u000B-\u001F\u007F-\u009F\u2028\u2029\uFFFE\uFFFF]/,bn=new Set("!\"#%&'*,-:>?@[\\]`{|}"),yn=/^\s|\s$/,An=/[\n\t]/,kn=/:[ \t]|:$|[ \t]#/,vn=/[,[\]{}]/,wn=/^\s/,Sn=/[ \t]$/,In=e=>{let n=e.length;for(;n>0&&e.codePointAt(n-1)===10;)n-=1;return n===e.length?e:e.slice(0,n)},$n=/[\n\t]/g,Cn=/\t/,Nn=/^\S+(?: \S+)*$/,Z=(e,n)=>" ".repeat(e*n.indent),xn=(e,n)=>e<n?-1:e>n?1:0,Mn=(e,n)=>!(e.length===0||e==="<<"||bn.has(e[0])||yn.test(e)||An.test(e)||kn.test(e)||n&&vn.test(e)),jn=e=>`'${e.replaceAll("'","''")}'`,W=(e,n)=>{let t="";for(const s of e){const o=s.codePointAt(0);switch(s){case`
4
- `:{t+=String.raw`\n`;break}case" ":{t+=String.raw`\t`;break}case"\r":{t+=String.raw`\r`;break}case"\0":{t+=String.raw`\0`;break}case"\f":{t+=String.raw`\f`;break}case"\v":{t+=String.raw`\v`;break}case"\b":{t+=String.raw`\b`;break}case"\x1B":{t+=String.raw`\e`;break}case'"':{t+=String.raw`\"`;break}case"\\":{t+="\\\\";break}default:{const i=o.toString(16).toUpperCase();o<32||o>=127&&o<=159?t+=String.raw`\x${i.padStart(2,"0")}`:n&&o>126?t+=o<=255?String.raw`\x${i.padStart(2,"0")}`:String.raw`\u${i.padStart(4,"0")}`:t+=s}}}return`"${t}"`},Ln=(e,n,t)=>{const s=Z(n+1,t);let o="",i=e;e.endsWith(`
5
- `)?(e.endsWith(`
6
-
7
- `)&&(o="+"),i=e.slice(0,-1)):o="-";const r=i.split(`
8
- `).map(a=>a===""?"":s+a).join(`
9
- `);return`|${o}
10
- ${r}`},On=(e,n)=>{const t=e.split(" "),s=[];let o="";for(const i of t)o===""?o=i:o.length+1+i.length<=n?o+=` ${i}`:(s.push(o),o=i);return o!==""&&s.push(o),s},Tn=(e,n,t)=>{const s=Z(n+1,t),o=Math.max(1,t.lineWidth-s.length);return`>-
11
- ${On(e,o).map(i=>s+i).join(`
12
- `)}`},Fn=(e,n,t)=>{if(t.lineWidth<=0)return!1;const s=t.lineWidth-(n+1)*t.indent;return e.length<=s?!1:e.includes(" ")&&Nn.test(e)},ue=(e,n,t,s)=>e===""?'""':mn.test(e.replaceAll($n,""))?W(e,t.forceQuotes):t.forceQuotes?W(e,!0):e.includes(`
13
- `)?t.blockQuote!==!1&&!s&&!wn.test(e)&&!Sn.test(In(e))?Ln(e,n,t):W(e,!1):Mn(e,s)&&!un(e)?!s&&Fn(e,n,t)?Tn(e,n,t):e:Cn.test(e)?W(e,!1):t.singleQuote?jn(e):W(e,!1),En=e=>Number.isNaN(e)?".nan":e===Number.POSITIVE_INFINITY?".inf":e===Number.NEGATIVE_INFINITY?"-.inf":Object.is(e,-0)?"-0":String(e),Fe=(e,n)=>{const t=Object.entries(e);if(n.sortKeys===!0)t.sort(([s],[o])=>xn(s,o));else if(typeof n.sortKeys=="function"){const s=n.sortKeys;t.sort(([o],[i])=>s(o,i))}return t},Pn=e=>Array.isArray(e)?e.length>0:typeof e=="object"&&e!==null&&Object.keys(e).length>0,D=(e,n,t)=>{let s=t;return s!==null&&typeof s=="object"&&typeof s.toJSON=="function"&&(s=s.toJSON()),e.replacer&&(s=e.replacer(n,s)),s},J=(e,n,t)=>{const s=ce(t.customTags,e);if(s!==void 0)return s;if(Array.isArray(e)){G(e,t),t.stack.add(e);const o=e.map((i,r)=>J(D(t,String(r),i),n,t));return t.stack.delete(e),o.length===0?"[]":t.flowCollectionPadding?`[ ${o.join(", ")} ]`:`[${o.join(", ")}]`}if(typeof e=="object"&&e!==null){G(e,t),t.stack.add(e);const o=Fe(e,t).map(([i,r])=>`${ue(i,n,t,!0)}: ${J(D(t,i,r),n,t)}`);return t.stack.delete(e),o.length===0?"{}":t.flowCollectionPadding?`{ ${o.join(", ")} }`:`{${o.join(", ")}}`}return Ee(e,n,t,!0)},Ee=(e,n,t,s)=>{if(e==null)return t.nullStr;switch(typeof e){case"bigint":return e.toString();case"boolean":return e?t.trueStr:t.falseStr;case"number":return En(e);case"string":return ue(e,n,t,s);default:{if(t.skipInvalid)return t.nullStr;throw new E(`cannot serialize a value of type "${typeof e}"`)}}},Pe=(e,n,t)=>{const s=ce(t.customTags,e);return s!==void 0?s:Array.isArray(e)?e.length===0?"[]":se(n,t)?J(e,n,t):_n(e,n,t):typeof e=="object"&&e!==null&&Object.prototype.toString.call(e)==="[object Object]"?Object.keys(e).length===0?"{}":se(n,t)?J(e,n,t):Wn(e,n,t):Ee(e,n,t,!1)},G=(e,n)=>{if(n.stack.has(e))throw new E("cannot serialize a circular structure to YAML")},se=(e,n)=>n.collectionStyle==="flow"?!0:n.collectionStyle==="block"?!1:n.flowLevel>=0&&e>=n.flowLevel,_e=(e,n,t)=>{const s=Pn(e)&&ce(t.customTags,e)===void 0,o=Pe(e,s?n+1:n,t);return{block:s&&!se(n+1,t)&&o!=="[]"&&o!=="{}",text:o}},_n=(e,n,t)=>{G(e,t),t.stack.add(e);const s=t.indentSeq||n===0?n:n-1,o=Z(s,t),i=`-${" ".repeat(t.indent-1)}`,r=(s+1)*t.indent,a=[];for(const[l,u]of e.entries()){const p=D(t,String(l),u);if(p===void 0&&t.skipInvalid&&!t.keepUndefined)continue;const{block:f,text:b}=_e(p,s,t);a.push(o+i+(f?b.slice(r):b))}return t.stack.delete(e),a.length===0?"[]":a.join(`
14
- `)},Wn=(e,n,t)=>{G(e,t),t.stack.add(e);const s=Z(n,t),o=Fe(e,t),i=[];for(const[r,a]of o){const l=D(t,r,a);if(l===void 0&&!t.keepUndefined)continue;const u=ue(r,n,t,!0),{block:p,text:f}=_e(l,n,t);i.push(p?`${s+u}:
15
- ${f}`:`${s+u}: ${f}`)}return t.stack.delete(e),i.length===0?"{}":i.join(`
16
- `)},B=(e,n={})=>{const t={blockQuote:n.blockQuote??!0,collectionStyle:n.collectionStyle??"any",customTags:typeof n.customTags=="function"?n.customTags([]):n.customTags,falseStr:n.falseStr??"false",flowCollectionPadding:n.flowCollectionPadding??!0,flowLevel:n.flowLevel??-1,forceQuotes:n.forceQuotes??!1,indent:n.indent??2,indentSeq:n.indentSeq??!0,keepUndefined:n.keepUndefined??!1,lineWidth:n.lineWidth??80,nullStr:n.nullStr??"null",replacer:n.replacer,singleQuote:n.singleQuote??!1,skipInvalid:n.skipInvalid??!1,sortKeys:n.sortKeys??!1,stack:new Set,trueStr:n.trueStr??"true"};if(t.indent<2)throw new E("indentation width must be at least 2");const s=D(t,"",e);if(s===void 0)return n.directives?`---
17
- `:`
18
- `;const o=Pe(s,0,t);return`${n.directives?`---
19
- `:""}${o}
20
- `},We=Symbol("invalid scalar"),qn=/^-?(?:0|[1-9]\d*)$/,Bn=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:e[-+]?\d+)?$/i,Yn=/^[-+]?(?:0|[1-9][\d_]*)$/,Kn=/^[-+]?0[0-7_]+$/,Un=/^[-+]?0x[\dA-Fa-f_]+$/,Dn=/^[-+]?0b[01_]+$/,Qn=/^[-+]?(?:\d[\d_]*)?\.[\d_]*(?:e[-+]?\d+)?$/i,Rn=/^[-+]?[1-9][\d_]*(?::[0-5]?\d)+$/,Vn=/^[-+]?[1-9][\d_]*(?::[0-5]?\d)+\.[\d_]*$/,Jn=/^([-+])?\.(?:inf|Inf|INF)$/,Gn=/^\.(?:nan|NaN|NAN)$/,zn=/^[-+]?0b/,Xn=/^[-+]?0x/,Zn=/^[-+]?0/,Hn=new Set(["","null","Null","NULL","~"]),et=new Set(["on","On","ON","true","True","TRUE","y","Y","yes","Yes","YES"]),nt=new Set(["false","False","FALSE","n","N","no","No","NO","off","Off","OFF"]),j=e=>e.includes("_")?e.replaceAll("_",""):e,me=(e,n)=>{const t=j(e),s=t.startsWith("-"),o=s||t.startsWith("+")?t.slice(1):t;let i=0;for(const r of o.split(":"))i=i*60+(n?Number.parseFloat(r):Number.parseInt(r,10));return s?-i:i},tt=e=>{let n=0;const t=(d,h)=>{let m=0,g=0;for(;g<h&&n<e.length;){const w=e.codePointAt(n)??0;if(w<48||w>57)break;m=m*10+(w-48),n+=1,g+=1}return g<d?-1:m},s=d=>e[n]===d?(n+=1,!0):!1,o=()=>{const d=n;for(;e[n]===" "||e[n]===" ";)n+=1;return n-d},i=t(4,4);if(i<0||!s("-"))return;const r=t(1,2);if(r<0||!s("-"))return;const a=t(1,2);if(a<0)return;if(n===e.length)return new Date(Date.UTC(i,r-1,a));if(!s("T")&&!s("t")&&o()===0)return;const l=t(1,2);if(l<0||!s(":"))return;const u=t(2,2);if(u<0||!s(":"))return;const p=t(2,2);if(p<0)return;let f=0;if(s(".")){const d=n;if(t(1,9)<0)return;f=Math.round(+`0.${e.slice(d,n)}`*1e3)}o();let b=0;if(n<e.length&&!s("Z")&&!s("z")){const d=s("-");if(!d&&!s("+"))return;const h=t(1,2);if(h<0)return;s(":");const m=n<e.length?t(2,2):0;if(m<0)return;b=(h*60+m)*(d?-1:1)}if(n===e.length)return new Date(Date.UTC(i,r-1,a,l,u,p,f)-b*6e4)},st=e=>e,ot=e=>e==="null"?null:e==="true"?!0:e==="false"?!1:qn.test(e)?Number.parseInt(e,10):Bn.test(e)?Number.parseFloat(e):We,it=e=>{if(Hn.has(e))return null;if(et.has(e))return!0;if(nt.has(e))return!1;if(Dn.test(e)){const t=j(e);return(t.startsWith("-")?-1:1)*Number.parseInt(t.replace(zn,""),2)}if(Un.test(e)){const t=j(e);return(t.startsWith("-")?-1:1)*Number.parseInt(t.replace(Xn,""),16)}if(Kn.test(e)){const t=j(e);return(t.startsWith("-")?-1:1)*Number.parseInt(t.replace(Zn,""),8)}if(Vn.test(e))return me(e,!0);if(Rn.test(e))return me(e,!1);if(Yn.test(e))return Number.parseInt(j(e),10);const n=Jn.exec(e);return n?n[1]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY:Gn.test(e)?Number.NaN:Qn.test(e)?Number.parseFloat(j(e)):tt(e)??e},ee={core:le,failsafe:st,json:ot,"yaml-1.1":it},rt=/^[-+]?(?:0B[01]+|0O[0-7]+|0X[\dA-F]+|\d+)$/i,at=e=>n=>{const t=e(n);if(typeof t!="number"||!Number.isInteger(t))return t;const s=j(n);return rt.test(s)?BigInt(s):t},lt=e=>e==="core"||e==="failsafe"||e==="json"||e==="yaml-1.1",be=(e,n,t=!1)=>{let s=ee.core;if(e!==void 0){if(!lt(e))throw new x(`unknown schema "${String(e)}"; expected one of core, failsafe, json, yaml-1.1`);s=ee[e]}else n==="1.1"&&(s=ee["yaml-1.1"]);return t?at(s):s},ct="tag:yaml.org,2002:merge",qe=(e,n)=>e===ct||e==="?"&&n==="<<",ut={alias:(e,n)=>e.anchorMap.get(n),anchor:()=>{},finish:(e,n)=>n,has:(e,n)=>Object.hasOwn(e,n),isMergeKey:qe,key:(e,n)=>S(n),map:()=>({}),push:(e,n)=>{e.push(n)},seq:()=>[],set:(e,n,t,s)=>{if(t==="__proto__"&&e.options.preventProtoPollution){Object.defineProperty(n,t,{configurable:!0,enumerable:!0,value:s,writable:!0});return}n[t]=s}},pt={alias:(e,n)=>e.anchorMap.get(n),anchor:()=>{},finish:(e,n)=>n,has:(e,n)=>e.has(n),isMergeKey:qe,key:(e,n)=>e.options.stringKeys?S(n):n,map:()=>new Map,push:(e,n)=>{e.push(n)},seq:()=>[],set:(e,n,t,s)=>{n.set(t,s)}},ft={alias:(e,n)=>new $e(n),anchor:(e,n)=>{e.anchor=n},finish:(e,n,t)=>ht(e,n,t),has:(e,n)=>e.has(n),isMergeKey:()=>!1,key:(e,n)=>e.options.stringKeys?new K(S(n)):n,map:()=>new T,push:(e,n)=>{e.items.push(n)},seq:()=>new ae,set:(e,n,t,s)=>{n.set(t,s)}},ht=(e,n,t)=>{if(n instanceof $e)return n;if(n instanceof K)return e.anchor!==null&&(n.anchor=e.anchor),e.tag!==null&&e.tag!=="?"&&e.tag!=="!"&&(n.tag=e.tag),n;if(n instanceof T||n instanceof ae)return e.tag!==null&&e.tag!=="?"&&e.tag!=="!"&&(n.tag=e.tag),n;const s=new K(n);return t&&e.scalarStyle&&(s.type=e.scalarStyle),e.anchor!==null&&(s.anchor=e.anchor),e.tag!==null&&e.tag!=="?"&&e.tag!=="!"&&(s.tag=e.tag),s},dt=(e,n)=>e?ft:n?pt:ut;let gt=class{input;length;position=0;line=0;lineStart=0;lineIndent=0;firstTabInLine=-1;documentMarkerLine=-1;documents=[];tag=null;anchor=null;kind=null;result=null;anchorMap=new Map;tagMap=new Map;aliasCount=0;depth=0;mappingRanges=null;resolveScalar;#e;nodes;build;lineCounter;scalarStyle=void 0;tags;options;constructor(e,n){this.input=e,this.length=e.length,this.options={...n,duplicateKeys:n.duplicateKeys??"error",maxAliasCount:n.maxAliasCount??100,maxDepth:n.maxDepth??1e3,preventProtoPollution:n.preventProtoPollution??!0,strict:n.strict??!0},this.#e=be(this.options.schema,this.options.version,this.options.intAsBigInt),this.resolveScalar=this.#e,this.tags=dn(this.options.customTags),this.nodes=n.nodes??!1,this.build=dt(this.nodes,this.options.mapAsMap),this.lineCounter=n.lineCounter}applyVersionDirective(e){this.resolveScalar=e==="1.1"||e==="1.2"?be(this.options.schema,e,this.options.intAsBigInt):this.#e}resetVersionDirective(){this.resolveScalar=this.#e}};const Be=e=>({anchor:e.anchor,firstTabInLine:e.firstTabInLine,kind:e.kind,line:e.line,lineIndent:e.lineIndent,lineStart:e.lineStart,position:e.position,result:e.result,tag:e.tag}),Ye=(e,n)=>{e.position=n.position,e.line=n.line,e.lineStart=n.lineStart,e.lineIndent=n.lineIndent,e.firstTabInLine=n.firstTabInLine,e.tag=n.tag,e.anchor=n.anchor,e.kind=n.kind,e.result=n.result},mt=e=>({aliasCount:e.aliasCount,anchorMap:new Map(e.anchorMap),cursor:Be(e)}),bt=(e,n)=>{e.anchorMap=n.anchorMap,e.aliasCount=n.aliasCount,Ye(e,n.cursor)},c=(e,n)=>{throw new x(n,{column:e.position-e.lineStart,line:e.line,position:e.position},e.input)},yt=(e,n)=>{e.options.onWarning&&e.options.onWarning(new Ze(n,{column:e.position-e.lineStart,line:e.line,position:e.position},e.input))},Ke=e=>typeof e=="object"&&e!==null&&Object.prototype.toString.call(e)==="[object Object]",At=e=>e instanceof Map?[...e.keys()]:Object.keys(e),kt=(e,n)=>e instanceof Map?e.get(n):e[String(n)],ye=(e,n,t,s)=>{!Ke(t)&&!(t instanceof Map)&&c(e,"cannot merge mappings; the provided source object is unacceptable");const o=t;for(const i of At(o))e.build.has(n,i)||(e.build.set(e,n,i,kt(o,i)),s.add(i))},vt=(e,n,t,s,o,i)=>{if(e.mappingRanges===null||s<0)return;let r=e.mappingRanges.get(n);r===void 0&&(r=[],e.mappingRanges.set(n,r)),r.push({column:s-(e.input.lastIndexOf(`
21
- `,s-1)+1),end:i,key:S(t),start:s,valueStart:o})},F=(e,n,t,s,o,i)=>{const{build:r}=e;let a=t;if(e.options.merge!==!1&&r.isMergeKey(s,o)){if(a??=new Set,Array.isArray(i))for(const u of i)ye(e,n,u,a);else ye(e,n,i,a);return a}const l=r.key(e,o);if(!a?.has(l)&&r.has(n,l)){if(e.options.duplicateKeys==="error")c(e,`duplicated mapping key "${String(l)}"`);else if(e.options.duplicateKeys==="ignore")return a}return r.set(e,n,l,i),a?.delete(l),a},$=e=>e===10||e===13,C=e=>e===9||e===32,k=e=>e===9||e===32||e===10||e===13||e===0,O=e=>e===44||e===91||e===93||e===123||e===125,Ue=new Uint8Array(128);for(const e of[33,34,35,37,38,39,42,62,64,96,124])Ue[e]=1;const wt=e=>e<128&&Ue[e]===1,St=e=>{if(e>=48&&e<=57)return e-48;const n=e|32;return n>=97&&n<=102?n-97+10:-1},It=e=>e>=48&&e<=57?e-48:-1,y=Array.from({length:256});y[48]="\0";y[97]="\x07";y[98]="\b";y[116]=" ";y[9]=" ";y[110]=`
22
- `;y[118]="\v";y[102]="\f";y[114]="\r";y[101]="\x1B";y[32]=" ";y[34]='"';y[47]="/";y[92]="\\";y[78]="…";y[95]=" ";y[76]="\u2028";y[80]="\u2029";const $t=e=>{switch(e){case 85:return 8;case 117:return 4;case 120:return 2;default:return 0}},N=(e,n,t)=>{n<t&&(e.result=e.result+e.input.slice(n,t))},pe=(e,n)=>{n===1?e.result=`${e.result} `:n>1&&(e.result=e.result+`
23
- `.repeat(n-1))},fe=e=>{const n=e.input.charCodeAt(e.position);n===10?e.position++:n===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):c(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1,e.lineCounter?.addNewLine(e.position)},A=(e,n,t)=>{let s=0,o=e.input.charCodeAt(e.position);for(;o!==0;){for(;C(o);)o===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),o=e.input.charCodeAt(++e.position);if(n&&o===35){const i=e.position===e.lineStart?10:e.input.charCodeAt(e.position-1);k(i)||c(e,"a comment must be separated from other tokens by white space characters");do o=e.input.charCodeAt(++e.position);while(o!==10&&o!==13&&o!==0)}if($(o))for(fe(e),o=e.input.charCodeAt(e.position),s++,e.lineIndent=0;o===32;)e.lineIndent++,o=e.input.charCodeAt(++e.position);else break}return t!==-1&&s!==0&&e.lineIndent<t&&c(e,"deficient indentation"),s},R=e=>{let{position:n}=e,t=e.input.charCodeAt(n);return!!((t===45||t===46)&&t===e.input.charCodeAt(n+1)&&t===e.input.charCodeAt(n+2)&&(n+=3,t=e.input.charCodeAt(n),t===0||k(t)))},Ct=/^(?:!|!!|![a-z-]+!)$/i,Nt=e=>{let n=e.input.charCodeAt(e.position);if(n!==33)return!1;e.tag!==null&&c(e,"duplication of a tag property");let t=!1,s=!1,o="!";n=e.input.charCodeAt(++e.position),n===60?(t=!0,n=e.input.charCodeAt(++e.position)):n===33&&(s=!0,o="!!",n=e.input.charCodeAt(++e.position));let{position:i}=e,r;if(t){do n=e.input.charCodeAt(++e.position);while(n!==0&&n!==62);if(n===62)r=e.input.slice(i,e.position),e.position++;else return c(e,"unexpected end of the stream within a verbatim tag")}else{for(;n!==0&&!k(n)&&!O(n);)n===33&&(s?c(e,"tag suffix cannot contain exclamation marks"):(o=e.input.slice(i-1,e.position+1),Ct.test(o)||c(e,"named tag handle cannot contain such characters"),s=!0,i=e.position+1)),n=e.input.charCodeAt(++e.position);r=e.input.slice(i,e.position)}return t?e.tag=r:e.tagMap.has(o)?e.tag=e.tagMap.get(o)+r:o==="!"?e.tag=`!${r}`:o==="!!"?e.tag=`tag:yaml.org,2002:${r}`:c(e,`undeclared tag handle "${o}"`),!0},xt=e=>{let n=e.input.charCodeAt(e.position);if(n!==38)return!1;e.anchor!==null&&c(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position);const{position:t}=e;for(;n!==0&&!k(n)&&!O(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&c(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0},Mt=e=>{let n=e.input.charCodeAt(e.position);if(n!==42)return!1;n=e.input.charCodeAt(++e.position);const{position:t}=e;for(;n!==0&&!k(n)&&!O(n);)n=e.input.charCodeAt(++e.position);e.position===t&&c(e,"name of an alias node must contain at least one character");const s=e.input.slice(t,e.position);return e.anchorMap.has(s)||c(e,`unidentified alias "${s}"`),e.aliasCount++,e.aliasCount>e.options.maxAliasCount&&c(e,"alias reference count limit exceeded (possible resource-exhaustion attack)"),e.result=e.build.alias(e,s),e.kind="scalar",!0},ne=1,jt=2,Ae=3,Lt=(e,n,t)=>{e.scalarStyle="PLAIN";const s=e.kind,o=e.result,{input:i}=e;let r=i.charCodeAt(e.position);if(k(r)||O(r)||wt(r))return!1;let a;if((r===63||r===45)&&(a=i.charCodeAt(e.position+1),k(a)||t&&O(a)))return!1;e.kind="scalar",e.result="";let l=e.position,u=e.position,p=!1,f=0,b=0,d=0;for(;r!==0;){if(r===58){if(a=i.charCodeAt(e.position+1),k(a)||t&&O(a))break}else if(r===35){const h=i.charCodeAt(e.position-1);if(k(h))break}else{if(e.position===e.lineStart&&R(e)||t&&O(r))break;if($(r))if(f=e.line,b=e.lineStart,d=e.lineIndent,A(e,!1,-1),e.lineIndent>=n){p=!0,r=i.charCodeAt(e.position);continue}else{e.position=u,e.line=f,e.lineStart=b,e.lineIndent=d;break}}p&&(N(e,l,u),pe(e,e.line-f),l=e.position,u=e.position,p=!1),C(r)||(u=e.position+1),r=i.charCodeAt(++e.position)}return N(e,l,u),e.result!==""?!0:(e.kind=s,e.result=o,!1)},Ot=(e,n)=>{e.scalarStyle="QUOTE_SINGLE";let t=e.input.charCodeAt(e.position);if(t!==39)return!1;e.kind="scalar",e.result="",e.position++;let s=e.position,o=e.position;for(;(t=e.input.charCodeAt(e.position))!==0;)if(t===39)if(N(e,s,e.position),t=e.input.charCodeAt(++e.position),t===39)s=e.position,e.position++,o=e.position;else return!0;else $(t)?(N(e,s,o),pe(e,A(e,!1,n)),s=e.position,o=e.position):e.position===e.lineStart&&R(e)?c(e,"unexpected end of the document within a single quoted scalar"):(C(t)||(o=e.position+1),e.position++);return c(e,"unexpected end of the stream within a single quoted scalar")},Tt=(e,n)=>{e.scalarStyle="QUOTE_DOUBLE";let t=e.input.charCodeAt(e.position);if(t!==34)return!1;e.kind="scalar",e.result="",e.position++;let s=e.position,o=e.position;for(;(t=e.input.charCodeAt(e.position))!==0;){if(t===34)return N(e,s,e.position),e.position++,!0;if(t===92){if(N(e,s,e.position),t=e.input.charCodeAt(++e.position),$(t))A(e,!1,n);else if(t<256&&y[t]!==void 0)e.result=e.result+y[t],e.position++;else{const i=$t(t);if(i>0){let r=i,a=0;for(;r>0;r--){t=e.input.charCodeAt(++e.position);const l=St(t);l>=0?a=a*16+l:c(e,"expected hexadecimal character")}a>1114111&&c(e,`code point "${a.toString(16).toUpperCase()}" is outside the Unicode range`),e.result=e.result+String.fromCodePoint(a),e.position++}else c(e,"unknown escape sequence")}s=e.position,o=e.position}else $(t)?(N(e,s,o),pe(e,A(e,!1,n)),s=e.position,o=e.position):e.position===e.lineStart&&R(e)?c(e,"unexpected end of the document within a double quoted scalar"):(C(t)||(o=e.position+1),e.position++)}return c(e,"unexpected end of the stream within a double quoted scalar")},Ft=(e,n)=>{let t=e.input.charCodeAt(e.position),s;if(t===124)s=!1,e.scalarStyle="BLOCK_LITERAL";else if(t===62)s=!0,e.scalarStyle="BLOCK_FOLDED";else return!1;e.kind="scalar",e.result="";let o=ne,i=!1,r=!1,a=n,l=0,u=!1,p=0;for(;t!==0;)if(t=e.input.charCodeAt(++e.position),t===43||t===45)o===ne?o=t===43?Ae:jt:c(e,"repeat of a chomping mode identifier");else{const f=It(t);if(f>=0)f===0?c(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):r?c(e,"repeat of an indentation width identifier"):(a=n+f-1,r=!0);else break}if(C(t)){do t=e.input.charCodeAt(++e.position);while(C(t));if(t===35)do t=e.input.charCodeAt(++e.position);while(!$(t)&&t!==0)}for(;t!==0;){for(fe(e),e.lineIndent=0,t=e.input.charCodeAt(e.position);(!r||e.lineIndent<a)&&t===32;)e.lineIndent++,t=e.input.charCodeAt(++e.position);if(!r&&e.lineIndent>a&&(a=e.lineIndent),$(t)){!r&&e.lineIndent>p&&(p=e.lineIndent),l++;continue}e.options.strict&&t===9&&e.lineIndent<a&&c(e,"tab characters must not be used in indentation");const f=e.position===e.lineStart&&R(e);if(e.options.strict&&t!==0&&!f&&!r&&p>e.lineIndent&&c(e,"a block scalar's leading empty lines cannot be indented more than its content"),e.lineIndent<a||t===0||f){o===Ae?e.result=e.result+`
24
- `.repeat(i?1+l:l):o===ne&&i&&(e.result=`${e.result}
25
- `);break}s?C(t)?(u=!0,e.result=e.result+`
26
- `.repeat(i?1+l:l)):u?(u=!1,e.result=e.result+`
27
- `.repeat(l+1)):l===0?i&&(e.result=`${e.result} `):e.result=e.result+`
28
- `.repeat(l):e.result=e.result+`
29
- `.repeat(i?1+l:l),i=!0,r=!0,l=0;const b=e.position;for(;!$(t)&&t!==0;)t=e.input.charCodeAt(++e.position);N(e,b,e.position)}return!0},z=1,De=2,Qe=3,X=4,ke=(e,n)=>{const t=e.tag,s=e.anchor,o=e.build.seq();let i=!1;if(e.firstTabInLine!==-1)return!1;const r=e.line;e.anchor!==null&&(e.build.anchor(o,e.anchor),e.anchorMap.set(e.anchor,o));let a=e.input.charCodeAt(e.position);for(;a!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,c(e,"tab characters must not be used in indentation")),a===45);){const l=e.input.charCodeAt(e.position+1);if(!k(l))break;if(i=!0,e.position++,A(e,!0,-1)&&e.lineIndent<=n){e.build.push(o,null),a=e.input.charCodeAt(e.position);continue}const{line:u}=e;if(P(e,n,Qe,!1,!0),e.build.push(o,e.result),A(e,!0,-1),a=e.input.charCodeAt(e.position),(e.line===u||e.lineIndent>n)&&a!==0)c(e,"bad indentation of a sequence entry");else if(e.lineIndent<n)break}return i?(e.options.strict&&r===e.documentMarkerLine&&c(e,"a block collection cannot start on the same line as the document start marker"),e.tag=t,e.anchor=s,e.kind="sequence",e.result=o,!0):!1},Re=(e,n,t)=>{const s=e.tag,o=e.anchor,i=e.build.map();let r,a=null,l=null,u=null,p=!1,f=!1,b=!1,d=-1,h=-1;if(e.firstTabInLine!==-1)return!1;const m=e.line;e.anchor!==null&&(e.build.anchor(i,e.anchor),e.anchorMap.set(e.anchor,i));let g=e.input.charCodeAt(e.position);for(;g!==0;){!p&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,c(e,"tab characters must not be used in indentation"));const w=e.input.charCodeAt(e.position+1),{line:_}=e;if((g===63||g===58)&&k(w))g===63?(p&&(r=F(e,i,r,a,l,null),a=null,l=null,u=null),f=!0,p=!0,b=!0):p?(p=!1,b=!0):(f=!0,p=!1,b=!1,a=null,l=null),e.position+=1,g=w;else{if(d=e.position,!P(e,t,De,!1,!0))break;if(e.line===_){for(g=e.input.charCodeAt(e.position);C(g);)g=e.input.charCodeAt(++e.position);if(g===58)g=e.input.charCodeAt(++e.position),k(g)||c(e,"a whitespace character is expected after the key-value separator within a block mapping"),p&&(r=F(e,i,r,a,l,null),a=null,l=null,u=null),f=!0,p=!1,b=!1,a=e.tag,l=e.result,h=e.position+1;else if(f)c(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=s,e.anchor=o,!0}else if(f)c(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=s,e.anchor=o,!0}if((e.line===_||e.lineIndent>n)&&(P(e,n,X,!0,b)&&(p?l=e.result:u=e.result),p||(vt(e,i,l,d,h,e.position),r=F(e,i,r,a,l,u),a=null,l=null,u=null,d=-1,h=-1),A(e,!0,-1),g=e.input.charCodeAt(e.position)),(e.line===_||e.lineIndent>n)&&g!==0)c(e,"bad indentation of a mapping entry");else if(e.lineIndent<n)break}return p&&F(e,i,r,a,l,null),f&&(e.options.strict&&m===e.documentMarkerLine&&c(e,"a block collection cannot start on the same line as the document start marker"),e.tag=s,e.anchor=o,e.kind="mapping",e.result=i),f},Et=(e,n)=>{const t=e.tag,s=e.anchor;let o,i=e.input.charCodeAt(e.position),r,a,l;if(i===91)r=93,a=!1,l=e.build.seq();else if(i===123)r=125,a=!0,l=e.build.map();else return!1;e.anchor!==null&&(e.build.anchor(l,e.anchor),e.anchorMap.set(e.anchor,l)),i=e.input.charCodeAt(++e.position);let u=!0;for(;i!==0;){if(A(e,!0,n),i=e.input.charCodeAt(e.position),i===r)return e.position++,e.tag=t,e.anchor=s,e.kind=a?"mapping":"sequence",e.result=l,!0;u?i===44&&c(e,"expected the node content, but found ','"):c(e,"missed comma between flow collection entries");let p=null,f=null,b=null,d=!1;if(i===63){const m=e.input.charCodeAt(e.position+1);k(m)&&(d=!0,e.position++,A(e,!0,n))}const h=e.line;if(P(e,n,z,!1,!0),p=e.tag,f=e.result,A(e,!0,n),i=e.input.charCodeAt(e.position),i===58&&(a||d||h===e.line)&&(d=!0,e.position++,A(e,!0,n),P(e,n,z,!1,!0),b=e.result),a)o=F(e,l,o,p,f,b);else if(d){const m=e.build.map();o=F(e,m,o,p,f,b),e.build.push(l,m)}else e.build.push(l,f);A(e,!0,n),i=e.input.charCodeAt(e.position),i===44?(u=!0,i=e.input.charCodeAt(++e.position)):u=!1}return c(e,"unexpected end of the stream within a flow collection")},ve=(e,n,t,s)=>{const o=mt(e);s&&Ye(e,s),e.tag=null,e.anchor=null,e.kind=null,e.result=null;let i=!1;try{i=Re(e,n,t)&&e.kind==="mapping"}catch(r){if(!(r instanceof x))throw r;i=!1}return i?!0:(bt(e,o),!1)},Pt=(e,n,t,s,o)=>{let i=1,r=!1,a=!1,l=!1,u=!1,p=null;e.tag=null,e.anchor=null,e.kind=null,e.result=null;const f=t===X||t===Qe,b=f;let d=f;if(s&&A(e,!0,-1)&&(r=!0,e.lineIndent>n?i=1:e.lineIndent===n?i=0:i=-1),i===1)for(;;){const h=e.input.charCodeAt(e.position);if(r&&(h===33&&e.tag!==null||h===38&&e.anchor!==null)){u=!0;break}if(r&&(h===33||h===38)&&(e.tag!==null||e.anchor!==null)){const g=e.tag,w=e.anchor;if(ve(e,e.position-e.lineStart,n+1)){e.tag=g,e.anchor=w,e.anchor!==null&&e.anchorMap.set(e.anchor,e.result),l=!0;break}e.tag=g,e.anchor=w}e.options.strict&&r&&i!==1&&(h===33||h===38)&&c(e,"a node property must be indented more than its parent node");const m=Be(e);if(!Nt(e)&&!xt(e))break;p??=m,A(e,!0,-1)?(r=!0,d=f,e.lineIndent>n?i=1:e.lineIndent===n?i=0:i=-1):d=!1}if(d&&(d=r||o),l)a=!0;else if(i===1||t===X){const h=t===z||t===De?n:n+1,m=e.position-e.lineStart;if(i===1){let g=d&&(ke(e,m)||Re(e,m,h));g||(g=Et(e,h));const w=e.input.charCodeAt(e.position),_=p!==null&&f&&!d&&w!==124&&w!==62;let he=!1;if(!g&&_&&p){const M=p.position-p.lineStart;he=ve(e,M,h,p)}if(e.options.strict&&u&&e.kind!=="mapping"&&e.kind!=="sequence"&&c(e,"a node may only have one anchor and one tag"),g||he)a=!0;else{let M=b&&Ft(e,h);M||(M=Ot(e,h)),M||(M=Tt(e,h)),M?a=!0:Mt(e)?(a=!0,(e.tag!==null||e.anchor!==null)&&c(e,"alias node should not have any properties")):Lt(e,h,t===z)&&(a=!0,e.tag??="?")}}else i===0&&(a=d&&ke(e,m))}if(e.tag==="?"){if(e.kind==="scalar"&&typeof e.result=="string"){const h=gn(e.tags,e.result);if(h)return e.result=h.value,e.result=e.build.finish(e,e.result,a),e.anchor!==null&&e.anchorMap.set(e.anchor,e.result),e.tag!==null||e.anchor!==null||a;const m=e.resolveScalar(e.result);m===We&&c(e,`unquoted scalar "${e.result}" is not valid under the json schema`),e.result=m}}else if(e.tag!==null&&e.tag!=="!"&&(e.kind==="scalar"||!a&&e.kind===null)){const h=typeof e.result=="string"?e.result:"",m=e.tags?.byTag.get(e.tag);if(m)e.result=m.resolve(h);else{const g=fn(e.tag,h);g.status==="ok"?e.result=g.value:g.status==="invalid"&&c(e,`unacceptable value "${h}" for the "${e.tag}" tag`)}}return e.result=e.build.finish(e,e.result,a),e.anchor!==null&&e.anchorMap.set(e.anchor,e.result),e.tag!==null||e.anchor!==null||a},P=(e,n,t,s,o)=>{e.depth>=e.options.maxDepth&&c(e,`maximum nesting depth of ${String(e.options.maxDepth)} exceeded`),e.depth+=1;try{return Pt(e,n,t,s,o)}finally{e.depth-=1}},_t=/^\d+\.\d+$/,Ve=e=>{let n=!1,t=!1;e.tagMap=new Map,e.anchorMap=new Map,e.aliasCount=0,e.resetVersionDirective();let s;for(;e.input.charCodeAt(e.position)!==0&&(A(e,!0,-1),s=e.input.charCodeAt(e.position),!(e.lineIndent>0||s!==37));){n=!0,s=e.input.charCodeAt(++e.position);let{position:r}=e;for(;s!==0&&!k(s);)s=e.input.charCodeAt(++e.position);const a=e.input.slice(r,e.position),l=[];for(a.length===0&&c(e,"directive name must not be less than one character in length");s!==0;){for(;C(s);)s=e.input.charCodeAt(++e.position);if(s===35){do s=e.input.charCodeAt(++e.position);while(s!==0&&!$(s));break}if($(s))break;for(r=e.position;s!==0&&!k(s);)s=e.input.charCodeAt(++e.position);l.push(e.input.slice(r,e.position))}s!==0&&fe(e),a==="YAML"?(t?c(e,"duplication of a YAML directive"):l.length!==1?c(e,"the YAML directive accepts exactly one argument"):_t.test(l[0]??"")||c(e,"ill-formed argument of the YAML directive"),t=!0,e.applyVersionDirective(l[0])):a==="TAG"?l.length===2?e.tagMap.set(l[0],l[1]):c(e,"the TAG directive accepts exactly two arguments"):yt(e,`unknown document directive "${a}"`)}A(e,!0,-1);let o=!1;e.lineIndent===0&&e.input.startsWith("---",e.position)&&k(e.input.charCodeAt(e.position+3))?(e.position+=3,o=!0,A(e,!0,-1)===0&&(e.documentMarkerLine=e.line)):n&&c(e,"directives end mark is expected");const i=P(e,e.lineIndent-1,X,!1,!0);if(e.documentMarkerLine=-1,A(e,!0,-1),(i||o||n)&&e.documents.push(e.result),e.position===e.lineStart&&R(e)){if(e.input.charCodeAt(e.position)===46){e.position+=3;let r=e.input.charCodeAt(e.position);for(;r===32||r===9;)r=e.input.charCodeAt(++e.position);r!==0&&r!==35&&!$(r)&&c(e,"unexpected content after document end marker"),A(e,!0,-1)}return}e.position<e.length-1&&c(e,"end of the stream or a document separator is expected")},Wt=e=>{let n=e;if(n.length>0){const t=n.charCodeAt(n.length-1);t!==10&&t!==13&&(n+=`
30
- `),n.charCodeAt(0)===65279&&(n=n.slice(1))}return n},Je=(e,n)=>{if(typeof e!="string")throw new x(`expected a string to parse, received ${e===null?"null":typeof e}`);let t=Wt(e);if(t.includes("\0"))throw new x("null byte is not allowed in input");t+="\0";const s=new gt(t,n);return s.position=0,s.lineIndent=0,s},Y=(e,n,t,s)=>{if(Array.isArray(t))for(let o=t.length-1;o>=0;o--){const i=Y(t,String(o),t[o],s);t[o]=i}else if(t instanceof Map)for(const o of t.keys()){const i=Y(t,o,t.get(o),s);i===void 0?t.delete(o):t.set(o,i)}else if(Ke(t)){const o=t;for(const i of Object.keys(o)){const r=Y(o,i,o[i],s);r===void 0?delete o[i]:o[i]=r}}return s.call(e,n,t)},qt=(e,n={})=>{const t=Je(e,n);for(;t.position<t.length-1;)Ve(t);const{reviver:s}=n;return s?t.documents.map(o=>Y({"":o},"",o,s)):t.documents},Bt=e=>{const{input:n}=e;let t=n.indexOf(`
31
- `,e.position);for(;t!==-1;){const s=t+1,o=n.slice(s,s+3);if(o==="---"||o==="...")return e.position=s,e.lineStart=s,e.line+=1,e.lineIndent=0,e.firstTabInLine=-1,e.position<e.length-1;t=n.indexOf(`
32
- `,s)}return!1},Ge=(e,n={})=>{const t=[],s=Je(e,{...n,onWarning:i=>{t.push(i),n.onWarning?.(i)}});s.mappingRanges=new WeakMap;const o=[];for(;s.position<s.length-1;){const i=s.documents.length,r=t.length,a=s.position;try{Ve(s)}catch(l){if(!(l instanceof x))throw l;if(o.push({contents:null,errors:[l],warnings:t.slice(r)}),!Bt(s))break;continue}for(const l of s.documents.slice(i))o.push({contents:l,errors:[],warnings:t.slice(r)});if(s.position===a)break}return{documents:o,ranges:s.mappingRanges}},we=(e,n={})=>{const t=qt(e,n);if(t.length!==0){if(t.length===1)return t[0];throw new x("expected a single document in the stream, but found more")}},Yt=/\s/,Se=(e,n)=>{let t=n;for(;t>0&&Yt.test(e[t-1]);)t-=1;return t},Kt=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),Ie=(e,n,t)=>{const s=B(e,t).trimEnd();if(!s.includes(`
33
- `)&&!Kt(e)&&!Array.isArray(e))return` ${s}`;const o=" ".repeat(n+(t.indent??2));return`
34
- ${s.split(`
35
- `).map(i=>i===""?i:o+i).join(`
36
- `)}`};class ze{errors;warnings;contents;#e;#n=[];#o;#t;#s;constructor(n,t,s,o={}){this.#s=n,this.#e=s,this.#o=o,this.contents=t.contents,this.errors=t.errors,this.warnings=t.warnings}toJS(n){const t=I(this.contents);return n?.reviver?Y({"":t},"",t,n.reviver):t}toJSON(){return this.toJS()}getIn(n){this.#t??={value:I(this.contents)};let t=this.#t.value;for(const s of n){if(t===null||typeof t!="object"&&typeof t!="string")return;t=t[s]}return t}get(n){return this.getIn([n])}hasIn(n){return this.getIn(n)!==void 0}has(n){return this.hasIn([n])}setIn(n,t){if(n.length===0)throw new E("setIn requires a non-empty path");const s=n.map(String);let o=this.#i(),i=0;for(;i<s.length-1;){const p=o.get(s[i],!0);if(!U(p))break;o=p,i+=1}const r=this.#e.get(o)??[],a=s.slice(i);if(r.length===0&&o!==this.contents)throw new E(`cannot edit ${JSON.stringify(n)}: the target is not a block mapping`);const l=a.length===1?r.find(p=>p.key===a[0]):void 0;l?this.#r(l,t):this.#a(r,a,t);let u=o;for(const p of a.slice(0,-1)){const f=new T;u.set(L(p),f),u=f}u.set(L(a.at(-1)),L(t)),this.#t=void 0}set(n,t){this.setIn([n],t)}toString(){if(this.#n.length===0)return this.#s;const n=this.#n.toSorted((s,o)=>o.start-s.start);let t=this.#s;for(const s of n)t=t.slice(0,s.start)+s.text+t.slice(s.end);return this.#s=t,this.#n.length=0,t}#i(){if(this.contents===null||this.contents===void 0){const n=new T;return this.contents=n,this.#t=void 0,n}if(!U(this.contents))throw new E("cannot edit a document whose root is not a mapping");return this.contents}#r(n,t){const s=Ie(t,n.column,this.#o),o=n.valueStart>0?n.valueStart-1:n.end,i=Math.max(o,Se(this.#s,n.end));this.#n.push({end:i,start:o,text:s})}#a(n,t,s){let o;for(const u of n)(o===void 0||u.end>o.end)&&(o=u);const i=o?.column??0;let r="";for(const[u,p]of t.entries()){const f=" ".repeat(i+u*(this.#o.indent??2));r+=`
37
- ${f}${p}:`,u===t.length-1&&(r+=Ie(s,i+u*(this.#o.indent??2),this.#o))}const a=Se(this.#s,o?.end??this.#s.length);let l=a===0?r.slice(1):r;this.#s.slice(a).includes(`
38
- `)||(l+=`
39
- `),this.#n.push({end:a,start:a,text:l})}}const Ut={contents:null,errors:[],warnings:[]};function Zt(e,n,t){const s=typeof n=="function"?we(e,{...t,reviver:n}):we(e,n??t);return s===void 0?null:s}function Ht(e,n,t){if(!(typeof n=="function"||Array.isArray(n)||n===null)&&n!==void 0)return B(e,n);let s={};if(typeof t=="number"?s={indent:t}:typeof t=="string"?s={indent:t.length}:t&&(s=t),Array.isArray(n)){const o=new Set(n.map(String));return B(e,{...s,replacer:(i,r)=>{if(i===""||o.has(i))return r}})}return typeof n=="function"?B(e,{...s,replacer:n}):B(e,s)}const es=(e,n)=>{const{documents:t,ranges:s}=Ge(e,{...n,nodes:!0});return new ze(e,t[0]??Ut,s)},ns=(e,n)=>{const{documents:t,ranges:s}=Ge(e,{...n,nodes:!0});return t.map(o=>new ze(e,o,s))};export{Ht as M,ns as N,es as x,Zt as y};
@@ -1,2 +0,0 @@
1
- const G=/^-{1,2}(no-color|no-colors|color=false|color=never)$/,D=/^-{1,2}(color=256)$/,P=/^-{1,2}(color=16m|color=full|color=truecolor)$/,L=/^-{1,2}(color|colors|color=true|color=always)$/,Y=/-mono|dumb/i,j=/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/,F=/-256(color)?$/i,W=/^screen|^tmux|^xterm|^vt[1-5]\d\d|^ansi|color|mintty|rxvt|cygwin|linux/i,U=()=>{const t=globalThis.process?.getBuiltinModule;return typeof t!="function"?"":t("node:os").release()},_=(t,e={})=>{const{isTTY:s,sniffFlags:i=!0}=e,c=globalThis,g=c.Deno!=null,u=c.process??c.Deno??{},p=u.argv??u.args??[],$=i?p.indexOf("--"):-1,a=f=>{if(!i)return!1;const R=p.findIndex(k=>f.test(k));return R!==-1&&($===-1||R<$)};let n={};try{n=g?c.Deno.env.toObject():u.env??{}}catch{}const o="FORCE_COLOR",b=o in n,l=n[o]??void 0,m=typeof l=="string",y=typeof l=="number";let B;if(l==="true")B=1;else if(l==="false")B=0;else if(m&&l.length===0)B=1;else if(m&&l.length>0){const f=Number.parseInt(l,10);B=Number.isNaN(f)?void 0:Math.max(0,Math.min(f,3))}else y&&(B=Number.isNaN(l)?void 0:Math.max(0,Math.min(l,3)));if(l!=="true"&&l!=="false"&&B!==void 0&&B<4)return B;const w=b&&B!==void 0&&B>0;if(b&&B===0||a(G)||!w&&"NO_COLOR"in n)return 0;if(a(D))return 2;if(a(P))return 3;if(a(L))return 1;const O=B??0;if("TF_BUILD"in n&&"AGENT_NAME"in n)return 1;if(n.TERM&&Y.test(n.TERM))return O;if(g?c.Deno.build.os==="windows":u.platform==="win32"){if("WT_SESSION"in n)return 3;if("ANSICON"in n)return 1;try{let f;g?f=c.Deno.osRelease():typeof u.os?.release=="function"?f=u.os.release():f=U();const R=f.split(".");return Number(R[0])>=10&&Number(R[2])>=10586?Number(R[2])>=14931?3:2:1}catch{}}if("CI"in n)return["GITEA_ACTIONS","CIRCLECI","GITHUB_WORKFLOW","GITHUB_ACTIONS"].some(f=>f in n)?3:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(f=>f in n)||n.CI_NAME==="codeship"?1:O;if(n.TERMINAL_EMULATOR?.includes("JediTerm"))return 3;if("TEAMCITY_VERSION"in n)return j.test(n.TEAMCITY_VERSION)?1:0;if(n.COLORTERM==="truecolor"||n.TERM==="xterm-kitty"||n.TERM==="xterm-ghostty"||n.TERM==="wezterm")return 3;if("TERM_PROGRAM"in n){const f=Number.parseInt((n.TERM_PROGRAM_VERSION??"").split(".")[0],10);if(n.TERM_PROGRAM==="iTerm.app")return f>=3?3:2;if(n.TERM_PROGRAM==="Apple_Terminal")return 2}if(F.test(n.TERM))return 2;let T;return s!==void 0?T=s:g?T=t==="out"?c.Deno.stdout.isTerminal():c.Deno.stderr.isTerminal():"PM2_HOME"in n&&"pm_id"in n?T=!0:T=!!u[`std${t}`]?.isTTY,T&&W.test(n.TERM)||"COLORTERM"in n?1:O},V=()=>_("out"),H=()=>_("err");function q({onlyFirst:t=!1}={}){const e="(?:\\u001B\\][^\\u0007\\u001B\\u009C]*(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";return new RegExp(e,t?void 0:"g")}const M=(t,e,s)=>e>t?e:Math.min(t,s),z=/^#?([a-f\d]{3}|[a-f\d]{6})$/i,J=t=>{let[,e]=z.exec(t)??[];const s=e?e.length:0;if(s===3){const c=e.charAt(0),g=e.charAt(1),u=e.charAt(2);e=c+c+g+g+u+u}else if(s!==6)return globalThis.process?.env?.NODE_ENV!=="production"&&console.warn(`[@visulima/colorize] Invalid hex color "${t}"; expected a 3- or 6-digit hex string (e.g. "#96C" or "#E0115F"). Falling back to black.`),[0,0,0];const i=Number.parseInt(e,16);return[i>>16&255,i>>8&255,i&255]},v=(t,e,s)=>t===e&&e===s?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/51)+6*Math.round(e/51)+Math.round(s/51),C=t=>{let e,s,i;if(t<8)return 30+t;if(t<16)return 90+(t-8);if(t>=232)e=s=i=((t-232)*10+8)/255;else{t-=16;const u=t%36;e=Math.floor(t/36)/5,s=Math.floor(u/6)/5,i=u%6/5}const c=Math.max(e,s,i)*2;if(c===0)return 30;const g=30+(Math.round(i)<<2|Math.round(s)<<1|Math.round(e));return c===2?g+60:g},S=(t,e,s)=>C(v(t,e,s)),h=39,d=49,N=10,E={close:"",open:""},I=t=>{const e=t>0?(o,b)=>({close:`\x1B[${String(b)}m`,open:`\x1B[${String(o)}m`}):()=>E,s=o=>(b,l,m)=>o(v(Number(b),Number(l),Number(m))),i=o=>b=>{const[l,m,y]=J(b);return o(l,m,y)};let c=o=>e(`38;5;${String(o)}`,h),g=o=>e(`48;5;${String(o)}`,d),u=(o,b,l)=>e(`38;2;${String(o)};${String(b)};${String(l)}`,h),p=(o,b,l)=>e(`48;2;${String(o)};${String(b)};${String(l)}`,d);t===1?(c=o=>e(C(Number(o)),h),g=o=>e(C(Number(o))+N,d),u=(o,b,l)=>e(S(Number(o),Number(b),Number(l)),h),p=(o,b,l)=>e(S(Number(o),Number(b),Number(l))+N,d)):t===2&&(u=s(c),p=s(g));const $={bold:e(1,22),dim:e(2,22),hidden:e(8,28),inverse:e(7,27),italic:e(3,23),overline:e(53,55),reset:e(0,0),strike:e(9,29),strikethrough:e(9,29),underline:e(4,24),underlineCurly:e("4:3",24),underlineDashed:e("4:5",24),underlineDotted:e("4:4",24),underlineDouble:e("4:2",24),visible:E},a={bgBlack:e(40,d),bgBlackBright:e(100,d),bgBlue:e(44,d),bgBlueBright:e(104,d),bgCyan:e(46,d),bgCyanBright:e(106,d),bgGray:e(100,d),bgGreen:e(42,d),bgGreenBright:e(102,d),bgGrey:e(100,d),bgMagenta:e(45,d),bgMagentaBright:e(105,d),bgRed:e(41,d),bgRedBright:e(101,d),bgWhite:e(47,d),bgWhiteBright:e(107,d),bgYellow:e(43,d),bgYellowBright:e(103,d),black:e(30,h),blackBright:e(90,h),blue:e(34,h),blueBright:e(94,h),cyan:e(36,h),cyanBright:e(96,h),gray:e(90,h),green:e(32,h),greenBright:e(92,h),grey:e(90,h),magenta:e(35,h),magentaBright:e(95,h),red:e(31,h),redBright:e(91,h),white:e(37,h),whiteBright:e(97,h),yellow:e(33,h),yellowBright:e(93,h)},n={bg:o=>g(M(o,0,255)),bgHex:i(p),bgRgb:(o,b,l)=>p(M(o,0,255),M(b,0,255),M(l,0,255)),fg:o=>c(M(o,0,255)),hex:i(u),rgb:(o,b,l)=>u(M(o,0,255),M(b,0,255),M(l,0,255))};return{baseColors:a,baseStyles:$,styleMethods:n}},x=V(),K=H();I(x);const X=(t,e,s)=>{if(e==="")return t;let i=t.indexOf(e);if(i<0)return t;const c=e.length;let g=0,u="";for(;~i;)u+=t.slice(g,i)+s,g=i+c,i=t.indexOf(e,g);return u+t.slice(g)},Z=(t,e,s)=>{if(t==null||t==="")return"";let i;if(t.raw===void 0?i=String(t):i=String.raw(t,...e),i.includes("\x1B"))for(let c=s;c;c=c.props)i=X(i,c.close,c.open);return i.includes(`
2
- `)&&(i=i.replace(/(\r*\n)/g,`${s.closeStack}$1${s.openStack}`)),s.openStack+i+s.closeStack},A=function(t){const e=t?.level??x,{baseColors:s,baseStyles:i,styleMethods:c}=I(e),g={};let u=null;const p=({props:a},{close:n,open:o})=>{const b=(a?.openStack??"")+o,l=n+(a?.closeStack??""),m=(y,...B)=>Z(y,B,m.props);return Object.setPrototypeOf(m,u),m.props={close:n,closeStack:l,open:o,openStack:b,props:a},m.open=b,m.close=l,m},$=a=>String(a);$.strip=a=>a.replaceAll(q(),"");for(const a in s)g[a]={get(){const n=p(this,s[a]);return Object.defineProperty(this,a,{value:n}),n}};for(const a in i)g[a]={get(){const n=p(this,i[a]);return Object.defineProperty(this,a,{value:n}),n}};for(const a in c)g[a]={get(){return(...n)=>p(this,c[a](...n))}};return g.ansi256=g.fg,g.bgAnsi256=g.bg,u=Object.defineProperties({},g),Object.setPrototypeOf($,u),$},r=new A;new A({level:K});r.ansi256;r.bg;r.bgAnsi256;r.bgHex;r.bgRgb;r.fg;r.hex;r.rgb;r.strip;r.bgBlack;r.bgBlackBright;r.bgBlue;r.bgBlueBright;r.bgCyan;r.bgCyanBright;r.bgGray;r.bgGreen;r.bgGreenBright;r.bgGrey;r.bgMagenta;r.bgMagentaBright;r.bgRed;r.bgRedBright;r.bgWhite;r.bgWhiteBright;r.bgYellow;r.bgYellowBright;r.black;r.blackBright;r.blue;r.blueBright;const Q=r.bold,ee=r.cyan;r.cyanBright;const re=r.dim;r.gray;const te=r.green;r.greenBright;r.grey;r.hidden;const ne=r.inverse;r.italic;const oe=r.magenta;r.magentaBright;r.overline;const ie=r.red;r.redBright;r.reset;r.strike;r.strikethrough;const se=r.underline;r.underlineCurly;r.underlineDashed;r.underlineDotted;r.underlineDouble;r.visible;r.white;r.whiteBright;const le=r.yellow;r.yellowBright;export{H as $,re as F,te as J,ne as P,oe as T,V as U,ie as X,le as b,se as e,Q as j,ee as q,r as t};
@@ -1,2 +0,0 @@
1
- import{createRequire as j}from"node:module";import{K}from"./target-merge-BClIXg2k.js";import{osvBloomDecode as J,osvBloomProbeBatch as z,NATIVE_BINDING_VERSION as D}from"#native";let k;const V=e=>(k??=j(import.meta.url))(e),h=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,v=e=>{if(typeof h<"u"&&h.versions&&h.versions.node){const[s,t]=h.versions.node.split(".").map(Number);if(s>22||s===22&&t>=3||s===20&&t>=16)return h.getBuiltinModule(e)}return V(e)},{createHash:H,randomUUID:P}=v("node:crypto"),{existsSync:g}=v("node:fs"),{readFile:O,mkdir:T,stat:B,writeFile:F,rename:q,unlink:G}=v("node:fs/promises"),{join:d,dirname:W}=v("node:path"),I=6;if(D!==I)throw new Error(`vis native binding ABI mismatch in osv-bloom: expected ${I}, got ${D}. Rebuild via \`pnpm --filter @visulima/vis run build:native\` or reinstall the platform binding package.`);const nt="https://endevco.github.io/osv-bloom",X=new Set(["endevco.github.io"]);class w extends Error{cause="OSV_BLOOM_SOURCE_NOT_ALLOWED";constructor(s){super(`osv-bloom source host '${s}' is not in the built-in allowlist. Add it to \`security.audit.advisories.bloom.allowedHosts\` if intentional.`),this.name="OsvBloomSourceNotAllowedError"}}class b extends Error{cause="OSV_BLOOM_NETWORK";constructor(s,t){super(`osv-bloom fetch failed for ${s}: ${t}. Check connectivity, proxy env vars, or --source.`),this.name="OsvBloomNetworkError"}}class Y extends Error{cause="OSV_BLOOM_INTEGRITY";constructor(s,t){super(`osv-bloom filter.bin sha256 mismatch (expected ${s}, got ${t}). Refusing to install a corrupted filter.`),this.name="OsvBloomIntegrityError"}}class m extends Error{cause="OSV_BLOOM_MANIFEST";constructor(s){super(`osv-bloom manifest invalid: ${s}`),this.name="OsvBloomManifestError"}}class Q extends Error{cause="OSV_BLOOM_CACHE_MISS";constructor(s){super(`No osv-bloom cache at ${s}. Run 'vis advisories bloom sync' first.`),this.name="OsvBloomCacheMissError"}}const p=e=>{const t=K("vis",{create:!0,cwd:e})??d(e,"node_modules",".cache","vis");return d(t,"osv-bloom")},l=e=>d(e,"filter.bin"),$=e=>d(e,"manifest.json"),L=e=>d(e,"state.json"),Z=(e,s)=>{let t;try{t=new URL(e)}catch{throw new w(e)}if(!t.host)throw new w(e);if(t.protocol!=="https:")throw new w(`${t.protocol}//${t.host}`);if(!new Set([...X,...s??[]]).has(t.host))throw new w(t.host);return t},at=async e=>{const s=Date.now(),t=e.cacheDir??p(e.workspaceRoot);await T(t,{recursive:!0});const r=Z(e.source,e.allowedHosts),n=new URL("manifest.json",M(r.toString())),o=new URL("filter.bin",M(r.toString())),a=await A(n,{method:"GET"});if(!a.ok)throw new b(n.toString(),a.status);const _=await a.text(),i=R(_),u=await x(t);if(!e.force&&u?.setDigestSha256===i.setDigestSha256&&g(l(t)))return{bytesOnDisk:(await B(l(t))).size,cacheDir:t,durationMs:Date.now()-s,manifest:i,upToDate:!0};const E={};!e.force&&u?.filterEtag&&(E.headers={"if-none-match":u.filterEtag});const f=await A(o,{...E,method:"GET"});if(f.status===304&&u&&g(l(t)))return await N(t,_,{fetchedAtIso:new Date().toISOString(),filterEtag:u.filterEtag,setDigestSha256:i.setDigestSha256}),{bytesOnDisk:(await B(l(t))).size,cacheDir:t,durationMs:Date.now()-s,manifest:i,upToDate:!0};if(!f.ok||!f.body)throw new b(o.toString(),f.status);const c=Buffer.from(await f.arrayBuffer());e.onProgress&&e.onProgress(c.length,c.length);const y=tt(c);if(y!==i.filterSha256)throw new Y(i.filterSha256,y);if(c.length!==i.bloomByteLen)throw new m(`filter.bin length ${c.length} does not match manifest.bloom_byte_len ${i.bloomByteLen}`);const U=f.headers.get("etag")??void 0;return await S(l(t),c),await N(t,_,{fetchedAtIso:new Date().toISOString(),filterEtag:U,setDigestSha256:i.setDigestSha256}),{bytesOnDisk:c.length,cacheDir:t,durationMs:Date.now()-s,manifest:i,upToDate:!1}},it=async(e,s)=>{const t=s?.cacheDir??p(e),r=l(t);if(!g(r)){if(s?.softFail)return null;throw new Q(t)}const n=await O(r);return J(n)},ct=(e,s)=>z(e,s),lt=async(e,s)=>{const t=s??p(e);if(!g(l(t)))return{cacheDir:t,present:!1};let n,o;try{n=R(await O($(t),"utf8"))}catch{}try{o=await x(t)}catch{}return{cacheDir:t,fetchedAtIso:o?.fetchedAtIso,manifest:n,present:!0}},R=e=>{let s;try{s=JSON.parse(e)}catch(o){throw new m(o instanceof Error?o.message:String(o))}const t=o=>{const a=s[o];if(typeof a!="number"||Number.isNaN(a))throw new m(`field '${o}' missing or non-numeric`);return a},r=o=>{const a=s[o];if(typeof a!="string"||a.length===0)throw new m(`field '${o}' missing or empty`);return a},n=t("format_version");if(n!==1)throw new m(`unsupported format_version ${n} (this build expects v1)`);return{advisoryCount:t("advisory_count"),bloomByteLen:t("bloom_byte_len"),bloomKHashes:t("bloom_k_hashes"),bloomMBits:t("bloom_m_bits"),builtAtRfc3339:r("built_at_rfc3339"),builtAtUnix:t("built_at_unix"),entryCount:t("entry_count"),filterSha256:r("filter_sha256"),formatVersion:n,setDigestSha256:r("set_digest_sha256"),sourceUrl:r("source_url"),targetFpr:t("target_fpr")}},x=async e=>{try{const s=await O(L(e),"utf8"),t=JSON.parse(s);return typeof t.setDigestSha256!="string"||typeof t.fetchedAtIso!="string"?void 0:{fetchedAtIso:t.fetchedAtIso,filterEtag:typeof t.filterEtag=="string"?t.filterEtag:void 0,setDigestSha256:t.setDigestSha256}}catch{return}},N=async(e,s,t)=>{await S($(e),Buffer.from(s,"utf8")),await S(L(e),Buffer.from(`${JSON.stringify(t,void 0,2)}
2
- `,"utf8"))},S=async(e,s)=>{await T(W(e),{recursive:!0});const t=`${e}.${process.pid}.${P()}.tmp`;try{await F(t,s),await q(t,e)}catch(r){throw await G(t).catch(()=>{}),r}},tt=e=>H("sha256").update(e).digest("hex"),M=e=>e.endsWith("/")?e:`${e}/`,et=3e4,A=async(e,s)=>{try{return await fetch(e,{...s,signal:AbortSignal.timeout(et)})}catch(t){throw new b(e.toString(),t instanceof Error?t.message:String(t))}};export{nt as D,Q as O,lt as g,it as l,ct as p,at as s};