impact-nova 3.0.0-alpha.0 → 3.0.0-alpha.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 (212) hide show
  1. package/dist/_virtual/_commonjsHelpers.js +6 -0
  2. package/dist/_virtual/index.js +7 -0
  3. package/dist/_virtual/index2.js +7 -0
  4. package/dist/_virtual/index3.js +4 -0
  5. package/dist/_virtual/utilities.js +4 -0
  6. package/dist/components/data/ag-grid-react/ag-grid.types.d.ts +5 -0
  7. package/dist/components/data/ag-grid-react/cell-renderers/cell-renderer-utils.js +12 -10
  8. package/dist/components/data/ag-grid-react/cell-renderers/select-display-renderer.d.ts +8 -0
  9. package/dist/components/data/ag-grid-react/cell-renderers/select-display-renderer.js +56 -42
  10. package/dist/components/data/ag-grid-react/cell-renderers/types.d.ts +4 -0
  11. package/dist/components/data/ag-grid-react/index.d.ts +1 -1
  12. package/dist/components/data/ag-grid-react/index.js +115 -111
  13. package/dist/components/flows/iris-chat/iris-chat-markdown.js +17 -17
  14. package/dist/components/forms/select/components/SelectTriggerValue.js +6 -6
  15. package/dist/impact-nova-components.css +85 -0
  16. package/dist/impact-nova.css +1 -1
  17. package/dist/lib/overflow/is-text-overflowing.js +24 -6
  18. package/dist/llms/rules/installation.js +1 -1
  19. package/dist/llms/rules/requirements.js +1 -1
  20. package/dist/node_modules/@ungap/structured-clone/esm/deserialize.js +85 -0
  21. package/dist/node_modules/@ungap/structured-clone/esm/index.js +11 -0
  22. package/dist/node_modules/@ungap/structured-clone/esm/serialize.js +110 -0
  23. package/dist/node_modules/@ungap/structured-clone/esm/types.js +13 -0
  24. package/dist/node_modules/bail/index.js +7 -0
  25. package/dist/node_modules/ccount/index.js +12 -0
  26. package/dist/node_modules/comma-separated-tokens/index.js +9 -0
  27. package/dist/node_modules/decode-named-character-reference/index.dom.js +10 -0
  28. package/dist/node_modules/devlop/lib/default.js +8 -0
  29. package/dist/node_modules/estree-util-is-identifier-name/lib/index.js +7 -0
  30. package/dist/node_modules/extend/index.js +43 -0
  31. package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +302 -0
  32. package/dist/node_modules/hast-util-whitespace/lib/index.js +10 -0
  33. package/dist/node_modules/html-url-attributes/lib/index.js +26 -0
  34. package/dist/node_modules/inline-style-parser/cjs/index.js +93 -0
  35. package/dist/node_modules/is-plain-obj/index.js +9 -0
  36. package/dist/node_modules/longest-streak/index.js +12 -0
  37. package/dist/node_modules/markdown-table/index.js +75 -0
  38. package/dist/node_modules/mdast-util-find-and-replace/lib/index.js +78 -0
  39. package/dist/node_modules/mdast-util-find-and-replace/node_modules/escape-string-regexp/index.js +8 -0
  40. package/dist/node_modules/mdast-util-from-markdown/lib/index.js +632 -0
  41. package/dist/node_modules/mdast-util-gfm/lib/index.js +29 -0
  42. package/dist/node_modules/mdast-util-gfm-autolink-literal/lib/index.js +130 -0
  43. package/dist/node_modules/mdast-util-gfm-footnote/lib/index.js +95 -0
  44. package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.js +54 -0
  45. package/dist/node_modules/mdast-util-gfm-table/lib/index.js +135 -0
  46. package/dist/node_modules/mdast-util-gfm-task-list-item/lib/index.js +58 -0
  47. package/dist/node_modules/mdast-util-phrasing/lib/index.js +30 -0
  48. package/dist/node_modules/mdast-util-to-hast/lib/footer.js +90 -0
  49. package/dist/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js +12 -0
  50. package/dist/node_modules/mdast-util-to-hast/lib/handlers/break.js +8 -0
  51. package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.js +15 -0
  52. package/dist/node_modules/mdast-util-to-hast/lib/handlers/delete.js +12 -0
  53. package/dist/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js +12 -0
  54. package/dist/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js +28 -0
  55. package/dist/node_modules/mdast-util-to-hast/lib/handlers/heading.js +12 -0
  56. package/dist/node_modules/mdast-util-to-hast/lib/handlers/html.js +9 -0
  57. package/dist/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js +14 -0
  58. package/dist/node_modules/mdast-util-to-hast/lib/handlers/image.js +10 -0
  59. package/dist/node_modules/mdast-util-to-hast/lib/handlers/index.js +58 -0
  60. package/dist/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js +14 -0
  61. package/dist/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js +19 -0
  62. package/dist/node_modules/mdast-util-to-hast/lib/handlers/link.js +15 -0
  63. package/dist/node_modules/mdast-util-to-hast/lib/handlers/list-item.js +42 -0
  64. package/dist/node_modules/mdast-util-to-hast/lib/handlers/list.js +21 -0
  65. package/dist/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js +12 -0
  66. package/dist/node_modules/mdast-util-to-hast/lib/handlers/root.js +7 -0
  67. package/dist/node_modules/mdast-util-to-hast/lib/handlers/strong.js +12 -0
  68. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js +13 -0
  69. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-row.js +21 -0
  70. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table.js +32 -0
  71. package/dist/node_modules/mdast-util-to-hast/lib/handlers/text.js +8 -0
  72. package/dist/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js +12 -0
  73. package/dist/node_modules/mdast-util-to-hast/lib/index.js +10 -0
  74. package/dist/node_modules/mdast-util-to-hast/lib/revert.js +13 -0
  75. package/dist/node_modules/mdast-util-to-hast/lib/state.js +104 -0
  76. package/dist/node_modules/mdast-util-to-markdown/lib/handle/blockquote.js +15 -0
  77. package/dist/node_modules/mdast-util-to-markdown/lib/handle/break.js +15 -0
  78. package/dist/node_modules/mdast-util-to-markdown/lib/handle/code.js +44 -0
  79. package/dist/node_modules/mdast-util-to-markdown/lib/handle/definition.js +34 -0
  80. package/dist/node_modules/mdast-util-to-markdown/lib/handle/emphasis.js +20 -0
  81. package/dist/node_modules/mdast-util-to-markdown/lib/handle/heading.js +35 -0
  82. package/dist/node_modules/mdast-util-to-markdown/lib/handle/html.js +10 -0
  83. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image-reference.js +29 -0
  84. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image.js +33 -0
  85. package/dist/node_modules/mdast-util-to-markdown/lib/handle/index.js +44 -0
  86. package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js +22 -0
  87. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link-reference.js +29 -0
  88. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link.js +52 -0
  89. package/dist/node_modules/mdast-util-to-markdown/lib/handle/list-item.js +22 -0
  90. package/dist/node_modules/mdast-util-to-markdown/lib/handle/list.js +35 -0
  91. package/dist/node_modules/mdast-util-to-markdown/lib/handle/paragraph.js +7 -0
  92. package/dist/node_modules/mdast-util-to-markdown/lib/handle/root.js +11 -0
  93. package/dist/node_modules/mdast-util-to-markdown/lib/handle/strong.js +20 -0
  94. package/dist/node_modules/mdast-util-to-markdown/lib/handle/text.js +11 -0
  95. package/dist/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js +9 -0
  96. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js +11 -0
  97. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js +18 -0
  98. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js +11 -0
  99. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js +11 -0
  100. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-fence.js +11 -0
  101. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js +11 -0
  102. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-quote.js +11 -0
  103. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js +11 -0
  104. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule.js +11 -0
  105. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-strong.js +11 -0
  106. package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.js +6 -0
  107. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js +9 -0
  108. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js +13 -0
  109. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js +15 -0
  110. package/dist/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js +15 -0
  111. package/dist/node_modules/mdast-util-to-string/lib/index.js +29 -0
  112. package/dist/node_modules/micromark/lib/constructs.js +85 -0
  113. package/dist/node_modules/micromark/lib/create-tokenizer.js +225 -0
  114. package/dist/node_modules/micromark/lib/initialize/content.js +37 -0
  115. package/dist/node_modules/micromark/lib/initialize/document.js +128 -0
  116. package/dist/node_modules/micromark/lib/initialize/flow.js +33 -0
  117. package/dist/node_modules/micromark/lib/initialize/text.js +98 -0
  118. package/dist/node_modules/micromark/lib/parse.js +32 -0
  119. package/dist/node_modules/micromark/lib/postprocess.js +9 -0
  120. package/dist/node_modules/micromark/lib/preprocess.js +44 -0
  121. package/dist/node_modules/micromark-core-commonmark/lib/attention.js +87 -0
  122. package/dist/node_modules/micromark-core-commonmark/lib/autolink.js +43 -0
  123. package/dist/node_modules/micromark-core-commonmark/lib/blank-line.js +18 -0
  124. package/dist/node_modules/micromark-core-commonmark/lib/block-quote.js +42 -0
  125. package/dist/node_modules/micromark-core-commonmark/lib/character-escape.js +17 -0
  126. package/dist/node_modules/micromark-core-commonmark/lib/character-reference.js +30 -0
  127. package/dist/node_modules/micromark-core-commonmark/lib/code-fenced.js +82 -0
  128. package/dist/node_modules/micromark-core-commonmark/lib/code-indented.js +37 -0
  129. package/dist/node_modules/micromark-core-commonmark/lib/code-text.js +45 -0
  130. package/dist/node_modules/micromark-core-commonmark/lib/content.js +50 -0
  131. package/dist/node_modules/micromark-core-commonmark/lib/definition.js +80 -0
  132. package/dist/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +17 -0
  133. package/dist/node_modules/micromark-core-commonmark/lib/heading-atx.js +50 -0
  134. package/dist/node_modules/micromark-core-commonmark/lib/html-flow.js +132 -0
  135. package/dist/node_modules/micromark-core-commonmark/lib/html-text.js +102 -0
  136. package/dist/node_modules/micromark-core-commonmark/lib/label-end.js +154 -0
  137. package/dist/node_modules/micromark-core-commonmark/lib/label-start-image.js +23 -0
  138. package/dist/node_modules/micromark-core-commonmark/lib/label-start-link.js +20 -0
  139. package/dist/node_modules/micromark-core-commonmark/lib/line-ending.js +14 -0
  140. package/dist/node_modules/micromark-core-commonmark/lib/list.js +90 -0
  141. package/dist/node_modules/micromark-core-commonmark/lib/partial-non-lazy-continuation.js +17 -0
  142. package/dist/node_modules/micromark-core-commonmark/lib/setext-underline.js +59 -0
  143. package/dist/node_modules/micromark-core-commonmark/lib/thematic-break.js +25 -0
  144. package/dist/node_modules/micromark-extension-gfm/index.js +18 -0
  145. package/dist/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js +193 -0
  146. package/dist/node_modules/micromark-extension-gfm-footnote/lib/syntax.js +192 -0
  147. package/dist/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.js +67 -0
  148. package/dist/node_modules/micromark-extension-gfm-table/lib/edit-map.js +75 -0
  149. package/dist/node_modules/micromark-extension-gfm-table/lib/infer.js +23 -0
  150. package/dist/node_modules/micromark-extension-gfm-table/lib/syntax.js +149 -0
  151. package/dist/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.js +45 -0
  152. package/dist/node_modules/micromark-factory-destination/index.js +31 -0
  153. package/dist/node_modules/micromark-factory-label/index.js +28 -0
  154. package/dist/node_modules/micromark-factory-space/index.js +29 -0
  155. package/dist/node_modules/micromark-factory-title/index.js +26 -0
  156. package/dist/node_modules/micromark-factory-whitespace/index.js +12 -0
  157. package/dist/node_modules/micromark-util-character/index.js +39 -0
  158. package/dist/node_modules/micromark-util-chunked/index.js +16 -0
  159. package/dist/node_modules/micromark-util-classify-character/index.js +10 -0
  160. package/dist/node_modules/micromark-util-combine-extensions/index.js +36 -0
  161. package/dist/node_modules/micromark-util-decode-numeric-character-reference/index.js +16 -0
  162. package/dist/node_modules/micromark-util-decode-string/index.js +18 -0
  163. package/dist/node_modules/micromark-util-edit-map/index.js +82 -0
  164. package/dist/node_modules/micromark-util-html-tag-name/index.js +68 -0
  165. package/dist/node_modules/micromark-util-normalize-identifier/index.js +6 -0
  166. package/dist/node_modules/micromark-util-resolve-all/index.js +12 -0
  167. package/dist/node_modules/micromark-util-sanitize-uri/index.js +23 -0
  168. package/dist/node_modules/micromark-util-subtokenize/index.js +55 -0
  169. package/dist/node_modules/micromark-util-subtokenize/lib/splice-buffer.js +175 -0
  170. package/dist/node_modules/property-information/index.js +12 -0
  171. package/dist/node_modules/property-information/lib/aria.js +61 -0
  172. package/dist/node_modules/property-information/lib/find.js +33 -0
  173. package/dist/node_modules/property-information/lib/hast-to-react.js +22 -0
  174. package/dist/node_modules/property-information/lib/html.js +378 -0
  175. package/dist/node_modules/property-information/lib/normalize.js +6 -0
  176. package/dist/node_modules/property-information/lib/svg.js +568 -0
  177. package/dist/node_modules/property-information/lib/util/case-insensitive-transform.js +7 -0
  178. package/dist/node_modules/property-information/lib/util/case-sensitive-transform.js +6 -0
  179. package/dist/node_modules/property-information/lib/util/create.js +19 -0
  180. package/dist/node_modules/property-information/lib/util/defined-info.js +36 -0
  181. package/dist/node_modules/property-information/lib/util/info.js +28 -0
  182. package/dist/node_modules/property-information/lib/util/merge.js +10 -0
  183. package/dist/node_modules/property-information/lib/util/schema.js +21 -0
  184. package/dist/node_modules/property-information/lib/util/types.js +14 -0
  185. package/dist/node_modules/property-information/lib/xlink.js +19 -0
  186. package/dist/node_modules/property-information/lib/xml.js +11 -0
  187. package/dist/node_modules/property-information/lib/xmlns.js +11 -0
  188. package/dist/node_modules/react-markdown/lib/index.js +102 -0
  189. package/dist/node_modules/remark-gfm/lib/index.js +13 -0
  190. package/dist/node_modules/remark-parse/lib/index.js +19 -0
  191. package/dist/node_modules/remark-rehype/lib/index.js +18 -0
  192. package/dist/node_modules/space-separated-tokens/index.js +6 -0
  193. package/dist/node_modules/style-to-js/cjs/index.js +20 -0
  194. package/dist/node_modules/style-to-js/cjs/utilities.js +19 -0
  195. package/dist/node_modules/style-to-object/cjs/index.js +28 -0
  196. package/dist/node_modules/trim-lines/index.js +28 -0
  197. package/dist/node_modules/trough/lib/index.js +60 -0
  198. package/dist/node_modules/unified/lib/callable-instance.js +25 -0
  199. package/dist/node_modules/unified/lib/index.js +529 -0
  200. package/dist/node_modules/unist-util-is/lib/index.js +91 -0
  201. package/dist/node_modules/unist-util-position/lib/index.js +23 -0
  202. package/dist/node_modules/unist-util-stringify-position/lib/index.js +15 -0
  203. package/dist/node_modules/unist-util-visit/lib/index.js +16 -0
  204. package/dist/node_modules/unist-util-visit-parents/lib/color.js +6 -0
  205. package/dist/node_modules/unist-util-visit-parents/lib/index.js +56 -0
  206. package/dist/node_modules/vfile/lib/index.js +406 -0
  207. package/dist/node_modules/vfile/lib/minpath.browser.js +112 -0
  208. package/dist/node_modules/vfile/lib/minproc.browser.js +7 -0
  209. package/dist/node_modules/vfile/lib/minurl.browser.js +41 -0
  210. package/dist/node_modules/vfile/lib/minurl.shared.js +7 -0
  211. package/dist/node_modules/vfile-message/lib/index.js +91 -0
  212. package/package.json +1 -1
