(window['webpackJsonp'] = window['webpackJsonp'] || []).push([
  [34],
  {
    MZF8: function (e, t, a) {
      'use strict';
      var n = a('ogwx');
      a.d(t, 'a', function () {
        return n['b'];
      });
      a('VCU9');
    },
    RZMt: function (e, t, a) {},
    Zxc8: function (e, t, a) {
      'use strict';
      a.r(t);
      var n = a('q1tI'),
        l = a.n(n),
        r = a('k3GJ'),
        c = a('MZF8'),
        i = a('dEAq'),
        o = a('H1Ra');
      a('RZMt');
      function m(e, t) {
        return p(e) || E(e, t) || u(e, t) || d();
      }
      function d() {
        throw new TypeError(
          'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.',
        );
      }
      function u(e, t) {
        if (e) {
          if ('string' === typeof e) return s(e, t);
          var a = Object.prototype.toString.call(e).slice(8, -1);
          return (
            'Object' === a && e.constructor && (a = e.constructor.name),
            'Map' === a || 'Set' === a
              ? Array.from(e)
              : 'Arguments' === a ||
                /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)
              ? s(e, t)
              : void 0
          );
        }
      }
      function s(e, t) {
        (null == t || t > e.length) && (t = e.length);
        for (var a = 0, n = new Array(t); a < t; a++) n[a] = e[a];
        return n;
      }
      function E(e, t) {
        var a =
          null == e
            ? null
            : ('undefined' !== typeof Symbol && e[Symbol.iterator]) ||
              e['@@iterator'];
        if (null != a) {
          var n,
            l,
            r = [],
            c = !0,
            i = !1;
          try {
            for (a = a.call(e); !(c = (n = a.next()).done); c = !0)
              if ((r.push(n.value), t && r.length === t)) break;
          } catch (o) {
            (i = !0), (l = o);
          } finally {
            try {
              c || null == a['return'] || a['return']();
            } finally {
              if (i) throw l;
            }
          }
          return r;
        }
      }
      function p(e) {
        if (Array.isArray(e)) return e;
      }
      function f(e, t) {
        var a,
          n =
            null === (a = e.match(/\.(\w+)$/)) || void 0 === a ? void 0 : a[1];
        return n || (n = t.tsx ? 'tsx' : 'jsx'), n;
      }
      var b = function (e) {
        var t,
          a,
          d,
          u = Object(n['useRef'])(),
          s = Object(n['useContext'])(i['context']),
          E = s.locale,
          p = Object(i['useLocaleProps'])(E, e),
          b = Object(i['useDemoUrl'])(p.identifier),
          h = p.demoUrl || b,
          v =
            (null === c['a'] || void 0 === c['a']
              ? void 0
              : c['a'].location.hash) === '#'.concat(p.identifier),
          g = 1 === Object.keys(p.sources).length,
          k = Object(i['useCodeSandbox'])(
            (
              null === (t = p.hideActions) || void 0 === t
                ? void 0
                : t.includes('CSB')
            )
              ? null
              : p,
          ),
          w = Object(i['useRiddle'])(
            (
              null === (a = p.hideActions) || void 0 === a
                ? void 0
                : a.includes('RIDDLE')
            )
              ? null
              : p,
          ),
          y = Object(i['useMotions'])(p.motions || [], u.current),
          _ = m(y, 2),
          N = _[0],
          A = _[1],
          x = Object(i['useCopy'])(),
          L = m(x, 2),
          j = L[0],
          C = L[1],
          O = Object(n['useState'])('_'),
          I = m(O, 2),
          S = I[0],
          T = I[1],
          R = Object(n['useState'])(f(S, p.sources[S])),
          M = m(R, 2),
          P = M[0],
          V = M[1],
          U = Object(n['useState'])(Boolean(p.defaultShowCode)),
          H = m(U, 2),
          Z = H[0],
          J = H[1],
          q = Object(n['useState'])(Math.random()),
          F = m(q, 2),
          $ = F[0],
          B = F[1],
          D = p.sources[S][P] || p.sources[S].content,
          G = Object(i['useTSPlaygroundUrl'])(E, D),
          X = Object(n['useRef'])(),
          z = Object(i['usePrefersColor'])(),
          K = m(z, 1),
          W = K[0];
        function Q(e) {
          T(e), V(f(e, p.sources[e]));
        }
        return (
          Object(n['useEffect'])(
            function () {
              B(Math.random());
            },
            [W],
          ),
          l.a.createElement(
            'div',
            {
              style: p.style,
              className: [
                p.className,
                '__dumi-default-previewer',
                v ? '__dumi-default-previewer-target' : '',
              ]
                .filter(Boolean)
                .join(' '),
              id: p.identifier,
              'data-debug': p.debug || void 0,
              'data-iframe': p.iframe || void 0,
            },
            p.iframe &&
              l.a.createElement('div', {
                className: '__dumi-default-previewer-browser-nav',
              }),
            l.a.createElement(
              'div',
              {
                ref: u,
                className: '__dumi-default-previewer-demo',
                style: {
                  transform: p.transform ? 'translate(0, 0)' : void 0,
                  padding:
                    p.compact || (p.iframe && !1 !== p.compact) ? '0' : void 0,
                  background: p.background,
                },
              },
              p.iframe
                ? l.a.createElement('iframe', {
                    title: 'dumi-previewer',
                    style: {
                      height: String(p.iframe).replace(/(\d)$/, '$1px'),
                    },
                    key: $,
                    src: h,
                    ref: X,
                  })
                : p.children,
            ),
            l.a.createElement(
              'div',
              {
                className: '__dumi-default-previewer-desc',
                'data-title': p.title,
              },
              p.title &&
                l.a.createElement(
                  i['AnchorLink'],
                  { to: '#'.concat(p.identifier) },
                  p.title,
                ),
              p.description &&
                l.a.createElement('div', {
                  dangerouslySetInnerHTML: { __html: p.description },
                }),
            ),
            l.a.createElement(
              'div',
              { className: '__dumi-default-previewer-actions' },
              k &&
                l.a.createElement('button', {
                  title: 'Open demo on CodeSandbox.io',
                  className: '__dumi-default-icon',
                  role: 'codesandbox',
                  onClick: k,
                }),
              w &&
                l.a.createElement('button', {
                  title: 'Open demo on Riddle',
                  className: '__dumi-default-icon',
                  role: 'riddle',
                  onClick: w,
                }),
              p.motions &&
                l.a.createElement('button', {
                  title: 'Execute motions',
                  className: '__dumi-default-icon',
                  role: 'motions',
                  disabled: A,
                  onClick: function () {
                    return N();
                  },
                }),
              p.iframe &&
                l.a.createElement('button', {
                  title: 'Reload demo iframe page',
                  className: '__dumi-default-icon',
                  role: 'refresh',
                  onClick: function () {
                    return B(Math.random());
                  },
                }),
              !(null === (d = p.hideActions) || void 0 === d
                ? void 0
                : d.includes('EXTERNAL')) &&
                l.a.createElement(
                  i['Link'],
                  { target: '_blank', to: h },
                  l.a.createElement('button', {
                    title: 'Open demo in new tab',
                    className: '__dumi-default-icon',
                    role: 'open-demo',
                    type: 'button',
                  }),
                ),
              l.a.createElement('span', null),
              l.a.createElement('button', {
                title: 'Copy source code',
                className: '__dumi-default-icon',
                role: 'copy',
                'data-status': C,
                onClick: function () {
                  return j(D);
                },
              }),
              'tsx' === P &&
                Z &&
                l.a.createElement(
                  i['Link'],
                  { target: '_blank', to: G },
                  l.a.createElement('button', {
                    title: 'Get JSX via TypeScript Playground',
                    className: '__dumi-default-icon',
                    role: 'change-tsx',
                    type: 'button',
                  }),
                ),
              l.a.createElement('button', {
                title: 'Toggle source code panel',
                className: '__dumi-default-icon'.concat(
                  Z ? ' __dumi-default-btn-expand' : '',
                ),
                role: 'source',
                type: 'button',
                onClick: function () {
                  return J(!Z);
                },
              }),
            ),
            Z &&
              l.a.createElement(
                'div',
                { className: '__dumi-default-previewer-source-wrapper' },
                !g &&
                  l.a.createElement(
                    r['b'],
                    {
                      className: '__dumi-default-previewer-source-tab',
                      prefixCls: '__dumi-default-tabs',
                      moreIcon: '\xb7\xb7\xb7',
                      defaultActiveKey: S,
                      onChange: Q,
                    },
                    Object.keys(p.sources).map(function (e) {
                      return l.a.createElement(r['a'], {
                        tab:
                          '_' === e ? 'index.'.concat(f(e, p.sources[e])) : e,
                        key: e,
                      });
                    }),
                  ),
                l.a.createElement(
                  'div',
                  { className: '__dumi-default-previewer-source' },
                  l.a.createElement(o['a'], { code: D, lang: P, showCopy: !1 }),
                ),
              ),
          )
        );
      };
      t['default'] = b;
    },
    cakp: function (e, t, a) {
      'use strict';
      a.r(t);
      var n = a('q1tI'),
        l = a.n(n),
        r = a('dEAq'),
        c = a('Zxc8'),
        i = a('H1Ra'),
        o = a('JjdP'),
        m = l.a.memo(o['default']['image-basic'].component),
        d = l.a.memo(o['default']['image-error'].component),
        u = l.a.memo(o['default']['image-load'].component),
        s = l.a.memo(o['default']['image-many'].component),
        E = l.a.memo(o['default']['image-photo'].component),
        p = l.a.memo(o['default']['image-custom'].component);
      t['default'] = (e) => (
        l.a.useEffect(() => {
          var t;
          null !== e &&
            void 0 !== e &&
            null !== (t = e.location) &&
            void 0 !== t &&
            t.hash &&
            r['AnchorLink'].scrollToAnchor(
              decodeURIComponent(e.location.hash.slice(1)),
            );
        }, []),
        l.a.createElement(
          l.a.Fragment,
          null,
          l.a.createElement(
            l.a.Fragment,
            null,
            l.a.createElement(
              'div',
              { className: 'markdown' },
              l.a.createElement(
                'h1',
                { id: 'image-\u56fe\u7247' },
                l.a.createElement(
                  r['AnchorLink'],
                  {
                    to: '#image-\u56fe\u7247',
                    'aria-hidden': 'true',
                    tabIndex: -1,
                  },
                  l.a.createElement('span', { className: 'icon icon-link' }),
                ),
                'Image \u56fe\u7247',
              ),
              l.a.createElement(
                'p',
                null,
                '\u53ef\u9884\u89c8\u7684\u56fe\u7247\u3002',
              ),
              l.a.createElement(
                'h2',
                { id: '\u4f55\u65f6\u4f7f\u7528' },
                l.a.createElement(
                  r['AnchorLink'],
                  {
                    to: '#\u4f55\u65f6\u4f7f\u7528',
                    'aria-hidden': 'true',
                    tabIndex: -1,
                  },
                  l.a.createElement('span', { className: 'icon icon-link' }),
                ),
                '\u4f55\u65f6\u4f7f\u7528',
              ),
              l.a.createElement(
                'ul',
                null,
                l.a.createElement(
                  'li',
                  null,
                  '\u9700\u8981\u5c55\u793a\u56fe\u7247\u65f6\u4f7f\u7528\u3002',
                ),
                l.a.createElement(
                  'li',
                  null,
                  '\u52a0\u8f7d\u5927\u56fe\u65f6\u663e\u793a loading \u6216\u52a0\u8f7d\u5931\u8d25\u65f6\u5bb9\u9519\u5904\u7406\u3002',
                ),
              ),
              l.a.createElement(
                'h2',
                { id: '\u4ee3\u7801\u6f14\u793a' },
                l.a.createElement(
                  r['AnchorLink'],
                  {
                    to: '#\u4ee3\u7801\u6f14\u793a',
                    'aria-hidden': 'true',
                    tabIndex: -1,
                  },
                  l.a.createElement('span', { className: 'icon icon-link' }),
                ),
                '\u4ee3\u7801\u6f14\u793a',
              ),
              l.a.createElement(
                'h3',
                { id: '\u57fa\u672c\u7528\u6cd5' },
                l.a.createElement(
                  r['AnchorLink'],
                  {
                    to: '#\u57fa\u672c\u7528\u6cd5',
                    'aria-hidden': 'true',
                    tabIndex: -1,
                  },
                  l.a.createElement('span', { className: 'icon icon-link' }),
                ),
                '\u57fa\u672c\u7528\u6cd5',
              ),
            ),
            l.a.createElement(
              c['default'],
              o['default']['image-basic'].previewerProps,
              l.a.createElement(m, null),
            ),
            l.a.createElement(
              'div',
              { className: 'markdown' },
              l.a.createElement(
                'h3',
                { id: '\u5bb9\u9519\u5904\u7406' },
                l.a.createElement(
                  r['AnchorLink'],
                  {
                    to: '#\u5bb9\u9519\u5904\u7406',
                    'aria-hidden': 'true',
                    tabIndex: -1,
                  },
                  l.a.createElement('span', { className: 'icon icon-link' }),
                ),
                '\u5bb9\u9519\u5904\u7406',
              ),
            ),
            l.a.createElement(
              c['default'],
              o['default']['image-error'].previewerProps,
              l.a.createElement(d, null),
            ),
            l.a.createElement(
              'div',
              { className: 'markdown' },
              l.a.createElement(
                'h3',
                { id: '\u6e10\u8fdb\u52a0\u8f7d' },
                l.a.createElement(
                  r['AnchorLink'],
                  {
                    to: '#\u6e10\u8fdb\u52a0\u8f7d',
                    'aria-hidden': 'true',
                    tabIndex: -1,
                  },
                  l.a.createElement('span', { className: 'icon icon-link' }),
                ),
                '\u6e10\u8fdb\u52a0\u8f7d',
              ),
            ),
            l.a.createElement(
              c['default'],
              o['default']['image-load'].previewerProps,
              l.a.createElement(u, null),
            ),
            l.a.createElement(
              'div',
              { className: 'markdown' },
              l.a.createElement(
                'h3',
                { id: '\u591a\u5f20\u56fe\u7247\u9884\u89c8' },
                l.a.createElement(
                  r['AnchorLink'],
                  {
                    to: '#\u591a\u5f20\u56fe\u7247\u9884\u89c8',
                    'aria-hidden': 'true',
                    tabIndex: -1,
                  },
                  l.a.createElement('span', { className: 'icon icon-link' }),
                ),
                '\u591a\u5f20\u56fe\u7247\u9884\u89c8',
              ),
            ),
            l.a.createElement(
              c['default'],
              o['default']['image-many'].previewerProps,
              l.a.createElement(s, null),
            ),
            l.a.createElement(
              'div',
              { className: 'markdown' },
              l.a.createElement(
                'h3',
                { id: '\u76f8\u518c\u6a21\u5f0f' },
                l.a.createElement(
                  r['AnchorLink'],
                  {
                    to: '#\u76f8\u518c\u6a21\u5f0f',
                    'aria-hidden': 'true',
                    tabIndex: -1,
                  },
                  l.a.createElement('span', { className: 'icon icon-link' }),
                ),
                '\u76f8\u518c\u6a21\u5f0f',
              ),
            ),
            l.a.createElement(
              c['default'],
              o['default']['image-photo'].previewerProps,
              l.a.createElement(E, null),
            ),
            l.a.createElement(
              'div',
              { className: 'markdown' },
              l.a.createElement(
                'h3',
                { id: '\u81ea\u5b9a\u4e49\u9884\u89c8\u56fe\u7247' },
                l.a.createElement(
                  r['AnchorLink'],
                  {
                    to: '#\u81ea\u5b9a\u4e49\u9884\u89c8\u56fe\u7247',
                    'aria-hidden': 'true',
                    tabIndex: -1,
                  },
                  l.a.createElement('span', { className: 'icon icon-link' }),
                ),
                '\u81ea\u5b9a\u4e49\u9884\u89c8\u56fe\u7247',
              ),
            ),
            l.a.createElement(
              c['default'],
              o['default']['image-custom'].previewerProps,
              l.a.createElement(p, null),
            ),
            l.a.createElement(
              'div',
              { className: 'markdown' },
              l.a.createElement(
                'h2',
                { id: 'api' },
                l.a.createElement(
                  r['AnchorLink'],
                  { to: '#api', 'aria-hidden': 'true', tabIndex: -1 },
                  l.a.createElement('span', { className: 'icon icon-link' }),
                ),
                'API',
              ),
              l.a.createElement(
                'table',
                null,
                l.a.createElement(
                  'thead',
                  null,
                  l.a.createElement(
                    'tr',
                    null,
                    l.a.createElement('th', null, '\u53c2\u6570'),
                    l.a.createElement('th', null, '\u8bf4\u660e'),
                    l.a.createElement('th', null, '\u7c7b\u578b'),
                    l.a.createElement('th', null, '\u9ed8\u8ba4\u503c'),
                    l.a.createElement('th', null, '\u7248\u672c'),
                  ),
                ),
                l.a.createElement(
                  'tbody',
                  null,
                  l.a.createElement(
                    'tr',
                    null,
                    l.a.createElement('td', null, 'alt'),
                    l.a.createElement('td', null, '\u56fe\u50cf\u63cf\u8ff0'),
                    l.a.createElement('td', null, 'string'),
                    l.a.createElement('td', null, '-'),
                    l.a.createElement('td', null, '4.6.0'),
                  ),
                  l.a.createElement(
                    'tr',
                    null,
                    l.a.createElement('td', null, 'fallback'),
                    l.a.createElement(
                      'td',
                      null,
                      '\u52a0\u8f7d\u5931\u8d25\u5bb9\u9519\u5730\u5740',
                    ),
                    l.a.createElement('td', null, 'string'),
                    l.a.createElement('td', null, '-'),
                    l.a.createElement('td', null, '4.6.0'),
                  ),
                  l.a.createElement(
                    'tr',
                    null,
                    l.a.createElement('td', null, 'height'),
                    l.a.createElement('td', null, '\u56fe\u50cf\u9ad8\u5ea6'),
                    l.a.createElement('td', null, 'string | number'),
                    l.a.createElement('td', null, '-'),
                    l.a.createElement('td', null, '4.6.0'),
                  ),
                  l.a.createElement(
                    'tr',
                    null,
                    l.a.createElement('td', null, 'placeholder'),
                    l.a.createElement(
                      'td',
                      null,
                      '\u52a0\u8f7d\u5360\u4f4d, \u4e3a ',
                      l.a.createElement('code', null, 'true'),
                      ' \u65f6\u4f7f\u7528\u9ed8\u8ba4\u5360\u4f4d',
                    ),
                    l.a.createElement('td', null, 'ReactNode'),
                    l.a.createElement('td', null, '-'),
                    l.a.createElement('td', null, '4.6.0'),
                  ),
                  l.a.createElement(
                    'tr',
                    null,
                    l.a.createElement('td', null, 'preview'),
                    l.a.createElement(
                      'td',
                      null,
                      '\u9884\u89c8\u53c2\u6570\uff0c\u4e3a ',
                      l.a.createElement('code', null, 'false'),
                      ' \u65f6\u7981\u7528',
                    ),
                    l.a.createElement(
                      'td',
                      null,
                      'boolean | ',
                      l.a.createElement(
                        r['AnchorLink'],
                        { to: '#previewType' },
                        'previewType',
                      ),
                    ),
                    l.a.createElement('td', null, 'true'),
                    l.a.createElement(
                      'td',
                      null,
                      '4.6.0 ',
                      l.a.createElement(
                        r['AnchorLink'],
                        { to: '#previewType' },
                        'previewType',
                      ),
                      ':4.7.0',
                    ),
                  ),
                  l.a.createElement(
                    'tr',
                    null,
                    l.a.createElement('td', null, 'src'),
                    l.a.createElement('td', null, '\u56fe\u7247\u5730\u5740'),
                    l.a.createElement('td', null, 'string'),
                    l.a.createElement('td', null, '-'),
                    l.a.createElement('td', null, '4.6.0'),
                  ),
                  l.a.createElement(
                    'tr',
                    null,
                    l.a.createElement('td', null, 'width'),
                    l.a.createElement('td', null, '\u56fe\u50cf\u5bbd\u5ea6'),
                    l.a.createElement('td', null, 'string | number'),
                    l.a.createElement('td', null, '-'),
                    l.a.createElement('td', null, '4.6.0'),
                  ),
                  l.a.createElement(
                    'tr',
                    null,
                    l.a.createElement('td', null, 'onError'),
                    l.a.createElement(
                      'td',
                      null,
                      '\u52a0\u8f7d\u9519\u8bef\u56de\u8c03',
                    ),
                    l.a.createElement('td', null, '(event: Event) => void'),
                    l.a.createElement('td', null, '-'),
                    l.a.createElement('td', null, '4.12.0'),
                  ),
                ),
              ),
              l.a.createElement(
                'h3',
                { id: 'previewtype' },
                l.a.createElement(
                  r['AnchorLink'],
                  { to: '#previewtype', 'aria-hidden': 'true', tabIndex: -1 },
                  l.a.createElement('span', { className: 'icon icon-link' }),
                ),
                'previewType',
              ),
              l.a.createElement(i['a'], {
                code: '{\n  visible?: boolean;\n  onVisibleChange?: (visible, prevVisible) => void;\n  getContainer?: string | HTMLElement | (() => HTMLElement); // V4.8.0\n  src?: string; // V4.10.0\n  mask?: ReactNode; // V4.9.0\n  maskClassName?: string; // V4.11.0\n  current?: number; // V4.12.0 \u4ec5\u652f\u6301 PreviewGroup\u3002\n}',
                lang: 'bash',
              }),
              l.a.createElement(
                'p',
                null,
                '\u5176\u4ed6\u5c5e\u6027\u89c1 ',
                l.a.createElement(
                  r['Link'],
                  {
                    to: 'https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#Attributes',
                  },
                  '<img>',
                ),
              ),
            ),
          ),
        )
      );
    },
  },
]);
