securemark 0.241.0 → 0.242.0

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.242.0 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': 86,
3017
+ '../processor/figure': 124,
3018
+ '../processor/footnote': 125,
3019
+ '../segment': 126,
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': 86
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': 111
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': 86,
3217
+ '../processor/figure': 124,
3218
+ '../processor/footnote': 125,
3219
+ '../segment': 126,
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': 89,
3244
+ './source': 127
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,11 @@ 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 blockquote_1 = _dereq_('./block/blockquote');
3189
3267
  const reply_1 = _dereq_('./block/reply');
3190
3268
  const paragraph_1 = _dereq_('./block/paragraph');
3191
3269
  const dom_1 = _dereq_('typed-dom/dom');
@@ -3204,6 +3282,7 @@ require = function () {
3204
3282
  ilist_1.ilist,
3205
3283
  dlist_1.dlist,
3206
3284
  table_1.table,
3285
+ indentblock_1.indentblock,
3207
3286
  codeblock_1.codeblock,
3208
3287
  mathblock_1.mathblock,
3209
3288
  extension_1.extension,
@@ -3230,27 +3309,28 @@ require = function () {
3230
3309
  }
3231
3310
  },
3232
3311
  {
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,
3312
+ '../combinator': 25,
3313
+ './block/blockquote': 62,
3314
+ './block/codeblock': 63,
3315
+ './block/dlist': 64,
3316
+ './block/extension': 65,
3317
+ './block/heading': 74,
3318
+ './block/horizontalrule': 75,
3319
+ './block/ilist': 76,
3320
+ './block/indentblock': 77,
3321
+ './block/mathblock': 78,
3322
+ './block/olist': 79,
3323
+ './block/paragraph': 80,
3324
+ './block/reply': 81,
3325
+ './block/table': 84,
3326
+ './block/ulist': 85,
3327
+ './source': 127,
3248
3328
  'spica/global': 13,
3249
3329
  'spica/random': 18,
3250
3330
  'typed-dom/dom': 23
3251
3331
  }
3252
3332
  ],
3253
- 61: [
3333
+ 62: [
3254
3334
  function (_dereq_, module, exports) {
3255
3335
  'use strict';
3256
3336
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -3301,14 +3381,14 @@ require = function () {
3301
3381
  ]))), ns => [(0, dom_1.html)('blockquote', ns)]));
3302
3382
  },
3303
3383
  {
3304
- '../../combinator': 24,
3305
- '../api/parse': 58,
3306
- '../autolink': 59,
3307
- '../source': 125,
3384
+ '../../combinator': 25,
3385
+ '../api/parse': 59,
3386
+ '../autolink': 60,
3387
+ '../source': 127,
3308
3388
  'typed-dom/dom': 23
3309
3389
  }
3310
3390
  ],
3311
- 62: [
3391
+ 63: [
3312
3392
  function (_dereq_, module, exports) {
3313
3393
  'use strict';
3314
3394
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -3355,7 +3435,7 @@ require = function () {
3355
3435
  }, `${ opener }${ body }${ closer }`)];
3356
3436
  const el = (0, dom_1.html)('pre', {
3357
3437
  class: params.lang ? `code language-${ params.lang }` : 'text',
3358
- translate: 'no',
3438
+ translate: params.lang ? 'no' : global_1.undefined,
3359
3439
  'data-lang': params.lang || global_1.undefined,
3360
3440
  'data-line': params.line || global_1.undefined,
3361
3441
  'data-path': params.path || global_1.undefined
@@ -3364,14 +3444,14 @@ require = function () {
3364
3444
  })));
3365
3445
  },
3366
3446
  {
3367
- '../../combinator': 24,
3368
- '../../combinator/data/parser': 44,
3369
- '../autolink': 59,
3447
+ '../../combinator': 25,
3448
+ '../../combinator/data/parser': 45,
3449
+ '../autolink': 60,
3370
3450
  'spica/global': 13,
3371
3451
  'typed-dom/dom': 23
3372
3452
  }
3373
3453
  ],
3374
- 63: [
3454
+ 64: [
3375
3455
  function (_dereq_, module, exports) {
3376
3456
  'use strict';
3377
3457
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -3408,16 +3488,16 @@ require = function () {
3408
3488
  }
3409
3489
  },
3410
3490
  {
3411
- '../../combinator': 24,
3412
- '../inline': 85,
3413
- '../locale': 120,
3414
- '../source': 125,
3415
- '../util': 131,
3491
+ '../../combinator': 25,
3492
+ '../inline': 87,
3493
+ '../locale': 122,
3494
+ '../source': 127,
3495
+ '../util': 133,
3416
3496
  'spica/array': 6,
3417
3497
  'typed-dom/dom': 23
3418
3498
  }
3419
3499
  ],
3420
- 64: [
3500
+ 65: [
3421
3501
  function (_dereq_, module, exports) {
3422
3502
  'use strict';
3423
3503
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -3453,18 +3533,18 @@ require = function () {
3453
3533
  ]);
3454
3534
  },
3455
3535
  {
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
3536
+ '../../combinator': 25,
3537
+ './extension/aside': 66,
3538
+ './extension/example': 67,
3539
+ './extension/fig': 68,
3540
+ './extension/figbase': 69,
3541
+ './extension/figure': 70,
3542
+ './extension/message': 71,
3543
+ './extension/placeholder': 72,
3544
+ './extension/table': 73
3465
3545
  }
3466
3546
  ],
3467
- 65: [
3547
+ 66: [
3468
3548
  function (_dereq_, module, exports) {
3469
3549
  'use strict';
3470
3550
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -3512,13 +3592,13 @@ require = function () {
3512
3592
  }))));
3513
3593
  },
3514
3594
  {
3515
- '../../../combinator': 24,
3516
- '../../api/parse': 58,
3517
- '../../inline/extension/indexee': 104,
3595
+ '../../../combinator': 25,
3596
+ '../../api/parse': 59,
3597
+ '../../inline/extension/indexee': 106,
3518
3598
  'typed-dom/dom': 23
3519
3599
  }
3520
3600
  ],
3521
- 66: [
3601
+ 67: [
3522
3602
  function (_dereq_, module, exports) {
3523
3603
  'use strict';
3524
3604
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -3582,14 +3662,14 @@ require = function () {
3582
3662
  }))));
3583
3663
  },
3584
3664
  {
3585
- '../../../combinator': 24,
3586
- '../../../combinator/data/parser': 44,
3587
- '../../api/parse': 58,
3588
- '../mathblock': 76,
3665
+ '../../../combinator': 25,
3666
+ '../../../combinator/data/parser': 45,
3667
+ '../../api/parse': 59,
3668
+ '../mathblock': 78,
3589
3669
  'typed-dom/dom': 23
3590
3670
  }
3591
3671
  ],
3592
- 67: [
3672
+ 68: [
3593
3673
  function (_dereq_, module, exports) {
3594
3674
  'use strict';
3595
3675
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -3618,23 +3698,23 @@ require = function () {
3618
3698
  ])
3619
3699
  ])));
3620
3700
  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
+ const fence = (/^[^\n]*\n!?>+\s/.test(source) && source.match(/^~{3,}(?=[^\S\n]*$)/mg) || []).reduce((max, fence) => fence > max ? fence : max, '~~') + '~';
3622
3702
  return `${ fence }figure ${ source }\n\n${ fence }`;
3623
3703
  }, (0, combinator_1.union)([figure_1.figure]))));
3624
3704
  },
3625
3705
  {
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
3706
+ '../../../combinator': 25,
3707
+ '../../inline/extension/label': 108,
3708
+ '../../source': 127,
3709
+ '../blockquote': 62,
3710
+ '../codeblock': 63,
3711
+ '../mathblock': 78,
3712
+ './figure': 70,
3713
+ './placeholder': 72,
3714
+ './table': 73
3635
3715
  }
3636
3716
  ],
3637
- 68: [
3717
+ 69: [
3638
3718
  function (_dereq_, module, exports) {
3639
3719
  'use strict';
3640
3720
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -3653,12 +3733,12 @@ require = function () {
3653
3733
  }));
3654
3734
  },