@@ -0,0 +1,175 @@
1
+ class n {
2
+ /**
3
+ * @param {ReadonlyArray<T> | null | undefined} [initial]
4
+ * Initial items (optional).
5
+ * @returns
6
+ * Splice buffer.
7
+ */
8
+ constructor(t) {
9
+ this.left = t ? [...t] : [], this.right = [];
10
+ }
11
+ /**
12
+ * Array access;
13
+ * does not move the cursor.
14
+ *
15
+ * @param {number} index
16
+ * Index.
17
+ * @return {T}
18
+ * Item.
19
+ */
20
+ get(t) {
21
+ if (t < 0 || t >= this.left.length + this.right.length)
22
+ throw new RangeError("Cannot access index `" + t + "` in a splice buffer of size `" + (this.left.length + this.right.length) + "`");
23
+ return t < this.left.length ? this.left[t] : this.right[this.right.length - t + this.left.length - 1];
24
+ }
25
+ /**
26
+ * The length of the splice buffer, one greater than the largest index in the
27
+ * array.
28
+ */
29
+ get length() {
30
+ return this.left.length + this.right.length;
31
+ }
32
+ /**
33
+ * Remove and return `list[0]`;
34
+ * moves the cursor to `0`.
35
+ *
36
+ * @returns {T | undefined}
37
+ * Item, optional.
38
+ */
39
+ shift() {
40
+ return this.setCursor(0), this.right.pop();
41
+ }
42
+ /**
43
+ * Slice the buffer to get an array;
44
+ * does not move the cursor.
45
+ *
46
+ * @param {number} start
47
+ * Start.
48
+ * @param {number | null | undefined} [end]
49
+ * End (optional).
50
+ * @returns {Array<T>}
51
+ * Array of items.
52
+ */
53
+ slice(t, e) {
54
+ const h = e ?? Number.POSITIVE_INFINITY;
55
+ return h < this.left.length ? this.left.slice(t, h) : t > this.left.length ? this.right.slice(this.right.length - h + this.left.length, this.right.length - t + this.left.length).reverse() : this.left.slice(t).concat(this.right.slice(this.right.length - h + this.left.length).reverse());
56
+ }
57
+ /**
58
+ * Mimics the behavior of Array.prototype.splice() except for the change of
59
+ * interface necessary to avoid segfaults when patching in very large arrays.
60
+ *
61
+ * This operation moves cursor is moved to `start` and results in the cursor
62
+ * placed after any inserted items.
63
+ *
64
+ * @param {number} start
65
+ * Start;
66
+ * zero-based index at which to start changing the array;
67
+ * negative numbers count backwards from the end of the array and values
68
+ * that are out-of bounds are clamped to the appropriate end of the array.
69
+ * @param {number | null | undefined} [deleteCount=0]
70
+ * Delete count (default: `0`);
71
+ * maximum number of elements to delete, starting from start.
72
+ * @param {Array<T> | null | undefined} [items=[]]
73
+ * Items to include in place of the deleted items (default: `[]`).
74
+ * @return {Array<T>}
75
+ * Any removed items.
76
+ */
77
+ splice(t, e, h) {
78
+ const r = e || 0;
79
+ this.setCursor(Math.trunc(t));
80
+ const l = this.right.splice(this.right.length - r, Number.POSITIVE_INFINITY);
81
+ return h && s(this.left, h), l.reverse();
82
+ }
83
+ /**
84
+ * Remove and return the highest-numbered item in the array, so
85
+ * `list[list.length - 1]`;
86
+ * Moves the cursor to `length`.
87
+ *
88
+ * @returns {T | undefined}
89
+ * Item, optional.
90
+ */
91
+ pop() {
92
+ return this.setCursor(Number.POSITIVE_INFINITY), this.left.pop();
93
+ }
94
+ /**
95
+ * Inserts a single item to the high-numbered side of the array;
96
+ * moves the cursor to `length`.
97
+ *
98
+ * @param {T} item
99
+ * Item.
100
+ * @returns {undefined}
101
+ * Nothing.
102
+ */
103
+ push(t) {
104
+ this.setCursor(Number.POSITIVE_INFINITY), this.left.push(t);
105
+ }
106
+ /**
107
+ * Inserts many items to the high-numbered side of the array.
108
+ * Moves the cursor to `length`.
109
+ *
110
+ * @param {Array<T>} items
111
+ * Items.
112
+ * @returns {undefined}
113
+ * Nothing.
114
+ */
115
+ pushMany(t) {
116
+ this.setCursor(Number.POSITIVE_INFINITY), s(this.left, t);
117
+ }
118
+ /**
119
+ * Inserts a single item to the low-numbered side of the array;
120
+ * Moves the cursor to `0`.
121
+ *
122
+ * @param {T} item
123
+ * Item.
124
+ * @returns {undefined}
125
+ * Nothing.
126
+ */
127
+ unshift(t) {
128
+ this.setCursor(0), this.right.push(t);
129
+ }
130
+ /**
131
+ * Inserts many items to the low-numbered side of the array;
132
+ * moves the cursor to `0`.
133
+ *
134
+ * @param {Array<T>} items
135
+ * Items.
136
+ * @returns {undefined}
137
+ * Nothing.
138
+ */
139
+ unshiftMany(t) {
140
+ this.setCursor(0), s(this.right, t.reverse());
141
+ }
142
+ /**
143
+ * Move the cursor to a specific position in the array. Requires
144
+ * time proportional to the distance moved.
145
+ *
146
+ * If `n < 0`, the cursor will end up at the beginning.
147
+ * If `n > length`, the cursor will end up at the end.
148
+ *
149
+ * @param {number} n
150
+ * Position.
151
+ * @return {undefined}
152
+ * Nothing.
153
+ */
154
+ setCursor(t) {
155
+ if (!(t === this.left.length || t > this.left.length && this.right.length === 0 || t < 0 && this.left.length === 0))
156
+ if (t < this.left.length) {
157
+ const e = this.left.splice(t, Number.POSITIVE_INFINITY);
158
+ s(this.right, e.reverse());
159
+ } else {
160
+ const e = this.right.splice(this.left.length + this.right.length - t, Number.POSITIVE_INFINITY);
161
+ s(this.left, e.reverse());
162
+ }
163
+ }
164
+ }
165
+ function s(i, t) {
166
+ let e = 0;
167
+ if (t.length < 1e4)
168
+ i.push(...t);
169
+ else
170
+ for (; e < t.length; )
171
+ i.push(...t.slice(e, e + 1e4)), e += 1e4;
172
+ }
173
+ export {
174
+ n as SpliceBuffer
175
+ };
@@ -0,0 +1,12 @@
1
+ import { merge as m } from "./lib/util/merge.js";
2
+ import { aria as o } from "./lib/aria.js";
3
+ import { html as s } from "./lib/html.js";
4
+ import { svg as p } from "./lib/svg.js";
5
+ import { xlink as r } from "./lib/xlink.js";
6
+ import { xmlns as t } from "./lib/xmlns.js";
7
+ import { xml as i } from "./lib/xml.js";
8
+ const x = m([o, s, r, t, i], "html"), e = m([o, p, r, t, i], "svg");
9
+ export {
10
+ x as html,
11
+ e as svg
12
+ };
@@ -0,0 +1,61 @@
1
+ import { create as l } from "./util/create.js";
2
+ import { number as r, booleanish as a, spaceSeparated as i } from "./util/types.js";
3
+ const u = l({
4
+ properties: {
5
+ ariaActiveDescendant: null,
6
+ ariaAtomic: a,
7
+ ariaAutoComplete: null,
8
+ ariaBusy: a,
9
+ ariaChecked: a,
10
+ ariaColCount: r,
11
+ ariaColIndex: r,
12
+ ariaColSpan: r,
13
+ ariaControls: i,
14
+ ariaCurrent: null,
15
+ ariaDescribedBy: i,
16
+ ariaDetails: null,
17
+ ariaDisabled: a,
18
+ ariaDropEffect: i,
19
+ ariaErrorMessage: null,
20
+ ariaExpanded: a,
21
+ ariaFlowTo: i,
22
+ ariaGrabbed: a,
23
+ ariaHasPopup: null,
24
+ ariaHidden: a,
25
+ ariaInvalid: null,
26
+ ariaKeyShortcuts: null,
27
+ ariaLabel: null,
28
+ ariaLabelledBy: i,
29
+ ariaLevel: r,
30
+ ariaLive: null,
31
+ ariaModal: a,
32
+ ariaMultiLine: a,
33
+ ariaMultiSelectable: a,
34
+ ariaOrientation: null,
35
+ ariaOwns: i,
36
+ ariaPlaceholder: null,
37
+ ariaPosInSet: r,
38
+ ariaPressed: a,
39
+ ariaReadOnly: a,
40
+ ariaRelevant: null,
41
+ ariaRequired: a,
42
+ ariaRoleDescription: i,
43
+ ariaRowCount: r,
44
+ ariaRowIndex: r,
45
+ ariaRowSpan: r,
46
+ ariaSelected: a,
47
+ ariaSetSize: r,
48
+ ariaSort: null,
49
+ ariaValueMax: r,
50
+ ariaValueMin: r,
51
+ ariaValueNow: r,
52
+ ariaValueText: null,
53
+ role: null
54
+ },
55
+ transform(n, e) {
56
+ return e === "role" ? e : "aria-" + e.slice(4).toLowerCase();
57
+ }
58
+ });
59
+ export {
60
+ u as aria
61
+ };
@@ -0,0 +1,33 @@
1
+ import { DefinedInfo as s } from "./util/defined-info.js";
2
+ import { Info as p } from "./util/info.js";
3
+ import { normalize as f } from "./normalize.js";
4
+ const l = /[A-Z]/g, c = /-[a-z]/g, d = /^data[-\w.:]+$/i;
5
+ function y(r, t) {
6
+ const o = f(t);
7
+ let i = t, a = p;
8
+ if (o in r.normal)
9
+ return r.property[r.normal[o]];
10
+ if (o.length > 4 && o.slice(0, 4) === "data" && d.test(t)) {
11
+ if (t.charAt(4) === "-") {
12
+ const e = t.slice(5).replace(c, h);
13
+ i = "data" + e.charAt(0).toUpperCase() + e.slice(1);
14
+ } else {
15
+ const e = t.slice(4);
16
+ if (!c.test(e)) {
17
+ let n = e.replace(l, m);
18
+ n.charAt(0) !== "-" && (n = "-" + n), t = "data" + n;
19
+ }
20
+ }
21
+ a = s;
22
+ }
23
+ return new a(i, t);
24
+ }
25
+ function m(r) {
26
+ return "-" + r.toLowerCase();
27
+ }
28
+ function h(r) {
29
+ return r.charAt(1).toUpperCase();
30
+ }
31
+ export {
32
+ y as find
33
+ };
@@ -0,0 +1,22 @@
1
+ const e = {
2
+ classId: "classID",
3
+ dataType: "datatype",
4
+ itemId: "itemID",
5
+ strokeDashArray: "strokeDasharray",
6
+ strokeDashOffset: "strokeDashoffset",
7
+ strokeLineCap: "strokeLinecap",
8
+ strokeLineJoin: "strokeLinejoin",
9
+ strokeMiterLimit: "strokeMiterlimit",
10
+ typeOf: "typeof",
11
+ xLinkActuate: "xlinkActuate",
12
+ xLinkArcRole: "xlinkArcrole",
13
+ xLinkHref: "xlinkHref",
14
+ xLinkRole: "xlinkRole",
15
+ xLinkShow: "xlinkShow",
16
+ xLinkTitle: "xlinkTitle",
17
+ xLinkType: "xlinkType",
18
+ xmlnsXLink: "xmlnsXlink"
19
+ };
20
+ export {
21
+ e as hastToReact
22
+ };
@@ -0,0 +1,378 @@
1
+ import { caseInsensitiveTransform as t } from "./util/case-insensitive-transform.js";
2
+ import { create as r } from "./util/create.js";
3
+ import { number as n, spaceSeparated as e, commaSeparated as u, boolean as l, booleanish as o, overloadedBoolean as a } from "./util/types.js";
4
+ const d = r({
5
+ attributes: {
6
+ acceptcharset: "accept-charset",
7
+ classname: "class",
8
+ htmlfor: "for",
9
+ httpequiv: "http-equiv"
10
+ },
11
+ mustUseProperty: ["checked", "multiple", "muted", "selected"],
12
+ properties: {
13
+ // Standard Properties.
14
+ abbr: null,
15
+ accept: u,
16
+ acceptCharset: e,
17
+ accessKey: e,
18
+ action: null,
19
+ allow: null,
20
+ allowFullScreen: l,
21
+ allowPaymentRequest: l,
22
+ allowUserMedia: l,
23
+ alpha: l,
24
+ alt: null,
25
+ as: null,
26
+ async: l,
27
+ autoCapitalize: null,
28
+ autoComplete: e,
29
+ autoFocus: l,
30
+ autoPlay: l,
31
+ blocking: e,
32
+ capture: null,
33
+ charSet: null,
34
+ checked: l,
35
+ cite: null,
36
+ className: e,
37
+ closedBy: null,
38
+ colorSpace: null,
39
+ cols: n,
40
+ colSpan: n,
41
+ command: null,
42
+ commandFor: null,
43
+ content: null,
44
+ contentEditable: o,
45
+ controls: l,
46
+ controlsList: e,
47
+ coords: n | u,
48
+ crossOrigin: null,
49
+ data: null,
50
+ dateTime: null,
51
+ decoding: null,
52
+ default: l,
53
+ defer: l,
54
+ dir: null,
55
+ dirName: null,
56
+ disabled: l,
57
+ download: a,
58
+ draggable: o,
59
+ encType: null,
60
+ enterKeyHint: null,
61
+ fetchPriority: null,
62
+ form: null,
63
+ formAction: null,
64
+ formEncType: null,
65
+ formMethod: null,
66
+ formNoValidate: l,
67
+ formTarget: null,
68
+ headers: e,
69
+ height: n,
70
+ hidden: a,
71
+ high: n,
72
+ href: null,
73
+ hrefLang: null,
74
+ htmlFor: e,
75
+ httpEquiv: e,
76
+ id: null,
77
+ imageSizes: null,
78
+ imageSrcSet: null,
79
+ inert: l,
80
+ inputMode: null,
81
+ integrity: null,
82
+ is: null,
83
+ isMap: l,
84
+ itemId: null,
85
+ itemProp: e,
86
+ itemRef: e,
87
+ itemScope: l,
88
+ itemType: e,
89
+ kind: null,
90
+ label: null,
91
+ lang: null,
92
+ language: null,
93
+ list: null,
94
+ loading: null,
95
+ loop: l,
96
+ low: n,
97
+ manifest: null,
98
+ max: null,
99
+ maxLength: n,
100
+ media: null,
101
+ method: null,
102
+ min: null,
103
+ minLength: n,
104
+ multiple: l,
105
+ muted: l,
106
+ name: null,
107
+ nonce: null,
108
+ noModule: l,
109
+ noValidate: l,
110
+ onAbort: null,
111
+ onAfterPrint: null,
112
+ onAuxClick: null,
113
+ onBeforeMatch: null,
114
+ onBeforePrint: null,
115
+ onBeforeToggle: null,
116
+ onBeforeUnload: null,
117
+ onBlur: null,
118
+ onCancel: null,
119
+ onCanPlay: null,
120
+ onCanPlayThrough: null,
121
+ onChange: null,
122
+ onClick: null,
123
+ onClose: null,
124
+ onContextLost: null,
125
+ onContextMenu: null,
126
+ onContextRestored: null,
127
+ onCopy: null,
128
+ onCueChange: null,
129
+ onCut: null,
130
+ onDblClick: null,
131
+ onDrag: null,
132
+ onDragEnd: null,
133
+ onDragEnter: null,
134
+ onDragExit: null,
135
+ onDragLeave: null,
136
+ onDragOver: null,
137
+ onDragStart: null,
138
+ onDrop: null,
139
+ onDurationChange: null,
140
+ onEmptied: null,
141
+ onEnded: null,
142
+ onError: null,
143
+ onFocus: null,
144
+ onFormData: null,
145
+ onHashChange: null,
146
+ onInput: null,
147
+ onInvalid: null,
148
+ onKeyDown: null,
149
+ onKeyPress: null,
150
+ onKeyUp: null,
151
+ onLanguageChange: null,
152
+ onLoad: null,
153
+ onLoadedData: null,
154
+ onLoadedMetadata: null,
155
+ onLoadEnd: null,
156
+ onLoadStart: null,
157
+ onMessage: null,
158
+ onMessageError: null,
159
+ onMouseDown: null,
160
+ onMouseEnter: null,
161
+ onMouseLeave: null,
162
+ onMouseMove: null,
163
+ onMouseOut: null,
164
+ onMouseOver: null,
165
+ onMouseUp: null,
166
+ onOffline: null,
167
+ onOnline: null,
168
+ onPageHide: null,
169
+ onPageShow: null,
170
+ onPaste: null,
171
+ onPause: null,
172
+ onPlay: null,
173
+ onPlaying: null,
174
+ onPopState: null,
175
+ onProgress: null,
176
+ onRateChange: null,
177
+ onRejectionHandled: null,
178
+ onReset: null,
179
+ onResize: null,
180
+ onScroll: null,
181
+ onScrollEnd: null,
182
+ onSecurityPolicyViolation: null,
183
+ onSeeked: null,
184
+ onSeeking: null,
185
+ onSelect: null,
186
+ onSlotChange: null,
187
+ onStalled: null,
188
+ onStorage: null,
189
+ onSubmit: null,
190
+ onSuspend: null,
191
+ onTimeUpdate: null,
192
+ onToggle: null,
193
+ onUnhandledRejection: null,
194
+ onUnload: null,
195
+ onVolumeChange: null,
196
+ onWaiting: null,
197
+ onWheel: null,
198
+ open: l,
199
+ optimum: n,
200
+ pattern: null,
201
+ ping: e,
202
+ placeholder: null,
203
+ playsInline: l,
204
+ popover: null,
205
+ popoverTarget: null,
206
+ popoverTargetAction: null,
207
+ poster: null,
208
+ preload: null,
209
+ readOnly: l,
210
+ referrerPolicy: null,
211
+ rel: e,
212
+ required: l,
213
+ reversed: l,
214
+ rows: n,
215
+ rowSpan: n,
216
+ sandbox: e,
217
+ scope: null,
218
+ scoped: l,
219
+ seamless: l,
220
+ selected: l,
221
+ shadowRootClonable: l,
222
+ shadowRootCustomElementRegistry: l,
223
+ shadowRootDelegatesFocus: l,
224
+ shadowRootMode: null,
225
+ shadowRootSerializable: l,
226
+ shape: null,
227
+ size: n,
228
+ sizes: null,
229
+ slot: null,
230
+ span: n,
231
+ spellCheck: o,
232
+ src: null,
233
+ srcDoc: null,
234
+ srcLang: null,
235
+ srcSet: null,
236
+ start: n,
237
+ step: null,
238
+ style: null,
239
+ tabIndex: n,
240
+ target: null,
241
+ title: null,
242
+ translate: null,
243
+ type: null,
244
+ typeMustMatch: l,
245
+ useMap: null,
246
+ value: o,
247
+ width: n,
248
+ wrap: null,
249
+ writingSuggestions: null,
250
+ // Legacy.
251
+ // See: https://html.spec.whatwg.org/#other-elements,-attributes-and-apis
252
+ align: null,
253
+ // Several. Use CSS `text-align` instead,
254
+ aLink: null,
255
+ // `<body>`. Use CSS `a:active {color}` instead
256
+ archive: e,
257
+ // `<object>`. List of URIs to archives
258
+ axis: null,
259
+ // `<td>` and `<th>`. Use `scope` on `<th>`
260
+ background: null,
261
+ // `<body>`. Use CSS `background-image` instead
262
+ bgColor: null,
263
+ // `<body>` and table elements. Use CSS `background-color` instead
264
+ border: n,
265
+ // `<table>`. Use CSS `border-width` instead,
266
+ borderColor: null,
267
+ // `<table>`. Use CSS `border-color` instead,
268
+ bottomMargin: n,
269
+ // `<body>`
270
+ cellPadding: null,
271
+ // `<table>`
272
+ cellSpacing: null,
273
+ // `<table>`
274
+ char: null,
275
+ // Several table elements. When `align=char`, sets the character to align on
276
+ charOff: null,
277
+ // Several table elements. When `char`, offsets the alignment
278
+ classId: null,
279
+ // `<object>`
280
+ clear: null,
281
+ // `<br>`. Use CSS `clear` instead
282
+ code: null,
283
+ // `<object>`
284
+ codeBase: null,
285
+ // `<object>`
286
+ codeType: null,
287
+ // `<object>`
288
+ color: null,
289
+ // `<font>` and `<hr>`. Use CSS instead
290
+ compact: l,
291
+ // Lists. Use CSS to reduce space between items instead
292
+ declare: l,
293
+ // `<object>`
294
+ event: null,
295
+ // `<script>`
296
+ face: null,
297
+ // `<font>`. Use CSS instead
298
+ frame: null,
299
+ // `<table>`
300
+ frameBorder: null,
301
+ // `<iframe>`. Use CSS `border` instead
302
+ hSpace: n,
303
+ // `<img>` and `<object>`
304
+ leftMargin: n,
305
+ // `<body>`
306
+ link: null,
307
+ // `<body>`. Use CSS `a:link {color: *}` instead
308
+ longDesc: null,
309
+ // `<frame>`, `<iframe>`, and `<img>`. Use an `<a>`
310
+ lowSrc: null,
311
+ // `<img>`. Use a `<picture>`
312
+ marginHeight: n,
313
+ // `<body>`
314
+ marginWidth: n,
315
+ // `<body>`
316
+ noResize: l,
317
+ // `<frame>`
318
+ noHref: l,
319
+ // `<area>`. Use no href instead of an explicit `nohref`
320
+ noShade: l,
321
+ // `<hr>`. Use background-color and height instead of borders
322
+ noWrap: l,
323
+ // `<td>` and `<th>`
324
+ object: null,
325
+ // `<applet>`
326
+ profile: null,
327
+ // `<head>`
328
+ prompt: null,
329
+ // `<isindex>`
330
+ rev: null,
331
+ // `<link>`
332
+ rightMargin: n,
333
+ // `<body>`
334
+ rules: null,
335
+ // `<table>`
336
+ scheme: null,
337
+ // `<meta>`
338
+ scrolling: o,
339
+ // `<frame>`. Use overflow in the child context
340
+ standby: null,
341
+ // `<object>`
342
+ summary: null,
343
+ // `<table>`
344
+ text: null,
345
+ // `<body>`. Use CSS `color` instead
346
+ topMargin: n,
347
+ // `<body>`
348
+ valueType: null,
349
+ // `<param>`
350
+ version: null,
351
+ // `<html>`. Use a doctype.
352
+ vAlign: null,
353
+ // Several. Use CSS `vertical-align` instead
354
+ vLink: null,
355
+ // `<body>`. Use CSS `a:visited {color}` instead
356
+ vSpace: n,
357
+ // `<img>` and `<object>`
358
+ // Non-standard Properties.
359
+ allowTransparency: null,
360
+ autoCorrect: null,
361
+ autoSave: null,
362
+ credentialless: l,
363
+ disablePictureInPicture: l,
364
+ disableRemotePlayback: l,
365
+ exportParts: u,
366
+ part: e,
367
+ prefix: null,
368
+ property: null,
369
+ results: n,
370
+ security: null,
371
+ unselectable: null
372
+ },
373
+ space: "html",
374
+ transform: t
375
+ });
376
+ export {
377
+ d as html
378
+ };
@@ -0,0 +1,6 @@
1
+ function o(e) {
2
+ return e.toLowerCase();
3
+ }
4
+ export {
5
+ o as normalize
6
+ };