@pokash/n8n-nodes-ksef 0.2.16 → 0.2.17

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 (645) hide show
  1. package/package.json +5 -12
  2. package/node_modules/@oozcitak/dom/LICENSE +0 -21
  3. package/node_modules/@oozcitak/dom/README.md +0 -32
  4. package/node_modules/@oozcitak/dom/lib/algorithm/AbortAlgorithm.d.ts +0 -21
  5. package/node_modules/@oozcitak/dom/lib/algorithm/AbortAlgorithm.js +0 -79
  6. package/node_modules/@oozcitak/dom/lib/algorithm/AbortAlgorithm.js.map +0 -1
  7. package/node_modules/@oozcitak/dom/lib/algorithm/AttrAlgorithm.d.ts +0 -8
  8. package/node_modules/@oozcitak/dom/lib/algorithm/AttrAlgorithm.js +0 -23
  9. package/node_modules/@oozcitak/dom/lib/algorithm/AttrAlgorithm.js.map +0 -1
  10. package/node_modules/@oozcitak/dom/lib/algorithm/BoundaryPointAlgorithm.d.ts +0 -8
  11. package/node_modules/@oozcitak/dom/lib/algorithm/BoundaryPointAlgorithm.js +0 -76
  12. package/node_modules/@oozcitak/dom/lib/algorithm/BoundaryPointAlgorithm.js.map +0 -1
  13. package/node_modules/@oozcitak/dom/lib/algorithm/CharacterDataAlgorithm.d.ts +0 -19
  14. package/node_modules/@oozcitak/dom/lib/algorithm/CharacterDataAlgorithm.js +0 -140
  15. package/node_modules/@oozcitak/dom/lib/algorithm/CharacterDataAlgorithm.js.map +0 -1
  16. package/node_modules/@oozcitak/dom/lib/algorithm/CreateAlgorithm.d.ts +0 -192
  17. package/node_modules/@oozcitak/dom/lib/algorithm/CreateAlgorithm.js +0 -303
  18. package/node_modules/@oozcitak/dom/lib/algorithm/CreateAlgorithm.js.map +0 -1
  19. package/node_modules/@oozcitak/dom/lib/algorithm/CustomElementAlgorithm.d.ts +0 -61
  20. package/node_modules/@oozcitak/dom/lib/algorithm/CustomElementAlgorithm.js +0 -108
  21. package/node_modules/@oozcitak/dom/lib/algorithm/CustomElementAlgorithm.js.map +0 -1
  22. package/node_modules/@oozcitak/dom/lib/algorithm/DOMAlgorithm.d.ts +0 -72
  23. package/node_modules/@oozcitak/dom/lib/algorithm/DOMAlgorithm.js +0 -288
  24. package/node_modules/@oozcitak/dom/lib/algorithm/DOMAlgorithm.js.map +0 -1
  25. package/node_modules/@oozcitak/dom/lib/algorithm/DOMTokenListAlgorithm.d.ts +0 -21
  26. package/node_modules/@oozcitak/dom/lib/algorithm/DOMTokenListAlgorithm.js +0 -61
  27. package/node_modules/@oozcitak/dom/lib/algorithm/DOMTokenListAlgorithm.js.map +0 -1
  28. package/node_modules/@oozcitak/dom/lib/algorithm/DocumentAlgorithm.d.ts +0 -29
  29. package/node_modules/@oozcitak/dom/lib/algorithm/DocumentAlgorithm.js +0 -161
  30. package/node_modules/@oozcitak/dom/lib/algorithm/DocumentAlgorithm.js.map +0 -1
  31. package/node_modules/@oozcitak/dom/lib/algorithm/ElementAlgorithm.d.ts +0 -121
  32. package/node_modules/@oozcitak/dom/lib/algorithm/ElementAlgorithm.js +0 -608
  33. package/node_modules/@oozcitak/dom/lib/algorithm/ElementAlgorithm.js.map +0 -1
  34. package/node_modules/@oozcitak/dom/lib/algorithm/EventAlgorithm.d.ts +0 -146
  35. package/node_modules/@oozcitak/dom/lib/algorithm/EventAlgorithm.js +0 -995
  36. package/node_modules/@oozcitak/dom/lib/algorithm/EventAlgorithm.js.map +0 -1
  37. package/node_modules/@oozcitak/dom/lib/algorithm/EventTargetAlgorithm.d.ts +0 -33
  38. package/node_modules/@oozcitak/dom/lib/algorithm/EventTargetAlgorithm.js +0 -142
  39. package/node_modules/@oozcitak/dom/lib/algorithm/EventTargetAlgorithm.js.map +0 -1
  40. package/node_modules/@oozcitak/dom/lib/algorithm/MutationAlgorithm.d.ts +0 -66
  41. package/node_modules/@oozcitak/dom/lib/algorithm/MutationAlgorithm.js +0 -1173
  42. package/node_modules/@oozcitak/dom/lib/algorithm/MutationAlgorithm.js.map +0 -1
  43. package/node_modules/@oozcitak/dom/lib/algorithm/MutationObserverAlgorithm.d.ts +0 -43
  44. package/node_modules/@oozcitak/dom/lib/algorithm/MutationObserverAlgorithm.js +0 -276
  45. package/node_modules/@oozcitak/dom/lib/algorithm/MutationObserverAlgorithm.js.map +0 -1
  46. package/node_modules/@oozcitak/dom/lib/algorithm/NamespaceAlgorithm.d.ts +0 -25
  47. package/node_modules/@oozcitak/dom/lib/algorithm/NamespaceAlgorithm.js +0 -85
  48. package/node_modules/@oozcitak/dom/lib/algorithm/NamespaceAlgorithm.js.map +0 -1
  49. package/node_modules/@oozcitak/dom/lib/algorithm/NodeAlgorithm.d.ts +0 -68
  50. package/node_modules/@oozcitak/dom/lib/algorithm/NodeAlgorithm.js +0 -543
  51. package/node_modules/@oozcitak/dom/lib/algorithm/NodeAlgorithm.js.map +0 -1
  52. package/node_modules/@oozcitak/dom/lib/algorithm/NodeIteratorAlgorithm.d.ts +0 -15
  53. package/node_modules/@oozcitak/dom/lib/algorithm/NodeIteratorAlgorithm.js +0 -105
  54. package/node_modules/@oozcitak/dom/lib/algorithm/NodeIteratorAlgorithm.js.map +0 -1
  55. package/node_modules/@oozcitak/dom/lib/algorithm/OrderedSetAlgorithm.d.ts +0 -27
  56. package/node_modules/@oozcitak/dom/lib/algorithm/OrderedSetAlgorithm.js +0 -125
  57. package/node_modules/@oozcitak/dom/lib/algorithm/OrderedSetAlgorithm.js.map +0 -1
  58. package/node_modules/@oozcitak/dom/lib/algorithm/ParentNodeAlgorithm.d.ts +0 -9
  59. package/node_modules/@oozcitak/dom/lib/algorithm/ParentNodeAlgorithm.js +0 -69
  60. package/node_modules/@oozcitak/dom/lib/algorithm/ParentNodeAlgorithm.js.map +0 -1
  61. package/node_modules/@oozcitak/dom/lib/algorithm/RangeAlgorithm.d.ts +0 -82
  62. package/node_modules/@oozcitak/dom/lib/algorithm/RangeAlgorithm.js +0 -829
  63. package/node_modules/@oozcitak/dom/lib/algorithm/RangeAlgorithm.js.map +0 -1
  64. package/node_modules/@oozcitak/dom/lib/algorithm/SelectorsAlgorithm.d.ts +0 -8
  65. package/node_modules/@oozcitak/dom/lib/algorithm/SelectorsAlgorithm.js +0 -21
  66. package/node_modules/@oozcitak/dom/lib/algorithm/SelectorsAlgorithm.js.map +0 -1
  67. package/node_modules/@oozcitak/dom/lib/algorithm/ShadowTreeAlgorithm.d.ts +0 -57
  68. package/node_modules/@oozcitak/dom/lib/algorithm/ShadowTreeAlgorithm.js +0 -316
  69. package/node_modules/@oozcitak/dom/lib/algorithm/ShadowTreeAlgorithm.js.map +0 -1
  70. package/node_modules/@oozcitak/dom/lib/algorithm/TextAlgorithm.d.ts +0 -30
  71. package/node_modules/@oozcitak/dom/lib/algorithm/TextAlgorithm.js +0 -226
  72. package/node_modules/@oozcitak/dom/lib/algorithm/TextAlgorithm.js.map +0 -1
  73. package/node_modules/@oozcitak/dom/lib/algorithm/TraversalAlgorithm.d.ts +0 -8
  74. package/node_modules/@oozcitak/dom/lib/algorithm/TraversalAlgorithm.js +0 -62
  75. package/node_modules/@oozcitak/dom/lib/algorithm/TraversalAlgorithm.js.map +0 -1
  76. package/node_modules/@oozcitak/dom/lib/algorithm/TreeAlgorithm.d.ts +0 -268
  77. package/node_modules/@oozcitak/dom/lib/algorithm/TreeAlgorithm.js +0 -853
  78. package/node_modules/@oozcitak/dom/lib/algorithm/TreeAlgorithm.js.map +0 -1
  79. package/node_modules/@oozcitak/dom/lib/algorithm/TreeWalkerAlgorithm.d.ts +0 -17
  80. package/node_modules/@oozcitak/dom/lib/algorithm/TreeWalkerAlgorithm.js +0 -147
  81. package/node_modules/@oozcitak/dom/lib/algorithm/TreeWalkerAlgorithm.js.map +0 -1
  82. package/node_modules/@oozcitak/dom/lib/algorithm/WebIDLAlgorithm.d.ts +0 -8
  83. package/node_modules/@oozcitak/dom/lib/algorithm/WebIDLAlgorithm.js +0 -14
  84. package/node_modules/@oozcitak/dom/lib/algorithm/WebIDLAlgorithm.js.map +0 -1
  85. package/node_modules/@oozcitak/dom/lib/algorithm/XMLAlgorithm.d.ts +0 -25
  86. package/node_modules/@oozcitak/dom/lib/algorithm/XMLAlgorithm.js +0 -164
  87. package/node_modules/@oozcitak/dom/lib/algorithm/XMLAlgorithm.js.map +0 -1
  88. package/node_modules/@oozcitak/dom/lib/algorithm/index.d.ts +0 -28
  89. package/node_modules/@oozcitak/dom/lib/algorithm/index.js +0 -34
  90. package/node_modules/@oozcitak/dom/lib/algorithm/index.js.map +0 -1
  91. package/node_modules/@oozcitak/dom/lib/dom/AbortControllerImpl.d.ts +0 -15
  92. package/node_modules/@oozcitak/dom/lib/dom/AbortControllerImpl.js +0 -32
  93. package/node_modules/@oozcitak/dom/lib/dom/AbortControllerImpl.js.map +0 -1
  94. package/node_modules/@oozcitak/dom/lib/dom/AbortSignalImpl.d.ts +0 -23
  95. package/node_modules/@oozcitak/dom/lib/dom/AbortSignalImpl.js +0 -59
  96. package/node_modules/@oozcitak/dom/lib/dom/AbortSignalImpl.js.map +0 -1
  97. package/node_modules/@oozcitak/dom/lib/dom/AbstractRangeImpl.d.ts +0 -23
  98. package/node_modules/@oozcitak/dom/lib/dom/AbstractRangeImpl.js +0 -70
  99. package/node_modules/@oozcitak/dom/lib/dom/AbstractRangeImpl.js.map +0 -1
  100. package/node_modules/@oozcitak/dom/lib/dom/AttrImpl.d.ts +0 -45
  101. package/node_modules/@oozcitak/dom/lib/dom/AttrImpl.js +0 -118
  102. package/node_modules/@oozcitak/dom/lib/dom/AttrImpl.js.map +0 -1
  103. package/node_modules/@oozcitak/dom/lib/dom/CDATASectionImpl.d.ts +0 -21
  104. package/node_modules/@oozcitak/dom/lib/dom/CDATASectionImpl.js +0 -51
  105. package/node_modules/@oozcitak/dom/lib/dom/CDATASectionImpl.js.map +0 -1
  106. package/node_modules/@oozcitak/dom/lib/dom/CharacterDataImpl.d.ts +0 -35
  107. package/node_modules/@oozcitak/dom/lib/dom/CharacterDataImpl.js +0 -132
  108. package/node_modules/@oozcitak/dom/lib/dom/CharacterDataImpl.js.map +0 -1
  109. package/node_modules/@oozcitak/dom/lib/dom/ChildNodeImpl.d.ts +0 -16
  110. package/node_modules/@oozcitak/dom/lib/dom/ChildNodeImpl.js +0 -165
  111. package/node_modules/@oozcitak/dom/lib/dom/ChildNodeImpl.js.map +0 -1
  112. package/node_modules/@oozcitak/dom/lib/dom/CommentImpl.d.ts +0 -21
  113. package/node_modules/@oozcitak/dom/lib/dom/CommentImpl.js +0 -52
  114. package/node_modules/@oozcitak/dom/lib/dom/CommentImpl.js.map +0 -1
  115. package/node_modules/@oozcitak/dom/lib/dom/CustomEventImpl.d.ts +0 -16
  116. package/node_modules/@oozcitak/dom/lib/dom/CustomEventImpl.js +0 -60
  117. package/node_modules/@oozcitak/dom/lib/dom/CustomEventImpl.js.map +0 -1
  118. package/node_modules/@oozcitak/dom/lib/dom/DOMException.d.ts +0 -171
  119. package/node_modules/@oozcitak/dom/lib/dom/DOMException.js +0 -347
  120. package/node_modules/@oozcitak/dom/lib/dom/DOMException.js.map +0 -1
  121. package/node_modules/@oozcitak/dom/lib/dom/DOMImpl.d.ts +0 -48
  122. package/node_modules/@oozcitak/dom/lib/dom/DOMImpl.js +0 -100
  123. package/node_modules/@oozcitak/dom/lib/dom/DOMImpl.js.map +0 -1
  124. package/node_modules/@oozcitak/dom/lib/dom/DOMImplementationImpl.d.ts +0 -29
  125. package/node_modules/@oozcitak/dom/lib/dom/DOMImplementationImpl.js +0 -149
  126. package/node_modules/@oozcitak/dom/lib/dom/DOMImplementationImpl.js.map +0 -1
  127. package/node_modules/@oozcitak/dom/lib/dom/DOMTokenListImpl.d.ts +0 -46
  128. package/node_modules/@oozcitak/dom/lib/dom/DOMTokenListImpl.js +0 -312
  129. package/node_modules/@oozcitak/dom/lib/dom/DOMTokenListImpl.js.map +0 -1
  130. package/node_modules/@oozcitak/dom/lib/dom/DocumentFragmentImpl.d.ts +0 -32
  131. package/node_modules/@oozcitak/dom/lib/dom/DocumentFragmentImpl.js +0 -103
  132. package/node_modules/@oozcitak/dom/lib/dom/DocumentFragmentImpl.js.map +0 -1
  133. package/node_modules/@oozcitak/dom/lib/dom/DocumentImpl.d.ts +0 -116
  134. package/node_modules/@oozcitak/dom/lib/dom/DocumentImpl.js +0 -545
  135. package/node_modules/@oozcitak/dom/lib/dom/DocumentImpl.js.map +0 -1
  136. package/node_modules/@oozcitak/dom/lib/dom/DocumentOrShadowRootImpl.d.ts +0 -11
  137. package/node_modules/@oozcitak/dom/lib/dom/DocumentOrShadowRootImpl.js +0 -17
  138. package/node_modules/@oozcitak/dom/lib/dom/DocumentOrShadowRootImpl.js.map +0 -1
  139. package/node_modules/@oozcitak/dom/lib/dom/DocumentTypeImpl.d.ts +0 -39
  140. package/node_modules/@oozcitak/dom/lib/dom/DocumentTypeImpl.js +0 -109
  141. package/node_modules/@oozcitak/dom/lib/dom/DocumentTypeImpl.js.map +0 -1
  142. package/node_modules/@oozcitak/dom/lib/dom/ElementImpl.d.ts +0 -132
  143. package/node_modules/@oozcitak/dom/lib/dom/ElementImpl.js +0 -714
  144. package/node_modules/@oozcitak/dom/lib/dom/ElementImpl.js.map +0 -1
  145. package/node_modules/@oozcitak/dom/lib/dom/EventImpl.d.ts +0 -74
  146. package/node_modules/@oozcitak/dom/lib/dom/EventImpl.js +0 -313
  147. package/node_modules/@oozcitak/dom/lib/dom/EventImpl.js.map +0 -1
  148. package/node_modules/@oozcitak/dom/lib/dom/EventTargetImpl.d.ts +0 -30
  149. package/node_modules/@oozcitak/dom/lib/dom/EventTargetImpl.js +0 -133
  150. package/node_modules/@oozcitak/dom/lib/dom/EventTargetImpl.js.map +0 -1
  151. package/node_modules/@oozcitak/dom/lib/dom/HTMLCollectionImpl.d.ts +0 -44
  152. package/node_modules/@oozcitak/dom/lib/dom/HTMLCollectionImpl.js +0 -157
  153. package/node_modules/@oozcitak/dom/lib/dom/HTMLCollectionImpl.js.map +0 -1
  154. package/node_modules/@oozcitak/dom/lib/dom/MutationObserverImpl.d.ts +0 -22
  155. package/node_modules/@oozcitak/dom/lib/dom/MutationObserverImpl.js +0 -184
  156. package/node_modules/@oozcitak/dom/lib/dom/MutationObserverImpl.js.map +0 -1
  157. package/node_modules/@oozcitak/dom/lib/dom/MutationRecordImpl.d.ts +0 -73
  158. package/node_modules/@oozcitak/dom/lib/dom/MutationRecordImpl.js +0 -116
  159. package/node_modules/@oozcitak/dom/lib/dom/MutationRecordImpl.js.map +0 -1
  160. package/node_modules/@oozcitak/dom/lib/dom/NamedNodeMapImpl.d.ts +0 -34
  161. package/node_modules/@oozcitak/dom/lib/dom/NamedNodeMapImpl.js +0 -112
  162. package/node_modules/@oozcitak/dom/lib/dom/NamedNodeMapImpl.js.map +0 -1
  163. package/node_modules/@oozcitak/dom/lib/dom/NodeFilterImpl.d.ts +0 -50
  164. package/node_modules/@oozcitak/dom/lib/dom/NodeFilterImpl.js +0 -64
  165. package/node_modules/@oozcitak/dom/lib/dom/NodeFilterImpl.js.map +0 -1
  166. package/node_modules/@oozcitak/dom/lib/dom/NodeImpl.d.ts +0 -252
  167. package/node_modules/@oozcitak/dom/lib/dom/NodeImpl.js +0 -891
  168. package/node_modules/@oozcitak/dom/lib/dom/NodeImpl.js.map +0 -1
  169. package/node_modules/@oozcitak/dom/lib/dom/NodeIteratorImpl.d.ts +0 -34
  170. package/node_modules/@oozcitak/dom/lib/dom/NodeIteratorImpl.js +0 -86
  171. package/node_modules/@oozcitak/dom/lib/dom/NodeIteratorImpl.js.map +0 -1
  172. package/node_modules/@oozcitak/dom/lib/dom/NodeListImpl.d.ts +0 -46
  173. package/node_modules/@oozcitak/dom/lib/dom/NodeListImpl.js +0 -198
  174. package/node_modules/@oozcitak/dom/lib/dom/NodeListImpl.js.map +0 -1
  175. package/node_modules/@oozcitak/dom/lib/dom/NodeListStaticImpl.d.ts +0 -49
  176. package/node_modules/@oozcitak/dom/lib/dom/NodeListStaticImpl.js +0 -188
  177. package/node_modules/@oozcitak/dom/lib/dom/NodeListStaticImpl.js.map +0 -1
  178. package/node_modules/@oozcitak/dom/lib/dom/NonDocumentTypeChildNodeImpl.d.ts +0 -12
  179. package/node_modules/@oozcitak/dom/lib/dom/NonDocumentTypeChildNodeImpl.js +0 -53
  180. package/node_modules/@oozcitak/dom/lib/dom/NonDocumentTypeChildNodeImpl.js.map +0 -1
  181. package/node_modules/@oozcitak/dom/lib/dom/NonElementParentNodeImpl.d.ts +0 -9
  182. package/node_modules/@oozcitak/dom/lib/dom/NonElementParentNodeImpl.js +0 -31
  183. package/node_modules/@oozcitak/dom/lib/dom/NonElementParentNodeImpl.js.map +0 -1
  184. package/node_modules/@oozcitak/dom/lib/dom/ParentNodeImpl.d.ts +0 -24
  185. package/node_modules/@oozcitak/dom/lib/dom/ParentNodeImpl.js +0 -158
  186. package/node_modules/@oozcitak/dom/lib/dom/ParentNodeImpl.js.map +0 -1
  187. package/node_modules/@oozcitak/dom/lib/dom/ProcessingInstructionImpl.d.ts +0 -25
  188. package/node_modules/@oozcitak/dom/lib/dom/ProcessingInstructionImpl.js +0 -59
  189. package/node_modules/@oozcitak/dom/lib/dom/ProcessingInstructionImpl.js.map +0 -1
  190. package/node_modules/@oozcitak/dom/lib/dom/RangeImpl.d.ts +0 -71
  191. package/node_modules/@oozcitak/dom/lib/dom/RangeImpl.js +0 -649
  192. package/node_modules/@oozcitak/dom/lib/dom/RangeImpl.js.map +0 -1
  193. package/node_modules/@oozcitak/dom/lib/dom/ShadowRootImpl.d.ts +0 -33
  194. package/node_modules/@oozcitak/dom/lib/dom/ShadowRootImpl.js +0 -82
  195. package/node_modules/@oozcitak/dom/lib/dom/ShadowRootImpl.js.map +0 -1
  196. package/node_modules/@oozcitak/dom/lib/dom/SlotableImpl.d.ts +0 -16
  197. package/node_modules/@oozcitak/dom/lib/dom/SlotableImpl.js +0 -35
  198. package/node_modules/@oozcitak/dom/lib/dom/SlotableImpl.js.map +0 -1
  199. package/node_modules/@oozcitak/dom/lib/dom/StaticRangeImpl.d.ts +0 -13
  200. package/node_modules/@oozcitak/dom/lib/dom/StaticRangeImpl.js +0 -48
  201. package/node_modules/@oozcitak/dom/lib/dom/StaticRangeImpl.js.map +0 -1
  202. package/node_modules/@oozcitak/dom/lib/dom/TextImpl.d.ts +0 -28
  203. package/node_modules/@oozcitak/dom/lib/dom/TextImpl.js +0 -109
  204. package/node_modules/@oozcitak/dom/lib/dom/TextImpl.js.map +0 -1
  205. package/node_modules/@oozcitak/dom/lib/dom/TraverserImpl.d.ts +0 -23
  206. package/node_modules/@oozcitak/dom/lib/dom/TraverserImpl.js +0 -41
  207. package/node_modules/@oozcitak/dom/lib/dom/TraverserImpl.js.map +0 -1
  208. package/node_modules/@oozcitak/dom/lib/dom/TreeWalkerImpl.d.ts +0 -36
  209. package/node_modules/@oozcitak/dom/lib/dom/TreeWalkerImpl.js +0 -249
  210. package/node_modules/@oozcitak/dom/lib/dom/TreeWalkerImpl.js.map +0 -1
  211. package/node_modules/@oozcitak/dom/lib/dom/WindowImpl.d.ts +0 -26
  212. package/node_modules/@oozcitak/dom/lib/dom/WindowImpl.js +0 -57
  213. package/node_modules/@oozcitak/dom/lib/dom/WindowImpl.js.map +0 -1
  214. package/node_modules/@oozcitak/dom/lib/dom/XMLDocumentImpl.d.ts +0 -11
  215. package/node_modules/@oozcitak/dom/lib/dom/XMLDocumentImpl.js +0 -31
  216. package/node_modules/@oozcitak/dom/lib/dom/XMLDocumentImpl.js.map +0 -1
  217. package/node_modules/@oozcitak/dom/lib/dom/index.d.ts +0 -36
  218. package/node_modules/@oozcitak/dom/lib/dom/index.js +0 -102
  219. package/node_modules/@oozcitak/dom/lib/dom/index.js.map +0 -1
  220. package/node_modules/@oozcitak/dom/lib/dom/interfaces.d.ts +0 -2218
  221. package/node_modules/@oozcitak/dom/lib/dom/interfaces.js +0 -91
  222. package/node_modules/@oozcitak/dom/lib/dom/interfaces.js.map +0 -1
  223. package/node_modules/@oozcitak/dom/lib/index.d.ts +0 -3
  224. package/node_modules/@oozcitak/dom/lib/index.js +0 -11
  225. package/node_modules/@oozcitak/dom/lib/index.js.map +0 -1
  226. package/node_modules/@oozcitak/dom/lib/parser/DOMParserImpl.d.ts +0 -11
  227. package/node_modules/@oozcitak/dom/lib/parser/DOMParserImpl.js +0 -37
  228. package/node_modules/@oozcitak/dom/lib/parser/DOMParserImpl.js.map +0 -1
  229. package/node_modules/@oozcitak/dom/lib/parser/XMLParserImpl.d.ts +0 -26
  230. package/node_modules/@oozcitak/dom/lib/parser/XMLParserImpl.js +0 -240
  231. package/node_modules/@oozcitak/dom/lib/parser/XMLParserImpl.js.map +0 -1
  232. package/node_modules/@oozcitak/dom/lib/parser/XMLStringLexer.d.ts +0 -159
  233. package/node_modules/@oozcitak/dom/lib/parser/XMLStringLexer.js +0 -512
  234. package/node_modules/@oozcitak/dom/lib/parser/XMLStringLexer.js.map +0 -1
  235. package/node_modules/@oozcitak/dom/lib/parser/index.d.ts +0 -1
  236. package/node_modules/@oozcitak/dom/lib/parser/index.js +0 -6
  237. package/node_modules/@oozcitak/dom/lib/parser/index.js.map +0 -1
  238. package/node_modules/@oozcitak/dom/lib/parser/interfaces.d.ts +0 -131
  239. package/node_modules/@oozcitak/dom/lib/parser/interfaces.js +0 -18
  240. package/node_modules/@oozcitak/dom/lib/parser/interfaces.js.map +0 -1
  241. package/node_modules/@oozcitak/dom/lib/serializer/LocalNameSet.d.ts +0 -27
  242. package/node_modules/@oozcitak/dom/lib/serializer/LocalNameSet.js +0 -56
  243. package/node_modules/@oozcitak/dom/lib/serializer/LocalNameSet.js.map +0 -1
  244. package/node_modules/@oozcitak/dom/lib/serializer/NamespacePrefixMap.d.ts +0 -52
  245. package/node_modules/@oozcitak/dom/lib/serializer/NamespacePrefixMap.js +0 -151
  246. package/node_modules/@oozcitak/dom/lib/serializer/NamespacePrefixMap.js.map +0 -1
  247. package/node_modules/@oozcitak/dom/lib/serializer/XMLSerializerImpl.d.ts +0 -166
  248. package/node_modules/@oozcitak/dom/lib/serializer/XMLSerializerImpl.js +0 -1479
  249. package/node_modules/@oozcitak/dom/lib/serializer/XMLSerializerImpl.js.map +0 -1
  250. package/node_modules/@oozcitak/dom/lib/serializer/index.d.ts +0 -1
  251. package/node_modules/@oozcitak/dom/lib/serializer/index.js +0 -6
  252. package/node_modules/@oozcitak/dom/lib/serializer/index.js.map +0 -1
  253. package/node_modules/@oozcitak/dom/lib/serializer/interfaces.d.ts +0 -15
  254. package/node_modules/@oozcitak/dom/lib/serializer/interfaces.js +0 -3
  255. package/node_modules/@oozcitak/dom/lib/serializer/interfaces.js.map +0 -1
  256. package/node_modules/@oozcitak/dom/lib/util/Cast.d.ts +0 -12
  257. package/node_modules/@oozcitak/dom/lib/util/Cast.js +0 -26
  258. package/node_modules/@oozcitak/dom/lib/util/Cast.js.map +0 -1
  259. package/node_modules/@oozcitak/dom/lib/util/EmptySet.d.ts +0 -13
  260. package/node_modules/@oozcitak/dom/lib/util/EmptySet.js +0 -61
  261. package/node_modules/@oozcitak/dom/lib/util/EmptySet.js.map +0 -1
  262. package/node_modules/@oozcitak/dom/lib/util/Guard.d.ts +0 -135
  263. package/node_modules/@oozcitak/dom/lib/util/Guard.js +0 -192
  264. package/node_modules/@oozcitak/dom/lib/util/Guard.js.map +0 -1
  265. package/node_modules/@oozcitak/dom/lib/util/index.d.ts +0 -3
  266. package/node_modules/@oozcitak/dom/lib/util/index.js +0 -9
  267. package/node_modules/@oozcitak/dom/lib/util/index.js.map +0 -1
  268. package/node_modules/@oozcitak/dom/package.json +0 -72
  269. package/node_modules/@oozcitak/infra/LICENSE +0 -21
  270. package/node_modules/@oozcitak/infra/README.md +0 -13
  271. package/node_modules/@oozcitak/infra/lib/Base64.d.ts +0 -12
  272. package/node_modules/@oozcitak/infra/lib/Base64.js +0 -82
  273. package/node_modules/@oozcitak/infra/lib/Base64.js.map +0 -1
  274. package/node_modules/@oozcitak/infra/lib/Byte.d.ts +0 -6
  275. package/node_modules/@oozcitak/infra/lib/Byte.js +0 -15
  276. package/node_modules/@oozcitak/infra/lib/Byte.js.map +0 -1
  277. package/node_modules/@oozcitak/infra/lib/ByteSequence.d.ts +0 -45
  278. package/node_modules/@oozcitak/infra/lib/ByteSequence.js +0 -171
  279. package/node_modules/@oozcitak/infra/lib/ByteSequence.js.map +0 -1
  280. package/node_modules/@oozcitak/infra/lib/CodePoints.d.ts +0 -82
  281. package/node_modules/@oozcitak/infra/lib/CodePoints.js +0 -85
  282. package/node_modules/@oozcitak/infra/lib/CodePoints.js.map +0 -1
  283. package/node_modules/@oozcitak/infra/lib/JSON.d.ts +0 -24
  284. package/node_modules/@oozcitak/infra/lib/JSON.js +0 -123
  285. package/node_modules/@oozcitak/infra/lib/JSON.js.map +0 -1
  286. package/node_modules/@oozcitak/infra/lib/List.d.ts +0 -101
  287. package/node_modules/@oozcitak/infra/lib/List.js +0 -325
  288. package/node_modules/@oozcitak/infra/lib/List.js.map +0 -1
  289. package/node_modules/@oozcitak/infra/lib/Map.d.ts +0 -87
  290. package/node_modules/@oozcitak/infra/lib/Map.js +0 -308
  291. package/node_modules/@oozcitak/infra/lib/Map.js.map +0 -1
  292. package/node_modules/@oozcitak/infra/lib/Namespace.d.ts +0 -6
  293. package/node_modules/@oozcitak/infra/lib/Namespace.js +0 -9
  294. package/node_modules/@oozcitak/infra/lib/Namespace.js.map +0 -1
  295. package/node_modules/@oozcitak/infra/lib/Queue.d.ts +0 -13
  296. package/node_modules/@oozcitak/infra/lib/Queue.js +0 -22
  297. package/node_modules/@oozcitak/infra/lib/Queue.js.map +0 -1
  298. package/node_modules/@oozcitak/infra/lib/Set.d.ts +0 -136
  299. package/node_modules/@oozcitak/infra/lib/Set.js +0 -467
  300. package/node_modules/@oozcitak/infra/lib/Set.js.map +0 -1
  301. package/node_modules/@oozcitak/infra/lib/Stack.d.ts +0 -13
  302. package/node_modules/@oozcitak/infra/lib/Stack.js +0 -22
  303. package/node_modules/@oozcitak/infra/lib/Stack.js.map +0 -1
  304. package/node_modules/@oozcitak/infra/lib/String.d.ts +0 -129
  305. package/node_modules/@oozcitak/infra/lib/String.js +0 -472
  306. package/node_modules/@oozcitak/infra/lib/String.js.map +0 -1
  307. package/node_modules/@oozcitak/infra/lib/index.d.ts +0 -13
  308. package/node_modules/@oozcitak/infra/lib/index.js +0 -34
  309. package/node_modules/@oozcitak/infra/lib/index.js.map +0 -1
  310. package/node_modules/@oozcitak/infra/package.json +0 -54
  311. package/node_modules/@oozcitak/url/LICENSE +0 -21
  312. package/node_modules/@oozcitak/url/README.md +0 -27
  313. package/node_modules/@oozcitak/url/lib/URLAlgorithm.d.ts +0 -267
  314. package/node_modules/@oozcitak/url/lib/URLAlgorithm.js +0 -2758
  315. package/node_modules/@oozcitak/url/lib/URLAlgorithm.js.map +0 -1
  316. package/node_modules/@oozcitak/url/lib/URLImpl.d.ts +0 -53
  317. package/node_modules/@oozcitak/url/lib/URLImpl.js +0 -377
  318. package/node_modules/@oozcitak/url/lib/URLImpl.js.map +0 -1
  319. package/node_modules/@oozcitak/url/lib/URLSearchParamsImpl.d.ts +0 -38
  320. package/node_modules/@oozcitak/url/lib/URLSearchParamsImpl.js +0 -303
  321. package/node_modules/@oozcitak/url/lib/URLSearchParamsImpl.js.map +0 -1
  322. package/node_modules/@oozcitak/url/lib/index.d.ts +0 -2
  323. package/node_modules/@oozcitak/url/lib/index.js +0 -7
  324. package/node_modules/@oozcitak/url/lib/index.js.map +0 -1
  325. package/node_modules/@oozcitak/url/lib/interfaces.d.ts +0 -195
  326. package/node_modules/@oozcitak/url/lib/interfaces.js +0 -31
  327. package/node_modules/@oozcitak/url/lib/interfaces.js.map +0 -1
  328. package/node_modules/@oozcitak/url/package.json +0 -55
  329. package/node_modules/@oozcitak/util/LICENSE +0 -21
  330. package/node_modules/@oozcitak/util/README.md +0 -10
  331. package/node_modules/@oozcitak/util/lib/CompareCache.d.ts +0 -32
  332. package/node_modules/@oozcitak/util/lib/CompareCache.js +0 -59
  333. package/node_modules/@oozcitak/util/lib/CompareCache.js.map +0 -1
  334. package/node_modules/@oozcitak/util/lib/FixedSizeSet.d.ts +0 -64
  335. package/node_modules/@oozcitak/util/lib/FixedSizeSet.js +0 -174
  336. package/node_modules/@oozcitak/util/lib/FixedSizeSet.js.map +0 -1
  337. package/node_modules/@oozcitak/util/lib/Lazy.d.ts +0 -18
  338. package/node_modules/@oozcitak/util/lib/Lazy.js +0 -34
  339. package/node_modules/@oozcitak/util/lib/Lazy.js.map +0 -1
  340. package/node_modules/@oozcitak/util/lib/ObjectCache.d.ts +0 -71
  341. package/node_modules/@oozcitak/util/lib/ObjectCache.js +0 -181
  342. package/node_modules/@oozcitak/util/lib/ObjectCache.js.map +0 -1
  343. package/node_modules/@oozcitak/util/lib/StringWalker.d.ts +0 -49
  344. package/node_modules/@oozcitak/util/lib/StringWalker.js +0 -105
  345. package/node_modules/@oozcitak/util/lib/StringWalker.js.map +0 -1
  346. package/node_modules/@oozcitak/util/lib/index.d.ts +0 -178
  347. package/node_modules/@oozcitak/util/lib/index.js +0 -439
  348. package/node_modules/@oozcitak/util/lib/index.js.map +0 -1
  349. package/node_modules/@oozcitak/util/package.json +0 -50
  350. package/node_modules/@xmldom/is-dom-node/LICENSE.md +0 -21
  351. package/node_modules/@xmldom/is-dom-node/README.md +0 -91
  352. package/node_modules/@xmldom/is-dom-node/dist/index.d.ts +0 -33
  353. package/node_modules/@xmldom/is-dom-node/dist/index.js +0 -91
  354. package/node_modules/@xmldom/is-dom-node/dist/index.js.map +0 -1
  355. package/node_modules/@xmldom/is-dom-node/package.json +0 -69
  356. package/node_modules/@xmldom/xmldom/CHANGELOG.md +0 -468
  357. package/node_modules/@xmldom/xmldom/LICENSE +0 -8
  358. package/node_modules/@xmldom/xmldom/SECURITY.md +0 -50
  359. package/node_modules/@xmldom/xmldom/index.d.ts +0 -43
  360. package/node_modules/@xmldom/xmldom/lib/.eslintrc.yml +0 -2
  361. package/node_modules/@xmldom/xmldom/lib/conventions.js +0 -203
  362. package/node_modules/@xmldom/xmldom/lib/dom-parser.js +0 -322
  363. package/node_modules/@xmldom/xmldom/lib/dom.js +0 -1879
  364. package/node_modules/@xmldom/xmldom/lib/entities.js +0 -2166
  365. package/node_modules/@xmldom/xmldom/lib/index.js +0 -4
  366. package/node_modules/@xmldom/xmldom/lib/sax.js +0 -662
  367. package/node_modules/@xmldom/xmldom/package.json +0 -71
  368. package/node_modules/@xmldom/xmldom/readme.md +0 -356
  369. package/node_modules/esprima/ChangeLog +0 -235
  370. package/node_modules/esprima/LICENSE.BSD +0 -21
  371. package/node_modules/esprima/README.md +0 -46
  372. package/node_modules/esprima/bin/esparse.js +0 -139
  373. package/node_modules/esprima/bin/esvalidate.js +0 -236
  374. package/node_modules/esprima/dist/esprima.js +0 -6709
  375. package/node_modules/esprima/package.json +0 -112
  376. package/node_modules/node-forge/LICENSE +0 -331
  377. package/node_modules/node-forge/README.md +0 -2071
  378. package/node_modules/node-forge/dist/forge.all.min.js +0 -2
  379. package/node_modules/node-forge/dist/forge.all.min.js.map +0 -1
  380. package/node_modules/node-forge/dist/forge.min.js +0 -2
  381. package/node_modules/node-forge/dist/forge.min.js.map +0 -1
  382. package/node_modules/node-forge/dist/prime.worker.min.js +0 -2
  383. package/node_modules/node-forge/dist/prime.worker.min.js.map +0 -1
  384. package/node_modules/node-forge/flash/swf/SocketPool.swf +0 -0
  385. package/node_modules/node-forge/lib/aes.js +0 -1091
  386. package/node_modules/node-forge/lib/aesCipherSuites.js +0 -282
  387. package/node_modules/node-forge/lib/asn1-validator.js +0 -91
  388. package/node_modules/node-forge/lib/asn1.js +0 -1503
  389. package/node_modules/node-forge/lib/baseN.js +0 -186
  390. package/node_modules/node-forge/lib/cipher.js +0 -230
  391. package/node_modules/node-forge/lib/cipherModes.js +0 -999
  392. package/node_modules/node-forge/lib/des.js +0 -496
  393. package/node_modules/node-forge/lib/ed25519.js +0 -1072
  394. package/node_modules/node-forge/lib/forge.js +0 -13
  395. package/node_modules/node-forge/lib/form.js +0 -149
  396. package/node_modules/node-forge/lib/hmac.js +0 -146
  397. package/node_modules/node-forge/lib/http.js +0 -1346
  398. package/node_modules/node-forge/lib/index.all.js +0 -16
  399. package/node_modules/node-forge/lib/index.js +0 -33
  400. package/node_modules/node-forge/lib/jsbn.js +0 -1264
  401. package/node_modules/node-forge/lib/kem.js +0 -168
  402. package/node_modules/node-forge/lib/log.js +0 -319
  403. package/node_modules/node-forge/lib/md.all.js +0 -13
  404. package/node_modules/node-forge/lib/md.js +0 -11
  405. package/node_modules/node-forge/lib/md5.js +0 -289
  406. package/node_modules/node-forge/lib/mgf.js +0 -12
  407. package/node_modules/node-forge/lib/mgf1.js +0 -57
  408. package/node_modules/node-forge/lib/oids.js +0 -179
  409. package/node_modules/node-forge/lib/pbe.js +0 -1023
  410. package/node_modules/node-forge/lib/pbkdf2.js +0 -211
  411. package/node_modules/node-forge/lib/pem.js +0 -237
  412. package/node_modules/node-forge/lib/pkcs1.js +0 -276
  413. package/node_modules/node-forge/lib/pkcs12.js +0 -1078
  414. package/node_modules/node-forge/lib/pkcs7.js +0 -1260
  415. package/node_modules/node-forge/lib/pkcs7asn1.js +0 -410
  416. package/node_modules/node-forge/lib/pki.js +0 -102
  417. package/node_modules/node-forge/lib/prime.js +0 -297
  418. package/node_modules/node-forge/lib/prime.worker.js +0 -168
  419. package/node_modules/node-forge/lib/prng.js +0 -419
  420. package/node_modules/node-forge/lib/pss.js +0 -241
  421. package/node_modules/node-forge/lib/random.js +0 -191
  422. package/node_modules/node-forge/lib/rc2.js +0 -410
  423. package/node_modules/node-forge/lib/rsa.js +0 -1949
  424. package/node_modules/node-forge/lib/sha1.js +0 -319
  425. package/node_modules/node-forge/lib/sha256.js +0 -327
  426. package/node_modules/node-forge/lib/sha512.js +0 -561
  427. package/node_modules/node-forge/lib/socket.js +0 -287
  428. package/node_modules/node-forge/lib/ssh.js +0 -236
  429. package/node_modules/node-forge/lib/tls.js +0 -4282
  430. package/node_modules/node-forge/lib/tlssocket.js +0 -249
  431. package/node_modules/node-forge/lib/util.js +0 -2652
  432. package/node_modules/node-forge/lib/x509.js +0 -3242
  433. package/node_modules/node-forge/lib/xhr.js +0 -738
  434. package/node_modules/node-forge/package.json +0 -123
  435. package/node_modules/sprintf-js/.npmignore +0 -1
  436. package/node_modules/sprintf-js/LICENSE +0 -24
  437. package/node_modules/sprintf-js/README.md +0 -88
  438. package/node_modules/sprintf-js/bower.json +0 -14
  439. package/node_modules/sprintf-js/demo/angular.html +0 -20
  440. package/node_modules/sprintf-js/dist/angular-sprintf.min.js +0 -4
  441. package/node_modules/sprintf-js/dist/angular-sprintf.min.js.map +0 -1
  442. package/node_modules/sprintf-js/dist/angular-sprintf.min.map +0 -1
  443. package/node_modules/sprintf-js/dist/sprintf.min.js +0 -4
  444. package/node_modules/sprintf-js/dist/sprintf.min.js.map +0 -1
  445. package/node_modules/sprintf-js/dist/sprintf.min.map +0 -1
  446. package/node_modules/sprintf-js/gruntfile.js +0 -36
  447. package/node_modules/sprintf-js/package.json +0 -22
  448. package/node_modules/sprintf-js/src/angular-sprintf.js +0 -18
  449. package/node_modules/sprintf-js/src/sprintf.js +0 -208
  450. package/node_modules/sprintf-js/test/test.js +0 -82
  451. package/node_modules/xml-crypto/LICENSE +0 -22
  452. package/node_modules/xml-crypto/README.md +0 -557
  453. package/node_modules/xml-crypto/lib/c14n-canonicalization.d.ts +0 -39
  454. package/node_modules/xml-crypto/lib/c14n-canonicalization.js +0 -230
  455. package/node_modules/xml-crypto/lib/c14n-canonicalization.js.map +0 -1
  456. package/node_modules/xml-crypto/lib/enveloped-signature.d.ts +0 -7
  457. package/node_modules/xml-crypto/lib/enveloped-signature.js +0 -43
  458. package/node_modules/xml-crypto/lib/enveloped-signature.js.map +0 -1
  459. package/node_modules/xml-crypto/lib/exclusive-canonicalization.d.ts +0 -38
  460. package/node_modules/xml-crypto/lib/exclusive-canonicalization.js +0 -246
  461. package/node_modules/xml-crypto/lib/exclusive-canonicalization.js.map +0 -1
  462. package/node_modules/xml-crypto/lib/hash-algorithms.d.ts +0 -13
  463. package/node_modules/xml-crypto/lib/hash-algorithms.js +0 -47
  464. package/node_modules/xml-crypto/lib/hash-algorithms.js.map +0 -1
  465. package/node_modules/xml-crypto/lib/index.d.ts +0 -5
  466. package/node_modules/xml-crypto/lib/index.js +0 -28
  467. package/node_modules/xml-crypto/lib/index.js.map +0 -1
  468. package/node_modules/xml-crypto/lib/signature-algorithms.d.ts +0 -47
  469. package/node_modules/xml-crypto/lib/signature-algorithms.js +0 -86
  470. package/node_modules/xml-crypto/lib/signature-algorithms.js.map +0 -1
  471. package/node_modules/xml-crypto/lib/signed-xml.d.ts +0 -225
  472. package/node_modules/xml-crypto/lib/signed-xml.js +0 -960
  473. package/node_modules/xml-crypto/lib/signed-xml.js.map +0 -1
  474. package/node_modules/xml-crypto/lib/types.d.ts +0 -125
  475. package/node_modules/xml-crypto/lib/types.js +0 -57
  476. package/node_modules/xml-crypto/lib/types.js.map +0 -1
  477. package/node_modules/xml-crypto/lib/utils.d.ts +0 -65
  478. package/node_modules/xml-crypto/lib/utils.js +0 -256
  479. package/node_modules/xml-crypto/lib/utils.js.map +0 -1
  480. package/node_modules/xml-crypto/node_modules/xpath/LICENSE +0 -22
  481. package/node_modules/xml-crypto/node_modules/xpath/README.md +0 -133
  482. package/node_modules/xml-crypto/node_modules/xpath/docs/XPathEvaluator.md +0 -62
  483. package/node_modules/xml-crypto/node_modules/xpath/docs/XPathResult.md +0 -47
  484. package/node_modules/xml-crypto/node_modules/xpath/docs/function resolvers.md +0 -88
  485. package/node_modules/xml-crypto/node_modules/xpath/docs/namespace resolvers.md +0 -69
  486. package/node_modules/xml-crypto/node_modules/xpath/docs/parsed expressions.md +0 -21
  487. package/node_modules/xml-crypto/node_modules/xpath/docs/variable resolvers.md +0 -89
  488. package/node_modules/xml-crypto/node_modules/xpath/docs/xpath methods.md +0 -39
  489. package/node_modules/xml-crypto/node_modules/xpath/package.json +0 -39
  490. package/node_modules/xml-crypto/node_modules/xpath/test.js +0 -1186
  491. package/node_modules/xml-crypto/node_modules/xpath/xpath.d.ts +0 -51
  492. package/node_modules/xml-crypto/node_modules/xpath/xpath.js +0 -4938
  493. package/node_modules/xml-crypto/package.json +0 -73
  494. package/node_modules/xmlbuilder2/CHANGELOG.md +0 -309
  495. package/node_modules/xmlbuilder2/LICENSE +0 -21
  496. package/node_modules/xmlbuilder2/README.md +0 -183
  497. package/node_modules/xmlbuilder2/lib/builder/BuilderFunctions.d.ts +0 -236
  498. package/node_modules/xmlbuilder2/lib/builder/BuilderFunctions.js +0 -108
  499. package/node_modules/xmlbuilder2/lib/builder/BuilderFunctions.js.map +0 -1
  500. package/node_modules/xmlbuilder2/lib/builder/BuilderFunctionsCB.d.ts +0 -17
  501. package/node_modules/xmlbuilder2/lib/builder/BuilderFunctionsCB.js +0 -26
  502. package/node_modules/xmlbuilder2/lib/builder/BuilderFunctionsCB.js.map +0 -1
  503. package/node_modules/xmlbuilder2/lib/builder/XMLBuilderCBImpl.d.ts +0 -124
  504. package/node_modules/xmlbuilder2/lib/builder/XMLBuilderCBImpl.js +0 -782
  505. package/node_modules/xmlbuilder2/lib/builder/XMLBuilderCBImpl.js.map +0 -1
  506. package/node_modules/xmlbuilder2/lib/builder/XMLBuilderImpl.d.ts +0 -143
  507. package/node_modules/xmlbuilder2/lib/builder/XMLBuilderImpl.js +0 -841
  508. package/node_modules/xmlbuilder2/lib/builder/XMLBuilderImpl.js.map +0 -1
  509. package/node_modules/xmlbuilder2/lib/builder/dom.d.ts +0 -8
  510. package/node_modules/xmlbuilder2/lib/builder/dom.js +0 -67
  511. package/node_modules/xmlbuilder2/lib/builder/dom.js.map +0 -1
  512. package/node_modules/xmlbuilder2/lib/builder/index.d.ts +0 -4
  513. package/node_modules/xmlbuilder2/lib/builder/index.js +0 -15
  514. package/node_modules/xmlbuilder2/lib/builder/index.js.map +0 -1
  515. package/node_modules/xmlbuilder2/lib/constants.d.ts +0 -1
  516. package/node_modules/xmlbuilder2/lib/constants.js +0 -4
  517. package/node_modules/xmlbuilder2/lib/constants.js.map +0 -1
  518. package/node_modules/xmlbuilder2/lib/index.d.ts +0 -1
  519. package/node_modules/xmlbuilder2/lib/index.js +0 -10
  520. package/node_modules/xmlbuilder2/lib/index.js.map +0 -1
  521. package/node_modules/xmlbuilder2/lib/interfaces.d.ts +0 -1355
  522. package/node_modules/xmlbuilder2/lib/interfaces.js +0 -76
  523. package/node_modules/xmlbuilder2/lib/interfaces.js.map +0 -1
  524. package/node_modules/xmlbuilder2/lib/readers/BaseReader.d.ts +0 -109
  525. package/node_modules/xmlbuilder2/lib/readers/BaseReader.js +0 -167
  526. package/node_modules/xmlbuilder2/lib/readers/BaseReader.js.map +0 -1
  527. package/node_modules/xmlbuilder2/lib/readers/JSONReader.d.ts +0 -14
  528. package/node_modules/xmlbuilder2/lib/readers/JSONReader.js +0 -38
  529. package/node_modules/xmlbuilder2/lib/readers/JSONReader.js.map +0 -1
  530. package/node_modules/xmlbuilder2/lib/readers/ObjectReader.d.ts +0 -15
  531. package/node_modules/xmlbuilder2/lib/readers/ObjectReader.js +0 -168
  532. package/node_modules/xmlbuilder2/lib/readers/ObjectReader.js.map +0 -1
  533. package/node_modules/xmlbuilder2/lib/readers/XMLReader.d.ts +0 -14
  534. package/node_modules/xmlbuilder2/lib/readers/XMLReader.js +0 -206
  535. package/node_modules/xmlbuilder2/lib/readers/XMLReader.js.map +0 -1
  536. package/node_modules/xmlbuilder2/lib/readers/YAMLReader.d.ts +0 -14
  537. package/node_modules/xmlbuilder2/lib/readers/YAMLReader.js +0 -44
  538. package/node_modules/xmlbuilder2/lib/readers/YAMLReader.js.map +0 -1
  539. package/node_modules/xmlbuilder2/lib/readers/index.d.ts +0 -4
  540. package/node_modules/xmlbuilder2/lib/readers/index.js +0 -11
  541. package/node_modules/xmlbuilder2/lib/readers/index.js.map +0 -1
  542. package/node_modules/xmlbuilder2/lib/writers/BaseCBWriter.d.ts +0 -110
  543. package/node_modules/xmlbuilder2/lib/writers/BaseCBWriter.js +0 -23
  544. package/node_modules/xmlbuilder2/lib/writers/BaseCBWriter.js.map +0 -1
  545. package/node_modules/xmlbuilder2/lib/writers/BaseWriter.d.ts +0 -276
  546. package/node_modules/xmlbuilder2/lib/writers/BaseWriter.js +0 -1603
  547. package/node_modules/xmlbuilder2/lib/writers/BaseWriter.js.map +0 -1
  548. package/node_modules/xmlbuilder2/lib/writers/JSONCBWriter.d.ts +0 -68
  549. package/node_modules/xmlbuilder2/lib/writers/JSONCBWriter.js +0 -172
  550. package/node_modules/xmlbuilder2/lib/writers/JSONCBWriter.js.map +0 -1
  551. package/node_modules/xmlbuilder2/lib/writers/JSONWriter.d.ts +0 -67
  552. package/node_modules/xmlbuilder2/lib/writers/JSONWriter.js +0 -222
  553. package/node_modules/xmlbuilder2/lib/writers/JSONWriter.js.map +0 -1
  554. package/node_modules/xmlbuilder2/lib/writers/MapWriter.d.ts +0 -27
  555. package/node_modules/xmlbuilder2/lib/writers/MapWriter.js +0 -84
  556. package/node_modules/xmlbuilder2/lib/writers/MapWriter.js.map +0 -1
  557. package/node_modules/xmlbuilder2/lib/writers/ObjectWriter.d.ts +0 -56
  558. package/node_modules/xmlbuilder2/lib/writers/ObjectWriter.js +0 -483
  559. package/node_modules/xmlbuilder2/lib/writers/ObjectWriter.js.map +0 -1
  560. package/node_modules/xmlbuilder2/lib/writers/XMLCBWriter.d.ts +0 -51
  561. package/node_modules/xmlbuilder2/lib/writers/XMLCBWriter.js +0 -165
  562. package/node_modules/xmlbuilder2/lib/writers/XMLCBWriter.js.map +0 -1
  563. package/node_modules/xmlbuilder2/lib/writers/XMLWriter.d.ts +0 -60
  564. package/node_modules/xmlbuilder2/lib/writers/XMLWriter.js +0 -236
  565. package/node_modules/xmlbuilder2/lib/writers/XMLWriter.js.map +0 -1
  566. package/node_modules/xmlbuilder2/lib/writers/YAMLCBWriter.d.ts +0 -61
  567. package/node_modules/xmlbuilder2/lib/writers/YAMLCBWriter.js +0 -161
  568. package/node_modules/xmlbuilder2/lib/writers/YAMLCBWriter.js.map +0 -1
  569. package/node_modules/xmlbuilder2/lib/writers/YAMLWriter.d.ts +0 -55
  570. package/node_modules/xmlbuilder2/lib/writers/YAMLWriter.js +0 -186
  571. package/node_modules/xmlbuilder2/lib/writers/YAMLWriter.js.map +0 -1
  572. package/node_modules/xmlbuilder2/lib/writers/index.d.ts +0 -5
  573. package/node_modules/xmlbuilder2/lib/writers/index.js +0 -13
  574. package/node_modules/xmlbuilder2/lib/writers/index.js.map +0 -1
  575. package/node_modules/xmlbuilder2/lib/xmlbuilder2.min.js +0 -8
  576. package/node_modules/xmlbuilder2/node_modules/argparse/CHANGELOG.md +0 -185
  577. package/node_modules/xmlbuilder2/node_modules/argparse/LICENSE +0 -21
  578. package/node_modules/xmlbuilder2/node_modules/argparse/README.md +0 -257
  579. package/node_modules/xmlbuilder2/node_modules/argparse/index.js +0 -3
  580. package/node_modules/xmlbuilder2/node_modules/argparse/lib/action/append/constant.js +0 -47
  581. package/node_modules/xmlbuilder2/node_modules/argparse/lib/action/append.js +0 -53
  582. package/node_modules/xmlbuilder2/node_modules/argparse/lib/action/count.js +0 -40
  583. package/node_modules/xmlbuilder2/node_modules/argparse/lib/action/help.js +0 -47
  584. package/node_modules/xmlbuilder2/node_modules/argparse/lib/action/store/constant.js +0 -43
  585. package/node_modules/xmlbuilder2/node_modules/argparse/lib/action/store/false.js +0 -27
  586. package/node_modules/xmlbuilder2/node_modules/argparse/lib/action/store/true.js +0 -26
  587. package/node_modules/xmlbuilder2/node_modules/argparse/lib/action/store.js +0 -50
  588. package/node_modules/xmlbuilder2/node_modules/argparse/lib/action/subparsers.js +0 -149
  589. package/node_modules/xmlbuilder2/node_modules/argparse/lib/action/version.js +0 -47
  590. package/node_modules/xmlbuilder2/node_modules/argparse/lib/action.js +0 -146
  591. package/node_modules/xmlbuilder2/node_modules/argparse/lib/action_container.js +0 -482
  592. package/node_modules/xmlbuilder2/node_modules/argparse/lib/argparse.js +0 -14
  593. package/node_modules/xmlbuilder2/node_modules/argparse/lib/argument/error.js +0 -50
  594. package/node_modules/xmlbuilder2/node_modules/argparse/lib/argument/exclusive.js +0 -54
  595. package/node_modules/xmlbuilder2/node_modules/argparse/lib/argument/group.js +0 -75
  596. package/node_modules/xmlbuilder2/node_modules/argparse/lib/argument_parser.js +0 -1161
  597. package/node_modules/xmlbuilder2/node_modules/argparse/lib/const.js +0 -21
  598. package/node_modules/xmlbuilder2/node_modules/argparse/lib/help/added_formatters.js +0 -87
  599. package/node_modules/xmlbuilder2/node_modules/argparse/lib/help/formatter.js +0 -795
  600. package/node_modules/xmlbuilder2/node_modules/argparse/lib/namespace.js +0 -76
  601. package/node_modules/xmlbuilder2/node_modules/argparse/lib/utils.js +0 -57
  602. package/node_modules/xmlbuilder2/node_modules/argparse/package.json +0 -34
  603. package/node_modules/xmlbuilder2/node_modules/js-yaml/CHANGELOG.md +0 -557
  604. package/node_modules/xmlbuilder2/node_modules/js-yaml/LICENSE +0 -21
  605. package/node_modules/xmlbuilder2/node_modules/js-yaml/README.md +0 -299
  606. package/node_modules/xmlbuilder2/node_modules/js-yaml/bin/js-yaml.js +0 -132
  607. package/node_modules/xmlbuilder2/node_modules/js-yaml/dist/js-yaml.js +0 -3989
  608. package/node_modules/xmlbuilder2/node_modules/js-yaml/dist/js-yaml.min.js +0 -1
  609. package/node_modules/xmlbuilder2/node_modules/js-yaml/index.js +0 -7
  610. package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/common.js +0 -59
  611. package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/dumper.js +0 -850
  612. package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/exception.js +0 -43
  613. package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/loader.js +0 -1644
  614. package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/mark.js +0 -76
  615. package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/schema/core.js +0 -18
  616. package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/schema/default_full.js +0 -25
  617. package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/schema/default_safe.js +0 -28
  618. package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/schema/failsafe.js +0 -17
  619. package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/schema/json.js +0 -25
  620. package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/schema.js +0 -108
  621. package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/type/binary.js +0 -138
  622. package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/type/bool.js +0 -35
  623. package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/type/float.js +0 -116
  624. package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/type/int.js +0 -173
  625. package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/type/js/function.js +0 -93
  626. package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/type/js/regexp.js +0 -60
  627. package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js +0 -28
  628. package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/type/map.js +0 -8
  629. package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/type/merge.js +0 -12
  630. package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/type/null.js +0 -34
  631. package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/type/omap.js +0 -44
  632. package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/type/pairs.js +0 -53
  633. package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/type/seq.js +0 -8
  634. package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/type/set.js +0 -29
  635. package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/type/str.js +0 -8
  636. package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/type/timestamp.js +0 -88
  637. package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/type.js +0 -61
  638. package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml.js +0 -39
  639. package/node_modules/xmlbuilder2/node_modules/js-yaml/package.json +0 -49
  640. package/node_modules/xmlbuilder2/package.json +0 -82
  641. package/node_modules/xpath/LICENSE +0 -22
  642. package/node_modules/xpath/README.md +0 -133
  643. package/node_modules/xpath/package.json +0 -43
  644. package/node_modules/xpath/xpath.d.ts +0 -51
  645. package/node_modules/xpath/xpath.js +0 -5041
