@websolutespa/bom-next 3.0.2 → 4.0.0-next.1

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 (264) hide show
  1. package/CHANGELOG.md +37 -7
  2. package/README.md +28 -0
  3. package/dist/_virtual/{_rolldown/runtime.js → rolldown_runtime.js} +7 -4
  4. package/dist/client/client.d.ts.map +1 -1
  5. package/dist/client/client.js +17 -6
  6. package/dist/client/client.js.map +1 -1
  7. package/dist/client/extra.d.ts +3 -3
  8. package/dist/client/extra.d.ts.map +1 -1
  9. package/dist/client/extra.js +10 -5
  10. package/dist/client/extra.js.map +1 -1
  11. package/dist/client/label.d.ts +3 -3
  12. package/dist/client/label.d.ts.map +1 -1
  13. package/dist/client/label.js +10 -5
  14. package/dist/client/label.js.map +1 -1
  15. package/dist/client/layout.d.ts +3 -3
  16. package/dist/client/layout.d.ts.map +1 -1
  17. package/dist/client/layout.js +10 -5
  18. package/dist/client/layout.js.map +1 -1
  19. package/dist/client/local.collection.d.ts.map +1 -1
  20. package/dist/client/local.collection.js +4 -2
  21. package/dist/client/local.collection.js.map +1 -1
  22. package/dist/client/metadata.d.ts +3 -3
  23. package/dist/client/metadata.d.ts.map +1 -1
  24. package/dist/client/metadata.js +48 -40
  25. package/dist/client/metadata.js.map +1 -1
  26. package/dist/client/page.d.ts +3 -3
  27. package/dist/client/page.d.ts.map +1 -1
  28. package/dist/client/page.js +10 -5
  29. package/dist/client/page.js.map +1 -1
  30. package/dist/client/useApi.d.ts +7 -7
  31. package/dist/client/useApi.d.ts.map +1 -1
  32. package/dist/client/useApi.js +2 -1
  33. package/dist/client/useApi.js.map +1 -1
  34. package/dist/client/useCollectionApi.d.ts +6 -6
  35. package/dist/client/useCollectionApi.d.ts.map +1 -1
  36. package/dist/client/useCollectionApi.js +4 -2
  37. package/dist/client/useCollectionApi.js.map +1 -1
  38. package/dist/client/useExtra.d.ts.map +1 -1
  39. package/dist/client/useExtra.js +5 -2
  40. package/dist/client/useExtra.js.map +1 -1
  41. package/dist/client/useHttp.d.ts.map +1 -1
  42. package/dist/client/useHttp.js +9 -6
  43. package/dist/client/useHttp.js.map +1 -1
  44. package/dist/client/useLabel.d.ts.map +1 -1
  45. package/dist/client/useLabel.js +5 -2
  46. package/dist/client/useLabel.js.map +1 -1
  47. package/dist/client/useLayout.d.ts.map +1 -1
  48. package/dist/client/useLayout.js +5 -2
  49. package/dist/client/useLayout.js.map +1 -1
  50. package/dist/client/useLink.d.ts.map +1 -1
  51. package/dist/client/useLink.js +7 -3
  52. package/dist/client/useLink.js.map +1 -1
  53. package/dist/client/useMetaData.d.ts.map +1 -1
  54. package/dist/client/useMetaData.js +5 -2
  55. package/dist/client/useMetaData.js.map +1 -1
  56. package/dist/client/usePage.d.ts.map +1 -1
  57. package/dist/client/usePage.js +5 -2
  58. package/dist/client/usePage.js.map +1 -1
  59. package/dist/client/useUser.d.ts.map +1 -1
  60. package/dist/client/useUser.js +5 -2
  61. package/dist/client/useUser.js.map +1 -1
  62. package/dist/client/user.d.ts.map +1 -1
  63. package/dist/client/user.js +17 -11
  64. package/dist/client/user.js.map +1 -1
  65. package/dist/exports/client.js +2 -1
  66. package/dist/exports/instrumentation.js +2 -1
  67. package/dist/exports/proxy.js +2 -1
  68. package/dist/exports/server.d.ts +5 -4
  69. package/dist/exports/server.js +7 -5
  70. package/dist/index.d.ts +3 -3
  71. package/dist/index.js +3 -2
  72. package/dist/instrumentation/client.d.ts.map +1 -1
  73. package/dist/instrumentation/client.js +2 -1
  74. package/dist/instrumentation/client.js.map +1 -1
  75. package/dist/instrumentation/sentry/capture.requestError.js +4 -1
  76. package/dist/instrumentation/sentry/capture.requestError.js.map +1 -1
  77. package/dist/instrumentation/sentry/capture.routerTransitionStart.js +2 -1
  78. package/dist/instrumentation/sentry/capture.routerTransitionStart.js.map +1 -1
  79. package/dist/instrumentation/sentry/config.client.js +10 -2
  80. package/dist/instrumentation/sentry/config.client.js.map +1 -0
  81. package/dist/instrumentation/sentry/config.edge.js +10 -2
  82. package/dist/instrumentation/sentry/config.edge.js.map +1 -0
  83. package/dist/instrumentation/sentry/config.server.js +10 -2
  84. package/dist/instrumentation/sentry/config.server.js.map +1 -0
  85. package/dist/instrumentation/server.d.ts.map +1 -1
  86. package/dist/instrumentation/server.js +8 -5
  87. package/dist/instrumentation/server.js.map +1 -1
  88. package/dist/instrumentation/types.d.ts.map +1 -1
  89. package/dist/lib/breadcrumb.d.ts.map +1 -1
  90. package/dist/lib/breadcrumb.js +6 -1
  91. package/dist/lib/breadcrumb.js.map +1 -1
  92. package/dist/lib/const.d.ts +14 -2
  93. package/dist/lib/const.d.ts.map +1 -1
  94. package/dist/lib/const.js +24 -2
  95. package/dist/lib/const.js.map +1 -1
  96. package/dist/lib/http.d.ts +9 -0
  97. package/dist/lib/http.d.ts.map +1 -1
  98. package/dist/lib/http.js +27 -4
  99. package/dist/lib/http.js.map +1 -1
  100. package/dist/lib/label.d.ts.map +1 -1
  101. package/dist/lib/label.js +4 -3
  102. package/dist/lib/label.js.map +1 -1
  103. package/dist/lib/layout.defaults.d.ts.map +1 -1
  104. package/dist/lib/layout.defaults.js +1 -1
  105. package/dist/lib/layout.defaults.js.map +1 -1
  106. package/dist/lib/link.d.ts.map +1 -1
  107. package/dist/lib/link.js +2 -1
  108. package/dist/lib/link.js.map +1 -1
  109. package/dist/lib/meta-data.d.ts.map +1 -1
  110. package/dist/lib/open-graph.d.ts.map +1 -1
  111. package/dist/lib/pagination.d.ts.map +1 -1
  112. package/dist/lib/pagination.js +4 -2
  113. package/dist/lib/pagination.js.map +1 -1
  114. package/dist/lib/route.d.ts.map +1 -1
  115. package/dist/lib/route.js +9 -3
  116. package/dist/lib/route.js.map +1 -1
  117. package/dist/lib/store.d.ts.map +1 -1
  118. package/dist/lib/store.js +31 -31
  119. package/dist/lib/store.js.map +1 -1
  120. package/dist/lib/structured-data.d.ts.map +1 -1
  121. package/dist/lib/twitter-card.d.ts.map +1 -1
  122. package/dist/lib/utils.d.ts.map +1 -1
  123. package/dist/lib/utils.js +3 -2
  124. package/dist/lib/utils.js.map +1 -1
  125. package/dist/mock.d.ts.map +1 -1
  126. package/dist/node_modules/@selderee/plugin-htmlparser2/lib/hp2-builder.js +3 -2
  127. package/dist/node_modules/@selderee/plugin-htmlparser2/lib/hp2-builder.js.map +1 -1
  128. package/dist/node_modules/deepmerge/dist/cjs.js +17 -9
  129. package/dist/node_modules/deepmerge/dist/cjs.js.map +1 -1
  130. package/dist/node_modules/dom-serializer/lib/esm/foreignNames.js +2 -2
  131. package/dist/node_modules/dom-serializer/lib/esm/foreignNames.js.map +1 -1
  132. package/dist/node_modules/dom-serializer/lib/esm/index.js +10 -15
  133. package/dist/node_modules/dom-serializer/lib/esm/index.js.map +1 -1
  134. package/dist/node_modules/domelementtype/lib/esm/index.js +12 -12
  135. package/dist/node_modules/domelementtype/lib/esm/index.js.map +1 -1
  136. package/dist/node_modules/domhandler/lib/esm/index.js +4 -3
  137. package/dist/node_modules/domhandler/lib/esm/index.js.map +1 -1
  138. package/dist/node_modules/domhandler/lib/esm/node.js +8 -7
  139. package/dist/node_modules/domhandler/lib/esm/node.js.map +1 -1
  140. package/dist/node_modules/entities/lib/esm/decode.js +33 -32
  141. package/dist/node_modules/entities/lib/esm/decode.js.map +1 -1
  142. package/dist/node_modules/entities/lib/esm/decode_codepoint.js +5 -5
  143. package/dist/node_modules/entities/lib/esm/decode_codepoint.js.map +1 -1
  144. package/dist/node_modules/entities/lib/esm/escape.js +14 -6
  145. package/dist/node_modules/entities/lib/esm/escape.js.map +1 -1
  146. package/dist/node_modules/entities/lib/esm/generated/decode-data-html.js +2 -2
  147. package/dist/node_modules/entities/lib/esm/generated/decode-data-html.js.map +1 -1
  148. package/dist/node_modules/entities/lib/esm/generated/decode-data-xml.js +2 -2
  149. package/dist/node_modules/entities/lib/esm/generated/decode-data-xml.js.map +1 -1
  150. package/dist/node_modules/html-to-text/lib/html-to-text.js +45 -33
  151. package/dist/node_modules/html-to-text/lib/html-to-text.js.map +1 -1
  152. package/dist/node_modules/html-to-text/node_modules/htmlparser2/lib/esm/Parser.js +25 -25
  153. package/dist/node_modules/html-to-text/node_modules/htmlparser2/lib/esm/Parser.js.map +1 -1
  154. package/dist/node_modules/html-to-text/node_modules/htmlparser2/lib/esm/Tokenizer.js +76 -73
  155. package/dist/node_modules/html-to-text/node_modules/htmlparser2/lib/esm/Tokenizer.js.map +1 -1
  156. package/dist/node_modules/html-to-text/node_modules/htmlparser2/lib/esm/index.js +4 -3
  157. package/dist/node_modules/html-to-text/node_modules/htmlparser2/lib/esm/index.js.map +1 -1
  158. package/dist/node_modules/leac/lib/leac.js +72 -72
  159. package/dist/node_modules/leac/lib/leac.js.map +1 -1
  160. package/dist/node_modules/parseley/lib/parseley.js +37 -33
  161. package/dist/node_modules/parseley/lib/parseley.js.map +1 -1
  162. package/dist/node_modules/peberminta/lib/core.js +4 -4
  163. package/dist/node_modules/peberminta/lib/core.js.map +1 -1
  164. package/dist/node_modules/selderee/lib/selderee.js +16 -10
  165. package/dist/node_modules/selderee/lib/selderee.js.map +1 -1
  166. package/dist/proxy/protected-route.d.ts.map +1 -1
  167. package/dist/proxy/protected-route.js +11 -6
  168. package/dist/proxy/protected-route.js.map +1 -1
  169. package/dist/proxy/proxy.d.ts +5 -4
  170. package/dist/proxy/proxy.d.ts.map +1 -1
  171. package/dist/proxy/proxy.js +26 -6
  172. package/dist/proxy/proxy.js.map +1 -1
  173. package/dist/proxy/route-auto-detection.d.ts.map +1 -1
  174. package/dist/proxy/route-auto-detection.js +26 -14
  175. package/dist/proxy/route-auto-detection.js.map +1 -1
  176. package/dist/proxy/route-proxy.d.ts.map +1 -1
  177. package/dist/proxy/route-proxy.js +22 -5
  178. package/dist/proxy/route-proxy.js.map +1 -1
  179. package/dist/server/context.d.ts +31 -15
  180. package/dist/server/context.d.ts.map +1 -1
  181. package/dist/server/context.js +156 -69
  182. package/dist/server/context.js.map +1 -1
  183. package/dist/server/handlers/auth.handler.d.ts.map +1 -1
  184. package/dist/server/handlers/auth.handler.js +4 -2
  185. package/dist/server/handlers/auth.handler.js.map +1 -1
  186. package/dist/server/handlers/captions.handler.d.ts.map +1 -1
  187. package/dist/server/handlers/captions.handler.js +4 -2
  188. package/dist/server/handlers/captions.handler.js.map +1 -1
  189. package/dist/server/handlers/collection.handler.d.ts.map +1 -1
  190. package/dist/server/handlers/collection.handler.js +2 -1
  191. package/dist/server/handlers/collection.handler.js.map +1 -1
  192. package/dist/server/handlers/error-response.js +6 -2
  193. package/dist/server/handlers/error-response.js.map +1 -1
  194. package/dist/server/handlers/index.handler.d.ts.map +1 -1
  195. package/dist/server/handlers/index.handler.js +2 -1
  196. package/dist/server/handlers/index.handler.js.map +1 -1
  197. package/dist/server/handlers/preview.handler.d.ts.map +1 -1
  198. package/dist/server/handlers/preview.handler.js +6 -3
  199. package/dist/server/handlers/preview.handler.js.map +1 -1
  200. package/dist/server/handlers/registry.handler.d.ts.map +1 -1
  201. package/dist/server/handlers/registry.handler.js +14 -9
  202. package/dist/server/handlers/registry.handler.js.map +1 -1
  203. package/dist/server/handlers/route.handler.d.ts.map +1 -1
  204. package/dist/server/handlers/route.handler.js +12 -3
  205. package/dist/server/handlers/route.handler.js.map +1 -1
  206. package/dist/server/handlers/sitemap.handler.d.ts.map +1 -1
  207. package/dist/server/handlers/sitemap.handler.js +12 -9
  208. package/dist/server/handlers/sitemap.handler.js.map +1 -1
  209. package/dist/server/handlers/static-params.handler.d.ts.map +1 -1
  210. package/dist/server/handlers/static-params.handler.js +13 -8
  211. package/dist/server/handlers/static-params.handler.js.map +1 -1
  212. package/dist/server/handlers/vars.handler.d.ts.map +1 -1
  213. package/dist/server/handlers/vars.handler.js +5 -4
  214. package/dist/server/handlers/vars.handler.js.map +1 -1
  215. package/dist/server/helpers.d.ts +50 -0
  216. package/dist/server/helpers.d.ts.map +1 -0
  217. package/dist/server/helpers.js +60 -0
  218. package/dist/server/helpers.js.map +1 -0
  219. package/dist/server/layout.js +69 -34
  220. package/dist/server/layout.js.map +1 -1
  221. package/dist/server/lazy.d.ts +1 -0
  222. package/dist/server/lazy.d.ts.map +1 -1
  223. package/dist/server/lazy.js +3 -2
  224. package/dist/server/lazy.js.map +1 -1
  225. package/dist/server/local-api.d.ts.map +1 -1
  226. package/dist/server/local-api.js +12 -6
  227. package/dist/server/local-api.js.map +1 -1
  228. package/dist/server/metadata.d.ts +8 -5
  229. package/dist/server/metadata.d.ts.map +1 -1
  230. package/dist/server/metadata.js +21 -7
  231. package/dist/server/metadata.js.map +1 -1
  232. package/dist/server/mixer-payload.d.ts +1 -1
  233. package/dist/server/mixer-payload.d.ts.map +1 -1
  234. package/dist/server/mixer.d.ts +48 -6
  235. package/dist/server/mixer.d.ts.map +1 -1
  236. package/dist/server/mixer.js +235 -68
  237. package/dist/server/mixer.js.map +1 -1
  238. package/dist/server/page.d.ts +21 -5
  239. package/dist/server/page.d.ts.map +1 -1
  240. package/dist/server/page.js +74 -15
  241. package/dist/server/page.js.map +1 -1
  242. package/dist/server/utils.d.ts.map +1 -1
  243. package/dist/server/utils.js +4 -2
  244. package/dist/server/utils.js.map +1 -1
  245. package/dist/server/utmz.d.ts.map +1 -1
  246. package/dist/server/utmz.js +1 -1
  247. package/dist/server/utmz.js.map +1 -1
  248. package/dist/types.d.ts +79 -8
  249. package/dist/types.d.ts.map +1 -1
  250. package/package.json +16 -15
  251. package/src/exports/server.ts +1 -0
  252. package/src/lib/const.ts +15 -0
  253. package/src/lib/http.ts +15 -4
  254. package/src/proxy/proxy.ts +11 -4
  255. package/src/server/context.test.ts +467 -0
  256. package/src/server/context.ts +237 -78
  257. package/src/server/context.type-test.ts +106 -0
  258. package/src/server/helpers.ts +58 -0
  259. package/src/server/layout.ts +45 -39
  260. package/src/server/lazy.ts +1 -1
  261. package/src/server/metadata.ts +15 -7
  262. package/src/server/mixer.ts +57 -9
  263. package/src/server/page.ts +62 -17
  264. package/src/types.ts +109 -7
