securemark 0.241.0 → 0.243.1

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.
@@ -1,4 +1,4 @@
1
- /*! securemark v0.241.0 https://github.com/falsandtru/securemark | (c) 2017, falsandtru | UNLICENSED */
1
+ /*! securemark v0.243.1 https://github.com/falsandtru/securemark | (c) 2017, falsandtru | UNLICENSED */
2
2
  require = function () {
3
3
  function r(e, n, t) {
4
4
  function o(i, f) {
@@ -1120,24 +1120,29 @@ require = function () {
1120
1120
  function (_dereq_, module, exports) {
1121
1121
  'use strict';
1122
1122
  Object.defineProperty(exports, '__esModule', { value: true });
1123
- exports.unique = exports.rnd0_ = exports.rnd0Z = exports.rnd0z = exports.rnd0f = exports.rnd64 = exports.rnd62 = exports.rnd36 = exports.rnd32 = exports.rnd16 = void 0;
1123
+ exports.unique = exports.rndAf = exports.rndAP = exports.rnd0_ = exports.rnd0Z = exports.rnd0v = exports.rnd0f = exports.rnd64 = exports.rnd62 = exports.rnd32 = exports.rnd16 = void 0;
1124
1124
  const global_1 = _dereq_('./global');
1125
1125
  const bases = [...Array(7)].map((_, i) => 1 << i);
1126
- const dict = [
1126
+ const dict0_ = [
1127
1127
  ...[...Array(36)].map((_, i) => i.toString(36)),
1128
1128
  ...[...Array(36)].map((_, i) => i.toString(36).toUpperCase()).slice(-26),
1129
1129
  '-',
1130
1130
  '_'
1131
1131
  ];
1132
+ const dictAz = [
1133
+ ...[...Array(36)].map((_, i) => i.toString(36).toUpperCase()).slice(-26),
1134
+ ...[...Array(36)].map((_, i) => i.toString(36)).slice(-26)
1135
+ ];
1132
1136
  exports.rnd16 = cons(16);
1133
1137
  exports.rnd32 = cons(32);
1134
- exports.rnd36 = cons(36);
1135
1138
  exports.rnd62 = cons(62);
1136
1139
  exports.rnd64 = cons(64);
1137
- exports.rnd0f = conv(exports.rnd16);
1138
- exports.rnd0z = conv(exports.rnd36);
1139
- exports.rnd0Z = conv(exports.rnd62);
1140
- exports.rnd0_ = conv(exports.rnd64);
1140
+ exports.rnd0f = conv(exports.rnd16, dict0_);
1141
+ exports.rnd0v = conv(exports.rnd32, dict0_);
1142
+ exports.rnd0Z = conv(exports.rnd62, dict0_);
1143
+ exports.rnd0_ = conv(exports.rnd64, dict0_);
1144
+ exports.rndAP = conv(exports.rnd16, dictAz);
1145
+ exports.rndAf = conv(exports.rnd32, dictAz);
1141
1146
  function unique(rnd, len, mem) {
1142
1147
  const clear = !mem;
1143
1148
  mem !== null && mem !== void 0 ? mem : mem = new global_1.Set();
@@ -1169,7 +1174,7 @@ require = function () {
1169
1174
  }
1170
1175
  };
1171
1176
  }
1172
- function conv(rnd) {
1177
+ function conv(rnd, dict) {
1173
1178
  return (len = 1) => {
1174
1179
  let acc = '';
1175
1180
  while (len--) {
@@ -1526,23 +1531,27 @@ require = function () {
1526
1531
  function (_dereq_, module, exports) {
1527
1532
  'use strict';
1528
1533
  Object.defineProperty(exports, '__esModule', { value: true });
1529
- exports.defrag = exports.isChildren = exports.define = exports.element = exports.text = exports.svg = exports.html = exports.frag = exports.shadow = void 0;
1534
+ exports.defrag = exports.prepend = exports.append = exports.isChildren = exports.define = exports.element = exports.text = exports.svg = exports.html = exports.frag = exports.shadow = void 0;
1530
1535
  const global_1 = _dereq_('spica/global');
1531
1536
  const alias_1 = _dereq_('spica/alias');
1532
1537
  const memoize_1 = _dereq_('spica/memoize');
1533
1538
  var caches;
1534
1539
  (function (caches) {
1535
1540
  caches.shadows = new WeakMap();
1541
+ caches.shadow = (0, memoize_1.memoize)((el, opts) => el.attachShadow(opts), caches.shadows);
1536
1542
  caches.fragment = global_1.document.createDocumentFragment();
1537
1543
  }(caches || (caches = {})));
1538
- function shadow(el, children, opts) {
1539
- var _a, _b;
1544
+ function shadow(el, opts, children, factory = exports.html) {
1545
+ var _a, _b, _c, _d;
1540
1546
  if (typeof el === 'string')
1541
- return shadow((0, exports.html)(el), children, opts);
1542
- if (children && !isChildren(children))
1543
- return shadow(el, void 0, children);
1544
- const root = opts === void 0 ? (_a = el.shadowRoot) !== null && _a !== void 0 ? _a : caches.shadows.get(el) : opts.mode === 'open' ? (_b = el.shadowRoot) !== null && _b !== void 0 ? _b : void 0 : caches.shadows.get(el);
1545
- return defineChildren(!opts || opts.mode === 'open' ? root !== null && root !== void 0 ? root : el.attachShadow(opts !== null && opts !== void 0 ? opts : { mode: 'open' }) : root !== null && root !== void 0 ? root : caches.shadows.set(el, el.attachShadow(opts)).get(el), !root && children === void 0 ? el.childNodes : children);
1547
+ return shadow(factory(el), opts, children, factory);
1548
+ if (typeof opts === 'function')
1549
+ return shadow(el, void 0, children, opts);
1550
+ if (typeof children === 'function')
1551
+ return shadow(el, opts, void 0, children);
1552
+ if (isChildren(opts))
1553
+ return shadow(el, void 0, opts, factory);
1554
+ return defineChildren(!opts ? (_b = (_a = el.shadowRoot) !== null && _a !== void 0 ? _a : caches.shadows.get(el)) !== null && _b !== void 0 ? _b : el.attachShadow({ mode: 'open' }) : opts.mode === 'open' ? (_c = el.shadowRoot) !== null && _c !== void 0 ? _c : el.attachShadow(opts) : (_d = caches.shadows.get(el)) !== null && _d !== void 0 ? _d : caches.shadow(el, opts), children);
1546
1555
  }
1547
1556
  exports.shadow = shadow;
1548
1557
  function frag(children) {
@@ -1559,7 +1568,7 @@ require = function () {
1559
1568
  const cache = (0, memoize_1.memoize)(elem, (_, ns, tag) => `${ ns }:${ tag }`);
1560
1569
  return (tag, attrs, children) => {
1561
1570
  const el = tag.includes('-') ? elem(context, ns, tag) : cache(context, ns, tag).cloneNode(true);
1562
- return isChildren(attrs) ? defineChildren(el, attrs) : defineChildren(defineAttrs(el, attrs), children);
1571
+ return !attrs || isChildren(attrs) ? defineChildren(el, attrs !== null && attrs !== void 0 ? attrs : children) : defineChildren(defineAttrs(el, attrs), children);
1563
1572
  };
1564
1573
  }
1565
1574
  exports.element = element;
@@ -1571,17 +1580,18 @@ require = function () {
1571
1580
  return context.createElement(tag);
1572
1581
  case 'SVG':
1573
1582
  return context.createElementNS('http://www.w3.org/2000/svg', tag);
1583
+ case 'MathML':
1584
+ return context.createElementNS('http://www.w3.org/1998/Math/MathML', tag);
1574
1585
  }
1575
1586
  }
1576
1587
  function define(node, attrs, children) {
1577
- return isChildren(attrs) ? defineChildren(node, attrs) : defineChildren(defineAttrs(node, attrs), children);
1588
+ return !attrs || isChildren(attrs) ? defineChildren(node, attrs !== null && attrs !== void 0 ? attrs : children) : defineChildren(defineAttrs(node, attrs), children);
1578
1589
  }
1579
1590
  exports.define = define;
1580
1591
  function defineAttrs(el, attrs) {
1581
- if (!attrs)
1582
- return el;
1583
- for (let i = 0, names = (0, alias_1.ObjectKeys)(attrs); i < names.length; ++i) {
1584
- const name = names[i];
1592
+ for (const name in attrs) {
1593
+ if (!(0, alias_1.hasOwnProperty)(attrs, name))
1594
+ continue;
1585
1595
  const value = attrs[name];
1586
1596
  switch (typeof value) {
1587
1597
  case 'string':
@@ -1591,8 +1601,7 @@ require = function () {
1591
1601
  if (name.length < 3)
1592
1602
  throw new Error(`TypedDOM: Attribute names for event listeners must have an event name but got "${ name }".`);
1593
1603
  const names = name.split(/\s+/);
1594
- for (let i = 0; i < names.length; ++i) {
1595
- const name = names[i];
1604
+ for (const name of names) {
1596
1605
  if (name.slice(0, 2) !== 'on')
1597
1606
  throw new Error(`TypedDOM: Attribute names for event listeners must start with "on" but got "${ name }".`);
1598
1607
  el.addEventListener(name.slice(2), value, {
@@ -1619,20 +1628,62 @@ require = function () {
1619
1628
  function defineChildren(node, children) {
1620
1629
  if (children === void 0)
1621
1630
  return node;
1622
- node.replaceChildren(...typeof children === 'string' ? [children] : children);
1631
+ if (typeof children === 'string') {
1632
+ node.textContent = children;
1633
+ } else if ((0, alias_1.isArray)(children) && !node.firstChild) {
1634
+ for (let i = 0; i < children.length; ++i) {
1635
+ const child = children[i];
1636
+ typeof child === 'object' ? node.appendChild(child) : node.append(child);
1637
+ }
1638
+ } else {
1639
+ node.replaceChildren(...children);
1640
+ }
1623
1641
  return node;
1624
1642
  }
1625
- function isChildren(param) {
1626
- return !!(param === null || param === void 0 ? void 0 : param[global_1.Symbol.iterator]);
1643
+ function isChildren(value) {
1644
+ return !!(value === null || value === void 0 ? void 0 : value[global_1.Symbol.iterator]);
1627
1645
  }
1628
1646
  exports.isChildren = isChildren;
1647
+ function append(node, children) {
1648
+ if (children === void 0)
1649
+ return node;
1650
+ if (typeof children === 'string') {
1651
+ node.append(children);
1652
+ } else {
1653
+ for (const child of children) {
1654
+ typeof child === 'object' ? node.appendChild(child) : node.append(child);
1655
+ }
1656
+ }
1657
+ return node;
1658
+ }
1659
+ exports.append = append;
1660
+ function prepend(node, children) {
1661
+ if (children === void 0)
1662
+ return node;
1663
+ if (typeof children === 'string') {
1664
+ node.prepend(children);
1665
+ } else {
1666
+ for (const child of children) {
1667
+ typeof child === 'object' ? node.insertBefore(child, null) : node.prepend(child);
1668
+ }
1669
+ }
1670
+ return node;
1671
+ }
1672
+ exports.prepend = prepend;
1629
1673
  function defrag(nodes) {
1630
1674
  const acc = [];
1675
+ let appendable = false;
1631
1676
  for (let i = 0; i < nodes.length; ++i) {
1632
1677
  const node = nodes[i];
1633
1678
  if (node === '')
1634
1679
  continue;
1635
- acc.length > 0 && typeof node === 'string' && typeof nodes[i - 1] === 'string' ? acc[acc.length - 1] += node : acc.push(node);
1680
+ if (typeof node === 'string') {
1681
+ appendable ? acc[acc.length - 1] += node : acc.push(node);
1682
+ appendable = true;
1683
+ } else {
1684
+ acc.push(node);
1685
+ appendable = false;
1686
+ }
1636
1687
  }
1637
1688
  return acc;
1638
1689
  }
@@ -1645,6 +1696,30 @@ require = function () {
1645
1696
  }
1646
1697
  ],
1647
1698
  24: [
1699
+ function (_dereq_, module, exports) {
1700
+ 'use strict';
1701
+ Object.defineProperty(exports, '__esModule', { value: true });
1702
+ exports.querySelectorAll = exports.querySelector = void 0;
1703
+ function querySelector(node, selector) {
1704
+ return 'matches' in node && node.matches(selector) ? node : node.querySelector(selector);
1705
+ }
1706
+ exports.querySelector = querySelector;
1707
+ function querySelectorAll(node, selector) {
1708
+ const acc = [];
1709
+ if ('matches' in node && node.matches(selector)) {
1710
+ acc.push(node);
1711
+ }
1712
+ const nodes = node.querySelectorAll(selector);
1713
+ for (let i = 0, len = nodes.length; i < len; ++i) {
1714
+ acc.push(nodes[i]);
1715
+ }
1716
+ return acc;
1717
+ }
1718
+ exports.querySelectorAll = querySelectorAll;
1719
+ },
1720
+ {}
1721
+ ],
1722
+ 25: [
1648
1723
  function (_dereq_, module, exports) {
1649
1724
  'use strict';
1650
1725
  var __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {
@@ -1698,34 +1773,34 @@ require = function () {
1698
1773
  __exportStar(_dereq_('./combinator/control/monad/bind'), exports);
1699
1774
  },
1700
1775
  {
1701
- './combinator/control/constraint/block': 25,
1702
- './combinator/control/constraint/contract': 26,
1703
- './combinator/control/constraint/line': 27,
1704
- './combinator/control/manipulation/context': 28,
1705
- './combinator/control/manipulation/convert': 29,
1706
- './combinator/control/manipulation/duplicate': 30,
1707
- './combinator/control/manipulation/fallback': 31,
1708
- './combinator/control/manipulation/fence': 32,
1709
- './combinator/control/manipulation/indent': 33,
1710
- './combinator/control/manipulation/lazy': 34,
1711
- './combinator/control/manipulation/match': 35,
1712
- './combinator/control/manipulation/recovery': 36,
1713
- './combinator/control/manipulation/resource': 37,
1714
- './combinator/control/manipulation/reverse': 38,
1715
- './combinator/control/manipulation/scope': 39,
1716
- './combinator/control/manipulation/surround': 40,
1717
- './combinator/control/manipulation/trim': 41,
1718
- './combinator/control/monad/bind': 42,
1719
- './combinator/control/monad/fmap': 43,
1720
- './combinator/data/parser/inits': 45,
1721
- './combinator/data/parser/sequence': 46,
1722
- './combinator/data/parser/some': 47,
1723
- './combinator/data/parser/subsequence': 48,
1724
- './combinator/data/parser/tails': 49,
1725
- './combinator/data/parser/union': 50
1776
+ './combinator/control/constraint/block': 26,
1777
+ './combinator/control/constraint/contract': 27,
1778
+ './combinator/control/constraint/line': 28,
1779
+ './combinator/control/manipulation/context': 29,
1780
+ './combinator/control/manipulation/convert': 30,
1781
+ './combinator/control/manipulation/duplicate': 31,
1782
+ './combinator/control/manipulation/fallback': 32,
1783
+ './combinator/control/manipulation/fence': 33,
1784
+ './combinator/control/manipulation/indent': 34,
1785
+ './combinator/control/manipulation/lazy': 35,
1786
+ './combinator/control/manipulation/match': 36,
1787
+ './combinator/control/manipulation/recovery': 37,
1788
+ './combinator/control/manipulation/resource': 38,
1789
+ './combinator/control/manipulation/reverse': 39,
1790
+ './combinator/control/manipulation/scope': 40,
1791
+ './combinator/control/manipulation/surround': 41,
1792
+ './combinator/control/manipulation/trim': 42,
1793
+ './combinator/control/monad/bind': 43,
1794
+ './combinator/control/monad/fmap': 44,
1795
+ './combinator/data/parser/inits': 46,
1796
+ './combinator/data/parser/sequence': 47,
1797
+ './combinator/data/parser/some': 48,
1798
+ './combinator/data/parser/subsequence': 49,
1799
+ './combinator/data/parser/tails': 50,
1800
+ './combinator/data/parser/union': 51
1726
1801
  }
1727
1802
  ],
1728
- 25: [
1803
+ 26: [
1729
1804
  function (_dereq_, module, exports) {
1730
1805
  'use strict';
1731
1806
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -1749,12 +1824,12 @@ require = function () {
1749
1824
  exports.block = block;
1750
1825
  },
1751
1826
  {
1752
- '../../data/parser': 44,
1753
- './line': 27,
1827
+ '../../data/parser': 45,
1828
+ './line': 28,
1754
1829
  'spica/global': 13
1755
1830
  }
1756
1831
  ],
1757
- 26: [
1832
+ 27: [
1758
1833
  function (_dereq_, module, exports) {
1759
1834
  'use strict';
1760
1835
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -1810,12 +1885,12 @@ require = function () {
1810
1885
  exports.verify = verify;
1811
1886
  },
1812
1887
  {
1813
- '../../data/parser': 44,
1888
+ '../../data/parser': 45,
1814
1889
  'spica/alias': 5,
1815
1890
  'spica/global': 13
1816
1891
  }
1817
1892
  ],
1818
- 27: [
1893
+ 28: [
1819
1894
  function (_dereq_, module, exports) {
1820
1895
  'use strict';
1821
1896
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -1855,11 +1930,11 @@ require = function () {
1855
1930
  exports.isEmpty = isEmpty;
1856
1931
  },
1857
1932
  {
1858
- '../../data/parser': 44,
1933
+ '../../data/parser': 45,
1859
1934
  'spica/global': 13
1860
1935
  }
1861
1936
  ],
1862
- 28: [
1937
+ 29: [
1863
1938
  function (_dereq_, module, exports) {
1864
1939
  'use strict';
1865
1940
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -1921,7 +1996,7 @@ require = function () {
1921
1996
  'spica/type': 20
1922
1997
  }
1923
1998
  ],
1924
- 29: [
1999
+ 30: [
1925
2000
  function (_dereq_, module, exports) {
1926
2001
  'use strict';
1927
2002
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -1941,7 +2016,7 @@ require = function () {
1941
2016
  },
1942
2017
  {}
1943
2018
  ],
1944
- 30: [
2019
+ 31: [
1945
2020
  function (_dereq_, module, exports) {
1946
2021
  'use strict';
1947
2022
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -1952,9 +2027,9 @@ require = function () {
1952
2027
  }
1953
2028
  exports.dup = dup;
1954
2029
  },
1955
- { '../monad/fmap': 43 }
2030
+ { '../monad/fmap': 44 }
1956
2031
  ],
1957
- 31: [
2032
+ 32: [
1958
2033
  function (_dereq_, module, exports) {
1959
2034
  'use strict';
1960
2035
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -1968,9 +2043,9 @@ require = function () {
1968
2043
  }
1969
2044
  exports.fallback = fallback;
1970
2045
  },
1971
- { '../../data/parser/union': 50 }
2046
+ { '../../data/parser/union': 51 }
1972
2047
  ],
1973
- 32: [
2048
+ 33: [
1974
2049
  function (_dereq_, module, exports) {
1975
2050
  'use strict';
1976
2051
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -2019,11 +2094,11 @@ require = function () {
2019
2094
  exports.fence = fence;
2020
2095
  },
2021
2096
  {
2022
- '../constraint/line': 27,
2097
+ '../constraint/line': 28,
2023
2098
  'spica/array': 6
2024
2099
  }
2025
2100
  ],
2026
- 33: [
2101
+ 34: [
2027
2102
  function (_dereq_, module, exports) {
2028
2103
  'use strict';
2029
2104
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -2031,17 +2106,18 @@ require = function () {
2031
2106
  const global_1 = _dereq_('spica/global');
2032
2107
  const parser_1 = _dereq_('../../data/parser');
2033
2108
  const some_1 = _dereq_('../../data/parser/some');
2109
+ const block_1 = _dereq_('../constraint/block');
2034
2110
  const line_1 = _dereq_('../constraint/line');
2035
2111
  const bind_1 = _dereq_('../monad/bind');
2036
2112
  const match_1 = _dereq_('./match');
2037
2113
  const surround_1 = _dereq_('./surround');
2038
2114
  const memoize_1 = _dereq_('spica/memoize');
2039
2115
  const array_1 = _dereq_('spica/array');
2040
- function indent(parser) {
2041
- return (0, bind_1.bind)((0, match_1.match)(/^(?=(([ \t])\2*))/, (0, memoize_1.memoize)(([, indent]) => (0, some_1.some)((0, line_1.line)((0, surround_1.open)(indent, source => [
2116
+ function indent(parser, separation = false) {
2117
+ return (0, bind_1.bind)((0, block_1.block)((0, match_1.match)(/^(?=(([ \t])\2*))/, (0, memoize_1.memoize)(([, indent]) => (0, some_1.some)((0, line_1.line)((0, surround_1.open)(indent, source => [
2042
2118
  [unline(source)],
2043
2119
  ''
2044
- ]))), ([, indent]) => indent.length * 2 + +(indent[0] === ' '), [])), (nodes, rest, context) => {
2120
+ ]))), ([, indent]) => indent.length * 2 + +(indent[0] === ' '), [])), separation), (nodes, rest, context) => {
2045
2121
  const result = parser((0, array_1.join)(nodes, '\n'), context);
2046
2122
  return result && (0, parser_1.exec)(result) === '' ? [
2047
2123
  (0, parser_1.eval)(result),
@@ -2055,18 +2131,19 @@ require = function () {
2055
2131
  }
2056
2132
  },
2057
2133
  {
2058
- '../../data/parser': 44,
2059
- '../../data/parser/some': 47,
2060
- '../constraint/line': 27,
2061
- '../monad/bind': 42,
2062
- './match': 35,
2063
- './surround': 40,
2134
+ '../../data/parser': 45,
2135
+ '../../data/parser/some': 48,
2136
+ '../constraint/block': 26,
2137
+ '../constraint/line': 28,
2138
+ '../monad/bind': 43,
2139
+ './match': 36,
2140
+ './surround': 41,
2064
2141
  'spica/array': 6,
2065
2142
  'spica/global': 13,
2066
2143
  'spica/memoize': 16
2067
2144
  }
2068
2145
  ],
2069
- 34: [
2146
+ 35: [
2070
2147
  function (_dereq_, module, exports) {
2071
2148
  'use strict';
2072
2149
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -2079,7 +2156,7 @@ require = function () {
2079
2156
  },
2080
2157
  {}
2081
2158
  ],
2082
- 35: [
2159
+ 36: [
2083
2160
  function (_dereq_, module, exports) {
2084
2161
  'use strict';
2085
2162
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -2103,11 +2180,11 @@ require = function () {
2103
2180
  exports.match = match;
2104
2181
  },
2105
2182
  {
2106
- '../../data/parser': 44,
2183
+ '../../data/parser': 45,
2107
2184
  'spica/global': 13
2108
2185
  }
2109
2186
  ],
2110
- 36: [
2187
+ 37: [
2111
2188
  function (_dereq_, module, exports) {
2112
2189
  'use strict';
2113
2190
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -2125,7 +2202,7 @@ require = function () {
2125
2202
  },
2126
2203
  {}
2127
2204
  ],
2128
- 37: [
2205
+ 38: [
2129
2206
  function (_dereq_, module, exports) {
2130
2207
  'use strict';
2131
2208
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -2157,7 +2234,7 @@ require = function () {
2157
2234
  },
2158
2235
  {}
2159
2236
  ],
2160
- 38: [
2237
+ 39: [
2161
2238
  function (_dereq_, module, exports) {
2162
2239
  'use strict';
2163
2240
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -2168,9 +2245,9 @@ require = function () {
2168
2245
  }
2169
2246
  exports.reverse = reverse;
2170
2247
  },
2171
- { '../monad/fmap': 43 }
2248
+ { '../monad/fmap': 44 }
2172
2249
  ],
2173
- 39: [
2250
+ 40: [
2174
2251
  function (_dereq_, module, exports) {
2175
2252
  'use strict';
2176
2253
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -2218,11 +2295,11 @@ require = function () {
2218
2295
  exports.rewrite = rewrite;
2219
2296
  },
2220
2297
  {
2221
- '../../data/parser': 44,
2298
+ '../../data/parser': 45,
2222
2299
  'spica/global': 13
2223
2300
  }
2224
2301
  ],
2225
- 40: [
2302
+ 41: [
2226
2303
  function (_dereq_, module, exports) {
2227
2304
  'use strict';
2228
2305
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -2305,13 +2382,13 @@ require = function () {
2305
2382
  exports.clear = clear;
2306
2383
  },
2307
2384
  {
2308
- '../../data/parser': 44,
2309
- '../monad/fmap': 43,
2385
+ '../../data/parser': 45,
2386
+ '../monad/fmap': 44,
2310
2387
  'spica/array': 6,
2311
2388
  'spica/global': 13
2312
2389
  }
2313
2390
  ],
2314
- 41: [
2391
+ 42: [
2315
2392
  function (_dereq_, module, exports) {
2316
2393
  'use strict';
2317
2394
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -2330,9 +2407,9 @@ require = function () {
2330
2407
  }
2331
2408
  exports.trimEnd = trimEnd;
2332
2409
  },
2333
- { './convert': 29 }
2410
+ { './convert': 30 }
2334
2411
  ],
2335
- 42: [
2412
+ 43: [
2336
2413
  function (_dereq_, module, exports) {
2337
2414
  'use strict';
2338
2415
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -2355,11 +2432,11 @@ require = function () {
2355
2432
  exports.bind = bind;
2356
2433
  },
2357
2434
  {
2358
- '../../data/parser': 44,
2435
+ '../../data/parser': 45,
2359
2436
  'spica/global': 13
2360
2437
  }
2361
2438
  ],
2362
- 43: [
2439
+ 44: [
2363
2440
  function (_dereq_, module, exports) {
2364
2441
  'use strict';
2365
2442
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -2373,9 +2450,9 @@ require = function () {
2373
2450
  }
2374
2451
  exports.fmap = fmap;
2375
2452
  },
2376
- { './bind': 42 }
2453
+ { './bind': 43 }
2377
2454
  ],
2378
- 44: [
2455
+ 45: [
2379
2456
  function (_dereq_, module, exports) {
2380
2457
  'use strict';
2381
2458
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -2426,7 +2503,7 @@ require = function () {
2426
2503
  },
2427
2504
  {}
2428
2505
  ],
2429
- 45: [
2506
+ 46: [
2430
2507
  function (_dereq_, module, exports) {
2431
2508
  'use strict';
2432
2509
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -2459,12 +2536,12 @@ require = function () {
2459
2536
  exports.inits = inits;
2460
2537
  },
2461
2538
  {
2462
- '../parser': 44,
2539
+ '../parser': 45,
2463
2540
  'spica/array': 6,
2464
2541
  'spica/global': 13
2465
2542
  }
2466
2543
  ],
2467
- 46: [
2544
+ 47: [
2468
2545
  function (_dereq_, module, exports) {
2469
2546
  'use strict';
2470
2547
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -2497,12 +2574,12 @@ require = function () {
2497
2574
  exports.sequence = sequence;
2498
2575
  },
2499
2576
  {
2500
- '../parser': 44,
2577
+ '../parser': 45,
2501
2578
  'spica/array': 6,
2502
2579
  'spica/global': 13
2503
2580
  }
2504
2581
  ],
2505
- 47: [
2582
+ 48: [
2506
2583
  function (_dereq_, module, exports) {
2507
2584
  'use strict';
2508
2585
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -2598,13 +2675,13 @@ require = function () {
2598
2675
  exports.escape = escape;
2599
2676
  },
2600
2677
  {
2601
- '../parser': 44,
2678
+ '../parser': 45,
2602
2679
  'spica/array': 6,
2603
2680
  'spica/global': 13,
2604
2681
  'spica/memoize': 16
2605
2682
  }
2606
2683
  ],
2607
- 48: [
2684
+ 49: [
2608
2685
  function (_dereq_, module, exports) {
2609
2686
  'use strict';
2610
2687
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -2620,11 +2697,11 @@ require = function () {
2620
2697
  exports.subsequence = subsequence;
2621
2698
  },
2622
2699
  {
2623
- './inits': 45,
2624
- './union': 50
2700
+ './inits': 46,
2701
+ './union': 51
2625
2702
  }
2626
2703
  ],
2627
- 49: [
2704
+ 50: [
2628
2705
  function (_dereq_, module, exports) {
2629
2706
  'use strict';
2630
2707
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -2637,11 +2714,11 @@ require = function () {
2637
2714
  exports.tails = tails;
2638
2715
  },
2639
2716
  {
2640
- './sequence': 46,
2641
- './union': 50
2717
+ './sequence': 47,
2718
+ './union': 51
2642
2719
  }
2643
2720
  ],
2644
- 50: [
2721
+ 51: [
2645
2722
  function (_dereq_, module, exports) {
2646
2723
  'use strict';
2647
2724
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -2666,7 +2743,7 @@ require = function () {
2666
2743
  },
2667
2744
  { 'spica/global': 13 }
2668
2745
  ],
2669
- 51: [
2746
+ 52: [
2670
2747
  function (_dereq_, module, exports) {
2671
2748
  'use strict';
2672
2749
  var __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {
@@ -2695,9 +2772,9 @@ require = function () {
2695
2772
  Object.defineProperty(exports, '__esModule', { value: true });
2696
2773
  __exportStar(_dereq_('./parser/api'), exports);
2697
2774
  },
2698
- { './parser/api': 52 }
2775
+ { './parser/api': 53 }
2699
2776
  ],
2700
- 52: [
2777
+ 53: [
2701
2778
  function (_dereq_, module, exports) {
2702
2779
  'use strict';
2703
2780
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -2752,15 +2829,15 @@ require = function () {
2752
2829
  });
2753
2830
  },
2754
2831
  {
2755
- './api/bind': 53,
2756
- './api/body': 54,
2757
- './api/cache': 55,
2758
- './api/header': 56,
2759
- './api/normalize': 57,
2760
- './api/parse': 58
2832
+ './api/bind': 54,
2833
+ './api/body': 55,
2834
+ './api/cache': 56,
2835
+ './api/header': 57,
2836
+ './api/normalize': 58,
2837
+ './api/parse': 59
2761
2838
  }
2762
2839
  ],
2763
- 53: [
2840
+ 54: [
2764
2841
  function (_dereq_, module, exports) {
2765
2842
  'use strict';
2766
2843
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -2934,21 +3011,21 @@ require = function () {
2934
3011
  exports.bind = bind;
2935
3012
  },
2936
3013
  {
2937
- '../../combinator/data/parser': 44,
2938
- '../block': 60,
2939
- '../header': 84,
2940
- '../processor/figure': 122,
2941
- '../processor/footnote': 123,
2942
- '../segment': 124,
2943
- './header': 56,
2944
- './normalize': 57,
3014
+ '../../combinator/data/parser': 45,
3015
+ '../block': 61,
3016
+ '../header': 87,
3017
+ '../processor/figure': 125,
3018
+ '../processor/footnote': 126,
3019
+ '../segment': 127,
3020
+ './header': 57,
3021
+ './normalize': 58,
2945
3022
  'spica/alias': 5,
2946
3023
  'spica/array': 6,
2947
3024
  'spica/global': 13,
2948
3025
  'spica/url': 21
2949
3026
  }
2950
3027
  ],
2951
- 54: [
3028
+ 55: [
2952
3029
  function (_dereq_, module, exports) {
2953
3030
  'use strict';
2954
3031
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -2959,9 +3036,9 @@ require = function () {
2959
3036
  }
2960
3037
  exports.body = body;
2961
3038
  },
2962
- { './header': 56 }
3039
+ { './header': 57 }
2963
3040
  ],
2964
- 55: [
3041
+ 56: [
2965
3042
  function (_dereq_, module, exports) {
2966
3043
  'use strict';
2967
3044
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -2975,7 +3052,7 @@ require = function () {
2975
3052
  },
2976
3053
  { 'spica/cache': 8 }
2977
3054
  ],
2978
- 56: [
3055
+ 57: [
2979
3056
  function (_dereq_, module, exports) {
2980
3057
  'use strict';
2981
3058
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -3003,11 +3080,11 @@ require = function () {
3003
3080
  }
3004
3081
  },
3005
3082
  {
3006
- '../../combinator/data/parser': 44,
3007
- '../header': 84
3083
+ '../../combinator/data/parser': 45,
3084
+ '../header': 87
3008
3085
  }
3009
3086
  ],
3010
- 57: [
3087
+ 58: [
3011
3088
  function (_dereq_, module, exports) {
3012
3089
  'use strict';
3013
3090
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -3084,11 +3161,11 @@ require = function () {
3084
3161
  exports.escape = escape;
3085
3162
  },
3086
3163
  {
3087
- '../../combinator/data/parser': 44,
3088
- '../inline/htmlentity': 109
3164
+ '../../combinator/data/parser': 45,
3165
+ '../inline/htmlentity': 112
3089
3166
  }
3090
3167
  ],
3091
- 58: [
3168
+ 59: [
3092
3169
  function (_dereq_, module, exports) {
3093
3170
  'use strict';
3094
3171
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -3134,20 +3211,20 @@ require = function () {
3134
3211
  exports.parse = parse;
3135
3212
  },
3136
3213
  {
3137
- '../../combinator/data/parser': 44,
3138
- '../block': 60,
3139
- '../header': 84,
3140
- '../processor/figure': 122,
3141
- '../processor/footnote': 123,
3142
- '../segment': 124,
3143
- './header': 56,
3144
- './normalize': 57,
3214
+ '../../combinator/data/parser': 45,
3215
+ '../block': 61,
3216
+ '../header': 87,
3217
+ '../processor/figure': 125,
3218
+ '../processor/footnote': 126,
3219
+ '../segment': 127,
3220
+ './header': 57,
3221
+ './normalize': 58,
3145
3222
  'spica/global': 13,
3146
3223
  'spica/url': 21,
3147
3224
  'typed-dom/dom': 23
3148
3225
  }
3149
3226
  ],
3150
- 59: [
3227
+ 60: [
3151
3228
  function (_dereq_, module, exports) {
3152
3229
  'use strict';
3153
3230
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -3162,12 +3239,12 @@ require = function () {
3162
3239
  ]));
3163
3240
  },
3164
3241
  {
3165
- '../combinator': 24,
3166
- './inline/autolink': 87,
3167
- './source': 125
3242
+ '../combinator': 25,
3243
+ './inline/autolink': 90,
3244
+ './source': 128
3168
3245
  }
3169
3246
  ],
3170
- 60: [
3247
+ 61: [
3171
3248
  function (_dereq_, module, exports) {
3172
3249
  'use strict';
3173
3250
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -3182,10 +3259,12 @@ require = function () {
3182
3259
  const ilist_1 = _dereq_('./block/ilist');
3183
3260
  const dlist_1 = _dereq_('./block/dlist');
3184
3261
  const table_1 = _dereq_('./block/table');
3185
- const blockquote_1 = _dereq_('./block/blockquote');
3262
+ const indentblock_1 = _dereq_('./block/indentblock');
3186
3263
  const codeblock_1 = _dereq_('./block/codeblock');
3187
3264
  const mathblock_1 = _dereq_('./block/mathblock');
3188
3265
  const extension_1 = _dereq_('./block/extension');
3266
+ const sidefence_1 = _dereq_('./block/sidefence');
3267
+ const blockquote_1 = _dereq_('./block/blockquote');
3189
3268
  const reply_1 = _dereq_('./block/reply');
3190
3269
  const paragraph_1 = _dereq_('./block/paragraph');
3191
3270
  const dom_1 = _dereq_('typed-dom/dom');
@@ -3204,9 +3283,11 @@ require = function () {
3204
3283
  ilist_1.ilist,
3205
3284
  dlist_1.dlist,
3206
3285
  table_1.table,
3286
+ indentblock_1.indentblock,
3207
3287
  codeblock_1.codeblock,
3208
3288
  mathblock_1.mathblock,
3209
3289
  extension_1.extension,
3290
+ sidefence_1.sidefence,
3210
3291
  blockquote_1.blockquote,
3211
3292
  reply_1.reply,
3212
3293
  paragraph_1.paragraph
@@ -3230,27 +3311,29 @@ require = function () {
3230
3311
  }
3231
3312
  },
3232
3313
  {
3233
- '../combinator': 24,
3234
- './block/blockquote': 61,
3235
- './block/codeblock': 62,
3236
- './block/dlist': 63,
3237
- './block/extension': 64,
3238
- './block/heading': 73,
3239
- './block/horizontalrule': 74,
3240
- './block/ilist': 75,
3241
- './block/mathblock': 76,
3242
- './block/olist': 77,
3243
- './block/paragraph': 78,
3244
- './block/reply': 79,
3245
- './block/table': 82,
3246
- './block/ulist': 83,
3247
- './source': 125,
3314
+ '../combinator': 25,
3315
+ './block/blockquote': 62,
3316
+ './block/codeblock': 63,
3317
+ './block/dlist': 64,
3318
+ './block/extension': 65,
3319
+ './block/heading': 74,
3320
+ './block/horizontalrule': 75,
3321
+ './block/ilist': 76,
3322
+ './block/indentblock': 77,
3323
+ './block/mathblock': 78,
3324
+ './block/olist': 79,
3325
+ './block/paragraph': 80,
3326
+ './block/reply': 81,
3327
+ './block/sidefence': 84,
3328
+ './block/table': 85,
3329
+ './block/ulist': 86,
3330
+ './source': 128,
3248
3331
  'spica/global': 13,
3249
3332
  'spica/random': 18,
3250
3333
  'typed-dom/dom': 23
3251
3334
  }
3252
3335
  ],
3253
- 61: [
3336
+ 62: [
3254
3337
  function (_dereq_, module, exports) {
3255
3338
  'use strict';
3256
3339
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -3270,9 +3353,7 @@ require = function () {
3270
3353
  ]))));
3271
3354
  const opener = /^(?=>>+(?:$|\s))/;
3272
3355
  const indent = (0, combinator_1.block)((0, combinator_1.open)(opener, (0, combinator_1.some)(source_1.contentline, /^>(?:$|\s)/)), false);
3273
- function unindent(source) {
3274
- return source.replace(/\n$/, '').replace(/^>(?:$|\s|(?=>+(?:$|\s)))/mg, '');
3275
- }
3356
+ const unindent = source => source.replace(/(^|\n)>(?:[^\S\n]|(?=>*(?:$|\s)))|\n$/g, '$1');
3276
3357
  const source = (0, combinator_1.lazy)(() => (0, combinator_1.fmap)((0, combinator_1.some)((0, combinator_1.creator)((0, combinator_1.union)([
3277
3358
  (0, combinator_1.rewrite)(indent, (0, combinator_1.convert)(unindent, source)),
3278
3359
  (0, combinator_1.rewrite)((0, combinator_1.some)(source_1.contentline, opener), (0, combinator_1.convert)(unindent, (0, combinator_1.fmap)((0, combinator_1.some)(autolink_1.autolink), ns => [(0, dom_1.html)('pre', (0, dom_1.defrag)(ns))])))
@@ -3301,14 +3382,14 @@ require = function () {
3301
3382
  ]))), ns => [(0, dom_1.html)('blockquote', ns)]));
3302
3383
  },
3303
3384
  {
3304
- '../../combinator': 24,
3305
- '../api/parse': 58,
3306
- '../autolink': 59,
3307
- '../source': 125,
3385
+ '../../combinator': 25,
3386
+ '../api/parse': 59,
3387
+ '../autolink': 60,
3388
+ '../source': 128,
3308
3389
  'typed-dom/dom': 23
3309
3390
  }
3310
3391
  ],
3311
- 62: [
3392
+ 63: [
3312
3393
  function (_dereq_, module, exports) {
3313
3394
  'use strict';
3314
3395
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -3355,7 +3436,7 @@ require = function () {
3355
3436
  }, `${ opener }${ body }${ closer }`)];
3356
3437
  const el = (0, dom_1.html)('pre', {
3357
3438
  class: params.lang ? `code language-${ params.lang }` : 'text',
3358
- translate: 'no',
3439
+ translate: params.lang ? 'no' : global_1.undefined,
3359
3440
  'data-lang': params.lang || global_1.undefined,
3360
3441
  'data-line': params.line || global_1.undefined,
3361
3442
  'data-path': params.path || global_1.undefined
@@ -3364,14 +3445,14 @@ require = function () {
3364
3445
  })));
3365
3446
  },
3366
3447
  {
3367
- '../../combinator': 24,
3368
- '../../combinator/data/parser': 44,
3369
- '../autolink': 59,
3448
+ '../../combinator': 25,
3449
+ '../../combinator/data/parser': 45,
3450
+ '../autolink': 60,
3370
3451
  'spica/global': 13,
3371
3452
  'typed-dom/dom': 23
3372
3453
  }
3373
3454
  ],
3374
- 63: [
3455
+ 64: [
3375
3456
  function (_dereq_, module, exports) {
3376
3457
  'use strict';
3377
3458
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -3408,16 +3489,16 @@ require = function () {
3408
3489
  }
3409
3490
  },
3410
3491
  {
3411
- '../../combinator': 24,
3412
- '../inline': 85,
3413
- '../locale': 120,
3414
- '../source': 125,
3415
- '../util': 131,
3492
+ '../../combinator': 25,
3493
+ '../inline': 88,
3494
+ '../locale': 123,
3495
+ '../source': 128,
3496
+ '../util': 134,
3416
3497
  'spica/array': 6,
3417
3498
  'typed-dom/dom': 23
3418
3499
  }
3419
3500
  ],
3420
- 64: [
3501
+ 65: [
3421
3502
  function (_dereq_, module, exports) {
3422
3503
  'use strict';
3423
3504
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -3453,18 +3534,18 @@ require = function () {
3453
3534
  ]);
3454
3535
  },
3455
3536
  {
3456
- '../../combinator': 24,
3457
- './extension/aside': 65,
3458
- './extension/example': 66,
3459
- './extension/fig': 67,
3460
- './extension/figbase': 68,
3461
- './extension/figure': 69,
3462
- './extension/message': 70,
3463
- './extension/placeholder': 71,
3464
- './extension/table': 72
3537
+ '../../combinator': 25,
3538
+ './extension/aside': 66,
3539
+ './extension/example': 67,
3540
+ './extension/fig': 68,
3541
+ './extension/figbase': 69,
3542
+ './extension/figure': 70,
3543
+ './extension/message': 71,
3544
+ './extension/placeholder': 72,
3545
+ './extension/table': 73
3465
3546
  }
3466
3547
  ],
3467
- 65: [
3548
+ 66: [
3468
3549
  function (_dereq_, module, exports) {
3469
3550
  'use strict';
3470
3551
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -3512,13 +3593,13 @@ require = function () {
3512
3593
  }))));
3513
3594
  },
3514
3595
  {
3515
- '../../../combinator': 24,
3516
- '../../api/parse': 58,
3517
- '../../inline/extension/indexee': 104,
3596
+ '../../../combinator': 25,
3597
+ '../../api/parse': 59,
3598
+ '../../inline/extension/indexee': 107,
3518
3599
  'typed-dom/dom': 23
3519
3600
  }
3520
3601
  ],
3521
- 66: [
3602
+ 67: [
3522
3603
  function (_dereq_, module, exports) {
3523
3604
  'use strict';
3524
3605
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -3528,7 +3609,7 @@ require = function () {
3528
3609
  const parse_1 = _dereq_('../../api/parse');
3529
3610
  const mathblock_1 = _dereq_('../mathblock');
3530
3611
  const dom_1 = _dereq_('typed-dom/dom');
3531
- const opener = /^(~{3,})(?:example\/(\S+)|(?!\S))([^\n]*)(?:$|\n)/;
3612
+ const opener = /^(~{3,})(?:example\/(\S+))?(?!\S)([^\n]*)(?:$|\n)/;
3532
3613
  exports.example = (0, combinator_1.creator)(100, (0, combinator_1.block)((0, combinator_1.validate)('~~~', (0, combinator_1.fmap)((0, combinator_1.fence)(opener, 300), ([body, closer, opener, delim, type = 'markdown', param], _, context) => {
3533
3614
  if (!closer || param.trimStart())
3534
3615
  return [(0, dom_1.html)('pre', {
@@ -3582,14 +3663,14 @@ require = function () {
3582
3663
  }))));
3583
3664
  },
3584
3665
  {
3585
- '../../../combinator': 24,
3586
- '../../../combinator/data/parser': 44,
3587
- '../../api/parse': 58,
3588
- '../mathblock': 76,
3666
+ '../../../combinator': 25,
3667
+ '../../../combinator/data/parser': 45,
3668
+ '../../api/parse': 59,
3669
+ '../mathblock': 78,
3589
3670
  'typed-dom/dom': 23
3590
3671
  }
3591
3672
  ],
3592
- 67: [
3673
+ 68: [
3593
3674
  function (_dereq_, module, exports) {
3594
3675
  'use strict';
3595
3676
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -3600,8 +3681,8 @@ require = function () {
3600
3681
  const label_1 = _dereq_('../../inline/extension/label');
3601
3682
  const codeblock_1 = _dereq_('../codeblock');
3602
3683
  const mathblock_1 = _dereq_('../mathblock');
3603
- const blockquote_1 = _dereq_('../blockquote');
3604
3684
  const table_1 = _dereq_('./table');
3685
+ const blockquote_1 = _dereq_('../blockquote');
3605
3686
  const placeholder_1 = _dereq_('./placeholder');
3606
3687
  exports.segment = (0, combinator_1.block)((0, combinator_1.validate)([
3607
3688
  '[$',
@@ -3611,30 +3692,30 @@ require = function () {
3611
3692
  (0, combinator_1.union)([
3612
3693
  codeblock_1.segment,
3613
3694
  mathblock_1.segment,
3614
- blockquote_1.segment,
3615
3695
  table_1.segment,
3696
+ blockquote_1.segment,
3616
3697
  placeholder_1.segment,
3617
3698
  (0, combinator_1.some)(source_1.contentline)
3618
3699
  ])
3619
3700
  ])));
3620
- exports.fig = (0, combinator_1.block)((0, combinator_1.rewrite)(exports.segment, (0, combinator_1.convert)(source => {
3621
- const fence = (/^[^\n]*\n!?>+\s/.test(source) && source.match(/^~{3,}(?=\s*$)/mg) || []).reduce((max, fence) => fence > max ? fence : max, '~~') + '~';
3701
+ exports.fig = (0, combinator_1.block)((0, combinator_1.rewrite)(exports.segment, (0, combinator_1.verify)((0, combinator_1.convert)(source => {
3702
+ const fence = (/^[^\n]*\n!?>+\s/.test(source) && source.match(/^~{3,}(?=[^\S\n]*$)/mg) || []).reduce((max, fence) => fence > max ? fence : max, '~~') + '~';
3622
3703
  return `${ fence }figure ${ source }\n\n${ fence }`;
3623
- }, (0, combinator_1.union)([figure_1.figure]))));
3704
+ }, (0, combinator_1.union)([figure_1.figure])), ([el]) => el.tagName === 'FIGURE')));
3624
3705
  },
3625
3706
  {
3626
- '../../../combinator': 24,
3627
- '../../inline/extension/label': 106,
3628
- '../../source': 125,
3629
- '../blockquote': 61,
3630
- '../codeblock': 62,
3631
- '../mathblock': 76,
3632
- './figure': 69,
3633
- './placeholder': 71,
3634
- './table': 72
3707
+ '../../../combinator': 25,
3708
+ '../../inline/extension/label': 109,
3709
+ '../../source': 128,
3710
+ '../blockquote': 62,
3711
+ '../codeblock': 63,
3712
+ '../mathblock': 78,
3713
+ './figure': 70,
3714
+ './placeholder': 72,
3715
+ './table': 73
3635
3716
  }
3636
3717
  ],
3637
- 68: [
3718
+ 69: [
3638
3719
  function (_dereq_, module, exports) {
3639
3720
  'use strict';
3640
3721
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -3653,12 +3734,12 @@ require = function () {
3653
3734
  }));
3654
3735
  },
3655
3736
  {
3656
- '../../../combinator': 24,
3657
- '../../inline/extension/label': 106,
3737
+ '../../../combinator': 25,
3738
+ '../../inline/extension/label': 109,
3658
3739
  'typed-dom/dom': 23
3659
3740
  }
3660
3741
  ],
3661
- 69: [
3742
+ 70: [
3662
3743
  function (_dereq_, module, exports) {
3663
3744
  'use strict';
3664
3745
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -3670,11 +3751,12 @@ require = function () {
3670
3751
  const ulist_1 = _dereq_('../ulist');
3671
3752
  const olist_1 = _dereq_('../olist');
3672
3753
  const table_1 = _dereq_('../table');
3754
+ const indentblock_1 = _dereq_('../indentblock');
3673
3755
  const codeblock_1 = _dereq_('../codeblock');
3674
3756
  const mathblock_1 = _dereq_('../mathblock');
3675
- const blockquote_1 = _dereq_('../blockquote');
3676
3757
  const example_1 = _dereq_('./example');
3677
3758
  const table_2 = _dereq_('./table');
3759
+ const blockquote_1 = _dereq_('../blockquote');
3678
3760
  const placeholder_1 = _dereq_('./placeholder');
3679
3761
  const inline_1 = _dereq_('../../inline');
3680
3762
  const locale_1 = _dereq_('../../locale');
@@ -3682,14 +3764,14 @@ require = function () {
3682
3764
  const dom_1 = _dereq_('typed-dom/dom');
3683
3765
  const memoize_1 = _dereq_('spica/memoize');
3684
3766
  const array_1 = _dereq_('spica/array');
3685
- exports.segment = (0, combinator_1.block)((0, combinator_1.match)(/^(~{3,})(?:figure[^\S\n]+)?(?=\[?\$[A-Za-z-][^\n]*\n)/, (0, memoize_1.memoize)(([, fence], closer = new RegExp(String.raw`^${ fence }[^\S\n]*(?:$|\n)`)) => (0, combinator_1.close)((0, combinator_1.sequence)([
3767
+ exports.segment = (0, combinator_1.block)((0, combinator_1.match)(/^(~{3,})(?:figure[^\S\n]|(?=\[?\$))/, (0, memoize_1.memoize)(([, fence], closer = new RegExp(String.raw`^${ fence }[^\S\n]*(?:$|\n)`)) => (0, combinator_1.close)((0, combinator_1.sequence)([
3686
3768
  source_1.contentline,
3687
3769
  (0, combinator_1.inits)([
3688
3770
  (0, combinator_1.union)([
3689
3771
  codeblock_1.segment_,
3690
3772
  mathblock_1.segment_,
3691
- blockquote_1.segment,
3692
3773
  table_2.segment_,
3774
+ blockquote_1.segment,
3693
3775
  placeholder_1.segment_,
3694
3776
  (0, combinator_1.some)(source_1.contentline, closer)
3695
3777
  ]),
@@ -3700,21 +3782,22 @@ require = function () {
3700
3782
  ])
3701
3783
  ])
3702
3784
  ]), closer), ([, fence]) => fence.length, [])));
3703
- exports.figure = (0, combinator_1.block)((0, combinator_1.rewrite)(exports.segment, (0, combinator_1.fmap)((0, combinator_1.convert)(source => source.slice(source.search(/[[$]/), source.trimEnd().lastIndexOf('\n')), (0, combinator_1.sequence)([
3785
+ exports.figure = (0, combinator_1.block)((0, combinator_1.fallback)((0, combinator_1.rewrite)(exports.segment, (0, combinator_1.fallback)((0, combinator_1.fmap)((0, combinator_1.convert)(source => source.slice(source.match(/^~+(?:figure[^\S\n]+)?/)[0].length, source.trimEnd().lastIndexOf('\n')), (0, combinator_1.sequence)([
3704
3786
  (0, combinator_1.line)((0, combinator_1.sequence)([
3705
3787
  label_1.label,
3706
- (0, source_1.str)(/^.*\n/)
3788
+ (0, source_1.str)(/^(?=\s).*\n/)
3707
3789
  ])),
3708
3790
  (0, combinator_1.inits)([
3709
3791
  (0, combinator_1.block)((0, combinator_1.union)([
3710
3792
  ulist_1.ulist,
3711
3793
  olist_1.olist,
3712
3794
  table_1.table,
3795
+ indentblock_1.indentblock,
3713
3796
  codeblock_1.codeblock,
3714
3797
  mathblock_1.mathblock,
3715
- blockquote_1.blockquote,
3716
3798
  example_1.example,
3717
3799
  table_2.table,
3800
+ blockquote_1.blockquote,
3718
3801
  placeholder_1.placeholder,
3719
3802
  (0, combinator_1.line)(inline_1.media),
3720
3803
  (0, combinator_1.line)(inline_1.shortmedia)
@@ -3725,7 +3808,47 @@ require = function () {
3725
3808
  ])), ([label, param, content, ...caption]) => [(0, dom_1.html)('figure', attributes(label.getAttribute('data-label'), param, content, caption), [
3726
3809
  (0, dom_1.html)('figcaption', (0, array_1.unshift)([(0, dom_1.html)('span', { class: 'figindex' })], (0, dom_1.defrag)(caption))),
3727
3810
  (0, dom_1.html)('div', [content])
3728
- ])])));
3811
+ ])]), (source, context) => {
3812
+ var _a, _b;
3813
+ return [
3814
+ [(0, dom_1.html)('pre', {
3815
+ class: 'invalid',
3816
+ translate: 'no',
3817
+ 'data-invalid-syntax': 'figure',
3818
+ ...!(0, label_1.segment)((_b = (_a = source.match(/^~+(?:figure[^\S\n]+)?(\[?\$\S+)/)) === null || _a === void 0 ? void 0 : _a[1]) !== null && _b !== void 0 ? _b : '', context) && {
3819
+ 'data-invalid-type': 'label',
3820
+ 'data-invalid-message': 'Invalid label'
3821
+ } || /^~+(?:figure[^\S\n]+)?(\[?\$\S+)[^\S\n]+\S/.test(source) && {
3822
+ 'data-invalid-type': 'argument',
3823
+ 'data-invalid-message': 'Invalid argument'
3824
+ } || {
3825
+ 'data-invalid-type': 'content',
3826
+ 'data-invalid-message': 'Invalid content'
3827
+ }
3828
+ }, source)],
3829
+ ''
3830
+ ];
3831
+ })), (0, combinator_1.fmap)((0, combinator_1.fence)(/^(~{3,})(?:figure|\[?\$\S*)(?!\S)[^\n]*(?:$|\n)/, 300), ([body, closer, opener, delim], _, context) => {
3832
+ var _a, _b;
3833
+ return [(0, dom_1.html)('pre', {
3834
+ class: 'invalid',
3835
+ translate: 'no',
3836
+ 'data-invalid-syntax': 'figure',
3837
+ ...!closer && {
3838
+ 'data-invalid-type': 'fence',
3839
+ 'data-invalid-message': `Missing the closing delimiter "${ delim }"`
3840
+ } || !(0, label_1.segment)((_b = (_a = opener.match(/^~+(?:figure[^\S\n]+)?(\[?\$\S+)/)) === null || _a === void 0 ? void 0 : _a[1]) !== null && _b !== void 0 ? _b : '', context) && {
3841
+ 'data-invalid-type': 'label',
3842
+ 'data-invalid-message': 'Invalid label'
3843
+ } || /^~+(?:figure[^\S\n]+)?(\[?\$\S+)[^\S\n]+\S/.test(opener) && {
3844
+ 'data-invalid-type': 'argument',
3845
+ 'data-invalid-message': 'Invalid argument'
3846
+ } || {
3847
+ 'data-invalid-type': 'content',
3848
+ 'data-invalid-message': 'Invalid content'
3849
+ }
3850
+ }, `${ opener }${ body }${ closer }`)];
3851
+ })));
3729
3852
  function attributes(label, param, content, caption) {
3730
3853
  const group = label.split('-', 1)[0];
3731
3854
  let type = content.className.split(/\s/)[0];
@@ -3752,12 +3875,12 @@ require = function () {
3752
3875
  break;
3753
3876
  default:
3754
3877
  }
3755
- const invalid = /^[^-]+-(?:[0-9]+\.)*0$/.test(label) && {
3756
- 'data-invalid-type': 'label',
3757
- 'data-invalid-message': 'The last part of the fixed label numbers must not be 0'
3758
- } || param.trimStart() !== '' && {
3878
+ const invalid = param.trimStart() !== '' && {
3759
3879
  'data-invalid-type': 'argument',
3760
3880
  'data-invalid-message': 'Invalid argument'
3881
+ } || /^[^-]+-(?:[0-9]+\.)*0$/.test(label) && {
3882
+ 'data-invalid-type': 'label',
3883
+ 'data-invalid-message': 'The last part of the fixed label numbers must not be 0'
3761
3884
  } || group === '$' && (type !== 'math' || caption.length > 0) && {
3762
3885
  'data-invalid-type': 'label',
3763
3886
  'data-invalid-message': '"$" label group must be used to math formulas with no caption'
@@ -3799,28 +3922,29 @@ require = function () {
3799
3922
  }
3800
3923
  },
3801
3924
  {
3802
- '../../../combinator': 24,
3803
- '../../inline': 85,
3804
- '../../inline/extension/label': 106,
3805
- '../../locale': 120,
3806
- '../../source': 125,
3807
- '../../util': 131,
3808
- '../blockquote': 61,
3809
- '../codeblock': 62,
3810
- '../mathblock': 76,
3811
- '../olist': 77,
3812
- '../table': 82,
3813
- '../ulist': 83,
3814
- './example': 66,
3815
- './placeholder': 71,
3816
- './table': 72,
3925
+ '../../../combinator': 25,
3926
+ '../../inline': 88,
3927
+ '../../inline/extension/label': 109,
3928
+ '../../locale': 123,
3929
+ '../../source': 128,
3930
+ '../../util': 134,
3931
+ '../blockquote': 62,
3932
+ '../codeblock': 63,
3933
+ '../indentblock': 77,
3934
+ '../mathblock': 78,
3935
+ '../olist': 79,
3936
+ '../table': 85,
3937
+ '../ulist': 86,
3938
+ './example': 67,
3939
+ './placeholder': 72,
3940
+ './table': 73,
3817
3941
  'spica/array': 6,
3818
3942
  'spica/global': 13,
3819
3943
  'spica/memoize': 16,
3820
3944
  'typed-dom/dom': 23
3821
3945
  }
3822
3946
  ],
3823
- 70: [
3947
+ 71: [
3824
3948
  function (_dereq_, module, exports) {
3825
3949
  'use strict';
3826
3950
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -3833,8 +3957,10 @@ require = function () {
3833
3957
  const olist_1 = _dereq_('../olist');
3834
3958
  const ilist_1 = _dereq_('../ilist');
3835
3959
  const table_1 = _dereq_('../table');
3960
+ const indentblock_1 = _dereq_('../indentblock');
3836
3961
  const codeblock_1 = _dereq_('../codeblock');
3837
3962
  const mathblock_1 = _dereq_('../mathblock');
3963
+ const sidefence_1 = _dereq_('../sidefence');
3838
3964
  const blockquote_1 = _dereq_('../blockquote');
3839
3965
  const paragraph_1 = _dereq_('../paragraph');
3840
3966
  const dom_1 = _dereq_('typed-dom/dom');
@@ -3861,7 +3987,10 @@ require = function () {
3861
3987
  'data-invalid-message': 'Invalid message type'
3862
3988
  }, `${ opener }${ body }${ closer }`)];
3863
3989
  }
3864
- return [(0, dom_1.html)('div', { class: `message type-${ type }` }, (0, array_1.unshift)([(0, dom_1.html)('h6', title(type))], [...(0, segment_1.segment)(body)].reduce((acc, seg) => (0, array_1.push)(acc, (0, parser_1.eval)(content(seg, context), [])), [])))];
3990
+ return [(0, dom_1.html)('div', {
3991
+ class: `message`,
3992
+ 'data-type': type
3993
+ }, (0, array_1.unshift)([(0, dom_1.html)('h6', title(type))], [...(0, segment_1.segment)(body)].reduce((acc, seg) => (0, array_1.push)(acc, (0, parser_1.eval)(content(seg, context), [])), [])))];
3865
3994
  })));
3866
3995
  function title(type) {
3867
3996
  switch (type) {
@@ -3879,30 +4008,34 @@ require = function () {
3879
4008
  olist_1.olist,
3880
4009
  ilist_1.ilist,
3881
4010
  table_1.table,
4011
+ indentblock_1.indentblock,
3882
4012
  codeblock_1.codeblock,
3883
4013
  mathblock_1.mathblock,
4014
+ sidefence_1.sidefence,
3884
4015
  blockquote_1.blockquote,
3885
4016
  paragraph_1.paragraph
3886
4017
  ]);
3887
4018
  },
3888
4019
  {
3889
- '../../../combinator': 24,
3890
- '../../../combinator/data/parser': 44,
3891
- '../../segment': 124,
3892
- '../../source': 125,
3893
- '../blockquote': 61,
3894
- '../codeblock': 62,
3895
- '../ilist': 75,
3896
- '../mathblock': 76,
3897
- '../olist': 77,
3898
- '../paragraph': 78,
3899
- '../table': 82,
3900
- '../ulist': 83,
4020
+ '../../../combinator': 25,
4021
+ '../../../combinator/data/parser': 45,
4022
+ '../../segment': 127,
4023
+ '../../source': 128,
4024
+ '../blockquote': 62,
4025
+ '../codeblock': 63,
4026
+ '../ilist': 76,
4027
+ '../indentblock': 77,
4028
+ '../mathblock': 78,
4029
+ '../olist': 79,
4030
+ '../paragraph': 80,
4031
+ '../sidefence': 84,
4032
+ '../table': 85,
4033
+ '../ulist': 86,
3901
4034
  'spica/array': 6,
3902
4035
  'typed-dom/dom': 23
3903
4036
  }
3904
4037
  ],
3905
- 71: [
4038
+ 72: [
3906
4039
  function (_dereq_, module, exports) {
3907
4040
  'use strict';
3908
4041
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -3917,15 +4050,15 @@ require = function () {
3917
4050
  translate: 'no',
3918
4051
  'data-invalid-syntax': 'extension',
3919
4052
  'data-invalid-type': !closer ? 'fence' : 'syntax',
3920
- 'data-invalid-message': !closer ? `Missing the closing delimiter "${ delim }"` : 'Invalid syntax'
4053
+ 'data-invalid-message': !closer ? `Missing the closing delimiter "${ delim }"` : 'Invalid extension name'
3921
4054
  }, `${ opener }${ body }${ closer }`)])));
3922
4055
  },
3923
4056
  {
3924
- '../../../combinator': 24,
4057
+ '../../../combinator': 25,
3925
4058
  'typed-dom/dom': 23
3926
4059
  }
3927
4060
  ],
3928
- 72: [
4061
+ 73: [
3929
4062
  function (_dereq_, module, exports) {
3930
4063
  'use strict';
3931
4064
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -4181,19 +4314,19 @@ require = function () {
4181
4314
  }
4182
4315
  },
4183
4316
  {
4184
- '../../../combinator': 24,
4185
- '../../../combinator/data/parser': 44,
4186
- '../../inline': 85,
4187
- '../../locale': 120,
4188
- '../../source': 125,
4189
- '../../util': 131,
4317
+ '../../../combinator': 25,
4318
+ '../../../combinator/data/parser': 45,
4319
+ '../../inline': 88,
4320
+ '../../locale': 123,
4321
+ '../../source': 128,
4322
+ '../../util': 134,
4190
4323
  'spica/alias': 5,
4191
4324
  'spica/array': 6,
4192
4325
  'spica/global': 13,
4193
4326
  'typed-dom/dom': 23
4194
4327
  }
4195
4328
  ],
4196
- 73: [
4329
+ 74: [
4197
4330
  function (_dereq_, module, exports) {
4198
4331
  'use strict';
4199
4332
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -4235,14 +4368,14 @@ require = function () {
4235
4368
  }, (0, dom_1.defrag)(ns))]))))));
4236
4369
  },
4237
4370
  {
4238
- '../../combinator': 24,
4239
- '../inline': 85,
4240
- '../source': 125,
4241
- '../util': 131,
4371
+ '../../combinator': 25,
4372
+ '../inline': 88,
4373
+ '../source': 128,
4374
+ '../util': 134,
4242
4375
  'typed-dom/dom': 23
4243
4376
  }
4244
4377
  ],
4245
- 74: [
4378
+ 75: [
4246
4379
  function (_dereq_, module, exports) {
4247
4380
  'use strict';
4248
4381
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -4255,11 +4388,11 @@ require = function () {
4255
4388
  ])));
4256
4389
  },
4257
4390
  {
4258
- '../../combinator': 24,
4391
+ '../../combinator': 25,
4259
4392
  'typed-dom/dom': 23
4260
4393
  }
4261
4394
  ],
4262
- 75: [
4395
+ 76: [
4263
4396
  function (_dereq_, module, exports) {
4264
4397
  'use strict';
4265
4398
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -4289,15 +4422,33 @@ require = function () {
4289
4422
  }, es)])));
4290
4423
  },
4291
4424
  {
4292
- '../../combinator': 24,
4293
- '../inline': 85,
4294
- '../source': 125,
4295
- './olist': 77,
4296
- './ulist': 83,
4425
+ '../../combinator': 25,
4426
+ '../inline': 88,
4427
+ '../source': 128,
4428
+ './olist': 79,
4429
+ './ulist': 86,
4297
4430
  'typed-dom/dom': 23
4298
4431
  }
4299
4432
  ],
4300
- 76: [
4433
+ 77: [
4434
+ function (_dereq_, module, exports) {
4435
+ 'use strict';
4436
+ Object.defineProperty(exports, '__esModule', { value: true });
4437
+ exports.indentblock = void 0;
4438
+ const combinator_1 = _dereq_('../../combinator');
4439
+ const codeblock_1 = _dereq_('./codeblock');
4440
+ exports.indentblock = (0, combinator_1.block)((0, combinator_1.validate)(/^(?: |\t)/, (0, combinator_1.indent)((0, combinator_1.convert)(source => {
4441
+ var _a;
4442
+ const fence = ((_a = source.match(/^`{3,}(?=[^\S\n]*$)/mg)) !== null && _a !== void 0 ? _a : []).reduce((max, fence) => fence > max ? fence : max, '``') + '`';
4443
+ return `${ fence }\n${ source }\n${ fence }`;
4444
+ }, (0, combinator_1.union)([codeblock_1.codeblock])), true)));
4445
+ },
4446
+ {
4447
+ '../../combinator': 25,
4448
+ './codeblock': 63
4449
+ }
4450
+ ],
4451
+ 78: [
4301
4452
  function (_dereq_, module, exports) {
4302
4453
  'use strict';
4303
4454
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -4327,12 +4478,12 @@ require = function () {
4327
4478
  })));
4328
4479
  },
4329
4480
  {
4330
- '../../combinator': 24,
4481
+ '../../combinator': 25,
4331
4482
  'spica/global': 13,
4332
4483
  'typed-dom/dom': 23
4333
4484
  }
4334
4485
  ],
4335
- 77: [
4486
+ 79: [
4336
4487
  function (_dereq_, module, exports) {
4337
4488
  'use strict';
4338
4489
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -4461,18 +4612,18 @@ require = function () {
4461
4612
  }
4462
4613
  },
4463
4614
  {
4464
- '../../combinator': 24,
4465
- '../inline': 85,
4466
- '../source': 125,
4467
- './ilist': 75,
4468
- './ulist': 83,
4615
+ '../../combinator': 25,
4616
+ '../inline': 88,
4617
+ '../source': 128,
4618
+ './ilist': 76,
4619
+ './ulist': 86,
4469
4620
  'spica/array': 6,
4470
4621
  'spica/global': 13,
4471
4622
  'spica/memoize': 16,
4472
4623
  'typed-dom/dom': 23
4473
4624
  }
4474
4625
  ],
4475
- 78: [
4626
+ 80: [
4476
4627
  function (_dereq_, module, exports) {
4477
4628
  'use strict';
4478
4629
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -4485,14 +4636,14 @@ require = function () {
4485
4636
  exports.paragraph = (0, combinator_1.block)((0, locale_1.localize)((0, combinator_1.fmap)((0, combinator_1.trim)((0, util_1.visualize)((0, combinator_1.some)((0, combinator_1.union)([inline_1.inline])))), ns => [(0, dom_1.html)('p', (0, dom_1.defrag)(ns))])));
4486
4637
  },
4487
4638
  {
4488
- '../../combinator': 24,
4489
- '../inline': 85,
4490
- '../locale': 120,
4491
- '../util': 131,
4639
+ '../../combinator': 25,
4640
+ '../inline': 88,
4641
+ '../locale': 123,
4642
+ '../util': 134,
4492
4643
  'typed-dom/dom': 23
4493
4644
  }
4494
4645
  ],
4495
- 79: [
4646
+ 81: [
4496
4647
  function (_dereq_, module, exports) {
4497
4648
  'use strict';
4498
4649
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -4518,18 +4669,18 @@ require = function () {
4518
4669
  ]), ns => [(0, dom_1.html)('p', (0, dom_1.defrag)((0, array_1.pop)(ns)[0]))]))));
4519
4670
  },
4520
4671
  {
4521
- '../../combinator': 24,
4522
- '../inline': 85,
4523
- '../locale': 120,
4524
- '../source': 125,
4525
- '../util': 131,
4526
- './reply/cite': 80,
4527
- './reply/quote': 81,
4672
+ '../../combinator': 25,
4673
+ '../inline': 88,
4674
+ '../locale': 123,
4675
+ '../source': 128,
4676
+ '../util': 134,
4677
+ './reply/cite': 82,
4678
+ './reply/quote': 83,
4528
4679
  'spica/array': 6,
4529
4680
  'typed-dom/dom': 23
4530
4681
  }
4531
4682
  ],
4532
- 80: [
4683
+ 82: [
4533
4684
  function (_dereq_, module, exports) {
4534
4685
  'use strict';
4535
4686
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -4560,13 +4711,13 @@ require = function () {
4560
4711
  ])));
4561
4712
  },
4562
4713
  {
4563
- '../../../combinator': 24,
4564
- '../../inline/autolink/anchor': 89,
4565
- '../../source': 125,
4714
+ '../../../combinator': 25,
4715
+ '../../inline/autolink/anchor': 92,
4716
+ '../../source': 128,
4566
4717
  'typed-dom/dom': 23
4567
4718
  }
4568
4719
  ],
4569
- 81: [
4720
+ 83: [
4570
4721
  function (_dereq_, module, exports) {
4571
4722
  'use strict';
4572
4723
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -4629,15 +4780,44 @@ require = function () {
4629
4780
  ]);
4630
4781
  },
4631
4782
  {
4632
- '../../../combinator': 24,
4633
- '../../../combinator/data/parser': 44,
4634
- '../../autolink': 59,
4635
- '../../inline/math': 113,
4636
- '../../source': 125,
4783
+ '../../../combinator': 25,
4784
+ '../../../combinator/data/parser': 45,
4785
+ '../../autolink': 60,
4786
+ '../../inline/math': 116,
4787
+ '../../source': 128,
4637
4788
  'typed-dom/dom': 23
4638
4789
  }
4639
4790
  ],
4640
- 82: [
4791
+ 84: [
4792
+ function (_dereq_, module, exports) {
4793
+ 'use strict';
4794
+ Object.defineProperty(exports, '__esModule', { value: true });
4795
+ exports.sidefence = void 0;
4796
+ const combinator_1 = _dereq_('../../combinator');
4797
+ const autolink_1 = _dereq_('../autolink');
4798
+ const source_1 = _dereq_('../source');
4799
+ const dom_1 = _dereq_('typed-dom/dom');
4800
+ exports.sidefence = (0, combinator_1.lazy)(() => (0, combinator_1.block)((0, combinator_1.fmap)((0, combinator_1.focus)(/^(?=\|+(?:[^\S\n]|\n\|))(?:\|+(?:[^\S\n][^\n]*)?(?:$|\n))+$/, (0, combinator_1.union)([source])), ([el]) => [(0, dom_1.define)(el, {
4801
+ class: 'invalid',
4802
+ 'data-invalid-syntax': 'sidefence',
4803
+ 'data-invalid-type': 'syntax',
4804
+ 'data-invalid-message': 'Reserved syntax'
4805
+ })])));
4806
+ const opener = /^(?=\|\|+(?:$|\s))/;
4807
+ const unindent = source => source.replace(/(^|\n)\|(?:[^\S\n]|(?=\|*(?:$|\s)))|\n$/g, '$1');
4808
+ const source = (0, combinator_1.lazy)(() => (0, combinator_1.fmap)((0, combinator_1.some)((0, combinator_1.creator)((0, combinator_1.union)([
4809
+ (0, combinator_1.focus)(/^(?:\|\|+(?:[^\S\n][^\n]*)?(?:$|\n))+/, (0, combinator_1.convert)(unindent, source)),
4810
+ (0, combinator_1.rewrite)((0, combinator_1.some)(source_1.contentline, opener), (0, combinator_1.convert)(unindent, (0, combinator_1.fmap)((0, combinator_1.some)(autolink_1.autolink), ns => [(0, dom_1.html)('pre', (0, dom_1.defrag)(ns))])))
4811
+ ]))), ns => [(0, dom_1.html)('blockquote', ns)]));
4812
+ },
4813
+ {
4814
+ '../../combinator': 25,
4815
+ '../autolink': 60,
4816
+ '../source': 128,
4817
+ 'typed-dom/dom': 23
4818
+ }
4819
+ ],
4820
+ 85: [
4641
4821
  function (_dereq_, module, exports) {
4642
4822
  'use strict';
4643
4823
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -4658,9 +4838,9 @@ require = function () {
4658
4838
  const row = (parser, optional) => (0, combinator_1.creator)((0, combinator_1.fallback)((0, combinator_1.fmap)((0, combinator_1.line)((0, combinator_1.surround)(/^(?=\|)/, (0, combinator_1.some)((0, combinator_1.union)([parser])), /^\|?\s*$/, optional)), es => [(0, dom_1.html)('tr', es)]), (0, combinator_1.rewrite)(source_1.contentline, source => [
4659
4839
  [(0, dom_1.html)('tr', {
4660
4840
  class: 'invalid',
4661
- 'data-invalid-syntax': 'tablerow',
4841
+ 'data-invalid-syntax': 'table-row',
4662
4842
  'data-invalid-type': 'syntax',
4663
- 'data-invalid-message': 'Invalid table row'
4843
+ 'data-invalid-message': 'Missing the start symbol of the table row'
4664
4844
  }, [(0, dom_1.html)('td', source.replace('\n', ''))])],
4665
4845
  ''
4666
4846
  ])));
@@ -4702,14 +4882,14 @@ require = function () {
4702
4882
  }
4703
4883
  },
4704
4884
  {
4705
- '../../combinator': 24,
4706
- '../inline': 85,
4707
- '../source': 125,
4885
+ '../../combinator': 25,
4886
+ '../inline': 88,
4887
+ '../source': 128,
4708
4888
  'spica/array': 6,
4709
4889
  'typed-dom/dom': 23
4710
4890
  }
4711
4891
  ],
4712
- 83: [
4892
+ 86: [
4713
4893
  function (_dereq_, module, exports) {
4714
4894
  'use strict';
4715
4895
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -4765,16 +4945,16 @@ require = function () {
4765
4945
  }
4766
4946
  },
4767
4947
  {
4768
- '../../combinator': 24,
4769
- '../inline': 85,
4770
- '../source': 125,
4771
- './ilist': 75,
4772
- './olist': 77,
4948
+ '../../combinator': 25,
4949
+ '../inline': 88,
4950
+ '../source': 128,
4951
+ './ilist': 76,
4952
+ './olist': 79,
4773
4953
  'spica/array': 6,
4774
4954
  'typed-dom/dom': 23
4775
4955
  }
4776
4956
  ],
4777
- 84: [
4957
+ 87: [
4778
4958
  function (_dereq_, module, exports) {
4779
4959
  'use strict';
4780
4960
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -4831,14 +5011,14 @@ require = function () {
4831
5011
  });
4832
5012
  },
4833
5013
  {
4834
- '../combinator': 24,
4835
- './api/normalize': 57,
4836
- './segment': 124,
4837
- './source': 125,
5014
+ '../combinator': 25,
5015
+ './api/normalize': 58,
5016
+ './segment': 127,
5017
+ './source': 128,
4838
5018
  'typed-dom/dom': 23
4839
5019
  }
4840
5020
  ],
4841
- 85: [
5021
+ 88: [
4842
5022
  function (_dereq_, module, exports) {
4843
5023
  'use strict';
4844
5024
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -4922,35 +5102,35 @@ require = function () {
4922
5102
  });
4923
5103
  },
4924
5104
  {
4925
- '../combinator': 24,
4926
- './inline/annotation': 86,
4927
- './inline/autolink': 87,
4928
- './inline/bracket': 95,
4929
- './inline/code': 96,
4930
- './inline/comment': 97,
4931
- './inline/deletion': 98,
4932
- './inline/emphasis': 99,
4933
- './inline/emstrong': 100,
4934
- './inline/escape': 101,
4935
- './inline/extension': 102,
4936
- './inline/extension/indexee': 104,
4937
- './inline/extension/indexer': 105,
4938
- './inline/html': 108,
4939
- './inline/htmlentity': 109,
4940
- './inline/insertion': 110,
4941
- './inline/link': 111,
4942
- './inline/mark': 112,
4943
- './inline/math': 113,
4944
- './inline/media': 114,
4945
- './inline/reference': 115,
4946
- './inline/ruby': 116,
4947
- './inline/shortmedia': 117,
4948
- './inline/strong': 118,
4949
- './inline/template': 119,
4950
- './source': 125
5105
+ '../combinator': 25,
5106
+ './inline/annotation': 89,
5107
+ './inline/autolink': 90,
5108
+ './inline/bracket': 98,
5109
+ './inline/code': 99,
5110
+ './inline/comment': 100,
5111
+ './inline/deletion': 101,
5112
+ './inline/emphasis': 102,
5113
+ './inline/emstrong': 103,
5114
+ './inline/escape': 104,
5115
+ './inline/extension': 105,
5116
+ './inline/extension/indexee': 107,
5117
+ './inline/extension/indexer': 108,
5118
+ './inline/html': 111,
5119
+ './inline/htmlentity': 112,
5120
+ './inline/insertion': 113,
5121
+ './inline/link': 114,
5122
+ './inline/mark': 115,
5123
+ './inline/math': 116,
5124
+ './inline/media': 117,
5125
+ './inline/reference': 118,
5126
+ './inline/ruby': 119,
5127
+ './inline/shortmedia': 120,
5128
+ './inline/strong': 121,
5129
+ './inline/template': 122,
5130
+ './source': 128
4951
5131
  }
4952
5132
  ],
4953
- 86: [
5133
+ 89: [
4954
5134
  function (_dereq_, module, exports) {
4955
5135
  'use strict';
4956
5136
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -4975,14 +5155,14 @@ require = function () {
4975
5155
  }, (0, util_1.trimSpaceStart)((0, combinator_1.union)([(0, combinator_1.some)(inline_1.inline, ')', /^\\?\n/)]))))), '))'), ns => [(0, dom_1.html)('sup', { class: 'annotation' }, (0, util_1.trimNodeEnd)((0, dom_1.defrag)(ns)))]))));
4976
5156
  },
4977
5157
  {
4978
- '../../combinator': 24,
4979
- '../inline': 85,
4980
- '../util': 131,
5158
+ '../../combinator': 25,
5159
+ '../inline': 88,
5160
+ '../util': 134,
4981
5161
  'spica/global': 13,
4982
5162
  'typed-dom/dom': 23
4983
5163
  }
4984
5164
  ],
4985
- 87: [
5165
+ 90: [
4986
5166
  function (_dereq_, module, exports) {
4987
5167
  'use strict';
4988
5168
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -5015,19 +5195,19 @@ require = function () {
5015
5195
  ])))), ns => ns.length === 1 ? ns : [(0, util_1.stringify)(ns)]);
5016
5196
  },
5017
5197
  {
5018
- '../../combinator': 24,
5019
- '../source': 125,
5020
- '../util': 131,
5021
- './autolink/account': 88,
5022
- './autolink/anchor': 89,
5023
- './autolink/channel': 90,
5024
- './autolink/email': 91,
5025
- './autolink/hashnum': 92,
5026
- './autolink/hashtag': 93,
5027
- './autolink/url': 94
5198
+ '../../combinator': 25,
5199
+ '../source': 128,
5200
+ '../util': 134,
5201
+ './autolink/account': 91,
5202
+ './autolink/anchor': 92,
5203
+ './autolink/channel': 93,
5204
+ './autolink/email': 94,
5205
+ './autolink/hashnum': 95,
5206
+ './autolink/hashtag': 96,
5207
+ './autolink/url': 97
5028
5208
  }
5029
5209
  ],
5030
- 88: [
5210
+ 91: [
5031
5211
  function (_dereq_, module, exports) {
5032
5212
  'use strict';
5033
5213
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -5049,13 +5229,13 @@ require = function () {
5049
5229
  }, (0, combinator_1.convert)(source => `[${ source }]{ ${ source.includes('/') ? `https://${ source.slice(1).replace('/', '/@') }` : `/${ source }` } }`, (0, combinator_1.union)([link_1.link])))), ([el]) => [(0, dom_1.define)(el, { class: 'account' })]));
5050
5230
  },
5051
5231
  {
5052
- '../../../combinator': 24,
5053
- '../../source': 125,
5054
- '../link': 111,
5232
+ '../../../combinator': 25,
5233
+ '../../source': 128,
5234
+ '../link': 114,
5055
5235
  'typed-dom/dom': 23
5056
5236
  }
5057
5237
  ],
5058
- 89: [
5238
+ 92: [
5059
5239
  function (_dereq_, module, exports) {
5060
5240
  'use strict';
5061
5241
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -5073,12 +5253,12 @@ require = function () {
5073
5253
  }, (0, combinator_1.convert)(source => `[${ source }]{ ${ source.includes('/') ? `/@${ source.slice(2).replace('/', '/timeline/') }` : `?at=${ source.slice(2) }` } }`, (0, combinator_1.union)([link_1.link])))), ([el]) => [(0, dom_1.define)(el, { class: 'anchor' })])));
5074
5254
  },
5075
5255
  {
5076
- '../../../combinator': 24,
5077
- '../link': 111,
5256
+ '../../../combinator': 25,
5257
+ '../link': 114,
5078
5258
  'typed-dom/dom': 23
5079
5259
  }
5080
5260
  ],
5081
- 90: [
5261
+ 93: [
5082
5262
  function (_dereq_, module, exports) {
5083
5263
  'use strict';
5084
5264
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -5107,14 +5287,14 @@ require = function () {
5107
5287
  }));
5108
5288
  },
5109
5289
  {
5110
- '../../../combinator': 24,
5111
- '../../util': 131,
5112
- './account': 88,
5113
- './hashtag': 93,
5290
+ '../../../combinator': 25,
5291
+ '../../util': 134,
5292
+ './account': 91,
5293
+ './hashtag': 96,
5114
5294
  'typed-dom/dom': 23
5115
5295
  }
5116
5296
  ],
5117
- 91: [
5297
+ 94: [
5118
5298
  function (_dereq_, module, exports) {
5119
5299
  'use strict';
5120
5300
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -5131,12 +5311,12 @@ require = function () {
5131
5311
  ]));
5132
5312
  },
5133
5313
  {
5134
- '../../../combinator': 24,
5135
- '../../source': 125,
5314
+ '../../../combinator': 25,
5315
+ '../../source': 128,
5136
5316
  'typed-dom/dom': 23
5137
5317
  }
5138
5318
  ],
5139
- 92: [
5319
+ 95: [
5140
5320
  function (_dereq_, module, exports) {
5141
5321
  'use strict';
5142
5322
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -5159,14 +5339,14 @@ require = function () {
5159
5339
  })]));
5160
5340
  },
5161
5341
  {
5162
- '../../../combinator': 24,
5163
- '../../source': 125,
5164
- '../link': 111,
5165
- './hashtag': 93,
5342
+ '../../../combinator': 25,
5343
+ '../../source': 128,
5344
+ '../link': 114,
5345
+ './hashtag': 96,
5166
5346
  'typed-dom/dom': 23
5167
5347
  }
5168
5348
  ],
5169
- 93: [
5349
+ 96: [
5170
5350
  function (_dereq_, module, exports) {
5171
5351
  'use strict';
5172
5352
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -5194,13 +5374,13 @@ require = function () {
5194
5374
  }, (0, combinator_1.convert)(source => `[${ source }]{ ${ source.includes('/') ? `https://${ source.slice(1).replace('/', '/hashtags/') }` : `/hashtags/${ source.slice(1) }` } }`, (0, combinator_1.union)([link_1.link])))), ([el]) => [(0, dom_1.define)(el, { class: 'hashtag' }, el.innerText)]));
5195
5375
  },
5196
5376
  {
5197
- '../../../combinator': 24,
5198
- '../../source': 125,
5199
- '../link': 111,
5377
+ '../../../combinator': 25,
5378
+ '../../source': 128,
5379
+ '../link': 114,
5200
5380
  'typed-dom/dom': 23
5201
5381
  }
5202
5382
  ],
5203
- 94: [
5383
+ 97: [
5204
5384
  function (_dereq_, module, exports) {
5205
5385
  'use strict';
5206
5386
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -5233,12 +5413,12 @@ require = function () {
5233
5413
  ])));
5234
5414
  },
5235
5415
  {
5236
- '../../../combinator': 24,
5237
- '../../source': 125,
5238
- '../link': 111
5416
+ '../../../combinator': 25,
5417
+ '../../source': 128,
5418
+ '../link': 114
5239
5419
  }
5240
5420
  ],
5241
- 95: [
5421
+ 98: [
5242
5422
  function (_dereq_, module, exports) {
5243
5423
  'use strict';
5244
5424
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -5282,15 +5462,15 @@ require = function () {
5282
5462
  ])));
5283
5463
  },
5284
5464
  {
5285
- '../../combinator': 24,
5286
- '../inline': 85,
5287
- '../source': 125,
5465
+ '../../combinator': 25,
5466
+ '../inline': 88,
5467
+ '../source': 128,
5288
5468
  'spica/array': 6,
5289
5469
  'spica/global': 13,
5290
5470
  'typed-dom/dom': 23
5291
5471
  }
5292
5472
  ],
5293
- 96: [
5473
+ 99: [
5294
5474
  function (_dereq_, module, exports) {
5295
5475
  'use strict';
5296
5476
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -5306,11 +5486,11 @@ require = function () {
5306
5486
  }
5307
5487
  },
5308
5488
  {
5309
- '../../combinator': 24,
5489
+ '../../combinator': 25,
5310
5490
  'typed-dom/dom': 23
5311
5491
  }
5312
5492
  ],
5313
- 97: [
5493
+ 100: [
5314
5494
  function (_dereq_, module, exports) {
5315
5495
  'use strict';
5316
5496
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -5333,15 +5513,15 @@ require = function () {
5333
5513
  ]), ([, fence]) => fence.length, [])))));
5334
5514
  },
5335
5515
  {
5336
- '../../combinator': 24,
5337
- '../inline': 85,
5338
- '../source': 125,
5516
+ '../../combinator': 25,
5517
+ '../inline': 88,
5518
+ '../source': 128,
5339
5519
  'spica/array': 6,
5340
5520
  'spica/memoize': 16,
5341
5521
  'typed-dom/dom': 23
5342
5522
  }
5343
5523
  ],
5344
- 98: [
5524
+ 101: [
5345
5525
  function (_dereq_, module, exports) {
5346
5526
  'use strict';
5347
5527
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -5364,15 +5544,15 @@ require = function () {
5364
5544
  ])));
5365
5545
  },
5366
5546
  {
5367
- '../../combinator': 24,
5368
- '../inline': 85,
5369
- '../source': 125,
5370
- '../util': 131,
5547
+ '../../combinator': 25,
5548
+ '../inline': 88,
5549
+ '../source': 128,
5550
+ '../util': 134,
5371
5551
  'spica/array': 6,
5372
5552
  'typed-dom/dom': 23
5373
5553
  }
5374
5554
  ],
5375
- 99: [
5555
+ 102: [
5376
5556
  function (_dereq_, module, exports) {
5377
5557
  'use strict';
5378
5558
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -5397,16 +5577,16 @@ require = function () {
5397
5577
  ])));
5398
5578
  },
5399
5579
  {
5400
- '../../combinator': 24,
5401
- '../inline': 85,
5402
- '../source': 125,
5403
- '../util': 131,
5404
- './strong': 118,
5580
+ '../../combinator': 25,
5581
+ '../inline': 88,
5582
+ '../source': 128,
5583
+ '../util': 134,
5584
+ './strong': 121,
5405
5585
  'spica/array': 6,
5406
5586
  'typed-dom/dom': 23
5407
5587
  }
5408
5588
  ],
5409
- 100: [
5589
+ 103: [
5410
5590
  function (_dereq_, module, exports) {
5411
5591
  'use strict';
5412
5592
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -5479,16 +5659,16 @@ require = function () {
5479
5659
  ])));
5480
5660
  },
5481
5661
  {
5482
- '../../combinator': 24,
5483
- '../inline': 85,
5484
- '../source': 125,
5485
- '../util': 131,
5486
- './strong': 118,
5662
+ '../../combinator': 25,
5663
+ '../inline': 88,
5664
+ '../source': 128,
5665
+ '../util': 134,
5666
+ './strong': 121,
5487
5667
  'spica/array': 6,
5488
5668
  'typed-dom/dom': 23
5489
5669
  }
5490
5670
  ],
5491
- 101: [
5671
+ 104: [
5492
5672
  function (_dereq_, module, exports) {
5493
5673
  'use strict';
5494
5674
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -5515,12 +5695,12 @@ require = function () {
5515
5695
  }]);
5516
5696
  },
5517
5697
  {
5518
- '../../combinator': 24,
5519
- '../source': 125,
5698
+ '../../combinator': 25,
5699
+ '../source': 128,
5520
5700
  'spica/global': 13
5521
5701
  }
5522
5702
  ],
5523
- 102: [
5703
+ 105: [
5524
5704
  function (_dereq_, module, exports) {
5525
5705
  'use strict';
5526
5706
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -5539,13 +5719,13 @@ require = function () {
5539
5719
  ]));
5540
5720
  },
5541
5721
  {
5542
- '../../combinator': 24,
5543
- './extension/index': 103,
5544
- './extension/label': 106,
5545
- './extension/placeholder': 107
5722
+ '../../combinator': 25,
5723
+ './extension/index': 106,
5724
+ './extension/label': 109,
5725
+ './extension/placeholder': 110
5546
5726
  }
5547
5727
  ],
5548
- 103: [
5728
+ 106: [
5549
5729
  function (_dereq_, module, exports) {
5550
5730
  'use strict';
5551
5731
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -5605,17 +5785,17 @@ require = function () {
5605
5785
  ])));
5606
5786
  },
5607
5787
  {
5608
- '../../../combinator': 24,
5609
- '../../inline': 85,
5610
- '../../source': 125,
5611
- '../../util': 131,
5612
- './indexee': 104,
5788
+ '../../../combinator': 25,
5789
+ '../../inline': 88,
5790
+ '../../source': 128,
5791
+ '../../util': 134,
5792
+ './indexee': 107,
5613
5793
  'spica/array': 6,
5614
5794
  'spica/global': 13,
5615
5795
  'typed-dom/dom': 23
5616
5796
  }
5617
5797
  ],
5618
- 104: [
5798
+ 107: [
5619
5799
  function (_dereq_, module, exports) {
5620
5800
  'use strict';
5621
5801
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -5672,12 +5852,12 @@ require = function () {
5672
5852
  exports.text = text;
5673
5853
  },
5674
5854
  {
5675
- '../../../combinator': 24,
5855
+ '../../../combinator': 25,
5676
5856
  'spica/global': 13,
5677
5857
  'typed-dom/dom': 23
5678
5858
  }
5679
5859
  ],
5680
- 105: [
5860
+ 108: [
5681
5861
  function (_dereq_, module, exports) {
5682
5862
  'use strict';
5683
5863
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -5697,12 +5877,12 @@ require = function () {
5697
5877
  })]));
5698
5878
  },
5699
5879
  {
5700
- '../../../combinator': 24,
5701
- './index': 103,
5880
+ '../../../combinator': 25,
5881
+ './index': 106,
5702
5882
  'typed-dom/dom': 23
5703
5883
  }
5704
5884
  ],
5705
- 106: [
5885
+ 109: [
5706
5886
  function (_dereq_, module, exports) {
5707
5887
  'use strict';
5708
5888
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -5753,14 +5933,14 @@ require = function () {
5753
5933
  }
5754
5934
  },
5755
5935
  {
5756
- '../../../combinator': 24,
5757
- '../../source': 125,
5936
+ '../../../combinator': 25,
5937
+ '../../source': 128,
5758
5938
  'spica/array': 6,
5759
5939
  'spica/global': 13,
5760
5940
  'typed-dom/dom': 23
5761
5941
  }
5762
5942
  ],
5763
- 107: [
5943
+ 110: [
5764
5944
  function (_dereq_, module, exports) {
5765
5945
  'use strict';
5766
5946
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -5774,12 +5954,12 @@ require = function () {
5774
5954
  exports.placeholder = (0, combinator_1.lazy)(() => (0, combinator_1.creator)((0, combinator_1.validate)([
5775
5955
  '[:',
5776
5956
  '[^'
5777
- ], ']', '\n', (0, combinator_1.surround)((0, source_1.str)(/^\[[:^]/), (0, util_1.startTight)((0, combinator_1.some)((0, combinator_1.union)([inline_1.inline]), ']')), (0, source_1.str)(']'), false, ([, bs], rest) => [
5957
+ ], ']', '\n', (0, combinator_1.surround)((0, source_1.str)(/^\[[:^]/), (0, util_1.startTight)((0, combinator_1.some)((0, combinator_1.union)([inline_1.inline]), ']')), (0, source_1.str)(']'), false, ([as, bs], rest) => [
5778
5958
  [(0, dom_1.html)('span', {
5779
5959
  class: 'invalid',
5780
5960
  'data-invalid-syntax': 'extension',
5781
5961
  'data-invalid-type': 'syntax',
5782
- 'data-invalid-message': 'Invalid symbol'
5962
+ 'data-invalid-message': `Reserved start symbol "${ as[0][1] }" cannot be used in "[]"`
5783
5963
  }, (0, dom_1.defrag)(bs))],
5784
5964
  rest
5785
5965
  ], ([as, bs], rest) => [
@@ -5788,15 +5968,15 @@ require = function () {
5788
5968
  ]))));
5789
5969
  },
5790
5970
  {
5791
- '../../../combinator': 24,
5792
- '../../inline': 85,
5793
- '../../source': 125,
5794
- '../../util': 131,
5971
+ '../../../combinator': 25,
5972
+ '../../inline': 88,
5973
+ '../../source': 128,
5974
+ '../../util': 134,
5795
5975
  'spica/array': 6,
5796
5976
  'typed-dom/dom': 23
5797
5977
  }
5798
5978
  ],
5799
- 108: [
5979
+ 111: [
5800
5980
  function (_dereq_, module, exports) {
5801
5981
  'use strict';
5802
5982
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -5948,10 +6128,10 @@ require = function () {
5948
6128
  exports.attributes = attributes;
5949
6129
  },
5950
6130
  {
5951
- '../../combinator': 24,
5952
- '../inline': 85,
5953
- '../source': 125,
5954
- '../util': 131,
6131
+ '../../combinator': 25,
6132
+ '../inline': 88,
6133
+ '../source': 128,
6134
+ '../util': 134,
5955
6135
  'spica/alias': 5,
5956
6136
  'spica/array': 6,
5957
6137
  'spica/cache': 8,
@@ -5960,7 +6140,7 @@ require = function () {
5960
6140
  'typed-dom/dom': 23
5961
6141
  }
5962
6142
  ],
5963
- 109: [
6143
+ 112: [
5964
6144
  function (_dereq_, module, exports) {
5965
6145
  'use strict';
5966
6146
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -5991,13 +6171,13 @@ require = function () {
5991
6171
  })((0, dom_1.html)('b')));
5992
6172
  },
5993
6173
  {
5994
- '../../combinator': 24,
6174
+ '../../combinator': 25,
5995
6175
  'spica/global': 13,
5996
6176
  'spica/memoize': 16,
5997
6177
  'typed-dom/dom': 23
5998
6178
  }
5999
6179
  ],
6000
- 110: [
6180
+ 113: [
6001
6181
  function (_dereq_, module, exports) {
6002
6182
  'use strict';
6003
6183
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -6020,15 +6200,15 @@ require = function () {
6020
6200
  ])));
6021
6201
  },
6022
6202
  {
6023
- '../../combinator': 24,
6024
- '../inline': 85,
6025
- '../source': 125,
6026
- '../util': 131,
6203
+ '../../combinator': 25,
6204
+ '../inline': 88,
6205
+ '../source': 128,
6206
+ '../util': 134,
6027
6207
  'spica/array': 6,
6028
6208
  'typed-dom/dom': 23
6029
6209
  }
6030
6210
  ],
6031
- 111: [
6211
+ 114: [
6032
6212
  function (_dereq_, module, exports) {
6033
6213
  'use strict';
6034
6214
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -6158,20 +6338,20 @@ require = function () {
6158
6338
  }
6159
6339
  },
6160
6340
  {
6161
- '../../combinator': 24,
6162
- '../../combinator/data/parser': 44,
6163
- '../autolink': 59,
6164
- '../inline': 85,
6165
- '../source': 125,
6166
- '../util': 131,
6167
- './html': 108,
6341
+ '../../combinator': 25,
6342
+ '../../combinator/data/parser': 45,
6343
+ '../autolink': 60,
6344
+ '../inline': 88,
6345
+ '../source': 128,
6346
+ '../util': 134,
6347
+ './html': 111,
6168
6348
  'spica/alias': 5,
6169
6349
  'spica/global': 13,
6170
6350
  'spica/url': 21,
6171
6351
  'typed-dom/dom': 23
6172
6352
  }
6173
6353
  ],
6174
- 112: [
6354
+ 115: [
6175
6355
  function (_dereq_, module, exports) {
6176
6356
  'use strict';
6177
6357
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -6194,15 +6374,15 @@ require = function () {
6194
6374
  ])));
6195
6375
  },
6196
6376
  {
6197
- '../../combinator': 24,
6198
- '../inline': 85,
6199
- '../source': 125,
6200
- '../util': 131,
6377
+ '../../combinator': 25,
6378
+ '../inline': 88,
6379
+ '../source': 128,
6380
+ '../util': 134,
6201
6381
  'spica/array': 6,
6202
6382
  'typed-dom/dom': 23
6203
6383
  }
6204
6384
  ],
6205
- 113: [
6385
+ 116: [
6206
6386
  function (_dereq_, module, exports) {
6207
6387
  'use strict';
6208
6388
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -6239,12 +6419,12 @@ require = function () {
6239
6419
  ])), '}', true)));
6240
6420
  },
6241
6421
  {
6242
- '../../combinator': 24,
6243
- '../source': 125,
6422
+ '../../combinator': 25,
6423
+ '../source': 128,
6244
6424
  'typed-dom/dom': 23
6245
6425
  }
6246
6426
  ],
6247
- 114: [
6427
+ 117: [
6248
6428
  function (_dereq_, module, exports) {
6249
6429
  'use strict';
6250
6430
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -6388,11 +6568,11 @@ require = function () {
6388
6568
  }
6389
6569
  },
6390
6570
  {
6391
- '../../combinator': 24,
6392
- '../source': 125,
6393
- './html': 108,
6394
- './htmlentity': 109,
6395
- './link': 111,
6571
+ '../../combinator': 25,
6572
+ '../source': 128,
6573
+ './html': 111,
6574
+ './htmlentity': 112,
6575
+ './link': 114,
6396
6576
  'spica/alias': 5,
6397
6577
  'spica/array': 6,
6398
6578
  'spica/global': 13,
@@ -6400,7 +6580,7 @@ require = function () {
6400
6580
  'typed-dom/dom': 23
6401
6581
  }
6402
6582
  ],
6403
- 115: [
6583
+ 118: [
6404
6584
  function (_dereq_, module, exports) {
6405
6585
  'use strict';
6406
6586
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -6449,15 +6629,15 @@ require = function () {
6449
6629
  }
6450
6630
  },
6451
6631
  {
6452
- '../../combinator': 24,
6453
- '../inline': 85,
6454
- '../source': 125,
6455
- '../util': 131,
6632
+ '../../combinator': 25,
6633
+ '../inline': 88,
6634
+ '../source': 128,
6635
+ '../util': 134,
6456
6636
  'spica/global': 13,
6457
6637
  'typed-dom/dom': 23
6458
6638
  }
6459
6639
  ],
6460
- 116: [
6640
+ 119: [
6461
6641
  function (_dereq_, module, exports) {
6462
6642
  'use strict';
6463
6643
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -6559,17 +6739,17 @@ require = function () {
6559
6739
  }
6560
6740
  },
6561
6741
  {
6562
- '../../combinator': 24,
6563
- '../../combinator/data/parser': 44,
6564
- '../source': 125,
6565
- '../util': 131,
6566
- './htmlentity': 109,
6742
+ '../../combinator': 25,
6743
+ '../../combinator/data/parser': 45,
6744
+ '../source': 128,
6745
+ '../util': 134,
6746
+ './htmlentity': 112,
6567
6747
  'spica/array': 6,
6568
6748
  'spica/global': 13,
6569
6749
  'typed-dom/dom': 23
6570
6750
  }
6571
6751
  ],
6572
- 117: [
6752
+ 120: [
6573
6753
  function (_dereq_, module, exports) {
6574
6754
  'use strict';
6575
6755
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -6583,12 +6763,12 @@ require = function () {
6583
6763
  }, (0, combinator_1.open)('!', url_1.url)), (0, combinator_1.convert)(source => `!{ ${ source.slice(1) } }`, (0, combinator_1.union)([media_1.media])));
6584
6764
  },
6585
6765
  {
6586
- '../../combinator': 24,
6587
- './autolink/url': 94,
6588
- './media': 114
6766
+ '../../combinator': 25,
6767
+ './autolink/url': 97,
6768
+ './media': 117
6589
6769
  }
6590
6770
  ],
6591
- 118: [
6771
+ 121: [
6592
6772
  function (_dereq_, module, exports) {
6593
6773
  'use strict';
6594
6774
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -6611,15 +6791,15 @@ require = function () {
6611
6791
  ])));
6612
6792
  },
6613
6793
  {
6614
- '../../combinator': 24,
6615
- '../inline': 85,
6616
- '../source': 125,
6617
- '../util': 131,
6794
+ '../../combinator': 25,
6795
+ '../inline': 88,
6796
+ '../source': 128,
6797
+ '../util': 134,
6618
6798
  'spica/array': 6,
6619
6799
  'typed-dom/dom': 23
6620
6800
  }
6621
6801
  ],
6622
- 119: [
6802
+ 122: [
6623
6803
  function (_dereq_, module, exports) {
6624
6804
  'use strict';
6625
6805
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -6662,14 +6842,14 @@ require = function () {
6662
6842
  ]));
6663
6843
  },
6664
6844
  {
6665
- '../../combinator': 24,
6666
- '../source': 125,
6845
+ '../../combinator': 25,
6846
+ '../source': 128,
6667
6847
  'spica/array': 6,
6668
6848
  'spica/global': 13,
6669
6849
  'typed-dom/dom': 23
6670
6850
  }
6671
6851
  ],
6672
- 120: [
6852
+ 123: [
6673
6853
  function (_dereq_, module, exports) {
6674
6854
  'use strict';
6675
6855
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -6734,12 +6914,12 @@ require = function () {
6734
6914
  }
6735
6915
  },
6736
6916
  {
6737
- '../combinator': 24,
6738
- './locale/ja': 121,
6917
+ '../combinator': 25,
6918
+ './locale/ja': 124,
6739
6919
  'typed-dom/dom': 23
6740
6920
  }
6741
6921
  ],
6742
- 121: [
6922
+ 124: [
6743
6923
  function (_dereq_, module, exports) {
6744
6924
  'use strict';
6745
6925
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -6759,7 +6939,7 @@ require = function () {
6759
6939
  },
6760
6940
  {}
6761
6941
  ],
6762
- 122: [
6942
+ 125: [
6763
6943
  function (_dereq_, module, exports) {
6764
6944
  'use strict';
6765
6945
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -6922,14 +7102,14 @@ require = function () {
6922
7102
  }
6923
7103
  },
6924
7104
  {
6925
- '../inline/extension/label': 106,
7105
+ '../inline/extension/label': 109,
6926
7106
  'spica/array': 6,
6927
7107
  'spica/global': 13,
6928
7108
  'spica/multimap': 17,
6929
7109
  'typed-dom/dom': 23
6930
7110
  }
6931
7111
  ],
6932
- 123: [
7112
+ 126: [
6933
7113
  function (_dereq_, module, exports) {
6934
7114
  'use strict';
6935
7115
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -7054,14 +7234,14 @@ require = function () {
7054
7234
  }
7055
7235
  },
7056
7236
  {
7057
- '../inline/extension/indexee': 104,
7237
+ '../inline/extension/indexee': 107,
7058
7238
  'spica/global': 13,
7059
7239
  'spica/memoize': 16,
7060
7240
  'spica/multimap': 17,
7061
7241
  'typed-dom/dom': 23
7062
7242
  }
7063
7243
  ],
7064
- 124: [
7244
+ 127: [
7065
7245
  function (_dereq_, module, exports) {
7066
7246
  'use strict';
7067
7247
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -7105,17 +7285,17 @@ require = function () {
7105
7285
  exports.validate = validate;
7106
7286
  },
7107
7287
  {
7108
- '../combinator': 24,
7109
- '../combinator/data/parser': 44,
7110
- './block/codeblock': 62,
7111
- './block/extension': 64,
7112
- './block/heading': 73,
7113
- './block/mathblock': 76,
7114
- './source': 125,
7288
+ '../combinator': 25,
7289
+ '../combinator/data/parser': 45,
7290
+ './block/codeblock': 63,
7291
+ './block/extension': 65,
7292
+ './block/heading': 74,
7293
+ './block/mathblock': 78,
7294
+ './source': 128,
7115
7295
  'spica/global': 13
7116
7296
  }
7117
7297
  ],
7118
- 125: [
7298
+ 128: [
7119
7299
  function (_dereq_, module, exports) {
7120
7300
  'use strict';
7121
7301
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -7187,14 +7367,14 @@ require = function () {
7187
7367
  });
7188
7368
  },
7189
7369
  {
7190
- './source/escapable': 126,
7191
- './source/line': 127,
7192
- './source/str': 128,
7193
- './source/text': 129,
7194
- './source/unescapable': 130
7370
+ './source/escapable': 129,
7371
+ './source/line': 130,
7372
+ './source/str': 131,
7373
+ './source/text': 132,
7374
+ './source/unescapable': 133
7195
7375
  }
7196
7376
  ],
7197
- 126: [
7377
+ 129: [
7198
7378
  function (_dereq_, module, exports) {
7199
7379
  'use strict';
7200
7380
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -7241,11 +7421,11 @@ require = function () {
7241
7421
  });
7242
7422
  },
7243
7423
  {
7244
- '../../combinator': 24,
7245
- './text': 129
7424
+ '../../combinator': 25,
7425
+ './text': 132
7246
7426
  }
7247
7427
  ],
7248
- 127: [
7428
+ 130: [
7249
7429
  function (_dereq_, module, exports) {
7250
7430
  'use strict';
7251
7431
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -7266,11 +7446,11 @@ require = function () {
7266
7446
  ] : global_1.undefined);
7267
7447
  },
7268
7448
  {
7269
- '../../combinator': 24,
7449
+ '../../combinator': 25,
7270
7450
  'spica/global': 13
7271
7451
  }
7272
7452
  ],
7273
- 128: [
7453
+ 131: [
7274
7454
  function (_dereq_, module, exports) {
7275
7455
  'use strict';
7276
7456
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -7323,11 +7503,11 @@ require = function () {
7323
7503
  exports.stropt = stropt;
7324
7504
  },
7325
7505
  {
7326
- '../../combinator': 24,
7506
+ '../../combinator': 25,
7327
7507
  'spica/global': 13
7328
7508
  }
7329
7509
  ],
7330
- 129: [
7510
+ 132: [
7331
7511
  function (_dereq_, module, exports) {
7332
7512
  'use strict';
7333
7513
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -7438,13 +7618,13 @@ require = function () {
7438
7618
  exports.isAlphanumeric = isAlphanumeric;
7439
7619
  },
7440
7620
  {
7441
- '../../combinator': 24,
7442
- './str': 128,
7621
+ '../../combinator': 25,
7622
+ './str': 131,
7443
7623
  'spica/global': 13,
7444
7624
  'typed-dom/dom': 23
7445
7625
  }
7446
7626
  ],
7447
- 130: [
7627
+ 133: [
7448
7628
  function (_dereq_, module, exports) {
7449
7629
  'use strict';
7450
7630
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -7478,11 +7658,11 @@ require = function () {
7478
7658
  });
7479
7659
  },
7480
7660
  {
7481
- '../../combinator': 24,
7482
- './text': 129
7661
+ '../../combinator': 25,
7662
+ './text': 132
7483
7663
  }
7484
7664
  ],
7485
- 131: [
7665
+ 134: [
7486
7666
  function (_dereq_, module, exports) {
7487
7667
  'use strict';
7488
7668
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -7637,17 +7817,17 @@ require = function () {
7637
7817
  exports.stringify = stringify;
7638
7818
  },
7639
7819
  {
7640
- '../combinator': 24,
7641
- '../combinator/data/parser': 44,
7642
- './api/normalize': 57,
7643
- './inline/htmlentity': 109,
7644
- './source': 125,
7820
+ '../combinator': 25,
7821
+ '../combinator/data/parser': 45,
7822
+ './api/normalize': 58,
7823
+ './inline/htmlentity': 112,
7824
+ './source': 128,
7645
7825
  'spica/array': 6,
7646
7826
  'spica/global': 13,
7647
7827
  'spica/memoize': 16
7648
7828
  }
7649
7829
  ],
7650
- 132: [
7830
+ 135: [
7651
7831
  function (_dereq_, module, exports) {
7652
7832
  'use strict';
7653
7833
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -7660,9 +7840,9 @@ require = function () {
7660
7840
  }
7661
7841
  });
7662
7842
  },
7663
- { './renderer/render': 133 }
7843
+ { './renderer/render': 136 }
7664
7844
  ],
7665
- 133: [
7845
+ 136: [
7666
7846
  function (_dereq_, module, exports) {
7667
7847
  'use strict';
7668
7848
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -7671,6 +7851,7 @@ require = function () {
7671
7851
  const code_1 = _dereq_('./render/code');
7672
7852
  const math_1 = _dereq_('./render/math');
7673
7853
  const media_1 = _dereq_('./render/media');
7854
+ const query_1 = _dereq_('typed-dom/query');
7674
7855
  const memoize_1 = _dereq_('spica/memoize');
7675
7856
  const selector = 'img.media:not(.invalid):not([src])[data-src], a > :not(img).media:not(.invalid), pre.code:not(.invalid), .math:not(.invalid)';
7676
7857
  const extend = (0, memoize_1.reduce)(opts => ({
@@ -7682,10 +7863,8 @@ require = function () {
7682
7863
  function render(source, opts = {}) {
7683
7864
  opts = extend(opts);
7684
7865
  const base = global_1.location.href;
7685
- if (source.matches(selector))
7686
- return void render_(base, source, opts);
7687
- for (let es = source.querySelectorAll(selector), i = 0, len = es.length; i < len; ++i) {
7688
- render_(base, es[i], opts);
7866
+ for (const el of (0, query_1.querySelectorAll)(source, selector)) {
7867
+ render_(base, el, opts);
7689
7868
  }
7690
7869
  }
7691
7870
  exports.render = render;
@@ -7718,14 +7897,15 @@ require = function () {
7718
7897
  }
7719
7898
  },
7720
7899
  {
7721
- './render/code': 134,
7722
- './render/math': 135,
7723
- './render/media': 136,
7900
+ './render/code': 137,
7901
+ './render/math': 138,
7902
+ './render/media': 139,
7724
7903
  'spica/global': 13,
7725
- 'spica/memoize': 16
7904
+ 'spica/memoize': 16,
7905
+ 'typed-dom/query': 24
7726
7906
  }
7727
7907
  ],
7728
- 134: [
7908
+ 137: [
7729
7909
  function (_dereq_, module, exports) {
7730
7910
  (function (global) {
7731
7911
  (function () {
@@ -7783,7 +7963,7 @@ require = function () {
7783
7963
  },
7784
7964
  {}
7785
7965
  ],
7786
- 135: [
7966
+ 138: [
7787
7967
  function (_dereq_, module, exports) {
7788
7968
  'use strict';
7789
7969
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -7809,7 +7989,7 @@ require = function () {
7809
7989
  'typed-dom/dom': 23
7810
7990
  }
7811
7991
  ],
7812
- 136: [
7992
+ 139: [
7813
7993
  function (_dereq_, module, exports) {
7814
7994
  'use strict';
7815
7995
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -7840,17 +8020,17 @@ require = function () {
7840
8020
  exports.media = media;
7841
8021
  },
7842
8022
  {
7843
- './media/audio': 137,
7844
- './media/image': 138,
7845
- './media/pdf': 139,
7846
- './media/twitter': 140,
7847
- './media/video': 141,
7848
- './media/youtube': 142,
8023
+ './media/audio': 140,
8024
+ './media/image': 141,
8025
+ './media/pdf': 142,
8026
+ './media/twitter': 143,
8027
+ './media/video': 144,
8028
+ './media/youtube': 145,
7849
8029
  'spica/memoize': 16,
7850
8030
  'spica/url': 21
7851
8031
  }
7852
8032
  ],
7853
- 137: [
8033
+ 140: [
7854
8034
  function (_dereq_, module, exports) {
7855
8035
  'use strict';
7856
8036
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -7875,7 +8055,7 @@ require = function () {
7875
8055
  },
7876
8056
  { 'typed-dom/dom': 23 }
7877
8057
  ],
7878
- 138: [
8058
+ 141: [
7879
8059
  function (_dereq_, module, exports) {
7880
8060
  'use strict';
7881
8061
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -7912,7 +8092,7 @@ require = function () {
7912
8092
  'typed-dom/dom': 23
7913
8093
  }
7914
8094
  ],
7915
- 139: [
8095
+ 142: [
7916
8096
  function (_dereq_, module, exports) {
7917
8097
  'use strict';
7918
8098
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -7937,11 +8117,11 @@ require = function () {
7937
8117
  exports.pdf = pdf;
7938
8118
  },
7939
8119
  {
7940
- '../../../parser': 51,
8120
+ '../../../parser': 52,
7941
8121
  'typed-dom/dom': 23
7942
8122
  }
7943
8123
  ],
7944
- 140: [
8124
+ 143: [
7945
8125
  function (_dereq_, module, exports) {
7946
8126
  (function (global) {
7947
8127
  (function () {
@@ -7975,7 +8155,7 @@ require = function () {
7975
8155
  const id = 'twitter-wjs';
7976
8156
  if (global_1.document.getElementById(id))
7977
8157
  return;
7978
- global_1.document.body.appendChild(html('script', {
8158
+ global_1.document.body.appendChild((0, dom_1.html)('script', {
7979
8159
  id,
7980
8160
  src: 'https://platform.twitter.com/widgets.js'
7981
8161
  }));
@@ -7991,12 +8171,12 @@ require = function () {
7991
8171
  }.call(this, typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : typeof window !== 'undefined' ? window : {}));
7992
8172
  },
7993
8173
  {
7994
- '../../../parser': 51,
8174
+ '../../../parser': 52,
7995
8175
  'spica/global': 13,
7996
8176
  'typed-dom/dom': 23
7997
8177
  }
7998
8178
  ],
7999
- 141: [
8179
+ 144: [
8000
8180
  function (_dereq_, module, exports) {
8001
8181
  'use strict';
8002
8182
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -8028,7 +8208,7 @@ require = function () {
8028
8208
  'typed-dom/dom': 23
8029
8209
  }
8030
8210
  ],
8031
- 142: [
8211
+ 145: [
8032
8212
  function (_dereq_, module, exports) {
8033
8213
  'use strict';
8034
8214
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -8062,7 +8242,7 @@ require = function () {
8062
8242
  },
8063
8243
  { 'typed-dom/dom': 23 }
8064
8244
  ],
8065
- 143: [
8245
+ 146: [
8066
8246
  function (_dereq_, module, exports) {
8067
8247
  'use strict';
8068
8248
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -8097,18 +8277,19 @@ require = function () {
8097
8277
  });
8098
8278
  },
8099
8279
  {
8100
- './util/info': 144,
8101
- './util/quote': 145,
8102
- './util/scope': 146,
8103
- './util/toc': 147
8280
+ './util/info': 147,
8281
+ './util/quote': 148,
8282
+ './util/scope': 149,
8283
+ './util/toc': 150
8104
8284
  }
8105
8285
  ],
8106
- 144: [
8286
+ 147: [
8107
8287
  function (_dereq_, module, exports) {
8108
8288
  'use strict';
8109
8289
  Object.defineProperty(exports, '__esModule', { value: true });
8110
8290
  exports.info = void 0;
8111
8291
  const scope_1 = _dereq_('./scope');
8292
+ const query_1 = _dereq_('typed-dom/query');
8112
8293
  function info(source) {
8113
8294
  const match = (0, scope_1.scope)(source, '.invalid');
8114
8295
  return {
@@ -8127,21 +8308,17 @@ require = function () {
8127
8308
  media: find('.media[data-src]')
8128
8309
  };
8129
8310
  function find(selector) {
8130
- const acc = [];
8131
- for (let es = source.querySelectorAll(selector), i = 0, len = es.length; i < len; ++i) {
8132
- const el = es[i];
8133
- if (!match(el))
8134
- continue;
8135
- acc.push(el);
8136
- }
8137
- return acc;
8311
+ return (0, query_1.querySelectorAll)(source, selector).filter(match);
8138
8312
  }
8139
8313
  }
8140
8314
  exports.info = info;
8141
8315
  },
8142
- { './scope': 146 }
8316
+ {
8317
+ './scope': 149,
8318
+ 'typed-dom/query': 24
8319
+ }
8143
8320
  ],
8144
- 145: [
8321
+ 148: [
8145
8322
  function (_dereq_, module, exports) {
8146
8323
  'use strict';
8147
8324
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -8226,13 +8403,13 @@ require = function () {
8226
8403
  }
8227
8404
  },
8228
8405
  {
8229
- '../combinator/data/parser': 44,
8230
- '../parser/block/reply/cite': 80,
8406
+ '../combinator/data/parser': 45,
8407
+ '../parser/block/reply/cite': 82,
8231
8408
  'spica/global': 13,
8232
8409
  'typed-dom/dom': 23
8233
8410
  }
8234
8411
  ],
8235
- 146: [
8412
+ 149: [
8236
8413
  function (_dereq_, module, exports) {
8237
8414
  'use strict';
8238
8415
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -8258,7 +8435,7 @@ require = function () {
8258
8435
  },
8259
8436
  { 'spica/global': 13 }
8260
8437
  ],
8261
- 147: [
8438
+ 150: [
8262
8439
  function (_dereq_, module, exports) {
8263
8440
  'use strict';
8264
8441
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -8362,9 +8539,9 @@ require = function () {
8362
8539
  __exportStar(_dereq_('./src/renderer'), exports);
8363
8540
  },
8364
8541
  {
8365
- './src/parser': 51,
8366
- './src/renderer': 132,
8367
- './src/util': 143,
8542
+ './src/parser': 52,
8543
+ './src/renderer': 135,
8544
+ './src/util': 146,
8368
8545
  'spica/global': 13
8369
8546
  }
8370
8547
  ]