@blueking/ai-ui-sdk 0.4.3-beta.25 → 0.4.3-beta.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/render-agent/agent-type.vue.css +4 -4
- package/dist/components/render-agent/agent-type.vue.js +1 -1
- package/dist/components/render-auth/auth-dialog.script.vue.js.js +6 -3
- package/dist/components/render-auto-height-textarea/index.vue.css +11 -11
- package/dist/components/render-auto-height-textarea/index.vue.js +1 -1
- package/dist/components/render-auto-refresh/index.vue.css +8 -8
- package/dist/components/render-auto-refresh/index.vue.js +1 -1
- package/dist/components/render-card/agent/prefix-info-tool.vue.css +5 -5
- package/dist/components/render-card/agent/prefix-info-tool.vue.js +1 -1
- package/dist/components/render-card/agent/upgrade.vue.css +2 -2
- package/dist/components/render-card/agent/upgrade.vue.js +1 -1
- package/dist/components/render-card/base.script.vue.js +146 -130
- package/dist/components/render-card/base.vue.css +12 -12
- package/dist/components/render-card/base.vue.js +1 -1
- package/dist/components/render-card/llm/corner-badge.script.vue.js +33 -27
- package/dist/components/render-card/llm/corner-badge.vue.css +3 -3
- package/dist/components/render-card/llm/corner-badge.vue.js +1 -1
- package/dist/components/render-card/llm/icons.vue.css +2 -2
- package/dist/components/render-card/llm/icons.vue.js +1 -1
- package/dist/components/render-card/llm/info.vue.css +1 -1
- package/dist/components/render-card/llm/info.vue.js +1 -1
- package/dist/components/render-card/llm/tag-prefix.vue.css +2 -2
- package/dist/components/render-card/llm/tag-prefix.vue.js +1 -1
- package/dist/components/render-card/mcp/code-suffix.script.vue.js +38 -30
- package/dist/components/render-card/mcp/name-suffix.script.vue.js +23 -15
- package/dist/components/render-card/mcp/name-suffix.vue.css +2 -2
- package/dist/components/render-card/mcp/name-suffix.vue.js +1 -1
- package/dist/components/render-card/prompt/icons.vue.css +1 -1
- package/dist/components/render-card/prompt/icons.vue.js +1 -1
- package/dist/components/render-card/skill/prefix-info-tool.script.vue.js +84 -41
- package/dist/components/render-card/skill/scanner.vue.css +3 -3
- package/dist/components/render-card/skill/scanner.vue.js +1 -1
- package/dist/components/render-checkbox/index.vue.css +9 -9
- package/dist/components/render-checkbox/index.vue.js +1 -1
- package/dist/components/render-choose-tag/index.vue.css +7 -7
- package/dist/components/render-choose-tag/index.vue.js +1 -1
- package/dist/components/render-collapse/index.vue.css +2 -2
- package/dist/components/render-collapse/index.vue.js +1 -1
- package/dist/components/render-collection/content/index.script.vue.js +43 -39
- package/dist/components/render-collection/content/index.vue.css +4 -4
- package/dist/components/render-collection/content/index.vue.js +1 -1
- package/dist/components/render-dataset/components/batch-delete-dataset-data/index.script.vue.js +37 -27
- package/dist/components/render-dataset/components/batch-delete-dataset-data/index.vue.css +3 -3
- package/dist/components/render-dataset/components/batch-delete-dataset-data/index.vue.js +1 -1
- package/dist/components/render-dataset/components/dataset-data-level/index.script.vue.js +22 -18
- package/dist/components/render-dataset/components/dataset-data-tool-icons/index.script.vue.js +26 -22
- package/dist/components/render-dataset/components/edit-dataset-data/index.vue.css +3 -3
- package/dist/components/render-dataset/components/edit-dataset-data/index.vue.js +1 -1
- package/dist/components/render-dataset/components/operation-record/index.vue.css +4 -4
- package/dist/components/render-dataset/components/operation-record/index.vue.js +1 -1
- package/dist/components/render-dataset/components/operation-record/table/index.script.vue.js +97 -63
- package/dist/components/render-dataset/components/operation-record/table/index.vue.css +1 -1
- package/dist/components/render-dataset/components/operation-record/table/index.vue.js +1 -1
- package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.css +2 -2
- package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset/dataset-form.script.vue.js +184 -119
- package/dist/components/render-dataset/components/plus-dataset/index.vue.css +1 -1
- package/dist/components/render-dataset/components/plus-dataset/index.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.css +2 -2
- package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.css +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.css +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.js +1 -1
- package/dist/components/render-dataset/components/review-dataset-data/index.vue.css +10 -10
- package/dist/components/render-dataset/components/review-dataset-data/index.vue.js +1 -1
- package/dist/components/render-dataset-detail-origin-data/components/table/index.script.vue.js +346 -201
- package/dist/components/render-dataset-detail-origin-data/index.vue.css +3 -3
- package/dist/components/render-dataset-detail-origin-data/index.vue.js +1 -1
- package/dist/components/render-dataset-list/components/main.vue.css +3 -3
- package/dist/components/render-dataset-list/components/main.vue.js +1 -1
- package/dist/components/render-dataset-list/components/table.script.vue.js +264 -161
- package/dist/components/render-dataset-list/index.vue.css +2 -2
- package/dist/components/render-dataset-list/index.vue.js +1 -1
- package/dist/components/render-dialog/choose-resource.script.vue.js +390 -269
- package/dist/components/render-dialog/choose-resource.vue.css +3 -3
- package/dist/components/render-dialog/choose-resource.vue.js +1 -1
- package/dist/components/render-dialog/choose-result.script.vue.js +210 -149
- package/dist/components/render-dialog/choose-result.vue.css +14 -14
- package/dist/components/render-dialog/choose-result.vue.js +1 -1
- package/dist/components/render-dialog/choose-space.vue.css +9 -9
- package/dist/components/render-dialog/choose-space.vue.js +1 -1
- package/dist/components/render-dialog/index.script.vue.js +172 -113
- package/dist/components/render-dialog/index.vue.css +6 -6
- package/dist/components/render-dialog/index.vue.js +1 -1
- package/dist/components/render-file-card/index.vue.css +11 -11
- package/dist/components/render-file-card/index.vue.js +1 -1
- package/dist/components/render-file-type-icon/index.vue.css +6 -6
- package/dist/components/render-file-type-icon/index.vue.js +1 -1
- package/dist/components/render-generate-tag/index.vue.css +5 -5
- package/dist/components/render-generate-tag/index.vue.js +1 -1
- package/dist/components/render-knowledge/icon/index.vue.css +1 -1
- package/dist/components/render-knowledge/icon/index.vue.js +1 -1
- package/dist/components/render-permission-tag/index.script.vue.js +67 -54
- package/dist/components/render-prompt/content/index.vue.css +1 -1
- package/dist/components/render-prompt/content/index.vue.js +1 -1
- package/dist/components/render-reference/index.script.vue.js +254 -203
- package/dist/components/render-reference/index.vue.css +2 -2
- package/dist/components/render-reference/index.vue.js +1 -1
- package/dist/components/render-relate-agent/index.script.vue.js +660 -339
- package/dist/components/render-resource-info/index.script.vue.js +45 -41
- package/dist/components/render-resource-version/index.vue.css +2 -2
- package/dist/components/render-resource-version/index.vue.js +1 -1
- package/dist/components/render-router-tab/index.vue.css +3 -3
- package/dist/components/render-router-tab/index.vue.js +1 -1
- package/dist/components/render-search-empty/index.script.vue.js.js +3 -2
- package/dist/components/render-select-plus-extension/index.vue.css +3 -3
- package/dist/components/render-select-plus-extension/index.vue.js +1 -1
- package/dist/components/render-skill/variable-form/index.script.vue.js +74 -47
- package/dist/components/render-t-table/index.script.vue.js +234 -143
- package/dist/components/render-t-table/index.vue.css +32 -32
- package/dist/components/render-t-table/index.vue.js +1 -1
- package/dist/components/render-tag-tree/index.vue.css +7 -7
- package/dist/components/render-tag-tree/index.vue.js +1 -1
- package/dist/components/render-tags/index.script.vue.js +89 -64
- package/dist/components/render-tags/index.vue.css +6 -6
- package/dist/components/render-tags/index.vue.js +1 -1
- package/dist/components/render-tree/index.script.vue.js +115 -60
- package/dist/css/g-utilities.css +0 -12
- package/dist/css/g-utilities.manifest.json +0 -5
- package/dist/node_modules/@babel/runtime/helpers/arrayLikeToArray.js +6 -0
- package/dist/node_modules/@babel/runtime/helpers/arrayWithHoles.js +4 -0
- package/dist/node_modules/@babel/runtime/helpers/arrayWithoutHoles.js +5 -0
- package/dist/node_modules/@babel/runtime/helpers/defineProperty.js +10 -0
- package/dist/node_modules/@babel/runtime/helpers/interopRequireDefault.js +6 -0
- package/dist/node_modules/@babel/runtime/helpers/iterableToArray.js +4 -0
- package/dist/node_modules/@babel/runtime/helpers/iterableToArrayLimit.js +28 -0
- package/dist/node_modules/@babel/runtime/helpers/nonIterableRest.js +4 -0
- package/dist/node_modules/@babel/runtime/helpers/nonIterableSpread.js +4 -0
- package/dist/node_modules/@babel/runtime/helpers/slicedToArray.js +8 -0
- package/dist/node_modules/@babel/runtime/helpers/toConsumableArray.js +8 -0
- package/dist/node_modules/@babel/runtime/helpers/toPrimitive.js +12 -0
- package/dist/node_modules/@babel/runtime/helpers/toPropertyKey.js +7 -0
- package/dist/node_modules/@babel/runtime/helpers/typeof.js +10 -0
- package/dist/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js +9 -0
- package/dist/node_modules/core-js/internals/a-callable.js +11 -0
- package/dist/node_modules/core-js/internals/a-constructor.js +11 -0
- package/dist/node_modules/core-js/internals/a-possible-prototype.js +10 -0
- package/dist/node_modules/core-js/internals/add-to-unscopables.js +21 -0
- package/dist/node_modules/core-js/internals/advance-string-index.js +8 -0
- package/dist/node_modules/core-js/internals/an-instance.js +9 -0
- package/dist/node_modules/core-js/internals/an-object.js +11 -0
- package/dist/node_modules/core-js/internals/array-buffer-non-extensible.js +11 -0
- package/dist/node_modules/core-js/internals/array-for-each.js +12 -0
- package/dist/node_modules/core-js/internals/array-includes.js +34 -0
- package/dist/node_modules/core-js/internals/array-iteration.js +72 -0
- package/dist/node_modules/core-js/internals/array-method-has-species-support.js +20 -0
- package/dist/node_modules/core-js/internals/array-method-is-strict.js +10 -0
- package/dist/node_modules/core-js/internals/array-set-length.js +27 -0
- package/dist/node_modules/core-js/internals/array-slice.js +4 -0
- package/dist/node_modules/core-js/internals/array-species-constructor.js +23 -0
- package/dist/node_modules/core-js/internals/array-species-create.js +8 -0
- package/dist/node_modules/core-js/internals/check-correctness-of-iteration.js +43 -0
- package/dist/node_modules/core-js/internals/classof-raw.js +9 -0
- package/dist/node_modules/core-js/internals/classof.js +30 -0
- package/dist/node_modules/core-js/internals/collection-strong.js +206 -0
- package/dist/node_modules/core-js/internals/collection.js +106 -0
- package/dist/node_modules/core-js/internals/copy-constructor-properties.js +17 -0
- package/dist/node_modules/core-js/internals/correct-is-regexp-logic.js +16 -0
- package/dist/node_modules/core-js/internals/correct-prototype-getter.js +9 -0
- package/dist/node_modules/core-js/internals/create-iter-result-object.js +6 -0
- package/dist/node_modules/core-js/internals/create-non-enumerable-property.js +11 -0
- package/dist/node_modules/core-js/internals/create-property-descriptor.js +9 -0
- package/dist/node_modules/core-js/internals/create-property.js +9 -0
- package/dist/node_modules/core-js/internals/define-built-in-accessor.js +9 -0
- package/dist/node_modules/core-js/internals/define-built-in.js +28 -0
- package/dist/node_modules/core-js/internals/define-built-ins.js +7 -0
- package/dist/node_modules/core-js/internals/define-global-property.js +13 -0
- package/dist/node_modules/core-js/internals/delete-property-or-throw.js +8 -0
- package/dist/node_modules/core-js/internals/descriptors.js +8 -0
- package/dist/node_modules/core-js/internals/document-create-element.js +11 -0
- package/dist/node_modules/core-js/internals/does-not-exceed-safe-integer.js +8 -0
- package/dist/node_modules/core-js/internals/dom-iterables.js +36 -0
- package/dist/node_modules/core-js/internals/dom-token-list-prototype.js +8 -0
- package/dist/node_modules/core-js/internals/enum-bug-keys.js +11 -0
- package/dist/node_modules/core-js/internals/environment-is-ios-pebble.js +4 -0
- package/dist/node_modules/core-js/internals/environment-is-ios.js +4 -0
- package/dist/node_modules/core-js/internals/environment-is-node.js +4 -0
- package/dist/node_modules/core-js/internals/environment-is-webos-webkit.js +4 -0
- package/dist/node_modules/core-js/internals/environment-user-agent.js +7 -0
- package/dist/node_modules/core-js/internals/environment-v8-version.js +28 -0
- package/dist/node_modules/core-js/internals/environment.js +21 -0
- package/dist/node_modules/core-js/internals/export.js +55 -0
- package/dist/node_modules/core-js/internals/fails.js +8 -0
- package/dist/node_modules/core-js/internals/fix-regexp-well-known-symbol-logic.js +78 -0
- package/dist/node_modules/core-js/internals/freezing.js +7 -0
- package/dist/node_modules/core-js/internals/function-apply.js +11 -0
- package/dist/node_modules/core-js/internals/function-bind-context.js +14 -0
- package/dist/node_modules/core-js/internals/function-bind-native.js +9 -0
- package/dist/node_modules/core-js/internals/function-call.js +8 -0
- package/dist/node_modules/core-js/internals/function-name.js +18 -0
- package/dist/node_modules/core-js/internals/function-uncurry-this-accessor.js +10 -0
- package/dist/node_modules/core-js/internals/function-uncurry-this-clause.js +10 -0
- package/dist/node_modules/core-js/internals/function-uncurry-this.js +13 -0
- package/dist/node_modules/core-js/internals/get-built-in.js +11 -0
- package/dist/node_modules/core-js/internals/get-iterator-internal.js +14 -0
- package/dist/node_modules/core-js/internals/get-iterator-method-internal.js +14 -0
- package/dist/node_modules/core-js/internals/get-method.js +10 -0
- package/dist/node_modules/core-js/internals/global-this.js +16 -0
- package/dist/node_modules/core-js/internals/has-own-property.js +12 -0
- package/dist/node_modules/core-js/internals/hidden-keys.js +2 -0
- package/dist/node_modules/core-js/internals/host-report-errors.js +7 -0
- package/dist/node_modules/core-js/internals/html.js +4 -0
- package/dist/node_modules/core-js/internals/ie8-dom-define.js +12 -0
- package/dist/node_modules/core-js/internals/indexed-object.js +16 -0
- package/dist/node_modules/core-js/internals/inherit-if-required.js +19 -0
- package/dist/node_modules/core-js/internals/inspect-source.js +15 -0
- package/dist/node_modules/core-js/internals/internal-metadata.js +91 -0
- package/dist/node_modules/core-js/internals/internal-state.js +71 -0
- package/dist/node_modules/core-js/internals/is-array-iterator-method.js +11 -0
- package/dist/node_modules/core-js/internals/is-array.js +9 -0
- package/dist/node_modules/core-js/internals/is-callable.js +12 -0
- package/dist/node_modules/core-js/internals/is-constructor.js +52 -0
- package/dist/node_modules/core-js/internals/is-forced.js +23 -0
- package/dist/node_modules/core-js/internals/is-null-or-undefined.js +6 -0
- package/dist/node_modules/core-js/internals/is-object.js +6 -0
- package/dist/node_modules/core-js/internals/is-possible-prototype.js +6 -0
- package/dist/node_modules/core-js/internals/is-pure.js +2 -0
- package/dist/node_modules/core-js/internals/is-raw-json.js +9 -0
- package/dist/node_modules/core-js/internals/is-regexp.js +13 -0
- package/dist/node_modules/core-js/internals/is-symbol.js +14 -0
- package/dist/node_modules/core-js/internals/iterate.js +74 -0
- package/dist/node_modules/core-js/internals/iterator-close.js +24 -0
- package/dist/node_modules/core-js/internals/iterator-create-constructor.js +16 -0
- package/dist/node_modules/core-js/internals/iterator-define.js +102 -0
- package/dist/node_modules/core-js/internals/iterators-core.js +49 -0
- package/dist/node_modules/core-js/internals/iterators.js +2 -0
- package/dist/node_modules/core-js/internals/length-of-array-like.js +8 -0
- package/dist/node_modules/core-js/internals/make-built-in.js +55 -0
- package/dist/node_modules/core-js/internals/math-trunc.js +11 -0
- package/dist/node_modules/core-js/internals/microtask.js +79 -0
- package/dist/node_modules/core-js/internals/native-raw-json.js +11 -0
- package/dist/node_modules/core-js/internals/new-promise-capability.js +21 -0
- package/dist/node_modules/core-js/internals/not-a-regexp.js +10 -0
- package/dist/node_modules/core-js/internals/object-assign.js +58 -0
- package/dist/node_modules/core-js/internals/object-create.js +85 -0
- package/dist/node_modules/core-js/internals/object-define-properties.js +21 -0
- package/dist/node_modules/core-js/internals/object-define-property.js +44 -0
- package/dist/node_modules/core-js/internals/object-get-own-property-descriptor.js +23 -0
- package/dist/node_modules/core-js/internals/object-get-own-property-names-external.js +24 -0
- package/dist/node_modules/core-js/internals/object-get-own-property-names.js +12 -0
- package/dist/node_modules/core-js/internals/object-get-own-property-symbols.js +3 -0
- package/dist/node_modules/core-js/internals/object-get-prototype-of.js +22 -0
- package/dist/node_modules/core-js/internals/object-is-extensible.js +17 -0
- package/dist/node_modules/core-js/internals/object-is-prototype-of.js +4 -0
- package/dist/node_modules/core-js/internals/object-keys-internal.js +21 -0
- package/dist/node_modules/core-js/internals/object-keys.js +10 -0
- package/dist/node_modules/core-js/internals/object-property-is-enumerable.js +14 -0
- package/dist/node_modules/core-js/internals/object-set-prototype-of.js +29 -0
- package/dist/node_modules/core-js/internals/object-to-array.js +49 -0
- package/dist/node_modules/core-js/internals/object-to-string.js +9 -0
- package/dist/node_modules/core-js/internals/ordinary-to-primitive.js +16 -0
- package/dist/node_modules/core-js/internals/own-keys.js +15 -0
- package/dist/node_modules/core-js/internals/parse-json-string.js +56 -0
- package/dist/node_modules/core-js/internals/path.js +4 -0
- package/dist/node_modules/core-js/internals/perform.js +8 -0
- package/dist/node_modules/core-js/internals/promise-constructor-detection.js +47 -0
- package/dist/node_modules/core-js/internals/promise-native-constructor.js +4 -0
- package/dist/node_modules/core-js/internals/promise-resolve.js +13 -0
- package/dist/node_modules/core-js/internals/promise-statics-incorrect-iteration.js +8 -0
- package/dist/node_modules/core-js/internals/queue.js +25 -0
- package/dist/node_modules/core-js/internals/regexp-exec-abstract.js +21 -0
- package/dist/node_modules/core-js/internals/regexp-exec.js +124 -0
- package/dist/node_modules/core-js/internals/regexp-flags-detection.js +47 -0
- package/dist/node_modules/core-js/internals/regexp-flags.js +18 -0
- package/dist/node_modules/core-js/internals/regexp-get-flags.js +16 -0
- package/dist/node_modules/core-js/internals/regexp-sticky-helpers.js +31 -0
- package/dist/node_modules/core-js/internals/regexp-unsupported-dot-all.js +11 -0
- package/dist/node_modules/core-js/internals/regexp-unsupported-ncg.js +12 -0
- package/dist/node_modules/core-js/internals/require-object-coercible.js +11 -0
- package/dist/node_modules/core-js/internals/safe-get-built-in.js +13 -0
- package/dist/node_modules/core-js/internals/same-value.js +8 -0
- package/dist/node_modules/core-js/internals/set-species.js +18 -0
- package/dist/node_modules/core-js/internals/set-to-string-tag.js +13 -0
- package/dist/node_modules/core-js/internals/shared-key.js +9 -0
- package/dist/node_modules/core-js/internals/shared-store.js +15 -0
- package/dist/node_modules/core-js/internals/shared.js +8 -0
- package/dist/node_modules/core-js/internals/species-constructor.js +15 -0
- package/dist/node_modules/core-js/internals/string-multibyte.js +37 -0
- package/dist/node_modules/core-js/internals/symbol-constructor-detection.js +19 -0
- package/dist/node_modules/core-js/internals/symbol-define-to-primitive.js +21 -0
- package/dist/node_modules/core-js/internals/symbol-registry-detection.js +5 -0
- package/dist/node_modules/core-js/internals/task.js +117 -0
- package/dist/node_modules/core-js/internals/this-number-value.js +6 -0
- package/dist/node_modules/core-js/internals/to-absolute-index.js +13 -0
- package/dist/node_modules/core-js/internals/to-indexed-object.js +8 -0
- package/dist/node_modules/core-js/internals/to-integer-or-infinity.js +10 -0
- package/dist/node_modules/core-js/internals/to-length.js +11 -0
- package/dist/node_modules/core-js/internals/to-object.js +10 -0
- package/dist/node_modules/core-js/internals/to-primitive.js +26 -0
- package/dist/node_modules/core-js/internals/to-property-key.js +10 -0
- package/dist/node_modules/core-js/internals/to-string-tag-support.js +9 -0
- package/dist/node_modules/core-js/internals/to-string.js +9 -0
- package/dist/node_modules/core-js/internals/try-to-string.js +10 -0
- package/dist/node_modules/core-js/internals/uid.js +10 -0
- package/dist/node_modules/core-js/internals/use-symbol-as-uid.js +7 -0
- package/dist/node_modules/core-js/internals/v8-prototype-define-bug.js +13 -0
- package/dist/node_modules/core-js/internals/validate-arguments-length.js +7 -0
- package/dist/node_modules/core-js/internals/weak-map-basic-detection.js +7 -0
- package/dist/node_modules/core-js/internals/well-known-symbol-define.js +12 -0
- package/dist/node_modules/core-js/internals/well-known-symbol-wrapped.js +4 -0
- package/dist/node_modules/core-js/internals/well-known-symbol.js +19 -0
- package/dist/node_modules/core-js/modules/es.array.concat.js +59 -0
- package/dist/node_modules/core-js/modules/es.array.filter.js +15 -0
- package/dist/node_modules/core-js/modules/es.array.find-index.js +22 -0
- package/dist/node_modules/core-js/modules/es.array.find.js +22 -0
- package/dist/node_modules/core-js/modules/es.array.includes.js +28 -0
- package/dist/node_modules/core-js/modules/es.array.iterator.js +62 -0
- package/dist/node_modules/core-js/modules/es.array.join.js +19 -0
- package/dist/node_modules/core-js/modules/es.array.map.js +15 -0
- package/dist/node_modules/core-js/modules/es.array.splice.js +67 -0
- package/dist/node_modules/core-js/modules/es.function.name.js +26 -0
- package/dist/node_modules/core-js/modules/es.json.stringify.js +251 -0
- package/dist/node_modules/core-js/modules/es.object.assign.js +10 -0
- package/dist/node_modules/core-js/modules/es.object.entries.js +11 -0
- package/dist/node_modules/core-js/modules/es.object.get-own-property-symbols.js +19 -0
- package/dist/node_modules/core-js/modules/es.object.keys.js +15 -0
- package/dist/node_modules/core-js/modules/es.object.to-string.js +10 -0
- package/dist/node_modules/core-js/modules/es.promise.all.js +39 -0
- package/dist/node_modules/core-js/modules/es.promise.catch.js +26 -0
- package/dist/node_modules/core-js/modules/es.promise.constructor.js +293 -0
- package/dist/node_modules/core-js/modules/es.promise.finally.js +43 -0
- package/dist/node_modules/core-js/modules/es.promise.js +8 -0
- package/dist/node_modules/core-js/modules/es.promise.race.js +26 -0
- package/dist/node_modules/core-js/modules/es.promise.reject.js +15 -0
- package/dist/node_modules/core-js/modules/es.promise.resolve.js +18 -0
- package/dist/node_modules/core-js/modules/es.regexp.exec.js +9 -0
- package/dist/node_modules/core-js/modules/es.regexp.to-string.js +26 -0
- package/dist/node_modules/core-js/modules/es.set.constructor.js +9 -0
- package/dist/node_modules/core-js/modules/es.set.js +3 -0
- package/dist/node_modules/core-js/modules/es.string.includes.js +21 -0
- package/dist/node_modules/core-js/modules/es.string.iterator.js +31 -0
- package/dist/node_modules/core-js/modules/es.string.search.js +40 -0
- package/dist/node_modules/core-js/modules/es.string.split.js +113 -0
- package/dist/node_modules/core-js/modules/es.symbol.constructor.js +264 -0
- package/dist/node_modules/core-js/modules/es.symbol.description.js +69 -0
- package/dist/node_modules/core-js/modules/es.symbol.for.js +23 -0
- package/dist/node_modules/core-js/modules/es.symbol.js +7 -0
- package/dist/node_modules/core-js/modules/es.symbol.key-for.js +18 -0
- package/dist/node_modules/core-js/modules/web.dom-collections.for-each.js +23 -0
- package/dist/node_modules/core-js/modules/web.dom-collections.iterator.js +37 -0
- package/dist/node_modules/regenerator-runtime/runtime.js +761 -0
- package/package.json +1 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
var call = require('./function-call.js');
|
|
3
|
+
var isCallable = require('./is-callable.js');
|
|
4
|
+
var isObject = require('./is-object.js');
|
|
5
|
+
|
|
6
|
+
var $TypeError = TypeError;
|
|
7
|
+
|
|
8
|
+
// `OrdinaryToPrimitive` abstract operation
|
|
9
|
+
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
10
|
+
module.exports = function (input, pref) {
|
|
11
|
+
var fn, val;
|
|
12
|
+
if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;
|
|
13
|
+
if (isCallable(fn = input.valueOf) && !isObject(val = call(fn, input))) return val;
|
|
14
|
+
if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;
|
|
15
|
+
throw new $TypeError("Can't convert object to primitive value");
|
|
16
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
var getBuiltIn = require('./get-built-in.js');
|
|
3
|
+
var uncurryThis = require('./function-uncurry-this.js');
|
|
4
|
+
var getOwnPropertyNamesModule = require('./object-get-own-property-names.js');
|
|
5
|
+
var getOwnPropertySymbolsModule = require('./object-get-own-property-symbols.js');
|
|
6
|
+
var anObject = require('./an-object.js');
|
|
7
|
+
|
|
8
|
+
var concat = uncurryThis([].concat);
|
|
9
|
+
|
|
10
|
+
// all object keys, includes non-enumerable and symbols
|
|
11
|
+
module.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
12
|
+
var keys = getOwnPropertyNamesModule.f(anObject(it));
|
|
13
|
+
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
|
|
14
|
+
return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;
|
|
15
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
var uncurryThis = require('./function-uncurry-this.js');
|
|
3
|
+
var hasOwn = require('./has-own-property.js');
|
|
4
|
+
|
|
5
|
+
var $SyntaxError = SyntaxError;
|
|
6
|
+
var $parseInt = parseInt;
|
|
7
|
+
var fromCharCode = String.fromCharCode;
|
|
8
|
+
var at = uncurryThis(''.charAt);
|
|
9
|
+
var slice = uncurryThis(''.slice);
|
|
10
|
+
var exec = uncurryThis(/./.exec);
|
|
11
|
+
|
|
12
|
+
var codePoints = {
|
|
13
|
+
'\\"': '"',
|
|
14
|
+
'\\\\': '\\',
|
|
15
|
+
'\\/': '/',
|
|
16
|
+
'\\b': '\b',
|
|
17
|
+
'\\f': '\f',
|
|
18
|
+
'\\n': '\n',
|
|
19
|
+
'\\r': '\r',
|
|
20
|
+
'\\t': '\t'
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
var IS_4_HEX_DIGITS = /^[\da-f]{4}$/i;
|
|
24
|
+
// eslint-disable-next-line regexp/no-control-character -- safe
|
|
25
|
+
var IS_C0_CONTROL_CODE = /^[\u0000-\u001F]$/;
|
|
26
|
+
|
|
27
|
+
module.exports = function (source, i) {
|
|
28
|
+
var unterminated = true;
|
|
29
|
+
var value = '';
|
|
30
|
+
while (i < source.length) {
|
|
31
|
+
var chr = at(source, i);
|
|
32
|
+
if (chr === '\\') {
|
|
33
|
+
var twoChars = slice(source, i, i + 2);
|
|
34
|
+
if (hasOwn(codePoints, twoChars)) {
|
|
35
|
+
value += codePoints[twoChars];
|
|
36
|
+
i += 2;
|
|
37
|
+
} else if (twoChars === '\\u') {
|
|
38
|
+
i += 2;
|
|
39
|
+
var fourHexDigits = slice(source, i, i + 4);
|
|
40
|
+
if (!exec(IS_4_HEX_DIGITS, fourHexDigits)) throw new $SyntaxError('Bad Unicode escape at: ' + i);
|
|
41
|
+
value += fromCharCode($parseInt(fourHexDigits, 16));
|
|
42
|
+
i += 4;
|
|
43
|
+
} else throw new $SyntaxError('Unknown escape sequence: "' + twoChars + '"');
|
|
44
|
+
} else if (chr === '"') {
|
|
45
|
+
unterminated = false;
|
|
46
|
+
i++;
|
|
47
|
+
break;
|
|
48
|
+
} else {
|
|
49
|
+
if (exec(IS_C0_CONTROL_CODE, chr)) throw new $SyntaxError('Bad control character in string literal at: ' + i);
|
|
50
|
+
value += chr;
|
|
51
|
+
i++;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
if (unterminated) throw new $SyntaxError('Unterminated string at: ' + i);
|
|
55
|
+
return { value: value, end: i };
|
|
56
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
var globalThis = require('./global-this.js');
|
|
3
|
+
var NativePromiseConstructor = require('./promise-native-constructor.js');
|
|
4
|
+
var isCallable = require('./is-callable.js');
|
|
5
|
+
var isForced = require('./is-forced.js');
|
|
6
|
+
var inspectSource = require('./inspect-source.js');
|
|
7
|
+
var wellKnownSymbol = require('./well-known-symbol.js');
|
|
8
|
+
var ENVIRONMENT = require('./environment.js');
|
|
9
|
+
var IS_PURE = require('./is-pure.js');
|
|
10
|
+
var V8_VERSION = require('./environment-v8-version.js');
|
|
11
|
+
|
|
12
|
+
var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;
|
|
13
|
+
var SPECIES = wellKnownSymbol('species');
|
|
14
|
+
var SUBCLASSING = false;
|
|
15
|
+
var NATIVE_PROMISE_REJECTION_EVENT = isCallable(globalThis.PromiseRejectionEvent);
|
|
16
|
+
|
|
17
|
+
var FORCED_PROMISE_CONSTRUCTOR = isForced('Promise', function () {
|
|
18
|
+
var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor);
|
|
19
|
+
var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(NativePromiseConstructor);
|
|
20
|
+
// V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
|
|
21
|
+
// https://bugs.chromium.org/p/chromium/issues/detail?id=830565
|
|
22
|
+
// We can't detect it synchronously, so just check versions
|
|
23
|
+
if (!GLOBAL_CORE_JS_PROMISE && V8_VERSION === 66) return true;
|
|
24
|
+
// We need Promise#{ catch, finally } in the pure version for preventing prototype pollution
|
|
25
|
+
if (IS_PURE && !(NativePromisePrototype['catch'] && NativePromisePrototype['finally'])) return true;
|
|
26
|
+
// We can't use @@species feature detection in V8 since it causes
|
|
27
|
+
// deoptimization and performance degradation
|
|
28
|
+
// https://github.com/zloirock/core-js/issues/679
|
|
29
|
+
if (!V8_VERSION || V8_VERSION < 51 || !/native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) {
|
|
30
|
+
// Detect correctness of subclassing with @@species support
|
|
31
|
+
var promise = new NativePromiseConstructor(function (resolve) { resolve(1); });
|
|
32
|
+
var FakePromise = function (exec) {
|
|
33
|
+
exec(function () { /* empty */ }, function () { /* empty */ });
|
|
34
|
+
};
|
|
35
|
+
var constructor = promise.constructor = {};
|
|
36
|
+
constructor[SPECIES] = FakePromise;
|
|
37
|
+
SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise;
|
|
38
|
+
if (!SUBCLASSING) return true;
|
|
39
|
+
// Unhandled rejections tracking support, NodeJS Promise without it fails @@species test
|
|
40
|
+
} return !GLOBAL_CORE_JS_PROMISE && (ENVIRONMENT === 'BROWSER' || ENVIRONMENT === 'DENO') && !NATIVE_PROMISE_REJECTION_EVENT;
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
module.exports = {
|
|
44
|
+
CONSTRUCTOR: FORCED_PROMISE_CONSTRUCTOR,
|
|
45
|
+
REJECTION_EVENT: NATIVE_PROMISE_REJECTION_EVENT,
|
|
46
|
+
SUBCLASSING: SUBCLASSING
|
|
47
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
var anObject = require('./an-object.js');
|
|
3
|
+
var isObject = require('./is-object.js');
|
|
4
|
+
var newPromiseCapability = require('./new-promise-capability.js');
|
|
5
|
+
|
|
6
|
+
module.exports = function (C, x) {
|
|
7
|
+
anObject(C);
|
|
8
|
+
if (isObject(x) && x.constructor === C) return x;
|
|
9
|
+
var promiseCapability = newPromiseCapability.f(C);
|
|
10
|
+
var resolve = promiseCapability.resolve;
|
|
11
|
+
resolve(x);
|
|
12
|
+
return promiseCapability.promise;
|
|
13
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
var NativePromiseConstructor = require('./promise-native-constructor.js');
|
|
3
|
+
var checkCorrectnessOfIteration = require('./check-correctness-of-iteration.js');
|
|
4
|
+
var FORCED_PROMISE_CONSTRUCTOR = require('./promise-constructor-detection.js').CONSTRUCTOR;
|
|
5
|
+
|
|
6
|
+
module.exports = FORCED_PROMISE_CONSTRUCTOR || !checkCorrectnessOfIteration(function (iterable) {
|
|
7
|
+
NativePromiseConstructor.all(iterable).then(undefined, function () { /* empty */ });
|
|
8
|
+
});
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
var Queue = function () {
|
|
3
|
+
this.head = null;
|
|
4
|
+
this.tail = null;
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
Queue.prototype = {
|
|
8
|
+
add: function (item) {
|
|
9
|
+
var entry = { item: item, next: null };
|
|
10
|
+
var tail = this.tail;
|
|
11
|
+
if (tail) tail.next = entry;
|
|
12
|
+
else this.head = entry;
|
|
13
|
+
this.tail = entry;
|
|
14
|
+
},
|
|
15
|
+
get: function () {
|
|
16
|
+
var entry = this.head;
|
|
17
|
+
if (entry) {
|
|
18
|
+
var next = this.head = entry.next;
|
|
19
|
+
if (next === null) this.tail = null;
|
|
20
|
+
return entry.item;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
module.exports = Queue;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
var call = require('./function-call.js');
|
|
3
|
+
var anObject = require('./an-object.js');
|
|
4
|
+
var isCallable = require('./is-callable.js');
|
|
5
|
+
var classof = require('./classof-raw.js');
|
|
6
|
+
var regexpExec = require('./regexp-exec.js');
|
|
7
|
+
|
|
8
|
+
var $TypeError = TypeError;
|
|
9
|
+
|
|
10
|
+
// `RegExpExec` abstract operation
|
|
11
|
+
// https://tc39.es/ecma262/#sec-regexpexec
|
|
12
|
+
module.exports = function (R, S) {
|
|
13
|
+
var exec = R.exec;
|
|
14
|
+
if (isCallable(exec)) {
|
|
15
|
+
var result = call(exec, R, S);
|
|
16
|
+
if (result !== null) anObject(result);
|
|
17
|
+
return result;
|
|
18
|
+
}
|
|
19
|
+
if (classof(R) === 'RegExp') return call(regexpExec, R, S);
|
|
20
|
+
throw new $TypeError('RegExp#exec called on incompatible receiver');
|
|
21
|
+
};
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
/* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
|
|
3
|
+
/* eslint-disable regexp/no-useless-quantifier -- testing */
|
|
4
|
+
var call = require('./function-call.js');
|
|
5
|
+
var uncurryThis = require('./function-uncurry-this.js');
|
|
6
|
+
var toString = require('./to-string.js');
|
|
7
|
+
var regexpFlags = require('./regexp-flags.js');
|
|
8
|
+
var stickyHelpers = require('./regexp-sticky-helpers.js');
|
|
9
|
+
var shared = require('./shared.js');
|
|
10
|
+
var create = require('./object-create.js');
|
|
11
|
+
var getInternalState = require('./internal-state.js').get;
|
|
12
|
+
var UNSUPPORTED_DOT_ALL = require('./regexp-unsupported-dot-all.js');
|
|
13
|
+
var UNSUPPORTED_NCG = require('./regexp-unsupported-ncg.js');
|
|
14
|
+
|
|
15
|
+
var nativeReplace = shared('native-string-replace', String.prototype.replace);
|
|
16
|
+
var nativeExec = RegExp.prototype.exec;
|
|
17
|
+
var patchedExec = nativeExec;
|
|
18
|
+
var charAt = uncurryThis(''.charAt);
|
|
19
|
+
var indexOf = uncurryThis(''.indexOf);
|
|
20
|
+
var replace = uncurryThis(''.replace);
|
|
21
|
+
var stringSlice = uncurryThis(''.slice);
|
|
22
|
+
|
|
23
|
+
var UPDATES_LAST_INDEX_WRONG = (function () {
|
|
24
|
+
var re1 = /a/;
|
|
25
|
+
var re2 = /b*/g;
|
|
26
|
+
call(nativeExec, re1, 'a');
|
|
27
|
+
call(nativeExec, re2, 'a');
|
|
28
|
+
return re1.lastIndex !== 0 || re2.lastIndex !== 0;
|
|
29
|
+
})();
|
|
30
|
+
|
|
31
|
+
var UNSUPPORTED_Y = stickyHelpers.BROKEN_CARET;
|
|
32
|
+
|
|
33
|
+
// nonparticipating capturing group, copied from es5-shim's String#split patch.
|
|
34
|
+
var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
|
|
35
|
+
|
|
36
|
+
var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG;
|
|
37
|
+
|
|
38
|
+
var setGroups = function (re, groups) {
|
|
39
|
+
var object = re.groups = create(null);
|
|
40
|
+
for (var i = 0; i < groups.length; i++) {
|
|
41
|
+
var group = groups[i];
|
|
42
|
+
object[group[0]] = re[group[1]];
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
if (PATCH) {
|
|
47
|
+
patchedExec = function exec(string) {
|
|
48
|
+
var re = this;
|
|
49
|
+
var state = getInternalState(re);
|
|
50
|
+
var str = toString(string);
|
|
51
|
+
var raw = state.raw;
|
|
52
|
+
var result, reCopy, lastIndex;
|
|
53
|
+
|
|
54
|
+
if (raw) {
|
|
55
|
+
raw.lastIndex = re.lastIndex;
|
|
56
|
+
result = call(patchedExec, raw, str);
|
|
57
|
+
re.lastIndex = raw.lastIndex;
|
|
58
|
+
|
|
59
|
+
if (result && state.groups) setGroups(result, state.groups);
|
|
60
|
+
|
|
61
|
+
return result;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
var groups = state.groups;
|
|
65
|
+
var sticky = UNSUPPORTED_Y && re.sticky;
|
|
66
|
+
var flags = call(regexpFlags, re);
|
|
67
|
+
var source = re.source;
|
|
68
|
+
var charsAdded = 0;
|
|
69
|
+
var strCopy = str;
|
|
70
|
+
|
|
71
|
+
if (sticky) {
|
|
72
|
+
flags = replace(flags, 'y', '');
|
|
73
|
+
if (indexOf(flags, 'g') === -1) {
|
|
74
|
+
flags += 'g';
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
strCopy = stringSlice(str, re.lastIndex);
|
|
78
|
+
// Support anchored sticky behavior.
|
|
79
|
+
var prevChar = re.lastIndex > 0 && charAt(str, re.lastIndex - 1);
|
|
80
|
+
if (re.lastIndex > 0 &&
|
|
81
|
+
(!re.multiline || re.multiline && prevChar !== '\n' && prevChar !== '\r' && prevChar !== '\u2028' && prevChar !== '\u2029')) {
|
|
82
|
+
source = '(?: (?:' + source + '))';
|
|
83
|
+
strCopy = ' ' + strCopy;
|
|
84
|
+
charsAdded++;
|
|
85
|
+
}
|
|
86
|
+
// ^(? + rx + ) is needed, in combination with some str slicing, to
|
|
87
|
+
// simulate the 'y' flag.
|
|
88
|
+
reCopy = new RegExp('^(?:' + source + ')', flags);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
if (NPCG_INCLUDED) {
|
|
92
|
+
reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
|
|
93
|
+
}
|
|
94
|
+
if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
|
|
95
|
+
|
|
96
|
+
var match = call(nativeExec, sticky ? reCopy : re, strCopy);
|
|
97
|
+
|
|
98
|
+
if (sticky) {
|
|
99
|
+
if (match) {
|
|
100
|
+
match.input = str;
|
|
101
|
+
match[0] = stringSlice(match[0], charsAdded);
|
|
102
|
+
match.index = re.lastIndex;
|
|
103
|
+
re.lastIndex += match[0].length;
|
|
104
|
+
} else re.lastIndex = 0;
|
|
105
|
+
} else if (UPDATES_LAST_INDEX_WRONG && match) {
|
|
106
|
+
re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
|
|
107
|
+
}
|
|
108
|
+
if (NPCG_INCLUDED && match && match.length > 1) {
|
|
109
|
+
// Fix browsers whose `exec` methods don't consistently return `undefined`
|
|
110
|
+
// for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/
|
|
111
|
+
call(nativeReplace, match[0], reCopy, function () {
|
|
112
|
+
for (var i = 1; i < arguments.length - 2; i++) {
|
|
113
|
+
if (arguments[i] === undefined) match[i] = undefined;
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
if (match && groups) setGroups(match, groups);
|
|
119
|
+
|
|
120
|
+
return match;
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
module.exports = patchedExec;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
var globalThis = require('./global-this.js');
|
|
3
|
+
var fails = require('./fails.js');
|
|
4
|
+
|
|
5
|
+
// babel-minify and Closure Compiler transpiles RegExp('.', 'd') -> /./d and it causes SyntaxError
|
|
6
|
+
var RegExp = globalThis.RegExp;
|
|
7
|
+
|
|
8
|
+
var FLAGS_GETTER_IS_CORRECT = !fails(function () {
|
|
9
|
+
var INDICES_SUPPORT = true;
|
|
10
|
+
try {
|
|
11
|
+
RegExp('.', 'd');
|
|
12
|
+
} catch (error) {
|
|
13
|
+
INDICES_SUPPORT = false;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
var O = {};
|
|
17
|
+
// modern V8 bug
|
|
18
|
+
var calls = '';
|
|
19
|
+
var expected = INDICES_SUPPORT ? 'dgimsy' : 'gimsy';
|
|
20
|
+
|
|
21
|
+
var addGetter = function (key, chr) {
|
|
22
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
23
|
+
Object.defineProperty(O, key, { get: function () {
|
|
24
|
+
calls += chr;
|
|
25
|
+
return true;
|
|
26
|
+
} });
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
var pairs = {
|
|
30
|
+
dotAll: 's',
|
|
31
|
+
global: 'g',
|
|
32
|
+
ignoreCase: 'i',
|
|
33
|
+
multiline: 'm',
|
|
34
|
+
sticky: 'y'
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
if (INDICES_SUPPORT) pairs.hasIndices = 'd';
|
|
38
|
+
|
|
39
|
+
for (var key in pairs) addGetter(key, pairs[key]);
|
|
40
|
+
|
|
41
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
42
|
+
var result = Object.getOwnPropertyDescriptor(RegExp.prototype, 'flags').get.call(O);
|
|
43
|
+
|
|
44
|
+
return result !== expected || calls !== expected;
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
module.exports = { correct: FLAGS_GETTER_IS_CORRECT };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
var anObject = require('./an-object.js');
|
|
3
|
+
|
|
4
|
+
// `RegExp.prototype.flags` getter implementation
|
|
5
|
+
// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
|
|
6
|
+
module.exports = function () {
|
|
7
|
+
var that = anObject(this);
|
|
8
|
+
var result = '';
|
|
9
|
+
if (that.hasIndices) result += 'd';
|
|
10
|
+
if (that.global) result += 'g';
|
|
11
|
+
if (that.ignoreCase) result += 'i';
|
|
12
|
+
if (that.multiline) result += 'm';
|
|
13
|
+
if (that.dotAll) result += 's';
|
|
14
|
+
if (that.unicode) result += 'u';
|
|
15
|
+
if (that.unicodeSets) result += 'v';
|
|
16
|
+
if (that.sticky) result += 'y';
|
|
17
|
+
return result;
|
|
18
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
var call = require('./function-call.js');
|
|
3
|
+
var hasOwn = require('./has-own-property.js');
|
|
4
|
+
var isPrototypeOf = require('./object-is-prototype-of.js');
|
|
5
|
+
var regExpFlagsDetection = require('./regexp-flags-detection.js');
|
|
6
|
+
var regExpFlagsGetterImplementation = require('./regexp-flags.js');
|
|
7
|
+
|
|
8
|
+
var RegExpPrototype = RegExp.prototype;
|
|
9
|
+
|
|
10
|
+
module.exports = regExpFlagsDetection.correct ? function (it) {
|
|
11
|
+
return it.flags;
|
|
12
|
+
} : function (it) {
|
|
13
|
+
return (!regExpFlagsDetection.correct && isPrototypeOf(RegExpPrototype, it) && !hasOwn(it, 'flags'))
|
|
14
|
+
? call(regExpFlagsGetterImplementation, it)
|
|
15
|
+
: it.flags;
|
|
16
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
var fails = require('./fails.js');
|
|
3
|
+
var globalThis = require('./global-this.js');
|
|
4
|
+
|
|
5
|
+
// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
|
|
6
|
+
var $RegExp = globalThis.RegExp;
|
|
7
|
+
|
|
8
|
+
var UNSUPPORTED_Y = fails(function () {
|
|
9
|
+
var re = $RegExp('a', 'y');
|
|
10
|
+
re.lastIndex = 2;
|
|
11
|
+
return re.exec('abcd') !== null;
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
// UC Browser bug
|
|
15
|
+
// https://github.com/zloirock/core-js/issues/1008
|
|
16
|
+
var MISSED_STICKY = UNSUPPORTED_Y || fails(function () {
|
|
17
|
+
return !$RegExp('a', 'y').sticky;
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
var BROKEN_CARET = UNSUPPORTED_Y || fails(function () {
|
|
21
|
+
// https://bugzilla.mozilla.org/show_bug.cgi?id=773687
|
|
22
|
+
var re = $RegExp('^r', 'gy');
|
|
23
|
+
re.lastIndex = 2;
|
|
24
|
+
return re.exec('str') !== null;
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
module.exports = {
|
|
28
|
+
BROKEN_CARET: BROKEN_CARET,
|
|
29
|
+
MISSED_STICKY: MISSED_STICKY,
|
|
30
|
+
UNSUPPORTED_Y: UNSUPPORTED_Y
|
|
31
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
var fails = require('./fails.js');
|
|
3
|
+
var globalThis = require('./global-this.js');
|
|
4
|
+
|
|
5
|
+
// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
|
|
6
|
+
var $RegExp = globalThis.RegExp;
|
|
7
|
+
|
|
8
|
+
module.exports = fails(function () {
|
|
9
|
+
var re = $RegExp('.', 's');
|
|
10
|
+
return !(re.dotAll && re.test('\n') && re.flags === 's');
|
|
11
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
var fails = require('./fails.js');
|
|
3
|
+
var globalThis = require('./global-this.js');
|
|
4
|
+
|
|
5
|
+
// babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
|
|
6
|
+
var $RegExp = globalThis.RegExp;
|
|
7
|
+
|
|
8
|
+
module.exports = fails(function () {
|
|
9
|
+
var re = $RegExp('(?<a>b)', 'g');
|
|
10
|
+
return re.exec('b').groups.a !== 'b' ||
|
|
11
|
+
'b'.replace(re, '$<a>c') !== 'bc';
|
|
12
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
var isNullOrUndefined = require('./is-null-or-undefined.js');
|
|
3
|
+
|
|
4
|
+
var $TypeError = TypeError;
|
|
5
|
+
|
|
6
|
+
// `RequireObjectCoercible` abstract operation
|
|
7
|
+
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
8
|
+
module.exports = function (it) {
|
|
9
|
+
if (isNullOrUndefined(it)) throw new $TypeError("Can't call method on " + it);
|
|
10
|
+
return it;
|
|
11
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
var globalThis = require('./global-this.js');
|
|
3
|
+
var DESCRIPTORS = require('./descriptors.js');
|
|
4
|
+
|
|
5
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
6
|
+
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
7
|
+
|
|
8
|
+
// Avoid NodeJS experimental warning
|
|
9
|
+
module.exports = function (name) {
|
|
10
|
+
if (!DESCRIPTORS) return globalThis[name];
|
|
11
|
+
var descriptor = getOwnPropertyDescriptor(globalThis, name);
|
|
12
|
+
return descriptor && descriptor.value;
|
|
13
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
// `SameValue` abstract operation
|
|
3
|
+
// https://tc39.es/ecma262/#sec-samevalue
|
|
4
|
+
// eslint-disable-next-line es/no-object-is -- safe
|
|
5
|
+
module.exports = Object.is || function is(x, y) {
|
|
6
|
+
// eslint-disable-next-line no-self-compare -- NaN check
|
|
7
|
+
return x === y ? x !== 0 || 1 / x === 1 / y : x !== x && y !== y;
|
|
8
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
var getBuiltIn = require('./get-built-in.js');
|
|
3
|
+
var defineBuiltInAccessor = require('./define-built-in-accessor.js');
|
|
4
|
+
var wellKnownSymbol = require('./well-known-symbol.js');
|
|
5
|
+
var DESCRIPTORS = require('./descriptors.js');
|
|
6
|
+
|
|
7
|
+
var SPECIES = wellKnownSymbol('species');
|
|
8
|
+
|
|
9
|
+
module.exports = function (CONSTRUCTOR_NAME) {
|
|
10
|
+
var Constructor = getBuiltIn(CONSTRUCTOR_NAME);
|
|
11
|
+
|
|
12
|
+
if (DESCRIPTORS && Constructor && !Constructor[SPECIES]) {
|
|
13
|
+
defineBuiltInAccessor(Constructor, SPECIES, {
|
|
14
|
+
configurable: true,
|
|
15
|
+
get: function () { return this; }
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
var defineProperty = require('./object-define-property.js').f;
|
|
3
|
+
var hasOwn = require('./has-own-property.js');
|
|
4
|
+
var wellKnownSymbol = require('./well-known-symbol.js');
|
|
5
|
+
|
|
6
|
+
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
|
7
|
+
|
|
8
|
+
module.exports = function (target, TAG, STATIC) {
|
|
9
|
+
if (target && !STATIC) target = target.prototype;
|
|
10
|
+
if (target && !hasOwn(target, TO_STRING_TAG)) {
|
|
11
|
+
defineProperty(target, TO_STRING_TAG, { configurable: true, value: TAG });
|
|
12
|
+
}
|
|
13
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
var IS_PURE = require('./is-pure.js');
|
|
3
|
+
var globalThis = require('./global-this.js');
|
|
4
|
+
var defineGlobalProperty = require('./define-global-property.js');
|
|
5
|
+
|
|
6
|
+
var SHARED = '__core-js_shared__';
|
|
7
|
+
var store = module.exports = globalThis[SHARED] || defineGlobalProperty(SHARED, {});
|
|
8
|
+
|
|
9
|
+
(store.versions || (store.versions = [])).push({
|
|
10
|
+
version: '3.50.0',
|
|
11
|
+
mode: IS_PURE ? 'pure' : 'global',
|
|
12
|
+
copyright: '© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.',
|
|
13
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.50.0/LICENSE',
|
|
14
|
+
source: 'https://github.com/zloirock/core-js'
|
|
15
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
var store = require('./shared-store.js');
|
|
3
|
+
// eslint-disable-next-line es/no-object-create -- safe
|
|
4
|
+
var create = Object.create || Object;
|
|
5
|
+
|
|
6
|
+
module.exports = function (key, value) {
|
|
7
|
+
return store[key] || (store[key] = value || create(null));
|
|
8
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
var anObject = require('./an-object.js');
|
|
3
|
+
var aConstructor = require('./a-constructor.js');
|
|
4
|
+
var isNullOrUndefined = require('./is-null-or-undefined.js');
|
|
5
|
+
var wellKnownSymbol = require('./well-known-symbol.js');
|
|
6
|
+
|
|
7
|
+
var SPECIES = wellKnownSymbol('species');
|
|
8
|
+
|
|
9
|
+
// `SpeciesConstructor` abstract operation
|
|
10
|
+
// https://tc39.es/ecma262/#sec-speciesconstructor
|
|
11
|
+
module.exports = function (O, defaultConstructor) {
|
|
12
|
+
var C = anObject(O).constructor;
|
|
13
|
+
var S;
|
|
14
|
+
return C === undefined || isNullOrUndefined(S = anObject(C)[SPECIES]) ? defaultConstructor : aConstructor(S);
|
|
15
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
var uncurryThis = require('./function-uncurry-this.js');
|
|
3
|
+
var toIntegerOrInfinity = require('./to-integer-or-infinity.js');
|
|
4
|
+
var toString = require('./to-string.js');
|
|
5
|
+
var requireObjectCoercible = require('./require-object-coercible.js');
|
|
6
|
+
|
|
7
|
+
var charAt = uncurryThis(''.charAt);
|
|
8
|
+
var charCodeAt = uncurryThis(''.charCodeAt);
|
|
9
|
+
var stringSlice = uncurryThis(''.slice);
|
|
10
|
+
|
|
11
|
+
var createMethod = function (CONVERT_TO_STRING) {
|
|
12
|
+
return function ($this, pos) {
|
|
13
|
+
var S = toString(requireObjectCoercible($this));
|
|
14
|
+
var position = toIntegerOrInfinity(pos);
|
|
15
|
+
var size = S.length;
|
|
16
|
+
var first, second;
|
|
17
|
+
if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
|
|
18
|
+
first = charCodeAt(S, position);
|
|
19
|
+
return first < 0xD800 || first > 0xDBFF || position + 1 === size
|
|
20
|
+
|| (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF
|
|
21
|
+
? CONVERT_TO_STRING
|
|
22
|
+
? charAt(S, position)
|
|
23
|
+
: first
|
|
24
|
+
: CONVERT_TO_STRING
|
|
25
|
+
? stringSlice(S, position, position + 2)
|
|
26
|
+
: (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
module.exports = {
|
|
31
|
+
// `String.prototype.codePointAt` method
|
|
32
|
+
// https://tc39.es/ecma262/#sec-string.prototype.codepointat
|
|
33
|
+
codeAt: createMethod(false),
|
|
34
|
+
// `String.prototype.at` method
|
|
35
|
+
// https://github.com/mathiasbynens/String.prototype.at
|
|
36
|
+
charAt: createMethod(true)
|
|
37
|
+
};
|