@opentiny/tiny-robot 0.1.0-alpha.0 → 0.2.0-alpha.0

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 (244) hide show
  1. package/dist/{bubble-item → bubble}/components/actions/copy.vue.d.ts +3 -3
  2. package/dist/{bubble-item → bubble}/components/actions/refresh.vue.d.ts +1 -1
  3. package/dist/bubble/index.d.ts +12 -0
  4. package/dist/bubble/index.type.d.ts +53 -0
  5. package/dist/bubble/useScroll.d.ts +4 -0
  6. package/dist/container/index.d.ts +7 -0
  7. package/dist/container/index.type.d.ts +16 -0
  8. package/dist/container/index.vue.d.ts +26 -0
  9. package/dist/index.d.ts +10 -5
  10. package/dist/index.js +31 -20
  11. package/dist/node_modules/.pnpm/@opentiny_utils@1.0.0/node_modules/@opentiny/utils/dist/opentiny-utils.es.js +832 -0
  12. package/dist/node_modules/.pnpm/@opentiny_utils@3.22.0/node_modules/@opentiny/utils/dist/index.es.js +959 -1496
  13. package/dist/node_modules/.pnpm/{@opentiny_vue-button@3.22.0 → @opentiny_vue-button@3.21.0}/node_modules/@opentiny/vue-button/lib/index.js +21 -21
  14. package/dist/node_modules/.pnpm/{@opentiny_vue-button@3.22.0 → @opentiny_vue-button@3.21.0}/node_modules/@opentiny/vue-button/lib/pc.js +3 -3
  15. package/dist/node_modules/.pnpm/@opentiny_vue-common@3.21.0/node_modules/@opentiny/vue-common/lib/index.js +727 -0
  16. package/dist/node_modules/.pnpm/@opentiny_vue-common@3.22.0/node_modules/@opentiny/vue-common/lib/index.js +144 -675
  17. package/dist/node_modules/.pnpm/{@opentiny_vue-dialog-box@3.22.0 → @opentiny_vue-dialog-box@3.21.0}/node_modules/@opentiny/vue-dialog-box/lib/index.js +9 -9
  18. package/dist/node_modules/.pnpm/{@opentiny_vue-dialog-box@3.22.0 → @opentiny_vue-dialog-box@3.21.0}/node_modules/@opentiny/vue-dialog-box/lib/pc.js +5 -5
  19. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/close.js +29 -0
  20. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/eyeclose.js +1 -1
  21. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/eyeopen.js +1 -1
  22. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/finish.js +1 -1
  23. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/fullscreen.js +1 -1
  24. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/loading-shadow.js +21 -22
  25. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/minscreen.js +1 -1
  26. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-add-column-after.js +1 -1
  27. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-add-column-before.js +1 -1
  28. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-add-row-after.js +1 -1
  29. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-add-row-before.js +1 -1
  30. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-align-center.js +1 -1
  31. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-align-left.js +1 -1
  32. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-align-right.js +1 -1
  33. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-bold.js +1 -1
  34. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-code-block.js +1 -1
  35. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-code-view.js +1 -1
  36. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-color.js +1 -1
  37. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-delete-column.js +1 -1
  38. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-delete-row.js +1 -1
  39. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-delete-table.js +1 -1
  40. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-font-size.js +1 -1
  41. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-format-clear.js +1 -1
  42. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-h1.js +1 -1
  43. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-h2.js +1 -1
  44. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-h3.js +1 -1
  45. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-h4.js +1 -1
  46. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-h5.js +1 -1
  47. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-h6.js +1 -1
  48. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-heading.js +1 -1
  49. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-high-light.js +1 -1
  50. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-image.js +1 -1
  51. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-italic.js +1 -1
  52. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-line-height.js +1 -1
  53. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-link-unlink.js +1 -1
  54. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-link.js +1 -1
  55. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-list-ordered.js +1 -1
  56. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-list-unordered.js +1 -1
  57. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-merge-cells-vertical.js +1 -1
  58. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-merge-cells.js +1 -1
  59. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-node-delete.js +1 -1
  60. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-paragraph.js +1 -1
  61. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-quote-text.js +1 -1
  62. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-redo.js +1 -1
  63. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-split-cells-horizontal.js +1 -1
  64. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-split-cells-vertical.js +1 -1
  65. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-strike-through.js +1 -1
  66. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-subscript.js +1 -1
  67. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-superscript.js +1 -1
  68. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-table.js +1 -1
  69. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-task-list.js +1 -1
  70. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-underline.js +1 -1
  71. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-undo.js +1 -1
  72. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/sub-script.js +1 -1
  73. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/warn.js +1 -1
  74. package/dist/node_modules/.pnpm/{@opentiny_vue-input@3.22.0 → @opentiny_vue-input@3.21.0}/node_modules/@opentiny/vue-input/lib/index.js +3 -3
  75. package/dist/node_modules/.pnpm/{@opentiny_vue-input@3.22.0 → @opentiny_vue-input@3.21.0}/node_modules/@opentiny/vue-input/lib/pc.js +36 -36
  76. package/dist/node_modules/.pnpm/{@opentiny_vue-locale@3.22.0 → @opentiny_vue-locale@3.21.0}/node_modules/@opentiny/vue-locale/lib/index.js +63 -63
  77. package/dist/node_modules/.pnpm/{@opentiny_vue-renderless@3.22.0 → @opentiny_vue-renderless@3.21.2}/node_modules/@opentiny/vue-renderless/button/index.js +1 -1
  78. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/browser.js +36 -0
  79. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/clickoutside.js +47 -0
  80. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/debounce.js +7 -0
  81. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/dom.js +45 -0
  82. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/popper.js +320 -0
  83. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/popup-manager.js +118 -0
  84. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/throttle.js +23 -0
  85. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/useEventListener.js +9 -0
  86. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/useInstanceSlots.js +14 -0
  87. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/useRelation.js +54 -0
  88. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/vue-popper.js +84 -0
  89. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/vue-popup.js +73 -0
  90. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/event.js +13 -0
  91. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/function.js +5 -0
  92. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/index.js +11 -0
  93. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/object.js +84 -0
  94. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/string.js +28 -0
  95. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/type.js +28 -0
  96. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/dialog-box/index.js +136 -0
  97. package/dist/node_modules/.pnpm/{@opentiny_vue-renderless@3.22.0 → @opentiny_vue-renderless@3.21.2}/node_modules/@opentiny/vue-renderless/dialog-box/vue.js +33 -34
  98. package/dist/node_modules/.pnpm/{@opentiny_vue-renderless@3.22.0 → @opentiny_vue-renderless@3.21.2}/node_modules/@opentiny/vue-renderless/input/index.js +22 -22
  99. package/dist/node_modules/.pnpm/{@opentiny_vue-renderless@3.22.0 → @opentiny_vue-renderless@3.21.2}/node_modules/@opentiny/vue-renderless/input/vue.js +9 -9
  100. package/dist/node_modules/.pnpm/{@opentiny_vue-renderless@3.22.0 → @opentiny_vue-renderless@3.21.2}/node_modules/@opentiny/vue-renderless/tall-storage/index.js +1 -1
  101. package/dist/node_modules/.pnpm/{@opentiny_vue-renderless@3.22.0 → @opentiny_vue-renderless@3.21.2}/node_modules/@opentiny/vue-renderless/tall-storage/vue.js +5 -5
  102. package/dist/node_modules/.pnpm/{@opentiny_vue-renderless@3.22.0 → @opentiny_vue-renderless@3.21.2}/node_modules/@opentiny/vue-renderless/tooltip/index.js +41 -40
  103. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/tooltip/vue.js +90 -0
  104. package/dist/node_modules/.pnpm/{@opentiny_vue-tooltip@3.22.0 → @opentiny_vue-tooltip@3.21.0}/node_modules/@opentiny/vue-tooltip/lib/index.js +3 -6
  105. package/dist/node_modules/.pnpm/{@opentiny_vue-tooltip@3.22.0 → @opentiny_vue-tooltip@3.21.0}/node_modules/@opentiny/vue-tooltip/lib/pc.js +2 -2
  106. package/dist/packages/components/src/{bubble-list → bubble}/bubble-list.vue.js +2 -2
  107. package/dist/packages/components/src/bubble/bubble-list.vue2.js +37 -0
  108. package/dist/packages/components/src/bubble/bubble.vue.js +7 -0
  109. package/dist/packages/components/src/bubble/bubble.vue2.js +118 -0
  110. package/dist/packages/components/src/bubble/components/actions/copy.vue.js +7 -0
  111. package/dist/packages/components/src/bubble/components/actions/copy.vue2.js +35 -0
  112. package/dist/packages/components/src/bubble/components/actions/refresh.vue.js +7 -0
  113. package/dist/packages/components/src/bubble/components/actions/refresh.vue2.js +16 -0
  114. package/dist/packages/components/src/bubble/index.js +18 -0
  115. package/dist/packages/components/src/bubble/useScroll.js +13 -0
  116. package/dist/packages/components/src/container/index.js +9 -0
  117. package/dist/packages/components/src/container/index.vue.js +7 -0
  118. package/dist/packages/components/src/container/index.vue2.js +55 -0
  119. package/dist/packages/components/src/conversations/index.js +1 -1
  120. package/dist/packages/components/src/prompts/index.js +18 -0
  121. package/dist/packages/components/src/prompts/prompt.vue.js +7 -0
  122. package/dist/packages/components/src/prompts/prompt.vue2.js +37 -0
  123. package/dist/packages/components/src/prompts/prompts.vue.js +7 -0
  124. package/dist/packages/components/src/prompts/prompts.vue2.js +36 -0
  125. package/dist/packages/components/src/question/components/CommonQuestions.vue.js +89 -0
  126. package/dist/packages/components/src/question/components/CommonQuestions.vue2.js +4 -0
  127. package/dist/packages/components/src/question/components/HotQuestions.vue.js +140 -0
  128. package/dist/packages/components/src/question/components/HotQuestions.vue2.js +4 -0
  129. package/dist/packages/components/src/question/composables/useQuestions.js +48 -0
  130. package/dist/packages/components/src/question/index.js +9 -0
  131. package/dist/packages/components/src/question/index.vue.js +113 -0
  132. package/dist/packages/components/src/question/index.vue2.js +4 -0
  133. package/dist/packages/components/src/sender/components/ActionButtons.vue.js +105 -123
  134. package/dist/packages/components/src/sender/composables/useInputHandler.js +26 -22
  135. package/dist/packages/components/src/sender/composables/useKeyboardHandler.js +11 -11
  136. package/dist/packages/components/src/sender/composables/useSpeechHandler.js +9 -9
  137. package/dist/packages/components/src/sender/index.vue.js +67 -66
  138. package/dist/packages/components/src/welcome/index.vue.js +5 -7
  139. package/dist/packages/components/src/welcome/index.vue2.js +32 -0
  140. package/dist/packages/svgs/dist/tiny-robot-svgs.js +223 -0
  141. package/dist/prompts/index.d.ts +12 -0
  142. package/dist/prompts/index.type.d.ts +55 -0
  143. package/dist/prompts/prompt.vue.d.ts +3 -0
  144. package/dist/prompts/prompts.vue.d.ts +20 -0
  145. package/dist/question/components/CommonQuestions.vue.d.ts +32 -0
  146. package/dist/question/components/HotQuestions.vue.d.ts +89 -0
  147. package/dist/question/composables/useQuestions.d.ts +17 -0
  148. package/dist/question/index.d.ts +7 -0
  149. package/dist/question/index.type.d.ts +74 -0
  150. package/dist/question/index.vue.d.ts +46 -0
  151. package/dist/sender/components/ActionButtons.vue.d.ts +6 -4
  152. package/dist/sender/composables/useSpeechHandler.d.ts +0 -6
  153. package/dist/sender/index.type.d.ts +1 -1
  154. package/dist/sender/index.vue.d.ts +3 -4
  155. package/dist/style.css +1 -1
  156. package/dist/welcome/index.type.d.ts +10 -0
  157. package/dist/welcome/index.vue.d.ts +17 -1
  158. package/package.json +6 -5
  159. package/src/bubble/bubble-list.vue +42 -0
  160. package/src/bubble/bubble.vue +247 -0
  161. package/src/bubble/components/actions/copy.vue +54 -0
  162. package/src/bubble/components/actions/refresh.vue +31 -0
  163. package/src/bubble/index.ts +23 -0
  164. package/src/bubble/index.type.ts +63 -0
  165. package/src/bubble/useScroll.ts +14 -0
  166. package/src/container/index.ts +12 -0
  167. package/src/container/index.type.ts +17 -0
  168. package/src/container/index.vue +135 -0
  169. package/src/conversations/index.ts +1 -1
  170. package/src/index.ts +26 -12
  171. package/src/prompts/index.ts +25 -0
  172. package/src/prompts/index.type.ts +59 -0
  173. package/src/prompts/prompt.vue +115 -0
  174. package/src/prompts/prompts.vue +50 -0
  175. package/src/question/components/CommonQuestions.vue +146 -0
  176. package/src/question/components/HotQuestions.vue +148 -0
  177. package/src/question/composables/useQuestions.ts +106 -0
  178. package/src/question/index.less +448 -0
  179. package/src/question/index.ts +12 -0
  180. package/src/question/index.type.ts +86 -0
  181. package/src/question/index.vue +140 -0
  182. package/src/question/vars.less +135 -0
  183. package/src/sender/components/ActionButtons.vue +42 -39
  184. package/src/sender/composables/useInputHandler.ts +15 -10
  185. package/src/sender/composables/useKeyboardHandler.ts +6 -4
  186. package/src/sender/composables/useSpeechHandler.ts +5 -11
  187. package/src/sender/index.less +3 -5
  188. package/src/sender/index.type.ts +1 -1
  189. package/src/sender/index.vue +3 -2
  190. package/src/welcome/index.type.ts +12 -0
  191. package/src/welcome/index.vue +68 -2
  192. package/.vscode/extensions.json +0 -3
  193. package/dist/bubble-item/components/icons/ai.vue.d.ts +0 -2
  194. package/dist/bubble-item/components/icons/index.d.ts +0 -2
  195. package/dist/bubble-item/components/icons/user.vue.d.ts +0 -2
  196. package/dist/bubble-item/index.d.ts +0 -7
  197. package/dist/bubble-list/index.d.ts +0 -8
  198. package/dist/bubble-list/index.type.d.ts +0 -55
  199. package/dist/node_modules/.pnpm/@opentiny_vue-directive@3.22.0/node_modules/@opentiny/vue-directive/index.js +0 -57
  200. package/dist/node_modules/.pnpm/@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/vue-popper.js +0 -85
  201. package/dist/node_modules/.pnpm/@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/vue-popup.js +0 -69
  202. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/dialog-box/index.js +0 -135
  203. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/tooltip/vue.js +0 -90
  204. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Symbol.js +0 -5
  205. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetTag.js +0 -10
  206. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseTrim.js +0 -8
  207. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.js +0 -4
  208. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getRawTag.js +0 -15
  209. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_objectToString.js +0 -7
  210. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_root.js +0 -5
  211. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_trimmedEndIndex.js +0 -9
  212. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/debounce.js +0 -54
  213. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObject.js +0 -7
  214. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObjectLike.js +0 -6
  215. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isSymbol.js +0 -9
  216. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/now.js +0 -7
  217. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toNumber.js +0 -22
  218. package/dist/packages/components/src/bubble-item/bubble-item.vue.js +0 -7
  219. package/dist/packages/components/src/bubble-item/bubble-item.vue2.js +0 -111
  220. package/dist/packages/components/src/bubble-item/components/actions/copy.vue.js +0 -46
  221. package/dist/packages/components/src/bubble-item/components/actions/copy.vue2.js +0 -4
  222. package/dist/packages/components/src/bubble-item/components/actions/refresh.vue.js +0 -12
  223. package/dist/packages/components/src/bubble-item/components/icons/ai.vue.js +0 -45
  224. package/dist/packages/components/src/bubble-item/components/icons/user.vue.js +0 -63
  225. package/dist/packages/components/src/bubble-item/index.js +0 -9
  226. package/dist/packages/components/src/bubble-list/bubble-list.vue2.js +0 -52
  227. package/dist/packages/components/src/bubble-list/index.js +0 -9
  228. package/src/bubble-item/bubble-item.vue +0 -264
  229. package/src/bubble-item/components/actions/copy.vue +0 -47
  230. package/src/bubble-item/components/actions/refresh.vue +0 -27
  231. package/src/bubble-item/components/icons/ai.vue +0 -30
  232. package/src/bubble-item/components/icons/index.ts +0 -2
  233. package/src/bubble-item/components/icons/user.vue +0 -78
  234. package/src/bubble-item/index.ts +0 -12
  235. package/src/bubble-list/bubble-list.vue +0 -53
  236. package/src/bubble-list/index.ts +0 -14
  237. package/src/bubble-list/index.type.ts +0 -65
  238. package/src/sender/global.d.ts +0 -44
  239. /package/dist/{bubble-list → bubble}/bubble-list.vue.d.ts +0 -0
  240. /package/dist/{bubble-item → bubble}/components/actions/index.d.ts +0 -0
  241. /package/dist/node_modules/.pnpm/{@opentiny_vue-renderless@3.22.0 → @opentiny_vue-renderless@3.21.2}/node_modules/@opentiny/vue-renderless/button/vue.js +0 -0
  242. /package/dist/node_modules/.pnpm/{@opentiny_vue-renderless@3.22.0 → @opentiny_vue-renderless@3.21.2}/node_modules/@opentiny/vue-renderless/chunk-G2ADBYYC.js +0 -0
  243. /package/dist/node_modules/.pnpm/{@opentiny_vue-renderless@3.22.0 → @opentiny_vue-renderless@3.21.2}/node_modules/@opentiny/vue-renderless/tall-storage/vue-storage-box.js +0 -0
  244. /package/src/{bubble-item → bubble}/components/actions/index.ts +0 -0
