@uiw/react-md-editor 3.19.3 → 3.19.5

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/mdeditor.js CHANGED
@@ -9565,7 +9565,7 @@ __webpack_require__.d(__webpack_exports__, {
9565
9565
  "unorderedListCommand": () => (/* reexport */ unorderedListCommand)
9566
9566
  });
9567
9567
 
9568
- // NAMESPACE OBJECT: ../node_modules/micromark/lib/constructs.js
9568
+ // NAMESPACE OBJECT: ../node_modules/react-markdown/node_modules/micromark/lib/constructs.js
9569
9569
  var constructs_namespaceObject = {};
9570
9570
  __webpack_require__.r(constructs_namespaceObject);
9571
9571
  __webpack_require__.d(constructs_namespaceObject, {
@@ -9785,7 +9785,7 @@ function _extends() {
9785
9785
  }
9786
9786
  // EXTERNAL MODULE: ../node_modules/is-buffer/index.js
9787
9787
  var is_buffer = __webpack_require__(372);
9788
- ;// CONCATENATED MODULE: ../node_modules/unist-util-stringify-position/index.js
9788
+ ;// CONCATENATED MODULE: ../node_modules/vfile-message/node_modules/unist-util-stringify-position/index.js
9789
9789
  /**
9790
9790
  * @typedef {import('unist').Point} Point
9791
9791
  * @typedef {import('unist').Node} Node
@@ -11729,7 +11729,7 @@ function looksLikeAVFileValue(value) {
11729
11729
  return typeof value === 'string' || is_buffer(value)
11730
11730
  }
11731
11731
 
11732
- ;// CONCATENATED MODULE: ../node_modules/mdast-util-to-string/index.js
11732
+ ;// CONCATENATED MODULE: ../node_modules/react-markdown/node_modules/mdast-util-to-string/index.js
11733
11733
  /**
11734
11734
  * @typedef Options
11735
11735
  * @property {boolean} [includeImageAlt=true]
@@ -12230,7 +12230,7 @@ function factorySpace(effects, ok, type, max) {
12230
12230
  }
12231
12231
  }
12232
12232
 
12233
- ;// CONCATENATED MODULE: ../node_modules/micromark/lib/initialize/content.js
12233
+ ;// CONCATENATED MODULE: ../node_modules/react-markdown/node_modules/micromark/lib/initialize/content.js
12234
12234
  /**
12235
12235
  * @typedef {import('micromark-util-types').InitialConstruct} InitialConstruct
12236
12236
  * @typedef {import('micromark-util-types').Initializer} Initializer
@@ -12311,7 +12311,7 @@ function initializeContent(effects) {
12311
12311
  }
12312
12312
  }
12313
12313
 
12314
- ;// CONCATENATED MODULE: ../node_modules/micromark/lib/initialize/document.js
12314
+ ;// CONCATENATED MODULE: ../node_modules/react-markdown/node_modules/micromark/lib/initialize/document.js
12315
12315
  /**
12316
12316
  * @typedef {import('micromark-util-types').InitialConstruct} InitialConstruct
12317
12317
  * @typedef {import('micromark-util-types').Initializer} Initializer
@@ -13086,7 +13086,7 @@ function tokenizeContinuation(effects, ok, nok) {
13086
13086
  }
13087
13087
  }
13088
13088
 
13089
- ;// CONCATENATED MODULE: ../node_modules/micromark/lib/initialize/flow.js
13089
+ ;// CONCATENATED MODULE: ../node_modules/react-markdown/node_modules/micromark/lib/initialize/flow.js
13090
13090
  /**
13091
13091
  * @typedef {import('micromark-util-types').InitialConstruct} InitialConstruct
13092
13092
  * @typedef {import('micromark-util-types').Initializer} Initializer
@@ -13153,7 +13153,7 @@ function initializeFlow(effects) {
13153
13153
  }
13154
13154
  }
13155
13155
 
13156
- ;// CONCATENATED MODULE: ../node_modules/micromark/lib/initialize/text.js
13156
+ ;// CONCATENATED MODULE: ../node_modules/react-markdown/node_modules/micromark/lib/initialize/text.js
13157
13157
  /**
13158
13158
  * @typedef {import('micromark-util-types').Resolver} Resolver
13159
13159
  * @typedef {import('micromark-util-types').Initializer} Initializer
@@ -13405,7 +13405,7 @@ function resolveAll(constructs, events, context) {
13405
13405
  return events
13406
13406
  }
13407
13407
 
13408
- ;// CONCATENATED MODULE: ../node_modules/micromark/lib/create-tokenizer.js
13408
+ ;// CONCATENATED MODULE: ../node_modules/react-markdown/node_modules/micromark/lib/create-tokenizer.js
13409
13409
  /**
13410
13410
  * @typedef {import('micromark-util-types').Code} Code
13411
13411
  * @typedef {import('micromark-util-types').Chunk} Chunk
@@ -18010,7 +18010,7 @@ function tokenizeCodeText(effects, ok, nok) {
18010
18010
  }
18011
18011
  }
18012
18012
 
18013
- ;// CONCATENATED MODULE: ../node_modules/micromark/lib/constructs.js
18013
+ ;// CONCATENATED MODULE: ../node_modules/react-markdown/node_modules/micromark/lib/constructs.js
18014
18014
  /**
18015
18015
  * @typedef {import('micromark-util-types').Extension} Extension
18016
18016
  */
@@ -18096,7 +18096,7 @@ const disable = {
18096
18096
  null: []
18097
18097
  }
18098
18098
 
18099
- ;// CONCATENATED MODULE: ../node_modules/micromark/lib/parse.js
18099
+ ;// CONCATENATED MODULE: ../node_modules/react-markdown/node_modules/micromark/lib/parse.js
18100
18100
  /**
18101
18101
  * @typedef {import('micromark-util-types').InitialConstruct} InitialConstruct
18102
18102
  * @typedef {import('micromark-util-types').FullNormalizedExtension} FullNormalizedExtension
@@ -18150,7 +18150,7 @@ function parse_parse(options = {}) {
18150
18150
  }
18151
18151
  }
18152
18152
 
18153
- ;// CONCATENATED MODULE: ../node_modules/micromark/lib/preprocess.js
18153
+ ;// CONCATENATED MODULE: ../node_modules/react-markdown/node_modules/micromark/lib/preprocess.js
18154
18154
  /**
18155
18155
  * @typedef {import('micromark-util-types').Encoding} Encoding
18156
18156
  * @typedef {import('micromark-util-types').Value} Value
@@ -18281,7 +18281,7 @@ function preprocess() {
18281
18281
  }
18282
18282
  }
18283
18283
 
18284
- ;// CONCATENATED MODULE: ../node_modules/micromark/lib/postprocess.js
18284
+ ;// CONCATENATED MODULE: ../node_modules/react-markdown/node_modules/micromark/lib/postprocess.js
18285
18285
  /**
18286
18286
  * @typedef {import('micromark-util-types').Event} Event
18287
18287
  */
@@ -18373,7 +18373,71 @@ function decode($0, $1, $2) {
18373
18373
  return decodeNamedCharacterReference($2) || $0
18374
18374
  }
18375
18375
 
18376
- ;// CONCATENATED MODULE: ../node_modules/mdast-util-from-markdown/lib/index.js
18376
+ ;// CONCATENATED MODULE: ../node_modules/react-markdown/node_modules/unist-util-stringify-position/index.js
18377
+ /**
18378
+ * @typedef {import('unist').Point} Point
18379
+ * @typedef {import('unist').Node} Node
18380
+ * @typedef {import('unist').Position} Position
18381
+ * @typedef {object & {type: string, position?: Position|undefined}} NodeLike
18382
+ */
18383
+
18384
+ /**
18385
+ * Stringify one point, a position (start and end points), or a node’s
18386
+ * positional information.
18387
+ *
18388
+ * @param {Node|NodeLike|Position|Point|null} [value]
18389
+ * @returns {string}
18390
+ */
18391
+ function unist_util_stringify_position_stringifyPosition(value) {
18392
+ // Nothing.
18393
+ if (!value || typeof value !== 'object') {
18394
+ return ''
18395
+ }
18396
+
18397
+ // Node.
18398
+ if ('position' in value || 'type' in value) {
18399
+ return unist_util_stringify_position_position(value.position)
18400
+ }
18401
+
18402
+ // Position.
18403
+ if ('start' in value || 'end' in value) {
18404
+ return unist_util_stringify_position_position(value)
18405
+ }
18406
+
18407
+ // Point.
18408
+ if ('line' in value || 'column' in value) {
18409
+ return unist_util_stringify_position_point(value)
18410
+ }
18411
+
18412
+ // ?
18413
+ return ''
18414
+ }
18415
+
18416
+ /**
18417
+ * @param {Point|undefined} point
18418
+ * @returns {string}
18419
+ */
18420
+ function unist_util_stringify_position_point(point) {
18421
+ return unist_util_stringify_position_index(point && point.line) + ':' + unist_util_stringify_position_index(point && point.column)
18422
+ }
18423
+
18424
+ /**
18425
+ * @param {Position|undefined} pos
18426
+ * @returns {string}
18427
+ */
18428
+ function unist_util_stringify_position_position(pos) {
18429
+ return unist_util_stringify_position_point(pos && pos.start) + '-' + unist_util_stringify_position_point(pos && pos.end)
18430
+ }
18431
+
18432
+ /**
18433
+ * @param {number|undefined} value
18434
+ * @returns {number}
18435
+ */
18436
+ function unist_util_stringify_position_index(value) {
18437
+ return value && typeof value === 'number' ? value : 1
18438
+ }
18439
+
18440
+ ;// CONCATENATED MODULE: ../node_modules/react-markdown/node_modules/mdast-util-from-markdown/lib/index.js
18377
18441
  /**
18378
18442
  * @typedef {import('micromark-util-types').Encoding} Encoding
18379
18443
  * @typedef {import('micromark-util-types').Event} Event
@@ -18978,7 +19042,7 @@ function compiler(options = {}) {
18978
19042
  'Cannot close `' +
18979
19043
  token.type +
18980
19044
  '` (' +
18981
- stringifyPosition({
19045
+ unist_util_stringify_position_stringifyPosition({
18982
19046
  start: token.start,
18983
19047
  end: token.end
18984
19048
  }) +
@@ -19591,14 +19655,14 @@ function defaultOnError(left, right) {
19591
19655
  'Cannot close `' +
19592
19656
  left.type +
19593
19657
  '` (' +
19594
- stringifyPosition({
19658
+ unist_util_stringify_position_stringifyPosition({
19595
19659
  start: left.start,
19596
19660
  end: left.end
19597
19661
  }) +
19598
19662
  '): a different token (`' +
19599
19663
  right.type +
19600
19664
  '`, ' +
19601
- stringifyPosition({
19665
+ unist_util_stringify_position_stringifyPosition({
19602
19666
  start: right.start,
19603
19667
  end: right.end
19604
19668
  }) +
@@ -19609,7 +19673,7 @@ function defaultOnError(left, right) {
19609
19673
  'Cannot close document, a token (`' +
19610
19674
  right.type +
19611
19675
  '`, ' +
19612
- stringifyPosition({
19676
+ unist_util_stringify_position_stringifyPosition({
19613
19677
  start: right.start,
19614
19678
  end: right.end
19615
19679
  }) +
@@ -19618,7 +19682,7 @@ function defaultOnError(left, right) {
19618
19682
  }
19619
19683
  }
19620
19684
 
19621
- ;// CONCATENATED MODULE: ../node_modules/remark-parse/lib/index.js
19685
+ ;// CONCATENATED MODULE: ../node_modules/react-markdown/node_modules/remark-parse/lib/index.js
19622
19686
  /**
19623
19687
  * @typedef {import('mdast').Root} Root
19624
19688
  * @typedef {import('mdast-util-from-markdown').Options} Options
@@ -19648,7 +19712,7 @@ function remarkParse(options) {
19648
19712
  Object.assign(this, {Parser: parser})
19649
19713
  }
19650
19714
 
19651
- ;// CONCATENATED MODULE: ../node_modules/remark-parse/index.js
19715
+ ;// CONCATENATED MODULE: ../node_modules/react-markdown/node_modules/remark-parse/index.js
19652
19716
 
19653
19717
 
19654
19718
  /* harmony default export */ const remark_parse = (remarkParse);
@@ -26627,7 +26691,7 @@ function mdast_util_gfm_autolink_literal_previous(match, email) {
26627
26691
  )
26628
26692
  }
26629
26693
 
26630
- ;// CONCATENATED MODULE: ../node_modules/mdast-util-to-markdown/lib/util/association.js
26694
+ ;// CONCATENATED MODULE: ../node_modules/mdast-util-gfm-footnote/node_modules/mdast-util-to-markdown/lib/util/association.js
26631
26695
  /**
26632
26696
  * @typedef {import('mdast').Association} Association
26633
26697
  */
@@ -26657,7 +26721,7 @@ function association(node) {
26657
26721
  return decodeString(node.identifier)
26658
26722
  }
26659
26723
 
26660
- ;// CONCATENATED MODULE: ../node_modules/mdast-util-to-markdown/lib/util/track.js
26724
+ ;// CONCATENATED MODULE: ../node_modules/mdast-util-gfm-footnote/node_modules/mdast-util-to-markdown/lib/util/track.js
26661
26725
  /**
26662
26726
  * @typedef {import('unist').Point} Point
26663
26727
  * @typedef {import('../types.js').TrackFields} TrackFields
@@ -26716,7 +26780,7 @@ function track(options_) {
26716
26780
  }
26717
26781
  }
26718
26782
 
26719
- ;// CONCATENATED MODULE: ../node_modules/mdast-util-to-markdown/lib/util/container-flow.js
26783
+ ;// CONCATENATED MODULE: ../node_modules/mdast-util-gfm-footnote/node_modules/mdast-util-to-markdown/lib/util/container-flow.js
26720
26784
  /**
26721
26785
  * @typedef {import('../types.js').Node} Node
26722
26786
  * @typedef {import('../types.js').Parent} Parent
@@ -26799,7 +26863,7 @@ function containerFlow(parent, context, safeOptions) {
26799
26863
  }
26800
26864
  }
26801
26865
 
26802
- ;// CONCATENATED MODULE: ../node_modules/mdast-util-to-markdown/lib/util/indent-lines.js
26866
+ ;// CONCATENATED MODULE: ../node_modules/mdast-util-gfm-footnote/node_modules/mdast-util-to-markdown/lib/util/indent-lines.js
26803
26867
  /**
26804
26868
  * @callback Map
26805
26869
  * @param {string} value
@@ -26842,7 +26906,7 @@ function indentLines(value, map) {
26842
26906
  }
26843
26907
  }
26844
26908
 
26845
- ;// CONCATENATED MODULE: ../node_modules/mdast-util-to-markdown/lib/util/pattern-compile.js
26909
+ ;// CONCATENATED MODULE: ../node_modules/mdast-util-gfm-footnote/node_modules/mdast-util-to-markdown/lib/util/pattern-compile.js
26846
26910
  /**
26847
26911
  * @typedef {import('../types.js').Unsafe} Unsafe
26848
26912
  */
@@ -26869,7 +26933,7 @@ function patternCompile(pattern) {
26869
26933
  return pattern._compiled
26870
26934
  }
26871
26935
 
26872
- ;// CONCATENATED MODULE: ../node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js
26936
+ ;// CONCATENATED MODULE: ../node_modules/mdast-util-gfm-footnote/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js
26873
26937
  /**
26874
26938
  * @typedef {import('../types.js').Unsafe} Unsafe
26875
26939
  */
@@ -26912,7 +26976,7 @@ function listInScope(stack, list, none) {
26912
26976
  return false
26913
26977
  }
26914
26978
 
26915
- ;// CONCATENATED MODULE: ../node_modules/mdast-util-to-markdown/lib/util/safe.js
26979
+ ;// CONCATENATED MODULE: ../node_modules/mdast-util-gfm-footnote/node_modules/mdast-util-to-markdown/lib/util/safe.js
26916
26980
  /**
26917
26981
  * @typedef {import('../types.js').Context} Context
26918
26982
  * @typedef {import('../types.js').SafeOptions} SafeOptions
@@ -27245,7 +27309,66 @@ function gfmFootnoteToMarkdown() {
27245
27309
  }
27246
27310
  }
27247
27311
 
27248
- ;// CONCATENATED MODULE: ../node_modules/mdast-util-to-markdown/lib/util/container-phrasing.js
27312
+ ;// CONCATENATED MODULE: ../node_modules/mdast-util-gfm-strikethrough/node_modules/mdast-util-to-markdown/lib/util/track.js
27313
+ /**
27314
+ * @typedef {import('unist').Point} Point
27315
+ * @typedef {import('../types.js').TrackFields} TrackFields
27316
+ */
27317
+
27318
+ /**
27319
+ * Functions to track output positions.
27320
+ * This info isn’t used yet but suchs functionality allows line wrapping,
27321
+ * and theoretically source maps (though, is there practical use in that?).
27322
+ *
27323
+ * @param {TrackFields} options_
27324
+ */
27325
+ function track_track(options_) {
27326
+ // Defaults are used to prevent crashes when older utilities somehow activate
27327
+ // this code.
27328
+ /* c8 ignore next 5 */
27329
+ const options = options_ || {}
27330
+ const now = options.now || {}
27331
+ let lineShift = options.lineShift || 0
27332
+ let line = now.line || 1
27333
+ let column = now.column || 1
27334
+
27335
+ return {move, current, shift}
27336
+
27337
+ /**
27338
+ * Get the current tracked info.
27339
+ *
27340
+ * @returns {{now: Point, lineShift: number}}
27341
+ */
27342
+ function current() {
27343
+ return {now: {line, column}, lineShift}
27344
+ }
27345
+
27346
+ /**
27347
+ * Define an increased line shift (the typical indent for lines).
27348
+ *
27349
+ * @param {number} value
27350
+ */
27351
+ function shift(value) {
27352
+ lineShift += value
27353
+ }
27354
+
27355
+ /**
27356
+ * Move past a string.
27357
+ *
27358
+ * @param {string} value
27359
+ * @returns {string}
27360
+ */
27361
+ function move(value = '') {
27362
+ const chunks = value.split(/\r?\n|\r/g)
27363
+ const tail = chunks[chunks.length - 1]
27364
+ line += chunks.length - 1
27365
+ column =
27366
+ chunks.length === 1 ? column + tail.length : 1 + tail.length + lineShift
27367
+ return value
27368
+ }
27369
+ }
27370
+
27371
+ ;// CONCATENATED MODULE: ../node_modules/mdast-util-gfm-strikethrough/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.js
27249
27372
  /**
27250
27373
  * @typedef {import('../types.js').Node} Node
27251
27374
  * @typedef {import('../types.js').Parent} Parent
@@ -27270,7 +27393,7 @@ function containerPhrasing(parent, context, safeOptions) {
27270
27393
  let before = safeOptions.before
27271
27394
 
27272
27395
  indexStack.push(-1)
27273
- let tracker = track(safeOptions)
27396
+ let tracker = track_track(safeOptions)
27274
27397
 
27275
27398
  while (++index < children.length) {
27276
27399
  const child = children[index]
@@ -27312,7 +27435,7 @@ function containerPhrasing(parent, context, safeOptions) {
27312
27435
  before = ' '
27313
27436
 
27314
27437
  // To do: does this work to reset tracker?
27315
- tracker = track(safeOptions)
27438
+ tracker = track_track(safeOptions)
27316
27439
  tracker.move(results.join(''))
27317
27440
  }
27318
27441
 
@@ -27376,7 +27499,7 @@ function exitStrikethrough(token) {
27376
27499
  * @param {Delete} node
27377
27500
  */
27378
27501
  function handleDelete(node, _, context, safeOptions) {
27379
- const tracker = track(safeOptions)
27502
+ const tracker = track_track(safeOptions)
27380
27503
  const exit = context.enter('emphasis')
27381
27504
  let value = tracker.move('~~')
27382
27505
  value += containerPhrasing(node, context, {
@@ -27394,7 +27517,182 @@ function peekDelete() {
27394
27517
  return '~'
27395
27518
  }
27396
27519
 
27397
- ;// CONCATENATED MODULE: ../node_modules/mdast-util-to-markdown/lib/handle/inline-code.js
27520
+ ;// CONCATENATED MODULE: ../node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/track.js
27521
+ /**
27522
+ * @typedef {import('unist').Point} Point
27523
+ * @typedef {import('../types.js').TrackFields} TrackFields
27524
+ */
27525
+
27526
+ /**
27527
+ * Functions to track output positions.
27528
+ * This info isn’t used yet but suchs functionality allows line wrapping,
27529
+ * and theoretically source maps (though, is there practical use in that?).
27530
+ *
27531
+ * @param {TrackFields} options_
27532
+ */
27533
+ function util_track_track(options_) {
27534
+ // Defaults are used to prevent crashes when older utilities somehow activate
27535
+ // this code.
27536
+ /* c8 ignore next 5 */
27537
+ const options = options_ || {}
27538
+ const now = options.now || {}
27539
+ let lineShift = options.lineShift || 0
27540
+ let line = now.line || 1
27541
+ let column = now.column || 1
27542
+
27543
+ return {move, current, shift}
27544
+
27545
+ /**
27546
+ * Get the current tracked info.
27547
+ *
27548
+ * @returns {{now: Point, lineShift: number}}
27549
+ */
27550
+ function current() {
27551
+ return {now: {line, column}, lineShift}
27552
+ }
27553
+
27554
+ /**
27555
+ * Define an increased line shift (the typical indent for lines).
27556
+ *
27557
+ * @param {number} value
27558
+ */
27559
+ function shift(value) {
27560
+ lineShift += value
27561
+ }
27562
+
27563
+ /**
27564
+ * Move past a string.
27565
+ *
27566
+ * @param {string} value
27567
+ * @returns {string}
27568
+ */
27569
+ function move(value = '') {
27570
+ const chunks = value.split(/\r?\n|\r/g)
27571
+ const tail = chunks[chunks.length - 1]
27572
+ line += chunks.length - 1
27573
+ column =
27574
+ chunks.length === 1 ? column + tail.length : 1 + tail.length + lineShift
27575
+ return value
27576
+ }
27577
+ }
27578
+
27579
+ ;// CONCATENATED MODULE: ../node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.js
27580
+ /**
27581
+ * @typedef {import('../types.js').Node} Node
27582
+ * @typedef {import('../types.js').Parent} Parent
27583
+ * @typedef {import('../types.js').SafeOptions} SafeOptions
27584
+ * @typedef {import('../types.js').Context} Context
27585
+ */
27586
+
27587
+
27588
+
27589
+ /**
27590
+ * @param {Parent} parent
27591
+ * @param {Context} context
27592
+ * @param {SafeOptions} safeOptions
27593
+ * @returns {string}
27594
+ */
27595
+ function container_phrasing_containerPhrasing(parent, context, safeOptions) {
27596
+ const indexStack = context.indexStack
27597
+ const children = parent.children || []
27598
+ /** @type {Array<string>} */
27599
+ const results = []
27600
+ let index = -1
27601
+ let before = safeOptions.before
27602
+
27603
+ indexStack.push(-1)
27604
+ let tracker = util_track_track(safeOptions)
27605
+
27606
+ while (++index < children.length) {
27607
+ const child = children[index]
27608
+ /** @type {string} */
27609
+ let after
27610
+
27611
+ indexStack[indexStack.length - 1] = index
27612
+
27613
+ if (index + 1 < children.length) {
27614
+ // @ts-expect-error: hush, it’s actually a `zwitch`.
27615
+ let handle = context.handle.handlers[children[index + 1].type]
27616
+ if (handle && handle.peek) handle = handle.peek
27617
+ after = handle
27618
+ ? handle(children[index + 1], parent, context, {
27619
+ before: '',
27620
+ after: '',
27621
+ ...tracker.current()
27622
+ }).charAt(0)
27623
+ : ''
27624
+ } else {
27625
+ after = safeOptions.after
27626
+ }
27627
+
27628
+ // In some cases, html (text) can be found in phrasing right after an eol.
27629
+ // When we’d serialize that, in most cases that would be seen as html
27630
+ // (flow).
27631
+ // As we can’t escape or so to prevent it from happening, we take a somewhat
27632
+ // reasonable approach: replace that eol with a space.
27633
+ // See: <https://github.com/syntax-tree/mdast-util-to-markdown/issues/15>
27634
+ if (
27635
+ results.length > 0 &&
27636
+ (before === '\r' || before === '\n') &&
27637
+ child.type === 'html'
27638
+ ) {
27639
+ results[results.length - 1] = results[results.length - 1].replace(
27640
+ /(\r?\n|\r)$/,
27641
+ ' '
27642
+ )
27643
+ before = ' '
27644
+
27645
+ // To do: does this work to reset tracker?
27646
+ tracker = util_track_track(safeOptions)
27647
+ tracker.move(results.join(''))
27648
+ }
27649
+
27650
+ results.push(
27651
+ tracker.move(
27652
+ context.handle(child, parent, context, {
27653
+ ...tracker.current(),
27654
+ before,
27655
+ after
27656
+ })
27657
+ )
27658
+ )
27659
+
27660
+ before = results[results.length - 1].slice(-1)
27661
+ }
27662
+
27663
+ indexStack.pop()
27664
+
27665
+ return results.join('')
27666
+ }
27667
+
27668
+ ;// CONCATENATED MODULE: ../node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/pattern-compile.js
27669
+ /**
27670
+ * @typedef {import('../types.js').Unsafe} Unsafe
27671
+ */
27672
+
27673
+ /**
27674
+ * @param {Unsafe} pattern
27675
+ * @returns {RegExp}
27676
+ */
27677
+ function pattern_compile_patternCompile(pattern) {
27678
+ if (!pattern._compiled) {
27679
+ const before =
27680
+ (pattern.atBreak ? '[\\r\\n][\\t ]*' : '') +
27681
+ (pattern.before ? '(?:' + pattern.before + ')' : '')
27682
+
27683
+ pattern._compiled = new RegExp(
27684
+ (before ? '(' + before + ')' : '') +
27685
+ (/[|\\{}()[\]^$+*?.-]/.test(pattern.character) ? '\\' : '') +
27686
+ pattern.character +
27687
+ (pattern.after ? '(?:' + pattern.after + ')' : ''),
27688
+ 'g'
27689
+ )
27690
+ }
27691
+
27692
+ return pattern._compiled
27693
+ }
27694
+
27695
+ ;// CONCATENATED MODULE: ../node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js
27398
27696
  /**
27399
27697
  * @typedef {import('mdast').InlineCode} InlineCode
27400
27698
  * @typedef {import('../types.js').Handle} Handle
@@ -27438,7 +27736,7 @@ function inline_code_inlineCode(node, _, context) {
27438
27736
  // them out.
27439
27737
  while (++index < context.unsafe.length) {
27440
27738
  const pattern = context.unsafe[index]
27441
- const expression = patternCompile(pattern)
27739
+ const expression = pattern_compile_patternCompile(pattern)
27442
27740
  /** @type {RegExpExecArray|null} */
27443
27741
  let match
27444
27742
 
@@ -28030,7 +28328,7 @@ function gfmTableToMarkdown(options) {
28030
28328
  function handleTableCell(node, _, context, safeOptions) {
28031
28329
  const exit = context.enter('tableCell')
28032
28330
  const subexit = context.enter('phrasing')
28033
- const value = containerPhrasing(node, context, {
28331
+ const value = container_phrasing_containerPhrasing(node, context, {
28034
28332
  ...safeOptions,
28035
28333
  before: around,
28036
28334
  after: around
@@ -28122,7 +28420,7 @@ function gfmTableToMarkdown(options) {
28122
28420
  }
28123
28421
  }
28124
28422
 
28125
- ;// CONCATENATED MODULE: ../node_modules/mdast-util-to-markdown/lib/util/check-bullet.js
28423
+ ;// CONCATENATED MODULE: ../node_modules/mdast-util-gfm-task-list-item/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js
28126
28424
  /**
28127
28425
  * @typedef {import('../types.js').Context} Context
28128
28426
  * @typedef {import('../types.js').Options} Options
@@ -28146,7 +28444,7 @@ function checkBullet(context) {
28146
28444
  return marker
28147
28445
  }
28148
28446
 
28149
- ;// CONCATENATED MODULE: ../node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js
28447
+ ;// CONCATENATED MODULE: ../node_modules/mdast-util-gfm-task-list-item/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js
28150
28448
  /**
28151
28449
  * @typedef {import('../types.js').Context} Context
28152
28450
  * @typedef {import('../types.js').Options} Options
@@ -28176,7 +28474,192 @@ function checkListItemIndent(context) {
28176
28474
  return style
28177
28475
  }
28178
28476
 
28179
- ;// CONCATENATED MODULE: ../node_modules/mdast-util-to-markdown/lib/handle/list-item.js
28477
+ ;// CONCATENATED MODULE: ../node_modules/mdast-util-gfm-task-list-item/node_modules/mdast-util-to-markdown/lib/util/track.js
28478
+ /**
28479
+ * @typedef {import('unist').Point} Point
28480
+ * @typedef {import('../types.js').TrackFields} TrackFields
28481
+ */
28482
+
28483
+ /**
28484
+ * Functions to track output positions.
28485
+ * This info isn’t used yet but suchs functionality allows line wrapping,
28486
+ * and theoretically source maps (though, is there practical use in that?).
28487
+ *
28488
+ * @param {TrackFields} options_
28489
+ */
28490
+ function lib_util_track_track(options_) {
28491
+ // Defaults are used to prevent crashes when older utilities somehow activate
28492
+ // this code.
28493
+ /* c8 ignore next 5 */
28494
+ const options = options_ || {}
28495
+ const now = options.now || {}
28496
+ let lineShift = options.lineShift || 0
28497
+ let line = now.line || 1
28498
+ let column = now.column || 1
28499
+
28500
+ return {move, current, shift}
28501
+
28502
+ /**
28503
+ * Get the current tracked info.
28504
+ *
28505
+ * @returns {{now: Point, lineShift: number}}
28506
+ */
28507
+ function current() {
28508
+ return {now: {line, column}, lineShift}
28509
+ }
28510
+
28511
+ /**
28512
+ * Define an increased line shift (the typical indent for lines).
28513
+ *
28514
+ * @param {number} value
28515
+ */
28516
+ function shift(value) {
28517
+ lineShift += value
28518
+ }
28519
+
28520
+ /**
28521
+ * Move past a string.
28522
+ *
28523
+ * @param {string} value
28524
+ * @returns {string}
28525
+ */
28526
+ function move(value = '') {
28527
+ const chunks = value.split(/\r?\n|\r/g)
28528
+ const tail = chunks[chunks.length - 1]
28529
+ line += chunks.length - 1
28530
+ column =
28531
+ chunks.length === 1 ? column + tail.length : 1 + tail.length + lineShift
28532
+ return value
28533
+ }
28534
+ }
28535
+
28536
+ ;// CONCATENATED MODULE: ../node_modules/mdast-util-gfm-task-list-item/node_modules/mdast-util-to-markdown/lib/util/container-flow.js
28537
+ /**
28538
+ * @typedef {import('../types.js').Node} Node
28539
+ * @typedef {import('../types.js').Parent} Parent
28540
+ * @typedef {import('../types.js').Join} Join
28541
+ * @typedef {import('../types.js').Context} Context
28542
+ * @typedef {import('../types.js').TrackFields} TrackFields
28543
+ */
28544
+
28545
+
28546
+
28547
+ /**
28548
+ * @param {Parent} parent
28549
+ * @param {Context} context
28550
+ * @param {TrackFields} safeOptions
28551
+ * @returns {string}
28552
+ */
28553
+ function container_flow_containerFlow(parent, context, safeOptions) {
28554
+ const indexStack = context.indexStack
28555
+ const children = parent.children || []
28556
+ const tracker = lib_util_track_track(safeOptions)
28557
+ /** @type {Array<string>} */
28558
+ const results = []
28559
+ let index = -1
28560
+
28561
+ indexStack.push(-1)
28562
+
28563
+ while (++index < children.length) {
28564
+ const child = children[index]
28565
+
28566
+ indexStack[indexStack.length - 1] = index
28567
+
28568
+ results.push(
28569
+ tracker.move(
28570
+ context.handle(child, parent, context, {
28571
+ before: '\n',
28572
+ after: '\n',
28573
+ ...tracker.current()
28574
+ })
28575
+ )
28576
+ )
28577
+
28578
+ if (child.type !== 'list') {
28579
+ context.bulletLastUsed = undefined
28580
+ }
28581
+
28582
+ if (index < children.length - 1) {
28583
+ results.push(tracker.move(between(child, children[index + 1])))
28584
+ }
28585
+ }
28586
+
28587
+ indexStack.pop()
28588
+
28589
+ return results.join('')
28590
+
28591
+ /**
28592
+ * @param {Node} left
28593
+ * @param {Node} right
28594
+ * @returns {string}
28595
+ */
28596
+ function between(left, right) {
28597
+ let index = context.join.length
28598
+
28599
+ while (index--) {
28600
+ const result = context.join[index](left, right, parent, context)
28601
+
28602
+ if (result === true || result === 1) {
28603
+ break
28604
+ }
28605
+
28606
+ if (typeof result === 'number') {
28607
+ return '\n'.repeat(1 + result)
28608
+ }
28609
+
28610
+ if (result === false) {
28611
+ return '\n\n<!---->\n\n'
28612
+ }
28613
+ }
28614
+
28615
+ return '\n\n'
28616
+ }
28617
+ }
28618
+
28619
+ ;// CONCATENATED MODULE: ../node_modules/mdast-util-gfm-task-list-item/node_modules/mdast-util-to-markdown/lib/util/indent-lines.js
28620
+ /**
28621
+ * @callback Map
28622
+ * @param {string} value
28623
+ * @param {number} line
28624
+ * @param {boolean} blank
28625
+ * @returns {string}
28626
+ */
28627
+
28628
+ const indent_lines_eol = /\r?\n|\r/g
28629
+
28630
+ /**
28631
+ * @param {string} value
28632
+ * @param {Map} map
28633
+ * @returns {string}
28634
+ */
28635
+ function indent_lines_indentLines(value, map) {
28636
+ /** @type {Array<string>} */
28637
+ const result = []
28638
+ let start = 0
28639
+ let line = 0
28640
+ /** @type {RegExpExecArray|null} */
28641
+ let match
28642
+
28643
+ while ((match = indent_lines_eol.exec(value))) {
28644
+ one(value.slice(start, match.index))
28645
+ result.push(match[0])
28646
+ start = match.index + match[0].length
28647
+ line++
28648
+ }
28649
+
28650
+ one(value.slice(start))
28651
+
28652
+ return result.join('')
28653
+
28654
+ /**
28655
+ * @param {string} value
28656
+ */
28657
+ function one(value) {
28658
+ result.push(map(value, line, !value))
28659
+ }
28660
+ }
28661
+
28662
+ ;// CONCATENATED MODULE: ../node_modules/mdast-util-gfm-task-list-item/node_modules/mdast-util-to-markdown/lib/handle/list-item.js
28180
28663
  /**
28181
28664
  * @typedef {import('mdast').ListItem} ListItem
28182
28665
  * @typedef {import('mdast').List} List
@@ -28221,12 +28704,12 @@ function list_item_listItem(node, parent, context, safeOptions) {
28221
28704
  size = Math.ceil(size / 4) * 4
28222
28705
  }
28223
28706
 
28224
- const tracker = track(safeOptions)
28707
+ const tracker = lib_util_track_track(safeOptions)
28225
28708
  tracker.move(bullet + ' '.repeat(size - bullet.length))
28226
28709
  tracker.shift(size)
28227
28710
  const exit = context.enter('listItem')
28228
- const value = indentLines(
28229
- containerFlow(node, context, tracker.current()),
28711
+ const value = indent_lines_indentLines(
28712
+ container_flow_containerFlow(node, context, tracker.current()),
28230
28713
  map
28231
28714
  )
28232
28715
  exit()
@@ -28335,7 +28818,7 @@ function listItemWithTaskListItem(node, parent, context, safeOptions) {
28335
28818
  const checkable =
28336
28819
  typeof node.checked === 'boolean' && head && head.type === 'paragraph'
28337
28820
  const checkbox = '[' + (node.checked ? 'x' : ' ') + '] '
28338
- const tracker = track(safeOptions)
28821
+ const tracker = lib_util_track_track(safeOptions)
28339
28822
 
28340
28823
  if (checkable) {
28341
28824
  tracker.move(checkbox)
@@ -35798,7 +36281,7 @@ function vbnet(Prism) {
35798
36281
  })
35799
36282
  }
35800
36283
 
35801
- ;// CONCATENATED MODULE: ../node_modules/character-entities-legacy/index.js
36284
+ ;// CONCATENATED MODULE: ../node_modules/refractor/node_modules/character-entities-legacy/index.js
35802
36285
  /**
35803
36286
  * List of legacy HTML named character references that don’t need a trailing semicolon.
35804
36287
  *
@@ -35913,7 +36396,7 @@ const characterEntitiesLegacy = [
35913
36396
  'yuml'
35914
36397
  ]
35915
36398
 
35916
- ;// CONCATENATED MODULE: ../node_modules/character-reference-invalid/index.js
36399
+ ;// CONCATENATED MODULE: ../node_modules/refractor/node_modules/character-reference-invalid/index.js
35917
36400
  /**
35918
36401
  * Map of invalid numeric character references to their replacements, according to HTML.
35919
36402
  *
@@ -35950,7 +36433,7 @@ const characterReferenceInvalid = {
35950
36433
  159: 'Ÿ'
35951
36434
  }
35952
36435
 
35953
- ;// CONCATENATED MODULE: ../node_modules/is-decimal/index.js
36436
+ ;// CONCATENATED MODULE: ../node_modules/refractor/node_modules/is-decimal/index.js
35954
36437
  /**
35955
36438
  * Check if the given character code, or the character code at the first
35956
36439
  * character, is decimal.
@@ -35965,7 +36448,7 @@ function isDecimal(character) {
35965
36448
  return code >= 48 && code <= 57 /* 0-9 */
35966
36449
  }
35967
36450
 
35968
- ;// CONCATENATED MODULE: ../node_modules/is-hexadecimal/index.js
36451
+ ;// CONCATENATED MODULE: ../node_modules/refractor/node_modules/is-hexadecimal/index.js
35969
36452
  /**
35970
36453
  * Check if the given character code, or the character code at the first
35971
36454
  * character, is hexadecimal.
@@ -35984,7 +36467,7 @@ function isHexadecimal(character) {
35984
36467
  )
35985
36468
  }
35986
36469
 
35987
- ;// CONCATENATED MODULE: ../node_modules/is-alphabetical/index.js
36470
+ ;// CONCATENATED MODULE: ../node_modules/refractor/node_modules/is-alphabetical/index.js
35988
36471
  /**
35989
36472
  * Check if the given character code, or the character code at the first
35990
36473
  * character, is alphabetical.
@@ -36002,7 +36485,7 @@ function isAlphabetical(character) {
36002
36485
  )
36003
36486
  }
36004
36487
 
36005
- ;// CONCATENATED MODULE: ../node_modules/is-alphanumerical/index.js
36488
+ ;// CONCATENATED MODULE: ../node_modules/refractor/node_modules/is-alphanumerical/index.js
36006
36489
 
36007
36490
 
36008
36491
 
@@ -36017,7 +36500,7 @@ function isAlphanumerical(character) {
36017
36500
  return isAlphabetical(character) || isDecimal(character)
36018
36501
  }
36019
36502
 
36020
- ;// CONCATENATED MODULE: ../node_modules/parse-entities/lib/index.js
36503
+ ;// CONCATENATED MODULE: ../node_modules/refractor/node_modules/parse-entities/lib/index.js
36021
36504
  /**
36022
36505
  * @typedef {import('unist').Point} Point
36023
36506
  * @typedef {import('unist').Position} Position
@@ -61566,6 +62049,121 @@ function toDecimal(code, next, omit) {
61566
62049
  : value + ';'
61567
62050
  }
61568
62051
 
62052
+ ;// CONCATENATED MODULE: ../node_modules/stringify-entities/node_modules/character-entities-legacy/index.js
62053
+ /**
62054
+ * List of legacy HTML named character references that don’t need a trailing semicolon.
62055
+ *
62056
+ * @type {Array<string>}
62057
+ */
62058
+ const character_entities_legacy_characterEntitiesLegacy = [
62059
+ 'AElig',
62060
+ 'AMP',
62061
+ 'Aacute',
62062
+ 'Acirc',
62063
+ 'Agrave',
62064
+ 'Aring',
62065
+ 'Atilde',
62066
+ 'Auml',
62067
+ 'COPY',
62068
+ 'Ccedil',
62069
+ 'ETH',
62070
+ 'Eacute',
62071
+ 'Ecirc',
62072
+ 'Egrave',
62073
+ 'Euml',
62074
+ 'GT',
62075
+ 'Iacute',
62076
+ 'Icirc',
62077
+ 'Igrave',
62078
+ 'Iuml',
62079
+ 'LT',
62080
+ 'Ntilde',
62081
+ 'Oacute',
62082
+ 'Ocirc',
62083
+ 'Ograve',
62084
+ 'Oslash',
62085
+ 'Otilde',
62086
+ 'Ouml',
62087
+ 'QUOT',
62088
+ 'REG',
62089
+ 'THORN',
62090
+ 'Uacute',
62091
+ 'Ucirc',
62092
+ 'Ugrave',
62093
+ 'Uuml',
62094
+ 'Yacute',
62095
+ 'aacute',
62096
+ 'acirc',
62097
+ 'acute',
62098
+ 'aelig',
62099
+ 'agrave',
62100
+ 'amp',
62101
+ 'aring',
62102
+ 'atilde',
62103
+ 'auml',
62104
+ 'brvbar',
62105
+ 'ccedil',
62106
+ 'cedil',
62107
+ 'cent',
62108
+ 'copy',
62109
+ 'curren',
62110
+ 'deg',
62111
+ 'divide',
62112
+ 'eacute',
62113
+ 'ecirc',
62114
+ 'egrave',
62115
+ 'eth',
62116
+ 'euml',
62117
+ 'frac12',
62118
+ 'frac14',
62119
+ 'frac34',
62120
+ 'gt',
62121
+ 'iacute',
62122
+ 'icirc',
62123
+ 'iexcl',
62124
+ 'igrave',
62125
+ 'iquest',
62126
+ 'iuml',
62127
+ 'laquo',
62128
+ 'lt',
62129
+ 'macr',
62130
+ 'micro',
62131
+ 'middot',
62132
+ 'nbsp',
62133
+ 'not',
62134
+ 'ntilde',
62135
+ 'oacute',
62136
+ 'ocirc',
62137
+ 'ograve',
62138
+ 'ordf',
62139
+ 'ordm',
62140
+ 'oslash',
62141
+ 'otilde',
62142
+ 'ouml',
62143
+ 'para',
62144
+ 'plusmn',
62145
+ 'pound',
62146
+ 'quot',
62147
+ 'raquo',
62148
+ 'reg',
62149
+ 'sect',
62150
+ 'shy',
62151
+ 'sup1',
62152
+ 'sup2',
62153
+ 'sup3',
62154
+ 'szlig',
62155
+ 'thorn',
62156
+ 'times',
62157
+ 'uacute',
62158
+ 'ucirc',
62159
+ 'ugrave',
62160
+ 'uml',
62161
+ 'uuml',
62162
+ 'yacute',
62163
+ 'yen',
62164
+ 'yuml'
62165
+ ]
62166
+
61569
62167
  ;// CONCATENATED MODULE: ../node_modules/character-entities-html4/index.js
61570
62168
  /**
61571
62169
  * Map of named character references from HTML 4.
@@ -61886,7 +62484,7 @@ function toNamed(code, next, omit, attribute) {
61886
62484
 
61887
62485
  if (
61888
62486
  omit &&
61889
- characterEntitiesLegacy.includes(name) &&
62487
+ character_entities_legacy_characterEntitiesLegacy.includes(name) &&
61890
62488
  !dangerous.includes(name) &&
61891
62489
  (!attribute ||
61892
62490
  (next &&
@@ -62733,8 +63331,8 @@ document.body.style.overflow=originalOverflow.current;}}},[fullscreen,originalOv
62733
63331
  // extracted by mini-css-extract-plugin
62734
63332
  /* harmony default export */ const DragBar = ({});
62735
63333
  ;// CONCATENATED MODULE: ./src/components/DragBar/index.tsx
62736
- var DragBar_DragBar=function DragBar(props){var _ref=props||{},prefixCls=_ref.prefixCls,onChange=_ref.onChange;var dragRef=(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)();function handleMouseMove(event){if(dragRef.current){var newHeight=dragRef.current.height+event.clientY-dragRef.current.dragY;if(newHeight>=props.minHeight&&newHeight<=props.maxHeight){onChange&&onChange(dragRef.current.height+(event.clientY-dragRef.current.dragY));}}}function handleMouseUp(){dragRef.current=undefined;}function handleMouseDown(event){dragRef.current={height:props.height,dragY:event.clientY};}(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function(){if(document){document.addEventListener('mousemove',handleMouseMove);document.addEventListener('mouseup',handleMouseUp);}return function(){if(document){document.removeEventListener('mousemove',handleMouseMove);document.removeEventListener('mouseup',handleMouseUp);}};// eslint-disable-next-line react-hooks/exhaustive-deps
62737
- },[]);var svg=(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function(){return/*#__PURE__*/(0,jsx_runtime.jsx)("svg",{viewBox:"0 0 512 512",height:"100%",children:/*#__PURE__*/(0,jsx_runtime.jsx)("path",{fill:"currentColor",d:"M304 256c0 26.5-21.5 48-48 48s-48-21.5-48-48 21.5-48 48-48 48 21.5 48 48zm120-48c-26.5 0-48 21.5-48 48s21.5 48 48 48 48-21.5 48-48-21.5-48-48-48zm-336 0c-26.5 0-48 21.5-48 48s21.5 48 48 48 48-21.5 48-48-21.5-48-48-48z"})});},[]);return/*#__PURE__*/(0,jsx_runtime.jsx)("div",{className:"".concat(prefixCls,"-bar"),onMouseDown:handleMouseDown,children:svg});};/* harmony default export */ const components_DragBar = (DragBar_DragBar);
63334
+ var DragBar_DragBar=function DragBar(props){var _ref=props||{},prefixCls=_ref.prefixCls,onChange=_ref.onChange;var $dom=(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);var dragRef=(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)();function handleMouseMove(event){if(dragRef.current){var _changedTouches$;var clientY=event.clientY||((_changedTouches$=event.changedTouches[0])===null||_changedTouches$===void 0?void 0:_changedTouches$.clientY);var newHeight=dragRef.current.height+clientY-dragRef.current.dragY;if(newHeight>=props.minHeight&&newHeight<=props.maxHeight){onChange&&onChange(dragRef.current.height+(clientY-dragRef.current.dragY));}}}function handleMouseUp(){var _$dom$current,_$dom$current2;dragRef.current=undefined;document.removeEventListener('mousemove',handleMouseMove);document.removeEventListener('mouseup',handleMouseUp);(_$dom$current=$dom.current)===null||_$dom$current===void 0?void 0:_$dom$current.removeEventListener('touchmove',handleMouseMove);(_$dom$current2=$dom.current)===null||_$dom$current2===void 0?void 0:_$dom$current2.removeEventListener('touchend',handleMouseUp);}function handleMouseDown(event){var _changedTouches$2,_$dom$current3,_$dom$current4;event.preventDefault();var clientY=event.clientY||((_changedTouches$2=event.changedTouches[0])===null||_changedTouches$2===void 0?void 0:_changedTouches$2.clientY);dragRef.current={height:props.height,dragY:clientY};document.addEventListener('mousemove',handleMouseMove);document.addEventListener('mouseup',handleMouseUp);(_$dom$current3=$dom.current)===null||_$dom$current3===void 0?void 0:_$dom$current3.addEventListener('touchmove',handleMouseMove,{passive:false});(_$dom$current4=$dom.current)===null||_$dom$current4===void 0?void 0:_$dom$current4.addEventListener('touchend',handleMouseUp,{passive:false});}(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function(){if(document){var _$dom$current5,_$dom$current6;(_$dom$current5=$dom.current)===null||_$dom$current5===void 0?void 0:_$dom$current5.addEventListener('touchstart',handleMouseDown,{passive:false});(_$dom$current6=$dom.current)===null||_$dom$current6===void 0?void 0:_$dom$current6.addEventListener('mousedown',handleMouseDown);}return function(){if(document){var _$dom$current7;(_$dom$current7=$dom.current)===null||_$dom$current7===void 0?void 0:_$dom$current7.removeEventListener('touchstart',handleMouseDown);document.removeEventListener('mousemove',handleMouseMove);}};// eslint-disable-next-line react-hooks/exhaustive-deps
63335
+ },[]);var svg=(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function(){return/*#__PURE__*/(0,jsx_runtime.jsx)("svg",{viewBox:"0 0 512 512",height:"100%",children:/*#__PURE__*/(0,jsx_runtime.jsx)("path",{fill:"currentColor",d:"M304 256c0 26.5-21.5 48-48 48s-48-21.5-48-48 21.5-48 48-48 48 21.5 48 48zm120-48c-26.5 0-48 21.5-48 48s21.5 48 48 48 48-21.5 48-48-21.5-48-48-48zm-336 0c-26.5 0-48 21.5-48 48s21.5 48 48 48 48-21.5 48-48-21.5-48-48-48z"})});},[]);return/*#__PURE__*/(0,jsx_runtime.jsx)("div",{className:"".concat(prefixCls,"-bar"),ref:$dom,children:svg});};/* harmony default export */ const components_DragBar = (DragBar_DragBar);
62738
63336
  ;// CONCATENATED MODULE: ./src/index.less
62739
63337
  // extracted by mini-css-extract-plugin
62740
63338
  /* harmony default export */ const src = ({});