@@ -1 +1 @@
1
- {"version":3,"file":"cjs.js","names":[],"sources":["../../../../../../node_modules/deepmerge/dist/cjs.js"],"sourcesContent":["'use strict';\n\nvar isMergeableObject = function isMergeableObject(value) {\n\treturn isNonNullObject(value)\n\t\t&& !isSpecial(value)\n};\n\nfunction isNonNullObject(value) {\n\treturn !!value && typeof value === 'object'\n}\n\nfunction isSpecial(value) {\n\tvar stringValue = Object.prototype.toString.call(value);\n\n\treturn stringValue === '[object RegExp]'\n\t\t|| stringValue === '[object Date]'\n\t\t|| isReactElement(value)\n}\n\n// see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25\nvar canUseSymbol = typeof Symbol === 'function' && Symbol.for;\nvar REACT_ELEMENT_TYPE = canUseSymbol ? Symbol.for('react.element') : 0xeac7;\n\nfunction isReactElement(value) {\n\treturn value.$$typeof === REACT_ELEMENT_TYPE\n}\n\nfunction emptyTarget(val) {\n\treturn Array.isArray(val) ? [] : {}\n}\n\nfunction cloneUnlessOtherwiseSpecified(value, options) {\n\treturn (options.clone !== false && options.isMergeableObject(value))\n\t\t? deepmerge(emptyTarget(value), value, options)\n\t\t: value\n}\n\nfunction defaultArrayMerge(target, source, options) {\n\treturn target.concat(source).map(function(element) {\n\t\treturn cloneUnlessOtherwiseSpecified(element, options)\n\t})\n}\n\nfunction getMergeFunction(key, options) {\n\tif (!options.customMerge) {\n\t\treturn deepmerge\n\t}\n\tvar customMerge = options.customMerge(key);\n\treturn typeof customMerge === 'function' ? customMerge : deepmerge\n}\n\nfunction getEnumerableOwnPropertySymbols(target) {\n\treturn Object.getOwnPropertySymbols\n\t\t? Object.getOwnPropertySymbols(target).filter(function(symbol) {\n\t\t\treturn Object.propertyIsEnumerable.call(target, symbol)\n\t\t})\n\t\t: []\n}\n\nfunction getKeys(target) {\n\treturn Object.keys(target).concat(getEnumerableOwnPropertySymbols(target))\n}\n\nfunction propertyIsOnObject(object, property) {\n\ttry {\n\t\treturn property in object\n\t} catch(_) {\n\t\treturn false\n\t}\n}\n\n// Protects from prototype poisoning and unexpected merging up the prototype chain.\nfunction propertyIsUnsafe(target, key) {\n\treturn propertyIsOnObject(target, key) // Properties are safe to merge if they don't exist in the target yet,\n\t\t&& !(Object.hasOwnProperty.call(target, key) // unsafe if they exist up the prototype chain,\n\t\t\t&& Object.propertyIsEnumerable.call(target, key)) // and also unsafe if they're nonenumerable.\n}\n\nfunction mergeObject(target, source, options) {\n\tvar destination = {};\n\tif (options.isMergeableObject(target)) {\n\t\tgetKeys(target).forEach(function(key) {\n\t\t\tdestination[key] = cloneUnlessOtherwiseSpecified(target[key], options);\n\t\t});\n\t}\n\tgetKeys(source).forEach(function(key) {\n\t\tif (propertyIsUnsafe(target, key)) {\n\t\t\treturn\n\t\t}\n\n\t\tif (propertyIsOnObject(target, key) && options.isMergeableObject(source[key])) {\n\t\t\tdestination[key] = getMergeFunction(key, options)(target[key], source[key], options);\n\t\t} else {\n\t\t\tdestination[key] = cloneUnlessOtherwiseSpecified(source[key], options);\n\t\t}\n\t});\n\treturn destination\n}\n\nfunction deepmerge(target, source, options) {\n\toptions = options || {};\n\toptions.arrayMerge = options.arrayMerge || defaultArrayMerge;\n\toptions.isMergeableObject = options.isMergeableObject || isMergeableObject;\n\t// cloneUnlessOtherwiseSpecified is added to `options` so that custom arrayMerge()\n\t// implementations can use it. The caller may not replace it.\n\toptions.cloneUnlessOtherwiseSpecified = cloneUnlessOtherwiseSpecified;\n\n\tvar sourceIsArray = Array.isArray(source);\n\tvar targetIsArray = Array.isArray(target);\n\tvar sourceAndTargetTypesMatch = sourceIsArray === targetIsArray;\n\n\tif (!sourceAndTargetTypesMatch) {\n\t\treturn cloneUnlessOtherwiseSpecified(source, options)\n\t} else if (sourceIsArray) {\n\t\treturn options.arrayMerge(target, source, options)\n\t} else {\n\t\treturn mergeObject(target, source, options)\n\t}\n}\n\ndeepmerge.all = function deepmergeAll(array, options) {\n\tif (!Array.isArray(array)) {\n\t\tthrow new Error('first argument should be an array')\n\t}\n\n\treturn array.reduce(function(prev, next) {\n\t\treturn deepmerge(prev, next, options)\n\t}, {})\n};\n\nvar deepmerge_1 = deepmerge;\n\nmodule.exports = deepmerge_1;\n"],"x_google_ignoreList":[0],"mappings":";;;CAEA,IAAI,oBAAoB,SAAS,kBAAkB,OAAO;EACzD,OAAO,gBAAgB,KAAK,KACxB,CAAC,UAAU,KAAK;CACrB;CAEA,SAAS,gBAAgB,OAAO;EAC/B,OAAO,CAAC,CAAC,SAAS,OAAO,UAAU;CACpC;CAEA,SAAS,UAAU,OAAO;EACzB,IAAI,cAAc,OAAO,UAAU,SAAS,KAAK,KAAK;EAEtD,OAAO,gBAAgB,qBACnB,gBAAgB,mBAChB,eAAe,KAAK;CACzB;CAIA,IAAI,qBADe,OAAO,WAAW,cAAc,OAAO,MAClB,OAAO,IAAI,eAAe,IAAI;CAEtE,SAAS,eAAe,OAAO;EAC9B,OAAO,MAAM,aAAa;CAC3B;CAEA,SAAS,YAAY,KAAK;EACzB,OAAO,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC;CACnC;CAEA,SAAS,8BAA8B,OAAO,SAAS;EACtD,OAAQ,QAAQ,UAAU,SAAS,QAAQ,kBAAkB,KAAK,IAC/D,UAAU,YAAY,KAAK,GAAG,OAAO,OAAO,IAC5C;CACJ;CAEA,SAAS,kBAAkB,QAAQ,QAAQ,SAAS;EACnD,OAAO,OAAO,OAAO,MAAM,CAAC,CAAC,IAAI,SAAS,SAAS;GAClD,OAAO,8BAA8B,SAAS,OAAO;EACtD,CAAC;CACF;CAEA,SAAS,iBAAiB,KAAK,SAAS;EACvC,IAAI,CAAC,QAAQ,aACZ,OAAO;EAER,IAAI,cAAc,QAAQ,YAAY,GAAG;EACzC,OAAO,OAAO,gBAAgB,aAAa,cAAc;CAC1D;CAEA,SAAS,gCAAgC,QAAQ;EAChD,OAAO,OAAO,wBACX,OAAO,sBAAsB,MAAM,CAAC,CAAC,OAAO,SAAS,QAAQ;GAC9D,OAA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,IAAI,eACV,OAAO,QAAQ,WAAW,QAAQ,QAAQ,OAAO;OAEjD,OAAO,YAAY,QAAQ,QAAQ,OAAO;CAE5C;CAEA,UAAU,MAAM,SAAS,aAAa,OAAO,SAAS;EACrD,IAAI,CAAC,MAAM,QAAQ,KAAK,GACvB,MAAM,IAAI,MAAM,mCAAmC;EAGpD,OAAO,MAAM,OAAO,SAAS,MAAM,MAAM;GACxC,OAAO,UAAU,MAAM,MAAM,OAAO;EACrC,GAAG,CAAC,CAAC;CACN;CAIA,OAAO,UAAU"}
1
+ {"version":3,"file":"cjs.js","names":["isMergeableObject"],"sources":["../../../../../../../node_modules/deepmerge/dist/cjs.js"],"sourcesContent":["'use strict';\n\nvar isMergeableObject = function isMergeableObject(value) {\n\treturn isNonNullObject(value)\n\t\t&& !isSpecial(value)\n};\n\nfunction isNonNullObject(value) {\n\treturn !!value && typeof value === 'object'\n}\n\nfunction isSpecial(value) {\n\tvar stringValue = Object.prototype.toString.call(value);\n\n\treturn stringValue === '[object RegExp]'\n\t\t|| stringValue === '[object Date]'\n\t\t|| isReactElement(value)\n}\n\n// see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25\nvar canUseSymbol = typeof Symbol === 'function' && Symbol.for;\nvar REACT_ELEMENT_TYPE = canUseSymbol ? Symbol.for('react.element') : 0xeac7;\n\nfunction isReactElement(value) {\n\treturn value.$$typeof === REACT_ELEMENT_TYPE\n}\n\nfunction emptyTarget(val) {\n\treturn Array.isArray(val) ? [] : {}\n}\n\nfunction cloneUnlessOtherwiseSpecified(value, options) {\n\treturn (options.clone !== false && options.isMergeableObject(value))\n\t\t? deepmerge(emptyTarget(value), value, options)\n\t\t: value\n}\n\nfunction defaultArrayMerge(target, source, options) {\n\treturn target.concat(source).map(function(element) {\n\t\treturn cloneUnlessOtherwiseSpecified(element, options)\n\t})\n}\n\nfunction getMergeFunction(key, options) {\n\tif (!options.customMerge) {\n\t\treturn deepmerge\n\t}\n\tvar customMerge = options.customMerge(key);\n\treturn typeof customMerge === 'function' ? customMerge : deepmerge\n}\n\nfunction getEnumerableOwnPropertySymbols(target) {\n\treturn Object.getOwnPropertySymbols\n\t\t? Object.getOwnPropertySymbols(target).filter(function(symbol) {\n\t\t\treturn Object.propertyIsEnumerable.call(target, symbol)\n\t\t})\n\t\t: []\n}\n\nfunction getKeys(target) {\n\treturn Object.keys(target).concat(getEnumerableOwnPropertySymbols(target))\n}\n\nfunction propertyIsOnObject(object, property) {\n\ttry {\n\t\treturn property in object\n\t} catch(_) {\n\t\treturn false\n\t}\n}\n\n// Protects from prototype poisoning and unexpected merging up the prototype chain.\nfunction propertyIsUnsafe(target, key) {\n\treturn propertyIsOnObject(target, key) // Properties are safe to merge if they don't exist in the target yet,\n\t\t&& !(Object.hasOwnProperty.call(target, key) // unsafe if they exist up the prototype chain,\n\t\t\t&& Object.propertyIsEnumerable.call(target, key)) // and also unsafe if they're nonenumerable.\n}\n\nfunction mergeObject(target, source, options) {\n\tvar destination = {};\n\tif (options.isMergeableObject(target)) {\n\t\tgetKeys(target).forEach(function(key) {\n\t\t\tdestination[key] = cloneUnlessOtherwiseSpecified(target[key], options);\n\t\t});\n\t}\n\tgetKeys(source).forEach(function(key) {\n\t\tif (propertyIsUnsafe(target, key)) {\n\t\t\treturn\n\t\t}\n\n\t\tif (propertyIsOnObject(target, key) && options.isMergeableObject(source[key])) {\n\t\t\tdestination[key] = getMergeFunction(key, options)(target[key], source[key], options);\n\t\t} else {\n\t\t\tdestination[key] = cloneUnlessOtherwiseSpecified(source[key], options);\n\t\t}\n\t});\n\treturn destination\n}\n\nfunction deepmerge(target, source, options) {\n\toptions = options || {};\n\toptions.arrayMerge = options.arrayMerge || defaultArrayMerge;\n\toptions.isMergeableObject = options.isMergeableObject || isMergeableObject;\n\t// cloneUnlessOtherwiseSpecified is added to `options` so that custom arrayMerge()\n\t// implementations can use it. The caller may not replace it.\n\toptions.cloneUnlessOtherwiseSpecified = cloneUnlessOtherwiseSpecified;\n\n\tvar sourceIsArray = Array.isArray(source);\n\tvar targetIsArray = Array.isArray(target);\n\tvar sourceAndTargetTypesMatch = sourceIsArray === targetIsArray;\n\n\tif (!sourceAndTargetTypesMatch) {\n\t\treturn cloneUnlessOtherwiseSpecified(source, options)\n\t} else if (sourceIsArray) {\n\t\treturn options.arrayMerge(target, source, options)\n\t} else {\n\t\treturn mergeObject(target, source, options)\n\t}\n}\n\ndeepmerge.all = function deepmergeAll(array, options) {\n\tif (!Array.isArray(array)) {\n\t\tthrow new Error('first argument should be an array')\n\t}\n\n\treturn array.reduce(function(prev, next) {\n\t\treturn deepmerge(prev, next, options)\n\t}, {})\n};\n\nvar deepmerge_1 = deepmerge;\n\nmodule.exports = deepmerge_1;\n"],"x_google_ignoreList":[0],"mappings":";;;;;;CAEA,IAAI,oBAAoB,SAASA,oBAAkB,OAAO;AACzD,SAAO,gBAAgB,MAAM,IACzB,CAAC,UAAU,MAAM;CACrB;CAED,SAAS,gBAAgB,OAAO;AAC/B,SAAO,CAAC,CAAC,SAAS,OAAO,UAAU;CACnC;CAED,SAAS,UAAU,OAAO;EACzB,IAAI,cAAc,OAAO,UAAU,SAAS,KAAK,MAAM;AAEvD,SAAO,gBAAgB,qBACnB,gBAAgB,mBAChB,eAAe,MAAM;CACzB;CAGD,IAAI,eAAe,OAAO,WAAW,cAAc,OAAO;CAC1D,IAAI,qBAAqB,eAAe,OAAO,IAAI,gBAAgB,GAAG;CAEtE,SAAS,eAAe,OAAO;AAC9B,SAAO,MAAM,aAAa;CAC1B;CAED,SAAS,YAAY,KAAK;AACzB,SAAO,MAAM,QAAQ,IAAI,GAAG,CAAE,IAAG,CAAE;CACnC;CAED,SAAS,8BAA8B,OAAO,SAAS;AACtD,SAAQ,QAAQ,UAAU,SAAS,QAAQ,kBAAkB,MAAM,GAChE,UAAU,YAAY,MAAM,EAAE,OAAO,QAAQ,GAC7C;CACH;CAED,SAAS,kBAAkB,QAAQ,QAAQ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O,8BAA8B,OAAO,MAAM,QAAQ;EAEvE,EAAC;AACF,SAAO;CACP;CAED,SAAS,UAAU,QAAQ,QAAQ,SAAS;EAC3C,UAAU,WAAW,CAAE;EACvB,QAAQ,aAAa,QAAQ,cAAc;EAC3C,QAAQ,oBAAoB,QAAQ,qBAAqB;EAGzD,QAAQ,gCAAgC;EAExC,IAAI,gBAAgB,MAAM,QAAQ,OAAO;EACzC,IAAI,gBAAgB,MAAM,QAAQ,OAAO;EACzC,IAAI,4BAA4B,kBAAkB;AAElD,MAAI,CAAC,0BACJ,QAAO,8BAA8B,QAAQ,QAAQ;WAC3C,cACV,QAAO,QAAQ,WAAW,QAAQ,QAAQ,QAAQ;MAElD,QAAO,YAAY,QAAQ,QAAQ,QAAQ;CAE5C;CAED,UAAU,MAAM,SAAS,aAAa,OAAO,SAAS;AACrD,MAAI,CAAC,MAAM,QAAQ,MAAM,CACxB,OAAM,IAAI,MAAM;AAGjB,SAAO,MAAM,OAAO,SAAS,MAAM,MAAM;AACxC,UAAO,UAAU,MAAM,MAAM,QAAQ;EACrC,GAAE,CAAE,EAAC;CACN;CAED,IAAI,cAAc;CAElB,OAAO,UAAU"}
@@ -1,4 +1,4 @@
1
- //#region ../../node_modules/dom-serializer/lib/esm/foreignNames.js
1
+ //#region ../../../node_modules/dom-serializer/lib/esm/foreignNames.js
2
2
  const elementNames = new Map([
3
3
  "altGlyph",
4
4
  "altGlyphDef",
@@ -99,7 +99,7 @@ const attributeNames = new Map([
99
99
  "yChannelSelector",
100
100
  "zoomAndPan"
101
101
  ].map((val) => [val.toLowerCase(), val]));
102
+
102
103
  //#endregion
103
104
  export { attributeNames, elementNames };
104
-
105
105
  //# sourceMappingURL=foreignNames.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"foreignNames.js","names":[],"sources":["../../../../../../../node_modules/dom-serializer/lib/esm/foreignNames.js"],"sourcesContent":["export const elementNames = new Map([\n \"altGlyph\",\n \"altGlyphDef\",\n \"altGlyphItem\",\n \"animateColor\",\n \"animateMotion\",\n \"animateTransform\",\n \"clipPath\",\n \"feBlend\",\n \"feColorMatrix\",\n \"feComponentTransfer\",\n \"feComposite\",\n \"feConvolveMatrix\",\n \"feDiffuseLighting\",\n \"feDisplacementMap\",\n \"feDistantLight\",\n \"feDropShadow\",\n \"feFlood\",\n \"feFuncA\",\n \"feFuncB\",\n \"feFuncG\",\n \"feFuncR\",\n \"feGaussianBlur\",\n \"feImage\",\n \"feMerge\",\n \"feMergeNode\",\n \"feMorphology\",\n \"feOffset\",\n \"fePointLight\",\n \"feSpecularLighting\",\n \"feSpotLight\",\n \"feTile\",\n \"feTurbulence\",\n \"foreignObject\",\n \"glyphRef\",\n \"linearGradient\",\n \"radialGradient\",\n \"textPath\",\n].map((val) => [val.toLowerCase(), val]));\nexport const attributeNames = new Map([\n \"definitionURL\",\n \"attributeName\",\n \"attributeType\",\n \"baseFrequency\",\n \"baseProfile\",\n \"calcMode\",\n \"clipPathUnits\",\n \"diffuseConstant\",\n \"edgeMode\",\n \"filterUnits\",\n \"glyphRef\",\n \"gradientTransform\",\n \"gradientUnits\",\n \"kernelMatrix\",\n \"kernelUnitLength\",\n \"keyPoints\",\n \"keySplines\",\n \"keyTimes\",\n \"lengthAdjust\",\n \"limitingConeAngle\",\n \"markerHeight\",\n \"markerUnits\",\n \"markerWidth\",\n \"maskContentUnits\",\n \"maskUnits\",\n \"numOctaves\",\n \"pathLength\",\n \"patternContentUnits\",\n \"patternTransform\",\n \"patternUnits\",\n \"pointsAtX\",\n \"pointsAtY\",\n \"pointsAtZ\",\n \"preserveAlpha\",\n \"preserveAspectRatio\",\n \"primitiveUnits\",\n \"refX\",\n \"refY\",\n \"repeatCount\",\n \"repeatDur\",\n \"requiredExtensions\",\n \"requiredFeatures\",\n \"specularConstant\",\n \"specularExponent\",\n \"spreadMethod\",\n \"startOffset\",\n \"stdDeviation\",\n \"stitchTiles\",\n \"surfaceScale\",\n \"systemLanguage\",\n \"tableValues\",\n \"targetX\",\n \"targetY\",\n \"textLength\",\n \"viewBox\",\n \"viewTarget\",\n \"xChannelSelector\",\n \"yChannelSelector\",\n \"zoomAndPan\",\n].map((val) => [val.toLowerCase(), val]));\n"],"x_google_ignoreList":[0],"mappings":";AAAA,MAAa,eAAe,IAAI,IAAI;CAChC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACJ,CAAC,CAAC,KAAK,QAAQ,CAAC,IAAI,YAAY,GAAG,GAAG,CAAC,CAAC;AACxC,MAAa,iBAAiB,IAAI,IAAI;CAClC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACJ,CAAC,CAAC,KAAK,QAAQ,CAAC,IAAI,YAAY,GAAG,GAAG,CAAC,CAAC"}
1
+ {"version":3,"file":"foreignNames.js","names":[],"sources":["../../../../../../../../node_modules/dom-serializer/lib/esm/foreignNames.js"],"sourcesContent":["export const elementNames = new Map([\n \"altGlyph\",\n \"altGlyphDef\",\n \"altGlyphItem\",\n \"animateColor\",\n \"animateMotion\",\n \"animateTransform\",\n \"clipPath\",\n \"feBlend\",\n \"feColorMatrix\",\n \"feComponentTransfer\",\n \"feComposite\",\n \"feConvolveMatrix\",\n \"feDiffuseLighting\",\n \"feDisplacementMap\",\n \"feDistantLight\",\n \"feDropShadow\",\n \"feFlood\",\n \"feFuncA\",\n \"feFuncB\",\n \"feFuncG\",\n \"feFuncR\",\n \"feGaussianBlur\",\n \"feImage\",\n \"feMerge\",\n \"feMergeNode\",\n \"feMorphology\",\n \"feOffset\",\n \"fePointLight\",\n \"feSpecularLighting\",\n \"feSpotLight\",\n \"feTile\",\n \"feTurbulence\",\n \"foreignObject\",\n \"glyphRef\",\n \"linearGradient\",\n \"radialGradient\",\n \"textPath\",\n].map((val) => [val.toLowerCase(), val]));\nexport const attributeNames = new Map([\n \"definitionURL\",\n \"attributeName\",\n \"attributeType\",\n \"baseFrequency\",\n \"baseProfile\",\n \"calcMode\",\n \"clipPathUnits\",\n \"diffuseConstant\",\n \"edgeMode\",\n \"filterUnits\",\n \"glyphRef\",\n \"gradientTransform\",\n \"gradientUnits\",\n \"kernelMatrix\",\n \"kernelUnitLength\",\n \"keyPoints\",\n \"keySplines\",\n \"keyTimes\",\n \"lengthAdjust\",\n \"limitingConeAngle\",\n \"markerHeight\",\n \"markerUnits\",\n \"markerWidth\",\n \"maskContentUnits\",\n \"maskUnits\",\n \"numOctaves\",\n \"pathLength\",\n \"patternContentUnits\",\n \"patternTransform\",\n \"patternUnits\",\n \"pointsAtX\",\n \"pointsAtY\",\n \"pointsAtZ\",\n \"preserveAlpha\",\n \"preserveAspectRatio\",\n \"primitiveUnits\",\n \"refX\",\n \"refY\",\n \"repeatCount\",\n \"repeatDur\",\n \"requiredExtensions\",\n \"requiredFeatures\",\n \"specularConstant\",\n \"specularExponent\",\n \"spreadMethod\",\n \"startOffset\",\n \"stdDeviation\",\n \"stitchTiles\",\n \"surfaceScale\",\n \"systemLanguage\",\n \"tableValues\",\n \"targetX\",\n \"targetY\",\n \"textLength\",\n \"viewBox\",\n \"viewTarget\",\n \"xChannelSelector\",\n \"yChannelSelector\",\n \"zoomAndPan\",\n].map((val) => [val.toLowerCase(), val]));\n"],"x_google_ignoreList":[0],"mappings":";AAAA,MAAa,eAAe,IAAI,IAAI;CAChC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACH,EAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,aAAa,EAAE,GAAI,EAAC;AACxC,MAAa,iBAAiB,IAAI,IAAI;CAClC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACH,EAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,aAAa,EAAE,GAAI,EAAC"}
@@ -1,14 +1,9 @@
1
1
  import { CDATA, Comment, Directive, Doctype, Root, Script, Style, Tag, Text } from "../../../domelementtype/lib/esm/index.js";
2
2
  import { encodeXML, escapeAttribute, escapeText } from "../../../entities/lib/esm/escape.js";
3
3
  import { attributeNames, elementNames } from "./foreignNames.js";
4
- //#region ../../node_modules/dom-serializer/lib/esm/index.js
5
- /**
6
- * Mixed-case SVG and MathML tags & attributes
7
- * recognized by the HTML parser.
8
- *
9
- * @see https://html.spec.whatwg.org/multipage/parsing.html#parsing-main-inforeign
10
- */
11
- const unencodedElements = /* @__PURE__ */ new Set([
4
+
5
+ //#region ../../../node_modules/dom-serializer/lib/esm/index.js
6
+ const unencodedElements = new Set([
12
7
  "style",
13
8
  "script",
14
9
  "xmp",
@@ -29,8 +24,8 @@ function formatAttributes(attributes, opts) {
29
24
  if (!attributes) return;
30
25
  const encode = ((_a = opts.encodeEntities) !== null && _a !== void 0 ? _a : opts.decodeEntities) === false ? replaceQuotes : opts.xmlMode || opts.encodeEntities !== "utf8" ? encodeXML : escapeAttribute;
31
26
  return Object.keys(attributes).map((key) => {
32
- var _a, _b;
33
- const value = (_a = attributes[key]) !== null && _a !== void 0 ? _a : "";
27
+ var _a$1, _b;
28
+ const value = (_a$1 = attributes[key]) !== null && _a$1 !== void 0 ? _a$1 : "";
34
29
  if (opts.xmlMode === "foreign") key = (_b = attributeNames.get(key)) !== null && _b !== void 0 ? _b : key;
35
30
  if (!opts.emptyAttrs && !opts.xmlMode && value === "") return key;
36
31
  return `${key}="${encode(value)}"`;
@@ -39,7 +34,7 @@ function formatAttributes(attributes, opts) {
39
34
  /**
40
35
  * Self-enclosing tags
41
36
  */
42
- const singleTag = /* @__PURE__ */ new Set([
37
+ const singleTag = new Set([
43
38
  "area",
44
39
  "base",
45
40
  "basefont",
@@ -87,7 +82,7 @@ function renderNode(node, options) {
87
82
  case Text: return renderText(node, options);
88
83
  }
89
84
  }
90
- const foreignModeIntegrationPoints = /* @__PURE__ */ new Set([
85
+ const foreignModeIntegrationPoints = new Set([
91
86
  "mi",
92
87
  "mo",
93
88
  "mn",
@@ -98,7 +93,7 @@ const foreignModeIntegrationPoints = /* @__PURE__ */ new Set([
98
93
  "desc",
99
94
  "title"
100
95
  ]);
101
- const foreignElements = /* @__PURE__ */ new Set(["svg", "math"]);
96
+ const foreignElements = new Set(["svg", "math"]);
102
97
  function renderTag(elem, opts) {
103
98
  var _a;
104
99
  if (opts.xmlMode === "foreign") {
@@ -140,7 +135,7 @@ function renderCdata(elem) {
140
135
  function renderComment(elem) {
141
136
  return `<!--${elem.data}-->`;
142
137
  }
143
- //#endregion
144
- export { render as default, render };
145
138
 
139
+ //#endregion
140
+ export { render };
146
141
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["ElementType.Root","ElementType.Doctype","ElementType.Directive","ElementType.Comment","ElementType.CDATA","ElementType.Script","ElementType.Style","ElementType.Tag","ElementType.Text"],"sources":["../../../../../../../node_modules/dom-serializer/lib/esm/index.js"],"sourcesContent":["/*\n * Module dependencies\n */\nimport * as ElementType from \"domelementtype\";\nimport { encodeXML, escapeAttribute, escapeText } from \"entities\";\n/**\n * Mixed-case SVG and MathML tags & attributes\n * recognized by the HTML parser.\n *\n * @see https://html.spec.whatwg.org/multipage/parsing.html#parsing-main-inforeign\n */\nimport { elementNames, attributeNames } from \"./foreignNames.js\";\nconst unencodedElements = new Set([\n \"style\",\n \"script\",\n \"xmp\",\n \"iframe\",\n \"noembed\",\n \"noframes\",\n \"plaintext\",\n \"noscript\",\n]);\nfunction replaceQuotes(value) {\n return value.replace(/\"/g, \"&quot;\");\n}\n/**\n * Format attributes\n */\nfunction formatAttributes(attributes, opts) {\n var _a;\n if (!attributes)\n return;\n const encode = ((_a = opts.encodeEntities) !== null && _a !== void 0 ? _a : opts.decodeEntities) === false\n ? replaceQuotes\n : opts.xmlMode || opts.encodeEntities !== \"utf8\"\n ? encodeXML\n : escapeAttribute;\n return Object.keys(attributes)\n .map((key) => {\n var _a, _b;\n const value = (_a = attributes[key]) !== null && _a !== void 0 ? _a : \"\";\n if (opts.xmlMode === \"foreign\") {\n /* Fix up mixed-case attribute names */\n key = (_b = attributeNames.get(key)) !== null && _b !== void 0 ? _b : key;\n }\n if (!opts.emptyAttrs && !opts.xmlMode && value === \"\") {\n return key;\n }\n return `${key}=\"${encode(value)}\"`;\n })\n .join(\" \");\n}\n/**\n * Self-enclosing tags\n */\nconst singleTag = new Set([\n \"area\",\n \"base\",\n \"basefont\",\n \"br\",\n \"col\",\n \"command\",\n \"embed\",\n \"frame\",\n \"hr\",\n \"img\",\n \"input\",\n \"isindex\",\n \"keygen\",\n \"link\",\n \"meta\",\n \"param\",\n \"source\",\n \"track\",\n \"wbr\",\n]);\n/**\n * Renders a DOM node or an array of DOM nodes to a string.\n *\n * Can be thought of as the equivalent of the `outerHTML` of the passed node(s).\n *\n * @param node Node to be rendered.\n * @param options Changes serialization behavior\n */\nexport function render(node, options = {}) {\n const nodes = \"length\" in node ? node : [node];\n let output = \"\";\n for (let i = 0; i < nodes.length; i++) {\n output += renderNode(nodes[i], options);\n }\n return output;\n}\nexport default render;\nfunction renderNode(node, options) {\n switch (node.type) {\n case ElementType.Root:\n return render(node.children, options);\n // @ts-expect-error We don't use `Doctype` yet\n case ElementType.Doctype:\n case ElementType.Directive:\n return renderDirective(node);\n case ElementType.Comment:\n return renderComment(node);\n case ElementType.CDATA:\n return renderCdata(node);\n case ElementType.Script:\n case ElementType.Style:\n case ElementType.Tag:\n return renderTag(node, options);\n case ElementType.Text:\n return renderText(node, options);\n }\n}\nconst foreignModeIntegrationPoints = new Set([\n \"mi\",\n \"mo\",\n \"mn\",\n \"ms\",\n \"mtext\",\n \"annotation-xml\",\n \"foreignObject\",\n \"desc\",\n \"title\",\n]);\nconst foreignElements = new Set([\"svg\", \"math\"]);\nfunction renderTag(elem, opts) {\n var _a;\n // Handle SVG / MathML in HTML\n if (opts.xmlMode === \"foreign\") {\n /* Fix up mixed-case element names */\n elem.name = (_a = elementNames.get(elem.name)) !== null && _a !== void 0 ? _a : elem.name;\n /* Exit foreign mode at integration points */\n if (elem.parent &&\n foreignModeIntegrationPoints.has(elem.parent.name)) {\n opts = { ...opts, xmlMode: false };\n }\n }\n if (!opts.xmlMode && foreignElements.has(elem.name)) {\n opts = { ...opts, xmlMode: \"foreign\" };\n }\n let tag = `<${elem.name}`;\n const attribs = formatAttributes(elem.attribs, opts);\n if (attribs) {\n tag += ` ${attribs}`;\n }\n if (elem.children.length === 0 &&\n (opts.xmlMode\n ? // In XML mode or foreign mode, and user hasn't explicitly turned off self-closing tags\n opts.selfClosingTags !== false\n : // User explicitly asked for self-closing tags, even in HTML mode\n opts.selfClosingTags && singleTag.has(elem.name))) {\n if (!opts.xmlMode)\n tag += \" \";\n tag += \"/>\";\n }\n else {\n tag += \">\";\n if (elem.children.length > 0) {\n tag += render(elem.children, opts);\n }\n if (opts.xmlMode || !singleTag.has(elem.name)) {\n tag += `</${elem.name}>`;\n }\n }\n return tag;\n}\nfunction renderDirective(elem) {\n return `<${elem.data}>`;\n}\nfunction renderText(elem, opts) {\n var _a;\n let data = elem.data || \"\";\n // If entities weren't decoded, no need to encode them back\n if (((_a = opts.encodeEntities) !== null && _a !== void 0 ? _a : opts.decodeEntities) !== false &&\n !(!opts.xmlMode &&\n elem.parent &&\n unencodedElements.has(elem.parent.name))) {\n data =\n opts.xmlMode || opts.encodeEntities !== \"utf8\"\n ? encodeXML(data)\n : escapeText(data);\n }\n return data;\n}\nfunction renderCdata(elem) {\n return `<![CDATA[${elem.children[0].data}]]>`;\n}\nfunction renderComment(elem) {\n return `<!--${elem.data}-->`;\n}\n"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;AAYA,MAAM,oCAAoB,IAAI,IAAI;CAC9B;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACJ,CAAC;AACD,SAAS,cAAc,OAAO;CAC1B,OAAO,MAAM,QAAQ,MAAM,QAAQ;AACvC;;;;AAIA,SAAS,iBAAiB,YAAY,MAAM;CACxC,IAAI;CACJ,IAAI,CAAC,YACD;CACJ,MAAM,WAAW,KAAK,KAAK,oBAAoB,QAAQ,OAAO,KAAK,IAAI,KAAK,KAAK,oBAAoB,QAC/F,gBACA,KAAK,WAAW,KAAK,mBAAmB,SACpC,YACA;CACV,OAAO,OAAO,KAAK,UAAU,CAAC,CACzB,KAAK,QAAQ;EACd,IAAI,IAAI;EACR,MAAM,SAAS,KAAK,WAAW,UAAU,QAAQ,OAAO,KAAK,IAAI,KAAK;EACtE,IAAI,KAAK,YAAY,WAEjB,OAAO,KAAK,eAAe,IAAI,GAAG,OAAO,QAAQ,OAAO,KAAK,IAAI,KAAK;EAE1E,IAAI,CAAC,KAAK,cAAc,CAAC,KAAK,WAAW,UAAU,IAC/C,OAAO;EAEX,OAAO,GAAG,IAAI,IAAI,OAAO,KAAK,EAAE;CACpC,CAAC,CAAC,CACG,KAAK,GAAG;AACjB;;;;AAIA,MAAM,4BAAY,IAAI,IAAI;CACtB;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;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AI;CAEf,IAAI,KAAK,SAAS,WAAW,MACxB,KAAK,UAEE,KAAK,oBAAoB,QAEzB,KAAK,mBAAmB,UAAU,IAAI,KAAK,IAAI,IAAI;EAC3D,IAAI,CAAC,KAAK,SACN,OAAO;EACX,OAAO;CACX,OACK;EACD,OAAO;EACP,IAAI,KAAK,SAAS,SAAS,GACvB,OAAO,OAAO,KAAK,UAAU,IAAI;EAErC,IAAI,KAAK,WAAW,CAAC,UAAU,IAAI,KAAK,IAAI,GACxC,OAAO,KAAK,KAAK,KAAK;CAE9B;CACA,OAAO;AACX;AACA,SAAS,gBAAgB,MAAM;CAC3B,OAAO,IAAI,KAAK,KAAK;AACzB;AACA,SAAS,WAAW,MAAM,MAAM;CAC5B,IAAI;CACJ,IAAI,OAAO,KAAK,QAAQ;CAExB,MAAM,KAAK,KAAK,oBAAoB,QAAQ,OAAO,KAAK,IAAI,KAAK,KAAK,oBAAoB,SACtF,EAAE,CAAC,KAAK,WACJ,KAAK,UACL,kBAAkB,IAAI,KAAK,OAAO,IAAI,IAC1C,OACI,KAAK,WAAW,KAAK,mBAAmB,SAClC,UAAU,IAAI,IACd,WAAW,IAAI;CAE7B,OAAO;AACX;AACA,SAAS,YAAY,MAAM;CACvB,OAAO,YAAY,KAAK,SAAS,EAAE,CAAC,KAAK;AAC7C;AACA,SAAS,cAAc,MAAM;CACzB,OAAO,OAAO,KAAK,KAAK;AAC5B"}
1
+ {"version":3,"file":"index.js","names":["_a"],"sources":["../../../../../../../../node_modules/dom-serializer/lib/esm/index.js"],"sourcesContent":["/*\n * Module dependencies\n */\nimport * as ElementType from \"domelementtype\";\nimport { encodeXML, escapeAttribute, escapeText } from \"entities\";\n/**\n * Mixed-case SVG and MathML tags & attributes\n * recognized by the HTML parser.\n *\n * @see https://html.spec.whatwg.org/multipage/parsing.html#parsing-main-inforeign\n */\nimport { elementNames, attributeNames } from \"./foreignNames.js\";\nconst unencodedElements = new Set([\n \"style\",\n \"script\",\n \"xmp\",\n \"iframe\",\n \"noembed\",\n \"noframes\",\n \"plaintext\",\n \"noscript\",\n]);\nfunction replaceQuotes(value) {\n return value.replace(/\"/g, \"&quot;\");\n}\n/**\n * Format attributes\n */\nfunction formatAttributes(attributes, opts) {\n var _a;\n if (!attributes)\n return;\n const encode = ((_a = opts.encodeEntities) !== null && _a !== void 0 ? _a : opts.decodeEntities) === false\n ? replaceQuotes\n : opts.xmlMode || opts.encodeEntities !== \"utf8\"\n ? encodeXML\n : escapeAttribute;\n return Object.keys(attributes)\n .map((key) => {\n var _a, _b;\n const value = (_a = attributes[key]) !== null && _a !== void 0 ? _a : \"\";\n if (opts.xmlMode === \"foreign\") {\n /* Fix up mixed-case attribute names */\n key = (_b = attributeNames.get(key)) !== null && _b !== void 0 ? _b : key;\n }\n if (!opts.emptyAttrs && !opts.xmlMode && value === \"\") {\n return key;\n }\n return `${key}=\"${encode(value)}\"`;\n })\n .join(\" \");\n}\n/**\n * Self-enclosing tags\n */\nconst singleTag = new Set([\n \"area\",\n \"base\",\n \"basefont\",\n \"br\",\n \"col\",\n \"command\",\n \"embed\",\n \"frame\",\n \"hr\",\n \"img\",\n \"input\",\n \"isindex\",\n \"keygen\",\n \"link\",\n \"meta\",\n \"param\",\n \"source\",\n \"track\",\n \"wbr\",\n]);\n/**\n * Renders a DOM node or an array of DOM nodes to a string.\n *\n * Can be thought of as the equivalent of the `outerHTML` of the passed node(s).\n *\n * @param node Node to be rendered.\n * @param options Changes serialization behavior\n */\nexport function render(node, options = {}) {\n const nodes = \"length\" in node ? node : [node];\n let output = \"\";\n for (let i = 0; i < nodes.length; i++) {\n output += renderNode(nodes[i], options);\n }\n return output;\n}\nexport default render;\nfunction renderNode(node, options) {\n switch (node.type) {\n case ElementType.Root:\n return render(node.children, options);\n // @ts-expect-error We don't use `Doctype` yet\n case ElementType.Doctype:\n case ElementType.Directive:\n return renderDirective(node);\n case ElementType.Comment:\n return renderComment(node);\n case ElementType.CDATA:\n return renderCdata(node);\n case ElementType.Script:\n case ElementType.Style:\n case ElementType.Tag:\n return renderTag(node, options);\n case ElementType.Text:\n return renderText(node, options);\n }\n}\nconst foreignModeIntegrationPoints = new Set([\n \"mi\",\n \"mo\",\n \"mn\",\n \"ms\",\n \"mtext\",\n \"annotation-xml\",\n \"foreignObject\",\n \"desc\",\n \"title\",\n]);\nconst foreignElements = new Set([\"svg\", \"math\"]);\nfunction renderTag(elem, opts) {\n var _a;\n // Handle SVG / MathML in HTML\n if (opts.xmlMode === \"foreign\") {\n /* Fix up mixed-case element names */\n elem.name = (_a = elementNames.get(elem.name)) !== null && _a !== void 0 ? _a : elem.name;\n /* Exit foreign mode at integration points */\n if (elem.parent &&\n foreignModeIntegrationPoints.has(elem.parent.name)) {\n opts = { ...opts, xmlMode: false };\n }\n }\n if (!opts.xmlMode && foreignElements.has(elem.name)) {\n opts = { ...opts, xmlMode: \"foreign\" };\n }\n let tag = `<${elem.name}`;\n const attribs = formatAttributes(elem.attribs, opts);\n if (attribs) {\n tag += ` ${attribs}`;\n }\n if (elem.children.length === 0 &&\n (opts.xmlMode\n ? // In XML mode or foreign mode, and user hasn't explicitly turned off self-closing tags\n opts.selfClosingTags !== false\n : // User explicitly asked for self-closing tags, even in HTML mode\n opts.selfClosingTags && singleTag.has(elem.name))) {\n if (!opts.xmlMode)\n tag += \" \";\n tag += \"/>\";\n }\n else {\n tag += \">\";\n if (elem.children.length > 0) {\n tag += render(elem.children, opts);\n }\n if (opts.xmlMode || !singleTag.has(elem.name)) {\n tag += `</${elem.name}>`;\n }\n }\n return tag;\n}\nfunction renderDirective(elem) {\n return `<${elem.data}>`;\n}\nfunction renderText(elem, opts) {\n var _a;\n let data = elem.data || \"\";\n // If entities weren't decoded, no need to encode them back\n if (((_a = opts.encodeEntities) !== null && _a !== void 0 ? _a : opts.decodeEntities) !== false &&\n !(!opts.xmlMode &&\n elem.parent &&\n unencodedElements.has(elem.parent.name))) {\n data =\n opts.xmlMode || opts.encodeEntities !== \"utf8\"\n ? encodeXML(data)\n : escapeText(data);\n }\n return data;\n}\nfunction renderCdata(elem) {\n return `<![CDATA[${elem.children[0].data}]]>`;\n}\nfunction renderComment(elem) {\n return `<!--${elem.data}-->`;\n}\n"],"x_google_ignoreList":[0],"mappings":";;;;;AAYA,MAAM,oBAAoB,IAAI,IAAI;CAC9B;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACH;AACD,SAAS,cAAc,OAAO;AAC1B,QAAO,MAAM,QAAQ,MAAM,SAAS;AACvC;;;;AAID,SAAS,iBAAiB,YAAY,MAAM;CACxC,IAAI;AACJ,KAAI,CAAC,WACD;CACJ,MAAM,WAAW,KAAK,KAAK,oBAAoB,QAAQ,OAAO,KAAK,IAAI,KAAK,KAAK,oBAAoB,QAC/F,gBACA,KAAK,WAAW,KAAK,mBAAmB,SACpC,YACA;AACV,QAAO,OAAO,KAAK,WAAW,CACzB,IAAI,CAAC,QAAQ;EACd,IAAIA,MAAI;EACR,MAAM,SAASA,OAAK,WAAW,UAAU,QAAQA,SAAO,KAAK,IAAIA,OAAK;AACtE,MAAI,KAAK,YAAY,WAEjB,OAAO,KAAK,eAAe,IAAI,IAAI,MAAM,QAAQ,OAAO,KAAK,IAAI,KAAK;AAE1E,MAAI,CAAC,KAAK,cAAc,CAAC,KAAK,WAAW,UAAU,GAC/C,QAAO;AAEX,SAAO,GAAG,IAAI,EAAE,EAAE,OAAO,MAAM,CAAC,CAAC,CAAC;CACrC,EAAC,CACG,KAAK,IAAI;AACjB;;;;AAID,MAAM,YAAY,IAAI,IAAI;CACtB;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACH;;;;;;;;;AASD,SAAgB,OAAO,MAAM,UAAU,CAAE,GAAE;CACvC,MAAM,QAAQ,YAAY,OAAO,OAAO,CAAC,IAAK;CAC9C,IAAI,SAAS;AACb,MAAK,IAAI,IAAI,GAAG,IAAI,MAAM,QAAQ,KAC9B,UAAU,WAAW,MAAM,IAAI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AC,UAAU,IAAI,KAAK,KAAK,EACzC,OAAO,CAAC,EAAE,EAAE,KAAK,KAAK,CAAC,CAAC;CAE/B;AACD,QAAO;AACV;AACD,SAAS,gBAAgB,MAAM;AAC3B,QAAO,CAAC,CAAC,EAAE,KAAK,KAAK,CAAC,CAAC;AAC1B;AACD,SAAS,WAAW,MAAM,MAAM;CAC5B,IAAI;CACJ,IAAI,OAAO,KAAK,QAAQ;AAExB,OAAM,KAAK,KAAK,oBAAoB,QAAQ,OAAO,KAAK,IAAI,KAAK,KAAK,oBAAoB,SACtF,EAAE,CAAC,KAAK,WACJ,KAAK,UACL,kBAAkB,IAAI,KAAK,OAAO,KAAK,GAC3C,OACI,KAAK,WAAW,KAAK,mBAAmB,SAClC,UAAU,KAAK,GACf,WAAW,KAAK;AAE9B,QAAO;AACV;AACD,SAAS,YAAY,MAAM;AACvB,QAAO,CAAC,SAAS,EAAE,KAAK,SAAS,GAAG,KAAK,GAAG,CAAC;AAChD;AACD,SAAS,cAAc,MAAM;AACzB,QAAO,CAAC,IAAI,EAAE,KAAK,KAAK,GAAG,CAAC;AAC/B"}
@@ -1,25 +1,25 @@
1
- //#region ../../node_modules/domelementtype/lib/esm/index.js
1
+ //#region ../../../node_modules/domelementtype/lib/esm/index.js
2
2
  /** Types of elements found in htmlparser2's DOM */
3
3
  var ElementType;
4
- (function(ElementType) {
4
+ (function(ElementType$1) {
5
5
  /** Type for the root element of a document */
6
- ElementType["Root"] = "root";
6
+ ElementType$1["Root"] = "root";
7
7
  /** Type for Text */
8
- ElementType["Text"] = "text";
8
+ ElementType$1["Text"] = "text";
9
9
  /** Type for <? ... ?> */
10
- ElementType["Directive"] = "directive";
10
+ ElementType$1["Directive"] = "directive";
11
11
  /** Type for <!-- ... --> */
12
- ElementType["Comment"] = "comment";
12
+ ElementType$1["Comment"] = "comment";
13
13
  /** Type for <script> tags */
14
- ElementType["Script"] = "script";
14
+ ElementType$1["Script"] = "script";
15
15
  /** Type for <style> tags */
16
- ElementType["Style"] = "style";
16
+ ElementType$1["Style"] = "style";
17
17
  /** Type for Any tag */
18
- ElementType["Tag"] = "tag";
18
+ ElementType$1["Tag"] = "tag";
19
19
  /** Type for <![CDATA[ ... ]]> */
20
- ElementType["CDATA"] = "cdata";
20
+ ElementType$1["CDATA"] = "cdata";
21
21
  /** Type for <!doctype ...> */
22
- ElementType["Doctype"] = "doctype";
22
+ ElementType$1["Doctype"] = "doctype";
23
23
  })(ElementType || (ElementType = {}));
24
24
  /**
25
25
  * Tests whether an element is a tag or not.
@@ -47,7 +47,7 @@ const Tag = ElementType.Tag;
47
47
  const CDATA = ElementType.CDATA;
48
48
  /** Type for <!doctype ...> */
49
49
  const Doctype = ElementType.Doctype;
50
+
50
51
  //#endregion
51
52
  export { CDATA, Comment, Directive, Doctype, ElementType, Root, Script, Style, Tag, Text, isTag };
52
-
53
53
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../../../../../node_modules/domelementtype/lib/esm/index.js"],"sourcesContent":["/** Types of elements found in htmlparser2's DOM */\nexport var ElementType;\n(function (ElementType) {\n /** Type for the root element of a document */\n ElementType[\"Root\"] = \"root\";\n /** Type for Text */\n ElementType[\"Text\"] = \"text\";\n /** Type for <? ... ?> */\n ElementType[\"Directive\"] = \"directive\";\n /** Type for <!-- ... --> */\n ElementType[\"Comment\"] = \"comment\";\n /** Type for <script> tags */\n ElementType[\"Script\"] = \"script\";\n /** Type for <style> tags */\n ElementType[\"Style\"] = \"style\";\n /** Type for Any tag */\n ElementType[\"Tag\"] = \"tag\";\n /** Type for <![CDATA[ ... ]]> */\n ElementType[\"CDATA\"] = \"cdata\";\n /** Type for <!doctype ...> */\n ElementType[\"Doctype\"] = \"doctype\";\n})(ElementType || (ElementType = {}));\n/**\n * Tests whether an element is a tag or not.\n *\n * @param elem Element to test\n */\nexport function isTag(elem) {\n return (elem.type === ElementType.Tag ||\n elem.type === ElementType.Script ||\n elem.type === ElementType.Style);\n}\n// Exports for backwards compatibility\n/** Type for the root element of a document */\nexport const Root = ElementType.Root;\n/** Type for Text */\nexport const Text = ElementType.Text;\n/** Type for <? ... ?> */\nexport const Directive = ElementType.Directive;\n/** Type for <!-- ... --> */\nexport const Comment = ElementType.Comment;\n/** Type for <script> tags */\nexport const Script = ElementType.Script;\n/** Type for <style> tags */\nexport const Style = ElementType.Style;\n/** Type for Any tag */\nexport const Tag = ElementType.Tag;\n/** Type for <![CDATA[ ... ]]> */\nexport const CDATA = ElementType.CDATA;\n/** Type for <!doctype ...> */\nexport const Doctype = ElementType.Doctype;\n"],"x_google_ignoreList":[0],"mappings":";;AACA,IAAW;CACV,SAAU,aAAa;;CAEpB,YAAY,UAAU;;CAEtB,YAAY,UAAU;;CAEtB,YAAY,eAAe;;CAE3B,YAAY,aAAa;;CAEzB,YAAY,YAAY;;CAExB,YAAY,WAAW;;CAEvB,YAAY,SAAS;;CAErB,YAAY,WAAW;;CAEvB,YAAY,aAAa;AAC7B,EAAA,CAAG,gBAAgB,cAAc,CAAC,EAAE;;;;;;AAMpC,SAAgB,MAAM,MAAM;CACxB,OAAQ,KAAK,SAAS,YAAY,OAC9B,KAAK,SAAS,YAAY,UAC1B,KAAK,SAAS,YAAY;AAClC;;AAGA,MAAa,OAAO,YAAY;;AAEhC,MAAa,OAAO,YAAY;;AAEhC,MAAa,YAAY,YAAY;;AAErC,MAAa,UAAU,YAAY;;AAEnC,MAAa,SAAS,YAAY;;AAElC,MAAa,QAAQ,YAAY;;AAEjC,MAAa,MAAM,YAAY;;AAE/B,MAAa,QAAQ,YAAY;;AAEjC,MAAa,UAAU,YAAY"}
1
+ {"version":3,"file":"index.js","names":["ElementType"],"sources":["../../../../../../../../node_modules/domelementtype/lib/esm/index.js"],"sourcesContent":["/** Types of elements found in htmlparser2's DOM */\nexport var ElementType;\n(function (ElementType) {\n /** Type for the root element of a document */\n ElementType[\"Root\"] = \"root\";\n /** Type for Text */\n ElementType[\"Text\"] = \"text\";\n /** Type for <? ... ?> */\n ElementType[\"Directive\"] = \"directive\";\n /** Type for <!-- ... --> */\n ElementType[\"Comment\"] = \"comment\";\n /** Type for <script> tags */\n ElementType[\"Script\"] = \"script\";\n /** Type for <style> tags */\n ElementType[\"Style\"] = \"style\";\n /** Type for Any tag */\n ElementType[\"Tag\"] = \"tag\";\n /** Type for <![CDATA[ ... ]]> */\n ElementType[\"CDATA\"] = \"cdata\";\n /** Type for <!doctype ...> */\n ElementType[\"Doctype\"] = \"doctype\";\n})(ElementType || (ElementType = {}));\n/**\n * Tests whether an element is a tag or not.\n *\n * @param elem Element to test\n */\nexport function isTag(elem) {\n return (elem.type === ElementType.Tag ||\n elem.type === ElementType.Script ||\n elem.type === ElementType.Style);\n}\n// Exports for backwards compatibility\n/** Type for the root element of a document */\nexport const Root = ElementType.Root;\n/** Type for Text */\nexport const Text = ElementType.Text;\n/** Type for <? ... ?> */\nexport const Directive = ElementType.Directive;\n/** Type for <!-- ... --> */\nexport const Comment = ElementType.Comment;\n/** Type for <script> tags */\nexport const Script = ElementType.Script;\n/** Type for <style> tags */\nexport const Style = ElementType.Style;\n/** Type for Any tag */\nexport const Tag = ElementType.Tag;\n/** Type for <![CDATA[ ... ]]> */\nexport const CDATA = ElementType.CDATA;\n/** Type for <!doctype ...> */\nexport const Doctype = ElementType.Doctype;\n"],"x_google_ignoreList":[0],"mappings":";;AACA,IAAW;CACV,SAAUA,eAAa;;CAEpBA,cAAY,UAAU;;CAEtBA,cAAY,UAAU;;CAEtBA,cAAY,eAAe;;CAE3BA,cAAY,aAAa;;CAEzBA,cAAY,YAAY;;CAExBA,cAAY,WAAW;;CAEvBA,cAAY,SAAS;;CAErBA,cAAY,WAAW;;CAEvBA,cAAY,aAAa;AAC5B,GAAE,gBAAgB,cAAc,CAAE,GAAE;;;;;;AAMrC,SAAgB,MAAM,MAAM;AACxB,QAAQ,KAAK,SAAS,YAAY,OAC9B,KAAK,SAAS,YAAY,UAC1B,KAAK,SAAS,YAAY;AACjC;;AAGD,MAAa,OAAO,YAAY;;AAEhC,MAAa,OAAO,YAAY;;AAEhC,MAAa,YAAY,YAAY;;AAErC,MAAa,UAAU,YAAY;;AAEnC,MAAa,SAAS,YAAY;;AAElC,MAAa,QAAQ,YAAY;;AAEjC,MAAa,MAAM,YAAY;;AAE/B,MAAa,QAAQ,YAAY;;AAEjC,MAAa,UAAU,YAAY"}
@@ -1,6 +1,7 @@
1
1
  import { ElementType } from "../../../domelementtype/lib/esm/index.js";
2
2
  import { CDATA, Comment, DataNode, Document, Element, Node, NodeWithChildren, ProcessingInstruction, Text, cloneNode, isCDATA, isComment, isDirective, isDocument, isTag, isText } from "./node.js";
3
- //#region ../../node_modules/domhandler/lib/esm/index.js
3
+
4
+ //#region ../../../node_modules/domhandler/lib/esm/index.js
4
5
  const defaultOpts = {
5
6
  withStartIndices: false,
6
7
  withEndIndices: false,
@@ -124,7 +125,7 @@ var DomHandler = class {
124
125
  this.lastNode = null;
125
126
  }
126
127
  };
127
- //#endregion
128
- export { CDATA, Comment, DataNode, Document, DomHandler, DomHandler as default, Element, Node, NodeWithChildren, ProcessingInstruction, Text, cloneNode, isCDATA, isComment, isDirective, isDocument, isTag, isText };
129
128
 
129
+ //#endregion
130
+ export { DomHandler };
130
131
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../../../../../node_modules/domhandler/lib/esm/index.js"],"sourcesContent":["import { ElementType } from \"domelementtype\";\nimport { Element, Text, Comment, CDATA, Document, ProcessingInstruction, } from \"./node.js\";\nexport * from \"./node.js\";\n// Default options\nconst defaultOpts = {\n withStartIndices: false,\n withEndIndices: false,\n xmlMode: false,\n};\nexport class DomHandler {\n /**\n * @param callback Called once parsing has completed.\n * @param options Settings for the handler.\n * @param elementCB Callback whenever a tag is closed.\n */\n constructor(callback, options, elementCB) {\n /** The elements of the DOM */\n this.dom = [];\n /** The root element for the DOM */\n this.root = new Document(this.dom);\n /** Indicated whether parsing has been completed. */\n this.done = false;\n /** Stack of open tags. */\n this.tagStack = [this.root];\n /** A data node that is still being written to. */\n this.lastNode = null;\n /** Reference to the parser instance. Used for location information. */\n this.parser = null;\n // Make it possible to skip arguments, for backwards-compatibility\n if (typeof options === \"function\") {\n elementCB = options;\n options = defaultOpts;\n }\n if (typeof callback === \"object\") {\n options = callback;\n callback = undefined;\n }\n this.callback = callback !== null && callback !== void 0 ? callback : null;\n this.options = options !== null && options !== void 0 ? options : defaultOpts;\n this.elementCB = elementCB !== null && elementCB !== void 0 ? elementCB : null;\n }\n onparserinit(parser) {\n this.parser = parser;\n }\n // Resets the handler back to starting state\n onreset() {\n this.dom = [];\n this.root = new Document(this.dom);\n this.done = false;\n this.tagStack = [this.root];\n this.lastNode = null;\n this.parser = null;\n }\n // Signals the handler that parsing is done\n onend() {\n if (this.done)\n return;\n this.done = true;\n this.parser = null;\n this.handleCallback(null);\n }\n onerror(error) {\n this.handleCallback(error);\n }\n onclosetag() {\n this.lastNode = null;\n const elem = this.tagStack.pop();\n if (this.options.withEndIndices) {\n elem.endIndex = this.parser.endIndex;\n }\n if (this.elementCB)\n this.elementCB(elem);\n }\n onopentag(name, attribs) {\n const type = this.options.xmlMode ? ElementType.Tag : undefined;\n const element = new Element(name, attribs, undefined, type);\n this.addNode(element);\n this.tagStack.push(element);\n }\n ontext(data) {\n const { lastNode } = this;\n if (lastNode && lastNode.type === ElementType.Text) {\n lastNode.data += data;\n if (this.options.withEndIndices) {\n lastNode.endIndex = this.parser.endIndex;\n }\n }\n else {\n const node = new Text(data);\n this.addNode(node);\n this.lastNode = node;\n }\n }\n oncomment(data) {\n if (this.lastNode && this.lastNode.type === ElementType.Comment) {\n this.lastNode.data += data;\n return;\n }\n const node = new Comment(data);\n this.addNode(node);\n this.lastNode = node;\n }\n oncommentend() {\n this.lastNode = null;\n }\n oncdatastart() {\n const text = new Text(\"\");\n const node = new CDATA([text]);\n this.addNode(node);\n text.parent = node;\n this.lastNode = text;\n }\n oncdataend() {\n this.lastNode = null;\n }\n onprocessinginstruction(name, data) {\n const node = new ProcessingInstruction(name, data);\n this.addNode(node);\n }\n handleCallback(error) {\n if (typeof this.callback === \"function\") {\n this.callback(error, this.dom);\n }\n else if (error) {\n throw error;\n }\n }\n addNode(node) {\n const parent = this.tagStack[this.tagStack.length - 1];\n const previousSibling = parent.children[parent.children.length - 1];\n if (this.options.withStartIndices) {\n node.startIndex = this.parser.startIndex;\n }\n if (this.options.withEndIndices) {\n node.endIndex = this.parser.endIndex;\n }\n parent.children.push(node);\n if (previousSibling) {\n node.prev = previousSibling;\n previousSibling.next = node;\n }\n node.parent = parent;\n this.lastNode = null;\n }\n}\nexport default DomHandler;\n"],"x_google_ignoreList":[0],"mappings":";;;AAIA,MAAM,cAAc;CAChB,kBAAkB;CAClB,gBAAgB;CAChB,SAAS;AACb;AACA,IAAa,aAAb,MAAwB;;;;;;CAMpB,YAAY,UAAU,SAAS,WAAW;;EAEtC,KAAK,MAAM,CAAC;;EAEZ,KAAK,OAAO,IAAI,SAAS,KAAK,GAAG;;EAEjC,KAAK,OAAO;;EAEZ,KAAK,WAAW,CAAC,KAAK,IAAI;;EAE1B,KAAK,WAAW;;EAEhB,KAAK,SAAS;EAEd,IAAI,OAAO,YAAY,YAAY;GAC/B,YAAY;GACZ,UAAU;EACd;EACA,IAAI,OAAO,aAAa,UAAU;GAC9B,UAAU;GACV,WAAW,KAAA;EACf;EACA,KAAK,WAAW,aAAa,QAAQ,aAAa,KAAK,IAAI,WAAW;EACtE,KAAK,UAAU,YAAY,QAAQ,YAAY,KAAK,IAAI,UAAU;EAClE,KAAK,YAAY,cAAc,QAAQ,cAAc,KAAK,IAAI,YAAY;CAC9E;CACA,aAAa,QAAQ;EACjB,KAAK,SAAS;CAClB;CAEA,UAAU;EACN,KAAK,MAAM,CAAC;EACZ,KAAK,OAAO,IAAI,SAAS,KAAK,GAAG;EACjC,KAAK,OAAO;EACZ,KAAK,WAAW,CAAC,KAAK,IAAI;EAC1B,KAAK,WAAW;EACh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wBAAwB,MAAM,MAAM;EAChC,MAAM,OAAO,IAAI,sBAAsB,MAAM,IAAI;EACjD,KAAK,QAAQ,IAAI;CACrB;CACA,eAAe,OAAO;EAClB,IAAI,OAAO,KAAK,aAAa,YACzB,KAAK,SAAS,OAAO,KAAK,GAAG;OAE5B,IAAI,OACL,MAAM;CAEd;CACA,QAAQ,MAAM;EACV,MAAM,SAAS,KAAK,SAAS,KAAK,SAAS,SAAS;EACpD,MAAM,kBAAkB,OAAO,SAAS,OAAO,SAAS,SAAS;EACjE,IAAI,KAAK,QAAQ,kBACb,KAAK,aAAa,KAAK,OAAO;EAElC,IAAI,KAAK,QAAQ,gBACb,KAAK,WAAW,KAAK,OAAO;EAEhC,OAAO,SAAS,KAAK,IAAI;EACzB,IAAI,iBAAiB;GACjB,KAAK,OAAO;GACZ,gBAAgB,OAAO;EAC3B;EACA,KAAK,SAAS;EACd,KAAK,WAAW;CACpB;AACJ"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../../../../../node_modules/domhandler/lib/esm/index.js"],"sourcesContent":["import { ElementType } from \"domelementtype\";\nimport { Element, Text, Comment, CDATA, Document, ProcessingInstruction, } from \"./node.js\";\nexport * from \"./node.js\";\n// Default options\nconst defaultOpts = {\n withStartIndices: false,\n withEndIndices: false,\n xmlMode: false,\n};\nexport class DomHandler {\n /**\n * @param callback Called once parsing has completed.\n * @param options Settings for the handler.\n * @param elementCB Callback whenever a tag is closed.\n */\n constructor(callback, options, elementCB) {\n /** The elements of the DOM */\n this.dom = [];\n /** The root element for the DOM */\n this.root = new Document(this.dom);\n /** Indicated whether parsing has been completed. */\n this.done = false;\n /** Stack of open tags. */\n this.tagStack = [this.root];\n /** A data node that is still being written to. */\n this.lastNode = null;\n /** Reference to the parser instance. Used for location information. */\n this.parser = null;\n // Make it possible to skip arguments, for backwards-compatibility\n if (typeof options === \"function\") {\n elementCB = options;\n options = defaultOpts;\n }\n if (typeof callback === \"object\") {\n options = callback;\n callback = undefined;\n }\n this.callback = callback !== null && callback !== void 0 ? callback : null;\n this.options = options !== null && options !== void 0 ? options : defaultOpts;\n this.elementCB = elementCB !== null && elementCB !== void 0 ? elementCB : null;\n }\n onparserinit(parser) {\n this.parser = parser;\n }\n // Resets the handler back to starting state\n onreset() {\n this.dom = [];\n this.root = new Document(this.dom);\n this.done = false;\n this.tagStack = [this.root];\n this.lastNode = null;\n this.parser = null;\n }\n // Signals the handler that parsing is done\n onend() {\n if (this.done)\n return;\n this.done = true;\n this.parser = null;\n this.handleCallback(null);\n }\n onerror(error) {\n this.handleCallback(error);\n }\n onclosetag() {\n this.lastNode = null;\n const elem = this.tagStack.pop();\n if (this.options.withEndIndices) {\n elem.endIndex = this.parser.endIndex;\n }\n if (this.elementCB)\n this.elementCB(elem);\n }\n onopentag(name, attribs) {\n const type = this.options.xmlMode ? ElementType.Tag : undefined;\n const element = new Element(name, attribs, undefined, type);\n this.addNode(element);\n this.tagStack.push(element);\n }\n ontext(data) {\n const { lastNode } = this;\n if (lastNode && lastNode.type === ElementType.Text) {\n lastNode.data += data;\n if (this.options.withEndIndices) {\n lastNode.endIndex = this.parser.endIndex;\n }\n }\n else {\n const node = new Text(data);\n this.addNode(node);\n this.lastNode = node;\n }\n }\n oncomment(data) {\n if (this.lastNode && this.lastNode.type === ElementType.Comment) {\n this.lastNode.data += data;\n return;\n }\n const node = new Comment(data);\n this.addNode(node);\n this.lastNode = node;\n }\n oncommentend() {\n this.lastNode = null;\n }\n oncdatastart() {\n const text = new Text(\"\");\n const node = new CDATA([text]);\n this.addNode(node);\n text.parent = node;\n this.lastNode = text;\n }\n oncdataend() {\n this.lastNode = null;\n }\n onprocessinginstruction(name, data) {\n const node = new ProcessingInstruction(name, data);\n this.addNode(node);\n }\n handleCallback(error) {\n if (typeof this.callback === \"function\") {\n this.callback(error, this.dom);\n }\n else if (error) {\n throw error;\n }\n }\n addNode(node) {\n const parent = this.tagStack[this.tagStack.length - 1];\n const previousSibling = parent.children[parent.children.length - 1];\n if (this.options.withStartIndices) {\n node.startIndex = this.parser.startIndex;\n }\n if (this.options.withEndIndices) {\n node.endIndex = this.parser.endIndex;\n }\n parent.children.push(node);\n if (previousSibling) {\n node.prev = previousSibling;\n previousSibling.next = node;\n }\n node.parent = parent;\n this.lastNode = null;\n }\n}\nexport default DomHandler;\n"],"x_google_ignoreList":[0],"mappings":";;;;AAIA,MAAM,cAAc;CAChB,kBAAkB;CAClB,gBAAgB;CAChB,SAAS;AACZ;AACD,IAAa,aAAb,MAAwB;;;;;;CAMpB,YAAY,UAAU,SAAS,WAAW;;EAEtC,KAAK,MAAM,CAAE;;EAEb,KAAK,OAAO,IAAI,SAAS,KAAK;;EAE9B,KAAK,OAAO;;EAEZ,KAAK,WAAW,CAAC,KAAK,IAAK;;EAE3B,KAAK,WAAW;;EAEhB,KAAK,SAAS;AAEd,MAAI,OAAO,YAAY,YAAY;GAC/B,YAAY;GACZ,UAAU;EACb;AACD,MAAI,OAAO,aAAa,UAAU;GAC9B,UAAU;GACV,WAAW;EACd;EACD,KAAK,WAAW,aAAa,QAAQ,aAAa,KAAK,IAAI,WAAW;EACtE,KAAK,UAAU,YAAY,QAAQ,YAAY,KAAK,IAAI,UAAU;EAClE,KAAK,YAAY,cAAc,QAAQ,cAAc,KAAK,IAAI,YAAY;CAC7E;CACD,aAAa,QAAQ;EACjB,KAAK,SAAS;CACjB;CAED,UAAU;EACN,KAAK,MAAM,CAAE;EACb,KAAK,OAAO,IAAI,SAAS,KAAK;EAC9B,KAAK,OAAO;EACZ,KAAK,WAAW,CAAC,KAAK,IAAK;EAC3B,KAAK,WAAW;EAChB,KAAK,SAAS;CACjB;CAED,QAAQ;AACJ,MAAI,KAAK,KACL;EACJ,KAAK,OAAO;EACZ,KAAK,SAAS;EACd,KAAK,eAAe,KAAK;CAC5B;CACD,QAAQ,OAAO;EACX,KAAK,eAAe,MAAM;CAC7B;CACD,aAAa;EACT,KAAK,WAAW;EAChB,MAAM,OAAO,KAAK,SAAS,KAAK;AAChC,MAA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,OAAO,SAAS,OAAO,SAAS,SAAS;AACjE,MAAI,KAAK,QAAQ,kBACb,KAAK,aAAa,KAAK,OAAO;AAElC,MAAI,KAAK,QAAQ,gBACb,KAAK,WAAW,KAAK,OAAO;EAEhC,OAAO,SAAS,KAAK,KAAK;AAC1B,MAAI,iBAAiB;GACjB,KAAK,OAAO;GACZ,gBAAgB,OAAO;EAC1B;EACD,KAAK,SAAS;EACd,KAAK,WAAW;CACnB;AACJ"}
@@ -1,5 +1,6 @@
1
- import { ElementType, isTag as isTag$1 } from "../../../domelementtype/lib/esm/index.js";
2
- //#region ../../node_modules/domhandler/lib/esm/node.js
1
+ import { ElementType, isTag } from "../../../domelementtype/lib/esm/index.js";
2
+
3
+ //#region ../../../node_modules/domhandler/lib/esm/node.js
3
4
  /**
4
5
  * This object will be used as the prototype for Nodes when creating a
5
6
  * DOM-Level-1-compliant structure.
@@ -212,8 +213,8 @@ var Element = class extends NodeWithChildren {
212
213
  * @param node Node to check.
213
214
  * @returns `true` if the node is a `Element`, `false` otherwise.
214
215
  */
215
- function isTag(node) {
216
- return isTag$1(node);
216
+ function isTag$1(node) {
217
+ return isTag(node);
217
218
  }
218
219
  /**
219
220
  * @param node Node to check.
@@ -260,7 +261,7 @@ function cloneNode(node, recursive = false) {
260
261
  let result;
261
262
  if (isText(node)) result = new Text(node.data);
262
263
  else if (isComment(node)) result = new Comment(node.data);
263
- else if (isTag(node)) {
264
+ else if (isTag$1(node)) {
264
265
  const children = recursive ? cloneChildren(node.children) : [];
265
266
  const clone = new Element(node.name, { ...node.attribs }, children);
266
267
  children.forEach((child) => child.parent = clone);
@@ -301,7 +302,7 @@ function cloneChildren(childs) {
301
302
  }
302
303
  return children;
303
304
  }
304
- //#endregion
305
- export { CDATA, Comment, DataNode, Document, Element, Node, NodeWithChildren, ProcessingInstruction, Text, cloneNode, isCDATA, isComment, isDirective, isDocument, isTag, isText };
306
305
 
306
+ //#endregion
307
+ export { CDATA, Comment, DataNode, Document, Element, Node, NodeWithChildren, ProcessingInstruction, Text, cloneNode, isCDATA, isComment, isDirective, isDocument, isTag$1 as isTag, isText };
307
308
  //# sourceMappingURL=node.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"node.js","names":["isTagRaw"],"sources":["../../../../../../../node_modules/domhandler/lib/esm/node.js"],"sourcesContent":["import { ElementType, isTag as isTagRaw } from \"domelementtype\";\n/**\n * This object will be used as the prototype for Nodes when creating a\n * DOM-Level-1-compliant structure.\n */\nexport class Node {\n constructor() {\n /** Parent of the node */\n this.parent = null;\n /** Previous sibling */\n this.prev = null;\n /** Next sibling */\n this.next = null;\n /** The start index of the node. Requires `withStartIndices` on the handler to be `true. */\n this.startIndex = null;\n /** The end index of the node. Requires `withEndIndices` on the handler to be `true. */\n this.endIndex = null;\n }\n // Read-write aliases for properties\n /**\n * Same as {@link parent}.\n * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.\n */\n get parentNode() {\n return this.parent;\n }\n set parentNode(parent) {\n this.parent = parent;\n }\n /**\n * Same as {@link prev}.\n * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.\n */\n get previousSibling() {\n return this.prev;\n }\n set previousSibling(prev) {\n this.prev = prev;\n }\n /**\n * Same as {@link next}.\n * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.\n */\n get nextSibling() {\n return this.next;\n }\n set nextSibling(next) {\n this.next = next;\n }\n /**\n * Clone this node, and optionally its children.\n *\n * @param recursive Clone child nodes as well.\n * @returns A clone of the node.\n */\n cloneNode(recursive = false) {\n return cloneNode(this, recursive);\n }\n}\n/**\n * A node that contains some data.\n */\nexport class DataNode extends Node {\n /**\n * @param data The content of the data node\n */\n constructor(data) {\n super();\n this.data = data;\n }\n /**\n * Same as {@link data}.\n * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.\n */\n get nodeValue() {\n return this.data;\n }\n set nodeValue(data) {\n this.data = data;\n }\n}\n/**\n * Text within the document.\n */\nexport class Text extends DataNode {\n constructor() {\n super(...arguments);\n this.type = ElementType.Text;\n }\n get nodeType() {\n return 3;\n }\n}\n/**\n * Comments within the document.\n */\nexport class Comment extends DataNode {\n constructor() {\n super(...arguments);\n this.type = ElementType.Comment;\n }\n get nodeType() {\n return 8;\n }\n}\n/**\n * Processing instructions, including doc types.\n */\nexport class ProcessingInstruction extends DataNode {\n constructor(name, data) {\n super(data);\n this.name = name;\n this.type = ElementType.Directive;\n }\n get nodeType() {\n return 1;\n }\n}\n/**\n * A `Node` that can have children.\n */\nexport class NodeWithChildren extends Node {\n /**\n * @param children Children of the node. Only certain node types can have children.\n */\n constructor(children) {\n super();\n this.children = children;\n }\n // Aliases\n /** First child of the node. */\n get firstChild() {\n var _a;\n return (_a = this.children[0]) !== null && _a !== void 0 ? _a : null;\n }\n /** Last child of the node. */\n get lastChild() {\n return this.children.length > 0\n ? this.children[this.children.length - 1]\n : null;\n }\n /**\n * Same as {@link children}.\n * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.\n */\n get childNodes() {\n return this.children;\n }\n set childNodes(children) {\n this.children = children;\n }\n}\nexport class CDATA extends NodeWithChildren {\n constructor() {\n super(...arguments);\n this.type = ElementType.CDATA;\n }\n get nodeType() {\n return 4;\n }\n}\n/**\n * The root node of the document.\n */\nexport class Document extends NodeWithChildren {\n constructor() {\n super(...arguments);\n this.type = ElementType.Root;\n }\n get nodeType() {\n return 9;\n }\n}\n/**\n * An element within the DOM.\n */\nexport class Element extends NodeWithChildren {\n /**\n * @param name Name of the tag, eg. `div`, `span`.\n * @param attribs Object mapping attribute names to attribute values.\n * @param children Children of the node.\n */\n constructor(name, attribs, children = [], type = name === \"script\"\n ? ElementType.Script\n : name === \"style\"\n ? ElementType.Style\n : ElementType.Tag) {\n super(children);\n this.name = name;\n this.attribs = attribs;\n this.type = type;\n }\n get nodeType() {\n return 1;\n }\n // DOM Level 1 aliases\n /**\n * Same as {@link name}.\n * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.\n */\n get tagName() {\n return this.name;\n }\n set tagName(name) {\n this.name = name;\n }\n get attributes() {\n return Object.keys(this.attribs).map((name) => {\n var _a, _b;\n return ({\n name,\n value: this.attribs[name],\n namespace: (_a = this[\"x-attribsNamespace\"]) === null || _a === void 0 ? void 0 : _a[name],\n prefix: (_b = this[\"x-attribsPrefix\"]) === null || _b === void 0 ? void 0 : _b[name],\n });\n });\n }\n}\n/**\n * @param node Node to check.\n * @returns `true` if the node is a `Element`, `false` otherwise.\n */\nexport function isTag(node) {\n return isTagRaw(node);\n}\n/**\n * @param node Node to check.\n * @returns `true` if the node has the type `CDATA`, `false` otherwise.\n */\nexport function isCDATA(node) {\n return node.type === ElementType.CDATA;\n}\n/**\n * @param node Node to check.\n * @returns `true` if the node has the type `Text`, `false` otherwise.\n */\nexport function isText(node) {\n return node.type === ElementType.Text;\n}\n/**\n * @param node Node to check.\n * @returns `true` if the node has the type `Comment`, `false` otherwise.\n */\nexport function isComment(node) {\n return node.type === ElementType.Comment;\n}\n/**\n * @param node Node to check.\n * @returns `true` if the node has the type `ProcessingInstruction`, `false` otherwise.\n */\nexport function isDirective(node) {\n return node.type === ElementType.Directive;\n}\n/**\n * @param node Node to check.\n * @returns `true` if the node has the type `ProcessingInstruction`, `false` otherwise.\n */\nexport function isDocument(node) {\n return node.type === ElementType.Root;\n}\n/**\n * @param node Node to check.\n * @returns `true` if the node has children, `false` otherwise.\n */\nexport function hasChildren(node) {\n return Object.prototype.hasOwnProperty.call(node, \"children\");\n}\n/**\n * Clone a node, and optionally its children.\n *\n * @param recursive Clone child nodes as well.\n * @returns A clone of the node.\n */\nexport function cloneNode(node, recursive = false) {\n let result;\n if (isText(node)) {\n result = new Text(node.data);\n }\n else if (isComment(node)) {\n result = new Comment(node.data);\n }\n else if (isTag(node)) {\n const children = recursive ? cloneChildren(node.children) : [];\n const clone = new Element(node.name, { ...node.attribs }, children);\n children.forEach((child) => (child.parent = clone));\n if (node.namespace != null) {\n clone.namespace = node.namespace;\n }\n if (node[\"x-attribsNamespace\"]) {\n clone[\"x-attribsNamespace\"] = { ...node[\"x-attribsNamespace\"] };\n }\n if (node[\"x-attribsPrefix\"]) {\n clone[\"x-attribsPrefix\"] = { ...node[\"x-attribsPrefix\"] };\n }\n result = clone;\n }\n else if (isCDATA(node)) {\n const children = recursive ? cloneChildren(node.children) : [];\n const clone = new CDATA(children);\n children.forEach((child) => (child.parent = clone));\n result = clone;\n }\n else if (isDocument(node)) {\n const children = recursive ? cloneChildren(node.children) : [];\n const clone = new Document(children);\n children.forEach((child) => (child.parent = clone));\n if (node[\"x-mode\"]) {\n clone[\"x-mode\"] = node[\"x-mode\"];\n }\n result = clone;\n }\n else if (isDirective(node)) {\n const instruction = new ProcessingInstruction(node.name, node.data);\n if (node[\"x-name\"] != null) {\n instruction[\"x-name\"] = node[\"x-name\"];\n instruction[\"x-publicId\"] = node[\"x-publicId\"];\n instruction[\"x-systemId\"] = node[\"x-systemId\"];\n }\n result = instruction;\n }\n else {\n throw new Error(`Not implemented yet: ${node.type}`);\n }\n result.startIndex = node.startIndex;\n result.endIndex = node.endIndex;\n if (node.sourceCodeLocation != null) {\n result.sourceCodeLocation = node.sourceCodeLocation;\n }\n return result;\n}\nfunction cloneChildren(childs) {\n const children = childs.map((child) => cloneNode(child, true));\n for (let i = 1; i < children.length; i++) {\n children[i].prev = children[i - 1];\n children[i - 1].next = children[i];\n }\n return children;\n}\n"],"x_google_ignoreList":[0],"mappings":";;;;;;AAKA,IAAa,OAAb,MAAkB;CACd,cAAc;;EAEV,KAAK,SAAS;;EAEd,KAAK,OAAO;;EAEZ,KAAK,OAAO;;EAEZ,KAAK,aAAa;;EAElB,KAAK,WAAW;CACpB;;;;;CAMA,IAAI,aAAa;EACb,OAAO,KAAK;CAChB;CACA,IAAI,WAAW,QAAQ;EACnB,KAAK,SAAS;CAClB;;;;;CAKA,IAAI,kBAAkB;EAClB,OAAO,KAAK;CAChB;CACA,IAAI,gBAAgB,MAAM;EACtB,KAAK,OAAO;CAChB;;;;;CAKA,IAAI,cAAc;EACd,OAAO,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gB,KAAK;EACrC;EACA,SAAS;CACb,OAEI,MAAM,IAAI,MAAM,wBAAwB,KAAK,MAAM;CAEvD,OAAO,aAAa,KAAK;CACzB,OAAO,WAAW,KAAK;CACvB,IAAI,KAAK,sBAAsB,MAC3B,OAAO,qBAAqB,KAAK;CAErC,OAAO;AACX;AACA,SAAS,cAAc,QAAQ;CAC3B,MAAM,WAAW,OAAO,KAAK,UAAU,UAAU,OAAO,IAAI,CAAC;CAC7D,KAAK,IAAI,IAAI,GAAG,IAAI,SAAS,QAAQ,KAAK;EACtC,SAAS,EAAE,CAAC,OAAO,SAAS,IAAI;EAChC,SAAS,IAAI,EAAE,CAAC,OAAO,SAAS;CACpC;CACA,OAAO;AACX"}
1
+ {"version":3,"file":"node.js","names":["isTag","isTagRaw"],"sources":["../../../../../../../../node_modules/domhandler/lib/esm/node.js"],"sourcesContent":["import { ElementType, isTag as isTagRaw } from \"domelementtype\";\n/**\n * This object will be used as the prototype for Nodes when creating a\n * DOM-Level-1-compliant structure.\n */\nexport class Node {\n constructor() {\n /** Parent of the node */\n this.parent = null;\n /** Previous sibling */\n this.prev = null;\n /** Next sibling */\n this.next = null;\n /** The start index of the node. Requires `withStartIndices` on the handler to be `true. */\n this.startIndex = null;\n /** The end index of the node. Requires `withEndIndices` on the handler to be `true. */\n this.endIndex = null;\n }\n // Read-write aliases for properties\n /**\n * Same as {@link parent}.\n * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.\n */\n get parentNode() {\n return this.parent;\n }\n set parentNode(parent) {\n this.parent = parent;\n }\n /**\n * Same as {@link prev}.\n * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.\n */\n get previousSibling() {\n return this.prev;\n }\n set previousSibling(prev) {\n this.prev = prev;\n }\n /**\n * Same as {@link next}.\n * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.\n */\n get nextSibling() {\n return this.next;\n }\n set nextSibling(next) {\n this.next = next;\n }\n /**\n * Clone this node, and optionally its children.\n *\n * @param recursive Clone child nodes as well.\n * @returns A clone of the node.\n */\n cloneNode(recursive = false) {\n return cloneNode(this, recursive);\n }\n}\n/**\n * A node that contains some data.\n */\nexport class DataNode extends Node {\n /**\n * @param data The content of the data node\n */\n constructor(data) {\n super();\n this.data = data;\n }\n /**\n * Same as {@link data}.\n * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.\n */\n get nodeValue() {\n return this.data;\n }\n set nodeValue(data) {\n this.data = data;\n }\n}\n/**\n * Text within the document.\n */\nexport class Text extends DataNode {\n constructor() {\n super(...arguments);\n this.type = ElementType.Text;\n }\n get nodeType() {\n return 3;\n }\n}\n/**\n * Comments within the document.\n */\nexport class Comment extends DataNode {\n constructor() {\n super(...arguments);\n this.type = ElementType.Comment;\n }\n get nodeType() {\n return 8;\n }\n}\n/**\n * Processing instructions, including doc types.\n */\nexport class ProcessingInstruction extends DataNode {\n constructor(name, data) {\n super(data);\n this.name = name;\n this.type = ElementType.Directive;\n }\n get nodeType() {\n return 1;\n }\n}\n/**\n * A `Node` that can have children.\n */\nexport class NodeWithChildren extends Node {\n /**\n * @param children Children of the node. Only certain node types can have children.\n */\n constructor(children) {\n super();\n this.children = children;\n }\n // Aliases\n /** First child of the node. */\n get firstChild() {\n var _a;\n return (_a = this.children[0]) !== null && _a !== void 0 ? _a : null;\n }\n /** Last child of the node. */\n get lastChild() {\n return this.children.length > 0\n ? this.children[this.children.length - 1]\n : null;\n }\n /**\n * Same as {@link children}.\n * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.\n */\n get childNodes() {\n return this.children;\n }\n set childNodes(children) {\n this.children = children;\n }\n}\nexport class CDATA extends NodeWithChildren {\n constructor() {\n super(...arguments);\n this.type = ElementType.CDATA;\n }\n get nodeType() {\n return 4;\n }\n}\n/**\n * The root node of the document.\n */\nexport class Document extends NodeWithChildren {\n constructor() {\n super(...arguments);\n this.type = ElementType.Root;\n }\n get nodeType() {\n return 9;\n }\n}\n/**\n * An element within the DOM.\n */\nexport class Element extends NodeWithChildren {\n /**\n * @param name Name of the tag, eg. `div`, `span`.\n * @param attribs Object mapping attribute names to attribute values.\n * @param children Children of the node.\n */\n constructor(name, attribs, children = [], type = name === \"script\"\n ? ElementType.Script\n : name === \"style\"\n ? ElementType.Style\n : ElementType.Tag) {\n super(children);\n this.name = name;\n this.attribs = attribs;\n this.type = type;\n }\n get nodeType() {\n return 1;\n }\n // DOM Level 1 aliases\n /**\n * Same as {@link name}.\n * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.\n */\n get tagName() {\n return this.name;\n }\n set tagName(name) {\n this.name = name;\n }\n get attributes() {\n return Object.keys(this.attribs).map((name) => {\n var _a, _b;\n return ({\n name,\n value: this.attribs[name],\n namespace: (_a = this[\"x-attribsNamespace\"]) === null || _a === void 0 ? void 0 : _a[name],\n prefix: (_b = this[\"x-attribsPrefix\"]) === null || _b === void 0 ? void 0 : _b[name],\n });\n });\n }\n}\n/**\n * @param node Node to check.\n * @returns `true` if the node is a `Element`, `false` otherwise.\n */\nexport function isTag(node) {\n return isTagRaw(node);\n}\n/**\n * @param node Node to check.\n * @returns `true` if the node has the type `CDATA`, `false` otherwise.\n */\nexport function isCDATA(node) {\n return node.type === ElementType.CDATA;\n}\n/**\n * @param node Node to check.\n * @returns `true` if the node has the type `Text`, `false` otherwise.\n */\nexport function isText(node) {\n return node.type === ElementType.Text;\n}\n/**\n * @param node Node to check.\n * @returns `true` if the node has the type `Comment`, `false` otherwise.\n */\nexport function isComment(node) {\n return node.type === ElementType.Comment;\n}\n/**\n * @param node Node to check.\n * @returns `true` if the node has the type `ProcessingInstruction`, `false` otherwise.\n */\nexport function isDirective(node) {\n return node.type === ElementType.Directive;\n}\n/**\n * @param node Node to check.\n * @returns `true` if the node has the type `ProcessingInstruction`, `false` otherwise.\n */\nexport function isDocument(node) {\n return node.type === ElementType.Root;\n}\n/**\n * @param node Node to check.\n * @returns `true` if the node has children, `false` otherwise.\n */\nexport function hasChildren(node) {\n return Object.prototype.hasOwnProperty.call(node, \"children\");\n}\n/**\n * Clone a node, and optionally its children.\n *\n * @param recursive Clone child nodes as well.\n * @returns A clone of the node.\n */\nexport function cloneNode(node, recursive = false) {\n let result;\n if (isText(node)) {\n result = new Text(node.data);\n }\n else if (isComment(node)) {\n result = new Comment(node.data);\n }\n else if (isTag(node)) {\n const children = recursive ? cloneChildren(node.children) : [];\n const clone = new Element(node.name, { ...node.attribs }, children);\n children.forEach((child) => (child.parent = clone));\n if (node.namespace != null) {\n clone.namespace = node.namespace;\n }\n if (node[\"x-attribsNamespace\"]) {\n clone[\"x-attribsNamespace\"] = { ...node[\"x-attribsNamespace\"] };\n }\n if (node[\"x-attribsPrefix\"]) {\n clone[\"x-attribsPrefix\"] = { ...node[\"x-attribsPrefix\"] };\n }\n result = clone;\n }\n else if (isCDATA(node)) {\n const children = recursive ? cloneChildren(node.children) : [];\n const clone = new CDATA(children);\n children.forEach((child) => (child.parent = clone));\n result = clone;\n }\n else if (isDocument(node)) {\n const children = recursive ? cloneChildren(node.children) : [];\n const clone = new Document(children);\n children.forEach((child) => (child.parent = clone));\n if (node[\"x-mode\"]) {\n clone[\"x-mode\"] = node[\"x-mode\"];\n }\n result = clone;\n }\n else if (isDirective(node)) {\n const instruction = new ProcessingInstruction(node.name, node.data);\n if (node[\"x-name\"] != null) {\n instruction[\"x-name\"] = node[\"x-name\"];\n instruction[\"x-publicId\"] = node[\"x-publicId\"];\n instruction[\"x-systemId\"] = node[\"x-systemId\"];\n }\n result = instruction;\n }\n else {\n throw new Error(`Not implemented yet: ${node.type}`);\n }\n result.startIndex = node.startIndex;\n result.endIndex = node.endIndex;\n if (node.sourceCodeLocation != null) {\n result.sourceCodeLocation = node.sourceCodeLocation;\n }\n return result;\n}\nfunction cloneChildren(childs) {\n const children = childs.map((child) => cloneNode(child, true));\n for (let i = 1; i < children.length; i++) {\n children[i].prev = children[i - 1];\n children[i - 1].next = children[i];\n }\n return children;\n}\n"],"x_google_ignoreList":[0],"mappings":";;;;;;;AAKA,IAAa,OAAb,MAAkB;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SAAS,QAAQ,CAAC,UAAW,MAAM,SAAS,MAAO;AACnD,MAAI,KAAK,WACL,MAAM,YAAY,KAAK;EAE3B,SAAS;CACZ,WACQ,YAAY,KAAK,EAAE;EACxB,MAAM,cAAc,IAAI,sBAAsB,KAAK,MAAM,KAAK;AAC9D,MAAI,KAAK,aAAa,MAAM;GACxB,YAAY,YAAY,KAAK;GAC7B,YAAY,gBAAgB,KAAK;GACjC,YAAY,gBAAgB,KAAK;EACpC;EACD,SAAS;CACZ,MAEG,OAAM,IAAI,MAAM,CAAC,qBAAqB,EAAE,KAAK,MAAM;CAEvD,OAAO,aAAa,KAAK;CACzB,OAAO,WAAW,KAAK;AACvB,KAAI,KAAK,sBAAsB,MAC3B,OAAO,qBAAqB,KAAK;AAErC,QAAO;AACV;AACD,SAAS,cAAc,QAAQ;CAC3B,MAAM,WAAW,OAAO,IAAI,CAAC,UAAU,UAAU,OAAO,KAAK,CAAC;AAC9D,MAAK,IAAI,IAAI,GAAG,IAAI,SAAS,QAAQ,KAAK;EACtC,SAAS,GAAG,OAAO,SAAS,IAAI;EAChC,SAAS,IAAI,GAAG,OAAO,SAAS;CACnC;AACD,QAAO;AACV"}
@@ -1,29 +1,30 @@
1
1
  import decode_data_html_default from "./generated/decode-data-html.js";
2
2
  import decode_data_xml_default from "./generated/decode-data-xml.js";
3
3
  import { fromCodePoint, replaceCodePoint } from "./decode_codepoint.js";
4
- //#region ../../node_modules/entities/lib/esm/decode.js
4
+
5
+ //#region ../../../node_modules/entities/lib/esm/decode.js
5
6
  var CharCodes;
6
- (function(CharCodes) {
7
- CharCodes[CharCodes["NUM"] = 35] = "NUM";
8
- CharCodes[CharCodes["SEMI"] = 59] = "SEMI";
9
- CharCodes[CharCodes["EQUALS"] = 61] = "EQUALS";
10
- CharCodes[CharCodes["ZERO"] = 48] = "ZERO";
11
- CharCodes[CharCodes["NINE"] = 57] = "NINE";
12
- CharCodes[CharCodes["LOWER_A"] = 97] = "LOWER_A";
13
- CharCodes[CharCodes["LOWER_F"] = 102] = "LOWER_F";
14
- CharCodes[CharCodes["LOWER_X"] = 120] = "LOWER_X";
15
- CharCodes[CharCodes["LOWER_Z"] = 122] = "LOWER_Z";
16
- CharCodes[CharCodes["UPPER_A"] = 65] = "UPPER_A";
17
- CharCodes[CharCodes["UPPER_F"] = 70] = "UPPER_F";
18
- CharCodes[CharCodes["UPPER_Z"] = 90] = "UPPER_Z";
7
+ (function(CharCodes$1) {
8
+ CharCodes$1[CharCodes$1["NUM"] = 35] = "NUM";
9
+ CharCodes$1[CharCodes$1["SEMI"] = 59] = "SEMI";
10
+ CharCodes$1[CharCodes$1["EQUALS"] = 61] = "EQUALS";
11
+ CharCodes$1[CharCodes$1["ZERO"] = 48] = "ZERO";
12
+ CharCodes$1[CharCodes$1["NINE"] = 57] = "NINE";
13
+ CharCodes$1[CharCodes$1["LOWER_A"] = 97] = "LOWER_A";
14
+ CharCodes$1[CharCodes$1["LOWER_F"] = 102] = "LOWER_F";
15
+ CharCodes$1[CharCodes$1["LOWER_X"] = 120] = "LOWER_X";
16
+ CharCodes$1[CharCodes$1["LOWER_Z"] = 122] = "LOWER_Z";
17
+ CharCodes$1[CharCodes$1["UPPER_A"] = 65] = "UPPER_A";
18
+ CharCodes$1[CharCodes$1["UPPER_F"] = 70] = "UPPER_F";
19
+ CharCodes$1[CharCodes$1["UPPER_Z"] = 90] = "UPPER_Z";
19
20
  })(CharCodes || (CharCodes = {}));
20
21
  /** Bit that needs to be set to convert an upper case ASCII character to lower case */
21
22
  const TO_LOWER_BIT = 32;
22
23
  var BinTrieFlags;
23
- (function(BinTrieFlags) {
24
- BinTrieFlags[BinTrieFlags["VALUE_LENGTH"] = 49152] = "VALUE_LENGTH";
25
- BinTrieFlags[BinTrieFlags["BRANCH_LENGTH"] = 16256] = "BRANCH_LENGTH";
26
- BinTrieFlags[BinTrieFlags["JUMP_TABLE"] = 127] = "JUMP_TABLE";
24
+ (function(BinTrieFlags$1) {
25
+ BinTrieFlags$1[BinTrieFlags$1["VALUE_LENGTH"] = 49152] = "VALUE_LENGTH";
26
+ BinTrieFlags$1[BinTrieFlags$1["BRANCH_LENGTH"] = 16256] = "BRANCH_LENGTH";
27
+ BinTrieFlags$1[BinTrieFlags$1["JUMP_TABLE"] = 127] = "JUMP_TABLE";
27
28
  })(BinTrieFlags || (BinTrieFlags = {}));
28
29
  function isNumber(code) {
29
30
  return code >= CharCodes.ZERO && code <= CharCodes.NINE;
@@ -44,21 +45,21 @@ function isEntityInAttributeInvalidEnd(code) {
44
45
  return code === CharCodes.EQUALS || isAsciiAlphaNumeric(code);
45
46
  }
46
47
  var EntityDecoderState;
47
- (function(EntityDecoderState) {
48
- EntityDecoderState[EntityDecoderState["EntityStart"] = 0] = "EntityStart";
49
- EntityDecoderState[EntityDecoderState["NumericStart"] = 1] = "NumericStart";
50
- EntityDecoderState[EntityDecoderState["NumericDecimal"] = 2] = "NumericDecimal";
51
- EntityDecoderState[EntityDecoderState["NumericHex"] = 3] = "NumericHex";
52
- EntityDecoderState[EntityDecoderState["NamedEntity"] = 4] = "NamedEntity";
48
+ (function(EntityDecoderState$1) {
49
+ EntityDecoderState$1[EntityDecoderState$1["EntityStart"] = 0] = "EntityStart";
50
+ EntityDecoderState$1[EntityDecoderState$1["NumericStart"] = 1] = "NumericStart";
51
+ EntityDecoderState$1[EntityDecoderState$1["NumericDecimal"] = 2] = "NumericDecimal";
52
+ EntityDecoderState$1[EntityDecoderState$1["NumericHex"] = 3] = "NumericHex";
53
+ EntityDecoderState$1[EntityDecoderState$1["NamedEntity"] = 4] = "NamedEntity";
53
54
  })(EntityDecoderState || (EntityDecoderState = {}));
54
55
  var DecodingMode;
55
- (function(DecodingMode) {
56
+ (function(DecodingMode$1) {
56
57
  /** Entities in text nodes that can end with any character. */
57
- DecodingMode[DecodingMode["Legacy"] = 0] = "Legacy";
58
+ DecodingMode$1[DecodingMode$1["Legacy"] = 0] = "Legacy";
58
59
  /** Only allow entities terminated with a semicolon. */
59
- DecodingMode[DecodingMode["Strict"] = 1] = "Strict";
60
+ DecodingMode$1[DecodingMode$1["Strict"] = 1] = "Strict";
60
61
  /** Entities in attributes have limitations on ending characters. */
61
- DecodingMode[DecodingMode["Attribute"] = 2] = "Attribute";
62
+ DecodingMode$1[DecodingMode$1["Attribute"] = 2] = "Attribute";
62
63
  })(DecodingMode || (DecodingMode = {}));
63
64
  /**
64
65
  * Token decoder with support of writing partial entities.
@@ -355,9 +356,9 @@ function determineBranch(decodeTree, current, nodeIdx, char) {
355
356
  }
356
357
  return -1;
357
358
  }
358
- getDecoder(decode_data_html_default);
359
- getDecoder(decode_data_xml_default);
360
- //#endregion
361
- export { BinTrieFlags, DecodingMode, EntityDecoder, determineBranch, fromCodePoint, decode_data_html_default as htmlDecodeTree, replaceCodePoint, decode_data_xml_default as xmlDecodeTree };
359
+ const htmlDecoder = getDecoder(decode_data_html_default);
360
+ const xmlDecoder = getDecoder(decode_data_xml_default);
362
361
 
362
+ //#endregion
363
+ export { BinTrieFlags, determineBranch };
363
364
  //# sourceMappingURL=decode.js.map