3655
3735
  {
3656
- '../../../combinator': 24,
3657
- '../../inline/extension/label': 106,
3736
+ '../../../combinator': 25,
3737
+ '../../inline/extension/label': 108,
3658
3738
  'typed-dom/dom': 23
3659
3739
  }
3660
3740
  ],
3661
- 69: [
3741
+ 70: [
3662
3742
  function (_dereq_, module, exports) {
3663
3743
  'use strict';
3664
3744
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -3670,11 +3750,12 @@ require = function () {
3670
3750
  const ulist_1 = _dereq_('../ulist');
3671
3751
  const olist_1 = _dereq_('../olist');
3672
3752
  const table_1 = _dereq_('../table');
3753
+ const indentblock_1 = _dereq_('../indentblock');
3673
3754
  const codeblock_1 = _dereq_('../codeblock');
3674
3755
  const mathblock_1 = _dereq_('../mathblock');
3675
- const blockquote_1 = _dereq_('../blockquote');
3676
3756
  const example_1 = _dereq_('./example');
3677
3757
  const table_2 = _dereq_('./table');
3758
+ const blockquote_1 = _dereq_('../blockquote');
3678
3759
  const placeholder_1 = _dereq_('./placeholder');
3679
3760
  const inline_1 = _dereq_('../../inline');
3680
3761
  const locale_1 = _dereq_('../../locale');
@@ -3710,11 +3791,12 @@ require = function () {
3710
3791
  ulist_1.ulist,
3711
3792
  olist_1.olist,
3712
3793
  table_1.table,
3794
+ indentblock_1.indentblock,
3713
3795
  codeblock_1.codeblock,
3714
3796
  mathblock_1.mathblock,
3715
- blockquote_1.blockquote,
3716
3797
  example_1.example,
3717
3798
  table_2.table,
3799
+ blockquote_1.blockquote,
3718
3800
  placeholder_1.placeholder,
3719
3801
  (0, combinator_1.line)(inline_1.media),
3720
3802
  (0, combinator_1.line)(inline_1.shortmedia)
@@ -3799,28 +3881,29 @@ require = function () {
3799
3881
  }
3800
3882
  },
3801
3883
  {
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,
3884
+ '../../../combinator': 25,
3885
+ '../../inline': 87,
3886
+ '../../inline/extension/label': 108,
3887
+ '../../locale': 122,
3888
+ '../../source': 127,
3889
+ '../../util': 133,
3890
+ '../blockquote': 62,
3891
+ '../codeblock': 63,
3892
+ '../indentblock': 77,
3893
+ '../mathblock': 78,
3894
+ '../olist': 79,
3895
+ '../table': 84,
3896
+ '../ulist': 85,
3897
+ './example': 67,
3898
+ './placeholder': 72,
3899
+ './table': 73,
3817
3900
  'spica/array': 6,
3818
3901
  'spica/global': 13,
3819
3902
  'spica/memoize': 16,
3820
3903
  'typed-dom/dom': 23
3821
3904
  }
3822
3905
  ],
3823
- 70: [
3906
+ 71: [
3824
3907
  function (_dereq_, module, exports) {
3825
3908
  'use strict';
3826
3909
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -3833,6 +3916,7 @@ require = function () {
3833
3916
  const olist_1 = _dereq_('../olist');
3834
3917
  const ilist_1 = _dereq_('../ilist');
3835
3918
  const table_1 = _dereq_('../table');
3919
+ const indentblock_1 = _dereq_('../indentblock');
3836
3920
  const codeblock_1 = _dereq_('../codeblock');
3837
3921
  const mathblock_1 = _dereq_('../mathblock');
3838
3922
  const blockquote_1 = _dereq_('../blockquote');
@@ -3861,7 +3945,10 @@ require = function () {
3861
3945
  'data-invalid-message': 'Invalid message type'
3862
3946
  }, `${ opener }${ body }${ closer }`)];
3863
3947
  }
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), [])), [])))];
3948
+ return [(0, dom_1.html)('div', {
3949
+ class: `message`,
3950
+ 'data-type': type
3951
+ }, (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
3952
  })));
3866
3953
  function title(type) {
3867
3954
  switch (type) {
@@ -3879,6 +3966,7 @@ require = function () {
3879
3966
  olist_1.olist,
3880
3967
  ilist_1.ilist,
3881
3968
  table_1.table,
3969
+ indentblock_1.indentblock,
3882
3970
  codeblock_1.codeblock,
3883
3971
  mathblock_1.mathblock,
3884
3972
  blockquote_1.blockquote,
@@ -3886,23 +3974,24 @@ require = function () {
3886
3974
  ]);
3887
3975
  },
3888
3976
  {
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,
3977
+ '../../../combinator': 25,
3978
+ '../../../combinator/data/parser': 45,
3979
+ '../../segment': 126,
3980
+ '../../source': 127,
3981
+ '../blockquote': 62,
3982
+ '../codeblock': 63,
3983
+ '../ilist': 76,
3984
+ '../indentblock': 77,
3985
+ '../mathblock': 78,
3986
+ '../olist': 79,
3987
+ '../paragraph': 80,
3988
+ '../table': 84,
3989
+ '../ulist': 85,
3901
3990
  'spica/array': 6,
3902
3991
  'typed-dom/dom': 23
3903
3992
  }
3904
3993
  ],
3905
- 71: [
3994
+ 72: [
3906
3995
  function (_dereq_, module, exports) {
3907
3996
  'use strict';
3908
3997
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -3921,11 +4010,11 @@ require = function () {
3921
4010
  }, `${ opener }${ body }${ closer }`)])));
3922
4011
  },
3923
4012
  {
3924
- '../../../combinator': 24,
4013
+ '../../../combinator': 25,
3925
4014
  'typed-dom/dom': 23
3926
4015
  }
3927
4016
  ],
3928
- 72: [
4017
+ 73: [
3929
4018
  function (_dereq_, module, exports) {
3930
4019
  'use strict';
3931
4020
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -4181,19 +4270,19 @@ require = function () {
4181
4270
  }
4182
4271
  },
4183
4272
  {
4184
- '../../../combinator': 24,
4185
- '../../../combinator/data/parser': 44,
4186
- '../../inline': 85,
4187
- '../../locale': 120,
4188
- '../../source': 125,
4189
- '../../util': 131,
4273
+ '../../../combinator': 25,
4274
+ '../../../combinator/data/parser': 45,
4275
+ '../../inline': 87,
4276
+ '../../locale': 122,
4277
+ '../../source': 127,
4278
+ '../../util': 133,
4190
4279
  'spica/alias': 5,
4191
4280
  'spica/array': 6,
4192
4281
  'spica/global': 13,
4193
4282
  'typed-dom/dom': 23
4194
4283
  }
4195
4284
  ],
4196
- 73: [
4285
+ 74: [
4197
4286
  function (_dereq_, module, exports) {
4198
4287
  'use strict';
4199
4288
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -4235,14 +4324,14 @@ require = function () {
4235
4324
  }, (0, dom_1.defrag)(ns))]))))));
4236
4325
  },
4237
4326
  {
4238
- '../../combinator': 24,
4239
- '../inline': 85,
4240
- '../source': 125,
4241
- '../util': 131,
4327
+ '../../combinator': 25,
4328
+ '../inline': 87,
4329
+ '../source': 127,
4330
+ '../util': 133,
4242
4331
  'typed-dom/dom': 23
4243
4332
  }
4244
4333
  ],
4245
- 74: [
4334
+ 75: [
4246
4335
  function (_dereq_, module, exports) {
4247
4336
  'use strict';
4248
4337
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -4255,11 +4344,11 @@ require = function () {
4255
4344
  ])));
4256
4345
  },
4257
4346
  {
4258
- '../../combinator': 24,
4347
+ '../../combinator': 25,
4259
4348
  'typed-dom/dom': 23
4260
4349
  }
4261
4350
  ],
