@fle-ui/next 1.0.0-alpha.12 → 1.0.0-alpha.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.history/package_20211011190148.json +141 -0
- package/.history/package_20211011193053.json +141 -0
- package/dist/@fle-ui/next.css +2 -2
- package/dist/@fle-ui/next.css.map +1 -1
- package/dist/@fle-ui/next.js +1 -1
- package/dist/@fle-ui/next.min.css +2 -2
- package/dist/@fle-ui/next.min.css.map +1 -1
- package/dist/@fle-ui/next.min.js +1 -1
- package/docs-dist/components__affix__affix.md.js +701 -1
- package/docs-dist/components__affix__affix.md~components__alert__alert.md~components__anchor__anchor.md~components__au~00d1741d.js +22482 -1
- package/docs-dist/components__alert__alert.md.js +942 -1
- package/docs-dist/components__anchor__anchor.md.js +789 -1
- package/docs-dist/components__auto-complete__autoComplete.md.js +1145 -1
- package/docs-dist/components__avatar__avatar.md.js +854 -1
- package/docs-dist/components__back-top__backTop.md.js +581 -1
- package/docs-dist/components__badge__badge.md.js +972 -1
- package/docs-dist/components__breadcrumb__breadcrumb.md.js +914 -1
- package/docs-dist/components__button__button.md.js +1037 -1
- package/docs-dist/components__calendar__calendar.md.js +897 -1
- package/docs-dist/components__card__card.md.js +1106 -1
- package/docs-dist/components__carousel__carousel.md.js +770 -1
- package/docs-dist/components__cascader__cascader.md.js +1378 -1
- package/docs-dist/components__checkbox__checkbox.md.js +876 -1
- package/docs-dist/components__collapse__collapse.md.js +959 -1
- package/docs-dist/components__comment__comment.md.js +586 -1
- package/docs-dist/components__config-provider__configProvider.md.js +1055 -1
- package/docs-dist/components__date-picker__date-picker.md.js +2622 -1
- package/docs-dist/components__descriptions__descriptions.md.js +863 -1
- package/docs-dist/components__divider__divider.md.js +681 -1
- package/docs-dist/components__drawer__drawer.md.js +997 -1
- package/docs-dist/components__dropdown__dropdown.md.js +1170 -1
- package/docs-dist/components__empty__empty.md.js +692 -1
- package/docs-dist/components__form__form.md.js +4099 -1
- package/docs-dist/components__grid__grid.md.js +999 -1
- package/docs-dist/components__icon__icon.md.js +739 -1
- package/docs-dist/components__image__image.md.js +745 -1
- package/docs-dist/components__input-number__inputNumber.md.js +1006 -1
- package/docs-dist/components__input__input.md.js +1579 -1
- package/docs-dist/components__layout__layout.md.js +1220 -1
- package/docs-dist/components__list__list.md.js +1255 -1
- package/docs-dist/components__mentions__mentions.md.js +943 -1
- package/docs-dist/components__menu__menu.md.js +1370 -1
- package/docs-dist/components__message__message.md.js +1223 -1
- package/docs-dist/components__modal__modal.md.js +1808 -1
- package/docs-dist/components__notification__notification.md.js +1192 -1
- package/docs-dist/components__page-header__page-header.md.js +781 -1
- package/docs-dist/components__pagination__pagination.md.js +954 -1
- package/docs-dist/components__popconfirm__popconfirm.md.js +792 -1
- package/docs-dist/components__popover__popover.md.js +665 -1
- package/docs-dist/components__progress__progress.md.js +1139 -1
- package/docs-dist/components__radio__radio.md.js +999 -1
- package/docs-dist/components__rate__rate.md.js +851 -1
- package/docs-dist/components__result__result.md.js +681 -1
- package/docs-dist/components__select__select.md.js +2081 -1
- package/docs-dist/components__slider__slider.md.js +1053 -1
- package/docs-dist/components__space__space.md.js +746 -1
- package/docs-dist/components__spin__spin.md.js +730 -1
- package/docs-dist/components__statistic__statistic.md.js +827 -1
- package/docs-dist/components__steps__steps.md.js +1097 -1
- package/docs-dist/components__switch__switch.md.js +763 -1
- package/docs-dist/components__table__table.md.js +3692 -1
- package/docs-dist/components__tabs__tabs.md.js +1213 -1
- package/docs-dist/components__tag__tag.md.js +779 -1
- package/docs-dist/components__time-picker__time-picker.md.js +1232 -1
- package/docs-dist/components__timeline__timeline.md.js +799 -1
- package/docs-dist/components__tooltip__tooltip.md.js +888 -1
- package/docs-dist/components__transfer__transfer.md.js +1226 -1
- package/docs-dist/components__tree-select__tree-select.md.js +1042 -1
- package/docs-dist/components__typography__typography.md.js +1793 -1
- package/docs-dist/components__upload__upload.md.js +1798 -1
- package/docs-dist/demos_bmurcdaerb.js +603 -1
- package/docs-dist/demos_bmurcdaerb~demos_citsitats~demos_dirg~demos_drac~demos_ecaps~demos_egami~demos_egassem~demos_e~57973d2f.chunk.css +1 -1
- package/docs-dist/demos_bmurcdaerb~demos_citsitats~demos_dirg~demos_drac~demos_ecaps~demos_egami~demos_egassem~demos_e~57973d2f.js +21570 -1
- package/docs-dist/demos_citsitats.js +549 -1
- package/docs-dist/demos_daolpu.chunk.css +1 -1
- package/docs-dist/demos_daolpu.js +22680 -1
- package/docs-dist/demos_dirg.js +47 -1
- package/docs-dist/demos_drac.js +748 -1
- package/docs-dist/demos_ecaps.js +529 -1
- package/docs-dist/demos_egami.js +153 -1
- package/docs-dist/demos_egassem.js +187 -1
- package/docs-dist/demos_egdab.js +872 -1
- package/docs-dist/demos_elbat.chunk.css +1 -1
- package/docs-dist/demos_elbat.js +27626 -1
- package/docs-dist/demos_enilemit.js +627 -1
- package/docs-dist/demos_espalloc.js +705 -1
- package/docs-dist/demos_etar.js +547 -1
- package/docs-dist/demos_etelpmoc-otua.js +613 -1
- package/docs-dist/demos_gat.js +487 -1
- package/docs-dist/demos_hctiws.js +439 -1
- package/docs-dist/demos_ladom.js +791 -1
- package/docs-dist/demos_lesuorac.js +193 -1
- package/docs-dist/demos_mrifnocpop.js +671 -1
- package/docs-dist/demos_mrof.js +3082 -1
- package/docs-dist/demos_nips.js +461 -1
- package/docs-dist/demos_noitacifiton.js +765 -1
- package/docs-dist/demos_noitanigap.js +233 -1
- package/docs-dist/demos_nottub.js +847 -1
- package/docs-dist/demos_nwodpord.js +965 -1
- package/docs-dist/demos_oidar.js +340 -1
- package/docs-dist/demos_pitloot.js +204 -1
- package/docs-dist/demos_pot-kcab.js +62 -1
- package/docs-dist/demos_radnelac.js +285 -1
- package/docs-dist/demos_ratava.js +647 -1
- package/docs-dist/demos_rebmun-tupni.js +209 -1
- package/docs-dist/demos_redacsac.js +576 -1
- package/docs-dist/demos_redaeh-egap.js +761 -1
- package/docs-dist/demos_redils.js +659 -1
- package/docs-dist/demos_redivid.js +167 -1
- package/docs-dist/demos_redivorp-gifnoc.js +2154 -1
- package/docs-dist/demos_refsnart.js +774 -1
- package/docs-dist/demos_rekcip-emit.js +183 -1
- package/docs-dist/demos_rekcip-etad.js +469 -1
- package/docs-dist/demos_revopop.js +335 -1
- package/docs-dist/demos_reward.js +484 -1
- package/docs-dist/demos_rohcna.js +194 -1
- package/docs-dist/demos_sbat.chunk.css +1 -1
- package/docs-dist/demos_sbat.js +22358 -1
- package/docs-dist/demos_snoitnem.js +202 -1
- package/docs-dist/demos_snoitpircsed.js +351 -1
- package/docs-dist/demos_spets.js +910 -1
- package/docs-dist/demos_ssergorp.js +698 -1
- package/docs-dist/demos_tceles.js +1416 -1
- package/docs-dist/demos_tluser.js +530 -1
- package/docs-dist/demos_tnemmoc.js +560 -1
- package/docs-dist/demos_trela.js +341 -1
- package/docs-dist/demos_tsil.js +603 -1
- package/docs-dist/demos_tuoyal.js +872 -1
- package/docs-dist/demos_tupni.js +1245 -1
- package/docs-dist/demos_unem.js +1012 -1
- package/docs-dist/demos_xiffa.js +93 -1
- package/docs-dist/demos_xobkcehc.js +186 -1
- package/docs-dist/demos_yhpargopyt.js +798 -1
- package/docs-dist/demos_ytpme.js +433 -1
- package/docs-dist/docs__document__getting-started.md.js +193 -1
- package/docs-dist/docs__document__introduce.md.js +441 -1
- package/docs-dist/docs__document__practical-projects.md.js +117 -1
- package/docs-dist/docs__index.md.js +27 -1
- package/docs-dist/docs__story__index.md.js +89 -1
- package/docs-dist/dumi_demos.js +456 -1
- package/docs-dist/umi.js +28727 -1
- package/docs-dist/vendors~components__affix__affix.md~components__alert__alert.md~components__anchor__anchor.md~compon~3ba4f4a1.js +2590 -1
- package/docs-dist/vendors~components__affix__affix.md~components__alert__alert.md~components__anchor__anchor.md~compon~ac3aca9a.js +8970 -1
- package/docs-dist/vendors~components__affix__affix.md~components__alert__alert.md~components__anchor__anchor.md~compon~e29e5a37.js +2619 -1
- package/docs-dist/vendors~demos_bmurcdaerb~demos_citsitats~demos_daolpu~demos_dirg~demos_drac~demos_ecaps~demos_egami~~4cc402e9.js +57323 -1
- package/docs-dist/vendors~demos_daolpu~demos_elbat.js +1649 -1
- package/docs-dist/vendors~demos_daolpu~demos_elbat~demos_sbat.js +4169 -1
- package/docs-dist/vendors~demos_gat.js +4673 -1
- package/docs-dist/vendors~demos_ladom.js +1855 -1
- package/docs-dist/vendors~demos_redivorp-gifnoc.js +9666 -1
- package/docs-dist/vendors~demos_sbat.js +1601 -1
- package/docs-dist/vendors~demos_trela.js +1722 -1
- package/docs-dist/vendors~demos_tsil.js +4970 -1
- package/docs-dist/vendors~demos_tuoyal.js +748 -1
- package/docs-dist/vendors~wrappers.js +1360 -1
- package/docs-dist/wrappers.js +21 -1
- package/es/drawer/style/drawer.less +8 -4
- package/es/drawer/style/index.css +1 -1
- package/es/style/themes/default.less +57 -29
- package/lib/drawer/style/drawer.less +8 -4
- package/lib/drawer/style/index.css +1 -1
- package/lib/style/themes/default.less +57 -29
- package/package.json +1 -1
- package/report.html +1 -1
@@ -1 +1,1360 @@
|
|
1
|
-
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[142],{"0Bia":function(e,t,n){"use strict";n.r(t);var a=n("q1tI"),r=n.n(a),l=n("dEAq"),o=n("MZF8"),c=(n("mdU6"),function(e){var t=e.location,n=Object(a["useContext"])(l["context"]),c=n.base,i=n.locale,u=n.config.locales,s=u.find((function(e){var t=e.name;return t!==i}));function m(e){var n=c.replace("/".concat(i),""),a=t.pathname.replace(new RegExp("^".concat(c,"(/|$)")),"".concat(n,"$1"))||"/";if(e!==u[0].name){var r="".concat(n,"/").concat(e).replace(/\/\//,"/"),l=t.pathname.replace(c.replace(/^\/$/,"//"),"");return"".concat(r).concat(l).replace(/\/$/,"")}return a}return s?r.a.createElement("div",{className:"__dumi-default-locale-select","data-locale-count":u.length},u.length>2?r.a.createElement("select",{value:i,onChange:function(e){return o["a"].push(m(e.target.value))}},u.map((function(e){return r.a.createElement("option",{value:e.name,key:e.name},e.label)}))):r.a.createElement(l["Link"],{to:m(s.name)},s.label)):null}),i=c,u=(n("fVI1"),function(e){var t=e.onMobileMenuClick,n=e.navPrefix,o=e.location,c=e.darkPrefix,u=Object(a["useContext"])(l["context"]),s=u.base,m=u.config,f=m.mode,d=m.title,p=m.logo,h=u.nav;return r.a.createElement("div",{className:"__dumi-default-navbar","data-mode":f},r.a.createElement("button",{className:"__dumi-default-navbar-toggle",onClick:t}),r.a.createElement(l["Link"],{className:"__dumi-default-navbar-logo",style:{backgroundImage:p&&"url('".concat(p,"')")},to:s,"data-plaintext":!1===p||void 0},d),r.a.createElement("nav",null,n,h.map((function(e){var t,n=Boolean(null===(t=e.children)||void 0===t?void 0:t.length)&&r.a.createElement("ul",null,e.children.map((function(e){return r.a.createElement("li",{key:e.path},r.a.createElement(l["NavLink"],{to:e.path},e.title))})));return r.a.createElement("span",{key:e.title||e.path},e.path?r.a.createElement(l["NavLink"],{to:e.path,key:e.path},e.title):e.title,n)})),r.a.createElement("div",{className:"__dumi-default-navbar-tool"},r.a.createElement(i,{location:o}),c)))}),s=u,m=(n("hJnp"),["slugs"]);function f(){return f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},f.apply(this,arguments)}function d(e,t){if(null==e)return{};var n,a,r=p(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function p(e,t){if(null==e)return{};var n,a,r={},l=Object.keys(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}var h=function(e){var t=e.slugs,n=d(e,m);return r.a.createElement("ul",f({role:"slug-list"},n),t.filter((function(e){var t=e.depth;return t>1&&t<4})).map((function(e){return r.a.createElement("li",{key:e.heading,title:e.value,"data-depth":e.depth},r.a.createElement(l["AnchorLink"],{to:"#".concat(e.heading)},r.a.createElement("span",null,e.value)))})))},v=h,y=(n("Mpie"),function(e){var t=e.mobileMenuCollapsed,n=e.location,o=e.darkPrefix,c=Object(a["useContext"])(l["context"]),u=c.config,s=u.logo,m=u.title,f=u.description,d=u.mode,p=u.repository.url,h=c.menu,y=c.nav,g=c.base,b=c.meta,E=Boolean((b.hero||b.features||b.gapless)&&"site"===d)||!1===b.sidemenu||void 0;return r.a.createElement("div",{className:"__dumi-default-menu","data-mode":d,"data-hidden":E,"data-mobile-show":!t||void 0},r.a.createElement("div",{className:"__dumi-default-menu-inner"},r.a.createElement("div",{className:"__dumi-default-menu-header"},r.a.createElement(l["Link"],{to:g,className:"__dumi-default-menu-logo",style:{backgroundImage:s&&"url('".concat(s,"')")}}),r.a.createElement("h1",null,m),r.a.createElement("p",null,f),/github\.com/.test(p)&&"doc"===d&&r.a.createElement("p",null,r.a.createElement("object",{type:"image/svg+xml",data:"https://img.shields.io/github/stars".concat(p.match(/((\/[^\/]+){2})$/)[1],"?style=social")}))),r.a.createElement("div",{className:"__dumi-default-menu-mobile-area"},!!y.length&&r.a.createElement("ul",{className:"__dumi-default-menu-nav-list"},y.map((function(e){var t,n=Boolean(null===(t=e.children)||void 0===t?void 0:t.length)&&r.a.createElement("ul",null,e.children.map((function(e){return r.a.createElement("li",{key:e.path||e.title},r.a.createElement(l["NavLink"],{to:e.path},e.title))})));return r.a.createElement("li",{key:e.path||e.title},e.path?r.a.createElement(l["NavLink"],{to:e.path},e.title):e.title,n)}))),r.a.createElement(i,{location:n}),o),r.a.createElement("ul",{className:"__dumi-default-menu-list"},!E&&h.map((function(e){var t,a=Boolean(null===(t=b.slugs)||void 0===t?void 0:t.length),o=e.children&&Boolean(e.children.length),c="menu"===b.toc&&!o&&a&&e.path===n.pathname.replace(/([^^])\/$/,"$1"),i=o?e.children.map((function(e){return e.path})):[e.path,n.pathname.startsWith("".concat(e.path,"/"))?n.pathname:null];return r.a.createElement("li",{key:e.path||e.title},r.a.createElement(l["NavLink"],{to:e.path,isActive:function(){return i.includes(n.pathname)}},e.title),Boolean(e.children&&e.children.length)&&r.a.createElement("ul",null,e.children.map((function(e){return r.a.createElement("li",{key:e.path},r.a.createElement(l["NavLink"],{to:e.path,exact:!0},r.a.createElement("span",null,e.title)),Boolean("menu"===b.toc&&"undefined"!==typeof window&&e.path===n.pathname&&a)&&r.a.createElement(v,{slugs:b.slugs}))}))),c&&r.a.createElement(v,{slugs:b.slugs}))})))))}),g=y;n("AK2Z");function b(){return b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},b.apply(this,arguments)}function E(e,t){return S(e)||O(e,t)||k(e,t)||w()}function w(){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 k(e,t){if(e){if("string"===typeof e)return _(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_(e,t):void 0}}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function O(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,l=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(a=n.next()).done);o=!0)if(l.push(a.value),t&&l.length===t)break}catch(i){c=!0,r=i}finally{try{o||null==n["return"]||n["return"]()}finally{if(c)throw r}}return l}}function S(e){if(Array.isArray(e))return e}var j=function(e,t){var n=t.toLowerCase().indexOf(e.toLowerCase()),a=e.length;return r.a.createElement(r.a.Fragment,null,t.substring(0,n),r.a.createElement("span",{className:"__dumi-default-search-highlight"},t.substring(n,n+a)),t.substring(n+a,t.length))},A=function(){var e=Object(a["useState"])(""),t=E(e,2),n=t[0],o=t[1],c=Object(a["useState"])([]),i=E(c,2),u=i[0],s=i[1],m=Object(a["useRef"])(),f=Object(l["useSearch"])(n),d=r.a.createElement("svg",{className:"__dumi-default-search-empty",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2347",width:"32",height:"32"},r.a.createElement("path",{d:"M855.6 427.2H168.5c-12.7 0-24.4 6.9-30.6 18L4.4 684.7C1.5 689.9 0 695.8 0 701.8v287.1c0 19.4 15.7 35.1 35.1 35.1H989c19.4 0 35.1-15.7 35.1-35.1V701.8c0-6-1.5-11.8-4.4-17.1L886.2 445.2c-6.2-11.1-17.9-18-30.6-18zM673.4 695.6c-16.5 0-30.8 11.5-34.3 27.7-12.7 58.5-64.8 102.3-127.2 102.3s-114.5-43.8-127.2-102.3c-3.5-16.1-17.8-27.7-34.3-27.7H119c-26.4 0-43.3-28-31.1-51.4l81.7-155.8c6.1-11.6 18-18.8 31.1-18.8h622.4c13 0 25 7.2 31.1 18.8l81.7 155.8c12.2 23.4-4.7 51.4-31.1 51.4H673.4zM819.9 209.5c-1-1.8-2.1-3.7-3.2-5.5-9.8-16.6-31.1-22.2-47.8-12.6L648.5 261c-17 9.8-22.7 31.6-12.6 48.4 0.9 1.4 1.7 2.9 2.5 4.4 9.5 17 31.2 22.8 48 13L807 257.3c16.7-9.7 22.4-31 12.9-47.8zM375.4 261.1L255 191.6c-16.7-9.6-38-4-47.8 12.6-1.1 1.8-2.1 3.6-3.2 5.5-9.5 16.8-3.8 38.1 12.9 47.8L337.3 327c16.9 9.7 38.6 4 48-13.1 0.8-1.5 1.7-2.9 2.5-4.4 10.2-16.8 4.5-38.6-12.4-48.4zM512 239.3h2.5c19.5 0.3 35.5-15.5 35.5-35.1v-139c0-19.3-15.6-34.9-34.8-35.1h-6.4C489.6 30.3 474 46 474 65.2v139c0 19.5 15.9 35.4 35.5 35.1h2.5z"}));return Object(a["useEffect"])((function(){Array.isArray(f)?s(f):"function"===typeof f&&f(".".concat(m.current.className))}),[f]),r.a.createElement("div",{className:"__dumi-default-search"},r.a.createElement("input",b({className:"__dumi-default-search-input",type:"search",ref:m},Array.isArray(f)?{value:n,onChange:function(e){return o(e.target.value)}}:{})),r.a.createElement("ul",null,u.length>0&&u.map((function(e){var t;return r.a.createElement("li",{key:e.path,onClick:function(){return o("")}},r.a.createElement(l["AnchorLink"],{to:e.path},(null===(t=e.parent)||void 0===t?void 0:t.title)&&r.a.createElement("span",null,e.parent.title),j(n,e.title)))})),0===u.length&&n&&r.a.createElement("li",{style:{textAlign:"center"}},d)))};n("Zkgb");function x(e,t){return C(e)||P(e,t)||N(e,t)||M()}function M(){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 N(e,t){if(e){if("string"===typeof e)return L(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?L(e,t):void 0}}function L(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function P(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,l=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(a=n.next()).done);o=!0)if(l.push(a.value),t&&l.length===t)break}catch(i){c=!0,r=i}finally{try{o||null==n["return"]||n["return"]()}finally{if(c)throw r}}return l}}function C(e){if(Array.isArray(e))return e}var z=function(e){var t=e.darkSwitch,n=e.onDarkSwitchClick,a=e.isSideMenu,o=["dark","light","auto"],c=Object(l["usePrefersColor"])(),i=x(c,2),u=i[0],s=i[1],m=u,f=r.a.createElement("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4026",width:"22",height:"22"},r.a.createElement("path",{d:"M915.2 476.16h-43.968c-24.704 0-44.736 16-44.736 35.84s20.032 35.904 44.736 35.904H915.2c24.768 0 44.8-16.064 44.8-35.904s-20.032-35.84-44.8-35.84zM512 265.6c-136.704 0-246.464 109.824-246.464 246.4 0 136.704 109.76 246.464 246.464 246.464S758.4 648.704 758.4 512c0-136.576-109.696-246.4-246.4-246.4z m0 425.6c-99.008 0-179.2-80.128-179.2-179.2 0-98.944 80.192-179.2 179.2-179.2S691.2 413.056 691.2 512c0 99.072-80.192 179.2-179.2 179.2zM197.44 512c0-19.84-19.136-35.84-43.904-35.84H108.8c-24.768 0-44.8 16-44.8 35.84s20.032 35.904 44.8 35.904h44.736c24.768 0 43.904-16.064 43.904-35.904zM512 198.464c19.776 0 35.84-20.032 35.84-44.8v-44.8C547.84 84.032 531.84 64 512 64s-35.904 20.032-35.904 44.8v44.8c0 24.768 16.128 44.864 35.904 44.864z m0 627.136c-19.776 0-35.904 20.032-35.904 44.8v44.736C476.096 940.032 492.16 960 512 960s35.84-20.032 35.84-44.8v-44.736c0-24.768-16.064-44.864-35.84-44.864z m329.92-592.832c17.472-17.536 20.288-43.072 6.4-57.024-14.016-14.016-39.488-11.2-57.024 6.336-4.736 4.864-26.496 26.496-31.36 31.36-17.472 17.472-20.288 43.008-6.336 57.024 13.952 14.016 39.488 11.2 57.024-6.336 4.8-4.864 26.496-26.56 31.296-31.36zM213.376 759.936c-4.864 4.8-26.56 26.624-31.36 31.36-17.472 17.472-20.288 42.944-6.4 56.96 14.016 13.952 39.552 11.2 57.024-6.336 4.8-4.736 26.56-26.496 31.36-31.36 17.472-17.472 20.288-43.008 6.336-56.96-14.016-13.952-39.552-11.072-56.96 6.336z m19.328-577.92c-17.536-17.536-43.008-20.352-57.024-6.336-14.08 14.016-11.136 39.488 6.336 57.024 4.864 4.864 26.496 26.56 31.36 31.424 17.536 17.408 43.008 20.288 56.96 6.336 14.016-14.016 11.264-39.488-6.336-57.024-4.736-4.864-26.496-26.56-31.296-31.424z m527.168 628.608c4.864 4.864 26.624 26.624 31.36 31.424 17.536 17.408 43.072 20.224 57.088 6.336 13.952-14.016 11.072-39.552-6.4-57.024-4.864-4.8-26.56-26.496-31.36-31.36-17.472-17.408-43.072-20.288-57.024-6.336-13.952 14.016-11.008 39.488 6.336 56.96z","p-id":"4027"})),d=r.a.createElement("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3854",width:"22",height:"22"},r.a.createElement("path",{d:"M991.816611 674.909091a69.166545 69.166545 0 0 0-51.665455-23.272727 70.795636 70.795636 0 0 0-27.438545 5.585454A415.674182 415.674182 0 0 1 754.993338 698.181818c-209.594182 0-393.472-184.785455-393.472-395.636363 0-52.363636 38.539636-119.621818 69.515637-173.614546 4.887273-8.610909 9.634909-16.756364 14.103272-24.901818A69.818182 69.818182 0 0 0 384.631156 0a70.842182 70.842182 0 0 0-27.438545 5.585455C161.678429 90.298182 14.362065 307.898182 14.362065 512c0 282.298182 238.824727 512 532.38691 512a522.286545 522.286545 0 0 0 453.957818-268.334545A69.818182 69.818182 0 0 0 991.816611 674.909091zM546.679156 954.181818c-248.785455 0-462.941091-192-462.941091-442.181818 0-186.647273 140.637091-372.829091 300.939637-442.181818-36.817455 65.629091-92.578909 151.970909-92.578909 232.727273 0 250.181818 214.109091 465.454545 462.917818 465.454545a488.331636 488.331636 0 0 0 185.181091-46.545455 453.003636 453.003636 0 0 1-393.565091 232.727273z m103.656728-669.323636l-14.266182 83.781818a34.909091 34.909091 0 0 0 50.362182 36.770909l74.775272-39.563636 74.752 39.563636a36.142545 36.142545 0 0 0 16.174546 3.956364 34.909091 34.909091 0 0 0 34.210909-40.727273l-14.289455-83.781818 60.509091-59.345455a35.025455 35.025455 0 0 0-19.223272-59.578182l-83.61891-12.101818-37.376-76.101818a34.56 34.56 0 0 0-62.254545 0l-37.376 76.101818-83.618909 12.101818a34.909091 34.909091 0 0 0-19.246546 59.578182z m70.423272-64.698182a34.280727 34.280727 0 0 0 26.135273-19.083636l14.312727-29.090909 14.336 29.090909a34.257455 34.257455 0 0 0 26.135273 19.083636l32.046546 4.887273-23.272728 22.574545a35.234909 35.234909 0 0 0-10.007272 30.952727l5.46909 32.116364-28.625454-15.127273a34.490182 34.490182 0 0 0-32.302546 0l-28.695272 15.127273 5.469091-32.116364a35.141818 35.141818 0 0 0-9.984-30.952727l-23.272728-22.574545z","p-id":"3855"})),p=r.a.createElement("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"11002",width:"22",height:"22"},r.a.createElement("path",{d:"M127.658667 492.885333c0-51.882667 10.24-101.717333 30.378666-149.162666s47.786667-88.064 81.92-122.538667 75.093333-61.781333 122.538667-81.92 96.938667-30.378667 149.162667-30.378667 101.717333 10.24 149.162666 30.378667 88.405333 47.786667 122.88 81.92 61.781333 75.093333 81.92 122.538667 30.378667 96.938667 30.378667 149.162666-10.24 101.717333-30.378667 149.162667-47.786667 88.405333-81.92 122.88-75.093333 61.781333-122.88 81.92-97.28 30.378667-149.162666 30.378667-101.717333-10.24-149.162667-30.378667-88.064-47.786667-122.538667-81.92-61.781333-75.093333-81.92-122.88-30.378667-96.938667-30.378666-149.162667z m329.045333 0c0 130.048 13.994667 244.394667 41.984 343.381334h12.970667c46.762667 0 91.136-9.216 133.461333-27.306667s78.848-42.666667 109.568-73.386667 54.954667-67.242667 73.386667-109.568 27.306667-86.698667 27.306666-133.461333c0-46.421333-9.216-90.794667-27.306666-133.12s-42.666667-78.848-73.386667-109.568-67.242667-54.954667-109.568-73.386667-86.698667-27.306667-133.461333-27.306666h-11.605334c-28.672 123.562667-43.349333 237.909333-43.349333 343.722666z","p-id":"11003"})),h=o.filter((function(e){return e!==m})),v=function(e,t){!a&&n&&n(e),t!==m&&s(t)},y=function(e){switch(e){case"dark":return r.a.createElement("button",{key:"dumi-dark-btn-moon",title:"Dark theme",onClick:function(t){return v(t,e)},className:"__dumi-default-dark-moon ".concat(e===m?"__dumi-default-dark-switch-active":"")},d);case"light":return r.a.createElement("button",{key:"dumi-dark-btn-sun",title:"Light theme",onClick:function(t){return v(t,e)},className:"__dumi-default-dark-sun ".concat(e===m?"__dumi-default-dark-switch-active":"")},f);case"auto":return r.a.createElement("button",{key:"dumi-dark-btn-auto",title:"Default to system",onClick:function(t){return v(t,e)},className:"__dumi-default-dark-auto ".concat(e===m?"__dumi-default-dark-switch-active":"")},p);default:}};return r.a.createElement("div",{className:"__dumi-default-dark"},r.a.createElement("div",{className:"__dumi-default-dark-switch ".concat(!a&&t?"__dumi-default-dark-switch-open":"")},a?o.map((function(e){return y(e)})):y(m)),!a&&t&&r.a.createElement("div",{className:"__dumi-default-dark-switch-list"},h.map((function(e){return y(e)}))))},I=z;n("AQPS");function $(e,t){return U(e)||T(e,t)||D(e,t)||B()}function B(){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 D(e,t){if(e){if("string"===typeof e)return H(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?H(e,t):void 0}}function H(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function T(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,l=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(a=n.next()).done);o=!0)if(l.push(a.value),t&&l.length===t)break}catch(i){c=!0,r=i}finally{try{o||null==n["return"]||n["return"]()}finally{if(c)throw r}}return l}}function U(e){if(Array.isArray(e))return e}var R=function(e){return r.a.createElement(r.a.Fragment,null,r.a.createElement("div",{className:"__dumi-default-layout-hero"},e.image&&r.a.createElement("img",{src:e.image}),r.a.createElement("h1",null,e.title),r.a.createElement("div",{dangerouslySetInnerHTML:{__html:e.desc}}),e.actions&&e.actions.map((function(e){return r.a.createElement(l["Link"],{to:e.link,key:e.text},r.a.createElement("button",{type:"button"},e.text))}))))},Z=function(e){return r.a.createElement("div",{className:"__dumi-default-layout-features"},e.map((function(e){return r.a.createElement("dl",{key:e.title,style:{backgroundImage:e.icon?"url(".concat(e.icon,")"):void 0}},e.link?r.a.createElement(l["Link"],{to:e.link},r.a.createElement("dt",null,e.title)):r.a.createElement("dt",null,e.title),r.a.createElement("dd",{dangerouslySetInnerHTML:{__html:e.desc}}))})))},J=function(e){var t,n,o=e.children,c=e.location,i=Object(a["useContext"])(l["context"]),u=i.config,m=u.mode,f=u.repository,d=(i.nav,i.meta),p=i.locale,h=f.url,y=f.branch,b=f.platform,E=Object(a["useState"])(!0),w=$(E,2),k=w[0],_=w[1],O=Object(a["useState"])(!1),S=$(O,2),j=S[0],x=S[1],M="site"===m,N=M&&d.hero,L=M&&d.features,P=!1!==d.sidemenu&&!N&&!L&&!d.gapless,C=!N&&!L&&Boolean(null===(t=d.slugs)||void 0===t?void 0:t.length)&&("content"===d.toc||void 0===d.toc)&&!d.gapless,z=/^zh|cn$/i.test(p),B=new Date(d.updatedTime),D="".concat(B.toLocaleDateString([],{hour12:!1})," ").concat(B.toLocaleTimeString([],{hour12:!1})),H={github:"GitHub",gitlab:"GitLab"}[(null===(n=(h||"").match(/(github|gitlab)/))||void 0===n?void 0:n[1])||"nothing"]||b;return r.a.createElement("div",{className:"__dumi-default-layout","data-route":c.pathname,"data-show-sidemenu":String(P),"data-show-slugs":String(C),"data-site-mode":M,"data-gapless":String(!!d.gapless),onClick:function(){x(!1),k||_(!0)}},r.a.createElement(s,{location:c,navPrefix:r.a.createElement(A,null),darkPrefix:r.a.createElement(I,{darkSwitch:j,onDarkSwitchClick:function(e){x((function(e){return!e})),e.stopPropagation()},isSideMenu:!1}),onMobileMenuClick:function(e){_((function(e){return!e})),e.stopPropagation()}}),r.a.createElement(g,{darkPrefix:r.a.createElement(I,{darkSwitch:j,isSideMenu:!0}),mobileMenuCollapsed:k,location:c}),C&&r.a.createElement(v,{slugs:d.slugs,className:"__dumi-default-layout-toc"}),N&&R(d.hero),L&&Z(d.features),r.a.createElement("div",{className:"__dumi-default-layout-content"},o,!N&&!L&&d.filePath&&!d.gapless&&r.a.createElement("div",{className:"__dumi-default-layout-footer-meta"},H&&r.a.createElement(l["Link"],{to:"".concat(h,"/edit/").concat(y,"/").concat(d.filePath)},z?"\u5728 ".concat(H," \u4e0a\u7f16\u8f91\u6b64\u9875"):"Edit this doc on ".concat(H)),r.a.createElement("span",{"data-updated-text":z?"\u6700\u540e\u66f4\u65b0\u65f6\u95f4\uff1a":"Last update: "},D)),(N||L)&&d.footer&&r.a.createElement("div",{className:"__dumi-default-layout-footer",dangerouslySetInnerHTML:{__html:d.footer}})))};t["default"]=J},AK2Z:function(e,t,n){},AQPS:function(e,t,n){},KcUY:function(e,t,n){"use strict";function a(e){return a="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n("q1tI")),l=c(n("RGYn")),o=c(n("nLCz"));function c(e){return e&&e.__esModule?e:{default:e}}function i(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}function u(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==a(e)&&"function"!==typeof e)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var r={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var c=l?Object.getOwnPropertyDescriptor(e,o):null;c&&(c.get||c.set)?Object.defineProperty(r,o,c):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}function s(e,t){return h(e)||p(e,t)||f(e,t)||m()}function m(){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 f(e,t){if(e){if("string"===typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function p(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,l=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(a=n.next()).done);o=!0)if(l.push(a.value),t&&l.length===t)break}catch(i){c=!0,r=i}finally{try{o||null==n["return"]||n["return"]()}finally{if(c)throw r}}return l}}function h(e){if(Array.isArray(e))return e}function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=function(e,t){var n=function(){for(var e,n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];var l=a[1].replace(/([^^])\/$/,"$1");return y(y({},(null===(e=a[0].find((function(e){var t=e.path;return t===l})))||void 0===e?void 0:e.meta)||{}),{},{__pathname:t})},a=(0,r.useState)(n(e,t)),l=s(a,2),o=l[0],c=l[1];return(0,r.useLayoutEffect)((function(){c(n(e,t))}),[t]),o},E=function(e,t){var n=function(){for(var t,n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];return(null===(t=a[0].find((function(e){return new RegExp("/".concat(e.name,"(/|$)")).test(a[1])})))||void 0===t?void 0:t.name)||e[0].name},a=(0,r.useState)(n(e,t)),l=s(a,2),o=l[0],c=l[1];return(0,r.useLayoutEffect)((function(){c(n(e,t))}),[t]),o},w=function(e,t,n){var a=function(){for(var e,t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];for(var r=n[0].navs[n[1]]||[],l="*",o=r.length-1;o>=0;o-=1){var c=r[o],i=[c].concat(c.children).filter(Boolean),u=i.find((function(e){return e.path&&new RegExp("^".concat(e.path.replace(/\.html$/,""),"(/|.|$)")).test(n[2])}));if(u){l=u.path;break}}return(null===(e=n[0].menus[n[1]])||void 0===e?void 0:e[l])||[]},l=(0,r.useState)(a(e,t,n)),o=s(l,2),c=o[0],i=o[1];return(0,r.useLayoutEffect)((function(){i(a(e,t,n))}),[e.navs,e.menus,t,n]),c},k=function(e,t,n){var a=function(){for(var t=arguments.length,a=new Array(t),r=0;r<t;r++)a[r]=arguments[r];return a[0]===a[1][0].name?a[2].path:"".concat(n.path,"/").concat(e).replace(/\/\//,"/")},l=(0,r.useState)(a(e,t,n)),o=s(l,2),c=o[0],i=o[1];return(0,r.useLayoutEffect)((function(){i(a(e,t,n))}),[e]),c},_=function e(t){var n;return null===(n=t.find((function(t){return!!t.__dumiRoot||!!t.routes&&e(t.routes)})))||void 0===n?void 0:n.routes},O=function(e){var t=e.location,n=e.route,a=e.children,c=t.pathname.replace(n.path.replace(/^\/$/,"//"),""),i=_(e.routes)||[],u=b(i,t.pathname),s=E(l.default.locales,c),m=w(l.default,s,t.pathname),f=k(s,l.default.locales,n);return r.default.createElement(o.default.Provider,{value:{config:l.default,meta:u.__pathname===t.pathname?u:{},locale:s,nav:l.default.navs[s]||[],menu:m,base:f,routes:i}},a)},S=O;t.default=S},Mpie:function(e,t,n){},Zkgb:function(e,t,n){},fVI1:function(e,t,n){},hJnp:function(e,t,n){},mdU6:function(e,t,n){}}]);
|
1
|
+
(window['webpackJsonp'] = window['webpackJsonp'] || []).push([
|
2
|
+
[142],
|
3
|
+
{
|
4
|
+
'0Bia': function (e, t, n) {
|
5
|
+
'use strict';
|
6
|
+
n.r(t);
|
7
|
+
var a = n('q1tI'),
|
8
|
+
r = n.n(a),
|
9
|
+
l = n('dEAq'),
|
10
|
+
o = n('MZF8'),
|
11
|
+
c =
|
12
|
+
(n('mdU6'),
|
13
|
+
function (e) {
|
14
|
+
var t = e.location,
|
15
|
+
n = Object(a['useContext'])(l['context']),
|
16
|
+
c = n.base,
|
17
|
+
i = n.locale,
|
18
|
+
u = n.config.locales,
|
19
|
+
s = u.find(function (e) {
|
20
|
+
var t = e.name;
|
21
|
+
return t !== i;
|
22
|
+
});
|
23
|
+
function m(e) {
|
24
|
+
var n = c.replace('/'.concat(i), ''),
|
25
|
+
a =
|
26
|
+
t.pathname.replace(
|
27
|
+
new RegExp('^'.concat(c, '(/|$)')),
|
28
|
+
''.concat(n, '$1'),
|
29
|
+
) || '/';
|
30
|
+
if (e !== u[0].name) {
|
31
|
+
var r = ''.concat(n, '/').concat(e).replace(/\/\//, '/'),
|
32
|
+
l = t.pathname.replace(c.replace(/^\/$/, '//'), '');
|
33
|
+
return ''.concat(r).concat(l).replace(/\/$/, '');
|
34
|
+
}
|
35
|
+
return a;
|
36
|
+
}
|
37
|
+
return s
|
38
|
+
? r.a.createElement(
|
39
|
+
'div',
|
40
|
+
{
|
41
|
+
className: '__dumi-default-locale-select',
|
42
|
+
'data-locale-count': u.length,
|
43
|
+
},
|
44
|
+
u.length > 2
|
45
|
+
? r.a.createElement(
|
46
|
+
'select',
|
47
|
+
{
|
48
|
+
value: i,
|
49
|
+
onChange: function (e) {
|
50
|
+
return o['a'].push(m(e.target.value));
|
51
|
+
},
|
52
|
+
},
|
53
|
+
u.map(function (e) {
|
54
|
+
return r.a.createElement(
|
55
|
+
'option',
|
56
|
+
{ value: e.name, key: e.name },
|
57
|
+
e.label,
|
58
|
+
);
|
59
|
+
}),
|
60
|
+
)
|
61
|
+
: r.a.createElement(l['Link'], { to: m(s.name) }, s.label),
|
62
|
+
)
|
63
|
+
: null;
|
64
|
+
}),
|
65
|
+
i = c,
|
66
|
+
u =
|
67
|
+
(n('fVI1'),
|
68
|
+
function (e) {
|
69
|
+
var t = e.onMobileMenuClick,
|
70
|
+
n = e.navPrefix,
|
71
|
+
o = e.location,
|
72
|
+
c = e.darkPrefix,
|
73
|
+
u = Object(a['useContext'])(l['context']),
|
74
|
+
s = u.base,
|
75
|
+
m = u.config,
|
76
|
+
f = m.mode,
|
77
|
+
d = m.title,
|
78
|
+
p = m.logo,
|
79
|
+
h = u.nav;
|
80
|
+
return r.a.createElement(
|
81
|
+
'div',
|
82
|
+
{ className: '__dumi-default-navbar', 'data-mode': f },
|
83
|
+
r.a.createElement('button', {
|
84
|
+
className: '__dumi-default-navbar-toggle',
|
85
|
+
onClick: t,
|
86
|
+
}),
|
87
|
+
r.a.createElement(
|
88
|
+
l['Link'],
|
89
|
+
{
|
90
|
+
className: '__dumi-default-navbar-logo',
|
91
|
+
style: { backgroundImage: p && "url('".concat(p, "')") },
|
92
|
+
to: s,
|
93
|
+
'data-plaintext': !1 === p || void 0,
|
94
|
+
},
|
95
|
+
d,
|
96
|
+
),
|
97
|
+
r.a.createElement(
|
98
|
+
'nav',
|
99
|
+
null,
|
100
|
+
n,
|
101
|
+
h.map(function (e) {
|
102
|
+
var t,
|
103
|
+
n =
|
104
|
+
Boolean(
|
105
|
+
null === (t = e.children) || void 0 === t
|
106
|
+
? void 0
|
107
|
+
: t.length,
|
108
|
+
) &&
|
109
|
+
r.a.createElement(
|
110
|
+
'ul',
|
111
|
+
null,
|
112
|
+
e.children.map(function (e) {
|
113
|
+
return r.a.createElement(
|
114
|
+
'li',
|
115
|
+
{ key: e.path },
|
116
|
+
r.a.createElement(
|
117
|
+
l['NavLink'],
|
118
|
+
{ to: e.path },
|
119
|
+
e.title,
|
120
|
+
),
|
121
|
+
);
|
122
|
+
}),
|
123
|
+
);
|
124
|
+
return r.a.createElement(
|
125
|
+
'span',
|
126
|
+
{ key: e.title || e.path },
|
127
|
+
e.path
|
128
|
+
? r.a.createElement(
|
129
|
+
l['NavLink'],
|
130
|
+
{ to: e.path, key: e.path },
|
131
|
+
e.title,
|
132
|
+
)
|
133
|
+
: e.title,
|
134
|
+
n,
|
135
|
+
);
|
136
|
+
}),
|
137
|
+
r.a.createElement(
|
138
|
+
'div',
|
139
|
+
{ className: '__dumi-default-navbar-tool' },
|
140
|
+
r.a.createElement(i, { location: o }),
|
141
|
+
c,
|
142
|
+
),
|
143
|
+
),
|
144
|
+
);
|
145
|
+
}),
|
146
|
+
s = u,
|
147
|
+
m = (n('hJnp'), ['slugs']);
|
148
|
+
function f() {
|
149
|
+
return (
|
150
|
+
(f =
|
151
|
+
Object.assign ||
|
152
|
+
function (e) {
|
153
|
+
for (var t = 1; t < arguments.length; t++) {
|
154
|
+
var n = arguments[t];
|
155
|
+
for (var a in n)
|
156
|
+
Object.prototype.hasOwnProperty.call(n, a) && (e[a] = n[a]);
|
157
|
+
}
|
158
|
+
return e;
|
159
|
+
}),
|
160
|
+
f.apply(this, arguments)
|
161
|
+
);
|
162
|
+
}
|
163
|
+
function d(e, t) {
|
164
|
+
if (null == e) return {};
|
165
|
+
var n,
|
166
|
+
a,
|
167
|
+
r = p(e, t);
|
168
|
+
if (Object.getOwnPropertySymbols) {
|
169
|
+
var l = Object.getOwnPropertySymbols(e);
|
170
|
+
for (a = 0; a < l.length; a++)
|
171
|
+
(n = l[a]),
|
172
|
+
t.indexOf(n) >= 0 ||
|
173
|
+
(Object.prototype.propertyIsEnumerable.call(e, n) &&
|
174
|
+
(r[n] = e[n]));
|
175
|
+
}
|
176
|
+
return r;
|
177
|
+
}
|
178
|
+
function p(e, t) {
|
179
|
+
if (null == e) return {};
|
180
|
+
var n,
|
181
|
+
a,
|
182
|
+
r = {},
|
183
|
+
l = Object.keys(e);
|
184
|
+
for (a = 0; a < l.length; a++)
|
185
|
+
(n = l[a]), t.indexOf(n) >= 0 || (r[n] = e[n]);
|
186
|
+
return r;
|
187
|
+
}
|
188
|
+
var h = function (e) {
|
189
|
+
var t = e.slugs,
|
190
|
+
n = d(e, m);
|
191
|
+
return r.a.createElement(
|
192
|
+
'ul',
|
193
|
+
f({ role: 'slug-list' }, n),
|
194
|
+
t
|
195
|
+
.filter(function (e) {
|
196
|
+
var t = e.depth;
|
197
|
+
return t > 1 && t < 4;
|
198
|
+
})
|
199
|
+
.map(function (e) {
|
200
|
+
return r.a.createElement(
|
201
|
+
'li',
|
202
|
+
{ key: e.heading, title: e.value, 'data-depth': e.depth },
|
203
|
+
r.a.createElement(
|
204
|
+
l['AnchorLink'],
|
205
|
+
{ to: '#'.concat(e.heading) },
|
206
|
+
r.a.createElement('span', null, e.value),
|
207
|
+
),
|
208
|
+
);
|
209
|
+
}),
|
210
|
+
);
|
211
|
+
},
|
212
|
+
v = h,
|
213
|
+
y =
|
214
|
+
(n('Mpie'),
|
215
|
+
function (e) {
|
216
|
+
var t = e.mobileMenuCollapsed,
|
217
|
+
n = e.location,
|
218
|
+
o = e.darkPrefix,
|
219
|
+
c = Object(a['useContext'])(l['context']),
|
220
|
+
u = c.config,
|
221
|
+
s = u.logo,
|
222
|
+
m = u.title,
|
223
|
+
f = u.description,
|
224
|
+
d = u.mode,
|
225
|
+
p = u.repository.url,
|
226
|
+
h = c.menu,
|
227
|
+
y = c.nav,
|
228
|
+
g = c.base,
|
229
|
+
b = c.meta,
|
230
|
+
E =
|
231
|
+
Boolean((b.hero || b.features || b.gapless) && 'site' === d) ||
|
232
|
+
!1 === b.sidemenu ||
|
233
|
+
void 0;
|
234
|
+
return r.a.createElement(
|
235
|
+
'div',
|
236
|
+
{
|
237
|
+
className: '__dumi-default-menu',
|
238
|
+
'data-mode': d,
|
239
|
+
'data-hidden': E,
|
240
|
+
'data-mobile-show': !t || void 0,
|
241
|
+
},
|
242
|
+
r.a.createElement(
|
243
|
+
'div',
|
244
|
+
{ className: '__dumi-default-menu-inner' },
|
245
|
+
r.a.createElement(
|
246
|
+
'div',
|
247
|
+
{ className: '__dumi-default-menu-header' },
|
248
|
+
r.a.createElement(l['Link'], {
|
249
|
+
to: g,
|
250
|
+
className: '__dumi-default-menu-logo',
|
251
|
+
style: { backgroundImage: s && "url('".concat(s, "')") },
|
252
|
+
}),
|
253
|
+
r.a.createElement('h1', null, m),
|
254
|
+
r.a.createElement('p', null, f),
|
255
|
+
/github\.com/.test(p) &&
|
256
|
+
'doc' === d &&
|
257
|
+
r.a.createElement(
|
258
|
+
'p',
|
259
|
+
null,
|
260
|
+
r.a.createElement('object', {
|
261
|
+
type: 'image/svg+xml',
|
262
|
+
data: 'https://img.shields.io/github/stars'.concat(
|
263
|
+
p.match(/((\/[^\/]+){2})$/)[1],
|
264
|
+
'?style=social',
|
265
|
+
),
|
266
|
+
}),
|
267
|
+
),
|
268
|
+
),
|
269
|
+
r.a.createElement(
|
270
|
+
'div',
|
271
|
+
{ className: '__dumi-default-menu-mobile-area' },
|
272
|
+
!!y.length &&
|
273
|
+
r.a.createElement(
|
274
|
+
'ul',
|
275
|
+
{ className: '__dumi-default-menu-nav-list' },
|
276
|
+
y.map(function (e) {
|
277
|
+
var t,
|
278
|
+
n =
|
279
|
+
Boolean(
|
280
|
+
null === (t = e.children) || void 0 === t
|
281
|
+
? void 0
|
282
|
+
: t.length,
|
283
|
+
) &&
|
284
|
+
r.a.createElement(
|
285
|
+
'ul',
|
286
|
+
null,
|
287
|
+
e.children.map(function (e) {
|
288
|
+
return r.a.createElement(
|
289
|
+
'li',
|
290
|
+
{ key: e.path || e.title },
|
291
|
+
r.a.createElement(
|
292
|
+
l['NavLink'],
|
293
|
+
{ to: e.path },
|
294
|
+
e.title,
|
295
|
+
),
|
296
|
+
);
|
297
|
+
}),
|
298
|
+
);
|
299
|
+
return r.a.createElement(
|
300
|
+
'li',
|
301
|
+
{ key: e.path || e.title },
|
302
|
+
e.path
|
303
|
+
? r.a.createElement(
|
304
|
+
l['NavLink'],
|
305
|
+
{ to: e.path },
|
306
|
+
e.title,
|
307
|
+
)
|
308
|
+
: e.title,
|
309
|
+
n,
|
310
|
+
);
|
311
|
+
}),
|
312
|
+
),
|
313
|
+
r.a.createElement(i, { location: n }),
|
314
|
+
o,
|
315
|
+
),
|
316
|
+
r.a.createElement(
|
317
|
+
'ul',
|
318
|
+
{ className: '__dumi-default-menu-list' },
|
319
|
+
!E &&
|
320
|
+
h.map(function (e) {
|
321
|
+
var t,
|
322
|
+
a = Boolean(
|
323
|
+
null === (t = b.slugs) || void 0 === t
|
324
|
+
? void 0
|
325
|
+
: t.length,
|
326
|
+
),
|
327
|
+
o = e.children && Boolean(e.children.length),
|
328
|
+
c =
|
329
|
+
'menu' === b.toc &&
|
330
|
+
!o &&
|
331
|
+
a &&
|
332
|
+
e.path === n.pathname.replace(/([^^])\/$/, '$1'),
|
333
|
+
i = o
|
334
|
+
? e.children.map(function (e) {
|
335
|
+
return e.path;
|
336
|
+
})
|
337
|
+
: [
|
338
|
+
e.path,
|
339
|
+
n.pathname.startsWith(''.concat(e.path, '/'))
|
340
|
+
? n.pathname
|
341
|
+
: null,
|
342
|
+
];
|
343
|
+
return r.a.createElement(
|
344
|
+
'li',
|
345
|
+
{ key: e.path || e.title },
|
346
|
+
r.a.createElement(
|
347
|
+
l['NavLink'],
|
348
|
+
{
|
349
|
+
to: e.path,
|
350
|
+
isActive: function () {
|
351
|
+
return i.includes(n.pathname);
|
352
|
+
},
|
353
|
+
},
|
354
|
+
e.title,
|
355
|
+
),
|
356
|
+
Boolean(e.children && e.children.length) &&
|
357
|
+
r.a.createElement(
|
358
|
+
'ul',
|
359
|
+
null,
|
360
|
+
e.children.map(function (e) {
|
361
|
+
return r.a.createElement(
|
362
|
+
'li',
|
363
|
+
{ key: e.path },
|
364
|
+
r.a.createElement(
|
365
|
+
l['NavLink'],
|
366
|
+
{ to: e.path, exact: !0 },
|
367
|
+
r.a.createElement('span', null, e.title),
|
368
|
+
),
|
369
|
+
Boolean(
|
370
|
+
'menu' === b.toc &&
|
371
|
+
'undefined' !== typeof window &&
|
372
|
+
e.path === n.pathname &&
|
373
|
+
a,
|
374
|
+
) && r.a.createElement(v, { slugs: b.slugs }),
|
375
|
+
);
|
376
|
+
}),
|
377
|
+
),
|
378
|
+
c && r.a.createElement(v, { slugs: b.slugs }),
|
379
|
+
);
|
380
|
+
}),
|
381
|
+
),
|
382
|
+
),
|
383
|
+
);
|
384
|
+
}),
|
385
|
+
g = y;
|
386
|
+
n('AK2Z');
|
387
|
+
function b() {
|
388
|
+
return (
|
389
|
+
(b =
|
390
|
+
Object.assign ||
|
391
|
+
function (e) {
|
392
|
+
for (var t = 1; t < arguments.length; t++) {
|
393
|
+
var n = arguments[t];
|
394
|
+
for (var a in n)
|
395
|
+
Object.prototype.hasOwnProperty.call(n, a) && (e[a] = n[a]);
|
396
|
+
}
|
397
|
+
return e;
|
398
|
+
}),
|
399
|
+
b.apply(this, arguments)
|
400
|
+
);
|
401
|
+
}
|
402
|
+
function E(e, t) {
|
403
|
+
return S(e) || O(e, t) || k(e, t) || w();
|
404
|
+
}
|
405
|
+
function w() {
|
406
|
+
throw new TypeError(
|
407
|
+
'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.',
|
408
|
+
);
|
409
|
+
}
|
410
|
+
function k(e, t) {
|
411
|
+
if (e) {
|
412
|
+
if ('string' === typeof e) return _(e, t);
|
413
|
+
var n = Object.prototype.toString.call(e).slice(8, -1);
|
414
|
+
return (
|
415
|
+
'Object' === n && e.constructor && (n = e.constructor.name),
|
416
|
+
'Map' === n || 'Set' === n
|
417
|
+
? Array.from(e)
|
418
|
+
: 'Arguments' === n ||
|
419
|
+
/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)
|
420
|
+
? _(e, t)
|
421
|
+
: void 0
|
422
|
+
);
|
423
|
+
}
|
424
|
+
}
|
425
|
+
function _(e, t) {
|
426
|
+
(null == t || t > e.length) && (t = e.length);
|
427
|
+
for (var n = 0, a = new Array(t); n < t; n++) a[n] = e[n];
|
428
|
+
return a;
|
429
|
+
}
|
430
|
+
function O(e, t) {
|
431
|
+
var n =
|
432
|
+
null == e
|
433
|
+
? null
|
434
|
+
: ('undefined' !== typeof Symbol && e[Symbol.iterator]) ||
|
435
|
+
e['@@iterator'];
|
436
|
+
if (null != n) {
|
437
|
+
var a,
|
438
|
+
r,
|
439
|
+
l = [],
|
440
|
+
o = !0,
|
441
|
+
c = !1;
|
442
|
+
try {
|
443
|
+
for (n = n.call(e); !(o = (a = n.next()).done); o = !0)
|
444
|
+
if ((l.push(a.value), t && l.length === t)) break;
|
445
|
+
} catch (i) {
|
446
|
+
(c = !0), (r = i);
|
447
|
+
} finally {
|
448
|
+
try {
|
449
|
+
o || null == n['return'] || n['return']();
|
450
|
+
} finally {
|
451
|
+
if (c) throw r;
|
452
|
+
}
|
453
|
+
}
|
454
|
+
return l;
|
455
|
+
}
|
456
|
+
}
|
457
|
+
function S(e) {
|
458
|
+
if (Array.isArray(e)) return e;
|
459
|
+
}
|
460
|
+
var j = function (e, t) {
|
461
|
+
var n = t.toLowerCase().indexOf(e.toLowerCase()),
|
462
|
+
a = e.length;
|
463
|
+
return r.a.createElement(
|
464
|
+
r.a.Fragment,
|
465
|
+
null,
|
466
|
+
t.substring(0, n),
|
467
|
+
r.a.createElement(
|
468
|
+
'span',
|
469
|
+
{ className: '__dumi-default-search-highlight' },
|
470
|
+
t.substring(n, n + a),
|
471
|
+
),
|
472
|
+
t.substring(n + a, t.length),
|
473
|
+
);
|
474
|
+
},
|
475
|
+
A = function () {
|
476
|
+
var e = Object(a['useState'])(''),
|
477
|
+
t = E(e, 2),
|
478
|
+
n = t[0],
|
479
|
+
o = t[1],
|
480
|
+
c = Object(a['useState'])([]),
|
481
|
+
i = E(c, 2),
|
482
|
+
u = i[0],
|
483
|
+
s = i[1],
|
484
|
+
m = Object(a['useRef'])(),
|
485
|
+
f = Object(l['useSearch'])(n),
|
486
|
+
d = r.a.createElement(
|
487
|
+
'svg',
|
488
|
+
{
|
489
|
+
className: '__dumi-default-search-empty',
|
490
|
+
viewBox: '0 0 1024 1024',
|
491
|
+
version: '1.1',
|
492
|
+
xmlns: 'http://www.w3.org/2000/svg',
|
493
|
+
'p-id': '2347',
|
494
|
+
width: '32',
|
495
|
+
height: '32',
|
496
|
+
},
|
497
|
+
r.a.createElement('path', {
|
498
|
+
d: 'M855.6 427.2H168.5c-12.7 0-24.4 6.9-30.6 18L4.4 684.7C1.5 689.9 0 695.8 0 701.8v287.1c0 19.4 15.7 35.1 35.1 35.1H989c19.4 0 35.1-15.7 35.1-35.1V701.8c0-6-1.5-11.8-4.4-17.1L886.2 445.2c-6.2-11.1-17.9-18-30.6-18zM673.4 695.6c-16.5 0-30.8 11.5-34.3 27.7-12.7 58.5-64.8 102.3-127.2 102.3s-114.5-43.8-127.2-102.3c-3.5-16.1-17.8-27.7-34.3-27.7H119c-26.4 0-43.3-28-31.1-51.4l81.7-155.8c6.1-11.6 18-18.8 31.1-18.8h622.4c13 0 25 7.2 31.1 18.8l81.7 155.8c12.2 23.4-4.7 51.4-31.1 51.4H673.4zM819.9 209.5c-1-1.8-2.1-3.7-3.2-5.5-9.8-16.6-31.1-22.2-47.8-12.6L648.5 261c-17 9.8-22.7 31.6-12.6 48.4 0.9 1.4 1.7 2.9 2.5 4.4 9.5 17 31.2 22.8 48 13L807 257.3c16.7-9.7 22.4-31 12.9-47.8zM375.4 261.1L255 191.6c-16.7-9.6-38-4-47.8 12.6-1.1 1.8-2.1 3.6-3.2 5.5-9.5 16.8-3.8 38.1 12.9 47.8L337.3 327c16.9 9.7 38.6 4 48-13.1 0.8-1.5 1.7-2.9 2.5-4.4 10.2-16.8 4.5-38.6-12.4-48.4zM512 239.3h2.5c19.5 0.3 35.5-15.5 35.5-35.1v-139c0-19.3-15.6-34.9-34.8-35.1h-6.4C489.6 30.3 474 46 474 65.2v139c0 19.5 15.9 35.4 35.5 35.1h2.5z',
|
499
|
+
}),
|
500
|
+
);
|
501
|
+
return (
|
502
|
+
Object(a['useEffect'])(
|
503
|
+
function () {
|
504
|
+
Array.isArray(f)
|
505
|
+
? s(f)
|
506
|
+
: 'function' === typeof f &&
|
507
|
+
f('.'.concat(m.current.className));
|
508
|
+
},
|
509
|
+
[f],
|
510
|
+
),
|
511
|
+
r.a.createElement(
|
512
|
+
'div',
|
513
|
+
{ className: '__dumi-default-search' },
|
514
|
+
r.a.createElement(
|
515
|
+
'input',
|
516
|
+
b(
|
517
|
+
{
|
518
|
+
className: '__dumi-default-search-input',
|
519
|
+
type: 'search',
|
520
|
+
ref: m,
|
521
|
+
},
|
522
|
+
Array.isArray(f)
|
523
|
+
? {
|
524
|
+
value: n,
|
525
|
+
onChange: function (e) {
|
526
|
+
return o(e.target.value);
|
527
|
+
},
|
528
|
+
}
|
529
|
+
: {},
|
530
|
+
),
|
531
|
+
),
|
532
|
+
r.a.createElement(
|
533
|
+
'ul',
|
534
|
+
null,
|
535
|
+
u.length > 0 &&
|
536
|
+
u.map(function (e) {
|
537
|
+
var t;
|
538
|
+
return r.a.createElement(
|
539
|
+
'li',
|
540
|
+
{
|
541
|
+
key: e.path,
|
542
|
+
onClick: function () {
|
543
|
+
return o('');
|
544
|
+
},
|
545
|
+
},
|
546
|
+
r.a.createElement(
|
547
|
+
l['AnchorLink'],
|
548
|
+
{ to: e.path },
|
549
|
+
(null === (t = e.parent) || void 0 === t
|
550
|
+
? void 0
|
551
|
+
: t.title) &&
|
552
|
+
r.a.createElement('span', null, e.parent.title),
|
553
|
+
j(n, e.title),
|
554
|
+
),
|
555
|
+
);
|
556
|
+
}),
|
557
|
+
0 === u.length &&
|
558
|
+
n &&
|
559
|
+
r.a.createElement(
|
560
|
+
'li',
|
561
|
+
{ style: { textAlign: 'center' } },
|
562
|
+
d,
|
563
|
+
),
|
564
|
+
),
|
565
|
+
)
|
566
|
+
);
|
567
|
+
};
|
568
|
+
n('Zkgb');
|
569
|
+
function x(e, t) {
|
570
|
+
return C(e) || P(e, t) || N(e, t) || M();
|
571
|
+
}
|
572
|
+
function M() {
|
573
|
+
throw new TypeError(
|
574
|
+
'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.',
|
575
|
+
);
|
576
|
+
}
|
577
|
+
function N(e, t) {
|
578
|
+
if (e) {
|
579
|
+
if ('string' === typeof e) return L(e, t);
|
580
|
+
var n = Object.prototype.toString.call(e).slice(8, -1);
|
581
|
+
return (
|
582
|
+
'Object' === n && e.constructor && (n = e.constructor.name),
|
583
|
+
'Map' === n || 'Set' === n
|
584
|
+
? Array.from(e)
|
585
|
+
: 'Arguments' === n ||
|
586
|
+
/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)
|
587
|
+
? L(e, t)
|
588
|
+
: void 0
|
589
|
+
);
|
590
|
+
}
|
591
|
+
}
|
592
|
+
function L(e, t) {
|
593
|
+
(null == t || t > e.length) && (t = e.length);
|
594
|
+
for (var n = 0, a = new Array(t); n < t; n++) a[n] = e[n];
|
595
|
+
return a;
|
596
|
+
}
|
597
|
+
function P(e, t) {
|
598
|
+
var n =
|
599
|
+
null == e
|
600
|
+
? null
|
601
|
+
: ('undefined' !== typeof Symbol && e[Symbol.iterator]) ||
|
602
|
+
e['@@iterator'];
|
603
|
+
if (null != n) {
|
604
|
+
var a,
|
605
|
+
r,
|
606
|
+
l = [],
|
607
|
+
o = !0,
|
608
|
+
c = !1;
|
609
|
+
try {
|
610
|
+
for (n = n.call(e); !(o = (a = n.next()).done); o = !0)
|
611
|
+
if ((l.push(a.value), t && l.length === t)) break;
|
612
|
+
} catch (i) {
|
613
|
+
(c = !0), (r = i);
|
614
|
+
} finally {
|
615
|
+
try {
|
616
|
+
o || null == n['return'] || n['return']();
|
617
|
+
} finally {
|
618
|
+
if (c) throw r;
|
619
|
+
}
|
620
|
+
}
|
621
|
+
return l;
|
622
|
+
}
|
623
|
+
}
|
624
|
+
function C(e) {
|
625
|
+
if (Array.isArray(e)) return e;
|
626
|
+
}
|
627
|
+
var z = function (e) {
|
628
|
+
var t = e.darkSwitch,
|
629
|
+
n = e.onDarkSwitchClick,
|
630
|
+
a = e.isSideMenu,
|
631
|
+
o = ['dark', 'light', 'auto'],
|
632
|
+
c = Object(l['usePrefersColor'])(),
|
633
|
+
i = x(c, 2),
|
634
|
+
u = i[0],
|
635
|
+
s = i[1],
|
636
|
+
m = u,
|
637
|
+
f = r.a.createElement(
|
638
|
+
'svg',
|
639
|
+
{
|
640
|
+
viewBox: '0 0 1024 1024',
|
641
|
+
version: '1.1',
|
642
|
+
xmlns: 'http://www.w3.org/2000/svg',
|
643
|
+
'p-id': '4026',
|
644
|
+
width: '22',
|
645
|
+
height: '22',
|
646
|
+
},
|
647
|
+
r.a.createElement('path', {
|
648
|
+
d: 'M915.2 476.16h-43.968c-24.704 0-44.736 16-44.736 35.84s20.032 35.904 44.736 35.904H915.2c24.768 0 44.8-16.064 44.8-35.904s-20.032-35.84-44.8-35.84zM512 265.6c-136.704 0-246.464 109.824-246.464 246.4 0 136.704 109.76 246.464 246.464 246.464S758.4 648.704 758.4 512c0-136.576-109.696-246.4-246.4-246.4z m0 425.6c-99.008 0-179.2-80.128-179.2-179.2 0-98.944 80.192-179.2 179.2-179.2S691.2 413.056 691.2 512c0 99.072-80.192 179.2-179.2 179.2zM197.44 512c0-19.84-19.136-35.84-43.904-35.84H108.8c-24.768 0-44.8 16-44.8 35.84s20.032 35.904 44.8 35.904h44.736c24.768 0 43.904-16.064 43.904-35.904zM512 198.464c19.776 0 35.84-20.032 35.84-44.8v-44.8C547.84 84.032 531.84 64 512 64s-35.904 20.032-35.904 44.8v44.8c0 24.768 16.128 44.864 35.904 44.864z m0 627.136c-19.776 0-35.904 20.032-35.904 44.8v44.736C476.096 940.032 492.16 960 512 960s35.84-20.032 35.84-44.8v-44.736c0-24.768-16.064-44.864-35.84-44.864z m329.92-592.832c17.472-17.536 20.288-43.072 6.4-57.024-14.016-14.016-39.488-11.2-57.024 6.336-4.736 4.864-26.496 26.496-31.36 31.36-17.472 17.472-20.288 43.008-6.336 57.024 13.952 14.016 39.488 11.2 57.024-6.336 4.8-4.864 26.496-26.56 31.296-31.36zM213.376 759.936c-4.864 4.8-26.56 26.624-31.36 31.36-17.472 17.472-20.288 42.944-6.4 56.96 14.016 13.952 39.552 11.2 57.024-6.336 4.8-4.736 26.56-26.496 31.36-31.36 17.472-17.472 20.288-43.008 6.336-56.96-14.016-13.952-39.552-11.072-56.96 6.336z m19.328-577.92c-17.536-17.536-43.008-20.352-57.024-6.336-14.08 14.016-11.136 39.488 6.336 57.024 4.864 4.864 26.496 26.56 31.36 31.424 17.536 17.408 43.008 20.288 56.96 6.336 14.016-14.016 11.264-39.488-6.336-57.024-4.736-4.864-26.496-26.56-31.296-31.424z m527.168 628.608c4.864 4.864 26.624 26.624 31.36 31.424 17.536 17.408 43.072 20.224 57.088 6.336 13.952-14.016 11.072-39.552-6.4-57.024-4.864-4.8-26.56-26.496-31.36-31.36-17.472-17.408-43.072-20.288-57.024-6.336-13.952 14.016-11.008 39.488 6.336 56.96z',
|
649
|
+
'p-id': '4027',
|
650
|
+
}),
|
651
|
+
),
|
652
|
+
d = r.a.createElement(
|
653
|
+
'svg',
|
654
|
+
{
|
655
|
+
viewBox: '0 0 1024 1024',
|
656
|
+
version: '1.1',
|
657
|
+
xmlns: 'http://www.w3.org/2000/svg',
|
658
|
+
'p-id': '3854',
|
659
|
+
width: '22',
|
660
|
+
height: '22',
|
661
|
+
},
|
662
|
+
r.a.createElement('path', {
|
663
|
+
d: 'M991.816611 674.909091a69.166545 69.166545 0 0 0-51.665455-23.272727 70.795636 70.795636 0 0 0-27.438545 5.585454A415.674182 415.674182 0 0 1 754.993338 698.181818c-209.594182 0-393.472-184.785455-393.472-395.636363 0-52.363636 38.539636-119.621818 69.515637-173.614546 4.887273-8.610909 9.634909-16.756364 14.103272-24.901818A69.818182 69.818182 0 0 0 384.631156 0a70.842182 70.842182 0 0 0-27.438545 5.585455C161.678429 90.298182 14.362065 307.898182 14.362065 512c0 282.298182 238.824727 512 532.38691 512a522.286545 522.286545 0 0 0 453.957818-268.334545A69.818182 69.818182 0 0 0 991.816611 674.909091zM546.679156 954.181818c-248.785455 0-462.941091-192-462.941091-442.181818 0-186.647273 140.637091-372.829091 300.939637-442.181818-36.817455 65.629091-92.578909 151.970909-92.578909 232.727273 0 250.181818 214.109091 465.454545 462.917818 465.454545a488.331636 488.331636 0 0 0 185.181091-46.545455 453.003636 453.003636 0 0 1-393.565091 232.727273z m103.656728-669.323636l-14.266182 83.781818a34.909091 34.909091 0 0 0 50.362182 36.770909l74.775272-39.563636 74.752 39.563636a36.142545 36.142545 0 0 0 16.174546 3.956364 34.909091 34.909091 0 0 0 34.210909-40.727273l-14.289455-83.781818 60.509091-59.345455a35.025455 35.025455 0 0 0-19.223272-59.578182l-83.61891-12.101818-37.376-76.101818a34.56 34.56 0 0 0-62.254545 0l-37.376 76.101818-83.618909 12.101818a34.909091 34.909091 0 0 0-19.246546 59.578182z m70.423272-64.698182a34.280727 34.280727 0 0 0 26.135273-19.083636l14.312727-29.090909 14.336 29.090909a34.257455 34.257455 0 0 0 26.135273 19.083636l32.046546 4.887273-23.272728 22.574545a35.234909 35.234909 0 0 0-10.007272 30.952727l5.46909 32.116364-28.625454-15.127273a34.490182 34.490182 0 0 0-32.302546 0l-28.695272 15.127273 5.469091-32.116364a35.141818 35.141818 0 0 0-9.984-30.952727l-23.272728-22.574545z',
|
664
|
+
'p-id': '3855',
|
665
|
+
}),
|
666
|
+
),
|
667
|
+
p = r.a.createElement(
|
668
|
+
'svg',
|
669
|
+
{
|
670
|
+
viewBox: '0 0 1024 1024',
|
671
|
+
version: '1.1',
|
672
|
+
xmlns: 'http://www.w3.org/2000/svg',
|
673
|
+
'p-id': '11002',
|
674
|
+
width: '22',
|
675
|
+
height: '22',
|
676
|
+
},
|
677
|
+
r.a.createElement('path', {
|
678
|
+
d: 'M127.658667 492.885333c0-51.882667 10.24-101.717333 30.378666-149.162666s47.786667-88.064 81.92-122.538667 75.093333-61.781333 122.538667-81.92 96.938667-30.378667 149.162667-30.378667 101.717333 10.24 149.162666 30.378667 88.405333 47.786667 122.88 81.92 61.781333 75.093333 81.92 122.538667 30.378667 96.938667 30.378667 149.162666-10.24 101.717333-30.378667 149.162667-47.786667 88.405333-81.92 122.88-75.093333 61.781333-122.88 81.92-97.28 30.378667-149.162666 30.378667-101.717333-10.24-149.162667-30.378667-88.064-47.786667-122.538667-81.92-61.781333-75.093333-81.92-122.88-30.378667-96.938667-30.378666-149.162667z m329.045333 0c0 130.048 13.994667 244.394667 41.984 343.381334h12.970667c46.762667 0 91.136-9.216 133.461333-27.306667s78.848-42.666667 109.568-73.386667 54.954667-67.242667 73.386667-109.568 27.306667-86.698667 27.306666-133.461333c0-46.421333-9.216-90.794667-27.306666-133.12s-42.666667-78.848-73.386667-109.568-67.242667-54.954667-109.568-73.386667-86.698667-27.306667-133.461333-27.306666h-11.605334c-28.672 123.562667-43.349333 237.909333-43.349333 343.722666z',
|
679
|
+
'p-id': '11003',
|
680
|
+
}),
|
681
|
+
),
|
682
|
+
h = o.filter(function (e) {
|
683
|
+
return e !== m;
|
684
|
+
}),
|
685
|
+
v = function (e, t) {
|
686
|
+
!a && n && n(e), t !== m && s(t);
|
687
|
+
},
|
688
|
+
y = function (e) {
|
689
|
+
switch (e) {
|
690
|
+
case 'dark':
|
691
|
+
return r.a.createElement(
|
692
|
+
'button',
|
693
|
+
{
|
694
|
+
key: 'dumi-dark-btn-moon',
|
695
|
+
title: 'Dark theme',
|
696
|
+
onClick: function (t) {
|
697
|
+
return v(t, e);
|
698
|
+
},
|
699
|
+
className: '__dumi-default-dark-moon '.concat(
|
700
|
+
e === m ? '__dumi-default-dark-switch-active' : '',
|
701
|
+
),
|
702
|
+
},
|
703
|
+
d,
|
704
|
+
);
|
705
|
+
case 'light':
|
706
|
+
return r.a.createElement(
|
707
|
+
'button',
|
708
|
+
{
|
709
|
+
key: 'dumi-dark-btn-sun',
|
710
|
+
title: 'Light theme',
|
711
|
+
onClick: function (t) {
|
712
|
+
return v(t, e);
|
713
|
+
},
|
714
|
+
className: '__dumi-default-dark-sun '.concat(
|
715
|
+
e === m ? '__dumi-default-dark-switch-active' : '',
|
716
|
+
),
|
717
|
+
},
|
718
|
+
f,
|
719
|
+
);
|
720
|
+
case 'auto':
|
721
|
+
return r.a.createElement(
|
722
|
+
'button',
|
723
|
+
{
|
724
|
+
key: 'dumi-dark-btn-auto',
|
725
|
+
title: 'Default to system',
|
726
|
+
onClick: function (t) {
|
727
|
+
return v(t, e);
|
728
|
+
},
|
729
|
+
className: '__dumi-default-dark-auto '.concat(
|
730
|
+
e === m ? '__dumi-default-dark-switch-active' : '',
|
731
|
+
),
|
732
|
+
},
|
733
|
+
p,
|
734
|
+
);
|
735
|
+
default:
|
736
|
+
}
|
737
|
+
};
|
738
|
+
return r.a.createElement(
|
739
|
+
'div',
|
740
|
+
{ className: '__dumi-default-dark' },
|
741
|
+
r.a.createElement(
|
742
|
+
'div',
|
743
|
+
{
|
744
|
+
className: '__dumi-default-dark-switch '.concat(
|
745
|
+
!a && t ? '__dumi-default-dark-switch-open' : '',
|
746
|
+
),
|
747
|
+
},
|
748
|
+
a
|
749
|
+
? o.map(function (e) {
|
750
|
+
return y(e);
|
751
|
+
})
|
752
|
+
: y(m),
|
753
|
+
),
|
754
|
+
!a &&
|
755
|
+
t &&
|
756
|
+
r.a.createElement(
|
757
|
+
'div',
|
758
|
+
{ className: '__dumi-default-dark-switch-list' },
|
759
|
+
h.map(function (e) {
|
760
|
+
return y(e);
|
761
|
+
}),
|
762
|
+
),
|
763
|
+
);
|
764
|
+
},
|
765
|
+
I = z;
|
766
|
+
n('AQPS');
|
767
|
+
function $(e, t) {
|
768
|
+
return U(e) || T(e, t) || D(e, t) || B();
|
769
|
+
}
|
770
|
+
function B() {
|
771
|
+
throw new TypeError(
|
772
|
+
'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.',
|
773
|
+
);
|
774
|
+
}
|
775
|
+
function D(e, t) {
|
776
|
+
if (e) {
|
777
|
+
if ('string' === typeof e) return H(e, t);
|
778
|
+
var n = Object.prototype.toString.call(e).slice(8, -1);
|
779
|
+
return (
|
780
|
+
'Object' === n && e.constructor && (n = e.constructor.name),
|
781
|
+
'Map' === n || 'Set' === n
|
782
|
+
? Array.from(e)
|
783
|
+
: 'Arguments' === n ||
|
784
|
+
/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)
|
785
|
+
? H(e, t)
|
786
|
+
: void 0
|
787
|
+
);
|
788
|
+
}
|
789
|
+
}
|
790
|
+
function H(e, t) {
|
791
|
+
(null == t || t > e.length) && (t = e.length);
|
792
|
+
for (var n = 0, a = new Array(t); n < t; n++) a[n] = e[n];
|
793
|
+
return a;
|
794
|
+
}
|
795
|
+
function T(e, t) {
|
796
|
+
var n =
|
797
|
+
null == e
|
798
|
+
? null
|
799
|
+
: ('undefined' !== typeof Symbol && e[Symbol.iterator]) ||
|
800
|
+
e['@@iterator'];
|
801
|
+
if (null != n) {
|
802
|
+
var a,
|
803
|
+
r,
|
804
|
+
l = [],
|
805
|
+
o = !0,
|
806
|
+
c = !1;
|
807
|
+
try {
|
808
|
+
for (n = n.call(e); !(o = (a = n.next()).done); o = !0)
|
809
|
+
if ((l.push(a.value), t && l.length === t)) break;
|
810
|
+
} catch (i) {
|
811
|
+
(c = !0), (r = i);
|
812
|
+
} finally {
|
813
|
+
try {
|
814
|
+
o || null == n['return'] || n['return']();
|
815
|
+
} finally {
|
816
|
+
if (c) throw r;
|
817
|
+
}
|
818
|
+
}
|
819
|
+
return l;
|
820
|
+
}
|
821
|
+
}
|
822
|
+
function U(e) {
|
823
|
+
if (Array.isArray(e)) return e;
|
824
|
+
}
|
825
|
+
var R = function (e) {
|
826
|
+
return r.a.createElement(
|
827
|
+
r.a.Fragment,
|
828
|
+
null,
|
829
|
+
r.a.createElement(
|
830
|
+
'div',
|
831
|
+
{ className: '__dumi-default-layout-hero' },
|
832
|
+
e.image && r.a.createElement('img', { src: e.image }),
|
833
|
+
r.a.createElement('h1', null, e.title),
|
834
|
+
r.a.createElement('div', {
|
835
|
+
dangerouslySetInnerHTML: { __html: e.desc },
|
836
|
+
}),
|
837
|
+
e.actions &&
|
838
|
+
e.actions.map(function (e) {
|
839
|
+
return r.a.createElement(
|
840
|
+
l['Link'],
|
841
|
+
{ to: e.link, key: e.text },
|
842
|
+
r.a.createElement('button', { type: 'button' }, e.text),
|
843
|
+
);
|
844
|
+
}),
|
845
|
+
),
|
846
|
+
);
|
847
|
+
},
|
848
|
+
Z = function (e) {
|
849
|
+
return r.a.createElement(
|
850
|
+
'div',
|
851
|
+
{ className: '__dumi-default-layout-features' },
|
852
|
+
e.map(function (e) {
|
853
|
+
return r.a.createElement(
|
854
|
+
'dl',
|
855
|
+
{
|
856
|
+
key: e.title,
|
857
|
+
style: {
|
858
|
+
backgroundImage: e.icon
|
859
|
+
? 'url('.concat(e.icon, ')')
|
860
|
+
: void 0,
|
861
|
+
},
|
862
|
+
},
|
863
|
+
e.link
|
864
|
+
? r.a.createElement(
|
865
|
+
l['Link'],
|
866
|
+
{ to: e.link },
|
867
|
+
r.a.createElement('dt', null, e.title),
|
868
|
+
)
|
869
|
+
: r.a.createElement('dt', null, e.title),
|
870
|
+
r.a.createElement('dd', {
|
871
|
+
dangerouslySetInnerHTML: { __html: e.desc },
|
872
|
+
}),
|
873
|
+
);
|
874
|
+
}),
|
875
|
+
);
|
876
|
+
},
|
877
|
+
J = function (e) {
|
878
|
+
var t,
|
879
|
+
n,
|
880
|
+
o = e.children,
|
881
|
+
c = e.location,
|
882
|
+
i = Object(a['useContext'])(l['context']),
|
883
|
+
u = i.config,
|
884
|
+
m = u.mode,
|
885
|
+
f = u.repository,
|
886
|
+
d = (i.nav, i.meta),
|
887
|
+
p = i.locale,
|
888
|
+
h = f.url,
|
889
|
+
y = f.branch,
|
890
|
+
b = f.platform,
|
891
|
+
E = Object(a['useState'])(!0),
|
892
|
+
w = $(E, 2),
|
893
|
+
k = w[0],
|
894
|
+
_ = w[1],
|
895
|
+
O = Object(a['useState'])(!1),
|
896
|
+
S = $(O, 2),
|
897
|
+
j = S[0],
|
898
|
+
x = S[1],
|
899
|
+
M = 'site' === m,
|
900
|
+
N = M && d.hero,
|
901
|
+
L = M && d.features,
|
902
|
+
P = !1 !== d.sidemenu && !N && !L && !d.gapless,
|
903
|
+
C =
|
904
|
+
!N &&
|
905
|
+
!L &&
|
906
|
+
Boolean(
|
907
|
+
null === (t = d.slugs) || void 0 === t ? void 0 : t.length,
|
908
|
+
) &&
|
909
|
+
('content' === d.toc || void 0 === d.toc) &&
|
910
|
+
!d.gapless,
|
911
|
+
z = /^zh|cn$/i.test(p),
|
912
|
+
B = new Date(d.updatedTime),
|
913
|
+
D = ''
|
914
|
+
.concat(B.toLocaleDateString([], { hour12: !1 }), ' ')
|
915
|
+
.concat(B.toLocaleTimeString([], { hour12: !1 })),
|
916
|
+
H =
|
917
|
+
{ github: 'GitHub', gitlab: 'GitLab' }[
|
918
|
+
(null === (n = (h || '').match(/(github|gitlab)/)) ||
|
919
|
+
void 0 === n
|
920
|
+
? void 0
|
921
|
+
: n[1]) || 'nothing'
|
922
|
+
] || b;
|
923
|
+
return r.a.createElement(
|
924
|
+
'div',
|
925
|
+
{
|
926
|
+
className: '__dumi-default-layout',
|
927
|
+
'data-route': c.pathname,
|
928
|
+
'data-show-sidemenu': String(P),
|
929
|
+
'data-show-slugs': String(C),
|
930
|
+
'data-site-mode': M,
|
931
|
+
'data-gapless': String(!!d.gapless),
|
932
|
+
onClick: function () {
|
933
|
+
x(!1), k || _(!0);
|
934
|
+
},
|
935
|
+
},
|
936
|
+
r.a.createElement(s, {
|
937
|
+
location: c,
|
938
|
+
navPrefix: r.a.createElement(A, null),
|
939
|
+
darkPrefix: r.a.createElement(I, {
|
940
|
+
darkSwitch: j,
|
941
|
+
onDarkSwitchClick: function (e) {
|
942
|
+
x(function (e) {
|
943
|
+
return !e;
|
944
|
+
}),
|
945
|
+
e.stopPropagation();
|
946
|
+
},
|
947
|
+
isSideMenu: !1,
|
948
|
+
}),
|
949
|
+
onMobileMenuClick: function (e) {
|
950
|
+
_(function (e) {
|
951
|
+
return !e;
|
952
|
+
}),
|
953
|
+
e.stopPropagation();
|
954
|
+
},
|
955
|
+
}),
|
956
|
+
r.a.createElement(g, {
|
957
|
+
darkPrefix: r.a.createElement(I, {
|
958
|
+
darkSwitch: j,
|
959
|
+
isSideMenu: !0,
|
960
|
+
}),
|
961
|
+
mobileMenuCollapsed: k,
|
962
|
+
location: c,
|
963
|
+
}),
|
964
|
+
C &&
|
965
|
+
r.a.createElement(v, {
|
966
|
+
slugs: d.slugs,
|
967
|
+
className: '__dumi-default-layout-toc',
|
968
|
+
}),
|
969
|
+
N && R(d.hero),
|
970
|
+
L && Z(d.features),
|
971
|
+
r.a.createElement(
|
972
|
+
'div',
|
973
|
+
{ className: '__dumi-default-layout-content' },
|
974
|
+
o,
|
975
|
+
!N &&
|
976
|
+
!L &&
|
977
|
+
d.filePath &&
|
978
|
+
!d.gapless &&
|
979
|
+
r.a.createElement(
|
980
|
+
'div',
|
981
|
+
{ className: '__dumi-default-layout-footer-meta' },
|
982
|
+
H &&
|
983
|
+
r.a.createElement(
|
984
|
+
l['Link'],
|
985
|
+
{
|
986
|
+
to: ''
|
987
|
+
.concat(h, '/edit/')
|
988
|
+
.concat(y, '/')
|
989
|
+
.concat(d.filePath),
|
990
|
+
},
|
991
|
+
z
|
992
|
+
? '\u5728 '.concat(H, ' \u4e0a\u7f16\u8f91\u6b64\u9875')
|
993
|
+
: 'Edit this doc on '.concat(H),
|
994
|
+
),
|
995
|
+
r.a.createElement(
|
996
|
+
'span',
|
997
|
+
{
|
998
|
+
'data-updated-text': z
|
999
|
+
? '\u6700\u540e\u66f4\u65b0\u65f6\u95f4\uff1a'
|
1000
|
+
: 'Last update: ',
|
1001
|
+
},
|
1002
|
+
D,
|
1003
|
+
),
|
1004
|
+
),
|
1005
|
+
(N || L) &&
|
1006
|
+
d.footer &&
|
1007
|
+
r.a.createElement('div', {
|
1008
|
+
className: '__dumi-default-layout-footer',
|
1009
|
+
dangerouslySetInnerHTML: { __html: d.footer },
|
1010
|
+
}),
|
1011
|
+
),
|
1012
|
+
);
|
1013
|
+
};
|
1014
|
+
t['default'] = J;
|
1015
|
+
},
|
1016
|
+
AK2Z: function (e, t, n) {},
|
1017
|
+
AQPS: function (e, t, n) {},
|
1018
|
+
KcUY: function (e, t, n) {
|
1019
|
+
'use strict';
|
1020
|
+
function a(e) {
|
1021
|
+
return (
|
1022
|
+
(a =
|
1023
|
+
'function' === typeof Symbol && 'symbol' === typeof Symbol.iterator
|
1024
|
+
? function (e) {
|
1025
|
+
return typeof e;
|
1026
|
+
}
|
1027
|
+
: function (e) {
|
1028
|
+
return e &&
|
1029
|
+
'function' === typeof Symbol &&
|
1030
|
+
e.constructor === Symbol &&
|
1031
|
+
e !== Symbol.prototype
|
1032
|
+
? 'symbol'
|
1033
|
+
: typeof e;
|
1034
|
+
}),
|
1035
|
+
a(e)
|
1036
|
+
);
|
1037
|
+
}
|
1038
|
+
Object.defineProperty(t, '__esModule', { value: !0 }),
|
1039
|
+
(t.default = void 0);
|
1040
|
+
var r = u(n('q1tI')),
|
1041
|
+
l = c(n('RGYn')),
|
1042
|
+
o = c(n('nLCz'));
|
1043
|
+
function c(e) {
|
1044
|
+
return e && e.__esModule ? e : { default: e };
|
1045
|
+
}
|
1046
|
+
function i(e) {
|
1047
|
+
if ('function' !== typeof WeakMap) return null;
|
1048
|
+
var t = new WeakMap(),
|
1049
|
+
n = new WeakMap();
|
1050
|
+
return (i = function (e) {
|
1051
|
+
return e ? n : t;
|
1052
|
+
})(e);
|
1053
|
+
}
|
1054
|
+
function u(e, t) {
|
1055
|
+
if (!t && e && e.__esModule) return e;
|
1056
|
+
if (null === e || ('object' !== a(e) && 'function' !== typeof e))
|
1057
|
+
return { default: e };
|
1058
|
+
var n = i(t);
|
1059
|
+
if (n && n.has(e)) return n.get(e);
|
1060
|
+
var r = {},
|
1061
|
+
l = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
1062
|
+
for (var o in e)
|
1063
|
+
if ('default' !== o && Object.prototype.hasOwnProperty.call(e, o)) {
|
1064
|
+
var c = l ? Object.getOwnPropertyDescriptor(e, o) : null;
|
1065
|
+
c && (c.get || c.set)
|
1066
|
+
? Object.defineProperty(r, o, c)
|
1067
|
+
: (r[o] = e[o]);
|
1068
|
+
}
|
1069
|
+
return (r.default = e), n && n.set(e, r), r;
|
1070
|
+
}
|
1071
|
+
function s(e, t) {
|
1072
|
+
return h(e) || p(e, t) || f(e, t) || m();
|
1073
|
+
}
|
1074
|
+
function m() {
|
1075
|
+
throw new TypeError(
|
1076
|
+
'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.',
|
1077
|
+
);
|
1078
|
+
}
|
1079
|
+
function f(e, t) {
|
1080
|
+
if (e) {
|
1081
|
+
if ('string' === typeof e) return d(e, t);
|
1082
|
+
var n = Object.prototype.toString.call(e).slice(8, -1);
|
1083
|
+
return (
|
1084
|
+
'Object' === n && e.constructor && (n = e.constructor.name),
|
1085
|
+
'Map' === n || 'Set' === n
|
1086
|
+
? Array.from(e)
|
1087
|
+
: 'Arguments' === n ||
|
1088
|
+
/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)
|
1089
|
+
? d(e, t)
|
1090
|
+
: void 0
|
1091
|
+
);
|
1092
|
+
}
|
1093
|
+
}
|
1094
|
+
function d(e, t) {
|
1095
|
+
(null == t || t > e.length) && (t = e.length);
|
1096
|
+
for (var n = 0, a = new Array(t); n < t; n++) a[n] = e[n];
|
1097
|
+
return a;
|
1098
|
+
}
|
1099
|
+
function p(e, t) {
|
1100
|
+
var n =
|
1101
|
+
null == e
|
1102
|
+
? null
|
1103
|
+
: ('undefined' !== typeof Symbol && e[Symbol.iterator]) ||
|
1104
|
+
e['@@iterator'];
|
1105
|
+
if (null != n) {
|
1106
|
+
var a,
|
1107
|
+
r,
|
1108
|
+
l = [],
|
1109
|
+
o = !0,
|
1110
|
+
c = !1;
|
1111
|
+
try {
|
1112
|
+
for (n = n.call(e); !(o = (a = n.next()).done); o = !0)
|
1113
|
+
if ((l.push(a.value), t && l.length === t)) break;
|
1114
|
+
} catch (i) {
|
1115
|
+
(c = !0), (r = i);
|
1116
|
+
} finally {
|
1117
|
+
try {
|
1118
|
+
o || null == n['return'] || n['return']();
|
1119
|
+
} finally {
|
1120
|
+
if (c) throw r;
|
1121
|
+
}
|
1122
|
+
}
|
1123
|
+
return l;
|
1124
|
+
}
|
1125
|
+
}
|
1126
|
+
function h(e) {
|
1127
|
+
if (Array.isArray(e)) return e;
|
1128
|
+
}
|
1129
|
+
function v(e, t) {
|
1130
|
+
var n = Object.keys(e);
|
1131
|
+
if (Object.getOwnPropertySymbols) {
|
1132
|
+
var a = Object.getOwnPropertySymbols(e);
|
1133
|
+
t &&
|
1134
|
+
(a = a.filter(function (t) {
|
1135
|
+
return Object.getOwnPropertyDescriptor(e, t).enumerable;
|
1136
|
+
})),
|
1137
|
+
n.push.apply(n, a);
|
1138
|
+
}
|
1139
|
+
return n;
|
1140
|
+
}
|
1141
|
+
function y(e) {
|
1142
|
+
for (var t = 1; t < arguments.length; t++) {
|
1143
|
+
var n = null != arguments[t] ? arguments[t] : {};
|
1144
|
+
t % 2
|
1145
|
+
? v(Object(n), !0).forEach(function (t) {
|
1146
|
+
g(e, t, n[t]);
|
1147
|
+
})
|
1148
|
+
: Object.getOwnPropertyDescriptors
|
1149
|
+
? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n))
|
1150
|
+
: v(Object(n)).forEach(function (t) {
|
1151
|
+
Object.defineProperty(
|
1152
|
+
e,
|
1153
|
+
t,
|
1154
|
+
Object.getOwnPropertyDescriptor(n, t),
|
1155
|
+
);
|
1156
|
+
});
|
1157
|
+
}
|
1158
|
+
return e;
|
1159
|
+
}
|
1160
|
+
function g(e, t, n) {
|
1161
|
+
return (
|
1162
|
+
t in e
|
1163
|
+
? Object.defineProperty(e, t, {
|
1164
|
+
value: n,
|
1165
|
+
enumerable: !0,
|
1166
|
+
configurable: !0,
|
1167
|
+
writable: !0,
|
1168
|
+
})
|
1169
|
+
: (e[t] = n),
|
1170
|
+
e
|
1171
|
+
);
|
1172
|
+
}
|
1173
|
+
var b = function (e, t) {
|
1174
|
+
var n = function () {
|
1175
|
+
for (
|
1176
|
+
var e, n = arguments.length, a = new Array(n), r = 0;
|
1177
|
+
r < n;
|
1178
|
+
r++
|
1179
|
+
)
|
1180
|
+
a[r] = arguments[r];
|
1181
|
+
var l = a[1].replace(/([^^])\/$/, '$1');
|
1182
|
+
return y(
|
1183
|
+
y(
|
1184
|
+
{},
|
1185
|
+
(null ===
|
1186
|
+
(e = a[0].find(function (e) {
|
1187
|
+
var t = e.path;
|
1188
|
+
return t === l;
|
1189
|
+
})) || void 0 === e
|
1190
|
+
? void 0
|
1191
|
+
: e.meta) || {},
|
1192
|
+
),
|
1193
|
+
{},
|
1194
|
+
{ __pathname: t },
|
1195
|
+
);
|
1196
|
+
},
|
1197
|
+
a = (0, r.useState)(n(e, t)),
|
1198
|
+
l = s(a, 2),
|
1199
|
+
o = l[0],
|
1200
|
+
c = l[1];
|
1201
|
+
return (
|
1202
|
+
(0, r.useLayoutEffect)(
|
1203
|
+
function () {
|
1204
|
+
c(n(e, t));
|
1205
|
+
},
|
1206
|
+
[t],
|
1207
|
+
),
|
1208
|
+
o
|
1209
|
+
);
|
1210
|
+
},
|
1211
|
+
E = function (e, t) {
|
1212
|
+
var n = function () {
|
1213
|
+
for (
|
1214
|
+
var t, n = arguments.length, a = new Array(n), r = 0;
|
1215
|
+
r < n;
|
1216
|
+
r++
|
1217
|
+
)
|
1218
|
+
a[r] = arguments[r];
|
1219
|
+
return (
|
1220
|
+
(null ===
|
1221
|
+
(t = a[0].find(function (e) {
|
1222
|
+
return new RegExp('/'.concat(e.name, '(/|$)')).test(a[1]);
|
1223
|
+
})) || void 0 === t
|
1224
|
+
? void 0
|
1225
|
+
: t.name) || e[0].name
|
1226
|
+
);
|
1227
|
+
},
|
1228
|
+
a = (0, r.useState)(n(e, t)),
|
1229
|
+
l = s(a, 2),
|
1230
|
+
o = l[0],
|
1231
|
+
c = l[1];
|
1232
|
+
return (
|
1233
|
+
(0, r.useLayoutEffect)(
|
1234
|
+
function () {
|
1235
|
+
c(n(e, t));
|
1236
|
+
},
|
1237
|
+
[t],
|
1238
|
+
),
|
1239
|
+
o
|
1240
|
+
);
|
1241
|
+
},
|
1242
|
+
w = function (e, t, n) {
|
1243
|
+
var a = function () {
|
1244
|
+
for (
|
1245
|
+
var e, t = arguments.length, n = new Array(t), a = 0;
|
1246
|
+
a < t;
|
1247
|
+
a++
|
1248
|
+
)
|
1249
|
+
n[a] = arguments[a];
|
1250
|
+
for (
|
1251
|
+
var r = n[0].navs[n[1]] || [], l = '*', o = r.length - 1;
|
1252
|
+
o >= 0;
|
1253
|
+
o -= 1
|
1254
|
+
) {
|
1255
|
+
var c = r[o],
|
1256
|
+
i = [c].concat(c.children).filter(Boolean),
|
1257
|
+
u = i.find(function (e) {
|
1258
|
+
return (
|
1259
|
+
e.path &&
|
1260
|
+
new RegExp(
|
1261
|
+
'^'.concat(e.path.replace(/\.html$/, ''), '(/|.|$)'),
|
1262
|
+
).test(n[2])
|
1263
|
+
);
|
1264
|
+
});
|
1265
|
+
if (u) {
|
1266
|
+
l = u.path;
|
1267
|
+
break;
|
1268
|
+
}
|
1269
|
+
}
|
1270
|
+
return (
|
1271
|
+
(null === (e = n[0].menus[n[1]]) || void 0 === e
|
1272
|
+
? void 0
|
1273
|
+
: e[l]) || []
|
1274
|
+
);
|
1275
|
+
},
|
1276
|
+
l = (0, r.useState)(a(e, t, n)),
|
1277
|
+
o = s(l, 2),
|
1278
|
+
c = o[0],
|
1279
|
+
i = o[1];
|
1280
|
+
return (
|
1281
|
+
(0, r.useLayoutEffect)(
|
1282
|
+
function () {
|
1283
|
+
i(a(e, t, n));
|
1284
|
+
},
|
1285
|
+
[e.navs, e.menus, t, n],
|
1286
|
+
),
|
1287
|
+
c
|
1288
|
+
);
|
1289
|
+
},
|
1290
|
+
k = function (e, t, n) {
|
1291
|
+
var a = function () {
|
1292
|
+
for (
|
1293
|
+
var t = arguments.length, a = new Array(t), r = 0;
|
1294
|
+
r < t;
|
1295
|
+
r++
|
1296
|
+
)
|
1297
|
+
a[r] = arguments[r];
|
1298
|
+
return a[0] === a[1][0].name
|
1299
|
+
? a[2].path
|
1300
|
+
: ''.concat(n.path, '/').concat(e).replace(/\/\//, '/');
|
1301
|
+
},
|
1302
|
+
l = (0, r.useState)(a(e, t, n)),
|
1303
|
+
o = s(l, 2),
|
1304
|
+
c = o[0],
|
1305
|
+
i = o[1];
|
1306
|
+
return (
|
1307
|
+
(0, r.useLayoutEffect)(
|
1308
|
+
function () {
|
1309
|
+
i(a(e, t, n));
|
1310
|
+
},
|
1311
|
+
[e],
|
1312
|
+
),
|
1313
|
+
c
|
1314
|
+
);
|
1315
|
+
},
|
1316
|
+
_ = function e(t) {
|
1317
|
+
var n;
|
1318
|
+
return null ===
|
1319
|
+
(n = t.find(function (t) {
|
1320
|
+
return !!t.__dumiRoot || (!!t.routes && e(t.routes));
|
1321
|
+
})) || void 0 === n
|
1322
|
+
? void 0
|
1323
|
+
: n.routes;
|
1324
|
+
},
|
1325
|
+
O = function (e) {
|
1326
|
+
var t = e.location,
|
1327
|
+
n = e.route,
|
1328
|
+
a = e.children,
|
1329
|
+
c = t.pathname.replace(n.path.replace(/^\/$/, '//'), ''),
|
1330
|
+
i = _(e.routes) || [],
|
1331
|
+
u = b(i, t.pathname),
|
1332
|
+
s = E(l.default.locales, c),
|
1333
|
+
m = w(l.default, s, t.pathname),
|
1334
|
+
f = k(s, l.default.locales, n);
|
1335
|
+
return r.default.createElement(
|
1336
|
+
o.default.Provider,
|
1337
|
+
{
|
1338
|
+
value: {
|
1339
|
+
config: l.default,
|
1340
|
+
meta: u.__pathname === t.pathname ? u : {},
|
1341
|
+
locale: s,
|
1342
|
+
nav: l.default.navs[s] || [],
|
1343
|
+
menu: m,
|
1344
|
+
base: f,
|
1345
|
+
routes: i,
|
1346
|
+
},
|
1347
|
+
},
|
1348
|
+
a,
|
1349
|
+
);
|
1350
|
+
},
|
1351
|
+
S = O;
|
1352
|
+
t.default = S;
|
1353
|
+
},
|
1354
|
+
Mpie: function (e, t, n) {},
|
1355
|
+
Zkgb: function (e, t, n) {},
|
1356
|
+
fVI1: function (e, t, n) {},
|
1357
|
+
hJnp: function (e, t, n) {},
|
1358
|
+
mdU6: function (e, t, n) {},
|
1359
|
+
},
|
1360
|
+
]);
|