@das-fed/upf-ui 6.4.0-dev.161 → 6.4.0-dev.162
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/package.json +5 -5
- package/packages/business-components/ai-panel/index-14NcMHNj.js +142 -0
- package/packages/business-components/ai-panel/index-14NcMHNj.js.gz +0 -0
- package/packages/business-components/ai-panel/{index-CK8QsfV3.js → index-7IxWMQwA.js} +3 -17
- package/packages/business-components/ai-panel/index-7IxWMQwA.js.gz +0 -0
- package/packages/business-components/ai-panel/{index-C1GmXa31.js → index-CViVnNHG.js} +736 -1188
- package/packages/business-components/ai-panel/index-CViVnNHG.js.gz +0 -0
- package/packages/business-components/ai-panel/index.js +1 -1
- package/packages/business-components/app-container/index.js +98 -153
- package/packages/business-components/app-container/index.js.gz +0 -0
- package/packages/business-components/area-phone-select/index.js +58 -107
- package/packages/business-components/area-phone-select/index.js.gz +0 -0
- package/packages/business-components/change-enterprises/index.js +30 -56
- package/packages/business-components/change-enterprises/index.js.gz +0 -0
- package/packages/business-components/change-pwd/index.js +3 -15
- package/packages/business-components/change-pwd/index.js.gz +0 -0
- package/packages/business-components/currency-page/index.js +5 -22
- package/packages/business-components/currency-page/index.js.gz +0 -0
- package/packages/business-components/device-panel/index.js +12221 -16939
- package/packages/business-components/device-panel/index.js.gz +0 -0
- package/packages/business-components/echarts/index.js +2084 -2097
- package/packages/business-components/echarts/index.js.gz +0 -0
- package/packages/business-components/export-button/index.js +35 -42
- package/packages/business-components/export-button/index.js.gz +0 -0
- package/packages/business-components/import-button/index.js +59 -93
- package/packages/business-components/import-button/index.js.gz +0 -0
- package/packages/business-components/layout-breadcrumb/index.js +5 -5
- package/packages/business-components/layout-breadcrumb/index.js.gz +0 -0
- package/packages/business-components/model-table-dialog/index.js +148 -196
- package/packages/business-components/model-table-dialog/index.js.gz +0 -0
- package/packages/business-components/payment/index.js +135 -225
- package/packages/business-components/payment/index.js.gz +0 -0
- package/packages/business-components/process-configuration/index.js +224 -310
- package/packages/business-components/process-configuration/index.js.gz +0 -0
- package/packages/business-components/process-form/index.js +573 -742
- package/packages/business-components/process-form/index.js.gz +0 -0
- package/packages/business-components/process-log/index.js +298 -481
- package/packages/business-components/process-log/index.js.gz +0 -0
- package/packages/business-components/process-search-form/index.js +1 -1
- package/packages/business-components/process-search-form/index.js.gz +0 -0
- package/packages/business-components/process-table/index.js +413 -474
- package/packages/business-components/process-table/index.js.gz +0 -0
- package/packages/business-components/upload-file/index.js +28 -34
- package/packages/business-components/upload-file/index.js.gz +0 -0
- package/packages/business-components/urgent-panel/index.js +1218 -1688
- package/packages/business-components/urgent-panel/index.js.gz +0 -0
- package/packages/business-components/user-org-dialog/index.js +67 -128
- package/packages/business-components/user-org-dialog/index.js.gz +0 -0
- package/packages/business-components/video-dialog/index.js +302 -370
- package/packages/business-components/video-dialog/index.js.gz +0 -0
- package/packages/components/alert/index.js +48 -55
- package/packages/components/alert/index.js.gz +0 -0
- package/packages/components/audio-video/index.js +84 -111
- package/packages/components/audio-video/index.js.gz +0 -0
- package/packages/components/autocomplete/index.js +109 -134
- package/packages/components/autocomplete/index.js.gz +0 -0
- package/packages/components/breadcrumb/index.js +36 -62
- package/packages/components/breadcrumb/index.js.gz +0 -0
- package/packages/components/button/index.js +176 -248
- package/packages/components/button/index.js.gz +0 -0
- package/packages/components/calendar/index.js +183 -269
- package/packages/components/calendar/index.js.gz +0 -0
- package/packages/components/cascader/index.js +102 -137
- package/packages/components/cascader/index.js.gz +0 -0
- package/packages/components/checkbox/index.js +178 -291
- package/packages/components/checkbox/index.js.gz +0 -0
- package/packages/components/collapse-panel/index.js +17 -24
- package/packages/components/collapse-panel/index.js.gz +0 -0
- package/packages/components/collapse-transition/index.js +6 -13
- package/packages/components/collapse-transition/index.js.gz +0 -0
- package/packages/components/collaspe/index.js +0 -1
- package/packages/components/collaspe/index.js.gz +0 -0
- package/packages/components/color-picker/index.js +54 -76
- package/packages/components/color-picker/index.js.gz +0 -0
- package/packages/components/custom-search-item/index.js +7 -19
- package/packages/components/custom-search-item/index.js.gz +0 -0
- package/packages/components/date-picker/index.js +640 -866
- package/packages/components/date-picker/index.js.gz +0 -0
- package/packages/components/dialog/index.js +159 -209
- package/packages/components/dialog/index.js.gz +0 -0
- package/packages/components/dimple-layout/index.js +58 -118
- package/packages/components/dimple-layout/index.js.gz +0 -0
- package/packages/components/drawer/index.js +6 -13
- package/packages/components/drawer/index.js.gz +0 -0
- package/packages/components/dropdown/index.js +26 -41
- package/packages/components/dropdown/index.js.gz +0 -0
- package/packages/components/edit-table/index.js +851 -1083
- package/packages/components/edit-table/index.js.gz +0 -0
- package/packages/components/empty/index.js +32 -60
- package/packages/components/empty/index.js.gz +0 -0
- package/packages/components/error-overlay-model/index.js +9 -21
- package/packages/components/error-overlay-model/index.js.gz +0 -0
- package/packages/components/form/index.js +8 -14
- package/packages/components/form/index.js.gz +0 -0
- package/packages/components/form-item/index.js +638 -797
- package/packages/components/form-item/index.js.gz +0 -0
- package/packages/components/icon/index.js +7 -13
- package/packages/components/icon/index.js.gz +0 -0
- package/packages/components/image-upload/index.js +67 -101
- package/packages/components/image-upload/index.js.gz +0 -0
- package/packages/components/image-viewer/index.js +475 -568
- package/packages/components/image-viewer/index.js.gz +0 -0
- package/packages/components/input/index.js +108 -131
- package/packages/components/input/index.js.gz +0 -0
- package/packages/components/input-dialog-select/index.js +79 -116
- package/packages/components/input-dialog-select/index.js.gz +0 -0
- package/packages/components/input-number/index.js +75 -95
- package/packages/components/input-number/index.js.gz +0 -0
- package/packages/components/live-player/index.js +9 -19
- package/packages/components/live-player/index.js.gz +0 -0
- package/packages/components/loading/index.js +3 -9
- package/packages/components/loading/index.js.gz +0 -0
- package/packages/components/map/index.js +103 -156
- package/packages/components/map/index.js.gz +0 -0
- package/packages/components/menu-aside/index.js +388 -613
- package/packages/components/menu-aside/index.js.gz +0 -0
- package/packages/components/menu-header/index.js +37 -61
- package/packages/components/menu-header/index.js.gz +0 -0
- package/packages/components/pagination/index.js +51 -89
- package/packages/components/pagination/index.js.gz +0 -0
- package/packages/components/popover/index.js +12 -33
- package/packages/components/popover/index.js.gz +0 -0
- package/packages/components/popup-mask/index.js +32 -45
- package/packages/components/popup-mask/index.js.gz +0 -0
- package/packages/components/preview/index.js +1 -6
- package/packages/components/preview/index.js.gz +0 -0
- package/packages/components/progress/index.js +99 -186
- package/packages/components/progress/index.js.gz +0 -0
- package/packages/components/radio/index.js +189 -308
- package/packages/components/radio/index.js.gz +0 -0
- package/packages/components/radio-tabs/index.js +52 -86
- package/packages/components/radio-tabs/index.js.gz +0 -0
- package/packages/components/rich-editor/index.js +39 -45
- package/packages/components/rich-editor/index.js.gz +0 -0
- package/packages/components/scrollbar/index.js +0 -1
- package/packages/components/scrollbar/index.js.gz +0 -0
- package/packages/components/search/index.js +59 -68
- package/packages/components/search/index.js.gz +0 -0
- package/packages/components/search-form/index.js +500 -669
- package/packages/components/search-form/index.js.gz +0 -0
- package/packages/components/select/index.js +340 -432
- package/packages/components/select/index.js.gz +0 -0
- package/packages/components/select-input/index.js +0 -1
- package/packages/components/select-input/index.js.gz +0 -0
- package/packages/components/select-list/index.js +207 -264
- package/packages/components/select-list/index.js.gz +0 -0
- package/packages/components/special-range-picker-month/index.js +119 -214
- package/packages/components/special-range-picker-month/index.js.gz +0 -0
- package/packages/components/special-range-picker-year/index.js +165 -298
- package/packages/components/special-range-picker-year/index.js.gz +0 -0
- package/packages/components/spin/index.js +15 -28
- package/packages/components/spin/index.js.gz +0 -0
- package/packages/components/split-panel/index.js +137 -195
- package/packages/components/split-panel/index.js.gz +0 -0
- package/packages/components/step/index.js +0 -1
- package/packages/components/step/index.js.gz +0 -0
- package/packages/components/steps/index.js +6 -13
- package/packages/components/switch/index.js +11 -17
- package/packages/components/switch/index.js.gz +0 -0
- package/packages/components/table/index.js +1655 -2180
- package/packages/components/table/index.js.gz +0 -0
- package/packages/components/tabs/index.js +178 -244
- package/packages/components/tabs/index.js.gz +0 -0
- package/packages/components/tag/index.js +11 -25
- package/packages/components/tag/index.js.gz +0 -0
- package/packages/components/time-line/index.js +26 -45
- package/packages/components/time-line/index.js.gz +0 -0
- package/packages/components/tooltip/index.js +18 -48
- package/packages/components/tooltip/index.js.gz +0 -0
- package/packages/components/tree/index.js +625 -786
- package/packages/components/tree/index.js.gz +0 -0
- package/packages/components/tree-select/index.js +352 -379
- package/packages/components/tree-select/index.js.gz +0 -0
- package/packages/components/tree-table/index.js +233 -330
- package/packages/components/tree-table/index.js.gz +0 -0
- package/packages/components/tree-v2/index.js +749 -907
- package/packages/components/tree-v2/index.js.gz +0 -0
- package/packages/components/upload/index.js +88 -161
- package/packages/components/upload/index.js.gz +0 -0
- package/packages/components/virtual-tree/index.js +89 -126
- package/packages/components/virtual-tree/index.js.gz +0 -0
- package/packages/components/watermark/index.js +6 -13
- package/packages/icons/1-grids/index.js +0 -1
- package/packages/icons/1-grids/index.js.gz +0 -0
- package/packages/icons/4-grids/index.js +0 -1
- package/packages/icons/4-grids/index.js.gz +0 -0
- package/packages/icons/9-grids/index.js +0 -1
- package/packages/icons/9-grids/index.js.gz +0 -0
- package/packages/icons/add/index.js +0 -1
- package/packages/icons/add/index.js.gz +0 -0
- package/packages/icons/add-2/index.js +0 -1
- package/packages/icons/add-item/index.js +0 -1
- package/packages/icons/add-item/index.js.gz +0 -0
- package/packages/icons/addto/index.js +0 -1
- package/packages/icons/addto/index.js.gz +0 -0
- package/packages/icons/alarm/index.js +0 -1
- package/packages/icons/alarm/index.js.gz +0 -0
- package/packages/icons/arrow-first/index.js +0 -1
- package/packages/icons/arrow-first/index.js.gz +0 -0
- package/packages/icons/arrow-last/index.js +0 -1
- package/packages/icons/arrow-last/index.js.gz +0 -0
- package/packages/icons/audioing/index.js +0 -1
- package/packages/icons/audioing/index.js.gz +0 -0
- package/packages/icons/back/index.js +0 -1
- package/packages/icons/back/index.js.gz +0 -0
- package/packages/icons/bianjigongzuotai/index.js +0 -1
- package/packages/icons/bianjigongzuotai/index.js.gz +0 -0
- package/packages/icons/biaochi/index.js +0 -1
- package/packages/icons/biaochi/index.js.gz +0 -0
- package/packages/icons/bim/index.js +0 -1
- package/packages/icons/bim/index.js.gz +0 -0
- package/packages/icons/bobaoguanbi/index.js +0 -1
- package/packages/icons/bobaoguanbi/index.js.gz +0 -0
- package/packages/icons/bobaokaiqi/index.js +0 -1
- package/packages/icons/bobaokaiqi/index.js.gz +0 -0
- package/packages/icons/bold/index.js +0 -1
- package/packages/icons/bold/index.js.gz +0 -0
- package/packages/icons/camera/index.js +0 -1
- package/packages/icons/camera/index.js.gz +0 -0
- package/packages/icons/camera-2/index.js +0 -1
- package/packages/icons/camera-2/index.js.gz +0 -0
- package/packages/icons/camera-3/index.js +0 -1
- package/packages/icons/camera-3/index.js.gz +0 -0
- package/packages/icons/cancel-full-screen/index.js +0 -1
- package/packages/icons/cancel-full-screen/index.js.gz +0 -0
- package/packages/icons/cankaoneirong/index.js +0 -1
- package/packages/icons/cankaoneirong/index.js.gz +0 -0
- package/packages/icons/card/index.js +0 -1
- package/packages/icons/card/index.js.gz +0 -0
- package/packages/icons/card-view/index.js +0 -1
- package/packages/icons/card-view/index.js.gz +0 -0
- package/packages/icons/caret-bottom/index.js +0 -1
- package/packages/icons/caret-bottom/index.js.gz +0 -0
- package/packages/icons/caret-right/index.js +0 -1
- package/packages/icons/chakancelve/index.js +0 -1
- package/packages/icons/chakancelve/index.js.gz +0 -0
- package/packages/icons/change/index.js +0 -1
- package/packages/icons/change/index.js.gz +0 -0
- package/packages/icons/change-2/index.js +0 -1
- package/packages/icons/change-2/index.js.gz +0 -0
- package/packages/icons/change-3/index.js +0 -1
- package/packages/icons/change-3/index.js.gz +0 -0
- package/packages/icons/changetenant/index.js +0 -1
- package/packages/icons/changetenant/index.js.gz +0 -0
- package/packages/icons/chart/index.js +0 -1
- package/packages/icons/chart/index.js.gz +0 -0
- package/packages/icons/chaxunxiangqing/index.js +0 -1
- package/packages/icons/chaxunxiangqing/index.js.gz +0 -0
- package/packages/icons/check/index.js +0 -1
- package/packages/icons/check/index.js.gz +0 -0
- package/packages/icons/chuanglianjiang/index.js +0 -1
- package/packages/icons/chuanglianjiang/index.js.gz +0 -0
- package/packages/icons/chuangliansheng/index.js +0 -1
- package/packages/icons/chuangliansheng/index.js.gz +0 -0
- package/packages/icons/chuanglianting/index.js +0 -1
- package/packages/icons/chuanglianting/index.js.gz +0 -0
- package/packages/icons/chuizhiduiqi/index.js +0 -1
- package/packages/icons/chuizhiduiqi/index.js.gz +0 -0
- package/packages/icons/chuizhijunfen/index.js +0 -1
- package/packages/icons/chuizhijunfen/index.js.gz +0 -0
- package/packages/icons/close/index.js +0 -1
- package/packages/icons/close/index.js.gz +0 -0
- package/packages/icons/close-2/index.js +0 -1
- package/packages/icons/close-2/index.js.gz +0 -0
- package/packages/icons/closeaudio/index.js +0 -1
- package/packages/icons/closeaudio/index.js.gz +0 -0
- package/packages/icons/color/index.js +0 -1
- package/packages/icons/color/index.js.gz +0 -0
- package/packages/icons/copy/index.js +0 -1
- package/packages/icons/copy/index.js.gz +0 -0
- package/packages/icons/custom/index.js +0 -1
- package/packages/icons/custom/index.js.gz +0 -0
- package/packages/icons/daochu/index.js +0 -1
- package/packages/icons/daochu/index.js.gz +0 -0
- package/packages/icons/date/index.js +0 -1
- package/packages/icons/date/index.js.gz +0 -0
- package/packages/icons/decline/index.js +0 -1
- package/packages/icons/decline/index.js.gz +0 -0
- package/packages/icons/default-btn/index.js +0 -1
- package/packages/icons/default-btn/index.js.gz +0 -0
- package/packages/icons/default-point/index.js +0 -1
- package/packages/icons/default-point/index.js.gz +0 -0
- package/packages/icons/delete/index.js +0 -1
- package/packages/icons/delete/index.js.gz +0 -0
- package/packages/icons/delete-2/index.js +0 -1
- package/packages/icons/delete-2/index.js.gz +0 -0
- package/packages/icons/dengbijiesuo/index.js +0 -1
- package/packages/icons/dengbisuoding/index.js +0 -1
- package/packages/icons/dengdai/index.js +0 -1
- package/packages/icons/dengdai/index.js.gz +0 -0
- package/packages/icons/dianzan/index.js +0 -1
- package/packages/icons/dianzan/index.js.gz +0 -0
- package/packages/icons/dianzan-2/index.js +0 -1
- package/packages/icons/dianzan-2/index.js.gz +0 -0
- package/packages/icons/direction-control/index.js +0 -1
- package/packages/icons/direction-control/index.js.gz +0 -0
- package/packages/icons/ditu/index.js +0 -1
- package/packages/icons/ditu/index.js.gz +0 -0
- package/packages/icons/dizhixuanze/index.js +0 -1
- package/packages/icons/dizhixuanze/index.js.gz +0 -0
- package/packages/icons/double-arrow-left/index.js +0 -1
- package/packages/icons/double-arrow-left/index.js.gz +0 -0
- package/packages/icons/double-arrow-right/index.js +0 -1
- package/packages/icons/double-arrow-right/index.js.gz +0 -0
- package/packages/icons/down/index.js +0 -1
- package/packages/icons/down/index.js.gz +0 -0
- package/packages/icons/down-2/index.js +0 -1
- package/packages/icons/down-3/index.js +0 -1
- package/packages/icons/download/index.js +0 -1
- package/packages/icons/download/index.js.gz +0 -0
- package/packages/icons/drag/index.js +0 -1
- package/packages/icons/drag/index.js.gz +0 -0
- package/packages/icons/drawing/index.js +0 -1
- package/packages/icons/drawing/index.js.gz +0 -0
- package/packages/icons/edit/index.js +0 -1
- package/packages/icons/edit/index.js.gz +0 -0
- package/packages/icons/edit-1/index.js +0 -1
- package/packages/icons/edit-1/index.js.gz +0 -0
- package/packages/icons/edit-3/index.js +0 -1
- package/packages/icons/edit-3/index.js.gz +0 -0
- package/packages/icons/empty/index.js +0 -1
- package/packages/icons/empty/index.js.gz +0 -0
- package/packages/icons/enlarge/index.js +0 -1
- package/packages/icons/enlarge/index.js.gz +0 -0
- package/packages/icons/entry/index.js +0 -1
- package/packages/icons/entry/index.js.gz +0 -0
- package/packages/icons/exit/index.js +0 -1
- package/packages/icons/exit/index.js.gz +0 -0
- package/packages/icons/fabu/index.js +0 -1
- package/packages/icons/fabu/index.js.gz +0 -0
- package/packages/icons/fanhui/index.js +0 -1
- package/packages/icons/fanhui/index.js.gz +0 -0
- package/packages/icons/fasong/index.js +0 -1
- package/packages/icons/fasong/index.js.gz +0 -0
- package/packages/icons/filter-3/index.js +0 -1
- package/packages/icons/filter-3/index.js.gz +0 -0
- package/packages/icons/finish/index.js +0 -1
- package/packages/icons/finish/index.js.gz +0 -0
- package/packages/icons/fold/index.js +0 -1
- package/packages/icons/fold/index.js.gz +0 -0
- package/packages/icons/folder-quest/index.js +0 -1
- package/packages/icons/folder-quest/index.js.gz +0 -0
- package/packages/icons/form-tips/index.js +0 -1
- package/packages/icons/form-tips/index.js.gz +0 -0
- package/packages/icons/fresh/index.js +0 -1
- package/packages/icons/fresh/index.js.gz +0 -0
- package/packages/icons/full/index.js +0 -1
- package/packages/icons/full/index.js.gz +0 -0
- package/packages/icons/full-screen/index.js +0 -1
- package/packages/icons/full-screen/index.js.gz +0 -0
- package/packages/icons/fullscreen-2/index.js +0 -1
- package/packages/icons/fullscreen-2/index.js.gz +0 -0
- package/packages/icons/fuzhi/index.js +0 -1
- package/packages/icons/fuzhi/index.js.gz +0 -0
- package/packages/icons/fuzhineirong/index.js +0 -1
- package/packages/icons/fuzhineirong/index.js.gz +0 -0
- package/packages/icons/gaojin/index.js +0 -1
- package/packages/icons/gaojin/index.js.gz +0 -0
- package/packages/icons/gengduocaozuo/index.js +0 -1
- package/packages/icons/global/index.js +0 -1
- package/packages/icons/global/index.js.gz +0 -0
- package/packages/icons/gongzuotaiguanli/index.js +0 -1
- package/packages/icons/gongzuotaiguanli/index.js.gz +0 -0
- package/packages/icons/header-seach/index.js +0 -1
- package/packages/icons/header-seach/index.js.gz +0 -0
- package/packages/icons/header-setting/index.js +0 -1
- package/packages/icons/header-setting/index.js.gz +0 -0
- package/packages/icons/headersettings/index.js +0 -1
- package/packages/icons/headersettings/index.js.gz +0 -0
- package/packages/icons/hide/index.js +0 -1
- package/packages/icons/hide/index.js.gz +0 -0
- package/packages/icons/huabufuwei/index.js +0 -1
- package/packages/icons/huabufuwei/index.js.gz +0 -0
- package/packages/icons/huaxian/index.js +0 -1
- package/packages/icons/huaxian/index.js.gz +0 -0
- package/packages/icons/huida/index.js +0 -1
- package/packages/icons/huida/index.js.gz +0 -0
- package/packages/icons/huidaodibu/index.js +0 -1
- package/packages/icons/huidaodibu/index.js.gz +0 -0
- package/packages/icons/huifuchuchangshezhi/index.js +0 -1
- package/packages/icons/huifuchuchangshezhi/index.js.gz +0 -0
- package/packages/icons/hyperlinks/index.js +0 -1
- package/packages/icons/hyperlinks/index.js.gz +0 -0
- package/packages/icons/img/index.js +0 -1
- package/packages/icons/img/index.js.gz +0 -0
- package/packages/icons/input-close/index.js +0 -1
- package/packages/icons/input-close/index.js.gz +0 -0
- package/packages/icons/input-select/index.js +0 -1
- package/packages/icons/input-select/index.js.gz +0 -0
- package/packages/icons/intnet/index.js +0 -1
- package/packages/icons/intnet/index.js.gz +0 -0
- package/packages/icons/italic/index.js +0 -1
- package/packages/icons/italic/index.js.gz +0 -0
- package/packages/icons/jia-1/index.js +0 -1
- package/packages/icons/jia-1/index.js.gz +0 -0
- package/packages/icons/jian-1/index.js +0 -1
- package/packages/icons/jianshao-1/index.js +0 -1
- package/packages/icons/jinggao/index.js +0 -1
- package/packages/icons/jinggao/index.js.gz +0 -0
- package/packages/icons/jushangduiqi/index.js +0 -1
- package/packages/icons/jushangduiqi/index.js.gz +0 -0
- package/packages/icons/juxiaduiqi/index.js +0 -1
- package/packages/icons/juxiaduiqi/index.js.gz +0 -0
- package/packages/icons/juxinghuizhi/index.js +0 -1
- package/packages/icons/juxinghuizhi/index.js.gz +0 -0
- package/packages/icons/juyouduiqi/index.js +0 -1
- package/packages/icons/juyouduiqi/index.js.gz +0 -0
- package/packages/icons/juzuoduiqi/index.js +0 -1
- package/packages/icons/juzuoduiqi/index.js.gz +0 -0
- package/packages/icons/kaiguan/index.js +0 -1
- package/packages/icons/kaiguan/index.js.gz +0 -0
- package/packages/icons/kaimen/index.js +0 -1
- package/packages/icons/kaimen/index.js.gz +0 -0
- package/packages/icons/know/index.js +0 -1
- package/packages/icons/know/index.js.gz +0 -0
- package/packages/icons/knowed/index.js +0 -1
- package/packages/icons/knowed/index.js.gz +0 -0
- package/packages/icons/knowopen/index.js +0 -1
- package/packages/icons/knowopen/index.js.gz +0 -0
- package/packages/icons/layout-refresh/index.js +0 -1
- package/packages/icons/layout-refresh/index.js.gz +0 -0
- package/packages/icons/left/index.js +0 -1
- package/packages/icons/lianjie/index.js +0 -1
- package/packages/icons/lianjie/index.js.gz +0 -0
- package/packages/icons/link/index.js +0 -1
- package/packages/icons/link/index.js.gz +0 -0
- package/packages/icons/lishihuihua/index.js +0 -1
- package/packages/icons/lishihuihua/index.js.gz +0 -0
- package/packages/icons/list/index.js +0 -1
- package/packages/icons/list/index.js.gz +0 -0
- package/packages/icons/list-view/index.js +0 -1
- package/packages/icons/list-view/index.js.gz +0 -0
- package/packages/icons/load/index.js +0 -1
- package/packages/icons/load/index.js.gz +0 -0
- package/packages/icons/lock/index.js +0 -1
- package/packages/icons/lock/index.js.gz +0 -0
- package/packages/icons/marsh/index.js +0 -1
- package/packages/icons/me/index.js +0 -1
- package/packages/icons/me/index.js.gz +0 -0
- package/packages/icons/more/index.js +0 -1
- package/packages/icons/more/index.js.gz +0 -0
- package/packages/icons/more-2/index.js +0 -1
- package/packages/icons/more-btn/index.js +0 -1
- package/packages/icons/more-btn/index.js.gz +0 -0
- package/packages/icons/muted/index.js +0 -1
- package/packages/icons/muted/index.js.gz +0 -0
- package/packages/icons/notification-face/index.js +0 -1
- package/packages/icons/notification-face/index.js.gz +0 -0
- package/packages/icons/paiban/index.js +0 -1
- package/packages/icons/paiban/index.js.gz +0 -0
- package/packages/icons/password-lock/index.js +0 -1
- package/packages/icons/password-lock/index.js.gz +0 -0
- package/packages/icons/password-lock2/index.js +0 -1
- package/packages/icons/password-lock2/index.js.gz +0 -0
- package/packages/icons/pause/index.js +0 -1
- package/packages/icons/pause/index.js.gz +0 -0
- package/packages/icons/phone/index.js +0 -1
- package/packages/icons/phone/index.js.gz +0 -0
- package/packages/icons/pinglun/index.js +0 -1
- package/packages/icons/pinglun/index.js.gz +0 -0
- package/packages/icons/plan/index.js +0 -1
- package/packages/icons/plan/index.js.gz +0 -0
- package/packages/icons/play/index.js +0 -1
- package/packages/icons/play/index.js.gz +0 -0
- package/packages/icons/preview/index.js +0 -1
- package/packages/icons/preview/index.js.gz +0 -0
- package/packages/icons/preview-eye/index.js +0 -1
- package/packages/icons/preview-eye/index.js.gz +0 -0
- package/packages/icons/project-list/index.js +0 -1
- package/packages/icons/project-list/index.js.gz +0 -0
- package/packages/icons/project-tree/index.js +0 -1
- package/packages/icons/project-tree/index.js.gz +0 -0
- package/packages/icons/promptinformation-l/index.js +0 -1
- package/packages/icons/promptinformation-l/index.js.gz +0 -0
- package/packages/icons/qiehuangongzuotai/index.js +0 -1
- package/packages/icons/qiehuangongzuotai/index.js.gz +0 -0
- package/packages/icons/qingkong/index.js +0 -1
- package/packages/icons/qingkong/index.js.gz +0 -0
- package/packages/icons/quanping/index.js +0 -1
- package/packages/icons/quanping/index.js.gz +0 -0
- package/packages/icons/rate-all/index.js +0 -1
- package/packages/icons/rate-all/index.js.gz +0 -0
- package/packages/icons/rate-half/index.js +0 -1
- package/packages/icons/rate-half/index.js.gz +0 -0
- package/packages/icons/rate-none/index.js +0 -1
- package/packages/icons/rate-none/index.js.gz +0 -0
- package/packages/icons/recover/index.js +0 -1
- package/packages/icons/recover/index.js.gz +0 -0
- package/packages/icons/refresh/index.js +0 -1
- package/packages/icons/refresh/index.js.gz +0 -0
- package/packages/icons/reload/index.js +0 -1
- package/packages/icons/reload/index.js.gz +0 -0
- package/packages/icons/reset/index.js +0 -1
- package/packages/icons/reset/index.js.gz +0 -0
- package/packages/icons/right/index.js +0 -1
- package/packages/icons/right-3/index.js +0 -1
- package/packages/icons/right-3/index.js.gz +0 -0
- package/packages/icons/riqixuanze/index.js +0 -1
- package/packages/icons/riqixuanze/index.js.gz +0 -0
- package/packages/icons/rise/index.js +0 -1
- package/packages/icons/rise/index.js.gz +0 -0
- package/packages/icons/save/index.js +0 -1
- package/packages/icons/save/index.js.gz +0 -0
- package/packages/icons/screenshot/index.js +0 -1
- package/packages/icons/screenshot/index.js.gz +0 -0
- package/packages/icons/search/index.js +0 -1
- package/packages/icons/search/index.js.gz +0 -0
- package/packages/icons/select/index.js +0 -1
- package/packages/icons/select-confirm/index.js +0 -1
- package/packages/icons/select-confirm/index.js.gz +0 -0
- package/packages/icons/select2/index.js +0 -1
- package/packages/icons/set-up/index.js +0 -1
- package/packages/icons/set-up/index.js.gz +0 -0
- package/packages/icons/setting/index.js +0 -1
- package/packages/icons/setting/index.js.gz +0 -0
- package/packages/icons/shangchuan/index.js +0 -1
- package/packages/icons/shangchuan/index.js.gz +0 -0
- package/packages/icons/shebei/index.js +0 -1
- package/packages/icons/shebei/index.js.gz +0 -0
- package/packages/icons/shebeiqunzu/index.js +0 -1
- package/packages/icons/shebeiqunzu/index.js.gz +0 -0
- package/packages/icons/shendusikao/index.js +0 -1
- package/packages/icons/shendusikao/index.js.gz +0 -0
- package/packages/icons/sheweimoren/index.js +0 -1
- package/packages/icons/sheweimoren/index.js.gz +0 -0
- package/packages/icons/shisuan/index.js +0 -1
- package/packages/icons/shisuan/index.js.gz +0 -0
- package/packages/icons/shitu-kapian/index.js +0 -1
- package/packages/icons/shitu-kapian/index.js.gz +0 -0
- package/packages/icons/shitu-liebiao/index.js +0 -1
- package/packages/icons/shitu-map/index.js +0 -1
- package/packages/icons/shitu-map/index.js.gz +0 -0
- package/packages/icons/shortcut-keys/index.js +0 -1
- package/packages/icons/shortcut-keys/index.js.gz +0 -0
- package/packages/icons/shoudongzhihang/index.js +0 -1
- package/packages/icons/shoudongzhihang/index.js.gz +0 -0
- package/packages/icons/shouqiliangcemianban/index.js +0 -1
- package/packages/icons/shouqiyoucemianban/index.js +0 -1
- package/packages/icons/shouqiyoucemianban-1/index.js +0 -1
- package/packages/icons/shouqiyoucemianban-1/index.js.gz +0 -0
- package/packages/icons/shouqizuocemianban/index.js +0 -1
- package/packages/icons/shouqizuocemianban-1/index.js +0 -1
- package/packages/icons/shouqizuocemianban-1/index.js.gz +0 -0
- package/packages/icons/shouquan/index.js +0 -1
- package/packages/icons/shouquan/index.js.gz +0 -0
- package/packages/icons/show/index.js +0 -1
- package/packages/icons/show/index.js.gz +0 -0
- package/packages/icons/shrink/index.js +0 -1
- package/packages/icons/shrink/index.js.gz +0 -0
- package/packages/icons/shuaxin/index.js +0 -1
- package/packages/icons/shuaxin/index.js.gz +0 -0
- package/packages/icons/shuipingduiqi/index.js +0 -1
- package/packages/icons/shuipingduiqi/index.js.gz +0 -0
- package/packages/icons/shuipingjunfen/index.js +0 -1
- package/packages/icons/shuipingjunfen/index.js.gz +0 -0
- package/packages/icons/shuyoufanye/index.js +0 -1
- package/packages/icons/shuyoufanye/index.js.gz +0 -0
- package/packages/icons/shuzuofanye/index.js +0 -1
- package/packages/icons/shuzuofanye/index.js.gz +0 -0
- package/packages/icons/solid-filter/index.js +0 -1
- package/packages/icons/solid-filter/index.js.gz +0 -0
- package/packages/icons/start/index.js +0 -1
- package/packages/icons/start/index.js.gz +0 -0
- package/packages/icons/stop/index.js +0 -1
- package/packages/icons/stop/index.js.gz +0 -0
- package/packages/icons/structural-diagram/index.js +0 -1
- package/packages/icons/structural-diagram/index.js.gz +0 -0
- package/packages/icons/success/index.js +0 -1
- package/packages/icons/system/index.js +0 -1
- package/packages/icons/system/index.js.gz +0 -0
- package/packages/icons/table-header-search/index.js +0 -1
- package/packages/icons/table-header-search/index.js.gz +0 -0
- package/packages/icons/text/index.js +0 -1
- package/packages/icons/text/index.js.gz +0 -0
- package/packages/icons/tianjiaxinhuati/index.js +0 -1
- package/packages/icons/tianjiaxinhuati/index.js.gz +0 -0
- package/packages/icons/tick/index.js +0 -1
- package/packages/icons/tick/index.js.gz +0 -0
- package/packages/icons/tishixinxi/index.js +0 -1
- package/packages/icons/tishixinxi/index.js.gz +0 -0
- package/packages/icons/tongguo/index.js +0 -1
- package/packages/icons/tongguo/index.js.gz +0 -0
- package/packages/icons/tongzhi/index.js +0 -1
- package/packages/icons/tongzhi/index.js.gz +0 -0
- package/packages/icons/tubiaoku/index.js +0 -1
- package/packages/icons/tubiaoku/index.js.gz +0 -0
- package/packages/icons/tuichuquanping/index.js +0 -1
- package/packages/icons/tuichuquanping/index.js.gz +0 -0
- package/packages/icons/tuozhuai/index.js +0 -1
- package/packages/icons/tuozhuai/index.js.gz +0 -0
- package/packages/icons/underline/index.js +0 -1
- package/packages/icons/underline/index.js.gz +0 -0
- package/packages/icons/unflod/index.js +0 -1
- package/packages/icons/unflod/index.js.gz +0 -0
- package/packages/icons/unlock/index.js +0 -1
- package/packages/icons/unlock/index.js.gz +0 -0
- package/packages/icons/up/index.js +0 -1
- package/packages/icons/up/index.js.gz +0 -0
- package/packages/icons/up-2/index.js +0 -1
- package/packages/icons/up-2/index.js.gz +0 -0
- package/packages/icons/vauth/index.js +0 -1
- package/packages/icons/vauth/index.js.gz +0 -0
- package/packages/icons/view/index.js +0 -1
- package/packages/icons/view/index.js.gz +0 -0
- package/packages/icons/view-2/index.js +0 -1
- package/packages/icons/view-2/index.js.gz +0 -0
- package/packages/icons/volume/index.js +0 -1
- package/packages/icons/volume/index.js.gz +0 -0
- package/packages/icons/wangge/index.js +0 -1
- package/packages/icons/wangge/index.js.gz +0 -0
- package/packages/icons/wangge-1/index.js +0 -1
- package/packages/icons/wangge-1/index.js.gz +0 -0
- package/packages/icons/warning/index.js +0 -1
- package/packages/icons/warning/index.js.gz +0 -0
- package/packages/icons/warning-face/index.js +0 -1
- package/packages/icons/warning-face/index.js.gz +0 -0
- package/packages/icons/wendujiang/index.js +0 -1
- package/packages/icons/wendujiang/index.js.gz +0 -0
- package/packages/icons/wendusheng/index.js +0 -1
- package/packages/icons/wendusheng/index.js.gz +0 -0
- package/packages/icons/withdraw/index.js +0 -1
- package/packages/icons/withdraw/index.js.gz +0 -0
- package/packages/icons/xiala/index.js +0 -1
- package/packages/icons/xiazai/index.js +0 -1
- package/packages/icons/xiazai/index.js.gz +0 -0
- package/packages/icons/xinzengtongji/index.js +0 -1
- package/packages/icons/xinzengtongji/index.js.gz +0 -0
- package/packages/icons/xuanzhuanjiaodu/index.js +0 -1
- package/packages/icons/xuanzhuanjiaodu/index.js.gz +0 -0
- package/packages/icons/yidongduan/index.js +0 -1
- package/packages/icons/yidongduan/index.js.gz +0 -0
- package/packages/icons/yincang/index.js +0 -1
- package/packages/icons/yincang/index.js.gz +0 -0
- package/packages/icons/yingpian/index.js +0 -1
- package/packages/icons/yingpian/index.js.gz +0 -0
- package/packages/icons/yingyong/index.js +0 -1
- package/packages/icons/yingyong/index.js.gz +0 -0
- package/packages/icons/yitushoutu/index.js +0 -1
- package/packages/icons/yitushoutu/index.js.gz +0 -0
- package/packages/icons/yuanxinghuizhi/index.js +0 -1
- package/packages/icons/yuanxinghuizhi/index.js.gz +0 -0
- package/packages/icons/yulan-2/index.js +0 -1
- package/packages/icons/yulan-2/index.js.gz +0 -0
- package/packages/icons/yuyin/index.js +0 -1
- package/packages/icons/yuyin/index.js.gz +0 -0
- package/packages/icons/zhangaiwu/index.js +0 -1
- package/packages/icons/zhangaiwu/index.js.gz +0 -0
- package/packages/icons/zhizhen/index.js +0 -1
- package/packages/icons/zhizhen/index.js.gz +0 -0
- package/packages/icons/zhongxinshengcheng/index.js +0 -1
- package/packages/icons/zhongxinshengcheng/index.js.gz +0 -0
- package/packages/icons/zhuomianduan/index.js +0 -1
- package/packages/icons/zhuomianduan/index.js.gz +0 -0
- package/packages/icons/zidingyihuizhi/index.js +0 -1
- package/packages/icons/zidingyihuizhi/index.js.gz +0 -0
- package/packages/icons/zuobiao/index.js +0 -1
- package/packages/icons/zuobiao/index.js.gz +0 -0
- package/packages/business-components/ai-panel/index-C1GmXa31.js.gz +0 -0
- package/packages/business-components/ai-panel/index-CK8QsfV3.js.gz +0 -0
- package/packages/business-components/ai-panel/index-CdcPWpOg.js +0 -180
- package/packages/business-components/ai-panel/index-CdcPWpOg.js.gz +0 -0
- package/packages/components/loading/src/loading.d.ts +0 -26
- package/packages/components/steps/index.js.gz +0 -0
- package/packages/icons/caret-right/index.js.gz +0 -0
- package/packages/icons/shouqiyoucemianban/index.js.gz +0 -0
- package/packages/icons/shouqizuocemianban/index.js.gz +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineAsyncComponent as ot, ref as
|
|
1
|
+
import { defineAsyncComponent as ot, ref as z, watch as bu, h as it, reactive as ct, defineComponent as ou, onMounted as Ou, createElementBlock as O, openBlock as S, createElementVNode as g, toDisplayString as V, computed as su, createCommentVNode as $, createVNode as j, unref as v, normalizeClass as Ju, createBlock as X, withCtx as J, Fragment as Bu, renderList as Qu, withDirectives as Au, withKeys as Jt, vModelText as Qt, withModifiers as Fe, vShow as Hu, onBeforeUnmount as at, resolveDirective as Wt, nextTick as Ae, Transition as Xt, normalizeStyle as Yt } from "vue";
|
|
2
2
|
import { withInstall as u0 } from "@das-fed/upf-utils/with-install/index";
|
|
3
3
|
import { useRoute as e0 } from "vue-router";
|
|
4
4
|
import { DasIconClose2 as t0 } from "@das-fed/upf-ui/packages/icons/close-2/index";
|
|
5
|
-
import { t as
|
|
5
|
+
import { t as I, setI18nRule as n0 } from "@das-fed/upf-web/packages/i18n/index";
|
|
6
6
|
import { DasIconAudioing as r0 } from "@das-fed/upf-ui/packages/icons/audioing/index";
|
|
7
7
|
import { DasIconCloseaudio as o0 } from "@das-fed/upf-ui/packages/icons/closeaudio/index";
|
|
8
8
|
import { DasIconLishihuihua as i0 } from "@das-fed/upf-ui/packages/icons/lishihuihua/index";
|
|
@@ -33,9 +33,9 @@ import { knowledgeBase as Ru, createService as mt, iotMinio as xt } from "@das-f
|
|
|
33
33
|
import { DasIconLianjie as _0 } from "@das-fed/upf-ui/packages/icons/lianjie/index";
|
|
34
34
|
import { DasIconQingkong as g0 } from "@das-fed/upf-ui/packages/icons/qingkong/index";
|
|
35
35
|
import { DasIconDelete as k0 } from "@das-fed/upf-ui/packages/icons/delete/index";
|
|
36
|
-
import { DasEmpty as
|
|
37
|
-
import { socketService as
|
|
38
|
-
import { SizeWatcher as
|
|
36
|
+
import { DasEmpty as y0 } from "@das-fed/upf-ui/packages/components/empty/index";
|
|
37
|
+
import { socketService as A0 } from "@das-fed/upf-utils/webSocket-service";
|
|
38
|
+
import { SizeWatcher as v0 } from "@das-fed/upf-utils/size-watcher";
|
|
39
39
|
let $u = (u = 21) => {
|
|
40
40
|
let e = "", t = crypto.getRandomValues(new Uint8Array(u));
|
|
41
41
|
for (; u--; ) {
|
|
@@ -44,8 +44,8 @@ let $u = (u = 21) => {
|
|
|
44
44
|
}
|
|
45
45
|
return e;
|
|
46
46
|
};
|
|
47
|
-
const C0 = ot(() => import("./index-
|
|
48
|
-
const u =
|
|
47
|
+
const C0 = ot(() => import("./index-14NcMHNj.js")), D0 = () => {
|
|
48
|
+
const u = z(), e = z(!1);
|
|
49
49
|
let t = !1;
|
|
50
50
|
const n = (c) => {
|
|
51
51
|
e.value && (t = c, e.value = !1);
|
|
@@ -209,35 +209,23 @@ const F0 = { class: "das-ai-use-chat-content" }, w0 = {
|
|
|
209
209
|
},
|
|
210
210
|
emits: ["click"],
|
|
211
211
|
setup(u, { emit: e }) {
|
|
212
|
-
const t =
|
|
212
|
+
const t = z();
|
|
213
213
|
return Ou(() => {
|
|
214
|
-
}), (n, r) => (S(),
|
|
215
|
-
"
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
[
|
|
222
|
-
g(
|
|
223
|
-
"div",
|
|
224
|
-
F0,
|
|
225
|
-
V(n.item.content),
|
|
226
|
-
1
|
|
227
|
-
/* TEXT */
|
|
228
|
-
)
|
|
229
|
-
],
|
|
230
|
-
512
|
|
231
|
-
/* NEED_PATCH */
|
|
232
|
-
));
|
|
214
|
+
}), (n, r) => (S(), O("div", {
|
|
215
|
+
ref_key: "userChatRef",
|
|
216
|
+
ref: t,
|
|
217
|
+
class: "das-ai-use-chat"
|
|
218
|
+
}, [
|
|
219
|
+
g("div", F0, V(n.item.content), 1)
|
|
220
|
+
], 512));
|
|
233
221
|
}
|
|
234
222
|
}), iu = (u, e) => {
|
|
235
223
|
const t = u.__vccOpts || u;
|
|
236
224
|
for (const [n, r] of e)
|
|
237
225
|
t[n] = r;
|
|
238
226
|
return t;
|
|
239
|
-
},
|
|
240
|
-
var
|
|
227
|
+
}, T0 = /* @__PURE__ */ iu(S0, [["__scopeId", "data-v-62734e82"]]);
|
|
228
|
+
var I0 = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
241
229
|
function z0(u) {
|
|
242
230
|
return u && u.__esModule && Object.prototype.hasOwnProperty.call(u, "default") ? u.default : u;
|
|
243
231
|
}
|
|
@@ -251,7 +239,7 @@ var kt = { exports: {} };
|
|
|
251
239
|
(function(u, e) {
|
|
252
240
|
(function(n, r) {
|
|
253
241
|
u.exports = r();
|
|
254
|
-
})(
|
|
242
|
+
})(I0, function() {
|
|
255
243
|
return (
|
|
256
244
|
/******/
|
|
257
245
|
function() {
|
|
@@ -269,113 +257,113 @@ var kt = { exports: {} };
|
|
|
269
257
|
}
|
|
270
258
|
});
|
|
271
259
|
var a = i(279), s = /* @__PURE__ */ i.n(a), l = i(370), f = /* @__PURE__ */ i.n(l), _ = i(817), h = /* @__PURE__ */ i.n(_);
|
|
272
|
-
function d(
|
|
260
|
+
function d(q) {
|
|
273
261
|
try {
|
|
274
|
-
return document.execCommand(
|
|
262
|
+
return document.execCommand(q);
|
|
275
263
|
} catch {
|
|
276
264
|
return !1;
|
|
277
265
|
}
|
|
278
266
|
}
|
|
279
|
-
var
|
|
267
|
+
var A = function(w) {
|
|
280
268
|
var F = h()(w);
|
|
281
269
|
return d("cut"), F;
|
|
282
|
-
},
|
|
283
|
-
function C(
|
|
270
|
+
}, y = A;
|
|
271
|
+
function C(q) {
|
|
284
272
|
var w = document.documentElement.getAttribute("dir") === "rtl", F = document.createElement("textarea");
|
|
285
273
|
F.style.fontSize = "12pt", F.style.border = "0", F.style.padding = "0", F.style.margin = "0", F.style.position = "absolute", F.style[w ? "right" : "left"] = "-9999px";
|
|
286
|
-
var
|
|
287
|
-
return F.style.top = "".concat(
|
|
274
|
+
var L = window.pageYOffset || document.documentElement.scrollTop;
|
|
275
|
+
return F.style.top = "".concat(L, "px"), F.setAttribute("readonly", ""), F.value = q, F;
|
|
288
276
|
}
|
|
289
277
|
var k = function(w, F) {
|
|
290
|
-
var
|
|
291
|
-
F.container.appendChild(
|
|
292
|
-
var
|
|
293
|
-
return d("copy"),
|
|
278
|
+
var L = C(w);
|
|
279
|
+
F.container.appendChild(L);
|
|
280
|
+
var B = h()(L);
|
|
281
|
+
return d("copy"), L.remove(), B;
|
|
294
282
|
}, p = function(w) {
|
|
295
283
|
var F = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
296
284
|
container: document.body
|
|
297
|
-
},
|
|
298
|
-
return typeof w == "string" ?
|
|
285
|
+
}, L = "";
|
|
286
|
+
return typeof w == "string" ? L = k(w, F) : w instanceof HTMLInputElement && !["text", "search", "url", "tel", "password"].includes(w == null ? void 0 : w.type) ? L = k(w.value, F) : (L = h()(w), d("copy")), L;
|
|
299
287
|
}, b = p;
|
|
300
|
-
function m(
|
|
288
|
+
function m(q) {
|
|
301
289
|
"@babel/helpers - typeof";
|
|
302
290
|
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? m = function(F) {
|
|
303
291
|
return typeof F;
|
|
304
292
|
} : m = function(F) {
|
|
305
293
|
return F && typeof Symbol == "function" && F.constructor === Symbol && F !== Symbol.prototype ? "symbol" : typeof F;
|
|
306
|
-
}, m(
|
|
294
|
+
}, m(q);
|
|
307
295
|
}
|
|
308
|
-
var
|
|
309
|
-
var w = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, F = w.action,
|
|
310
|
-
if (
|
|
296
|
+
var N = function() {
|
|
297
|
+
var w = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, F = w.action, L = F === void 0 ? "copy" : F, B = w.container, H = w.target, eu = w.text;
|
|
298
|
+
if (L !== "copy" && L !== "cut")
|
|
311
299
|
throw new Error('Invalid "action" value, use either "copy" or "cut"');
|
|
312
|
-
if (
|
|
313
|
-
if (
|
|
314
|
-
if (
|
|
300
|
+
if (H !== void 0)
|
|
301
|
+
if (H && m(H) === "object" && H.nodeType === 1) {
|
|
302
|
+
if (L === "copy" && H.hasAttribute("disabled"))
|
|
315
303
|
throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');
|
|
316
|
-
if (
|
|
304
|
+
if (L === "cut" && (H.hasAttribute("readonly") || H.hasAttribute("disabled")))
|
|
317
305
|
throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`);
|
|
318
306
|
} else
|
|
319
307
|
throw new Error('Invalid "target" value, use a valid Element');
|
|
320
308
|
if (eu)
|
|
321
309
|
return b(eu, {
|
|
322
|
-
container:
|
|
310
|
+
container: B
|
|
323
311
|
});
|
|
324
|
-
if (
|
|
325
|
-
return
|
|
326
|
-
container:
|
|
312
|
+
if (H)
|
|
313
|
+
return L === "cut" ? y(H) : b(H, {
|
|
314
|
+
container: B
|
|
327
315
|
});
|
|
328
|
-
}, E =
|
|
329
|
-
function
|
|
316
|
+
}, E = N;
|
|
317
|
+
function R(q) {
|
|
330
318
|
"@babel/helpers - typeof";
|
|
331
|
-
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ?
|
|
319
|
+
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? R = function(F) {
|
|
332
320
|
return typeof F;
|
|
333
|
-
} :
|
|
321
|
+
} : R = function(F) {
|
|
334
322
|
return F && typeof Symbol == "function" && F.constructor === Symbol && F !== Symbol.prototype ? "symbol" : typeof F;
|
|
335
|
-
},
|
|
323
|
+
}, R(q);
|
|
336
324
|
}
|
|
337
|
-
function
|
|
338
|
-
if (!(
|
|
325
|
+
function P(q, w) {
|
|
326
|
+
if (!(q instanceof w))
|
|
339
327
|
throw new TypeError("Cannot call a class as a function");
|
|
340
328
|
}
|
|
341
|
-
function K(
|
|
329
|
+
function K(q, w) {
|
|
342
330
|
for (var F = 0; F < w.length; F++) {
|
|
343
|
-
var
|
|
344
|
-
|
|
331
|
+
var L = w[F];
|
|
332
|
+
L.enumerable = L.enumerable || !1, L.configurable = !0, "value" in L && (L.writable = !0), Object.defineProperty(q, L.key, L);
|
|
345
333
|
}
|
|
346
334
|
}
|
|
347
|
-
function du(
|
|
348
|
-
return w && K(
|
|
335
|
+
function du(q, w, F) {
|
|
336
|
+
return w && K(q.prototype, w), F && K(q, F), q;
|
|
349
337
|
}
|
|
350
|
-
function _u(
|
|
338
|
+
function _u(q, w) {
|
|
351
339
|
if (typeof w != "function" && w !== null)
|
|
352
340
|
throw new TypeError("Super expression must either be null or a function");
|
|
353
|
-
|
|
341
|
+
q.prototype = Object.create(w && w.prototype, { constructor: { value: q, writable: !0, configurable: !0 } }), w && gu(q, w);
|
|
354
342
|
}
|
|
355
|
-
function gu(
|
|
356
|
-
return gu = Object.setPrototypeOf || function(
|
|
357
|
-
return
|
|
358
|
-
}, gu(
|
|
343
|
+
function gu(q, w) {
|
|
344
|
+
return gu = Object.setPrototypeOf || function(L, B) {
|
|
345
|
+
return L.__proto__ = B, L;
|
|
346
|
+
}, gu(q, w);
|
|
359
347
|
}
|
|
360
|
-
function wu(
|
|
348
|
+
function wu(q) {
|
|
361
349
|
var w = ue();
|
|
362
350
|
return function() {
|
|
363
|
-
var
|
|
351
|
+
var L = Tu(q), B;
|
|
364
352
|
if (w) {
|
|
365
|
-
var
|
|
366
|
-
|
|
353
|
+
var H = Tu(this).constructor;
|
|
354
|
+
B = Reflect.construct(L, arguments, H);
|
|
367
355
|
} else
|
|
368
|
-
|
|
369
|
-
return fu(this,
|
|
356
|
+
B = L.apply(this, arguments);
|
|
357
|
+
return fu(this, B);
|
|
370
358
|
};
|
|
371
359
|
}
|
|
372
|
-
function fu(
|
|
373
|
-
return w && (
|
|
360
|
+
function fu(q, w) {
|
|
361
|
+
return w && (R(w) === "object" || typeof w == "function") ? w : Su(q);
|
|
374
362
|
}
|
|
375
|
-
function Su(
|
|
376
|
-
if (
|
|
363
|
+
function Su(q) {
|
|
364
|
+
if (q === void 0)
|
|
377
365
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
378
|
-
return
|
|
366
|
+
return q;
|
|
379
367
|
}
|
|
380
368
|
function ue() {
|
|
381
369
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
|
|
@@ -387,28 +375,28 @@ var kt = { exports: {} };
|
|
|
387
375
|
return !1;
|
|
388
376
|
}
|
|
389
377
|
}
|
|
390
|
-
function
|
|
391
|
-
return
|
|
378
|
+
function Tu(q) {
|
|
379
|
+
return Tu = Object.setPrototypeOf ? Object.getPrototypeOf : function(F) {
|
|
392
380
|
return F.__proto__ || Object.getPrototypeOf(F);
|
|
393
|
-
},
|
|
381
|
+
}, Tu(q);
|
|
394
382
|
}
|
|
395
|
-
function ju(
|
|
396
|
-
var F = "data-clipboard-".concat(
|
|
383
|
+
function ju(q, w) {
|
|
384
|
+
var F = "data-clipboard-".concat(q);
|
|
397
385
|
if (w.hasAttribute(F))
|
|
398
386
|
return w.getAttribute(F);
|
|
399
387
|
}
|
|
400
|
-
var
|
|
401
|
-
_u(F,
|
|
388
|
+
var Iu = /* @__PURE__ */ function(q) {
|
|
389
|
+
_u(F, q);
|
|
402
390
|
var w = wu(F);
|
|
403
|
-
function F(
|
|
404
|
-
var
|
|
405
|
-
return
|
|
391
|
+
function F(L, B) {
|
|
392
|
+
var H;
|
|
393
|
+
return P(this, F), H = w.call(this), H.resolveOptions(B), H.listenClick(L), H;
|
|
406
394
|
}
|
|
407
395
|
return du(F, [{
|
|
408
396
|
key: "resolveOptions",
|
|
409
397
|
value: function() {
|
|
410
|
-
var
|
|
411
|
-
this.action = typeof
|
|
398
|
+
var B = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
399
|
+
this.action = typeof B.action == "function" ? B.action : this.defaultAction, this.target = typeof B.target == "function" ? B.target : this.defaultTarget, this.text = typeof B.text == "function" ? B.text : this.defaultText, this.container = R(B.container) === "object" ? B.container : document.body;
|
|
412
400
|
}
|
|
413
401
|
/**
|
|
414
402
|
* Adds a click event listener to the passed trigger.
|
|
@@ -416,10 +404,10 @@ var kt = { exports: {} };
|
|
|
416
404
|
*/
|
|
417
405
|
}, {
|
|
418
406
|
key: "listenClick",
|
|
419
|
-
value: function(
|
|
420
|
-
var
|
|
421
|
-
this.listener = f()(
|
|
422
|
-
return
|
|
407
|
+
value: function(B) {
|
|
408
|
+
var H = this;
|
|
409
|
+
this.listener = f()(B, "click", function(eu) {
|
|
410
|
+
return H.onClick(eu);
|
|
423
411
|
});
|
|
424
412
|
}
|
|
425
413
|
/**
|
|
@@ -428,19 +416,19 @@ var kt = { exports: {} };
|
|
|
428
416
|
*/
|
|
429
417
|
}, {
|
|
430
418
|
key: "onClick",
|
|
431
|
-
value: function(
|
|
432
|
-
var
|
|
419
|
+
value: function(B) {
|
|
420
|
+
var H = B.delegateTarget || B.currentTarget, eu = this.action(H) || "copy", Eu = E({
|
|
433
421
|
action: eu,
|
|
434
422
|
container: this.container,
|
|
435
|
-
target: this.target(
|
|
436
|
-
text: this.text(
|
|
423
|
+
target: this.target(H),
|
|
424
|
+
text: this.text(H)
|
|
437
425
|
});
|
|
438
426
|
this.emit(Eu ? "success" : "error", {
|
|
439
427
|
action: eu,
|
|
440
428
|
text: Eu,
|
|
441
|
-
trigger:
|
|
429
|
+
trigger: H,
|
|
442
430
|
clearSelection: function() {
|
|
443
|
-
|
|
431
|
+
H && H.focus(), window.getSelection().removeAllRanges();
|
|
444
432
|
}
|
|
445
433
|
});
|
|
446
434
|
}
|
|
@@ -450,8 +438,8 @@ var kt = { exports: {} };
|
|
|
450
438
|
*/
|
|
451
439
|
}, {
|
|
452
440
|
key: "defaultAction",
|
|
453
|
-
value: function(
|
|
454
|
-
return ju("action",
|
|
441
|
+
value: function(B) {
|
|
442
|
+
return ju("action", B);
|
|
455
443
|
}
|
|
456
444
|
/**
|
|
457
445
|
* Default `target` lookup function.
|
|
@@ -459,10 +447,10 @@ var kt = { exports: {} };
|
|
|
459
447
|
*/
|
|
460
448
|
}, {
|
|
461
449
|
key: "defaultTarget",
|
|
462
|
-
value: function(
|
|
463
|
-
var
|
|
464
|
-
if (
|
|
465
|
-
return document.querySelector(
|
|
450
|
+
value: function(B) {
|
|
451
|
+
var H = ju("target", B);
|
|
452
|
+
if (H)
|
|
453
|
+
return document.querySelector(H);
|
|
466
454
|
}
|
|
467
455
|
/**
|
|
468
456
|
* Allow fire programmatically a copy action
|
|
@@ -476,8 +464,8 @@ var kt = { exports: {} };
|
|
|
476
464
|
* Default `text` lookup function.
|
|
477
465
|
* @param {Element} trigger
|
|
478
466
|
*/
|
|
479
|
-
value: function(
|
|
480
|
-
return ju("text",
|
|
467
|
+
value: function(B) {
|
|
468
|
+
return ju("text", B);
|
|
481
469
|
}
|
|
482
470
|
/**
|
|
483
471
|
* Destroy lifecycle.
|
|
@@ -489,11 +477,11 @@ var kt = { exports: {} };
|
|
|
489
477
|
}
|
|
490
478
|
}], [{
|
|
491
479
|
key: "copy",
|
|
492
|
-
value: function(
|
|
493
|
-
var
|
|
480
|
+
value: function(B) {
|
|
481
|
+
var H = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
494
482
|
container: document.body
|
|
495
483
|
};
|
|
496
|
-
return b(
|
|
484
|
+
return b(B, H);
|
|
497
485
|
}
|
|
498
486
|
/**
|
|
499
487
|
* Allow fire programmatically a cut action
|
|
@@ -502,8 +490,8 @@ var kt = { exports: {} };
|
|
|
502
490
|
*/
|
|
503
491
|
}, {
|
|
504
492
|
key: "cut",
|
|
505
|
-
value: function(
|
|
506
|
-
return
|
|
493
|
+
value: function(B) {
|
|
494
|
+
return y(B);
|
|
507
495
|
}
|
|
508
496
|
/**
|
|
509
497
|
* Returns the support of the given action, or all actions if no action is
|
|
@@ -513,13 +501,13 @@ var kt = { exports: {} };
|
|
|
513
501
|
}, {
|
|
514
502
|
key: "isSupported",
|
|
515
503
|
value: function() {
|
|
516
|
-
var
|
|
517
|
-
return
|
|
504
|
+
var B = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ["copy", "cut"], H = typeof B == "string" ? [B] : B, eu = !!document.queryCommandSupported;
|
|
505
|
+
return H.forEach(function(Eu) {
|
|
518
506
|
eu = eu && !!document.queryCommandSupported(Eu);
|
|
519
507
|
}), eu;
|
|
520
508
|
}
|
|
521
509
|
}]), F;
|
|
522
|
-
}(s()), fe =
|
|
510
|
+
}(s()), fe = Iu;
|
|
523
511
|
}
|
|
524
512
|
),
|
|
525
513
|
/***/
|
|
@@ -546,22 +534,22 @@ var kt = { exports: {} };
|
|
|
546
534
|
/***/
|
|
547
535
|
function(o, c, i) {
|
|
548
536
|
var a = i(828);
|
|
549
|
-
function s(_, h, d,
|
|
537
|
+
function s(_, h, d, A, y) {
|
|
550
538
|
var C = f.apply(this, arguments);
|
|
551
|
-
return _.addEventListener(d, C,
|
|
539
|
+
return _.addEventListener(d, C, y), {
|
|
552
540
|
destroy: function() {
|
|
553
|
-
_.removeEventListener(d, C,
|
|
541
|
+
_.removeEventListener(d, C, y);
|
|
554
542
|
}
|
|
555
543
|
};
|
|
556
544
|
}
|
|
557
|
-
function l(_, h, d,
|
|
545
|
+
function l(_, h, d, A, y) {
|
|
558
546
|
return typeof _.addEventListener == "function" ? s.apply(null, arguments) : typeof d == "function" ? s.bind(null, document).apply(null, arguments) : (typeof _ == "string" && (_ = document.querySelectorAll(_)), Array.prototype.map.call(_, function(C) {
|
|
559
|
-
return s(C, h, d,
|
|
547
|
+
return s(C, h, d, A, y);
|
|
560
548
|
}));
|
|
561
549
|
}
|
|
562
|
-
function f(_, h, d,
|
|
563
|
-
return function(
|
|
564
|
-
|
|
550
|
+
function f(_, h, d, A) {
|
|
551
|
+
return function(y) {
|
|
552
|
+
y.delegateTarget = a(y.target, h), y.delegateTarget && A.call(_, y);
|
|
565
553
|
};
|
|
566
554
|
}
|
|
567
555
|
o.exports = l;
|
|
@@ -589,41 +577,41 @@ var kt = { exports: {} };
|
|
|
589
577
|
/***/
|
|
590
578
|
function(o, c, i) {
|
|
591
579
|
var a = i(879), s = i(438);
|
|
592
|
-
function l(d,
|
|
593
|
-
if (!d && !
|
|
580
|
+
function l(d, A, y) {
|
|
581
|
+
if (!d && !A && !y)
|
|
594
582
|
throw new Error("Missing required arguments");
|
|
595
|
-
if (!a.string(
|
|
583
|
+
if (!a.string(A))
|
|
596
584
|
throw new TypeError("Second argument must be a String");
|
|
597
|
-
if (!a.fn(
|
|
585
|
+
if (!a.fn(y))
|
|
598
586
|
throw new TypeError("Third argument must be a Function");
|
|
599
587
|
if (a.node(d))
|
|
600
|
-
return f(d,
|
|
588
|
+
return f(d, A, y);
|
|
601
589
|
if (a.nodeList(d))
|
|
602
|
-
return _(d,
|
|
590
|
+
return _(d, A, y);
|
|
603
591
|
if (a.string(d))
|
|
604
|
-
return h(d,
|
|
592
|
+
return h(d, A, y);
|
|
605
593
|
throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList");
|
|
606
594
|
}
|
|
607
|
-
function f(d,
|
|
608
|
-
return d.addEventListener(
|
|
595
|
+
function f(d, A, y) {
|
|
596
|
+
return d.addEventListener(A, y), {
|
|
609
597
|
destroy: function() {
|
|
610
|
-
d.removeEventListener(
|
|
598
|
+
d.removeEventListener(A, y);
|
|
611
599
|
}
|
|
612
600
|
};
|
|
613
601
|
}
|
|
614
|
-
function _(d,
|
|
602
|
+
function _(d, A, y) {
|
|
615
603
|
return Array.prototype.forEach.call(d, function(C) {
|
|
616
|
-
C.addEventListener(
|
|
604
|
+
C.addEventListener(A, y);
|
|
617
605
|
}), {
|
|
618
606
|
destroy: function() {
|
|
619
607
|
Array.prototype.forEach.call(d, function(C) {
|
|
620
|
-
C.removeEventListener(
|
|
608
|
+
C.removeEventListener(A, y);
|
|
621
609
|
});
|
|
622
610
|
}
|
|
623
611
|
};
|
|
624
612
|
}
|
|
625
|
-
function h(d,
|
|
626
|
-
return s(document.body, d,
|
|
613
|
+
function h(d, A, y) {
|
|
614
|
+
return s(document.body, d, A, y);
|
|
627
615
|
}
|
|
628
616
|
o.exports = l;
|
|
629
617
|
}
|
|
@@ -850,7 +838,7 @@ function Wu(u, e, t) {
|
|
|
850
838
|
}
|
|
851
839
|
Wu.defaultChars = ";/?:@&=+$,-_.!~*'()#";
|
|
852
840
|
Wu.componentChars = "-_.!~*'()";
|
|
853
|
-
function
|
|
841
|
+
function Te(u) {
|
|
854
842
|
let e = "";
|
|
855
843
|
return e += u.protocol || "", e += u.slashes ? "//" : "", e += u.auth ? u.auth + "@" : "", u.hostname && u.hostname.indexOf(":") !== -1 ? e += "[" + u.hostname + "]" : e += u.hostname || "", e += u.port ? ":" + u.port : "", e += u.pathname || "", e += u.search || "", e += u.hash || "", e;
|
|
856
844
|
}
|
|
@@ -873,7 +861,7 @@ const O0 = /^([a-z0-9.+-]+:)/i, R0 = /:[0-9]*$/, P0 = /^(\/\/?(?!\/)[^\?\s]*)(\?
|
|
|
873
861
|
"gopher:": !0,
|
|
874
862
|
"file:": !0
|
|
875
863
|
};
|
|
876
|
-
function
|
|
864
|
+
function Ie(u, e) {
|
|
877
865
|
if (u && u instanceof oe) return u;
|
|
878
866
|
const t = new oe();
|
|
879
867
|
return t.parse(u, e), t;
|
|
@@ -900,14 +888,14 @@ oe.prototype.parse = function(u, e) {
|
|
|
900
888
|
const h = this.hostname[0] === "[" && this.hostname[this.hostname.length - 1] === "]";
|
|
901
889
|
if (!h) {
|
|
902
890
|
const d = this.hostname.split(/\./);
|
|
903
|
-
for (let
|
|
904
|
-
const C = d[
|
|
891
|
+
for (let A = 0, y = d.length; A < y; A++) {
|
|
892
|
+
const C = d[A];
|
|
905
893
|
if (C && !C.match(Ue)) {
|
|
906
894
|
let k = "";
|
|
907
895
|
for (let p = 0, b = C.length; p < b; p++)
|
|
908
896
|
C.charCodeAt(p) > 127 ? k += "x" : k += C[p];
|
|
909
897
|
if (!k.match(Ue)) {
|
|
910
|
-
const p = d.slice(0,
|
|
898
|
+
const p = d.slice(0, A), b = d.slice(A + 1), m = C.match(U0);
|
|
911
899
|
m && (p.push(m[1]), b.unshift(m[2])), b.length && (o = b.join(".") + o), this.hostname = p.join(".");
|
|
912
900
|
break;
|
|
913
901
|
}
|
|
@@ -929,15 +917,15 @@ const Z0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
929
917
|
__proto__: null,
|
|
930
918
|
decode: qu,
|
|
931
919
|
encode: Wu,
|
|
932
|
-
format:
|
|
933
|
-
parse:
|
|
934
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
920
|
+
format: Te,
|
|
921
|
+
parse: Ie
|
|
922
|
+
}, Symbol.toStringTag, { value: "Module" })), yt = /[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, At = /[\0-\x1F\x7F-\x9F]/, G0 = /[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/, ze = /[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/, vt = /[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/, Ct = /[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/, K0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
935
923
|
__proto__: null,
|
|
936
|
-
Any:
|
|
937
|
-
Cc:
|
|
924
|
+
Any: yt,
|
|
925
|
+
Cc: At,
|
|
938
926
|
Cf: G0,
|
|
939
927
|
P: ze,
|
|
940
|
-
S:
|
|
928
|
+
S: vt,
|
|
941
929
|
Z: Ct
|
|
942
930
|
}, Symbol.toStringTag, { value: "Module" })), J0 = new Uint16Array(
|
|
943
931
|
// prettier-ignore
|
|
@@ -993,18 +981,18 @@ var W;
|
|
|
993
981
|
u[u.NUM = 35] = "NUM", u[u.SEMI = 59] = "SEMI", u[u.EQUALS = 61] = "EQUALS", u[u.ZERO = 48] = "ZERO", u[u.NINE = 57] = "NINE", u[u.LOWER_A = 97] = "LOWER_A", u[u.LOWER_F = 102] = "LOWER_F", u[u.LOWER_X = 120] = "LOWER_X", u[u.LOWER_Z = 122] = "LOWER_Z", u[u.UPPER_A = 65] = "UPPER_A", u[u.UPPER_F = 70] = "UPPER_F", u[u.UPPER_Z = 90] = "UPPER_Z";
|
|
994
982
|
})(W || (W = {}));
|
|
995
983
|
const un = 32;
|
|
996
|
-
var
|
|
984
|
+
var vu;
|
|
997
985
|
(function(u) {
|
|
998
986
|
u[u.VALUE_LENGTH = 49152] = "VALUE_LENGTH", u[u.BRANCH_LENGTH = 16256] = "BRANCH_LENGTH", u[u.JUMP_TABLE = 127] = "JUMP_TABLE";
|
|
999
|
-
})(
|
|
1000
|
-
function
|
|
987
|
+
})(vu || (vu = {}));
|
|
988
|
+
function ve(u) {
|
|
1001
989
|
return u >= W.ZERO && u <= W.NINE;
|
|
1002
990
|
}
|
|
1003
991
|
function en(u) {
|
|
1004
992
|
return u >= W.UPPER_A && u <= W.UPPER_F || u >= W.LOWER_A && u <= W.LOWER_F;
|
|
1005
993
|
}
|
|
1006
994
|
function tn(u) {
|
|
1007
|
-
return u >= W.UPPER_A && u <= W.UPPER_Z || u >= W.LOWER_A && u <= W.LOWER_Z ||
|
|
995
|
+
return u >= W.UPPER_A && u <= W.UPPER_Z || u >= W.LOWER_A && u <= W.LOWER_Z || ve(u);
|
|
1008
996
|
}
|
|
1009
997
|
function nn(u) {
|
|
1010
998
|
return u === W.EQUALS || tn(u);
|
|
@@ -1013,13 +1001,13 @@ var Q;
|
|
|
1013
1001
|
(function(u) {
|
|
1014
1002
|
u[u.EntityStart = 0] = "EntityStart", u[u.NumericStart = 1] = "NumericStart", u[u.NumericDecimal = 2] = "NumericDecimal", u[u.NumericHex = 3] = "NumericHex", u[u.NamedEntity = 4] = "NamedEntity";
|
|
1015
1003
|
})(Q || (Q = {}));
|
|
1016
|
-
var
|
|
1004
|
+
var yu;
|
|
1017
1005
|
(function(u) {
|
|
1018
1006
|
u[u.Legacy = 0] = "Legacy", u[u.Strict = 1] = "Strict", u[u.Attribute = 2] = "Attribute";
|
|
1019
|
-
})(
|
|
1007
|
+
})(yu || (yu = {}));
|
|
1020
1008
|
class rn {
|
|
1021
1009
|
constructor(e, t, n) {
|
|
1022
|
-
this.decodeTree = e, this.emitCodePoint = t, this.errors = n, this.state = Q.EntityStart, this.consumed = 1, this.result = 0, this.treeIndex = 0, this.excess = 1, this.decodeMode =
|
|
1010
|
+
this.decodeTree = e, this.emitCodePoint = t, this.errors = n, this.state = Q.EntityStart, this.consumed = 1, this.result = 0, this.treeIndex = 0, this.excess = 1, this.decodeMode = yu.Strict;
|
|
1023
1011
|
}
|
|
1024
1012
|
/** Resets the instance to make it reusable. */
|
|
1025
1013
|
startEntity(e) {
|
|
@@ -1081,7 +1069,7 @@ class rn {
|
|
|
1081
1069
|
const n = t;
|
|
1082
1070
|
for (; t < e.length; ) {
|
|
1083
1071
|
const r = e.charCodeAt(t);
|
|
1084
|
-
if (
|
|
1072
|
+
if (ve(r) || en(r))
|
|
1085
1073
|
t += 1;
|
|
1086
1074
|
else
|
|
1087
1075
|
return this.addToNumericResult(e, n, t, 16), this.emitNumericEntity(r, 3);
|
|
@@ -1101,7 +1089,7 @@ class rn {
|
|
|
1101
1089
|
const n = t;
|
|
1102
1090
|
for (; t < e.length; ) {
|
|
1103
1091
|
const r = e.charCodeAt(t);
|
|
1104
|
-
if (
|
|
1092
|
+
if (ve(r))
|
|
1105
1093
|
t += 1;
|
|
1106
1094
|
else
|
|
1107
1095
|
return this.addToNumericResult(e, n, t, 10), this.emitNumericEntity(r, 2);
|
|
@@ -1127,7 +1115,7 @@ class rn {
|
|
|
1127
1115
|
return (n = this.errors) === null || n === void 0 || n.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
|
|
1128
1116
|
if (e === W.SEMI)
|
|
1129
1117
|
this.consumed += 1;
|
|
1130
|
-
else if (this.decodeMode ===
|
|
1118
|
+
else if (this.decodeMode === yu.Strict)
|
|
1131
1119
|
return 0;
|
|
1132
1120
|
return this.emitCodePoint(Y0(this.result), this.consumed), this.errors && (e !== W.SEMI && this.errors.missingSemicolonAfterCharacterReference(), this.errors.validateNumericCharacterReference(this.result)), this.consumed;
|
|
1133
1121
|
}
|
|
@@ -1142,18 +1130,18 @@ class rn {
|
|
|
1142
1130
|
*/
|
|
1143
1131
|
stateNamedEntity(e, t) {
|
|
1144
1132
|
const { decodeTree: n } = this;
|
|
1145
|
-
let r = n[this.treeIndex], o = (r &
|
|
1133
|
+
let r = n[this.treeIndex], o = (r & vu.VALUE_LENGTH) >> 14;
|
|
1146
1134
|
for (; t < e.length; t++, this.excess++) {
|
|
1147
1135
|
const c = e.charCodeAt(t);
|
|
1148
1136
|
if (this.treeIndex = on(n, r, this.treeIndex + Math.max(1, o), c), this.treeIndex < 0)
|
|
1149
1137
|
return this.result === 0 || // If we are parsing an attribute
|
|
1150
|
-
this.decodeMode ===
|
|
1138
|
+
this.decodeMode === yu.Attribute && // We shouldn't have consumed any characters after the entity,
|
|
1151
1139
|
(o === 0 || // And there should be no invalid characters.
|
|
1152
1140
|
nn(c)) ? 0 : this.emitNotTerminatedNamedEntity();
|
|
1153
|
-
if (r = n[this.treeIndex], o = (r &
|
|
1141
|
+
if (r = n[this.treeIndex], o = (r & vu.VALUE_LENGTH) >> 14, o !== 0) {
|
|
1154
1142
|
if (c === W.SEMI)
|
|
1155
1143
|
return this.emitNamedEntityData(this.treeIndex, o, this.consumed + this.excess);
|
|
1156
|
-
this.decodeMode !==
|
|
1144
|
+
this.decodeMode !== yu.Strict && (this.result = this.treeIndex, this.consumed += this.excess, this.excess = 0);
|
|
1157
1145
|
}
|
|
1158
1146
|
}
|
|
1159
1147
|
return -1;
|
|
@@ -1165,7 +1153,7 @@ class rn {
|
|
|
1165
1153
|
*/
|
|
1166
1154
|
emitNotTerminatedNamedEntity() {
|
|
1167
1155
|
var e;
|
|
1168
|
-
const { result: t, decodeTree: n } = this, r = (n[t] &
|
|
1156
|
+
const { result: t, decodeTree: n } = this, r = (n[t] & vu.VALUE_LENGTH) >> 14;
|
|
1169
1157
|
return this.emitNamedEntityData(t, r, this.consumed), (e = this.errors) === null || e === void 0 || e.missingSemicolonAfterCharacterReference(), this.consumed;
|
|
1170
1158
|
}
|
|
1171
1159
|
/**
|
|
@@ -1179,7 +1167,7 @@ class rn {
|
|
|
1179
1167
|
*/
|
|
1180
1168
|
emitNamedEntityData(e, t, n) {
|
|
1181
1169
|
const { decodeTree: r } = this;
|
|
1182
|
-
return this.emitCodePoint(t === 1 ? r[e] & ~
|
|
1170
|
+
return this.emitCodePoint(t === 1 ? r[e] & ~vu.VALUE_LENGTH : r[e + 1], n), t === 3 && this.emitCodePoint(r[e + 2], n), n;
|
|
1183
1171
|
}
|
|
1184
1172
|
/**
|
|
1185
1173
|
* Signal to the parser that the end of the input was reached.
|
|
@@ -1192,7 +1180,7 @@ class rn {
|
|
|
1192
1180
|
var e;
|
|
1193
1181
|
switch (this.state) {
|
|
1194
1182
|
case Q.NamedEntity:
|
|
1195
|
-
return this.result !== 0 && (this.decodeMode !==
|
|
1183
|
+
return this.result !== 0 && (this.decodeMode !== yu.Attribute || this.result === this.treeIndex) ? this.emitNotTerminatedNamedEntity() : 0;
|
|
1196
1184
|
case Q.NumericDecimal:
|
|
1197
1185
|
return this.emitNumericEntity(0, 2);
|
|
1198
1186
|
case Q.NumericHex:
|
|
@@ -1227,7 +1215,7 @@ function Dt(u) {
|
|
|
1227
1215
|
};
|
|
1228
1216
|
}
|
|
1229
1217
|
function on(u, e, t, n) {
|
|
1230
|
-
const r = (e &
|
|
1218
|
+
const r = (e & vu.BRANCH_LENGTH) >> 7, o = e & vu.JUMP_TABLE;
|
|
1231
1219
|
if (r === 0)
|
|
1232
1220
|
return o !== 0 && n === o ? t : -1;
|
|
1233
1221
|
if (o) {
|
|
@@ -1248,7 +1236,7 @@ function on(u, e, t, n) {
|
|
|
1248
1236
|
}
|
|
1249
1237
|
const cn = Dt(J0);
|
|
1250
1238
|
Dt(Q0);
|
|
1251
|
-
function Et(u, e =
|
|
1239
|
+
function Et(u, e = yu.Legacy) {
|
|
1252
1240
|
return cn(u, e);
|
|
1253
1241
|
}
|
|
1254
1242
|
function an(u) {
|
|
@@ -1316,7 +1304,7 @@ function Du(u) {
|
|
|
1316
1304
|
return mn.test(u) ? u.replace(xn, gn) : u;
|
|
1317
1305
|
}
|
|
1318
1306
|
const kn = /[.?*+^$[\]\\(){}|-]/g;
|
|
1319
|
-
function
|
|
1307
|
+
function yn(u) {
|
|
1320
1308
|
return u.replace(kn, "\\$&");
|
|
1321
1309
|
}
|
|
1322
1310
|
function Z(u) {
|
|
@@ -1347,7 +1335,7 @@ function Uu(u) {
|
|
|
1347
1335
|
return !1;
|
|
1348
1336
|
}
|
|
1349
1337
|
function Zu(u) {
|
|
1350
|
-
return ze.test(u) ||
|
|
1338
|
+
return ze.test(u) || vt.test(u);
|
|
1351
1339
|
}
|
|
1352
1340
|
function Gu(u) {
|
|
1353
1341
|
switch (u) {
|
|
@@ -1391,12 +1379,12 @@ function Gu(u) {
|
|
|
1391
1379
|
function se(u) {
|
|
1392
1380
|
return u = u.trim().replace(/\s+/g, " "), "ẞ".toLowerCase() === "Ṿ" && (u = u.replace(/ẞ/g, "ß")), u.toLowerCase().toUpperCase();
|
|
1393
1381
|
}
|
|
1394
|
-
const
|
|
1382
|
+
const An = { mdurl: Z0, ucmicro: K0 }, vn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1395
1383
|
__proto__: null,
|
|
1396
1384
|
arrayReplaceAt: Ft,
|
|
1397
1385
|
assign: ae,
|
|
1398
1386
|
escapeHtml: Du,
|
|
1399
|
-
escapeRE:
|
|
1387
|
+
escapeRE: yn,
|
|
1400
1388
|
fromCodePoint: ie,
|
|
1401
1389
|
has: ln,
|
|
1402
1390
|
isMdAsciiPunct: Gu,
|
|
@@ -1405,7 +1393,7 @@ const yn = { mdurl: Z0, ucmicro: K0 }, An = /* @__PURE__ */ Object.freeze(/* @__
|
|
|
1405
1393
|
isString: Ne,
|
|
1406
1394
|
isValidEntityCode: Le,
|
|
1407
1395
|
isWhiteSpace: Uu,
|
|
1408
|
-
lib:
|
|
1396
|
+
lib: An,
|
|
1409
1397
|
normalizeReference: se,
|
|
1410
1398
|
unescapeAll: Mu,
|
|
1411
1399
|
unescapeMd: bn
|
|
@@ -1754,12 +1742,12 @@ function St(u, e, t) {
|
|
|
1754
1742
|
}
|
|
1755
1743
|
St.prototype.Token = lu;
|
|
1756
1744
|
const wn = /\r\n?|\n/g, Sn = /\0/g;
|
|
1757
|
-
function
|
|
1745
|
+
function Tn(u) {
|
|
1758
1746
|
let e;
|
|
1759
1747
|
e = u.src.replace(wn, `
|
|
1760
1748
|
`), e = e.replace(Sn, "�"), u.src = e;
|
|
1761
1749
|
}
|
|
1762
|
-
function
|
|
1750
|
+
function In(u) {
|
|
1763
1751
|
let e;
|
|
1764
1752
|
u.inlineMode ? (e = new u.Token("inline", "", 0), e.content = u.src, e.map = [0, 1], e.children = [], u.tokens.push(e)) : u.md.block.parse(u.src, u.md, u.env, u.tokens);
|
|
1765
1753
|
}
|
|
@@ -1797,20 +1785,20 @@ function Bn(u) {
|
|
|
1797
1785
|
let f = i.level, _ = 0;
|
|
1798
1786
|
s.length > 0 && s[0].index === 0 && c > 0 && r[c - 1].type === "text_special" && (s = s.slice(1));
|
|
1799
1787
|
for (let h = 0; h < s.length; h++) {
|
|
1800
|
-
const d = s[h].url,
|
|
1801
|
-
if (!u.md.validateLink(
|
|
1788
|
+
const d = s[h].url, A = u.md.normalizeLink(d);
|
|
1789
|
+
if (!u.md.validateLink(A))
|
|
1802
1790
|
continue;
|
|
1803
|
-
let
|
|
1804
|
-
s[h].schema ? s[h].schema === "mailto:" && !/^mailto:/i.test(
|
|
1791
|
+
let y = s[h].text;
|
|
1792
|
+
s[h].schema ? s[h].schema === "mailto:" && !/^mailto:/i.test(y) ? y = u.md.normalizeLinkText("mailto:" + y).replace(/^mailto:/, "") : y = u.md.normalizeLinkText(y) : y = u.md.normalizeLinkText("http://" + y).replace(/^http:\/\//, "");
|
|
1805
1793
|
const C = s[h].index;
|
|
1806
1794
|
if (C > _) {
|
|
1807
1795
|
const m = new u.Token("text", "", 0);
|
|
1808
1796
|
m.content = a.slice(_, C), m.level = f, l.push(m);
|
|
1809
1797
|
}
|
|
1810
1798
|
const k = new u.Token("link_open", "a", 1);
|
|
1811
|
-
k.attrs = [["href",
|
|
1799
|
+
k.attrs = [["href", A]], k.level = f++, k.markup = "linkify", k.info = "auto", l.push(k);
|
|
1812
1800
|
const p = new u.Token("text", "", 0);
|
|
1813
|
-
p.content =
|
|
1801
|
+
p.content = y, p.level = f, l.push(p);
|
|
1814
1802
|
const b = new u.Token("link_close", "a", -1);
|
|
1815
1803
|
b.level = --f, b.markup = "linkify", b.info = "auto", l.push(b), _ = s[h].lastIndex;
|
|
1816
1804
|
}
|
|
@@ -1823,7 +1811,7 @@ function Bn(u) {
|
|
|
1823
1811
|
}
|
|
1824
1812
|
}
|
|
1825
1813
|
}
|
|
1826
|
-
const
|
|
1814
|
+
const Tt = /\+-|\.\.|\?\?\?\?|!!!!|,,|--/, qn = /\((c|tm|r)\)/i, Mn = /\((c|tm|r)\)/ig, On = {
|
|
1827
1815
|
c: "©",
|
|
1828
1816
|
r: "®",
|
|
1829
1817
|
tm: "™"
|
|
@@ -1842,14 +1830,14 @@ function jn(u) {
|
|
|
1842
1830
|
let e = 0;
|
|
1843
1831
|
for (let t = u.length - 1; t >= 0; t--) {
|
|
1844
1832
|
const n = u[t];
|
|
1845
|
-
n.type === "text" && !e &&
|
|
1833
|
+
n.type === "text" && !e && Tt.test(n.content) && (n.content = n.content.replace(/\+-/g, "±").replace(/\.{2,}/g, "…").replace(/([?!])…/g, "$1..").replace(/([?!]){4,}/g, "$1$1$1").replace(/,{2,}/g, ",").replace(/(^|[^-])---(?=[^-]|$)/mg, "$1—").replace(/(^|\s)--(?=\s|$)/mg, "$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg, "$1–")), n.type === "link_open" && n.info === "auto" && e--, n.type === "link_close" && n.info === "auto" && e++;
|
|
1846
1834
|
}
|
|
1847
1835
|
}
|
|
1848
1836
|
function Hn(u) {
|
|
1849
1837
|
let e;
|
|
1850
1838
|
if (u.md.options.typographer)
|
|
1851
1839
|
for (e = u.tokens.length - 1; e >= 0; e--)
|
|
1852
|
-
u.tokens[e].type === "inline" && (qn.test(u.tokens[e].content) && Pn(u.tokens[e].children),
|
|
1840
|
+
u.tokens[e].type === "inline" && (qn.test(u.tokens[e].content) && Pn(u.tokens[e].children), Tt.test(u.tokens[e].content) && jn(u.tokens[e].children));
|
|
1853
1841
|
}
|
|
1854
1842
|
const $n = /['"]/, Ke = /['"]/g, Je = "’";
|
|
1855
1843
|
function ee(u, e, t) {
|
|
@@ -1883,17 +1871,17 @@ function Vn(u, e) {
|
|
|
1883
1871
|
d = u[t].content.charCodeAt(u[t].content.length - 1);
|
|
1884
1872
|
break;
|
|
1885
1873
|
}
|
|
1886
|
-
let
|
|
1874
|
+
let A = 32;
|
|
1887
1875
|
if (a < s)
|
|
1888
|
-
|
|
1876
|
+
A = i.charCodeAt(a);
|
|
1889
1877
|
else
|
|
1890
1878
|
for (t = r + 1; t < u.length && !(u[t].type === "softbreak" || u[t].type === "hardbreak"); t++)
|
|
1891
1879
|
if (u[t].content) {
|
|
1892
|
-
|
|
1880
|
+
A = u[t].content.charCodeAt(0);
|
|
1893
1881
|
break;
|
|
1894
1882
|
}
|
|
1895
|
-
const
|
|
1896
|
-
if (p ? f = !1 : C && (k ||
|
|
1883
|
+
const y = Gu(d) || Zu(String.fromCharCode(d)), C = Gu(A) || Zu(String.fromCharCode(A)), k = Uu(d), p = Uu(A);
|
|
1884
|
+
if (p ? f = !1 : C && (k || y || (f = !1)), k ? _ = !1 : y && (p || C || (_ = !1)), A === 34 && l[0] === '"' && d >= 48 && d <= 57 && (_ = f = !1), f && _ && (f = y, _ = C), !f && !_) {
|
|
1897
1885
|
h && (o.content = ee(o.content, l.index, Je));
|
|
1898
1886
|
continue;
|
|
1899
1887
|
}
|
|
@@ -1904,12 +1892,12 @@ function Vn(u, e) {
|
|
|
1904
1892
|
break;
|
|
1905
1893
|
if (b.single === h && n[t].level === c) {
|
|
1906
1894
|
b = n[t];
|
|
1907
|
-
let m,
|
|
1908
|
-
h ? (m = e.md.options.quotes[2],
|
|
1895
|
+
let m, N;
|
|
1896
|
+
h ? (m = e.md.options.quotes[2], N = e.md.options.quotes[3]) : (m = e.md.options.quotes[0], N = e.md.options.quotes[1]), o.content = ee(o.content, l.index, N), u[b.token].content = ee(
|
|
1909
1897
|
u[b.token].content,
|
|
1910
1898
|
b.pos,
|
|
1911
1899
|
m
|
|
1912
|
-
), a +=
|
|
1900
|
+
), a += N.length - 1, b.token === r && (a += m.length - 1), i = o.content, s = i.length, n.length = t;
|
|
1913
1901
|
continue u;
|
|
1914
1902
|
}
|
|
1915
1903
|
}
|
|
@@ -1941,8 +1929,8 @@ function Zn(u) {
|
|
|
1941
1929
|
}
|
|
1942
1930
|
}
|
|
1943
1931
|
const me = [
|
|
1944
|
-
["normalize",
|
|
1945
|
-
["block",
|
|
1932
|
+
["normalize", Tn],
|
|
1933
|
+
["block", In],
|
|
1946
1934
|
["inline", zn],
|
|
1947
1935
|
["linkify", Bn],
|
|
1948
1936
|
["replacements", Hn],
|
|
@@ -2097,44 +2085,44 @@ function Kn(u, e, t, n) {
|
|
|
2097
2085
|
return !0;
|
|
2098
2086
|
const _ = u.parentType;
|
|
2099
2087
|
u.parentType = "table";
|
|
2100
|
-
const h = u.md.block.ruler.getRules("blockquote"), d = u.push("table_open", "table", 1),
|
|
2101
|
-
d.map =
|
|
2102
|
-
const
|
|
2103
|
-
|
|
2088
|
+
const h = u.md.block.ruler.getRules("blockquote"), d = u.push("table_open", "table", 1), A = [e, 0];
|
|
2089
|
+
d.map = A;
|
|
2090
|
+
const y = u.push("thead_open", "thead", 1);
|
|
2091
|
+
y.map = [e, e + 1];
|
|
2104
2092
|
const C = u.push("tr_open", "tr", 1);
|
|
2105
2093
|
C.map = [e, e + 1];
|
|
2106
2094
|
for (let b = 0; b < s.length; b++) {
|
|
2107
2095
|
const m = u.push("th_open", "th", 1);
|
|
2108
2096
|
l[b] && (m.attrs = [["style", "text-align:" + l[b]]]);
|
|
2109
|
-
const
|
|
2110
|
-
|
|
2097
|
+
const N = u.push("inline", "", 0);
|
|
2098
|
+
N.content = s[b].trim(), N.children = [], u.push("th_close", "th", -1);
|
|
2111
2099
|
}
|
|
2112
2100
|
u.push("tr_close", "tr", -1), u.push("thead_close", "thead", -1);
|
|
2113
2101
|
let k, p = 0;
|
|
2114
2102
|
for (r = e + 2; r < t && !(u.sCount[r] < u.blkIndent); r++) {
|
|
2115
2103
|
let b = !1;
|
|
2116
|
-
for (let
|
|
2117
|
-
if (h[
|
|
2104
|
+
for (let N = 0, E = h.length; N < E; N++)
|
|
2105
|
+
if (h[N](u, r, t, !0)) {
|
|
2118
2106
|
b = !0;
|
|
2119
2107
|
break;
|
|
2120
2108
|
}
|
|
2121
2109
|
if (b || (a = xe(u, r).trim(), !a) || u.sCount[r] - u.blkIndent >= 4 || (s = Qe(a), s.length && s[0] === "" && s.shift(), s.length && s[s.length - 1] === "" && s.pop(), p += f - s.length, p > Gn))
|
|
2122
2110
|
break;
|
|
2123
2111
|
if (r === e + 2) {
|
|
2124
|
-
const
|
|
2125
|
-
|
|
2112
|
+
const N = u.push("tbody_open", "tbody", 1);
|
|
2113
|
+
N.map = k = [e + 2, 0];
|
|
2126
2114
|
}
|
|
2127
2115
|
const m = u.push("tr_open", "tr", 1);
|
|
2128
2116
|
m.map = [r, r + 1];
|
|
2129
|
-
for (let
|
|
2117
|
+
for (let N = 0; N < f; N++) {
|
|
2130
2118
|
const E = u.push("td_open", "td", 1);
|
|
2131
|
-
l[
|
|
2132
|
-
const
|
|
2133
|
-
|
|
2119
|
+
l[N] && (E.attrs = [["style", "text-align:" + l[N]]]);
|
|
2120
|
+
const R = u.push("inline", "", 0);
|
|
2121
|
+
R.content = s[N] ? s[N].trim() : "", R.children = [], u.push("td_close", "td", -1);
|
|
2134
2122
|
}
|
|
2135
2123
|
u.push("tr_close", "tr", -1);
|
|
2136
2124
|
}
|
|
2137
|
-
return k && (u.push("tbody_close", "tbody", -1), k[1] = r), u.push("table_close", "table", -1),
|
|
2125
|
+
return k && (u.push("tbody_close", "tbody", -1), k[1] = r), u.push("table_close", "table", -1), A[1] = r, u.parentType = _, u.line = r, !0;
|
|
2138
2126
|
}
|
|
2139
2127
|
function Jn(u, e, t) {
|
|
2140
2128
|
if (u.sCount[e] - u.blkIndent < 4)
|
|
@@ -2198,24 +2186,24 @@ function Wn(u, e, t, n) {
|
|
|
2198
2186
|
if (r = u.bMarks[d] + u.tShift[d], o = u.eMarks[d], r >= o)
|
|
2199
2187
|
break;
|
|
2200
2188
|
if (u.src.charCodeAt(r++) === 62 && !p) {
|
|
2201
|
-
let m = u.sCount[d] + 1,
|
|
2202
|
-
u.src.charCodeAt(r) === 32 ? (r++, m++, E = !1,
|
|
2203
|
-
let
|
|
2189
|
+
let m = u.sCount[d] + 1, N, E;
|
|
2190
|
+
u.src.charCodeAt(r) === 32 ? (r++, m++, E = !1, N = !0) : u.src.charCodeAt(r) === 9 ? (N = !0, (u.bsCount[d] + m) % 4 === 3 ? (r++, m++, E = !1) : E = !0) : N = !1;
|
|
2191
|
+
let R = m;
|
|
2204
2192
|
for (i.push(u.bMarks[d]), u.bMarks[d] = r; r < o; ) {
|
|
2205
|
-
const
|
|
2206
|
-
if (Z(
|
|
2207
|
-
|
|
2193
|
+
const P = u.src.charCodeAt(r);
|
|
2194
|
+
if (Z(P))
|
|
2195
|
+
P === 9 ? R += 4 - (R + u.bsCount[d] + (E ? 1 : 0)) % 4 : R++;
|
|
2208
2196
|
else
|
|
2209
2197
|
break;
|
|
2210
2198
|
r++;
|
|
2211
2199
|
}
|
|
2212
|
-
h = r >= o, a.push(u.bsCount[d]), u.bsCount[d] = u.sCount[d] + 1 + (
|
|
2200
|
+
h = r >= o, a.push(u.bsCount[d]), u.bsCount[d] = u.sCount[d] + 1 + (N ? 1 : 0), s.push(u.sCount[d]), u.sCount[d] = R - m, l.push(u.tShift[d]), u.tShift[d] = r - u.bMarks[d];
|
|
2213
2201
|
continue;
|
|
2214
2202
|
}
|
|
2215
2203
|
if (h)
|
|
2216
2204
|
break;
|
|
2217
2205
|
let b = !1;
|
|
2218
|
-
for (let m = 0,
|
|
2206
|
+
for (let m = 0, N = f.length; m < N; m++)
|
|
2219
2207
|
if (f[m](u, d, t, !0)) {
|
|
2220
2208
|
b = !0;
|
|
2221
2209
|
break;
|
|
@@ -2226,17 +2214,17 @@ function Wn(u, e, t, n) {
|
|
|
2226
2214
|
}
|
|
2227
2215
|
i.push(u.bMarks[d]), a.push(u.bsCount[d]), l.push(u.tShift[d]), s.push(u.sCount[d]), u.sCount[d] = -1;
|
|
2228
2216
|
}
|
|
2229
|
-
const
|
|
2217
|
+
const A = u.blkIndent;
|
|
2230
2218
|
u.blkIndent = 0;
|
|
2231
|
-
const
|
|
2232
|
-
|
|
2219
|
+
const y = u.push("blockquote_open", "blockquote", 1);
|
|
2220
|
+
y.markup = ">";
|
|
2233
2221
|
const C = [e, 0];
|
|
2234
|
-
|
|
2222
|
+
y.map = C, u.md.block.tokenize(u, e, d);
|
|
2235
2223
|
const k = u.push("blockquote_close", "blockquote", -1);
|
|
2236
2224
|
k.markup = ">", u.lineMax = c, u.parentType = _, C[1] = u.line;
|
|
2237
2225
|
for (let p = 0; p < l.length; p++)
|
|
2238
2226
|
u.bMarks[p + e] = i[p], u.tShift[p + e] = l[p], u.sCount[p + e] = s[p], u.bsCount[p + e] = a[p];
|
|
2239
|
-
return u.blkIndent =
|
|
2227
|
+
return u.blkIndent = A, !0;
|
|
2240
2228
|
}
|
|
2241
2229
|
function Xn(u, e, t, n) {
|
|
2242
2230
|
const r = u.eMarks[e];
|
|
@@ -2318,10 +2306,10 @@ function ur(u, e, t, n) {
|
|
|
2318
2306
|
return !1;
|
|
2319
2307
|
if (n)
|
|
2320
2308
|
return !0;
|
|
2321
|
-
const d = u.src.charCodeAt(h - 1),
|
|
2309
|
+
const d = u.src.charCodeAt(h - 1), A = u.tokens.length;
|
|
2322
2310
|
f ? (i = u.push("ordered_list_open", "ol", 1), _ !== 1 && (i.attrs = [["start", _]])) : i = u.push("bullet_list_open", "ul", 1);
|
|
2323
|
-
const
|
|
2324
|
-
i.map =
|
|
2311
|
+
const y = [a, 0];
|
|
2312
|
+
i.map = y, i.markup = String.fromCharCode(d);
|
|
2325
2313
|
let C = !1;
|
|
2326
2314
|
const k = u.md.block.ruler.getRules("list"), p = u.parentType;
|
|
2327
2315
|
for (u.parentType = "list"; a < t; ) {
|
|
@@ -2338,15 +2326,15 @@ function ur(u, e, t, n) {
|
|
|
2338
2326
|
break;
|
|
2339
2327
|
o++;
|
|
2340
2328
|
}
|
|
2341
|
-
const
|
|
2329
|
+
const N = o;
|
|
2342
2330
|
let E;
|
|
2343
|
-
|
|
2344
|
-
const
|
|
2331
|
+
N >= r ? E = 1 : E = m - b, E > 4 && (E = 1);
|
|
2332
|
+
const R = b + E;
|
|
2345
2333
|
i = u.push("list_item_open", "li", 1), i.markup = String.fromCharCode(d);
|
|
2346
|
-
const
|
|
2347
|
-
i.map =
|
|
2334
|
+
const P = [a, 0];
|
|
2335
|
+
i.map = P, f && (i.info = u.src.slice(c, h - 1));
|
|
2348
2336
|
const K = u.tight, du = u.tShift[a], _u = u.sCount[a], gu = u.listIndent;
|
|
2349
|
-
if (u.listIndent = u.blkIndent, u.blkIndent =
|
|
2337
|
+
if (u.listIndent = u.blkIndent, u.blkIndent = R, u.tight = !0, u.tShift[a] = N - u.bMarks[a], u.sCount[a] = m, N >= r && u.isEmpty(a + 1) ? u.line = Math.min(u.line + 2, t) : u.md.block.tokenize(u, a, t, !0), (!u.tight || C) && (s = !1), C = u.line - a > 1 && u.isEmpty(u.line - 1), u.blkIndent = u.listIndent, u.listIndent = gu, u.tShift[a] = du, u.sCount[a] = _u, u.tight = K, i = u.push("list_item_close", "li", -1), i.markup = String.fromCharCode(d), a = u.line, P[1] = a, a >= t || u.sCount[a] < u.blkIndent || u.sCount[a] - u.blkIndent >= 4)
|
|
2350
2338
|
break;
|
|
2351
2339
|
let wu = !1;
|
|
2352
2340
|
for (let fu = 0, Su = k.length; fu < Su; fu++)
|
|
@@ -2365,7 +2353,7 @@ function ur(u, e, t, n) {
|
|
|
2365
2353
|
if (d !== u.src.charCodeAt(h - 1))
|
|
2366
2354
|
break;
|
|
2367
2355
|
}
|
|
2368
|
-
return f ? i = u.push("ordered_list_close", "ol", -1) : i = u.push("bullet_list_close", "ul", -1), i.markup = String.fromCharCode(d),
|
|
2356
|
+
return f ? i = u.push("ordered_list_close", "ol", -1) : i = u.push("bullet_list_close", "ul", -1), i.markup = String.fromCharCode(d), y[1] = a, u.line = a, u.parentType = p, s && Yn(u, A), !0;
|
|
2369
2357
|
}
|
|
2370
2358
|
function er(u, e, t, n) {
|
|
2371
2359
|
let r = u.bMarks[e] + u.tShift[e], o = u.eMarks[e], c = e + 1;
|
|
@@ -2377,19 +2365,19 @@ function er(u, e, t, n) {
|
|
|
2377
2365
|
return null;
|
|
2378
2366
|
let b = !1;
|
|
2379
2367
|
if (u.sCount[k] - u.blkIndent > 3 && (b = !0), u.sCount[k] < 0 && (b = !0), !b) {
|
|
2380
|
-
const E = u.md.block.ruler.getRules("reference"),
|
|
2368
|
+
const E = u.md.block.ruler.getRules("reference"), R = u.parentType;
|
|
2381
2369
|
u.parentType = "reference";
|
|
2382
|
-
let
|
|
2370
|
+
let P = !1;
|
|
2383
2371
|
for (let K = 0, du = E.length; K < du; K++)
|
|
2384
2372
|
if (E[K](u, k, p, !0)) {
|
|
2385
|
-
|
|
2373
|
+
P = !0;
|
|
2386
2374
|
break;
|
|
2387
2375
|
}
|
|
2388
|
-
if (u.parentType =
|
|
2376
|
+
if (u.parentType = R, P)
|
|
2389
2377
|
return null;
|
|
2390
2378
|
}
|
|
2391
|
-
const m = u.bMarks[k] + u.tShift[k],
|
|
2392
|
-
return u.src.slice(m,
|
|
2379
|
+
const m = u.bMarks[k] + u.tShift[k], N = u.eMarks[k];
|
|
2380
|
+
return u.src.slice(m, N + 1);
|
|
2393
2381
|
}
|
|
2394
2382
|
let a = u.src.slice(r, o + 1);
|
|
2395
2383
|
o = a.length;
|
|
@@ -2433,21 +2421,21 @@ function er(u, e, t, n) {
|
|
|
2433
2421
|
p !== null && (a += p, o = a.length, c++);
|
|
2434
2422
|
} else if (!Z(k)) break;
|
|
2435
2423
|
}
|
|
2436
|
-
let
|
|
2437
|
-
for (;
|
|
2424
|
+
let A = u.md.helpers.parseLinkTitle(a, r, o);
|
|
2425
|
+
for (; A.can_continue; ) {
|
|
2438
2426
|
const k = i(c);
|
|
2439
2427
|
if (k === null) break;
|
|
2440
|
-
a += k, r = o, o = a.length, c++,
|
|
2428
|
+
a += k, r = o, o = a.length, c++, A = u.md.helpers.parseLinkTitle(a, r, o, A);
|
|
2441
2429
|
}
|
|
2442
|
-
let
|
|
2443
|
-
for (r < o && d !== r &&
|
|
2430
|
+
let y;
|
|
2431
|
+
for (r < o && d !== r && A.ok ? (y = A.str, r = A.pos) : (y = "", r = _, c = h); r < o; ) {
|
|
2444
2432
|
const k = a.charCodeAt(r);
|
|
2445
2433
|
if (!Z(k))
|
|
2446
2434
|
break;
|
|
2447
2435
|
r++;
|
|
2448
2436
|
}
|
|
2449
|
-
if (r < o && a.charCodeAt(r) !== 10 &&
|
|
2450
|
-
for (
|
|
2437
|
+
if (r < o && a.charCodeAt(r) !== 10 && y)
|
|
2438
|
+
for (y = "", r = _, c = h; r < o; ) {
|
|
2451
2439
|
const k = a.charCodeAt(r);
|
|
2452
2440
|
if (!Z(k))
|
|
2453
2441
|
break;
|
|
@@ -2456,7 +2444,7 @@ function er(u, e, t, n) {
|
|
|
2456
2444
|
if (r < o && a.charCodeAt(r) !== 10)
|
|
2457
2445
|
return !1;
|
|
2458
2446
|
const C = se(a.slice(1, s));
|
|
2459
|
-
return C ? (n || (typeof u.env.references > "u" && (u.env.references = {}), typeof u.env.references[C] > "u" && (u.env.references[C] = { title:
|
|
2447
|
+
return C ? (n || (typeof u.env.references > "u" && (u.env.references = {}), typeof u.env.references[C] > "u" && (u.env.references[C] = { title: y, href: f }), u.line = c), !0) : !1;
|
|
2460
2448
|
}
|
|
2461
2449
|
const tr = [
|
|
2462
2450
|
"address",
|
|
@@ -2521,7 +2509,7 @@ const tr = [
|
|
|
2521
2509
|
"tr",
|
|
2522
2510
|
"track",
|
|
2523
2511
|
"ul"
|
|
2524
|
-
], nr = "[a-zA-Z_:][a-zA-Z0-9:._-]*", rr = "[^\"'=<>`\\x00-\\x20]+", or = "'[^']*'", ir = '"[^"]*"', cr = "(?:" + rr + "|" + or + "|" + ir + ")", ar = "(?:\\s+" + nr + "(?:\\s*=\\s*" + cr + ")?)",
|
|
2512
|
+
], nr = "[a-zA-Z_:][a-zA-Z0-9:._-]*", rr = "[^\"'=<>`\\x00-\\x20]+", or = "'[^']*'", ir = '"[^"]*"', cr = "(?:" + rr + "|" + or + "|" + ir + ")", ar = "(?:\\s+" + nr + "(?:\\s*=\\s*" + cr + ")?)", It = "<[A-Za-z][A-Za-z0-9\\-]*" + ar + "*\\s*\\/?>", zt = "<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>", sr = "<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->", lr = "<[?][\\s\\S]*?[?]>", dr = "<![A-Za-z][^>]*>", fr = "<!\\[CDATA\\[[\\s\\S]*?\\]\\]>", hr = new RegExp("^(?:" + It + "|" + zt + "|" + sr + "|" + lr + "|" + dr + "|" + fr + ")"), pr = new RegExp("^(?:" + It + "|" + zt + ")"), Nu = [
|
|
2525
2513
|
[/^<(script|pre|style|textarea)(?=(\s|>|$))/i, /<\/(script|pre|style|textarea)>/i, !0],
|
|
2526
2514
|
[/^<!--/, /-->/, !0],
|
|
2527
2515
|
[/^<\?/, /\?>/, !0],
|
|
@@ -2744,12 +2732,12 @@ function kr(u, e) {
|
|
|
2744
2732
|
t++;
|
|
2745
2733
|
return t === u.pos ? !1 : (e || (u.pending += u.src.slice(u.pos, t)), u.pos = t, !0);
|
|
2746
2734
|
}
|
|
2747
|
-
const
|
|
2748
|
-
function
|
|
2735
|
+
const yr = /(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;
|
|
2736
|
+
function Ar(u, e) {
|
|
2749
2737
|
if (!u.md.options.linkify || u.linkLevel > 0) return !1;
|
|
2750
2738
|
const t = u.pos, n = u.posMax;
|
|
2751
2739
|
if (t + 3 > n || u.src.charCodeAt(t) !== 58 || u.src.charCodeAt(t + 1) !== 47 || u.src.charCodeAt(t + 2) !== 47) return !1;
|
|
2752
|
-
const r = u.pending.match(
|
|
2740
|
+
const r = u.pending.match(yr);
|
|
2753
2741
|
if (!r) return !1;
|
|
2754
2742
|
const o = r[1], c = u.md.linkify.matchAtStart(u.src.slice(t - o.length));
|
|
2755
2743
|
if (!c) return !1;
|
|
@@ -2769,7 +2757,7 @@ function yr(u, e) {
|
|
|
2769
2757
|
}
|
|
2770
2758
|
return u.pos += i.length - o.length, !0;
|
|
2771
2759
|
}
|
|
2772
|
-
function
|
|
2760
|
+
function vr(u, e) {
|
|
2773
2761
|
let t = u.pos;
|
|
2774
2762
|
if (u.src.charCodeAt(t) !== 10)
|
|
2775
2763
|
return !1;
|
|
@@ -2949,7 +2937,7 @@ const Lt = {
|
|
|
2949
2937
|
tokenize: wr,
|
|
2950
2938
|
postProcess: Sr
|
|
2951
2939
|
};
|
|
2952
|
-
function
|
|
2940
|
+
function Tr(u, e) {
|
|
2953
2941
|
let t, n, r, o, c = "", i = "", a = u.pos, s = !0;
|
|
2954
2942
|
if (u.src.charCodeAt(u.pos) !== 91)
|
|
2955
2943
|
return !1;
|
|
@@ -2980,12 +2968,12 @@ function Ir(u, e) {
|
|
|
2980
2968
|
}
|
|
2981
2969
|
if (!e) {
|
|
2982
2970
|
u.pos = _, u.posMax = h;
|
|
2983
|
-
const
|
|
2984
|
-
|
|
2971
|
+
const A = u.push("link_open", "a", 1), y = [["href", c]];
|
|
2972
|
+
A.attrs = y, i && y.push(["title", i]), u.linkLevel++, u.md.inline.tokenize(u), u.linkLevel--, u.push("link_close", "a", -1);
|
|
2985
2973
|
}
|
|
2986
2974
|
return u.pos = d, u.posMax = f, !0;
|
|
2987
2975
|
}
|
|
2988
|
-
function
|
|
2976
|
+
function Ir(u, e) {
|
|
2989
2977
|
let t, n, r, o, c, i, a, s, l = "";
|
|
2990
2978
|
const f = u.pos, _ = u.posMax;
|
|
2991
2979
|
if (u.src.charCodeAt(u.pos) !== 33 || u.src.charCodeAt(u.pos + 1) !== 91)
|
|
@@ -3017,15 +3005,15 @@ function Tr(u, e) {
|
|
|
3017
3005
|
}
|
|
3018
3006
|
if (!e) {
|
|
3019
3007
|
n = u.src.slice(h, d);
|
|
3020
|
-
const
|
|
3008
|
+
const A = [];
|
|
3021
3009
|
u.md.inline.parse(
|
|
3022
3010
|
n,
|
|
3023
3011
|
u.md,
|
|
3024
3012
|
u.env,
|
|
3025
|
-
|
|
3013
|
+
A
|
|
3026
3014
|
);
|
|
3027
|
-
const
|
|
3028
|
-
|
|
3015
|
+
const y = u.push("image", "img", 0), C = [["src", l], ["alt", ""]];
|
|
3016
|
+
y.attrs = C, y.children = A, y.content = n, a && C.push(["title", a]);
|
|
3029
3017
|
}
|
|
3030
3018
|
return u.pos = o, u.posMax = _, !0;
|
|
3031
3019
|
}
|
|
@@ -3168,14 +3156,14 @@ function $r(u) {
|
|
|
3168
3156
|
}
|
|
3169
3157
|
const _e = [
|
|
3170
3158
|
["text", kr],
|
|
3171
|
-
["linkify",
|
|
3172
|
-
["newline",
|
|
3159
|
+
["linkify", Ar],
|
|
3160
|
+
["newline", vr],
|
|
3173
3161
|
["escape", Cr],
|
|
3174
3162
|
["backticks", Dr],
|
|
3175
3163
|
["strikethrough", Nt.tokenize],
|
|
3176
3164
|
["emphasis", Lt.tokenize],
|
|
3177
|
-
["link",
|
|
3178
|
-
["image",
|
|
3165
|
+
["link", Tr],
|
|
3166
|
+
["image", Ir],
|
|
3179
3167
|
["autolink", Lr],
|
|
3180
3168
|
["html_inline", Or],
|
|
3181
3169
|
["entity", jr]
|
|
@@ -3245,7 +3233,7 @@ Yu.prototype.parse = function(u, e, t, n) {
|
|
|
3245
3233
|
Yu.prototype.State = Xu;
|
|
3246
3234
|
function Vr(u) {
|
|
3247
3235
|
const e = {};
|
|
3248
|
-
u = u || {}, e.src_Any =
|
|
3236
|
+
u = u || {}, e.src_Any = yt.source, e.src_Cc = At.source, e.src_Z = Ct.source, e.src_P = ze.source, e.src_ZPCc = [e.src_Z, e.src_P, e.src_Cc].join("|"), e.src_ZCc = [e.src_Z, e.src_Cc].join("|");
|
|
3249
3237
|
const t = "[><|]";
|
|
3250
3238
|
return e.src_pseudo_letter = "(?:(?!" + t + "|" + e.src_ZPCc + ")" + e.src_Any + ")", e.src_ip4 = "(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)", e.src_auth = "(?:(?:(?!" + e.src_ZCc + "|[@/\\[\\]()]).)+@)?", e.src_port = "(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?", e.src_host_terminator = "(?=$|" + t + "|" + e.src_ZPCc + ")(?!" + (u["---"] ? "-(?!--)|" : "-|") + "_|:\\d|\\.-|\\.(?!$|" + e.src_ZPCc + "))", e.src_path = "(?:[/?#](?:(?!" + e.src_ZCc + "|" + t + `|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!` + e.src_ZCc + "|\\]).)*\\]|\\((?:(?!" + e.src_ZCc + "|[)]).)*\\)|\\{(?:(?!" + e.src_ZCc + '|[}]).)*\\}|\\"(?:(?!' + e.src_ZCc + `|["]).)+\\"|\\'(?:(?!` + e.src_ZCc + "|[']).)+\\'|\\'(?=" + e.src_pseudo_letter + "|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!" + e.src_ZCc + "|[.]|$)|" + (u["---"] ? "\\-(?!--(?:[^-]|$))(?:-*)|" : "\\-+|") + // allow `,,,` in paths
|
|
3251
3239
|
",(?!" + e.src_ZCc + "|$)|;(?!" + e.src_ZCc + "|$)|\\!+(?!" + e.src_ZCc + "|[!]|$)|\\?(?!" + e.src_ZCc + "|[?]|$))+|\\/)?", e.src_email_name = '[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*', e.src_xn = "xn--[a-z0-9\\-]{1,59}", e.src_domain_root = // Allow letters & digits (http://test1)
|
|
@@ -3442,7 +3430,7 @@ const Lu = 2147483647, hu = 36, Me = 1, Ku = 26, to = 38, no = 700, qt = 72, Mt
|
|
|
3442
3430
|
overflow: "Overflow: input needs wider integers to process",
|
|
3443
3431
|
"not-basic": "Illegal input >= 0x80 (not a basic code point)",
|
|
3444
3432
|
"invalid-input": "Invalid input"
|
|
3445
|
-
}, ke = hu - Me, pu = Math.floor,
|
|
3433
|
+
}, ke = hu - Me, pu = Math.floor, ye = String.fromCharCode;
|
|
3446
3434
|
function ku(u) {
|
|
3447
3435
|
throw new RangeError(co[u]);
|
|
3448
3436
|
}
|
|
@@ -3511,7 +3499,7 @@ const so = (u) => String.fromCodePoint(...u), lo = function(u) {
|
|
|
3511
3499
|
const t = u.length;
|
|
3512
3500
|
let n = Mt, r = 0, o = qt;
|
|
3513
3501
|
for (const a of u)
|
|
3514
|
-
a < 128 && e.push(
|
|
3502
|
+
a < 128 && e.push(ye(a));
|
|
3515
3503
|
const c = e.length;
|
|
3516
3504
|
let i = c;
|
|
3517
3505
|
for (c && e.push(Ot); i < t; ) {
|
|
@@ -3527,12 +3515,12 @@ const so = (u) => String.fromCodePoint(...u), lo = function(u) {
|
|
|
3527
3515
|
const h = _ <= o ? Me : _ >= o + Ku ? Ku : _ - o;
|
|
3528
3516
|
if (f < h)
|
|
3529
3517
|
break;
|
|
3530
|
-
const d = f - h,
|
|
3518
|
+
const d = f - h, A = hu - h;
|
|
3531
3519
|
e.push(
|
|
3532
|
-
|
|
3533
|
-
), f = pu(d /
|
|
3520
|
+
ye(rt(h + d % A, 0))
|
|
3521
|
+
), f = pu(d / A);
|
|
3534
3522
|
}
|
|
3535
|
-
e.push(
|
|
3523
|
+
e.push(ye(rt(f, 0))), o = jt(r, s, i === c), r = 0, ++i;
|
|
3536
3524
|
}
|
|
3537
3525
|
++r, ++n;
|
|
3538
3526
|
}
|
|
@@ -3742,28 +3730,28 @@ function ko(u) {
|
|
|
3742
3730
|
return _o.test(e) ? go.test(e) : !0;
|
|
3743
3731
|
}
|
|
3744
3732
|
const Ut = ["http:", "https:", "mailto:"];
|
|
3745
|
-
function
|
|
3746
|
-
const e =
|
|
3733
|
+
function yo(u) {
|
|
3734
|
+
const e = Ie(u, !0);
|
|
3747
3735
|
if (e.hostname && (!e.protocol || Ut.indexOf(e.protocol) >= 0))
|
|
3748
3736
|
try {
|
|
3749
3737
|
e.hostname = Vt.toASCII(e.hostname);
|
|
3750
3738
|
} catch {
|
|
3751
3739
|
}
|
|
3752
|
-
return Wu(
|
|
3740
|
+
return Wu(Te(e));
|
|
3753
3741
|
}
|
|
3754
|
-
function
|
|
3755
|
-
const e =
|
|
3742
|
+
function Ao(u) {
|
|
3743
|
+
const e = Ie(u, !0);
|
|
3756
3744
|
if (e.hostname && (!e.protocol || Ut.indexOf(e.protocol) >= 0))
|
|
3757
3745
|
try {
|
|
3758
3746
|
e.hostname = Vt.toUnicode(e.hostname);
|
|
3759
3747
|
} catch {
|
|
3760
3748
|
}
|
|
3761
|
-
return qu(
|
|
3749
|
+
return qu(Te(e), qu.defaultChars + "%");
|
|
3762
3750
|
}
|
|
3763
3751
|
function ru(u, e) {
|
|
3764
3752
|
if (!(this instanceof ru))
|
|
3765
3753
|
return new ru(u, e);
|
|
3766
|
-
e || Ne(u) || (e = u || {}, u = "default"), this.inline = new Yu(), this.block = new le(), this.core = new Be(), this.renderer = new Pu(), this.linkify = new nu(), this.validateLink = ko, this.normalizeLink =
|
|
3754
|
+
e || Ne(u) || (e = u || {}, u = "default"), this.inline = new Yu(), this.block = new le(), this.core = new Be(), this.renderer = new Pu(), this.linkify = new nu(), this.validateLink = ko, this.normalizeLink = yo, this.normalizeLinkText = Ao, this.utils = vn, this.helpers = ae({}, Fn), this.options = {}, this.configure(u), e && this.set(e);
|
|
3767
3755
|
}
|
|
3768
3756
|
ru.prototype.set = function(u) {
|
|
3769
3757
|
return ae(this.options, u), this;
|
|
@@ -3825,10 +3813,10 @@ ru.prototype.parseInline = function(u, e) {
|
|
|
3825
3813
|
ru.prototype.renderInline = function(u, e) {
|
|
3826
3814
|
return e = e || {}, this.renderer.render(this.parseInline(u, e), this.options, e);
|
|
3827
3815
|
};
|
|
3828
|
-
const
|
|
3816
|
+
const vo = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQJBAABACwAAAAAZABkAAAC/4yPqcvtD6OctNqLs968+w+G4kiW5omm6sq27gvH8kzXCIDjNpz3e9vz/VbB3JBYBBxVSeUS1XxCk6PgMxqiHrEg7s7rAdfEHPLMrEHH1Bj2y22BA7Vd+tcexo/1Zf7ZnwaYpQMhR1go+GH14FaE6HiSyDaZ2CdICdkgl9HkxIC5qFm50ekAKiSaSVKaGvopORp4Cau6AGcUp3aK24ramztbq7B7+OoawWp8PEy7fLMZkGzb7Dst/BxrIM18je3sXZ2wzahLzascDp7eu65tXmz97Z4dXd59QOwZL7/fXn8/j98/fuNM2ROYzyC9gvje6esHTxw0hgH9DbR4UKDEYM4IHSoEyA1gwo/+KEKMqA5lyochS07MeO4kOZEvOWL0yC7mTJogR6KzuJFnx542ga5kuXLnTaEaj5LUGXTpUKNOcyJN+lQlOGBMoWK1ikxrVrE+f4rtYLKsTBNpcYJlC/Os2ipE606lSgpoI43QZIUF2VBC3xSDHzWdA5grXiSJKxSORE9wZMKTDS9mUlmpVxmPx27J7HlI57c/Rpu9yhl0ziWm0V1RLeXv4dhtYNMOfVtE69xmea+67Du48OHEixs/jjy58uXMmzt/Dt1FAQAh+QQJBAABACwAAAAAZABkAAAC/4yPqcvtD6OctNqLs968+w+G4kiW5omm6sq27gvH8kzX9n0AOoC/+99b/YDB1HBXNB55ydOS2Sw9o6apaJi0gpZF7cdrA3fENPLGLENn1DD2xe2CV+Qs+sSuwkf0KP7DX8UFQfQn6ETY4HY0aCi16MAW2UgyqSD5mFgZ8gS1cIkFqbml9onoKfpFimpQirSHwRmKydCqw+hKEZs5e8pruRoA/Lta29kLSmunm+ybUCzbvBvNCvwsjbynOk29HUysrI19bDos7gz+3W3N3H2ebu4OjxAuz17vrV79fl9+v26Paxw5aP705du2LNu+gAJtEWQYj1/EgTkM8qNHESDEedMWM3IrKIzjQofXNooE2e4kSo/4Lo4kqRBhR5MVZYasadPlwZUsJ9JsyfJfv54qPQodChNp0kIvmerk+VOpMZ9TqToNmrLoz6NWr1pIqPRqVDlVY0ItixNr1jUYl3Yt6XbTTrVPiZ6ZO3ZmXLlRgfZtB8hRSqKBKd3MdVhIYgmFRzQO2+Px2xuStaKNUTlt3ziLzW5ukfmj3Tqdb0nkvPZOasWrGY8GXZqK69ayZ5+u/TU27od7d7O97Rvx5+DEixs/jjy58uXMmzt/Dj269OnUQxQAACH5BAkEAAEALAAAAABkAGQAAAL/jI+py+0Po5y02ouz3rz7D4biSJbmiabqyrbuC8fyTNf2jef6zpfAD+ipgEDhiUg0+pA/JYnZdIqgQWmIar1CR0geVtvVfUHjW9lzrqU561lb847FMfNXPZCE3Ft1pn6bMycIiFL05+cwiGhCyKAY1rAHt+jYuPCY92BYQVVVSXlpqdCXOdGZKJqAuflZGnEamYqwGtUK+RpH62nLOiqJlyt7oIsqHGpMXHzra8wMqtqczNurGfwMfT2L/As7vXu87OyKne39TT6OTq1eCx6u/D4cPV8O3MzeLr6uXW8fb9AN17Z+0tylizXwH0B6CgMeqlfQYD585+AdXEiQ4UV/yAr17cPYMSJFCg7xVcsIkZu1kBo/ctzocSI/ligbqkwIU+TMjiMR0vy5saRFlzp3Er2ZsmZOnDB7ejsJ9Og9o1KjyqRaUd5UrUmtZuW6lKdTiV9BhuUp1iPUs2xdaqWj1G3RKVdNDi37sq6clnrz4rXDF++vIff6+RWzlWTiFYMFpmXR+GFTF5HXugVs2EJlRosldCacWfNkzI+zOB5t+vTl1J4/syb7mo3r2Opoo+lrO7fu3bx7+/4NPLjw4cSLGz+OPLlyFAUAACH5BAkEAAEALAAAAABkAGQAAAL/jI+py+0Po5y02ouz3rz7D4biSJbmiabqyrbuC8fyTNf2jef6zvf+DwwKh8Qa4HgshpBMpYfZdHKgSOmUCrBusFlthjuC8sBL6o78iKaxOnTDvIbj3Au6wk7DI/QHfqKb4hcgKDioZkLI5pAoZtG4qPgWyeDHBSgxWZd5t/nX2Vfo+Uj5CSpHespZqrnKOMr6KpoaN7u3alhrm2tgSdEruct7WxlqGux6CJssGwvZOgx9XCz8HIzbrItNbc28nO39XeWsfU2uKm2NLI7KHb6u/A6fNA6+bd4dj38pv39eX/7P3z9184CR+4WJWLpoB6cBzOeunz5aAx0i5EcRYkR6twH1STQWkOBHex0jjnx4EmXGgvxSeuTIEiPMkxch1Jw4cyVNiwrNiZzp0mTOoQYr3npZVCNIpSRjIk1YzSdDo+2WMv1JtKWvniGnXnX4UKfYrAKZyhub1ClOdvf82fSqdmPauB+wzl2Jwi5bs+UCwU1ZLOiTv2hv6JU55yg3sH7blTz6gnGEtpEhe9lL93JhzRMka/Z8GXToqpzdlj6NOrXq1axbu34NO7bs2bRr276NO7fu3a8LAAAh+QQJBAABACwAAAAAZABkAAAC/4yPqcvtD6OctNqLs968+w+G4kiW5omm6sq27gvH8kzX9o3n+s73/g8MCofEovGITCpjgOaS04wCnhppVOKkGqzXB1fLzTbC01EXRfaGRetT2vFWi+Ffd3t8Z+QX5HIprrenADhIyCaYYJiIeNBnV4cHGShZyPihiIDZaBngWGEFobnF2cnpOUEqWkpZCRrJKicVK0sHm2mquohru8k76nsaEdxK+1o86YqcLCyq6rzrS3wsPceXCr0c2nwdvU2qC8ydTe1n/X2Lfaasbj6OHg3u3is/P01eC/9Ov7rPbx/PDmBAfPuedUs30Ni/egkZVrunsGG7guIWOixHDuMsi67+JHZ8KFCjPo4ZCXo0SPHcRZEXN4Ic+fJXvpUmY8ok6W3mTY4ocSK0WTIiy5Y1h34EGtJoz5M/jQZdB3SpzWHa+kl1mrMfNZdYK0qkWhXpVa5FnULxGrXpI6tolebaMLZo2bU+D4ZTmSFuRK5m4bZlhvQjmr8h8OYlfKhvB71Kcun88ZYkkbdatlb+pPXyJM2cO3v+DDq06NGkS5s+jTq16tWsW7t+DTu27NkuCgAAIfkECQQAAQAsAAAAAGQAZAAAAv+Mj6nL7Q+jnLTai7PevPsPhuJIluaJpurKtu4Lx/JM1/aN5/rO9/4PDAqHxKLxiEwql0wM4AkwQX3Q6aga3WGtoG025/16wuISFhIOkVHeR7r7Nrcd8XH9Om/cOWtpnrG30Se35fYHWIUWCFdId6jwmDBIsnhQaXA5ideoF4mQeYnI1ckpeuZYChmqekraapqI+sqaqjhLG+uaCzuKu2tb++lpOYxZrGl4XBwQCros6XwLHSxMbfxcbc283KyMTewtnf3r+yQrzts7jX7Nvq2NfE4+rr4+T2+ue5+ez5/sHs2dvX3vAHILJxBfvwXdtBUkGE9fPXAGHQYkWG5hxn+uGC9O5FdmoMaN8kYqDFnSJMWOB+GtOpmS48d2EF+urGmxJbuIEmWqvPmT5kye6XyiVGg05dFzwFjmdPktQ8OKO21K1em0alQnWGc+DPrVK5+uYB82xTj2aUIKRDtMRVuhbVqqcNla5aq27gS5gsguxetwbla9EvhqeCvWwtardBMrJtxX7F27f2kEbiILs+bNnDt7/gw6tOjRpEubPo06terVrFu7fg07tuzZsgsAACH5BAkEAAEALAAAAABkAGQAAAL/jI+py+0Po5y02ouz3rz7D4biSJbmiabqyrbuC8fyTNf2jef6zvf+DwwKh8Si8YhMKgOAJtBJakqhuikVZL3esloOt0v7hr6AKncszqU/ZHMWfVbH2WvTNFLvtE9zRt77B2f1EKixV1J4kIhxGNW3sHjROBIZyXRHaLlR+ajQmTApIYX3icD51hCaOehwyppaaqDaigpb6xcrmzuLu5t7eQvp+wu66Ipp+ypMbGr8ezyarAzBCzzt+TwcvLrd3O19Xfyty6zoPE4eDo68jI6tzd4e/66eXi8/vx4tvd97X03vXzZ359yJQwcNjD6F9vLx6xcQYkSGDSkCPCiQ4MCMpQYXWtzo0BxCTSJHajzJ8R6+MrRQhqzI0p/KidxeWrNZcOYyUi4lYvRZUqchkECDUrxpE1DPozepkcyQMKaHi5uIMq1AdehSqXqeMrLKVWlHrSq98hwLFawgoWm3rk0qtijMt3KnzjTrtJzSs3ApZGWBt2ZfwHonFF4RWHBYG2gt1A3zeInkyZQrW76MObPmzZw7e/4MOrTo0aRLmz6NOrXq1UgKAAAh+QQJBAABACwAAAAAZABkAAAC/4yPqcvtD6OctNqLs968+w+G4kiW5omm6sq27gvH8kzX9o3n+s73/g8MCofEovGIZAGWyc/y6XsCSFLorjoNYa24bdbp1YVB3u9tDN6K1WT0mZ3GruVt+Jser6q4DnenjILX4McBaEKYgKhhWKJ44IjBSGW3AHkhOWJpGaD3gCmiSakgmrg5KgURKlhJ+miK0Oq6ejpbWit7O5hroNqpu/vZB9mLKgz8yjscm7zLuRz8e9xMzEfbbCvty0DNFK2dqjy97Jz97Rlujl3sXa2+HgHNnA47jj6/bd/u3s3Ozzq+z5+1d//uySMY0Ay4Z/UalkNo7KHAgfroSZwY0SA3hZsUMeIyWLDiR5EHSZLTiKwkx4DnxF1c2dKjRZAbM0KsQ9PhzZEmC+nc+XHhtQ01cYL06fJohXgeiuYB+udnz6UpL0mVGamqBadNtVJNCnWrVwpcowJE2nNsP6x14J0lq7bR2wlMYcQNGdbF3Y5sX+zteGUu3Kl2lWaF2SSx4sWMGzt+DDmy5MmUK1u+jDmz5s2cO3v+DDq0aCEFAAAh+QQJBAABACwAAAAAZABkAAAC/4yPqcvtD6OctNqLs968+w+G4kiW5omm6sq27gvH8kzX9o3n+s73/g8MCofEovGITCoBTObPSWpKeVJoqGrFYbOdLbfmvYZz448XoCt7zumt2E2Gm9WmZoTOYZ+wEPxGX8fn4KcBGCXHQJhhOKJo4HjBKAIJ+Wj3IPlWhYm40KmQ2ffl+ZlAWXoQ2oCaymopuOqqmghLW0t6CypbiTB7mmu666orvDk47DhLDNzK3Gwc6xygHFw8dSw9bX0t4Yv8LU3dmwwObWu+jM65PTqeTT5cHV7OfV6ffr8+/05/aZ+PbZ86eQDdDXx28J8/XAlfNdQm8CHBgg4pVlzI0KI4hJ0a+7Xj+BFitokYSaIJaFFkx3gk9aX81XAjSJclTdIMKdPdHY8no8XkVYjnzZshuwgVVVRlyjxH57AMym9khZyRmq4Busiq0adZo0qcihUDzKVguYrVytTs2Ydhd6pdm7QtUqkt5BLtecMuSrJ1386tSUPvXrxavlYFbIOvksWMGzt+DDmy5MmUK1u+jDmz5s2cO3v+DDq06NGkQxcAACH5BAkEAAEALAAAAABkAGQAAAL/jI+py+0Po5y02ouz3rz7D4biSJbmiabqyrbuC8fyTNf2jef6zvf+DwwKh8Si8YhMKpdMDOAJKEGfvSlVZL3mstoPd8eNgsJiXDhETlkh53Hb9HW8PWl4vDHv1KV3Rp6zR/KXMKgROFJ4kKg4xbao17fwGKlwiEVJiImwaBkB5anJmPXA+Vg5KhdqMKnambr2CounGlBKm9lKy4rqZ7ppK9vLKxx8evubOyypm6xMCtwYGz3rjFxNfb3KnK3N7UpcjBsuPg3+iT2OXm6cLtre/f693LzOXk9+bp4PSr8//16rn79nAsvoM/jvnjuA+AZaU7jQ4UOJ8BhOpBiQW0aAptAgJvS4i2NBhAS9bRNp8lhEjCE9bgTpa2UXexhf1uxYkybJhjsv9pQpzaXOki5bsoyJix/KpTBVZjA6U+dPmzk3QJ1KlahQqyeFMpQHSSNSCWABda1KoSxXsU7Jjr1wFc1bC3HdtIV7NupajWbZ8q2gdu/Nu0rR9tXL85JFF3MLV1nchFjkyZQrW76MObPmzZw7e/4MOrTo0aRLmz6NOrXq1axXFwAAIfkECQQAAQAsAAAAAGQAZAAAAv+Mj6nL7Q+jnLTai7PevPsPhuJIluaJpurKtu4Lx/JM1/aN5/rO9/4PDAqHxKLxiEwql8wmCAAFTKJSZ4AKjWCro6hqm3WAuR8wavxAh8wndcPtGZO77Hc9PWfI2/cFXI+F1yfyp1CYMIh4+JSIsHjweBXZMVnZaLBnYrklGGh3+RkmBirJOWoKSGqImuoZStUJ+yo7xepHuul6q+oYmUvbCrzKC+mLe2yrSIxpnKysuwv9LH3qXGx9Td2LXco9zP3rVS08TT5uno2eLj4rGq0drN4tP88e7/4N/y4fjp9v/w9gLH7I9NXzt81bOYEJ6fXL05DeQoTrKFaEGNHiQY2tATU+HOhx0kSMzLx9bMdx5DmOJ++lzBjSZEGCyzaS3AjyJk6UOlWizAmUJ4VMLoP+FDpUplKDzRQuNFp05U2itRhOhLovplMNLaO67Lmha9apIsPOtHpRKliuZ1kuNchB7L6cazPIBaSlLNu3aDFQpcP3ZYWaftvWrSoxrmESfRkFPuxD1dYgkwUXsWwls+bNnDt7/gw6tOjRpEubPo06terVrFu7fg07tmzNBQAAIfkECQQAAQAsAAAAAGQAZAAAAv+Mj6nL7Q+jnLTai7PevPsPhuJIluaJpurKtu4Lx/JM1/aN5/rO9/4PDAqHxKLxeAMoAcjP8tncPKHRzHRZtV6Z2cuW+6B2v5BrZMojO9SN7Y7NgC/kc7GJnsAj9Af3iW8AGCDod1cYd1hn1ibIQZioAPgFNoEWBpmHuacZ2JhpybgYCoooqmh6hhrJ2an6SbrKGuvaJ/tI24p7Cvtqt4u1xjpJMTzqO3vcC1yqi5xc23zLuymrvPyrdBkt7AmtK/3sHT7YnTstfo1NqR5cTf1tGw/vjp5uve6c3X5uPp6vz8wfOHvv+KnDV5BgQoABFfZzeHCfQHkGi0mwyE4iRHKz85rdQ1gPZEhtFctx7DhxG0p/HzUyzGgMIsYykiimLEnv4ct7JG+Om9nzp82NNXOexGnwKFFuRoEuFKkz6M6nUP9BHTj1qcusMati9crUozWpYFUiTbqLplmfMk16Gco1ate4Hb6S3VrVEdyySY1isLtVKgrAc9XS9UC4Yd4XiQOmqSY2iCeWQ9x2kXuZmN/MShdz7vU5tOjRpEubPo06terVrFu7fg07tuzZtGvbvo27RQEAIfkECQQAAQAsAAAAAGQAZAAAAv+Mj6nL7Q+jnLTai7PevPsPhuJIluaJpurKtu4Lx/JM1/aN5/rO9/4PDKoARKKQVEweQ0nl8tMsPqFRwNRTtV45WaR01xVFwVVxORcGpW9rhzHSrsUV48d8dj/kDXtY/3+GA1jX0EelZRfIMNgE0WihuMDoVBhJRzhhmTD5VYkp+em4x/nm+bhoiJCFCBq6qakKy5eqNyo76xqbi7vb2kvK6kspPCx6C5z4S8t7SlyK2htge3t5TI1s2mysHI0NHf1q3X0tDq7LrV2dHr5eS83eztz5Xaxefx7v/Gw/r5+cv4pCwGz9+O0zGAzePYIF8TV0eFBhRHfmKAIkNw5dPoS9CSF29PhvobyH9ERKw7hxWsWRE1mGJOmSYUt9H2PKfDlzoASd/tygNMlz28WMKcttlJjzJ8yTGk1y9EnUqcqjHmsyLRoVZlCcSbPOvAp0GdiwXq2O7bpyJNe1ULE6dcb2ZlupaXXBUfrVEFUueM2KHdI3LpvAc5e+8Fby6+F34P6moKXY5uC6dymjcFzZ8GLLmXlg3oIU9IbPoiWXhsT5NC/VrFu7fg07tuzZtGvbvo07t+7dvHv7/g08+IkCACH5BAkEAAEALAAAAABkAGQAAAL/jI+py+0Po5y02ouz3rz7D4biSJbmiabqyrbuC8fyTNf2jed6DPQ72wsCfimhkHgyBpEmpY9Jcg6hIym16owud9ZQVtcFhW9jT7l25qRna02b9xXHyXNzHX1nPCFvWD+gxJfHNnjQ99dhJBjocFj48QgY6cjYVKk3mXmJ9Uip2BgpuUUhNYW5qeB5BPo5Ucraehq7oLon8dpQa0vbiWj4pmsquzpMHIFbvJuqOZuAfAzMbMyLivC8WP2brd3s3BtqHb1tEAzbnSt+zj29PH798B4+LqpO/j3vfc+eX0+/v/4vmTJ5/cqhAwdwFLWC0hS2w0ewnsGDEn3Z0+fwYcCLyhURcuzIcF66fvxAbvSXsWTKhAMpmlzJEh5GmAtftoxpjmY8lxsnCsxJU2PPhjc/6rSI8qhIosKEBlWpNKTUoR6TFvVZMyrJiFSnBtVVYafRolZlLt3KVetXptia3jrrlSxSDGyBuoV6VwRJrE7zyuCLF0wofHOLgDs51i8ciGGrqijc9qkLyGbRAnEMjfFlza4wo6BsVzDnt5Y3lyYl+QXoKzzJsraw+nVWxbIvnK6NO7fu3bx7+/4NPLjw4cSLGz+OPLny5cxrFwAAIfkEBQQAAQAsAAAAAGQAZAAAAv+Mj6nL7Q+jnLTai7PevPsPhuJIluaJpurKtu4Lx/JM1/Z9ALqOu/vfW/2AwdRwVzQeAUnUktk0PaPS5WiYnIasQS3IewN7xDUyxzxDa9QxNsb9glvkLTrFLuR+9WH+2F8GuED0gJeBVSiYcARheKGYA2ng5jjH6EApGVB5x5Z52cA58QTF8IkYqnnmqXlKSEKK2ToLmopUEWuLakq7O1gbkcsLrOB6q3ssIfxLvNj7Woy3HN2MYMyDDJ0oeV067Ousas1aHVk+yS1NDh7OPn4+vQ3/nMzsji5uPn++SY/9fc9ewG7ytL3j126gP28C6yU0mM3hQYj6KOJTmO8ixoDT/fit4/hQYkWRI/8BJNkR4USLBGXtU1nSJDWOLU+inLnRYkqdH3WGlPmz4M2eN38yDOqSZrqMO1kuFAp0ZVGpUWNCPYo0Ii6iWKlehbp1qVKPqkDidEo2rdk1XL8m9bkhnte3Q5m+Ucvz6Qm9EbtadeITDkJRJeTAJQzLbjDFgGF2cpwHsjLGeynTrSoDcUPMbSz37eLZpt/OkheXbrz2cerIqye3VqFZYJbQVC6Prs32NG7TcHc/6u07uPDhxIsbP448ufLlzJs7fw49uvTp1C8UAAA7", Co = { class: "das-ai-chat" }, Do = { class: "das-ai-reference-content-content" }, Eo = { style: { "margin-right": "8px" } }, Fo = { class: "das-ai-answer-content" }, wo = {
|
|
3829
3817
|
key: 0,
|
|
3830
3818
|
class: "das-ai-chat-stop"
|
|
3831
|
-
}, So = { class: "think-line-text" },
|
|
3819
|
+
}, So = { class: "think-line-text" }, To = { class: "think-line-icon" }, Io = ["innerHTML"], zo = ["innerHTML"], No = {
|
|
3832
3820
|
key: 3,
|
|
3833
3821
|
class: "das-ai-chat-opt"
|
|
3834
3822
|
}, Lo = {
|
|
@@ -3850,7 +3838,7 @@ const Ao = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
|
|
|
3850
3838
|
},
|
|
3851
3839
|
emits: ["aiChatEmit"],
|
|
3852
3840
|
setup(u, { emit: e }) {
|
|
3853
|
-
const t = u, n =
|
|
3841
|
+
const t = u, n = z(""), r = z(""), o = e, c = new ru(), i = z(), a = su(() => t.item.content), s = su(() => t.item.think), { toClipboard: l } = B0();
|
|
3854
3842
|
bu(
|
|
3855
3843
|
() => a.value,
|
|
3856
3844
|
(p, b) => {
|
|
@@ -3872,21 +3860,21 @@ const Ao = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
|
|
|
3872
3860
|
},
|
|
3873
3861
|
{ immediate: !0 }
|
|
3874
3862
|
);
|
|
3875
|
-
const f =
|
|
3863
|
+
const f = z(!0), _ = su(() => t.item.file && t.item.file.length ? I("引用$0篇资料作为参考", t.item.file.length) : ""), h = su(() => t.item.loading && !n.value ? I("思考中…") : t.item.thinkTime ? I("已深度思考(用时$0秒)", t.item.thinkTime) : I("已深度思考")), d = su(() => !n.value && !r.value), A = () => {
|
|
3876
3864
|
var p, b, m;
|
|
3877
|
-
return ((p = t.item) == null ? void 0 : p.audioStatus) == "normal" ?
|
|
3878
|
-
},
|
|
3865
|
+
return ((p = t.item) == null ? void 0 : p.audioStatus) == "normal" ? I("语音朗读") : ((b = t.item) == null ? void 0 : b.audioStatus) == "generated" || ((m = t.item) == null ? void 0 : m.audioStatus) == "loading" ? I("停止朗读") : I("语音朗读");
|
|
3866
|
+
}, y = () => {
|
|
3879
3867
|
var p;
|
|
3880
3868
|
try {
|
|
3881
3869
|
if (!n.value) return;
|
|
3882
3870
|
const b = (p = i.value.textContent) == null ? void 0 : p.replace(/^\s*[\r\n]/gm, "");
|
|
3883
|
-
l(b), Pe.success(
|
|
3871
|
+
l(b), Pe.success(I("复制成功"));
|
|
3884
3872
|
} catch {
|
|
3885
|
-
Pe.error(
|
|
3873
|
+
Pe.error(I("复制失败"));
|
|
3886
3874
|
}
|
|
3887
3875
|
}, C = (p) => {
|
|
3888
3876
|
if (p == "copy") {
|
|
3889
|
-
|
|
3877
|
+
y();
|
|
3890
3878
|
return;
|
|
3891
3879
|
}
|
|
3892
3880
|
if (p == "saveKnowledgebase") {
|
|
@@ -3907,278 +3895,134 @@ const Ao = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
|
|
|
3907
3895
|
}, k = () => {
|
|
3908
3896
|
o("aiChatEmit", "reference", t.item);
|
|
3909
3897
|
};
|
|
3910
|
-
return (p, b) => (S(),
|
|
3911
|
-
z(" 参考内容 "),
|
|
3898
|
+
return (p, b) => (S(), O("div", Co, [
|
|
3912
3899
|
g("div", Do, [
|
|
3913
|
-
_.value ? (S(),
|
|
3900
|
+
_.value ? (S(), O("div", {
|
|
3914
3901
|
key: 0,
|
|
3915
3902
|
onClick: k,
|
|
3916
3903
|
class: "das-ai-reference-content-line"
|
|
3917
3904
|
}, [
|
|
3918
|
-
g(
|
|
3919
|
-
|
|
3920
|
-
Eo,
|
|
3921
|
-
V(_.value),
|
|
3922
|
-
1
|
|
3923
|
-
/* TEXT */
|
|
3924
|
-
),
|
|
3925
|
-
H(A(ft), {
|
|
3905
|
+
g("span", Eo, V(_.value), 1),
|
|
3906
|
+
j(v(ft), {
|
|
3926
3907
|
size: "medium",
|
|
3927
3908
|
iconColor: "#999999"
|
|
3928
3909
|
})
|
|
3929
|
-
])) :
|
|
3930
|
-
z(` <div v-if="item.loading && noContent && !item.file.length" class="ai-reference-content-top">\r
|
|
3931
|
-
<DasIcon icon="cankaoneirong" size="large" iconColor="#212121"></DasIcon>\r
|
|
3932
|
-
<span style="margin-left: 8px">{{ referenceTitle }}</span>\r
|
|
3933
|
-
</div>\r
|
|
3934
|
-
<div v-if="item.loading && noContent && !item.file.length" class="ai-reference-content-skeleton">\r
|
|
3935
|
-
<div class="ai-reference-content-skeleton-item"></div>\r
|
|
3936
|
-
<div class="ai-reference-content-skeleton-item"></div>\r
|
|
3937
|
-
</div>\r
|
|
3938
|
-
<div v-if="item.file && item.file.length" class="ai-reference-content-top">\r
|
|
3939
|
-
<DasIcon icon="cankaoneirong" size="large" iconColor="#212121"></DasIcon>\r
|
|
3940
|
-
<span style="margin-left: 8px">{{ referenceTitle }}</span>\r
|
|
3941
|
-
<div v-if="item.file && item.file.length > 2" class="more-btn">\r
|
|
3942
|
-
<das-button @click="toReference" size="middle" btnType="primary-text" block>{{ t('更多') }}</das-button>\r
|
|
3943
|
-
</div>\r
|
|
3944
|
-
</div>\r
|
|
3945
|
-
<div class="das-ai-chat-file-box">\r
|
|
3946
|
-
<div @click="downflie(fileitem)" class="das-ai-chat-file-item" v-for="(fileitem, index) in showFile">\r
|
|
3947
|
-
<div v-das-tooltip class="chat-file-title">\r
|
|
3948
|
-
<span style="margin-right: 4px">{{ index + 1 }}.</span>\r
|
|
3949
|
-
<DasIcon icon="lianjie" size="mini" iconColor="#212121"></DasIcon>\r
|
|
3950
|
-
<span style="margin-left: 4px">{{ fileitem.name }}</span>\r
|
|
3951
|
-
</div>\r
|
|
3952
|
-
<div v-das-tooltip class="chat-file-summary">\r
|
|
3953
|
-
{{ fileitem.summary }}\r
|
|
3954
|
-
</div>\r
|
|
3955
|
-
</div>\r
|
|
3956
|
-
</div> `)
|
|
3910
|
+
])) : $("", !0)
|
|
3957
3911
|
]),
|
|
3958
|
-
z(" 回答 "),
|
|
3959
3912
|
g("div", Fo, [
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
|
|
3963
|
-
|
|
3964
|
-
|
|
3965
|
-
|
|
3966
|
-
|
|
3967
|
-
|
|
3968
|
-
|
|
3969
|
-
|
|
3970
|
-
|
|
3971
|
-
|
|
3972
|
-
|
|
3973
|
-
|
|
3974
|
-
|
|
3975
|
-
|
|
3976
|
-
|
|
3977
|
-
|
|
3978
|
-
|
|
3979
|
-
|
|
3980
|
-
|
|
3981
|
-
|
|
3982
|
-
|
|
3983
|
-
|
|
3984
|
-
|
|
3985
|
-
|
|
3986
|
-
|
|
3987
|
-
|
|
3988
|
-
|
|
3989
|
-
So,
|
|
3990
|
-
V(h.value),
|
|
3991
|
-
1
|
|
3992
|
-
/* TEXT */
|
|
3993
|
-
),
|
|
3994
|
-
g("div", Io, [
|
|
3995
|
-
f.value ? z("v-if", !0) : (S(), X(A(ht), {
|
|
3996
|
-
key: 0,
|
|
3997
|
-
size: "medium",
|
|
3998
|
-
iconColor: "#999999"
|
|
3999
|
-
})),
|
|
4000
|
-
f.value ? (S(), X(A(pt), {
|
|
4001
|
-
key: 1,
|
|
4002
|
-
size: "medium",
|
|
4003
|
-
iconColor: "#999999"
|
|
4004
|
-
})) : z("v-if", !0)
|
|
4005
|
-
])
|
|
4006
|
-
]),
|
|
4007
|
-
g("div", {
|
|
4008
|
-
class: "das-ai-think-markdown",
|
|
4009
|
-
innerHTML: r.value
|
|
4010
|
-
}, null, 8, To)
|
|
4011
|
-
],
|
|
4012
|
-
2
|
|
4013
|
-
/* CLASS */
|
|
4014
|
-
)) : z("v-if", !0),
|
|
4015
|
-
n.value ? (S(), R("div", {
|
|
3913
|
+
!p.item.loading && d.value && !p.item.file.length ? (S(), O("div", wo, V(v(I)("已暂停生成")), 1)) : $("", !0),
|
|
3914
|
+
r.value ? (S(), O("div", {
|
|
3915
|
+
key: 1,
|
|
3916
|
+
class: Ju(["das-ai-think-markdown-box", { "hide-think": !f.value }])
|
|
3917
|
+
}, [
|
|
3918
|
+
g("div", {
|
|
3919
|
+
onClick: b[0] || (b[0] = (m) => f.value = !f.value),
|
|
3920
|
+
class: "think-line"
|
|
3921
|
+
}, [
|
|
3922
|
+
g("div", So, V(h.value), 1),
|
|
3923
|
+
g("div", To, [
|
|
3924
|
+
f.value ? $("", !0) : (S(), X(v(ht), {
|
|
3925
|
+
key: 0,
|
|
3926
|
+
size: "medium",
|
|
3927
|
+
iconColor: "#999999"
|
|
3928
|
+
})),
|
|
3929
|
+
f.value ? (S(), X(v(pt), {
|
|
3930
|
+
key: 1,
|
|
3931
|
+
size: "medium",
|
|
3932
|
+
iconColor: "#999999"
|
|
3933
|
+
})) : $("", !0)
|
|
3934
|
+
])
|
|
3935
|
+
]),
|
|
3936
|
+
g("div", {
|
|
3937
|
+
class: "das-ai-think-markdown",
|
|
3938
|
+
innerHTML: r.value
|
|
3939
|
+
}, null, 8, Io)
|
|
3940
|
+
], 2)) : $("", !0),
|
|
3941
|
+
n.value ? (S(), O("div", {
|
|
4016
3942
|
key: 2,
|
|
4017
3943
|
ref_key: "chatMarkdownRef",
|
|
4018
3944
|
ref: i,
|
|
4019
3945
|
class: "das-ai-chat-markdown",
|
|
4020
3946
|
innerHTML: n.value
|
|
4021
|
-
}, null, 8, zo)) :
|
|
4022
|
-
p.isNew && !p.item.loading ? (S(),
|
|
4023
|
-
p.isNew ? (S(), X(
|
|
3947
|
+
}, null, 8, zo)) : $("", !0),
|
|
3948
|
+
p.isNew && !p.item.loading ? (S(), O("div", No, [
|
|
3949
|
+
p.isNew ? (S(), X(v(Cu), {
|
|
4024
3950
|
key: 0,
|
|
4025
3951
|
placement: "top",
|
|
4026
3952
|
type: "button"
|
|
4027
3953
|
}, {
|
|
4028
3954
|
content: J(() => [
|
|
4029
|
-
g(
|
|
4030
|
-
"div",
|
|
4031
|
-
null,
|
|
4032
|
-
V(A(T)("重新生成")),
|
|
4033
|
-
1
|
|
4034
|
-
/* TEXT */
|
|
4035
|
-
)
|
|
3955
|
+
g("div", null, V(v(I)("重新生成")), 1)
|
|
4036
3956
|
]),
|
|
4037
3957
|
default: J(() => [
|
|
4038
3958
|
g("div", {
|
|
4039
3959
|
onClick: b[1] || (b[1] = (m) => C("regenerate")),
|
|
4040
3960
|
class: "chat-opt-box"
|
|
4041
3961
|
}, [
|
|
4042
|
-
|
|
3962
|
+
j(v(a0), {
|
|
4043
3963
|
size: "medium",
|
|
4044
3964
|
iconColor: "#666666"
|
|
4045
3965
|
})
|
|
4046
3966
|
])
|
|
4047
3967
|
]),
|
|
4048
3968
|
_: 1
|
|
4049
|
-
|
|
4050
|
-
|
|
4051
|
-
H(A(Cu), {
|
|
3969
|
+
})) : $("", !0),
|
|
3970
|
+
j(v(Cu), {
|
|
4052
3971
|
placement: "top",
|
|
4053
3972
|
type: "button"
|
|
4054
3973
|
}, {
|
|
4055
3974
|
content: J(() => [
|
|
4056
|
-
g(
|
|
4057
|
-
"div",
|
|
4058
|
-
null,
|
|
4059
|
-
V(A(T)("复制")),
|
|
4060
|
-
1
|
|
4061
|
-
/* TEXT */
|
|
4062
|
-
)
|
|
3975
|
+
g("div", null, V(v(I)("复制")), 1)
|
|
4063
3976
|
]),
|
|
4064
3977
|
default: J(() => [
|
|
4065
3978
|
g("div", {
|
|
4066
3979
|
onClick: b[2] || (b[2] = (m) => C("copy")),
|
|
4067
3980
|
class: "chat-opt-box"
|
|
4068
3981
|
}, [
|
|
4069
|
-
|
|
3982
|
+
j(v(s0), {
|
|
4070
3983
|
size: "medium",
|
|
4071
3984
|
iconColor: "#666666"
|
|
4072
3985
|
})
|
|
4073
3986
|
])
|
|
4074
3987
|
]),
|
|
4075
3988
|
_: 1
|
|
4076
|
-
/* STABLE */
|
|
4077
3989
|
}),
|
|
4078
|
-
|
|
3990
|
+
j(v(Cu), {
|
|
4079
3991
|
placement: "top",
|
|
4080
3992
|
type: "button"
|
|
4081
3993
|
}, {
|
|
4082
3994
|
content: J(() => [
|
|
4083
|
-
g(
|
|
4084
|
-
"div",
|
|
4085
|
-
null,
|
|
4086
|
-
V(y()),
|
|
4087
|
-
1
|
|
4088
|
-
/* TEXT */
|
|
4089
|
-
)
|
|
3995
|
+
g("div", null, V(A()), 1)
|
|
4090
3996
|
]),
|
|
4091
3997
|
default: J(() => [
|
|
4092
3998
|
g("div", {
|
|
4093
3999
|
onClick: b[3] || (b[3] = (m) => C("play")),
|
|
4094
4000
|
class: "chat-opt-box"
|
|
4095
4001
|
}, [
|
|
4096
|
-
p.item.audioStatus == "normal" ? (S(), X(
|
|
4002
|
+
p.item.audioStatus == "normal" ? (S(), X(v(l0), {
|
|
4097
4003
|
key: 0,
|
|
4098
4004
|
size: "medium",
|
|
4099
4005
|
iconColor: "#666666"
|
|
4100
|
-
})) :
|
|
4101
|
-
p.item.audioStatus == "generated" ? (S(),
|
|
4102
|
-
g(
|
|
4103
|
-
|
|
4104
|
-
|
|
4105
|
-
|
|
4106
|
-
|
|
4107
|
-
|
|
4108
|
-
),
|
|
4109
|
-
|
|
4110
|
-
"span",
|
|
4111
|
-
null,
|
|
4112
|
-
null,
|
|
4113
|
-
-1
|
|
4114
|
-
/* CACHED */
|
|
4115
|
-
),
|
|
4116
|
-
g(
|
|
4117
|
-
"span",
|
|
4118
|
-
null,
|
|
4119
|
-
null,
|
|
4120
|
-
-1
|
|
4121
|
-
/* CACHED */
|
|
4122
|
-
),
|
|
4123
|
-
g(
|
|
4124
|
-
"span",
|
|
4125
|
-
null,
|
|
4126
|
-
null,
|
|
4127
|
-
-1
|
|
4128
|
-
/* CACHED */
|
|
4129
|
-
)
|
|
4130
|
-
]))) : z("v-if", !0),
|
|
4131
|
-
z(` <div v-if="item.audioStatus == 'loading'" class="audio-loading">\r
|
|
4132
|
-
<span style="width: 1.5px"></span>\r
|
|
4133
|
-
<span style="width: 1.5px"></span>\r
|
|
4134
|
-
<span style="width: 1.5px"></span>\r
|
|
4135
|
-
<span style="width: 1.5px"></span>\r
|
|
4136
|
-
<span style="width: 1.5px"></span>\r
|
|
4137
|
-
</div> `),
|
|
4138
|
-
p.item.audioStatus == "loading" ? (S(), R("div", Bo, [
|
|
4139
|
-
g("img", { src: A(Ao) }, null, 8, qo)
|
|
4140
|
-
])) : z("v-if", !0)
|
|
4006
|
+
})) : $("", !0),
|
|
4007
|
+
p.item.audioStatus == "generated" ? (S(), O("div", Lo, b[4] || (b[4] = [
|
|
4008
|
+
g("span", null, null, -1),
|
|
4009
|
+
g("span", null, null, -1),
|
|
4010
|
+
g("span", null, null, -1),
|
|
4011
|
+
g("span", null, null, -1)
|
|
4012
|
+
]))) : $("", !0),
|
|
4013
|
+
p.item.audioStatus == "loading" ? (S(), O("div", Bo, [
|
|
4014
|
+
g("img", { src: v(vo) }, null, 8, qo)
|
|
4015
|
+
])) : $("", !0)
|
|
4141
4016
|
])
|
|
4142
4017
|
]),
|
|
4143
4018
|
_: 1
|
|
4144
|
-
|
|
4145
|
-
|
|
4146
|
-
|
|
4147
|
-
|
|
4148
|
-
|
|
4149
|
-
|
|
4150
|
-
|
|
4151
|
-
</div>\r
|
|
4152
|
-
</template>\r
|
|
4153
|
-
<div @click="iconClick('saveKnowledgebase')" class="chat-opt-box save-btn-box" :class="{ saved: item.saved }">\r
|
|
4154
|
-
<DasIcon v-if="item.saved" icon="knowed" size="medium" iconColor="#B2B2B2"></DasIcon>\r
|
|
4155
|
-
<DasIcon v-else icon="know" size="medium" iconColor="inherit"></DasIcon>\r
|
|
4156
|
-
</div>\r
|
|
4157
|
-
</das-tooltip> `)
|
|
4158
|
-
])) : z("v-if", !0),
|
|
4159
|
-
p.item.loading && d.value && !p.item.file.length ? (S(), R("div", Mo, b[5] || (b[5] = [
|
|
4160
|
-
g(
|
|
4161
|
-
"span",
|
|
4162
|
-
null,
|
|
4163
|
-
null,
|
|
4164
|
-
-1
|
|
4165
|
-
/* CACHED */
|
|
4166
|
-
),
|
|
4167
|
-
g(
|
|
4168
|
-
"span",
|
|
4169
|
-
null,
|
|
4170
|
-
null,
|
|
4171
|
-
-1
|
|
4172
|
-
/* CACHED */
|
|
4173
|
-
),
|
|
4174
|
-
g(
|
|
4175
|
-
"span",
|
|
4176
|
-
null,
|
|
4177
|
-
null,
|
|
4178
|
-
-1
|
|
4179
|
-
/* CACHED */
|
|
4180
|
-
)
|
|
4181
|
-
]))) : z("v-if", !0)
|
|
4019
|
+
})
|
|
4020
|
+
])) : $("", !0),
|
|
4021
|
+
p.item.loading && d.value && !p.item.file.length ? (S(), O("div", Mo, b[5] || (b[5] = [
|
|
4022
|
+
g("span", null, null, -1),
|
|
4023
|
+
g("span", null, null, -1),
|
|
4024
|
+
g("span", null, null, -1)
|
|
4025
|
+
]))) : $("", !0)
|
|
4182
4026
|
])
|
|
4183
4027
|
]));
|
|
4184
4028
|
}
|
|
@@ -4197,33 +4041,21 @@ const Ao = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
|
|
|
4197
4041
|
}, o = e, c = (i, a) => {
|
|
4198
4042
|
o("chatEmit", i, a);
|
|
4199
4043
|
};
|
|
4200
|
-
return (i, a) => (S(),
|
|
4201
|
-
(S(!0),
|
|
4202
|
-
|
|
4203
|
-
|
|
4204
|
-
|
|
4205
|
-
|
|
4206
|
-
|
|
4207
|
-
|
|
4208
|
-
|
|
4209
|
-
|
|
4210
|
-
|
|
4211
|
-
|
|
4212
|
-
|
|
4213
|
-
|
|
4214
|
-
|
|
4215
|
-
key: 1,
|
|
4216
|
-
onAiChatEmit: c,
|
|
4217
|
-
isNew: r(s),
|
|
4218
|
-
item: s
|
|
4219
|
-
}, null, 8, ["isNew", "item"])) : z("v-if", !0)
|
|
4220
|
-
],
|
|
4221
|
-
64
|
|
4222
|
-
/* STABLE_FRAGMENT */
|
|
4223
|
-
))),
|
|
4224
|
-
128
|
|
4225
|
-
/* KEYED_FRAGMENT */
|
|
4226
|
-
))
|
|
4044
|
+
return (i, a) => (S(), O("div", jo, [
|
|
4045
|
+
(S(!0), O(Bu, null, Qu(i.chartList, (s) => (S(), O(Bu, {
|
|
4046
|
+
key: s.id
|
|
4047
|
+
}, [
|
|
4048
|
+
s.role == "user" ? (S(), X(T0, {
|
|
4049
|
+
key: 0,
|
|
4050
|
+
item: s
|
|
4051
|
+
}, null, 8, ["item"])) : $("", !0),
|
|
4052
|
+
s.role == "ai" ? (S(), X(Po, {
|
|
4053
|
+
key: 1,
|
|
4054
|
+
onAiChatEmit: c,
|
|
4055
|
+
isNew: r(s),
|
|
4056
|
+
item: s
|
|
4057
|
+
}, null, 8, ["isNew", "item"])) : $("", !0)
|
|
4058
|
+
], 64))), 128))
|
|
4227
4059
|
]));
|
|
4228
4060
|
}
|
|
4229
4061
|
}), Vo = /* @__PURE__ */ iu($o, [["__scopeId", "data-v-c0e5804a"]]), Uo = { class: "das-ai-senderopt" }, Zo = { class: "int-opt-box-text" }, Go = {
|
|
@@ -4234,29 +4066,17 @@ const Ao = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
|
|
|
4234
4066
|
const e = () => {
|
|
4235
4067
|
x.deepseek = !x.deepseek, gt();
|
|
4236
4068
|
};
|
|
4237
|
-
return (t, n) => (S(),
|
|
4238
|
-
g(
|
|
4239
|
-
"
|
|
4240
|
-
|
|
4241
|
-
|
|
4242
|
-
|
|
4243
|
-
|
|
4244
|
-
|
|
4245
|
-
|
|
4246
|
-
|
|
4247
|
-
|
|
4248
|
-
}, null, 8, ["iconColor"]),
|
|
4249
|
-
g(
|
|
4250
|
-
"span",
|
|
4251
|
-
Zo,
|
|
4252
|
-
V(A(T)("深度思考")),
|
|
4253
|
-
1
|
|
4254
|
-
/* TEXT */
|
|
4255
|
-
)
|
|
4256
|
-
],
|
|
4257
|
-
2
|
|
4258
|
-
/* CLASS */
|
|
4259
|
-
)
|
|
4069
|
+
return (t, n) => (S(), O("div", Uo, [
|
|
4070
|
+
g("div", {
|
|
4071
|
+
class: Ju(["int-opt-box", { actived: v(x).deepseek }]),
|
|
4072
|
+
onClick: e
|
|
4073
|
+
}, [
|
|
4074
|
+
j(v(f0), {
|
|
4075
|
+
size: "medium",
|
|
4076
|
+
iconColor: v(x).deepseek ? "#5582F3" : "#212121"
|
|
4077
|
+
}, null, 8, ["iconColor"]),
|
|
4078
|
+
g("span", Zo, V(v(I)("深度思考")), 1)
|
|
4079
|
+
], 2)
|
|
4260
4080
|
]));
|
|
4261
4081
|
}
|
|
4262
4082
|
}), Jo = /* @__PURE__ */ iu(Ko, [["__scopeId", "data-v-888bb15e"]]), Qo = { class: "das-ai-sender-container" }, Wo = { class: "das-ai-sender-content" }, Xo = { class: "das-ai-sender-box" }, Yo = { class: "das-ai-int-scoll-box" }, ui = { class: "das-ai-int-box" }, ei = ["placeholder", "disabled"], ti = { class: "das-ai-textarea-mask" }, ni = { class: "das-ai-int-opt-box" }, ri = { class: "int-opt-right" }, oi = {
|
|
@@ -4268,15 +4088,15 @@ const Ao = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
|
|
|
4268
4088
|
},
|
|
4269
4089
|
emits: ["senderEmit"],
|
|
4270
4090
|
setup(u, { emit: e }) {
|
|
4271
|
-
const t = u, n = e, r =
|
|
4091
|
+
const t = u, n = e, r = z(null), o = su(() => !x.senderValue), c = su(() => {
|
|
4272
4092
|
if (x.loading)
|
|
4273
|
-
return
|
|
4093
|
+
return I("回答中...");
|
|
4274
4094
|
if (t.isNew) {
|
|
4275
|
-
if (x.searchType == "0") return
|
|
4276
|
-
if (x.searchType == "1") return
|
|
4277
|
-
if (x.searchType == "2") return
|
|
4095
|
+
if (x.searchType == "0") return I("基于物联应用提问");
|
|
4096
|
+
if (x.searchType == "1") return I("基于知识库提问");
|
|
4097
|
+
if (x.searchType == "2") return I("基于全网提问");
|
|
4278
4098
|
} else
|
|
4279
|
-
return
|
|
4099
|
+
return I("继续提问");
|
|
4280
4100
|
}), i = () => {
|
|
4281
4101
|
var h;
|
|
4282
4102
|
(h = r.value) == null || h.focus();
|
|
@@ -4297,7 +4117,7 @@ const Ao = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
|
|
|
4297
4117
|
}, _ = () => {
|
|
4298
4118
|
n("senderEmit", "stopMsg");
|
|
4299
4119
|
};
|
|
4300
|
-
return (h, d) => (S(),
|
|
4120
|
+
return (h, d) => (S(), O("div", Qo, [
|
|
4301
4121
|
g("div", Wo, [
|
|
4302
4122
|
g("div", {
|
|
4303
4123
|
onClick: i,
|
|
@@ -4306,10 +4126,10 @@ const Ao = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
|
|
|
4306
4126
|
g("div", Xo, [
|
|
4307
4127
|
g("div", Yo, [
|
|
4308
4128
|
g("div", ui, [
|
|
4309
|
-
|
|
4129
|
+
Au(g("textarea", {
|
|
4310
4130
|
class: "das-ai-textarea",
|
|
4311
4131
|
onKeydown: Jt(f, ["enter"]),
|
|
4312
|
-
"onUpdate:modelValue": d[0] || (d[0] = (
|
|
4132
|
+
"onUpdate:modelValue": d[0] || (d[0] = (A) => v(x).senderValue = A),
|
|
4313
4133
|
placeholder: c.value,
|
|
4314
4134
|
rows: "8",
|
|
4315
4135
|
maxlength: "512",
|
|
@@ -4318,17 +4138,11 @@ const Ao = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
|
|
|
4318
4138
|
onFocus: l,
|
|
4319
4139
|
onInput: s,
|
|
4320
4140
|
onChange: a,
|
|
4321
|
-
disabled:
|
|
4141
|
+
disabled: v(x).loading
|
|
4322
4142
|
}, null, 40, ei), [
|
|
4323
|
-
[Qt,
|
|
4143
|
+
[Qt, v(x).senderValue]
|
|
4324
4144
|
]),
|
|
4325
|
-
g(
|
|
4326
|
-
"div",
|
|
4327
|
-
ti,
|
|
4328
|
-
V(A(x).senderValue),
|
|
4329
|
-
1
|
|
4330
|
-
/* TEXT */
|
|
4331
|
-
)
|
|
4145
|
+
g("div", ti, V(v(x).senderValue), 1)
|
|
4332
4146
|
])
|
|
4333
4147
|
]),
|
|
4334
4148
|
g("div", ni, [
|
|
@@ -4336,38 +4150,25 @@ const Ao = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
|
|
|
4336
4150
|
onClick: i,
|
|
4337
4151
|
class: "focus-mask-bottom"
|
|
4338
4152
|
}),
|
|
4339
|
-
|
|
4153
|
+
j(Jo),
|
|
4340
4154
|
g("div", ri, [
|
|
4341
|
-
|
|
4342
|
-
|
|
4343
|
-
|
|
4344
|
-
|
|
4345
|
-
|
|
4346
|
-
|
|
4347
|
-
|
|
4348
|
-
|
|
4349
|
-
|
|
4350
|
-
|
|
4351
|
-
|
|
4352
|
-
}, null, 8, ["iconColor"])
|
|
4353
|
-
],
|
|
4354
|
-
2
|
|
4355
|
-
/* CLASS */
|
|
4356
|
-
)),
|
|
4357
|
-
A(x).loading ? (S(), R("div", {
|
|
4155
|
+
v(x).loading ? $("", !0) : (S(), O("div", {
|
|
4156
|
+
key: 0,
|
|
4157
|
+
onClick: f,
|
|
4158
|
+
class: Ju(["int-opt-right-icon", { disabled: o.value }])
|
|
4159
|
+
}, [
|
|
4160
|
+
j(v(d0), {
|
|
4161
|
+
customSize: "12px",
|
|
4162
|
+
iconColor: o.value ? "#fafafa" : "#fff"
|
|
4163
|
+
}, null, 8, ["iconColor"])
|
|
4164
|
+
], 2)),
|
|
4165
|
+
v(x).loading ? (S(), O("div", {
|
|
4358
4166
|
key: 1,
|
|
4359
4167
|
onClick: Fe(_, ["stop"]),
|
|
4360
4168
|
class: "loading-btn"
|
|
4361
|
-
}, [
|
|
4362
|
-
|
|
4363
|
-
|
|
4364
|
-
"div",
|
|
4365
|
-
{ class: "loading-btn-con" },
|
|
4366
|
-
null,
|
|
4367
|
-
-1
|
|
4368
|
-
/* CACHED */
|
|
4369
|
-
))
|
|
4370
|
-
])) : z("v-if", !0)
|
|
4169
|
+
}, d[1] || (d[1] = [
|
|
4170
|
+
g("div", { class: "loading-btn-con" }, null, -1)
|
|
4171
|
+
]))) : $("", !0)
|
|
4371
4172
|
])
|
|
4372
4173
|
])
|
|
4373
4174
|
])
|
|
@@ -4386,33 +4187,27 @@ const Ao = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
|
|
|
4386
4187
|
const t = e, n = (r) => {
|
|
4387
4188
|
t("addNewEmit", r);
|
|
4388
4189
|
};
|
|
4389
|
-
return (r, o) => (S(),
|
|
4190
|
+
return (r, o) => (S(), O("div", ai, [
|
|
4390
4191
|
g("div", {
|
|
4391
4192
|
class: "add-box",
|
|
4392
4193
|
onClick: o[0] || (o[0] = (c) => n("addNew"))
|
|
4393
4194
|
}, [
|
|
4394
|
-
|
|
4195
|
+
j(v(p0), {
|
|
4395
4196
|
size: "medium",
|
|
4396
4197
|
iconColor: "#333333"
|
|
4397
4198
|
}),
|
|
4398
|
-
g(
|
|
4399
|
-
"span",
|
|
4400
|
-
si,
|
|
4401
|
-
V(A(T)("开启新对话")),
|
|
4402
|
-
1
|
|
4403
|
-
/* TEXT */
|
|
4404
|
-
)
|
|
4199
|
+
g("span", si, V(v(I)("开启新对话")), 1)
|
|
4405
4200
|
]),
|
|
4406
|
-
|
|
4201
|
+
v(x).showScrollBom ? (S(), O("div", {
|
|
4407
4202
|
key: 0,
|
|
4408
4203
|
class: "scroll-opt-box",
|
|
4409
4204
|
onClick: o[1] || (o[1] = (c) => n("scrollBom"))
|
|
4410
4205
|
}, [
|
|
4411
|
-
|
|
4206
|
+
j(v(h0), {
|
|
4412
4207
|
size: "large",
|
|
4413
4208
|
iconColor: "#333333"
|
|
4414
4209
|
})
|
|
4415
|
-
])) :
|
|
4210
|
+
])) : $("", !0)
|
|
4416
4211
|
]));
|
|
4417
4212
|
}
|
|
4418
4213
|
}), fi = /* @__PURE__ */ iu(di, [["__scopeId", "data-v-c94020e2"]]), hi = { class: "das-ai-prompt" }, pi = { class: "das-ai-prompt-title" }, bi = { class: "das-ai-prompt-tip" }, mi = {
|
|
@@ -4431,46 +4226,22 @@ const Ao = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
|
|
|
4431
4226
|
t("click", r);
|
|
4432
4227
|
};
|
|
4433
4228
|
return Ou(() => {
|
|
4434
|
-
}), (r, o) => (S(),
|
|
4435
|
-
g(
|
|
4436
|
-
|
|
4437
|
-
|
|
4438
|
-
|
|
4439
|
-
|
|
4440
|
-
|
|
4441
|
-
),
|
|
4442
|
-
g(
|
|
4443
|
-
"div",
|
|
4444
|
-
bi,
|
|
4445
|
-
V(A(T)("我可以帮你分析,写报告,调节设备,预订会议室,请把你的任务交给我吧~")),
|
|
4446
|
-
1
|
|
4447
|
-
/* TEXT */
|
|
4448
|
-
),
|
|
4449
|
-
r.list.length ? (S(), R(
|
|
4450
|
-
"div",
|
|
4451
|
-
mi,
|
|
4452
|
-
V(A(T)("你可以这样说")),
|
|
4453
|
-
1
|
|
4454
|
-
/* TEXT */
|
|
4455
|
-
)) : z("v-if", !0),
|
|
4456
|
-
(S(!0), R(
|
|
4457
|
-
Bu,
|
|
4458
|
-
null,
|
|
4459
|
-
Qu(r.list, (c) => (S(), R("div", {
|
|
4460
|
-
onClick: (i) => n(c),
|
|
4461
|
-
class: "das-ai-prompt-item"
|
|
4462
|
-
}, V(c.text), 9, xi))),
|
|
4463
|
-
256
|
|
4464
|
-
/* UNKEYED_FRAGMENT */
|
|
4465
|
-
))
|
|
4229
|
+
}), (r, o) => (S(), O("div", hi, [
|
|
4230
|
+
g("div", pi, V(v(I)("嗨!我是AI助手")), 1),
|
|
4231
|
+
g("div", bi, V(v(I)("我可以帮你分析,写报告,调节设备,预订会议室,请把你的任务交给我吧~")), 1),
|
|
4232
|
+
r.list.length ? (S(), O("div", mi, V(v(I)("你可以这样说")), 1)) : $("", !0),
|
|
4233
|
+
(S(!0), O(Bu, null, Qu(r.list, (c) => (S(), O("div", {
|
|
4234
|
+
onClick: (i) => n(c),
|
|
4235
|
+
class: "das-ai-prompt-item"
|
|
4236
|
+
}, V(c.text), 9, xi))), 256))
|
|
4466
4237
|
]));
|
|
4467
4238
|
}
|
|
4468
|
-
}), ki = /* @__PURE__ */ iu(gi, [["__scopeId", "data-v-2a2b79c7"]]), Zt = "v1", Fu = mt(`/api/llm/knowledge/${Zt}`),
|
|
4239
|
+
}), ki = /* @__PURE__ */ iu(gi, [["__scopeId", "data-v-2a2b79c7"]]), Zt = "v1", Fu = mt(`/api/llm/knowledge/${Zt}`), yi = mt(`/api/llm/vector/${Zt}`);
|
|
4469
4240
|
xt.get("token");
|
|
4470
4241
|
xt.post("putObject");
|
|
4471
|
-
const
|
|
4242
|
+
const Ai = yi.get("/large-model/general-question"), vi = Fu.post("/chat/stop"), Ci = Fu.post("/chat/save-knowledge"), Di = Fu.get("/chat"), Ei = Fu.get("/chat/chat-details"), Fi = Fu.delete("/chat/delete-by-user"), wi = Fu.delete("/chat"), Si = Fu.get("/chat/delete-by-query-id");
|
|
4472
4243
|
Ru.post("/file");
|
|
4473
|
-
const Na = Ru.post("/file/save-file"),
|
|
4244
|
+
const Na = Ru.post("/file/save-file"), Ti = Ru.get("/folder"), Ii = Ru.post("/folder/listAllByCondition");
|
|
4474
4245
|
Ru.post("/folder/lazy-tree");
|
|
4475
4246
|
Ru.post("/folder/tree-search");
|
|
4476
4247
|
const zi = { class: "das-ai-select-container" }, Ni = { class: "das-ai-select-text-box" }, Li = { class: "das-ai-select-text" }, Bi = { class: "das-ai-select-box" }, qi = {
|
|
@@ -4485,7 +4256,7 @@ const zi = { class: "das-ai-select-container" }, Ni = { class: "das-ai-select-te
|
|
|
4485
4256
|
},
|
|
4486
4257
|
emits: ["back"],
|
|
4487
4258
|
setup(u, { emit: e }) {
|
|
4488
|
-
const t =
|
|
4259
|
+
const t = z(!1), n = z(!1), r = z(!1), o = z({
|
|
4489
4260
|
modifiers: [
|
|
4490
4261
|
{
|
|
4491
4262
|
name: "offset",
|
|
@@ -4494,13 +4265,13 @@ const zi = { class: "das-ai-select-container" }, Ni = { class: "das-ai-select-te
|
|
|
4494
4265
|
}
|
|
4495
4266
|
}
|
|
4496
4267
|
]
|
|
4497
|
-
}), c =
|
|
4498
|
-
{ id: "1", name:
|
|
4499
|
-
{ id: "0", name:
|
|
4500
|
-
{ id: "2", name:
|
|
4501
|
-
]), i =
|
|
4268
|
+
}), c = z([
|
|
4269
|
+
{ id: "1", name: I("知识库"), desc: I("选择在某个知识库中搜索"), icon: "knowOpen" },
|
|
4270
|
+
{ id: "0", name: I("物联应用"), desc: I("在权限范围内的应用中搜索"), icon: "yingyong" },
|
|
4271
|
+
{ id: "2", name: I("全网"), desc: I("在整个大模型中搜索"), icon: "intnet" }
|
|
4272
|
+
]), i = z(!1), a = z([]), s = z(""), l = z(""), f = e, _ = () => {
|
|
4502
4273
|
f("back");
|
|
4503
|
-
}, h = su(() => c.value.find((E) => E.id === x.searchType)), d = su(() => x.searchType == "1" ?
|
|
4274
|
+
}, h = su(() => c.value.find((E) => E.id === x.searchType)), d = su(() => x.searchType == "1" ? I("基于知识库") : x.searchType == "0" ? I("基于物联应用") : x.searchType == "2" ? I("基于全网") : I("基于全部")), A = su(() => x.folderId && x.folderName ? x.folderName : I("选择在某个知识库中搜索")), y = (E) => {
|
|
4504
4275
|
}, C = (E) => {
|
|
4505
4276
|
r.value = !1;
|
|
4506
4277
|
}, k = (E) => {
|
|
@@ -4518,170 +4289,120 @@ const zi = { class: "das-ai-select-container" }, Ni = { class: "das-ai-select-te
|
|
|
4518
4289
|
// 是否排除内置文件夹 默认不排除
|
|
4519
4290
|
};
|
|
4520
4291
|
i.value = !0;
|
|
4521
|
-
const [
|
|
4522
|
-
if (i.value = !1,
|
|
4292
|
+
const [R, P] = await Ii(E).run();
|
|
4293
|
+
if (i.value = !1, R)
|
|
4523
4294
|
return;
|
|
4524
|
-
let K =
|
|
4295
|
+
let K = P;
|
|
4525
4296
|
K && K.length ? (K = [
|
|
4526
4297
|
{
|
|
4527
4298
|
disabled: !1,
|
|
4528
4299
|
authority: !0,
|
|
4529
4300
|
id: x.allKnowId,
|
|
4530
|
-
folderName:
|
|
4531
|
-
childFolderList:
|
|
4301
|
+
folderName: I("全部"),
|
|
4302
|
+
childFolderList: P,
|
|
4532
4303
|
folderPath: x.allKnowId,
|
|
4533
|
-
pathName:
|
|
4304
|
+
pathName: I("全部")
|
|
4534
4305
|
}
|
|
4535
4306
|
], K.forEach((du) => {
|
|
4536
|
-
|
|
4307
|
+
N(du);
|
|
4537
4308
|
})) : (l.value = "", x.folderId = "", x.folderName = ""), a.value = K;
|
|
4538
|
-
},
|
|
4539
|
-
E.disabled = !E.authority, E.path =
|
|
4540
|
-
|
|
4309
|
+
}, N = (E, R, P) => {
|
|
4310
|
+
E.disabled = !E.authority, E.path = R ? R + `/${E.id}` : E.id, E.pathName = P ? P + `/${E.folderName}` : E.folderName, x.folderId && x.folderId == E.id && !E.authority && (x.folderId = "", x.folderName = "", l.value = ""), E.childFolderList && E.childFolderList.length && E.childFolderList.forEach((K) => {
|
|
4311
|
+
N(K, E.path, E.pathName);
|
|
4541
4312
|
});
|
|
4542
4313
|
};
|
|
4543
|
-
return (E,
|
|
4544
|
-
|
|
4545
|
-
|
|
4546
|
-
|
|
4547
|
-
|
|
4548
|
-
|
|
4549
|
-
|
|
4550
|
-
|
|
4551
|
-
|
|
4552
|
-
}),
|
|
4553
|
-
g(
|
|
4554
|
-
"div",
|
|
4555
|
-
Li,
|
|
4556
|
-
V(d.value),
|
|
4557
|
-
1
|
|
4558
|
-
/* TEXT */
|
|
4559
|
-
)
|
|
4560
|
-
],
|
|
4561
|
-
512
|
|
4562
|
-
/* NEED_PATCH */
|
|
4563
|
-
), [
|
|
4314
|
+
return (E, R) => (S(), O("div", zi, [
|
|
4315
|
+
Au(g("div", Ni, [
|
|
4316
|
+
j(v(Se), {
|
|
4317
|
+
onClick: _,
|
|
4318
|
+
size: "large",
|
|
4319
|
+
iconColor: "#666666"
|
|
4320
|
+
}),
|
|
4321
|
+
g("div", Li, V(d.value), 1)
|
|
4322
|
+
], 512), [
|
|
4564
4323
|
[Hu, E.listLength]
|
|
4565
4324
|
]),
|
|
4566
|
-
|
|
4325
|
+
j(v(m0), {
|
|
4567
4326
|
popperClass: "das-ai-select-popover",
|
|
4568
4327
|
"popper-options": o.value,
|
|
4569
4328
|
"show-arrow": !1,
|
|
4570
4329
|
width: 428,
|
|
4571
4330
|
trigger: "click",
|
|
4572
4331
|
visible: n.value,
|
|
4573
|
-
"onUpdate:visible":
|
|
4332
|
+
"onUpdate:visible": R[2] || (R[2] = (P) => n.value = P),
|
|
4574
4333
|
disabled: t.value,
|
|
4575
|
-
onShow:
|
|
4334
|
+
onShow: y,
|
|
4576
4335
|
onHide: C
|
|
4577
4336
|
}, {
|
|
4578
4337
|
reference: J(() => [
|
|
4579
|
-
|
|
4580
|
-
"
|
|
4581
|
-
|
|
4582
|
-
|
|
4583
|
-
|
|
4584
|
-
|
|
4585
|
-
|
|
4586
|
-
|
|
4587
|
-
|
|
4588
|
-
|
|
4589
|
-
|
|
4590
|
-
|
|
4591
|
-
|
|
4592
|
-
key: 1,
|
|
4593
|
-
size: "mini",
|
|
4594
|
-
iconColor: "#666666"
|
|
4595
|
-
})) : z("v-if", !0),
|
|
4596
|
-
n.value ? z("v-if", !0) : (S(), X(A(ht), {
|
|
4597
|
-
key: 2,
|
|
4598
|
-
size: "mini",
|
|
4599
|
-
iconColor: "#666666"
|
|
4600
|
-
}))
|
|
4601
|
-
],
|
|
4602
|
-
512
|
|
4603
|
-
/* NEED_PATCH */
|
|
4604
|
-
), [
|
|
4338
|
+
Au(g("div", Bi, [
|
|
4339
|
+
h.value ? (S(), O("span", qi, V(h.value.name), 1)) : $("", !0),
|
|
4340
|
+
n.value ? (S(), X(v(pt), {
|
|
4341
|
+
key: 1,
|
|
4342
|
+
size: "mini",
|
|
4343
|
+
iconColor: "#666666"
|
|
4344
|
+
})) : $("", !0),
|
|
4345
|
+
n.value ? $("", !0) : (S(), X(v(ht), {
|
|
4346
|
+
key: 2,
|
|
4347
|
+
size: "mini",
|
|
4348
|
+
iconColor: "#666666"
|
|
4349
|
+
}))
|
|
4350
|
+
], 512), [
|
|
4605
4351
|
[Hu, !E.listLength]
|
|
4606
4352
|
])
|
|
4607
4353
|
]),
|
|
4608
4354
|
default: J(() => [
|
|
4609
|
-
|
|
4610
|
-
"div",
|
|
4611
|
-
|
|
4612
|
-
|
|
4613
|
-
|
|
4614
|
-
|
|
4615
|
-
|
|
4616
|
-
|
|
4617
|
-
|
|
4618
|
-
|
|
4619
|
-
},
|
|
4620
|
-
|
|
4621
|
-
|
|
4622
|
-
|
|
4623
|
-
|
|
4624
|
-
|
|
4625
|
-
|
|
4626
|
-
|
|
4627
|
-
|
|
4628
|
-
|
|
4629
|
-
|
|
4630
|
-
|
|
4631
|
-
|
|
4632
|
-
|
|
4633
|
-
|
|
4634
|
-
|
|
4635
|
-
|
|
4636
|
-
|
|
4637
|
-
Hi,
|
|
4638
|
-
V(j.id == 1 ? y.value : j.desc),
|
|
4639
|
-
1
|
|
4640
|
-
/* TEXT */
|
|
4641
|
-
)
|
|
4642
|
-
]),
|
|
4643
|
-
j.id == "1" ? (S(), R("div", {
|
|
4644
|
-
key: 0,
|
|
4645
|
-
onClick: Fe((K) => p(j), ["stop"]),
|
|
4646
|
-
class: "know-entry"
|
|
4647
|
-
}, [
|
|
4648
|
-
H(A(ft), {
|
|
4649
|
-
customSize: "18px",
|
|
4650
|
-
iconColor: "#666666"
|
|
4651
|
-
})
|
|
4652
|
-
], 8, $i)) : z("v-if", !0)
|
|
4653
|
-
], 10, Oi))),
|
|
4654
|
-
256
|
|
4655
|
-
/* UNKEYED_FRAGMENT */
|
|
4656
|
-
))
|
|
4657
|
-
],
|
|
4658
|
-
512
|
|
4659
|
-
/* NEED_PATCH */
|
|
4660
|
-
), [
|
|
4355
|
+
Au(g("div", Mi, [
|
|
4356
|
+
(S(!0), O(Bu, null, Qu(c.value, (P) => (S(), O("div", {
|
|
4357
|
+
onClick: (K) => b(P),
|
|
4358
|
+
class: Ju(["das-ai-type-item", { selected: v(x).searchType == P.id }])
|
|
4359
|
+
}, [
|
|
4360
|
+
g("div", Ri, [
|
|
4361
|
+
v(x).searchType == P.id ? (S(), X(v(b0), {
|
|
4362
|
+
key: 0,
|
|
4363
|
+
customSize: "18px",
|
|
4364
|
+
iconColor: "#FFFFFF"
|
|
4365
|
+
})) : $("", !0)
|
|
4366
|
+
]),
|
|
4367
|
+
g("div", Pi, [
|
|
4368
|
+
g("div", ji, V(P.name), 1),
|
|
4369
|
+
g("div", Hi, V(P.id == 1 ? A.value : P.desc), 1)
|
|
4370
|
+
]),
|
|
4371
|
+
P.id == "1" ? (S(), O("div", {
|
|
4372
|
+
key: 0,
|
|
4373
|
+
onClick: Fe((K) => p(P), ["stop"]),
|
|
4374
|
+
class: "know-entry"
|
|
4375
|
+
}, [
|
|
4376
|
+
j(v(ft), {
|
|
4377
|
+
customSize: "18px",
|
|
4378
|
+
iconColor: "#666666"
|
|
4379
|
+
})
|
|
4380
|
+
], 8, $i)) : $("", !0)
|
|
4381
|
+
], 10, Oi))), 256))
|
|
4382
|
+
], 512), [
|
|
4661
4383
|
[Hu, !r.value]
|
|
4662
4384
|
]),
|
|
4663
|
-
|
|
4664
|
-
|
|
4385
|
+
Au((S(), O("div", Vi, [
|
|
4386
|
+
j(v(x0), {
|
|
4665
4387
|
ref: "folderTreeRef",
|
|
4666
4388
|
data: a.value,
|
|
4667
4389
|
isFilter: "",
|
|
4668
4390
|
"node-key": "id",
|
|
4669
4391
|
isEllipsis: "",
|
|
4670
4392
|
props: { label: "folderName", children: "childFolderList" },
|
|
4671
|
-
inputOptions: { placeholder:
|
|
4393
|
+
inputOptions: { placeholder: v(I)("搜索文件夹名称") },
|
|
4672
4394
|
modelValue: l.value,
|
|
4673
|
-
"onUpdate:modelValue":
|
|
4395
|
+
"onUpdate:modelValue": R[0] || (R[0] = (P) => l.value = P),
|
|
4674
4396
|
"filter-value": s.value,
|
|
4675
|
-
"onUpdate:filterValue":
|
|
4397
|
+
"onUpdate:filterValue": R[1] || (R[1] = (P) => s.value = P),
|
|
4676
4398
|
onNodeClick: k
|
|
4677
4399
|
}, null, 8, ["data", "inputOptions", "modelValue", "filter-value"])
|
|
4678
4400
|
])), [
|
|
4679
|
-
[
|
|
4401
|
+
[v(bt), i.value],
|
|
4680
4402
|
[Hu, r.value]
|
|
4681
4403
|
])
|
|
4682
4404
|
]),
|
|
4683
4405
|
_: 1
|
|
4684
|
-
/* STABLE */
|
|
4685
4406
|
}, 8, ["popper-options", "visible", "disabled"])
|
|
4686
4407
|
]));
|
|
4687
4408
|
}
|
|
@@ -4698,8 +4419,8 @@ const zi = { class: "das-ai-select-container" }, Ni = { class: "das-ai-select-te
|
|
|
4698
4419
|
emits: ["back", "preview", "toApp"],
|
|
4699
4420
|
setup(u, { emit: e }) {
|
|
4700
4421
|
const t = e;
|
|
4701
|
-
|
|
4702
|
-
const n =
|
|
4422
|
+
z();
|
|
4423
|
+
const n = z(-1), r = z([]), o = () => {
|
|
4703
4424
|
t("back");
|
|
4704
4425
|
};
|
|
4705
4426
|
Ou(() => {
|
|
@@ -4714,75 +4435,42 @@ const zi = { class: "das-ai-select-container" }, Ni = { class: "das-ai-select-te
|
|
|
4714
4435
|
}
|
|
4715
4436
|
c(a.url) ? t("preview", a.url) : window.open(a.url, "_blank");
|
|
4716
4437
|
};
|
|
4717
|
-
return (a, s) => (S(),
|
|
4438
|
+
return (a, s) => (S(), O("div", Ki, [
|
|
4718
4439
|
g("div", Ji, [
|
|
4719
|
-
|
|
4440
|
+
j(v(Se), {
|
|
4720
4441
|
onClick: o,
|
|
4721
4442
|
size: "large",
|
|
4722
4443
|
iconColor: "#666666"
|
|
4723
4444
|
}),
|
|
4724
|
-
g(
|
|
4725
|
-
"span",
|
|
4726
|
-
Qi,
|
|
4727
|
-
V(A(T)("参考内容(共$0条)", a.item.file.length)),
|
|
4728
|
-
1
|
|
4729
|
-
/* TEXT */
|
|
4730
|
-
)
|
|
4445
|
+
g("span", Qi, V(v(I)("参考内容(共$0条)", a.item.file.length)), 1)
|
|
4731
4446
|
]),
|
|
4732
4447
|
g("div", Wi, [
|
|
4733
|
-
|
|
4448
|
+
j(v(we), null, {
|
|
4734
4449
|
default: J(() => [
|
|
4735
4450
|
g("div", Xi, [
|
|
4736
|
-
(S(!0),
|
|
4737
|
-
|
|
4738
|
-
|
|
4739
|
-
|
|
4740
|
-
|
|
4741
|
-
|
|
4742
|
-
|
|
4743
|
-
|
|
4744
|
-
|
|
4745
|
-
|
|
4746
|
-
|
|
4747
|
-
|
|
4748
|
-
|
|
4749
|
-
|
|
4750
|
-
/* TEXT */
|
|
4751
|
-
),
|
|
4752
|
-
H(A(_0), {
|
|
4753
|
-
size: "mini",
|
|
4754
|
-
iconColor: "inherit"
|
|
4755
|
-
}),
|
|
4756
|
-
g(
|
|
4757
|
-
"span",
|
|
4758
|
-
tc,
|
|
4759
|
-
V(l.name),
|
|
4760
|
-
1
|
|
4761
|
-
/* TEXT */
|
|
4762
|
-
)
|
|
4763
|
-
]),
|
|
4764
|
-
z(" v-das-tooltip "),
|
|
4765
|
-
g(
|
|
4766
|
-
"div",
|
|
4767
|
-
nc,
|
|
4768
|
-
V(l.summary),
|
|
4769
|
-
1
|
|
4770
|
-
/* TEXT */
|
|
4771
|
-
)
|
|
4772
|
-
], 10, Yi))),
|
|
4773
|
-
256
|
|
4774
|
-
/* UNKEYED_FRAGMENT */
|
|
4775
|
-
))
|
|
4451
|
+
(S(!0), O(Bu, null, Qu(a.item.file, (l, f) => (S(), O("div", {
|
|
4452
|
+
onClick: (_) => i(l, f),
|
|
4453
|
+
class: Ju(["reference-file-item", { current: n.value == f, selected: r.value.includes(f) }])
|
|
4454
|
+
}, [
|
|
4455
|
+
g("div", uc, [
|
|
4456
|
+
g("span", ec, V(f + 1) + ".", 1),
|
|
4457
|
+
j(v(_0), {
|
|
4458
|
+
size: "mini",
|
|
4459
|
+
iconColor: "inherit"
|
|
4460
|
+
}),
|
|
4461
|
+
g("span", tc, V(l.name), 1)
|
|
4462
|
+
]),
|
|
4463
|
+
g("div", nc, V(l.summary), 1)
|
|
4464
|
+
], 10, Yi))), 256))
|
|
4776
4465
|
])
|
|
4777
4466
|
]),
|
|
4778
4467
|
_: 1
|
|
4779
|
-
/* STABLE */
|
|
4780
4468
|
})
|
|
4781
4469
|
])
|
|
4782
4470
|
]));
|
|
4783
4471
|
}
|
|
4784
|
-
}), ic = /* @__PURE__ */ iu(oc, [["__scopeId", "data-v-2c238a27"]]), cc = ot(() => import("./index-
|
|
4785
|
-
const u =
|
|
4472
|
+
}), ic = /* @__PURE__ */ iu(oc, [["__scopeId", "data-v-2c238a27"]]), cc = ot(() => import("./index-7IxWMQwA.js")), ac = () => {
|
|
4473
|
+
const u = z(null), e = z(!1);
|
|
4786
4474
|
let t = "", n = "";
|
|
4787
4475
|
return {
|
|
4788
4476
|
deletaDialogVue: () => it(cc, {
|
|
@@ -4799,7 +4487,7 @@ const zi = { class: "das-ai-select-container" }, Ni = { class: "das-ai-select-te
|
|
|
4799
4487
|
}),
|
|
4800
4488
|
showDeleteDialog: async (c) => {
|
|
4801
4489
|
var i;
|
|
4802
|
-
return t = c ||
|
|
4490
|
+
return t = c || I("删除后将无法恢复"), (i = u.value) == null || i.open(t), e.value = !0, new Promise((a, s) => {
|
|
4803
4491
|
const l = bu(() => e.value, (f) => {
|
|
4804
4492
|
n ? a(n) : s(n), l();
|
|
4805
4493
|
});
|
|
@@ -4815,14 +4503,14 @@ const zi = { class: "das-ai-select-container" }, Ni = { class: "das-ai-select-te
|
|
|
4815
4503
|
class: "history-dialogue-scroll"
|
|
4816
4504
|
}, bc = ["onClick"], mc = { class: "item-title" }, xc = { class: "item-bottom" }, _c = { class: "item-bottom-left" }, gc = { class: "item-type" }, kc = {
|
|
4817
4505
|
name: "history"
|
|
4818
|
-
},
|
|
4506
|
+
}, yc = /* @__PURE__ */ ou({
|
|
4819
4507
|
...kc,
|
|
4820
4508
|
props: {
|
|
4821
4509
|
chatId: { default: "" }
|
|
4822
4510
|
},
|
|
4823
4511
|
emits: ["back", "record"],
|
|
4824
4512
|
setup(u, { emit: e }) {
|
|
4825
|
-
const t =
|
|
4513
|
+
const t = z(!1), { deletaDialogVue: n, showDeleteDialog: r } = ac(), o = z([]), c = e, i = () => {
|
|
4826
4514
|
c("back");
|
|
4827
4515
|
}, a = (k) => {
|
|
4828
4516
|
let p = k.replace(/^(#+)\s/gm, "");
|
|
@@ -4830,7 +4518,7 @@ const zi = { class: "das-ai-select-container" }, Ni = { class: "das-ai-select-te
|
|
|
4830
4518
|
}, s = (k) => {
|
|
4831
4519
|
const p = document.querySelector("#history-dialogue-scrollbox .das-ai-wrap-class");
|
|
4832
4520
|
p.scrollHeight - p.clientHeight - k.scrollTop <= 20 && !t.value && l.value < f.value && (l.value = l.value + 1, h());
|
|
4833
|
-
}, l =
|
|
4521
|
+
}, l = z(1), f = z(1), _ = z(20), h = async () => {
|
|
4834
4522
|
t.value = !0;
|
|
4835
4523
|
const k = {
|
|
4836
4524
|
pageIndex: l.value,
|
|
@@ -4839,10 +4527,10 @@ const zi = { class: "das-ai-select-container" }, Ni = { class: "das-ai-select-te
|
|
|
4839
4527
|
t.value = !1, !p && (b.data && b.data.length && b.data.forEach((m) => {
|
|
4840
4528
|
m.time = m.createdAt ? dt(m.createdAt).format("YYYY-MM-DD HH:mm:ss") : "", m.answerText = m.answer ? a(m.answer) : "";
|
|
4841
4529
|
}), l.value == 1 ? o.value = b.data : o.value = o.value.concat(b.data), f.value = b.totalPage);
|
|
4842
|
-
}, d = (k) => k.searchType == 0 ?
|
|
4530
|
+
}, d = (k) => k.searchType == 0 ? I("物联应用") : k.searchType == 1 ? I("知识库") : k.searchType == 2 ? I("全网") : I("全部"), A = async (k) => {
|
|
4843
4531
|
c("record", k);
|
|
4844
|
-
},
|
|
4845
|
-
await r(
|
|
4532
|
+
}, y = async (k) => {
|
|
4533
|
+
await r(I("删除后,该会话将不可恢复,")), k.id, t.value = !0;
|
|
4846
4534
|
const [p, b] = await wi({ id: k.id }).run();
|
|
4847
4535
|
if (p) {
|
|
4848
4536
|
t.value = !1;
|
|
@@ -4851,7 +4539,7 @@ const zi = { class: "das-ai-select-container" }, Ni = { class: "das-ai-select-te
|
|
|
4851
4539
|
h();
|
|
4852
4540
|
}, C = async (k) => {
|
|
4853
4541
|
if (!o.value.length) return;
|
|
4854
|
-
await r(
|
|
4542
|
+
await r(I("清空后,所有历史将无法找回,")), t.value = !0;
|
|
4855
4543
|
const [p, b] = await Fi().run();
|
|
4856
4544
|
if (p) {
|
|
4857
4545
|
t.value = !1;
|
|
@@ -4861,139 +4549,85 @@ const zi = { class: "das-ai-select-container" }, Ni = { class: "das-ai-select-te
|
|
|
4861
4549
|
};
|
|
4862
4550
|
return Ou(() => {
|
|
4863
4551
|
h();
|
|
4864
|
-
}), (k, p) =>
|
|
4552
|
+
}), (k, p) => Au((S(), O("div", sc, [
|
|
4865
4553
|
g("div", lc, [
|
|
4866
4554
|
g("div", dc, [
|
|
4867
|
-
|
|
4555
|
+
j(v(Se), {
|
|
4868
4556
|
onClick: i,
|
|
4869
4557
|
size: "large",
|
|
4870
4558
|
iconColor: "#666666"
|
|
4871
4559
|
}),
|
|
4872
|
-
g(
|
|
4873
|
-
"span",
|
|
4874
|
-
fc,
|
|
4875
|
-
V(A(T)("历史会话")),
|
|
4876
|
-
1
|
|
4877
|
-
/* TEXT */
|
|
4878
|
-
)
|
|
4560
|
+
g("span", fc, V(v(I)("历史会话")), 1)
|
|
4879
4561
|
]),
|
|
4880
|
-
|
|
4562
|
+
j(v(Cu), {
|
|
4881
4563
|
placement: "top",
|
|
4882
4564
|
type: "button"
|
|
4883
4565
|
}, {
|
|
4884
4566
|
content: J(() => [
|
|
4885
|
-
g(
|
|
4886
|
-
"div",
|
|
4887
|
-
null,
|
|
4888
|
-
V(A(T)("清空")),
|
|
4889
|
-
1
|
|
4890
|
-
/* TEXT */
|
|
4891
|
-
)
|
|
4567
|
+
g("div", null, V(v(I)("清空")), 1)
|
|
4892
4568
|
]),
|
|
4893
4569
|
default: J(() => [
|
|
4894
|
-
|
|
4570
|
+
j(v(g0), {
|
|
4895
4571
|
onClick: C,
|
|
4896
4572
|
size: "large",
|
|
4897
4573
|
iconColor: "#666666"
|
|
4898
4574
|
})
|
|
4899
4575
|
]),
|
|
4900
4576
|
_: 1
|
|
4901
|
-
/* STABLE */
|
|
4902
4577
|
})
|
|
4903
4578
|
]),
|
|
4904
4579
|
g("div", hc, [
|
|
4905
|
-
|
|
4580
|
+
j(v(we), {
|
|
4906
4581
|
"wrap-class": "das-ai-wrap-class",
|
|
4907
4582
|
onScroll: s
|
|
4908
4583
|
}, {
|
|
4909
4584
|
default: J(() => [
|
|
4910
|
-
o.value.length ? (S(),
|
|
4911
|
-
(S(!0),
|
|
4912
|
-
|
|
4913
|
-
|
|
4914
|
-
|
|
4915
|
-
|
|
4916
|
-
|
|
4917
|
-
|
|
4918
|
-
|
|
4919
|
-
|
|
4920
|
-
|
|
4921
|
-
|
|
4922
|
-
|
|
4923
|
-
|
|
4924
|
-
|
|
4925
|
-
|
|
4926
|
-
|
|
4927
|
-
|
|
4928
|
-
|
|
4929
|
-
|
|
4930
|
-
|
|
4931
|
-
|
|
4932
|
-
|
|
4933
|
-
}, null, 8, ["text"]),
|
|
4934
|
-
g("div", xc, [
|
|
4935
|
-
g("div", _c, [
|
|
4936
|
-
g(
|
|
4937
|
-
"div",
|
|
4938
|
-
gc,
|
|
4939
|
-
V(d(b)),
|
|
4940
|
-
1
|
|
4941
|
-
/* TEXT */
|
|
4942
|
-
),
|
|
4943
|
-
g(
|
|
4944
|
-
"span",
|
|
4945
|
-
null,
|
|
4946
|
-
V(b.time),
|
|
4947
|
-
1
|
|
4948
|
-
/* TEXT */
|
|
4949
|
-
)
|
|
4585
|
+
o.value.length ? (S(), O("div", pc, [
|
|
4586
|
+
(S(!0), O(Bu, null, Qu(o.value, (b, m) => (S(), O("div", {
|
|
4587
|
+
class: "history-dialogue-item",
|
|
4588
|
+
onClick: (N) => A(b)
|
|
4589
|
+
}, [
|
|
4590
|
+
g("div", mc, V(b.title), 1),
|
|
4591
|
+
j(v(Cu), {
|
|
4592
|
+
placement: "top-start",
|
|
4593
|
+
disabled: !0,
|
|
4594
|
+
text: b.answerText,
|
|
4595
|
+
row: "2"
|
|
4596
|
+
}, null, 8, ["text"]),
|
|
4597
|
+
g("div", xc, [
|
|
4598
|
+
g("div", _c, [
|
|
4599
|
+
g("div", gc, V(d(b)), 1),
|
|
4600
|
+
g("span", null, V(b.time), 1)
|
|
4601
|
+
]),
|
|
4602
|
+
j(v(Cu), {
|
|
4603
|
+
placement: "top",
|
|
4604
|
+
type: "button"
|
|
4605
|
+
}, {
|
|
4606
|
+
content: J(() => [
|
|
4607
|
+
g("div", null, V(v(I)("删除")), 1)
|
|
4950
4608
|
]),
|
|
4951
|
-
|
|
4952
|
-
|
|
4953
|
-
|
|
4954
|
-
|
|
4955
|
-
|
|
4956
|
-
},
|
|
4957
|
-
|
|
4958
|
-
|
|
4959
|
-
|
|
4960
|
-
|
|
4961
|
-
|
|
4962
|
-
|
|
4963
|
-
1
|
|
4964
|
-
/* TEXT */
|
|
4965
|
-
)
|
|
4966
|
-
]),
|
|
4967
|
-
default: J(() => [
|
|
4968
|
-
H(A(k0), {
|
|
4969
|
-
onClick: Fe((L) => v(b), ["stop"]),
|
|
4970
|
-
size: "medium",
|
|
4971
|
-
iconColor: "#666666"
|
|
4972
|
-
}, null, 8, ["onClick"])
|
|
4973
|
-
]),
|
|
4974
|
-
_: 2
|
|
4975
|
-
/* DYNAMIC */
|
|
4976
|
-
},
|
|
4977
|
-
1024
|
|
4978
|
-
/* DYNAMIC_SLOTS */
|
|
4979
|
-
)
|
|
4980
|
-
])
|
|
4981
|
-
], 8, bc))),
|
|
4982
|
-
256
|
|
4983
|
-
/* UNKEYED_FRAGMENT */
|
|
4984
|
-
))
|
|
4985
|
-
])) : (S(), X(A(v0), { key: 0 }))
|
|
4609
|
+
default: J(() => [
|
|
4610
|
+
j(v(k0), {
|
|
4611
|
+
onClick: Fe((N) => y(b), ["stop"]),
|
|
4612
|
+
size: "medium",
|
|
4613
|
+
iconColor: "#666666"
|
|
4614
|
+
}, null, 8, ["onClick"])
|
|
4615
|
+
]),
|
|
4616
|
+
_: 2
|
|
4617
|
+
}, 1024)
|
|
4618
|
+
])
|
|
4619
|
+
], 8, bc))), 256))
|
|
4620
|
+
])) : (S(), X(v(y0), { key: 0 }))
|
|
4986
4621
|
]),
|
|
4987
4622
|
_: 1
|
|
4988
|
-
/* STABLE */
|
|
4989
4623
|
})
|
|
4990
4624
|
]),
|
|
4991
|
-
|
|
4625
|
+
j(v(n))
|
|
4992
4626
|
])), [
|
|
4993
|
-
[
|
|
4627
|
+
[v(bt), t.value]
|
|
4994
4628
|
]);
|
|
4995
4629
|
}
|
|
4996
|
-
}),
|
|
4630
|
+
}), Ac = /* @__PURE__ */ iu(yc, [["__scopeId", "data-v-4c2d27ea"]]);
|
|
4997
4631
|
/*! js-cookie v3.0.5 | MIT */
|
|
4998
4632
|
function ne(u) {
|
|
4999
4633
|
for (var e = 1; e < arguments.length; e++) {
|
|
@@ -5003,7 +4637,7 @@ function ne(u) {
|
|
|
5003
4637
|
}
|
|
5004
4638
|
return u;
|
|
5005
4639
|
}
|
|
5006
|
-
var
|
|
4640
|
+
var vc = {
|
|
5007
4641
|
read: function(u) {
|
|
5008
4642
|
return u[0] === '"' && (u = u.slice(1, -1)), u.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
|
|
5009
4643
|
},
|
|
@@ -5064,10 +4698,10 @@ function Ee(u, e) {
|
|
|
5064
4698
|
}
|
|
5065
4699
|
);
|
|
5066
4700
|
}
|
|
5067
|
-
var Cc = Ee(
|
|
4701
|
+
var Cc = Ee(vc, { path: "/" });
|
|
5068
4702
|
const Dc = () => {
|
|
5069
4703
|
let u = 0, e = -1, t = [], n = "", r = -1, o = !1, c = "", i = "";
|
|
5070
|
-
const a =
|
|
4704
|
+
const a = z(!1), s = z(), l = z(!1), f = z(""), _ = () => {
|
|
5071
4705
|
const C = re() ? re() : Cc.get("accessToken"), k = lt().id, p = {};
|
|
5072
4706
|
return C && (p.token = C), k && (p.project = k), p;
|
|
5073
4707
|
}, h = (C = 0, k, p) => {
|
|
@@ -5075,7 +4709,7 @@ const Dc = () => {
|
|
|
5075
4709
|
i.send(JSON.stringify({ text: p, taskId: c, taskType: C, overFlag: !n.loading, ..._() }));
|
|
5076
4710
|
return;
|
|
5077
4711
|
}
|
|
5078
|
-
n.audioStatus = "generated", i = new
|
|
4712
|
+
n.audioStatus = "generated", i = new A0({
|
|
5079
4713
|
url: "/socket/api/speech/v1/tts",
|
|
5080
4714
|
reconnectWhenClose: !0,
|
|
5081
4715
|
opened: () => {
|
|
@@ -5084,7 +4718,7 @@ const Dc = () => {
|
|
|
5084
4718
|
message: async (b) => {
|
|
5085
4719
|
if ((b == null ? void 0 : b.taskId) == c) {
|
|
5086
4720
|
if (!(b != null && b.baseData)) return;
|
|
5087
|
-
b != null && b.baseData && t.push(b == null ? void 0 : b.baseData), r == 1 && (o = b.overFlag), e < 0 && (r == 0 && (u = b.totalCount, e = 0, n.audioStatus = "loading", f.value = `data:audio/mpeg;base64,${b == null ? void 0 : b.baseData}`, l.value = !0,
|
|
4721
|
+
b != null && b.baseData && t.push(b == null ? void 0 : b.baseData), r == 1 && (o = b.overFlag), e < 0 && (r == 0 && (u = b.totalCount, e = 0, n.audioStatus = "loading", f.value = `data:audio/mpeg;base64,${b == null ? void 0 : b.baseData}`, l.value = !0, y()), r == 1 && x.autoAudio && (e = 0, n.audioStatus = "loading", f.value = `data:audio/mpeg;base64,${b == null ? void 0 : b.baseData}`, l.value = !0, n.havePlayAutoAudio = !0, y())), a.value && (a.value = !1);
|
|
5088
4722
|
}
|
|
5089
4723
|
},
|
|
5090
4724
|
error: (b) => {
|
|
@@ -5096,7 +4730,7 @@ const Dc = () => {
|
|
|
5096
4730
|
}, d = () => {
|
|
5097
4731
|
var C;
|
|
5098
4732
|
r = -1, e = -1, u = 0, o = !1, t = [], i && i.disconnect(), i = "", (C = s.value) == null || C.pause(), f.value = "", a.value = !1, l.value = !1, n && (n.audioStatus = "normal", n = "");
|
|
5099
|
-
},
|
|
4733
|
+
}, A = () => {
|
|
5100
4734
|
if (r == 0) {
|
|
5101
4735
|
const C = e + 1;
|
|
5102
4736
|
if (C < u)
|
|
@@ -5105,7 +4739,7 @@ const Dc = () => {
|
|
|
5105
4739
|
return;
|
|
5106
4740
|
} else {
|
|
5107
4741
|
a.value = !0, bu(a, (k) => {
|
|
5108
|
-
|
|
4742
|
+
A();
|
|
5109
4743
|
});
|
|
5110
4744
|
return;
|
|
5111
4745
|
}
|
|
@@ -5124,16 +4758,16 @@ const Dc = () => {
|
|
|
5124
4758
|
return;
|
|
5125
4759
|
} else {
|
|
5126
4760
|
a.value = !0, bu(a, (k) => {
|
|
5127
|
-
|
|
4761
|
+
A();
|
|
5128
4762
|
});
|
|
5129
4763
|
return;
|
|
5130
4764
|
}
|
|
5131
4765
|
}
|
|
5132
4766
|
d();
|
|
5133
4767
|
}
|
|
5134
|
-
},
|
|
4768
|
+
}, y = () => {
|
|
5135
4769
|
s.value.onended = function() {
|
|
5136
|
-
|
|
4770
|
+
A();
|
|
5137
4771
|
};
|
|
5138
4772
|
};
|
|
5139
4773
|
return {
|
|
@@ -5146,7 +4780,7 @@ const Dc = () => {
|
|
|
5146
4780
|
}, Ec = { class: "das-ai-container" }, Fc = {
|
|
5147
4781
|
key: 0,
|
|
5148
4782
|
class: "das-ai-index-mask"
|
|
5149
|
-
}, wc = { class: "ai-top" }, Sc = { class: "ai-top-left" },
|
|
4783
|
+
}, wc = { class: "ai-top" }, Sc = { class: "ai-top-left" }, Tc = { class: "ai-top-right" }, Ic = {
|
|
5150
4784
|
key: 1,
|
|
5151
4785
|
class: "das-ai-current-box",
|
|
5152
4786
|
id: "das-ai-chat-scrollbox"
|
|
@@ -5157,28 +4791,28 @@ const Dc = () => {
|
|
|
5157
4791
|
__name: "index",
|
|
5158
4792
|
emits: ["toApp"],
|
|
5159
4793
|
setup(u, { expose: e, emit: t }) {
|
|
5160
|
-
const n = t, r =
|
|
5161
|
-
{ id: "1", text:
|
|
5162
|
-
{ id: "2", text:
|
|
5163
|
-
{ id: "3", text:
|
|
5164
|
-
]), h =
|
|
5165
|
-
let
|
|
4794
|
+
const n = t, r = z(0), o = z(0), c = z(""), i = z(), a = z(""), s = z(null), l = z(!1), f = z(null), _ = z([
|
|
4795
|
+
{ id: "1", text: I("介绍达实公司及核心产品") },
|
|
4796
|
+
{ id: "2", text: I("介绍达实公司行业案例") },
|
|
4797
|
+
{ id: "3", text: I("预订上午9:00的会议室") }
|
|
4798
|
+
]), h = z({}), d = z([]), A = z(["A100", "A002", "A003", "A005"]), y = z(!1), C = z(!1), { folderDialogVue: k, showFolderDialog: p } = D0(), { aiAudioRef: b, isAudioplay: m, audioSrc: N, playAudio: E, pauseAudio: R } = Dc();
|
|
4799
|
+
let P = 0;
|
|
5166
4800
|
Ou(() => {
|
|
5167
4801
|
gt(!0), Vu(), du();
|
|
5168
4802
|
}), at(() => {
|
|
5169
|
-
pe(),
|
|
4803
|
+
pe(), R();
|
|
5170
4804
|
});
|
|
5171
4805
|
const K = () => {
|
|
5172
|
-
|
|
4806
|
+
R();
|
|
5173
4807
|
};
|
|
5174
4808
|
bu(
|
|
5175
4809
|
() => x.loading,
|
|
5176
|
-
(
|
|
4810
|
+
(T) => {
|
|
5177
4811
|
s.value && (s.value.loading = x.loading);
|
|
5178
4812
|
}
|
|
5179
4813
|
), bu(
|
|
5180
4814
|
() => x.searchType,
|
|
5181
|
-
(
|
|
4815
|
+
(T) => {
|
|
5182
4816
|
du();
|
|
5183
4817
|
}
|
|
5184
4818
|
);
|
|
@@ -5188,16 +4822,16 @@ const Dc = () => {
|
|
|
5188
4822
|
_.value = h[`${x.searchType}`];
|
|
5189
4823
|
return;
|
|
5190
4824
|
}
|
|
5191
|
-
const [
|
|
5192
|
-
|
|
4825
|
+
const [T, D] = await Ai({ type: x.searchType }, { ignoreErrorMessage: !0 }).run();
|
|
4826
|
+
T || D && (h[`${x.searchType}`] = D.map((G) => ({
|
|
5193
4827
|
id: $u(),
|
|
5194
4828
|
text: G
|
|
5195
4829
|
})), _.value = h[`${x.searchType}`]);
|
|
5196
4830
|
}, _u = () => {
|
|
5197
|
-
|
|
4831
|
+
Ae(() => {
|
|
5198
4832
|
if (C.value) return;
|
|
5199
|
-
const
|
|
5200
|
-
|
|
4833
|
+
const T = document.querySelector("#das-ai-chat-scrollbox .das-ai-wrap-class");
|
|
4834
|
+
T && (y.value = !0, T.scrollTop = T.scrollHeight, r.value = T.scrollHeight - T.clientHeight);
|
|
5201
4835
|
});
|
|
5202
4836
|
};
|
|
5203
4837
|
let gu = "";
|
|
@@ -5205,12 +4839,12 @@ const Dc = () => {
|
|
|
5205
4839
|
gu && clearTimeout(gu), gu = setTimeout(() => {
|
|
5206
4840
|
C.value = !1;
|
|
5207
4841
|
}, 2e3);
|
|
5208
|
-
}, fu = (
|
|
4842
|
+
}, fu = (T) => {
|
|
5209
4843
|
if (r.value <= 0) {
|
|
5210
4844
|
const D = document.querySelector("#das-ai-chat-scrollbox .das-ai-wrap-class");
|
|
5211
4845
|
r.value = D.scrollHeight - D.clientHeight;
|
|
5212
4846
|
}
|
|
5213
|
-
x.showScrollBom = r.value -
|
|
4847
|
+
x.showScrollBom = r.value - T.scrollTop > 50, y.value || (C.value = !0, wu()), y.value = !1;
|
|
5214
4848
|
}, Su = () => ({
|
|
5215
4849
|
id: $u(),
|
|
5216
4850
|
role: "user",
|
|
@@ -5231,15 +4865,15 @@ const Dc = () => {
|
|
|
5231
4865
|
thinkTime: 0,
|
|
5232
4866
|
file: [],
|
|
5233
4867
|
urls: []
|
|
5234
|
-
}),
|
|
4868
|
+
}), Tu = async (T) => {
|
|
5235
4869
|
a.value = "", l.value = !0;
|
|
5236
|
-
const [D, G] = await Ei({ chatId:
|
|
4870
|
+
const [D, G] = await Ei({ chatId: T.id }).run();
|
|
5237
4871
|
if (!D)
|
|
5238
4872
|
if (G) {
|
|
5239
4873
|
const Y = [];
|
|
5240
|
-
let
|
|
4874
|
+
let M = "", cu = "", au = "";
|
|
5241
4875
|
G && !G.status && G.forEach((U) => {
|
|
5242
|
-
|
|
4876
|
+
M || (M = U.chat_id), cu || (cu = U.searchType), au || (au = U.fold_id), U.fromType == 0 && Y.push({
|
|
5243
4877
|
...Su(),
|
|
5244
4878
|
content: U.content
|
|
5245
4879
|
}), U.fromType == 1 && (U.files || (U.files = []), U.urls || (U.urls = []), U.urls.length && (U.urls = U.urls.map((zu) => ({
|
|
@@ -5256,27 +4890,27 @@ const Dc = () => {
|
|
|
5256
4890
|
saved: U.knowledge_type == "1",
|
|
5257
4891
|
queryId: U.QueryId,
|
|
5258
4892
|
intention: U.intention,
|
|
5259
|
-
showSave: !
|
|
4893
|
+
showSave: !A.value.includes(U.intention)
|
|
5260
4894
|
}));
|
|
5261
|
-
}),
|
|
4895
|
+
}), Iu(), d.value = Y, o.value = M, x.searchType = cu || "1", cu == "1" && (x.folderId = au, au ? ju(au) : x.folderName = ""), Vu(), _u(), l.value = !1;
|
|
5262
4896
|
} else
|
|
5263
4897
|
l.value = !1;
|
|
5264
|
-
}, ju = async (
|
|
5265
|
-
if (!
|
|
5266
|
-
const [D, G] = await
|
|
4898
|
+
}, ju = async (T) => {
|
|
4899
|
+
if (!T) return;
|
|
4900
|
+
const [D, G] = await Ti({ id: T }).run();
|
|
5267
4901
|
D || G && (x.folderName = G.folderName);
|
|
5268
|
-
},
|
|
5269
|
-
f.value = null, x.loading = !1,
|
|
5270
|
-
}, fe = (
|
|
5271
|
-
|
|
5272
|
-
},
|
|
5273
|
-
x.autoAudio = !x.autoAudio, x.autoAudio ||
|
|
5274
|
-
}, w = (
|
|
5275
|
-
F("sender",
|
|
5276
|
-
}, F = async (
|
|
5277
|
-
if (
|
|
4902
|
+
}, Iu = () => {
|
|
4903
|
+
f.value = null, x.loading = !1, R(), r.value = 0, d.value = [], s.value = null, y.value = !1, C.value = !1, o.value = null, E0();
|
|
4904
|
+
}, fe = (T) => {
|
|
4905
|
+
T == "addNew" && Iu(), T == "scrollBom" && (C.value = !1, _u());
|
|
4906
|
+
}, q = () => {
|
|
4907
|
+
x.autoAudio = !x.autoAudio, x.autoAudio || R();
|
|
4908
|
+
}, w = (T) => {
|
|
4909
|
+
F("sender", T.text);
|
|
4910
|
+
}, F = async (T, D) => {
|
|
4911
|
+
if (T == "sender") {
|
|
5278
4912
|
if (x.loading) return;
|
|
5279
|
-
|
|
4913
|
+
R(), C.value = !1;
|
|
5280
4914
|
const G = {
|
|
5281
4915
|
...Su(),
|
|
5282
4916
|
content: D
|
|
@@ -5286,43 +4920,43 @@ const Dc = () => {
|
|
|
5286
4920
|
};
|
|
5287
4921
|
d.value.push(G), d.value.push(Y), s.value = Y, Re(D);
|
|
5288
4922
|
}
|
|
5289
|
-
|
|
5290
|
-
},
|
|
4923
|
+
T == "stopMsg" && pe(), T == "upload" && await p();
|
|
4924
|
+
}, L = async (T, D) => {
|
|
5291
4925
|
var G, Y;
|
|
5292
|
-
if (
|
|
4926
|
+
if (T == "regenerate" && D) {
|
|
5293
4927
|
if (x.loading) return;
|
|
5294
|
-
if (
|
|
4928
|
+
if (R(), D.queryId) {
|
|
5295
4929
|
const au = { queryId: D.queryId }, [U, zu] = await Si(au).run();
|
|
5296
4930
|
if (U) return;
|
|
5297
4931
|
}
|
|
5298
4932
|
D.queryId = "", D.think = "", D.thinkTime = 0, D.intention = "", D.content = "", D.audioStatus = "normal", D.file = [], D.urls = [], D.havePlayAutoAudio = !1, D.saved = !1, D.loading = !0, s.value = D;
|
|
5299
|
-
const
|
|
4933
|
+
const M = d.value.findIndex((au) => au.id == D.id), cu = (G = d.value[M - 1]) == null ? void 0 : G.content;
|
|
5300
4934
|
Re(cu);
|
|
5301
4935
|
}
|
|
5302
|
-
if (
|
|
5303
|
-
const
|
|
4936
|
+
if (T == "saveKnowledgebase") {
|
|
4937
|
+
const M = D.item, cu = d.value.findIndex((zu) => zu.id == M.id), au = (Y = d.value[cu - 1]) == null ? void 0 : Y.content;
|
|
5304
4938
|
await p({
|
|
5305
|
-
currentItem:
|
|
4939
|
+
currentItem: M,
|
|
5306
4940
|
sendVal: au.slice(0, 20),
|
|
5307
4941
|
// 知识库标题限制长度
|
|
5308
4942
|
dom: D.dom
|
|
5309
|
-
}) && (
|
|
4943
|
+
}) && (M.saved = !0, M.queryId && Ci({ QueryId: M.queryId }).run());
|
|
5310
4944
|
}
|
|
5311
|
-
|
|
5312
|
-
},
|
|
5313
|
-
n("toApp",
|
|
5314
|
-
},
|
|
5315
|
-
c.value =
|
|
4945
|
+
T == "reference" && (s.value = D, a.value = "reference"), T == "play" && (D.data.audioStatus == "normal" ? (R(), E(0, D.data)) : (s.value && (s.value.audioStatus = "normal"), R())), T == "preview" && H(D);
|
|
4946
|
+
}, B = (T) => {
|
|
4947
|
+
n("toApp", T);
|
|
4948
|
+
}, H = (T) => {
|
|
4949
|
+
c.value = T, Ae(() => {
|
|
5316
4950
|
var D;
|
|
5317
4951
|
(D = i.value) == null || D.preview();
|
|
5318
4952
|
});
|
|
5319
|
-
}, eu = (
|
|
5320
|
-
|
|
4953
|
+
}, eu = (T) => {
|
|
4954
|
+
R(), a.value = "history";
|
|
5321
4955
|
}, Eu = () => {
|
|
5322
4956
|
a.value = "";
|
|
5323
|
-
}, Oe = (
|
|
4957
|
+
}, Oe = (T) => {
|
|
5324
4958
|
const D = {
|
|
5325
|
-
query:
|
|
4959
|
+
query: T,
|
|
5326
4960
|
deepThinkFlag: x.deepseek ? "1" : "0",
|
|
5327
4961
|
// project: getProjectInfo().id,
|
|
5328
4962
|
isInnerSearch: "0",
|
|
@@ -5334,21 +4968,21 @@ const Dc = () => {
|
|
|
5334
4968
|
};
|
|
5335
4969
|
return o.value || (o.value = (/* @__PURE__ */ new Date()).getTime()), D.chatId = o.value, x.searchType == "0" && (D.isInnerSearch = "1"), x.searchType == "1" && (D.isKnowledgeSearch = "1", D.foldId = x.folderId == x.allKnowId ? "" : x.folderId), x.searchType == "2" && (D.isGlobalSearch = "1"), JSON.stringify(D);
|
|
5336
4970
|
}, Gt = () => {
|
|
5337
|
-
const
|
|
4971
|
+
const T = {
|
|
5338
4972
|
// Authorization: `Bearer ${getToken()}`,
|
|
5339
4973
|
"Content-Type": "application/json",
|
|
5340
4974
|
Timezone: dt.tz.guess()
|
|
5341
4975
|
};
|
|
5342
|
-
return re() && (
|
|
4976
|
+
return re() && (T.Authorization = `Bearer ${re()}`), T;
|
|
5343
4977
|
};
|
|
5344
4978
|
let he = "";
|
|
5345
|
-
const Re = (
|
|
4979
|
+
const Re = (T) => {
|
|
5346
4980
|
x.loading = !0, _u();
|
|
5347
4981
|
const D = new tu(`${st().baseURL}${qc}?project=${lt().id}`, {
|
|
5348
4982
|
method: "POST",
|
|
5349
4983
|
// 使用 POST 请求
|
|
5350
4984
|
headers: Gt(),
|
|
5351
|
-
payload: Oe(
|
|
4985
|
+
payload: Oe(T),
|
|
5352
4986
|
// POST 请求体
|
|
5353
4987
|
//重连时间间隔,单位:毫秒,默认45000毫秒,这里设置为10分钟
|
|
5354
4988
|
heartbeatTimeout: 10 * 60 * 1e3
|
|
@@ -5361,27 +4995,27 @@ const Dc = () => {
|
|
|
5361
4995
|
D.close(), x.loading = !1, s.value.loading = !1, x.autoAudio && s.value.content && s.value.audioStatus != "normal" && E(1, s.value, ""), _u();
|
|
5362
4996
|
return;
|
|
5363
4997
|
}
|
|
5364
|
-
const
|
|
5365
|
-
if (s.value.intention || (s.value.intention =
|
|
5366
|
-
if (
|
|
5367
|
-
const cu = (/* @__PURE__ */ new Date()).getTime() -
|
|
5368
|
-
|
|
4998
|
+
const M = JSON.parse(Y.data);
|
|
4999
|
+
if (s.value.intention || (s.value.intention = M.intention, s.value.showSave = !A.value.includes(M.intention)), M.type == "queryId" && (s.value.queryId || (s.value.queryId = M.content)), M.type == "think" && (s.value.think || (P = (/* @__PURE__ */ new Date()).getTime()), s.value.think = s.value.think + M.content), M.type == "text") {
|
|
5000
|
+
if (P && s.value.think && !s.value.content) {
|
|
5001
|
+
const cu = (/* @__PURE__ */ new Date()).getTime() - P;
|
|
5002
|
+
P = 0, s.value.thinkTime = parseInt(`${cu / 1e3}`);
|
|
5369
5003
|
}
|
|
5370
|
-
s.value.content = s.value.content +
|
|
5004
|
+
s.value.content = s.value.content + M.content, s.value.showSave, x.autoAudio && (s.value.audioStatus == "normal" ? E(1, s.value, s.value.content) : E(1, s.value, M.content));
|
|
5371
5005
|
}
|
|
5372
|
-
|
|
5006
|
+
M.type == "file" && s.value.file.push(M), M.type == "url" && (M.webUrl && (M.webUrl = decodeURIComponent(M.webUrl)), M.name = M.content, s.value.file.push(M), s.value.urls.push(M)), _u();
|
|
5373
5007
|
}, D.onerror = (Y) => {
|
|
5374
|
-
D.close(), x.loading = !1, s.value.content =
|
|
5008
|
+
D.close(), x.loading = !1, s.value.content = I("连接错误");
|
|
5375
5009
|
}, f.value = D;
|
|
5376
5010
|
}, pe = () => {
|
|
5377
|
-
var
|
|
5378
|
-
if ((
|
|
5379
|
-
const D = (/* @__PURE__ */ new Date()).getTime() -
|
|
5380
|
-
|
|
5011
|
+
var T;
|
|
5012
|
+
if ((T = f.value) == null || T.close(), x.loading = !1, Kt(), s.value && (s.value.loading = !1, s.value.think && !s.value.thinkTime)) {
|
|
5013
|
+
const D = (/* @__PURE__ */ new Date()).getTime() - P;
|
|
5014
|
+
P = 0, s.value.thinkTime = parseInt(`${D / 1e3}`);
|
|
5381
5015
|
}
|
|
5382
5016
|
}, Kt = async () => {
|
|
5383
5017
|
if (s.value && s.value.loading && s.value.queryId && s.value.content) {
|
|
5384
|
-
let
|
|
5018
|
+
let T = s.value.file ? s.value.file.filter((M) => M.type != "url") : [];
|
|
5385
5019
|
const D = {
|
|
5386
5020
|
chat_id: o.value,
|
|
5387
5021
|
//会话id
|
|
@@ -5398,90 +5032,84 @@ const Dc = () => {
|
|
|
5398
5032
|
//queryId,即问答id
|
|
5399
5033
|
think: s.value.think,
|
|
5400
5034
|
//思考
|
|
5401
|
-
urls: s.value.urls ? s.value.urls.map((
|
|
5402
|
-
name:
|
|
5403
|
-
app_url:
|
|
5404
|
-
web_url:
|
|
5035
|
+
urls: s.value.urls ? s.value.urls.map((M) => ({
|
|
5036
|
+
name: M.name,
|
|
5037
|
+
app_url: M.appUrl,
|
|
5038
|
+
web_url: M.webUrl
|
|
5405
5039
|
})) : [],
|
|
5406
5040
|
//
|
|
5407
|
-
files:
|
|
5408
|
-
name:
|
|
5409
|
-
summary:
|
|
5410
|
-
url:
|
|
5041
|
+
files: T.map((M) => ({
|
|
5042
|
+
name: M.name,
|
|
5043
|
+
summary: M.summary,
|
|
5044
|
+
url: M.url
|
|
5411
5045
|
}))
|
|
5412
5046
|
//
|
|
5413
5047
|
};
|
|
5414
5048
|
D.searchType == "1" && (D.fold_id = x.folderId == x.allKnowId ? "" : x.folderId);
|
|
5415
|
-
const [G, Y] = await
|
|
5049
|
+
const [G, Y] = await vi(D).run();
|
|
5416
5050
|
if (G) return;
|
|
5417
5051
|
}
|
|
5418
5052
|
};
|
|
5419
5053
|
return e({
|
|
5420
|
-
senderVal: (
|
|
5421
|
-
x.senderValue = `${x.senderValue}${
|
|
5054
|
+
senderVal: (T) => {
|
|
5055
|
+
x.senderValue = `${x.senderValue}${T}`;
|
|
5422
5056
|
},
|
|
5423
5057
|
outSendMsg: () => {
|
|
5424
5058
|
x.senderValue && F("sender", x.senderValue);
|
|
5425
5059
|
},
|
|
5426
5060
|
hideFn: K,
|
|
5427
5061
|
playAudioFn: () => {
|
|
5428
|
-
const
|
|
5062
|
+
const T = d.value.findLastIndex((G) => G.role == "ai"), D = d.value[T] ? d.value[T] : null;
|
|
5429
5063
|
D && E(0, D);
|
|
5430
5064
|
},
|
|
5431
|
-
pauseAudio:
|
|
5065
|
+
pauseAudio: R,
|
|
5432
5066
|
stopMsg: pe,
|
|
5433
|
-
openNewChat:
|
|
5434
|
-
}), (
|
|
5067
|
+
openNewChat: Iu
|
|
5068
|
+
}), (T, D) => {
|
|
5435
5069
|
const G = Wt("dasLoading");
|
|
5436
|
-
return
|
|
5437
|
-
a.value ? (S(),
|
|
5070
|
+
return Au((S(), O("div", Ec, [
|
|
5071
|
+
a.value ? (S(), O("div", Fc, [
|
|
5438
5072
|
a.value == "reference" ? (S(), X(ic, {
|
|
5439
5073
|
key: 0,
|
|
5440
5074
|
item: s.value,
|
|
5441
|
-
onPreview:
|
|
5075
|
+
onPreview: H,
|
|
5442
5076
|
onBack: Eu,
|
|
5443
|
-
onToApp:
|
|
5444
|
-
}, null, 8, ["item"])) :
|
|
5445
|
-
a.value == "history" ? (S(), X(
|
|
5077
|
+
onToApp: B
|
|
5078
|
+
}, null, 8, ["item"])) : $("", !0),
|
|
5079
|
+
a.value == "history" ? (S(), X(Ac, {
|
|
5446
5080
|
key: 1,
|
|
5447
5081
|
chatId: o.value,
|
|
5448
|
-
onRecord:
|
|
5082
|
+
onRecord: Tu,
|
|
5449
5083
|
onBack: Eu
|
|
5450
|
-
}, null, 8, ["chatId"])) :
|
|
5451
|
-
])) :
|
|
5084
|
+
}, null, 8, ["chatId"])) : $("", !0)
|
|
5085
|
+
])) : $("", !0),
|
|
5452
5086
|
g("div", wc, [
|
|
5453
5087
|
g("div", Sc, [
|
|
5454
|
-
|
|
5455
|
-
onBack:
|
|
5088
|
+
j(Gi, {
|
|
5089
|
+
onBack: Iu,
|
|
5456
5090
|
listLength: d.value.length
|
|
5457
5091
|
}, null, 8, ["listLength"])
|
|
5458
5092
|
]),
|
|
5459
|
-
g("div",
|
|
5460
|
-
|
|
5093
|
+
g("div", Tc, [
|
|
5094
|
+
j(v(Cu), {
|
|
5461
5095
|
placement: "top",
|
|
5462
5096
|
type: "button"
|
|
5463
5097
|
}, {
|
|
5464
5098
|
content: J(() => [
|
|
5465
|
-
g(
|
|
5466
|
-
"div",
|
|
5467
|
-
null,
|
|
5468
|
-
V(A(T)("自动播报")),
|
|
5469
|
-
1
|
|
5470
|
-
/* TEXT */
|
|
5471
|
-
)
|
|
5099
|
+
g("div", null, V(v(I)("自动播报")), 1)
|
|
5472
5100
|
]),
|
|
5473
5101
|
default: J(() => [
|
|
5474
5102
|
g("div", {
|
|
5475
|
-
onClick:
|
|
5103
|
+
onClick: q,
|
|
5476
5104
|
style: { "margin-right": "16px" },
|
|
5477
5105
|
class: "ai-top-right-icon"
|
|
5478
5106
|
}, [
|
|
5479
|
-
|
|
5107
|
+
v(x).autoAudio ? (S(), X(v(r0), {
|
|
5480
5108
|
key: 0,
|
|
5481
5109
|
customSize: "20",
|
|
5482
5110
|
iconColor: "#006DF1"
|
|
5483
|
-
})) :
|
|
5484
|
-
|
|
5111
|
+
})) : $("", !0),
|
|
5112
|
+
v(x).autoAudio ? $("", !0) : (S(), X(v(o0), {
|
|
5485
5113
|
key: 1,
|
|
5486
5114
|
customSize: "20",
|
|
5487
5115
|
iconColor: "#333333"
|
|
@@ -5489,112 +5117,73 @@ const Dc = () => {
|
|
|
5489
5117
|
])
|
|
5490
5118
|
]),
|
|
5491
5119
|
_: 1
|
|
5492
|
-
/* STABLE */
|
|
5493
5120
|
}),
|
|
5494
|
-
|
|
5121
|
+
j(v(Cu), {
|
|
5495
5122
|
placement: "top",
|
|
5496
5123
|
type: "button"
|
|
5497
5124
|
}, {
|
|
5498
5125
|
content: J(() => [
|
|
5499
|
-
g(
|
|
5500
|
-
"div",
|
|
5501
|
-
null,
|
|
5502
|
-
V(A(T)("历史会话")),
|
|
5503
|
-
1
|
|
5504
|
-
/* TEXT */
|
|
5505
|
-
)
|
|
5126
|
+
g("div", null, V(v(I)("历史会话")), 1)
|
|
5506
5127
|
]),
|
|
5507
5128
|
default: J(() => [
|
|
5508
5129
|
g("div", {
|
|
5509
5130
|
onClick: eu,
|
|
5510
5131
|
class: "ai-top-right-icon"
|
|
5511
5132
|
}, [
|
|
5512
|
-
|
|
5133
|
+
j(v(i0), {
|
|
5513
5134
|
customSize: "20",
|
|
5514
5135
|
iconColor: "#666666"
|
|
5515
5136
|
})
|
|
5516
5137
|
])
|
|
5517
5138
|
]),
|
|
5518
5139
|
_: 1
|
|
5519
|
-
/* STABLE */
|
|
5520
5140
|
})
|
|
5521
5141
|
])
|
|
5522
5142
|
]),
|
|
5523
|
-
d.value.length ? (S(),
|
|
5524
|
-
|
|
5143
|
+
d.value.length ? (S(), O("div", Ic, [
|
|
5144
|
+
j(v(we), {
|
|
5525
5145
|
"wrap-class": "das-ai-wrap-class",
|
|
5526
5146
|
onScroll: fu
|
|
5527
5147
|
}, {
|
|
5528
5148
|
default: J(() => [
|
|
5529
|
-
|
|
5530
|
-
onChatEmit:
|
|
5149
|
+
j(Vo, {
|
|
5150
|
+
onChatEmit: L,
|
|
5531
5151
|
chartList: d.value
|
|
5532
5152
|
}, null, 8, ["chartList"])
|
|
5533
5153
|
]),
|
|
5534
5154
|
_: 1
|
|
5535
|
-
/* STABLE */
|
|
5536
5155
|
})
|
|
5537
|
-
])) :
|
|
5538
|
-
d.value.length ?
|
|
5156
|
+
])) : $("", !0),
|
|
5157
|
+
d.value.length ? $("", !0) : (S(), X(ki, {
|
|
5539
5158
|
key: 2,
|
|
5540
5159
|
list: _.value,
|
|
5541
5160
|
onClick: w
|
|
5542
5161
|
}, null, 8, ["list"])),
|
|
5543
|
-
|
|
5544
|
-
|
|
5545
|
-
|
|
5546
|
-
|
|
5547
|
-
{ class: "chat-new-top-mask" },
|
|
5548
|
-
null,
|
|
5549
|
-
-1
|
|
5550
|
-
/* CACHED */
|
|
5551
|
-
)),
|
|
5552
|
-
H(fi, { onAddNewEmit: fe })
|
|
5553
|
-
])) : z("v-if", !0),
|
|
5554
|
-
z(' :class="{ full: !currentList.length }" '),
|
|
5162
|
+
d.value.length ? (S(), O("div", zc, [
|
|
5163
|
+
D[0] || (D[0] = g("div", { class: "chat-new-top-mask" }, null, -1)),
|
|
5164
|
+
j(fi, { onAddNewEmit: fe })
|
|
5165
|
+
])) : $("", !0),
|
|
5555
5166
|
g("div", Nc, [
|
|
5556
|
-
z(` <div v-if="!currentList.length" class="new-content">\r
|
|
5557
|
-
<div class="new-content-top">\r
|
|
5558
|
-
<div class="new-content-img"><img :src="dasImg" /></div>\r
|
|
5559
|
-
\r
|
|
5560
|
-
<div class="new-content-text">{{ t('嗨!我是小达AI助手') }}</div>\r
|
|
5561
|
-
</div>\r
|
|
5562
|
-
<div class="new-content-bottom">\r
|
|
5563
|
-
{{ t('我可以帮你分析,写报告,调节设备,预订会议室,请把你的任务交给我吧~') }}\r
|
|
5564
|
-
</div>\r
|
|
5565
|
-
</div> `),
|
|
5566
|
-
z(' v-show="!dasAiData.loading" '),
|
|
5567
5167
|
g("div", Lc, [
|
|
5568
|
-
|
|
5168
|
+
j(ci, {
|
|
5569
5169
|
isNew: !d.value.length,
|
|
5570
5170
|
onSenderEmit: F
|
|
5571
5171
|
}, null, 8, ["isNew"])
|
|
5572
5172
|
]),
|
|
5573
|
-
|
|
5574
|
-
<div class="loading-box">{{ t('回答中…') }}</div>\r
|
|
5575
|
-
</div> `),
|
|
5576
|
-
D[1] || (D[1] = g(
|
|
5577
|
-
"div",
|
|
5578
|
-
{ class: "das-ai-chat-input-tip" },
|
|
5579
|
-
[
|
|
5580
|
-
z(" {{ t('内容由AI生成,无法完全保证真实,仅供参考') }} ")
|
|
5581
|
-
],
|
|
5582
|
-
-1
|
|
5583
|
-
/* CACHED */
|
|
5584
|
-
))
|
|
5173
|
+
D[1] || (D[1] = g("div", { class: "das-ai-chat-input-tip" }, null, -1))
|
|
5585
5174
|
]),
|
|
5586
|
-
|
|
5587
|
-
|
|
5175
|
+
j(v(k)),
|
|
5176
|
+
j(v(c0), {
|
|
5588
5177
|
ref_key: "dasPreviewRef",
|
|
5589
5178
|
ref: i,
|
|
5590
5179
|
"file-url": c.value
|
|
5591
5180
|
}, null, 8, ["file-url"]),
|
|
5592
5181
|
g("audio", {
|
|
5593
|
-
src:
|
|
5182
|
+
src: v(N),
|
|
5594
5183
|
class: "ai-audio-class",
|
|
5595
5184
|
ref_key: "aiAudioRef",
|
|
5596
5185
|
ref: b,
|
|
5597
|
-
muted: !
|
|
5186
|
+
muted: !v(m),
|
|
5598
5187
|
autoplay: ""
|
|
5599
5188
|
}, null, 8, Bc)
|
|
5600
5189
|
])), [
|
|
@@ -5606,18 +5195,18 @@ const Dc = () => {
|
|
|
5606
5195
|
__name: "index",
|
|
5607
5196
|
emits: ["confirm", "toApp", "getStatus"],
|
|
5608
5197
|
setup(u, { expose: e, emit: t }) {
|
|
5609
|
-
const n = t, r = e0(), o =
|
|
5198
|
+
const n = t, r = e0(), o = z(), c = z(0), i = z(), a = z(!1);
|
|
5610
5199
|
bu(
|
|
5611
5200
|
() => r == null ? void 0 : r.path,
|
|
5612
|
-
(m,
|
|
5201
|
+
(m, N) => {
|
|
5613
5202
|
f();
|
|
5614
5203
|
}
|
|
5615
5204
|
), Ou(() => {
|
|
5616
5205
|
setTimeout(() => {
|
|
5617
|
-
|
|
5206
|
+
Ae(() => {
|
|
5618
5207
|
let m = document.getElementsByClassName("das-web-app-header")[0];
|
|
5619
|
-
m && (c.value = m.clientHeight), m && !i.value && (i.value =
|
|
5620
|
-
c.value =
|
|
5208
|
+
m && (c.value = m.clientHeight), m && !i.value && (i.value = v0((N) => {
|
|
5209
|
+
c.value = N.height;
|
|
5621
5210
|
}, m));
|
|
5622
5211
|
});
|
|
5623
5212
|
}, 1e3);
|
|
@@ -5661,87 +5250,46 @@ const Dc = () => {
|
|
|
5661
5250
|
(m = o.value) == null || m.outSendMsg();
|
|
5662
5251
|
},
|
|
5663
5252
|
senderVal: (m) => {
|
|
5664
|
-
var
|
|
5665
|
-
(
|
|
5253
|
+
var N;
|
|
5254
|
+
(N = o.value) == null || N.senderVal(m);
|
|
5666
5255
|
},
|
|
5667
5256
|
clearSenderVal: () => {
|
|
5668
5257
|
x.senderValue = "";
|
|
5669
5258
|
},
|
|
5670
5259
|
openPanel: l,
|
|
5671
5260
|
closePanel: f
|
|
5672
|
-
}), (m,
|
|
5673
|
-
|
|
5674
|
-
name: "das-ai-panel",
|
|
5675
|
-
persisted: ""
|
|
5676
|
-
}, {
|
|
5261
|
+
}), (m, N) => (S(), O("div", Rc, [
|
|
5262
|
+
j(Xt, { name: "das-ai-panel" }, {
|
|
5677
5263
|
default: J(() => [
|
|
5678
|
-
|
|
5679
|
-
"
|
|
5680
|
-
{
|
|
5681
|
-
|
|
5682
|
-
|
|
5683
|
-
|
|
5684
|
-
|
|
5685
|
-
|
|
5686
|
-
|
|
5687
|
-
|
|
5688
|
-
|
|
5689
|
-
|
|
5690
|
-
|
|
5691
|
-
|
|
5692
|
-
),
|
|
5693
|
-
g("div", {
|
|
5694
|
-
onClick: f,
|
|
5695
|
-
class: "das-ai-panel-header-close"
|
|
5696
|
-
}, [
|
|
5697
|
-
H(A(t0), {
|
|
5698
|
-
size: "medium",
|
|
5699
|
-
iconColor: "#666666"
|
|
5700
|
-
})
|
|
5701
|
-
])
|
|
5702
|
-
]),
|
|
5703
|
-
g("div", Hc, [
|
|
5704
|
-
H(
|
|
5705
|
-
Oc,
|
|
5706
|
-
{
|
|
5707
|
-
ref_key: "dasAiVueRef",
|
|
5708
|
-
ref: o,
|
|
5709
|
-
onToApp: s
|
|
5710
|
-
},
|
|
5711
|
-
null,
|
|
5712
|
-
512
|
|
5713
|
-
/* NEED_PATCH */
|
|
5714
|
-
)
|
|
5264
|
+
Au(g("div", {
|
|
5265
|
+
class: "das-ai-panel-coantainer",
|
|
5266
|
+
style: Yt({ top: `${c.value}px` })
|
|
5267
|
+
}, [
|
|
5268
|
+
g("div", Pc, [
|
|
5269
|
+
g("div", jc, V(v(I)("AI助手")), 1),
|
|
5270
|
+
g("div", {
|
|
5271
|
+
onClick: f,
|
|
5272
|
+
class: "das-ai-panel-header-close"
|
|
5273
|
+
}, [
|
|
5274
|
+
j(v(t0), {
|
|
5275
|
+
size: "medium",
|
|
5276
|
+
iconColor: "#666666"
|
|
5277
|
+
})
|
|
5715
5278
|
])
|
|
5716
|
-
],
|
|
5717
|
-
|
|
5718
|
-
|
|
5719
|
-
|
|
5279
|
+
]),
|
|
5280
|
+
g("div", Hc, [
|
|
5281
|
+
j(Oc, {
|
|
5282
|
+
ref_key: "dasAiVueRef",
|
|
5283
|
+
ref: o,
|
|
5284
|
+
onToApp: s
|
|
5285
|
+
}, null, 512)
|
|
5286
|
+
])
|
|
5287
|
+
], 4), [
|
|
5720
5288
|
[Hu, a.value]
|
|
5721
5289
|
])
|
|
5722
5290
|
]),
|
|
5723
5291
|
_: 1
|
|
5724
|
-
|
|
5725
|
-
}),
|
|
5726
|
-
z(` <das-drawer\r
|
|
5727
|
-
title="我是title"\r
|
|
5728
|
-
:class="\`custom-drawer \${isall ? 'isall' : ''}\`"\r
|
|
5729
|
-
v-model="drawerShow"\r
|
|
5730
|
-
direction="rtl"\r
|
|
5731
|
-
:bodyStyle="{ padding: 0, width: '100%', height: '100%' }"\r
|
|
5732
|
-
@open="handleOpen"\r
|
|
5733
|
-
@opened="handleOpened"\r
|
|
5734
|
-
@close="handleClose"\r
|
|
5735
|
-
@closed="handleClosed"\r
|
|
5736
|
-
>\r
|
|
5737
|
-
<template #header>\r
|
|
5738
|
-
<div>header插槽<el-button @click="isall = !isall">展开</el-button></div>\r
|
|
5739
|
-
</template>\r
|
|
5740
|
-
<span> 我是内容<el-button @click="isall = !isall">展开</el-button> </span>\r
|
|
5741
|
-
<template #footer>\r
|
|
5742
|
-
<div>footer插槽</div>\r
|
|
5743
|
-
</template>\r
|
|
5744
|
-
</das-drawer>`)
|
|
5292
|
+
})
|
|
5745
5293
|
]));
|
|
5746
5294
|
}
|
|
5747
5295
|
}), Vc = /* @__PURE__ */ iu($c, [["__scopeId", "data-v-6ea5384f"]]), Uc = {
|
|
@@ -5831,11 +5379,11 @@ const Dc = () => {
|
|
|
5831
5379
|
}
|
|
5832
5380
|
};
|
|
5833
5381
|
n0(Uc);
|
|
5834
|
-
const La = () =>
|
|
5382
|
+
const La = () => z(null), Ba = u0(Vc);
|
|
5835
5383
|
export {
|
|
5836
5384
|
Ba as D,
|
|
5837
5385
|
iu as _,
|
|
5838
5386
|
La as a,
|
|
5839
|
-
|
|
5387
|
+
Ii as g,
|
|
5840
5388
|
Na as s
|
|
5841
5389
|
};
|