@opentiny/tiny-robot 0.2.0-alpha.2 → 0.2.0-alpha.4
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 +2200 -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 +429 -0
- package/dist/sender/index.js +772 -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} +107 -107
- 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 -17
- package/dist/bubble/BubbleList.vue.d.ts +0 -5
- package/dist/bubble/index.d.ts +0 -12
- package/dist/bubble/index.type.d.ts +0 -51
- 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 -6
- 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 -310
- package/dist/node_modules/.pnpm/@vueuse_shared@13.1.0_vue@3.5.13/node_modules/@vueuse/shared/index.js +0 -110
- 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 -121
- 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.vue.js +0 -7
- package/dist/packages/components/src/bubble/Bubble.vue2.js +0 -76
- package/dist/packages/components/src/bubble/BubbleList.vue.js +0 -7
- package/dist/packages/components/src/bubble/BubbleList.vue2.js +0 -50
- package/dist/packages/components/src/bubble/index.js +0 -18
- 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 -143
- 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 -22
- 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 -175
- 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 -247
- package/src/action-group/ActionGroupItem.vue +0 -9
- package/src/action-group/index.ts +0 -25
- package/src/action-group/index.type.ts +0 -21
- 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.vue +0 -153
- package/src/bubble/BubbleList.vue +0 -55
- package/src/bubble/index.ts +0 -23
- package/src/bubble/index.type.ts +0 -49
- package/src/container/index.ts +0 -12
- package/src/container/index.type.ts +0 -17
- package/src/container/index.vue +0 -109
- 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 -7
- package/src/icon-button/index.vue +0 -58
- 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 -465
- 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,95 +0,0 @@
|
|
|
1
|
-
function o() {
|
|
2
|
-
this.__rules__ = [], this.__cache__ = null;
|
|
3
|
-
}
|
|
4
|
-
o.prototype.__find__ = function(_) {
|
|
5
|
-
for (let e = 0; e < this.__rules__.length; e++)
|
|
6
|
-
if (this.__rules__[e].name === _)
|
|
7
|
-
return e;
|
|
8
|
-
return -1;
|
|
9
|
-
};
|
|
10
|
-
o.prototype.__compile__ = function() {
|
|
11
|
-
const _ = this, e = [""];
|
|
12
|
-
_.__rules__.forEach(function(n) {
|
|
13
|
-
n.enabled && n.alt.forEach(function(t) {
|
|
14
|
-
e.indexOf(t) < 0 && e.push(t);
|
|
15
|
-
});
|
|
16
|
-
}), _.__cache__ = {}, e.forEach(function(n) {
|
|
17
|
-
_.__cache__[n] = [], _.__rules__.forEach(function(t) {
|
|
18
|
-
t.enabled && (n && t.alt.indexOf(n) < 0 || _.__cache__[n].push(t.fn));
|
|
19
|
-
});
|
|
20
|
-
});
|
|
21
|
-
};
|
|
22
|
-
o.prototype.at = function(_, e, n) {
|
|
23
|
-
const t = this.__find__(_), r = n || {};
|
|
24
|
-
if (t === -1)
|
|
25
|
-
throw new Error("Parser rule not found: " + _);
|
|
26
|
-
this.__rules__[t].fn = e, this.__rules__[t].alt = r.alt || [], this.__cache__ = null;
|
|
27
|
-
};
|
|
28
|
-
o.prototype.before = function(_, e, n, t) {
|
|
29
|
-
const r = this.__find__(_), i = t || {};
|
|
30
|
-
if (r === -1)
|
|
31
|
-
throw new Error("Parser rule not found: " + _);
|
|
32
|
-
this.__rules__.splice(r, 0, {
|
|
33
|
-
name: e,
|
|
34
|
-
enabled: !0,
|
|
35
|
-
fn: n,
|
|
36
|
-
alt: i.alt || []
|
|
37
|
-
}), this.__cache__ = null;
|
|
38
|
-
};
|
|
39
|
-
o.prototype.after = function(_, e, n, t) {
|
|
40
|
-
const r = this.__find__(_), i = t || {};
|
|
41
|
-
if (r === -1)
|
|
42
|
-
throw new Error("Parser rule not found: " + _);
|
|
43
|
-
this.__rules__.splice(r + 1, 0, {
|
|
44
|
-
name: e,
|
|
45
|
-
enabled: !0,
|
|
46
|
-
fn: n,
|
|
47
|
-
alt: i.alt || []
|
|
48
|
-
}), this.__cache__ = null;
|
|
49
|
-
};
|
|
50
|
-
o.prototype.push = function(_, e, n) {
|
|
51
|
-
const t = n || {};
|
|
52
|
-
this.__rules__.push({
|
|
53
|
-
name: _,
|
|
54
|
-
enabled: !0,
|
|
55
|
-
fn: e,
|
|
56
|
-
alt: t.alt || []
|
|
57
|
-
}), this.__cache__ = null;
|
|
58
|
-
};
|
|
59
|
-
o.prototype.enable = function(_, e) {
|
|
60
|
-
Array.isArray(_) || (_ = [_]);
|
|
61
|
-
const n = [];
|
|
62
|
-
return _.forEach(function(t) {
|
|
63
|
-
const r = this.__find__(t);
|
|
64
|
-
if (r < 0) {
|
|
65
|
-
if (e)
|
|
66
|
-
return;
|
|
67
|
-
throw new Error("Rules manager: invalid rule name " + t);
|
|
68
|
-
}
|
|
69
|
-
this.__rules__[r].enabled = !0, n.push(t);
|
|
70
|
-
}, this), this.__cache__ = null, n;
|
|
71
|
-
};
|
|
72
|
-
o.prototype.enableOnly = function(_, e) {
|
|
73
|
-
Array.isArray(_) || (_ = [_]), this.__rules__.forEach(function(n) {
|
|
74
|
-
n.enabled = !1;
|
|
75
|
-
}), this.enable(_, e);
|
|
76
|
-
};
|
|
77
|
-
o.prototype.disable = function(_, e) {
|
|
78
|
-
Array.isArray(_) || (_ = [_]);
|
|
79
|
-
const n = [];
|
|
80
|
-
return _.forEach(function(t) {
|
|
81
|
-
const r = this.__find__(t);
|
|
82
|
-
if (r < 0) {
|
|
83
|
-
if (e)
|
|
84
|
-
return;
|
|
85
|
-
throw new Error("Rules manager: invalid rule name " + t);
|
|
86
|
-
}
|
|
87
|
-
this.__rules__[r].enabled = !1, n.push(t);
|
|
88
|
-
}, this), this.__cache__ = null, n;
|
|
89
|
-
};
|
|
90
|
-
o.prototype.getRules = function(_) {
|
|
91
|
-
return this.__cache__ === null && this.__compile__(), this.__cache__[_] || [];
|
|
92
|
-
};
|
|
93
|
-
export {
|
|
94
|
-
o as default
|
|
95
|
-
};
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { isSpace as g } from "../common/utils.js";
|
|
2
|
-
function B(o, r, C, q) {
|
|
3
|
-
let l = o.bMarks[r] + o.tShift[r], k = o.eMarks[r];
|
|
4
|
-
const A = o.lineMax;
|
|
5
|
-
if (o.sCount[r] - o.blkIndent >= 4 || o.src.charCodeAt(l) !== 62)
|
|
6
|
-
return !1;
|
|
7
|
-
if (q)
|
|
8
|
-
return !0;
|
|
9
|
-
const b = [], i = [], h = [], f = [], s = o.md.block.ruler.getRules("blockquote"), T = o.parentType;
|
|
10
|
-
o.parentType = "blockquote";
|
|
11
|
-
let M = !1, n;
|
|
12
|
-
for (n = r; n < C; n++) {
|
|
13
|
-
const u = o.sCount[n] < o.blkIndent;
|
|
14
|
-
if (l = o.bMarks[n] + o.tShift[n], k = o.eMarks[n], l >= k)
|
|
15
|
-
break;
|
|
16
|
-
if (o.src.charCodeAt(l++) === 62 && !u) {
|
|
17
|
-
let c = o.sCount[n] + 1, e, p;
|
|
18
|
-
o.src.charCodeAt(l) === 32 ? (l++, c++, p = !1, e = !0) : o.src.charCodeAt(l) === 9 ? (e = !0, (o.bsCount[n] + c) % 4 === 3 ? (l++, c++, p = !1) : p = !0) : e = !1;
|
|
19
|
-
let d = c;
|
|
20
|
-
for (b.push(o.bMarks[n]), o.bMarks[n] = l; l < k; ) {
|
|
21
|
-
const I = o.src.charCodeAt(l);
|
|
22
|
-
if (g(I))
|
|
23
|
-
I === 9 ? d += 4 - (d + o.bsCount[n] + (p ? 1 : 0)) % 4 : d++;
|
|
24
|
-
else
|
|
25
|
-
break;
|
|
26
|
-
l++;
|
|
27
|
-
}
|
|
28
|
-
M = l >= k, i.push(o.bsCount[n]), o.bsCount[n] = o.sCount[n] + 1 + (e ? 1 : 0), h.push(o.sCount[n]), o.sCount[n] = d - c, f.push(o.tShift[n]), o.tShift[n] = l - o.bMarks[n];
|
|
29
|
-
continue;
|
|
30
|
-
}
|
|
31
|
-
if (M)
|
|
32
|
-
break;
|
|
33
|
-
let S = !1;
|
|
34
|
-
for (let c = 0, e = s.length; c < e; c++)
|
|
35
|
-
if (s[c](o, n, C, !0)) {
|
|
36
|
-
S = !0;
|
|
37
|
-
break;
|
|
38
|
-
}
|
|
39
|
-
if (S) {
|
|
40
|
-
o.lineMax = n, o.blkIndent !== 0 && (b.push(o.bMarks[n]), i.push(o.bsCount[n]), f.push(o.tShift[n]), h.push(o.sCount[n]), o.sCount[n] -= o.blkIndent);
|
|
41
|
-
break;
|
|
42
|
-
}
|
|
43
|
-
b.push(o.bMarks[n]), i.push(o.bsCount[n]), f.push(o.tShift[n]), h.push(o.sCount[n]), o.sCount[n] = -1;
|
|
44
|
-
}
|
|
45
|
-
const y = o.blkIndent;
|
|
46
|
-
o.blkIndent = 0;
|
|
47
|
-
const x = o.push("blockquote_open", "blockquote", 1);
|
|
48
|
-
x.markup = ">";
|
|
49
|
-
const m = [r, 0];
|
|
50
|
-
x.map = m, o.md.block.tokenize(o, r, n);
|
|
51
|
-
const _ = o.push("blockquote_close", "blockquote", -1);
|
|
52
|
-
_.markup = ">", o.lineMax = A, o.parentType = T, m[1] = o.line;
|
|
53
|
-
for (let u = 0; u < f.length; u++)
|
|
54
|
-
o.bMarks[u + r] = b[u], o.tShift[u + r] = f[u], o.sCount[u + r] = h[u], o.bsCount[u + r] = i[u];
|
|
55
|
-
return o.blkIndent = y, !0;
|
|
56
|
-
}
|
|
57
|
-
export {
|
|
58
|
-
B as default
|
|
59
|
-
};
|
package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/code.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
function i(n, l, c) {
|
|
2
|
-
if (n.sCount[l] - n.blkIndent < 4)
|
|
3
|
-
return !1;
|
|
4
|
-
let e = l + 1, o = e;
|
|
5
|
-
for (; e < c; ) {
|
|
6
|
-
if (n.isEmpty(e)) {
|
|
7
|
-
e++;
|
|
8
|
-
continue;
|
|
9
|
-
}
|
|
10
|
-
if (n.sCount[e] - n.blkIndent >= 4) {
|
|
11
|
-
e++, o = e;
|
|
12
|
-
continue;
|
|
13
|
-
}
|
|
14
|
-
break;
|
|
15
|
-
}
|
|
16
|
-
n.line = o;
|
|
17
|
-
const u = n.push("code_block", "code", 0);
|
|
18
|
-
return u.content = n.getLines(l, o, 4 + n.blkIndent, !1) + `
|
|
19
|
-
`, u.map = [l, n.line], !0;
|
|
20
|
-
}
|
|
21
|
-
export {
|
|
22
|
-
i as default
|
|
23
|
-
};
|
package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/fence.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
function m(n, f, d, C) {
|
|
2
|
-
let r = n.bMarks[f] + n.tShift[f], o = n.eMarks[f];
|
|
3
|
-
if (n.sCount[f] - n.blkIndent >= 4 || r + 3 > o)
|
|
4
|
-
return !1;
|
|
5
|
-
const i = n.src.charCodeAt(r);
|
|
6
|
-
if (i !== 126 && i !== 96)
|
|
7
|
-
return !1;
|
|
8
|
-
let u = r;
|
|
9
|
-
r = n.skipChars(r, i);
|
|
10
|
-
let c = r - u;
|
|
11
|
-
if (c < 3)
|
|
12
|
-
return !1;
|
|
13
|
-
const h = n.src.slice(u, r), k = n.src.slice(r, o);
|
|
14
|
-
if (i === 96 && k.indexOf(String.fromCharCode(i)) >= 0)
|
|
15
|
-
return !1;
|
|
16
|
-
if (C)
|
|
17
|
-
return !0;
|
|
18
|
-
let e = f, p = !1;
|
|
19
|
-
for (; e++, !(e >= d || (r = u = n.bMarks[e] + n.tShift[e], o = n.eMarks[e], r < o && n.sCount[e] < n.blkIndent)); )
|
|
20
|
-
if (n.src.charCodeAt(r) === i && !(n.sCount[e] - n.blkIndent >= 4) && (r = n.skipChars(r, i), !(r - u < c) && (r = n.skipSpaces(r), !(r < o)))) {
|
|
21
|
-
p = !0;
|
|
22
|
-
break;
|
|
23
|
-
}
|
|
24
|
-
c = n.sCount[f], n.line = e + (p ? 1 : 0);
|
|
25
|
-
const l = n.push("fence", "code", 0);
|
|
26
|
-
return l.info = k, l.content = n.getLines(f + 1, e, c, !0), l.markup = h, l.map = [f, n.line], !0;
|
|
27
|
-
}
|
|
28
|
-
export {
|
|
29
|
-
m as default
|
|
30
|
-
};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { isSpace as u } from "../common/utils.js";
|
|
2
|
-
function s(n, e, d, f) {
|
|
3
|
-
let r = n.bMarks[e] + n.tShift[e], c = n.eMarks[e];
|
|
4
|
-
if (n.sCount[e] - n.blkIndent >= 4)
|
|
5
|
-
return !1;
|
|
6
|
-
let l = n.src.charCodeAt(r);
|
|
7
|
-
if (l !== 35 || r >= c)
|
|
8
|
-
return !1;
|
|
9
|
-
let i = 1;
|
|
10
|
-
for (l = n.src.charCodeAt(++r); l === 35 && r < c && i <= 6; )
|
|
11
|
-
i++, l = n.src.charCodeAt(++r);
|
|
12
|
-
if (i > 6 || r < c && !u(l))
|
|
13
|
-
return !1;
|
|
14
|
-
if (f)
|
|
15
|
-
return !0;
|
|
16
|
-
c = n.skipSpacesBack(c, r);
|
|
17
|
-
const o = n.skipCharsBack(c, 35, r);
|
|
18
|
-
o > r && u(n.src.charCodeAt(o - 1)) && (c = o), n.line = e + 1;
|
|
19
|
-
const p = n.push("heading_open", "h" + String(i), 1);
|
|
20
|
-
p.markup = "########".slice(0, i), p.map = [e, n.line];
|
|
21
|
-
const h = n.push("inline", "", 0);
|
|
22
|
-
h.content = n.src.slice(r, c).trim(), h.map = [e, n.line], h.children = [];
|
|
23
|
-
const k = n.push("heading_close", "h" + String(i), -1);
|
|
24
|
-
return k.markup = "########".slice(0, i), !0;
|
|
25
|
-
}
|
|
26
|
-
export {
|
|
27
|
-
s as default
|
|
28
|
-
};
|
package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/hr.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { isSpace as h } from "../common/utils.js";
|
|
2
|
-
function d(r, n, m, i) {
|
|
3
|
-
const l = r.eMarks[n];
|
|
4
|
-
if (r.sCount[n] - r.blkIndent >= 4)
|
|
5
|
-
return !1;
|
|
6
|
-
let e = r.bMarks[n] + r.tShift[n];
|
|
7
|
-
const o = r.src.charCodeAt(e++);
|
|
8
|
-
if (o !== 42 && o !== 45 && o !== 95)
|
|
9
|
-
return !1;
|
|
10
|
-
let f = 1;
|
|
11
|
-
for (; e < l; ) {
|
|
12
|
-
const u = r.src.charCodeAt(e++);
|
|
13
|
-
if (u !== o && !h(u))
|
|
14
|
-
return !1;
|
|
15
|
-
u === o && f++;
|
|
16
|
-
}
|
|
17
|
-
if (f < 3)
|
|
18
|
-
return !1;
|
|
19
|
-
if (i)
|
|
20
|
-
return !0;
|
|
21
|
-
r.line = n + 1;
|
|
22
|
-
const c = r.push("hr", "hr", 0);
|
|
23
|
-
return c.map = [n, r.line], c.markup = Array(f + 1).join(String.fromCharCode(o)), !0;
|
|
24
|
-
}
|
|
25
|
-
export {
|
|
26
|
-
d as default
|
|
27
|
-
};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import p from "../common/html_blocks.js";
|
|
2
|
-
import { HTML_OPEN_CLOSE_TAG_RE as s } from "../common/html_re.js";
|
|
3
|
-
const f = [
|
|
4
|
-
[/^<(script|pre|style|textarea)(?=(\s|>|$))/i, /<\/(script|pre|style|textarea)>/i, !0],
|
|
5
|
-
[/^<!--/, /-->/, !0],
|
|
6
|
-
[/^<\?/, /\?>/, !0],
|
|
7
|
-
[/^<![A-Z]/, />/, !0],
|
|
8
|
-
[/^<!\[CDATA\[/, /\]\]>/, !0],
|
|
9
|
-
[new RegExp("^</?(" + p.join("|") + ")(?=(\\s|/?>|$))", "i"), /^$/, !0],
|
|
10
|
-
[new RegExp(s.source + "\\s*$"), /^$/, !1]
|
|
11
|
-
];
|
|
12
|
-
function h(e, l, c, k) {
|
|
13
|
-
let o = e.bMarks[l] + e.tShift[l], u = e.eMarks[l];
|
|
14
|
-
if (e.sCount[l] - e.blkIndent >= 4 || !e.md.options.html || e.src.charCodeAt(o) !== 60)
|
|
15
|
-
return !1;
|
|
16
|
-
let i = e.src.slice(o, u), n = 0;
|
|
17
|
-
for (; n < f.length && !f[n][0].test(i); n++)
|
|
18
|
-
;
|
|
19
|
-
if (n === f.length)
|
|
20
|
-
return !1;
|
|
21
|
-
if (k)
|
|
22
|
-
return f[n][2];
|
|
23
|
-
let r = l + 1;
|
|
24
|
-
if (!f[n][1].test(i)) {
|
|
25
|
-
for (; r < c && !(e.sCount[r] < e.blkIndent); r++)
|
|
26
|
-
if (o = e.bMarks[r] + e.tShift[r], u = e.eMarks[r], i = e.src.slice(o, u), f[n][1].test(i)) {
|
|
27
|
-
i.length !== 0 && r++;
|
|
28
|
-
break;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
e.line = r;
|
|
32
|
-
const t = e.push("html_block", "", 0);
|
|
33
|
-
return t.map = [l, r], t.content = e.getLines(l, r, e.blkIndent, !0), !0;
|
|
34
|
-
}
|
|
35
|
-
export {
|
|
36
|
-
h as default
|
|
37
|
-
};
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
function C(n, i, f) {
|
|
2
|
-
const c = n.md.block.ruler.getRules("paragraph");
|
|
3
|
-
if (n.sCount[i] - n.blkIndent >= 4)
|
|
4
|
-
return !1;
|
|
5
|
-
const d = n.parentType;
|
|
6
|
-
n.parentType = "paragraph";
|
|
7
|
-
let l = 0, o, r = i + 1;
|
|
8
|
-
for (; r < f && !n.isEmpty(r); r++) {
|
|
9
|
-
if (n.sCount[r] - n.blkIndent > 3)
|
|
10
|
-
continue;
|
|
11
|
-
if (n.sCount[r] >= n.blkIndent) {
|
|
12
|
-
let e = n.bMarks[r] + n.tShift[r];
|
|
13
|
-
const p = n.eMarks[r];
|
|
14
|
-
if (e < p && (o = n.src.charCodeAt(e), (o === 45 || o === 61) && (e = n.skipChars(e, o), e = n.skipSpaces(e), e >= p))) {
|
|
15
|
-
l = o === 61 ? 1 : 2;
|
|
16
|
-
break;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
if (n.sCount[r] < 0)
|
|
20
|
-
continue;
|
|
21
|
-
let h = !1;
|
|
22
|
-
for (let e = 0, p = c.length; e < p; e++)
|
|
23
|
-
if (c[e](n, r, f, !0)) {
|
|
24
|
-
h = !0;
|
|
25
|
-
break;
|
|
26
|
-
}
|
|
27
|
-
if (h)
|
|
28
|
-
break;
|
|
29
|
-
}
|
|
30
|
-
if (!l)
|
|
31
|
-
return !1;
|
|
32
|
-
const m = n.getLines(i, r, n.blkIndent, !1).trim();
|
|
33
|
-
n.line = r + 1;
|
|
34
|
-
const k = n.push("heading_open", "h" + String(l), 1);
|
|
35
|
-
k.markup = String.fromCharCode(o), k.map = [i, n.line];
|
|
36
|
-
const u = n.push("inline", "", 0);
|
|
37
|
-
u.content = m, u.map = [i, n.line - 1], u.children = [];
|
|
38
|
-
const g = n.push("heading_close", "h" + String(l), -1);
|
|
39
|
-
return g.markup = String.fromCharCode(o), n.parentType = d, !0;
|
|
40
|
-
}
|
|
41
|
-
export {
|
|
42
|
-
C as default
|
|
43
|
-
};
|
package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/list.js
DELETED
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
import { isSpace as v } from "../common/utils.js";
|
|
2
|
-
function T(r, c) {
|
|
3
|
-
const u = r.eMarks[c];
|
|
4
|
-
let i = r.bMarks[c] + r.tShift[c];
|
|
5
|
-
const e = r.src.charCodeAt(i++);
|
|
6
|
-
if (e !== 42 && e !== 45 && e !== 43)
|
|
7
|
-
return -1;
|
|
8
|
-
if (i < u) {
|
|
9
|
-
const l = r.src.charCodeAt(i);
|
|
10
|
-
if (!v(l))
|
|
11
|
-
return -1;
|
|
12
|
-
}
|
|
13
|
-
return i;
|
|
14
|
-
}
|
|
15
|
-
function y(r, c) {
|
|
16
|
-
const u = r.bMarks[c] + r.tShift[c], i = r.eMarks[c];
|
|
17
|
-
let e = u;
|
|
18
|
-
if (e + 1 >= i)
|
|
19
|
-
return -1;
|
|
20
|
-
let l = r.src.charCodeAt(e++);
|
|
21
|
-
if (l < 48 || l > 57)
|
|
22
|
-
return -1;
|
|
23
|
-
for (; ; ) {
|
|
24
|
-
if (e >= i)
|
|
25
|
-
return -1;
|
|
26
|
-
if (l = r.src.charCodeAt(e++), l >= 48 && l <= 57) {
|
|
27
|
-
if (e - u >= 10)
|
|
28
|
-
return -1;
|
|
29
|
-
continue;
|
|
30
|
-
}
|
|
31
|
-
if (l === 41 || l === 46)
|
|
32
|
-
break;
|
|
33
|
-
return -1;
|
|
34
|
-
}
|
|
35
|
-
return e < i && (l = r.src.charCodeAt(e), !v(l)) ? -1 : e;
|
|
36
|
-
}
|
|
37
|
-
function N(r, c) {
|
|
38
|
-
const u = r.level + 2;
|
|
39
|
-
for (let i = c + 2, e = r.tokens.length - 2; i < e; i++)
|
|
40
|
-
r.tokens[i].level === u && r.tokens[i].type === "paragraph_open" && (r.tokens[i + 2].hidden = !0, r.tokens[i].hidden = !0, i += 2);
|
|
41
|
-
}
|
|
42
|
-
function a(r, c, u, i) {
|
|
43
|
-
let e, l, m, o, n = c, x = !0;
|
|
44
|
-
if (r.sCount[n] - r.blkIndent >= 4 || r.listIndent >= 0 && r.sCount[n] - r.listIndent >= 4 && r.sCount[n] < r.blkIndent)
|
|
45
|
-
return !1;
|
|
46
|
-
let C = !1;
|
|
47
|
-
i && r.parentType === "paragraph" && r.sCount[n] >= r.blkIndent && (C = !0);
|
|
48
|
-
let k, b, f;
|
|
49
|
-
if ((f = y(r, n)) >= 0) {
|
|
50
|
-
if (k = !0, m = r.bMarks[n] + r.tShift[n], b = Number(r.src.slice(m, f - 1)), C && b !== 1) return !1;
|
|
51
|
-
} else if ((f = T(r, n)) >= 0)
|
|
52
|
-
k = !1;
|
|
53
|
-
else
|
|
54
|
-
return !1;
|
|
55
|
-
if (C && r.skipSpaces(f) >= r.eMarks[n])
|
|
56
|
-
return !1;
|
|
57
|
-
if (i)
|
|
58
|
-
return !0;
|
|
59
|
-
const d = r.src.charCodeAt(f - 1), E = r.tokens.length;
|
|
60
|
-
k ? (o = r.push("ordered_list_open", "ol", 1), b !== 1 && (o.attrs = [["start", b]])) : o = r.push("bullet_list_open", "ul", 1);
|
|
61
|
-
const S = [n, 0];
|
|
62
|
-
o.map = S, o.markup = String.fromCharCode(d);
|
|
63
|
-
let I = !1;
|
|
64
|
-
const M = r.md.block.ruler.getRules("list"), P = r.parentType;
|
|
65
|
-
for (r.parentType = "list"; n < u; ) {
|
|
66
|
-
l = f, e = r.eMarks[n];
|
|
67
|
-
const t = r.sCount[n] + f - (r.bMarks[n] + r.tShift[n]);
|
|
68
|
-
let p = t;
|
|
69
|
-
for (; l < e; ) {
|
|
70
|
-
const h = r.src.charCodeAt(l);
|
|
71
|
-
if (h === 9)
|
|
72
|
-
p += 4 - (p + r.bsCount[n]) % 4;
|
|
73
|
-
else if (h === 32)
|
|
74
|
-
p++;
|
|
75
|
-
else
|
|
76
|
-
break;
|
|
77
|
-
l++;
|
|
78
|
-
}
|
|
79
|
-
const g = l;
|
|
80
|
-
let s;
|
|
81
|
-
g >= e ? s = 1 : s = p - t, s > 4 && (s = 1);
|
|
82
|
-
const w = t + s;
|
|
83
|
-
o = r.push("list_item_open", "li", 1), o.markup = String.fromCharCode(d);
|
|
84
|
-
const _ = [n, 0];
|
|
85
|
-
o.map = _, k && (o.info = r.src.slice(m, f - 1));
|
|
86
|
-
const B = r.tight, O = r.tShift[n], R = r.sCount[n], z = r.listIndent;
|
|
87
|
-
if (r.listIndent = r.blkIndent, r.blkIndent = w, r.tight = !0, r.tShift[n] = g - r.bMarks[n], r.sCount[n] = p, g >= e && r.isEmpty(n + 1) ? r.line = Math.min(r.line + 2, u) : r.md.block.tokenize(r, n, u, !0), (!r.tight || I) && (x = !1), I = r.line - n > 1 && r.isEmpty(r.line - 1), r.blkIndent = r.listIndent, r.listIndent = z, r.tShift[n] = O, r.sCount[n] = R, r.tight = B, o = r.push("list_item_close", "li", -1), o.markup = String.fromCharCode(d), n = r.line, _[1] = n, n >= u || r.sCount[n] < r.blkIndent || r.sCount[n] - r.blkIndent >= 4)
|
|
88
|
-
break;
|
|
89
|
-
let A = !1;
|
|
90
|
-
for (let h = 0, D = M.length; h < D; h++)
|
|
91
|
-
if (M[h](r, n, u, !0)) {
|
|
92
|
-
A = !0;
|
|
93
|
-
break;
|
|
94
|
-
}
|
|
95
|
-
if (A)
|
|
96
|
-
break;
|
|
97
|
-
if (k) {
|
|
98
|
-
if (f = y(r, n), f < 0)
|
|
99
|
-
break;
|
|
100
|
-
m = r.bMarks[n] + r.tShift[n];
|
|
101
|
-
} else if (f = T(r, n), f < 0)
|
|
102
|
-
break;
|
|
103
|
-
if (d !== r.src.charCodeAt(f - 1))
|
|
104
|
-
break;
|
|
105
|
-
}
|
|
106
|
-
return k ? o = r.push("ordered_list_close", "ol", -1) : o = r.push("bullet_list_close", "ul", -1), o.markup = String.fromCharCode(d), S[1] = n, r.line = n, r.parentType = P, x && N(r, E), !0;
|
|
107
|
-
}
|
|
108
|
-
export {
|
|
109
|
-
a as default
|
|
110
|
-
};
|
|
@@ -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
|
-
};
|