open-lisp 2026.306.224346

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 (493) hide show
  1. package/LICENSE +19 -0
  2. package/README.md +1 -0
  3. package/esm/_dnt.polyfills.d.ts +8 -0
  4. package/esm/_dnt.polyfills.d.ts.map +1 -0
  5. package/esm/_dnt.polyfills.js +110 -0
  6. package/esm/_dnt.shims.d.ts +6 -0
  7. package/esm/_dnt.shims.d.ts.map +1 -0
  8. package/esm/_dnt.shims.js +61 -0
  9. package/esm/_dnt.test_shims.d.ts.map +1 -0
  10. package/esm/deps/jsr.io/@std/assert/1.0.19/almost_equals.d.ts.map +1 -0
  11. package/esm/deps/jsr.io/@std/assert/1.0.19/array_includes.d.ts.map +1 -0
  12. package/esm/deps/jsr.io/@std/assert/1.0.19/assert.d.ts.map +1 -0
  13. package/esm/deps/jsr.io/@std/assert/1.0.19/assertion_error.d.ts.map +1 -0
  14. package/esm/deps/jsr.io/@std/assert/1.0.19/equal.d.ts.map +1 -0
  15. package/esm/deps/jsr.io/@std/assert/1.0.19/equals.d.ts.map +1 -0
  16. package/esm/deps/jsr.io/@std/assert/1.0.19/exists.d.ts.map +1 -0
  17. package/esm/deps/jsr.io/@std/assert/1.0.19/fail.d.ts.map +1 -0
  18. package/esm/deps/jsr.io/@std/assert/1.0.19/false.d.ts.map +1 -0
  19. package/esm/deps/jsr.io/@std/assert/1.0.19/greater.d.ts.map +1 -0
  20. package/esm/deps/jsr.io/@std/assert/1.0.19/greater_or_equal.d.ts.map +1 -0
  21. package/esm/deps/jsr.io/@std/assert/1.0.19/instance_of.d.ts.map +1 -0
  22. package/esm/deps/jsr.io/@std/assert/1.0.19/is_error.d.ts.map +1 -0
  23. package/esm/deps/jsr.io/@std/assert/1.0.19/less.d.ts.map +1 -0
  24. package/esm/deps/jsr.io/@std/assert/1.0.19/less_or_equal.d.ts.map +1 -0
  25. package/esm/deps/jsr.io/@std/assert/1.0.19/match.d.ts.map +1 -0
  26. package/esm/deps/jsr.io/@std/assert/1.0.19/mod.d.ts.map +1 -0
  27. package/esm/deps/jsr.io/@std/assert/1.0.19/not_equals.d.ts.map +1 -0
  28. package/esm/deps/jsr.io/@std/assert/1.0.19/not_instance_of.d.ts.map +1 -0
  29. package/esm/deps/jsr.io/@std/assert/1.0.19/not_match.d.ts.map +1 -0
  30. package/esm/deps/jsr.io/@std/assert/1.0.19/not_strict_equals.d.ts.map +1 -0
  31. package/esm/deps/jsr.io/@std/assert/1.0.19/object_match.d.ts.map +1 -0
  32. package/esm/deps/jsr.io/@std/assert/1.0.19/rejects.d.ts.map +1 -0
  33. package/esm/deps/jsr.io/@std/assert/1.0.19/strict_equals.d.ts.map +1 -0
  34. package/esm/deps/jsr.io/@std/assert/1.0.19/string_includes.d.ts.map +1 -0
  35. package/esm/deps/jsr.io/@std/assert/1.0.19/throws.d.ts.map +1 -0
  36. package/esm/deps/jsr.io/@std/assert/1.0.19/unimplemented.d.ts.map +1 -0
  37. package/esm/deps/jsr.io/@std/assert/1.0.19/unreachable.d.ts.map +1 -0
  38. package/esm/deps/jsr.io/@std/fs/1.0.23/_create_walk_entry.d.ts +14 -0
  39. package/esm/deps/jsr.io/@std/fs/1.0.23/_create_walk_entry.d.ts.map +1 -0
  40. package/esm/deps/jsr.io/@std/fs/1.0.23/_create_walk_entry.js +34 -0
  41. package/esm/deps/jsr.io/@std/fs/1.0.23/_get_file_info_type.d.ts +13 -0
  42. package/esm/deps/jsr.io/@std/fs/1.0.23/_get_file_info_type.d.ts.map +1 -0
  43. package/esm/deps/jsr.io/@std/fs/1.0.23/_get_file_info_type.js +18 -0
  44. package/esm/deps/jsr.io/@std/fs/1.0.23/_is_same_path.d.ts +10 -0
  45. package/esm/deps/jsr.io/@std/fs/1.0.23/_is_same_path.d.ts.map +1 -0
  46. package/esm/deps/jsr.io/@std/fs/1.0.23/_is_same_path.js +17 -0
  47. package/esm/deps/jsr.io/@std/fs/1.0.23/_is_subdir.d.ts +12 -0
  48. package/esm/deps/jsr.io/@std/fs/1.0.23/_is_subdir.d.ts.map +1 -0
  49. package/esm/deps/jsr.io/@std/fs/1.0.23/_is_subdir.js +25 -0
  50. package/esm/deps/jsr.io/@std/fs/1.0.23/_to_path_string.d.ts +9 -0
  51. package/esm/deps/jsr.io/@std/fs/1.0.23/_to_path_string.d.ts.map +1 -0
  52. package/esm/deps/jsr.io/@std/fs/1.0.23/_to_path_string.js +13 -0
  53. package/esm/deps/jsr.io/@std/fs/1.0.23/copy.d.ts +117 -0
  54. package/esm/deps/jsr.io/@std/fs/1.0.23/copy.d.ts.map +1 -0
  55. package/esm/deps/jsr.io/@std/fs/1.0.23/copy.js +313 -0
  56. package/esm/deps/jsr.io/@std/fs/1.0.23/empty_dir.d.ts +48 -0
  57. package/esm/deps/jsr.io/@std/fs/1.0.23/empty_dir.d.ts.map +1 -0
  58. package/esm/deps/jsr.io/@std/fs/1.0.23/empty_dir.js +87 -0
  59. package/esm/deps/jsr.io/@std/fs/1.0.23/ensure_dir.d.ts +49 -0
  60. package/esm/deps/jsr.io/@std/fs/1.0.23/ensure_dir.d.ts.map +1 -0
  61. package/esm/deps/jsr.io/@std/fs/1.0.23/ensure_dir.js +102 -0
  62. package/esm/deps/jsr.io/@std/fs/1.0.23/ensure_file.d.ts +47 -0
  63. package/esm/deps/jsr.io/@std/fs/1.0.23/ensure_file.d.ts.map +1 -0
  64. package/esm/deps/jsr.io/@std/fs/1.0.23/ensure_file.js +90 -0
  65. package/esm/deps/jsr.io/@std/fs/1.0.23/ensure_link.d.ts +49 -0
  66. package/esm/deps/jsr.io/@std/fs/1.0.23/ensure_link.d.ts.map +1 -0
  67. package/esm/deps/jsr.io/@std/fs/1.0.23/ensure_link.js +61 -0
  68. package/esm/deps/jsr.io/@std/fs/1.0.23/ensure_symlink.d.ts +70 -0
  69. package/esm/deps/jsr.io/@std/fs/1.0.23/ensure_symlink.d.ts.map +1 -0
  70. package/esm/deps/jsr.io/@std/fs/1.0.23/ensure_symlink.js +156 -0
  71. package/esm/deps/jsr.io/@std/fs/1.0.23/eol.d.ts +52 -0
  72. package/esm/deps/jsr.io/@std/fs/1.0.23/eol.d.ts.map +1 -0
  73. package/esm/deps/jsr.io/@std/fs/1.0.23/eol.js +67 -0
  74. package/esm/deps/jsr.io/@std/fs/1.0.23/exists.d.ts +218 -0
  75. package/esm/deps/jsr.io/@std/fs/1.0.23/exists.d.ts.map +1 -0
  76. package/esm/deps/jsr.io/@std/fs/1.0.23/exists.js +271 -0
  77. package/esm/deps/jsr.io/@std/fs/1.0.23/expand_glob.d.ts +267 -0
  78. package/esm/deps/jsr.io/@std/fs/1.0.23/expand_glob.d.ts.map +1 -0
  79. package/esm/deps/jsr.io/@std/fs/1.0.23/expand_glob.js +442 -0
  80. package/esm/deps/jsr.io/@std/fs/1.0.23/mod.d.ts +29 -0
  81. package/esm/deps/jsr.io/@std/fs/1.0.23/mod.d.ts.map +1 -0
  82. package/esm/deps/jsr.io/@std/fs/1.0.23/mod.js +29 -0
  83. package/esm/deps/jsr.io/@std/fs/1.0.23/move.d.ts +86 -0
  84. package/esm/deps/jsr.io/@std/fs/1.0.23/move.d.ts.map +1 -0
  85. package/esm/deps/jsr.io/@std/fs/1.0.23/move.js +142 -0
  86. package/esm/deps/jsr.io/@std/fs/1.0.23/walk.d.ts +777 -0
  87. package/esm/deps/jsr.io/@std/fs/1.0.23/walk.d.ts.map +1 -0
  88. package/esm/deps/jsr.io/@std/fs/1.0.23/walk.js +846 -0
  89. package/esm/deps/jsr.io/@std/internal/1.0.12/_os.d.ts +2 -0
  90. package/esm/deps/jsr.io/@std/internal/1.0.12/_os.d.ts.map +1 -0
  91. package/esm/deps/jsr.io/@std/internal/1.0.12/_os.js +12 -0
  92. package/esm/deps/jsr.io/@std/internal/1.0.12/build_message.d.ts.map +1 -0
  93. package/esm/deps/jsr.io/@std/internal/1.0.12/diff.d.ts.map +1 -0
  94. package/esm/deps/jsr.io/@std/internal/1.0.12/diff_str.d.ts.map +1 -0
  95. package/esm/deps/jsr.io/@std/internal/1.0.12/format.d.ts.map +1 -0
  96. package/esm/deps/jsr.io/@std/internal/1.0.12/os.d.ts +3 -0
  97. package/esm/deps/jsr.io/@std/internal/1.0.12/os.d.ts.map +1 -0
  98. package/esm/deps/jsr.io/@std/internal/1.0.12/os.js +5 -0
  99. package/esm/deps/jsr.io/@std/internal/1.0.12/styles.d.ts.map +1 -0
  100. package/esm/deps/jsr.io/@std/internal/1.0.12/types.d.ts.map +1 -0
  101. package/esm/deps/jsr.io/@std/path/1.1.4/_common/assert_path.d.ts +2 -0
  102. package/esm/deps/jsr.io/@std/path/1.1.4/_common/assert_path.d.ts.map +1 -0
  103. package/esm/deps/jsr.io/@std/path/1.1.4/_common/assert_path.js +7 -0
  104. package/esm/deps/jsr.io/@std/path/1.1.4/_common/basename.d.ts +4 -0
  105. package/esm/deps/jsr.io/@std/path/1.1.4/_common/basename.d.ts.map +1 -0
  106. package/esm/deps/jsr.io/@std/path/1.1.4/_common/basename.js +40 -0
  107. package/esm/deps/jsr.io/@std/path/1.1.4/_common/constants.d.ts +40 -0
  108. package/esm/deps/jsr.io/@std/path/1.1.4/_common/constants.d.ts.map +1 -0
  109. package/esm/deps/jsr.io/@std/path/1.1.4/_common/constants.js +46 -0
  110. package/esm/deps/jsr.io/@std/path/1.1.4/_common/dirname.d.ts +2 -0
  111. package/esm/deps/jsr.io/@std/path/1.1.4/_common/dirname.d.ts.map +1 -0
  112. package/esm/deps/jsr.io/@std/path/1.1.4/_common/dirname.js +8 -0
  113. package/esm/deps/jsr.io/@std/path/1.1.4/_common/from_file_url.d.ts +2 -0
  114. package/esm/deps/jsr.io/@std/path/1.1.4/_common/from_file_url.d.ts.map +1 -0
  115. package/esm/deps/jsr.io/@std/path/1.1.4/_common/from_file_url.js +9 -0
  116. package/esm/deps/jsr.io/@std/path/1.1.4/_common/glob_to_reg_exp.d.ts +35 -0
  117. package/esm/deps/jsr.io/@std/path/1.1.4/_common/glob_to_reg_exp.d.ts.map +1 -0
  118. package/esm/deps/jsr.io/@std/path/1.1.4/_common/glob_to_reg_exp.js +235 -0
  119. package/esm/deps/jsr.io/@std/path/1.1.4/_common/normalize.d.ts +2 -0
  120. package/esm/deps/jsr.io/@std/path/1.1.4/_common/normalize.d.ts.map +1 -0
  121. package/esm/deps/jsr.io/@std/path/1.1.4/_common/normalize.js +8 -0
  122. package/esm/deps/jsr.io/@std/path/1.1.4/_common/normalize_string.d.ts +2 -0
  123. package/esm/deps/jsr.io/@std/path/1.1.4/_common/normalize_string.d.ts.map +1 -0
  124. package/esm/deps/jsr.io/@std/path/1.1.4/_common/normalize_string.js +77 -0
  125. package/esm/deps/jsr.io/@std/path/1.1.4/_common/strip_trailing_separators.d.ts +2 -0
  126. package/esm/deps/jsr.io/@std/path/1.1.4/_common/strip_trailing_separators.d.ts.map +1 -0
  127. package/esm/deps/jsr.io/@std/path/1.1.4/_common/strip_trailing_separators.js +19 -0
  128. package/esm/deps/jsr.io/@std/path/1.1.4/basename.d.ts +27 -0
  129. package/esm/deps/jsr.io/@std/path/1.1.4/basename.d.ts.map +1 -0
  130. package/esm/deps/jsr.io/@std/path/1.1.4/basename.js +35 -0
  131. package/esm/deps/jsr.io/@std/path/1.1.4/constants.d.ts +15 -0
  132. package/esm/deps/jsr.io/@std/path/1.1.4/constants.d.ts.map +1 -0
  133. package/esm/deps/jsr.io/@std/path/1.1.4/constants.js +17 -0
  134. package/esm/deps/jsr.io/@std/path/1.1.4/dirname.d.ts +22 -0
  135. package/esm/deps/jsr.io/@std/path/1.1.4/dirname.d.ts.map +1 -0
  136. package/esm/deps/jsr.io/@std/path/1.1.4/dirname.js +28 -0
  137. package/esm/deps/jsr.io/@std/path/1.1.4/from_file_url.d.ts +22 -0
  138. package/esm/deps/jsr.io/@std/path/1.1.4/from_file_url.d.ts.map +1 -0
  139. package/esm/deps/jsr.io/@std/path/1.1.4/from_file_url.js +28 -0
  140. package/esm/deps/jsr.io/@std/path/1.1.4/glob_to_regexp.d.ts +77 -0
  141. package/esm/deps/jsr.io/@std/path/1.1.4/glob_to_regexp.d.ts.map +1 -0
  142. package/esm/deps/jsr.io/@std/path/1.1.4/glob_to_regexp.js +83 -0
  143. package/esm/deps/jsr.io/@std/path/1.1.4/is_absolute.d.ts +22 -0
  144. package/esm/deps/jsr.io/@std/path/1.1.4/is_absolute.d.ts.map +1 -0
  145. package/esm/deps/jsr.io/@std/path/1.1.4/is_absolute.js +28 -0
  146. package/esm/deps/jsr.io/@std/path/1.1.4/is_glob.d.ts +17 -0
  147. package/esm/deps/jsr.io/@std/path/1.1.4/is_glob.d.ts.map +1 -0
  148. package/esm/deps/jsr.io/@std/path/1.1.4/is_glob.js +42 -0
  149. package/esm/deps/jsr.io/@std/path/1.1.4/join.d.ts +23 -0
  150. package/esm/deps/jsr.io/@std/path/1.1.4/join.d.ts.map +1 -0
  151. package/esm/deps/jsr.io/@std/path/1.1.4/join.js +29 -0
  152. package/esm/deps/jsr.io/@std/path/1.1.4/join_globs.d.ts +28 -0
  153. package/esm/deps/jsr.io/@std/path/1.1.4/join_globs.d.ts.map +1 -0
  154. package/esm/deps/jsr.io/@std/path/1.1.4/join_globs.js +34 -0
  155. package/esm/deps/jsr.io/@std/path/1.1.4/normalize.d.ts +26 -0
  156. package/esm/deps/jsr.io/@std/path/1.1.4/normalize.d.ts.map +1 -0
  157. package/esm/deps/jsr.io/@std/path/1.1.4/normalize.js +32 -0
  158. package/esm/deps/jsr.io/@std/path/1.1.4/posix/_util.d.ts +2 -0
  159. package/esm/deps/jsr.io/@std/path/1.1.4/posix/_util.d.ts.map +1 -0
  160. package/esm/deps/jsr.io/@std/path/1.1.4/posix/_util.js +8 -0
  161. package/esm/deps/jsr.io/@std/path/1.1.4/posix/basename.d.ts +39 -0
  162. package/esm/deps/jsr.io/@std/path/1.1.4/posix/basename.d.ts.map +1 -0
  163. package/esm/deps/jsr.io/@std/path/1.1.4/posix/basename.js +52 -0
  164. package/esm/deps/jsr.io/@std/path/1.1.4/posix/constants.d.ts +13 -0
  165. package/esm/deps/jsr.io/@std/path/1.1.4/posix/constants.d.ts.map +1 -0
  166. package/esm/deps/jsr.io/@std/path/1.1.4/posix/constants.js +14 -0
  167. package/esm/deps/jsr.io/@std/path/1.1.4/posix/dirname.d.ts +30 -0
  168. package/esm/deps/jsr.io/@std/path/1.1.4/posix/dirname.d.ts.map +1 -0
  169. package/esm/deps/jsr.io/@std/path/1.1.4/posix/dirname.js +64 -0
  170. package/esm/deps/jsr.io/@std/path/1.1.4/posix/from_file_url.d.ts +16 -0
  171. package/esm/deps/jsr.io/@std/path/1.1.4/posix/from_file_url.d.ts.map +1 -0
  172. package/esm/deps/jsr.io/@std/path/1.1.4/posix/from_file_url.js +21 -0
  173. package/esm/deps/jsr.io/@std/path/1.1.4/posix/glob_to_regexp.d.ts +72 -0
  174. package/esm/deps/jsr.io/@std/path/1.1.4/posix/glob_to_regexp.d.ts.map +1 -0
  175. package/esm/deps/jsr.io/@std/path/1.1.4/posix/glob_to_regexp.js +82 -0
  176. package/esm/deps/jsr.io/@std/path/1.1.4/posix/is_absolute.d.ts +17 -0
  177. package/esm/deps/jsr.io/@std/path/1.1.4/posix/is_absolute.d.ts.map +1 -0
  178. package/esm/deps/jsr.io/@std/path/1.1.4/posix/is_absolute.js +23 -0
  179. package/esm/deps/jsr.io/@std/path/1.1.4/posix/join.d.ts +31 -0
  180. package/esm/deps/jsr.io/@std/path/1.1.4/posix/join.d.ts.map +1 -0
  181. package/esm/deps/jsr.io/@std/path/1.1.4/posix/join.js +45 -0
  182. package/esm/deps/jsr.io/@std/path/1.1.4/posix/join_globs.d.ts +20 -0
  183. package/esm/deps/jsr.io/@std/path/1.1.4/posix/join_globs.d.ts.map +1 -0
  184. package/esm/deps/jsr.io/@std/path/1.1.4/posix/join_globs.js +40 -0
  185. package/esm/deps/jsr.io/@std/path/1.1.4/posix/normalize.d.ts +37 -0
  186. package/esm/deps/jsr.io/@std/path/1.1.4/posix/normalize.d.ts.map +1 -0
  187. package/esm/deps/jsr.io/@std/path/1.1.4/posix/normalize.js +58 -0
  188. package/esm/deps/jsr.io/@std/path/1.1.4/posix/normalize_glob.d.ts +20 -0
  189. package/esm/deps/jsr.io/@std/path/1.1.4/posix/normalize_glob.d.ts.map +1 -0
  190. package/esm/deps/jsr.io/@std/path/1.1.4/posix/normalize_glob.js +32 -0
  191. package/esm/deps/jsr.io/@std/path/1.1.4/posix/resolve.d.ts +17 -0
  192. package/esm/deps/jsr.io/@std/path/1.1.4/posix/resolve.d.ts.map +1 -0
  193. package/esm/deps/jsr.io/@std/path/1.1.4/posix/resolve.js +59 -0
  194. package/esm/deps/jsr.io/@std/path/1.1.4/resolve.d.ts +22 -0
  195. package/esm/deps/jsr.io/@std/path/1.1.4/resolve.d.ts.map +1 -0
  196. package/esm/deps/jsr.io/@std/path/1.1.4/resolve.js +30 -0
  197. package/esm/deps/jsr.io/@std/path/1.1.4/windows/_util.d.ts +4 -0
  198. package/esm/deps/jsr.io/@std/path/1.1.4/windows/_util.d.ts.map +1 -0
  199. package/esm/deps/jsr.io/@std/path/1.1.4/windows/_util.js +15 -0
  200. package/esm/deps/jsr.io/@std/path/1.1.4/windows/basename.d.ts +22 -0
  201. package/esm/deps/jsr.io/@std/path/1.1.4/windows/basename.d.ts.map +1 -0
  202. package/esm/deps/jsr.io/@std/path/1.1.4/windows/basename.js +47 -0
  203. package/esm/deps/jsr.io/@std/path/1.1.4/windows/constants.d.ts +13 -0
  204. package/esm/deps/jsr.io/@std/path/1.1.4/windows/constants.d.ts.map +1 -0
  205. package/esm/deps/jsr.io/@std/path/1.1.4/windows/constants.js +14 -0
  206. package/esm/deps/jsr.io/@std/path/1.1.4/windows/dirname.d.ts +17 -0
  207. package/esm/deps/jsr.io/@std/path/1.1.4/windows/dirname.d.ts.map +1 -0
  208. package/esm/deps/jsr.io/@std/path/1.1.4/windows/dirname.js +113 -0
  209. package/esm/deps/jsr.io/@std/path/1.1.4/windows/from_file_url.d.ts +18 -0
  210. package/esm/deps/jsr.io/@std/path/1.1.4/windows/from_file_url.d.ts.map +1 -0
  211. package/esm/deps/jsr.io/@std/path/1.1.4/windows/from_file_url.js +30 -0
  212. package/esm/deps/jsr.io/@std/path/1.1.4/windows/glob_to_regexp.d.ts +71 -0
  213. package/esm/deps/jsr.io/@std/path/1.1.4/windows/glob_to_regexp.d.ts.map +1 -0
  214. package/esm/deps/jsr.io/@std/path/1.1.4/windows/glob_to_regexp.js +82 -0
  215. package/esm/deps/jsr.io/@std/path/1.1.4/windows/is_absolute.d.ts +17 -0
  216. package/esm/deps/jsr.io/@std/path/1.1.4/windows/is_absolute.d.ts.map +1 -0
  217. package/esm/deps/jsr.io/@std/path/1.1.4/windows/is_absolute.js +38 -0
  218. package/esm/deps/jsr.io/@std/path/1.1.4/windows/join.d.ts +18 -0
  219. package/esm/deps/jsr.io/@std/path/1.1.4/windows/join.d.ts.map +1 -0
  220. package/esm/deps/jsr.io/@std/path/1.1.4/windows/join.js +77 -0
  221. package/esm/deps/jsr.io/@std/path/1.1.4/windows/join_globs.d.ts +21 -0
  222. package/esm/deps/jsr.io/@std/path/1.1.4/windows/join_globs.d.ts.map +1 -0
  223. package/esm/deps/jsr.io/@std/path/1.1.4/windows/join_globs.js +41 -0
  224. package/esm/deps/jsr.io/@std/path/1.1.4/windows/normalize.d.ts +19 -0
  225. package/esm/deps/jsr.io/@std/path/1.1.4/windows/normalize.d.ts.map +1 -0
  226. package/esm/deps/jsr.io/@std/path/1.1.4/windows/normalize.js +135 -0
  227. package/esm/deps/jsr.io/@std/path/1.1.4/windows/normalize_glob.d.ts +20 -0
  228. package/esm/deps/jsr.io/@std/path/1.1.4/windows/normalize_glob.d.ts.map +1 -0
  229. package/esm/deps/jsr.io/@std/path/1.1.4/windows/normalize_glob.js +32 -0
  230. package/esm/deps/jsr.io/@std/path/1.1.4/windows/resolve.d.ts +17 -0
  231. package/esm/deps/jsr.io/@std/path/1.1.4/windows/resolve.d.ts.map +1 -0
  232. package/esm/deps/jsr.io/@std/path/1.1.4/windows/resolve.js +154 -0
  233. package/esm/mod.d.ts +57 -0
  234. package/esm/mod.d.ts.map +1 -0
  235. package/esm/mod.js +145 -0
  236. package/esm/mod_test.d.ts +2 -0
  237. package/esm/mod_test.d.ts.map +1 -0
  238. package/esm/package.json +3 -0
  239. package/esm/src/lisp1.d.ts +4 -0
  240. package/esm/src/lisp1.d.ts.map +1 -0
  241. package/esm/src/lisp1.js +660 -0
  242. package/esm/src/oml2ast.d.ts +4 -0
  243. package/esm/src/oml2ast.d.ts.map +1 -0
  244. package/esm/src/oml2ast.js +258 -0
  245. package/esm/src/omlcommon.d.ts +17 -0
  246. package/esm/src/omlcommon.d.ts.map +1 -0
  247. package/esm/src/omlcommon.js +128 -0
  248. package/package.json +33 -0
  249. package/script/_dnt.polyfills.d.ts +8 -0
  250. package/script/_dnt.polyfills.d.ts.map +1 -0
  251. package/script/_dnt.polyfills.js +111 -0
  252. package/script/_dnt.shims.d.ts +6 -0
  253. package/script/_dnt.shims.d.ts.map +1 -0
  254. package/script/_dnt.shims.js +65 -0
  255. package/script/_dnt.test_shims.d.ts.map +1 -0
  256. package/script/deps/jsr.io/@std/assert/1.0.19/almost_equals.d.ts.map +1 -0
  257. package/script/deps/jsr.io/@std/assert/1.0.19/array_includes.d.ts.map +1 -0
  258. package/script/deps/jsr.io/@std/assert/1.0.19/assert.d.ts.map +1 -0
  259. package/script/deps/jsr.io/@std/assert/1.0.19/assertion_error.d.ts.map +1 -0
  260. package/script/deps/jsr.io/@std/assert/1.0.19/equal.d.ts.map +1 -0
  261. package/script/deps/jsr.io/@std/assert/1.0.19/equals.d.ts.map +1 -0
  262. package/script/deps/jsr.io/@std/assert/1.0.19/exists.d.ts.map +1 -0
  263. package/script/deps/jsr.io/@std/assert/1.0.19/fail.d.ts.map +1 -0
  264. package/script/deps/jsr.io/@std/assert/1.0.19/false.d.ts.map +1 -0
  265. package/script/deps/jsr.io/@std/assert/1.0.19/greater.d.ts.map +1 -0
  266. package/script/deps/jsr.io/@std/assert/1.0.19/greater_or_equal.d.ts.map +1 -0
  267. package/script/deps/jsr.io/@std/assert/1.0.19/instance_of.d.ts.map +1 -0
  268. package/script/deps/jsr.io/@std/assert/1.0.19/is_error.d.ts.map +1 -0
  269. package/script/deps/jsr.io/@std/assert/1.0.19/less.d.ts.map +1 -0
  270. package/script/deps/jsr.io/@std/assert/1.0.19/less_or_equal.d.ts.map +1 -0
  271. package/script/deps/jsr.io/@std/assert/1.0.19/match.d.ts.map +1 -0
  272. package/script/deps/jsr.io/@std/assert/1.0.19/mod.d.ts.map +1 -0
  273. package/script/deps/jsr.io/@std/assert/1.0.19/not_equals.d.ts.map +1 -0
  274. package/script/deps/jsr.io/@std/assert/1.0.19/not_instance_of.d.ts.map +1 -0
  275. package/script/deps/jsr.io/@std/assert/1.0.19/not_match.d.ts.map +1 -0
  276. package/script/deps/jsr.io/@std/assert/1.0.19/not_strict_equals.d.ts.map +1 -0
  277. package/script/deps/jsr.io/@std/assert/1.0.19/object_match.d.ts.map +1 -0
  278. package/script/deps/jsr.io/@std/assert/1.0.19/rejects.d.ts.map +1 -0
  279. package/script/deps/jsr.io/@std/assert/1.0.19/strict_equals.d.ts.map +1 -0
  280. package/script/deps/jsr.io/@std/assert/1.0.19/string_includes.d.ts.map +1 -0
  281. package/script/deps/jsr.io/@std/assert/1.0.19/throws.d.ts.map +1 -0
  282. package/script/deps/jsr.io/@std/assert/1.0.19/unimplemented.d.ts.map +1 -0
  283. package/script/deps/jsr.io/@std/assert/1.0.19/unreachable.d.ts.map +1 -0
  284. package/script/deps/jsr.io/@std/fs/1.0.23/_create_walk_entry.d.ts +14 -0
  285. package/script/deps/jsr.io/@std/fs/1.0.23/_create_walk_entry.d.ts.map +1 -0
  286. package/script/deps/jsr.io/@std/fs/1.0.23/_create_walk_entry.js +71 -0
  287. package/script/deps/jsr.io/@std/fs/1.0.23/_get_file_info_type.d.ts +13 -0
  288. package/script/deps/jsr.io/@std/fs/1.0.23/_get_file_info_type.d.ts.map +1 -0
  289. package/script/deps/jsr.io/@std/fs/1.0.23/_get_file_info_type.js +21 -0
  290. package/script/deps/jsr.io/@std/fs/1.0.23/_is_same_path.d.ts +10 -0
  291. package/script/deps/jsr.io/@std/fs/1.0.23/_is_same_path.d.ts.map +1 -0
  292. package/script/deps/jsr.io/@std/fs/1.0.23/_is_same_path.js +20 -0
  293. package/script/deps/jsr.io/@std/fs/1.0.23/_is_subdir.d.ts +12 -0
  294. package/script/deps/jsr.io/@std/fs/1.0.23/_is_subdir.d.ts.map +1 -0
  295. package/script/deps/jsr.io/@std/fs/1.0.23/_is_subdir.js +28 -0
  296. package/script/deps/jsr.io/@std/fs/1.0.23/_to_path_string.d.ts +9 -0
  297. package/script/deps/jsr.io/@std/fs/1.0.23/_to_path_string.d.ts.map +1 -0
  298. package/script/deps/jsr.io/@std/fs/1.0.23/_to_path_string.js +16 -0
  299. package/script/deps/jsr.io/@std/fs/1.0.23/copy.d.ts +117 -0
  300. package/script/deps/jsr.io/@std/fs/1.0.23/copy.d.ts.map +1 -0
  301. package/script/deps/jsr.io/@std/fs/1.0.23/copy.js +350 -0
  302. package/script/deps/jsr.io/@std/fs/1.0.23/empty_dir.d.ts +48 -0
  303. package/script/deps/jsr.io/@std/fs/1.0.23/empty_dir.d.ts.map +1 -0
  304. package/script/deps/jsr.io/@std/fs/1.0.23/empty_dir.js +124 -0
  305. package/script/deps/jsr.io/@std/fs/1.0.23/ensure_dir.d.ts +49 -0
  306. package/script/deps/jsr.io/@std/fs/1.0.23/ensure_dir.d.ts.map +1 -0
  307. package/script/deps/jsr.io/@std/fs/1.0.23/ensure_dir.js +139 -0
  308. package/script/deps/jsr.io/@std/fs/1.0.23/ensure_file.d.ts +47 -0
  309. package/script/deps/jsr.io/@std/fs/1.0.23/ensure_file.d.ts.map +1 -0
  310. package/script/deps/jsr.io/@std/fs/1.0.23/ensure_file.js +127 -0
  311. package/script/deps/jsr.io/@std/fs/1.0.23/ensure_link.d.ts +49 -0
  312. package/script/deps/jsr.io/@std/fs/1.0.23/ensure_link.d.ts.map +1 -0
  313. package/script/deps/jsr.io/@std/fs/1.0.23/ensure_link.js +98 -0
  314. package/script/deps/jsr.io/@std/fs/1.0.23/ensure_symlink.d.ts +70 -0
  315. package/script/deps/jsr.io/@std/fs/1.0.23/ensure_symlink.d.ts.map +1 -0
  316. package/script/deps/jsr.io/@std/fs/1.0.23/ensure_symlink.js +193 -0
  317. package/script/deps/jsr.io/@std/fs/1.0.23/eol.d.ts +52 -0
  318. package/script/deps/jsr.io/@std/fs/1.0.23/eol.d.ts.map +1 -0
  319. package/script/deps/jsr.io/@std/fs/1.0.23/eol.js +105 -0
  320. package/script/deps/jsr.io/@std/fs/1.0.23/exists.d.ts +218 -0
  321. package/script/deps/jsr.io/@std/fs/1.0.23/exists.d.ts.map +1 -0
  322. package/script/deps/jsr.io/@std/fs/1.0.23/exists.js +308 -0
  323. package/script/deps/jsr.io/@std/fs/1.0.23/expand_glob.d.ts +267 -0
  324. package/script/deps/jsr.io/@std/fs/1.0.23/expand_glob.d.ts.map +1 -0
  325. package/script/deps/jsr.io/@std/fs/1.0.23/expand_glob.js +479 -0
  326. package/script/deps/jsr.io/@std/fs/1.0.23/mod.d.ts +29 -0
  327. package/script/deps/jsr.io/@std/fs/1.0.23/mod.d.ts.map +1 -0
  328. package/script/deps/jsr.io/@std/fs/1.0.23/mod.js +45 -0
  329. package/script/deps/jsr.io/@std/fs/1.0.23/move.d.ts +86 -0
  330. package/script/deps/jsr.io/@std/fs/1.0.23/move.d.ts.map +1 -0
  331. package/script/deps/jsr.io/@std/fs/1.0.23/move.js +179 -0
  332. package/script/deps/jsr.io/@std/fs/1.0.23/walk.d.ts +777 -0
  333. package/script/deps/jsr.io/@std/fs/1.0.23/walk.d.ts.map +1 -0
  334. package/script/deps/jsr.io/@std/fs/1.0.23/walk.js +883 -0
  335. package/script/deps/jsr.io/@std/internal/1.0.12/_os.d.ts +2 -0
  336. package/script/deps/jsr.io/@std/internal/1.0.12/_os.d.ts.map +1 -0
  337. package/script/deps/jsr.io/@std/internal/1.0.12/_os.js +48 -0
  338. package/script/deps/jsr.io/@std/internal/1.0.12/build_message.d.ts.map +1 -0
  339. package/script/deps/jsr.io/@std/internal/1.0.12/diff.d.ts.map +1 -0
  340. package/script/deps/jsr.io/@std/internal/1.0.12/diff_str.d.ts.map +1 -0
  341. package/script/deps/jsr.io/@std/internal/1.0.12/format.d.ts.map +1 -0
  342. package/script/deps/jsr.io/@std/internal/1.0.12/os.d.ts +3 -0
  343. package/script/deps/jsr.io/@std/internal/1.0.12/os.d.ts.map +1 -0
  344. package/script/deps/jsr.io/@std/internal/1.0.12/os.js +8 -0
  345. package/script/deps/jsr.io/@std/internal/1.0.12/styles.d.ts.map +1 -0
  346. package/script/deps/jsr.io/@std/internal/1.0.12/types.d.ts.map +1 -0
  347. package/script/deps/jsr.io/@std/path/1.1.4/_common/assert_path.d.ts +2 -0
  348. package/script/deps/jsr.io/@std/path/1.1.4/_common/assert_path.d.ts.map +1 -0
  349. package/script/deps/jsr.io/@std/path/1.1.4/_common/assert_path.js +10 -0
  350. package/script/deps/jsr.io/@std/path/1.1.4/_common/basename.d.ts +4 -0
  351. package/script/deps/jsr.io/@std/path/1.1.4/_common/basename.d.ts.map +1 -0
  352. package/script/deps/jsr.io/@std/path/1.1.4/_common/basename.js +45 -0
  353. package/script/deps/jsr.io/@std/path/1.1.4/_common/constants.d.ts +40 -0
  354. package/script/deps/jsr.io/@std/path/1.1.4/_common/constants.d.ts.map +1 -0
  355. package/script/deps/jsr.io/@std/path/1.1.4/_common/constants.js +49 -0
  356. package/script/deps/jsr.io/@std/path/1.1.4/_common/dirname.d.ts +2 -0
  357. package/script/deps/jsr.io/@std/path/1.1.4/_common/dirname.d.ts.map +1 -0
  358. package/script/deps/jsr.io/@std/path/1.1.4/_common/dirname.js +11 -0
  359. package/script/deps/jsr.io/@std/path/1.1.4/_common/from_file_url.d.ts +2 -0
  360. package/script/deps/jsr.io/@std/path/1.1.4/_common/from_file_url.d.ts.map +1 -0
  361. package/script/deps/jsr.io/@std/path/1.1.4/_common/from_file_url.js +12 -0
  362. package/script/deps/jsr.io/@std/path/1.1.4/_common/glob_to_reg_exp.d.ts +35 -0
  363. package/script/deps/jsr.io/@std/path/1.1.4/_common/glob_to_reg_exp.d.ts.map +1 -0
  364. package/script/deps/jsr.io/@std/path/1.1.4/_common/glob_to_reg_exp.js +238 -0
  365. package/script/deps/jsr.io/@std/path/1.1.4/_common/normalize.d.ts +2 -0
  366. package/script/deps/jsr.io/@std/path/1.1.4/_common/normalize.d.ts.map +1 -0
  367. package/script/deps/jsr.io/@std/path/1.1.4/_common/normalize.js +11 -0
  368. package/script/deps/jsr.io/@std/path/1.1.4/_common/normalize_string.d.ts +2 -0
  369. package/script/deps/jsr.io/@std/path/1.1.4/_common/normalize_string.d.ts.map +1 -0
  370. package/script/deps/jsr.io/@std/path/1.1.4/_common/normalize_string.js +80 -0
  371. package/script/deps/jsr.io/@std/path/1.1.4/_common/strip_trailing_separators.d.ts +2 -0
  372. package/script/deps/jsr.io/@std/path/1.1.4/_common/strip_trailing_separators.d.ts.map +1 -0
  373. package/script/deps/jsr.io/@std/path/1.1.4/_common/strip_trailing_separators.js +22 -0
  374. package/script/deps/jsr.io/@std/path/1.1.4/basename.d.ts +27 -0
  375. package/script/deps/jsr.io/@std/path/1.1.4/basename.d.ts.map +1 -0
  376. package/script/deps/jsr.io/@std/path/1.1.4/basename.js +38 -0
  377. package/script/deps/jsr.io/@std/path/1.1.4/constants.d.ts +15 -0
  378. package/script/deps/jsr.io/@std/path/1.1.4/constants.d.ts.map +1 -0
  379. package/script/deps/jsr.io/@std/path/1.1.4/constants.js +20 -0
  380. package/script/deps/jsr.io/@std/path/1.1.4/dirname.d.ts +22 -0
  381. package/script/deps/jsr.io/@std/path/1.1.4/dirname.d.ts.map +1 -0
  382. package/script/deps/jsr.io/@std/path/1.1.4/dirname.js +31 -0
  383. package/script/deps/jsr.io/@std/path/1.1.4/from_file_url.d.ts +22 -0
  384. package/script/deps/jsr.io/@std/path/1.1.4/from_file_url.d.ts.map +1 -0
  385. package/script/deps/jsr.io/@std/path/1.1.4/from_file_url.js +31 -0
  386. package/script/deps/jsr.io/@std/path/1.1.4/glob_to_regexp.d.ts +77 -0
  387. package/script/deps/jsr.io/@std/path/1.1.4/glob_to_regexp.d.ts.map +1 -0
  388. package/script/deps/jsr.io/@std/path/1.1.4/glob_to_regexp.js +86 -0
  389. package/script/deps/jsr.io/@std/path/1.1.4/is_absolute.d.ts +22 -0
  390. package/script/deps/jsr.io/@std/path/1.1.4/is_absolute.d.ts.map +1 -0
  391. package/script/deps/jsr.io/@std/path/1.1.4/is_absolute.js +31 -0
  392. package/script/deps/jsr.io/@std/path/1.1.4/is_glob.d.ts +17 -0
  393. package/script/deps/jsr.io/@std/path/1.1.4/is_glob.d.ts.map +1 -0
  394. package/script/deps/jsr.io/@std/path/1.1.4/is_glob.js +45 -0
  395. package/script/deps/jsr.io/@std/path/1.1.4/join.d.ts +23 -0
  396. package/script/deps/jsr.io/@std/path/1.1.4/join.d.ts.map +1 -0
  397. package/script/deps/jsr.io/@std/path/1.1.4/join.js +32 -0
  398. package/script/deps/jsr.io/@std/path/1.1.4/join_globs.d.ts +28 -0
  399. package/script/deps/jsr.io/@std/path/1.1.4/join_globs.d.ts.map +1 -0
  400. package/script/deps/jsr.io/@std/path/1.1.4/join_globs.js +37 -0
  401. package/script/deps/jsr.io/@std/path/1.1.4/normalize.d.ts +26 -0
  402. package/script/deps/jsr.io/@std/path/1.1.4/normalize.d.ts.map +1 -0
  403. package/script/deps/jsr.io/@std/path/1.1.4/normalize.js +35 -0
  404. package/script/deps/jsr.io/@std/path/1.1.4/posix/_util.d.ts +2 -0
  405. package/script/deps/jsr.io/@std/path/1.1.4/posix/_util.d.ts.map +1 -0
  406. package/script/deps/jsr.io/@std/path/1.1.4/posix/_util.js +11 -0
  407. package/script/deps/jsr.io/@std/path/1.1.4/posix/basename.d.ts +39 -0
  408. package/script/deps/jsr.io/@std/path/1.1.4/posix/basename.d.ts.map +1 -0
  409. package/script/deps/jsr.io/@std/path/1.1.4/posix/basename.js +55 -0
  410. package/script/deps/jsr.io/@std/path/1.1.4/posix/constants.d.ts +13 -0
  411. package/script/deps/jsr.io/@std/path/1.1.4/posix/constants.d.ts.map +1 -0
  412. package/script/deps/jsr.io/@std/path/1.1.4/posix/constants.js +17 -0
  413. package/script/deps/jsr.io/@std/path/1.1.4/posix/dirname.d.ts +30 -0
  414. package/script/deps/jsr.io/@std/path/1.1.4/posix/dirname.d.ts.map +1 -0
  415. package/script/deps/jsr.io/@std/path/1.1.4/posix/dirname.js +67 -0
  416. package/script/deps/jsr.io/@std/path/1.1.4/posix/from_file_url.d.ts +16 -0
  417. package/script/deps/jsr.io/@std/path/1.1.4/posix/from_file_url.d.ts.map +1 -0
  418. package/script/deps/jsr.io/@std/path/1.1.4/posix/from_file_url.js +24 -0
  419. package/script/deps/jsr.io/@std/path/1.1.4/posix/glob_to_regexp.d.ts +72 -0
  420. package/script/deps/jsr.io/@std/path/1.1.4/posix/glob_to_regexp.d.ts.map +1 -0
  421. package/script/deps/jsr.io/@std/path/1.1.4/posix/glob_to_regexp.js +85 -0
  422. package/script/deps/jsr.io/@std/path/1.1.4/posix/is_absolute.d.ts +17 -0
  423. package/script/deps/jsr.io/@std/path/1.1.4/posix/is_absolute.d.ts.map +1 -0
  424. package/script/deps/jsr.io/@std/path/1.1.4/posix/is_absolute.js +26 -0
  425. package/script/deps/jsr.io/@std/path/1.1.4/posix/join.d.ts +31 -0
  426. package/script/deps/jsr.io/@std/path/1.1.4/posix/join.d.ts.map +1 -0
  427. package/script/deps/jsr.io/@std/path/1.1.4/posix/join.js +48 -0
  428. package/script/deps/jsr.io/@std/path/1.1.4/posix/join_globs.d.ts +20 -0
  429. package/script/deps/jsr.io/@std/path/1.1.4/posix/join_globs.d.ts.map +1 -0
  430. package/script/deps/jsr.io/@std/path/1.1.4/posix/join_globs.js +43 -0
  431. package/script/deps/jsr.io/@std/path/1.1.4/posix/normalize.d.ts +37 -0
  432. package/script/deps/jsr.io/@std/path/1.1.4/posix/normalize.d.ts.map +1 -0
  433. package/script/deps/jsr.io/@std/path/1.1.4/posix/normalize.js +61 -0
  434. package/script/deps/jsr.io/@std/path/1.1.4/posix/normalize_glob.d.ts +20 -0
  435. package/script/deps/jsr.io/@std/path/1.1.4/posix/normalize_glob.d.ts.map +1 -0
  436. package/script/deps/jsr.io/@std/path/1.1.4/posix/normalize_glob.js +35 -0
  437. package/script/deps/jsr.io/@std/path/1.1.4/posix/resolve.d.ts +17 -0
  438. package/script/deps/jsr.io/@std/path/1.1.4/posix/resolve.d.ts.map +1 -0
  439. package/script/deps/jsr.io/@std/path/1.1.4/posix/resolve.js +95 -0
  440. package/script/deps/jsr.io/@std/path/1.1.4/resolve.d.ts +22 -0
  441. package/script/deps/jsr.io/@std/path/1.1.4/resolve.d.ts.map +1 -0
  442. package/script/deps/jsr.io/@std/path/1.1.4/resolve.js +33 -0
  443. package/script/deps/jsr.io/@std/path/1.1.4/windows/_util.d.ts +4 -0
  444. package/script/deps/jsr.io/@std/path/1.1.4/windows/_util.d.ts.map +1 -0
  445. package/script/deps/jsr.io/@std/path/1.1.4/windows/_util.js +20 -0
  446. package/script/deps/jsr.io/@std/path/1.1.4/windows/basename.d.ts +22 -0
  447. package/script/deps/jsr.io/@std/path/1.1.4/windows/basename.d.ts.map +1 -0
  448. package/script/deps/jsr.io/@std/path/1.1.4/windows/basename.js +50 -0
  449. package/script/deps/jsr.io/@std/path/1.1.4/windows/constants.d.ts +13 -0
  450. package/script/deps/jsr.io/@std/path/1.1.4/windows/constants.d.ts.map +1 -0
  451. package/script/deps/jsr.io/@std/path/1.1.4/windows/constants.js +17 -0
  452. package/script/deps/jsr.io/@std/path/1.1.4/windows/dirname.d.ts +17 -0
  453. package/script/deps/jsr.io/@std/path/1.1.4/windows/dirname.d.ts.map +1 -0
  454. package/script/deps/jsr.io/@std/path/1.1.4/windows/dirname.js +116 -0
  455. package/script/deps/jsr.io/@std/path/1.1.4/windows/from_file_url.d.ts +18 -0
  456. package/script/deps/jsr.io/@std/path/1.1.4/windows/from_file_url.d.ts.map +1 -0
  457. package/script/deps/jsr.io/@std/path/1.1.4/windows/from_file_url.js +33 -0
  458. package/script/deps/jsr.io/@std/path/1.1.4/windows/glob_to_regexp.d.ts +71 -0
  459. package/script/deps/jsr.io/@std/path/1.1.4/windows/glob_to_regexp.d.ts.map +1 -0
  460. package/script/deps/jsr.io/@std/path/1.1.4/windows/glob_to_regexp.js +85 -0
  461. package/script/deps/jsr.io/@std/path/1.1.4/windows/is_absolute.d.ts +17 -0
  462. package/script/deps/jsr.io/@std/path/1.1.4/windows/is_absolute.d.ts.map +1 -0
  463. package/script/deps/jsr.io/@std/path/1.1.4/windows/is_absolute.js +41 -0
  464. package/script/deps/jsr.io/@std/path/1.1.4/windows/join.d.ts +18 -0
  465. package/script/deps/jsr.io/@std/path/1.1.4/windows/join.d.ts.map +1 -0
  466. package/script/deps/jsr.io/@std/path/1.1.4/windows/join.js +80 -0
  467. package/script/deps/jsr.io/@std/path/1.1.4/windows/join_globs.d.ts +21 -0
  468. package/script/deps/jsr.io/@std/path/1.1.4/windows/join_globs.d.ts.map +1 -0
  469. package/script/deps/jsr.io/@std/path/1.1.4/windows/join_globs.js +44 -0
  470. package/script/deps/jsr.io/@std/path/1.1.4/windows/normalize.d.ts +19 -0
  471. package/script/deps/jsr.io/@std/path/1.1.4/windows/normalize.d.ts.map +1 -0
  472. package/script/deps/jsr.io/@std/path/1.1.4/windows/normalize.js +138 -0
  473. package/script/deps/jsr.io/@std/path/1.1.4/windows/normalize_glob.d.ts +20 -0
  474. package/script/deps/jsr.io/@std/path/1.1.4/windows/normalize_glob.d.ts.map +1 -0
  475. package/script/deps/jsr.io/@std/path/1.1.4/windows/normalize_glob.js +35 -0
  476. package/script/deps/jsr.io/@std/path/1.1.4/windows/resolve.d.ts +17 -0
  477. package/script/deps/jsr.io/@std/path/1.1.4/windows/resolve.d.ts.map +1 -0
  478. package/script/deps/jsr.io/@std/path/1.1.4/windows/resolve.js +190 -0
  479. package/script/mod.d.ts +57 -0
  480. package/script/mod.d.ts.map +1 -0
  481. package/script/mod.js +199 -0
  482. package/script/mod_test.d.ts +2 -0
  483. package/script/mod_test.d.ts.map +1 -0
  484. package/script/package.json +3 -0
  485. package/script/src/lisp1.d.ts +4 -0
  486. package/script/src/lisp1.d.ts.map +1 -0
  487. package/script/src/lisp1.js +701 -0
  488. package/script/src/oml2ast.d.ts +4 -0
  489. package/script/src/oml2ast.d.ts.map +1 -0
  490. package/script/src/oml2ast.js +263 -0
  491. package/script/src/omlcommon.d.ts +17 -0
  492. package/script/src/omlcommon.d.ts.map +1 -0
  493. package/script/src/omlcommon.js +132 -0
