@opentiny/fluent-editor 4.0.0-alpha.7 → 4.0.0-alpha.8
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/LICENSE +21 -0
- package/dist/README.md +88 -0
- package/dist/es/attributors/line-height.es.js.map +1 -0
- package/dist/es/config/base64-image.es.js.map +1 -0
- package/dist/es/config/editor.config.es.js.map +1 -0
- package/dist/es/config/editor.utils.es.js.map +1 -0
- package/dist/es/config/i18n/en-us.es.js.map +1 -0
- package/dist/es/config/i18n/zh-cn.es.js.map +1 -0
- package/dist/es/config/index.es.js.map +1 -0
- package/dist/es/core/fluent-editor.es.js.map +1 -0
- package/dist/es/fluent-editor.es.js.map +1 -0
- package/dist/es/formats/emoji.es.js.map +1 -0
- package/dist/es/formats/soft-break.es.js.map +1 -0
- package/dist/es/formats/strike.es.js.map +1 -0
- package/dist/es/formats/video.es.js.map +1 -0
- package/dist/es/modules/ai/constants.es.js.map +1 -0
- package/dist/es/modules/ai/icons.es.js.map +1 -0
- package/dist/es/modules/ai/index.es.js.map +1 -0
- package/dist/es/modules/collaborative-editing/awareness/awareness.es.js +93 -0
- package/dist/es/modules/collaborative-editing/awareness/awareness.es.js.map +1 -0
- package/dist/es/modules/collaborative-editing/awareness/y-indexeddb.es.js +12 -0
- package/dist/es/modules/collaborative-editing/awareness/y-indexeddb.es.js.map +1 -0
- package/dist/es/modules/collaborative-editing/collaborative-editing.es.js +105 -0
- package/dist/es/modules/collaborative-editing/collaborative-editing.es.js.map +1 -0
- package/dist/es/modules/collaborative-editing/module.es.js.map +1 -0
- package/dist/es/modules/collaborative-editing/provider/providerRegistry.es.js.map +1 -0
- package/dist/es/modules/collaborative-editing/provider/webrtc.es.js +99 -0
- package/dist/es/modules/collaborative-editing/provider/webrtc.es.js.map +1 -0
- package/dist/es/modules/collaborative-editing/provider/websocket.es.js +111 -0
- package/dist/es/modules/collaborative-editing/provider/websocket.es.js.map +1 -0
- package/dist/es/modules/counter.es.js.map +1 -0
- package/dist/es/modules/custom-clipboard.es.js.map +1 -0
- package/dist/es/modules/custom-image/actions/action.es.js.map +1 -0
- package/dist/es/modules/custom-image/actions/custom-resize-action.es.js.map +1 -0
- package/dist/es/modules/custom-image/actions/delete-action.es.js.map +1 -0
- package/dist/es/modules/custom-image/blot-formatter.es.js.map +1 -0
- package/dist/es/modules/custom-image/image.es.js.map +1 -0
- package/dist/es/modules/custom-image/options.es.js.map +1 -0
- package/dist/es/modules/custom-image/specs/blot-spec.es.js.map +1 -0
- package/dist/es/modules/custom-image/specs/custom-image-spec.es.js.map +1 -0
- package/dist/es/modules/custom-image/specs/image-spec.es.js.map +1 -0
- package/dist/es/modules/divider.es.js.map +1 -0
- package/dist/es/modules/emoji.es.js +167 -0
- package/dist/es/modules/emoji.es.js.map +1 -0
- package/dist/es/modules/file/formats/file.es.js.map +1 -0
- package/dist/es/modules/file/modules/file-bar.es.js.map +1 -0
- package/dist/es/modules/file/modules/file-module.es.js.map +1 -0
- package/dist/es/modules/link/formats/link.es.js.map +1 -0
- package/dist/es/modules/link/modules/tooltip.es.js.map +1 -0
- package/dist/es/modules/mathlive/formats.es.js.map +1 -0
- package/dist/es/modules/mathlive/tooltip.es.js.map +1 -0
- package/dist/es/modules/mention/constants.es.js.map +1 -0
- package/dist/es/modules/mention/mention-link.es.js.map +1 -0
- package/dist/es/modules/mention/mention.es.js.map +1 -0
- package/dist/es/modules/syntax.es.js.map +1 -0
- package/dist/es/modules/toolbar/better-picker.es.js.map +1 -0
- package/dist/es/themes/snow.es.js.map +1 -0
- package/dist/es/tools/screenshot.es.js.map +1 -0
- package/dist/es/ui/icons.config.es.js.map +1 -0
- package/dist/es/ui/icons.es.js.map +1 -0
- package/dist/es/utils/debounce.es.js.map +1 -0
- package/dist/es/utils/method.es.js.map +1 -0
- package/dist/lib/attributors/line-height.cjs.js.map +1 -0
- package/dist/lib/config/base64-image.cjs.js.map +1 -0
- package/dist/lib/config/editor.config.cjs.js.map +1 -0
- package/dist/lib/config/editor.utils.cjs.js.map +1 -0
- package/dist/lib/config/i18n/en-us.cjs.js.map +1 -0
- package/dist/lib/config/i18n/zh-cn.cjs.js.map +1 -0
- package/dist/lib/config/index.cjs.js.map +1 -0
- package/dist/lib/core/fluent-editor.cjs.js.map +1 -0
- package/dist/lib/fluent-editor.cjs.js.map +1 -0
- package/dist/lib/formats/emoji.cjs.js.map +1 -0
- package/dist/lib/formats/soft-break.cjs.js.map +1 -0
- package/dist/lib/formats/strike.cjs.js.map +1 -0
- package/dist/lib/formats/video.cjs.js.map +1 -0
- package/dist/lib/modules/ai/constants.cjs.js.map +1 -0
- package/dist/lib/modules/ai/icons.cjs.js.map +1 -0
- package/dist/lib/modules/ai/index.cjs.js.map +1 -0
- package/dist/lib/modules/collaborative-editing/awareness/awareness.cjs.js +110 -0
- package/dist/lib/modules/collaborative-editing/awareness/awareness.cjs.js.map +1 -0
- package/dist/lib/modules/collaborative-editing/awareness/y-indexeddb.cjs.js +12 -0
- package/dist/lib/modules/collaborative-editing/awareness/y-indexeddb.cjs.js.map +1 -0
- package/dist/lib/modules/collaborative-editing/collaborative-editing.cjs.js +122 -0
- package/dist/lib/modules/collaborative-editing/collaborative-editing.cjs.js.map +1 -0
- package/dist/lib/modules/collaborative-editing/module.cjs.js.map +1 -0
- package/dist/lib/modules/collaborative-editing/provider/providerRegistry.cjs.js.map +1 -0
- package/dist/lib/modules/collaborative-editing/provider/webrtc.cjs.js +116 -0
- package/dist/lib/modules/collaborative-editing/provider/webrtc.cjs.js.map +1 -0
- package/dist/lib/modules/collaborative-editing/provider/websocket.cjs.js +128 -0
- package/dist/lib/modules/collaborative-editing/provider/websocket.cjs.js.map +1 -0
- package/dist/lib/modules/counter.cjs.js.map +1 -0
- package/dist/lib/modules/custom-clipboard.cjs.js.map +1 -0
- package/dist/lib/modules/custom-image/actions/action.cjs.js.map +1 -0
- package/dist/lib/modules/custom-image/actions/custom-resize-action.cjs.js.map +1 -0
- package/dist/lib/modules/custom-image/actions/delete-action.cjs.js.map +1 -0
- package/dist/lib/modules/custom-image/blot-formatter.cjs.js.map +1 -0
- package/dist/lib/modules/custom-image/image.cjs.js.map +1 -0
- package/dist/lib/modules/custom-image/options.cjs.js.map +1 -0
- package/dist/lib/modules/custom-image/specs/blot-spec.cjs.js.map +1 -0
- package/dist/lib/modules/custom-image/specs/custom-image-spec.cjs.js.map +1 -0
- package/dist/lib/modules/custom-image/specs/image-spec.cjs.js.map +1 -0
- package/dist/lib/modules/divider.cjs.js.map +1 -0
- package/dist/lib/modules/emoji.cjs.js +167 -0
- package/dist/lib/modules/emoji.cjs.js.map +1 -0
- package/dist/lib/modules/file/formats/file.cjs.js.map +1 -0
- package/dist/lib/modules/file/modules/file-bar.cjs.js.map +1 -0
- package/dist/lib/modules/file/modules/file-module.cjs.js.map +1 -0
- package/dist/lib/modules/link/formats/link.cjs.js.map +1 -0
- package/dist/lib/modules/link/modules/tooltip.cjs.js.map +1 -0
- package/dist/lib/modules/mathlive/formats.cjs.js.map +1 -0
- package/dist/lib/modules/mathlive/tooltip.cjs.js.map +1 -0
- package/dist/lib/modules/mention/constants.cjs.js.map +1 -0
- package/dist/lib/modules/mention/mention-link.cjs.js.map +1 -0
- package/dist/lib/modules/mention/mention.cjs.js.map +1 -0
- package/dist/lib/modules/syntax.cjs.js.map +1 -0
- package/dist/lib/modules/toolbar/better-picker.cjs.js.map +1 -0
- package/dist/lib/themes/snow.cjs.js.map +1 -0
- package/dist/lib/tools/screenshot.cjs.js.map +1 -0
- package/dist/lib/ui/icons.cjs.js.map +1 -0
- package/dist/lib/ui/icons.config.cjs.js.map +1 -0
- package/dist/lib/utils/debounce.cjs.js.map +1 -0
- package/dist/lib/utils/method.cjs.js.map +1 -0
- package/dist/package.json +67 -0
- package/dist/types/attributors/font-size.d.ts +1 -0
- package/dist/types/attributors/font-style.d.ts +1 -0
- package/dist/types/attributors/index.d.ts +4 -0
- package/dist/types/attributors/line-height.d.ts +1 -0
- package/dist/types/attributors/text-indent.d.ts +1 -0
- package/dist/types/config/base64-image.d.ts +2 -0
- package/dist/types/config/editor.config.d.ts +11 -0
- package/dist/types/config/editor.utils.d.ts +40 -0
- package/dist/types/config/i18n/en-us.d.ts +123 -0
- package/dist/types/config/i18n/zh-cn.d.ts +123 -0
- package/dist/types/config/index.d.ts +7 -0
- package/dist/types/config/types/editor-config.interface.d.ts +14 -0
- package/dist/types/config/types/editor-modules.interface.d.ts +41 -0
- package/dist/types/config/types/index.d.ts +3 -0
- package/dist/types/config/types/type.d.ts +2 -0
- package/dist/types/core/fluent-editor.d.ts +13 -0
- package/dist/types/fluent-editor.d.ts +2 -0
- package/dist/types/formats/emoji.d.ts +8 -0
- package/dist/types/formats/index.d.ts +4 -0
- package/dist/types/formats/soft-break.d.ts +12 -0
- package/dist/types/formats/strike.d.ts +8 -0
- package/dist/types/formats/video.d.ts +13 -0
- package/dist/types/index.d.ts +8 -0
- package/dist/types/modules/ai/constants.d.ts +30 -0
- package/dist/types/modules/ai/icons.d.ts +21 -0
- package/dist/types/modules/ai/index.d.ts +96 -0
- package/dist/types/modules/ai/types.d.ts +16 -0
- package/dist/types/modules/collaborative-editing/awareness/awareness.d.ts +28 -0
- package/dist/types/modules/collaborative-editing/awareness/index.d.ts +2 -0
- package/dist/types/modules/collaborative-editing/awareness/y-indexeddb.d.ts +2 -0
- package/dist/types/modules/collaborative-editing/collaborative-editing.d.ts +24 -0
- package/dist/types/modules/collaborative-editing/index.d.ts +2 -0
- package/dist/types/modules/collaborative-editing/module.d.ts +11 -0
- package/dist/types/modules/collaborative-editing/provider/index.d.ts +3 -0
- package/dist/types/modules/collaborative-editing/provider/providerRegistry.d.ts +25 -0
- package/dist/types/modules/collaborative-editing/provider/webrtc.d.ts +36 -0
- package/dist/types/modules/collaborative-editing/provider/websocket.d.ts +40 -0
- package/dist/types/modules/collaborative-editing/types.d.ts +37 -0
- package/dist/types/modules/counter.d.ts +23 -0
- package/dist/types/modules/custom-clipboard.d.ts +25 -0
- package/dist/types/modules/custom-image/actions/action.d.ts +8 -0
- package/dist/types/modules/custom-image/actions/custom-resize-action.d.ts +23 -0
- package/dist/types/modules/custom-image/actions/delete-action.d.ts +6 -0
- package/dist/types/modules/custom-image/actions/image-toolbar-buttons.d.ts +16 -0
- package/dist/types/modules/custom-image/actions/index.d.ts +6 -0
- package/dist/types/modules/custom-image/actions/toolbar-action.d.ts +11 -0
- package/dist/types/modules/custom-image/actions/toolbar.d.ts +19 -0
- package/dist/types/modules/custom-image/blot-formatter.d.ts +23 -0
- package/dist/types/modules/custom-image/image.d.ts +28 -0
- package/dist/types/modules/custom-image/index.d.ts +4 -0
- package/dist/types/modules/custom-image/options.d.ts +47 -0
- package/dist/types/modules/custom-image/specs/blot-spec.d.ts +12 -0
- package/dist/types/modules/custom-image/specs/custom-image-spec.d.ts +17 -0
- package/dist/types/modules/custom-image/specs/image-spec.d.ts +8 -0
- package/dist/types/modules/custom-image/specs/index.d.ts +3 -0
- package/dist/types/modules/custom-uploader.d.ts +40 -0
- package/dist/types/modules/divider.d.ts +8 -0
- package/dist/types/modules/emoji.d.ts +39 -0
- package/dist/types/modules/file/formats/file.d.ts +18 -0
- package/dist/types/modules/file/index.d.ts +3 -0
- package/dist/types/modules/file/modules/file-bar.d.ts +14 -0
- package/dist/types/modules/file/modules/file-module.d.ts +9 -0
- package/dist/types/modules/i18n.d.ts +14 -0
- package/dist/types/modules/index.d.ts +16 -0
- package/dist/types/modules/link/formats/link.d.ts +15 -0
- package/dist/types/modules/link/index.d.ts +2 -0
- package/dist/types/modules/link/modules/tooltip.d.ts +27 -0
- package/dist/types/modules/mathlive/formats.d.ts +22 -0
- package/dist/types/modules/mathlive/index.d.ts +3 -0
- package/dist/types/modules/mathlive/module.d.ts +9 -0
- package/dist/types/modules/mathlive/tooltip.d.ts +18 -0
- package/dist/types/modules/mention/constants.d.ts +3 -0
- package/dist/types/modules/mention/index.d.ts +2 -0
- package/dist/types/modules/mention/mention-link.d.ts +16 -0
- package/dist/types/modules/mention/mention.d.ts +53 -0
- package/dist/types/modules/shortcut-key/index.d.ts +71 -0
- package/dist/types/modules/syntax.d.ts +13 -0
- package/dist/types/modules/table-up/index.d.ts +34 -0
- package/dist/types/modules/toolbar/better-picker.d.ts +15 -0
- package/dist/types/modules/toolbar/better-toolbar.d.ts +7 -0
- package/dist/types/modules/toolbar/index.d.ts +3 -0
- package/dist/types/modules/toolbar/toolbar-tip.d.ts +9 -0
- package/dist/types/themes/snow.d.ts +11 -0
- package/dist/types/tools/format-painter.d.ts +13 -0
- package/dist/types/tools/fullscreen.d.ts +6 -0
- package/dist/types/tools/screenshot.d.ts +19 -0
- package/dist/types/ui/icons.config.d.ts +38 -0
- package/dist/types/ui/icons.d.ts +6 -0
- package/dist/types/utils/debounce.d.ts +6 -0
- package/dist/types/utils/image.d.ts +1 -0
- package/dist/types/utils/is.d.ts +6 -0
- package/dist/types/utils/method.d.ts +6 -0
- package/dist/types/utils/scroll-lock.d.ts +6 -0
- package/package.json +67 -67
- package/scripts/pre-release.cjs +35 -0
- package/src/assets/ai.scss +451 -0
- package/src/assets/common/config.scss +4 -0
- package/src/assets/common.scss +132 -0
- package/src/assets/counter.scss +16 -0
- package/src/assets/custom-image.scss +19 -0
- package/src/assets/editor.scss +351 -0
- package/src/assets/fileBar.scss +107 -0
- package/src/assets/font.scss +18 -0
- package/src/assets/fullscreen.scss +50 -0
- package/src/assets/iconfont/iconfont.ttf +0 -0
- package/src/assets/iconfont/iconfont.woff +0 -0
- package/src/assets/iconfont/iconfont.woff2 +0 -0
- package/src/assets/imageBar.scss +98 -0
- package/src/assets/lineHeight.scss +15 -0
- package/src/assets/link.scss +120 -0
- package/src/assets/mathlive.scss +40 -0
- package/src/assets/mention.scss +48 -0
- package/src/assets/screenshot.scss +78 -0
- package/src/assets/size.scss +11 -0
- package/src/assets/style.scss +46 -0
- package/src/assets/svgs/align-center.svg +41 -0
- package/src/assets/svgs/align-justify.svg +8 -0
- package/src/assets/svgs/arrow-down.svg +6 -0
- package/src/assets/svgs/background-color.svg +7 -0
- package/src/assets/svgs/clean.svg +8 -0
- package/src/assets/svgs/code-block.svg +5 -0
- package/src/assets/svgs/code.svg +25 -0
- package/src/assets/svgs/color.svg +7 -0
- package/src/assets/svgs/direction-ltr.svg +8 -0
- package/src/assets/svgs/direction-rtl.svg +8 -0
- package/src/assets/svgs/divider.svg +4 -0
- package/src/assets/svgs/emoji.svg +53 -0
- package/src/assets/svgs/file.svg +12 -0
- package/src/assets/svgs/format-painter.svg +10 -0
- package/src/assets/svgs/formula.svg +6 -0
- package/src/assets/svgs/fullscreen.svg +43 -0
- package/src/assets/svgs/image.svg +17 -0
- package/src/assets/svgs/italic.svg +6 -0
- package/src/assets/svgs/link.svg +9 -0
- package/src/assets/svgs/list-bullet.svg +16 -0
- package/src/assets/svgs/list-ordered.svg +18 -0
- package/src/assets/svgs/list-task.svg +5 -0
- package/src/assets/svgs/redo.svg +8 -0
- package/src/assets/svgs/screenshot.svg +17 -0
- package/src/assets/svgs/script-sub.svg +15 -0
- package/src/assets/svgs/script-super.svg +15 -0
- package/src/assets/svgs/strike.svg +6 -0
- package/src/assets/svgs/underline.svg +13 -0
- package/src/assets/svgs/undo.svg +8 -0
- package/src/assets/svgs/video.svg +10 -0
- package/src/assets/tasklist.scss +76 -0
- package/src/assets/toolbar.scss +385 -0
- package/src/assets/variable.scss +9 -0
- package/src/assets/video.scss +5 -0
- package/src/attributors/font-size.ts +6 -0
- package/src/attributors/font-style.ts +6 -0
- package/src/attributors/index.ts +4 -0
- package/src/attributors/line-height.ts +6 -0
- package/src/attributors/text-indent.ts +6 -0
- package/src/config/base64-image.ts +5 -0
- package/src/config/editor.config.ts +86 -0
- package/src/config/editor.utils.ts +193 -0
- package/src/config/i18n/en-us.ts +138 -0
- package/src/config/i18n/zh-cn.ts +137 -0
- package/src/config/index.ts +44 -0
- package/src/config/types/editor-config.interface.ts +16 -0
- package/src/config/types/editor-modules.interface.ts +47 -0
- package/src/config/types/index.ts +3 -0
- package/src/config/types/type.ts +2 -0
- package/src/core/fluent-editor.ts +31 -0
- package/src/fluent-editor.ts +72 -0
- package/src/formats/emoji.ts +10 -0
- package/src/formats/index.ts +4 -0
- package/src/formats/soft-break.ts +27 -0
- package/src/formats/strike.ts +11 -0
- package/src/formats/video.ts +53 -0
- package/src/index.ts +9 -0
- package/src/modules/ai/constants.ts +43 -0
- package/src/modules/ai/icons.ts +333 -0
- package/src/modules/ai/index.ts +850 -0
- package/src/modules/ai/types.ts +18 -0
- package/src/modules/collaborative-editing/awareness/awareness.ts +141 -0
- package/src/modules/collaborative-editing/awareness/index.ts +2 -0
- package/src/modules/collaborative-editing/awareness/y-indexeddb.ts +12 -0
- package/src/modules/collaborative-editing/collaborative-editing.ts +115 -0
- package/src/modules/collaborative-editing/index.ts +2 -0
- package/src/modules/collaborative-editing/module.ts +32 -0
- package/src/modules/collaborative-editing/provider/index.ts +3 -0
- package/src/modules/collaborative-editing/provider/providerRegistry.ts +57 -0
- package/src/modules/collaborative-editing/provider/webrtc.ts +125 -0
- package/src/modules/collaborative-editing/provider/websocket.ts +142 -0
- package/src/modules/collaborative-editing/types.ts +44 -0
- package/src/modules/counter.ts +84 -0
- package/src/modules/custom-clipboard.ts +537 -0
- package/src/modules/custom-image/actions/action.ts +15 -0
- package/src/modules/custom-image/actions/custom-resize-action.ts +207 -0
- package/src/modules/custom-image/actions/delete-action.ts +32 -0
- package/src/modules/custom-image/actions/image-toolbar-buttons.ts +135 -0
- package/src/modules/custom-image/actions/index.ts +6 -0
- package/src/modules/custom-image/actions/toolbar-action.ts +32 -0
- package/src/modules/custom-image/actions/toolbar.ts +145 -0
- package/src/modules/custom-image/blot-formatter.ts +158 -0
- package/src/modules/custom-image/image.ts +132 -0
- package/src/modules/custom-image/index.ts +4 -0
- package/src/modules/custom-image/options.ts +139 -0
- package/src/modules/custom-image/specs/blot-spec.ts +30 -0
- package/src/modules/custom-image/specs/custom-image-spec.ts +131 -0
- package/src/modules/custom-image/specs/image-spec.ts +28 -0
- package/src/modules/custom-image/specs/index.ts +3 -0
- package/src/modules/custom-uploader.ts +101 -0
- package/src/modules/divider.ts +15 -0
- package/src/modules/emoji.ts +230 -0
- package/src/modules/file/formats/file.ts +61 -0
- package/src/modules/file/index.ts +3 -0
- package/src/modules/file/modules/file-bar.ts +146 -0
- package/src/modules/file/modules/file-module.ts +33 -0
- package/src/modules/i18n.ts +66 -0
- package/src/modules/index.ts +16 -0
- package/src/modules/link/formats/link.ts +43 -0
- package/src/modules/link/index.ts +2 -0
- package/src/modules/link/modules/tooltip.ts +341 -0
- package/src/modules/mathlive/formats.ts +39 -0
- package/src/modules/mathlive/index.ts +3 -0
- package/src/modules/mathlive/module.ts +37 -0
- package/src/modules/mathlive/tooltip.ts +87 -0
- package/src/modules/mention/constants.ts +3 -0
- package/src/modules/mention/index.ts +2 -0
- package/src/modules/mention/mention-link.ts +64 -0
- package/src/modules/mention/mention.ts +404 -0
- package/src/modules/shortcut-key/index.ts +237 -0
- package/src/modules/syntax.ts +35 -0
- package/src/modules/table-up/index.ts +83 -0
- package/src/modules/toolbar/better-picker.ts +67 -0
- package/src/modules/toolbar/better-toolbar.ts +176 -0
- package/src/modules/toolbar/index.ts +3 -0
- package/src/modules/toolbar/toolbar-tip.ts +142 -0
- package/src/themes/snow.ts +309 -0
- package/src/tools/format-painter.ts +85 -0
- package/src/tools/fullscreen.ts +66 -0
- package/src/tools/screenshot.ts +231 -0
- package/src/ui/icons.config.ts +361 -0
- package/src/ui/icons.ts +89 -0
- package/src/utils/debounce.ts +150 -0
- package/src/utils/image.ts +22 -0
- package/src/utils/is.ts +9 -0
- package/src/utils/method.ts +77 -0
- package/src/utils/scroll-lock.ts +52 -0
- package/tsconfig.json +25 -0
- package/vite.config.ts +83 -0
- package/README.md +0 -88
- package/es/_virtual/_commonjs-dynamic-modules.es.js +0 -7
- package/es/_virtual/_commonjs-dynamic-modules.es.js.map +0 -1
- package/es/_virtual/_commonjsHelpers.es.js +0 -42
- package/es/_virtual/_commonjsHelpers.es.js.map +0 -1
- package/es/_virtual/quill-cursors.es.js +0 -5
- package/es/_virtual/quill-cursors.es.js.map +0 -1
- package/es/_virtual/simplepeer.min.es.js +0 -5
- package/es/_virtual/simplepeer.min.es.js.map +0 -1
- package/es/attributors/line-height.es.js.map +0 -1
- package/es/config/base64-image.es.js.map +0 -1
- package/es/config/editor.config.es.js.map +0 -1
- package/es/config/editor.utils.es.js.map +0 -1
- package/es/config/i18n/en-us.es.js.map +0 -1
- package/es/config/i18n/zh-cn.es.js.map +0 -1
- package/es/config/index.es.js.map +0 -1
- package/es/core/fluent-editor.es.js.map +0 -1
- package/es/fluent-editor.es.js.map +0 -1
- package/es/formats/emoji.es.js.map +0 -1
- package/es/formats/soft-break.es.js.map +0 -1
- package/es/formats/strike.es.js.map +0 -1
- package/es/formats/video.es.js.map +0 -1
- package/es/modules/ai/constants.es.js.map +0 -1
- package/es/modules/ai/icons.es.js.map +0 -1
- package/es/modules/ai/index.es.js.map +0 -1
- package/es/modules/collaborative-editing/awareness/awareness.es.js +0 -93
- package/es/modules/collaborative-editing/awareness/awareness.es.js.map +0 -1
- package/es/modules/collaborative-editing/awareness/y-indexeddb.es.js +0 -12
- package/es/modules/collaborative-editing/awareness/y-indexeddb.es.js.map +0 -1
- package/es/modules/collaborative-editing/collaborative-editing.es.js +0 -105
- package/es/modules/collaborative-editing/collaborative-editing.es.js.map +0 -1
- package/es/modules/collaborative-editing/module.es.js.map +0 -1
- package/es/modules/collaborative-editing/provider/providerRegistry.es.js.map +0 -1
- package/es/modules/collaborative-editing/provider/webrtc.es.js +0 -99
- package/es/modules/collaborative-editing/provider/webrtc.es.js.map +0 -1
- package/es/modules/collaborative-editing/provider/websocket.es.js +0 -111
- package/es/modules/collaborative-editing/provider/websocket.es.js.map +0 -1
- package/es/modules/counter.es.js.map +0 -1
- package/es/modules/custom-clipboard.es.js.map +0 -1
- package/es/modules/custom-image/actions/action.es.js.map +0 -1
- package/es/modules/custom-image/actions/custom-resize-action.es.js.map +0 -1
- package/es/modules/custom-image/actions/delete-action.es.js.map +0 -1
- package/es/modules/custom-image/blot-formatter.es.js.map +0 -1
- package/es/modules/custom-image/image.es.js.map +0 -1
- package/es/modules/custom-image/options.es.js.map +0 -1
- package/es/modules/custom-image/specs/blot-spec.es.js.map +0 -1
- package/es/modules/custom-image/specs/custom-image-spec.es.js.map +0 -1
- package/es/modules/custom-image/specs/image-spec.es.js.map +0 -1
- package/es/modules/divider.es.js.map +0 -1
- package/es/modules/emoji.es.js +0 -163
- package/es/modules/emoji.es.js.map +0 -1
- package/es/modules/file/formats/file.es.js.map +0 -1
- package/es/modules/file/modules/file-bar.es.js.map +0 -1
- package/es/modules/file/modules/file-module.es.js.map +0 -1
- package/es/modules/link/formats/link.es.js.map +0 -1
- package/es/modules/link/modules/tooltip.es.js.map +0 -1
- package/es/modules/mathlive/formats.es.js.map +0 -1
- package/es/modules/mathlive/tooltip.es.js.map +0 -1
- package/es/modules/mention/constants.es.js.map +0 -1
- package/es/modules/mention/mention-link.es.js.map +0 -1
- package/es/modules/mention/mention.es.js.map +0 -1
- package/es/modules/syntax.es.js.map +0 -1
- package/es/modules/toolbar/better-picker.es.js.map +0 -1
- package/es/node_modules/.pnpm/@emoji-mart_data@1.2.1/node_modules/@emoji-mart/data/sets/15/native.json.es.js +0 -40145
- package/es/node_modules/.pnpm/@emoji-mart_data@1.2.1/node_modules/@emoji-mart/data/sets/15/native.json.es.js.map +0 -1
- package/es/node_modules/.pnpm/@floating-ui_core@1.7.2/node_modules/@floating-ui/core/dist/floating-ui.core.es.js +0 -938
- package/es/node_modules/.pnpm/@floating-ui_core@1.7.2/node_modules/@floating-ui/core/dist/floating-ui.core.es.js.map +0 -1
- package/es/node_modules/.pnpm/@floating-ui_dom@1.7.2/node_modules/@floating-ui/dom/dist/floating-ui.dom.es.js +0 -624
- package/es/node_modules/.pnpm/@floating-ui_dom@1.7.2/node_modules/@floating-ui/dom/dist/floating-ui.dom.es.js.map +0 -1
- package/es/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.es.js +0 -174
- package/es/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.es.js.map +0 -1
- package/es/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.es.js +0 -159
- package/es/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.es.js.map +0 -1
- package/es/node_modules/.pnpm/emoji-mart@5.6.0/node_modules/emoji-mart/dist/module.es.js +0 -2849
- package/es/node_modules/.pnpm/emoji-mart@5.6.0/node_modules/emoji-mart/dist/module.es.js.map +0 -1
- package/es/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/array.es.js +0 -112
- package/es/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/array.es.js.map +0 -1
- package/es/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/binary.es.js +0 -133
- package/es/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/binary.es.js.map +0 -1
- package/es/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/broadcastchannel.es.js +0 -59
- package/es/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/broadcastchannel.es.js.map +0 -1
- package/es/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/buffer.es.js +0 -75
- package/es/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/buffer.es.js.map +0 -1
- package/es/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/conditions.es.js +0 -5
- package/es/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/conditions.es.js.map +0 -1
- package/es/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/decoding.es.js +0 -422
- package/es/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/decoding.es.js.map +0 -1
- package/es/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/dom.es.js +0 -142
- package/es/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/dom.es.js.map +0 -1
- package/es/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/encoding.es.js +0 -484
- package/es/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/encoding.es.js.map +0 -1
- package/es/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/environment.es.js +0 -79
- package/es/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/environment.es.js.map +0 -1
- package/es/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/error.es.js +0 -13
- package/es/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/error.es.js.map +0 -1
- package/es/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/eventloop.es.js +0 -69
- package/es/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/eventloop.es.js.map +0 -1
- package/es/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/function.es.js +0 -124
- package/es/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/function.es.js.map +0 -1
- package/es/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/indexeddb.es.js +0 -92
- package/es/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/indexeddb.es.js.map +0 -1
- package/es/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/iterator.es.js +0 -38
- package/es/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/iterator.es.js.map +0 -1
- package/es/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/json.es.js +0 -7
- package/es/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/json.es.js.map +0 -1
- package/es/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/logging.common.es.js +0 -99
- package/es/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/logging.common.es.js.map +0 -1
- package/es/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/logging.es.js +0 -288
- package/es/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/logging.es.js.map +0 -1
- package/es/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/map.es.js +0 -47
- package/es/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/map.es.js.map +0 -1
- package/es/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/math.es.js +0 -37
- package/es/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/math.es.js.map +0 -1
- package/es/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/metric.es.js +0 -64
- package/es/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/metric.es.js.map +0 -1
- package/es/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/mutex.es.js +0 -19
- package/es/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/mutex.es.js.map +0 -1
- package/es/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/number.es.js +0 -31
- package/es/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/number.es.js.map +0 -1
- package/es/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/object.es.js +0 -72
- package/es/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/object.es.js.map +0 -1
- package/es/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/observable.es.js +0 -128
- package/es/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/observable.es.js.map +0 -1
- package/es/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/pair.es.js +0 -22
- package/es/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/pair.es.js.map +0 -1
- package/es/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/promise.es.js +0 -50
- package/es/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/promise.es.js.map +0 -1
- package/es/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/random.es.js +0 -24
- package/es/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/random.es.js.map +0 -1
- package/es/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/set.es.js +0 -11
- package/es/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/set.es.js.map +0 -1
- package/es/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/storage.es.js +0 -44
- package/es/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/storage.es.js.map +0 -1
- package/es/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/string.es.js +0 -95
- package/es/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/string.es.js.map +0 -1
- package/es/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/symbol.es.js +0 -7
- package/es/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/symbol.es.js.map +0 -1
- package/es/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/time.es.js +0 -28
- package/es/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/time.es.js.map +0 -1
- package/es/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/traits.es.js +0 -5
- package/es/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/traits.es.js.map +0 -1
- package/es/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/url.es.js +0 -20
- package/es/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/url.es.js.map +0 -1
- package/es/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/webcrypto.es.js +0 -7
- package/es/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/webcrypto.es.js.map +0 -1
- package/es/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/websocket.es.js +0 -113
- package/es/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/websocket.es.js.map +0 -1
- package/es/node_modules/.pnpm/quill-cursors@4.0.4/node_modules/quill-cursors/dist/quill-cursors.es.js +0 -1796
- package/es/node_modules/.pnpm/quill-cursors@4.0.4/node_modules/quill-cursors/dist/quill-cursors.es.js.map +0 -1
- package/es/node_modules/.pnpm/simple-peer@9.11.1/node_modules/simple-peer/simplepeer.min.es.js +0 -2620
- package/es/node_modules/.pnpm/simple-peer@9.11.1/node_modules/simple-peer/simplepeer.min.es.js.map +0 -1
- package/es/node_modules/.pnpm/y-indexeddb@9.0.12_yjs@13.6.27/node_modules/y-indexeddb/src/y-indexeddb.es.js +0 -155
- package/es/node_modules/.pnpm/y-indexeddb@9.0.12_yjs@13.6.27/node_modules/y-indexeddb/src/y-indexeddb.es.js.map +0 -1
- package/es/node_modules/.pnpm/y-protocols@1.0.6_yjs@13.6.27/node_modules/y-protocols/auth.es.js +0 -20
- package/es/node_modules/.pnpm/y-protocols@1.0.6_yjs@13.6.27/node_modules/y-protocols/auth.es.js.map +0 -1
- package/es/node_modules/.pnpm/y-protocols@1.0.6_yjs@13.6.27/node_modules/y-protocols/awareness.es.js +0 -232
- package/es/node_modules/.pnpm/y-protocols@1.0.6_yjs@13.6.27/node_modules/y-protocols/awareness.es.js.map +0 -1
- package/es/node_modules/.pnpm/y-protocols@1.0.6_yjs@13.6.27/node_modules/y-protocols/sync.es.js +0 -58
- package/es/node_modules/.pnpm/y-protocols@1.0.6_yjs@13.6.27/node_modules/y-protocols/sync.es.js.map +0 -1
- package/es/node_modules/.pnpm/y-quill@1.0.0_quill-cursors@4.0.4_quill@2.0.3_patch_hash_dnirvjhpzdmsvdidsclwslxxji__yjs@13.6.27/node_modules/y-quill/src/y-quill.es.js +0 -157
- package/es/node_modules/.pnpm/y-quill@1.0.0_quill-cursors@4.0.4_quill@2.0.3_patch_hash_dnirvjhpzdmsvdidsclwslxxji__yjs@13.6.27/node_modules/y-quill/src/y-quill.es.js.map +0 -1
- package/es/node_modules/.pnpm/y-webrtc@10.3.0_yjs@13.6.27/node_modules/y-webrtc/src/crypto.es.js +0 -94
- package/es/node_modules/.pnpm/y-webrtc@10.3.0_yjs@13.6.27/node_modules/y-webrtc/src/crypto.es.js.map +0 -1
- package/es/node_modules/.pnpm/y-webrtc@10.3.0_yjs@13.6.27/node_modules/y-webrtc/src/y-webrtc.es.js +0 -537
- package/es/node_modules/.pnpm/y-webrtc@10.3.0_yjs@13.6.27/node_modules/y-webrtc/src/y-webrtc.es.js.map +0 -1
- package/es/node_modules/.pnpm/y-websocket@3.0.0_yjs@13.6.27/node_modules/y-websocket/src/y-websocket.es.js +0 -380
- package/es/node_modules/.pnpm/y-websocket@3.0.0_yjs@13.6.27/node_modules/y-websocket/src/y-websocket.es.js.map +0 -1
- package/es/node_modules/.pnpm/yjs@13.6.27/node_modules/yjs/dist/yjs.es.js +0 -7653
- package/es/node_modules/.pnpm/yjs@13.6.27/node_modules/yjs/dist/yjs.es.js.map +0 -1
- package/es/themes/snow.es.js.map +0 -1
- package/es/tools/screenshot.es.js.map +0 -1
- package/es/ui/icons.config.es.js.map +0 -1
- package/es/ui/icons.es.js.map +0 -1
- package/es/utils/debounce.es.js.map +0 -1
- package/es/utils/method.es.js.map +0 -1
- package/lib/_virtual/_commonjs-dynamic-modules.cjs.js +0 -7
- package/lib/_virtual/_commonjs-dynamic-modules.cjs.js.map +0 -1
- package/lib/_virtual/_commonjsHelpers.cjs.js +0 -42
- package/lib/_virtual/_commonjsHelpers.cjs.js.map +0 -1
- package/lib/_virtual/quill-cursors.cjs.js +0 -5
- package/lib/_virtual/quill-cursors.cjs.js.map +0 -1
- package/lib/_virtual/simplepeer.min.cjs.js +0 -5
- package/lib/_virtual/simplepeer.min.cjs.js.map +0 -1
- package/lib/attributors/line-height.cjs.js.map +0 -1
- package/lib/config/base64-image.cjs.js.map +0 -1
- package/lib/config/editor.config.cjs.js.map +0 -1
- package/lib/config/editor.utils.cjs.js.map +0 -1
- package/lib/config/i18n/en-us.cjs.js.map +0 -1
- package/lib/config/i18n/zh-cn.cjs.js.map +0 -1
- package/lib/config/index.cjs.js.map +0 -1
- package/lib/core/fluent-editor.cjs.js.map +0 -1
- package/lib/fluent-editor.cjs.js.map +0 -1
- package/lib/formats/emoji.cjs.js.map +0 -1
- package/lib/formats/soft-break.cjs.js.map +0 -1
- package/lib/formats/strike.cjs.js.map +0 -1
- package/lib/formats/video.cjs.js.map +0 -1
- package/lib/modules/ai/constants.cjs.js.map +0 -1
- package/lib/modules/ai/icons.cjs.js.map +0 -1
- package/lib/modules/ai/index.cjs.js.map +0 -1
- package/lib/modules/collaborative-editing/awareness/awareness.cjs.js +0 -93
- package/lib/modules/collaborative-editing/awareness/awareness.cjs.js.map +0 -1
- package/lib/modules/collaborative-editing/awareness/y-indexeddb.cjs.js +0 -12
- package/lib/modules/collaborative-editing/awareness/y-indexeddb.cjs.js.map +0 -1
- package/lib/modules/collaborative-editing/collaborative-editing.cjs.js +0 -105
- package/lib/modules/collaborative-editing/collaborative-editing.cjs.js.map +0 -1
- package/lib/modules/collaborative-editing/module.cjs.js.map +0 -1
- package/lib/modules/collaborative-editing/provider/providerRegistry.cjs.js.map +0 -1
- package/lib/modules/collaborative-editing/provider/webrtc.cjs.js +0 -99
- package/lib/modules/collaborative-editing/provider/webrtc.cjs.js.map +0 -1
- package/lib/modules/collaborative-editing/provider/websocket.cjs.js +0 -111
- package/lib/modules/collaborative-editing/provider/websocket.cjs.js.map +0 -1
- package/lib/modules/counter.cjs.js.map +0 -1
- package/lib/modules/custom-clipboard.cjs.js.map +0 -1
- package/lib/modules/custom-image/actions/action.cjs.js.map +0 -1
- package/lib/modules/custom-image/actions/custom-resize-action.cjs.js.map +0 -1
- package/lib/modules/custom-image/actions/delete-action.cjs.js.map +0 -1
- package/lib/modules/custom-image/blot-formatter.cjs.js.map +0 -1
- package/lib/modules/custom-image/image.cjs.js.map +0 -1
- package/lib/modules/custom-image/options.cjs.js.map +0 -1
- package/lib/modules/custom-image/specs/blot-spec.cjs.js.map +0 -1
- package/lib/modules/custom-image/specs/custom-image-spec.cjs.js.map +0 -1
- package/lib/modules/custom-image/specs/image-spec.cjs.js.map +0 -1
- package/lib/modules/divider.cjs.js.map +0 -1
- package/lib/modules/emoji.cjs.js +0 -163
- package/lib/modules/emoji.cjs.js.map +0 -1
- package/lib/modules/file/formats/file.cjs.js.map +0 -1
- package/lib/modules/file/modules/file-bar.cjs.js.map +0 -1
- package/lib/modules/file/modules/file-module.cjs.js.map +0 -1
- package/lib/modules/link/formats/link.cjs.js.map +0 -1
- package/lib/modules/link/modules/tooltip.cjs.js.map +0 -1
- package/lib/modules/mathlive/formats.cjs.js.map +0 -1
- package/lib/modules/mathlive/tooltip.cjs.js.map +0 -1
- package/lib/modules/mention/constants.cjs.js.map +0 -1
- package/lib/modules/mention/mention-link.cjs.js.map +0 -1
- package/lib/modules/mention/mention.cjs.js.map +0 -1
- package/lib/modules/syntax.cjs.js.map +0 -1
- package/lib/modules/toolbar/better-picker.cjs.js.map +0 -1
- package/lib/node_modules/.pnpm/@emoji-mart_data@1.2.1/node_modules/@emoji-mart/data/sets/15/native.json.cjs.js +0 -40145
- package/lib/node_modules/.pnpm/@emoji-mart_data@1.2.1/node_modules/@emoji-mart/data/sets/15/native.json.cjs.js.map +0 -1
- package/lib/node_modules/.pnpm/@floating-ui_core@1.7.2/node_modules/@floating-ui/core/dist/floating-ui.core.cjs.js +0 -938
- package/lib/node_modules/.pnpm/@floating-ui_core@1.7.2/node_modules/@floating-ui/core/dist/floating-ui.core.cjs.js.map +0 -1
- package/lib/node_modules/.pnpm/@floating-ui_dom@1.7.2/node_modules/@floating-ui/dom/dist/floating-ui.dom.cjs.js +0 -624
- package/lib/node_modules/.pnpm/@floating-ui_dom@1.7.2/node_modules/@floating-ui/dom/dist/floating-ui.dom.cjs.js.map +0 -1
- package/lib/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.cjs.js +0 -159
- package/lib/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.cjs.js.map +0 -1
- package/lib/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.cjs.js +0 -174
- package/lib/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.cjs.js.map +0 -1
- package/lib/node_modules/.pnpm/emoji-mart@5.6.0/node_modules/emoji-mart/dist/module.cjs.js +0 -2847
- package/lib/node_modules/.pnpm/emoji-mart@5.6.0/node_modules/emoji-mart/dist/module.cjs.js.map +0 -1
- package/lib/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/array.cjs.js +0 -112
- package/lib/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/array.cjs.js.map +0 -1
- package/lib/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/binary.cjs.js +0 -133
- package/lib/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/binary.cjs.js.map +0 -1
- package/lib/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/broadcastchannel.cjs.js +0 -59
- package/lib/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/broadcastchannel.cjs.js.map +0 -1
- package/lib/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/buffer.cjs.js +0 -75
- package/lib/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/buffer.cjs.js.map +0 -1
- package/lib/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/conditions.cjs.js +0 -5
- package/lib/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/conditions.cjs.js.map +0 -1
- package/lib/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/decoding.cjs.js +0 -422
- package/lib/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/decoding.cjs.js.map +0 -1
- package/lib/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/dom.cjs.js +0 -142
- package/lib/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/dom.cjs.js.map +0 -1
- package/lib/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/encoding.cjs.js +0 -484
- package/lib/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/encoding.cjs.js.map +0 -1
- package/lib/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/environment.cjs.js +0 -79
- package/lib/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/environment.cjs.js.map +0 -1
- package/lib/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/error.cjs.js +0 -13
- package/lib/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/error.cjs.js.map +0 -1
- package/lib/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/eventloop.cjs.js +0 -69
- package/lib/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/eventloop.cjs.js.map +0 -1
- package/lib/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/function.cjs.js +0 -124
- package/lib/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/function.cjs.js.map +0 -1
- package/lib/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/indexeddb.cjs.js +0 -92
- package/lib/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/indexeddb.cjs.js.map +0 -1
- package/lib/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/iterator.cjs.js +0 -38
- package/lib/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/iterator.cjs.js.map +0 -1
- package/lib/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/json.cjs.js +0 -7
- package/lib/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/json.cjs.js.map +0 -1
- package/lib/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/logging.cjs.js +0 -288
- package/lib/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/logging.cjs.js.map +0 -1
- package/lib/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/logging.common.cjs.js +0 -99
- package/lib/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/logging.common.cjs.js.map +0 -1
- package/lib/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/map.cjs.js +0 -47
- package/lib/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/map.cjs.js.map +0 -1
- package/lib/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/math.cjs.js +0 -37
- package/lib/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/math.cjs.js.map +0 -1
- package/lib/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/metric.cjs.js +0 -64
- package/lib/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/metric.cjs.js.map +0 -1
- package/lib/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/mutex.cjs.js +0 -19
- package/lib/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/mutex.cjs.js.map +0 -1
- package/lib/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/number.cjs.js +0 -31
- package/lib/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/number.cjs.js.map +0 -1
- package/lib/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/object.cjs.js +0 -72
- package/lib/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/object.cjs.js.map +0 -1
- package/lib/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/observable.cjs.js +0 -128
- package/lib/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/observable.cjs.js.map +0 -1
- package/lib/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/pair.cjs.js +0 -22
- package/lib/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/pair.cjs.js.map +0 -1
- package/lib/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/promise.cjs.js +0 -50
- package/lib/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/promise.cjs.js.map +0 -1
- package/lib/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/random.cjs.js +0 -24
- package/lib/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/random.cjs.js.map +0 -1
- package/lib/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/set.cjs.js +0 -11
- package/lib/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/set.cjs.js.map +0 -1
- package/lib/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/storage.cjs.js +0 -44
- package/lib/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/storage.cjs.js.map +0 -1
- package/lib/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/string.cjs.js +0 -94
- package/lib/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/string.cjs.js.map +0 -1
- package/lib/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/symbol.cjs.js +0 -7
- package/lib/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/symbol.cjs.js.map +0 -1
- package/lib/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/time.cjs.js +0 -28
- package/lib/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/time.cjs.js.map +0 -1
- package/lib/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/traits.cjs.js +0 -5
- package/lib/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/traits.cjs.js.map +0 -1
- package/lib/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/url.cjs.js +0 -20
- package/lib/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/url.cjs.js.map +0 -1
- package/lib/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/webcrypto.cjs.js +0 -7
- package/lib/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/webcrypto.cjs.js.map +0 -1
- package/lib/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/websocket.cjs.js +0 -113
- package/lib/node_modules/.pnpm/lib0@0.2.114/node_modules/lib0/websocket.cjs.js.map +0 -1
- package/lib/node_modules/.pnpm/quill-cursors@4.0.4/node_modules/quill-cursors/dist/quill-cursors.cjs.js +0 -1796
- package/lib/node_modules/.pnpm/quill-cursors@4.0.4/node_modules/quill-cursors/dist/quill-cursors.cjs.js.map +0 -1
- package/lib/node_modules/.pnpm/simple-peer@9.11.1/node_modules/simple-peer/simplepeer.min.cjs.js +0 -2620
- package/lib/node_modules/.pnpm/simple-peer@9.11.1/node_modules/simple-peer/simplepeer.min.cjs.js.map +0 -1
- package/lib/node_modules/.pnpm/y-indexeddb@9.0.12_yjs@13.6.27/node_modules/y-indexeddb/src/y-indexeddb.cjs.js +0 -155
- package/lib/node_modules/.pnpm/y-indexeddb@9.0.12_yjs@13.6.27/node_modules/y-indexeddb/src/y-indexeddb.cjs.js.map +0 -1
- package/lib/node_modules/.pnpm/y-protocols@1.0.6_yjs@13.6.27/node_modules/y-protocols/auth.cjs.js +0 -20
- package/lib/node_modules/.pnpm/y-protocols@1.0.6_yjs@13.6.27/node_modules/y-protocols/auth.cjs.js.map +0 -1
- package/lib/node_modules/.pnpm/y-protocols@1.0.6_yjs@13.6.27/node_modules/y-protocols/awareness.cjs.js +0 -232
- package/lib/node_modules/.pnpm/y-protocols@1.0.6_yjs@13.6.27/node_modules/y-protocols/awareness.cjs.js.map +0 -1
- package/lib/node_modules/.pnpm/y-protocols@1.0.6_yjs@13.6.27/node_modules/y-protocols/sync.cjs.js +0 -58
- package/lib/node_modules/.pnpm/y-protocols@1.0.6_yjs@13.6.27/node_modules/y-protocols/sync.cjs.js.map +0 -1
- package/lib/node_modules/.pnpm/y-quill@1.0.0_quill-cursors@4.0.4_quill@2.0.3_patch_hash_dnirvjhpzdmsvdidsclwslxxji__yjs@13.6.27/node_modules/y-quill/src/y-quill.cjs.js +0 -157
- package/lib/node_modules/.pnpm/y-quill@1.0.0_quill-cursors@4.0.4_quill@2.0.3_patch_hash_dnirvjhpzdmsvdidsclwslxxji__yjs@13.6.27/node_modules/y-quill/src/y-quill.cjs.js.map +0 -1
- package/lib/node_modules/.pnpm/y-webrtc@10.3.0_yjs@13.6.27/node_modules/y-webrtc/src/crypto.cjs.js +0 -94
- package/lib/node_modules/.pnpm/y-webrtc@10.3.0_yjs@13.6.27/node_modules/y-webrtc/src/crypto.cjs.js.map +0 -1
- package/lib/node_modules/.pnpm/y-webrtc@10.3.0_yjs@13.6.27/node_modules/y-webrtc/src/y-webrtc.cjs.js +0 -537
- package/lib/node_modules/.pnpm/y-webrtc@10.3.0_yjs@13.6.27/node_modules/y-webrtc/src/y-webrtc.cjs.js.map +0 -1
- package/lib/node_modules/.pnpm/y-websocket@3.0.0_yjs@13.6.27/node_modules/y-websocket/src/y-websocket.cjs.js +0 -380
- package/lib/node_modules/.pnpm/y-websocket@3.0.0_yjs@13.6.27/node_modules/y-websocket/src/y-websocket.cjs.js.map +0 -1
- package/lib/node_modules/.pnpm/yjs@13.6.27/node_modules/yjs/dist/yjs.cjs.js +0 -7653
- package/lib/node_modules/.pnpm/yjs@13.6.27/node_modules/yjs/dist/yjs.cjs.js.map +0 -1
- package/lib/themes/snow.cjs.js.map +0 -1
- package/lib/tools/screenshot.cjs.js.map +0 -1
- package/lib/ui/icons.cjs.js.map +0 -1
- package/lib/ui/icons.config.cjs.js.map +0 -1
- package/lib/utils/debounce.cjs.js.map +0 -1
- package/lib/utils/method.cjs.js.map +0 -1
- package/types/attributors/font-size.d.ts +0 -1
- package/types/attributors/font-style.d.ts +0 -1
- package/types/attributors/index.d.ts +0 -4
- package/types/attributors/line-height.d.ts +0 -1
- package/types/attributors/text-indent.d.ts +0 -1
- package/types/config/base64-image.d.ts +0 -2
- package/types/config/editor.config.d.ts +0 -11
- package/types/config/editor.utils.d.ts +0 -40
- package/types/config/i18n/en-us.d.ts +0 -123
- package/types/config/i18n/zh-cn.d.ts +0 -123
- package/types/config/index.d.ts +0 -7
- package/types/config/types/editor-config.interface.d.ts +0 -15
- package/types/config/types/editor-modules.interface.d.ts +0 -42
- package/types/config/types/index.d.ts +0 -3
- package/types/config/types/type.d.ts +0 -2
- package/types/core/fluent-editor.d.ts +0 -14
- package/types/fluent-editor.d.ts +0 -3
- package/types/formats/emoji.d.ts +0 -9
- package/types/formats/index.d.ts +0 -4
- package/types/formats/soft-break.d.ts +0 -13
- package/types/formats/strike.d.ts +0 -9
- package/types/formats/video.d.ts +0 -14
- package/types/index.d.ts +0 -9
- package/types/modules/ai/constants.d.ts +0 -30
- package/types/modules/ai/icons.d.ts +0 -21
- package/types/modules/ai/index.d.ts +0 -97
- package/types/modules/ai/types.d.ts +0 -16
- package/types/modules/collaborative-editing/awareness/awareness.d.ts +0 -29
- package/types/modules/collaborative-editing/awareness/index.d.ts +0 -2
- package/types/modules/collaborative-editing/awareness/y-indexeddb.d.ts +0 -3
- package/types/modules/collaborative-editing/collaborative-editing.d.ts +0 -25
- package/types/modules/collaborative-editing/index.d.ts +0 -2
- package/types/modules/collaborative-editing/module.d.ts +0 -12
- package/types/modules/collaborative-editing/provider/index.d.ts +0 -3
- package/types/modules/collaborative-editing/provider/providerRegistry.d.ts +0 -26
- package/types/modules/collaborative-editing/provider/webrtc.d.ts +0 -37
- package/types/modules/collaborative-editing/provider/websocket.d.ts +0 -41
- package/types/modules/collaborative-editing/types.d.ts +0 -37
- package/types/modules/counter.d.ts +0 -24
- package/types/modules/custom-clipboard.d.ts +0 -26
- package/types/modules/custom-image/actions/action.d.ts +0 -9
- package/types/modules/custom-image/actions/custom-resize-action.d.ts +0 -24
- package/types/modules/custom-image/actions/delete-action.d.ts +0 -7
- package/types/modules/custom-image/actions/image-toolbar-buttons.d.ts +0 -17
- package/types/modules/custom-image/actions/index.d.ts +0 -6
- package/types/modules/custom-image/actions/toolbar-action.d.ts +0 -12
- package/types/modules/custom-image/actions/toolbar.d.ts +0 -20
- package/types/modules/custom-image/blot-formatter.d.ts +0 -24
- package/types/modules/custom-image/image.d.ts +0 -29
- package/types/modules/custom-image/index.d.ts +0 -4
- package/types/modules/custom-image/options.d.ts +0 -48
- package/types/modules/custom-image/specs/blot-spec.d.ts +0 -13
- package/types/modules/custom-image/specs/custom-image-spec.d.ts +0 -18
- package/types/modules/custom-image/specs/image-spec.d.ts +0 -9
- package/types/modules/custom-image/specs/index.d.ts +0 -3
- package/types/modules/custom-uploader.d.ts +0 -41
- package/types/modules/divider.d.ts +0 -9
- package/types/modules/emoji.d.ts +0 -34
- package/types/modules/file/formats/file.d.ts +0 -19
- package/types/modules/file/index.d.ts +0 -3
- package/types/modules/file/modules/file-bar.d.ts +0 -14
- package/types/modules/file/modules/file-module.d.ts +0 -10
- package/types/modules/i18n.d.ts +0 -15
- package/types/modules/index.d.ts +0 -16
- package/types/modules/link/formats/link.d.ts +0 -16
- package/types/modules/link/index.d.ts +0 -2
- package/types/modules/link/modules/tooltip.d.ts +0 -28
- package/types/modules/mathlive/formats.d.ts +0 -23
- package/types/modules/mathlive/index.d.ts +0 -3
- package/types/modules/mathlive/module.d.ts +0 -10
- package/types/modules/mathlive/tooltip.d.ts +0 -19
- package/types/modules/mention/constants.d.ts +0 -3
- package/types/modules/mention/index.d.ts +0 -2
- package/types/modules/mention/mention-link.d.ts +0 -17
- package/types/modules/mention/mention.d.ts +0 -54
- package/types/modules/shortcut-key/index.d.ts +0 -72
- package/types/modules/syntax.d.ts +0 -14
- package/types/modules/table-up/index.d.ts +0 -35
- package/types/modules/toolbar/better-picker.d.ts +0 -16
- package/types/modules/toolbar/better-toolbar.d.ts +0 -8
- package/types/modules/toolbar/index.d.ts +0 -3
- package/types/modules/toolbar/toolbar-tip.d.ts +0 -10
- package/types/themes/snow.d.ts +0 -12
- package/types/tools/format-painter.d.ts +0 -14
- package/types/tools/fullscreen.d.ts +0 -7
- package/types/tools/screenshot.d.ts +0 -20
- package/types/ui/icons.config.d.ts +0 -38
- package/types/ui/icons.d.ts +0 -6
- package/types/utils/debounce.d.ts +0 -6
- package/types/utils/image.d.ts +0 -1
- package/types/utils/is.d.ts +0 -6
- package/types/utils/method.d.ts +0 -6
- package/types/utils/scroll-lock.d.ts +0 -6
- /package/{es → dist/es}/attributors/font-size.es.js +0 -0
- /package/{es → dist/es}/attributors/font-size.es.js.map +0 -0
- /package/{es → dist/es}/attributors/font-style.es.js +0 -0
- /package/{es → dist/es}/attributors/font-style.es.js.map +0 -0
- /package/{es → dist/es}/attributors/index.es.js +0 -0
- /package/{es → dist/es}/attributors/index.es.js.map +0 -0
- /package/{es → dist/es}/attributors/line-height.es.js +0 -0
- /package/{es → dist/es}/attributors/text-indent.es.js +0 -0
- /package/{es → dist/es}/attributors/text-indent.es.js.map +0 -0
- /package/{es → dist/es}/config/base64-image.es.js +0 -0
- /package/{es → dist/es}/config/editor.config.es.js +0 -0
- /package/{es → dist/es}/config/editor.utils.es.js +0 -0
- /package/{es → dist/es}/config/i18n/en-us.es.js +0 -0
- /package/{es → dist/es}/config/i18n/zh-cn.es.js +0 -0
- /package/{es → dist/es}/config/index.es.js +0 -0
- /package/{es → dist/es}/config/types/editor-config.interface.es.js +0 -0
- /package/{es → dist/es}/config/types/editor-config.interface.es.js.map +0 -0
- /package/{es → dist/es}/config/types/editor-modules.interface.es.js +0 -0
- /package/{es → dist/es}/config/types/editor-modules.interface.es.js.map +0 -0
- /package/{es → dist/es}/config/types/index.es.js +0 -0
- /package/{es → dist/es}/config/types/index.es.js.map +0 -0
- /package/{es → dist/es}/config/types/type.es.js +0 -0
- /package/{es → dist/es}/config/types/type.es.js.map +0 -0
- /package/{es → dist/es}/core/fluent-editor.es.js +0 -0
- /package/{es → dist/es}/fluent-editor.es.js +0 -0
- /package/{es → dist/es}/formats/emoji.es.js +0 -0
- /package/{es → dist/es}/formats/index.es.js +0 -0
- /package/{es → dist/es}/formats/index.es.js.map +0 -0
- /package/{es → dist/es}/formats/soft-break.es.js +0 -0
- /package/{es → dist/es}/formats/strike.es.js +0 -0
- /package/{es → dist/es}/formats/video.es.js +0 -0
- /package/{es → dist/es}/index.es.js +0 -0
- /package/{es → dist/es}/index.es.js.map +0 -0
- /package/{es → dist/es}/modules/ai/constants.es.js +0 -0
- /package/{es → dist/es}/modules/ai/icons.es.js +0 -0
- /package/{es → dist/es}/modules/ai/index.es.js +0 -0
- /package/{es → dist/es}/modules/collaborative-editing/awareness/index.es.js +0 -0
- /package/{es → dist/es}/modules/collaborative-editing/awareness/index.es.js.map +0 -0
- /package/{es → dist/es}/modules/collaborative-editing/index.es.js +0 -0
- /package/{es → dist/es}/modules/collaborative-editing/index.es.js.map +0 -0
- /package/{es → dist/es}/modules/collaborative-editing/module.es.js +0 -0
- /package/{es → dist/es}/modules/collaborative-editing/provider/providerRegistry.es.js +0 -0
- /package/{es → dist/es}/modules/collaborative-editing/types.es.js +0 -0
- /package/{es → dist/es}/modules/collaborative-editing/types.es.js.map +0 -0
- /package/{es → dist/es}/modules/counter.es.js +0 -0
- /package/{es → dist/es}/modules/custom-clipboard.es.js +0 -0
- /package/{es → dist/es}/modules/custom-image/actions/action.es.js +0 -0
- /package/{es → dist/es}/modules/custom-image/actions/custom-resize-action.es.js +0 -0
- /package/{es → dist/es}/modules/custom-image/actions/delete-action.es.js +0 -0
- /package/{es → dist/es}/modules/custom-image/actions/image-toolbar-buttons.es.js +0 -0
- /package/{es → dist/es}/modules/custom-image/actions/image-toolbar-buttons.es.js.map +0 -0
- /package/{es → dist/es}/modules/custom-image/actions/index.es.js +0 -0
- /package/{es → dist/es}/modules/custom-image/actions/index.es.js.map +0 -0
- /package/{es → dist/es}/modules/custom-image/actions/toolbar-action.es.js +0 -0
- /package/{es → dist/es}/modules/custom-image/actions/toolbar-action.es.js.map +0 -0
- /package/{es → dist/es}/modules/custom-image/actions/toolbar.es.js +0 -0
- /package/{es → dist/es}/modules/custom-image/actions/toolbar.es.js.map +0 -0
- /package/{es → dist/es}/modules/custom-image/blot-formatter.es.js +0 -0
- /package/{es → dist/es}/modules/custom-image/image.es.js +0 -0
- /package/{es → dist/es}/modules/custom-image/index.es.js +0 -0
- /package/{es → dist/es}/modules/custom-image/index.es.js.map +0 -0
- /package/{es → dist/es}/modules/custom-image/options.es.js +0 -0
- /package/{es → dist/es}/modules/custom-image/specs/blot-spec.es.js +0 -0
- /package/{es → dist/es}/modules/custom-image/specs/custom-image-spec.es.js +0 -0
- /package/{es → dist/es}/modules/custom-image/specs/image-spec.es.js +0 -0
- /package/{es → dist/es}/modules/custom-image/specs/index.es.js +0 -0
- /package/{es → dist/es}/modules/custom-image/specs/index.es.js.map +0 -0
- /package/{es → dist/es}/modules/custom-uploader.es.js +0 -0
- /package/{es → dist/es}/modules/custom-uploader.es.js.map +0 -0
- /package/{es → dist/es}/modules/divider.es.js +0 -0
- /package/{es → dist/es}/modules/file/formats/file.es.js +0 -0
- /package/{es → dist/es}/modules/file/index.es.js +0 -0
- /package/{es → dist/es}/modules/file/index.es.js.map +0 -0
- /package/{es → dist/es}/modules/file/modules/file-bar.es.js +0 -0
- /package/{es → dist/es}/modules/file/modules/file-module.es.js +0 -0
- /package/{es → dist/es}/modules/i18n.es.js +0 -0
- /package/{es → dist/es}/modules/i18n.es.js.map +0 -0
- /package/{es → dist/es}/modules/index.es.js +0 -0
- /package/{es → dist/es}/modules/index.es.js.map +0 -0
- /package/{es → dist/es}/modules/link/formats/link.es.js +0 -0
- /package/{es → dist/es}/modules/link/index.es.js +0 -0
- /package/{es → dist/es}/modules/link/index.es.js.map +0 -0
- /package/{es → dist/es}/modules/link/modules/tooltip.es.js +0 -0
- /package/{es → dist/es}/modules/mathlive/formats.es.js +0 -0
- /package/{es → dist/es}/modules/mathlive/index.es.js +0 -0
- /package/{es → dist/es}/modules/mathlive/index.es.js.map +0 -0
- /package/{es → dist/es}/modules/mathlive/module.es.js +0 -0
- /package/{es → dist/es}/modules/mathlive/module.es.js.map +0 -0
- /package/{es → dist/es}/modules/mathlive/tooltip.es.js +0 -0
- /package/{es → dist/es}/modules/mention/constants.es.js +0 -0
- /package/{es → dist/es}/modules/mention/index.es.js +0 -0
- /package/{es → dist/es}/modules/mention/index.es.js.map +0 -0
- /package/{es → dist/es}/modules/mention/mention-link.es.js +0 -0
- /package/{es → dist/es}/modules/mention/mention.es.js +0 -0
- /package/{es → dist/es}/modules/shortcut-key/index.es.js +0 -0
- /package/{es → dist/es}/modules/shortcut-key/index.es.js.map +0 -0
- /package/{es → dist/es}/modules/syntax.es.js +0 -0
- /package/{es → dist/es}/modules/table-up/index.es.js +0 -0
- /package/{es → dist/es}/modules/table-up/index.es.js.map +0 -0
- /package/{es → dist/es}/modules/toolbar/better-picker.es.js +0 -0
- /package/{es → dist/es}/modules/toolbar/better-toolbar.es.js +0 -0
- /package/{es → dist/es}/modules/toolbar/better-toolbar.es.js.map +0 -0
- /package/{es → dist/es}/modules/toolbar/index.es.js +0 -0
- /package/{es → dist/es}/modules/toolbar/index.es.js.map +0 -0
- /package/{es → dist/es}/modules/toolbar/toolbar-tip.es.js +0 -0
- /package/{es → dist/es}/modules/toolbar/toolbar-tip.es.js.map +0 -0
- /package/{es → dist/es}/themes/snow.es.js +0 -0
- /package/{es → dist/es}/tools/format-painter.es.js +0 -0
- /package/{es → dist/es}/tools/format-painter.es.js.map +0 -0
- /package/{es → dist/es}/tools/fullscreen.es.js +0 -0
- /package/{es → dist/es}/tools/fullscreen.es.js.map +0 -0
- /package/{es → dist/es}/tools/screenshot.es.js +0 -0
- /package/{es → dist/es}/ui/icons.config.es.js +0 -0
- /package/{es → dist/es}/ui/icons.es.js +0 -0
- /package/{es → dist/es}/utils/debounce.es.js +0 -0
- /package/{es → dist/es}/utils/image.es.js +0 -0
- /package/{es → dist/es}/utils/image.es.js.map +0 -0
- /package/{es → dist/es}/utils/is.es.js +0 -0
- /package/{es → dist/es}/utils/is.es.js.map +0 -0
- /package/{es → dist/es}/utils/method.es.js +0 -0
- /package/{es → dist/es}/utils/scroll-lock.es.js +0 -0
- /package/{es → dist/es}/utils/scroll-lock.es.js.map +0 -0
- /package/{lib → dist/lib}/attributors/font-size.cjs.js +0 -0
- /package/{lib → dist/lib}/attributors/font-size.cjs.js.map +0 -0
- /package/{lib → dist/lib}/attributors/font-style.cjs.js +0 -0
- /package/{lib → dist/lib}/attributors/font-style.cjs.js.map +0 -0
- /package/{lib → dist/lib}/attributors/index.cjs.js +0 -0
- /package/{lib → dist/lib}/attributors/index.cjs.js.map +0 -0
- /package/{lib → dist/lib}/attributors/line-height.cjs.js +0 -0
- /package/{lib → dist/lib}/attributors/text-indent.cjs.js +0 -0
- /package/{lib → dist/lib}/attributors/text-indent.cjs.js.map +0 -0
- /package/{lib → dist/lib}/config/base64-image.cjs.js +0 -0
- /package/{lib → dist/lib}/config/editor.config.cjs.js +0 -0
- /package/{lib → dist/lib}/config/editor.utils.cjs.js +0 -0
- /package/{lib → dist/lib}/config/i18n/en-us.cjs.js +0 -0
- /package/{lib → dist/lib}/config/i18n/zh-cn.cjs.js +0 -0
- /package/{lib → dist/lib}/config/index.cjs.js +0 -0
- /package/{lib → dist/lib}/config/types/editor-config.interface.cjs.js +0 -0
- /package/{lib → dist/lib}/config/types/editor-config.interface.cjs.js.map +0 -0
- /package/{lib → dist/lib}/config/types/editor-modules.interface.cjs.js +0 -0
- /package/{lib → dist/lib}/config/types/editor-modules.interface.cjs.js.map +0 -0
- /package/{lib → dist/lib}/config/types/index.cjs.js +0 -0
- /package/{lib → dist/lib}/config/types/index.cjs.js.map +0 -0
- /package/{lib → dist/lib}/config/types/type.cjs.js +0 -0
- /package/{lib → dist/lib}/config/types/type.cjs.js.map +0 -0
- /package/{lib → dist/lib}/core/fluent-editor.cjs.js +0 -0
- /package/{lib → dist/lib}/fluent-editor.cjs.js +0 -0
- /package/{lib → dist/lib}/formats/emoji.cjs.js +0 -0
- /package/{lib → dist/lib}/formats/index.cjs.js +0 -0
- /package/{lib → dist/lib}/formats/index.cjs.js.map +0 -0
- /package/{lib → dist/lib}/formats/soft-break.cjs.js +0 -0
- /package/{lib → dist/lib}/formats/strike.cjs.js +0 -0
- /package/{lib → dist/lib}/formats/video.cjs.js +0 -0
- /package/{lib → dist/lib}/index.cjs.js +0 -0
- /package/{lib → dist/lib}/index.cjs.js.map +0 -0
- /package/{lib → dist/lib}/modules/ai/constants.cjs.js +0 -0
- /package/{lib → dist/lib}/modules/ai/icons.cjs.js +0 -0
- /package/{lib → dist/lib}/modules/ai/index.cjs.js +0 -0
- /package/{lib → dist/lib}/modules/collaborative-editing/awareness/index.cjs.js +0 -0
- /package/{lib → dist/lib}/modules/collaborative-editing/awareness/index.cjs.js.map +0 -0
- /package/{lib → dist/lib}/modules/collaborative-editing/index.cjs.js +0 -0
- /package/{lib → dist/lib}/modules/collaborative-editing/index.cjs.js.map +0 -0
- /package/{lib → dist/lib}/modules/collaborative-editing/module.cjs.js +0 -0
- /package/{lib → dist/lib}/modules/collaborative-editing/provider/providerRegistry.cjs.js +0 -0
- /package/{lib → dist/lib}/modules/collaborative-editing/types.cjs.js +0 -0
- /package/{lib → dist/lib}/modules/collaborative-editing/types.cjs.js.map +0 -0
- /package/{lib → dist/lib}/modules/counter.cjs.js +0 -0
- /package/{lib → dist/lib}/modules/custom-clipboard.cjs.js +0 -0
- /package/{lib → dist/lib}/modules/custom-image/actions/action.cjs.js +0 -0
- /package/{lib → dist/lib}/modules/custom-image/actions/custom-resize-action.cjs.js +0 -0
- /package/{lib → dist/lib}/modules/custom-image/actions/delete-action.cjs.js +0 -0
- /package/{lib → dist/lib}/modules/custom-image/actions/image-toolbar-buttons.cjs.js +0 -0
- /package/{lib → dist/lib}/modules/custom-image/actions/image-toolbar-buttons.cjs.js.map +0 -0
- /package/{lib → dist/lib}/modules/custom-image/actions/index.cjs.js +0 -0
- /package/{lib → dist/lib}/modules/custom-image/actions/index.cjs.js.map +0 -0
- /package/{lib → dist/lib}/modules/custom-image/actions/toolbar-action.cjs.js +0 -0
- /package/{lib → dist/lib}/modules/custom-image/actions/toolbar-action.cjs.js.map +0 -0
- /package/{lib → dist/lib}/modules/custom-image/actions/toolbar.cjs.js +0 -0
- /package/{lib → dist/lib}/modules/custom-image/actions/toolbar.cjs.js.map +0 -0
- /package/{lib → dist/lib}/modules/custom-image/blot-formatter.cjs.js +0 -0
- /package/{lib → dist/lib}/modules/custom-image/image.cjs.js +0 -0
- /package/{lib → dist/lib}/modules/custom-image/index.cjs.js +0 -0
- /package/{lib → dist/lib}/modules/custom-image/index.cjs.js.map +0 -0
- /package/{lib → dist/lib}/modules/custom-image/options.cjs.js +0 -0
- /package/{lib → dist/lib}/modules/custom-image/specs/blot-spec.cjs.js +0 -0
- /package/{lib → dist/lib}/modules/custom-image/specs/custom-image-spec.cjs.js +0 -0
- /package/{lib → dist/lib}/modules/custom-image/specs/image-spec.cjs.js +0 -0
- /package/{lib → dist/lib}/modules/custom-image/specs/index.cjs.js +0 -0
- /package/{lib → dist/lib}/modules/custom-image/specs/index.cjs.js.map +0 -0
- /package/{lib → dist/lib}/modules/custom-uploader.cjs.js +0 -0
- /package/{lib → dist/lib}/modules/custom-uploader.cjs.js.map +0 -0
- /package/{lib → dist/lib}/modules/divider.cjs.js +0 -0
- /package/{lib → dist/lib}/modules/file/formats/file.cjs.js +0 -0
- /package/{lib → dist/lib}/modules/file/index.cjs.js +0 -0
- /package/{lib → dist/lib}/modules/file/index.cjs.js.map +0 -0
- /package/{lib → dist/lib}/modules/file/modules/file-bar.cjs.js +0 -0
- /package/{lib → dist/lib}/modules/file/modules/file-module.cjs.js +0 -0
- /package/{lib → dist/lib}/modules/i18n.cjs.js +0 -0
- /package/{lib → dist/lib}/modules/i18n.cjs.js.map +0 -0
- /package/{lib → dist/lib}/modules/index.cjs.js +0 -0
- /package/{lib → dist/lib}/modules/index.cjs.js.map +0 -0
- /package/{lib → dist/lib}/modules/link/formats/link.cjs.js +0 -0
- /package/{lib → dist/lib}/modules/link/index.cjs.js +0 -0
- /package/{lib → dist/lib}/modules/link/index.cjs.js.map +0 -0
- /package/{lib → dist/lib}/modules/link/modules/tooltip.cjs.js +0 -0
- /package/{lib → dist/lib}/modules/mathlive/formats.cjs.js +0 -0
- /package/{lib → dist/lib}/modules/mathlive/index.cjs.js +0 -0
- /package/{lib → dist/lib}/modules/mathlive/index.cjs.js.map +0 -0
- /package/{lib → dist/lib}/modules/mathlive/module.cjs.js +0 -0
- /package/{lib → dist/lib}/modules/mathlive/module.cjs.js.map +0 -0
- /package/{lib → dist/lib}/modules/mathlive/tooltip.cjs.js +0 -0
- /package/{lib → dist/lib}/modules/mention/constants.cjs.js +0 -0
- /package/{lib → dist/lib}/modules/mention/index.cjs.js +0 -0
- /package/{lib → dist/lib}/modules/mention/index.cjs.js.map +0 -0
- /package/{lib → dist/lib}/modules/mention/mention-link.cjs.js +0 -0
- /package/{lib → dist/lib}/modules/mention/mention.cjs.js +0 -0
- /package/{lib → dist/lib}/modules/shortcut-key/index.cjs.js +0 -0
- /package/{lib → dist/lib}/modules/shortcut-key/index.cjs.js.map +0 -0
- /package/{lib → dist/lib}/modules/syntax.cjs.js +0 -0
- /package/{lib → dist/lib}/modules/table-up/index.cjs.js +0 -0
- /package/{lib → dist/lib}/modules/table-up/index.cjs.js.map +0 -0
- /package/{lib → dist/lib}/modules/toolbar/better-picker.cjs.js +0 -0
- /package/{lib → dist/lib}/modules/toolbar/better-toolbar.cjs.js +0 -0
- /package/{lib → dist/lib}/modules/toolbar/better-toolbar.cjs.js.map +0 -0
- /package/{lib → dist/lib}/modules/toolbar/index.cjs.js +0 -0
- /package/{lib → dist/lib}/modules/toolbar/index.cjs.js.map +0 -0
- /package/{lib → dist/lib}/modules/toolbar/toolbar-tip.cjs.js +0 -0
- /package/{lib → dist/lib}/modules/toolbar/toolbar-tip.cjs.js.map +0 -0
- /package/{lib → dist/lib}/themes/snow.cjs.js +0 -0
- /package/{lib → dist/lib}/tools/format-painter.cjs.js +0 -0
- /package/{lib → dist/lib}/tools/format-painter.cjs.js.map +0 -0
- /package/{lib → dist/lib}/tools/fullscreen.cjs.js +0 -0
- /package/{lib → dist/lib}/tools/fullscreen.cjs.js.map +0 -0
- /package/{lib → dist/lib}/tools/screenshot.cjs.js +0 -0
- /package/{lib → dist/lib}/ui/icons.cjs.js +0 -0
- /package/{lib → dist/lib}/ui/icons.config.cjs.js +0 -0
- /package/{lib → dist/lib}/utils/debounce.cjs.js +0 -0
- /package/{lib → dist/lib}/utils/image.cjs.js +0 -0
- /package/{lib → dist/lib}/utils/image.cjs.js.map +0 -0
- /package/{lib → dist/lib}/utils/is.cjs.js +0 -0
- /package/{lib → dist/lib}/utils/is.cjs.js.map +0 -0
- /package/{lib → dist/lib}/utils/method.cjs.js +0 -0
- /package/{lib → dist/lib}/utils/scroll-lock.cjs.js +0 -0
- /package/{lib → dist/lib}/utils/scroll-lock.cjs.js.map +0 -0
- /package/{style.css → dist/style.css} +0 -0
package/lib/node_modules/.pnpm/simple-peer@9.11.1/node_modules/simple-peer/simplepeer.min.cjs.js
DELETED
|
@@ -1,2620 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const _commonjsHelpers = require("../../../../../_virtual/_commonjsHelpers.cjs.js");
|
|
4
|
-
const _commonjsDynamicModules = require("../../../../../_virtual/_commonjs-dynamic-modules.cjs.js");
|
|
5
|
-
const simplepeer_min$1 = require("../../../../../_virtual/simplepeer.min.cjs.js");
|
|
6
|
-
var simplepeer_min = simplepeer_min$1.__module.exports;
|
|
7
|
-
(function(module2, exports2) {
|
|
8
|
-
(function(e) {
|
|
9
|
-
if (true) module2.exports = e();
|
|
10
|
-
else if (false) (void 0)([], e);
|
|
11
|
-
else {
|
|
12
|
-
var t;
|
|
13
|
-
t = "undefined" == typeof window ? "undefined" == typeof _commonjsHelpers.commonjsGlobal ? "undefined" == typeof self ? this : self : _commonjsHelpers.commonjsGlobal : window, t.SimplePeer = e();
|
|
14
|
-
}
|
|
15
|
-
})(function() {
|
|
16
|
-
var t = Math.floor, n = Math.abs, r = Math.pow;
|
|
17
|
-
return (/* @__PURE__ */ function() {
|
|
18
|
-
function d(s, e, n2) {
|
|
19
|
-
function t2(o, i) {
|
|
20
|
-
if (!e[o]) {
|
|
21
|
-
if (!s[o]) {
|
|
22
|
-
var l = "function" == typeof _commonjsDynamicModules.commonjsRequire && _commonjsDynamicModules.commonjsRequire;
|
|
23
|
-
if (!i && l) return l(o, true);
|
|
24
|
-
if (r2) return r2(o, true);
|
|
25
|
-
var c = new Error("Cannot find module '" + o + "'");
|
|
26
|
-
throw c.code = "MODULE_NOT_FOUND", c;
|
|
27
|
-
}
|
|
28
|
-
var a2 = e[o] = { exports: {} };
|
|
29
|
-
s[o][0].call(a2.exports, function(e2) {
|
|
30
|
-
var r3 = s[o][1][e2];
|
|
31
|
-
return t2(r3 || e2);
|
|
32
|
-
}, a2, a2.exports, d, s, e, n2);
|
|
33
|
-
}
|
|
34
|
-
return e[o].exports;
|
|
35
|
-
}
|
|
36
|
-
for (var r2 = "function" == typeof _commonjsDynamicModules.commonjsRequire && _commonjsDynamicModules.commonjsRequire, a = 0; a < n2.length; a++) t2(n2[a]);
|
|
37
|
-
return t2;
|
|
38
|
-
}
|
|
39
|
-
return d;
|
|
40
|
-
}())({ 1: [function(e, t2, n2) {
|
|
41
|
-
"use strict";
|
|
42
|
-
function r2(e2) {
|
|
43
|
-
var t3 = e2.length;
|
|
44
|
-
if (0 < t3 % 4) throw new Error("Invalid string. Length must be a multiple of 4");
|
|
45
|
-
var n3 = e2.indexOf("=");
|
|
46
|
-
-1 === n3 && (n3 = t3);
|
|
47
|
-
var r3 = n3 === t3 ? 0 : 4 - n3 % 4;
|
|
48
|
-
return [n3, r3];
|
|
49
|
-
}
|
|
50
|
-
function a(e2, t3, n3) {
|
|
51
|
-
return 3 * (t3 + n3) / 4 - n3;
|
|
52
|
-
}
|
|
53
|
-
function o(e2) {
|
|
54
|
-
var t3, n3, o2 = r2(e2), d2 = o2[0], s2 = o2[1], l2 = new p(a(e2, d2, s2)), c2 = 0, f2 = 0 < s2 ? d2 - 4 : d2;
|
|
55
|
-
for (n3 = 0; n3 < f2; n3 += 4) t3 = u[e2.charCodeAt(n3)] << 18 | u[e2.charCodeAt(n3 + 1)] << 12 | u[e2.charCodeAt(n3 + 2)] << 6 | u[e2.charCodeAt(n3 + 3)], l2[c2++] = 255 & t3 >> 16, l2[c2++] = 255 & t3 >> 8, l2[c2++] = 255 & t3;
|
|
56
|
-
return 2 === s2 && (t3 = u[e2.charCodeAt(n3)] << 2 | u[e2.charCodeAt(n3 + 1)] >> 4, l2[c2++] = 255 & t3), 1 === s2 && (t3 = u[e2.charCodeAt(n3)] << 10 | u[e2.charCodeAt(n3 + 1)] << 4 | u[e2.charCodeAt(n3 + 2)] >> 2, l2[c2++] = 255 & t3 >> 8, l2[c2++] = 255 & t3), l2;
|
|
57
|
-
}
|
|
58
|
-
function d(e2) {
|
|
59
|
-
return c[63 & e2 >> 18] + c[63 & e2 >> 12] + c[63 & e2 >> 6] + c[63 & e2];
|
|
60
|
-
}
|
|
61
|
-
function s(e2, t3, n3) {
|
|
62
|
-
for (var r3, a2 = [], o2 = t3; o2 < n3; o2 += 3) r3 = (16711680 & e2[o2] << 16) + (65280 & e2[o2 + 1] << 8) + (255 & e2[o2 + 2]), a2.push(d(r3));
|
|
63
|
-
return a2.join("");
|
|
64
|
-
}
|
|
65
|
-
function l(e2) {
|
|
66
|
-
for (var t3, n3 = e2.length, r3 = n3 % 3, a2 = [], o2 = 16383, d2 = 0, l2 = n3 - r3; d2 < l2; d2 += o2) a2.push(s(e2, d2, d2 + o2 > l2 ? l2 : d2 + o2));
|
|
67
|
-
return 1 === r3 ? (t3 = e2[n3 - 1], a2.push(c[t3 >> 2] + c[63 & t3 << 4] + "==")) : 2 === r3 && (t3 = (e2[n3 - 2] << 8) + e2[n3 - 1], a2.push(c[t3 >> 10] + c[63 & t3 >> 4] + c[63 & t3 << 2] + "=")), a2.join("");
|
|
68
|
-
}
|
|
69
|
-
n2.byteLength = function(e2) {
|
|
70
|
-
var t3 = r2(e2), n3 = t3[0], a2 = t3[1];
|
|
71
|
-
return 3 * (n3 + a2) / 4 - a2;
|
|
72
|
-
}, n2.toByteArray = o, n2.fromByteArray = l;
|
|
73
|
-
for (var c = [], u = [], p = "undefined" == typeof Uint8Array ? Array : Uint8Array, f = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", g = 0, _ = f.length; g < _; ++g) c[g] = f[g], u[f.charCodeAt(g)] = g;
|
|
74
|
-
u[45] = 62, u[95] = 63;
|
|
75
|
-
}, {}], 2: [function() {
|
|
76
|
-
}, {}], 3: [function(e, t2, n2) {
|
|
77
|
-
(function() {
|
|
78
|
-
(function() {
|
|
79
|
-
/*!
|
|
80
|
-
* The buffer module from node.js, for the browser.
|
|
81
|
-
*
|
|
82
|
-
* @author Feross Aboukhadijeh <https://feross.org>
|
|
83
|
-
* @license MIT
|
|
84
|
-
*/
|
|
85
|
-
"use strict";
|
|
86
|
-
var t3 = String.fromCharCode, o = Math.min;
|
|
87
|
-
function d(e2) {
|
|
88
|
-
if (2147483647 < e2) throw new RangeError('The value "' + e2 + '" is invalid for option "size"');
|
|
89
|
-
var t4 = new Uint8Array(e2);
|
|
90
|
-
return t4.__proto__ = s.prototype, t4;
|
|
91
|
-
}
|
|
92
|
-
function s(e2, t4, n3) {
|
|
93
|
-
if ("number" == typeof e2) {
|
|
94
|
-
if ("string" == typeof t4) throw new TypeError('The "string" argument must be of type string. Received type number');
|
|
95
|
-
return p(e2);
|
|
96
|
-
}
|
|
97
|
-
return l(e2, t4, n3);
|
|
98
|
-
}
|
|
99
|
-
function l(e2, t4, n3) {
|
|
100
|
-
if ("string" == typeof e2) return f(e2, t4);
|
|
101
|
-
if (ArrayBuffer.isView(e2)) return g(e2);
|
|
102
|
-
if (null == e2) throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof e2);
|
|
103
|
-
if (K(e2, ArrayBuffer) || e2 && K(e2.buffer, ArrayBuffer)) return _(e2, t4, n3);
|
|
104
|
-
if ("number" == typeof e2) throw new TypeError('The "value" argument must not be of type number. Received type number');
|
|
105
|
-
var r2 = e2.valueOf && e2.valueOf();
|
|
106
|
-
if (null != r2 && r2 !== e2) return s.from(r2, t4, n3);
|
|
107
|
-
var a = h(e2);
|
|
108
|
-
if (a) return a;
|
|
109
|
-
if ("undefined" != typeof Symbol && null != Symbol.toPrimitive && "function" == typeof e2[Symbol.toPrimitive]) return s.from(e2[Symbol.toPrimitive]("string"), t4, n3);
|
|
110
|
-
throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof e2);
|
|
111
|
-
}
|
|
112
|
-
function c(e2) {
|
|
113
|
-
if ("number" != typeof e2) throw new TypeError('"size" argument must be of type number');
|
|
114
|
-
else if (0 > e2) throw new RangeError('The value "' + e2 + '" is invalid for option "size"');
|
|
115
|
-
}
|
|
116
|
-
function u(e2, t4, n3) {
|
|
117
|
-
return c(e2), 0 >= e2 ? d(e2) : void 0 === t4 ? d(e2) : "string" == typeof n3 ? d(e2).fill(t4, n3) : d(e2).fill(t4);
|
|
118
|
-
}
|
|
119
|
-
function p(e2) {
|
|
120
|
-
return c(e2), d(0 > e2 ? 0 : 0 | m(e2));
|
|
121
|
-
}
|
|
122
|
-
function f(e2, t4) {
|
|
123
|
-
if (("string" != typeof t4 || "" === t4) && (t4 = "utf8"), !s.isEncoding(t4)) throw new TypeError("Unknown encoding: " + t4);
|
|
124
|
-
var n3 = 0 | b(e2, t4), r2 = d(n3), a = r2.write(e2, t4);
|
|
125
|
-
return a !== n3 && (r2 = r2.slice(0, a)), r2;
|
|
126
|
-
}
|
|
127
|
-
function g(e2) {
|
|
128
|
-
for (var t4 = 0 > e2.length ? 0 : 0 | m(e2.length), n3 = d(t4), r2 = 0; r2 < t4; r2 += 1) n3[r2] = 255 & e2[r2];
|
|
129
|
-
return n3;
|
|
130
|
-
}
|
|
131
|
-
function _(e2, t4, n3) {
|
|
132
|
-
if (0 > t4 || e2.byteLength < t4) throw new RangeError('"offset" is outside of buffer bounds');
|
|
133
|
-
if (e2.byteLength < t4 + (n3 || 0)) throw new RangeError('"length" is outside of buffer bounds');
|
|
134
|
-
var r2;
|
|
135
|
-
return r2 = void 0 === t4 && void 0 === n3 ? new Uint8Array(e2) : void 0 === n3 ? new Uint8Array(e2, t4) : new Uint8Array(e2, t4, n3), r2.__proto__ = s.prototype, r2;
|
|
136
|
-
}
|
|
137
|
-
function h(e2) {
|
|
138
|
-
if (s.isBuffer(e2)) {
|
|
139
|
-
var t4 = 0 | m(e2.length), n3 = d(t4);
|
|
140
|
-
return 0 === n3.length ? n3 : (e2.copy(n3, 0, 0, t4), n3);
|
|
141
|
-
}
|
|
142
|
-
return void 0 === e2.length ? "Buffer" === e2.type && Array.isArray(e2.data) ? g(e2.data) : void 0 : "number" != typeof e2.length || X(e2.length) ? d(0) : g(e2);
|
|
143
|
-
}
|
|
144
|
-
function m(e2) {
|
|
145
|
-
if (e2 >= 2147483647) throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + 2147483647 .toString(16) + " bytes");
|
|
146
|
-
return 0 | e2;
|
|
147
|
-
}
|
|
148
|
-
function b(e2, t4) {
|
|
149
|
-
if (s.isBuffer(e2)) return e2.length;
|
|
150
|
-
if (ArrayBuffer.isView(e2) || K(e2, ArrayBuffer)) return e2.byteLength;
|
|
151
|
-
if ("string" != typeof e2) throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type ' + typeof e2);
|
|
152
|
-
var n3 = e2.length, r2 = 2 < arguments.length && true === arguments[2];
|
|
153
|
-
if (!r2 && 0 === n3) return 0;
|
|
154
|
-
for (var a = false; ; ) switch (t4) {
|
|
155
|
-
case "ascii":
|
|
156
|
-
case "latin1":
|
|
157
|
-
case "binary":
|
|
158
|
-
return n3;
|
|
159
|
-
case "utf8":
|
|
160
|
-
case "utf-8":
|
|
161
|
-
return H(e2).length;
|
|
162
|
-
case "ucs2":
|
|
163
|
-
case "ucs-2":
|
|
164
|
-
case "utf16le":
|
|
165
|
-
case "utf-16le":
|
|
166
|
-
return 2 * n3;
|
|
167
|
-
case "hex":
|
|
168
|
-
return n3 >>> 1;
|
|
169
|
-
case "base64":
|
|
170
|
-
return z(e2).length;
|
|
171
|
-
default:
|
|
172
|
-
if (a) return r2 ? -1 : H(e2).length;
|
|
173
|
-
t4 = ("" + t4).toLowerCase(), a = true;
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
function y(e2, t4, n3) {
|
|
177
|
-
var r2 = false;
|
|
178
|
-
if ((void 0 === t4 || 0 > t4) && (t4 = 0), t4 > this.length) return "";
|
|
179
|
-
if ((void 0 === n3 || n3 > this.length) && (n3 = this.length), 0 >= n3) return "";
|
|
180
|
-
if (n3 >>>= 0, t4 >>>= 0, n3 <= t4) return "";
|
|
181
|
-
for (e2 || (e2 = "utf8"); ; ) switch (e2) {
|
|
182
|
-
case "hex":
|
|
183
|
-
return P(this, t4, n3);
|
|
184
|
-
case "utf8":
|
|
185
|
-
case "utf-8":
|
|
186
|
-
return x(this, t4, n3);
|
|
187
|
-
case "ascii":
|
|
188
|
-
return D(this, t4, n3);
|
|
189
|
-
case "latin1":
|
|
190
|
-
case "binary":
|
|
191
|
-
return I(this, t4, n3);
|
|
192
|
-
case "base64":
|
|
193
|
-
return A(this, t4, n3);
|
|
194
|
-
case "ucs2":
|
|
195
|
-
case "ucs-2":
|
|
196
|
-
case "utf16le":
|
|
197
|
-
case "utf-16le":
|
|
198
|
-
return M(this, t4, n3);
|
|
199
|
-
default:
|
|
200
|
-
if (r2) throw new TypeError("Unknown encoding: " + e2);
|
|
201
|
-
e2 = (e2 + "").toLowerCase(), r2 = true;
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
function C(e2, t4, n3) {
|
|
205
|
-
var r2 = e2[t4];
|
|
206
|
-
e2[t4] = e2[n3], e2[n3] = r2;
|
|
207
|
-
}
|
|
208
|
-
function R(e2, t4, n3, r2, a) {
|
|
209
|
-
if (0 === e2.length) return -1;
|
|
210
|
-
if ("string" == typeof n3 ? (r2 = n3, n3 = 0) : 2147483647 < n3 ? n3 = 2147483647 : -2147483648 > n3 && (n3 = -2147483648), n3 = +n3, X(n3) && (n3 = a ? 0 : e2.length - 1), 0 > n3 && (n3 = e2.length + n3), n3 >= e2.length) {
|
|
211
|
-
if (a) return -1;
|
|
212
|
-
n3 = e2.length - 1;
|
|
213
|
-
} else if (0 > n3) if (a) n3 = 0;
|
|
214
|
-
else return -1;
|
|
215
|
-
if ("string" == typeof t4 && (t4 = s.from(t4, r2)), s.isBuffer(t4)) return 0 === t4.length ? -1 : E(e2, t4, n3, r2, a);
|
|
216
|
-
if ("number" == typeof t4) return t4 &= 255, "function" == typeof Uint8Array.prototype.indexOf ? a ? Uint8Array.prototype.indexOf.call(e2, t4, n3) : Uint8Array.prototype.lastIndexOf.call(e2, t4, n3) : E(e2, [t4], n3, r2, a);
|
|
217
|
-
throw new TypeError("val must be string, number or Buffer");
|
|
218
|
-
}
|
|
219
|
-
function E(e2, t4, n3, r2, a) {
|
|
220
|
-
function o2(e3, t5) {
|
|
221
|
-
return 1 === d2 ? e3[t5] : e3.readUInt16BE(t5 * d2);
|
|
222
|
-
}
|
|
223
|
-
var d2 = 1, s2 = e2.length, l2 = t4.length;
|
|
224
|
-
if (void 0 !== r2 && (r2 = (r2 + "").toLowerCase(), "ucs2" === r2 || "ucs-2" === r2 || "utf16le" === r2 || "utf-16le" === r2)) {
|
|
225
|
-
if (2 > e2.length || 2 > t4.length) return -1;
|
|
226
|
-
d2 = 2, s2 /= 2, l2 /= 2, n3 /= 2;
|
|
227
|
-
}
|
|
228
|
-
var c2;
|
|
229
|
-
if (a) {
|
|
230
|
-
var u2 = -1;
|
|
231
|
-
for (c2 = n3; c2 < s2; c2++) if (o2(e2, c2) !== o2(t4, -1 === u2 ? 0 : c2 - u2)) -1 !== u2 && (c2 -= c2 - u2), u2 = -1;
|
|
232
|
-
else if (-1 === u2 && (u2 = c2), c2 - u2 + 1 === l2) return u2 * d2;
|
|
233
|
-
} else for (n3 + l2 > s2 && (n3 = s2 - l2), c2 = n3; 0 <= c2; c2--) {
|
|
234
|
-
for (var p2 = true, f2 = 0; f2 < l2; f2++) if (o2(e2, c2 + f2) !== o2(t4, f2)) {
|
|
235
|
-
p2 = false;
|
|
236
|
-
break;
|
|
237
|
-
}
|
|
238
|
-
if (p2) return c2;
|
|
239
|
-
}
|
|
240
|
-
return -1;
|
|
241
|
-
}
|
|
242
|
-
function w(e2, t4, n3, r2) {
|
|
243
|
-
n3 = +n3 || 0;
|
|
244
|
-
var a = e2.length - n3;
|
|
245
|
-
r2 ? (r2 = +r2, r2 > a && (r2 = a)) : r2 = a;
|
|
246
|
-
var o2 = t4.length;
|
|
247
|
-
r2 > o2 / 2 && (r2 = o2 / 2);
|
|
248
|
-
for (var d2, s2 = 0; s2 < r2; ++s2) {
|
|
249
|
-
if (d2 = parseInt(t4.substr(2 * s2, 2), 16), X(d2)) return s2;
|
|
250
|
-
e2[n3 + s2] = d2;
|
|
251
|
-
}
|
|
252
|
-
return s2;
|
|
253
|
-
}
|
|
254
|
-
function S(e2, t4, n3, r2) {
|
|
255
|
-
return G(H(t4, e2.length - n3), e2, n3, r2);
|
|
256
|
-
}
|
|
257
|
-
function T(e2, t4, n3, r2) {
|
|
258
|
-
return G(Y(t4), e2, n3, r2);
|
|
259
|
-
}
|
|
260
|
-
function v(e2, t4, n3, r2) {
|
|
261
|
-
return T(e2, t4, n3, r2);
|
|
262
|
-
}
|
|
263
|
-
function k(e2, t4, n3, r2) {
|
|
264
|
-
return G(z(t4), e2, n3, r2);
|
|
265
|
-
}
|
|
266
|
-
function L(e2, t4, n3, r2) {
|
|
267
|
-
return G(V(t4, e2.length - n3), e2, n3, r2);
|
|
268
|
-
}
|
|
269
|
-
function A(e2, t4, n3) {
|
|
270
|
-
return 0 === t4 && n3 === e2.length ? $.fromByteArray(e2) : $.fromByteArray(e2.slice(t4, n3));
|
|
271
|
-
}
|
|
272
|
-
function x(e2, t4, n3) {
|
|
273
|
-
n3 = o(e2.length, n3);
|
|
274
|
-
for (var r2 = [], a = t4; a < n3; ) {
|
|
275
|
-
var d2 = e2[a], s2 = null, l2 = 239 < d2 ? 4 : 223 < d2 ? 3 : 191 < d2 ? 2 : 1;
|
|
276
|
-
if (a + l2 <= n3) {
|
|
277
|
-
var c2, u2, p2, f2;
|
|
278
|
-
1 === l2 ? 128 > d2 && (s2 = d2) : 2 === l2 ? (c2 = e2[a + 1], 128 == (192 & c2) && (f2 = (31 & d2) << 6 | 63 & c2, 127 < f2 && (s2 = f2))) : 3 === l2 ? (c2 = e2[a + 1], u2 = e2[a + 2], 128 == (192 & c2) && 128 == (192 & u2) && (f2 = (15 & d2) << 12 | (63 & c2) << 6 | 63 & u2, 2047 < f2 && (55296 > f2 || 57343 < f2) && (s2 = f2))) : 4 === l2 ? (c2 = e2[a + 1], u2 = e2[a + 2], p2 = e2[a + 3], 128 == (192 & c2) && 128 == (192 & u2) && 128 == (192 & p2) && (f2 = (15 & d2) << 18 | (63 & c2) << 12 | (63 & u2) << 6 | 63 & p2, 65535 < f2 && 1114112 > f2 && (s2 = f2))) : void 0;
|
|
279
|
-
}
|
|
280
|
-
null === s2 ? (s2 = 65533, l2 = 1) : 65535 < s2 && (s2 -= 65536, r2.push(55296 | 1023 & s2 >>> 10), s2 = 56320 | 1023 & s2), r2.push(s2), a += l2;
|
|
281
|
-
}
|
|
282
|
-
return N(r2);
|
|
283
|
-
}
|
|
284
|
-
function N(e2) {
|
|
285
|
-
var n3 = e2.length;
|
|
286
|
-
if (n3 <= 4096) return t3.apply(String, e2);
|
|
287
|
-
for (var r2 = "", a = 0; a < n3; ) r2 += t3.apply(String, e2.slice(a, a += 4096));
|
|
288
|
-
return r2;
|
|
289
|
-
}
|
|
290
|
-
function D(e2, n3, r2) {
|
|
291
|
-
var a = "";
|
|
292
|
-
r2 = o(e2.length, r2);
|
|
293
|
-
for (var d2 = n3; d2 < r2; ++d2) a += t3(127 & e2[d2]);
|
|
294
|
-
return a;
|
|
295
|
-
}
|
|
296
|
-
function I(e2, n3, r2) {
|
|
297
|
-
var a = "";
|
|
298
|
-
r2 = o(e2.length, r2);
|
|
299
|
-
for (var d2 = n3; d2 < r2; ++d2) a += t3(e2[d2]);
|
|
300
|
-
return a;
|
|
301
|
-
}
|
|
302
|
-
function P(e2, t4, n3) {
|
|
303
|
-
var r2 = e2.length;
|
|
304
|
-
(!t4 || 0 > t4) && (t4 = 0), (!n3 || 0 > n3 || n3 > r2) && (n3 = r2);
|
|
305
|
-
for (var a = "", o2 = t4; o2 < n3; ++o2) a += W(e2[o2]);
|
|
306
|
-
return a;
|
|
307
|
-
}
|
|
308
|
-
function M(e2, n3, r2) {
|
|
309
|
-
for (var a = e2.slice(n3, r2), o2 = "", d2 = 0; d2 < a.length; d2 += 2) o2 += t3(a[d2] + 256 * a[d2 + 1]);
|
|
310
|
-
return o2;
|
|
311
|
-
}
|
|
312
|
-
function O(e2, t4, n3) {
|
|
313
|
-
if (0 != e2 % 1 || 0 > e2) throw new RangeError("offset is not uint");
|
|
314
|
-
if (e2 + t4 > n3) throw new RangeError("Trying to access beyond buffer length");
|
|
315
|
-
}
|
|
316
|
-
function F(e2, t4, n3, r2, a, o2) {
|
|
317
|
-
if (!s.isBuffer(e2)) throw new TypeError('"buffer" argument must be a Buffer instance');
|
|
318
|
-
if (t4 > a || t4 < o2) throw new RangeError('"value" argument is out of bounds');
|
|
319
|
-
if (n3 + r2 > e2.length) throw new RangeError("Index out of range");
|
|
320
|
-
}
|
|
321
|
-
function B(e2, t4, n3, r2) {
|
|
322
|
-
if (n3 + r2 > e2.length) throw new RangeError("Index out of range");
|
|
323
|
-
if (0 > n3) throw new RangeError("Index out of range");
|
|
324
|
-
}
|
|
325
|
-
function U(e2, t4, n3, r2, a) {
|
|
326
|
-
return t4 = +t4, n3 >>>= 0, a || B(e2, t4, n3, 4, 34028234663852886e22, -34028234663852886e22), J.write(e2, t4, n3, r2, 23, 4), n3 + 4;
|
|
327
|
-
}
|
|
328
|
-
function j(e2, t4, n3, r2, a) {
|
|
329
|
-
return t4 = +t4, n3 >>>= 0, a || B(e2, t4, n3, 8, 17976931348623157e292, -17976931348623157e292), J.write(e2, t4, n3, r2, 52, 8), n3 + 8;
|
|
330
|
-
}
|
|
331
|
-
function q(e2) {
|
|
332
|
-
if (e2 = e2.split("=")[0], e2 = e2.trim().replace(Q, ""), 2 > e2.length) return "";
|
|
333
|
-
for (; 0 != e2.length % 4; ) e2 += "=";
|
|
334
|
-
return e2;
|
|
335
|
-
}
|
|
336
|
-
function W(e2) {
|
|
337
|
-
return 16 > e2 ? "0" + e2.toString(16) : e2.toString(16);
|
|
338
|
-
}
|
|
339
|
-
function H(e2, t4) {
|
|
340
|
-
t4 = t4 || 1 / 0;
|
|
341
|
-
for (var n3, r2 = e2.length, a = null, o2 = [], d2 = 0; d2 < r2; ++d2) {
|
|
342
|
-
if (n3 = e2.charCodeAt(d2), 55295 < n3 && 57344 > n3) {
|
|
343
|
-
if (!a) {
|
|
344
|
-
if (56319 < n3) {
|
|
345
|
-
-1 < (t4 -= 3) && o2.push(239, 191, 189);
|
|
346
|
-
continue;
|
|
347
|
-
} else if (d2 + 1 === r2) {
|
|
348
|
-
-1 < (t4 -= 3) && o2.push(239, 191, 189);
|
|
349
|
-
continue;
|
|
350
|
-
}
|
|
351
|
-
a = n3;
|
|
352
|
-
continue;
|
|
353
|
-
}
|
|
354
|
-
if (56320 > n3) {
|
|
355
|
-
-1 < (t4 -= 3) && o2.push(239, 191, 189), a = n3;
|
|
356
|
-
continue;
|
|
357
|
-
}
|
|
358
|
-
n3 = (a - 55296 << 10 | n3 - 56320) + 65536;
|
|
359
|
-
} else a && -1 < (t4 -= 3) && o2.push(239, 191, 189);
|
|
360
|
-
if (a = null, 128 > n3) {
|
|
361
|
-
if (0 > (t4 -= 1)) break;
|
|
362
|
-
o2.push(n3);
|
|
363
|
-
} else if (2048 > n3) {
|
|
364
|
-
if (0 > (t4 -= 2)) break;
|
|
365
|
-
o2.push(192 | n3 >> 6, 128 | 63 & n3);
|
|
366
|
-
} else if (65536 > n3) {
|
|
367
|
-
if (0 > (t4 -= 3)) break;
|
|
368
|
-
o2.push(224 | n3 >> 12, 128 | 63 & n3 >> 6, 128 | 63 & n3);
|
|
369
|
-
} else if (1114112 > n3) {
|
|
370
|
-
if (0 > (t4 -= 4)) break;
|
|
371
|
-
o2.push(240 | n3 >> 18, 128 | 63 & n3 >> 12, 128 | 63 & n3 >> 6, 128 | 63 & n3);
|
|
372
|
-
} else throw new Error("Invalid code point");
|
|
373
|
-
}
|
|
374
|
-
return o2;
|
|
375
|
-
}
|
|
376
|
-
function Y(e2) {
|
|
377
|
-
for (var t4 = [], n3 = 0; n3 < e2.length; ++n3) t4.push(255 & e2.charCodeAt(n3));
|
|
378
|
-
return t4;
|
|
379
|
-
}
|
|
380
|
-
function V(e2, t4) {
|
|
381
|
-
for (var n3, r2, a, o2 = [], d2 = 0; d2 < e2.length && !(0 > (t4 -= 2)); ++d2) n3 = e2.charCodeAt(d2), r2 = n3 >> 8, a = n3 % 256, o2.push(a), o2.push(r2);
|
|
382
|
-
return o2;
|
|
383
|
-
}
|
|
384
|
-
function z(e2) {
|
|
385
|
-
return $.toByteArray(q(e2));
|
|
386
|
-
}
|
|
387
|
-
function G(e2, t4, n3, r2) {
|
|
388
|
-
for (var a = 0; a < r2 && !(a + n3 >= t4.length || a >= e2.length); ++a) t4[a + n3] = e2[a];
|
|
389
|
-
return a;
|
|
390
|
-
}
|
|
391
|
-
function K(e2, t4) {
|
|
392
|
-
return e2 instanceof t4 || null != e2 && null != e2.constructor && null != e2.constructor.name && e2.constructor.name === t4.name;
|
|
393
|
-
}
|
|
394
|
-
function X(e2) {
|
|
395
|
-
return e2 !== e2;
|
|
396
|
-
}
|
|
397
|
-
var $ = e("base64-js"), J = e("ieee754");
|
|
398
|
-
n2.Buffer = s, n2.SlowBuffer = function(e2) {
|
|
399
|
-
return +e2 != e2 && (e2 = 0), s.alloc(+e2);
|
|
400
|
-
}, n2.INSPECT_MAX_BYTES = 50;
|
|
401
|
-
n2.kMaxLength = 2147483647, s.TYPED_ARRAY_SUPPORT = function() {
|
|
402
|
-
try {
|
|
403
|
-
var e2 = new Uint8Array(1);
|
|
404
|
-
return e2.__proto__ = { __proto__: Uint8Array.prototype, foo: function() {
|
|
405
|
-
return 42;
|
|
406
|
-
} }, 42 === e2.foo();
|
|
407
|
-
} catch (t4) {
|
|
408
|
-
return false;
|
|
409
|
-
}
|
|
410
|
-
}(), s.TYPED_ARRAY_SUPPORT || "undefined" == typeof console || "function" != typeof console.error || console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."), Object.defineProperty(s.prototype, "parent", { enumerable: true, get: function() {
|
|
411
|
-
return s.isBuffer(this) ? this.buffer : void 0;
|
|
412
|
-
} }), Object.defineProperty(s.prototype, "offset", { enumerable: true, get: function() {
|
|
413
|
-
return s.isBuffer(this) ? this.byteOffset : void 0;
|
|
414
|
-
} }), "undefined" != typeof Symbol && null != Symbol.species && s[Symbol.species] === s && Object.defineProperty(s, Symbol.species, { value: null, configurable: true, enumerable: false, writable: false }), s.poolSize = 8192, s.from = function(e2, t4, n3) {
|
|
415
|
-
return l(e2, t4, n3);
|
|
416
|
-
}, s.prototype.__proto__ = Uint8Array.prototype, s.__proto__ = Uint8Array, s.alloc = function(e2, t4, n3) {
|
|
417
|
-
return u(e2, t4, n3);
|
|
418
|
-
}, s.allocUnsafe = function(e2) {
|
|
419
|
-
return p(e2);
|
|
420
|
-
}, s.allocUnsafeSlow = function(e2) {
|
|
421
|
-
return p(e2);
|
|
422
|
-
}, s.isBuffer = function(e2) {
|
|
423
|
-
return null != e2 && true === e2._isBuffer && e2 !== s.prototype;
|
|
424
|
-
}, s.compare = function(e2, t4) {
|
|
425
|
-
if (K(e2, Uint8Array) && (e2 = s.from(e2, e2.offset, e2.byteLength)), K(t4, Uint8Array) && (t4 = s.from(t4, t4.offset, t4.byteLength)), !s.isBuffer(e2) || !s.isBuffer(t4)) throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');
|
|
426
|
-
if (e2 === t4) return 0;
|
|
427
|
-
for (var n3 = e2.length, r2 = t4.length, d2 = 0, l2 = o(n3, r2); d2 < l2; ++d2) if (e2[d2] !== t4[d2]) {
|
|
428
|
-
n3 = e2[d2], r2 = t4[d2];
|
|
429
|
-
break;
|
|
430
|
-
}
|
|
431
|
-
return n3 < r2 ? -1 : r2 < n3 ? 1 : 0;
|
|
432
|
-
}, s.isEncoding = function(e2) {
|
|
433
|
-
switch ((e2 + "").toLowerCase()) {
|
|
434
|
-
case "hex":
|
|
435
|
-
case "utf8":
|
|
436
|
-
case "utf-8":
|
|
437
|
-
case "ascii":
|
|
438
|
-
case "latin1":
|
|
439
|
-
case "binary":
|
|
440
|
-
case "base64":
|
|
441
|
-
case "ucs2":
|
|
442
|
-
case "ucs-2":
|
|
443
|
-
case "utf16le":
|
|
444
|
-
case "utf-16le":
|
|
445
|
-
return true;
|
|
446
|
-
default:
|
|
447
|
-
return false;
|
|
448
|
-
}
|
|
449
|
-
}, s.concat = function(e2, t4) {
|
|
450
|
-
if (!Array.isArray(e2)) throw new TypeError('"list" argument must be an Array of Buffers');
|
|
451
|
-
if (0 === e2.length) return s.alloc(0);
|
|
452
|
-
var n3;
|
|
453
|
-
if (t4 === void 0) for (t4 = 0, n3 = 0; n3 < e2.length; ++n3) t4 += e2[n3].length;
|
|
454
|
-
var r2 = s.allocUnsafe(t4), a = 0;
|
|
455
|
-
for (n3 = 0; n3 < e2.length; ++n3) {
|
|
456
|
-
var o2 = e2[n3];
|
|
457
|
-
if (K(o2, Uint8Array) && (o2 = s.from(o2)), !s.isBuffer(o2)) throw new TypeError('"list" argument must be an Array of Buffers');
|
|
458
|
-
o2.copy(r2, a), a += o2.length;
|
|
459
|
-
}
|
|
460
|
-
return r2;
|
|
461
|
-
}, s.byteLength = b, s.prototype._isBuffer = true, s.prototype.swap16 = function() {
|
|
462
|
-
var e2 = this.length;
|
|
463
|
-
if (0 != e2 % 2) throw new RangeError("Buffer size must be a multiple of 16-bits");
|
|
464
|
-
for (var t4 = 0; t4 < e2; t4 += 2) C(this, t4, t4 + 1);
|
|
465
|
-
return this;
|
|
466
|
-
}, s.prototype.swap32 = function() {
|
|
467
|
-
var e2 = this.length;
|
|
468
|
-
if (0 != e2 % 4) throw new RangeError("Buffer size must be a multiple of 32-bits");
|
|
469
|
-
for (var t4 = 0; t4 < e2; t4 += 4) C(this, t4, t4 + 3), C(this, t4 + 1, t4 + 2);
|
|
470
|
-
return this;
|
|
471
|
-
}, s.prototype.swap64 = function() {
|
|
472
|
-
var e2 = this.length;
|
|
473
|
-
if (0 != e2 % 8) throw new RangeError("Buffer size must be a multiple of 64-bits");
|
|
474
|
-
for (var t4 = 0; t4 < e2; t4 += 8) C(this, t4, t4 + 7), C(this, t4 + 1, t4 + 6), C(this, t4 + 2, t4 + 5), C(this, t4 + 3, t4 + 4);
|
|
475
|
-
return this;
|
|
476
|
-
}, s.prototype.toString = function() {
|
|
477
|
-
var e2 = this.length;
|
|
478
|
-
return 0 === e2 ? "" : 0 === arguments.length ? x(this, 0, e2) : y.apply(this, arguments);
|
|
479
|
-
}, s.prototype.toLocaleString = s.prototype.toString, s.prototype.equals = function(e2) {
|
|
480
|
-
if (!s.isBuffer(e2)) throw new TypeError("Argument must be a Buffer");
|
|
481
|
-
return this === e2 || 0 === s.compare(this, e2);
|
|
482
|
-
}, s.prototype.inspect = function() {
|
|
483
|
-
var e2 = "", t4 = n2.INSPECT_MAX_BYTES;
|
|
484
|
-
return e2 = this.toString("hex", 0, t4).replace(/(.{2})/g, "$1 ").trim(), this.length > t4 && (e2 += " ... "), "<Buffer " + e2 + ">";
|
|
485
|
-
}, s.prototype.compare = function(e2, t4, n3, r2, a) {
|
|
486
|
-
if (K(e2, Uint8Array) && (e2 = s.from(e2, e2.offset, e2.byteLength)), !s.isBuffer(e2)) throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof e2);
|
|
487
|
-
if (void 0 === t4 && (t4 = 0), void 0 === n3 && (n3 = e2 ? e2.length : 0), void 0 === r2 && (r2 = 0), void 0 === a && (a = this.length), 0 > t4 || n3 > e2.length || 0 > r2 || a > this.length) throw new RangeError("out of range index");
|
|
488
|
-
if (r2 >= a && t4 >= n3) return 0;
|
|
489
|
-
if (r2 >= a) return -1;
|
|
490
|
-
if (t4 >= n3) return 1;
|
|
491
|
-
if (t4 >>>= 0, n3 >>>= 0, r2 >>>= 0, a >>>= 0, this === e2) return 0;
|
|
492
|
-
for (var d2 = a - r2, l2 = n3 - t4, c2 = o(d2, l2), u2 = this.slice(r2, a), p2 = e2.slice(t4, n3), f2 = 0; f2 < c2; ++f2) if (u2[f2] !== p2[f2]) {
|
|
493
|
-
d2 = u2[f2], l2 = p2[f2];
|
|
494
|
-
break;
|
|
495
|
-
}
|
|
496
|
-
return d2 < l2 ? -1 : l2 < d2 ? 1 : 0;
|
|
497
|
-
}, s.prototype.includes = function(e2, t4, n3) {
|
|
498
|
-
return -1 !== this.indexOf(e2, t4, n3);
|
|
499
|
-
}, s.prototype.indexOf = function(e2, t4, n3) {
|
|
500
|
-
return R(this, e2, t4, n3, true);
|
|
501
|
-
}, s.prototype.lastIndexOf = function(e2, t4, n3) {
|
|
502
|
-
return R(this, e2, t4, n3, false);
|
|
503
|
-
}, s.prototype.write = function(e2, t4, n3, r2) {
|
|
504
|
-
if (void 0 === t4) r2 = "utf8", n3 = this.length, t4 = 0;
|
|
505
|
-
else if (void 0 === n3 && "string" == typeof t4) r2 = t4, n3 = this.length, t4 = 0;
|
|
506
|
-
else if (isFinite(t4)) t4 >>>= 0, isFinite(n3) ? (n3 >>>= 0, void 0 === r2 && (r2 = "utf8")) : (r2 = n3, n3 = void 0);
|
|
507
|
-
else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");
|
|
508
|
-
var a = this.length - t4;
|
|
509
|
-
if ((void 0 === n3 || n3 > a) && (n3 = a), 0 < e2.length && (0 > n3 || 0 > t4) || t4 > this.length) throw new RangeError("Attempt to write outside buffer bounds");
|
|
510
|
-
r2 || (r2 = "utf8");
|
|
511
|
-
for (var o2 = false; ; ) switch (r2) {
|
|
512
|
-
case "hex":
|
|
513
|
-
return w(this, e2, t4, n3);
|
|
514
|
-
case "utf8":
|
|
515
|
-
case "utf-8":
|
|
516
|
-
return S(this, e2, t4, n3);
|
|
517
|
-
case "ascii":
|
|
518
|
-
return T(this, e2, t4, n3);
|
|
519
|
-
case "latin1":
|
|
520
|
-
case "binary":
|
|
521
|
-
return v(this, e2, t4, n3);
|
|
522
|
-
case "base64":
|
|
523
|
-
return k(this, e2, t4, n3);
|
|
524
|
-
case "ucs2":
|
|
525
|
-
case "ucs-2":
|
|
526
|
-
case "utf16le":
|
|
527
|
-
case "utf-16le":
|
|
528
|
-
return L(this, e2, t4, n3);
|
|
529
|
-
default:
|
|
530
|
-
if (o2) throw new TypeError("Unknown encoding: " + r2);
|
|
531
|
-
r2 = ("" + r2).toLowerCase(), o2 = true;
|
|
532
|
-
}
|
|
533
|
-
}, s.prototype.toJSON = function() {
|
|
534
|
-
return { type: "Buffer", data: Array.prototype.slice.call(this._arr || this, 0) };
|
|
535
|
-
};
|
|
536
|
-
s.prototype.slice = function(e2, t4) {
|
|
537
|
-
var n3 = this.length;
|
|
538
|
-
e2 = ~~e2, t4 = t4 === void 0 ? n3 : ~~t4, 0 > e2 ? (e2 += n3, 0 > e2 && (e2 = 0)) : e2 > n3 && (e2 = n3), 0 > t4 ? (t4 += n3, 0 > t4 && (t4 = 0)) : t4 > n3 && (t4 = n3), t4 < e2 && (t4 = e2);
|
|
539
|
-
var r2 = this.subarray(e2, t4);
|
|
540
|
-
return r2.__proto__ = s.prototype, r2;
|
|
541
|
-
}, s.prototype.readUIntLE = function(e2, t4, n3) {
|
|
542
|
-
e2 >>>= 0, t4 >>>= 0, n3 || O(e2, t4, this.length);
|
|
543
|
-
for (var r2 = this[e2], a = 1, o2 = 0; ++o2 < t4 && (a *= 256); ) r2 += this[e2 + o2] * a;
|
|
544
|
-
return r2;
|
|
545
|
-
}, s.prototype.readUIntBE = function(e2, t4, n3) {
|
|
546
|
-
e2 >>>= 0, t4 >>>= 0, n3 || O(e2, t4, this.length);
|
|
547
|
-
for (var r2 = this[e2 + --t4], a = 1; 0 < t4 && (a *= 256); ) r2 += this[e2 + --t4] * a;
|
|
548
|
-
return r2;
|
|
549
|
-
}, s.prototype.readUInt8 = function(e2, t4) {
|
|
550
|
-
return e2 >>>= 0, t4 || O(e2, 1, this.length), this[e2];
|
|
551
|
-
}, s.prototype.readUInt16LE = function(e2, t4) {
|
|
552
|
-
return e2 >>>= 0, t4 || O(e2, 2, this.length), this[e2] | this[e2 + 1] << 8;
|
|
553
|
-
}, s.prototype.readUInt16BE = function(e2, t4) {
|
|
554
|
-
return e2 >>>= 0, t4 || O(e2, 2, this.length), this[e2] << 8 | this[e2 + 1];
|
|
555
|
-
}, s.prototype.readUInt32LE = function(e2, t4) {
|
|
556
|
-
return e2 >>>= 0, t4 || O(e2, 4, this.length), (this[e2] | this[e2 + 1] << 8 | this[e2 + 2] << 16) + 16777216 * this[e2 + 3];
|
|
557
|
-
}, s.prototype.readUInt32BE = function(e2, t4) {
|
|
558
|
-
return e2 >>>= 0, t4 || O(e2, 4, this.length), 16777216 * this[e2] + (this[e2 + 1] << 16 | this[e2 + 2] << 8 | this[e2 + 3]);
|
|
559
|
-
}, s.prototype.readIntLE = function(e2, t4, n3) {
|
|
560
|
-
e2 >>>= 0, t4 >>>= 0, n3 || O(e2, t4, this.length);
|
|
561
|
-
for (var a = this[e2], o2 = 1, d2 = 0; ++d2 < t4 && (o2 *= 256); ) a += this[e2 + d2] * o2;
|
|
562
|
-
return o2 *= 128, a >= o2 && (a -= r(2, 8 * t4)), a;
|
|
563
|
-
}, s.prototype.readIntBE = function(e2, t4, n3) {
|
|
564
|
-
e2 >>>= 0, t4 >>>= 0, n3 || O(e2, t4, this.length);
|
|
565
|
-
for (var a = t4, o2 = 1, d2 = this[e2 + --a]; 0 < a && (o2 *= 256); ) d2 += this[e2 + --a] * o2;
|
|
566
|
-
return o2 *= 128, d2 >= o2 && (d2 -= r(2, 8 * t4)), d2;
|
|
567
|
-
}, s.prototype.readInt8 = function(e2, t4) {
|
|
568
|
-
return e2 >>>= 0, t4 || O(e2, 1, this.length), 128 & this[e2] ? -1 * (255 - this[e2] + 1) : this[e2];
|
|
569
|
-
}, s.prototype.readInt16LE = function(e2, t4) {
|
|
570
|
-
e2 >>>= 0, t4 || O(e2, 2, this.length);
|
|
571
|
-
var n3 = this[e2] | this[e2 + 1] << 8;
|
|
572
|
-
return 32768 & n3 ? 4294901760 | n3 : n3;
|
|
573
|
-
}, s.prototype.readInt16BE = function(e2, t4) {
|
|
574
|
-
e2 >>>= 0, t4 || O(e2, 2, this.length);
|
|
575
|
-
var n3 = this[e2 + 1] | this[e2] << 8;
|
|
576
|
-
return 32768 & n3 ? 4294901760 | n3 : n3;
|
|
577
|
-
}, s.prototype.readInt32LE = function(e2, t4) {
|
|
578
|
-
return e2 >>>= 0, t4 || O(e2, 4, this.length), this[e2] | this[e2 + 1] << 8 | this[e2 + 2] << 16 | this[e2 + 3] << 24;
|
|
579
|
-
}, s.prototype.readInt32BE = function(e2, t4) {
|
|
580
|
-
return e2 >>>= 0, t4 || O(e2, 4, this.length), this[e2] << 24 | this[e2 + 1] << 16 | this[e2 + 2] << 8 | this[e2 + 3];
|
|
581
|
-
}, s.prototype.readFloatLE = function(e2, t4) {
|
|
582
|
-
return e2 >>>= 0, t4 || O(e2, 4, this.length), J.read(this, e2, true, 23, 4);
|
|
583
|
-
}, s.prototype.readFloatBE = function(e2, t4) {
|
|
584
|
-
return e2 >>>= 0, t4 || O(e2, 4, this.length), J.read(this, e2, false, 23, 4);
|
|
585
|
-
}, s.prototype.readDoubleLE = function(e2, t4) {
|
|
586
|
-
return e2 >>>= 0, t4 || O(e2, 8, this.length), J.read(this, e2, true, 52, 8);
|
|
587
|
-
}, s.prototype.readDoubleBE = function(e2, t4) {
|
|
588
|
-
return e2 >>>= 0, t4 || O(e2, 8, this.length), J.read(this, e2, false, 52, 8);
|
|
589
|
-
}, s.prototype.writeUIntLE = function(e2, t4, n3, a) {
|
|
590
|
-
if (e2 = +e2, t4 >>>= 0, n3 >>>= 0, !a) {
|
|
591
|
-
var o2 = r(2, 8 * n3) - 1;
|
|
592
|
-
F(this, e2, t4, n3, o2, 0);
|
|
593
|
-
}
|
|
594
|
-
var d2 = 1, s2 = 0;
|
|
595
|
-
for (this[t4] = 255 & e2; ++s2 < n3 && (d2 *= 256); ) this[t4 + s2] = 255 & e2 / d2;
|
|
596
|
-
return t4 + n3;
|
|
597
|
-
}, s.prototype.writeUIntBE = function(e2, t4, n3, a) {
|
|
598
|
-
if (e2 = +e2, t4 >>>= 0, n3 >>>= 0, !a) {
|
|
599
|
-
var o2 = r(2, 8 * n3) - 1;
|
|
600
|
-
F(this, e2, t4, n3, o2, 0);
|
|
601
|
-
}
|
|
602
|
-
var d2 = n3 - 1, s2 = 1;
|
|
603
|
-
for (this[t4 + d2] = 255 & e2; 0 <= --d2 && (s2 *= 256); ) this[t4 + d2] = 255 & e2 / s2;
|
|
604
|
-
return t4 + n3;
|
|
605
|
-
}, s.prototype.writeUInt8 = function(e2, t4, n3) {
|
|
606
|
-
return e2 = +e2, t4 >>>= 0, n3 || F(this, e2, t4, 1, 255, 0), this[t4] = 255 & e2, t4 + 1;
|
|
607
|
-
}, s.prototype.writeUInt16LE = function(e2, t4, n3) {
|
|
608
|
-
return e2 = +e2, t4 >>>= 0, n3 || F(this, e2, t4, 2, 65535, 0), this[t4] = 255 & e2, this[t4 + 1] = e2 >>> 8, t4 + 2;
|
|
609
|
-
}, s.prototype.writeUInt16BE = function(e2, t4, n3) {
|
|
610
|
-
return e2 = +e2, t4 >>>= 0, n3 || F(this, e2, t4, 2, 65535, 0), this[t4] = e2 >>> 8, this[t4 + 1] = 255 & e2, t4 + 2;
|
|
611
|
-
}, s.prototype.writeUInt32LE = function(e2, t4, n3) {
|
|
612
|
-
return e2 = +e2, t4 >>>= 0, n3 || F(this, e2, t4, 4, 4294967295, 0), this[t4 + 3] = e2 >>> 24, this[t4 + 2] = e2 >>> 16, this[t4 + 1] = e2 >>> 8, this[t4] = 255 & e2, t4 + 4;
|
|
613
|
-
}, s.prototype.writeUInt32BE = function(e2, t4, n3) {
|
|
614
|
-
return e2 = +e2, t4 >>>= 0, n3 || F(this, e2, t4, 4, 4294967295, 0), this[t4] = e2 >>> 24, this[t4 + 1] = e2 >>> 16, this[t4 + 2] = e2 >>> 8, this[t4 + 3] = 255 & e2, t4 + 4;
|
|
615
|
-
}, s.prototype.writeIntLE = function(e2, t4, n3, a) {
|
|
616
|
-
if (e2 = +e2, t4 >>>= 0, !a) {
|
|
617
|
-
var o2 = r(2, 8 * n3 - 1);
|
|
618
|
-
F(this, e2, t4, n3, o2 - 1, -o2);
|
|
619
|
-
}
|
|
620
|
-
var d2 = 0, s2 = 1, l2 = 0;
|
|
621
|
-
for (this[t4] = 255 & e2; ++d2 < n3 && (s2 *= 256); ) 0 > e2 && 0 === l2 && 0 !== this[t4 + d2 - 1] && (l2 = 1), this[t4 + d2] = 255 & (e2 / s2 >> 0) - l2;
|
|
622
|
-
return t4 + n3;
|
|
623
|
-
}, s.prototype.writeIntBE = function(e2, t4, n3, a) {
|
|
624
|
-
if (e2 = +e2, t4 >>>= 0, !a) {
|
|
625
|
-
var o2 = r(2, 8 * n3 - 1);
|
|
626
|
-
F(this, e2, t4, n3, o2 - 1, -o2);
|
|
627
|
-
}
|
|
628
|
-
var d2 = n3 - 1, s2 = 1, l2 = 0;
|
|
629
|
-
for (this[t4 + d2] = 255 & e2; 0 <= --d2 && (s2 *= 256); ) 0 > e2 && 0 === l2 && 0 !== this[t4 + d2 + 1] && (l2 = 1), this[t4 + d2] = 255 & (e2 / s2 >> 0) - l2;
|
|
630
|
-
return t4 + n3;
|
|
631
|
-
}, s.prototype.writeInt8 = function(e2, t4, n3) {
|
|
632
|
-
return e2 = +e2, t4 >>>= 0, n3 || F(this, e2, t4, 1, 127, -128), 0 > e2 && (e2 = 255 + e2 + 1), this[t4] = 255 & e2, t4 + 1;
|
|
633
|
-
}, s.prototype.writeInt16LE = function(e2, t4, n3) {
|
|
634
|
-
return e2 = +e2, t4 >>>= 0, n3 || F(this, e2, t4, 2, 32767, -32768), this[t4] = 255 & e2, this[t4 + 1] = e2 >>> 8, t4 + 2;
|
|
635
|
-
}, s.prototype.writeInt16BE = function(e2, t4, n3) {
|
|
636
|
-
return e2 = +e2, t4 >>>= 0, n3 || F(this, e2, t4, 2, 32767, -32768), this[t4] = e2 >>> 8, this[t4 + 1] = 255 & e2, t4 + 2;
|
|
637
|
-
}, s.prototype.writeInt32LE = function(e2, t4, n3) {
|
|
638
|
-
return e2 = +e2, t4 >>>= 0, n3 || F(this, e2, t4, 4, 2147483647, -2147483648), this[t4] = 255 & e2, this[t4 + 1] = e2 >>> 8, this[t4 + 2] = e2 >>> 16, this[t4 + 3] = e2 >>> 24, t4 + 4;
|
|
639
|
-
}, s.prototype.writeInt32BE = function(e2, t4, n3) {
|
|
640
|
-
return e2 = +e2, t4 >>>= 0, n3 || F(this, e2, t4, 4, 2147483647, -2147483648), 0 > e2 && (e2 = 4294967295 + e2 + 1), this[t4] = e2 >>> 24, this[t4 + 1] = e2 >>> 16, this[t4 + 2] = e2 >>> 8, this[t4 + 3] = 255 & e2, t4 + 4;
|
|
641
|
-
}, s.prototype.writeFloatLE = function(e2, t4, n3) {
|
|
642
|
-
return U(this, e2, t4, true, n3);
|
|
643
|
-
}, s.prototype.writeFloatBE = function(e2, t4, n3) {
|
|
644
|
-
return U(this, e2, t4, false, n3);
|
|
645
|
-
}, s.prototype.writeDoubleLE = function(e2, t4, n3) {
|
|
646
|
-
return j(this, e2, t4, true, n3);
|
|
647
|
-
}, s.prototype.writeDoubleBE = function(e2, t4, n3) {
|
|
648
|
-
return j(this, e2, t4, false, n3);
|
|
649
|
-
}, s.prototype.copy = function(e2, t4, n3, r2) {
|
|
650
|
-
if (!s.isBuffer(e2)) throw new TypeError("argument should be a Buffer");
|
|
651
|
-
if (n3 || (n3 = 0), r2 || 0 === r2 || (r2 = this.length), t4 >= e2.length && (t4 = e2.length), t4 || (t4 = 0), 0 < r2 && r2 < n3 && (r2 = n3), r2 === n3) return 0;
|
|
652
|
-
if (0 === e2.length || 0 === this.length) return 0;
|
|
653
|
-
if (0 > t4) throw new RangeError("targetStart out of bounds");
|
|
654
|
-
if (0 > n3 || n3 >= this.length) throw new RangeError("Index out of range");
|
|
655
|
-
if (0 > r2) throw new RangeError("sourceEnd out of bounds");
|
|
656
|
-
r2 > this.length && (r2 = this.length), e2.length - t4 < r2 - n3 && (r2 = e2.length - t4 + n3);
|
|
657
|
-
var a = r2 - n3;
|
|
658
|
-
if (this === e2 && "function" == typeof Uint8Array.prototype.copyWithin) this.copyWithin(t4, n3, r2);
|
|
659
|
-
else if (this === e2 && n3 < t4 && t4 < r2) for (var o2 = a - 1; 0 <= o2; --o2) e2[o2 + t4] = this[o2 + n3];
|
|
660
|
-
else Uint8Array.prototype.set.call(e2, this.subarray(n3, r2), t4);
|
|
661
|
-
return a;
|
|
662
|
-
}, s.prototype.fill = function(e2, t4, n3, r2) {
|
|
663
|
-
if ("string" == typeof e2) {
|
|
664
|
-
if ("string" == typeof t4 ? (r2 = t4, t4 = 0, n3 = this.length) : "string" == typeof n3 && (r2 = n3, n3 = this.length), void 0 !== r2 && "string" != typeof r2) throw new TypeError("encoding must be a string");
|
|
665
|
-
if ("string" == typeof r2 && !s.isEncoding(r2)) throw new TypeError("Unknown encoding: " + r2);
|
|
666
|
-
if (1 === e2.length) {
|
|
667
|
-
var a = e2.charCodeAt(0);
|
|
668
|
-
("utf8" === r2 && 128 > a || "latin1" === r2) && (e2 = a);
|
|
669
|
-
}
|
|
670
|
-
} else "number" == typeof e2 && (e2 &= 255);
|
|
671
|
-
if (0 > t4 || this.length < t4 || this.length < n3) throw new RangeError("Out of range index");
|
|
672
|
-
if (n3 <= t4) return this;
|
|
673
|
-
t4 >>>= 0, n3 = n3 === void 0 ? this.length : n3 >>> 0, e2 || (e2 = 0);
|
|
674
|
-
var o2;
|
|
675
|
-
if ("number" == typeof e2) for (o2 = t4; o2 < n3; ++o2) this[o2] = e2;
|
|
676
|
-
else {
|
|
677
|
-
var d2 = s.isBuffer(e2) ? e2 : s.from(e2, r2), l2 = d2.length;
|
|
678
|
-
if (0 === l2) throw new TypeError('The value "' + e2 + '" is invalid for argument "value"');
|
|
679
|
-
for (o2 = 0; o2 < n3 - t4; ++o2) this[o2 + t4] = d2[o2 % l2];
|
|
680
|
-
}
|
|
681
|
-
return this;
|
|
682
|
-
};
|
|
683
|
-
var Q = /[^+/0-9A-Za-z-_]/g;
|
|
684
|
-
}).call(this);
|
|
685
|
-
}).call(this, e("buffer").Buffer);
|
|
686
|
-
}, { "base64-js": 1, buffer: 3, ieee754: 9 }], 4: [function(e, t2, n2) {
|
|
687
|
-
(function(a) {
|
|
688
|
-
(function() {
|
|
689
|
-
function r2() {
|
|
690
|
-
let e2;
|
|
691
|
-
try {
|
|
692
|
-
e2 = n2.storage.getItem("debug");
|
|
693
|
-
} catch (e3) {
|
|
694
|
-
}
|
|
695
|
-
return !e2 && "undefined" != typeof a && "env" in a && (e2 = a.env.DEBUG), e2;
|
|
696
|
-
}
|
|
697
|
-
n2.formatArgs = function(e2) {
|
|
698
|
-
if (e2[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + e2[0] + (this.useColors ? "%c " : " ") + "+" + t2.exports.humanize(this.diff), !this.useColors) return;
|
|
699
|
-
const n3 = "color: " + this.color;
|
|
700
|
-
e2.splice(1, 0, n3, "color: inherit");
|
|
701
|
-
let r3 = 0, a2 = 0;
|
|
702
|
-
e2[0].replace(/%[a-zA-Z%]/g, (e3) => {
|
|
703
|
-
"%%" === e3 || (r3++, "%c" === e3 && (a2 = r3));
|
|
704
|
-
}), e2.splice(a2, 0, n3);
|
|
705
|
-
}, n2.save = function(e2) {
|
|
706
|
-
try {
|
|
707
|
-
e2 ? n2.storage.setItem("debug", e2) : n2.storage.removeItem("debug");
|
|
708
|
-
} catch (e3) {
|
|
709
|
-
}
|
|
710
|
-
}, n2.load = r2, n2.useColors = function() {
|
|
711
|
-
return !!("undefined" != typeof window && window.process && ("renderer" === window.process.type || window.process.__nwjs)) || !("undefined" != typeof navigator && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) && ("undefined" != typeof document && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || "undefined" != typeof window && window.console && (window.console.firebug || window.console.exception && window.console.table) || "undefined" != typeof navigator && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && 31 <= parseInt(RegExp.$1, 10) || "undefined" != typeof navigator && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/));
|
|
712
|
-
}, n2.storage = function() {
|
|
713
|
-
try {
|
|
714
|
-
return localStorage;
|
|
715
|
-
} catch (e2) {
|
|
716
|
-
}
|
|
717
|
-
}(), n2.destroy = /* @__PURE__ */ (() => {
|
|
718
|
-
let e2 = false;
|
|
719
|
-
return () => {
|
|
720
|
-
e2 || (e2 = true, console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."));
|
|
721
|
-
};
|
|
722
|
-
})(), n2.colors = ["#0000CC", "#0000FF", "#0033CC", "#0033FF", "#0066CC", "#0066FF", "#0099CC", "#0099FF", "#00CC00", "#00CC33", "#00CC66", "#00CC99", "#00CCCC", "#00CCFF", "#3300CC", "#3300FF", "#3333CC", "#3333FF", "#3366CC", "#3366FF", "#3399CC", "#3399FF", "#33CC00", "#33CC33", "#33CC66", "#33CC99", "#33CCCC", "#33CCFF", "#6600CC", "#6600FF", "#6633CC", "#6633FF", "#66CC00", "#66CC33", "#9900CC", "#9900FF", "#9933CC", "#9933FF", "#99CC00", "#99CC33", "#CC0000", "#CC0033", "#CC0066", "#CC0099", "#CC00CC", "#CC00FF", "#CC3300", "#CC3333", "#CC3366", "#CC3399", "#CC33CC", "#CC33FF", "#CC6600", "#CC6633", "#CC9900", "#CC9933", "#CCCC00", "#CCCC33", "#FF0000", "#FF0033", "#FF0066", "#FF0099", "#FF00CC", "#FF00FF", "#FF3300", "#FF3333", "#FF3366", "#FF3399", "#FF33CC", "#FF33FF", "#FF6600", "#FF6633", "#FF9900", "#FF9933", "#FFCC00", "#FFCC33"], n2.log = console.debug || console.log || (() => {
|
|
723
|
-
}), t2.exports = e("./common")(n2);
|
|
724
|
-
const { formatters: o } = t2.exports;
|
|
725
|
-
o.j = function(e2) {
|
|
726
|
-
try {
|
|
727
|
-
return JSON.stringify(e2);
|
|
728
|
-
} catch (e3) {
|
|
729
|
-
return "[UnexpectedJSONParseError]: " + e3.message;
|
|
730
|
-
}
|
|
731
|
-
};
|
|
732
|
-
}).call(this);
|
|
733
|
-
}).call(this, e("_process"));
|
|
734
|
-
}, { "./common": 5, _process: 12 }], 5: [function(e, t2) {
|
|
735
|
-
t2.exports = function(t3) {
|
|
736
|
-
function r2(e2) {
|
|
737
|
-
function t4(...e3) {
|
|
738
|
-
if (!t4.enabled) return;
|
|
739
|
-
const a2 = t4, o3 = +/* @__PURE__ */ new Date(), i = o3 - (n2 || o3);
|
|
740
|
-
a2.diff = i, a2.prev = n2, a2.curr = o3, n2 = o3, e3[0] = r2.coerce(e3[0]), "string" != typeof e3[0] && e3.unshift("%O");
|
|
741
|
-
let d = 0;
|
|
742
|
-
e3[0] = e3[0].replace(/%([a-zA-Z%])/g, (t5, n3) => {
|
|
743
|
-
if ("%%" === t5) return "%";
|
|
744
|
-
d++;
|
|
745
|
-
const o4 = r2.formatters[n3];
|
|
746
|
-
if ("function" == typeof o4) {
|
|
747
|
-
const n4 = e3[d];
|
|
748
|
-
t5 = o4.call(a2, n4), e3.splice(d, 1), d--;
|
|
749
|
-
}
|
|
750
|
-
return t5;
|
|
751
|
-
}), r2.formatArgs.call(a2, e3);
|
|
752
|
-
const s = a2.log || r2.log;
|
|
753
|
-
s.apply(a2, e3);
|
|
754
|
-
}
|
|
755
|
-
let n2, o2 = null;
|
|
756
|
-
return t4.namespace = e2, t4.useColors = r2.useColors(), t4.color = r2.selectColor(e2), t4.extend = a, t4.destroy = r2.destroy, Object.defineProperty(t4, "enabled", { enumerable: true, configurable: false, get: () => null === o2 ? r2.enabled(e2) : o2, set: (e3) => {
|
|
757
|
-
o2 = e3;
|
|
758
|
-
} }), "function" == typeof r2.init && r2.init(t4), t4;
|
|
759
|
-
}
|
|
760
|
-
function a(e2, t4) {
|
|
761
|
-
const n2 = r2(this.namespace + ("undefined" == typeof t4 ? ":" : t4) + e2);
|
|
762
|
-
return n2.log = this.log, n2;
|
|
763
|
-
}
|
|
764
|
-
function o(e2) {
|
|
765
|
-
return e2.toString().substring(2, e2.toString().length - 2).replace(/\.\*\?$/, "*");
|
|
766
|
-
}
|
|
767
|
-
return r2.debug = r2, r2.default = r2, r2.coerce = function(e2) {
|
|
768
|
-
return e2 instanceof Error ? e2.stack || e2.message : e2;
|
|
769
|
-
}, r2.disable = function() {
|
|
770
|
-
const e2 = [...r2.names.map(o), ...r2.skips.map(o).map((e3) => "-" + e3)].join(",");
|
|
771
|
-
return r2.enable(""), e2;
|
|
772
|
-
}, r2.enable = function(e2) {
|
|
773
|
-
r2.save(e2), r2.names = [], r2.skips = [];
|
|
774
|
-
let t4;
|
|
775
|
-
const n2 = ("string" == typeof e2 ? e2 : "").split(/[\s,]+/), a2 = n2.length;
|
|
776
|
-
for (t4 = 0; t4 < a2; t4++) n2[t4] && (e2 = n2[t4].replace(/\*/g, ".*?"), "-" === e2[0] ? r2.skips.push(new RegExp("^" + e2.substr(1) + "$")) : r2.names.push(new RegExp("^" + e2 + "$")));
|
|
777
|
-
}, r2.enabled = function(e2) {
|
|
778
|
-
if ("*" === e2[e2.length - 1]) return true;
|
|
779
|
-
let t4, n2;
|
|
780
|
-
for (t4 = 0, n2 = r2.skips.length; t4 < n2; t4++) if (r2.skips[t4].test(e2)) return false;
|
|
781
|
-
for (t4 = 0, n2 = r2.names.length; t4 < n2; t4++) if (r2.names[t4].test(e2)) return true;
|
|
782
|
-
return false;
|
|
783
|
-
}, r2.humanize = e("ms"), r2.destroy = function() {
|
|
784
|
-
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
785
|
-
}, Object.keys(t3).forEach((e2) => {
|
|
786
|
-
r2[e2] = t3[e2];
|
|
787
|
-
}), r2.names = [], r2.skips = [], r2.formatters = {}, r2.selectColor = function(e2) {
|
|
788
|
-
let t4 = 0;
|
|
789
|
-
for (let n2 = 0; n2 < e2.length; n2++) t4 = (t4 << 5) - t4 + e2.charCodeAt(n2), t4 |= 0;
|
|
790
|
-
return r2.colors[n(t4) % r2.colors.length];
|
|
791
|
-
}, r2.enable(r2.load()), r2;
|
|
792
|
-
};
|
|
793
|
-
}, { ms: 11 }], 6: [function(e, t2) {
|
|
794
|
-
"use strict";
|
|
795
|
-
function n2(e2, t3) {
|
|
796
|
-
for (const n3 in t3) Object.defineProperty(e2, n3, { value: t3[n3], enumerable: true, configurable: true });
|
|
797
|
-
return e2;
|
|
798
|
-
}
|
|
799
|
-
t2.exports = function(e2, t3, r2) {
|
|
800
|
-
if (!e2 || "string" == typeof e2) throw new TypeError("Please pass an Error to err-code");
|
|
801
|
-
r2 || (r2 = {}), "object" == typeof t3 && (r2 = t3, t3 = ""), t3 && (r2.code = t3);
|
|
802
|
-
try {
|
|
803
|
-
return n2(e2, r2);
|
|
804
|
-
} catch (t4) {
|
|
805
|
-
r2.message = e2.message, r2.stack = e2.stack;
|
|
806
|
-
const a = function() {
|
|
807
|
-
};
|
|
808
|
-
a.prototype = Object.create(Object.getPrototypeOf(e2));
|
|
809
|
-
const o = n2(new a(), r2);
|
|
810
|
-
return o;
|
|
811
|
-
}
|
|
812
|
-
};
|
|
813
|
-
}, {}], 7: [function(e, t2) {
|
|
814
|
-
"use strict";
|
|
815
|
-
function n2(e2) {
|
|
816
|
-
console && console.warn && console.warn(e2);
|
|
817
|
-
}
|
|
818
|
-
function r2() {
|
|
819
|
-
r2.init.call(this);
|
|
820
|
-
}
|
|
821
|
-
function a(e2) {
|
|
822
|
-
if ("function" != typeof e2) throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof e2);
|
|
823
|
-
}
|
|
824
|
-
function o(e2) {
|
|
825
|
-
return void 0 === e2._maxListeners ? r2.defaultMaxListeners : e2._maxListeners;
|
|
826
|
-
}
|
|
827
|
-
function i(e2, t3, r3, i2) {
|
|
828
|
-
var d2, s2, l2;
|
|
829
|
-
if (a(r3), s2 = e2._events, void 0 === s2 ? (s2 = e2._events = /* @__PURE__ */ Object.create(null), e2._eventsCount = 0) : (void 0 !== s2.newListener && (e2.emit("newListener", t3, r3.listener ? r3.listener : r3), s2 = e2._events), l2 = s2[t3]), void 0 === l2) l2 = s2[t3] = r3, ++e2._eventsCount;
|
|
830
|
-
else if ("function" == typeof l2 ? l2 = s2[t3] = i2 ? [r3, l2] : [l2, r3] : i2 ? l2.unshift(r3) : l2.push(r3), d2 = o(e2), 0 < d2 && l2.length > d2 && !l2.warned) {
|
|
831
|
-
l2.warned = true;
|
|
832
|
-
var c2 = new Error("Possible EventEmitter memory leak detected. " + l2.length + " " + (t3 + " listeners added. Use emitter.setMaxListeners() to increase limit"));
|
|
833
|
-
c2.name = "MaxListenersExceededWarning", c2.emitter = e2, c2.type = t3, c2.count = l2.length, n2(c2);
|
|
834
|
-
}
|
|
835
|
-
return e2;
|
|
836
|
-
}
|
|
837
|
-
function d() {
|
|
838
|
-
if (!this.fired) return this.target.removeListener(this.type, this.wrapFn), this.fired = true, 0 === arguments.length ? this.listener.call(this.target) : this.listener.apply(this.target, arguments);
|
|
839
|
-
}
|
|
840
|
-
function s(e2, t3, n3) {
|
|
841
|
-
var r3 = { fired: false, wrapFn: void 0, target: e2, type: t3, listener: n3 }, a2 = d.bind(r3);
|
|
842
|
-
return a2.listener = n3, r3.wrapFn = a2, a2;
|
|
843
|
-
}
|
|
844
|
-
function l(e2, t3, n3) {
|
|
845
|
-
var r3 = e2._events;
|
|
846
|
-
if (r3 === void 0) return [];
|
|
847
|
-
var a2 = r3[t3];
|
|
848
|
-
return void 0 === a2 ? [] : "function" == typeof a2 ? n3 ? [a2.listener || a2] : [a2] : n3 ? f(a2) : u(a2, a2.length);
|
|
849
|
-
}
|
|
850
|
-
function c(e2) {
|
|
851
|
-
var t3 = this._events;
|
|
852
|
-
if (t3 !== void 0) {
|
|
853
|
-
var n3 = t3[e2];
|
|
854
|
-
if ("function" == typeof n3) return 1;
|
|
855
|
-
if (void 0 !== n3) return n3.length;
|
|
856
|
-
}
|
|
857
|
-
return 0;
|
|
858
|
-
}
|
|
859
|
-
function u(e2, t3) {
|
|
860
|
-
for (var n3 = Array(t3), r3 = 0; r3 < t3; ++r3) n3[r3] = e2[r3];
|
|
861
|
-
return n3;
|
|
862
|
-
}
|
|
863
|
-
function p(e2, t3) {
|
|
864
|
-
for (; t3 + 1 < e2.length; t3++) e2[t3] = e2[t3 + 1];
|
|
865
|
-
e2.pop();
|
|
866
|
-
}
|
|
867
|
-
function f(e2) {
|
|
868
|
-
for (var t3 = Array(e2.length), n3 = 0; n3 < t3.length; ++n3) t3[n3] = e2[n3].listener || e2[n3];
|
|
869
|
-
return t3;
|
|
870
|
-
}
|
|
871
|
-
function g(e2, t3, n3) {
|
|
872
|
-
"function" == typeof e2.on && _(e2, "error", t3, n3);
|
|
873
|
-
}
|
|
874
|
-
function _(e2, t3, n3, r3) {
|
|
875
|
-
if ("function" == typeof e2.on) r3.once ? e2.once(t3, n3) : e2.on(t3, n3);
|
|
876
|
-
else if ("function" == typeof e2.addEventListener) e2.addEventListener(t3, function a2(o2) {
|
|
877
|
-
r3.once && e2.removeEventListener(t3, a2), n3(o2);
|
|
878
|
-
});
|
|
879
|
-
else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof e2);
|
|
880
|
-
}
|
|
881
|
-
var h, m = "object" == typeof Reflect ? Reflect : null, b = m && "function" == typeof m.apply ? m.apply : function(e2, t3, n3) {
|
|
882
|
-
return Function.prototype.apply.call(e2, t3, n3);
|
|
883
|
-
};
|
|
884
|
-
h = m && "function" == typeof m.ownKeys ? m.ownKeys : Object.getOwnPropertySymbols ? function(e2) {
|
|
885
|
-
return Object.getOwnPropertyNames(e2).concat(Object.getOwnPropertySymbols(e2));
|
|
886
|
-
} : function(e2) {
|
|
887
|
-
return Object.getOwnPropertyNames(e2);
|
|
888
|
-
};
|
|
889
|
-
var y = Number.isNaN || function(e2) {
|
|
890
|
-
return e2 !== e2;
|
|
891
|
-
};
|
|
892
|
-
t2.exports = r2, t2.exports.once = function(e2, t3) {
|
|
893
|
-
return new Promise(function(n3, r3) {
|
|
894
|
-
function a2(n4) {
|
|
895
|
-
e2.removeListener(t3, o2), r3(n4);
|
|
896
|
-
}
|
|
897
|
-
function o2() {
|
|
898
|
-
"function" == typeof e2.removeListener && e2.removeListener("error", a2), n3([].slice.call(arguments));
|
|
899
|
-
}
|
|
900
|
-
_(e2, t3, o2, { once: true }), "error" !== t3 && g(e2, a2, { once: true });
|
|
901
|
-
});
|
|
902
|
-
}, r2.EventEmitter = r2, r2.prototype._events = void 0, r2.prototype._eventsCount = 0, r2.prototype._maxListeners = void 0;
|
|
903
|
-
var C = 10;
|
|
904
|
-
Object.defineProperty(r2, "defaultMaxListeners", { enumerable: true, get: function() {
|
|
905
|
-
return C;
|
|
906
|
-
}, set: function(e2) {
|
|
907
|
-
if ("number" != typeof e2 || 0 > e2 || y(e2)) throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + e2 + ".");
|
|
908
|
-
C = e2;
|
|
909
|
-
} }), r2.init = function() {
|
|
910
|
-
(this._events === void 0 || this._events === Object.getPrototypeOf(this)._events) && (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0), this._maxListeners = this._maxListeners || void 0;
|
|
911
|
-
}, r2.prototype.setMaxListeners = function(e2) {
|
|
912
|
-
if ("number" != typeof e2 || 0 > e2 || y(e2)) throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + e2 + ".");
|
|
913
|
-
return this._maxListeners = e2, this;
|
|
914
|
-
}, r2.prototype.getMaxListeners = function() {
|
|
915
|
-
return o(this);
|
|
916
|
-
}, r2.prototype.emit = function(e2) {
|
|
917
|
-
for (var t3 = [], n3 = 1; n3 < arguments.length; n3++) t3.push(arguments[n3]);
|
|
918
|
-
var r3 = "error" === e2, a2 = this._events;
|
|
919
|
-
if (a2 !== void 0) r3 = r3 && a2.error === void 0;
|
|
920
|
-
else if (!r3) return false;
|
|
921
|
-
if (r3) {
|
|
922
|
-
var o2;
|
|
923
|
-
if (0 < t3.length && (o2 = t3[0]), o2 instanceof Error) throw o2;
|
|
924
|
-
var d2 = new Error("Unhandled error." + (o2 ? " (" + o2.message + ")" : ""));
|
|
925
|
-
throw d2.context = o2, d2;
|
|
926
|
-
}
|
|
927
|
-
var s2 = a2[e2];
|
|
928
|
-
if (s2 === void 0) return false;
|
|
929
|
-
if ("function" == typeof s2) b(s2, this, t3);
|
|
930
|
-
else for (var l2 = s2.length, c2 = u(s2, l2), n3 = 0; n3 < l2; ++n3) b(c2[n3], this, t3);
|
|
931
|
-
return true;
|
|
932
|
-
}, r2.prototype.addListener = function(e2, t3) {
|
|
933
|
-
return i(this, e2, t3, false);
|
|
934
|
-
}, r2.prototype.on = r2.prototype.addListener, r2.prototype.prependListener = function(e2, t3) {
|
|
935
|
-
return i(this, e2, t3, true);
|
|
936
|
-
}, r2.prototype.once = function(e2, t3) {
|
|
937
|
-
return a(t3), this.on(e2, s(this, e2, t3)), this;
|
|
938
|
-
}, r2.prototype.prependOnceListener = function(e2, t3) {
|
|
939
|
-
return a(t3), this.prependListener(e2, s(this, e2, t3)), this;
|
|
940
|
-
}, r2.prototype.removeListener = function(e2, t3) {
|
|
941
|
-
var n3, r3, o2, d2, s2;
|
|
942
|
-
if (a(t3), r3 = this._events, void 0 === r3) return this;
|
|
943
|
-
if (n3 = r3[e2], void 0 === n3) return this;
|
|
944
|
-
if (n3 === t3 || n3.listener === t3) 0 == --this._eventsCount ? this._events = /* @__PURE__ */ Object.create(null) : (delete r3[e2], r3.removeListener && this.emit("removeListener", e2, n3.listener || t3));
|
|
945
|
-
else if ("function" != typeof n3) {
|
|
946
|
-
for (o2 = -1, d2 = n3.length - 1; 0 <= d2; d2--) if (n3[d2] === t3 || n3[d2].listener === t3) {
|
|
947
|
-
s2 = n3[d2].listener, o2 = d2;
|
|
948
|
-
break;
|
|
949
|
-
}
|
|
950
|
-
if (0 > o2) return this;
|
|
951
|
-
0 === o2 ? n3.shift() : p(n3, o2), 1 === n3.length && (r3[e2] = n3[0]), void 0 !== r3.removeListener && this.emit("removeListener", e2, s2 || t3);
|
|
952
|
-
}
|
|
953
|
-
return this;
|
|
954
|
-
}, r2.prototype.off = r2.prototype.removeListener, r2.prototype.removeAllListeners = function(e2) {
|
|
955
|
-
var t3, n3, r3;
|
|
956
|
-
if (n3 = this._events, void 0 === n3) return this;
|
|
957
|
-
if (void 0 === n3.removeListener) return 0 === arguments.length ? (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0) : void 0 !== n3[e2] && (0 == --this._eventsCount ? this._events = /* @__PURE__ */ Object.create(null) : delete n3[e2]), this;
|
|
958
|
-
if (0 === arguments.length) {
|
|
959
|
-
var a2, o2 = Object.keys(n3);
|
|
960
|
-
for (r3 = 0; r3 < o2.length; ++r3) a2 = o2[r3], "removeListener" !== a2 && this.removeAllListeners(a2);
|
|
961
|
-
return this.removeAllListeners("removeListener"), this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0, this;
|
|
962
|
-
}
|
|
963
|
-
if (t3 = n3[e2], "function" == typeof t3) this.removeListener(e2, t3);
|
|
964
|
-
else if (void 0 !== t3) for (r3 = t3.length - 1; 0 <= r3; r3--) this.removeListener(e2, t3[r3]);
|
|
965
|
-
return this;
|
|
966
|
-
}, r2.prototype.listeners = function(e2) {
|
|
967
|
-
return l(this, e2, true);
|
|
968
|
-
}, r2.prototype.rawListeners = function(e2) {
|
|
969
|
-
return l(this, e2, false);
|
|
970
|
-
}, r2.listenerCount = function(e2, t3) {
|
|
971
|
-
return "function" == typeof e2.listenerCount ? e2.listenerCount(t3) : c.call(e2, t3);
|
|
972
|
-
}, r2.prototype.listenerCount = c, r2.prototype.eventNames = function() {
|
|
973
|
-
return 0 < this._eventsCount ? h(this._events) : [];
|
|
974
|
-
};
|
|
975
|
-
}, {}], 8: [function(e, t2) {
|
|
976
|
-
t2.exports = function() {
|
|
977
|
-
if ("undefined" == typeof globalThis) return null;
|
|
978
|
-
var e2 = { RTCPeerConnection: globalThis.RTCPeerConnection || globalThis.mozRTCPeerConnection || globalThis.webkitRTCPeerConnection, RTCSessionDescription: globalThis.RTCSessionDescription || globalThis.mozRTCSessionDescription || globalThis.webkitRTCSessionDescription, RTCIceCandidate: globalThis.RTCIceCandidate || globalThis.mozRTCIceCandidate || globalThis.webkitRTCIceCandidate };
|
|
979
|
-
return e2.RTCPeerConnection ? e2 : null;
|
|
980
|
-
};
|
|
981
|
-
}, {}], 9: [function(e, a, o) {
|
|
982
|
-
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
983
|
-
o.read = function(t2, n2, a2, o2, l) {
|
|
984
|
-
var c, u, p = 8 * l - o2 - 1, f = (1 << p) - 1, g = f >> 1, _ = -7, h = a2 ? l - 1 : 0, b = a2 ? -1 : 1, d = t2[n2 + h];
|
|
985
|
-
for (h += b, c = d & (1 << -_) - 1, d >>= -_, _ += p; 0 < _; c = 256 * c + t2[n2 + h], h += b, _ -= 8) ;
|
|
986
|
-
for (u = c & (1 << -_) - 1, c >>= -_, _ += o2; 0 < _; u = 256 * u + t2[n2 + h], h += b, _ -= 8) ;
|
|
987
|
-
if (0 === c) c = 1 - g;
|
|
988
|
-
else {
|
|
989
|
-
if (c === f) return u ? NaN : (d ? -1 : 1) * (1 / 0);
|
|
990
|
-
u += r(2, o2), c -= g;
|
|
991
|
-
}
|
|
992
|
-
return (d ? -1 : 1) * u * r(2, c - o2);
|
|
993
|
-
}, o.write = function(a2, o2, l, u, p, f) {
|
|
994
|
-
var h, b, y, g = Math.LN2, _ = Math.log, C = 8 * f - p - 1, R = (1 << C) - 1, E = R >> 1, w = 23 === p ? r(2, -24) - r(2, -77) : 0, S = u ? 0 : f - 1, T = u ? 1 : -1, d = 0 > o2 || 0 === o2 && 0 > 1 / o2 ? 1 : 0;
|
|
995
|
-
for (o2 = n(o2), isNaN(o2) || o2 === 1 / 0 ? (b = isNaN(o2) ? 1 : 0, h = R) : (h = t(_(o2) / g), 1 > o2 * (y = r(2, -h)) && (h--, y *= 2), o2 += 1 <= h + E ? w / y : w * r(2, 1 - E), 2 <= o2 * y && (h++, y /= 2), h + E >= R ? (b = 0, h = R) : 1 <= h + E ? (b = (o2 * y - 1) * r(2, p), h += E) : (b = o2 * r(2, E - 1) * r(2, p), h = 0)); 8 <= p; a2[l + S] = 255 & b, S += T, b /= 256, p -= 8) ;
|
|
996
|
-
for (h = h << p | b, C += p; 0 < C; a2[l + S] = 255 & h, S += T, h /= 256, C -= 8) ;
|
|
997
|
-
a2[l + S - T] |= 128 * d;
|
|
998
|
-
};
|
|
999
|
-
}, {}], 10: [function(e, t2) {
|
|
1000
|
-
t2.exports = "function" == typeof Object.create ? function(e2, t3) {
|
|
1001
|
-
t3 && (e2.super_ = t3, e2.prototype = Object.create(t3.prototype, { constructor: { value: e2, enumerable: false, writable: true, configurable: true } }));
|
|
1002
|
-
} : function(e2, t3) {
|
|
1003
|
-
if (t3) {
|
|
1004
|
-
e2.super_ = t3;
|
|
1005
|
-
var n2 = function() {
|
|
1006
|
-
};
|
|
1007
|
-
n2.prototype = t3.prototype, e2.prototype = new n2(), e2.prototype.constructor = e2;
|
|
1008
|
-
}
|
|
1009
|
-
};
|
|
1010
|
-
}, {}], 11: [function(e, t2) {
|
|
1011
|
-
var r2 = Math.round;
|
|
1012
|
-
function a(e2) {
|
|
1013
|
-
if (e2 += "", !(100 < e2.length)) {
|
|
1014
|
-
var t3 = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e2);
|
|
1015
|
-
if (t3) {
|
|
1016
|
-
var r3 = parseFloat(t3[1]), n2 = (t3[2] || "ms").toLowerCase();
|
|
1017
|
-
return "years" === n2 || "year" === n2 || "yrs" === n2 || "yr" === n2 || "y" === n2 ? 315576e5 * r3 : "weeks" === n2 || "week" === n2 || "w" === n2 ? 6048e5 * r3 : "days" === n2 || "day" === n2 || "d" === n2 ? 864e5 * r3 : "hours" === n2 || "hour" === n2 || "hrs" === n2 || "hr" === n2 || "h" === n2 ? 36e5 * r3 : "minutes" === n2 || "minute" === n2 || "mins" === n2 || "min" === n2 || "m" === n2 ? 6e4 * r3 : "seconds" === n2 || "second" === n2 || "secs" === n2 || "sec" === n2 || "s" === n2 ? 1e3 * r3 : "milliseconds" === n2 || "millisecond" === n2 || "msecs" === n2 || "msec" === n2 || "ms" === n2 ? r3 : void 0;
|
|
1018
|
-
}
|
|
1019
|
-
}
|
|
1020
|
-
}
|
|
1021
|
-
function o(e2) {
|
|
1022
|
-
var t3 = n(e2);
|
|
1023
|
-
return 864e5 <= t3 ? r2(e2 / 864e5) + "d" : 36e5 <= t3 ? r2(e2 / 36e5) + "h" : 6e4 <= t3 ? r2(e2 / 6e4) + "m" : 1e3 <= t3 ? r2(e2 / 1e3) + "s" : e2 + "ms";
|
|
1024
|
-
}
|
|
1025
|
-
function i(e2) {
|
|
1026
|
-
var t3 = n(e2);
|
|
1027
|
-
return 864e5 <= t3 ? s(e2, t3, 864e5, "day") : 36e5 <= t3 ? s(e2, t3, 36e5, "hour") : 6e4 <= t3 ? s(e2, t3, 6e4, "minute") : 1e3 <= t3 ? s(e2, t3, 1e3, "second") : e2 + " ms";
|
|
1028
|
-
}
|
|
1029
|
-
function s(e2, t3, a2, n2) {
|
|
1030
|
-
return r2(e2 / a2) + " " + n2 + (t3 >= 1.5 * a2 ? "s" : "");
|
|
1031
|
-
}
|
|
1032
|
-
var l = 24 * (60 * 6e4);
|
|
1033
|
-
t2.exports = function(e2, t3) {
|
|
1034
|
-
t3 = t3 || {};
|
|
1035
|
-
var n2 = typeof e2;
|
|
1036
|
-
if ("string" == n2 && 0 < e2.length) return a(e2);
|
|
1037
|
-
if ("number" === n2 && isFinite(e2)) return t3.long ? i(e2) : o(e2);
|
|
1038
|
-
throw new Error("val is not a non-empty string or a valid number. val=" + JSON.stringify(e2));
|
|
1039
|
-
};
|
|
1040
|
-
}, {}], 12: [function(e, t2) {
|
|
1041
|
-
function n2() {
|
|
1042
|
-
throw new Error("setTimeout has not been defined");
|
|
1043
|
-
}
|
|
1044
|
-
function r2() {
|
|
1045
|
-
throw new Error("clearTimeout has not been defined");
|
|
1046
|
-
}
|
|
1047
|
-
function a(t3) {
|
|
1048
|
-
if (c === setTimeout) return setTimeout(t3, 0);
|
|
1049
|
-
if ((c === n2 || !c) && setTimeout) return c = setTimeout, setTimeout(t3, 0);
|
|
1050
|
-
try {
|
|
1051
|
-
return c(t3, 0);
|
|
1052
|
-
} catch (n3) {
|
|
1053
|
-
try {
|
|
1054
|
-
return c.call(null, t3, 0);
|
|
1055
|
-
} catch (n4) {
|
|
1056
|
-
return c.call(this, t3, 0);
|
|
1057
|
-
}
|
|
1058
|
-
}
|
|
1059
|
-
}
|
|
1060
|
-
function o(t3) {
|
|
1061
|
-
if (u === clearTimeout) return clearTimeout(t3);
|
|
1062
|
-
if ((u === r2 || !u) && clearTimeout) return u = clearTimeout, clearTimeout(t3);
|
|
1063
|
-
try {
|
|
1064
|
-
return u(t3);
|
|
1065
|
-
} catch (n3) {
|
|
1066
|
-
try {
|
|
1067
|
-
return u.call(null, t3);
|
|
1068
|
-
} catch (n4) {
|
|
1069
|
-
return u.call(this, t3);
|
|
1070
|
-
}
|
|
1071
|
-
}
|
|
1072
|
-
}
|
|
1073
|
-
function i() {
|
|
1074
|
-
_ && f && (_ = false, f.length ? g = f.concat(g) : h = -1, g.length && d());
|
|
1075
|
-
}
|
|
1076
|
-
function d() {
|
|
1077
|
-
if (!_) {
|
|
1078
|
-
var e2 = a(i);
|
|
1079
|
-
_ = true;
|
|
1080
|
-
for (var t3 = g.length; t3; ) {
|
|
1081
|
-
for (f = g, g = []; ++h < t3; ) f && f[h].run();
|
|
1082
|
-
h = -1, t3 = g.length;
|
|
1083
|
-
}
|
|
1084
|
-
f = null, _ = false, o(e2);
|
|
1085
|
-
}
|
|
1086
|
-
}
|
|
1087
|
-
function s(e2, t3) {
|
|
1088
|
-
this.fun = e2, this.array = t3;
|
|
1089
|
-
}
|
|
1090
|
-
function l() {
|
|
1091
|
-
}
|
|
1092
|
-
var c, u, p = t2.exports = {};
|
|
1093
|
-
(function() {
|
|
1094
|
-
try {
|
|
1095
|
-
c = "function" == typeof setTimeout ? setTimeout : n2;
|
|
1096
|
-
} catch (t3) {
|
|
1097
|
-
c = n2;
|
|
1098
|
-
}
|
|
1099
|
-
try {
|
|
1100
|
-
u = "function" == typeof clearTimeout ? clearTimeout : r2;
|
|
1101
|
-
} catch (t3) {
|
|
1102
|
-
u = r2;
|
|
1103
|
-
}
|
|
1104
|
-
})();
|
|
1105
|
-
var f, g = [], _ = false, h = -1;
|
|
1106
|
-
p.nextTick = function(e2) {
|
|
1107
|
-
var t3 = Array(arguments.length - 1);
|
|
1108
|
-
if (1 < arguments.length) for (var n3 = 1; n3 < arguments.length; n3++) t3[n3 - 1] = arguments[n3];
|
|
1109
|
-
g.push(new s(e2, t3)), 1 !== g.length || _ || a(d);
|
|
1110
|
-
}, s.prototype.run = function() {
|
|
1111
|
-
this.fun.apply(null, this.array);
|
|
1112
|
-
}, p.title = "browser", p.browser = true, p.env = {}, p.argv = [], p.version = "", p.versions = {}, p.on = l, p.addListener = l, p.once = l, p.off = l, p.removeListener = l, p.removeAllListeners = l, p.emit = l, p.prependListener = l, p.prependOnceListener = l, p.listeners = function() {
|
|
1113
|
-
return [];
|
|
1114
|
-
}, p.binding = function() {
|
|
1115
|
-
throw new Error("process.binding is not supported");
|
|
1116
|
-
}, p.cwd = function() {
|
|
1117
|
-
return "/";
|
|
1118
|
-
}, p.chdir = function() {
|
|
1119
|
-
throw new Error("process.chdir is not supported");
|
|
1120
|
-
}, p.umask = function() {
|
|
1121
|
-
return 0;
|
|
1122
|
-
};
|
|
1123
|
-
}, {}], 13: [function(e, t2) {
|
|
1124
|
-
(function(e2) {
|
|
1125
|
-
(function() {
|
|
1126
|
-
/*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
1127
|
-
let n2;
|
|
1128
|
-
t2.exports = "function" == typeof queueMicrotask ? queueMicrotask.bind("undefined" == typeof window ? e2 : window) : (e3) => (n2 || (n2 = Promise.resolve())).then(e3).catch((e4) => setTimeout(() => {
|
|
1129
|
-
throw e4;
|
|
1130
|
-
}, 0));
|
|
1131
|
-
}).call(this);
|
|
1132
|
-
}).call(this, "undefined" == typeof _commonjsHelpers.commonjsGlobal ? "undefined" == typeof self ? "undefined" == typeof window ? {} : window : self : _commonjsHelpers.commonjsGlobal);
|
|
1133
|
-
}, {}], 14: [function(e, t2) {
|
|
1134
|
-
(function(n2, r2) {
|
|
1135
|
-
(function() {
|
|
1136
|
-
"use strict";
|
|
1137
|
-
var a = e("safe-buffer").Buffer, o = r2.crypto || r2.msCrypto;
|
|
1138
|
-
t2.exports = o && o.getRandomValues ? function(e2, t3) {
|
|
1139
|
-
if (e2 > 4294967295) throw new RangeError("requested too many random bytes");
|
|
1140
|
-
var r3 = a.allocUnsafe(e2);
|
|
1141
|
-
if (0 < e2) if (65536 < e2) for (var i = 0; i < e2; i += 65536) o.getRandomValues(r3.slice(i, i + 65536));
|
|
1142
|
-
else o.getRandomValues(r3);
|
|
1143
|
-
return "function" == typeof t3 ? n2.nextTick(function() {
|
|
1144
|
-
t3(null, r3);
|
|
1145
|
-
}) : r3;
|
|
1146
|
-
} : function() {
|
|
1147
|
-
throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11");
|
|
1148
|
-
};
|
|
1149
|
-
}).call(this);
|
|
1150
|
-
}).call(this, e("_process"), "undefined" == typeof _commonjsHelpers.commonjsGlobal ? "undefined" == typeof self ? "undefined" == typeof window ? {} : window : self : _commonjsHelpers.commonjsGlobal);
|
|
1151
|
-
}, { _process: 12, "safe-buffer": 30 }], 15: [function(e, t2) {
|
|
1152
|
-
"use strict";
|
|
1153
|
-
function n2(e2, t3) {
|
|
1154
|
-
e2.prototype = Object.create(t3.prototype), e2.prototype.constructor = e2, e2.__proto__ = t3;
|
|
1155
|
-
}
|
|
1156
|
-
function r2(e2, t3, r3) {
|
|
1157
|
-
function a2(e3, n3, r4) {
|
|
1158
|
-
return "string" == typeof t3 ? t3 : t3(e3, n3, r4);
|
|
1159
|
-
}
|
|
1160
|
-
r3 || (r3 = Error);
|
|
1161
|
-
var o2 = function(e3) {
|
|
1162
|
-
function t4(t5, n3, r4) {
|
|
1163
|
-
return e3.call(this, a2(t5, n3, r4)) || this;
|
|
1164
|
-
}
|
|
1165
|
-
return n2(t4, e3), t4;
|
|
1166
|
-
}(r3);
|
|
1167
|
-
o2.prototype.name = r3.name, o2.prototype.code = e2, s[e2] = o2;
|
|
1168
|
-
}
|
|
1169
|
-
function a(e2, t3) {
|
|
1170
|
-
if (Array.isArray(e2)) {
|
|
1171
|
-
var n3 = e2.length;
|
|
1172
|
-
return e2 = e2.map(function(e3) {
|
|
1173
|
-
return e3 + "";
|
|
1174
|
-
}), 2 < n3 ? "one of ".concat(t3, " ").concat(e2.slice(0, n3 - 1).join(", "), ", or ") + e2[n3 - 1] : 2 === n3 ? "one of ".concat(t3, " ").concat(e2[0], " or ").concat(e2[1]) : "of ".concat(t3, " ").concat(e2[0]);
|
|
1175
|
-
}
|
|
1176
|
-
return "of ".concat(t3, " ").concat(e2 + "");
|
|
1177
|
-
}
|
|
1178
|
-
function o(e2, t3, n3) {
|
|
1179
|
-
return e2.substr(!n3 || 0 > n3 ? 0 : +n3, t3.length) === t3;
|
|
1180
|
-
}
|
|
1181
|
-
function i(e2, t3, n3) {
|
|
1182
|
-
return (void 0 === n3 || n3 > e2.length) && (n3 = e2.length), e2.substring(n3 - t3.length, n3) === t3;
|
|
1183
|
-
}
|
|
1184
|
-
function d(e2, t3, n3) {
|
|
1185
|
-
return "number" != typeof n3 && (n3 = 0), !(n3 + t3.length > e2.length) && -1 !== e2.indexOf(t3, n3);
|
|
1186
|
-
}
|
|
1187
|
-
var s = {};
|
|
1188
|
-
r2("ERR_INVALID_OPT_VALUE", function(e2, t3) {
|
|
1189
|
-
return 'The value "' + t3 + '" is invalid for option "' + e2 + '"';
|
|
1190
|
-
}, TypeError), r2("ERR_INVALID_ARG_TYPE", function(e2, t3, n3) {
|
|
1191
|
-
var r3;
|
|
1192
|
-
"string" == typeof t3 && o(t3, "not ") ? (r3 = "must not be", t3 = t3.replace(/^not /, "")) : r3 = "must be";
|
|
1193
|
-
var s2;
|
|
1194
|
-
if (i(e2, " argument")) s2 = "The ".concat(e2, " ").concat(r3, " ").concat(a(t3, "type"));
|
|
1195
|
-
else {
|
|
1196
|
-
var l = d(e2, ".") ? "property" : "argument";
|
|
1197
|
-
s2 = 'The "'.concat(e2, '" ').concat(l, " ").concat(r3, " ").concat(a(t3, "type"));
|
|
1198
|
-
}
|
|
1199
|
-
return s2 += ". Received type ".concat(typeof n3), s2;
|
|
1200
|
-
}, TypeError), r2("ERR_STREAM_PUSH_AFTER_EOF", "stream.push() after EOF"), r2("ERR_METHOD_NOT_IMPLEMENTED", function(e2) {
|
|
1201
|
-
return "The " + e2 + " method is not implemented";
|
|
1202
|
-
}), r2("ERR_STREAM_PREMATURE_CLOSE", "Premature close"), r2("ERR_STREAM_DESTROYED", function(e2) {
|
|
1203
|
-
return "Cannot call " + e2 + " after a stream was destroyed";
|
|
1204
|
-
}), r2("ERR_MULTIPLE_CALLBACK", "Callback called multiple times"), r2("ERR_STREAM_CANNOT_PIPE", "Cannot pipe, not readable"), r2("ERR_STREAM_WRITE_AFTER_END", "write after end"), r2("ERR_STREAM_NULL_VALUES", "May not write null values to stream", TypeError), r2("ERR_UNKNOWN_ENCODING", function(e2) {
|
|
1205
|
-
return "Unknown encoding: " + e2;
|
|
1206
|
-
}, TypeError), r2("ERR_STREAM_UNSHIFT_AFTER_END_EVENT", "stream.unshift() after end event"), t2.exports.codes = s;
|
|
1207
|
-
}, {}], 16: [function(e, t2) {
|
|
1208
|
-
(function(n2) {
|
|
1209
|
-
(function() {
|
|
1210
|
-
"use strict";
|
|
1211
|
-
function r2(e2) {
|
|
1212
|
-
return this instanceof r2 ? void (d.call(this, e2), s.call(this, e2), this.allowHalfOpen = true, e2 && (false === e2.readable && (this.readable = false), false === e2.writable && (this.writable = false), false === e2.allowHalfOpen && (this.allowHalfOpen = false, this.once("end", a)))) : new r2(e2);
|
|
1213
|
-
}
|
|
1214
|
-
function a() {
|
|
1215
|
-
this._writableState.ended || n2.nextTick(o, this);
|
|
1216
|
-
}
|
|
1217
|
-
function o(e2) {
|
|
1218
|
-
e2.end();
|
|
1219
|
-
}
|
|
1220
|
-
var i = Object.keys || function(e2) {
|
|
1221
|
-
var t3 = [];
|
|
1222
|
-
for (var n3 in e2) t3.push(n3);
|
|
1223
|
-
return t3;
|
|
1224
|
-
};
|
|
1225
|
-
t2.exports = r2;
|
|
1226
|
-
var d = e("./_stream_readable"), s = e("./_stream_writable");
|
|
1227
|
-
e("inherits")(r2, d);
|
|
1228
|
-
for (var l, c = i(s.prototype), u = 0; u < c.length; u++) l = c[u], r2.prototype[l] || (r2.prototype[l] = s.prototype[l]);
|
|
1229
|
-
Object.defineProperty(r2.prototype, "writableHighWaterMark", { enumerable: false, get: function() {
|
|
1230
|
-
return this._writableState.highWaterMark;
|
|
1231
|
-
} }), Object.defineProperty(r2.prototype, "writableBuffer", { enumerable: false, get: function() {
|
|
1232
|
-
return this._writableState && this._writableState.getBuffer();
|
|
1233
|
-
} }), Object.defineProperty(r2.prototype, "writableLength", { enumerable: false, get: function() {
|
|
1234
|
-
return this._writableState.length;
|
|
1235
|
-
} }), Object.defineProperty(r2.prototype, "destroyed", { enumerable: false, get: function() {
|
|
1236
|
-
return void 0 !== this._readableState && void 0 !== this._writableState && this._readableState.destroyed && this._writableState.destroyed;
|
|
1237
|
-
}, set: function(e2) {
|
|
1238
|
-
void 0 === this._readableState || void 0 === this._writableState || (this._readableState.destroyed = e2, this._writableState.destroyed = e2);
|
|
1239
|
-
} });
|
|
1240
|
-
}).call(this);
|
|
1241
|
-
}).call(this, e("_process"));
|
|
1242
|
-
}, { "./_stream_readable": 18, "./_stream_writable": 20, _process: 12, inherits: 10 }], 17: [function(e, t2) {
|
|
1243
|
-
"use strict";
|
|
1244
|
-
function n2(e2) {
|
|
1245
|
-
return this instanceof n2 ? void r2.call(this, e2) : new n2(e2);
|
|
1246
|
-
}
|
|
1247
|
-
t2.exports = n2;
|
|
1248
|
-
var r2 = e("./_stream_transform");
|
|
1249
|
-
e("inherits")(n2, r2), n2.prototype._transform = function(e2, t3, n3) {
|
|
1250
|
-
n3(null, e2);
|
|
1251
|
-
};
|
|
1252
|
-
}, { "./_stream_transform": 19, inherits: 10 }], 18: [function(e, t2) {
|
|
1253
|
-
(function(n2, r2) {
|
|
1254
|
-
(function() {
|
|
1255
|
-
"use strict";
|
|
1256
|
-
function a(e2) {
|
|
1257
|
-
return P.from(e2);
|
|
1258
|
-
}
|
|
1259
|
-
function o(e2) {
|
|
1260
|
-
return P.isBuffer(e2) || e2 instanceof M;
|
|
1261
|
-
}
|
|
1262
|
-
function i(e2, t3, n3) {
|
|
1263
|
-
return "function" == typeof e2.prependListener ? e2.prependListener(t3, n3) : void (e2._events && e2._events[t3] ? Array.isArray(e2._events[t3]) ? e2._events[t3].unshift(n3) : e2._events[t3] = [n3, e2._events[t3]] : e2.on(t3, n3));
|
|
1264
|
-
}
|
|
1265
|
-
function d(t3, n3, r3) {
|
|
1266
|
-
A = A || e("./_stream_duplex"), t3 = t3 || {}, "boolean" != typeof r3 && (r3 = n3 instanceof A), this.objectMode = !!t3.objectMode, r3 && (this.objectMode = this.objectMode || !!t3.readableObjectMode), this.highWaterMark = H(this, t3, "readableHighWaterMark", r3), this.buffer = new j(), this.length = 0, this.pipes = null, this.pipesCount = 0, this.flowing = null, this.ended = false, this.endEmitted = false, this.reading = false, this.sync = true, this.needReadable = false, this.emittedReadable = false, this.readableListening = false, this.resumeScheduled = false, this.paused = true, this.emitClose = false !== t3.emitClose, this.autoDestroy = !!t3.autoDestroy, this.destroyed = false, this.defaultEncoding = t3.defaultEncoding || "utf8", this.awaitDrain = 0, this.readingMore = false, this.decoder = null, this.encoding = null, t3.encoding && (!F && (F = e("string_decoder/").StringDecoder), this.decoder = new F(t3.encoding), this.encoding = t3.encoding);
|
|
1267
|
-
}
|
|
1268
|
-
function s(t3) {
|
|
1269
|
-
if (A = A || e("./_stream_duplex"), !(this instanceof s)) return new s(t3);
|
|
1270
|
-
var n3 = this instanceof A;
|
|
1271
|
-
this._readableState = new d(t3, this, n3), this.readable = true, t3 && ("function" == typeof t3.read && (this._read = t3.read), "function" == typeof t3.destroy && (this._destroy = t3.destroy)), I.call(this);
|
|
1272
|
-
}
|
|
1273
|
-
function l(e2, t3, n3, r3, o2) {
|
|
1274
|
-
x("readableAddChunk", t3);
|
|
1275
|
-
var i2 = e2._readableState;
|
|
1276
|
-
if (null === t3) i2.reading = false, g(e2, i2);
|
|
1277
|
-
else {
|
|
1278
|
-
var d2;
|
|
1279
|
-
if (o2 || (d2 = u(i2, t3)), d2) X(e2, d2);
|
|
1280
|
-
else if (!(i2.objectMode || t3 && 0 < t3.length)) r3 || (i2.reading = false, m(e2, i2));
|
|
1281
|
-
else if ("string" == typeof t3 || i2.objectMode || Object.getPrototypeOf(t3) === P.prototype || (t3 = a(t3)), r3) i2.endEmitted ? X(e2, new K()) : c(e2, i2, t3, true);
|
|
1282
|
-
else if (i2.ended) X(e2, new z());
|
|
1283
|
-
else {
|
|
1284
|
-
if (i2.destroyed) return false;
|
|
1285
|
-
i2.reading = false, i2.decoder && !n3 ? (t3 = i2.decoder.write(t3), i2.objectMode || 0 !== t3.length ? c(e2, i2, t3, false) : m(e2, i2)) : c(e2, i2, t3, false);
|
|
1286
|
-
}
|
|
1287
|
-
}
|
|
1288
|
-
return !i2.ended && (i2.length < i2.highWaterMark || 0 === i2.length);
|
|
1289
|
-
}
|
|
1290
|
-
function c(e2, t3, n3, r3) {
|
|
1291
|
-
t3.flowing && 0 === t3.length && !t3.sync ? (t3.awaitDrain = 0, e2.emit("data", n3)) : (t3.length += t3.objectMode ? 1 : n3.length, r3 ? t3.buffer.unshift(n3) : t3.buffer.push(n3), t3.needReadable && _(e2)), m(e2, t3);
|
|
1292
|
-
}
|
|
1293
|
-
function u(e2, t3) {
|
|
1294
|
-
var n3;
|
|
1295
|
-
return o(t3) || "string" == typeof t3 || void 0 === t3 || e2.objectMode || (n3 = new V("chunk", ["string", "Buffer", "Uint8Array"], t3)), n3;
|
|
1296
|
-
}
|
|
1297
|
-
function p(e2) {
|
|
1298
|
-
return 1073741824 <= e2 ? e2 = 1073741824 : (e2--, e2 |= e2 >>> 1, e2 |= e2 >>> 2, e2 |= e2 >>> 4, e2 |= e2 >>> 8, e2 |= e2 >>> 16, e2++), e2;
|
|
1299
|
-
}
|
|
1300
|
-
function f(e2, t3) {
|
|
1301
|
-
return 0 >= e2 || 0 === t3.length && t3.ended ? 0 : t3.objectMode ? 1 : e2 === e2 ? (e2 > t3.highWaterMark && (t3.highWaterMark = p(e2)), e2 <= t3.length ? e2 : t3.ended ? t3.length : (t3.needReadable = true, 0)) : t3.flowing && t3.length ? t3.buffer.head.data.length : t3.length;
|
|
1302
|
-
}
|
|
1303
|
-
function g(e2, t3) {
|
|
1304
|
-
if (x("onEofChunk"), !t3.ended) {
|
|
1305
|
-
if (t3.decoder) {
|
|
1306
|
-
var n3 = t3.decoder.end();
|
|
1307
|
-
n3 && n3.length && (t3.buffer.push(n3), t3.length += t3.objectMode ? 1 : n3.length);
|
|
1308
|
-
}
|
|
1309
|
-
t3.ended = true, t3.sync ? _(e2) : (t3.needReadable = false, !t3.emittedReadable && (t3.emittedReadable = true, h(e2)));
|
|
1310
|
-
}
|
|
1311
|
-
}
|
|
1312
|
-
function _(e2) {
|
|
1313
|
-
var t3 = e2._readableState;
|
|
1314
|
-
x("emitReadable", t3.needReadable, t3.emittedReadable), t3.needReadable = false, t3.emittedReadable || (x("emitReadable", t3.flowing), t3.emittedReadable = true, n2.nextTick(h, e2));
|
|
1315
|
-
}
|
|
1316
|
-
function h(e2) {
|
|
1317
|
-
var t3 = e2._readableState;
|
|
1318
|
-
x("emitReadable_", t3.destroyed, t3.length, t3.ended), !t3.destroyed && (t3.length || t3.ended) && (e2.emit("readable"), t3.emittedReadable = false), t3.needReadable = !t3.flowing && !t3.ended && t3.length <= t3.highWaterMark, S(e2);
|
|
1319
|
-
}
|
|
1320
|
-
function m(e2, t3) {
|
|
1321
|
-
t3.readingMore || (t3.readingMore = true, n2.nextTick(b, e2, t3));
|
|
1322
|
-
}
|
|
1323
|
-
function b(e2, t3) {
|
|
1324
|
-
for (; !t3.reading && !t3.ended && (t3.length < t3.highWaterMark || t3.flowing && 0 === t3.length); ) {
|
|
1325
|
-
var n3 = t3.length;
|
|
1326
|
-
if (x("maybeReadMore read 0"), e2.read(0), n3 === t3.length) break;
|
|
1327
|
-
}
|
|
1328
|
-
t3.readingMore = false;
|
|
1329
|
-
}
|
|
1330
|
-
function y(e2) {
|
|
1331
|
-
return function() {
|
|
1332
|
-
var t3 = e2._readableState;
|
|
1333
|
-
x("pipeOnDrain", t3.awaitDrain), t3.awaitDrain && t3.awaitDrain--, 0 === t3.awaitDrain && D(e2, "data") && (t3.flowing = true, S(e2));
|
|
1334
|
-
};
|
|
1335
|
-
}
|
|
1336
|
-
function C(e2) {
|
|
1337
|
-
var t3 = e2._readableState;
|
|
1338
|
-
t3.readableListening = 0 < e2.listenerCount("readable"), t3.resumeScheduled && !t3.paused ? t3.flowing = true : 0 < e2.listenerCount("data") && e2.resume();
|
|
1339
|
-
}
|
|
1340
|
-
function R(e2) {
|
|
1341
|
-
x("readable nexttick read 0"), e2.read(0);
|
|
1342
|
-
}
|
|
1343
|
-
function E(e2, t3) {
|
|
1344
|
-
t3.resumeScheduled || (t3.resumeScheduled = true, n2.nextTick(w, e2, t3));
|
|
1345
|
-
}
|
|
1346
|
-
function w(e2, t3) {
|
|
1347
|
-
x("resume", t3.reading), t3.reading || e2.read(0), t3.resumeScheduled = false, e2.emit("resume"), S(e2), t3.flowing && !t3.reading && e2.read(0);
|
|
1348
|
-
}
|
|
1349
|
-
function S(e2) {
|
|
1350
|
-
var t3 = e2._readableState;
|
|
1351
|
-
for (x("flow", t3.flowing); t3.flowing && null !== e2.read(); ) ;
|
|
1352
|
-
}
|
|
1353
|
-
function T(e2, t3) {
|
|
1354
|
-
if (0 === t3.length) return null;
|
|
1355
|
-
var n3;
|
|
1356
|
-
return t3.objectMode ? n3 = t3.buffer.shift() : !e2 || e2 >= t3.length ? (n3 = t3.decoder ? t3.buffer.join("") : 1 === t3.buffer.length ? t3.buffer.first() : t3.buffer.concat(t3.length), t3.buffer.clear()) : n3 = t3.buffer.consume(e2, t3.decoder), n3;
|
|
1357
|
-
}
|
|
1358
|
-
function v(e2) {
|
|
1359
|
-
var t3 = e2._readableState;
|
|
1360
|
-
x("endReadable", t3.endEmitted), t3.endEmitted || (t3.ended = true, n2.nextTick(k, t3, e2));
|
|
1361
|
-
}
|
|
1362
|
-
function k(e2, t3) {
|
|
1363
|
-
if (x("endReadableNT", e2.endEmitted, e2.length), !e2.endEmitted && 0 === e2.length && (e2.endEmitted = true, t3.readable = false, t3.emit("end"), e2.autoDestroy)) {
|
|
1364
|
-
var n3 = t3._writableState;
|
|
1365
|
-
(!n3 || n3.autoDestroy && n3.finished) && t3.destroy();
|
|
1366
|
-
}
|
|
1367
|
-
}
|
|
1368
|
-
function L(e2, t3) {
|
|
1369
|
-
for (var n3 = 0, r3 = e2.length; n3 < r3; n3++) if (e2[n3] === t3) return n3;
|
|
1370
|
-
return -1;
|
|
1371
|
-
}
|
|
1372
|
-
t2.exports = s;
|
|
1373
|
-
var A;
|
|
1374
|
-
s.ReadableState = d;
|
|
1375
|
-
var x, N = e("events").EventEmitter, D = function(e2, t3) {
|
|
1376
|
-
return e2.listeners(t3).length;
|
|
1377
|
-
}, I = e("./internal/streams/stream"), P = e("buffer").Buffer, M = r2.Uint8Array || function() {
|
|
1378
|
-
}, O = e("util");
|
|
1379
|
-
x = O && O.debuglog ? O.debuglog("stream") : function() {
|
|
1380
|
-
};
|
|
1381
|
-
var F, B, U, j = e("./internal/streams/buffer_list"), q = e("./internal/streams/destroy"), W = e("./internal/streams/state"), H = W.getHighWaterMark, Y = e("../errors").codes, V = Y.ERR_INVALID_ARG_TYPE, z = Y.ERR_STREAM_PUSH_AFTER_EOF, G = Y.ERR_METHOD_NOT_IMPLEMENTED, K = Y.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;
|
|
1382
|
-
e("inherits")(s, I);
|
|
1383
|
-
var X = q.errorOrDestroy, $ = ["error", "close", "destroy", "pause", "resume"];
|
|
1384
|
-
Object.defineProperty(s.prototype, "destroyed", { enumerable: false, get: function() {
|
|
1385
|
-
return void 0 !== this._readableState && this._readableState.destroyed;
|
|
1386
|
-
}, set: function(e2) {
|
|
1387
|
-
this._readableState && (this._readableState.destroyed = e2);
|
|
1388
|
-
} }), s.prototype.destroy = q.destroy, s.prototype._undestroy = q.undestroy, s.prototype._destroy = function(e2, t3) {
|
|
1389
|
-
t3(e2);
|
|
1390
|
-
}, s.prototype.push = function(e2, t3) {
|
|
1391
|
-
var n3, r3 = this._readableState;
|
|
1392
|
-
return r3.objectMode ? n3 = true : "string" == typeof e2 && (t3 = t3 || r3.defaultEncoding, t3 !== r3.encoding && (e2 = P.from(e2, t3), t3 = ""), n3 = true), l(this, e2, t3, false, n3);
|
|
1393
|
-
}, s.prototype.unshift = function(e2) {
|
|
1394
|
-
return l(this, e2, null, true, false);
|
|
1395
|
-
}, s.prototype.isPaused = function() {
|
|
1396
|
-
return false === this._readableState.flowing;
|
|
1397
|
-
}, s.prototype.setEncoding = function(t3) {
|
|
1398
|
-
F || (F = e("string_decoder/").StringDecoder);
|
|
1399
|
-
var n3 = new F(t3);
|
|
1400
|
-
this._readableState.decoder = n3, this._readableState.encoding = this._readableState.decoder.encoding;
|
|
1401
|
-
for (var r3 = this._readableState.buffer.head, a2 = ""; null !== r3; ) a2 += n3.write(r3.data), r3 = r3.next;
|
|
1402
|
-
return this._readableState.buffer.clear(), "" !== a2 && this._readableState.buffer.push(a2), this._readableState.length = a2.length, this;
|
|
1403
|
-
};
|
|
1404
|
-
s.prototype.read = function(e2) {
|
|
1405
|
-
x("read", e2), e2 = parseInt(e2, 10);
|
|
1406
|
-
var t3 = this._readableState, r3 = e2;
|
|
1407
|
-
if (0 !== e2 && (t3.emittedReadable = false), 0 === e2 && t3.needReadable && ((0 === t3.highWaterMark ? 0 < t3.length : t3.length >= t3.highWaterMark) || t3.ended)) return x("read: emitReadable", t3.length, t3.ended), 0 === t3.length && t3.ended ? v(this) : _(this), null;
|
|
1408
|
-
if (e2 = f(e2, t3), 0 === e2 && t3.ended) return 0 === t3.length && v(this), null;
|
|
1409
|
-
var a2 = t3.needReadable;
|
|
1410
|
-
x("need readable", a2), (0 === t3.length || t3.length - e2 < t3.highWaterMark) && (a2 = true, x("length less than watermark", a2)), t3.ended || t3.reading ? (a2 = false, x("reading or ended", a2)) : a2 && (x("do read"), t3.reading = true, t3.sync = true, 0 === t3.length && (t3.needReadable = true), this._read(t3.highWaterMark), t3.sync = false, !t3.reading && (e2 = f(r3, t3)));
|
|
1411
|
-
var o2;
|
|
1412
|
-
return o2 = 0 < e2 ? T(e2, t3) : null, null === o2 ? (t3.needReadable = t3.length <= t3.highWaterMark, e2 = 0) : (t3.length -= e2, t3.awaitDrain = 0), 0 === t3.length && (!t3.ended && (t3.needReadable = true), r3 !== e2 && t3.ended && v(this)), null !== o2 && this.emit("data", o2), o2;
|
|
1413
|
-
}, s.prototype._read = function() {
|
|
1414
|
-
X(this, new G("_read()"));
|
|
1415
|
-
}, s.prototype.pipe = function(e2, t3) {
|
|
1416
|
-
function r3(e3, t4) {
|
|
1417
|
-
x("onunpipe"), e3 === p2 && t4 && false === t4.hasUnpiped && (t4.hasUnpiped = true, o2());
|
|
1418
|
-
}
|
|
1419
|
-
function a2() {
|
|
1420
|
-
x("onend"), e2.end();
|
|
1421
|
-
}
|
|
1422
|
-
function o2() {
|
|
1423
|
-
x("cleanup"), e2.removeListener("close", l2), e2.removeListener("finish", c2), e2.removeListener("drain", h2), e2.removeListener("error", s2), e2.removeListener("unpipe", r3), p2.removeListener("end", a2), p2.removeListener("end", u2), p2.removeListener("data", d2), m2 = true, f2.awaitDrain && (!e2._writableState || e2._writableState.needDrain) && h2();
|
|
1424
|
-
}
|
|
1425
|
-
function d2(t4) {
|
|
1426
|
-
x("ondata");
|
|
1427
|
-
var n3 = e2.write(t4);
|
|
1428
|
-
x("dest.write", n3), false === n3 && ((1 === f2.pipesCount && f2.pipes === e2 || 1 < f2.pipesCount && -1 !== L(f2.pipes, e2)) && !m2 && (x("false write response, pause", f2.awaitDrain), f2.awaitDrain++), p2.pause());
|
|
1429
|
-
}
|
|
1430
|
-
function s2(t4) {
|
|
1431
|
-
x("onerror", t4), u2(), e2.removeListener("error", s2), 0 === D(e2, "error") && X(e2, t4);
|
|
1432
|
-
}
|
|
1433
|
-
function l2() {
|
|
1434
|
-
e2.removeListener("finish", c2), u2();
|
|
1435
|
-
}
|
|
1436
|
-
function c2() {
|
|
1437
|
-
x("onfinish"), e2.removeListener("close", l2), u2();
|
|
1438
|
-
}
|
|
1439
|
-
function u2() {
|
|
1440
|
-
x("unpipe"), p2.unpipe(e2);
|
|
1441
|
-
}
|
|
1442
|
-
var p2 = this, f2 = this._readableState;
|
|
1443
|
-
switch (f2.pipesCount) {
|
|
1444
|
-
case 0:
|
|
1445
|
-
f2.pipes = e2;
|
|
1446
|
-
break;
|
|
1447
|
-
case 1:
|
|
1448
|
-
f2.pipes = [f2.pipes, e2];
|
|
1449
|
-
break;
|
|
1450
|
-
default:
|
|
1451
|
-
f2.pipes.push(e2);
|
|
1452
|
-
}
|
|
1453
|
-
f2.pipesCount += 1, x("pipe count=%d opts=%j", f2.pipesCount, t3);
|
|
1454
|
-
var g2 = (!t3 || false !== t3.end) && e2 !== n2.stdout && e2 !== n2.stderr, _2 = g2 ? a2 : u2;
|
|
1455
|
-
f2.endEmitted ? n2.nextTick(_2) : p2.once("end", _2), e2.on("unpipe", r3);
|
|
1456
|
-
var h2 = y(p2);
|
|
1457
|
-
e2.on("drain", h2);
|
|
1458
|
-
var m2 = false;
|
|
1459
|
-
return p2.on("data", d2), i(e2, "error", s2), e2.once("close", l2), e2.once("finish", c2), e2.emit("pipe", p2), f2.flowing || (x("pipe resume"), p2.resume()), e2;
|
|
1460
|
-
}, s.prototype.unpipe = function(e2) {
|
|
1461
|
-
var t3 = this._readableState, n3 = { hasUnpiped: false };
|
|
1462
|
-
if (0 === t3.pipesCount) return this;
|
|
1463
|
-
if (1 === t3.pipesCount) return e2 && e2 !== t3.pipes ? this : (e2 || (e2 = t3.pipes), t3.pipes = null, t3.pipesCount = 0, t3.flowing = false, e2 && e2.emit("unpipe", this, n3), this);
|
|
1464
|
-
if (!e2) {
|
|
1465
|
-
var r3 = t3.pipes, a2 = t3.pipesCount;
|
|
1466
|
-
t3.pipes = null, t3.pipesCount = 0, t3.flowing = false;
|
|
1467
|
-
for (var o2 = 0; o2 < a2; o2++) r3[o2].emit("unpipe", this, { hasUnpiped: false });
|
|
1468
|
-
return this;
|
|
1469
|
-
}
|
|
1470
|
-
var d2 = L(t3.pipes, e2);
|
|
1471
|
-
return -1 === d2 ? this : (t3.pipes.splice(d2, 1), t3.pipesCount -= 1, 1 === t3.pipesCount && (t3.pipes = t3.pipes[0]), e2.emit("unpipe", this, n3), this);
|
|
1472
|
-
}, s.prototype.on = function(e2, t3) {
|
|
1473
|
-
var r3 = I.prototype.on.call(this, e2, t3), a2 = this._readableState;
|
|
1474
|
-
return "data" === e2 ? (a2.readableListening = 0 < this.listenerCount("readable"), false !== a2.flowing && this.resume()) : "readable" == e2 && !a2.endEmitted && !a2.readableListening && (a2.readableListening = a2.needReadable = true, a2.flowing = false, a2.emittedReadable = false, x("on readable", a2.length, a2.reading), a2.length ? _(this) : !a2.reading && n2.nextTick(R, this)), r3;
|
|
1475
|
-
}, s.prototype.addListener = s.prototype.on, s.prototype.removeListener = function(e2, t3) {
|
|
1476
|
-
var r3 = I.prototype.removeListener.call(this, e2, t3);
|
|
1477
|
-
return "readable" === e2 && n2.nextTick(C, this), r3;
|
|
1478
|
-
}, s.prototype.removeAllListeners = function(e2) {
|
|
1479
|
-
var t3 = I.prototype.removeAllListeners.apply(this, arguments);
|
|
1480
|
-
return ("readable" === e2 || void 0 === e2) && n2.nextTick(C, this), t3;
|
|
1481
|
-
}, s.prototype.resume = function() {
|
|
1482
|
-
var e2 = this._readableState;
|
|
1483
|
-
return e2.flowing || (x("resume"), e2.flowing = !e2.readableListening, E(this, e2)), e2.paused = false, this;
|
|
1484
|
-
}, s.prototype.pause = function() {
|
|
1485
|
-
return x("call pause flowing=%j", this._readableState.flowing), false !== this._readableState.flowing && (x("pause"), this._readableState.flowing = false, this.emit("pause")), this._readableState.paused = true, this;
|
|
1486
|
-
}, s.prototype.wrap = function(e2) {
|
|
1487
|
-
var t3 = this, r3 = this._readableState, a2 = false;
|
|
1488
|
-
for (var o2 in e2.on("end", function() {
|
|
1489
|
-
if (x("wrapped end"), r3.decoder && !r3.ended) {
|
|
1490
|
-
var e3 = r3.decoder.end();
|
|
1491
|
-
e3 && e3.length && t3.push(e3);
|
|
1492
|
-
}
|
|
1493
|
-
t3.push(null);
|
|
1494
|
-
}), e2.on("data", function(n3) {
|
|
1495
|
-
if ((x("wrapped data"), r3.decoder && (n3 = r3.decoder.write(n3)), !(r3.objectMode && (null === n3 || void 0 === n3))) && (r3.objectMode || n3 && n3.length)) {
|
|
1496
|
-
var o3 = t3.push(n3);
|
|
1497
|
-
o3 || (a2 = true, e2.pause());
|
|
1498
|
-
}
|
|
1499
|
-
}), e2) void 0 === this[o2] && "function" == typeof e2[o2] && (this[o2] = /* @__PURE__ */ function(t4) {
|
|
1500
|
-
return function() {
|
|
1501
|
-
return e2[t4].apply(e2, arguments);
|
|
1502
|
-
};
|
|
1503
|
-
}(o2));
|
|
1504
|
-
for (var i2 = 0; i2 < $.length; i2++) e2.on($[i2], this.emit.bind(this, $[i2]));
|
|
1505
|
-
return this._read = function(t4) {
|
|
1506
|
-
x("wrapped _read", t4), a2 && (a2 = false, e2.resume());
|
|
1507
|
-
}, this;
|
|
1508
|
-
}, "function" == typeof Symbol && (s.prototype[Symbol.asyncIterator] = function() {
|
|
1509
|
-
return void 0 === B && (B = e("./internal/streams/async_iterator")), B(this);
|
|
1510
|
-
}), Object.defineProperty(s.prototype, "readableHighWaterMark", { enumerable: false, get: function() {
|
|
1511
|
-
return this._readableState.highWaterMark;
|
|
1512
|
-
} }), Object.defineProperty(s.prototype, "readableBuffer", { enumerable: false, get: function() {
|
|
1513
|
-
return this._readableState && this._readableState.buffer;
|
|
1514
|
-
} }), Object.defineProperty(s.prototype, "readableFlowing", { enumerable: false, get: function() {
|
|
1515
|
-
return this._readableState.flowing;
|
|
1516
|
-
}, set: function(e2) {
|
|
1517
|
-
this._readableState && (this._readableState.flowing = e2);
|
|
1518
|
-
} }), s._fromList = T, Object.defineProperty(s.prototype, "readableLength", { enumerable: false, get: function() {
|
|
1519
|
-
return this._readableState.length;
|
|
1520
|
-
} }), "function" == typeof Symbol && (s.from = function(t3, n3) {
|
|
1521
|
-
return void 0 === U && (U = e("./internal/streams/from")), U(s, t3, n3);
|
|
1522
|
-
});
|
|
1523
|
-
}).call(this);
|
|
1524
|
-
}).call(this, e("_process"), "undefined" == typeof _commonjsHelpers.commonjsGlobal ? "undefined" == typeof self ? "undefined" == typeof window ? {} : window : self : _commonjsHelpers.commonjsGlobal);
|
|
1525
|
-
}, { "../errors": 15, "./_stream_duplex": 16, "./internal/streams/async_iterator": 21, "./internal/streams/buffer_list": 22, "./internal/streams/destroy": 23, "./internal/streams/from": 25, "./internal/streams/state": 27, "./internal/streams/stream": 28, _process: 12, buffer: 3, events: 7, inherits: 10, "string_decoder/": 31, util: 2 }], 19: [function(e, t2) {
|
|
1526
|
-
"use strict";
|
|
1527
|
-
function n2(e2, t3) {
|
|
1528
|
-
var n3 = this._transformState;
|
|
1529
|
-
n3.transforming = false;
|
|
1530
|
-
var r3 = n3.writecb;
|
|
1531
|
-
if (null === r3) return this.emit("error", new s());
|
|
1532
|
-
n3.writechunk = null, n3.writecb = null, null != t3 && this.push(t3), r3(e2);
|
|
1533
|
-
var a2 = this._readableState;
|
|
1534
|
-
a2.reading = false, (a2.needReadable || a2.length < a2.highWaterMark) && this._read(a2.highWaterMark);
|
|
1535
|
-
}
|
|
1536
|
-
function r2(e2) {
|
|
1537
|
-
return this instanceof r2 ? void (u.call(this, e2), this._transformState = { afterTransform: n2.bind(this), needTransform: false, transforming: false, writecb: null, writechunk: null, writeencoding: null }, this._readableState.needReadable = true, this._readableState.sync = false, e2 && ("function" == typeof e2.transform && (this._transform = e2.transform), "function" == typeof e2.flush && (this._flush = e2.flush)), this.on("prefinish", a)) : new r2(e2);
|
|
1538
|
-
}
|
|
1539
|
-
function a() {
|
|
1540
|
-
var e2 = this;
|
|
1541
|
-
"function" != typeof this._flush || this._readableState.destroyed ? o(this, null, null) : this._flush(function(t3, n3) {
|
|
1542
|
-
o(e2, t3, n3);
|
|
1543
|
-
});
|
|
1544
|
-
}
|
|
1545
|
-
function o(e2, t3, n3) {
|
|
1546
|
-
if (t3) return e2.emit("error", t3);
|
|
1547
|
-
if (null != n3 && e2.push(n3), e2._writableState.length) throw new c();
|
|
1548
|
-
if (e2._transformState.transforming) throw new l();
|
|
1549
|
-
return e2.push(null);
|
|
1550
|
-
}
|
|
1551
|
-
t2.exports = r2;
|
|
1552
|
-
var i = e("../errors").codes, d = i.ERR_METHOD_NOT_IMPLEMENTED, s = i.ERR_MULTIPLE_CALLBACK, l = i.ERR_TRANSFORM_ALREADY_TRANSFORMING, c = i.ERR_TRANSFORM_WITH_LENGTH_0, u = e("./_stream_duplex");
|
|
1553
|
-
e("inherits")(r2, u), r2.prototype.push = function(e2, t3) {
|
|
1554
|
-
return this._transformState.needTransform = false, u.prototype.push.call(this, e2, t3);
|
|
1555
|
-
}, r2.prototype._transform = function(e2, t3, n3) {
|
|
1556
|
-
n3(new d("_transform()"));
|
|
1557
|
-
}, r2.prototype._write = function(e2, t3, n3) {
|
|
1558
|
-
var r3 = this._transformState;
|
|
1559
|
-
if (r3.writecb = n3, r3.writechunk = e2, r3.writeencoding = t3, !r3.transforming) {
|
|
1560
|
-
var a2 = this._readableState;
|
|
1561
|
-
(r3.needTransform || a2.needReadable || a2.length < a2.highWaterMark) && this._read(a2.highWaterMark);
|
|
1562
|
-
}
|
|
1563
|
-
}, r2.prototype._read = function() {
|
|
1564
|
-
var e2 = this._transformState;
|
|
1565
|
-
null === e2.writechunk || e2.transforming ? e2.needTransform = true : (e2.transforming = true, this._transform(e2.writechunk, e2.writeencoding, e2.afterTransform));
|
|
1566
|
-
}, r2.prototype._destroy = function(e2, t3) {
|
|
1567
|
-
u.prototype._destroy.call(this, e2, function(e3) {
|
|
1568
|
-
t3(e3);
|
|
1569
|
-
});
|
|
1570
|
-
};
|
|
1571
|
-
}, { "../errors": 15, "./_stream_duplex": 16, inherits: 10 }], 20: [function(e, t2) {
|
|
1572
|
-
(function(n2, r2) {
|
|
1573
|
-
(function() {
|
|
1574
|
-
"use strict";
|
|
1575
|
-
function a(e2) {
|
|
1576
|
-
var t3 = this;
|
|
1577
|
-
this.next = null, this.entry = null, this.finish = function() {
|
|
1578
|
-
v(t3, e2);
|
|
1579
|
-
};
|
|
1580
|
-
}
|
|
1581
|
-
function o(e2) {
|
|
1582
|
-
return x.from(e2);
|
|
1583
|
-
}
|
|
1584
|
-
function i(e2) {
|
|
1585
|
-
return x.isBuffer(e2) || e2 instanceof N;
|
|
1586
|
-
}
|
|
1587
|
-
function d() {
|
|
1588
|
-
}
|
|
1589
|
-
function s(t3, n3, r3) {
|
|
1590
|
-
k = k || e("./_stream_duplex"), t3 = t3 || {}, "boolean" != typeof r3 && (r3 = n3 instanceof k), this.objectMode = !!t3.objectMode, r3 && (this.objectMode = this.objectMode || !!t3.writableObjectMode), this.highWaterMark = P(this, t3, "writableHighWaterMark", r3), this.finalCalled = false, this.needDrain = false, this.ending = false, this.ended = false, this.finished = false, this.destroyed = false;
|
|
1591
|
-
var o2 = false === t3.decodeStrings;
|
|
1592
|
-
this.decodeStrings = !o2, this.defaultEncoding = t3.defaultEncoding || "utf8", this.length = 0, this.writing = false, this.corked = 0, this.sync = true, this.bufferProcessing = false, this.onwrite = function(e2) {
|
|
1593
|
-
m(n3, e2);
|
|
1594
|
-
}, this.writecb = null, this.writelen = 0, this.bufferedRequest = null, this.lastBufferedRequest = null, this.pendingcb = 0, this.prefinished = false, this.errorEmitted = false, this.emitClose = false !== t3.emitClose, this.autoDestroy = !!t3.autoDestroy, this.bufferedRequestCount = 0, this.corkedRequestsFree = new a(this);
|
|
1595
|
-
}
|
|
1596
|
-
function l(t3) {
|
|
1597
|
-
k = k || e("./_stream_duplex");
|
|
1598
|
-
var n3 = this instanceof k;
|
|
1599
|
-
return n3 || V.call(l, this) ? void (this._writableState = new s(t3, this, n3), this.writable = true, t3 && ("function" == typeof t3.write && (this._write = t3.write), "function" == typeof t3.writev && (this._writev = t3.writev), "function" == typeof t3.destroy && (this._destroy = t3.destroy), "function" == typeof t3.final && (this._final = t3.final)), A.call(this)) : new l(t3);
|
|
1600
|
-
}
|
|
1601
|
-
function c(e2, t3) {
|
|
1602
|
-
var r3 = new W();
|
|
1603
|
-
Y(e2, r3), n2.nextTick(t3, r3);
|
|
1604
|
-
}
|
|
1605
|
-
function u(e2, t3, r3, a2) {
|
|
1606
|
-
var o2;
|
|
1607
|
-
return null === r3 ? o2 = new q() : "string" != typeof r3 && !t3.objectMode && (o2 = new O("chunk", ["string", "Buffer"], r3)), !o2 || (Y(e2, o2), n2.nextTick(a2, o2), false);
|
|
1608
|
-
}
|
|
1609
|
-
function p(e2, t3, n3) {
|
|
1610
|
-
return e2.objectMode || false === e2.decodeStrings || "string" != typeof t3 || (t3 = x.from(t3, n3)), t3;
|
|
1611
|
-
}
|
|
1612
|
-
function f(e2, t3, n3, r3, a2, o2) {
|
|
1613
|
-
if (!n3) {
|
|
1614
|
-
var i2 = p(t3, r3, a2);
|
|
1615
|
-
r3 !== i2 && (n3 = true, a2 = "buffer", r3 = i2);
|
|
1616
|
-
}
|
|
1617
|
-
var d2 = t3.objectMode ? 1 : r3.length;
|
|
1618
|
-
t3.length += d2;
|
|
1619
|
-
var s2 = t3.length < t3.highWaterMark;
|
|
1620
|
-
if (s2 || (t3.needDrain = true), t3.writing || t3.corked) {
|
|
1621
|
-
var l2 = t3.lastBufferedRequest;
|
|
1622
|
-
t3.lastBufferedRequest = { chunk: r3, encoding: a2, isBuf: n3, callback: o2, next: null }, l2 ? l2.next = t3.lastBufferedRequest : t3.bufferedRequest = t3.lastBufferedRequest, t3.bufferedRequestCount += 1;
|
|
1623
|
-
} else g(e2, t3, false, d2, r3, a2, o2);
|
|
1624
|
-
return s2;
|
|
1625
|
-
}
|
|
1626
|
-
function g(e2, t3, n3, r3, a2, o2, i2) {
|
|
1627
|
-
t3.writelen = r3, t3.writecb = i2, t3.writing = true, t3.sync = true, t3.destroyed ? t3.onwrite(new j("write")) : n3 ? e2._writev(a2, t3.onwrite) : e2._write(a2, o2, t3.onwrite), t3.sync = false;
|
|
1628
|
-
}
|
|
1629
|
-
function _(e2, t3, r3, a2, o2) {
|
|
1630
|
-
--t3.pendingcb, r3 ? (n2.nextTick(o2, a2), n2.nextTick(S, e2, t3), e2._writableState.errorEmitted = true, Y(e2, a2)) : (o2(a2), e2._writableState.errorEmitted = true, Y(e2, a2), S(e2, t3));
|
|
1631
|
-
}
|
|
1632
|
-
function h(e2) {
|
|
1633
|
-
e2.writing = false, e2.writecb = null, e2.length -= e2.writelen, e2.writelen = 0;
|
|
1634
|
-
}
|
|
1635
|
-
function m(e2, t3) {
|
|
1636
|
-
var r3 = e2._writableState, a2 = r3.sync, o2 = r3.writecb;
|
|
1637
|
-
if ("function" != typeof o2) throw new B();
|
|
1638
|
-
if (h(r3), t3) _(e2, r3, a2, t3, o2);
|
|
1639
|
-
else {
|
|
1640
|
-
var i2 = R(r3) || e2.destroyed;
|
|
1641
|
-
i2 || r3.corked || r3.bufferProcessing || !r3.bufferedRequest || C(e2, r3), a2 ? n2.nextTick(b, e2, r3, i2, o2) : b(e2, r3, i2, o2);
|
|
1642
|
-
}
|
|
1643
|
-
}
|
|
1644
|
-
function b(e2, t3, n3, r3) {
|
|
1645
|
-
n3 || y(e2, t3), t3.pendingcb--, r3(), S(e2, t3);
|
|
1646
|
-
}
|
|
1647
|
-
function y(e2, t3) {
|
|
1648
|
-
0 === t3.length && t3.needDrain && (t3.needDrain = false, e2.emit("drain"));
|
|
1649
|
-
}
|
|
1650
|
-
function C(e2, t3) {
|
|
1651
|
-
t3.bufferProcessing = true;
|
|
1652
|
-
var n3 = t3.bufferedRequest;
|
|
1653
|
-
if (e2._writev && n3 && n3.next) {
|
|
1654
|
-
var r3 = t3.bufferedRequestCount, o2 = Array(r3), i2 = t3.corkedRequestsFree;
|
|
1655
|
-
i2.entry = n3;
|
|
1656
|
-
for (var d2 = 0, s2 = true; n3; ) o2[d2] = n3, n3.isBuf || (s2 = false), n3 = n3.next, d2 += 1;
|
|
1657
|
-
o2.allBuffers = s2, g(e2, t3, true, t3.length, o2, "", i2.finish), t3.pendingcb++, t3.lastBufferedRequest = null, i2.next ? (t3.corkedRequestsFree = i2.next, i2.next = null) : t3.corkedRequestsFree = new a(t3), t3.bufferedRequestCount = 0;
|
|
1658
|
-
} else {
|
|
1659
|
-
for (; n3; ) {
|
|
1660
|
-
var l2 = n3.chunk, c2 = n3.encoding, u2 = n3.callback, p2 = t3.objectMode ? 1 : l2.length;
|
|
1661
|
-
if (g(e2, t3, false, p2, l2, c2, u2), n3 = n3.next, t3.bufferedRequestCount--, t3.writing) break;
|
|
1662
|
-
}
|
|
1663
|
-
null === n3 && (t3.lastBufferedRequest = null);
|
|
1664
|
-
}
|
|
1665
|
-
t3.bufferedRequest = n3, t3.bufferProcessing = false;
|
|
1666
|
-
}
|
|
1667
|
-
function R(e2) {
|
|
1668
|
-
return e2.ending && 0 === e2.length && null === e2.bufferedRequest && !e2.finished && !e2.writing;
|
|
1669
|
-
}
|
|
1670
|
-
function E(e2, t3) {
|
|
1671
|
-
e2._final(function(n3) {
|
|
1672
|
-
t3.pendingcb--, n3 && Y(e2, n3), t3.prefinished = true, e2.emit("prefinish"), S(e2, t3);
|
|
1673
|
-
});
|
|
1674
|
-
}
|
|
1675
|
-
function w(e2, t3) {
|
|
1676
|
-
t3.prefinished || t3.finalCalled || ("function" != typeof e2._final || t3.destroyed ? (t3.prefinished = true, e2.emit("prefinish")) : (t3.pendingcb++, t3.finalCalled = true, n2.nextTick(E, e2, t3)));
|
|
1677
|
-
}
|
|
1678
|
-
function S(e2, t3) {
|
|
1679
|
-
var n3 = R(t3);
|
|
1680
|
-
if (n3 && (w(e2, t3), 0 === t3.pendingcb && (t3.finished = true, e2.emit("finish"), t3.autoDestroy))) {
|
|
1681
|
-
var r3 = e2._readableState;
|
|
1682
|
-
(!r3 || r3.autoDestroy && r3.endEmitted) && e2.destroy();
|
|
1683
|
-
}
|
|
1684
|
-
return n3;
|
|
1685
|
-
}
|
|
1686
|
-
function T(e2, t3, r3) {
|
|
1687
|
-
t3.ending = true, S(e2, t3), r3 && (t3.finished ? n2.nextTick(r3) : e2.once("finish", r3)), t3.ended = true, e2.writable = false;
|
|
1688
|
-
}
|
|
1689
|
-
function v(e2, t3, n3) {
|
|
1690
|
-
var r3 = e2.entry;
|
|
1691
|
-
for (e2.entry = null; r3; ) {
|
|
1692
|
-
var a2 = r3.callback;
|
|
1693
|
-
t3.pendingcb--, a2(n3), r3 = r3.next;
|
|
1694
|
-
}
|
|
1695
|
-
t3.corkedRequestsFree.next = e2;
|
|
1696
|
-
}
|
|
1697
|
-
t2.exports = l;
|
|
1698
|
-
var k;
|
|
1699
|
-
l.WritableState = s;
|
|
1700
|
-
var L = { deprecate: e("util-deprecate") }, A = e("./internal/streams/stream"), x = e("buffer").Buffer, N = r2.Uint8Array || function() {
|
|
1701
|
-
}, D = e("./internal/streams/destroy"), I = e("./internal/streams/state"), P = I.getHighWaterMark, M = e("../errors").codes, O = M.ERR_INVALID_ARG_TYPE, F = M.ERR_METHOD_NOT_IMPLEMENTED, B = M.ERR_MULTIPLE_CALLBACK, U = M.ERR_STREAM_CANNOT_PIPE, j = M.ERR_STREAM_DESTROYED, q = M.ERR_STREAM_NULL_VALUES, W = M.ERR_STREAM_WRITE_AFTER_END, H = M.ERR_UNKNOWN_ENCODING, Y = D.errorOrDestroy;
|
|
1702
|
-
e("inherits")(l, A), s.prototype.getBuffer = function() {
|
|
1703
|
-
for (var e2 = this.bufferedRequest, t3 = []; e2; ) t3.push(e2), e2 = e2.next;
|
|
1704
|
-
return t3;
|
|
1705
|
-
}, function() {
|
|
1706
|
-
try {
|
|
1707
|
-
Object.defineProperty(s.prototype, "buffer", { get: L.deprecate(function() {
|
|
1708
|
-
return this.getBuffer();
|
|
1709
|
-
}, "_writableState.buffer is deprecated. Use _writableState.getBuffer instead.", "DEP0003") });
|
|
1710
|
-
} catch (e2) {
|
|
1711
|
-
}
|
|
1712
|
-
}();
|
|
1713
|
-
var V;
|
|
1714
|
-
"function" == typeof Symbol && Symbol.hasInstance && "function" == typeof Function.prototype[Symbol.hasInstance] ? (V = Function.prototype[Symbol.hasInstance], Object.defineProperty(l, Symbol.hasInstance, { value: function(e2) {
|
|
1715
|
-
return !!V.call(this, e2) || !(this !== l) && e2 && e2._writableState instanceof s;
|
|
1716
|
-
} })) : V = function(e2) {
|
|
1717
|
-
return e2 instanceof this;
|
|
1718
|
-
}, l.prototype.pipe = function() {
|
|
1719
|
-
Y(this, new U());
|
|
1720
|
-
}, l.prototype.write = function(e2, t3, n3) {
|
|
1721
|
-
var r3 = this._writableState, a2 = false, s2 = !r3.objectMode && i(e2);
|
|
1722
|
-
return s2 && !x.isBuffer(e2) && (e2 = o(e2)), "function" == typeof t3 && (n3 = t3, t3 = null), s2 ? t3 = "buffer" : !t3 && (t3 = r3.defaultEncoding), "function" != typeof n3 && (n3 = d), r3.ending ? c(this, n3) : (s2 || u(this, r3, e2, n3)) && (r3.pendingcb++, a2 = f(this, r3, s2, e2, t3, n3)), a2;
|
|
1723
|
-
}, l.prototype.cork = function() {
|
|
1724
|
-
this._writableState.corked++;
|
|
1725
|
-
}, l.prototype.uncork = function() {
|
|
1726
|
-
var e2 = this._writableState;
|
|
1727
|
-
e2.corked && (e2.corked--, !e2.writing && !e2.corked && !e2.bufferProcessing && e2.bufferedRequest && C(this, e2));
|
|
1728
|
-
}, l.prototype.setDefaultEncoding = function(e2) {
|
|
1729
|
-
if ("string" == typeof e2 && (e2 = e2.toLowerCase()), !(-1 < ["hex", "utf8", "utf-8", "ascii", "binary", "base64", "ucs2", "ucs-2", "utf16le", "utf-16le", "raw"].indexOf((e2 + "").toLowerCase()))) throw new H(e2);
|
|
1730
|
-
return this._writableState.defaultEncoding = e2, this;
|
|
1731
|
-
}, Object.defineProperty(l.prototype, "writableBuffer", { enumerable: false, get: function() {
|
|
1732
|
-
return this._writableState && this._writableState.getBuffer();
|
|
1733
|
-
} }), Object.defineProperty(l.prototype, "writableHighWaterMark", { enumerable: false, get: function() {
|
|
1734
|
-
return this._writableState.highWaterMark;
|
|
1735
|
-
} }), l.prototype._write = function(e2, t3, n3) {
|
|
1736
|
-
n3(new F("_write()"));
|
|
1737
|
-
}, l.prototype._writev = null, l.prototype.end = function(e2, t3, n3) {
|
|
1738
|
-
var r3 = this._writableState;
|
|
1739
|
-
return "function" == typeof e2 ? (n3 = e2, e2 = null, t3 = null) : "function" == typeof t3 && (n3 = t3, t3 = null), null !== e2 && void 0 !== e2 && this.write(e2, t3), r3.corked && (r3.corked = 1, this.uncork()), r3.ending || T(this, r3, n3), this;
|
|
1740
|
-
}, Object.defineProperty(l.prototype, "writableLength", { enumerable: false, get: function() {
|
|
1741
|
-
return this._writableState.length;
|
|
1742
|
-
} }), Object.defineProperty(l.prototype, "destroyed", { enumerable: false, get: function() {
|
|
1743
|
-
return void 0 !== this._writableState && this._writableState.destroyed;
|
|
1744
|
-
}, set: function(e2) {
|
|
1745
|
-
this._writableState && (this._writableState.destroyed = e2);
|
|
1746
|
-
} }), l.prototype.destroy = D.destroy, l.prototype._undestroy = D.undestroy, l.prototype._destroy = function(e2, t3) {
|
|
1747
|
-
t3(e2);
|
|
1748
|
-
};
|
|
1749
|
-
}).call(this);
|
|
1750
|
-
}).call(this, e("_process"), "undefined" == typeof _commonjsHelpers.commonjsGlobal ? "undefined" == typeof self ? "undefined" == typeof window ? {} : window : self : _commonjsHelpers.commonjsGlobal);
|
|
1751
|
-
}, { "../errors": 15, "./_stream_duplex": 16, "./internal/streams/destroy": 23, "./internal/streams/state": 27, "./internal/streams/stream": 28, _process: 12, buffer: 3, inherits: 10, "util-deprecate": 32 }], 21: [function(e, t2) {
|
|
1752
|
-
(function(n2) {
|
|
1753
|
-
(function() {
|
|
1754
|
-
"use strict";
|
|
1755
|
-
function r2(e2, t3, n3) {
|
|
1756
|
-
return t3 in e2 ? Object.defineProperty(e2, t3, { value: n3, enumerable: true, configurable: true, writable: true }) : e2[t3] = n3, e2;
|
|
1757
|
-
}
|
|
1758
|
-
function a(e2, t3) {
|
|
1759
|
-
return { value: e2, done: t3 };
|
|
1760
|
-
}
|
|
1761
|
-
function o(e2) {
|
|
1762
|
-
var t3 = e2[c];
|
|
1763
|
-
if (null !== t3) {
|
|
1764
|
-
var n3 = e2[h].read();
|
|
1765
|
-
null !== n3 && (e2[g] = null, e2[c] = null, e2[u] = null, t3(a(n3, false)));
|
|
1766
|
-
}
|
|
1767
|
-
}
|
|
1768
|
-
function i(e2) {
|
|
1769
|
-
n2.nextTick(o, e2);
|
|
1770
|
-
}
|
|
1771
|
-
function d(e2, t3) {
|
|
1772
|
-
return function(n3, r3) {
|
|
1773
|
-
e2.then(function() {
|
|
1774
|
-
return t3[f] ? void n3(a(void 0, true)) : void t3[_](n3, r3);
|
|
1775
|
-
}, r3);
|
|
1776
|
-
};
|
|
1777
|
-
}
|
|
1778
|
-
var s, l = e("./end-of-stream"), c = Symbol("lastResolve"), u = Symbol("lastReject"), p = Symbol("error"), f = Symbol("ended"), g = Symbol("lastPromise"), _ = Symbol("handlePromise"), h = Symbol("stream"), m = Object.getPrototypeOf(function() {
|
|
1779
|
-
}), b = Object.setPrototypeOf((s = { get stream() {
|
|
1780
|
-
return this[h];
|
|
1781
|
-
}, next: function() {
|
|
1782
|
-
var e2 = this, t3 = this[p];
|
|
1783
|
-
if (null !== t3) return Promise.reject(t3);
|
|
1784
|
-
if (this[f]) return Promise.resolve(a(void 0, true));
|
|
1785
|
-
if (this[h].destroyed) return new Promise(function(t4, r4) {
|
|
1786
|
-
n2.nextTick(function() {
|
|
1787
|
-
e2[p] ? r4(e2[p]) : t4(a(void 0, true));
|
|
1788
|
-
});
|
|
1789
|
-
});
|
|
1790
|
-
var r3, o2 = this[g];
|
|
1791
|
-
if (o2) r3 = new Promise(d(o2, this));
|
|
1792
|
-
else {
|
|
1793
|
-
var i2 = this[h].read();
|
|
1794
|
-
if (null !== i2) return Promise.resolve(a(i2, false));
|
|
1795
|
-
r3 = new Promise(this[_]);
|
|
1796
|
-
}
|
|
1797
|
-
return this[g] = r3, r3;
|
|
1798
|
-
} }, r2(s, Symbol.asyncIterator, function() {
|
|
1799
|
-
return this;
|
|
1800
|
-
}), r2(s, "return", function() {
|
|
1801
|
-
var e2 = this;
|
|
1802
|
-
return new Promise(function(t3, n3) {
|
|
1803
|
-
e2[h].destroy(null, function(e3) {
|
|
1804
|
-
return e3 ? void n3(e3) : void t3(a(void 0, true));
|
|
1805
|
-
});
|
|
1806
|
-
});
|
|
1807
|
-
}), s), m);
|
|
1808
|
-
t2.exports = function(e2) {
|
|
1809
|
-
var t3, n3 = Object.create(b, (t3 = {}, r2(t3, h, { value: e2, writable: true }), r2(t3, c, { value: null, writable: true }), r2(t3, u, { value: null, writable: true }), r2(t3, p, { value: null, writable: true }), r2(t3, f, { value: e2._readableState.endEmitted, writable: true }), r2(t3, _, { value: function(e3, t4) {
|
|
1810
|
-
var r3 = n3[h].read();
|
|
1811
|
-
r3 ? (n3[g] = null, n3[c] = null, n3[u] = null, e3(a(r3, false))) : (n3[c] = e3, n3[u] = t4);
|
|
1812
|
-
}, writable: true }), t3));
|
|
1813
|
-
return n3[g] = null, l(e2, function(e3) {
|
|
1814
|
-
if (e3 && "ERR_STREAM_PREMATURE_CLOSE" !== e3.code) {
|
|
1815
|
-
var t4 = n3[u];
|
|
1816
|
-
return null !== t4 && (n3[g] = null, n3[c] = null, n3[u] = null, t4(e3)), void (n3[p] = e3);
|
|
1817
|
-
}
|
|
1818
|
-
var r3 = n3[c];
|
|
1819
|
-
null !== r3 && (n3[g] = null, n3[c] = null, n3[u] = null, r3(a(void 0, true))), n3[f] = true;
|
|
1820
|
-
}), e2.on("readable", i.bind(null, n3)), n3;
|
|
1821
|
-
};
|
|
1822
|
-
}).call(this);
|
|
1823
|
-
}).call(this, e("_process"));
|
|
1824
|
-
}, { "./end-of-stream": 24, _process: 12 }], 22: [function(e, t2) {
|
|
1825
|
-
"use strict";
|
|
1826
|
-
function n2(e2, t3) {
|
|
1827
|
-
var n3 = Object.keys(e2);
|
|
1828
|
-
if (Object.getOwnPropertySymbols) {
|
|
1829
|
-
var r3 = Object.getOwnPropertySymbols(e2);
|
|
1830
|
-
t3 && (r3 = r3.filter(function(t4) {
|
|
1831
|
-
return Object.getOwnPropertyDescriptor(e2, t4).enumerable;
|
|
1832
|
-
})), n3.push.apply(n3, r3);
|
|
1833
|
-
}
|
|
1834
|
-
return n3;
|
|
1835
|
-
}
|
|
1836
|
-
function r2(e2) {
|
|
1837
|
-
for (var t3, r3 = 1; r3 < arguments.length; r3++) t3 = null == arguments[r3] ? {} : arguments[r3], r3 % 2 ? n2(Object(t3), true).forEach(function(n3) {
|
|
1838
|
-
a(e2, n3, t3[n3]);
|
|
1839
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e2, Object.getOwnPropertyDescriptors(t3)) : n2(Object(t3)).forEach(function(n3) {
|
|
1840
|
-
Object.defineProperty(e2, n3, Object.getOwnPropertyDescriptor(t3, n3));
|
|
1841
|
-
});
|
|
1842
|
-
return e2;
|
|
1843
|
-
}
|
|
1844
|
-
function a(e2, t3, n3) {
|
|
1845
|
-
return t3 in e2 ? Object.defineProperty(e2, t3, { value: n3, enumerable: true, configurable: true, writable: true }) : e2[t3] = n3, e2;
|
|
1846
|
-
}
|
|
1847
|
-
function o(e2, t3) {
|
|
1848
|
-
if (!(e2 instanceof t3)) throw new TypeError("Cannot call a class as a function");
|
|
1849
|
-
}
|
|
1850
|
-
function i(e2, t3) {
|
|
1851
|
-
for (var n3, r3 = 0; r3 < t3.length; r3++) n3 = t3[r3], n3.enumerable = n3.enumerable || false, n3.configurable = true, "value" in n3 && (n3.writable = true), Object.defineProperty(e2, n3.key, n3);
|
|
1852
|
-
}
|
|
1853
|
-
function d(e2, t3, n3) {
|
|
1854
|
-
return t3 && i(e2.prototype, t3), n3 && i(e2, n3), e2;
|
|
1855
|
-
}
|
|
1856
|
-
function s(e2, t3, n3) {
|
|
1857
|
-
u.prototype.copy.call(e2, t3, n3);
|
|
1858
|
-
}
|
|
1859
|
-
var l = e("buffer"), u = l.Buffer, p = e("util"), f = p.inspect, g = f && f.custom || "inspect";
|
|
1860
|
-
t2.exports = function() {
|
|
1861
|
-
function e2() {
|
|
1862
|
-
o(this, e2), this.head = null, this.tail = null, this.length = 0;
|
|
1863
|
-
}
|
|
1864
|
-
return d(e2, [{ key: "push", value: function(e3) {
|
|
1865
|
-
var t3 = { data: e3, next: null };
|
|
1866
|
-
0 < this.length ? this.tail.next = t3 : this.head = t3, this.tail = t3, ++this.length;
|
|
1867
|
-
} }, { key: "unshift", value: function(e3) {
|
|
1868
|
-
var t3 = { data: e3, next: this.head };
|
|
1869
|
-
0 === this.length && (this.tail = t3), this.head = t3, ++this.length;
|
|
1870
|
-
} }, { key: "shift", value: function() {
|
|
1871
|
-
if (0 !== this.length) {
|
|
1872
|
-
var e3 = this.head.data;
|
|
1873
|
-
return this.head = 1 === this.length ? this.tail = null : this.head.next, --this.length, e3;
|
|
1874
|
-
}
|
|
1875
|
-
} }, { key: "clear", value: function() {
|
|
1876
|
-
this.head = this.tail = null, this.length = 0;
|
|
1877
|
-
} }, { key: "join", value: function(e3) {
|
|
1878
|
-
if (0 === this.length) return "";
|
|
1879
|
-
for (var t3 = this.head, n3 = "" + t3.data; t3 = t3.next; ) n3 += e3 + t3.data;
|
|
1880
|
-
return n3;
|
|
1881
|
-
} }, { key: "concat", value: function(e3) {
|
|
1882
|
-
if (0 === this.length) return u.alloc(0);
|
|
1883
|
-
for (var t3 = u.allocUnsafe(e3 >>> 0), n3 = this.head, r3 = 0; n3; ) s(n3.data, t3, r3), r3 += n3.data.length, n3 = n3.next;
|
|
1884
|
-
return t3;
|
|
1885
|
-
} }, { key: "consume", value: function(e3, t3) {
|
|
1886
|
-
var n3;
|
|
1887
|
-
return e3 < this.head.data.length ? (n3 = this.head.data.slice(0, e3), this.head.data = this.head.data.slice(e3)) : e3 === this.head.data.length ? n3 = this.shift() : n3 = t3 ? this._getString(e3) : this._getBuffer(e3), n3;
|
|
1888
|
-
} }, { key: "first", value: function() {
|
|
1889
|
-
return this.head.data;
|
|
1890
|
-
} }, { key: "_getString", value: function(e3) {
|
|
1891
|
-
var t3 = this.head, r3 = 1, a2 = t3.data;
|
|
1892
|
-
for (e3 -= a2.length; t3 = t3.next; ) {
|
|
1893
|
-
var o2 = t3.data, i2 = e3 > o2.length ? o2.length : e3;
|
|
1894
|
-
if (a2 += i2 === o2.length ? o2 : o2.slice(0, e3), e3 -= i2, 0 === e3) {
|
|
1895
|
-
i2 === o2.length ? (++r3, this.head = t3.next ? t3.next : this.tail = null) : (this.head = t3, t3.data = o2.slice(i2));
|
|
1896
|
-
break;
|
|
1897
|
-
}
|
|
1898
|
-
++r3;
|
|
1899
|
-
}
|
|
1900
|
-
return this.length -= r3, a2;
|
|
1901
|
-
} }, { key: "_getBuffer", value: function(e3) {
|
|
1902
|
-
var t3 = u.allocUnsafe(e3), r3 = this.head, a2 = 1;
|
|
1903
|
-
for (r3.data.copy(t3), e3 -= r3.data.length; r3 = r3.next; ) {
|
|
1904
|
-
var o2 = r3.data, i2 = e3 > o2.length ? o2.length : e3;
|
|
1905
|
-
if (o2.copy(t3, t3.length - e3, 0, i2), e3 -= i2, 0 === e3) {
|
|
1906
|
-
i2 === o2.length ? (++a2, this.head = r3.next ? r3.next : this.tail = null) : (this.head = r3, r3.data = o2.slice(i2));
|
|
1907
|
-
break;
|
|
1908
|
-
}
|
|
1909
|
-
++a2;
|
|
1910
|
-
}
|
|
1911
|
-
return this.length -= a2, t3;
|
|
1912
|
-
} }, { key: g, value: function(e3, t3) {
|
|
1913
|
-
return f(this, r2({}, t3, { depth: 0, customInspect: false }));
|
|
1914
|
-
} }]), e2;
|
|
1915
|
-
}();
|
|
1916
|
-
}, { buffer: 3, util: 2 }], 23: [function(e, t2) {
|
|
1917
|
-
(function(e2) {
|
|
1918
|
-
(function() {
|
|
1919
|
-
"use strict";
|
|
1920
|
-
function n2(e3, t3) {
|
|
1921
|
-
a(e3, t3), r2(e3);
|
|
1922
|
-
}
|
|
1923
|
-
function r2(e3) {
|
|
1924
|
-
e3._writableState && !e3._writableState.emitClose || e3._readableState && !e3._readableState.emitClose || e3.emit("close");
|
|
1925
|
-
}
|
|
1926
|
-
function a(e3, t3) {
|
|
1927
|
-
e3.emit("error", t3);
|
|
1928
|
-
}
|
|
1929
|
-
t2.exports = { destroy: function(t3, o) {
|
|
1930
|
-
var i = this, d = this._readableState && this._readableState.destroyed, s = this._writableState && this._writableState.destroyed;
|
|
1931
|
-
return d || s ? (o ? o(t3) : t3 && (this._writableState ? !this._writableState.errorEmitted && (this._writableState.errorEmitted = true, e2.nextTick(a, this, t3)) : e2.nextTick(a, this, t3)), this) : (this._readableState && (this._readableState.destroyed = true), this._writableState && (this._writableState.destroyed = true), this._destroy(t3 || null, function(t4) {
|
|
1932
|
-
!o && t4 ? i._writableState ? i._writableState.errorEmitted ? e2.nextTick(r2, i) : (i._writableState.errorEmitted = true, e2.nextTick(n2, i, t4)) : e2.nextTick(n2, i, t4) : o ? (e2.nextTick(r2, i), o(t4)) : e2.nextTick(r2, i);
|
|
1933
|
-
}), this);
|
|
1934
|
-
}, undestroy: function() {
|
|
1935
|
-
this._readableState && (this._readableState.destroyed = false, this._readableState.reading = false, this._readableState.ended = false, this._readableState.endEmitted = false), this._writableState && (this._writableState.destroyed = false, this._writableState.ended = false, this._writableState.ending = false, this._writableState.finalCalled = false, this._writableState.prefinished = false, this._writableState.finished = false, this._writableState.errorEmitted = false);
|
|
1936
|
-
}, errorOrDestroy: function(e3, t3) {
|
|
1937
|
-
var n3 = e3._readableState, r3 = e3._writableState;
|
|
1938
|
-
n3 && n3.autoDestroy || r3 && r3.autoDestroy ? e3.destroy(t3) : e3.emit("error", t3);
|
|
1939
|
-
} };
|
|
1940
|
-
}).call(this);
|
|
1941
|
-
}).call(this, e("_process"));
|
|
1942
|
-
}, { _process: 12 }], 24: [function(e, t2) {
|
|
1943
|
-
"use strict";
|
|
1944
|
-
function n2(e2) {
|
|
1945
|
-
var t3 = false;
|
|
1946
|
-
return function() {
|
|
1947
|
-
if (!t3) {
|
|
1948
|
-
t3 = true;
|
|
1949
|
-
for (var n3 = arguments.length, r3 = Array(n3), a2 = 0; a2 < n3; a2++) r3[a2] = arguments[a2];
|
|
1950
|
-
e2.apply(this, r3);
|
|
1951
|
-
}
|
|
1952
|
-
};
|
|
1953
|
-
}
|
|
1954
|
-
function r2() {
|
|
1955
|
-
}
|
|
1956
|
-
function a(e2) {
|
|
1957
|
-
return e2.setHeader && "function" == typeof e2.abort;
|
|
1958
|
-
}
|
|
1959
|
-
function o(e2, t3, d) {
|
|
1960
|
-
if ("function" == typeof t3) return o(e2, null, t3);
|
|
1961
|
-
t3 || (t3 = {}), d = n2(d || r2);
|
|
1962
|
-
var s = t3.readable || false !== t3.readable && e2.readable, l = t3.writable || false !== t3.writable && e2.writable, c = function() {
|
|
1963
|
-
e2.writable || p();
|
|
1964
|
-
}, u = e2._writableState && e2._writableState.finished, p = function() {
|
|
1965
|
-
l = false, u = true, s || d.call(e2);
|
|
1966
|
-
}, f = e2._readableState && e2._readableState.endEmitted, g = function() {
|
|
1967
|
-
s = false, f = true, l || d.call(e2);
|
|
1968
|
-
}, _ = function(t4) {
|
|
1969
|
-
d.call(e2, t4);
|
|
1970
|
-
}, h = function() {
|
|
1971
|
-
var t4;
|
|
1972
|
-
return s && !f ? (e2._readableState && e2._readableState.ended || (t4 = new i()), d.call(e2, t4)) : l && !u ? (e2._writableState && e2._writableState.ended || (t4 = new i()), d.call(e2, t4)) : void 0;
|
|
1973
|
-
}, m = function() {
|
|
1974
|
-
e2.req.on("finish", p);
|
|
1975
|
-
};
|
|
1976
|
-
return a(e2) ? (e2.on("complete", p), e2.on("abort", h), e2.req ? m() : e2.on("request", m)) : l && !e2._writableState && (e2.on("end", c), e2.on("close", c)), e2.on("end", g), e2.on("finish", p), false !== t3.error && e2.on("error", _), e2.on("close", h), function() {
|
|
1977
|
-
e2.removeListener("complete", p), e2.removeListener("abort", h), e2.removeListener("request", m), e2.req && e2.req.removeListener("finish", p), e2.removeListener("end", c), e2.removeListener("close", c), e2.removeListener("finish", p), e2.removeListener("end", g), e2.removeListener("error", _), e2.removeListener("close", h);
|
|
1978
|
-
};
|
|
1979
|
-
}
|
|
1980
|
-
var i = e("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;
|
|
1981
|
-
t2.exports = o;
|
|
1982
|
-
}, { "../../../errors": 15 }], 25: [function(e, t2) {
|
|
1983
|
-
t2.exports = function() {
|
|
1984
|
-
throw new Error("Readable.from is not available in the browser");
|
|
1985
|
-
};
|
|
1986
|
-
}, {}], 26: [function(e, t2) {
|
|
1987
|
-
"use strict";
|
|
1988
|
-
function n2(e2) {
|
|
1989
|
-
var t3 = false;
|
|
1990
|
-
return function() {
|
|
1991
|
-
t3 || (t3 = true, e2.apply(void 0, arguments));
|
|
1992
|
-
};
|
|
1993
|
-
}
|
|
1994
|
-
function r2(e2) {
|
|
1995
|
-
if (e2) throw e2;
|
|
1996
|
-
}
|
|
1997
|
-
function a(e2) {
|
|
1998
|
-
return e2.setHeader && "function" == typeof e2.abort;
|
|
1999
|
-
}
|
|
2000
|
-
function o(t3, r3, o2, i2) {
|
|
2001
|
-
i2 = n2(i2);
|
|
2002
|
-
var d2 = false;
|
|
2003
|
-
t3.on("close", function() {
|
|
2004
|
-
d2 = true;
|
|
2005
|
-
}), l === void 0 && (l = e("./end-of-stream")), l(t3, { readable: r3, writable: o2 }, function(e2) {
|
|
2006
|
-
return e2 ? i2(e2) : void (d2 = true, i2());
|
|
2007
|
-
});
|
|
2008
|
-
var s2 = false;
|
|
2009
|
-
return function(e2) {
|
|
2010
|
-
if (!d2) return s2 ? void 0 : (s2 = true, a(t3) ? t3.abort() : "function" == typeof t3.destroy ? t3.destroy() : void i2(e2 || new p("pipe")));
|
|
2011
|
-
};
|
|
2012
|
-
}
|
|
2013
|
-
function i(e2) {
|
|
2014
|
-
e2();
|
|
2015
|
-
}
|
|
2016
|
-
function d(e2, t3) {
|
|
2017
|
-
return e2.pipe(t3);
|
|
2018
|
-
}
|
|
2019
|
-
function s(e2) {
|
|
2020
|
-
return e2.length ? "function" == typeof e2[e2.length - 1] ? e2.pop() : r2 : r2;
|
|
2021
|
-
}
|
|
2022
|
-
var l, c = e("../../../errors").codes, u = c.ERR_MISSING_ARGS, p = c.ERR_STREAM_DESTROYED;
|
|
2023
|
-
t2.exports = function() {
|
|
2024
|
-
for (var e2 = arguments.length, t3 = Array(e2), n3 = 0; n3 < e2; n3++) t3[n3] = arguments[n3];
|
|
2025
|
-
var r3 = s(t3);
|
|
2026
|
-
if (Array.isArray(t3[0]) && (t3 = t3[0]), 2 > t3.length) throw new u("streams");
|
|
2027
|
-
var a2, l2 = t3.map(function(e3, n4) {
|
|
2028
|
-
var d2 = n4 < t3.length - 1;
|
|
2029
|
-
return o(e3, d2, 0 < n4, function(e4) {
|
|
2030
|
-
a2 || (a2 = e4), e4 && l2.forEach(i), d2 || (l2.forEach(i), r3(a2));
|
|
2031
|
-
});
|
|
2032
|
-
});
|
|
2033
|
-
return t3.reduce(d);
|
|
2034
|
-
};
|
|
2035
|
-
}, { "../../../errors": 15, "./end-of-stream": 24 }], 27: [function(e, n2) {
|
|
2036
|
-
"use strict";
|
|
2037
|
-
function r2(e2, t2, n3) {
|
|
2038
|
-
return null == e2.highWaterMark ? t2 ? e2[n3] : null : e2.highWaterMark;
|
|
2039
|
-
}
|
|
2040
|
-
var a = e("../../../errors").codes.ERR_INVALID_OPT_VALUE;
|
|
2041
|
-
n2.exports = { getHighWaterMark: function(e2, n3, o, i) {
|
|
2042
|
-
var d = r2(n3, i, o);
|
|
2043
|
-
if (null != d) {
|
|
2044
|
-
if (!(isFinite(d) && t(d) === d) || 0 > d) {
|
|
2045
|
-
var s = i ? o : "highWaterMark";
|
|
2046
|
-
throw new a(s, d);
|
|
2047
|
-
}
|
|
2048
|
-
return t(d);
|
|
2049
|
-
}
|
|
2050
|
-
return e2.objectMode ? 16 : 16384;
|
|
2051
|
-
} };
|
|
2052
|
-
}, { "../../../errors": 15 }], 28: [function(e, t2) {
|
|
2053
|
-
t2.exports = e("events").EventEmitter;
|
|
2054
|
-
}, { events: 7 }], 29: [function(e, t2, n2) {
|
|
2055
|
-
n2 = t2.exports = e("./lib/_stream_readable.js"), n2.Stream = n2, n2.Readable = n2, n2.Writable = e("./lib/_stream_writable.js"), n2.Duplex = e("./lib/_stream_duplex.js"), n2.Transform = e("./lib/_stream_transform.js"), n2.PassThrough = e("./lib/_stream_passthrough.js"), n2.finished = e("./lib/internal/streams/end-of-stream.js"), n2.pipeline = e("./lib/internal/streams/pipeline.js");
|
|
2056
|
-
}, { "./lib/_stream_duplex.js": 16, "./lib/_stream_passthrough.js": 17, "./lib/_stream_readable.js": 18, "./lib/_stream_transform.js": 19, "./lib/_stream_writable.js": 20, "./lib/internal/streams/end-of-stream.js": 24, "./lib/internal/streams/pipeline.js": 26 }], 30: [function(e, t2, n2) {
|
|
2057
|
-
function r2(e2, t3) {
|
|
2058
|
-
for (var n3 in e2) t3[n3] = e2[n3];
|
|
2059
|
-
}
|
|
2060
|
-
function a(e2, t3, n3) {
|
|
2061
|
-
return i(e2, t3, n3);
|
|
2062
|
-
}
|
|
2063
|
-
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
2064
|
-
var o = e("buffer"), i = o.Buffer;
|
|
2065
|
-
i.from && i.alloc && i.allocUnsafe && i.allocUnsafeSlow ? t2.exports = o : (r2(o, n2), n2.Buffer = a), a.prototype = Object.create(i.prototype), r2(i, a), a.from = function(e2, t3, n3) {
|
|
2066
|
-
if ("number" == typeof e2) throw new TypeError("Argument must not be a number");
|
|
2067
|
-
return i(e2, t3, n3);
|
|
2068
|
-
}, a.alloc = function(e2, t3, n3) {
|
|
2069
|
-
if ("number" != typeof e2) throw new TypeError("Argument must be a number");
|
|
2070
|
-
var r3 = i(e2);
|
|
2071
|
-
return void 0 === t3 ? r3.fill(0) : "string" == typeof n3 ? r3.fill(t3, n3) : r3.fill(t3), r3;
|
|
2072
|
-
}, a.allocUnsafe = function(e2) {
|
|
2073
|
-
if ("number" != typeof e2) throw new TypeError("Argument must be a number");
|
|
2074
|
-
return i(e2);
|
|
2075
|
-
}, a.allocUnsafeSlow = function(e2) {
|
|
2076
|
-
if ("number" != typeof e2) throw new TypeError("Argument must be a number");
|
|
2077
|
-
return o.SlowBuffer(e2);
|
|
2078
|
-
};
|
|
2079
|
-
}, { buffer: 3 }], 31: [function(e, t2, n2) {
|
|
2080
|
-
"use strict";
|
|
2081
|
-
function r2(e2) {
|
|
2082
|
-
if (!e2) return "utf8";
|
|
2083
|
-
for (var t3; ; ) switch (e2) {
|
|
2084
|
-
case "utf8":
|
|
2085
|
-
case "utf-8":
|
|
2086
|
-
return "utf8";
|
|
2087
|
-
case "ucs2":
|
|
2088
|
-
case "ucs-2":
|
|
2089
|
-
case "utf16le":
|
|
2090
|
-
case "utf-16le":
|
|
2091
|
-
return "utf16le";
|
|
2092
|
-
case "latin1":
|
|
2093
|
-
case "binary":
|
|
2094
|
-
return "latin1";
|
|
2095
|
-
case "base64":
|
|
2096
|
-
case "ascii":
|
|
2097
|
-
case "hex":
|
|
2098
|
-
return e2;
|
|
2099
|
-
default:
|
|
2100
|
-
if (t3) return;
|
|
2101
|
-
e2 = ("" + e2).toLowerCase(), t3 = true;
|
|
2102
|
-
}
|
|
2103
|
-
}
|
|
2104
|
-
function a(e2) {
|
|
2105
|
-
var t3 = r2(e2);
|
|
2106
|
-
if ("string" != typeof t3 && (m.isEncoding === b || !b(e2))) throw new Error("Unknown encoding: " + e2);
|
|
2107
|
-
return t3 || e2;
|
|
2108
|
-
}
|
|
2109
|
-
function o(e2) {
|
|
2110
|
-
this.encoding = a(e2);
|
|
2111
|
-
var t3;
|
|
2112
|
-
switch (this.encoding) {
|
|
2113
|
-
case "utf16le":
|
|
2114
|
-
this.text = u, this.end = p, t3 = 4;
|
|
2115
|
-
break;
|
|
2116
|
-
case "utf8":
|
|
2117
|
-
this.fillLast = c, t3 = 4;
|
|
2118
|
-
break;
|
|
2119
|
-
case "base64":
|
|
2120
|
-
this.text = f, this.end = g, t3 = 3;
|
|
2121
|
-
break;
|
|
2122
|
-
default:
|
|
2123
|
-
return this.write = _, void (this.end = h);
|
|
2124
|
-
}
|
|
2125
|
-
this.lastNeed = 0, this.lastTotal = 0, this.lastChar = m.allocUnsafe(t3);
|
|
2126
|
-
}
|
|
2127
|
-
function d(e2) {
|
|
2128
|
-
if (127 >= e2) return 0;
|
|
2129
|
-
return 6 == e2 >> 5 ? 2 : 14 == e2 >> 4 ? 3 : 30 == e2 >> 3 ? 4 : 2 == e2 >> 6 ? -1 : -2;
|
|
2130
|
-
}
|
|
2131
|
-
function s(e2, t3, n3) {
|
|
2132
|
-
var r3 = t3.length - 1;
|
|
2133
|
-
if (r3 < n3) return 0;
|
|
2134
|
-
var a2 = d(t3[r3]);
|
|
2135
|
-
return 0 <= a2 ? (0 < a2 && (e2.lastNeed = a2 - 1), a2) : --r3 < n3 || -2 === a2 ? 0 : (a2 = d(t3[r3]), 0 <= a2) ? (0 < a2 && (e2.lastNeed = a2 - 2), a2) : --r3 < n3 || -2 === a2 ? 0 : (a2 = d(t3[r3]), 0 <= a2 ? (0 < a2 && (2 === a2 ? a2 = 0 : e2.lastNeed = a2 - 3), a2) : 0);
|
|
2136
|
-
}
|
|
2137
|
-
function l(e2, t3) {
|
|
2138
|
-
if (128 != (192 & t3[0])) return e2.lastNeed = 0, "�";
|
|
2139
|
-
if (1 < e2.lastNeed && 1 < t3.length) {
|
|
2140
|
-
if (128 != (192 & t3[1])) return e2.lastNeed = 1, "�";
|
|
2141
|
-
if (2 < e2.lastNeed && 2 < t3.length && 128 != (192 & t3[2])) return e2.lastNeed = 2, "�";
|
|
2142
|
-
}
|
|
2143
|
-
}
|
|
2144
|
-
function c(e2) {
|
|
2145
|
-
var t3 = this.lastTotal - this.lastNeed, n3 = l(this, e2, t3);
|
|
2146
|
-
return void 0 === n3 ? this.lastNeed <= e2.length ? (e2.copy(this.lastChar, t3, 0, this.lastNeed), this.lastChar.toString(this.encoding, 0, this.lastTotal)) : void (e2.copy(this.lastChar, t3, 0, e2.length), this.lastNeed -= e2.length) : n3;
|
|
2147
|
-
}
|
|
2148
|
-
function u(e2, t3) {
|
|
2149
|
-
if (0 == (e2.length - t3) % 2) {
|
|
2150
|
-
var n3 = e2.toString("utf16le", t3);
|
|
2151
|
-
if (n3) {
|
|
2152
|
-
var r3 = n3.charCodeAt(n3.length - 1);
|
|
2153
|
-
if (55296 <= r3 && 56319 >= r3) return this.lastNeed = 2, this.lastTotal = 4, this.lastChar[0] = e2[e2.length - 2], this.lastChar[1] = e2[e2.length - 1], n3.slice(0, -1);
|
|
2154
|
-
}
|
|
2155
|
-
return n3;
|
|
2156
|
-
}
|
|
2157
|
-
return this.lastNeed = 1, this.lastTotal = 2, this.lastChar[0] = e2[e2.length - 1], e2.toString("utf16le", t3, e2.length - 1);
|
|
2158
|
-
}
|
|
2159
|
-
function p(e2) {
|
|
2160
|
-
var t3 = e2 && e2.length ? this.write(e2) : "";
|
|
2161
|
-
if (this.lastNeed) {
|
|
2162
|
-
var n3 = this.lastTotal - this.lastNeed;
|
|
2163
|
-
return t3 + this.lastChar.toString("utf16le", 0, n3);
|
|
2164
|
-
}
|
|
2165
|
-
return t3;
|
|
2166
|
-
}
|
|
2167
|
-
function f(e2, t3) {
|
|
2168
|
-
var r3 = (e2.length - t3) % 3;
|
|
2169
|
-
return 0 == r3 ? e2.toString("base64", t3) : (this.lastNeed = 3 - r3, this.lastTotal = 3, 1 == r3 ? this.lastChar[0] = e2[e2.length - 1] : (this.lastChar[0] = e2[e2.length - 2], this.lastChar[1] = e2[e2.length - 1]), e2.toString("base64", t3, e2.length - r3));
|
|
2170
|
-
}
|
|
2171
|
-
function g(e2) {
|
|
2172
|
-
var t3 = e2 && e2.length ? this.write(e2) : "";
|
|
2173
|
-
return this.lastNeed ? t3 + this.lastChar.toString("base64", 0, 3 - this.lastNeed) : t3;
|
|
2174
|
-
}
|
|
2175
|
-
function _(e2) {
|
|
2176
|
-
return e2.toString(this.encoding);
|
|
2177
|
-
}
|
|
2178
|
-
function h(e2) {
|
|
2179
|
-
return e2 && e2.length ? this.write(e2) : "";
|
|
2180
|
-
}
|
|
2181
|
-
var m = e("safe-buffer").Buffer, b = m.isEncoding || function(e2) {
|
|
2182
|
-
switch (e2 = "" + e2, e2 && e2.toLowerCase()) {
|
|
2183
|
-
case "hex":
|
|
2184
|
-
case "utf8":
|
|
2185
|
-
case "utf-8":
|
|
2186
|
-
case "ascii":
|
|
2187
|
-
case "binary":
|
|
2188
|
-
case "base64":
|
|
2189
|
-
case "ucs2":
|
|
2190
|
-
case "ucs-2":
|
|
2191
|
-
case "utf16le":
|
|
2192
|
-
case "utf-16le":
|
|
2193
|
-
case "raw":
|
|
2194
|
-
return true;
|
|
2195
|
-
default:
|
|
2196
|
-
return false;
|
|
2197
|
-
}
|
|
2198
|
-
};
|
|
2199
|
-
n2.StringDecoder = o, o.prototype.write = function(e2) {
|
|
2200
|
-
if (0 === e2.length) return "";
|
|
2201
|
-
var t3, n3;
|
|
2202
|
-
if (this.lastNeed) {
|
|
2203
|
-
if (t3 = this.fillLast(e2), void 0 === t3) return "";
|
|
2204
|
-
n3 = this.lastNeed, this.lastNeed = 0;
|
|
2205
|
-
} else n3 = 0;
|
|
2206
|
-
return n3 < e2.length ? t3 ? t3 + this.text(e2, n3) : this.text(e2, n3) : t3 || "";
|
|
2207
|
-
}, o.prototype.end = function(e2) {
|
|
2208
|
-
var t3 = e2 && e2.length ? this.write(e2) : "";
|
|
2209
|
-
return this.lastNeed ? t3 + "�" : t3;
|
|
2210
|
-
}, o.prototype.text = function(e2, t3) {
|
|
2211
|
-
var n3 = s(this, e2, t3);
|
|
2212
|
-
if (!this.lastNeed) return e2.toString("utf8", t3);
|
|
2213
|
-
this.lastTotal = n3;
|
|
2214
|
-
var r3 = e2.length - (n3 - this.lastNeed);
|
|
2215
|
-
return e2.copy(this.lastChar, 0, r3), e2.toString("utf8", t3, r3);
|
|
2216
|
-
}, o.prototype.fillLast = function(e2) {
|
|
2217
|
-
return this.lastNeed <= e2.length ? (e2.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed), this.lastChar.toString(this.encoding, 0, this.lastTotal)) : void (e2.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, e2.length), this.lastNeed -= e2.length);
|
|
2218
|
-
};
|
|
2219
|
-
}, { "safe-buffer": 30 }], 32: [function(e, t2) {
|
|
2220
|
-
(function(e2) {
|
|
2221
|
-
(function() {
|
|
2222
|
-
function n2(t3) {
|
|
2223
|
-
try {
|
|
2224
|
-
if (!e2.localStorage) return false;
|
|
2225
|
-
} catch (e3) {
|
|
2226
|
-
return false;
|
|
2227
|
-
}
|
|
2228
|
-
var n3 = e2.localStorage[t3];
|
|
2229
|
-
return null != n3 && "true" === (n3 + "").toLowerCase();
|
|
2230
|
-
}
|
|
2231
|
-
t2.exports = function(e3, t3) {
|
|
2232
|
-
function r2() {
|
|
2233
|
-
if (!a) {
|
|
2234
|
-
if (n2("throwDeprecation")) throw new Error(t3);
|
|
2235
|
-
else n2("traceDeprecation") ? console.trace(t3) : console.warn(t3);
|
|
2236
|
-
a = true;
|
|
2237
|
-
}
|
|
2238
|
-
return e3.apply(this, arguments);
|
|
2239
|
-
}
|
|
2240
|
-
if (n2("noDeprecation")) return e3;
|
|
2241
|
-
var a = false;
|
|
2242
|
-
return r2;
|
|
2243
|
-
};
|
|
2244
|
-
}).call(this);
|
|
2245
|
-
}).call(this, "undefined" == typeof _commonjsHelpers.commonjsGlobal ? "undefined" == typeof self ? "undefined" == typeof window ? {} : window : self : _commonjsHelpers.commonjsGlobal);
|
|
2246
|
-
}, {}], "/": [function(e, t2) {
|
|
2247
|
-
function n2(e2) {
|
|
2248
|
-
return e2.replace(/a=ice-options:trickle\s\n/g, "");
|
|
2249
|
-
}
|
|
2250
|
-
function r2(e2) {
|
|
2251
|
-
console.warn(e2);
|
|
2252
|
-
}
|
|
2253
|
-
/*! simple-peer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
2254
|
-
const a = e("debug")("simple-peer"), o = e("get-browser-rtc"), i = e("randombytes"), d = e("readable-stream"), s = e("queue-microtask"), l = e("err-code"), { Buffer: c } = e("buffer"), u = 65536;
|
|
2255
|
-
class p extends d.Duplex {
|
|
2256
|
-
constructor(e2) {
|
|
2257
|
-
if (e2 = Object.assign({ allowHalfOpen: false }, e2), super(e2), this._id = i(4).toString("hex").slice(0, 7), this._debug("new peer %o", e2), this.channelName = e2.initiator ? e2.channelName || i(20).toString("hex") : null, this.initiator = e2.initiator || false, this.channelConfig = e2.channelConfig || p.channelConfig, this.channelNegotiated = this.channelConfig.negotiated, this.config = Object.assign({}, p.config, e2.config), this.offerOptions = e2.offerOptions || {}, this.answerOptions = e2.answerOptions || {}, this.sdpTransform = e2.sdpTransform || ((e3) => e3), this.streams = e2.streams || (e2.stream ? [e2.stream] : []), this.trickle = void 0 === e2.trickle || e2.trickle, this.allowHalfTrickle = void 0 !== e2.allowHalfTrickle && e2.allowHalfTrickle, this.iceCompleteTimeout = e2.iceCompleteTimeout || 5e3, this.destroyed = false, this.destroying = false, this._connected = false, this.remoteAddress = void 0, this.remoteFamily = void 0, this.remotePort = void 0, this.localAddress = void 0, this.localFamily = void 0, this.localPort = void 0, this._wrtc = e2.wrtc && "object" == typeof e2.wrtc ? e2.wrtc : o(), !this._wrtc) if ("undefined" == typeof window) throw l(new Error("No WebRTC support: Specify `opts.wrtc` option in this environment"), "ERR_WEBRTC_SUPPORT");
|
|
2258
|
-
else throw l(new Error("No WebRTC support: Not a supported browser"), "ERR_WEBRTC_SUPPORT");
|
|
2259
|
-
this._pcReady = false, this._channelReady = false, this._iceComplete = false, this._iceCompleteTimer = null, this._channel = null, this._pendingCandidates = [], this._isNegotiating = false, this._firstNegotiation = true, this._batchedNegotiation = false, this._queuedNegotiation = false, this._sendersAwaitingStable = [], this._senderMap = /* @__PURE__ */ new Map(), this._closingInterval = null, this._remoteTracks = [], this._remoteStreams = [], this._chunk = null, this._cb = null, this._interval = null;
|
|
2260
|
-
try {
|
|
2261
|
-
this._pc = new this._wrtc.RTCPeerConnection(this.config);
|
|
2262
|
-
} catch (e3) {
|
|
2263
|
-
return void this.destroy(l(e3, "ERR_PC_CONSTRUCTOR"));
|
|
2264
|
-
}
|
|
2265
|
-
this._isReactNativeWebrtc = "number" == typeof this._pc._peerConnectionId, this._pc.oniceconnectionstatechange = () => {
|
|
2266
|
-
this._onIceStateChange();
|
|
2267
|
-
}, this._pc.onicegatheringstatechange = () => {
|
|
2268
|
-
this._onIceStateChange();
|
|
2269
|
-
}, this._pc.onconnectionstatechange = () => {
|
|
2270
|
-
this._onConnectionStateChange();
|
|
2271
|
-
}, this._pc.onsignalingstatechange = () => {
|
|
2272
|
-
this._onSignalingStateChange();
|
|
2273
|
-
}, this._pc.onicecandidate = (e3) => {
|
|
2274
|
-
this._onIceCandidate(e3);
|
|
2275
|
-
}, "object" == typeof this._pc.peerIdentity && this._pc.peerIdentity.catch((e3) => {
|
|
2276
|
-
this.destroy(l(e3, "ERR_PC_PEER_IDENTITY"));
|
|
2277
|
-
}), this.initiator || this.channelNegotiated ? this._setupData({ channel: this._pc.createDataChannel(this.channelName, this.channelConfig) }) : this._pc.ondatachannel = (e3) => {
|
|
2278
|
-
this._setupData(e3);
|
|
2279
|
-
}, this.streams && this.streams.forEach((e3) => {
|
|
2280
|
-
this.addStream(e3);
|
|
2281
|
-
}), this._pc.ontrack = (e3) => {
|
|
2282
|
-
this._onTrack(e3);
|
|
2283
|
-
}, this._debug("initial negotiation"), this._needsNegotiation(), this._onFinishBound = () => {
|
|
2284
|
-
this._onFinish();
|
|
2285
|
-
}, this.once("finish", this._onFinishBound);
|
|
2286
|
-
}
|
|
2287
|
-
get bufferSize() {
|
|
2288
|
-
return this._channel && this._channel.bufferedAmount || 0;
|
|
2289
|
-
}
|
|
2290
|
-
get connected() {
|
|
2291
|
-
return this._connected && "open" === this._channel.readyState;
|
|
2292
|
-
}
|
|
2293
|
-
address() {
|
|
2294
|
-
return { port: this.localPort, family: this.localFamily, address: this.localAddress };
|
|
2295
|
-
}
|
|
2296
|
-
signal(e2) {
|
|
2297
|
-
if (!this.destroying) {
|
|
2298
|
-
if (this.destroyed) throw l(new Error("cannot signal after peer is destroyed"), "ERR_DESTROYED");
|
|
2299
|
-
if ("string" == typeof e2) try {
|
|
2300
|
-
e2 = JSON.parse(e2);
|
|
2301
|
-
} catch (t3) {
|
|
2302
|
-
e2 = {};
|
|
2303
|
-
}
|
|
2304
|
-
this._debug("signal()"), e2.renegotiate && this.initiator && (this._debug("got request to renegotiate"), this._needsNegotiation()), e2.transceiverRequest && this.initiator && (this._debug("got request for transceiver"), this.addTransceiver(e2.transceiverRequest.kind, e2.transceiverRequest.init)), e2.candidate && (this._pc.remoteDescription && this._pc.remoteDescription.type ? this._addIceCandidate(e2.candidate) : this._pendingCandidates.push(e2.candidate)), e2.sdp && this._pc.setRemoteDescription(new this._wrtc.RTCSessionDescription(e2)).then(() => {
|
|
2305
|
-
this.destroyed || (this._pendingCandidates.forEach((e3) => {
|
|
2306
|
-
this._addIceCandidate(e3);
|
|
2307
|
-
}), this._pendingCandidates = [], "offer" === this._pc.remoteDescription.type && this._createAnswer());
|
|
2308
|
-
}).catch((e3) => {
|
|
2309
|
-
this.destroy(l(e3, "ERR_SET_REMOTE_DESCRIPTION"));
|
|
2310
|
-
}), e2.sdp || e2.candidate || e2.renegotiate || e2.transceiverRequest || this.destroy(l(new Error("signal() called with invalid signal data"), "ERR_SIGNALING"));
|
|
2311
|
-
}
|
|
2312
|
-
}
|
|
2313
|
-
_addIceCandidate(e2) {
|
|
2314
|
-
const t3 = new this._wrtc.RTCIceCandidate(e2);
|
|
2315
|
-
this._pc.addIceCandidate(t3).catch((e3) => {
|
|
2316
|
-
!t3.address || t3.address.endsWith(".local") ? r2("Ignoring unsupported ICE candidate.") : this.destroy(l(e3, "ERR_ADD_ICE_CANDIDATE"));
|
|
2317
|
-
});
|
|
2318
|
-
}
|
|
2319
|
-
send(e2) {
|
|
2320
|
-
if (!this.destroying) {
|
|
2321
|
-
if (this.destroyed) throw l(new Error("cannot send after peer is destroyed"), "ERR_DESTROYED");
|
|
2322
|
-
this._channel.send(e2);
|
|
2323
|
-
}
|
|
2324
|
-
}
|
|
2325
|
-
addTransceiver(e2, t3) {
|
|
2326
|
-
if (!this.destroying) {
|
|
2327
|
-
if (this.destroyed) throw l(new Error("cannot addTransceiver after peer is destroyed"), "ERR_DESTROYED");
|
|
2328
|
-
if (this._debug("addTransceiver()"), this.initiator) try {
|
|
2329
|
-
this._pc.addTransceiver(e2, t3), this._needsNegotiation();
|
|
2330
|
-
} catch (e3) {
|
|
2331
|
-
this.destroy(l(e3, "ERR_ADD_TRANSCEIVER"));
|
|
2332
|
-
}
|
|
2333
|
-
else this.emit("signal", { type: "transceiverRequest", transceiverRequest: { kind: e2, init: t3 } });
|
|
2334
|
-
}
|
|
2335
|
-
}
|
|
2336
|
-
addStream(e2) {
|
|
2337
|
-
if (!this.destroying) {
|
|
2338
|
-
if (this.destroyed) throw l(new Error("cannot addStream after peer is destroyed"), "ERR_DESTROYED");
|
|
2339
|
-
this._debug("addStream()"), e2.getTracks().forEach((t3) => {
|
|
2340
|
-
this.addTrack(t3, e2);
|
|
2341
|
-
});
|
|
2342
|
-
}
|
|
2343
|
-
}
|
|
2344
|
-
addTrack(e2, t3) {
|
|
2345
|
-
if (this.destroying) return;
|
|
2346
|
-
if (this.destroyed) throw l(new Error("cannot addTrack after peer is destroyed"), "ERR_DESTROYED");
|
|
2347
|
-
this._debug("addTrack()");
|
|
2348
|
-
const n3 = this._senderMap.get(e2) || /* @__PURE__ */ new Map();
|
|
2349
|
-
let r3 = n3.get(t3);
|
|
2350
|
-
if (!r3) r3 = this._pc.addTrack(e2, t3), n3.set(t3, r3), this._senderMap.set(e2, n3), this._needsNegotiation();
|
|
2351
|
-
else if (r3.removed) throw l(new Error("Track has been removed. You should enable/disable tracks that you want to re-add."), "ERR_SENDER_REMOVED");
|
|
2352
|
-
else throw l(new Error("Track has already been added to that stream."), "ERR_SENDER_ALREADY_ADDED");
|
|
2353
|
-
}
|
|
2354
|
-
replaceTrack(e2, t3, n3) {
|
|
2355
|
-
if (this.destroying) return;
|
|
2356
|
-
if (this.destroyed) throw l(new Error("cannot replaceTrack after peer is destroyed"), "ERR_DESTROYED");
|
|
2357
|
-
this._debug("replaceTrack()");
|
|
2358
|
-
const r3 = this._senderMap.get(e2), a2 = r3 ? r3.get(n3) : null;
|
|
2359
|
-
if (!a2) throw l(new Error("Cannot replace track that was never added."), "ERR_TRACK_NOT_ADDED");
|
|
2360
|
-
t3 && this._senderMap.set(t3, r3), null == a2.replaceTrack ? this.destroy(l(new Error("replaceTrack is not supported in this browser"), "ERR_UNSUPPORTED_REPLACETRACK")) : a2.replaceTrack(t3);
|
|
2361
|
-
}
|
|
2362
|
-
removeTrack(e2, t3) {
|
|
2363
|
-
if (this.destroying) return;
|
|
2364
|
-
if (this.destroyed) throw l(new Error("cannot removeTrack after peer is destroyed"), "ERR_DESTROYED");
|
|
2365
|
-
this._debug("removeSender()");
|
|
2366
|
-
const n3 = this._senderMap.get(e2), r3 = n3 ? n3.get(t3) : null;
|
|
2367
|
-
if (!r3) throw l(new Error("Cannot remove track that was never added."), "ERR_TRACK_NOT_ADDED");
|
|
2368
|
-
try {
|
|
2369
|
-
r3.removed = true, this._pc.removeTrack(r3);
|
|
2370
|
-
} catch (e3) {
|
|
2371
|
-
"NS_ERROR_UNEXPECTED" === e3.name ? this._sendersAwaitingStable.push(r3) : this.destroy(l(e3, "ERR_REMOVE_TRACK"));
|
|
2372
|
-
}
|
|
2373
|
-
this._needsNegotiation();
|
|
2374
|
-
}
|
|
2375
|
-
removeStream(e2) {
|
|
2376
|
-
if (!this.destroying) {
|
|
2377
|
-
if (this.destroyed) throw l(new Error("cannot removeStream after peer is destroyed"), "ERR_DESTROYED");
|
|
2378
|
-
this._debug("removeSenders()"), e2.getTracks().forEach((t3) => {
|
|
2379
|
-
this.removeTrack(t3, e2);
|
|
2380
|
-
});
|
|
2381
|
-
}
|
|
2382
|
-
}
|
|
2383
|
-
_needsNegotiation() {
|
|
2384
|
-
this._debug("_needsNegotiation"), this._batchedNegotiation || (this._batchedNegotiation = true, s(() => {
|
|
2385
|
-
this._batchedNegotiation = false, this.initiator || !this._firstNegotiation ? (this._debug("starting batched negotiation"), this.negotiate()) : this._debug("non-initiator initial negotiation request discarded"), this._firstNegotiation = false;
|
|
2386
|
-
}));
|
|
2387
|
-
}
|
|
2388
|
-
negotiate() {
|
|
2389
|
-
if (!this.destroying) {
|
|
2390
|
-
if (this.destroyed) throw l(new Error("cannot negotiate after peer is destroyed"), "ERR_DESTROYED");
|
|
2391
|
-
this.initiator ? this._isNegotiating ? (this._queuedNegotiation = true, this._debug("already negotiating, queueing")) : (this._debug("start negotiation"), setTimeout(() => {
|
|
2392
|
-
this._createOffer();
|
|
2393
|
-
}, 0)) : this._isNegotiating ? (this._queuedNegotiation = true, this._debug("already negotiating, queueing")) : (this._debug("requesting negotiation from initiator"), this.emit("signal", { type: "renegotiate", renegotiate: true })), this._isNegotiating = true;
|
|
2394
|
-
}
|
|
2395
|
-
}
|
|
2396
|
-
destroy(e2) {
|
|
2397
|
-
this._destroy(e2, () => {
|
|
2398
|
-
});
|
|
2399
|
-
}
|
|
2400
|
-
_destroy(e2, t3) {
|
|
2401
|
-
this.destroyed || this.destroying || (this.destroying = true, this._debug("destroying (error: %s)", e2 && (e2.message || e2)), s(() => {
|
|
2402
|
-
if (this.destroyed = true, this.destroying = false, this._debug("destroy (error: %s)", e2 && (e2.message || e2)), this.readable = this.writable = false, this._readableState.ended || this.push(null), this._writableState.finished || this.end(), this._connected = false, this._pcReady = false, this._channelReady = false, this._remoteTracks = null, this._remoteStreams = null, this._senderMap = null, clearInterval(this._closingInterval), this._closingInterval = null, clearInterval(this._interval), this._interval = null, this._chunk = null, this._cb = null, this._onFinishBound && this.removeListener("finish", this._onFinishBound), this._onFinishBound = null, this._channel) {
|
|
2403
|
-
try {
|
|
2404
|
-
this._channel.close();
|
|
2405
|
-
} catch (e3) {
|
|
2406
|
-
}
|
|
2407
|
-
this._channel.onmessage = null, this._channel.onopen = null, this._channel.onclose = null, this._channel.onerror = null;
|
|
2408
|
-
}
|
|
2409
|
-
if (this._pc) {
|
|
2410
|
-
try {
|
|
2411
|
-
this._pc.close();
|
|
2412
|
-
} catch (e3) {
|
|
2413
|
-
}
|
|
2414
|
-
this._pc.oniceconnectionstatechange = null, this._pc.onicegatheringstatechange = null, this._pc.onsignalingstatechange = null, this._pc.onicecandidate = null, this._pc.ontrack = null, this._pc.ondatachannel = null;
|
|
2415
|
-
}
|
|
2416
|
-
this._pc = null, this._channel = null, e2 && this.emit("error", e2), this.emit("close"), t3();
|
|
2417
|
-
}));
|
|
2418
|
-
}
|
|
2419
|
-
_setupData(e2) {
|
|
2420
|
-
if (!e2.channel) return this.destroy(l(new Error("Data channel event is missing `channel` property"), "ERR_DATA_CHANNEL"));
|
|
2421
|
-
this._channel = e2.channel, this._channel.binaryType = "arraybuffer", "number" == typeof this._channel.bufferedAmountLowThreshold && (this._channel.bufferedAmountLowThreshold = u), this.channelName = this._channel.label, this._channel.onmessage = (e3) => {
|
|
2422
|
-
this._onChannelMessage(e3);
|
|
2423
|
-
}, this._channel.onbufferedamountlow = () => {
|
|
2424
|
-
this._onChannelBufferedAmountLow();
|
|
2425
|
-
}, this._channel.onopen = () => {
|
|
2426
|
-
this._onChannelOpen();
|
|
2427
|
-
}, this._channel.onclose = () => {
|
|
2428
|
-
this._onChannelClose();
|
|
2429
|
-
}, this._channel.onerror = (e3) => {
|
|
2430
|
-
const t4 = e3.error instanceof Error ? e3.error : new Error(`Datachannel error: ${e3.message} ${e3.filename}:${e3.lineno}:${e3.colno}`);
|
|
2431
|
-
this.destroy(l(t4, "ERR_DATA_CHANNEL"));
|
|
2432
|
-
};
|
|
2433
|
-
let t3 = false;
|
|
2434
|
-
this._closingInterval = setInterval(() => {
|
|
2435
|
-
this._channel && "closing" === this._channel.readyState ? (t3 && this._onChannelClose(), t3 = true) : t3 = false;
|
|
2436
|
-
}, 5e3);
|
|
2437
|
-
}
|
|
2438
|
-
_read() {
|
|
2439
|
-
}
|
|
2440
|
-
_write(e2, t3, n3) {
|
|
2441
|
-
if (this.destroyed) return n3(l(new Error("cannot write after peer is destroyed"), "ERR_DATA_CHANNEL"));
|
|
2442
|
-
if (this._connected) {
|
|
2443
|
-
try {
|
|
2444
|
-
this.send(e2);
|
|
2445
|
-
} catch (e3) {
|
|
2446
|
-
return this.destroy(l(e3, "ERR_DATA_CHANNEL"));
|
|
2447
|
-
}
|
|
2448
|
-
this._channel.bufferedAmount > u ? (this._debug("start backpressure: bufferedAmount %d", this._channel.bufferedAmount), this._cb = n3) : n3(null);
|
|
2449
|
-
} else this._debug("write before connect"), this._chunk = e2, this._cb = n3;
|
|
2450
|
-
}
|
|
2451
|
-
_onFinish() {
|
|
2452
|
-
if (!this.destroyed) {
|
|
2453
|
-
const e2 = () => {
|
|
2454
|
-
setTimeout(() => this.destroy(), 1e3);
|
|
2455
|
-
};
|
|
2456
|
-
this._connected ? e2() : this.once("connect", e2);
|
|
2457
|
-
}
|
|
2458
|
-
}
|
|
2459
|
-
_startIceCompleteTimeout() {
|
|
2460
|
-
this.destroyed || this._iceCompleteTimer || (this._debug("started iceComplete timeout"), this._iceCompleteTimer = setTimeout(() => {
|
|
2461
|
-
this._iceComplete || (this._iceComplete = true, this._debug("iceComplete timeout completed"), this.emit("iceTimeout"), this.emit("_iceComplete"));
|
|
2462
|
-
}, this.iceCompleteTimeout));
|
|
2463
|
-
}
|
|
2464
|
-
_createOffer() {
|
|
2465
|
-
this.destroyed || this._pc.createOffer(this.offerOptions).then((e2) => {
|
|
2466
|
-
if (this.destroyed) return;
|
|
2467
|
-
this.trickle || this.allowHalfTrickle || (e2.sdp = n2(e2.sdp)), e2.sdp = this.sdpTransform(e2.sdp);
|
|
2468
|
-
const t3 = () => {
|
|
2469
|
-
if (!this.destroyed) {
|
|
2470
|
-
const t4 = this._pc.localDescription || e2;
|
|
2471
|
-
this._debug("signal"), this.emit("signal", { type: t4.type, sdp: t4.sdp });
|
|
2472
|
-
}
|
|
2473
|
-
};
|
|
2474
|
-
this._pc.setLocalDescription(e2).then(() => {
|
|
2475
|
-
this._debug("createOffer success"), this.destroyed || (this.trickle || this._iceComplete ? t3() : this.once("_iceComplete", t3));
|
|
2476
|
-
}).catch((e3) => {
|
|
2477
|
-
this.destroy(l(e3, "ERR_SET_LOCAL_DESCRIPTION"));
|
|
2478
|
-
});
|
|
2479
|
-
}).catch((e2) => {
|
|
2480
|
-
this.destroy(l(e2, "ERR_CREATE_OFFER"));
|
|
2481
|
-
});
|
|
2482
|
-
}
|
|
2483
|
-
_requestMissingTransceivers() {
|
|
2484
|
-
this._pc.getTransceivers && this._pc.getTransceivers().forEach((e2) => {
|
|
2485
|
-
e2.mid || !e2.sender.track || e2.requested || (e2.requested = true, this.addTransceiver(e2.sender.track.kind));
|
|
2486
|
-
});
|
|
2487
|
-
}
|
|
2488
|
-
_createAnswer() {
|
|
2489
|
-
this.destroyed || this._pc.createAnswer(this.answerOptions).then((e2) => {
|
|
2490
|
-
if (this.destroyed) return;
|
|
2491
|
-
this.trickle || this.allowHalfTrickle || (e2.sdp = n2(e2.sdp)), e2.sdp = this.sdpTransform(e2.sdp);
|
|
2492
|
-
const t3 = () => {
|
|
2493
|
-
if (!this.destroyed) {
|
|
2494
|
-
const t4 = this._pc.localDescription || e2;
|
|
2495
|
-
this._debug("signal"), this.emit("signal", { type: t4.type, sdp: t4.sdp }), this.initiator || this._requestMissingTransceivers();
|
|
2496
|
-
}
|
|
2497
|
-
};
|
|
2498
|
-
this._pc.setLocalDescription(e2).then(() => {
|
|
2499
|
-
this.destroyed || (this.trickle || this._iceComplete ? t3() : this.once("_iceComplete", t3));
|
|
2500
|
-
}).catch((e3) => {
|
|
2501
|
-
this.destroy(l(e3, "ERR_SET_LOCAL_DESCRIPTION"));
|
|
2502
|
-
});
|
|
2503
|
-
}).catch((e2) => {
|
|
2504
|
-
this.destroy(l(e2, "ERR_CREATE_ANSWER"));
|
|
2505
|
-
});
|
|
2506
|
-
}
|
|
2507
|
-
_onConnectionStateChange() {
|
|
2508
|
-
this.destroyed || "failed" === this._pc.connectionState && this.destroy(l(new Error("Connection failed."), "ERR_CONNECTION_FAILURE"));
|
|
2509
|
-
}
|
|
2510
|
-
_onIceStateChange() {
|
|
2511
|
-
if (this.destroyed) return;
|
|
2512
|
-
const e2 = this._pc.iceConnectionState, t3 = this._pc.iceGatheringState;
|
|
2513
|
-
this._debug("iceStateChange (connection: %s) (gathering: %s)", e2, t3), this.emit("iceStateChange", e2, t3), ("connected" === e2 || "completed" === e2) && (this._pcReady = true, this._maybeReady()), "failed" === e2 && this.destroy(l(new Error("Ice connection failed."), "ERR_ICE_CONNECTION_FAILURE")), "closed" === e2 && this.destroy(l(new Error("Ice connection closed."), "ERR_ICE_CONNECTION_CLOSED"));
|
|
2514
|
-
}
|
|
2515
|
-
getStats(e2) {
|
|
2516
|
-
const t3 = (e3) => ("[object Array]" === Object.prototype.toString.call(e3.values) && e3.values.forEach((t4) => {
|
|
2517
|
-
Object.assign(e3, t4);
|
|
2518
|
-
}), e3);
|
|
2519
|
-
0 === this._pc.getStats.length || this._isReactNativeWebrtc ? this._pc.getStats().then((n3) => {
|
|
2520
|
-
const r3 = [];
|
|
2521
|
-
n3.forEach((e3) => {
|
|
2522
|
-
r3.push(t3(e3));
|
|
2523
|
-
}), e2(null, r3);
|
|
2524
|
-
}, (t4) => e2(t4)) : 0 < this._pc.getStats.length ? this._pc.getStats((n3) => {
|
|
2525
|
-
if (this.destroyed) return;
|
|
2526
|
-
const r3 = [];
|
|
2527
|
-
n3.result().forEach((e3) => {
|
|
2528
|
-
const n4 = {};
|
|
2529
|
-
e3.names().forEach((t4) => {
|
|
2530
|
-
n4[t4] = e3.stat(t4);
|
|
2531
|
-
}), n4.id = e3.id, n4.type = e3.type, n4.timestamp = e3.timestamp, r3.push(t3(n4));
|
|
2532
|
-
}), e2(null, r3);
|
|
2533
|
-
}, (t4) => e2(t4)) : e2(null, []);
|
|
2534
|
-
}
|
|
2535
|
-
_maybeReady() {
|
|
2536
|
-
if (this._debug("maybeReady pc %s channel %s", this._pcReady, this._channelReady), this._connected || this._connecting || !this._pcReady || !this._channelReady) return;
|
|
2537
|
-
this._connecting = true;
|
|
2538
|
-
const e2 = () => {
|
|
2539
|
-
this.destroyed || this.getStats((t3, n3) => {
|
|
2540
|
-
if (this.destroyed) return;
|
|
2541
|
-
t3 && (n3 = []);
|
|
2542
|
-
const r3 = {}, a2 = {}, o2 = {};
|
|
2543
|
-
let i2 = false;
|
|
2544
|
-
n3.forEach((e3) => {
|
|
2545
|
-
("remotecandidate" === e3.type || "remote-candidate" === e3.type) && (r3[e3.id] = e3), ("localcandidate" === e3.type || "local-candidate" === e3.type) && (a2[e3.id] = e3), ("candidatepair" === e3.type || "candidate-pair" === e3.type) && (o2[e3.id] = e3);
|
|
2546
|
-
});
|
|
2547
|
-
const d2 = (e3) => {
|
|
2548
|
-
i2 = true;
|
|
2549
|
-
let t4 = a2[e3.localCandidateId];
|
|
2550
|
-
t4 && (t4.ip || t4.address) ? (this.localAddress = t4.ip || t4.address, this.localPort = +t4.port) : t4 && t4.ipAddress ? (this.localAddress = t4.ipAddress, this.localPort = +t4.portNumber) : "string" == typeof e3.googLocalAddress && (t4 = e3.googLocalAddress.split(":"), this.localAddress = t4[0], this.localPort = +t4[1]), this.localAddress && (this.localFamily = this.localAddress.includes(":") ? "IPv6" : "IPv4");
|
|
2551
|
-
let n4 = r3[e3.remoteCandidateId];
|
|
2552
|
-
n4 && (n4.ip || n4.address) ? (this.remoteAddress = n4.ip || n4.address, this.remotePort = +n4.port) : n4 && n4.ipAddress ? (this.remoteAddress = n4.ipAddress, this.remotePort = +n4.portNumber) : "string" == typeof e3.googRemoteAddress && (n4 = e3.googRemoteAddress.split(":"), this.remoteAddress = n4[0], this.remotePort = +n4[1]), this.remoteAddress && (this.remoteFamily = this.remoteAddress.includes(":") ? "IPv6" : "IPv4"), this._debug("connect local: %s:%s remote: %s:%s", this.localAddress, this.localPort, this.remoteAddress, this.remotePort);
|
|
2553
|
-
};
|
|
2554
|
-
if (n3.forEach((e3) => {
|
|
2555
|
-
"transport" === e3.type && e3.selectedCandidatePairId && d2(o2[e3.selectedCandidatePairId]), ("googCandidatePair" === e3.type && "true" === e3.googActiveConnection || ("candidatepair" === e3.type || "candidate-pair" === e3.type) && e3.selected) && d2(e3);
|
|
2556
|
-
}), !i2 && (!Object.keys(o2).length || Object.keys(a2).length)) return void setTimeout(e2, 100);
|
|
2557
|
-
if (this._connecting = false, this._connected = true, this._chunk) {
|
|
2558
|
-
try {
|
|
2559
|
-
this.send(this._chunk);
|
|
2560
|
-
} catch (e4) {
|
|
2561
|
-
return this.destroy(l(e4, "ERR_DATA_CHANNEL"));
|
|
2562
|
-
}
|
|
2563
|
-
this._chunk = null, this._debug('sent chunk from "write before connect"');
|
|
2564
|
-
const e3 = this._cb;
|
|
2565
|
-
this._cb = null, e3(null);
|
|
2566
|
-
}
|
|
2567
|
-
"number" != typeof this._channel.bufferedAmountLowThreshold && (this._interval = setInterval(() => this._onInterval(), 150), this._interval.unref && this._interval.unref()), this._debug("connect"), this.emit("connect");
|
|
2568
|
-
});
|
|
2569
|
-
};
|
|
2570
|
-
e2();
|
|
2571
|
-
}
|
|
2572
|
-
_onInterval() {
|
|
2573
|
-
this._cb && this._channel && !(this._channel.bufferedAmount > u) && this._onChannelBufferedAmountLow();
|
|
2574
|
-
}
|
|
2575
|
-
_onSignalingStateChange() {
|
|
2576
|
-
this.destroyed || ("stable" === this._pc.signalingState && (this._isNegotiating = false, this._debug("flushing sender queue", this._sendersAwaitingStable), this._sendersAwaitingStable.forEach((e2) => {
|
|
2577
|
-
this._pc.removeTrack(e2), this._queuedNegotiation = true;
|
|
2578
|
-
}), this._sendersAwaitingStable = [], this._queuedNegotiation ? (this._debug("flushing negotiation queue"), this._queuedNegotiation = false, this._needsNegotiation()) : (this._debug("negotiated"), this.emit("negotiated"))), this._debug("signalingStateChange %s", this._pc.signalingState), this.emit("signalingStateChange", this._pc.signalingState));
|
|
2579
|
-
}
|
|
2580
|
-
_onIceCandidate(e2) {
|
|
2581
|
-
this.destroyed || (e2.candidate && this.trickle ? this.emit("signal", { type: "candidate", candidate: { candidate: e2.candidate.candidate, sdpMLineIndex: e2.candidate.sdpMLineIndex, sdpMid: e2.candidate.sdpMid } }) : !e2.candidate && !this._iceComplete && (this._iceComplete = true, this.emit("_iceComplete")), e2.candidate && this._startIceCompleteTimeout());
|
|
2582
|
-
}
|
|
2583
|
-
_onChannelMessage(e2) {
|
|
2584
|
-
if (this.destroyed) return;
|
|
2585
|
-
let t3 = e2.data;
|
|
2586
|
-
t3 instanceof ArrayBuffer && (t3 = c.from(t3)), this.push(t3);
|
|
2587
|
-
}
|
|
2588
|
-
_onChannelBufferedAmountLow() {
|
|
2589
|
-
if (!this.destroyed && this._cb) {
|
|
2590
|
-
this._debug("ending backpressure: bufferedAmount %d", this._channel.bufferedAmount);
|
|
2591
|
-
const e2 = this._cb;
|
|
2592
|
-
this._cb = null, e2(null);
|
|
2593
|
-
}
|
|
2594
|
-
}
|
|
2595
|
-
_onChannelOpen() {
|
|
2596
|
-
this._connected || this.destroyed || (this._debug("on channel open"), this._channelReady = true, this._maybeReady());
|
|
2597
|
-
}
|
|
2598
|
-
_onChannelClose() {
|
|
2599
|
-
this.destroyed || (this._debug("on channel close"), this.destroy());
|
|
2600
|
-
}
|
|
2601
|
-
_onTrack(e2) {
|
|
2602
|
-
this.destroyed || e2.streams.forEach((t3) => {
|
|
2603
|
-
this._debug("on track"), this.emit("track", e2.track, t3), this._remoteTracks.push({ track: e2.track, stream: t3 }), this._remoteStreams.some((e3) => e3.id === t3.id) || (this._remoteStreams.push(t3), s(() => {
|
|
2604
|
-
this._debug("on stream"), this.emit("stream", t3);
|
|
2605
|
-
}));
|
|
2606
|
-
});
|
|
2607
|
-
}
|
|
2608
|
-
_debug() {
|
|
2609
|
-
const e2 = [].slice.call(arguments);
|
|
2610
|
-
e2[0] = "[" + this._id + "] " + e2[0], a.apply(null, e2);
|
|
2611
|
-
}
|
|
2612
|
-
}
|
|
2613
|
-
p.WEBRTC_SUPPORT = !!o(), p.config = { iceServers: [{ urls: ["stun:stun.l.google.com:19302", "stun:global.stun.twilio.com:3478"] }], sdpSemantics: "unified-plan" }, p.channelConfig = {}, t2.exports = p;
|
|
2614
|
-
}, { buffer: 3, debug: 4, "err-code": 6, "get-browser-rtc": 8, "queue-microtask": 13, randombytes: 14, "readable-stream": 29 }] }, {}, [])("/");
|
|
2615
|
-
});
|
|
2616
|
-
})(simplepeer_min$1.__module, simplepeer_min$1.__module.exports);
|
|
2617
|
-
var simplepeer_minExports = simplepeer_min$1.__module.exports;
|
|
2618
|
-
const Peer = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(simplepeer_minExports);
|
|
2619
|
-
exports.default = Peer;
|
|
2620
|
-
//# sourceMappingURL=simplepeer.min.cjs.js.map
|