@opentiny/tiny-robot 0.2.0-alpha.2 → 0.2.0-alpha.4

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 (414) hide show
  1. package/dist/_plugin-vue_export-helper.js +9 -0
  2. package/dist/action-group/index.js +142 -0
  3. package/dist/bubble/index.js +3211 -0
  4. package/dist/{node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/close.js → close.js} +9 -9
  5. package/dist/container/index.js +60 -0
  6. package/dist/conversations/index.js +14 -0
  7. package/dist/feedback/index.js +192 -0
  8. package/dist/history/index.js +228 -0
  9. package/dist/icon-button/index.js +31 -0
  10. package/dist/index.d.ts +2200 -26
  11. package/dist/index.js +35 -43
  12. package/dist/index2.js +376 -0
  13. package/dist/index3.js +3895 -0
  14. package/dist/index4.js +637 -0
  15. package/dist/index5.js +3237 -0
  16. package/dist/index6.js +4623 -0
  17. package/dist/prompts/index.js +83 -0
  18. package/dist/question/index.js +429 -0
  19. package/dist/sender/index.js +772 -0
  20. package/dist/style.css +1 -1
  21. package/dist/suggestion/index.js +497 -0
  22. package/dist/{packages/svgs/dist/tiny-robot-svgs.js → tiny-robot-svgs.js} +107 -107
  23. package/dist/welcome/index.js +38 -0
  24. package/package.json +7 -3
  25. package/dist/_virtual/_plugin-vue_export-helper.js +0 -9
  26. package/dist/action-group/ActionGroup.vue.d.ts +0 -26
  27. package/dist/action-group/ActionGroupItem.vue.d.ts +0 -18
  28. package/dist/action-group/index.d.ts +0 -12
  29. package/dist/action-group/index.type.d.ts +0 -17
  30. package/dist/bubble/BubbleList.vue.d.ts +0 -5
  31. package/dist/bubble/index.d.ts +0 -12
  32. package/dist/bubble/index.type.d.ts +0 -51
  33. package/dist/container/index.d.ts +0 -7
  34. package/dist/container/index.type.d.ts +0 -16
  35. package/dist/container/index.vue.d.ts +0 -26
  36. package/dist/conversations/index.d.ts +0 -7
  37. package/dist/conversations/index.vue.d.ts +0 -2
  38. package/dist/feedback/components/SourceList.vue.d.ts +0 -11
  39. package/dist/feedback/components/index.d.ts +0 -1
  40. package/dist/feedback/index.d.ts +0 -7
  41. package/dist/feedback/index.type.d.ts +0 -25
  42. package/dist/feedback/index.vue.d.ts +0 -13
  43. package/dist/history/components/index.d.ts +0 -2
  44. package/dist/history/components/item-tag.vue.d.ts +0 -5
  45. package/dist/history/components/search-empty.vue.d.ts +0 -7
  46. package/dist/history/composables/index.d.ts +0 -1
  47. package/dist/history/composables/useEditItemTitle.d.ts +0 -12
  48. package/dist/history/index.d.ts +0 -6
  49. package/dist/history/index.type.d.ts +0 -43
  50. package/dist/history/index.vue.d.ts +0 -2
  51. package/dist/icon-button/index.d.ts +0 -7
  52. package/dist/icon-button/index.type.d.ts +0 -6
  53. package/dist/icon-button/index.vue.d.ts +0 -6
  54. package/dist/node_modules/.pnpm/@opentiny_utils@1.0.0/node_modules/@opentiny/utils/dist/opentiny-utils.es.js +0 -832
  55. package/dist/node_modules/.pnpm/@opentiny_utils@3.22.0/node_modules/@opentiny/utils/dist/index.es.js +0 -2116
  56. package/dist/node_modules/.pnpm/@opentiny_vue-button@3.21.0/node_modules/@opentiny/vue-button/lib/index.js +0 -113
  57. package/dist/node_modules/.pnpm/@opentiny_vue-button@3.21.0/node_modules/@opentiny/vue-button/lib/pc.js +0 -93
  58. package/dist/node_modules/.pnpm/@opentiny_vue-common@3.21.0/node_modules/@opentiny/vue-common/lib/index.js +0 -727
  59. package/dist/node_modules/.pnpm/@opentiny_vue-common@3.22.0/node_modules/@opentiny/vue-common/lib/index.js +0 -710
  60. package/dist/node_modules/.pnpm/@opentiny_vue-dialog-box@3.21.0/node_modules/@opentiny/vue-dialog-box/lib/index.js +0 -198
  61. package/dist/node_modules/.pnpm/@opentiny_vue-dialog-box@3.21.0/node_modules/@opentiny/vue-dialog-box/lib/pc.js +0 -204
  62. package/dist/node_modules/.pnpm/@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/useEventListener.js +0 -10
  63. package/dist/node_modules/.pnpm/@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/useInstanceSlots.js +0 -14
  64. package/dist/node_modules/.pnpm/@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/useRelation.js +0 -54
  65. package/dist/node_modules/.pnpm/@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/vue-popper.js +0 -85
  66. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/close.js +0 -29
  67. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/eyeclose.js +0 -42
  68. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/eyeopen.js +0 -43
  69. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/finish.js +0 -34
  70. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/fullscreen.js +0 -30
  71. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/loading-shadow.js +0 -77
  72. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/minscreen.js +0 -30
  73. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-add-column-after.js +0 -24
  74. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-add-column-before.js +0 -24
  75. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-add-row-after.js +0 -24
  76. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-add-row-before.js +0 -24
  77. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-align-center.js +0 -24
  78. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-align-left.js +0 -24
  79. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-align-right.js +0 -24
  80. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-bold.js +0 -24
  81. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-code-block.js +0 -24
  82. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-code-view.js +0 -24
  83. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-color.js +0 -24
  84. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-delete-column.js +0 -24
  85. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-delete-row.js +0 -24
  86. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-delete-table.js +0 -24
  87. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-font-size.js +0 -24
  88. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-format-clear.js +0 -24
  89. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-h1.js +0 -24
  90. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-h2.js +0 -24
  91. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-h3.js +0 -24
  92. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-h4.js +0 -24
  93. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-h5.js +0 -24
  94. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-h6.js +0 -24
  95. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-heading.js +0 -24
  96. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-high-light.js +0 -24
  97. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-image.js +0 -24
  98. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-italic.js +0 -24
  99. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-line-height.js +0 -24
  100. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-link-unlink.js +0 -24
  101. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-link.js +0 -24
  102. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-list-ordered.js +0 -24
  103. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-list-unordered.js +0 -24
  104. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-merge-cells-vertical.js +0 -24
  105. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-merge-cells.js +0 -24
  106. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-node-delete.js +0 -24
  107. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-paragraph.js +0 -24
  108. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-quote-text.js +0 -24
  109. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-redo.js +0 -24
  110. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-split-cells-horizontal.js +0 -24
  111. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-split-cells-vertical.js +0 -24
  112. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-strike-through.js +0 -24
  113. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-subscript.js +0 -24
  114. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-superscript.js +0 -24
  115. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-table.js +0 -24
  116. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-task-list.js +0 -24
  117. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-underline.js +0 -24
  118. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-undo.js +0 -24
  119. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/sub-script.js +0 -29
  120. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/warn.js +0 -26
  121. package/dist/node_modules/.pnpm/@opentiny_vue-input@3.21.0/node_modules/@opentiny/vue-input/lib/index.js +0 -196
  122. package/dist/node_modules/.pnpm/@opentiny_vue-input@3.21.0/node_modules/@opentiny/vue-input/lib/pc.js +0 -568
  123. package/dist/node_modules/.pnpm/@opentiny_vue-locale@3.21.0/node_modules/@opentiny/vue-locale/lib/index.js +0 -1783
  124. package/dist/node_modules/.pnpm/@opentiny_vue-locale@3.22.0/node_modules/@opentiny/vue-locale/lib/index.js +0 -1783
  125. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/button/index.js +0 -13
  126. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/button/vue.js +0 -34
  127. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/chunk-G2ADBYYC.js +0 -12
  128. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/browser.js +0 -36
  129. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/clickoutside.js +0 -47
  130. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/debounce.js +0 -7
  131. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/dom.js +0 -45
  132. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/popper.js +0 -320
  133. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/popup-manager.js +0 -118
  134. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/throttle.js +0 -23
  135. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/useEventListener.js +0 -9
  136. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/useInstanceSlots.js +0 -14
  137. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/useRelation.js +0 -54
  138. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/vue-popper.js +0 -84
  139. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/vue-popup.js +0 -73
  140. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/event.js +0 -13
  141. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/function.js +0 -5
  142. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/index.js +0 -11
  143. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/object.js +0 -84
  144. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/string.js +0 -28
  145. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/type.js +0 -28
  146. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/dialog-box/index.js +0 -136
  147. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/dialog-box/vue.js +0 -148
  148. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/input/index.js +0 -228
  149. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/input/vue.js +0 -263
  150. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/tall-storage/index.js +0 -63
  151. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/tall-storage/vue-storage-box.js +0 -16
  152. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/tall-storage/vue.js +0 -23
  153. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/tooltip/index.js +0 -78
  154. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/tooltip/vue.js +0 -90
  155. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/tooltip/index.js +0 -77
  156. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/tooltip/vue.js +0 -90
  157. package/dist/node_modules/.pnpm/@opentiny_vue-tooltip@3.21.0/node_modules/@opentiny/vue-tooltip/lib/index.js +0 -173
  158. package/dist/node_modules/.pnpm/@opentiny_vue-tooltip@3.21.0/node_modules/@opentiny/vue-tooltip/lib/pc.js +0 -248
  159. package/dist/node_modules/.pnpm/@opentiny_vue-tooltip@3.22.0/node_modules/@opentiny/vue-tooltip/lib/index.js +0 -176
  160. package/dist/node_modules/.pnpm/@opentiny_vue-tooltip@3.22.0/node_modules/@opentiny/vue-tooltip/lib/pc.js +0 -248
  161. package/dist/node_modules/.pnpm/@vueuse_core@13.1.0_vue@3.5.13/node_modules/@vueuse/core/index.js +0 -310
  162. package/dist/node_modules/.pnpm/@vueuse_shared@13.1.0_vue@3.5.13/node_modules/@vueuse/shared/index.js +0 -110
  163. package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode.js +0 -277
  164. package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode_codepoint.js +0 -46
  165. package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-html.js +0 -7
  166. package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-xml.js +0 -7
  167. package/dist/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/index.js +0 -187
  168. package/dist/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/lib/re.js +0 -19
  169. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/html_blocks.js +0 -67
  170. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/html_re.js +0 -5
  171. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/utils.js +0 -164
  172. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/index.js +0 -8
  173. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_destination.js +0 -44
  174. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_label.js +0 -21
  175. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_title.js +0 -37
  176. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/index.js +0 -112
  177. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_block.js +0 -63
  178. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_core.js +0 -34
  179. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_inline.js +0 -96
  180. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/presets/commonmark.js +0 -78
  181. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/presets/default.js +0 -40
  182. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/presets/zero.js +0 -59
  183. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/renderer.js +0 -127
  184. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/ruler.js +0 -95
  185. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/blockquote.js +0 -59
  186. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/code.js +0 -23
  187. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/fence.js +0 -30
  188. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/heading.js +0 -28
  189. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/hr.js +0 -27
  190. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/html_block.js +0 -37
  191. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/lheading.js +0 -43
  192. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/list.js +0 -110
  193. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/paragraph.js +0 -25
  194. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/reference.js +0 -95
  195. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/state_block.js +0 -84
  196. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/table.js +0 -99
  197. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/block.js +0 -7
  198. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/inline.js +0 -10
  199. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/linkify.js +0 -57
  200. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/normalize.js +0 -9
  201. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/replacements.js +0 -31
  202. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/smartquotes.js +0 -80
  203. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/state_core.js +0 -8
  204. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/text_join.js +0 -16
  205. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/autolink.js +0 -46
  206. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/backticks.js +0 -31
  207. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/balance_pairs.js +0 -34
  208. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/emphasis.js +0 -57
  209. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/entity.js +0 -33
  210. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/escape.js +0 -32
  211. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/fragments_join.js +0 -10
  212. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/html_inline.js +0 -32
  213. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/image.js +0 -48
  214. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/link.js +0 -40
  215. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/linkify.js +0 -28
  216. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/newline.js +0 -23
  217. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/state_inline.js +0 -27
  218. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/strikethrough.js +0 -54
  219. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/text.js +0 -39
  220. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/token.js +0 -31
  221. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/index.js +0 -10
  222. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/decode.js +0 -61
  223. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/encode.js +0 -48
  224. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/format.js +0 -7
  225. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/parse.js +0 -74
  226. package/dist/node_modules/.pnpm/punycode.js@2.3.1/node_modules/punycode.js/punycode.es6.js +0 -139
  227. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cc/regex.js +0 -4
  228. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cf/regex.js +0 -4
  229. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/P/regex.js +0 -4
  230. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/S/regex.js +0 -4
  231. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Z/regex.js +0 -4
  232. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/index.js +0 -14
  233. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/properties/Any/regex.js +0 -4
  234. package/dist/packages/components/src/action-group/ActionGroup.vue.js +0 -7
  235. package/dist/packages/components/src/action-group/ActionGroup.vue2.js +0 -121
  236. package/dist/packages/components/src/action-group/ActionGroupItem.vue.js +0 -14
  237. package/dist/packages/components/src/action-group/ActionGroupItem.vue2.js +0 -4
  238. package/dist/packages/components/src/action-group/index.js +0 -17
  239. package/dist/packages/components/src/assets/icons/accessory.svg.js +0 -4
  240. package/dist/packages/components/src/assets/icons/loading-speech.svg.js +0 -4
  241. package/dist/packages/components/src/assets/icons/loading.svg.js +0 -4
  242. package/dist/packages/components/src/assets/icons/send.svg.js +0 -4
  243. package/dist/packages/components/src/assets/icons/voice.svg.js +0 -4
  244. package/dist/packages/components/src/bubble/Bubble.vue.js +0 -7
  245. package/dist/packages/components/src/bubble/Bubble.vue2.js +0 -76
  246. package/dist/packages/components/src/bubble/BubbleList.vue.js +0 -7
  247. package/dist/packages/components/src/bubble/BubbleList.vue2.js +0 -50
  248. package/dist/packages/components/src/bubble/index.js +0 -18
  249. package/dist/packages/components/src/container/index.js +0 -9
  250. package/dist/packages/components/src/container/index.vue.js +0 -7
  251. package/dist/packages/components/src/container/index.vue2.js +0 -55
  252. package/dist/packages/components/src/conversations/index.js +0 -9
  253. package/dist/packages/components/src/conversations/index.vue.js +0 -9
  254. package/dist/packages/components/src/feedback/components/SourceList.vue.js +0 -7
  255. package/dist/packages/components/src/feedback/components/SourceList.vue2.js +0 -52
  256. package/dist/packages/components/src/feedback/index.js +0 -9
  257. package/dist/packages/components/src/feedback/index.vue.js +0 -7
  258. package/dist/packages/components/src/feedback/index.vue2.js +0 -143
  259. package/dist/packages/components/src/history/components/item-tag.vue.js +0 -7
  260. package/dist/packages/components/src/history/components/item-tag.vue2.js +0 -21
  261. package/dist/packages/components/src/history/components/search-empty.vue.js +0 -7
  262. package/dist/packages/components/src/history/components/search-empty.vue2.js +0 -20
  263. package/dist/packages/components/src/history/composables/useEditItemTitle.js +0 -43
  264. package/dist/packages/components/src/history/index.js +0 -11
  265. package/dist/packages/components/src/history/index.vue.js +0 -7
  266. package/dist/packages/components/src/history/index.vue2.js +0 -130
  267. package/dist/packages/components/src/icon-button/index.js +0 -9
  268. package/dist/packages/components/src/icon-button/index.vue.js +0 -7
  269. package/dist/packages/components/src/icon-button/index.vue2.js +0 -22
  270. package/dist/packages/components/src/prompts/index.js +0 -18
  271. package/dist/packages/components/src/prompts/prompt.vue.js +0 -7
  272. package/dist/packages/components/src/prompts/prompt.vue2.js +0 -39
  273. package/dist/packages/components/src/prompts/prompts.vue.js +0 -7
  274. package/dist/packages/components/src/prompts/prompts.vue2.js +0 -36
  275. package/dist/packages/components/src/question/components/CommonQuestions.vue.js +0 -89
  276. package/dist/packages/components/src/question/components/CommonQuestions.vue2.js +0 -4
  277. package/dist/packages/components/src/question/components/HotQuestions.vue.js +0 -140
  278. package/dist/packages/components/src/question/components/HotQuestions.vue2.js +0 -4
  279. package/dist/packages/components/src/question/composables/useQuestions.js +0 -48
  280. package/dist/packages/components/src/question/index.js +0 -9
  281. package/dist/packages/components/src/question/index.vue.js +0 -113
  282. package/dist/packages/components/src/question/index.vue2.js +0 -4
  283. package/dist/packages/components/src/sender/components/ActionButtons.vue.js +0 -143
  284. package/dist/packages/components/src/sender/components/ActionButtons.vue2.js +0 -4
  285. package/dist/packages/components/src/sender/components/TemplateEditor.vue.js +0 -7
  286. package/dist/packages/components/src/sender/components/TemplateEditor.vue2.js +0 -175
  287. package/dist/packages/components/src/sender/composables/useInputHandler.js +0 -38
  288. package/dist/packages/components/src/sender/composables/useKeyboardHandler.js +0 -31
  289. package/dist/packages/components/src/sender/composables/useSpeechHandler.js +0 -67
  290. package/dist/packages/components/src/sender/index.js +0 -9
  291. package/dist/packages/components/src/sender/index.vue.js +0 -255
  292. package/dist/packages/components/src/sender/index.vue2.js +0 -4
  293. package/dist/packages/components/src/suggestion/components/CategoryNav.vue.js +0 -38
  294. package/dist/packages/components/src/suggestion/components/CategoryNav.vue2.js +0 -4
  295. package/dist/packages/components/src/suggestion/components/SuggestionCapsule.vue.js +0 -107
  296. package/dist/packages/components/src/suggestion/components/SuggestionCapsule.vue2.js +0 -4
  297. package/dist/packages/components/src/suggestion/components/SuggestionPanel.vue.js +0 -123
  298. package/dist/packages/components/src/suggestion/components/SuggestionPanel.vue2.js +0 -4
  299. package/dist/packages/components/src/suggestion/composables/useKeyboardNavigation.js +0 -45
  300. package/dist/packages/components/src/suggestion/composables/useTriggerDetection.js +0 -17
  301. package/dist/packages/components/src/suggestion/index.js +0 -9
  302. package/dist/packages/components/src/suggestion/index.vue.js +0 -179
  303. package/dist/packages/components/src/suggestion/index.vue2.js +0 -4
  304. package/dist/packages/components/src/suggestion/utils/dom.js +0 -18
  305. package/dist/packages/components/src/welcome/index.js +0 -9
  306. package/dist/packages/components/src/welcome/index.vue.js +0 -7
  307. package/dist/packages/components/src/welcome/index.vue2.js +0 -32
  308. package/dist/prompts/index.d.ts +0 -12
  309. package/dist/prompts/index.type.d.ts +0 -55
  310. package/dist/prompts/prompt.vue.d.ts +0 -3
  311. package/dist/prompts/prompts.vue.d.ts +0 -20
  312. package/dist/question/components/CommonQuestions.vue.d.ts +0 -32
  313. package/dist/question/components/HotQuestions.vue.d.ts +0 -89
  314. package/dist/question/composables/useQuestions.d.ts +0 -17
  315. package/dist/question/index.d.ts +0 -7
  316. package/dist/question/index.type.d.ts +0 -74
  317. package/dist/question/index.vue.d.ts +0 -46
  318. package/dist/sender/components/ActionButtons.vue.d.ts +0 -25
  319. package/dist/sender/components/TemplateEditor.vue.d.ts +0 -18
  320. package/dist/sender/composables/useInputHandler.d.ts +0 -17
  321. package/dist/sender/composables/useKeyboardHandler.d.ts +0 -18
  322. package/dist/sender/composables/useSpeechHandler.d.ts +0 -8
  323. package/dist/sender/index.d.ts +0 -7
  324. package/dist/sender/index.type.d.ts +0 -137
  325. package/dist/sender/index.vue.d.ts +0 -1012
  326. package/dist/suggestion/components/CategoryNav.vue.d.ts +0 -45
  327. package/dist/suggestion/components/SuggestionCapsule.vue.d.ts +0 -32
  328. package/dist/suggestion/components/SuggestionPanel.vue.d.ts +0 -84
  329. package/dist/suggestion/composables/useKeyboardNavigation.d.ts +0 -18
  330. package/dist/suggestion/composables/useSuggestionFilter.d.ts +0 -10
  331. package/dist/suggestion/composables/useTriggerDetection.d.ts +0 -11
  332. package/dist/suggestion/index.d.ts +0 -7
  333. package/dist/suggestion/index.type.d.ts +0 -94
  334. package/dist/suggestion/index.vue.d.ts +0 -343
  335. package/dist/suggestion/utils/dom.d.ts +0 -20
  336. package/dist/welcome/index.d.ts +0 -7
  337. package/dist/welcome/index.type.d.ts +0 -10
  338. package/dist/welcome/index.vue.d.ts +0 -18
  339. package/src/action-group/ActionGroup.vue +0 -247
  340. package/src/action-group/ActionGroupItem.vue +0 -9
  341. package/src/action-group/index.ts +0 -25
  342. package/src/action-group/index.type.ts +0 -21
  343. package/src/assets/icons/accessory.svg +0 -12
  344. package/src/assets/icons/loading-speech.svg +0 -16
  345. package/src/assets/icons/loading.svg +0 -17
  346. package/src/assets/icons/send.svg +0 -21
  347. package/src/assets/icons/voice.svg +0 -22
  348. package/src/bubble/Bubble.vue +0 -153
  349. package/src/bubble/BubbleList.vue +0 -55
  350. package/src/bubble/index.ts +0 -23
  351. package/src/bubble/index.type.ts +0 -49
  352. package/src/container/index.ts +0 -12
  353. package/src/container/index.type.ts +0 -17
  354. package/src/container/index.vue +0 -109
  355. package/src/conversations/index.ts +0 -12
  356. package/src/conversations/index.vue +0 -3
  357. package/src/feedback/components/SourceList.vue +0 -112
  358. package/src/feedback/components/index.ts +0 -1
  359. package/src/feedback/index.ts +0 -12
  360. package/src/feedback/index.type.ts +0 -27
  361. package/src/feedback/index.vue +0 -166
  362. package/src/history/components/index.ts +0 -2
  363. package/src/history/components/item-tag.vue +0 -49
  364. package/src/history/components/search-empty.vue +0 -38
  365. package/src/history/composables/index.ts +0 -1
  366. package/src/history/composables/useEditItemTitle.ts +0 -75
  367. package/src/history/index.ts +0 -12
  368. package/src/history/index.type.ts +0 -50
  369. package/src/history/index.vue +0 -292
  370. package/src/icon-button/index.ts +0 -12
  371. package/src/icon-button/index.type.ts +0 -7
  372. package/src/icon-button/index.vue +0 -58
  373. package/src/index.ts +0 -76
  374. package/src/prompts/index.ts +0 -25
  375. package/src/prompts/index.type.ts +0 -59
  376. package/src/prompts/prompt.vue +0 -101
  377. package/src/prompts/prompts.vue +0 -50
  378. package/src/question/components/CommonQuestions.vue +0 -146
  379. package/src/question/components/HotQuestions.vue +0 -148
  380. package/src/question/composables/useQuestions.ts +0 -106
  381. package/src/question/index.less +0 -447
  382. package/src/question/index.ts +0 -12
  383. package/src/question/index.type.ts +0 -86
  384. package/src/question/index.vue +0 -140
  385. package/src/question/vars.less +0 -135
  386. package/src/sender/components/ActionButtons.vue +0 -168
  387. package/src/sender/components/TemplateEditor.vue +0 -465
  388. package/src/sender/composables/useInputHandler.ts +0 -74
  389. package/src/sender/composables/useKeyboardHandler.ts +0 -101
  390. package/src/sender/composables/useSpeechHandler.ts +0 -122
  391. package/src/sender/index.less +0 -352
  392. package/src/sender/index.ts +0 -12
  393. package/src/sender/index.type.ts +0 -162
  394. package/src/sender/index.vue +0 -338
  395. package/src/sender/vars.less +0 -84
  396. package/src/suggestion/components/CategoryNav.vue +0 -38
  397. package/src/suggestion/components/SuggestionCapsule.vue +0 -183
  398. package/src/suggestion/components/SuggestionPanel.vue +0 -147
  399. package/src/suggestion/composables/useKeyboardNavigation.ts +0 -101
  400. package/src/suggestion/composables/useSuggestionFilter.ts +0 -34
  401. package/src/suggestion/composables/useTriggerDetection.ts +0 -46
  402. package/src/suggestion/index.less +0 -497
  403. package/src/suggestion/index.ts +0 -12
  404. package/src/suggestion/index.type.ts +0 -101
  405. package/src/suggestion/index.vue +0 -338
  406. package/src/suggestion/utils/dom.ts +0 -66
  407. package/src/suggestion/vars.less +0 -141
  408. package/src/vite-env.d.ts +0 -1
  409. package/src/welcome/index.ts +0 -12
  410. package/src/welcome/index.type.ts +0 -12
  411. package/src/welcome/index.vue +0 -69
  412. package/tsconfig.json +0 -37
  413. package/tsconfig.node.json +0 -10
  414. package/vite.config.ts +0 -53
