cdk-common 0.0.67 → 2.0.2

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 (1022) hide show
  1. package/.gitattributes +23 -21
  2. package/.jsii +2662 -552
  3. package/API.md +27 -64
  4. package/README.md +19 -2
  5. package/lib/integ-default.d.ts +3 -3
  6. package/lib/integ-default.js +6 -5
  7. package/lib/main.d.ts +4 -4
  8. package/lib/main.js +7 -6
  9. package/node_modules/@aws-cdk/assert/BUILD.md +15 -0
  10. package/node_modules/@aws-cdk/assert/LICENSE +201 -0
  11. package/node_modules/@aws-cdk/assert/NOTICE +2 -0
  12. package/node_modules/@aws-cdk/assert/README.md +229 -0
  13. package/node_modules/@aws-cdk/assert/clone.sh +29 -0
  14. package/node_modules/@aws-cdk/assert/jest.d.ts +14 -0
  15. package/node_modules/@aws-cdk/assert/jest.js +57 -0
  16. package/node_modules/@aws-cdk/assert/lib/assertion.d.ts +17 -0
  17. package/node_modules/@aws-cdk/assert/lib/assertion.js +31 -0
  18. package/node_modules/@aws-cdk/assert/lib/assertions/and-assertion.d.ts +10 -0
  19. package/node_modules/@aws-cdk/assert/lib/assertions/and-assertion.js +21 -0
  20. package/node_modules/@aws-cdk/assert/lib/assertions/count-resources.d.ts +10 -0
  21. package/node_modules/@aws-cdk/assert/lib/assertions/count-resources.js +54 -0
  22. package/node_modules/@aws-cdk/assert/lib/assertions/exist.d.ts +3 -0
  23. package/node_modules/@aws-cdk/assert/lib/assertions/exist.js +18 -0
  24. package/node_modules/@aws-cdk/assert/lib/assertions/have-output.d.ts +29 -0
  25. package/node_modules/@aws-cdk/assert/lib/assertions/have-output.js +78 -0
  26. package/node_modules/@aws-cdk/assert/lib/assertions/have-resource-matchers.d.ts +123 -0
  27. package/node_modules/@aws-cdk/assert/lib/assertions/have-resource-matchers.js +404 -0
  28. package/node_modules/@aws-cdk/assert/lib/assertions/have-resource.d.ts +69 -0
  29. package/node_modules/@aws-cdk/assert/lib/assertions/have-resource.js +131 -0
  30. package/node_modules/@aws-cdk/assert/lib/assertions/have-type.d.ts +3 -0
  31. package/node_modules/@aws-cdk/assert/lib/assertions/have-type.js +22 -0
  32. package/node_modules/@aws-cdk/assert/lib/assertions/match-template.d.ts +19 -0
  33. package/node_modules/@aws-cdk/assert/lib/assertions/match-template.js +98 -0
  34. package/node_modules/@aws-cdk/assert/lib/assertions/negated-assertion.d.ts +8 -0
  35. package/node_modules/@aws-cdk/assert/lib/assertions/negated-assertion.js +18 -0
  36. package/node_modules/@aws-cdk/assert/lib/canonicalize-assets.d.ts +11 -0
  37. package/node_modules/@aws-cdk/assert/lib/canonicalize-assets.js +70 -0
  38. package/node_modules/@aws-cdk/assert/lib/expect.d.ts +4 -0
  39. package/node_modules/@aws-cdk/assert/lib/expect.js +16 -0
  40. package/node_modules/@aws-cdk/assert/lib/index.d.ts +14 -0
  41. package/node_modules/@aws-cdk/assert/lib/index.js +27 -0
  42. package/node_modules/@aws-cdk/assert/lib/inspector.d.ts +31 -0
  43. package/node_modules/@aws-cdk/assert/lib/inspector.js +69 -0
  44. package/node_modules/@aws-cdk/assert/lib/synth-utils.d.ts +30 -0
  45. package/node_modules/@aws-cdk/assert/lib/synth-utils.js +93 -0
  46. package/node_modules/@aws-cdk/assert/package.json +77 -0
  47. package/node_modules/@aws-cdk/cfnspec/CHANGELOG.md +9353 -0
  48. package/node_modules/@aws-cdk/cfnspec/LICENSE +201 -0
  49. package/node_modules/@aws-cdk/cfnspec/NOTICE +2 -0
  50. package/node_modules/@aws-cdk/cfnspec/README.md +14 -0
  51. package/node_modules/@aws-cdk/cfnspec/build-tools/build.d.ts +1 -0
  52. package/node_modules/@aws-cdk/cfnspec/build-tools/build.js +83 -0
  53. package/node_modules/@aws-cdk/cfnspec/build-tools/create-missing-libraries.d.ts +6 -0
  54. package/node_modules/@aws-cdk/cfnspec/build-tools/create-missing-libraries.js +308 -0
  55. package/node_modules/@aws-cdk/cfnspec/build-tools/massage-spec.d.ts +14 -0
  56. package/node_modules/@aws-cdk/cfnspec/build-tools/massage-spec.js +130 -0
  57. package/node_modules/@aws-cdk/cfnspec/build-tools/scrutiny.d.ts +12 -0
  58. package/node_modules/@aws-cdk/cfnspec/build-tools/scrutiny.js +85 -0
  59. package/node_modules/@aws-cdk/cfnspec/build-tools/spec-diff.d.ts +1 -0
  60. package/node_modules/@aws-cdk/cfnspec/build-tools/spec-diff.js +237 -0
  61. package/node_modules/@aws-cdk/cfnspec/build-tools/template/LICENSE +201 -0
  62. package/node_modules/@aws-cdk/cfnspec/build-tools/template/NOTICE +2 -0
  63. package/node_modules/@aws-cdk/cfnspec/build-tools/update-cfnlint.sh +18 -0
  64. package/node_modules/@aws-cdk/cfnspec/build-tools/update-metrics.sh +13 -0
  65. package/node_modules/@aws-cdk/cfnspec/build-tools/update.sh +81 -0
  66. package/node_modules/@aws-cdk/cfnspec/cfn.version +1 -0
  67. package/node_modules/@aws-cdk/cfnspec/coverage/base.css +224 -0
  68. package/node_modules/@aws-cdk/cfnspec/coverage/block-navigation.js +79 -0
  69. package/node_modules/@aws-cdk/cfnspec/coverage/build-tools/index.html +126 -0
  70. package/node_modules/@aws-cdk/cfnspec/coverage/build-tools/massage-spec.ts.html +443 -0
  71. package/node_modules/@aws-cdk/cfnspec/coverage/build-tools/scrutiny.ts.html +344 -0
  72. package/node_modules/@aws-cdk/cfnspec/coverage/favicon.png +0 -0
  73. package/node_modules/@aws-cdk/cfnspec/coverage/index.html +156 -0
  74. package/node_modules/@aws-cdk/cfnspec/coverage/junit.xml +31181 -0
  75. package/node_modules/@aws-cdk/cfnspec/coverage/lcov-report/base.css +224 -0
  76. package/node_modules/@aws-cdk/cfnspec/coverage/lcov-report/block-navigation.js +79 -0
  77. package/node_modules/@aws-cdk/cfnspec/coverage/lcov-report/build-tools/index.html +126 -0
  78. package/node_modules/@aws-cdk/cfnspec/coverage/lcov-report/build-tools/massage-spec.ts.html +443 -0
  79. package/node_modules/@aws-cdk/cfnspec/coverage/lcov-report/build-tools/scrutiny.ts.html +344 -0
  80. package/node_modules/@aws-cdk/cfnspec/coverage/lcov-report/favicon.png +0 -0
  81. package/node_modules/@aws-cdk/cfnspec/coverage/lcov-report/index.html +156 -0
  82. package/node_modules/@aws-cdk/cfnspec/coverage/lcov-report/lib/canned-metrics/canned-metrics-schema.ts.html +299 -0
  83. package/node_modules/@aws-cdk/cfnspec/coverage/lcov-report/lib/canned-metrics/index.html +111 -0
  84. package/node_modules/@aws-cdk/cfnspec/coverage/lcov-report/lib/canned-metrics.ts.html +440 -0
  85. package/node_modules/@aws-cdk/cfnspec/coverage/lcov-report/lib/index.html +126 -0
  86. package/node_modules/@aws-cdk/cfnspec/coverage/lcov-report/lib/index.ts.html +557 -0
  87. package/node_modules/@aws-cdk/cfnspec/coverage/lcov-report/lib/schema/augmentation.ts.html +371 -0
  88. package/node_modules/@aws-cdk/cfnspec/coverage/lcov-report/lib/schema/base-types.ts.html +167 -0
  89. package/node_modules/@aws-cdk/cfnspec/coverage/lcov-report/lib/schema/index.html +186 -0
  90. package/node_modules/@aws-cdk/cfnspec/coverage/lcov-report/lib/schema/index.ts.html +98 -0
  91. package/node_modules/@aws-cdk/cfnspec/coverage/lcov-report/lib/schema/property.ts.html +965 -0
  92. package/node_modules/@aws-cdk/cfnspec/coverage/lcov-report/lib/schema/resource-type.ts.html +572 -0
  93. package/node_modules/@aws-cdk/cfnspec/coverage/lcov-report/lib/schema/specification.ts.html +248 -0
  94. package/node_modules/@aws-cdk/cfnspec/coverage/lcov-report/prettify.css +1 -0
  95. package/node_modules/@aws-cdk/cfnspec/coverage/lcov-report/prettify.js +2 -0
  96. package/node_modules/@aws-cdk/cfnspec/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  97. package/node_modules/@aws-cdk/cfnspec/coverage/lcov-report/sorter.js +170 -0
  98. package/node_modules/@aws-cdk/cfnspec/coverage/lcov.info +709 -0
  99. package/node_modules/@aws-cdk/cfnspec/coverage/lib/canned-metrics/canned-metrics-schema.ts.html +299 -0
  100. package/node_modules/@aws-cdk/cfnspec/coverage/lib/canned-metrics/index.html +111 -0
  101. package/node_modules/@aws-cdk/cfnspec/coverage/lib/canned-metrics.ts.html +440 -0
  102. package/node_modules/@aws-cdk/cfnspec/coverage/lib/index.html +126 -0
  103. package/node_modules/@aws-cdk/cfnspec/coverage/lib/index.ts.html +557 -0
  104. package/node_modules/@aws-cdk/cfnspec/coverage/lib/schema/augmentation.ts.html +371 -0
  105. package/node_modules/@aws-cdk/cfnspec/coverage/lib/schema/base-types.ts.html +167 -0
  106. package/node_modules/@aws-cdk/cfnspec/coverage/lib/schema/index.html +186 -0
  107. package/node_modules/@aws-cdk/cfnspec/coverage/lib/schema/index.ts.html +98 -0
  108. package/node_modules/@aws-cdk/cfnspec/coverage/lib/schema/property.ts.html +965 -0
  109. package/node_modules/@aws-cdk/cfnspec/coverage/lib/schema/resource-type.ts.html +572 -0
  110. package/node_modules/@aws-cdk/cfnspec/coverage/lib/schema/specification.ts.html +248 -0
  111. package/node_modules/@aws-cdk/cfnspec/coverage/prettify.css +1 -0
  112. package/node_modules/@aws-cdk/cfnspec/coverage/prettify.js +2 -0
  113. package/node_modules/@aws-cdk/cfnspec/coverage/sort-arrow-sprite.png +0 -0
  114. package/node_modules/@aws-cdk/cfnspec/coverage/sorter.js +170 -0
  115. package/node_modules/@aws-cdk/cfnspec/lib/_private_schema/cfn-lint.d.ts +24 -0
  116. package/node_modules/@aws-cdk/cfnspec/lib/_private_schema/cfn-lint.js +3 -0
  117. package/node_modules/@aws-cdk/cfnspec/lib/augmentations/AWS_EC2_VPNConnection.json +27 -0
  118. package/node_modules/@aws-cdk/cfnspec/lib/augmentations/AWS_Lambda_Function.json +27 -0
  119. package/node_modules/@aws-cdk/cfnspec/lib/augmentations/AWS_RDS_DBCluster.json +70 -0
  120. package/node_modules/@aws-cdk/cfnspec/lib/augmentations/AWS_RDS_DBInstance.json +37 -0
  121. package/node_modules/@aws-cdk/cfnspec/lib/augmentations/AWS_SNS_Topic.json +52 -0
  122. package/node_modules/@aws-cdk/cfnspec/lib/augmentations/AWS_SQS_Queue.json +53 -0
  123. package/node_modules/@aws-cdk/cfnspec/lib/canned-metrics/README.md +163 -0
  124. package/node_modules/@aws-cdk/cfnspec/lib/canned-metrics/canned-metrics-schema.d.ts +60 -0
  125. package/node_modules/@aws-cdk/cfnspec/lib/canned-metrics/canned-metrics-schema.js +12 -0
  126. package/node_modules/@aws-cdk/cfnspec/lib/canned-metrics/services.json +22175 -0
  127. package/node_modules/@aws-cdk/cfnspec/lib/canned-metrics.d.ts +41 -0
  128. package/node_modules/@aws-cdk/cfnspec/lib/canned-metrics.js +77 -0
  129. package/node_modules/@aws-cdk/cfnspec/lib/index.d.ts +55 -0
  130. package/node_modules/@aws-cdk/cfnspec/lib/index.js +171 -0
  131. package/node_modules/@aws-cdk/cfnspec/lib/schema/augmentation.d.ts +87 -0
  132. package/node_modules/@aws-cdk/cfnspec/lib/schema/augmentation.js +28 -0
  133. package/node_modules/@aws-cdk/cfnspec/lib/schema/base-types.d.ts +14 -0
  134. package/node_modules/@aws-cdk/cfnspec/lib/schema/base-types.js +29 -0
  135. package/node_modules/@aws-cdk/cfnspec/lib/schema/cfn-lint.d.ts +13 -0
  136. package/node_modules/@aws-cdk/cfnspec/lib/schema/cfn-lint.js +3 -0
  137. package/node_modules/@aws-cdk/cfnspec/lib/schema/index.d.ts +6 -0
  138. package/node_modules/@aws-cdk/cfnspec/lib/schema/index.js +19 -0
  139. package/node_modules/@aws-cdk/cfnspec/lib/schema/property.d.ts +174 -0
  140. package/node_modules/@aws-cdk/cfnspec/lib/schema/property.js +161 -0
  141. package/node_modules/@aws-cdk/cfnspec/lib/schema/resource-type.d.ts +117 -0
  142. package/node_modules/@aws-cdk/cfnspec/lib/schema/resource-type.js +99 -0
  143. package/node_modules/@aws-cdk/cfnspec/lib/schema/specification.d.ts +56 -0
  144. package/node_modules/@aws-cdk/cfnspec/lib/schema/specification.js +11 -0
  145. package/node_modules/@aws-cdk/cfnspec/package.json +61 -0
  146. package/node_modules/@aws-cdk/cfnspec/spec/cfn-lint.json +34 -0
  147. package/node_modules/@aws-cdk/cfnspec/spec/specification.json +110800 -0
  148. package/node_modules/@aws-cdk/cfnspec/tsconfig.json +24 -0
  149. package/node_modules/@aws-cdk/cfnspec/tsconfig.tsbuildinfo +4584 -0
  150. package/node_modules/@aws-cdk/cloudformation-diff/LICENSE +201 -0
  151. package/node_modules/@aws-cdk/cloudformation-diff/NOTICE +2 -0
  152. package/node_modules/@aws-cdk/cloudformation-diff/README.md +12 -0
  153. package/node_modules/@aws-cdk/cloudformation-diff/lib/diff/index.d.ts +9 -0
  154. package/node_modules/@aws-cdk/cloudformation-diff/lib/diff/index.js +94 -0
  155. package/node_modules/@aws-cdk/cloudformation-diff/lib/diff/types.d.ts +326 -0
  156. package/node_modules/@aws-cdk/cloudformation-diff/lib/diff/types.js +456 -0
  157. package/node_modules/@aws-cdk/cloudformation-diff/lib/diff/util.d.ts +41 -0
  158. package/node_modules/@aws-cdk/cloudformation-diff/lib/diff/util.js +165 -0
  159. package/node_modules/@aws-cdk/cloudformation-diff/lib/diff-template.d.ts +21 -0
  160. package/node_modules/@aws-cdk/cloudformation-diff/lib/diff-template.js +166 -0
  161. package/node_modules/@aws-cdk/cloudformation-diff/lib/diffable.d.ts +22 -0
  162. package/node_modules/@aws-cdk/cloudformation-diff/lib/diffable.js +47 -0
  163. package/node_modules/@aws-cdk/cloudformation-diff/lib/format-table.d.ts +6 -0
  164. package/node_modules/@aws-cdk/cloudformation-diff/lib/format-table.js +109 -0
  165. package/node_modules/@aws-cdk/cloudformation-diff/lib/format.d.ts +23 -0
  166. package/node_modules/@aws-cdk/cloudformation-diff/lib/format.js +414 -0
  167. package/node_modules/@aws-cdk/cloudformation-diff/lib/iam/iam-changes.d.ts +62 -0
  168. package/node_modules/@aws-cdk/cloudformation-diff/lib/iam/iam-changes.js +246 -0
  169. package/node_modules/@aws-cdk/cloudformation-diff/lib/iam/managed-policy.d.ts +18 -0
  170. package/node_modules/@aws-cdk/cloudformation-diff/lib/iam/managed-policy.js +29 -0
  171. package/node_modules/@aws-cdk/cloudformation-diff/lib/iam/statement.d.ts +127 -0
  172. package/node_modules/@aws-cdk/cloudformation-diff/lib/iam/statement.js +266 -0
  173. package/node_modules/@aws-cdk/cloudformation-diff/lib/index.d.ts +4 -0
  174. package/node_modules/@aws-cdk/cloudformation-diff/lib/index.js +18 -0
  175. package/node_modules/@aws-cdk/cloudformation-diff/lib/network/security-group-changes.d.ts +32 -0
  176. package/node_modules/@aws-cdk/cloudformation-diff/lib/network/security-group-changes.js +95 -0
  177. package/node_modules/@aws-cdk/cloudformation-diff/lib/network/security-group-rule.d.ts +50 -0
  178. package/node_modules/@aws-cdk/cloudformation-diff/lib/network/security-group-rule.js +91 -0
  179. package/node_modules/@aws-cdk/cloudformation-diff/lib/render-intrinsics.d.ts +21 -0
  180. package/node_modules/@aws-cdk/cloudformation-diff/lib/render-intrinsics.js +79 -0
  181. package/node_modules/@aws-cdk/cloudformation-diff/lib/util.d.ts +7 -0
  182. package/node_modules/@aws-cdk/cloudformation-diff/lib/util.js +63 -0
  183. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/LICENSE +21 -0
  184. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/README.md +16 -0
  185. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/assert.d.ts +99 -0
  186. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/async_hooks.d.ts +144 -0
  187. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/base.d.ts +19 -0
  188. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/buffer.d.ts +16 -0
  189. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/child_process.d.ts +369 -0
  190. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/cluster.d.ts +260 -0
  191. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/console.d.ts +3 -0
  192. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/constants.d.ts +449 -0
  193. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/crypto.d.ts +613 -0
  194. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/dgram.d.ts +97 -0
  195. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/dns.d.ts +366 -0
  196. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/domain.d.ts +16 -0
  197. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/events.d.ts +30 -0
  198. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/fs.d.ts +2302 -0
  199. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/globals.d.ts +1066 -0
  200. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/http.d.ts +274 -0
  201. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/http2.d.ts +859 -0
  202. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/https.d.ts +51 -0
  203. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/index.d.ts +41 -0
  204. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/inspector.d.ts +3162 -0
  205. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/module.d.ts +3 -0
  206. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/net.d.ts +251 -0
  207. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/os.d.ts +254 -0
  208. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/package.json +181 -0
  209. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/path.d.ts +159 -0
  210. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/perf_hooks.d.ts +169 -0
  211. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/process.d.ts +3 -0
  212. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/punycode.d.ts +68 -0
  213. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/querystring.d.ts +17 -0
  214. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/readline.d.ts +143 -0
  215. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/repl.d.ts +380 -0
  216. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/stream.d.ts +313 -0
  217. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/string_decoder.d.ts +9 -0
  218. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/timers.d.ts +16 -0
  219. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/tls.d.ts +459 -0
  220. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/trace_events.d.ts +61 -0
  221. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/ts3.6/assert.d.ts +73 -0
  222. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/ts3.6/base.d.ts +54 -0
  223. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/ts3.6/index.d.ts +6 -0
  224. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/tty.d.ts +17 -0
  225. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/url.d.ts +104 -0
  226. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/util.d.ts +187 -0
  227. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/v8.d.ts +28 -0
  228. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/vm.d.ts +81 -0
  229. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/worker_threads.d.ts +124 -0
  230. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/zlib.d.ts +327 -0
  231. package/node_modules/@aws-cdk/cloudformation-diff/package.json +61 -0
  232. package/node_modules/@types/concat-stream/node_modules/@types/node/README.md +1 -1
  233. package/node_modules/@types/concat-stream/node_modules/@types/node/http.d.ts +1 -1
  234. package/node_modules/@types/concat-stream/node_modules/@types/node/package.json +2 -2
  235. package/node_modules/@types/form-data/node_modules/@types/node/README.md +1 -1
  236. package/node_modules/@types/form-data/node_modules/@types/node/http.d.ts +1 -1
  237. package/node_modules/@types/form-data/node_modules/@types/node/package.json +2 -2
  238. package/node_modules/ansi-regex/index.d.ts +37 -0
  239. package/node_modules/ansi-regex/index.js +10 -0
  240. package/node_modules/ansi-regex/license +9 -0
  241. package/node_modules/ansi-regex/package.json +55 -0
  242. package/node_modules/ansi-regex/readme.md +78 -0
  243. package/node_modules/ansi-styles/index.d.ts +345 -0
  244. package/node_modules/ansi-styles/index.js +163 -0
  245. package/node_modules/ansi-styles/license +9 -0
  246. package/node_modules/ansi-styles/package.json +56 -0
  247. package/node_modules/ansi-styles/readme.md +152 -0
  248. package/node_modules/astral-regex/index.d.ts +28 -0
  249. package/node_modules/astral-regex/index.js +6 -0
  250. package/node_modules/astral-regex/license +9 -0
  251. package/node_modules/astral-regex/package.json +33 -0
  252. package/node_modules/astral-regex/readme.md +46 -0
  253. package/node_modules/at-least-node/LICENSE +6 -0
  254. package/node_modules/at-least-node/README.md +25 -0
  255. package/node_modules/at-least-node/index.js +5 -0
  256. package/node_modules/at-least-node/package.json +32 -0
  257. package/node_modules/charenc/LICENSE.mkd +27 -0
  258. package/node_modules/charenc/README.js +1 -0
  259. package/node_modules/charenc/charenc.js +33 -0
  260. package/node_modules/charenc/package.json +24 -0
  261. package/node_modules/color-convert/CHANGELOG.md +54 -0
  262. package/node_modules/color-convert/LICENSE +21 -0
  263. package/node_modules/color-convert/README.md +68 -0
  264. package/node_modules/color-convert/conversions.js +839 -0
  265. package/node_modules/color-convert/index.js +81 -0
  266. package/node_modules/color-convert/package.json +48 -0
  267. package/node_modules/color-convert/route.js +97 -0
  268. package/node_modules/color-name/LICENSE +8 -0
  269. package/node_modules/color-name/README.md +11 -0
  270. package/node_modules/color-name/index.js +152 -0
  271. package/node_modules/color-name/package.json +28 -0
  272. package/node_modules/colors/LICENSE +25 -0
  273. package/node_modules/colors/README.md +221 -0
  274. package/node_modules/colors/examples/normal-usage.js +82 -0
  275. package/node_modules/colors/examples/safe-string.js +79 -0
  276. package/node_modules/colors/index.d.ts +136 -0
  277. package/node_modules/colors/lib/colors.js +211 -0
  278. package/node_modules/colors/lib/custom/trap.js +46 -0
  279. package/node_modules/colors/lib/custom/zalgo.js +110 -0
  280. package/node_modules/colors/lib/extendStringPrototype.js +110 -0
  281. package/node_modules/colors/lib/index.js +13 -0
  282. package/node_modules/colors/lib/maps/america.js +10 -0
  283. package/node_modules/colors/lib/maps/rainbow.js +12 -0
  284. package/node_modules/colors/lib/maps/random.js +11 -0
  285. package/node_modules/colors/lib/maps/zebra.js +5 -0
  286. package/node_modules/colors/lib/styles.js +95 -0
  287. package/node_modules/colors/lib/system/has-flag.js +35 -0
  288. package/node_modules/colors/lib/system/supports-colors.js +151 -0
  289. package/node_modules/colors/package.json +45 -0
  290. package/node_modules/colors/safe.d.ts +48 -0
  291. package/node_modules/colors/safe.js +10 -0
  292. package/node_modules/colors/themes/generic-logging.js +12 -0
  293. package/node_modules/crypt/LICENSE.mkd +27 -0
  294. package/node_modules/crypt/README.mkd +1 -0
  295. package/node_modules/crypt/crypt.js +96 -0
  296. package/node_modules/crypt/package.json +22 -0
  297. package/node_modules/diff/CONTRIBUTING.md +39 -0
  298. package/node_modules/diff/LICENSE +31 -0
  299. package/node_modules/diff/README.md +208 -0
  300. package/node_modules/diff/dist/diff.js +1582 -0
  301. package/node_modules/diff/lib/convert/dmp.js +32 -0
  302. package/node_modules/diff/lib/convert/xml.js +42 -0
  303. package/node_modules/diff/lib/diff/array.js +45 -0
  304. package/node_modules/diff/lib/diff/base.js +304 -0
  305. package/node_modules/diff/lib/diff/character.js +37 -0
  306. package/node_modules/diff/lib/diff/css.js +41 -0
  307. package/node_modules/diff/lib/diff/json.js +163 -0
  308. package/node_modules/diff/lib/diff/line.js +89 -0
  309. package/node_modules/diff/lib/diff/sentence.js +41 -0
  310. package/node_modules/diff/lib/diff/word.js +108 -0
  311. package/node_modules/diff/lib/index.es6.js +1553 -0
  312. package/node_modules/diff/lib/index.js +216 -0
  313. package/node_modules/diff/lib/index.mjs +1553 -0
  314. package/node_modules/diff/lib/patch/apply.js +238 -0
  315. package/node_modules/diff/lib/patch/create.js +267 -0
  316. package/node_modules/diff/lib/patch/merge.js +613 -0
  317. package/node_modules/diff/lib/patch/parse.js +167 -0
  318. package/node_modules/diff/lib/util/array.js +32 -0
  319. package/node_modules/diff/lib/util/distance-iterator.js +57 -0
  320. package/node_modules/diff/lib/util/params.js +24 -0
  321. package/node_modules/diff/package.json +87 -0
  322. package/node_modules/diff/release-notes.md +303 -0
  323. package/node_modules/diff/runtime.js +3 -0
  324. package/node_modules/emoji-regex/LICENSE-MIT.txt +20 -0
  325. package/node_modules/emoji-regex/README.md +73 -0
  326. package/node_modules/emoji-regex/es2015/index.js +6 -0
  327. package/node_modules/emoji-regex/es2015/text.js +6 -0
  328. package/node_modules/emoji-regex/index.d.ts +23 -0
  329. package/node_modules/emoji-regex/index.js +6 -0
  330. package/node_modules/emoji-regex/package.json +50 -0
  331. package/node_modules/emoji-regex/text.js +6 -0
  332. package/node_modules/fast-deep-equal/LICENSE +21 -0
  333. package/node_modules/fast-deep-equal/README.md +96 -0
  334. package/node_modules/fast-deep-equal/es6/index.d.ts +2 -0
  335. package/node_modules/fast-deep-equal/es6/index.js +72 -0
  336. package/node_modules/fast-deep-equal/es6/react.d.ts +2 -0
  337. package/node_modules/fast-deep-equal/es6/react.js +79 -0
  338. package/node_modules/fast-deep-equal/index.d.ts +4 -0
  339. package/node_modules/fast-deep-equal/index.js +46 -0
  340. package/node_modules/fast-deep-equal/package.json +61 -0
  341. package/node_modules/fast-deep-equal/react.d.ts +2 -0
  342. package/node_modules/fast-deep-equal/react.js +53 -0
  343. package/node_modules/fs-extra/CHANGELOG.md +902 -0
  344. package/node_modules/fs-extra/LICENSE +15 -0
  345. package/node_modules/fs-extra/README.md +264 -0
  346. package/node_modules/fs-extra/lib/copy/copy.js +232 -0
  347. package/node_modules/fs-extra/lib/copy/index.js +6 -0
  348. package/node_modules/fs-extra/lib/copy-sync/copy-sync.js +166 -0
  349. package/node_modules/fs-extra/lib/copy-sync/index.js +5 -0
  350. package/node_modules/fs-extra/lib/empty/index.js +48 -0
  351. package/node_modules/fs-extra/lib/ensure/file.js +69 -0
  352. package/node_modules/fs-extra/lib/ensure/index.js +23 -0
  353. package/node_modules/fs-extra/lib/ensure/link.js +61 -0
  354. package/node_modules/fs-extra/lib/ensure/symlink-paths.js +99 -0
  355. package/node_modules/fs-extra/lib/ensure/symlink-type.js +31 -0
  356. package/node_modules/fs-extra/lib/ensure/symlink.js +63 -0
  357. package/node_modules/fs-extra/lib/fs/index.js +130 -0
  358. package/node_modules/fs-extra/lib/index.js +27 -0
  359. package/node_modules/fs-extra/lib/json/index.js +16 -0
  360. package/node_modules/fs-extra/lib/json/jsonfile.js +11 -0
  361. package/node_modules/fs-extra/lib/json/output-json-sync.js +12 -0
  362. package/node_modules/fs-extra/lib/json/output-json.js +12 -0
  363. package/node_modules/fs-extra/lib/mkdirs/index.js +14 -0
  364. package/node_modules/fs-extra/lib/mkdirs/make-dir.js +141 -0
  365. package/node_modules/fs-extra/lib/move/index.js +6 -0
  366. package/node_modules/fs-extra/lib/move/move.js +65 -0
  367. package/node_modules/fs-extra/lib/move-sync/index.js +5 -0
  368. package/node_modules/fs-extra/lib/move-sync/move-sync.js +47 -0
  369. package/node_modules/fs-extra/lib/output/index.js +40 -0
  370. package/node_modules/fs-extra/lib/path-exists/index.js +12 -0
  371. package/node_modules/fs-extra/lib/remove/index.js +9 -0
  372. package/node_modules/fs-extra/lib/remove/rimraf.js +302 -0
  373. package/node_modules/fs-extra/lib/util/stat.js +139 -0
  374. package/node_modules/fs-extra/lib/util/utimes.js +26 -0
  375. package/node_modules/fs-extra/package.json +70 -0
  376. package/node_modules/graceful-fs/LICENSE +15 -0
  377. package/node_modules/graceful-fs/README.md +143 -0
  378. package/node_modules/graceful-fs/clone.js +23 -0
  379. package/node_modules/graceful-fs/graceful-fs.js +429 -0
  380. package/node_modules/graceful-fs/legacy-streams.js +118 -0
  381. package/node_modules/graceful-fs/package.json +50 -0
  382. package/node_modules/graceful-fs/polyfills.js +346 -0
  383. package/node_modules/is-buffer/LICENSE +21 -0
  384. package/node_modules/is-buffer/README.md +53 -0
  385. package/node_modules/is-buffer/index.js +21 -0
  386. package/node_modules/is-buffer/package.json +51 -0
  387. package/node_modules/is-buffer/test/basic.js +24 -0
  388. package/node_modules/is-fullwidth-code-point/index.d.ts +17 -0
  389. package/node_modules/is-fullwidth-code-point/index.js +50 -0
  390. package/node_modules/is-fullwidth-code-point/license +9 -0
  391. package/node_modules/is-fullwidth-code-point/package.json +42 -0
  392. package/node_modules/is-fullwidth-code-point/readme.md +39 -0
  393. package/node_modules/jsonfile/CHANGELOG.md +171 -0
  394. package/node_modules/jsonfile/LICENSE +15 -0
  395. package/node_modules/jsonfile/README.md +230 -0
  396. package/node_modules/jsonfile/index.js +88 -0
  397. package/node_modules/jsonfile/package.json +40 -0
  398. package/node_modules/jsonfile/utils.js +14 -0
  399. package/node_modules/lodash.truncate/LICENSE +47 -0
  400. package/node_modules/lodash.truncate/README.md +18 -0
  401. package/node_modules/lodash.truncate/index.js +632 -0
  402. package/node_modules/lodash.truncate/package.json +17 -0
  403. package/node_modules/md5/.travis.yml +7 -0
  404. package/node_modules/md5/LICENSE +27 -0
  405. package/node_modules/md5/README.md +111 -0
  406. package/node_modules/md5/demo/index.html +48 -0
  407. package/node_modules/md5/dist/md5.min.js +7 -0
  408. package/node_modules/md5/md5.js +160 -0
  409. package/node_modules/md5/package.json +38 -0
  410. package/node_modules/md5/test.js +75 -0
  411. package/node_modules/md5/webpack.config.js +13 -0
  412. package/node_modules/punycode/LICENSE-MIT.txt +20 -0
  413. package/node_modules/punycode/README.md +122 -0
  414. package/node_modules/punycode/package.json +58 -0
  415. package/node_modules/punycode/punycode.es6.js +441 -0
  416. package/node_modules/punycode/punycode.js +440 -0
  417. package/node_modules/require-from-string/index.js +34 -0
  418. package/node_modules/require-from-string/license +21 -0
  419. package/node_modules/require-from-string/package.json +28 -0
  420. package/node_modules/require-from-string/readme.md +56 -0
  421. package/node_modules/slice-ansi/index.js +103 -0
  422. package/node_modules/slice-ansi/license +10 -0
  423. package/node_modules/slice-ansi/package.json +52 -0
  424. package/node_modules/slice-ansi/readme.md +66 -0
  425. package/node_modules/string-width/index.d.ts +29 -0
  426. package/node_modules/string-width/index.js +47 -0
  427. package/node_modules/string-width/license +9 -0
  428. package/node_modules/string-width/package.json +56 -0
  429. package/node_modules/string-width/readme.md +50 -0
  430. package/node_modules/strip-ansi/index.d.ts +17 -0
  431. package/node_modules/strip-ansi/index.js +4 -0
  432. package/node_modules/strip-ansi/license +9 -0
  433. package/node_modules/strip-ansi/package.json +54 -0
  434. package/node_modules/strip-ansi/readme.md +46 -0
  435. package/node_modules/table/LICENSE +24 -0
  436. package/node_modules/table/README.md +759 -0
  437. package/node_modules/table/dist/src/alignString.d.ts +6 -0
  438. package/node_modules/table/dist/src/alignString.js +60 -0
  439. package/node_modules/table/dist/src/alignTableData.d.ts +2 -0
  440. package/node_modules/table/dist/src/alignTableData.js +14 -0
  441. package/node_modules/table/dist/src/calculateCellHeight.d.ts +4 -0
  442. package/node_modules/table/dist/src/calculateCellHeight.js +12 -0
  443. package/node_modules/table/dist/src/calculateCellWidths.d.ts +5 -0
  444. package/node_modules/table/dist/src/calculateCellWidths.js +17 -0
  445. package/node_modules/table/dist/src/calculateColumnWidths.d.ts +6 -0
  446. package/node_modules/table/dist/src/calculateColumnWidths.js +17 -0
  447. package/node_modules/table/dist/src/calculateRowHeights.d.ts +5 -0
  448. package/node_modules/table/dist/src/calculateRowHeights.js +19 -0
  449. package/node_modules/table/dist/src/createStream.d.ts +2 -0
  450. package/node_modules/table/dist/src/createStream.js +73 -0
  451. package/node_modules/table/dist/src/drawBorder.d.ts +26 -0
  452. package/node_modules/table/dist/src/drawBorder.js +101 -0
  453. package/node_modules/table/dist/src/drawContent.d.ts +9 -0
  454. package/node_modules/table/dist/src/drawContent.js +27 -0
  455. package/node_modules/table/dist/src/drawHeader.d.ts +2 -0
  456. package/node_modules/table/dist/src/drawHeader.js +30 -0
  457. package/node_modules/table/dist/src/drawRow.d.ts +6 -0
  458. package/node_modules/table/dist/src/drawRow.js +21 -0
  459. package/node_modules/table/dist/src/drawTable.d.ts +2 -0
  460. package/node_modules/table/dist/src/drawTable.js +39 -0
  461. package/node_modules/table/dist/src/generated/validators.d.ts +13 -0
  462. package/node_modules/table/dist/src/generated/validators.js +2171 -0
  463. package/node_modules/table/dist/src/getBorderCharacters.d.ts +2 -0
  464. package/node_modules/table/dist/src/getBorderCharacters.js +89 -0
  465. package/node_modules/table/dist/src/index.d.ts +5 -0
  466. package/node_modules/table/dist/src/index.js +21 -0
  467. package/node_modules/table/dist/src/makeStreamConfig.d.ts +7 -0
  468. package/node_modules/table/dist/src/makeStreamConfig.js +43 -0
  469. package/node_modules/table/dist/src/makeTableConfig.d.ts +7 -0
  470. package/node_modules/table/dist/src/makeTableConfig.js +65 -0
  471. package/node_modules/table/dist/src/mapDataUsingRowHeights.d.ts +2 -0
  472. package/node_modules/table/dist/src/mapDataUsingRowHeights.js +45 -0
  473. package/node_modules/table/dist/src/padTableData.d.ts +3 -0
  474. package/node_modules/table/dist/src/padTableData.js +17 -0
  475. package/node_modules/table/dist/src/stringifyTableData.d.ts +2 -0
  476. package/node_modules/table/dist/src/stringifyTableData.js +13 -0
  477. package/node_modules/table/dist/src/table.d.ts +2 -0
  478. package/node_modules/table/dist/src/table.js +27 -0
  479. package/node_modules/table/dist/src/truncateTableData.d.ts +6 -0
  480. package/node_modules/table/dist/src/truncateTableData.js +24 -0
  481. package/node_modules/table/dist/src/types/api.d.ts +114 -0
  482. package/node_modules/table/dist/src/types/api.js +3 -0
  483. package/node_modules/table/dist/src/types/internal.d.ts +1 -0
  484. package/node_modules/table/dist/src/types/internal.js +3 -0
  485. package/node_modules/table/dist/src/utils.d.ts +1 -0
  486. package/node_modules/table/dist/src/utils.js +93 -0
  487. package/node_modules/table/dist/src/validateConfig.d.ts +2 -0
  488. package/node_modules/table/dist/src/validateConfig.js +27 -0
  489. package/node_modules/table/dist/src/validateTableData.d.ts +1 -0
  490. package/node_modules/table/dist/src/validateTableData.js +32 -0
  491. package/node_modules/table/dist/src/wrapCell.d.ts +8 -0
  492. package/node_modules/table/dist/src/wrapCell.js +33 -0
  493. package/node_modules/table/dist/src/wrapString.d.ts +9 -0
  494. package/node_modules/table/dist/src/wrapString.js +27 -0
  495. package/node_modules/table/dist/src/wrapWord.d.ts +1 -0
  496. package/node_modules/table/dist/src/wrapWord.js +42 -0
  497. package/node_modules/table/node_modules/ajv/.runkit_example.js +23 -0
  498. package/node_modules/table/node_modules/ajv/LICENSE +22 -0
  499. package/node_modules/table/node_modules/ajv/README.md +192 -0
  500. package/node_modules/table/node_modules/ajv/dist/2019.d.ts +17 -0
  501. package/node_modules/table/node_modules/ajv/dist/2019.js +55 -0
  502. package/node_modules/table/node_modules/ajv/dist/2019.js.map +1 -0
  503. package/node_modules/table/node_modules/ajv/dist/2020.d.ts +17 -0
  504. package/node_modules/table/node_modules/ajv/dist/2020.js +49 -0
  505. package/node_modules/table/node_modules/ajv/dist/2020.js.map +1 -0
  506. package/node_modules/table/node_modules/ajv/dist/ajv.d.ts +16 -0
  507. package/node_modules/table/node_modules/ajv/dist/ajv.js +44 -0
  508. package/node_modules/table/node_modules/ajv/dist/ajv.js.map +1 -0
  509. package/node_modules/table/node_modules/ajv/dist/compile/codegen/code.d.ts +39 -0
  510. package/node_modules/table/node_modules/ajv/dist/compile/codegen/code.js +147 -0
  511. package/node_modules/table/node_modules/ajv/dist/compile/codegen/code.js.map +1 -0
  512. package/node_modules/table/node_modules/ajv/dist/compile/codegen/index.d.ts +79 -0
  513. package/node_modules/table/node_modules/ajv/dist/compile/codegen/index.js +697 -0
  514. package/node_modules/table/node_modules/ajv/dist/compile/codegen/index.js.map +1 -0
  515. package/node_modules/table/node_modules/ajv/dist/compile/codegen/scope.d.ts +79 -0
  516. package/node_modules/table/node_modules/ajv/dist/compile/codegen/scope.js +143 -0
  517. package/node_modules/table/node_modules/ajv/dist/compile/codegen/scope.js.map +1 -0
  518. package/node_modules/table/node_modules/ajv/dist/compile/errors.d.ts +13 -0
  519. package/node_modules/table/node_modules/ajv/dist/compile/errors.js +123 -0
  520. package/node_modules/table/node_modules/ajv/dist/compile/errors.js.map +1 -0
  521. package/node_modules/table/node_modules/ajv/dist/compile/index.d.ts +80 -0
  522. package/node_modules/table/node_modules/ajv/dist/compile/index.js +243 -0
  523. package/node_modules/table/node_modules/ajv/dist/compile/index.js.map +1 -0
  524. package/node_modules/table/node_modules/ajv/dist/compile/jtd/parse.d.ts +4 -0
  525. package/node_modules/table/node_modules/ajv/dist/compile/jtd/parse.js +350 -0
  526. package/node_modules/table/node_modules/ajv/dist/compile/jtd/parse.js.map +1 -0
  527. package/node_modules/table/node_modules/ajv/dist/compile/jtd/serialize.d.ts +4 -0
  528. package/node_modules/table/node_modules/ajv/dist/compile/jtd/serialize.js +218 -0
  529. package/node_modules/table/node_modules/ajv/dist/compile/jtd/serialize.js.map +1 -0
  530. package/node_modules/table/node_modules/ajv/dist/compile/jtd/types.d.ts +6 -0
  531. package/node_modules/table/node_modules/ajv/dist/compile/jtd/types.js +14 -0
  532. package/node_modules/table/node_modules/ajv/dist/compile/jtd/types.js.map +1 -0
  533. package/node_modules/table/node_modules/ajv/dist/compile/names.d.ts +20 -0
  534. package/node_modules/table/node_modules/ajv/dist/compile/names.js +28 -0
  535. package/node_modules/table/node_modules/ajv/dist/compile/names.js.map +1 -0
  536. package/node_modules/table/node_modules/ajv/dist/compile/ref_error.d.ts +5 -0
  537. package/node_modules/table/node_modules/ajv/dist/compile/ref_error.js +12 -0
  538. package/node_modules/table/node_modules/ajv/dist/compile/ref_error.js.map +1 -0
  539. package/node_modules/table/node_modules/ajv/dist/compile/resolve.d.ts +12 -0
  540. package/node_modules/table/node_modules/ajv/dist/compile/resolve.js +153 -0
  541. package/node_modules/table/node_modules/ajv/dist/compile/resolve.js.map +1 -0
  542. package/node_modules/table/node_modules/ajv/dist/compile/rules.d.ts +28 -0
  543. package/node_modules/table/node_modules/ajv/dist/compile/rules.js +26 -0
  544. package/node_modules/table/node_modules/ajv/dist/compile/rules.js.map +1 -0
  545. package/node_modules/table/node_modules/ajv/dist/compile/util.d.ts +40 -0
  546. package/node_modules/table/node_modules/ajv/dist/compile/util.js +178 -0
  547. package/node_modules/table/node_modules/ajv/dist/compile/util.js.map +1 -0
  548. package/node_modules/table/node_modules/ajv/dist/compile/validate/applicability.d.ts +6 -0
  549. package/node_modules/table/node_modules/ajv/dist/compile/validate/applicability.js +19 -0
  550. package/node_modules/table/node_modules/ajv/dist/compile/validate/applicability.js.map +1 -0
  551. package/node_modules/table/node_modules/ajv/dist/compile/validate/boolSchema.d.ts +4 -0
  552. package/node_modules/table/node_modules/ajv/dist/compile/validate/boolSchema.js +50 -0
  553. package/node_modules/table/node_modules/ajv/dist/compile/validate/boolSchema.js.map +1 -0
  554. package/node_modules/table/node_modules/ajv/dist/compile/validate/dataType.d.ts +17 -0
  555. package/node_modules/table/node_modules/ajv/dist/compile/validate/dataType.js +202 -0
  556. package/node_modules/table/node_modules/ajv/dist/compile/validate/dataType.js.map +1 -0
  557. package/node_modules/table/node_modules/ajv/dist/compile/validate/defaults.d.ts +2 -0
  558. package/node_modules/table/node_modules/ajv/dist/compile/validate/defaults.js +35 -0
  559. package/node_modules/table/node_modules/ajv/dist/compile/validate/defaults.js.map +1 -0
  560. package/node_modules/table/node_modules/ajv/dist/compile/validate/index.d.ts +42 -0
  561. package/node_modules/table/node_modules/ajv/dist/compile/validate/index.js +510 -0
  562. package/node_modules/table/node_modules/ajv/dist/compile/validate/index.js.map +1 -0
  563. package/node_modules/table/node_modules/ajv/dist/compile/validate/keyword.d.ts +8 -0
  564. package/node_modules/table/node_modules/ajv/dist/compile/validate/keyword.js +124 -0
  565. package/node_modules/table/node_modules/ajv/dist/compile/validate/keyword.js.map +1 -0
  566. package/node_modules/table/node_modules/ajv/dist/compile/validate/subschema.d.ts +47 -0
  567. package/node_modules/table/node_modules/ajv/dist/compile/validate/subschema.js +81 -0
  568. package/node_modules/table/node_modules/ajv/dist/compile/validate/subschema.js.map +1 -0
  569. package/node_modules/table/node_modules/ajv/dist/core.d.ts +171 -0
  570. package/node_modules/table/node_modules/ajv/dist/core.js +614 -0
  571. package/node_modules/table/node_modules/ajv/dist/core.js.map +1 -0
  572. package/node_modules/table/node_modules/ajv/dist/jtd.d.ts +45 -0
  573. package/node_modules/table/node_modules/ajv/dist/jtd.js +66 -0
  574. package/node_modules/table/node_modules/ajv/dist/jtd.js.map +1 -0
  575. package/node_modules/table/node_modules/ajv/dist/refs/data.json +13 -0
  576. package/node_modules/table/node_modules/ajv/dist/refs/json-schema-2019-09/index.d.ts +2 -0
  577. package/node_modules/table/node_modules/ajv/dist/refs/json-schema-2019-09/index.js +28 -0
  578. package/node_modules/table/node_modules/ajv/dist/refs/json-schema-2019-09/index.js.map +1 -0
  579. package/node_modules/table/node_modules/ajv/dist/refs/json-schema-2019-09/meta/applicator.json +53 -0
  580. package/node_modules/table/node_modules/ajv/dist/refs/json-schema-2019-09/meta/content.json +17 -0
  581. package/node_modules/table/node_modules/ajv/dist/refs/json-schema-2019-09/meta/core.json +57 -0
  582. package/node_modules/table/node_modules/ajv/dist/refs/json-schema-2019-09/meta/format.json +14 -0
  583. package/node_modules/table/node_modules/ajv/dist/refs/json-schema-2019-09/meta/meta-data.json +37 -0
  584. package/node_modules/table/node_modules/ajv/dist/refs/json-schema-2019-09/meta/validation.json +90 -0
  585. package/node_modules/table/node_modules/ajv/dist/refs/json-schema-2019-09/schema.json +39 -0
  586. package/node_modules/table/node_modules/ajv/dist/refs/json-schema-2020-12/index.d.ts +2 -0
  587. package/node_modules/table/node_modules/ajv/dist/refs/json-schema-2020-12/index.js +30 -0
  588. package/node_modules/table/node_modules/ajv/dist/refs/json-schema-2020-12/index.js.map +1 -0
  589. package/node_modules/table/node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json +48 -0
  590. package/node_modules/table/node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json +17 -0
  591. package/node_modules/table/node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json +51 -0
  592. package/node_modules/table/node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
  593. package/node_modules/table/node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json +37 -0
  594. package/node_modules/table/node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
  595. package/node_modules/table/node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json +90 -0
  596. package/node_modules/table/node_modules/ajv/dist/refs/json-schema-2020-12/schema.json +55 -0
  597. package/node_modules/table/node_modules/ajv/dist/refs/json-schema-draft-06.json +137 -0
  598. package/node_modules/table/node_modules/ajv/dist/refs/json-schema-draft-07.json +151 -0
  599. package/node_modules/table/node_modules/ajv/dist/refs/json-schema-secure.json +88 -0
  600. package/node_modules/table/node_modules/ajv/dist/refs/jtd-schema.d.ts +3 -0
  601. package/node_modules/table/node_modules/ajv/dist/refs/jtd-schema.js +118 -0
  602. package/node_modules/table/node_modules/ajv/dist/refs/jtd-schema.js.map +1 -0
  603. package/node_modules/table/node_modules/ajv/dist/runtime/equal.d.ts +6 -0
  604. package/node_modules/table/node_modules/ajv/dist/runtime/equal.js +7 -0
  605. package/node_modules/table/node_modules/ajv/dist/runtime/equal.js.map +1 -0
  606. package/node_modules/table/node_modules/ajv/dist/runtime/parseJson.d.ts +18 -0
  607. package/node_modules/table/node_modules/ajv/dist/runtime/parseJson.js +184 -0
  608. package/node_modules/table/node_modules/ajv/dist/runtime/parseJson.js.map +1 -0
  609. package/node_modules/table/node_modules/ajv/dist/runtime/quote.d.ts +5 -0
  610. package/node_modules/table/node_modules/ajv/dist/runtime/quote.js +30 -0
  611. package/node_modules/table/node_modules/ajv/dist/runtime/quote.js.map +1 -0
  612. package/node_modules/table/node_modules/ajv/dist/runtime/re2.d.ts +6 -0
  613. package/node_modules/table/node_modules/ajv/dist/runtime/re2.js +6 -0
  614. package/node_modules/table/node_modules/ajv/dist/runtime/re2.js.map +1 -0
  615. package/node_modules/table/node_modules/ajv/dist/runtime/timestamp.d.ts +5 -0
  616. package/node_modules/table/node_modules/ajv/dist/runtime/timestamp.js +42 -0
  617. package/node_modules/table/node_modules/ajv/dist/runtime/timestamp.js.map +1 -0
  618. package/node_modules/table/node_modules/ajv/dist/runtime/ucs2length.d.ts +5 -0
  619. package/node_modules/table/node_modules/ajv/dist/runtime/ucs2length.js +24 -0
  620. package/node_modules/table/node_modules/ajv/dist/runtime/ucs2length.js.map +1 -0
  621. package/node_modules/table/node_modules/ajv/dist/runtime/validation_error.d.ts +7 -0
  622. package/node_modules/table/node_modules/ajv/dist/runtime/validation_error.js +11 -0
  623. package/node_modules/table/node_modules/ajv/dist/runtime/validation_error.js.map +1 -0
  624. package/node_modules/table/node_modules/ajv/dist/standalone/index.d.ts +6 -0
  625. package/node_modules/table/node_modules/ajv/dist/standalone/index.js +83 -0
  626. package/node_modules/table/node_modules/ajv/dist/standalone/index.js.map +1 -0
  627. package/node_modules/table/node_modules/ajv/dist/standalone/instance.d.ts +12 -0
  628. package/node_modules/table/node_modules/ajv/dist/standalone/instance.js +35 -0
  629. package/node_modules/table/node_modules/ajv/dist/standalone/instance.js.map +1 -0
  630. package/node_modules/table/node_modules/ajv/dist/types/index.d.ts +177 -0
  631. package/node_modules/table/node_modules/ajv/dist/types/index.js +3 -0
  632. package/node_modules/table/node_modules/ajv/dist/types/index.js.map +1 -0
  633. package/node_modules/table/node_modules/ajv/dist/types/json-schema.d.ts +124 -0
  634. package/node_modules/table/node_modules/ajv/dist/types/json-schema.js +3 -0
  635. package/node_modules/table/node_modules/ajv/dist/types/json-schema.js.map +1 -0
  636. package/node_modules/table/node_modules/ajv/dist/types/jtd-schema.d.ts +168 -0
  637. package/node_modules/table/node_modules/ajv/dist/types/jtd-schema.js +3 -0
  638. package/node_modules/table/node_modules/ajv/dist/types/jtd-schema.js.map +1 -0
  639. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/additionalItems.d.ts +8 -0
  640. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +49 -0
  641. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js.map +1 -0
  642. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.d.ts +6 -0
  643. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +106 -0
  644. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js.map +1 -0
  645. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/allOf.d.ts +3 -0
  646. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/allOf.js +23 -0
  647. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/allOf.js.map +1 -0
  648. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/anyOf.d.ts +4 -0
  649. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +12 -0
  650. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/anyOf.js.map +1 -0
  651. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/contains.d.ts +7 -0
  652. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/contains.js +95 -0
  653. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/contains.js.map +1 -0
  654. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/dependencies.d.ts +21 -0
  655. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +85 -0
  656. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/dependencies.js.map +1 -0
  657. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.d.ts +3 -0
  658. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js +11 -0
  659. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js.map +1 -0
  660. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/if.d.ts +6 -0
  661. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/if.js +66 -0
  662. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/if.js.map +1 -0
  663. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/index.d.ts +13 -0
  664. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/index.js +44 -0
  665. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/index.js.map +1 -0
  666. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/items.d.ts +5 -0
  667. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/items.js +52 -0
  668. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/items.js.map +1 -0
  669. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/items2020.d.ts +6 -0
  670. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/items2020.js +30 -0
  671. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/items2020.js.map +1 -0
  672. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/not.d.ts +4 -0
  673. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/not.js +26 -0
  674. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/not.js.map +1 -0
  675. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/oneOf.d.ts +6 -0
  676. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +60 -0
  677. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/oneOf.js.map +1 -0
  678. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/patternProperties.d.ts +3 -0
  679. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +75 -0
  680. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js.map +1 -0
  681. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/prefixItems.d.ts +3 -0
  682. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +12 -0
  683. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js.map +1 -0
  684. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/properties.d.ts +3 -0
  685. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/properties.js +54 -0
  686. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/properties.js.map +1 -0
  687. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/propertyNames.d.ts +6 -0
  688. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +38 -0
  689. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js.map +1 -0
  690. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/thenElse.d.ts +3 -0
  691. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +13 -0
  692. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/thenElse.js.map +1 -0
  693. package/node_modules/table/node_modules/ajv/dist/vocabularies/code.d.ts +17 -0
  694. package/node_modules/table/node_modules/ajv/dist/vocabularies/code.js +131 -0
  695. package/node_modules/table/node_modules/ajv/dist/vocabularies/code.js.map +1 -0
  696. package/node_modules/table/node_modules/ajv/dist/vocabularies/core/id.d.ts +3 -0
  697. package/node_modules/table/node_modules/ajv/dist/vocabularies/core/id.js +10 -0
  698. package/node_modules/table/node_modules/ajv/dist/vocabularies/core/id.js.map +1 -0
  699. package/node_modules/table/node_modules/ajv/dist/vocabularies/core/index.d.ts +3 -0
  700. package/node_modules/table/node_modules/ajv/dist/vocabularies/core/index.js +16 -0
  701. package/node_modules/table/node_modules/ajv/dist/vocabularies/core/index.js.map +1 -0
  702. package/node_modules/table/node_modules/ajv/dist/vocabularies/core/ref.d.ts +8 -0
  703. package/node_modules/table/node_modules/ajv/dist/vocabularies/core/ref.js +122 -0
  704. package/node_modules/table/node_modules/ajv/dist/vocabularies/core/ref.js.map +1 -0
  705. package/node_modules/table/node_modules/ajv/dist/vocabularies/discriminator/index.d.ts +5 -0
  706. package/node_modules/table/node_modules/ajv/dist/vocabularies/discriminator/index.js +93 -0
  707. package/node_modules/table/node_modules/ajv/dist/vocabularies/discriminator/index.js.map +1 -0
  708. package/node_modules/table/node_modules/ajv/dist/vocabularies/discriminator/types.d.ts +10 -0
  709. package/node_modules/table/node_modules/ajv/dist/vocabularies/discriminator/types.js +9 -0
  710. package/node_modules/table/node_modules/ajv/dist/vocabularies/discriminator/types.js.map +1 -0
  711. package/node_modules/table/node_modules/ajv/dist/vocabularies/draft2020.d.ts +3 -0
  712. package/node_modules/table/node_modules/ajv/dist/vocabularies/draft2020.js +23 -0
  713. package/node_modules/table/node_modules/ajv/dist/vocabularies/draft2020.js.map +1 -0
  714. package/node_modules/table/node_modules/ajv/dist/vocabularies/draft7.d.ts +3 -0
  715. package/node_modules/table/node_modules/ajv/dist/vocabularies/draft7.js +17 -0
  716. package/node_modules/table/node_modules/ajv/dist/vocabularies/draft7.js.map +1 -0
  717. package/node_modules/table/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.d.ts +5 -0
  718. package/node_modules/table/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js +30 -0
  719. package/node_modules/table/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js.map +1 -0
  720. package/node_modules/table/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.d.ts +5 -0
  721. package/node_modules/table/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js +51 -0
  722. package/node_modules/table/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js.map +1 -0
  723. package/node_modules/table/node_modules/ajv/dist/vocabularies/dynamic/index.d.ts +3 -0
  724. package/node_modules/table/node_modules/ajv/dist/vocabularies/dynamic/index.js +9 -0
  725. package/node_modules/table/node_modules/ajv/dist/vocabularies/dynamic/index.js.map +1 -0
  726. package/node_modules/table/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.d.ts +3 -0
  727. package/node_modules/table/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js +16 -0
  728. package/node_modules/table/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js.map +1 -0
  729. package/node_modules/table/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.d.ts +3 -0
  730. package/node_modules/table/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js +10 -0
  731. package/node_modules/table/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js.map +1 -0
  732. package/node_modules/table/node_modules/ajv/dist/vocabularies/errors.d.ts +9 -0
  733. package/node_modules/table/node_modules/ajv/dist/vocabularies/errors.js +3 -0
  734. package/node_modules/table/node_modules/ajv/dist/vocabularies/errors.js.map +1 -0
  735. package/node_modules/table/node_modules/ajv/dist/vocabularies/format/format.d.ts +8 -0
  736. package/node_modules/table/node_modules/ajv/dist/vocabularies/format/format.js +92 -0
  737. package/node_modules/table/node_modules/ajv/dist/vocabularies/format/format.js.map +1 -0
  738. package/node_modules/table/node_modules/ajv/dist/vocabularies/format/index.d.ts +3 -0
  739. package/node_modules/table/node_modules/ajv/dist/vocabularies/format/index.js +6 -0
  740. package/node_modules/table/node_modules/ajv/dist/vocabularies/format/index.js.map +1 -0
  741. package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/discriminator.d.ts +6 -0
  742. package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/discriminator.js +71 -0
  743. package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/discriminator.js.map +1 -0
  744. package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/elements.d.ts +5 -0
  745. package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/elements.js +24 -0
  746. package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/elements.js.map +1 -0
  747. package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/enum.d.ts +6 -0
  748. package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/enum.js +43 -0
  749. package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/enum.js.map +1 -0
  750. package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/error.d.ts +9 -0
  751. package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/error.js +20 -0
  752. package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/error.js.map +1 -0
  753. package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/index.d.ts +10 -0
  754. package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/index.js +29 -0
  755. package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/index.js.map +1 -0
  756. package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/metadata.d.ts +5 -0
  757. package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/metadata.js +25 -0
  758. package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/metadata.js.map +1 -0
  759. package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/nullable.d.ts +4 -0
  760. package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/nullable.js +22 -0
  761. package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/nullable.js.map +1 -0
  762. package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.d.ts +3 -0
  763. package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js +15 -0
  764. package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js.map +1 -0
  765. package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/properties.d.ts +22 -0
  766. package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/properties.js +146 -0
  767. package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/properties.js.map +1 -0
  768. package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/ref.d.ts +4 -0
  769. package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/ref.js +66 -0
  770. package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/ref.js.map +1 -0
  771. package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/type.d.ts +10 -0
  772. package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/type.js +69 -0
  773. package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/type.js.map +1 -0
  774. package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/union.d.ts +3 -0
  775. package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/union.js +12 -0
  776. package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/union.js.map +1 -0
  777. package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/values.d.ts +5 -0
  778. package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/values.js +48 -0
  779. package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/values.js.map +1 -0
  780. package/node_modules/table/node_modules/ajv/dist/vocabularies/metadata.d.ts +3 -0
  781. package/node_modules/table/node_modules/ajv/dist/vocabularies/metadata.js +18 -0
  782. package/node_modules/table/node_modules/ajv/dist/vocabularies/metadata.js.map +1 -0
  783. package/node_modules/table/node_modules/ajv/dist/vocabularies/next.d.ts +3 -0
  784. package/node_modules/table/node_modules/ajv/dist/vocabularies/next.js +8 -0
  785. package/node_modules/table/node_modules/ajv/dist/vocabularies/next.js.map +1 -0
  786. package/node_modules/table/node_modules/ajv/dist/vocabularies/unevaluated/index.d.ts +3 -0
  787. package/node_modules/table/node_modules/ajv/dist/vocabularies/unevaluated/index.js +7 -0
  788. package/node_modules/table/node_modules/ajv/dist/vocabularies/unevaluated/index.js.map +1 -0
  789. package/node_modules/table/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.d.ts +6 -0
  790. package/node_modules/table/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js +40 -0
  791. package/node_modules/table/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js.map +1 -0
  792. package/node_modules/table/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.d.ts +6 -0
  793. package/node_modules/table/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js +65 -0
  794. package/node_modules/table/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js.map +1 -0
  795. package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/const.d.ts +6 -0
  796. package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/const.js +25 -0
  797. package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/const.js.map +1 -0
  798. package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/dependentRequired.d.ts +5 -0
  799. package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js +12 -0
  800. package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js.map +1 -0
  801. package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/enum.d.ts +8 -0
  802. package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/enum.js +47 -0
  803. package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/enum.js.map +1 -0
  804. package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/index.d.ts +16 -0
  805. package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/index.js +33 -0
  806. package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/index.js.map +1 -0
  807. package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/limitContains.d.ts +3 -0
  808. package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/limitContains.js +15 -0
  809. package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/limitContains.js.map +1 -0
  810. package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/limitItems.d.ts +3 -0
  811. package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/limitItems.js +24 -0
  812. package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/limitItems.js.map +1 -0
  813. package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/limitLength.d.ts +3 -0
  814. package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/limitLength.js +27 -0
  815. package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/limitLength.js.map +1 -0
  816. package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/limitNumber.d.ts +11 -0
  817. package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +27 -0
  818. package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/limitNumber.js.map +1 -0
  819. package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/limitProperties.d.ts +3 -0
  820. package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +24 -0
  821. package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/limitProperties.js.map +1 -0
  822. package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/multipleOf.d.ts +8 -0
  823. package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +26 -0
  824. package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/multipleOf.js.map +1 -0
  825. package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/pattern.d.ts +8 -0
  826. package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/pattern.js +24 -0
  827. package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/pattern.js.map +1 -0
  828. package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/required.d.ts +8 -0
  829. package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/required.js +79 -0
  830. package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/required.js.map +1 -0
  831. package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/uniqueItems.d.ts +9 -0
  832. package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +64 -0
  833. package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js.map +1 -0
  834. package/node_modules/table/node_modules/ajv/lib/2019.ts +78 -0
  835. package/node_modules/table/node_modules/ajv/lib/2020.ts +72 -0
  836. package/node_modules/table/node_modules/ajv/lib/ajv.ts +67 -0
  837. package/node_modules/table/node_modules/ajv/lib/compile/codegen/code.ts +160 -0
  838. package/node_modules/table/node_modules/ajv/lib/compile/codegen/index.ts +832 -0
  839. package/node_modules/table/node_modules/ajv/lib/compile/codegen/scope.ts +215 -0
  840. package/node_modules/table/node_modules/ajv/lib/compile/errors.ts +184 -0
  841. package/node_modules/table/node_modules/ajv/lib/compile/index.ts +324 -0
  842. package/node_modules/table/node_modules/ajv/lib/compile/jtd/parse.ts +411 -0
  843. package/node_modules/table/node_modules/ajv/lib/compile/jtd/serialize.ts +260 -0
  844. package/node_modules/table/node_modules/ajv/lib/compile/jtd/types.ts +16 -0
  845. package/node_modules/table/node_modules/ajv/lib/compile/names.ts +27 -0
  846. package/node_modules/table/node_modules/ajv/lib/compile/ref_error.ts +12 -0
  847. package/node_modules/table/node_modules/ajv/lib/compile/resolve.ts +146 -0
  848. package/node_modules/table/node_modules/ajv/lib/compile/rules.ts +50 -0
  849. package/node_modules/table/node_modules/ajv/lib/compile/util.ts +213 -0
  850. package/node_modules/table/node_modules/ajv/lib/compile/validate/applicability.ts +22 -0
  851. package/node_modules/table/node_modules/ajv/lib/compile/validate/boolSchema.ts +47 -0
  852. package/node_modules/table/node_modules/ajv/lib/compile/validate/dataType.ts +229 -0
  853. package/node_modules/table/node_modules/ajv/lib/compile/validate/defaults.ts +32 -0
  854. package/node_modules/table/node_modules/ajv/lib/compile/validate/index.ts +573 -0
  855. package/node_modules/table/node_modules/ajv/lib/compile/validate/keyword.ts +171 -0
  856. package/node_modules/table/node_modules/ajv/lib/compile/validate/subschema.ts +135 -0
  857. package/node_modules/table/node_modules/ajv/lib/core.ts +880 -0
  858. package/node_modules/table/node_modules/ajv/lib/jtd.ts +129 -0
  859. package/node_modules/table/node_modules/ajv/lib/refs/data.json +13 -0
  860. package/node_modules/table/node_modules/ajv/lib/refs/json-schema-2019-09/index.ts +28 -0
  861. package/node_modules/table/node_modules/ajv/lib/refs/json-schema-2019-09/meta/applicator.json +53 -0
  862. package/node_modules/table/node_modules/ajv/lib/refs/json-schema-2019-09/meta/content.json +17 -0
  863. package/node_modules/table/node_modules/ajv/lib/refs/json-schema-2019-09/meta/core.json +57 -0
  864. package/node_modules/table/node_modules/ajv/lib/refs/json-schema-2019-09/meta/format.json +14 -0
  865. package/node_modules/table/node_modules/ajv/lib/refs/json-schema-2019-09/meta/meta-data.json +37 -0
  866. package/node_modules/table/node_modules/ajv/lib/refs/json-schema-2019-09/meta/validation.json +90 -0
  867. package/node_modules/table/node_modules/ajv/lib/refs/json-schema-2019-09/schema.json +39 -0
  868. package/node_modules/table/node_modules/ajv/lib/refs/json-schema-2020-12/index.ts +30 -0
  869. package/node_modules/table/node_modules/ajv/lib/refs/json-schema-2020-12/meta/applicator.json +48 -0
  870. package/node_modules/table/node_modules/ajv/lib/refs/json-schema-2020-12/meta/content.json +17 -0
  871. package/node_modules/table/node_modules/ajv/lib/refs/json-schema-2020-12/meta/core.json +51 -0
  872. package/node_modules/table/node_modules/ajv/lib/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
  873. package/node_modules/table/node_modules/ajv/lib/refs/json-schema-2020-12/meta/meta-data.json +37 -0
  874. package/node_modules/table/node_modules/ajv/lib/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
  875. package/node_modules/table/node_modules/ajv/lib/refs/json-schema-2020-12/meta/validation.json +90 -0
  876. package/node_modules/table/node_modules/ajv/lib/refs/json-schema-2020-12/schema.json +55 -0
  877. package/node_modules/table/node_modules/ajv/lib/refs/json-schema-draft-06.json +137 -0
  878. package/node_modules/table/node_modules/ajv/lib/refs/json-schema-draft-07.json +151 -0
  879. package/node_modules/table/node_modules/ajv/lib/refs/json-schema-secure.json +88 -0
  880. package/node_modules/table/node_modules/ajv/lib/refs/jtd-schema.ts +130 -0
  881. package/node_modules/table/node_modules/ajv/lib/runtime/equal.ts +7 -0
  882. package/node_modules/table/node_modules/ajv/lib/runtime/parseJson.ts +176 -0
  883. package/node_modules/table/node_modules/ajv/lib/runtime/quote.ts +31 -0
  884. package/node_modules/table/node_modules/ajv/lib/runtime/re2.ts +6 -0
  885. package/node_modules/table/node_modules/ajv/lib/runtime/timestamp.ts +46 -0
  886. package/node_modules/table/node_modules/ajv/lib/runtime/ucs2length.ts +20 -0
  887. package/node_modules/table/node_modules/ajv/lib/runtime/validation_error.ts +13 -0
  888. package/node_modules/table/node_modules/ajv/lib/standalone/index.ts +93 -0
  889. package/node_modules/table/node_modules/ajv/lib/standalone/instance.ts +36 -0
  890. package/node_modules/table/node_modules/ajv/lib/types/index.ts +233 -0
  891. package/node_modules/table/node_modules/ajv/lib/types/json-schema.ts +189 -0
  892. package/node_modules/table/node_modules/ajv/lib/types/jtd-schema.ts +264 -0
  893. package/node_modules/table/node_modules/ajv/lib/vocabularies/applicator/additionalItems.ts +56 -0
  894. package/node_modules/table/node_modules/ajv/lib/vocabularies/applicator/additionalProperties.ts +118 -0
  895. package/node_modules/table/node_modules/ajv/lib/vocabularies/applicator/allOf.ts +22 -0
  896. package/node_modules/table/node_modules/ajv/lib/vocabularies/applicator/anyOf.ts +14 -0
  897. package/node_modules/table/node_modules/ajv/lib/vocabularies/applicator/contains.ts +109 -0
  898. package/node_modules/table/node_modules/ajv/lib/vocabularies/applicator/dependencies.ts +112 -0
  899. package/node_modules/table/node_modules/ajv/lib/vocabularies/applicator/dependentSchemas.ts +11 -0
  900. package/node_modules/table/node_modules/ajv/lib/vocabularies/applicator/if.ts +80 -0
  901. package/node_modules/table/node_modules/ajv/lib/vocabularies/applicator/index.ts +53 -0
  902. package/node_modules/table/node_modules/ajv/lib/vocabularies/applicator/items.ts +59 -0
  903. package/node_modules/table/node_modules/ajv/lib/vocabularies/applicator/items2020.ts +36 -0
  904. package/node_modules/table/node_modules/ajv/lib/vocabularies/applicator/not.ts +38 -0
  905. package/node_modules/table/node_modules/ajv/lib/vocabularies/applicator/oneOf.ts +82 -0
  906. package/node_modules/table/node_modules/ajv/lib/vocabularies/applicator/patternProperties.ts +91 -0
  907. package/node_modules/table/node_modules/ajv/lib/vocabularies/applicator/prefixItems.ts +12 -0
  908. package/node_modules/table/node_modules/ajv/lib/vocabularies/applicator/properties.ts +57 -0
  909. package/node_modules/table/node_modules/ajv/lib/vocabularies/applicator/propertyNames.ts +50 -0
  910. package/node_modules/table/node_modules/ajv/lib/vocabularies/applicator/thenElse.ts +13 -0
  911. package/node_modules/table/node_modules/ajv/lib/vocabularies/code.ts +168 -0
  912. package/node_modules/table/node_modules/ajv/lib/vocabularies/core/id.ts +10 -0
  913. package/node_modules/table/node_modules/ajv/lib/vocabularies/core/index.ts +16 -0
  914. package/node_modules/table/node_modules/ajv/lib/vocabularies/core/ref.ts +129 -0
  915. package/node_modules/table/node_modules/ajv/lib/vocabularies/discriminator/index.ts +102 -0
  916. package/node_modules/table/node_modules/ajv/lib/vocabularies/discriminator/types.ts +12 -0
  917. package/node_modules/table/node_modules/ajv/lib/vocabularies/draft2020.ts +23 -0
  918. package/node_modules/table/node_modules/ajv/lib/vocabularies/draft7.ts +17 -0
  919. package/node_modules/table/node_modules/ajv/lib/vocabularies/dynamic/dynamicAnchor.ts +31 -0
  920. package/node_modules/table/node_modules/ajv/lib/vocabularies/dynamic/dynamicRef.ts +51 -0
  921. package/node_modules/table/node_modules/ajv/lib/vocabularies/dynamic/index.ts +9 -0
  922. package/node_modules/table/node_modules/ajv/lib/vocabularies/dynamic/recursiveAnchor.ts +14 -0
  923. package/node_modules/table/node_modules/ajv/lib/vocabularies/dynamic/recursiveRef.ts +10 -0
  924. package/node_modules/table/node_modules/ajv/lib/vocabularies/errors.ts +18 -0
  925. package/node_modules/table/node_modules/ajv/lib/vocabularies/format/format.ts +120 -0
  926. package/node_modules/table/node_modules/ajv/lib/vocabularies/format/index.ts +6 -0
  927. package/node_modules/table/node_modules/ajv/lib/vocabularies/jtd/discriminator.ts +89 -0
  928. package/node_modules/table/node_modules/ajv/lib/vocabularies/jtd/elements.ts +32 -0
  929. package/node_modules/table/node_modules/ajv/lib/vocabularies/jtd/enum.ts +45 -0
  930. package/node_modules/table/node_modules/ajv/lib/vocabularies/jtd/error.ts +23 -0
  931. package/node_modules/table/node_modules/ajv/lib/vocabularies/jtd/index.ts +37 -0
  932. package/node_modules/table/node_modules/ajv/lib/vocabularies/jtd/metadata.ts +24 -0
  933. package/node_modules/table/node_modules/ajv/lib/vocabularies/jtd/nullable.ts +21 -0
  934. package/node_modules/table/node_modules/ajv/lib/vocabularies/jtd/optionalProperties.ts +15 -0
  935. package/node_modules/table/node_modules/ajv/lib/vocabularies/jtd/properties.ts +177 -0
  936. package/node_modules/table/node_modules/ajv/lib/vocabularies/jtd/ref.ts +74 -0
  937. package/node_modules/table/node_modules/ajv/lib/vocabularies/jtd/type.ts +75 -0
  938. package/node_modules/table/node_modules/ajv/lib/vocabularies/jtd/union.ts +12 -0
  939. package/node_modules/table/node_modules/ajv/lib/vocabularies/jtd/values.ts +55 -0
  940. package/node_modules/table/node_modules/ajv/lib/vocabularies/metadata.ts +17 -0
  941. package/node_modules/table/node_modules/ajv/lib/vocabularies/next.ts +8 -0
  942. package/node_modules/table/node_modules/ajv/lib/vocabularies/unevaluated/index.ts +7 -0
  943. package/node_modules/table/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedItems.ts +47 -0
  944. package/node_modules/table/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedProperties.ts +85 -0
  945. package/node_modules/table/node_modules/ajv/lib/vocabularies/validation/const.ts +28 -0
  946. package/node_modules/table/node_modules/ajv/lib/vocabularies/validation/dependentRequired.ts +23 -0
  947. package/node_modules/table/node_modules/ajv/lib/vocabularies/validation/enum.ts +52 -0
  948. package/node_modules/table/node_modules/ajv/lib/vocabularies/validation/index.ts +49 -0
  949. package/node_modules/table/node_modules/ajv/lib/vocabularies/validation/limitContains.ts +16 -0
  950. package/node_modules/table/node_modules/ajv/lib/vocabularies/validation/limitItems.ts +26 -0
  951. package/node_modules/table/node_modules/ajv/lib/vocabularies/validation/limitLength.ts +30 -0
  952. package/node_modules/table/node_modules/ajv/lib/vocabularies/validation/limitNumber.ts +42 -0
  953. package/node_modules/table/node_modules/ajv/lib/vocabularies/validation/limitProperties.ts +26 -0
  954. package/node_modules/table/node_modules/ajv/lib/vocabularies/validation/multipleOf.ts +34 -0
  955. package/node_modules/table/node_modules/ajv/lib/vocabularies/validation/pattern.ts +28 -0
  956. package/node_modules/table/node_modules/ajv/lib/vocabularies/validation/required.ts +98 -0
  957. package/node_modules/table/node_modules/ajv/lib/vocabularies/validation/uniqueItems.ts +79 -0
  958. package/node_modules/table/node_modules/ajv/package.json +124 -0
  959. package/node_modules/table/node_modules/json-schema-traverse/.eslintrc.yml +27 -0
  960. package/node_modules/table/node_modules/json-schema-traverse/.github/FUNDING.yml +2 -0
  961. package/node_modules/table/node_modules/json-schema-traverse/.github/workflows/build.yml +28 -0
  962. package/node_modules/table/node_modules/json-schema-traverse/.github/workflows/publish.yml +27 -0
  963. package/node_modules/table/node_modules/json-schema-traverse/LICENSE +21 -0
  964. package/node_modules/table/node_modules/json-schema-traverse/README.md +95 -0
  965. package/node_modules/table/node_modules/json-schema-traverse/index.d.ts +40 -0
  966. package/node_modules/table/node_modules/json-schema-traverse/index.js +93 -0
  967. package/node_modules/table/node_modules/json-schema-traverse/package.json +43 -0
  968. package/node_modules/table/node_modules/json-schema-traverse/spec/.eslintrc.yml +6 -0
  969. package/node_modules/table/node_modules/json-schema-traverse/spec/fixtures/schema.js +125 -0
  970. package/node_modules/table/node_modules/json-schema-traverse/spec/index.spec.js +171 -0
  971. package/node_modules/table/package.json +78 -0
  972. package/node_modules/universalify/LICENSE +20 -0
  973. package/node_modules/universalify/README.md +76 -0
  974. package/node_modules/universalify/index.js +24 -0
  975. package/node_modules/universalify/package.json +34 -0
  976. package/node_modules/uri-js/LICENSE +11 -0
  977. package/node_modules/uri-js/README.md +203 -0
  978. package/node_modules/uri-js/dist/es5/uri.all.d.ts +59 -0
  979. package/node_modules/uri-js/dist/es5/uri.all.js +1443 -0
  980. package/node_modules/uri-js/dist/es5/uri.all.js.map +1 -0
  981. package/node_modules/uri-js/dist/es5/uri.all.min.d.ts +59 -0
  982. package/node_modules/uri-js/dist/es5/uri.all.min.js +3 -0
  983. package/node_modules/uri-js/dist/es5/uri.all.min.js.map +1 -0
  984. package/node_modules/uri-js/dist/esnext/index.d.ts +1 -0
  985. package/node_modules/uri-js/dist/esnext/index.js +17 -0
  986. package/node_modules/uri-js/dist/esnext/index.js.map +1 -0
  987. package/node_modules/uri-js/dist/esnext/regexps-iri.d.ts +3 -0
  988. package/node_modules/uri-js/dist/esnext/regexps-iri.js +3 -0
  989. package/node_modules/uri-js/dist/esnext/regexps-iri.js.map +1 -0
  990. package/node_modules/uri-js/dist/esnext/regexps-uri.d.ts +4 -0
  991. package/node_modules/uri-js/dist/esnext/regexps-uri.js +42 -0
  992. package/node_modules/uri-js/dist/esnext/regexps-uri.js.map +1 -0
  993. package/node_modules/uri-js/dist/esnext/schemes/http.d.ts +3 -0
  994. package/node_modules/uri-js/dist/esnext/schemes/http.js +28 -0
  995. package/node_modules/uri-js/dist/esnext/schemes/http.js.map +1 -0
  996. package/node_modules/uri-js/dist/esnext/schemes/https.d.ts +3 -0
  997. package/node_modules/uri-js/dist/esnext/schemes/https.js +9 -0
  998. package/node_modules/uri-js/dist/esnext/schemes/https.js.map +1 -0
  999. package/node_modules/uri-js/dist/esnext/schemes/mailto.d.ts +12 -0
  1000. package/node_modules/uri-js/dist/esnext/schemes/mailto.js +148 -0
  1001. package/node_modules/uri-js/dist/esnext/schemes/mailto.js.map +1 -0
  1002. package/node_modules/uri-js/dist/esnext/schemes/urn-uuid.d.ts +7 -0
  1003. package/node_modules/uri-js/dist/esnext/schemes/urn-uuid.js +23 -0
  1004. package/node_modules/uri-js/dist/esnext/schemes/urn-uuid.js.map +1 -0
  1005. package/node_modules/uri-js/dist/esnext/schemes/urn.d.ts +10 -0
  1006. package/node_modules/uri-js/dist/esnext/schemes/urn.js +49 -0
  1007. package/node_modules/uri-js/dist/esnext/schemes/urn.js.map +1 -0
  1008. package/node_modules/uri-js/dist/esnext/schemes/ws.d.ts +7 -0
  1009. package/node_modules/uri-js/dist/esnext/schemes/ws.js +41 -0
  1010. package/node_modules/uri-js/dist/esnext/schemes/ws.js.map +1 -0
  1011. package/node_modules/uri-js/dist/esnext/schemes/wss.d.ts +3 -0
  1012. package/node_modules/uri-js/dist/esnext/schemes/wss.js +9 -0
  1013. package/node_modules/uri-js/dist/esnext/schemes/wss.js.map +1 -0
  1014. package/node_modules/uri-js/dist/esnext/uri.d.ts +59 -0
  1015. package/node_modules/uri-js/dist/esnext/uri.js +480 -0
  1016. package/node_modules/uri-js/dist/esnext/uri.js.map +1 -0
  1017. package/node_modules/uri-js/dist/esnext/util.d.ts +6 -0
  1018. package/node_modules/uri-js/dist/esnext/util.js +36 -0
  1019. package/node_modules/uri-js/dist/esnext/util.js.map +1 -0
  1020. package/node_modules/uri-js/package.json +77 -0
  1021. package/node_modules/uri-js/yarn.lock +2558 -0
  1022. package/package.json +11 -19
