@opentiny/tiny-robot 0.2.0-alpha.1 → 0.2.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_plugin-vue_export-helper.js +9 -0
- package/dist/action-group/index.js +142 -0
- package/dist/bubble/index.js +3211 -0
- package/dist/{node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/close.js → close.js} +9 -9
- package/dist/container/index.js +60 -0
- package/dist/conversations/index.js +14 -0
- package/dist/feedback/index.js +192 -0
- package/dist/history/index.js +228 -0
- package/dist/icon-button/index.js +31 -0
- package/dist/index.d.ts +2190 -26
- package/dist/index.js +35 -43
- package/dist/index2.js +376 -0
- package/dist/index3.js +3895 -0
- package/dist/index4.js +637 -0
- package/dist/index5.js +3237 -0
- package/dist/index6.js +4623 -0
- package/dist/prompts/index.js +83 -0
- package/dist/question/index.js +375 -0
- package/dist/sender/index.js +683 -0
- package/dist/style.css +1 -1
- package/dist/suggestion/index.js +497 -0
- package/dist/{packages/svgs/dist/tiny-robot-svgs.js → tiny-robot-svgs.js} +100 -100
- package/dist/welcome/index.js +38 -0
- package/package.json +7 -3
- package/dist/_virtual/_plugin-vue_export-helper.js +0 -9
- package/dist/action-group/ActionGroup.vue.d.ts +0 -26
- package/dist/action-group/ActionGroupItem.vue.d.ts +0 -18
- package/dist/action-group/index.d.ts +0 -12
- package/dist/action-group/index.type.d.ts +0 -16
- package/dist/bubble/bubble-list.vue.d.ts +0 -5
- package/dist/bubble/components/actions/copy.vue.d.ts +0 -10
- package/dist/bubble/components/actions/index.d.ts +0 -2
- package/dist/bubble/components/actions/refresh.vue.d.ts +0 -2
- package/dist/bubble/index.d.ts +0 -12
- package/dist/bubble/index.type.d.ts +0 -53
- package/dist/bubble/useScroll.d.ts +0 -4
- package/dist/container/index.d.ts +0 -7
- package/dist/container/index.type.d.ts +0 -16
- package/dist/container/index.vue.d.ts +0 -26
- package/dist/conversations/index.d.ts +0 -7
- package/dist/conversations/index.vue.d.ts +0 -2
- package/dist/feedback/components/SourceList.vue.d.ts +0 -11
- package/dist/feedback/components/index.d.ts +0 -1
- package/dist/feedback/index.d.ts +0 -7
- package/dist/feedback/index.type.d.ts +0 -25
- package/dist/feedback/index.vue.d.ts +0 -13
- package/dist/history/components/index.d.ts +0 -2
- package/dist/history/components/item-tag.vue.d.ts +0 -5
- package/dist/history/components/search-empty.vue.d.ts +0 -7
- package/dist/history/composables/index.d.ts +0 -1
- package/dist/history/composables/useEditItemTitle.d.ts +0 -12
- package/dist/history/index.d.ts +0 -6
- package/dist/history/index.type.d.ts +0 -43
- package/dist/history/index.vue.d.ts +0 -2
- package/dist/icon-button/index.d.ts +0 -7
- package/dist/icon-button/index.type.d.ts +0 -7
- package/dist/icon-button/index.vue.d.ts +0 -6
- package/dist/node_modules/.pnpm/@opentiny_utils@1.0.0/node_modules/@opentiny/utils/dist/opentiny-utils.es.js +0 -832
- package/dist/node_modules/.pnpm/@opentiny_utils@3.22.0/node_modules/@opentiny/utils/dist/index.es.js +0 -2116
- package/dist/node_modules/.pnpm/@opentiny_vue-button@3.21.0/node_modules/@opentiny/vue-button/lib/index.js +0 -113
- package/dist/node_modules/.pnpm/@opentiny_vue-button@3.21.0/node_modules/@opentiny/vue-button/lib/pc.js +0 -93
- package/dist/node_modules/.pnpm/@opentiny_vue-common@3.21.0/node_modules/@opentiny/vue-common/lib/index.js +0 -727
- package/dist/node_modules/.pnpm/@opentiny_vue-common@3.22.0/node_modules/@opentiny/vue-common/lib/index.js +0 -710
- package/dist/node_modules/.pnpm/@opentiny_vue-dialog-box@3.21.0/node_modules/@opentiny/vue-dialog-box/lib/index.js +0 -198
- package/dist/node_modules/.pnpm/@opentiny_vue-dialog-box@3.21.0/node_modules/@opentiny/vue-dialog-box/lib/pc.js +0 -204
- package/dist/node_modules/.pnpm/@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/useEventListener.js +0 -10
- package/dist/node_modules/.pnpm/@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/useInstanceSlots.js +0 -14
- package/dist/node_modules/.pnpm/@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/useRelation.js +0 -54
- package/dist/node_modules/.pnpm/@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/vue-popper.js +0 -85
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/close.js +0 -29
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/eyeclose.js +0 -42
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/eyeopen.js +0 -43
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/finish.js +0 -34
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/fullscreen.js +0 -30
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/loading-shadow.js +0 -77
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/minscreen.js +0 -30
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-add-column-after.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-add-column-before.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-add-row-after.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-add-row-before.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-align-center.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-align-left.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-align-right.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-bold.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-code-block.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-code-view.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-color.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-delete-column.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-delete-row.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-delete-table.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-font-size.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-format-clear.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-h1.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-h2.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-h3.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-h4.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-h5.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-h6.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-heading.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-high-light.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-image.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-italic.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-line-height.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-link-unlink.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-link.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-list-ordered.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-list-unordered.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-merge-cells-vertical.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-merge-cells.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-node-delete.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-paragraph.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-quote-text.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-redo.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-split-cells-horizontal.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-split-cells-vertical.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-strike-through.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-subscript.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-superscript.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-table.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-task-list.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-underline.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-undo.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/sub-script.js +0 -29
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/warn.js +0 -26
- package/dist/node_modules/.pnpm/@opentiny_vue-input@3.21.0/node_modules/@opentiny/vue-input/lib/index.js +0 -196
- package/dist/node_modules/.pnpm/@opentiny_vue-input@3.21.0/node_modules/@opentiny/vue-input/lib/pc.js +0 -568
- package/dist/node_modules/.pnpm/@opentiny_vue-locale@3.21.0/node_modules/@opentiny/vue-locale/lib/index.js +0 -1783
- package/dist/node_modules/.pnpm/@opentiny_vue-locale@3.22.0/node_modules/@opentiny/vue-locale/lib/index.js +0 -1783
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/button/index.js +0 -13
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/button/vue.js +0 -34
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/chunk-G2ADBYYC.js +0 -12
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/browser.js +0 -36
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/clickoutside.js +0 -47
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/debounce.js +0 -7
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/dom.js +0 -45
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/popper.js +0 -320
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/popup-manager.js +0 -118
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/throttle.js +0 -23
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/useEventListener.js +0 -9
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/useInstanceSlots.js +0 -14
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/useRelation.js +0 -54
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/vue-popper.js +0 -84
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/vue-popup.js +0 -73
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/event.js +0 -13
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/function.js +0 -5
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/index.js +0 -11
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/object.js +0 -84
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/string.js +0 -28
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/type.js +0 -28
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/dialog-box/index.js +0 -136
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/dialog-box/vue.js +0 -148
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/input/index.js +0 -228
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/input/vue.js +0 -263
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/tall-storage/index.js +0 -63
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/tall-storage/vue-storage-box.js +0 -16
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/tall-storage/vue.js +0 -23
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/tooltip/index.js +0 -78
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/tooltip/vue.js +0 -90
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/tooltip/index.js +0 -77
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/tooltip/vue.js +0 -90
- package/dist/node_modules/.pnpm/@opentiny_vue-tooltip@3.21.0/node_modules/@opentiny/vue-tooltip/lib/index.js +0 -173
- package/dist/node_modules/.pnpm/@opentiny_vue-tooltip@3.21.0/node_modules/@opentiny/vue-tooltip/lib/pc.js +0 -248
- package/dist/node_modules/.pnpm/@opentiny_vue-tooltip@3.22.0/node_modules/@opentiny/vue-tooltip/lib/index.js +0 -176
- package/dist/node_modules/.pnpm/@opentiny_vue-tooltip@3.22.0/node_modules/@opentiny/vue-tooltip/lib/pc.js +0 -248
- package/dist/node_modules/.pnpm/@vueuse_core@13.1.0_vue@3.5.13/node_modules/@vueuse/core/index.js +0 -190
- package/dist/node_modules/.pnpm/@vueuse_shared@13.1.0_vue@3.5.13/node_modules/@vueuse/shared/index.js +0 -53
- package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode.js +0 -277
- package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode_codepoint.js +0 -46
- package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-html.js +0 -7
- package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-xml.js +0 -7
- package/dist/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/index.js +0 -187
- package/dist/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/lib/re.js +0 -19
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/html_blocks.js +0 -67
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/html_re.js +0 -5
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/utils.js +0 -164
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/index.js +0 -8
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_destination.js +0 -44
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_label.js +0 -21
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_title.js +0 -37
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/index.js +0 -112
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_block.js +0 -63
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_core.js +0 -34
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_inline.js +0 -96
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/presets/commonmark.js +0 -78
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/presets/default.js +0 -40
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/presets/zero.js +0 -59
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/renderer.js +0 -127
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/ruler.js +0 -95
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/blockquote.js +0 -59
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/code.js +0 -23
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/fence.js +0 -30
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/heading.js +0 -28
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/hr.js +0 -27
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/html_block.js +0 -37
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/lheading.js +0 -43
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/list.js +0 -110
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/paragraph.js +0 -25
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/reference.js +0 -95
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/state_block.js +0 -84
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/table.js +0 -99
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/block.js +0 -7
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/inline.js +0 -10
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/linkify.js +0 -57
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/normalize.js +0 -9
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/replacements.js +0 -31
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/smartquotes.js +0 -80
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/state_core.js +0 -8
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/text_join.js +0 -16
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/autolink.js +0 -46
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/backticks.js +0 -31
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/balance_pairs.js +0 -34
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/emphasis.js +0 -57
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/entity.js +0 -33
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/escape.js +0 -32
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/fragments_join.js +0 -10
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/html_inline.js +0 -32
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/image.js +0 -48
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/link.js +0 -40
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/linkify.js +0 -28
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/newline.js +0 -23
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/state_inline.js +0 -27
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/strikethrough.js +0 -54
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/text.js +0 -39
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/token.js +0 -31
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/index.js +0 -10
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/decode.js +0 -61
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/encode.js +0 -48
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/format.js +0 -7
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/parse.js +0 -74
- package/dist/node_modules/.pnpm/punycode.js@2.3.1/node_modules/punycode.js/punycode.es6.js +0 -139
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cc/regex.js +0 -4
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cf/regex.js +0 -4
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/P/regex.js +0 -4
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/S/regex.js +0 -4
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Z/regex.js +0 -4
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/index.js +0 -14
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/properties/Any/regex.js +0 -4
- package/dist/packages/components/src/action-group/ActionGroup.vue.js +0 -7
- package/dist/packages/components/src/action-group/ActionGroup.vue2.js +0 -97
- package/dist/packages/components/src/action-group/ActionGroupItem.vue.js +0 -14
- package/dist/packages/components/src/action-group/ActionGroupItem.vue2.js +0 -4
- package/dist/packages/components/src/action-group/index.js +0 -17
- package/dist/packages/components/src/assets/icons/accessory.svg.js +0 -4
- package/dist/packages/components/src/assets/icons/loading-speech.svg.js +0 -4
- package/dist/packages/components/src/assets/icons/loading.svg.js +0 -4
- package/dist/packages/components/src/assets/icons/send.svg.js +0 -4
- package/dist/packages/components/src/assets/icons/voice.svg.js +0 -4
- package/dist/packages/components/src/bubble/bubble-list.vue.js +0 -7
- package/dist/packages/components/src/bubble/bubble-list.vue2.js +0 -37
- package/dist/packages/components/src/bubble/bubble.vue.js +0 -7
- package/dist/packages/components/src/bubble/bubble.vue2.js +0 -118
- package/dist/packages/components/src/bubble/components/actions/copy.vue.js +0 -7
- package/dist/packages/components/src/bubble/components/actions/copy.vue2.js +0 -35
- package/dist/packages/components/src/bubble/components/actions/refresh.vue.js +0 -7
- package/dist/packages/components/src/bubble/components/actions/refresh.vue2.js +0 -16
- package/dist/packages/components/src/bubble/index.js +0 -18
- package/dist/packages/components/src/bubble/useScroll.js +0 -13
- package/dist/packages/components/src/container/index.js +0 -9
- package/dist/packages/components/src/container/index.vue.js +0 -7
- package/dist/packages/components/src/container/index.vue2.js +0 -55
- package/dist/packages/components/src/conversations/index.js +0 -9
- package/dist/packages/components/src/conversations/index.vue.js +0 -9
- package/dist/packages/components/src/feedback/components/SourceList.vue.js +0 -7
- package/dist/packages/components/src/feedback/components/SourceList.vue2.js +0 -52
- package/dist/packages/components/src/feedback/index.js +0 -9
- package/dist/packages/components/src/feedback/index.vue.js +0 -7
- package/dist/packages/components/src/feedback/index.vue2.js +0 -142
- package/dist/packages/components/src/history/components/item-tag.vue.js +0 -7
- package/dist/packages/components/src/history/components/item-tag.vue2.js +0 -21
- package/dist/packages/components/src/history/components/search-empty.vue.js +0 -7
- package/dist/packages/components/src/history/components/search-empty.vue2.js +0 -20
- package/dist/packages/components/src/history/composables/useEditItemTitle.js +0 -43
- package/dist/packages/components/src/history/index.js +0 -11
- package/dist/packages/components/src/history/index.vue.js +0 -7
- package/dist/packages/components/src/history/index.vue2.js +0 -130
- package/dist/packages/components/src/icon-button/index.js +0 -9
- package/dist/packages/components/src/icon-button/index.vue.js +0 -7
- package/dist/packages/components/src/icon-button/index.vue2.js +0 -40
- package/dist/packages/components/src/prompts/index.js +0 -18
- package/dist/packages/components/src/prompts/prompt.vue.js +0 -7
- package/dist/packages/components/src/prompts/prompt.vue2.js +0 -39
- package/dist/packages/components/src/prompts/prompts.vue.js +0 -7
- package/dist/packages/components/src/prompts/prompts.vue2.js +0 -36
- package/dist/packages/components/src/question/components/CommonQuestions.vue.js +0 -89
- package/dist/packages/components/src/question/components/CommonQuestions.vue2.js +0 -4
- package/dist/packages/components/src/question/components/HotQuestions.vue.js +0 -140
- package/dist/packages/components/src/question/components/HotQuestions.vue2.js +0 -4
- package/dist/packages/components/src/question/composables/useQuestions.js +0 -48
- package/dist/packages/components/src/question/index.js +0 -9
- package/dist/packages/components/src/question/index.vue.js +0 -113
- package/dist/packages/components/src/question/index.vue2.js +0 -4
- package/dist/packages/components/src/sender/components/ActionButtons.vue.js +0 -143
- package/dist/packages/components/src/sender/components/ActionButtons.vue2.js +0 -4
- package/dist/packages/components/src/sender/components/TemplateEditor.vue.js +0 -7
- package/dist/packages/components/src/sender/components/TemplateEditor.vue2.js +0 -121
- package/dist/packages/components/src/sender/composables/useInputHandler.js +0 -38
- package/dist/packages/components/src/sender/composables/useKeyboardHandler.js +0 -31
- package/dist/packages/components/src/sender/composables/useSpeechHandler.js +0 -67
- package/dist/packages/components/src/sender/index.js +0 -9
- package/dist/packages/components/src/sender/index.vue.js +0 -255
- package/dist/packages/components/src/sender/index.vue2.js +0 -4
- package/dist/packages/components/src/suggestion/components/CategoryNav.vue.js +0 -38
- package/dist/packages/components/src/suggestion/components/CategoryNav.vue2.js +0 -4
- package/dist/packages/components/src/suggestion/components/SuggestionCapsule.vue.js +0 -107
- package/dist/packages/components/src/suggestion/components/SuggestionCapsule.vue2.js +0 -4
- package/dist/packages/components/src/suggestion/components/SuggestionPanel.vue.js +0 -123
- package/dist/packages/components/src/suggestion/components/SuggestionPanel.vue2.js +0 -4
- package/dist/packages/components/src/suggestion/composables/useKeyboardNavigation.js +0 -45
- package/dist/packages/components/src/suggestion/composables/useTriggerDetection.js +0 -17
- package/dist/packages/components/src/suggestion/index.js +0 -9
- package/dist/packages/components/src/suggestion/index.vue.js +0 -179
- package/dist/packages/components/src/suggestion/index.vue2.js +0 -4
- package/dist/packages/components/src/suggestion/utils/dom.js +0 -18
- package/dist/packages/components/src/welcome/index.js +0 -9
- package/dist/packages/components/src/welcome/index.vue.js +0 -7
- package/dist/packages/components/src/welcome/index.vue2.js +0 -32
- package/dist/prompts/index.d.ts +0 -12
- package/dist/prompts/index.type.d.ts +0 -55
- package/dist/prompts/prompt.vue.d.ts +0 -3
- package/dist/prompts/prompts.vue.d.ts +0 -20
- package/dist/question/components/CommonQuestions.vue.d.ts +0 -32
- package/dist/question/components/HotQuestions.vue.d.ts +0 -89
- package/dist/question/composables/useQuestions.d.ts +0 -17
- package/dist/question/index.d.ts +0 -7
- package/dist/question/index.type.d.ts +0 -74
- package/dist/question/index.vue.d.ts +0 -46
- package/dist/sender/components/ActionButtons.vue.d.ts +0 -25
- package/dist/sender/components/TemplateEditor.vue.d.ts +0 -18
- package/dist/sender/composables/useInputHandler.d.ts +0 -17
- package/dist/sender/composables/useKeyboardHandler.d.ts +0 -18
- package/dist/sender/composables/useSpeechHandler.d.ts +0 -8
- package/dist/sender/index.d.ts +0 -7
- package/dist/sender/index.type.d.ts +0 -137
- package/dist/sender/index.vue.d.ts +0 -1012
- package/dist/suggestion/components/CategoryNav.vue.d.ts +0 -45
- package/dist/suggestion/components/SuggestionCapsule.vue.d.ts +0 -32
- package/dist/suggestion/components/SuggestionPanel.vue.d.ts +0 -84
- package/dist/suggestion/composables/useKeyboardNavigation.d.ts +0 -18
- package/dist/suggestion/composables/useSuggestionFilter.d.ts +0 -10
- package/dist/suggestion/composables/useTriggerDetection.d.ts +0 -11
- package/dist/suggestion/index.d.ts +0 -7
- package/dist/suggestion/index.type.d.ts +0 -94
- package/dist/suggestion/index.vue.d.ts +0 -343
- package/dist/suggestion/utils/dom.d.ts +0 -20
- package/dist/welcome/index.d.ts +0 -7
- package/dist/welcome/index.type.d.ts +0 -10
- package/dist/welcome/index.vue.d.ts +0 -18
- package/src/action-group/ActionGroup.vue +0 -232
- package/src/action-group/ActionGroupItem.vue +0 -9
- package/src/action-group/index.ts +0 -25
- package/src/action-group/index.type.ts +0 -20
- package/src/assets/icons/accessory.svg +0 -12
- package/src/assets/icons/loading-speech.svg +0 -16
- package/src/assets/icons/loading.svg +0 -17
- package/src/assets/icons/send.svg +0 -21
- package/src/assets/icons/voice.svg +0 -22
- package/src/bubble/bubble-list.vue +0 -42
- package/src/bubble/bubble.vue +0 -237
- package/src/bubble/components/actions/copy.vue +0 -54
- package/src/bubble/components/actions/index.ts +0 -2
- package/src/bubble/components/actions/refresh.vue +0 -31
- package/src/bubble/index.ts +0 -23
- package/src/bubble/index.type.ts +0 -63
- package/src/bubble/useScroll.ts +0 -14
- package/src/container/index.ts +0 -12
- package/src/container/index.type.ts +0 -17
- package/src/container/index.vue +0 -134
- package/src/conversations/index.ts +0 -12
- package/src/conversations/index.vue +0 -3
- package/src/feedback/components/SourceList.vue +0 -112
- package/src/feedback/components/index.ts +0 -1
- package/src/feedback/index.ts +0 -12
- package/src/feedback/index.type.ts +0 -27
- package/src/feedback/index.vue +0 -166
- package/src/history/components/index.ts +0 -2
- package/src/history/components/item-tag.vue +0 -49
- package/src/history/components/search-empty.vue +0 -38
- package/src/history/composables/index.ts +0 -1
- package/src/history/composables/useEditItemTitle.ts +0 -75
- package/src/history/index.ts +0 -12
- package/src/history/index.type.ts +0 -50
- package/src/history/index.vue +0 -292
- package/src/icon-button/index.ts +0 -12
- package/src/icon-button/index.type.ts +0 -8
- package/src/icon-button/index.vue +0 -52
- package/src/index.ts +0 -76
- package/src/prompts/index.ts +0 -25
- package/src/prompts/index.type.ts +0 -59
- package/src/prompts/prompt.vue +0 -101
- package/src/prompts/prompts.vue +0 -50
- package/src/question/components/CommonQuestions.vue +0 -146
- package/src/question/components/HotQuestions.vue +0 -148
- package/src/question/composables/useQuestions.ts +0 -106
- package/src/question/index.less +0 -447
- package/src/question/index.ts +0 -12
- package/src/question/index.type.ts +0 -86
- package/src/question/index.vue +0 -140
- package/src/question/vars.less +0 -135
- package/src/sender/components/ActionButtons.vue +0 -168
- package/src/sender/components/TemplateEditor.vue +0 -274
- package/src/sender/composables/useInputHandler.ts +0 -74
- package/src/sender/composables/useKeyboardHandler.ts +0 -101
- package/src/sender/composables/useSpeechHandler.ts +0 -122
- package/src/sender/index.less +0 -352
- package/src/sender/index.ts +0 -12
- package/src/sender/index.type.ts +0 -162
- package/src/sender/index.vue +0 -338
- package/src/sender/vars.less +0 -84
- package/src/suggestion/components/CategoryNav.vue +0 -38
- package/src/suggestion/components/SuggestionCapsule.vue +0 -183
- package/src/suggestion/components/SuggestionPanel.vue +0 -147
- package/src/suggestion/composables/useKeyboardNavigation.ts +0 -101
- package/src/suggestion/composables/useSuggestionFilter.ts +0 -34
- package/src/suggestion/composables/useTriggerDetection.ts +0 -46
- package/src/suggestion/index.less +0 -497
- package/src/suggestion/index.ts +0 -12
- package/src/suggestion/index.type.ts +0 -101
- package/src/suggestion/index.vue +0 -338
- package/src/suggestion/utils/dom.ts +0 -66
- package/src/suggestion/vars.less +0 -141
- package/src/vite-env.d.ts +0 -1
- package/src/welcome/index.ts +0 -12
- package/src/welcome/index.type.ts +0 -12
- package/src/welcome/index.vue +0 -69
- package/tsconfig.json +0 -37
- package/tsconfig.node.json +0 -10
- package/vite.config.ts +0 -53
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
function g(n, e, l) {
|
|
2
|
-
const i = n.md.block.ruler.getRules("paragraph"), c = n.parentType;
|
|
3
|
-
let r = e + 1;
|
|
4
|
-
for (n.parentType = "paragraph"; r < l && !n.isEmpty(r); r++) {
|
|
5
|
-
if (n.sCount[r] - n.blkIndent > 3 || n.sCount[r] < 0)
|
|
6
|
-
continue;
|
|
7
|
-
let u = !1;
|
|
8
|
-
for (let o = 0, h = i.length; o < h; o++)
|
|
9
|
-
if (i[o](n, r, l, !0)) {
|
|
10
|
-
u = !0;
|
|
11
|
-
break;
|
|
12
|
-
}
|
|
13
|
-
if (u)
|
|
14
|
-
break;
|
|
15
|
-
}
|
|
16
|
-
const a = n.getLines(e, r, n.blkIndent, !1).trim();
|
|
17
|
-
n.line = r;
|
|
18
|
-
const f = n.push("paragraph_open", "p", 1);
|
|
19
|
-
f.map = [e, n.line];
|
|
20
|
-
const p = n.push("inline", "", 0);
|
|
21
|
-
return p.content = a, p.map = [e, n.line], p.children = [], n.push("paragraph_close", "p", -1), n.parentType = c, !0;
|
|
22
|
-
}
|
|
23
|
-
export {
|
|
24
|
-
g as default
|
|
25
|
-
};
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { isSpace as h, normalizeReference as w } from "../common/utils.js";
|
|
2
|
-
function B(n, t, S, y) {
|
|
3
|
-
let e = n.bMarks[t] + n.tShift[t], i = n.eMarks[t], f = t + 1;
|
|
4
|
-
if (n.sCount[t] - n.blkIndent >= 4 || n.src.charCodeAt(e) !== 91)
|
|
5
|
-
return !1;
|
|
6
|
-
function s(r) {
|
|
7
|
-
const o = n.lineMax;
|
|
8
|
-
if (r >= o || n.isEmpty(r))
|
|
9
|
-
return null;
|
|
10
|
-
let k = !1;
|
|
11
|
-
if (n.sCount[r] - n.blkIndent > 3 && (k = !0), n.sCount[r] < 0 && (k = !0), !k) {
|
|
12
|
-
const x = n.md.block.ruler.getRules("reference"), R = n.parentType;
|
|
13
|
-
n.parentType = "reference";
|
|
14
|
-
let g = !1;
|
|
15
|
-
for (let C = 0, E = x.length; C < E; C++)
|
|
16
|
-
if (x[C](n, r, o, !0)) {
|
|
17
|
-
g = !0;
|
|
18
|
-
break;
|
|
19
|
-
}
|
|
20
|
-
if (n.parentType = R, g)
|
|
21
|
-
return null;
|
|
22
|
-
}
|
|
23
|
-
const v = n.bMarks[r] + n.tShift[r], M = n.eMarks[r];
|
|
24
|
-
return n.src.slice(v, M + 1);
|
|
25
|
-
}
|
|
26
|
-
let l = n.src.slice(e, i + 1);
|
|
27
|
-
i = l.length;
|
|
28
|
-
let u = -1;
|
|
29
|
-
for (e = 1; e < i; e++) {
|
|
30
|
-
const r = l.charCodeAt(e);
|
|
31
|
-
if (r === 91)
|
|
32
|
-
return !1;
|
|
33
|
-
if (r === 93) {
|
|
34
|
-
u = e;
|
|
35
|
-
break;
|
|
36
|
-
} else if (r === 10) {
|
|
37
|
-
const o = s(f);
|
|
38
|
-
o !== null && (l += o, i = l.length, f++);
|
|
39
|
-
} else if (r === 92 && (e++, e < i && l.charCodeAt(e) === 10)) {
|
|
40
|
-
const o = s(f);
|
|
41
|
-
o !== null && (l += o, i = l.length, f++);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
if (u < 0 || l.charCodeAt(u + 1) !== 58)
|
|
45
|
-
return !1;
|
|
46
|
-
for (e = u + 2; e < i; e++) {
|
|
47
|
-
const r = l.charCodeAt(e);
|
|
48
|
-
if (r === 10) {
|
|
49
|
-
const o = s(f);
|
|
50
|
-
o !== null && (l += o, i = l.length, f++);
|
|
51
|
-
} else if (!h(r)) break;
|
|
52
|
-
}
|
|
53
|
-
const p = n.md.helpers.parseLinkDestination(l, e, i);
|
|
54
|
-
if (!p.ok)
|
|
55
|
-
return !1;
|
|
56
|
-
const A = n.md.normalizeLink(p.str);
|
|
57
|
-
if (!n.md.validateLink(A))
|
|
58
|
-
return !1;
|
|
59
|
-
e = p.pos;
|
|
60
|
-
const m = e, b = f, T = e;
|
|
61
|
-
for (; e < i; e++) {
|
|
62
|
-
const r = l.charCodeAt(e);
|
|
63
|
-
if (r === 10) {
|
|
64
|
-
const o = s(f);
|
|
65
|
-
o !== null && (l += o, i = l.length, f++);
|
|
66
|
-
} else if (!h(r)) break;
|
|
67
|
-
}
|
|
68
|
-
let c = n.md.helpers.parseLinkTitle(l, e, i);
|
|
69
|
-
for (; c.can_continue; ) {
|
|
70
|
-
const r = s(f);
|
|
71
|
-
if (r === null) break;
|
|
72
|
-
l += r, e = i, i = l.length, f++, c = n.md.helpers.parseLinkTitle(l, e, i, c);
|
|
73
|
-
}
|
|
74
|
-
let d;
|
|
75
|
-
for (e < i && T !== e && c.ok ? (d = c.str, e = c.pos) : (d = "", e = m, f = b); e < i; ) {
|
|
76
|
-
const r = l.charCodeAt(e);
|
|
77
|
-
if (!h(r))
|
|
78
|
-
break;
|
|
79
|
-
e++;
|
|
80
|
-
}
|
|
81
|
-
if (e < i && l.charCodeAt(e) !== 10 && d)
|
|
82
|
-
for (d = "", e = m, f = b; e < i; ) {
|
|
83
|
-
const r = l.charCodeAt(e);
|
|
84
|
-
if (!h(r))
|
|
85
|
-
break;
|
|
86
|
-
e++;
|
|
87
|
-
}
|
|
88
|
-
if (e < i && l.charCodeAt(e) !== 10)
|
|
89
|
-
return !1;
|
|
90
|
-
const a = w(l.slice(1, u));
|
|
91
|
-
return a ? (y || (typeof n.env.references > "u" && (n.env.references = {}), typeof n.env.references[a] > "u" && (n.env.references[a] = { title: d, href: A }), n.line = f), !0) : !1;
|
|
92
|
-
}
|
|
93
|
-
export {
|
|
94
|
-
B as default
|
|
95
|
-
};
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import C from "../token.js";
|
|
2
|
-
import { isSpace as k } from "../common/utils.js";
|
|
3
|
-
function o(n, t, s, i) {
|
|
4
|
-
this.src = n, this.md = t, this.env = s, this.tokens = i, this.bMarks = [], this.eMarks = [], this.tShift = [], this.sCount = [], this.bsCount = [], this.blkIndent = 0, this.line = 0, this.lineMax = 0, this.tight = !1, this.ddIndent = -1, this.listIndent = -1, this.parentType = "root", this.level = 0;
|
|
5
|
-
const c = this.src;
|
|
6
|
-
for (let u = 0, r = 0, h = 0, e = 0, f = c.length, a = !1; r < f; r++) {
|
|
7
|
-
const l = c.charCodeAt(r);
|
|
8
|
-
if (!a)
|
|
9
|
-
if (k(l)) {
|
|
10
|
-
h++, l === 9 ? e += 4 - e % 4 : e++;
|
|
11
|
-
continue;
|
|
12
|
-
} else
|
|
13
|
-
a = !0;
|
|
14
|
-
(l === 10 || r === f - 1) && (l !== 10 && r++, this.bMarks.push(u), this.eMarks.push(r), this.tShift.push(h), this.sCount.push(e), this.bsCount.push(0), a = !1, h = 0, e = 0, u = r + 1);
|
|
15
|
-
}
|
|
16
|
-
this.bMarks.push(c.length), this.eMarks.push(c.length), this.tShift.push(0), this.sCount.push(0), this.bsCount.push(0), this.lineMax = this.bMarks.length - 1;
|
|
17
|
-
}
|
|
18
|
-
o.prototype.push = function(n, t, s) {
|
|
19
|
-
const i = new C(n, t, s);
|
|
20
|
-
return i.block = !0, s < 0 && this.level--, i.level = this.level, s > 0 && this.level++, this.tokens.push(i), i;
|
|
21
|
-
};
|
|
22
|
-
o.prototype.isEmpty = function(t) {
|
|
23
|
-
return this.bMarks[t] + this.tShift[t] >= this.eMarks[t];
|
|
24
|
-
};
|
|
25
|
-
o.prototype.skipEmptyLines = function(t) {
|
|
26
|
-
for (let s = this.lineMax; t < s && !(this.bMarks[t] + this.tShift[t] < this.eMarks[t]); t++)
|
|
27
|
-
;
|
|
28
|
-
return t;
|
|
29
|
-
};
|
|
30
|
-
o.prototype.skipSpaces = function(t) {
|
|
31
|
-
for (let s = this.src.length; t < s; t++) {
|
|
32
|
-
const i = this.src.charCodeAt(t);
|
|
33
|
-
if (!k(i))
|
|
34
|
-
break;
|
|
35
|
-
}
|
|
36
|
-
return t;
|
|
37
|
-
};
|
|
38
|
-
o.prototype.skipSpacesBack = function(t, s) {
|
|
39
|
-
if (t <= s)
|
|
40
|
-
return t;
|
|
41
|
-
for (; t > s; )
|
|
42
|
-
if (!k(this.src.charCodeAt(--t)))
|
|
43
|
-
return t + 1;
|
|
44
|
-
return t;
|
|
45
|
-
};
|
|
46
|
-
o.prototype.skipChars = function(t, s) {
|
|
47
|
-
for (let i = this.src.length; t < i && this.src.charCodeAt(t) === s; t++)
|
|
48
|
-
;
|
|
49
|
-
return t;
|
|
50
|
-
};
|
|
51
|
-
o.prototype.skipCharsBack = function(t, s, i) {
|
|
52
|
-
if (t <= i)
|
|
53
|
-
return t;
|
|
54
|
-
for (; t > i; )
|
|
55
|
-
if (s !== this.src.charCodeAt(--t))
|
|
56
|
-
return t + 1;
|
|
57
|
-
return t;
|
|
58
|
-
};
|
|
59
|
-
o.prototype.getLines = function(t, s, i, c) {
|
|
60
|
-
if (t >= s)
|
|
61
|
-
return "";
|
|
62
|
-
const u = new Array(s - t);
|
|
63
|
-
for (let r = 0, h = t; h < s; h++, r++) {
|
|
64
|
-
let e = 0;
|
|
65
|
-
const f = this.bMarks[h];
|
|
66
|
-
let a = f, l;
|
|
67
|
-
for (h + 1 < s || c ? l = this.eMarks[h] + 1 : l = this.eMarks[h]; a < l && e < i; ) {
|
|
68
|
-
const p = this.src.charCodeAt(a);
|
|
69
|
-
if (k(p))
|
|
70
|
-
p === 9 ? e += 4 - (e + this.bsCount[h]) % 4 : e++;
|
|
71
|
-
else if (a - f < this.tShift[h])
|
|
72
|
-
e++;
|
|
73
|
-
else
|
|
74
|
-
break;
|
|
75
|
-
a++;
|
|
76
|
-
}
|
|
77
|
-
e > i ? u[r] = new Array(e - i + 1).join(" ") + this.src.slice(a, l) : u[r] = this.src.slice(a, l);
|
|
78
|
-
}
|
|
79
|
-
return u.join("");
|
|
80
|
-
};
|
|
81
|
-
o.prototype.Token = C;
|
|
82
|
-
export {
|
|
83
|
-
o as default
|
|
84
|
-
};
|
package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/table.js
DELETED
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { isSpace as g } from "../common/utils.js";
|
|
2
|
-
const S = 65536;
|
|
3
|
-
function x(e, o) {
|
|
4
|
-
const p = e.bMarks[o] + e.tShift[o], h = e.eMarks[o];
|
|
5
|
-
return e.src.slice(p, h);
|
|
6
|
-
}
|
|
7
|
-
function y(e) {
|
|
8
|
-
const o = [], p = e.length;
|
|
9
|
-
let h = 0, l = e.charCodeAt(h), i = !1, f = 0, c = "";
|
|
10
|
-
for (; h < p; )
|
|
11
|
-
l === 124 && (i ? (c += e.substring(f, h - 1), f = h) : (o.push(c + e.substring(f, h)), c = "", f = h + 1)), i = l === 92, h++, l = e.charCodeAt(h);
|
|
12
|
-
return o.push(c + e.substring(f)), o;
|
|
13
|
-
}
|
|
14
|
-
function O(e, o, p, h) {
|
|
15
|
-
if (o + 2 > p)
|
|
16
|
-
return !1;
|
|
17
|
-
let l = o + 1;
|
|
18
|
-
if (e.sCount[l] < e.blkIndent || e.sCount[l] - e.blkIndent >= 4)
|
|
19
|
-
return !1;
|
|
20
|
-
let i = e.bMarks[l] + e.tShift[l];
|
|
21
|
-
if (i >= e.eMarks[l])
|
|
22
|
-
return !1;
|
|
23
|
-
const f = e.src.charCodeAt(i++);
|
|
24
|
-
if (f !== 124 && f !== 45 && f !== 58 || i >= e.eMarks[l])
|
|
25
|
-
return !1;
|
|
26
|
-
const c = e.src.charCodeAt(i++);
|
|
27
|
-
if (c !== 124 && c !== 45 && c !== 58 && !g(c) || f === 45 && g(c))
|
|
28
|
-
return !1;
|
|
29
|
-
for (; i < e.eMarks[l]; ) {
|
|
30
|
-
const r = e.src.charCodeAt(i);
|
|
31
|
-
if (r !== 124 && r !== 45 && r !== 58 && !g(r))
|
|
32
|
-
return !1;
|
|
33
|
-
i++;
|
|
34
|
-
}
|
|
35
|
-
let d = x(e, o + 1), n = d.split("|");
|
|
36
|
-
const s = [];
|
|
37
|
-
for (let r = 0; r < n.length; r++) {
|
|
38
|
-
const u = n[r].trim();
|
|
39
|
-
if (!u) {
|
|
40
|
-
if (r === 0 || r === n.length - 1)
|
|
41
|
-
continue;
|
|
42
|
-
return !1;
|
|
43
|
-
}
|
|
44
|
-
if (!/^:?-+:?$/.test(u))
|
|
45
|
-
return !1;
|
|
46
|
-
u.charCodeAt(u.length - 1) === 58 ? s.push(u.charCodeAt(0) === 58 ? "center" : "right") : u.charCodeAt(0) === 58 ? s.push("left") : s.push("");
|
|
47
|
-
}
|
|
48
|
-
if (d = x(e, o).trim(), d.indexOf("|") === -1 || e.sCount[o] - e.blkIndent >= 4)
|
|
49
|
-
return !1;
|
|
50
|
-
n = y(d), n.length && n[0] === "" && n.shift(), n.length && n[n.length - 1] === "" && n.pop();
|
|
51
|
-
const b = n.length;
|
|
52
|
-
if (b === 0 || b !== s.length)
|
|
53
|
-
return !1;
|
|
54
|
-
if (h)
|
|
55
|
-
return !0;
|
|
56
|
-
const M = e.parentType;
|
|
57
|
-
e.parentType = "table";
|
|
58
|
-
const C = e.md.block.ruler.getRules("blockquote"), T = e.push("table_open", "table", 1), m = [o, 0];
|
|
59
|
-
T.map = m;
|
|
60
|
-
const D = e.push("thead_open", "thead", 1);
|
|
61
|
-
D.map = [o, o + 1];
|
|
62
|
-
const I = e.push("tr_open", "tr", 1);
|
|
63
|
-
I.map = [o, o + 1];
|
|
64
|
-
for (let r = 0; r < n.length; r++) {
|
|
65
|
-
const u = e.push("th_open", "th", 1);
|
|
66
|
-
s[r] && (u.attrs = [["style", "text-align:" + s[r]]]);
|
|
67
|
-
const t = e.push("inline", "", 0);
|
|
68
|
-
t.content = n[r].trim(), t.children = [], e.push("th_close", "th", -1);
|
|
69
|
-
}
|
|
70
|
-
e.push("tr_close", "tr", -1), e.push("thead_close", "thead", -1);
|
|
71
|
-
let k, A = 0;
|
|
72
|
-
for (l = o + 2; l < p && !(e.sCount[l] < e.blkIndent); l++) {
|
|
73
|
-
let r = !1;
|
|
74
|
-
for (let t = 0, _ = C.length; t < _; t++)
|
|
75
|
-
if (C[t](e, l, p, !0)) {
|
|
76
|
-
r = !0;
|
|
77
|
-
break;
|
|
78
|
-
}
|
|
79
|
-
if (r || (d = x(e, l).trim(), !d) || e.sCount[l] - e.blkIndent >= 4 || (n = y(d), n.length && n[0] === "" && n.shift(), n.length && n[n.length - 1] === "" && n.pop(), A += b - n.length, A > S))
|
|
80
|
-
break;
|
|
81
|
-
if (l === o + 2) {
|
|
82
|
-
const t = e.push("tbody_open", "tbody", 1);
|
|
83
|
-
t.map = k = [o + 2, 0];
|
|
84
|
-
}
|
|
85
|
-
const u = e.push("tr_open", "tr", 1);
|
|
86
|
-
u.map = [l, l + 1];
|
|
87
|
-
for (let t = 0; t < b; t++) {
|
|
88
|
-
const _ = e.push("td_open", "td", 1);
|
|
89
|
-
s[t] && (_.attrs = [["style", "text-align:" + s[t]]]);
|
|
90
|
-
const a = e.push("inline", "", 0);
|
|
91
|
-
a.content = n[t] ? n[t].trim() : "", a.children = [], e.push("td_close", "td", -1);
|
|
92
|
-
}
|
|
93
|
-
e.push("tr_close", "tr", -1);
|
|
94
|
-
}
|
|
95
|
-
return k && (e.push("tbody_close", "tbody", -1), k[1] = l), e.push("table_close", "table", -1), m[1] = l, e.parentType = M, e.line = l, !0;
|
|
96
|
-
}
|
|
97
|
-
export {
|
|
98
|
-
O as default
|
|
99
|
-
};
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { arrayReplaceAt as _ } from "../common/utils.js";
|
|
2
|
-
function w(e) {
|
|
3
|
-
return /^<a[>\s]/i.test(e);
|
|
4
|
-
}
|
|
5
|
-
function g(e) {
|
|
6
|
-
return /^<\/a\s*>/i.test(e);
|
|
7
|
-
}
|
|
8
|
-
function b(e) {
|
|
9
|
-
const f = e.tokens;
|
|
10
|
-
if (e.md.options.linkify)
|
|
11
|
-
for (let k = 0, T = f.length; k < T; k++) {
|
|
12
|
-
if (f[k].type !== "inline" || !e.md.linkify.pretest(f[k].content))
|
|
13
|
-
continue;
|
|
14
|
-
let c = f[k].children, u = 0;
|
|
15
|
-
for (let l = c.length - 1; l >= 0; l--) {
|
|
16
|
-
const i = c[l];
|
|
17
|
-
if (i.type === "link_close") {
|
|
18
|
-
for (l--; c[l].level !== i.level && c[l].type !== "link_open"; )
|
|
19
|
-
l--;
|
|
20
|
-
continue;
|
|
21
|
-
}
|
|
22
|
-
if (i.type === "html_inline" && (w(i.content) && u > 0 && u--, g(i.content) && u++), !(u > 0) && i.type === "text" && e.md.linkify.test(i.content)) {
|
|
23
|
-
const h = i.content;
|
|
24
|
-
let t = e.md.linkify.match(h);
|
|
25
|
-
const s = [];
|
|
26
|
-
let r = i.level, p = 0;
|
|
27
|
-
t.length > 0 && t[0].index === 0 && l > 0 && c[l - 1].type === "text_special" && (t = t.slice(1));
|
|
28
|
-
for (let n = 0; n < t.length; n++) {
|
|
29
|
-
const L = t[n].url, y = e.md.normalizeLink(L);
|
|
30
|
-
if (!e.md.validateLink(y))
|
|
31
|
-
continue;
|
|
32
|
-
let o = t[n].text;
|
|
33
|
-
t[n].schema ? t[n].schema === "mailto:" && !/^mailto:/i.test(o) ? o = e.md.normalizeLinkText("mailto:" + o).replace(/^mailto:/, "") : o = e.md.normalizeLinkText(o) : o = e.md.normalizeLinkText("http://" + o).replace(/^http:\/\//, "");
|
|
34
|
-
const v = t[n].index;
|
|
35
|
-
if (v > p) {
|
|
36
|
-
const x = new e.Token("text", "", 0);
|
|
37
|
-
x.content = h.slice(p, v), x.level = r, s.push(x);
|
|
38
|
-
}
|
|
39
|
-
const m = new e.Token("link_open", "a", 1);
|
|
40
|
-
m.attrs = [["href", y]], m.level = r++, m.markup = "linkify", m.info = "auto", s.push(m);
|
|
41
|
-
const d = new e.Token("text", "", 0);
|
|
42
|
-
d.content = o, d.level = r, s.push(d);
|
|
43
|
-
const a = new e.Token("link_close", "a", -1);
|
|
44
|
-
a.level = --r, a.markup = "linkify", a.info = "auto", s.push(a), p = t[n].lastIndex;
|
|
45
|
-
}
|
|
46
|
-
if (p < h.length) {
|
|
47
|
-
const n = new e.Token("text", "", 0);
|
|
48
|
-
n.content = h.slice(p), n.level = r, s.push(n);
|
|
49
|
-
}
|
|
50
|
-
f[k].children = c = _(c, l, s);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
export {
|
|
56
|
-
b as default
|
|
57
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
const c = /\+-|\.\.|\?\?\?\?|!!!!|,,|--/, i = /\((c|tm|r)\)/i, l = /\((c|tm|r)\)/ig, r = {
|
|
2
|
-
c: "©",
|
|
3
|
-
r: "®",
|
|
4
|
-
tm: "™"
|
|
5
|
-
};
|
|
6
|
-
function p(n, e) {
|
|
7
|
-
return r[e.toLowerCase()];
|
|
8
|
-
}
|
|
9
|
-
function f(n) {
|
|
10
|
-
let e = 0;
|
|
11
|
-
for (let o = n.length - 1; o >= 0; o--) {
|
|
12
|
-
const t = n[o];
|
|
13
|
-
t.type === "text" && !e && (t.content = t.content.replace(l, p)), t.type === "link_open" && t.info === "auto" && e--, t.type === "link_close" && t.info === "auto" && e++;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
function a(n) {
|
|
17
|
-
let e = 0;
|
|
18
|
-
for (let o = n.length - 1; o >= 0; o--) {
|
|
19
|
-
const t = n[o];
|
|
20
|
-
t.type === "text" && !e && c.test(t.content) && (t.content = t.content.replace(/\+-/g, "±").replace(/\.{2,}/g, "…").replace(/([?!])…/g, "$1..").replace(/([?!]){4,}/g, "$1$1$1").replace(/,{2,}/g, ",").replace(/(^|[^-])---(?=[^-]|$)/mg, "$1—").replace(/(^|\s)--(?=\s|$)/mg, "$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg, "$1–")), t.type === "link_open" && t.info === "auto" && e--, t.type === "link_close" && t.info === "auto" && e++;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
function s(n) {
|
|
24
|
-
let e;
|
|
25
|
-
if (n.md.options.typographer)
|
|
26
|
-
for (e = n.tokens.length - 1; e >= 0; e--)
|
|
27
|
-
n.tokens[e].type === "inline" && (i.test(n.tokens[e].content) && f(n.tokens[e].children), c.test(n.tokens[e].content) && a(n.tokens[e].children));
|
|
28
|
-
}
|
|
29
|
-
export {
|
|
30
|
-
s as default
|
|
31
|
-
};
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import { isMdAsciiPunct as v, isPunctChar as E, isWhiteSpace as P } from "../common/utils.js";
|
|
2
|
-
const T = /['"]/, q = /['"]/g, O = "’";
|
|
3
|
-
function b(t, n, e) {
|
|
4
|
-
return t.slice(0, n) + e + t.slice(n + 1);
|
|
5
|
-
}
|
|
6
|
-
function Q(t, n) {
|
|
7
|
-
let e;
|
|
8
|
-
const i = [];
|
|
9
|
-
for (let c = 0; c < t.length; c++) {
|
|
10
|
-
const l = t[c], x = t[c].level;
|
|
11
|
-
for (e = i.length - 1; e >= 0 && !(i[e].level <= x); e--)
|
|
12
|
-
;
|
|
13
|
-
if (i.length = e + 1, l.type !== "text")
|
|
14
|
-
continue;
|
|
15
|
-
let h = l.content, r = 0, m = h.length;
|
|
16
|
-
e:
|
|
17
|
-
for (; r < m; ) {
|
|
18
|
-
q.lastIndex = r;
|
|
19
|
-
const o = q.exec(h);
|
|
20
|
-
if (!o)
|
|
21
|
-
break;
|
|
22
|
-
let s = !0, f = !0;
|
|
23
|
-
r = o.index + 1;
|
|
24
|
-
const d = o[0] === "'";
|
|
25
|
-
let a = 32;
|
|
26
|
-
if (o.index - 1 >= 0)
|
|
27
|
-
a = h.charCodeAt(o.index - 1);
|
|
28
|
-
else
|
|
29
|
-
for (e = c - 1; e >= 0 && !(t[e].type === "softbreak" || t[e].type === "hardbreak"); e--)
|
|
30
|
-
if (t[e].content) {
|
|
31
|
-
a = t[e].content.charCodeAt(t[e].content.length - 1);
|
|
32
|
-
break;
|
|
33
|
-
}
|
|
34
|
-
let u = 32;
|
|
35
|
-
if (r < m)
|
|
36
|
-
u = h.charCodeAt(r);
|
|
37
|
-
else
|
|
38
|
-
for (e = c + 1; e < t.length && !(t[e].type === "softbreak" || t[e].type === "hardbreak"); e++)
|
|
39
|
-
if (t[e].content) {
|
|
40
|
-
u = t[e].content.charCodeAt(0);
|
|
41
|
-
break;
|
|
42
|
-
}
|
|
43
|
-
const k = v(a) || E(String.fromCharCode(a)), S = v(u) || E(String.fromCharCode(u)), y = P(a), A = P(u);
|
|
44
|
-
if (A ? s = !1 : S && (y || k || (s = !1)), y ? f = !1 : k && (A || S || (f = !1)), u === 34 && o[0] === '"' && a >= 48 && a <= 57 && (f = s = !1), s && f && (s = k, f = S), !s && !f) {
|
|
45
|
-
d && (l.content = b(l.content, o.index, O));
|
|
46
|
-
continue;
|
|
47
|
-
}
|
|
48
|
-
if (f)
|
|
49
|
-
for (e = i.length - 1; e >= 0; e--) {
|
|
50
|
-
let p = i[e];
|
|
51
|
-
if (i[e].level < x)
|
|
52
|
-
break;
|
|
53
|
-
if (p.single === d && i[e].level === x) {
|
|
54
|
-
p = i[e];
|
|
55
|
-
let g, C;
|
|
56
|
-
d ? (g = n.md.options.quotes[2], C = n.md.options.quotes[3]) : (g = n.md.options.quotes[0], C = n.md.options.quotes[1]), l.content = b(l.content, o.index, C), t[p.token].content = b(
|
|
57
|
-
t[p.token].content,
|
|
58
|
-
p.pos,
|
|
59
|
-
g
|
|
60
|
-
), r += C.length - 1, p.token === c && (r += g.length - 1), h = l.content, m = h.length, i.length = e;
|
|
61
|
-
continue e;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
s ? i.push({
|
|
65
|
-
token: c,
|
|
66
|
-
pos: o.index,
|
|
67
|
-
single: d,
|
|
68
|
-
level: x
|
|
69
|
-
}) : f && d && (l.content = b(l.content, o.index, O));
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
function L(t) {
|
|
74
|
-
if (t.md.options.typographer)
|
|
75
|
-
for (let n = t.tokens.length - 1; n >= 0; n--)
|
|
76
|
-
t.tokens[n].type !== "inline" || !T.test(t.tokens[n].content) || Q(t.tokens[n].children, t);
|
|
77
|
-
}
|
|
78
|
-
export {
|
|
79
|
-
L as default
|
|
80
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
function f(i) {
|
|
2
|
-
let t, n;
|
|
3
|
-
const c = i.tokens, s = c.length;
|
|
4
|
-
for (let o = 0; o < s; o++) {
|
|
5
|
-
if (c[o].type !== "inline") continue;
|
|
6
|
-
const e = c[o].children, l = e.length;
|
|
7
|
-
for (t = 0; t < l; t++)
|
|
8
|
-
e[t].type === "text_special" && (e[t].type = "text");
|
|
9
|
-
for (t = n = 0; t < l; t++)
|
|
10
|
-
e[t].type === "text" && t + 1 < l && e[t + 1].type === "text" ? e[t + 1].content = e[t].content + e[t + 1].content : (t !== n && (e[n] = e[t]), n++);
|
|
11
|
-
t !== n && (e.length = n);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
export {
|
|
15
|
-
f as default
|
|
16
|
-
};
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
const f = /^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/, k = /^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;
|
|
2
|
-
function s(n, a) {
|
|
3
|
-
let u = n.pos;
|
|
4
|
-
if (n.src.charCodeAt(u) !== 60)
|
|
5
|
-
return !1;
|
|
6
|
-
const e = n.pos, c = n.posMax;
|
|
7
|
-
for (; ; ) {
|
|
8
|
-
if (++u >= c) return !1;
|
|
9
|
-
const r = n.src.charCodeAt(u);
|
|
10
|
-
if (r === 60) return !1;
|
|
11
|
-
if (r === 62) break;
|
|
12
|
-
}
|
|
13
|
-
const o = n.src.slice(e + 1, u);
|
|
14
|
-
if (k.test(o)) {
|
|
15
|
-
const r = n.md.normalizeLink(o);
|
|
16
|
-
if (!n.md.validateLink(r))
|
|
17
|
-
return !1;
|
|
18
|
-
if (!a) {
|
|
19
|
-
const i = n.push("link_open", "a", 1);
|
|
20
|
-
i.attrs = [["href", r]], i.markup = "autolink", i.info = "auto";
|
|
21
|
-
const t = n.push("text", "", 0);
|
|
22
|
-
t.content = n.md.normalizeLinkText(o);
|
|
23
|
-
const l = n.push("link_close", "a", -1);
|
|
24
|
-
l.markup = "autolink", l.info = "auto";
|
|
25
|
-
}
|
|
26
|
-
return n.pos += o.length + 2, !0;
|
|
27
|
-
}
|
|
28
|
-
if (f.test(o)) {
|
|
29
|
-
const r = n.md.normalizeLink("mailto:" + o);
|
|
30
|
-
if (!n.md.validateLink(r))
|
|
31
|
-
return !1;
|
|
32
|
-
if (!a) {
|
|
33
|
-
const i = n.push("link_open", "a", 1);
|
|
34
|
-
i.attrs = [["href", r]], i.markup = "autolink", i.info = "auto";
|
|
35
|
-
const t = n.push("text", "", 0);
|
|
36
|
-
t.content = n.md.normalizeLinkText(o);
|
|
37
|
-
const l = n.push("link_close", "a", -1);
|
|
38
|
-
l.markup = "autolink", l.info = "auto";
|
|
39
|
-
}
|
|
40
|
-
return n.pos += o.length + 2, !0;
|
|
41
|
-
}
|
|
42
|
-
return !1;
|
|
43
|
-
}
|
|
44
|
-
export {
|
|
45
|
-
s as default
|
|
46
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
function s(c, h) {
|
|
2
|
-
let n = c.pos;
|
|
3
|
-
if (c.src.charCodeAt(n) !== 96)
|
|
4
|
-
return !1;
|
|
5
|
-
const p = n;
|
|
6
|
-
n++;
|
|
7
|
-
const k = c.posMax;
|
|
8
|
-
for (; n < k && c.src.charCodeAt(n) === 96; )
|
|
9
|
-
n++;
|
|
10
|
-
const o = c.src.slice(p, n), i = o.length;
|
|
11
|
-
if (c.backticksScanned && (c.backticks[i] || 0) <= p)
|
|
12
|
-
return h || (c.pending += o), c.pos += i, !0;
|
|
13
|
-
let r = n, e;
|
|
14
|
-
for (; (e = c.src.indexOf("`", r)) !== -1; ) {
|
|
15
|
-
for (r = e + 1; r < k && c.src.charCodeAt(r) === 96; )
|
|
16
|
-
r++;
|
|
17
|
-
const l = r - e;
|
|
18
|
-
if (l === i) {
|
|
19
|
-
if (!h) {
|
|
20
|
-
const d = c.push("code_inline", "code", 0);
|
|
21
|
-
d.markup = o, d.content = c.src.slice(n, e).replace(/\n/g, " ").replace(/^ (.+) $/, "$1");
|
|
22
|
-
}
|
|
23
|
-
return c.pos = r, !0;
|
|
24
|
-
}
|
|
25
|
-
c.backticks[l] = e;
|
|
26
|
-
}
|
|
27
|
-
return c.backticksScanned = !0, h || (c.pending += o), c.pos += i, !0;
|
|
28
|
-
}
|
|
29
|
-
export {
|
|
30
|
-
s as default
|
|
31
|
-
};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
function k(o) {
|
|
2
|
-
const r = {}, c = o.length;
|
|
3
|
-
if (!c) return;
|
|
4
|
-
let n = 0, f = -2;
|
|
5
|
-
const a = [];
|
|
6
|
-
for (let s = 0; s < c; s++) {
|
|
7
|
-
const e = o[s];
|
|
8
|
-
if (a.push(0), (o[n].marker !== e.marker || f !== e.token - 1) && (n = s), f = e.token, e.length = e.length || 0, !e.close) continue;
|
|
9
|
-
r.hasOwnProperty(e.marker) || (r[e.marker] = [-1, -1, -1, -1, -1, -1]);
|
|
10
|
-
const h = r[e.marker][(e.open ? 3 : 0) + e.length % 3];
|
|
11
|
-
let t = n - a[n] - 1, i = t;
|
|
12
|
-
for (; t > h; t -= a[t] + 1) {
|
|
13
|
-
const l = o[t];
|
|
14
|
-
if (l.marker === e.marker && l.open && l.end < 0) {
|
|
15
|
-
let p = !1;
|
|
16
|
-
if ((l.close || e.open) && (l.length + e.length) % 3 === 0 && (l.length % 3 !== 0 || e.length % 3 !== 0) && (p = !0), !p) {
|
|
17
|
-
const m = t > 0 && !o[t - 1].open ? a[t - 1] + 1 : 0;
|
|
18
|
-
a[s] = s - t + m, a[t] = m, e.open = !1, l.end = s, l.close = !1, i = -1, f = -2;
|
|
19
|
-
break;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
i !== -1 && (r[e.marker][(e.open ? 3 : 0) + (e.length || 0) % 3] = i);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
function d(o) {
|
|
27
|
-
const r = o.tokens_meta, c = o.tokens_meta.length;
|
|
28
|
-
k(o.delimiters);
|
|
29
|
-
for (let n = 0; n < c; n++)
|
|
30
|
-
r[n] && r[n].delimiters && k(r[n].delimiters);
|
|
31
|
-
}
|
|
32
|
-
export {
|
|
33
|
-
d as default
|
|
34
|
-
};
|