@@ -1,310 +0,0 @@
1
- import { noop as I, useThrottleFn as J, tryOnMounted as G, isClient as K, toArray as k, watchImmediate as U, tryOnScopeDispose as Z, useDebounceFn as q, isObject as ee, isIOS as te, pxValue as B, injectLocal as oe } from "../../../../@vueuse_shared@13.1.0_vue@3.5.13/node_modules/@vueuse/shared/index.js";
2
- import { createFilterWrapper as ye, debounceFilter as Te, getLifeCycleTarget as we, throttleFilter as Me } from "../../../../@vueuse_shared@13.1.0_vue@3.5.13/node_modules/@vueuse/shared/index.js";
3
- import { shallowRef as w, computed as H, toValue as p, reactive as Y, unref as ne, watch as le, watchEffect as re, hasInjectionContext as ie, getCurrentInstance as se, onMounted as ue } from "vue";
4
- const P = K ? window : void 0;
5
- function V(t) {
6
- var n;
7
- const c = p(t);
8
- return (n = c == null ? void 0 : c.$el) != null ? n : c;
9
- }
10
- function T(...t) {
11
- const n = [], c = () => {
12
- n.forEach((l) => l()), n.length = 0;
13
- }, a = (l, r, i, d) => (l.addEventListener(r, i, d), () => l.removeEventListener(r, i, d)), g = H(() => {
14
- const l = k(p(t[0])).filter((r) => r != null);
15
- return l.every((r) => typeof r != "string") ? l : void 0;
16
- }), y = U(
17
- () => {
18
- var l, r;
19
- return [
20
- (r = (l = g.value) == null ? void 0 : l.map((i) => V(i))) != null ? r : [P].filter((i) => i != null),
21
- k(p(g.value ? t[1] : t[0])),
22
- k(ne(g.value ? t[2] : t[1])),
23
- // @ts-expect-error - TypeScript gets the correct types, but somehow still complains
24
- p(g.value ? t[3] : t[2])
25
- ];
26
- },
27
- ([l, r, i, d]) => {
28
- if (c(), !(l != null && l.length) || !(r != null && r.length) || !(i != null && i.length))
29
- return;
30
- const v = ee(d) ? { ...d } : d;
31
- n.push(
32
- ...l.flatMap(
33
- (m) => r.flatMap(
34
- (h) => i.map((b) => a(m, h, b, v))
35
- )
36
- )
37
- );
38
- },
39
- { flush: "post" }
40
- ), f = () => {
41
- y(), c();
42
- };
43
- return Z(c), f;
44
- }
45
- let Q = !1;
46
- function pe(t, n, c = {}) {
47
- const { window: a = P, ignore: g = [], capture: y = !0, detectIframe: f = !1, controls: l = !1 } = c;
48
- if (!a)
49
- return l ? { stop: I, cancel: I, trigger: I } : I;
50
- if (te && !Q) {
51
- Q = !0;
52
- const e = { passive: !0 };
53
- Array.from(a.document.body.children).forEach((o) => T(o, "click", I, e)), T(a.document.documentElement, "click", I, e);
54
- }
55
- let r = !0;
56
- const i = (e) => p(g).some((o) => {
57
- if (typeof o == "string")
58
- return Array.from(a.document.querySelectorAll(o)).some((u) => u === e.target || e.composedPath().includes(u));
59
- {
60
- const u = V(o);
61
- return u && (e.target === u || e.composedPath().includes(u));
62
- }
63
- });
64
- function d(e) {
65
- const o = p(e);
66
- return o && o.$.subTree.shapeFlag === 16;
67
- }
68
- function v(e, o) {
69
- const u = p(e), L = u.$.subTree && u.$.subTree.children;
70
- return L == null || !Array.isArray(L) ? !1 : L.some((C) => C.el === o.target || o.composedPath().includes(C.el));
71
- }
72
- const m = (e) => {
73
- const o = V(t);
74
- if (e.target != null && !(!(o instanceof Element) && d(t) && v(t, e)) && !(!o || o === e.target || e.composedPath().includes(o))) {
75
- if ("detail" in e && e.detail === 0 && (r = !i(e)), !r) {
76
- r = !0;
77
- return;
78
- }
79
- n(e);
80
- }
81
- };
82
- let h = !1;
83
- const b = [
84
- T(a, "click", (e) => {
85
- h || (h = !0, setTimeout(() => {
86
- h = !1;
87
- }, 0), m(e));
88
- }, { passive: !0, capture: y }),
89
- T(a, "pointerdown", (e) => {
90
- const o = V(t);
91
- r = !i(e) && !!(o && !e.composedPath().includes(o));
92
- }, { passive: !0 }),
93
- f && T(a, "blur", (e) => {
94
- setTimeout(() => {
95
- var o;
96
- const u = V(t);
97
- ((o = a.document.activeElement) == null ? void 0 : o.tagName) === "IFRAME" && !(u != null && u.contains(a.document.activeElement)) && n(e);
98
- }, 0);
99
- }, { passive: !0 })
100
- ].filter(Boolean), _ = () => b.forEach((e) => e());
101
- return l ? {
102
- stop: _,
103
- cancel: () => {
104
- r = !1;
105
- },
106
- trigger: (e) => {
107
- r = !0, m(e), r = !1;
108
- }
109
- } : _;
110
- }
111
- function ce() {
112
- const t = w(!1), n = se();
113
- return n && ue(() => {
114
- t.value = !0;
115
- }, n), t;
116
- }
117
- function ae(t) {
118
- const n = ce();
119
- return H(() => (n.value, !!t()));
120
- }
121
- const de = Symbol("vueuse-ssr-width");
122
- function fe() {
123
- const t = ie() ? oe(de, null) : null;
124
- return typeof t == "number" ? t : void 0;
125
- }
126
- function me(t, n = {}) {
127
- const { window: c = P, ssrWidth: a = fe() } = n, g = ae(() => c && "matchMedia" in c && typeof c.matchMedia == "function"), y = w(typeof a == "number"), f = w(), l = w(!1), r = (i) => {
128
- l.value = i.matches;
129
- };
130
- return re(() => {
131
- if (y.value) {
132
- y.value = !g.value;
133
- const i = p(t).split(",");
134
- l.value = i.some((d) => {
135
- const v = d.includes("not all"), m = d.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), h = d.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);
136
- let b = !!(m || h);
137
- return m && b && (b = a >= B(m[1])), h && b && (b = a <= B(h[1])), v ? !b : b;
138
- });
139
- return;
140
- }
141
- g.value && (f.value = c.matchMedia(p(t)), l.value = f.value.matches);
142
- }), T(f, "change", r, { passive: !0 }), H(() => l.value);
143
- }
144
- const X = 1;
145
- function be(t, n = {}) {
146
- const {
147
- throttle: c = 0,
148
- idle: a = 200,
149
- onStop: g = I,
150
- onScroll: y = I,
151
- offset: f = {
152
- left: 0,
153
- right: 0,
154
- top: 0,
155
- bottom: 0
156
- },
157
- eventListenerOptions: l = {
158
- capture: !1,
159
- passive: !0
160
- },
161
- behavior: r = "auto",
162
- window: i = P,
163
- onError: d = (s) => {
164
- console.error(s);
165
- }
166
- } = n, v = w(0), m = w(0), h = H({
167
- get() {
168
- return v.value;
169
- },
170
- set(s) {
171
- _(s, void 0);
172
- }
173
- }), b = H({
174
- get() {
175
- return m.value;
176
- },
177
- set(s) {
178
- _(void 0, s);
179
- }
180
- });
181
- function _(s, W) {
182
- var E, x, A, F;
183
- if (!i)
184
- return;
185
- const S = p(t);
186
- if (!S)
187
- return;
188
- (A = S instanceof Document ? i.document.body : S) == null || A.scrollTo({
189
- top: (E = p(W)) != null ? E : b.value,
190
- left: (x = p(s)) != null ? x : h.value,
191
- behavior: p(r)
192
- });
193
- const M = ((F = S == null ? void 0 : S.document) == null ? void 0 : F.documentElement) || (S == null ? void 0 : S.documentElement) || S;
194
- h != null && (v.value = M.scrollLeft), b != null && (m.value = M.scrollTop);
195
- }
196
- const e = w(!1), o = Y({
197
- left: !0,
198
- right: !1,
199
- top: !0,
200
- bottom: !1
201
- }), u = Y({
202
- left: !1,
203
- right: !1,
204
- top: !1,
205
- bottom: !1
206
- }), L = (s) => {
207
- e.value && (e.value = !1, u.left = !1, u.right = !1, u.top = !1, u.bottom = !1, g(s));
208
- }, C = q(L, c + a), R = (s) => {
209
- var W;
210
- if (!i)
211
- return;
212
- const E = ((W = s == null ? void 0 : s.document) == null ? void 0 : W.documentElement) || (s == null ? void 0 : s.documentElement) || V(s), { display: x, flexDirection: A, direction: F } = getComputedStyle(E), S = F === "rtl" ? -1 : 1, M = E.scrollLeft;
213
- u.left = M < v.value, u.right = M > v.value;
214
- const N = Math.abs(M * S) <= (f.left || 0), z = Math.abs(M * S) + E.clientWidth >= E.scrollWidth - (f.right || 0) - X;
215
- x === "flex" && A === "row-reverse" ? (o.left = z, o.right = N) : (o.left = N, o.right = z), v.value = M;
216
- let O = E.scrollTop;
217
- s === i.document && !O && (O = i.document.body.scrollTop), u.top = O < m.value, u.bottom = O > m.value;
218
- const $ = Math.abs(O) <= (f.top || 0), j = Math.abs(O) + E.clientHeight >= E.scrollHeight - (f.bottom || 0) - X;
219
- x === "flex" && A === "column-reverse" ? (o.top = j, o.bottom = $) : (o.top = $, o.bottom = j), m.value = O;
220
- }, D = (s) => {
221
- var W;
222
- if (!i)
223
- return;
224
- const E = (W = s.target.documentElement) != null ? W : s.target;
225
- R(E), e.value = !0, C(s), y(s);
226
- };
227
- return T(
228
- t,
229
- "scroll",
230
- c ? J(D, c, !0, !1) : D,
231
- l
232
- ), G(() => {
233
- try {
234
- const s = p(t);
235
- if (!s)
236
- return;
237
- R(s);
238
- } catch (s) {
239
- d(s);
240
- }
241
- }), T(
242
- t,
243
- "scrollend",
244
- L,
245
- l
246
- ), {
247
- x: h,
248
- y: b,
249
- isScrolling: e,
250
- arrivedState: o,
251
- directions: u,
252
- measure() {
253
- const s = p(t);
254
- i && s && R(s);
255
- }
256
- };
257
- }
258
- function ge(t = {}) {
259
- const {
260
- window: n = P,
261
- initialWidth: c = Number.POSITIVE_INFINITY,
262
- initialHeight: a = Number.POSITIVE_INFINITY,
263
- listenOrientation: g = !0,
264
- includeScrollbar: y = !0,
265
- type: f = "inner"
266
- } = t, l = w(c), r = w(a), i = () => {
267
- if (n)
268
- if (f === "outer")
269
- l.value = n.outerWidth, r.value = n.outerHeight;
270
- else if (f === "visual" && n.visualViewport) {
271
- const { width: v, height: m, scale: h } = n.visualViewport;
272
- l.value = Math.round(v * h), r.value = Math.round(m * h);
273
- } else y ? (l.value = n.innerWidth, r.value = n.innerHeight) : (l.value = n.document.documentElement.clientWidth, r.value = n.document.documentElement.clientHeight);
274
- };
275
- i(), G(i);
276
- const d = { passive: !0 };
277
- if (T("resize", i, d), n && f === "visual" && n.visualViewport && T(n.visualViewport, "resize", i, d), g) {
278
- const v = me("(orientation: portrait)");
279
- le(v, () => i());
280
- }
281
- return { width: l, height: r };
282
- }
283
- export {
284
- ye as createFilterWrapper,
285
- Te as debounceFilter,
286
- P as defaultWindow,
287
- we as getLifeCycleTarget,
288
- oe as injectLocal,
289
- K as isClient,
290
- te as isIOS,
291
- ee as isObject,
292
- I as noop,
293
- pe as onClickOutside,
294
- B as pxValue,
295
- Me as throttleFilter,
296
- k as toArray,
297
- G as tryOnMounted,
298
- Z as tryOnScopeDispose,
299
- V as unrefElement,
300
- q as useDebounceFn,
301
- T as useEventListener,
302
- me as useMediaQuery,
303
- ce as useMounted,
304
- fe as useSSRWidth,
305
- be as useScroll,
306
- ae as useSupported,
307
- J as useThrottleFn,
308
- ge as useWindowSize,
309
- U as watchImmediate
310
- };
@@ -1,110 +0,0 @@
1
- import { onMounted as S, nextTick as x, watch as O, getCurrentScope as P, onScopeDispose as D, isRef as A, getCurrentInstance as j, toValue as g, hasInjectionContext as C, inject as F } from "vue";
2
- function V(e) {
3
- return P() ? (D(e), !0) : !1;
4
- }
5
- const h = /* @__PURE__ */ new WeakMap(), E = (...e) => {
6
- var o;
7
- const n = e[0], t = (o = j()) == null ? void 0 : o.proxy;
8
- if (t == null && !C())
9
- throw new Error("injectLocal must be called in setup");
10
- return t && h.has(t) && n in h.get(t) ? h.get(t)[n] : F(...e);
11
- }, I = typeof window < "u" && typeof document < "u";
12
- typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
13
- const M = Object.prototype.toString, G = (e) => M.call(e) === "[object Object]", m = () => {
14
- }, N = /* @__PURE__ */ W();
15
- function W() {
16
- var e, o;
17
- return I && ((e = window == null ? void 0 : window.navigator) == null ? void 0 : e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((o = window == null ? void 0 : window.navigator) == null ? void 0 : o.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window == null ? void 0 : window.navigator.userAgent));
18
- }
19
- function T(e, o) {
20
- function n(...t) {
21
- return new Promise((r, i) => {
22
- Promise.resolve(e(() => o.apply(this, t), { fn: o, thisArg: this, args: t })).then(r).catch(i);
23
- });
24
- }
25
- return n;
26
- }
27
- function k(e, o = {}) {
28
- let n, t, r = m;
29
- const i = (l) => {
30
- clearTimeout(l), r(), r = m;
31
- };
32
- let a;
33
- return (l) => {
34
- const c = g(e), u = g(o.maxWait);
35
- return n && i(n), c <= 0 || u !== void 0 && u <= 0 ? (t && (i(t), t = null), Promise.resolve(l())) : new Promise((f, w) => {
36
- r = o.rejectOnCancel ? w : f, a = l, u && !t && (t = setTimeout(() => {
37
- n && i(n), t = null, f(a());
38
- }, u)), n = setTimeout(() => {
39
- t && i(t), t = null, f(l());
40
- }, c);
41
- });
42
- };
43
- }
44
- function L(...e) {
45
- let o = 0, n, t = !0, r = m, i, a, s, l, c;
46
- !A(e[0]) && typeof e[0] == "object" ? { delay: a, trailing: s = !0, leading: l = !0, rejectOnCancel: c = !1 } = e[0] : [a, s = !0, l = !0, c = !1] = e;
47
- const u = () => {
48
- n && (clearTimeout(n), n = void 0, r(), r = m);
49
- };
50
- return (w) => {
51
- const d = g(a), y = Date.now() - o, p = () => i = w();
52
- return u(), d <= 0 ? (o = Date.now(), p()) : (y > d && (l || !t) ? (o = Date.now(), p()) : s && (i = new Promise((b, v) => {
53
- r = c ? v : b, n = setTimeout(() => {
54
- o = Date.now(), t = !0, b(p()), u();
55
- }, Math.max(0, d - y));
56
- })), !l && !n && (n = setTimeout(() => t = !0, d)), t = !1, i);
57
- };
58
- }
59
- function q(e) {
60
- return e.endsWith("rem") ? Number.parseFloat(e) * 16 : Number.parseFloat(e);
61
- }
62
- function z(e) {
63
- return Array.isArray(e) ? e : [e];
64
- }
65
- function _(e) {
66
- return j();
67
- }
68
- function B(e, o = 200, n = {}) {
69
- return T(
70
- k(o, n),
71
- e
72
- );
73
- }
74
- function H(e, o = 200, n = !1, t = !0, r = !1) {
75
- return T(
76
- L(o, n, t, r),
77
- e
78
- );
79
- }
80
- function J(e, o = !0, n) {
81
- _() ? S(e, n) : o ? e() : x(e);
82
- }
83
- function K(e, o, n) {
84
- return O(
85
- e,
86
- o,
87
- {
88
- ...n,
89
- immediate: !0
90
- }
91
- );
92
- }
93
- export {
94
- T as createFilterWrapper,
95
- k as debounceFilter,
96
- _ as getLifeCycleTarget,
97
- E as injectLocal,
98
- I as isClient,
99
- N as isIOS,
100
- G as isObject,
101
- m as noop,
102
- q as pxValue,
103
- L as throttleFilter,
104
- z as toArray,
105
- J as tryOnMounted,
106
- V as tryOnScopeDispose,
107
- B as useDebounceFn,
108
- H as useThrottleFn,
109
- K as watchImmediate
110
- };
@@ -1,277 +0,0 @@
1
- import L from "./generated/decode-data-html.js";
2
- import R from "./generated/decode-data-xml.js";
3
- import { fromCodePoint as _, replaceCodePoint as A } from "./decode_codepoint.js";
4
- var c;
5
- (function(t) {
6
- t[t.NUM = 35] = "NUM", t[t.SEMI = 59] = "SEMI", t[t.EQUALS = 61] = "EQUALS", t[t.ZERO = 48] = "ZERO", t[t.NINE = 57] = "NINE", t[t.LOWER_A = 97] = "LOWER_A", t[t.LOWER_F = 102] = "LOWER_F", t[t.LOWER_X = 120] = "LOWER_X", t[t.LOWER_Z = 122] = "LOWER_Z", t[t.UPPER_A = 65] = "UPPER_A", t[t.UPPER_F = 70] = "UPPER_F", t[t.UPPER_Z = 90] = "UPPER_Z";
7
- })(c || (c = {}));
8
- const x = 32;
9
- var N;
10
- (function(t) {
11
- t[t.VALUE_LENGTH = 49152] = "VALUE_LENGTH", t[t.BRANCH_LENGTH = 16256] = "BRANCH_LENGTH", t[t.JUMP_TABLE = 127] = "JUMP_TABLE";
12
- })(N || (N = {}));
13
- function d(t) {
14
- return t >= c.ZERO && t <= c.NINE;
15
- }
16
- function P(t) {
17
- return t >= c.UPPER_A && t <= c.UPPER_F || t >= c.LOWER_A && t <= c.LOWER_F;
18
- }
19
- function I(t) {
20
- return t >= c.UPPER_A && t <= c.UPPER_Z || t >= c.LOWER_A && t <= c.LOWER_Z || d(t);
21
- }
22
- function U(t) {
23
- return t === c.EQUALS || I(t);
24
- }
25
- var s;
26
- (function(t) {
27
- t[t.EntityStart = 0] = "EntityStart", t[t.NumericStart = 1] = "NumericStart", t[t.NumericDecimal = 2] = "NumericDecimal", t[t.NumericHex = 3] = "NumericHex", t[t.NamedEntity = 4] = "NamedEntity";
28
- })(s || (s = {}));
29
- var E;
30
- (function(t) {
31
- t[t.Legacy = 0] = "Legacy", t[t.Strict = 1] = "Strict", t[t.Attribute = 2] = "Attribute";
32
- })(E || (E = {}));
33
- class y {
34
- constructor(e, i, r) {
35
- this.decodeTree = e, this.emitCodePoint = i, this.errors = r, this.state = s.EntityStart, this.consumed = 1, this.result = 0, this.treeIndex = 0, this.excess = 1, this.decodeMode = E.Strict;
36
- }
37
- /** Resets the instance to make it reusable. */
38
- startEntity(e) {
39
- this.decodeMode = e, this.state = s.EntityStart, this.result = 0, this.treeIndex = 0, this.excess = 1, this.consumed = 1;
40
- }
41
- /**
42
- * Write an entity to the decoder. This can be called multiple times with partial entities.
43
- * If the entity is incomplete, the decoder will return -1.
44
- *
45
- * Mirrors the implementation of `getDecoder`, but with the ability to stop decoding if the
46
- * entity is incomplete, and resume when the next string is written.
47
- *
48
- * @param string The string containing the entity (or a continuation of the entity).
49
- * @param offset The offset at which the entity begins. Should be 0 if this is not the first call.
50
- * @returns The number of characters that were consumed, or -1 if the entity is incomplete.
51
- */
52
- write(e, i) {
53
- switch (this.state) {
54
- case s.EntityStart:
55
- return e.charCodeAt(i) === c.NUM ? (this.state = s.NumericStart, this.consumed += 1, this.stateNumericStart(e, i + 1)) : (this.state = s.NamedEntity, this.stateNamedEntity(e, i));
56
- case s.NumericStart:
57
- return this.stateNumericStart(e, i);
58
- case s.NumericDecimal:
59
- return this.stateNumericDecimal(e, i);
60
- case s.NumericHex:
61
- return this.stateNumericHex(e, i);
62
- case s.NamedEntity:
63
- return this.stateNamedEntity(e, i);
64
- }
65
- }
66
- /**
67
- * Switches between the numeric decimal and hexadecimal states.
68
- *
69
- * Equivalent to the `Numeric character reference state` in the HTML spec.
70
- *
71
- * @param str The string containing the entity (or a continuation of the entity).
72
- * @param offset The current offset.
73
- * @returns The number of characters that were consumed, or -1 if the entity is incomplete.
74
- */
75
- stateNumericStart(e, i) {
76
- return i >= e.length ? -1 : (e.charCodeAt(i) | x) === c.LOWER_X ? (this.state = s.NumericHex, this.consumed += 1, this.stateNumericHex(e, i + 1)) : (this.state = s.NumericDecimal, this.stateNumericDecimal(e, i));
77
- }
78
- addToNumericResult(e, i, r, n) {
79
- if (i !== r) {
80
- const u = r - i;
81
- this.result = this.result * Math.pow(n, u) + parseInt(e.substr(i, u), n), this.consumed += u;
82
- }
83
- }
84
- /**
85
- * Parses a hexadecimal numeric entity.
86
- *
87
- * Equivalent to the `Hexademical character reference state` in the HTML spec.
88
- *
89
- * @param str The string containing the entity (or a continuation of the entity).
90
- * @param offset The current offset.
91
- * @returns The number of characters that were consumed, or -1 if the entity is incomplete.
92
- */
93
- stateNumericHex(e, i) {
94
- const r = i;
95
- for (; i < e.length; ) {
96
- const n = e.charCodeAt(i);
97
- if (d(n) || P(n))
98
- i += 1;
99
- else
100
- return this.addToNumericResult(e, r, i, 16), this.emitNumericEntity(n, 3);
101
- }
102
- return this.addToNumericResult(e, r, i, 16), -1;
103
- }
104
- /**
105
- * Parses a decimal numeric entity.
106
- *
107
- * Equivalent to the `Decimal character reference state` in the HTML spec.
108
- *
109
- * @param str The string containing the entity (or a continuation of the entity).
110
- * @param offset The current offset.
111
- * @returns The number of characters that were consumed, or -1 if the entity is incomplete.
112
- */
113
- stateNumericDecimal(e, i) {
114
- const r = i;
115
- for (; i < e.length; ) {
116
- const n = e.charCodeAt(i);
117
- if (d(n))
118
- i += 1;
119
- else
120
- return this.addToNumericResult(e, r, i, 10), this.emitNumericEntity(n, 2);
121
- }
122
- return this.addToNumericResult(e, r, i, 10), -1;
123
- }
124
- /**
125
- * Validate and emit a numeric entity.
126
- *
127
- * Implements the logic from the `Hexademical character reference start
128
- * state` and `Numeric character reference end state` in the HTML spec.
129
- *
130
- * @param lastCp The last code point of the entity. Used to see if the
131
- * entity was terminated with a semicolon.
132
- * @param expectedLength The minimum number of characters that should be
133
- * consumed. Used to validate that at least one digit
134
- * was consumed.
135
- * @returns The number of characters that were consumed.
136
- */
137
- emitNumericEntity(e, i) {
138
- var r;
139
- if (this.consumed <= i)
140
- return (r = this.errors) === null || r === void 0 || r.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
141
- if (e === c.SEMI)
142
- this.consumed += 1;
143
- else if (this.decodeMode === E.Strict)
144
- return 0;
145
- return this.emitCodePoint(A(this.result), this.consumed), this.errors && (e !== c.SEMI && this.errors.missingSemicolonAfterCharacterReference(), this.errors.validateNumericCharacterReference(this.result)), this.consumed;
146
- }
147
- /**
148
- * Parses a named entity.
149
- *
150
- * Equivalent to the `Named character reference state` in the HTML spec.
151
- *
152
- * @param str The string containing the entity (or a continuation of the entity).
153
- * @param offset The current offset.
154
- * @returns The number of characters that were consumed, or -1 if the entity is incomplete.
155
- */
156
- stateNamedEntity(e, i) {
157
- const { decodeTree: r } = this;
158
- let n = r[this.treeIndex], u = (n & N.VALUE_LENGTH) >> 14;
159
- for (; i < e.length; i++, this.excess++) {
160
- const m = e.charCodeAt(i);
161
- if (this.treeIndex = T(r, n, this.treeIndex + Math.max(1, u), m), this.treeIndex < 0)
162
- return this.result === 0 || // If we are parsing an attribute
163
- this.decodeMode === E.Attribute && // We shouldn't have consumed any characters after the entity,
164
- (u === 0 || // And there should be no invalid characters.
165
- U(m)) ? 0 : this.emitNotTerminatedNamedEntity();
166
- if (n = r[this.treeIndex], u = (n & N.VALUE_LENGTH) >> 14, u !== 0) {
167
- if (m === c.SEMI)
168
- return this.emitNamedEntityData(this.treeIndex, u, this.consumed + this.excess);
169
- this.decodeMode !== E.Strict && (this.result = this.treeIndex, this.consumed += this.excess, this.excess = 0);
170
- }
171
- }
172
- return -1;
173
- }
174
- /**
175
- * Emit a named entity that was not terminated with a semicolon.
176
- *
177
- * @returns The number of characters consumed.
178
- */
179
- emitNotTerminatedNamedEntity() {
180
- var e;
181
- const { result: i, decodeTree: r } = this, n = (r[i] & N.VALUE_LENGTH) >> 14;
182
- return this.emitNamedEntityData(i, n, this.consumed), (e = this.errors) === null || e === void 0 || e.missingSemicolonAfterCharacterReference(), this.consumed;
183
- }
184
- /**
185
- * Emit a named entity.
186
- *
187
- * @param result The index of the entity in the decode tree.
188
- * @param valueLength The number of bytes in the entity.
189
- * @param consumed The number of characters consumed.
190
- *
191
- * @returns The number of characters consumed.
192
- */
193
- emitNamedEntityData(e, i, r) {
194
- const { decodeTree: n } = this;
195
- return this.emitCodePoint(i === 1 ? n[e] & ~N.VALUE_LENGTH : n[e + 1], r), i === 3 && this.emitCodePoint(n[e + 2], r), r;
196
- }
197
- /**
198
- * Signal to the parser that the end of the input was reached.
199
- *
200
- * Remaining data will be emitted and relevant errors will be produced.
201
- *
202
- * @returns The number of characters consumed.
203
- */
204
- end() {
205
- var e;
206
- switch (this.state) {
207
- case s.NamedEntity:
208
- return this.result !== 0 && (this.decodeMode !== E.Attribute || this.result === this.treeIndex) ? this.emitNotTerminatedNamedEntity() : 0;
209
- case s.NumericDecimal:
210
- return this.emitNumericEntity(0, 2);
211
- case s.NumericHex:
212
- return this.emitNumericEntity(0, 3);
213
- case s.NumericStart:
214
- return (e = this.errors) === null || e === void 0 || e.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
215
- case s.EntityStart:
216
- return 0;
217
- }
218
- }
219
- }
220
- function o(t) {
221
- let e = "";
222
- const i = new y(t, (r) => e += _(r));
223
- return function(n, u) {
224
- let m = 0, h = 0;
225
- for (; (h = n.indexOf("&", h)) >= 0; ) {
226
- e += n.slice(m, h), i.startEntity(u);
227
- const l = i.write(
228
- n,
229
- // Skip the "&"
230
- h + 1
231
- );
232
- if (l < 0) {
233
- m = h + i.end();
234
- break;
235
- }
236
- m = h + l, h = l === 0 ? m + 1 : m;
237
- }
238
- const a = e + n.slice(m);
239
- return e = "", a;
240
- };
241
- }
242
- function T(t, e, i, r) {
243
- const n = (e & N.BRANCH_LENGTH) >> 7, u = e & N.JUMP_TABLE;
244
- if (n === 0)
245
- return u !== 0 && r === u ? i : -1;
246
- if (u) {
247
- const a = r - u;
248
- return a < 0 || a >= n ? -1 : t[i + a] - 1;
249
- }
250
- let m = i, h = m + n - 1;
251
- for (; m <= h; ) {
252
- const a = m + h >>> 1, l = t[a];
253
- if (l < r)
254
- m = a + 1;
255
- else if (l > r)
256
- h = a - 1;
257
- else
258
- return t[a + n];
259
- }
260
- return -1;
261
- }
262
- const H = o(L);
263
- o(R);
264
- function M(t, e = E.Legacy) {
265
- return H(t, e);
266
- }
267
- export {
268
- N as BinTrieFlags,
269
- E as DecodingMode,
270
- y as EntityDecoder,
271
- M as decodeHTML,
272
- T as determineBranch,
273
- _ as fromCodePoint,
274
- L as htmlDecodeTree,
275
- A as replaceCodePoint,
276
- R as xmlDecodeTree
277
- };