4262
- 75: [
4351
+ 76: [
4263
4352
  function (_dereq_, module, exports) {
4264
4353
  'use strict';
4265
4354
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -4289,15 +4378,33 @@ require = function () {
4289
4378
  }, es)])));
4290
4379
  },
4291
4380
  {
4292
- '../../combinator': 24,
4293
- '../inline': 85,
4294
- '../source': 125,
4295
- './olist': 77,
4296
- './ulist': 83,
4381
+ '../../combinator': 25,
4382
+ '../inline': 87,
4383
+ '../source': 127,
4384
+ './olist': 79,
4385
+ './ulist': 85,
4297
4386
  'typed-dom/dom': 23
4298
4387
  }
4299
4388
  ],
4300
- 76: [
4389
+ 77: [
4390
+ function (_dereq_, module, exports) {
4391
+ 'use strict';
4392
+ Object.defineProperty(exports, '__esModule', { value: true });
4393
+ exports.indentblock = void 0;
4394
+ const combinator_1 = _dereq_('../../combinator');
4395
+ const codeblock_1 = _dereq_('./codeblock');
4396
+ exports.indentblock = (0, combinator_1.block)((0, combinator_1.validate)(/^(?: |\t)/, (0, combinator_1.indent)((0, combinator_1.convert)(source => {
4397
+ var _a;
4398
+ const fence = ((_a = source.match(/^`{3,}(?=[^\S\n]*$)/mg)) !== null && _a !== void 0 ? _a : []).reduce((max, fence) => fence > max ? fence : max, '``') + '`';
4399
+ return `${ fence }\n${ source }\n${ fence }`;
4400
+ }, (0, combinator_1.union)([codeblock_1.codeblock])), true)));
4401
+ },
4402
+ {
4403
+ '../../combinator': 25,
4404
+ './codeblock': 63
4405
+ }
4406
+ ],
4407
+ 78: [
4301
4408
  function (_dereq_, module, exports) {
4302
4409
  'use strict';
4303
4410
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -4327,12 +4434,12 @@ require = function () {
4327
4434
  })));
4328
4435
  },
4329
4436
  {
4330
- '../../combinator': 24,
4437
+ '../../combinator': 25,
4331
4438
  'spica/global': 13,
4332
4439
  'typed-dom/dom': 23
4333
4440
  }
4334
4441
  ],
4335
- 77: [
4442
+ 79: [
4336
4443
  function (_dereq_, module, exports) {
4337
4444
  'use strict';
4338
4445
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -4461,18 +4568,18 @@ require = function () {
4461
4568
  }
4462
4569
  },
4463
4570
  {
4464
- '../../combinator': 24,
4465
- '../inline': 85,
4466
- '../source': 125,
4467
- './ilist': 75,
4468
- './ulist': 83,
4571
+ '../../combinator': 25,
4572
+ '../inline': 87,
4573
+ '../source': 127,
4574
+ './ilist': 76,
4575
+ './ulist': 85,
4469
4576
  'spica/array': 6,
4470
4577
  'spica/global': 13,
4471
4578
  'spica/memoize': 16,
4472
4579
  'typed-dom/dom': 23
4473
4580
  }
4474
4581
  ],
4475
- 78: [
4582
+ 80: [
4476
4583
  function (_dereq_, module, exports) {
4477
4584
  'use strict';
4478
4585
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -4485,14 +4592,14 @@ require = function () {
4485
4592
  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
4593
  },
4487
4594
  {
4488
- '../../combinator': 24,
4489
- '../inline': 85,
4490
- '../locale': 120,
4491
- '../util': 131,
4595
+ '../../combinator': 25,
4596
+ '../inline': 87,
4597
+ '../locale': 122,
4598
+ '../util': 133,
4492
4599
  'typed-dom/dom': 23
4493
4600
  }
4494
4601
  ],
4495
- 79: [
4602
+ 81: [
4496
4603
  function (_dereq_, module, exports) {
4497
4604
  'use strict';
4498
4605
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -4518,18 +4625,18 @@ require = function () {
4518
4625
  ]), ns => [(0, dom_1.html)('p', (0, dom_1.defrag)((0, array_1.pop)(ns)[0]))]))));
4519
4626
  },
4520
4627
  {
4521
- '../../combinator': 24,
4522
- '../inline': 85,
4523
- '../locale': 120,
4524
- '../source': 125,
4525
- '../util': 131,
4526
- './reply/cite': 80,
4527
- './reply/quote': 81,
4628
+ '../../combinator': 25,
4629
+ '../inline': 87,
4630
+ '../locale': 122,
4631
+ '../source': 127,
4632
+ '../util': 133,
4633
+ './reply/cite': 82,
4634
+ './reply/quote': 83,
4528
4635
  'spica/array': 6,
4529
4636
  'typed-dom/dom': 23
4530
4637
  }
4531
4638
  ],
4532
- 80: [
4639
+ 82: [
4533
4640
  function (_dereq_, module, exports) {
4534
4641
  'use strict';
4535
4642
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -4560,13 +4667,13 @@ require = function () {
4560
4667
  ])));
4561
4668
  },
4562
4669
  {
4563
- '../../../combinator': 24,
4564
- '../../inline/autolink/anchor': 89,
4565
- '../../source': 125,
4670
+ '../../../combinator': 25,
4671
+ '../../inline/autolink/anchor': 91,
4672
+ '../../source': 127,
4566
4673
  'typed-dom/dom': 23
4567
4674
  }
4568
4675
  ],
4569
- 81: [
4676
+ 83: [
4570
4677
  function (_dereq_, module, exports) {
4571
4678
  'use strict';
4572
4679
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -4629,15 +4736,15 @@ require = function () {
4629
4736
  ]);
4630
4737
  },
4631
4738
  {
4632
- '../../../combinator': 24,
4633
- '../../../combinator/data/parser': 44,
4634
- '../../autolink': 59,
4635
- '../../inline/math': 113,
4636
- '../../source': 125,
4739
+ '../../../combinator': 25,
4740
+ '../../../combinator/data/parser': 45,
4741
+ '../../autolink': 60,
4742
+ '../../inline/math': 115,
4743
+ '../../source': 127,
4637
4744
  'typed-dom/dom': 23
4638
4745
  }
4639
4746
  ],
