@easyv/biz-components 0.0.30 → 0.0.33

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 (377) hide show
  1. package/README.md +28 -0
  2. package/dist/_virtual/_commonjsHelpers.es.js +0 -25
  3. package/dist/_virtual/_commonjsHelpers.es.js.map +1 -1
  4. package/dist/_virtual/index.es2.js +2 -2
  5. package/dist/_virtual/index.es3.js +2 -2
  6. package/dist/_virtual/index.es4.js +2 -2
  7. package/dist/_virtual/index.es5.js +2 -2
  8. package/dist/_virtual/index.es6.js +2 -2
  9. package/dist/components/AiMessageRender/AiMessageRender.es.js +11 -5
  10. package/dist/components/AiMessageRender/AiMessageRender.es.js.map +1 -1
  11. package/dist/components/ShadowDom/ShadowDom.es.js +3 -1
  12. package/dist/components/ShadowDom/ShadowDom.es.js.map +1 -1
  13. package/dist/components/VoiceAnimation/VoiceAnimation.es.js +2 -2
  14. package/dist/components/VoiceAnimation/VoiceAnimation.es.js.map +1 -1
  15. package/dist/hooks/index.d.ts +2 -0
  16. package/dist/hooks/useInitialized.d.ts +5 -0
  17. package/dist/hooks/useInitialized.es.js +26 -0
  18. package/dist/hooks/useInitialized.es.js.map +1 -0
  19. package/dist/hooks/useWatchValue.d.ts +18 -0
  20. package/dist/hooks/useWatchValue.es.js +32 -0
  21. package/dist/hooks/useWatchValue.es.js.map +1 -0
  22. package/dist/index.css +1 -0
  23. package/dist/index.d.ts +0 -1
  24. package/dist/index.es.js +4 -1
  25. package/dist/index.es.js.map +1 -1
  26. package/dist/node_modules/.pnpm/classnames@2.3.2/node_modules/classnames/index.es.js +1 -1
  27. package/dist/node_modules/.pnpm/co-web-worker@1.0.1/node_modules/co-web-worker/index.es.js +1 -1
  28. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_DataView.es.js +7 -0
  29. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_DataView.es.js.map +1 -0
  30. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Hash.es.js +22 -0
  31. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Hash.es.js.map +1 -0
  32. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_ListCache.es.js +22 -0
  33. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_ListCache.es.js.map +1 -0
  34. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Map.es.js +7 -0
  35. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Map.es.js.map +1 -0
  36. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_MapCache.es.js +22 -0
  37. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_MapCache.es.js.map +1 -0
  38. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Promise.es.js +7 -0
  39. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Promise.es.js.map +1 -0
  40. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Set.es.js +7 -0
  41. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Set.es.js.map +1 -0
  42. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_SetCache.es.js +16 -0
  43. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_SetCache.es.js.map +1 -0
  44. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Stack.es.js +19 -0
  45. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Stack.es.js.map +1 -0
  46. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Symbol.es.js +6 -0
  47. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Symbol.es.js.map +1 -0
  48. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Uint8Array.es.js +6 -0
  49. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Uint8Array.es.js.map +1 -0
  50. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_WeakMap.es.js +7 -0
  51. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_WeakMap.es.js.map +1 -0
  52. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayFilter.es.js +14 -0
  53. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayFilter.es.js.map +1 -0
  54. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayLikeKeys.es.js +25 -0
  55. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayLikeKeys.es.js.map +1 -0
  56. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayPush.es.js +11 -0
  57. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayPush.es.js.map +1 -0
  58. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arraySome.es.js +13 -0
  59. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arraySome.es.js.map +1 -0
  60. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assocIndexOf.es.js +14 -0
  61. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assocIndexOf.es.js.map +1 -0
  62. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetAllKeys.es.js +10 -0
  63. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetAllKeys.es.js.map +1 -0
  64. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetTag.es.js +15 -0
  65. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetTag.es.js.map +1 -0
  66. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsArguments.es.js +10 -0
  67. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsArguments.es.js.map +1 -0
  68. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsEqual.es.js +15 -0
  69. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsEqual.es.js.map +1 -0
  70. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsEqualDeep.es.js +46 -0
  71. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsEqualDeep.es.js.map +1 -0
  72. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsNative.es.js +23 -0
  73. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsNative.es.js.map +1 -0
  74. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsTypedArray.es.js +15 -0
  75. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsTypedArray.es.js.map +1 -0
  76. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseKeys.es.js +20 -0
  77. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseKeys.es.js.map +1 -0
  78. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseTimes.es.js +11 -0
  79. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseTimes.es.js.map +1 -0
  80. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseUnary.es.js +9 -0
  81. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseUnary.es.js.map +1 -0
  82. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cacheHas.es.js +7 -0
  83. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cacheHas.es.js.map +1 -0
  84. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_coreJsData.es.js +6 -0
  85. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_coreJsData.es.js.map +1 -0
  86. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_equalArrays.es.js +51 -0
  87. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_equalArrays.es.js.map +1 -0
  88. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_equalByTag.es.js +60 -0
  89. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_equalByTag.es.js.map +1 -0
  90. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_equalObjects.es.js +51 -0
  91. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_equalObjects.es.js.map +1 -0
  92. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.es.js +5 -0
  93. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.es.js.map +1 -0
  94. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getAllKeys.es.js +10 -0
  95. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getAllKeys.es.js.map +1 -0
  96. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getMapData.es.js +9 -0
  97. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getMapData.es.js.map +1 -0
  98. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getNative.es.js +10 -0
  99. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getNative.es.js.map +1 -0
  100. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getRawTag.es.js +26 -0
  101. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getRawTag.es.js.map +1 -0
  102. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getSymbols.es.js +18 -0
  103. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getSymbols.es.js.map +1 -0
  104. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getTag.es.js +35 -0
  105. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getTag.es.js.map +1 -0
  106. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getValue.es.js +7 -0
  107. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getValue.es.js.map +1 -0
  108. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashClear.es.js +9 -0
  109. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashClear.es.js.map +1 -0
  110. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashDelete.es.js +9 -0
  111. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashDelete.es.js.map +1 -0
  112. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashGet.es.js +16 -0
  113. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashGet.es.js.map +1 -0
  114. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashHas.es.js +11 -0
  115. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashHas.es.js.map +1 -0
  116. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashSet.es.js +12 -0
  117. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashSet.es.js.map +1 -0
  118. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isIndex.es.js +11 -0
  119. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isIndex.es.js.map +1 -0
  120. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isKeyable.es.js +8 -0
  121. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isKeyable.es.js.map +1 -0
  122. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isMasked.es.js +12 -0
  123. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isMasked.es.js.map +1 -0
  124. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isPrototype.es.js +9 -0
  125. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isPrototype.es.js.map +1 -0
  126. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheClear.es.js +8 -0
  127. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheClear.es.js.map +1 -0
  128. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheDelete.es.js +21 -0
  129. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheDelete.es.js.map +1 -0
  130. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheGet.es.js +9 -0
  131. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheGet.es.js.map +1 -0
  132. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheHas.es.js +8 -0
  133. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheHas.es.js.map +1 -0
  134. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheSet.es.js +15 -0
  135. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheSet.es.js.map +1 -0
  136. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheClear.es.js +15 -0
  137. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheClear.es.js.map +1 -0
  138. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheDelete.es.js +10 -0
  139. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheDelete.es.js.map +1 -0
  140. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheGet.es.js +8 -0
  141. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheGet.es.js.map +1 -0
  142. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheHas.es.js +8 -0
  143. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheHas.es.js.map +1 -0
  144. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheSet.es.js +11 -0
  145. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheSet.es.js.map +1 -0
  146. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapToArray.es.js +11 -0
  147. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapToArray.es.js.map +1 -0
  148. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeCreate.es.js +6 -0
  149. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeCreate.es.js.map +1 -0
  150. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeKeys.es.js +6 -0
  151. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeKeys.es.js.map +1 -0
  152. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nodeUtil.es.js +19 -0
  153. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nodeUtil.es.js.map +1 -0
  154. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_objectToString.es.js +9 -0
  155. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_objectToString.es.js.map +1 -0
  156. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_overArg.es.js +9 -0
  157. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_overArg.es.js.map +1 -0
  158. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_root.es.js +7 -0
  159. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_root.es.js.map +1 -0
  160. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setCacheAdd.es.js +9 -0
  161. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setCacheAdd.es.js.map +1 -0
  162. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setCacheHas.es.js +7 -0
  163. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setCacheHas.es.js.map +1 -0
  164. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setToArray.es.js +11 -0
  165. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setToArray.es.js.map +1 -0
  166. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackClear.es.js +9 -0
  167. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackClear.es.js.map +1 -0
  168. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackDelete.es.js +9 -0
  169. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackDelete.es.js.map +1 -0
  170. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackGet.es.js +7 -0
  171. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackGet.es.js.map +1 -0
  172. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackHas.es.js +7 -0
  173. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackHas.es.js.map +1 -0
  174. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackSet.es.js +23 -0
  175. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackSet.es.js.map +1 -0
  176. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_toSource.es.js +19 -0
  177. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_toSource.es.js.map +1 -0
  178. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/eq.es.js +7 -0
  179. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/eq.es.js.map +1 -0
  180. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArguments.es.js +14 -0
  181. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArguments.es.js.map +1 -0
  182. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArray.es.js +5 -0
  183. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArray.es.js.map +1 -0
  184. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArrayLike.es.js +9 -0
  185. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArrayLike.es.js.map +1 -0
  186. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isBuffer.es.js +12 -0
  187. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isBuffer.es.js.map +1 -0
  188. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isEqual.es.js +8 -0
  189. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isEqual.es.js.map +1 -0
  190. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isFunction.es.js +14 -0
  191. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isFunction.es.js.map +1 -0
  192. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isLength.es.js +8 -0
  193. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isLength.es.js.map +1 -0
  194. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObject.es.js +8 -0
  195. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObject.es.js.map +1 -0
  196. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObjectLike.es.js +7 -0
  197. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObjectLike.es.js.map +1 -0
  198. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isTypedArray.es.js +9 -0
  199. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isTypedArray.es.js.map +1 -0
  200. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/keys.es.js +10 -0
  201. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/keys.es.js.map +1 -0
  202. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/stubArray.es.js +7 -0
  203. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/stubArray.es.js.map +1 -0
  204. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/stubFalse.es.js +7 -0
  205. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/stubFalse.es.js.map +1 -0
  206. package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.es.js +1 -1
  207. package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.es.js +1 -1
  208. package/dist/node_modules/.pnpm/style-to-js@1.1.16/node_modules/style-to-js/cjs/index.es.js +1 -1
  209. package/dist/node_modules/.pnpm/style-to-object@1.0.8/node_modules/style-to-object/cjs/index.es.js +1 -1
  210. package/dist/style.css +1 -1
  211. package/dist/utils/xunFeiVoice/RecorderManager/RecorderManager.es.js +1 -15
  212. package/dist/utils/xunFeiVoice/RecorderManager/RecorderManager.es.js.map +1 -1
  213. package/dist/utils/xunFeiVoice/XFStreamVoiceManager.d.ts +12 -4
  214. package/dist/utils/xunFeiVoice/XFStreamVoiceManager.es.js +39 -26
  215. package/dist/utils/xunFeiVoice/XFStreamVoiceManager.es.js.map +1 -1
  216. package/dist/utils/xunFeiVoice/utils.d.ts +15 -0
  217. package/dist/utils/xunFeiVoice/utils.es.js +28 -0
  218. package/dist/utils/xunFeiVoice/utils.es.js.map +1 -1
  219. package/package.json +14 -9
  220. package/dist/_virtual/___vite-browser-external.es.js +0 -7
  221. package/dist/_virtual/___vite-browser-external.es.js.map +0 -1
  222. package/dist/_virtual/__vite-browser-external.es.js +0 -5
  223. package/dist/_virtual/__vite-browser-external.es.js.map +0 -1
  224. package/dist/_virtual/_commonjs-dynamic-modules.es.js +0 -7
  225. package/dist/_virtual/_commonjs-dynamic-modules.es.js.map +0 -1
  226. package/dist/_virtual/aes.es.js +0 -5
  227. package/dist/_virtual/aes.es.js.map +0 -1
  228. package/dist/_virtual/blowfish.es.js +0 -5
  229. package/dist/_virtual/blowfish.es.js.map +0 -1
  230. package/dist/_virtual/cipher-core.es.js +0 -5
  231. package/dist/_virtual/cipher-core.es.js.map +0 -1
  232. package/dist/_virtual/core.es.js +0 -5
  233. package/dist/_virtual/core.es.js.map +0 -1
  234. package/dist/_virtual/enc-base64.es.js +0 -5
  235. package/dist/_virtual/enc-base64.es.js.map +0 -1
  236. package/dist/_virtual/enc-base64url.es.js +0 -5
  237. package/dist/_virtual/enc-base64url.es.js.map +0 -1
  238. package/dist/_virtual/enc-utf16.es.js +0 -5
  239. package/dist/_virtual/enc-utf16.es.js.map +0 -1
  240. package/dist/_virtual/evpkdf.es.js +0 -5
  241. package/dist/_virtual/evpkdf.es.js.map +0 -1
  242. package/dist/_virtual/format-hex.es.js +0 -5
  243. package/dist/_virtual/format-hex.es.js.map +0 -1
  244. package/dist/_virtual/hmac.es.js +0 -5
  245. package/dist/_virtual/hmac.es.js.map +0 -1
  246. package/dist/_virtual/index.es7.js +0 -5
  247. package/dist/_virtual/index.es7.js.map +0 -1
  248. package/dist/_virtual/lib-typedarrays.es.js +0 -5
  249. package/dist/_virtual/lib-typedarrays.es.js.map +0 -1
  250. package/dist/_virtual/md5.es.js +0 -5
  251. package/dist/_virtual/md5.es.js.map +0 -1
  252. package/dist/_virtual/mode-cfb.es.js +0 -5
  253. package/dist/_virtual/mode-cfb.es.js.map +0 -1
  254. package/dist/_virtual/mode-ctr-gladman.es.js +0 -5
  255. package/dist/_virtual/mode-ctr-gladman.es.js.map +0 -1
  256. package/dist/_virtual/mode-ctr.es.js +0 -5
  257. package/dist/_virtual/mode-ctr.es.js.map +0 -1
  258. package/dist/_virtual/mode-ecb.es.js +0 -5
  259. package/dist/_virtual/mode-ecb.es.js.map +0 -1
  260. package/dist/_virtual/mode-ofb.es.js +0 -5
  261. package/dist/_virtual/mode-ofb.es.js.map +0 -1
  262. package/dist/_virtual/pad-ansix923.es.js +0 -5
  263. package/dist/_virtual/pad-ansix923.es.js.map +0 -1
  264. package/dist/_virtual/pad-iso10126.es.js +0 -5
  265. package/dist/_virtual/pad-iso10126.es.js.map +0 -1
  266. package/dist/_virtual/pad-iso97971.es.js +0 -5
  267. package/dist/_virtual/pad-iso97971.es.js.map +0 -1
  268. package/dist/_virtual/pad-nopadding.es.js +0 -5
  269. package/dist/_virtual/pad-nopadding.es.js.map +0 -1
  270. package/dist/_virtual/pad-zeropadding.es.js +0 -5
  271. package/dist/_virtual/pad-zeropadding.es.js.map +0 -1
  272. package/dist/_virtual/pbkdf2.es.js +0 -5
  273. package/dist/_virtual/pbkdf2.es.js.map +0 -1
  274. package/dist/_virtual/rabbit-legacy.es.js +0 -5
  275. package/dist/_virtual/rabbit-legacy.es.js.map +0 -1
  276. package/dist/_virtual/rabbit.es.js +0 -5
  277. package/dist/_virtual/rabbit.es.js.map +0 -1
  278. package/dist/_virtual/rc4.es.js +0 -5
  279. package/dist/_virtual/rc4.es.js.map +0 -1
  280. package/dist/_virtual/ripemd160.es.js +0 -5
  281. package/dist/_virtual/ripemd160.es.js.map +0 -1
  282. package/dist/_virtual/sha1.es.js +0 -5
  283. package/dist/_virtual/sha1.es.js.map +0 -1
  284. package/dist/_virtual/sha224.es.js +0 -5
  285. package/dist/_virtual/sha224.es.js.map +0 -1
  286. package/dist/_virtual/sha256.es.js +0 -5
  287. package/dist/_virtual/sha256.es.js.map +0 -1
  288. package/dist/_virtual/sha3.es.js +0 -5
  289. package/dist/_virtual/sha3.es.js.map +0 -1
  290. package/dist/_virtual/sha384.es.js +0 -5
  291. package/dist/_virtual/sha384.es.js.map +0 -1
  292. package/dist/_virtual/sha512.es.js +0 -5
  293. package/dist/_virtual/sha512.es.js.map +0 -1
  294. package/dist/_virtual/tripledes.es.js +0 -5
  295. package/dist/_virtual/tripledes.es.js.map +0 -1
  296. package/dist/_virtual/x64-core.es.js +0 -5
  297. package/dist/_virtual/x64-core.es.js.map +0 -1
  298. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.es.js +0 -163
  299. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.es.js.map +0 -1
  300. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/blowfish.es.js +0 -1198
  301. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/blowfish.es.js.map +0 -1
  302. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/cipher-core.es.js +0 -650
  303. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/cipher-core.es.js.map +0 -1
  304. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/core.es.js +0 -614
  305. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/core.es.js.map +0 -1
  306. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-base64.es.js +0 -113
  307. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-base64.es.js.map +0 -1
  308. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-base64url.es.js +0 -124
  309. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-base64url.es.js.map +0 -1
  310. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf16.es.js +0 -123
  311. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf16.es.js.map +0 -1
  312. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/evpkdf.es.js +0 -98
  313. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/evpkdf.es.js.map +0 -1
  314. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/format-hex.es.js +0 -66
  315. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/format-hex.es.js.map +0 -1
  316. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/hmac.es.js +0 -112
  317. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/hmac.es.js.map +0 -1
  318. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/index.es.js +0 -52
  319. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/index.es.js.map +0 -1
  320. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/lib-typedarrays.es.js +0 -50
  321. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/lib-typedarrays.es.js.map +0 -1
  322. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/md5.es.js +0 -184
  323. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/md5.es.js.map +0 -1
  324. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-cfb.es.js +0 -58
  325. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-cfb.es.js.map +0 -1
  326. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ctr-gladman.es.js +0 -86
  327. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ctr-gladman.es.js.map +0 -1
  328. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ctr.es.js +0 -46
  329. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ctr.es.js.map +0 -1
  330. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.es.js +0 -37
  331. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.es.js.map +0 -1
  332. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ofb.es.js +0 -44
  333. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ofb.es.js.map +0 -1
  334. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-ansix923.es.js +0 -38
  335. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-ansix923.es.js.map +0 -1
  336. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-iso10126.es.js +0 -34
  337. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-iso10126.es.js.map +0 -1
  338. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-iso97971.es.js +0 -33
  339. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-iso97971.es.js.map +0 -1
  340. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-nopadding.es.js +0 -29
  341. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-nopadding.es.js.map +0 -1
  342. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-zeropadding.es.js +0 -40
  343. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-zeropadding.es.js.map +0 -1
  344. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pbkdf2.es.js +0 -105
  345. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pbkdf2.es.js.map +0 -1
  346. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/rabbit-legacy.es.js +0 -135
  347. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/rabbit-legacy.es.js.map +0 -1
  348. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/rabbit.es.js +0 -138
  349. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/rabbit.es.js.map +0 -1
  350. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/rc4.es.js +0 -92
  351. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/rc4.es.js.map +0 -1
  352. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/ripemd160.es.js +0 -486
  353. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/ripemd160.es.js.map +0 -1
  354. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha1.es.js +0 -96
  355. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha1.es.js.map +0 -1
  356. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha224.es.js +0 -51
  357. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha224.es.js.map +0 -1
  358. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha256.es.js +0 -126
  359. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha256.es.js.map +0 -1
  360. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha3.es.js +0 -208
  361. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha3.es.js.map +0 -1
  362. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha384.es.js +0 -53
  363. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha384.es.js.map +0 -1
  364. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha512.es.js +0 -288
  365. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha512.es.js.map +0 -1
  366. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/tripledes.es.js +0 -790
  367. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/tripledes.es.js.map +0 -1
  368. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/x64-core.es.js +0 -262
  369. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/x64-core.es.js.map +0 -1
  370. package/dist/utils/funASR/pcm.d.ts +0 -1
  371. package/dist/utils/funASR/recorder.d.ts +0 -3
  372. package/dist/utils/funASR/wav.d.ts +0 -1
  373. package/dist/utils/funASR/wsConnecter.d.ts +0 -16
  374. package/dist/utils/xunFeiVoice/RecorderManager/RecordManager-origin.d.ts +0 -14
  375. package/dist/utils/xunFeiVoice/RecorderManager/RecorderManager.d.ts +0 -51
  376. package/dist/utils/xunFeiVoice/RecorderManager/processorSource/processor.worker.d.ts +0 -0
  377. package/dist/utils/xunFeiVoice/RecorderManager/processorSource/processor.worklet.d.ts +0 -0
