@smartbills/sdk 0.0.2-alpha.11 → 0.0.2-alpha.14

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 (465) hide show
  1. package/dist/@types/client/SBErrorResponse.d.ts +6 -4
  2. package/dist/@types/client/SBException.d.ts +11 -6
  3. package/dist/@types/index.d.ts +3 -3
  4. package/dist/@types/services/bank-accounts/BankAccountService.d.ts +3 -3
  5. package/dist/@types/services/bank-transactions/BankTransactionListRequest.d.ts +8 -0
  6. package/dist/@types/services/bank-transactions/BankTransactionListRequest.d.ts.map +1 -0
  7. package/dist/@types/services/bank-transactions/BankTransactionService.d.ts +3 -3
  8. package/dist/@types/services/banks/BankService.d.ts +3 -2
  9. package/dist/@types/services/receipts/BankTransactionAssociateRequest.d.ts +2 -2
  10. package/dist/@types/services/receipts/ReceiptService.d.ts +2 -2
  11. package/dist/cjs/client/SBClient.cjs +2 -1
  12. package/dist/cjs/client/SBClient.cjs.map +1 -1
  13. package/dist/cjs/client/SBCredentials.cjs +1 -1
  14. package/dist/cjs/client/SBEnvironment.cjs +1 -1
  15. package/dist/cjs/client/SBException.cjs +26 -7
  16. package/dist/cjs/client/SBException.cjs.map +1 -1
  17. package/dist/cjs/client/SBInstance.cjs +3 -4
  18. package/dist/cjs/client/SBInstance.cjs.map +1 -1
  19. package/dist/cjs/client/SBLogger.cjs +1 -1
  20. package/dist/cjs/index.cjs +1 -2
  21. package/dist/cjs/index.cjs.map +1 -1
  22. package/dist/cjs/node_modules/@babel/runtime/helpers/esm/defineProperty.cjs.map +1 -0
  23. package/dist/cjs/node_modules/@babel/runtime/helpers/esm/toPrimitive.cjs.map +1 -0
  24. package/dist/cjs/node_modules/@babel/runtime/helpers/esm/toPropertyKey.cjs.map +1 -0
  25. package/dist/cjs/node_modules/@babel/runtime/helpers/esm/typeof.cjs.map +1 -0
  26. package/dist/cjs/packages/sdk/package.json.cjs +1 -1
  27. package/dist/cjs/services/SBService.cjs +9 -9
  28. package/dist/cjs/services/SBService.cjs.map +1 -1
  29. package/dist/cjs/services/bank-accounts/BankAccountService.cjs.map +1 -1
  30. package/dist/cjs/services/bank-transactions/BankTransactionService.cjs.map +1 -1
  31. package/dist/cjs/services/banks/BankService.cjs.map +1 -1
  32. package/dist/cjs/services/customers/CustomerService.cjs +1 -1
  33. package/dist/cjs/services/discounts/DiscountService.cjs.map +1 -1
  34. package/dist/cjs/services/oauth/AccessTokenResponse.cjs +1 -1
  35. package/dist/cjs/services/oauth/AuthorizationCodeResponse.cjs +3 -3
  36. package/dist/cjs/services/oauth/AuthorizationCodeResponse.cjs.map +1 -1
  37. package/dist/cjs/services/oauth/OAuthService.cjs +3 -3
  38. package/dist/cjs/services/oauth/OAuthService.cjs.map +1 -1
  39. package/dist/cjs/services/promo-codes/PromoCodeService.cjs.map +1 -1
  40. package/dist/cjs/services/receipts/ReceiptService.cjs +1 -1
  41. package/dist/cjs/services/receipts/ReceiptService.cjs.map +1 -1
  42. package/dist/cjs/services/reviews/ReviewService.cjs.map +1 -1
  43. package/dist/cjs/services/settlements/SettlementService.cjs.map +1 -1
  44. package/dist/cjs/services/taxes/TaxService.cjs.map +1 -1
  45. package/dist/cjs/services/transactions/TransactionService.cjs.map +1 -1
  46. package/dist/esm/client/SBClient.mjs +2 -1
  47. package/dist/esm/client/SBClient.mjs.map +1 -1
  48. package/dist/esm/client/SBCredentials.mjs +1 -1
  49. package/dist/esm/client/SBEnvironment.mjs +1 -1
  50. package/dist/esm/client/SBException.mjs +26 -8
  51. package/dist/esm/client/SBException.mjs.map +1 -1
  52. package/dist/esm/client/SBInstance.mjs +4 -5
  53. package/dist/esm/client/SBInstance.mjs.map +1 -1
  54. package/dist/esm/client/SBLogger.mjs +1 -1
  55. package/dist/esm/index.mjs +1 -2
  56. package/dist/esm/index.mjs.map +1 -1
  57. package/dist/esm/node_modules/@babel/runtime/helpers/esm/defineProperty.mjs.map +1 -0
  58. package/dist/esm/node_modules/@babel/runtime/helpers/esm/toPrimitive.mjs.map +1 -0
  59. package/dist/esm/node_modules/@babel/runtime/helpers/esm/toPropertyKey.mjs.map +1 -0
  60. package/dist/esm/node_modules/@babel/runtime/helpers/esm/typeof.mjs.map +1 -0
  61. package/dist/esm/packages/sdk/package.json.mjs +1 -1
  62. package/dist/esm/services/SBService.mjs +9 -9
  63. package/dist/esm/services/SBService.mjs.map +1 -1
  64. package/dist/esm/services/bank-accounts/BankAccountService.mjs.map +1 -1
  65. package/dist/esm/services/bank-transactions/BankTransactionService.mjs.map +1 -1
  66. package/dist/esm/services/banks/BankService.mjs.map +1 -1
  67. package/dist/esm/services/customers/CustomerService.mjs +1 -1
  68. package/dist/esm/services/discounts/DiscountService.mjs.map +1 -1
  69. package/dist/esm/services/oauth/AccessTokenResponse.mjs +1 -1
  70. package/dist/esm/services/oauth/AuthorizationCodeResponse.mjs +3 -3
  71. package/dist/esm/services/oauth/AuthorizationCodeResponse.mjs.map +1 -1
  72. package/dist/esm/services/oauth/OAuthService.mjs +3 -3
  73. package/dist/esm/services/oauth/OAuthService.mjs.map +1 -1
  74. package/dist/esm/services/promo-codes/PromoCodeService.mjs.map +1 -1
  75. package/dist/esm/services/receipts/ReceiptService.mjs +1 -1
  76. package/dist/esm/services/receipts/ReceiptService.mjs.map +1 -1
  77. package/dist/esm/services/reviews/ReviewService.mjs.map +1 -1
  78. package/dist/esm/services/settlements/SettlementService.mjs.map +1 -1
  79. package/dist/esm/services/taxes/TaxService.mjs.map +1 -1
  80. package/dist/esm/services/transactions/TransactionService.mjs.map +1 -1
  81. package/dist/umd/index.js +240 -10842
  82. package/dist/umd/index.js.map +1 -1
  83. package/package.json +12 -11
  84. package/dist/@types/services/bank-transactions/GetBankTransactionsRequest.d.ts +0 -9
  85. package/dist/@types/services/bank-transactions/GetBankTransactionsRequest.d.ts.map +0 -1
  86. package/dist/cjs/_virtual/_commonjsHelpers.cjs +0 -32
  87. package/dist/cjs/_virtual/_commonjsHelpers.cjs.map +0 -1
  88. package/dist/cjs/_virtual/aliases.cjs +0 -6
  89. package/dist/cjs/_virtual/aliases.cjs.map +0 -1
  90. package/dist/cjs/_virtual/attributes.cjs +0 -6
  91. package/dist/cjs/_virtual/attributes.cjs.map +0 -1
  92. package/dist/cjs/_virtual/back.cjs +0 -6
  93. package/dist/cjs/_virtual/back.cjs.map +0 -1
  94. package/dist/cjs/_virtual/comment.cjs +0 -6
  95. package/dist/cjs/_virtual/comment.cjs.map +0 -1
  96. package/dist/cjs/_virtual/compile.cjs +0 -6
  97. package/dist/cjs/_virtual/compile.cjs.map +0 -1
  98. package/dist/cjs/_virtual/compile2.cjs +0 -6
  99. package/dist/cjs/_virtual/compile2.cjs.map +0 -1
  100. package/dist/cjs/_virtual/feeds.cjs +0 -6
  101. package/dist/cjs/_virtual/feeds.cjs.map +0 -1
  102. package/dist/cjs/_virtual/filters.cjs +0 -6
  103. package/dist/cjs/_virtual/filters.cjs.map +0 -1
  104. package/dist/cjs/_virtual/foreignNames.cjs +0 -6
  105. package/dist/cjs/_virtual/foreignNames.cjs.map +0 -1
  106. package/dist/cjs/_virtual/general.cjs +0 -6
  107. package/dist/cjs/_virtual/general.cjs.map +0 -1
  108. package/dist/cjs/_virtual/he.cjs +0 -6
  109. package/dist/cjs/_virtual/he.cjs.map +0 -1
  110. package/dist/cjs/_virtual/helpers.cjs +0 -6
  111. package/dist/cjs/_virtual/helpers.cjs.map +0 -1
  112. package/dist/cjs/_virtual/html.cjs +0 -6
  113. package/dist/cjs/_virtual/html.cjs.map +0 -1
  114. package/dist/cjs/_virtual/index.cjs +0 -6
  115. package/dist/cjs/_virtual/index.cjs.map +0 -1
  116. package/dist/cjs/_virtual/index10.cjs +0 -11
  117. package/dist/cjs/_virtual/index10.cjs.map +0 -1
  118. package/dist/cjs/_virtual/index2.cjs +0 -6
  119. package/dist/cjs/_virtual/index2.cjs.map +0 -1
  120. package/dist/cjs/_virtual/index3.cjs +0 -6
  121. package/dist/cjs/_virtual/index3.cjs.map +0 -1
  122. package/dist/cjs/_virtual/index4.cjs +0 -6
  123. package/dist/cjs/_virtual/index4.cjs.map +0 -1
  124. package/dist/cjs/_virtual/index5.cjs +0 -11
  125. package/dist/cjs/_virtual/index5.cjs.map +0 -1
  126. package/dist/cjs/_virtual/index6.cjs +0 -6
  127. package/dist/cjs/_virtual/index6.cjs.map +0 -1
  128. package/dist/cjs/_virtual/index7.cjs +0 -6
  129. package/dist/cjs/_virtual/index7.cjs.map +0 -1
  130. package/dist/cjs/_virtual/index8.cjs +0 -6
  131. package/dist/cjs/_virtual/index8.cjs.map +0 -1
  132. package/dist/cjs/_virtual/index9.cjs +0 -6
  133. package/dist/cjs/_virtual/index9.cjs.map +0 -1
  134. package/dist/cjs/_virtual/legacy.cjs +0 -6
  135. package/dist/cjs/_virtual/legacy.cjs.map +0 -1
  136. package/dist/cjs/_virtual/manipulation.cjs +0 -6
  137. package/dist/cjs/_virtual/manipulation.cjs.map +0 -1
  138. package/dist/cjs/_virtual/matcher.cjs +0 -6
  139. package/dist/cjs/_virtual/matcher.cjs.map +0 -1
  140. package/dist/cjs/_virtual/node.cjs +0 -6
  141. package/dist/cjs/_virtual/node.cjs.map +0 -1
  142. package/dist/cjs/_virtual/node2.cjs +0 -6
  143. package/dist/cjs/_virtual/node2.cjs.map +0 -1
  144. package/dist/cjs/_virtual/parse.cjs +0 -6
  145. package/dist/cjs/_virtual/parse.cjs.map +0 -1
  146. package/dist/cjs/_virtual/parse2.cjs +0 -6
  147. package/dist/cjs/_virtual/parse2.cjs.map +0 -1
  148. package/dist/cjs/_virtual/pseudos.cjs +0 -6
  149. package/dist/cjs/_virtual/pseudos.cjs.map +0 -1
  150. package/dist/cjs/_virtual/querying.cjs +0 -6
  151. package/dist/cjs/_virtual/querying.cjs.map +0 -1
  152. package/dist/cjs/_virtual/sort.cjs +0 -6
  153. package/dist/cjs/_virtual/sort.cjs.map +0 -1
  154. package/dist/cjs/_virtual/stringify.cjs +0 -6
  155. package/dist/cjs/_virtual/stringify.cjs.map +0 -1
  156. package/dist/cjs/_virtual/subselects.cjs +0 -6
  157. package/dist/cjs/_virtual/subselects.cjs.map +0 -1
  158. package/dist/cjs/_virtual/text.cjs +0 -6
  159. package/dist/cjs/_virtual/text.cjs.map +0 -1
  160. package/dist/cjs/_virtual/traversal.cjs +0 -6
  161. package/dist/cjs/_virtual/traversal.cjs.map +0 -1
  162. package/dist/cjs/_virtual/type.cjs +0 -6
  163. package/dist/cjs/_virtual/type.cjs.map +0 -1
  164. package/dist/cjs/_virtual/valid.cjs +0 -6
  165. package/dist/cjs/_virtual/valid.cjs.map +0 -1
  166. package/dist/cjs/_virtual/void-tag.cjs +0 -6
  167. package/dist/cjs/_virtual/void-tag.cjs.map +0 -1
  168. package/dist/cjs/client/SBErrorResponse.cjs +0 -13
  169. package/dist/cjs/client/SBErrorResponse.cjs.map +0 -1
  170. package/dist/cjs/entities/index.cjs +0 -88
  171. package/dist/cjs/entities/index.cjs.map +0 -1
  172. package/dist/cjs/node_modules/.store/@babel-runtime-npm-7.25.0-a7bca33687/package/helpers/esm/defineProperty.cjs.map +0 -1
  173. package/dist/cjs/node_modules/.store/@babel-runtime-npm-7.25.0-a7bca33687/package/helpers/esm/toPrimitive.cjs.map +0 -1
  174. package/dist/cjs/node_modules/.store/@babel-runtime-npm-7.25.0-a7bca33687/package/helpers/esm/toPropertyKey.cjs.map +0 -1
  175. package/dist/cjs/node_modules/.store/@babel-runtime-npm-7.25.0-a7bca33687/package/helpers/esm/typeof.cjs.map +0 -1
  176. package/dist/cjs/node_modules/.store/boolbase-npm-1.0.0-965fe9af6d/package/index.cjs +0 -13
  177. package/dist/cjs/node_modules/.store/boolbase-npm-1.0.0-965fe9af6d/package/index.cjs.map +0 -1
  178. package/dist/cjs/node_modules/.store/css-select-npm-5.1.0-9365a79de5/package/lib/attributes.cjs +0 -176
  179. package/dist/cjs/node_modules/.store/css-select-npm-5.1.0-9365a79de5/package/lib/attributes.cjs.map +0 -1
  180. package/dist/cjs/node_modules/.store/css-select-npm-5.1.0-9365a79de5/package/lib/compile.cjs +0 -165
  181. package/dist/cjs/node_modules/.store/css-select-npm-5.1.0-9365a79de5/package/lib/compile.cjs.map +0 -1
  182. package/dist/cjs/node_modules/.store/css-select-npm-5.1.0-9365a79de5/package/lib/general.cjs +0 -171
  183. package/dist/cjs/node_modules/.store/css-select-npm-5.1.0-9365a79de5/package/lib/general.cjs.map +0 -1
  184. package/dist/cjs/node_modules/.store/css-select-npm-5.1.0-9365a79de5/package/lib/index.cjs +0 -195
  185. package/dist/cjs/node_modules/.store/css-select-npm-5.1.0-9365a79de5/package/lib/index.cjs.map +0 -1
  186. package/dist/cjs/node_modules/.store/css-select-npm-5.1.0-9365a79de5/package/lib/pseudo-selectors/aliases.cjs +0 -43
  187. package/dist/cjs/node_modules/.store/css-select-npm-5.1.0-9365a79de5/package/lib/pseudo-selectors/aliases.cjs.map +0 -1
  188. package/dist/cjs/node_modules/.store/css-select-npm-5.1.0-9365a79de5/package/lib/pseudo-selectors/filters.cjs +0 -164
  189. package/dist/cjs/node_modules/.store/css-select-npm-5.1.0-9365a79de5/package/lib/pseudo-selectors/filters.cjs.map +0 -1
  190. package/dist/cjs/node_modules/.store/css-select-npm-5.1.0-9365a79de5/package/lib/pseudo-selectors/index.cjs +0 -83
  191. package/dist/cjs/node_modules/.store/css-select-npm-5.1.0-9365a79de5/package/lib/pseudo-selectors/index.cjs.map +0 -1
  192. package/dist/cjs/node_modules/.store/css-select-npm-5.1.0-9365a79de5/package/lib/pseudo-selectors/pseudos.cjs +0 -97
  193. package/dist/cjs/node_modules/.store/css-select-npm-5.1.0-9365a79de5/package/lib/pseudo-selectors/pseudos.cjs.map +0 -1
  194. package/dist/cjs/node_modules/.store/css-select-npm-5.1.0-9365a79de5/package/lib/pseudo-selectors/subselects.cjs +0 -119
  195. package/dist/cjs/node_modules/.store/css-select-npm-5.1.0-9365a79de5/package/lib/pseudo-selectors/subselects.cjs.map +0 -1
  196. package/dist/cjs/node_modules/.store/css-select-npm-5.1.0-9365a79de5/package/lib/sort.cjs +0 -75
  197. package/dist/cjs/node_modules/.store/css-select-npm-5.1.0-9365a79de5/package/lib/sort.cjs.map +0 -1
  198. package/dist/cjs/node_modules/.store/css-what-npm-6.1.0-57f751efbb/package/lib/es/index.cjs +0 -21
  199. package/dist/cjs/node_modules/.store/css-what-npm-6.1.0-57f751efbb/package/lib/es/index.cjs.map +0 -1
  200. package/dist/cjs/node_modules/.store/css-what-npm-6.1.0-57f751efbb/package/lib/es/parse.cjs +0 -392
  201. package/dist/cjs/node_modules/.store/css-what-npm-6.1.0-57f751efbb/package/lib/es/parse.cjs.map +0 -1
  202. package/dist/cjs/node_modules/.store/css-what-npm-6.1.0-57f751efbb/package/lib/es/stringify.cjs +0 -97
  203. package/dist/cjs/node_modules/.store/css-what-npm-6.1.0-57f751efbb/package/lib/es/stringify.cjs.map +0 -1
  204. package/dist/cjs/node_modules/.store/css-what-npm-6.1.0-57f751efbb/package/lib/es/types.cjs +0 -44
  205. package/dist/cjs/node_modules/.store/css-what-npm-6.1.0-57f751efbb/package/lib/es/types.cjs.map +0 -1
  206. package/dist/cjs/node_modules/.store/decode-uri-component-npm-0.4.1-61db093ef6/package/index.cjs +0 -80
  207. package/dist/cjs/node_modules/.store/decode-uri-component-npm-0.4.1-61db093ef6/package/index.cjs.map +0 -1
  208. package/dist/cjs/node_modules/.store/dom-serializer-npm-2.0.0-378ebc7200/package/lib/foreignNames.cjs +0 -19
  209. package/dist/cjs/node_modules/.store/dom-serializer-npm-2.0.0-378ebc7200/package/lib/foreignNames.cjs.map +0 -1
  210. package/dist/cjs/node_modules/.store/dom-serializer-npm-2.0.0-378ebc7200/package/lib/index.cjs +0 -198
  211. package/dist/cjs/node_modules/.store/dom-serializer-npm-2.0.0-378ebc7200/package/lib/index.cjs.map +0 -1
  212. package/dist/cjs/node_modules/.store/domelementtype-npm-2.3.0-02de7cbfba/package/lib/index.cjs +0 -62
  213. package/dist/cjs/node_modules/.store/domelementtype-npm-2.3.0-02de7cbfba/package/lib/index.cjs.map +0 -1
  214. package/dist/cjs/node_modules/.store/domhandler-npm-5.0.3-3ede73dc10/package/lib/index.cjs +0 -180
  215. package/dist/cjs/node_modules/.store/domhandler-npm-5.0.3-3ede73dc10/package/lib/index.cjs.map +0 -1
  216. package/dist/cjs/node_modules/.store/domhandler-npm-5.0.3-3ede73dc10/package/lib/node.cjs +0 -495
  217. package/dist/cjs/node_modules/.store/domhandler-npm-5.0.3-3ede73dc10/package/lib/node.cjs.map +0 -1
  218. package/dist/cjs/node_modules/.store/domutils-npm-3.1.0-66c92ef7eb/package/lib/feeds.cjs +0 -197
  219. package/dist/cjs/node_modules/.store/domutils-npm-3.1.0-66c92ef7eb/package/lib/feeds.cjs.map +0 -1
  220. package/dist/cjs/node_modules/.store/domutils-npm-3.1.0-66c92ef7eb/package/lib/helpers.cjs +0 -153
  221. package/dist/cjs/node_modules/.store/domutils-npm-3.1.0-66c92ef7eb/package/lib/helpers.cjs.map +0 -1
  222. package/dist/cjs/node_modules/.store/domutils-npm-3.1.0-66c92ef7eb/package/lib/index.cjs +0 -93
  223. package/dist/cjs/node_modules/.store/domutils-npm-3.1.0-66c92ef7eb/package/lib/index.cjs.map +0 -1
  224. package/dist/cjs/node_modules/.store/domutils-npm-3.1.0-66c92ef7eb/package/lib/legacy.cjs +0 -192
  225. package/dist/cjs/node_modules/.store/domutils-npm-3.1.0-66c92ef7eb/package/lib/legacy.cjs.map +0 -1
  226. package/dist/cjs/node_modules/.store/domutils-npm-3.1.0-66c92ef7eb/package/lib/manipulation.cjs +0 -147
  227. package/dist/cjs/node_modules/.store/domutils-npm-3.1.0-66c92ef7eb/package/lib/manipulation.cjs.map +0 -1
  228. package/dist/cjs/node_modules/.store/domutils-npm-3.1.0-66c92ef7eb/package/lib/querying.cjs +0 -170
  229. package/dist/cjs/node_modules/.store/domutils-npm-3.1.0-66c92ef7eb/package/lib/querying.cjs.map +0 -1
  230. package/dist/cjs/node_modules/.store/domutils-npm-3.1.0-66c92ef7eb/package/lib/stringify.cjs +0 -102
  231. package/dist/cjs/node_modules/.store/domutils-npm-3.1.0-66c92ef7eb/package/lib/stringify.cjs.map +0 -1
  232. package/dist/cjs/node_modules/.store/domutils-npm-3.1.0-66c92ef7eb/package/lib/traversal.cjs +0 -133
  233. package/dist/cjs/node_modules/.store/domutils-npm-3.1.0-66c92ef7eb/package/lib/traversal.cjs.map +0 -1
  234. package/dist/cjs/node_modules/.store/filter-obj-npm-5.1.0-a1ae61a7db/package/index.cjs +0 -28
  235. package/dist/cjs/node_modules/.store/filter-obj-npm-5.1.0-a1ae61a7db/package/index.cjs.map +0 -1
  236. package/dist/cjs/node_modules/.store/he-npm-1.2.0-3b73a2ff07/package/he.cjs +0 -4097
  237. package/dist/cjs/node_modules/.store/he-npm-1.2.0-3b73a2ff07/package/he.cjs.map +0 -1
  238. package/dist/cjs/node_modules/.store/node-html-parser-npm-6.1.13-47030d47d6/package/dist/back.cjs +0 -12
  239. package/dist/cjs/node_modules/.store/node-html-parser-npm-6.1.13-47030d47d6/package/dist/back.cjs.map +0 -1
  240. package/dist/cjs/node_modules/.store/node-html-parser-npm-6.1.13-47030d47d6/package/dist/index.cjs +0 -61
  241. package/dist/cjs/node_modules/.store/node-html-parser-npm-6.1.13-47030d47d6/package/dist/index.cjs.map +0 -1
  242. package/dist/cjs/node_modules/.store/node-html-parser-npm-6.1.13-47030d47d6/package/dist/matcher.cjs +0 -113
  243. package/dist/cjs/node_modules/.store/node-html-parser-npm-6.1.13-47030d47d6/package/dist/matcher.cjs.map +0 -1
  244. package/dist/cjs/node_modules/.store/node-html-parser-npm-6.1.13-47030d47d6/package/dist/nodes/comment.cjs +0 -79
  245. package/dist/cjs/node_modules/.store/node-html-parser-npm-6.1.13-47030d47d6/package/dist/nodes/comment.cjs.map +0 -1
  246. package/dist/cjs/node_modules/.store/node-html-parser-npm-6.1.13-47030d47d6/package/dist/nodes/html.cjs +0 -1374
  247. package/dist/cjs/node_modules/.store/node-html-parser-npm-6.1.13-47030d47d6/package/dist/nodes/html.cjs.map +0 -1
  248. package/dist/cjs/node_modules/.store/node-html-parser-npm-6.1.13-47030d47d6/package/dist/nodes/node.cjs +0 -61
  249. package/dist/cjs/node_modules/.store/node-html-parser-npm-6.1.13-47030d47d6/package/dist/nodes/node.cjs.map +0 -1
  250. package/dist/cjs/node_modules/.store/node-html-parser-npm-6.1.13-47030d47d6/package/dist/nodes/text.cjs +0 -157
  251. package/dist/cjs/node_modules/.store/node-html-parser-npm-6.1.13-47030d47d6/package/dist/nodes/text.cjs.map +0 -1
  252. package/dist/cjs/node_modules/.store/node-html-parser-npm-6.1.13-47030d47d6/package/dist/nodes/type.cjs +0 -15
  253. package/dist/cjs/node_modules/.store/node-html-parser-npm-6.1.13-47030d47d6/package/dist/nodes/type.cjs.map +0 -1
  254. package/dist/cjs/node_modules/.store/node-html-parser-npm-6.1.13-47030d47d6/package/dist/parse.cjs +0 -21
  255. package/dist/cjs/node_modules/.store/node-html-parser-npm-6.1.13-47030d47d6/package/dist/parse.cjs.map +0 -1
  256. package/dist/cjs/node_modules/.store/node-html-parser-npm-6.1.13-47030d47d6/package/dist/valid.cjs +0 -23
  257. package/dist/cjs/node_modules/.store/node-html-parser-npm-6.1.13-47030d47d6/package/dist/valid.cjs.map +0 -1
  258. package/dist/cjs/node_modules/.store/node-html-parser-npm-6.1.13-47030d47d6/package/dist/void-tag.cjs +0 -36
  259. package/dist/cjs/node_modules/.store/node-html-parser-npm-6.1.13-47030d47d6/package/dist/void-tag.cjs.map +0 -1
  260. package/dist/cjs/node_modules/.store/nth-check-npm-2.1.1-f97afc8169/package/lib/compile.cjs +0 -143
  261. package/dist/cjs/node_modules/.store/nth-check-npm-2.1.1-f97afc8169/package/lib/compile.cjs.map +0 -1
  262. package/dist/cjs/node_modules/.store/nth-check-npm-2.1.1-f97afc8169/package/lib/index.cjs +0 -97
  263. package/dist/cjs/node_modules/.store/nth-check-npm-2.1.1-f97afc8169/package/lib/index.cjs.map +0 -1
  264. package/dist/cjs/node_modules/.store/nth-check-npm-2.1.1-f97afc8169/package/lib/parse.cjs +0 -81
  265. package/dist/cjs/node_modules/.store/nth-check-npm-2.1.1-f97afc8169/package/lib/parse.cjs.map +0 -1
  266. package/dist/cjs/node_modules/.store/query-string-npm-9.1.0-d916baf5f1/package/base.cjs +0 -414
  267. package/dist/cjs/node_modules/.store/query-string-npm-9.1.0-d916baf5f1/package/base.cjs.map +0 -1
  268. package/dist/cjs/node_modules/.store/query-string-npm-9.1.0-d916baf5f1/package/index.cjs +0 -10
  269. package/dist/cjs/node_modules/.store/query-string-npm-9.1.0-d916baf5f1/package/index.cjs.map +0 -1
  270. package/dist/cjs/node_modules/.store/split-on-first-npm-3.0.0-3b993e48ae/package/index.cjs +0 -20
  271. package/dist/cjs/node_modules/.store/split-on-first-npm-3.0.0-3b993e48ae/package/index.cjs.map +0 -1
  272. package/dist/esm/_virtual/_commonjsHelpers.mjs +0 -29
  273. package/dist/esm/_virtual/_commonjsHelpers.mjs.map +0 -1
  274. package/dist/esm/_virtual/aliases.mjs +0 -4
  275. package/dist/esm/_virtual/aliases.mjs.map +0 -1
  276. package/dist/esm/_virtual/attributes.mjs +0 -4
  277. package/dist/esm/_virtual/attributes.mjs.map +0 -1
  278. package/dist/esm/_virtual/back.mjs +0 -4
  279. package/dist/esm/_virtual/back.mjs.map +0 -1
  280. package/dist/esm/_virtual/comment.mjs +0 -4
  281. package/dist/esm/_virtual/comment.mjs.map +0 -1
  282. package/dist/esm/_virtual/compile.mjs +0 -4
  283. package/dist/esm/_virtual/compile.mjs.map +0 -1
  284. package/dist/esm/_virtual/compile2.mjs +0 -4
  285. package/dist/esm/_virtual/compile2.mjs.map +0 -1
  286. package/dist/esm/_virtual/feeds.mjs +0 -4
  287. package/dist/esm/_virtual/feeds.mjs.map +0 -1
  288. package/dist/esm/_virtual/filters.mjs +0 -4
  289. package/dist/esm/_virtual/filters.mjs.map +0 -1
  290. package/dist/esm/_virtual/foreignNames.mjs +0 -4
  291. package/dist/esm/_virtual/foreignNames.mjs.map +0 -1
  292. package/dist/esm/_virtual/general.mjs +0 -4
  293. package/dist/esm/_virtual/general.mjs.map +0 -1
  294. package/dist/esm/_virtual/he.mjs +0 -4
  295. package/dist/esm/_virtual/he.mjs.map +0 -1
  296. package/dist/esm/_virtual/helpers.mjs +0 -4
  297. package/dist/esm/_virtual/helpers.mjs.map +0 -1
  298. package/dist/esm/_virtual/html.mjs +0 -4
  299. package/dist/esm/_virtual/html.mjs.map +0 -1
  300. package/dist/esm/_virtual/index.mjs +0 -4
  301. package/dist/esm/_virtual/index.mjs.map +0 -1
  302. package/dist/esm/_virtual/index10.mjs +0 -7
  303. package/dist/esm/_virtual/index10.mjs.map +0 -1
  304. package/dist/esm/_virtual/index2.mjs +0 -4
  305. package/dist/esm/_virtual/index2.mjs.map +0 -1
  306. package/dist/esm/_virtual/index3.mjs +0 -4
  307. package/dist/esm/_virtual/index3.mjs.map +0 -1
  308. package/dist/esm/_virtual/index4.mjs +0 -4
  309. package/dist/esm/_virtual/index4.mjs.map +0 -1
  310. package/dist/esm/_virtual/index5.mjs +0 -7
  311. package/dist/esm/_virtual/index5.mjs.map +0 -1
  312. package/dist/esm/_virtual/index6.mjs +0 -4
  313. package/dist/esm/_virtual/index6.mjs.map +0 -1
  314. package/dist/esm/_virtual/index7.mjs +0 -4
  315. package/dist/esm/_virtual/index7.mjs.map +0 -1
  316. package/dist/esm/_virtual/index8.mjs +0 -4
  317. package/dist/esm/_virtual/index8.mjs.map +0 -1
  318. package/dist/esm/_virtual/index9.mjs +0 -4
  319. package/dist/esm/_virtual/index9.mjs.map +0 -1
  320. package/dist/esm/_virtual/legacy.mjs +0 -4
  321. package/dist/esm/_virtual/legacy.mjs.map +0 -1
  322. package/dist/esm/_virtual/manipulation.mjs +0 -4
  323. package/dist/esm/_virtual/manipulation.mjs.map +0 -1
  324. package/dist/esm/_virtual/matcher.mjs +0 -4
  325. package/dist/esm/_virtual/matcher.mjs.map +0 -1
  326. package/dist/esm/_virtual/node.mjs +0 -4
  327. package/dist/esm/_virtual/node.mjs.map +0 -1
  328. package/dist/esm/_virtual/node2.mjs +0 -4
  329. package/dist/esm/_virtual/node2.mjs.map +0 -1
  330. package/dist/esm/_virtual/parse.mjs +0 -4
  331. package/dist/esm/_virtual/parse.mjs.map +0 -1
  332. package/dist/esm/_virtual/parse2.mjs +0 -4
  333. package/dist/esm/_virtual/parse2.mjs.map +0 -1
  334. package/dist/esm/_virtual/pseudos.mjs +0 -4
  335. package/dist/esm/_virtual/pseudos.mjs.map +0 -1
  336. package/dist/esm/_virtual/querying.mjs +0 -4
  337. package/dist/esm/_virtual/querying.mjs.map +0 -1
  338. package/dist/esm/_virtual/sort.mjs +0 -4
  339. package/dist/esm/_virtual/sort.mjs.map +0 -1
  340. package/dist/esm/_virtual/stringify.mjs +0 -4
  341. package/dist/esm/_virtual/stringify.mjs.map +0 -1
  342. package/dist/esm/_virtual/subselects.mjs +0 -4
  343. package/dist/esm/_virtual/subselects.mjs.map +0 -1
  344. package/dist/esm/_virtual/text.mjs +0 -4
  345. package/dist/esm/_virtual/text.mjs.map +0 -1
  346. package/dist/esm/_virtual/traversal.mjs +0 -4
  347. package/dist/esm/_virtual/traversal.mjs.map +0 -1
  348. package/dist/esm/_virtual/type.mjs +0 -4
  349. package/dist/esm/_virtual/type.mjs.map +0 -1
  350. package/dist/esm/_virtual/valid.mjs +0 -4
  351. package/dist/esm/_virtual/valid.mjs.map +0 -1
  352. package/dist/esm/_virtual/void-tag.mjs +0 -4
  353. package/dist/esm/_virtual/void-tag.mjs.map +0 -1
  354. package/dist/esm/client/SBErrorResponse.mjs +0 -11
  355. package/dist/esm/client/SBErrorResponse.mjs.map +0 -1
  356. package/dist/esm/entities/index.mjs +0 -18
  357. package/dist/esm/entities/index.mjs.map +0 -1
  358. package/dist/esm/node_modules/.store/@babel-runtime-npm-7.25.0-a7bca33687/package/helpers/esm/defineProperty.mjs.map +0 -1
  359. package/dist/esm/node_modules/.store/@babel-runtime-npm-7.25.0-a7bca33687/package/helpers/esm/toPrimitive.mjs.map +0 -1
  360. package/dist/esm/node_modules/.store/@babel-runtime-npm-7.25.0-a7bca33687/package/helpers/esm/toPropertyKey.mjs.map +0 -1
  361. package/dist/esm/node_modules/.store/@babel-runtime-npm-7.25.0-a7bca33687/package/helpers/esm/typeof.mjs.map +0 -1
  362. package/dist/esm/node_modules/.store/boolbase-npm-1.0.0-965fe9af6d/package/index.mjs +0 -11
  363. package/dist/esm/node_modules/.store/boolbase-npm-1.0.0-965fe9af6d/package/index.mjs.map +0 -1
  364. package/dist/esm/node_modules/.store/css-select-npm-5.1.0-9365a79de5/package/lib/attributes.mjs +0 -172
  365. package/dist/esm/node_modules/.store/css-select-npm-5.1.0-9365a79de5/package/lib/attributes.mjs.map +0 -1
  366. package/dist/esm/node_modules/.store/css-select-npm-5.1.0-9365a79de5/package/lib/compile.mjs +0 -161
  367. package/dist/esm/node_modules/.store/css-select-npm-5.1.0-9365a79de5/package/lib/compile.mjs.map +0 -1
  368. package/dist/esm/node_modules/.store/css-select-npm-5.1.0-9365a79de5/package/lib/general.mjs +0 -167
  369. package/dist/esm/node_modules/.store/css-select-npm-5.1.0-9365a79de5/package/lib/general.mjs.map +0 -1
  370. package/dist/esm/node_modules/.store/css-select-npm-5.1.0-9365a79de5/package/lib/index.mjs +0 -193
  371. package/dist/esm/node_modules/.store/css-select-npm-5.1.0-9365a79de5/package/lib/index.mjs.map +0 -1
  372. package/dist/esm/node_modules/.store/css-select-npm-5.1.0-9365a79de5/package/lib/pseudo-selectors/aliases.mjs +0 -39
  373. package/dist/esm/node_modules/.store/css-select-npm-5.1.0-9365a79de5/package/lib/pseudo-selectors/aliases.mjs.map +0 -1
  374. package/dist/esm/node_modules/.store/css-select-npm-5.1.0-9365a79de5/package/lib/pseudo-selectors/filters.mjs +0 -162
  375. package/dist/esm/node_modules/.store/css-select-npm-5.1.0-9365a79de5/package/lib/pseudo-selectors/filters.mjs.map +0 -1
  376. package/dist/esm/node_modules/.store/css-select-npm-5.1.0-9365a79de5/package/lib/pseudo-selectors/index.mjs +0 -81
  377. package/dist/esm/node_modules/.store/css-select-npm-5.1.0-9365a79de5/package/lib/pseudo-selectors/index.mjs.map +0 -1
  378. package/dist/esm/node_modules/.store/css-select-npm-5.1.0-9365a79de5/package/lib/pseudo-selectors/pseudos.mjs +0 -93
  379. package/dist/esm/node_modules/.store/css-select-npm-5.1.0-9365a79de5/package/lib/pseudo-selectors/pseudos.mjs.map +0 -1
  380. package/dist/esm/node_modules/.store/css-select-npm-5.1.0-9365a79de5/package/lib/pseudo-selectors/subselects.mjs +0 -117
  381. package/dist/esm/node_modules/.store/css-select-npm-5.1.0-9365a79de5/package/lib/pseudo-selectors/subselects.mjs.map +0 -1
  382. package/dist/esm/node_modules/.store/css-select-npm-5.1.0-9365a79de5/package/lib/sort.mjs +0 -73
  383. package/dist/esm/node_modules/.store/css-select-npm-5.1.0-9365a79de5/package/lib/sort.mjs.map +0 -1
  384. package/dist/esm/node_modules/.store/css-what-npm-6.1.0-57f751efbb/package/lib/es/index.mjs +0 -4
  385. package/dist/esm/node_modules/.store/css-what-npm-6.1.0-57f751efbb/package/lib/es/index.mjs.map +0 -1
  386. package/dist/esm/node_modules/.store/css-what-npm-6.1.0-57f751efbb/package/lib/es/parse.mjs +0 -389
  387. package/dist/esm/node_modules/.store/css-what-npm-6.1.0-57f751efbb/package/lib/es/parse.mjs.map +0 -1
  388. package/dist/esm/node_modules/.store/css-what-npm-6.1.0-57f751efbb/package/lib/es/stringify.mjs +0 -95
  389. package/dist/esm/node_modules/.store/css-what-npm-6.1.0-57f751efbb/package/lib/es/stringify.mjs.map +0 -1
  390. package/dist/esm/node_modules/.store/css-what-npm-6.1.0-57f751efbb/package/lib/es/types.mjs +0 -42
  391. package/dist/esm/node_modules/.store/css-what-npm-6.1.0-57f751efbb/package/lib/es/types.mjs.map +0 -1
  392. package/dist/esm/node_modules/.store/decode-uri-component-npm-0.4.1-61db093ef6/package/index.mjs +0 -76
  393. package/dist/esm/node_modules/.store/decode-uri-component-npm-0.4.1-61db093ef6/package/index.mjs.map +0 -1
  394. package/dist/esm/node_modules/.store/dom-serializer-npm-2.0.0-378ebc7200/package/lib/foreignNames.mjs +0 -15
  395. package/dist/esm/node_modules/.store/dom-serializer-npm-2.0.0-378ebc7200/package/lib/foreignNames.mjs.map +0 -1
  396. package/dist/esm/node_modules/.store/dom-serializer-npm-2.0.0-378ebc7200/package/lib/index.mjs +0 -196
  397. package/dist/esm/node_modules/.store/dom-serializer-npm-2.0.0-378ebc7200/package/lib/index.mjs.map +0 -1
  398. package/dist/esm/node_modules/.store/domelementtype-npm-2.3.0-02de7cbfba/package/lib/index.mjs +0 -60
  399. package/dist/esm/node_modules/.store/domelementtype-npm-2.3.0-02de7cbfba/package/lib/index.mjs.map +0 -1
  400. package/dist/esm/node_modules/.store/domhandler-npm-5.0.3-3ede73dc10/package/lib/index.mjs +0 -178
  401. package/dist/esm/node_modules/.store/domhandler-npm-5.0.3-3ede73dc10/package/lib/index.mjs.map +0 -1
  402. package/dist/esm/node_modules/.store/domhandler-npm-5.0.3-3ede73dc10/package/lib/node.mjs +0 -491
  403. package/dist/esm/node_modules/.store/domhandler-npm-5.0.3-3ede73dc10/package/lib/node.mjs.map +0 -1
  404. package/dist/esm/node_modules/.store/domutils-npm-3.1.0-66c92ef7eb/package/lib/feeds.mjs +0 -193
  405. package/dist/esm/node_modules/.store/domutils-npm-3.1.0-66c92ef7eb/package/lib/feeds.mjs.map +0 -1
  406. package/dist/esm/node_modules/.store/domutils-npm-3.1.0-66c92ef7eb/package/lib/helpers.mjs +0 -151
  407. package/dist/esm/node_modules/.store/domutils-npm-3.1.0-66c92ef7eb/package/lib/helpers.mjs.map +0 -1
  408. package/dist/esm/node_modules/.store/domutils-npm-3.1.0-66c92ef7eb/package/lib/index.mjs +0 -91
  409. package/dist/esm/node_modules/.store/domutils-npm-3.1.0-66c92ef7eb/package/lib/index.mjs.map +0 -1
  410. package/dist/esm/node_modules/.store/domutils-npm-3.1.0-66c92ef7eb/package/lib/legacy.mjs +0 -188
  411. package/dist/esm/node_modules/.store/domutils-npm-3.1.0-66c92ef7eb/package/lib/legacy.mjs.map +0 -1
  412. package/dist/esm/node_modules/.store/domutils-npm-3.1.0-66c92ef7eb/package/lib/manipulation.mjs +0 -143
  413. package/dist/esm/node_modules/.store/domutils-npm-3.1.0-66c92ef7eb/package/lib/manipulation.mjs.map +0 -1
  414. package/dist/esm/node_modules/.store/domutils-npm-3.1.0-66c92ef7eb/package/lib/querying.mjs +0 -166
  415. package/dist/esm/node_modules/.store/domutils-npm-3.1.0-66c92ef7eb/package/lib/querying.mjs.map +0 -1
  416. package/dist/esm/node_modules/.store/domutils-npm-3.1.0-66c92ef7eb/package/lib/stringify.mjs +0 -98
  417. package/dist/esm/node_modules/.store/domutils-npm-3.1.0-66c92ef7eb/package/lib/stringify.mjs.map +0 -1
  418. package/dist/esm/node_modules/.store/domutils-npm-3.1.0-66c92ef7eb/package/lib/traversal.mjs +0 -129
  419. package/dist/esm/node_modules/.store/domutils-npm-3.1.0-66c92ef7eb/package/lib/traversal.mjs.map +0 -1
  420. package/dist/esm/node_modules/.store/filter-obj-npm-5.1.0-a1ae61a7db/package/index.mjs +0 -26
  421. package/dist/esm/node_modules/.store/filter-obj-npm-5.1.0-a1ae61a7db/package/index.mjs.map +0 -1
  422. package/dist/esm/node_modules/.store/he-npm-1.2.0-3b73a2ff07/package/he.mjs +0 -4095
  423. package/dist/esm/node_modules/.store/he-npm-1.2.0-3b73a2ff07/package/he.mjs.map +0 -1
  424. package/dist/esm/node_modules/.store/node-html-parser-npm-6.1.13-47030d47d6/package/dist/back.mjs +0 -10
  425. package/dist/esm/node_modules/.store/node-html-parser-npm-6.1.13-47030d47d6/package/dist/back.mjs.map +0 -1
  426. package/dist/esm/node_modules/.store/node-html-parser-npm-6.1.13-47030d47d6/package/dist/index.mjs +0 -57
  427. package/dist/esm/node_modules/.store/node-html-parser-npm-6.1.13-47030d47d6/package/dist/index.mjs.map +0 -1
  428. package/dist/esm/node_modules/.store/node-html-parser-npm-6.1.13-47030d47d6/package/dist/matcher.mjs +0 -111
  429. package/dist/esm/node_modules/.store/node-html-parser-npm-6.1.13-47030d47d6/package/dist/matcher.mjs.map +0 -1
  430. package/dist/esm/node_modules/.store/node-html-parser-npm-6.1.13-47030d47d6/package/dist/nodes/comment.mjs +0 -77
  431. package/dist/esm/node_modules/.store/node-html-parser-npm-6.1.13-47030d47d6/package/dist/nodes/comment.mjs.map +0 -1
  432. package/dist/esm/node_modules/.store/node-html-parser-npm-6.1.13-47030d47d6/package/dist/nodes/html.mjs +0 -1372
  433. package/dist/esm/node_modules/.store/node-html-parser-npm-6.1.13-47030d47d6/package/dist/nodes/html.mjs.map +0 -1
  434. package/dist/esm/node_modules/.store/node-html-parser-npm-6.1.13-47030d47d6/package/dist/nodes/node.mjs +0 -59
  435. package/dist/esm/node_modules/.store/node-html-parser-npm-6.1.13-47030d47d6/package/dist/nodes/node.mjs.map +0 -1
  436. package/dist/esm/node_modules/.store/node-html-parser-npm-6.1.13-47030d47d6/package/dist/nodes/text.mjs +0 -155
  437. package/dist/esm/node_modules/.store/node-html-parser-npm-6.1.13-47030d47d6/package/dist/nodes/text.mjs.map +0 -1
  438. package/dist/esm/node_modules/.store/node-html-parser-npm-6.1.13-47030d47d6/package/dist/nodes/type.mjs +0 -13
  439. package/dist/esm/node_modules/.store/node-html-parser-npm-6.1.13-47030d47d6/package/dist/nodes/type.mjs.map +0 -1
  440. package/dist/esm/node_modules/.store/node-html-parser-npm-6.1.13-47030d47d6/package/dist/parse.mjs +0 -19
  441. package/dist/esm/node_modules/.store/node-html-parser-npm-6.1.13-47030d47d6/package/dist/parse.mjs.map +0 -1
  442. package/dist/esm/node_modules/.store/node-html-parser-npm-6.1.13-47030d47d6/package/dist/valid.mjs +0 -21
  443. package/dist/esm/node_modules/.store/node-html-parser-npm-6.1.13-47030d47d6/package/dist/valid.mjs.map +0 -1
  444. package/dist/esm/node_modules/.store/node-html-parser-npm-6.1.13-47030d47d6/package/dist/void-tag.mjs +0 -34
  445. package/dist/esm/node_modules/.store/node-html-parser-npm-6.1.13-47030d47d6/package/dist/void-tag.mjs.map +0 -1
  446. package/dist/esm/node_modules/.store/nth-check-npm-2.1.1-f97afc8169/package/lib/compile.mjs +0 -139
  447. package/dist/esm/node_modules/.store/nth-check-npm-2.1.1-f97afc8169/package/lib/compile.mjs.map +0 -1
  448. package/dist/esm/node_modules/.store/nth-check-npm-2.1.1-f97afc8169/package/lib/index.mjs +0 -95
  449. package/dist/esm/node_modules/.store/nth-check-npm-2.1.1-f97afc8169/package/lib/index.mjs.map +0 -1
  450. package/dist/esm/node_modules/.store/nth-check-npm-2.1.1-f97afc8169/package/lib/parse.mjs +0 -77
  451. package/dist/esm/node_modules/.store/nth-check-npm-2.1.1-f97afc8169/package/lib/parse.mjs.map +0 -1
  452. package/dist/esm/node_modules/.store/query-string-npm-9.1.0-d916baf5f1/package/base.mjs +0 -406
  453. package/dist/esm/node_modules/.store/query-string-npm-9.1.0-d916baf5f1/package/base.mjs.map +0 -1
  454. package/dist/esm/node_modules/.store/query-string-npm-9.1.0-d916baf5f1/package/index.mjs +0 -6
  455. package/dist/esm/node_modules/.store/query-string-npm-9.1.0-d916baf5f1/package/index.mjs.map +0 -1
  456. package/dist/esm/node_modules/.store/split-on-first-npm-3.0.0-3b993e48ae/package/index.mjs +0 -16
  457. package/dist/esm/node_modules/.store/split-on-first-npm-3.0.0-3b993e48ae/package/index.mjs.map +0 -1
  458. /package/dist/cjs/node_modules/{.store/@babel-runtime-npm-7.25.0-a7bca33687/package → @babel/runtime}/helpers/esm/defineProperty.cjs +0 -0
  459. /package/dist/cjs/node_modules/{.store/@babel-runtime-npm-7.25.0-a7bca33687/package → @babel/runtime}/helpers/esm/toPrimitive.cjs +0 -0
  460. /package/dist/cjs/node_modules/{.store/@babel-runtime-npm-7.25.0-a7bca33687/package → @babel/runtime}/helpers/esm/toPropertyKey.cjs +0 -0
  461. /package/dist/cjs/node_modules/{.store/@babel-runtime-npm-7.25.0-a7bca33687/package → @babel/runtime}/helpers/esm/typeof.cjs +0 -0
  462. /package/dist/esm/node_modules/{.store/@babel-runtime-npm-7.25.0-a7bca33687/package → @babel/runtime}/helpers/esm/defineProperty.mjs +0 -0
  463. /package/dist/esm/node_modules/{.store/@babel-runtime-npm-7.25.0-a7bca33687/package → @babel/runtime}/helpers/esm/toPrimitive.mjs +0 -0
  464. /package/dist/esm/node_modules/{.store/@babel-runtime-npm-7.25.0-a7bca33687/package → @babel/runtime}/helpers/esm/toPropertyKey.mjs +0 -0
  465. /package/dist/esm/node_modules/{.store/@babel-runtime-npm-7.25.0-a7bca33687/package → @babel/runtime}/helpers/esm/typeof.mjs +0 -0
