@orangelogic/design-system 2.91.0 → 2.93.0
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/library/chunks/asset.Duzr3O3z.js +370 -0
- package/library/chunks/{endpoints.BpAhLyZw.js → asset.types.6DCzTOQm.js} +517 -515
- package/library/chunks/{button.BrIJPc2a.js → button.BZjbVq8t.js} +3 -3
- package/library/chunks/button.styles.Cz4EELcL.js +5 -0
- package/library/chunks/{color-swatch-group.CpuPC0u3.js → color-swatch-group.DRKpTlyp.js} +5 -5
- package/library/chunks/{color-swatch.hsIcIXE-.js → color-swatch.CbL_TpRZ.js} +1 -1
- package/library/chunks/{confirm-popover.Bk0_yxOs.js → confirm-popover.bBo9aPlX.js} +3 -3
- package/library/chunks/{cropper.DTokTzP9.js → cropper.BRKVzJDb.js} +2 -2
- package/library/chunks/{dialog.CPAszptn.js → dialog.DRW8iwh-.js} +20 -13
- package/library/chunks/{dom.Dd4Wh-Mt.js → dom.DURaLV1d.js} +1 -1
- package/library/chunks/{dot-pagination.CWKKpM7m.js → dot-pagination.CvUr6R4S.js} +1 -1
- package/library/chunks/{file-on-demand.CTJQ6P_F.js → file-on-demand.Z7nx9v2R.js} +10 -10
- package/library/chunks/{folder-select.D6NkbExX.js → folder-select.DxBOSyvo.js} +48 -49
- package/library/chunks/{form.Bi8x0jbW.js → form.nRqYei4e.js} +1 -1
- package/library/chunks/header.ClxEkQPZ.js +700 -0
- package/library/chunks/{i18n.CgwQHLcP.js → i18n.W6czbRms.js} +87 -7
- package/library/chunks/icon-button.MqA-pNw8.js +149 -0
- package/library/chunks/{iframe.DnAs6e8f.js → iframe.PcSPtm_O.js} +1 -1
- package/library/chunks/{image.DbfpMKMc.js → image.C3LupRuN.js} +118 -115
- package/library/chunks/image.ocYnNdYK.js +150 -0
- package/library/chunks/{index.zCSI4caC.js → index.B7slZiaV.js} +173 -148
- package/library/chunks/{list-editor.T0Lrm0Yo.js → list-editor.BnIOuHUQ.js} +12 -13
- package/library/chunks/number.DE78rV_g.js +104 -0
- package/library/chunks/{option.T4KSh5qy.js → option.Cx54zrJq.js} +1 -1
- package/library/chunks/{pagination.DC9JIt4s.js → pagination.CG5odPWi.js} +4 -4
- package/library/chunks/{responsive.DL-wBD4P.js → responsive.D9TUCX5p.js} +1 -1
- package/library/chunks/{string.B_mXTq0K.js → string.DfV21HEI.js} +12 -8
- package/library/chunks/{tab-group.B6olTWpV.js → tab-group.BLZ-qEpp.js} +4 -4
- package/library/chunks/{table.Da1P5WrI.js → table.1GgUDoqR.js} +1068 -951
- package/library/chunks/template.ClovJacp.js +31 -0
- package/library/chunks/{time.D_uFZqqe.js → time.wo2iH5iw.js} +1 -1
- package/library/chunks/toast.Bc4wpYJ1.js +150 -0
- package/library/chunks/{tree.D5Fv7i1r.js → tree.CKi63r95.js} +89 -89
- package/library/components/alert.js +2 -2
- package/library/components/asset-link-format.js +8 -8
- package/library/components/atoms.js +12 -12
- package/library/components/border-input-group.js +1 -1
- package/library/components/breadcrumb.js +1 -1
- package/library/components/button.js +4 -4
- package/library/components/checkbox.js +1 -1
- package/library/components/color-picker.js +4 -4
- package/library/components/color-swatch-group.js +6 -6
- package/library/components/color-swatch.js +2 -2
- package/library/components/confirm-popover.js +4 -4
- package/library/components/copy-button.js +2 -2
- package/library/components/corner-position-input-group.js +2 -2
- package/library/components/cropper.js +1 -1
- package/library/components/details.js +1 -1
- package/library/components/dialog.js +3 -3
- package/library/components/dot-pagination.js +2 -2
- package/library/components/drawer.js +2 -2
- package/library/components/dropdown.js +2 -2
- package/library/components/dynamic-select.js +4 -4
- package/library/components/e-chart.js +1 -1
- package/library/components/element-clamp.js +2 -2
- package/library/components/file-on-demand.js +11 -11
- package/library/components/folder-select.js +4 -4
- package/library/components/format-bytes.js +1 -1
- package/library/components/format-date.js +1 -1
- package/library/components/format-number.js +1 -1
- package/library/components/format-time.js +2 -2
- package/library/components/header.js +2 -2
- package/library/components/icon-button.js +2 -2
- package/library/components/iframe.js +2 -2
- package/library/components/image-comparer.js +1 -1
- package/library/components/image.js +2 -2
- package/library/components/input.js +2 -2
- package/library/components/line-clamp.js +1 -1
- package/library/components/list-editor.js +6 -6
- package/library/components/markdown.js +2 -2
- package/library/components/masonry.js +2 -2
- package/library/components/menu-item.js +56 -53
- package/library/components/menu.js +10 -7
- package/library/components/molecules.js +5 -5
- package/library/components/option.js +2 -2
- package/library/components/organisms.js +2 -2
- package/library/components/pagination.js +5 -5
- package/library/components/popup.js +30 -43
- package/library/components/position-picker.js +1 -1
- package/library/components/progress-bar.js +1 -1
- package/library/components/progress-ring.js +1 -1
- package/library/components/radio-button.js +1 -1
- package/library/components/radio-group.js +1 -1
- package/library/components/range.js +2 -2
- package/library/components/rating.js +1 -1
- package/library/components/relative-time.js +1 -1
- package/library/components/select.js +3 -3
- package/library/components/share-option-list.js +2 -2
- package/library/components/sidebar.js +1 -1
- package/library/components/size-input-group.js +2 -2
- package/library/components/spinner.js +1 -1
- package/library/components/split-panel.js +1 -1
- package/library/components/switch.js +1 -1
- package/library/components/tab-group.js +5 -5
- package/library/components/tab.js +2 -2
- package/library/components/table.js +57 -55
- package/library/components/tag.js +2 -2
- package/library/components/textarea.js +1 -1
- package/library/components/timecode.js +1 -1
- package/library/components/tooltip.js +1 -1
- package/library/components/tree-item.js +2 -2
- package/library/components/tree.js +2 -2
- package/library/components/typeface.js +2 -2
- package/library/components/types.js +28464 -28907
- package/library/components/video.js +2 -2
- package/library/package.json +1 -1
- package/library/packages/atoms/src/components/button/button.d.ts +5 -0
- package/library/packages/atoms/src/components/color-picker/color-picker.d.ts +1 -0
- package/library/packages/atoms/src/components/dropdown/dropdown.d.ts +1 -0
- package/library/packages/atoms/src/components/markdown/parser.d.ts +1 -1
- package/library/packages/atoms/src/components/menu/menu.d.ts +6 -0
- package/library/packages/atoms/src/components/menu-item/menu-item.d.ts +6 -0
- package/library/packages/atoms/src/components/table/styles/table-clickable-cell.styles.d.ts +10 -0
- package/library/packages/atoms/src/components/table/table.d.ts +1 -0
- package/library/packages/base/src/resizable-element.d.ts +1 -0
- package/library/packages/events/src/cx-code-block-language-change.d.ts +8 -0
- package/library/packages/events/src/cx-find-and-replace.d.ts +32 -0
- package/library/packages/events/src/cx-link-request.d.ts +12 -0
- package/library/packages/events/src/cx-rich-text-anchor-apply-request.d.ts +9 -0
- package/library/packages/events/src/cx-rich-text-blur.d.ts +6 -0
- package/library/packages/events/src/cx-rich-text-change.d.ts +8 -0
- package/library/packages/events/src/cx-rich-text-click.d.ts +6 -0
- package/library/packages/events/src/cx-rich-text-focus.d.ts +6 -0
- package/library/packages/events/src/cx-rich-text-image-drop.d.ts +8 -0
- package/library/packages/events/src/cx-rich-text-image-save.d.ts +23 -0
- package/library/packages/events/src/cx-rich-text-link-save.d.ts +19 -0
- package/library/packages/events/src/cx-rich-text-native-spellcheck-change.d.ts +12 -0
- package/library/packages/events/src/cx-rich-text-review-layout-refresh.d.ts +8 -0
- package/library/packages/events/src/cx-rich-text-review-node-created.d.ts +13 -0
- package/library/packages/events/src/cx-rich-text-review-selection-changed.d.ts +11 -0
- package/library/packages/events/src/cx-rich-text-suggestion-hover.d.ts +12 -0
- package/library/packages/events/src/cx-rich-text-table-cell-save.d.ts +15 -0
- package/library/packages/events/src/cx-rich-text-table-save.d.ts +16 -0
- package/library/packages/events/src/cx-rich-text-video-save.d.ts +28 -0
- package/library/packages/events/src/cx-special-characters-insert.d.ts +13 -0
- package/library/packages/events/src/cx-tiptap-code-block-doc-request.d.ts +19 -0
- package/library/packages/events/src/cx-tiptap-image-doc-request.d.ts +24 -0
- package/library/packages/events/src/cx-tiptap-image-host-feedback.d.ts +13 -0
- package/library/packages/events/src/cx-tiptap-video-doc-request.d.ts +24 -0
- package/library/packages/events/src/cx-tiptap-video-host-feedback.d.ts +13 -0
- package/library/packages/events/src/events.d.ts +25 -0
- package/library/packages/hybrid/table-core/src/tabulator-tables/core/modules/optional.d.ts +2 -0
- package/library/packages/hybrid/table-core/src/tabulator-tables/modules/ClickableCell/ClickableCell.d.ts +44 -0
- package/library/packages/{atoms/src/components/table/modules → hybrid/table-core/src/tabulator-tables/modules/HoverMenu}/HoverMenu.d.ts +7 -5
- package/library/packages/molecules/src/index.d.ts +1 -0
- package/library/packages/molecules/src/mentions/mentions.d.ts +53 -0
- package/library/packages/organisms/src/comment/comment.d.ts +3 -3
- package/library/packages/organisms/src/comment/extensions/index.d.ts +0 -1
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/components/index.d.ts +0 -2
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/components/rte-bubble-menu/rte-bubble-menu.d.ts +5 -10
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/constant.d.ts +12 -13
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/extensions/index.d.ts +1 -1
- package/library/packages/organisms/src/find-and-replace/find-and-replace.d.ts +84 -0
- package/library/packages/organisms/src/index.d.ts +2 -0
- package/library/packages/organisms/src/{content-builder/plugins/rich-text-editor/components/rte-bubble-menu/special-char-dialog.d.ts → special-characters-dialog/special-characters-dialog.d.ts} +11 -12
- package/library/packages/services/src/api/asset/asset.d.ts +17 -15
- package/library/packages/services/src/api/asset/asset.types.d.ts +97 -32
- package/library/packages/services/src/api/asset/asset.utils.d.ts +9 -0
- package/library/packages/services/src/api/endpoints.d.ts +2 -4
- package/library/packages/tools/src/fetch-image/fetch-image.d.ts +7 -0
- package/library/packages/tools/src/tiptap/constants/constants.d.ts +41 -0
- package/library/packages/tools/src/tiptap/constants/index.d.ts +1 -0
- package/library/packages/tools/src/tiptap/extensions/blockquote/index.d.ts +2 -0
- package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor/bubble-menu.d.ts → tools/src/tiptap/extensions/bubble-menu/index.d.ts} +11 -27
- package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor → tools/src/tiptap}/extensions/bullet-list/index.d.ts +3 -0
- package/library/packages/tools/src/tiptap/extensions/code-block/code-block-doc-bridge.d.ts +13 -0
- package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor/extensions/code-block/CodeBlock.d.ts → tools/src/tiptap/extensions/code-block/code-block.d.ts} +2 -1
- package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor/extensions/code-block/CodeBlockPrism.d.ts → tools/src/tiptap/extensions/code-block/index.d.ts} +2 -1
- package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor/extensions/code-block/PrismPlugin.d.ts → tools/src/tiptap/extensions/code-block/prism-plugin.d.ts} +1 -0
- package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor → tools/src/tiptap}/extensions/document/commands.d.ts +2 -2
- package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor → tools/src/tiptap}/extensions/link/helpers/autolink.d.ts +1 -1
- package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor/extensions/link/helpers/clickHandler.d.ts → tools/src/tiptap/extensions/link/helpers/click-handler.d.ts} +1 -1
- package/library/packages/tools/src/tiptap/extensions/link/helpers/is-valid-url.d.ts +1 -0
- package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor/extensions/link/helpers/pasteHandler.d.ts → tools/src/tiptap/extensions/link/helpers/paste-handler.d.ts} +1 -1
- package/library/packages/tools/src/tiptap/extensions/link/index.d.ts +6 -0
- package/library/packages/tools/src/tiptap/extensions/list-item/index.d.ts +2 -0
- package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor → tools/src/tiptap}/extensions/ordered-list/index.d.ts +2 -0
- package/library/packages/tools/src/tiptap/extensions/text-style/index.d.ts +7 -0
- package/library/packages/tools/src/tiptap/utils/anchor-links.d.ts +2 -0
- package/library/packages/tools/src/tiptap/utils/extend-class-style.d.ts +4 -0
- package/library/packages/tools/src/tiptap/utils/is-only-code-block-selection.d.ts +4 -0
- package/library/packages/tools/src/tiptap/utils/parse-tracks.d.ts +1 -0
- package/library/packages/tools/src/tiptap/utils/rich-text-inline-viewer-doc-bridge.d.ts +38 -0
- package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor/utils/getStyles.d.ts → tools/src/tiptap/utils/styles.d.ts} +4 -4
- package/library/packages/tools/src/tiptap/utils/text-block-type-input-rule-no-delete.d.ts +3 -0
- package/library/packages/types/src/menu-item.d.ts +2 -0
- package/library/packages/types/src/special-characters-dialog.d.ts +19 -0
- package/library/packages/types/src/table.d.ts +13 -0
- package/library/packages/types/src/tiptap.d.ts +52 -0
- package/library/packages/utils/src/custom-element/i18n.d.ts +80 -0
- package/library/packages/utils/src/image/image.d.ts +14 -1
- package/library/packages/utils/src/index.d.ts +1 -0
- package/library/packages/utils/src/keyboard/index.d.ts +1 -0
- package/library/packages/utils/src/keyboard/keyboard.d.ts +9 -0
- package/library/packages/utils/src/number/number.d.ts +4 -0
- package/library/packages/utils/src/object/object.d.ts +2 -0
- package/library/packages/utils/src/string/string.d.ts +1 -0
- package/library/packages/utils/src/template/template.d.ts +1 -0
- package/library/react-web-component.d.ts +154 -13
- package/library/utils.js +187 -177
- package/package.json +1 -1
- package/library/chunks/asset.CVuNAhz3.js +0 -287
- package/library/chunks/button.styles.CKqn956w.js +0 -5
- package/library/chunks/content-builder.B4Tqoc6M.js +0 -127
- package/library/chunks/header.DPVuEZN-.js +0 -177
- package/library/chunks/icon-button.BpwPU4Vg.js +0 -149
- package/library/chunks/image.mbpyiQpQ.js +0 -82
- package/library/chunks/number.CjNxU7Xs.js +0 -93
- package/library/chunks/template.CsJd8Pb_.js +0 -20
- package/library/chunks/toast.BXNbwZV8.js +0 -25
- package/library/packages/organisms/src/comment/components/comment-mention/comment-mention.d.ts +0 -44
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/components/rte-code-block-toolbar/index.d.ts +0 -1
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/components/rte-code-block-toolbar/rte-code-block-toolbar.d.ts +0 -28
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/components/rte-image-viewer/index.d.ts +0 -1
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/components/rte-image-viewer/rte-image-viewer.d.ts +0 -68
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/components/rte-image-viewer/rte-image-viewer.styles.d.ts +0 -2
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/extensions/blockquote/index.d.ts +0 -2
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/extensions/code-block/index.d.ts +0 -2
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/extensions/image/convertSrcToBlob.d.ts +0 -6
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/extensions/image/index.d.ts +0 -4
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/extensions/link/helpers/isValidUrl.d.ts +0 -2
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/extensions/link/index.d.ts +0 -2
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/extensions/list-item/index.d.ts +0 -2
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/extensions/text-style/index.d.ts +0 -17
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/utils/extendClassStyle.d.ts +0 -6
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/utils/getImageNaturalWidthHeight.d.ts +0 -1
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/utils/isAbsolute.d.ts +0 -2
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/utils/isValidImageUrl.d.ts +0 -3
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/utils/parseBooleanString.d.ts +0 -2
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/utils/processAnchorLink.d.ts +0 -2
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/utils/textblockTypeInputRuleNoDelete.d.ts +0 -3
- /package/library/packages/{organisms/src/comment/components/comment-mention/comment-mention.styles.d.ts → molecules/src/mentions/mentions.styles.d.ts} +0 -0
- /package/library/packages/organisms/src/{content-builder/plugins/rich-text-editor/components/rte-bubble-menu/special-char-dialog.styles.d.ts → find-and-replace/find-and-replace.styles.d.ts} +0 -0
- /package/library/packages/organisms/src/{content-builder/plugins/rich-text-editor/components/rte-code-block-toolbar/rte-code-block-toolbar.styles.d.ts → special-characters-dialog/special-characters-dialog.styles.d.ts} +0 -0
- /package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor → tools/src/tiptap}/extensions/anchor/index.d.ts +0 -0
- /package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor/extensions/aside-block → tools/src/tiptap/extensions/aside}/index.d.ts +0 -0
- /package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor → tools/src/tiptap}/extensions/div/index.d.ts +0 -0
- /package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor → tools/src/tiptap}/extensions/document/index.d.ts +0 -0
- /package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor → tools/src/tiptap}/extensions/font-size/index.d.ts +0 -0
- /package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor → tools/src/tiptap}/extensions/heading/index.d.ts +0 -0
- /package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor → tools/src/tiptap}/extensions/highlight/index.d.ts +0 -0
- /package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor → tools/src/tiptap}/extensions/inline-class/index.d.ts +0 -0
- /package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor → tools/src/tiptap}/extensions/line-height/index.d.ts +0 -0
- /package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor → tools/src/tiptap}/extensions/list-item/commands.d.ts +0 -0
- /package/library/packages/{organisms/src/comment/extensions/mention.d.ts → tools/src/tiptap/extensions/mention/index.d.ts} +0 -0
- /package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor/extensions/other-elements → tools/src/tiptap/extensions/other-element}/index.d.ts +0 -0
- /package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor → tools/src/tiptap}/extensions/other-styles/index.d.ts +0 -0
- /package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor → tools/src/tiptap}/extensions/paragraph/index.d.ts +0 -0
- /package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor → tools/src/tiptap}/extensions/placeholder/index.d.ts +0 -0
- /package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor → tools/src/tiptap}/extensions/table/cellselection.d.ts +0 -0
- /package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor/extensions/table/columnResizing.d.ts → tools/src/tiptap/extensions/table/column-resizing.d.ts} +0 -0
- /package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor → tools/src/tiptap}/extensions/table/commands.d.ts +0 -0
- /package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor/extensions/table/copyPaste.d.ts → tools/src/tiptap/extensions/table/copy-paste.d.ts} +0 -0
- /package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor/extensions/table/createCell.d.ts → tools/src/tiptap/extensions/table/create-cell.d.ts} +0 -0
- /package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor/extensions/table/createTable.d.ts → tools/src/tiptap/extensions/table/create-table.d.ts} +0 -0
- /package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor/extensions/table/fixTables.d.ts → tools/src/tiptap/extensions/table/fix-tables.d.ts} +0 -0
- /package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor/extensions/table/getTableNodeTypes.d.ts → tools/src/tiptap/extensions/table/get-table-node-types.d.ts} +0 -0
- /package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor → tools/src/tiptap}/extensions/table/index.d.ts +0 -0
- /package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor → tools/src/tiptap}/extensions/table/input.d.ts +0 -0
- /package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor/extensions/table/rowResizing.d.ts → tools/src/tiptap/extensions/table/row-resizing.d.ts} +0 -0
- /package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor/extensions/table/tableEditing.d.ts → tools/src/tiptap/extensions/table/table-editing.d.ts} +0 -0
- /package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor → tools/src/tiptap}/extensions/table/utils.d.ts +0 -0
- /package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor → tools/src/tiptap}/extensions/text-align/index.d.ts +0 -0
|
@@ -3,37 +3,37 @@ function Ie(e, t) {
|
|
|
3
3
|
return e.apply(t, arguments);
|
|
4
4
|
};
|
|
5
5
|
}
|
|
6
|
-
const { toString: pt } = Object.prototype, { getPrototypeOf:
|
|
6
|
+
const { toString: pt } = Object.prototype, { getPrototypeOf: ye } = Object, { iterator: te, toStringTag: qe } = Symbol, re = /* @__PURE__ */ ((e) => (t) => {
|
|
7
7
|
const r = pt.call(t);
|
|
8
8
|
return e[r] || (e[r] = r.slice(8, -1).toLowerCase());
|
|
9
9
|
})(/* @__PURE__ */ Object.create(null)), L = (e) => (e = e.toLowerCase(), (t) => re(t) === e), ne = (e) => (t) => typeof t === e, { isArray: I } = Array, H = ne("undefined");
|
|
10
|
-
function
|
|
10
|
+
function J(e) {
|
|
11
11
|
return e !== null && !H(e) && e.constructor !== null && !H(e.constructor) && _(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
12
12
|
}
|
|
13
|
-
const
|
|
13
|
+
const Me = L("ArrayBuffer");
|
|
14
14
|
function mt(e) {
|
|
15
15
|
let t;
|
|
16
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer &&
|
|
16
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Me(e.buffer), t;
|
|
17
17
|
}
|
|
18
|
-
const bt = ne("string"), _ = ne("function"), He = ne("number"),
|
|
18
|
+
const bt = ne("string"), _ = ne("function"), He = ne("number"), $ = (e) => e !== null && typeof e == "object", wt = (e) => e === !0 || e === !1, V = (e) => {
|
|
19
19
|
if (re(e) !== "object")
|
|
20
20
|
return !1;
|
|
21
|
-
const t =
|
|
22
|
-
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(
|
|
23
|
-
},
|
|
24
|
-
if (
|
|
21
|
+
const t = ye(e);
|
|
22
|
+
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(qe in e) && !(te in e);
|
|
23
|
+
}, yt = (e) => {
|
|
24
|
+
if (!$(e) || J(e))
|
|
25
25
|
return !1;
|
|
26
26
|
try {
|
|
27
27
|
return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
|
|
28
28
|
} catch {
|
|
29
29
|
return !1;
|
|
30
30
|
}
|
|
31
|
-
}, gt = L("Date"), Et = L("File"), St = L("Blob"), Rt = L("FileList"), Tt = (e) =>
|
|
31
|
+
}, gt = L("Date"), Et = L("File"), St = L("Blob"), Rt = L("FileList"), Tt = (e) => $(e) && _(e.pipe), At = (e) => {
|
|
32
32
|
let t;
|
|
33
33
|
return e && (typeof FormData == "function" && e instanceof FormData || _(e.append) && ((t = re(e)) === "formdata" || // detect form-data instance
|
|
34
34
|
t === "object" && _(e.toString) && e.toString() === "[object FormData]"));
|
|
35
|
-
},
|
|
36
|
-
function
|
|
35
|
+
}, Ot = L("URLSearchParams"), [_t, Ct, xt, Lt] = ["ReadableStream", "Request", "Response", "Headers"].map(L), vt = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
36
|
+
function G(e, t, { allOwnKeys: r = !1 } = {}) {
|
|
37
37
|
if (e === null || typeof e > "u")
|
|
38
38
|
return;
|
|
39
39
|
let n, s;
|
|
@@ -41,16 +41,16 @@ function J(e, t, { allOwnKeys: r = !1 } = {}) {
|
|
|
41
41
|
for (n = 0, s = e.length; n < s; n++)
|
|
42
42
|
t.call(null, e[n], n, e);
|
|
43
43
|
else {
|
|
44
|
-
if (
|
|
44
|
+
if (J(e))
|
|
45
45
|
return;
|
|
46
|
-
const
|
|
47
|
-
let
|
|
46
|
+
const o = r ? Object.getOwnPropertyNames(e) : Object.keys(e), a = o.length;
|
|
47
|
+
let i;
|
|
48
48
|
for (n = 0; n < a; n++)
|
|
49
|
-
|
|
49
|
+
i = o[n], t.call(null, e[i], i, e);
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
function ze(e, t) {
|
|
53
|
-
if (
|
|
53
|
+
if (J(e))
|
|
54
54
|
return null;
|
|
55
55
|
t = t.toLowerCase();
|
|
56
56
|
const r = Object.keys(e);
|
|
@@ -60,37 +60,37 @@ function ze(e, t) {
|
|
|
60
60
|
return s;
|
|
61
61
|
return null;
|
|
62
62
|
}
|
|
63
|
-
const
|
|
63
|
+
const P = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Je = (e) => !H(e) && e !== P;
|
|
64
64
|
function ue() {
|
|
65
|
-
const { caseless: e } =
|
|
66
|
-
const
|
|
67
|
-
|
|
65
|
+
const { caseless: e } = Je(this) && this || {}, t = {}, r = (n, s) => {
|
|
66
|
+
const o = e && ze(t, s) || s;
|
|
67
|
+
V(t[o]) && V(n) ? t[o] = ue(t[o], n) : V(n) ? t[o] = ue({}, n) : I(n) ? t[o] = n.slice() : t[o] = n;
|
|
68
68
|
};
|
|
69
69
|
for (let n = 0, s = arguments.length; n < s; n++)
|
|
70
|
-
arguments[n] &&
|
|
70
|
+
arguments[n] && G(arguments[n], r);
|
|
71
71
|
return t;
|
|
72
72
|
}
|
|
73
|
-
const
|
|
74
|
-
r && _(s) ? e[
|
|
75
|
-
}, { allOwnKeys: n }), e),
|
|
73
|
+
const jt = (e, t, r, { allOwnKeys: n } = {}) => (G(t, (s, o) => {
|
|
74
|
+
r && _(s) ? e[o] = Ie(s, r) : e[o] = s;
|
|
75
|
+
}, { allOwnKeys: n }), e), Ft = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), kt = (e, t, r, n) => {
|
|
76
76
|
e.prototype = Object.create(t.prototype, n), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
77
77
|
value: t.prototype
|
|
78
78
|
}), r && Object.assign(e.prototype, r);
|
|
79
|
-
},
|
|
80
|
-
let s,
|
|
81
|
-
const
|
|
79
|
+
}, Pt = (e, t, r, n) => {
|
|
80
|
+
let s, o, a;
|
|
81
|
+
const i = {};
|
|
82
82
|
if (t = t || {}, e == null) return t;
|
|
83
83
|
do {
|
|
84
|
-
for (s = Object.getOwnPropertyNames(e),
|
|
85
|
-
a = s[
|
|
86
|
-
e = r !== !1 &&
|
|
84
|
+
for (s = Object.getOwnPropertyNames(e), o = s.length; o-- > 0; )
|
|
85
|
+
a = s[o], (!n || n(a, e, t)) && !i[a] && (t[a] = e[a], i[a] = !0);
|
|
86
|
+
e = r !== !1 && ye(e);
|
|
87
87
|
} while (e && (!r || r(e, t)) && e !== Object.prototype);
|
|
88
88
|
return t;
|
|
89
|
-
},
|
|
89
|
+
}, Ut = (e, t, r) => {
|
|
90
90
|
e = String(e), (r === void 0 || r > e.length) && (r = e.length), r -= t.length;
|
|
91
91
|
const n = e.indexOf(t, r);
|
|
92
92
|
return n !== -1 && n === r;
|
|
93
|
-
},
|
|
93
|
+
}, Nt = (e) => {
|
|
94
94
|
if (!e) return null;
|
|
95
95
|
if (I(e)) return e;
|
|
96
96
|
let t = e.length;
|
|
@@ -99,12 +99,12 @@ const Ft = (e, t, r, { allOwnKeys: n } = {}) => (J(t, (s, i) => {
|
|
|
99
99
|
for (; t-- > 0; )
|
|
100
100
|
r[t] = e[t];
|
|
101
101
|
return r;
|
|
102
|
-
},
|
|
102
|
+
}, Dt = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && ye(Uint8Array)), Bt = (e, t) => {
|
|
103
103
|
const n = (e && e[te]).call(e);
|
|
104
104
|
let s;
|
|
105
105
|
for (; (s = n.next()) && !s.done; ) {
|
|
106
|
-
const
|
|
107
|
-
t.call(e,
|
|
106
|
+
const o = s.value;
|
|
107
|
+
t.call(e, o[0], o[1]);
|
|
108
108
|
}
|
|
109
109
|
}, It = (e, t) => {
|
|
110
110
|
let r;
|
|
@@ -112,19 +112,19 @@ const Ft = (e, t, r, { allOwnKeys: n } = {}) => (J(t, (s, i) => {
|
|
|
112
112
|
for (; (r = e.exec(t)) !== null; )
|
|
113
113
|
n.push(r);
|
|
114
114
|
return n;
|
|
115
|
-
},
|
|
115
|
+
}, qt = L("HTMLFormElement"), Mt = (e) => e.toLowerCase().replace(
|
|
116
116
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
117
117
|
function(r, n, s) {
|
|
118
118
|
return n.toUpperCase() + s;
|
|
119
119
|
}
|
|
120
|
-
), Re = (({ hasOwnProperty: e }) => (t, r) => e.call(t, r))(Object.prototype), Ht = L("RegExp"),
|
|
120
|
+
), Re = (({ hasOwnProperty: e }) => (t, r) => e.call(t, r))(Object.prototype), Ht = L("RegExp"), $e = (e, t) => {
|
|
121
121
|
const r = Object.getOwnPropertyDescriptors(e), n = {};
|
|
122
|
-
|
|
122
|
+
G(r, (s, o) => {
|
|
123
123
|
let a;
|
|
124
|
-
(a = t(s,
|
|
124
|
+
(a = t(s, o, e)) !== !1 && (n[o] = a || s);
|
|
125
125
|
}), Object.defineProperties(e, n);
|
|
126
126
|
}, zt = (e) => {
|
|
127
|
-
|
|
127
|
+
$e(e, (t, r) => {
|
|
128
128
|
if (_(e) && ["arguments", "caller", "callee"].indexOf(r) !== -1)
|
|
129
129
|
return !1;
|
|
130
130
|
const n = e[r];
|
|
@@ -138,56 +138,56 @@ const Ft = (e, t, r, { allOwnKeys: n } = {}) => (J(t, (s, i) => {
|
|
|
138
138
|
});
|
|
139
139
|
}
|
|
140
140
|
});
|
|
141
|
-
},
|
|
141
|
+
}, Jt = (e, t) => {
|
|
142
142
|
const r = {}, n = (s) => {
|
|
143
|
-
s.forEach((
|
|
144
|
-
r[
|
|
143
|
+
s.forEach((o) => {
|
|
144
|
+
r[o] = !0;
|
|
145
145
|
});
|
|
146
146
|
};
|
|
147
147
|
return I(e) ? n(e) : n(String(e).split(t)), r;
|
|
148
|
-
},
|
|
149
|
-
},
|
|
150
|
-
function
|
|
151
|
-
return !!(e && _(e.append) && e[
|
|
148
|
+
}, $t = () => {
|
|
149
|
+
}, Gt = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
150
|
+
function Kt(e) {
|
|
151
|
+
return !!(e && _(e.append) && e[qe] === "FormData" && e[te]);
|
|
152
152
|
}
|
|
153
|
-
const
|
|
153
|
+
const Wt = (e) => {
|
|
154
154
|
const t = new Array(10), r = (n, s) => {
|
|
155
|
-
if (
|
|
155
|
+
if ($(n)) {
|
|
156
156
|
if (t.indexOf(n) >= 0)
|
|
157
157
|
return;
|
|
158
|
-
if (
|
|
158
|
+
if (J(n))
|
|
159
159
|
return n;
|
|
160
160
|
if (!("toJSON" in n)) {
|
|
161
161
|
t[s] = n;
|
|
162
|
-
const
|
|
163
|
-
return
|
|
162
|
+
const o = I(n) ? [] : {};
|
|
163
|
+
return G(n, (a, i) => {
|
|
164
164
|
const d = r(a, s + 1);
|
|
165
|
-
!H(d) && (i
|
|
166
|
-
}), t[s] = void 0,
|
|
165
|
+
!H(d) && (o[i] = d);
|
|
166
|
+
}), t[s] = void 0, o;
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
169
|
return n;
|
|
170
170
|
};
|
|
171
171
|
return r(e, 0);
|
|
172
|
-
},
|
|
173
|
-
s ===
|
|
172
|
+
}, Vt = L("AsyncFunction"), Xt = (e) => e && ($(e) || _(e)) && _(e.then) && _(e.catch), Ge = ((e, t) => e ? setImmediate : t ? ((r, n) => (P.addEventListener("message", ({ source: s, data: o }) => {
|
|
173
|
+
s === P && o === r && n.length && n.shift()();
|
|
174
174
|
}, !1), (s) => {
|
|
175
|
-
n.push(s),
|
|
175
|
+
n.push(s), P.postMessage(r, "*");
|
|
176
176
|
}))(`axios@${Math.random()}`, []) : (r) => setTimeout(r))(
|
|
177
177
|
typeof setImmediate == "function",
|
|
178
|
-
_(
|
|
179
|
-
), Yt = typeof queueMicrotask < "u" ? queueMicrotask.bind(
|
|
178
|
+
_(P.postMessage)
|
|
179
|
+
), Yt = typeof queueMicrotask < "u" ? queueMicrotask.bind(P) : typeof process < "u" && process.nextTick || Ge, Qt = (e) => e != null && _(e[te]), c = {
|
|
180
180
|
isArray: I,
|
|
181
|
-
isArrayBuffer:
|
|
182
|
-
isBuffer:
|
|
183
|
-
isFormData:
|
|
181
|
+
isArrayBuffer: Me,
|
|
182
|
+
isBuffer: J,
|
|
183
|
+
isFormData: At,
|
|
184
184
|
isArrayBufferView: mt,
|
|
185
185
|
isString: bt,
|
|
186
186
|
isNumber: He,
|
|
187
|
-
isBoolean:
|
|
188
|
-
isObject:
|
|
189
|
-
isPlainObject:
|
|
190
|
-
isEmptyObject:
|
|
187
|
+
isBoolean: wt,
|
|
188
|
+
isObject: $,
|
|
189
|
+
isPlainObject: V,
|
|
190
|
+
isEmptyObject: yt,
|
|
191
191
|
isReadableStream: _t,
|
|
192
192
|
isRequest: Ct,
|
|
193
193
|
isResponse: xt,
|
|
@@ -199,47 +199,47 @@ const Vt = (e) => {
|
|
|
199
199
|
isRegExp: Ht,
|
|
200
200
|
isFunction: _,
|
|
201
201
|
isStream: Tt,
|
|
202
|
-
isURLSearchParams:
|
|
203
|
-
isTypedArray:
|
|
202
|
+
isURLSearchParams: Ot,
|
|
203
|
+
isTypedArray: Dt,
|
|
204
204
|
isFileList: Rt,
|
|
205
|
-
forEach:
|
|
205
|
+
forEach: G,
|
|
206
206
|
merge: ue,
|
|
207
|
-
extend:
|
|
207
|
+
extend: jt,
|
|
208
208
|
trim: vt,
|
|
209
|
-
stripBOM:
|
|
210
|
-
inherits:
|
|
211
|
-
toFlatObject:
|
|
209
|
+
stripBOM: Ft,
|
|
210
|
+
inherits: kt,
|
|
211
|
+
toFlatObject: Pt,
|
|
212
212
|
kindOf: re,
|
|
213
213
|
kindOfTest: L,
|
|
214
|
-
endsWith:
|
|
215
|
-
toArray:
|
|
216
|
-
forEachEntry:
|
|
214
|
+
endsWith: Ut,
|
|
215
|
+
toArray: Nt,
|
|
216
|
+
forEachEntry: Bt,
|
|
217
217
|
matchAll: It,
|
|
218
|
-
isHTMLForm:
|
|
218
|
+
isHTMLForm: qt,
|
|
219
219
|
hasOwnProperty: Re,
|
|
220
220
|
hasOwnProp: Re,
|
|
221
221
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
222
|
-
reduceDescriptors:
|
|
222
|
+
reduceDescriptors: $e,
|
|
223
223
|
freezeMethods: zt,
|
|
224
|
-
toObjectSet:
|
|
225
|
-
toCamelCase:
|
|
226
|
-
noop:
|
|
227
|
-
toFiniteNumber:
|
|
224
|
+
toObjectSet: Jt,
|
|
225
|
+
toCamelCase: Mt,
|
|
226
|
+
noop: $t,
|
|
227
|
+
toFiniteNumber: Gt,
|
|
228
228
|
findKey: ze,
|
|
229
|
-
global:
|
|
230
|
-
isContextDefined:
|
|
231
|
-
isSpecCompliantForm:
|
|
232
|
-
toJSONObject:
|
|
233
|
-
isAsyncFn:
|
|
229
|
+
global: P,
|
|
230
|
+
isContextDefined: Je,
|
|
231
|
+
isSpecCompliantForm: Kt,
|
|
232
|
+
toJSONObject: Wt,
|
|
233
|
+
isAsyncFn: Vt,
|
|
234
234
|
isThenable: Xt,
|
|
235
|
-
setImmediate:
|
|
235
|
+
setImmediate: Ge,
|
|
236
236
|
asap: Yt,
|
|
237
237
|
isIterable: Qt
|
|
238
238
|
};
|
|
239
|
-
function
|
|
239
|
+
function w(e, t, r, n, s) {
|
|
240
240
|
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), r && (this.config = r), n && (this.request = n), s && (this.response = s, this.status = s.status ? s.status : null);
|
|
241
241
|
}
|
|
242
|
-
c.inherits(
|
|
242
|
+
c.inherits(w, Error, {
|
|
243
243
|
toJSON: function() {
|
|
244
244
|
return {
|
|
245
245
|
// Standard
|
|
@@ -260,7 +260,7 @@ c.inherits(y, Error, {
|
|
|
260
260
|
};
|
|
261
261
|
}
|
|
262
262
|
});
|
|
263
|
-
const
|
|
263
|
+
const Ke = w.prototype, We = {};
|
|
264
264
|
[
|
|
265
265
|
"ERR_BAD_OPTION_VALUE",
|
|
266
266
|
"ERR_BAD_OPTION",
|
|
@@ -276,26 +276,26 @@ const $e = y.prototype, Ve = {};
|
|
|
276
276
|
"ERR_INVALID_URL"
|
|
277
277
|
// eslint-disable-next-line func-names
|
|
278
278
|
].forEach((e) => {
|
|
279
|
-
|
|
279
|
+
We[e] = { value: e };
|
|
280
280
|
});
|
|
281
|
-
Object.defineProperties(
|
|
282
|
-
Object.defineProperty(
|
|
283
|
-
|
|
284
|
-
const a = Object.create(
|
|
281
|
+
Object.defineProperties(w, We);
|
|
282
|
+
Object.defineProperty(Ke, "isAxiosError", { value: !0 });
|
|
283
|
+
w.from = (e, t, r, n, s, o) => {
|
|
284
|
+
const a = Object.create(Ke);
|
|
285
285
|
return c.toFlatObject(e, a, function(d) {
|
|
286
286
|
return d !== Error.prototype;
|
|
287
|
-
}, (
|
|
287
|
+
}, (i) => i !== "isAxiosError"), w.call(a, e.message, t, r, n, s), a.cause = e, a.name = e.name, o && Object.assign(a, o), a;
|
|
288
288
|
};
|
|
289
289
|
const Zt = null;
|
|
290
290
|
function de(e) {
|
|
291
291
|
return c.isPlainObject(e) || c.isArray(e);
|
|
292
292
|
}
|
|
293
|
-
function
|
|
293
|
+
function Ve(e) {
|
|
294
294
|
return c.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
295
295
|
}
|
|
296
296
|
function Te(e, t, r) {
|
|
297
|
-
return e ? e.concat(t).map(function(s,
|
|
298
|
-
return s =
|
|
297
|
+
return e ? e.concat(t).map(function(s, o) {
|
|
298
|
+
return s = Ve(s), !r && o ? "[" + s + "]" : s;
|
|
299
299
|
}).join(r ? "." : "") : t;
|
|
300
300
|
}
|
|
301
301
|
function er(e) {
|
|
@@ -314,7 +314,7 @@ function se(e, t, r) {
|
|
|
314
314
|
}, !1, function(m, b) {
|
|
315
315
|
return !c.isUndefined(b[m]);
|
|
316
316
|
});
|
|
317
|
-
const n = r.metaTokens, s = r.visitor || l,
|
|
317
|
+
const n = r.metaTokens, s = r.visitor || l, o = r.dots, a = r.indexes, d = (r.Blob || typeof Blob < "u" && Blob) && c.isSpecCompliantForm(t);
|
|
318
318
|
if (!c.isFunction(s))
|
|
319
319
|
throw new TypeError("visitor must be a function");
|
|
320
320
|
function u(f) {
|
|
@@ -324,7 +324,7 @@ function se(e, t, r) {
|
|
|
324
324
|
if (c.isBoolean(f))
|
|
325
325
|
return f.toString();
|
|
326
326
|
if (!d && c.isBlob(f))
|
|
327
|
-
throw new
|
|
327
|
+
throw new w("Blob is not supported. Use a Buffer instead.");
|
|
328
328
|
return c.isArrayBuffer(f) || c.isTypedArray(f) ? d && typeof Blob == "function" ? new Blob([f]) : Buffer.from(f) : f;
|
|
329
329
|
}
|
|
330
330
|
function l(f, m, b) {
|
|
@@ -333,22 +333,22 @@ function se(e, t, r) {
|
|
|
333
333
|
if (c.endsWith(m, "{}"))
|
|
334
334
|
m = n ? m : m.slice(0, -2), f = JSON.stringify(f);
|
|
335
335
|
else if (c.isArray(f) && er(f) || (c.isFileList(f) || c.endsWith(m, "[]")) && (g = c.toArray(f)))
|
|
336
|
-
return m =
|
|
336
|
+
return m = Ve(m), g.forEach(function(E, x) {
|
|
337
337
|
!(c.isUndefined(E) || E === null) && t.append(
|
|
338
338
|
// eslint-disable-next-line no-nested-ternary
|
|
339
|
-
a === !0 ? Te([m], x,
|
|
339
|
+
a === !0 ? Te([m], x, o) : a === null ? m : m + "[]",
|
|
340
340
|
u(E)
|
|
341
341
|
);
|
|
342
342
|
}), !1;
|
|
343
343
|
}
|
|
344
|
-
return de(f) ? !0 : (t.append(Te(b, m,
|
|
344
|
+
return de(f) ? !0 : (t.append(Te(b, m, o), u(f)), !1);
|
|
345
345
|
}
|
|
346
346
|
const h = [], p = Object.assign(tr, {
|
|
347
347
|
defaultVisitor: l,
|
|
348
348
|
convertValue: u,
|
|
349
349
|
isVisitable: de
|
|
350
350
|
});
|
|
351
|
-
function
|
|
351
|
+
function y(f, m) {
|
|
352
352
|
if (!c.isUndefined(f)) {
|
|
353
353
|
if (h.indexOf(f) !== -1)
|
|
354
354
|
throw Error("Circular reference detected in " + m.join("."));
|
|
@@ -359,15 +359,15 @@ function se(e, t, r) {
|
|
|
359
359
|
c.isString(S) ? S.trim() : S,
|
|
360
360
|
m,
|
|
361
361
|
p
|
|
362
|
-
)) === !0 &&
|
|
362
|
+
)) === !0 && y(g, m ? m.concat(S) : [S]);
|
|
363
363
|
}), h.pop();
|
|
364
364
|
}
|
|
365
365
|
}
|
|
366
366
|
if (!c.isObject(e))
|
|
367
367
|
throw new TypeError("data must be an object");
|
|
368
|
-
return
|
|
368
|
+
return y(e), t;
|
|
369
369
|
}
|
|
370
|
-
function
|
|
370
|
+
function Ae(e) {
|
|
371
371
|
const t = {
|
|
372
372
|
"!": "%21",
|
|
373
373
|
"'": "%27",
|
|
@@ -390,8 +390,8 @@ Xe.append = function(t, r) {
|
|
|
390
390
|
};
|
|
391
391
|
Xe.toString = function(t) {
|
|
392
392
|
const r = t ? function(n) {
|
|
393
|
-
return t.call(this, n,
|
|
394
|
-
} :
|
|
393
|
+
return t.call(this, n, Ae);
|
|
394
|
+
} : Ae;
|
|
395
395
|
return this._pairs.map(function(s) {
|
|
396
396
|
return r(s[0]) + "=" + r(s[1]);
|
|
397
397
|
}, "").join("&");
|
|
@@ -407,14 +407,14 @@ function Ye(e, t, r) {
|
|
|
407
407
|
serialize: r
|
|
408
408
|
});
|
|
409
409
|
const s = r && r.serialize;
|
|
410
|
-
let
|
|
411
|
-
if (s ?
|
|
410
|
+
let o;
|
|
411
|
+
if (s ? o = s(t, r) : o = c.isURLSearchParams(t) ? t.toString() : new ge(t, r).toString(n), o) {
|
|
412
412
|
const a = e.indexOf("#");
|
|
413
|
-
a !== -1 && (e = e.slice(0, a)), e += (e.indexOf("?") === -1 ? "?" : "&") +
|
|
413
|
+
a !== -1 && (e = e.slice(0, a)), e += (e.indexOf("?") === -1 ? "?" : "&") + o;
|
|
414
414
|
}
|
|
415
415
|
return e;
|
|
416
416
|
}
|
|
417
|
-
class
|
|
417
|
+
class Oe {
|
|
418
418
|
constructor() {
|
|
419
419
|
this.handlers = [];
|
|
420
420
|
}
|
|
@@ -472,7 +472,7 @@ const Qe = {
|
|
|
472
472
|
silentJSONParsing: !0,
|
|
473
473
|
forcedJSONParsing: !0,
|
|
474
474
|
clarifyTimeoutError: !1
|
|
475
|
-
}, nr = typeof URLSearchParams < "u" ? URLSearchParams : ge, sr = typeof FormData < "u" ? FormData : null, ar = typeof Blob < "u" ? Blob : null,
|
|
475
|
+
}, nr = typeof URLSearchParams < "u" ? URLSearchParams : ge, sr = typeof FormData < "u" ? FormData : null, ar = typeof Blob < "u" ? Blob : null, or = {
|
|
476
476
|
isBrowser: !0,
|
|
477
477
|
classes: {
|
|
478
478
|
URLSearchParams: nr,
|
|
@@ -480,22 +480,22 @@ const Qe = {
|
|
|
480
480
|
Blob: ar
|
|
481
481
|
},
|
|
482
482
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
483
|
-
}, Ee = typeof window < "u" && typeof document < "u", fe = typeof navigator == "object" && navigator || void 0,
|
|
483
|
+
}, Ee = typeof window < "u" && typeof document < "u", fe = typeof navigator == "object" && navigator || void 0, ir = Ee && (!fe || ["ReactNative", "NativeScript", "NS"].indexOf(fe.product) < 0), cr = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
484
484
|
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", lr = Ee && window.location.href || "http://localhost", ur = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
485
485
|
__proto__: null,
|
|
486
486
|
hasBrowserEnv: Ee,
|
|
487
|
-
hasStandardBrowserEnv:
|
|
487
|
+
hasStandardBrowserEnv: ir,
|
|
488
488
|
hasStandardBrowserWebWorkerEnv: cr,
|
|
489
489
|
navigator: fe,
|
|
490
490
|
origin: lr
|
|
491
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
491
|
+
}, Symbol.toStringTag, { value: "Module" })), O = {
|
|
492
492
|
...ur,
|
|
493
|
-
...
|
|
493
|
+
...or
|
|
494
494
|
};
|
|
495
495
|
function dr(e, t) {
|
|
496
|
-
return se(e, new
|
|
497
|
-
visitor: function(r, n, s,
|
|
498
|
-
return
|
|
496
|
+
return se(e, new O.classes.URLSearchParams(), {
|
|
497
|
+
visitor: function(r, n, s, o) {
|
|
498
|
+
return O.isNode && c.isBuffer(r) ? (this.append(n, r.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
|
|
499
499
|
},
|
|
500
500
|
...t
|
|
501
501
|
});
|
|
@@ -507,17 +507,17 @@ function hr(e) {
|
|
|
507
507
|
const t = {}, r = Object.keys(e);
|
|
508
508
|
let n;
|
|
509
509
|
const s = r.length;
|
|
510
|
-
let
|
|
510
|
+
let o;
|
|
511
511
|
for (n = 0; n < s; n++)
|
|
512
|
-
|
|
512
|
+
o = r[n], t[o] = e[o];
|
|
513
513
|
return t;
|
|
514
514
|
}
|
|
515
515
|
function Ze(e) {
|
|
516
|
-
function t(r, n, s,
|
|
517
|
-
let a = r[
|
|
516
|
+
function t(r, n, s, o) {
|
|
517
|
+
let a = r[o++];
|
|
518
518
|
if (a === "__proto__") return !0;
|
|
519
|
-
const
|
|
520
|
-
return a = !a && c.isArray(s) ? s.length : a, d ? (c.hasOwnProp(s, a) ? s[a] = [s[a], n] : s[a] = n, !
|
|
519
|
+
const i = Number.isFinite(+a), d = o >= r.length;
|
|
520
|
+
return a = !a && c.isArray(s) ? s.length : a, d ? (c.hasOwnProp(s, a) ? s[a] = [s[a], n] : s[a] = n, !i) : ((!s[a] || !c.isObject(s[a])) && (s[a] = []), t(r, n, s[a], o) && c.isArray(s[a]) && (s[a] = hr(s[a])), !i);
|
|
521
521
|
}
|
|
522
522
|
if (c.isFormData(e) && c.isFunction(e.entries)) {
|
|
523
523
|
const r = {};
|
|
@@ -537,12 +537,12 @@ function pr(e, t, r) {
|
|
|
537
537
|
}
|
|
538
538
|
return (r || JSON.stringify)(e);
|
|
539
539
|
}
|
|
540
|
-
const
|
|
540
|
+
const K = {
|
|
541
541
|
transitional: Qe,
|
|
542
542
|
adapter: ["xhr", "http", "fetch"],
|
|
543
543
|
transformRequest: [function(t, r) {
|
|
544
|
-
const n = r.getContentType() || "", s = n.indexOf("application/json") > -1,
|
|
545
|
-
if (
|
|
544
|
+
const n = r.getContentType() || "", s = n.indexOf("application/json") > -1, o = c.isObject(t);
|
|
545
|
+
if (o && c.isHTMLForm(t) && (t = new FormData(t)), c.isFormData(t))
|
|
546
546
|
return s ? JSON.stringify(Ze(t)) : t;
|
|
547
547
|
if (c.isArrayBuffer(t) || c.isBuffer(t) || c.isStream(t) || c.isFile(t) || c.isBlob(t) || c.isReadableStream(t))
|
|
548
548
|
return t;
|
|
@@ -550,32 +550,32 @@ const $ = {
|
|
|
550
550
|
return t.buffer;
|
|
551
551
|
if (c.isURLSearchParams(t))
|
|
552
552
|
return r.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
|
|
553
|
-
let
|
|
554
|
-
if (
|
|
553
|
+
let i;
|
|
554
|
+
if (o) {
|
|
555
555
|
if (n.indexOf("application/x-www-form-urlencoded") > -1)
|
|
556
556
|
return dr(t, this.formSerializer).toString();
|
|
557
|
-
if ((
|
|
557
|
+
if ((i = c.isFileList(t)) || n.indexOf("multipart/form-data") > -1) {
|
|
558
558
|
const d = this.env && this.env.FormData;
|
|
559
559
|
return se(
|
|
560
|
-
|
|
560
|
+
i ? { "files[]": t } : t,
|
|
561
561
|
d && new d(),
|
|
562
562
|
this.formSerializer
|
|
563
563
|
);
|
|
564
564
|
}
|
|
565
565
|
}
|
|
566
|
-
return
|
|
566
|
+
return o || s ? (r.setContentType("application/json", !1), pr(t)) : t;
|
|
567
567
|
}],
|
|
568
568
|
transformResponse: [function(t) {
|
|
569
|
-
const r = this.transitional ||
|
|
569
|
+
const r = this.transitional || K.transitional, n = r && r.forcedJSONParsing, s = this.responseType === "json";
|
|
570
570
|
if (c.isResponse(t) || c.isReadableStream(t))
|
|
571
571
|
return t;
|
|
572
572
|
if (t && c.isString(t) && (n && !this.responseType || s)) {
|
|
573
573
|
const a = !(r && r.silentJSONParsing) && s;
|
|
574
574
|
try {
|
|
575
575
|
return JSON.parse(t);
|
|
576
|
-
} catch (
|
|
576
|
+
} catch (i) {
|
|
577
577
|
if (a)
|
|
578
|
-
throw
|
|
578
|
+
throw i.name === "SyntaxError" ? w.from(i, w.ERR_BAD_RESPONSE, this, null, this.response) : i;
|
|
579
579
|
}
|
|
580
580
|
}
|
|
581
581
|
return t;
|
|
@@ -590,8 +590,8 @@ const $ = {
|
|
|
590
590
|
maxContentLength: -1,
|
|
591
591
|
maxBodyLength: -1,
|
|
592
592
|
env: {
|
|
593
|
-
FormData:
|
|
594
|
-
Blob:
|
|
593
|
+
FormData: O.classes.FormData,
|
|
594
|
+
Blob: O.classes.Blob
|
|
595
595
|
},
|
|
596
596
|
validateStatus: function(t) {
|
|
597
597
|
return t >= 200 && t < 300;
|
|
@@ -604,7 +604,7 @@ const $ = {
|
|
|
604
604
|
}
|
|
605
605
|
};
|
|
606
606
|
c.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
607
|
-
|
|
607
|
+
K.headers[e] = {};
|
|
608
608
|
});
|
|
609
609
|
const mr = c.toObjectSet([
|
|
610
610
|
"age",
|
|
@@ -632,21 +632,21 @@ const mr = c.toObjectSet([
|
|
|
632
632
|
s = a.indexOf(":"), r = a.substring(0, s).trim().toLowerCase(), n = a.substring(s + 1).trim(), !(!r || t[r] && mr[r]) && (r === "set-cookie" ? t[r] ? t[r].push(n) : t[r] = [n] : t[r] = t[r] ? t[r] + ", " + n : n);
|
|
633
633
|
}), t;
|
|
634
634
|
}, _e = Symbol("internals");
|
|
635
|
-
function
|
|
635
|
+
function M(e) {
|
|
636
636
|
return e && String(e).trim().toLowerCase();
|
|
637
637
|
}
|
|
638
638
|
function X(e) {
|
|
639
639
|
return e === !1 || e == null ? e : c.isArray(e) ? e.map(X) : String(e);
|
|
640
640
|
}
|
|
641
|
-
function
|
|
641
|
+
function wr(e) {
|
|
642
642
|
const t = /* @__PURE__ */ Object.create(null), r = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
643
643
|
let n;
|
|
644
644
|
for (; n = r.exec(e); )
|
|
645
645
|
t[n[1]] = n[2];
|
|
646
646
|
return t;
|
|
647
647
|
}
|
|
648
|
-
const
|
|
649
|
-
function
|
|
648
|
+
const yr = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
649
|
+
function ie(e, t, r, n, s) {
|
|
650
650
|
if (c.isFunction(n))
|
|
651
651
|
return n.call(this, t, r);
|
|
652
652
|
if (s && (t = r), !!c.isString(t)) {
|
|
@@ -663,8 +663,8 @@ function Er(e, t) {
|
|
|
663
663
|
const r = c.toCamelCase(" " + t);
|
|
664
664
|
["get", "set", "has"].forEach((n) => {
|
|
665
665
|
Object.defineProperty(e, n + r, {
|
|
666
|
-
value: function(s,
|
|
667
|
-
return this[n].call(this, t, s,
|
|
666
|
+
value: function(s, o, a) {
|
|
667
|
+
return this[n].call(this, t, s, o, a);
|
|
668
668
|
},
|
|
669
669
|
configurable: !0
|
|
670
670
|
});
|
|
@@ -676,39 +676,39 @@ let C = class {
|
|
|
676
676
|
}
|
|
677
677
|
set(t, r, n) {
|
|
678
678
|
const s = this;
|
|
679
|
-
function i
|
|
680
|
-
const l =
|
|
679
|
+
function o(i, d, u) {
|
|
680
|
+
const l = M(d);
|
|
681
681
|
if (!l)
|
|
682
682
|
throw new Error("header name must be a non-empty string");
|
|
683
683
|
const h = c.findKey(s, l);
|
|
684
|
-
(!h || s[h] === void 0 || u === !0 || u === void 0 && s[h] !== !1) && (s[h || d] = X(
|
|
684
|
+
(!h || s[h] === void 0 || u === !0 || u === void 0 && s[h] !== !1) && (s[h || d] = X(i));
|
|
685
685
|
}
|
|
686
|
-
const a = (
|
|
686
|
+
const a = (i, d) => c.forEach(i, (u, l) => o(u, l, d));
|
|
687
687
|
if (c.isPlainObject(t) || t instanceof this.constructor)
|
|
688
688
|
a(t, r);
|
|
689
|
-
else if (c.isString(t) && (t = t.trim()) && !
|
|
689
|
+
else if (c.isString(t) && (t = t.trim()) && !yr(t))
|
|
690
690
|
a(br(t), r);
|
|
691
691
|
else if (c.isObject(t) && c.isIterable(t)) {
|
|
692
|
-
let
|
|
692
|
+
let i = {}, d, u;
|
|
693
693
|
for (const l of t) {
|
|
694
694
|
if (!c.isArray(l))
|
|
695
695
|
throw TypeError("Object iterator must return a key-value pair");
|
|
696
|
-
|
|
696
|
+
i[u = l[0]] = (d = i[u]) ? c.isArray(d) ? [...d, l[1]] : [d, l[1]] : l[1];
|
|
697
697
|
}
|
|
698
|
-
a(
|
|
698
|
+
a(i, r);
|
|
699
699
|
} else
|
|
700
|
-
t != null &&
|
|
700
|
+
t != null && o(r, t, n);
|
|
701
701
|
return this;
|
|
702
702
|
}
|
|
703
703
|
get(t, r) {
|
|
704
|
-
if (t =
|
|
704
|
+
if (t = M(t), t) {
|
|
705
705
|
const n = c.findKey(this, t);
|
|
706
706
|
if (n) {
|
|
707
707
|
const s = this[n];
|
|
708
708
|
if (!r)
|
|
709
709
|
return s;
|
|
710
710
|
if (r === !0)
|
|
711
|
-
return
|
|
711
|
+
return wr(s);
|
|
712
712
|
if (c.isFunction(r))
|
|
713
713
|
return r.call(this, s, n);
|
|
714
714
|
if (c.isRegExp(r))
|
|
@@ -718,42 +718,42 @@ let C = class {
|
|
|
718
718
|
}
|
|
719
719
|
}
|
|
720
720
|
has(t, r) {
|
|
721
|
-
if (t =
|
|
721
|
+
if (t = M(t), t) {
|
|
722
722
|
const n = c.findKey(this, t);
|
|
723
|
-
return !!(n && this[n] !== void 0 && (!r ||
|
|
723
|
+
return !!(n && this[n] !== void 0 && (!r || ie(this, this[n], n, r)));
|
|
724
724
|
}
|
|
725
725
|
return !1;
|
|
726
726
|
}
|
|
727
727
|
delete(t, r) {
|
|
728
728
|
const n = this;
|
|
729
729
|
let s = !1;
|
|
730
|
-
function
|
|
731
|
-
if (a =
|
|
732
|
-
const
|
|
733
|
-
|
|
730
|
+
function o(a) {
|
|
731
|
+
if (a = M(a), a) {
|
|
732
|
+
const i = c.findKey(n, a);
|
|
733
|
+
i && (!r || ie(n, n[i], i, r)) && (delete n[i], s = !0);
|
|
734
734
|
}
|
|
735
735
|
}
|
|
736
|
-
return c.isArray(t) ? t.forEach(
|
|
736
|
+
return c.isArray(t) ? t.forEach(o) : o(t), s;
|
|
737
737
|
}
|
|
738
738
|
clear(t) {
|
|
739
739
|
const r = Object.keys(this);
|
|
740
740
|
let n = r.length, s = !1;
|
|
741
741
|
for (; n--; ) {
|
|
742
|
-
const
|
|
743
|
-
(!t ||
|
|
742
|
+
const o = r[n];
|
|
743
|
+
(!t || ie(this, this[o], o, t, !0)) && (delete this[o], s = !0);
|
|
744
744
|
}
|
|
745
745
|
return s;
|
|
746
746
|
}
|
|
747
747
|
normalize(t) {
|
|
748
748
|
const r = this, n = {};
|
|
749
|
-
return c.forEach(this, (s,
|
|
750
|
-
const a = c.findKey(n,
|
|
749
|
+
return c.forEach(this, (s, o) => {
|
|
750
|
+
const a = c.findKey(n, o);
|
|
751
751
|
if (a) {
|
|
752
|
-
r[a] = X(s), delete r[
|
|
752
|
+
r[a] = X(s), delete r[o];
|
|
753
753
|
return;
|
|
754
754
|
}
|
|
755
|
-
const
|
|
756
|
-
|
|
755
|
+
const i = t ? gr(o) : String(o).trim();
|
|
756
|
+
i !== o && delete r[o], r[i] = X(s), n[i] = !0;
|
|
757
757
|
}), this;
|
|
758
758
|
}
|
|
759
759
|
concat(...t) {
|
|
@@ -789,11 +789,11 @@ let C = class {
|
|
|
789
789
|
const n = (this[_e] = this[_e] = {
|
|
790
790
|
accessors: {}
|
|
791
791
|
}).accessors, s = this.prototype;
|
|
792
|
-
function
|
|
793
|
-
const
|
|
794
|
-
n[
|
|
792
|
+
function o(a) {
|
|
793
|
+
const i = M(a);
|
|
794
|
+
n[i] || (Er(s, a), n[i] = !0);
|
|
795
795
|
}
|
|
796
|
-
return c.isArray(t) ? t.forEach(
|
|
796
|
+
return c.isArray(t) ? t.forEach(o) : o(t), this;
|
|
797
797
|
}
|
|
798
798
|
};
|
|
799
799
|
C.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
@@ -808,26 +808,26 @@ c.reduceDescriptors(C.prototype, ({ value: e }, t) => {
|
|
|
808
808
|
});
|
|
809
809
|
c.freezeMethods(C);
|
|
810
810
|
function ce(e, t) {
|
|
811
|
-
const r = this ||
|
|
812
|
-
let
|
|
813
|
-
return c.forEach(e, function(
|
|
814
|
-
|
|
815
|
-
}), s.normalize(),
|
|
811
|
+
const r = this || K, n = t || r, s = C.from(n.headers);
|
|
812
|
+
let o = n.data;
|
|
813
|
+
return c.forEach(e, function(i) {
|
|
814
|
+
o = i.call(r, o, s.normalize(), t ? t.status : void 0);
|
|
815
|
+
}), s.normalize(), o;
|
|
816
816
|
}
|
|
817
817
|
function et(e) {
|
|
818
818
|
return !!(e && e.__CANCEL__);
|
|
819
819
|
}
|
|
820
|
-
function
|
|
821
|
-
|
|
820
|
+
function q(e, t, r) {
|
|
821
|
+
w.call(this, e ?? "canceled", w.ERR_CANCELED, t, r), this.name = "CanceledError";
|
|
822
822
|
}
|
|
823
|
-
c.inherits(
|
|
823
|
+
c.inherits(q, w, {
|
|
824
824
|
__CANCEL__: !0
|
|
825
825
|
});
|
|
826
826
|
function tt(e, t, r) {
|
|
827
827
|
const n = r.config.validateStatus;
|
|
828
|
-
!r.status || !n || n(r.status) ? e(r) : t(new
|
|
828
|
+
!r.status || !n || n(r.status) ? e(r) : t(new w(
|
|
829
829
|
"Request failed with status code " + r.status,
|
|
830
|
-
[
|
|
830
|
+
[w.ERR_BAD_REQUEST, w.ERR_BAD_RESPONSE][Math.floor(r.status / 100) - 4],
|
|
831
831
|
r.config,
|
|
832
832
|
r.request,
|
|
833
833
|
r
|
|
@@ -840,46 +840,46 @@ function Sr(e) {
|
|
|
840
840
|
function Rr(e, t) {
|
|
841
841
|
e = e || 10;
|
|
842
842
|
const r = new Array(e), n = new Array(e);
|
|
843
|
-
let s = 0,
|
|
843
|
+
let s = 0, o = 0, a;
|
|
844
844
|
return t = t !== void 0 ? t : 1e3, function(d) {
|
|
845
|
-
const u = Date.now(), l = n[
|
|
845
|
+
const u = Date.now(), l = n[o];
|
|
846
846
|
a || (a = u), r[s] = d, n[s] = u;
|
|
847
|
-
let h =
|
|
847
|
+
let h = o, p = 0;
|
|
848
848
|
for (; h !== s; )
|
|
849
849
|
p += r[h++], h = h % e;
|
|
850
|
-
if (s = (s + 1) % e, s ===
|
|
850
|
+
if (s = (s + 1) % e, s === o && (o = (o + 1) % e), u - a < t)
|
|
851
851
|
return;
|
|
852
|
-
const
|
|
853
|
-
return
|
|
852
|
+
const y = l && u - l;
|
|
853
|
+
return y ? Math.round(p * 1e3 / y) : void 0;
|
|
854
854
|
};
|
|
855
855
|
}
|
|
856
856
|
function Tr(e, t) {
|
|
857
|
-
let r = 0, n = 1e3 / t, s,
|
|
857
|
+
let r = 0, n = 1e3 / t, s, o;
|
|
858
858
|
const a = (u, l = Date.now()) => {
|
|
859
|
-
r = l, s = null,
|
|
859
|
+
r = l, s = null, o && (clearTimeout(o), o = null), e(...u);
|
|
860
860
|
};
|
|
861
861
|
return [(...u) => {
|
|
862
862
|
const l = Date.now(), h = l - r;
|
|
863
|
-
h >= n ? a(u, l) : (s = u,
|
|
864
|
-
|
|
863
|
+
h >= n ? a(u, l) : (s = u, o || (o = setTimeout(() => {
|
|
864
|
+
o = null, a(s);
|
|
865
865
|
}, n - h)));
|
|
866
866
|
}, () => s && a(s)];
|
|
867
867
|
}
|
|
868
868
|
const Z = (e, t, r = 3) => {
|
|
869
869
|
let n = 0;
|
|
870
870
|
const s = Rr(50, 250);
|
|
871
|
-
return Tr((
|
|
872
|
-
const a =
|
|
871
|
+
return Tr((o) => {
|
|
872
|
+
const a = o.loaded, i = o.lengthComputable ? o.total : void 0, d = a - n, u = s(d), l = a <= i;
|
|
873
873
|
n = a;
|
|
874
874
|
const h = {
|
|
875
875
|
loaded: a,
|
|
876
|
-
total:
|
|
877
|
-
progress:
|
|
876
|
+
total: i,
|
|
877
|
+
progress: i ? a / i : void 0,
|
|
878
878
|
bytes: d,
|
|
879
879
|
rate: u || void 0,
|
|
880
|
-
estimated: u &&
|
|
881
|
-
event:
|
|
882
|
-
lengthComputable:
|
|
880
|
+
estimated: u && i && l ? (i - a) / u : void 0,
|
|
881
|
+
event: o,
|
|
882
|
+
lengthComputable: i != null,
|
|
883
883
|
[t ? "download" : "upload"]: !0
|
|
884
884
|
};
|
|
885
885
|
e(h);
|
|
@@ -891,15 +891,15 @@ const Z = (e, t, r = 3) => {
|
|
|
891
891
|
total: e,
|
|
892
892
|
loaded: n
|
|
893
893
|
}), t[1]];
|
|
894
|
-
}, xe = (e) => (...t) => c.asap(() => e(...t)),
|
|
895
|
-
new URL(
|
|
896
|
-
|
|
897
|
-
) : () => !0,
|
|
894
|
+
}, xe = (e) => (...t) => c.asap(() => e(...t)), Ar = O.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (r) => (r = new URL(r, O.origin), e.protocol === r.protocol && e.host === r.host && (t || e.port === r.port)))(
|
|
895
|
+
new URL(O.origin),
|
|
896
|
+
O.navigator && /(msie|trident)/i.test(O.navigator.userAgent)
|
|
897
|
+
) : () => !0, Or = O.hasStandardBrowserEnv ? (
|
|
898
898
|
// Standard browser envs support document.cookie
|
|
899
899
|
{
|
|
900
|
-
write(e, t, r, n, s,
|
|
900
|
+
write(e, t, r, n, s, o) {
|
|
901
901
|
const a = [e + "=" + encodeURIComponent(t)];
|
|
902
|
-
c.isNumber(r) && a.push("expires=" + new Date(r).toGMTString()), c.isString(n) && a.push("path=" + n), c.isString(s) && a.push("domain=" + s),
|
|
902
|
+
c.isNumber(r) && a.push("expires=" + new Date(r).toGMTString()), c.isString(n) && a.push("path=" + n), c.isString(s) && a.push("domain=" + s), o === !0 && a.push("secure"), document.cookie = a.join("; ");
|
|
903
903
|
},
|
|
904
904
|
read(e) {
|
|
905
905
|
const t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)"));
|
|
@@ -932,7 +932,7 @@ function rt(e, t, r) {
|
|
|
932
932
|
return e && (n || r == !1) ? Cr(e, t) : t;
|
|
933
933
|
}
|
|
934
934
|
const Le = (e) => e instanceof C ? { ...e } : e;
|
|
935
|
-
function
|
|
935
|
+
function N(e, t) {
|
|
936
936
|
t = t || {};
|
|
937
937
|
const r = {};
|
|
938
938
|
function n(u, l, h, p) {
|
|
@@ -944,7 +944,7 @@ function P(e, t) {
|
|
|
944
944
|
return n(void 0, u, h, p);
|
|
945
945
|
} else return n(u, l, h, p);
|
|
946
946
|
}
|
|
947
|
-
function
|
|
947
|
+
function o(u, l) {
|
|
948
948
|
if (!c.isUndefined(l))
|
|
949
949
|
return n(void 0, l);
|
|
950
950
|
}
|
|
@@ -954,16 +954,16 @@ function P(e, t) {
|
|
|
954
954
|
return n(void 0, u);
|
|
955
955
|
} else return n(void 0, l);
|
|
956
956
|
}
|
|
957
|
-
function
|
|
957
|
+
function i(u, l, h) {
|
|
958
958
|
if (h in t)
|
|
959
959
|
return n(u, l);
|
|
960
960
|
if (h in e)
|
|
961
961
|
return n(void 0, u);
|
|
962
962
|
}
|
|
963
963
|
const d = {
|
|
964
|
-
url:
|
|
965
|
-
method:
|
|
966
|
-
data:
|
|
964
|
+
url: o,
|
|
965
|
+
method: o,
|
|
966
|
+
data: o,
|
|
967
967
|
baseURL: a,
|
|
968
968
|
transformRequest: a,
|
|
969
969
|
transformResponse: a,
|
|
@@ -988,43 +988,43 @@ function P(e, t) {
|
|
|
988
988
|
cancelToken: a,
|
|
989
989
|
socketPath: a,
|
|
990
990
|
responseEncoding: a,
|
|
991
|
-
validateStatus:
|
|
991
|
+
validateStatus: i,
|
|
992
992
|
headers: (u, l, h) => s(Le(u), Le(l), h, !0)
|
|
993
993
|
};
|
|
994
994
|
return c.forEach(Object.keys({ ...e, ...t }), function(l) {
|
|
995
995
|
const h = d[l] || s, p = h(e[l], t[l], l);
|
|
996
|
-
c.isUndefined(p) && h !==
|
|
996
|
+
c.isUndefined(p) && h !== i || (r[l] = p);
|
|
997
997
|
}), r;
|
|
998
998
|
}
|
|
999
999
|
const nt = (e) => {
|
|
1000
|
-
const t =
|
|
1001
|
-
let { data: r, withXSRFToken: n, xsrfHeaderName: s, xsrfCookieName:
|
|
1002
|
-
t.headers = a = C.from(a), t.url = Ye(rt(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer),
|
|
1000
|
+
const t = N({}, e);
|
|
1001
|
+
let { data: r, withXSRFToken: n, xsrfHeaderName: s, xsrfCookieName: o, headers: a, auth: i } = t;
|
|
1002
|
+
t.headers = a = C.from(a), t.url = Ye(rt(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), i && a.set(
|
|
1003
1003
|
"Authorization",
|
|
1004
|
-
"Basic " + btoa((
|
|
1004
|
+
"Basic " + btoa((i.username || "") + ":" + (i.password ? unescape(encodeURIComponent(i.password)) : ""))
|
|
1005
1005
|
);
|
|
1006
1006
|
let d;
|
|
1007
1007
|
if (c.isFormData(r)) {
|
|
1008
|
-
if (
|
|
1008
|
+
if (O.hasStandardBrowserEnv || O.hasStandardBrowserWebWorkerEnv)
|
|
1009
1009
|
a.setContentType(void 0);
|
|
1010
1010
|
else if ((d = a.getContentType()) !== !1) {
|
|
1011
1011
|
const [u, ...l] = d ? d.split(";").map((h) => h.trim()).filter(Boolean) : [];
|
|
1012
1012
|
a.setContentType([u || "multipart/form-data", ...l].join("; "));
|
|
1013
1013
|
}
|
|
1014
1014
|
}
|
|
1015
|
-
if (
|
|
1016
|
-
const u = s &&
|
|
1015
|
+
if (O.hasStandardBrowserEnv && (n && c.isFunction(n) && (n = n(t)), n || n !== !1 && Ar(t.url))) {
|
|
1016
|
+
const u = s && o && Or.read(o);
|
|
1017
1017
|
u && a.set(s, u);
|
|
1018
1018
|
}
|
|
1019
1019
|
return t;
|
|
1020
1020
|
}, xr = typeof XMLHttpRequest < "u", Lr = xr && function(e) {
|
|
1021
1021
|
return new Promise(function(r, n) {
|
|
1022
1022
|
const s = nt(e);
|
|
1023
|
-
let
|
|
1023
|
+
let o = s.data;
|
|
1024
1024
|
const a = C.from(s.headers).normalize();
|
|
1025
|
-
let { responseType:
|
|
1025
|
+
let { responseType: i, onUploadProgress: d, onDownloadProgress: u } = s, l, h, p, y, f;
|
|
1026
1026
|
function m() {
|
|
1027
|
-
|
|
1027
|
+
y && y(), f && f(), s.cancelToken && s.cancelToken.unsubscribe(l), s.signal && s.signal.removeEventListener("abort", l);
|
|
1028
1028
|
}
|
|
1029
1029
|
let b = new XMLHttpRequest();
|
|
1030
1030
|
b.open(s.method.toUpperCase(), s.url, !0), b.timeout = s.timeout;
|
|
@@ -1034,70 +1034,70 @@ const nt = (e) => {
|
|
|
1034
1034
|
const E = C.from(
|
|
1035
1035
|
"getAllResponseHeaders" in b && b.getAllResponseHeaders()
|
|
1036
1036
|
), T = {
|
|
1037
|
-
data: !
|
|
1037
|
+
data: !i || i === "text" || i === "json" ? b.responseText : b.response,
|
|
1038
1038
|
status: b.status,
|
|
1039
1039
|
statusText: b.statusText,
|
|
1040
1040
|
headers: E,
|
|
1041
1041
|
config: e,
|
|
1042
1042
|
request: b
|
|
1043
1043
|
};
|
|
1044
|
-
tt(function(
|
|
1045
|
-
r(
|
|
1046
|
-
}, function(
|
|
1047
|
-
n(
|
|
1044
|
+
tt(function(k) {
|
|
1045
|
+
r(k), m();
|
|
1046
|
+
}, function(k) {
|
|
1047
|
+
n(k), m();
|
|
1048
1048
|
}, T), b = null;
|
|
1049
1049
|
}
|
|
1050
1050
|
"onloadend" in b ? b.onloadend = g : b.onreadystatechange = function() {
|
|
1051
1051
|
!b || b.readyState !== 4 || b.status === 0 && !(b.responseURL && b.responseURL.indexOf("file:") === 0) || setTimeout(g);
|
|
1052
1052
|
}, b.onabort = function() {
|
|
1053
|
-
b && (n(new
|
|
1053
|
+
b && (n(new w("Request aborted", w.ECONNABORTED, e, b)), b = null);
|
|
1054
1054
|
}, b.onerror = function() {
|
|
1055
|
-
n(new
|
|
1055
|
+
n(new w("Network Error", w.ERR_NETWORK, e, b)), b = null;
|
|
1056
1056
|
}, b.ontimeout = function() {
|
|
1057
1057
|
let x = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
|
|
1058
1058
|
const T = s.transitional || Qe;
|
|
1059
|
-
s.timeoutErrorMessage && (x = s.timeoutErrorMessage), n(new
|
|
1059
|
+
s.timeoutErrorMessage && (x = s.timeoutErrorMessage), n(new w(
|
|
1060
1060
|
x,
|
|
1061
|
-
T.clarifyTimeoutError ?
|
|
1061
|
+
T.clarifyTimeoutError ? w.ETIMEDOUT : w.ECONNABORTED,
|
|
1062
1062
|
e,
|
|
1063
1063
|
b
|
|
1064
1064
|
)), b = null;
|
|
1065
|
-
},
|
|
1065
|
+
}, o === void 0 && a.setContentType(null), "setRequestHeader" in b && c.forEach(a.toJSON(), function(x, T) {
|
|
1066
1066
|
b.setRequestHeader(T, x);
|
|
1067
|
-
}), c.isUndefined(s.withCredentials) || (b.withCredentials = !!s.withCredentials),
|
|
1068
|
-
b && (n(!E || E.type ? new
|
|
1067
|
+
}), c.isUndefined(s.withCredentials) || (b.withCredentials = !!s.withCredentials), i && i !== "json" && (b.responseType = s.responseType), u && ([p, f] = Z(u, !0), b.addEventListener("progress", p)), d && b.upload && ([h, y] = Z(d), b.upload.addEventListener("progress", h), b.upload.addEventListener("loadend", y)), (s.cancelToken || s.signal) && (l = (E) => {
|
|
1068
|
+
b && (n(!E || E.type ? new q(null, e, b) : E), b.abort(), b = null);
|
|
1069
1069
|
}, s.cancelToken && s.cancelToken.subscribe(l), s.signal && (s.signal.aborted ? l() : s.signal.addEventListener("abort", l)));
|
|
1070
1070
|
const S = Sr(s.url);
|
|
1071
|
-
if (S &&
|
|
1072
|
-
n(new
|
|
1071
|
+
if (S && O.protocols.indexOf(S) === -1) {
|
|
1072
|
+
n(new w("Unsupported protocol " + S + ":", w.ERR_BAD_REQUEST, e));
|
|
1073
1073
|
return;
|
|
1074
1074
|
}
|
|
1075
|
-
b.send(
|
|
1075
|
+
b.send(o || null);
|
|
1076
1076
|
});
|
|
1077
1077
|
}, vr = (e, t) => {
|
|
1078
1078
|
const { length: r } = e = e ? e.filter(Boolean) : [];
|
|
1079
1079
|
if (t || r) {
|
|
1080
1080
|
let n = new AbortController(), s;
|
|
1081
|
-
const
|
|
1081
|
+
const o = function(u) {
|
|
1082
1082
|
if (!s) {
|
|
1083
|
-
s = !0,
|
|
1083
|
+
s = !0, i();
|
|
1084
1084
|
const l = u instanceof Error ? u : this.reason;
|
|
1085
|
-
n.abort(l instanceof
|
|
1085
|
+
n.abort(l instanceof w ? l : new q(l instanceof Error ? l.message : l));
|
|
1086
1086
|
}
|
|
1087
1087
|
};
|
|
1088
1088
|
let a = t && setTimeout(() => {
|
|
1089
|
-
a = null,
|
|
1089
|
+
a = null, o(new w(`timeout ${t} of ms exceeded`, w.ETIMEDOUT));
|
|
1090
1090
|
}, t);
|
|
1091
|
-
const
|
|
1091
|
+
const i = () => {
|
|
1092
1092
|
e && (a && clearTimeout(a), a = null, e.forEach((u) => {
|
|
1093
|
-
u.unsubscribe ? u.unsubscribe(
|
|
1093
|
+
u.unsubscribe ? u.unsubscribe(o) : u.removeEventListener("abort", o);
|
|
1094
1094
|
}), e = null);
|
|
1095
1095
|
};
|
|
1096
|
-
e.forEach((u) => u.addEventListener("abort",
|
|
1096
|
+
e.forEach((u) => u.addEventListener("abort", o));
|
|
1097
1097
|
const { signal: d } = n;
|
|
1098
|
-
return d.unsubscribe = () => c.asap(
|
|
1098
|
+
return d.unsubscribe = () => c.asap(i), d;
|
|
1099
1099
|
}
|
|
1100
|
-
},
|
|
1100
|
+
}, jr = function* (e, t) {
|
|
1101
1101
|
let r = e.byteLength;
|
|
1102
1102
|
if (r < t) {
|
|
1103
1103
|
yield e;
|
|
@@ -1106,10 +1106,10 @@ const nt = (e) => {
|
|
|
1106
1106
|
let n = 0, s;
|
|
1107
1107
|
for (; n < r; )
|
|
1108
1108
|
s = n + t, yield e.slice(n, s), n = s;
|
|
1109
|
-
},
|
|
1110
|
-
for await (const r of
|
|
1111
|
-
yield*
|
|
1112
|
-
},
|
|
1109
|
+
}, Fr = async function* (e, t) {
|
|
1110
|
+
for await (const r of kr(e))
|
|
1111
|
+
yield* jr(r, t);
|
|
1112
|
+
}, kr = async function* (e) {
|
|
1113
1113
|
if (e[Symbol.asyncIterator]) {
|
|
1114
1114
|
yield* e;
|
|
1115
1115
|
return;
|
|
@@ -1126,8 +1126,8 @@ const nt = (e) => {
|
|
|
1126
1126
|
await t.cancel();
|
|
1127
1127
|
}
|
|
1128
1128
|
}, ve = (e, t, r, n) => {
|
|
1129
|
-
const s =
|
|
1130
|
-
let
|
|
1129
|
+
const s = Fr(e, t);
|
|
1130
|
+
let o = 0, a, i = (d) => {
|
|
1131
1131
|
a || (a = !0, n && n(d));
|
|
1132
1132
|
};
|
|
1133
1133
|
return new ReadableStream({
|
|
@@ -1135,34 +1135,34 @@ const nt = (e) => {
|
|
|
1135
1135
|
try {
|
|
1136
1136
|
const { done: u, value: l } = await s.next();
|
|
1137
1137
|
if (u) {
|
|
1138
|
-
|
|
1138
|
+
i(), d.close();
|
|
1139
1139
|
return;
|
|
1140
1140
|
}
|
|
1141
1141
|
let h = l.byteLength;
|
|
1142
1142
|
if (r) {
|
|
1143
|
-
let p =
|
|
1143
|
+
let p = o += h;
|
|
1144
1144
|
r(p);
|
|
1145
1145
|
}
|
|
1146
1146
|
d.enqueue(new Uint8Array(l));
|
|
1147
1147
|
} catch (u) {
|
|
1148
|
-
throw
|
|
1148
|
+
throw i(u), u;
|
|
1149
1149
|
}
|
|
1150
1150
|
},
|
|
1151
1151
|
cancel(d) {
|
|
1152
|
-
return
|
|
1152
|
+
return i(d), s.return();
|
|
1153
1153
|
}
|
|
1154
1154
|
}, {
|
|
1155
1155
|
highWaterMark: 2
|
|
1156
1156
|
});
|
|
1157
|
-
}, ae = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", st = ae && typeof ReadableStream == "function",
|
|
1157
|
+
}, ae = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", st = ae && typeof ReadableStream == "function", Pr = ae && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), at = (e, ...t) => {
|
|
1158
1158
|
try {
|
|
1159
1159
|
return !!e(...t);
|
|
1160
1160
|
} catch {
|
|
1161
1161
|
return !1;
|
|
1162
1162
|
}
|
|
1163
|
-
},
|
|
1163
|
+
}, Ur = st && at(() => {
|
|
1164
1164
|
let e = !1;
|
|
1165
|
-
const t = new Request(
|
|
1165
|
+
const t = new Request(O.origin, {
|
|
1166
1166
|
body: new ReadableStream(),
|
|
1167
1167
|
method: "POST",
|
|
1168
1168
|
get duplex() {
|
|
@@ -1170,42 +1170,42 @@ const nt = (e) => {
|
|
|
1170
1170
|
}
|
|
1171
1171
|
}).headers.has("Content-Type");
|
|
1172
1172
|
return e && !t;
|
|
1173
|
-
}),
|
|
1173
|
+
}), je = 64 * 1024, he = st && at(() => c.isReadableStream(new Response("").body)), ee = {
|
|
1174
1174
|
stream: he && ((e) => e.body)
|
|
1175
1175
|
};
|
|
1176
1176
|
ae && ((e) => {
|
|
1177
1177
|
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
|
|
1178
1178
|
!ee[t] && (ee[t] = c.isFunction(e[t]) ? (r) => r[t]() : (r, n) => {
|
|
1179
|
-
throw new
|
|
1179
|
+
throw new w(`Response type '${t}' is not supported`, w.ERR_NOT_SUPPORT, n);
|
|
1180
1180
|
});
|
|
1181
1181
|
});
|
|
1182
1182
|
})(new Response());
|
|
1183
|
-
const
|
|
1183
|
+
const Nr = async (e) => {
|
|
1184
1184
|
if (e == null)
|
|
1185
1185
|
return 0;
|
|
1186
1186
|
if (c.isBlob(e))
|
|
1187
1187
|
return e.size;
|
|
1188
1188
|
if (c.isSpecCompliantForm(e))
|
|
1189
|
-
return (await new Request(
|
|
1189
|
+
return (await new Request(O.origin, {
|
|
1190
1190
|
method: "POST",
|
|
1191
1191
|
body: e
|
|
1192
1192
|
}).arrayBuffer()).byteLength;
|
|
1193
1193
|
if (c.isArrayBufferView(e) || c.isArrayBuffer(e))
|
|
1194
1194
|
return e.byteLength;
|
|
1195
1195
|
if (c.isURLSearchParams(e) && (e = e + ""), c.isString(e))
|
|
1196
|
-
return (await
|
|
1197
|
-
},
|
|
1196
|
+
return (await Pr(e)).byteLength;
|
|
1197
|
+
}, Dr = async (e, t) => {
|
|
1198
1198
|
const r = c.toFiniteNumber(e.getContentLength());
|
|
1199
|
-
return r ??
|
|
1200
|
-
},
|
|
1199
|
+
return r ?? Nr(t);
|
|
1200
|
+
}, Br = ae && (async (e) => {
|
|
1201
1201
|
let {
|
|
1202
1202
|
url: t,
|
|
1203
1203
|
method: r,
|
|
1204
1204
|
data: n,
|
|
1205
1205
|
signal: s,
|
|
1206
|
-
cancelToken:
|
|
1206
|
+
cancelToken: o,
|
|
1207
1207
|
timeout: a,
|
|
1208
|
-
onDownloadProgress:
|
|
1208
|
+
onDownloadProgress: i,
|
|
1209
1209
|
onUploadProgress: d,
|
|
1210
1210
|
responseType: u,
|
|
1211
1211
|
headers: l,
|
|
@@ -1213,31 +1213,31 @@ const Pr = async (e) => {
|
|
|
1213
1213
|
fetchOptions: p
|
|
1214
1214
|
} = nt(e);
|
|
1215
1215
|
u = u ? (u + "").toLowerCase() : "text";
|
|
1216
|
-
let
|
|
1217
|
-
const m =
|
|
1218
|
-
|
|
1216
|
+
let y = vr([s, o && o.toAbortSignal()], a), f;
|
|
1217
|
+
const m = y && y.unsubscribe && (() => {
|
|
1218
|
+
y.unsubscribe();
|
|
1219
1219
|
});
|
|
1220
1220
|
let b;
|
|
1221
1221
|
try {
|
|
1222
|
-
if (d &&
|
|
1222
|
+
if (d && Ur && r !== "get" && r !== "head" && (b = await Dr(l, n)) !== 0) {
|
|
1223
1223
|
let T = new Request(t, {
|
|
1224
1224
|
method: "POST",
|
|
1225
1225
|
body: n,
|
|
1226
1226
|
duplex: "half"
|
|
1227
|
-
}),
|
|
1228
|
-
if (c.isFormData(n) && (
|
|
1229
|
-
const [
|
|
1227
|
+
}), F;
|
|
1228
|
+
if (c.isFormData(n) && (F = T.headers.get("content-type")) && l.setContentType(F), T.body) {
|
|
1229
|
+
const [k, W] = Ce(
|
|
1230
1230
|
b,
|
|
1231
1231
|
Z(xe(d))
|
|
1232
1232
|
);
|
|
1233
|
-
n = ve(T.body,
|
|
1233
|
+
n = ve(T.body, je, k, W);
|
|
1234
1234
|
}
|
|
1235
1235
|
}
|
|
1236
1236
|
c.isString(h) || (h = h ? "include" : "omit");
|
|
1237
1237
|
const g = "credentials" in Request.prototype;
|
|
1238
1238
|
f = new Request(t, {
|
|
1239
1239
|
...p,
|
|
1240
|
-
signal:
|
|
1240
|
+
signal: y,
|
|
1241
1241
|
method: r.toUpperCase(),
|
|
1242
1242
|
headers: l.normalize().toJSON(),
|
|
1243
1243
|
body: n,
|
|
@@ -1246,26 +1246,26 @@ const Pr = async (e) => {
|
|
|
1246
1246
|
});
|
|
1247
1247
|
let S = await fetch(f, p);
|
|
1248
1248
|
const E = he && (u === "stream" || u === "response");
|
|
1249
|
-
if (he && (
|
|
1249
|
+
if (he && (i || E && m)) {
|
|
1250
1250
|
const T = {};
|
|
1251
1251
|
["status", "statusText", "headers"].forEach((Se) => {
|
|
1252
1252
|
T[Se] = S[Se];
|
|
1253
1253
|
});
|
|
1254
|
-
const
|
|
1255
|
-
|
|
1256
|
-
Z(xe(
|
|
1254
|
+
const F = c.toFiniteNumber(S.headers.get("content-length")), [k, W] = i && Ce(
|
|
1255
|
+
F,
|
|
1256
|
+
Z(xe(i), !0)
|
|
1257
1257
|
) || [];
|
|
1258
1258
|
S = new Response(
|
|
1259
|
-
ve(S.body,
|
|
1260
|
-
|
|
1259
|
+
ve(S.body, je, k, () => {
|
|
1260
|
+
W && W(), m && m();
|
|
1261
1261
|
}),
|
|
1262
1262
|
T
|
|
1263
1263
|
);
|
|
1264
1264
|
}
|
|
1265
1265
|
u = u || "text";
|
|
1266
1266
|
let x = await ee[c.findKey(ee, u) || "text"](S, e);
|
|
1267
|
-
return !E && m && m(), await new Promise((T,
|
|
1268
|
-
tt(T,
|
|
1267
|
+
return !E && m && m(), await new Promise((T, F) => {
|
|
1268
|
+
tt(T, F, {
|
|
1269
1269
|
data: x,
|
|
1270
1270
|
headers: C.from(S.headers),
|
|
1271
1271
|
status: S.status,
|
|
@@ -1276,16 +1276,16 @@ const Pr = async (e) => {
|
|
|
1276
1276
|
});
|
|
1277
1277
|
} catch (g) {
|
|
1278
1278
|
throw m && m(), g && g.name === "TypeError" && /Load failed|fetch/i.test(g.message) ? Object.assign(
|
|
1279
|
-
new
|
|
1279
|
+
new w("Network Error", w.ERR_NETWORK, e, f),
|
|
1280
1280
|
{
|
|
1281
1281
|
cause: g.cause || g
|
|
1282
1282
|
}
|
|
1283
|
-
) :
|
|
1283
|
+
) : w.from(g, g && g.code, e, f);
|
|
1284
1284
|
}
|
|
1285
1285
|
}), pe = {
|
|
1286
1286
|
http: Zt,
|
|
1287
1287
|
xhr: Lr,
|
|
1288
|
-
fetch:
|
|
1288
|
+
fetch: Br
|
|
1289
1289
|
};
|
|
1290
1290
|
c.forEach(pe, (e, t) => {
|
|
1291
1291
|
if (e) {
|
|
@@ -1296,29 +1296,29 @@ c.forEach(pe, (e, t) => {
|
|
|
1296
1296
|
Object.defineProperty(e, "adapterName", { value: t });
|
|
1297
1297
|
}
|
|
1298
1298
|
});
|
|
1299
|
-
const
|
|
1299
|
+
const Fe = (e) => `- ${e}`, Ir = (e) => c.isFunction(e) || e === null || e === !1, ot = {
|
|
1300
1300
|
getAdapter: (e) => {
|
|
1301
1301
|
e = c.isArray(e) ? e : [e];
|
|
1302
1302
|
const { length: t } = e;
|
|
1303
1303
|
let r, n;
|
|
1304
1304
|
const s = {};
|
|
1305
|
-
for (let
|
|
1306
|
-
r = e[
|
|
1305
|
+
for (let o = 0; o < t; o++) {
|
|
1306
|
+
r = e[o];
|
|
1307
1307
|
let a;
|
|
1308
1308
|
if (n = r, !Ir(r) && (n = pe[(a = String(r)).toLowerCase()], n === void 0))
|
|
1309
|
-
throw new
|
|
1309
|
+
throw new w(`Unknown adapter '${a}'`);
|
|
1310
1310
|
if (n)
|
|
1311
1311
|
break;
|
|
1312
|
-
s[a || "#" +
|
|
1312
|
+
s[a || "#" + o] = n;
|
|
1313
1313
|
}
|
|
1314
1314
|
if (!n) {
|
|
1315
|
-
const
|
|
1316
|
-
([
|
|
1315
|
+
const o = Object.entries(s).map(
|
|
1316
|
+
([i, d]) => `adapter ${i} ` + (d === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
1317
1317
|
);
|
|
1318
|
-
let a = t ?
|
|
1319
|
-
` +
|
|
1320
|
-
`) : " " +
|
|
1321
|
-
throw new
|
|
1318
|
+
let a = t ? o.length > 1 ? `since :
|
|
1319
|
+
` + o.map(Fe).join(`
|
|
1320
|
+
`) : " " + Fe(o[0]) : "as no adapter specified";
|
|
1321
|
+
throw new w(
|
|
1322
1322
|
"There is no suitable adapter to dispatch the request " + a,
|
|
1323
1323
|
"ERR_NOT_SUPPORT"
|
|
1324
1324
|
);
|
|
@@ -1329,13 +1329,13 @@ const ke = (e) => `- ${e}`, Ir = (e) => c.isFunction(e) || e === null || e === !
|
|
|
1329
1329
|
};
|
|
1330
1330
|
function le(e) {
|
|
1331
1331
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
1332
|
-
throw new
|
|
1332
|
+
throw new q(null, e);
|
|
1333
1333
|
}
|
|
1334
|
-
function
|
|
1334
|
+
function ke(e) {
|
|
1335
1335
|
return le(e), e.headers = C.from(e.headers), e.data = ce.call(
|
|
1336
1336
|
e,
|
|
1337
1337
|
e.transformRequest
|
|
1338
|
-
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1),
|
|
1338
|
+
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), ot.getAdapter(e.adapter || K.adapter)(e).then(function(n) {
|
|
1339
1339
|
return le(e), n.data = ce.call(
|
|
1340
1340
|
e,
|
|
1341
1341
|
e.transformResponse,
|
|
@@ -1349,60 +1349,60 @@ function je(e) {
|
|
|
1349
1349
|
), n.response.headers = C.from(n.response.headers))), Promise.reject(n);
|
|
1350
1350
|
});
|
|
1351
1351
|
}
|
|
1352
|
-
const
|
|
1352
|
+
const it = "1.11.0", oe = {};
|
|
1353
1353
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
|
1354
|
-
|
|
1354
|
+
oe[e] = function(n) {
|
|
1355
1355
|
return typeof n === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
1356
1356
|
};
|
|
1357
1357
|
});
|
|
1358
|
-
const
|
|
1359
|
-
|
|
1360
|
-
function s(
|
|
1361
|
-
return "[Axios v" +
|
|
1358
|
+
const Pe = {};
|
|
1359
|
+
oe.transitional = function(t, r, n) {
|
|
1360
|
+
function s(o, a) {
|
|
1361
|
+
return "[Axios v" + it + "] Transitional option '" + o + "'" + a + (n ? ". " + n : "");
|
|
1362
1362
|
}
|
|
1363
|
-
return (
|
|
1363
|
+
return (o, a, i) => {
|
|
1364
1364
|
if (t === !1)
|
|
1365
|
-
throw new
|
|
1365
|
+
throw new w(
|
|
1366
1366
|
s(a, " has been removed" + (r ? " in " + r : "")),
|
|
1367
|
-
|
|
1367
|
+
w.ERR_DEPRECATED
|
|
1368
1368
|
);
|
|
1369
|
-
return r && !
|
|
1369
|
+
return r && !Pe[a] && (Pe[a] = !0, console.warn(
|
|
1370
1370
|
s(
|
|
1371
1371
|
a,
|
|
1372
1372
|
" has been deprecated since v" + r + " and will be removed in the near future"
|
|
1373
1373
|
)
|
|
1374
|
-
)), t ? t(
|
|
1374
|
+
)), t ? t(o, a, i) : !0;
|
|
1375
1375
|
};
|
|
1376
1376
|
};
|
|
1377
|
-
|
|
1377
|
+
oe.spelling = function(t) {
|
|
1378
1378
|
return (r, n) => (console.warn(`${n} is likely a misspelling of ${t}`), !0);
|
|
1379
1379
|
};
|
|
1380
|
-
function
|
|
1380
|
+
function qr(e, t, r) {
|
|
1381
1381
|
if (typeof e != "object")
|
|
1382
|
-
throw new
|
|
1382
|
+
throw new w("options must be an object", w.ERR_BAD_OPTION_VALUE);
|
|
1383
1383
|
const n = Object.keys(e);
|
|
1384
1384
|
let s = n.length;
|
|
1385
1385
|
for (; s-- > 0; ) {
|
|
1386
|
-
const
|
|
1386
|
+
const o = n[s], a = t[o];
|
|
1387
1387
|
if (a) {
|
|
1388
|
-
const
|
|
1388
|
+
const i = e[o], d = i === void 0 || a(i, o, e);
|
|
1389
1389
|
if (d !== !0)
|
|
1390
|
-
throw new
|
|
1390
|
+
throw new w("option " + o + " must be " + d, w.ERR_BAD_OPTION_VALUE);
|
|
1391
1391
|
continue;
|
|
1392
1392
|
}
|
|
1393
1393
|
if (r !== !0)
|
|
1394
|
-
throw new
|
|
1394
|
+
throw new w("Unknown option " + o, w.ERR_BAD_OPTION);
|
|
1395
1395
|
}
|
|
1396
1396
|
}
|
|
1397
1397
|
const Y = {
|
|
1398
|
-
assertOptions:
|
|
1399
|
-
validators:
|
|
1398
|
+
assertOptions: qr,
|
|
1399
|
+
validators: oe
|
|
1400
1400
|
}, v = Y.validators;
|
|
1401
|
-
let
|
|
1401
|
+
let U = class {
|
|
1402
1402
|
constructor(t) {
|
|
1403
1403
|
this.defaults = t || {}, this.interceptors = {
|
|
1404
|
-
request: new
|
|
1405
|
-
response: new
|
|
1404
|
+
request: new Oe(),
|
|
1405
|
+
response: new Oe()
|
|
1406
1406
|
};
|
|
1407
1407
|
}
|
|
1408
1408
|
/**
|
|
@@ -1420,10 +1420,10 @@ let N = class {
|
|
|
1420
1420
|
if (n instanceof Error) {
|
|
1421
1421
|
let s = {};
|
|
1422
1422
|
Error.captureStackTrace ? Error.captureStackTrace(s) : s = new Error();
|
|
1423
|
-
const
|
|
1423
|
+
const o = s.stack ? s.stack.replace(/^.+\n/, "") : "";
|
|
1424
1424
|
try {
|
|
1425
|
-
n.stack ?
|
|
1426
|
-
` +
|
|
1425
|
+
n.stack ? o && !String(n.stack).endsWith(o.replace(/^.+\n.+\n/, "")) && (n.stack += `
|
|
1426
|
+
` + o) : n.stack = o;
|
|
1427
1427
|
} catch {
|
|
1428
1428
|
}
|
|
1429
1429
|
}
|
|
@@ -1431,8 +1431,8 @@ let N = class {
|
|
|
1431
1431
|
}
|
|
1432
1432
|
}
|
|
1433
1433
|
_request(t, r) {
|
|
1434
|
-
typeof t == "string" ? (r = r || {}, r.url = t) : r = t || {}, r =
|
|
1435
|
-
const { transitional: n, paramsSerializer: s, headers:
|
|
1434
|
+
typeof t == "string" ? (r = r || {}, r.url = t) : r = t || {}, r = N(this.defaults, r);
|
|
1435
|
+
const { transitional: n, paramsSerializer: s, headers: o } = r;
|
|
1436
1436
|
n !== void 0 && Y.assertOptions(n, {
|
|
1437
1437
|
silentJSONParsing: v.transitional(v.boolean),
|
|
1438
1438
|
forcedJSONParsing: v.transitional(v.boolean),
|
|
@@ -1446,20 +1446,20 @@ let N = class {
|
|
|
1446
1446
|
baseUrl: v.spelling("baseURL"),
|
|
1447
1447
|
withXsrfToken: v.spelling("withXSRFToken")
|
|
1448
1448
|
}, !0), r.method = (r.method || this.defaults.method || "get").toLowerCase();
|
|
1449
|
-
let a =
|
|
1450
|
-
|
|
1451
|
-
|
|
1449
|
+
let a = o && c.merge(
|
|
1450
|
+
o.common,
|
|
1451
|
+
o[r.method]
|
|
1452
1452
|
);
|
|
1453
|
-
|
|
1453
|
+
o && c.forEach(
|
|
1454
1454
|
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
1455
1455
|
(f) => {
|
|
1456
|
-
delete
|
|
1456
|
+
delete o[f];
|
|
1457
1457
|
}
|
|
1458
|
-
), r.headers = C.concat(a,
|
|
1459
|
-
const
|
|
1458
|
+
), r.headers = C.concat(a, o);
|
|
1459
|
+
const i = [];
|
|
1460
1460
|
let d = !0;
|
|
1461
1461
|
this.interceptors.request.forEach(function(m) {
|
|
1462
|
-
typeof m.runWhen == "function" && m.runWhen(r) === !1 || (d = d && m.synchronous,
|
|
1462
|
+
typeof m.runWhen == "function" && m.runWhen(r) === !1 || (d = d && m.synchronous, i.unshift(m.fulfilled, m.rejected));
|
|
1463
1463
|
});
|
|
1464
1464
|
const u = [];
|
|
1465
1465
|
this.interceptors.response.forEach(function(m) {
|
|
@@ -1467,24 +1467,24 @@ let N = class {
|
|
|
1467
1467
|
});
|
|
1468
1468
|
let l, h = 0, p;
|
|
1469
1469
|
if (!d) {
|
|
1470
|
-
const f = [
|
|
1471
|
-
for (f.unshift(...
|
|
1470
|
+
const f = [ke.bind(this), void 0];
|
|
1471
|
+
for (f.unshift(...i), f.push(...u), p = f.length, l = Promise.resolve(r); h < p; )
|
|
1472
1472
|
l = l.then(f[h++], f[h++]);
|
|
1473
1473
|
return l;
|
|
1474
1474
|
}
|
|
1475
|
-
p =
|
|
1476
|
-
let
|
|
1475
|
+
p = i.length;
|
|
1476
|
+
let y = r;
|
|
1477
1477
|
for (h = 0; h < p; ) {
|
|
1478
|
-
const f =
|
|
1478
|
+
const f = i[h++], m = i[h++];
|
|
1479
1479
|
try {
|
|
1480
|
-
|
|
1480
|
+
y = f(y);
|
|
1481
1481
|
} catch (b) {
|
|
1482
1482
|
m.call(this, b);
|
|
1483
1483
|
break;
|
|
1484
1484
|
}
|
|
1485
1485
|
}
|
|
1486
1486
|
try {
|
|
1487
|
-
l =
|
|
1487
|
+
l = ke.call(this, y);
|
|
1488
1488
|
} catch (f) {
|
|
1489
1489
|
return Promise.reject(f);
|
|
1490
1490
|
}
|
|
@@ -1493,14 +1493,14 @@ let N = class {
|
|
|
1493
1493
|
return l;
|
|
1494
1494
|
}
|
|
1495
1495
|
getUri(t) {
|
|
1496
|
-
t =
|
|
1496
|
+
t = N(this.defaults, t);
|
|
1497
1497
|
const r = rt(t.baseURL, t.url, t.allowAbsoluteUrls);
|
|
1498
1498
|
return Ye(r, t.params, t.paramsSerializer);
|
|
1499
1499
|
}
|
|
1500
1500
|
};
|
|
1501
1501
|
c.forEach(["delete", "get", "head", "options"], function(t) {
|
|
1502
|
-
|
|
1503
|
-
return this.request(
|
|
1502
|
+
U.prototype[t] = function(r, n) {
|
|
1503
|
+
return this.request(N(n || {}, {
|
|
1504
1504
|
method: t,
|
|
1505
1505
|
url: r,
|
|
1506
1506
|
data: (n || {}).data
|
|
@@ -1509,44 +1509,44 @@ c.forEach(["delete", "get", "head", "options"], function(t) {
|
|
|
1509
1509
|
});
|
|
1510
1510
|
c.forEach(["post", "put", "patch"], function(t) {
|
|
1511
1511
|
function r(n) {
|
|
1512
|
-
return function(
|
|
1513
|
-
return this.request(
|
|
1512
|
+
return function(o, a, i) {
|
|
1513
|
+
return this.request(N(i || {}, {
|
|
1514
1514
|
method: t,
|
|
1515
1515
|
headers: n ? {
|
|
1516
1516
|
"Content-Type": "multipart/form-data"
|
|
1517
1517
|
} : {},
|
|
1518
|
-
url:
|
|
1518
|
+
url: o,
|
|
1519
1519
|
data: a
|
|
1520
1520
|
}));
|
|
1521
1521
|
};
|
|
1522
1522
|
}
|
|
1523
|
-
|
|
1523
|
+
U.prototype[t] = r(), U.prototype[t + "Form"] = r(!0);
|
|
1524
1524
|
});
|
|
1525
|
-
let
|
|
1525
|
+
let Mr = class ct {
|
|
1526
1526
|
constructor(t) {
|
|
1527
1527
|
if (typeof t != "function")
|
|
1528
1528
|
throw new TypeError("executor must be a function.");
|
|
1529
1529
|
let r;
|
|
1530
|
-
this.promise = new Promise(function(
|
|
1531
|
-
r =
|
|
1530
|
+
this.promise = new Promise(function(o) {
|
|
1531
|
+
r = o;
|
|
1532
1532
|
});
|
|
1533
1533
|
const n = this;
|
|
1534
1534
|
this.promise.then((s) => {
|
|
1535
1535
|
if (!n._listeners) return;
|
|
1536
|
-
let
|
|
1537
|
-
for (;
|
|
1538
|
-
n._listeners[
|
|
1536
|
+
let o = n._listeners.length;
|
|
1537
|
+
for (; o-- > 0; )
|
|
1538
|
+
n._listeners[o](s);
|
|
1539
1539
|
n._listeners = null;
|
|
1540
1540
|
}), this.promise.then = (s) => {
|
|
1541
|
-
let
|
|
1542
|
-
const a = new Promise((
|
|
1543
|
-
n.subscribe(
|
|
1541
|
+
let o;
|
|
1542
|
+
const a = new Promise((i) => {
|
|
1543
|
+
n.subscribe(i), o = i;
|
|
1544
1544
|
}).then(s);
|
|
1545
1545
|
return a.cancel = function() {
|
|
1546
|
-
n.unsubscribe(
|
|
1546
|
+
n.unsubscribe(o);
|
|
1547
1547
|
}, a;
|
|
1548
|
-
}, t(function(
|
|
1549
|
-
n.reason || (n.reason = new
|
|
1548
|
+
}, t(function(o, a, i) {
|
|
1549
|
+
n.reason || (n.reason = new q(o, a, i), r(n.reason));
|
|
1550
1550
|
});
|
|
1551
1551
|
}
|
|
1552
1552
|
/**
|
|
@@ -1672,64 +1672,64 @@ Object.entries(me).forEach(([e, t]) => {
|
|
|
1672
1672
|
me[t] = e;
|
|
1673
1673
|
});
|
|
1674
1674
|
function lt(e) {
|
|
1675
|
-
const t = new
|
|
1676
|
-
return c.extend(r,
|
|
1677
|
-
return lt(
|
|
1675
|
+
const t = new U(e), r = Ie(U.prototype.request, t);
|
|
1676
|
+
return c.extend(r, U.prototype, t, { allOwnKeys: !0 }), c.extend(r, t, null, { allOwnKeys: !0 }), r.create = function(s) {
|
|
1677
|
+
return lt(N(e, s));
|
|
1678
1678
|
}, r;
|
|
1679
1679
|
}
|
|
1680
|
-
const R = lt(
|
|
1681
|
-
R.Axios =
|
|
1682
|
-
R.CanceledError =
|
|
1683
|
-
R.CancelToken =
|
|
1680
|
+
const R = lt(K);
|
|
1681
|
+
R.Axios = U;
|
|
1682
|
+
R.CanceledError = q;
|
|
1683
|
+
R.CancelToken = Mr;
|
|
1684
1684
|
R.isCancel = et;
|
|
1685
|
-
R.VERSION =
|
|
1685
|
+
R.VERSION = it;
|
|
1686
1686
|
R.toFormData = se;
|
|
1687
|
-
R.AxiosError =
|
|
1687
|
+
R.AxiosError = w;
|
|
1688
1688
|
R.Cancel = R.CanceledError;
|
|
1689
1689
|
R.all = function(t) {
|
|
1690
1690
|
return Promise.all(t);
|
|
1691
1691
|
};
|
|
1692
1692
|
R.spread = Hr;
|
|
1693
1693
|
R.isAxiosError = zr;
|
|
1694
|
-
R.mergeConfig =
|
|
1694
|
+
R.mergeConfig = N;
|
|
1695
1695
|
R.AxiosHeaders = C;
|
|
1696
1696
|
R.formToJSON = (e) => Ze(c.isHTMLForm(e) ? new FormData(e) : e);
|
|
1697
|
-
R.getAdapter =
|
|
1697
|
+
R.getAdapter = ot.getAdapter;
|
|
1698
1698
|
R.HttpStatusCode = me;
|
|
1699
1699
|
R.default = R;
|
|
1700
1700
|
const {
|
|
1701
|
-
Axios:
|
|
1702
|
-
AxiosError:
|
|
1703
|
-
CanceledError:
|
|
1704
|
-
isCancel:
|
|
1705
|
-
CancelToken:
|
|
1706
|
-
VERSION:
|
|
1707
|
-
all:
|
|
1708
|
-
Cancel:
|
|
1709
|
-
isAxiosError:
|
|
1710
|
-
spread:
|
|
1711
|
-
toFormData:
|
|
1712
|
-
AxiosHeaders:
|
|
1713
|
-
HttpStatusCode:
|
|
1714
|
-
formToJSON:
|
|
1715
|
-
getAdapter:
|
|
1716
|
-
mergeConfig:
|
|
1701
|
+
Axios: Rn,
|
|
1702
|
+
AxiosError: Tn,
|
|
1703
|
+
CanceledError: An,
|
|
1704
|
+
isCancel: On,
|
|
1705
|
+
CancelToken: _n,
|
|
1706
|
+
VERSION: Cn,
|
|
1707
|
+
all: xn,
|
|
1708
|
+
Cancel: Ln,
|
|
1709
|
+
isAxiosError: vn,
|
|
1710
|
+
spread: jn,
|
|
1711
|
+
toFormData: Fn,
|
|
1712
|
+
AxiosHeaders: kn,
|
|
1713
|
+
HttpStatusCode: Pn,
|
|
1714
|
+
formToJSON: Un,
|
|
1715
|
+
getAdapter: Nn,
|
|
1716
|
+
mergeConfig: Dn
|
|
1717
1717
|
} = R;
|
|
1718
|
-
var
|
|
1719
|
-
function
|
|
1718
|
+
var Jr = Symbol("cache-parser");
|
|
1719
|
+
function Ue(e, t) {
|
|
1720
1720
|
(t == null || t > e.length) && (t = e.length);
|
|
1721
1721
|
for (var r = 0, n = new Array(t); r < t; r++) n[r] = e[r];
|
|
1722
1722
|
return n;
|
|
1723
1723
|
}
|
|
1724
|
-
function
|
|
1724
|
+
function D(e) {
|
|
1725
1725
|
return (typeof e == "string" || typeof e == "number") && (e = Number(e)) >= 0 && e < 1 / 0;
|
|
1726
1726
|
}
|
|
1727
|
-
function
|
|
1727
|
+
function j(e) {
|
|
1728
1728
|
return e === !0 || typeof e == "number" || typeof e == "string" && e !== "false";
|
|
1729
1729
|
}
|
|
1730
|
-
var
|
|
1730
|
+
var B = Number;
|
|
1731
1731
|
function ut(e) {
|
|
1732
|
-
var t = Object.defineProperty({},
|
|
1732
|
+
var t = Object.defineProperty({}, Jr, { enumerable: !1, value: 1 });
|
|
1733
1733
|
if (!e || typeof e != "string") return t;
|
|
1734
1734
|
var r = function(u) {
|
|
1735
1735
|
for (var l, h = {}, p = function(m, b) {
|
|
@@ -1737,9 +1737,9 @@ function ut(e) {
|
|
|
1737
1737
|
if (g) return (g = g.call(m)).next.bind(g);
|
|
1738
1738
|
if (Array.isArray(m) || (g = function(E, x) {
|
|
1739
1739
|
if (E) {
|
|
1740
|
-
if (typeof E == "string") return
|
|
1740
|
+
if (typeof E == "string") return Ue(E, x);
|
|
1741
1741
|
var T = Object.prototype.toString.call(E).slice(8, -1);
|
|
1742
|
-
return T === "Object" && E.constructor && (T = E.constructor.name), T === "Map" || T === "Set" ? Array.from(E) : T === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(T) ?
|
|
1742
|
+
return T === "Object" && E.constructor && (T = E.constructor.name), T === "Map" || T === "Set" ? Array.from(E) : T === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(T) ? Ue(E, x) : void 0;
|
|
1743
1743
|
}
|
|
1744
1744
|
}(m))) {
|
|
1745
1745
|
g && (m = g);
|
|
@@ -1751,30 +1751,30 @@ function ut(e) {
|
|
|
1751
1751
|
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
1752
1752
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1753
1753
|
}(u.toLowerCase().replace(/\s+/g, "").split(",")); !(l = p()).done; ) {
|
|
1754
|
-
var
|
|
1755
|
-
h[f[0]] = (
|
|
1754
|
+
var y, f = l.value.split("=", 2);
|
|
1755
|
+
h[f[0]] = (y = f[1]) == null || y;
|
|
1756
1756
|
}
|
|
1757
1757
|
return h;
|
|
1758
|
-
}(e), n = r["max-age"], s = r["max-stale"],
|
|
1759
|
-
return
|
|
1758
|
+
}(e), n = r["max-age"], s = r["max-stale"], o = r["min-fresh"], a = r["s-maxage"], i = r["stale-if-error"], d = r["stale-while-revalidate"];
|
|
1759
|
+
return j(r.immutable) && (t.immutable = !0), D(n) && (t.maxAge = B(n)), D(s) && (t.maxStale = B(s)), D(o) && (t.minFresh = B(o)), j(r["must-revalidate"]) && (t.mustRevalidate = !0), j(r["must-understand"]) && (t.mustUnderstand = !0), j(r["no-cache"]) && (t.noCache = !0), j(r["no-store"]) && (t.noStore = !0), j(r["no-transform"]) && (t.noTransform = !0), j(r["only-if-cached"]) && (t.onlyIfCached = !0), j(r.private) && (t.private = !0), j(r["proxy-revalidate"]) && (t.proxyRevalidate = !0), j(r.public) && (t.public = !0), D(a) && (t.sMaxAge = B(a)), D(i) && (t.staleIfError = B(i)), D(d) && (t.staleWhileRevalidate = B(d)), t;
|
|
1760
1760
|
}
|
|
1761
|
-
var
|
|
1762
|
-
function
|
|
1761
|
+
var $r = Symbol();
|
|
1762
|
+
function Gr() {
|
|
1763
1763
|
var e, t, r = new Promise(function(n, s) {
|
|
1764
1764
|
e = n, t = s;
|
|
1765
1765
|
});
|
|
1766
|
-
return r.resolve = e, r.reject = t, r[
|
|
1766
|
+
return r.resolve = e, r.reject = t, r[$r] = 1, r;
|
|
1767
1767
|
}
|
|
1768
|
-
function
|
|
1768
|
+
function Kr(e, t) {
|
|
1769
1769
|
return e > t ? 1 : -1;
|
|
1770
1770
|
}
|
|
1771
1771
|
function Q(e, t) {
|
|
1772
1772
|
var r = 5381;
|
|
1773
1773
|
if (typeof e == "object" && e !== null && (e.toString === Object.prototype.toString || e.toString === Array.prototype.toString)) {
|
|
1774
1774
|
t || (t = /* @__PURE__ */ new WeakSet());
|
|
1775
|
-
for (var n = Object.keys(e).sort(
|
|
1776
|
-
var
|
|
1777
|
-
if (r = 33 * r ^ Q(
|
|
1775
|
+
for (var n = Object.keys(e).sort(Kr), s = 0; s < n.length; s++) {
|
|
1776
|
+
var o = n[s], a = e[o];
|
|
1777
|
+
if (r = 33 * r ^ Q(o, t), typeof a == "object" && a !== null && (e.toString === Object.prototype.toString || e.toString === Array.prototype.toString)) {
|
|
1778
1778
|
if (t.has(a)) continue;
|
|
1779
1779
|
t.add(a);
|
|
1780
1780
|
}
|
|
@@ -1782,13 +1782,13 @@ function Q(e, t) {
|
|
|
1782
1782
|
}
|
|
1783
1783
|
return 33 * r ^ Q(e.constructor, t);
|
|
1784
1784
|
}
|
|
1785
|
-
var
|
|
1785
|
+
var i = typeof e;
|
|
1786
1786
|
try {
|
|
1787
|
-
e instanceof Date ?
|
|
1787
|
+
e instanceof Date ? i += e.getTime() : i += String(e);
|
|
1788
1788
|
} catch {
|
|
1789
|
-
|
|
1789
|
+
i += String(Object.assign({}, e));
|
|
1790
1790
|
}
|
|
1791
|
-
for (var d = 0; d <
|
|
1791
|
+
for (var d = 0; d < i.length; d++) r = 33 * r ^ i.charCodeAt(d);
|
|
1792
1792
|
return r;
|
|
1793
1793
|
}
|
|
1794
1794
|
/*!
|
|
@@ -1796,7 +1796,7 @@ function Q(e, t) {
|
|
|
1796
1796
|
* (c) 2021-present Arthur Fiorette & Contributors
|
|
1797
1797
|
* Released under the MIT License.
|
|
1798
1798
|
*/
|
|
1799
|
-
const
|
|
1799
|
+
const A = Object.freeze({
|
|
1800
1800
|
/**
|
|
1801
1801
|
* ```txt
|
|
1802
1802
|
* If-Modified-Since: <day-name>, <day> <month> <year> <hour>:<minute>:<second> GMT
|
|
@@ -1897,9 +1897,9 @@ const O = Object.freeze({
|
|
|
1897
1897
|
* ```
|
|
1898
1898
|
*/
|
|
1899
1899
|
XAxiosCacheStaleIfError: "x-axios-cache-stale-if-error"
|
|
1900
|
-
}),
|
|
1900
|
+
}), Wr = (e, t) => {
|
|
1901
1901
|
if (!e) return "not enough headers";
|
|
1902
|
-
const r = e[
|
|
1902
|
+
const r = e[A.CacheControl];
|
|
1903
1903
|
if (r) {
|
|
1904
1904
|
const s = ut(String(r));
|
|
1905
1905
|
if (
|
|
@@ -1913,11 +1913,11 @@ const O = Object.freeze({
|
|
|
1913
1913
|
cache: 1e3 * 60 * 60 * 24 * 365
|
|
1914
1914
|
};
|
|
1915
1915
|
if (s.maxAge !== void 0) {
|
|
1916
|
-
const
|
|
1916
|
+
const o = e[A.Age];
|
|
1917
1917
|
return {
|
|
1918
|
-
cache:
|
|
1918
|
+
cache: o ? (
|
|
1919
1919
|
// If age is present, we must subtract it from maxAge
|
|
1920
|
-
(s.maxAge - Number(
|
|
1920
|
+
(s.maxAge - Number(o)) * 1e3
|
|
1921
1921
|
) : s.maxAge * 1e3,
|
|
1922
1922
|
// Already out of date, must be requested again
|
|
1923
1923
|
stale: (
|
|
@@ -1931,7 +1931,7 @@ const O = Object.freeze({
|
|
|
1931
1931
|
};
|
|
1932
1932
|
}
|
|
1933
1933
|
}
|
|
1934
|
-
const n = e[
|
|
1934
|
+
const n = e[A.Expires];
|
|
1935
1935
|
if (n) {
|
|
1936
1936
|
const s = Date.parse(String(n)) - Date.now();
|
|
1937
1937
|
return s >= 0 ? {
|
|
@@ -1950,7 +1950,7 @@ function z() {
|
|
|
1950
1950
|
return e;
|
|
1951
1951
|
}, z.apply(this, arguments);
|
|
1952
1952
|
}
|
|
1953
|
-
async function
|
|
1953
|
+
async function Vr(e, t) {
|
|
1954
1954
|
if (typeof t == "function")
|
|
1955
1955
|
return t(e);
|
|
1956
1956
|
const {
|
|
@@ -1961,17 +1961,17 @@ async function Wr(e, t) {
|
|
|
1961
1961
|
if (r && !await r(e.status) || n && !await n(e))
|
|
1962
1962
|
return !1;
|
|
1963
1963
|
if (s)
|
|
1964
|
-
for (const [a,
|
|
1965
|
-
var
|
|
1966
|
-
if (!await
|
|
1964
|
+
for (const [a, i] of Object.entries(s)) {
|
|
1965
|
+
var o;
|
|
1966
|
+
if (!await i(
|
|
1967
1967
|
// Avoid bugs in case the header is not in lower case
|
|
1968
|
-
(
|
|
1968
|
+
(o = e.headers[a.toLowerCase()]) != null ? o : e.headers[a]
|
|
1969
1969
|
))
|
|
1970
1970
|
return !1;
|
|
1971
1971
|
}
|
|
1972
1972
|
return !0;
|
|
1973
1973
|
}
|
|
1974
|
-
function
|
|
1974
|
+
function Ne(e, t) {
|
|
1975
1975
|
return e instanceof RegExp ? (e.lastIndex = 0, e.test(t)) : t.includes(e);
|
|
1976
1976
|
}
|
|
1977
1977
|
function Xr(e) {
|
|
@@ -1988,12 +1988,12 @@ function Yr(e, t) {
|
|
|
1988
1988
|
} = t.cache;
|
|
1989
1989
|
if (r) {
|
|
1990
1990
|
var s;
|
|
1991
|
-
const
|
|
1992
|
-
|
|
1991
|
+
const o = r === !0 ? (s = e.data) == null ? void 0 : s.headers[A.ETag] : r;
|
|
1992
|
+
o && (t.headers[A.IfNoneMatch] = o);
|
|
1993
1993
|
}
|
|
1994
|
-
n && (t.headers[
|
|
1994
|
+
n && (t.headers[A.IfModifiedSince] = n === !0 ? (
|
|
1995
1995
|
// If last-modified is not present, use the createdAt timestamp
|
|
1996
|
-
e.data.headers[
|
|
1996
|
+
e.data.headers[A.LastModified] || new Date(e.createdAt).toUTCString()
|
|
1997
1997
|
) : n.toUTCString());
|
|
1998
1998
|
}
|
|
1999
1999
|
function Qr(e, t) {
|
|
@@ -2010,13 +2010,13 @@ function Zr(e) {
|
|
|
2010
2010
|
return r;
|
|
2011
2011
|
if (r.cache = z({}, e.defaults.cache, r.cache), typeof r.cache.cachePredicate == "object" && r.cache.cachePredicate.ignoreUrls && r.url) {
|
|
2012
2012
|
for (const m of r.cache.cachePredicate.ignoreUrls)
|
|
2013
|
-
if (
|
|
2013
|
+
if (Ne(m, r.url))
|
|
2014
2014
|
return r;
|
|
2015
2015
|
}
|
|
2016
2016
|
if (typeof r.cache.cachePredicate == "object" && r.cache.cachePredicate.allowUrls && r.url) {
|
|
2017
2017
|
let m = !1;
|
|
2018
2018
|
for (const b of r.cache.cachePredicate.allowUrls)
|
|
2019
|
-
if (
|
|
2019
|
+
if (Ne(b, r.url)) {
|
|
2020
2020
|
m = !0;
|
|
2021
2021
|
break;
|
|
2022
2022
|
}
|
|
@@ -2024,21 +2024,21 @@ function Zr(e) {
|
|
|
2024
2024
|
return r;
|
|
2025
2025
|
}
|
|
2026
2026
|
if (r.cache.cacheTakeover) {
|
|
2027
|
-
var n, s,
|
|
2028
|
-
(
|
|
2027
|
+
var n, s, o, a, i, d, u, l, h;
|
|
2028
|
+
(o = (n = r.headers)[s = A.CacheControl]) != null || (n[s] = "no-cache"), (d = (a = r.headers)[i = A.Pragma]) != null || (a[i] = "no-cache"), (h = (u = r.headers)[l = A.Expires]) != null || (u[l] = "0");
|
|
2029
2029
|
}
|
|
2030
2030
|
if (!be(r.method, r.cache.methods))
|
|
2031
2031
|
return r;
|
|
2032
2032
|
let p = await e.storage.get(r.id, r);
|
|
2033
|
-
const
|
|
2034
|
-
e: if (p.state === "empty" || p.state === "stale" || p.state === "must-revalidate" ||
|
|
2035
|
-
if (e.waiting.has(r.id) && !
|
|
2033
|
+
const y = r.cache.override;
|
|
2034
|
+
e: if (p.state === "empty" || p.state === "stale" || p.state === "must-revalidate" || y) {
|
|
2035
|
+
if (e.waiting.has(r.id) && !y && (p = await e.storage.get(r.id, r), p.state !== "empty" && p.state !== "must-revalidate"))
|
|
2036
2036
|
break e;
|
|
2037
|
-
const m =
|
|
2037
|
+
const m = Gr();
|
|
2038
2038
|
return e.waiting.set(r.id, m), m.catch(() => {
|
|
2039
2039
|
}), await e.storage.set(r.id, {
|
|
2040
2040
|
state: "loading",
|
|
2041
|
-
previous:
|
|
2041
|
+
previous: y ? (
|
|
2042
2042
|
// Simply determine if the request is stale or not
|
|
2043
2043
|
// based if it had previous data or not
|
|
2044
2044
|
p.data ? "stale" : "empty"
|
|
@@ -2048,7 +2048,7 @@ function Zr(e) {
|
|
|
2048
2048
|
),
|
|
2049
2049
|
data: p.data,
|
|
2050
2050
|
// If the cache is empty and asked to override it, use the current timestamp
|
|
2051
|
-
createdAt:
|
|
2051
|
+
createdAt: y && !p.createdAt ? Date.now() : p.createdAt
|
|
2052
2052
|
}, r), (p.state === "stale" || p.state === "must-revalidate") && Yr(p, r), r.validateStatus = Xr(r.validateStatus), (p.state === "stale" || p.data && p.state !== "must-revalidate") && await (r.cache.hydrate == null ? void 0 : r.cache.hydrate(p)), r;
|
|
2053
2053
|
}
|
|
2054
2054
|
let f;
|
|
@@ -2092,10 +2092,10 @@ async function en(e, t, r) {
|
|
|
2092
2092
|
await e.remove(n, t.config);
|
|
2093
2093
|
continue;
|
|
2094
2094
|
}
|
|
2095
|
-
const
|
|
2096
|
-
if (
|
|
2095
|
+
const o = await e.get(n, t.config);
|
|
2096
|
+
if (o.state === "loading")
|
|
2097
2097
|
continue;
|
|
2098
|
-
const a = await s(
|
|
2098
|
+
const a = await s(o, t);
|
|
2099
2099
|
if (a === "delete") {
|
|
2100
2100
|
await e.remove(n, t.config);
|
|
2101
2101
|
continue;
|
|
@@ -2104,23 +2104,23 @@ async function en(e, t, r) {
|
|
|
2104
2104
|
}
|
|
2105
2105
|
}
|
|
2106
2106
|
function tn(e) {
|
|
2107
|
-
const t = async (s,
|
|
2108
|
-
a && await e.storage.remove(s,
|
|
2109
|
-
const
|
|
2110
|
-
|
|
2107
|
+
const t = async (s, o, a) => {
|
|
2108
|
+
a && await e.storage.remove(s, o);
|
|
2109
|
+
const i = e.waiting.get(s);
|
|
2110
|
+
i && (i.reject(), e.waiting.delete(s));
|
|
2111
2111
|
};
|
|
2112
2112
|
return {
|
|
2113
2113
|
onFulfilled: async (s) => {
|
|
2114
|
-
var
|
|
2114
|
+
var o;
|
|
2115
2115
|
if (!(s != null && s.config))
|
|
2116
2116
|
throw s;
|
|
2117
|
-
s.id = s.config.id, (
|
|
2118
|
-
const a = s.config,
|
|
2117
|
+
s.id = s.config.id, (o = s.cached) != null || (s.cached = !1);
|
|
2118
|
+
const a = s.config, i = a.cache;
|
|
2119
2119
|
if (s.cached)
|
|
2120
2120
|
return s;
|
|
2121
|
-
if (!
|
|
2121
|
+
if (!i)
|
|
2122
2122
|
return s.cached = !1, s;
|
|
2123
|
-
if (
|
|
2123
|
+
if (i.update && await en(e.storage, s, i.update), !be(a.method, i.methods))
|
|
2124
2124
|
return s;
|
|
2125
2125
|
const d = await e.storage.get(s.id, a);
|
|
2126
2126
|
if (
|
|
@@ -2130,21 +2130,21 @@ function tn(e) {
|
|
|
2130
2130
|
return s;
|
|
2131
2131
|
if (
|
|
2132
2132
|
// For 'loading' values (previous: stale), this check already ran in the past.
|
|
2133
|
-
!d.data && !await
|
|
2133
|
+
!d.data && !await Vr(s, i.cachePredicate)
|
|
2134
2134
|
)
|
|
2135
2135
|
return await t(s.id, a, !0), s;
|
|
2136
2136
|
for (const f of Object.keys(s.headers))
|
|
2137
2137
|
f.startsWith("x-axios-cache") && delete s.headers[f];
|
|
2138
|
-
|
|
2139
|
-
let u =
|
|
2140
|
-
if (
|
|
2138
|
+
i.etag && i.etag !== !0 && (s.headers[A.XAxiosCacheEtag] = i.etag), i.modifiedSince && (s.headers[A.XAxiosCacheLastModified] = i.modifiedSince === !0 ? "use-cache-timestamp" : i.modifiedSince.toUTCString());
|
|
2139
|
+
let u = i.ttl || -1, l;
|
|
2140
|
+
if (i.interpretHeader) {
|
|
2141
2141
|
const f = e.headerInterpreter(s.headers, e.location);
|
|
2142
2142
|
if (f === "dont cache")
|
|
2143
2143
|
return await t(s.id, a, !0), s;
|
|
2144
2144
|
f !== "not enough headers" && (typeof f == "number" ? u = f : (u = f.cache, l = f.stale));
|
|
2145
2145
|
}
|
|
2146
2146
|
const h = Qr(s, d.data);
|
|
2147
|
-
typeof u == "function" && (u = await u(s)),
|
|
2147
|
+
typeof u == "function" && (u = await u(s)), i.staleIfError && (s.headers[A.XAxiosCacheStaleIfError] = String(u));
|
|
2148
2148
|
const p = {
|
|
2149
2149
|
state: "cached",
|
|
2150
2150
|
ttl: u,
|
|
@@ -2153,42 +2153,42 @@ function tn(e) {
|
|
|
2153
2153
|
data: h
|
|
2154
2154
|
};
|
|
2155
2155
|
await e.storage.set(s.id, p, a);
|
|
2156
|
-
const
|
|
2157
|
-
return
|
|
2156
|
+
const y = e.waiting.get(s.id);
|
|
2157
|
+
return y && (y.resolve(), e.waiting.delete(s.id)), s;
|
|
2158
2158
|
},
|
|
2159
2159
|
onRejected: async (s) => {
|
|
2160
2160
|
if (!s.isAxiosError || !s.config)
|
|
2161
2161
|
throw s;
|
|
2162
|
-
const
|
|
2163
|
-
if (!
|
|
2162
|
+
const o = s.config, a = o.id, i = o.cache, d = s.response;
|
|
2163
|
+
if (!i || !a)
|
|
2164
2164
|
throw s;
|
|
2165
|
-
if (!be(
|
|
2166
|
-
throw await t(a,
|
|
2167
|
-
const u = await e.storage.get(a,
|
|
2165
|
+
if (!be(o.method, i.methods))
|
|
2166
|
+
throw await t(a, o, !0), s;
|
|
2167
|
+
const u = await e.storage.get(a, o);
|
|
2168
2168
|
if (
|
|
2169
2169
|
// This will only not be loading if the interceptor broke
|
|
2170
2170
|
u.state !== "loading" || u.previous !== "stale"
|
|
2171
2171
|
)
|
|
2172
2172
|
throw await t(
|
|
2173
2173
|
a,
|
|
2174
|
-
|
|
2174
|
+
o,
|
|
2175
2175
|
// Do not clear cache if this request is cached, but the request was cancelled before returning the cached response
|
|
2176
2176
|
s.code !== "ERR_CANCELED" || s.code === "ERR_CANCELED" && u.state !== "cached"
|
|
2177
2177
|
), s;
|
|
2178
|
-
if (
|
|
2179
|
-
const l = String(d?.headers[
|
|
2178
|
+
if (i.staleIfError) {
|
|
2179
|
+
const l = String(d?.headers[A.CacheControl]), h = l && ut(l).staleIfError, p = typeof i.staleIfError == "function" ? await i.staleIfError(d, u, s) : i.staleIfError === !0 && h ? h * 1e3 : i.staleIfError;
|
|
2180
2180
|
if (p === !0 || // staleIfError is the number of seconds that stale is allowed to be used
|
|
2181
2181
|
typeof p == "number" && u.createdAt + p > Date.now()) {
|
|
2182
2182
|
await e.storage.set(a, {
|
|
2183
2183
|
state: "stale",
|
|
2184
2184
|
createdAt: Date.now(),
|
|
2185
2185
|
data: u.data
|
|
2186
|
-
},
|
|
2187
|
-
const
|
|
2188
|
-
return
|
|
2186
|
+
}, o);
|
|
2187
|
+
const y = e.waiting.get(a);
|
|
2188
|
+
return y && (y.resolve(), e.waiting.delete(a)), {
|
|
2189
2189
|
cached: !0,
|
|
2190
2190
|
stale: !0,
|
|
2191
|
-
config:
|
|
2191
|
+
config: o,
|
|
2192
2192
|
id: a,
|
|
2193
2193
|
data: u.data.data,
|
|
2194
2194
|
headers: u.data.headers,
|
|
@@ -2197,17 +2197,17 @@ function tn(e) {
|
|
|
2197
2197
|
};
|
|
2198
2198
|
}
|
|
2199
2199
|
}
|
|
2200
|
-
throw await t(a,
|
|
2200
|
+
throw await t(a, o, !0), s;
|
|
2201
2201
|
}
|
|
2202
2202
|
};
|
|
2203
2203
|
}
|
|
2204
2204
|
const rn = (e) => !!e && !!e["is-storage"];
|
|
2205
2205
|
function dt(e) {
|
|
2206
2206
|
const t = e.data.headers;
|
|
2207
|
-
return
|
|
2207
|
+
return A.ETag in t || A.LastModified in t || A.XAxiosCacheEtag in t || A.XAxiosCacheLastModified in t;
|
|
2208
2208
|
}
|
|
2209
2209
|
function nn(e) {
|
|
2210
|
-
return String(e.data.headers[
|
|
2210
|
+
return String(e.data.headers[A.CacheControl]).includes("must-revalidate");
|
|
2211
2211
|
}
|
|
2212
2212
|
function ft(e) {
|
|
2213
2213
|
return dt(e) ? !0 : e.state === "cached" && e.staleTtl !== void 0 && // Only allow stale values after the ttl is already in the past and the staleTtl is in the future.
|
|
@@ -2218,7 +2218,7 @@ function ft(e) {
|
|
|
2218
2218
|
// [ past ][now is in here]
|
|
2219
2219
|
Math.abs(Date.now() - (e.createdAt + e.ttl)) <= e.staleTtl;
|
|
2220
2220
|
}
|
|
2221
|
-
function
|
|
2221
|
+
function we(e) {
|
|
2222
2222
|
return e.ttl !== void 0 && e.createdAt + e.ttl <= Date.now();
|
|
2223
2223
|
}
|
|
2224
2224
|
function sn({
|
|
@@ -2233,8 +2233,8 @@ function sn({
|
|
|
2233
2233
|
set: e,
|
|
2234
2234
|
remove: r,
|
|
2235
2235
|
clear: n,
|
|
2236
|
-
get: async (s,
|
|
2237
|
-
let a = await t(s,
|
|
2236
|
+
get: async (s, o) => {
|
|
2237
|
+
let a = await t(s, o);
|
|
2238
2238
|
if (!a)
|
|
2239
2239
|
return {
|
|
2240
2240
|
state: "empty"
|
|
@@ -2242,10 +2242,10 @@ function sn({
|
|
|
2242
2242
|
if (a.state === "empty" || a.state === "loading" || a.state === "must-revalidate")
|
|
2243
2243
|
return a;
|
|
2244
2244
|
if (a.state === "cached") {
|
|
2245
|
-
if (!
|
|
2245
|
+
if (!we(a))
|
|
2246
2246
|
return a;
|
|
2247
2247
|
if (!ft(a))
|
|
2248
|
-
return await r(s,
|
|
2248
|
+
return await r(s, o), {
|
|
2249
2249
|
state: "empty"
|
|
2250
2250
|
};
|
|
2251
2251
|
if (a = {
|
|
@@ -2253,38 +2253,38 @@ function sn({
|
|
|
2253
2253
|
createdAt: a.createdAt,
|
|
2254
2254
|
data: a.data,
|
|
2255
2255
|
ttl: a.staleTtl !== void 0 ? a.staleTtl + a.ttl : void 0
|
|
2256
|
-
}, await e(s, a,
|
|
2256
|
+
}, await e(s, a, o), nn(a))
|
|
2257
2257
|
return z({}, a, {
|
|
2258
2258
|
state: "must-revalidate"
|
|
2259
2259
|
});
|
|
2260
2260
|
}
|
|
2261
|
-
return !
|
|
2261
|
+
return !we(a) || dt(a) ? a : (await r(s, o), {
|
|
2262
2262
|
state: "empty"
|
|
2263
2263
|
});
|
|
2264
2264
|
}
|
|
2265
2265
|
};
|
|
2266
2266
|
}
|
|
2267
|
-
const
|
|
2267
|
+
const De = (
|
|
2268
2268
|
// https://caniuse.com/mdn-api_structuredclone (10/18/2023 92.51%)
|
|
2269
2269
|
typeof structuredClone == "function" ? structuredClone : (e) => JSON.parse(JSON.stringify(e))
|
|
2270
2270
|
);
|
|
2271
2271
|
function an(e = !1, t = !1, r = !1) {
|
|
2272
2272
|
const n = sn({
|
|
2273
|
-
set: (s,
|
|
2273
|
+
set: (s, o) => {
|
|
2274
2274
|
if (r) {
|
|
2275
2275
|
let a = Object.keys(n.data);
|
|
2276
2276
|
if (a.length >= r)
|
|
2277
2277
|
for (n.cleanup(), a = Object.keys(n.data); a.length >= r; )
|
|
2278
2278
|
delete n.data[a.shift()];
|
|
2279
2279
|
}
|
|
2280
|
-
n.data[s] = e === "double" ?
|
|
2280
|
+
n.data[s] = e === "double" ? De(o) : o;
|
|
2281
2281
|
},
|
|
2282
2282
|
remove: (s) => {
|
|
2283
2283
|
delete n.data[s];
|
|
2284
2284
|
},
|
|
2285
2285
|
find: (s) => {
|
|
2286
|
-
const
|
|
2287
|
-
return e &&
|
|
2286
|
+
const o = n.data[s];
|
|
2287
|
+
return e && o !== void 0 ? De(o) : o;
|
|
2288
2288
|
},
|
|
2289
2289
|
clear: () => {
|
|
2290
2290
|
n.data = /* @__PURE__ */ Object.create(null);
|
|
@@ -2292,17 +2292,17 @@ function an(e = !1, t = !1, r = !1) {
|
|
|
2292
2292
|
});
|
|
2293
2293
|
return n.data = /* @__PURE__ */ Object.create(null), n.cleanup = () => {
|
|
2294
2294
|
const s = Object.keys(n.data);
|
|
2295
|
-
let
|
|
2296
|
-
for (; ++
|
|
2297
|
-
if (
|
|
2298
|
-
n.remove(
|
|
2295
|
+
let o = -1, a, i;
|
|
2296
|
+
for (; ++o < s.length; ) {
|
|
2297
|
+
if (i = s[o], a = n.data[i], a.state === "empty") {
|
|
2298
|
+
n.remove(i);
|
|
2299
2299
|
continue;
|
|
2300
2300
|
}
|
|
2301
|
-
a.state === "cached" &&
|
|
2301
|
+
a.state === "cached" && we(a) && !ft(a) && n.remove(i);
|
|
2302
2302
|
}
|
|
2303
2303
|
}, t && (n.cleaner = setInterval(n.cleanup, t)), n;
|
|
2304
2304
|
}
|
|
2305
|
-
const
|
|
2305
|
+
const Be = /^\/|\/$/g;
|
|
2306
2306
|
function on(e) {
|
|
2307
2307
|
return (t) => {
|
|
2308
2308
|
if (t.id)
|
|
@@ -2317,20 +2317,20 @@ const cn = on(({
|
|
|
2317
2317
|
method: r,
|
|
2318
2318
|
params: n,
|
|
2319
2319
|
data: s
|
|
2320
|
-
}) => (e !== void 0 ? e = e.replace(
|
|
2320
|
+
}) => (e !== void 0 ? e = e.replace(Be, "") : e = "", t !== void 0 ? t = t.replace(Be, "") : t = "", r !== void 0 ? r = r.toLowerCase() : r = "get", {
|
|
2321
2321
|
url: e + (e && t ? "/" : "") + t,
|
|
2322
2322
|
params: n,
|
|
2323
2323
|
method: r,
|
|
2324
2324
|
data: s
|
|
2325
2325
|
}));
|
|
2326
2326
|
function ln(e, t = {}) {
|
|
2327
|
-
var r, n, s,
|
|
2327
|
+
var r, n, s, o, a, i, d, u;
|
|
2328
2328
|
const l = e;
|
|
2329
2329
|
if (l.defaults.cache)
|
|
2330
2330
|
throw new Error("setupCache() should be called only once");
|
|
2331
2331
|
if (l.location = typeof window > "u" ? "server" : "client", l.storage = t.storage || an(), !rn(l.storage))
|
|
2332
2332
|
throw new Error("Use buildStorage() function");
|
|
2333
|
-
return l.waiting = t.waiting || /* @__PURE__ */ new Map(), l.generateKey = t.generateKey || cn, l.headerInterpreter = t.headerInterpreter ||
|
|
2333
|
+
return l.waiting = t.waiting || /* @__PURE__ */ new Map(), l.generateKey = t.generateKey || cn, l.headerInterpreter = t.headerInterpreter || Wr, l.requestInterceptor = t.requestInterceptor || Zr(l), l.responseInterceptor = t.responseInterceptor || tn(l), l.debug = t.debug || function() {
|
|
2334
2334
|
}, l.defaults.cache = {
|
|
2335
2335
|
update: t.update || {},
|
|
2336
2336
|
ttl: (r = t.ttl) != null ? r : 1e3 * 60 * 5,
|
|
@@ -2345,9 +2345,9 @@ function ln(e, t = {}) {
|
|
|
2345
2345
|
// This option is going to be ignored by servers when ETag is enabled
|
|
2346
2346
|
// Checks strict equality to false to avoid undefined-ish values
|
|
2347
2347
|
modifiedSince: (s = t.modifiedSince) != null ? s : t.etag === !1,
|
|
2348
|
-
interpretHeader: (
|
|
2348
|
+
interpretHeader: (o = t.interpretHeader) != null ? o : !0,
|
|
2349
2349
|
cacheTakeover: (a = t.cacheTakeover) != null ? a : !0,
|
|
2350
|
-
staleIfError: (
|
|
2350
|
+
staleIfError: (i = t.staleIfError) != null ? i : !0,
|
|
2351
2351
|
override: (d = t.override) != null ? d : !1,
|
|
2352
2352
|
hydrate: (u = t.hydrate) != null ? u : void 0
|
|
2353
2353
|
}, l.interceptors.request.use(l.requestInterceptor.onFulfilled, l.requestInterceptor.onRejected), l.interceptors.response.use(l.responseInterceptor.onFulfilled, l.responseInterceptor.onRejected), l;
|
|
@@ -2372,18 +2372,20 @@ ht.interceptors.response.use(
|
|
|
2372
2372
|
})
|
|
2373
2373
|
), Promise.reject(e))
|
|
2374
2374
|
);
|
|
2375
|
-
const
|
|
2376
|
-
var dn = /* @__PURE__ */ ((e) => (e.GET_PAGES_AND_LINKS = "webapi/objectmanagement/teamspaces/pagesandlinks_412Y_v1", e.GET_SPACE_FONT_FAMILY = "webapi/objectmanagement/teamspaces/getspacefonts_41I6_v1", e.GET_SPACE_LIST = "webapi/objectmanagement/teamspaces/getteamspaces_41I3_v1", e.GET_USER_ROLE = "webapi/objectmanagement/teamspaces/getuserroles_41E7_v1", e))(dn || {}), fn = /* @__PURE__ */ ((e) => (e.
|
|
2375
|
+
const Bn = ln(ht), In = "webapi/extensibility/integrations/gab/assetbrowser/gethierarchy_41e8", qn = "webapi/extensibility/integrations/gab/assetbrowser/getallformatcodes_428H";
|
|
2376
|
+
var dn = /* @__PURE__ */ ((e) => (e.GET_PAGES_AND_LINKS = "webapi/objectmanagement/teamspaces/pagesandlinks_412Y_v1", e.GET_SPACE_FONT_FAMILY = "webapi/objectmanagement/teamspaces/getspacefonts_41I6_v1", e.GET_SPACE_LIST = "webapi/objectmanagement/teamspaces/getteamspaces_41I3_v1", e.GET_USER_ROLE = "webapi/objectmanagement/teamspaces/getuserroles_41E7_v1", e))(dn || {}), fn = /* @__PURE__ */ ((e) => (e.GET_CROP_ZONE_SUGGESTION = "webapi/mediafile/assettransformation/getcropzonesuggestion_41UP_v1", e.GET_LARGEST_DOWNLOAD_LINK = "webapi/objectmanagement/share/getlargestdownloadlink_46X_v1", e.GET_TRANSFORM_ASSET_LINK = "webapi/mediafile/assettransformation/transformasset_41E6_v1", e.UPLOAD_AND_GET_RESPONSE = "webapi/mediafile/import/upload/uploadimageandgetlargestdownloadlink_4CM_v1", e.UPLOAD_RESPONSE = "api/UploadMedia/v3.0/UploadNewMedia", e))(fn || {}), hn = /* @__PURE__ */ ((e) => (e.GET_AUTOCOMPLETE_ITEMS_WITH_QUERY = "webapi/ui/autocompletion/executequery_4JD_v1-alpha", e.GET_AUTOCOMPLETE_ITEMS_WITH_SERVICE = "webapi/ui/autocompletion/callservice_41s5_v1-alpha", e))(hn || {}), pn = /* @__PURE__ */ ((e) => (e.GET_DASHBOARD_EMBEDDED_URL = "webapi/extensibility/integrations/businessintelligence/getdashboardembededurl_41JJ_v1", e.GET_DASHBOARD_LIST = "webapi/extensibility/integrations/businessintelligence/getlistdashboards_41JI_v1", e))(pn || {}), mn = /* @__PURE__ */ ((e) => (e.GET_SEARCHABLE_FIELDS = "webapi/objectmanagement/metadata/fields/getallobjectfieldsforcurrentuser_4C2_v2", e))(mn || {}), bn = /* @__PURE__ */ ((e) => (e["4.0"] = "API/Search/v4.0/Search", e))(bn || {}), wn = /* @__PURE__ */ ((e) => (e.CREATE_OR_UPDATE_CHAPTERS = "webapi/mediafile/timebasedasset/createorupdatechapters_4b0_v1", e.GET_CHAPTERS = "webapi/mediafile/timebasedasset/getchapters_41T7_v1", e))(wn || {}), yn = /* @__PURE__ */ ((e) => (e.BLOCK_TEMPLATE = "webapi/cms/cms5/blocktemplate/418g_v1", e.GET_ADHOC_PROPERTIES = "webapi/cms/cms5/blocktemplate/getadhocpropertieslist_419s_v1", e.GET_BLOCK_TEMPLATES = "webapi/cms/cms5/blocktemplate/getblocktemplates_419y_v1", e.GET_BLOCK_TYPES = "webapi/cms/cms5/blocktemplate/getblocktypes_419z_v1", e.GET_CAN_CREATE_BLOCK_TEMPLATE = "webapi/cms/cms5/blocktemplate/cancreatenewblocktemplate_41cs_v1", e.GET_PAGES_FOR_BLOCK_TEMPLATE = "webapi/cms/cms5/blocktemplate/getpagesforblocktemplate_41ig_v1", e.GET_PERMISSION = "webapi/cms/cms5/blocktemplate/getpermission_419r_v1", e.LIST_BLOCK_TEMPLATES = "webapi/cms/cms5/blocktemplate/getlisttemplates_428o_v1", e))(yn || {}), gn = /* @__PURE__ */ ((e) => (e.Album = "Album", e.Audio = "Audio", e.Image = "Image", e.Multimedia = "Multimedia", e.ProjectDocument = "ProjectDocument", e.Story = "Story", e.Video = "Video", e.Widget = "Widget", e))(gn || {});
|
|
2377
2377
|
export {
|
|
2378
2378
|
fn as A,
|
|
2379
2379
|
yn as C,
|
|
2380
2380
|
pn as D,
|
|
2381
|
-
|
|
2382
|
-
|
|
2381
|
+
In as F,
|
|
2382
|
+
gn as M,
|
|
2383
|
+
bn as S,
|
|
2383
2384
|
dn as T,
|
|
2384
|
-
|
|
2385
|
-
|
|
2385
|
+
qn as a,
|
|
2386
|
+
Tn as b,
|
|
2386
2387
|
hn as c,
|
|
2387
|
-
|
|
2388
|
-
|
|
2388
|
+
mn as d,
|
|
2389
|
+
wn as e,
|
|
2390
|
+
Bn as h
|
|
2389
2391
|
};
|