4640
- 82: [
4747
+ 84: [
4641
4748
  function (_dereq_, module, exports) {
4642
4749
  'use strict';
4643
4750
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -4702,14 +4809,14 @@ require = function () {
4702
4809
  }
4703
4810
  },
4704
4811
  {
4705
- '../../combinator': 24,
4706
- '../inline': 85,
4707
- '../source': 125,
4812
+ '../../combinator': 25,
4813
+ '../inline': 87,
4814
+ '../source': 127,
4708
4815
  'spica/array': 6,
4709
4816
  'typed-dom/dom': 23
4710
4817
  }
4711
4818
  ],
4712
- 83: [
4819
+ 85: [
4713
4820
  function (_dereq_, module, exports) {
4714
4821
  'use strict';
4715
4822
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -4765,16 +4872,16 @@ require = function () {
4765
4872
  }
4766
4873
  },
4767
4874
  {
4768
- '../../combinator': 24,
4769
- '../inline': 85,
4770
- '../source': 125,
4771
- './ilist': 75,
4772
- './olist': 77,
4875
+ '../../combinator': 25,
4876
+ '../inline': 87,
4877
+ '../source': 127,
4878
+ './ilist': 76,
4879
+ './olist': 79,
4773
4880
  'spica/array': 6,
4774
4881
  'typed-dom/dom': 23
4775
4882
  }
4776
4883
  ],
4777
- 84: [
4884
+ 86: [
4778
4885
  function (_dereq_, module, exports) {
4779
4886
  'use strict';
4780
4887
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -4831,14 +4938,14 @@ require = function () {
4831
4938
  });
4832
4939
  },
4833
4940
  {
4834
- '../combinator': 24,
4835
- './api/normalize': 57,
4836
- './segment': 124,
4837
- './source': 125,
4941
+ '../combinator': 25,
4942
+ './api/normalize': 58,
4943
+ './segment': 126,
4944
+ './source': 127,
4838
4945
  'typed-dom/dom': 23
4839
4946
  }
4840
4947
  ],
4841
- 85: [
4948
+ 87: [
4842
4949
  function (_dereq_, module, exports) {
4843
4950
  'use strict';
4844
4951
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -4922,35 +5029,35 @@ require = function () {
4922
5029
  });
4923
5030
  },
4924
5031
  {
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
5032
+ '../combinator': 25,
5033
+ './inline/annotation': 88,
5034
+ './inline/autolink': 89,
5035
+ './inline/bracket': 97,
5036
+ './inline/code': 98,
5037
+ './inline/comment': 99,
5038
+ './inline/deletion': 100,
5039
+ './inline/emphasis': 101,
5040
+ './inline/emstrong': 102,
5041
+ './inline/escape': 103,
5042
+ './inline/extension': 104,
5043
+ './inline/extension/indexee': 106,
5044
+ './inline/extension/indexer': 107,
5045
+ './inline/html': 110,
5046
+ './inline/htmlentity': 111,
5047
+ './inline/insertion': 112,
5048
+ './inline/link': 113,
5049
+ './inline/mark': 114,
5050
+ './inline/math': 115,
5051
+ './inline/media': 116,
5052
+ './inline/reference': 117,
5053
+ './inline/ruby': 118,
5054
+ './inline/shortmedia': 119,
5055
+ './inline/strong': 120,
5056
+ './inline/template': 121,
5057
+ './source': 127
4951
5058
  }
4952
5059
  ],
4953
- 86: [
5060
+ 88: [
4954
5061
  function (_dereq_, module, exports) {
4955
5062
  'use strict';
4956
5063
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -4975,14 +5082,14 @@ require = function () {
4975
5082
  }, (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
5083
  },
4977
5084
  {
4978
- '../../combinator': 24,
4979
- '../inline': 85,
4980
- '../util': 131,
5085
+ '../../combinator': 25,
5086
+ '../inline': 87,
5087
+ '../util': 133,
4981
5088
  'spica/global': 13,
4982
5089
  'typed-dom/dom': 23
4983
5090
  }
4984
5091
  ],
4985
- 87: [
5092
+ 89: [
4986
5093
  function (_dereq_, module, exports) {
4987
5094
  'use strict';
4988
5095
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -5015,19 +5122,19 @@ require = function () {
5015
5122
  ])))), ns => ns.length === 1 ? ns : [(0, util_1.stringify)(ns)]);
5016
5123
  },
5017
5124
  {
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
5125
+ '../../combinator': 25,
5126
+ '../source': 127,
5127
+ '../util': 133,
5128
+ './autolink/account': 90,
5129
+ './autolink/anchor': 91,
5130
+ './autolink/channel': 92,
5131
+ './autolink/email': 93,
5132
+ './autolink/hashnum': 94,
5133
+ './autolink/hashtag': 95,
5134
+ './autolink/url': 96
5028
5135
  }
5029
5136
  ],
5030
- 88: [
5137
+ 90: [
5031
5138
  function (_dereq_, module, exports) {
5032
5139
  'use strict';
5033
5140
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -5049,13 +5156,13 @@ require = function () {
5049
5156
  }, (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
5157
  },
5051
5158
  {
5052
- '../../../combinator': 24,
5053
- '../../source': 125,
5054
- '../link': 111,
5159
+ '../../../combinator': 25,
5160
+ '../../source': 127,
5161
+ '../link': 113,
5055
5162
  'typed-dom/dom': 23
5056
5163
  }
5057
5164
  ],
5058
- 89: [
5165
+ 91: [
5059
5166
  function (_dereq_, module, exports) {
5060
5167
  'use strict';
5061
5168
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -5073,12 +5180,12 @@ require = function () {
5073
5180
  }, (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
5181
  },
5075
5182
  {
5076
- '../../../combinator': 24,
5077
- '../link': 111,
5183
+ '../../../combinator': 25,
5184
+ '../link': 113,
5078
5185
  'typed-dom/dom': 23
5079
5186
  }
5080
5187
  ],
5081
- 90: [
5188
+ 92: [
5082
5189
  function (_dereq_, module, exports) {
5083
5190
  'use strict';
5084
5191
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -5107,14 +5214,14 @@ require = function () {
5107
5214
  }));
5108
5215
  },
5109
5216
  {
5110
- '../../../combinator': 24,
5111
- '../../util': 131,
5112
- './account': 88,
5113
- './hashtag': 93,
5217
+ '../../../combinator': 25,
5218
+ '../../util': 133,
5219
+ './account': 90,
5220
+ './hashtag': 95,
5114
5221
  'typed-dom/dom': 23
5115
5222
  }
5116
5223
  ],
5117
- 91: [
5224
+ 93: [
5118
5225
  function (_dereq_, module, exports) {
5119
5226
  'use strict';
5120
5227
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -5131,12 +5238,12 @@ require = function () {
5131
5238
  ]));
5132
5239
  },
5133
5240
  {
5134
- '../../../combinator': 24,
5135
- '../../source': 125,
5241
+ '../../../combinator': 25,
5242
+ '../../source': 127,
5136
5243
  'typed-dom/dom': 23
5137
5244
  }
5138
5245
  ],
5139
- 92: [
5246
+ 94: [
5140
5247
  function (_dereq_, module, exports) {
5141
5248
  'use strict';
5142
5249
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -5159,14 +5266,14 @@ require = function () {
5159
5266
  })]));
5160
5267
  },
5161
5268
  {
5162
- '../../../combinator': 24,
5163
- '../../source': 125,
5164
- '../link': 111,
5165
- './hashtag': 93,
5269
+ '../../../combinator': 25,
5270
+ '../../source': 127,
5271
+ '../link': 113,
5272
+ './hashtag': 95,
5166
5273
  'typed-dom/dom': 23
5167
5274
  }
5168
5275
  ],
5169
- 93: [
5276
+ 95: [
5170
5277
  function (_dereq_, module, exports) {
5171
5278
  'use strict';
5172
5279
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -5194,13 +5301,13 @@ require = function () {
5194
5301
  }, (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
5302
  },
5196
5303
  {
5197
- '../../../combinator': 24,
5198
- '../../source': 125,
5199
- '../link': 111,
5304
+ '../../../combinator': 25,
5305
+ '../../source': 127,
5306
+ '../link': 113,
5200
5307
  'typed-dom/dom': 23
5201
5308
  }
5202
5309
  ],
5203
- 94: [
5310
+ 96: [
5204
5311
  function (_dereq_, module, exports) {
5205
5312
  'use strict';
5206
5313
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -5233,12 +5340,12 @@ require = function () {
5233
5340
  ])));
5234
5341
  },
5235
5342
  {
5236
- '../../../combinator': 24,
5237
- '../../source': 125,
5238
- '../link': 111
5343
+ '../../../combinator': 25,
5344
+ '../../source': 127,
5345
+ '../link': 113
5239
5346
  }
5240
5347
  ],
5241
- 95: [
5348
+ 97: [
5242
5349
  function (_dereq_, module, exports) {
5243
5350
  'use strict';
5244
5351
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -5282,15 +5389,15 @@ require = function () {
5282
5389
  ])));
5283
5390
  },
5284
5391
  {
5285
- '../../combinator': 24,
5286
- '../inline': 85,
5287
- '../source': 125,
5392
+ '../../combinator': 25,
5393
+ '../inline': 87,
5394
+ '../source': 127,
5288
5395
  'spica/array': 6,
5289
5396
  'spica/global': 13,
5290
5397
  'typed-dom/dom': 23
5291
5398
  }
5292
5399
  ],
