remons-render-markdown 1.0.27-beta.4 → 1.0.27-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@import "//at.alicdn.com/t/c/font_2004544_gigrjtfsf6.css";._container_1a6ji_4{z-index:10000;pointer-events:none;flex-direction:column;align-items:center;gap:8px;display:flex;position:fixed;top:8vh;left:50%;transform:translate(-50%)}._item_1a6ji_16{pointer-events:auto}._toast_1a6ji_19{background-color:var(--remons-markdown-color-bg-white);box-shadow:var(--remons-markdown-shadow-sm);border-radius:6px;align-items:center;gap:8px;min-width:200px;padding:10px 20px;font-size:14px;animation:.3s _fadeIn_1a6ji_1;display:flex}._toast-warning_1a6ji_31{color:#faad14}._toast-info_1a6ji_34{color:#1890ff}._toast-error_1a6ji_37{color:#ff4d4f}._toast-success_1a6ji_40{color:#52c41a}@keyframes _fadeIn_1a6ji_1{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}._back-top_eqlb6_4{cursor:pointer;color:#333;z-index:1000;background:#fff;border:1px solid #d9d9d9;border-radius:6px;justify-content:center;align-items:center;width:40px;height:40px;font-size:16px;transition:all .3s;display:flex;position:fixed;bottom:60px;right:40px;box-shadow:0 2px 8px #00000026}._back-top_eqlb6_4:hover{color:#40a9ff;background:#f5f5f5;border-color:#40a9ff}._back-top_eqlb6_4:active{transform:scale(.95)}[data-theme=dark] ._back-top_eqlb6_4{color:#e8ecf4;background:#2e3350;border:1px solid #3d4258;box-shadow:0 2px 8px #0006}[data-theme=dark] ._back-top_eqlb6_4:hover{color:#4f9eff;background:#3d4258;border-color:#4f9eff}@media screen and (width<=500px){._back-top_eqlb6_4{width:30px;height:30px;bottom:40px;right:30px}}._empty_container_1qt26_1{color:#999;flex-direction:column;justify-content:center;align-items:center;gap:12px;height:100%;display:flex}._description_1qt26_10{font-size:14px}.viewer-zoom-in:before,.viewer-zoom-out:before,.viewer-one-to-one:before,.viewer-reset:before,.viewer-prev:before,.viewer-play:before,.viewer-next:before,.viewer-rotate-left:before,.viewer-rotate-right:before,.viewer-flip-horizontal:before,.viewer-flip-vertical:before,.viewer-fullscreen:before,.viewer-fullscreen-exit:before,.viewer-close:before{color:#0000;background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 viewBox%3D%220 0 560 40%22%3E%3Cpath fill%3D%22%23fff%22 d%3D%22M49.6 17.9h20.2v3.9H49.6zm123.1 2 10.9-11 2.7 2.8-8.2 8.2 8.2 8.2-2.7 2.7-10.9-10.9zm94 0-10.8-11-2.7 2.8 8.1 8.2-8.1 8.2 2.7 2.7 10.8-10.9zM212 9.3l20.1 10.6L212 30.5V9.3zm161.5 4.6-7.2 6 7.2 5.9v-4h12.4v4l7.3-5.9-7.3-6v4h-12.4v-4zm40.2 12.3 5.9 7.2 5.9-7.2h-4V13.6h4l-5.9-7.3-5.9 7.3h4v12.6h-4zm35.9-16.5h6.3v2h-4.3V16h-2V9.7Zm14 0h6.2V16h-2v-4.3h-4.2v-2Zm6.2 14V30h-6.2v-2h4.2v-4.3h2Zm-14 6.3h-6.2v-6.3h2v4.4h4.3v2Zm-438 .1v-8.3H9.6v-3.9h8.2V9.7h3.9v8.2h8.1v3.9h-8.1v8.3h-3.9zM93.6 9.7h-5.8v3.9h2V30h3.8V9.7zm16.1 0h-5.8v3.9h1.9V30h3.9V9.7zm-11.9 4.1h3.9v3.9h-3.9zm0 8.2h3.9v3.9h-3.9zm244.6-11.7 7.2 5.9-7.2 6v-3.6c-5.4-.4-7.8.8-8.7 2.8-.8 1.7-1.8 4.9 2.8 8.2-6.3-2-7.5-6.9-6-11.3 1.6-4.4 8-5 11.9-4.9v-3.1Zm147.2 13.4h6.3V30h-2v-4.3h-4.3v-2zm14 6.3v-6.3h6.2v2h-4.3V30h-1.9zm6.2-14h-6.2V9.7h1.9V14h4.3v2zm-13.9 0h-6.3v-2h4.3V9.7h2V16zm33.3 12.5 8.6-8.6-8.6-8.7 1.9-1.9 8.6 8.7 8.6-8.7 1.9 1.9-8.6 8.7 8.6 8.6-1.9 2-8.6-8.7-8.6 8.7-1.9-2zM297 10.3l-7.1 5.9 7.2 6v-3.6c5.3-.4 7.7.8 8.7 2.8.8 1.7 1.7 4.9-2.9 8.2 6.3-2 7.5-6.9 6-11.3-1.6-4.4-7.9-5-11.8-4.9v-3.1Zm-157.3-.6c2.3 0 4.4.7 6 2l2.5-3 1.9 9.2h-9.3l2.6-3.1a6.2 6.2 0 0 0-9.9 5.1c0 3.4 2.8 6.3 6.2 6.3 2.8 0 5.1-1.9 6-4.4h4c-1 4.7-5 8.3-10 8.3a10 10 0 0 1-10-10.2 10 10 0 0 1 10-10.2Z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat;background-size:280px;width:20px;height:20px;font-size:0;line-height:0;display:block}.viewer-zoom-in:before{content:"Zoom In";background-position:0 0}.viewer-zoom-out:before{content:"Zoom Out";background-position:-20px 0}.viewer-one-to-one:before{content:"One to One";background-position:-40px 0}.viewer-reset:before{content:"Reset";background-position:-60px 0}.viewer-prev:before{content:"Previous";background-position:-80px 0}.viewer-play:before{content:"Play";background-position:-100px 0}.viewer-next:before{content:"Next";background-position:-120px 0}.viewer-rotate-left:before{content:"Rotate Left";background-position:-140px 0}.viewer-rotate-right:before{content:"Rotate Right";background-position:-160px 0}.viewer-flip-horizontal:before{content:"Flip Horizontal";background-position:-180px 0}.viewer-flip-vertical:before{content:"Flip Vertical";background-position:-200px 0}.viewer-fullscreen:before{content:"Enter Full Screen";background-position:-220px 0}.viewer-fullscreen-exit:before{content:"Exit Full Screen";background-position:-240px 0}.viewer-close:before{content:"Close";background-position:-260px 0}.viewer-container{-webkit-tap-highlight-color:transparent;-ms-touch-action:none;touch-action:none;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;direction:ltr;font-size:0;line-height:0;position:absolute;inset:0;overflow:hidden}.viewer-container::-moz-selection{background-color:#0000}.viewer-container ::-moz-selection{background-color:#0000}.viewer-container::selection{background-color:#0000}.viewer-container ::selection{background-color:#0000}.viewer-container:focus{outline:0}.viewer-container img{width:100%;height:auto;display:block;min-width:0!important;max-width:none!important;min-height:0!important;max-height:none!important}.viewer-canvas{position:absolute;inset:0;overflow:hidden}.viewer-canvas>img{width:auto;height:auto;margin:15px auto;max-width:90%!important}.viewer-footer{text-align:center;position:absolute;bottom:0;left:0;right:0;overflow:hidden}.viewer-navbar{background-color:#00000080;overflow:hidden}.viewer-list{box-sizing:content-box;height:50px;margin:0;padding:1px 0;overflow:hidden}.viewer-list>li{color:#0000;cursor:pointer;float:left;opacity:.5;width:30px;height:50px;font-size:0;line-height:0;transition:opacity .15s;overflow:hidden}.viewer-list>li:focus,.viewer-list>li:hover{opacity:.75}.viewer-list>li:focus{outline:0}.viewer-list>li+li{margin-left:1px}.viewer-list>.viewer-loading{position:relative}.viewer-list>.viewer-loading:after{border-width:2px;width:20px;height:20px;margin-top:-10px;margin-left:-10px}.viewer-list>.viewer-active,.viewer-list>.viewer-active:focus,.viewer-list>.viewer-active:hover{opacity:1}.viewer-player{cursor:none;z-index:1;background-color:#000;display:none;position:absolute;inset:0}.viewer-player>img{position:absolute;top:0;left:0}.viewer-toolbar>ul{margin:0 auto 5px;padding:6px 3px;display:inline-block;overflow:hidden}.viewer-toolbar>ul>li{cursor:pointer;float:left;background-color:#00000080;border-radius:50%;width:24px;height:24px;transition:background-color .15s;overflow:hidden}.viewer-toolbar>ul>li:focus,.viewer-toolbar>ul>li:hover{background-color:#000c}.viewer-toolbar>ul>li:focus{z-index:1;outline:0;position:relative;box-shadow:0 0 3px #fff}.viewer-toolbar>ul>li:before{margin:2px}.viewer-toolbar>ul>li+li{margin-left:1px}.viewer-toolbar>ul>.viewer-small{width:18px;height:18px;margin-top:3px;margin-bottom:3px}.viewer-toolbar>ul>.viewer-small:before{margin:-1px}.viewer-toolbar>ul>.viewer-large{width:30px;height:30px;margin-top:-3px;margin-bottom:-3px}.viewer-toolbar>ul>.viewer-large:before{margin:5px}.viewer-tooltip{color:#fff;text-align:center;background-color:#000c;border-radius:10px;width:50px;height:20px;margin-top:-10px;margin-left:-25px;font-size:12px;line-height:20px;display:none;position:absolute;top:50%;left:50%}.viewer-title{color:#ccc;opacity:.8;text-overflow:ellipsis;white-space:nowrap;max-width:90%;min-height:14px;margin:5px 5%;font-size:12px;line-height:1.2;transition:opacity .15s;display:inline-block;overflow:hidden}.viewer-title:hover{opacity:1}.viewer-button{-webkit-app-region:no-drag;cursor:pointer;background-color:#00000080;border-radius:50%;width:80px;height:80px;transition:background-color .15s;position:absolute;top:-40px;right:-40px;overflow:hidden}.viewer-button:focus,.viewer-button:hover{background-color:#000c}.viewer-button:focus{outline:0;box-shadow:0 0 3px #fff}.viewer-button:before{position:absolute;bottom:15px;left:15px}.viewer-fixed{position:fixed}.viewer-open{overflow:hidden}.viewer-show{display:block}.viewer-hide{display:none}.viewer-backdrop{background-color:#00000080}.viewer-invisible{visibility:hidden}.viewer-move{cursor:move;cursor:grab}.viewer-fade{opacity:0}.viewer-in{opacity:1}.viewer-transition{transition:all .3s}@keyframes viewer-spinner{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.viewer-loading:after{content:"";z-index:1;border:4px solid #ffffff1a;border-left-color:#ffffff80;border-radius:50%;width:40px;height:40px;margin-top:-20px;margin-left:-20px;animation:1s linear infinite viewer-spinner;display:inline-block;position:absolute;top:50%;left:50%}@media (width<=767px){.viewer-hide-xs-down{display:none}}@media (width<=991px){.viewer-hide-sm-down{display:none}}@media (width<=1199px){.viewer-hide-md-down{display:none}}._image-preview-wrapper_ddqll_1{border-radius:var(--remons-markdown-border-radius,8px);border:1px solid var(--remons-markdown-color-border,#e4e4e4);width:100%;margin:8px 0;display:inline-block;position:relative}._image-preview-wrapper_ddqll_1 ._image-toolbar-wrapper_ddqll_9{z-index:10;opacity:.8;display:flex;position:absolute;top:2px;right:0}._image-preview-wrapper_ddqll_1 ._image-toolbar-wrapper_ddqll_9 ._image-toolbar-btn_ddqll_17{justify-content:center;align-items:center;width:24px;height:24px;display:inline-flex}.hljs{color:#f8f8f2;background:#23241f}.hljs-tag,.hljs-subst{color:#f8f8f2}.hljs-strong,.hljs-emphasis{color:#a8a8a2}.hljs-bullet,.hljs-quote,.hljs-number,.hljs-regexp,.hljs-literal,.hljs-link{color:#ae81ff}.hljs-code,.hljs-title,.hljs-section,.hljs-selector-class{color:#a6e22e}.hljs-strong{font-weight:700}.hljs-keyword,.hljs-selector-tag,.hljs-name,.hljs-attr{color:#f92672}.hljs-symbol,.hljs-attribute{color:#66d9ef}.hljs-params,.hljs-title.class_,.hljs-class .hljs-title{color:#f8f8f2}.hljs-string,.hljs-type,.hljs-built_in,.hljs-selector-id,.hljs-selector-attr,.hljs-selector-pseudo,.hljs-addition,.hljs-variable,.hljs-template-variable{color:#e6db74}.hljs-comment,.hljs-deletion,.hljs-meta{color:#75715e;font-family:Consolas,Inter,Noto Sans SC,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Microsoft YaHei,sans-serif}.markdown-tabs-tabs-wrapper{border-radius:4px;margin-top:2px;position:relative;-webkit-mask-image:linear-gradient(90deg,#000 0% 100%);mask-image:linear-gradient(90deg,#000 0% 100%)}.markdown-tabs-tabs-wrapper:after{content:"";pointer-events:none;z-index:10;opacity:0;height:30px;transition:opacity .4s;position:absolute;top:0;left:0;right:0}.markdown-tabs-tabs-wrapper.has-left-mask:after{opacity:1;background:linear-gradient(90deg,#fff9 0%,#fff0 15%)}.markdown-tabs-tabs-wrapper.has-right-mask:after{opacity:1;background:linear-gradient(270deg,#fff9 0%,#fff0 10%)}.markdown-tabs-tabs-wrapper.has-both-masks:after{opacity:1;background:linear-gradient(90deg,#fff9 0%,#fff0 15% 85%,#fff9 100%)}.markdown-tabs-tabs-wrapper .markdown-tabs-tabs-header{z-index:2;background:0 0;display:flex;top:0;overflow:auto hidden}.markdown-tabs-tabs-wrapper .markdown-tabs-tabs-header::-webkit-scrollbar{display:none}.markdown-tabs-tabs-wrapper .markdown-tabs-tab-button{cursor:pointer;background:#ebecf0;border-radius:8px 8px 0 0;min-width:50px;margin:0 2px;padding:6px 8px;font-size:14px;font-weight:400;transition:background .4s;position:relative;box-shadow:none!important;border:1px solid #ccc!important;border-bottom:0!important}.markdown-tabs-tabs-wrapper .markdown-tabs-tab-button:last-child{border-right:none;margin-right:0}.markdown-tabs-tabs-wrapper .markdown-tabs-tab-button:first-child{margin-left:0}.markdown-tabs-tabs-wrapper .markdown-tabs-tab-button:hover{color:#007bff;background:#e4e4f5;box-shadow:none!important}.markdown-tabs-tabs-wrapper .markdown-tabs-tab-button.active{color:#007bff;background:#dbdbff;position:relative}.markdown-tabs-tabs-wrapper .markdown-tabs-tabs-container{position:relative}.markdown-tabs-tabs-wrapper .markdown-tabs-tab-content{border:1px solid #ccc;border-radius:0 8px 8px;height:auto;padding:2px 10px 0;display:none;overflow:hidden}.markdown-tabs-tabs-wrapper .markdown-tabs-tab-content.active{display:block}[data-theme=dark] .markdown-tabs-tabs-header{border-color:#1a1d2e}[data-theme=dark] .markdown-tabs-tab-button{color:#afafaf;background:#263238;border-color:#1a1d2e!important}[data-theme=dark] .markdown-tabs-tab-button:hover{background:#2e3350}[data-theme=dark] .markdown-tabs-tab-button.active{background:#2e3350;border:1px solid #2e3350!important}[data-theme=dark] .markdown-tabs-tab-button.active:after{background:radial-gradient(16px at 100% 0,#0000 50%,#2e3350 50%)}[data-theme=dark] .markdown-tabs-tab-button.active:before{background:radial-gradient(16px at 0 0,#0000 50%,#2e3350 50%)}[data-theme=dark] .markdown-tabs-tab-content{border-color:#2e3350!important}:root{--vp-c-grey-text:#656869;--vp-c-grey-hover:#e4e4e9;--vp-c-grey-bg:#ebebef;--vp-c-grey-soft:#8e96aa24;--vp-c-purple-text:#6f42c1;--vp-c-purple-hover:#7e4cc9;--vp-c-purple-bg:#8e5cd9;--vp-c-purple-soft:#9f7aea24;--vp-c-blue-text:#2888a7;--vp-c-blue-hover:#2d98ba;--vp-c-blue-bg:#2fa1c5;--vp-c-blue-soft:#1bb2e524;--vp-c-green-text:#18794e;--vp-c-green-hover:#299764;--vp-c-green-bg:#30a46c;--vp-c-green-soft:#10b98124;--vp-c-yellow-text:#915930;--vp-c-yellow-hover:#946300;--vp-c-yellow-bg:#c28100;--vp-c-yellow-soft:#eab30824;--vp-c-red-text:#b8272c;--vp-c-red-hover:#d5393e;--vp-c-red-bg:#e0575b;--vp-c-red-soft:#f43f5e24}[data-theme=dark]{--vp-c-grey-text:#939499;--vp-c-grey-hover:#414853;--vp-c-grey-bg:#32363f;--vp-c-grey-soft:#65758529;--vp-c-blue-text:#c9e8f2;--vp-c-blue-hover:#a6d9ea;--vp-c-blue-bg:#2785a3;--vp-c-blue-soft:#1bb2e529;--vp-c-purple-text:#c8abfa;--vp-c-purple-hover:#a879e6;--vp-c-purple-bg:#8e5cd9;--vp-c-purple-soft:#9f7aea29;--vp-c-green-text:#3dd68c;--vp-c-green-hover:#30a46c;--vp-c-green-bg:#298459;--vp-c-green-soft:#10b98129;--vp-c-yellow-text:#f9b44e;--vp-c-yellow-hover:#da8b17;--vp-c-yellow-bg:#a46a0a;--vp-c-yellow-soft:#eab30829;--vp-c-red-text:#f66f81;--vp-c-red-hover:#f14158;--vp-c-red-bg:#b62a3c;--vp-c-red-soft:#f43f5e29}.markdown-alert{color:inherit;border-radius:8px;margin:4px 0;padding:6px 10px}.markdown-alert p{margin-bottom:4px!important;font-size:12px!important;line-height:1.5!important}.markdown-alert .markdown-alert-title{font-weight:var(--base-text-weight-medium,500);align-items:center;display:flex;position:relative}.markdown-alert .markdown-alert-title .markdown-alert-icon{padding-right:4px}@media print{.markdown-alert{break-inside:avoid;page-break-inside:avoid}}.markdown-alert.markdown-alert-note{background:var(--vp-c-grey-soft)}.markdown-alert.markdown-alert-note .markdown-alert-title{color:var(--vp-c-grey-text)}.markdown-alert.markdown-alert-important{background:var(--vp-c-purple-soft)}.markdown-alert.markdown-alert-important .markdown-alert-title{color:var(--vp-c-purple-text)}.markdown-alert.markdown-alert-tip{background:var(--vp-c-green-soft)}.markdown-alert.markdown-alert-tip .markdown-alert-title{color:var(--vp-c-green-text)}.markdown-alert.markdown-alert-warning{background:var(--vp-c-yellow-soft)}.markdown-alert.markdown-alert-warning .markdown-alert-title{color:var(--vp-c-yellow-text)}.markdown-alert.markdown-alert-caution{background:var(--vp-c-red-soft)}.markdown-alert.markdown-alert-caution .markdown-alert-title{color:var(--vp-c-red-text)}.amap-container{border:1px solid var(--remons-markdown-color-border,#e4e4e4);border-radius:var(--remons-markdown-border-radius,8px);justify-content:space-between;align-items:center;margin:10px 0;padding:10px;display:flex}.amap-container .amap-label{align-items:center;font-size:12px;display:inline-flex}.amap-container .amap-label img{width:60px;height:22px;margin:0 4px 0 0}.amap-container .amap-actions{justify-content:flex-end;align-items:center;gap:6px;margin-left:10px;display:flex}.amap-container .amap-actions .amap-copy-btn,.amap-container .amap-actions .amap-link-btn{background:var(--remons-markdown-color-button);color:var(--remons-markdown-color-text);cursor:pointer;border-radius:100px;align-items:center;gap:4px;padding:6px 10px;font-size:12px;line-height:1;text-decoration:none;display:inline-flex;border:1px solid var(--remons-markdown-color-button-border)!important}.amap-container .amap-actions .amap-link-btn{color:#fff;background:linear-gradient(90deg,#1a66ff,#1a8cff)}@media screen and (width<=768px){.amap-container .amap-label{flex-direction:column;justify-content:start;align-items:start;display:flex}.amap-container .amap-actions{flex-direction:row;width:100%;margin-left:0}.amap-container .amap-actions .amap-copy-btn,.amap-container .amap-actions .amap-link-btn{height:12px}.amap-label-text{display:none}}.markdown{cursor:initial;box-sizing:border-box;color:var(--color-text-primary,#24292f);letter-spacing:.01em;padding:10px 8px 0;font-family:Inter,Noto Sans SC,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Microsoft YaHei,sans-serif;font-size:15px;font-weight:400;line-height:1.75}.markdown .markdown-footer{align-items:center;margin-top:10px;font-size:12px;display:flex}.markdown .create-time{background:var(--color-bg-tooltip,#61616141);color:var(--color-text,#ffffffde);float:left;border-radius:4px;padding:0 4px;font-weight:400}.markdown h1,.markdown h2,.markdown h3,.markdown h4,.markdown h5,.markdown h6{color:var(--color-text-primary,#202124);letter-spacing:0;font-weight:700;line-height:1.35;position:relative;margin:2px 0!important}.markdown h1,.markdown h2,.markdown h3,.markdown h4{margin:6px 0!important}.markdown h1:first-child,.markdown h2:first-child,.markdown h3:first-child,.markdown h4:first-child,.markdown h5:first-child,.markdown h6:first-child{margin-top:0}.markdown h1{font-size:22px}.markdown h2{font-size:20px}.markdown h3{font-size:18px}.markdown h4{font-size:17px}.markdown h5,.markdown h6{font-size:16px}.markdown p{word-break:break-word;margin:0 0 6px;font-size:15px;line-height:1.75}.markdown ul,.markdown ol{margin:0 0 10px;padding-left:1.5em}.markdown ul li,.markdown ol li{margin:4px 0;font-size:14px;line-height:18px}.markdown ul li p,.markdown ol li p{margin:0}.markdown blockquote{color:var(--remons-markdown-color-text-secondary,#57606a);background:var(--remons-markdown-color-bg-card,#f6f8fa);border-left:4px solid var(--remons-markdown-color-border-dark,#d0d7de);border-radius:0 6px 6px 0;margin:6px 0;padding:4px 6px}.markdown blockquote p:last-child{margin-bottom:0}.markdown img{max-width:100%;margin:0 auto;display:block}.markdown table{border:1px solid var(--remons-markdown-color-border-dark,#d0d7de);border-spacing:0;border-collapse:separate;border-radius:6px;max-width:100%;margin:10px 0;display:inline-block;overflow:auto}.markdown table thead{background-color:var(--remons-markdown-color-bg-card,#f6f8fa);text-align:left;vertical-align:bottom}.markdown table td,.markdown table th{border-right:1px solid var(--remons-markdown-color-border-dark,#d0d7de);border-bottom:1px solid var(--remons-markdown-color-border-dark,#d0d7de);min-width:56px;padding:2px 6px;font-size:13px;line-height:22px}.markdown table tr:last-child td{border-bottom:0}.markdown table td:last-child,.markdown table th:last-child{border-right:0}.markdown ul.contains-task-list{padding-left:0}.markdown ul.contains-task-list li.task-list-item{list-style:none}.markdown .markdown-html{color:var(--remons-markdown-color-text-primary,#24292f)}.markdown .markdown-html .header-anchor{opacity:0;color:var(--remons-markdown-color-text-placeholder,#999);text-decoration:none;transition:opacity .2s ease-in-out}.markdown .markdown-html h1:hover .header-anchor,.markdown .markdown-html h2:hover .header-anchor,.markdown .markdown-html h3:hover .header-anchor,.markdown .markdown-html h4:hover .header-anchor,.markdown .markdown-html h5:hover .header-anchor,.markdown .markdown-html h6:hover .header-anchor{opacity:1}.markdown code{color:#c7254df1;background:#f9f2f4;border-radius:5px;margin:0 2px;padding:2px 7px;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:.9em;line-height:1.5}.markdown pre:has(code.mermaid-render-noCode){visibility:hidden;height:36px}.markdown pre{color:#f8f8f2;cursor:auto;background-color:#263238;border-radius:10px;margin:10px 0;font-family:Consolas,Inter,Noto Sans SC,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Microsoft YaHei,sans-serif;font-size:14px;font-weight:400;line-height:1.6;position:relative;overflow:hidden;box-shadow:inset 5px 5px 10px #0f1416,inset -5px -5px 10px #3d505a}.markdown pre code{width:calc(100% - 32px);color:inherit;font-size:inherit;line-height:inherit;background-color:#0000;border-radius:0;margin:0;padding:4px 16px 0;display:inline-block;overflow:auto}.markdown pre .pre-handle{color:#c9d1d9;background:#242933;justify-content:space-between;align-items:center;height:32px;padding-left:16px;padding-right:10px;font-size:12px;line-height:32px;display:flex}.markdown pre .pre-handle>span{font-family:var(--remons-markdown-font-family-editor);align-items:center;display:inline-flex}.markdown pre .pre-handle img{width:36px;height:8px;margin:0 6px 0 0}.markdown pre .pre-handle .code-toggle{margin-left:10px}.markdown pre .pre-handle .copy,.markdown pre .pre-handle .code-toggle{cursor:pointer;font-size:14px}.markdown pre.code-collapsed{max-height:32px;overflow:hidden}.markdown pre.code-collapsed code{overflow:hidden}.markdown a{color:var(--remons-markdown-color-text-primary,#222)}.markdown iframe{border-radius:var(--remons-markdown-border-radius,6px);width:100%;max-height:300px}.markdown img{border-radius:var(--remons-markdown-border-radius,6px);width:auto;max-height:100px;transition:max-height .3s;overflow:hidden}@media screen and (width<=500px){.markdown iframe{max-height:150px}}@media print{.markdown table{width:100%;display:table}.code-handle{display:none!important}.katex-mathml{display:none}}._modal-mask_dzv9e_4{z-index:1000;opacity:0;background-color:#00000073;justify-content:center;align-items:center;transition:opacity .3s;display:flex;position:fixed;inset:0}._modal-mask-visible_dzv9e_18{opacity:1}._modal_dzv9e_4{background:#fff;border-radius:8px;flex-direction:column;max-height:90vh;transition:transform .3s;display:flex;transform:scale(.9);box-shadow:0 6px 16px #00000026}._modal-mask-visible_dzv9e_18 ._modal_dzv9e_4{transform:scale(1)}._modal-header_dzv9e_34{border-bottom:1px solid #f0f0f0;justify-content:space-between;align-items:center;padding:10px;display:flex}._modal-title_dzv9e_41{color:#333;font-size:16px;font-weight:500}._modal-close_dzv9e_46{color:#999;cursor:pointer;border-radius:4px;justify-content:center;align-items:center;width:32px;height:32px;font-size:20px;transition:all .2s;display:flex}._modal-close_dzv9e_46:hover{color:#333;background-color:#f5f5f5}._modal-body_dzv9e_62{flex:1;padding:6px;overflow:auto}._modal-footer_dzv9e_67{text-align:right;border-top:1px solid #f0f0f0;padding:16px 24px}[data-theme=dark] ._modal_dzv9e_4{background:#2e3350;box-shadow:0 6px 16px #0006}[data-theme=dark] ._modal-header_dzv9e_34{border-bottom:1px solid #3d4258}[data-theme=dark] ._modal-title_dzv9e_41{color:#e8ecf4}[data-theme=dark] ._modal-close_dzv9e_46{color:#8892a4}[data-theme=dark] ._modal-close_dzv9e_46:hover{color:#e8ecf4;background-color:#3d4258}[data-theme=dark] ._modal-footer_dzv9e_67{border-top:1px solid #3d4258}._tooltip_1kuma_4{display:inline-block}._tooltip-trigger_1kuma_7{cursor:pointer;display:inline-block}._tooltip-inner_1kuma_11{color:#fff;white-space:nowrap;z-index:1070;opacity:0;pointer-events:none;background:#000000bf;border-radius:4px;margin-left:-5px;padding:6px 10px;font-size:12px;line-height:1.5;transition:opacity .2s;position:fixed;transform:translate(-50%,-100%)translateY(0)}._tooltip-inner-visible_1kuma_27{opacity:1}._tooltip-content_1kuma_30{text-overflow:ellipsis;white-space:nowrap;max-width:250px;overflow:hidden}._tooltip-arrow_1kuma_36{border:5px solid #0000;border-top-color:#000000bf;width:0;height:0;position:absolute;top:100%;left:50%;transform:translate(-50%)}._dropdown_13j0u_4{display:inline-block;position:relative}._dropdown-trigger_13j0u_8{cursor:pointer;display:inline-block}._dropdown-menu_13j0u_12{z-index:1050;opacity:0;background:#fff;border-radius:6px;margin-top:4px;padding:4px 0;transition:opacity .2s,transform .2s;position:absolute;top:100%;right:0;transform:translateY(8px);box-shadow:0 4px 12px #00000026}._dropdown-menu-visible_13j0u_26{opacity:1;transform:translateY(0)}._dropdown-item_13j0u_30{white-space:nowrap;color:#333;cursor:pointer;padding:4px 8px;font-size:12px;transition:background-color .2s}._dropdown-item_13j0u_30:hover{background-color:#f5f5f5}._dropdown-item_13j0u_30:active{background-color:#e8e8e8}[data-theme=dark] ._dropdown-menu_13j0u_12{background:#2e3350;box-shadow:0 4px 12px #0006}[data-theme=dark] ._dropdown-item_13j0u_30{color:#e8ecf4}[data-theme=dark] ._dropdown-item_13j0u_30:hover{background-color:#3d4258}[data-theme=dark] ._dropdown-item_13j0u_30:active{background-color:#1e2235}._previewArea_1n08k_2{background:var(--remons-markdown-color-bg-card,#f8f9fa);cursor:grab;border-radius:var(--remons-markdown-radius-base);width:100%;height:100%;position:relative;overflow:hidden}._previewArea_1n08k_2:active{cursor:grabbing}._previewArea_1n08k_2:fullscreen{cursor:grab;width:100vw;height:100vh}.mermaid-mini ._previewArea_1n08k_2{visibility:hidden}.print-preview ._previewArea_1n08k_2{background:0 0}._previewAreaDisabled_1n08k_25,._previewAreaDisabled_1n08k_25:active{cursor:default!important}._previewContent_1n08k_31{transform-origin:50%;touch-action:none;justify-content:center;align-items:center;width:100%;height:100%;display:flex}._previewContent_1n08k_31 svg{max-width:100%;max-height:100%;display:block;font-family:var(--remons-markdown-font-family-base)!important}._errorTip_1n08k_47{color:var(--remons-markdown-color-danger,#ef4444);word-break:break-all;background:#fef2f2;border-bottom:1px solid #fee2e2;flex-shrink:0;max-height:120px;padding:8px 12px;font-size:12px;overflow:auto}._emptyTip_1n08k_59{color:var(--remons-markdown-color-text-light,#9ca3af);pointer-events:none;justify-content:center;align-items:center;font-size:14px;display:flex;position:absolute;inset:0}.mermaid-react-root{min-height:36px;margin:10px 0}.mermaid-wrapper,.mermaid-loading{background-color:var(--remons-markdown-color-bg-card,#f8f9fa);border:1px solid var(--remons-markdown-color-border,#e4e4e4);box-sizing:border-box;border-radius:8px;transition:all .3s ease-in-out;position:relative;overflow:hidden}.mermaid-wrapper.mermaid-mini,.mermaid-loading.mermaid-mini{max-height:36px}.mermaid-wrapper .mermaid-content.disabled-move,.mermaid-loading .mermaid-content.disabled-move{cursor:initial!important}.mermaid-wrapper.print-preview,.mermaid-loading.print-preview{background-color:#0000}.mermaid-wrapper.mermaid-collapsed,.mermaid-loading.mermaid-collapsed{max-height:200px}.mermaid-wrapper.mermaid-collapsed:after,.mermaid-loading.mermaid-collapsed:after{pointer-events:none;content:"";background:linear-gradient(to bottom, transparent, var(--remons-markdown-color-bg,#ebebeb));height:28px;position:absolute;bottom:0;left:0;right:0}.mermaid-wrapper-fullscreen{background:var(--remons-markdown-bg-gradient)}.mermaid-loading{justify-content:center;align-items:center;height:200px;display:flex}.mermaid-wrapper svg{display:block}.mermaid-title{align-items:center;line-height:34px;display:flex;position:absolute;left:6px}.mermaid-title .mermaid-title-tag{color:#fc366e;background:#fdf1f6;border-radius:4px;align-items:center;margin-right:4px;display:flex;overflow:hidden}.mermaid-title .mermaid-title-text{box-sizing:border-box;border:1px solid #fc366e;border-left:0;border-radius:0 4px 4px 0;height:20px;margin-left:-1px;padding-left:5px;padding-right:4px;font-size:12px;line-height:18px;display:inline-block}.mermaid-title img{width:auto;height:20px;margin:0;display:inline-block}.mermaid-toolbar,.mermaid-toolbar-loading{z-index:1;opacity:.8;gap:4px;position:absolute;top:4px;right:0}.mermaid-toolbar .remons-markdown-circle,.mermaid-toolbar-loading .remons-markdown-circle{width:24px;height:24px;font-size:12px;line-height:24px}.mermaid-toolbar-loading{margin-right:10px}.mermaid-fullscreen-target:fullscreen{background:var(--remons-markdown-color-bg-white,#fff);width:100vw;height:100vh;overflow:hidden}.mermaid-fullscreen-target:fullscreen .mermaid-content{justify-content:center;align-items:center;width:100%;height:100%;display:flex}.mermaid-fullscreen-target:fullscreen .mermaid-toolbar{top:4px;right:8px}.mermaid-content{justify-content:center;align-items:center;width:100%;height:100%;display:flex}.driver-popover button{box-shadow:none!important}.mermaid-code-modal .ant-modal-header{margin:0}.mermaid-code-modal .ant-modal-content{padding:20px 10px}.mermaid-code-modal .ant-modal-content .markdown{padding:0}@media screen and (width<=500px){.mermaid-title{font-size:12px!important}}:root,[data-theme=light]{--remons-markdown-color-bg:transparent;--remons-markdown-color-bg-card:transparent;--remons-markdown-color-button:#ffffff26;--remons-markdown-color-bg-white:#fff;--remons-markdown-color-bg-tooltip:#61616141;--remons-markdown-color-text:#61677c;--remons-markdown-color-text-primary:#202124;--remons-markdown-color-text-secondary:#595959;--remons-markdown-color-text-light:#6b7280;--remons-markdown-color-text-placeholder:#999;--remons-markdown-color-shadow:#babecc;--remons-markdown-color-shadow-light:#fff;--remons-markdown-shadow-sm:-5px -5px 10px var(--remons-markdown-color-shadow-light), 5px 5px 10px var(--remons-markdown-color-shadow);--remons-markdown-shadow-inset:inset 1px 1px 2px var(--remons-markdown-color-shadow), inset -1px -1px 2px var(--remons-markdown-color-shadow-light);--remons-markdown-color-danger:#ef4444;--remons-markdown-color-border:#dbdada;--remons-markdown-color-border-dark:#d0d7de;--remons-markdown-color-button-border:#fffc;--remons-markdown-font-family-base:Inter, Noto Sans SC, -apple-system, BlinkMacSystemFont, Segoe UI, PingFang SC, Microsoft YaHei, sans-serif;--remons-markdown-font-family-editor:SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;--remons-markdown-radius-base:8px;--remons-markdown-bg-gradient:linear-gradient(137deg, #e5f4ff 0%, #efe7ff 100%)}[data-theme=dark]{--remons-markdown-color-bg:#1a1d2e;--remons-markdown-color-bg-card:#1e2235;--remons-markdown-color-bg-white:#2e3350;--remons-markdown-color-bg-tooltip:#2e3350;--remons-markdown-color-button:#1e2235b3;--remons-markdown-color-text:#b0b8c8;--remons-markdown-color-text-primary:#e8ecf4;--remons-markdown-color-text-secondary:#8892a4;--remons-markdown-color-text-light:#8892a4;--remons-markdown-color-text-placeholder:#6b7280;--remons-markdown-color-shadow:#12141f;--remons-markdown-color-shadow-light:#28304a;--remons-markdown-shadow-sm:-5px -5px 10px var(--remons-markdown-color-shadow-light), 5px 5px 10px var(--remons-markdown-color-shadow);--remons-markdown-shadow-inset:inset 1px 1px 2px var(--remons-markdown-color-shadow), inset -1px -1px 2px var(--remons-markdown-color-shadow-light);--remons-markdown-color-danger:#ef4444;--remons-markdown-color-border:#2e3350;--remons-markdown-color-border-dark:#3d4258;--remons-markdown-color-button-border:#ffffff1a;--remons-markdown-font-family-base:Inter, Noto Sans SC, -apple-system, BlinkMacSystemFont, Segoe UI, PingFang SC, Microsoft YaHei, sans-serif, "PingFang SC", "Microsoft YaHei", sans-serif;--remons-markdown-font-family-editor:SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;--remons-markdown-radius-base:8px;--remons-markdown-bg-gradient:linear-gradient(137deg, #e5f4ff 0%, #efe7ff 100%)}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v20/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfMZg.ttf)format("truetype")}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v20/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuI6fMZg.ttf)format("truetype")}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v20/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuGKYMZg.ttf)format("truetype")}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v20/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuFuYMZg.ttf)format("truetype")}@font-face{font-family:Noto Sans SC;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/notosanssc/v40/k3kCo84MPvpLmixcA63oeAL7Iqp5IZJF9bmaG9_FnYw.ttf)format("truetype")}@font-face{font-family:Noto Sans SC;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/notosanssc/v40/k3kCo84MPvpLmixcA63oeAL7Iqp5IZJF9bmaG-3FnYw.ttf)format("truetype")}@font-face{font-family:Noto Sans SC;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/notosanssc/v40/k3kCo84MPvpLmixcA63oeAL7Iqp5IZJF9bmaGwHCnYw.ttf)format("truetype")}@font-face{font-family:Noto Sans SC;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/notosanssc/v40/k3kCo84MPvpLmixcA63oeAL7Iqp5IZJF9bmaGzjCnYw.ttf)format("truetype")}[data-theme=dark] .mermaid-wrapper,[data-theme=dark] .mermaid-loading,[data-theme=dark] .mermaid-fullscreen-target{background-color:#2e3350!important}[data-theme=dark] .mermaid-fullscreen-target:fullscreen{background:#1a1d2e!important}.remons-markdown-circle{background-color:var(--remons-markdown-color-bg);text-align:center;cursor:pointer;width:40px;height:40px;margin:0 5px 0 0;padding:0;line-height:40px;transition:shadow .2s ease-in-out;display:inline-block;top:40px;left:40px;box-shadow:var(--remons-markdown-shadow-sm)!important;border-radius:100%!important}.remons-markdown-circle:hover{box-shadow:-2px -2px 5px var(--remons-markdown-color-shadow-light), 2px 2px 5px var(--remons-markdown-color-shadow)!important}.remons-markdown-circle:active{box-shadow:var(--remons-markdown-shadow-inset)!important}@media screen and (width<=500px){.remons-markdown-circle{box-shadow:-2px -2px 10px var(--remons-markdown-color-shadow-light), 2px 2px 10px var(--remons-markdown-color-shadow)!important}}.driver-popover{all:unset;font-family:var(--driver-popover-font-family,"Helvetica Neue", Inter, ui-sans-serif, "Apple Color Emoji", Helvetica, Arial, sans-serif);box-sizing:border-box;color:#2d2d2d;z-index:1000000000;background-color:#fff;border-radius:5px;min-width:250px;max-width:300px;margin:0;padding:15px;position:fixed;top:0;right:0;box-shadow:0 1px 10px #0006}.driver-popover-title{zoom:1;margin:0;font-size:19px;font-weight:700;line-height:1.5;display:block;position:relative}.driver-popover-close-btn{all:unset;cursor:pointer;color:#d2d2d2;z-index:1;text-align:center;width:32px;height:28px;font-size:18px;font-weight:500;transition:color .2s;position:absolute;top:0;right:0}.driver-popover-close-btn:hover,.driver-popover-close-btn:focus{color:#2d2d2d}.driver-popover-title[style*=block]+.driver-popover-description{margin-top:5px}.driver-popover-description{zoom:1;margin-bottom:0;font-size:14px;font-weight:400;line-height:1.5}.driver-popover-footer{text-align:right;zoom:1;justify-content:space-between;align-items:center;margin-top:15px;display:flex}.driver-popover-progress-text{color:#727272;zoom:1;font-size:13px;font-weight:400}.driver-popover-footer-btn{all:unset;box-sizing:border-box;color:#2d2d2d;cursor:pointer;zoom:1;background-color:#fff;border:1px solid #ccc;border-radius:3px;outline:0;padding:3px 7px;font-size:12px;line-height:1.3;text-decoration:none;display:inline-block}.driver-popover-footer .driver-popover-btn-disabled{opacity:.5;pointer-events:none}.driver-popover-footer-btn:hover,.driver-popover-footer-btn:focus{background-color:#f7f7f7}.driver-popover-navigation-btns{flex-grow:1;justify-content:flex-end;display:flex}.driver-popover-navigation-btns button+button{margin-left:4px}.driver-popover-arrow{content:"";border:5px solid #fff;position:absolute}.driver-popover-arrow-side-over{display:none}.driver-popover-arrow-side-left{border-top-color:#0000;border-bottom-color:#0000;border-right-color:#0000;left:100%}.driver-popover-arrow-side-right{border-top-color:#0000;border-bottom-color:#0000;border-left-color:#0000;right:100%}.driver-popover-arrow-side-top{border-bottom-color:#0000;border-left-color:#0000;border-right-color:#0000;top:100%}.driver-popover-arrow-side-bottom{border-top-color:#0000;border-left-color:#0000;border-right-color:#0000;bottom:100%}.driver-popover-arrow-side-center,.driver-popover-arrow-none{display:none}.driver-active .driver-overlay{pointer-events:none}.driver-active.driver-no-scroll{overflow:hidden}.driver-active *{pointer-events:none}.driver-active .driver-active-element,.driver-active .driver-active-element *,.driver-popover,.driver-popover *{pointer-events:auto}@keyframes animate-fade-in{0%{opacity:0}to{opacity:1}}.driver-fade .driver-overlay{animation:animate-fade-in var(--driver-animation-duration,.4s) ease-in-out}.driver-fade .driver-popover{animation:animate-fade-in var(--driver-animation-duration,.4s)}.driver-active-element-parent-no-scroll{overflow:hidden!important}.driver-no-interaction,.driver-no-interaction *{pointer-events:none!important}
|
|
1
|
+
@import "//at.alicdn.com/t/c/font_2004544_gigrjtfsf6.css";._container_1a6ji_4{z-index:10000;pointer-events:none;flex-direction:column;align-items:center;gap:8px;display:flex;position:fixed;top:8vh;left:50%;transform:translate(-50%)}._item_1a6ji_16{pointer-events:auto}._toast_1a6ji_19{background-color:var(--remons-markdown-color-bg-white);box-shadow:var(--remons-markdown-shadow-sm);border-radius:6px;align-items:center;gap:8px;min-width:200px;padding:10px 20px;font-size:14px;animation:.3s _fadeIn_1a6ji_1;display:flex}._toast-warning_1a6ji_31{color:#faad14}._toast-info_1a6ji_34{color:#1890ff}._toast-error_1a6ji_37{color:#ff4d4f}._toast-success_1a6ji_40{color:#52c41a}@keyframes _fadeIn_1a6ji_1{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}._back-top_eqlb6_4{cursor:pointer;color:#333;z-index:1000;background:#fff;border:1px solid #d9d9d9;border-radius:6px;justify-content:center;align-items:center;width:40px;height:40px;font-size:16px;transition:all .3s;display:flex;position:fixed;bottom:60px;right:40px;box-shadow:0 2px 8px #00000026}._back-top_eqlb6_4:hover{color:#40a9ff;background:#f5f5f5;border-color:#40a9ff}._back-top_eqlb6_4:active{transform:scale(.95)}[data-theme=dark] ._back-top_eqlb6_4{color:#e8ecf4;background:#2e3350;border:1px solid #3d4258;box-shadow:0 2px 8px #0006}[data-theme=dark] ._back-top_eqlb6_4:hover{color:#4f9eff;background:#3d4258;border-color:#4f9eff}@media screen and (width<=500px){._back-top_eqlb6_4{width:30px;height:30px;bottom:40px;right:30px}}._empty_container_1qt26_1{color:#999;flex-direction:column;justify-content:center;align-items:center;gap:12px;height:100%;display:flex}._description_1qt26_10{font-size:14px}.viewer-zoom-in:before,.viewer-zoom-out:before,.viewer-one-to-one:before,.viewer-reset:before,.viewer-prev:before,.viewer-play:before,.viewer-next:before,.viewer-rotate-left:before,.viewer-rotate-right:before,.viewer-flip-horizontal:before,.viewer-flip-vertical:before,.viewer-fullscreen:before,.viewer-fullscreen-exit:before,.viewer-close:before{color:#0000;background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 viewBox%3D%220 0 560 40%22%3E%3Cpath fill%3D%22%23fff%22 d%3D%22M49.6 17.9h20.2v3.9H49.6zm123.1 2 10.9-11 2.7 2.8-8.2 8.2 8.2 8.2-2.7 2.7-10.9-10.9zm94 0-10.8-11-2.7 2.8 8.1 8.2-8.1 8.2 2.7 2.7 10.8-10.9zM212 9.3l20.1 10.6L212 30.5V9.3zm161.5 4.6-7.2 6 7.2 5.9v-4h12.4v4l7.3-5.9-7.3-6v4h-12.4v-4zm40.2 12.3 5.9 7.2 5.9-7.2h-4V13.6h4l-5.9-7.3-5.9 7.3h4v12.6h-4zm35.9-16.5h6.3v2h-4.3V16h-2V9.7Zm14 0h6.2V16h-2v-4.3h-4.2v-2Zm6.2 14V30h-6.2v-2h4.2v-4.3h2Zm-14 6.3h-6.2v-6.3h2v4.4h4.3v2Zm-438 .1v-8.3H9.6v-3.9h8.2V9.7h3.9v8.2h8.1v3.9h-8.1v8.3h-3.9zM93.6 9.7h-5.8v3.9h2V30h3.8V9.7zm16.1 0h-5.8v3.9h1.9V30h3.9V9.7zm-11.9 4.1h3.9v3.9h-3.9zm0 8.2h3.9v3.9h-3.9zm244.6-11.7 7.2 5.9-7.2 6v-3.6c-5.4-.4-7.8.8-8.7 2.8-.8 1.7-1.8 4.9 2.8 8.2-6.3-2-7.5-6.9-6-11.3 1.6-4.4 8-5 11.9-4.9v-3.1Zm147.2 13.4h6.3V30h-2v-4.3h-4.3v-2zm14 6.3v-6.3h6.2v2h-4.3V30h-1.9zm6.2-14h-6.2V9.7h1.9V14h4.3v2zm-13.9 0h-6.3v-2h4.3V9.7h2V16zm33.3 12.5 8.6-8.6-8.6-8.7 1.9-1.9 8.6 8.7 8.6-8.7 1.9 1.9-8.6 8.7 8.6 8.6-1.9 2-8.6-8.7-8.6 8.7-1.9-2zM297 10.3l-7.1 5.9 7.2 6v-3.6c5.3-.4 7.7.8 8.7 2.8.8 1.7 1.7 4.9-2.9 8.2 6.3-2 7.5-6.9 6-11.3-1.6-4.4-7.9-5-11.8-4.9v-3.1Zm-157.3-.6c2.3 0 4.4.7 6 2l2.5-3 1.9 9.2h-9.3l2.6-3.1a6.2 6.2 0 0 0-9.9 5.1c0 3.4 2.8 6.3 6.2 6.3 2.8 0 5.1-1.9 6-4.4h4c-1 4.7-5 8.3-10 8.3a10 10 0 0 1-10-10.2 10 10 0 0 1 10-10.2Z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat;background-size:280px;width:20px;height:20px;font-size:0;line-height:0;display:block}.viewer-zoom-in:before{content:"Zoom In";background-position:0 0}.viewer-zoom-out:before{content:"Zoom Out";background-position:-20px 0}.viewer-one-to-one:before{content:"One to One";background-position:-40px 0}.viewer-reset:before{content:"Reset";background-position:-60px 0}.viewer-prev:before{content:"Previous";background-position:-80px 0}.viewer-play:before{content:"Play";background-position:-100px 0}.viewer-next:before{content:"Next";background-position:-120px 0}.viewer-rotate-left:before{content:"Rotate Left";background-position:-140px 0}.viewer-rotate-right:before{content:"Rotate Right";background-position:-160px 0}.viewer-flip-horizontal:before{content:"Flip Horizontal";background-position:-180px 0}.viewer-flip-vertical:before{content:"Flip Vertical";background-position:-200px 0}.viewer-fullscreen:before{content:"Enter Full Screen";background-position:-220px 0}.viewer-fullscreen-exit:before{content:"Exit Full Screen";background-position:-240px 0}.viewer-close:before{content:"Close";background-position:-260px 0}.viewer-container{-webkit-tap-highlight-color:transparent;-ms-touch-action:none;touch-action:none;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;direction:ltr;font-size:0;line-height:0;position:absolute;inset:0;overflow:hidden}.viewer-container::-moz-selection{background-color:#0000}.viewer-container ::-moz-selection{background-color:#0000}.viewer-container::selection{background-color:#0000}.viewer-container ::selection{background-color:#0000}.viewer-container:focus{outline:0}.viewer-container img{width:100%;height:auto;display:block;min-width:0!important;max-width:none!important;min-height:0!important;max-height:none!important}.viewer-canvas{position:absolute;inset:0;overflow:hidden}.viewer-canvas>img{width:auto;height:auto;margin:15px auto;max-width:90%!important}.viewer-footer{text-align:center;position:absolute;bottom:0;left:0;right:0;overflow:hidden}.viewer-navbar{background-color:#00000080;overflow:hidden}.viewer-list{box-sizing:content-box;height:50px;margin:0;padding:1px 0;overflow:hidden}.viewer-list>li{color:#0000;cursor:pointer;float:left;opacity:.5;width:30px;height:50px;font-size:0;line-height:0;transition:opacity .15s;overflow:hidden}.viewer-list>li:focus,.viewer-list>li:hover{opacity:.75}.viewer-list>li:focus{outline:0}.viewer-list>li+li{margin-left:1px}.viewer-list>.viewer-loading{position:relative}.viewer-list>.viewer-loading:after{border-width:2px;width:20px;height:20px;margin-top:-10px;margin-left:-10px}.viewer-list>.viewer-active,.viewer-list>.viewer-active:focus,.viewer-list>.viewer-active:hover{opacity:1}.viewer-player{cursor:none;z-index:1;background-color:#000;display:none;position:absolute;inset:0}.viewer-player>img{position:absolute;top:0;left:0}.viewer-toolbar>ul{margin:0 auto 5px;padding:6px 3px;display:inline-block;overflow:hidden}.viewer-toolbar>ul>li{cursor:pointer;float:left;background-color:#00000080;border-radius:50%;width:24px;height:24px;transition:background-color .15s;overflow:hidden}.viewer-toolbar>ul>li:focus,.viewer-toolbar>ul>li:hover{background-color:#000c}.viewer-toolbar>ul>li:focus{z-index:1;outline:0;position:relative;box-shadow:0 0 3px #fff}.viewer-toolbar>ul>li:before{margin:2px}.viewer-toolbar>ul>li+li{margin-left:1px}.viewer-toolbar>ul>.viewer-small{width:18px;height:18px;margin-top:3px;margin-bottom:3px}.viewer-toolbar>ul>.viewer-small:before{margin:-1px}.viewer-toolbar>ul>.viewer-large{width:30px;height:30px;margin-top:-3px;margin-bottom:-3px}.viewer-toolbar>ul>.viewer-large:before{margin:5px}.viewer-tooltip{color:#fff;text-align:center;background-color:#000c;border-radius:10px;width:50px;height:20px;margin-top:-10px;margin-left:-25px;font-size:12px;line-height:20px;display:none;position:absolute;top:50%;left:50%}.viewer-title{color:#ccc;opacity:.8;text-overflow:ellipsis;white-space:nowrap;max-width:90%;min-height:14px;margin:5px 5%;font-size:12px;line-height:1.2;transition:opacity .15s;display:inline-block;overflow:hidden}.viewer-title:hover{opacity:1}.viewer-button{-webkit-app-region:no-drag;cursor:pointer;background-color:#00000080;border-radius:50%;width:80px;height:80px;transition:background-color .15s;position:absolute;top:-40px;right:-40px;overflow:hidden}.viewer-button:focus,.viewer-button:hover{background-color:#000c}.viewer-button:focus{outline:0;box-shadow:0 0 3px #fff}.viewer-button:before{position:absolute;bottom:15px;left:15px}.viewer-fixed{position:fixed}.viewer-open{overflow:hidden}.viewer-show{display:block}.viewer-hide{display:none}.viewer-backdrop{background-color:#00000080}.viewer-invisible{visibility:hidden}.viewer-move{cursor:move;cursor:grab}.viewer-fade{opacity:0}.viewer-in{opacity:1}.viewer-transition{transition:all .3s}@keyframes viewer-spinner{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.viewer-loading:after{content:"";z-index:1;border:4px solid #ffffff1a;border-left-color:#ffffff80;border-radius:50%;width:40px;height:40px;margin-top:-20px;margin-left:-20px;animation:1s linear infinite viewer-spinner;display:inline-block;position:absolute;top:50%;left:50%}@media (width<=767px){.viewer-hide-xs-down{display:none}}@media (width<=991px){.viewer-hide-sm-down{display:none}}@media (width<=1199px){.viewer-hide-md-down{display:none}}._image-preview-wrapper_ddqll_1{border-radius:var(--remons-markdown-border-radius,8px);border:1px solid var(--remons-markdown-color-border,#e4e4e4);width:100%;margin:8px 0;display:inline-block;position:relative}._image-preview-wrapper_ddqll_1 ._image-toolbar-wrapper_ddqll_9{z-index:10;opacity:.8;display:flex;position:absolute;top:2px;right:0}._image-preview-wrapper_ddqll_1 ._image-toolbar-wrapper_ddqll_9 ._image-toolbar-btn_ddqll_17{justify-content:center;align-items:center;width:24px;height:24px;display:inline-flex}.hljs{color:#f8f8f2;background:#23241f}.hljs-tag,.hljs-subst{color:#f8f8f2}.hljs-strong,.hljs-emphasis{color:#a8a8a2}.hljs-bullet,.hljs-quote,.hljs-number,.hljs-regexp,.hljs-literal,.hljs-link{color:#ae81ff}.hljs-code,.hljs-title,.hljs-section,.hljs-selector-class{color:#a6e22e}.hljs-strong{font-weight:700}.hljs-keyword,.hljs-selector-tag,.hljs-name,.hljs-attr{color:#f92672}.hljs-symbol,.hljs-attribute{color:#66d9ef}.hljs-params,.hljs-title.class_,.hljs-class .hljs-title{color:#f8f8f2}.hljs-string,.hljs-type,.hljs-built_in,.hljs-selector-id,.hljs-selector-attr,.hljs-selector-pseudo,.hljs-addition,.hljs-variable,.hljs-template-variable{color:#e6db74}.hljs-comment,.hljs-deletion,.hljs-meta{color:#75715e;font-family:Consolas,Inter,Noto Sans SC,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Microsoft YaHei,sans-serif}.markdown-tabs-tabs-wrapper{border-radius:4px;margin-top:2px;position:relative;-webkit-mask-image:linear-gradient(90deg,#000 0% 100%);mask-image:linear-gradient(90deg,#000 0% 100%)}.markdown-tabs-tabs-wrapper:after{content:"";pointer-events:none;z-index:10;opacity:0;height:30px;transition:opacity .4s;position:absolute;top:0;left:0;right:0}.markdown-tabs-tabs-wrapper.has-left-mask:after{opacity:1;background:linear-gradient(90deg,#fff9 0%,#fff0 15%)}.markdown-tabs-tabs-wrapper.has-right-mask:after{opacity:1;background:linear-gradient(270deg,#fff9 0%,#fff0 10%)}.markdown-tabs-tabs-wrapper.has-both-masks:after{opacity:1;background:linear-gradient(90deg,#fff9 0%,#fff0 15% 85%,#fff9 100%)}.markdown-tabs-tabs-wrapper .markdown-tabs-tabs-header{z-index:2;background:0 0;display:flex;top:0;overflow:auto hidden}.markdown-tabs-tabs-wrapper .markdown-tabs-tabs-header::-webkit-scrollbar{display:none}.markdown-tabs-tabs-wrapper .markdown-tabs-tab-button{cursor:pointer;background:#ebecf0;border-radius:8px 8px 0 0;min-width:50px;margin:0 2px;padding:6px 8px;font-size:14px;font-weight:400;transition:background .4s;position:relative;box-shadow:none!important;border:1px solid #ccc!important;border-bottom:0!important}.markdown-tabs-tabs-wrapper .markdown-tabs-tab-button:last-child{border-right:none;margin-right:0}.markdown-tabs-tabs-wrapper .markdown-tabs-tab-button:first-child{margin-left:0}.markdown-tabs-tabs-wrapper .markdown-tabs-tab-button:hover{color:#007bff;background:#e4e4f5;box-shadow:none!important}.markdown-tabs-tabs-wrapper .markdown-tabs-tab-button.active{color:#007bff;background:#dbdbff;position:relative}.markdown-tabs-tabs-wrapper .markdown-tabs-tabs-container{position:relative}.markdown-tabs-tabs-wrapper .markdown-tabs-tab-content{border:1px solid #ccc;border-radius:0 8px 8px;height:auto;padding:2px 10px 0;display:none;overflow:hidden}.markdown-tabs-tabs-wrapper .markdown-tabs-tab-content.active{display:block}[data-theme=dark] .markdown-tabs-tabs-header{border-color:#1a1d2e}[data-theme=dark] .markdown-tabs-tab-button{color:#afafaf;background:#263238;border-color:#1a1d2e!important}[data-theme=dark] .markdown-tabs-tab-button:hover{background:#2e3350}[data-theme=dark] .markdown-tabs-tab-button.active{background:#2e3350;border:1px solid #2e3350!important}[data-theme=dark] .markdown-tabs-tab-button.active:after{background:radial-gradient(16px at 100% 0,#0000 50%,#2e3350 50%)}[data-theme=dark] .markdown-tabs-tab-button.active:before{background:radial-gradient(16px at 0 0,#0000 50%,#2e3350 50%)}[data-theme=dark] .markdown-tabs-tab-content{border-color:#2e3350!important}:root{--vp-c-grey-text:#656869;--vp-c-grey-hover:#e4e4e9;--vp-c-grey-bg:#ebebef;--vp-c-grey-soft:#8e96aa24;--vp-c-purple-text:#6f42c1;--vp-c-purple-hover:#7e4cc9;--vp-c-purple-bg:#8e5cd9;--vp-c-purple-soft:#9f7aea24;--vp-c-blue-text:#2888a7;--vp-c-blue-hover:#2d98ba;--vp-c-blue-bg:#2fa1c5;--vp-c-blue-soft:#1bb2e524;--vp-c-green-text:#18794e;--vp-c-green-hover:#299764;--vp-c-green-bg:#30a46c;--vp-c-green-soft:#10b98124;--vp-c-yellow-text:#915930;--vp-c-yellow-hover:#946300;--vp-c-yellow-bg:#c28100;--vp-c-yellow-soft:#eab30824;--vp-c-red-text:#b8272c;--vp-c-red-hover:#d5393e;--vp-c-red-bg:#e0575b;--vp-c-red-soft:#f43f5e24}[data-theme=dark]{--vp-c-grey-text:#939499;--vp-c-grey-hover:#414853;--vp-c-grey-bg:#32363f;--vp-c-grey-soft:#65758529;--vp-c-blue-text:#c9e8f2;--vp-c-blue-hover:#a6d9ea;--vp-c-blue-bg:#2785a3;--vp-c-blue-soft:#1bb2e529;--vp-c-purple-text:#c8abfa;--vp-c-purple-hover:#a879e6;--vp-c-purple-bg:#8e5cd9;--vp-c-purple-soft:#9f7aea29;--vp-c-green-text:#3dd68c;--vp-c-green-hover:#30a46c;--vp-c-green-bg:#298459;--vp-c-green-soft:#10b98129;--vp-c-yellow-text:#f9b44e;--vp-c-yellow-hover:#da8b17;--vp-c-yellow-bg:#a46a0a;--vp-c-yellow-soft:#eab30829;--vp-c-red-text:#f66f81;--vp-c-red-hover:#f14158;--vp-c-red-bg:#b62a3c;--vp-c-red-soft:#f43f5e29}.markdown-alert{color:inherit;border-radius:8px;margin:4px 0;padding:6px 10px}.markdown-alert p{margin-bottom:4px!important;font-size:12px!important;line-height:1.5!important}.markdown-alert .markdown-alert-title{font-weight:var(--base-text-weight-medium,500);align-items:center;display:flex;position:relative}.markdown-alert .markdown-alert-title .markdown-alert-icon{padding-right:4px}@media print{.markdown-alert{break-inside:avoid;page-break-inside:avoid}}.markdown-alert.markdown-alert-note{background:var(--vp-c-grey-soft)}.markdown-alert.markdown-alert-note .markdown-alert-title{color:var(--vp-c-grey-text)}.markdown-alert.markdown-alert-important{background:var(--vp-c-purple-soft)}.markdown-alert.markdown-alert-important .markdown-alert-title{color:var(--vp-c-purple-text)}.markdown-alert.markdown-alert-tip{background:var(--vp-c-green-soft)}.markdown-alert.markdown-alert-tip .markdown-alert-title{color:var(--vp-c-green-text)}.markdown-alert.markdown-alert-warning{background:var(--vp-c-yellow-soft)}.markdown-alert.markdown-alert-warning .markdown-alert-title{color:var(--vp-c-yellow-text)}.markdown-alert.markdown-alert-caution{background:var(--vp-c-red-soft)}.markdown-alert.markdown-alert-caution .markdown-alert-title{color:var(--vp-c-red-text)}.amap-container{border:1px solid var(--remons-markdown-color-border,#e4e4e4);border-radius:var(--remons-markdown-border-radius,8px);justify-content:space-between;align-items:center;margin:10px 0;padding:10px;display:flex}.amap-container .amap-label{align-items:center;font-size:12px;display:inline-flex}.amap-container .amap-label img{width:60px;height:22px;margin:0 4px 0 0}.amap-container .amap-actions{justify-content:flex-end;align-items:center;gap:6px;margin-left:10px;display:flex}.amap-container .amap-actions .amap-copy-btn,.amap-container .amap-actions .amap-link-btn{background:var(--remons-markdown-color-button);color:var(--remons-markdown-color-text);cursor:pointer;border-radius:100px;align-items:center;gap:4px;padding:6px 10px;font-size:12px;line-height:1;text-decoration:none;display:inline-flex;border:1px solid var(--remons-markdown-color-button-border)!important}.amap-container .amap-actions .amap-link-btn{color:#fff;background:linear-gradient(90deg,#1a66ff,#1a8cff)}@media screen and (width<=768px){.amap-container .amap-label{flex-direction:column;justify-content:start;align-items:start;display:flex}.amap-container .amap-actions{flex-direction:row;width:100%;margin-left:0}.amap-container .amap-actions .amap-copy-btn,.amap-container .amap-actions .amap-link-btn{height:12px}.amap-label-text{display:none}}.markdown{cursor:initial;box-sizing:border-box;color:var(--color-text-primary,#24292f);letter-spacing:.01em;padding:10px 8px 0;font-family:Inter,Noto Sans SC,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Microsoft YaHei,sans-serif;font-size:15px;font-weight:400;line-height:1.75}.markdown .markdown-footer{align-items:center;margin-top:10px;font-size:12px;display:flex}.markdown .create-time{background:var(--color-bg-tooltip,#61616141);color:var(--color-text,#ffffffde);float:left;border-radius:4px;padding:0 4px;font-weight:400}.markdown h1,.markdown h2,.markdown h3,.markdown h4,.markdown h5,.markdown h6{color:var(--color-text-primary,#202124);letter-spacing:0;font-weight:700;line-height:1.35;position:relative;margin:2px 0!important}.markdown h1,.markdown h2,.markdown h3,.markdown h4{margin:6px 0!important}.markdown h1:first-child,.markdown h2:first-child,.markdown h3:first-child,.markdown h4:first-child,.markdown h5:first-child,.markdown h6:first-child{margin-top:0}.markdown h1{font-size:22px}.markdown h2{font-size:20px}.markdown h3{font-size:18px}.markdown h4{font-size:17px}.markdown h5,.markdown h6{font-size:16px}.markdown p{word-break:break-word;margin:0 0 6px;font-size:15px;line-height:1.75}.markdown ul,.markdown ol{margin:0 0 10px;padding-left:1.5em}.markdown ul li,.markdown ol li{margin:4px 0;font-size:14px;line-height:18px}.markdown ul li p,.markdown ol li p{margin:0}.markdown blockquote{color:var(--remons-markdown-color-text-secondary,#57606a);background:var(--remons-markdown-color-bg-card,#f6f8fa);border-left:4px solid var(--remons-markdown-color-border-dark,#d0d7de);border-radius:0 6px 6px 0;margin:6px 0;padding:4px 6px}.markdown blockquote p:last-child{margin-bottom:0}.markdown img{max-width:100%;margin:0 auto;display:block}.markdown table{border:1px solid var(--remons-markdown-color-border-dark,#d0d7de);border-spacing:0;border-collapse:separate;border-radius:6px;max-width:100%;margin:10px 0;display:inline-block;overflow:auto}.markdown table thead{background-color:var(--remons-markdown-color-bg-card,#f6f8fa);text-align:left;vertical-align:bottom}.markdown table td,.markdown table th{border-right:1px solid var(--remons-markdown-color-border-dark,#d0d7de);border-bottom:1px solid var(--remons-markdown-color-border-dark,#d0d7de);min-width:56px;padding:2px 6px;font-size:13px;line-height:22px}.markdown table tr:last-child td{border-bottom:0}.markdown table td:last-child,.markdown table th:last-child{border-right:0}.markdown ul.contains-task-list{padding-left:0}.markdown ul.contains-task-list li.task-list-item{list-style:none}.markdown .markdown-html{color:var(--remons-markdown-color-text-primary,#24292f)}.markdown .markdown-html .header-anchor{opacity:0;color:var(--remons-markdown-color-text-placeholder,#999);text-decoration:none;transition:opacity .2s ease-in-out}.markdown .markdown-html h1:hover .header-anchor,.markdown .markdown-html h2:hover .header-anchor,.markdown .markdown-html h3:hover .header-anchor,.markdown .markdown-html h4:hover .header-anchor,.markdown .markdown-html h5:hover .header-anchor,.markdown .markdown-html h6:hover .header-anchor{opacity:1}.markdown code{color:#c7254df1;background:#f9f2f4;border-radius:5px;margin:0 2px;padding:2px 7px;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:.9em;line-height:1.5}.markdown pre:has(code.mermaid-render-noCode){visibility:hidden;height:36px}.markdown pre{color:#f8f8f2;cursor:auto;background-color:#263238;border-radius:10px;margin:10px 0;font-family:Consolas,Inter,Noto Sans SC,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Microsoft YaHei,sans-serif;font-size:14px;font-weight:400;line-height:1.6;position:relative;overflow:hidden;box-shadow:inset 5px 5px 10px #0f1416,inset -5px -5px 10px #3d505a}.markdown pre code{width:calc(100% - 32px);color:inherit;font-size:inherit;line-height:inherit;background-color:#0000;border-radius:0;margin:0;padding:4px 16px 0;display:inline-block;overflow:auto}.markdown pre .pre-handle{color:#c9d1d9;background:#242933;justify-content:space-between;align-items:center;height:32px;padding-left:16px;padding-right:10px;font-size:12px;line-height:32px;display:flex}.markdown pre .pre-handle>span{font-family:var(--remons-markdown-font-family-editor);align-items:center;display:inline-flex}.markdown pre .pre-handle img{width:36px;height:8px;margin:0 6px 0 0}.markdown pre .pre-handle .code-toggle{margin-left:10px}.markdown pre .pre-handle .copy,.markdown pre .pre-handle .code-toggle{cursor:pointer;font-size:14px}.markdown pre.code-collapsed{max-height:32px;overflow:hidden}.markdown pre.code-collapsed code{overflow:hidden}.markdown a{color:var(--remons-markdown-color-text-primary,#222)}.markdown iframe{border-radius:var(--remons-markdown-border-radius,6px);width:100%;max-height:300px}.markdown img{border-radius:var(--remons-markdown-border-radius,6px);width:auto;max-height:100px;transition:max-height .3s;overflow:hidden}@media screen and (width<=500px){.markdown iframe{max-height:150px}}@media print{.markdown table{width:100%;display:table}.code-handle{display:none!important}.katex-mathml{display:none}}._modal-mask_dzv9e_4{z-index:1000;opacity:0;background-color:#00000073;justify-content:center;align-items:center;transition:opacity .3s;display:flex;position:fixed;inset:0}._modal-mask-visible_dzv9e_18{opacity:1}._modal_dzv9e_4{background:#fff;border-radius:8px;flex-direction:column;max-height:90vh;transition:transform .3s;display:flex;transform:scale(.9);box-shadow:0 6px 16px #00000026}._modal-mask-visible_dzv9e_18 ._modal_dzv9e_4{transform:scale(1)}._modal-header_dzv9e_34{border-bottom:1px solid #f0f0f0;justify-content:space-between;align-items:center;padding:10px;display:flex}._modal-title_dzv9e_41{color:#333;font-size:16px;font-weight:500}._modal-close_dzv9e_46{color:#999;cursor:pointer;border-radius:4px;justify-content:center;align-items:center;width:32px;height:32px;font-size:20px;transition:all .2s;display:flex}._modal-close_dzv9e_46:hover{color:#333;background-color:#f5f5f5}._modal-body_dzv9e_62{flex:1;padding:6px;overflow:auto}._modal-footer_dzv9e_67{text-align:right;border-top:1px solid #f0f0f0;padding:16px 24px}[data-theme=dark] ._modal_dzv9e_4{background:#2e3350;box-shadow:0 6px 16px #0006}[data-theme=dark] ._modal-header_dzv9e_34{border-bottom:1px solid #3d4258}[data-theme=dark] ._modal-title_dzv9e_41{color:#e8ecf4}[data-theme=dark] ._modal-close_dzv9e_46{color:#8892a4}[data-theme=dark] ._modal-close_dzv9e_46:hover{color:#e8ecf4;background-color:#3d4258}[data-theme=dark] ._modal-footer_dzv9e_67{border-top:1px solid #3d4258}._tooltip_1kuma_4{display:inline-block}._tooltip-trigger_1kuma_7{cursor:pointer;display:inline-block}._tooltip-inner_1kuma_11{color:#fff;white-space:nowrap;z-index:1070;opacity:0;pointer-events:none;background:#000000bf;border-radius:4px;margin-left:-5px;padding:6px 10px;font-size:12px;line-height:1.5;transition:opacity .2s;position:fixed;transform:translate(-50%,-100%)translateY(0)}._tooltip-inner-visible_1kuma_27{opacity:1}._tooltip-content_1kuma_30{text-overflow:ellipsis;white-space:nowrap;max-width:250px;overflow:hidden}._tooltip-arrow_1kuma_36{border:5px solid #0000;border-top-color:#000000bf;width:0;height:0;position:absolute;top:100%;left:50%;transform:translate(-50%)}._dropdown_13j0u_4{display:inline-block;position:relative}._dropdown-trigger_13j0u_8{cursor:pointer;display:inline-block}._dropdown-menu_13j0u_12{z-index:1050;opacity:0;background:#fff;border-radius:6px;margin-top:4px;padding:4px 0;transition:opacity .2s,transform .2s;position:absolute;top:100%;right:0;transform:translateY(8px);box-shadow:0 4px 12px #00000026}._dropdown-menu-visible_13j0u_26{opacity:1;transform:translateY(0)}._dropdown-item_13j0u_30{white-space:nowrap;color:#333;cursor:pointer;padding:4px 8px;font-size:12px;transition:background-color .2s}._dropdown-item_13j0u_30:hover{background-color:#f5f5f5}._dropdown-item_13j0u_30:active{background-color:#e8e8e8}[data-theme=dark] ._dropdown-menu_13j0u_12{background:#2e3350;box-shadow:0 4px 12px #0006}[data-theme=dark] ._dropdown-item_13j0u_30{color:#e8ecf4}[data-theme=dark] ._dropdown-item_13j0u_30:hover{background-color:#3d4258}[data-theme=dark] ._dropdown-item_13j0u_30:active{background-color:#1e2235}._previewArea_s90vb_2{background:var(--remons-markdown-color-bg-card,#f8f9fa);cursor:grab;border-radius:var(--remons-markdown-radius-base);width:100%;height:100%;position:relative;overflow:hidden}._previewArea_s90vb_2:active{cursor:grabbing}._previewArea_s90vb_2:fullscreen{cursor:grab;width:100vw;height:100vh}.mermaid-mini ._previewArea_s90vb_2{visibility:hidden}.print-preview ._previewArea_s90vb_2{background:0 0}._previewAreaDisabled_s90vb_25,._previewAreaDisabled_s90vb_25:active{cursor:default!important}._previewContent_s90vb_31{transform-origin:50%;touch-action:none;justify-content:center;align-items:center;width:100%;height:100%;display:flex}._previewContent_s90vb_31 svg{max-width:100%;max-height:100%;display:block;font-family:var(--remons-markdown-font-family-base)!important}._errorTip_s90vb_47{color:var(--remons-markdown-color-danger,#ef4444);word-break:break-all;background:#fef2f2;border-bottom:1px solid #fee2e2;flex-shrink:0;max-height:120px;padding:8px 12px;font-size:12px;overflow:auto}._emptyTip_s90vb_59{color:var(--remons-markdown-color-text-light,#9ca3af);pointer-events:none;justify-content:center;align-items:center;font-size:14px;display:flex;position:absolute;inset:0}.mermaid-react-root{min-height:36px;margin:10px 0}.mermaid-wrapper,.mermaid-loading{background-color:var(--remons-markdown-color-bg-card,#f8f9fa);border:1px solid var(--remons-markdown-color-border,#e4e4e4);box-sizing:border-box;border-radius:8px;transition:all .3s ease-in-out;position:relative;overflow:hidden}.mermaid-wrapper.mermaid-mini,.mermaid-loading.mermaid-mini{max-height:36px}.mermaid-wrapper .mermaid-content.disabled-move,.mermaid-loading .mermaid-content.disabled-move{cursor:initial!important}.mermaid-wrapper.print-preview,.mermaid-loading.print-preview{background-color:#0000}.mermaid-wrapper.mermaid-collapsed,.mermaid-loading.mermaid-collapsed{max-height:200px}.mermaid-wrapper.mermaid-collapsed:after,.mermaid-loading.mermaid-collapsed:after{pointer-events:none;content:"";background:linear-gradient(to bottom, transparent, var(--remons-markdown-color-bg,#ebebeb));height:28px;position:absolute;bottom:0;left:0;right:0}.mermaid-wrapper-fullscreen{background:var(--remons-markdown-bg-gradient)}.mermaid-loading{justify-content:center;align-items:center;height:200px;display:flex}.mermaid-wrapper svg{display:block}.mermaid-title{align-items:center;line-height:34px;display:none;position:absolute;left:6px}.mermaid-title .mermaid-title-tag{color:#fc366e;background:#fdf1f6;border-radius:4px;align-items:center;margin-right:4px;display:flex;overflow:hidden}.mermaid-title .mermaid-title-text{box-sizing:border-box;border:1px solid #fc366e;border-left:0;border-radius:0 4px 4px 0;height:20px;margin-left:-1px;padding-left:5px;padding-right:4px;font-size:12px;line-height:18px;display:inline-block}.mermaid-title img{width:auto;height:20px;margin:0;display:inline-block}.mermaid-mini .mermaid-title{display:flex}.mermaid-toolbar,.mermaid-toolbar-loading{z-index:1;opacity:.8;gap:4px;position:absolute;top:4px;right:0}.mermaid-toolbar .remons-markdown-circle,.mermaid-toolbar-loading .remons-markdown-circle{width:24px;height:24px;font-size:12px;line-height:24px}.mermaid-toolbar-loading{margin-right:10px}.mermaid-fullscreen-target:fullscreen{background:var(--remons-markdown-color-bg-white,#fff);width:100vw;height:100vh;overflow:hidden}.mermaid-fullscreen-target:fullscreen .mermaid-content{justify-content:center;align-items:center;width:100%;height:100%;display:flex}.mermaid-fullscreen-target:fullscreen .mermaid-toolbar{top:4px;right:8px}.mermaid-content{justify-content:center;align-items:center;width:100%;height:100%;display:flex}.driver-popover button{box-shadow:none!important}.mermaid-code-modal .ant-modal-header{margin:0}.mermaid-code-modal .ant-modal-content{padding:20px 10px}.mermaid-code-modal .ant-modal-content .markdown{padding:0}@media screen and (width<=500px){.mermaid-title{font-size:12px!important}}:root,[data-theme=light]{--remons-markdown-color-bg:transparent;--remons-markdown-color-bg-card:transparent;--remons-markdown-color-button:#ffffff26;--remons-markdown-color-bg-white:#fff;--remons-markdown-color-bg-tooltip:#61616141;--remons-markdown-color-text:#61677c;--remons-markdown-color-text-primary:#202124;--remons-markdown-color-text-secondary:#595959;--remons-markdown-color-text-light:#6b7280;--remons-markdown-color-text-placeholder:#999;--remons-markdown-color-shadow:#babecc;--remons-markdown-color-shadow-light:#fff;--remons-markdown-shadow-sm:-5px -5px 10px var(--remons-markdown-color-shadow-light), 5px 5px 10px var(--remons-markdown-color-shadow);--remons-markdown-shadow-inset:inset 1px 1px 2px var(--remons-markdown-color-shadow), inset -1px -1px 2px var(--remons-markdown-color-shadow-light);--remons-markdown-color-danger:#ef4444;--remons-markdown-color-border:#dbdada;--remons-markdown-color-border-dark:#d0d7de;--remons-markdown-color-button-border:#fffc;--remons-markdown-font-family-base:Inter, Noto Sans SC, -apple-system, BlinkMacSystemFont, Segoe UI, PingFang SC, Microsoft YaHei, sans-serif;--remons-markdown-font-family-editor:SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;--remons-markdown-radius-base:8px;--remons-markdown-bg-gradient:linear-gradient(137deg, #e5f4ff 0%, #efe7ff 100%)}[data-theme=dark]{--remons-markdown-color-bg:#1a1d2e;--remons-markdown-color-bg-card:#1e2235;--remons-markdown-color-bg-white:#2e3350;--remons-markdown-color-bg-tooltip:#2e3350;--remons-markdown-color-button:#1e2235b3;--remons-markdown-color-text:#b0b8c8;--remons-markdown-color-text-primary:#e8ecf4;--remons-markdown-color-text-secondary:#8892a4;--remons-markdown-color-text-light:#8892a4;--remons-markdown-color-text-placeholder:#6b7280;--remons-markdown-color-shadow:#12141f;--remons-markdown-color-shadow-light:#28304a;--remons-markdown-shadow-sm:-5px -5px 10px var(--remons-markdown-color-shadow-light), 5px 5px 10px var(--remons-markdown-color-shadow);--remons-markdown-shadow-inset:inset 1px 1px 2px var(--remons-markdown-color-shadow), inset -1px -1px 2px var(--remons-markdown-color-shadow-light);--remons-markdown-color-danger:#ef4444;--remons-markdown-color-border:#2e3350;--remons-markdown-color-border-dark:#3d4258;--remons-markdown-color-button-border:#ffffff1a;--remons-markdown-font-family-base:Inter, Noto Sans SC, -apple-system, BlinkMacSystemFont, Segoe UI, PingFang SC, Microsoft YaHei, sans-serif, "PingFang SC", "Microsoft YaHei", sans-serif;--remons-markdown-font-family-editor:SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;--remons-markdown-radius-base:8px;--remons-markdown-bg-gradient:linear-gradient(137deg, #e5f4ff 0%, #efe7ff 100%)}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v20/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfMZg.ttf)format("truetype")}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v20/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuI6fMZg.ttf)format("truetype")}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v20/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuGKYMZg.ttf)format("truetype")}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v20/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuFuYMZg.ttf)format("truetype")}@font-face{font-family:Noto Sans SC;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/notosanssc/v40/k3kCo84MPvpLmixcA63oeAL7Iqp5IZJF9bmaG9_FnYw.ttf)format("truetype")}@font-face{font-family:Noto Sans SC;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/notosanssc/v40/k3kCo84MPvpLmixcA63oeAL7Iqp5IZJF9bmaG-3FnYw.ttf)format("truetype")}@font-face{font-family:Noto Sans SC;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/notosanssc/v40/k3kCo84MPvpLmixcA63oeAL7Iqp5IZJF9bmaGwHCnYw.ttf)format("truetype")}@font-face{font-family:Noto Sans SC;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/notosanssc/v40/k3kCo84MPvpLmixcA63oeAL7Iqp5IZJF9bmaGzjCnYw.ttf)format("truetype")}[data-theme=dark] .mermaid-wrapper,[data-theme=dark] .mermaid-loading,[data-theme=dark] .mermaid-fullscreen-target{background-color:#2e3350!important}[data-theme=dark] .mermaid-fullscreen-target:fullscreen{background:#1a1d2e!important}.remons-markdown-circle{background-color:var(--remons-markdown-color-bg);text-align:center;cursor:pointer;width:40px;height:40px;margin:0 5px 0 0;padding:0;line-height:40px;transition:shadow .2s ease-in-out;display:inline-block;top:40px;left:40px;box-shadow:var(--remons-markdown-shadow-sm)!important;border-radius:100%!important}.remons-markdown-circle:hover{box-shadow:-2px -2px 5px var(--remons-markdown-color-shadow-light), 2px 2px 5px var(--remons-markdown-color-shadow)!important}.remons-markdown-circle:active{box-shadow:var(--remons-markdown-shadow-inset)!important}@media screen and (width<=500px){.remons-markdown-circle{box-shadow:-2px -2px 10px var(--remons-markdown-color-shadow-light), 2px 2px 10px var(--remons-markdown-color-shadow)!important}}.driver-popover{all:unset;font-family:var(--driver-popover-font-family,"Helvetica Neue", Inter, ui-sans-serif, "Apple Color Emoji", Helvetica, Arial, sans-serif);box-sizing:border-box;color:#2d2d2d;z-index:1000000000;background-color:#fff;border-radius:5px;min-width:250px;max-width:300px;margin:0;padding:15px;position:fixed;top:0;right:0;box-shadow:0 1px 10px #0006}.driver-popover-title{zoom:1;margin:0;font-size:19px;font-weight:700;line-height:1.5;display:block;position:relative}.driver-popover-close-btn{all:unset;cursor:pointer;color:#d2d2d2;z-index:1;text-align:center;width:32px;height:28px;font-size:18px;font-weight:500;transition:color .2s;position:absolute;top:0;right:0}.driver-popover-close-btn:hover,.driver-popover-close-btn:focus{color:#2d2d2d}.driver-popover-title[style*=block]+.driver-popover-description{margin-top:5px}.driver-popover-description{zoom:1;margin-bottom:0;font-size:14px;font-weight:400;line-height:1.5}.driver-popover-footer{text-align:right;zoom:1;justify-content:space-between;align-items:center;margin-top:15px;display:flex}.driver-popover-progress-text{color:#727272;zoom:1;font-size:13px;font-weight:400}.driver-popover-footer-btn{all:unset;box-sizing:border-box;color:#2d2d2d;cursor:pointer;zoom:1;background-color:#fff;border:1px solid #ccc;border-radius:3px;outline:0;padding:3px 7px;font-size:12px;line-height:1.3;text-decoration:none;display:inline-block}.driver-popover-footer .driver-popover-btn-disabled{opacity:.5;pointer-events:none}.driver-popover-footer-btn:hover,.driver-popover-footer-btn:focus{background-color:#f7f7f7}.driver-popover-navigation-btns{flex-grow:1;justify-content:flex-end;display:flex}.driver-popover-navigation-btns button+button{margin-left:4px}.driver-popover-arrow{content:"";border:5px solid #fff;position:absolute}.driver-popover-arrow-side-over{display:none}.driver-popover-arrow-side-left{border-top-color:#0000;border-bottom-color:#0000;border-right-color:#0000;left:100%}.driver-popover-arrow-side-right{border-top-color:#0000;border-bottom-color:#0000;border-left-color:#0000;right:100%}.driver-popover-arrow-side-top{border-bottom-color:#0000;border-left-color:#0000;border-right-color:#0000;top:100%}.driver-popover-arrow-side-bottom{border-top-color:#0000;border-left-color:#0000;border-right-color:#0000;bottom:100%}.driver-popover-arrow-side-center,.driver-popover-arrow-none{display:none}.driver-active .driver-overlay{pointer-events:none}.driver-active.driver-no-scroll{overflow:hidden}.driver-active *{pointer-events:none}.driver-active .driver-active-element,.driver-active .driver-active-element *,.driver-popover,.driver-popover *{pointer-events:auto}@keyframes animate-fade-in{0%{opacity:0}to{opacity:1}}.driver-fade .driver-overlay{animation:animate-fade-in var(--driver-animation-duration,.4s) ease-in-out}.driver-fade .driver-popover{animation:animate-fade-in var(--driver-animation-duration,.4s)}.driver-active-element-parent-no-scroll{overflow:hidden!important}.driver-no-interaction,.driver-no-interaction *{pointer-events:none!important}
|
|
2
2
|
/*$vite$:1*/
|
package/dist/index.mjs
CHANGED
|
@@ -8,6 +8,6 @@ return z("span",{className:"code-toggle",onClick:()=>{n(!t),e.classList.toggle("
|
|
|
8
8
|
/* @__PURE__ */j("div",{className:Mi("modal-header"),children:[/* @__PURE__ */z("span",{className:Mi("modal-title"),children:t}),/* @__PURE__ */z("div",{className:Mi("modal-close"),onClick:l,children:"×"})]}),
|
|
9
9
|
/* @__PURE__ */z("div",{className:Mi("modal-body"),children:s}),null!=r&&/* @__PURE__ */z("div",{className:Mi("modal-footer"),children:r})]})}),document.body):null},Li={mermaid:"https://registry.npmmirror.com/mermaid/11.17.0/files/dist/mermaid.min.js"},Ii=null,Pi=0;"undefined"!=typeof window&&(window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach),"function"!=typeof window.CustomEvent&&(window.CustomEvent=function(e,t){t=t||{bubbles:!1,cancelable:!1,detail:null};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}));var $i,zi="undefined"!=typeof document&&!!document.documentMode;function ji(){return $i||($i=document.createElement("div").style)}var Ni=["webkit","moz","ms"],Di={};function Ri(e){if(Di[e])return Di[e];const t=ji();if(e in t)return Di[e]=e;const n=e[0].toUpperCase()+e.slice(1);let i=Ni.length;for(;i--;){const r=`${Ni[i]}${n}`;if(r in t)return Di[e]=r}}function Hi(e,t){return parseFloat(t[Ri(e)])||0}function Bi(e,t,n=window.getComputedStyle(e)){const i="border"===t?"Width":"";return{left:Hi(`${t}Left${i}`,n),right:Hi(`${t}Right${i}`,n),top:Hi(`${t}Top${i}`,n),bottom:Hi(`${t}Bottom${i}`,n)}}function qi(e,t,n){e.style[Ri(t)]=n}function Fi(e){let t=e.parentNode;t&&1===t.nodeType||(t=document.documentElement);const n=window.getComputedStyle(e),i=window.getComputedStyle(t),r=e.getBoundingClientRect(),o=t.getBoundingClientRect();return{elem:{style:n,width:r.width,height:r.height,top:r.top,bottom:r.bottom,left:r.left,right:r.right,margin:Bi(e,"margin",n),border:Bi(e,"border",n)},parent:{style:i,width:o.width,height:o.height,top:o.top,bottom:o.bottom,left:o.left,right:o.right,padding:Bi(t,"padding",i),border:Bi(t,"border",i)}}}var Wi={down:"mousedown",move:"mousemove",up:"mouseup mouseleave"};function Yi(e,t,n,i){Wi[e].split(" ").forEach(e=>{t.addEventListener(e,n,i)})}function Xi(e,t,n){Wi[e].split(" ").forEach(e=>{t.removeEventListener(e,n)})}function Ui(e,t){let n=e.length;for(;n--;)if(e[n].pointerId===t.pointerId)return n;return-1}function Vi(e,t){let n;if(t.touches){n=0;for(const i of t.touches)i.pointerId=n++,Vi(e,i)}else n=Ui(e,t),n>-1&&e.splice(n,1),e.push(t)}function Gi(e){let t,n=(e=e.slice(0)).pop();for(;t=e.pop();)n={clientX:(t.clientX-n.clientX)/2+n.clientX,clientY:(t.clientY-n.clientY)/2+n.clientY};return n}function Ki(e){if(e.length<2)return 0;const t=e[0],n=e[1];return Math.sqrt(Math.pow(Math.abs(n.clientX-t.clientX),2)+Math.pow(Math.abs(n.clientY-t.clientY),2))}function Zi(e,t){return 1===e.nodeType&&` ${function(e){return(e.getAttribute("class")||"").trim()}(e)} `.indexOf(` ${t} `)>-1}"undefined"!=typeof window&&("function"==typeof window.PointerEvent?Wi={down:"pointerdown",move:"pointermove",up:"pointerup pointerleave pointercancel"}:"function"==typeof window.TouchEvent&&(Wi={down:"touchstart",move:"touchmove",up:"touchend touchcancel"}));var Ji=/^http:[\w\.\/]+svg$/,Qi={animate:!1,canvas:!1,cursor:"move",disablePan:!1,disableZoom:!1,disableXAxis:!1,disableYAxis:!1,duration:200,easing:"ease-in-out",exclude:[],excludeClass:"panzoom-exclude",handleStartEvent:e=>{e.preventDefault(),e.stopPropagation()},maxScale:4,minScale:.125,overflow:"hidden",panOnlyWhenZoomed:!1,pinchAndPan:!1,relative:!1,setTransform:function(e,{x:t,y:n,scale:i,isSVG:r},o){if(qi(e,"transform",`scale(${i}) translate(${t}px, ${n}px)`),r&&zi){const t=window.getComputedStyle(e).getPropertyValue("transform");e.setAttribute("transform",t)}},startX:0,startY:0,startScale:1,step:.3,touchAction:"none"};function er(e,t){if(!e)throw new Error("Panzoom requires an element as an argument");if(1!==e.nodeType)throw new Error("Panzoom requires an element with a nodeType of 1");if(!function(e){let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1}(e))throw new Error("Panzoom should be called on elements that have been attached to the DOM");t={...Qi,...t};const n=function(e){return Ji.test(e.namespaceURI)&&"svg"!==e.nodeName.toLowerCase()}(e),i=e.parentNode;i.style.overflow=t.overflow,i.style.userSelect="none",i.style.touchAction=t.touchAction,(t.canvas?i:e).style.cursor=t.cursor,e.style.userSelect="none",e.style.touchAction=t.touchAction,qi(e,"transformOrigin","string"==typeof t.origin?t.origin:n?"0 0":"50% 50%");let r,o,a,s,l,c,d=0,u=0,h=1,p=!1;function m(t,n,i){if(i.silent)return;const r=new CustomEvent(t,{detail:n});e.dispatchEvent(r)}function f(t,i,r){const o={x:d,y:u,scale:h,isSVG:n,originalEvent:r};return requestAnimationFrame(()=>{"boolean"==typeof i.animate&&(i.animate?function(e,t){qi(e,"transition",`${Ri("transform")} ${t.duration}ms ${t.easing}`)}(e,i):qi(e,"transition","none")),i.setTransform(e,o,i),m(t,o,i),m("panzoomchange",o,i)}),o}function v(n,i,r,o){const a={...t,...o},s={x:d,y:u,opts:a};if(!o?.force&&(a.disablePan||a.panOnlyWhenZoomed&&h===a.startScale))return s;if(n=parseFloat(n),i=parseFloat(i),a.disableXAxis||(s.x=(a.relative?d:0)+n),a.disableYAxis||(s.y=(a.relative?u:0)+i),a.contain){const t=Fi(e),n=t.elem.width/h,i=t.elem.height/h,o=n*r,l=i*r,c=(o-n)/2,d=(l-i)/2;if("inside"===a.contain){const e=(-t.elem.margin.left-t.parent.padding.left+c)/r,n=(t.parent.width-o-t.parent.padding.left-t.elem.margin.left-t.parent.border.left-t.parent.border.right+c)/r;s.x=Math.max(Math.min(s.x,n),e);const i=(-t.elem.margin.top-t.parent.padding.top+d)/r,a=(t.parent.height-l-t.parent.padding.top-t.elem.margin.top-t.parent.border.top-t.parent.border.bottom+d)/r;s.y=Math.max(Math.min(s.y,a),i)}else if("outside"===a.contain){const e=(-(o-t.parent.width)-t.parent.padding.left-t.parent.border.left-t.parent.border.right+c)/r,n=(c-t.parent.padding.left)/r;s.x=Math.max(Math.min(s.x,n),e);const i=(-(l-t.parent.height)-t.parent.padding.top-t.parent.border.top-t.parent.border.bottom+d)/r,a=(d-t.parent.padding.top)/r;s.y=Math.max(Math.min(s.y,a),i)}}return a.roundPixels&&(s.x=Math.round(s.x),s.y=Math.round(s.y)),s}function g(n,i){const r={...t,...i},o={scale:h,opts:r};if(!i?.force&&r.disableZoom)return o;let a=t.minScale,s=t.maxScale;if(r.contain){const n=Fi(e),i=n.elem.width/h,r=n.elem.height/h;if(i>1&&r>1){const e=(n.parent.width-n.parent.border.left-n.parent.border.right)/i,o=(n.parent.height-n.parent.border.top-n.parent.border.bottom)/r;"inside"===t.contain?s=Math.min(s,e,o):"outside"===t.contain&&(a=Math.max(a,e,o))}}return o.scale=Math.min(Math.max(n,a),s),o}function b(e,t,i,r){const o=v(e,t,h,i);return d!==o.x||u!==o.y?(d=o.x,u=o.y,f("panzoompan",o.opts,r)):{x:d,y:u,scale:h,isSVG:n,originalEvent:r}}function w(e,t,n){const i=g(e,t),r=i.opts;if(!t?.force&&r.disableZoom)return;e=i.scale;let o=d,a=u;if(r.focal){const t=r.focal;o=(t.x/e-t.x/h+d*e)/e,a=(t.y/e-t.y/h+u*e)/e}const s=v(o,a,e,{relative:!1,force:!0});return d=s.x,u=s.y,h=e,f("panzoomzoom",r,n)}function y(e,n){const i={...t,animate:!0,...n};return w(h*Math.exp((e?1:-1)*i.step),i)}function k(t,i,r,o){const a=Fi(e),s=a.parent.width-a.parent.padding.left-a.parent.padding.right-a.parent.border.left-a.parent.border.right,l=a.parent.height-a.parent.padding.top-a.parent.padding.bottom-a.parent.border.top-a.parent.border.bottom;let c=i.clientX-a.parent.left-a.parent.padding.left-a.parent.border.left-a.elem.margin.left,d=i.clientY-a.parent.top-a.parent.padding.top-a.parent.border.top-a.elem.margin.top;return n||(c-=a.elem.width/h/2,d-=a.elem.height/h/2),w(t,{...r,animate:!1,focal:{x:c/s*(s*t),y:d/l*(l*t)}},o)}w(t.startScale,{animate:!1,force:!0}),setTimeout(()=>{b(t.startX,t.startY,{animate:!1,force:!0})});const x=[];function C(e){if(function(e,t){for(let n=e;null!=n;n=n.parentNode)if(Zi(n,t.excludeClass)||t.exclude.indexOf(n)>-1)return!0;return!1}(e.target,t))return;Vi(x,e),p=!0,t.handleStartEvent(e),r=d,o=u,m("panzoomstart",{x:d,y:u,scale:h,isSVG:n,originalEvent:e},t);const i=Gi(x);a=i.clientX,s=i.clientY,l=h,c=Ki(x)}function S(e){if(!p||void 0===r||void 0===o||void 0===a||void 0===s)return;Vi(x,e);const n=Gi(x),i=x.length>1;let d=h;i&&(0===c&&(c=Ki(x)),d=g((Ki(x)-c)*t.step/80+l).scale,k(d,n,{animate:!1},e)),i&&!t.pinchAndPan||b(r+(n.clientX-a)/d,o+(n.clientY-s)/d,{animate:!1},e)}function _(e){1===x.length&&m("panzoomend",{x:d,y:u,scale:h,isSVG:n,originalEvent:e},t),function(e,t){if(t.touches){for(;e.length;)e.pop();return}const n=Ui(e,t);n>-1&&e.splice(n,1)}(x,e),p&&(p=!1,r=o=a=s=void 0)}let E=!1;function A(){E||(E=!0,Yi("down",t.canvas?i:e,C),Yi("move",document,S,{passive:!0}),Yi("up",document,_,{passive:!0}))}return t.noBind||A(),{bind:A,destroy:function(){E=!1,Xi("down",t.canvas?i:e,C),Xi("move",document,S),Xi("up",document,_)},eventNames:Wi,getPan:()=>({x:d,y:u}),getScale:()=>h,getOptions:()=>function(e){const t={};for(const n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}(t),handleDown:C,handleMove:S,handleUp:_,pan:b,reset:function(e){const n={...t,animate:!0,force:!0,...e};h=g(n.startScale,n).scale;const i=v(n.startX,n.startY,h,n);return d=i.x,u=i.y,f("panzoomreset",n)},resetStyle:function(){i.style.overflow="",i.style.userSelect="",i.style.touchAction="",i.style.cursor="",e.style.cursor="",e.style.userSelect="",e.style.touchAction="",qi(e,"transformOrigin","")},setOptions:function(n={}){for(const e in n)n.hasOwnProperty(e)&&(t[e]=n[e]);(n.hasOwnProperty("cursor")||n.hasOwnProperty("canvas"))&&(i.style.cursor=e.style.cursor="",(t.canvas?i:e).style.cursor=t.cursor),n.hasOwnProperty("overflow")&&(i.style.overflow=n.overflow),n.hasOwnProperty("touchAction")&&(i.style.touchAction=n.touchAction,e.style.touchAction=n.touchAction)},setStyle:(t,n)=>qi(e,t,n),zoom:w,zoomIn:function(e){return y(!0,e)},zoomOut:function(e){return y(!1,e)},zoomToPoint:k,zoomWithWheel:function(e,n){e.preventDefault();const i={...t,...n,animate:!1};return k(g(h*Math.exp(((0===e.deltaY&&e.deltaX?e.deltaX:e.deltaY)<0?1:-1)*i.step/3),i).scale,e,i,e)}}}er.defaultOptions=Qi;var tr=te.bind({tooltip:"_tooltip_1kuma_4","tooltip-trigger":"_tooltip-trigger_1kuma_7","tooltip-inner":"_tooltip-inner_1kuma_11","tooltip-inner-visible":"_tooltip-inner-visible_1kuma_27","tooltip-content":"_tooltip-content_1kuma_30","tooltip-arrow":"_tooltip-arrow_1kuma_36"}),nr=({title:e,children:t,visible:n,onVisibleChange:i})=>{const[r,a]=l(!1),c=s(null),d=s(null),[u,h]=l({top:0,left:0}),p=void 0!==n?n:r,m=()=>{if(d.current){const e=d.current.getBoundingClientRect();h({top:e.top-8,left:e.left+e.width/2})}};o(()=>{if(!p)return;const e=()=>m(),t=()=>m();return window.addEventListener("resize",e,{passive:!0}),window.addEventListener("scroll",t,{passive:!0}),m(),()=>{window.removeEventListener("resize",e),window.removeEventListener("scroll",t)}},[p]),o(()=>()=>{c.current&&window.clearTimeout(c.current)},[]);const f=p&&e?P(/* @__PURE__ */j("div",{className:tr("tooltip-inner","tooltip-inner-visible"),style:{top:u.top,left:u.left},children:[/* @__PURE__ */z("span",{className:tr("tooltip-content"),children:e}),/* @__PURE__ */z("span",{className:tr("tooltip-arrow")})]}),document.body):null;/* @__PURE__ */
|
|
10
10
|
return j("div",{ref:d,className:tr("tooltip"),onMouseEnter:()=>{c.current&&window.clearTimeout(c.current),c.current=window.setTimeout(()=>{m(),a(!0),i?.(!0)},150)},onMouseLeave:()=>{c.current&&(window.clearTimeout(c.current),c.current=null),a(!1),i?.(!1)},children:[/* @__PURE__ */z("div",{className:tr("tooltip-trigger"),children:t}),f]})},ir=te.bind({dropdown:"_dropdown_13j0u_4","dropdown-trigger":"_dropdown-trigger_13j0u_8","dropdown-menu":"_dropdown-menu_13j0u_12","dropdown-menu-visible":"_dropdown-menu-visible_13j0u_26","dropdown-item":"_dropdown-item_13j0u_30"}),rr=({items:e,children:t,onClick:n,className:i=""})=>{const[r,a]=l(!1),c=s(null),d=()=>{a(!1)};return o(()=>{const e=e=>{c.current&&!c.current.contains(e.target)&&d()};return r&&document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[r]),/* @__PURE__ */j("div",{ref:c,className:ir("dropdown",i),children:[/* @__PURE__ */z("div",{className:ir("dropdown-trigger"),onClick:()=>{a(e=>!e)},children:t}),r&&/* @__PURE__ */z("div",{className:ir("dropdown-menu","dropdown-menu-visible"),children:e.map(e=>/* @__PURE__ */z("div",{className:ir("dropdown-item"),onClick:()=>(e=>{n({key:e.key}),d()})(e),children:e.label},e.key))})]})};function or({showSourceView:e,showCollapse:t,showDownload:n,isFullscreen:i,isCollapsed:r,isMinimize:o,isPanzoomActive:a,isPanzoomAvailable:s,isPanzoomEnabled:l,setIsPanzoomEnabled:c,setIsMinimize:d,setIsCollapsed:u,setShowSource:h,toggleFullscreen:m,downloadMenu:w,panzoomRef:C}){/* @__PURE__ */
|
|
11
|
-
return z("div",{className:"mermaid-toolbar",children:[{isShow:e&&r&&!i,icon:/* @__PURE__ */z(o?b:x,{}),tooltip:o?"缩略图":"最小化",onClick:()=>d(e=>!e),className:"mermaid-minimize-btn"},{isShow:s,icon:/* @__PURE__ */z(g,{}),tooltip:l?"取消拖拽":"启用拖拽",onClick:()=>c(e=>!e),className:l?"mermaid-panzoom-btn active":"mermaid-panzoom-btn"},{isShow:a,icon:/* @__PURE__ */z(E,{}),tooltip:"放大",onClick:()=>C.current?.zoomIn()},{isShow:a,icon:/* @__PURE__ */z(_,{}),tooltip:"缩小",onClick:()=>C.current?.zoomOut()},{isShow:a,icon:/* @__PURE__ */z(A,{}),tooltip:"重置",onClick:()=>C.current?.reset()},{isShow:n&&a,icon:/* @__PURE__ */z(v,{}),tooltip:"下载",dropdown:w},{isShow:!0,icon:/* @__PURE__ */z(i?y:k,{}),tooltip:i?"退出全屏":"全屏",onClick:m,className:"mermaid-fullscreen-btn"},{isShow:e&&!i,icon:/* @__PURE__ */z(p,{}),tooltip:"查看源码",onClick:()=>h(!0),className:"mermaid-showcode-btn"},{isShow:t&&!i,icon:/* @__PURE__ */z(r?f:T,{}),tooltip:r?"展开":"收起",onClick:()=>u(e=>!e),className:"mermaid-collapsed-btn"}].map(e=>{if(!1===e.isShow)return null;const t=e.className||e.tooltip,n=e.dropdown?/* @__PURE__ */z(rr,{items:e.dropdown.items,onClick:e.dropdown.onClick,children:/* @__PURE__ */z("div",{className:`remons-markdown-circle ${e.className||""}`,children:e.icon})},t):/* @__PURE__ */z("div",{className:`remons-markdown-circle ${e.className||""}`,onClick:e.onClick,children:e.icon},t);return e.tooltip&&(0,pe.IsPC)()?/* @__PURE__ */z(nr,{title:e.tooltip,children:n},`${t}-tooltip`):n})})}var ar={previewArea:"_previewArea_1n08k_2",previewAreaDisabled:"_previewAreaDisabled_1n08k_25",previewContent:"_previewContent_1n08k_31",errorTip:"_errorTip_1n08k_47",emptyTip:"_emptyTip_1n08k_59"},sr=["pointerdown","mousedown","pointerup","mouseup","click"],lr=/* @__PURE__ */new WeakMap;function cr(e,t,n){dr(e);let i=i=>{let r=i.target;e.contains(r)&&((!n||n(r))&&(i.preventDefault(),i.stopPropagation(),i.stopImmediatePropagation()),"click"===i.type&&t?.(i))};for(let r of sr)document.addEventListener(r,i,!0);lr.set(e,i)}function dr(e){let t=lr.get(e);if(t){for(let e of sr)document.removeEventListener(e,t,!0);lr.delete(e)}}function ur(e,t){let{elementDimensions:n,popoverDimensions:i,popoverPadding:r,popoverArrowDimensions:o}=t;return"start"===e?Math.max(Math.min(n.top-r,window.innerHeight-i.realHeight-o.width),o.width):"end"===e?Math.max(Math.min(n.top-i?.realHeight+n.height+r,window.innerHeight-i?.realHeight-o.width),o.width):"center"===e?Math.max(Math.min(n.top+n.height/2-i?.realHeight/2,window.innerHeight-i?.realHeight-o.width),o.width):0}function hr(e,t){let{elementDimensions:n,popoverDimensions:i,popoverPadding:r,popoverArrowDimensions:o}=t;return"start"===e?Math.max(Math.min(n.left-r,window.innerWidth-i.realWidth-o.width),o.width):"end"===e?Math.max(Math.min(n.left-i?.realWidth+n.width+r,window.innerWidth-i?.realWidth-o.width),o.width):"center"===e?Math.max(Math.min(n.left+n.width/2-i?.realWidth/2,window.innerWidth-i?.realWidth-o.width),o.width):0}function pr(e,t,n){let{align:i,side:r}=n,o=n.centered?"over":r,a=n.padding,s=function(e,t){let n=e.wrapper.getBoundingClientRect();return{width:n.width+t,height:n.height+t,realWidth:n.width,realHeight:n.height}}(e,n.offset),l=e.arrow.getBoundingClientRect(),c=t.getBoundingClientRect(),d=c.top-s.height,u=d>=0,h=window.innerHeight-(c.bottom+s.height),p=h>=0,m=c.left-s.width,f=m>=0,v=window.innerWidth-(c.right+s.width),g=v>=0,b=!(u||p||f||g),w=o;if("top"===o&&u?g=f=p=!1:"bottom"===o&&p?g=f=u=!1:"left"===o&&f?g=u=p=!1:"right"===o&&g&&(f=u=p=!1),"over"===o){let t=window.innerWidth/2-s.realWidth/2,n=window.innerHeight/2-s.realHeight/2;e.wrapper.style.left=`${t}px`,e.wrapper.style.right="auto",e.wrapper.style.top=`${n}px`,e.wrapper.style.bottom="auto"}else if(b){let t=window.innerWidth/2-s?.realWidth/2;e.wrapper.style.left=`${t}px`,e.wrapper.style.right="auto",e.wrapper.style.bottom="10px",e.wrapper.style.top="auto"}else if(f){let t=Math.min(m,window.innerWidth-s?.realWidth-l.width),n=ur(i,{elementDimensions:c,popoverDimensions:s,popoverPadding:a,popoverArrowDimensions:l});e.wrapper.style.left=`${t}px`,e.wrapper.style.top=`${n}px`,e.wrapper.style.bottom="auto",e.wrapper.style.right="auto",w="left"}else if(g){let t=Math.min(v,window.innerWidth-s?.realWidth-l.width),n=ur(i,{elementDimensions:c,popoverDimensions:s,popoverPadding:a,popoverArrowDimensions:l});e.wrapper.style.right=`${t}px`,e.wrapper.style.top=`${n}px`,e.wrapper.style.bottom="auto",e.wrapper.style.left="auto",w="right"}else if(u){let t=Math.min(d,window.innerHeight-s.realHeight-l.width),n=hr(i,{elementDimensions:c,popoverDimensions:s,popoverPadding:a,popoverArrowDimensions:l});e.wrapper.style.top=`${t}px`,e.wrapper.style.left=`${n}px`,e.wrapper.style.bottom="auto",e.wrapper.style.right="auto",w="top"}else if(p){let t=Math.min(h,window.innerHeight-s?.realHeight-l.width),n=hr(i,{elementDimensions:c,popoverDimensions:s,popoverPadding:a,popoverArrowDimensions:l});e.wrapper.style.left=`${n}px`,e.wrapper.style.bottom=`${t}px`,e.wrapper.style.top="auto",e.wrapper.style.right="auto",w="bottom"}vr(e,b?"over":w,i,t),[...e.wrapper.classList].filter(e=>e.startsWith("driver-popover-side-")||e.startsWith("driver-popover-align-")).forEach(t=>e.wrapper.classList.remove(t)),e.wrapper.classList.add(`driver-popover-side-${w}`),e.wrapper.classList.add(`driver-popover-align-${i}`)}function mr(e,t,n,i,r,o=10){let a=i-n;return e<=n&&t>=i?"start"===r?15+o/2:"end"===r?a-15-o/2:a/2:(Math.min(Math.max(e,n),i)+Math.min(Math.max(t,n),i))/2-n}function fr(e,t,n=10){let i=t-15-n;if(i<15)return Math.max(0,(t-n)/2);let r=e-n/2;return Math.min(Math.max(r,15),i)}function vr(e,t,n,i){let r=e.arrow;if(r.className="driver-popover-arrow",r.style.top="",r.style.right="",r.style.bottom="",r.style.left="","over"===t)return void r.classList.add("driver-popover-arrow-none");let o=i.getBoundingClientRect(),a=e.wrapper.getBoundingClientRect(),s=function(e,t,n){return"left"===e||"right"===e?t.bottom>n.top&&t.top<n.bottom?e:t.bottom<=n.top?"bottom":"top":t.right>n.left&&t.left<n.right?e:t.right<=n.left?"right":"left"}(t,o,a);r.classList.add(`driver-popover-arrow-side-${s}`);let l=r.getBoundingClientRect().width||10;if("left"===s||"right"===s){let e=mr(o.top,o.bottom,a.top,a.bottom,n,l);r.style.top=`${fr(e,a.height,l)}px`}else{let e=mr(o.left,o.right,a.left,a.right,n,l);r.style.left=`${fr(e,a.width,l)}px`}}function gr(e){return"function"==typeof e?e():"string"==typeof e?document.querySelector(e):e}function br(e,t,n,i){return(e/=i/2)<1?n/2*e*e+t:-n/2*(--e*(e-2)-1)+t}function wr(e){let t='a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled])';return e.flatMap(e=>{let n=e.matches(t),i=Array.from(e.querySelectorAll(t));return[...n?[e]:[],...i]}).filter(e=>"none"!==getComputedStyle(e).pointerEvents&&function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}(e))}function yr(e,t){if(!e||function(e){let t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)}(e))return;let n=e.offsetHeight>window.innerHeight;e.scrollIntoView({behavior:!t||kr(e)?"auto":"smooth",inline:"center",block:n?"start":"center"})}function kr(e){if(!e||!e.parentElement)return;let t=e.parentElement;return t.scrollHeight>t.clientHeight}function xr(e,t){let n=function(){let e=document.createElement("div");e.classList.add("driver-popover");let t=document.createElement("div");t.classList.add("driver-popover-arrow");let n=document.createElement("header");n.id="driver-popover-title",n.classList.add("driver-popover-title"),n.style.display="none",n.innerText="Popover Title";let i=document.createElement("div");i.id="driver-popover-description",i.classList.add("driver-popover-description"),i.style.display="none",i.innerText="Popover description is here";let r=document.createElement("button");r.type="button",r.classList.add("driver-popover-close-btn"),r.setAttribute("aria-label","Close"),r.innerHTML="×";let o=document.createElement("footer");o.classList.add("driver-popover-footer");let a=document.createElement("span");a.classList.add("driver-popover-progress-text"),a.innerText="";let s=document.createElement("span");s.classList.add("driver-popover-navigation-btns");let l=document.createElement("button");l.type="button",l.classList.add("driver-popover-prev-btn","driver-popover-footer-btn"),l.innerHTML="Previous";let c=document.createElement("button");return c.type="button",c.classList.add("driver-popover-next-btn","driver-popover-footer-btn"),c.innerHTML="Next",s.appendChild(l),s.appendChild(c),o.appendChild(a),o.appendChild(s),e.appendChild(r),e.appendChild(t),e.appendChild(n),e.appendChild(i),e.appendChild(o),{wrapper:e,arrow:t,title:n,description:i,footer:o,previousButton:l,nextButton:c,closeButton:r,footerButtons:s,progress:a}}();document.body.appendChild(n.wrapper);let{title:i,description:r,showButtons:o,disableButtons:a,showProgress:s,nextBtnText:l,prevBtnText:c,progressText:d}=t;n.nextButton.innerHTML=l,n.previousButton.innerHTML=c,n.progress.innerHTML=d,t.doneButton&&n.nextButton.classList.add("driver-popover-done-btn"),i?(n.title.innerHTML=i,n.title.style.display="block"):n.title.style.display="none",r?(n.description.innerHTML=r,n.description.style.display="block"):n.description.style.display="none";let u=o.includes("next")||o.includes("previous")||s;n.closeButton.style.display=o.includes("close")?"block":"none",u?(n.footer.style.display="flex",n.progress.style.display=s?"block":"none",n.nextButton.style.display=o.includes("next")?"block":"none",n.previousButton.style.display=o.includes("previous")?"block":"none"):n.footer.style.display="none",a.includes("next")&&(n.nextButton.disabled=!0,n.nextButton.classList.add("driver-popover-btn-disabled")),a.includes("previous")&&(n.previousButton.disabled=!0,n.previousButton.classList.add("driver-popover-btn-disabled")),a.includes("close")&&(n.closeButton.disabled=!0,n.closeButton.classList.add("driver-popover-btn-disabled"));let h=n.wrapper;h.style.display="block",h.style.left="",h.style.top="",h.style.bottom="",h.style.right="",h.id="driver-popover-content",h.setAttribute("role","dialog"),h.setAttribute("aria-labelledby","driver-popover-title"),h.setAttribute("aria-describedby","driver-popover-description"),n.arrow.className="driver-popover-arrow",h.className=`driver-popover ${t.popoverClass||""}`.trim(),cr(n.wrapper,e=>{let n=e.target;return n.closest(".driver-popover-next-btn")?t.onNextClick?.():n.closest(".driver-popover-prev-btn")?t.onPrevClick?.():n.closest(".driver-popover-close-btn")?t.onCloseClick?.():void 0},e=>!n.description.contains(e)&&!n.title.contains(e)&&!!e.closest(".driver-popover-prev-btn, .driver-popover-next-btn, .driver-popover-close-btn")),t.onRender?.(n),pr(n,e,t.position),function(e,t,n){e.wrapper.querySelectorAll("img").forEach(i=>{if(i.complete)return;let r=()=>pr(e,t,n);i.addEventListener("load",r,{once:!0}),i.addEventListener("error",r,{once:!0})})}(n,e,t.position),yr(h,t.smoothScroll);let p=wr([h,e]);return p.length>0&&p[0].focus(),n}function Cr(e){e&&(dr(e.wrapper),e.wrapper.parentElement?.removeChild(e.wrapper))}function Sr(e,t){let n=window.innerWidth,i=window.innerHeight,r=t.padding,o=t.radius,a=e.width+2*r,s=e.height+2*r,l=Math.min(o,a/2,s/2),c=Math.floor(Math.max(l,0)),d=a-2*c,u=s-2*c;return`M${n},0L0,0L0,${i}L${n},${i}L${n},0Z\n M${e.x-r+c},${e.y-r} h${d} a${c},${c} 0 0 1 ${c},${c} v${u} a${c},${c} 0 0 1 -${c},${c} h-${d} a${c},${c} 0 0 1 -${c},-${c} v-${u} a${c},${c} 0 0 1 ${c},-${c} z`}function _r(e,t,n,i,r){let o=e.getState("__activeStagePosition"),a=o||i.getBoundingClientRect(),s=r.getBoundingClientRect();o={x:br(t,a.x,s.x-a.x,n),y:br(t,a.y,s.y-a.y,n),width:br(t,a.width,s.width-a.width,n),height:br(t,a.height,s.height-a.height,n)},Tr(e,o),e.setState("__activeStagePosition",o)}function Er(e,t){if(!t)return;let n=t.getBoundingClientRect(),i={x:n.x,y:n.y,width:n.width,height:n.height};e.setState("__activeStagePosition",i),Tr(e,i)}function Ar(e,t){let n=function(e,t){let n=window.innerWidth,i=window.innerHeight,r=document.createElementNS("http://www.w3.org/2000/svg","svg");r.classList.add("driver-overlay","driver-overlay-animated"),r.setAttribute("viewBox",`0 0 ${n} ${i}`),r.setAttribute("xmlSpace","preserve"),r.setAttribute("xmlnsXlink","http://www.w3.org/1999/xlink"),r.setAttribute("version","1.1"),r.setAttribute("preserveAspectRatio","xMinYMin slice"),r.style.fillRule="evenodd",r.style.clipRule="evenodd",r.style.strokeLinejoin="round",r.style.strokeMiterlimit="2",r.style.zIndex="10000",r.style.position="fixed",r.style.top="0",r.style.left="0",r.style.width="100%",r.style.height="100%";let o=document.createElementNS("http://www.w3.org/2000/svg","path");return o.setAttribute("d",Sr(t,Mr(e))),o.style.fill=e.getConfig("overlayColor")||"rgb(0,0,0)",o.style.opacity=`${e.getConfig("overlayOpacity")}`,o.style.pointerEvents="auto",o.style.cursor="auto",r.appendChild(o),r}(e,t);document.body.appendChild(n),cr(n,t=>{"path"===t.target.tagName&&e.emit("overlayClick")}),e.setState("__overlaySvg",n)}function Tr(e,t){let n=e.getState("__overlaySvg");if(!n)return void Ar(e,t);let i=n.firstElementChild;if("path"!==i?.tagName)throw Error("no path element found in stage svg");i.setAttribute("d",Sr(t,Mr(e)))}function Mr(e){return{padding:e.getConfig("stagePadding")||0,radius:e.getConfig("stageRadius")||0}}function Or(e){let t=e.getState("__overlaySvg");t&&(dr(t),t.remove())}var Lr="{{current}} of {{total}}";function Ir(e,t){return!(!(t.skipMissingElement??e.getConfig("skipMissingElement"))||!t.element||gr(t.element))}function Pr(e,t,n){let i=e.getConfig("steps")||[];for(let r=t;r>=0&&r<i.length;r+=n)if(!Ir(e,i[r]))return r}function $r(e,t){let n=e.getState("activeIndex"),i=void 0!==n&&void 0===Pr(e,n+1,1),r=t?.popover?.onDoneClick||e.getConfig("onDoneClick");return i&&r?r:t?.popover?.onNextClick||e.getConfig("onNextClick")}function zr(e,t){return t?.popover?.onPrevClick||e.getConfig("onPrevClick")}function jr(e,t,n){let i=e.getConfig("stagePadding")||0;return{side:n.popover?.side||"bottom",align:n.popover?.align||"start",offset:i+(e.getConfig("popoverOffset")||0),padding:i,centered:"driver-dummy-element"===t.id}}function Nr(e,t,n){Cr(e.getState("popover")),xr(t,function(e,t,n){let i=n.popover||{},r=e.getState("activeIndex"),o=void 0!==r&&void 0===Pr(e,r+1,1);return{title:i.title,description:i.description,showButtons:i.showButtons||e.getConfig("showButtons"),disableButtons:i.disableButtons||e.getConfig("disableButtons")||[],showProgress:i.showProgress||e.getConfig("showProgress")||!1,progressText:i.progressText??(e.getConfig("progressText")||Lr),nextBtnText:i.nextBtnText??(e.getConfig("nextBtnText")||"Next"),prevBtnText:i.prevBtnText??(e.getConfig("prevBtnText")||"Previous"),doneButton:o,popoverClass:i.popoverClass||e.getConfig("popoverClass")||"",smoothScroll:e.getConfig("smoothScroll"),onNextClick:()=>{let i=$r(e,n);return i?i(t,n,e.getHookOpts()):e.emit("nextClick")},onPrevClick:()=>{let i=zr(e,n);return i?i(t,n,e.getHookOpts()):e.emit("prevClick")},onCloseClick:()=>{let i=function(e,t){return t?.popover?.onCloseClick||e.getConfig("onCloseClick")}(e,n);return i?i(t,n,e.getHookOpts()):e.emit("closeClick")},onRender:t=>{e.setState("popover",t),(i.onPopoverRender||e.getConfig("onPopoverRender"))?.(t,e.getHookOpts())},position:jr(e,t,n)}}(e,t,n))}function Dr(e,t){let n=gr(t.element);n||(n=function(){let e=document.getElementById("driver-dummy-element");if(e)return e;let t=document.createElement("div");return t.id="driver-dummy-element",t.style.width="0",t.style.height="0",t.style.pointerEvents="none",t.style.opacity="0",t.style.position="fixed",t.style.top="50%",t.style.left="50%",document.body.appendChild(t),t}()),function(e,t,n){let i=e.getConfig("duration")||400,r=Date.now(),o=e.getState("__activeStep"),a=e.getState("__activeElement")||t,s=!a||a===t,l="driver-dummy-element"===t.id,c="driver-dummy-element"===a.id,d=e.getConfig("animate"),u=n.onHighlightStarted||e.getConfig("onHighlightStarted"),h=n?.onHighlighted||e.getConfig("onHighlighted"),p=o?.onDeselected||e.getConfig("onDeselected"),m=e.getHookOpts();!s&&p&&p(c?void 0:a,o,m),u&&u(l?void 0:t,n,m);let f=!s&&d,v=!1;(function(e){e&&(e.wrapper.style.display="none")})(e.getState("popover")),e.setState("previousStep",o),e.setState("previousElement",a),e.setState("activeStep",n),e.setState("activeElement",t);let g=()=>{if(e.getState("__transitionCallback")!==g)return;let s=Date.now()-r,c=i-s<=i/2;n.popover&&c&&!v&&f&&(Nr(e,t,n),v=!0),e.getConfig("animate")&&s<i?_r(e,s,i,a,t):(Er(e,t),h&&h(l?void 0:t,n,e.getHookOpts()),e.setState("__transitionCallback",void 0),e.setState("__previousStep",o),e.setState("__previousElement",a),e.setState("__activeStep",n),e.setState("__activeElement",t)),window.requestAnimationFrame(g)};e.setState("__transitionCallback",g),window.requestAnimationFrame(g),yr(t,e.getConfig("smoothScroll")),!f&&n.popover&&Nr(e,t,n),document.querySelectorAll(".driver-active-element-parent").forEach(e=>{e.classList.remove("driver-active-element-parent","driver-active-element-parent-no-scroll")}),a.classList.remove("driver-active-element","driver-no-interaction"),a.removeAttribute("aria-haspopup"),a.removeAttribute("aria-expanded"),a.removeAttribute("aria-controls"),(n.disableActiveInteraction??e.getConfig("disableActiveInteraction"))&&t.classList.add("driver-no-interaction");let b=t.parentElement;b&&b!==document.body&&(b.classList.add("driver-active-element-parent"),function(e){let t=window.getComputedStyle(e);return[t.overflow,t.overflowX,t.overflowY].some(e=>"auto"===e||"scroll"===e)}(b)&&b.classList.add("driver-active-element-parent-no-scroll")),t.classList.add("driver-active-element"),t.setAttribute("aria-haspopup","dialog"),t.setAttribute("aria-expanded","true"),t.setAttribute("aria-controls","driver-popover-content")}(e,n,t)}function Rr(e){let t=e.getState("__resizeTimeout");t&&window.cancelAnimationFrame(t),e.setState("__resizeTimeout",window.requestAnimationFrame(()=>function(e){let t=e.getState("__activeElement"),n=e.getState("__activeStep");t&&(Er(e,t),function(e){let t=e.getState("__activeStagePosition"),n=e.getState("__overlaySvg");t&&n&&n.setAttribute("viewBox",`0 0 ${window.innerWidth} ${window.innerHeight}`)}(e),function(e,t,n){let i=e.getState("popover");i&&pr(i,t,jr(e,t,n))}(e,t,n))}(e)))}function Hr(e){let t=t=>function(e,t){(e.getConfig("allowKeyboardControl")??1)&&("Escape"===t.key?e.emit("escapePress"):"ArrowRight"===t.key?e.emit("arrowRightPress"):"ArrowLeft"===t.key&&e.emit("arrowLeftPress"))}(e,t),n=t=>function(e,t){if(!e.getState("isInitialized")||"Tab"!==t.key&&9!==t.keyCode)return;let n=e.getState("__activeElement"),i=e.getState("popover")?.wrapper,r=wr([...i?[i]:[],...n?[n]:[]]),o=r[0],a=r[r.length-1];t.preventDefault(),t.shiftKey?(r[r.indexOf(document.activeElement)-1]||a)?.focus():(r[r.indexOf(document.activeElement)+1]||o)?.focus()}(e,t),i=()=>Rr(e),r=()=>Rr(e),o=t=>function(e,t){let n=e.getState("__activeElement"),i=t.target;!n||!i||!n.contains(i)||e.emit("activeElementClick")}(e,t);e.setState("__events",{onKeyup:t,onKeydown:n,onResize:i,onScroll:r,onClick:o}),window.addEventListener("keyup",t,!1),window.addEventListener("keydown",n,!1),window.addEventListener("resize",i),window.addEventListener("scroll",r),document.addEventListener("click",o,!1)}var Br=null,qr=[],Fr="docList-mermaid-driver",Wr="docList-menu-driver",Yr="docList-pc-menu-driver";async function Xr(t){const n=document.querySelectorAll("code.language-mermaid"),{showDriverGuide:i,isPrintPreview:r=!1,chartConfig:o,defaultCollapsed:a=!0,cdn:s}=t||{};for(const l of n){const t=l.parentElement;if(!t)continue;const n=l.textContent.trim(),c=document.createElement("div");c.className="mermaid-react-root",t.replaceWith(c),Q(c).render(/* @__PURE__ */z(e.StrictMode,{children:/* @__PURE__ */z(Ti,{children:/* @__PURE__ */z(Vr,{source:n,enablePanzoom:!0,showDownload:!0,showSourceView:!0,showCollapse:!0,chartConfig:o,defaultCollapsed:a,isPrintPreview:r,minHeight:200,showDriverGuide:i,cdn:s})})}))}}var Ur=/* @__PURE__ */V({default:()=>Vr,renderMermaid:()=>Gr,renderMermaidWithControls:()=>Xr}),Vr=n(function({source:e,debounceMs:t=300,enablePanzoom:n=!0,showDownload:c=!0,showSourceView:d=!1,showCollapse:u=!1,defaultCollapsed:h=!0,className:p="",minHeight:m=200,showDriverGuide:f,isPrintPreview:v=!1,chartConfig:g,cdn:b}){const{isDark:w}=function(){const e=r(Ai);if(!e)throw new Error("useTheme must be used within a ThemeProvider");return e}(),{svg:y,error:k,loading:x}=function({source:e,debounceMs:t=300,isDark:n,chartConfig:i,cdn:r}){const{mermaid:a,loading:c}=function(e){const[t,n]=l(null),[i,r]=l(!0),[a,s]=l(null);return o(()=>{let t=!1;return function(e){return Ii||(Ii=new Promise((t,n)=>{if(window.mermaid)return void t(window.mermaid);const i=document.createElement("script");i.src=function(e,t){return t?.[e]??Li[e]??""}("mermaid",e),i.onload=()=>t(window.mermaid),i.onerror=()=>n(/* @__PURE__ */new Error("Mermaid 脚本加载失败")),document.head.appendChild(i)})),Ii}(e).then(e=>{t||(n(()=>e),r(!1))}).catch(e=>{t||(s(e),r(!1))}),()=>{t=!0}},[]),{mermaid:t,loading:i,error:a}}(r),[d,u]=l(""),[h,p]=l(""),m=s(0);return o(()=>{a&&a.initialize({startOnLoad:!1,theme:n?"dark":"default",securityLevel:"loose"})},[a,n]),o(()=>{if(!a)return;const n=(e||"").trim();if(!n)return u(""),void p("");p("");const r=++m.current,o=setTimeout(async()=>{const e="mermaid-render-"+Pi++;try{const{svg:t}=await a.render(e,i?i(n):n);if(r!==m.current)return;u(t),p("")}catch(t){if(r!==m.current)return;const e=t instanceof Error?t.message:String(t);p(e?.split("\n")[0]||e)}finally{const t=document.getElementById(e)||document.getElementById(`d${e}`);t&&t.parentNode&&t.parentNode.removeChild(t)}},t);return()=>clearTimeout(o)},[e,n,a,t,i]),{svg:d,error:h,loading:c}}({source:e,debounceMs:t,isDark:w,chartConfig:g,cdn:b}),C=s(null),_=s(null),{isFullscreen:E,isCollapsed:A,setIsCollapsed:T,showSource:M,setShowSource:O,isMinimize:L,setIsMinimize:I,isPanzoomEnabled:P,setIsPanzoomEnabled:N,toggleFullscreen:D}=function({showCollapse:e,showSourceView:t,defaultCollapsed:n,isPrintPreview:r,svg:a,error:s,loading:c,wrapperRef:d}){const[u,h]=l(!1),[p,m]=l(n),[f,v]=l(!1),[g,b]=l(t),[w,y]=l(!1);return o(()=>{r&&a&&!s&&!c&&m(!1)},[r,a,s,c]),o(()=>{const t=()=>{h(!!document.fullscreenElement),!document.fullscreenElement&&e&&m(!0)};return r||document.addEventListener("fullscreenchange",t),()=>document.removeEventListener("fullscreenchange",t)},[e,r]),{isFullscreen:u,setIsFullscreen:h,isCollapsed:p,setIsCollapsed:m,showSource:f,setShowSource:v,isMinimize:g,setIsMinimize:b,isPanzoomEnabled:w,setIsPanzoomEnabled:y,toggleFullscreen:i(()=>{document.fullscreenElement?document.exitFullscreen():d.current?.requestFullscreen?.()},[d])}}({showCollapse:u,showSourceView:d,defaultCollapsed:h,isPrintPreview:v,svg:y,error:k,loading:x,wrapperRef:C}),R=n&&(E||!A||!u),H=R&&P,B=function({contentRef:e,wrapperRef:t,enabled:n,svg:i,isFullscreen:r}){const a=s(null);return o(()=>{if(!n||!e.current||!i)return void(a.current&&(a.current.destroy(),a.current=null));a.current&&(a.current.destroy(),a.current=null);const r=er(e.current,{maxScale:5,minScale:.1,startScale:1,contain:"outside"});a.current={destroy:()=>r.destroy(),zoomWithWheel:r.zoomWithWheel,zoomIn:()=>r.zoomIn(),zoomOut:()=>r.zoomOut(),reset:()=>r.reset()};const o=t.current,s=a.current.zoomWithWheel;return o?.addEventListener("wheel",s),()=>{o?.removeEventListener("wheel",s),a.current&&(a.current.destroy(),a.current=null)}},[i,r,n,e,t]),a}({contentRef:_,wrapperRef:C,enabled:H&&!!y&&!v,svg:y,isFullscreen:E});o(()=>{f&&!v&&function(e){if(qr=e,Br)return;const t=e=>{const n=qr;if(e>=n.length)return void(Br=null);const i=n[e];if(i.condition&&!i.condition())return void t(e+1);i?.onOpen?.();const r=function(e={}){let t=function(e={}){let t=function(){let e={};function t(t={}){e={animate:!0,duration:400,allowClose:!0,allowScroll:!0,overlayClickBehavior:"close",overlayOpacity:.7,smoothScroll:!1,disableActiveInteraction:!1,advanceOnClick:!1,skipMissingElement:!1,waitForElement:0,showProgress:!1,stagePadding:10,stageRadius:5,popoverOffset:10,showButtons:["next","previous","close"],disableButtons:[],overlayColor:"#000",...t}}return t(),{getConfig:t=>t?e[t]:e,configure:t}}();t.configure(e);let n,i=function(){let e={};return{getState:t=>t?e[t]:e,setState:(t,n)=>{e[t]=n},resetState:function(){e={}}}}(),r=function(){let e={};return{listen:function(t,n){e[t]=n},emit:function(t){e[t]?.()},reset:function(){e={}}}}();return{getConfig:t.getConfig,setConfig:t.configure,getState:i.getState,setState:i.setState,resetState:i.resetState,listen:r.listen,emit:r.emit,resetEmitter:r.reset,getDriver:()=>n,setDriver:e=>{n=e},getHookOpts:e=>{let r=e||i.getState();return{config:t.getConfig(),state:r,driver:n,index:r.activeIndex}}}}(e);function n(){t.getConfig("allowClose")&&h()}function i(){let e=t.getConfig("overlayClickBehavior");if(t.getConfig("allowClose")&&"close"===e)h();else{if("function"==typeof e){let n=t.getState("__activeStep");return void e(t.getState("__activeElement"),n,t.getHookOpts())}if("nextStep"===e){let e=t.getState("activeStep"),n=t.getState("activeElement"),i=$r(t,e);if(i)return void i(n,e,t.getHookOpts());r()}}}function r(){let e=t.getState("activeIndex"),n=t.getConfig("steps")||[];if(void 0===e)return;let i=e+1;n[i]?u(i):h()}function o(){let e=t.getState("activeIndex"),n=t.getConfig("steps")||[];if(void 0===e)return;let i=e-1;n[i]?u(i):h()}function a(){if(t.getState("__transitionCallback"))return;let e=t.getState("__activeStep");if(!e||!(e.advanceOnClick??t.getConfig("advanceOnClick")))return;let n=t.getState("__activeElement"),i=$r(t,e);i?i(n,e,t.getHookOpts()):r()}function s(){if(t.getState("__transitionCallback"))return;let e=t.getState("activeIndex"),n=t.getState("__activeStep"),i=t.getState("__activeElement");if(void 0===e||void 0===n||!(t.getConfig("steps")||[])[e-1])return;let r=zr(t,n);if(r)return r(i,n,t.getHookOpts());o()}function l(){if(t.getState("__transitionCallback"))return;let e=t.getState("activeIndex"),n=t.getState("__activeStep"),i=t.getState("__activeElement");if(void 0===e||void 0===n)return;let o=$r(t,n);if(o)return o(i,n,t.getHookOpts());r()}function c(){t.getState("isInitialized")||(t.setState("isInitialized",!0),document.body.classList.add("driver-active",t.getConfig("animate")?"driver-fade":"driver-simple"),t.getConfig("allowScroll")||document.body.classList.add("driver-no-scroll"),document.body.style.setProperty("--driver-animation-duration",`${t.getConfig("duration")||400}ms`),Hr(t),t.listen("overlayClick",i),t.listen("activeElementClick",a),t.listen("escapePress",n),t.listen("closeClick",n),t.listen("arrowLeftPress",s),t.listen("arrowRightPress",l))}function d(){let e=t.getState("__pendingWaitCancel");e&&(t.setState("__pendingWaitCancel",void 0),e())}function u(e=0,n=!1){d();let i=t.getConfig("steps");if(!i)return void h();if(!i[e])return void h();let r=i[e],o=r.waitForElement??t.getConfig("waitForElement")??0;if(!n&&o>0&&r.element&&!gr(r.element))return void function(e,n,i){let r=()=>{o.disconnect(),window.clearTimeout(a),t.setState("__pendingWaitCancel",void 0),i()},o=new MutationObserver(()=>{gr(e.element)&&r()}),a=window.setTimeout(r,n);t.setState("__pendingWaitCancel",()=>{o.disconnect(),window.clearTimeout(a)}),o.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0})}(r,o,()=>u(e,!0));if(Ir(t,r)){let n=t.getState("activeIndex"),r="number"==typeof n&&e<n?-1:1;return void(i[e+r]?u(e+r):1===r&&h())}t.setState("__activeOnDestroyed",document.activeElement),t.setState("activeIndex",e);let a=i[e+1];Dr(t,function(e,t,n){let i=e.getConfig("steps")||[],r=i[t],o=r.popover||{},a=void 0!==Pr(e,t+1,1),s=void 0!==Pr(e,t-1,-1),l=o.doneBtnText||e.getConfig("doneBtnText")||"Done",c=e.getConfig("allowClose"),d=void 0===o.showProgress?e.getConfig("showProgress"):o.showProgress,u=(o.progressText||e.getConfig("progressText")||Lr).replace("{{current}}",`${t+1}`).replace("{{total}}",`${i.length}`),h=o.showButtons||e.getConfig("showButtons"),p=["next","previous",...c?["close"]:[]].filter(e=>!h?.length||h.includes(e)),m=o.onNextClick||e.getConfig("onNextClick"),f=o.onPrevClick||e.getConfig("onPrevClick"),v=o.onCloseClick||e.getConfig("onCloseClick");return{...r,popover:{showButtons:p,nextBtnText:a?void 0:l,disableButtons:[...s?[]:["previous"]],showProgress:d,onNextClick:m||n.onNextClick,onPrevClick:f||n.onPrevClick,onCloseClick:v||n.onCloseClick,...o,progressText:u}}}(t,e,{onNextClick:()=>{a?u(e+1):h()},onPrevClick:()=>{u(e-1)},onCloseClick:()=>{h()}}))}function h(e=!0){let n=t.getState("__activeElement"),i=t.getState("__activeStep"),r=t.getState("__activeOnDestroyed"),o=t.getConfig("onDestroyStarted");if(e&&o)return void o(n&&"driver-dummy-element"!==n?.id?n:void 0,i,t.getHookOpts());let a=i?.onDeselected||t.getConfig("onDeselected"),s=t.getConfig("onDestroyed");document.body.classList.remove("driver-active","driver-fade","driver-simple","driver-no-scroll"),document.body.style.removeProperty("--driver-animation-duration"),d(),function(e){let t=e.getState("__events");t&&(window.removeEventListener("keyup",t.onKeyup),window.removeEventListener("keydown",t.onKeydown),window.removeEventListener("resize",t.onResize),window.removeEventListener("scroll",t.onScroll),document.removeEventListener("click",t.onClick,!1))}(t),Cr(t.getState("popover")),document.getElementById("driver-dummy-element")?.remove(),document.querySelectorAll(".driver-active-element").forEach(e=>{let t=e.parentElement;t&&t!==document.body&&t.classList.remove("driver-active-element-parent","driver-active-element-parent-no-scroll"),e.classList.remove("driver-active-element","driver-no-interaction"),e.removeAttribute("aria-haspopup"),e.removeAttribute("aria-expanded"),e.removeAttribute("aria-controls")}),Or(t),t.resetEmitter();let l=t.getState();if(t.resetState(),n&&i){let e="driver-dummy-element"===n.id;a&&a(e?void 0:n,i,t.getHookOpts(l)),s&&s(e?void 0:n,i,t.getHookOpts(l))}r&&r.focus()}let p={isActive:()=>t.getState("isInitialized")||!1,refresh:()=>Rr(t),drive:(e=0)=>{c(),u(e)},setConfig:t.setConfig,setSteps:e=>{d(),t.resetState(),t.setConfig({...t.getConfig(),steps:e})},getConfig:t.getConfig,getState:t.getState,getActiveIndex:()=>t.getState("activeIndex"),isFirstStep:()=>{let e=t.getState("activeIndex");return void 0!==e&&void 0===Pr(t,e-1,-1)},isLastStep:()=>{let e=t.getState("activeIndex");return void 0!==e&&void 0===Pr(t,e+1,1)},getActiveStep:()=>t.getState("activeStep"),getActiveElement:()=>t.getState("activeElement"),getPreviousElement:()=>t.getState("previousElement"),getPreviousStep:()=>t.getState("previousStep"),getNextStep:()=>{let e=t.getConfig("steps")||[],n=t.getState("activeIndex");if(void 0===n)return;let i=Pr(t,n+1,1);return void 0===i?void 0:e[i]},moveNext:r,movePrevious:o,moveTo:function(e){(t.getConfig("steps")||[])[e]?u(e):h()},hasNextStep:()=>{let e=t.getState("activeIndex");return void 0!==e&&void 0!==Pr(t,e+1,1)},hasPreviousStep:()=>{let e=t.getState("activeIndex");return void 0!==e&&void 0!==Pr(t,e-1,-1)},highlight:e=>{c(),Dr(t,{...e,popover:e.popover?{showButtons:[],showProgress:!1,progressText:"",...e.popover}:void 0})},destroy:()=>{h(!1)}};return t.setDriver(p),p}({nextBtnText:"下一步",prevBtnText:"上一步",doneBtnText:"我知道了",showProgress:!0,allowClose:!1,progressText:"第 {{current}} 步,共 {{total}} 步",onDestroyed:()=>{Br=null,t(e+1)},steps:i.steps.filter(e=>!1!==e.isShow)||[]});Br=r,r.drive()};t(0)}(function(e,t){return[{id:Wr,condition:()=>!localStorage[Wr]&&e&&!(0,pe.IsPC)()&&"true"!==localStorage.docListMenuVisible,onOpen:()=>{localStorage[Wr]="1"},steps:[{element:".docList-menu-anchor",popover:{title:"大纲",description:"点击此处您可查看大纲"}},{element:".docList-menu-list",popover:{title:"列表",description:"点击此处您可查看当前分类下文章列表"}},{element:".docList-menu-copyHtml",popover:{title:"复制",description:"点击此处您可复制 HTML 渲染的格式内容"}},{element:".docList-menu-copyMarkdown",popover:{title:"复制",description:"点击此处您可复制 markdown 源码"}},{element:".docList-menu-print",popover:{title:"打印",description:"点击此处您可跳转至打印页面,输出为PDF"}}]},{id:Yr,condition:()=>!localStorage[Yr]&&(0,pe.IsPC)()&&e,onOpen:()=>{localStorage[Yr]="1"},steps:[{element:".docList-menu-copyHtml",popover:{title:"复制",description:"点击此处您可复制 HTML 渲染的格式内容"}},{element:".docList-menu-copyMarkdown",popover:{title:"复制",description:"点击此处您可复制 markdown 源码"}},{element:".docList-menu-print",popover:{title:"打印",description:"点击此处您可跳转至打印页面,输出为PDF"}},{element:".docList-menu-mermaid-collapse",popover:{title:"展开收起mermaid",description:"点击此处按钮可一键展开收起mermaid图表"},isShow:t}]},{id:Fr,condition:()=>!(!t||localStorage[Fr]||!e),onOpen:()=>{localStorage[Fr]="1"},steps:[{element:".mermaid-react-root",popover:{title:"mermaid",description:"恭喜您解锁 Mermaid 渲染图表"}},{element:".mermaid-react-root .mermaid-minimize-btn",popover:{title:"缩略图",description:"点击此处按钮可查看缩略图"}},{element:".mermaid-react-root .mermaid-fullscreen-btn",popover:{title:"全屏",description:"点击此处按钮可切换为全屏展示"}},{element:".mermaid-react-root .mermaid-showcode-btn",popover:{title:"源码",description:"点击此处按钮查看源码弹窗"}},{element:".mermaid-react-root .mermaid-collapsed-btn",popover:{title:"展开",description:"点击此处按钮展开大图"}}]}]}(d,!!y))},[y,f,v,d]);const q=function(e){const t=e.match(/---\s*\n\s*title:\s*(.+)\s*\n\s*---/);return t?t[1].trim():"mermaid 图表"}(e),F=i(()=>{y?function(e,t="image"){yi(new Blob([e],{type:"image/svg+xml;charset=utf-8"}),`${t}.svg`)}(y,q):se.warning("暂无图表")},[y,q]),W=i(()=>{y?function(e,t="image",n=2){const{w:i,h:r}=function(e){const t=e.match(/viewBox=["']?([^"']+)["']/i);let n=0,i=0;if(t){const e=t[1].split(/[\s,]+/).map(Number);4===e.length&&(n=e[2],i=e[3])}const r=e.match(/width=["']?\s*([\d.]+)\s*(?:px|pt|cm|mm|in|%)*["']/i),o=e.match(/height=["']?\s*([\d.]+)\s*(?:px|pt|cm|mm|in|%)*/i),a=r?parseFloat(r[1]):0,s=o?parseFloat(o[1]):0;return n&&i?{w:n,h:i}:{w:a||n||800,h:s||i||600}}(e),o=function(e){return`data:image/svg+xml;base64,${btoa(unescape(encodeURIComponent(e)))}`}(e),a=new Image;a.crossOrigin="anonymous",a.src=o,a.onload=()=>{const e=document.createElement("canvas");e.width=Math.max(1,Math.round(i*n)),e.height=Math.max(1,Math.round(r*n));const o=e.getContext("2d");o.fillStyle="#ffffff",o.fillRect(0,0,e.width,e.height),o.scale(n,n),o.drawImage(a,0,0,i,r),e.toBlob(e=>{e?yi(e,`${t}.png`):se.error("PNG 生成失败")},"image/png")},a.onerror=()=>{se.error("PNG 生成失败:图片加载失败")}}(y,q,2):se.warning("暂无图表")},[y,q]),Y=a(()=>({items:[{key:"svg",label:"下载 SVG"},{key:"png",label:"下载 PNG"}],onClick:({key:e})=>"svg"===e?F():W()}),[F,W]),X=!!y;/* @__PURE__ */
|
|
11
|
+
return z("div",{className:"mermaid-toolbar",children:[{isShow:e&&r&&!i,icon:/* @__PURE__ */z(o?b:x,{}),tooltip:o?"缩略图":"最小化",onClick:()=>d(e=>!e),className:"mermaid-minimize-btn"},{isShow:s,icon:/* @__PURE__ */z(g,{}),tooltip:l?"取消拖拽":"启用拖拽",onClick:()=>c(e=>!e),className:l?"mermaid-panzoom-btn active":"mermaid-panzoom-btn"},{isShow:a,icon:/* @__PURE__ */z(E,{}),tooltip:"放大",onClick:()=>C.current?.zoomIn()},{isShow:a,icon:/* @__PURE__ */z(_,{}),tooltip:"缩小",onClick:()=>C.current?.zoomOut()},{isShow:a,icon:/* @__PURE__ */z(A,{}),tooltip:"重置",onClick:()=>C.current?.reset()},{isShow:n&&a,icon:/* @__PURE__ */z(v,{}),tooltip:"下载",dropdown:w},{isShow:!0,icon:/* @__PURE__ */z(i?y:k,{}),tooltip:i?"退出全屏":"全屏",onClick:m,className:"mermaid-fullscreen-btn"},{isShow:e&&!i,icon:/* @__PURE__ */z(p,{}),tooltip:"查看源码",onClick:()=>h(!0),className:"mermaid-showcode-btn"},{isShow:t&&!i,icon:/* @__PURE__ */z(r?f:T,{}),tooltip:r?"展开":"收起",onClick:()=>u(e=>!e),className:"mermaid-collapsed-btn"}].map(e=>{if(!1===e.isShow)return null;const t=e.className||e.tooltip,n=e.dropdown?/* @__PURE__ */z(rr,{items:e.dropdown.items,onClick:e.dropdown.onClick,children:/* @__PURE__ */z("div",{className:`remons-markdown-circle ${e.className||""}`,children:e.icon})},t):/* @__PURE__ */z("div",{className:`remons-markdown-circle ${e.className||""}`,onClick:e.onClick,children:e.icon},t);return e.tooltip&&(0,pe.IsPC)()?/* @__PURE__ */z(nr,{title:e.tooltip,children:n},`${t}-tooltip`):n})})}var ar={previewArea:"_previewArea_s90vb_2",previewAreaDisabled:"_previewAreaDisabled_s90vb_25",previewContent:"_previewContent_s90vb_31",errorTip:"_errorTip_s90vb_47",emptyTip:"_emptyTip_s90vb_59"},sr=["pointerdown","mousedown","pointerup","mouseup","click"],lr=/* @__PURE__ */new WeakMap;function cr(e,t,n){dr(e);let i=i=>{let r=i.target;e.contains(r)&&((!n||n(r))&&(i.preventDefault(),i.stopPropagation(),i.stopImmediatePropagation()),"click"===i.type&&t?.(i))};for(let r of sr)document.addEventListener(r,i,!0);lr.set(e,i)}function dr(e){let t=lr.get(e);if(t){for(let e of sr)document.removeEventListener(e,t,!0);lr.delete(e)}}function ur(e,t){let{elementDimensions:n,popoverDimensions:i,popoverPadding:r,popoverArrowDimensions:o}=t;return"start"===e?Math.max(Math.min(n.top-r,window.innerHeight-i.realHeight-o.width),o.width):"end"===e?Math.max(Math.min(n.top-i?.realHeight+n.height+r,window.innerHeight-i?.realHeight-o.width),o.width):"center"===e?Math.max(Math.min(n.top+n.height/2-i?.realHeight/2,window.innerHeight-i?.realHeight-o.width),o.width):0}function hr(e,t){let{elementDimensions:n,popoverDimensions:i,popoverPadding:r,popoverArrowDimensions:o}=t;return"start"===e?Math.max(Math.min(n.left-r,window.innerWidth-i.realWidth-o.width),o.width):"end"===e?Math.max(Math.min(n.left-i?.realWidth+n.width+r,window.innerWidth-i?.realWidth-o.width),o.width):"center"===e?Math.max(Math.min(n.left+n.width/2-i?.realWidth/2,window.innerWidth-i?.realWidth-o.width),o.width):0}function pr(e,t,n){let{align:i,side:r}=n,o=n.centered?"over":r,a=n.padding,s=function(e,t){let n=e.wrapper.getBoundingClientRect();return{width:n.width+t,height:n.height+t,realWidth:n.width,realHeight:n.height}}(e,n.offset),l=e.arrow.getBoundingClientRect(),c=t.getBoundingClientRect(),d=c.top-s.height,u=d>=0,h=window.innerHeight-(c.bottom+s.height),p=h>=0,m=c.left-s.width,f=m>=0,v=window.innerWidth-(c.right+s.width),g=v>=0,b=!(u||p||f||g),w=o;if("top"===o&&u?g=f=p=!1:"bottom"===o&&p?g=f=u=!1:"left"===o&&f?g=u=p=!1:"right"===o&&g&&(f=u=p=!1),"over"===o){let t=window.innerWidth/2-s.realWidth/2,n=window.innerHeight/2-s.realHeight/2;e.wrapper.style.left=`${t}px`,e.wrapper.style.right="auto",e.wrapper.style.top=`${n}px`,e.wrapper.style.bottom="auto"}else if(b){let t=window.innerWidth/2-s?.realWidth/2;e.wrapper.style.left=`${t}px`,e.wrapper.style.right="auto",e.wrapper.style.bottom="10px",e.wrapper.style.top="auto"}else if(f){let t=Math.min(m,window.innerWidth-s?.realWidth-l.width),n=ur(i,{elementDimensions:c,popoverDimensions:s,popoverPadding:a,popoverArrowDimensions:l});e.wrapper.style.left=`${t}px`,e.wrapper.style.top=`${n}px`,e.wrapper.style.bottom="auto",e.wrapper.style.right="auto",w="left"}else if(g){let t=Math.min(v,window.innerWidth-s?.realWidth-l.width),n=ur(i,{elementDimensions:c,popoverDimensions:s,popoverPadding:a,popoverArrowDimensions:l});e.wrapper.style.right=`${t}px`,e.wrapper.style.top=`${n}px`,e.wrapper.style.bottom="auto",e.wrapper.style.left="auto",w="right"}else if(u){let t=Math.min(d,window.innerHeight-s.realHeight-l.width),n=hr(i,{elementDimensions:c,popoverDimensions:s,popoverPadding:a,popoverArrowDimensions:l});e.wrapper.style.top=`${t}px`,e.wrapper.style.left=`${n}px`,e.wrapper.style.bottom="auto",e.wrapper.style.right="auto",w="top"}else if(p){let t=Math.min(h,window.innerHeight-s?.realHeight-l.width),n=hr(i,{elementDimensions:c,popoverDimensions:s,popoverPadding:a,popoverArrowDimensions:l});e.wrapper.style.left=`${n}px`,e.wrapper.style.bottom=`${t}px`,e.wrapper.style.top="auto",e.wrapper.style.right="auto",w="bottom"}vr(e,b?"over":w,i,t),[...e.wrapper.classList].filter(e=>e.startsWith("driver-popover-side-")||e.startsWith("driver-popover-align-")).forEach(t=>e.wrapper.classList.remove(t)),e.wrapper.classList.add(`driver-popover-side-${w}`),e.wrapper.classList.add(`driver-popover-align-${i}`)}function mr(e,t,n,i,r,o=10){let a=i-n;return e<=n&&t>=i?"start"===r?15+o/2:"end"===r?a-15-o/2:a/2:(Math.min(Math.max(e,n),i)+Math.min(Math.max(t,n),i))/2-n}function fr(e,t,n=10){let i=t-15-n;if(i<15)return Math.max(0,(t-n)/2);let r=e-n/2;return Math.min(Math.max(r,15),i)}function vr(e,t,n,i){let r=e.arrow;if(r.className="driver-popover-arrow",r.style.top="",r.style.right="",r.style.bottom="",r.style.left="","over"===t)return void r.classList.add("driver-popover-arrow-none");let o=i.getBoundingClientRect(),a=e.wrapper.getBoundingClientRect(),s=function(e,t,n){return"left"===e||"right"===e?t.bottom>n.top&&t.top<n.bottom?e:t.bottom<=n.top?"bottom":"top":t.right>n.left&&t.left<n.right?e:t.right<=n.left?"right":"left"}(t,o,a);r.classList.add(`driver-popover-arrow-side-${s}`);let l=r.getBoundingClientRect().width||10;if("left"===s||"right"===s){let e=mr(o.top,o.bottom,a.top,a.bottom,n,l);r.style.top=`${fr(e,a.height,l)}px`}else{let e=mr(o.left,o.right,a.left,a.right,n,l);r.style.left=`${fr(e,a.width,l)}px`}}function gr(e){return"function"==typeof e?e():"string"==typeof e?document.querySelector(e):e}function br(e,t,n,i){return(e/=i/2)<1?n/2*e*e+t:-n/2*(--e*(e-2)-1)+t}function wr(e){let t='a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled])';return e.flatMap(e=>{let n=e.matches(t),i=Array.from(e.querySelectorAll(t));return[...n?[e]:[],...i]}).filter(e=>"none"!==getComputedStyle(e).pointerEvents&&function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}(e))}function yr(e,t){if(!e||function(e){let t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)}(e))return;let n=e.offsetHeight>window.innerHeight;e.scrollIntoView({behavior:!t||kr(e)?"auto":"smooth",inline:"center",block:n?"start":"center"})}function kr(e){if(!e||!e.parentElement)return;let t=e.parentElement;return t.scrollHeight>t.clientHeight}function xr(e,t){let n=function(){let e=document.createElement("div");e.classList.add("driver-popover");let t=document.createElement("div");t.classList.add("driver-popover-arrow");let n=document.createElement("header");n.id="driver-popover-title",n.classList.add("driver-popover-title"),n.style.display="none",n.innerText="Popover Title";let i=document.createElement("div");i.id="driver-popover-description",i.classList.add("driver-popover-description"),i.style.display="none",i.innerText="Popover description is here";let r=document.createElement("button");r.type="button",r.classList.add("driver-popover-close-btn"),r.setAttribute("aria-label","Close"),r.innerHTML="×";let o=document.createElement("footer");o.classList.add("driver-popover-footer");let a=document.createElement("span");a.classList.add("driver-popover-progress-text"),a.innerText="";let s=document.createElement("span");s.classList.add("driver-popover-navigation-btns");let l=document.createElement("button");l.type="button",l.classList.add("driver-popover-prev-btn","driver-popover-footer-btn"),l.innerHTML="Previous";let c=document.createElement("button");return c.type="button",c.classList.add("driver-popover-next-btn","driver-popover-footer-btn"),c.innerHTML="Next",s.appendChild(l),s.appendChild(c),o.appendChild(a),o.appendChild(s),e.appendChild(r),e.appendChild(t),e.appendChild(n),e.appendChild(i),e.appendChild(o),{wrapper:e,arrow:t,title:n,description:i,footer:o,previousButton:l,nextButton:c,closeButton:r,footerButtons:s,progress:a}}();document.body.appendChild(n.wrapper);let{title:i,description:r,showButtons:o,disableButtons:a,showProgress:s,nextBtnText:l,prevBtnText:c,progressText:d}=t;n.nextButton.innerHTML=l,n.previousButton.innerHTML=c,n.progress.innerHTML=d,t.doneButton&&n.nextButton.classList.add("driver-popover-done-btn"),i?(n.title.innerHTML=i,n.title.style.display="block"):n.title.style.display="none",r?(n.description.innerHTML=r,n.description.style.display="block"):n.description.style.display="none";let u=o.includes("next")||o.includes("previous")||s;n.closeButton.style.display=o.includes("close")?"block":"none",u?(n.footer.style.display="flex",n.progress.style.display=s?"block":"none",n.nextButton.style.display=o.includes("next")?"block":"none",n.previousButton.style.display=o.includes("previous")?"block":"none"):n.footer.style.display="none",a.includes("next")&&(n.nextButton.disabled=!0,n.nextButton.classList.add("driver-popover-btn-disabled")),a.includes("previous")&&(n.previousButton.disabled=!0,n.previousButton.classList.add("driver-popover-btn-disabled")),a.includes("close")&&(n.closeButton.disabled=!0,n.closeButton.classList.add("driver-popover-btn-disabled"));let h=n.wrapper;h.style.display="block",h.style.left="",h.style.top="",h.style.bottom="",h.style.right="",h.id="driver-popover-content",h.setAttribute("role","dialog"),h.setAttribute("aria-labelledby","driver-popover-title"),h.setAttribute("aria-describedby","driver-popover-description"),n.arrow.className="driver-popover-arrow",h.className=`driver-popover ${t.popoverClass||""}`.trim(),cr(n.wrapper,e=>{let n=e.target;return n.closest(".driver-popover-next-btn")?t.onNextClick?.():n.closest(".driver-popover-prev-btn")?t.onPrevClick?.():n.closest(".driver-popover-close-btn")?t.onCloseClick?.():void 0},e=>!n.description.contains(e)&&!n.title.contains(e)&&!!e.closest(".driver-popover-prev-btn, .driver-popover-next-btn, .driver-popover-close-btn")),t.onRender?.(n),pr(n,e,t.position),function(e,t,n){e.wrapper.querySelectorAll("img").forEach(i=>{if(i.complete)return;let r=()=>pr(e,t,n);i.addEventListener("load",r,{once:!0}),i.addEventListener("error",r,{once:!0})})}(n,e,t.position),yr(h,t.smoothScroll);let p=wr([h,e]);return p.length>0&&p[0].focus(),n}function Cr(e){e&&(dr(e.wrapper),e.wrapper.parentElement?.removeChild(e.wrapper))}function Sr(e,t){let n=window.innerWidth,i=window.innerHeight,r=t.padding,o=t.radius,a=e.width+2*r,s=e.height+2*r,l=Math.min(o,a/2,s/2),c=Math.floor(Math.max(l,0)),d=a-2*c,u=s-2*c;return`M${n},0L0,0L0,${i}L${n},${i}L${n},0Z\n M${e.x-r+c},${e.y-r} h${d} a${c},${c} 0 0 1 ${c},${c} v${u} a${c},${c} 0 0 1 -${c},${c} h-${d} a${c},${c} 0 0 1 -${c},-${c} v-${u} a${c},${c} 0 0 1 ${c},-${c} z`}function _r(e,t,n,i,r){let o=e.getState("__activeStagePosition"),a=o||i.getBoundingClientRect(),s=r.getBoundingClientRect();o={x:br(t,a.x,s.x-a.x,n),y:br(t,a.y,s.y-a.y,n),width:br(t,a.width,s.width-a.width,n),height:br(t,a.height,s.height-a.height,n)},Tr(e,o),e.setState("__activeStagePosition",o)}function Er(e,t){if(!t)return;let n=t.getBoundingClientRect(),i={x:n.x,y:n.y,width:n.width,height:n.height};e.setState("__activeStagePosition",i),Tr(e,i)}function Ar(e,t){let n=function(e,t){let n=window.innerWidth,i=window.innerHeight,r=document.createElementNS("http://www.w3.org/2000/svg","svg");r.classList.add("driver-overlay","driver-overlay-animated"),r.setAttribute("viewBox",`0 0 ${n} ${i}`),r.setAttribute("xmlSpace","preserve"),r.setAttribute("xmlnsXlink","http://www.w3.org/1999/xlink"),r.setAttribute("version","1.1"),r.setAttribute("preserveAspectRatio","xMinYMin slice"),r.style.fillRule="evenodd",r.style.clipRule="evenodd",r.style.strokeLinejoin="round",r.style.strokeMiterlimit="2",r.style.zIndex="10000",r.style.position="fixed",r.style.top="0",r.style.left="0",r.style.width="100%",r.style.height="100%";let o=document.createElementNS("http://www.w3.org/2000/svg","path");return o.setAttribute("d",Sr(t,Mr(e))),o.style.fill=e.getConfig("overlayColor")||"rgb(0,0,0)",o.style.opacity=`${e.getConfig("overlayOpacity")}`,o.style.pointerEvents="auto",o.style.cursor="auto",r.appendChild(o),r}(e,t);document.body.appendChild(n),cr(n,t=>{"path"===t.target.tagName&&e.emit("overlayClick")}),e.setState("__overlaySvg",n)}function Tr(e,t){let n=e.getState("__overlaySvg");if(!n)return void Ar(e,t);let i=n.firstElementChild;if("path"!==i?.tagName)throw Error("no path element found in stage svg");i.setAttribute("d",Sr(t,Mr(e)))}function Mr(e){return{padding:e.getConfig("stagePadding")||0,radius:e.getConfig("stageRadius")||0}}function Or(e){let t=e.getState("__overlaySvg");t&&(dr(t),t.remove())}var Lr="{{current}} of {{total}}";function Ir(e,t){return!(!(t.skipMissingElement??e.getConfig("skipMissingElement"))||!t.element||gr(t.element))}function Pr(e,t,n){let i=e.getConfig("steps")||[];for(let r=t;r>=0&&r<i.length;r+=n)if(!Ir(e,i[r]))return r}function $r(e,t){let n=e.getState("activeIndex"),i=void 0!==n&&void 0===Pr(e,n+1,1),r=t?.popover?.onDoneClick||e.getConfig("onDoneClick");return i&&r?r:t?.popover?.onNextClick||e.getConfig("onNextClick")}function zr(e,t){return t?.popover?.onPrevClick||e.getConfig("onPrevClick")}function jr(e,t,n){let i=e.getConfig("stagePadding")||0;return{side:n.popover?.side||"bottom",align:n.popover?.align||"start",offset:i+(e.getConfig("popoverOffset")||0),padding:i,centered:"driver-dummy-element"===t.id}}function Nr(e,t,n){Cr(e.getState("popover")),xr(t,function(e,t,n){let i=n.popover||{},r=e.getState("activeIndex"),o=void 0!==r&&void 0===Pr(e,r+1,1);return{title:i.title,description:i.description,showButtons:i.showButtons||e.getConfig("showButtons"),disableButtons:i.disableButtons||e.getConfig("disableButtons")||[],showProgress:i.showProgress||e.getConfig("showProgress")||!1,progressText:i.progressText??(e.getConfig("progressText")||Lr),nextBtnText:i.nextBtnText??(e.getConfig("nextBtnText")||"Next"),prevBtnText:i.prevBtnText??(e.getConfig("prevBtnText")||"Previous"),doneButton:o,popoverClass:i.popoverClass||e.getConfig("popoverClass")||"",smoothScroll:e.getConfig("smoothScroll"),onNextClick:()=>{let i=$r(e,n);return i?i(t,n,e.getHookOpts()):e.emit("nextClick")},onPrevClick:()=>{let i=zr(e,n);return i?i(t,n,e.getHookOpts()):e.emit("prevClick")},onCloseClick:()=>{let i=function(e,t){return t?.popover?.onCloseClick||e.getConfig("onCloseClick")}(e,n);return i?i(t,n,e.getHookOpts()):e.emit("closeClick")},onRender:t=>{e.setState("popover",t),(i.onPopoverRender||e.getConfig("onPopoverRender"))?.(t,e.getHookOpts())},position:jr(e,t,n)}}(e,t,n))}function Dr(e,t){let n=gr(t.element);n||(n=function(){let e=document.getElementById("driver-dummy-element");if(e)return e;let t=document.createElement("div");return t.id="driver-dummy-element",t.style.width="0",t.style.height="0",t.style.pointerEvents="none",t.style.opacity="0",t.style.position="fixed",t.style.top="50%",t.style.left="50%",document.body.appendChild(t),t}()),function(e,t,n){let i=e.getConfig("duration")||400,r=Date.now(),o=e.getState("__activeStep"),a=e.getState("__activeElement")||t,s=!a||a===t,l="driver-dummy-element"===t.id,c="driver-dummy-element"===a.id,d=e.getConfig("animate"),u=n.onHighlightStarted||e.getConfig("onHighlightStarted"),h=n?.onHighlighted||e.getConfig("onHighlighted"),p=o?.onDeselected||e.getConfig("onDeselected"),m=e.getHookOpts();!s&&p&&p(c?void 0:a,o,m),u&&u(l?void 0:t,n,m);let f=!s&&d,v=!1;(function(e){e&&(e.wrapper.style.display="none")})(e.getState("popover")),e.setState("previousStep",o),e.setState("previousElement",a),e.setState("activeStep",n),e.setState("activeElement",t);let g=()=>{if(e.getState("__transitionCallback")!==g)return;let s=Date.now()-r,c=i-s<=i/2;n.popover&&c&&!v&&f&&(Nr(e,t,n),v=!0),e.getConfig("animate")&&s<i?_r(e,s,i,a,t):(Er(e,t),h&&h(l?void 0:t,n,e.getHookOpts()),e.setState("__transitionCallback",void 0),e.setState("__previousStep",o),e.setState("__previousElement",a),e.setState("__activeStep",n),e.setState("__activeElement",t)),window.requestAnimationFrame(g)};e.setState("__transitionCallback",g),window.requestAnimationFrame(g),yr(t,e.getConfig("smoothScroll")),!f&&n.popover&&Nr(e,t,n),document.querySelectorAll(".driver-active-element-parent").forEach(e=>{e.classList.remove("driver-active-element-parent","driver-active-element-parent-no-scroll")}),a.classList.remove("driver-active-element","driver-no-interaction"),a.removeAttribute("aria-haspopup"),a.removeAttribute("aria-expanded"),a.removeAttribute("aria-controls"),(n.disableActiveInteraction??e.getConfig("disableActiveInteraction"))&&t.classList.add("driver-no-interaction");let b=t.parentElement;b&&b!==document.body&&(b.classList.add("driver-active-element-parent"),function(e){let t=window.getComputedStyle(e);return[t.overflow,t.overflowX,t.overflowY].some(e=>"auto"===e||"scroll"===e)}(b)&&b.classList.add("driver-active-element-parent-no-scroll")),t.classList.add("driver-active-element"),t.setAttribute("aria-haspopup","dialog"),t.setAttribute("aria-expanded","true"),t.setAttribute("aria-controls","driver-popover-content")}(e,n,t)}function Rr(e){let t=e.getState("__resizeTimeout");t&&window.cancelAnimationFrame(t),e.setState("__resizeTimeout",window.requestAnimationFrame(()=>function(e){let t=e.getState("__activeElement"),n=e.getState("__activeStep");t&&(Er(e,t),function(e){let t=e.getState("__activeStagePosition"),n=e.getState("__overlaySvg");t&&n&&n.setAttribute("viewBox",`0 0 ${window.innerWidth} ${window.innerHeight}`)}(e),function(e,t,n){let i=e.getState("popover");i&&pr(i,t,jr(e,t,n))}(e,t,n))}(e)))}function Hr(e){let t=t=>function(e,t){(e.getConfig("allowKeyboardControl")??1)&&("Escape"===t.key?e.emit("escapePress"):"ArrowRight"===t.key?e.emit("arrowRightPress"):"ArrowLeft"===t.key&&e.emit("arrowLeftPress"))}(e,t),n=t=>function(e,t){if(!e.getState("isInitialized")||"Tab"!==t.key&&9!==t.keyCode)return;let n=e.getState("__activeElement"),i=e.getState("popover")?.wrapper,r=wr([...i?[i]:[],...n?[n]:[]]),o=r[0],a=r[r.length-1];t.preventDefault(),t.shiftKey?(r[r.indexOf(document.activeElement)-1]||a)?.focus():(r[r.indexOf(document.activeElement)+1]||o)?.focus()}(e,t),i=()=>Rr(e),r=()=>Rr(e),o=t=>function(e,t){let n=e.getState("__activeElement"),i=t.target;!n||!i||!n.contains(i)||e.emit("activeElementClick")}(e,t);e.setState("__events",{onKeyup:t,onKeydown:n,onResize:i,onScroll:r,onClick:o}),window.addEventListener("keyup",t,!1),window.addEventListener("keydown",n,!1),window.addEventListener("resize",i),window.addEventListener("scroll",r),document.addEventListener("click",o,!1)}var Br=null,qr=[],Fr="docList-mermaid-driver",Wr="docList-menu-driver",Yr="docList-pc-menu-driver";async function Xr(t){const n=document.querySelectorAll("code.language-mermaid"),{showDriverGuide:i,isPrintPreview:r=!1,chartConfig:o,defaultCollapsed:a=!0,cdn:s}=t||{};for(const l of n){const t=l.parentElement;if(!t)continue;const n=l.textContent.trim(),c=document.createElement("div");c.className="mermaid-react-root",t.replaceWith(c),Q(c).render(/* @__PURE__ */z(e.StrictMode,{children:/* @__PURE__ */z(Ti,{children:/* @__PURE__ */z(Vr,{source:n,enablePanzoom:!0,showDownload:!0,showSourceView:!0,showCollapse:!0,chartConfig:o,defaultCollapsed:a,isPrintPreview:r,minHeight:200,showDriverGuide:i,cdn:s})})}))}}var Ur=/* @__PURE__ */V({default:()=>Vr,renderMermaid:()=>Gr,renderMermaidWithControls:()=>Xr}),Vr=n(function({source:e,debounceMs:t=300,enablePanzoom:n=!0,showDownload:c=!0,showSourceView:d=!1,showCollapse:u=!1,defaultCollapsed:h=!0,className:p="",minHeight:m=200,showDriverGuide:f,isPrintPreview:v=!1,chartConfig:g,cdn:b}){const{isDark:w}=function(){const e=r(Ai);if(!e)throw new Error("useTheme must be used within a ThemeProvider");return e}(),{svg:y,error:k,loading:x}=function({source:e,debounceMs:t=300,isDark:n,chartConfig:i,cdn:r}){const{mermaid:a,loading:c}=function(e){const[t,n]=l(null),[i,r]=l(!0),[a,s]=l(null);return o(()=>{let t=!1;return function(e){return Ii||(Ii=new Promise((t,n)=>{if(window.mermaid)return void t(window.mermaid);const i=document.createElement("script");i.src=function(e,t){return t?.[e]??Li[e]??""}("mermaid",e),i.onload=()=>t(window.mermaid),i.onerror=()=>n(/* @__PURE__ */new Error("Mermaid 脚本加载失败")),document.head.appendChild(i)})),Ii}(e).then(e=>{t||(n(()=>e),r(!1))}).catch(e=>{t||(s(e),r(!1))}),()=>{t=!0}},[]),{mermaid:t,loading:i,error:a}}(r),[d,u]=l(""),[h,p]=l(""),m=s(0);return o(()=>{a&&a.initialize({startOnLoad:!1,theme:n?"dark":"default",securityLevel:"loose"})},[a,n]),o(()=>{if(!a)return;const n=(e||"").trim();if(!n)return u(""),void p("");p("");const r=++m.current,o=setTimeout(async()=>{const e="mermaid-render-"+Pi++;try{const{svg:t}=await a.render(e,i?i(n):n);if(r!==m.current)return;u(t),p("")}catch(t){if(r!==m.current)return;const e=t instanceof Error?t.message:String(t);p(e?.split("\n")[0]||e)}finally{const t=document.getElementById(e)||document.getElementById(`d${e}`);t&&t.parentNode&&t.parentNode.removeChild(t)}},t);return()=>clearTimeout(o)},[e,n,a,t,i]),{svg:d,error:h,loading:c}}({source:e,debounceMs:t,isDark:w,chartConfig:g,cdn:b}),C=s(null),_=s(null),{isFullscreen:E,isCollapsed:A,setIsCollapsed:T,showSource:M,setShowSource:O,isMinimize:L,setIsMinimize:I,isPanzoomEnabled:P,setIsPanzoomEnabled:N,toggleFullscreen:D}=function({showCollapse:e,showSourceView:t,defaultCollapsed:n,isPrintPreview:r,svg:a,error:s,loading:c,wrapperRef:d}){const[u,h]=l(!1),[p,m]=l(n),[f,v]=l(!1),[g,b]=l(t),[w,y]=l(!1);return o(()=>{r&&a&&!s&&!c&&m(!1)},[r,a,s,c]),o(()=>{const t=()=>{h(!!document.fullscreenElement),!document.fullscreenElement&&e&&m(!0)};return r||document.addEventListener("fullscreenchange",t),()=>document.removeEventListener("fullscreenchange",t)},[e,r]),{isFullscreen:u,setIsFullscreen:h,isCollapsed:p,setIsCollapsed:m,showSource:f,setShowSource:v,isMinimize:g,setIsMinimize:b,isPanzoomEnabled:w,setIsPanzoomEnabled:y,toggleFullscreen:i(()=>{document.fullscreenElement?document.exitFullscreen():d.current?.requestFullscreen?.()},[d])}}({showCollapse:u,showSourceView:d,defaultCollapsed:h,isPrintPreview:v,svg:y,error:k,loading:x,wrapperRef:C}),R=n&&(E||!A||!u),H=R&&P,B=function({contentRef:e,wrapperRef:t,enabled:n,svg:i,isFullscreen:r}){const a=s(null);return o(()=>{if(!n||!e.current||!i)return void(a.current&&(a.current.destroy(),a.current=null));a.current&&(a.current.destroy(),a.current=null);const r=er(e.current,{maxScale:5,minScale:.1,startScale:1,contain:"outside"});a.current={destroy:()=>r.destroy(),zoomWithWheel:r.zoomWithWheel,zoomIn:()=>r.zoomIn(),zoomOut:()=>r.zoomOut(),reset:()=>r.reset()};const o=t.current,s=a.current.zoomWithWheel;return o?.addEventListener("wheel",s),()=>{o?.removeEventListener("wheel",s),a.current&&(a.current.destroy(),a.current=null)}},[i,r,n,e,t]),a}({contentRef:_,wrapperRef:C,enabled:H&&!!y&&!v,svg:y,isFullscreen:E});o(()=>{f&&!v&&function(e){if(qr=e,Br)return;const t=e=>{const n=qr;if(e>=n.length)return void(Br=null);const i=n[e];if(i.condition&&!i.condition())return void t(e+1);i?.onOpen?.();const r=function(e={}){let t=function(e={}){let t=function(){let e={};function t(t={}){e={animate:!0,duration:400,allowClose:!0,allowScroll:!0,overlayClickBehavior:"close",overlayOpacity:.7,smoothScroll:!1,disableActiveInteraction:!1,advanceOnClick:!1,skipMissingElement:!1,waitForElement:0,showProgress:!1,stagePadding:10,stageRadius:5,popoverOffset:10,showButtons:["next","previous","close"],disableButtons:[],overlayColor:"#000",...t}}return t(),{getConfig:t=>t?e[t]:e,configure:t}}();t.configure(e);let n,i=function(){let e={};return{getState:t=>t?e[t]:e,setState:(t,n)=>{e[t]=n},resetState:function(){e={}}}}(),r=function(){let e={};return{listen:function(t,n){e[t]=n},emit:function(t){e[t]?.()},reset:function(){e={}}}}();return{getConfig:t.getConfig,setConfig:t.configure,getState:i.getState,setState:i.setState,resetState:i.resetState,listen:r.listen,emit:r.emit,resetEmitter:r.reset,getDriver:()=>n,setDriver:e=>{n=e},getHookOpts:e=>{let r=e||i.getState();return{config:t.getConfig(),state:r,driver:n,index:r.activeIndex}}}}(e);function n(){t.getConfig("allowClose")&&h()}function i(){let e=t.getConfig("overlayClickBehavior");if(t.getConfig("allowClose")&&"close"===e)h();else{if("function"==typeof e){let n=t.getState("__activeStep");return void e(t.getState("__activeElement"),n,t.getHookOpts())}if("nextStep"===e){let e=t.getState("activeStep"),n=t.getState("activeElement"),i=$r(t,e);if(i)return void i(n,e,t.getHookOpts());r()}}}function r(){let e=t.getState("activeIndex"),n=t.getConfig("steps")||[];if(void 0===e)return;let i=e+1;n[i]?u(i):h()}function o(){let e=t.getState("activeIndex"),n=t.getConfig("steps")||[];if(void 0===e)return;let i=e-1;n[i]?u(i):h()}function a(){if(t.getState("__transitionCallback"))return;let e=t.getState("__activeStep");if(!e||!(e.advanceOnClick??t.getConfig("advanceOnClick")))return;let n=t.getState("__activeElement"),i=$r(t,e);i?i(n,e,t.getHookOpts()):r()}function s(){if(t.getState("__transitionCallback"))return;let e=t.getState("activeIndex"),n=t.getState("__activeStep"),i=t.getState("__activeElement");if(void 0===e||void 0===n||!(t.getConfig("steps")||[])[e-1])return;let r=zr(t,n);if(r)return r(i,n,t.getHookOpts());o()}function l(){if(t.getState("__transitionCallback"))return;let e=t.getState("activeIndex"),n=t.getState("__activeStep"),i=t.getState("__activeElement");if(void 0===e||void 0===n)return;let o=$r(t,n);if(o)return o(i,n,t.getHookOpts());r()}function c(){t.getState("isInitialized")||(t.setState("isInitialized",!0),document.body.classList.add("driver-active",t.getConfig("animate")?"driver-fade":"driver-simple"),t.getConfig("allowScroll")||document.body.classList.add("driver-no-scroll"),document.body.style.setProperty("--driver-animation-duration",`${t.getConfig("duration")||400}ms`),Hr(t),t.listen("overlayClick",i),t.listen("activeElementClick",a),t.listen("escapePress",n),t.listen("closeClick",n),t.listen("arrowLeftPress",s),t.listen("arrowRightPress",l))}function d(){let e=t.getState("__pendingWaitCancel");e&&(t.setState("__pendingWaitCancel",void 0),e())}function u(e=0,n=!1){d();let i=t.getConfig("steps");if(!i)return void h();if(!i[e])return void h();let r=i[e],o=r.waitForElement??t.getConfig("waitForElement")??0;if(!n&&o>0&&r.element&&!gr(r.element))return void function(e,n,i){let r=()=>{o.disconnect(),window.clearTimeout(a),t.setState("__pendingWaitCancel",void 0),i()},o=new MutationObserver(()=>{gr(e.element)&&r()}),a=window.setTimeout(r,n);t.setState("__pendingWaitCancel",()=>{o.disconnect(),window.clearTimeout(a)}),o.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0})}(r,o,()=>u(e,!0));if(Ir(t,r)){let n=t.getState("activeIndex"),r="number"==typeof n&&e<n?-1:1;return void(i[e+r]?u(e+r):1===r&&h())}t.setState("__activeOnDestroyed",document.activeElement),t.setState("activeIndex",e);let a=i[e+1];Dr(t,function(e,t,n){let i=e.getConfig("steps")||[],r=i[t],o=r.popover||{},a=void 0!==Pr(e,t+1,1),s=void 0!==Pr(e,t-1,-1),l=o.doneBtnText||e.getConfig("doneBtnText")||"Done",c=e.getConfig("allowClose"),d=void 0===o.showProgress?e.getConfig("showProgress"):o.showProgress,u=(o.progressText||e.getConfig("progressText")||Lr).replace("{{current}}",`${t+1}`).replace("{{total}}",`${i.length}`),h=o.showButtons||e.getConfig("showButtons"),p=["next","previous",...c?["close"]:[]].filter(e=>!h?.length||h.includes(e)),m=o.onNextClick||e.getConfig("onNextClick"),f=o.onPrevClick||e.getConfig("onPrevClick"),v=o.onCloseClick||e.getConfig("onCloseClick");return{...r,popover:{showButtons:p,nextBtnText:a?void 0:l,disableButtons:[...s?[]:["previous"]],showProgress:d,onNextClick:m||n.onNextClick,onPrevClick:f||n.onPrevClick,onCloseClick:v||n.onCloseClick,...o,progressText:u}}}(t,e,{onNextClick:()=>{a?u(e+1):h()},onPrevClick:()=>{u(e-1)},onCloseClick:()=>{h()}}))}function h(e=!0){let n=t.getState("__activeElement"),i=t.getState("__activeStep"),r=t.getState("__activeOnDestroyed"),o=t.getConfig("onDestroyStarted");if(e&&o)return void o(n&&"driver-dummy-element"!==n?.id?n:void 0,i,t.getHookOpts());let a=i?.onDeselected||t.getConfig("onDeselected"),s=t.getConfig("onDestroyed");document.body.classList.remove("driver-active","driver-fade","driver-simple","driver-no-scroll"),document.body.style.removeProperty("--driver-animation-duration"),d(),function(e){let t=e.getState("__events");t&&(window.removeEventListener("keyup",t.onKeyup),window.removeEventListener("keydown",t.onKeydown),window.removeEventListener("resize",t.onResize),window.removeEventListener("scroll",t.onScroll),document.removeEventListener("click",t.onClick,!1))}(t),Cr(t.getState("popover")),document.getElementById("driver-dummy-element")?.remove(),document.querySelectorAll(".driver-active-element").forEach(e=>{let t=e.parentElement;t&&t!==document.body&&t.classList.remove("driver-active-element-parent","driver-active-element-parent-no-scroll"),e.classList.remove("driver-active-element","driver-no-interaction"),e.removeAttribute("aria-haspopup"),e.removeAttribute("aria-expanded"),e.removeAttribute("aria-controls")}),Or(t),t.resetEmitter();let l=t.getState();if(t.resetState(),n&&i){let e="driver-dummy-element"===n.id;a&&a(e?void 0:n,i,t.getHookOpts(l)),s&&s(e?void 0:n,i,t.getHookOpts(l))}r&&r.focus()}let p={isActive:()=>t.getState("isInitialized")||!1,refresh:()=>Rr(t),drive:(e=0)=>{c(),u(e)},setConfig:t.setConfig,setSteps:e=>{d(),t.resetState(),t.setConfig({...t.getConfig(),steps:e})},getConfig:t.getConfig,getState:t.getState,getActiveIndex:()=>t.getState("activeIndex"),isFirstStep:()=>{let e=t.getState("activeIndex");return void 0!==e&&void 0===Pr(t,e-1,-1)},isLastStep:()=>{let e=t.getState("activeIndex");return void 0!==e&&void 0===Pr(t,e+1,1)},getActiveStep:()=>t.getState("activeStep"),getActiveElement:()=>t.getState("activeElement"),getPreviousElement:()=>t.getState("previousElement"),getPreviousStep:()=>t.getState("previousStep"),getNextStep:()=>{let e=t.getConfig("steps")||[],n=t.getState("activeIndex");if(void 0===n)return;let i=Pr(t,n+1,1);return void 0===i?void 0:e[i]},moveNext:r,movePrevious:o,moveTo:function(e){(t.getConfig("steps")||[])[e]?u(e):h()},hasNextStep:()=>{let e=t.getState("activeIndex");return void 0!==e&&void 0!==Pr(t,e+1,1)},hasPreviousStep:()=>{let e=t.getState("activeIndex");return void 0!==e&&void 0!==Pr(t,e-1,-1)},highlight:e=>{c(),Dr(t,{...e,popover:e.popover?{showButtons:[],showProgress:!1,progressText:"",...e.popover}:void 0})},destroy:()=>{h(!1)}};return t.setDriver(p),p}({nextBtnText:"下一步",prevBtnText:"上一步",doneBtnText:"我知道了",showProgress:!0,allowClose:!1,progressText:"第 {{current}} 步,共 {{total}} 步",onDestroyed:()=>{Br=null,t(e+1)},steps:i.steps.filter(e=>!1!==e.isShow)||[]});Br=r,r.drive()};t(0)}(function(e,t){return[{id:Wr,condition:()=>!localStorage[Wr]&&e&&!(0,pe.IsPC)()&&"true"!==localStorage.docListMenuVisible,onOpen:()=>{localStorage[Wr]="1"},steps:[{element:".docList-menu-anchor",popover:{title:"大纲",description:"点击此处您可查看大纲"}},{element:".docList-menu-list",popover:{title:"列表",description:"点击此处您可查看当前分类下文章列表"}},{element:".docList-menu-copyHtml",popover:{title:"复制",description:"点击此处您可复制 HTML 渲染的格式内容"}},{element:".docList-menu-copyMarkdown",popover:{title:"复制",description:"点击此处您可复制 markdown 源码"}},{element:".docList-menu-print",popover:{title:"打印",description:"点击此处您可跳转至打印页面,输出为PDF"}}]},{id:Yr,condition:()=>!localStorage[Yr]&&(0,pe.IsPC)()&&e,onOpen:()=>{localStorage[Yr]="1"},steps:[{element:".docList-menu-copyHtml",popover:{title:"复制",description:"点击此处您可复制 HTML 渲染的格式内容"}},{element:".docList-menu-copyMarkdown",popover:{title:"复制",description:"点击此处您可复制 markdown 源码"}},{element:".docList-menu-print",popover:{title:"打印",description:"点击此处您可跳转至打印页面,输出为PDF"}},{element:".docList-menu-mermaid-collapse",popover:{title:"展开收起mermaid",description:"点击此处按钮可一键展开收起mermaid图表"},isShow:t}]},{id:Fr,condition:()=>!(!t||localStorage[Fr]||!e),onOpen:()=>{localStorage[Fr]="1"},steps:[{element:".mermaid-react-root",popover:{title:"mermaid",description:"恭喜您解锁 Mermaid 渲染图表"}},{element:".mermaid-react-root .mermaid-minimize-btn",popover:{title:"缩略图",description:"点击此处按钮可查看缩略图"}},{element:".mermaid-react-root .mermaid-fullscreen-btn",popover:{title:"全屏",description:"点击此处按钮可切换为全屏展示"}},{element:".mermaid-react-root .mermaid-showcode-btn",popover:{title:"源码",description:"点击此处按钮查看源码弹窗"}},{element:".mermaid-react-root .mermaid-collapsed-btn",popover:{title:"展开",description:"点击此处按钮展开大图"}}]}]}(d,!!y))},[y,f,v,d]);const q=function(e){const t=e.match(/---\s*\n\s*title:\s*(.+)\s*\n\s*---/);return t?t[1].trim():"mermaid 图表"}(e),F=i(()=>{y?function(e,t="image"){yi(new Blob([e],{type:"image/svg+xml;charset=utf-8"}),`${t}.svg`)}(y,q):se.warning("暂无图表")},[y,q]),W=i(()=>{y?function(e,t="image",n=2){const{w:i,h:r}=function(e){const t=e.match(/viewBox=["']?([^"']+)["']/i);let n=0,i=0;if(t){const e=t[1].split(/[\s,]+/).map(Number);4===e.length&&(n=e[2],i=e[3])}const r=e.match(/width=["']?\s*([\d.]+)\s*(?:px|pt|cm|mm|in|%)*["']/i),o=e.match(/height=["']?\s*([\d.]+)\s*(?:px|pt|cm|mm|in|%)*/i),a=r?parseFloat(r[1]):0,s=o?parseFloat(o[1]):0;return n&&i?{w:n,h:i}:{w:a||n||800,h:s||i||600}}(e),o=function(e){return`data:image/svg+xml;base64,${btoa(unescape(encodeURIComponent(e)))}`}(e),a=new Image;a.crossOrigin="anonymous",a.src=o,a.onload=()=>{const e=document.createElement("canvas");e.width=Math.max(1,Math.round(i*n)),e.height=Math.max(1,Math.round(r*n));const o=e.getContext("2d");o.fillStyle="#ffffff",o.fillRect(0,0,e.width,e.height),o.scale(n,n),o.drawImage(a,0,0,i,r),e.toBlob(e=>{e?yi(e,`${t}.png`):se.error("PNG 生成失败")},"image/png")},a.onerror=()=>{se.error("PNG 生成失败:图片加载失败")}}(y,q,2):se.warning("暂无图表")},[y,q]),Y=a(()=>({items:[{key:"svg",label:"下载 SVG"},{key:"png",label:"下载 PNG"}],onClick:({key:e})=>"svg"===e?F():W()}),[F,W]),X=!!y;/* @__PURE__ */
|
|
12
12
|
return j("div",{ref:C,className:te.bind(ar)(E?"mermaid-wrapper-fullscreen":"",u?"mermaid-wrapper":"",A&&u&&!L?"mermaid-collapsed":"",p,L&&A&&!E?"mermaid-mini":"",v?"print-preview":""),style:{minHeight:L?0:m,position:"relative",height:"100%"},children:[!v&&/* @__PURE__ */j($,{children:[d&&/* @__PURE__ */j("div",{className:"mermaid-title",children:[/* @__PURE__ */j("span",{className:"mermaid-title-tag",children:[/* @__PURE__ */z("img",{src:"data:image/svg+xml,%3csvg%20t='1784097187016'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='5199'%20width='200'%20height='200'%3e%3cpath%20d='M0%200m125.754386%200l772.491228%200q125.754386%200%20125.754386%20125.754386l0%20772.491228q0%20125.754386-125.754386%20125.754386l-772.491228%200q-125.754386%200-125.754386-125.754386l0-772.491228q0-125.754386%20125.754386-125.754386Z'%20fill='%23FC366E'%20p-id='5200'%3e%3c/path%3e%3cpath%20d='M921.150877%20174.547088a417.091368%20417.091368%200%200%200-409.168842%20274.198456%20417.235088%20417.235088%200%200%200-409.150877-274.198456%20417.360842%20417.360842%200%200%200%20181.625263%20361.992982%20223.914667%20223.914667%200%200%201%2097.010526%20185.038597v128.143719h261.084071v-128.07186a223.914667%20223.914667%200%200%201%2097.010526-185.038596%20417.181193%20417.181193%200%200%200%20181.553403-361.921123z'%20fill='%23FFFFFF'%20p-id='5201'%3e%3c/path%3e%3c/svg%3e",alt:""}),/* @__PURE__ */z("span",{className:"mermaid-title-text",children:"Mermaid"})]}),q]}),!X&&/* @__PURE__ */j("div",{className:"mermaid-toolbar-loading",children:[/* @__PURE__ */z(S,{})," "]}),X&&/* @__PURE__ */z(or,{showSourceView:d,showCollapse:u,showDownload:c,isFullscreen:E,isCollapsed:A,isMinimize:L,isPanzoomActive:H,isPanzoomAvailable:R,isPanzoomEnabled:P,setIsPanzoomEnabled:N,setIsMinimize:I,setIsCollapsed:T,setShowSource:O,toggleFullscreen:()=>{B.current?.reset(),D()},downloadMenu:Y,panzoomRef:B})]}),k&&/* @__PURE__ */j("div",{className:ar.errorTip,children:["⚠️ ",k]}),
|
|
13
13
|
/* @__PURE__ */j("div",{className:`${ar.previewArea} ${H?"":ar.previewAreaDisabled}`,style:{minHeight:X?"auto":m},children:[/* @__PURE__ */z("div",{ref:_,className:ar.previewContent,dangerouslySetInnerHTML:{__html:y||""}}),(!X&&!k||x)&&/* @__PURE__ */z("div",{className:ar.emptyTip,children:e?.trim()?"渲染中...":"← 输入 Mermaid 源码"})]}),d&&/* @__PURE__ */z(Oi,{open:M,title:"Mermaid 源码",className:"mermaid-code-modal",width:800,onCancel:()=>O(!1),footer:null,children:/* @__PURE__ */z(bi,{isShowCollapsed:!1,isSlotMermaid:!1,codeType:"mermaid",content:e})})]})}),Gr=e=>/* @__PURE__ */z(Ti,{children:/* @__PURE__ */z(Vr,{...e})}),Kr=bi;export{Kr as default,si as initHighlighter,wi as languagesCommon,ai as markdownFormat,Gr as renderMermaid};
|
package/package.json
CHANGED