@titaui/pc 1.15.20 → 1.15.21
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/lib/components/change-okr-modal/index.js +1 -1
- package/lib/components/common-share/publishMblog.js +1 -1
- package/lib/components/create-okr-modal/fields/okr-type-detail.js +1 -1
- package/lib/components/create-okr-modal/fields/okr-visibility-detail.js +1 -1
- package/lib/components/create-okr-modal/index.js +1 -1
- package/lib/components/create-okr-modal/request-api.js +1 -1
- package/lib/components/create-okr-modal/utils/helper.js +1 -1
- package/lib/components/date-picker/BodyItem.js +3 -3
- package/lib/components/date-picker/CalendarHeader.js +3 -3
- package/lib/components/delete-confirm-pop/ConfirmPop.js +3 -3
- package/lib/components/dialog-qq-docs/index.js +1 -1
- package/lib/components/dialog-qq-docs/utils.js +1 -1
- package/lib/components/dialog-upload/index.js +1 -1
- package/lib/components/drawer-manager/drawerWrapper.js +1 -1
- package/lib/components/dynamic/dynamic-item/components/progress/components/okr-progress/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/components/summary-header/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/index.js +114 -90
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.js +50 -32
- package/lib/components/eReport/eReportLists/reportList.js +3 -3
- package/lib/components/emotions-selector/selector-pop.js +3 -3
- package/lib/components/ereport-list/index.js +3 -3
- package/lib/components/firework/index.js +1 -1
- package/lib/components/form/form-fields/input-verification-code/index.js +1 -1
- package/lib/components/grid-layout/util/network.js +1 -1
- package/lib/components/import-modal/tree/okr-tree/index.js +1 -1
- package/lib/components/mblog/components/MblogAction.js +3 -3
- package/lib/components/menus/export-modules/summary-menus/menus.js +1 -3
- package/lib/components/okr-detail/base-info/other-infos/principal/index.js +1 -1
- package/lib/components/okr-detail/components/ao-nice/index.js +1 -1
- package/lib/components/okr-detail/components/header/edit-name.js +1 -1
- package/lib/components/okr-detail/components/header/o-avatar.js +1 -1
- package/lib/components/okr-detail/components/header/o-classify.js +1 -1
- package/lib/components/okr-detail/components/o-classify.js +1 -1
- package/lib/components/okr-detail/components/o-progress-update/index.js +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.js +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task-level2.js +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task.js +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.js +3 -3
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-parent-node/index.js +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/o-child-node/edit-child-okr-weight.js +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/o-parent-node/index.js +1 -1
- package/lib/components/okr-detail/detail-footer/index.js +1 -1
- package/lib/components/okr-detail/detail-header/index.js +1 -1
- package/lib/components/okr-detail/okr-list/index.js +1 -1
- package/lib/components/okr-detail/request-apis.js +1 -1
- package/lib/components/okr-flow/child-node/fields/creator.js +1 -1
- package/lib/components/okr-flow/child-node/work-node.js +1 -1
- package/lib/components/okr-flow/export-modal/index.js +1 -40
- package/lib/components/okr-flow/export-modules/okr-search-panel/index.js +1 -1
- package/lib/components/okr-flow/request-apis.js +1 -1
- package/lib/components/okr-flow/root-node/index.js +1 -1
- package/lib/components/okr-progress/components/o-progress-update/index.js +1 -1
- package/lib/components/okr-progress-modal/index.js +1 -1
- package/lib/components/okr-review/ReviewPop/components/ReviewBody/index.js +1 -1
- package/lib/components/okr-review/components/confirm-pop/ConfirmPop.js +3 -3
- package/lib/components/okr-share/common-painter/darwAvatar.js +1 -1
- package/lib/components/okr-share/common-painter/openDataPainter.js +1 -1
- package/lib/components/okr-share/common-painter/utils.js +1 -1
- package/lib/components/okr-share/pink-card/drawDepartmentName.js +1 -1
- package/lib/components/okr-share/pink-card/drawKrs.js +1 -1
- package/lib/components/okr-share/pink-card/drawQuote.js +1 -1
- package/lib/components/okr-share/pink-card/drawUserName.js +1 -1
- package/lib/components/okr-share/pink-card/index.js +1 -1
- package/lib/components/okr-share/publishMblog.js +1 -1
- package/lib/components/okr-share/shareCardSelector.js +1 -1
- package/lib/components/okrcase-library/okrcases-components/submitOkr-dialog.js +1 -3
- package/lib/components/okrcase-library/server/network.js +1 -1
- package/lib/components/open-data-painter/index.js +1 -1
- package/lib/components/period-selector/helper/index.js +1 -1
- package/lib/components/range-selector-pop/RangeSelectorPop.js +3 -3
- package/lib/components/rich-editor/models/schema.js +6 -6
- package/lib/components/rich-editor/plugins/block/block-quote/index.js +8 -8
- package/lib/components/rich-editor/plugins/block/heading/index.js +8 -8
- package/lib/components/rich-editor/plugins/block/lists/index.js +14 -14
- package/lib/components/rich-editor/plugins/block/paragraph/index.js +5 -5
- package/lib/components/rich-editor/plugins/core/index.js +4 -4
- package/lib/components/rich-editor/plugins/extension/alignment/index.js +5 -5
- package/lib/components/rich-editor/plugins/extension/placeholder/index.js +4 -4
- package/lib/components/rich-editor/plugins/inline/color/commond.js +3 -3
- package/lib/components/rich-editor/plugins/inline/color/index.js +11 -11
- package/lib/components/rich-editor/plugins/inline/delete-line/index.js +8 -8
- package/lib/components/rich-editor/plugins/inline/em/index.js +5 -5
- package/lib/components/rich-editor/plugins/inline/link/index.js +8 -8
- package/lib/components/rich-editor/plugins/inline/strong/index.js +8 -8
- package/lib/components/rich-editor/plugins/inline/under-line/index.js +8 -8
- package/lib/components/rich-editor/react/uiProvider.js +3 -3
- package/lib/components/rich-editor/ui/Popup/index.js +3 -3
- package/lib/components/select/Option.js +3 -3
- package/lib/components/superset-charts/fetch-assets-and-append/get-assets-with-cache.js +1 -1
- package/lib/components/superset-charts/fetch-assets-and-append/index.js +1 -1
- package/lib/components/survey-model/request-api.js +1 -1
- package/lib/components/task-relation-modal/index.js +1 -1
- package/lib/components/task-relation-modal/tree/category-tree/index.js +1 -1
- package/lib/components/task-relation-modal/tree/okr-tree/index.js +1 -1
- package/lib/components/task-relation-modal/tree/work-tree/index.js +1 -1
- package/lib/components/task-relation-modal/work-relation/index.js +1 -1
- package/lib/components/task-tree/task-item-node/e-project.js +1 -1
- package/lib/components/task-tree/task-item-node/e-task.js +1 -1
- package/lib/components/tita-chart/errorBoundary/index.js +3 -3
- package/lib/components/toast/index.js +1 -1
- package/lib/components/upload/index.js +1 -1
- package/lib/components/upload/index2.js +1 -1
- package/lib/components/upvote/index.js +1 -1
- package/lib/components/version-change-modal/index.js +1 -1
- package/lib/components/version-change-modal/request-api.js +1 -1
- package/lib/components/weekly-report/card.js +1 -11
- package/lib/components/weekly-report/common-painter/darwAvatar.js +1 -1
- package/lib/components/weekly-report/common-painter/drawName.js +1 -1
- package/lib/components/weekly-report/common-painter/openDataPainter.js +1 -1
- package/lib/components/weekly-report/index.js +1 -1
- package/lib/components-v1/animate/AnimateChild.js +3 -3
- package/lib/components-v1/avatar/index.js +3 -3
- package/lib/components-v1/dropDownSelector/StatelessDropdown.js +3 -3
- package/lib/components-v1/progress/CircleProgress.js +3 -3
- package/lib/components-v1/select/Option.js +3 -3
- package/lib/components-v1/userSelector/UserSelectorPop.js +3 -3
- package/lib/components-v1/userSelector/components/MultiMode/index.js +3 -3
- package/lib/components-v1/userSelector/components/UserItem.js +3 -3
- package/lib/pages/group-management/groupInterface.js +1 -1
- package/lib/pages/new-okr-list/request-api.js +1 -1
- package/lib/pages/okr-map/export-modules/okr-map/okr-map.js +1 -1
- package/lib/pages/okr-map/request-apis.js +1 -1
- package/lib/pages/personal-info/components/edit-base-info/index.js +3 -0
- package/lib/utils/helpers.js +1 -1
- package/lib/utils/open-data.js +1 -1
- package/lib/utils/request-v1.js +1 -1
- package/lib/utils/request.js +1 -1
- package/package.json +1 -1
|
@@ -11,8 +11,12 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
|
|
12
12
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
13
|
|
|
14
|
+
var Sentry = _interopRequireWildcard(require("@sentry/browser"));
|
|
15
|
+
|
|
14
16
|
var _richEditor = _interopRequireWildcard(require("@titaui/rich-editor"));
|
|
15
17
|
|
|
18
|
+
var _reactIntersectionObserver = require("react-intersection-observer");
|
|
19
|
+
|
|
16
20
|
var _tooltip = _interopRequireDefault(require("../../../tooltip"));
|
|
17
21
|
|
|
18
22
|
var _context = require("../../context");
|
|
@@ -73,14 +77,14 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
73
77
|
|
|
74
78
|
var getEReportType = function getEReportType(type) {
|
|
75
79
|
var reportTextMap = {
|
|
76
|
-
8: (0, _getLocale.getLocale)(
|
|
77
|
-
26: (0, _getLocale.getLocale)(
|
|
78
|
-
27: (0, _getLocale.getLocale)(
|
|
80
|
+
8: (0, _getLocale.getLocale)('Rep_Tab_Dailynewspaper'),
|
|
81
|
+
26: (0, _getLocale.getLocale)('Rep_Tab_Weeklynewspaper'),
|
|
82
|
+
27: (0, _getLocale.getLocale)('Rep_Tab_MonthlyReport')
|
|
79
83
|
};
|
|
80
84
|
return reportTextMap[type];
|
|
81
85
|
};
|
|
82
86
|
|
|
83
|
-
var prefix =
|
|
87
|
+
var prefix = 'titaui-dynamic-new-report-item';
|
|
84
88
|
var loginUserId = (0, _bsGlobal.getUserInfo)().Id;
|
|
85
89
|
|
|
86
90
|
var DynamicReply = function DynamicReply(_ref) {
|
|
@@ -134,18 +138,95 @@ var DynamicReply = function DynamicReply(_ref) {
|
|
|
134
138
|
|
|
135
139
|
var renderSuffix = /*#__PURE__*/_react["default"].createElement("span", {
|
|
136
140
|
className: (0, _classnames["default"])("".concat(prefix, "__complete-type"), (_classNames = {}, _defineProperty(_classNames, "".concat(prefix, "__complete-type--normal"), submitState === 1), _defineProperty(_classNames, "".concat(prefix, "__complete-type--delay"), submitState === 2), _classNames))
|
|
137
|
-
}, submitState === 1 && (0, _getLocale.getLocale)(
|
|
141
|
+
}, submitState === 1 && (0, _getLocale.getLocale)('Rep_Tab_Mys_Submitontime'), submitState === 2 && (0, _getLocale.getLocale)('Tasks_Tab_DelaSubmission'));
|
|
138
142
|
|
|
139
143
|
var renderDesc = (0, _react.useMemo)(function () {
|
|
140
144
|
var reportTextMap = {
|
|
141
|
-
8: (0, _getLocale.getLocale)(
|
|
142
|
-
26: (0, _getLocale.getLocale)(
|
|
143
|
-
27: (0, _getLocale.getLocale)(
|
|
145
|
+
8: (0, _getLocale.getLocale)('Rep_Tab_Mys_Dailynewsp'),
|
|
146
|
+
26: (0, _getLocale.getLocale)('Rep_Tab_Mys_sweeklyReport'),
|
|
147
|
+
27: (0, _getLocale.getLocale)('Rep_Tab_Sub_monthlyeport')
|
|
144
148
|
};
|
|
145
149
|
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
146
150
|
className: "".concat(prefix, "__operate-desc")
|
|
147
151
|
}, reportTextMap[reportType]);
|
|
148
152
|
}, [reportType]);
|
|
153
|
+
|
|
154
|
+
var renderContent = function renderContent() {
|
|
155
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
156
|
+
className: prefix
|
|
157
|
+
}, /*#__PURE__*/_react["default"].createElement(_summaryHeader["default"], _extends({
|
|
158
|
+
data: data
|
|
159
|
+
}, restProps, {
|
|
160
|
+
desc: renderDesc,
|
|
161
|
+
user: publishUser,
|
|
162
|
+
suffixContent: renderSuffix,
|
|
163
|
+
showDelete: showDelete,
|
|
164
|
+
showEdit: showEdit,
|
|
165
|
+
canEvaluate: canEvaluate && !currentEvalutes,
|
|
166
|
+
setEvaluates: setCurrentEvalutes
|
|
167
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
168
|
+
className: "".concat(prefix, "__content")
|
|
169
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
170
|
+
className: "".concat(prefix, "__content-title")
|
|
171
|
+
}, /*#__PURE__*/_react["default"].createElement(_title["default"], {
|
|
172
|
+
content: (0, _tools.htmlDecodeByRegExp)(data.name),
|
|
173
|
+
type: getEReportType(reportType),
|
|
174
|
+
typeBgColor: "rgba(92, 142, 255, 0.5)",
|
|
175
|
+
titleBgColor: "rgba(92, 142, 255, 0.1)",
|
|
176
|
+
contentColor: "#5C8EFF"
|
|
177
|
+
}), (motionValue === null || motionValue === void 0 ? void 0 : motionValue.img) && /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
|
|
178
|
+
overlay: motionValue.tips,
|
|
179
|
+
placement: "top",
|
|
180
|
+
align: {
|
|
181
|
+
offset: [0, 5]
|
|
182
|
+
}
|
|
183
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
184
|
+
src: motionValue.img,
|
|
185
|
+
className: "".concat(prefix, "__content-mind"),
|
|
186
|
+
alt: ""
|
|
187
|
+
}))), dailyContent.map(function (item) {
|
|
188
|
+
if (item.contentType === _constant.dailyContentType.richText) {
|
|
189
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, ((item === null || item === void 0 ? void 0 : item.richContent) || !(0, _util.isEmptyImage)(item === null || item === void 0 ? void 0 : item.richContent)) && /*#__PURE__*/_react["default"].createElement("div", {
|
|
190
|
+
className: "".concat(prefix, "__work"),
|
|
191
|
+
key: item.richContent || Math.random()
|
|
192
|
+
}, item.title === '工作总结' ? (0, _getLocale.getLocale)('Tasks_Tab_MyS_JobSummary') : (0, _getLocale.getLocale)('Rep_Tab_Mys_NextWorkPlans'), /*#__PURE__*/_react["default"].createElement(_richEditor["default"], null, /*#__PURE__*/_react["default"].createElement(_richEditor.EditorComponent, {
|
|
193
|
+
editable: false,
|
|
194
|
+
initialState: !!item.richContent ? JSON.parse(item.richContent || '{}') : undefined,
|
|
195
|
+
placeholder: (0, _getLocale.getLocale)('Rep_NewS_Notfilled')
|
|
196
|
+
}))));
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
if (item.contentType === _constant.dailyContentType.okr) {
|
|
200
|
+
return item.content && /*#__PURE__*/_react["default"].createElement(_okrProgress["default"], {
|
|
201
|
+
data: item.content,
|
|
202
|
+
reportType: data.reportType
|
|
203
|
+
});
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
if (item.contentType === _constant.dailyContentType.task) {
|
|
207
|
+
return item.content && /*#__PURE__*/_react["default"].createElement(_taskProgress["default"], {
|
|
208
|
+
data: item.content,
|
|
209
|
+
reportType: data.reportType
|
|
210
|
+
});
|
|
211
|
+
}
|
|
212
|
+
}), files.length > 0 && /*#__PURE__*/_react["default"].createElement("div", {
|
|
213
|
+
className: "".concat(prefix, "__upload")
|
|
214
|
+
}, /*#__PURE__*/_react["default"].createElement(_richEditorUpload["default"], {
|
|
215
|
+
text: (0, _getLocale.getLocale)('Per_Ass_New_Err_Attachment'),
|
|
216
|
+
files: files,
|
|
217
|
+
editable: false,
|
|
218
|
+
enableDelete: false
|
|
219
|
+
})), /*#__PURE__*/_react["default"].createElement(_remindUserView["default"], {
|
|
220
|
+
data: atValue,
|
|
221
|
+
curAtUser: curAtUser
|
|
222
|
+
}), currentEvalutes && currentEvalutes.length !== 0 && /*#__PURE__*/_react["default"].createElement(_evalute["default"], {
|
|
223
|
+
evaluation: currentEvalutes[0],
|
|
224
|
+
feedId: feedId,
|
|
225
|
+
publishUser: publishUser,
|
|
226
|
+
canEvaluate: canEvaluate
|
|
227
|
+
})));
|
|
228
|
+
};
|
|
229
|
+
|
|
149
230
|
(0, _react.useEffect)(function () {
|
|
150
231
|
setCurrentEvalutes(evaluates);
|
|
151
232
|
}, [evaluates]);
|
|
@@ -169,7 +250,7 @@ var DynamicReply = function DynamicReply(_ref) {
|
|
|
169
250
|
var motion = _constant.Motion.find(function (item) {
|
|
170
251
|
var _JSON$parse$SelectedV;
|
|
171
252
|
|
|
172
|
-
return item.id === (((_JSON$parse$SelectedV = JSON.parse(mindData.content ||
|
|
253
|
+
return item.id === (((_JSON$parse$SelectedV = JSON.parse(mindData.content || '{}').SelectedValues) === null || _JSON$parse$SelectedV === void 0 ? void 0 : _JSON$parse$SelectedV[0]) || 0);
|
|
173
254
|
});
|
|
174
255
|
|
|
175
256
|
setMotionValue(motion);
|
|
@@ -181,7 +262,7 @@ var DynamicReply = function DynamicReply(_ref) {
|
|
|
181
262
|
return item.contentType === 5;
|
|
182
263
|
});
|
|
183
264
|
if (!(atData !== null && atData !== void 0 && atData.content)) return;
|
|
184
|
-
var atMotion = JSON.parse(atData.content ||
|
|
265
|
+
var atMotion = JSON.parse(atData.content || '{}');
|
|
185
266
|
setAtValue(atMotion);
|
|
186
267
|
}
|
|
187
268
|
}, [dailyContent]);
|
|
@@ -190,90 +271,33 @@ var DynamicReply = function DynamicReply(_ref) {
|
|
|
190
271
|
setShowDelete(true);
|
|
191
272
|
setShowEdit(true);
|
|
192
273
|
}
|
|
193
|
-
}, []);
|
|
194
|
-
// if (inview) {
|
|
195
|
-
// window.titaTracker("planAction").record({
|
|
196
|
-
// actionName: "查看日报",
|
|
197
|
-
// actionGroup: "动态-查看日报",
|
|
198
|
-
// productName: "动态",
|
|
199
|
-
// feedId,
|
|
200
|
-
// });
|
|
201
|
-
// }
|
|
202
|
-
// }
|
|
203
|
-
|
|
204
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
205
|
-
className: prefix
|
|
206
|
-
}, /*#__PURE__*/_react["default"].createElement(_summaryHeader["default"], _extends({
|
|
207
|
-
data: data
|
|
208
|
-
}, restProps, {
|
|
209
|
-
desc: renderDesc,
|
|
210
|
-
user: publishUser,
|
|
211
|
-
suffixContent: renderSuffix,
|
|
212
|
-
showDelete: showDelete,
|
|
213
|
-
showEdit: showEdit,
|
|
214
|
-
canEvaluate: canEvaluate && !currentEvalutes,
|
|
215
|
-
setEvaluates: setCurrentEvalutes
|
|
216
|
-
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
217
|
-
className: "".concat(prefix, "__content")
|
|
218
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
219
|
-
className: "".concat(prefix, "__content-title")
|
|
220
|
-
}, /*#__PURE__*/_react["default"].createElement(_title["default"], {
|
|
221
|
-
content: (0, _tools.htmlDecodeByRegExp)(data.name),
|
|
222
|
-
type: getEReportType(reportType),
|
|
223
|
-
typeBgColor: "rgba(92, 142, 255, 0.5)",
|
|
224
|
-
titleBgColor: "rgba(92, 142, 255, 0.1)",
|
|
225
|
-
contentColor: "#5C8EFF"
|
|
226
|
-
}), (motionValue === null || motionValue === void 0 ? void 0 : motionValue.img) && /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
|
|
227
|
-
overlay: motionValue.tips,
|
|
228
|
-
placement: "top",
|
|
229
|
-
align: {
|
|
230
|
-
offset: [0, 5]
|
|
231
|
-
}
|
|
232
|
-
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
233
|
-
src: motionValue.img,
|
|
234
|
-
className: "".concat(prefix, "__content-mind"),
|
|
235
|
-
alt: ""
|
|
236
|
-
}))), dailyContent.map(function (item) {
|
|
237
|
-
if (item.contentType === _constant.dailyContentType.richText) {
|
|
238
|
-
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, ((item === null || item === void 0 ? void 0 : item.richContent) || !(0, _util.isEmptyImage)(item === null || item === void 0 ? void 0 : item.richContent)) && /*#__PURE__*/_react["default"].createElement("div", {
|
|
239
|
-
className: "".concat(prefix, "__work"),
|
|
240
|
-
key: item.richContent || Math.random()
|
|
241
|
-
}, item.title === "工作总结" ? (0, _getLocale.getLocale)('Tasks_Tab_MyS_JobSummary') : (0, _getLocale.getLocale)('Rep_Tab_Mys_NextWorkPlans'), /*#__PURE__*/_react["default"].createElement(_richEditor["default"], null, /*#__PURE__*/_react["default"].createElement(_richEditor.EditorComponent, {
|
|
242
|
-
editable: false,
|
|
243
|
-
initialState: !!item.richContent ? JSON.parse(item.richContent || '{}') : undefined,
|
|
244
|
-
placeholder: (0, _getLocale.getLocale)('Rep_NewS_Notfilled')
|
|
245
|
-
}))));
|
|
246
|
-
}
|
|
274
|
+
}, []);
|
|
247
275
|
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
276
|
+
if (!window.IntersectionObserver) {
|
|
277
|
+
Sentry.withScope(function (scope) {
|
|
278
|
+
scope.setTag('error-level', "P0");
|
|
279
|
+
scope.setTag('error-type', '总结在 window 找不到 IntersectionObserver');
|
|
280
|
+
scope.setExtra('componentStack', '总结在 window 找不到 IntersectionObserver');
|
|
281
|
+
});
|
|
282
|
+
return renderContent();
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
var handleInView = function handleInView(inview) {
|
|
286
|
+
if (inview) {
|
|
287
|
+
window.titaTracker('planAction').record({
|
|
288
|
+
actionName: '查看日报',
|
|
289
|
+
actionGroup: '动态-查看日报',
|
|
290
|
+
productName: '动态',
|
|
291
|
+
feedId: feedId
|
|
252
292
|
});
|
|
253
293
|
}
|
|
294
|
+
};
|
|
254
295
|
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
}
|
|
261
|
-
}), files.length > 0 && /*#__PURE__*/_react["default"].createElement("div", {
|
|
262
|
-
className: "".concat(prefix, "__upload")
|
|
263
|
-
}, /*#__PURE__*/_react["default"].createElement(_richEditorUpload["default"], {
|
|
264
|
-
text: (0, _getLocale.getLocale)("Per_Ass_New_Err_Attachment"),
|
|
265
|
-
files: files,
|
|
266
|
-
editable: false,
|
|
267
|
-
enableDelete: false
|
|
268
|
-
})), /*#__PURE__*/_react["default"].createElement(_remindUserView["default"], {
|
|
269
|
-
data: atValue,
|
|
270
|
-
curAtUser: curAtUser
|
|
271
|
-
}), currentEvalutes && currentEvalutes.length !== 0 && /*#__PURE__*/_react["default"].createElement(_evalute["default"], {
|
|
272
|
-
evaluation: currentEvalutes[0],
|
|
273
|
-
feedId: feedId,
|
|
274
|
-
publishUser: publishUser,
|
|
275
|
-
canEvaluate: canEvaluate
|
|
276
|
-
})));
|
|
296
|
+
return /*#__PURE__*/_react["default"].createElement(_reactIntersectionObserver.InView, {
|
|
297
|
+
triggerOnce: true,
|
|
298
|
+
onChange: handleInView,
|
|
299
|
+
threshold: 0.5
|
|
300
|
+
}, renderContent());
|
|
277
301
|
};
|
|
278
302
|
|
|
279
303
|
var _default = DynamicReply;
|
|
@@ -11,6 +11,10 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
|
|
12
12
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
13
|
|
|
14
|
+
var Sentry = _interopRequireWildcard(require("@sentry/browser"));
|
|
15
|
+
|
|
16
|
+
var _reactIntersectionObserver = require("react-intersection-observer");
|
|
17
|
+
|
|
14
18
|
var _context = require("../../context");
|
|
15
19
|
|
|
16
20
|
var _header = _interopRequireDefault(require("../components/header"));
|
|
@@ -43,14 +47,14 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
43
47
|
|
|
44
48
|
var getEReportType = function getEReportType(type) {
|
|
45
49
|
var reportTextMap = {
|
|
46
|
-
8: (0, _getLocale.getLocale)(
|
|
47
|
-
26: (0, _getLocale.getLocale)(
|
|
48
|
-
27: (0, _getLocale.getLocale)(
|
|
50
|
+
8: (0, _getLocale.getLocale)('Rep_Tab_Dailynewspaper'),
|
|
51
|
+
26: (0, _getLocale.getLocale)('Rep_Tab_Weeklynewspaper'),
|
|
52
|
+
27: (0, _getLocale.getLocale)('Rep_Tab_MonthlyReport')
|
|
49
53
|
};
|
|
50
54
|
return reportTextMap[type];
|
|
51
55
|
};
|
|
52
56
|
|
|
53
|
-
var prefix =
|
|
57
|
+
var prefix = 'titaui-dynamic-report-item';
|
|
54
58
|
|
|
55
59
|
var DynamicReply = function DynamicReply(_ref) {
|
|
56
60
|
var data = _ref.data,
|
|
@@ -68,16 +72,16 @@ var DynamicReply = function DynamicReply(_ref) {
|
|
|
68
72
|
|
|
69
73
|
var handleClickTitle = function handleClickTitle() {
|
|
70
74
|
if (window.titaTracker) {
|
|
71
|
-
window.titaTracker(
|
|
72
|
-
actionName:
|
|
73
|
-
actionGroup:
|
|
74
|
-
productName:
|
|
75
|
+
window.titaTracker('planAction').record({
|
|
76
|
+
actionName: '查看日报',
|
|
77
|
+
actionGroup: '动态-推屏',
|
|
78
|
+
productName: '动态',
|
|
75
79
|
feedId: feedId
|
|
76
80
|
});
|
|
77
81
|
} // @ts-ignore
|
|
78
82
|
|
|
79
83
|
|
|
80
|
-
window.Talent.app.vent.trigger(
|
|
84
|
+
window.Talent.app.vent.trigger('global-daily-detail-pull-screen', feedId);
|
|
81
85
|
};
|
|
82
86
|
|
|
83
87
|
var renderSuffix = (0, _react.useMemo)(function () {
|
|
@@ -85,13 +89,13 @@ var DynamicReply = function DynamicReply(_ref) {
|
|
|
85
89
|
|
|
86
90
|
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
87
91
|
className: (0, _classnames["default"])("".concat(prefix, "__complete-type"), (_classNames = {}, _defineProperty(_classNames, "".concat(prefix, "__complete-type--normal"), submitState === 1), _defineProperty(_classNames, "".concat(prefix, "__complete-type--delay"), submitState === 2), _classNames))
|
|
88
|
-
}, submitState === 1 ? (0, _getLocale.getLocale)(
|
|
92
|
+
}, submitState === 1 ? (0, _getLocale.getLocale)('Rep_Tab_Mys_Submitontime') : (0, _getLocale.getLocale)('Tasks_Tab_DelaSubmission'));
|
|
89
93
|
}, []);
|
|
90
94
|
var renderDesc = (0, _react.useMemo)(function () {
|
|
91
95
|
var reportTextMap = {
|
|
92
|
-
8: (0, _getLocale.getLocale)(
|
|
93
|
-
26: (0, _getLocale.getLocale)(
|
|
94
|
-
27: (0, _getLocale.getLocale)(
|
|
96
|
+
8: (0, _getLocale.getLocale)('Rep_Tab_Mys_Dailynewsp'),
|
|
97
|
+
26: (0, _getLocale.getLocale)('Rep_Tab_Mys_sweeklyReport'),
|
|
98
|
+
27: (0, _getLocale.getLocale)('Rep_Tab_Sub_monthlyeport')
|
|
95
99
|
};
|
|
96
100
|
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
97
101
|
className: "".concat(prefix, "__operate-desc")
|
|
@@ -106,21 +110,10 @@ var DynamicReply = function DynamicReply(_ref) {
|
|
|
106
110
|
parentDom: workPlanRichTextRef.current,
|
|
107
111
|
keyWord: searchKeyWord
|
|
108
112
|
});
|
|
109
|
-
}, [data, searchKeyWord]);
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
// actionGroup: "动态-查看日报",
|
|
114
|
-
// productName: "动态",
|
|
115
|
-
// feedId,
|
|
116
|
-
// });
|
|
117
|
-
// }
|
|
118
|
-
// }
|
|
119
|
-
|
|
120
|
-
return (
|
|
121
|
-
/*#__PURE__*/
|
|
122
|
-
// <InView triggerOnce={true} onChange={handleInView} threshold={0.5}>
|
|
123
|
-
_react["default"].createElement("div", {
|
|
113
|
+
}, [data, searchKeyWord]);
|
|
114
|
+
|
|
115
|
+
var renderContent = function renderContent() {
|
|
116
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
124
117
|
className: prefix
|
|
125
118
|
}, /*#__PURE__*/_react["default"].createElement(_header["default"], _extends({
|
|
126
119
|
data: data
|
|
@@ -143,7 +136,7 @@ var DynamicReply = function DynamicReply(_ref) {
|
|
|
143
136
|
className: "".concat(prefix, "__summary")
|
|
144
137
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
145
138
|
className: "".concat(prefix, "__block-title")
|
|
146
|
-
}, (0, _getLocale.getLocale)(
|
|
139
|
+
}, (0, _getLocale.getLocale)('Rep_Tab_Mys_Summaryobsta')), /*#__PURE__*/_react["default"].createElement("div", {
|
|
147
140
|
className: "".concat(prefix, "__content-text"),
|
|
148
141
|
ref: contentRichTextRef
|
|
149
142
|
}, /*#__PURE__*/_react["default"].createElement(_dangerousHtml["default"], {
|
|
@@ -152,14 +145,39 @@ var DynamicReply = function DynamicReply(_ref) {
|
|
|
152
145
|
className: "".concat(prefix, "__work-plan")
|
|
153
146
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
154
147
|
className: "".concat(prefix, "__block-title")
|
|
155
|
-
}, (0, _getLocale.getLocale)(
|
|
148
|
+
}, (0, _getLocale.getLocale)('Rep_Tab_Mys_NextWorkPlans')), /*#__PURE__*/_react["default"].createElement("div", {
|
|
156
149
|
className: "".concat(prefix, "__content-text"),
|
|
157
150
|
ref: workPlanRichTextRef
|
|
158
151
|
}, /*#__PURE__*/_react["default"].createElement(_dangerousHtml["default"], {
|
|
159
152
|
htmlText: data.workPlanRichText
|
|
160
|
-
})))))
|
|
153
|
+
})))));
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
if (!window.IntersectionObserver) {
|
|
157
|
+
Sentry.withScope(function (scope) {
|
|
158
|
+
scope.setTag('error-level', "P0");
|
|
159
|
+
scope.setTag('error-type', '总结在 window 找不到 IntersectionObserver');
|
|
160
|
+
scope.setExtra('componentStack', '总结在 window 找不到 IntersectionObserver');
|
|
161
|
+
});
|
|
162
|
+
return renderContent();
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
var handleInView = function handleInView(inview) {
|
|
166
|
+
if (inview) {
|
|
167
|
+
window.titaTracker('planAction').record({
|
|
168
|
+
actionName: '查看日报',
|
|
169
|
+
actionGroup: '动态-查看日报',
|
|
170
|
+
productName: '动态',
|
|
171
|
+
feedId: feedId
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
};
|
|
161
175
|
|
|
162
|
-
|
|
176
|
+
return /*#__PURE__*/_react["default"].createElement(_reactIntersectionObserver.InView, {
|
|
177
|
+
triggerOnce: true,
|
|
178
|
+
onChange: handleInView,
|
|
179
|
+
threshold: 0.5
|
|
180
|
+
}, renderContent());
|
|
163
181
|
};
|
|
164
182
|
|
|
165
183
|
var _default = DynamicReply;
|
|
@@ -55,7 +55,7 @@ var EReportList = /*#__PURE__*/function (_React$Component) {
|
|
|
55
55
|
var _super = _createSuper(EReportList);
|
|
56
56
|
|
|
57
57
|
function EReportList() {
|
|
58
|
-
var
|
|
58
|
+
var _this;
|
|
59
59
|
|
|
60
60
|
_classCallCheck(this, EReportList);
|
|
61
61
|
|
|
@@ -63,7 +63,7 @@ var EReportList = /*#__PURE__*/function (_React$Component) {
|
|
|
63
63
|
args[_key] = arguments[_key];
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
return _possibleConstructorReturn(_this, (
|
|
66
|
+
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.state = {
|
|
67
67
|
selectedPeriodValue: '',
|
|
68
68
|
showDatePick: false,
|
|
69
69
|
eReportWeekList: [],
|
|
@@ -178,7 +178,7 @@ var EReportList = /*#__PURE__*/function (_React$Component) {
|
|
|
178
178
|
return _this.handlerEReportShareSubmit(submitStatus);
|
|
179
179
|
}
|
|
180
180
|
})));
|
|
181
|
-
},
|
|
181
|
+
}, _assertThisInitialized(_this)));
|
|
182
182
|
}
|
|
183
183
|
|
|
184
184
|
_createClass(EReportList, [{
|
|
@@ -47,7 +47,7 @@ var EmotionsSelectorPop = /*#__PURE__*/function (_PureComponent) {
|
|
|
47
47
|
var _super = _createSuper(EmotionsSelectorPop);
|
|
48
48
|
|
|
49
49
|
function EmotionsSelectorPop() {
|
|
50
|
-
var
|
|
50
|
+
var _this;
|
|
51
51
|
|
|
52
52
|
_classCallCheck(this, EmotionsSelectorPop);
|
|
53
53
|
|
|
@@ -55,7 +55,7 @@ var EmotionsSelectorPop = /*#__PURE__*/function (_PureComponent) {
|
|
|
55
55
|
args[_key] = arguments[_key];
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
return _possibleConstructorReturn(_this, (
|
|
58
|
+
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.handleShowPop = function () {
|
|
59
59
|
setTimeout(function () {
|
|
60
60
|
// @ts-ignore
|
|
61
61
|
_this.refs.pop.show(_this.refs.trigger);
|
|
@@ -63,7 +63,7 @@ var EmotionsSelectorPop = /*#__PURE__*/function (_PureComponent) {
|
|
|
63
63
|
}, _this.handleHide = function () {
|
|
64
64
|
// @ts-ignore
|
|
65
65
|
_this.refs.pop.hide();
|
|
66
|
-
},
|
|
66
|
+
}, _assertThisInitialized(_this)));
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
_createClass(EmotionsSelectorPop, [{
|
|
@@ -57,7 +57,7 @@ var EReportList = /*#__PURE__*/function (_React$Component) {
|
|
|
57
57
|
var _super = _createSuper(EReportList);
|
|
58
58
|
|
|
59
59
|
function EReportList() {
|
|
60
|
-
var
|
|
60
|
+
var _this;
|
|
61
61
|
|
|
62
62
|
_classCallCheck(this, EReportList);
|
|
63
63
|
|
|
@@ -65,7 +65,7 @@ var EReportList = /*#__PURE__*/function (_React$Component) {
|
|
|
65
65
|
args[_key] = arguments[_key];
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
return _possibleConstructorReturn(_this, (
|
|
68
|
+
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.state = {
|
|
69
69
|
selectedPeriodValue: "",
|
|
70
70
|
showDatePick: false,
|
|
71
71
|
eReportWeekList: [],
|
|
@@ -178,7 +178,7 @@ var EReportList = /*#__PURE__*/function (_React$Component) {
|
|
|
178
178
|
return _this.handlerEReportShareSubmit(submitStatus);
|
|
179
179
|
}
|
|
180
180
|
})));
|
|
181
|
-
},
|
|
181
|
+
}, _assertThisInitialized(_this)));
|
|
182
182
|
}
|
|
183
183
|
|
|
184
184
|
_createClass(EReportList, [{
|
|
@@ -11,7 +11,7 @@ var _firework = _interopRequireDefault(require("./firework"));
|
|
|
11
11
|
|
|
12
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
13
|
|
|
14
|
-
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return generator._invoke = function (innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; }(innerFn, self, context), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; this._invoke = function (method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (object) { var keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, "catch": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
|
14
|
+
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return generator._invoke = function (innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; }(innerFn, self, context), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; this._invoke = function (method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (object) { var keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, "catch": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
|
15
15
|
|
|
16
16
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
17
17
|
|
|
@@ -23,7 +23,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
23
23
|
|
|
24
24
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
25
25
|
|
|
26
|
-
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return generator._invoke = function (innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; }(innerFn, self, context), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; this._invoke = function (method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (object) { var keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, "catch": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
|
26
|
+
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return generator._invoke = function (innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; }(innerFn, self, context), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; this._invoke = function (method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (object) { var keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, "catch": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
|
27
27
|
|
|
28
28
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
29
29
|
|