5293
- 96: [
5400
+ 98: [
5294
5401
  function (_dereq_, module, exports) {
5295
5402
  'use strict';
5296
5403
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -5306,11 +5413,11 @@ require = function () {
5306
5413
  }
5307
5414
  },
5308
5415
  {
5309
- '../../combinator': 24,
5416
+ '../../combinator': 25,
5310
5417
  'typed-dom/dom': 23
5311
5418
  }
5312
5419
  ],
5313
- 97: [
5420
+ 99: [
5314
5421
  function (_dereq_, module, exports) {
5315
5422
  'use strict';
5316
5423
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -5333,15 +5440,15 @@ require = function () {
5333
5440
  ]), ([, fence]) => fence.length, [])))));
5334
5441
  },
5335
5442
  {
5336
- '../../combinator': 24,
5337
- '../inline': 85,
5338
- '../source': 125,
5443
+ '../../combinator': 25,
5444
+ '../inline': 87,
5445
+ '../source': 127,
5339
5446
  'spica/array': 6,
5340
5447
  'spica/memoize': 16,
5341
5448
  'typed-dom/dom': 23
5342
5449
  }
5343
5450
  ],
5344
- 98: [
5451
+ 100: [
5345
5452
  function (_dereq_, module, exports) {
5346
5453
  'use strict';
5347
5454
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -5364,15 +5471,15 @@ require = function () {
5364
5471
  ])));
5365
5472
  },
5366
5473
  {
5367
- '../../combinator': 24,
5368
- '../inline': 85,
5369
- '../source': 125,
5370
- '../util': 131,
5474
+ '../../combinator': 25,
5475
+ '../inline': 87,
5476
+ '../source': 127,
5477
+ '../util': 133,
5371
5478
  'spica/array': 6,
5372
5479
  'typed-dom/dom': 23
5373
5480
  }
5374
5481
  ],
5375
- 99: [
5482
+ 101: [
5376
5483
  function (_dereq_, module, exports) {
5377
5484
  'use strict';
5378
5485
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -5397,16 +5504,16 @@ require = function () {
5397
5504
  ])));
5398
5505
  },
5399
5506
  {
5400
- '../../combinator': 24,
5401
- '../inline': 85,
5402
- '../source': 125,
5403
- '../util': 131,
5404
- './strong': 118,
5507
+ '../../combinator': 25,
5508
+ '../inline': 87,
5509
+ '../source': 127,
5510
+ '../util': 133,
5511
+ './strong': 120,
5405
5512
  'spica/array': 6,
5406
5513
  'typed-dom/dom': 23
5407
5514
  }
5408
5515
  ],
5409
- 100: [
5516
+ 102: [
5410
5517
  function (_dereq_, module, exports) {
5411
5518
  'use strict';
5412
5519
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -5479,16 +5586,16 @@ require = function () {
5479
5586
  ])));
5480
5587
  },
5481
5588
  {
5482
- '../../combinator': 24,
5483
- '../inline': 85,
5484
- '../source': 125,
5485
- '../util': 131,
5486
- './strong': 118,
5589
+ '../../combinator': 25,
5590
+ '../inline': 87,
5591
+ '../source': 127,
5592
+ '../util': 133,
5593
+ './strong': 120,
5487
5594
  'spica/array': 6,
5488
5595
  'typed-dom/dom': 23
5489
5596
  }
5490
5597
  ],
5491
- 101: [
5598
+ 103: [
5492
5599
  function (_dereq_, module, exports) {
5493
5600
  'use strict';
5494
5601
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -5515,12 +5622,12 @@ require = function () {
5515
5622
  }]);
5516
5623
  },
5517
5624
  {
5518
- '../../combinator': 24,
5519
- '../source': 125,
5625
+ '../../combinator': 25,
5626
+ '../source': 127,
5520
5627
  'spica/global': 13
5521
5628
  }
5522
5629
  ],
5523
- 102: [
5630
+ 104: [
5524
5631
  function (_dereq_, module, exports) {
5525
5632
  'use strict';
5526
5633
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -5539,13 +5646,13 @@ require = function () {
5539
5646
  ]));
5540
5647
  },
5541
5648
  {
5542
- '../../combinator': 24,
5543
- './extension/index': 103,
5544
- './extension/label': 106,
5545
- './extension/placeholder': 107
5649
+ '../../combinator': 25,
5650
+ './extension/index': 105,
5651
+ './extension/label': 108,
5652
+ './extension/placeholder': 109
5546
5653
  }
5547
5654
  ],
5548
- 103: [
5655
+ 105: [
5549
5656
  function (_dereq_, module, exports) {
5550
5657
  'use strict';
5551
5658
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -5605,17 +5712,17 @@ require = function () {
5605
5712
  ])));
5606
5713
  },
5607
5714
  {
5608
- '../../../combinator': 24,
5609
- '../../inline': 85,
5610
- '../../source': 125,
5611
- '../../util': 131,
5612
- './indexee': 104,
5715
+ '../../../combinator': 25,
5716
+ '../../inline': 87,
5717
+ '../../source': 127,
5718
+ '../../util': 133,
5719
+ './indexee': 106,
5613
5720
  'spica/array': 6,
5614
5721
  'spica/global': 13,
5615
5722
  'typed-dom/dom': 23
5616
5723
  }
5617
5724
  ],
5618
- 104: [
5725
+ 106: [
5619
5726
  function (_dereq_, module, exports) {
5620
5727
  'use strict';
5621
5728
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -5672,12 +5779,12 @@ require = function () {
5672
5779
  exports.text = text;
5673
5780
  },
5674
5781
  {
5675
- '../../../combinator': 24,
5782
+ '../../../combinator': 25,
5676
5783
  'spica/global': 13,
5677
5784
  'typed-dom/dom': 23
5678
5785
  }
5679
5786
  ],
5680
- 105: [
5787
+ 107: [
5681
5788
  function (_dereq_, module, exports) {
5682
5789
  'use strict';
5683
5790
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -5697,12 +5804,12 @@ require = function () {
5697
5804
  })]));
5698
5805
  },
5699
5806
  {
5700
- '../../../combinator': 24,
5701
- './index': 103,
5807
+ '../../../combinator': 25,
5808
+ './index': 105,
5702
5809
  'typed-dom/dom': 23
5703
5810
  }
5704
5811
  ],
5705
- 106: [
5812
+ 108: [
5706
5813
  function (_dereq_, module, exports) {
5707
5814
  'use strict';
5708
5815
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -5753,14 +5860,14 @@ require = function () {
5753
5860
  }
5754
5861
  },
5755
5862
  {
5756
- '../../../combinator': 24,
5757
- '../../source': 125,
5863
+ '../../../combinator': 25,
5864
+ '../../source': 127,
5758
5865
  'spica/array': 6,
5759
5866
  'spica/global': 13,
5760
5867
  'typed-dom/dom': 23
5761
5868
  }
5762
5869
  ],
5763
- 107: [
5870
+ 109: [
5764
5871
  function (_dereq_, module, exports) {
5765
5872
  'use strict';
5766
5873
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -5788,15 +5895,15 @@ require = function () {
5788
5895
  ]))));
5789
5896
  },
5790
5897
  {
5791
- '../../../combinator': 24,
5792
- '../../inline': 85,
5793
- '../../source': 125,
5794
- '../../util': 131,
5898
+ '../../../combinator': 25,
5899
+ '../../inline': 87,
5900
+ '../../source': 127,
5901
+ '../../util': 133,
5795
5902
  'spica/array': 6,
5796
5903
  'typed-dom/dom': 23
5797
5904
  }
5798
5905
  ],