@@ -1,650 +0,0 @@
1
- import { commonjsGlobal } from "../../../../../_virtual/_commonjsHelpers.es.js";
2
- import { __module as cipherCore } from "../../../../../_virtual/cipher-core.es.js";
3
- import { __require as requireCore } from "./core.es.js";
4
- import { __require as requireEvpkdf } from "./evpkdf.es.js";
5
- var hasRequiredCipherCore;
6
- function requireCipherCore() {
7
- if (hasRequiredCipherCore) return cipherCore.exports;
8
- hasRequiredCipherCore = 1;
9
- (function(module, exports) {
10
- (function(root, factory, undef) {
11
- {
12
- module.exports = factory(requireCore(), requireEvpkdf());
13
- }
14
- })(commonjsGlobal, function(CryptoJS) {
15
- CryptoJS.lib.Cipher || function(undefined$1) {
16
- var C = CryptoJS;
17
- var C_lib = C.lib;
18
- var Base = C_lib.Base;
19
- var WordArray = C_lib.WordArray;
20
- var BufferedBlockAlgorithm = C_lib.BufferedBlockAlgorithm;
21
- var C_enc = C.enc;
22
- C_enc.Utf8;
23
- var Base64 = C_enc.Base64;
24
- var C_algo = C.algo;
25
- var EvpKDF = C_algo.EvpKDF;
26
- var Cipher = C_lib.Cipher = BufferedBlockAlgorithm.extend({
27
- /**
28
- * Configuration options.
29
- *
30
- * @property {WordArray} iv The IV to use for this operation.
31
- */
32
- cfg: Base.extend(),
33
- /**
34
- * Creates this cipher in encryption mode.
35
- *
36
- * @param {WordArray} key The key.
37
- * @param {Object} cfg (Optional) The configuration options to use for this operation.
38
- *
39
- * @return {Cipher} A cipher instance.
40
- *
41
- * @static
42
- *
43
- * @example
44
- *
45
- * var cipher = CryptoJS.algo.AES.createEncryptor(keyWordArray, { iv: ivWordArray });
46
- */
47
- createEncryptor: function(key, cfg) {
48
- return this.create(this._ENC_XFORM_MODE, key, cfg);
49
- },
50
- /**
51
- * Creates this cipher in decryption mode.
52
- *
53
- * @param {WordArray} key The key.
54
- * @param {Object} cfg (Optional) The configuration options to use for this operation.
55
- *
56
- * @return {Cipher} A cipher instance.
57
- *
58
- * @static
59
- *
60
- * @example
61
- *
62
- * var cipher = CryptoJS.algo.AES.createDecryptor(keyWordArray, { iv: ivWordArray });
63
- */
64
- createDecryptor: function(key, cfg) {
65
- return this.create(this._DEC_XFORM_MODE, key, cfg);
66
- },
67
- /**
68
- * Initializes a newly created cipher.
69
- *
70
- * @param {number} xformMode Either the encryption or decryption transormation mode constant.
71
- * @param {WordArray} key The key.
72
- * @param {Object} cfg (Optional) The configuration options to use for this operation.
73
- *
74
- * @example
75
- *
76
- * var cipher = CryptoJS.algo.AES.create(CryptoJS.algo.AES._ENC_XFORM_MODE, keyWordArray, { iv: ivWordArray });
77
- */
78
- init: function(xformMode, key, cfg) {
79
- this.cfg = this.cfg.extend(cfg);
80
- this._xformMode = xformMode;
81
- this._key = key;
82
- this.reset();
83
- },
84
- /**
85
- * Resets this cipher to its initial state.
86
- *
87
- * @example
88
- *
89
- * cipher.reset();
90
- */
91
- reset: function() {
92
- BufferedBlockAlgorithm.reset.call(this);
93
- this._doReset();
94
- },
95
- /**
96
- * Adds data to be encrypted or decrypted.
97
- *
98
- * @param {WordArray|string} dataUpdate The data to encrypt or decrypt.
99
- *
100
- * @return {WordArray} The data after processing.
101
- *
102
- * @example
103
- *
104
- * var encrypted = cipher.process('data');
105
- * var encrypted = cipher.process(wordArray);
106
- */
107
- process: function(dataUpdate) {
108
- this._append(dataUpdate);
109
- return this._process();
110
- },
111
- /**
112
- * Finalizes the encryption or decryption process.
113
- * Note that the finalize operation is effectively a destructive, read-once operation.
114
- *
115
- * @param {WordArray|string} dataUpdate The final data to encrypt or decrypt.
116
- *
117
- * @return {WordArray} The data after final processing.
118
- *
119
- * @example
120
- *
121
- * var encrypted = cipher.finalize();
122
- * var encrypted = cipher.finalize('data');
123
- * var encrypted = cipher.finalize(wordArray);
124
- */
125
- finalize: function(dataUpdate) {
126
- if (dataUpdate) {
127
- this._append(dataUpdate);
128
- }
129
- var finalProcessedData = this._doFinalize();
130
- return finalProcessedData;
131
- },
132
- keySize: 128 / 32,
133
- ivSize: 128 / 32,
134
- _ENC_XFORM_MODE: 1,
135
- _DEC_XFORM_MODE: 2,
136
- /**
137
- * Creates shortcut functions to a cipher's object interface.
138
- *
139
- * @param {Cipher} cipher The cipher to create a helper for.
140
- *
141
- * @return {Object} An object with encrypt and decrypt shortcut functions.
142
- *
143
- * @static
144
- *
145
- * @example
146
- *
147
- * var AES = CryptoJS.lib.Cipher._createHelper(CryptoJS.algo.AES);
148
- */
149
- _createHelper: /* @__PURE__ */ function() {
150
- function selectCipherStrategy(key) {
151
- if (typeof key == "string") {
152
- return PasswordBasedCipher;
153
- } else {
154
- return SerializableCipher;
155
- }
156
- }
157
- return function(cipher) {
158
- return {
159
- encrypt: function(message, key, cfg) {
160
- return selectCipherStrategy(key).encrypt(cipher, message, key, cfg);
161
- },
162
- decrypt: function(ciphertext, key, cfg) {
163
- return selectCipherStrategy(key).decrypt(cipher, ciphertext, key, cfg);
164
- }
165
- };
166
- };
167
- }()
168
- });
169
- C_lib.StreamCipher = Cipher.extend({
170
- _doFinalize: function() {
171
- var finalProcessedBlocks = this._process(true);
172
- return finalProcessedBlocks;
173
- },
174
- blockSize: 1
175
- });
176
- var C_mode = C.mode = {};
177
- var BlockCipherMode = C_lib.BlockCipherMode = Base.extend({
178
- /**
179
- * Creates this mode for encryption.
180
- *
181
- * @param {Cipher} cipher A block cipher instance.
182
- * @param {Array} iv The IV words.
183
- *
184
- * @static
185
- *
186
- * @example
187
- *
188
- * var mode = CryptoJS.mode.CBC.createEncryptor(cipher, iv.words);
189
- */
190
- createEncryptor: function(cipher, iv) {
191
- return this.Encryptor.create(cipher, iv);
192
- },
193
- /**
194
- * Creates this mode for decryption.
195
- *
196
- * @param {Cipher} cipher A block cipher instance.
197
- * @param {Array} iv The IV words.
198
- *
199
- * @static
200
- *
201
- * @example
202
- *
203
- * var mode = CryptoJS.mode.CBC.createDecryptor(cipher, iv.words);
204
- */
205
- createDecryptor: function(cipher, iv) {
206
- return this.Decryptor.create(cipher, iv);
207
- },
208
- /**
209
- * Initializes a newly created mode.
210
- *
211
- * @param {Cipher} cipher A block cipher instance.
212
- * @param {Array} iv The IV words.
213
- *
214
- * @example
215
- *
216
- * var mode = CryptoJS.mode.CBC.Encryptor.create(cipher, iv.words);
217
- */
218
- init: function(cipher, iv) {
219
- this._cipher = cipher;
220
- this._iv = iv;
221
- }
222
- });
223
- var CBC = C_mode.CBC = function() {
224
- var CBC2 = BlockCipherMode.extend();
225
- CBC2.Encryptor = CBC2.extend({
226
- /**
227
- * Processes the data block at offset.
228
- *
229
- * @param {Array} words The data words to operate on.
230
- * @param {number} offset The offset where the block starts.
231
- *
232
- * @example
233
- *
234
- * mode.processBlock(data.words, offset);
235
- */
236
- processBlock: function(words, offset) {
237
- var cipher = this._cipher;
238
- var blockSize = cipher.blockSize;
239
- xorBlock.call(this, words, offset, blockSize);
240
- cipher.encryptBlock(words, offset);
241
- this._prevBlock = words.slice(offset, offset + blockSize);
242
- }
243
- });
244
- CBC2.Decryptor = CBC2.extend({
245
- /**
246
- * Processes the data block at offset.
247
- *
248
- * @param {Array} words The data words to operate on.
249
- * @param {number} offset The offset where the block starts.
250
- *
251
- * @example
252
- *
253
- * mode.processBlock(data.words, offset);
254
- */
255
- processBlock: function(words, offset) {
256
- var cipher = this._cipher;
257
- var blockSize = cipher.blockSize;
258
- var thisBlock = words.slice(offset, offset + blockSize);
259
- cipher.decryptBlock(words, offset);
260
- xorBlock.call(this, words, offset, blockSize);
261
- this._prevBlock = thisBlock;
262
- }
263
- });
264
- function xorBlock(words, offset, blockSize) {
265
- var block;
266
- var iv = this._iv;
267
- if (iv) {
268
- block = iv;
269
- this._iv = undefined$1;
270
- } else {
271
- block = this._prevBlock;
272
- }
273
- for (var i = 0; i < blockSize; i++) {
274
- words[offset + i] ^= block[i];
275
- }
276
- }
277
- return CBC2;
278
- }();
279
- var C_pad = C.pad = {};
280
- var Pkcs7 = C_pad.Pkcs7 = {
281
- /**
282
- * Pads data using the algorithm defined in PKCS #5/7.
283
- *
284
- * @param {WordArray} data The data to pad.
285
- * @param {number} blockSize The multiple that the data should be padded to.
286
- *
287
- * @static
288
- *
289
- * @example
290
- *
291
- * CryptoJS.pad.Pkcs7.pad(wordArray, 4);
292
- */
293
- pad: function(data, blockSize) {
294
- var blockSizeBytes = blockSize * 4;
295
- var nPaddingBytes = blockSizeBytes - data.sigBytes % blockSizeBytes;
296
- var paddingWord = nPaddingBytes << 24 | nPaddingBytes << 16 | nPaddingBytes << 8 | nPaddingBytes;
297
- var paddingWords = [];
298
- for (var i = 0; i < nPaddingBytes; i += 4) {
299
- paddingWords.push(paddingWord);
300
- }
301
- var padding = WordArray.create(paddingWords, nPaddingBytes);
302
- data.concat(padding);
303
- },
304
- /**
305
- * Unpads data that had been padded using the algorithm defined in PKCS #5/7.
306
- *
307
- * @param {WordArray} data The data to unpad.
308
- *
309
- * @static
310
- *
311
- * @example
312
- *
313
- * CryptoJS.pad.Pkcs7.unpad(wordArray);
314
- */
315
- unpad: function(data) {
316
- var nPaddingBytes = data.words[data.sigBytes - 1 >>> 2] & 255;
317
- data.sigBytes -= nPaddingBytes;
318
- }
319
- };
320
- C_lib.BlockCipher = Cipher.extend({
321
- /**
322
- * Configuration options.
323
- *
324
- * @property {Mode} mode The block mode to use. Default: CBC
325
- * @property {Padding} padding The padding strategy to use. Default: Pkcs7
326
- */
327
- cfg: Cipher.cfg.extend({
328
- mode: CBC,
329
- padding: Pkcs7
330
- }),
331
- reset: function() {
332
- var modeCreator;
333
- Cipher.reset.call(this);
334
- var cfg = this.cfg;
335
- var iv = cfg.iv;
336
- var mode = cfg.mode;
337
- if (this._xformMode == this._ENC_XFORM_MODE) {
338
- modeCreator = mode.createEncryptor;
339
- } else {
340
- modeCreator = mode.createDecryptor;
341
- this._minBufferSize = 1;
342
- }
343
- if (this._mode && this._mode.__creator == modeCreator) {
344
- this._mode.init(this, iv && iv.words);
345
- } else {
346
- this._mode = modeCreator.call(mode, this, iv && iv.words);
347
- this._mode.__creator = modeCreator;
348
- }
349
- },
350
- _doProcessBlock: function(words, offset) {
351
- this._mode.processBlock(words, offset);
352
- },
353
- _doFinalize: function() {
354
- var finalProcessedBlocks;
355
- var padding = this.cfg.padding;
356
- if (this._xformMode == this._ENC_XFORM_MODE) {
357
- padding.pad(this._data, this.blockSize);
358
- finalProcessedBlocks = this._process(true);
359
- } else {
360
- finalProcessedBlocks = this._process(true);
361
- padding.unpad(finalProcessedBlocks);
362
- }
363
- return finalProcessedBlocks;
364
- },
365
- blockSize: 128 / 32
366
- });
367
- var CipherParams = C_lib.CipherParams = Base.extend({
368
- /**
369
- * Initializes a newly created cipher params object.
370
- *
371
- * @param {Object} cipherParams An object with any of the possible cipher parameters.
372
- *
373
- * @example
374
- *
375
- * var cipherParams = CryptoJS.lib.CipherParams.create({
376
- * ciphertext: ciphertextWordArray,
377
- * key: keyWordArray,
378
- * iv: ivWordArray,
379
- * salt: saltWordArray,
380
- * algorithm: CryptoJS.algo.AES,
381
- * mode: CryptoJS.mode.CBC,
382
- * padding: CryptoJS.pad.PKCS7,
383
- * blockSize: 4,
384
- * formatter: CryptoJS.format.OpenSSL
385
- * });
386
- */
387
- init: function(cipherParams) {
388
- this.mixIn(cipherParams);
389
- },
390
- /**
391
- * Converts this cipher params object to a string.
392
- *
393
- * @param {Format} formatter (Optional) The formatting strategy to use.
394
- *
395
- * @return {string} The stringified cipher params.
396
- *
397
- * @throws Error If neither the formatter nor the default formatter is set.
398
- *
399
- * @example
400
- *
401
- * var string = cipherParams + '';
402
- * var string = cipherParams.toString();
403
- * var string = cipherParams.toString(CryptoJS.format.OpenSSL);
404
- */
405
- toString: function(formatter) {
406
- return (formatter || this.formatter).stringify(this);
407
- }
408
- });
409
- var C_format = C.format = {};
410
- var OpenSSLFormatter = C_format.OpenSSL = {
411
- /**
412
- * Converts a cipher params object to an OpenSSL-compatible string.
413
- *
414
- * @param {CipherParams} cipherParams The cipher params object.
415
- *
416
- * @return {string} The OpenSSL-compatible string.
417
- *
418
- * @static
419
- *
420
- * @example
421
- *
422
- * var openSSLString = CryptoJS.format.OpenSSL.stringify(cipherParams);
423
- */
424
- stringify: function(cipherParams) {
425
- var wordArray;
426
- var ciphertext = cipherParams.ciphertext;
427
- var salt = cipherParams.salt;
428
- if (salt) {
429
- wordArray = WordArray.create([1398893684, 1701076831]).concat(salt).concat(ciphertext);
430
- } else {
431
- wordArray = ciphertext;
432
- }
433
- return wordArray.toString(Base64);
434
- },
435
- /**
436
- * Converts an OpenSSL-compatible string to a cipher params object.
437
- *
438
- * @param {string} openSSLStr The OpenSSL-compatible string.
439
- *
440
- * @return {CipherParams} The cipher params object.
441
- *
442
- * @static
443
- *
444
- * @example
445
- *
446
- * var cipherParams = CryptoJS.format.OpenSSL.parse(openSSLString);
447
- */
448
- parse: function(openSSLStr) {
449
- var salt;
450
- var ciphertext = Base64.parse(openSSLStr);
451
- var ciphertextWords = ciphertext.words;
452
- if (ciphertextWords[0] == 1398893684 && ciphertextWords[1] == 1701076831) {
453
- salt = WordArray.create(ciphertextWords.slice(2, 4));
454
- ciphertextWords.splice(0, 4);
455
- ciphertext.sigBytes -= 16;
456
- }
457
- return CipherParams.create({ ciphertext, salt });
458
- }
459
- };
460
- var SerializableCipher = C_lib.SerializableCipher = Base.extend({
461
- /**
462
- * Configuration options.
463
- *
464
- * @property {Formatter} format The formatting strategy to convert cipher param objects to and from a string. Default: OpenSSL
465
- */
466
- cfg: Base.extend({
467
- format: OpenSSLFormatter
468
- }),
469
- /**
470
- * Encrypts a message.
471
- *
472
- * @param {Cipher} cipher The cipher algorithm to use.
473
- * @param {WordArray|string} message The message to encrypt.
474
- * @param {WordArray} key The key.
475
- * @param {Object} cfg (Optional) The configuration options to use for this operation.
476
- *
477
- * @return {CipherParams} A cipher params object.
478
- *
479
- * @static
480
- *
481
- * @example
482
- *
483
- * var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key);
484
- * var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv });
485
- * var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv, format: CryptoJS.format.OpenSSL });
486
- */
487
- encrypt: function(cipher, message, key, cfg) {
488
- cfg = this.cfg.extend(cfg);
489
- var encryptor = cipher.createEncryptor(key, cfg);
490
- var ciphertext = encryptor.finalize(message);
491
- var cipherCfg = encryptor.cfg;
492
- return CipherParams.create({
493
- ciphertext,
494
- key,
495
- iv: cipherCfg.iv,
496
- algorithm: cipher,
497
- mode: cipherCfg.mode,
498
- padding: cipherCfg.padding,
499
- blockSize: cipher.blockSize,
500
- formatter: cfg.format
501
- });
502
- },
503
- /**
504
- * Decrypts serialized ciphertext.
505
- *
506
- * @param {Cipher} cipher The cipher algorithm to use.
507
- * @param {CipherParams|string} ciphertext The ciphertext to decrypt.
508
- * @param {WordArray} key The key.
509
- * @param {Object} cfg (Optional) The configuration options to use for this operation.
510
- *
511
- * @return {WordArray} The plaintext.
512
- *
513
- * @static
514
- *
515
- * @example
516
- *
517
- * var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, key, { iv: iv, format: CryptoJS.format.OpenSSL });
518
- * var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, key, { iv: iv, format: CryptoJS.format.OpenSSL });
519
- */
520
- decrypt: function(cipher, ciphertext, key, cfg) {
521
- cfg = this.cfg.extend(cfg);
522
- ciphertext = this._parse(ciphertext, cfg.format);
523
- var plaintext = cipher.createDecryptor(key, cfg).finalize(ciphertext.ciphertext);
524
- return plaintext;
525
- },
526
- /**
527
- * Converts serialized ciphertext to CipherParams,
528
- * else assumed CipherParams already and returns ciphertext unchanged.
529
- *
530
- * @param {CipherParams|string} ciphertext The ciphertext.
531
- * @param {Formatter} format The formatting strategy to use to parse serialized ciphertext.
532
- *
533
- * @return {CipherParams} The unserialized ciphertext.
534
- *
535
- * @static
536
- *
537
- * @example
538
- *
539
- * var ciphertextParams = CryptoJS.lib.SerializableCipher._parse(ciphertextStringOrParams, format);
540
- */
541
- _parse: function(ciphertext, format) {
542
- if (typeof ciphertext == "string") {
543
- return format.parse(ciphertext, this);
544
- } else {
545
- return ciphertext;
546
- }
547
- }
548
- });
549
- var C_kdf = C.kdf = {};
550
- var OpenSSLKdf = C_kdf.OpenSSL = {
551
- /**
552
- * Derives a key and IV from a password.
553
- *
554
- * @param {string} password The password to derive from.
555
- * @param {number} keySize The size in words of the key to generate.
556
- * @param {number} ivSize The size in words of the IV to generate.
557
- * @param {WordArray|string} salt (Optional) A 64-bit salt to use. If omitted, a salt will be generated randomly.
558
- *
559
- * @return {CipherParams} A cipher params object with the key, IV, and salt.
560
- *
561
- * @static
562
- *
563
- * @example
564
- *
565
- * var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32);
566
- * var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32, 'saltsalt');
567
- */
568
- execute: function(password, keySize, ivSize, salt, hasher) {
569
- if (!salt) {
570
- salt = WordArray.random(64 / 8);
571
- }
572
- if (!hasher) {
573
- var key = EvpKDF.create({ keySize: keySize + ivSize }).compute(password, salt);
574
- } else {
575
- var key = EvpKDF.create({ keySize: keySize + ivSize, hasher }).compute(password, salt);
576
- }
577
- var iv = WordArray.create(key.words.slice(keySize), ivSize * 4);
578
- key.sigBytes = keySize * 4;
579
- return CipherParams.create({ key, iv, salt });
580
- }
581
- };
582
- var PasswordBasedCipher = C_lib.PasswordBasedCipher = SerializableCipher.extend({
583
- /**
584
- * Configuration options.
585
- *
586
- * @property {KDF} kdf The key derivation function to use to generate a key and IV from a password. Default: OpenSSL
587
- */
588
- cfg: SerializableCipher.cfg.extend({
589
- kdf: OpenSSLKdf
590
- }),
591
- /**
592
- * Encrypts a message using a password.
593
- *
594
- * @param {Cipher} cipher The cipher algorithm to use.
595
- * @param {WordArray|string} message The message to encrypt.
596
- * @param {string} password The password.
597
- * @param {Object} cfg (Optional) The configuration options to use for this operation.
598
- *
599
- * @return {CipherParams} A cipher params object.
600
- *
601
- * @static
602
- *
603
- * @example
604
- *
605
- * var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password');
606
- * var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password', { format: CryptoJS.format.OpenSSL });
607
- */
608
- encrypt: function(cipher, message, password, cfg) {
609
- cfg = this.cfg.extend(cfg);
610
- var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize, cfg.salt, cfg.hasher);
611
- cfg.iv = derivedParams.iv;
612
- var ciphertext = SerializableCipher.encrypt.call(this, cipher, message, derivedParams.key, cfg);
613
- ciphertext.mixIn(derivedParams);
614
- return ciphertext;
615
- },
616
- /**
617
- * Decrypts serialized ciphertext using a password.
618
- *
619
- * @param {Cipher} cipher The cipher algorithm to use.
620
- * @param {CipherParams|string} ciphertext The ciphertext to decrypt.
621
- * @param {string} password The password.
622
- * @param {Object} cfg (Optional) The configuration options to use for this operation.
623
- *
624
- * @return {WordArray} The plaintext.
625
- *
626
- * @static
627
- *
628
- * @example
629
- *
630
- * var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, 'password', { format: CryptoJS.format.OpenSSL });
631
- * var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, 'password', { format: CryptoJS.format.OpenSSL });
632
- */
633
- decrypt: function(cipher, ciphertext, password, cfg) {
634
- cfg = this.cfg.extend(cfg);
635
- ciphertext = this._parse(ciphertext, cfg.format);
636
- var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize, ciphertext.salt, cfg.hasher);
637
- cfg.iv = derivedParams.iv;
638
- var plaintext = SerializableCipher.decrypt.call(this, cipher, ciphertext, derivedParams.key, cfg);
639
- return plaintext;
640
- }
641
- });
642
- }();
643
- });
644
- })(cipherCore);
645
- return cipherCore.exports;
646
- }
647
- export {
648
- requireCipherCore as __require
649
- };
650
- //# sourceMappingURL=cipher-core.es.js.map