@gsc-basic/components 1.1.6 → 1.1.8
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.
- package/README.md +8 -8
- package/dist/es/Button/index.js +9 -4
- package/dist/es/Button/src/Button.css +3 -3
- package/dist/es/Button/src/Button.vue.js +44 -4
- package/dist/es/Button/src/Button2.css +3 -3
- package/dist/es/CodeEditor/index.js +9 -4
- package/dist/es/CodeEditor/src/index.css +4 -4
- package/dist/es/CodeEditor/src/index.vue.js +148 -4
- package/dist/es/CodeEditor/src/index2.css +3 -3
- package/dist/es/CodeEditor/src/index3.css +4 -4
- package/dist/es/ConfigProvider/index.js +9 -4
- package/dist/es/ConfigProvider/src/configProvider.js +17 -4
- package/dist/es/ConfigProvider/src/configProviderProps.js +25 -4
- package/dist/es/ConfigProvider/src/constants.js +12 -4
- package/dist/es/ConfigProvider/src/useGlobalConfig.js +48 -4
- package/dist/es/CountTo/index.js +9 -4
- package/dist/es/CountTo/src/index.css +3 -3
- package/dist/es/CountTo/src/index.vue.js +126 -4
- package/dist/es/Ellipsis/index.js +9 -4
- package/dist/es/Ellipsis/src/components/JsEllipsis.css +3 -3
- package/dist/es/Ellipsis/src/components/JsEllipsis.vue.js +181 -4
- package/dist/es/Ellipsis/src/components/NativeEllipsis.css +3 -3
- package/dist/es/Ellipsis/src/components/NativeEllipsis.vue.js +44 -4
- package/dist/es/Ellipsis/src/components/NativeEllipsis2.css +3 -3
- package/dist/es/Ellipsis/src/index.css +3 -3
- package/dist/es/Ellipsis/src/index.vue.js +96 -4
- package/dist/es/Ellipsis/src/utils/utils.js +59 -4
- package/dist/es/Form/index.js +9 -4
- package/dist/es/Form/src/Form.css +3 -3
- package/dist/es/Form/src/Form.vue.js +377 -4
- package/dist/es/Form/src/Form2.css +3 -3
- package/dist/es/Form/src/styles/form.css +3 -3
- package/dist/es/Marquee/index.js +9 -4
- package/dist/es/Marquee/src/index.css +3 -3
- package/dist/es/Marquee/src/index.vue.js +191 -4
- package/dist/es/Marquee/src/index2.css +3 -3
- package/dist/es/Overlay/index.js +64 -4
- package/dist/es/Overlay/src/Message.css +3 -3
- package/dist/es/Overlay/src/Message.vue.js +39 -4
- package/dist/es/Overlay/src/Message2.css +3 -3
- package/dist/es/Overlay/src/Modal.css +3 -3
- package/dist/es/Overlay/src/Modal.vue.js +70 -4
- package/dist/es/Overlay/src/Modal2.css +3 -3
- package/dist/es/Overlay/src/Notice.css +3 -3
- package/dist/es/Overlay/src/Notice.vue.js +40 -4
- package/dist/es/Overlay/src/Notice2.css +3 -3
- package/dist/es/Overlay/src/Tooltip.css +3 -3
- package/dist/es/Overlay/src/Tooltip.vue.js +87 -4
- package/dist/es/Overlay/src/Tooltip2.css +3 -3
- package/dist/es/RichTextEditor/index.js +9 -4
- package/dist/es/RichTextEditor/src/ToolbarPanel.css +3 -3
- package/dist/es/RichTextEditor/src/ToolbarPanel.vue.js +162 -4
- package/dist/es/RichTextEditor/src/ToolbarPanel2.css +3 -3
- package/dist/es/RichTextEditor/src/components/BlockquoteButton.css +4 -4
- package/dist/es/RichTextEditor/src/components/BlockquoteButton.vue.js +40 -4
- package/dist/es/RichTextEditor/src/components/CodeBlockButton.css +4 -4
- package/dist/es/RichTextEditor/src/components/CodeBlockButton.vue.js +40 -4
- package/dist/es/RichTextEditor/src/components/ColorHighlightPopover.css +3 -3
- package/dist/es/RichTextEditor/src/components/ColorHighlightPopover.vue.js +40 -4
- package/dist/es/RichTextEditor/src/components/FontSizeDropdownMenu.css +3 -3
- package/dist/es/RichTextEditor/src/components/FontSizeDropdownMenu.vue.js +58 -4
- package/dist/es/RichTextEditor/src/components/HeadingDropdownMenu.css +3 -3
- package/dist/es/RichTextEditor/src/components/HeadingDropdownMenu.vue.js +69 -4
- package/dist/es/RichTextEditor/src/components/ImageUploadButton.css +4 -4
- package/dist/es/RichTextEditor/src/components/ImageUploadButton.vue.js +74 -4
- package/dist/es/RichTextEditor/src/components/LinkPopover.css +4 -4
- package/dist/es/RichTextEditor/src/components/LinkPopover.vue.js +92 -4
- package/dist/es/RichTextEditor/src/components/LinkPopover2.css +4 -4
- package/dist/es/RichTextEditor/src/components/ListDropdownMenu.css +3 -3
- package/dist/es/RichTextEditor/src/components/ListDropdownMenu.vue.js +76 -4
- package/dist/es/RichTextEditor/src/components/MarkButton.css +4 -4
- package/dist/es/RichTextEditor/src/components/MarkButton.vue.js +89 -4
- package/dist/es/RichTextEditor/src/components/TableButton.css +3 -3
- package/dist/es/RichTextEditor/src/components/TableButton.vue.js +165 -4
- package/dist/es/RichTextEditor/src/components/TextAlignDropdownMenu.css +3 -3
- package/dist/es/RichTextEditor/src/components/TextAlignDropdownMenu.vue.js +85 -4
- package/dist/es/RichTextEditor/src/components/TextColorPopover.css +3 -3
- package/dist/es/RichTextEditor/src/components/TextColorPopover.vue.js +40 -4
- package/dist/es/RichTextEditor/src/components/ToolbarGroup.css +3 -3
- package/dist/es/RichTextEditor/src/components/ToolbarGroup.vue.js +19 -4
- package/dist/es/RichTextEditor/src/components/ToolbarSeparator.css +3 -3
- package/dist/es/RichTextEditor/src/components/ToolbarSeparator.vue.js +17 -4
- package/dist/es/RichTextEditor/src/components/UndoRedoButton.css +4 -4
- package/dist/es/RichTextEditor/src/components/UndoRedoButton.vue.js +54 -4
- package/dist/es/RichTextEditor/src/components/VideoUploadButton.css +4 -4
- package/dist/es/RichTextEditor/src/components/VideoUploadButton.vue.js +74 -4
- package/dist/es/RichTextEditor/src/components/basic/ColorPicker.css +4 -4
- package/dist/es/RichTextEditor/src/components/basic/ColorPicker.vue.js +101 -4
- package/dist/es/RichTextEditor/src/components/basic/MediaUploadModal.css +3 -3
- package/dist/es/RichTextEditor/src/components/basic/MediaUploadModal.vue.js +364 -4
- package/dist/es/RichTextEditor/src/components/basic/MediaUploadModal2.css +3 -3
- package/dist/es/RichTextEditor/src/components/basic/SelectMenu.css +4 -4
- package/dist/es/RichTextEditor/src/components/basic/SelectMenu.vue.js +137 -4
- package/dist/es/RichTextEditor/src/components/basic/SelectMenu2.css +4 -4
- package/dist/es/RichTextEditor/src/constant/index.js +53 -4
- package/dist/es/RichTextEditor/src/extensions/video.js +68 -4
- package/dist/es/RichTextEditor/src/index.css +4 -4
- package/dist/es/RichTextEditor/src/index.vue.js +158 -4
- package/dist/es/RichTextEditor/src/index2.css +4 -4
- package/dist/es/RichTextEditor/src/props.js +24 -4
- package/dist/es/ScaleScreen/index.js +9 -4
- package/dist/es/ScaleScreen/src/index.css +3 -3
- package/dist/es/ScaleScreen/src/index.vue.js +118 -4
- package/dist/es/ScaleScreen/src/index2.css +3 -3
- package/dist/es/Transition/index.js +30 -4
- package/dist/es/Transition/src/CollapseTransition.css +3 -3
- package/dist/es/Transition/src/CollapseTransition.vue.js +44 -4
- package/dist/es/Transition/src/CollapseTransition2.css +3 -3
- package/dist/es/Transition/src/CreateTransition.js +75 -6
- package/dist/es/Transition/src/ExpandTransition.js +42 -4
- package/dist/es/Transition/src/style/index.css +3 -3
- package/dist/es/Transition/style.js +4 -4
- package/dist/es/VideoBackground/index.js +9 -4
- package/dist/es/VideoBackground/src/helper.js +32 -4
- package/dist/es/VideoBackground/src/index.css +3 -3
- package/dist/es/VideoBackground/src/index.vue.js +111 -4
- package/dist/es/VideoBackground/src/index2.css +3 -3
- package/dist/es/VideoBackground/src/index3.css +3 -3
- package/dist/es/VideoBackground/src/videoBackground.js +34 -4
- package/dist/es/VideoPlayer/index.js +9 -4
- package/dist/es/VideoPlayer/src/index.css +3 -3
- package/dist/es/VideoPlayer/src/index.vue.js +63 -4
- package/dist/es/VirtualScroll/index.js +9 -4
- package/dist/es/VirtualScroll/src/index.css +3 -3
- package/dist/es/VirtualScroll/src/index.vue.js +11 -4
- package/dist/es/VirtualScroll/src/index.vue2.js +107 -4
- package/dist/es/VirtualScroll/src/index2.css +3 -3
- package/dist/es/_virtual/_commonjsHelpers.js +9 -4
- package/dist/es/_virtual/_plugin-vue_export-helper.js +12 -4
- package/dist/es/_virtual/delegate.js +10 -4
- package/dist/es/_virtual/download.js +10 -4
- package/dist/es/_virtual/download2.js +7 -4
- package/dist/es/_virtual/index.js +5 -4
- package/dist/es/_virtual/index2.js +7 -4
- package/dist/es/_virtual/index3.js +21 -0
- package/dist/es/{Grid/src/components/CellEditor.css → _virtual/index4.js} +7 -4
- package/dist/es/hooks/useLocale.js +28 -4
- package/dist/es/hooks/useNamespace.js +11 -4
- package/dist/es/index.js +79 -4
- package/dist/es/locale/lang/en-US.js +167 -4
- package/dist/es/locale/lang/ja-JP.js +167 -4
- package/dist/es/locale/lang/zh-CN.js +167 -4
- package/dist/es/node_modules/@codemirror/autocomplete/dist/index.js +1379 -4
- package/dist/es/node_modules/@codemirror/commands/dist/index.js +847 -4
- package/dist/es/node_modules/@codemirror/lang-java/dist/index.js +41 -6
- package/dist/es/node_modules/@codemirror/lang-javascript/dist/index.js +315 -20
- package/dist/es/node_modules/@codemirror/lang-json/dist/index.js +51 -6
- package/dist/es/node_modules/@codemirror/lang-python/dist/index.js +402 -15
- package/dist/es/node_modules/@codemirror/lang-sql/dist/index.js +500 -7
- package/dist/es/node_modules/@codemirror/lang-xml/dist/index.js +219 -7
- package/dist/es/node_modules/@codemirror/lang-yaml/dist/index.js +54 -6
- package/dist/es/node_modules/@codemirror/language/dist/index.js +1304 -4
- package/dist/es/node_modules/@codemirror/lint/dist/index.js +660 -6
- package/dist/es/node_modules/@codemirror/search/dist/index.js +842 -5
- package/dist/es/node_modules/@codemirror/state/dist/index.js +2646 -4
- package/dist/es/node_modules/@codemirror/theme-one-dark/dist/index.js +135 -4
- package/dist/es/node_modules/@codemirror/view/dist/index.js +7492 -4
- package/dist/es/node_modules/@lezer/common/dist/index.js +1433 -5
- package/dist/es/node_modules/@lezer/highlight/dist/index.js +640 -4
- package/dist/es/node_modules/@lezer/java/dist/index.js +65 -4
- package/dist/es/node_modules/@lezer/javascript/dist/index.js +164 -4
- package/dist/es/node_modules/@lezer/json/dist/index.js +37 -4
- package/dist/es/node_modules/@lezer/lr/dist/index.js +1312 -4
- package/dist/es/node_modules/@lezer/python/dist/index.js +224 -4
- package/dist/es/node_modules/@lezer/xml/dist/index.js +103 -4
- package/dist/es/node_modules/@lezer/yaml/dist/index.js +277 -4
- package/dist/es/node_modules/@marijn/find-cluster-break/src/index.js +72 -4
- package/dist/es/node_modules/@tanstack/devtools-event-client/dist/esm/plugin.js +181 -4
- package/dist/es/node_modules/@tanstack/form-core/dist/esm/EventClient.js +16 -4
- package/dist/es/node_modules/@tanstack/form-core/dist/esm/FieldApi.js +409 -4
- package/dist/es/node_modules/@tanstack/form-core/dist/esm/FormApi.js +792 -4
- package/dist/es/node_modules/@tanstack/form-core/dist/esm/ValidationLogic.js +58 -4
- package/dist/es/node_modules/@tanstack/form-core/dist/esm/metaHelper.js +112 -5
- package/dist/es/node_modules/@tanstack/form-core/dist/esm/standardSchemaValidator.js +48 -4
- package/dist/es/node_modules/@tanstack/form-core/dist/esm/utils.js +216 -4
- package/dist/es/node_modules/@tanstack/pacer-lite/dist/lite-throttler.js +32 -4
- package/dist/es/node_modules/@tanstack/store/dist/esm/alien.js +221 -0
- package/dist/es/node_modules/@tanstack/store/dist/esm/atom.js +136 -0
- package/dist/es/node_modules/@tanstack/store/dist/esm/batch.js +25 -0
- package/dist/es/node_modules/@tanstack/store/dist/esm/store.js +47 -4
- package/dist/es/node_modules/@tanstack/vue-form/dist/esm/useField.js +41 -4
- package/dist/es/node_modules/@tanstack/vue-form/dist/esm/useForm.js +36 -4
- package/dist/es/node_modules/@tanstack/vue-store/dist/esm/index.js +51 -4
- package/dist/es/node_modules/@tiptap/core/dist/index.js +3984 -4
- package/dist/es/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js +20 -4
- package/dist/es/node_modules/@tiptap/extension-blockquote/dist/index.js +60 -5
- package/dist/es/node_modules/@tiptap/extension-bold/dist/index.js +82 -5
- package/dist/es/node_modules/@tiptap/extension-character-count/dist/index.js +9 -4
- package/dist/es/node_modules/@tiptap/extension-code/dist/index.js +57 -4
- package/dist/es/node_modules/@tiptap/extension-code-block/dist/index.js +220 -4
- package/dist/es/node_modules/@tiptap/extension-document/dist/index.js +15 -4
- package/dist/es/node_modules/@tiptap/extension-hard-break/dist/index.js +62 -4
- package/dist/es/node_modules/@tiptap/extension-heading/dist/index.js +66 -4
- package/dist/es/node_modules/@tiptap/extension-highlight/dist/index.js +88 -4
- package/dist/es/node_modules/@tiptap/extension-horizontal-rule/dist/index.js +59 -4
- package/dist/es/node_modules/@tiptap/extension-image/dist/index.js +133 -4
- package/dist/es/node_modules/@tiptap/extension-italic/dist/index.js +80 -4
- package/dist/es/node_modules/@tiptap/extension-link/dist/index.js +316 -4
- package/dist/es/node_modules/@tiptap/extension-list/dist/index.js +731 -4
- package/dist/es/node_modules/@tiptap/extension-paragraph/dist/index.js +47 -4
- package/dist/es/node_modules/@tiptap/extension-strike/dist/index.js +69 -4
- package/dist/es/node_modules/@tiptap/extension-subscript/dist/index.js +44 -4
- package/dist/es/node_modules/@tiptap/extension-superscript/dist/index.js +44 -4
- package/dist/es/node_modules/@tiptap/extension-table/dist/index.js +383 -4
- package/dist/es/node_modules/@tiptap/extension-task-item/dist/index.js +9 -4
- package/dist/es/node_modules/@tiptap/extension-task-list/dist/index.js +9 -4
- package/dist/es/node_modules/@tiptap/extension-text/dist/index.js +16 -4
- package/dist/es/node_modules/@tiptap/extension-text-align/dist/index.js +50 -4
- package/dist/es/node_modules/@tiptap/extension-text-style/dist/index.js +243 -4
- package/dist/es/node_modules/@tiptap/extension-underline/dist/index.js +68 -4
- package/dist/es/node_modules/@tiptap/extensions/dist/index.js +299 -4
- package/dist/es/node_modules/@tiptap/html/dist/index.js +28 -0
- package/dist/es/node_modules/@tiptap/starter-kit/dist/index.js +32 -4
- package/dist/es/node_modules/@tiptap/vue-3/dist/index.js +260 -4
- package/dist/es/node_modules/@vueuse/core/dist/index.js +354 -4
- package/dist/es/node_modules/@vueuse/shared/dist/index.js +139 -4
- package/dist/es/node_modules/codemirror/dist/index.js +43 -4
- package/dist/es/node_modules/crelt/index.js +30 -4
- package/dist/es/node_modules/delegate/src/closest.js +24 -4
- package/dist/es/node_modules/delegate/src/delegate.js +32 -4
- package/dist/es/node_modules/downloadjs/download.js +80 -4
- package/dist/es/node_modules/eventemitter3/index.js +114 -4
- package/dist/es/node_modules/linkifyjs/dist/linkify.js +710 -4
- package/dist/es/node_modules/lodash-es/_DataView.js +9 -4
- package/dist/es/node_modules/lodash-es/_Hash.js +23 -4
- package/dist/es/node_modules/lodash-es/_ListCache.js +23 -4
- package/dist/es/node_modules/lodash-es/_Map.js +9 -4
- package/dist/es/node_modules/lodash-es/_MapCache.js +23 -4
- package/dist/es/node_modules/lodash-es/_Promise.js +9 -4
- package/dist/es/node_modules/lodash-es/_Set.js +9 -4
- package/dist/es/node_modules/lodash-es/_SetCache.js +26 -0
- package/dist/es/node_modules/lodash-es/_Stack.js +21 -4
- package/dist/es/node_modules/lodash-es/_Symbol.js +8 -4
- package/dist/es/node_modules/lodash-es/_Uint8Array.js +8 -4
- package/dist/es/node_modules/lodash-es/_WeakMap.js +9 -4
- package/dist/es/node_modules/lodash-es/_apply.js +19 -4
- package/dist/es/node_modules/lodash-es/_arrayEach.js +11 -4
- package/dist/es/node_modules/lodash-es/_arrayFilter.js +13 -4
- package/dist/es/node_modules/lodash-es/_arrayIncludes.js +21 -0
- package/dist/es/node_modules/lodash-es/_arrayIncludesWith.js +22 -0
- package/dist/es/node_modules/lodash-es/_arrayLikeKeys.js +23 -4
- package/dist/es/node_modules/lodash-es/_arrayMap.js +11 -4
- package/dist/es/node_modules/lodash-es/_arrayPush.js +11 -4
- package/dist/es/node_modules/lodash-es/_arraySome.js +22 -0
- package/dist/es/node_modules/lodash-es/_asciiToArray.js +9 -4
- package/dist/es/node_modules/lodash-es/_assignMergeValue.js +21 -0
- package/dist/es/node_modules/lodash-es/_assignValue.js +13 -4
- package/dist/es/node_modules/lodash-es/_assocIndexOf.js +13 -4
- package/dist/es/node_modules/lodash-es/_baseAssignValue.js +15 -4
- package/dist/es/node_modules/lodash-es/_baseClone.js +57 -4
- package/dist/es/node_modules/lodash-es/_baseCreate.js +30 -0
- package/dist/es/node_modules/lodash-es/_baseFindIndex.js +22 -0
- package/dist/es/node_modules/lodash-es/_baseFlatten.js +16 -4
- package/dist/es/node_modules/lodash-es/_baseFor.js +18 -0
- package/dist/es/node_modules/lodash-es/_baseGet.js +14 -4
- package/dist/es/node_modules/lodash-es/_baseGetAllKeys.js +12 -4
- package/dist/es/node_modules/lodash-es/_baseGetTag.js +13 -4
- package/dist/es/node_modules/lodash-es/_baseIndexOf.js +22 -0
- package/dist/es/node_modules/lodash-es/_baseIntersection.js +42 -0
- package/dist/es/node_modules/lodash-es/_baseIsArguments.js +12 -4
- package/dist/es/node_modules/lodash-es/_baseIsEqual.js +21 -0
- package/dist/es/node_modules/lodash-es/_baseIsEqualDeep.js +45 -0
- package/dist/es/node_modules/lodash-es/_baseIsMap.js +12 -4
- package/dist/{lib/Grid/src/components/CellEditor.css → es/node_modules/lodash-es/_baseIsNaN.js} +9 -4
- package/dist/es/node_modules/lodash-es/_baseIsNative.js +19 -4
- package/dist/es/node_modules/lodash-es/_baseIsRegExp.js +12 -4
- package/dist/es/node_modules/lodash-es/_baseIsSet.js +12 -4
- package/dist/es/node_modules/lodash-es/_baseIsTypedArray.js +15 -4
- package/dist/es/node_modules/lodash-es/_baseKeys.js +27 -0
- package/dist/es/node_modules/lodash-es/_baseKeysIn.js +18 -4
- package/dist/es/node_modules/lodash-es/_baseMerge.js +33 -0
- package/dist/es/node_modules/lodash-es/_baseMergeDeep.js +44 -0
- package/dist/es/node_modules/lodash-es/_baseRest.js +22 -0
- package/dist/es/node_modules/lodash-es/_baseSetToString.js +17 -4
- package/dist/es/node_modules/lodash-es/_baseSlice.js +13 -4
- package/dist/es/node_modules/lodash-es/_baseTimes.js +11 -4
- package/dist/es/node_modules/lodash-es/_baseToString.js +21 -4
- package/dist/es/node_modules/lodash-es/_baseUnary.js +11 -4
- package/dist/es/node_modules/lodash-es/_baseUniq.js +46 -0
- package/dist/es/node_modules/lodash-es/_baseUnset.js +31 -4
- package/dist/es/node_modules/{@tanstack/store/dist/esm/types.js → lodash-es/_cacheHas.js} +9 -4
- package/dist/es/node_modules/lodash-es/_castArrayLikeObject.js +20 -0
- package/dist/es/node_modules/lodash-es/_castPath.js +13 -4
- package/dist/es/node_modules/lodash-es/_castSlice.js +11 -4
- package/dist/es/node_modules/lodash-es/_cloneArrayBuffer.js +11 -4
- package/dist/es/node_modules/lodash-es/_cloneBuffer.js +14 -4
- package/dist/es/node_modules/lodash-es/_cloneDataView.js +11 -4
- package/dist/es/node_modules/lodash-es/_cloneRegExp.js +11 -4
- package/dist/es/node_modules/lodash-es/_cloneSymbol.js +11 -4
- package/dist/es/node_modules/lodash-es/_cloneTypedArray.js +11 -4
- package/dist/es/node_modules/lodash-es/_copyArray.js +22 -0
- package/dist/es/node_modules/lodash-es/_copyObject.js +17 -4
- package/dist/es/node_modules/lodash-es/_coreJsData.js +8 -4
- package/dist/es/node_modules/lodash-es/_createAssigner.js +28 -0
- package/dist/es/node_modules/lodash-es/_createBaseFor.js +26 -0
- package/dist/es/node_modules/lodash-es/_createCaseFirst.js +17 -4
- package/dist/es/node_modules/lodash-es/_createSet.js +22 -0
- package/dist/es/node_modules/lodash-es/_customOmitClone.js +10 -4
- package/dist/es/node_modules/lodash-es/_defineProperty.js +14 -4
- package/dist/es/node_modules/lodash-es/_equalArrays.js +53 -0
- package/dist/es/node_modules/lodash-es/_equalByTag.js +58 -0
- package/dist/es/node_modules/lodash-es/_equalObjects.js +49 -0
- package/dist/es/node_modules/lodash-es/_flatRest.js +12 -4
- package/dist/es/node_modules/lodash-es/_freeGlobal.js +7 -4
- package/dist/es/node_modules/lodash-es/_getAllKeys.js +22 -0
- package/dist/es/node_modules/lodash-es/_getAllKeysIn.js +12 -4
- package/dist/es/node_modules/lodash-es/_getMapData.js +11 -4
- package/dist/es/node_modules/lodash-es/_getNative.js +12 -4
- package/dist/es/node_modules/lodash-es/_getPrototype.js +8 -4
- package/dist/es/node_modules/lodash-es/_getRawTag.js +18 -4
- package/dist/es/node_modules/lodash-es/_getSymbols.js +13 -4
- package/dist/es/node_modules/lodash-es/_getSymbolsIn.js +15 -4
- package/dist/es/node_modules/lodash-es/_getTag.js +31 -4
- package/dist/es/node_modules/lodash-es/_getValue.js +9 -4
- package/dist/es/node_modules/lodash-es/_hasUnicode.js +10 -4
- package/dist/es/node_modules/lodash-es/_hashClear.js +10 -4
- package/dist/es/node_modules/lodash-es/_hashDelete.js +10 -4
- package/dist/es/node_modules/lodash-es/_hashGet.js +16 -4
- package/dist/es/node_modules/lodash-es/_hashHas.js +12 -4
- package/dist/es/node_modules/lodash-es/_hashSet.js +12 -4
- package/dist/es/node_modules/lodash-es/_initCloneArray.js +11 -4
- package/dist/es/node_modules/lodash-es/_initCloneByTag.js +45 -4
- package/dist/es/node_modules/lodash-es/_initCloneObject.js +22 -0
- package/dist/es/node_modules/lodash-es/_isFlattenable.js +13 -4
- package/dist/es/node_modules/lodash-es/_isIndex.js +11 -4
- package/dist/es/node_modules/lodash-es/_isIterateeCall.js +26 -0
- package/dist/es/node_modules/lodash-es/_isKey.js +15 -4
- package/dist/es/node_modules/lodash-es/_isKeyable.js +10 -4
- package/dist/es/node_modules/lodash-es/_isMasked.js +14 -4
- package/dist/es/node_modules/lodash-es/_isPrototype.js +11 -4
- package/dist/es/node_modules/lodash-es/_listCacheClear.js +9 -4
- package/dist/es/node_modules/lodash-es/_listCacheDelete.js +15 -4
- package/dist/es/node_modules/lodash-es/_listCacheGet.js +11 -4
- package/dist/es/node_modules/lodash-es/_listCacheHas.js +10 -4
- package/dist/es/node_modules/lodash-es/_listCacheSet.js +11 -4
- package/dist/es/node_modules/lodash-es/_mapCacheClear.js +16 -4
- package/dist/es/node_modules/lodash-es/_mapCacheDelete.js +11 -4
- package/dist/es/node_modules/lodash-es/_mapCacheGet.js +10 -4
- package/dist/es/node_modules/lodash-es/_mapCacheHas.js +10 -4
- package/dist/es/node_modules/lodash-es/_mapCacheSet.js +11 -4
- package/dist/es/node_modules/lodash-es/_mapToArray.js +22 -0
- package/dist/es/node_modules/lodash-es/_memoizeCapped.js +14 -4
- package/dist/es/node_modules/lodash-es/_nativeCreate.js +8 -4
- package/dist/es/node_modules/lodash-es/_nativeKeys.js +18 -0
- package/dist/es/node_modules/lodash-es/_nativeKeysIn.js +13 -4
- package/dist/es/node_modules/lodash-es/_nodeUtil.js +14 -4
- package/dist/es/node_modules/lodash-es/_objectToString.js +10 -4
- package/dist/es/node_modules/lodash-es/_overArg.js +11 -4
- package/dist/es/node_modules/lodash-es/_overRest.js +18 -4
- package/dist/es/node_modules/lodash-es/_parent.js +11 -4
- package/dist/es/node_modules/lodash-es/_root.js +8 -4
- package/dist/es/node_modules/lodash-es/_safeGet.js +20 -0
- package/dist/es/node_modules/lodash-es/_setCacheAdd.js +20 -0
- package/dist/es/node_modules/lodash-es/_setCacheHas.js +19 -0
- package/dist/es/node_modules/lodash-es/_setToArray.js +22 -0
- package/dist/es/node_modules/lodash-es/_setToString.js +9 -4
- package/dist/es/node_modules/lodash-es/_shortOut.js +19 -4
- package/dist/es/node_modules/lodash-es/_stackClear.js +10 -4
- package/dist/es/node_modules/lodash-es/_stackDelete.js +10 -4
- package/dist/es/node_modules/lodash-es/_stackGet.js +9 -4
- package/dist/es/node_modules/lodash-es/_stackHas.js +9 -4
- package/dist/es/node_modules/lodash-es/_stackSet.js +20 -4
- package/dist/es/node_modules/lodash-es/_strictIndexOf.js +22 -0
- package/dist/es/node_modules/lodash-es/_stringToArray.js +12 -4
- package/dist/es/node_modules/lodash-es/_stringToPath.js +13 -4
- package/dist/es/node_modules/lodash-es/_toKey.js +13 -4
- package/dist/es/node_modules/lodash-es/_toSource.js +20 -4
- package/dist/es/node_modules/lodash-es/_unicodeToArray.js +10 -4
- package/dist/es/node_modules/lodash-es/constant.js +11 -4
- package/dist/es/node_modules/lodash-es/eq.js +9 -4
- package/dist/es/node_modules/lodash-es/flatten.js +11 -4
- package/dist/es/node_modules/lodash-es/get.js +11 -4
- package/dist/es/node_modules/lodash-es/identity.js +9 -4
- package/dist/es/node_modules/lodash-es/intersectionWith.js +25 -0
- package/dist/es/node_modules/lodash-es/isArguments.js +13 -4
- package/dist/es/node_modules/lodash-es/isArray.js +7 -4
- package/dist/es/node_modules/lodash-es/isArrayLike.js +11 -4
- package/dist/es/node_modules/lodash-es/isArrayLikeObject.js +21 -0
- package/dist/es/node_modules/lodash-es/isBuffer.js +9 -4
- package/dist/es/node_modules/lodash-es/isEqual.js +20 -0
- package/dist/es/node_modules/lodash-es/isFinite.js +11 -4
- package/dist/es/node_modules/lodash-es/isFunction.js +15 -4
- package/dist/es/node_modules/lodash-es/isLength.js +10 -4
- package/dist/es/node_modules/lodash-es/isMap.js +10 -4
- package/dist/es/node_modules/lodash-es/isNaN.js +10 -4
- package/dist/es/node_modules/lodash-es/isNil.js +9 -4
- package/dist/es/node_modules/lodash-es/isNumber.js +12 -4
- package/dist/es/node_modules/lodash-es/isObject.js +10 -4
- package/dist/es/node_modules/lodash-es/isObjectLike.js +9 -4
- package/dist/es/node_modules/lodash-es/isPlainObject.js +19 -4
- package/dist/es/node_modules/lodash-es/isRegExp.js +10 -4
- package/dist/es/node_modules/lodash-es/isSet.js +10 -4
- package/dist/es/node_modules/lodash-es/isString.js +13 -4
- package/dist/es/node_modules/lodash-es/isSymbol.js +12 -4
- package/dist/es/node_modules/lodash-es/isTypedArray.js +10 -4
- package/dist/es/node_modules/lodash-es/keys.js +22 -0
- package/dist/es/node_modules/lodash-es/keysIn.js +12 -4
- package/dist/es/node_modules/lodash-es/last.js +10 -4
- package/dist/es/node_modules/lodash-es/memoize.js +21 -4
- package/dist/es/node_modules/lodash-es/mergeWith.js +21 -0
- package/dist/es/node_modules/lodash-es/noop.js +18 -0
- package/dist/es/node_modules/lodash-es/omit.js +26 -4
- package/dist/es/node_modules/lodash-es/stubArray.js +9 -4
- package/dist/es/node_modules/lodash-es/stubFalse.js +9 -4
- package/dist/es/node_modules/lodash-es/toPlainObject.js +21 -0
- package/dist/es/node_modules/lodash-es/toString.js +10 -4
- package/dist/es/node_modules/lodash-es/unionWith.js +25 -0
- package/dist/es/node_modules/lodash-es/upperFirst.js +8 -4
- package/dist/es/node_modules/orderedmap/dist/index.js +106 -4
- package/dist/es/node_modules/path-to-regexp/dist/index.js +275 -0
- package/dist/es/node_modules/prosemirror-commands/dist/index.js +391 -4
- package/dist/es/node_modules/prosemirror-dropcursor/dist/index.js +89 -4
- package/dist/es/node_modules/prosemirror-gapcursor/dist/index.js +207 -4
- package/dist/es/node_modules/prosemirror-history/dist/index.js +251 -4
- package/dist/es/node_modules/prosemirror-keymap/dist/index.js +65 -4
- package/dist/es/node_modules/prosemirror-model/dist/index.js +2736 -4
- package/dist/es/node_modules/prosemirror-schema-list/dist/index.js +91 -4
- package/dist/es/node_modules/prosemirror-state/dist/index.js +825 -4
- package/dist/es/node_modules/prosemirror-tables/dist/index.js +1449 -4
- package/dist/es/node_modules/prosemirror-transform/dist/index.js +1539 -4
- package/dist/es/node_modules/prosemirror-view/dist/index.js +3797 -4
- package/dist/es/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js +300 -0
- package/dist/es/node_modules/rope-sequence/dist/index.js +103 -4
- package/dist/es/node_modules/sortablejs/modular/sortable.esm.js +1283 -0
- package/dist/es/node_modules/style-mod/src/style-mod.js +112 -4
- package/dist/es/{Grid → node_modules/title-case/dist}/index.js +10 -4
- package/dist/es/node_modules/vue-codemirror/dist/vue-codemirror.esm.js +135 -4
- package/dist/es/node_modules/w3c-keyname/index.js +96 -4
- package/dist/es/node_modules/xgplayer/dist/index.min.css +3 -3
- package/dist/es/node_modules/xgplayer/es/_virtual/_rollupPluginBabelHelpers.js +200 -4
- package/dist/es/node_modules/xgplayer/es/constant.js +10 -4
- package/dist/es/node_modules/xgplayer/es/defaultConfig.js +90 -4
- package/dist/es/node_modules/xgplayer/es/error.js +67 -4
- package/dist/es/node_modules/xgplayer/es/events.js +70 -4
- package/dist/es/node_modules/xgplayer/es/index.umd.js +48 -4
- package/dist/es/node_modules/xgplayer/es/instManager.js +104 -4
- package/dist/es/node_modules/xgplayer/es/lang/en.js +82 -4
- package/dist/es/node_modules/xgplayer/es/lang/i18n.js +78 -4
- package/dist/es/node_modules/xgplayer/es/lang/jp.js +82 -4
- package/dist/es/node_modules/xgplayer/es/lang/zh-cn.js +82 -4
- package/dist/es/node_modules/xgplayer/es/mediaProxy.js +469 -4
- package/dist/es/node_modules/xgplayer/es/player.js +1243 -4
- package/dist/es/node_modules/xgplayer/es/plugin/basePlugin.js +210 -4
- package/dist/es/node_modules/xgplayer/es/plugin/hooksDescriptor.js +133 -4
- package/dist/es/node_modules/xgplayer/es/plugin/plugin.js +369 -4
- package/dist/es/node_modules/xgplayer/es/plugin/pluginsManager.js +207 -4
- package/dist/es/node_modules/xgplayer/es/plugin/preset.js +17 -4
- package/dist/es/node_modules/xgplayer/es/plugin/resizeObserver.js +84 -4
- package/dist/es/node_modules/xgplayer/es/plugins/assets/back.js +13 -4
- package/dist/es/node_modules/xgplayer/es/plugins/assets/download.js +23 -4
- package/dist/es/node_modules/xgplayer/es/plugins/assets/exitCssFull.js +12 -4
- package/dist/es/node_modules/xgplayer/es/plugins/assets/exitFull.js +12 -4
- package/dist/es/node_modules/xgplayer/es/plugins/assets/loading.js +12 -4
- package/dist/es/node_modules/xgplayer/es/plugins/assets/pause.js +12 -4
- package/dist/es/node_modules/xgplayer/es/plugins/assets/pipIcon.js +13 -4
- package/dist/es/node_modules/xgplayer/es/plugins/assets/pipIconExit.js +16 -4
- package/dist/es/node_modules/xgplayer/es/plugins/assets/play.js +12 -4
- package/dist/es/node_modules/xgplayer/es/plugins/assets/playNext.js +12 -4
- package/dist/es/node_modules/xgplayer/es/plugins/assets/replay.js +12 -4
- package/dist/es/node_modules/xgplayer/es/plugins/assets/requestCssFull.js +12 -4
- package/dist/es/node_modules/xgplayer/es/plugins/assets/requestFull.js +12 -4
- package/dist/es/node_modules/xgplayer/es/plugins/assets/rotate.js +20 -4
- package/dist/es/node_modules/xgplayer/es/plugins/assets/seekicon.js +15 -4
- package/dist/es/node_modules/xgplayer/es/plugins/assets/volumeLarge.js +13 -4
- package/dist/es/node_modules/xgplayer/es/plugins/assets/volumeMuted.js +13 -4
- package/dist/es/node_modules/xgplayer/es/plugins/assets/volumeSmall.js +13 -4
- package/dist/es/node_modules/xgplayer/es/plugins/common/iconPlugin.js +38 -4
- package/dist/es/node_modules/xgplayer/es/plugins/common/iconTools.js +15 -4
- package/dist/es/node_modules/xgplayer/es/plugins/common/optionList.js +82 -4
- package/dist/es/node_modules/xgplayer/es/plugins/common/optionsIcon.js +196 -4
- package/dist/es/node_modules/xgplayer/es/plugins/common/thumbnail.js +144 -4
- package/dist/es/node_modules/xgplayer/es/plugins/controls/index.js +174 -4
- package/dist/es/node_modules/xgplayer/es/plugins/cssFullScreen/index.js +108 -4
- package/dist/es/node_modules/xgplayer/es/plugins/definition/index.js +113 -4
- package/dist/es/node_modules/xgplayer/es/plugins/download/index.js +86 -4
- package/dist/es/node_modules/xgplayer/es/plugins/dynamicBg/index.js +235 -5
- package/dist/es/node_modules/xgplayer/es/plugins/enter/index.js +45 -4
- package/dist/es/node_modules/xgplayer/es/plugins/error/index.js +71 -4
- package/dist/es/node_modules/xgplayer/es/plugins/fpsDetect/index.js +119 -4
- package/dist/es/node_modules/xgplayer/es/plugins/fullscreen/backicon.js +71 -4
- package/dist/es/node_modules/xgplayer/es/plugins/fullscreen/index.js +153 -4
- package/dist/es/node_modules/xgplayer/es/plugins/gapJump/index.js +99 -4
- package/dist/es/node_modules/xgplayer/es/plugins/keyboard/index.js +302 -4
- package/dist/es/node_modules/xgplayer/es/plugins/loading/index.js +49 -4
- package/dist/es/node_modules/xgplayer/es/plugins/logger/index.js +174 -5
- package/dist/es/node_modules/xgplayer/es/plugins/miniScreen/index.js +172 -4
- package/dist/es/node_modules/xgplayer/es/plugins/miniScreen/miniScreenIcon.js +58 -4
- package/dist/es/node_modules/xgplayer/es/plugins/mobile/index.js +446 -4
- package/dist/es/node_modules/xgplayer/es/plugins/mobile/touch.js +141 -4
- package/dist/es/node_modules/xgplayer/es/plugins/pc/index.js +125 -4
- package/dist/es/node_modules/xgplayer/es/plugins/pip/index.js +219 -4
- package/dist/es/node_modules/xgplayer/es/plugins/play/index.js +105 -4
- package/dist/es/node_modules/xgplayer/es/plugins/playNext/index.js +81 -4
- package/dist/es/node_modules/xgplayer/es/plugins/playbackRate/index.js +103 -4
- package/dist/es/node_modules/xgplayer/es/plugins/poster/index.js +122 -4
- package/dist/es/node_modules/xgplayer/es/plugins/progress/index.js +434 -4
- package/dist/es/node_modules/xgplayer/es/plugins/progress/innerList.js +218 -4
- package/dist/es/node_modules/xgplayer/es/plugins/progress/miniProgress.js +96 -4
- package/dist/es/node_modules/xgplayer/es/plugins/progressPreview/dotsApi.js +178 -4
- package/dist/es/node_modules/xgplayer/es/plugins/progressPreview/index.js +295 -4
- package/dist/es/node_modules/xgplayer/es/plugins/prompt/index.js +89 -4
- package/dist/es/node_modules/xgplayer/es/plugins/replay/index.js +95 -4
- package/dist/es/node_modules/xgplayer/es/plugins/rotate/index.js +109 -4
- package/dist/es/node_modules/xgplayer/es/plugins/screenShot/index.js +137 -4
- package/dist/es/node_modules/xgplayer/es/plugins/start/index.js +225 -4
- package/dist/es/node_modules/xgplayer/es/plugins/stats/index.js +155 -4
- package/dist/es/node_modules/xgplayer/es/plugins/testspeed/index.js +137 -4
- package/dist/es/node_modules/xgplayer/es/plugins/time/index.js +167 -4
- package/dist/es/node_modules/xgplayer/es/plugins/time/timesegments.js +149 -4
- package/dist/es/node_modules/xgplayer/es/plugins/volume/index.js +209 -4
- package/dist/es/node_modules/xgplayer/es/plugins/waitingTimeoutJump/index.js +56 -4
- package/dist/es/node_modules/xgplayer/es/presets/default.js +64 -4
- package/dist/es/node_modules/xgplayer/es/state.js +16 -4
- package/dist/es/node_modules/xgplayer/es/stateClassMap.js +37 -4
- package/dist/es/node_modules/xgplayer/es/utils/database.js +86 -4
- package/dist/es/node_modules/xgplayer/es/utils/debug.js +37 -4
- package/dist/es/node_modules/xgplayer/es/utils/draggabilly.js +274 -4
- package/dist/es/node_modules/xgplayer/es/utils/sniffer.js +114 -4
- package/dist/es/node_modules/xgplayer/es/utils/util.js +520 -4
- package/dist/es/node_modules/xgplayer/es/utils/xgplayerTimeRange.js +28 -4
- package/dist/es/node_modules/xgplayer/es/version.js +7 -4
- package/dist/es/packages/components/index.js +88 -4
- package/dist/es/packages/hooks/dist/index.js +81 -0
- package/dist/es/packages/utils/dist/index.js +599 -0
- package/dist/es/styles/tokens.css +3 -3
- package/dist/lib/Button/index.js +4 -4
- package/dist/lib/Button/src/Button.css +3 -3
- package/dist/lib/Button/src/Button.vue.js +4 -4
- package/dist/lib/Button/src/Button2.css +3 -3
- package/dist/lib/CodeEditor/index.js +4 -4
- package/dist/lib/CodeEditor/src/index.css +4 -4
- package/dist/lib/CodeEditor/src/index.vue.js +4 -4
- package/dist/lib/CodeEditor/src/index2.css +3 -3
- package/dist/lib/CodeEditor/src/index3.css +4 -4
- package/dist/lib/ConfigProvider/index.js +4 -4
- package/dist/lib/ConfigProvider/src/configProvider.js +4 -4
- package/dist/lib/ConfigProvider/src/configProviderProps.js +4 -4
- package/dist/lib/ConfigProvider/src/constants.js +4 -4
- package/dist/lib/ConfigProvider/src/useGlobalConfig.js +4 -4
- package/dist/lib/CountTo/index.js +4 -4
- package/dist/lib/CountTo/src/index.css +3 -3
- package/dist/lib/CountTo/src/index.vue.js +4 -4
- package/dist/lib/Ellipsis/index.js +4 -4
- package/dist/lib/Ellipsis/src/components/JsEllipsis.css +3 -3
- package/dist/lib/Ellipsis/src/components/JsEllipsis.vue.js +4 -4
- package/dist/lib/Ellipsis/src/components/NativeEllipsis.css +3 -3
- package/dist/lib/Ellipsis/src/components/NativeEllipsis.vue.js +4 -4
- package/dist/lib/Ellipsis/src/components/NativeEllipsis2.css +3 -3
- package/dist/lib/Ellipsis/src/index.css +3 -3
- package/dist/lib/Ellipsis/src/index.vue.js +4 -4
- package/dist/lib/Ellipsis/src/utils/utils.js +4 -4
- package/dist/lib/Form/index.js +4 -4
- package/dist/lib/Form/src/Form.css +3 -3
- package/dist/lib/Form/src/Form.vue.js +4 -4
- package/dist/lib/Form/src/Form2.css +3 -3
- package/dist/lib/Form/src/styles/form.css +3 -3
- package/dist/lib/Marquee/index.js +4 -4
- package/dist/lib/Marquee/src/index.css +3 -3
- package/dist/lib/Marquee/src/index.vue.js +4 -4
- package/dist/lib/Marquee/src/index2.css +3 -3
- package/dist/lib/Overlay/index.js +4 -4
- package/dist/lib/Overlay/src/Message.css +3 -3
- package/dist/lib/Overlay/src/Message.vue.js +4 -4
- package/dist/lib/Overlay/src/Message2.css +3 -3
- package/dist/lib/Overlay/src/Modal.css +3 -3
- package/dist/lib/Overlay/src/Modal.vue.js +4 -4
- package/dist/lib/Overlay/src/Modal2.css +3 -3
- package/dist/lib/Overlay/src/Notice.css +3 -3
- package/dist/lib/Overlay/src/Notice.vue.js +4 -4
- package/dist/lib/Overlay/src/Notice2.css +3 -3
- package/dist/lib/Overlay/src/Tooltip.css +3 -3
- package/dist/lib/Overlay/src/Tooltip.vue.js +4 -4
- package/dist/lib/Overlay/src/Tooltip2.css +3 -3
- package/dist/lib/RichTextEditor/index.js +4 -4
- package/dist/lib/RichTextEditor/src/ToolbarPanel.css +3 -3
- package/dist/lib/RichTextEditor/src/ToolbarPanel.vue.js +4 -4
- package/dist/lib/RichTextEditor/src/ToolbarPanel2.css +3 -3
- package/dist/lib/RichTextEditor/src/components/BlockquoteButton.css +4 -4
- package/dist/lib/RichTextEditor/src/components/BlockquoteButton.vue.js +4 -4
- package/dist/lib/RichTextEditor/src/components/CodeBlockButton.css +4 -4
- package/dist/lib/RichTextEditor/src/components/CodeBlockButton.vue.js +4 -4
- package/dist/lib/RichTextEditor/src/components/ColorHighlightPopover.css +3 -3
- package/dist/lib/RichTextEditor/src/components/ColorHighlightPopover.vue.js +4 -4
- package/dist/lib/RichTextEditor/src/components/FontSizeDropdownMenu.css +3 -3
- package/dist/lib/RichTextEditor/src/components/FontSizeDropdownMenu.vue.js +4 -4
- package/dist/lib/RichTextEditor/src/components/HeadingDropdownMenu.css +3 -3
- package/dist/lib/RichTextEditor/src/components/HeadingDropdownMenu.vue.js +4 -4
- package/dist/lib/RichTextEditor/src/components/ImageUploadButton.css +4 -4
- package/dist/lib/RichTextEditor/src/components/ImageUploadButton.vue.js +4 -4
- package/dist/lib/RichTextEditor/src/components/LinkPopover.css +4 -4
- package/dist/lib/RichTextEditor/src/components/LinkPopover.vue.js +4 -4
- package/dist/lib/RichTextEditor/src/components/LinkPopover2.css +4 -4
- package/dist/lib/RichTextEditor/src/components/ListDropdownMenu.css +3 -3
- package/dist/lib/RichTextEditor/src/components/ListDropdownMenu.vue.js +4 -4
- package/dist/lib/RichTextEditor/src/components/MarkButton.css +4 -4
- package/dist/lib/RichTextEditor/src/components/MarkButton.vue.js +4 -4
- package/dist/lib/RichTextEditor/src/components/TableButton.css +3 -3
- package/dist/lib/RichTextEditor/src/components/TableButton.vue.js +4 -4
- package/dist/lib/RichTextEditor/src/components/TextAlignDropdownMenu.css +3 -3
- package/dist/lib/RichTextEditor/src/components/TextAlignDropdownMenu.vue.js +4 -4
- package/dist/lib/RichTextEditor/src/components/TextColorPopover.css +3 -3
- package/dist/lib/RichTextEditor/src/components/TextColorPopover.vue.js +4 -4
- package/dist/lib/RichTextEditor/src/components/ToolbarGroup.css +3 -3
- package/dist/lib/RichTextEditor/src/components/ToolbarGroup.vue.js +4 -4
- package/dist/lib/RichTextEditor/src/components/ToolbarSeparator.css +3 -3
- package/dist/lib/RichTextEditor/src/components/ToolbarSeparator.vue.js +4 -4
- package/dist/lib/RichTextEditor/src/components/UndoRedoButton.css +4 -4
- package/dist/lib/RichTextEditor/src/components/UndoRedoButton.vue.js +4 -4
- package/dist/lib/RichTextEditor/src/components/VideoUploadButton.css +4 -4
- package/dist/lib/RichTextEditor/src/components/VideoUploadButton.vue.js +4 -4
- package/dist/lib/RichTextEditor/src/components/basic/ColorPicker.css +4 -4
- package/dist/lib/RichTextEditor/src/components/basic/ColorPicker.vue.js +4 -4
- package/dist/lib/RichTextEditor/src/components/basic/MediaUploadModal.css +3 -3
- package/dist/lib/RichTextEditor/src/components/basic/MediaUploadModal.vue.js +4 -4
- package/dist/lib/RichTextEditor/src/components/basic/MediaUploadModal2.css +3 -3
- package/dist/lib/RichTextEditor/src/components/basic/SelectMenu.css +4 -4
- package/dist/lib/RichTextEditor/src/components/basic/SelectMenu.vue.js +4 -4
- package/dist/lib/RichTextEditor/src/components/basic/SelectMenu2.css +4 -4
- package/dist/lib/RichTextEditor/src/constant/index.js +4 -4
- package/dist/lib/RichTextEditor/src/extensions/video.js +4 -4
- package/dist/lib/RichTextEditor/src/index.css +4 -4
- package/dist/lib/RichTextEditor/src/index.vue.js +4 -4
- package/dist/lib/RichTextEditor/src/index2.css +4 -4
- package/dist/lib/RichTextEditor/src/props.js +4 -4
- package/dist/lib/ScaleScreen/index.js +4 -4
- package/dist/lib/ScaleScreen/src/index.css +3 -3
- package/dist/lib/ScaleScreen/src/index.vue.js +4 -4
- package/dist/lib/ScaleScreen/src/index2.css +3 -3
- package/dist/lib/Transition/index.js +4 -4
- package/dist/lib/Transition/src/CollapseTransition.css +3 -3
- package/dist/lib/Transition/src/CollapseTransition.vue.js +4 -4
- package/dist/lib/Transition/src/CollapseTransition2.css +3 -3
- package/dist/lib/Transition/src/CreateTransition.js +4 -4
- package/dist/lib/Transition/src/ExpandTransition.js +4 -4
- package/dist/lib/Transition/src/style/index.css +3 -3
- package/dist/lib/Transition/style.js +4 -4
- package/dist/lib/VideoBackground/index.js +4 -4
- package/dist/lib/VideoBackground/src/helper.js +4 -4
- package/dist/lib/VideoBackground/src/index.css +3 -3
- package/dist/lib/VideoBackground/src/index.vue.js +4 -4
- package/dist/lib/VideoBackground/src/index2.css +3 -3
- package/dist/lib/VideoBackground/src/index3.css +3 -3
- package/dist/lib/VideoBackground/src/videoBackground.js +4 -4
- package/dist/lib/VideoPlayer/index.js +4 -4
- package/dist/lib/VideoPlayer/src/index.css +3 -3
- package/dist/lib/VideoPlayer/src/index.vue.js +4 -4
- package/dist/lib/VirtualScroll/index.js +4 -4
- package/dist/lib/VirtualScroll/src/index.css +3 -3
- package/dist/lib/VirtualScroll/src/index.vue.js +4 -4
- package/dist/lib/VirtualScroll/src/index.vue2.js +4 -4
- package/dist/lib/VirtualScroll/src/index2.css +3 -3
- package/dist/lib/_virtual/_commonjsHelpers.js +4 -4
- package/dist/lib/_virtual/_plugin-vue_export-helper.js +4 -4
- package/dist/lib/_virtual/delegate.js +4 -4
- package/dist/lib/_virtual/download.js +4 -4
- package/dist/lib/_virtual/download2.js +4 -4
- package/dist/lib/_virtual/index.js +4 -4
- package/dist/lib/_virtual/index2.js +4 -4
- package/dist/lib/_virtual/index3.js +14 -0
- package/dist/lib/{node_modules/@tanstack/store/dist/esm/types.js → _virtual/index4.js} +4 -4
- package/dist/lib/hooks/useLocale.js +4 -4
- package/dist/lib/hooks/useNamespace.js +4 -4
- package/dist/lib/index.js +4 -4
- package/dist/lib/locale/lang/en-US.js +4 -4
- package/dist/lib/locale/lang/ja-JP.js +4 -4
- package/dist/lib/locale/lang/zh-CN.js +4 -4
- package/dist/lib/node_modules/@codemirror/autocomplete/dist/index.js +4 -4
- package/dist/lib/node_modules/@codemirror/commands/dist/index.js +4 -4
- package/dist/lib/node_modules/@codemirror/lang-java/dist/index.js +4 -4
- package/dist/lib/node_modules/@codemirror/lang-javascript/dist/index.js +16 -4
- package/dist/lib/node_modules/@codemirror/lang-json/dist/index.js +4 -4
- package/dist/lib/node_modules/@codemirror/lang-python/dist/index.js +6 -4
- package/dist/lib/node_modules/@codemirror/lang-sql/dist/index.js +5 -4
- package/dist/lib/node_modules/@codemirror/lang-xml/dist/index.js +4 -4
- package/dist/lib/node_modules/@codemirror/lang-yaml/dist/index.js +4 -4
- package/dist/lib/node_modules/@codemirror/language/dist/index.js +4 -4
- package/dist/lib/node_modules/@codemirror/lint/dist/index.js +4 -4
- package/dist/lib/node_modules/@codemirror/search/dist/index.js +5 -4
- package/dist/lib/node_modules/@codemirror/state/dist/index.js +8 -4
- package/dist/lib/node_modules/@codemirror/theme-one-dark/dist/index.js +4 -4
- package/dist/lib/node_modules/@codemirror/view/dist/index.js +8 -4
- package/dist/lib/node_modules/@lezer/common/dist/index.js +4 -4
- package/dist/lib/node_modules/@lezer/highlight/dist/index.js +4 -4
- package/dist/lib/node_modules/@lezer/java/dist/index.js +4 -4
- package/dist/lib/node_modules/@lezer/javascript/dist/index.js +4 -4
- package/dist/lib/node_modules/@lezer/json/dist/index.js +4 -4
- package/dist/lib/node_modules/@lezer/lr/dist/index.js +4 -4
- package/dist/lib/node_modules/@lezer/python/dist/index.js +4 -4
- package/dist/lib/node_modules/@lezer/xml/dist/index.js +4 -4
- package/dist/lib/node_modules/@lezer/yaml/dist/index.js +4 -4
- package/dist/lib/node_modules/@marijn/find-cluster-break/src/index.js +4 -4
- package/dist/lib/node_modules/@tanstack/devtools-event-client/dist/esm/plugin.js +4 -4
- package/dist/lib/node_modules/@tanstack/form-core/dist/esm/EventClient.js +4 -4
- package/dist/lib/node_modules/@tanstack/form-core/dist/esm/FieldApi.js +4 -4
- package/dist/lib/node_modules/@tanstack/form-core/dist/esm/FormApi.js +4 -4
- package/dist/lib/node_modules/@tanstack/form-core/dist/esm/ValidationLogic.js +4 -4
- package/dist/lib/node_modules/@tanstack/form-core/dist/esm/metaHelper.js +4 -4
- package/dist/lib/node_modules/@tanstack/form-core/dist/esm/standardSchemaValidator.js +4 -4
- package/dist/lib/node_modules/@tanstack/form-core/dist/esm/utils.js +4 -4
- package/dist/lib/node_modules/@tanstack/pacer-lite/dist/lite-throttler.js +4 -4
- package/dist/lib/node_modules/@tanstack/store/dist/esm/alien.js +14 -0
- package/dist/lib/node_modules/@tanstack/store/dist/esm/atom.js +14 -0
- package/dist/lib/node_modules/@tanstack/store/dist/esm/batch.js +14 -0
- package/dist/lib/node_modules/@tanstack/store/dist/esm/store.js +4 -4
- package/dist/lib/node_modules/@tanstack/vue-form/dist/esm/useField.js +4 -4
- package/dist/lib/node_modules/@tanstack/vue-form/dist/esm/useForm.js +4 -4
- package/dist/lib/node_modules/@tanstack/vue-store/dist/esm/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/core/dist/index.js +94 -4
- package/dist/lib/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js +4 -4
- package/dist/lib/node_modules/@tiptap/extension-blockquote/dist/index.js +8 -4
- package/dist/lib/node_modules/@tiptap/extension-bold/dist/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/extension-character-count/dist/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/extension-code/dist/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/extension-code-block/dist/index.js +21 -4
- package/dist/lib/node_modules/@tiptap/extension-document/dist/index.js +6 -4
- package/dist/lib/node_modules/@tiptap/extension-hard-break/dist/index.js +6 -4
- package/dist/lib/node_modules/@tiptap/extension-heading/dist/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/extension-highlight/dist/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/extension-horizontal-rule/dist/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/extension-image/dist/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/extension-italic/dist/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/extension-link/dist/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/extension-list/dist/index.js +15 -4
- package/dist/lib/node_modules/@tiptap/extension-paragraph/dist/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/extension-strike/dist/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/extension-subscript/dist/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/extension-superscript/dist/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/extension-table/dist/index.js +8 -4
- package/dist/lib/node_modules/@tiptap/extension-task-item/dist/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/extension-task-list/dist/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/extension-text/dist/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/extension-text-align/dist/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/extension-text-style/dist/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/extension-underline/dist/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/extensions/dist/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/html/dist/index.js +14 -0
- package/dist/lib/node_modules/@tiptap/starter-kit/dist/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/vue-3/dist/index.js +4 -4
- package/dist/lib/node_modules/@vueuse/core/dist/index.js +4 -4
- package/dist/lib/node_modules/@vueuse/shared/dist/index.js +4 -4
- package/dist/lib/node_modules/codemirror/dist/index.js +4 -4
- package/dist/lib/node_modules/crelt/index.js +4 -4
- package/dist/lib/node_modules/delegate/src/closest.js +4 -4
- package/dist/lib/node_modules/delegate/src/delegate.js +4 -4
- package/dist/lib/node_modules/downloadjs/download.js +6 -4
- package/dist/lib/node_modules/eventemitter3/index.js +4 -4
- package/dist/lib/node_modules/linkifyjs/dist/linkify.js +8 -4
- package/dist/lib/node_modules/lodash-es/_DataView.js +4 -4
- package/dist/lib/node_modules/lodash-es/_Hash.js +4 -4
- package/dist/lib/node_modules/lodash-es/_ListCache.js +4 -4
- package/dist/lib/node_modules/lodash-es/_Map.js +4 -4
- package/dist/lib/node_modules/lodash-es/_MapCache.js +4 -4
- package/dist/lib/node_modules/lodash-es/_Promise.js +4 -4
- package/dist/lib/node_modules/lodash-es/_Set.js +4 -4
- package/dist/lib/node_modules/lodash-es/_SetCache.js +14 -0
- package/dist/lib/node_modules/lodash-es/_Stack.js +4 -4
- package/dist/lib/node_modules/lodash-es/_Symbol.js +4 -4
- package/dist/lib/node_modules/lodash-es/_Uint8Array.js +4 -4
- package/dist/lib/node_modules/lodash-es/_WeakMap.js +4 -4
- package/dist/lib/node_modules/lodash-es/_apply.js +4 -4
- package/dist/lib/node_modules/lodash-es/_arrayEach.js +4 -4
- package/dist/lib/node_modules/lodash-es/_arrayFilter.js +4 -4
- package/dist/lib/node_modules/lodash-es/_arrayIncludes.js +14 -0
- package/dist/lib/node_modules/lodash-es/_arrayIncludesWith.js +14 -0
- package/dist/lib/node_modules/lodash-es/_arrayLikeKeys.js +4 -4
- package/dist/lib/node_modules/lodash-es/_arrayMap.js +4 -4
- package/dist/lib/node_modules/lodash-es/_arrayPush.js +4 -4
- package/dist/lib/node_modules/lodash-es/_arraySome.js +14 -0
- package/dist/lib/node_modules/lodash-es/_asciiToArray.js +4 -4
- package/dist/lib/node_modules/lodash-es/_assignMergeValue.js +14 -0
- package/dist/lib/node_modules/lodash-es/_assignValue.js +4 -4
- package/dist/lib/node_modules/lodash-es/_assocIndexOf.js +4 -4
- package/dist/lib/node_modules/lodash-es/_baseAssignValue.js +4 -4
- package/dist/lib/node_modules/lodash-es/_baseClone.js +4 -4
- package/dist/lib/node_modules/lodash-es/_baseCreate.js +14 -0
- package/dist/lib/node_modules/lodash-es/_baseFindIndex.js +14 -0
- package/dist/lib/node_modules/lodash-es/_baseFlatten.js +4 -4
- package/dist/lib/node_modules/lodash-es/_baseFor.js +14 -0
- package/dist/lib/node_modules/lodash-es/_baseGet.js +4 -4
- package/dist/lib/node_modules/lodash-es/_baseGetAllKeys.js +4 -4
- package/dist/lib/node_modules/lodash-es/_baseGetTag.js +4 -4
- package/dist/lib/node_modules/lodash-es/_baseIndexOf.js +14 -0
- package/dist/lib/node_modules/lodash-es/_baseIntersection.js +14 -0
- package/dist/lib/node_modules/lodash-es/_baseIsArguments.js +4 -4
- package/dist/lib/node_modules/lodash-es/_baseIsEqual.js +14 -0
- package/dist/lib/node_modules/lodash-es/_baseIsEqualDeep.js +14 -0
- package/dist/lib/node_modules/lodash-es/_baseIsMap.js +4 -4
- package/dist/lib/node_modules/lodash-es/_baseIsNaN.js +14 -0
- package/dist/lib/node_modules/lodash-es/_baseIsNative.js +4 -4
- package/dist/lib/node_modules/lodash-es/_baseIsRegExp.js +4 -4
- package/dist/lib/node_modules/lodash-es/_baseIsSet.js +4 -4
- package/dist/lib/node_modules/lodash-es/_baseIsTypedArray.js +4 -4
- package/dist/lib/node_modules/lodash-es/_baseKeys.js +14 -0
- package/dist/lib/node_modules/lodash-es/_baseKeysIn.js +4 -4
- package/dist/lib/node_modules/lodash-es/_baseMerge.js +14 -0
- package/dist/lib/node_modules/lodash-es/_baseMergeDeep.js +14 -0
- package/dist/lib/node_modules/lodash-es/_baseRest.js +14 -0
- package/dist/lib/node_modules/lodash-es/_baseSetToString.js +4 -4
- package/dist/lib/node_modules/lodash-es/_baseSlice.js +4 -4
- package/dist/lib/node_modules/lodash-es/_baseTimes.js +4 -4
- package/dist/lib/node_modules/lodash-es/_baseToString.js +4 -4
- package/dist/lib/node_modules/lodash-es/_baseUnary.js +4 -4
- package/dist/lib/node_modules/lodash-es/_baseUniq.js +14 -0
- package/dist/lib/node_modules/lodash-es/_baseUnset.js +4 -4
- package/dist/lib/node_modules/lodash-es/_cacheHas.js +14 -0
- package/dist/lib/node_modules/lodash-es/_castArrayLikeObject.js +14 -0
- package/dist/lib/node_modules/lodash-es/_castPath.js +4 -4
- package/dist/lib/node_modules/lodash-es/_castSlice.js +4 -4
- package/dist/lib/node_modules/lodash-es/_cloneArrayBuffer.js +4 -4
- package/dist/lib/node_modules/lodash-es/_cloneBuffer.js +4 -4
- package/dist/lib/node_modules/lodash-es/_cloneDataView.js +4 -4
- package/dist/lib/node_modules/lodash-es/_cloneRegExp.js +4 -4
- package/dist/lib/node_modules/lodash-es/_cloneSymbol.js +4 -4
- package/dist/lib/node_modules/lodash-es/_cloneTypedArray.js +4 -4
- package/dist/lib/node_modules/lodash-es/_copyArray.js +14 -0
- package/dist/lib/node_modules/lodash-es/_copyObject.js +4 -4
- package/dist/lib/node_modules/lodash-es/_coreJsData.js +4 -4
- package/dist/lib/node_modules/lodash-es/_createAssigner.js +14 -0
- package/dist/lib/node_modules/lodash-es/_createBaseFor.js +14 -0
- package/dist/lib/node_modules/lodash-es/_createCaseFirst.js +4 -4
- package/dist/lib/node_modules/lodash-es/_createSet.js +14 -0
- package/dist/lib/node_modules/lodash-es/_customOmitClone.js +4 -4
- package/dist/lib/node_modules/lodash-es/_defineProperty.js +4 -4
- package/dist/lib/node_modules/lodash-es/_equalArrays.js +14 -0
- package/dist/lib/node_modules/lodash-es/_equalByTag.js +14 -0
- package/dist/lib/node_modules/lodash-es/_equalObjects.js +14 -0
- package/dist/lib/node_modules/lodash-es/_flatRest.js +4 -4
- package/dist/lib/node_modules/lodash-es/_freeGlobal.js +4 -4
- package/dist/lib/node_modules/lodash-es/_getAllKeys.js +14 -0
- package/dist/lib/node_modules/lodash-es/_getAllKeysIn.js +4 -4
- package/dist/lib/node_modules/lodash-es/_getMapData.js +4 -4
- package/dist/lib/node_modules/lodash-es/_getNative.js +4 -4
- package/dist/lib/node_modules/lodash-es/_getPrototype.js +4 -4
- package/dist/lib/node_modules/lodash-es/_getRawTag.js +4 -4
- package/dist/lib/node_modules/lodash-es/_getSymbols.js +4 -4
- package/dist/lib/node_modules/lodash-es/_getSymbolsIn.js +4 -4
- package/dist/lib/node_modules/lodash-es/_getTag.js +4 -4
- package/dist/lib/node_modules/lodash-es/_getValue.js +4 -4
- package/dist/lib/node_modules/lodash-es/_hasUnicode.js +4 -4
- package/dist/lib/node_modules/lodash-es/_hashClear.js +4 -4
- package/dist/lib/node_modules/lodash-es/_hashDelete.js +4 -4
- package/dist/lib/node_modules/lodash-es/_hashGet.js +4 -4
- package/dist/lib/node_modules/lodash-es/_hashHas.js +4 -4
- package/dist/lib/node_modules/lodash-es/_hashSet.js +4 -4
- package/dist/lib/node_modules/lodash-es/_initCloneArray.js +4 -4
- package/dist/lib/node_modules/lodash-es/_initCloneByTag.js +4 -4
- package/dist/lib/node_modules/lodash-es/_initCloneObject.js +14 -0
- package/dist/lib/node_modules/lodash-es/_isFlattenable.js +4 -4
- package/dist/lib/node_modules/lodash-es/_isIndex.js +4 -4
- package/dist/lib/node_modules/lodash-es/_isIterateeCall.js +14 -0
- package/dist/lib/node_modules/lodash-es/_isKey.js +4 -4
- package/dist/lib/node_modules/lodash-es/_isKeyable.js +4 -4
- package/dist/lib/node_modules/lodash-es/_isMasked.js +4 -4
- package/dist/lib/node_modules/lodash-es/_isPrototype.js +4 -4
- package/dist/lib/node_modules/lodash-es/_listCacheClear.js +4 -4
- package/dist/lib/node_modules/lodash-es/_listCacheDelete.js +4 -4
- package/dist/lib/node_modules/lodash-es/_listCacheGet.js +4 -4
- package/dist/lib/node_modules/lodash-es/_listCacheHas.js +4 -4
- package/dist/lib/node_modules/lodash-es/_listCacheSet.js +4 -4
- package/dist/lib/node_modules/lodash-es/_mapCacheClear.js +4 -4
- package/dist/lib/node_modules/lodash-es/_mapCacheDelete.js +4 -4
- package/dist/lib/node_modules/lodash-es/_mapCacheGet.js +4 -4
- package/dist/lib/node_modules/lodash-es/_mapCacheHas.js +4 -4
- package/dist/lib/node_modules/lodash-es/_mapCacheSet.js +4 -4
- package/dist/lib/node_modules/lodash-es/_mapToArray.js +14 -0
- package/dist/lib/node_modules/lodash-es/_memoizeCapped.js +4 -4
- package/dist/lib/node_modules/lodash-es/_nativeCreate.js +4 -4
- package/dist/lib/node_modules/lodash-es/_nativeKeys.js +14 -0
- package/dist/lib/node_modules/lodash-es/_nativeKeysIn.js +4 -4
- package/dist/lib/node_modules/lodash-es/_nodeUtil.js +4 -4
- package/dist/lib/node_modules/lodash-es/_objectToString.js +4 -4
- package/dist/lib/node_modules/lodash-es/_overArg.js +4 -4
- package/dist/lib/node_modules/lodash-es/_overRest.js +4 -4
- package/dist/lib/node_modules/lodash-es/_parent.js +4 -4
- package/dist/lib/node_modules/lodash-es/_root.js +4 -4
- package/dist/lib/node_modules/lodash-es/_safeGet.js +14 -0
- package/dist/lib/node_modules/lodash-es/_setCacheAdd.js +14 -0
- package/dist/lib/node_modules/lodash-es/_setCacheHas.js +14 -0
- package/dist/lib/node_modules/lodash-es/_setToArray.js +14 -0
- package/dist/lib/node_modules/lodash-es/_setToString.js +4 -4
- package/dist/lib/node_modules/lodash-es/_shortOut.js +4 -4
- package/dist/lib/node_modules/lodash-es/_stackClear.js +4 -4
- package/dist/lib/node_modules/lodash-es/_stackDelete.js +4 -4
- package/dist/lib/node_modules/lodash-es/_stackGet.js +4 -4
- package/dist/lib/node_modules/lodash-es/_stackHas.js +4 -4
- package/dist/lib/node_modules/lodash-es/_stackSet.js +4 -4
- package/dist/lib/node_modules/lodash-es/_strictIndexOf.js +14 -0
- package/dist/lib/node_modules/lodash-es/_stringToArray.js +4 -4
- package/dist/lib/node_modules/lodash-es/_stringToPath.js +4 -4
- package/dist/lib/node_modules/lodash-es/_toKey.js +4 -4
- package/dist/lib/node_modules/lodash-es/_toSource.js +4 -4
- package/dist/lib/node_modules/lodash-es/_unicodeToArray.js +4 -4
- package/dist/lib/node_modules/lodash-es/constant.js +4 -4
- package/dist/lib/node_modules/lodash-es/eq.js +4 -4
- package/dist/lib/node_modules/lodash-es/flatten.js +4 -4
- package/dist/lib/node_modules/lodash-es/get.js +4 -4
- package/dist/lib/node_modules/lodash-es/identity.js +4 -4
- package/dist/lib/node_modules/lodash-es/intersectionWith.js +14 -0
- package/dist/lib/node_modules/lodash-es/isArguments.js +4 -4
- package/dist/lib/node_modules/lodash-es/isArray.js +4 -4
- package/dist/lib/node_modules/lodash-es/isArrayLike.js +4 -4
- package/dist/lib/node_modules/lodash-es/isArrayLikeObject.js +14 -0
- package/dist/lib/node_modules/lodash-es/isBuffer.js +4 -4
- package/dist/lib/node_modules/lodash-es/isEqual.js +14 -0
- package/dist/lib/node_modules/lodash-es/isFinite.js +4 -4
- package/dist/lib/node_modules/lodash-es/isFunction.js +4 -4
- package/dist/lib/node_modules/lodash-es/isLength.js +4 -4
- package/dist/lib/node_modules/lodash-es/isMap.js +4 -4
- package/dist/lib/node_modules/lodash-es/isNaN.js +4 -4
- package/dist/lib/node_modules/lodash-es/isNil.js +4 -4
- package/dist/lib/node_modules/lodash-es/isNumber.js +4 -4
- package/dist/lib/node_modules/lodash-es/isObject.js +4 -4
- package/dist/lib/node_modules/lodash-es/isObjectLike.js +4 -4
- package/dist/lib/node_modules/lodash-es/isPlainObject.js +4 -4
- package/dist/lib/node_modules/lodash-es/isRegExp.js +4 -4
- package/dist/lib/node_modules/lodash-es/isSet.js +4 -4
- package/dist/lib/node_modules/lodash-es/isString.js +4 -4
- package/dist/lib/node_modules/lodash-es/isSymbol.js +4 -4
- package/dist/lib/node_modules/lodash-es/isTypedArray.js +4 -4
- package/dist/lib/node_modules/lodash-es/keys.js +14 -0
- package/dist/lib/node_modules/lodash-es/keysIn.js +4 -4
- package/dist/lib/node_modules/lodash-es/last.js +4 -4
- package/dist/lib/node_modules/lodash-es/memoize.js +4 -4
- package/dist/lib/node_modules/lodash-es/mergeWith.js +14 -0
- package/dist/lib/node_modules/lodash-es/noop.js +14 -0
- package/dist/lib/node_modules/lodash-es/omit.js +4 -4
- package/dist/lib/node_modules/lodash-es/stubArray.js +4 -4
- package/dist/lib/node_modules/lodash-es/stubFalse.js +4 -4
- package/dist/lib/node_modules/lodash-es/toPlainObject.js +14 -0
- package/dist/lib/node_modules/lodash-es/toString.js +4 -4
- package/dist/lib/node_modules/lodash-es/unionWith.js +14 -0
- package/dist/lib/node_modules/lodash-es/upperFirst.js +4 -4
- package/dist/lib/node_modules/orderedmap/dist/index.js +4 -4
- package/dist/lib/node_modules/path-to-regexp/dist/index.js +14 -0
- package/dist/lib/node_modules/prosemirror-commands/dist/index.js +5 -4
- package/dist/lib/node_modules/prosemirror-dropcursor/dist/index.js +4 -4
- package/dist/lib/node_modules/prosemirror-gapcursor/dist/index.js +4 -4
- package/dist/lib/node_modules/prosemirror-history/dist/index.js +4 -4
- package/dist/lib/node_modules/prosemirror-keymap/dist/index.js +4 -4
- package/dist/lib/node_modules/prosemirror-model/dist/index.js +7 -4
- package/dist/lib/node_modules/prosemirror-schema-list/dist/index.js +4 -4
- package/dist/lib/node_modules/prosemirror-state/dist/index.js +4 -4
- package/dist/lib/node_modules/prosemirror-tables/dist/index.js +4 -4
- package/dist/lib/node_modules/prosemirror-transform/dist/index.js +5 -4
- package/dist/lib/node_modules/prosemirror-view/dist/index.js +8 -4
- package/dist/lib/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js +14 -0
- package/dist/lib/node_modules/rope-sequence/dist/index.js +4 -4
- package/dist/lib/node_modules/sortablejs/modular/sortable.esm.js +14 -0
- package/dist/lib/node_modules/style-mod/src/style-mod.js +6 -4
- package/dist/lib/{Grid → node_modules/title-case/dist}/index.js +4 -4
- package/dist/lib/node_modules/vue-codemirror/dist/vue-codemirror.esm.js +4 -4
- package/dist/lib/node_modules/w3c-keyname/index.js +4 -4
- package/dist/lib/node_modules/xgplayer/dist/index.min.css +3 -3
- package/dist/lib/node_modules/xgplayer/es/_virtual/_rollupPluginBabelHelpers.js +5 -4
- package/dist/lib/node_modules/xgplayer/es/constant.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/defaultConfig.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/error.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/events.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/index.umd.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/instManager.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/lang/en.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/lang/i18n.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/lang/jp.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/lang/zh-cn.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/mediaProxy.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/player.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugin/basePlugin.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugin/hooksDescriptor.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugin/plugin.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugin/pluginsManager.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugin/preset.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugin/resizeObserver.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/back.js +8 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/download.js +18 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/exitCssFull.js +7 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/exitFull.js +7 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/loading.js +7 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/pause.js +7 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/pipIcon.js +8 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/pipIconExit.js +11 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/play.js +7 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/playNext.js +7 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/replay.js +7 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/requestCssFull.js +7 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/requestFull.js +7 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/rotate.js +15 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/seekicon.js +10 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/volumeLarge.js +8 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/volumeMuted.js +8 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/volumeSmall.js +8 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/common/iconPlugin.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/common/iconTools.js +6 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/common/optionList.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/common/optionsIcon.js +7 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/common/thumbnail.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/controls/index.js +12 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/cssFullScreen/index.js +8 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/definition/index.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/download/index.js +8 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/dynamicBg/index.js +5 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/enter/index.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/error/index.js +9 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/fpsDetect/index.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/fullscreen/backicon.js +5 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/fullscreen/index.js +8 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/gapJump/index.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/keyboard/index.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/loading/index.js +7 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/logger/index.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/miniScreen/index.js +16 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/miniScreen/miniScreenIcon.js +7 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/mobile/index.js +22 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/mobile/touch.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/pc/index.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/pip/index.js +11 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/play/index.js +8 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/playNext/index.js +10 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/playbackRate/index.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/poster/index.js +5 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/progress/index.js +10 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/progress/innerList.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/progress/miniProgress.js +7 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/progressPreview/dotsApi.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/progressPreview/index.js +14 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/prompt/index.js +6 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/replay/index.js +6 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/rotate/index.js +9 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/screenShot/index.js +9 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/start/index.js +7 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/stats/index.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/testspeed/index.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/time/index.js +9 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/time/timesegments.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/volume/index.js +14 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/waitingTimeoutJump/index.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/presets/default.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/state.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/stateClassMap.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/utils/database.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/utils/debug.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/utils/draggabilly.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/utils/sniffer.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/utils/util.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/utils/xgplayerTimeRange.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/version.js +4 -4
- package/dist/lib/packages/components/index.js +4 -4
- package/dist/lib/packages/hooks/dist/index.js +14 -0
- package/dist/lib/packages/utils/dist/index.js +14 -0
- package/dist/lib/styles/tokens.css +3 -3
- package/index.d.ts +227 -113
- package/package.json +26 -28
- package/dist/es/Grid/src/Grid.css +0 -14
- package/dist/es/Grid/src/Grid.vue.js +0 -14
- package/dist/es/Grid/src/components/ActionBar.css +0 -14
- package/dist/es/Grid/src/components/ActionBar.vue.js +0 -14
- package/dist/es/Grid/src/components/CellEditor.vue.js +0 -14
- package/dist/es/Grid/src/components/CellEditor2.css +0 -14
- package/dist/es/Grid/src/components/ColumnFilter.css +0 -14
- package/dist/es/Grid/src/components/ColumnFilter.vue.js +0 -14
- package/dist/es/Grid/src/components/ColumnSettings.css +0 -14
- package/dist/es/Grid/src/components/ColumnSettings.vue.js +0 -14
- package/dist/es/Grid/src/components/DataTable.css +0 -14
- package/dist/es/Grid/src/components/DataTable.vue.js +0 -14
- package/dist/es/Grid/src/components/Pager.css +0 -14
- package/dist/es/Grid/src/components/Pager.vue.js +0 -14
- package/dist/es/Grid/src/components/QueryBar.css +0 -14
- package/dist/es/Grid/src/components/QueryBar.vue.js +0 -14
- package/dist/es/Grid/src/composables/useCellEditor.js +0 -14
- package/dist/es/Grid/src/composables/useGridTable.js +0 -14
- package/dist/es/Grid/src/styles/table.css +0 -14
- package/dist/es/node_modules/@tanstack/store/dist/esm/derived.js +0 -14
- package/dist/es/node_modules/@tanstack/store/dist/esm/scheduler.js +0 -14
- package/dist/es/node_modules/@tanstack/table-core/build/lib/index.js +0 -14
- package/dist/es/node_modules/@tanstack/vue-table/build/lib/index.js +0 -14
- package/dist/lib/Grid/src/Grid.css +0 -14
- package/dist/lib/Grid/src/Grid.vue.js +0 -14
- package/dist/lib/Grid/src/components/ActionBar.css +0 -14
- package/dist/lib/Grid/src/components/ActionBar.vue.js +0 -14
- package/dist/lib/Grid/src/components/CellEditor.vue.js +0 -14
- package/dist/lib/Grid/src/components/CellEditor2.css +0 -14
- package/dist/lib/Grid/src/components/ColumnFilter.css +0 -14
- package/dist/lib/Grid/src/components/ColumnFilter.vue.js +0 -14
- package/dist/lib/Grid/src/components/ColumnSettings.css +0 -14
- package/dist/lib/Grid/src/components/ColumnSettings.vue.js +0 -14
- package/dist/lib/Grid/src/components/DataTable.css +0 -14
- package/dist/lib/Grid/src/components/DataTable.vue.js +0 -14
- package/dist/lib/Grid/src/components/Pager.css +0 -14
- package/dist/lib/Grid/src/components/Pager.vue.js +0 -14
- package/dist/lib/Grid/src/components/QueryBar.css +0 -14
- package/dist/lib/Grid/src/components/QueryBar.vue.js +0 -14
- package/dist/lib/Grid/src/composables/useCellEditor.js +0 -14
- package/dist/lib/Grid/src/composables/useGridTable.js +0 -14
- package/dist/lib/Grid/src/styles/table.css +0 -14
- package/dist/lib/node_modules/@tanstack/store/dist/esm/derived.js +0 -14
- package/dist/lib/node_modules/@tanstack/store/dist/esm/scheduler.js +0 -14
- package/dist/lib/node_modules/@tanstack/table-core/build/lib/index.js +0 -14
- package/dist/lib/node_modules/@tanstack/vue-table/build/lib/index.js +0 -14
|
@@ -7,8 +7,1247 @@ You shall not disclose such Confidential Information and shall use it only in
|
|
|
7
7
|
accordance with the terms of the license agreement.
|
|
8
8
|
|
|
9
9
|
--- Build Info ---
|
|
10
|
-
Version: 1.1.
|
|
11
|
-
Build Time: 2026/3/
|
|
12
|
-
Build Commit:
|
|
10
|
+
Version: 1.1.7
|
|
11
|
+
Build Time: 2026/3/13 18:25:06
|
|
12
|
+
Build Commit: 0b162dea954baa715e67b70f80401a571205058a
|
|
13
13
|
*/
|
|
14
|
-
import{defineProperty as e,inherits as t,createSuper as i,classCallCheck as s,assertThisInitialized as n,possibleConstructorReturn as o,createClass as r,get as a,getPrototypeOf as l,objectSpread2 as u}from"./_virtual/_rollupPluginBabelHelpers.js";import c from"./mediaProxy.js";import h,{checkIsCurrentVideo as f}from"./utils/util.js";import d from"./utils/sniffer.js";import g from"./utils/database.js";import v from"./error.js";import{CANPLAY as p,USER_ACTION as m,FULLSCREEN_CHANGE as y,READY as _,ERROR as k,LOADED_DATA as E,PLAY as T,URL_NULL as C,COMPLETE as S,AUTOPLAY_STARTED as P,AUTOPLAY_PREVENTED as A,SEEKED as N,DEFINITION_CHANGE as R,AFTER_DEFINITION_CHANGE as F,RESET as b,DESTROY as I,REPLAY as L,CSS_FULLSCREEN_CHANGE as O,PLAYER_FOCUS as w,PLAYER_BLUR as D,DURATION_CHANGE as x,LOADING as U,PLAYNEXT as B,VIDEO_RESIZE as j}from"./events.js";import*as H from"./events.js";import{PLATER_ID as W,FULLSCREEN_EVENTS as G,GET_FULLSCREEN_API as z,EXIT_FULLSCREEN_API as M}from"./constant.js";import{POSITIONS as V}from"./plugin/plugin.js";import{default as Y}from"./plugin/plugin.js";import K from"./plugin/basePlugin.js";import q from"./plugin/pluginsManager.js";import Q from"./stateClassMap.js";import X from"./defaultConfig.js";import{usePreset as J}from"./plugin/preset.js";import Z,{runHooks as $,delHooksDescriptor as ee,hook as te,useHooks as ie,removeHooks as se,usePluginHooks as ne,removePluginHooks as oe}from"./plugin/hooksDescriptor.js";import re from"./plugins/controls/index.js";import ae,{bindDebug as le}from"./utils/debug.js";import ue from"./lang/i18n.js";import ce from"./version.js";import{STATES as he,STATE_ARRAY as fe}from"./state.js";import{InstManager as de,checkPlayerRoot as ge}from"./instManager.js";var ve=["play","pause","replay","retry"],pe=0,me=0,ye=null,_e=/* @__PURE__ */function(){t(Y,c);var H=i(Y);function Y(t){var i;s(this,Y);var r=h.deepMerge(X(),t);i=H.call(this,r),e(n(i),"canPlayFunc",function(){if(i.config){var e=i.config,t=e.autoplay,s=e.defaultPlaybackRate;ae.logInfo("player","canPlayFunc, startTime",i.__startTime),i._seekToStartTime(),i.playbackRate=s,(t||i._useAutoplay)&&i.mediaPlay(),i.off(p,i.canPlayFunc),i.removeClass(Q.ENTER)}}),e(n(i),"onFullscreenChange",function(e,t){var s=function(){h.setTimeout(n(i),function(){i.resize()},100)},o=h.getFullScreenEl();i._fullActionFrom?i._fullActionFrom="":i.emit(m,{eventType:"system",action:"switch_fullscreen",pluginName:"player",currentTime:i.currentTime,duration:i.duration,props:[{prop:"fullscreen",from:!0,to:!1}]});var r=f(o,i.playerId,W);if(t||o&&(o===i._fullscreenEl||r))s(),!i.config.closeFocusVideoFocus&&i.media.focus(),i.fullscreen=!0,i.changeFullStyle(i.root,o,Q.FULLSCREEN),i.emit(y,!0,i._fullScreenOffset),i.cssfullscreen&&i.exitCssFullscreen();else if(i.fullscreen){s();var a=n(i),l=a._fullScreenOffset;if(a.config.needFullscreenScroll?(window.scrollTo(l.left,l.top),h.setTimeout(n(i),function(){i.fullscreen=!1,i._fullScreenOffset=null},100)):(!i.config.closeFocusVideoFocus&&i.media.focus(),i.fullscreen=!1,i._fullScreenOffset=null),i.cssfullscreen)i.removeClass(Q.FULLSCREEN);else{var u=i._fullscreenEl;u||!i.root.contains(e.target)&&e.target!==i.root||(u=e.target),i.recoverFullStyle(i.root,u,Q.FULLSCREEN)}i._fullscreenEl=null,i.emit(y,!1)}}),e(n(i),"_onWebkitbeginfullscreen",function(e){i._fullscreenEl=i.media,i.onFullscreenChange(e,!0)}),e(n(i),"_onWebkitendfullscreen",function(e){i.onFullscreenChange(e,!1)}),Z(n(i),ve),i.config=r,i._pluginInfoId=h.generateSessionId(),le(n(i));var a=i.constructor.defaultPreset;if(i.config.presets.length){var l=i.config.presets.indexOf("default");l>=0&&a&&(i.config.presets[l]=a)}else a&&i.config.presets.push(a);if(i.userTimer=null,i.waitTimer=null,i.handleSource=!0,i._state=he.INITIAL,i.isAd=!1,i.isError=!1,i._hasStart=!1,i.isSeeking=!1,i.isCanplay=!1,i._useAutoplay=!1,i.__startTime=-1,i.rotateDeg=0,i.isActive=!1,i.fullscreen=!1,i.cssfullscreen=!1,i.isRotateFullscreen=!1,i._fullscreenEl=null,i.timeSegments=[],i._cssfullscreenEl=null,i.curDefinition=null,i._orgCss="",i._fullScreenOffset=null,i._videoHeight=0,i._videoWidth=0,i.videoPos={pi:1,scale:0,rotate:-1,x:0,y:0,h:-1,w:-1,vy:0,vx:0},i.sizeInfo={width:0,height:0,left:0,top:0},i._accPlayed={t:0,acc:0,loopAcc:0},i._offsetInfo={currentTime:-1,duration:0},i.innerContainer=null,i.controls=null,i.topBar=null,i.root=null,i.__i18n=ue.init(i._pluginInfoId),d.os.isAndroid&&d.osVersion>0&&d.osVersion<6&&(i.config.autoplay=!1),i.database=new g,i.isUserActive=!1,i._onceSeekCanplay=null,i._isPauseBeforeSeek=0,i.innerStates={isActiveLocked:!1},i.instManager=ye,!i._initDOM())return console.error(new Error("can't find the dom which id is ".concat(i.config.id," or this.config.el does not exist"))),o(i);var u=i.config,c=u.definition,v=void 0===c?{}:c;if(!u.url&&v.list&&v.list.length>0){var k=v.list.find(function(e){return e.definition&&e.definition===v.defaultDefinition});k||(v.defaultDefinition=v.list[0].definition,k=v.list[0]),i.config.url=k.url,i.curDefinition=k}return i._bindEvents(),i._registerPresets(),i._registerPlugins(),q.onPluginsReady(n(i)),i.getInitDefinition(),i.setState(he.READY),h.setTimeout(n(i),function(){i.emit(_)},0),i.onReady&&i.onReady(),(i.config.videoInit||i.config.autoplay)&&(!i.hasStart||i.state<he.ATTACHED)&&i.start(),i}return r(Y,[{key:"_initDOM",value:function(){var e,t=this;if(this.root=this.config.id?document.getElementById(this.config.id):null,!this.root){var i=this.config.el;if(!i||1!==i.nodeType)return this.emit(k,new v("use",this.config.vid,{line:32,handle:"Constructor",msg:"container id can't be empty"})),console.error("this.confg.id or this.config.el can't be empty"),!1;this.root=i}var s=ge(this.root);if(s&&(ae.logWarn("The is an Player instance already exists in this.root, destroy it and reinitialize"),s.destroy()),this.root.setAttribute(W,this.playerId),this.media.setAttribute(W,this.playerId),null===(e=ye)||void 0===e||e.add(this),q.init(this),this._initBaseDoms(),this.config.controls){var n=this.config.controls.root||null,o=q.register(this,re,{root:n});this.controls=o}var r="mobile"===this.config.isMobileSimulateMode?"mobile":d.device;if(this.addClass("".concat(Q.DEFAULT," ").concat(Q.INACTIVE," xgplayer-").concat(r," ").concat(this.config.controls?"":Q.NO_CONTROLS)),this.config.autoplay?this.addClass(Q.ENTER):this.addClass(Q.NO_START),this.config.fluid){var a=this.config,l=a.width,u=a.height;"number"==typeof l&&"number"==typeof u||(l=600,u=337.5);var c={width:"100%",height:"0","max-width":"100%","padding-top":"".concat(100*u/l,"%")};Object.keys(c).forEach(function(e){t.root.style[e]=c[e]})}else["width","height"].forEach(function(e){t.config[e]&&("number"!=typeof t.config[e]?t.root.style[e]=t.config[e]:t.root.style[e]="".concat(t.config[e],"px"))});var h=this.root.getBoundingClientRect(),f=h.width,g=h.height,p=h.left,m=h.top;return this.sizeInfo.width=f,this.sizeInfo.height=g,this.sizeInfo.left=p,this.sizeInfo.top=m,!0}},{key:"_initBaseDoms",value:function(){this.topBar=null,this.leftBar=null,this.rightBar=null,this.config.marginControls&&(this.innerContainer=h.createDom("xg-video-container","",{"data-index":-1},"xg-video-container"),this.root.appendChild(this.innerContainer))}},{key:"_bindEvents",value:function(){var e=this;["focus","blur"].forEach(function(t){e.on(t,e["on"+t.charAt(0).toUpperCase()+t.slice(1)])}),G.forEach(function(t){document&&document.addEventListener(t,e.onFullscreenChange)}),d.os.isIos&&(this.media.addEventListener("webkitbeginfullscreen",this._onWebkitbeginfullscreen),this.media.addEventListener("webkitendfullscreen",this._onWebkitendfullscreen)),this.once(E,this.resize),this.playFunc=function(){e.config.closeFocusVideoFocus||e.media.focus()},this.once(T,this.playFunc)}},{key:"_unbindEvents",value:function(){var e=this;this.root.removeEventListener("mousemove",this.mousemoveFunc),G.forEach(function(t){document.removeEventListener(t,e.onFullscreenChange)}),this.playFunc&&this.off(T,this.playFunc),this.off(p,this.canPlayFunc),this.media.removeEventListener("webkitbeginfullscreen",this._onWebkitbeginfullscreen),this.media.removeEventListener("webkitendfullscreen",this._onWebkitendfullscreen)}},{key:"_clearUserTimer",value:function(){this.userTimer&&(h.clearTimeout(this,this.userTimer),this.userTimer=null)}},{key:"_startInit",value:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.media&&(e&&""!==e&&("Array"!==h.typeOf(e)||0!==e.length)||(e="",this.emit(C),ae.logWarn("config.url is null, please get url and run player._startInit(url)"),!this.config.nullUrlStart))){h.isNotNull(i.playSessionId)&&(this._playSessionId=i.playSessionId),this.handleSource&&(this._detachSourceEvents(this.media),"Array"===h.typeOf(e)&&e.length>0?this._attachSourceEvents(this.media,e):this.media.src&&this.media.src===e?e||this.media.removeAttribute("src"):this.media.src=e),"Number"===h.typeOf(this.config.volume)&&(this.volume=this.config.volume);var s=this.innerContainer?this.innerContainer:this.root;this.media instanceof window.Element&&!s.contains(this.media)&&s.insertBefore(this.media,s.firstChild);var n=this.media.readyState;ae.logInfo("_startInit readyState",n),this.config.autoplay&&(!h.isMSE(this.media)&&this.load(),(d.os.isIpad||d.os.isPhone)&&this.mediaPlay());var o=this.config.startTime;this.__startTime=o>0?o:-1,this.config.startTime=0,n>=2&&this.duration>0?this.canPlayFunc():this.on(p,this.canPlayFunc),(!this.hasStart||this.state<he.ATTACHED)&&q.afterInit(this),this.hasStart=!0,this.setState(he.ATTACHED),h.setTimeout(this,function(){t.emit(S)},0)}}},{key:"_registerPlugins",value:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this._loadingPlugins=[];var i=this.config.ignores||[],s=this.config.plugins||[],n=this.config.i18n||[];t&&ue.extend(n,this.__i18n);var o=i.join("||").toLowerCase().split("||"),r=this.plugins;s.forEach(function(i){try{var s=i.plugin?i.plugin.pluginName:i.pluginName;if(s&&o.indexOf(s.toLowerCase())>-1)return null;if(!t&&r[s.toLowerCase()])return;if(i.lazy&&i.loader){var n=q.lazyRegister(e,i);return void(i.forceBeforeInit&&(n.then(function(){e._loadingPlugins.splice(e._loadingPlugins.indexOf(n),1)}).catch(function(t){ae.logError("_registerPlugins:loadingPlugin",t),e._loadingPlugins.splice(e._loadingPlugins.indexOf(n),1)}),e._loadingPlugins.push(n)))}return e.registerPlugin(i)}catch(a){ae.logError("_registerPlugins:",a)}})}},{key:"_registerPresets",value:function(){var e=this;this.config.presets.forEach(function(t){J(e,t)})}},{key:"_getRootByPosition",value:function(e){var t=null;switch(e){case V.ROOT_RIGHT:this.rightBar||(this.rightBar=h.createPositionBar("xg-right-bar",this.root)),t=this.rightBar;break;case V.ROOT_LEFT:this.leftBar||(this.leftBar=h.createPositionBar("xg-left-bar",this.root)),t=this.leftBar;break;case V.ROOT_TOP:this.topBar||(this.topBar=h.createPositionBar("xg-top-bar",this.root),this.config.topBarAutoHide&&h.addClass(this.topBar,Q.TOP_BAR_AUTOHIDE)),t=this.topBar;break;default:t=this.innerContainer||this.root}return t}},{key:"registerPlugin",value:function(e,t){var i=q.formatPluginInfo(e,t),s=i.PLUFGIN,n=i.options,o=this.config.plugins;!q.checkPluginIfExits(s.pluginName,o)&&o.push(s);var r=q.getRootByConfig(s.pluginName,this.config);r.root&&(n.root=r.root),r.position&&(n.position=r.position);var a,l=n.position?n.position:n.config&&n.config.position||s.defaultConfig&&s.defaultConfig.position;return!n.root&&"string"==typeof l&&l.indexOf("controls")>-1?null===(a=this.controls)||void 0===a?void 0:a.registerPlugin(s,n,s.pluginName):(n.root||(n.root=this._getRootByPosition(l)),q.register(this,s,n))}},{key:"deregister",value:function(e){"string"==typeof e?q.unRegister(this,e):e instanceof K&&q.unRegister(this,e.pluginName)}},{key:"unRegisterPlugin",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.deregister(e),t&&this.removePluginFromConfig(e)}},{key:"removePluginFromConfig",value:function(e){var t;if("string"==typeof e?t=e:e instanceof K&&(t=e.pluginName),t)for(var i=this.config.plugins.length-1;i>-1;i--){if(this.config.plugins[i].pluginName.toLowerCase()===t.toLowerCase()){this.config.plugins.splice(i,1);break}}}},{key:"plugins",get:function(){return q.getPlugins(this)}},{key:"getPlugin",value:function(e){var t=q.findPlugin(this,e);return t&&t.pluginName?t:null}},{key:"addClass",value:function(e){this.root&&(h.hasClass(this.root,e)||h.addClass(this.root,e))}},{key:"removeClass",value:function(e){this.root&&h.removeClass(this.root,e)}},{key:"hasClass",value:function(e){if(this.root)return h.hasClass(this.root,e)}},{key:"setAttribute",value:function(e,t){this.root&&this.root.setAttribute(e,t)}},{key:"removeAttribute",value:function(e,t){this.root&&this.root.removeAttribute(e,t)}},{key:"start",value:function(e){var t=this;if(!(this.state>he.ATTACHING)){var i=this._playSessionId;return h.isNotNull(i)&&(this._playSessionId=void 0),e||this.config.url||this.getInitDefinition(),this.hasStart=!0,this.setState(he.ATTACHING),this._registerPlugins(!1),q.beforeInit(this).then(function(){if(t.config){e||(e=t.url||t.config.url);var s=t.preProcessUrl(e);return t._startInit(s.url,{playSessionId:i})}}).catch(function(e){throw e.fileName="player",e.lineNumber="236",ae.logError("start:beforeInit:",e),e})}}},{key:"switchURL",value:function(e,t){var i=this,s=e;"Object"===h.typeOf(e)&&(s=e.url),s=this.preProcessUrl(s).url;var n=this.currentTime;this.__startTime=n;var o=this.paused&&!this.isError;return this.src=s,new Promise(function(e,t){var n=function(e){i.off("timeupdate",r),i.off("canplay",r),t(e)},r=function(){i._seekToStartTime(),o&&i.pause(),i.off("error",n),e(!0)};i.once("error",n),s?(d.os.isAndroid?i.once("timeupdate",r):i.once("canplay",r),i.play()):i.errorHandler("error",{code:6,message:"empty_src"})})}},{key:"videoPlay",value:function(){this.mediaPlay()}},{key:"mediaPlay",value:function(){var e=this;if(!this.hasStart&&this.state<he.ATTACHED)return this.removeClass(Q.NO_START),this.addClass(Q.ENTER),this.start(),void(this._useAutoplay=!0);this.state<he.RUNNING&&(this.removeClass(Q.NO_START),!this.isCanplay&&this.addClass(Q.ENTER));var t=a(l(Y.prototype),"play",this).call(this);return void 0!==t&&t&&t.then?t.then(function(){e.removeClass(Q.NOT_ALLOW_AUTOPLAY),e.addClass(Q.PLAYING),e.state<he.RUNNING&&(ae.logInfo(">>>>playPromise.then"),e.setState(he.RUNNING),e.emit(P))}).catch(function(t){if(ae.logWarn(">>>>playPromise.catch",t.name),e.media&&e.media.error)return e.onError(),void e.removeClass(Q.ENTER);"NotAllowedError"===t.name&&(e._errorTimer=h.setTimeout(e,function(){e._errorTimer=null,e.emit(A),e.addClass(Q.NOT_ALLOW_AUTOPLAY),e.removeClass(Q.ENTER),e.pause(),e.setState(he.NOTALLOW)},0))}):(ae.logWarn("video.play not return promise"),this.state<he.RUNNING&&(this.setState(he.RUNNING),this.removeClass(Q.NOT_ALLOW_AUTOPLAY),this.removeClass(Q.NO_START),this.removeClass(Q.ENTER),this.addClass(Q.PLAYING),this.emit(P))),t}},{key:"mediaPause",value:function(){a(l(Y.prototype),"pause",this).call(this)}},{key:"videoPause",value:function(){a(l(Y.prototype),"pause",this).call(this)}},{key:"play",value:function(){var e=this;return this.removeClass(Q.PAUSED),$(this,"play",function(){return e.mediaPlay()})}},{key:"pause",value:function(){var e=this;$(this,"pause",function(){a(l(Y.prototype),"pause",e).call(e)})}},{key:"seek",value:function(e,t){var i=this;if(this.media&&!Number.isNaN(Number(e))&&this.hasStart){var s=this.config,n=s.isSeekedPlay,o=s.seekedStatus,r=t||(n?"play":o);e=e<0?0:e>this.duration?parseInt(this.duration,10):e,!this._isPauseBeforeSeek&&(this._isPauseBeforeSeek=this.paused?2:1),this._onceSeekCanplay&&this.off(N,this._onceSeekCanplay),this._onceSeekCanplay=function(){switch(i.removeClass(Q.ENTER),i.isSeeking=!1,r){case"play":i.play();break;case"pause":i.pause();break;default:i._isPauseBeforeSeek>1||i.paused?i.pause():i.play()}i._isPauseBeforeSeek=0,i._onceSeekCanplay=null},this.once(N,this._onceSeekCanplay),this.state<he.RUNNING?(this.removeClass(Q.NO_START),this.currentTime=e,this.play()):this.currentTime=e}}},{key:"getInitDefinition",value:function(){var e=this,t=this.config,i=t.definition;!t.url&&i&&i.list&&i.list.length>0&&i.defaultDefinition&&i.list.map(function(t){t.definition===i.defaultDefinition&&(e.config.url=t.url,e.curDefinition=t)})}},{key:"changeDefinition",value:function(e,t){var i=this,s=this.config.definition;if(Array.isArray(null==s?void 0:s.list)&&s.list.forEach(function(t){(null==e?void 0:e.definition)===t.definition&&(i.curDefinition=t)}),null!=e&&e.bitrate&&"number"!=typeof e.bitrate&&(e.bitrate=parseInt(e.bitrate,10)||0),this.emit(R,{from:t,to:e}),this.hasStart){var n=this.switchURL(e.url,u({seamless:!1!==s.seamless&&"undefined"!=typeof MediaSource&&"function"==typeof MediaSource.isTypeSupported},e));n&&n.then?n.then(function(){i.emit(F,{from:t,to:e})}):this.emit(F,{from:t,to:e})}else this.config.url=e.url}},{key:"reload",value:function(){this.load(),this.reloadFunc=function(){this.play()},this.once(E,this.reloadFunc)}},{key:"resetState",value:function(){var e=this,t=[Q.NOT_ALLOW_AUTOPLAY,Q.PLAYING,Q.NO_START,Q.PAUSED,Q.REPLAY,Q.ENTER,Q.ENDED,Q.ERROR,Q.LOADING];this.hasStart=!1,this.isError=!1,this._useAutoplay=!1,this.mediaPause(),this._accPlayed.acc=0,this._accPlayed.t=0,this._accPlayed.loopAcc=0,t.forEach(function(t){e.removeClass(t)}),this.addClass(Q.NO_START),this.emit(b)}},{key:"reset",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],i=arguments.length>1?arguments[1]:void 0;if(this.resetState(),this.plugins&&(t.map(function(t){e.deregister(t)}),i)){var s=X();Object.keys(this.config).forEach(function(t){"undefined"===e.config[t]||"plugins"!==t&&"presets"!==t&&"el"!==t&&"id"!==t||(e.config[t]=s[t])})}}},{key:"destroy",value:function(){var e,t=this,i=this.innerContainer,s=this.root,n=this.media;if(s&&n){if(this.hasStart=!1,this._useAutoplay=!1,s.removeAttribute(W),n.removeAttribute(W),this.updateAcc("destroy"),this._unbindEvents(),this._detachSourceEvents(this.media),h.clearAllTimers(this),this.emit(I),null===(e=ye)||void 0===e||e.remove(this),q.destroy(this),ee(this),a(l(Y.prototype),"destroy",this).call(this),this.fullscreen&&this._fullscreenEl===this.root&&this.exitFullscreen(),i)for(var o=i.children,r=0;r<o.length;r++)i.removeChild(o[r]);!i&&n instanceof window.Node&&s.contains(n)&&!this.config.remainMediaAfterDestroy&&s.removeChild(n),["topBar","leftBar","rightBar","innerContainer"].map(function(e){t[e]&&s.removeChild(t[e]),t[e]=null});var u=s.className.split(" ");u.length>0?s.className=u.filter(function(e){return e.indexOf("xgplayer")<0}).join(" "):s.className="",this.removeAttribute("data-xgfill"),["isSeeking","isCanplay","isActive","cssfullscreen","fullscreen"].forEach(function(e){t[e]=!1})}}},{key:"replay",value:function(){var e=this;this.removeClass(Q.ENDED),this.currentTime=0,this.isSeeking=!1,$(this,"replay",function(){e.once(N,function(){var t=e.mediaPlay();t&&t.catch&&t.catch(function(e){console.log(e)})}),e.emit(L),e.onPlay()})}},{key:"retry",value:function(){var e=this;this.removeClass(Q.ERROR),this.addClass(Q.LOADING),$(this,"retry",function(){var t=e.currentTime,i=e.config.url,s=h.isMSE(e.media)?{url:i}:e.preProcessUrl(i);e.src=s.url,!e.config.isLive&&(e.currentTime=t),e.once(p,function(){e.mediaPlay()})})}},{key:"changeFullStyle",value:function(e,t,i,s){e&&(s||(s=Q.PARENT_FULLSCREEN),this._orgCss||(this._orgCss=h.filterStyleFromText(e)),h.addClass(e,i),t&&t!==e&&!this._orgPCss&&(this._orgPCss=h.filterStyleFromText(t),h.addClass(t,s),t.setAttribute(W,this.playerId)))}},{key:"recoverFullStyle",value:function(e,t,i,s){s||(s=Q.PARENT_FULLSCREEN),this._orgCss&&(h.setStyleFromCsstext(e,this._orgCss),this._orgCss=""),h.removeClass(e,i),t&&t!==e&&this._orgPCss&&(h.setStyleFromCsstext(t,this._orgPCss),this._orgPCss="",h.removeClass(t,s),t.removeAttribute(W))}},{key:"getFullscreen",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.config.fullscreenTarget,t=this.root,i=this.media;if("video"!==e&&"media"!==e||(e=this[e]),e||(e=t),this._fullScreenOffset={top:h.scrollTop(),left:h.scrollLeft()},this._fullscreenEl=e,this._fullActionFrom="get",h.getFullScreenEl()===this._fullscreenEl)return this.onFullscreenChange(),Promise.resolve();try{for(var s=0;s<z.length;s++){var n=z[s];if(e[n]){var o="webkitRequestFullscreen"===n?e.webkitRequestFullscreen(window.Element.ALLOW_KEYBOARD_INPUT):e[n]();return o&&o.then?o:Promise.resolve()}}return i.fullscreenEnabled||i.webkitSupportsFullscreen?(i.webkitEnterFullscreen(),Promise.resolve()):Promise.reject(new Error("call getFullscreen fail"))}catch(r){return Promise.reject(new Error("call getFullscreen fail"))}}},{key:"exitFullscreen",value:function(e){if(this.isRotateFullscreen&&this.exitRotateFullscreen(),this._fullscreenEl||h.getFullScreenEl()){this.root;var t=this.media;this._fullActionFrom="exit";try{for(var i=0;i<M.length;i++){var s=M[i];if(document[s]){var n=document[s]();return n&&n.then?n:Promise.resolve()}}return t&&t.webkitSupportsFullscreen?(t.webkitExitFullScreen(),Promise.resolve()):Promise.reject(new Error("call exitFullscreen fail"))}catch(o){return Promise.reject(new Error("call exitFullscreen fail"))}}}},{key:"getCssFullscreen",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.config.fullscreenTarget;this.isRotateFullscreen?this.exitRotateFullscreen():this.fullscreen&&this.exitFullscreen();var t=e?"".concat(Q.INNER_FULLSCREEN," ").concat(Q.CSS_FULLSCREEN):Q.CSS_FULLSCREEN;this.changeFullStyle(this.root,e,t);var i=this.config.fullscreen,s=void 0===i?{}:i;(!0===s.useCssFullscreen||"function"==typeof s.useCssFullscreen&&s.useCssFullscreen())&&(this.fullscreen=!0,this.emit(y,!0)),this._cssfullscreenEl=e,this.cssfullscreen=!0,this.emit(O,!0)}},{key:"exitCssFullscreen",value:function(){var e=this._cssfullscreenEl?"".concat(Q.INNER_FULLSCREEN," ").concat(Q.CSS_FULLSCREEN):Q.CSS_FULLSCREEN;if(this.fullscreen){var t=this.config.fullscreen,i=void 0===t?{}:t;!0===i.useCssFullscreen||"function"==typeof i.useCssFullscreen&&i.useCssFullscreen()?(this.recoverFullStyle(this.root,this._cssfullscreenEl,e),this.fullscreen=!1,this.emit(y,!1)):this.removeClass(e)}else this.recoverFullStyle(this.root,this._cssfullscreenEl,e);this._cssfullscreenEl=null,this.cssfullscreen=!1,this.emit(O,!1)}},{key:"getRotateFullscreen",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.config.fullscreenTarget;this.cssfullscreen&&this.exitCssFullscreen(e);var t=e?"".concat(Q.INNER_FULLSCREEN," ").concat(Q.ROTATE_FULLSCREEN):Q.ROTATE_FULLSCREEN;this._fullscreenEl=e||this.root,this.changeFullStyle(this.root,e,t,Q.PARENT_ROTATE_FULLSCREEN),this.isRotateFullscreen=!0,this.fullscreen=!0,this.setRotateDeg(90),this._rootStyle=this.root.getAttribute("style");var i=90===Math.abs(window.orientation)||90===Math.abs(screen.orientation.angle);this.root.style.width="".concat(i?window.innerWidth:window.innerHeight,"px"),this.emit(y,!0)}},{key:"exitRotateFullscreen",value:function(e){var t=this._fullscreenEl!==this.root?"".concat(Q.INNER_FULLSCREEN," ").concat(Q.ROTATE_FULLSCREEN):Q.ROTATE_FULLSCREEN;this.recoverFullStyle(this.root,this._fullscreenEl,t,Q.PARENT_ROTATE_FULLSCREEN),this.isRotateFullscreen=!1,this.fullscreen=!1,this.setRotateDeg(0),this.emit(y,!1),this._rootStyle&&(this.root.style.style=this._rootStyle,this._rootStyle=!1)}},{key:"setRotateDeg",value:function(e){90===window.orientation||-90===window.orientation?this.rotateDeg=0:this.rotateDeg=e}},{key:"focus",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{autoHide:!this.config.closeDelayBlur,delay:this.config.inactive};this.isActive?this.onFocus(e):this.emit(w,u({paused:this.paused,ended:this.ended},e))}},{key:"blur",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{ignorePaused:!1};this.isActive?(this._clearUserTimer(),this.emit(D,u({paused:this.paused,ended:this.ended},e))):this.onBlur(e)}},{key:"onFocus",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{autoHide:!0,delay:3e3},i=this.innerStates;if(this.isActive=!0,this.removeClass(Q.INACTIVE),this._clearUserTimer(),void 0!==t.isLock&&(i.isActiveLocked=t.isLock),!1===t.autoHide||!0===t.isLock||i.isActiveLocked)this._clearUserTimer();else{var s=t&&t.delay?t.delay:this.config.inactive;this.userTimer=h.setTimeout(this,function(){e.userTimer=null,e.blur()},s)}}},{key:"onBlur",value:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).ignorePaused,t=void 0!==e&&e;if(!this.innerStates.isActiveLocked){var i=this.config.closePauseVideoFocus;this.isActive=!1,(t||i||!this.paused&&!this.ended)&&this.addClass(Q.INACTIVE)}}},{key:"onEmptied",value:function(){this.updateAcc("emptied")}},{key:"onCanplay",value:function(){this.removeClass(Q.ENTER),this.removeClass(Q.ERROR),this.removeClass(Q.LOADING),this.isCanplay=!0,this.waitTimer&&h.clearTimeout(this,this.waitTimer)}},{key:"onLoadeddata",value:function(){var e=this;this.isError=!1,this.isSeeking=!1,this.__startTime>0&&(this.duration>0?this._seekToStartTime():this.once(x,function(){e._seekToStartTime()}))}},{key:"onLoadstart",value:function(){this.removeClass(Q.ERROR),this.isCanplay=!1}},{key:"onPlay",value:function(){this.state===he.ENDED&&this.setState(he.RUNNING),this.removeClass(Q.PAUSED),this.ended&&this.removeClass(Q.ENDED),!this.config.closePlayVideoFocus&&this.focus()}},{key:"onPause",value:function(){this.addClass(Q.PAUSED),this.updateAcc("pause"),this.config.closePauseVideoFocus||(this._clearUserTimer(),this.focus())}},{key:"onEnded",value:function(){this.updateAcc("ended"),this.addClass(Q.ENDED),this.setState(he.ENDED)}},{key:"onError",value:function(){this.isError=!0,this.updateAcc("error"),this.removeClass(Q.NOT_ALLOW_AUTOPLAY),this.removeClass(Q.NO_START),this.removeClass(Q.ENTER),this.removeClass(Q.LOADING),this.addClass(Q.ERROR)}},{key:"onSeeking",value:function(){this.isSeeking||this.updateAcc("seeking"),this.isSeeking=!0,this.addClass(Q.SEEKING)}},{key:"onSeeked",value:function(){this.isSeeking=!1,this.waitTimer&&h.clearTimeout(this,this.waitTimer),this.removeClass(Q.LOADING),this.removeClass(Q.SEEKING)}},{key:"onWaiting",value:function(){var e=this;this.waitTimer&&h.clearTimeout(this,this.waitTimer),this.updateAcc("waiting"),this.waitTimer=h.setTimeout(this,function(){e.addClass(Q.LOADING),e.emit(U),h.clearTimeout(e,e.waitTimer),e.waitTimer=null},this.config.minWaitDelay)}},{key:"onPlaying",value:function(){var e=this;this.isError=!1,[Q.NO_START,Q.PAUSED,Q.ENDED,Q.ERROR,Q.REPLAY,Q.LOADING].forEach(function(t){e.removeClass(t)}),this._accPlayed.t||this.paused||this.ended||(this._accPlayed.t=/* @__PURE__ */(new Date).getTime())}},{key:"onTimeupdate",value:function(){!this._videoHeight&&this.media.videoHeight&&this.resize(),(this.waitTimer||this.hasClass(Q.LOADING))&&this.media.readyState>2&&(this.removeClass(Q.LOADING),h.clearTimeout(this,this.waitTimer),this.waitTimer=null),!this.paused&&this.state===he.NOTALLOW&&this.duration&&(this.setState(he.RUNNING),this.emit(P)),this._accPlayed.t||this.paused||this.ended||(this._accPlayed.t=/* @__PURE__ */(new Date).getTime())}},{key:"onVolumechange",value:function(){"Number"===h.typeOf(this.config.volume)&&(this.config.volume=this.volume)}},{key:"onRatechange",value:function(){this.config.defaultPlaybackRate=this.playbackRate}},{key:"emitUserAction",value:function(e,t,i){if(this.media&&t&&e){var s="String"===h.typeOf(e)?e:e.type||"";i.props&&"Array"!==h.typeOf(i.props)&&(i.props=[i.props]),this.emit(m,u({eventType:s,action:t,currentTime:this.currentTime,duration:this.duration,ended:this.ended,event:e},i))}}},{key:"updateAcc",value:function(e){if(this._accPlayed.t){var t=/* @__PURE__ */(new Date).getTime()-this._accPlayed.t;this._accPlayed.acc+=t,this._accPlayed.t=0,("ended"===e||this.ended)&&(this._accPlayed.loopAcc=this._accPlayed.acc)}}},{key:"checkBuffer",value:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{startDiff:0,endDiff:0})||{},i=t.startDiff,s=void 0===i?0:i,n=t.endDiff,o=void 0===n?0:n,r=this.media.buffered;if(!r||0===r.length||!this.duration)return!0;for(var a=e||this.media.currentTime||.2,l=r.length,u=0;u<l;u++)if(r.start(u)+s<=a&&r.end(u)-o>a)return!0;return!1}},{key:"resizePosition",value:function(){var e=this,t=this.videoPos,i=t.vy,s=t.vx,n=t.h,o=t.w,r=this.videoPos.rotate;if(!(r<0&&n<0&&o<0)){var a=this.videoPos._pi;if(!a&&this.media.videoHeight&&(a=this.media.videoWidth/this.media.videoHeight*100),a){this.videoPos.pi=a;var l={rotate:r=r<0?0:r},u=0,c=0,f=1,d=Math.abs(r/90),g=this.root,v=this.innerContainer,p=g.offsetWidth,m=v?v.offsetHeight:g.offsetHeight,y={},_=m,k=p;if(d%2==0)f=n>0?100/n:o>0?100/o:1,l.scale=f,u=i>0?(100-n)/2-i:0,l.y=2===d?0-u:u,c=s>0?(100-o)/2-s:0,l.x=2===d?0-c:c,y.width="".concat(k,"px"),y.height="".concat(_,"px"),y.maxWidth="",y.maxHeight="";else if(d%2==1){_=p;var E=m-p;c=-E/2/(k=m)*100,l.x=3===d?c+i/2:c-i/2,u=E/2/_*100,l.y=3===d?u+s/2:u-s/2,l.scale=f,y.width="".concat(k,"px"),y.maxWidth="".concat(k,"px"),y.height="".concat(_,"px"),y.maxHeight="".concat(_,"px")}var T=h.getTransformStyle(l,this.media.style.transform||this.media.style.webkitTransform);y.transform=T,y.webkitTransform=T,Object.keys(y).map(function(t){e.media.style[t]=y[t]})}}}},{key:"position",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{h:0,y:0,x:0,w:0};if(this.media&&e&&e.h){var t=this.videoPos;t.h=100*e.h||0,t.w=100*e.w||0,t.vx=100*e.x||0,t.vy=100*e.y||0,this.resizePosition()}}},{key:"setConfig",value:function(e){var t=this;e&&Object.keys(e).map(function(i){if("plugins"!==i){t.config[i]=e[i];var s=t.plugins[i.toLowerCase()];s&&"Function"===h.typeOf(s.setConfig)&&s.setConfig(e[i])}})}},{key:"playNext",value:function(e){var t=this;this.resetState(),this.setConfig(e),this._currentTime=0,this._duration=0,$(this,"playnext",function(){t.start(),t.emit(B,e)})}},{key:"resize",value:function(){var e=this;if(this.media&&this.root){var t=this.root.getBoundingClientRect();this.sizeInfo.width=t.width,this.sizeInfo.height=t.height,this.sizeInfo.left=t.left,this.sizeInfo.top=t.top;var i=this.media,s=i.videoWidth,n=i.videoHeight,o=this.config,r=o.fitVideoSize,a=o.videoFillMode;if("fill"!==a&&"cover"!==a&&"contain"!==a||this.setAttribute("data-xgfill",a),n&&s){this._videoHeight=n,this._videoWidth=s;var l=this.controls&&this.innerContainer?this.controls.root.getBoundingClientRect().height:0,u=t.width,c=t.height-l,h=parseInt(s/n*1e3,10),f=parseInt(u/c*1e3,10),d=u,g=c,v={};"auto"===r&&f>h||"fixWidth"===r?(g=u/h*1e3,this.config.fluid?v.paddingTop="".concat(100*g/d,"%"):v.height="".concat(g+l,"px")):("auto"===r&&f<h||"fixHeight"===r)&&(d=h*c/1e3,v.width="".concat(d,"px")),this.fullscreen||this.cssfullscreen||Object.keys(v).forEach(function(t){e.root.style[t]=v[t]}),("fillHeight"===a&&f<h||"fillWidth"===a&&f>h)&&this.setAttribute("data-xgfill","cover");var p={videoScale:h,vWidth:d,vHeight:g,cWidth:d,cHeight:g+l};this.resizePosition(),this.emit(j,p)}}}},{key:"updateObjectPosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.media.updateObjectPosition?this.media.updateObjectPosition(e,t):this.media.style.objectPosition="".concat(100*e,"% ").concat(100*t,"%")}},{key:"setState",value:function(e){ae.logInfo("setState","state from:".concat(fe[this.state]," to:").concat(fe[e])),this._state=e}},{key:"preProcessUrl",value:function(e,t){var i=this.config,s=i.preProcessUrl,n=i.preProcessUrlOptions,o=Object.assign({},n,t);return h.isBlob(e)||"function"!=typeof s?{url:e}:s(e,o)}},{key:"_seekToStartTime",value:function(){this.__startTime>0&&this.duration>0&&(this.currentTime=this.__startTime>this.duration?this.duration:this.__startTime,this.__startTime=-1)}},{key:"state",get:function(){return this._state}},{key:"isFullscreen",get:function(){return this.fullscreen}},{key:"isCssfullScreen",get:function(){return this.cssfullscreen}},{key:"hasStart",get:function(){return this._hasStart},set:function(e){"boolean"==typeof e&&(this._hasStart=e,!1===e&&this.setState(he.READY),this.emit("hasstart"))}},{key:"isPlaying",get:function(){return this._state===he.RUNNING||this._state===he.ENDED},set:function(e){e?this.setState(he.RUNNING):this._state>=he.RUNNING&&this.setState(he.ATTACHED)}},{key:"definitionList",get:function(){return this.config&&this.config.definition&&this.config.definition.list||[]},set:function(e){var t=this,i=this.config.definition,s=null,n=null;i.list=e,this.emit("resourceReady",e),e.forEach(function(e){var o;(null===(o=t.curDefinition)||void 0===o?void 0:o.definition)===e.definition&&(s=e),i.defaultDefinition===e.definition&&(n=e)}),!n&&e.length>0&&(n=e[0]),s?this.changeDefinition(s):n&&this.changeDefinition(n)}},{key:"videoFrameInfo",get:function(){var e={total:0,dropped:0,corrupted:0,droppedRate:0,droppedDuration:0};if(!this.media||!this.media.getVideoPlaybackQuality)return e;var t=this.media.getVideoPlaybackQuality();return e.dropped=t.droppedVideoFrames||0,e.total=t.totalVideoFrames||0,e.corrupted=t.corruptedVideoFrames||0,e.total>0&&(e.droppedRate=e.dropped/e.total*100,e.droppedDuration=parseInt(this.cumulateTime/e.total*e.dropped,0)),e}},{key:"lang",get:function(){return this.config.lang},set:function(e){0!==ue.langKeys.filter(function(t){return t===e}).length||"zh"===e?(this.config.lang=e,q.setLang(e,this)):console.error("Sorry, set lang fail, because the language [".concat(e,"] is not supported now, list of all supported languages is [").concat(ue.langKeys.join(),"] "))}},{key:"i18n",get:function(){var e=this.config.lang;return"zh"===e&&(e="zh-cn"),this.__i18n.lang[e]||this.__i18n.lang.en}},{key:"i18nKeys",get:function(){return this.__i18n.textKeys||{}}},{key:"version",get:function(){return ce}},{key:"playerId",get:function(){return this._pluginInfoId}},{key:"url",get:function(){return this.__url||this.config.url},set:function(e){this.__url=e}},{key:"poster",get:function(){return this.plugins.poster?this.plugins.poster.config.poster:this.config.poster},set:function(e){this.plugins.poster&&this.plugins.poster.update(e)}},{key:"readyState",get:function(){return a(l(Y.prototype),"readyState",this)}},{key:"error",get:function(){var e=a(l(Y.prototype),"error",this);return this.i18n[e]||e}},{key:"networkState",get:function(){return a(l(Y.prototype),"networkState",this)}},{key:"fullscreenChanging",get:function(){return!(null===this._fullScreenOffset)}},{key:"cumulateTime",get:function(){var e=this._accPlayed,t=e.acc,i=e.t;return i?/* @__PURE__ */(new Date).getTime()-i+t:t}},{key:"zoom",get:function(){return this.config.zoom},set:function(e){this.config.zoom=e}},{key:"videoRotateDeg",get:function(){return this.videoPos.rotate},set:function(e){(e=h.convertDeg(e))%90==0&&e!==this.videoPos.rotate&&(this.videoPos.rotate=e,this.resizePosition())}},{key:"avgSpeed",get:function(){return me},set:function(e){me=e}},{key:"realTimeSpeed",get:function(){return pe},set:function(e){pe=e}},{key:"offsetCurrentTime",get:function(){return this._offsetInfo.currentTime||0},set:function(e){this._offsetInfo.currentTime=e}},{key:"offsetDuration",get:function(){return this._offsetInfo.duration||0},set:function(e){this._offsetInfo.duration=e||0}},{key:"hook",value:function(e,t){return te.call.apply(te,[this].concat(Array.prototype.slice.call(arguments)))}},{key:"useHooks",value:function(e,t){return ie.call.apply(ie,[this].concat(Array.prototype.slice.call(arguments)))}},{key:"removeHooks",value:function(e,t){return se.call.apply(se,[this].concat(Array.prototype.slice.call(arguments)))}},{key:"usePluginHooks",value:function(e,t,i){for(var s=arguments.length,n=new Array(s>3?s-3:0),o=3;o<s;o++)n[o-3]=arguments[o];return ne.call.apply(ne,[this].concat(Array.prototype.slice.call(arguments)))}},{key:"removePluginHooks",value:function(e,t,i){for(var s=arguments.length,n=new Array(s>3?s-3:0),o=3;o<s;o++)n[o-3]=arguments[o];return oe.call.apply(oe,[this].concat(Array.prototype.slice.call(arguments)))}},{key:"setUserActive",value:function(e,t){var i;"boolean"==typeof t&&t!==this.muted&&(this.addInnerOP("volumechange"),h.typeOf(t)===Boolean&&(this.muted=t)),null===(i=ye)||void 0===i||i.setActive(this.playerId,e)}}],[{key:"debugger",get:function(){return ae.config.debug},set:function(e){ae.config.debug=e}},{key:"instManager",get:function(){return ye},set:function(e){ye=e}},{key:"getCurrentUserActivePlayerId",value:function(){var e;return null===(e=ye)||void 0===e?void 0:e.getActiveId()}},{key:"setCurrentUserActive",value:function(e,t){var i;null===(i=ye)||void 0===i||i.setActive(e,t)}},{key:"isHevcSupported",value:function(){return d.isHevcSupported()}},{key:"probeConfigSupported",value:function(e){return d.probeConfigSupported(e)}},{key:"install",value:function(e,t){Y.plugins||(Y.plugins={}),Y.plugins[e]||(Y.plugins[e]=t)}},{key:"use",value:function(e,t){Y.plugins||(Y.plugins={}),Y.plugins[e]=t}}]),Y}();e(_e,"defaultPreset",null),e(_e,"XgVideoProxy",null),_e.instManager=de.getInstance();export{K as BasePlugin,v as Errors,H as Events,ue as I18N,Y as Plugin,Q as STATE_CLASS,d as Sniffer,h as Util,_e as default};
|
|
14
|
+
import { defineProperty as b, inherits as he, createSuper as de, classCallCheck as ge, assertThisInitialized as A, possibleConstructorReturn as ve, createClass as me, get as R, getPrototypeOf as L, objectSpread2 as U } from "./_virtual/_rollupPluginBabelHelpers.js";
|
|
15
|
+
import pe from "./mediaProxy.js";
|
|
16
|
+
import l, { checkIsCurrentVideo as ye } from "./utils/util.js";
|
|
17
|
+
import k from "./utils/sniffer.js";
|
|
18
|
+
import _e from "./utils/database.js";
|
|
19
|
+
import Ee from "./error.js";
|
|
20
|
+
import { CANPLAY as x, USER_ACTION as $, FULLSCREEN_CHANGE as D, READY as Te, ERROR as Pe, LOADED_DATA as j, PLAY as K, URL_NULL as Se, COMPLETE as Ce, AUTOPLAY_STARTED as B, AUTOPLAY_PREVENTED as Ae, SEEKED as G, DEFINITION_CHANGE as ke, AFTER_DEFINITION_CHANGE as X, RESET as Ne, DESTROY as Re, REPLAY as Le, CSS_FULLSCREEN_CHANGE as q, PLAYER_FOCUS as Fe, PLAYER_BLUR as Ie, DURATION_CHANGE as Oe, LOADING as De, PLAYNEXT as be, VIDEO_RESIZE as we } from "./events.js";
|
|
21
|
+
import * as Ze from "./events.js";
|
|
22
|
+
import { PLATER_ID as I, FULLSCREEN_EVENTS as Q, GET_FULLSCREEN_API as Z, EXIT_FULLSCREEN_API as J } from "./constant.js";
|
|
23
|
+
import { POSITIONS as W } from "./plugin/plugin.js";
|
|
24
|
+
import { default as vt } from "./plugin/plugin.js";
|
|
25
|
+
import ee from "./plugin/basePlugin.js";
|
|
26
|
+
import E from "./plugin/pluginsManager.js";
|
|
27
|
+
import n from "./stateClassMap.js";
|
|
28
|
+
import te from "./defaultConfig.js";
|
|
29
|
+
import { usePreset as Ue } from "./plugin/preset.js";
|
|
30
|
+
import xe, { runHooks as w, delHooksDescriptor as He, hook as ie, useHooks as se, removeHooks as re, usePluginHooks as ne, removePluginHooks as oe } from "./plugin/hooksDescriptor.js";
|
|
31
|
+
import Be from "./plugins/controls/index.js";
|
|
32
|
+
import S, { bindDebug as Ge } from "./utils/debug.js";
|
|
33
|
+
import H from "./lang/i18n.js";
|
|
34
|
+
import We from "./version.js";
|
|
35
|
+
import { STATES as g, STATE_ARRAY as ae } from "./state.js";
|
|
36
|
+
import { InstManager as ze, checkPlayerRoot as Ye } from "./instManager.js";
|
|
37
|
+
var Ve = ["play", "pause", "replay", "retry"], le = 0, ue = 0, F = null, z = /* @__PURE__ */ (function(ce) {
|
|
38
|
+
he(m, ce);
|
|
39
|
+
var fe = de(m);
|
|
40
|
+
function m(s) {
|
|
41
|
+
var e;
|
|
42
|
+
ge(this, m);
|
|
43
|
+
var t = l.deepMerge(te(), s);
|
|
44
|
+
e = fe.call(this, t), b(A(e), "canPlayFunc", function() {
|
|
45
|
+
if (e.config) {
|
|
46
|
+
var h = e.config, v = h.autoplay, p = h.defaultPlaybackRate;
|
|
47
|
+
S.logInfo("player", "canPlayFunc, startTime", e.__startTime), e._seekToStartTime(), e.playbackRate = p, (v || e._useAutoplay) && e.mediaPlay(), e.off(x, e.canPlayFunc), e.removeClass(n.ENTER);
|
|
48
|
+
}
|
|
49
|
+
}), b(A(e), "onFullscreenChange", function(h, v) {
|
|
50
|
+
var p = function() {
|
|
51
|
+
l.setTimeout(A(e), function() {
|
|
52
|
+
e.resize();
|
|
53
|
+
}, 100);
|
|
54
|
+
}, T = l.getFullScreenEl();
|
|
55
|
+
e._fullActionFrom ? e._fullActionFrom = "" : e.emit($, {
|
|
56
|
+
eventType: "system",
|
|
57
|
+
action: "switch_fullscreen",
|
|
58
|
+
pluginName: "player",
|
|
59
|
+
currentTime: e.currentTime,
|
|
60
|
+
duration: e.duration,
|
|
61
|
+
props: [{
|
|
62
|
+
prop: "fullscreen",
|
|
63
|
+
from: !0,
|
|
64
|
+
to: !1
|
|
65
|
+
}]
|
|
66
|
+
});
|
|
67
|
+
var C = ye(T, e.playerId, I);
|
|
68
|
+
if (v || T && (T === e._fullscreenEl || C))
|
|
69
|
+
p(), !e.config.closeFocusVideoFocus && e.media.focus(), e.fullscreen = !0, e.changeFullStyle(e.root, T, n.FULLSCREEN), e.emit(D, !0, e._fullScreenOffset), e.cssfullscreen && e.exitCssFullscreen();
|
|
70
|
+
else if (e.fullscreen) {
|
|
71
|
+
p();
|
|
72
|
+
var P = A(e), y = P._fullScreenOffset, _ = P.config;
|
|
73
|
+
if (_.needFullscreenScroll ? (window.scrollTo(y.left, y.top), l.setTimeout(A(e), function() {
|
|
74
|
+
e.fullscreen = !1, e._fullScreenOffset = null;
|
|
75
|
+
}, 100)) : (!e.config.closeFocusVideoFocus && e.media.focus(), e.fullscreen = !1, e._fullScreenOffset = null), e.cssfullscreen)
|
|
76
|
+
e.removeClass(n.FULLSCREEN);
|
|
77
|
+
else {
|
|
78
|
+
var N = e._fullscreenEl;
|
|
79
|
+
!N && (e.root.contains(h.target) || h.target === e.root) && (N = h.target), e.recoverFullStyle(e.root, N, n.FULLSCREEN);
|
|
80
|
+
}
|
|
81
|
+
e._fullscreenEl = null, e.emit(D, !1);
|
|
82
|
+
}
|
|
83
|
+
}), b(A(e), "_onWebkitbeginfullscreen", function(h) {
|
|
84
|
+
e._fullscreenEl = e.media, e.onFullscreenChange(h, !0);
|
|
85
|
+
}), b(A(e), "_onWebkitendfullscreen", function(h) {
|
|
86
|
+
e.onFullscreenChange(h, !1);
|
|
87
|
+
}), xe(A(e), Ve), e.config = t, e._pluginInfoId = l.generateSessionId(), Ge(A(e));
|
|
88
|
+
var i = e.constructor.defaultPreset;
|
|
89
|
+
if (e.config.presets.length) {
|
|
90
|
+
var r = e.config.presets.indexOf("default");
|
|
91
|
+
r >= 0 && i && (e.config.presets[r] = i);
|
|
92
|
+
} else i && e.config.presets.push(i);
|
|
93
|
+
e.userTimer = null, e.waitTimer = null, e.handleSource = !0, e._state = g.INITIAL, e.isAd = !1, e.isError = !1, e._hasStart = !1, e.isSeeking = !1, e.isCanplay = !1, e._useAutoplay = !1, e.__startTime = -1, e.rotateDeg = 0, e.isActive = !1, e.fullscreen = !1, e.cssfullscreen = !1, e.isRotateFullscreen = !1, e._fullscreenEl = null, e.timeSegments = [], e._cssfullscreenEl = null, e.curDefinition = null, e._orgCss = "", e._fullScreenOffset = null, e._videoHeight = 0, e._videoWidth = 0, e.videoPos = {
|
|
94
|
+
pi: 1,
|
|
95
|
+
scale: 0,
|
|
96
|
+
rotate: -1,
|
|
97
|
+
x: 0,
|
|
98
|
+
y: 0,
|
|
99
|
+
h: -1,
|
|
100
|
+
w: -1,
|
|
101
|
+
vy: 0,
|
|
102
|
+
vx: 0
|
|
103
|
+
}, e.sizeInfo = {
|
|
104
|
+
width: 0,
|
|
105
|
+
height: 0,
|
|
106
|
+
left: 0,
|
|
107
|
+
top: 0
|
|
108
|
+
}, e._accPlayed = {
|
|
109
|
+
t: 0,
|
|
110
|
+
acc: 0,
|
|
111
|
+
loopAcc: 0
|
|
112
|
+
}, e._offsetInfo = {
|
|
113
|
+
currentTime: -1,
|
|
114
|
+
duration: 0
|
|
115
|
+
}, e.innerContainer = null, e.controls = null, e.topBar = null, e.root = null, e.__i18n = H.init(e._pluginInfoId), k.os.isAndroid && k.osVersion > 0 && k.osVersion < 6 && (e.config.autoplay = !1), e.database = new _e(), e.isUserActive = !1, e._onceSeekCanplay = null, e._isPauseBeforeSeek = 0, e.innerStates = {
|
|
116
|
+
isActiveLocked: !1
|
|
117
|
+
}, e.instManager = F;
|
|
118
|
+
var o = e._initDOM();
|
|
119
|
+
if (!o)
|
|
120
|
+
return console.error(new Error("can't find the dom which id is ".concat(e.config.id, " or this.config.el does not exist"))), ve(e);
|
|
121
|
+
var a = e.config, f = a.definition, u = f === void 0 ? {} : f, c = a.url;
|
|
122
|
+
if (!c && u.list && u.list.length > 0) {
|
|
123
|
+
var d = u.list.find(function(h) {
|
|
124
|
+
return h.definition && h.definition === u.defaultDefinition;
|
|
125
|
+
});
|
|
126
|
+
d || (u.defaultDefinition = u.list[0].definition, d = u.list[0]), e.config.url = d.url, e.curDefinition = d;
|
|
127
|
+
}
|
|
128
|
+
return e._bindEvents(), e._registerPresets(), e._registerPlugins(), E.onPluginsReady(A(e)), e.getInitDefinition(), e.setState(g.READY), l.setTimeout(A(e), function() {
|
|
129
|
+
e.emit(Te);
|
|
130
|
+
}, 0), e.onReady && e.onReady(), (e.config.videoInit || e.config.autoplay) && (!e.hasStart || e.state < g.ATTACHED) && e.start(), e;
|
|
131
|
+
}
|
|
132
|
+
return me(m, [{
|
|
133
|
+
key: "_initDOM",
|
|
134
|
+
value: function() {
|
|
135
|
+
var e, t = this;
|
|
136
|
+
if (this.root = this.config.id ? document.getElementById(this.config.id) : null, !this.root) {
|
|
137
|
+
var i = this.config.el;
|
|
138
|
+
if (i && i.nodeType === 1)
|
|
139
|
+
this.root = i;
|
|
140
|
+
else
|
|
141
|
+
return this.emit(Pe, new Ee("use", this.config.vid, {
|
|
142
|
+
line: 32,
|
|
143
|
+
handle: "Constructor",
|
|
144
|
+
msg: "container id can't be empty"
|
|
145
|
+
})), console.error("this.confg.id or this.config.el can't be empty"), !1;
|
|
146
|
+
}
|
|
147
|
+
var r = Ye(this.root);
|
|
148
|
+
if (r && (S.logWarn("The is an Player instance already exists in this.root, destroy it and reinitialize"), r.destroy()), this.root.setAttribute(I, this.playerId), this.media.setAttribute(I, this.playerId), (e = F) === null || e === void 0 || e.add(this), E.init(this), this._initBaseDoms(), this.config.controls) {
|
|
149
|
+
var o = this.config.controls.root || null, a = E.register(this, Be, {
|
|
150
|
+
root: o
|
|
151
|
+
});
|
|
152
|
+
this.controls = a;
|
|
153
|
+
}
|
|
154
|
+
var f = this.config.isMobileSimulateMode === "mobile" ? "mobile" : k.device;
|
|
155
|
+
if (this.addClass("".concat(n.DEFAULT, " ").concat(n.INACTIVE, " xgplayer-").concat(f, " ").concat(this.config.controls ? "" : n.NO_CONTROLS)), this.config.autoplay ? this.addClass(n.ENTER) : this.addClass(n.NO_START), this.config.fluid) {
|
|
156
|
+
var u = this.config, c = u.width, d = u.height;
|
|
157
|
+
(typeof c != "number" || typeof d != "number") && (c = 600, d = 337.5);
|
|
158
|
+
var h = {
|
|
159
|
+
width: "100%",
|
|
160
|
+
height: "0",
|
|
161
|
+
"max-width": "100%",
|
|
162
|
+
"padding-top": "".concat(d * 100 / c, "%")
|
|
163
|
+
};
|
|
164
|
+
Object.keys(h).forEach(function(y) {
|
|
165
|
+
t.root.style[y] = h[y];
|
|
166
|
+
});
|
|
167
|
+
} else
|
|
168
|
+
["width", "height"].forEach(function(y) {
|
|
169
|
+
t.config[y] && (typeof t.config[y] != "number" ? t.root.style[y] = t.config[y] : t.root.style[y] = "".concat(t.config[y], "px"));
|
|
170
|
+
});
|
|
171
|
+
var v = this.root.getBoundingClientRect(), p = v.width, T = v.height, C = v.left, P = v.top;
|
|
172
|
+
return this.sizeInfo.width = p, this.sizeInfo.height = T, this.sizeInfo.left = C, this.sizeInfo.top = P, !0;
|
|
173
|
+
}
|
|
174
|
+
}, {
|
|
175
|
+
key: "_initBaseDoms",
|
|
176
|
+
value: function() {
|
|
177
|
+
this.topBar = null, this.leftBar = null, this.rightBar = null, this.config.marginControls && (this.innerContainer = l.createDom("xg-video-container", "", {
|
|
178
|
+
"data-index": -1
|
|
179
|
+
}, "xg-video-container"), this.root.appendChild(this.innerContainer));
|
|
180
|
+
}
|
|
181
|
+
}, {
|
|
182
|
+
key: "_bindEvents",
|
|
183
|
+
value: function() {
|
|
184
|
+
var e = this;
|
|
185
|
+
["focus", "blur"].forEach(function(t) {
|
|
186
|
+
e.on(t, e["on" + t.charAt(0).toUpperCase() + t.slice(1)]);
|
|
187
|
+
}), Q.forEach(function(t) {
|
|
188
|
+
document && document.addEventListener(t, e.onFullscreenChange);
|
|
189
|
+
}), k.os.isIos && (this.media.addEventListener("webkitbeginfullscreen", this._onWebkitbeginfullscreen), this.media.addEventListener("webkitendfullscreen", this._onWebkitendfullscreen)), this.once(j, this.resize), this.playFunc = function() {
|
|
190
|
+
e.config.closeFocusVideoFocus || e.media.focus();
|
|
191
|
+
}, this.once(K, this.playFunc);
|
|
192
|
+
}
|
|
193
|
+
}, {
|
|
194
|
+
key: "_unbindEvents",
|
|
195
|
+
value: function() {
|
|
196
|
+
var e = this;
|
|
197
|
+
this.root.removeEventListener("mousemove", this.mousemoveFunc), Q.forEach(function(t) {
|
|
198
|
+
document.removeEventListener(t, e.onFullscreenChange);
|
|
199
|
+
}), this.playFunc && this.off(K, this.playFunc), this.off(x, this.canPlayFunc), this.media.removeEventListener("webkitbeginfullscreen", this._onWebkitbeginfullscreen), this.media.removeEventListener("webkitendfullscreen", this._onWebkitendfullscreen);
|
|
200
|
+
}
|
|
201
|
+
}, {
|
|
202
|
+
key: "_clearUserTimer",
|
|
203
|
+
value: function() {
|
|
204
|
+
this.userTimer && (l.clearTimeout(this, this.userTimer), this.userTimer = null);
|
|
205
|
+
}
|
|
206
|
+
}, {
|
|
207
|
+
key: "_startInit",
|
|
208
|
+
value: function(e) {
|
|
209
|
+
var t = this, i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
210
|
+
if (this.media && !((!e || e === "" || l.typeOf(e) === "Array" && e.length === 0) && (e = "", this.emit(Se), S.logWarn("config.url is null, please get url and run player._startInit(url)"), this.config.nullUrlStart))) {
|
|
211
|
+
l.isNotNull(i.playSessionId) && (this._playSessionId = i.playSessionId), this.handleSource && (this._detachSourceEvents(this.media), l.typeOf(e) === "Array" && e.length > 0 ? this._attachSourceEvents(this.media, e) : !this.media.src || this.media.src !== e ? this.media.src = e : e || this.media.removeAttribute("src")), l.typeOf(this.config.volume) === "Number" && (this.volume = this.config.volume);
|
|
212
|
+
var r = this.innerContainer ? this.innerContainer : this.root;
|
|
213
|
+
this.media instanceof window.Element && !r.contains(this.media) && r.insertBefore(this.media, r.firstChild);
|
|
214
|
+
var o = this.media.readyState;
|
|
215
|
+
S.logInfo("_startInit readyState", o), this.config.autoplay && (!l.isMSE(this.media) && this.load(), (k.os.isIpad || k.os.isPhone) && this.mediaPlay());
|
|
216
|
+
var a = this.config.startTime;
|
|
217
|
+
this.__startTime = a > 0 ? a : -1, this.config.startTime = 0, o >= 2 && this.duration > 0 ? this.canPlayFunc() : this.on(x, this.canPlayFunc), (!this.hasStart || this.state < g.ATTACHED) && E.afterInit(this), this.hasStart = !0, this.setState(g.ATTACHED), l.setTimeout(this, function() {
|
|
218
|
+
t.emit(Ce);
|
|
219
|
+
}, 0);
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
}, {
|
|
223
|
+
key: "_registerPlugins",
|
|
224
|
+
value: function() {
|
|
225
|
+
var e = this, t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0;
|
|
226
|
+
this._loadingPlugins = [];
|
|
227
|
+
var i = this.config.ignores || [], r = this.config.plugins || [], o = this.config.i18n || [];
|
|
228
|
+
t && H.extend(o, this.__i18n);
|
|
229
|
+
var a = i.join("||").toLowerCase().split("||"), f = this.plugins;
|
|
230
|
+
r.forEach(function(u) {
|
|
231
|
+
try {
|
|
232
|
+
var c = u.plugin ? u.plugin.pluginName : u.pluginName;
|
|
233
|
+
if (c && a.indexOf(c.toLowerCase()) > -1)
|
|
234
|
+
return null;
|
|
235
|
+
if (!t && f[c.toLowerCase()])
|
|
236
|
+
return;
|
|
237
|
+
if (u.lazy && u.loader) {
|
|
238
|
+
var d = E.lazyRegister(e, u);
|
|
239
|
+
u.forceBeforeInit && (d.then(function() {
|
|
240
|
+
e._loadingPlugins.splice(e._loadingPlugins.indexOf(d), 1);
|
|
241
|
+
}).catch(function(h) {
|
|
242
|
+
S.logError("_registerPlugins:loadingPlugin", h), e._loadingPlugins.splice(e._loadingPlugins.indexOf(d), 1);
|
|
243
|
+
}), e._loadingPlugins.push(d));
|
|
244
|
+
return;
|
|
245
|
+
}
|
|
246
|
+
return e.registerPlugin(u);
|
|
247
|
+
} catch (h) {
|
|
248
|
+
S.logError("_registerPlugins:", h);
|
|
249
|
+
}
|
|
250
|
+
});
|
|
251
|
+
}
|
|
252
|
+
}, {
|
|
253
|
+
key: "_registerPresets",
|
|
254
|
+
value: function() {
|
|
255
|
+
var e = this;
|
|
256
|
+
this.config.presets.forEach(function(t) {
|
|
257
|
+
Ue(e, t);
|
|
258
|
+
});
|
|
259
|
+
}
|
|
260
|
+
}, {
|
|
261
|
+
key: "_getRootByPosition",
|
|
262
|
+
value: function(e) {
|
|
263
|
+
var t = null;
|
|
264
|
+
switch (e) {
|
|
265
|
+
case W.ROOT_RIGHT:
|
|
266
|
+
this.rightBar || (this.rightBar = l.createPositionBar("xg-right-bar", this.root)), t = this.rightBar;
|
|
267
|
+
break;
|
|
268
|
+
case W.ROOT_LEFT:
|
|
269
|
+
this.leftBar || (this.leftBar = l.createPositionBar("xg-left-bar", this.root)), t = this.leftBar;
|
|
270
|
+
break;
|
|
271
|
+
case W.ROOT_TOP:
|
|
272
|
+
this.topBar || (this.topBar = l.createPositionBar("xg-top-bar", this.root), this.config.topBarAutoHide && l.addClass(this.topBar, n.TOP_BAR_AUTOHIDE)), t = this.topBar;
|
|
273
|
+
break;
|
|
274
|
+
default:
|
|
275
|
+
t = this.innerContainer || this.root;
|
|
276
|
+
break;
|
|
277
|
+
}
|
|
278
|
+
return t;
|
|
279
|
+
}
|
|
280
|
+
}, {
|
|
281
|
+
key: "registerPlugin",
|
|
282
|
+
value: function(e, t) {
|
|
283
|
+
var i = E.formatPluginInfo(e, t), r = i.PLUFGIN, o = i.options, a = this.config.plugins, f = E.checkPluginIfExits(r.pluginName, a);
|
|
284
|
+
!f && a.push(r);
|
|
285
|
+
var u = E.getRootByConfig(r.pluginName, this.config);
|
|
286
|
+
u.root && (o.root = u.root), u.position && (o.position = u.position);
|
|
287
|
+
var c = o.position ? o.position : o.config && o.config.position || r.defaultConfig && r.defaultConfig.position;
|
|
288
|
+
if (!o.root && typeof c == "string" && c.indexOf("controls") > -1) {
|
|
289
|
+
var d;
|
|
290
|
+
return (d = this.controls) === null || d === void 0 ? void 0 : d.registerPlugin(r, o, r.pluginName);
|
|
291
|
+
}
|
|
292
|
+
return o.root || (o.root = this._getRootByPosition(c)), E.register(this, r, o);
|
|
293
|
+
}
|
|
294
|
+
}, {
|
|
295
|
+
key: "deregister",
|
|
296
|
+
value: function(e) {
|
|
297
|
+
typeof e == "string" ? E.unRegister(this, e) : e instanceof ee && E.unRegister(this, e.pluginName);
|
|
298
|
+
}
|
|
299
|
+
}, {
|
|
300
|
+
key: "unRegisterPlugin",
|
|
301
|
+
value: function(e) {
|
|
302
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
303
|
+
this.deregister(e), t && this.removePluginFromConfig(e);
|
|
304
|
+
}
|
|
305
|
+
}, {
|
|
306
|
+
key: "removePluginFromConfig",
|
|
307
|
+
value: function(e) {
|
|
308
|
+
var t;
|
|
309
|
+
if (typeof e == "string" ? t = e : e instanceof ee && (t = e.pluginName), !!t)
|
|
310
|
+
for (var i = this.config.plugins.length - 1; i > -1; i--) {
|
|
311
|
+
var r = this.config.plugins[i];
|
|
312
|
+
if (r.pluginName.toLowerCase() === t.toLowerCase()) {
|
|
313
|
+
this.config.plugins.splice(i, 1);
|
|
314
|
+
break;
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
}, {
|
|
319
|
+
key: "plugins",
|
|
320
|
+
get: function() {
|
|
321
|
+
return E.getPlugins(this);
|
|
322
|
+
}
|
|
323
|
+
}, {
|
|
324
|
+
key: "getPlugin",
|
|
325
|
+
value: function(e) {
|
|
326
|
+
var t = E.findPlugin(this, e);
|
|
327
|
+
return t && t.pluginName ? t : null;
|
|
328
|
+
}
|
|
329
|
+
}, {
|
|
330
|
+
key: "addClass",
|
|
331
|
+
value: function(e) {
|
|
332
|
+
this.root && (l.hasClass(this.root, e) || l.addClass(this.root, e));
|
|
333
|
+
}
|
|
334
|
+
}, {
|
|
335
|
+
key: "removeClass",
|
|
336
|
+
value: function(e) {
|
|
337
|
+
this.root && l.removeClass(this.root, e);
|
|
338
|
+
}
|
|
339
|
+
}, {
|
|
340
|
+
key: "hasClass",
|
|
341
|
+
value: function(e) {
|
|
342
|
+
if (this.root)
|
|
343
|
+
return l.hasClass(this.root, e);
|
|
344
|
+
}
|
|
345
|
+
}, {
|
|
346
|
+
key: "setAttribute",
|
|
347
|
+
value: function(e, t) {
|
|
348
|
+
this.root && this.root.setAttribute(e, t);
|
|
349
|
+
}
|
|
350
|
+
}, {
|
|
351
|
+
key: "removeAttribute",
|
|
352
|
+
value: function(e, t) {
|
|
353
|
+
this.root && this.root.removeAttribute(e, t);
|
|
354
|
+
}
|
|
355
|
+
}, {
|
|
356
|
+
key: "start",
|
|
357
|
+
value: function(e) {
|
|
358
|
+
var t = this;
|
|
359
|
+
if (!(this.state > g.ATTACHING)) {
|
|
360
|
+
var i = this._playSessionId;
|
|
361
|
+
return l.isNotNull(i) && (this._playSessionId = void 0), !e && !this.config.url && this.getInitDefinition(), this.hasStart = !0, this.setState(g.ATTACHING), this._registerPlugins(!1), E.beforeInit(this).then(function() {
|
|
362
|
+
if (t.config) {
|
|
363
|
+
e || (e = t.url || t.config.url);
|
|
364
|
+
var r = t.preProcessUrl(e), o = t._startInit(r.url, {
|
|
365
|
+
playSessionId: i
|
|
366
|
+
});
|
|
367
|
+
return o;
|
|
368
|
+
}
|
|
369
|
+
}).catch(function(r) {
|
|
370
|
+
throw r.fileName = "player", r.lineNumber = "236", S.logError("start:beforeInit:", r), r;
|
|
371
|
+
});
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
}, {
|
|
375
|
+
key: "switchURL",
|
|
376
|
+
value: function(e, t) {
|
|
377
|
+
var i = this, r = e;
|
|
378
|
+
l.typeOf(e) === "Object" && (r = e.url), r = this.preProcessUrl(r).url;
|
|
379
|
+
var o = this.currentTime;
|
|
380
|
+
this.__startTime = o;
|
|
381
|
+
var a = this.paused && !this.isError;
|
|
382
|
+
return this.src = r, new Promise(function(f, u) {
|
|
383
|
+
var c = function(v) {
|
|
384
|
+
i.off("timeupdate", d), i.off("canplay", d), u(v);
|
|
385
|
+
}, d = function() {
|
|
386
|
+
i._seekToStartTime(), a && i.pause(), i.off("error", c), f(!0);
|
|
387
|
+
};
|
|
388
|
+
if (i.once("error", c), !r) {
|
|
389
|
+
i.errorHandler("error", {
|
|
390
|
+
code: 6,
|
|
391
|
+
message: "empty_src"
|
|
392
|
+
});
|
|
393
|
+
return;
|
|
394
|
+
}
|
|
395
|
+
k.os.isAndroid ? i.once("timeupdate", d) : i.once("canplay", d), i.play();
|
|
396
|
+
});
|
|
397
|
+
}
|
|
398
|
+
}, {
|
|
399
|
+
key: "videoPlay",
|
|
400
|
+
value: function() {
|
|
401
|
+
this.mediaPlay();
|
|
402
|
+
}
|
|
403
|
+
}, {
|
|
404
|
+
key: "mediaPlay",
|
|
405
|
+
value: function() {
|
|
406
|
+
var e = this;
|
|
407
|
+
if (!this.hasStart && this.state < g.ATTACHED) {
|
|
408
|
+
this.removeClass(n.NO_START), this.addClass(n.ENTER), this.start(), this._useAutoplay = !0;
|
|
409
|
+
return;
|
|
410
|
+
}
|
|
411
|
+
this.state < g.RUNNING && (this.removeClass(n.NO_START), !this.isCanplay && this.addClass(n.ENTER));
|
|
412
|
+
var t = R(L(m.prototype), "play", this).call(this);
|
|
413
|
+
return t !== void 0 && t && t.then ? t.then(function() {
|
|
414
|
+
e.removeClass(n.NOT_ALLOW_AUTOPLAY), e.addClass(n.PLAYING), e.state < g.RUNNING && (S.logInfo(">>>>playPromise.then"), e.setState(g.RUNNING), e.emit(B));
|
|
415
|
+
}).catch(function(i) {
|
|
416
|
+
if (S.logWarn(">>>>playPromise.catch", i.name), e.media && e.media.error) {
|
|
417
|
+
e.onError(), e.removeClass(n.ENTER);
|
|
418
|
+
return;
|
|
419
|
+
}
|
|
420
|
+
i.name === "NotAllowedError" && (e._errorTimer = l.setTimeout(e, function() {
|
|
421
|
+
e._errorTimer = null, e.emit(Ae), e.addClass(n.NOT_ALLOW_AUTOPLAY), e.removeClass(n.ENTER), e.pause(), e.setState(g.NOTALLOW);
|
|
422
|
+
}, 0));
|
|
423
|
+
}) : (S.logWarn("video.play not return promise"), this.state < g.RUNNING && (this.setState(g.RUNNING), this.removeClass(n.NOT_ALLOW_AUTOPLAY), this.removeClass(n.NO_START), this.removeClass(n.ENTER), this.addClass(n.PLAYING), this.emit(B))), t;
|
|
424
|
+
}
|
|
425
|
+
}, {
|
|
426
|
+
key: "mediaPause",
|
|
427
|
+
value: function() {
|
|
428
|
+
R(L(m.prototype), "pause", this).call(this);
|
|
429
|
+
}
|
|
430
|
+
}, {
|
|
431
|
+
key: "videoPause",
|
|
432
|
+
value: function() {
|
|
433
|
+
R(L(m.prototype), "pause", this).call(this);
|
|
434
|
+
}
|
|
435
|
+
}, {
|
|
436
|
+
key: "play",
|
|
437
|
+
value: function() {
|
|
438
|
+
var e = this;
|
|
439
|
+
return this.removeClass(n.PAUSED), w(this, "play", function() {
|
|
440
|
+
return e.mediaPlay();
|
|
441
|
+
});
|
|
442
|
+
}
|
|
443
|
+
}, {
|
|
444
|
+
key: "pause",
|
|
445
|
+
value: function() {
|
|
446
|
+
var e = this;
|
|
447
|
+
w(this, "pause", function() {
|
|
448
|
+
R(L(m.prototype), "pause", e).call(e);
|
|
449
|
+
});
|
|
450
|
+
}
|
|
451
|
+
}, {
|
|
452
|
+
key: "seek",
|
|
453
|
+
value: function(e, t) {
|
|
454
|
+
var i = this;
|
|
455
|
+
if (!(!this.media || Number.isNaN(Number(e)) || !this.hasStart)) {
|
|
456
|
+
var r = this.config, o = r.isSeekedPlay, a = r.seekedStatus, f = t || (o ? "play" : a);
|
|
457
|
+
e = e < 0 ? 0 : e > this.duration ? parseInt(this.duration, 10) : e, !this._isPauseBeforeSeek && (this._isPauseBeforeSeek = this.paused ? 2 : 1), this._onceSeekCanplay && this.off(G, this._onceSeekCanplay), this._onceSeekCanplay = function() {
|
|
458
|
+
switch (i.removeClass(n.ENTER), i.isSeeking = !1, f) {
|
|
459
|
+
case "play":
|
|
460
|
+
i.play();
|
|
461
|
+
break;
|
|
462
|
+
case "pause":
|
|
463
|
+
i.pause();
|
|
464
|
+
break;
|
|
465
|
+
default:
|
|
466
|
+
i._isPauseBeforeSeek > 1 || i.paused ? i.pause() : i.play();
|
|
467
|
+
}
|
|
468
|
+
i._isPauseBeforeSeek = 0, i._onceSeekCanplay = null;
|
|
469
|
+
}, this.once(G, this._onceSeekCanplay), this.state < g.RUNNING ? (this.removeClass(n.NO_START), this.currentTime = e, this.play()) : this.currentTime = e;
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
}, {
|
|
473
|
+
key: "getInitDefinition",
|
|
474
|
+
value: function() {
|
|
475
|
+
var e = this, t = this.config, i = t.definition, r = t.url;
|
|
476
|
+
!r && i && i.list && i.list.length > 0 && i.defaultDefinition && i.list.map(function(o) {
|
|
477
|
+
o.definition === i.defaultDefinition && (e.config.url = o.url, e.curDefinition = o);
|
|
478
|
+
});
|
|
479
|
+
}
|
|
480
|
+
}, {
|
|
481
|
+
key: "changeDefinition",
|
|
482
|
+
value: function(e, t) {
|
|
483
|
+
var i = this, r = this.config.definition;
|
|
484
|
+
if (Array.isArray(r?.list) && r.list.forEach(function(a) {
|
|
485
|
+
e?.definition === a.definition && (i.curDefinition = a);
|
|
486
|
+
}), e != null && e.bitrate && typeof e.bitrate != "number" && (e.bitrate = parseInt(e.bitrate, 10) || 0), this.emit(ke, {
|
|
487
|
+
from: t,
|
|
488
|
+
to: e
|
|
489
|
+
}), !this.hasStart) {
|
|
490
|
+
this.config.url = e.url;
|
|
491
|
+
return;
|
|
492
|
+
}
|
|
493
|
+
var o = this.switchURL(e.url, U({
|
|
494
|
+
seamless: r.seamless !== !1 && typeof MediaSource < "u" && typeof MediaSource.isTypeSupported == "function"
|
|
495
|
+
}, e));
|
|
496
|
+
o && o.then ? o.then(function() {
|
|
497
|
+
i.emit(X, {
|
|
498
|
+
from: t,
|
|
499
|
+
to: e
|
|
500
|
+
});
|
|
501
|
+
}) : this.emit(X, {
|
|
502
|
+
from: t,
|
|
503
|
+
to: e
|
|
504
|
+
});
|
|
505
|
+
}
|
|
506
|
+
}, {
|
|
507
|
+
key: "reload",
|
|
508
|
+
value: function() {
|
|
509
|
+
this.load(), this.reloadFunc = function() {
|
|
510
|
+
this.play();
|
|
511
|
+
}, this.once(j, this.reloadFunc);
|
|
512
|
+
}
|
|
513
|
+
}, {
|
|
514
|
+
key: "resetState",
|
|
515
|
+
value: function() {
|
|
516
|
+
var e = this, t = n.NOT_ALLOW_AUTOPLAY, i = n.PLAYING, r = n.NO_START, o = n.PAUSED, a = n.REPLAY, f = n.ENTER, u = n.ENDED, c = n.ERROR, d = n.LOADING, h = [t, i, r, o, a, f, u, c, d];
|
|
517
|
+
this.hasStart = !1, this.isError = !1, this._useAutoplay = !1, this.mediaPause(), this._accPlayed.acc = 0, this._accPlayed.t = 0, this._accPlayed.loopAcc = 0, h.forEach(function(v) {
|
|
518
|
+
e.removeClass(v);
|
|
519
|
+
}), this.addClass(n.NO_START), this.emit(Ne);
|
|
520
|
+
}
|
|
521
|
+
}, {
|
|
522
|
+
key: "reset",
|
|
523
|
+
value: function() {
|
|
524
|
+
var e = this, t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], i = arguments.length > 1 ? arguments[1] : void 0;
|
|
525
|
+
this.resetState();
|
|
526
|
+
var r = this.plugins;
|
|
527
|
+
if (r && (t.map(function(a) {
|
|
528
|
+
e.deregister(a);
|
|
529
|
+
}), i)) {
|
|
530
|
+
var o = te();
|
|
531
|
+
Object.keys(this.config).forEach(function(a) {
|
|
532
|
+
e.config[a] !== "undefined" && (a === "plugins" || a === "presets" || a === "el" || a === "id") && (e.config[a] = o[a]);
|
|
533
|
+
});
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
}, {
|
|
537
|
+
key: "destroy",
|
|
538
|
+
value: function() {
|
|
539
|
+
var e, t = this, i = this.innerContainer, r = this.root, o = this.media;
|
|
540
|
+
if (!(!r || !o)) {
|
|
541
|
+
if (this.hasStart = !1, this._useAutoplay = !1, r.removeAttribute(I), o.removeAttribute(I), this.updateAcc("destroy"), this._unbindEvents(), this._detachSourceEvents(this.media), l.clearAllTimers(this), this.emit(Re), (e = F) === null || e === void 0 || e.remove(this), E.destroy(this), He(this), R(L(m.prototype), "destroy", this).call(this), this.fullscreen && this._fullscreenEl === this.root && this.exitFullscreen(), i)
|
|
542
|
+
for (var a = i.children, f = 0; f < a.length; f++)
|
|
543
|
+
i.removeChild(a[f]);
|
|
544
|
+
!i && o instanceof window.Node && r.contains(o) && !this.config.remainMediaAfterDestroy && r.removeChild(o), ["topBar", "leftBar", "rightBar", "innerContainer"].map(function(c) {
|
|
545
|
+
t[c] && r.removeChild(t[c]), t[c] = null;
|
|
546
|
+
});
|
|
547
|
+
var u = r.className.split(" ");
|
|
548
|
+
u.length > 0 ? r.className = u.filter(function(c) {
|
|
549
|
+
return c.indexOf("xgplayer") < 0;
|
|
550
|
+
}).join(" ") : r.className = "", this.removeAttribute("data-xgfill"), ["isSeeking", "isCanplay", "isActive", "cssfullscreen", "fullscreen"].forEach(function(c) {
|
|
551
|
+
t[c] = !1;
|
|
552
|
+
});
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
}, {
|
|
556
|
+
key: "replay",
|
|
557
|
+
value: function() {
|
|
558
|
+
var e = this;
|
|
559
|
+
this.removeClass(n.ENDED), this.currentTime = 0, this.isSeeking = !1, w(this, "replay", function() {
|
|
560
|
+
e.once(G, function() {
|
|
561
|
+
var t = e.mediaPlay();
|
|
562
|
+
t && t.catch && t.catch(function(i) {
|
|
563
|
+
console.log(i);
|
|
564
|
+
});
|
|
565
|
+
}), e.emit(Le), e.onPlay();
|
|
566
|
+
});
|
|
567
|
+
}
|
|
568
|
+
}, {
|
|
569
|
+
key: "retry",
|
|
570
|
+
value: function() {
|
|
571
|
+
var e = this;
|
|
572
|
+
this.removeClass(n.ERROR), this.addClass(n.LOADING), w(this, "retry", function() {
|
|
573
|
+
var t = e.currentTime, i = e.config.url, r = l.isMSE(e.media) ? {
|
|
574
|
+
url: i
|
|
575
|
+
} : e.preProcessUrl(i);
|
|
576
|
+
e.src = r.url, !e.config.isLive && (e.currentTime = t), e.once(x, function() {
|
|
577
|
+
e.mediaPlay();
|
|
578
|
+
});
|
|
579
|
+
});
|
|
580
|
+
}
|
|
581
|
+
}, {
|
|
582
|
+
key: "changeFullStyle",
|
|
583
|
+
value: function(e, t, i, r) {
|
|
584
|
+
e && (r || (r = n.PARENT_FULLSCREEN), this._orgCss || (this._orgCss = l.filterStyleFromText(e)), l.addClass(e, i), t && t !== e && !this._orgPCss && (this._orgPCss = l.filterStyleFromText(t), l.addClass(t, r), t.setAttribute(I, this.playerId)));
|
|
585
|
+
}
|
|
586
|
+
}, {
|
|
587
|
+
key: "recoverFullStyle",
|
|
588
|
+
value: function(e, t, i, r) {
|
|
589
|
+
r || (r = n.PARENT_FULLSCREEN), this._orgCss && (l.setStyleFromCsstext(e, this._orgCss), this._orgCss = ""), l.removeClass(e, i), t && t !== e && this._orgPCss && (l.setStyleFromCsstext(t, this._orgPCss), this._orgPCss = "", l.removeClass(t, r), t.removeAttribute(I));
|
|
590
|
+
}
|
|
591
|
+
}, {
|
|
592
|
+
key: "getFullscreen",
|
|
593
|
+
value: function() {
|
|
594
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.config.fullscreenTarget, t = this.root, i = this.media;
|
|
595
|
+
(e === "video" || e === "media") && (e = this[e]), e || (e = t), this._fullScreenOffset = {
|
|
596
|
+
top: l.scrollTop(),
|
|
597
|
+
left: l.scrollLeft()
|
|
598
|
+
}, this._fullscreenEl = e, this._fullActionFrom = "get";
|
|
599
|
+
var r = l.getFullScreenEl();
|
|
600
|
+
if (r === this._fullscreenEl)
|
|
601
|
+
return this.onFullscreenChange(), Promise.resolve();
|
|
602
|
+
try {
|
|
603
|
+
for (var o = 0; o < Z.length; o++) {
|
|
604
|
+
var a = Z[o];
|
|
605
|
+
if (e[a]) {
|
|
606
|
+
var f = a === "webkitRequestFullscreen" ? e.webkitRequestFullscreen(window.Element.ALLOW_KEYBOARD_INPUT) : e[a]();
|
|
607
|
+
return f && f.then ? f : Promise.resolve();
|
|
608
|
+
}
|
|
609
|
+
}
|
|
610
|
+
return i.fullscreenEnabled || i.webkitSupportsFullscreen ? (i.webkitEnterFullscreen(), Promise.resolve()) : Promise.reject(new Error("call getFullscreen fail"));
|
|
611
|
+
} catch {
|
|
612
|
+
return Promise.reject(new Error("call getFullscreen fail"));
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
}, {
|
|
616
|
+
key: "exitFullscreen",
|
|
617
|
+
value: function(e) {
|
|
618
|
+
if (this.isRotateFullscreen && this.exitRotateFullscreen(), !(!this._fullscreenEl && !l.getFullScreenEl())) {
|
|
619
|
+
this.root;
|
|
620
|
+
var t = this.media;
|
|
621
|
+
this._fullActionFrom = "exit";
|
|
622
|
+
try {
|
|
623
|
+
for (var i = 0; i < J.length; i++) {
|
|
624
|
+
var r = J[i];
|
|
625
|
+
if (document[r]) {
|
|
626
|
+
var o = document[r]();
|
|
627
|
+
return o && o.then ? o : Promise.resolve();
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
return t && t.webkitSupportsFullscreen ? (t.webkitExitFullScreen(), Promise.resolve()) : Promise.reject(new Error("call exitFullscreen fail"));
|
|
631
|
+
} catch {
|
|
632
|
+
return Promise.reject(new Error("call exitFullscreen fail"));
|
|
633
|
+
}
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
}, {
|
|
637
|
+
key: "getCssFullscreen",
|
|
638
|
+
value: function() {
|
|
639
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.config.fullscreenTarget;
|
|
640
|
+
this.isRotateFullscreen ? this.exitRotateFullscreen() : this.fullscreen && this.exitFullscreen();
|
|
641
|
+
var t = e ? "".concat(n.INNER_FULLSCREEN, " ").concat(n.CSS_FULLSCREEN) : n.CSS_FULLSCREEN;
|
|
642
|
+
this.changeFullStyle(this.root, e, t);
|
|
643
|
+
var i = this.config.fullscreen, r = i === void 0 ? {} : i, o = r.useCssFullscreen === !0 || typeof r.useCssFullscreen == "function" && r.useCssFullscreen();
|
|
644
|
+
o && (this.fullscreen = !0, this.emit(D, !0)), this._cssfullscreenEl = e, this.cssfullscreen = !0, this.emit(q, !0);
|
|
645
|
+
}
|
|
646
|
+
}, {
|
|
647
|
+
key: "exitCssFullscreen",
|
|
648
|
+
value: function() {
|
|
649
|
+
var e = this._cssfullscreenEl ? "".concat(n.INNER_FULLSCREEN, " ").concat(n.CSS_FULLSCREEN) : n.CSS_FULLSCREEN;
|
|
650
|
+
if (!this.fullscreen)
|
|
651
|
+
this.recoverFullStyle(this.root, this._cssfullscreenEl, e);
|
|
652
|
+
else {
|
|
653
|
+
var t = this.config.fullscreen, i = t === void 0 ? {} : t, r = i.useCssFullscreen === !0 || typeof i.useCssFullscreen == "function" && i.useCssFullscreen();
|
|
654
|
+
r ? (this.recoverFullStyle(this.root, this._cssfullscreenEl, e), this.fullscreen = !1, this.emit(D, !1)) : this.removeClass(e);
|
|
655
|
+
}
|
|
656
|
+
this._cssfullscreenEl = null, this.cssfullscreen = !1, this.emit(q, !1);
|
|
657
|
+
}
|
|
658
|
+
}, {
|
|
659
|
+
key: "getRotateFullscreen",
|
|
660
|
+
value: function() {
|
|
661
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.config.fullscreenTarget;
|
|
662
|
+
this.cssfullscreen && this.exitCssFullscreen(e);
|
|
663
|
+
var t = e ? "".concat(n.INNER_FULLSCREEN, " ").concat(n.ROTATE_FULLSCREEN) : n.ROTATE_FULLSCREEN;
|
|
664
|
+
this._fullscreenEl = e || this.root, this.changeFullStyle(this.root, e, t, n.PARENT_ROTATE_FULLSCREEN), this.isRotateFullscreen = !0, this.fullscreen = !0, this.setRotateDeg(90), this._rootStyle = this.root.getAttribute("style");
|
|
665
|
+
var i = Math.abs(window.orientation) === 90 || Math.abs(screen.orientation.angle) === 90;
|
|
666
|
+
this.root.style.width = i ? "".concat(window.innerWidth, "px") : "".concat(window.innerHeight, "px"), this.emit(D, !0);
|
|
667
|
+
}
|
|
668
|
+
}, {
|
|
669
|
+
key: "exitRotateFullscreen",
|
|
670
|
+
value: function(e) {
|
|
671
|
+
var t = this._fullscreenEl !== this.root ? "".concat(n.INNER_FULLSCREEN, " ").concat(n.ROTATE_FULLSCREEN) : n.ROTATE_FULLSCREEN;
|
|
672
|
+
this.recoverFullStyle(this.root, this._fullscreenEl, t, n.PARENT_ROTATE_FULLSCREEN), this.isRotateFullscreen = !1, this.fullscreen = !1, this.setRotateDeg(0), this.emit(D, !1), this._rootStyle && (this.root.style.style = this._rootStyle, this._rootStyle = !1);
|
|
673
|
+
}
|
|
674
|
+
}, {
|
|
675
|
+
key: "setRotateDeg",
|
|
676
|
+
value: function(e) {
|
|
677
|
+
window.orientation === 90 || window.orientation === -90 ? this.rotateDeg = 0 : this.rotateDeg = e;
|
|
678
|
+
}
|
|
679
|
+
}, {
|
|
680
|
+
key: "focus",
|
|
681
|
+
value: function() {
|
|
682
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
|
|
683
|
+
autoHide: !this.config.closeDelayBlur,
|
|
684
|
+
delay: this.config.inactive
|
|
685
|
+
};
|
|
686
|
+
if (this.isActive) {
|
|
687
|
+
this.onFocus(e);
|
|
688
|
+
return;
|
|
689
|
+
}
|
|
690
|
+
this.emit(Fe, U({
|
|
691
|
+
paused: this.paused,
|
|
692
|
+
ended: this.ended
|
|
693
|
+
}, e));
|
|
694
|
+
}
|
|
695
|
+
}, {
|
|
696
|
+
key: "blur",
|
|
697
|
+
value: function() {
|
|
698
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
|
|
699
|
+
ignorePaused: !1
|
|
700
|
+
};
|
|
701
|
+
if (!this.isActive) {
|
|
702
|
+
this.onBlur(e);
|
|
703
|
+
return;
|
|
704
|
+
}
|
|
705
|
+
this._clearUserTimer(), this.emit(Ie, U({
|
|
706
|
+
paused: this.paused,
|
|
707
|
+
ended: this.ended
|
|
708
|
+
}, e));
|
|
709
|
+
}
|
|
710
|
+
}, {
|
|
711
|
+
key: "onFocus",
|
|
712
|
+
value: function() {
|
|
713
|
+
var e = this, t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
|
|
714
|
+
autoHide: !0,
|
|
715
|
+
delay: 3e3
|
|
716
|
+
}, i = this.innerStates;
|
|
717
|
+
if (this.isActive = !0, this.removeClass(n.INACTIVE), this._clearUserTimer(), t.isLock !== void 0 && (i.isActiveLocked = t.isLock), t.autoHide === !1 || t.isLock === !0 || i.isActiveLocked) {
|
|
718
|
+
this._clearUserTimer();
|
|
719
|
+
return;
|
|
720
|
+
}
|
|
721
|
+
var r = t && t.delay ? t.delay : this.config.inactive;
|
|
722
|
+
this.userTimer = l.setTimeout(this, function() {
|
|
723
|
+
e.userTimer = null, e.blur();
|
|
724
|
+
}, r);
|
|
725
|
+
}
|
|
726
|
+
}, {
|
|
727
|
+
key: "onBlur",
|
|
728
|
+
value: function() {
|
|
729
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.ignorePaused, i = t === void 0 ? !1 : t;
|
|
730
|
+
if (!this.innerStates.isActiveLocked) {
|
|
731
|
+
var r = this.config.closePauseVideoFocus;
|
|
732
|
+
this.isActive = !1, (i || r || !this.paused && !this.ended) && this.addClass(n.INACTIVE);
|
|
733
|
+
}
|
|
734
|
+
}
|
|
735
|
+
}, {
|
|
736
|
+
key: "onEmptied",
|
|
737
|
+
value: function() {
|
|
738
|
+
this.updateAcc("emptied");
|
|
739
|
+
}
|
|
740
|
+
}, {
|
|
741
|
+
key: "onCanplay",
|
|
742
|
+
value: function() {
|
|
743
|
+
this.removeClass(n.ENTER), this.removeClass(n.ERROR), this.removeClass(n.LOADING), this.isCanplay = !0, this.waitTimer && l.clearTimeout(this, this.waitTimer);
|
|
744
|
+
}
|
|
745
|
+
}, {
|
|
746
|
+
key: "onLoadeddata",
|
|
747
|
+
value: function() {
|
|
748
|
+
var e = this;
|
|
749
|
+
this.isError = !1, this.isSeeking = !1, this.__startTime > 0 && (this.duration > 0 ? this._seekToStartTime() : this.once(Oe, function() {
|
|
750
|
+
e._seekToStartTime();
|
|
751
|
+
}));
|
|
752
|
+
}
|
|
753
|
+
}, {
|
|
754
|
+
key: "onLoadstart",
|
|
755
|
+
value: function() {
|
|
756
|
+
this.removeClass(n.ERROR), this.isCanplay = !1;
|
|
757
|
+
}
|
|
758
|
+
}, {
|
|
759
|
+
key: "onPlay",
|
|
760
|
+
value: function() {
|
|
761
|
+
this.state === g.ENDED && this.setState(g.RUNNING), this.removeClass(n.PAUSED), this.ended && this.removeClass(n.ENDED), !this.config.closePlayVideoFocus && this.focus();
|
|
762
|
+
}
|
|
763
|
+
}, {
|
|
764
|
+
key: "onPause",
|
|
765
|
+
value: function() {
|
|
766
|
+
this.addClass(n.PAUSED), this.updateAcc("pause"), this.config.closePauseVideoFocus || (this._clearUserTimer(), this.focus());
|
|
767
|
+
}
|
|
768
|
+
}, {
|
|
769
|
+
key: "onEnded",
|
|
770
|
+
value: function() {
|
|
771
|
+
this.updateAcc("ended"), this.addClass(n.ENDED), this.setState(g.ENDED);
|
|
772
|
+
}
|
|
773
|
+
}, {
|
|
774
|
+
key: "onError",
|
|
775
|
+
value: function() {
|
|
776
|
+
this.isError = !0, this.updateAcc("error"), this.removeClass(n.NOT_ALLOW_AUTOPLAY), this.removeClass(n.NO_START), this.removeClass(n.ENTER), this.removeClass(n.LOADING), this.addClass(n.ERROR);
|
|
777
|
+
}
|
|
778
|
+
}, {
|
|
779
|
+
key: "onSeeking",
|
|
780
|
+
value: function() {
|
|
781
|
+
this.isSeeking || this.updateAcc("seeking"), this.isSeeking = !0, this.addClass(n.SEEKING);
|
|
782
|
+
}
|
|
783
|
+
}, {
|
|
784
|
+
key: "onSeeked",
|
|
785
|
+
value: function() {
|
|
786
|
+
this.isSeeking = !1, this.waitTimer && l.clearTimeout(this, this.waitTimer), this.removeClass(n.LOADING), this.removeClass(n.SEEKING);
|
|
787
|
+
}
|
|
788
|
+
}, {
|
|
789
|
+
key: "onWaiting",
|
|
790
|
+
value: function() {
|
|
791
|
+
var e = this;
|
|
792
|
+
this.waitTimer && l.clearTimeout(this, this.waitTimer), this.updateAcc("waiting"), this.waitTimer = l.setTimeout(this, function() {
|
|
793
|
+
e.addClass(n.LOADING), e.emit(De), l.clearTimeout(e, e.waitTimer), e.waitTimer = null;
|
|
794
|
+
}, this.config.minWaitDelay);
|
|
795
|
+
}
|
|
796
|
+
}, {
|
|
797
|
+
key: "onPlaying",
|
|
798
|
+
value: function() {
|
|
799
|
+
var e = this;
|
|
800
|
+
this.isError = !1;
|
|
801
|
+
var t = n.NO_START, i = n.PAUSED, r = n.ENDED, o = n.ERROR, a = n.REPLAY, f = n.LOADING, u = [t, i, r, o, a, f];
|
|
802
|
+
u.forEach(function(c) {
|
|
803
|
+
e.removeClass(c);
|
|
804
|
+
}), !this._accPlayed.t && !this.paused && !this.ended && (this._accPlayed.t = (/* @__PURE__ */ new Date()).getTime());
|
|
805
|
+
}
|
|
806
|
+
}, {
|
|
807
|
+
key: "onTimeupdate",
|
|
808
|
+
value: function() {
|
|
809
|
+
!this._videoHeight && this.media.videoHeight && this.resize(), (this.waitTimer || this.hasClass(n.LOADING)) && this.media.readyState > 2 && (this.removeClass(n.LOADING), l.clearTimeout(this, this.waitTimer), this.waitTimer = null), !this.paused && this.state === g.NOTALLOW && this.duration && (this.setState(g.RUNNING), this.emit(B)), !this._accPlayed.t && !this.paused && !this.ended && (this._accPlayed.t = (/* @__PURE__ */ new Date()).getTime());
|
|
810
|
+
}
|
|
811
|
+
}, {
|
|
812
|
+
key: "onVolumechange",
|
|
813
|
+
value: function() {
|
|
814
|
+
l.typeOf(this.config.volume) === "Number" && (this.config.volume = this.volume);
|
|
815
|
+
}
|
|
816
|
+
}, {
|
|
817
|
+
key: "onRatechange",
|
|
818
|
+
value: function() {
|
|
819
|
+
this.config.defaultPlaybackRate = this.playbackRate;
|
|
820
|
+
}
|
|
821
|
+
}, {
|
|
822
|
+
key: "emitUserAction",
|
|
823
|
+
value: function(e, t, i) {
|
|
824
|
+
if (!(!this.media || !t || !e)) {
|
|
825
|
+
var r = l.typeOf(e) === "String" ? e : e.type || "";
|
|
826
|
+
i.props && l.typeOf(i.props) !== "Array" && (i.props = [i.props]), this.emit($, U({
|
|
827
|
+
eventType: r,
|
|
828
|
+
action: t,
|
|
829
|
+
currentTime: this.currentTime,
|
|
830
|
+
duration: this.duration,
|
|
831
|
+
ended: this.ended,
|
|
832
|
+
event: e
|
|
833
|
+
}, i));
|
|
834
|
+
}
|
|
835
|
+
}
|
|
836
|
+
}, {
|
|
837
|
+
key: "updateAcc",
|
|
838
|
+
value: function(e) {
|
|
839
|
+
if (this._accPlayed.t) {
|
|
840
|
+
var t = (/* @__PURE__ */ new Date()).getTime() - this._accPlayed.t;
|
|
841
|
+
this._accPlayed.acc += t, this._accPlayed.t = 0, (e === "ended" || this.ended) && (this._accPlayed.loopAcc = this._accPlayed.acc);
|
|
842
|
+
}
|
|
843
|
+
}
|
|
844
|
+
}, {
|
|
845
|
+
key: "checkBuffer",
|
|
846
|
+
value: function(e) {
|
|
847
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
848
|
+
startDiff: 0,
|
|
849
|
+
endDiff: 0
|
|
850
|
+
}, i = t || {}, r = i.startDiff, o = r === void 0 ? 0 : r, a = i.endDiff, f = a === void 0 ? 0 : a, u = this.media.buffered;
|
|
851
|
+
if (!u || u.length === 0 || !this.duration)
|
|
852
|
+
return !0;
|
|
853
|
+
for (var c = e || this.media.currentTime || 0.2, d = u.length, h = 0; h < d; h++)
|
|
854
|
+
if (u.start(h) + o <= c && u.end(h) - f > c)
|
|
855
|
+
return !0;
|
|
856
|
+
return !1;
|
|
857
|
+
}
|
|
858
|
+
}, {
|
|
859
|
+
key: "resizePosition",
|
|
860
|
+
value: function() {
|
|
861
|
+
var e = this, t = this.videoPos, i = t.vy, r = t.vx, o = t.h, a = t.w, f = this.videoPos.rotate;
|
|
862
|
+
if (!(f < 0 && o < 0 && a < 0)) {
|
|
863
|
+
var u = this.videoPos._pi;
|
|
864
|
+
if (!u && this.media.videoHeight && (u = this.media.videoWidth / this.media.videoHeight * 100), !!u) {
|
|
865
|
+
this.videoPos.pi = u, f = f < 0 ? 0 : f;
|
|
866
|
+
var c = {
|
|
867
|
+
rotate: f
|
|
868
|
+
}, d = 0, h = 0, v = 1, p = Math.abs(f / 90), T = this.root, C = this.innerContainer, P = T.offsetWidth, y = C ? C.offsetHeight : T.offsetHeight, _ = {}, N = y, O = P;
|
|
869
|
+
if (p % 2 === 0)
|
|
870
|
+
v = o > 0 ? 100 / o : a > 0 ? 100 / a : 1, c.scale = v, d = i > 0 ? (100 - o) / 2 - i : 0, c.y = p === 2 ? 0 - d : d, h = r > 0 ? (100 - a) / 2 - r : 0, c.x = p === 2 ? 0 - h : h, _.width = "".concat(O, "px"), _.height = "".concat(N, "px"), _.maxWidth = "", _.maxHeight = "";
|
|
871
|
+
else if (p % 2 === 1) {
|
|
872
|
+
O = y, N = P;
|
|
873
|
+
var Y = y - P;
|
|
874
|
+
h = -Y / 2 / O * 100, c.x = p === 3 ? h + i / 2 : h - i / 2, d = Y / 2 / N * 100, c.y = p === 3 ? d + r / 2 : d - r / 2, c.scale = v, _.width = "".concat(O, "px"), _.maxWidth = "".concat(O, "px"), _.height = "".concat(N, "px"), _.maxHeight = "".concat(N, "px");
|
|
875
|
+
}
|
|
876
|
+
var V = l.getTransformStyle(c, this.media.style.transform || this.media.style.webkitTransform);
|
|
877
|
+
_.transform = V, _.webkitTransform = V, Object.keys(_).map(function(M) {
|
|
878
|
+
e.media.style[M] = _[M];
|
|
879
|
+
});
|
|
880
|
+
}
|
|
881
|
+
}
|
|
882
|
+
}
|
|
883
|
+
}, {
|
|
884
|
+
key: "position",
|
|
885
|
+
value: function() {
|
|
886
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
|
|
887
|
+
h: 0,
|
|
888
|
+
y: 0,
|
|
889
|
+
x: 0,
|
|
890
|
+
w: 0
|
|
891
|
+
};
|
|
892
|
+
if (!(!this.media || !e || !e.h)) {
|
|
893
|
+
var t = this.videoPos;
|
|
894
|
+
t.h = e.h * 100 || 0, t.w = e.w * 100 || 0, t.vx = e.x * 100 || 0, t.vy = e.y * 100 || 0, this.resizePosition();
|
|
895
|
+
}
|
|
896
|
+
}
|
|
897
|
+
}, {
|
|
898
|
+
key: "setConfig",
|
|
899
|
+
value: function(e) {
|
|
900
|
+
var t = this;
|
|
901
|
+
e && Object.keys(e).map(function(i) {
|
|
902
|
+
if (i !== "plugins") {
|
|
903
|
+
t.config[i] = e[i];
|
|
904
|
+
var r = t.plugins[i.toLowerCase()];
|
|
905
|
+
r && l.typeOf(r.setConfig) === "Function" && r.setConfig(e[i]);
|
|
906
|
+
}
|
|
907
|
+
});
|
|
908
|
+
}
|
|
909
|
+
}, {
|
|
910
|
+
key: "playNext",
|
|
911
|
+
value: function(e) {
|
|
912
|
+
var t = this;
|
|
913
|
+
this.resetState(), this.setConfig(e), this._currentTime = 0, this._duration = 0, w(this, "playnext", function() {
|
|
914
|
+
t.start(), t.emit(be, e);
|
|
915
|
+
});
|
|
916
|
+
}
|
|
917
|
+
}, {
|
|
918
|
+
key: "resize",
|
|
919
|
+
value: function() {
|
|
920
|
+
var e = this;
|
|
921
|
+
if (!(!this.media || !this.root)) {
|
|
922
|
+
var t = this.root.getBoundingClientRect();
|
|
923
|
+
this.sizeInfo.width = t.width, this.sizeInfo.height = t.height, this.sizeInfo.left = t.left, this.sizeInfo.top = t.top;
|
|
924
|
+
var i = this.media, r = i.videoWidth, o = i.videoHeight, a = this.config, f = a.fitVideoSize, u = a.videoFillMode;
|
|
925
|
+
if ((u === "fill" || u === "cover" || u === "contain") && this.setAttribute("data-xgfill", u), !(!o || !r)) {
|
|
926
|
+
this._videoHeight = o, this._videoWidth = r;
|
|
927
|
+
var c = this.controls && this.innerContainer ? this.controls.root.getBoundingClientRect().height : 0, d = t.width, h = t.height - c, v = parseInt(r / o * 1e3, 10), p = parseInt(d / h * 1e3, 10), T = d, C = h, P = {};
|
|
928
|
+
f === "auto" && p > v || f === "fixWidth" ? (C = d / v * 1e3, this.config.fluid ? P.paddingTop = "".concat(C * 100 / T, "%") : P.height = "".concat(C + c, "px")) : (f === "auto" && p < v || f === "fixHeight") && (T = v * h / 1e3, P.width = "".concat(T, "px")), !this.fullscreen && !this.cssfullscreen && Object.keys(P).forEach(function(_) {
|
|
929
|
+
e.root.style[_] = P[_];
|
|
930
|
+
}), (u === "fillHeight" && p < v || u === "fillWidth" && p > v) && this.setAttribute("data-xgfill", "cover");
|
|
931
|
+
var y = {
|
|
932
|
+
videoScale: v,
|
|
933
|
+
vWidth: T,
|
|
934
|
+
vHeight: C,
|
|
935
|
+
cWidth: T,
|
|
936
|
+
cHeight: C + c
|
|
937
|
+
};
|
|
938
|
+
this.resizePosition(), this.emit(we, y);
|
|
939
|
+
}
|
|
940
|
+
}
|
|
941
|
+
}
|
|
942
|
+
}, {
|
|
943
|
+
key: "updateObjectPosition",
|
|
944
|
+
value: function() {
|
|
945
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
|
|
946
|
+
if (this.media.updateObjectPosition) {
|
|
947
|
+
this.media.updateObjectPosition(e, t);
|
|
948
|
+
return;
|
|
949
|
+
}
|
|
950
|
+
this.media.style.objectPosition = "".concat(e * 100, "% ").concat(t * 100, "%");
|
|
951
|
+
}
|
|
952
|
+
}, {
|
|
953
|
+
key: "setState",
|
|
954
|
+
value: function(e) {
|
|
955
|
+
S.logInfo("setState", "state from:".concat(ae[this.state], " to:").concat(ae[e])), this._state = e;
|
|
956
|
+
}
|
|
957
|
+
}, {
|
|
958
|
+
key: "preProcessUrl",
|
|
959
|
+
value: function(e, t) {
|
|
960
|
+
var i = this.config, r = i.preProcessUrl, o = i.preProcessUrlOptions, a = Object.assign({}, o, t);
|
|
961
|
+
return !l.isBlob(e) && typeof r == "function" ? r(e, a) : {
|
|
962
|
+
url: e
|
|
963
|
+
};
|
|
964
|
+
}
|
|
965
|
+
}, {
|
|
966
|
+
key: "_seekToStartTime",
|
|
967
|
+
value: function() {
|
|
968
|
+
this.__startTime > 0 && this.duration > 0 && (this.currentTime = this.__startTime > this.duration ? this.duration : this.__startTime, this.__startTime = -1);
|
|
969
|
+
}
|
|
970
|
+
}, {
|
|
971
|
+
key: "state",
|
|
972
|
+
get: function() {
|
|
973
|
+
return this._state;
|
|
974
|
+
}
|
|
975
|
+
}, {
|
|
976
|
+
key: "isFullscreen",
|
|
977
|
+
get: function() {
|
|
978
|
+
return this.fullscreen;
|
|
979
|
+
}
|
|
980
|
+
}, {
|
|
981
|
+
key: "isCssfullScreen",
|
|
982
|
+
get: function() {
|
|
983
|
+
return this.cssfullscreen;
|
|
984
|
+
}
|
|
985
|
+
}, {
|
|
986
|
+
key: "hasStart",
|
|
987
|
+
get: function() {
|
|
988
|
+
return this._hasStart;
|
|
989
|
+
},
|
|
990
|
+
set: function(e) {
|
|
991
|
+
typeof e == "boolean" && (this._hasStart = e, e === !1 && this.setState(g.READY), this.emit("hasstart"));
|
|
992
|
+
}
|
|
993
|
+
}, {
|
|
994
|
+
key: "isPlaying",
|
|
995
|
+
get: function() {
|
|
996
|
+
return this._state === g.RUNNING || this._state === g.ENDED;
|
|
997
|
+
},
|
|
998
|
+
set: function(e) {
|
|
999
|
+
e ? this.setState(g.RUNNING) : this._state >= g.RUNNING && this.setState(g.ATTACHED);
|
|
1000
|
+
}
|
|
1001
|
+
}, {
|
|
1002
|
+
key: "definitionList",
|
|
1003
|
+
get: function() {
|
|
1004
|
+
return !this.config || !this.config.definition ? [] : this.config.definition.list || [];
|
|
1005
|
+
},
|
|
1006
|
+
set: function(e) {
|
|
1007
|
+
var t = this, i = this.config.definition, r = null, o = null;
|
|
1008
|
+
i.list = e, this.emit("resourceReady", e), e.forEach(function(a) {
|
|
1009
|
+
var f;
|
|
1010
|
+
((f = t.curDefinition) === null || f === void 0 ? void 0 : f.definition) === a.definition && (r = a), i.defaultDefinition === a.definition && (o = a);
|
|
1011
|
+
}), !o && e.length > 0 && (o = e[0]), r ? this.changeDefinition(r) : o && this.changeDefinition(o);
|
|
1012
|
+
}
|
|
1013
|
+
}, {
|
|
1014
|
+
key: "videoFrameInfo",
|
|
1015
|
+
get: function() {
|
|
1016
|
+
var e = {
|
|
1017
|
+
total: 0,
|
|
1018
|
+
dropped: 0,
|
|
1019
|
+
corrupted: 0,
|
|
1020
|
+
droppedRate: 0,
|
|
1021
|
+
droppedDuration: 0
|
|
1022
|
+
};
|
|
1023
|
+
if (!this.media || !this.media.getVideoPlaybackQuality)
|
|
1024
|
+
return e;
|
|
1025
|
+
var t = this.media.getVideoPlaybackQuality();
|
|
1026
|
+
return e.dropped = t.droppedVideoFrames || 0, e.total = t.totalVideoFrames || 0, e.corrupted = t.corruptedVideoFrames || 0, e.total > 0 && (e.droppedRate = e.dropped / e.total * 100, e.droppedDuration = parseInt(this.cumulateTime / e.total * e.dropped, 0)), e;
|
|
1027
|
+
}
|
|
1028
|
+
}, {
|
|
1029
|
+
key: "lang",
|
|
1030
|
+
get: function() {
|
|
1031
|
+
return this.config.lang;
|
|
1032
|
+
},
|
|
1033
|
+
set: function(e) {
|
|
1034
|
+
var t = H.langKeys.filter(function(i) {
|
|
1035
|
+
return i === e;
|
|
1036
|
+
});
|
|
1037
|
+
if (t.length === 0 && e !== "zh") {
|
|
1038
|
+
console.error("Sorry, set lang fail, because the language [".concat(e, "] is not supported now, list of all supported languages is [").concat(H.langKeys.join(), "] "));
|
|
1039
|
+
return;
|
|
1040
|
+
}
|
|
1041
|
+
this.config.lang = e, E.setLang(e, this);
|
|
1042
|
+
}
|
|
1043
|
+
}, {
|
|
1044
|
+
key: "i18n",
|
|
1045
|
+
get: function() {
|
|
1046
|
+
var e = this.config.lang;
|
|
1047
|
+
return e === "zh" && (e = "zh-cn"), this.__i18n.lang[e] || this.__i18n.lang.en;
|
|
1048
|
+
}
|
|
1049
|
+
}, {
|
|
1050
|
+
key: "i18nKeys",
|
|
1051
|
+
get: function() {
|
|
1052
|
+
return this.__i18n.textKeys || {};
|
|
1053
|
+
}
|
|
1054
|
+
}, {
|
|
1055
|
+
key: "version",
|
|
1056
|
+
get: function() {
|
|
1057
|
+
return We;
|
|
1058
|
+
}
|
|
1059
|
+
}, {
|
|
1060
|
+
key: "playerId",
|
|
1061
|
+
get: function() {
|
|
1062
|
+
return this._pluginInfoId;
|
|
1063
|
+
}
|
|
1064
|
+
}, {
|
|
1065
|
+
key: "url",
|
|
1066
|
+
get: function() {
|
|
1067
|
+
return this.__url || this.config.url;
|
|
1068
|
+
},
|
|
1069
|
+
set: function(e) {
|
|
1070
|
+
this.__url = e;
|
|
1071
|
+
}
|
|
1072
|
+
}, {
|
|
1073
|
+
key: "poster",
|
|
1074
|
+
get: function() {
|
|
1075
|
+
return this.plugins.poster ? this.plugins.poster.config.poster : this.config.poster;
|
|
1076
|
+
},
|
|
1077
|
+
set: function(e) {
|
|
1078
|
+
this.plugins.poster && this.plugins.poster.update(e);
|
|
1079
|
+
}
|
|
1080
|
+
}, {
|
|
1081
|
+
key: "readyState",
|
|
1082
|
+
get: function() {
|
|
1083
|
+
return R(L(m.prototype), "readyState", this);
|
|
1084
|
+
}
|
|
1085
|
+
}, {
|
|
1086
|
+
key: "error",
|
|
1087
|
+
get: function() {
|
|
1088
|
+
var e = R(L(m.prototype), "error", this);
|
|
1089
|
+
return this.i18n[e] || e;
|
|
1090
|
+
}
|
|
1091
|
+
}, {
|
|
1092
|
+
key: "networkState",
|
|
1093
|
+
get: function() {
|
|
1094
|
+
return R(L(m.prototype), "networkState", this);
|
|
1095
|
+
}
|
|
1096
|
+
}, {
|
|
1097
|
+
key: "fullscreenChanging",
|
|
1098
|
+
get: function() {
|
|
1099
|
+
return this._fullScreenOffset !== null;
|
|
1100
|
+
}
|
|
1101
|
+
}, {
|
|
1102
|
+
key: "cumulateTime",
|
|
1103
|
+
get: function() {
|
|
1104
|
+
var e = this._accPlayed, t = e.acc, i = e.t;
|
|
1105
|
+
return i ? (/* @__PURE__ */ new Date()).getTime() - i + t : t;
|
|
1106
|
+
}
|
|
1107
|
+
}, {
|
|
1108
|
+
key: "zoom",
|
|
1109
|
+
get: function() {
|
|
1110
|
+
return this.config.zoom;
|
|
1111
|
+
},
|
|
1112
|
+
set: function(e) {
|
|
1113
|
+
this.config.zoom = e;
|
|
1114
|
+
}
|
|
1115
|
+
}, {
|
|
1116
|
+
key: "videoRotateDeg",
|
|
1117
|
+
get: function() {
|
|
1118
|
+
return this.videoPos.rotate;
|
|
1119
|
+
},
|
|
1120
|
+
set: function(e) {
|
|
1121
|
+
e = l.convertDeg(e), !(e % 90 !== 0 || e === this.videoPos.rotate) && (this.videoPos.rotate = e, this.resizePosition());
|
|
1122
|
+
}
|
|
1123
|
+
}, {
|
|
1124
|
+
key: "avgSpeed",
|
|
1125
|
+
get: function() {
|
|
1126
|
+
return ue;
|
|
1127
|
+
},
|
|
1128
|
+
set: function(e) {
|
|
1129
|
+
ue = e;
|
|
1130
|
+
}
|
|
1131
|
+
}, {
|
|
1132
|
+
key: "realTimeSpeed",
|
|
1133
|
+
get: function() {
|
|
1134
|
+
return le;
|
|
1135
|
+
},
|
|
1136
|
+
set: function(e) {
|
|
1137
|
+
le = e;
|
|
1138
|
+
}
|
|
1139
|
+
}, {
|
|
1140
|
+
key: "offsetCurrentTime",
|
|
1141
|
+
get: function() {
|
|
1142
|
+
return this._offsetInfo.currentTime || 0;
|
|
1143
|
+
},
|
|
1144
|
+
set: function(e) {
|
|
1145
|
+
this._offsetInfo.currentTime = e;
|
|
1146
|
+
}
|
|
1147
|
+
}, {
|
|
1148
|
+
key: "offsetDuration",
|
|
1149
|
+
get: function() {
|
|
1150
|
+
return this._offsetInfo.duration || 0;
|
|
1151
|
+
},
|
|
1152
|
+
set: function(e) {
|
|
1153
|
+
this._offsetInfo.duration = e || 0;
|
|
1154
|
+
}
|
|
1155
|
+
}, {
|
|
1156
|
+
key: "hook",
|
|
1157
|
+
value: function(e, t) {
|
|
1158
|
+
return ie.call.apply(ie, [this].concat(Array.prototype.slice.call(arguments)));
|
|
1159
|
+
}
|
|
1160
|
+
}, {
|
|
1161
|
+
key: "useHooks",
|
|
1162
|
+
value: function(e, t) {
|
|
1163
|
+
return se.call.apply(se, [this].concat(Array.prototype.slice.call(arguments)));
|
|
1164
|
+
}
|
|
1165
|
+
}, {
|
|
1166
|
+
key: "removeHooks",
|
|
1167
|
+
value: function(e, t) {
|
|
1168
|
+
return re.call.apply(re, [this].concat(Array.prototype.slice.call(arguments)));
|
|
1169
|
+
}
|
|
1170
|
+
}, {
|
|
1171
|
+
key: "usePluginHooks",
|
|
1172
|
+
value: function(e, t, i) {
|
|
1173
|
+
for (var r = arguments.length, o = new Array(r > 3 ? r - 3 : 0), a = 3; a < r; a++)
|
|
1174
|
+
o[a - 3] = arguments[a];
|
|
1175
|
+
return ne.call.apply(ne, [this].concat(Array.prototype.slice.call(arguments)));
|
|
1176
|
+
}
|
|
1177
|
+
}, {
|
|
1178
|
+
key: "removePluginHooks",
|
|
1179
|
+
value: function(e, t, i) {
|
|
1180
|
+
for (var r = arguments.length, o = new Array(r > 3 ? r - 3 : 0), a = 3; a < r; a++)
|
|
1181
|
+
o[a - 3] = arguments[a];
|
|
1182
|
+
return oe.call.apply(oe, [this].concat(Array.prototype.slice.call(arguments)));
|
|
1183
|
+
}
|
|
1184
|
+
}, {
|
|
1185
|
+
key: "setUserActive",
|
|
1186
|
+
value: function(e, t) {
|
|
1187
|
+
var i;
|
|
1188
|
+
typeof t == "boolean" && t !== this.muted && (this.addInnerOP("volumechange"), l.typeOf(t) === Boolean && (this.muted = t)), (i = F) === null || i === void 0 || i.setActive(this.playerId, e);
|
|
1189
|
+
}
|
|
1190
|
+
}], [{
|
|
1191
|
+
key: "debugger",
|
|
1192
|
+
get: function() {
|
|
1193
|
+
return S.config.debug;
|
|
1194
|
+
},
|
|
1195
|
+
set: function(e) {
|
|
1196
|
+
S.config.debug = e;
|
|
1197
|
+
}
|
|
1198
|
+
}, {
|
|
1199
|
+
key: "instManager",
|
|
1200
|
+
get: function() {
|
|
1201
|
+
return F;
|
|
1202
|
+
},
|
|
1203
|
+
set: function(e) {
|
|
1204
|
+
F = e;
|
|
1205
|
+
}
|
|
1206
|
+
}, {
|
|
1207
|
+
key: "getCurrentUserActivePlayerId",
|
|
1208
|
+
value: function() {
|
|
1209
|
+
var e;
|
|
1210
|
+
return (e = F) === null || e === void 0 ? void 0 : e.getActiveId();
|
|
1211
|
+
}
|
|
1212
|
+
}, {
|
|
1213
|
+
key: "setCurrentUserActive",
|
|
1214
|
+
value: function(e, t) {
|
|
1215
|
+
var i;
|
|
1216
|
+
(i = F) === null || i === void 0 || i.setActive(e, t);
|
|
1217
|
+
}
|
|
1218
|
+
}, {
|
|
1219
|
+
key: "isHevcSupported",
|
|
1220
|
+
value: function() {
|
|
1221
|
+
return k.isHevcSupported();
|
|
1222
|
+
}
|
|
1223
|
+
}, {
|
|
1224
|
+
key: "probeConfigSupported",
|
|
1225
|
+
value: function(e) {
|
|
1226
|
+
return k.probeConfigSupported(e);
|
|
1227
|
+
}
|
|
1228
|
+
}, {
|
|
1229
|
+
key: "install",
|
|
1230
|
+
value: function(e, t) {
|
|
1231
|
+
m.plugins || (m.plugins = {}), m.plugins[e] || (m.plugins[e] = t);
|
|
1232
|
+
}
|
|
1233
|
+
}, {
|
|
1234
|
+
key: "use",
|
|
1235
|
+
value: function(e, t) {
|
|
1236
|
+
m.plugins || (m.plugins = {}), m.plugins[e] = t;
|
|
1237
|
+
}
|
|
1238
|
+
}]), m;
|
|
1239
|
+
})(pe);
|
|
1240
|
+
b(z, "defaultPreset", null);
|
|
1241
|
+
b(z, "XgVideoProxy", null);
|
|
1242
|
+
z.instManager = ze.getInstance();
|
|
1243
|
+
export {
|
|
1244
|
+
ee as BasePlugin,
|
|
1245
|
+
Ee as Errors,
|
|
1246
|
+
Ze as Events,
|
|
1247
|
+
H as I18N,
|
|
1248
|
+
vt as Plugin,
|
|
1249
|
+
n as STATE_CLASS,
|
|
1250
|
+
k as Sniffer,
|
|
1251
|
+
l as Util,
|
|
1252
|
+
z as default
|
|
1253
|
+
};
|