5799
- 108: [
5906
+ 110: [
5800
5907
  function (_dereq_, module, exports) {
5801
5908
  'use strict';
5802
5909
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -5948,10 +6055,10 @@ require = function () {
5948
6055
  exports.attributes = attributes;
5949
6056
  },
5950
6057
  {
5951
- '../../combinator': 24,
5952
- '../inline': 85,
5953
- '../source': 125,
5954
- '../util': 131,
6058
+ '../../combinator': 25,
6059
+ '../inline': 87,
6060
+ '../source': 127,
6061
+ '../util': 133,
5955
6062
  'spica/alias': 5,
5956
6063
  'spica/array': 6,
5957
6064
  'spica/cache': 8,
@@ -5960,7 +6067,7 @@ require = function () {
5960
6067
  'typed-dom/dom': 23
5961
6068
  }
5962
6069
  ],
5963
- 109: [
6070
+ 111: [
5964
6071
  function (_dereq_, module, exports) {
5965
6072
  'use strict';
5966
6073
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -5991,13 +6098,13 @@ require = function () {
5991
6098
  })((0, dom_1.html)('b')));
5992
6099
  },
5993
6100
  {
5994
- '../../combinator': 24,
6101
+ '../../combinator': 25,
5995
6102
  'spica/global': 13,
5996
6103
  'spica/memoize': 16,
5997
6104
  'typed-dom/dom': 23
5998
6105
  }
5999
6106
  ],
6000
- 110: [
6107
+ 112: [
6001
6108
  function (_dereq_, module, exports) {
6002
6109
  'use strict';
6003
6110
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -6020,15 +6127,15 @@ require = function () {
6020
6127
  ])));
6021
6128
  },
6022
6129
  {
6023
- '../../combinator': 24,
6024
- '../inline': 85,
6025
- '../source': 125,
6026
- '../util': 131,
6130
+ '../../combinator': 25,
6131
+ '../inline': 87,
6132
+ '../source': 127,
6133
+ '../util': 133,
6027
6134
  'spica/array': 6,
6028
6135
  'typed-dom/dom': 23
6029
6136
  }
6030
6137
  ],
6031
- 111: [
6138
+ 113: [
6032
6139
  function (_dereq_, module, exports) {
6033
6140
  'use strict';
6034
6141
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -6158,20 +6265,20 @@ require = function () {
6158
6265
  }
6159
6266
  },
6160
6267
  {
6161
- '../../combinator': 24,
6162
- '../../combinator/data/parser': 44,
6163
- '../autolink': 59,
6164
- '../inline': 85,
6165
- '../source': 125,
6166
- '../util': 131,
6167
- './html': 108,
6268
+ '../../combinator': 25,
6269
+ '../../combinator/data/parser': 45,
6270
+ '../autolink': 60,
6271
+ '../inline': 87,
6272
+ '../source': 127,
6273
+ '../util': 133,
6274
+ './html': 110,
6168
6275
  'spica/alias': 5,
6169
6276
  'spica/global': 13,
6170
6277
  'spica/url': 21,
6171
6278
  'typed-dom/dom': 23
6172
6279
  }
6173
6280
  ],
6174
- 112: [
6281
+ 114: [
6175
6282
  function (_dereq_, module, exports) {
6176
6283
  'use strict';
6177
6284
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -6194,15 +6301,15 @@ require = function () {
6194
6301
  ])));
6195
6302
  },
6196
6303
  {
6197
- '../../combinator': 24,
6198
- '../inline': 85,
6199
- '../source': 125,
6200
- '../util': 131,
6304
+ '../../combinator': 25,
6305
+ '../inline': 87,
6306
+ '../source': 127,
6307
+ '../util': 133,
6201
6308
  'spica/array': 6,
6202
6309
  'typed-dom/dom': 23
6203
6310
  }
6204
6311
  ],
6205
- 113: [
6312
+ 115: [
6206
6313
  function (_dereq_, module, exports) {
6207
6314
  'use strict';
6208
6315
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -6239,12 +6346,12 @@ require = function () {
6239
6346
  ])), '}', true)));
6240
6347
  },
6241
6348
  {
6242
- '../../combinator': 24,
6243
- '../source': 125,
6349
+ '../../combinator': 25,
6350
+ '../source': 127,
6244
6351
  'typed-dom/dom': 23
6245
6352
  }
6246
6353
  ],
6247
- 114: [
6354
+ 116: [
6248
6355
  function (_dereq_, module, exports) {
6249
6356
  'use strict';
6250
6357
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -6388,11 +6495,11 @@ require = function () {
6388
6495
  }
6389
6496
  },
6390
6497
  {
6391
- '../../combinator': 24,
6392
- '../source': 125,
6393
- './html': 108,
6394
- './htmlentity': 109,
6395
- './link': 111,
6498
+ '../../combinator': 25,
6499
+ '../source': 127,
6500
+ './html': 110,
6501
+ './htmlentity': 111,
6502
+ './link': 113,
6396
6503
  'spica/alias': 5,
6397
6504
  'spica/array': 6,
6398
6505
  'spica/global': 13,
@@ -6400,7 +6507,7 @@ require = function () {
6400
6507
  'typed-dom/dom': 23
6401
6508
  }
6402
6509
  ],
6403
- 115: [
6510
+ 117: [
6404
6511
  function (_dereq_, module, exports) {
6405
6512
  'use strict';
6406
6513
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -6449,15 +6556,15 @@ require = function () {
6449
6556
  }
6450
6557
  },
6451
6558
  {
6452
- '../../combinator': 24,
6453
- '../inline': 85,
6454
- '../source': 125,
6455
- '../util': 131,
6559
+ '../../combinator': 25,
6560
+ '../inline': 87,
6561
+ '../source': 127,
6562
+ '../util': 133,
6456
6563
  'spica/global': 13,
6457
6564
  'typed-dom/dom': 23
6458
6565
  }
6459
6566
  ],
6460
- 116: [
6567
+ 118: [
6461
6568
  function (_dereq_, module, exports) {
6462
6569
  'use strict';
6463
6570
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -6559,17 +6666,17 @@ require = function () {
6559
6666
  }
6560
6667
  },
6561
6668
  {
6562
- '../../combinator': 24,
6563
- '../../combinator/data/parser': 44,
6564
- '../source': 125,
6565
- '../util': 131,
6566
- './htmlentity': 109,
6669
+ '../../combinator': 25,
6670
+ '../../combinator/data/parser': 45,
6671
+ '../source': 127,
6672
+ '../util': 133,
6673
+ './htmlentity': 111,
6567
6674
  'spica/array': 6,
6568
6675
  'spica/global': 13,
6569
6676
  'typed-dom/dom': 23
6570
6677
  }
6571
6678
  ],
6572
- 117: [
6679
+ 119: [
6573
6680
  function (_dereq_, module, exports) {
6574
6681
  'use strict';
6575
6682
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -6583,12 +6690,12 @@ require = function () {
6583
6690
  }, (0, combinator_1.open)('!', url_1.url)), (0, combinator_1.convert)(source => `!{ ${ source.slice(1) } }`, (0, combinator_1.union)([media_1.media])));
6584
6691
  },
6585
6692
  {
6586
- '../../combinator': 24,
6587
- './autolink/url': 94,
6588
- './media': 114
6693
+ '../../combinator': 25,
6694
+ './autolink/url': 96,
6695
+ './media': 116
6589
6696
  }
6590
6697
  ],
6591
- 118: [
6698
+ 120: [
6592
6699
  function (_dereq_, module, exports) {
6593
6700
  'use strict';
6594
6701
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -6611,15 +6718,15 @@ require = function () {
6611
6718
  ])));
6612
6719
  },
6613
6720
  {
6614
- '../../combinator': 24,
6615
- '../inline': 85,
6616
- '../source': 125,
6617
- '../util': 131,
6721
+ '../../combinator': 25,
6722
+ '../inline': 87,
6723
+ '../source': 127,
6724
+ '../util': 133,
6618
6725
  'spica/array': 6,
6619
6726
  'typed-dom/dom': 23
6620
6727
  }
6621
6728
  ],
6622
- 119: [
6729
+ 121: [
6623
6730
  function (_dereq_, module, exports) {
6624
6731
  'use strict';
6625
6732
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -6662,14 +6769,14 @@ require = function () {
6662
6769
  ]));
6663
6770
  },
6664
6771
  {
6665
- '../../combinator': 24,
6666
- '../source': 125,
6772
+ '../../combinator': 25,
6773
+ '../source': 127,
6667
6774
  'spica/array': 6,
6668
6775
  'spica/global': 13,
6669
6776
  'typed-dom/dom': 23
6670
6777
  }
6671
6778
  ],