@@ -1,1374 +0,0 @@
1
- 'use strict';
2
-
3
- var _commonjsHelpers = require('../../../../../../_virtual/_commonjsHelpers.cjs');
4
- var html = require('../../../../../../_virtual/html.cjs');
5
- require('../../../../css-select-npm-5.1.0-9365a79de5/package/lib/index.cjs');
6
- var he = require('../../../../he-npm-1.2.0-3b73a2ff07/package/he.cjs');
7
- require('../back.cjs');
8
- require('../matcher.cjs');
9
- require('../void-tag.cjs');
10
- require('./comment.cjs');
11
- require('./node.cjs');
12
- require('./text.cjs');
13
- require('./type.cjs');
14
- var back = require('../../../../../../_virtual/back.cjs');
15
- var matcher = require('../../../../../../_virtual/matcher.cjs');
16
- var voidTag = require('../../../../../../_virtual/void-tag.cjs');
17
- var comment = require('../../../../../../_virtual/comment.cjs');
18
- var node = require('../../../../../../_virtual/node.cjs');
19
- var text = require('../../../../../../_virtual/text.cjs');
20
- var type = require('../../../../../../_virtual/type.cjs');
21
- var index = require('../../../../../../_virtual/index2.cjs');
22
-
23
- var __extends = _commonjsHelpers.commonjsGlobal && _commonjsHelpers.commonjsGlobal.__extends || function () {
24
- var extendStatics = function (d, b) {
25
- extendStatics = Object.setPrototypeOf || {
26
- __proto__: []
27
- } instanceof Array && function (d, b) {
28
- d.__proto__ = b;
29
- } || function (d, b) {
30
- for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];
31
- };
32
- return extendStatics(d, b);
33
- };
34
- return function (d, b) {
35
- if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
36
- extendStatics(d, b);
37
- function __() {
38
- this.constructor = d;
39
- }
40
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
41
- };
42
- }();
43
- var __assign = _commonjsHelpers.commonjsGlobal && _commonjsHelpers.commonjsGlobal.__assign || function () {
44
- __assign = Object.assign || function (t) {
45
- for (var s, i = 1, n = arguments.length; i < n; i++) {
46
- s = arguments[i];
47
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
48
- }
49
- return t;
50
- };
51
- return __assign.apply(this, arguments);
52
- };
53
- var __spreadArray = _commonjsHelpers.commonjsGlobal && _commonjsHelpers.commonjsGlobal.__spreadArray || function (to, from, pack) {
54
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
55
- if (ar || !(i in from)) {
56
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
57
- ar[i] = from[i];
58
- }
59
- }
60
- return to.concat(ar || Array.prototype.slice.call(from));
61
- };
62
- var __importDefault = _commonjsHelpers.commonjsGlobal && _commonjsHelpers.commonjsGlobal.__importDefault || function (mod) {
63
- return mod && mod.__esModule ? mod : {
64
- "default": mod
65
- };
66
- };
67
- Object.defineProperty(html.__exports, "__esModule", {
68
- value: true
69
- });
70
- html.__exports.parse = html.__exports.base_parse = void 0;
71
- var css_select_1 = index.__exports;
72
- var he_1 = __importDefault(he.heExports);
73
- var back_1 = __importDefault(back.__exports);
74
- var matcher_1 = __importDefault(matcher.__exports);
75
- var void_tag_1 = __importDefault(voidTag.__exports);
76
- var comment_1 = __importDefault(comment.__exports);
77
- var node_1 = __importDefault(node.__exports);
78
- var text_1 = __importDefault(text.__exports);
79
- var type_1 = __importDefault(type.__exports);
80
- function decode(val) {
81
- // clone string
82
- return JSON.parse(JSON.stringify(he_1.default.decode(val)));
83
- }
84
- // https://developer.mozilla.org/en-US/docs/Web/HTML/Block-level_elements
85
- var Htags = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'header', 'hgroup'];
86
- var Dtags = ['details', 'dialog', 'dd', 'div', 'dt'];
87
- var Ftags = ['fieldset', 'figcaption', 'figure', 'footer', 'form'];
88
- var tableTags = ['table', 'td', 'tr'];
89
- var htmlTags = ['address', 'article', 'aside', 'blockquote', 'br', 'hr', 'li', 'main', 'nav', 'ol', 'p', 'pre', 'section', 'ul'];
90
- var kBlockElements = new Set();
91
- function addToKBlockElement() {
92
- var args = [];
93
- for (var _i = 0; _i < arguments.length; _i++) {
94
- args[_i] = arguments[_i];
95
- }
96
- var addToSet = function (array) {
97
- for (var index = 0; index < array.length; index++) {
98
- var element = array[index];
99
- kBlockElements.add(element);
100
- kBlockElements.add(element.toUpperCase());
101
- }
102
- };
103
- for (var _a = 0, args_1 = args; _a < args_1.length; _a++) {
104
- var arg = args_1[_a];
105
- addToSet(arg);
106
- }
107
- }
108
- addToKBlockElement(Htags, Dtags, Ftags, tableTags, htmlTags);
109
- var DOMTokenList = /** @class */function () {
110
- function DOMTokenList(valuesInit, afterUpdate) {
111
- if (valuesInit === void 0) {
112
- valuesInit = [];
113
- }
114
- if (afterUpdate === void 0) {
115
- afterUpdate = function () {
116
- return null;
117
- };
118
- }
119
- this._set = new Set(valuesInit);
120
- this._afterUpdate = afterUpdate;
121
- }
122
- DOMTokenList.prototype._validate = function (c) {
123
- if (/\s/.test(c)) {
124
- throw new Error("DOMException in DOMTokenList.add: The token '".concat(c, "' contains HTML space characters, which are not valid in tokens."));
125
- }
126
- };
127
- DOMTokenList.prototype.add = function (c) {
128
- this._validate(c);
129
- this._set.add(c);
130
- this._afterUpdate(this); // eslint-disable-line @typescript-eslint/no-unsafe-call
131
- };
132
- DOMTokenList.prototype.replace = function (c1, c2) {
133
- this._validate(c2);
134
- this._set.delete(c1);
135
- this._set.add(c2);
136
- this._afterUpdate(this); // eslint-disable-line @typescript-eslint/no-unsafe-call
137
- };
138
- DOMTokenList.prototype.remove = function (c) {
139
- this._set.delete(c) && this._afterUpdate(this); // eslint-disable-line @typescript-eslint/no-unsafe-call
140
- };
141
- DOMTokenList.prototype.toggle = function (c) {
142
- this._validate(c);
143
- if (this._set.has(c)) this._set.delete(c);else this._set.add(c);
144
- this._afterUpdate(this); // eslint-disable-line @typescript-eslint/no-unsafe-call
145
- };
146
- DOMTokenList.prototype.contains = function (c) {
147
- return this._set.has(c);
148
- };
149
- Object.defineProperty(DOMTokenList.prototype, "length", {
150
- get: function () {
151
- return this._set.size;
152
- },
153
- enumerable: false,
154
- configurable: true
155
- });
156
- DOMTokenList.prototype.values = function () {
157
- return this._set.values();
158
- };
159
- Object.defineProperty(DOMTokenList.prototype, "value", {
160
- get: function () {
161
- return Array.from(this._set.values());
162
- },
163
- enumerable: false,
164
- configurable: true
165
- });
166
- DOMTokenList.prototype.toString = function () {
167
- return Array.from(this._set.values()).join(' ');
168
- };
169
- return DOMTokenList;
170
- }();
171
- /**
172
- * HTMLElement, which contains a set of children.
173
- *
174
- * Note: this is a minimalist implementation, no complete tree
175
- * structure provided (no parentNode, nextSibling,
176
- * previousSibling etc).
177
- * @class HTMLElement
178
- * @extends {Node}
179
- */
180
- var HTMLElement = /** @class */function (_super) {
181
- __extends(HTMLElement, _super);
182
- /**
183
- * Creates an instance of HTMLElement.
184
- * @param keyAttrs id and class attribute
185
- * @param [rawAttrs] attributes in string
186
- *
187
- * @memberof HTMLElement
188
- */
189
- function HTMLElement(tagName, keyAttrs, rawAttrs, parentNode, range, voidTag, _parseOptions) {
190
- if (rawAttrs === void 0) {
191
- rawAttrs = '';
192
- }
193
- if (parentNode === void 0) {
194
- parentNode = null;
195
- }
196
- if (voidTag === void 0) {
197
- voidTag = new void_tag_1.default();
198
- }
199
- if (_parseOptions === void 0) {
200
- _parseOptions = {};
201
- }
202
- var _this = _super.call(this, parentNode, range) || this;
203
- _this.rawAttrs = rawAttrs;
204
- _this.voidTag = voidTag;
205
- /**
206
- * Node Type declaration.
207
- */
208
- _this.nodeType = type_1.default.ELEMENT_NODE;
209
- _this.rawTagName = tagName;
210
- _this.rawAttrs = rawAttrs || '';
211
- _this.id = keyAttrs.id || '';
212
- _this.childNodes = [];
213
- _this._parseOptions = _parseOptions;
214
- _this.classList = new DOMTokenList(keyAttrs.class ? keyAttrs.class.split(/\s+/) : [], function (classList) {
215
- return _this.setAttribute('class', classList.toString());
216
- } // eslint-disable-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call
217
- );
218
- if (keyAttrs.id) {
219
- if (!rawAttrs) {
220
- _this.rawAttrs = "id=\"".concat(keyAttrs.id, "\"");
221
- }
222
- }
223
- if (keyAttrs.class) {
224
- if (!rawAttrs) {
225
- var cls = "class=\"".concat(_this.classList.toString(), "\"");
226
- if (_this.rawAttrs) {
227
- _this.rawAttrs += " ".concat(cls);
228
- } else {
229
- _this.rawAttrs = cls;
230
- }
231
- }
232
- }
233
- return _this;
234
- }
235
- /**
236
- * Quote attribute values
237
- * @param attr attribute value
238
- * @returns {string} quoted value
239
- */
240
- HTMLElement.prototype.quoteAttribute = function (attr) {
241
- if (attr == null) {
242
- return 'null';
243
- }
244
- return JSON.stringify(attr.replace(/"/g, '&quot;')).replace(/\\t/g, '\t').replace(/\\n/g, '\n').replace(/\\r/g, '\r').replace(/\\/g, '');
245
- };
246
- /**
247
- * Remove Child element from childNodes array
248
- * @param {HTMLElement} node node to remove
249
- */
250
- HTMLElement.prototype.removeChild = function (node) {
251
- this.childNodes = this.childNodes.filter(function (child) {
252
- return child !== node;
253
- });
254
- return this;
255
- };
256
- /**
257
- * Exchanges given child with new child
258
- * @param {HTMLElement} oldNode node to exchange
259
- * @param {HTMLElement} newNode new node
260
- */
261
- HTMLElement.prototype.exchangeChild = function (oldNode, newNode) {
262
- var children = this.childNodes;
263
- this.childNodes = children.map(function (child) {
264
- if (child === oldNode) {
265
- return newNode;
266
- }
267
- return child;
268
- });
269
- return this;
270
- };
271
- Object.defineProperty(HTMLElement.prototype, "tagName", {
272
- get: function () {
273
- return this.rawTagName ? this.rawTagName.toUpperCase() : this.rawTagName;
274
- },
275
- set: function (newname) {
276
- this.rawTagName = newname.toLowerCase();
277
- },
278
- enumerable: false,
279
- configurable: true
280
- });
281
- Object.defineProperty(HTMLElement.prototype, "localName", {
282
- get: function () {
283
- return this.rawTagName.toLowerCase();
284
- },
285
- enumerable: false,
286
- configurable: true
287
- });
288
- Object.defineProperty(HTMLElement.prototype, "isVoidElement", {
289
- get: function () {
290
- return this.voidTag.isVoidElement(this.localName);
291
- },
292
- enumerable: false,
293
- configurable: true
294
- });
295
- Object.defineProperty(HTMLElement.prototype, "rawText", {
296
- /**
297
- * Get escpaed (as-it) text value of current node and its children.
298
- * @return {string} text content
299
- */
300
- get: function () {
301
- // https://github.com/taoqf/node-html-parser/issues/249
302
- if (/^br$/i.test(this.rawTagName)) {
303
- return '\n';
304
- }
305
- return this.childNodes.reduce(function (pre, cur) {
306
- return pre += cur.rawText;
307
- }, '');
308
- },
309
- enumerable: false,
310
- configurable: true
311
- });
312
- Object.defineProperty(HTMLElement.prototype, "textContent", {
313
- get: function () {
314
- return decode(this.rawText);
315
- },
316
- set: function (val) {
317
- var content = [new text_1.default(val, this)];
318
- this.childNodes = content;
319
- },
320
- enumerable: false,
321
- configurable: true
322
- });
323
- Object.defineProperty(HTMLElement.prototype, "text", {
324
- /**
325
- * Get unescaped text value of current node and its children.
326
- * @return {string} text content
327
- */
328
- get: function () {
329
- return decode(this.rawText);
330
- },
331
- enumerable: false,
332
- configurable: true
333
- });
334
- Object.defineProperty(HTMLElement.prototype, "structuredText", {
335
- /**
336
- * Get structured Text (with '\n' etc.)
337
- * @return {string} structured text
338
- */
339
- get: function () {
340
- var currentBlock = [];
341
- var blocks = [currentBlock];
342
- function dfs(node) {
343
- if (node.nodeType === type_1.default.ELEMENT_NODE) {
344
- if (kBlockElements.has(node.rawTagName)) {
345
- if (currentBlock.length > 0) {
346
- blocks.push(currentBlock = []);
347
- }
348
- node.childNodes.forEach(dfs);
349
- if (currentBlock.length > 0) {
350
- blocks.push(currentBlock = []);
351
- }
352
- } else {
353
- node.childNodes.forEach(dfs);
354
- }
355
- } else if (node.nodeType === type_1.default.TEXT_NODE) {
356
- if (node.isWhitespace) {
357
- // Whitespace node, postponed output
358
- currentBlock.prependWhitespace = true;
359
- } else {
360
- var text = node.trimmedText;
361
- if (currentBlock.prependWhitespace) {
362
- text = " ".concat(text);
363
- currentBlock.prependWhitespace = false;
364
- }
365
- currentBlock.push(text);
366
- }
367
- }
368
- }
369
- dfs(this);
370
- return blocks.map(function (block) {
371
- return block.join('').replace(/\s{2,}/g, ' '); // Normalize each line's whitespace
372
- }).join('\n').replace(/\s+$/, ''); // trimRight;
373
- },
374
- enumerable: false,
375
- configurable: true
376
- });
377
- HTMLElement.prototype.toString = function () {
378
- var tag = this.rawTagName;
379
- if (tag) {
380
- var attrs = this.rawAttrs ? " ".concat(this.rawAttrs) : '';
381
- return this.voidTag.formatNode(tag, attrs, this.innerHTML);
382
- }
383
- return this.innerHTML;
384
- };
385
- Object.defineProperty(HTMLElement.prototype, "innerHTML", {
386
- get: function () {
387
- return this.childNodes.map(function (child) {
388
- return child.toString();
389
- }).join('');
390
- },
391
- set: function (content) {
392
- var r = parse(content, this._parseOptions);
393
- var nodes = r.childNodes.length ? r.childNodes : [new text_1.default(content, this)];
394
- resetParent(nodes, this);
395
- resetParent(this.childNodes, null);
396
- this.childNodes = nodes;
397
- },
398
- enumerable: false,
399
- configurable: true
400
- });
401
- HTMLElement.prototype.set_content = function (content, options) {
402
- if (options === void 0) {
403
- options = {};
404
- }
405
- if (content instanceof node_1.default) {
406
- content = [content];
407
- } else if (typeof content == 'string') {
408
- options = __assign(__assign({}, this._parseOptions), options);
409
- var r = parse(content, options);
410
- content = r.childNodes.length ? r.childNodes : [new text_1.default(r.innerHTML, this)];
411
- }
412
- resetParent(this.childNodes, null);
413
- resetParent(content, this);
414
- this.childNodes = content;
415
- return this;
416
- };
417
- HTMLElement.prototype.replaceWith = function () {
418
- var _this = this;
419
- var nodes = [];
420
- for (var _i = 0; _i < arguments.length; _i++) {
421
- nodes[_i] = arguments[_i];
422
- }
423
- var parent = this.parentNode;
424
- var content = nodes.map(function (node) {
425
- if (node instanceof node_1.default) {
426
- return [node];
427
- } else if (typeof node == 'string') {
428
- var r = parse(node, _this._parseOptions);
429
- return r.childNodes.length ? r.childNodes : [new text_1.default(node, _this)];
430
- }
431
- return [];
432
- }).flat();
433
- var idx = parent.childNodes.findIndex(function (child) {
434
- return child === _this;
435
- });
436
- resetParent([this], null);
437
- parent.childNodes = __spreadArray(__spreadArray(__spreadArray([], parent.childNodes.slice(0, idx), true), resetParent(content, parent), true), parent.childNodes.slice(idx + 1), true);
438
- return this;
439
- };
440
- Object.defineProperty(HTMLElement.prototype, "outerHTML", {
441
- get: function () {
442
- return this.toString();
443
- },
444
- enumerable: false,
445
- configurable: true
446
- });
447
- /**
448
- * Trim element from right (in block) after seeing pattern in a TextNode.
449
- * @param {RegExp} pattern pattern to find
450
- * @return {HTMLElement} reference to current node
451
- */
452
- HTMLElement.prototype.trimRight = function (pattern) {
453
- for (var i = 0; i < this.childNodes.length; i++) {
454
- var childNode = this.childNodes[i];
455
- if (childNode.nodeType === type_1.default.ELEMENT_NODE) {
456
- childNode.trimRight(pattern);
457
- } else {
458
- var index = childNode.rawText.search(pattern);
459
- if (index > -1) {
460
- childNode.rawText = childNode.rawText.substr(0, index);
461
- // trim all following nodes.
462
- this.childNodes.length = i + 1;
463
- }
464
- }
465
- }
466
- return this;
467
- };
468
- Object.defineProperty(HTMLElement.prototype, "structure", {
469
- /**
470
- * Get DOM structure
471
- * @return {string} structure
472
- */
473
- get: function () {
474
- var res = [];
475
- var indention = 0;
476
- function write(str) {
477
- res.push(' '.repeat(indention) + str);
478
- }
479
- function dfs(node) {
480
- var idStr = node.id ? "#".concat(node.id) : '';
481
- var classStr = node.classList.length ? ".".concat(node.classList.value.join('.')) : ''; // eslint-disable-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/restrict-template-expressions, @typescript-eslint/no-unsafe-call
482
- write("".concat(node.rawTagName).concat(idStr).concat(classStr));
483
- indention++;
484
- node.childNodes.forEach(function (childNode) {
485
- if (childNode.nodeType === type_1.default.ELEMENT_NODE) {
486
- dfs(childNode);
487
- } else if (childNode.nodeType === type_1.default.TEXT_NODE) {
488
- if (!childNode.isWhitespace) {
489
- write('#text');
490
- }
491
- }
492
- });
493
- indention--;
494
- }
495
- dfs(this);
496
- return res.join('\n');
497
- },
498
- enumerable: false,
499
- configurable: true
500
- });
501
- /**
502
- * Remove whitespaces in this sub tree.
503
- * @return {HTMLElement} pointer to this
504
- */
505
- HTMLElement.prototype.removeWhitespace = function () {
506
- var _this = this;
507
- var o = 0;
508
- this.childNodes.forEach(function (node) {
509
- if (node.nodeType === type_1.default.TEXT_NODE) {
510
- if (node.isWhitespace) {
511
- return;
512
- }
513
- node.rawText = node.trimmedRawText;
514
- } else if (node.nodeType === type_1.default.ELEMENT_NODE) {
515
- node.removeWhitespace();
516
- }
517
- _this.childNodes[o++] = node;
518
- });
519
- this.childNodes.length = o;
520
- return this;
521
- };
522
- /**
523
- * Query CSS selector to find matching nodes.
524
- * @param {string} selector Simplified CSS selector
525
- * @return {HTMLElement[]} matching elements
526
- */
527
- HTMLElement.prototype.querySelectorAll = function (selector) {
528
- return (0, css_select_1.selectAll)(selector, this, {
529
- xmlMode: true,
530
- adapter: matcher_1.default
531
- });
532
- };
533
- /**
534
- * Query CSS Selector to find matching node.
535
- * @param {string} selector Simplified CSS selector
536
- * @return {(HTMLElement|null)} matching node
537
- */
538
- HTMLElement.prototype.querySelector = function (selector) {
539
- return (0, css_select_1.selectOne)(selector, this, {
540
- xmlMode: true,
541
- adapter: matcher_1.default
542
- });
543
- };
544
- /**
545
- * find elements by their tagName
546
- * @param {string} tagName the tagName of the elements to select
547
- */
548
- HTMLElement.prototype.getElementsByTagName = function (tagName) {
549
- var upperCasedTagName = tagName.toUpperCase();
550
- var re = [];
551
- var stack = [];
552
- var currentNodeReference = this;
553
- var index = 0;
554
- // index turns to undefined once the stack is empty and the first condition occurs
555
- // which happens once all relevant children are searched through
556
- while (index !== undefined) {
557
- var child = void 0;
558
- // make it work with sparse arrays
559
- do {
560
- child = currentNodeReference.childNodes[index++];
561
- } while (index < currentNodeReference.childNodes.length && child === undefined);
562
- // if the child does not exist we move on with the last provided index (which belongs to the parentNode)
563
- if (child === undefined) {
564
- currentNodeReference = currentNodeReference.parentNode;
565
- index = stack.pop();
566
- continue;
567
- }
568
- if (child.nodeType === type_1.default.ELEMENT_NODE) {
569
- // https://developer.mozilla.org/en-US/docs/Web/API/Element/getElementsByTagName#syntax
570
- if (tagName === '*' || child.tagName === upperCasedTagName) re.push(child);
571
- // if children are existing push the current status to the stack and keep searching for elements in the level below
572
- if (child.childNodes.length > 0) {
573
- stack.push(index);
574
- currentNodeReference = child;
575
- index = 0;
576
- }
577
- }
578
- }
579
- return re;
580
- };
581
- /**
582
- * find element by it's id
583
- * @param {string} id the id of the element to select
584
- * @returns {HTMLElement | null} the element with the given id or null if not found
585
- */
586
- HTMLElement.prototype.getElementById = function (id) {
587
- var stack = [];
588
- var currentNodeReference = this;
589
- var index = 0;
590
- // index turns to undefined once the stack is empty and the first condition occurs
591
- // which happens once all relevant children are searched through
592
- while (index !== undefined) {
593
- var child = void 0;
594
- // make it work with sparse arrays
595
- do {
596
- child = currentNodeReference.childNodes[index++];
597
- } while (index < currentNodeReference.childNodes.length && child === undefined);
598
- // if the child does not exist we move on with the last provided index (which belongs to the parentNode)
599
- if (child === undefined) {
600
- currentNodeReference = currentNodeReference.parentNode;
601
- index = stack.pop();
602
- continue;
603
- }
604
- if (child.nodeType === type_1.default.ELEMENT_NODE) {
605
- if (child.id === id) {
606
- return child;
607
- }
608
- // if children are existing push the current status to the stack and keep searching for elements in the level below
609
- if (child.childNodes.length > 0) {
610
- stack.push(index);
611
- currentNodeReference = child;
612
- index = 0;
613
- }
614
- }
615
- }
616
- return null;
617
- };
618
- /**
619
- * traverses the Element and its parents (heading toward the document root) until it finds a node that matches the provided selector string. Will return itself or the matching ancestor. If no such element exists, it returns null.
620
- * @param selector a DOMString containing a selector list
621
- * @returns {HTMLElement | null} the element with the given id or null if not found
622
- */
623
- HTMLElement.prototype.closest = function (selector) {
624
- var mapChild = new Map();
625
- var el = this;
626
- var old = null;
627
- function findOne(test, elems) {
628
- var elem = null;
629
- for (var i = 0, l = elems.length; i < l && !elem; i++) {
630
- var el_1 = elems[i];
631
- if (test(el_1)) {
632
- elem = el_1;
633
- } else {
634
- var child = mapChild.get(el_1);
635
- if (child) {
636
- elem = findOne(test, [child]);
637
- }
638
- }
639
- }
640
- return elem;
641
- }
642
- while (el) {
643
- mapChild.set(el, old);
644
- old = el;
645
- el = el.parentNode;
646
- }
647
- el = this;
648
- while (el) {
649
- var e = (0, css_select_1.selectOne)(selector, el, {
650
- xmlMode: true,
651
- adapter: __assign(__assign({}, matcher_1.default), {
652
- getChildren: function (node) {
653
- var child = mapChild.get(node);
654
- return child && [child];
655
- },
656
- getSiblings: function (node) {
657
- return [node];
658
- },
659
- findOne: findOne,
660
- findAll: function () {
661
- return [];
662
- }
663
- })
664
- });
665
- if (e) {
666
- return e;
667
- }
668
- el = el.parentNode;
669
- }
670
- return null;
671
- };
672
- /**
673
- * Append a child node to childNodes
674
- * @param {Node} node node to append
675
- * @return {Node} node appended
676
- */
677
- HTMLElement.prototype.appendChild = function (node) {
678
- // remove the node from it's parent
679
- node.remove();
680
- this.childNodes.push(node);
681
- node.parentNode = this;
682
- return node;
683
- };
684
- Object.defineProperty(HTMLElement.prototype, "firstChild", {
685
- /**
686
- * Get first child node
687
- * @return {Node | undefined} first child node; or undefined if none
688
- */
689
- get: function () {
690
- return this.childNodes[0];
691
- },
692
- enumerable: false,
693
- configurable: true
694
- });
695
- Object.defineProperty(HTMLElement.prototype, "lastChild", {
696
- /**
697
- * Get last child node
698
- * @return {Node | undefined} last child node; or undefined if none
699
- */
700
- get: function () {
701
- return (0, back_1.default)(this.childNodes);
702
- },
703
- enumerable: false,
704
- configurable: true
705
- });
706
- Object.defineProperty(HTMLElement.prototype, "attrs", {
707
- /**
708
- * Get attributes
709
- * @access private
710
- * @return {Object} parsed and unescaped attributes
711
- */
712
- get: function () {
713
- if (this._attrs) {
714
- return this._attrs;
715
- }
716
- this._attrs = {};
717
- var attrs = this.rawAttributes;
718
- for (var key in attrs) {
719
- var val = attrs[key] || '';
720
- this._attrs[key.toLowerCase()] = decode(val);
721
- }
722
- return this._attrs;
723
- },
724
- enumerable: false,
725
- configurable: true
726
- });
727
- Object.defineProperty(HTMLElement.prototype, "attributes", {
728
- get: function () {
729
- var ret_attrs = {};
730
- var attrs = this.rawAttributes;
731
- for (var key in attrs) {
732
- var val = attrs[key] || '';
733
- ret_attrs[key] = decode(val);
734
- }
735
- return ret_attrs;
736
- },
737
- enumerable: false,
738
- configurable: true
739
- });
740
- Object.defineProperty(HTMLElement.prototype, "rawAttributes", {
741
- /**
742
- * Get escaped (as-is) attributes
743
- * @return {Object} parsed attributes
744
- */
745
- get: function () {
746
- if (this._rawAttrs) {
747
- return this._rawAttrs;
748
- }
749
- var attrs = {};
750
- if (this.rawAttrs) {
751
- var re = /([a-zA-Z()[\]#@$.?:][a-zA-Z0-9-_:()[\]#]*)(?:\s*=\s*((?:'[^']*')|(?:"[^"]*")|\S+))?/g;
752
- var match = void 0;
753
- while (match = re.exec(this.rawAttrs)) {
754
- var key = match[1];
755
- var val = match[2] || null;
756
- if (val && (val[0] === "'" || val[0] === "\"")) val = val.slice(1, val.length - 1);
757
- attrs[key] = attrs[key] || val;
758
- }
759
- }
760
- this._rawAttrs = attrs;
761
- return attrs;
762
- },
763
- enumerable: false,
764
- configurable: true
765
- });
766
- HTMLElement.prototype.removeAttribute = function (key) {
767
- var _this = this;
768
- var attrs = this.rawAttributes;
769
- delete attrs[key];
770
- // Update this.attribute
771
- if (this._attrs) {
772
- delete this._attrs[key];
773
- }
774
- // Update rawString
775
- this.rawAttrs = Object.keys(attrs).map(function (name) {
776
- var val = _this.quoteAttribute(attrs[name]);
777
- if (val === 'null' || val === '""') return name;
778
- return "".concat(name, "=").concat(val);
779
- }).join(' ');
780
- // Update this.id
781
- if (key === 'id') {
782
- this.id = '';
783
- }
784
- return this;
785
- };
786
- HTMLElement.prototype.hasAttribute = function (key) {
787
- return key.toLowerCase() in this.attrs;
788
- };
789
- /**
790
- * Get an attribute
791
- * @return {string | undefined} value of the attribute; or undefined if not exist
792
- */
793
- HTMLElement.prototype.getAttribute = function (key) {
794
- return this.attrs[key.toLowerCase()];
795
- };
796
- /**
797
- * Set an attribute value to the HTMLElement
798
- * @param {string} key The attribute name
799
- * @param {string} value The value to set, or null / undefined to remove an attribute
800
- */
801
- HTMLElement.prototype.setAttribute = function (key, value) {
802
- var _this = this;
803
- if (arguments.length < 2) {
804
- throw new Error("Failed to execute 'setAttribute' on 'Element'");
805
- }
806
- var k2 = key.toLowerCase();
807
- var attrs = this.rawAttributes;
808
- for (var k in attrs) {
809
- if (k.toLowerCase() === k2) {
810
- key = k;
811
- break;
812
- }
813
- }
814
- attrs[key] = String(value);
815
- // update this.attrs
816
- if (this._attrs) {
817
- this._attrs[k2] = decode(attrs[key]);
818
- }
819
- // Update rawString
820
- this.rawAttrs = Object.keys(attrs).map(function (name) {
821
- var val = _this.quoteAttribute(attrs[name]);
822
- if (val === 'null' || val === '""') return name;
823
- return "".concat(name, "=").concat(val);
824
- }).join(' ');
825
- // Update this.id
826
- if (key === 'id') {
827
- this.id = value;
828
- }
829
- return this;
830
- };
831
- /**
832
- * Replace all the attributes of the HTMLElement by the provided attributes
833
- * @param {Attributes} attributes the new attribute set
834
- */
835
- HTMLElement.prototype.setAttributes = function (attributes) {
836
- var _this = this;
837
- // Invalidate current this.attributes
838
- if (this._attrs) {
839
- delete this._attrs;
840
- }
841
- // Invalidate current this.rawAttributes
842
- if (this._rawAttrs) {
843
- delete this._rawAttrs;
844
- }
845
- // Update rawString
846
- this.rawAttrs = Object.keys(attributes).map(function (name) {
847
- var val = attributes[name];
848
- if (val === 'null' || val === '""') return name;
849
- return "".concat(name, "=").concat(_this.quoteAttribute(String(val)));
850
- }).join(' ');
851
- return this;
852
- };
853
- HTMLElement.prototype.insertAdjacentHTML = function (where, html) {
854
- var _a, _b, _c;
855
- var _this = this;
856
- if (arguments.length < 2) {
857
- throw new Error('2 arguments required');
858
- }
859
- var p = parse(html, this._parseOptions);
860
- if (where === 'afterend') {
861
- var idx = this.parentNode.childNodes.findIndex(function (child) {
862
- return child === _this;
863
- });
864
- resetParent(p.childNodes, this.parentNode);
865
- (_a = this.parentNode.childNodes).splice.apply(_a, __spreadArray([idx + 1, 0], p.childNodes, false));
866
- } else if (where === 'afterbegin') {
867
- resetParent(p.childNodes, this);
868
- (_b = this.childNodes).unshift.apply(_b, p.childNodes);
869
- } else if (where === 'beforeend') {
870
- p.childNodes.forEach(function (n) {
871
- _this.appendChild(n);
872
- });
873
- } else if (where === 'beforebegin') {
874
- var idx = this.parentNode.childNodes.findIndex(function (child) {
875
- return child === _this;
876
- });
877
- resetParent(p.childNodes, this.parentNode);
878
- (_c = this.parentNode.childNodes).splice.apply(_c, __spreadArray([idx, 0], p.childNodes, false));
879
- } else {
880
- throw new Error("The value provided ('".concat(where, "') is not one of 'beforebegin', 'afterbegin', 'beforeend', or 'afterend'"));
881
- }
882
- return this;
883
- // if (!where || html === undefined || html === null) {
884
- // return;
885
- // }
886
- };
887
- Object.defineProperty(HTMLElement.prototype, "nextSibling", {
888
- get: function () {
889
- if (this.parentNode) {
890
- var children = this.parentNode.childNodes;
891
- var i = 0;
892
- while (i < children.length) {
893
- var child = children[i++];
894
- if (this === child) return children[i] || null;
895
- }
896
- return null;
897
- }
898
- },
899
- enumerable: false,
900
- configurable: true
901
- });
902
- Object.defineProperty(HTMLElement.prototype, "nextElementSibling", {
903
- get: function () {
904
- if (this.parentNode) {
905
- var children = this.parentNode.childNodes;
906
- var i = 0;
907
- var find = false;
908
- while (i < children.length) {
909
- var child = children[i++];
910
- if (find) {
911
- if (child instanceof HTMLElement) {
912
- return child || null;
913
- }
914
- } else if (this === child) {
915
- find = true;
916
- }
917
- }
918
- return null;
919
- }
920
- },
921
- enumerable: false,
922
- configurable: true
923
- });
924
- Object.defineProperty(HTMLElement.prototype, "previousSibling", {
925
- get: function () {
926
- if (this.parentNode) {
927
- var children = this.parentNode.childNodes;
928
- var i = children.length;
929
- while (i > 0) {
930
- var child = children[--i];
931
- if (this === child) return children[i - 1] || null;
932
- }
933
- return null;
934
- }
935
- },
936
- enumerable: false,
937
- configurable: true
938
- });
939
- Object.defineProperty(HTMLElement.prototype, "previousElementSibling", {
940
- get: function () {
941
- if (this.parentNode) {
942
- var children = this.parentNode.childNodes;
943
- var i = children.length;
944
- var find = false;
945
- while (i > 0) {
946
- var child = children[--i];
947
- if (find) {
948
- if (child instanceof HTMLElement) {
949
- return child || null;
950
- }
951
- } else if (this === child) {
952
- find = true;
953
- }
954
- }
955
- return null;
956
- }
957
- },
958
- enumerable: false,
959
- configurable: true
960
- });
961
- Object.defineProperty(HTMLElement.prototype, "classNames", {
962
- get: function () {
963
- return this.classList.toString();
964
- },
965
- enumerable: false,
966
- configurable: true
967
- });
968
- /**
969
- * Clone this Node
970
- */
971
- HTMLElement.prototype.clone = function () {
972
- return parse(this.toString(), this._parseOptions).firstChild;
973
- };
974
- return HTMLElement;
975
- }(node_1.default);
976
- html.__exports.default = HTMLElement;
977
- // https://html.spec.whatwg.org/multipage/custom-elements.html#valid-custom-element-name
978
- var kMarkupPattern = /<!--[\s\S]*?-->|<(\/?)([a-zA-Z][-.:0-9_a-zA-Z]*)((?:\s+[^>]*?(?:(?:'[^']*')|(?:"[^"]*"))?)*)\s*(\/?)>/g;
979
- var kAttributePattern = /(?:^|\s)(id|class)\s*=\s*((?:'[^']*')|(?:"[^"]*")|\S+)/gi;
980
- var kElementsClosedByOpening = {
981
- li: {
982
- li: true,
983
- LI: true
984
- },
985
- LI: {
986
- li: true,
987
- LI: true
988
- },
989
- p: {
990
- p: true,
991
- div: true,
992
- P: true,
993
- DIV: true
994
- },
995
- P: {
996
- p: true,
997
- div: true,
998
- P: true,
999
- DIV: true
1000
- },
1001
- b: {
1002
- div: true,
1003
- DIV: true
1004
- },
1005
- B: {
1006
- div: true,
1007
- DIV: true
1008
- },
1009
- td: {
1010
- td: true,
1011
- th: true,
1012
- TD: true,
1013
- TH: true
1014
- },
1015
- TD: {
1016
- td: true,
1017
- th: true,
1018
- TD: true,
1019
- TH: true
1020
- },
1021
- th: {
1022
- td: true,
1023
- th: true,
1024
- TD: true,
1025
- TH: true
1026
- },
1027
- TH: {
1028
- td: true,
1029
- th: true,
1030
- TD: true,
1031
- TH: true
1032
- },
1033
- h1: {
1034
- h1: true,
1035
- H1: true
1036
- },
1037
- H1: {
1038
- h1: true,
1039
- H1: true
1040
- },
1041
- h2: {
1042
- h2: true,
1043
- H2: true
1044
- },
1045
- H2: {
1046
- h2: true,
1047
- H2: true
1048
- },
1049
- h3: {
1050
- h3: true,
1051
- H3: true
1052
- },
1053
- H3: {
1054
- h3: true,
1055
- H3: true
1056
- },
1057
- h4: {
1058
- h4: true,
1059
- H4: true
1060
- },
1061
- H4: {
1062
- h4: true,
1063
- H4: true
1064
- },
1065
- h5: {
1066
- h5: true,
1067
- H5: true
1068
- },
1069
- H5: {
1070
- h5: true,
1071
- H5: true
1072
- },
1073
- h6: {
1074
- h6: true,
1075
- H6: true
1076
- },
1077
- H6: {
1078
- h6: true,
1079
- H6: true
1080
- }
1081
- };
1082
- var kElementsClosedByClosing = {
1083
- li: {
1084
- ul: true,
1085
- ol: true,
1086
- UL: true,
1087
- OL: true
1088
- },
1089
- LI: {
1090
- ul: true,
1091
- ol: true,
1092
- UL: true,
1093
- OL: true
1094
- },
1095
- a: {
1096
- div: true,
1097
- DIV: true
1098
- },
1099
- A: {
1100
- div: true,
1101
- DIV: true
1102
- },
1103
- b: {
1104
- div: true,
1105
- DIV: true
1106
- },
1107
- B: {
1108
- div: true,
1109
- DIV: true
1110
- },
1111
- i: {
1112
- div: true,
1113
- DIV: true
1114
- },
1115
- I: {
1116
- div: true,
1117
- DIV: true
1118
- },
1119
- p: {
1120
- div: true,
1121
- DIV: true
1122
- },
1123
- P: {
1124
- div: true,
1125
- DIV: true
1126
- },
1127
- td: {
1128
- tr: true,
1129
- table: true,
1130
- TR: true,
1131
- TABLE: true
1132
- },
1133
- TD: {
1134
- tr: true,
1135
- table: true,
1136
- TR: true,
1137
- TABLE: true
1138
- },
1139
- th: {
1140
- tr: true,
1141
- table: true,
1142
- TR: true,
1143
- TABLE: true
1144
- },
1145
- TH: {
1146
- tr: true,
1147
- table: true,
1148
- TR: true,
1149
- TABLE: true
1150
- }
1151
- };
1152
- var frameflag = 'documentfragmentcontainer';
1153
- /**
1154
- * Parses HTML and returns a root element
1155
- * Parse a chuck of HTML source.
1156
- * @param {string} data html
1157
- * @return {HTMLElement} root element
1158
- */
1159
- function base_parse(data, options) {
1160
- var _a, _b;
1161
- if (options === void 0) {
1162
- options = {};
1163
- }
1164
- var voidTag = new void_tag_1.default((_a = options === null || options === void 0 ? void 0 : options.voidTag) === null || _a === void 0 ? void 0 : _a.closingSlash, (_b = options === null || options === void 0 ? void 0 : options.voidTag) === null || _b === void 0 ? void 0 : _b.tags);
1165
- var elements = options.blockTextElements || {
1166
- script: true,
1167
- noscript: true,
1168
- style: true,
1169
- pre: true
1170
- };
1171
- var element_names = Object.keys(elements);
1172
- var kBlockTextElements = element_names.map(function (it) {
1173
- return new RegExp("^".concat(it, "$"), 'i');
1174
- });
1175
- var kIgnoreElements = element_names.filter(function (it) {
1176
- return Boolean(elements[it]);
1177
- }).map(function (it) {
1178
- return new RegExp("^".concat(it, "$"), 'i');
1179
- });
1180
- function element_should_be_ignore(tag) {
1181
- return kIgnoreElements.some(function (it) {
1182
- return it.test(tag);
1183
- });
1184
- }
1185
- function is_block_text_element(tag) {
1186
- return kBlockTextElements.some(function (it) {
1187
- return it.test(tag);
1188
- });
1189
- }
1190
- var createRange = function (startPos, endPos) {
1191
- return [startPos - frameFlagOffset, endPos - frameFlagOffset];
1192
- };
1193
- var root = new HTMLElement(null, {}, '', null, [0, data.length], voidTag, options);
1194
- var currentParent = root;
1195
- var stack = [root];
1196
- var lastTextPos = -1;
1197
- var noNestedTagIndex = undefined;
1198
- var match;
1199
- // https://github.com/taoqf/node-html-parser/issues/38
1200
- data = "<".concat(frameflag, ">").concat(data, "</").concat(frameflag, ">");
1201
- var lowerCaseTagName = options.lowerCaseTagName,
1202
- fixNestedATags = options.fixNestedATags;
1203
- var dataEndPos = data.length - (frameflag.length + 2);
1204
- var frameFlagOffset = frameflag.length + 2;
1205
- while (match = kMarkupPattern.exec(data)) {
1206
- // Note: Object destructuring here consistently tests as higher performance than array destructuring
1207
- // eslint-disable-next-line prefer-const
1208
- var matchText = match[0],
1209
- leadingSlash = match[1],
1210
- tagName = match[2],
1211
- attributes = match[3],
1212
- closingSlash = match[4];
1213
- var matchLength = matchText.length;
1214
- var tagStartPos = kMarkupPattern.lastIndex - matchLength;
1215
- var tagEndPos = kMarkupPattern.lastIndex;
1216
- // Add TextNode if content
1217
- if (lastTextPos > -1) {
1218
- if (lastTextPos + matchLength < tagEndPos) {
1219
- var text = data.substring(lastTextPos, tagStartPos);
1220
- currentParent.appendChild(new text_1.default(text, currentParent, createRange(lastTextPos, tagStartPos)));
1221
- }
1222
- }
1223
- lastTextPos = kMarkupPattern.lastIndex;
1224
- // https://github.com/taoqf/node-html-parser/issues/38
1225
- // Skip frameflag node
1226
- if (tagName === frameflag) continue;
1227
- // Handle comments
1228
- if (matchText[1] === '!') {
1229
- if (options.comment) {
1230
- // Only keep what is in between <!-- and -->
1231
- var text = data.substring(tagStartPos + 4, tagEndPos - 3);
1232
- currentParent.appendChild(new comment_1.default(text, currentParent, createRange(tagStartPos, tagEndPos)));
1233
- }
1234
- continue;
1235
- }
1236
- /* -- Handle tag matching -- */
1237
- // Fix tag casing if necessary
1238
- if (lowerCaseTagName) tagName = tagName.toLowerCase();
1239
- // Handle opening tags (ie. <this> not </that>)
1240
- if (!leadingSlash) {
1241
- /* Populate attributes */
1242
- var attrs = {};
1243
- for (var attMatch = void 0; attMatch = kAttributePattern.exec(attributes);) {
1244
- var key = attMatch[1],
1245
- val = attMatch[2];
1246
- var isQuoted = val[0] === "'" || val[0] === "\"";
1247
- attrs[key.toLowerCase()] = isQuoted ? val.slice(1, val.length - 1) : val;
1248
- }
1249
- var parentTagName = currentParent.rawTagName;
1250
- if (!closingSlash && kElementsClosedByOpening[parentTagName]) {
1251
- if (kElementsClosedByOpening[parentTagName][tagName]) {
1252
- stack.pop();
1253
- currentParent = (0, back_1.default)(stack);
1254
- }
1255
- }
1256
- // Prevent nested A tags by terminating the last A and starting a new one : see issue #144
1257
- if (fixNestedATags && (tagName === 'a' || tagName === 'A')) {
1258
- if (noNestedTagIndex !== undefined) {
1259
- stack.splice(noNestedTagIndex);
1260
- currentParent = (0, back_1.default)(stack);
1261
- }
1262
- noNestedTagIndex = stack.length;
1263
- }
1264
- var tagEndPos_1 = kMarkupPattern.lastIndex;
1265
- var tagStartPos_1 = tagEndPos_1 - matchLength;
1266
- currentParent = currentParent.appendChild(
1267
- // Initialize range (end position updated later for closed tags)
1268
- new HTMLElement(tagName, attrs, attributes.slice(1), null, createRange(tagStartPos_1, tagEndPos_1), voidTag, options));
1269
- stack.push(currentParent);
1270
- if (is_block_text_element(tagName)) {
1271
- // Find closing tag
1272
- var closeMarkup = "</".concat(tagName, ">");
1273
- var closeIndex = lowerCaseTagName ? data.toLocaleLowerCase().indexOf(closeMarkup, kMarkupPattern.lastIndex) : data.indexOf(closeMarkup, kMarkupPattern.lastIndex);
1274
- var textEndPos = closeIndex === -1 ? dataEndPos : closeIndex;
1275
- if (element_should_be_ignore(tagName)) {
1276
- var text = data.substring(tagEndPos_1, textEndPos);
1277
- if (text.length > 0 && /\S/.test(text)) {
1278
- currentParent.appendChild(new text_1.default(text, currentParent, createRange(tagEndPos_1, textEndPos)));
1279
- }
1280
- }
1281
- if (closeIndex === -1) {
1282
- lastTextPos = kMarkupPattern.lastIndex = data.length + 1;
1283
- } else {
1284
- lastTextPos = kMarkupPattern.lastIndex = closeIndex + closeMarkup.length;
1285
- // Cause to be treated as self-closing, because no close found
1286
- leadingSlash = '/';
1287
- }
1288
- }
1289
- }
1290
- // Handle closing tags or self-closed elements (ie </tag> or <br>)
1291
- if (leadingSlash || closingSlash || voidTag.isVoidElement(tagName)) {
1292
- while (true) {
1293
- if (noNestedTagIndex != null && (tagName === 'a' || tagName === 'A')) noNestedTagIndex = undefined;
1294
- if (currentParent.rawTagName === tagName) {
1295
- // Update range end for closed tag
1296
- currentParent.range[1] = createRange(-1, Math.max(lastTextPos, tagEndPos))[1];
1297
- stack.pop();
1298
- currentParent = (0, back_1.default)(stack);
1299
- break;
1300
- } else {
1301
- var parentTagName = currentParent.tagName;
1302
- // Trying to close current tag, and move on
1303
- if (kElementsClosedByClosing[parentTagName]) {
1304
- if (kElementsClosedByClosing[parentTagName][tagName]) {
1305
- stack.pop();
1306
- currentParent = (0, back_1.default)(stack);
1307
- continue;
1308
- }
1309
- }
1310
- // Use aggressive strategy to handle unmatching markups.
1311
- break;
1312
- }
1313
- }
1314
- }
1315
- }
1316
- return stack;
1317
- }
1318
- html.__exports.base_parse = base_parse;
1319
- /**
1320
- * Parses HTML and returns a root element
1321
- * Parse a chuck of HTML source.
1322
- */
1323
- function parse(data, options) {
1324
- if (options === void 0) {
1325
- options = {};
1326
- }
1327
- var stack = base_parse(data, options);
1328
- var root = stack[0];
1329
- var _loop_1 = function () {
1330
- // Handle each error elements.
1331
- var last = stack.pop();
1332
- var oneBefore = (0, back_1.default)(stack);
1333
- if (last.parentNode && last.parentNode.parentNode) {
1334
- if (last.parentNode === oneBefore && last.tagName === oneBefore.tagName) {
1335
- // Pair error case <h3> <h3> handle : Fixes to <h3> </h3>
1336
- // this is wrong, becouse this will put the H3 outside the current right position which should be inside the current Html Element, see issue 152 for more info
1337
- if (options.parseNoneClosedTags !== true) {
1338
- oneBefore.removeChild(last);
1339
- last.childNodes.forEach(function (child) {
1340
- oneBefore.parentNode.appendChild(child);
1341
- });
1342
- stack.pop();
1343
- }
1344
- } else {
1345
- // Single error <div> <h3> </div> handle: Just removes <h3>
1346
- // Why remove? this is already a HtmlElement and the missing <H3> is already added in this case. see issue 152 for more info
1347
- // eslint-disable-next-line no-lonely-if
1348
- if (options.parseNoneClosedTags !== true) {
1349
- oneBefore.removeChild(last);
1350
- last.childNodes.forEach(function (child) {
1351
- oneBefore.appendChild(child);
1352
- });
1353
- }
1354
- }
1355
- }
1356
- };
1357
- while (stack.length > 1) {
1358
- _loop_1();
1359
- }
1360
- // response.childNodes.forEach((node) => {
1361
- // if (node instanceof HTMLElement) {
1362
- // node.parentNode = null;
1363
- // }
1364
- // });
1365
- return root;
1366
- }
1367
- html.__exports.parse = parse;
1368
- function resetParent(nodes, parent) {
1369
- return nodes.map(function (node) {
1370
- node.parentNode = parent;
1371
- return node;
1372
- });
1373
- }
1374
- //# sourceMappingURL=html.cjs.map