@@ -0,0 +1,883 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.walk = walk;
37
+ exports.walkSync = walkSync;
38
+ // Copyright 2018-2026 the Deno authors. MIT license.
39
+ // Documentation and interface for walk were adapted from Go
40
+ // https://golang.org/pkg/path/filepath/#Walk
41
+ // Copyright 2009 The Go Authors. All rights reserved. BSD license.
42
+ const dntShim = __importStar(require("../../../../../_dnt.shims.js"));
43
+ const join_js_1 = require("../../path/1.1.4/join.js");
44
+ const _to_path_string_js_1 = require("./_to_path_string.js");
45
+ const _create_walk_entry_js_1 = require("./_create_walk_entry.js");
46
+ function include(path, exts, match, skip) {
47
+ if (exts && !exts.some((ext) => path.endsWith(ext))) {
48
+ return false;
49
+ }
50
+ if (match && !match.some((pattern) => !!path.match(pattern))) {
51
+ return false;
52
+ }
53
+ if (skip && skip.some((pattern) => !!path.match(pattern))) {
54
+ return false;
55
+ }
56
+ return true;
57
+ }
58
+ /**
59
+ * Recursively walks through a directory and yields information about each file
60
+ * and directory encountered.
61
+ *
62
+ * The root path determines whether the file paths are relative or absolute.
63
+ * The root directory is included in the yielded entries.
64
+ *
65
+ * Requires `--allow-read` permission.
66
+ *
67
+ * @see {@link https://docs.deno.com/runtime/manual/basics/permissions#file-system-access}
68
+ * for more information on Deno's permissions system.
69
+ *
70
+ * @param root The root directory to start the walk from, as a string or URL.
71
+ * @param options The options for the walk.
72
+ * @throws {Deno.errors.NotFound} If the root directory does not exist.
73
+ *
74
+ * @returns An async iterable iterator that yields the walk entry objects.
75
+ *
76
+ * @example Basic usage
77
+ *
78
+ * File structure:
79
+ * ```
80
+ * folder
81
+ * ├── script.ts
82
+ * └── foo.ts
83
+ * ```
84
+ *
85
+ * ```ts ignore
86
+ * import { walk } from "@std/fs/walk";
87
+ *
88
+ * await Array.fromAsync(walk("."));
89
+ * // [
90
+ * // {
91
+ * // path: ".",
92
+ * // name: ".",
93
+ * // isFile: false,
94
+ * // isDirectory: true,
95
+ * // isSymlink: false
96
+ * // },
97
+ * // {
98
+ * // path: "script.ts",
99
+ * // name: "script.ts",
100
+ * // isFile: true,
101
+ * // isDirectory: false,
102
+ * // isSymlink: false
103
+ * // },
104
+ * // {
105
+ * // path: "foo.ts",
106
+ * // name: "foo.ts",
107
+ * // isFile: true,
108
+ * // isDirectory: false,
109
+ * // isSymlink: false
110
+ * // },
111
+ * // ]
112
+ * ```
113
+ *
114
+ * @example Maximum file depth
115
+ *
116
+ * Setting the `maxDepth` option to `1` will only include the root directory and
117
+ * its immediate children.
118
+ *
119
+ * File structure:
120
+ * ```
121
+ * folder
122
+ * ├── script.ts
123
+ * └── foo
124
+ * └── bar.ts
125
+ * ```
126
+ *
127
+ * ```ts ignore
128
+ * import { walk } from "@std/fs/walk";
129
+ *
130
+ * await Array.fromAsync(walk(".", { maxDepth: 1 }));
131
+ * // [
132
+ * // {
133
+ * // path: ".",
134
+ * // name: ".",
135
+ * // isFile: false,
136
+ * // isDirectory: true,
137
+ * // isSymlink: false
138
+ * // },
139
+ * // {
140
+ * // path: "script.ts",
141
+ * // name: "script.ts",
142
+ * // isFile: true,
143
+ * // isDirectory: false,
144
+ * // isSymlink: false
145
+ * // },
146
+ * // {
147
+ * // path: "foo",
148
+ * // name: "foo",
149
+ * // isFile: false,
150
+ * // isDirectory: true,
151
+ * // isSymlink: false
152
+ * // },
153
+ * // ]
154
+ * ```
155
+ *
156
+ * @example Exclude files
157
+ *
158
+ * Setting the `includeFiles` option to `false` will exclude files.
159
+ *
160
+ * File structure:
161
+ * ```
162
+ * folder
163
+ * ├── script.ts
164
+ * └── foo
165
+ * ```
166
+ *
167
+ * ```ts ignore
168
+ * import { walk } from "@std/fs/walk";
169
+ *
170
+ * await Array.fromAsync(walk(".", { includeFiles: false }));
171
+ * // [
172
+ * // {
173
+ * // path: ".",
174
+ * // name: ".",
175
+ * // isFile: false,
176
+ * // isDirectory: true,
177
+ * // isSymlink: false
178
+ * // },
179
+ * // {
180
+ * // path: "foo",
181
+ * // name: "foo",
182
+ * // isFile: false,
183
+ * // isDirectory: true,
184
+ * // isSymlink: false,
185
+ * // },
186
+ * // ]
187
+ * ```
188
+ *
189
+ * @example Exclude directories
190
+ *
191
+ * Setting the `includeDirs` option to `false` will exclude directories.
192
+ *
193
+ * File structure:
194
+ * ```
195
+ * folder
196
+ * ├── script.ts
197
+ * └── foo
198
+ * ```
199
+ *
200
+ * ```ts ignore
201
+ * import { walk } from "@std/fs/walk";
202
+ *
203
+ * await Array.fromAsync(walk(".", { includeDirs: false }));
204
+ * // [
205
+ * // {
206
+ * // path: "script.ts",
207
+ * // name: "script.ts",
208
+ * // isFile: true,
209
+ * // isDirectory: false,
210
+ * // isSymlink: false
211
+ * // },
212
+ * // ]
213
+ * ```
214
+ *
215
+ * @example Exclude symbolic links
216
+ *
217
+ * Setting the `includeSymlinks` option to `false` will exclude symbolic links.
218
+ *
219
+ * File structure:
220
+ * ```
221
+ * folder
222
+ * ├── script.ts
223
+ * ├── foo
224
+ * └── link -> script.ts (symbolic link)
225
+ * ```
226
+ *
227
+ * ```ts ignore
228
+ * import { walk } from "@std/fs/walk";
229
+ *
230
+ * await Array.fromAsync(walk(".", { includeSymlinks: false }));
231
+ * // [
232
+ * // {
233
+ * // path: ".",
234
+ * // name: ".",
235
+ * // isFile: false,
236
+ * // isDirectory: true,
237
+ * // isSymlink: false
238
+ * // },
239
+ * // {
240
+ * // path: "script.ts",
241
+ * // name: "script.ts",
242
+ * // isFile: true,
243
+ * // isDirectory: false,
244
+ * // isSymlink: false
245
+ * // },
246
+ * // ]
247
+ * ```
248
+ *
249
+ * @example Follow symbolic links
250
+ *
251
+ * Setting the `followSymlinks` option to `true` will follow symbolic links,
252
+ * affecting the `path` property of the walk entry.
253
+ *
254
+ * File structure:
255
+ * ```
256
+ * folder
257
+ * ├── script.ts
258
+ * └── link -> script.ts (symbolic link)
259
+ * ```
260
+ *
261
+ * ```ts ignore
262
+ * import { walk } from "@std/fs/walk";
263
+ *
264
+ * await Array.fromAsync(walk(".", { followSymlinks: true }));
265
+ * // [
266
+ * // {
267
+ * // path: ".",
268
+ * // name: ".",
269
+ * // isFile: false,
270
+ * // isDirectory: true,
271
+ * // isSymlink: false
272
+ * // },
273
+ * // {
274
+ * // path: "script.ts",
275
+ * // name: "script.ts",
276
+ * // isFile: true,
277
+ * // isDirectory: false,
278
+ * // isSymlink: false
279
+ * // },
280
+ * // {
281
+ * // path: "script.ts",
282
+ * // name: "link",
283
+ * // isFile: true,
284
+ * // isDirectory: false,
285
+ * // isSymlink: true
286
+ * // },
287
+ * // ]
288
+ * ```
289
+ *
290
+ * @example Canonicalize symbolic links
291
+ *
292
+ * Setting the `canonicalize` option to `false` will canonicalize the path of
293
+ * the followed symbolic link. Meaning, the `path` property of the walk entry
294
+ * will be the path of the symbolic link itself.
295
+ *
296
+ * File structure:
297
+ * ```
298
+ * folder
299
+ * ├── script.ts
300
+ * └── link -> script.ts (symbolic link)
301
+ * ```
302
+ *
303
+ * ```ts ignore
304
+ * import { walk } from "@std/fs/walk";
305
+ *
306
+ * await Array.fromAsync(walk(".", { followSymlinks: true, canonicalize: true }));
307
+ * // [
308
+ * // {
309
+ * // path: ".",
310
+ * // name: ".",
311
+ * // isFile: false,
312
+ * // isDirectory: true,
313
+ * // isSymlink: false
314
+ * // },
315
+ * // {
316
+ * // path: "script.ts",
317
+ * // name: "script.ts",
318
+ * // isFile: true,
319
+ * // isDirectory: false,
320
+ * // isSymlink: false
321
+ * // },
322
+ * // {
323
+ * // path: "link",
324
+ * // name: "link",
325
+ * // isFile: true,
326
+ * // isDirectory: false,
327
+ * // isSymlink: true
328
+ * // },
329
+ * // ]
330
+ * ```
331
+ *
332
+ * @example Filter by file extensions
333
+ *
334
+ * Setting the `exts` option to `[".ts"]` or `["ts"]` will only include entries
335
+ * with the `.ts` file extension.
336
+ *
337
+ * File structure:
338
+ * ```
339
+ * folder
340
+ * ├── script.ts
341
+ * └── foo.js
342
+ * ```
343
+ *
344
+ * ```ts ignore
345
+ * import { walk } from "@std/fs/walk";
346
+ *
347
+ * await Array.fromAsync(walk(".", { exts: [".ts"] }));
348
+ * // [
349
+ * // {
350
+ * // path: "script.ts",
351
+ * // name: "script.ts",
352
+ * // isFile: true,
353
+ * // isDirectory: false,
354
+ * // isSymlink: false
355
+ * // },
356
+ * // ]
357
+ * ```
358
+ *
359
+ * @example Filter by regular expressions
360
+ *
361
+ * Setting the `match` option to `[/s/]` will only include entries with the
362
+ * letter `s` in their name.
363
+ *
364
+ * File structure:
365
+ * ```
366
+ * folder
367
+ * ├── script.ts
368
+ * └── README.md
369
+ * ```
370
+ *
371
+ * ```ts ignore
372
+ * import { walk } from "@std/fs/walk";
373
+ *
374
+ * await Array.fromAsync(walk(".", { match: [/s/] }));
375
+ * // [
376
+ * // {
377
+ * // path: "script.ts",
378
+ * // name: "script.ts",
379
+ * // isFile: true,
380
+ * // isDirectory: false,
381
+ * // isSymlink: false
382
+ * // },
383
+ * // ]
384
+ * ```
385
+ *
386
+ * @example Exclude by regular expressions
387
+ *
388
+ * Setting the `skip` option to `[/s/]` will exclude entries with the letter
389
+ * `s` in their name.
390
+ *
391
+ * File structure:
392
+ * ```
393
+ * folder
394
+ * ├── script.ts
395
+ * └── README.md
396
+ * ```
397
+ *
398
+ * ```ts ignore
399
+ * import { walk } from "@std/fs/walk";
400
+ *
401
+ * await Array.fromAsync(walk(".", { skip: [/s/] }));
402
+ * // [
403
+ * // {
404
+ * // path: "README.md",
405
+ * // name: "README.md",
406
+ * // isFile: true,
407
+ * // isDirectory: false,
408
+ * // isSymlink: false
409
+ * // },
410
+ * // ]
411
+ * ```
412
+ */
413
+ async function* walk(root, options) {
414
+ let { maxDepth = Infinity, includeFiles = true, includeDirs = true, includeSymlinks = true, followSymlinks = false, canonicalize = true, exts = undefined, match = undefined, skip = undefined, } = options ?? {};
415
+ if (maxDepth < 0) {
416
+ return;
417
+ }
418
+ root = (0, _to_path_string_js_1.toPathString)(root);
419
+ if (exts) {
420
+ exts = exts.map((ext) => ext.startsWith(".") ? ext : `.${ext}`);
421
+ }
422
+ if (includeDirs && include(root, exts, match, skip)) {
423
+ yield await (0, _create_walk_entry_js_1.createWalkEntry)(root);
424
+ }
425
+ if (maxDepth < 1 || !include(root, undefined, undefined, skip)) {
426
+ return;
427
+ }
428
+ for await (const entry of dntShim.Deno.readDir(root)) {
429
+ let path = (0, join_js_1.join)(root, entry.name);
430
+ let { isSymlink, isDirectory } = entry;
431
+ if (isSymlink) {
432
+ if (!followSymlinks) {
433
+ if (includeSymlinks && include(path, exts, match, skip)) {
434
+ yield { path, ...entry };
435
+ }
436
+ continue;
437
+ }
438
+ const realPath = await dntShim.Deno.realPath(path);
439
+ if (canonicalize) {
440
+ path = realPath;
441
+ }
442
+ // Caveat emptor: don't assume |path| is not a symlink. realpath()
443
+ // resolves symlinks but another process can replace the file system
444
+ // entity with a different type of entity before we call lstat().
445
+ ({ isSymlink, isDirectory } = await dntShim.Deno.lstat(realPath));
446
+ }
447
+ if (isSymlink || isDirectory) {
448
+ const opts = {
449
+ maxDepth: maxDepth - 1,
450
+ includeFiles,
451
+ includeDirs,
452
+ includeSymlinks,
453
+ followSymlinks,
454
+ };
455
+ if (exts !== undefined) {
456
+ opts.exts = exts;
457
+ }
458
+ if (match !== undefined) {
459
+ opts.match = match;
460
+ }
461
+ if (skip !== undefined) {
462
+ opts.skip = skip;
463
+ }
464
+ yield* walk(path, opts);
465
+ }
466
+ else if (includeFiles && include(path, exts, match, skip)) {
467
+ yield { path, ...entry };
468
+ }
469
+ }
470
+ }
471
+ /**
472
+ * Recursively walks through a directory and yields information about each file
473
+ * and directory encountered.
474
+ *
475
+ * The root path determines whether the file paths is relative or absolute.
476
+ * The root directory is included in the yielded entries.
477
+ *
478
+ * Requires `--allow-read` permission.
479
+ *
480
+ * @see {@link https://docs.deno.com/runtime/manual/basics/permissions#file-system-access}
481
+ * for more information on Deno's permissions system.
482
+ *
483
+ * @param root The root directory to start the walk from, as a string or URL.
484
+ * @param options The options for the walk.
485
+ *
486
+ * @returns A synchronous iterable iterator that yields the walk entry objects.
487
+ *
488
+ * @example Basic usage
489
+ *
490
+ * File structure:
491
+ * ```
492
+ * folder
493
+ * ├── script.ts
494
+ * └── foo.ts
495
+ * ```
496
+ *
497
+ * ```ts ignore
498
+ * import { walkSync } from "@std/fs/walk";
499
+ *
500
+ * Array.from(walkSync("."));
501
+ * // [
502
+ * // {
503
+ * // path: ".",
504
+ * // name: ".",
505
+ * // isFile: false,
506
+ * // isDirectory: true,
507
+ * // isSymlink: false
508
+ * // },
509
+ * // {
510
+ * // path: "script.ts",
511
+ * // name: "script.ts",
512
+ * // isFile: true,
513
+ * // isDirectory: false,
514
+ * // isSymlink: false
515
+ * // },
516
+ * // {
517
+ * // path: "foo.ts",
518
+ * // name: "foo.ts",
519
+ * // isFile: true,
520
+ * // isDirectory: false,
521
+ * // isSymlink: false
522
+ * // },
523
+ * // ]
524
+ * ```
525
+ *
526
+ * @example Maximum file depth
527
+ *
528
+ * Setting the `maxDepth` option to `1` will only include the root directory and
529
+ * its immediate children.
530
+ *
531
+ * File structure:
532
+ * ```
533
+ * folder
534
+ * ├── script.ts
535
+ * └── foo
536
+ * └── bar.ts
537
+ * ```
538
+ *
539
+ * ```ts ignore
540
+ * import { walkSync } from "@std/fs/walk";
541
+ *
542
+ * Array.from(walkSync(".", { maxDepth: 1 }));
543
+ * // [
544
+ * // {
545
+ * // path: ".",
546
+ * // name: ".",
547
+ * // isFile: false,
548
+ * // isDirectory: true,
549
+ * // isSymlink: false
550
+ * // },
551
+ * // {
552
+ * // path: "script.ts",
553
+ * // name: "script.ts",
554
+ * // isFile: true,
555
+ * // isDirectory: false,
556
+ * // isSymlink: false
557
+ * // },
558
+ * // {
559
+ * // path: "foo",
560
+ * // name: "foo",
561
+ * // isFile: false,
562
+ * // isDirectory: true,
563
+ * // isSymlink: false
564
+ * // },
565
+ * // ]
566
+ * ```
567
+ *
568
+ * @example Exclude files
569
+ *
570
+ * Setting the `includeFiles` option to `false` will exclude files.
571
+ *
572
+ * File structure:
573
+ * ```
574
+ * folder
575
+ * ├── script.ts
576
+ * └── foo
577
+ * ```
578
+ *
579
+ * ```ts ignore
580
+ * import { walkSync } from "@std/fs/walk";
581
+ *
582
+ * Array.from(walkSync(".", { includeFiles: false }));
583
+ * // [
584
+ * // {
585
+ * // path: ".",
586
+ * // name: ".",
587
+ * // isFile: false,
588
+ * // isDirectory: true,
589
+ * // isSymlink: false
590
+ * // },
591
+ * // {
592
+ * // path: "foo",
593
+ * // name: "foo",
594
+ * // isFile: false,
595
+ * // isDirectory: true,
596
+ * // isSymlink: false,
597
+ * // },
598
+ * // ]
599
+ * ```
600
+ *
601
+ * @example Exclude directories
602
+ *
603
+ * Setting the `includeDirs` option to `false` will exclude directories.
604
+ *
605
+ * File structure:
606
+ * ```
607
+ * folder
608
+ * ├── script.ts
609
+ * └── foo
610
+ * ```
611
+ *
612
+ * ```ts ignore
613
+ * import { walkSync } from "@std/fs/walk";
614
+ *
615
+ * Array.from(walkSync(".", { includeDirs: false }));
616
+ * // [
617
+ * // {
618
+ * // path: "script.ts",
619
+ * // name: "script.ts",
620
+ * // isFile: true,
621
+ * // isDirectory: false,
622
+ * // isSymlink: false
623
+ * // },
624
+ * // ]
625
+ * ```
626
+ *
627
+ * @example Exclude symbolic links
628
+ *
629
+ * Setting the `includeSymlinks` option to `false` will exclude symbolic links.
630
+ *
631
+ * File structure:
632
+ * ```
633
+ * folder
634
+ * ├── script.ts
635
+ * ├── foo
636
+ * └── link -> script.ts (symbolic link)
637
+ * ```
638
+ *
639
+ * ```ts ignore
640
+ * import { walkSync } from "@std/fs/walk";
641
+ *
642
+ * Array.from(walkSync(".", { includeSymlinks: false }));
643
+ * // [
644
+ * // {
645
+ * // path: ".",
646
+ * // name: ".",
647
+ * // isFile: false,
648
+ * // isDirectory: true,
649
+ * // isSymlink: false
650
+ * // },
651
+ * // {
652
+ * // path: "script.ts",
653
+ * // name: "script.ts",
654
+ * // isFile: true,
655
+ * // isDirectory: false,
656
+ * // isSymlink: false
657
+ * // },
658
+ * // ]
659
+ * ```
660
+ *
661
+ * @example Follow symbolic links
662
+ *
663
+ * Setting the `followSymlinks` option to `true` will follow symbolic links,
664
+ * affecting the `path` property of the walk entry.
665
+ *
666
+ * File structure:
667
+ * ```
668
+ * folder
669
+ * ├── script.ts
670
+ * └── link -> script.ts (symbolic link)
671
+ * ```
672
+ *
673
+ * ```ts ignore
674
+ * import { walkSync } from "@std/fs/walk";
675
+ *
676
+ * Array.from(walkSync(".", { followSymlinks: true }));
677
+ * // [
678
+ * // {
679
+ * // path: ".",
680
+ * // name: ".",
681
+ * // isFile: false,
682
+ * // isDirectory: true,
683
+ * // isSymlink: false
684
+ * // },
685
+ * // {
686
+ * // path: "script.ts",
687
+ * // name: "script.ts",
688
+ * // isFile: true,
689
+ * // isDirectory: false,
690
+ * // isSymlink: false
691
+ * // },
692
+ * // {
693
+ * // path: "script.ts",
694
+ * // name: "link",
695
+ * // isFile: true,
696
+ * // isDirectory: false,
697
+ * // isSymlink: true
698
+ * // },
699
+ * // ]
700
+ * ```
701
+ *
702
+ * @example Canonicalize symbolic links
703
+ *
704
+ * Setting the `canonicalize` option to `false` will canonicalize the path of
705
+ * the followed symbolic link. Meaning, the `path` property of the walk entry
706
+ * will be the path of the symbolic link itself.
707
+ *
708
+ * File structure:
709
+ * ```
710
+ * folder
711
+ * ├── script.ts
712
+ * └── link -> script.ts (symbolic link)
713
+ * ```
714
+ *
715
+ * ```ts ignore
716
+ * import { walkSync } from "@std/fs/walk";
717
+ *
718
+ * Array.from(walkSync(".", { followSymlinks: true, canonicalize: true }));
719
+ * // [
720
+ * // {
721
+ * // path: ".",
722
+ * // name: ".",
723
+ * // isFile: false,
724
+ * // isDirectory: true,
725
+ * // isSymlink: false
726
+ * // },
727
+ * // {
728
+ * // path: "script.ts",
729
+ * // name: "script.ts",
730
+ * // isFile: true,
731
+ * // isDirectory: false,
732
+ * // isSymlink: false
733
+ * // },
734
+ * // {
735
+ * // path: "link",
736
+ * // name: "link",
737
+ * // isFile: true,
738
+ * // isDirectory: false,
739
+ * // isSymlink: true
740
+ * // },
741
+ * // ]
742
+ * ```
743
+ *
744
+ * @example Filter by file extensions
745
+ *
746
+ * Setting the `exts` option to `[".ts"]` or `["ts"]` will only include entries
747
+ * with the `.ts` file extension.
748
+ *
749
+ * File structure:
750
+ * ```
751
+ * folder
752
+ * ├── script.ts
753
+ * └── foo.js
754
+ * ```
755
+ *
756
+ * ```ts ignore
757
+ * import { walkSync } from "@std/fs/walk";
758
+ *
759
+ * Array.from(walkSync(".", { exts: [".ts"] }));
760
+ * // [
761
+ * // {
762
+ * // path: "script.ts",
763
+ * // name: "script.ts",
764
+ * // isFile: true,
765
+ * // isDirectory: false,
766
+ * // isSymlink: false
767
+ * // },
768
+ * // ]
769
+ * ```
770
+ *
771
+ * @example Filter by regular expressions
772
+ *
773
+ * Setting the `match` option to `[/s/]` will only include entries with the
774
+ * letter `s` in their name.
775
+ *
776
+ * File structure:
777
+ * ```
778
+ * folder
779
+ * ├── script.ts
780
+ * └── README.md
781
+ * ```
782
+ *
783
+ * ```ts ignore
784
+ * import { walkSync } from "@std/fs/walk";
785
+ *
786
+ * Array.from(walkSync(".", { match: [/s/] }));
787
+ * // [
788
+ * // {
789
+ * // path: "script.ts",
790
+ * // name: "script.ts",
791
+ * // isFile: true,
792
+ * // isDirectory: false,
793
+ * // isSymlink: false
794
+ * // },
795
+ * // ]
796
+ * ```
797
+ *
798
+ * @example Exclude by regular expressions
799
+ *
800
+ * Setting the `skip` option to `[/s/]` will exclude entries with the letter
801
+ * `s` in their name.
802
+ *
803
+ * File structure:
804
+ * ```
805
+ * folder
806
+ * ├── script.ts
807
+ * └── README.md
808
+ * ```
809
+ *
810
+ * ```ts ignore
811
+ * import { walkSync } from "@std/fs/walk";
812
+ *
813
+ * Array.from(walkSync(".", { skip: [/s/] }));
814
+ * // [
815
+ * // {
816
+ * // path: "README.md",
817
+ * // name: "README.md",
818
+ * // isFile: true,
819
+ * // isDirectory: false,
820
+ * // isSymlink: false
821
+ * // },
822
+ * // ]
823
+ * ```
824
+ */
825
+ function* walkSync(root, options) {
826
+ let { maxDepth = Infinity, includeFiles = true, includeDirs = true, includeSymlinks = true, followSymlinks = false, canonicalize = true, exts = undefined, match = undefined, skip = undefined, } = options ?? {};
827
+ root = (0, _to_path_string_js_1.toPathString)(root);
828
+ if (exts) {
829
+ exts = exts.map((ext) => ext.startsWith(".") ? ext : `.${ext}`);
830
+ }
831
+ if (maxDepth < 0) {
832
+ return;
833
+ }
834
+ if (includeDirs && include(root, exts, match, skip)) {
835
+ yield (0, _create_walk_entry_js_1.createWalkEntrySync)(root);
836
+ }
837
+ if (maxDepth < 1 || !include(root, undefined, undefined, skip)) {
838
+ return;
839
+ }
840
+ const entries = dntShim.Deno.readDirSync(root);
841
+ for (const entry of entries) {
842
+ let path = (0, join_js_1.join)(root, entry.name);
843
+ let { isSymlink, isDirectory } = entry;
844
+ if (isSymlink) {
845
+ if (!followSymlinks) {
846
+ if (includeSymlinks && include(path, exts, match, skip)) {
847
+ yield { path, ...entry };
848
+ }
849
+ continue;
850
+ }
851
+ const realPath = dntShim.Deno.realPathSync(path);
852
+ if (canonicalize) {
853
+ path = realPath;
854
+ }
855
+ // Caveat emptor: don't assume |path| is not a symlink. realpath()
856
+ // resolves symlinks but another process can replace the file system
857
+ // entity with a different type of entity before we call lstat().
858
+ ({ isSymlink, isDirectory } = dntShim.Deno.lstatSync(realPath));
859
+ }
860
+ if (isSymlink || isDirectory) {
861
+ const opts = {
862
+ maxDepth: maxDepth - 1,
863
+ includeFiles,
864
+ includeDirs,
865
+ includeSymlinks,
866
+ followSymlinks,
867
+ };
868
+ if (exts !== undefined) {
869
+ opts.exts = exts;
870
+ }
871
+ if (match !== undefined) {
872
+ opts.match = match;
873
+ }
874
+ if (skip !== undefined) {
875
+ opts.skip = skip;
876
+ }
877
+ yield* walkSync(path, opts);
878
+ }
879
+ else if (includeFiles && include(path, exts, match, skip)) {
880
+ yield { path, ...entry };
881
+ }
882
+ }
883
+ }