@@ -1,1173 +0,0 @@
1
- "use strict";
2
- var __values = (this && this.__values) || function(o) {
3
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
4
- if (m) return m.call(o);
5
- if (o && typeof o.length === "number") return {
6
- next: function () {
7
- if (o && i >= o.length) o = void 0;
8
- return { value: o && o[i++], done: !o };
9
- }
10
- };
11
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
12
- };
13
- var __read = (this && this.__read) || function (o, n) {
14
- var m = typeof Symbol === "function" && o[Symbol.iterator];
15
- if (!m) return o;
16
- var i = m.call(o), r, ar = [], e;
17
- try {
18
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
19
- }
20
- catch (error) { e = { error: error }; }
21
- finally {
22
- try {
23
- if (r && !r.done && (m = i["return"])) m.call(i);
24
- }
25
- finally { if (e) throw e.error; }
26
- }
27
- return ar;
28
- };
29
- var __spread = (this && this.__spread) || function () {
30
- for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));
31
- return ar;
32
- };
33
- Object.defineProperty(exports, "__esModule", { value: true });
34
- var DOMImpl_1 = require("../dom/DOMImpl");
35
- var DOMException_1 = require("../dom/DOMException");
36
- var interfaces_1 = require("../dom/interfaces");
37
- var util_1 = require("../util");
38
- var util_2 = require("@oozcitak/util");
39
- var infra_1 = require("@oozcitak/infra");
40
- var CustomElementAlgorithm_1 = require("./CustomElementAlgorithm");
41
- var TreeAlgorithm_1 = require("./TreeAlgorithm");
42
- var NodeIteratorAlgorithm_1 = require("./NodeIteratorAlgorithm");
43
- var ShadowTreeAlgorithm_1 = require("./ShadowTreeAlgorithm");
44
- var MutationObserverAlgorithm_1 = require("./MutationObserverAlgorithm");
45
- var DOMAlgorithm_1 = require("./DOMAlgorithm");
46
- var DocumentAlgorithm_1 = require("./DocumentAlgorithm");
47
- /**
48
- * Ensures pre-insertion validity of a node into a parent before a
49
- * child.
50
- *
51
- * @param node - node to insert
52
- * @param parent - parent node to receive node
53
- * @param child - child node to insert node before
54
- */
55
- function mutation_ensurePreInsertionValidity(node, parent, child) {
56
- var e_1, _a, e_2, _b, e_3, _c, e_4, _d;
57
- var parentNodeType = parent._nodeType;
58
- var nodeNodeType = node._nodeType;
59
- var childNodeType = child ? child._nodeType : null;
60
- /**
61
- * 1. If parent is not a Document, DocumentFragment, or Element node,
62
- * throw a "HierarchyRequestError" DOMException.
63
- */
64
- if (parentNodeType !== interfaces_1.NodeType.Document &&
65
- parentNodeType !== interfaces_1.NodeType.DocumentFragment &&
66
- parentNodeType !== interfaces_1.NodeType.Element)
67
- throw new DOMException_1.HierarchyRequestError("Only document, document fragment and element nodes can contain child nodes. Parent node is " + parent.nodeName + ".");
68
- /**
69
- * 2. If node is a host-including inclusive ancestor of parent, throw a
70
- * "HierarchyRequestError" DOMException.
71
- */
72
- if (TreeAlgorithm_1.tree_isHostIncludingAncestorOf(parent, node, true))
73
- throw new DOMException_1.HierarchyRequestError("The node to be inserted cannot be an inclusive ancestor of parent node. Node is " + node.nodeName + ", parent node is " + parent.nodeName + ".");
74
- /**
75
- * 3. If child is not null and its parent is not parent, then throw a
76
- * "NotFoundError" DOMException.
77
- */
78
- if (child !== null && child._parent !== parent)
79
- throw new DOMException_1.NotFoundError("The reference child node cannot be found under parent node. Child node is " + child.nodeName + ", parent node is " + parent.nodeName + ".");
80
- /**
81
- * 4. If node is not a DocumentFragment, DocumentType, Element, Text,
82
- * ProcessingInstruction, or Comment node, throw a "HierarchyRequestError"
83
- * DOMException.
84
- */
85
- if (nodeNodeType !== interfaces_1.NodeType.DocumentFragment &&
86
- nodeNodeType !== interfaces_1.NodeType.DocumentType &&
87
- nodeNodeType !== interfaces_1.NodeType.Element &&
88
- nodeNodeType !== interfaces_1.NodeType.Text &&
89
- nodeNodeType !== interfaces_1.NodeType.ProcessingInstruction &&
90
- nodeNodeType !== interfaces_1.NodeType.CData &&
91
- nodeNodeType !== interfaces_1.NodeType.Comment)
92
- throw new DOMException_1.HierarchyRequestError("Only document fragment, document type, element, text, processing instruction, cdata section or comment nodes can be inserted. Node is " + node.nodeName + ".");
93
- /**
94
- * 5. If either node is a Text node and parent is a document, or node is a
95
- * doctype and parent is not a document, throw a "HierarchyRequestError"
96
- * DOMException.
97
- */
98
- if (nodeNodeType === interfaces_1.NodeType.Text &&
99
- parentNodeType === interfaces_1.NodeType.Document)
100
- throw new DOMException_1.HierarchyRequestError("Cannot insert a text node as a child of a document node. Node is " + node.nodeName + ".");
101
- if (nodeNodeType === interfaces_1.NodeType.DocumentType &&
102
- parentNodeType !== interfaces_1.NodeType.Document)
103
- throw new DOMException_1.HierarchyRequestError("A document type node can only be inserted under a document node. Parent node is " + parent.nodeName + ".");
104
- /**
105
- * 6. If parent is a document, and any of the statements below, switched on
106
- * node, are true, throw a "HierarchyRequestError" DOMException.
107
- * - DocumentFragment node
108
- * If node has more than one element child or has a Text node child.
109
- * Otherwise, if node has one element child and either parent has an element
110
- * child, child is a doctype, or child is not null and a doctype is
111
- * following child.
112
- * - element
113
- * parent has an element child, child is a doctype, or child is not null and
114
- * a doctype is following child.
115
- * - doctype
116
- * parent has a doctype child, child is non-null and an element is preceding
117
- * child, or child is null and parent has an element child.
118
- */
119
- if (parentNodeType === interfaces_1.NodeType.Document) {
120
- if (nodeNodeType === interfaces_1.NodeType.DocumentFragment) {
121
- var eleCount = 0;
122
- try {
123
- for (var _e = __values(node._children), _f = _e.next(); !_f.done; _f = _e.next()) {
124
- var childNode = _f.value;
125
- if (childNode._nodeType === interfaces_1.NodeType.Element)
126
- eleCount++;
127
- else if (childNode._nodeType === interfaces_1.NodeType.Text)
128
- throw new DOMException_1.HierarchyRequestError("Cannot insert text a node as a child of a document node. Node is " + childNode.nodeName + ".");
129
- }
130
- }
131
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
132
- finally {
133
- try {
134
- if (_f && !_f.done && (_a = _e.return)) _a.call(_e);
135
- }
136
- finally { if (e_1) throw e_1.error; }
137
- }
138
- if (eleCount > 1) {
139
- throw new DOMException_1.HierarchyRequestError("A document node can only have one document element node. Document fragment to be inserted has " + eleCount + " element nodes.");
140
- }
141
- else if (eleCount === 1) {
142
- try {
143
- for (var _g = __values(parent._children), _h = _g.next(); !_h.done; _h = _g.next()) {
144
- var ele = _h.value;
145
- if (ele._nodeType === interfaces_1.NodeType.Element)
146
- throw new DOMException_1.HierarchyRequestError("The document node already has a document element node.");
147
- }
148
- }
149
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
150
- finally {
151
- try {
152
- if (_h && !_h.done && (_b = _g.return)) _b.call(_g);
153
- }
154
- finally { if (e_2) throw e_2.error; }
155
- }
156
- if (child) {
157
- if (childNodeType === interfaces_1.NodeType.DocumentType)
158
- throw new DOMException_1.HierarchyRequestError("Cannot insert an element node before a document type node.");
159
- var doctypeChild = child._nextSibling;
160
- while (doctypeChild) {
161
- if (doctypeChild._nodeType === interfaces_1.NodeType.DocumentType)
162
- throw new DOMException_1.HierarchyRequestError("Cannot insert an element node before a document type node.");
163
- doctypeChild = doctypeChild._nextSibling;
164
- }
165
- }
166
- }
167
- }
168
- else if (nodeNodeType === interfaces_1.NodeType.Element) {
169
- try {
170
- for (var _j = __values(parent._children), _k = _j.next(); !_k.done; _k = _j.next()) {
171
- var ele = _k.value;
172
- if (ele._nodeType === interfaces_1.NodeType.Element)
173
- throw new DOMException_1.HierarchyRequestError("Document already has a document element node. Node is " + node.nodeName + ".");
174
- }
175
- }
176
- catch (e_3_1) { e_3 = { error: e_3_1 }; }
177
- finally {
178
- try {
179
- if (_k && !_k.done && (_c = _j.return)) _c.call(_j);
180
- }
181
- finally { if (e_3) throw e_3.error; }
182
- }
183
- if (child) {
184
- if (childNodeType === interfaces_1.NodeType.DocumentType)
185
- throw new DOMException_1.HierarchyRequestError("Cannot insert an element node before a document type node. Node is " + node.nodeName + ".");
186
- var doctypeChild = child._nextSibling;
187
- while (doctypeChild) {
188
- if (doctypeChild._nodeType === interfaces_1.NodeType.DocumentType)
189
- throw new DOMException_1.HierarchyRequestError("Cannot insert an element node before a document type node. Node is " + node.nodeName + ".");
190
- doctypeChild = doctypeChild._nextSibling;
191
- }
192
- }
193
- }
194
- else if (nodeNodeType === interfaces_1.NodeType.DocumentType) {
195
- try {
196
- for (var _l = __values(parent._children), _m = _l.next(); !_m.done; _m = _l.next()) {
197
- var ele = _m.value;
198
- if (ele._nodeType === interfaces_1.NodeType.DocumentType)
199
- throw new DOMException_1.HierarchyRequestError("Document already has a document type node. Node is " + node.nodeName + ".");
200
- }
201
- }
202
- catch (e_4_1) { e_4 = { error: e_4_1 }; }
203
- finally {
204
- try {
205
- if (_m && !_m.done && (_d = _l.return)) _d.call(_l);
206
- }
207
- finally { if (e_4) throw e_4.error; }
208
- }
209
- if (child) {
210
- var elementChild = child._previousSibling;
211
- while (elementChild) {
212
- if (elementChild._nodeType === interfaces_1.NodeType.Element)
213
- throw new DOMException_1.HierarchyRequestError("Cannot insert a document type node before an element node. Node is " + node.nodeName + ".");
214
- elementChild = elementChild._previousSibling;
215
- }
216
- }
217
- else {
218
- var elementChild = parent._firstChild;
219
- while (elementChild) {
220
- if (elementChild._nodeType === interfaces_1.NodeType.Element)
221
- throw new DOMException_1.HierarchyRequestError("Cannot insert a document type node before an element node. Node is " + node.nodeName + ".");
222
- elementChild = elementChild._nextSibling;
223
- }
224
- }
225
- }
226
- }
227
- }
228
- exports.mutation_ensurePreInsertionValidity = mutation_ensurePreInsertionValidity;
229
- /**
230
- * Ensures pre-insertion validity of a node into a parent before a
231
- * child, then adopts the node to the tree and inserts it.
232
- *
233
- * @param node - node to insert
234
- * @param parent - parent node to receive node
235
- * @param child - child node to insert node before
236
- */
237
- function mutation_preInsert(node, parent, child) {
238
- /**
239
- * 1. Ensure pre-insertion validity of node into parent before child.
240
- * 2. Let reference child be child.
241
- * 3. If reference child is node, set it to node’s next sibling.
242
- * 4. Adopt node into parent’s node document.
243
- * 5. Insert node into parent before reference child.
244
- * 6. Return node.
245
- */
246
- mutation_ensurePreInsertionValidity(node, parent, child);
247
- var referenceChild = child;
248
- if (referenceChild === node)
249
- referenceChild = node._nextSibling;
250
- DocumentAlgorithm_1.document_adopt(node, parent._nodeDocument);
251
- mutation_insert(node, parent, referenceChild);
252
- return node;
253
- }
254
- exports.mutation_preInsert = mutation_preInsert;
255
- /**
256
- * Inserts a node into a parent node before the given child node.
257
- *
258
- * @param node - node to insert
259
- * @param parent - parent node to receive node
260
- * @param child - child node to insert node before
261
- * @param suppressObservers - whether to notify observers
262
- */
263
- function mutation_insert(node, parent, child, suppressObservers) {
264
- var e_5, _a;
265
- // Optimized common case
266
- if (child === null && node._nodeType !== interfaces_1.NodeType.DocumentFragment) {
267
- mutation_insert_single(node, parent, suppressObservers);
268
- return;
269
- }
270
- /**
271
- * 1. Let count be the number of children of node if it is a
272
- * DocumentFragment node, and one otherwise.
273
- */
274
- var count = (node._nodeType === interfaces_1.NodeType.DocumentFragment ?
275
- node._children.size : 1);
276
- /**
277
- * 2. If child is non-null, then:
278
- */
279
- if (child !== null) {
280
- /**
281
- * 2.1. For each live range whose start node is parent and start
282
- * offset is greater than child's index, increase its start
283
- * offset by count.
284
- * 2.2. For each live range whose end node is parent and end
285
- * offset is greater than child's index, increase its end
286
- * offset by count.
287
- */
288
- if (DOMImpl_1.dom.rangeList.size !== 0) {
289
- var index_1 = TreeAlgorithm_1.tree_index(child);
290
- try {
291
- for (var _b = __values(DOMImpl_1.dom.rangeList), _c = _b.next(); !_c.done; _c = _b.next()) {
292
- var range = _c.value;
293
- if (range._start[0] === parent && range._start[1] > index_1) {
294
- range._start[1] += count;
295
- }
296
- if (range._end[0] === parent && range._end[1] > index_1) {
297
- range._end[1] += count;
298
- }
299
- }
300
- }
301
- catch (e_5_1) { e_5 = { error: e_5_1 }; }
302
- finally {
303
- try {
304
- if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
305
- }
306
- finally { if (e_5) throw e_5.error; }
307
- }
308
- }
309
- }
310
- /**
311
- * 3. Let nodes be node’s children, if node is a DocumentFragment node;
312
- * otherwise « node ».
313
- */
314
- var nodes = node._nodeType === interfaces_1.NodeType.DocumentFragment ? new (Array.bind.apply(Array, __spread([void 0], node._children)))() : [node];
315
- /**
316
- * 4. If node is a DocumentFragment node, remove its children with the
317
- * suppress observers flag set.
318
- */
319
- if (node._nodeType === interfaces_1.NodeType.DocumentFragment) {
320
- while (node._firstChild) {
321
- mutation_remove(node._firstChild, node, true);
322
- }
323
- }
324
- /**
325
- * 5. If node is a DocumentFragment node, then queue a tree mutation record
326
- * for node with « », nodes, null, and null.
327
- */
328
- if (DOMImpl_1.dom.features.mutationObservers) {
329
- if (node._nodeType === interfaces_1.NodeType.DocumentFragment) {
330
- MutationObserverAlgorithm_1.observer_queueTreeMutationRecord(node, [], nodes, null, null);
331
- }
332
- }
333
- /**
334
- * 6. Let previousSibling be child’s previous sibling or parent’s last
335
- * child if child is null.
336
- */
337
- var previousSibling = (child ? child._previousSibling : parent._lastChild);
338
- var index = child === null ? -1 : TreeAlgorithm_1.tree_index(child);
339
- /**
340
- * 7. For each node in nodes, in tree order:
341
- */
342
- for (var i = 0; i < nodes.length; i++) {
343
- var node_1 = nodes[i];
344
- if (util_1.Guard.isElementNode(node_1)) {
345
- // set document element node
346
- if (util_1.Guard.isDocumentNode(parent)) {
347
- parent._documentElement = node_1;
348
- }
349
- // mark that the document has namespaces
350
- if (!node_1._nodeDocument._hasNamespaces && (node_1._namespace !== null ||
351
- node_1._namespacePrefix !== null)) {
352
- node_1._nodeDocument._hasNamespaces = true;
353
- }
354
- }
355
- /**
356
- * 7.1. If child is null, then append node to parent’s children.
357
- * 7.2. Otherwise, insert node into parent’s children before child’s
358
- * index.
359
- */
360
- node_1._parent = parent;
361
- if (child === null) {
362
- infra_1.set.append(parent._children, node_1);
363
- }
364
- else {
365
- infra_1.set.insert(parent._children, node_1, index);
366
- index++;
367
- }
368
- // assign siblings and children for quick lookups
369
- if (parent._firstChild === null) {
370
- node_1._previousSibling = null;
371
- node_1._nextSibling = null;
372
- parent._firstChild = node_1;
373
- parent._lastChild = node_1;
374
- }
375
- else {
376
- var prev = (child ? child._previousSibling : parent._lastChild);
377
- var next = (child ? child : null);
378
- node_1._previousSibling = prev;
379
- node_1._nextSibling = next;
380
- if (prev)
381
- prev._nextSibling = node_1;
382
- if (next)
383
- next._previousSibling = node_1;
384
- if (!prev)
385
- parent._firstChild = node_1;
386
- if (!next)
387
- parent._lastChild = node_1;
388
- }
389
- /**
390
- * 7.3. If parent is a shadow host and node is a slotable, then
391
- * assign a slot for node.
392
- */
393
- if (DOMImpl_1.dom.features.slots) {
394
- if (parent._shadowRoot !== null && util_1.Guard.isSlotable(node_1)) {
395
- ShadowTreeAlgorithm_1.shadowTree_assignASlot(node_1);
396
- }
397
- }
398
- /**
399
- * 7.4. If node is a Text node, run the child text content change
400
- * steps for parent.
401
- */
402
- if (DOMImpl_1.dom.features.steps) {
403
- if (util_1.Guard.isTextNode(node_1)) {
404
- DOMAlgorithm_1.dom_runChildTextContentChangeSteps(parent);
405
- }
406
- }
407
- /**
408
- * 7.5. If parent's root is a shadow root, and parent is a slot
409
- * whose assigned nodes is the empty list, then run signal
410
- * a slot change for parent.
411
- */
412
- if (DOMImpl_1.dom.features.slots) {
413
- if (util_1.Guard.isShadowRoot(TreeAlgorithm_1.tree_rootNode(parent)) &&
414
- util_1.Guard.isSlot(parent) && util_2.isEmpty(parent._assignedNodes)) {
415
- ShadowTreeAlgorithm_1.shadowTree_signalASlotChange(parent);
416
- }
417
- }
418
- /**
419
- * 7.6. Run assign slotables for a tree with node's root.
420
- */
421
- if (DOMImpl_1.dom.features.slots) {
422
- ShadowTreeAlgorithm_1.shadowTree_assignSlotablesForATree(TreeAlgorithm_1.tree_rootNode(node_1));
423
- }
424
- /**
425
- * 7.7. For each shadow-including inclusive descendant
426
- * inclusiveDescendant of node, in shadow-including tree
427
- * order:
428
- */
429
- var inclusiveDescendant = TreeAlgorithm_1.tree_getFirstDescendantNode(node_1, true, true);
430
- while (inclusiveDescendant !== null) {
431
- /**
432
- * 7.7.1. Run the insertion steps with inclusiveDescendant.
433
- */
434
- if (DOMImpl_1.dom.features.steps) {
435
- DOMAlgorithm_1.dom_runInsertionSteps(inclusiveDescendant);
436
- }
437
- if (DOMImpl_1.dom.features.customElements) {
438
- /**
439
- * 7.7.2. If inclusiveDescendant is connected, then:
440
- */
441
- if (util_1.Guard.isElementNode(inclusiveDescendant) &&
442
- ShadowTreeAlgorithm_1.shadowTree_isConnected(inclusiveDescendant)) {
443
- if (util_1.Guard.isCustomElementNode(inclusiveDescendant)) {
444
- /**
445
- * 7.7.2.1. If inclusiveDescendant is custom, then enqueue a custom
446
- * element callback reaction with inclusiveDescendant, callback name
447
- * "connectedCallback", and an empty argument list.
448
- */
449
- CustomElementAlgorithm_1.customElement_enqueueACustomElementCallbackReaction(inclusiveDescendant, "connectedCallback", []);
450
- }
451
- else {
452
- /**
453
- * 7.7.2.2. Otherwise, try to upgrade inclusiveDescendant.
454
- */
455
- CustomElementAlgorithm_1.customElement_tryToUpgrade(inclusiveDescendant);
456
- }
457
- }
458
- }
459
- inclusiveDescendant = TreeAlgorithm_1.tree_getNextDescendantNode(node_1, inclusiveDescendant, true, true);
460
- }
461
- }
462
- /**
463
- * 8. If suppress observers flag is unset, then queue a tree mutation record
464
- * for parent with nodes, « », previousSibling, and child.
465
- */
466
- if (DOMImpl_1.dom.features.mutationObservers) {
467
- if (!suppressObservers) {
468
- MutationObserverAlgorithm_1.observer_queueTreeMutationRecord(parent, nodes, [], previousSibling, child);
469
- }
470
- }
471
- }
472
- exports.mutation_insert = mutation_insert;
473
- /**
474
- * Inserts a node into a parent node. Optimized routine for the common case where
475
- * node is not a document fragment node and it has no child nodes.
476
- *
477
- * @param node - node to insert
478
- * @param parent - parent node to receive node
479
- * @param suppressObservers - whether to notify observers
480
- */
481
- function mutation_insert_single(node, parent, suppressObservers) {
482
- /**
483
- * 1. Let count be the number of children of node if it is a
484
- * DocumentFragment node, and one otherwise.
485
- * 2. If child is non-null, then:
486
- * 2.1. For each live range whose start node is parent and start
487
- * offset is greater than child's index, increase its start
488
- * offset by count.
489
- * 2.2. For each live range whose end node is parent and end
490
- * offset is greater than child's index, increase its end
491
- * offset by count.
492
- * 3. Let nodes be node’s children, if node is a DocumentFragment node;
493
- * otherwise « node ».
494
- * 4. If node is a DocumentFragment node, remove its children with the
495
- * suppress observers flag set.
496
- * 5. If node is a DocumentFragment node, then queue a tree mutation record
497
- * for node with « », nodes, null, and null.
498
- */
499
- /**
500
- * 6. Let previousSibling be child’s previous sibling or parent’s last
501
- * child if child is null.
502
- */
503
- var previousSibling = parent._lastChild;
504
- // set document element node
505
- if (util_1.Guard.isElementNode(node)) {
506
- // set document element node
507
- if (util_1.Guard.isDocumentNode(parent)) {
508
- parent._documentElement = node;
509
- }
510
- // mark that the document has namespaces
511
- if (!node._nodeDocument._hasNamespaces && (node._namespace !== null ||
512
- node._namespacePrefix !== null)) {
513
- node._nodeDocument._hasNamespaces = true;
514
- }
515
- }
516
- /**
517
- * 7. For each node in nodes, in tree order:
518
- * 7.1. If child is null, then append node to parent’s children.
519
- * 7.2. Otherwise, insert node into parent’s children before child’s
520
- * index.
521
- */
522
- node._parent = parent;
523
- parent._children.add(node);
524
- // assign siblings and children for quick lookups
525
- if (parent._firstChild === null) {
526
- node._previousSibling = null;
527
- node._nextSibling = null;
528
- parent._firstChild = node;
529
- parent._lastChild = node;
530
- }
531
- else {
532
- var prev = parent._lastChild;
533
- node._previousSibling = prev;
534
- node._nextSibling = null;
535
- if (prev)
536
- prev._nextSibling = node;
537
- if (!prev)
538
- parent._firstChild = node;
539
- parent._lastChild = node;
540
- }
541
- /**
542
- * 7.3. If parent is a shadow host and node is a slotable, then
543
- * assign a slot for node.
544
- */
545
- if (DOMImpl_1.dom.features.slots) {
546
- if (parent._shadowRoot !== null && util_1.Guard.isSlotable(node)) {
547
- ShadowTreeAlgorithm_1.shadowTree_assignASlot(node);
548
- }
549
- }
550
- /**
551
- * 7.4. If node is a Text node, run the child text content change
552
- * steps for parent.
553
- */
554
- if (DOMImpl_1.dom.features.steps) {
555
- if (util_1.Guard.isTextNode(node)) {
556
- DOMAlgorithm_1.dom_runChildTextContentChangeSteps(parent);
557
- }
558
- }
559
- /**
560
- * 7.5. If parent's root is a shadow root, and parent is a slot
561
- * whose assigned nodes is the empty list, then run signal
562
- * a slot change for parent.
563
- */
564
- if (DOMImpl_1.dom.features.slots) {
565
- if (util_1.Guard.isShadowRoot(TreeAlgorithm_1.tree_rootNode(parent)) &&
566
- util_1.Guard.isSlot(parent) && util_2.isEmpty(parent._assignedNodes)) {
567
- ShadowTreeAlgorithm_1.shadowTree_signalASlotChange(parent);
568
- }
569
- }
570
- /**
571
- * 7.6. Run assign slotables for a tree with node's root.
572
- */
573
- if (DOMImpl_1.dom.features.slots) {
574
- ShadowTreeAlgorithm_1.shadowTree_assignSlotablesForATree(TreeAlgorithm_1.tree_rootNode(node));
575
- }
576
- /**
577
- * 7.7. For each shadow-including inclusive descendant
578
- * inclusiveDescendant of node, in shadow-including tree
579
- * order:
580
- * 7.7.1. Run the insertion steps with inclusiveDescendant.
581
- */
582
- if (DOMImpl_1.dom.features.steps) {
583
- DOMAlgorithm_1.dom_runInsertionSteps(node);
584
- }
585
- if (DOMImpl_1.dom.features.customElements) {
586
- /**
587
- * 7.7.2. If inclusiveDescendant is connected, then:
588
- */
589
- if (util_1.Guard.isElementNode(node) &&
590
- ShadowTreeAlgorithm_1.shadowTree_isConnected(node)) {
591
- if (util_1.Guard.isCustomElementNode(node)) {
592
- /**
593
- * 7.7.2.1. If inclusiveDescendant is custom, then enqueue a custom
594
- * element callback reaction with inclusiveDescendant, callback name
595
- * "connectedCallback", and an empty argument list.
596
- */
597
- CustomElementAlgorithm_1.customElement_enqueueACustomElementCallbackReaction(node, "connectedCallback", []);
598
- }
599
- else {
600
- /**
601
- * 7.7.2.2. Otherwise, try to upgrade inclusiveDescendant.
602
- */
603
- CustomElementAlgorithm_1.customElement_tryToUpgrade(node);
604
- }
605
- }
606
- }
607
- /**
608
- * 8. If suppress observers flag is unset, then queue a tree mutation record
609
- * for parent with nodes, « », previousSibling, and child.
610
- */
611
- if (DOMImpl_1.dom.features.mutationObservers) {
612
- if (!suppressObservers) {
613
- MutationObserverAlgorithm_1.observer_queueTreeMutationRecord(parent, [node], [], previousSibling, null);
614
- }
615
- }
616
- }
617
- /**
618
- * Appends a node to the children of a parent node.
619
- *
620
- * @param node - a node
621
- * @param parent - the parent to receive node
622
- */
623
- function mutation_append(node, parent) {
624
- /**
625
- * To append a node to a parent, pre-insert node into parent before null.
626
- */
627
- return mutation_preInsert(node, parent, null);
628
- }
629
- exports.mutation_append = mutation_append;
630
- /**
631
- * Replaces a node with another node.
632
- *
633
- * @param child - child node to remove
634
- * @param node - node to insert
635
- * @param parent - parent node to receive node
636
- */
637
- function mutation_replace(child, node, parent) {
638
- var e_6, _a, e_7, _b, e_8, _c, e_9, _d;
639
- /**
640
- * 1. If parent is not a Document, DocumentFragment, or Element node,
641
- * throw a "HierarchyRequestError" DOMException.
642
- */
643
- if (parent._nodeType !== interfaces_1.NodeType.Document &&
644
- parent._nodeType !== interfaces_1.NodeType.DocumentFragment &&
645
- parent._nodeType !== interfaces_1.NodeType.Element)
646
- throw new DOMException_1.HierarchyRequestError("Only document, document fragment and element nodes can contain child nodes. Parent node is " + parent.nodeName + ".");
647
- /**
648
- * 2. If node is a host-including inclusive ancestor of parent, throw a
649
- * "HierarchyRequestError" DOMException.
650
- */
651
- if (TreeAlgorithm_1.tree_isHostIncludingAncestorOf(parent, node, true))
652
- throw new DOMException_1.HierarchyRequestError("The node to be inserted cannot be an ancestor of parent node. Node is " + node.nodeName + ", parent node is " + parent.nodeName + ".");
653
- /**
654
- * 3. If child’s parent is not parent, then throw a "NotFoundError"
655
- * DOMException.
656
- */
657
- if (child._parent !== parent)
658
- throw new DOMException_1.NotFoundError("The reference child node cannot be found under parent node. Child node is " + child.nodeName + ", parent node is " + parent.nodeName + ".");
659
- /**
660
- * 4. If node is not a DocumentFragment, DocumentType, Element, Text,
661
- * ProcessingInstruction, or Comment node, throw a "HierarchyRequestError"
662
- * DOMException.
663
- */
664
- if (node._nodeType !== interfaces_1.NodeType.DocumentFragment &&
665
- node._nodeType !== interfaces_1.NodeType.DocumentType &&
666
- node._nodeType !== interfaces_1.NodeType.Element &&
667
- node._nodeType !== interfaces_1.NodeType.Text &&
668
- node._nodeType !== interfaces_1.NodeType.ProcessingInstruction &&
669
- node._nodeType !== interfaces_1.NodeType.CData &&
670
- node._nodeType !== interfaces_1.NodeType.Comment)
671
- throw new DOMException_1.HierarchyRequestError("Only document fragment, document type, element, text, processing instruction, cdata section or comment nodes can be inserted. Node is " + node.nodeName + ".");
672
- /**
673
- * 5. If either node is a Text node and parent is a document, or node is a
674
- * doctype and parent is not a document, throw a "HierarchyRequestError"
675
- * DOMException.
676
- */
677
- if (node._nodeType === interfaces_1.NodeType.Text &&
678
- parent._nodeType === interfaces_1.NodeType.Document)
679
- throw new DOMException_1.HierarchyRequestError("Cannot insert a text node as a child of a document node. Node is " + node.nodeName + ".");
680
- if (node._nodeType === interfaces_1.NodeType.DocumentType &&
681
- parent._nodeType !== interfaces_1.NodeType.Document)
682
- throw new DOMException_1.HierarchyRequestError("A document type node can only be inserted under a document node. Parent node is " + parent.nodeName + ".");
683
- /**
684
- * 6. If parent is a document, and any of the statements below, switched on
685
- * node, are true, throw a "HierarchyRequestError" DOMException.
686
- * - DocumentFragment node
687
- * If node has more than one element child or has a Text node child.
688
- * Otherwise, if node has one element child and either parent has an element
689
- * child that is not child or a doctype is following child.
690
- * - element
691
- * parent has an element child that is not child or a doctype is
692
- * following child.
693
- * - doctype
694
- * parent has a doctype child that is not child, or an element is
695
- * preceding child.
696
- */
697
- if (parent._nodeType === interfaces_1.NodeType.Document) {
698
- if (node._nodeType === interfaces_1.NodeType.DocumentFragment) {
699
- var eleCount = 0;
700
- try {
701
- for (var _e = __values(node._children), _f = _e.next(); !_f.done; _f = _e.next()) {
702
- var childNode = _f.value;
703
- if (childNode._nodeType === interfaces_1.NodeType.Element)
704
- eleCount++;
705
- else if (childNode._nodeType === interfaces_1.NodeType.Text)
706
- throw new DOMException_1.HierarchyRequestError("Cannot insert text a node as a child of a document node. Node is " + childNode.nodeName + ".");
707
- }
708
- }
709
- catch (e_6_1) { e_6 = { error: e_6_1 }; }
710
- finally {
711
- try {
712
- if (_f && !_f.done && (_a = _e.return)) _a.call(_e);
713
- }
714
- finally { if (e_6) throw e_6.error; }
715
- }
716
- if (eleCount > 1) {
717
- throw new DOMException_1.HierarchyRequestError("A document node can only have one document element node. Document fragment to be inserted has " + eleCount + " element nodes.");
718
- }
719
- else if (eleCount === 1) {
720
- try {
721
- for (var _g = __values(parent._children), _h = _g.next(); !_h.done; _h = _g.next()) {
722
- var ele = _h.value;
723
- if (ele._nodeType === interfaces_1.NodeType.Element && ele !== child)
724
- throw new DOMException_1.HierarchyRequestError("The document node already has a document element node.");
725
- }
726
- }
727
- catch (e_7_1) { e_7 = { error: e_7_1 }; }
728
- finally {
729
- try {
730
- if (_h && !_h.done && (_b = _g.return)) _b.call(_g);
731
- }
732
- finally { if (e_7) throw e_7.error; }
733
- }
734
- var doctypeChild = child._nextSibling;
735
- while (doctypeChild) {
736
- if (doctypeChild._nodeType === interfaces_1.NodeType.DocumentType)
737
- throw new DOMException_1.HierarchyRequestError("Cannot insert an element node before a document type node.");
738
- doctypeChild = doctypeChild._nextSibling;
739
- }
740
- }
741
- }
742
- else if (node._nodeType === interfaces_1.NodeType.Element) {
743
- try {
744
- for (var _j = __values(parent._children), _k = _j.next(); !_k.done; _k = _j.next()) {
745
- var ele = _k.value;
746
- if (ele._nodeType === interfaces_1.NodeType.Element && ele !== child)
747
- throw new DOMException_1.HierarchyRequestError("Document already has a document element node. Node is " + node.nodeName + ".");
748
- }
749
- }
750
- catch (e_8_1) { e_8 = { error: e_8_1 }; }
751
- finally {
752
- try {
753
- if (_k && !_k.done && (_c = _j.return)) _c.call(_j);
754
- }
755
- finally { if (e_8) throw e_8.error; }
756
- }
757
- var doctypeChild = child._nextSibling;
758
- while (doctypeChild) {
759
- if (doctypeChild._nodeType === interfaces_1.NodeType.DocumentType)
760
- throw new DOMException_1.HierarchyRequestError("Cannot insert an element node before a document type node. Node is " + node.nodeName + ".");
761
- doctypeChild = doctypeChild._nextSibling;
762
- }
763
- }
764
- else if (node._nodeType === interfaces_1.NodeType.DocumentType) {
765
- try {
766
- for (var _l = __values(parent._children), _m = _l.next(); !_m.done; _m = _l.next()) {
767
- var ele = _m.value;
768
- if (ele._nodeType === interfaces_1.NodeType.DocumentType && ele !== child)
769
- throw new DOMException_1.HierarchyRequestError("Document already has a document type node. Node is " + node.nodeName + ".");
770
- }
771
- }
772
- catch (e_9_1) { e_9 = { error: e_9_1 }; }
773
- finally {
774
- try {
775
- if (_m && !_m.done && (_d = _l.return)) _d.call(_l);
776
- }
777
- finally { if (e_9) throw e_9.error; }
778
- }
779
- var elementChild = child._previousSibling;
780
- while (elementChild) {
781
- if (elementChild._nodeType === interfaces_1.NodeType.Element)
782
- throw new DOMException_1.HierarchyRequestError("Cannot insert a document type node before an element node. Node is " + node.nodeName + ".");
783
- elementChild = elementChild._previousSibling;
784
- }
785
- }
786
- }
787
- /**
788
- * 7. Let reference child be child’s next sibling.
789
- * 8. If reference child is node, set it to node’s next sibling.
790
- * 8. Let previousSibling be child’s previous sibling.
791
- */
792
- var referenceChild = child._nextSibling;
793
- if (referenceChild === node)
794
- referenceChild = node._nextSibling;
795
- var previousSibling = child._previousSibling;
796
- /**
797
- * 10. Adopt node into parent’s node document.
798
- * 11. Let removedNodes be the empty list.
799
- */
800
- DocumentAlgorithm_1.document_adopt(node, parent._nodeDocument);
801
- var removedNodes = [];
802
- /**
803
- * 12. If child’s parent is not null, then:
804
- */
805
- if (child._parent !== null) {
806
- /**
807
- * 12.1. Set removedNodes to [child].
808
- * 12.2. Remove child from its parent with the suppress observers flag
809
- * set.
810
- */
811
- removedNodes.push(child);
812
- mutation_remove(child, child._parent, true);
813
- }
814
- /**
815
- * 13. Let nodes be node’s children if node is a DocumentFragment node;
816
- * otherwise [node].
817
- */
818
- var nodes = [];
819
- if (node._nodeType === interfaces_1.NodeType.DocumentFragment) {
820
- nodes = Array.from(node._children);
821
- }
822
- else {
823
- nodes.push(node);
824
- }
825
- /**
826
- * 14. Insert node into parent before reference child with the suppress
827
- * observers flag set.
828
- */
829
- mutation_insert(node, parent, referenceChild, true);
830
- /**
831
- * 15. Queue a tree mutation record for parent with nodes, removedNodes,
832
- * previousSibling, and reference child.
833
- */
834
- if (DOMImpl_1.dom.features.mutationObservers) {
835
- MutationObserverAlgorithm_1.observer_queueTreeMutationRecord(parent, nodes, removedNodes, previousSibling, referenceChild);
836
- }
837
- /**
838
- * 16. Return child.
839
- */
840
- return child;
841
- }
842
- exports.mutation_replace = mutation_replace;
843
- /**
844
- * Replaces all nodes of a parent with the given node.
845
- *
846
- * @param node - node to insert
847
- * @param parent - parent node to receive node
848
- */
849
- function mutation_replaceAll(node, parent) {
850
- var e_10, _a;
851
- /**
852
- * 1. If node is not null, adopt node into parent’s node document.
853
- */
854
- if (node !== null) {
855
- DocumentAlgorithm_1.document_adopt(node, parent._nodeDocument);
856
- }
857
- /**
858
- * 2. Let removedNodes be parent’s children.
859
- */
860
- var removedNodes = Array.from(parent._children);
861
- /**
862
- * 3. Let addedNodes be the empty list.
863
- * 4. If node is DocumentFragment node, then set addedNodes to node’s
864
- * children.
865
- * 5. Otherwise, if node is non-null, set addedNodes to [node].
866
- */
867
- var addedNodes = [];
868
- if (node && node._nodeType === interfaces_1.NodeType.DocumentFragment) {
869
- addedNodes = Array.from(node._children);
870
- }
871
- else if (node !== null) {
872
- addedNodes.push(node);
873
- }
874
- try {
875
- /**
876
- * 6. Remove all parent’s children, in tree order, with the suppress
877
- * observers flag set.
878
- */
879
- for (var removedNodes_1 = __values(removedNodes), removedNodes_1_1 = removedNodes_1.next(); !removedNodes_1_1.done; removedNodes_1_1 = removedNodes_1.next()) {
880
- var childNode = removedNodes_1_1.value;
881
- mutation_remove(childNode, parent, true);
882
- }
883
- }
884
- catch (e_10_1) { e_10 = { error: e_10_1 }; }
885
- finally {
886
- try {
887
- if (removedNodes_1_1 && !removedNodes_1_1.done && (_a = removedNodes_1.return)) _a.call(removedNodes_1);
888
- }
889
- finally { if (e_10) throw e_10.error; }
890
- }
891
- /**
892
- * 7. If node is not null, then insert node into parent before null with the
893
- * suppress observers flag set.
894
- */
895
- if (node !== null) {
896
- mutation_insert(node, parent, null, true);
897
- }
898
- /**
899
- * 8. Queue a tree mutation record for parent with addedNodes, removedNodes,
900
- * null, and null.
901
- */
902
- if (DOMImpl_1.dom.features.mutationObservers) {
903
- MutationObserverAlgorithm_1.observer_queueTreeMutationRecord(parent, addedNodes, removedNodes, null, null);
904
- }
905
- }
906
- exports.mutation_replaceAll = mutation_replaceAll;
907
- /**
908
- * Ensures pre-removal validity of a child node from a parent, then
909
- * removes it.
910
- *
911
- * @param child - child node to remove
912
- * @param parent - parent node
913
- */
914
- function mutation_preRemove(child, parent) {
915
- /**
916
- * 1. If child’s parent is not parent, then throw a "NotFoundError"
917
- * DOMException.
918
- * 2. Remove child from parent.
919
- * 3. Return child.
920
- */
921
- if (child._parent !== parent)
922
- throw new DOMException_1.NotFoundError("The child node cannot be found under parent node. Child node is " + child.nodeName + ", parent node is " + parent.nodeName + ".");
923
- mutation_remove(child, parent);
924
- return child;
925
- }
926
- exports.mutation_preRemove = mutation_preRemove;
927
- /**
928
- * Removes a child node from its parent.
929
- *
930
- * @param node - node to remove
931
- * @param parent - parent node
932
- * @param suppressObservers - whether to notify observers
933
- */
934
- function mutation_remove(node, parent, suppressObservers) {
935
- var e_11, _a, e_12, _b, e_13, _c, e_14, _d;
936
- if (DOMImpl_1.dom.rangeList.size !== 0) {
937
- /**
938
- * 1. Let index be node’s index.
939
- */
940
- var index = TreeAlgorithm_1.tree_index(node);
941
- try {
942
- /**
943
- * 2. For each live range whose start node is an inclusive descendant of
944
- * node, set its start to (parent, index).
945
- * 3. For each live range whose end node is an inclusive descendant of
946
- * node, set its end to (parent, index).
947
- */
948
- for (var _e = __values(DOMImpl_1.dom.rangeList), _f = _e.next(); !_f.done; _f = _e.next()) {
949
- var range = _f.value;
950
- if (TreeAlgorithm_1.tree_isDescendantOf(node, range._start[0], true)) {
951
- range._start = [parent, index];
952
- }
953
- if (TreeAlgorithm_1.tree_isDescendantOf(node, range._end[0], true)) {
954
- range._end = [parent, index];
955
- }
956
- if (range._start[0] === parent && range._start[1] > index) {
957
- range._start[1]--;
958
- }
959
- if (range._end[0] === parent && range._end[1] > index) {
960
- range._end[1]--;
961
- }
962
- }
963
- }
964
- catch (e_11_1) { e_11 = { error: e_11_1 }; }
965
- finally {
966
- try {
967
- if (_f && !_f.done && (_a = _e.return)) _a.call(_e);
968
- }
969
- finally { if (e_11) throw e_11.error; }
970
- }
971
- try {
972
- /**
973
- * 4. For each live range whose start node is parent and start offset is
974
- * greater than index, decrease its start offset by 1.
975
- * 5. For each live range whose end node is parent and end offset is greater
976
- * than index, decrease its end offset by 1.
977
- */
978
- for (var _g = __values(DOMImpl_1.dom.rangeList), _h = _g.next(); !_h.done; _h = _g.next()) {
979
- var range = _h.value;
980
- if (range._start[0] === parent && range._start[1] > index) {
981
- range._start[1] -= 1;
982
- }
983
- if (range._end[0] === parent && range._end[1] > index) {
984
- range._end[1] -= 1;
985
- }
986
- }
987
- }
988
- catch (e_12_1) { e_12 = { error: e_12_1 }; }
989
- finally {
990
- try {
991
- if (_h && !_h.done && (_b = _g.return)) _b.call(_g);
992
- }
993
- finally { if (e_12) throw e_12.error; }
994
- }
995
- }
996
- /**
997
- * 6. For each NodeIterator object iterator whose root’s node document is
998
- * node’s node document, run the NodeIterator pre-removing steps given node
999
- * and iterator.
1000
- */
1001
- if (DOMImpl_1.dom.features.steps) {
1002
- try {
1003
- for (var _j = __values(NodeIteratorAlgorithm_1.nodeIterator_iteratorList()), _k = _j.next(); !_k.done; _k = _j.next()) {
1004
- var iterator = _k.value;
1005
- if (iterator._root._nodeDocument === node._nodeDocument) {
1006
- DOMAlgorithm_1.dom_runNodeIteratorPreRemovingSteps(iterator, node);
1007
- }
1008
- }
1009
- }
1010
- catch (e_13_1) { e_13 = { error: e_13_1 }; }
1011
- finally {
1012
- try {
1013
- if (_k && !_k.done && (_c = _j.return)) _c.call(_j);
1014
- }
1015
- finally { if (e_13) throw e_13.error; }
1016
- }
1017
- }
1018
- /**
1019
- * 7. Let oldPreviousSibling be node’s previous sibling.
1020
- * 8. Let oldNextSibling be node’s next sibling.
1021
- */
1022
- var oldPreviousSibling = node._previousSibling;
1023
- var oldNextSibling = node._nextSibling;
1024
- // set document element node
1025
- if (util_1.Guard.isDocumentNode(parent) && util_1.Guard.isElementNode(node)) {
1026
- parent._documentElement = null;
1027
- }
1028
- /**
1029
- * 9. Remove node from its parent’s children.
1030
- */
1031
- node._parent = null;
1032
- parent._children.delete(node);
1033
- // assign siblings and children for quick lookups
1034
- var prev = node._previousSibling;
1035
- var next = node._nextSibling;
1036
- node._previousSibling = null;
1037
- node._nextSibling = null;
1038
- if (prev)
1039
- prev._nextSibling = next;
1040
- if (next)
1041
- next._previousSibling = prev;
1042
- if (!prev)
1043
- parent._firstChild = next;
1044
- if (!next)
1045
- parent._lastChild = prev;
1046
- /**
1047
- * 10. If node is assigned, then run assign slotables for node’s assigned
1048
- * slot.
1049
- */
1050
- if (DOMImpl_1.dom.features.slots) {
1051
- if (util_1.Guard.isSlotable(node) && node._assignedSlot !== null && ShadowTreeAlgorithm_1.shadowTree_isAssigned(node)) {
1052
- ShadowTreeAlgorithm_1.shadowTree_assignSlotables(node._assignedSlot);
1053
- }
1054
- }
1055
- /**
1056
- * 11. If parent’s root is a shadow root, and parent is a slot whose
1057
- * assigned nodes is the empty list, then run signal a slot change for
1058
- * parent.
1059
- */
1060
- if (DOMImpl_1.dom.features.slots) {
1061
- if (util_1.Guard.isShadowRoot(TreeAlgorithm_1.tree_rootNode(parent)) &&
1062
- util_1.Guard.isSlot(parent) && util_2.isEmpty(parent._assignedNodes)) {
1063
- ShadowTreeAlgorithm_1.shadowTree_signalASlotChange(parent);
1064
- }
1065
- }
1066
- /**
1067
- * 12. If node has an inclusive descendant that is a slot, then:
1068
- * 12.1. Run assign slotables for a tree with parent's root.
1069
- * 12.2. Run assign slotables for a tree with node.
1070
- */
1071
- if (DOMImpl_1.dom.features.slots) {
1072
- var descendant_1 = TreeAlgorithm_1.tree_getFirstDescendantNode(node, true, false, function (e) { return util_1.Guard.isSlot(e); });
1073
- if (descendant_1 !== null) {
1074
- ShadowTreeAlgorithm_1.shadowTree_assignSlotablesForATree(TreeAlgorithm_1.tree_rootNode(parent));
1075
- ShadowTreeAlgorithm_1.shadowTree_assignSlotablesForATree(node);
1076
- }
1077
- }
1078
- /**
1079
- * 13. Run the removing steps with node and parent.
1080
- */
1081
- if (DOMImpl_1.dom.features.steps) {
1082
- DOMAlgorithm_1.dom_runRemovingSteps(node, parent);
1083
- }
1084
- /**
1085
- * 14. If node is custom, then enqueue a custom element callback
1086
- * reaction with node, callback name "disconnectedCallback",
1087
- * and an empty argument list.
1088
- */
1089
- if (DOMImpl_1.dom.features.customElements) {
1090
- if (util_1.Guard.isCustomElementNode(node)) {
1091
- CustomElementAlgorithm_1.customElement_enqueueACustomElementCallbackReaction(node, "disconnectedCallback", []);
1092
- }
1093
- }
1094
- /**
1095
- * 15. For each shadow-including descendant descendant of node,
1096
- * in shadow-including tree order, then:
1097
- */
1098
- var descendant = TreeAlgorithm_1.tree_getFirstDescendantNode(node, false, true);
1099
- while (descendant !== null) {
1100
- /**
1101
- * 15.1. Run the removing steps with descendant.
1102
- */
1103
- if (DOMImpl_1.dom.features.steps) {
1104
- DOMAlgorithm_1.dom_runRemovingSteps(descendant, node);
1105
- }
1106
- /**
1107
- * 15.2. If descendant is custom, then enqueue a custom element
1108
- * callback reaction with descendant, callback name
1109
- * "disconnectedCallback", and an empty argument list.
1110
- */
1111
- if (DOMImpl_1.dom.features.customElements) {
1112
- if (util_1.Guard.isCustomElementNode(descendant)) {
1113
- CustomElementAlgorithm_1.customElement_enqueueACustomElementCallbackReaction(descendant, "disconnectedCallback", []);
1114
- }
1115
- }
1116
- descendant = TreeAlgorithm_1.tree_getNextDescendantNode(node, descendant, false, true);
1117
- }
1118
- /**
1119
- * 16. For each inclusive ancestor inclusiveAncestor of parent, and
1120
- * then for each registered of inclusiveAncestor's registered
1121
- * observer list, if registered's options's subtree is true,
1122
- * then append a new transient registered observer whose
1123
- * observer is registered's observer, options is registered's
1124
- * options, and source is registered to node's registered
1125
- * observer list.
1126
- */
1127
- if (DOMImpl_1.dom.features.mutationObservers) {
1128
- var inclusiveAncestor = TreeAlgorithm_1.tree_getFirstAncestorNode(parent, true);
1129
- while (inclusiveAncestor !== null) {
1130
- try {
1131
- for (var _l = (e_14 = void 0, __values(inclusiveAncestor._registeredObserverList)), _m = _l.next(); !_m.done; _m = _l.next()) {
1132
- var registered = _m.value;
1133
- if (registered.options.subtree) {
1134
- node._registeredObserverList.push({
1135
- observer: registered.observer,
1136
- options: registered.options,
1137
- source: registered
1138
- });
1139
- }
1140
- }
1141
- }
1142
- catch (e_14_1) { e_14 = { error: e_14_1 }; }
1143
- finally {
1144
- try {
1145
- if (_m && !_m.done && (_d = _l.return)) _d.call(_l);
1146
- }
1147
- finally { if (e_14) throw e_14.error; }
1148
- }
1149
- inclusiveAncestor = TreeAlgorithm_1.tree_getNextAncestorNode(parent, inclusiveAncestor, true);
1150
- }
1151
- }
1152
- /**
1153
- * 17. If suppress observers flag is unset, then queue a tree mutation
1154
- * record for parent with « », « node », oldPreviousSibling, and
1155
- * oldNextSibling.
1156
- */
1157
- if (DOMImpl_1.dom.features.mutationObservers) {
1158
- if (!suppressObservers) {
1159
- MutationObserverAlgorithm_1.observer_queueTreeMutationRecord(parent, [], [node], oldPreviousSibling, oldNextSibling);
1160
- }
1161
- }
1162
- /**
1163
- * 18. If node is a Text node, then run the child text content change steps
1164
- * for parent.
1165
- */
1166
- if (DOMImpl_1.dom.features.steps) {
1167
- if (util_1.Guard.isTextNode(node)) {
1168
- DOMAlgorithm_1.dom_runChildTextContentChangeSteps(parent);
1169
- }
1170
- }
1171
- }
1172
- exports.mutation_remove = mutation_remove;
1173
- //# sourceMappingURL=MutationAlgorithm.js.map