6672
- 120: [
6779
+ 122: [
6673
6780
  function (_dereq_, module, exports) {
6674
6781
  'use strict';
6675
6782
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -6734,12 +6841,12 @@ require = function () {
6734
6841
  }
6735
6842
  },
6736
6843
  {
6737
- '../combinator': 24,
6738
- './locale/ja': 121,
6844
+ '../combinator': 25,
6845
+ './locale/ja': 123,
6739
6846
  'typed-dom/dom': 23
6740
6847
  }
6741
6848
  ],
6742
- 121: [
6849
+ 123: [
6743
6850
  function (_dereq_, module, exports) {
6744
6851
  'use strict';
6745
6852
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -6759,7 +6866,7 @@ require = function () {
6759
6866
  },
6760
6867
  {}
6761
6868
  ],
6762
- 122: [
6869
+ 124: [
6763
6870
  function (_dereq_, module, exports) {
6764
6871
  'use strict';
6765
6872
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -6922,14 +7029,14 @@ require = function () {
6922
7029
  }
6923
7030
  },
6924
7031
  {
6925
- '../inline/extension/label': 106,
7032
+ '../inline/extension/label': 108,
6926
7033
  'spica/array': 6,
6927
7034
  'spica/global': 13,
6928
7035
  'spica/multimap': 17,
6929
7036
  'typed-dom/dom': 23
6930
7037
  }
6931
7038
  ],
6932
- 123: [
7039
+ 125: [
6933
7040
  function (_dereq_, module, exports) {
6934
7041
  'use strict';
6935
7042
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -7054,14 +7161,14 @@ require = function () {
7054
7161
  }
7055
7162
  },
7056
7163
  {
7057
- '../inline/extension/indexee': 104,
7164
+ '../inline/extension/indexee': 106,
7058
7165
  'spica/global': 13,
7059
7166
  'spica/memoize': 16,
7060
7167
  'spica/multimap': 17,
7061
7168
  'typed-dom/dom': 23
7062
7169
  }
7063
7170
  ],
7064
- 124: [
7171
+ 126: [
7065
7172
  function (_dereq_, module, exports) {
7066
7173
  'use strict';
7067
7174
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -7105,17 +7212,17 @@ require = function () {
7105
7212
  exports.validate = validate;
7106
7213
  },
7107
7214
  {
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,
7215
+ '../combinator': 25,
7216
+ '../combinator/data/parser': 45,
7217
+ './block/codeblock': 63,
7218
+ './block/extension': 65,
7219
+ './block/heading': 74,
7220
+ './block/mathblock': 78,
7221
+ './source': 127,
7115
7222
  'spica/global': 13
7116
7223
  }
7117
7224
  ],
7118
- 125: [
7225
+ 127: [
7119
7226
  function (_dereq_, module, exports) {
7120
7227
  'use strict';
7121
7228
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -7187,14 +7294,14 @@ require = function () {
7187
7294
  });
7188
7295
  },
7189
7296
  {
7190
- './source/escapable': 126,
7191
- './source/line': 127,
7192
- './source/str': 128,
7193
- './source/text': 129,
7194
- './source/unescapable': 130
7297
+ './source/escapable': 128,
7298
+ './source/line': 129,
7299
+ './source/str': 130,
7300
+ './source/text': 131,
7301
+ './source/unescapable': 132
7195
7302
  }
7196
7303
  ],
7197
- 126: [
7304
+ 128: [
7198
7305
  function (_dereq_, module, exports) {
7199
7306
  'use strict';
7200
7307
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -7241,11 +7348,11 @@ require = function () {
7241
7348
  });
7242
7349
  },
7243
7350
  {
7244
- '../../combinator': 24,
7245
- './text': 129
7351
+ '../../combinator': 25,
7352
+ './text': 131
7246
7353
  }
7247
7354
  ],
7248
- 127: [
7355
+ 129: [
7249
7356
  function (_dereq_, module, exports) {
7250
7357
  'use strict';
7251
7358
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -7266,11 +7373,11 @@ require = function () {
7266
7373
  ] : global_1.undefined);
7267
7374
  },
7268
7375
  {
7269
- '../../combinator': 24,
7376
+ '../../combinator': 25,
7270
7377
  'spica/global': 13
7271
7378
  }
7272
7379
  ],
7273
- 128: [
7380
+ 130: [
7274
7381
  function (_dereq_, module, exports) {
7275
7382
  'use strict';
7276
7383
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -7323,11 +7430,11 @@ require = function () {
7323
7430
  exports.stropt = stropt;
7324
7431
  },
7325
7432
  {
7326
- '../../combinator': 24,
7433
+ '../../combinator': 25,
7327
7434
  'spica/global': 13
7328
7435
  }
7329
7436
  ],
7330
- 129: [
7437
+ 131: [
7331
7438
  function (_dereq_, module, exports) {
7332
7439
  'use strict';
7333
7440
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -7438,13 +7545,13 @@ require = function () {
7438
7545
  exports.isAlphanumeric = isAlphanumeric;
7439
7546
  },
7440
7547
  {
7441
- '../../combinator': 24,
7442
- './str': 128,
7548
+ '../../combinator': 25,
7549
+ './str': 130,
7443
7550
  'spica/global': 13,
7444
7551
  'typed-dom/dom': 23
7445
7552
  }
7446
7553
  ],
7447
- 130: [
7554
+ 132: [
7448
7555
  function (_dereq_, module, exports) {
7449
7556
  'use strict';
7450
7557
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -7478,11 +7585,11 @@ require = function () {
7478
7585
  });
7479
7586
  },
7480
7587
  {
7481
- '../../combinator': 24,
7482
- './text': 129
7588
+ '../../combinator': 25,
7589
+ './text': 131
7483
7590
  }
7484
7591
  ],
7485
- 131: [
7592
+ 133: [
7486
7593
  function (_dereq_, module, exports) {
7487
7594
  'use strict';
7488
7595
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -7637,17 +7744,17 @@ require = function () {
7637
7744
  exports.stringify = stringify;
7638
7745
  },
7639
7746
  {
7640
- '../combinator': 24,
7641
- '../combinator/data/parser': 44,
7642
- './api/normalize': 57,
7643
- './inline/htmlentity': 109,
7644
- './source': 125,
7747
+ '../combinator': 25,
7748
+ '../combinator/data/parser': 45,
7749
+ './api/normalize': 58,
7750
+ './inline/htmlentity': 111,
7751
+ './source': 127,
7645
7752
  'spica/array': 6,
7646
7753
  'spica/global': 13,
7647
7754
  'spica/memoize': 16
7648
7755
  }
7649
7756
  ],
7650
- 132: [
7757
+ 134: [
7651
7758
  function (_dereq_, module, exports) {
7652
7759
  'use strict';
7653
7760
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -7660,9 +7767,9 @@ require = function () {
7660
7767
  }
7661
7768
  });
7662
7769
  },
7663
- { './renderer/render': 133 }
7770
+ { './renderer/render': 135 }
7664
7771
  ],
7665
- 133: [
7772
+ 135: [
7666
7773
  function (_dereq_, module, exports) {
7667
7774
  'use strict';
7668
7775
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -7671,6 +7778,7 @@ require = function () {
7671
7778
  const code_1 = _dereq_('./render/code');
7672
7779
  const math_1 = _dereq_('./render/math');
7673
7780
  const media_1 = _dereq_('./render/media');
7781
+ const query_1 = _dereq_('typed-dom/query');
7674
7782
  const memoize_1 = _dereq_('spica/memoize');
7675
7783
  const selector = 'img.media:not(.invalid):not([src])[data-src], a > :not(img).media:not(.invalid), pre.code:not(.invalid), .math:not(.invalid)';
7676
7784
  const extend = (0, memoize_1.reduce)(opts => ({
@@ -7682,10 +7790,8 @@ require = function () {
7682
7790
  function render(source, opts = {}) {
7683
7791
  opts = extend(opts);
7684
7792
  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);
7793
+ for (const el of (0, query_1.querySelectorAll)(source, selector)) {
7794
+ render_(base, el, opts);
7689
7795
  }
7690
7796
  }
7691
7797
  exports.render = render;
@@ -7718,14 +7824,15 @@ require = function () {
7718
7824
  }
7719
7825
  },
7720
7826
  {
7721
- './render/code': 134,
7722
- './render/math': 135,
7723
- './render/media': 136,
7827
+ './render/code': 136,
7828
+ './render/math': 137,
7829
+ './render/media': 138,
7724
7830
  'spica/global': 13,
7725
- 'spica/memoize': 16
7831
+ 'spica/memoize': 16,
7832
+ 'typed-dom/query': 24
7726
7833
  }
7727
7834
  ],
7728
- 134: [
7835
+ 136: [
7729
7836
  function (_dereq_, module, exports) {
7730
7837
  (function (global) {
7731
7838
  (function () {
@@ -7783,7 +7890,7 @@ require = function () {
7783
7890
  },
7784
7891
  {}
7785
7892
  ],
7786
- 135: [
7893
+ 137: [
7787
7894
  function (_dereq_, module, exports) {
7788
7895
  'use strict';
7789
7896
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -7809,7 +7916,7 @@ require = function () {
7809
7916
  'typed-dom/dom': 23
7810
7917
  }
7811
7918
  ],
7812
- 136: [
7919
+ 138: [
7813
7920
  function (_dereq_, module, exports) {
7814
7921
  'use strict';
7815
7922
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -7840,17 +7947,17 @@ require = function () {
7840
7947
  exports.media = media;
7841
7948
  },
7842
7949
  {
7843
- './media/audio': 137,
7844
- './media/image': 138,
7845
- './media/pdf': 139,
7846
- './media/twitter': 140,
7847
- './media/video': 141,
7848
- './media/youtube': 142,
7950
+ './media/audio': 139,
7951
+ './media/image': 140,
7952
+ './media/pdf': 141,
7953
+ './media/twitter': 142,
7954
+ './media/video': 143,
7955
+ './media/youtube': 144,
7849
7956
  'spica/memoize': 16,
7850
7957
  'spica/url': 21
7851
7958
  }
7852
7959
  ],
7853
- 137: [
7960
+ 139: [
7854
7961
  function (_dereq_, module, exports) {
7855
7962
  'use strict';
7856
7963
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -7875,7 +7982,7 @@ require = function () {
7875
7982
  },
7876
7983
  { 'typed-dom/dom': 23 }
7877
7984
  ],
7878
- 138: [
7985
+ 140: [
7879
7986
  function (_dereq_, module, exports) {
7880
7987
  'use strict';
7881
7988
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -7912,7 +8019,7 @@ require = function () {
7912
8019
  'typed-dom/dom': 23
7913
8020
  }
7914
8021
  ],
7915
- 139: [
8022
+ 141: [
7916
8023
  function (_dereq_, module, exports) {
7917
8024
  'use strict';
7918
8025
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -7937,11 +8044,11 @@ require = function () {
7937
8044
  exports.pdf = pdf;
7938
8045
  },
7939
8046
  {
7940
- '../../../parser': 51,
8047
+ '../../../parser': 52,
7941
8048
  'typed-dom/dom': 23
7942
8049
  }
7943
8050
  ],
7944
- 140: [
8051
+ 142: [
7945
8052
  function (_dereq_, module, exports) {
7946
8053
  (function (global) {
7947
8054
  (function () {
@@ -7975,7 +8082,7 @@ require = function () {
7975
8082
  const id = 'twitter-wjs';
7976
8083
  if (global_1.document.getElementById(id))
7977
8084
  return;
7978
- global_1.document.body.appendChild(html('script', {
8085
+ global_1.document.body.appendChild((0, dom_1.html)('script', {
7979
8086
  id,
7980
8087
  src: 'https://platform.twitter.com/widgets.js'
7981
8088
  }));
@@ -7991,12 +8098,12 @@ require = function () {
7991
8098
  }.call(this, typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : typeof window !== 'undefined' ? window : {}));
7992
8099
  },
7993
8100
  {
7994
- '../../../parser': 51,
8101
+ '../../../parser': 52,
7995
8102
  'spica/global': 13,
7996
8103
  'typed-dom/dom': 23
7997
8104
  }
7998
8105
  ],
7999
- 141: [
8106
+ 143: [
8000
8107
  function (_dereq_, module, exports) {
8001
8108
  'use strict';
8002
8109
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -8028,7 +8135,7 @@ require = function () {
8028
8135
  'typed-dom/dom': 23
8029
8136
  }
8030
8137
  ],
8031
- 142: [
8138
+ 144: [
8032
8139
  function (_dereq_, module, exports) {
8033
8140
  'use strict';
8034
8141
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -8062,7 +8169,7 @@ require = function () {
8062
8169
  },
8063
8170
  { 'typed-dom/dom': 23 }
8064
8171
  ],
8065
- 143: [
8172
+ 145: [
8066
8173
  function (_dereq_, module, exports) {
8067
8174
  'use strict';
8068
8175
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -8097,18 +8204,19 @@ require = function () {
8097
8204
  });
8098
8205
  },
8099
8206
  {
8100
- './util/info': 144,
8101
- './util/quote': 145,
8102
- './util/scope': 146,
8103
- './util/toc': 147
8207
+ './util/info': 146,
8208
+ './util/quote': 147,
8209
+ './util/scope': 148,
8210
+ './util/toc': 149
8104
8211
  }
8105
8212
  ],
8106
- 144: [
8213
+ 146: [
8107
8214
  function (_dereq_, module, exports) {
8108
8215
  'use strict';
8109
8216
  Object.defineProperty(exports, '__esModule', { value: true });
8110
8217
  exports.info = void 0;
8111
8218
  const scope_1 = _dereq_('./scope');
8219
+ const query_1 = _dereq_('typed-dom/query');
8112
8220
  function info(source) {
8113
8221
  const match = (0, scope_1.scope)(source, '.invalid');
8114
8222
  return {
@@ -8127,21 +8235,17 @@ require = function () {
8127
8235
  media: find('.media[data-src]')
8128
8236
  };
8129
8237
  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;
8238
+ return (0, query_1.querySelectorAll)(source, selector).filter(match);
8138
8239
  }
8139
8240
  }
8140
8241
  exports.info = info;
8141
8242
  },
8142
- { './scope': 146 }
8243
+ {
8244
+ './scope': 148,
8245
+ 'typed-dom/query': 24
8246
+ }
8143
8247
  ],
8144
- 145: [
8248
+ 147: [
8145
8249
  function (_dereq_, module, exports) {
8146
8250
  'use strict';
8147
8251
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -8226,13 +8330,13 @@ require = function () {
8226
8330
  }
8227
8331
  },
8228
8332
  {
8229
- '../combinator/data/parser': 44,
8230
- '../parser/block/reply/cite': 80,
8333
+ '../combinator/data/parser': 45,
8334
+ '../parser/block/reply/cite': 82,
8231
8335
  'spica/global': 13,
8232
8336
  'typed-dom/dom': 23
8233
8337
  }
8234
8338
  ],
8235
- 146: [
8339
+ 148: [
8236
8340
  function (_dereq_, module, exports) {
8237
8341
  'use strict';
8238
8342
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -8258,7 +8362,7 @@ require = function () {
8258
8362
  },
8259
8363
  { 'spica/global': 13 }
8260
8364
  ],
8261
- 147: [
8365
+ 149: [
8262
8366
  function (_dereq_, module, exports) {
8263
8367
  'use strict';
8264
8368
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -8362,9 +8466,9 @@ require = function () {
8362
8466
  __exportStar(_dereq_('./src/renderer'), exports);
8363
8467
  },
8364
8468
  {
8365
- './src/parser': 51,
8366
- './src/renderer': 132,
8367
- './src/util': 143,
8469
+ './src/parser': 52,
8470
+ './src/renderer': 134,
8471
+ './src/util': 145,
8368
8472
  'spica/global': 13
8369
8473
  }
8370
8474
  ]