bitz-react-admin-ui 2.7.4 → 2.7.6
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/dist/_virtual/dayjs.min.mjs +5 -2
- package/dist/_virtual/dayjs.min2.mjs +4 -0
- package/dist/assets/iconfont/IconChenggong.mjs +25 -4
- package/dist/assets/iconfont/IconClose.mjs +24 -3
- package/dist/assets/iconfont/IconColumnCancelFixed.mjs +23 -2
- package/dist/assets/iconfont/IconColumnFixedLeft.mjs +27 -6
- package/dist/assets/iconfont/IconColumnFixedRight.mjs +27 -6
- package/dist/assets/iconfont/IconCuowu.mjs +23 -2
- package/dist/assets/iconfont/IconDragOrder.mjs +25 -4
- package/dist/assets/iconfont/IconDuigoux.mjs +25 -4
- package/dist/assets/iconfont/IconFabu.mjs +35 -5
- package/dist/assets/iconfont/IconFanhui.mjs +25 -4
- package/dist/assets/iconfont/IconGaojisousuo.mjs +26 -5
- package/dist/assets/iconfont/IconHangfengexian.mjs +41 -3
- package/dist/assets/iconfont/IconHangliefengexian.mjs +42 -4
- package/dist/assets/iconfont/IconIcFluentHomeRegular.mjs +26 -5
- package/dist/assets/iconfont/IconIcon21.mjs +25 -4
- package/dist/assets/iconfont/IconJincoude.mjs +25 -4
- package/dist/assets/iconfont/IconJinggao.mjs +25 -4
- package/dist/assets/iconfont/IconKuansongde.mjs +26 -5
- package/dist/assets/iconfont/IconLiefengexian.mjs +41 -3
- package/dist/assets/iconfont/IconMore.mjs +41 -4
- package/dist/assets/iconfont/IconShanchu.mjs +27 -6
- package/dist/assets/iconfont/IconShanchu1.mjs +35 -5
- package/dist/assets/iconfont/IconSousuo.mjs +27 -6
- package/dist/assets/iconfont/IconTejincou.mjs +25 -4
- package/dist/assets/iconfont/IconTekuansong.mjs +26 -5
- package/dist/assets/iconfont/IconTishi1.mjs +27 -6
- package/dist/assets/iconfont/IconTuodong.mjs +28 -7
- package/dist/assets/iconfont/IconWubanmawentianchong.mjs +35 -3
- package/dist/assets/iconfont/IconWufengexian.mjs +26 -4
- package/dist/assets/iconfont/IconXinxitishi.mjs +27 -6
- package/dist/assets/iconfont/IconYoubanmawentianchong.mjs +34 -3
- package/dist/assets/iconfont/IconZhongdengde.mjs +24 -3
- package/dist/assets/iconfont/IconZhongzhi.mjs +24 -3
- package/dist/assets/iconfont/index.mjs +33 -33
- package/dist/components/BitzAddTag/index.mjs +41 -8
- package/dist/components/BitzAddressBook/index.mjs +122 -35
- package/dist/components/BitzAppPage/index.mjs +18 -4
- package/dist/components/BitzAppRefresh/index.mjs +27 -15
- package/dist/components/BitzBetterScroll/index.mjs +5 -5
- package/dist/components/BitzButton/index.mjs +23 -9
- package/dist/components/BitzCalendar/index.mjs +53 -20
- package/dist/components/BitzCascader/BitzCascaderMobile.mjs +68 -30
- package/dist/components/BitzCascader/index.mjs +6 -2
- package/dist/components/BitzCollapse/index.mjs +4 -4
- package/dist/components/BitzConfigProvider/context.mjs +3 -1
- package/dist/components/BitzConfigProvider/index.mjs +12 -8
- package/dist/components/BitzConfirmModal/index.mjs +24 -1
- package/dist/components/BitzDayJs/index.mjs +1 -1
- package/dist/components/BitzDescriptions/index.mjs +11 -1
- package/dist/components/BitzDrawer/index.mjs +17 -2
- package/dist/components/BitzEmpty/index.mjs +6 -2
- package/dist/components/BitzException/index.mjs +6 -1
- package/dist/components/BitzFloatLayout/index.mjs +10 -1
- package/dist/components/BitzFluentDatePicker/index.mjs +1 -1
- package/dist/components/BitzFluentRangePicker/index.mjs +1 -1
- package/dist/components/BitzFluentRangeTimePicker/index.mjs +1 -1
- package/dist/components/BitzFluentTimePicker/index.mjs +6 -6
- package/dist/components/BitzFuiCalendar/BitzFuiCalendarStore.mjs +13 -16
- package/dist/components/BitzFuiCalendar/CalendarAgendum.mjs +27 -21
- package/dist/components/BitzFuiCalendar/CalendarAgendumItem.mjs +22 -4
- package/dist/components/BitzFuiCalendar/CalendarBody.mjs +28 -5
- package/dist/components/BitzFuiCalendar/CalendarHead.mjs +6 -3
- package/dist/components/BitzFuiCalendar/CalendarHeadItem.mjs +13 -4
- package/dist/components/BitzFuiCalendar/CalendarToolbar.mjs +48 -16
- package/dist/components/BitzFuiCalendar/ColumnData.mjs +26 -10
- package/dist/components/BitzFuiCalendar/FuiCalendarItem.mjs +44 -8
- package/dist/components/BitzFuiCalendar/index.mjs +7 -1
- package/dist/components/BitzFullScreen/index.mjs +9 -6
- package/dist/components/BitzHighlight/Child.mjs +23 -9
- package/dist/components/BitzHighlight/Highlight.mjs +26 -5
- package/dist/components/BitzHighlight/chunks.mjs +20 -17
- package/dist/components/BitzHighlight/style.mjs +4 -1
- package/dist/components/BitzImage/index.mjs +1 -1
- package/dist/components/BitzImage/previewImage.mjs +12 -5
- package/dist/components/BitzLanguageTabs/index.mjs +14 -3
- package/dist/components/BitzLazyLoad/index.mjs +7 -1
- package/dist/components/BitzList/List.mjs +17 -3
- package/dist/components/BitzList/LoadMore.mjs +29 -20
- package/dist/components/BitzLoadMore/index.mjs +34 -14
- package/dist/components/BitzMeetingTime/BitzMeetingTimeItem.mjs +25 -12
- package/dist/components/BitzMeetingTime/index.mjs +11 -7
- package/dist/components/BitzMobileLoading/index.mjs +1 -1
- package/dist/components/BitzModal/index.mjs +24 -11
- package/dist/components/BitzNoData/index.mjs +4 -1
- package/dist/components/BitzNoMore/index.mjs +1 -1
- package/dist/components/BitzOrganizationSelection/index.mjs +43 -14
- package/dist/components/BitzPageContainer/index.mjs +107 -46
- package/dist/components/BitzPageHeader/index.mjs +89 -21
- package/dist/components/BitzPagination/index.mjs +71 -22
- package/dist/components/BitzPopover/index.mjs +4 -4
- package/dist/components/BitzPullRefresh/PullRefresh.mjs +47 -18
- package/dist/components/BitzQRCode/index.mjs +6 -1
- package/dist/components/BitzQueryFilter/QueryFilterContent.mjs +35 -17
- package/dist/components/BitzQueryFilter/QueryFilterDrawer.mjs +20 -13
- package/dist/components/BitzQueryFilter/QueryFilterMobile.mjs +4 -1
- package/dist/components/BitzQueryFilter/index.mjs +69 -20
- package/dist/components/BitzRefresh/index.mjs +5 -1
- package/dist/components/BitzRemark/index.mjs +4 -4
- package/dist/components/BitzScheduleCenter/index.mjs +24 -30
- package/dist/components/BitzSearch/index.mjs +1 -1
- package/dist/components/BitzSelect/component/BitzSelectMobile.mjs +123 -48
- package/dist/components/BitzSelect/index.mjs +1 -1
- package/dist/components/BitzSkeleton/index.mjs +31 -1
- package/dist/components/BitzSwitch/index.mjs +7 -2
- package/dist/components/BitzTabbar/BitzTabbar.mjs +25 -8
- package/dist/components/BitzTabbar/BitzTabbarItem.mjs +4 -1
- package/dist/components/BitzTable/ActionBar/ActionBar.mjs +80 -12
- package/dist/components/BitzTable/ActionBar/Button.mjs +20 -15
- package/dist/components/BitzTable/ActionBar/style.mjs +12 -9
- package/dist/components/BitzTable/ActionCol/index.mjs +183 -58
- package/dist/components/BitzTable/ActionCol/style.mjs +15 -12
- package/dist/components/BitzTable/Dropdown/index.mjs +8 -1
- package/dist/components/BitzTable/Dropdown/style.mjs +9 -6
- package/dist/components/BitzTable/SelectionBar/Button.mjs +19 -6
- package/dist/components/BitzTable/SelectionBar/SelectionBar.mjs +11 -4
- package/dist/components/BitzTable/SelectionBar/style.mjs +18 -8
- package/dist/components/BitzTable/Store/index.mjs +103 -62
- package/dist/components/BitzTable/Store/utils/index.mjs +5 -5
- package/dist/components/BitzTable/SubTable/index.mjs +122 -73
- package/dist/components/BitzTable/Table/ResizableTitle copy.mjs +43 -21
- package/dist/components/BitzTable/Table/SortTableContext.mjs +39 -17
- package/dist/components/BitzTable/Table/SortableRow.mjs +44 -20
- package/dist/components/BitzTable/Table/index.mjs +444 -211
- package/dist/components/BitzTable/Table/style.mjs +10 -1
- package/dist/components/BitzTable/Table/utils.mjs +11 -4
- package/dist/components/BitzTable/TextOverflow/index.mjs +12 -3
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +105 -31
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.mjs +104 -23
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndList.mjs +68 -29
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +325 -159
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndItem.mjs +50 -16
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndList.mjs +42 -16
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +135 -38
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/RadioCard.mjs +9 -2
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/ScopeSwitch.mjs +18 -5
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +121 -49
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +62 -18
- package/dist/components/BitzTable/ToolBar/ExportIcon/ExportModal.mjs +59 -16
- package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +42 -14
- package/dist/components/BitzTable/ToolBar/FullscreenIcon/index.mjs +17 -4
- package/dist/components/BitzTable/ToolBar/Modal/index.mjs +46 -14
- package/dist/components/BitzTable/ToolBar/RefreshIcon/index.mjs +20 -9
- package/dist/components/BitzTable/ToolBar/Wrapper/index.mjs +49 -2
- package/dist/components/BitzTable/ToolBar/style.mjs +6 -1
- package/dist/components/BitzTable/index.d.ts +1 -0
- package/dist/components/BitzTableOperations/index.mjs +13 -3
- package/dist/components/BitzTableSelect/Picker/index.mjs +43 -10
- package/dist/components/BitzTableSelect/Select/index.mjs +90 -21
- package/dist/components/BitzTableSelect/SelectPopup/getData.mjs +23 -13
- package/dist/components/BitzTableSelect/SelectPopup/index.mjs +219 -69
- package/dist/components/BitzTableSelect/SingleSelect/index.mjs +87 -22
- package/dist/components/BitzTableSelect/TableCell/index.mjs +52 -11
- package/dist/components/BitzTableSelect/TextBlock/index.mjs +30 -12
- package/dist/components/BitzTableSelect/index.mjs +65 -14
- package/dist/components/BitzTableSelect/utils.mjs +3 -3
- package/dist/components/BitzTag/index.mjs +1 -1
- package/dist/components/BitzText/index.mjs +41 -14
- package/dist/components/BitzText/utils.mjs +3 -3
- package/dist/components/BitzTheme/index.mjs +6 -6
- package/dist/components/BitzTimeline/index.mjs +11 -1
- package/dist/components/BitzTimer/Form.mjs +32 -11
- package/dist/components/BitzTimer/Timer.mjs +76 -38
- package/dist/components/BitzTimer/index.mjs +66 -43
- package/dist/components/BitzToast/Toast/index.mjs +28 -10
- package/dist/components/BitzToast/index.mjs +1 -1
- package/dist/components/BitzTooltip/index.mjs +59 -20
- package/dist/components/BitzTooltip/style.mjs +9 -6
- package/dist/components/BitzTooltip/utils.mjs +2 -2
- package/dist/components/BitzTree/index.mjs +4 -1
- package/dist/components/BitzUeEditor/index.mjs +5 -5
- package/dist/components/BitzUpload/index.mjs +81 -43
- package/dist/components/BitzWebAppDrawer/index.mjs +35 -4
- package/dist/components/BitzWebAppModal/index.mjs +6 -3
- package/dist/hooks/use-event-listener.mjs +11 -2
- package/dist/hooks/use-lock-fn.mjs +13 -10
- package/dist/hooks/use-scroll-parent.mjs +16 -14
- package/dist/hooks/useEvent.mjs +7 -4
- package/dist/hooks/useMergedState.mjs +11 -11
- package/dist/node_modules/@ant-design/colors/es/generate.mjs +93 -0
- package/dist/node_modules/@ant-design/colors/es/presets.mjs +72 -0
- package/dist/node_modules/@ant-design/cssinjs/es/Cache.mjs +40 -0
- package/dist/node_modules/@ant-design/cssinjs/es/Keyframes.mjs +18 -0
- package/dist/node_modules/@ant-design/cssinjs/es/StyleContext.mjs +38 -0
- package/dist/node_modules/@ant-design/cssinjs/es/extractStyle.mjs +9 -0
- package/dist/node_modules/@ant-design/cssinjs/es/hooks/useCSSVarRegister.mjs +51 -0
- package/dist/node_modules/@ant-design/cssinjs/es/hooks/useCacheToken.mjs +92 -0
- package/dist/node_modules/@ant-design/cssinjs/es/hooks/useCompatibleInsertionEffect.mjs +15 -0
- package/dist/node_modules/@ant-design/cssinjs/es/hooks/useEffectCleanupRegister.mjs +27 -0
- package/dist/node_modules/@ant-design/cssinjs/es/hooks/useGlobalCache.mjs +47 -0
- package/dist/node_modules/@ant-design/cssinjs/es/hooks/useHMR.mjs +22 -0
- package/dist/node_modules/@ant-design/cssinjs/es/hooks/useStyleRegister.mjs +210 -0
- package/dist/node_modules/@ant-design/cssinjs/es/linters/contentQuotesLinter.mjs +10 -0
- package/dist/node_modules/@ant-design/cssinjs/es/linters/hashedAnimationLinter.mjs +7 -0
- package/dist/node_modules/@ant-design/cssinjs/es/linters/utils.mjs +8 -0
- package/dist/node_modules/@ant-design/cssinjs/es/theme/Theme.mjs +20 -0
- package/dist/node_modules/@ant-design/cssinjs/es/theme/ThemeCache.mjs +104 -0
- package/dist/node_modules/@ant-design/cssinjs/es/theme/createTheme.mjs +10 -0
- package/dist/node_modules/@ant-design/cssinjs/es/transformers/legacyLogicalProperties.mjs +4 -0
- package/dist/node_modules/@ant-design/cssinjs/es/util/cacheMapUtil.mjs +42 -0
- package/dist/node_modules/@ant-design/cssinjs/es/util/css-variables.mjs +28 -0
- package/dist/node_modules/@ant-design/cssinjs/es/util/index.mjs +52 -0
- package/dist/node_modules/@ant-design/cssinjs/node_modules/@emotion/hash/dist/hash.browser.esm.mjs +22 -0
- package/dist/node_modules/@ant-design/cssinjs/node_modules/stylis/src/Enum.mjs +9 -0
- package/dist/node_modules/@ant-design/cssinjs/node_modules/stylis/src/Parser.mjs +114 -0
- package/dist/node_modules/@ant-design/cssinjs/node_modules/stylis/src/Serializer.mjs +29 -0
- package/dist/node_modules/@ant-design/cssinjs/node_modules/stylis/src/Tokenizer.mjs +127 -0
- package/dist/node_modules/@ant-design/cssinjs/node_modules/stylis/src/Utility.mjs +37 -0
- package/dist/node_modules/@ant-design/cssinjs-utils/es/_util/hooks/useUniqueMemo.mjs +63 -0
- package/dist/node_modules/@ant-design/cssinjs-utils/es/hooks/useCSP.mjs +6 -0
- package/dist/node_modules/@ant-design/cssinjs-utils/es/util/calc/CSSCalculator.mjs +59 -0
- package/dist/node_modules/@ant-design/cssinjs-utils/es/util/calc/NumCalculator.mjs +44 -0
- package/dist/node_modules/@ant-design/cssinjs-utils/es/util/calc/calculator.mjs +8 -0
- package/dist/node_modules/@ant-design/cssinjs-utils/es/util/calc/index.mjs +11 -0
- package/dist/node_modules/@ant-design/cssinjs-utils/es/util/genStyleUtils.mjs +156 -0
- package/dist/node_modules/@ant-design/cssinjs-utils/es/util/getCompVarPrefix.mjs +6 -0
- package/dist/node_modules/@ant-design/cssinjs-utils/es/util/getComponentToken.mjs +26 -0
- package/dist/node_modules/@ant-design/cssinjs-utils/es/util/getDefaultComponentToken.mjs +11 -0
- package/dist/node_modules/@ant-design/cssinjs-utils/es/util/maxmin.mjs +36 -0
- package/dist/node_modules/@ant-design/cssinjs-utils/es/util/statistic.mjs +55 -0
- package/dist/node_modules/@ant-design/fast-color/es/FastColor.mjs +327 -0
- package/dist/node_modules/@ant-design/icons/es/components/AntdIcon.mjs +42 -0
- package/dist/node_modules/@ant-design/icons/es/components/Context.mjs +6 -0
- package/dist/node_modules/@ant-design/icons/es/components/IconBase.mjs +46 -0
- package/dist/node_modules/@ant-design/icons/es/components/twoTonePrimaryColor.mjs +18 -0
- package/dist/node_modules/@ant-design/icons/es/icons/AlignCenterOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/AppstoreOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/ArrowLeftOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/ArrowRightOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/CaretDownFilled.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/CaretDownOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/CheckCircleFilled.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/CheckCircleOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/CheckOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/ClockCircleOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/CloseCircleFilled.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/CloseOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/CopyOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/DeleteOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/DownOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/DownloadOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/EditOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/ExclamationCircleFilled.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/ExclamationCircleOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/EyeOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/FileTwoTone.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/FullscreenExitOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/FullscreenOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/InfoCircleFilled.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/InfoCircleOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/LeftOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/LoadingOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/MenuFoldOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/MenuOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/MenuUnfoldOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/MinusCircleOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/PaperClipOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/PauseCircleFilled.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/PictureTwoTone.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/PlayCircleFilled.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/PlusCircleFilled.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/PlusOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/RedoOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/ReloadOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/RightOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/SearchOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/SettingFilled.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/SettingOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/SwapRightOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/UploadOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/utils.mjs +127 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/AlignCenterOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/AppstoreOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/ArrowLeftOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/ArrowRightOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/CaretDownFilled.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/CaretDownOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/CheckCircleFilled.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/CheckCircleOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/CheckOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/ClockCircleOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/CloseCircleFilled.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/CloseOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/CopyOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/DeleteOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/DownOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/DownloadOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/EditOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/ExclamationCircleFilled.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/ExclamationCircleOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/EyeOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/FileTwoTone.mjs +7 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/FullscreenExitOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/FullscreenOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/InfoCircleFilled.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/InfoCircleOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/LeftOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/LoadingOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/MenuFoldOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/MenuOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/MenuUnfoldOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/MinusCircleOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/PaperClipOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/PauseCircleFilled.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/PictureTwoTone.mjs +7 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/PlayCircleFilled.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/PlusCircleFilled.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/PlusOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/RedoOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/ReloadOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/RightOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/SearchOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/SettingFilled.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/SettingOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/SwapRightOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/UploadOutlined.mjs +5 -0
- package/dist/node_modules/@babel/runtime/helpers/defineProperty.mjs +18 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.mjs +9 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.mjs +7 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.mjs +8 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.mjs +8 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.mjs +26 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/classCallCheck.mjs +7 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/construct.mjs +13 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/createClass.mjs +15 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/createSuper.mjs +18 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/defineProperty.mjs +12 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/extends.mjs +13 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.mjs +8 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/inherits.mjs +17 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/isNativeFunction.mjs +10 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.mjs +13 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/iterableToArray.mjs +7 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.mjs +29 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/nonIterableRest.mjs +7 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.mjs +7 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/objectSpread2.mjs +25 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.mjs +15 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.mjs +15 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.mjs +12 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.mjs +315 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.mjs +8 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/slicedToArray.mjs +10 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/toArray.mjs +10 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/toConsumableArray.mjs +10 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/toPrimitive.mjs +16 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/toPropertyKey.mjs +9 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/typeof.mjs +11 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.mjs +12 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.mjs +32 -0
- package/dist/node_modules/@babel/runtime/helpers/interopRequireDefault.mjs +13 -0
- package/dist/node_modules/@babel/runtime/helpers/objectSpread2.mjs +31 -0
- package/dist/node_modules/@babel/runtime/helpers/toPrimitive.mjs +22 -0
- package/dist/node_modules/@babel/runtime/helpers/toPropertyKey.mjs +15 -0
- package/dist/node_modules/@babel/runtime/helpers/typeof.mjs +16 -0
- package/dist/node_modules/@better-scroll/core/dist/core.esm.mjs +1377 -0
- package/dist/node_modules/@better-scroll/wheel/dist/wheel.esm.mjs +253 -0
- package/dist/node_modules/@ctrl/tinycolor/dist/module/conversion.mjs +115 -0
- package/dist/node_modules/@ctrl/tinycolor/dist/module/css-color-names.mjs +153 -0
- package/dist/node_modules/@ctrl/tinycolor/dist/module/format-input.mjs +68 -0
- package/dist/node_modules/@ctrl/tinycolor/dist/module/index.mjs +183 -0
- package/dist/node_modules/@ctrl/tinycolor/dist/module/util.mjs +32 -0
- package/dist/node_modules/@dnd-kit/accessibility/dist/accessibility.esm.mjs +54 -0
- package/dist/node_modules/@dnd-kit/core/dist/core.esm.mjs +2524 -0
- package/dist/node_modules/@dnd-kit/modifiers/dist/modifiers.esm.mjs +27 -0
- package/dist/node_modules/@dnd-kit/sortable/dist/sortable.esm.mjs +367 -0
- package/dist/node_modules/@dnd-kit/utilities/dist/utilities.esm.mjs +235 -0
- package/dist/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.mjs +251 -0
- package/dist/node_modules/@emotion/css/create-instance/dist/emotion-css-create-instance.esm.mjs +86 -0
- package/dist/node_modules/@emotion/css/dist/emotion-css.esm.mjs +7 -0
- package/dist/node_modules/@emotion/hash/dist/emotion-hash.esm.mjs +22 -0
- package/dist/node_modules/@emotion/memoize/dist/emotion-memoize.esm.mjs +9 -0
- package/dist/node_modules/@emotion/serialize/dist/emotion-serialize.esm.mjs +134 -0
- package/dist/node_modules/@emotion/serialize/node_modules/@emotion/unitless/dist/emotion-unitless.esm.mjs +53 -0
- package/dist/node_modules/@emotion/sheet/dist/emotion-sheet.esm.mjs +45 -0
- package/dist/node_modules/@emotion/unitless/dist/unitless.browser.esm.mjs +51 -0
- package/dist/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.mjs +34 -0
- package/dist/node_modules/@fullcalendar/core/index.mjs +1365 -0
- package/dist/node_modules/@fullcalendar/core/internal-common.mjs +4823 -0
- package/dist/node_modules/@fullcalendar/core/locales/zh-cn.mjs +28 -0
- package/dist/node_modules/@fullcalendar/daygrid/index.mjs +32 -0
- package/dist/node_modules/@fullcalendar/daygrid/internal.mjs +746 -0
- package/dist/node_modules/@fullcalendar/interaction/index.mjs +842 -0
- package/dist/node_modules/@fullcalendar/list/index.mjs +54 -0
- package/dist/node_modules/@fullcalendar/list/internal.mjs +207 -0
- package/dist/node_modules/@fullcalendar/react/dist/index.mjs +71 -0
- package/dist/node_modules/@fullcalendar/timegrid/index.mjs +31 -0
- package/dist/node_modules/@fullcalendar/timegrid/internal.mjs +900 -0
- package/dist/node_modules/@rc-component/async-validator/es/index.mjs +159 -0
- package/dist/node_modules/@rc-component/async-validator/es/messages.mjs +58 -0
- package/dist/node_modules/@rc-component/async-validator/es/rule/enum.mjs +7 -0
- package/dist/node_modules/@rc-component/async-validator/es/rule/index.mjs +17 -0
- package/dist/node_modules/@rc-component/async-validator/es/rule/pattern.mjs +14 -0
- package/dist/node_modules/@rc-component/async-validator/es/rule/range.mjs +10 -0
- package/dist/node_modules/@rc-component/async-validator/es/rule/required.mjs +7 -0
- package/dist/node_modules/@rc-component/async-validator/es/rule/type.mjs +63 -0
- package/dist/node_modules/@rc-component/async-validator/es/rule/url.mjs +37 -0
- package/dist/node_modules/@rc-component/async-validator/es/rule/whitespace.mjs +7 -0
- package/dist/node_modules/@rc-component/async-validator/es/util.mjs +167 -0
- package/dist/node_modules/@rc-component/async-validator/es/validator/any.mjs +14 -0
- package/dist/node_modules/@rc-component/async-validator/es/validator/array.mjs +13 -0
- package/dist/node_modules/@rc-component/async-validator/es/validator/boolean.mjs +14 -0
- package/dist/node_modules/@rc-component/async-validator/es/validator/date.mjs +17 -0
- package/dist/node_modules/@rc-component/async-validator/es/validator/enum.mjs +14 -0
- package/dist/node_modules/@rc-component/async-validator/es/validator/float.mjs +14 -0
- package/dist/node_modules/@rc-component/async-validator/es/validator/index.mjs +37 -0
- package/dist/node_modules/@rc-component/async-validator/es/validator/integer.mjs +14 -0
- package/dist/node_modules/@rc-component/async-validator/es/validator/method.mjs +14 -0
- package/dist/node_modules/@rc-component/async-validator/es/validator/number.mjs +14 -0
- package/dist/node_modules/@rc-component/async-validator/es/validator/object.mjs +14 -0
- package/dist/node_modules/@rc-component/async-validator/es/validator/pattern.mjs +14 -0
- package/dist/node_modules/@rc-component/async-validator/es/validator/regexp.mjs +14 -0
- package/dist/node_modules/@rc-component/async-validator/es/validator/required.mjs +9 -0
- package/dist/node_modules/@rc-component/async-validator/es/validator/string.mjs +14 -0
- package/dist/node_modules/@rc-component/async-validator/es/validator/type.mjs +14 -0
- package/dist/node_modules/@rc-component/color-picker/es/ColorPicker.mjs +103 -0
- package/dist/node_modules/@rc-component/color-picker/es/color.mjs +47 -0
- package/dist/node_modules/@rc-component/color-picker/es/components/ColorBlock.mjs +18 -0
- package/dist/node_modules/@rc-component/color-picker/es/components/Gradient.mjs +22 -0
- package/dist/node_modules/@rc-component/color-picker/es/components/Handler.mjs +15 -0
- package/dist/node_modules/@rc-component/color-picker/es/components/Palette.mjs +14 -0
- package/dist/node_modules/@rc-component/color-picker/es/components/Picker.mjs +58 -0
- package/dist/node_modules/@rc-component/color-picker/es/components/Slider.mjs +76 -0
- package/dist/node_modules/@rc-component/color-picker/es/components/Transform.mjs +17 -0
- package/dist/node_modules/@rc-component/color-picker/es/hooks/useColorDrag.mjs +41 -0
- package/dist/node_modules/@rc-component/color-picker/es/hooks/useColorState.mjs +17 -0
- package/dist/node_modules/@rc-component/color-picker/es/hooks/useComponent.mjs +11 -0
- package/dist/node_modules/@rc-component/color-picker/es/util.mjs +50 -0
- package/dist/node_modules/@rc-component/portal/es/Context.mjs +5 -0
- package/dist/node_modules/@rc-component/portal/es/Portal.mjs +45 -0
- package/dist/node_modules/@rc-component/portal/es/index.mjs +4 -0
- package/dist/node_modules/@rc-component/portal/es/mock.mjs +8 -0
- package/dist/node_modules/@rc-component/portal/es/useDom.mjs +37 -0
- package/dist/node_modules/@rc-component/portal/es/useScrollLocker.mjs +29 -0
- package/dist/node_modules/@rc-component/portal/es/util.mjs +6 -0
- package/dist/node_modules/@rc-component/trigger/es/Popup/Arrow.mjs +22 -0
- package/dist/node_modules/@rc-component/trigger/es/Popup/Mask.mjs +24 -0
- package/dist/node_modules/@rc-component/trigger/es/Popup/PopupContent.mjs +11 -0
- package/dist/node_modules/@rc-component/trigger/es/Popup/index.mjs +92 -0
- package/dist/node_modules/@rc-component/trigger/es/TriggerWrapper.mjs +14 -0
- package/dist/node_modules/@rc-component/trigger/es/context.mjs +5 -0
- package/dist/node_modules/@rc-component/trigger/es/hooks/useAction.mjs +13 -0
- package/dist/node_modules/@rc-component/trigger/es/hooks/useAlign.mjs +187 -0
- package/dist/node_modules/@rc-component/trigger/es/hooks/useWatch.mjs +27 -0
- package/dist/node_modules/@rc-component/trigger/es/hooks/useWinClick.mjs +27 -0
- package/dist/node_modules/@rc-component/trigger/es/index.mjs +213 -0
- package/dist/node_modules/@rc-component/trigger/es/util.mjs +61 -0
- package/dist/node_modules/ahooks/es/createUpdateEffect/index.mjs +20 -0
- package/dist/node_modules/ahooks/es/useClickAway/index.mjs +27 -0
- package/dist/node_modules/ahooks/es/useControllableValue/index.mjs +23 -0
- package/dist/node_modules/ahooks/es/useInterval/index.mjs +17 -0
- package/dist/node_modules/ahooks/es/useLatest/index.mjs +8 -0
- package/dist/node_modules/ahooks/es/useMemoizedFn/index.mjs +19 -0
- package/dist/node_modules/ahooks/es/useRafState/index.mjs +16 -0
- package/dist/node_modules/ahooks/es/useSetState/index.mjs +16 -0
- package/dist/node_modules/ahooks/es/useSize/index.mjs +34 -0
- package/dist/node_modules/ahooks/es/useThrottleFn/index.mjs +28 -0
- package/dist/node_modules/ahooks/es/useUnmount/index.mjs +17 -0
- package/dist/node_modules/ahooks/es/useUpdate/index.mjs +12 -0
- package/dist/node_modules/ahooks/es/useUpdateEffect/index.mjs +6 -0
- package/dist/node_modules/ahooks/es/useUpdateLayoutEffect/index.mjs +6 -0
- package/dist/node_modules/ahooks/es/utils/createEffectWithTarget.mjs +27 -0
- package/dist/node_modules/ahooks/es/utils/depsAreSame.mjs +11 -0
- package/dist/node_modules/ahooks/es/utils/domTarget.mjs +13 -0
- package/dist/node_modules/ahooks/es/utils/getDocumentOrShadow.mjs +18 -0
- package/dist/node_modules/ahooks/es/utils/index.mjs +9 -0
- package/dist/node_modules/ahooks/es/utils/isBrowser.mjs +5 -0
- package/dist/node_modules/ahooks/es/utils/isDev.mjs +5 -0
- package/dist/node_modules/ahooks/es/utils/useEffectWithTarget.mjs +7 -0
- package/dist/node_modules/ahooks/es/utils/useIsomorphicLayoutEffectWithTarget.mjs +8 -0
- package/dist/node_modules/ahooks/es/utils/useLayoutEffectWithTarget.mjs +7 -0
- package/dist/node_modules/antd/es/_util/ActionButton.mjs +70 -0
- package/dist/node_modules/antd/es/_util/ContextIsolator.mjs +20 -0
- package/dist/node_modules/antd/es/_util/PurePanel.mjs +16 -0
- package/dist/node_modules/antd/es/_util/colors.mjs +9 -0
- package/dist/node_modules/antd/es/_util/hooks/useClosable.mjs +66 -0
- package/dist/node_modules/antd/es/_util/hooks/useForceUpdate.mjs +8 -0
- package/dist/node_modules/antd/es/_util/hooks/usePatchElement.mjs +11 -0
- package/dist/node_modules/antd/es/_util/hooks/useZIndex.mjs +45 -0
- package/dist/node_modules/antd/es/_util/motion.mjs +34 -0
- package/dist/node_modules/antd/es/_util/placements.mjs +150 -0
- package/dist/node_modules/antd/es/_util/reactNode.mjs +13 -0
- package/dist/node_modules/antd/es/_util/styleChecker.mjs +5 -0
- package/dist/node_modules/antd/es/_util/toList.mjs +6 -0
- package/dist/node_modules/antd/es/_util/warning.mjs +38 -0
- package/dist/node_modules/antd/es/_util/wave/WaveEffect.mjs +96 -0
- package/dist/node_modules/antd/es/_util/wave/index.mjs +40 -0
- package/dist/node_modules/antd/es/_util/wave/interface.mjs +6 -0
- package/dist/node_modules/antd/es/_util/wave/style.mjs +47 -0
- package/dist/node_modules/antd/es/_util/wave/useWave.mjs +38 -0
- package/dist/node_modules/antd/es/_util/wave/util.mjs +16 -0
- package/dist/node_modules/antd/es/_util/zindexContext.mjs +7 -0
- package/dist/node_modules/antd/es/button/IconWrapper.mjs +18 -0
- package/dist/node_modules/antd/es/button/LoadingIcon.mjs +70 -0
- package/dist/node_modules/antd/es/button/button-group.mjs +65 -0
- package/dist/node_modules/antd/es/button/button.mjs +177 -0
- package/dist/node_modules/antd/es/button/buttonHelpers.mjs +44 -0
- package/dist/node_modules/antd/es/button/index.mjs +4 -0
- package/dist/node_modules/antd/es/button/style/compactCmp.mjs +75 -0
- package/dist/node_modules/antd/es/button/style/group.mjs +70 -0
- package/dist/node_modules/antd/es/button/style/index.mjs +373 -0
- package/dist/node_modules/antd/es/button/style/token.mjs +81 -0
- package/dist/node_modules/antd/es/calendar/locale/en_US.mjs +4 -0
- package/dist/node_modules/antd/es/color-picker/color.mjs +96 -0
- package/dist/node_modules/antd/es/color-picker/components/ColorPresets.mjs +17 -0
- package/dist/node_modules/antd/es/config-provider/DisabledContext.mjs +15 -0
- package/dist/node_modules/antd/es/config-provider/MotionWrapper.mjs +32 -0
- package/dist/node_modules/antd/es/config-provider/PropWarning.mjs +13 -0
- package/dist/node_modules/antd/es/config-provider/SizeContext.mjs +15 -0
- package/dist/node_modules/antd/es/config-provider/context.mjs +11 -0
- package/dist/node_modules/antd/es/config-provider/cssVariables.mjs +39 -0
- package/dist/node_modules/antd/es/config-provider/hooks/useCSSVarCls.mjs +23 -0
- package/dist/node_modules/antd/es/config-provider/hooks/useConfig.mjs +13 -0
- package/dist/node_modules/antd/es/config-provider/hooks/useSize.mjs +9 -0
- package/dist/node_modules/antd/es/config-provider/hooks/useTheme.mjs +41 -0
- package/dist/node_modules/antd/es/config-provider/hooks/useThemeKey.mjs +7 -0
- package/dist/node_modules/antd/es/config-provider/index.mjs +327 -0
- package/dist/node_modules/antd/es/date-picker/locale/en_US.mjs +20 -0
- package/dist/node_modules/antd/es/form/context.mjs +23 -0
- package/dist/node_modules/antd/es/form/validateMessagesContext.mjs +5 -0
- package/dist/node_modules/antd/es/locale/context.mjs +5 -0
- package/dist/node_modules/antd/es/locale/en_US.mjs +146 -0
- package/dist/node_modules/antd/es/locale/index.mjs +28 -0
- package/dist/node_modules/antd/es/locale/useLocale.mjs +17 -0
- package/dist/node_modules/antd/es/modal/ConfirmDialog.mjs +175 -0
- package/dist/node_modules/antd/es/modal/Modal.mjs +137 -0
- package/dist/node_modules/antd/es/modal/PurePanel.mjs +60 -0
- package/dist/node_modules/antd/es/modal/components/ConfirmCancelBtn.mjs +29 -0
- package/dist/node_modules/antd/es/modal/components/ConfirmOkBtn.mjs +30 -0
- package/dist/node_modules/antd/es/modal/components/NormalCancelBtn.mjs +16 -0
- package/dist/node_modules/antd/es/modal/components/NormalOkBtn.mjs +20 -0
- package/dist/node_modules/antd/es/modal/confirm.mjs +122 -0
- package/dist/node_modules/antd/es/modal/context.mjs +8 -0
- package/dist/node_modules/antd/es/modal/destroyFns.mjs +4 -0
- package/dist/node_modules/antd/es/modal/index.mjs +37 -0
- package/dist/node_modules/antd/es/modal/locale.mjs +19 -0
- package/dist/node_modules/antd/es/modal/shared.mjs +51 -0
- package/dist/node_modules/antd/es/modal/style/confirm.mjs +113 -0
- package/dist/node_modules/antd/es/modal/style/index.mjs +292 -0
- package/dist/node_modules/antd/es/modal/useModal/HookModal.mjs +60 -0
- package/dist/node_modules/antd/es/modal/useModal/index.mjs +73 -0
- package/dist/node_modules/antd/es/progress/Circle.mjs +60 -0
- package/dist/node_modules/antd/es/progress/Line.mjs +109 -0
- package/dist/node_modules/antd/es/progress/Steps.mjs +38 -0
- package/dist/node_modules/antd/es/progress/index.mjs +4 -0
- package/dist/node_modules/antd/es/progress/progress.mjs +120 -0
- package/dist/node_modules/antd/es/progress/style/index.mjs +313 -0
- package/dist/node_modules/antd/es/progress/utils.mjs +51 -0
- package/dist/node_modules/antd/es/skeleton/Avatar.mjs +31 -0
- package/dist/node_modules/antd/es/skeleton/Button.mjs +31 -0
- package/dist/node_modules/antd/es/skeleton/Element.mjs +29 -0
- package/dist/node_modules/antd/es/skeleton/Image.mjs +34 -0
- package/dist/node_modules/antd/es/skeleton/Input.mjs +31 -0
- package/dist/node_modules/antd/es/skeleton/Node.mjs +28 -0
- package/dist/node_modules/antd/es/skeleton/Paragraph.mjs +35 -0
- package/dist/node_modules/antd/es/skeleton/Skeleton.mjs +108 -0
- package/dist/node_modules/antd/es/skeleton/Title.mjs +22 -0
- package/dist/node_modules/antd/es/skeleton/index.mjs +4 -0
- package/dist/node_modules/antd/es/skeleton/style/index.mjs +311 -0
- package/dist/node_modules/antd/es/slider/Context.mjs +5 -0
- package/dist/node_modules/antd/es/slider/SliderTooltip.mjs +30 -0
- package/dist/node_modules/antd/es/slider/index.mjs +153 -0
- package/dist/node_modules/antd/es/slider/style/index.mjs +325 -0
- package/dist/node_modules/antd/es/slider/useRafLock.mjs +15 -0
- package/dist/node_modules/antd/es/space/Compact.mjs +37 -0
- package/dist/node_modules/antd/es/style/compact-item-vertical.mjs +44 -0
- package/dist/node_modules/antd/es/style/compact-item.mjs +61 -0
- package/dist/node_modules/antd/es/style/index.mjs +125 -0
- package/dist/node_modules/antd/es/style/motion/collapse.mjs +20 -0
- package/dist/node_modules/antd/es/style/motion/fade.mjs +50 -0
- package/dist/node_modules/antd/es/style/motion/motion.mjs +35 -0
- package/dist/node_modules/antd/es/style/motion/zoom.mjs +195 -0
- package/dist/node_modules/antd/es/style/placementArrow.mjs +164 -0
- package/dist/node_modules/antd/es/style/roundedArrow.mjs +74 -0
- package/dist/node_modules/antd/es/table/ExpandIcon.mjs +29 -0
- package/dist/node_modules/antd/es/theme/context.mjs +25 -0
- package/dist/node_modules/antd/es/theme/getDesignToken.mjs +23 -0
- package/dist/node_modules/antd/es/theme/interface/presetColors.mjs +4 -0
- package/dist/node_modules/antd/es/theme/themes/compact/genCompactSizeMapToken.mjs +20 -0
- package/dist/node_modules/antd/es/theme/themes/compact/index.mjs +16 -0
- package/dist/node_modules/antd/es/theme/themes/dark/colorAlgorithm.mjs +6 -0
- package/dist/node_modules/antd/es/theme/themes/dark/colors.mjs +51 -0
- package/dist/node_modules/antd/es/theme/themes/dark/index.mjs +21 -0
- package/dist/node_modules/antd/es/theme/themes/default/colorAlgorithm.mjs +6 -0
- package/dist/node_modules/antd/es/theme/themes/default/colors.mjs +49 -0
- package/dist/node_modules/antd/es/theme/themes/default/index.mjs +23 -0
- package/dist/node_modules/antd/es/theme/themes/seed.mjs +69 -0
- package/dist/node_modules/antd/es/theme/themes/shared/genColorMapToken.mjs +78 -0
- package/dist/node_modules/antd/es/theme/themes/shared/genCommonMapToken.mjs +20 -0
- package/dist/node_modules/antd/es/theme/themes/shared/genControlHeight.mjs +13 -0
- package/dist/node_modules/antd/es/theme/themes/shared/genFontMapToken.mjs +29 -0
- package/dist/node_modules/antd/es/theme/themes/shared/genFontSizes.mjs +17 -0
- package/dist/node_modules/antd/es/theme/themes/shared/genRadius.mjs +13 -0
- package/dist/node_modules/antd/es/theme/themes/shared/genSizeMapToken.mjs +29 -0
- package/dist/node_modules/antd/es/theme/useToken.mjs +118 -0
- package/dist/node_modules/antd/es/theme/util/alias.mjs +162 -0
- package/dist/node_modules/antd/es/theme/util/genPresetColor.mjs +15 -0
- package/dist/node_modules/antd/es/theme/util/genStyleUtils.mjs +50 -0
- package/dist/node_modules/antd/es/theme/util/getAlphaColor.mjs +38 -0
- package/dist/node_modules/antd/es/theme/util/useResetIconStyle.mjs +36 -0
- package/dist/node_modules/antd/es/time-picker/locale/en_US.mjs +7 -0
- package/dist/node_modules/antd/es/tooltip/PurePanel.mjs +33 -0
- package/dist/node_modules/antd/es/tooltip/index.mjs +148 -0
- package/dist/node_modules/antd/es/tooltip/style/index.mjs +139 -0
- package/dist/node_modules/antd/es/tooltip/util.mjs +15 -0
- package/dist/node_modules/antd/es/typography/hooks/useCopyClick.mjs +64 -0
- package/dist/node_modules/antd/es/upload/Dragger.mjs +32 -0
- package/dist/node_modules/antd/es/upload/Upload.mjs +304 -0
- package/dist/node_modules/antd/es/upload/UploadList/ListItem.mjs +156 -0
- package/dist/node_modules/antd/es/upload/UploadList/index.mjs +167 -0
- package/dist/node_modules/antd/es/upload/index.mjs +9 -0
- package/dist/node_modules/antd/es/upload/style/dragger.mjs +84 -0
- package/dist/node_modules/antd/es/upload/style/index.mjs +65 -0
- package/dist/node_modules/antd/es/upload/style/list.mjs +115 -0
- package/dist/node_modules/antd/es/upload/style/motion.mjs +54 -0
- package/dist/node_modules/antd/es/upload/style/picture.mjs +240 -0
- package/dist/node_modules/antd/es/upload/style/rtl.mjs +13 -0
- package/dist/node_modules/antd/es/upload/utils.mjs +79 -0
- package/dist/node_modules/antd/es/version/index.mjs +4 -0
- package/dist/node_modules/antd/es/version/version.mjs +4 -0
- package/dist/node_modules/antd/es/watermark/context.mjs +25 -0
- package/dist/node_modules/antd/lib/calendar/locale/en_US.mjs +11 -0
- package/dist/node_modules/antd/lib/date-picker/locale/en_US.mjs +28 -0
- package/dist/node_modules/antd/lib/locale/en_US.mjs +157 -0
- package/dist/node_modules/antd/lib/time-picker/locale/en_US.mjs +10 -0
- package/dist/node_modules/antd/locale/en_US.mjs +8 -0
- package/dist/node_modules/antd-img-crop/dist/antd-img-crop.esm.mjs +137 -0
- package/dist/node_modules/better-scroll/dist/better-scroll.esm.mjs +3670 -0
- package/dist/node_modules/classnames/index.mjs +42 -0
- package/dist/node_modules/clsx/dist/clsx.mjs +23 -0
- package/dist/node_modules/copy-to-clipboard/index.mjs +46 -0
- package/dist/node_modules/dayjs/dayjs.min.mjs +297 -0
- package/dist/node_modules/dayjs/locale/zh-cn.mjs +19 -0
- package/dist/node_modules/dayjs/plugin/isBetween.mjs +19 -0
- package/dist/node_modules/dayjs/plugin/isSameOrAfter.mjs +18 -0
- package/dist/node_modules/dayjs/plugin/isSameOrBefore.mjs +18 -0
- package/dist/node_modules/dayjs/plugin/isToday.mjs +19 -0
- package/dist/node_modules/dayjs/plugin/isoWeek.mjs +34 -0
- package/dist/node_modules/dayjs/plugin/objectSupport.mjs +49 -0
- package/dist/node_modules/dayjs/plugin/relativeTime.mjs +49 -0
- package/dist/node_modules/dayjs/plugin/utc.mjs +87 -0
- package/dist/node_modules/dayjs/plugin/weekOfYear.mjs +31 -0
- package/dist/node_modules/immer/dist/immer.mjs +473 -0
- package/dist/node_modules/lodash/_Symbol.mjs +5 -0
- package/dist/node_modules/lodash/_baseGetTag.mjs +11 -0
- package/dist/node_modules/lodash/_baseTrim.mjs +9 -0
- package/dist/node_modules/lodash/_freeGlobal.mjs +5 -0
- package/dist/node_modules/lodash/_getRawTag.mjs +16 -0
- package/dist/node_modules/lodash/_objectToString.mjs +8 -0
- package/dist/node_modules/lodash/_root.mjs +5 -0
- package/dist/node_modules/lodash/_trimmedEndIndex.mjs +10 -0
- package/dist/node_modules/lodash/debounce.mjs +55 -0
- package/dist/node_modules/lodash/isObject.mjs +8 -0
- package/dist/node_modules/lodash/isObjectLike.mjs +7 -0
- package/dist/node_modules/lodash/isSymbol.mjs +10 -0
- package/dist/node_modules/lodash/now.mjs +7 -0
- package/dist/node_modules/lodash/throttle.mjs +19 -0
- package/dist/node_modules/lodash/toNumber.mjs +23 -0
- package/dist/node_modules/lodash-es/_DataView.mjs +7 -0
- package/dist/node_modules/lodash-es/_Hash.mjs +20 -0
- package/dist/node_modules/lodash-es/_ListCache.mjs +20 -0
- package/dist/node_modules/lodash-es/_Map.mjs +7 -0
- package/dist/node_modules/lodash-es/_MapCache.mjs +20 -0
- package/dist/node_modules/lodash-es/_Promise.mjs +7 -0
- package/dist/node_modules/lodash-es/_Set.mjs +7 -0
- package/dist/node_modules/lodash-es/_Stack.mjs +18 -0
- package/dist/node_modules/lodash-es/_Symbol.mjs +6 -0
- package/dist/node_modules/lodash-es/_Uint8Array.mjs +6 -0
- package/dist/node_modules/lodash-es/_WeakMap.mjs +7 -0
- package/dist/node_modules/lodash-es/_apply.mjs +16 -0
- package/dist/node_modules/lodash-es/_arrayEach.mjs +8 -0
- package/dist/node_modules/lodash-es/_arrayFilter.mjs +10 -0
- package/dist/node_modules/lodash-es/_arrayLikeKeys.mjs +20 -0
- package/dist/node_modules/lodash-es/_arrayMap.mjs +8 -0
- package/dist/node_modules/lodash-es/_arrayPush.mjs +8 -0
- package/dist/node_modules/lodash-es/_assignMergeValue.mjs +8 -0
- package/dist/node_modules/lodash-es/_assignValue.mjs +10 -0
- package/dist/node_modules/lodash-es/_assocIndexOf.mjs +10 -0
- package/dist/node_modules/lodash-es/_baseAssign.mjs +8 -0
- package/dist/node_modules/lodash-es/_baseAssignIn.mjs +8 -0
- package/dist/node_modules/lodash-es/_baseAssignValue.mjs +12 -0
- package/dist/node_modules/lodash-es/_baseAt.mjs +9 -0
- package/dist/node_modules/lodash-es/_baseClone.mjs +65 -0
- package/dist/node_modules/lodash-es/_baseCreate.mjs +18 -0
- package/dist/node_modules/lodash-es/_baseFlatten.mjs +13 -0
- package/dist/node_modules/lodash-es/_baseFor.mjs +6 -0
- package/dist/node_modules/lodash-es/_baseGet.mjs +11 -0
- package/dist/node_modules/lodash-es/_baseGetAllKeys.mjs +9 -0
- package/dist/node_modules/lodash-es/_baseGetTag.mjs +10 -0
- package/dist/node_modules/lodash-es/_baseIsArguments.mjs +9 -0
- package/dist/node_modules/lodash-es/_baseIsMap.mjs +9 -0
- package/dist/node_modules/lodash-es/_baseIsNative.mjs +16 -0
- package/dist/node_modules/lodash-es/_baseIsSet.mjs +9 -0
- package/dist/node_modules/lodash-es/_baseIsTypedArray.mjs +12 -0
- package/dist/node_modules/lodash-es/_baseKeys.mjs +14 -0
- package/dist/node_modules/lodash-es/_baseKeysIn.mjs +15 -0
- package/dist/node_modules/lodash-es/_baseMerge.mjs +20 -0
- package/dist/node_modules/lodash-es/_baseMergeDeep.mjs +31 -0
- package/dist/node_modules/lodash-es/_baseRest.mjs +9 -0
- package/dist/node_modules/lodash-es/_baseSetToString.mjs +15 -0
- package/dist/node_modules/lodash-es/_baseSlice.mjs +10 -0
- package/dist/node_modules/lodash-es/_baseTimes.mjs +8 -0
- package/dist/node_modules/lodash-es/_baseToString.mjs +18 -0
- package/dist/node_modules/lodash-es/_baseUnary.mjs +8 -0
- package/dist/node_modules/lodash-es/_baseUnset.mjs +10 -0
- package/dist/node_modules/lodash-es/_castPath.mjs +10 -0
- package/dist/node_modules/lodash-es/_cloneArrayBuffer.mjs +8 -0
- package/dist/node_modules/lodash-es/_cloneBuffer.mjs +11 -0
- package/dist/node_modules/lodash-es/_cloneDataView.mjs +8 -0
- package/dist/node_modules/lodash-es/_cloneRegExp.mjs +8 -0
- package/dist/node_modules/lodash-es/_cloneSymbol.mjs +8 -0
- package/dist/node_modules/lodash-es/_cloneTypedArray.mjs +8 -0
- package/dist/node_modules/lodash-es/_copyArray.mjs +9 -0
- package/dist/node_modules/lodash-es/_copyObject.mjs +14 -0
- package/dist/node_modules/lodash-es/_copySymbols.mjs +8 -0
- package/dist/node_modules/lodash-es/_copySymbolsIn.mjs +8 -0
- package/dist/node_modules/lodash-es/_coreJsData.mjs +6 -0
- package/dist/node_modules/lodash-es/_createAssigner.mjs +15 -0
- package/dist/node_modules/lodash-es/_createBaseFor.mjs +13 -0
- package/dist/node_modules/lodash-es/_customOmitClone.mjs +7 -0
- package/dist/node_modules/lodash-es/_defineProperty.mjs +12 -0
- package/dist/node_modules/lodash-es/_flatRest.mjs +9 -0
- package/dist/node_modules/lodash-es/_freeGlobal.mjs +5 -0
- package/dist/node_modules/lodash-es/_getAllKeys.mjs +9 -0
- package/dist/node_modules/lodash-es/_getAllKeysIn.mjs +9 -0
- package/dist/node_modules/lodash-es/_getMapData.mjs +8 -0
- package/dist/node_modules/lodash-es/_getNative.mjs +9 -0
- package/dist/node_modules/lodash-es/_getPrototype.mjs +6 -0
- package/dist/node_modules/lodash-es/_getRawTag.mjs +15 -0
- package/dist/node_modules/lodash-es/_getSymbols.mjs +11 -0
- package/dist/node_modules/lodash-es/_getSymbolsIn.mjs +13 -0
- package/dist/node_modules/lodash-es/_getTag.mjs +29 -0
- package/dist/node_modules/lodash-es/_getValue.mjs +6 -0
- package/dist/node_modules/lodash-es/_hashClear.mjs +7 -0
- package/dist/node_modules/lodash-es/_hashDelete.mjs +7 -0
- package/dist/node_modules/lodash-es/_hashGet.mjs +13 -0
- package/dist/node_modules/lodash-es/_hashHas.mjs +9 -0
- package/dist/node_modules/lodash-es/_hashSet.mjs +9 -0
- package/dist/node_modules/lodash-es/_initCloneArray.mjs +8 -0
- package/dist/node_modules/lodash-es/_initCloneByTag.mjs +42 -0
- package/dist/node_modules/lodash-es/_initCloneObject.mjs +9 -0
- package/dist/node_modules/lodash-es/_isFlattenable.mjs +10 -0
- package/dist/node_modules/lodash-es/_isIndex.mjs +8 -0
- package/dist/node_modules/lodash-es/_isIterateeCall.mjs +13 -0
- package/dist/node_modules/lodash-es/_isKey.mjs +12 -0
- package/dist/node_modules/lodash-es/_isKeyable.mjs +7 -0
- package/dist/node_modules/lodash-es/_isMasked.mjs +11 -0
- package/dist/node_modules/lodash-es/_isPrototype.mjs +8 -0
- package/dist/node_modules/lodash-es/_listCacheClear.mjs +6 -0
- package/dist/node_modules/lodash-es/_listCacheDelete.mjs +12 -0
- package/dist/node_modules/lodash-es/_listCacheGet.mjs +8 -0
- package/dist/node_modules/lodash-es/_listCacheHas.mjs +7 -0
- package/dist/node_modules/lodash-es/_listCacheSet.mjs +8 -0
- package/dist/node_modules/lodash-es/_mapCacheClear.mjs +13 -0
- package/dist/node_modules/lodash-es/_mapCacheDelete.mjs +8 -0
- package/dist/node_modules/lodash-es/_mapCacheGet.mjs +7 -0
- package/dist/node_modules/lodash-es/_mapCacheHas.mjs +7 -0
- package/dist/node_modules/lodash-es/_mapCacheSet.mjs +8 -0
- package/dist/node_modules/lodash-es/_memoizeCapped.mjs +11 -0
- package/dist/node_modules/lodash-es/_nativeCreate.mjs +6 -0
- package/dist/node_modules/lodash-es/_nativeKeys.mjs +6 -0
- package/dist/node_modules/lodash-es/_nativeKeysIn.mjs +10 -0
- package/dist/node_modules/lodash-es/_nodeUtil.mjs +12 -0
- package/dist/node_modules/lodash-es/_objectToString.mjs +7 -0
- package/dist/node_modules/lodash-es/_overArg.mjs +8 -0
- package/dist/node_modules/lodash-es/_overRest.mjs +15 -0
- package/dist/node_modules/lodash-es/_parent.mjs +8 -0
- package/dist/node_modules/lodash-es/_root.mjs +6 -0
- package/dist/node_modules/lodash-es/_safeGet.mjs +7 -0
- package/dist/node_modules/lodash-es/_setToString.mjs +7 -0
- package/dist/node_modules/lodash-es/_shortOut.mjs +16 -0
- package/dist/node_modules/lodash-es/_stackClear.mjs +7 -0
- package/dist/node_modules/lodash-es/_stackDelete.mjs +7 -0
- package/dist/node_modules/lodash-es/_stackGet.mjs +6 -0
- package/dist/node_modules/lodash-es/_stackHas.mjs +6 -0
- package/dist/node_modules/lodash-es/_stackSet.mjs +17 -0
- package/dist/node_modules/lodash-es/_stringToPath.mjs +11 -0
- package/dist/node_modules/lodash-es/_toKey.mjs +11 -0
- package/dist/node_modules/lodash-es/_toSource.mjs +17 -0
- package/dist/node_modules/lodash-es/at.mjs +7 -0
- package/dist/node_modules/lodash-es/constant.mjs +8 -0
- package/dist/node_modules/lodash-es/eq.mjs +6 -0
- package/dist/node_modules/lodash-es/flatten.mjs +8 -0
- package/dist/node_modules/lodash-es/get.mjs +8 -0
- package/dist/node_modules/lodash-es/identity.mjs +6 -0
- package/dist/node_modules/lodash-es/isArguments.mjs +11 -0
- package/dist/node_modules/lodash-es/isArray.mjs +5 -0
- package/dist/node_modules/lodash-es/isArrayLike.mjs +8 -0
- package/dist/node_modules/lodash-es/isArrayLikeObject.mjs +8 -0
- package/dist/node_modules/lodash-es/isBoolean.mjs +9 -0
- package/dist/node_modules/lodash-es/isBuffer.mjs +7 -0
- package/dist/node_modules/lodash-es/isFunction.mjs +12 -0
- package/dist/node_modules/lodash-es/isLength.mjs +7 -0
- package/dist/node_modules/lodash-es/isMap.mjs +8 -0
- package/dist/node_modules/lodash-es/isObject.mjs +7 -0
- package/dist/node_modules/lodash-es/isObjectLike.mjs +6 -0
- package/dist/node_modules/lodash-es/isPlainObject.mjs +16 -0
- package/dist/node_modules/lodash-es/isSet.mjs +8 -0
- package/dist/node_modules/lodash-es/isSymbol.mjs +9 -0
- package/dist/node_modules/lodash-es/isTypedArray.mjs +8 -0
- package/dist/node_modules/lodash-es/keys.mjs +9 -0
- package/dist/node_modules/lodash-es/keysIn.mjs +9 -0
- package/dist/node_modules/lodash-es/last.mjs +7 -0
- package/dist/node_modules/lodash-es/memoize.mjs +18 -0
- package/dist/node_modules/lodash-es/merge.mjs +9 -0
- package/dist/node_modules/lodash-es/omit.mjs +24 -0
- package/dist/node_modules/lodash-es/stubArray.mjs +6 -0
- package/dist/node_modules/lodash-es/stubFalse.mjs +6 -0
- package/dist/node_modules/lodash-es/toPlainObject.mjs +8 -0
- package/dist/node_modules/lodash-es/toString.mjs +7 -0
- package/dist/node_modules/normalize-wheel/index.mjs +7 -0
- package/dist/node_modules/normalize-wheel/src/ExecutionEnvironment.mjs +11 -0
- package/dist/node_modules/normalize-wheel/src/UserAgent_DEPRECATED.mjs +142 -0
- package/dist/node_modules/normalize-wheel/src/isEventSupported.mjs +33 -0
- package/dist/node_modules/normalize-wheel/src/normalizeWheel.mjs +19 -0
- package/dist/node_modules/object-assign/index.mjs +55 -0
- package/dist/node_modules/preact/compat/dist/compat.module.mjs +202 -0
- package/dist/node_modules/preact/dist/preact.module.mjs +343 -0
- package/dist/node_modules/preact/hooks/dist/hooks.module.mjs +63 -0
- package/dist/node_modules/prop-types/checkPropTypes.mjs +55 -0
- package/dist/node_modules/prop-types/factoryWithThrowingShims.mjs +53 -0
- package/dist/node_modules/prop-types/factoryWithTypeCheckers.mjs +330 -0
- package/dist/node_modules/prop-types/index.mjs +16 -0
- package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.mjs +11 -0
- package/dist/node_modules/prop-types/lib/has.mjs +7 -0
- package/dist/node_modules/rc-dialog/es/Dialog/Content/MemoChildren.mjs +11 -0
- package/dist/node_modules/rc-dialog/es/Dialog/Content/Panel.mjs +93 -0
- package/dist/node_modules/rc-dialog/es/Dialog/Content/index.mjs +43 -0
- package/dist/node_modules/rc-dialog/es/Dialog/Mask.mjs +25 -0
- package/dist/node_modules/rc-dialog/es/Dialog/index.mjs +114 -0
- package/dist/node_modules/rc-dialog/es/DialogWrap.mjs +32 -0
- package/dist/node_modules/rc-dialog/es/context.mjs +5 -0
- package/dist/node_modules/rc-dialog/es/index.mjs +6 -0
- package/dist/node_modules/rc-dialog/es/util.mjs +23 -0
- package/dist/node_modules/rc-field-form/es/Field.mjs +300 -0
- package/dist/node_modules/rc-field-form/es/FieldContext.mjs +41 -0
- package/dist/node_modules/rc-field-form/es/Form.mjs +78 -0
- package/dist/node_modules/rc-field-form/es/FormContext.mjs +46 -0
- package/dist/node_modules/rc-field-form/es/List.mjs +82 -0
- package/dist/node_modules/rc-field-form/es/ListContext.mjs +5 -0
- package/dist/node_modules/rc-field-form/es/index.mjs +22 -0
- package/dist/node_modules/rc-field-form/es/useForm.mjs +541 -0
- package/dist/node_modules/rc-field-form/es/useWatch.mjs +53 -0
- package/dist/node_modules/rc-field-form/es/utils/NameMap.mjs +66 -0
- package/dist/node_modules/rc-field-form/es/utils/asyncUtil.mjs +15 -0
- package/dist/node_modules/rc-field-form/es/utils/messages.mjs +50 -0
- package/dist/node_modules/rc-field-form/es/utils/typeUtil.mjs +10 -0
- package/dist/node_modules/rc-field-form/es/utils/validateUtil.mjs +203 -0
- package/dist/node_modules/rc-field-form/es/utils/valueUtil.mjs +60 -0
- package/dist/node_modules/rc-motion/es/CSSMotion.mjs +73 -0
- package/dist/node_modules/rc-motion/es/CSSMotionList.mjs +95 -0
- package/dist/node_modules/rc-motion/es/DomWrapper.mjs +21 -0
- package/dist/node_modules/rc-motion/es/context.mjs +13 -0
- package/dist/node_modules/rc-motion/es/hooks/useDomMotionEvents.mjs +20 -0
- package/dist/node_modules/rc-motion/es/hooks/useIsomorphicLayoutEffect.mjs +6 -0
- package/dist/node_modules/rc-motion/es/hooks/useNextFrame.mjs +28 -0
- package/dist/node_modules/rc-motion/es/hooks/useStatus.mjs +91 -0
- package/dist/node_modules/rc-motion/es/hooks/useStepQueue.mjs +38 -0
- package/dist/node_modules/rc-motion/es/index.mjs +7 -0
- package/dist/node_modules/rc-motion/es/interface.mjs +13 -0
- package/dist/node_modules/rc-motion/es/util/diff.mjs +65 -0
- package/dist/node_modules/rc-motion/es/util/motion.mjs +51 -0
- package/dist/node_modules/rc-pagination/es/locale/en_US.mjs +18 -0
- package/dist/node_modules/rc-pagination/lib/locale/en_US.mjs +21 -0
- package/dist/node_modules/rc-picker/es/locale/common.mjs +9 -0
- package/dist/node_modules/rc-picker/es/locale/en_US.mjs +31 -0
- package/dist/node_modules/rc-picker/lib/locale/common.mjs +14 -0
- package/dist/node_modules/rc-picker/lib/locale/en_US.mjs +37 -0
- package/dist/node_modules/rc-progress/es/Circle/PtgCircle.mjs +52 -0
- package/dist/node_modules/rc-progress/es/Circle/index.mjs +83 -0
- package/dist/node_modules/rc-progress/es/Circle/util.mjs +23 -0
- package/dist/node_modules/rc-progress/es/Line.mjs +3 -0
- package/dist/node_modules/rc-progress/es/common.mjs +27 -0
- package/dist/node_modules/rc-progress/es/hooks/useId.mjs +18 -0
- package/dist/node_modules/rc-resize-observer/es/Collection.mjs +22 -0
- package/dist/node_modules/rc-resize-observer/es/SingleObserver/DomWrapper.mjs +21 -0
- package/dist/node_modules/rc-resize-observer/es/SingleObserver/index.mjs +59 -0
- package/dist/node_modules/rc-resize-observer/es/index.mjs +24 -0
- package/dist/node_modules/rc-resize-observer/es/utils/observerUtil.mjs +23 -0
- package/dist/node_modules/rc-slider/es/Handles/Handle.mjs +103 -0
- package/dist/node_modules/rc-slider/es/Handles/index.mjs +69 -0
- package/dist/node_modules/rc-slider/es/Marks/Mark.mjs +22 -0
- package/dist/node_modules/rc-slider/es/Marks/index.mjs +20 -0
- package/dist/node_modules/rc-slider/es/Slider.mjs +225 -0
- package/dist/node_modules/rc-slider/es/Steps/Dot.mjs +16 -0
- package/dist/node_modules/rc-slider/es/Steps/index.mjs +28 -0
- package/dist/node_modules/rc-slider/es/Tracks/Track.mjs +34 -0
- package/dist/node_modules/rc-slider/es/Tracks/index.mjs +50 -0
- package/dist/node_modules/rc-slider/es/context.mjs +17 -0
- package/dist/node_modules/rc-slider/es/hooks/useDrag.mjs +104 -0
- package/dist/node_modules/rc-slider/es/hooks/useOffset.mjs +104 -0
- package/dist/node_modules/rc-slider/es/hooks/useRange.mjs +13 -0
- package/dist/node_modules/rc-slider/es/index.mjs +5 -0
- package/dist/node_modules/rc-slider/es/util.mjs +29 -0
- package/dist/node_modules/rc-tooltip/es/Popup.mjs +17 -0
- package/dist/node_modules/rc-tooltip/es/Tooltip.mjs +52 -0
- package/dist/node_modules/rc-tooltip/es/index.mjs +6 -0
- package/dist/node_modules/rc-tooltip/es/placements.mjs +84 -0
- package/dist/node_modules/rc-upload/es/AjaxUploader.mjs +284 -0
- package/dist/node_modules/rc-upload/es/Upload.mjs +57 -0
- package/dist/node_modules/rc-upload/es/attr-accept.mjs +22 -0
- package/dist/node_modules/rc-upload/es/index.mjs +4 -0
- package/dist/node_modules/rc-upload/es/request.mjs +46 -0
- package/dist/node_modules/rc-upload/es/traverseFileTree.mjs +137 -0
- package/dist/node_modules/rc-upload/es/uid.mjs +7 -0
- package/dist/node_modules/rc-util/es/Children/toArray.mjs +11 -0
- package/dist/node_modules/rc-util/es/Dom/canUseDom.mjs +6 -0
- package/dist/node_modules/rc-util/es/Dom/contains.mjs +15 -0
- package/dist/node_modules/rc-util/es/Dom/dynamicCSS.mjs +87 -0
- package/dist/node_modules/rc-util/es/Dom/findDOMNode.mjs +24 -0
- package/dist/node_modules/rc-util/es/Dom/isVisible.mjs +22 -0
- package/dist/node_modules/rc-util/es/Dom/shadow.mjs +14 -0
- package/dist/node_modules/rc-util/es/KeyCode.mjs +517 -0
- package/dist/node_modules/rc-util/es/React/render.mjs +81 -0
- package/dist/node_modules/rc-util/es/getScrollBarSize.mjs +38 -0
- package/dist/node_modules/rc-util/es/hooks/useEvent.mjs +14 -0
- package/dist/node_modules/rc-util/es/hooks/useId.mjs +27 -0
- package/dist/node_modules/rc-util/es/hooks/useLayoutEffect.mjs +21 -0
- package/dist/node_modules/rc-util/es/hooks/useMemo.mjs +8 -0
- package/dist/node_modules/rc-util/es/hooks/useMergedState.mjs +25 -0
- package/dist/node_modules/rc-util/es/hooks/useState.mjs +17 -0
- package/dist/node_modules/rc-util/es/hooks/useSyncState.mjs +16 -0
- package/dist/node_modules/rc-util/es/isEqual.mjs +35 -0
- package/dist/node_modules/rc-util/es/isMobile.mjs +9 -0
- package/dist/node_modules/rc-util/es/omit.mjs +9 -0
- package/dist/node_modules/rc-util/es/pickAttrs.mjs +42 -0
- package/dist/node_modules/rc-util/es/raf.mjs +40 -0
- package/dist/node_modules/rc-util/es/ref.mjs +39 -0
- package/dist/node_modules/rc-util/es/utils/get.mjs +11 -0
- package/dist/node_modules/rc-util/es/utils/set.mjs +47 -0
- package/dist/node_modules/rc-util/es/warning.mjs +44 -0
- package/dist/node_modules/rc-util/node_modules/react-is/cjs/react-is.development.mjs +103 -0
- package/dist/node_modules/rc-util/node_modules/react-is/cjs/react-is.production.min.mjs +82 -0
- package/dist/node_modules/rc-util/node_modules/react-is/index.mjs +8 -0
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.mjs +616 -0
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.mjs +32 -0
- package/dist/node_modules/react/jsx-runtime.mjs +8 -0
- package/dist/node_modules/react-device-detect/dist/lib.mjs +721 -0
- package/dist/node_modules/react-dom/client.mjs +26 -0
- package/dist/node_modules/react-draggable/build/cjs/Draggable.mjs +343 -0
- package/dist/node_modules/react-draggable/build/cjs/DraggableCore.mjs +324 -0
- package/dist/node_modules/react-draggable/build/cjs/cjs.mjs +14 -0
- package/dist/node_modules/react-draggable/build/cjs/utils/domFns.mjs +174 -0
- package/dist/node_modules/react-draggable/build/cjs/utils/getPrefix.mjs +35 -0
- package/dist/node_modules/react-draggable/build/cjs/utils/log.mjs +7 -0
- package/dist/node_modules/react-draggable/build/cjs/utils/positionFns.mjs +107 -0
- package/dist/node_modules/react-draggable/build/cjs/utils/shims.mjs +30 -0
- package/dist/node_modules/react-draggable/node_modules/clsx/dist/clsx.m.mjs +22 -0
- package/dist/node_modules/react-easy-crop/index.module.mjs +543 -0
- package/dist/node_modules/react-i18next/dist/es/context.mjs +19 -0
- package/dist/node_modules/react-i18next/dist/es/defaults.mjs +17 -0
- package/dist/node_modules/react-i18next/dist/es/i18nInstance.mjs +7 -0
- package/dist/node_modules/react-i18next/dist/es/unescape.mjs +25 -0
- package/dist/node_modules/react-i18next/dist/es/useTranslation.mjs +74 -0
- package/dist/node_modules/react-i18next/dist/es/utils.mjs +61 -0
- package/dist/node_modules/react-is/cjs/react-is.development.mjs +95 -0
- package/dist/node_modules/react-is/cjs/react-is.production.min.mjs +79 -0
- package/dist/node_modules/react-is/index.mjs +10 -0
- package/dist/node_modules/react-resizable/build/Resizable.mjs +201 -0
- package/dist/node_modules/react-resizable/build/ResizableBox.mjs +162 -0
- package/dist/node_modules/react-resizable/build/propTypes.mjs +118 -0
- package/dist/node_modules/react-resizable/build/utils.mjs +54 -0
- package/dist/node_modules/react-resizable/index.mjs +13 -0
- package/dist/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.mjs +290 -0
- package/dist/node_modules/screenfull/index.mjs +122 -0
- package/dist/node_modules/stylis/src/Enum.mjs +12 -0
- package/dist/node_modules/stylis/src/Middleware.mjs +18 -0
- package/dist/node_modules/stylis/src/Parser.mjs +114 -0
- package/dist/node_modules/stylis/src/Serializer.mjs +28 -0
- package/dist/node_modules/stylis/src/Tokenizer.mjs +131 -0
- package/dist/node_modules/stylis/src/Utility.mjs +50 -0
- package/dist/node_modules/throttle-debounce/esm/index.mjs +35 -0
- package/dist/node_modules/toggle-selection/index.mjs +25 -0
- package/dist/node_modules/tslib/tslib.es6.mjs +97 -0
- package/dist/node_modules/ua-parser-js/dist/ua-parser.min.mjs +86 -0
- package/dist/node_modules/use-immer/dist/use-immer.module.mjs +13 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.mjs +61 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.min.mjs +60 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.mjs +85 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.min.mjs +50 -0
- package/dist/node_modules/use-sync-external-store/shim/index.mjs +10 -0
- package/dist/node_modules/use-sync-external-store/shim/with-selector.mjs +10 -0
- package/dist/node_modules/zustand/esm/index.mjs +24 -0
- package/dist/node_modules/zustand/esm/vanilla.mjs +16 -0
- package/dist/style.css +1 -1
- package/dist/utils/WithFluent.mjs +19 -13
- package/dist/utils/create.mjs +7 -1
- package/dist/utils/time.mjs +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,3670 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* better-scroll / better-scroll
|
|
3
|
+
* (c) 2016-2023 ustbhuangyi
|
|
4
|
+
* Released under the MIT License.
|
|
5
|
+
*/
|
|
6
|
+
/*! *****************************************************************************
|
|
7
|
+
Copyright (c) Microsoft Corporation.
|
|
8
|
+
|
|
9
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
10
|
+
purpose with or without fee is hereby granted.
|
|
11
|
+
|
|
12
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
13
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
14
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
15
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
16
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
17
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
18
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
19
|
+
***************************************************************************** */
|
|
20
|
+
var it = function(r, t) {
|
|
21
|
+
return it = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, o) {
|
|
22
|
+
e.__proto__ = o;
|
|
23
|
+
} || function(e, o) {
|
|
24
|
+
for (var i in o)
|
|
25
|
+
Object.prototype.hasOwnProperty.call(o, i) && (e[i] = o[i]);
|
|
26
|
+
}, it(r, t);
|
|
27
|
+
};
|
|
28
|
+
function V(r, t) {
|
|
29
|
+
it(r, t);
|
|
30
|
+
function e() {
|
|
31
|
+
this.constructor = r;
|
|
32
|
+
}
|
|
33
|
+
r.prototype = t === null ? Object.create(t) : (e.prototype = t.prototype, new e());
|
|
34
|
+
}
|
|
35
|
+
var b = function() {
|
|
36
|
+
return b = Object.assign || function(t) {
|
|
37
|
+
for (var e, o = 1, i = arguments.length; o < i; o++) {
|
|
38
|
+
e = arguments[o];
|
|
39
|
+
for (var s in e)
|
|
40
|
+
Object.prototype.hasOwnProperty.call(e, s) && (t[s] = e[s]);
|
|
41
|
+
}
|
|
42
|
+
return t;
|
|
43
|
+
}, b.apply(this, arguments);
|
|
44
|
+
};
|
|
45
|
+
function G(r, t, e, o) {
|
|
46
|
+
function i(s) {
|
|
47
|
+
return s instanceof e ? s : new e(function(n) {
|
|
48
|
+
n(s);
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
return new (e || (e = Promise))(function(s, n) {
|
|
52
|
+
function a(c) {
|
|
53
|
+
try {
|
|
54
|
+
l(o.next(c));
|
|
55
|
+
} catch (p) {
|
|
56
|
+
n(p);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
function h(c) {
|
|
60
|
+
try {
|
|
61
|
+
l(o.throw(c));
|
|
62
|
+
} catch (p) {
|
|
63
|
+
n(p);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
function l(c) {
|
|
67
|
+
c.done ? s(c.value) : i(c.value).then(a, h);
|
|
68
|
+
}
|
|
69
|
+
l((o = o.apply(r, t || [])).next());
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
function q(r, t) {
|
|
73
|
+
var e = { label: 0, sent: function() {
|
|
74
|
+
if (s[0] & 1)
|
|
75
|
+
throw s[1];
|
|
76
|
+
return s[1];
|
|
77
|
+
}, trys: [], ops: [] }, o, i, s, n;
|
|
78
|
+
return n = { next: a(0), throw: a(1), return: a(2) }, typeof Symbol == "function" && (n[Symbol.iterator] = function() {
|
|
79
|
+
return this;
|
|
80
|
+
}), n;
|
|
81
|
+
function a(l) {
|
|
82
|
+
return function(c) {
|
|
83
|
+
return h([l, c]);
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
function h(l) {
|
|
87
|
+
if (o)
|
|
88
|
+
throw new TypeError("Generator is already executing.");
|
|
89
|
+
for (; e; )
|
|
90
|
+
try {
|
|
91
|
+
if (o = 1, i && (s = l[0] & 2 ? i.return : l[0] ? i.throw || ((s = i.return) && s.call(i), 0) : i.next) && !(s = s.call(i, l[1])).done)
|
|
92
|
+
return s;
|
|
93
|
+
switch (i = 0, s && (l = [l[0] & 2, s.value]), l[0]) {
|
|
94
|
+
case 0:
|
|
95
|
+
case 1:
|
|
96
|
+
s = l;
|
|
97
|
+
break;
|
|
98
|
+
case 4:
|
|
99
|
+
return e.label++, { value: l[1], done: !1 };
|
|
100
|
+
case 5:
|
|
101
|
+
e.label++, i = l[1], l = [0];
|
|
102
|
+
continue;
|
|
103
|
+
case 7:
|
|
104
|
+
l = e.ops.pop(), e.trys.pop();
|
|
105
|
+
continue;
|
|
106
|
+
default:
|
|
107
|
+
if (s = e.trys, !(s = s.length > 0 && s[s.length - 1]) && (l[0] === 6 || l[0] === 2)) {
|
|
108
|
+
e = 0;
|
|
109
|
+
continue;
|
|
110
|
+
}
|
|
111
|
+
if (l[0] === 3 && (!s || l[1] > s[0] && l[1] < s[3])) {
|
|
112
|
+
e.label = l[1];
|
|
113
|
+
break;
|
|
114
|
+
}
|
|
115
|
+
if (l[0] === 6 && e.label < s[1]) {
|
|
116
|
+
e.label = s[1], s = l;
|
|
117
|
+
break;
|
|
118
|
+
}
|
|
119
|
+
if (s && e.label < s[2]) {
|
|
120
|
+
e.label = s[2], e.ops.push(l);
|
|
121
|
+
break;
|
|
122
|
+
}
|
|
123
|
+
s[2] && e.ops.pop(), e.trys.pop();
|
|
124
|
+
continue;
|
|
125
|
+
}
|
|
126
|
+
l = t.call(r, e);
|
|
127
|
+
} catch (c) {
|
|
128
|
+
l = [6, c], i = 0;
|
|
129
|
+
} finally {
|
|
130
|
+
o = s = 0;
|
|
131
|
+
}
|
|
132
|
+
if (l[0] & 5)
|
|
133
|
+
throw l[1];
|
|
134
|
+
return { value: l[0] ? l[1] : void 0, done: !0 };
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
function U() {
|
|
138
|
+
for (var r = 0, t = 0, e = arguments.length; t < e; t++)
|
|
139
|
+
r += arguments[t].length;
|
|
140
|
+
for (var o = Array(r), i = 0, t = 0; t < e; t++)
|
|
141
|
+
for (var s = arguments[t], n = 0, a = s.length; n < a; n++, i++)
|
|
142
|
+
o[i] = s[n];
|
|
143
|
+
return o;
|
|
144
|
+
}
|
|
145
|
+
var Ct = [
|
|
146
|
+
{
|
|
147
|
+
sourceKey: "scroller.scrollBehaviorX.currentPos",
|
|
148
|
+
key: "x"
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
sourceKey: "scroller.scrollBehaviorY.currentPos",
|
|
152
|
+
key: "y"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
sourceKey: "scroller.scrollBehaviorX.hasScroll",
|
|
156
|
+
key: "hasHorizontalScroll"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
sourceKey: "scroller.scrollBehaviorY.hasScroll",
|
|
160
|
+
key: "hasVerticalScroll"
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
sourceKey: "scroller.scrollBehaviorX.contentSize",
|
|
164
|
+
key: "scrollerWidth"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
sourceKey: "scroller.scrollBehaviorY.contentSize",
|
|
168
|
+
key: "scrollerHeight"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
sourceKey: "scroller.scrollBehaviorX.maxScrollPos",
|
|
172
|
+
key: "maxScrollX"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
sourceKey: "scroller.scrollBehaviorY.maxScrollPos",
|
|
176
|
+
key: "maxScrollY"
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
sourceKey: "scroller.scrollBehaviorX.minScrollPos",
|
|
180
|
+
key: "minScrollX"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
sourceKey: "scroller.scrollBehaviorY.minScrollPos",
|
|
184
|
+
key: "minScrollY"
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
sourceKey: "scroller.scrollBehaviorX.movingDirection",
|
|
188
|
+
key: "movingDirectionX"
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
sourceKey: "scroller.scrollBehaviorY.movingDirection",
|
|
192
|
+
key: "movingDirectionY"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
sourceKey: "scroller.scrollBehaviorX.direction",
|
|
196
|
+
key: "directionX"
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
sourceKey: "scroller.scrollBehaviorY.direction",
|
|
200
|
+
key: "directionY"
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
sourceKey: "scroller.actions.enabled",
|
|
204
|
+
key: "enabled"
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
sourceKey: "scroller.animater.pending",
|
|
208
|
+
key: "pending"
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
sourceKey: "scroller.animater.stop",
|
|
212
|
+
key: "stop"
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
sourceKey: "scroller.scrollTo",
|
|
216
|
+
key: "scrollTo"
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
sourceKey: "scroller.scrollBy",
|
|
220
|
+
key: "scrollBy"
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
sourceKey: "scroller.scrollToElement",
|
|
224
|
+
key: "scrollToElement"
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
sourceKey: "scroller.resetPosition",
|
|
228
|
+
key: "resetPosition"
|
|
229
|
+
}
|
|
230
|
+
];
|
|
231
|
+
function P(r) {
|
|
232
|
+
console.error("[BScroll warn]: " + r);
|
|
233
|
+
}
|
|
234
|
+
function ht(r, t) {
|
|
235
|
+
if (!r)
|
|
236
|
+
throw new Error("[BScroll] " + t);
|
|
237
|
+
}
|
|
238
|
+
var w = typeof window < "u", C = w && navigator.userAgent.toLowerCase(), It = !!(C && /wechatdevtools/.test(C)), zt = C && C.indexOf("android") > 0, Lt = function() {
|
|
239
|
+
if (typeof C == "string") {
|
|
240
|
+
var r = /os (\d\d?_\d(_\d)?)/, t = r.exec(C);
|
|
241
|
+
if (!t)
|
|
242
|
+
return !1;
|
|
243
|
+
var e = t[1].split("_").map(function(o) {
|
|
244
|
+
return parseInt(o, 10);
|
|
245
|
+
});
|
|
246
|
+
return e[0] === 13 && e[1] >= 4;
|
|
247
|
+
}
|
|
248
|
+
return !1;
|
|
249
|
+
}(), xt = !1;
|
|
250
|
+
if (w) {
|
|
251
|
+
var Ft = "test-passive";
|
|
252
|
+
try {
|
|
253
|
+
var ct = {};
|
|
254
|
+
Object.defineProperty(ct, "passive", {
|
|
255
|
+
get: function() {
|
|
256
|
+
xt = !0;
|
|
257
|
+
}
|
|
258
|
+
}), window.addEventListener(Ft, function() {
|
|
259
|
+
}, ct);
|
|
260
|
+
} catch {
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
function S() {
|
|
264
|
+
return window.performance && window.performance.now && window.performance.timing ? window.performance.now() + window.performance.timing.navigationStart : +/* @__PURE__ */ new Date();
|
|
265
|
+
}
|
|
266
|
+
var m = function(r, t) {
|
|
267
|
+
for (var e in t)
|
|
268
|
+
r[e] = t[e];
|
|
269
|
+
return r;
|
|
270
|
+
};
|
|
271
|
+
function st(r) {
|
|
272
|
+
return r == null;
|
|
273
|
+
}
|
|
274
|
+
function _t(r, t) {
|
|
275
|
+
return Math.sqrt(r * r + t * t);
|
|
276
|
+
}
|
|
277
|
+
function g(r, t, e) {
|
|
278
|
+
return r < t ? t : r > e ? e : r;
|
|
279
|
+
}
|
|
280
|
+
function O(r, t) {
|
|
281
|
+
if (r.findIndex)
|
|
282
|
+
return r.findIndex(t);
|
|
283
|
+
var e = -1;
|
|
284
|
+
return r.some(function(o, i, s) {
|
|
285
|
+
var n = t(o, i, s);
|
|
286
|
+
if (n)
|
|
287
|
+
return e = i, n;
|
|
288
|
+
}), e;
|
|
289
|
+
}
|
|
290
|
+
var at = w && document.createElement("div").style, H = function() {
|
|
291
|
+
if (!w)
|
|
292
|
+
return !1;
|
|
293
|
+
for (var r = [
|
|
294
|
+
{
|
|
295
|
+
key: "standard",
|
|
296
|
+
value: "transform"
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
key: "webkit",
|
|
300
|
+
value: "webkitTransform"
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
key: "Moz",
|
|
304
|
+
value: "MozTransform"
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
key: "O",
|
|
308
|
+
value: "OTransform"
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
key: "ms",
|
|
312
|
+
value: "msTransform"
|
|
313
|
+
}
|
|
314
|
+
], t = 0, e = r; t < e.length; t++) {
|
|
315
|
+
var o = e[t];
|
|
316
|
+
if (at[o.value] !== void 0)
|
|
317
|
+
return o.key;
|
|
318
|
+
}
|
|
319
|
+
return !1;
|
|
320
|
+
}();
|
|
321
|
+
function x(r) {
|
|
322
|
+
return H === !1 ? r : H === "standard" ? r === "transitionEnd" ? "transitionend" : r : H + r.charAt(0).toUpperCase() + r.substr(1);
|
|
323
|
+
}
|
|
324
|
+
function Et(r) {
|
|
325
|
+
return typeof r == "string" ? document.querySelector(r) : r;
|
|
326
|
+
}
|
|
327
|
+
function At(r, t, e, o) {
|
|
328
|
+
var i = xt ? {
|
|
329
|
+
passive: !1,
|
|
330
|
+
capture: !!o
|
|
331
|
+
} : !!o;
|
|
332
|
+
r.addEventListener(t, e, i);
|
|
333
|
+
}
|
|
334
|
+
function Nt(r, t, e, o) {
|
|
335
|
+
r.removeEventListener(t, e, {
|
|
336
|
+
capture: !!o
|
|
337
|
+
});
|
|
338
|
+
}
|
|
339
|
+
function X(r) {
|
|
340
|
+
r.cancelable && r.preventDefault();
|
|
341
|
+
}
|
|
342
|
+
function pt(r) {
|
|
343
|
+
for (var t = 0, e = 0; r; )
|
|
344
|
+
t -= r.offsetLeft, e -= r.offsetTop, r = r.offsetParent;
|
|
345
|
+
return {
|
|
346
|
+
left: t,
|
|
347
|
+
top: e
|
|
348
|
+
};
|
|
349
|
+
}
|
|
350
|
+
function Rt(r) {
|
|
351
|
+
var t = r.getBoundingClientRect();
|
|
352
|
+
return {
|
|
353
|
+
left: -(t.left + window.pageXOffset),
|
|
354
|
+
top: -(t.top + window.pageYOffset)
|
|
355
|
+
};
|
|
356
|
+
}
|
|
357
|
+
var Wt = H && H !== "standard" ? "-" + H.toLowerCase() + "-" : "", Kt = x("transform"), Mt = x("transition"), Ut = w && x("perspective") in at, ut = w && ("ontouchstart" in window || It), Vt = w && Mt in at, d = {
|
|
358
|
+
transform: Kt,
|
|
359
|
+
transition: Mt,
|
|
360
|
+
transitionTimingFunction: x("transitionTimingFunction"),
|
|
361
|
+
transitionDuration: x("transitionDuration"),
|
|
362
|
+
transitionDelay: x("transitionDelay"),
|
|
363
|
+
transformOrigin: x("transformOrigin"),
|
|
364
|
+
transitionEnd: x("transitionEnd"),
|
|
365
|
+
transitionProperty: x("transitionProperty")
|
|
366
|
+
}, J = {
|
|
367
|
+
touchstart: 1,
|
|
368
|
+
touchmove: 1,
|
|
369
|
+
touchend: 1,
|
|
370
|
+
touchcancel: 1,
|
|
371
|
+
mousedown: 2,
|
|
372
|
+
mousemove: 2,
|
|
373
|
+
mouseup: 2
|
|
374
|
+
};
|
|
375
|
+
function D(r) {
|
|
376
|
+
if (r instanceof window.SVGElement) {
|
|
377
|
+
var t = r.getBoundingClientRect();
|
|
378
|
+
return {
|
|
379
|
+
top: t.top,
|
|
380
|
+
left: t.left,
|
|
381
|
+
width: t.width,
|
|
382
|
+
height: t.height
|
|
383
|
+
};
|
|
384
|
+
} else
|
|
385
|
+
return {
|
|
386
|
+
top: r.offsetTop,
|
|
387
|
+
left: r.offsetLeft,
|
|
388
|
+
width: r.offsetWidth,
|
|
389
|
+
height: r.offsetHeight
|
|
390
|
+
};
|
|
391
|
+
}
|
|
392
|
+
function I(r, t) {
|
|
393
|
+
for (var e in t)
|
|
394
|
+
if (t[e].test(r[e]))
|
|
395
|
+
return !0;
|
|
396
|
+
return !1;
|
|
397
|
+
}
|
|
398
|
+
var $t = I;
|
|
399
|
+
function Zt(r, t) {
|
|
400
|
+
var e = document.createEvent("Event");
|
|
401
|
+
e.initEvent(t, !0, !0), e.pageX = r.pageX, e.pageY = r.pageY, r.target.dispatchEvent(e);
|
|
402
|
+
}
|
|
403
|
+
function Bt(r, t) {
|
|
404
|
+
t === void 0 && (t = "click");
|
|
405
|
+
var e;
|
|
406
|
+
r.type === "mouseup" ? e = r : (r.type === "touchend" || r.type === "touchcancel") && (e = r.changedTouches[0]);
|
|
407
|
+
var o = {};
|
|
408
|
+
e && (o.screenX = e.screenX || 0, o.screenY = e.screenY || 0, o.clientX = e.clientX || 0, o.clientY = e.clientY || 0);
|
|
409
|
+
var i, s = !0, n = !0, a = r.ctrlKey, h = r.shiftKey, l = r.altKey, c = r.metaKey, p = {
|
|
410
|
+
ctrlKey: a,
|
|
411
|
+
shiftKey: h,
|
|
412
|
+
altKey: l,
|
|
413
|
+
metaKey: c
|
|
414
|
+
};
|
|
415
|
+
if (typeof MouseEvent < "u")
|
|
416
|
+
try {
|
|
417
|
+
i = new MouseEvent(t, m(b({
|
|
418
|
+
bubbles: s,
|
|
419
|
+
cancelable: n
|
|
420
|
+
}, p), o));
|
|
421
|
+
} catch {
|
|
422
|
+
u();
|
|
423
|
+
}
|
|
424
|
+
else
|
|
425
|
+
u();
|
|
426
|
+
function u() {
|
|
427
|
+
i = document.createEvent("Event"), i.initEvent(t, s, n), m(i, o);
|
|
428
|
+
}
|
|
429
|
+
i.forwardedTouchEvent = !0, i._constructed = !0, r.target.dispatchEvent(i);
|
|
430
|
+
}
|
|
431
|
+
function jt(r) {
|
|
432
|
+
Bt(r, "dblclick");
|
|
433
|
+
}
|
|
434
|
+
function Gt(r, t) {
|
|
435
|
+
var e = t.firstChild;
|
|
436
|
+
e ? qt(r, e) : t.appendChild(r);
|
|
437
|
+
}
|
|
438
|
+
function qt(r, t) {
|
|
439
|
+
var e = t.parentNode;
|
|
440
|
+
e.insertBefore(r, t);
|
|
441
|
+
}
|
|
442
|
+
function Jt(r, t) {
|
|
443
|
+
r.removeChild(t);
|
|
444
|
+
}
|
|
445
|
+
function z(r, t) {
|
|
446
|
+
var e = new RegExp("(^|\\s)" + t + "(\\s|$)");
|
|
447
|
+
return e.test(r.className);
|
|
448
|
+
}
|
|
449
|
+
function Qt(r) {
|
|
450
|
+
return Array.prototype.slice.call(r, 0);
|
|
451
|
+
}
|
|
452
|
+
function te(r) {
|
|
453
|
+
return {
|
|
454
|
+
width: r.clientWidth,
|
|
455
|
+
height: r.clientHeight
|
|
456
|
+
};
|
|
457
|
+
}
|
|
458
|
+
var y = {
|
|
459
|
+
// easeOutQuint
|
|
460
|
+
swipe: {
|
|
461
|
+
style: "cubic-bezier(0.23, 1, 0.32, 1)",
|
|
462
|
+
fn: function(r) {
|
|
463
|
+
return 1 + --r * r * r * r * r;
|
|
464
|
+
}
|
|
465
|
+
},
|
|
466
|
+
// easeOutQuard
|
|
467
|
+
swipeBounce: {
|
|
468
|
+
style: "cubic-bezier(0.25, 0.46, 0.45, 0.94)",
|
|
469
|
+
fn: function(r) {
|
|
470
|
+
return r * (2 - r);
|
|
471
|
+
}
|
|
472
|
+
},
|
|
473
|
+
// easeOutQuart
|
|
474
|
+
bounce: {
|
|
475
|
+
style: "cubic-bezier(0.165, 0.84, 0.44, 1)",
|
|
476
|
+
fn: function(r) {
|
|
477
|
+
return 1 - --r * r * r * r;
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
}, ee = 1e3 / 60, M = w && window;
|
|
481
|
+
function Yt() {
|
|
482
|
+
}
|
|
483
|
+
var lt = function() {
|
|
484
|
+
return w ? M.requestAnimationFrame || M.webkitRequestAnimationFrame || M.mozRequestAnimationFrame || M.oRequestAnimationFrame || // if all else fails, use setTimeout
|
|
485
|
+
function(r) {
|
|
486
|
+
return window.setTimeout(r, r.interval || ee);
|
|
487
|
+
} : Yt;
|
|
488
|
+
}(), B = function() {
|
|
489
|
+
return w ? M.cancelAnimationFrame || M.webkitCancelAnimationFrame || M.mozCancelAnimationFrame || M.oCancelAnimationFrame || function(r) {
|
|
490
|
+
window.clearTimeout(r);
|
|
491
|
+
} : Yt;
|
|
492
|
+
}(), ft = function(r) {
|
|
493
|
+
}, Q = {
|
|
494
|
+
enumerable: !0,
|
|
495
|
+
configurable: !0,
|
|
496
|
+
get: ft,
|
|
497
|
+
set: ft
|
|
498
|
+
}, oe = function(r, t) {
|
|
499
|
+
for (var e = t.split("."), o = 0; o < e.length - 1; o++)
|
|
500
|
+
if (r = r[e[o]], typeof r != "object" || !r)
|
|
501
|
+
return;
|
|
502
|
+
var i = e.pop();
|
|
503
|
+
return typeof r[i] == "function" ? function() {
|
|
504
|
+
return r[i].apply(r, arguments);
|
|
505
|
+
} : r[i];
|
|
506
|
+
}, re = function(r, t, e) {
|
|
507
|
+
for (var o = t.split("."), i, s = 0; s < o.length - 1; s++)
|
|
508
|
+
i = o[s], r[i] || (r[i] = {}), r = r[i];
|
|
509
|
+
r[o.pop()] = e;
|
|
510
|
+
};
|
|
511
|
+
function ie(r, t, e) {
|
|
512
|
+
Q.get = function() {
|
|
513
|
+
return oe(this, t);
|
|
514
|
+
}, Q.set = function(i) {
|
|
515
|
+
re(this, t, i);
|
|
516
|
+
}, Object.defineProperty(r, e, Q);
|
|
517
|
+
}
|
|
518
|
+
var E = (
|
|
519
|
+
/** @class */
|
|
520
|
+
function() {
|
|
521
|
+
function r(t) {
|
|
522
|
+
this.events = {}, this.eventTypes = {}, this.registerType(t);
|
|
523
|
+
}
|
|
524
|
+
return r.prototype.on = function(t, e, o) {
|
|
525
|
+
return o === void 0 && (o = this), this.hasType(t), this.events[t] || (this.events[t] = []), this.events[t].push([e, o]), this;
|
|
526
|
+
}, r.prototype.once = function(t, e, o) {
|
|
527
|
+
var i = this;
|
|
528
|
+
o === void 0 && (o = this), this.hasType(t);
|
|
529
|
+
var s = function() {
|
|
530
|
+
for (var n = [], a = 0; a < arguments.length; a++)
|
|
531
|
+
n[a] = arguments[a];
|
|
532
|
+
i.off(t, s);
|
|
533
|
+
var h = e.apply(o, n);
|
|
534
|
+
if (h === !0)
|
|
535
|
+
return h;
|
|
536
|
+
};
|
|
537
|
+
return s.fn = e, this.on(t, s), this;
|
|
538
|
+
}, r.prototype.off = function(t, e) {
|
|
539
|
+
if (!t && !e)
|
|
540
|
+
return this.events = {}, this;
|
|
541
|
+
if (t) {
|
|
542
|
+
if (this.hasType(t), !e)
|
|
543
|
+
return this.events[t] = [], this;
|
|
544
|
+
var o = this.events[t];
|
|
545
|
+
if (!o)
|
|
546
|
+
return this;
|
|
547
|
+
for (var i = o.length; i--; )
|
|
548
|
+
(o[i][0] === e || o[i][0] && o[i][0].fn === e) && o.splice(i, 1);
|
|
549
|
+
return this;
|
|
550
|
+
}
|
|
551
|
+
}, r.prototype.trigger = function(t) {
|
|
552
|
+
for (var e = [], o = 1; o < arguments.length; o++)
|
|
553
|
+
e[o - 1] = arguments[o];
|
|
554
|
+
this.hasType(t);
|
|
555
|
+
var i = this.events[t];
|
|
556
|
+
if (i)
|
|
557
|
+
for (var s = i.length, n = U(i), a, h = 0; h < s; h++) {
|
|
558
|
+
var l = n[h], c = l[0], p = l[1];
|
|
559
|
+
if (c && (a = c.apply(p, e), a === !0))
|
|
560
|
+
return a;
|
|
561
|
+
}
|
|
562
|
+
}, r.prototype.registerType = function(t) {
|
|
563
|
+
var e = this;
|
|
564
|
+
t.forEach(function(o) {
|
|
565
|
+
e.eventTypes[o] = o;
|
|
566
|
+
});
|
|
567
|
+
}, r.prototype.destroy = function() {
|
|
568
|
+
this.events = {}, this.eventTypes = {};
|
|
569
|
+
}, r.prototype.hasType = function(t) {
|
|
570
|
+
var e = this.eventTypes, o = e[t] === t;
|
|
571
|
+
o || P('EventEmitter has used unknown event type: "' + t + '", should be oneof [' + ("" + Object.keys(e).map(function(i) {
|
|
572
|
+
return JSON.stringify(i);
|
|
573
|
+
})) + "]");
|
|
574
|
+
}, r;
|
|
575
|
+
}()
|
|
576
|
+
), T = (
|
|
577
|
+
/** @class */
|
|
578
|
+
function() {
|
|
579
|
+
function r(t, e) {
|
|
580
|
+
this.wrapper = t, this.events = e, this.addDOMEvents();
|
|
581
|
+
}
|
|
582
|
+
return r.prototype.destroy = function() {
|
|
583
|
+
this.removeDOMEvents(), this.events = [];
|
|
584
|
+
}, r.prototype.addDOMEvents = function() {
|
|
585
|
+
this.handleDOMEvents(At);
|
|
586
|
+
}, r.prototype.removeDOMEvents = function() {
|
|
587
|
+
this.handleDOMEvents(Nt);
|
|
588
|
+
}, r.prototype.handleDOMEvents = function(t) {
|
|
589
|
+
var e = this, o = this.wrapper;
|
|
590
|
+
this.events.forEach(function(i) {
|
|
591
|
+
t(o, i.name, e, !!i.capture);
|
|
592
|
+
});
|
|
593
|
+
}, r.prototype.handleEvent = function(t) {
|
|
594
|
+
var e = t.type;
|
|
595
|
+
this.events.some(function(o) {
|
|
596
|
+
return o.name === e ? (o.handler(t), !0) : !1;
|
|
597
|
+
});
|
|
598
|
+
}, r;
|
|
599
|
+
}()
|
|
600
|
+
), se = (
|
|
601
|
+
/** @class */
|
|
602
|
+
function() {
|
|
603
|
+
function r() {
|
|
604
|
+
}
|
|
605
|
+
return r;
|
|
606
|
+
}()
|
|
607
|
+
), ne = (
|
|
608
|
+
/** @class */
|
|
609
|
+
function(r) {
|
|
610
|
+
V(t, r);
|
|
611
|
+
function t() {
|
|
612
|
+
var e = r.call(this) || this;
|
|
613
|
+
return e.startX = 0, e.startY = 0, e.scrollX = !1, e.scrollY = !0, e.freeScroll = !1, e.directionLockThreshold = 0, e.eventPassthrough = "", e.click = !1, e.dblclick = !1, e.tap = "", e.bounce = {
|
|
614
|
+
top: !0,
|
|
615
|
+
bottom: !0,
|
|
616
|
+
left: !0,
|
|
617
|
+
right: !0
|
|
618
|
+
}, e.bounceTime = 800, e.momentum = !0, e.momentumLimitTime = 300, e.momentumLimitDistance = 15, e.swipeTime = 2500, e.swipeBounceTime = 500, e.deceleration = 15e-4, e.flickLimitTime = 200, e.flickLimitDistance = 100, e.resizePolling = 60, e.probeType = 0, e.stopPropagation = !1, e.preventDefault = !0, e.preventDefaultException = {
|
|
619
|
+
tagName: /^(INPUT|TEXTAREA|BUTTON|SELECT|AUDIO)$/
|
|
620
|
+
}, e.tagException = {
|
|
621
|
+
tagName: /^TEXTAREA$/
|
|
622
|
+
}, e.HWCompositing = !0, e.useTransition = !0, e.bindToWrapper = !1, e.bindToTarget = !1, e.disableMouse = ut, e.disableTouch = !ut, e.autoBlur = !0, e.autoEndDistance = 5, e.outOfBoundaryDampingFactor = 1 / 3, e.specifiedIndexAsContent = 0, e.quadrant = 1, e;
|
|
623
|
+
}
|
|
624
|
+
return t.prototype.merge = function(e) {
|
|
625
|
+
if (!e)
|
|
626
|
+
return this;
|
|
627
|
+
for (var o in e) {
|
|
628
|
+
if (o === "bounce") {
|
|
629
|
+
this.bounce = this.resolveBounce(e[o]);
|
|
630
|
+
continue;
|
|
631
|
+
}
|
|
632
|
+
this[o] = e[o];
|
|
633
|
+
}
|
|
634
|
+
return this;
|
|
635
|
+
}, t.prototype.process = function() {
|
|
636
|
+
return this.translateZ = this.HWCompositing && Ut ? " translateZ(1px)" : "", this.useTransition = this.useTransition && Vt, this.preventDefault = !this.eventPassthrough && this.preventDefault, this.scrollX = this.eventPassthrough === "horizontal" ? !1 : this.scrollX, this.scrollY = this.eventPassthrough === "vertical" ? !1 : this.scrollY, this.freeScroll = this.freeScroll && !this.eventPassthrough, this.scrollX = this.freeScroll ? !0 : this.scrollX, this.scrollY = this.freeScroll ? !0 : this.scrollY, this.directionLockThreshold = this.eventPassthrough ? 0 : this.directionLockThreshold, this;
|
|
637
|
+
}, t.prototype.resolveBounce = function(e) {
|
|
638
|
+
var o = {
|
|
639
|
+
top: !0,
|
|
640
|
+
right: !0,
|
|
641
|
+
bottom: !0,
|
|
642
|
+
left: !0
|
|
643
|
+
}, i = {
|
|
644
|
+
top: !1,
|
|
645
|
+
right: !1,
|
|
646
|
+
bottom: !1,
|
|
647
|
+
left: !1
|
|
648
|
+
}, s;
|
|
649
|
+
return typeof e == "object" ? s = m(o, e) : s = e ? o : i, s;
|
|
650
|
+
}, t;
|
|
651
|
+
}(se)
|
|
652
|
+
), ae = (
|
|
653
|
+
/** @class */
|
|
654
|
+
function() {
|
|
655
|
+
function r(t, e) {
|
|
656
|
+
this.wrapper = t, this.options = e, this.hooks = new E([
|
|
657
|
+
"beforeStart",
|
|
658
|
+
"start",
|
|
659
|
+
"move",
|
|
660
|
+
"end",
|
|
661
|
+
"click"
|
|
662
|
+
]), this.handleDOMEvents();
|
|
663
|
+
}
|
|
664
|
+
return r.prototype.handleDOMEvents = function() {
|
|
665
|
+
var t = this.options, e = t.bindToWrapper, o = t.disableMouse, i = t.disableTouch, s = t.click, n = this.wrapper, a = e ? n : window, h = [], l = [], c = !i, p = !o;
|
|
666
|
+
s && h.push({
|
|
667
|
+
name: "click",
|
|
668
|
+
handler: this.click.bind(this),
|
|
669
|
+
capture: !0
|
|
670
|
+
}), c && (h.push({
|
|
671
|
+
name: "touchstart",
|
|
672
|
+
handler: this.start.bind(this)
|
|
673
|
+
}), l.push({
|
|
674
|
+
name: "touchmove",
|
|
675
|
+
handler: this.move.bind(this)
|
|
676
|
+
}, {
|
|
677
|
+
name: "touchend",
|
|
678
|
+
handler: this.end.bind(this)
|
|
679
|
+
}, {
|
|
680
|
+
name: "touchcancel",
|
|
681
|
+
handler: this.end.bind(this)
|
|
682
|
+
})), p && (h.push({
|
|
683
|
+
name: "mousedown",
|
|
684
|
+
handler: this.start.bind(this)
|
|
685
|
+
}), l.push({
|
|
686
|
+
name: "mousemove",
|
|
687
|
+
handler: this.move.bind(this)
|
|
688
|
+
}, {
|
|
689
|
+
name: "mouseup",
|
|
690
|
+
handler: this.end.bind(this)
|
|
691
|
+
})), this.wrapperEventRegister = new T(n, h), this.targetEventRegister = new T(a, l);
|
|
692
|
+
}, r.prototype.beforeHandler = function(t, e) {
|
|
693
|
+
var o = this.options, i = o.preventDefault, s = o.stopPropagation, n = o.preventDefaultException, a = {
|
|
694
|
+
start: function() {
|
|
695
|
+
return i && !I(t.target, n);
|
|
696
|
+
},
|
|
697
|
+
end: function() {
|
|
698
|
+
return i && !I(t.target, n);
|
|
699
|
+
},
|
|
700
|
+
move: function() {
|
|
701
|
+
return i;
|
|
702
|
+
}
|
|
703
|
+
};
|
|
704
|
+
a[e]() && t.preventDefault(), s && t.stopPropagation();
|
|
705
|
+
}, r.prototype.setInitiated = function(t) {
|
|
706
|
+
t === void 0 && (t = 0), this.initiated = t;
|
|
707
|
+
}, r.prototype.start = function(t) {
|
|
708
|
+
var e = J[t.type];
|
|
709
|
+
if (!(this.initiated && this.initiated !== e)) {
|
|
710
|
+
if (this.setInitiated(e), $t(t.target, this.options.tagException)) {
|
|
711
|
+
this.setInitiated();
|
|
712
|
+
return;
|
|
713
|
+
}
|
|
714
|
+
if (!(e === 2 && t.button !== 0) && !this.hooks.trigger(this.hooks.eventTypes.beforeStart, t)) {
|
|
715
|
+
this.beforeHandler(t, "start");
|
|
716
|
+
var o = t.touches ? t.touches[0] : t;
|
|
717
|
+
this.pointX = o.pageX, this.pointY = o.pageY, this.hooks.trigger(this.hooks.eventTypes.start, t);
|
|
718
|
+
}
|
|
719
|
+
}
|
|
720
|
+
}, r.prototype.move = function(t) {
|
|
721
|
+
if (J[t.type] === this.initiated) {
|
|
722
|
+
this.beforeHandler(t, "move");
|
|
723
|
+
var e = t.touches ? t.touches[0] : t, o = e.pageX - this.pointX, i = e.pageY - this.pointY;
|
|
724
|
+
if (this.pointX = e.pageX, this.pointY = e.pageY, !this.hooks.trigger(this.hooks.eventTypes.move, {
|
|
725
|
+
deltaX: o,
|
|
726
|
+
deltaY: i,
|
|
727
|
+
e: t
|
|
728
|
+
})) {
|
|
729
|
+
var s = document.documentElement.scrollLeft || window.pageXOffset || document.body.scrollLeft, n = document.documentElement.scrollTop || window.pageYOffset || document.body.scrollTop, a = this.pointX - s, h = this.pointY - n, l = this.options.autoEndDistance;
|
|
730
|
+
(a > document.documentElement.clientWidth - l || h > document.documentElement.clientHeight - l || a < l || h < l) && this.end(t);
|
|
731
|
+
}
|
|
732
|
+
}
|
|
733
|
+
}, r.prototype.end = function(t) {
|
|
734
|
+
J[t.type] === this.initiated && (this.setInitiated(), this.beforeHandler(t, "end"), this.hooks.trigger(this.hooks.eventTypes.end, t));
|
|
735
|
+
}, r.prototype.click = function(t) {
|
|
736
|
+
this.hooks.trigger(this.hooks.eventTypes.click, t);
|
|
737
|
+
}, r.prototype.setContent = function(t) {
|
|
738
|
+
t !== this.wrapper && (this.wrapper = t, this.rebindDOMEvents());
|
|
739
|
+
}, r.prototype.rebindDOMEvents = function() {
|
|
740
|
+
this.wrapperEventRegister.destroy(), this.targetEventRegister.destroy(), this.handleDOMEvents();
|
|
741
|
+
}, r.prototype.destroy = function() {
|
|
742
|
+
this.wrapperEventRegister.destroy(), this.targetEventRegister.destroy(), this.hooks.destroy();
|
|
743
|
+
}, r;
|
|
744
|
+
}()
|
|
745
|
+
), tt = {
|
|
746
|
+
x: ["translateX", "px"],
|
|
747
|
+
y: ["translateY", "px"]
|
|
748
|
+
}, le = (
|
|
749
|
+
/** @class */
|
|
750
|
+
function() {
|
|
751
|
+
function r(t) {
|
|
752
|
+
this.setContent(t), this.hooks = new E(["beforeTranslate", "translate"]);
|
|
753
|
+
}
|
|
754
|
+
return r.prototype.getComputedPosition = function() {
|
|
755
|
+
var t = window.getComputedStyle(this.content, null), e = t[d.transform].split(")")[0].split(", "), o = +(e[12] || e[4]) || 0, i = +(e[13] || e[5]) || 0;
|
|
756
|
+
return {
|
|
757
|
+
x: o,
|
|
758
|
+
y: i
|
|
759
|
+
};
|
|
760
|
+
}, r.prototype.translate = function(t) {
|
|
761
|
+
var e = [];
|
|
762
|
+
Object.keys(t).forEach(function(o) {
|
|
763
|
+
if (tt[o]) {
|
|
764
|
+
var i = tt[o][0];
|
|
765
|
+
if (i) {
|
|
766
|
+
var s = tt[o][1], n = t[o];
|
|
767
|
+
e.push(i + "(" + n + s + ")");
|
|
768
|
+
}
|
|
769
|
+
}
|
|
770
|
+
}), this.hooks.trigger(this.hooks.eventTypes.beforeTranslate, e, t), this.style[d.transform] = e.join(" "), this.hooks.trigger(this.hooks.eventTypes.translate, t);
|
|
771
|
+
}, r.prototype.setContent = function(t) {
|
|
772
|
+
this.content !== t && (this.content = t, this.style = t.style);
|
|
773
|
+
}, r.prototype.destroy = function() {
|
|
774
|
+
this.hooks.destroy();
|
|
775
|
+
}, r;
|
|
776
|
+
}()
|
|
777
|
+
), Xt = (
|
|
778
|
+
/** @class */
|
|
779
|
+
function() {
|
|
780
|
+
function r(t, e, o) {
|
|
781
|
+
this.translater = e, this.options = o, this.timer = 0, this.hooks = new E([
|
|
782
|
+
"move",
|
|
783
|
+
"end",
|
|
784
|
+
"beforeForceStop",
|
|
785
|
+
"forceStop",
|
|
786
|
+
"callStop",
|
|
787
|
+
"time",
|
|
788
|
+
"timeFunction"
|
|
789
|
+
]), this.setContent(t);
|
|
790
|
+
}
|
|
791
|
+
return r.prototype.translate = function(t) {
|
|
792
|
+
this.translater.translate(t);
|
|
793
|
+
}, r.prototype.setPending = function(t) {
|
|
794
|
+
this.pending = t;
|
|
795
|
+
}, r.prototype.setForceStopped = function(t) {
|
|
796
|
+
this.forceStopped = t;
|
|
797
|
+
}, r.prototype.setCallStop = function(t) {
|
|
798
|
+
this.callStopWhenPending = t;
|
|
799
|
+
}, r.prototype.setContent = function(t) {
|
|
800
|
+
this.content !== t && (this.content = t, this.style = t.style, this.stop());
|
|
801
|
+
}, r.prototype.clearTimer = function() {
|
|
802
|
+
this.timer && (B(this.timer), this.timer = 0);
|
|
803
|
+
}, r.prototype.destroy = function() {
|
|
804
|
+
this.hooks.destroy(), B(this.timer);
|
|
805
|
+
}, r;
|
|
806
|
+
}()
|
|
807
|
+
), he = function(r, t, e, o) {
|
|
808
|
+
var i = function(l, c) {
|
|
809
|
+
var p = l - c, u = p > 0 ? -1 : p < 0 ? 1 : 0;
|
|
810
|
+
return u;
|
|
811
|
+
}, s = i(t.x, r.x), n = i(t.y, r.y), a = e.x - o.x, h = e.y - o.y;
|
|
812
|
+
return s * a <= 0 && n * h <= 0;
|
|
813
|
+
}, ce = (
|
|
814
|
+
/** @class */
|
|
815
|
+
function(r) {
|
|
816
|
+
V(t, r);
|
|
817
|
+
function t() {
|
|
818
|
+
return r !== null && r.apply(this, arguments) || this;
|
|
819
|
+
}
|
|
820
|
+
return t.prototype.startProbe = function(e, o) {
|
|
821
|
+
var i = this, s = e, n = function() {
|
|
822
|
+
var a = i.translater.getComputedPosition();
|
|
823
|
+
he(e, o, a, s) && i.hooks.trigger(i.hooks.eventTypes.move, a), i.pending || (i.callStopWhenPending ? i.callStopWhenPending = !1 : i.hooks.trigger(i.hooks.eventTypes.end, a)), s = a, i.pending && (i.timer = lt(n));
|
|
824
|
+
};
|
|
825
|
+
this.callStopWhenPending && this.setCallStop(!1), B(this.timer), n();
|
|
826
|
+
}, t.prototype.transitionTime = function(e) {
|
|
827
|
+
e === void 0 && (e = 0), this.style[d.transitionDuration] = e + "ms", this.hooks.trigger(this.hooks.eventTypes.time, e);
|
|
828
|
+
}, t.prototype.transitionTimingFunction = function(e) {
|
|
829
|
+
this.style[d.transitionTimingFunction] = e, this.hooks.trigger(this.hooks.eventTypes.timeFunction, e);
|
|
830
|
+
}, t.prototype.transitionProperty = function() {
|
|
831
|
+
this.style[d.transitionProperty] = d.transform;
|
|
832
|
+
}, t.prototype.move = function(e, o, i, s) {
|
|
833
|
+
this.setPending(i > 0), this.transitionTimingFunction(s), this.transitionProperty(), this.transitionTime(i), this.translate(o);
|
|
834
|
+
var n = this.options.probeType === 3;
|
|
835
|
+
i && n && this.startProbe(e, o), i || (this._reflow = this.content.offsetHeight, n && this.hooks.trigger(this.hooks.eventTypes.move, o), this.hooks.trigger(this.hooks.eventTypes.end, o));
|
|
836
|
+
}, t.prototype.doStop = function() {
|
|
837
|
+
var e = this.pending;
|
|
838
|
+
if (this.setForceStopped(!1), this.setCallStop(!1), e) {
|
|
839
|
+
this.setPending(!1), B(this.timer);
|
|
840
|
+
var o = this.translater.getComputedPosition(), i = o.x, s = o.y;
|
|
841
|
+
this.transitionTime(), this.translate({ x: i, y: s }), this.setForceStopped(!0), this.setCallStop(!0), this.hooks.trigger(this.hooks.eventTypes.forceStop, { x: i, y: s });
|
|
842
|
+
}
|
|
843
|
+
return e;
|
|
844
|
+
}, t.prototype.stop = function() {
|
|
845
|
+
var e = this.doStop();
|
|
846
|
+
e && this.hooks.trigger(this.hooks.eventTypes.callStop);
|
|
847
|
+
}, t;
|
|
848
|
+
}(Xt)
|
|
849
|
+
), pe = (
|
|
850
|
+
/** @class */
|
|
851
|
+
function(r) {
|
|
852
|
+
V(t, r);
|
|
853
|
+
function t() {
|
|
854
|
+
return r !== null && r.apply(this, arguments) || this;
|
|
855
|
+
}
|
|
856
|
+
return t.prototype.move = function(e, o, i, s) {
|
|
857
|
+
if (!i) {
|
|
858
|
+
this.translate(o), this.options.probeType === 3 && this.hooks.trigger(this.hooks.eventTypes.move, o), this.hooks.trigger(this.hooks.eventTypes.end, o);
|
|
859
|
+
return;
|
|
860
|
+
}
|
|
861
|
+
this.animate(e, o, i, s);
|
|
862
|
+
}, t.prototype.animate = function(e, o, i, s) {
|
|
863
|
+
var n = this, a = S(), h = a + i, l = this.options.probeType === 3, c = function() {
|
|
864
|
+
var p = S();
|
|
865
|
+
if (p >= h) {
|
|
866
|
+
n.translate(o), l && n.hooks.trigger(n.hooks.eventTypes.move, o), n.hooks.trigger(n.hooks.eventTypes.end, o);
|
|
867
|
+
return;
|
|
868
|
+
}
|
|
869
|
+
p = (p - a) / i;
|
|
870
|
+
var u = s(p), f = {};
|
|
871
|
+
Object.keys(o).forEach(function(v) {
|
|
872
|
+
var k = e[v], Y = o[v];
|
|
873
|
+
f[v] = (Y - k) * u + k;
|
|
874
|
+
}), n.translate(f), l && n.hooks.trigger(n.hooks.eventTypes.move, f), n.pending && (n.timer = lt(c)), n.pending || (n.callStopWhenPending ? n.callStopWhenPending = !1 : n.hooks.trigger(n.hooks.eventTypes.end, o));
|
|
875
|
+
};
|
|
876
|
+
this.setPending(!0), this.callStopWhenPending && this.setCallStop(!1), B(this.timer), c();
|
|
877
|
+
}, t.prototype.doStop = function() {
|
|
878
|
+
var e = this.pending;
|
|
879
|
+
if (this.setForceStopped(!1), this.setCallStop(!1), e) {
|
|
880
|
+
this.setPending(!1), B(this.timer);
|
|
881
|
+
var o = this.translater.getComputedPosition();
|
|
882
|
+
this.setForceStopped(!0), this.setCallStop(!0), this.hooks.trigger(this.hooks.eventTypes.forceStop, o);
|
|
883
|
+
}
|
|
884
|
+
return e;
|
|
885
|
+
}, t.prototype.stop = function() {
|
|
886
|
+
var e = this.doStop();
|
|
887
|
+
e && this.hooks.trigger(this.hooks.eventTypes.callStop);
|
|
888
|
+
}, t;
|
|
889
|
+
}(Xt)
|
|
890
|
+
);
|
|
891
|
+
function ue(r, t, e) {
|
|
892
|
+
var o = e.useTransition, i = {};
|
|
893
|
+
return Object.defineProperty(i, "probeType", {
|
|
894
|
+
enumerable: !0,
|
|
895
|
+
configurable: !1,
|
|
896
|
+
get: function() {
|
|
897
|
+
return e.probeType;
|
|
898
|
+
}
|
|
899
|
+
}), o ? new ce(r, t, i) : new pe(r, t, i);
|
|
900
|
+
}
|
|
901
|
+
var vt = (
|
|
902
|
+
/** @class */
|
|
903
|
+
function() {
|
|
904
|
+
function r(t, e, o) {
|
|
905
|
+
this.wrapper = t, this.options = o, this.hooks = new E([
|
|
906
|
+
"beforeComputeBoundary",
|
|
907
|
+
"computeBoundary",
|
|
908
|
+
"momentum",
|
|
909
|
+
"end",
|
|
910
|
+
"ignoreHasScroll"
|
|
911
|
+
]), this.refresh(e);
|
|
912
|
+
}
|
|
913
|
+
return r.prototype.start = function() {
|
|
914
|
+
this.dist = 0, this.setMovingDirection(
|
|
915
|
+
0
|
|
916
|
+
/* Default */
|
|
917
|
+
), this.setDirection(
|
|
918
|
+
0
|
|
919
|
+
/* Default */
|
|
920
|
+
);
|
|
921
|
+
}, r.prototype.move = function(t) {
|
|
922
|
+
return t = this.hasScroll ? t : 0, this.setMovingDirection(t), this.performDampingAlgorithm(t, this.options.outOfBoundaryDampingFactor);
|
|
923
|
+
}, r.prototype.setMovingDirection = function(t) {
|
|
924
|
+
this.movingDirection = t > 0 ? -1 : t < 0 ? 1 : 0;
|
|
925
|
+
}, r.prototype.setDirection = function(t) {
|
|
926
|
+
this.direction = t > 0 ? -1 : t < 0 ? 1 : 0;
|
|
927
|
+
}, r.prototype.performDampingAlgorithm = function(t, e) {
|
|
928
|
+
var o = this.currentPos + t;
|
|
929
|
+
return (o > this.minScrollPos || o < this.maxScrollPos) && (o > this.minScrollPos && this.options.bounces[0] || o < this.maxScrollPos && this.options.bounces[1] ? o = this.currentPos + t * e : o = o > this.minScrollPos ? this.minScrollPos : this.maxScrollPos), o;
|
|
930
|
+
}, r.prototype.end = function(t) {
|
|
931
|
+
var e = {
|
|
932
|
+
duration: 0
|
|
933
|
+
}, o = Math.abs(this.currentPos - this.startPos);
|
|
934
|
+
if (this.options.momentum && t < this.options.momentumLimitTime && o > this.options.momentumLimitDistance) {
|
|
935
|
+
var i = this.direction === -1 && this.options.bounces[0] || this.direction === 1 && this.options.bounces[1] ? this.wrapperSize : 0;
|
|
936
|
+
e = this.hasScroll ? this.momentum(this.currentPos, this.startPos, t, this.maxScrollPos, this.minScrollPos, i, this.options) : { destination: this.currentPos, duration: 0 };
|
|
937
|
+
} else
|
|
938
|
+
this.hooks.trigger(this.hooks.eventTypes.end, e);
|
|
939
|
+
return e;
|
|
940
|
+
}, r.prototype.momentum = function(t, e, o, i, s, n, a) {
|
|
941
|
+
a === void 0 && (a = this.options);
|
|
942
|
+
var h = t - e, l = Math.abs(h) / o, c = a.deceleration, p = a.swipeBounceTime, u = a.swipeTime, f = Math.min(u, l * 2 / c), v = {
|
|
943
|
+
destination: t + l * l / c * (h < 0 ? -1 : 1),
|
|
944
|
+
duration: f,
|
|
945
|
+
rate: 15
|
|
946
|
+
};
|
|
947
|
+
return this.hooks.trigger(this.hooks.eventTypes.momentum, v, h), v.destination < i ? (v.destination = n ? Math.max(i - n / 4, i - n / v.rate * l) : i, v.duration = p) : v.destination > s && (v.destination = n ? Math.min(s + n / 4, s + n / v.rate * l) : s, v.duration = p), v.destination = Math.round(v.destination), v;
|
|
948
|
+
}, r.prototype.updateDirection = function() {
|
|
949
|
+
var t = this.currentPos - this.absStartPos;
|
|
950
|
+
this.setDirection(t);
|
|
951
|
+
}, r.prototype.refresh = function(t) {
|
|
952
|
+
var e = this.options.rect, o = e.size, i = e.position, s = window.getComputedStyle(this.wrapper, null).position === "static", n = D(this.wrapper);
|
|
953
|
+
this.wrapperSize = this.wrapper[o === "width" ? "clientWidth" : "clientHeight"], this.setContent(t);
|
|
954
|
+
var a = D(this.content);
|
|
955
|
+
this.contentSize = a[o], this.relativeOffset = a[i], s && (this.relativeOffset -= n[i]), this.computeBoundary(), this.setDirection(
|
|
956
|
+
0
|
|
957
|
+
/* Default */
|
|
958
|
+
);
|
|
959
|
+
}, r.prototype.setContent = function(t) {
|
|
960
|
+
t !== this.content && (this.content = t, this.resetState());
|
|
961
|
+
}, r.prototype.resetState = function() {
|
|
962
|
+
this.currentPos = 0, this.startPos = 0, this.dist = 0, this.setDirection(
|
|
963
|
+
0
|
|
964
|
+
/* Default */
|
|
965
|
+
), this.setMovingDirection(
|
|
966
|
+
0
|
|
967
|
+
/* Default */
|
|
968
|
+
), this.resetStartPos();
|
|
969
|
+
}, r.prototype.computeBoundary = function() {
|
|
970
|
+
this.hooks.trigger(this.hooks.eventTypes.beforeComputeBoundary);
|
|
971
|
+
var t = {
|
|
972
|
+
minScrollPos: 0,
|
|
973
|
+
maxScrollPos: this.wrapperSize - this.contentSize
|
|
974
|
+
};
|
|
975
|
+
t.maxScrollPos < 0 && (t.maxScrollPos -= this.relativeOffset, this.options.specifiedIndexAsContent === 0 && (t.minScrollPos = -this.relativeOffset)), this.hooks.trigger(this.hooks.eventTypes.computeBoundary, t), this.minScrollPos = t.minScrollPos, this.maxScrollPos = t.maxScrollPos, this.hasScroll = this.options.scrollable && this.maxScrollPos < this.minScrollPos, !this.hasScroll && this.minScrollPos < this.maxScrollPos && (this.maxScrollPos = this.minScrollPos, this.contentSize = this.wrapperSize);
|
|
976
|
+
}, r.prototype.updatePosition = function(t) {
|
|
977
|
+
this.currentPos = t;
|
|
978
|
+
}, r.prototype.getCurrentPos = function() {
|
|
979
|
+
return this.currentPos;
|
|
980
|
+
}, r.prototype.checkInBoundary = function() {
|
|
981
|
+
var t = this.adjustPosition(this.currentPos), e = t === this.getCurrentPos();
|
|
982
|
+
return {
|
|
983
|
+
position: t,
|
|
984
|
+
inBoundary: e
|
|
985
|
+
};
|
|
986
|
+
}, r.prototype.adjustPosition = function(t) {
|
|
987
|
+
return !this.hasScroll && !this.hooks.trigger(this.hooks.eventTypes.ignoreHasScroll) ? t = this.minScrollPos : t > this.minScrollPos ? t = this.minScrollPos : t < this.maxScrollPos && (t = this.maxScrollPos), t;
|
|
988
|
+
}, r.prototype.updateStartPos = function() {
|
|
989
|
+
this.startPos = this.currentPos;
|
|
990
|
+
}, r.prototype.updateAbsStartPos = function() {
|
|
991
|
+
this.absStartPos = this.currentPos;
|
|
992
|
+
}, r.prototype.resetStartPos = function() {
|
|
993
|
+
this.updateStartPos(), this.updateAbsStartPos();
|
|
994
|
+
}, r.prototype.getAbsDist = function(t) {
|
|
995
|
+
return this.dist += t, Math.abs(this.dist);
|
|
996
|
+
}, r.prototype.destroy = function() {
|
|
997
|
+
this.hooks.destroy();
|
|
998
|
+
}, r;
|
|
999
|
+
}()
|
|
1000
|
+
), L, F, _, A, dt = (L = {}, L.yes = function(r) {
|
|
1001
|
+
return !0;
|
|
1002
|
+
}, L.no = function(r) {
|
|
1003
|
+
return X(r), !1;
|
|
1004
|
+
}, L), fe = (F = {}, F.horizontal = (_ = {}, _.yes = "horizontal", _.no = "vertical", _), F.vertical = (A = {}, A.yes = "vertical", A.no = "horizontal", A), F), ve = (
|
|
1005
|
+
/** @class */
|
|
1006
|
+
function() {
|
|
1007
|
+
function r(t, e, o) {
|
|
1008
|
+
this.directionLockThreshold = t, this.freeScroll = e, this.eventPassthrough = o, this.reset();
|
|
1009
|
+
}
|
|
1010
|
+
return r.prototype.reset = function() {
|
|
1011
|
+
this.directionLocked = "";
|
|
1012
|
+
}, r.prototype.checkMovingDirection = function(t, e, o) {
|
|
1013
|
+
return this.computeDirectionLock(t, e), this.handleEventPassthrough(o);
|
|
1014
|
+
}, r.prototype.adjustDelta = function(t, e) {
|
|
1015
|
+
return this.directionLocked === "horizontal" ? e = 0 : this.directionLocked === "vertical" && (t = 0), {
|
|
1016
|
+
deltaX: t,
|
|
1017
|
+
deltaY: e
|
|
1018
|
+
};
|
|
1019
|
+
}, r.prototype.computeDirectionLock = function(t, e) {
|
|
1020
|
+
this.directionLocked === "" && !this.freeScroll && (t > e + this.directionLockThreshold ? this.directionLocked = "horizontal" : e >= t + this.directionLockThreshold ? this.directionLocked = "vertical" : this.directionLocked = "none");
|
|
1021
|
+
}, r.prototype.handleEventPassthrough = function(t) {
|
|
1022
|
+
var e = fe[this.directionLocked];
|
|
1023
|
+
if (e) {
|
|
1024
|
+
if (this.eventPassthrough === e.yes)
|
|
1025
|
+
return dt.yes(t);
|
|
1026
|
+
if (this.eventPassthrough === e.no)
|
|
1027
|
+
return dt.no(t);
|
|
1028
|
+
}
|
|
1029
|
+
return !1;
|
|
1030
|
+
}, r;
|
|
1031
|
+
}()
|
|
1032
|
+
), de = function(r, t, e) {
|
|
1033
|
+
return e === 2 ? [t, -r] : e === 3 ? [-r, -t] : e === 4 ? [-t, r] : [r, t];
|
|
1034
|
+
}, ge = (
|
|
1035
|
+
/** @class */
|
|
1036
|
+
function() {
|
|
1037
|
+
function r(t, e, o, i, s) {
|
|
1038
|
+
this.hooks = new E([
|
|
1039
|
+
"start",
|
|
1040
|
+
"beforeMove",
|
|
1041
|
+
"scrollStart",
|
|
1042
|
+
"scroll",
|
|
1043
|
+
"beforeEnd",
|
|
1044
|
+
"end",
|
|
1045
|
+
"scrollEnd",
|
|
1046
|
+
"contentNotMoved",
|
|
1047
|
+
"detectMovingDirection",
|
|
1048
|
+
"coordinateTransformation"
|
|
1049
|
+
]), this.scrollBehaviorX = t, this.scrollBehaviorY = e, this.actionsHandler = o, this.animater = i, this.options = s, this.directionLockAction = new ve(s.directionLockThreshold, s.freeScroll, s.eventPassthrough), this.enabled = !0, this.bindActionsHandler();
|
|
1050
|
+
}
|
|
1051
|
+
return r.prototype.bindActionsHandler = function() {
|
|
1052
|
+
var t = this;
|
|
1053
|
+
this.actionsHandler.hooks.on(this.actionsHandler.hooks.eventTypes.start, function(e) {
|
|
1054
|
+
return t.enabled ? t.handleStart(e) : !0;
|
|
1055
|
+
}), this.actionsHandler.hooks.on(this.actionsHandler.hooks.eventTypes.move, function(e) {
|
|
1056
|
+
var o = e.deltaX, i = e.deltaY, s = e.e;
|
|
1057
|
+
if (!t.enabled)
|
|
1058
|
+
return !0;
|
|
1059
|
+
var n = de(o, i, t.options.quadrant), a = n[0], h = n[1], l = {
|
|
1060
|
+
deltaX: a,
|
|
1061
|
+
deltaY: h
|
|
1062
|
+
};
|
|
1063
|
+
return t.hooks.trigger(t.hooks.eventTypes.coordinateTransformation, l), t.handleMove(l.deltaX, l.deltaY, s);
|
|
1064
|
+
}), this.actionsHandler.hooks.on(this.actionsHandler.hooks.eventTypes.end, function(e) {
|
|
1065
|
+
return t.enabled ? t.handleEnd(e) : !0;
|
|
1066
|
+
}), this.actionsHandler.hooks.on(this.actionsHandler.hooks.eventTypes.click, function(e) {
|
|
1067
|
+
t.enabled && !e._constructed && t.handleClick(e);
|
|
1068
|
+
});
|
|
1069
|
+
}, r.prototype.handleStart = function(t) {
|
|
1070
|
+
var e = S();
|
|
1071
|
+
this.fingerMoved = !1, this.contentMoved = !1, this.startTime = e, this.directionLockAction.reset(), this.scrollBehaviorX.start(), this.scrollBehaviorY.start(), this.animater.doStop(), this.scrollBehaviorX.resetStartPos(), this.scrollBehaviorY.resetStartPos(), this.hooks.trigger(this.hooks.eventTypes.start, t);
|
|
1072
|
+
}, r.prototype.handleMove = function(t, e, o) {
|
|
1073
|
+
if (!this.hooks.trigger(this.hooks.eventTypes.beforeMove, o)) {
|
|
1074
|
+
var i = this.scrollBehaviorX.getAbsDist(t), s = this.scrollBehaviorY.getAbsDist(e), n = S();
|
|
1075
|
+
if (this.checkMomentum(i, s, n))
|
|
1076
|
+
return !0;
|
|
1077
|
+
if (this.directionLockAction.checkMovingDirection(i, s, o))
|
|
1078
|
+
return this.actionsHandler.setInitiated(), !0;
|
|
1079
|
+
var a = this.directionLockAction.adjustDelta(t, e), h = this.scrollBehaviorX.getCurrentPos(), l = this.scrollBehaviorX.move(a.deltaX), c = this.scrollBehaviorY.getCurrentPos(), p = this.scrollBehaviorY.move(a.deltaY);
|
|
1080
|
+
if (!this.hooks.trigger(this.hooks.eventTypes.detectMovingDirection)) {
|
|
1081
|
+
this.fingerMoved || (this.fingerMoved = !0);
|
|
1082
|
+
var u = l !== h || p !== c;
|
|
1083
|
+
!this.contentMoved && !u && this.hooks.trigger(this.hooks.eventTypes.contentNotMoved), !this.contentMoved && u && (this.contentMoved = !0, this.hooks.trigger(this.hooks.eventTypes.scrollStart)), this.contentMoved && u && (this.animater.translate({
|
|
1084
|
+
x: l,
|
|
1085
|
+
y: p
|
|
1086
|
+
}), this.dispatchScroll(n));
|
|
1087
|
+
}
|
|
1088
|
+
}
|
|
1089
|
+
}, r.prototype.dispatchScroll = function(t) {
|
|
1090
|
+
t - this.startTime > this.options.momentumLimitTime && (this.startTime = t, this.scrollBehaviorX.updateStartPos(), this.scrollBehaviorY.updateStartPos(), this.options.probeType === 1 && this.hooks.trigger(this.hooks.eventTypes.scroll, this.getCurrentPos())), this.options.probeType > 1 && this.hooks.trigger(this.hooks.eventTypes.scroll, this.getCurrentPos());
|
|
1091
|
+
}, r.prototype.checkMomentum = function(t, e, o) {
|
|
1092
|
+
return o - this.endTime > this.options.momentumLimitTime && e < this.options.momentumLimitDistance && t < this.options.momentumLimitDistance;
|
|
1093
|
+
}, r.prototype.handleEnd = function(t) {
|
|
1094
|
+
if (!this.hooks.trigger(this.hooks.eventTypes.beforeEnd, t)) {
|
|
1095
|
+
var e = this.getCurrentPos();
|
|
1096
|
+
if (this.scrollBehaviorX.updateDirection(), this.scrollBehaviorY.updateDirection(), this.hooks.trigger(this.hooks.eventTypes.end, t, e))
|
|
1097
|
+
return !0;
|
|
1098
|
+
e = this.ensureIntegerPos(e), this.animater.translate(e), this.endTime = S();
|
|
1099
|
+
var o = this.endTime - this.startTime;
|
|
1100
|
+
this.hooks.trigger(this.hooks.eventTypes.scrollEnd, e, o);
|
|
1101
|
+
}
|
|
1102
|
+
}, r.prototype.ensureIntegerPos = function(t) {
|
|
1103
|
+
this.ensuringInteger = !0;
|
|
1104
|
+
var e = t.x, o = t.y, i = this.scrollBehaviorX, s = i.minScrollPos, n = i.maxScrollPos, a = this.scrollBehaviorY, h = a.minScrollPos, l = a.maxScrollPos;
|
|
1105
|
+
return e = e > 0 ? Math.ceil(e) : Math.floor(e), o = o > 0 ? Math.ceil(o) : Math.floor(o), e = g(e, n, s), o = g(o, l, h), { x: e, y: o };
|
|
1106
|
+
}, r.prototype.handleClick = function(t) {
|
|
1107
|
+
I(t.target, this.options.preventDefaultException) || (X(t), t.stopPropagation());
|
|
1108
|
+
}, r.prototype.getCurrentPos = function() {
|
|
1109
|
+
return {
|
|
1110
|
+
x: this.scrollBehaviorX.getCurrentPos(),
|
|
1111
|
+
y: this.scrollBehaviorY.getCurrentPos()
|
|
1112
|
+
};
|
|
1113
|
+
}, r.prototype.refresh = function() {
|
|
1114
|
+
this.endTime = 0;
|
|
1115
|
+
}, r.prototype.destroy = function() {
|
|
1116
|
+
this.hooks.destroy();
|
|
1117
|
+
}, r;
|
|
1118
|
+
}()
|
|
1119
|
+
);
|
|
1120
|
+
function ye(r) {
|
|
1121
|
+
var t = [
|
|
1122
|
+
"click",
|
|
1123
|
+
"bindToWrapper",
|
|
1124
|
+
"disableMouse",
|
|
1125
|
+
"disableTouch",
|
|
1126
|
+
"preventDefault",
|
|
1127
|
+
"stopPropagation",
|
|
1128
|
+
"tagException",
|
|
1129
|
+
"preventDefaultException",
|
|
1130
|
+
"autoEndDistance"
|
|
1131
|
+
].reduce(function(e, o) {
|
|
1132
|
+
return e[o] = r[o], e;
|
|
1133
|
+
}, {});
|
|
1134
|
+
return t;
|
|
1135
|
+
}
|
|
1136
|
+
function gt(r, t, e, o) {
|
|
1137
|
+
var i = [
|
|
1138
|
+
"momentum",
|
|
1139
|
+
"momentumLimitTime",
|
|
1140
|
+
"momentumLimitDistance",
|
|
1141
|
+
"deceleration",
|
|
1142
|
+
"swipeBounceTime",
|
|
1143
|
+
"swipeTime",
|
|
1144
|
+
"outOfBoundaryDampingFactor",
|
|
1145
|
+
"specifiedIndexAsContent"
|
|
1146
|
+
].reduce(function(s, n) {
|
|
1147
|
+
return s[n] = r[n], s;
|
|
1148
|
+
}, {});
|
|
1149
|
+
return i.scrollable = !!r[t], i.bounces = e, i.rect = o, i;
|
|
1150
|
+
}
|
|
1151
|
+
function nt(r, t, e) {
|
|
1152
|
+
e.forEach(function(o) {
|
|
1153
|
+
var i, s;
|
|
1154
|
+
typeof o == "string" ? i = s = o : (i = o.source, s = o.target), r.on(i, function() {
|
|
1155
|
+
for (var n = [], a = 0; a < arguments.length; a++)
|
|
1156
|
+
n[a] = arguments[a];
|
|
1157
|
+
return t.trigger.apply(t, U([s], n));
|
|
1158
|
+
});
|
|
1159
|
+
});
|
|
1160
|
+
}
|
|
1161
|
+
function me(r, t) {
|
|
1162
|
+
for (var e = Object.keys(r), o = 0, i = e; o < i.length; o++) {
|
|
1163
|
+
var s = i[o];
|
|
1164
|
+
if (r[s] !== t[s])
|
|
1165
|
+
return !1;
|
|
1166
|
+
}
|
|
1167
|
+
return !0;
|
|
1168
|
+
}
|
|
1169
|
+
var yt = 1, ke = (
|
|
1170
|
+
/** @class */
|
|
1171
|
+
function() {
|
|
1172
|
+
function r(t, e, o) {
|
|
1173
|
+
this.wrapper = t, this.content = e, this.resizeTimeout = 0, this.hooks = new E([
|
|
1174
|
+
"beforeStart",
|
|
1175
|
+
"beforeMove",
|
|
1176
|
+
"beforeScrollStart",
|
|
1177
|
+
"scrollStart",
|
|
1178
|
+
"scroll",
|
|
1179
|
+
"beforeEnd",
|
|
1180
|
+
"scrollEnd",
|
|
1181
|
+
"resize",
|
|
1182
|
+
"touchEnd",
|
|
1183
|
+
"end",
|
|
1184
|
+
"flick",
|
|
1185
|
+
"scrollCancel",
|
|
1186
|
+
"momentum",
|
|
1187
|
+
"scrollTo",
|
|
1188
|
+
"minDistanceScroll",
|
|
1189
|
+
"scrollToElement",
|
|
1190
|
+
"beforeRefresh"
|
|
1191
|
+
]), this.options = o;
|
|
1192
|
+
var i = this.options.bounce, s = i.left, n = i.right, a = i.top, h = i.bottom;
|
|
1193
|
+
this.scrollBehaviorX = new vt(t, e, gt(o, "scrollX", [s, n], {
|
|
1194
|
+
size: "width",
|
|
1195
|
+
position: "left"
|
|
1196
|
+
})), this.scrollBehaviorY = new vt(t, e, gt(o, "scrollY", [a, h], {
|
|
1197
|
+
size: "height",
|
|
1198
|
+
position: "top"
|
|
1199
|
+
})), this.translater = new le(this.content), this.animater = ue(this.content, this.translater, this.options), this.actionsHandler = new ae(this.options.bindToTarget ? this.content : t, ye(this.options)), this.actions = new ge(this.scrollBehaviorX, this.scrollBehaviorY, this.actionsHandler, this.animater, this.options);
|
|
1200
|
+
var l = this.resize.bind(this);
|
|
1201
|
+
this.resizeRegister = new T(window, [
|
|
1202
|
+
{
|
|
1203
|
+
name: "orientationchange",
|
|
1204
|
+
handler: l
|
|
1205
|
+
},
|
|
1206
|
+
{
|
|
1207
|
+
name: "resize",
|
|
1208
|
+
handler: l
|
|
1209
|
+
}
|
|
1210
|
+
]), this.registerTransitionEnd(), this.init();
|
|
1211
|
+
}
|
|
1212
|
+
return r.prototype.init = function() {
|
|
1213
|
+
var t = this;
|
|
1214
|
+
this.bindTranslater(), this.bindAnimater(), this.bindActions(), this.hooks.on(this.hooks.eventTypes.scrollEnd, function() {
|
|
1215
|
+
t.togglePointerEvents(!0);
|
|
1216
|
+
});
|
|
1217
|
+
}, r.prototype.registerTransitionEnd = function() {
|
|
1218
|
+
this.transitionEndRegister = new T(this.content, [
|
|
1219
|
+
{
|
|
1220
|
+
name: d.transitionEnd,
|
|
1221
|
+
handler: this.transitionEnd.bind(this)
|
|
1222
|
+
}
|
|
1223
|
+
]);
|
|
1224
|
+
}, r.prototype.bindTranslater = function() {
|
|
1225
|
+
var t = this, e = this.translater.hooks;
|
|
1226
|
+
e.on(e.eventTypes.beforeTranslate, function(o) {
|
|
1227
|
+
t.options.translateZ && o.push(t.options.translateZ);
|
|
1228
|
+
}), e.on(e.eventTypes.translate, function(o) {
|
|
1229
|
+
var i = t.getCurrentPos();
|
|
1230
|
+
if (t.updatePositions(o), t.actions.ensuringInteger === !0) {
|
|
1231
|
+
t.actions.ensuringInteger = !1;
|
|
1232
|
+
return;
|
|
1233
|
+
}
|
|
1234
|
+
(o.x !== i.x || o.y !== i.y) && t.togglePointerEvents(!1);
|
|
1235
|
+
});
|
|
1236
|
+
}, r.prototype.bindAnimater = function() {
|
|
1237
|
+
var t = this;
|
|
1238
|
+
this.animater.hooks.on(this.animater.hooks.eventTypes.end, function(e) {
|
|
1239
|
+
t.resetPosition(t.options.bounceTime) || (t.animater.setPending(!1), t.hooks.trigger(t.hooks.eventTypes.scrollEnd, e));
|
|
1240
|
+
}), nt(this.animater.hooks, this.hooks, [
|
|
1241
|
+
{
|
|
1242
|
+
source: this.animater.hooks.eventTypes.move,
|
|
1243
|
+
target: this.hooks.eventTypes.scroll
|
|
1244
|
+
},
|
|
1245
|
+
{
|
|
1246
|
+
source: this.animater.hooks.eventTypes.forceStop,
|
|
1247
|
+
target: this.hooks.eventTypes.scrollEnd
|
|
1248
|
+
}
|
|
1249
|
+
]);
|
|
1250
|
+
}, r.prototype.bindActions = function() {
|
|
1251
|
+
var t = this, e = this.actions;
|
|
1252
|
+
nt(e.hooks, this.hooks, [
|
|
1253
|
+
{
|
|
1254
|
+
source: e.hooks.eventTypes.start,
|
|
1255
|
+
target: this.hooks.eventTypes.beforeStart
|
|
1256
|
+
},
|
|
1257
|
+
{
|
|
1258
|
+
source: e.hooks.eventTypes.start,
|
|
1259
|
+
target: this.hooks.eventTypes.beforeScrollStart
|
|
1260
|
+
},
|
|
1261
|
+
{
|
|
1262
|
+
source: e.hooks.eventTypes.beforeMove,
|
|
1263
|
+
target: this.hooks.eventTypes.beforeMove
|
|
1264
|
+
},
|
|
1265
|
+
{
|
|
1266
|
+
source: e.hooks.eventTypes.scrollStart,
|
|
1267
|
+
target: this.hooks.eventTypes.scrollStart
|
|
1268
|
+
},
|
|
1269
|
+
{
|
|
1270
|
+
source: e.hooks.eventTypes.scroll,
|
|
1271
|
+
target: this.hooks.eventTypes.scroll
|
|
1272
|
+
},
|
|
1273
|
+
{
|
|
1274
|
+
source: e.hooks.eventTypes.beforeEnd,
|
|
1275
|
+
target: this.hooks.eventTypes.beforeEnd
|
|
1276
|
+
}
|
|
1277
|
+
]), e.hooks.on(e.hooks.eventTypes.end, function(o, i) {
|
|
1278
|
+
if (t.hooks.trigger(t.hooks.eventTypes.touchEnd, i), t.hooks.trigger(t.hooks.eventTypes.end, i) || !e.fingerMoved && (t.hooks.trigger(t.hooks.eventTypes.scrollCancel), t.checkClick(o)))
|
|
1279
|
+
return !0;
|
|
1280
|
+
if (t.resetPosition(t.options.bounceTime, y.bounce))
|
|
1281
|
+
return t.animater.setForceStopped(!1), !0;
|
|
1282
|
+
}), e.hooks.on(e.hooks.eventTypes.scrollEnd, function(o, i) {
|
|
1283
|
+
var s = Math.abs(o.x - t.scrollBehaviorX.startPos), n = Math.abs(o.y - t.scrollBehaviorY.startPos);
|
|
1284
|
+
if (t.checkFlick(i, s, n)) {
|
|
1285
|
+
t.animater.setForceStopped(!1), t.hooks.trigger(t.hooks.eventTypes.flick);
|
|
1286
|
+
return;
|
|
1287
|
+
}
|
|
1288
|
+
if (t.momentum(o, i)) {
|
|
1289
|
+
t.animater.setForceStopped(!1);
|
|
1290
|
+
return;
|
|
1291
|
+
}
|
|
1292
|
+
e.contentMoved && t.hooks.trigger(t.hooks.eventTypes.scrollEnd, o), t.animater.forceStopped && t.animater.setForceStopped(!1);
|
|
1293
|
+
});
|
|
1294
|
+
}, r.prototype.checkFlick = function(t, e, o) {
|
|
1295
|
+
var i = 1;
|
|
1296
|
+
if (this.hooks.events.flick.length > 1 && t < this.options.flickLimitTime && e < this.options.flickLimitDistance && o < this.options.flickLimitDistance && (o > i || e > i))
|
|
1297
|
+
return !0;
|
|
1298
|
+
}, r.prototype.momentum = function(t, e) {
|
|
1299
|
+
var o = {
|
|
1300
|
+
time: 0,
|
|
1301
|
+
easing: y.swiper,
|
|
1302
|
+
newX: t.x,
|
|
1303
|
+
newY: t.y
|
|
1304
|
+
}, i = this.scrollBehaviorX.end(e), s = this.scrollBehaviorY.end(e);
|
|
1305
|
+
if (o.newX = st(i.destination) ? o.newX : i.destination, o.newY = st(s.destination) ? o.newY : s.destination, o.time = Math.max(i.duration, s.duration), this.hooks.trigger(this.hooks.eventTypes.momentum, o, this), o.newX !== t.x || o.newY !== t.y)
|
|
1306
|
+
return (o.newX > this.scrollBehaviorX.minScrollPos || o.newX < this.scrollBehaviorX.maxScrollPos || o.newY > this.scrollBehaviorY.minScrollPos || o.newY < this.scrollBehaviorY.maxScrollPos) && (o.easing = y.swipeBounce), this.scrollTo(o.newX, o.newY, o.time, o.easing), !0;
|
|
1307
|
+
}, r.prototype.checkClick = function(t) {
|
|
1308
|
+
var e = {
|
|
1309
|
+
preventClick: this.animater.forceStopped
|
|
1310
|
+
};
|
|
1311
|
+
if (this.hooks.trigger(this.hooks.eventTypes.checkClick))
|
|
1312
|
+
return this.animater.setForceStopped(!1), !0;
|
|
1313
|
+
if (!e.preventClick) {
|
|
1314
|
+
var o = this.options.dblclick, i = !1;
|
|
1315
|
+
if (o && this.lastClickTime) {
|
|
1316
|
+
var s = o.delay, n = s === void 0 ? 300 : s;
|
|
1317
|
+
S() - this.lastClickTime < n && (i = !0, jt(t));
|
|
1318
|
+
}
|
|
1319
|
+
return this.options.tap && Zt(t, this.options.tap), this.options.click && !I(t.target, this.options.preventDefaultException) && Bt(t), this.lastClickTime = i ? null : S(), !0;
|
|
1320
|
+
}
|
|
1321
|
+
return !1;
|
|
1322
|
+
}, r.prototype.resize = function() {
|
|
1323
|
+
var t = this;
|
|
1324
|
+
this.actions.enabled && (zt && (this.wrapper.scrollTop = 0), clearTimeout(this.resizeTimeout), this.resizeTimeout = window.setTimeout(function() {
|
|
1325
|
+
t.hooks.trigger(t.hooks.eventTypes.resize);
|
|
1326
|
+
}, this.options.resizePolling));
|
|
1327
|
+
}, r.prototype.transitionEnd = function(t) {
|
|
1328
|
+
if (!(t.target !== this.content || !this.animater.pending)) {
|
|
1329
|
+
var e = this.animater;
|
|
1330
|
+
e.transitionTime(), this.resetPosition(this.options.bounceTime, y.bounce) || (this.animater.setPending(!1), this.options.probeType !== 3 && this.hooks.trigger(this.hooks.eventTypes.scrollEnd, this.getCurrentPos()));
|
|
1331
|
+
}
|
|
1332
|
+
}, r.prototype.togglePointerEvents = function(t) {
|
|
1333
|
+
t === void 0 && (t = !0);
|
|
1334
|
+
for (var e = this.content.children.length ? this.content.children : [this.content], o = t ? "auto" : "none", i = 0; i < e.length; i++) {
|
|
1335
|
+
var s = e[i];
|
|
1336
|
+
s.isBScrollContainer || (s.style.pointerEvents = o);
|
|
1337
|
+
}
|
|
1338
|
+
}, r.prototype.refresh = function(t) {
|
|
1339
|
+
var e = this.setContent(t);
|
|
1340
|
+
this.hooks.trigger(this.hooks.eventTypes.beforeRefresh), this.scrollBehaviorX.refresh(t), this.scrollBehaviorY.refresh(t), e && (this.translater.setContent(t), this.animater.setContent(t), this.transitionEndRegister.destroy(), this.registerTransitionEnd(), this.options.bindToTarget && this.actionsHandler.setContent(t)), this.actions.refresh(), this.wrapperOffset = pt(this.wrapper);
|
|
1341
|
+
}, r.prototype.setContent = function(t) {
|
|
1342
|
+
var e = t !== this.content;
|
|
1343
|
+
return e && (this.content = t), e;
|
|
1344
|
+
}, r.prototype.scrollBy = function(t, e, o, i) {
|
|
1345
|
+
o === void 0 && (o = 0);
|
|
1346
|
+
var s = this.getCurrentPos(), n = s.x, a = s.y;
|
|
1347
|
+
i = i || y.bounce, t += n, e += a, this.scrollTo(t, e, o, i);
|
|
1348
|
+
}, r.prototype.scrollTo = function(t, e, o, i, s) {
|
|
1349
|
+
o === void 0 && (o = 0), i === void 0 && (i = y.bounce), s === void 0 && (s = {
|
|
1350
|
+
start: {},
|
|
1351
|
+
end: {}
|
|
1352
|
+
});
|
|
1353
|
+
var n = this.options.useTransition ? i.style : i.fn, a = this.getCurrentPos(), h = b({ x: a.x, y: a.y }, s.start), l = b({
|
|
1354
|
+
x: t,
|
|
1355
|
+
y: e
|
|
1356
|
+
}, s.end);
|
|
1357
|
+
if (this.hooks.trigger(this.hooks.eventTypes.scrollTo, l), !me(h, l)) {
|
|
1358
|
+
var c = Math.abs(l.x - h.x), p = Math.abs(l.y - h.y);
|
|
1359
|
+
c < yt && p < yt && (o = 0, this.hooks.trigger(this.hooks.eventTypes.minDistanceScroll)), this.animater.move(h, l, o, n);
|
|
1360
|
+
}
|
|
1361
|
+
}, r.prototype.scrollToElement = function(t, e, o, i, s) {
|
|
1362
|
+
var n = Et(t), a = pt(n), h = function(c, p, u) {
|
|
1363
|
+
return typeof c == "number" ? c : c ? Math.round(p / 2 - u / 2) : 0;
|
|
1364
|
+
};
|
|
1365
|
+
o = h(o, n.offsetWidth, this.wrapper.offsetWidth), i = h(i, n.offsetHeight, this.wrapper.offsetHeight);
|
|
1366
|
+
var l = function(c, p, u, f) {
|
|
1367
|
+
return c -= p, c = f.adjustPosition(c - u), c;
|
|
1368
|
+
};
|
|
1369
|
+
a.left = l(a.left, this.wrapperOffset.left, o, this.scrollBehaviorX), a.top = l(a.top, this.wrapperOffset.top, i, this.scrollBehaviorY), !this.hooks.trigger(this.hooks.eventTypes.scrollToElement, n, a) && this.scrollTo(a.left, a.top, e, s);
|
|
1370
|
+
}, r.prototype.resetPosition = function(t, e) {
|
|
1371
|
+
t === void 0 && (t = 0), e === void 0 && (e = y.bounce);
|
|
1372
|
+
var o = this.scrollBehaviorX.checkInBoundary(), i = o.position, s = o.inBoundary, n = this.scrollBehaviorY.checkInBoundary(), a = n.position, h = n.inBoundary;
|
|
1373
|
+
return s && h ? !1 : (Lt && this.reflow(), this.scrollTo(i, a, t, e), !0);
|
|
1374
|
+
}, r.prototype.reflow = function() {
|
|
1375
|
+
this._reflow = this.content.offsetHeight;
|
|
1376
|
+
}, r.prototype.updatePositions = function(t) {
|
|
1377
|
+
this.scrollBehaviorX.updatePosition(t.x), this.scrollBehaviorY.updatePosition(t.y);
|
|
1378
|
+
}, r.prototype.getCurrentPos = function() {
|
|
1379
|
+
return this.actions.getCurrentPos();
|
|
1380
|
+
}, r.prototype.enable = function() {
|
|
1381
|
+
this.actions.enabled = !0;
|
|
1382
|
+
}, r.prototype.disable = function() {
|
|
1383
|
+
B(this.animater.timer), this.actions.enabled = !1;
|
|
1384
|
+
}, r.prototype.destroy = function() {
|
|
1385
|
+
var t = this, e = [
|
|
1386
|
+
"resizeRegister",
|
|
1387
|
+
"transitionEndRegister",
|
|
1388
|
+
"actionsHandler",
|
|
1389
|
+
"actions",
|
|
1390
|
+
"hooks",
|
|
1391
|
+
"animater",
|
|
1392
|
+
"translater",
|
|
1393
|
+
"scrollBehaviorX",
|
|
1394
|
+
"scrollBehaviorY"
|
|
1395
|
+
];
|
|
1396
|
+
e.forEach(function(o) {
|
|
1397
|
+
return t[o].destroy();
|
|
1398
|
+
});
|
|
1399
|
+
}, r;
|
|
1400
|
+
}()
|
|
1401
|
+
), $ = (
|
|
1402
|
+
/** @class */
|
|
1403
|
+
function(r) {
|
|
1404
|
+
V(t, r);
|
|
1405
|
+
function t(e, o) {
|
|
1406
|
+
var i = r.call(this, [
|
|
1407
|
+
"refresh",
|
|
1408
|
+
"contentChanged",
|
|
1409
|
+
"enable",
|
|
1410
|
+
"disable",
|
|
1411
|
+
"beforeScrollStart",
|
|
1412
|
+
"scrollStart",
|
|
1413
|
+
"scroll",
|
|
1414
|
+
"scrollEnd",
|
|
1415
|
+
"scrollCancel",
|
|
1416
|
+
"touchEnd",
|
|
1417
|
+
"flick",
|
|
1418
|
+
"destroy"
|
|
1419
|
+
]) || this, s = Et(e);
|
|
1420
|
+
return s ? (i.plugins = {}, i.options = new ne().merge(o).process(), i.setContent(s).valid && (i.hooks = new E([
|
|
1421
|
+
"refresh",
|
|
1422
|
+
"enable",
|
|
1423
|
+
"disable",
|
|
1424
|
+
"destroy",
|
|
1425
|
+
"beforeInitialScrollTo",
|
|
1426
|
+
"contentChanged"
|
|
1427
|
+
]), i.init(s)), i) : (P("Can not resolve the wrapper DOM."), i);
|
|
1428
|
+
}
|
|
1429
|
+
return t.use = function(e) {
|
|
1430
|
+
var o = e.pluginName, i = t.plugins.some(function(s) {
|
|
1431
|
+
return e === s.ctor;
|
|
1432
|
+
});
|
|
1433
|
+
return i ? t : st(o) ? (P("Plugin Class must specify plugin's name in static property by 'pluginName' field."), t) : (t.pluginsMap[o] = !0, t.plugins.push({
|
|
1434
|
+
name: o,
|
|
1435
|
+
applyOrder: e.applyOrder,
|
|
1436
|
+
ctor: e
|
|
1437
|
+
}), t);
|
|
1438
|
+
}, t.prototype.setContent = function(e) {
|
|
1439
|
+
var o = !1, i = !0, s = e.children[this.options.specifiedIndexAsContent];
|
|
1440
|
+
return s ? (o = this.content !== s, o && (this.content = s)) : (P("The wrapper need at least one child element to be content element to scroll."), i = !1), {
|
|
1441
|
+
valid: i,
|
|
1442
|
+
contentChanged: o
|
|
1443
|
+
};
|
|
1444
|
+
}, t.prototype.init = function(e) {
|
|
1445
|
+
var o = this;
|
|
1446
|
+
this.wrapper = e, e.isBScrollContainer = !0, this.scroller = new ke(e, this.content, this.options), this.scroller.hooks.on(this.scroller.hooks.eventTypes.resize, function() {
|
|
1447
|
+
o.refresh();
|
|
1448
|
+
}), this.eventBubbling(), this.handleAutoBlur(), this.enable(), this.proxy(Ct), this.applyPlugins(), this.refreshWithoutReset(this.content);
|
|
1449
|
+
var i = this.options, s = i.startX, n = i.startY, a = {
|
|
1450
|
+
x: s,
|
|
1451
|
+
y: n
|
|
1452
|
+
};
|
|
1453
|
+
this.hooks.trigger(this.hooks.eventTypes.beforeInitialScrollTo, a) || this.scroller.scrollTo(a.x, a.y);
|
|
1454
|
+
}, t.prototype.applyPlugins = function() {
|
|
1455
|
+
var e = this, o = this.options;
|
|
1456
|
+
t.plugins.sort(function(i, s) {
|
|
1457
|
+
var n, a = (n = {}, n.pre = -1, n.post = 1, n), h = i.applyOrder ? a[i.applyOrder] : 0, l = s.applyOrder ? a[s.applyOrder] : 0;
|
|
1458
|
+
return h - l;
|
|
1459
|
+
}).forEach(function(i) {
|
|
1460
|
+
var s = i.ctor;
|
|
1461
|
+
o[i.name] && typeof s == "function" && (e.plugins[i.name] = new s(e));
|
|
1462
|
+
});
|
|
1463
|
+
}, t.prototype.handleAutoBlur = function() {
|
|
1464
|
+
this.options.autoBlur && this.on(this.eventTypes.beforeScrollStart, function() {
|
|
1465
|
+
var e = document.activeElement;
|
|
1466
|
+
e && (e.tagName === "INPUT" || e.tagName === "TEXTAREA") && e.blur();
|
|
1467
|
+
});
|
|
1468
|
+
}, t.prototype.eventBubbling = function() {
|
|
1469
|
+
nt(this.scroller.hooks, this, [
|
|
1470
|
+
this.eventTypes.beforeScrollStart,
|
|
1471
|
+
this.eventTypes.scrollStart,
|
|
1472
|
+
this.eventTypes.scroll,
|
|
1473
|
+
this.eventTypes.scrollEnd,
|
|
1474
|
+
this.eventTypes.scrollCancel,
|
|
1475
|
+
this.eventTypes.touchEnd,
|
|
1476
|
+
this.eventTypes.flick
|
|
1477
|
+
]);
|
|
1478
|
+
}, t.prototype.refreshWithoutReset = function(e) {
|
|
1479
|
+
this.scroller.refresh(e), this.hooks.trigger(this.hooks.eventTypes.refresh, e), this.trigger(this.eventTypes.refresh, e);
|
|
1480
|
+
}, t.prototype.proxy = function(e) {
|
|
1481
|
+
var o = this;
|
|
1482
|
+
e.forEach(function(i) {
|
|
1483
|
+
var s = i.key, n = i.sourceKey;
|
|
1484
|
+
ie(o, n, s);
|
|
1485
|
+
});
|
|
1486
|
+
}, t.prototype.refresh = function() {
|
|
1487
|
+
var e = this.setContent(this.wrapper), o = e.contentChanged, i = e.valid;
|
|
1488
|
+
if (i) {
|
|
1489
|
+
var s = this.content;
|
|
1490
|
+
this.refreshWithoutReset(s), o && (this.hooks.trigger(this.hooks.eventTypes.contentChanged, s), this.trigger(this.eventTypes.contentChanged, s)), this.scroller.resetPosition();
|
|
1491
|
+
}
|
|
1492
|
+
}, t.prototype.enable = function() {
|
|
1493
|
+
this.scroller.enable(), this.hooks.trigger(this.hooks.eventTypes.enable), this.trigger(this.eventTypes.enable);
|
|
1494
|
+
}, t.prototype.disable = function() {
|
|
1495
|
+
this.scroller.disable(), this.hooks.trigger(this.hooks.eventTypes.disable), this.trigger(this.eventTypes.disable);
|
|
1496
|
+
}, t.prototype.destroy = function() {
|
|
1497
|
+
this.hooks.trigger(this.hooks.eventTypes.destroy), this.trigger(this.eventTypes.destroy), this.scroller.destroy();
|
|
1498
|
+
}, t.prototype.eventRegister = function(e) {
|
|
1499
|
+
this.registerType(e);
|
|
1500
|
+
}, t.plugins = [], t.pluginsMap = {}, t;
|
|
1501
|
+
}(E)
|
|
1502
|
+
);
|
|
1503
|
+
function Z(r, t) {
|
|
1504
|
+
var e = new $(r, t);
|
|
1505
|
+
return e;
|
|
1506
|
+
}
|
|
1507
|
+
Z.use = $.use;
|
|
1508
|
+
Z.plugins = $.plugins;
|
|
1509
|
+
Z.pluginsMap = $.pluginsMap;
|
|
1510
|
+
var Te = Z, Se = (
|
|
1511
|
+
/** @class */
|
|
1512
|
+
function() {
|
|
1513
|
+
function r(t) {
|
|
1514
|
+
this.scroll = t, this.wheelEndTimer = 0, this.wheelMoveTimer = 0, this.wheelStart = !1, this.init();
|
|
1515
|
+
}
|
|
1516
|
+
return r.prototype.init = function() {
|
|
1517
|
+
this.handleBScroll(), this.handleOptions(), this.handleHooks(), this.registerEvent();
|
|
1518
|
+
}, r.prototype.handleBScroll = function() {
|
|
1519
|
+
this.scroll.registerType([
|
|
1520
|
+
"alterOptions",
|
|
1521
|
+
"mousewheelStart",
|
|
1522
|
+
"mousewheelMove",
|
|
1523
|
+
"mousewheelEnd"
|
|
1524
|
+
]);
|
|
1525
|
+
}, r.prototype.handleOptions = function() {
|
|
1526
|
+
var t = this.scroll.options.mouseWheel === !0 ? {} : this.scroll.options.mouseWheel, e = {
|
|
1527
|
+
speed: 20,
|
|
1528
|
+
invert: !1,
|
|
1529
|
+
easeTime: 300,
|
|
1530
|
+
discreteTime: 400,
|
|
1531
|
+
throttleTime: 0,
|
|
1532
|
+
dampingFactor: 0.1
|
|
1533
|
+
};
|
|
1534
|
+
this.mouseWheelOpt = m(e, t);
|
|
1535
|
+
}, r.prototype.handleHooks = function() {
|
|
1536
|
+
this.hooksFn = [], this.registerHooks(this.scroll.hooks, "destroy", this.destroy);
|
|
1537
|
+
}, r.prototype.registerEvent = function() {
|
|
1538
|
+
this.eventRegister = new T(this.scroll.scroller.wrapper, [
|
|
1539
|
+
{
|
|
1540
|
+
name: "wheel",
|
|
1541
|
+
handler: this.wheelHandler.bind(this)
|
|
1542
|
+
},
|
|
1543
|
+
{
|
|
1544
|
+
name: "mousewheel",
|
|
1545
|
+
handler: this.wheelHandler.bind(this)
|
|
1546
|
+
},
|
|
1547
|
+
{
|
|
1548
|
+
name: "DOMMouseScroll",
|
|
1549
|
+
handler: this.wheelHandler.bind(this)
|
|
1550
|
+
}
|
|
1551
|
+
]);
|
|
1552
|
+
}, r.prototype.registerHooks = function(t, e, o) {
|
|
1553
|
+
t.on(e, o, this), this.hooksFn.push([t, e, o]);
|
|
1554
|
+
}, r.prototype.wheelHandler = function(t) {
|
|
1555
|
+
if (this.scroll.enabled) {
|
|
1556
|
+
this.beforeHandler(t), this.wheelStart || (this.wheelStartHandler(t), this.wheelStart = !0);
|
|
1557
|
+
var e = this.getWheelDelta(t);
|
|
1558
|
+
this.wheelMoveHandler(e), this.wheelEndDetector(e);
|
|
1559
|
+
}
|
|
1560
|
+
}, r.prototype.wheelStartHandler = function(t) {
|
|
1561
|
+
this.cleanCache();
|
|
1562
|
+
var e = this.scroll.scroller, o = e.scrollBehaviorX, i = e.scrollBehaviorY;
|
|
1563
|
+
o.setMovingDirection(
|
|
1564
|
+
0
|
|
1565
|
+
/* Default */
|
|
1566
|
+
), i.setMovingDirection(
|
|
1567
|
+
0
|
|
1568
|
+
/* Default */
|
|
1569
|
+
), o.setDirection(
|
|
1570
|
+
0
|
|
1571
|
+
/* Default */
|
|
1572
|
+
), i.setDirection(
|
|
1573
|
+
0
|
|
1574
|
+
/* Default */
|
|
1575
|
+
), this.scroll.trigger(this.scroll.eventTypes.alterOptions, this.mouseWheelOpt), this.scroll.trigger(this.scroll.eventTypes.mousewheelStart);
|
|
1576
|
+
}, r.prototype.cleanCache = function() {
|
|
1577
|
+
this.deltaCache = [];
|
|
1578
|
+
}, r.prototype.wheelMoveHandler = function(t) {
|
|
1579
|
+
var e = this, o = this.mouseWheelOpt, i = o.throttleTime, s = o.dampingFactor;
|
|
1580
|
+
if (i && this.wheelMoveTimer)
|
|
1581
|
+
this.deltaCache.push(t);
|
|
1582
|
+
else {
|
|
1583
|
+
var n = this.deltaCache.reduce(function(f, v) {
|
|
1584
|
+
return {
|
|
1585
|
+
x: f.x + v.x,
|
|
1586
|
+
y: f.y + v.y
|
|
1587
|
+
};
|
|
1588
|
+
}, { x: 0, y: 0 });
|
|
1589
|
+
this.cleanCache();
|
|
1590
|
+
var a = this.scroll.scroller, h = a.scrollBehaviorX, l = a.scrollBehaviorY;
|
|
1591
|
+
h.setMovingDirection(-t.directionX), l.setMovingDirection(-t.directionY), h.setDirection(t.x), l.setDirection(t.y);
|
|
1592
|
+
var c = h.performDampingAlgorithm(Math.round(t.x) + n.x, s), p = l.performDampingAlgorithm(Math.round(t.y) + n.x, s);
|
|
1593
|
+
if (!this.scroll.trigger(this.scroll.eventTypes.mousewheelMove, {
|
|
1594
|
+
x: c,
|
|
1595
|
+
y: p
|
|
1596
|
+
})) {
|
|
1597
|
+
var u = this.getEaseTime();
|
|
1598
|
+
(c !== this.scroll.x || p !== this.scroll.y) && this.scroll.scrollTo(c, p, u);
|
|
1599
|
+
}
|
|
1600
|
+
i && (this.wheelMoveTimer = window.setTimeout(function() {
|
|
1601
|
+
e.wheelMoveTimer = 0;
|
|
1602
|
+
}, i));
|
|
1603
|
+
}
|
|
1604
|
+
}, r.prototype.wheelEndDetector = function(t) {
|
|
1605
|
+
var e = this;
|
|
1606
|
+
window.clearTimeout(this.wheelEndTimer), this.wheelEndTimer = window.setTimeout(function() {
|
|
1607
|
+
e.wheelStart = !1, window.clearTimeout(e.wheelMoveTimer), e.wheelMoveTimer = 0, e.scroll.trigger(e.scroll.eventTypes.mousewheelEnd, t);
|
|
1608
|
+
}, this.mouseWheelOpt.discreteTime);
|
|
1609
|
+
}, r.prototype.getWheelDelta = function(t) {
|
|
1610
|
+
var e = this.mouseWheelOpt, o = e.speed, i = e.invert, s = 0, n = 0, a = i ? -1 : 1;
|
|
1611
|
+
switch (!0) {
|
|
1612
|
+
case "deltaX" in t:
|
|
1613
|
+
t.deltaMode === 1 ? (s = -t.deltaX * o, n = -t.deltaY * o) : (s = -t.deltaX, n = -t.deltaY);
|
|
1614
|
+
break;
|
|
1615
|
+
case "wheelDeltaX" in t:
|
|
1616
|
+
s = t.wheelDeltaX / 120 * o, n = t.wheelDeltaY / 120 * o;
|
|
1617
|
+
break;
|
|
1618
|
+
case "wheelDelta" in t:
|
|
1619
|
+
s = n = t.wheelDelta / 120 * o;
|
|
1620
|
+
break;
|
|
1621
|
+
case "detail" in t:
|
|
1622
|
+
s = n = -t.detail / 3 * o;
|
|
1623
|
+
break;
|
|
1624
|
+
}
|
|
1625
|
+
s *= a, n *= a, this.scroll.hasVerticalScroll || (Math.abs(n) > Math.abs(s) && (s = n), n = 0), this.scroll.hasHorizontalScroll || (s = 0);
|
|
1626
|
+
var h = s > 0 ? -1 : s < 0 ? 1 : 0, l = n > 0 ? -1 : n < 0 ? 1 : 0;
|
|
1627
|
+
return {
|
|
1628
|
+
x: s,
|
|
1629
|
+
y: n,
|
|
1630
|
+
directionX: h,
|
|
1631
|
+
directionY: l
|
|
1632
|
+
};
|
|
1633
|
+
}, r.prototype.beforeHandler = function(t) {
|
|
1634
|
+
var e = this.scroll.options, o = e.preventDefault, i = e.stopPropagation, s = e.preventDefaultException;
|
|
1635
|
+
o && !I(t.target, s) && X(t), i && t.stopPropagation();
|
|
1636
|
+
}, r.prototype.getEaseTime = function() {
|
|
1637
|
+
var t = 100, e = this.mouseWheelOpt.easeTime;
|
|
1638
|
+
return e < t && P("easeTime should be greater than 100.If mouseWheel easeTime is too small,scrollEnd will be triggered many times."), Math.max(e, t);
|
|
1639
|
+
}, r.prototype.destroy = function() {
|
|
1640
|
+
this.eventRegister.destroy(), window.clearTimeout(this.wheelEndTimer), window.clearTimeout(this.wheelMoveTimer), this.hooksFn.forEach(function(t) {
|
|
1641
|
+
var e = t[0], o = t[1], i = t[2];
|
|
1642
|
+
e.off(o, i);
|
|
1643
|
+
});
|
|
1644
|
+
}, r.pluginName = "mouseWheel", r.applyOrder = "pre", r;
|
|
1645
|
+
}()
|
|
1646
|
+
), Pe = (
|
|
1647
|
+
/** @class */
|
|
1648
|
+
function() {
|
|
1649
|
+
function r(t) {
|
|
1650
|
+
this.scroll = t, this.stopObserver = !1, this.init();
|
|
1651
|
+
}
|
|
1652
|
+
return r.prototype.init = function() {
|
|
1653
|
+
this.handleMutationObserver(), this.handleHooks();
|
|
1654
|
+
}, r.prototype.handleMutationObserver = function() {
|
|
1655
|
+
var t = this;
|
|
1656
|
+
if (typeof MutationObserver < "u") {
|
|
1657
|
+
var e = 0;
|
|
1658
|
+
this.observer = new MutationObserver(function(o) {
|
|
1659
|
+
t.mutationObserverHandler(o, e);
|
|
1660
|
+
}), this.startObserve(this.observer);
|
|
1661
|
+
} else
|
|
1662
|
+
this.checkDOMUpdate();
|
|
1663
|
+
}, r.prototype.handleHooks = function() {
|
|
1664
|
+
var t = this;
|
|
1665
|
+
this.hooksFn = [], this.registerHooks(this.scroll.hooks, this.scroll.hooks.eventTypes.contentChanged, function() {
|
|
1666
|
+
t.stopObserve(), t.handleMutationObserver();
|
|
1667
|
+
}), this.registerHooks(this.scroll.hooks, this.scroll.hooks.eventTypes.enable, function() {
|
|
1668
|
+
t.stopObserver && t.handleMutationObserver();
|
|
1669
|
+
}), this.registerHooks(this.scroll.hooks, this.scroll.hooks.eventTypes.disable, function() {
|
|
1670
|
+
t.stopObserve();
|
|
1671
|
+
}), this.registerHooks(this.scroll.hooks, this.scroll.hooks.eventTypes.destroy, function() {
|
|
1672
|
+
t.destroy();
|
|
1673
|
+
});
|
|
1674
|
+
}, r.prototype.mutationObserverHandler = function(t, e) {
|
|
1675
|
+
var o = this;
|
|
1676
|
+
if (!this.shouldNotRefresh()) {
|
|
1677
|
+
for (var i = !1, s = !1, n = 0; n < t.length; n++) {
|
|
1678
|
+
var a = t[n];
|
|
1679
|
+
if (a.type !== "attributes") {
|
|
1680
|
+
i = !0;
|
|
1681
|
+
break;
|
|
1682
|
+
} else if (a.target !== this.scroll.scroller.content) {
|
|
1683
|
+
s = !0;
|
|
1684
|
+
break;
|
|
1685
|
+
}
|
|
1686
|
+
}
|
|
1687
|
+
i ? this.scroll.refresh() : s && (clearTimeout(e), e = window.setTimeout(function() {
|
|
1688
|
+
o.shouldNotRefresh() || o.scroll.refresh();
|
|
1689
|
+
}, 60));
|
|
1690
|
+
}
|
|
1691
|
+
}, r.prototype.startObserve = function(t) {
|
|
1692
|
+
var e = {
|
|
1693
|
+
attributes: !0,
|
|
1694
|
+
childList: !0,
|
|
1695
|
+
subtree: !0
|
|
1696
|
+
};
|
|
1697
|
+
t.observe(this.scroll.scroller.content, e);
|
|
1698
|
+
}, r.prototype.shouldNotRefresh = function() {
|
|
1699
|
+
var t = this.scroll.scroller, e = t.scrollBehaviorX, o = t.scrollBehaviorY, i = e.currentPos > e.minScrollPos || e.currentPos < e.maxScrollPos || o.currentPos > o.minScrollPos || o.currentPos < o.maxScrollPos;
|
|
1700
|
+
return t.animater.pending || i;
|
|
1701
|
+
}, r.prototype.checkDOMUpdate = function() {
|
|
1702
|
+
var t = this, e = this.scroll.scroller.content, o = D(e), i = o.width, s = o.height, n = function() {
|
|
1703
|
+
if (!t.stopObserver) {
|
|
1704
|
+
o = D(e);
|
|
1705
|
+
var h = o.width, l = o.height;
|
|
1706
|
+
(i !== h || s !== l) && t.scroll.refresh(), i = h, s = l, a();
|
|
1707
|
+
}
|
|
1708
|
+
}, a = function() {
|
|
1709
|
+
setTimeout(function() {
|
|
1710
|
+
n();
|
|
1711
|
+
}, 1e3);
|
|
1712
|
+
};
|
|
1713
|
+
a();
|
|
1714
|
+
}, r.prototype.registerHooks = function(t, e, o) {
|
|
1715
|
+
t.on(e, o, this), this.hooksFn.push([t, e, o]);
|
|
1716
|
+
}, r.prototype.stopObserve = function() {
|
|
1717
|
+
this.stopObserver = !0, this.observer && this.observer.disconnect();
|
|
1718
|
+
}, r.prototype.destroy = function() {
|
|
1719
|
+
this.stopObserve(), this.hooksFn.forEach(function(t) {
|
|
1720
|
+
var e = t[0], o = t[1], i = t[2];
|
|
1721
|
+
e.off(o, i);
|
|
1722
|
+
}), this.hooksFn.length = 0;
|
|
1723
|
+
}, r.pluginName = "observeDOM", r;
|
|
1724
|
+
}()
|
|
1725
|
+
), be = "plugins.pullDownRefresh", we = [
|
|
1726
|
+
{
|
|
1727
|
+
key: "finishPullDown",
|
|
1728
|
+
name: "finishPullDown"
|
|
1729
|
+
},
|
|
1730
|
+
{
|
|
1731
|
+
key: "openPullDown",
|
|
1732
|
+
name: "openPullDown"
|
|
1733
|
+
},
|
|
1734
|
+
{
|
|
1735
|
+
key: "closePullDown",
|
|
1736
|
+
name: "closePullDown"
|
|
1737
|
+
},
|
|
1738
|
+
{
|
|
1739
|
+
key: "autoPullDownRefresh",
|
|
1740
|
+
name: "autoPullDownRefresh"
|
|
1741
|
+
}
|
|
1742
|
+
], xe = we.map(function(r) {
|
|
1743
|
+
return {
|
|
1744
|
+
key: r.key,
|
|
1745
|
+
sourceKey: be + "." + r.name
|
|
1746
|
+
};
|
|
1747
|
+
}), et = "pullingDown", mt = "enterThreshold", kt = "leaveThreshold", Ee = (
|
|
1748
|
+
/** @class */
|
|
1749
|
+
function() {
|
|
1750
|
+
function r(t) {
|
|
1751
|
+
this.scroll = t, this.pulling = 0, this.thresholdBoundary = 0, this.init();
|
|
1752
|
+
}
|
|
1753
|
+
return r.prototype.setPulling = function(t) {
|
|
1754
|
+
this.pulling = t;
|
|
1755
|
+
}, r.prototype.setThresholdBoundary = function(t) {
|
|
1756
|
+
this.thresholdBoundary = t;
|
|
1757
|
+
}, r.prototype.init = function() {
|
|
1758
|
+
this.handleBScroll(), this.handleOptions(this.scroll.options.pullDownRefresh), this.handleHooks(), this.watch();
|
|
1759
|
+
}, r.prototype.handleBScroll = function() {
|
|
1760
|
+
this.scroll.registerType([
|
|
1761
|
+
et,
|
|
1762
|
+
mt,
|
|
1763
|
+
kt
|
|
1764
|
+
]), this.scroll.proxy(xe);
|
|
1765
|
+
}, r.prototype.handleOptions = function(t) {
|
|
1766
|
+
t === void 0 && (t = {}), t = t === !0 ? {} : t;
|
|
1767
|
+
var e = {
|
|
1768
|
+
threshold: 90,
|
|
1769
|
+
stop: 40
|
|
1770
|
+
};
|
|
1771
|
+
this.options = m(e, t), this.scroll.options.probeType = 3;
|
|
1772
|
+
}, r.prototype.handleHooks = function() {
|
|
1773
|
+
var t = this;
|
|
1774
|
+
this.hooksFn = [];
|
|
1775
|
+
var e = this.scroll.scroller, o = e.scrollBehaviorY;
|
|
1776
|
+
this.currentMinScrollY = this.cachedOriginanMinScrollY = o.minScrollPos, this.registerHooks(this.scroll.hooks, this.scroll.hooks.eventTypes.contentChanged, function() {
|
|
1777
|
+
t.finishPullDown();
|
|
1778
|
+
}), this.registerHooks(o.hooks, o.hooks.eventTypes.computeBoundary, function(i) {
|
|
1779
|
+
i.maxScrollPos > 0 && (i.maxScrollPos = -1), i.minScrollPos = t.currentMinScrollY;
|
|
1780
|
+
}), this.hasMouseWheelPlugin() && (this.registerHooks(this.scroll, this.scroll.eventTypes.alterOptions, function(i) {
|
|
1781
|
+
var s = 300, n = 350;
|
|
1782
|
+
i.discreteTime = s, i.easeTime = n;
|
|
1783
|
+
}), this.registerHooks(this.scroll, this.scroll.eventTypes.mousewheelEnd, function() {
|
|
1784
|
+
e.hooks.trigger(e.hooks.eventTypes.end);
|
|
1785
|
+
}));
|
|
1786
|
+
}, r.prototype.registerHooks = function(t, e, o) {
|
|
1787
|
+
t.on(e, o, this), this.hooksFn.push([t, e, o]);
|
|
1788
|
+
}, r.prototype.hasMouseWheelPlugin = function() {
|
|
1789
|
+
return !!this.scroll.eventTypes.alterOptions;
|
|
1790
|
+
}, r.prototype.watch = function() {
|
|
1791
|
+
var t = this.scroll.scroller;
|
|
1792
|
+
this.watching = !0, this.registerHooks(t.hooks, t.hooks.eventTypes.end, this.checkPullDown), this.registerHooks(this.scroll, this.scroll.eventTypes.scrollStart, this.resetStateBeforeScrollStart), this.registerHooks(this.scroll, this.scroll.eventTypes.scroll, this.checkLocationOfThresholdBoundary), this.hasMouseWheelPlugin() && this.registerHooks(this.scroll, this.scroll.eventTypes.mousewheelStart, this.resetStateBeforeScrollStart);
|
|
1793
|
+
}, r.prototype.resetStateBeforeScrollStart = function() {
|
|
1794
|
+
this.isFetchingStatus() || (this.setPulling(
|
|
1795
|
+
1
|
|
1796
|
+
/* MOVING */
|
|
1797
|
+
), this.setThresholdBoundary(
|
|
1798
|
+
0
|
|
1799
|
+
/* DEFAULT */
|
|
1800
|
+
));
|
|
1801
|
+
}, r.prototype.checkLocationOfThresholdBoundary = function() {
|
|
1802
|
+
if (this.pulling === 1) {
|
|
1803
|
+
var t = this.scroll, e = this.thresholdBoundary !== 1 && this.locateInsideThresholdBoundary(), o = this.thresholdBoundary !== 2 && !this.locateInsideThresholdBoundary();
|
|
1804
|
+
e && (this.setThresholdBoundary(
|
|
1805
|
+
1
|
|
1806
|
+
/* INSIDE */
|
|
1807
|
+
), t.trigger(mt)), o && (this.setThresholdBoundary(
|
|
1808
|
+
2
|
|
1809
|
+
/* OUTSIDE */
|
|
1810
|
+
), t.trigger(kt));
|
|
1811
|
+
}
|
|
1812
|
+
}, r.prototype.locateInsideThresholdBoundary = function() {
|
|
1813
|
+
return this.scroll.y <= this.options.threshold;
|
|
1814
|
+
}, r.prototype.unwatch = function() {
|
|
1815
|
+
var t = this.scroll, e = t.scroller;
|
|
1816
|
+
this.watching = !1, e.hooks.off(e.hooks.eventTypes.end, this.checkPullDown), t.off(t.eventTypes.scrollStart, this.resetStateBeforeScrollStart), t.off(t.eventTypes.scroll, this.checkLocationOfThresholdBoundary), this.hasMouseWheelPlugin() && t.off(t.eventTypes.mousewheelStart, this.resetStateBeforeScrollStart);
|
|
1817
|
+
}, r.prototype.checkPullDown = function() {
|
|
1818
|
+
var t = this.options, e = t.threshold, o = t.stop;
|
|
1819
|
+
return this.scroll.y < e ? !1 : (this.pulling === 1 && (this.modifyBehaviorYBoundary(o), this.setPulling(
|
|
1820
|
+
2
|
|
1821
|
+
/* FETCHING */
|
|
1822
|
+
), this.scroll.trigger(et)), this.scroll.scrollTo(this.scroll.x, o, this.scroll.options.bounceTime, y.bounce), this.isFetchingStatus());
|
|
1823
|
+
}, r.prototype.isFetchingStatus = function() {
|
|
1824
|
+
return this.pulling === 2;
|
|
1825
|
+
}, r.prototype.modifyBehaviorYBoundary = function(t) {
|
|
1826
|
+
var e = this.scroll.scroller.scrollBehaviorY;
|
|
1827
|
+
this.cachedOriginanMinScrollY = e.minScrollPos, this.currentMinScrollY = t, e.computeBoundary();
|
|
1828
|
+
}, r.prototype.finishPullDown = function() {
|
|
1829
|
+
if (this.isFetchingStatus()) {
|
|
1830
|
+
var t = this.scroll.scroller.scrollBehaviorY;
|
|
1831
|
+
this.currentMinScrollY = this.cachedOriginanMinScrollY, t.computeBoundary(), this.setPulling(
|
|
1832
|
+
0
|
|
1833
|
+
/* DEFAULT */
|
|
1834
|
+
), this.scroll.resetPosition(this.scroll.options.bounceTime, y.bounce);
|
|
1835
|
+
}
|
|
1836
|
+
}, r.prototype.openPullDown = function(t) {
|
|
1837
|
+
t === void 0 && (t = {}), this.handleOptions(t), this.watching || this.watch();
|
|
1838
|
+
}, r.prototype.closePullDown = function() {
|
|
1839
|
+
this.unwatch();
|
|
1840
|
+
}, r.prototype.autoPullDownRefresh = function() {
|
|
1841
|
+
var t = this.options, e = t.threshold, o = t.stop;
|
|
1842
|
+
this.isFetchingStatus() || !this.watching || (this.modifyBehaviorYBoundary(o), this.scroll.trigger(this.scroll.eventTypes.scrollStart), this.scroll.scrollTo(this.scroll.x, e), this.setPulling(
|
|
1843
|
+
2
|
|
1844
|
+
/* FETCHING */
|
|
1845
|
+
), this.scroll.trigger(et), this.scroll.scrollTo(this.scroll.x, o, this.scroll.options.bounceTime, y.bounce));
|
|
1846
|
+
}, r.pluginName = "pullDownRefresh", r;
|
|
1847
|
+
}()
|
|
1848
|
+
), Me = "plugins.pullUpLoad", Be = [
|
|
1849
|
+
{
|
|
1850
|
+
key: "finishPullUp",
|
|
1851
|
+
name: "finishPullUp"
|
|
1852
|
+
},
|
|
1853
|
+
{
|
|
1854
|
+
key: "openPullUp",
|
|
1855
|
+
name: "openPullUp"
|
|
1856
|
+
},
|
|
1857
|
+
{
|
|
1858
|
+
key: "closePullUp",
|
|
1859
|
+
name: "closePullUp"
|
|
1860
|
+
},
|
|
1861
|
+
{
|
|
1862
|
+
key: "autoPullUpLoad",
|
|
1863
|
+
name: "autoPullUpLoad"
|
|
1864
|
+
}
|
|
1865
|
+
], Ye = Be.map(function(r) {
|
|
1866
|
+
return {
|
|
1867
|
+
key: r.key,
|
|
1868
|
+
sourceKey: Me + "." + r.name
|
|
1869
|
+
};
|
|
1870
|
+
}), Tt = "pullingUp", Xe = (
|
|
1871
|
+
/** @class */
|
|
1872
|
+
function() {
|
|
1873
|
+
function r(t) {
|
|
1874
|
+
this.scroll = t, this.pulling = !1, this.watching = !1, this.init();
|
|
1875
|
+
}
|
|
1876
|
+
return r.prototype.init = function() {
|
|
1877
|
+
this.handleBScroll(), this.handleOptions(this.scroll.options.pullUpLoad), this.handleHooks(), this.watch();
|
|
1878
|
+
}, r.prototype.handleBScroll = function() {
|
|
1879
|
+
this.scroll.registerType([Tt]), this.scroll.proxy(Ye);
|
|
1880
|
+
}, r.prototype.handleOptions = function(t) {
|
|
1881
|
+
t === void 0 && (t = {}), t = t === !0 ? {} : t;
|
|
1882
|
+
var e = {
|
|
1883
|
+
threshold: 0
|
|
1884
|
+
};
|
|
1885
|
+
this.options = m(e, t), this.scroll.options.probeType = 3;
|
|
1886
|
+
}, r.prototype.handleHooks = function() {
|
|
1887
|
+
var t = this;
|
|
1888
|
+
this.hooksFn = [];
|
|
1889
|
+
var e = this.scroll.scroller.scrollBehaviorY;
|
|
1890
|
+
this.registerHooks(this.scroll.hooks, this.scroll.hooks.eventTypes.contentChanged, function() {
|
|
1891
|
+
t.finishPullUp();
|
|
1892
|
+
}), this.registerHooks(e.hooks, e.hooks.eventTypes.computeBoundary, function(o) {
|
|
1893
|
+
o.maxScrollPos > 0 && (o.maxScrollPos = -1);
|
|
1894
|
+
});
|
|
1895
|
+
}, r.prototype.registerHooks = function(t, e, o) {
|
|
1896
|
+
t.on(e, o, this), this.hooksFn.push([t, e, o]);
|
|
1897
|
+
}, r.prototype.watch = function() {
|
|
1898
|
+
this.watching || (this.watching = !0, this.registerHooks(this.scroll, this.scroll.eventTypes.scroll, this.checkPullUp));
|
|
1899
|
+
}, r.prototype.unwatch = function() {
|
|
1900
|
+
this.watching = !1, this.scroll.off(this.scroll.eventTypes.scroll, this.checkPullUp);
|
|
1901
|
+
}, r.prototype.checkPullUp = function(t) {
|
|
1902
|
+
var e = this, o = this.options.threshold;
|
|
1903
|
+
this.scroll.movingDirectionY === 1 && t.y <= this.scroll.maxScrollY + o && (this.pulling = !0, this.scroll.once(this.scroll.eventTypes.scrollEnd, function() {
|
|
1904
|
+
e.pulling = !1;
|
|
1905
|
+
}), this.unwatch(), this.scroll.trigger(Tt));
|
|
1906
|
+
}, r.prototype.finishPullUp = function() {
|
|
1907
|
+
var t = this;
|
|
1908
|
+
this.scroll.scroller.scrollBehaviorY.setMovingDirection(
|
|
1909
|
+
0
|
|
1910
|
+
/* Default */
|
|
1911
|
+
), this.pulling ? this.scroll.once(this.scroll.eventTypes.scrollEnd, function() {
|
|
1912
|
+
t.watch();
|
|
1913
|
+
}) : this.watch();
|
|
1914
|
+
}, r.prototype.openPullUp = function(t) {
|
|
1915
|
+
t === void 0 && (t = {}), this.handleOptions(t), this.watch();
|
|
1916
|
+
}, r.prototype.closePullUp = function() {
|
|
1917
|
+
this.unwatch();
|
|
1918
|
+
}, r.prototype.autoPullUpLoad = function() {
|
|
1919
|
+
var t = this.options.threshold, e = this.scroll.scroller.scrollBehaviorY;
|
|
1920
|
+
if (!(this.pulling || !this.watching)) {
|
|
1921
|
+
var o = -1, i = e.maxScrollPos + t + o;
|
|
1922
|
+
this.scroll.scroller.scrollBehaviorY.setMovingDirection(o), this.scroll.scrollTo(this.scroll.x, i, this.scroll.options.bounceTime);
|
|
1923
|
+
}
|
|
1924
|
+
}, r.pluginName = "pullUpLoad", r;
|
|
1925
|
+
}()
|
|
1926
|
+
), De = (
|
|
1927
|
+
/** @class */
|
|
1928
|
+
function() {
|
|
1929
|
+
function r(t, e) {
|
|
1930
|
+
this.indicator = t, this.options = e, this.hooks = new E(["touchStart", "touchMove", "touchEnd"]), this.registerEvents();
|
|
1931
|
+
}
|
|
1932
|
+
return r.prototype.registerEvents = function() {
|
|
1933
|
+
var t = this.options, e = t.disableMouse, o = t.disableTouch, i = [], s = [], n = [];
|
|
1934
|
+
e || (i.push({
|
|
1935
|
+
name: "mousedown",
|
|
1936
|
+
handler: this.start.bind(this)
|
|
1937
|
+
}), s.push({
|
|
1938
|
+
name: "mousemove",
|
|
1939
|
+
handler: this.move.bind(this)
|
|
1940
|
+
}), n.push({
|
|
1941
|
+
name: "mouseup",
|
|
1942
|
+
handler: this.end.bind(this)
|
|
1943
|
+
})), o || (i.push({
|
|
1944
|
+
name: "touchstart",
|
|
1945
|
+
handler: this.start.bind(this)
|
|
1946
|
+
}), s.push({
|
|
1947
|
+
name: "touchmove",
|
|
1948
|
+
handler: this.move.bind(this)
|
|
1949
|
+
}), n.push({
|
|
1950
|
+
name: "touchend",
|
|
1951
|
+
handler: this.end.bind(this)
|
|
1952
|
+
}, {
|
|
1953
|
+
name: "touchcancel",
|
|
1954
|
+
handler: this.end.bind(this)
|
|
1955
|
+
})), this.startEventRegister = new T(this.indicator.indicatorEl, i), this.moveEventRegister = new T(window, s), this.endEventRegister = new T(window, n);
|
|
1956
|
+
}, r.prototype.BScrollIsDisabled = function() {
|
|
1957
|
+
return !this.indicator.scroll.enabled;
|
|
1958
|
+
}, r.prototype.start = function(t) {
|
|
1959
|
+
if (!this.BScrollIsDisabled()) {
|
|
1960
|
+
var e = t.touches ? t.touches[0] : t;
|
|
1961
|
+
X(t), t.stopPropagation(), this.initiated = !0, this.lastPoint = e[this.indicator.keysMap.point], this.hooks.trigger(this.hooks.eventTypes.touchStart);
|
|
1962
|
+
}
|
|
1963
|
+
}, r.prototype.move = function(t) {
|
|
1964
|
+
if (this.initiated) {
|
|
1965
|
+
var e = t.touches ? t.touches[0] : t, o = e[this.indicator.keysMap.point];
|
|
1966
|
+
X(t), t.stopPropagation();
|
|
1967
|
+
var i = o - this.lastPoint;
|
|
1968
|
+
this.lastPoint = o, this.hooks.trigger(this.hooks.eventTypes.touchMove, i);
|
|
1969
|
+
}
|
|
1970
|
+
}, r.prototype.end = function(t) {
|
|
1971
|
+
this.initiated && (this.initiated = !1, X(t), t.stopPropagation(), this.hooks.trigger(this.hooks.eventTypes.touchEnd));
|
|
1972
|
+
}, r.prototype.destroy = function() {
|
|
1973
|
+
this.startEventRegister.destroy(), this.moveEventRegister.destroy(), this.endEventRegister.destroy();
|
|
1974
|
+
}, r;
|
|
1975
|
+
}()
|
|
1976
|
+
), Oe = (
|
|
1977
|
+
/** @class */
|
|
1978
|
+
function() {
|
|
1979
|
+
function r(t, e) {
|
|
1980
|
+
this.scroll = t, this.options = e, this.hooksFn = [], this.wrapper = e.wrapper, this.direction = e.direction, this.indicatorEl = this.wrapper.children[0], this.keysMap = this.getKeysMap(), this.handleFade(), this.handleHooks();
|
|
1981
|
+
}
|
|
1982
|
+
return r.prototype.handleFade = function() {
|
|
1983
|
+
this.options.fade && (this.wrapper.style.opacity = "0");
|
|
1984
|
+
}, r.prototype.handleHooks = function() {
|
|
1985
|
+
var t = this, e = this.options, o = e.fade, i = e.interactive, s = e.scrollbarTrackClickable, n = this.scroll, a = n.hooks, h = n.scroller.translater.hooks, l = n.scroller.animater.hooks;
|
|
1986
|
+
if (this.registerHooks(a, a.eventTypes.refresh, this.refresh), this.registerHooks(h, h.eventTypes.translate, function(v) {
|
|
1987
|
+
var k = t.keysMap.hasScroll;
|
|
1988
|
+
t.scroll[k] && t.updatePosition(v);
|
|
1989
|
+
}), this.registerHooks(l, l.eventTypes.time, this.transitionTime), this.registerHooks(l, l.eventTypes.timeFunction, this.transitionTimingFunction), o && (this.registerHooks(n, n.eventTypes.scrollEnd, function() {
|
|
1990
|
+
t.fade();
|
|
1991
|
+
}), this.registerHooks(n, n.eventTypes.scrollStart, function() {
|
|
1992
|
+
t.fade(!0);
|
|
1993
|
+
}), n.eventTypes.mousewheelStart && n.eventTypes.mousewheelEnd && (this.registerHooks(n, n.eventTypes.mousewheelStart, function() {
|
|
1994
|
+
t.fade(!0);
|
|
1995
|
+
}), this.registerHooks(n, n.eventTypes.mousewheelMove, function() {
|
|
1996
|
+
t.fade(!0);
|
|
1997
|
+
}), this.registerHooks(n, n.eventTypes.mousewheelEnd, function() {
|
|
1998
|
+
t.fade();
|
|
1999
|
+
}))), i) {
|
|
2000
|
+
var c = this.scroll.options, p = c.disableMouse, u = c.disableTouch;
|
|
2001
|
+
this.eventHandler = new De(this, {
|
|
2002
|
+
disableMouse: p,
|
|
2003
|
+
disableTouch: u
|
|
2004
|
+
});
|
|
2005
|
+
var f = this.eventHandler.hooks;
|
|
2006
|
+
this.registerHooks(f, f.eventTypes.touchStart, this.startHandler), this.registerHooks(f, f.eventTypes.touchMove, this.moveHandler), this.registerHooks(f, f.eventTypes.touchEnd, this.endHandler);
|
|
2007
|
+
}
|
|
2008
|
+
s && this.bindClick();
|
|
2009
|
+
}, r.prototype.registerHooks = function(t, e, o) {
|
|
2010
|
+
t.on(e, o, this), this.hooksFn.push([t, e, o]);
|
|
2011
|
+
}, r.prototype.bindClick = function() {
|
|
2012
|
+
var t = this.wrapper;
|
|
2013
|
+
this.clickEventRegister = new T(t, [
|
|
2014
|
+
{
|
|
2015
|
+
name: "click",
|
|
2016
|
+
handler: this.handleClick.bind(this)
|
|
2017
|
+
}
|
|
2018
|
+
]);
|
|
2019
|
+
}, r.prototype.handleClick = function(t) {
|
|
2020
|
+
var e = this.calculateclickOffsetPos(t), o = this.scroll, i = o.x, s = o.y;
|
|
2021
|
+
i = this.direction === "horizontal" ? e : i, s = this.direction === "vertical" ? e : s, this.scroll.scrollTo(i, s, this.options.scrollbarTrackOffsetTime);
|
|
2022
|
+
}, r.prototype.calculateclickOffsetPos = function(t) {
|
|
2023
|
+
var e = this.keysMap, o = e.point, i = e.domRect, s = this.options.scrollbarTrackOffsetType, n = t[o] - this.wrapperRect[i], a = n < this.currentPos ? -1 : 1, h = 0, l = this.currentPos;
|
|
2024
|
+
return s === "step" ? h = this.scrollInfo.baseSize * a : (h = 0, l = n), this.newPos(l, h, this.scrollInfo);
|
|
2025
|
+
}, r.prototype.getKeysMap = function() {
|
|
2026
|
+
return this.direction === "vertical" ? {
|
|
2027
|
+
hasScroll: "hasVerticalScroll",
|
|
2028
|
+
size: "height",
|
|
2029
|
+
wrapperSize: "clientHeight",
|
|
2030
|
+
scrollerSize: "scrollerHeight",
|
|
2031
|
+
maxScrollPos: "maxScrollY",
|
|
2032
|
+
pos: "y",
|
|
2033
|
+
point: "pageY",
|
|
2034
|
+
translateProperty: "translateY",
|
|
2035
|
+
domRect: "top"
|
|
2036
|
+
} : {
|
|
2037
|
+
hasScroll: "hasHorizontalScroll",
|
|
2038
|
+
size: "width",
|
|
2039
|
+
wrapperSize: "clientWidth",
|
|
2040
|
+
scrollerSize: "scrollerWidth",
|
|
2041
|
+
maxScrollPos: "maxScrollX",
|
|
2042
|
+
pos: "x",
|
|
2043
|
+
point: "pageX",
|
|
2044
|
+
translateProperty: "translateX",
|
|
2045
|
+
domRect: "left"
|
|
2046
|
+
};
|
|
2047
|
+
}, r.prototype.fade = function(t) {
|
|
2048
|
+
var e = this.options, o = e.fadeInTime, i = e.fadeOutTime, s = t ? o : i, n = this.wrapper;
|
|
2049
|
+
n.style[d.transitionDuration] = s + "ms", n.style.opacity = t ? "1" : "0";
|
|
2050
|
+
}, r.prototype.refresh = function() {
|
|
2051
|
+
var t = this.keysMap.hasScroll, e = this.scroll, o = e.x, i = e.y;
|
|
2052
|
+
if (this.wrapperRect = this.wrapper.getBoundingClientRect(), this.canScroll(e[t])) {
|
|
2053
|
+
var s = this.keysMap, n = s.wrapperSize, a = s.scrollerSize, h = s.maxScrollPos;
|
|
2054
|
+
this.scrollInfo = this.refreshScrollInfo(this.wrapper[n], e[a], e[h], this.indicatorEl[n]), this.updatePosition({
|
|
2055
|
+
x: o,
|
|
2056
|
+
y: i
|
|
2057
|
+
});
|
|
2058
|
+
}
|
|
2059
|
+
}, r.prototype.transitionTime = function(t) {
|
|
2060
|
+
t === void 0 && (t = 0), this.indicatorEl.style[d.transitionDuration] = t + "ms";
|
|
2061
|
+
}, r.prototype.transitionTimingFunction = function(t) {
|
|
2062
|
+
this.indicatorEl.style[d.transitionTimingFunction] = t;
|
|
2063
|
+
}, r.prototype.canScroll = function(t) {
|
|
2064
|
+
return this.wrapper.style.display = t ? "block" : "none", t;
|
|
2065
|
+
}, r.prototype.refreshScrollInfo = function(t, e, o, i) {
|
|
2066
|
+
var s = Math.max(Math.round(t * t / (e || t || 1)), this.options.minSize);
|
|
2067
|
+
this.options.isCustom && (s = i);
|
|
2068
|
+
var n = t - s, a = n / o;
|
|
2069
|
+
return {
|
|
2070
|
+
baseSize: s,
|
|
2071
|
+
maxScrollPos: n,
|
|
2072
|
+
minScrollPos: 0,
|
|
2073
|
+
sizeRatio: a
|
|
2074
|
+
};
|
|
2075
|
+
}, r.prototype.updatePosition = function(t) {
|
|
2076
|
+
var e = this.caculatePosAndSize(t, this.scrollInfo), o = e.pos, i = e.size;
|
|
2077
|
+
this.refreshStyle(i, o), this.currentPos = o;
|
|
2078
|
+
}, r.prototype.caculatePosAndSize = function(t, e) {
|
|
2079
|
+
var o = this.keysMap.pos, i = e.sizeRatio, s = e.baseSize, n = e.maxScrollPos, a = e.minScrollPos, h = this.options.minSize, l = Math.round(i * t[o]), c;
|
|
2080
|
+
return l < a ? (c = Math.max(s + l * 3, h), l = a) : l > n ? (c = Math.max(s - (l - n) * 3, h), l = n + s - c) : c = s, {
|
|
2081
|
+
pos: l,
|
|
2082
|
+
size: c
|
|
2083
|
+
};
|
|
2084
|
+
}, r.prototype.refreshStyle = function(t, e) {
|
|
2085
|
+
var o = this.keysMap, i = o.translateProperty, s = o.size, n = this.scroll.options.translateZ;
|
|
2086
|
+
this.indicatorEl.style[s] = t + "px", this.indicatorEl.style[d.transform] = i + "(" + e + "px)" + n;
|
|
2087
|
+
}, r.prototype.startHandler = function() {
|
|
2088
|
+
this.moved = !1, this.startTime = S(), this.transitionTime(), this.scroll.scroller.hooks.trigger(this.scroll.scroller.hooks.eventTypes.beforeScrollStart);
|
|
2089
|
+
}, r.prototype.moveHandler = function(t) {
|
|
2090
|
+
if (!this.moved && !this.indicatorNotMoved(t) && (this.moved = !0, this.scroll.scroller.hooks.trigger(this.scroll.scroller.hooks.eventTypes.scrollStart)), this.moved) {
|
|
2091
|
+
var e = this.newPos(this.currentPos, t, this.scrollInfo);
|
|
2092
|
+
this.syncBScroll(e);
|
|
2093
|
+
}
|
|
2094
|
+
}, r.prototype.endHandler = function() {
|
|
2095
|
+
if (this.moved) {
|
|
2096
|
+
var t = this.scroll, e = t.x, o = t.y;
|
|
2097
|
+
this.scroll.scroller.hooks.trigger(this.scroll.scroller.hooks.eventTypes.scrollEnd, {
|
|
2098
|
+
x: e,
|
|
2099
|
+
y: o
|
|
2100
|
+
});
|
|
2101
|
+
}
|
|
2102
|
+
}, r.prototype.indicatorNotMoved = function(t) {
|
|
2103
|
+
var e = this.currentPos, o = this.scrollInfo, i = o.maxScrollPos, s = o.minScrollPos, n = e === s && t <= 0 || e === i && t >= 0;
|
|
2104
|
+
return n;
|
|
2105
|
+
}, r.prototype.syncBScroll = function(t) {
|
|
2106
|
+
var e = S(), o = this.scroll, i = o.x, s = o.y, n = o.options, a = o.scroller, h = o.maxScrollY, l = o.minScrollY, c = o.maxScrollX, p = o.minScrollX, u = n.probeType, f = n.momentumLimitTime, v = { x: i, y: s };
|
|
2107
|
+
this.direction === "vertical" ? v.y = g(t, h, l) : v.x = g(t, c, p), a.translater.translate(v), e - this.startTime > f && (this.startTime = e, u === 1 && a.hooks.trigger(a.hooks.eventTypes.scroll, v)), u > 1 && a.hooks.trigger(a.hooks.eventTypes.scroll, v);
|
|
2108
|
+
}, r.prototype.newPos = function(t, e, o) {
|
|
2109
|
+
var i = o.maxScrollPos, s = o.sizeRatio, n = o.minScrollPos, a = t + e;
|
|
2110
|
+
return a = g(a, n, i), Math.round(a / s);
|
|
2111
|
+
}, r.prototype.destroy = function() {
|
|
2112
|
+
var t = this.options, e = t.interactive, o = t.scrollbarTrackClickable, i = t.isCustom;
|
|
2113
|
+
e && this.eventHandler.destroy(), o && this.clickEventRegister.destroy(), i || this.wrapper.parentNode.removeChild(this.wrapper), this.hooksFn.forEach(function(s) {
|
|
2114
|
+
var n = s[0], a = s[1], h = s[2];
|
|
2115
|
+
n.off(a, h);
|
|
2116
|
+
}), this.hooksFn.length = 0;
|
|
2117
|
+
}, r;
|
|
2118
|
+
}()
|
|
2119
|
+
), He = (
|
|
2120
|
+
/** @class */
|
|
2121
|
+
function() {
|
|
2122
|
+
function r(t) {
|
|
2123
|
+
this.scroll = t, this.handleOptions(), this.createIndicators(), this.handleHooks();
|
|
2124
|
+
}
|
|
2125
|
+
return r.prototype.handleHooks = function() {
|
|
2126
|
+
var t = this, e = this.scroll;
|
|
2127
|
+
e.hooks.on(e.hooks.eventTypes.destroy, function() {
|
|
2128
|
+
for (var o = 0, i = t.indicators; o < i.length; o++) {
|
|
2129
|
+
var s = i[o];
|
|
2130
|
+
s.destroy();
|
|
2131
|
+
}
|
|
2132
|
+
});
|
|
2133
|
+
}, r.prototype.handleOptions = function() {
|
|
2134
|
+
var t = this.scroll.options.scrollbar === !0 ? {} : this.scroll.options.scrollbar, e = {
|
|
2135
|
+
fade: !0,
|
|
2136
|
+
fadeInTime: 250,
|
|
2137
|
+
fadeOutTime: 500,
|
|
2138
|
+
interactive: !1,
|
|
2139
|
+
customElements: [],
|
|
2140
|
+
minSize: 8,
|
|
2141
|
+
scrollbarTrackClickable: !1,
|
|
2142
|
+
scrollbarTrackOffsetType: "step",
|
|
2143
|
+
scrollbarTrackOffsetTime: 300
|
|
2144
|
+
};
|
|
2145
|
+
this.options = m(e, t);
|
|
2146
|
+
}, r.prototype.createIndicators = function() {
|
|
2147
|
+
for (var t, e = this.scroll, o = [], i = ["scrollX", "scrollY"], s = [
|
|
2148
|
+
"horizontal",
|
|
2149
|
+
"vertical"
|
|
2150
|
+
], n = this.options.customElements, a = 0; a < i.length; a++) {
|
|
2151
|
+
var h = i[a];
|
|
2152
|
+
if (e.options[h]) {
|
|
2153
|
+
var l = n.shift(), c = s[a], p = !1, u = l || this.createScrollbarElement(c);
|
|
2154
|
+
u !== l ? e.wrapper.appendChild(u) : p = !0, t = b(b({ wrapper: u, direction: c }, this.options), { isCustom: p }), o.push(new Oe(e, t));
|
|
2155
|
+
}
|
|
2156
|
+
}
|
|
2157
|
+
this.indicators = o;
|
|
2158
|
+
}, r.prototype.createScrollbarElement = function(t, e) {
|
|
2159
|
+
e === void 0 && (e = this.options.scrollbarTrackClickable);
|
|
2160
|
+
var o = document.createElement("div"), i = document.createElement("div");
|
|
2161
|
+
return o.style.cssText = "position:absolute;z-index:9999;overflow:hidden;", i.style.cssText = "box-sizing:border-box;position:absolute;background:rgba(0,0,0,0.5);border:1px solid rgba(255,255,255,0.9);border-radius:3px;", i.className = "bscroll-indicator", t === "horizontal" ? (o.style.cssText += "height:7px;left:2px;right:2px;bottom:0;", i.style.height = "100%", o.className = "bscroll-horizontal-scrollbar") : (o.style.cssText += "width:7px;bottom:2px;top:2px;right:1px;", i.style.width = "100%", o.className = "bscroll-vertical-scrollbar"), e || (o.style.cssText += "pointer-events:none;"), o.appendChild(i), o;
|
|
2162
|
+
}, r.pluginName = "scrollbar", r;
|
|
2163
|
+
}()
|
|
2164
|
+
), Dt = {
|
|
2165
|
+
pageX: 0,
|
|
2166
|
+
pageY: 0,
|
|
2167
|
+
x: 0,
|
|
2168
|
+
y: 0
|
|
2169
|
+
}, Ce = {
|
|
2170
|
+
x: 0,
|
|
2171
|
+
y: 0,
|
|
2172
|
+
width: 0,
|
|
2173
|
+
height: 0,
|
|
2174
|
+
cx: 0,
|
|
2175
|
+
cy: 0
|
|
2176
|
+
}, Ie = (
|
|
2177
|
+
/** @class */
|
|
2178
|
+
function() {
|
|
2179
|
+
function r(t) {
|
|
2180
|
+
this.scroll = t, this.init();
|
|
2181
|
+
}
|
|
2182
|
+
return r.prototype.init = function() {
|
|
2183
|
+
var t = this.scroll.scroller, e = t.scrollBehaviorX, o = t.scrollBehaviorY;
|
|
2184
|
+
this.wrapperWidth = e.wrapperSize, this.wrapperHeight = o.wrapperSize, this.scrollerHeight = o.contentSize, this.scrollerWidth = e.contentSize, this.pages = this.buildPagesMatrix(this.wrapperWidth, this.wrapperHeight), this.pageLengthOfX = this.pages ? this.pages.length : 0, this.pageLengthOfY = this.pages && this.pages[0] ? this.pages[0].length : 0;
|
|
2185
|
+
}, r.prototype.getPageStats = function(t, e) {
|
|
2186
|
+
return this.pages[t] && this.pages[t][e] ? this.pages[t][e] : Ce;
|
|
2187
|
+
}, r.prototype.getNearestPageIndex = function(t, e) {
|
|
2188
|
+
for (var o = 0, i = 0, s = this.pages.length; o < s - 1 && !(t >= this.pages[o][0].cx); o++)
|
|
2189
|
+
;
|
|
2190
|
+
for (s = this.pages[o] ? this.pages[o].length : 0; i < s - 1 && !(e >= this.pages[0][i].cy); i++)
|
|
2191
|
+
;
|
|
2192
|
+
return {
|
|
2193
|
+
pageX: o,
|
|
2194
|
+
pageY: i
|
|
2195
|
+
};
|
|
2196
|
+
}, r.prototype.buildPagesMatrix = function(t, e) {
|
|
2197
|
+
var o = [], i = 0, s, n, a, h = 0, l, c = this.scroll.scroller.scrollBehaviorX.maxScrollPos, p = this.scroll.scroller.scrollBehaviorY.maxScrollPos;
|
|
2198
|
+
for (n = Math.round(t / 2), a = Math.round(e / 2); i > -this.scrollerWidth; ) {
|
|
2199
|
+
for (o[h] = [], l = 0, s = 0; s > -this.scrollerHeight; )
|
|
2200
|
+
o[h][l] = {
|
|
2201
|
+
x: Math.max(i, c),
|
|
2202
|
+
y: Math.max(s, p),
|
|
2203
|
+
width: t,
|
|
2204
|
+
height: e,
|
|
2205
|
+
cx: i - n,
|
|
2206
|
+
cy: s - a
|
|
2207
|
+
}, s -= e, l++;
|
|
2208
|
+
i -= t, h++;
|
|
2209
|
+
}
|
|
2210
|
+
return o;
|
|
2211
|
+
}, r;
|
|
2212
|
+
}()
|
|
2213
|
+
), ze = (
|
|
2214
|
+
/** @class */
|
|
2215
|
+
function() {
|
|
2216
|
+
function r(t, e) {
|
|
2217
|
+
this.scroll = t, this.slideOptions = e, this.slideX = !1, this.slideY = !1, this.currentPage = m({}, Dt);
|
|
2218
|
+
}
|
|
2219
|
+
return r.prototype.refresh = function() {
|
|
2220
|
+
this.pagesMatrix = new Ie(this.scroll), this.checkSlideLoop(), this.currentPage = this.getAdjustedCurrentPage();
|
|
2221
|
+
}, r.prototype.getAdjustedCurrentPage = function() {
|
|
2222
|
+
var t = this.currentPage, e = t.pageX, o = t.pageY;
|
|
2223
|
+
e = Math.min(e, this.pagesMatrix.pageLengthOfX - 1), o = Math.min(o, this.pagesMatrix.pageLengthOfY - 1), this.loopX && (e = Math.min(e, this.pagesMatrix.pageLengthOfX - 2)), this.loopY && (o = Math.min(o, this.pagesMatrix.pageLengthOfY - 2));
|
|
2224
|
+
var i = this.pagesMatrix.getPageStats(e, o), s = i.x, n = i.y;
|
|
2225
|
+
return { pageX: e, pageY: o, x: s, y: n };
|
|
2226
|
+
}, r.prototype.setCurrentPage = function(t) {
|
|
2227
|
+
this.currentPage = t;
|
|
2228
|
+
}, r.prototype.getInternalPage = function(t, e) {
|
|
2229
|
+
t >= this.pagesMatrix.pageLengthOfX ? t = this.pagesMatrix.pageLengthOfX - 1 : t < 0 && (t = 0), e >= this.pagesMatrix.pageLengthOfY ? e = this.pagesMatrix.pageLengthOfY - 1 : e < 0 && (e = 0);
|
|
2230
|
+
var o = this.pagesMatrix.getPageStats(t, e), i = o.x, s = o.y;
|
|
2231
|
+
return {
|
|
2232
|
+
pageX: t,
|
|
2233
|
+
pageY: e,
|
|
2234
|
+
x: i,
|
|
2235
|
+
y: s
|
|
2236
|
+
};
|
|
2237
|
+
}, r.prototype.getInitialPage = function(t, e) {
|
|
2238
|
+
t === void 0 && (t = !1), e === void 0 && (e = !1);
|
|
2239
|
+
var o = this.slideOptions, i = o.startPageXIndex, s = o.startPageYIndex, n = this.loopX ? 1 : 0, a = this.loopY ? 1 : 0, h = t ? n : this.currentPage.pageX, l = t ? a : this.currentPage.pageY;
|
|
2240
|
+
e ? (h = this.loopX ? i + 1 : i, l = this.loopY ? s + 1 : s) : (h = t ? n : this.currentPage.pageX, l = t ? a : this.currentPage.pageY);
|
|
2241
|
+
var c = this.pagesMatrix.getPageStats(h, l), p = c.x, u = c.y;
|
|
2242
|
+
return {
|
|
2243
|
+
pageX: h,
|
|
2244
|
+
pageY: l,
|
|
2245
|
+
x: p,
|
|
2246
|
+
y: u
|
|
2247
|
+
};
|
|
2248
|
+
}, r.prototype.getExposedPage = function(t) {
|
|
2249
|
+
var e = m({}, t);
|
|
2250
|
+
return this.loopX && (e.pageX = this.fixedPage(e.pageX, this.pagesMatrix.pageLengthOfX - 2)), this.loopY && (e.pageY = this.fixedPage(e.pageY, this.pagesMatrix.pageLengthOfY - 2)), e;
|
|
2251
|
+
}, r.prototype.getExposedPageByPageIndex = function(t, e) {
|
|
2252
|
+
var o = {
|
|
2253
|
+
pageX: t,
|
|
2254
|
+
pageY: e
|
|
2255
|
+
};
|
|
2256
|
+
this.loopX && (o.pageX = t + 1), this.loopY && (o.pageY = e + 1);
|
|
2257
|
+
var i = this.pagesMatrix.getPageStats(o.pageX, o.pageY), s = i.x, n = i.y;
|
|
2258
|
+
return {
|
|
2259
|
+
x: s,
|
|
2260
|
+
y: n,
|
|
2261
|
+
pageX: t,
|
|
2262
|
+
pageY: e
|
|
2263
|
+
};
|
|
2264
|
+
}, r.prototype.getWillChangedPage = function(t) {
|
|
2265
|
+
return t = m({}, t), this.loopX && (t.pageX = this.fixedPage(t.pageX, this.pagesMatrix.pageLengthOfX - 2), t.x = this.pagesMatrix.getPageStats(t.pageX + 1, 0).x), this.loopY && (t.pageY = this.fixedPage(t.pageY, this.pagesMatrix.pageLengthOfY - 2), t.y = this.pagesMatrix.getPageStats(0, t.pageY + 1).y), t;
|
|
2266
|
+
}, r.prototype.fixedPage = function(t, e) {
|
|
2267
|
+
for (var o = [], i = 0; i < e; i++)
|
|
2268
|
+
o.push(i);
|
|
2269
|
+
return o.unshift(e - 1), o.push(0), o[t];
|
|
2270
|
+
}, r.prototype.getPageStats = function() {
|
|
2271
|
+
return this.pagesMatrix.getPageStats(this.currentPage.pageX, this.currentPage.pageY);
|
|
2272
|
+
}, r.prototype.getValidPageIndex = function(t, e) {
|
|
2273
|
+
var o = this.pagesMatrix.pageLengthOfX - 1, i = this.pagesMatrix.pageLengthOfY - 1, s = 0, n = 0;
|
|
2274
|
+
return this.loopX && (t += 1, s = s + 1, o = o - 1), this.loopY && (e += 1, n = n + 1, i = i - 1), t = g(t, s, o), e = g(e, n, i), {
|
|
2275
|
+
pageX: t,
|
|
2276
|
+
pageY: e
|
|
2277
|
+
};
|
|
2278
|
+
}, r.prototype.nextPageIndex = function() {
|
|
2279
|
+
return this.getPageIndexByDirection(
|
|
2280
|
+
"positive"
|
|
2281
|
+
/* Positive */
|
|
2282
|
+
);
|
|
2283
|
+
}, r.prototype.prevPageIndex = function() {
|
|
2284
|
+
return this.getPageIndexByDirection(
|
|
2285
|
+
"negative"
|
|
2286
|
+
/* Negative */
|
|
2287
|
+
);
|
|
2288
|
+
}, r.prototype.getNearestPage = function(t, e) {
|
|
2289
|
+
var o = this.pagesMatrix.getNearestPageIndex(t, e), i = o.pageX, s = o.pageY, n = this.pagesMatrix.getPageStats(i, 0).x, a = this.pagesMatrix.getPageStats(0, s).y;
|
|
2290
|
+
return {
|
|
2291
|
+
x: n,
|
|
2292
|
+
y: a,
|
|
2293
|
+
pageX: i,
|
|
2294
|
+
pageY: s
|
|
2295
|
+
};
|
|
2296
|
+
}, r.prototype.getPageByDirection = function(t, e, o) {
|
|
2297
|
+
var i = t.pageX, s = t.pageY;
|
|
2298
|
+
i === this.currentPage.pageX && (i = g(i + e, 0, this.pagesMatrix.pageLengthOfX - 1)), s === this.currentPage.pageY && (s = g(s + o, 0, this.pagesMatrix.pageLengthOfY - 1));
|
|
2299
|
+
var n = this.pagesMatrix.getPageStats(i, 0).x, a = this.pagesMatrix.getPageStats(0, s).y;
|
|
2300
|
+
return {
|
|
2301
|
+
x: n,
|
|
2302
|
+
y: a,
|
|
2303
|
+
pageX: i,
|
|
2304
|
+
pageY: s
|
|
2305
|
+
};
|
|
2306
|
+
}, r.prototype.resetLoopPage = function() {
|
|
2307
|
+
if (this.loopX) {
|
|
2308
|
+
if (this.currentPage.pageX === 0)
|
|
2309
|
+
return {
|
|
2310
|
+
pageX: this.pagesMatrix.pageLengthOfX - 2,
|
|
2311
|
+
pageY: this.currentPage.pageY
|
|
2312
|
+
};
|
|
2313
|
+
if (this.currentPage.pageX === this.pagesMatrix.pageLengthOfX - 1)
|
|
2314
|
+
return {
|
|
2315
|
+
pageX: 1,
|
|
2316
|
+
pageY: this.currentPage.pageY
|
|
2317
|
+
};
|
|
2318
|
+
}
|
|
2319
|
+
if (this.loopY) {
|
|
2320
|
+
if (this.currentPage.pageY === 0)
|
|
2321
|
+
return {
|
|
2322
|
+
pageX: this.currentPage.pageX,
|
|
2323
|
+
pageY: this.pagesMatrix.pageLengthOfY - 2
|
|
2324
|
+
};
|
|
2325
|
+
if (this.currentPage.pageY === this.pagesMatrix.pageLengthOfY - 1)
|
|
2326
|
+
return {
|
|
2327
|
+
pageX: this.currentPage.pageX,
|
|
2328
|
+
pageY: 1
|
|
2329
|
+
};
|
|
2330
|
+
}
|
|
2331
|
+
}, r.prototype.getPageIndexByDirection = function(t) {
|
|
2332
|
+
var e = this.currentPage.pageX, o = this.currentPage.pageY;
|
|
2333
|
+
return this.slideX && (e = t === "negative" ? e - 1 : e + 1), this.slideY && (o = t === "negative" ? o - 1 : o + 1), {
|
|
2334
|
+
pageX: e,
|
|
2335
|
+
pageY: o
|
|
2336
|
+
};
|
|
2337
|
+
}, r.prototype.checkSlideLoop = function() {
|
|
2338
|
+
this.wannaLoop = this.slideOptions.loop, this.pagesMatrix.pageLengthOfX > 1 ? this.slideX = !0 : this.slideX = !1, this.pagesMatrix.pages[0] && this.pagesMatrix.pageLengthOfY > 1 ? this.slideY = !0 : this.slideY = !1, this.loopX = this.wannaLoop && this.slideX, this.loopY = this.wannaLoop && this.slideY, this.slideX && this.slideY && P("slide does not support two direction at the same time.");
|
|
2339
|
+
}, r;
|
|
2340
|
+
}()
|
|
2341
|
+
), Le = "plugins.slide", Fe = [
|
|
2342
|
+
{
|
|
2343
|
+
key: "next",
|
|
2344
|
+
name: "next"
|
|
2345
|
+
},
|
|
2346
|
+
{
|
|
2347
|
+
key: "prev",
|
|
2348
|
+
name: "prev"
|
|
2349
|
+
},
|
|
2350
|
+
{
|
|
2351
|
+
key: "goToPage",
|
|
2352
|
+
name: "goToPage"
|
|
2353
|
+
},
|
|
2354
|
+
{
|
|
2355
|
+
key: "getCurrentPage",
|
|
2356
|
+
name: "getCurrentPage"
|
|
2357
|
+
},
|
|
2358
|
+
{
|
|
2359
|
+
key: "startPlay",
|
|
2360
|
+
name: "startPlay"
|
|
2361
|
+
},
|
|
2362
|
+
{
|
|
2363
|
+
key: "pausePlay",
|
|
2364
|
+
name: "pausePlay"
|
|
2365
|
+
}
|
|
2366
|
+
], _e = Fe.map(function(r) {
|
|
2367
|
+
return {
|
|
2368
|
+
key: r.key,
|
|
2369
|
+
sourceKey: Le + "." + r.name
|
|
2370
|
+
};
|
|
2371
|
+
}), Ae = function(r, t) {
|
|
2372
|
+
return r.pageX === t.pageX && r.pageY === t.pageY;
|
|
2373
|
+
}, Ne = (
|
|
2374
|
+
/** @class */
|
|
2375
|
+
function() {
|
|
2376
|
+
function r(t) {
|
|
2377
|
+
this.scroll = t, this.cachedClonedPageDOM = [], this.resetLooping = !1, this.autoplayTimer = 0, this.satisfyInitialization() && this.init();
|
|
2378
|
+
}
|
|
2379
|
+
return r.prototype.satisfyInitialization = function() {
|
|
2380
|
+
return this.scroll.scroller.content.children.length <= 0 ? (P("slide need at least one slide page to be initialised.please check your DOM layout."), !1) : !0;
|
|
2381
|
+
}, r.prototype.init = function() {
|
|
2382
|
+
this.willChangeToPage = m({}, Dt), this.handleBScroll(), this.handleOptions(), this.handleHooks(), this.createPages();
|
|
2383
|
+
}, r.prototype.createPages = function() {
|
|
2384
|
+
this.pages = new ze(this.scroll, this.options);
|
|
2385
|
+
}, r.prototype.handleBScroll = function() {
|
|
2386
|
+
this.scroll.registerType(["slideWillChange", "slidePageChanged"]), this.scroll.proxy(_e);
|
|
2387
|
+
}, r.prototype.handleOptions = function() {
|
|
2388
|
+
var t = this.scroll.options.slide === !0 ? {} : this.scroll.options.slide, e = {
|
|
2389
|
+
loop: !0,
|
|
2390
|
+
threshold: 0.1,
|
|
2391
|
+
speed: 400,
|
|
2392
|
+
easing: y.bounce,
|
|
2393
|
+
listenFlick: !0,
|
|
2394
|
+
autoplay: !0,
|
|
2395
|
+
interval: 3e3,
|
|
2396
|
+
startPageXIndex: 0,
|
|
2397
|
+
startPageYIndex: 0
|
|
2398
|
+
};
|
|
2399
|
+
this.options = m(e, t);
|
|
2400
|
+
}, r.prototype.handleLoop = function(t) {
|
|
2401
|
+
var e = this.options.loop, o = this.scroll.scroller.content, i = o.children.length;
|
|
2402
|
+
e && (o !== t ? (this.resetLoopChangedStatus(), this.removeClonedSlidePage(t), i > 1 && this.cloneFirstAndLastSlidePage(o)) : i === 3 && this.initialised ? (this.removeClonedSlidePage(o), this.moreToOnePageInLoop = !0, this.oneToMorePagesInLoop = !1) : i > 1 ? (this.initialised && this.cachedClonedPageDOM.length === 0 ? (this.oneToMorePagesInLoop = !0, this.moreToOnePageInLoop = !1) : (this.removeClonedSlidePage(o), this.resetLoopChangedStatus()), this.cloneFirstAndLastSlidePage(o)) : this.resetLoopChangedStatus());
|
|
2403
|
+
}, r.prototype.resetLoopChangedStatus = function() {
|
|
2404
|
+
this.moreToOnePageInLoop = !1, this.oneToMorePagesInLoop = !1;
|
|
2405
|
+
}, r.prototype.handleHooks = function() {
|
|
2406
|
+
var t = this, e = this.scroll.hooks, o = this.scroll.scroller.hooks, i = this.options.listenFlick;
|
|
2407
|
+
this.prevContent = this.scroll.scroller.content, this.hooksFn = [], this.registerHooks(this.scroll, this.scroll.eventTypes.beforeScrollStart, this.pausePlay), this.registerHooks(this.scroll, this.scroll.eventTypes.scrollEnd, this.modifyCurrentPage), this.registerHooks(this.scroll, this.scroll.eventTypes.scrollEnd, this.startPlay), this.scroll.eventTypes.mousewheelMove && (this.registerHooks(this.scroll, this.scroll.eventTypes.mousewheelMove, function() {
|
|
2408
|
+
return !0;
|
|
2409
|
+
}), this.registerHooks(this.scroll, this.scroll.eventTypes.mousewheelEnd, function(s) {
|
|
2410
|
+
(s.directionX === 1 || s.directionY === 1) && t.next(), (s.directionX === -1 || s.directionY === -1) && t.prev();
|
|
2411
|
+
})), this.registerHooks(e, e.eventTypes.refresh, this.refreshHandler), this.registerHooks(e, e.eventTypes.destroy, this.destroy), this.registerHooks(o, o.eventTypes.beforeRefresh, function() {
|
|
2412
|
+
t.handleLoop(t.prevContent), t.setSlideInlineStyle();
|
|
2413
|
+
}), this.registerHooks(o, o.eventTypes.momentum, this.modifyScrollMetaHandler), this.registerHooks(o, o.eventTypes.scroll, this.scrollHandler), this.registerHooks(o, o.eventTypes.checkClick, this.startPlay), i && this.registerHooks(o, o.eventTypes.flick, this.flickHandler);
|
|
2414
|
+
}, r.prototype.startPlay = function() {
|
|
2415
|
+
var t = this, e = this.options, o = e.interval, i = e.autoplay;
|
|
2416
|
+
i && (clearTimeout(this.autoplayTimer), this.autoplayTimer = window.setTimeout(function() {
|
|
2417
|
+
t.next();
|
|
2418
|
+
}, o));
|
|
2419
|
+
}, r.prototype.pausePlay = function() {
|
|
2420
|
+
this.options.autoplay && clearTimeout(this.autoplayTimer);
|
|
2421
|
+
}, r.prototype.setSlideInlineStyle = function() {
|
|
2422
|
+
var t = [
|
|
2423
|
+
{
|
|
2424
|
+
direction: "scrollX",
|
|
2425
|
+
sizeType: "offsetWidth",
|
|
2426
|
+
styleType: "width"
|
|
2427
|
+
},
|
|
2428
|
+
{
|
|
2429
|
+
direction: "scrollY",
|
|
2430
|
+
sizeType: "offsetHeight",
|
|
2431
|
+
styleType: "height"
|
|
2432
|
+
}
|
|
2433
|
+
], e = this.scroll.scroller, o = e.content, i = e.wrapper, s = this.scroll.options;
|
|
2434
|
+
t.forEach(function(n) {
|
|
2435
|
+
var a = n.direction, h = n.sizeType, l = n.styleType;
|
|
2436
|
+
if (s[a]) {
|
|
2437
|
+
for (var c = i[h], p = o.children, u = p.length, f = 0; f < u; f++) {
|
|
2438
|
+
var v = p[f];
|
|
2439
|
+
v.style[l] = c + "px";
|
|
2440
|
+
}
|
|
2441
|
+
o.style[l] = c * u + "px";
|
|
2442
|
+
}
|
|
2443
|
+
});
|
|
2444
|
+
}, r.prototype.next = function(t, e) {
|
|
2445
|
+
var o = this.pages.nextPageIndex(), i = o.pageX, s = o.pageY;
|
|
2446
|
+
this.goTo(i, s, t, e);
|
|
2447
|
+
}, r.prototype.prev = function(t, e) {
|
|
2448
|
+
var o = this.pages.prevPageIndex(), i = o.pageX, s = o.pageY;
|
|
2449
|
+
this.goTo(i, s, t, e);
|
|
2450
|
+
}, r.prototype.goToPage = function(t, e, o, i) {
|
|
2451
|
+
var s = this.pages.getValidPageIndex(t, e);
|
|
2452
|
+
this.goTo(s.pageX, s.pageY, o, i);
|
|
2453
|
+
}, r.prototype.getCurrentPage = function() {
|
|
2454
|
+
return this.exposedPage || this.pages.getInitialPage(!1, !0);
|
|
2455
|
+
}, r.prototype.setCurrentPage = function(t) {
|
|
2456
|
+
this.pages.setCurrentPage(t), this.exposedPage = this.pages.getExposedPage(t);
|
|
2457
|
+
}, r.prototype.nearestPage = function(t, e) {
|
|
2458
|
+
var o = this.scroll.scroller, i = o.scrollBehaviorX, s = o.scrollBehaviorY, n = i.maxScrollPos, a = i.minScrollPos, h = s.maxScrollPos, l = s.minScrollPos;
|
|
2459
|
+
return this.pages.getNearestPage(g(t, n, a), g(e, h, l));
|
|
2460
|
+
}, r.prototype.satisfyThreshold = function(t, e) {
|
|
2461
|
+
var o = this.scroll.scroller, i = o.scrollBehaviorX, s = o.scrollBehaviorY, n = !0;
|
|
2462
|
+
return Math.abs(t - i.absStartPos) <= this.thresholdX && Math.abs(e - s.absStartPos) <= this.thresholdY && (n = !1), n;
|
|
2463
|
+
}, r.prototype.refreshHandler = function(t) {
|
|
2464
|
+
var e = this;
|
|
2465
|
+
if (this.satisfyInitialization()) {
|
|
2466
|
+
this.pages.refresh(), this.computeThreshold();
|
|
2467
|
+
var o = this.contentChanged = this.prevContent !== t;
|
|
2468
|
+
o && (this.prevContent = t);
|
|
2469
|
+
var i = this.pages.getInitialPage(this.oneToMorePagesInLoop || this.moreToOnePageInLoop, o || !this.initialised);
|
|
2470
|
+
this.initialised ? this.goTo(i.pageX, i.pageY, 0) : this.registerHooks(this.scroll.hooks, this.scroll.hooks.eventTypes.beforeInitialScrollTo, function(s) {
|
|
2471
|
+
e.initialised = !0, s.x = i.x, s.y = i.y;
|
|
2472
|
+
}), this.startPlay();
|
|
2473
|
+
}
|
|
2474
|
+
}, r.prototype.computeThreshold = function() {
|
|
2475
|
+
var t = this.options.threshold;
|
|
2476
|
+
if (t % 1 === 0)
|
|
2477
|
+
this.thresholdX = t, this.thresholdY = t;
|
|
2478
|
+
else {
|
|
2479
|
+
var e = this.pages.getPageStats(), o = e.width, i = e.height;
|
|
2480
|
+
this.thresholdX = Math.round(o * t), this.thresholdY = Math.round(i * t);
|
|
2481
|
+
}
|
|
2482
|
+
}, r.prototype.cloneFirstAndLastSlidePage = function(t) {
|
|
2483
|
+
var e = t.children, o = e[e.length - 1].cloneNode(!0), i = e[0].cloneNode(!0);
|
|
2484
|
+
Gt(o, t), t.appendChild(i), this.cachedClonedPageDOM = [o, i];
|
|
2485
|
+
}, r.prototype.removeClonedSlidePage = function(t) {
|
|
2486
|
+
var e = t && t.children || [];
|
|
2487
|
+
e.length && this.cachedClonedPageDOM.forEach(function(o) {
|
|
2488
|
+
Jt(t, o);
|
|
2489
|
+
}), this.cachedClonedPageDOM = [];
|
|
2490
|
+
}, r.prototype.modifyCurrentPage = function(t) {
|
|
2491
|
+
var e = this.getCurrentPage(), o = e.pageX, i = e.pageY, s = this.nearestPage(t.x, t.y);
|
|
2492
|
+
if (this.setCurrentPage(s), this.contentChanged)
|
|
2493
|
+
return this.contentChanged = !1, !0;
|
|
2494
|
+
var n = this.getCurrentPage(), a = n.pageX, h = n.pageY;
|
|
2495
|
+
if (this.pageWillChangeTo(s), this.oneToMorePagesInLoop)
|
|
2496
|
+
return this.oneToMorePagesInLoop = !1, !0;
|
|
2497
|
+
if (this.moreToOnePageInLoop && o === 0 && i === 0)
|
|
2498
|
+
return this.moreToOnePageInLoop = !1, !0;
|
|
2499
|
+
if (o !== a || i !== h) {
|
|
2500
|
+
var l = this.pages.getExposedPageByPageIndex(a, h);
|
|
2501
|
+
this.scroll.trigger(this.scroll.eventTypes.slidePageChanged, l);
|
|
2502
|
+
}
|
|
2503
|
+
if (this.resetLooping) {
|
|
2504
|
+
this.resetLooping = !1;
|
|
2505
|
+
return;
|
|
2506
|
+
}
|
|
2507
|
+
var c = this.pages.resetLoopPage();
|
|
2508
|
+
if (c)
|
|
2509
|
+
return this.resetLooping = !0, this.goTo(c.pageX, c.pageY, 0), !0;
|
|
2510
|
+
}, r.prototype.goTo = function(t, e, o, i) {
|
|
2511
|
+
var s = this.pages.getInternalPage(t, e), n = i || this.options.easing || y.bounce, a = s.x, h = s.y, l = a - this.scroll.scroller.scrollBehaviorX.currentPos, c = h - this.scroll.scroller.scrollBehaviorY.currentPos;
|
|
2512
|
+
if (!l && !c) {
|
|
2513
|
+
this.scroll.scroller.togglePointerEvents(!0);
|
|
2514
|
+
return;
|
|
2515
|
+
}
|
|
2516
|
+
o = o === void 0 ? this.getEaseTime(l, c) : o, this.scroll.scroller.scrollTo(a, h, o, n);
|
|
2517
|
+
}, r.prototype.flickHandler = function() {
|
|
2518
|
+
var t = this.scroll.scroller, e = t.scrollBehaviorX, o = t.scrollBehaviorY, i = e.currentPos, s = e.startPos, n = e.direction, a = o.currentPos, h = o.startPos, l = o.direction, c = this.pages.currentPage, p = c.pageX, u = c.pageY, f = this.getEaseTime(i - s, a - h);
|
|
2519
|
+
this.goTo(p + n, u + l, f);
|
|
2520
|
+
}, r.prototype.getEaseTime = function(t, e) {
|
|
2521
|
+
return this.options.speed || Math.max(Math.max(Math.min(Math.abs(t), 1e3), Math.min(Math.abs(e), 1e3)), 300);
|
|
2522
|
+
}, r.prototype.modifyScrollMetaHandler = function(t) {
|
|
2523
|
+
var e = this.scroll.scroller, o = e.scrollBehaviorX, i = e.scrollBehaviorY, s = e.animater, n = t.newX, a = t.newY, h = this.satisfyThreshold(n, a) || s.forceStopped ? this.pages.getPageByDirection(this.nearestPage(n, a), o.direction, i.direction) : this.pages.currentPage;
|
|
2524
|
+
t.time = this.getEaseTime(t.newX - h.x, t.newY - h.y), t.newX = h.x, t.newY = h.y, t.easing = this.options.easing || y.bounce;
|
|
2525
|
+
}, r.prototype.scrollHandler = function(t) {
|
|
2526
|
+
var e = t.x, o = t.y;
|
|
2527
|
+
if (this.satisfyThreshold(e, o)) {
|
|
2528
|
+
var i = this.nearestPage(e, o);
|
|
2529
|
+
this.pageWillChangeTo(i);
|
|
2530
|
+
}
|
|
2531
|
+
}, r.prototype.pageWillChangeTo = function(t) {
|
|
2532
|
+
var e = this.pages.getWillChangedPage(t);
|
|
2533
|
+
Ae(this.willChangeToPage, e) || (this.willChangeToPage = e, this.scroll.trigger(this.scroll.eventTypes.slideWillChange, this.willChangeToPage));
|
|
2534
|
+
}, r.prototype.registerHooks = function(t, e, o) {
|
|
2535
|
+
t.on(e, o, this), this.hooksFn.push([t, e, o]);
|
|
2536
|
+
}, r.prototype.destroy = function() {
|
|
2537
|
+
var t = this.scroll.scroller.content, e = this.options, o = e.loop, i = e.autoplay;
|
|
2538
|
+
o && this.removeClonedSlidePage(t), i && clearTimeout(this.autoplayTimer), this.hooksFn.forEach(function(s) {
|
|
2539
|
+
var n = s[0], a = s[1], h = s[2];
|
|
2540
|
+
n.eventTypes[a] && n.off(a, h);
|
|
2541
|
+
}), this.hooksFn.length = 0;
|
|
2542
|
+
}, r.pluginName = "slide", r;
|
|
2543
|
+
}()
|
|
2544
|
+
), Re = "plugins.wheel", We = [
|
|
2545
|
+
{
|
|
2546
|
+
key: "wheelTo",
|
|
2547
|
+
name: "wheelTo"
|
|
2548
|
+
},
|
|
2549
|
+
{
|
|
2550
|
+
key: "getSelectedIndex",
|
|
2551
|
+
name: "getSelectedIndex"
|
|
2552
|
+
},
|
|
2553
|
+
{
|
|
2554
|
+
key: "restorePosition",
|
|
2555
|
+
name: "restorePosition"
|
|
2556
|
+
}
|
|
2557
|
+
], Ke = We.map(function(r) {
|
|
2558
|
+
return {
|
|
2559
|
+
key: r.key,
|
|
2560
|
+
sourceKey: Re + "." + r.name
|
|
2561
|
+
};
|
|
2562
|
+
}), St = "wheelIndexChanged", Ue = {
|
|
2563
|
+
rate: 4
|
|
2564
|
+
}, Ve = (
|
|
2565
|
+
/** @class */
|
|
2566
|
+
function() {
|
|
2567
|
+
function r(t) {
|
|
2568
|
+
this.scroll = t, this.init();
|
|
2569
|
+
}
|
|
2570
|
+
return r.prototype.init = function() {
|
|
2571
|
+
this.handleBScroll(), this.handleOptions(), this.handleHooks(), this.refreshBoundary(), this.setSelectedIndex(this.options.selectedIndex);
|
|
2572
|
+
}, r.prototype.handleBScroll = function() {
|
|
2573
|
+
this.scroll.proxy(Ke), this.scroll.registerType([St]);
|
|
2574
|
+
}, r.prototype.handleOptions = function() {
|
|
2575
|
+
var t = this.scroll.options.wheel === !0 ? {} : this.scroll.options.wheel, e = {
|
|
2576
|
+
wheelWrapperClass: "wheel-scroll",
|
|
2577
|
+
wheelItemClass: "wheel-item",
|
|
2578
|
+
rotate: 25,
|
|
2579
|
+
adjustTime: 400,
|
|
2580
|
+
selectedIndex: 0,
|
|
2581
|
+
wheelDisabledItemClass: "wheel-disabled-item"
|
|
2582
|
+
};
|
|
2583
|
+
this.options = m(e, t);
|
|
2584
|
+
}, r.prototype.handleHooks = function() {
|
|
2585
|
+
var t = this, e = this.scroll, o = this.scroll.scroller, i = o.actionsHandler, s = o.scrollBehaviorX, n = o.scrollBehaviorY, a = o.animater, h = o.content;
|
|
2586
|
+
e.on(e.eventTypes.scrollEnd, function(l) {
|
|
2587
|
+
var c = t.findNearestValidWheel(l.y).index;
|
|
2588
|
+
if (o.animater.forceStopped && !t.isAdjustingPosition)
|
|
2589
|
+
return t.target = t.items[c], !0;
|
|
2590
|
+
t.setSelectedIndex(c), t.isAdjustingPosition && (t.isAdjustingPosition = !1);
|
|
2591
|
+
}), this.scroll.hooks.on(this.scroll.hooks.eventTypes.refresh, function(l) {
|
|
2592
|
+
l !== h && (h = l, t.setSelectedIndex(t.options.selectedIndex, !0)), t.rotateX(t.scroll.y), t.wheelTo(t.selectedIndex, 0);
|
|
2593
|
+
}), this.scroll.hooks.on(this.scroll.hooks.eventTypes.beforeInitialScrollTo, function(l) {
|
|
2594
|
+
l.x = 0, l.y = -(t.selectedIndex * t.itemHeight);
|
|
2595
|
+
}), o.hooks.on(o.hooks.eventTypes.checkClick, function() {
|
|
2596
|
+
var l = Qt(t.items).indexOf(t.target);
|
|
2597
|
+
return l === -1 || t.wheelTo(l, t.options.adjustTime, y.swipe), !0;
|
|
2598
|
+
}), o.hooks.on(o.hooks.eventTypes.scrollTo, function(l) {
|
|
2599
|
+
l.y = t.findNearestValidWheel(l.y).y;
|
|
2600
|
+
}), o.hooks.on(o.hooks.eventTypes.minDistanceScroll, function() {
|
|
2601
|
+
var l = o.animater;
|
|
2602
|
+
l.forceStopped === !0 && (l.forceStopped = !1);
|
|
2603
|
+
}), o.hooks.on(o.hooks.eventTypes.scrollToElement, function(l, c) {
|
|
2604
|
+
if (z(l, t.options.wheelItemClass))
|
|
2605
|
+
c.top = t.findNearestValidWheel(c.top).y;
|
|
2606
|
+
else
|
|
2607
|
+
return !0;
|
|
2608
|
+
}), i.hooks.on(i.hooks.eventTypes.beforeStart, function(l) {
|
|
2609
|
+
t.target = l.target;
|
|
2610
|
+
}), s.hooks.on(s.hooks.eventTypes.computeBoundary, function(l) {
|
|
2611
|
+
l.maxScrollPos = 0, l.minScrollPos = 0;
|
|
2612
|
+
}), n.hooks.on(n.hooks.eventTypes.computeBoundary, function(l) {
|
|
2613
|
+
t.items = t.scroll.scroller.content.children, t.checkWheelAllDisabled(), t.itemHeight = t.items.length > 0 ? n.contentSize / t.items.length : 0, l.maxScrollPos = -t.itemHeight * (t.items.length - 1), l.minScrollPos = 0;
|
|
2614
|
+
}), n.hooks.on(n.hooks.eventTypes.momentum, function(l) {
|
|
2615
|
+
l.rate = Ue.rate, l.destination = t.findNearestValidWheel(l.destination).y;
|
|
2616
|
+
}), n.hooks.on(n.hooks.eventTypes.end, function(l) {
|
|
2617
|
+
var c = t.findNearestValidWheel(n.currentPos);
|
|
2618
|
+
l.destination = c.y, l.duration = t.options.adjustTime;
|
|
2619
|
+
}), a.hooks.on(a.hooks.eventTypes.time, function(l) {
|
|
2620
|
+
t.transitionDuration(l);
|
|
2621
|
+
}), a.hooks.on(a.hooks.eventTypes.timeFunction, function(l) {
|
|
2622
|
+
t.timeFunction(l);
|
|
2623
|
+
}), a.hooks.on(a.hooks.eventTypes.callStop, function() {
|
|
2624
|
+
var l = t.findNearestValidWheel(t.scroll.y).index;
|
|
2625
|
+
t.isAdjustingPosition = !0, t.wheelTo(l, 0);
|
|
2626
|
+
}), a.translater.hooks.on(a.translater.hooks.eventTypes.translate, function(l) {
|
|
2627
|
+
t.rotateX(l.y);
|
|
2628
|
+
});
|
|
2629
|
+
}, r.prototype.refreshBoundary = function() {
|
|
2630
|
+
var t = this.scroll.scroller, e = t.scrollBehaviorX, o = t.scrollBehaviorY, i = t.content;
|
|
2631
|
+
e.refresh(i), o.refresh(i);
|
|
2632
|
+
}, r.prototype.setSelectedIndex = function(t, e) {
|
|
2633
|
+
e === void 0 && (e = !1);
|
|
2634
|
+
var o = this.selectedIndex;
|
|
2635
|
+
this.selectedIndex = t, o !== t && !e && this.scroll.trigger(St, t);
|
|
2636
|
+
}, r.prototype.getSelectedIndex = function() {
|
|
2637
|
+
return this.selectedIndex;
|
|
2638
|
+
}, r.prototype.wheelTo = function(t, e, o) {
|
|
2639
|
+
t === void 0 && (t = 0), e === void 0 && (e = 0);
|
|
2640
|
+
var i = -t * this.itemHeight;
|
|
2641
|
+
this.scroll.scrollTo(0, i, e, o);
|
|
2642
|
+
}, r.prototype.restorePosition = function() {
|
|
2643
|
+
var t = this.scroll.pending;
|
|
2644
|
+
if (t) {
|
|
2645
|
+
var e = this.getSelectedIndex();
|
|
2646
|
+
this.scroll.scroller.animater.clearTimer(), this.wheelTo(e, 0);
|
|
2647
|
+
}
|
|
2648
|
+
}, r.prototype.transitionDuration = function(t) {
|
|
2649
|
+
for (var e = 0; e < this.items.length; e++)
|
|
2650
|
+
this.items[e].style[d.transitionDuration] = t + "ms";
|
|
2651
|
+
}, r.prototype.timeFunction = function(t) {
|
|
2652
|
+
for (var e = 0; e < this.items.length; e++)
|
|
2653
|
+
this.items[e].style[d.transitionTimingFunction] = t;
|
|
2654
|
+
}, r.prototype.rotateX = function(t) {
|
|
2655
|
+
for (var e = this.options.rotate, o = e === void 0 ? 25 : e, i = 0; i < this.items.length; i++) {
|
|
2656
|
+
var s = o * (t / this.itemHeight + i), n = s.toFixed(3);
|
|
2657
|
+
this.items[i].style[d.transform] = "rotateX(" + n + "deg)";
|
|
2658
|
+
}
|
|
2659
|
+
}, r.prototype.findNearestValidWheel = function(t) {
|
|
2660
|
+
t = t > 0 ? 0 : t < this.scroll.maxScrollY ? this.scroll.maxScrollY : t;
|
|
2661
|
+
for (var e = Math.abs(Math.round(-t / this.itemHeight)), o = e, i = this.items, s = this.options.wheelDisabledItemClass; e >= 0 && z(i[e], s); )
|
|
2662
|
+
e--;
|
|
2663
|
+
if (e < 0)
|
|
2664
|
+
for (e = o; e <= i.length - 1 && z(i[e], s); )
|
|
2665
|
+
e++;
|
|
2666
|
+
return e === i.length && (e = o), {
|
|
2667
|
+
index: this.wheelItemsAllDisabled ? -1 : e,
|
|
2668
|
+
y: -e * this.itemHeight
|
|
2669
|
+
};
|
|
2670
|
+
}, r.prototype.checkWheelAllDisabled = function() {
|
|
2671
|
+
var t = this.options.wheelDisabledItemClass, e = this.items;
|
|
2672
|
+
this.wheelItemsAllDisabled = !0;
|
|
2673
|
+
for (var o = 0; o < e.length; o++)
|
|
2674
|
+
if (!z(e[o], t)) {
|
|
2675
|
+
this.wheelItemsAllDisabled = !1;
|
|
2676
|
+
break;
|
|
2677
|
+
}
|
|
2678
|
+
}, r.pluginName = "wheel", r;
|
|
2679
|
+
}()
|
|
2680
|
+
), $e = "plugins.zoom", Ze = [
|
|
2681
|
+
{
|
|
2682
|
+
key: "zoomTo",
|
|
2683
|
+
name: "zoomTo"
|
|
2684
|
+
}
|
|
2685
|
+
], je = Ze.map(function(r) {
|
|
2686
|
+
return {
|
|
2687
|
+
key: r.key,
|
|
2688
|
+
sourceKey: $e + "." + r.name
|
|
2689
|
+
};
|
|
2690
|
+
}), N = 2, R = 1, Ge = (
|
|
2691
|
+
/** @class */
|
|
2692
|
+
function() {
|
|
2693
|
+
function r(t) {
|
|
2694
|
+
this.scroll = t, this.scale = R, this.prevScale = 1, this.init();
|
|
2695
|
+
}
|
|
2696
|
+
return r.prototype.init = function() {
|
|
2697
|
+
this.handleBScroll(), this.handleOptions(), this.handleHooks(), this.tryInitialZoomTo(this.zoomOpt);
|
|
2698
|
+
}, r.prototype.zoomTo = function(t, e, o, i) {
|
|
2699
|
+
var s = this.resolveOrigin(e, o), n = s.originX, a = s.originY, h = {
|
|
2700
|
+
x: n,
|
|
2701
|
+
y: a,
|
|
2702
|
+
baseScale: this.scale
|
|
2703
|
+
};
|
|
2704
|
+
this._doZoomTo(t, h, i, !0);
|
|
2705
|
+
}, r.prototype.handleBScroll = function() {
|
|
2706
|
+
this.scroll.proxy(je), this.scroll.registerType([
|
|
2707
|
+
"beforeZoomStart",
|
|
2708
|
+
"zoomStart",
|
|
2709
|
+
"zooming",
|
|
2710
|
+
"zoomEnd"
|
|
2711
|
+
]);
|
|
2712
|
+
}, r.prototype.handleOptions = function() {
|
|
2713
|
+
var t = this.scroll.options.zoom === !0 ? {} : this.scroll.options.zoom, e = {
|
|
2714
|
+
start: 1,
|
|
2715
|
+
min: 1,
|
|
2716
|
+
max: 4,
|
|
2717
|
+
initialOrigin: [0, 0],
|
|
2718
|
+
minimalZoomDistance: 5,
|
|
2719
|
+
bounceTime: 800
|
|
2720
|
+
};
|
|
2721
|
+
this.zoomOpt = m(e, t);
|
|
2722
|
+
}, r.prototype.handleHooks = function() {
|
|
2723
|
+
var t = this, e = this.scroll, o = this.scroll.scroller;
|
|
2724
|
+
this.wrapper = this.scroll.scroller.wrapper, this.setTransformOrigin(this.scroll.scroller.content);
|
|
2725
|
+
var i = o.scrollBehaviorX, s = o.scrollBehaviorY;
|
|
2726
|
+
this.hooksFn = [], this.registerHooks(e.hooks, e.hooks.eventTypes.contentChanged, function(n) {
|
|
2727
|
+
t.setTransformOrigin(n), t.scale = R, t.tryInitialZoomTo(t.zoomOpt);
|
|
2728
|
+
}), this.registerHooks(e.hooks, e.hooks.eventTypes.beforeInitialScrollTo, function() {
|
|
2729
|
+
if (t.zoomOpt.start !== R)
|
|
2730
|
+
return !0;
|
|
2731
|
+
}), this.registerHooks(i.hooks, i.hooks.eventTypes.beforeComputeBoundary, function() {
|
|
2732
|
+
var n = D(t.scroll.scroller.content);
|
|
2733
|
+
i.contentSize = Math.floor(n.width * t.scale);
|
|
2734
|
+
}), this.registerHooks(s.hooks, s.hooks.eventTypes.beforeComputeBoundary, function() {
|
|
2735
|
+
var n = D(t.scroll.scroller.content);
|
|
2736
|
+
s.contentSize = Math.floor(n.height * t.scale);
|
|
2737
|
+
}), this.registerHooks(o.actions.hooks, o.actions.hooks.eventTypes.start, function(n) {
|
|
2738
|
+
var a = n.touches && n.touches.length || 0;
|
|
2739
|
+
t.fingersOperation(a), a === N && t.zoomStart(n);
|
|
2740
|
+
}), this.registerHooks(o.actions.hooks, o.actions.hooks.eventTypes.beforeMove, function(n) {
|
|
2741
|
+
var a = n.touches && n.touches.length || 0;
|
|
2742
|
+
if (t.fingersOperation(a), a === N)
|
|
2743
|
+
return t.zoom(n), !0;
|
|
2744
|
+
}), this.registerHooks(o.actions.hooks, o.actions.hooks.eventTypes.beforeEnd, function(n) {
|
|
2745
|
+
var a = t.fingersOperation();
|
|
2746
|
+
if (a === N)
|
|
2747
|
+
return t.zoomEnd(), !0;
|
|
2748
|
+
}), this.registerHooks(o.translater.hooks, o.translater.hooks.eventTypes.beforeTranslate, function(n, a) {
|
|
2749
|
+
var h = a.scale ? a.scale : t.prevScale;
|
|
2750
|
+
t.prevScale = h, n.push("scale(" + h + ")");
|
|
2751
|
+
}), this.registerHooks(o.hooks, o.hooks.eventTypes.scrollEnd, function() {
|
|
2752
|
+
t.fingersOperation() === N && t.scroll.trigger(t.scroll.eventTypes.zoomEnd, {
|
|
2753
|
+
scale: t.scale
|
|
2754
|
+
});
|
|
2755
|
+
}), this.registerHooks(this.scroll.hooks, "destroy", this.destroy);
|
|
2756
|
+
}, r.prototype.setTransformOrigin = function(t) {
|
|
2757
|
+
t.style[d.transformOrigin] = "0 0";
|
|
2758
|
+
}, r.prototype.tryInitialZoomTo = function(t) {
|
|
2759
|
+
var e = t.start, o = t.initialOrigin, i = this.scroll.scroller, s = i.scrollBehaviorX, n = i.scrollBehaviorY;
|
|
2760
|
+
e !== R && (this.resetBoundaries([s, n]), this.zoomTo(e, o[0], o[1], 0));
|
|
2761
|
+
}, r.prototype.fingersOperation = function(t) {
|
|
2762
|
+
if (typeof t == "number")
|
|
2763
|
+
this.numberOfFingers = t;
|
|
2764
|
+
else
|
|
2765
|
+
return this.numberOfFingers;
|
|
2766
|
+
}, r.prototype._doZoomTo = function(t, e, o, i) {
|
|
2767
|
+
var s = this;
|
|
2768
|
+
o === void 0 && (o = this.zoomOpt.bounceTime), i === void 0 && (i = !1);
|
|
2769
|
+
var n = this.zoomOpt, a = n.min, h = n.max, l = this.scale, c = g(t, a, h);
|
|
2770
|
+
(function() {
|
|
2771
|
+
if (o === 0) {
|
|
2772
|
+
s.scroll.trigger(s.scroll.eventTypes.zooming, {
|
|
2773
|
+
scale: c
|
|
2774
|
+
});
|
|
2775
|
+
return;
|
|
2776
|
+
}
|
|
2777
|
+
if (o > 0) {
|
|
2778
|
+
var p, u = S(), f = u + o, v = function() {
|
|
2779
|
+
var k = S();
|
|
2780
|
+
if (k >= f) {
|
|
2781
|
+
s.scroll.trigger(s.scroll.eventTypes.zooming, {
|
|
2782
|
+
scale: c
|
|
2783
|
+
}), B(p);
|
|
2784
|
+
return;
|
|
2785
|
+
}
|
|
2786
|
+
var Y = y.bounce.fn((k - u) / o), j = Y * (c - l) + l;
|
|
2787
|
+
s.scroll.trigger(s.scroll.eventTypes.zooming, {
|
|
2788
|
+
scale: j
|
|
2789
|
+
}), p = lt(v);
|
|
2790
|
+
};
|
|
2791
|
+
v();
|
|
2792
|
+
}
|
|
2793
|
+
})(), this.fingersOperation(2), this._zoomTo(c, l, e, o, i);
|
|
2794
|
+
}, r.prototype._zoomTo = function(t, e, o, i, s) {
|
|
2795
|
+
s === void 0 && (s = !1);
|
|
2796
|
+
var n = t / o.baseScale;
|
|
2797
|
+
this.setScale(t);
|
|
2798
|
+
var a = this.scroll.scroller, h = a.scrollBehaviorX, l = a.scrollBehaviorY;
|
|
2799
|
+
this.resetBoundaries([h, l]);
|
|
2800
|
+
var c = this.getNewPos(o.x, n, h, !0, s), p = this.getNewPos(o.y, n, l, !0, s);
|
|
2801
|
+
(h.currentPos !== Math.round(c) || l.currentPos !== Math.round(p) || t !== e) && a.scrollTo(c, p, i, y.bounce, {
|
|
2802
|
+
start: {
|
|
2803
|
+
scale: e
|
|
2804
|
+
},
|
|
2805
|
+
end: {
|
|
2806
|
+
scale: t
|
|
2807
|
+
}
|
|
2808
|
+
});
|
|
2809
|
+
}, r.prototype.resolveOrigin = function(t, e) {
|
|
2810
|
+
var o = this.scroll.scroller, i = o.scrollBehaviorX, s = o.scrollBehaviorY, n = {
|
|
2811
|
+
left: function() {
|
|
2812
|
+
return 0;
|
|
2813
|
+
},
|
|
2814
|
+
top: function() {
|
|
2815
|
+
return 0;
|
|
2816
|
+
},
|
|
2817
|
+
right: function() {
|
|
2818
|
+
return i.contentSize;
|
|
2819
|
+
},
|
|
2820
|
+
bottom: function() {
|
|
2821
|
+
return s.contentSize;
|
|
2822
|
+
},
|
|
2823
|
+
center: function(a) {
|
|
2824
|
+
var h = a === 0 ? i.contentSize : s.contentSize;
|
|
2825
|
+
return h / 2;
|
|
2826
|
+
}
|
|
2827
|
+
};
|
|
2828
|
+
return {
|
|
2829
|
+
originX: typeof t == "number" ? t : n[t](0),
|
|
2830
|
+
originY: typeof e == "number" ? e : n[e](1)
|
|
2831
|
+
};
|
|
2832
|
+
}, r.prototype.zoomStart = function(t) {
|
|
2833
|
+
var e = t.touches[0], o = t.touches[1];
|
|
2834
|
+
this.startDistance = this.getFingerDistance(t), this.startScale = this.scale;
|
|
2835
|
+
var i = Rt(this.wrapper), s = i.left, n = i.top;
|
|
2836
|
+
this.origin = {
|
|
2837
|
+
x: Math.abs(e.pageX + o.pageX) / 2 + s - this.scroll.x,
|
|
2838
|
+
y: Math.abs(e.pageY + o.pageY) / 2 + n - this.scroll.y,
|
|
2839
|
+
baseScale: this.startScale
|
|
2840
|
+
}, this.scroll.trigger(this.scroll.eventTypes.beforeZoomStart);
|
|
2841
|
+
}, r.prototype.zoom = function(t) {
|
|
2842
|
+
var e = this.getFingerDistance(t);
|
|
2843
|
+
if (!(!this.zoomed && Math.abs(e - this.startDistance) < this.zoomOpt.minimalZoomDistance)) {
|
|
2844
|
+
var o = this.dampingScale(e / this.startDistance * this.startScale), i = o / this.startScale;
|
|
2845
|
+
this.setScale(o), this.zoomed || (this.zoomed = !0, this.scroll.trigger(this.scroll.eventTypes.zoomStart));
|
|
2846
|
+
var s = this.scroll.scroller, n = s.scrollBehaviorX, a = s.scrollBehaviorY, h = this.getNewPos(this.origin.x, i, n, !1, !1), l = this.getNewPos(this.origin.y, i, a, !1, !1);
|
|
2847
|
+
this.scroll.trigger(this.scroll.eventTypes.zooming, {
|
|
2848
|
+
scale: this.scale
|
|
2849
|
+
}), s.translater.translate({ x: h, y: l, scale: o });
|
|
2850
|
+
}
|
|
2851
|
+
}, r.prototype.zoomEnd = function() {
|
|
2852
|
+
if (this.zoomed) {
|
|
2853
|
+
if (this.shouldRebound()) {
|
|
2854
|
+
this._doZoomTo(this.scale, this.origin, this.zoomOpt.bounceTime);
|
|
2855
|
+
return;
|
|
2856
|
+
}
|
|
2857
|
+
this.scroll.trigger(this.scroll.eventTypes.zoomEnd, { scale: this.scale });
|
|
2858
|
+
}
|
|
2859
|
+
}, r.prototype.getFingerDistance = function(t) {
|
|
2860
|
+
var e = t.touches[0], o = t.touches[1], i = Math.abs(e.pageX - o.pageX), s = Math.abs(e.pageY - o.pageY);
|
|
2861
|
+
return _t(i, s);
|
|
2862
|
+
}, r.prototype.shouldRebound = function() {
|
|
2863
|
+
var t = this.zoomOpt, e = t.min, o = t.max, i = this.scale;
|
|
2864
|
+
if (i !== g(i, e, o))
|
|
2865
|
+
return !0;
|
|
2866
|
+
var s = this.scroll.scroller, n = s.scrollBehaviorX, a = s.scrollBehaviorY;
|
|
2867
|
+
this.resetBoundaries([n, a]);
|
|
2868
|
+
var h = n.checkInBoundary().inBoundary, l = n.checkInBoundary().inBoundary;
|
|
2869
|
+
return !(h && l);
|
|
2870
|
+
}, r.prototype.dampingScale = function(t) {
|
|
2871
|
+
var e = this.zoomOpt, o = e.min, i = e.max;
|
|
2872
|
+
return t < o ? t = 0.5 * o * Math.pow(2, t / o) : t > i && (t = 2 * i * Math.pow(0.5, i / t)), t;
|
|
2873
|
+
}, r.prototype.setScale = function(t) {
|
|
2874
|
+
this.scale = t;
|
|
2875
|
+
}, r.prototype.resetBoundaries = function(t) {
|
|
2876
|
+
t.forEach(function(e) {
|
|
2877
|
+
return e.computeBoundary();
|
|
2878
|
+
});
|
|
2879
|
+
}, r.prototype.getNewPos = function(t, e, o, i, s) {
|
|
2880
|
+
s === void 0 && (s = !1);
|
|
2881
|
+
var n = t - t * e + (s ? o.currentPos : o.startPos);
|
|
2882
|
+
return i && (n = g(n, o.maxScrollPos, o.minScrollPos)), n > 0 ? Math.floor(n) : Math.ceil(n);
|
|
2883
|
+
}, r.prototype.registerHooks = function(t, e, o) {
|
|
2884
|
+
t.on(e, o, this), this.hooksFn.push([t, e, o]);
|
|
2885
|
+
}, r.prototype.destroy = function() {
|
|
2886
|
+
this.hooksFn.forEach(function(t) {
|
|
2887
|
+
var e = t[0], o = t[1], i = t[2];
|
|
2888
|
+
e.off(o, i);
|
|
2889
|
+
}), this.hooksFn.length = 0;
|
|
2890
|
+
}, r.pluginName = "zoom", r;
|
|
2891
|
+
}()
|
|
2892
|
+
), qe = (
|
|
2893
|
+
/** @class */
|
|
2894
|
+
function() {
|
|
2895
|
+
function r(t) {
|
|
2896
|
+
this.ancestors = [], this.descendants = [], this.hooksManager = [], this.analyzed = !1, this.selfScroll = t;
|
|
2897
|
+
}
|
|
2898
|
+
return r.create = function(t) {
|
|
2899
|
+
return new r(t);
|
|
2900
|
+
}, r.prototype.hasAncestors = function(t) {
|
|
2901
|
+
var e = O(this.ancestors, function(o) {
|
|
2902
|
+
var i = o[0];
|
|
2903
|
+
return i === t;
|
|
2904
|
+
});
|
|
2905
|
+
return e > -1;
|
|
2906
|
+
}, r.prototype.hasDescendants = function(t) {
|
|
2907
|
+
var e = O(this.descendants, function(o) {
|
|
2908
|
+
var i = o[0];
|
|
2909
|
+
return i === t;
|
|
2910
|
+
});
|
|
2911
|
+
return e > -1;
|
|
2912
|
+
}, r.prototype.addAncestor = function(t, e) {
|
|
2913
|
+
var o = this.ancestors;
|
|
2914
|
+
o.push([t, e]), o.sort(function(i, s) {
|
|
2915
|
+
return i[1] - s[1];
|
|
2916
|
+
});
|
|
2917
|
+
}, r.prototype.addDescendant = function(t, e) {
|
|
2918
|
+
var o = this.descendants;
|
|
2919
|
+
o.push([t, e]), o.sort(function(i, s) {
|
|
2920
|
+
return i[1] - s[1];
|
|
2921
|
+
});
|
|
2922
|
+
}, r.prototype.removeAncestor = function(t) {
|
|
2923
|
+
var e = this.ancestors;
|
|
2924
|
+
if (e.length) {
|
|
2925
|
+
var o = O(this.ancestors, function(i) {
|
|
2926
|
+
var s = i[0];
|
|
2927
|
+
return s === t;
|
|
2928
|
+
});
|
|
2929
|
+
if (o > -1)
|
|
2930
|
+
return e.splice(o, 1);
|
|
2931
|
+
}
|
|
2932
|
+
}, r.prototype.removeDescendant = function(t) {
|
|
2933
|
+
var e = this.descendants;
|
|
2934
|
+
if (e.length) {
|
|
2935
|
+
var o = O(this.descendants, function(i) {
|
|
2936
|
+
var s = i[0];
|
|
2937
|
+
return s === t;
|
|
2938
|
+
});
|
|
2939
|
+
if (o > -1)
|
|
2940
|
+
return e.splice(o, 1);
|
|
2941
|
+
}
|
|
2942
|
+
}, r.prototype.registerHooks = function(t, e, o) {
|
|
2943
|
+
t.on(e, o), this.hooksManager.push([t, e, o]);
|
|
2944
|
+
}, r.prototype.setAnalyzed = function(t) {
|
|
2945
|
+
t === void 0 && (t = !1), this.analyzed = t;
|
|
2946
|
+
}, r.prototype.purge = function() {
|
|
2947
|
+
var t = this;
|
|
2948
|
+
this.ancestors.forEach(function(e) {
|
|
2949
|
+
var o = e[0];
|
|
2950
|
+
o.removeDescendant(t);
|
|
2951
|
+
}), this.descendants.forEach(function(e) {
|
|
2952
|
+
var o = e[0];
|
|
2953
|
+
o.removeAncestor(t);
|
|
2954
|
+
}), this.hooksManager.forEach(function(e) {
|
|
2955
|
+
var o = e[0], i = e[1], s = e[2];
|
|
2956
|
+
o.off(i, s);
|
|
2957
|
+
}), this.hooksManager = [];
|
|
2958
|
+
}, r;
|
|
2959
|
+
}()
|
|
2960
|
+
), Je = "plugins.nestedScroll", Qe = [
|
|
2961
|
+
{
|
|
2962
|
+
key: "purgeNestedScroll",
|
|
2963
|
+
name: "purgeNestedScroll"
|
|
2964
|
+
}
|
|
2965
|
+
], to = Qe.map(function(r) {
|
|
2966
|
+
return {
|
|
2967
|
+
key: r.key,
|
|
2968
|
+
sourceKey: Je + "." + r.name
|
|
2969
|
+
};
|
|
2970
|
+
}), eo = "INTERNAL_NESTED_SCROLL", oo = function(r) {
|
|
2971
|
+
r.forEach(function(t) {
|
|
2972
|
+
t.pending && (t.stop(), t.resetPosition());
|
|
2973
|
+
});
|
|
2974
|
+
}, Pt = function(r) {
|
|
2975
|
+
r.forEach(function(t) {
|
|
2976
|
+
t.enable();
|
|
2977
|
+
});
|
|
2978
|
+
}, W = function(r, t) {
|
|
2979
|
+
r.forEach(function(e) {
|
|
2980
|
+
(e.hasHorizontalScroll === t.hasHorizontalScroll || e.hasVerticalScroll === t.hasVerticalScroll) && e.disable();
|
|
2981
|
+
});
|
|
2982
|
+
}, ro = function(r) {
|
|
2983
|
+
r.forEach(function(t) {
|
|
2984
|
+
var e = t.scroller, o = e.actions, i = e.scrollBehaviorX, s = e.scrollBehaviorY;
|
|
2985
|
+
o.fingerMoved = !0, o.contentMoved = !1, o.directionLockAction.reset(), i.start(), s.start(), i.resetStartPos(), s.resetStartPos(), o.startTime = +/* @__PURE__ */ new Date();
|
|
2986
|
+
});
|
|
2987
|
+
}, io = function(r) {
|
|
2988
|
+
var t = r.hasHorizontalScroll, e = r.hasVerticalScroll, o = r.x, i = r.y, s = r.minScrollX, n = r.maxScrollX, a = r.minScrollY, h = r.maxScrollY, l = r.movingDirectionX, c = r.movingDirectionY, p = !1, u = o >= s && l === -1, f = o <= n && l === 1, v = i >= a && c === -1, k = i <= h && c === 1;
|
|
2989
|
+
return e ? p = v || k : t && (p = u || f), p;
|
|
2990
|
+
}, so = function(r) {
|
|
2991
|
+
var t = r.hasHorizontalScroll, e = r.hasVerticalScroll, o = r.x, i = r.y, s = r.minScrollX, n = r.maxScrollX, a = r.minScrollY, h = r.maxScrollY, l = !1, c = o > s, p = o < n, u = i > a, f = i < h;
|
|
2992
|
+
return e ? l = u || f : t && (l = c || p), l;
|
|
2993
|
+
}, no = function(r) {
|
|
2994
|
+
r.scroller.reflow(), r.resetPosition(
|
|
2995
|
+
0
|
|
2996
|
+
/* Immediately */
|
|
2997
|
+
);
|
|
2998
|
+
}, ao = function(r, t) {
|
|
2999
|
+
for (var e = 0, o = r.parentNode; o && o !== t; )
|
|
3000
|
+
e++, o = o.parentNode;
|
|
3001
|
+
return e;
|
|
3002
|
+
}, lo = (
|
|
3003
|
+
/** @class */
|
|
3004
|
+
function() {
|
|
3005
|
+
function r(t) {
|
|
3006
|
+
var e = this.handleOptions(t), o = r.instancesMap[e];
|
|
3007
|
+
return o || (o = r.instancesMap[e] = this, o.store = [], o.hooksFn = []), o.init(t), o;
|
|
3008
|
+
}
|
|
3009
|
+
return r.getAllNestedScrolls = function() {
|
|
3010
|
+
var t = r.instancesMap;
|
|
3011
|
+
return Object.keys(t).map(function(e) {
|
|
3012
|
+
return t[e];
|
|
3013
|
+
});
|
|
3014
|
+
}, r.purgeAllNestedScrolls = function() {
|
|
3015
|
+
var t = r.getAllNestedScrolls();
|
|
3016
|
+
t.forEach(function(e) {
|
|
3017
|
+
return e.purgeNestedScroll();
|
|
3018
|
+
});
|
|
3019
|
+
}, r.prototype.handleOptions = function(t) {
|
|
3020
|
+
var e = t.options.nestedScroll === !0 ? {} : t.options.nestedScroll, o = {
|
|
3021
|
+
groupId: eo
|
|
3022
|
+
};
|
|
3023
|
+
this.options = m(o, e);
|
|
3024
|
+
var i = typeof this.options.groupId;
|
|
3025
|
+
return i !== "string" && i !== "number" && P("groupId must be string or number for NestedScroll plugin"), this.options.groupId;
|
|
3026
|
+
}, r.prototype.init = function(t) {
|
|
3027
|
+
t.proxy(to), this.addBScroll(t), this.buildBScrollGraph(), this.analyzeBScrollGraph(), this.ensureEventInvokeSequence(), this.handleHooks(t);
|
|
3028
|
+
}, r.prototype.handleHooks = function(t) {
|
|
3029
|
+
var e = this;
|
|
3030
|
+
this.registerHooks(t.hooks, t.hooks.eventTypes.destroy, function() {
|
|
3031
|
+
e.deleteScroll(t);
|
|
3032
|
+
});
|
|
3033
|
+
}, r.prototype.deleteScroll = function(t) {
|
|
3034
|
+
var e = t.wrapper;
|
|
3035
|
+
e.isBScrollContainer = void 0;
|
|
3036
|
+
var o = this.store, i = this.hooksFn, s = O(o, function(u) {
|
|
3037
|
+
return u.selfScroll === t;
|
|
3038
|
+
});
|
|
3039
|
+
if (s > -1) {
|
|
3040
|
+
var n = o[s];
|
|
3041
|
+
n.purge(), o.splice(s, 1);
|
|
3042
|
+
}
|
|
3043
|
+
var a = O(i, function(u) {
|
|
3044
|
+
var f = u[0];
|
|
3045
|
+
return f === t.hooks;
|
|
3046
|
+
});
|
|
3047
|
+
if (a > -1) {
|
|
3048
|
+
var h = i[a], l = h[0], c = h[1], p = h[2];
|
|
3049
|
+
l.off(c, p), i.splice(a, 1);
|
|
3050
|
+
}
|
|
3051
|
+
}, r.prototype.addBScroll = function(t) {
|
|
3052
|
+
this.store.push(qe.create(t));
|
|
3053
|
+
}, r.prototype.buildBScrollGraph = function() {
|
|
3054
|
+
for (var t = this.store, e, o, i, s, n = this.store.length, a = 0; a < n; a++) {
|
|
3055
|
+
e = t[a], i = e.selfScroll.wrapper;
|
|
3056
|
+
for (var h = 0; h < n; h++)
|
|
3057
|
+
if (o = t[h], s = o.selfScroll.wrapper, e !== o && i.contains(s)) {
|
|
3058
|
+
var l = ao(s, i);
|
|
3059
|
+
e.hasDescendants(o) || e.addDescendant(o, l), o.hasAncestors(e) || o.addAncestor(e, l);
|
|
3060
|
+
}
|
|
3061
|
+
}
|
|
3062
|
+
}, r.prototype.analyzeBScrollGraph = function() {
|
|
3063
|
+
this.store.forEach(function(t) {
|
|
3064
|
+
if (!t.analyzed) {
|
|
3065
|
+
var e = t.ancestors, o = t.descendants, i = t.selfScroll, s = function() {
|
|
3066
|
+
var h = e.map(function(c) {
|
|
3067
|
+
var p = c[0];
|
|
3068
|
+
return p.selfScroll;
|
|
3069
|
+
}), l = o.map(function(c) {
|
|
3070
|
+
var p = c[0];
|
|
3071
|
+
return p.selfScroll;
|
|
3072
|
+
});
|
|
3073
|
+
oo(U(h, l)), so(i) && no(i), ro(h), W(h, i);
|
|
3074
|
+
}, n = function() {
|
|
3075
|
+
var h = e.map(function(c) {
|
|
3076
|
+
var p = c[0];
|
|
3077
|
+
return p.selfScroll;
|
|
3078
|
+
}), l = o.map(function(c) {
|
|
3079
|
+
var p = c[0];
|
|
3080
|
+
return p.selfScroll;
|
|
3081
|
+
});
|
|
3082
|
+
Pt(U(h, l));
|
|
3083
|
+
};
|
|
3084
|
+
t.registerHooks(i, i.eventTypes.beforeScrollStart, s), t.registerHooks(i, i.eventTypes.touchEnd, n);
|
|
3085
|
+
var a = i.scroller.actions.hooks;
|
|
3086
|
+
t.registerHooks(a, a.eventTypes.detectMovingDirection, function() {
|
|
3087
|
+
var h = e.map(function(f) {
|
|
3088
|
+
var v = f[0];
|
|
3089
|
+
return v.selfScroll;
|
|
3090
|
+
}), l = h[0], c = h.slice(1), p = i.scroller.actions.contentMoved, u = h.length === 0;
|
|
3091
|
+
if (p)
|
|
3092
|
+
W(h, i);
|
|
3093
|
+
else if (!u && io(i))
|
|
3094
|
+
return W([i], i), l && Pt([l]), W(c, i), !0;
|
|
3095
|
+
}), t.setAnalyzed(!0);
|
|
3096
|
+
}
|
|
3097
|
+
});
|
|
3098
|
+
}, r.prototype.ensureEventInvokeSequence = function() {
|
|
3099
|
+
var t = this.store.slice(), e = t.sort(function(o, i) {
|
|
3100
|
+
return o.descendants.length - i.descendants.length;
|
|
3101
|
+
});
|
|
3102
|
+
e.forEach(function(o) {
|
|
3103
|
+
var i = o.selfScroll;
|
|
3104
|
+
i.scroller.actionsHandler.rebindDOMEvents();
|
|
3105
|
+
});
|
|
3106
|
+
}, r.prototype.registerHooks = function(t, e, o) {
|
|
3107
|
+
t.on(e, o, this), this.hooksFn.push([t, e, o]);
|
|
3108
|
+
}, r.prototype.purgeNestedScroll = function() {
|
|
3109
|
+
var t = this.options.groupId;
|
|
3110
|
+
this.store.forEach(function(e) {
|
|
3111
|
+
e.purge();
|
|
3112
|
+
}), this.store = [], this.hooksFn.forEach(function(e) {
|
|
3113
|
+
var o = e[0], i = e[1], s = e[2];
|
|
3114
|
+
o.off(i, s);
|
|
3115
|
+
}), this.hooksFn = [], delete r.instancesMap[t];
|
|
3116
|
+
}, r.pluginName = "nestedScroll", r.instancesMap = {}, r;
|
|
3117
|
+
}()
|
|
3118
|
+
), bt = 10, wt = 30, ho = (
|
|
3119
|
+
/** @class */
|
|
3120
|
+
function() {
|
|
3121
|
+
function r(t, e) {
|
|
3122
|
+
this.wrapperHeight = t, this.tombstoneHeight = e, this.lastDirection = 1, this.lastPos = 0;
|
|
3123
|
+
}
|
|
3124
|
+
return r.prototype.calculate = function(t, e) {
|
|
3125
|
+
var o = t - this.lastPos;
|
|
3126
|
+
this.lastPos = t;
|
|
3127
|
+
var i = this.getDirection(o), s = this.calculateIndex(0, t, e), n = this.calculateIndex(s, t + this.wrapperHeight, e);
|
|
3128
|
+
return i === 1 ? (s -= bt, n += wt) : (s -= wt, n += bt), s < 0 && (s = 0), {
|
|
3129
|
+
start: s,
|
|
3130
|
+
end: n
|
|
3131
|
+
};
|
|
3132
|
+
}, r.prototype.getDirection = function(t) {
|
|
3133
|
+
var e;
|
|
3134
|
+
if (t > 0)
|
|
3135
|
+
e = 1;
|
|
3136
|
+
else if (t < 0)
|
|
3137
|
+
e = 0;
|
|
3138
|
+
else
|
|
3139
|
+
return this.lastDirection;
|
|
3140
|
+
return this.lastDirection = e, e;
|
|
3141
|
+
}, r.prototype.calculateIndex = function(t, e, o) {
|
|
3142
|
+
if (e <= 0)
|
|
3143
|
+
return t;
|
|
3144
|
+
for (var i = t, s = o[i] && o[i].pos !== -1 ? o[i].pos : 0, n = s, a = 0; i < o.length && o[i].pos < e; )
|
|
3145
|
+
n = o[i].pos, i++;
|
|
3146
|
+
return i === o.length && (a = Math.floor((e - n) / this.tombstoneHeight)), i += a, i;
|
|
3147
|
+
}, r.prototype.resetState = function() {
|
|
3148
|
+
this.lastDirection = 1, this.lastPos = 0;
|
|
3149
|
+
}, r;
|
|
3150
|
+
}()
|
|
3151
|
+
), co = (
|
|
3152
|
+
/** @class */
|
|
3153
|
+
function() {
|
|
3154
|
+
function r() {
|
|
3155
|
+
this.data = null, this.dom = null, this.tombstone = null, this.width = 0, this.height = 0, this.pos = 0;
|
|
3156
|
+
}
|
|
3157
|
+
return r;
|
|
3158
|
+
}()
|
|
3159
|
+
), po = (
|
|
3160
|
+
/** @class */
|
|
3161
|
+
function() {
|
|
3162
|
+
function r(t, e, o) {
|
|
3163
|
+
this.fetchFn = e, this.onFetchFinish = o, this.loadedNum = 0, this.fetching = !1, this.hasMore = !0, this.list = t || [];
|
|
3164
|
+
}
|
|
3165
|
+
return r.prototype.update = function(t) {
|
|
3166
|
+
return G(this, void 0, void 0, function() {
|
|
3167
|
+
var e;
|
|
3168
|
+
return q(this, function(o) {
|
|
3169
|
+
return this.hasMore || (t = Math.min(t, this.list.length)), t > this.list.length && (e = t - this.list.length, this.addEmptyData(e)), [2, this.checkToFetch(t)];
|
|
3170
|
+
});
|
|
3171
|
+
});
|
|
3172
|
+
}, r.prototype.add = function(t) {
|
|
3173
|
+
for (var e = 0; e < t.length; e++)
|
|
3174
|
+
this.list[this.loadedNum] ? this.list[this.loadedNum] = b(b({}, this.list[this.loadedNum]), { data: t[e] }) : this.list[this.loadedNum] = { data: t[e] }, this.loadedNum++;
|
|
3175
|
+
return this.list;
|
|
3176
|
+
}, r.prototype.addEmptyData = function(t) {
|
|
3177
|
+
for (var e = 0; e < t; e++)
|
|
3178
|
+
this.list.push(new co());
|
|
3179
|
+
return this.list;
|
|
3180
|
+
}, r.prototype.fetch = function(t) {
|
|
3181
|
+
return G(this, void 0, void 0, function() {
|
|
3182
|
+
var e;
|
|
3183
|
+
return q(this, function(o) {
|
|
3184
|
+
switch (o.label) {
|
|
3185
|
+
case 0:
|
|
3186
|
+
return this.fetching ? [2, []] : (this.fetching = !0, [4, this.fetchFn(t)]);
|
|
3187
|
+
case 1:
|
|
3188
|
+
return e = o.sent(), this.fetching = !1, [2, e];
|
|
3189
|
+
}
|
|
3190
|
+
});
|
|
3191
|
+
});
|
|
3192
|
+
}, r.prototype.checkToFetch = function(t) {
|
|
3193
|
+
return G(this, void 0, void 0, function() {
|
|
3194
|
+
var e, o, i;
|
|
3195
|
+
return q(this, function(s) {
|
|
3196
|
+
switch (s.label) {
|
|
3197
|
+
case 0:
|
|
3198
|
+
return this.hasMore ? t <= this.loadedNum ? [
|
|
3199
|
+
2
|
|
3200
|
+
/*return*/
|
|
3201
|
+
] : (e = t - this.loadedNum, [4, this.fetch(e)]) : [
|
|
3202
|
+
2
|
|
3203
|
+
/*return*/
|
|
3204
|
+
];
|
|
3205
|
+
case 1:
|
|
3206
|
+
return o = s.sent(), o instanceof Array && o.length ? (this.add(o), i = this.onFetchFinish(this.list, !0), [2, this.checkToFetch(i)]) : (typeof o == "boolean" && o === !1 && (this.hasMore = !1, this.list.splice(this.loadedNum), this.onFetchFinish(this.list, !1)), [
|
|
3207
|
+
2
|
|
3208
|
+
/*return*/
|
|
3209
|
+
]);
|
|
3210
|
+
}
|
|
3211
|
+
});
|
|
3212
|
+
});
|
|
3213
|
+
}, r.prototype.getList = function() {
|
|
3214
|
+
return this.list;
|
|
3215
|
+
}, r.prototype.resetState = function() {
|
|
3216
|
+
this.loadedNum = 0, this.fetching = !1, this.hasMore = !0, this.list = [];
|
|
3217
|
+
}, r;
|
|
3218
|
+
}()
|
|
3219
|
+
), K = (
|
|
3220
|
+
/** @class */
|
|
3221
|
+
function() {
|
|
3222
|
+
function r(t) {
|
|
3223
|
+
this.create = t, this.cached = [], this.width = 0, this.height = 0, this.initialed = !1, this.getSize();
|
|
3224
|
+
}
|
|
3225
|
+
return r.isTombstone = function(t) {
|
|
3226
|
+
return t && t.classList ? t.classList.contains("tombstone") : !1;
|
|
3227
|
+
}, r.prototype.getSize = function() {
|
|
3228
|
+
if (!this.initialed) {
|
|
3229
|
+
var t = this.create();
|
|
3230
|
+
t.style.position = "absolute", document.body.appendChild(t), t.style.display = "", this.height = t.offsetHeight, this.width = t.offsetWidth, document.body.removeChild(t), this.cached.push(t);
|
|
3231
|
+
}
|
|
3232
|
+
}, r.prototype.getOne = function() {
|
|
3233
|
+
var t = this.cached.pop();
|
|
3234
|
+
if (t) {
|
|
3235
|
+
var e = t.style;
|
|
3236
|
+
return e.display = "", e.opacity = "1", e[d.transform] = "", e[d.transition] = "", t;
|
|
3237
|
+
}
|
|
3238
|
+
return this.create();
|
|
3239
|
+
}, r.prototype.recycle = function(t) {
|
|
3240
|
+
for (var e = 0, o = t; e < o.length; e++) {
|
|
3241
|
+
var i = o[e];
|
|
3242
|
+
i.style.display = "none", this.cached.push(i);
|
|
3243
|
+
}
|
|
3244
|
+
return this.cached;
|
|
3245
|
+
}, r.prototype.recycleOne = function(t) {
|
|
3246
|
+
return this.cached.push(t), this.cached;
|
|
3247
|
+
}, r;
|
|
3248
|
+
}()
|
|
3249
|
+
), ot = 200, uo = (
|
|
3250
|
+
/** @class */
|
|
3251
|
+
function() {
|
|
3252
|
+
function r(t, e, o) {
|
|
3253
|
+
this.renderFn = e, this.tombstone = o, this.unusedDom = [], this.timers = [], this.setContent(t);
|
|
3254
|
+
}
|
|
3255
|
+
return r.prototype.update = function(t, e, o) {
|
|
3256
|
+
e >= t.length && (e = t.length - 1), o > t.length && (o = t.length), this.collectUnusedDom(t, e, o), this.createDom(t, e, o), this.cacheHeight(t, e, o);
|
|
3257
|
+
var i = this.positionDom(t, e, o), s = i.startPos, n = i.startDelta, a = i.endPos;
|
|
3258
|
+
return {
|
|
3259
|
+
start: e,
|
|
3260
|
+
startPos: s,
|
|
3261
|
+
startDelta: n,
|
|
3262
|
+
end: o,
|
|
3263
|
+
endPos: a
|
|
3264
|
+
};
|
|
3265
|
+
}, r.prototype.collectUnusedDom = function(t, e, o) {
|
|
3266
|
+
for (var i = 0; i < t.length; i++) {
|
|
3267
|
+
if (i === e) {
|
|
3268
|
+
i = o - 1;
|
|
3269
|
+
continue;
|
|
3270
|
+
}
|
|
3271
|
+
if (t[i].dom) {
|
|
3272
|
+
var s = t[i].dom;
|
|
3273
|
+
K.isTombstone(s) ? (this.tombstone.recycleOne(s), s.style.display = "none") : this.unusedDom.push(s), t[i].dom = null;
|
|
3274
|
+
}
|
|
3275
|
+
}
|
|
3276
|
+
return t;
|
|
3277
|
+
}, r.prototype.createDom = function(t, e, o) {
|
|
3278
|
+
for (var i = e; i < o; i++) {
|
|
3279
|
+
var s = t[i].dom, n = t[i].data;
|
|
3280
|
+
if (s)
|
|
3281
|
+
if (K.isTombstone(s) && n)
|
|
3282
|
+
t[i].tombstone = s, t[i].dom = null;
|
|
3283
|
+
else
|
|
3284
|
+
continue;
|
|
3285
|
+
s = n ? this.renderFn(n, this.unusedDom.pop()) : this.tombstone.getOne(), s.style.position = "absolute", t[i].dom = s, t[i].pos = -1, this.content.appendChild(s);
|
|
3286
|
+
}
|
|
3287
|
+
}, r.prototype.cacheHeight = function(t, e, o) {
|
|
3288
|
+
for (var i = e; i < o; i++)
|
|
3289
|
+
t[i].data && !t[i].height && (t[i].height = t[i].dom.offsetHeight);
|
|
3290
|
+
}, r.prototype.positionDom = function(t, e, o) {
|
|
3291
|
+
for (var i = this, s = [], n = this.getStartPos(t, e, o), a = n.start, h = n.delta, l = a, c = e; c < o; c++) {
|
|
3292
|
+
var p = t[c].tombstone;
|
|
3293
|
+
if (p) {
|
|
3294
|
+
var u = p.style;
|
|
3295
|
+
u[d.transition] = Wt + "transform " + ot + "ms, opacity " + ot + "ms", u[d.transform] = "translateY(" + l + "px)", u.opacity = "0", t[c].tombstone = null, s.push(p);
|
|
3296
|
+
}
|
|
3297
|
+
t[c].dom && t[c].pos !== l && (t[c].dom.style[d.transform] = "translateY(" + l + "px)", t[c].pos = l), l += t[c].height || this.tombstone.height;
|
|
3298
|
+
}
|
|
3299
|
+
var f = window.setTimeout(function() {
|
|
3300
|
+
i.tombstone.recycle(s);
|
|
3301
|
+
}, ot);
|
|
3302
|
+
return this.timers.push(f), {
|
|
3303
|
+
startPos: a,
|
|
3304
|
+
startDelta: h,
|
|
3305
|
+
endPos: l
|
|
3306
|
+
};
|
|
3307
|
+
}, r.prototype.getStartPos = function(t, e, o) {
|
|
3308
|
+
if (t[e] && t[e].pos !== -1)
|
|
3309
|
+
return {
|
|
3310
|
+
start: t[e].pos,
|
|
3311
|
+
delta: 0
|
|
3312
|
+
};
|
|
3313
|
+
for (var i = t[0].pos === -1 ? 0 : t[0].pos, s = 0; s < e; s++)
|
|
3314
|
+
i += t[s].height || this.tombstone.height;
|
|
3315
|
+
var n = i, a;
|
|
3316
|
+
for (a = e; a < o; a++)
|
|
3317
|
+
if (!K.isTombstone(t[a].dom) && t[a].pos !== -1) {
|
|
3318
|
+
i = t[a].pos;
|
|
3319
|
+
break;
|
|
3320
|
+
}
|
|
3321
|
+
var h = a;
|
|
3322
|
+
if (h < o)
|
|
3323
|
+
for (; h > e; )
|
|
3324
|
+
i -= t[h - 1].height, h--;
|
|
3325
|
+
var l = n - i;
|
|
3326
|
+
return {
|
|
3327
|
+
start: i,
|
|
3328
|
+
delta: l
|
|
3329
|
+
};
|
|
3330
|
+
}, r.prototype.removeTombstone = function() {
|
|
3331
|
+
for (var t = this.content.querySelectorAll(".tombstone"), e = t.length - 1; e >= 0; e--)
|
|
3332
|
+
this.content.removeChild(t[e]);
|
|
3333
|
+
}, r.prototype.setContent = function(t) {
|
|
3334
|
+
t !== this.content && (this.content = t);
|
|
3335
|
+
}, r.prototype.destroy = function() {
|
|
3336
|
+
this.removeTombstone(), this.timers.forEach(function(t) {
|
|
3337
|
+
clearTimeout(t);
|
|
3338
|
+
});
|
|
3339
|
+
}, r.prototype.resetState = function() {
|
|
3340
|
+
this.destroy(), this.timers = [], this.unusedDom = [];
|
|
3341
|
+
}, r;
|
|
3342
|
+
}()
|
|
3343
|
+
), fo = -2e3, vo = (
|
|
3344
|
+
/** @class */
|
|
3345
|
+
function() {
|
|
3346
|
+
function r(t) {
|
|
3347
|
+
this.scroll = t, this.start = 0, this.end = 0, this.init();
|
|
3348
|
+
}
|
|
3349
|
+
return r.prototype.init = function() {
|
|
3350
|
+
var t = this;
|
|
3351
|
+
this.handleOptions();
|
|
3352
|
+
var e = this.options, o = e.fetch, i = e.render, s = e.createTombstone;
|
|
3353
|
+
this.tombstone = new K(s), this.indexCalculator = new ho(this.scroll.scroller.scrollBehaviorY.wrapperSize, this.tombstone.height), this.domManager = new uo(this.scroll.scroller.content, i, this.tombstone), this.dataManager = new po([], o, this.onFetchFinish.bind(this)), this.scroll.on(this.scroll.eventTypes.destroy, this.destroy, this), this.scroll.on(this.scroll.eventTypes.scroll, this.update, this), this.scroll.on(this.scroll.eventTypes.contentChanged, function(a) {
|
|
3354
|
+
t.domManager.setContent(a), t.indexCalculator.resetState(), t.domManager.resetState(), t.dataManager.resetState(), t.update({ y: 0 });
|
|
3355
|
+
});
|
|
3356
|
+
var n = this.scroll.scroller.scrollBehaviorY;
|
|
3357
|
+
n.hooks.on(n.hooks.eventTypes.computeBoundary, this.modifyBoundary, this), this.update({ y: 0 });
|
|
3358
|
+
}, r.prototype.modifyBoundary = function(t) {
|
|
3359
|
+
t.maxScrollPos = fo;
|
|
3360
|
+
}, r.prototype.handleOptions = function() {
|
|
3361
|
+
var t = this.scroll.options.infinity;
|
|
3362
|
+
t && (typeof t.fetch != "function" && P("Infinity plugin need fetch Function to new data."), typeof t.render != "function" && P("Infinity plugin need render Function to render each item."), typeof t.render != "function" && P("Infinity plugin need createTombstone Function to create tombstone."), this.options = t), this.scroll.options.probeType = 3;
|
|
3363
|
+
}, r.prototype.update = function(t) {
|
|
3364
|
+
var e = Math.round(-t.y), o = this.indexCalculator.calculate(e, this.dataManager.getList()), i = o.start, s = o.end;
|
|
3365
|
+
this.start = i, this.end = s, this.dataManager.update(s), this.updateDom(this.dataManager.getList());
|
|
3366
|
+
}, r.prototype.onFetchFinish = function(t, e) {
|
|
3367
|
+
var o = this.updateDom(t).end;
|
|
3368
|
+
return e || (this.domManager.removeTombstone(), this.scroll.scroller.animater.stop(), this.scroll.resetPosition()), o;
|
|
3369
|
+
}, r.prototype.updateDom = function(t) {
|
|
3370
|
+
var e = this.domManager.update(t, this.start, this.end), o = e.end, i = e.startPos, s = e.endPos, n = e.startDelta;
|
|
3371
|
+
return n && (this.scroll.minScrollY = n), s > this.scroll.maxScrollY && (this.scroll.maxScrollY = -(s - this.scroll.scroller.scrollBehaviorY.wrapperSize)), {
|
|
3372
|
+
end: o,
|
|
3373
|
+
startPos: i,
|
|
3374
|
+
endPos: s
|
|
3375
|
+
};
|
|
3376
|
+
}, r.prototype.destroy = function() {
|
|
3377
|
+
for (var t = this.scroll.scroller, e = t.content, o = t.scrollBehaviorY; e.firstChild; )
|
|
3378
|
+
e.removeChild(e.firstChild);
|
|
3379
|
+
this.domManager.destroy(), this.scroll.off("scroll", this.update), this.scroll.off("destroy", this.destroy), o.hooks.off(o.hooks.eventTypes.computeBoundary);
|
|
3380
|
+
}, r.pluginName = "infinity", r;
|
|
3381
|
+
}()
|
|
3382
|
+
), go = "plugins.movable", yo = [
|
|
3383
|
+
{
|
|
3384
|
+
key: "putAt",
|
|
3385
|
+
name: "putAt"
|
|
3386
|
+
}
|
|
3387
|
+
], mo = yo.map(function(r) {
|
|
3388
|
+
return {
|
|
3389
|
+
key: r.key,
|
|
3390
|
+
sourceKey: go + "." + r.name
|
|
3391
|
+
};
|
|
3392
|
+
}), ko = (
|
|
3393
|
+
/** @class */
|
|
3394
|
+
function() {
|
|
3395
|
+
function r(t) {
|
|
3396
|
+
this.scroll = t, this.handleBScroll(), this.handleHooks();
|
|
3397
|
+
}
|
|
3398
|
+
return r.prototype.handleBScroll = function() {
|
|
3399
|
+
this.scroll.proxy(mo);
|
|
3400
|
+
}, r.prototype.handleHooks = function() {
|
|
3401
|
+
var t = this;
|
|
3402
|
+
this.hooksFn = [];
|
|
3403
|
+
var e = this.scroll.scroller, o = e.scrollBehaviorX, i = e.scrollBehaviorY, s = function(n, a) {
|
|
3404
|
+
n.maxScrollPos > 0 && (n.minScrollPos = a.wrapperSize - a.contentSize, n.maxScrollPos = 0);
|
|
3405
|
+
};
|
|
3406
|
+
this.registerHooks(o.hooks, o.hooks.eventTypes.ignoreHasScroll, function() {
|
|
3407
|
+
return !0;
|
|
3408
|
+
}), this.registerHooks(o.hooks, o.hooks.eventTypes.computeBoundary, function(n) {
|
|
3409
|
+
s(n, o);
|
|
3410
|
+
}), this.registerHooks(i.hooks, i.hooks.eventTypes.ignoreHasScroll, function() {
|
|
3411
|
+
return !0;
|
|
3412
|
+
}), this.registerHooks(i.hooks, i.hooks.eventTypes.computeBoundary, function(n) {
|
|
3413
|
+
s(n, i);
|
|
3414
|
+
}), this.registerHooks(this.scroll.hooks, this.scroll.hooks.eventTypes.destroy, function() {
|
|
3415
|
+
t.destroy();
|
|
3416
|
+
});
|
|
3417
|
+
}, r.prototype.putAt = function(t, e, o, i) {
|
|
3418
|
+
o === void 0 && (o = this.scroll.options.bounceTime), i === void 0 && (i = y.bounce);
|
|
3419
|
+
var s = this.resolvePostion(t, e);
|
|
3420
|
+
this.scroll.scrollTo(s.x, s.y, o, i);
|
|
3421
|
+
}, r.prototype.resolvePostion = function(t, e) {
|
|
3422
|
+
var o = this.scroll.scroller, i = o.scrollBehaviorX, s = o.scrollBehaviorY, n = {
|
|
3423
|
+
left: function() {
|
|
3424
|
+
return 0;
|
|
3425
|
+
},
|
|
3426
|
+
top: function() {
|
|
3427
|
+
return 0;
|
|
3428
|
+
},
|
|
3429
|
+
right: function() {
|
|
3430
|
+
return i.minScrollPos;
|
|
3431
|
+
},
|
|
3432
|
+
bottom: function() {
|
|
3433
|
+
return s.minScrollPos;
|
|
3434
|
+
},
|
|
3435
|
+
center: function(a) {
|
|
3436
|
+
var h = a === 0 ? i.minScrollPos : s.minScrollPos;
|
|
3437
|
+
return h / 2;
|
|
3438
|
+
}
|
|
3439
|
+
};
|
|
3440
|
+
return {
|
|
3441
|
+
x: typeof t == "number" ? t : n[t](0),
|
|
3442
|
+
y: typeof e == "number" ? e : n[e](1)
|
|
3443
|
+
};
|
|
3444
|
+
}, r.prototype.destroy = function() {
|
|
3445
|
+
this.hooksFn.forEach(function(t) {
|
|
3446
|
+
var e = t[0], o = t[1], i = t[2];
|
|
3447
|
+
e.off(o, i);
|
|
3448
|
+
}), this.hooksFn.length = 0;
|
|
3449
|
+
}, r.prototype.registerHooks = function(t, e, o) {
|
|
3450
|
+
t.on(e, o, this), this.hooksFn.push([t, e, o]);
|
|
3451
|
+
}, r.pluginName = "movable", r.applyOrder = "pre", r;
|
|
3452
|
+
}()
|
|
3453
|
+
), To = function(r) {
|
|
3454
|
+
return r.tagName.toLowerCase() === "img";
|
|
3455
|
+
}, So = (
|
|
3456
|
+
/** @class */
|
|
3457
|
+
function() {
|
|
3458
|
+
function r(t) {
|
|
3459
|
+
this.scroll = t, this.refreshTimer = 0, this.init();
|
|
3460
|
+
}
|
|
3461
|
+
return r.prototype.init = function() {
|
|
3462
|
+
this.handleOptions(this.scroll.options.observeImage), this.bindEventsToWrapper();
|
|
3463
|
+
}, r.prototype.handleOptions = function(t) {
|
|
3464
|
+
t === void 0 && (t = {}), t = t === !0 ? {} : t;
|
|
3465
|
+
var e = {
|
|
3466
|
+
debounceTime: 100
|
|
3467
|
+
};
|
|
3468
|
+
this.options = m(e, t);
|
|
3469
|
+
}, r.prototype.bindEventsToWrapper = function() {
|
|
3470
|
+
var t = this.scroll.scroller.wrapper;
|
|
3471
|
+
this.imageLoadEventRegister = new T(t, [
|
|
3472
|
+
{
|
|
3473
|
+
name: "load",
|
|
3474
|
+
handler: this.load.bind(this),
|
|
3475
|
+
capture: !0
|
|
3476
|
+
}
|
|
3477
|
+
]), this.imageErrorEventRegister = new T(t, [
|
|
3478
|
+
{
|
|
3479
|
+
name: "error",
|
|
3480
|
+
handler: this.load.bind(this),
|
|
3481
|
+
capture: !0
|
|
3482
|
+
}
|
|
3483
|
+
]);
|
|
3484
|
+
}, r.prototype.load = function(t) {
|
|
3485
|
+
var e = this, o = t.target, i = this.options.debounceTime;
|
|
3486
|
+
o && To(o) && (i === 0 ? this.scroll.refresh() : (clearTimeout(this.refreshTimer), this.refreshTimer = window.setTimeout(function() {
|
|
3487
|
+
e.scroll.refresh();
|
|
3488
|
+
}, this.options.debounceTime)));
|
|
3489
|
+
}, r.pluginName = "observeImage", r;
|
|
3490
|
+
}()
|
|
3491
|
+
), Po = function(r) {
|
|
3492
|
+
var t = {
|
|
3493
|
+
ratioX: 0,
|
|
3494
|
+
ratioY: 0
|
|
3495
|
+
};
|
|
3496
|
+
return r && (typeof r == "number" ? t.ratioX = t.ratioY = r : typeof r == "object" && r && (t.ratioX = r.x || 0, t.ratioY = r.y || 0)), t;
|
|
3497
|
+
}, rt = function(r) {
|
|
3498
|
+
X(r), r.stopPropagation();
|
|
3499
|
+
}, bo = (
|
|
3500
|
+
/** @class */
|
|
3501
|
+
function() {
|
|
3502
|
+
function r(t, e) {
|
|
3503
|
+
this.scroll = t, this.options = e, this.currentPos = {
|
|
3504
|
+
x: 0,
|
|
3505
|
+
y: 0
|
|
3506
|
+
}, this.hooksFn = [], this.handleDOM(), this.handleHooks(), this.handleInteractive();
|
|
3507
|
+
}
|
|
3508
|
+
return r.prototype.handleDOM = function() {
|
|
3509
|
+
var t = this.options, e = t.relationElement, o = t.relationElementHandleElementIndex, i = o === void 0 ? 0 : o;
|
|
3510
|
+
this.wrapper = e, this.indicatorEl = this.wrapper.children[i];
|
|
3511
|
+
}, r.prototype.handleHooks = function() {
|
|
3512
|
+
var t = this, e = this.scroll, o = e.hooks, i = e.scroller.translater.hooks, s = e.scroller.animater.hooks;
|
|
3513
|
+
this.registerHooks(o, o.eventTypes.refresh, this.refresh), this.registerHooks(i, i.eventTypes.translate, function(n) {
|
|
3514
|
+
t.updatePosition(n);
|
|
3515
|
+
}), this.registerHooks(s, s.eventTypes.time, this.transitionTime), this.registerHooks(s, s.eventTypes.timeFunction, this.transitionTimingFunction);
|
|
3516
|
+
}, r.prototype.transitionTime = function(t) {
|
|
3517
|
+
t === void 0 && (t = 0), this.indicatorEl.style[d.transitionDuration] = t + "ms";
|
|
3518
|
+
}, r.prototype.transitionTimingFunction = function(t) {
|
|
3519
|
+
this.indicatorEl.style[d.transitionTimingFunction] = t;
|
|
3520
|
+
}, r.prototype.handleInteractive = function() {
|
|
3521
|
+
this.options.interactive !== !1 && this.registerEvents();
|
|
3522
|
+
}, r.prototype.registerHooks = function(t, e, o) {
|
|
3523
|
+
t.on(e, o, this), this.hooksFn.push([t, e, o]);
|
|
3524
|
+
}, r.prototype.registerEvents = function() {
|
|
3525
|
+
var t = this.scroll.options, e = t.disableMouse, o = t.disableTouch, i = [], s = [], n = [];
|
|
3526
|
+
e || (i.push({
|
|
3527
|
+
name: "mousedown",
|
|
3528
|
+
handler: this.start.bind(this)
|
|
3529
|
+
}), s.push({
|
|
3530
|
+
name: "mousemove",
|
|
3531
|
+
handler: this.move.bind(this)
|
|
3532
|
+
}), n.push({
|
|
3533
|
+
name: "mouseup",
|
|
3534
|
+
handler: this.end.bind(this)
|
|
3535
|
+
})), o || (i.push({
|
|
3536
|
+
name: "touchstart",
|
|
3537
|
+
handler: this.start.bind(this)
|
|
3538
|
+
}), s.push({
|
|
3539
|
+
name: "touchmove",
|
|
3540
|
+
handler: this.move.bind(this)
|
|
3541
|
+
}), n.push({
|
|
3542
|
+
name: "touchend",
|
|
3543
|
+
handler: this.end.bind(this)
|
|
3544
|
+
}, {
|
|
3545
|
+
name: "touchcancel",
|
|
3546
|
+
handler: this.end.bind(this)
|
|
3547
|
+
})), this.startEventRegister = new T(this.indicatorEl, i), this.moveEventRegister = new T(window, s), this.endEventRegister = new T(window, n);
|
|
3548
|
+
}, r.prototype.refresh = function() {
|
|
3549
|
+
var t = this.scroll, e = t.x, o = t.y, i = t.hasHorizontalScroll, s = t.hasVerticalScroll, n = t.maxScrollX, a = t.maxScrollY, h = Po(this.options.ratio), l = h.ratioX, c = h.ratioY, p = te(this.wrapper), u = p.width, f = p.height, v = D(this.indicatorEl), k = v.width, Y = v.height;
|
|
3550
|
+
i && (this.maxScrollX = u - k, this.translateXSign = this.maxScrollX > 0 ? -1 : 1, this.minScrollX = 0, this.ratioX = l || Math.abs(this.maxScrollX / n)), s && (this.maxScrollY = f - Y, this.translateYSign = this.maxScrollY > 0 ? -1 : 1, this.minScrollY = 0, this.ratioY = c || Math.abs(this.maxScrollY / a)), this.updatePosition({
|
|
3551
|
+
x: e,
|
|
3552
|
+
y: o
|
|
3553
|
+
});
|
|
3554
|
+
}, r.prototype.start = function(t) {
|
|
3555
|
+
if (!this.BScrollIsDisabled()) {
|
|
3556
|
+
var e = t.touches ? t.touches[0] : t;
|
|
3557
|
+
rt(t), this.initiated = !0, this.moved = !1, this.lastPointX = e.pageX, this.lastPointY = e.pageY, this.startTime = S(), this.scroll.scroller.hooks.trigger(this.scroll.scroller.hooks.eventTypes.beforeScrollStart);
|
|
3558
|
+
}
|
|
3559
|
+
}, r.prototype.BScrollIsDisabled = function() {
|
|
3560
|
+
return !this.scroll.enabled;
|
|
3561
|
+
}, r.prototype.move = function(t) {
|
|
3562
|
+
if (this.initiated) {
|
|
3563
|
+
var e = t.touches ? t.touches[0] : t, o = e.pageX, i = e.pageY;
|
|
3564
|
+
rt(t);
|
|
3565
|
+
var s = o - this.lastPointX, n = i - this.lastPointY;
|
|
3566
|
+
if (this.lastPointX = o, this.lastPointY = i, !this.moved && !this.indicatorNotMoved(s, n) && (this.moved = !0, this.scroll.scroller.hooks.trigger(this.scroll.scroller.hooks.eventTypes.scrollStart)), this.moved) {
|
|
3567
|
+
var a = this.getBScrollPosByRatio(this.currentPos, s, n);
|
|
3568
|
+
this.syncBScroll(a);
|
|
3569
|
+
}
|
|
3570
|
+
}
|
|
3571
|
+
}, r.prototype.end = function(t) {
|
|
3572
|
+
if (this.initiated && (this.initiated = !1, rt(t), this.moved)) {
|
|
3573
|
+
var e = this.scroll, o = e.x, i = e.y;
|
|
3574
|
+
this.scroll.scroller.hooks.trigger(this.scroll.scroller.hooks.eventTypes.scrollEnd, {
|
|
3575
|
+
x: o,
|
|
3576
|
+
y: i
|
|
3577
|
+
});
|
|
3578
|
+
}
|
|
3579
|
+
}, r.prototype.getBScrollPosByRatio = function(t, e, o) {
|
|
3580
|
+
var i = t.x, s = t.y, n = this.scroll, a = n.hasHorizontalScroll, h = n.hasVerticalScroll, l = n.minScrollX, c = n.maxScrollX, p = n.minScrollY, u = n.maxScrollY, f = this.scroll, v = f.x, k = f.y;
|
|
3581
|
+
if (a) {
|
|
3582
|
+
var Y = g(i + e, Math.min(this.minScrollX, this.maxScrollX), Math.max(this.minScrollX, this.maxScrollX)), j = Math.round(Y / this.ratioX * this.translateXSign);
|
|
3583
|
+
v = g(j, c, l);
|
|
3584
|
+
}
|
|
3585
|
+
if (h) {
|
|
3586
|
+
var Ot = g(s + o, Math.min(this.minScrollY, this.maxScrollY), Math.max(this.minScrollY, this.maxScrollY)), Ht = Math.round(Ot / this.ratioY * this.translateYSign);
|
|
3587
|
+
k = g(Ht, u, p);
|
|
3588
|
+
}
|
|
3589
|
+
return { x: v, y: k };
|
|
3590
|
+
}, r.prototype.indicatorNotMoved = function(t, e) {
|
|
3591
|
+
var o = this.currentPos, i = o.x, s = o.y, n = i === this.minScrollX && t <= 0 || i === this.maxScrollX && t >= 0, a = s === this.minScrollY && e <= 0 || s === this.maxScrollY && e >= 0;
|
|
3592
|
+
return n && a;
|
|
3593
|
+
}, r.prototype.syncBScroll = function(t) {
|
|
3594
|
+
var e = S(), o = this.scroll, i = o.options, s = o.scroller, n = i.probeType, a = i.momentumLimitTime;
|
|
3595
|
+
s.translater.translate(t), e - this.startTime > a && (this.startTime = e, n === 1 && s.hooks.trigger(s.hooks.eventTypes.scroll, t)), n > 1 && s.hooks.trigger(s.hooks.eventTypes.scroll, t);
|
|
3596
|
+
}, r.prototype.updatePosition = function(t) {
|
|
3597
|
+
var e = this.getIndicatorPosByRatio(t);
|
|
3598
|
+
this.applyTransformProperty(e), this.currentPos = b({}, e);
|
|
3599
|
+
}, r.prototype.applyTransformProperty = function(t) {
|
|
3600
|
+
var e = this.scroll.options.translateZ, o = [
|
|
3601
|
+
"translateX(" + t.x + "px)",
|
|
3602
|
+
"translateY(" + t.y + "px)",
|
|
3603
|
+
"" + e
|
|
3604
|
+
];
|
|
3605
|
+
this.indicatorEl.style[d.transform] = o.join(" ");
|
|
3606
|
+
}, r.prototype.getIndicatorPosByRatio = function(t) {
|
|
3607
|
+
var e = t.x, o = t.y, i = this.scroll, s = i.hasHorizontalScroll, n = i.hasVerticalScroll, a = b({}, this.currentPos);
|
|
3608
|
+
if (s) {
|
|
3609
|
+
var h = Math.round(this.ratioX * e * this.translateXSign);
|
|
3610
|
+
a.x = g(h, Math.min(this.minScrollX, this.maxScrollX), Math.max(this.minScrollX, this.maxScrollX));
|
|
3611
|
+
}
|
|
3612
|
+
if (n) {
|
|
3613
|
+
var l = Math.round(this.ratioY * o * this.translateYSign);
|
|
3614
|
+
a.y = g(l, Math.min(this.minScrollY, this.maxScrollY), Math.max(this.minScrollY, this.maxScrollY));
|
|
3615
|
+
}
|
|
3616
|
+
return a;
|
|
3617
|
+
}, r.prototype.destroy = function() {
|
|
3618
|
+
this.options.interactive !== !1 && (this.startEventRegister.destroy(), this.moveEventRegister.destroy(), this.endEventRegister.destroy()), this.hooksFn.forEach(function(t) {
|
|
3619
|
+
var e = t[0], o = t[1], i = t[2];
|
|
3620
|
+
e.off(o, i);
|
|
3621
|
+
}), this.hooksFn.length = 0;
|
|
3622
|
+
}, r;
|
|
3623
|
+
}()
|
|
3624
|
+
), wo = (
|
|
3625
|
+
/** @class */
|
|
3626
|
+
function() {
|
|
3627
|
+
function r(t) {
|
|
3628
|
+
this.scroll = t, this.options = [], this.indicators = [], this.handleOptions(), this.handleHooks();
|
|
3629
|
+
}
|
|
3630
|
+
return r.prototype.handleOptions = function() {
|
|
3631
|
+
var t = this.scroll.options.indicators;
|
|
3632
|
+
ht(Array.isArray(t), "'indicators' must be an array.");
|
|
3633
|
+
for (var e = 0, o = t; e < o.length; e++) {
|
|
3634
|
+
var i = o[e];
|
|
3635
|
+
ht(!!i.relationElement, "'relationElement' must be a HTMLElement."), this.createIndicators(i);
|
|
3636
|
+
}
|
|
3637
|
+
}, r.prototype.createIndicators = function(t) {
|
|
3638
|
+
this.indicators.push(new bo(this.scroll, t));
|
|
3639
|
+
}, r.prototype.handleHooks = function() {
|
|
3640
|
+
var t = this, e = this.scroll.hooks;
|
|
3641
|
+
e.on(e.eventTypes.destroy, function() {
|
|
3642
|
+
for (var o = 0, i = t.indicators; o < i.length; o++) {
|
|
3643
|
+
var s = i[o];
|
|
3644
|
+
s.destroy();
|
|
3645
|
+
}
|
|
3646
|
+
t.indicators = [];
|
|
3647
|
+
});
|
|
3648
|
+
}, r.pluginName = "indicators", r;
|
|
3649
|
+
}()
|
|
3650
|
+
);
|
|
3651
|
+
Te.use(Se).use(Pe).use(Ee).use(Xe).use(He).use(Ne).use(Ve).use(Ge).use(lo).use(vo).use(ko).use(So).use(wo);
|
|
3652
|
+
export {
|
|
3653
|
+
vt as Behavior,
|
|
3654
|
+
se as CustomOptions,
|
|
3655
|
+
wo as Indicators,
|
|
3656
|
+
vo as InfinityScroll,
|
|
3657
|
+
Se as MouseWheel,
|
|
3658
|
+
ko as Movable,
|
|
3659
|
+
lo as NestedScroll,
|
|
3660
|
+
Pe as ObserveDom,
|
|
3661
|
+
So as ObserveImage,
|
|
3662
|
+
Ee as PullDownRefresh,
|
|
3663
|
+
Xe as PullUpLoad,
|
|
3664
|
+
He as ScrollBar,
|
|
3665
|
+
Ne as Slide,
|
|
3666
|
+
Ve as Wheel,
|
|
3667
|
+
Ge as Zoom,
|
|
3668
|
+
Z as createBScroll,
|
|
3669
|
+
Te as default
|
|
3670
|
+
};
|