@@ -0,0 +1,1553 @@
1
+ function Diff() {}
2
+ Diff.prototype = {
3
+ diff: function diff(oldString, newString) {
4
+ var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
5
+ var callback = options.callback;
6
+
7
+ if (typeof options === 'function') {
8
+ callback = options;
9
+ options = {};
10
+ }
11
+
12
+ this.options = options;
13
+ var self = this;
14
+
15
+ function done(value) {
16
+ if (callback) {
17
+ setTimeout(function () {
18
+ callback(undefined, value);
19
+ }, 0);
20
+ return true;
21
+ } else {
22
+ return value;
23
+ }
24
+ } // Allow subclasses to massage the input prior to running
25
+
26
+
27
+ oldString = this.castInput(oldString);
28
+ newString = this.castInput(newString);
29
+ oldString = this.removeEmpty(this.tokenize(oldString));
30
+ newString = this.removeEmpty(this.tokenize(newString));
31
+ var newLen = newString.length,
32
+ oldLen = oldString.length;
33
+ var editLength = 1;
34
+ var maxEditLength = newLen + oldLen;
35
+ var bestPath = [{
36
+ newPos: -1,
37
+ components: []
38
+ }]; // Seed editLength = 0, i.e. the content starts with the same values
39
+
40
+ var oldPos = this.extractCommon(bestPath[0], newString, oldString, 0);
41
+
42
+ if (bestPath[0].newPos + 1 >= newLen && oldPos + 1 >= oldLen) {
43
+ // Identity per the equality and tokenizer
44
+ return done([{
45
+ value: this.join(newString),
46
+ count: newString.length
47
+ }]);
48
+ } // Main worker method. checks all permutations of a given edit length for acceptance.
49
+
50
+
51
+ function execEditLength() {
52
+ for (var diagonalPath = -1 * editLength; diagonalPath <= editLength; diagonalPath += 2) {
53
+ var basePath = void 0;
54
+
55
+ var addPath = bestPath[diagonalPath - 1],
56
+ removePath = bestPath[diagonalPath + 1],
57
+ _oldPos = (removePath ? removePath.newPos : 0) - diagonalPath;
58
+
59
+ if (addPath) {
60
+ // No one else is going to attempt to use this value, clear it
61
+ bestPath[diagonalPath - 1] = undefined;
62
+ }
63
+
64
+ var canAdd = addPath && addPath.newPos + 1 < newLen,
65
+ canRemove = removePath && 0 <= _oldPos && _oldPos < oldLen;
66
+
67
+ if (!canAdd && !canRemove) {
68
+ // If this path is a terminal then prune
69
+ bestPath[diagonalPath] = undefined;
70
+ continue;
71
+ } // Select the diagonal that we want to branch from. We select the prior
72
+ // path whose position in the new string is the farthest from the origin
73
+ // and does not pass the bounds of the diff graph
74
+
75
+
76
+ if (!canAdd || canRemove && addPath.newPos < removePath.newPos) {
77
+ basePath = clonePath(removePath);
78
+ self.pushComponent(basePath.components, undefined, true);
79
+ } else {
80
+ basePath = addPath; // No need to clone, we've pulled it from the list
81
+
82
+ basePath.newPos++;
83
+ self.pushComponent(basePath.components, true, undefined);
84
+ }
85
+
86
+ _oldPos = self.extractCommon(basePath, newString, oldString, diagonalPath); // If we have hit the end of both strings, then we are done
87
+
88
+ if (basePath.newPos + 1 >= newLen && _oldPos + 1 >= oldLen) {
89
+ return done(buildValues(self, basePath.components, newString, oldString, self.useLongestToken));
90
+ } else {
91
+ // Otherwise track this path as a potential candidate and continue.
92
+ bestPath[diagonalPath] = basePath;
93
+ }
94
+ }
95
+
96
+ editLength++;
97
+ } // Performs the length of edit iteration. Is a bit fugly as this has to support the
98
+ // sync and async mode which is never fun. Loops over execEditLength until a value
99
+ // is produced.
100
+
101
+
102
+ if (callback) {
103
+ (function exec() {
104
+ setTimeout(function () {
105
+ // This should not happen, but we want to be safe.
106
+
107
+ /* istanbul ignore next */
108
+ if (editLength > maxEditLength) {
109
+ return callback();
110
+ }
111
+
112
+ if (!execEditLength()) {
113
+ exec();
114
+ }
115
+ }, 0);
116
+ })();
117
+ } else {
118
+ while (editLength <= maxEditLength) {
119
+ var ret = execEditLength();
120
+
121
+ if (ret) {
122
+ return ret;
123
+ }
124
+ }
125
+ }
126
+ },
127
+ pushComponent: function pushComponent(components, added, removed) {
128
+ var last = components[components.length - 1];
129
+
130
+ if (last && last.added === added && last.removed === removed) {
131
+ // We need to clone here as the component clone operation is just
132
+ // as shallow array clone
133
+ components[components.length - 1] = {
134
+ count: last.count + 1,
135
+ added: added,
136
+ removed: removed
137
+ };
138
+ } else {
139
+ components.push({
140
+ count: 1,
141
+ added: added,
142
+ removed: removed
143
+ });
144
+ }
145
+ },
146
+ extractCommon: function extractCommon(basePath, newString, oldString, diagonalPath) {
147
+ var newLen = newString.length,
148
+ oldLen = oldString.length,
149
+ newPos = basePath.newPos,
150
+ oldPos = newPos - diagonalPath,
151
+ commonCount = 0;
152
+
153
+ while (newPos + 1 < newLen && oldPos + 1 < oldLen && this.equals(newString[newPos + 1], oldString[oldPos + 1])) {
154
+ newPos++;
155
+ oldPos++;
156
+ commonCount++;
157
+ }
158
+
159
+ if (commonCount) {
160
+ basePath.components.push({
161
+ count: commonCount
162
+ });
163
+ }
164
+
165
+ basePath.newPos = newPos;
166
+ return oldPos;
167
+ },
168
+ equals: function equals(left, right) {
169
+ if (this.options.comparator) {
170
+ return this.options.comparator(left, right);
171
+ } else {
172
+ return left === right || this.options.ignoreCase && left.toLowerCase() === right.toLowerCase();
173
+ }
174
+ },
175
+ removeEmpty: function removeEmpty(array) {
176
+ var ret = [];
177
+
178
+ for (var i = 0; i < array.length; i++) {
179
+ if (array[i]) {
180
+ ret.push(array[i]);
181
+ }
182
+ }
183
+
184
+ return ret;
185
+ },
186
+ castInput: function castInput(value) {
187
+ return value;
188
+ },
189
+ tokenize: function tokenize(value) {
190
+ return value.split('');
191
+ },
192
+ join: function join(chars) {
193
+ return chars.join('');
194
+ }
195
+ };
196
+
197
+ function buildValues(diff, components, newString, oldString, useLongestToken) {
198
+ var componentPos = 0,
199
+ componentLen = components.length,
200
+ newPos = 0,
201
+ oldPos = 0;
202
+
203
+ for (; componentPos < componentLen; componentPos++) {
204
+ var component = components[componentPos];
205
+
206
+ if (!component.removed) {
207
+ if (!component.added && useLongestToken) {
208
+ var value = newString.slice(newPos, newPos + component.count);
209
+ value = value.map(function (value, i) {
210
+ var oldValue = oldString[oldPos + i];
211
+ return oldValue.length > value.length ? oldValue : value;
212
+ });
213
+ component.value = diff.join(value);
214
+ } else {
215
+ component.value = diff.join(newString.slice(newPos, newPos + component.count));
216
+ }
217
+
218
+ newPos += component.count; // Common case
219
+
220
+ if (!component.added) {
221
+ oldPos += component.count;
222
+ }
223
+ } else {
224
+ component.value = diff.join(oldString.slice(oldPos, oldPos + component.count));
225
+ oldPos += component.count; // Reverse add and remove so removes are output first to match common convention
226
+ // The diffing algorithm is tied to add then remove output and this is the simplest
227
+ // route to get the desired output with minimal overhead.
228
+
229
+ if (componentPos && components[componentPos - 1].added) {
230
+ var tmp = components[componentPos - 1];
231
+ components[componentPos - 1] = components[componentPos];
232
+ components[componentPos] = tmp;
233
+ }
234
+ }
235
+ } // Special case handle for when one terminal is ignored (i.e. whitespace).
236
+ // For this case we merge the terminal into the prior string and drop the change.
237
+ // This is only available for string mode.
238
+
239
+
240
+ var lastComponent = components[componentLen - 1];
241
+
242
+ if (componentLen > 1 && typeof lastComponent.value === 'string' && (lastComponent.added || lastComponent.removed) && diff.equals('', lastComponent.value)) {
243
+ components[componentLen - 2].value += lastComponent.value;
244
+ components.pop();
245
+ }
246
+
247
+ return components;
248
+ }
249
+
250
+ function clonePath(path) {
251
+ return {
252
+ newPos: path.newPos,
253
+ components: path.components.slice(0)
254
+ };
255
+ }
256
+
257
+ var characterDiff = new Diff();
258
+ function diffChars(oldStr, newStr, options) {
259
+ return characterDiff.diff(oldStr, newStr, options);
260
+ }
261
+
262
+ function generateOptions(options, defaults) {
263
+ if (typeof options === 'function') {
264
+ defaults.callback = options;
265
+ } else if (options) {
266
+ for (var name in options) {
267
+ /* istanbul ignore else */
268
+ if (options.hasOwnProperty(name)) {
269
+ defaults[name] = options[name];
270
+ }
271
+ }
272
+ }
273
+
274
+ return defaults;
275
+ }
276
+
277
+ //
278
+ // Ranges and exceptions:
279
+ // Latin-1 Supplement, 0080–00FF
280
+ // - U+00D7 × Multiplication sign
281
+ // - U+00F7 ÷ Division sign
282
+ // Latin Extended-A, 0100–017F
283
+ // Latin Extended-B, 0180–024F
284
+ // IPA Extensions, 0250–02AF
285
+ // Spacing Modifier Letters, 02B0–02FF
286
+ // - U+02C7 ˇ &#711; Caron
287
+ // - U+02D8 ˘ &#728; Breve
288
+ // - U+02D9 ˙ &#729; Dot Above
289
+ // - U+02DA ˚ &#730; Ring Above
290
+ // - U+02DB ˛ &#731; Ogonek
291
+ // - U+02DC ˜ &#732; Small Tilde
292
+ // - U+02DD ˝ &#733; Double Acute Accent
293
+ // Latin Extended Additional, 1E00–1EFF
294
+
295
+ var extendedWordChars = /^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/;
296
+ var reWhitespace = /\S/;
297
+ var wordDiff = new Diff();
298
+
299
+ wordDiff.equals = function (left, right) {
300
+ if (this.options.ignoreCase) {
301
+ left = left.toLowerCase();
302
+ right = right.toLowerCase();
303
+ }
304
+
305
+ return left === right || this.options.ignoreWhitespace && !reWhitespace.test(left) && !reWhitespace.test(right);
306
+ };
307
+
308
+ wordDiff.tokenize = function (value) {
309
+ // All whitespace symbols except newline group into one token, each newline - in separate token
310
+ var tokens = value.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/); // Join the boundary splits that we do not consider to be boundaries. This is primarily the extended Latin character set.
311
+
312
+ for (var i = 0; i < tokens.length - 1; i++) {
313
+ // If we have an empty string in the next field and we have only word chars before and after, merge
314
+ if (!tokens[i + 1] && tokens[i + 2] && extendedWordChars.test(tokens[i]) && extendedWordChars.test(tokens[i + 2])) {
315
+ tokens[i] += tokens[i + 2];
316
+ tokens.splice(i + 1, 2);
317
+ i--;
318
+ }
319
+ }
320
+
321
+ return tokens;
322
+ };
323
+
324
+ function diffWords(oldStr, newStr, options) {
325
+ options = generateOptions(options, {
326
+ ignoreWhitespace: true
327
+ });
328
+ return wordDiff.diff(oldStr, newStr, options);
329
+ }
330
+ function diffWordsWithSpace(oldStr, newStr, options) {
331
+ return wordDiff.diff(oldStr, newStr, options);
332
+ }
333
+
334
+ var lineDiff = new Diff();
335
+
336
+ lineDiff.tokenize = function (value) {
337
+ var retLines = [],
338
+ linesAndNewlines = value.split(/(\n|\r\n)/); // Ignore the final empty token that occurs if the string ends with a new line
339
+
340
+ if (!linesAndNewlines[linesAndNewlines.length - 1]) {
341
+ linesAndNewlines.pop();
342
+ } // Merge the content and line separators into single tokens
343
+
344
+
345
+ for (var i = 0; i < linesAndNewlines.length; i++) {
346
+ var line = linesAndNewlines[i];
347
+
348
+ if (i % 2 && !this.options.newlineIsToken) {
349
+ retLines[retLines.length - 1] += line;
350
+ } else {
351
+ if (this.options.ignoreWhitespace) {
352
+ line = line.trim();
353
+ }
354
+
355
+ retLines.push(line);
356
+ }
357
+ }
358
+
359
+ return retLines;
360
+ };
361
+
362
+ function diffLines(oldStr, newStr, callback) {
363
+ return lineDiff.diff(oldStr, newStr, callback);
364
+ }
365
+ function diffTrimmedLines(oldStr, newStr, callback) {
366
+ var options = generateOptions(callback, {
367
+ ignoreWhitespace: true
368
+ });
369
+ return lineDiff.diff(oldStr, newStr, options);
370
+ }
371
+
372
+ var sentenceDiff = new Diff();
373
+
374
+ sentenceDiff.tokenize = function (value) {
375
+ return value.split(/(\S.+?[.!?])(?=\s+|$)/);
376
+ };
377
+
378
+ function diffSentences(oldStr, newStr, callback) {
379
+ return sentenceDiff.diff(oldStr, newStr, callback);
380
+ }
381
+
382
+ var cssDiff = new Diff();
383
+
384
+ cssDiff.tokenize = function (value) {
385
+ return value.split(/([{}:;,]|\s+)/);
386
+ };
387
+
388
+ function diffCss(oldStr, newStr, callback) {
389
+ return cssDiff.diff(oldStr, newStr, callback);
390
+ }
391
+
392
+ function _typeof(obj) {
393
+ "@babel/helpers - typeof";
394
+
395
+ if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
396
+ _typeof = function (obj) {
397
+ return typeof obj;
398
+ };
399
+ } else {
400
+ _typeof = function (obj) {
401
+ return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
402
+ };
403
+ }
404
+
405
+ return _typeof(obj);
406
+ }
407
+
408
+ function _toConsumableArray(arr) {
409
+ return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
410
+ }
411
+
412
+ function _arrayWithoutHoles(arr) {
413
+ if (Array.isArray(arr)) return _arrayLikeToArray(arr);
414
+ }
415
+
416
+ function _iterableToArray(iter) {
417
+ if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);
418
+ }
419
+
420
+ function _unsupportedIterableToArray(o, minLen) {
421
+ if (!o) return;
422
+ if (typeof o === "string") return _arrayLikeToArray(o, minLen);
423
+ var n = Object.prototype.toString.call(o).slice(8, -1);
424
+ if (n === "Object" && o.constructor) n = o.constructor.name;
425
+ if (n === "Map" || n === "Set") return Array.from(o);
426
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
427
+ }
428
+
429
+ function _arrayLikeToArray(arr, len) {
430
+ if (len == null || len > arr.length) len = arr.length;
431
+
432
+ for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
433
+
434
+ return arr2;
435
+ }
436
+
437
+ function _nonIterableSpread() {
438
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
439
+ }
440
+
441
+ var objectPrototypeToString = Object.prototype.toString;
442
+ var jsonDiff = new Diff(); // Discriminate between two lines of pretty-printed, serialized JSON where one of them has a
443
+ // dangling comma and the other doesn't. Turns out including the dangling comma yields the nicest output:
444
+
445
+ jsonDiff.useLongestToken = true;
446
+ jsonDiff.tokenize = lineDiff.tokenize;
447
+
448
+ jsonDiff.castInput = function (value) {
449
+ var _this$options = this.options,
450
+ undefinedReplacement = _this$options.undefinedReplacement,
451
+ _this$options$stringi = _this$options.stringifyReplacer,
452
+ stringifyReplacer = _this$options$stringi === void 0 ? function (k, v) {
453
+ return typeof v === 'undefined' ? undefinedReplacement : v;
454
+ } : _this$options$stringi;
455
+ return typeof value === 'string' ? value : JSON.stringify(canonicalize(value, null, null, stringifyReplacer), stringifyReplacer, ' ');
456
+ };
457
+
458
+ jsonDiff.equals = function (left, right) {
459
+ return Diff.prototype.equals.call(jsonDiff, left.replace(/,([\r\n])/g, '$1'), right.replace(/,([\r\n])/g, '$1'));
460
+ };
461
+
462
+ function diffJson(oldObj, newObj, options) {
463
+ return jsonDiff.diff(oldObj, newObj, options);
464
+ } // This function handles the presence of circular references by bailing out when encountering an
465
+ // object that is already on the "stack" of items being processed. Accepts an optional replacer
466
+
467
+ function canonicalize(obj, stack, replacementStack, replacer, key) {
468
+ stack = stack || [];
469
+ replacementStack = replacementStack || [];
470
+
471
+ if (replacer) {
472
+ obj = replacer(key, obj);
473
+ }
474
+
475
+ var i;
476
+
477
+ for (i = 0; i < stack.length; i += 1) {
478
+ if (stack[i] === obj) {
479
+ return replacementStack[i];
480
+ }
481
+ }
482
+
483
+ var canonicalizedObj;
484
+
485
+ if ('[object Array]' === objectPrototypeToString.call(obj)) {
486
+ stack.push(obj);
487
+ canonicalizedObj = new Array(obj.length);
488
+ replacementStack.push(canonicalizedObj);
489
+
490
+ for (i = 0; i < obj.length; i += 1) {
491
+ canonicalizedObj[i] = canonicalize(obj[i], stack, replacementStack, replacer, key);
492
+ }
493
+
494
+ stack.pop();
495
+ replacementStack.pop();
496
+ return canonicalizedObj;
497
+ }
498
+
499
+ if (obj && obj.toJSON) {
500
+ obj = obj.toJSON();
501
+ }
502
+
503
+ if (_typeof(obj) === 'object' && obj !== null) {
504
+ stack.push(obj);
505
+ canonicalizedObj = {};
506
+ replacementStack.push(canonicalizedObj);
507
+
508
+ var sortedKeys = [],
509
+ _key;
510
+
511
+ for (_key in obj) {
512
+ /* istanbul ignore else */
513
+ if (obj.hasOwnProperty(_key)) {
514
+ sortedKeys.push(_key);
515
+ }
516
+ }
517
+
518
+ sortedKeys.sort();
519
+
520
+ for (i = 0; i < sortedKeys.length; i += 1) {
521
+ _key = sortedKeys[i];
522
+ canonicalizedObj[_key] = canonicalize(obj[_key], stack, replacementStack, replacer, _key);
523
+ }
524
+
525
+ stack.pop();
526
+ replacementStack.pop();
527
+ } else {
528
+ canonicalizedObj = obj;
529
+ }
530
+
531
+ return canonicalizedObj;
532
+ }
533
+
534
+ var arrayDiff = new Diff();
535
+
536
+ arrayDiff.tokenize = function (value) {
537
+ return value.slice();
538
+ };
539
+
540
+ arrayDiff.join = arrayDiff.removeEmpty = function (value) {
541
+ return value;
542
+ };
543
+
544
+ function diffArrays(oldArr, newArr, callback) {
545
+ return arrayDiff.diff(oldArr, newArr, callback);
546
+ }
547
+
548
+ function parsePatch(uniDiff) {
549
+ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
550
+ var diffstr = uniDiff.split(/\r\n|[\n\v\f\r\x85]/),
551
+ delimiters = uniDiff.match(/\r\n|[\n\v\f\r\x85]/g) || [],
552
+ list = [],
553
+ i = 0;
554
+
555
+ function parseIndex() {
556
+ var index = {};
557
+ list.push(index); // Parse diff metadata
558
+
559
+ while (i < diffstr.length) {
560
+ var line = diffstr[i]; // File header found, end parsing diff metadata
561
+
562
+ if (/^(\-\-\-|\+\+\+|@@)\s/.test(line)) {
563
+ break;
564
+ } // Diff index
565
+
566
+
567
+ var header = /^(?:Index:|diff(?: -r \w+)+)\s+(.+?)\s*$/.exec(line);
568
+
569
+ if (header) {
570
+ index.index = header[1];
571
+ }
572
+
573
+ i++;
574
+ } // Parse file headers if they are defined. Unified diff requires them, but
575
+ // there's no technical issues to have an isolated hunk without file header
576
+
577
+
578
+ parseFileHeader(index);
579
+ parseFileHeader(index); // Parse hunks
580
+
581
+ index.hunks = [];
582
+
583
+ while (i < diffstr.length) {
584
+ var _line = diffstr[i];
585
+
586
+ if (/^(Index:|diff|\-\-\-|\+\+\+)\s/.test(_line)) {
587
+ break;
588
+ } else if (/^@@/.test(_line)) {
589
+ index.hunks.push(parseHunk());
590
+ } else if (_line && options.strict) {
591
+ // Ignore unexpected content unless in strict mode
592
+ throw new Error('Unknown line ' + (i + 1) + ' ' + JSON.stringify(_line));
593
+ } else {
594
+ i++;
595
+ }
596
+ }
597
+ } // Parses the --- and +++ headers, if none are found, no lines
598
+ // are consumed.
599
+
600
+
601
+ function parseFileHeader(index) {
602
+ var fileHeader = /^(---|\+\+\+)\s+(.*)$/.exec(diffstr[i]);
603
+
604
+ if (fileHeader) {
605
+ var keyPrefix = fileHeader[1] === '---' ? 'old' : 'new';
606
+ var data = fileHeader[2].split('\t', 2);
607
+ var fileName = data[0].replace(/\\\\/g, '\\');
608
+
609
+ if (/^".*"$/.test(fileName)) {
610
+ fileName = fileName.substr(1, fileName.length - 2);
611
+ }
612
+
613
+ index[keyPrefix + 'FileName'] = fileName;
614
+ index[keyPrefix + 'Header'] = (data[1] || '').trim();
615
+ i++;
616
+ }
617
+ } // Parses a hunk
618
+ // This assumes that we are at the start of a hunk.
619
+
620
+
621
+ function parseHunk() {
622
+ var chunkHeaderIndex = i,
623
+ chunkHeaderLine = diffstr[i++],
624
+ chunkHeader = chunkHeaderLine.split(/@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/);
625
+ var hunk = {
626
+ oldStart: +chunkHeader[1],
627
+ oldLines: typeof chunkHeader[2] === 'undefined' ? 1 : +chunkHeader[2],
628
+ newStart: +chunkHeader[3],
629
+ newLines: typeof chunkHeader[4] === 'undefined' ? 1 : +chunkHeader[4],
630
+ lines: [],
631
+ linedelimiters: []
632
+ }; // Unified Diff Format quirk: If the chunk size is 0,
633
+ // the first number is one lower than one would expect.
634
+ // https://www.artima.com/weblogs/viewpost.jsp?thread=164293
635
+
636
+ if (hunk.oldLines === 0) {
637
+ hunk.oldStart += 1;
638
+ }
639
+
640
+ if (hunk.newLines === 0) {
641
+ hunk.newStart += 1;
642
+ }
643
+
644
+ var addCount = 0,
645
+ removeCount = 0;
646
+
647
+ for (; i < diffstr.length; i++) {
648
+ // Lines starting with '---' could be mistaken for the "remove line" operation
649
+ // But they could be the header for the next file. Therefore prune such cases out.
650
+ if (diffstr[i].indexOf('--- ') === 0 && i + 2 < diffstr.length && diffstr[i + 1].indexOf('+++ ') === 0 && diffstr[i + 2].indexOf('@@') === 0) {
651
+ break;
652
+ }
653
+
654
+ var operation = diffstr[i].length == 0 && i != diffstr.length - 1 ? ' ' : diffstr[i][0];
655
+
656
+ if (operation === '+' || operation === '-' || operation === ' ' || operation === '\\') {
657
+ hunk.lines.push(diffstr[i]);
658
+ hunk.linedelimiters.push(delimiters[i] || '\n');
659
+
660
+ if (operation === '+') {
661
+ addCount++;
662
+ } else if (operation === '-') {
663
+ removeCount++;
664
+ } else if (operation === ' ') {
665
+ addCount++;
666
+ removeCount++;
667
+ }
668
+ } else {
669
+ break;
670
+ }
671
+ } // Handle the empty block count case
672
+
673
+
674
+ if (!addCount && hunk.newLines === 1) {
675
+ hunk.newLines = 0;
676
+ }
677
+
678
+ if (!removeCount && hunk.oldLines === 1) {
679
+ hunk.oldLines = 0;
680
+ } // Perform optional sanity checking
681
+
682
+
683
+ if (options.strict) {
684
+ if (addCount !== hunk.newLines) {
685
+ throw new Error('Added line count did not match for hunk at line ' + (chunkHeaderIndex + 1));
686
+ }
687
+
688
+ if (removeCount !== hunk.oldLines) {
689
+ throw new Error('Removed line count did not match for hunk at line ' + (chunkHeaderIndex + 1));
690
+ }
691
+ }
692
+
693
+ return hunk;
694
+ }
695
+
696
+ while (i < diffstr.length) {
697
+ parseIndex();
698
+ }
699
+
700
+ return list;
701
+ }
702
+
703
+ // Iterator that traverses in the range of [min, max], stepping
704
+ // by distance from a given start position. I.e. for [0, 4], with
705
+ // start of 2, this will iterate 2, 3, 1, 4, 0.
706
+ function distanceIterator (start, minLine, maxLine) {
707
+ var wantForward = true,
708
+ backwardExhausted = false,
709
+ forwardExhausted = false,
710
+ localOffset = 1;
711
+ return function iterator() {
712
+ if (wantForward && !forwardExhausted) {
713
+ if (backwardExhausted) {
714
+ localOffset++;
715
+ } else {
716
+ wantForward = false;
717
+ } // Check if trying to fit beyond text length, and if not, check it fits
718
+ // after offset location (or desired location on first iteration)
719
+
720
+
721
+ if (start + localOffset <= maxLine) {
722
+ return localOffset;
723
+ }
724
+
725
+ forwardExhausted = true;
726
+ }
727
+
728
+ if (!backwardExhausted) {
729
+ if (!forwardExhausted) {
730
+ wantForward = true;
731
+ } // Check if trying to fit before text beginning, and if not, check it fits
732
+ // before offset location
733
+
734
+
735
+ if (minLine <= start - localOffset) {
736
+ return -localOffset++;
737
+ }
738
+
739
+ backwardExhausted = true;
740
+ return iterator();
741
+ } // We tried to fit hunk before text beginning and beyond text length, then
742
+ // hunk can't fit on the text. Return undefined
743
+
744
+ };
745
+ }
746
+
747
+ function applyPatch(source, uniDiff) {
748
+ var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
749
+
750
+ if (typeof uniDiff === 'string') {
751
+ uniDiff = parsePatch(uniDiff);
752
+ }
753
+
754
+ if (Array.isArray(uniDiff)) {
755
+ if (uniDiff.length > 1) {
756
+ throw new Error('applyPatch only works with a single input.');
757
+ }
758
+
759
+ uniDiff = uniDiff[0];
760
+ } // Apply the diff to the input
761
+
762
+
763
+ var lines = source.split(/\r\n|[\n\v\f\r\x85]/),
764
+ delimiters = source.match(/\r\n|[\n\v\f\r\x85]/g) || [],
765
+ hunks = uniDiff.hunks,
766
+ compareLine = options.compareLine || function (lineNumber, line, operation, patchContent) {
767
+ return line === patchContent;
768
+ },
769
+ errorCount = 0,
770
+ fuzzFactor = options.fuzzFactor || 0,
771
+ minLine = 0,
772
+ offset = 0,
773
+ removeEOFNL,
774
+ addEOFNL;
775
+ /**
776
+ * Checks if the hunk exactly fits on the provided location
777
+ */
778
+
779
+
780
+ function hunkFits(hunk, toPos) {
781
+ for (var j = 0; j < hunk.lines.length; j++) {
782
+ var line = hunk.lines[j],
783
+ operation = line.length > 0 ? line[0] : ' ',
784
+ content = line.length > 0 ? line.substr(1) : line;
785
+
786
+ if (operation === ' ' || operation === '-') {
787
+ // Context sanity check
788
+ if (!compareLine(toPos + 1, lines[toPos], operation, content)) {
789
+ errorCount++;
790
+
791
+ if (errorCount > fuzzFactor) {
792
+ return false;
793
+ }
794
+ }
795
+
796
+ toPos++;
797
+ }
798
+ }
799
+
800
+ return true;
801
+ } // Search best fit offsets for each hunk based on the previous ones
802
+
803
+
804
+ for (var i = 0; i < hunks.length; i++) {
805
+ var hunk = hunks[i],
806
+ maxLine = lines.length - hunk.oldLines,
807
+ localOffset = 0,
808
+ toPos = offset + hunk.oldStart - 1;
809
+ var iterator = distanceIterator(toPos, minLine, maxLine);
810
+
811
+ for (; localOffset !== undefined; localOffset = iterator()) {
812
+ if (hunkFits(hunk, toPos + localOffset)) {
813
+ hunk.offset = offset += localOffset;
814
+ break;
815
+ }
816
+ }
817
+
818
+ if (localOffset === undefined) {
819
+ return false;
820
+ } // Set lower text limit to end of the current hunk, so next ones don't try
821
+ // to fit over already patched text
822
+
823
+
824
+ minLine = hunk.offset + hunk.oldStart + hunk.oldLines;
825
+ } // Apply patch hunks
826
+
827
+
828
+ var diffOffset = 0;
829
+
830
+ for (var _i = 0; _i < hunks.length; _i++) {
831
+ var _hunk = hunks[_i],
832
+ _toPos = _hunk.oldStart + _hunk.offset + diffOffset - 1;
833
+
834
+ diffOffset += _hunk.newLines - _hunk.oldLines;
835
+
836
+ for (var j = 0; j < _hunk.lines.length; j++) {
837
+ var line = _hunk.lines[j],
838
+ operation = line.length > 0 ? line[0] : ' ',
839
+ content = line.length > 0 ? line.substr(1) : line,
840
+ delimiter = _hunk.linedelimiters[j];
841
+
842
+ if (operation === ' ') {
843
+ _toPos++;
844
+ } else if (operation === '-') {
845
+ lines.splice(_toPos, 1);
846
+ delimiters.splice(_toPos, 1);
847
+ /* istanbul ignore else */
848
+ } else if (operation === '+') {
849
+ lines.splice(_toPos, 0, content);
850
+ delimiters.splice(_toPos, 0, delimiter);
851
+ _toPos++;
852
+ } else if (operation === '\\') {
853
+ var previousOperation = _hunk.lines[j - 1] ? _hunk.lines[j - 1][0] : null;
854
+
855
+ if (previousOperation === '+') {
856
+ removeEOFNL = true;
857
+ } else if (previousOperation === '-') {
858
+ addEOFNL = true;
859
+ }
860
+ }
861
+ }
862
+ } // Handle EOFNL insertion/removal
863
+
864
+
865
+ if (removeEOFNL) {
866
+ while (!lines[lines.length - 1]) {
867
+ lines.pop();
868
+ delimiters.pop();
869
+ }
870
+ } else if (addEOFNL) {
871
+ lines.push('');
872
+ delimiters.push('\n');
873
+ }
874
+
875
+ for (var _k = 0; _k < lines.length - 1; _k++) {
876
+ lines[_k] = lines[_k] + delimiters[_k];
877
+ }
878
+
879
+ return lines.join('');
880
+ } // Wrapper that supports multiple file patches via callbacks.
881
+
882
+ function applyPatches(uniDiff, options) {
883
+ if (typeof uniDiff === 'string') {
884
+ uniDiff = parsePatch(uniDiff);
885
+ }
886
+
887
+ var currentIndex = 0;
888
+
889
+ function processIndex() {
890
+ var index = uniDiff[currentIndex++];
891
+
892
+ if (!index) {
893
+ return options.complete();
894
+ }
895
+
896
+ options.loadFile(index, function (err, data) {
897
+ if (err) {
898
+ return options.complete(err);
899
+ }
900
+
901
+ var updatedContent = applyPatch(data, index, options);
902
+ options.patched(index, updatedContent, function (err) {
903
+ if (err) {
904
+ return options.complete(err);
905
+ }
906
+
907
+ processIndex();
908
+ });
909
+ });
910
+ }
911
+
912
+ processIndex();
913
+ }
914
+
915
+ function structuredPatch(oldFileName, newFileName, oldStr, newStr, oldHeader, newHeader, options) {
916
+ if (!options) {
917
+ options = {};
918
+ }
919
+
920
+ if (typeof options.context === 'undefined') {
921
+ options.context = 4;
922
+ }
923
+
924
+ var diff = diffLines(oldStr, newStr, options);
925
+ diff.push({
926
+ value: '',
927
+ lines: []
928
+ }); // Append an empty value to make cleanup easier
929
+
930
+ function contextLines(lines) {
931
+ return lines.map(function (entry) {
932
+ return ' ' + entry;
933
+ });
934
+ }
935
+
936
+ var hunks = [];
937
+ var oldRangeStart = 0,
938
+ newRangeStart = 0,
939
+ curRange = [],
940
+ oldLine = 1,
941
+ newLine = 1;
942
+
943
+ var _loop = function _loop(i) {
944
+ var current = diff[i],
945
+ lines = current.lines || current.value.replace(/\n$/, '').split('\n');
946
+ current.lines = lines;
947
+
948
+ if (current.added || current.removed) {
949
+ var _curRange;
950
+
951
+ // If we have previous context, start with that
952
+ if (!oldRangeStart) {
953
+ var prev = diff[i - 1];
954
+ oldRangeStart = oldLine;
955
+ newRangeStart = newLine;
956
+
957
+ if (prev) {
958
+ curRange = options.context > 0 ? contextLines(prev.lines.slice(-options.context)) : [];
959
+ oldRangeStart -= curRange.length;
960
+ newRangeStart -= curRange.length;
961
+ }
962
+ } // Output our changes
963
+
964
+
965
+ (_curRange = curRange).push.apply(_curRange, _toConsumableArray(lines.map(function (entry) {
966
+ return (current.added ? '+' : '-') + entry;
967
+ }))); // Track the updated file position
968
+
969
+
970
+ if (current.added) {
971
+ newLine += lines.length;
972
+ } else {
973
+ oldLine += lines.length;
974
+ }
975
+ } else {
976
+ // Identical context lines. Track line changes
977
+ if (oldRangeStart) {
978
+ // Close out any changes that have been output (or join overlapping)
979
+ if (lines.length <= options.context * 2 && i < diff.length - 2) {
980
+ var _curRange2;
981
+
982
+ // Overlapping
983
+ (_curRange2 = curRange).push.apply(_curRange2, _toConsumableArray(contextLines(lines)));
984
+ } else {
985
+ var _curRange3;
986
+
987
+ // end the range and output
988
+ var contextSize = Math.min(lines.length, options.context);
989
+
990
+ (_curRange3 = curRange).push.apply(_curRange3, _toConsumableArray(contextLines(lines.slice(0, contextSize))));
991
+
992
+ var hunk = {
993
+ oldStart: oldRangeStart,
994
+ oldLines: oldLine - oldRangeStart + contextSize,
995
+ newStart: newRangeStart,
996
+ newLines: newLine - newRangeStart + contextSize,
997
+ lines: curRange
998
+ };
999
+
1000
+ if (i >= diff.length - 2 && lines.length <= options.context) {
1001
+ // EOF is inside this hunk
1002
+ var oldEOFNewline = /\n$/.test(oldStr);
1003
+ var newEOFNewline = /\n$/.test(newStr);
1004
+ var noNlBeforeAdds = lines.length == 0 && curRange.length > hunk.oldLines;
1005
+
1006
+ if (!oldEOFNewline && noNlBeforeAdds && oldStr.length > 0) {
1007
+ // special case: old has no eol and no trailing context; no-nl can end up before adds
1008
+ // however, if the old file is empty, do not output the no-nl line
1009
+ curRange.splice(hunk.oldLines, 0, '\');
1010
+ }
1011
+
1012
+ if (!oldEOFNewline && !noNlBeforeAdds || !newEOFNewline) {
1013
+ curRange.push('\');
1014
+ }
1015
+ }
1016
+
1017
+ hunks.push(hunk);
1018
+ oldRangeStart = 0;
1019
+ newRangeStart = 0;
1020
+ curRange = [];
1021
+ }
1022
+ }
1023
+
1024
+ oldLine += lines.length;
1025
+ newLine += lines.length;
1026
+ }
1027
+ };
1028
+
1029
+ for (var i = 0; i < diff.length; i++) {
1030
+ _loop(i);
1031
+ }
1032
+
1033
+ return {
1034
+ oldFileName: oldFileName,
1035
+ newFileName: newFileName,
1036
+ oldHeader: oldHeader,
1037
+ newHeader: newHeader,
1038
+ hunks: hunks
1039
+ };
1040
+ }
1041
+ function formatPatch(diff) {
1042
+ var ret = [];
1043
+
1044
+ if (diff.oldFileName == diff.newFileName) {
1045
+ ret.push('Index: ' + diff.oldFileName);
1046
+ }
1047
+
1048
+ ret.push('===================================================================');
1049
+ ret.push('--- ' + diff.oldFileName + (typeof diff.oldHeader === 'undefined' ? '' : '\t' + diff.oldHeader));
1050
+ ret.push('+++ ' + diff.newFileName + (typeof diff.newHeader === 'undefined' ? '' : '\t' + diff.newHeader));
1051
+
1052
+ for (var i = 0; i < diff.hunks.length; i++) {
1053
+ var hunk = diff.hunks[i]; // Unified Diff Format quirk: If the chunk size is 0,
1054
+ // the first number is one lower than one would expect.
1055
+ // https://www.artima.com/weblogs/viewpost.jsp?thread=164293
1056
+
1057
+ if (hunk.oldLines === 0) {
1058
+ hunk.oldStart -= 1;
1059
+ }
1060
+
1061
+ if (hunk.newLines === 0) {
1062
+ hunk.newStart -= 1;
1063
+ }
1064
+
1065
+ ret.push('@@ -' + hunk.oldStart + ',' + hunk.oldLines + ' +' + hunk.newStart + ',' + hunk.newLines + ' @@');
1066
+ ret.push.apply(ret, hunk.lines);
1067
+ }
1068
+
1069
+ return ret.join('\n') + '\n';
1070
+ }
1071
+ function createTwoFilesPatch(oldFileName, newFileName, oldStr, newStr, oldHeader, newHeader, options) {
1072
+ return formatPatch(structuredPatch(oldFileName, newFileName, oldStr, newStr, oldHeader, newHeader, options));
1073
+ }
1074
+ function createPatch(fileName, oldStr, newStr, oldHeader, newHeader, options) {
1075
+ return createTwoFilesPatch(fileName, fileName, oldStr, newStr, oldHeader, newHeader, options);
1076
+ }
1077
+
1078
+ function arrayEqual(a, b) {
1079
+ if (a.length !== b.length) {
1080
+ return false;
1081
+ }
1082
+
1083
+ return arrayStartsWith(a, b);
1084
+ }
1085
+ function arrayStartsWith(array, start) {
1086
+ if (start.length > array.length) {
1087
+ return false;
1088
+ }
1089
+
1090
+ for (var i = 0; i < start.length; i++) {
1091
+ if (start[i] !== array[i]) {
1092
+ return false;
1093
+ }
1094
+ }
1095
+
1096
+ return true;
1097
+ }
1098
+
1099
+ function calcLineCount(hunk) {
1100
+ var _calcOldNewLineCount = calcOldNewLineCount(hunk.lines),
1101
+ oldLines = _calcOldNewLineCount.oldLines,
1102
+ newLines = _calcOldNewLineCount.newLines;
1103
+
1104
+ if (oldLines !== undefined) {
1105
+ hunk.oldLines = oldLines;
1106
+ } else {
1107
+ delete hunk.oldLines;
1108
+ }
1109
+
1110
+ if (newLines !== undefined) {
1111
+ hunk.newLines = newLines;
1112
+ } else {
1113
+ delete hunk.newLines;
1114
+ }
1115
+ }
1116
+ function merge(mine, theirs, base) {
1117
+ mine = loadPatch(mine, base);
1118
+ theirs = loadPatch(theirs, base);
1119
+ var ret = {}; // For index we just let it pass through as it doesn't have any necessary meaning.
1120
+ // Leaving sanity checks on this to the API consumer that may know more about the
1121
+ // meaning in their own context.
1122
+
1123
+ if (mine.index || theirs.index) {
1124
+ ret.index = mine.index || theirs.index;
1125
+ }
1126
+
1127
+ if (mine.newFileName || theirs.newFileName) {
1128
+ if (!fileNameChanged(mine)) {
1129
+ // No header or no change in ours, use theirs (and ours if theirs does not exist)
1130
+ ret.oldFileName = theirs.oldFileName || mine.oldFileName;
1131
+ ret.newFileName = theirs.newFileName || mine.newFileName;
1132
+ ret.oldHeader = theirs.oldHeader || mine.oldHeader;
1133
+ ret.newHeader = theirs.newHeader || mine.newHeader;
1134
+ } else if (!fileNameChanged(theirs)) {
1135
+ // No header or no change in theirs, use ours
1136
+ ret.oldFileName = mine.oldFileName;
1137
+ ret.newFileName = mine.newFileName;
1138
+ ret.oldHeader = mine.oldHeader;
1139
+ ret.newHeader = mine.newHeader;
1140
+ } else {
1141
+ // Both changed... figure it out
1142
+ ret.oldFileName = selectField(ret, mine.oldFileName, theirs.oldFileName);
1143
+ ret.newFileName = selectField(ret, mine.newFileName, theirs.newFileName);
1144
+ ret.oldHeader = selectField(ret, mine.oldHeader, theirs.oldHeader);
1145
+ ret.newHeader = selectField(ret, mine.newHeader, theirs.newHeader);
1146
+ }
1147
+ }
1148
+
1149
+ ret.hunks = [];
1150
+ var mineIndex = 0,
1151
+ theirsIndex = 0,
1152
+ mineOffset = 0,
1153
+ theirsOffset = 0;
1154
+
1155
+ while (mineIndex < mine.hunks.length || theirsIndex < theirs.hunks.length) {
1156
+ var mineCurrent = mine.hunks[mineIndex] || {
1157
+ oldStart: Infinity
1158
+ },
1159
+ theirsCurrent = theirs.hunks[theirsIndex] || {
1160
+ oldStart: Infinity
1161
+ };
1162
+
1163
+ if (hunkBefore(mineCurrent, theirsCurrent)) {
1164
+ // This patch does not overlap with any of the others, yay.
1165
+ ret.hunks.push(cloneHunk(mineCurrent, mineOffset));
1166
+ mineIndex++;
1167
+ theirsOffset += mineCurrent.newLines - mineCurrent.oldLines;
1168
+ } else if (hunkBefore(theirsCurrent, mineCurrent)) {
1169
+ // This patch does not overlap with any of the others, yay.
1170
+ ret.hunks.push(cloneHunk(theirsCurrent, theirsOffset));
1171
+ theirsIndex++;
1172
+ mineOffset += theirsCurrent.newLines - theirsCurrent.oldLines;
1173
+ } else {
1174
+ // Overlap, merge as best we can
1175
+ var mergedHunk = {
1176
+ oldStart: Math.min(mineCurrent.oldStart, theirsCurrent.oldStart),
1177
+ oldLines: 0,
1178
+ newStart: Math.min(mineCurrent.newStart + mineOffset, theirsCurrent.oldStart + theirsOffset),
1179
+ newLines: 0,
1180
+ lines: []
1181
+ };
1182
+ mergeLines(mergedHunk, mineCurrent.oldStart, mineCurrent.lines, theirsCurrent.oldStart, theirsCurrent.lines);
1183
+ theirsIndex++;
1184
+ mineIndex++;
1185
+ ret.hunks.push(mergedHunk);
1186
+ }
1187
+ }
1188
+
1189
+ return ret;
1190
+ }
1191
+
1192
+ function loadPatch(param, base) {
1193
+ if (typeof param === 'string') {
1194
+ if (/^@@/m.test(param) || /^Index:/m.test(param)) {
1195
+ return parsePatch(param)[0];
1196
+ }
1197
+
1198
+ if (!base) {
1199
+ throw new Error('Must provide a base reference or pass in a patch');
1200
+ }
1201
+
1202
+ return structuredPatch(undefined, undefined, base, param);
1203
+ }
1204
+
1205
+ return param;
1206
+ }
1207
+
1208
+ function fileNameChanged(patch) {
1209
+ return patch.newFileName && patch.newFileName !== patch.oldFileName;
1210
+ }
1211
+
1212
+ function selectField(index, mine, theirs) {
1213
+ if (mine === theirs) {
1214
+ return mine;
1215
+ } else {
1216
+ index.conflict = true;
1217
+ return {
1218
+ mine: mine,
1219
+ theirs: theirs
1220
+ };
1221
+ }
1222
+ }
1223
+
1224
+ function hunkBefore(test, check) {
1225
+ return test.oldStart < check.oldStart && test.oldStart + test.oldLines < check.oldStart;
1226
+ }
1227
+
1228
+ function cloneHunk(hunk, offset) {
1229
+ return {
1230
+ oldStart: hunk.oldStart,
1231
+ oldLines: hunk.oldLines,
1232
+ newStart: hunk.newStart + offset,
1233
+ newLines: hunk.newLines,
1234
+ lines: hunk.lines
1235
+ };
1236
+ }
1237
+
1238
+ function mergeLines(hunk, mineOffset, mineLines, theirOffset, theirLines) {
1239
+ // This will generally result in a conflicted hunk, but there are cases where the context
1240
+ // is the only overlap where we can successfully merge the content here.
1241
+ var mine = {
1242
+ offset: mineOffset,
1243
+ lines: mineLines,
1244
+ index: 0
1245
+ },
1246
+ their = {
1247
+ offset: theirOffset,
1248
+ lines: theirLines,
1249
+ index: 0
1250
+ }; // Handle any leading content
1251
+
1252
+ insertLeading(hunk, mine, their);
1253
+ insertLeading(hunk, their, mine); // Now in the overlap content. Scan through and select the best changes from each.
1254
+
1255
+ while (mine.index < mine.lines.length && their.index < their.lines.length) {
1256
+ var mineCurrent = mine.lines[mine.index],
1257
+ theirCurrent = their.lines[their.index];
1258
+
1259
+ if ((mineCurrent[0] === '-' || mineCurrent[0] === '+') && (theirCurrent[0] === '-' || theirCurrent[0] === '+')) {
1260
+ // Both modified ...
1261
+ mutualChange(hunk, mine, their);
1262
+ } else if (mineCurrent[0] === '+' && theirCurrent[0] === ' ') {
1263
+ var _hunk$lines;
1264
+
1265
+ // Mine inserted
1266
+ (_hunk$lines = hunk.lines).push.apply(_hunk$lines, _toConsumableArray(collectChange(mine)));
1267
+ } else if (theirCurrent[0] === '+' && mineCurrent[0] === ' ') {
1268
+ var _hunk$lines2;
1269
+
1270
+ // Theirs inserted
1271
+ (_hunk$lines2 = hunk.lines).push.apply(_hunk$lines2, _toConsumableArray(collectChange(their)));
1272
+ } else if (mineCurrent[0] === '-' && theirCurrent[0] === ' ') {
1273
+ // Mine removed or edited
1274
+ removal(hunk, mine, their);
1275
+ } else if (theirCurrent[0] === '-' && mineCurrent[0] === ' ') {
1276
+ // Their removed or edited
1277
+ removal(hunk, their, mine, true);
1278
+ } else if (mineCurrent === theirCurrent) {
1279
+ // Context identity
1280
+ hunk.lines.push(mineCurrent);
1281
+ mine.index++;
1282
+ their.index++;
1283
+ } else {
1284
+ // Context mismatch
1285
+ conflict(hunk, collectChange(mine), collectChange(their));
1286
+ }
1287
+ } // Now push anything that may be remaining
1288
+
1289
+
1290
+ insertTrailing(hunk, mine);
1291
+ insertTrailing(hunk, their);
1292
+ calcLineCount(hunk);
1293
+ }
1294
+
1295
+ function mutualChange(hunk, mine, their) {
1296
+ var myChanges = collectChange(mine),
1297
+ theirChanges = collectChange(their);
1298
+
1299
+ if (allRemoves(myChanges) && allRemoves(theirChanges)) {
1300
+ // Special case for remove changes that are supersets of one another
1301
+ if (arrayStartsWith(myChanges, theirChanges) && skipRemoveSuperset(their, myChanges, myChanges.length - theirChanges.length)) {
1302
+ var _hunk$lines3;
1303
+
1304
+ (_hunk$lines3 = hunk.lines).push.apply(_hunk$lines3, _toConsumableArray(myChanges));
1305
+
1306
+ return;
1307
+ } else if (arrayStartsWith(theirChanges, myChanges) && skipRemoveSuperset(mine, theirChanges, theirChanges.length - myChanges.length)) {
1308
+ var _hunk$lines4;
1309
+
1310
+ (_hunk$lines4 = hunk.lines).push.apply(_hunk$lines4, _toConsumableArray(theirChanges));
1311
+
1312
+ return;
1313
+ }
1314
+ } else if (arrayEqual(myChanges, theirChanges)) {
1315
+ var _hunk$lines5;
1316
+
1317
+ (_hunk$lines5 = hunk.lines).push.apply(_hunk$lines5, _toConsumableArray(myChanges));
1318
+
1319
+ return;
1320
+ }
1321
+
1322
+ conflict(hunk, myChanges, theirChanges);
1323
+ }
1324
+
1325
+ function removal(hunk, mine, their, swap) {
1326
+ var myChanges = collectChange(mine),
1327
+ theirChanges = collectContext(their, myChanges);
1328
+
1329
+ if (theirChanges.merged) {
1330
+ var _hunk$lines6;
1331
+
1332
+ (_hunk$lines6 = hunk.lines).push.apply(_hunk$lines6, _toConsumableArray(theirChanges.merged));
1333
+ } else {
1334
+ conflict(hunk, swap ? theirChanges : myChanges, swap ? myChanges : theirChanges);
1335
+ }
1336
+ }
1337
+
1338
+ function conflict(hunk, mine, their) {
1339
+ hunk.conflict = true;
1340
+ hunk.lines.push({
1341
+ conflict: true,
1342
+ mine: mine,
1343
+ theirs: their
1344
+ });
1345
+ }
1346
+
1347
+ function insertLeading(hunk, insert, their) {
1348
+ while (insert.offset < their.offset && insert.index < insert.lines.length) {
1349
+ var line = insert.lines[insert.index++];
1350
+ hunk.lines.push(line);
1351
+ insert.offset++;
1352
+ }
1353
+ }
1354
+
1355
+ function insertTrailing(hunk, insert) {
1356
+ while (insert.index < insert.lines.length) {
1357
+ var line = insert.lines[insert.index++];
1358
+ hunk.lines.push(line);
1359
+ }
1360
+ }
1361
+
1362
+ function collectChange(state) {
1363
+ var ret = [],
1364
+ operation = state.lines[state.index][0];
1365
+
1366
+ while (state.index < state.lines.length) {
1367
+ var line = state.lines[state.index]; // Group additions that are immediately after subtractions and treat them as one "atomic" modify change.
1368
+
1369
+ if (operation === '-' && line[0] === '+') {
1370
+ operation = '+';
1371
+ }
1372
+
1373
+ if (operation === line[0]) {
1374
+ ret.push(line);
1375
+ state.index++;
1376
+ } else {
1377
+ break;
1378
+ }
1379
+ }
1380
+
1381
+ return ret;
1382
+ }
1383
+
1384
+ function collectContext(state, matchChanges) {
1385
+ var changes = [],
1386
+ merged = [],
1387
+ matchIndex = 0,
1388
+ contextChanges = false,
1389
+ conflicted = false;
1390
+
1391
+ while (matchIndex < matchChanges.length && state.index < state.lines.length) {
1392
+ var change = state.lines[state.index],
1393
+ match = matchChanges[matchIndex]; // Once we've hit our add, then we are done
1394
+
1395
+ if (match[0] === '+') {
1396
+ break;
1397
+ }
1398
+
1399
+ contextChanges = contextChanges || change[0] !== ' ';
1400
+ merged.push(match);
1401
+ matchIndex++; // Consume any additions in the other block as a conflict to attempt
1402
+ // to pull in the remaining context after this
1403
+
1404
+ if (change[0] === '+') {
1405
+ conflicted = true;
1406
+
1407
+ while (change[0] === '+') {
1408
+ changes.push(change);
1409
+ change = state.lines[++state.index];
1410
+ }
1411
+ }
1412
+
1413
+ if (match.substr(1) === change.substr(1)) {
1414
+ changes.push(change);
1415
+ state.index++;
1416
+ } else {
1417
+ conflicted = true;
1418
+ }
1419
+ }
1420
+
1421
+ if ((matchChanges[matchIndex] || '')[0] === '+' && contextChanges) {
1422
+ conflicted = true;
1423
+ }
1424
+
1425
+ if (conflicted) {
1426
+ return changes;
1427
+ }
1428
+
1429
+ while (matchIndex < matchChanges.length) {
1430
+ merged.push(matchChanges[matchIndex++]);
1431
+ }
1432
+
1433
+ return {
1434
+ merged: merged,
1435
+ changes: changes
1436
+ };
1437
+ }
1438
+
1439
+ function allRemoves(changes) {
1440
+ return changes.reduce(function (prev, change) {
1441
+ return prev && change[0] === '-';
1442
+ }, true);
1443
+ }
1444
+
1445
+ function skipRemoveSuperset(state, removeChanges, delta) {
1446
+ for (var i = 0; i < delta; i++) {
1447
+ var changeContent = removeChanges[removeChanges.length - delta + i].substr(1);
1448
+
1449
+ if (state.lines[state.index + i] !== ' ' + changeContent) {
1450
+ return false;
1451
+ }
1452
+ }
1453
+
1454
+ state.index += delta;
1455
+ return true;
1456
+ }
1457
+
1458
+ function calcOldNewLineCount(lines) {
1459
+ var oldLines = 0;
1460
+ var newLines = 0;
1461
+ lines.forEach(function (line) {
1462
+ if (typeof line !== 'string') {
1463
+ var myCount = calcOldNewLineCount(line.mine);
1464
+ var theirCount = calcOldNewLineCount(line.theirs);
1465
+
1466
+ if (oldLines !== undefined) {
1467
+ if (myCount.oldLines === theirCount.oldLines) {
1468
+ oldLines += myCount.oldLines;
1469
+ } else {
1470
+ oldLines = undefined;
1471
+ }
1472
+ }
1473
+
1474
+ if (newLines !== undefined) {
1475
+ if (myCount.newLines === theirCount.newLines) {
1476
+ newLines += myCount.newLines;
1477
+ } else {
1478
+ newLines = undefined;
1479
+ }
1480
+ }
1481
+ } else {
1482
+ if (newLines !== undefined && (line[0] === '+' || line[0] === ' ')) {
1483
+ newLines++;
1484
+ }
1485
+
1486
+ if (oldLines !== undefined && (line[0] === '-' || line[0] === ' ')) {
1487
+ oldLines++;
1488
+ }
1489
+ }
1490
+ });
1491
+ return {
1492
+ oldLines: oldLines,
1493
+ newLines: newLines
1494
+ };
1495
+ }
1496
+
1497
+ // See: http://code.google.com/p/google-diff-match-patch/wiki/API
1498
+ function convertChangesToDMP(changes) {
1499
+ var ret = [],
1500
+ change,
1501
+ operation;
1502
+
1503
+ for (var i = 0; i < changes.length; i++) {
1504
+ change = changes[i];
1505
+
1506
+ if (change.added) {
1507
+ operation = 1;
1508
+ } else if (change.removed) {
1509
+ operation = -1;
1510
+ } else {
1511
+ operation = 0;
1512
+ }
1513
+
1514
+ ret.push([operation, change.value]);
1515
+ }
1516
+
1517
+ return ret;
1518
+ }
1519
+
1520
+ function convertChangesToXML(changes) {
1521
+ var ret = [];
1522
+
1523
+ for (var i = 0; i < changes.length; i++) {
1524
+ var change = changes[i];
1525
+
1526
+ if (change.added) {
1527
+ ret.push('<ins>');
1528
+ } else if (change.removed) {
1529
+ ret.push('<del>');
1530
+ }
1531
+
1532
+ ret.push(escapeHTML(change.value));
1533
+
1534
+ if (change.added) {
1535
+ ret.push('</ins>');
1536
+ } else if (change.removed) {
1537
+ ret.push('</del>');
1538
+ }
1539
+ }
1540
+
1541
+ return ret.join('');
1542
+ }
1543
+
1544
+ function escapeHTML(s) {
1545
+ var n = s;
1546
+ n = n.replace(/&/g, '&amp;');
1547
+ n = n.replace(/</g, '&lt;');
1548
+ n = n.replace(/>/g, '&gt;');
1549
+ n = n.replace(/"/g, '&quot;');
1550
+ return n;
1551
+ }
1552
+
1553
+ export { Diff, applyPatch, applyPatches, canonicalize, convertChangesToDMP, convertChangesToXML, createPatch, createTwoFilesPatch, diffArrays, diffChars, diffCss, diffJson, diffLines, diffSentences, diffTrimmedLines, diffWords, diffWordsWithSpace, merge, parsePatch, structuredPatch };