@@ -0,0 +1,832 @@
1
+ var kt = Object.defineProperty, At = (t, s, e) => s in t ? kt(t, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[s] = e, D = (t, s, e) => (At(t, typeof s != "symbol" ? s + "" : s, e), e);
2
+ const et = () => typeof window < "u" && typeof document < "u" && window.document === document, P = () => et() ? window : global, It = "tcirzywvqlkjhgfbZQG_FLOWHSUBDNIMYREVKCAJxp57XP043891T62-modnaesu";
3
+ It.split("").reverse().join("");
4
+ function Tt(t) {
5
+ return et() && (t.document.all || t.document.documentMode) && !t.crypto && t.msCrypto;
6
+ }
7
+ function Lt(t) {
8
+ if (Tt(t)) {
9
+ t.crypto = t.msCrypto;
10
+ const s = t.crypto.getRandomValues;
11
+ t.crypto.getRandomValues = function(e) {
12
+ const r = s.call(t.crypto, e), i = [];
13
+ for (let a = 0; a < e.length; a++)
14
+ i[a] = r[a];
15
+ return i;
16
+ };
17
+ }
18
+ }
19
+ const St = P();
20
+ Lt(St);
21
+ var X = { exports: {} }, u = {}, R = { exports: {} }, x = {};
22
+ function st() {
23
+ var t = {};
24
+ return t["align-content"] = !1, t["align-items"] = !1, t["align-self"] = !1, t["alignment-adjust"] = !1, t["alignment-baseline"] = !1, t.all = !1, t["anchor-point"] = !1, t.animation = !1, t["animation-delay"] = !1, t["animation-direction"] = !1, t["animation-duration"] = !1, t["animation-fill-mode"] = !1, t["animation-iteration-count"] = !1, t["animation-name"] = !1, t["animation-play-state"] = !1, t["animation-timing-function"] = !1, t.azimuth = !1, t["backface-visibility"] = !1, t.background = !0, t["background-attachment"] = !0, t["background-clip"] = !0, t["background-color"] = !0, t["background-image"] = !0, t["background-origin"] = !0, t["background-position"] = !0, t["background-repeat"] = !0, t["background-size"] = !0, t["baseline-shift"] = !1, t.binding = !1, t.bleed = !1, t["bookmark-label"] = !1, t["bookmark-level"] = !1, t["bookmark-state"] = !1, t.border = !0, t["border-bottom"] = !0, t["border-bottom-color"] = !0, t["border-bottom-left-radius"] = !0, t["border-bottom-right-radius"] = !0, t["border-bottom-style"] = !0, t["border-bottom-width"] = !0, t["border-collapse"] = !0, t["border-color"] = !0, t["border-image"] = !0, t["border-image-outset"] = !0, t["border-image-repeat"] = !0, t["border-image-slice"] = !0, t["border-image-source"] = !0, t["border-image-width"] = !0, t["border-left"] = !0, t["border-left-color"] = !0, t["border-left-style"] = !0, t["border-left-width"] = !0, t["border-radius"] = !0, t["border-right"] = !0, t["border-right-color"] = !0, t["border-right-style"] = !0, t["border-right-width"] = !0, t["border-spacing"] = !0, t["border-style"] = !0, t["border-top"] = !0, t["border-top-color"] = !0, t["border-top-left-radius"] = !0, t["border-top-right-radius"] = !0, t["border-top-style"] = !0, t["border-top-width"] = !0, t["border-width"] = !0, t.bottom = !1, t["box-decoration-break"] = !0, t["box-shadow"] = !0, t["box-sizing"] = !0, t["box-snap"] = !0, t["box-suppress"] = !0, t["break-after"] = !0, t["break-before"] = !0, t["break-inside"] = !0, t["caption-side"] = !1, t.chains = !1, t.clear = !0, t.clip = !1, t["clip-path"] = !1, t["clip-rule"] = !1, t.color = !0, t["color-interpolation-filters"] = !0, t["column-count"] = !1, t["column-fill"] = !1, t["column-gap"] = !1, t["column-rule"] = !1, t["column-rule-color"] = !1, t["column-rule-style"] = !1, t["column-rule-width"] = !1, t["column-span"] = !1, t["column-width"] = !1, t.columns = !1, t.contain = !1, t.content = !1, t["counter-increment"] = !1, t["counter-reset"] = !1, t["counter-set"] = !1, t.crop = !1, t.cue = !1, t["cue-after"] = !1, t["cue-before"] = !1, t.cursor = !1, t.direction = !1, t.display = !0, t["display-inside"] = !0, t["display-list"] = !0, t["display-outside"] = !0, t["dominant-baseline"] = !1, t.elevation = !1, t["empty-cells"] = !1, t.filter = !1, t.flex = !1, t["flex-basis"] = !1, t["flex-direction"] = !1, t["flex-flow"] = !1, t["flex-grow"] = !1, t["flex-shrink"] = !1, t["flex-wrap"] = !1, t.float = !1, t["float-offset"] = !1, t["flood-color"] = !1, t["flood-opacity"] = !1, t["flow-from"] = !1, t["flow-into"] = !1, t.font = !0, t["font-family"] = !0, t["font-feature-settings"] = !0, t["font-kerning"] = !0, t["font-language-override"] = !0, t["font-size"] = !0, t["font-size-adjust"] = !0, t["font-stretch"] = !0, t["font-style"] = !0, t["font-synthesis"] = !0, t["font-variant"] = !0, t["font-variant-alternates"] = !0, t["font-variant-caps"] = !0, t["font-variant-east-asian"] = !0, t["font-variant-ligatures"] = !0, t["font-variant-numeric"] = !0, t["font-variant-position"] = !0, t["font-weight"] = !0, t.grid = !1, t["grid-area"] = !1, t["grid-auto-columns"] = !1, t["grid-auto-flow"] = !1, t["grid-auto-rows"] = !1, t["grid-column"] = !1, t["grid-column-end"] = !1, t["grid-column-start"] = !1, t["grid-row"] = !1, t["grid-row-end"] = !1, t["grid-row-start"] = !1, t["grid-template"] = !1, t["grid-template-areas"] = !1, t["grid-template-columns"] = !1, t["grid-template-rows"] = !1, t["hanging-punctuation"] = !1, t.height = !0, t.hyphens = !1, t.icon = !1, t["image-orientation"] = !1, t["image-resolution"] = !1, t["ime-mode"] = !1, t["initial-letters"] = !1, t["inline-box-align"] = !1, t["justify-content"] = !1, t["justify-items"] = !1, t["justify-self"] = !1, t.left = !1, t["letter-spacing"] = !0, t["lighting-color"] = !0, t["line-box-contain"] = !1, t["line-break"] = !1, t["line-grid"] = !1, t["line-height"] = !1, t["line-snap"] = !1, t["line-stacking"] = !1, t["line-stacking-ruby"] = !1, t["line-stacking-shift"] = !1, t["line-stacking-strategy"] = !1, t["list-style"] = !0, t["list-style-image"] = !0, t["list-style-position"] = !0, t["list-style-type"] = !0, t.margin = !0, t["margin-bottom"] = !0, t["margin-left"] = !0, t["margin-right"] = !0, t["margin-top"] = !0, t["marker-offset"] = !1, t["marker-side"] = !1, t.marks = !1, t.mask = !1, t["mask-box"] = !1, t["mask-box-outset"] = !1, t["mask-box-repeat"] = !1, t["mask-box-slice"] = !1, t["mask-box-source"] = !1, t["mask-box-width"] = !1, t["mask-clip"] = !1, t["mask-image"] = !1, t["mask-origin"] = !1, t["mask-position"] = !1, t["mask-repeat"] = !1, t["mask-size"] = !1, t["mask-source-type"] = !1, t["mask-type"] = !1, t["max-height"] = !0, t["max-lines"] = !1, t["max-width"] = !0, t["min-height"] = !0, t["min-width"] = !0, t["move-to"] = !1, t["nav-down"] = !1, t["nav-index"] = !1, t["nav-left"] = !1, t["nav-right"] = !1, t["nav-up"] = !1, t["object-fit"] = !1, t["object-position"] = !1, t.opacity = !1, t.order = !1, t.orphans = !1, t.outline = !1, t["outline-color"] = !1, t["outline-offset"] = !1, t["outline-style"] = !1, t["outline-width"] = !1, t.overflow = !1, t["overflow-wrap"] = !1, t["overflow-x"] = !1, t["overflow-y"] = !1, t.padding = !0, t["padding-bottom"] = !0, t["padding-left"] = !0, t["padding-right"] = !0, t["padding-top"] = !0, t.page = !1, t["page-break-after"] = !1, t["page-break-before"] = !1, t["page-break-inside"] = !1, t["page-policy"] = !1, t.pause = !1, t["pause-after"] = !1, t["pause-before"] = !1, t.perspective = !1, t["perspective-origin"] = !1, t.pitch = !1, t["pitch-range"] = !1, t["play-during"] = !1, t.position = !1, t["presentation-level"] = !1, t.quotes = !1, t["region-fragment"] = !1, t.resize = !1, t.rest = !1, t["rest-after"] = !1, t["rest-before"] = !1, t.richness = !1, t.right = !1, t.rotation = !1, t["rotation-point"] = !1, t["ruby-align"] = !1, t["ruby-merge"] = !1, t["ruby-position"] = !1, t["shape-image-threshold"] = !1, t["shape-outside"] = !1, t["shape-margin"] = !1, t.size = !1, t.speak = !1, t["speak-as"] = !1, t["speak-header"] = !1, t["speak-numeral"] = !1, t["speak-punctuation"] = !1, t["speech-rate"] = !1, t.stress = !1, t["string-set"] = !1, t["tab-size"] = !1, t["table-layout"] = !1, t["text-align"] = !0, t["text-align-last"] = !0, t["text-combine-upright"] = !0, t["text-decoration"] = !0, t["text-decoration-color"] = !0, t["text-decoration-line"] = !0, t["text-decoration-skip"] = !0, t["text-decoration-style"] = !0, t["text-emphasis"] = !0, t["text-emphasis-color"] = !0, t["text-emphasis-position"] = !0, t["text-emphasis-style"] = !0, t["text-height"] = !0, t["text-indent"] = !0, t["text-justify"] = !0, t["text-orientation"] = !0, t["text-overflow"] = !0, t["text-shadow"] = !0, t["text-space-collapse"] = !0, t["text-transform"] = !0, t["text-underline-position"] = !0, t["text-wrap"] = !0, t.top = !1, t.transform = !1, t["transform-origin"] = !1, t["transform-style"] = !1, t.transition = !1, t["transition-delay"] = !1, t["transition-duration"] = !1, t["transition-property"] = !1, t["transition-timing-function"] = !1, t["unicode-bidi"] = !1, t["vertical-align"] = !1, t.visibility = !1, t["voice-balance"] = !1, t["voice-duration"] = !1, t["voice-family"] = !1, t["voice-pitch"] = !1, t["voice-range"] = !1, t["voice-rate"] = !1, t["voice-stress"] = !1, t["voice-volume"] = !1, t.volume = !1, t["white-space"] = !1, t.widows = !1, t.width = !0, t["will-change"] = !1, t["word-break"] = !0, t["word-spacing"] = !0, t["word-wrap"] = !0, t["wrap-flow"] = !1, t["wrap-through"] = !1, t["writing-mode"] = !1, t["z-index"] = !1, t;
25
+ }
26
+ function Ct(t, s, e) {
27
+ }
28
+ function jt(t, s, e) {
29
+ }
30
+ var Ft = /javascript\s*\:/img;
31
+ function Ot(t, s) {
32
+ return Ft.test(s) ? "" : s;
33
+ }
34
+ x.whiteList = st();
35
+ x.getDefaultWhiteList = st;
36
+ x.onAttr = Ct;
37
+ x.onIgnoreAttr = jt;
38
+ x.safeAttrValue = Ot;
39
+ var Bt = {
40
+ indexOf: function(t, s) {
41
+ var e, r;
42
+ if (Array.prototype.indexOf)
43
+ return t.indexOf(s);
44
+ for (e = 0, r = t.length; e < r; e++)
45
+ if (t[e] === s)
46
+ return e;
47
+ return -1;
48
+ },
49
+ forEach: function(t, s, e) {
50
+ var r, i;
51
+ if (Array.prototype.forEach)
52
+ return t.forEach(s, e);
53
+ for (r = 0, i = t.length; r < i; r++)
54
+ s.call(e, t[r], r, t);
55
+ },
56
+ trim: function(t) {
57
+ return String.prototype.trim ? t.trim() : t.replace(/(^\s*)|(\s*$)/g, "");
58
+ },
59
+ trimRight: function(t) {
60
+ return String.prototype.trimRight ? t.trimRight() : t.replace(/(\s*$)/g, "");
61
+ }
62
+ }, L = Bt;
63
+ function Vt(t, s) {
64
+ t = L.trimRight(t), t[t.length - 1] !== ";" && (t += ";");
65
+ var e = t.length, r = !1, i = 0, a = 0, n = "";
66
+ function o() {
67
+ if (!r) {
68
+ var c = L.trim(t.slice(i, a)), f = c.indexOf(":");
69
+ if (f !== -1) {
70
+ var d = L.trim(c.slice(0, f)), p = L.trim(c.slice(f + 1));
71
+ if (d) {
72
+ var h = s(i, n.length, d, p, c);
73
+ h && (n += h + "; ");
74
+ }
75
+ }
76
+ }
77
+ i = a + 1;
78
+ }
79
+ for (; a < e; a++) {
80
+ var l = t[a];
81
+ if (l === "/" && t[a + 1] === "*") {
82
+ var g = t.indexOf("*/", a + 2);
83
+ if (g === -1)
84
+ break;
85
+ a = g + 1, i = a + 1, r = !1;
86
+ } else
87
+ l === "(" ? r = !0 : l === ")" ? r = !1 : l === ";" ? r || o() : l === `
88
+ ` && o();
89
+ }
90
+ return L.trim(n);
91
+ }
92
+ var zt = Vt, j = x, Et = zt;
93
+ function Z(t) {
94
+ return t == null;
95
+ }
96
+ function Ht(t) {
97
+ var s = {};
98
+ for (var e in t)
99
+ s[e] = t[e];
100
+ return s;
101
+ }
102
+ function rt(t) {
103
+ t = Ht(t || {}), t.whiteList = t.whiteList || j.whiteList, t.onAttr = t.onAttr || j.onAttr, t.onIgnoreAttr = t.onIgnoreAttr || j.onIgnoreAttr, t.safeAttrValue = t.safeAttrValue || j.safeAttrValue, this.options = t;
104
+ }
105
+ rt.prototype.process = function(t) {
106
+ if (t = t || "", t = t.toString(), !t)
107
+ return "";
108
+ var s = this, e = s.options, r = e.whiteList, i = e.onAttr, a = e.onIgnoreAttr, n = e.safeAttrValue, o = Et(t, function(l, g, c, f, d) {
109
+ var p = r[c], h = !1;
110
+ if (p === !0 ? h = p : typeof p == "function" ? h = p(f) : p instanceof RegExp && (h = p.test(f)), h !== !0 && (h = !1), f = n(c, f), !!f) {
111
+ var y = {
112
+ position: g,
113
+ sourcePosition: l,
114
+ source: d,
115
+ isWhite: h
116
+ };
117
+ if (h) {
118
+ var m = i(c, f, y);
119
+ return Z(m) ? c + ":" + f : m;
120
+ } else {
121
+ var m = a(c, f, y);
122
+ if (!Z(m))
123
+ return m;
124
+ }
125
+ }
126
+ });
127
+ return o;
128
+ };
129
+ var Ut = rt;
130
+ (function(t, s) {
131
+ var e = x, r = Ut;
132
+ function i(n, o) {
133
+ var l = new r(o);
134
+ return l.process(n);
135
+ }
136
+ s = t.exports = i, s.FilterCSS = r;
137
+ for (var a in e)
138
+ s[a] = e[a];
139
+ typeof window < "u" && (window.filterCSS = t.exports);
140
+ })(R, R.exports);
141
+ var M = R.exports, N = {
142
+ indexOf: function(t, s) {
143
+ var e, r;
144
+ if (Array.prototype.indexOf)
145
+ return t.indexOf(s);
146
+ for (e = 0, r = t.length; e < r; e++)
147
+ if (t[e] === s)
148
+ return e;
149
+ return -1;
150
+ },
151
+ forEach: function(t, s, e) {
152
+ var r, i;
153
+ if (Array.prototype.forEach)
154
+ return t.forEach(s, e);
155
+ for (r = 0, i = t.length; r < i; r++)
156
+ s.call(e, t[r], r, t);
157
+ },
158
+ trim: function(t) {
159
+ return String.prototype.trim ? t.trim() : t.replace(/(^\s*)|(\s*$)/g, "");
160
+ },
161
+ spaceIndex: function(t) {
162
+ var s = /\s|\n|\t/, e = s.exec(t);
163
+ return e ? e.index : -1;
164
+ }
165
+ }, Wt = M.FilterCSS, Dt = M.getDefaultWhiteList, z = N;
166
+ function at() {
167
+ return {
168
+ a: ["target", "href", "title"],
169
+ abbr: ["title"],
170
+ address: [],
171
+ area: ["shape", "coords", "href", "alt"],
172
+ article: [],
173
+ aside: [],
174
+ audio: [
175
+ "autoplay",
176
+ "controls",
177
+ "crossorigin",
178
+ "loop",
179
+ "muted",
180
+ "preload",
181
+ "src"
182
+ ],
183
+ b: [],
184
+ bdi: ["dir"],
185
+ bdo: ["dir"],
186
+ big: [],
187
+ blockquote: ["cite"],
188
+ br: [],
189
+ caption: [],
190
+ center: [],
191
+ cite: [],
192
+ code: [],
193
+ col: ["align", "valign", "span", "width"],
194
+ colgroup: ["align", "valign", "span", "width"],
195
+ dd: [],
196
+ del: ["datetime"],
197
+ details: ["open"],
198
+ div: [],
199
+ dl: [],
200
+ dt: [],
201
+ em: [],
202
+ figcaption: [],
203
+ figure: [],
204
+ font: ["color", "size", "face"],
205
+ footer: [],
206
+ h1: [],
207
+ h2: [],
208
+ h3: [],
209
+ h4: [],
210
+ h5: [],
211
+ h6: [],
212
+ header: [],
213
+ hr: [],
214
+ i: [],
215
+ img: ["src", "alt", "title", "width", "height"],
216
+ ins: ["datetime"],
217
+ li: [],
218
+ mark: [],
219
+ nav: [],
220
+ ol: [],
221
+ p: [],
222
+ pre: [],
223
+ s: [],
224
+ section: [],
225
+ small: [],
226
+ span: [],
227
+ sub: [],
228
+ summary: [],
229
+ sup: [],
230
+ strong: [],
231
+ strike: [],
232
+ table: ["width", "border", "align", "valign"],
233
+ tbody: ["align", "valign"],
234
+ td: ["width", "rowspan", "colspan", "align", "valign"],
235
+ tfoot: ["align", "valign"],
236
+ th: ["width", "rowspan", "colspan", "align", "valign"],
237
+ thead: ["align", "valign"],
238
+ tr: ["rowspan", "align", "valign"],
239
+ tt: [],
240
+ u: [],
241
+ ul: [],
242
+ video: [
243
+ "autoplay",
244
+ "controls",
245
+ "crossorigin",
246
+ "loop",
247
+ "muted",
248
+ "playsinline",
249
+ "poster",
250
+ "preload",
251
+ "src",
252
+ "height",
253
+ "width"
254
+ ]
255
+ };
256
+ }
257
+ var it = new Wt();
258
+ function Xt(t, s, e) {
259
+ }
260
+ function Rt(t, s, e) {
261
+ }
262
+ function qt(t, s, e) {
263
+ }
264
+ function Pt(t, s, e) {
265
+ }
266
+ function nt(t) {
267
+ return t.replace(Nt, "&lt;").replace($t, "&gt;");
268
+ }
269
+ function Mt(t, s, e, r) {
270
+ if (e = gt(e), s === "href" || s === "src") {
271
+ if (e = z.trim(e), e === "#")
272
+ return "#";
273
+ if (!(e.substr(0, 7) === "http://" || e.substr(0, 8) === "https://" || e.substr(0, 7) === "mailto:" || e.substr(0, 4) === "tel:" || e.substr(0, 11) === "data:image/" || e.substr(0, 6) === "ftp://" || e.substr(0, 2) === "./" || e.substr(0, 3) === "../" || e[0] === "#" || e[0] === "/"))
274
+ return "";
275
+ } else if (s === "background") {
276
+ if (F.lastIndex = 0, F.test(e))
277
+ return "";
278
+ } else if (s === "style") {
279
+ if (G.lastIndex = 0, G.test(e) || (J.lastIndex = 0, J.test(e) && (F.lastIndex = 0, F.test(e))))
280
+ return "";
281
+ r !== !1 && (r = r || it, e = r.process(e));
282
+ }
283
+ return e = dt(e), e;
284
+ }
285
+ var Nt = /</g, $t = />/g, Qt = /"/g, Zt = /&quot;/g, Gt = /&#([a-zA-Z0-9]*);?/gim, Jt = /&colon;?/gim, Kt = /&newline;?/gim, F = /((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi, G = /e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi, J = /u\s*r\s*l\s*\(.*/gi;
286
+ function lt(t) {
287
+ return t.replace(Qt, "&quot;");
288
+ }
289
+ function ot(t) {
290
+ return t.replace(Zt, '"');
291
+ }
292
+ function ft(t) {
293
+ return t.replace(Gt, function(s, e) {
294
+ return e[0] === "x" || e[0] === "X" ? String.fromCharCode(parseInt(e.substr(1), 16)) : String.fromCharCode(parseInt(e, 10));
295
+ });
296
+ }
297
+ function ct(t) {
298
+ return t.replace(Jt, ":").replace(Kt, " ");
299
+ }
300
+ function ut(t) {
301
+ for (var s = "", e = 0, r = t.length; e < r; e++)
302
+ s += t.charCodeAt(e) < 32 ? " " : t.charAt(e);
303
+ return z.trim(s);
304
+ }
305
+ function gt(t) {
306
+ return t = ot(t), t = ft(t), t = ct(t), t = ut(t), t;
307
+ }
308
+ function dt(t) {
309
+ return t = lt(t), t = nt(t), t;
310
+ }
311
+ function Yt() {
312
+ return "";
313
+ }
314
+ function _t(t, s) {
315
+ typeof s != "function" && (s = function() {
316
+ });
317
+ var e = !Array.isArray(t);
318
+ function r(n) {
319
+ return e ? !0 : z.indexOf(t, n) !== -1;
320
+ }
321
+ var i = [], a = !1;
322
+ return {
323
+ onIgnoreTag: function(n, o, l) {
324
+ if (r(n))
325
+ if (l.isClosing) {
326
+ var g = "[/removed]", c = l.position + g.length;
327
+ return i.push([
328
+ a !== !1 ? a : l.position,
329
+ c
330
+ ]), a = !1, g;
331
+ } else
332
+ return a || (a = l.position), "[removed]";
333
+ else
334
+ return s(n, o, l);
335
+ },
336
+ remove: function(n) {
337
+ var o = "", l = 0;
338
+ return z.forEach(i, function(g) {
339
+ o += n.slice(l, g[0]), l = g[1];
340
+ }), o += n.slice(l), o;
341
+ }
342
+ };
343
+ }
344
+ function te(t) {
345
+ for (var s = "", e = 0; e < t.length; ) {
346
+ var r = t.indexOf("<!--", e);
347
+ if (r === -1) {
348
+ s += t.slice(e);
349
+ break;
350
+ }
351
+ s += t.slice(e, r);
352
+ var i = t.indexOf("-->", r);
353
+ if (i === -1)
354
+ break;
355
+ e = i + 3;
356
+ }
357
+ return s;
358
+ }
359
+ function ee(t) {
360
+ var s = t.split("");
361
+ return s = s.filter(function(e) {
362
+ var r = e.charCodeAt(0);
363
+ return r === 127 ? !1 : r <= 31 ? r === 10 || r === 13 : !0;
364
+ }), s.join("");
365
+ }
366
+ u.whiteList = at();
367
+ u.getDefaultWhiteList = at;
368
+ u.onTag = Xt;
369
+ u.onIgnoreTag = Rt;
370
+ u.onTagAttr = qt;
371
+ u.onIgnoreTagAttr = Pt;
372
+ u.safeAttrValue = Mt;
373
+ u.escapeHtml = nt;
374
+ u.escapeQuote = lt;
375
+ u.unescapeQuote = ot;
376
+ u.escapeHtmlEntities = ft;
377
+ u.escapeDangerHtml5Entities = ct;
378
+ u.clearNonPrintableCharacter = ut;
379
+ u.friendlyAttrValue = gt;
380
+ u.escapeAttrValue = dt;
381
+ u.onIgnoreTagStripAll = Yt;
382
+ u.StripTagBody = _t;
383
+ u.stripCommentTag = te;
384
+ u.stripBlankChar = ee;
385
+ u.cssFilter = it;
386
+ u.getDefaultCSSWhiteList = Dt;
387
+ var U = {}, w = N;
388
+ function se(t) {
389
+ var s = w.spaceIndex(t), e;
390
+ return s === -1 ? e = t.slice(1, -1) : e = t.slice(1, s + 1), e = w.trim(e).toLowerCase(), e.slice(0, 1) === "/" && (e = e.slice(1)), e.slice(-1) === "/" && (e = e.slice(0, -1)), e;
391
+ }
392
+ function re(t) {
393
+ return t.slice(0, 2) === "</";
394
+ }
395
+ function ae(t, s, e) {
396
+ var r = "", i = 0, a = !1, n = !1, o = 0, l = t.length, g = "", c = "";
397
+ t:
398
+ for (o = 0; o < l; o++) {
399
+ var f = t.charAt(o);
400
+ if (a === !1) {
401
+ if (f === "<") {
402
+ a = o;
403
+ continue;
404
+ }
405
+ } else if (n === !1) {
406
+ if (f === "<") {
407
+ r += e(t.slice(i, o)), a = o, i = o;
408
+ continue;
409
+ }
410
+ if (f === ">" || o === l - 1) {
411
+ r += e(t.slice(i, a)), c = t.slice(a, o + 1), g = se(c), r += s(
412
+ a,
413
+ r.length,
414
+ g,
415
+ c,
416
+ re(c)
417
+ ), i = o + 1, a = !1;
418
+ continue;
419
+ }
420
+ if (f === '"' || f === "'")
421
+ for (var d = 1, p = t.charAt(o - d); p.trim() === "" || p === "="; ) {
422
+ if (p === "=") {
423
+ n = f;
424
+ continue t;
425
+ }
426
+ p = t.charAt(o - ++d);
427
+ }
428
+ } else if (f === n) {
429
+ n = !1;
430
+ continue;
431
+ }
432
+ }
433
+ return i < l && (r += e(t.substr(i))), r;
434
+ }
435
+ var ie = /[^a-zA-Z0-9\\_:.-]/gim;
436
+ function ne(t, s) {
437
+ var e = 0, r = 0, i = [], a = !1, n = t.length;
438
+ function o(d, p) {
439
+ if (d = w.trim(d), d = d.replace(ie, "").toLowerCase(), !(d.length < 1)) {
440
+ var h = s(d, p || "");
441
+ h && i.push(h);
442
+ }
443
+ }
444
+ for (var l = 0; l < n; l++) {
445
+ var g = t.charAt(l), c, f;
446
+ if (a === !1 && g === "=") {
447
+ a = t.slice(e, l), e = l + 1, r = t.charAt(e) === '"' || t.charAt(e) === "'" ? e : oe(t, l + 1);
448
+ continue;
449
+ }
450
+ if (a !== !1 && l === r) {
451
+ if (f = t.indexOf(g, l + 1), f === -1)
452
+ break;
453
+ c = w.trim(t.slice(r + 1, f)), o(a, c), a = !1, l = f, e = l + 1;
454
+ continue;
455
+ }
456
+ if (/\s|\n|\t/.test(g))
457
+ if (t = t.replace(/\s|\n|\t/g, " "), a === !1)
458
+ if (f = le(t, l), f === -1) {
459
+ c = w.trim(t.slice(e, l)), o(c), a = !1, e = l + 1;
460
+ continue;
461
+ } else {
462
+ l = f - 1;
463
+ continue;
464
+ }
465
+ else if (f = fe(t, l - 1), f === -1) {
466
+ c = w.trim(t.slice(e, l)), c = K(c), o(a, c), a = !1, e = l + 1;
467
+ continue;
468
+ } else
469
+ continue;
470
+ }
471
+ return e < t.length && (a === !1 ? o(t.slice(e)) : o(a, K(w.trim(t.slice(e))))), w.trim(i.join(" "));
472
+ }
473
+ function le(t, s) {
474
+ for (; s < t.length; s++) {
475
+ var e = t[s];
476
+ if (e !== " ")
477
+ return e === "=" ? s : -1;
478
+ }
479
+ }
480
+ function oe(t, s) {
481
+ for (; s < t.length; s++) {
482
+ var e = t[s];
483
+ if (e !== " ")
484
+ return e === "'" || e === '"' ? s : -1;
485
+ }
486
+ }
487
+ function fe(t, s) {
488
+ for (; s > 0; s--) {
489
+ var e = t[s];
490
+ if (e !== " ")
491
+ return e === "=" ? s : -1;
492
+ }
493
+ }
494
+ function ce(t) {
495
+ return t[0] === '"' && t[t.length - 1] === '"' || t[0] === "'" && t[t.length - 1] === "'";
496
+ }
497
+ function K(t) {
498
+ return ce(t) ? t.substr(1, t.length - 2) : t;
499
+ }
500
+ U.parseTag = ae;
501
+ U.parseAttr = ne;
502
+ var ue = M.FilterCSS, v = u, pt = U, ge = pt.parseTag, de = pt.parseAttr, V = N;
503
+ function O(t) {
504
+ return t == null;
505
+ }
506
+ function pe(t) {
507
+ var s = V.spaceIndex(t);
508
+ if (s === -1)
509
+ return {
510
+ html: "",
511
+ closing: t[t.length - 2] === "/"
512
+ };
513
+ t = V.trim(t.slice(s + 1, -1));
514
+ var e = t[t.length - 1] === "/";
515
+ return e && (t = V.trim(t.slice(0, -1))), {
516
+ html: t,
517
+ closing: e
518
+ };
519
+ }
520
+ function he(t) {
521
+ var s = {};
522
+ for (var e in t)
523
+ s[e] = t[e];
524
+ return s;
525
+ }
526
+ function me(t) {
527
+ var s = {};
528
+ for (var e in t)
529
+ Array.isArray(t[e]) ? s[e.toLowerCase()] = t[e].map(function(r) {
530
+ return r.toLowerCase();
531
+ }) : s[e.toLowerCase()] = t[e];
532
+ return s;
533
+ }
534
+ function ht(t) {
535
+ t = he(t || {}), t.stripIgnoreTag && (t.onIgnoreTag && console.error(
536
+ 'Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'
537
+ ), t.onIgnoreTag = v.onIgnoreTagStripAll), t.whiteList || t.allowList ? t.whiteList = me(t.whiteList || t.allowList) : t.whiteList = v.whiteList, t.onTag = t.onTag || v.onTag, t.onTagAttr = t.onTagAttr || v.onTagAttr, t.onIgnoreTag = t.onIgnoreTag || v.onIgnoreTag, t.onIgnoreTagAttr = t.onIgnoreTagAttr || v.onIgnoreTagAttr, t.safeAttrValue = t.safeAttrValue || v.safeAttrValue, t.escapeHtml = t.escapeHtml || v.escapeHtml, this.options = t, t.css === !1 ? this.cssFilter = !1 : (t.css = t.css || {}, this.cssFilter = new ue(t.css));
538
+ }
539
+ ht.prototype.process = function(t) {
540
+ if (t = t || "", t = t.toString(), !t)
541
+ return "";
542
+ var s = this, e = s.options, r = e.whiteList, i = e.onTag, a = e.onIgnoreTag, n = e.onTagAttr, o = e.onIgnoreTagAttr, l = e.safeAttrValue, g = e.escapeHtml, c = s.cssFilter;
543
+ e.stripBlankChar && (t = v.stripBlankChar(t)), e.allowCommentTag || (t = v.stripCommentTag(t));
544
+ var f = !1;
545
+ e.stripIgnoreTagBody && (f = v.StripTagBody(
546
+ e.stripIgnoreTagBody,
547
+ a
548
+ ), a = f.onIgnoreTag);
549
+ var d = ge(
550
+ t,
551
+ function(p, h, y, m, wt) {
552
+ var C = {
553
+ sourcePosition: p,
554
+ position: h,
555
+ isClosing: wt,
556
+ isWhite: Object.prototype.hasOwnProperty.call(r, y)
557
+ }, I = i(y, m, C);
558
+ if (!O(I))
559
+ return I;
560
+ if (C.isWhite) {
561
+ if (C.isClosing)
562
+ return "</" + y + ">";
563
+ var $ = pe(m), xt = r[y], Q = de($.html, function(k, A) {
564
+ var W = V.indexOf(xt, k) !== -1, T = n(y, k, A, W);
565
+ return O(T) ? W ? (A = l(y, k, A, c), A ? k + '="' + A + '"' : k) : (T = o(y, k, A, W), O(T) ? void 0 : T) : T;
566
+ });
567
+ return m = "<" + y, Q && (m += " " + Q), $.closing && (m += " /"), m += ">", m;
568
+ } else
569
+ return I = a(y, m, C), O(I) ? g(m) : I;
570
+ },
571
+ g
572
+ );
573
+ return f && (d = f.remove(d)), d;
574
+ };
575
+ var ye = ht;
576
+ (function(t, s) {
577
+ var e = u, r = U, i = ye;
578
+ function a(o, l) {
579
+ var g = new i(l);
580
+ return g.process(o);
581
+ }
582
+ s = t.exports = a, s.filterXSS = a, s.FilterXSS = i, function() {
583
+ for (var o in e)
584
+ s[o] = e[o];
585
+ for (var l in r)
586
+ s[l] = r[l];
587
+ }(), typeof window < "u" && (window.filterXSS = t.exports);
588
+ function n() {
589
+ return typeof self < "u" && typeof DedicatedWorkerGlobalScope < "u" && self instanceof DedicatedWorkerGlobalScope;
590
+ }
591
+ n() && (self.filterXSS = t.exports);
592
+ })(X, X.exports);
593
+ var E = X.exports;
594
+ let b = {
595
+ enableAttrs: !0,
596
+ enableHtml: !0,
597
+ enableUrl: !0,
598
+ html: {
599
+ whiteList: {
600
+ a: ["class", "style", "contenteditable", "data-id", "data-title", "data-size", "data-last-modified"],
601
+ address: ["class", "style"],
602
+ area: ["class", "style"],
603
+ article: ["class", "style"],
604
+ aside: ["class", "style"],
605
+ audio: ["class", "style"],
606
+ b: ["class", "style"],
607
+ bdi: ["class", "style"],
608
+ bdo: ["class", "style"],
609
+ big: ["class", "style"],
610
+ blockquote: ["class", "style"],
611
+ br: ["class", "style"],
612
+ caption: ["class", "style"],
613
+ center: ["class", "style"],
614
+ cite: ["class", "style"],
615
+ code: ["class", "style"],
616
+ col: ["class", "style"],
617
+ colgroup: ["class", "style"],
618
+ dd: ["class", "style"],
619
+ del: ["class", "style"],
620
+ details: ["class", "style"],
621
+ div: [
622
+ "class",
623
+ "style",
624
+ "spellcheck",
625
+ "data-gramm",
626
+ "spellcheck",
627
+ "data-mode",
628
+ "data-position",
629
+ "data-row",
630
+ "data-cell",
631
+ "data-rowspan",
632
+ "data-colspan",
633
+ "data-cell-bg",
634
+ "data-parent-bg"
635
+ ],
636
+ dl: ["class", "style"],
637
+ dt: ["class", "style"],
638
+ em: ["class", "style"],
639
+ figcaption: ["class", "style"],
640
+ figure: ["class", "style"],
641
+ font: ["class", "style"],
642
+ footer: ["class", "style"],
643
+ h1: ["class", "style"],
644
+ h2: ["class", "style"],
645
+ h3: ["class", "style"],
646
+ h4: ["class", "style"],
647
+ h5: ["class", "style"],
648
+ h6: ["class", "style"],
649
+ header: ["class", "style"],
650
+ hr: ["class", "style"],
651
+ i: ["class", "style", "data-image-id", "data-image"],
652
+ img: ["class", "style", "devui-editorx-image", "style", "data-image-id"],
653
+ input: ["class", "style", "data-formula", "data-link", "data-video"],
654
+ ins: ["class", "style"],
655
+ li: ["class", "style"],
656
+ mark: ["class", "style"],
657
+ nav: ["class", "style"],
658
+ ol: ["class", "style"],
659
+ p: ["class", "style"],
660
+ pre: ["class", "style"],
661
+ s: ["class", "style"],
662
+ section: ["class", "style"],
663
+ small: ["class", "style"],
664
+ span: ["class", "style", "contenteditable", "color", "style"],
665
+ sub: ["class", "style"],
666
+ summary: ["class", "style"],
667
+ sup: ["class", "style"],
668
+ strong: ["class", "style"],
669
+ strike: ["class", "style"],
670
+ svg: ["class", "style", "t", "viewBox", "viewbox", "version", "xmlns", "p-id", "xmlns:xlink"],
671
+ path: ["d", "p-id"],
672
+ table: ["class", "style"],
673
+ tbody: ["class", "style"],
674
+ td: ["class", "style", "data-row", "data-cell", "data-cell-bg", "data-parent-bg"],
675
+ tfoot: ["class", "style"],
676
+ th: ["class", "style"],
677
+ thead: ["class", "style"],
678
+ tr: ["class", "style", "data-row"],
679
+ tt: ["class", "style"],
680
+ u: ["class", "style"],
681
+ ul: ["class", "style"],
682
+ video: ["class", "style"]
683
+ }
684
+ }
685
+ };
686
+ const be = E.getDefaultWhiteList && E.getDefaultWhiteList() || {};
687
+ b.html.whiteList = Object.assign(be, b.html.whiteList);
688
+ let mt = new E.FilterXSS(b.html);
689
+ const ve = () => b, we = (t) => {
690
+ var s;
691
+ let e;
692
+ (s = t == null ? void 0 : t.html) != null && s.whiteList && (e = Object.assign(b.html.whiteList, t.html.whiteList)), b = Object.assign(b, t), e && (b.html.whiteList = e), mt = new E.FilterXSS(b.html);
693
+ };
694
+ let yt = (t) => !b.enableHtml || typeof t != "string" ? t : mt.process(t);
695
+ const xe = (t) => {
696
+ yt = t;
697
+ };
698
+ let bt = (t) => !b.enableAttrs || typeof t != "string" ? t : t.replace(/<.*?>/gi, "").replace(/on[a-z]+=/gi, "");
699
+ const ke = (t) => {
700
+ bt = t;
701
+ };
702
+ let vt = (t) => {
703
+ if (!b.enableUrl || typeof t != "string")
704
+ return t;
705
+ const s = t.replace(/&#(\w+)(^\w|;)?/g, (r, i) => String.fromCharCode(i)).replace(/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim, "").trim();
706
+ if (!s)
707
+ return "";
708
+ if ([".", "/"].includes(s[0]))
709
+ return s;
710
+ const e = s.match(/^([^:]+):/gm);
711
+ return e && /^([^\w]*)(javascript|data|vbscript)/im.test(e[0]) ? "" : s;
712
+ };
713
+ const Ae = (t) => {
714
+ vt = t;
715
+ }, Ie = {
716
+ getXssOption: ve,
717
+ setXssOption: we,
718
+ filterHtml: yt,
719
+ setFilterHtml: xe,
720
+ filterAttrs: bt,
721
+ setFilterAttrs: ke,
722
+ filterUrl: vt,
723
+ setFilterUrl: Ae
724
+ }, Te = P(), Le = "console", Se = Te[Le] || {}, Y = {}, Ce = (t, s) => function(...e) {
725
+ t[s] && typeof t[s] == "function" && t[s](...e);
726
+ }, je = (t) => (Object.keys(t).forEach((s) => {
727
+ Y[s] = Ce(t, s);
728
+ }), Y);
729
+ je(Se);
730
+ const _ = P().crypto;
731
+ let q;
732
+ _ ? q = (t) => {
733
+ const s = [];
734
+ for (let e = 0; e < t; e += 4)
735
+ s.push(_.getRandomValues(new Uint32Array(1))[0]);
736
+ return new H(s, t);
737
+ } : q = (t) => {
738
+ const s = [], e = (r) => {
739
+ let i = r, a = 987654321;
740
+ const n = 4294967295;
741
+ return () => {
742
+ a = 36969 * (a & 65535) + (a >> 16) & n, i = 18e3 * (i & 65535) + (i >> 16) & n;
743
+ let o = (a << 16) + i & n;
744
+ return o /= 4294967296, o += 0.5, o * (Math.random() > 0.5 ? 1 : -1);
745
+ };
746
+ };
747
+ for (let r = 0, i; r < t; r += 4) {
748
+ const a = e((i || Math.random()) * 4294967296);
749
+ i = a() * 987654071, s.push(a() * 4294967296 | 0);
750
+ }
751
+ return new H(s, t);
752
+ };
753
+ class Fe {
754
+ // @ts-ignore
755
+ static create(...s) {
756
+ return new this(...s);
757
+ }
758
+ clone() {
759
+ const s = new this.constructor();
760
+ return Object.assign(s, this), s;
761
+ }
762
+ mixIn(s) {
763
+ return Object.assign(this, s);
764
+ }
765
+ }
766
+ class H extends Fe {
767
+ constructor(s = [], e = s.length * 4) {
768
+ super(), D(this, "words"), D(this, "sigBytes");
769
+ let r = s;
770
+ if (r instanceof ArrayBuffer && (r = new Uint8Array(r)), (r instanceof Int8Array || r instanceof Uint8ClampedArray || r instanceof Int16Array || r instanceof Uint16Array || r instanceof Int32Array || r instanceof Uint32Array || r instanceof Float32Array || r instanceof Float64Array) && (r = new Uint8Array(r.buffer, r.byteOffset, r.byteLength)), r instanceof Uint8Array) {
771
+ const i = r.byteLength, a = [];
772
+ for (let n = 0; n < i; n += 1)
773
+ a[n >>> 2] |= r[n] << 24 - n % 4 * 8;
774
+ this.words = a, this.sigBytes = i;
775
+ } else
776
+ this.words = s, this.sigBytes = e;
777
+ }
778
+ toString(s = Oe) {
779
+ return s.stringify(this);
780
+ }
781
+ concat(s) {
782
+ const e = this.words, r = s.words, i = this.sigBytes, a = s.sigBytes;
783
+ if (this.clamp(), i % 4)
784
+ for (let n = 0; n < a; n += 1) {
785
+ const o = r[n >>> 2] >>> 24 - n % 4 * 8 & 255;
786
+ e[i + n >>> 2] |= o << 24 - (i + n) % 4 * 8;
787
+ }
788
+ else
789
+ for (let n = 0; n < a; n += 4)
790
+ e[i + n >>> 2] = r[n >>> 2];
791
+ return this.sigBytes += a, this;
792
+ }
793
+ clone() {
794
+ const s = super.clone.call(this);
795
+ return s.words = this.words.slice(0), s;
796
+ }
797
+ clamp() {
798
+ const { words: s, sigBytes: e } = this;
799
+ s[e >>> 2] &= 4294967295 << 32 - e % 4 * 8, s.length = Math.ceil(e / 4);
800
+ }
801
+ }
802
+ D(H, "random", q);
803
+ const Oe = {
804
+ stringify(t) {
805
+ const { words: s, sigBytes: e } = t, r = [];
806
+ for (let i = 0; i < e; i += 1) {
807
+ const a = s[i >>> 2] >>> 24 - i % 4 * 8 & 255;
808
+ r.push((a >>> 4).toString(16)), r.push((a & 15).toString(16));
809
+ }
810
+ return r.join("");
811
+ },
812
+ parse(t) {
813
+ const s = t.length, e = [];
814
+ for (let r = 0; r < s; r += 2)
815
+ e[r >>> 3] |= parseInt(t.substr(r, 2), 16) << 24 - r % 8 * 4;
816
+ return new H(e, s / 2);
817
+ }
818
+ }, Be = [], Ve = [];
819
+ let B = 2, S = 0;
820
+ const ze = (t) => {
821
+ const s = Math.sqrt(t);
822
+ for (let e = 2; e <= s; e += 1)
823
+ if (!(t % e))
824
+ return !1;
825
+ return !0;
826
+ }, tt = (t) => (t - (t | 0)) * 4294967296 | 0;
827
+ for (; S < 64; )
828
+ ze(B) && (S < 8 && (Be[S] = tt(B ** (1 / 2))), Ve[S] = tt(B ** (1 / 3)), S += 1), B += 1;
829
+ const Ee = Ie;
830
+ export {
831
+ Ee as xss
832
+ };