-
Notifications
You must be signed in to change notification settings - Fork 3
/
index-5c94bee3.js
38 lines (38 loc) · 124 KB
/
index-5c94bee3.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*!
* .::::.
* .::::::::.
* ::::::::::: winsay v2.0.21
* ..:::::::::::'
* '::::::::::::'
* .::::::::::
* '::::::::::::::..
* ..::::::::::::.
* .''::::::::::::::::
* ::::'':::::::::' .:::.
* ::::' ':::::' .::::::::.
* .::::' :::: .:::::::'::::.
* .:::' ::::: .:::::::::' ':::::.
* .::' :::::.:::::::::' ':::::.
* .::' ::::::::::::::' ''::::.
* ...::: ::::::::::::' ''::.
* '''' ':. ':::::::::' ::::..
* '.:::::' ':'''''..
*
*
* https://github.com/Hi-Windom/winsay
* QQ 694357845
*
* For the brave souls who get this far: You are the chosen ones,
* the valiant knights of programming who toil away, without rest,
* fixing our most awful code. To you, true saviors, kings of men,
* I say this: never gonna give you up, never gonna let you down,
* never gonna run around and desert you. Never gonna make you cry,
* never gonna say goodbye. Never gonna tell a lie and hurt you.
*
*/
import{p as e,k as n,q as a,v as s,u as l,t,l as i,w as o,r as _,R as c,c as r,x as d,y as p,z as b,B as f,C as u,D as v,T as y,E as m,m as C,F as w,G as x,i as S,H as g,J as h}from"./localforage-8485d017.js";async function k(){await e("SC_winsay_cp_editor__block__popover--open__PinSense",(async function(e){if(n(e))a("--SCC-Variables-block__popover--open__PinSense_1","unset"),a("--SCC-Variables-block__popover--open__PinSense_2","var(--b3-dialog-shadow)");else switch(e){case"2":a("--SCC-Variables-block__popover--open__PinSense_2","var(--b3-theme-secondary) -2px -2px 5.8px 1px,var(--b3-theme-primary) 0 0 0 1px,var(--b3-theme-primary-light) 0 0 3px 1px,var(--b3-theme-primary-lighter) 0 0 13px 2px,var(--b3-theme-primary-lightest) 0 0 2px 4px"),a("--SCC-Variables-block__popover--open__PinSense_1","unset");break;case"1":a("--SCC-Variables-block__popover--open__PinSense_2","var(--b3-dialog-shadow)"),a("--SCC-Variables-block__popover--open__PinSense_1","var(--b3-theme-surface-lighter)")}})),await e("SC_winsay_cp_editor__BlockTable_MinWidth",(async function(e){n(e)?a("--SCC-Variables-BlockTable-minWidth","unset"):a("--SCC-Variables-BlockTable-minWidth",e)})),await e("SC_winsay_cp_editor__BlockTable_MaxWidth",(async function(e){n(e)?a("--SCC-Variables-BlockTable-maxWidth","unset"):a("--SCC-Variables-BlockTable-maxWidth",e)})),await e("SC_winsay_cp_editor__BlockTable_FontSize",(async function(e){n(e)?a("--SCC-Variables-BlockTable-fontSize","unset"):a("--SCC-Variables-BlockTable-fontSize",e)})),await e("SC_winsay_cp_editor__BlockTable_TextAlign",(async function(e){n(e)?a("--SCC-Variables-BlockTable-text_align","unset"):a("--SCC-Variables-BlockTable-text_align",e)})),await s(document.getElementById("SC_winsay_cp_editor__BlockTable_Margin"),(()=>{a("--SCC-Variables-BlockTable-margin","0 auto")}),(()=>{a("--SCC-Variables-BlockTable-margin","inherit")})),await e("SC_winsay_cp_editor__Block-List-LightUpLineMode",(async function(e){if(n(e))a("--SCC-Variables-BlockList__beforeColor","var(--b3-theme-surface-lighter)");else switch(e){case"1":a("--SCC-Variables-BlockList__beforeColor","var(--b3-theme-background-light)"),l("BlockListHoverALL","");break;case"2":a("--SCC-Variables-BlockList__beforeColor","var(--b3-theme-background-light)"),l("BlockListHoverALL",`${t}style/sweet/sugar/editor/Block-List-HoverALL.css`);break;case"3":a("--SCC-Variables-BlockList__beforeColor","var(--b3-scroll-color)");break;default:a("--SCC-Variables-BlockList__beforeColor","var(--b3-theme-surface-lighter)")}})),await e("SC_winsay_cp_editor__layout-center_protyle-toolbar_position",(async function(e){const a=n(e)?"":e;l("layout-center_protyle-toolbar_position",`${t}style/sweet/sugar/editor/${a}`)})),await e("SC_winsay_cp_editor__protyle-attr-scale",(async function(e){n(e)||a("--SCC-Variables-protyle-attr-scale",e)})),await e("SC_winsay_cp_editor__DocWidthMode",(async function(e){clearInterval(window.winsay.storage.It_DocWidthMode),n(e)?window.winsay.storage.SC_winsay_cp_editor__DocWidthMode__previousValue!==e&&e&&""!==e&&window.location.reload():(window.winsay.storage.SC_winsay_cp_editor__DocWidthMode__previousValue=e,window.winsay.storage.It_DocWidthMode=setInterval((()=>{const n=document.querySelectorAll("#layouts .layout__center .protyle-wysiwyg.protyle-wysiwyg--attr"),a=document.querySelectorAll("#layouts .layout__center .protyle-title.protyle-wysiwyg--attr");n.forEach((function(n){n.style.setProperty("padding",e),n.style.setProperty("margin","0 auto"),"1in 0.5in"===e?n.style.setProperty("width","800px"):"0.42in"===e||"0.41in"===e?n.style.setProperty("width","1118px"):"0.40in"===e?n.style.setProperty("width","1598px"):n.style.removeProperty("width")})),a.forEach((function(n){n.style.setProperty("margin",e)}))}),1e3))})),await e("SC_winsay_cp_editor__Doc_bgColor",(async function(e){clearInterval(window.winsay.storage.SC_winsay_cp_T__t2),n(e)?window.winsay.storage.SC_winsay_cp_editor__DocWidthMode__previousValue!==e&&e&&""!==e&&window.location.reload():window.winsay.storage.SC_winsay_cp_T__t2=setInterval((()=>{document.querySelectorAll("#layouts .layout__center .protyle-wysiwyg.protyle-wysiwyg--attr").forEach((n=>{n.style.setProperty("background-color",e)}))}),1e3)})),await e("SC_winsay_cp_editor__ListAutoIndent_mode",(async function(e){n(e)||"2"!==e?n(e)||"1"!==e?(a("--SCC-Variables-List-Item-margin","18px"),a("--SCC-Variables-List-Item-padding","16px")):(a("--SCC-Variables-List-Item-margin","max(min(18px,1cqw),8px)"),a("--SCC-Variables-List-Item-padding","min(16px,0.58cqw)")):(a("--SCC-Variables-List-Item-margin","max(min(18px,0.58em),8px)"),a("--SCC-Variables-List-Item-padding","min(16px,0.31em)"))})),await e("SC_winsay_cp_editor__img-bg-color",(async function(e){if(!n(e))if("true"===await i.getItem("SC_winsay_cp_editor__img-bg-color_always"))a("--SCC-Variables-IMG-bg-color_hover",e),a("--SCC-Variables-IMG-bg-color",e);else a("--SCC-Variables-IMG-bg-color_hover",e),a("--SCC-Variables-IMG-bg-color","transparent")})),await s(document.getElementById("SC_winsay_cp_editor__img-bg-color_always"),(async()=>{const e=await o("SC_winsay_cp_editor__img-bg-color");a("--SCC-Variables-IMG-bg-color_hover",e),a("--SCC-Variables-IMG-bg-color",e)}),(async()=>{const e=await o("SC_winsay_cp_editor__img-bg-color");a("--SCC-Variables-IMG-bg-color_hover",e),a("--SCC-Variables-IMG-bg-color","transparent")})),await s(document.getElementById("SC_winsay_cp_editor__HintHint-index"),(()=>{l("HintHint-index",`${t}style/sweet/sugar/editor/HintHint-index.css`)}),(()=>{_(`${t}style/sweet/sugar/editor/HintHint-index.css`,"css")})),await s(document.getElementById("SC_winsay_cp_editor__LH_Adaptive"),(()=>{l("LH_Adaptive",`${t}style/sweet/LH-Adaptive.css`),document.getElementById("BP__SC_winsay_cp_editor__LH_Adaptive").classList.add("fn__none")}),(()=>{_(`${t}style/sweet/LH-Adaptive.css`,"css"),document.getElementById("BP__SC_winsay_cp_editor__LH_Adaptive").classList.remove("fn__none")})),await s(document.getElementById("SC_winsay_cp_editor__BreadcrumbsMode-Adaptive"),(()=>{l("docBreadcrumb_Adaptive",`${t}style/sweet/MI-Breadcrumb-Adaptive.css`)}),(()=>{_(`${t}style/sweet/MI-Breadcrumb-Adaptive.css`,"css")})),await s(document.getElementById("SC_winsay_cp_editor__AreoBg-Filter"),(()=>{l("AreoBg-Filter",`${t}style/sweet/AreoBg-Filter.css`)}),(()=>{_(`${t}style/sweet/AreoBg-Filter.css`,"css")})),await e("SC_winsay_cp_editor__LH_Adaptive__pIndent",(async function(e){if(!n(e)){a("--SCC-Variables-MI-Doc-pIndent",`${c(-2,e,12)}rem`);document.getElementById("SC_winsay_cp_editor__LH_Adaptive__pIndent").value=c(-2,e,12).toString()}})),await e("SC_winsay_cp_editor__dynamicLoadBlocks",(async function(e){if(!n(e)){window.siyuan.config.editor.dynamicLoadBlocks=c(48,e,1024);document.getElementById("SC_winsay_cp_editor__dynamicLoadBlocks").value=c(48,e,1024).toString()}})),await e("SC_winsay_cp_editor__LH_Adaptive__LH",(async function(e){if(!n(e)){a("--SCC-Variables-MI-Doc-LH",`${e}`),document.getElementById("SC_winsay_cp_editor__LH_Adaptive__LH__label").setAttribute("aria-label",`${e}`),await i.setItem("SC_winsay_cp_editor__LH_Adaptive__LH__label",e);const n=document.querySelector("#SC-CP");"body--mobile"===r&&"none"!==n.style.display&&d(`新值:${e}`)}})),await e("SC_winsay_cp_editor__LH_Adaptive__marginTop",(async function(e){if(!n(e)){a("--SCC-Variables-MI-Doc-marginTop",c(10,e,500)/100+"rem");document.getElementById("SC_winsay_cp_editor__LH_Adaptive__marginTop").value=c(10,e,500).toString()}})),await e("SC_winsay_cp_editor__LH_Adaptive__marginBottom",(async function(e){if(!n(e)){a("--SCC-Variables-MI-Doc-marginBottom",c(10,e,500)/100+"rem");document.getElementById("SC_winsay_cp_editor__LH_Adaptive__marginBottom").value=c(10,e,500).toString()}})),await e("SC_winsay_cp_editor__LH_Adaptive__lSpacing",(async function(e){if(!n(e)){a("--SCC-Variables-MI-Doc-lSpacing",`${e}rem`),document.getElementById("SC_winsay_cp_editor__LH_Adaptive__lSpacing__label").setAttribute("aria-label",`${e}`),await i.setItem("SC_winsay_cp_editor__LH_Adaptive__lSpacing__label",e);const n=document.querySelector("#SC-CP");"body--mobile"===r&&"none"!==n.style.display&&d(`新值:${e}`)}})),await e("SC_winsay_cp_editor__BlockScrollBar-opacity",(async function(e){if(!n(e)){a("--SCC-Variables-MI-BlockScrollBar-opacity-hover",e);const n=document.querySelector("#editor .protyle-scroll");switch(a("--SCC-Variables-MI-BlockScrollBar-display","block"),e){case"0.88":n?l("Android-mobile-BlockScrollBarShow",`${t}style/sweet/sugar/editor/Android-mobile-BlockScrollBarFocusShow.css`):a("--SCC-Variables-MI-BlockScrollBar-opacity","0");break;case"1":n?l("Android-mobile-BlockScrollBarShow",`${t}style/sweet/sugar/editor/Android-mobile-BlockScrollBarAlwaysShow.css`):a("--SCC-Variables-MI-BlockScrollBar-opacity","0.58");break;case"-1":a("--SCC-Variables-MI-BlockScrollBar-display","none");break;default:a("--SCC-Variables-MI-BlockScrollBar-opacity","0");const e=document.querySelector("#Android-mobile-BlockScrollBarShow");e&&e.remove()}}})),await e("SC_winsay_cp_editor__BlockScrollBar_Hposition",(async function(e){if(!n(e))switch(e){case"L31":a("--SCC-Variables-MI-BlockScrollBar-right","unset"),a("--SCC-Variables-MI-BlockScrollBar-left","31px"),a("--SCC-Variables-MI-BlockScrollBar-tooltips-top","-100%");break;case"L13":a("--SCC-Variables-MI-BlockScrollBar-right","unset"),a("--SCC-Variables-MI-BlockScrollBar-left","13px"),a("--SCC-Variables-MI-BlockScrollBar-tooltips-top","-100%");break;case"R31":a("--SCC-Variables-MI-BlockScrollBar-right","31px"),a("--SCC-Variables-MI-BlockScrollBar-left","unset"),a("--SCC-Variables-MI-BlockScrollBar-tooltips-top","100%");break;default:a("--SCC-Variables-MI-BlockScrollBar-right","13px"),a("--SCC-Variables-MI-BlockScrollBar-left","unset"),a("--SCC-Variables-MI-BlockScrollBar-tooltips-top","100%")}})),await e("SC_winsay_cp_editor__Block-Inline-link__block-ref-content",(async function(e){if(n(e))a("--SCC-Variables-Block-Inline-link__block-ref__before","none"),a("--SCC-Variables-Block-Inline-link__block-ref__after","none");else{const n=e.split(" ")[0],s=e.split(" ")[1];a("--SCC-Variables-Block-Inline-link__block-ref__before",`'${n}'`),a("--SCC-Variables-Block-Inline-link__block-ref__after",`'${s}'`)}})),await e("SC_winsay_cp_editor__Block-List-Task__item-done__text-color",(async function(e){n(e)||"auto"!==e?(a("--SCC-Variables-Block-List-Task__item-done-color","var(--b3-theme-on-background)"),a("--SCC-Variables-Block-List-Task__item-done-backdrop-filter","none")):(a("--SCC-Variables-Block-List-Task__item-done-color","var(--b3-theme-secondary)"),a("--SCC-Variables-Block-List-Task__item-done-backdrop-filter","brightness(1.58) blur(13px)"))})),await s(document.getElementById("SC_winsay_cp_editor__FocusEnhanc_inlineCode"),(()=>{a("--SCC-Variables-Block-Inline-span__code__before-content","'<'"),a("--SCC-Variables-Block-Inline-span__code__after-content","'>'")}),(()=>{p("--SCC-Variables-Block-Inline-span__code__before-content"),p("--SCC-Variables-Block-Inline-span__code__after-content")})),await s(document.getElementById("SC_winsay_cp_editor__TapAlert_docReadOnly"),(()=>{window.winsay.cp.TapAlert_docReadOnly=!0}),(()=>{window.winsay.cp.TapAlert_docReadOnly=!1})),await s(document.getElementById("SC_winsay_cp_editor__FocusEnhanc_refWave"),(()=>{a("--SCC-Variables-span-ref-animation-icon","var(--SCC-baseComponent-span-ref-animation-icon)")}),(()=>{p("--SCC-Variables-span-ref-animation-icon")})),await s(document.getElementById("SC_winsay_cp_editor__FocusEnhanc_NodeHeading"),(()=>{l("FocusEnhanc_NodeHeading",`${t}style/sweet/sugar/editor/NodeHeading-FocusEnhanc.css`)}),(()=>{_(`${t}style/sweet/sugar/editor/NodeHeading-FocusEnhanc.css`,"css")})),await s(document.getElementById("SC_winsay_cp_editor__FocusEnhanc_DocNameArea"),(()=>{l("FocusEnhanc_DocNameArea",`${t}style/sweet/sugar/editor/MI-Dynamic.css`)}),(()=>{_(`${t}style/sweet/sugar/editor/MI-Dynamic.css`,"css")})),await s(document.getElementById("SC_winsay_cp_editor__FocusEnhanc_BlockHoverShadow"),(()=>{l("FocusEnhanc_BlockHoverShadow",`${t}style/sweet/sugar/editor/BlockHoverShadow.css`)}),(()=>{_(`${t}style/sweet/sugar/editor/BlockHoverShadow.css`,"css")})),await s(document.getElementById("SC_winsay_cp_editor__FocusEnhanc_SearchInputShadow"),(()=>{l("SearchInputShadow",`${t}style/sweet/sugar/editor/SearchInputShadow.css`)}),(()=>{_(`${t}style/sweet/sugar/editor/SearchInputShadow.css`,"css")})),await s(document.getElementById("SC_winsay_cp_editor__NodeHeadingFoldedShadow"),(()=>{l("NodeHeadingFoldedShadow",`${t}style/sweet/sugar/editor/NodeHeading-foldedShadow.css`)}),(()=>{_(`${t}style/sweet/sugar/editor/NodeHeading-foldedShadow.css`,"css")})),await s(document.getElementById("SC_winsay_cp_editor__ShowBreadcrumbAnytime"),(()=>{a("--SCC-Variables-breadcrumb--hide-opacity","1")}),(()=>{p("--SCC-Variables-breadcrumb--hide-opacity")})),await s(document.getElementById("SC_winsay_cp_editor__showDocCreatedDate"),(()=>{import("./index-5a130f88.js")}),(()=>{})),await e("SC_winsay_cp_editor__HintHintMaxWidth",(async function(e){n(e)||a("--SCC-Variables-HintHint-MaxWidth",`${e}`)})),await e("SC_winsay_cp_editor__HintHintMaxHeight",(async function(e){n(e)||a("--SCC-Variables-HintHint-MaxHeight",`${e}`)}))}async function B(){"body--mobile"!==r&&(await s(document.getElementById("NoSync__SC_winsay_cp_appearance__AutoTranslate"),(()=>{if(window.siyuan.config.lang){const e=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.async=!0,n.id="AutoTranslate",n.src="https://res.zvo.cn/translate/translate.js",n.onload=n.onratechange=()=>{let e;e.selectLanguageTag.show=!1,e.selectLanguageTag.languages="zh-CN,id,ms,el,it,es,pt-PT,ja,nl,en,ru,fr,se,sv,ko,zh-TW,pt-BR,cs,th,la,da",e.execute()},e.appendChild(n),document.getElementById("layouts").parentElement.style.visibility="hidden",document.getElementById("NoSync__SC_winsay_cp_appearance__AutoTranslate_label").style.display="flex"}}),(()=>{const e=document.getElementById("AutoTranslate");e&&undefined.changeLanguage("zh-CN"),document.getElementById("layouts").parentElement.style.visibility="visible",document.querySelectorAll(".translateSelectLanguage").forEach((e=>{e.remove()})),document.getElementById("NoSync__SC_winsay_cp_appearance__AutoTranslate_label").style.display="none",e&&e.remove()})),await s(document.getElementById("SC_winsay_cp_appearance__DockBgColorFilter"),(()=>{const e=document.querySelector("#dockLeft"),n=document.querySelector("#dockRight"),a=document.querySelector("#status");e.style.setProperty("background-image","linear-gradient(to top,#cccccc16,#ffffff06)"),n.style.setProperty("background-image","linear-gradient(to top left,#cccccc16,#ffffff06)"),a.style.setProperty("background-image","linear-gradient(to top right,#cccccc16,#ffffff06)")}),(()=>{const e=document.querySelector("#dockLeft"),n=document.querySelector("#dockRight"),a=document.querySelector("#status");e.style.removeProperty("background-image"),n.style.removeProperty("background-image"),a.style.removeProperty("background-image")}))),await e("SC_winsay_cp_appearance__KeynesOpacity",(async function(e){n(e)||a("--SCC-Variables-KeynesOpacity",e)})),await e("SC_winsay_cp_appearance__TabBarSize",(async function(e){n(e)||(a("--SCC-Variables-MI-TabBar-FontSize",e),a("--SCC-Variables-MI-TabBar-MinHeight",3*parseInt(e)+""))})),await e("SC_winsay_cp_appearance__TabBarStyleFeel",(async function(e){if(n(e))a("--SCC-Variables-BlockList__beforeColor","var(--b3-theme-surface-lighter)");else switch(e){case"3":a("--SCC-Variables-TabBar-item__focus-box-shadow","rgba(131, 131, 131, 0.4) 0px 2px 4px, rgba(131, 131, 131, 0.3) 0px 7px 3px -3px, rgba(131, 131, 131, 0.2) 0px -3px 0px inset"),a("--SCC-Variables-TabBar-item-box-shadow","rgba(131, 131, 131, 0.4) 0px 2px 4px, rgba(131, 131, 131, 0.3) 0px 7px 3px -3px, rgba(131, 131, 131, 0.2) 0px -3px 0px inset"),a("--SCC-Variables-TabBar-V__item-box-shadow","rgb(131 131 131 / 30%) 0px 1px 1px, rgb(131 131 131 / 20%) 0px 2px 2px -2px, rgb(131 131 131 / 20%) 0px -1px 0px inset"),a("--SCC-Variables-TabBar-border-bottom","2px ridge var(--b3-theme-primary-light)"),a("--SCC-Variables-TabBar-margin-bottom","3px");break;case"2":a("--SCC-Variables-TabBar-item__focus-box-shadow","rgba(131, 131, 131, 0.4) 0px 2px 4px, rgba(131, 131, 131, 0.3) 0px 7px 3px -3px, rgba(131, 131, 131, 0.2) 0px -3px 0px inset"),a("--SCC-Variables-TabBar-item-box-shadow","rgba(131, 131, 131, 0.4) 0px 2px 4px, rgba(131, 131, 131, 0.3) 0px 7px 3px -3px, rgba(131, 131, 131, 0.2) 0px -3px 0px inset"),a("--SCC-Variables-TabBar-V__item-box-shadow","rgb(131 131 131 / 30%) 0px 1px 1px, rgb(131 131 131 / 20%) 0px 2px 2px -2px, rgb(131 131 131 / 20%) 0px -1px 0px inset"),a("--SCC-Variables-TabBar-border-bottom","none"),a("--SCC-Variables-TabBar-margin-bottom","3px");break;default:a("--SCC-Variables-TabBar-item__focus-box-shadow","rgb(131 131 131 / 1%) -1px 1px 1px, rgb(131 131 131 / 11%) -1px -2px 13px -1px, rgb(131 131 131 / 3%) 0px -1px 0px inset"),a("--SCC-Variables-TabBar-item-box-shadow","rgb(131 131 131 / 1%) -1px 1px 1px, rgb(131 131 131 / 11%) -1px -2px 13px -1px, rgb(131 131 131 / 3%) 0px -1px 0px inset"),a("--SCC-Variables-TabBar-V__item-box-shadow","none"),a("--SCC-Variables-TabBar-border-bottom","1px solid var(--b3-theme-primary-light)"),a("--SCC-Variables-TabBar-margin-bottom","0px")}})),await e("SC_winsay_cp_appearance__TabBar_item__textShadow",(async function(e){if(!n(e))if("2"===e)a("--SCC-Variables-TabBar_item__textShadow","-1px 1px 13px var(--SCC-Orange-Windom)");else a("--SCC-Variables-TabBar_item__textShadow","none")})),await e("SC_winsay_cp_appearance__TabBarMode",(async function(e){const a=n(e)?"MI-TabBar-D.css":e;l("TabBar",`${t}style/sweet/${a}`)})),await s(document.getElementById("SC_winsay_cp_appearance__TabBarV_AutoFolded"),(()=>{a("--SCC-Variables-MI-TabBarV_Auto-width","2rem")}),(()=>{a("--SCC-Variables-MI-TabBarV_Auto-width","max(186px, 13vw)")})),await s(document.getElementById("SC_winsay_cp_appearance__ToolBarMode"),(()=>{a("--SCC-Variables-MI-ToolBar-height-max","11px"),a("--SCC-Variables-MI-ToolBar-child-visibility","hidden"),a("--SCC-Variables-MI-ToolBar-svg-height","0px"),a("--SCC-Variables-MI-ToolBar-svg-hover-height","14px"),a("--SCC-Variables-MI-ToolBar-docName-opacity","0")}),(async()=>{a("--SCC-Variables-MI-ToolBar-height-max","unset"),a("--SCC-Variables-MI-ToolBar-child-visibility","visible");const e=await o("SC_winsay_cp_appearance__ToolBarMode__height");n(e)?(a("--SCC-Variables-MI-ToolBar-height","26px"),a("--SCC-Variables-MI-ToolBar-svg-height","14px"),a("--SCC-Variables-MI-ToolBar-svg-hover-height","14px")):(a("--SCC-Variables-MI-ToolBar-height",e),a("--SCC-Variables-MI-ToolBar-svg-height",parseInt(e)/2+1+"px"),a("--SCC-Variables-MI-ToolBar-svg-hover-height",parseInt(e)/2+1+"px")),a("--SCC-Variables-MI-ToolBar-docName-opacity","0.77")})),await e("SC_winsay_cp_appearance__ToolBarMode__height",(async function(e){n(e)||(a("--SCC-Variables-MI-ToolBar-height",e),a("--SCC-Variables-MI-ToolBar-svg-height",parseInt(e)/2+1+"px"),a("--SCC-Variables-MI-ToolBar-svg-hover-height",parseInt(e)/2+1+"px"))})),await e("SC_winsay_cp_appearance__ToolBarMode__NotFocus__bgColor",(async function(e){n(e)||a("--b3-toolbar-background",e)})),await s(document.getElementById("SC_winsay_cp_appearance__ToolBarMode__HideList__docName"),(()=>{a("--SCC-Variables-MI-ToolBar-docName-opacity","0")}),(()=>{a("--SCC-Variables-MI-ToolBar-docName-opacity","0.77")})),await s(document.getElementById("SC_winsay_cp_appearance__ToolBarMode__HideList__VIP"),(()=>{a("--SCC-Variables-MI-ToolBar-VIP-opacity","0")}),(()=>{a("--SCC-Variables-MI-ToolBar-VIP-opacity","0.77")})),await s(document.getElementById("SC_winsay_cp_appearance__ToolBarMode__HideList__windowX"),(()=>{a("--SCC-Variables-MI-ToolBar-windowX-opacity","0")}),(()=>{a("--SCC-Variables-MI-ToolBar-windowX-opacity","0.77")})),await s(document.getElementById("SC_winsay_cp_appearance__ToolBarMode__HideList__Other"),(()=>{a("--SCC-Variables-MI-ToolBar-Other-opacity","0")}),(()=>{a("--SCC-Variables-MI-ToolBar-Other-opacity","0.77")})),await s(document.getElementById("SC_winsay_cp_appearance__ShowWebIcon"),(()=>{l("ShowWebIcon",`${t}style/link/web.css`)}),(()=>{_(`${t}style/link/web.css`,"css")})),await s(document.getElementById("SC_winsay_cp_appearance__ShowFileIcon"),(()=>{l("ShowFileIcon",`${t}style/link/file.css`)}),(()=>{_(`${t}style/link/file.css`,"css")})),await e("SC_winsay_cp_appearance__status_msg_opacity",(async function(e){n(e)||a("--SCC-Variables-MI-status__msg_opacity",e)})),await s(document.getElementById("SC_winsay_cp_appearance__strengthen_backlinkList_panel_border"),(()=>{a("--SCC-Variables-backlinkList_panel_box-shadow","rgb(6 24 44 / 8%) -31px -13px 131px 12px, rgb(186 186 186 / 22%) 12px -23px 111px -5px inset")}),(()=>{p("--SCC-Variables-backlinkList_panel_box-shadow")})),await s(document.getElementById("SC_winsay_cp_appearance__strengthen_layout-tab-container"),(()=>{a("--SCC-Variables-MI-LayoutTabContainer_bgColor","linear-gradient(95deg, transparent, var(--b3-theme-surface-lighter), transparent)")}),(()=>{p("--SCC-Variables-MI-LayoutTabContainer_bgColor")})),await s(document.getElementById("SC_winsay_cp_appearance__SYSetting-AssetsIMG-Sticky"),(()=>{l("SYSetting-AssetsIMG-Sticky",`${t}style/sweet/sugar/appearance/SYSetting-AssetsIMG-Sticky.css`)}),(()=>{const e=document.getElementById("SYSetting-AssetsIMG-Sticky");e&&e.remove()}))}
/*!
* sofill v1.0.76
* https://github.com/Hi-Windom/Sofill
* https://www.npmjs.com/package/sofill
*/var I='\n<div class="SCC-wrapper"></div><div class="b3-dialog--open"><div class="SCC-dialog b3-dialog ConfirmDialog"><div class="b3-dialog__scrim"></div><div class="b3-dialog__container" style="width:520px"><svg class="SCC-close b3-dialog__close fn__a"><use xlink:href="#iconClose"></use></svg><div class="b3-dialog__header" onselectstart="return false;">⚠️ 清空操作确认</div><div style="height:auto"><div class="b3-dialog__content">确定清除 <b>主题全部配置数据</b>? 操作不可恢复!<br><br><span style="color:red;font-size:1.02rem">用户自定义配置和主题数据将丢失</span></div><div class="b3-dialog__action"><button class="SCC-default b3-button b3-button--cancel">取消</button><div class="fn__space"></div><button class="SCC-primary b3-button b3-button--text" id="SC_winsay_confirmDialog_ConfirmBtn">确定</button></div></div></div></div></div>\n',T='\n<div class="SCC-wrapper"></div><div class="b3-dialog--open"><div class="SCC-dialog b3-dialog ConfirmDialog"><div class="b3-dialog__scrim"></div><div class="b3-dialog__container" style="width:520px"><svg class="SCC-close b3-dialog__close fn__a"><use xlink:href="#iconClose"></use></svg><div class="b3-dialog__header" onselectstart="return false;">⚠️ 重置操作确认</div><div style="height:auto"><div class="b3-dialog__content">确定重置 <b>所有自定义设置数据</b>? 操作不可恢复!<br><br><span style="color:green;font-size:1.02rem">形态记忆等主题数据不会受影响</span></div><div class="b3-dialog__action"><button class="SCC-default b3-button b3-button--cancel">取消</button><div class="fn__space"></div><button class="SCC-primary b3-button b3-button--text" id="SC_winsay_confirmDialog_ConfirmBtn">确定</button></div></div></div></div></div>\n',V='\n<div class="SCC-wrapper"></div><div class="b3-dialog--open"><div class="SCC-dialog b3-dialog ConfirmDialog"><div class="b3-dialog__scrim"></div><div class="b3-dialog__container" style="width:520px"><svg class="SCC-close b3-dialog__close fn__a"><use xlink:href="#iconClose"></use></svg><div class="b3-dialog__header" onselectstart="return false;">⚠️ 覆盖操作确认</div><div style="height:auto"><div class="b3-dialog__content">确定覆盖 <b>已有配置数据</b>? 操作不可恢复!<br><br><span id="CoverWarming" style="color:blue;font-size:1.02rem"></span></div><div class="b3-dialog__action"><button class="SCC-default b3-button b3-button--cancel">取消</button><div class="fn__space"></div><button class="SCC-primary b3-button b3-button--text" id="SC_winsay_confirmDialog_ConfirmBtn">确定</button></div></div></div></div></div>\n',E='\n<div class="SCC-wrapper"></div><div class="b3-dialog--open"><div class="SCC-dialog b3-dialog ConfirmDialog"><div class="b3-dialog__scrim"></div><div class="b3-dialog__container" style="width:520px"><svg class="SCC-close b3-dialog__close fn__a"><use xlink:href="#iconClose"></use></svg><div class="b3-dialog__header" onselectstart="return false;">🌐 更新操作确认</div><div style="height:auto"><div class="b3-dialog__content">更新可用: <b><span id="UpdateInfo"></span></b><br><br><span id="CoverWarming" style="color:blue;font-size:1.02rem"></span></div><div class="b3-dialog__action"><button class="SCC-default b3-button b3-button--cancel">取消</button><div class="fn__space"></div><button class="SCC-primary b3-button b3-button--text" id="SC_winsay_confirmDialog_ConfirmBtn">确定</button></div></div></div></div></div>\n',L='\n<div class="SCC-wrapper"></div><div class="b3-dialog--open"><div class="SCC-dialog b3-dialog ConfirmDialog"><div class="b3-dialog__scrim"></div><div class="b3-dialog__container" style="width:520px"><svg class="SCC-close b3-dialog__close fn__a"><use xlink:href="#iconClose"></use></svg><div class="b3-dialog__header" onselectstart="return false;">🚧 调试信息确认</div><div style="height:auto"><div class="b3-dialog__content" style="padding: 13px 31px 3px 34px;"><b><span id="UpdateInfo"></span></b><br><br><span id="CoverWarming" style="color:blue;font-size:1.02rem"></span></div></div></div></div></div>\n',M='\n<div class="SCC-wrapper"></div><div class="b3-dialog--open"><div class="SCC-dialog b3-dialog ConfirmDialog"><div class="b3-dialog__scrim"></div><div class="b3-dialog__container" style="width:520px"><svg class="SCC-close b3-dialog__close fn__a"><use xlink:href="#iconClose"></use></svg><div class="b3-dialog__header" onselectstart="return false;">☢️ 主题自我保护警告</div><div style="height:auto"><div class="b3-dialog__content" style="padding: 13px 31px 3px 34px;"><b><span id="Info"></span></b><br><br><span id="CoverWarming" style="color:blue;font-size:1.02rem"></span><div class="b3-dialog__action"><button class="SCC-default b3-button b3-button--cancel">取消</button><div class="fn__space"></div><button class="SCC-primary b3-button b3-button--text" id="SC_winsay_confirmDialog_ConfirmBtn">确定</button></div></div></div></div></div></div>\n';class A extends EventTarget{constructor(e){super();const n={width:"30%",height:"250px",title:"测试标题",XML:"测试内容",dragable:!1,maskable:!0,isCancel:!1,success(){},cancel(){}};this.opts={...n,...e},this.init()}init(){this.createElement(),this.addEventListener("success",this.opts.success),this.opts.maskable||(this.divEles.querySelector(".SCC-wrapper").style.display="none"),this.opts.dragable&&this.drag()}createElement(){const e=document.createElement("div");e.id="SC-CP",e.innerHTML='<div class="SCC-wrapper"></div><div class="b3-dialog--open"><div class="SCC-dialog b3-dialog"></div></div></div>',e.style.display="none",e.classList.add(b),document.body.appendChild(e),this.divEles=e}sure(e){const n=new CustomEvent("success",{detail:e});this.dispatchEvent(n)}close(){this.divEles.style.display="none"}dispose(){this.divEles.remove()}async open(e=(()=>{})){this.divEles.style.display="block","function"==typeof e&&e()}drag(){const e=this.divEles.querySelector(".SCC-dialog");e.onmousedown=function(e){const n=e.clientX-this.offsetLeft,a=e.clientY-this.offsetTop;this.onmousemove=function(e){const s=e.clientX,l=e.clientY;this.style.left=s-n+"px",this.style.top=l-a+"px"}},document.onmouseup=function(){e.onmousemove=""}}}class H extends A{constructor(e){super(e),this.create(),this.addEleEvent()}create(){document.querySelectorAll("#SC-ConfirmDialog").forEach((e=>{e.remove()})),this.divEles.innerHTML=this.opts.XML,this.divEles.id="SC-ConfirmDialog"}sure(){super.sure(this)}addEleEvent(){this.divEles.querySelector(".SCC-dialog").addEventListener("click",(e=>{const n=e.target.classList;(n.contains("SCC-close")||n.contains("b3-dialog__scrim"))&&this.dispose(),(n.contains("SCC-default")||n.contains("b3-button--cancel"))&&(this.opts.cancel(),this.dispose()),n.contains("SCC-primary")&&(this.sure(),this.dispose())}))}}class D extends A{constructor(e){super(e),this.create(),this.addEleEvent()}create(){this.divEles.innerHTML='\n<div class="SCC-wrapper"></div>\n<div class="b3-dialog--open">\n <div class="SCC-dialog b3-dialog">\n <div class="b3-dialog__scrim"></div>\n <div class="b3-dialog__container">\n <div style="height:auto">\n <div class="fn__flex-column" style="border-radius: 4px;overflow: hidden;position: relative">\n <div class="fn__flex-1 fn__flex sc-custom-container-p">\n <input class="sc-custom-nav-bind-class" id="sc-custom-nav-bind-id-editor" type="radio" name="nav">\n <input class="sc-custom-nav-bind-class" id="sc-custom-nav-bind-id-appearance" type="radio" name="nav">\n <input class="sc-custom-nav-bind-class" id="sc-custom-nav-bind-id-assets" type="radio" name="nav">\n <input class="sc-custom-nav-bind-class" id="sc-custom-nav-bind-id-export" type="radio" name="nav">\n <input class="sc-custom-nav-bind-class" id="sc-custom-nav-bind-id-search" type="radio" name="nav">\n <input class="sc-custom-nav-bind-class" id="sc-custom-nav-bind-id-system" type="radio" name="nav">\n <input class="sc-custom-nav-bind-class" id="sc-custom-nav-bind-id-custom" type="radio" name="nav">\n <input class="sc-custom-nav-bind-class" id="sc-custom-nav-bind-id-extension" type="radio" name="nav">\n <input class="sc-custom-nav-bind-class" id="sc-custom-nav-bind-id-filetree" type="radio" name="nav">\n <input class="sc-custom-nav-bind-class" id="sc-custom-nav-bind-id-eHiWindom" type="radio" name="nav">\n <input class="sc-custom-nav-bind-class" id="sc-custom-nav-bind-id-about" type="radio" name="nav">\n <ul class="b3-tab-bar b3-list b3-list--background sc-custom-nav">\n <li data-name="editor" class="b3-list-item b3-list-item--big">\n <label for="sc-custom-nav-bind-id-editor"><svg class="b3-list-item__graphic">\n <use xlink:href="#iconEdit"></use>\n </svg><span>编辑器</span></label>\n </li>\n <li data-name="appearance" class="b3-list-item b3-list-item--big">\n <label for="sc-custom-nav-bind-id-appearance">\n <svg class="b3-list-item__graphic">\n <use xlink:href="#iconTheme"></use>\n </svg><span>外观</span></label>\n </li>\n <li data-name="assets" class="b3-list-item b3-list-item--big">\n <label for="sc-custom-nav-bind-id-assets">\n <svg class="b3-list-item__graphic">\n <use xlink:href="#iconImage"></use>\n </svg><span>资源</span></label>\n </li>\n <li data-name="export" class="b3-list-item b3-list-item--big">\n <label for="sc-custom-nav-bind-id-export">\n <svg class="b3-list-item__graphic">\n <use xlink:href="#iconUpload"></use>\n </svg><span>导出</span></label>\n </li>\n <li data-name="search" class="b3-list-item b3-list-item--big SC_disableC__Android_mobile">\n <label for="sc-custom-nav-bind-id-search">\n <svg class="b3-list-item__graphic">\n <use xlink:href="#iconSearch"></use>\n </svg><span>搜索</span></label>\n </li>\n <li data-name="system" class="b3-list-item b3-list-item--big">\n <label for="sc-custom-nav-bind-id-system">\n <svg class="b3-list-item__graphic">\n <use xlink:href="#iconKeymap"></use>\n </svg><span>系统</span></label>\n </li>\n <li data-name="custom" class="b3-list-item b3-list-item--big">\n <label for="sc-custom-nav-bind-id-custom">\n <svg class="b3-list-item__graphic">\n <use xlink:href="#iconAccount"></use>\n </svg><span>个性化</span></label>\n </li>\n <li data-name="extension" class="b3-list-item b3-list-item--big">\n <label for="sc-custom-nav-bind-id-extension">\n <svg class="b3-list-item__graphic">\n <use xlink:href="#iconBazaar"></use>\n </svg><span>扩展</span></label>\n </li>\n <li data-name="filetree" class="b3-list-item b3-list-item--big">\n <label for="sc-custom-nav-bind-id-filetree">\n <svg class="b3-list-item__graphic">\n <use xlink:href="#iconFiles"></use>\n </svg><span>文档树</span></label>\n </li>\n <li data-name="eHiWindom" class="b3-list-item b3-list-item--big">\n <label for="sc-custom-nav-bind-id-eHiWindom">\n <svg class="b3-list-item__graphic">\n <use xlink:href="#iconCloud"></use>\n </svg><span>海文东互联</span></label>\n </li>\n <li data-name="about" class="b3-list-item b3-list-item--big">\n <label for="sc-custom-nav-bind-id-about">\n <svg class="b3-list-item__graphic">\n <use xlink:href="#iconInfo"></use>\n </svg><span>关于</span></label>\n </li>\n </ul>\n <div id="sc-custom-container-placehold" class="sc-tab-container">\n <div class="sc-custom-placeholder">Sofill- v0 CP</div>\n </div>\n\n \x3c!-- 【编辑器】配置项 --\x3e\n <div id="sc-custom-container-editor" class="sc-tab-container" data-name="editor">\n <label class="fn__flex b3-label SC_ableC__Android_mobile">\n <div class="fn__flex-1">\n 行距自适应\n <div class="b3-label__text">注意:开启后隐藏一些选项。</div>\n </div>\n <span class="fn__space"></span>\n <input class="b3-switch fn__flex-center" id="SC_winsay_cp_editor__LH_Adaptive" type="checkbox" checked>\n </label>\n <div class="SC_cp_BP SC_ableC__Android_mobile" id="BP__SC_winsay_cp_editor__LH_Adaptive">\n <label class="fn__flex b3-label">\n <div class="fn__flex-1">\n 段首缩进\n <div class="b3-label__text">仅影响顶级的段落,单位:rem,范围(-2,12)</div>\n </div>\n <span class="fn__space"></span>\n <input class="b3-text-field fn__flex-center fn__size200"\n id="SC_winsay_cp_editor__LH_Adaptive__pIndent" type="number" min="-2" max="12" value="0">\n </label>\n <label class="fn__flex b3-label">\n <div class="fn__flex-1">\n 行高\n <div class="b3-label__text">仅影响顶级的段落,单位:100%,范围(1.1,3)</div>\n </div>\n <span class="fn__space"></span>\n <div class="b3-tooltips b3-tooltips__n fn__flex-center" aria-label="1.5"\n id="SC_winsay_cp_editor__LH_Adaptive__LH__label">\n <input class="b3-slider fn__size200" id="SC_winsay_cp_editor__LH_Adaptive__LH" max="3" min="1.1"\n step="0.01" type="range" value="1.5">\n </div>\n </label>\n <label class="fn__flex b3-label">\n <div class="fn__flex-1">\n 段前段后间距\n <div class="b3-label__text">仅影响顶级的段落,前后分别为段前间距和段后间距,单位:1/100pt,范围(10,500)</div>\n </div>\n <span class="fn__space"></span>\n <input class="b3-text-field fn__flex-center" id="SC_winsay_cp_editor__LH_Adaptive__marginTop"\n style="width: 96px" type="number" step="1" min="10" max="500">\n <span class="fn__space"></span>\n <input class="b3-text-field fn__flex-center" id="SC_winsay_cp_editor__LH_Adaptive__marginBottom"\n style="width: 96px" type="number" step="1" min="10" max="500">\n </label>\n <label class="fn__flex b3-label">\n <div class="fn__flex-1">\n 字符间距\n <div class="b3-label__text">仅影响顶级的段落,单位:px,范围(-0.1,0.58)</div>\n </div>\n <span class="fn__space"></span>\n <div class="b3-tooltips b3-tooltips__n fn__flex-center" aria-label="0"\n id="SC_winsay_cp_editor__LH_Adaptive__lSpacing__label">\n <input class="b3-slider fn__size200" id="SC_winsay_cp_editor__LH_Adaptive__lSpacing" max="0.58"\n min="-0.1" step="0.01" type="range" value="0">\n </div>\n </label>\n </div>\n <label class="fn__flex b3-label">\n <div class="fn__flex-1">\n 大型文档结尾提示\n <div class="b3-label__text"></div>\n </div>\n <span class="fn__space"></span>\n <input disabled class="b3-switch fn__flex-center" id="" type="checkbox" checked>\n </label>\n <label class="fn__flex b3-label">\n <div class="fn__flex-1">\n 在文档名下方显示创建日期\n <div class="b3-label__text">关闭后需重载生效</div>\n </div>\n <span class="fn__space"></span>\n <input class="b3-switch fn__flex-center" id="SC_winsay_cp_editor__showDocCreatedDate" type="checkbox">\n </label>\n <label class="fn__flex b3-label">\n <div class="fn__flex-1">\n 列表视图转换功能\n <div class="b3-label__text"></div>\n </div>\n <span class="fn__space"></span>\n <input disabled class="b3-switch fn__flex-center" id="" type="checkbox" checked>\n </label>\n <div class="b3-label SC_ableC__Android_mobile">\n 状态提示增强\n <div class="b3-label__text">包括各种块的聚焦阴影、标题动画、行内代码聚焦彩蛋、引用聚焦波浪线、只读模式聚焦阴影等,不涉及编辑器外的页签聚焦、文档树聚焦等</div>\n <div class="config-query-3cols">\n <label class="fn__flex">\n <div class="fn__flex-1 b3-label__text">\n 各种块的悬停阴影\n </div>\n <span class="fn__space"></span>\n <input class="b3-switch fn__flex-center" id="SC_winsay_cp_editor__FocusEnhanc_BlockHoverShadow"\n type="checkbox">\n </label>\n <label class="fn__flex">\n <div class="fn__flex-1 b3-label__text">\n 标题悬停彩蛋\n </div>\n <span class="fn__space"></span>\n <input class="b3-switch fn__flex-center" id="SC_winsay_cp_editor__FocusEnhanc_NodeHeading"\n type="checkbox">\n </label>\n <label class="fn__flex SC_disableC__Android_mobile">\n <div class="fn__flex-1 b3-label__text">\n 文档名区域状态提示\n </div>\n <span class="fn__space"></span>\n <input class="b3-switch fn__flex-center" id="SC_winsay_cp_editor__FocusEnhanc_DocNameArea"\n type="checkbox">\n </label>\n <label class="fn__flex">\n <div class="fn__flex-1 b3-label__text">\n 行内代码焦点彩蛋\n </div>\n <span class="fn__space"></span>\n <input class="b3-switch fn__flex-center" id="SC_winsay_cp_editor__FocusEnhanc_inlineCode"\n type="checkbox">\n </label>\n <label class="fn__flex">\n <div class="fn__flex-1 b3-label__text">\n 引用悬停波浪线\n </div>\n <span class="fn__space"></span>\n <input class="b3-switch fn__flex-center" id="SC_winsay_cp_editor__FocusEnhanc_refWave"\n type="checkbox">\n </label>\n <label class="fn__flex fn__none">\n <div class="fn__flex-1 b3-label__text">\n 只读模式悬停阴影(影响性能禁用)\n </div>\n <span class="fn__space"></span>\n <input disabled class="b3-switch fn__flex-center" id="SC_winsay_cp_editor__FocusEnhanc_docReadOnly"\n type="checkbox">\n </label>\n <label class="fn__flex SC_ableOnlyC__Android_mobile">\n <div class="fn__flex-1 b3-label__text">\n 只读模式单击提示(手机端专属)\n </div>\n <span class="fn__space"></span>\n <input class="b3-switch fn__flex-center" id="SC_winsay_cp_editor__TapAlert_docReadOnly"\n type="checkbox">\n </label>\n <label class="fn__flex">\n <div class="fn__flex-1 b3-label__text">\n 搜索框焦点阴影\n </div>\n <span class="fn__space"></span>\n <input class="b3-switch fn__flex-center" id="SC_winsay_cp_editor__FocusEnhanc_SearchInputShadow"\n type="checkbox">\n </label>\n </div>\n </div>\n <label class="fn__flex b3-label">\n <div class="fn__flex-1">\n 标题折叠阴影\n <div class="b3-label__text"></div>\n </div>\n <span class="fn__space"></span>\n <input class="b3-switch fn__flex-center" id="SC_winsay_cp_editor__NodeHeadingFoldedShadow"\n type="checkbox">\n </label>\n <label class="fn__flex b3-label">\n <div class="fn__flex-1">\n 任何时候都不隐藏面包屑\n <div class="b3-label__text"></div>\n </div>\n <span class="fn__space"></span>\n <input class="b3-switch fn__flex-center" id="SC_winsay_cp_editor__ShowBreadcrumbAnytime"\n type="checkbox">\n </label>\n <label class="fn__flex b3-label SC_ableC__Android_mobile">\n <div class="fn__flex-1">\n 块滚动条模式\n <div class="b3-label__text"></div>\n </div>\n <span class="fn__space"></span>\n <select id="SC_winsay_cp_editor__BlockScrollBar-opacity" class="b3-select fn__flex-center fn__size200">\n <option value="1">常显</option>\n <option value="0.88">聚焦显示</option>\n <option value="0">隐藏</option>\n <option value="-1">移除(避免遮挡)</option>\n </select>\n </label>\n <label class="fn__flex b3-label SC_ableC__Android_mobile">\n <div class="fn__flex-1">\n 块滚动条位置\n <div class="b3-label__text"></div>\n </div>\n <span class="fn__space"></span>\n <select id="SC_winsay_cp_editor__BlockScrollBar_Hposition"\n class="b3-select fn__flex-center fn__size200">\n <option value="R13">右侧贴边</option>\n <option value="R31">右侧离岸</option>\n <option value="L13">左侧贴边</option>\n <option value="L31">左侧离岸</option>\n </select>\n </label>\n <label class="fn__flex b3-label">\n <div class="fn__flex-1">\n HintHint 面板标号\n <div class="b3-label__text"></div>\n </div>\n <span class="fn__space"></span>\n <input class="b3-switch fn__flex-center" id="SC_winsay_cp_editor__HintHint-index" type="checkbox">\n </label>\n <label class="fn__flex b3-label SC_ableC__Android_mobile">\n <div class="fn__flex-1">\n HintHint 面板限高\n <div class="b3-label__text"></div>\n </div>\n <span class="fn__space"></span>\n <select id="SC_winsay_cp_editor__HintHintMaxHeight" class="b3-select fn__flex-center fn__size200">\n <option value="402px">默认</option>\n <option value="min(88vh, 888px)">推荐</option>\n <option value="min(58vh, 580px)">略高</option>\n </select>\n </label>\n <label class="fn__flex b3-label SC_ableC__Android_mobile">\n <div class="fn__flex-1">\n HintHint 面板限宽\n <div class="b3-label__text"></div>\n </div>\n <span class="fn__space"></span>\n <select id="SC_winsay_cp_editor__HintHintMaxWidth" class="b3-select fn__flex-center fn__size200">\n <option value="min-content">默认</option>\n <option value="min(88%,58em)">推荐</option>\n <option value="min(77%,31em)">略宽</option>\n </select>\n </label>\n <label class="fn__flex b3-label">\n <div class="fn__flex-1">\n 文档宽度模式\n <div class="b3-label__text">满足不同尺寸屏幕需要。固定宽度需要搭配微软雅黑字体,效果仅供参考,以实际导出PDF为准。</div>\n </div>\n <span class="fn__space"></span>\n <select id="SC_winsay_cp_editor__DocWidthMode" class="b3-select fn__flex-center fn__size200">\n <option value="null">默认</option>\n <option value="16px 31px 0px 31px">全宽(建议将块滚动条移至左侧)</option>\n <option value="16px 3.1cqw 0px">超宽</option>\n <option value="16px 5.8cqw 2rem">很宽</option>\n <option value="16px 8cqw 2rem">中宽</option>\n <option value="16px 13cqw 2rem 10cqw">较窄</option>\n <option value="16px 18.6cqw 2rem 14cqw">很窄</option>\n <option value="16px 25cqw 2rem 22cq">超窄</option>\n <option value="16px 31cqw 2rem 31cqw">极窄</option>\n <option value="1in 0.5in">A4 default(固定宽度)</option>\n <option value="0.42in">A4 default 横向页面(固定宽度)</option>\n <option value="0.41in">A3 default(固定宽度)</option>\n <option value="0.40in">A3 default 横向页面(固定宽度)</option>\n </select>\n </label>\n <label class="fn__flex b3-label">\n <div class="fn__flex-1">\n 文档背景色\n <div class="b3-label__text"></div>\n </div>\n <span class="fn__space"></span>\n <select id="SC_winsay_cp_editor__Doc_bgColor" class="b3-select fn__flex-center fn__size200">\n <option value="transparent">沉鱼落雁</option>\n <option value="#fefef158">闭月羞花</option>\n <option value="#fff">绝尘纯白</option>\n <option value="#fefefa">商务纸白</option>\n <option value="rgb(242 234 217 / 58%)">异域传说</option>\n </select>\n </label>\n <label class="fn__flex b3-label SC_ableC__Android_mobile">\n <div class="fn__flex-1">\n 引用锚文本样式\n <div class="b3-label__text"></div>\n </div>\n <span class="fn__space"></span>\n <select id="SC_winsay_cp_editor__Block-Inline-link__block-ref-content"\n class="b3-select fn__flex-center fn__size200">\n <option value="">无样式</option>\n <option value="⁅⁅ ⁆⁆">绛亽标准</option>\n <option value="[[ ]]">经典通用</option>\n </select>\n </label>\n <label class="fn__flex b3-label SC_ableC__Android_mobile">\n <div class="fn__flex-1">\n 任务列表已完成项文字颜色\n <div class="b3-label__text"></div>\n </div>\n <span class="fn__space"></span>\n <select id="SC_winsay_cp_editor__Block-List-Task__item-done__text-color"\n class="b3-select fn__flex-center fn__size200">\n <option value="default">默认</option>\n <option value="auto">自动</option>\n </select>\n </label>\n <label class="fn__flex b3-label SC_ableC__Android_mobile">\n <div class="fn__flex-1">\n 题头图粘性布局\n <div class="b3-label__text">开启后文章背景会呈现磨砂效果,具体表现因不同图片和形态而异,文档标题将不受文档宽度模式影响</div>\n </div>\n <span class="fn__space"></span>\n <input class="b3-switch fn__flex-center" id="SC_winsay_cp_editor__AreoBg-Filter" type="checkbox">\n </label>\n <label class="fn__flex b3-label SC_ableC__Android_mobile">\n <div class="fn__flex-1">\n 列表缩进自适应模式\n <div class="b3-label__text"></div>\n </div>\n <span class="fn__space"></span>\n <select id="SC_winsay_cp_editor__ListAutoIndent_mode" class="b3-select fn__flex-center fn__size200">\n <option value="">禁用</option>\n <option value="1">适应容器</option>\n <option value="2">适应字号</option>\n </select>\n </label>\n <label class="fn__flex b3-label">\n <div class="fn__flex-1">\n 列表辅助线聚焦点亮模式\n <div class="b3-label__text"></div>\n </div>\n <span class="fn__space"></span>\n <select id="SC_winsay_cp_editor__Block-List-LightUpLineMode"\n class="b3-select fn__flex-center fn__size200">\n <option value="1">分体式</option>\n <option value="2">总控式</option>\n <option value="3">常亮式</option>\n <option value="4">寻龙式</option>\n </select>\n </label>\n <label class="fn__flex b3-label">\n <div class="fn__flex-1">\n 面包屑自适应\n <div class="b3-label__text"></div>\n </div>\n <span class="fn__space"></span>\n <input class="b3-switch fn__flex-center" id="SC_winsay_cp_editor__BreadcrumbsMode-Adaptive"\n type="checkbox">\n </label>\n <label class="fn__flex b3-label">\n <div class="fn__flex-1">\n 图片底色增强模式\n <div class="b3-label__text">针对透明图层设计</div>\n </div>\n <span class="fn__space"></span>\n <select id="SC_winsay_cp_editor__img-bg-color" class="b3-select fn__flex-center fn__size200">\n <option value="transparent">无底色</option>\n <option value="#fff">纯白</option>\n <option value="#000">纯黑</option>\n <option value="var(--SCC-CNTC-ChaBai)">茶白</option>\n <option value="var(--SCC-SGTC-6B)">SGTC-6B</option>\n <option value="var(--SCC-SGTC-9B)">SGTC-9B</option>\n <option value="var(--SCC-SGTC-30B)">SGTC-30B</option>\n <option value="var(--b3-theme-surface-lighter)">跟随主题形态(淡雅)</option>\n <option value="var(--b3-theme-primary-light)">跟随主题形态(靓丽)</option>\n </select>\n </label>\n <label class="fn__flex b3-label">\n <div class="fn__flex-1">\n 图片底色增强模式常显\n <div class="b3-label__text">关闭后需要鼠标聚焦才生效</div>\n </div>\n <span class="fn__space"></span>\n <input class="b3-switch fn__flex-center" id="SC_winsay_cp_editor__img-bg-color_always" type="checkbox">\n </label>\n <label class="fn__flex b3-label SC_ableC__Android_mobile">\n <div class="fn__flex-1">\n 表格块最小宽度\n <div class="b3-label__text">对处于滚屏态的表格无效</div>\n </div>\n <span class="fn__space"></span>\n <select id="SC_winsay_cp_editor__BlockTable_MinWidth" class="b3-select fn__flex-center fn__size200">\n <option value="unset">不限制</option>\n <option value="58%">58%</option>\n <option value="88%">88%</option>\n <option value="100%">100%</option>\n </select>\n </label>\n <label class="fn__flex b3-label SC_ableC__Android_mobile">\n <div class="fn__flex-1">\n 表格块最大宽度\n <div class="b3-label__text">对处于滚屏态的表格无效</div>\n </div>\n <span class="fn__space"></span>\n <select id="SC_winsay_cp_editor__BlockTable_MaxWidth" class="b3-select fn__flex-center fn__size200">\n <option value="unset">不限制</option>\n <option value="88%">88%</option>\n <option value="100%">100%</option>\n <option value="186%">186%</option>\n </select>\n </label>\n <label class="fn__flex b3-label SC_ableC__Android_mobile">\n <div class="fn__flex-1">\n 表格文字大小\n <div class="b3-label__text"></div>\n </div>\n <span class="fn__space"></span>\n <select id="SC_winsay_cp_editor__BlockTable_FontSize" class="b3-select fn__flex-center fn__size200">\n <option value="unset">超大</option>\n <option value="92%">大</option>\n <option value="88%">中</option>\n <option value="82%">小</option>\n <option value="72%">超小</option>\n </select>\n </label>\n <label class="fn__flex b3-label SC_ableC__Android_mobile">\n <div class="fn__flex-1">\n 表格文字对齐\n <div class="b3-label__text"></div>\n </div>\n <span class="fn__space"></span>\n <select id="SC_winsay_cp_editor__BlockTable_TextAlign" class="b3-select fn__flex-center fn__size200">\n <option value="left">左侧对齐</option>\n <option value="right">右侧对齐</option>\n <option value="center">居中对齐</option>\n </select>\n </label>\n <label class="fn__flex b3-label SC_ableC__Android_mobile">\n <div class="fn__flex-1">\n 表格居中显示\n <div class="b3-label__text">对处于滚屏态的表格无效</div>\n </div>\n <span class="fn__space"></span>\n <input class="b3-switch fn__flex-center" id="SC_winsay_cp_editor__BlockTable_Margin" type="checkbox">\n </label>\n <label class="fn__flex b3-label">\n <div class="fn__flex-1">\n 引用弹出层钉住辅助感知\n <div class="b3-label__text"></div>\n </div>\n <span class="fn__space"></span>\n <select id="SC_winsay_cp_editor__block__popover--open__PinSense"\n class="b3-select fn__flex-center fn__size200">\n <option value="">关闭</option>\n <option value="1">弱水之隔</option>\n <option value="2">光怪陆离</option>\n </select>\n </label>\n <label class="fn__flex b3-label SC_ableC__Android_mobile">\n <div class="fn__flex-1">\n 文档选区工具条位置\n <div class="b3-label__text">注意:非默认选项会造成一些副作用</div>\n </div>\n <span class="fn__space"></span>\n <select id="SC_winsay_cp_editor__layout-center_protyle-toolbar_position"\n class="b3-select fn__flex-center fn__size200">\n <option value="">默认</option>\n <option value="layout-center__protyle-toolbar-flexwrap.css">跟随选区(多行)</option>\n <option value="layout-center__protyle-toolbar-GOTOTOP.css">置顶</option>\n <option value="layout-center__protyle-toolbar-GOTOBOTTOM.css">置底</option>\n </select>\n </label>\n <label class="fn__flex b3-label SC_ableOnlyU__N">\n <div class="fn__flex-1">\n 文档属性缩放\n <div class="b3-label__text">只会影响文档内右上角的属性显示。登录用户权益</div>\n </div>\n <span class="fn__space"></span>\n <select id="SC_winsay_cp_editor__protyle-attr-scale" class="b3-select fn__flex-center fn__size200">\n <option value="1">默认</option>\n <option value="0">隐藏</option>\n <option value="1.31">大</option>\n <option value="2">特大</option>\n </select>\n </label>\n <label class="fn__flex b3-label SC_ableOnlyC__Android_mobile">\n <div class="fn__flex-1">\n 动态加载块数\n <div class="b3-label__text">该值包含了子块数。如果需要渲染的代码块、公式块或图表块较多,建议不要设置过大</div>\n </div>\n <span class="fn__space"></span>\n <input class="b3-text-field fn__flex-center fn__size200" id="SC_winsay_cp_editor__dynamicLoadBlocks" type="number" min="48" max="1024" value="58">\n </label>\n </div>\n\n \x3c!-- 【外观】配置项 --\x3e\n <div id="sc-custom-container-appearance" class="sc-tab-container" data-name="appearance">\n <label class="fn__flex b3-label">\n <div class="fn__flex-1">\n 开启自动翻译\n <div class="b3-label__text">注意:需要联网。开启后会自动翻译整个网页(会破坏文档显示效果),因此会暂时隐藏主界面,关闭或重启即可恢复。</div>\n </div>\n <span class="fn__space"></span>\n <input class="b3-switch fn__flex-center" id="NoSync__SC_winsay_cp_appearance__AutoTranslate" type="checkbox">\n </label>\n <label class="fn__flex b3-label" id="NoSync__SC_winsay_cp_appearance__AutoTranslate_label">\n <div class="fn__flex-1">\n 自动翻译目标语言\n <div class="b3-label__text">翻译结果仅供参考</div>\n </div>\n <span class="fn__space"></span>\n <div id="translate">\n <div class="skiptranslate">\n <div id=":0.targetLanguage"></div>\n </div>\n </div>\n </label>\n <label class="fn__flex b3-label">\n <div class="fn__flex-1">\n 顶栏自动隐藏\n <div class="b3-label__text">仅Windows端有效</div>\n </div>\n <span class="fn__space"></span>\n <input class="b3-switch fn__flex-center" id="SC_winsay_cp_appearance__ToolBarMode" type="checkbox">\n </label>\n <label class="fn__flex b3-label">\n <div class="fn__flex-1">\n 顶栏高度\n <div class="b3-label__text"></div>\n </div>\n <span class="fn__space"></span>\n <select id="SC_winsay_cp_appearance__ToolBarMode__height" class="b3-select fn__flex-center fn__size200">\n <option value="26px">低</option>\n <option value="31px">中</option>\n <option value="37px">高</option>\n </select>\n </label>\n <label class="fn__flex b3-label">\n <div class="fn__flex-1">\n 顶栏失去焦点时的背景颜色\n <div class="b3-label__text"></div>\n </div>\n <span class="fn__space"></span>\n <select id="SC_winsay_cp_appearance__ToolBarMode__NotFocus__bgColor"\n class="b3-select fn__flex-center fn__size200">\n <option value="var(--b3-theme-surface-lighter)">默认</option>\n <option value="var(--b3-theme-background-light)">透明</option>\n <option value="var(--SCC-primary-lightest)">经典</option>\n </select>\n </label>\n <div class="b3-label">\n 配置非聚焦时隐藏的顶栏元素\n <div class="config-query-2cols">\n <label class="fn__flex">\n <div class="fn__flex-1 b3-label__text">\n 文档名\n </div>\n <span class="fn__space"></span>\n <input class="b3-switch fn__flex-center"\n id="SC_winsay_cp_appearance__ToolBarMode__HideList__docName" type="checkbox">\n </label>\n <label class="fn__flex">\n <div class="fn__flex-1 b3-label__text">\n VIP功能图标\n </div>\n <span class="fn__space"></span>\n <input class="b3-switch fn__flex-center" id="SC_winsay_cp_appearance__ToolBarMode__HideList__VIP"\n type="checkbox">\n </label>\n <label class="fn__flex">\n <div class="fn__flex-1 b3-label__text">\n 窗口三大控件\n </div>\n <span class="fn__space"></span>\n <input class="b3-switch fn__flex-center"\n id="SC_winsay_cp_appearance__ToolBarMode__HideList__windowX" type="checkbox">\n </label>\n <label class="fn__flex">\n <div class="fn__flex-1 b3-label__text">\n 其他顶栏图标\n </div>\n <span class="fn__space"></span>\n <input class="b3-switch fn__flex-center" id="SC_winsay_cp_appearance__ToolBarMode__HideList__Other"\n type="checkbox">\n </label>\n </div>\n </div>\n <label class="fn__flex b3-label">\n <div class="fn__flex-1">\n dock栏底色增强显示\n <div class="b3-label__text"></div>\n </div>\n <span class="fn__space"></span>\n <input class="b3-switch fn__flex-center" id="SC_winsay_cp_appearance__DockBgColorFilter"\n type="checkbox">\n </label>\n <label class="fn__flex b3-label SC_ableC__Android_mobile">\n <div class="fn__flex-1">\n 显示网页链接 icon\n <div class="b3-label__text"></div>\n </div>\n <span class="fn__space"></span>\n <input class="b3-switch fn__flex-center" id="SC_winsay_cp_appearance__ShowWebIcon" type="checkbox"\n checked>\n </label>\n <label class="fn__flex b3-label SC_ableC__Android_mobile">\n <div class="fn__flex-1">\n 显示资源链接 icon\n <div class="b3-label__text"></div>\n </div>\n <span class="fn__space"></span>\n <input class="b3-switch fn__flex-center" id="SC_winsay_cp_appearance__ShowFileIcon" type="checkbox"\n checked>\n </label>\n <label class="fn__flex b3-label SC_ableC__Android_mobile">\n <div class="fn__flex-1">\n 凯恩斯不透明度\n <div class="b3-label__text">影响 b3-dialog__container ,在手机端额外影响 side-panel 不透明程度</div>\n </div>\n <span class="fn__space"></span>\n <select id="SC_winsay_cp_appearance__KeynesOpacity" class="b3-select fn__flex-center fn__size200">\n <option value="1">Max</option>\n <option value="0.96">Hight</option>\n <option value="0.92">Medium</option>\n <option value="0.88">Low</option>\n </select>\n </label>\n <label class="fn__flex b3-label">\n <div class="fn__flex-1">\n WND页签栏布局模式\n <div class="b3-label__text"></div>\n </div>\n <span class="fn__space"></span>\n <select id="SC_winsay_cp_appearance__TabBarMode" class="b3-select fn__flex-center fn__size200">\n <option value="MI-TabBar-D.css">默认</option>\n <option value="MI-TabBar-V.css">垂直</option>\n <option value="MI-TabBar-H.css">水平</option>\n <option value="origin">原生</option>\n </select>\n </label>\n <label class="fn__flex b3-label">\n <div class="fn__flex-1">\n WND垂直页签栏自动收起\n <div class="b3-label__text"></div>\n </div>\n <span class="fn__space"></span>\n <input class="b3-switch fn__flex-center" id="SC_winsay_cp_appearance__TabBarV_AutoFolded"\n type="checkbox">\n </label>\n <label class="fn__flex b3-label">\n <div class="fn__flex-1">\n WND页签风格\n <div class="b3-label__text"></div>\n </div>\n <span class="fn__space"></span>\n <select id="SC_winsay_cp_appearance__TabBarStyleFeel" class="b3-select fn__flex-center fn__size200">\n <option value="1">扁平简洁风</option>\n <option value="2">拟物素雅风</option>\n <option value="3">拟物鲜明风</option>\n </select>\n </label>\n <label class="fn__flex b3-label">\n <div class="fn__flex-1">\n WND页签文字晕染\n <div class="b3-label__text"></div>\n </div>\n <span class="fn__space"></span>\n <select id="SC_winsay_cp_appearance__TabBar_item__textShadow"\n class="b3-select fn__flex-center fn__size200">\n <option value="1">无晕染</option>\n <option value="2">镶金</option>\n </select>\n </label>\n <label class="fn__flex b3-label">\n <div class="fn__flex-1">\n 通用页签大小\n <div class="b3-label__text">不同页签栏模式表现效果不同</div>\n </div>\n <span class="fn__space"></span>\n <select id="SC_winsay_cp_appearance__TabBarSize" class="b3-select fn__flex-center fn__size200">\n <option value="10">小杯</option>\n <option value="12">中杯</option>\n <option value="13">大杯</option>\n <option value="14">超大杯</option>\n </select>\n </label>\n <label class="fn__flex b3-label">\n <div class="fn__flex-1">\n 标题编号模式\n <div class="b3-label__text"></div>\n </div>\n <span class="fn__space"></span>\n <select disabled id="" class="b3-select fn__flex-center fn__size200">\n <option value=""></option>\n <option value=""></option>\n <option value=""></option>\n </select>\n </label>\n <label class="fn__flex b3-label">\n <div class="fn__flex-1">\n 底部状态栏提示消息显示模式\n <div class="b3-label__text"></div>\n </div>\n <span class="fn__space"></span>\n <select id="SC_winsay_cp_appearance__status_msg_opacity" class="b3-select fn__flex-center fn__size200">\n <option value="0.9">默认</option>\n <option value="0.31">淡化</option>\n <option value="0">隐藏</option>\n </select>\n </label>\n <label class="fn__flex b3-label">\n <div class="fn__flex-1">\n 反链面板边界强化\n <div class="b3-label__text"></div>\n </div>\n <span class="fn__space"></span>\n <input class="b3-switch fn__flex-center"\n id="SC_winsay_cp_appearance__strengthen_backlinkList_panel_border" type="checkbox" checked>\n </label>\n <label class="fn__flex b3-label">\n <div class="fn__flex-1">\n 侧边栏容器背景增强\n <div class="b3-label__text"></div>\n </div>\n <span class="fn__space"></span>\n <input class="b3-switch fn__flex-center" id="SC_winsay_cp_appearance__strengthen_layout-tab-container"\n type="checkbox">\n </label>\n <label class="fn__flex b3-label">\n <div class="fn__flex-1">\n 思源设置资源界面粘性布局\n <div class="b3-label__text">思源设置 ->【资源】界面</div>\n </div>\n <span class="fn__space"></span>\n <input class="b3-switch fn__flex-center" id="SC_winsay_cp_appearance__SYSetting-AssetsIMG-Sticky"\n type="checkbox">\n </label>\n </div>\n\n \x3c!-- 【资源】配置项 --\x3e\n <div id="sc-custom-container-assets" class="sc-tab-container" data-name="assets">\n <label class="fn__flex b3-label">\n <div class="fn__flex-1">\n 图片制卡\n <div class="b3-label__text"></div>\n </div>\n <span class="fn__space"></span>\n <select id="SC_winsay_cp_assets__PCards" class="b3-select fn__flex-center fn__size200">\n <option value="">禁用</option>\n <option value="PCards-1.css">Nofood Style</option>\n </select>\n </label>\n </div>\n\n \x3c!-- 【导出】配置项 --\x3e\n <div id="sc-custom-container-export" class="sc-tab-container" data-name="export">\n <label class="fn__flex b3-label SC_ableC__Android_mobile">\n <div class="fn__flex-1 fn__flex-center">\n 导出配置数据\n <div class="b3-label__text">将 <code class="fn__code">localStorage</code> 中的所有主题配置数据以 json\n 文件方式导出。跨版本导出导入可能会存在冲突,请不要过渡依赖。</div>\n </div>\n <span class="fn__space"></span>\n <button class="b3-button b3-button--outline fn__flex-center fn__size200" id="SC__exportData"><svg>\n <use xlink:href="#iconUpload"></use>\n </svg>导出</button>\n <a href="#" id="SC__exportData_a"></a>\n </label>\n <label class="fn__flex b3-label SC_ableC__Android_mobile">\n <div class="fn__flex-1 fn__flex-center">\n 导入配置数据\n <div class="b3-label__text">将导出的 json 文件数据导入,覆盖 <code class="fn__code">localStorage</code>\n 已有主题配置数据。跨版本导出导入可能会存在冲突,请不要过渡依赖。\n </div>\n </div>\n <span class="fn__space"></span>\n <button id="SC__importData" class="b3-button b3-button--outline fn__flex-center fn__size200"\n style="position: relative">\n <input id="SC__importData_i" class="b3-form__upload" type="file">\n <svg>\n <use xlink:href="#iconDownload"></use>\n </svg>导入\n </button>\n </label>\n <div class="b3-label SC_ableC__Android_mobile">\n 导出配置附加项\n <div class="b3-label__text">目前还不支持导入\n </div>\n <div class="config-query-2cols">\n <label class="fn__flex">\n <div class="fn__flex-1 b3-label__text">\n 思源编辑器配置\n </div>\n <span class="fn__space"></span>\n <input class="b3-switch fn__flex-center" id="SC_winsay_cp__exportData__EXT_sy_editor"\n type="checkbox">\n </label>\n <label class="fn__flex">\n <div class="fn__flex-1 b3-label__text">\n 思源快捷键配置\n </div>\n <span class="fn__space"></span>\n <input class="b3-switch fn__flex-center" id="SC_winsay_cp__exportData__EXT_sy_keymap"\n type="checkbox">\n </label>\n <label class="fn__flex">\n <div class="fn__flex-1 b3-label__text">\n 思源同步配置\n </div>\n <span class="fn__space"></span>\n <input class="b3-switch fn__flex-center" id="SC_winsay_cp__exportData__EXT_sy_sync"\n type="checkbox">\n </label>\n </div>\n </div>\n </div>\n\n \x3c!-- 【搜索】配置项 --\x3e\n <div id="sc-custom-container-search" class="sc-tab-container SC_disableC__Android_mobile" data-name="search">\n <label class="fn__flex b3-label">\n <div class="fn__flex-1">\n 搜索面板标号\n <div class="b3-label__text"></div>\n </div>\n <span class="fn__space"></span>\n <input class="b3-switch fn__flex-center" id="SC_winsay_cp_search__index" type="checkbox">\n </label>\n <label class="fn__flex b3-label">\n <div class="fn__flex-1">\n 禁用搜索建议\n <div class="b3-label__text"></div>\n </div>\n <span class="fn__space"></span>\n <input class="b3-switch fn__flex-center" id="SC_winsay_cp_search__disable_tips" type="checkbox">\n </label>\n <label class="fn__flex b3-label">\n <div class="fn__flex-1">\n 结果列表展示模式\n <div class="b3-label__text"></div>\n </div>\n <span class="fn__space"></span>\n <select id="SC_winsay_cp_search__layout" class="b3-select fn__flex-center fn__size200">\n <option value="">默认布局</option>\n <option value="layout-Auto.css">智能布局模式(不支持在搜索界面更改方向)</option>\n <option value="layout-LR1.css">左右紧凑布局(不支持在搜索界面更改方向)</option>\n <option value="layout-LR2.css">左右双行布局(不支持在搜索界面更改方向)</option>\n <option value="layout-TB1.css">上下紧凑布局</option>\n <option value="layout-TB2.css">上下双行布局</option>\n </select>\n </label>\n </div>\n\n \x3c!-- 【系统】配置项 --\x3e\n <div id="sc-custom-container-system" class="sc-tab-container" data-name="system">\n <label class="b3-label fn__flex SC_ableC__Android_mobile">\n <div class="fn__flex-1">\n 清理主题本地存储空间数据\n <div class="b3-label__text">删除主题并不会释放主题存放在 localStorage 的数据</div>\n </div>\n <span class="fn__space"></span>\n <button class="b3-button b3-button--outline fn__flex-center fn__size200"\n id="SC_winsay_cp_system__ClearlocalStorage">\n <svg>\n <use xlink:href="#iconClose"></use>\n </svg>清空\n </button>\n </label>\n <label class="b3-label fn__flex SC_ableC__Android_mobile">\n <div class="fn__flex-1">\n 重置所有个性化配置\n <div class="b3-label__text">所有自定义配置都会恢复到缺省值</div>\n </div>\n <span class="fn__space"></span>\n <button class="b3-button b3-button--outline fn__flex-center fn__size200"\n id="SC_winsay_cp_system__ResetAllSettings">\n <svg>\n <use xlink:href="#iconUndo"></use>\n </svg>重置\n </button>\n </label>\n <label class="b3-label fn__flex SC_ableC__Android_mobile">\n <div class="fn__flex-1">\n 刷新页面\n <div class="b3-label__text">平平无奇的圆圆圈圈</div>\n </div>\n <span class="fn__space"></span>\n <button class="b3-button b3-button--outline fn__flex-center fn__size200"\n id="SC_winsay_cp_system__Refresh">\n <svg>\n <use xlink:href="#iconRefresh"></use>\n </svg>刷新\n </button>\n </label>\n <label class="b3-label fn__flex SC_ableC__Android_mobile">\n <div class="fn__flex-1">\n 调试信息\n <div class="b3-label__text">🚧🚧🚧🚧🚧🚧</div>\n </div>\n <span class="fn__space"></span>\n <button class="b3-button b3-button--outline fn__flex-center fn__size200"\n id="SC_winsay_cp_system__ShowDebugInfo">\n <svg>\n <use xlink:href="#iconFormat"></use>\n </svg>显示\n </button>\n </label>\n <label class="fn__flex b3-label">\n <div class="fn__flex-1">\n 主题自我保护\n <div class="b3-label__text"></div>\n </div>\n <span class="fn__space"></span>\n <input class="b3-switch fn__flex-center" id="SC_winsay_cp_system__SelfProtection" type="checkbox">\n </label>\n <label class="fn__flex b3-label SC_ableOnlyC__Android_mobile">\n <div class="fn__flex-1">\n 禁用悬浮球\n <div class="b3-label__text">Sofill-MobileBall 为安卓手机端专属,如果你希望支持安卓 pad 端请提 <a href="https://github.com/Hi-Windom/winsay/issues">issue</a></div>\n </div>\n <span class="fn__space"></span>\n <input class="b3-switch fn__flex-center" id="SC_winsay_cp_system__Ball" type="checkbox">\n </label>\n </div>\n\n \x3c!-- 【个性化】配置项 --\x3e\n <div id="sc-custom-container-custom" class="sc-tab-container" data-name="custom">\n <label class="fn__flex b3-label SC_ableC__Android_mobile">\n <div class="fn__flex-1">\n 明亮模式全局滤镜\n <div class="b3-label__text">不需要的时候别忘了关闭喔</div>\n </div>\n <span class="fn__space"></span>\n <select id="SC_winsay_cp_custom__root_filter_light" class="b3-select fn__flex-center fn__size200">\n <option value="none">无</option>\n <option value="1">真彩显示</option>\n <option value="2">鲜艳模式</option>\n <option value="3">黑白显示</option>\n <option value="4">夜间模式</option>\n <option value="5">深夜模式(关灯)</option>\n </select>\n </label>\n <label class="fn__flex b3-label SC_ableC__Android_mobile">\n <div class="fn__flex-1">\n 暗黑模式全局滤镜\n <div class="b3-label__text">不需要的时候别忘了关闭喔</div>\n </div>\n <span class="fn__space"></span>\n <select id="SC_winsay_cp_custom__root_filter_dark" class="b3-select fn__flex-center fn__size200">\n <option value="none">无</option>\n <option value="1">真彩显示</option>\n <option value="2">鲜艳模式</option>\n <option value="3">黑白显示</option>\n <option value="4">夜间模式</option>\n <option value="5">反色显示</option>\n </select>\n </label>\n <label class="fn__flex b3-label SC_ableC__Android_mobile">\n <div class="fn__flex-1">\n 滤镜定时开关\n <div class="b3-label__text">自动识别明暗模式。目前固定 18:00-6:00 时间段开启,后续版本支持自定义开启和关闭时间。</div>\n </div>\n <span class="fn__space"></span>\n <input class="b3-switch fn__flex-center" id="SC_winsay_cp_custom__filter_timer" type="checkbox">\n </label>\n <label class="fn__flex b3-label">\n <div class="fn__flex-1">\n 性能模式\n <div class="b3-label__text">减少动效以提升性能</div>\n </div>\n <span class="fn__space"></span>\n <input disabled class="b3-switch fn__flex-center" id="" type="checkbox">\n </label>\n <label class="fn__flex b3-label">\n <div class="fn__flex-1">\n 突破思源最大页签打开数限制\n <div class="b3-label__text">注意:仅用于临时需求,重载后会关闭额外打开的页签</div>\n </div>\n <span class="fn__space"></span>\n <select id="SC_winsay_cp_custom__EXTmaxOpenTabCount" class="b3-select fn__flex-center fn__size200">\n <option value="">关闭</option>\n <option value="58">扩容至58</option>\n <option value="82">扩容至82</option>\n </select>\n </label>\n <label class="fn__flex b3-label">\n <div class="fn__flex-1">\n 导出PDF形态\n <div class="b3-label__text">只影响导出PDF效果,如果不生效可尝试重新加载</div>\n </div>\n <span class="fn__space"></span>\n <select id="SC_winsay_cp_custom__defaultS" class="b3-select fn__flex-center fn__size200">\n <option value="">跟随明亮模式形态</option>\n <option value="preview.css">绝绝紫</option>\n <option value="preview-L-Blue.css">纯洁蓝</option>\n <option value="preview-L-Red.css">文中红</option>\n <option value="preview-L-Pink.css">砰砰粉</option>\n <option value="preview-L-Green.css">青葱绿</option>\n <option value="preview-L-Yellow.css">智慧金</option>\n </select>\n </label>\n <label class="fn__flex b3-label SC_ableC__Android_mobile">\n <div class="fn__flex-1">\n 主题明亮模式形态\n <div class="b3-label__text"></div>\n </div>\n <span class="fn__space"></span>\n <select id="SC_winsay_cp_custom__LS" class="b3-select fn__flex-center fn__size200">\n <option value="root.css">绝绝紫</option>\n <option value="root-L-Blue.css">纯洁蓝</option>\n <option value="root-L-Red.css">文中红</option>\n <option value="root-L-Pink.css">砰砰粉</option>\n <option value="root-L-Green.css">青葱绿</option>\n <option value="root-L-Yellow.css">智慧金</option>\n </select>\n </label>\n <label class="fn__flex b3-label SC_ableC__Android_mobile">\n <div class="fn__flex-1">\n 主题暗黑模式形态\n <div class="b3-label__text"></div>\n </div>\n <span class="fn__space"></span>\n <select id="SC_winsay_cp_custom__DS" class="b3-select fn__flex-center fn__size200">\n <option value="root-D-BlackGoldBlue.css">黑金蓝</option>\n <option value="root-D-InkGreenPurple.css">墨绿紫</option>\n </select>\n </label>\n </div>\n\n \x3c!-- 【扩展】配置项 --\x3e\n <div id="sc-custom-container-extension" class="sc-tab-container" data-name="extension" style="overflow-x: hidden;">\n <div class="sc-custom-placeholder">敬请期待</div>\n </div>\n\n \x3c!-- 【文档树】配置项 --\x3e\n <div id="sc-custom-container-filetree" class="sc-tab-container" data-name="filetree">\n <label class="fn__flex b3-label SC_ableC__Android_mobile">\n <div class="fn__flex-1">\n 文档树自适应显示\n <div class="b3-label__text">笔记本间距自适应+字号自适应+多层级自适应+粘性布局。注意:开启后隐藏一些选项。</div>\n </div>\n <span class="fn__space"></span>\n <input class="b3-switch fn__flex-center" id="SC_winsay_cp_filetree__Adaptive_display" type="checkbox"\n checked>\n </label>\n <div class="SC_cp_BP SC_ableC__Android_mobile" id="BP__SC_winsay_cp_filetree__Adaptive_display">\n <label class="fn__flex b3-label">\n <div class="fn__flex-1">\n 笔记本名字号\n <div class="b3-label__text">单位 pt</div>\n </div>\n <span class="fn__space"></span>\n <div class="b3-tooltips b3-tooltips__n fn__flex-center" aria-label="10"\n id="SC_winsay_cp_filetree__nbFontsize__label">\n <input class="b3-slider fn__size200" id="SC_winsay_cp_filetree__nbFontsize" max="16" min="10"\n step="0.2" type="range" value="10">\n </div>\n </label>\n <label class="fn__flex b3-label">\n <div class="fn__flex-1">\n 文档名字号\n <div class="b3-label__text">单位 pt</div>\n </div>\n <span class="fn__space"></span>\n <div class="b3-tooltips b3-tooltips__n fn__flex-center" aria-label="9"\n id="SC_winsay_cp_filetree__docFontsize__label">\n <input class="b3-slider fn__size200" id="SC_winsay_cp_filetree__docFontsize" max="13" min="8.5"\n step="0.1" type="range" value="9">\n </div>\n </label>\n <label class="fn__flex b3-label SC_disableC__Android">\n <div class="fn__flex-1">\n 笔记本间距\n <div class="b3-label__text">单位 em</div>\n </div>\n <span class="fn__space"></span>\n <div class="b3-tooltips b3-tooltips__n fn__flex-center" aria-label="0"\n id="SC_winsay_cp_filetree__nbMargin__label">\n <input class="b3-slider fn__size200" id="SC_winsay_cp_filetree__nbMargin" max="1" min="0"\n step="0.02" type="range" value="0">\n </div>\n </label>\n </div>\n <label class="fn__flex b3-label SC_ableC__Android_mobile">\n <div class="fn__flex-1">\n 隐藏 Untitle 文档名\n <div class="b3-label__text"></div>\n </div>\n <span class="fn__space"></span>\n <input class="b3-switch fn__flex-center" id="SC_winsay_cp_filetree__Hide_untitle" type="checkbox"\n checked>\n </label>\n <label class="fn__flex b3-label">\n <div class="fn__flex-1">\n 隐藏 【更多】 控件\n <div class="b3-label__text">仍可通过鼠标右键呼出更多菜单</div>\n </div>\n <span class="fn__space"></span>\n <input class="b3-switch fn__flex-center" id="SC_winsay_cp_filetree__Hide_item_action_more"\n type="checkbox">\n </label>\n <label class="fn__flex b3-label SC_ableC__Android_mobile">\n <div class="fn__flex-1">\n 隐藏文档树非顶级文档图标\n <div class="b3-label__text"></div>\n </div>\n <span class="fn__space"></span>\n <input class="b3-switch fn__flex-center" id="SC_winsay_cp_filetree__HideSomeIcon2SeeSee"\n type="checkbox">\n </label>\n <label class="fn__flex b3-label">\n <div class="fn__flex-1">\n 禁用文档树修改图标\n <div class="b3-label__text"></div>\n </div>\n <span class="fn__space"></span>\n <input class="b3-switch fn__flex-center" id="SC_winsay_cp_filetree__ChangeIconAvailability"\n type="checkbox">\n </label>\n <label class="fn__flex b3-label SC_ableC__Android_mobile">\n <div class="fn__flex-1">\n 禁用文档树笔记本名和文档名染色\n <div class="b3-label__text"></div>\n </div>\n <span class="fn__space"></span>\n <input class="b3-switch fn__flex-center" id="SC_winsay_cp_filetree__DyeingNameAvailability"\n type="checkbox">\n </label>\n </div>\n <div id="sc-custom-container-eHiWindom" class="sc-tab-container" data-name="eHiWindom">\n <div class="sc-custom-placeholder">敬请期待</div>\n </div>\n\n \x3c!-- 【关于】配置项 --\x3e\n <div id="sc-custom-container-about" class="sc-tab-container" data-name="about">\n <div class="b3-label">\n <div class="fn__hr"></div>\n 2022.10.14-现在 • Hi-Windom(海文东)<a style="margin-left: 13px;" href="https://github.com/Hi-Windom/Sofill/blob/main/OSD.md">开源软件声明</a>\n <div class="fn__hr"></div>\n <div class="fn__hr"></div>\n <div class="ft__on-surface">Sofill 系列主题的核心开发者是 <a href="https://ld246.com/member/soltus"\n target="_blank">Soltus</a>\n </div>\n </div>\n <div style="width:100%;"><img id="sofill_preview" src=""\n style="width:min(26%,580px)">\n </div>\n <label class="fn__flex b3-label">\n <div class="fn__flex-1" id="SC_winsay_cp_version">\n </div>\n <div class="fn__space"></div>\n <div class="fn__flex-center fn__size200">\n <button id="SC_winsay_cp__checkUpdateBtn" class="b3-button b3-button--outline fn__size200">\n <svg>\n <use xlink:href="#iconRefresh"></use>\n </svg>检查更新\n </button>\n </div>\n </label>\n <label class="fn__flex b3-label">\n <div class="fn__flex-1">\n 自检源\n <div class="b3-label__text">Github 源可获取最新版本</div>\n </div>\n <span class="fn__space"></span>\n <select id="SC_winsay_cp_about__checkAPI" class="b3-select fn__flex-center fn__size200">\n <option value="Bazaar">思源集市</option>\n <option value="Github">Github</option>\n </select>\n </label>\n <label class="fn__flex b3-label">\n <div class="fn__flex-1">\n 自动检查更新\n <div class="b3-label__text"></div>\n </div>\n <span class="fn__space"></span>\n <select id="SC_winsay_cp_about__checkTime" class="b3-select fn__flex-center fn__size200">\n <option value="">禁用</option>\n <option value="Once">启动时检查</option>\n </select>\n </label>\n <label class="fn__flex b3-label">\n <div class="fn__flex-1">\n 自动检查更新静默模式\n <div class="b3-label__text">无可用更新时免通知打扰,同时适当延迟启动时检查时间。</div>\n </div>\n <span class="fn__space"></span>\n <input class="b3-switch fn__flex-center" id="SC_winsay_cp_about__AutoCheckSilently"\n type="checkbox">\n </label>\n <label class="fn__flex b3-label">\n <div class="fn__flex-1">\n 自动检查更新忽略小版本\n <div class="b3-label__text">例如当前版本号1.4.1,那么1.4.x均不会提示更新,直到1.5才会提醒。该选项不影响手动检查更新,且不支持思源集市自检源。</div>\n </div>\n <span class="fn__space"></span>\n <input class="b3-switch fn__flex-center" id="SC_winsay_cp_about__AutoCheckIgnoreSVN"\n type="checkbox">\n </label>\n <label class="fn__flex b3-label SC_ableOnlyC__Android_mobile">\n <div class="fn__flex-1">\n 集市有更新时为我打开更新界面\n <div class="b3-label__text">使用默认浏览器打开伺服网页进行更新(手机端)。注意:(1)部分浏览器可能会无效;(2)浏览器伺服手机页面无效(直接把地址栏中的 mobile 替换为 desktop 然后刷新即可安装);(3)功能做好了,但是暂时用不了,会提示因网络问题更新失败,这个是思源的问题,同时思源还存在切换到后台内核断开的问题。</div>\n </div>\n <span class="fn__space"></span>\n <input class="b3-switch fn__flex-center" id="SC_winsay_cp_about__AutoToUpdateMobile"\n type="checkbox">\n </label>\n <label class="fn__flex b3-label">\n <div class="fn__flex-1">\n 检查更新范围\n <div class="b3-label__text"></div>\n </div>\n <span class="fn__space"></span>\n <select disabled id="" class="b3-select fn__flex-center fn__size200">\n <option value="">仅自检</option>\n <option value="Once">自检+已安装挂件</option>\n <option value="Interval">已安装主题</option>\n </select>\n </label>\n </div>\n\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n'}addEleEvent(){this.divEles.querySelector(".SCC-dialog").addEventListener("click",(e=>{const n=e.target.classList;(n.contains("SCC-close")||n.contains("b3-dialog__scrim"))&&this.close(),(n.contains("SCC-default")||n.contains("b3-button--cancel"))&&(this.opts.cancel(),this.close())}))}}async function $(e){return new Promise((function(n){var a=new XMLHttpRequest;a.open("POST","http://127.0.0.1:6806/api/file/getFile",!0),a.setRequestHeader("Content-type","application/json");var s={path:`/conf/appearance/themes/${e}/theme.json`};a.send(JSON.stringify(s)),a.onreadystatechange=()=>{if(4===a.readyState&&200===a.status){var e=a.responseText;n(JSON.parse(e))}}})).then((async function(n){window.winsay.localVersion.useGithub=n.version,window.winsay.localVersion.useBazaar=window.siyuan.config.appearance.themeVer,window.winsay.localVersion.version=await P(),window.winsay.localVersion.vinfoHTML=`当前版本 v<span>${window.winsay.localVersion.version}</span>\n <div class="b3-label__text"><a href="https://gitee.com/soltus/Sofill/blob/main/CHANGELOG/winsay.md" target="_blank">浏览更新历史</a></div>`,setTimeout((()=>{document.getElementById("sc-custom-container-placehold").children[0].innerHTML=`${e} v${window.winsay.localVersion.version} CP`,document.getElementById("SC_winsay_cp_version").innerHTML=window.winsay.localVersion.vinfoHTML}),100)}))}async function z(e=!1){let n=await o("SC_winsay_cp_about__checkAPI"),a=await P();if("Github"===n)await async function(e,n){await f(window.location.host,{}),await u(window.location.host,{}),new Promise((function(e){var n=`https://api.github.com/repos/Hi-Windom/${b}/releases/latest`,a=new XMLHttpRequest;a.open("GET",n,!0),a.setRequestHeader("Content-type","application/json"),a.send(null),a.onreadystatechange=()=>{if(4===a.readyState&&200===a.status){var n=a.responseText;e(JSON.parse(n))}}})).then((async function(a){let s=a.tag_name;if("true"===await o("SC_winsay_cp_about__AutoCheckIgnoreSVN")){let n=e.split(".");n.splice(-1),e=n.join(".");let a=s.split(".");a.splice(-1),s=a.join(".")}if(1===v(s,e)){console.warn("Github 有新版本发布");let n=new H({isCancel:!0,dragable:!1,XML:E,success(){console.log("点击了确定"),window.open(`https://github.com/Hi-Windom/${b}/releases/download/${s}/${y}__${s}.zip`,"_blank"),window.open(`https://github.com/Hi-Windom/${b}/releases/tag/${s}`,"_blank")},cancel(){console.log("点击了取消")},maskable:!0});await n.open((()=>{var n=/(http:\/\/|https:\/\/)((\w|=|\?|\.|\/|&|-)+)/g,l=a.body.replace(n,"<a href='$1$2'>$1$2</a>");document.getElementById("UpdateInfo").innerHTML=`${e} > ${s}<br><span class="fn__space"></span><div class="p" style="max-height: 250px;white-space: break-spaces;word-break: break-all;overflow: scroll;">${l}</div>`,document.getElementById("CoverWarming").innerHTML="下载链接能否访问取决于你的网络"})),await i.setItem("SC_winsay_latest_checked_version",s)}else!1===n&&d("真棒👍,主题已是最新版",800)}))}(a,e);else await async function(e,n){let a=await f(window.location.host,{}),s={};a.data.packages.forEach((e=>{"Sofill-"===e.name&&(s=e)})),1===v(s.version,e)?(console.warn("集市有新版本发布"),await i.setItem("SC_winsay_latest_checked_version",s.version),d(`集市有新版本发布:<br>${e} => ${s.version}<br> `),async function(e){if(document.body.classList.contains("body--mobile")&&!document.body.classList.contains("client--browser"))setTimeout((async()=>{"true"===await o("SC_winsay_cp_about__AutoToUpdateMobile")&&window.open(`http://0.0.0.0:6806/stage/build/desktop/?action=next&name=update-winsay&args=${encodeURIComponent(window.siyuan.config.localIPs[0]+":6806")}`,"_blank")}),500);else{document.querySelector("#toolbar #barSetting").click(),document.querySelector('.b3-tab-bar:not(.sc-custom-nav) [data-name="bazaar"]').click(),setTimeout((()=>{document.querySelector(`#configBazaarTheme [class="b3-card__actions"][data-name="${e}"]>[data-type="install-t"]`).click()}),1e3)}}("Sofill-")):!1===n&&d("真棒👍,主题已是最新版",800)}(a,e)}async function P(){return"Bazaar"===await o("SC_winsay_cp_about__checkAPI")?window.winsay.localVersion.useBazaar:window.winsay.localVersion.useGithub}async function q(){await e("SC_winsay_cp_about__checkTime",(async function(e){if(!n(e)&&"Once"===e){await $("Sofill-");"none"===document.querySelector("#SC-CP").style.display&&"true"===await o("SC_winsay_cp_about__AutoCheckSilently")?setTimeout((()=>{z(!0)}),31e3):setTimeout((()=>{z(!1)}),13e3)}})),await e("SC_winsay_cp_about__checkAPI",(async function(e){if(!n(e)){const e=await P();e&&(document.querySelector("#SC_winsay_cp_version > span").innerHTML=e)}}))}async function N(){await e("SC_winsay_cp_custom__EXTmaxOpenTabCount",(async function(e){if(n(e)){const e=await i.getItem("SC_winsay_cp_custom__EXTmaxOpenTabCount__origin");n(e)||(window.siyuan.config.fileTree.maxOpenTabCount=parseInt(e),i.removeItem("SC_winsay_cp_custom__EXTmaxOpenTabCount__origin"))}else{const a=await i.getItem("SC_winsay_cp_custom__EXTmaxOpenTabCount__origin");n(a)&&await i.setItem("SC_winsay_cp_custom__EXTmaxOpenTabCount__origin",window.siyuan.config.fileTree.maxOpenTabCount),window.siyuan.config.fileTree.maxOpenTabCount=parseInt(e)}})),await e("SC_winsay_cp_custom__root_filter_light",(async function(e){if(!n(e))switch(e){case"5":a("--SCC-Variables-root-filter-light","brightness(0.6) opacity(0.85) grayscale(0.13) saturate(1.31) contrast(1.31)");break;case"4":a("--SCC-Variables-root-filter-light","brightness(0.7) opacity(0.88) grayscale(0.3) saturate(1.31) contrast(1.86)");break;case"3":a("--SCC-Variables-root-filter-light","brightness(0.9) grayscale(1) contrast(1.1)");break;case"2":a("--SCC-Variables-root-filter-light","saturate(1.3) brightness(0.77) contrast(1.58)");break;case"1":a("--SCC-Variables-root-filter-light","brightness(0.9) saturate(1.31) contrast(1.31)");break;default:a("--SCC-Variables-root-filter-light","none")}})),await e("SC_winsay_cp_custom__root_filter_dark",(async function(e){if(!n(e))switch(e){case"5":a("--SCC-Variables-root-filter-dark","invert(77%) contrast(1.13) brightness(0.99)");break;case"4":a("--SCC-Variables-root-filter-dark","brightness(0.58) opacity(0.98) saturate(1.38) contrast(0.97)");break;case"3":a("--SCC-Variables-root-filter-dark","brightness(0.9) grayscale(1) contrast(1.1)");break;case"2":a("--SCC-Variables-root-filter-dark","saturate(1.58) brightness(1.05) contrast(0.95)");break;case"1":a("--SCC-Variables-root-filter-dark","brightness(1.05) saturate(1.13) contrast(1.03)");break;default:a("--SCC-Variables-root-filter-dark","none")}})),await s(document.getElementById("SC_winsay_cp_custom__filter_timer"),(async()=>{window.winsay.storage.It_filterTimer&&clearInterval(window.winsay.storage.It_filterTimer),window.winsay.storage.It_filterTimer=setInterval((async()=>{if(m.isDuringTime("18:00","6:00")){const e=document.documentElement.style.getPropertyValue("--SCC-Variables-root-filter-light"),n=document.documentElement.style.getPropertyValue("--SCC-Variables-root-filter-dark");await i.setItem("SC_winsay_cp_custom__root_Lfilter_daily",e),await i.setItem("SC_winsay_cp_custom__root_Dfilter_daily",n),a("--SCC-Variables-root-filter-light",await i.getItem("SC_winsay_cp_custom__root_Lfilter_daily")),a("--SCC-Variables-root-filter-dark",await i.getItem("SC_winsay_cp_custom__root_Dfilter_daily"))}else a("--SCC-Variables-root-filter-light",""),a("--SCC-Variables-root-filter-dark","")}),3e3)}),(()=>{window.winsay.storage.It_filterTimer&&clearInterval(window.winsay.storage.It_filterTimer);const e=document.querySelector("#SC_winsay_cp_custom__root_filter_light"),a=document.querySelector("#SC_winsay_cp_custom__root_filter_dark");if(!n(e)&&!n(a)){const n=new Event("change",{bubbles:!0}),s=e._valueTracker;s&&s.setValue(""),e.dispatchEvent(n);const l=new Event("change",{bubbles:!0}),t=a._valueTracker;t&&t.setValue(""),a.dispatchEvent(l)}})),await e("SC_winsay_cp_custom__defaultS",(async function(e){})),await e("SC_winsay_cp_custom__LS",(async function(e){n(e)||("light"===C?await i.setItem(w,e).then((e=>{import("./switchLD-73961bf9.js").then((async e=>{await e.iterLC()}))})):await i.getItem("SC_winsay_cp_custom__defaultS_auto"))})),await e("SC_winsay_cp_custom__DS",(async function(e){"dark"!==C||n(e)||await i.setItem(x,e).then((e=>{import("./switchLD-73961bf9.js").then((async e=>{await e.iterDC()}))}))}))}async function F(){await e("SC_winsay_cp_assets__PCards",(async function(e){n(e)&&document.getElementById("assets__PCards")?document.getElementById("assets__PCards").remove():l("assets__PCards",`${t}style/sweet/sugar/assets/${e}`)}))}async function W(){await s(document.getElementById("SC_winsay_cp_filetree__Hide_untitle"),(()=>{a("--SCC-Variables-MI-DocTree-Untitle-opacity","0")}),(()=>{a("--SCC-Variables-MI-DocTree-Untitle-opacity","1")})),await s(document.getElementById("SC_winsay_cp_filetree__Hide_item_action_more"),(()=>{a("--SCC-Variables-MI-DocTree-item-action-more-display","none")}),(()=>{p("--SCC-Variables-MI-DocTree-item-action-more-display")})),await s(document.getElementById("SC_winsay_cp_filetree__HideSomeIcon2SeeSee"),(()=>{a("--SCC-Varibales-DocTree-icon-MaxWidth","0")}),(()=>{p("--SCC-Varibales-DocTree-icon-MaxWidth")})),await s(document.getElementById("SC_winsay_cp_filetree__ChangeIconAvailability"),(()=>{a("--SCC-Variables-ChangeIconAvailability","none")}),(()=>{p("--SCC-Variables-ChangeIconAvailability")})),await s(document.getElementById("SC_winsay_cp_filetree__DyeingNameAvailability"),(()=>{p("--SCC-Variables-DyeingName-Notebook"),p("--SCC-Variables-DyeingName-Doc")}),(()=>{a("--SCC-Variables-DyeingName-Notebook","var(--SCC-baseComponent-text-color-2)"),a("--SCC-Variables-DyeingName-Doc","var(--SCC-baseComponent-text-color-1)")})),await s(document.getElementById("SC_winsay_cp_filetree__Adaptive_display"),(()=>{l("MI-DocTree-Adaptive",`${t}style/sweet/MI-DocTree-Adaptive.css`),document.getElementById("BP__SC_winsay_cp_filetree__Adaptive_display").classList.add("fn__none")}),(()=>{_(`${t}style/sweet/MI-DocTree-Adaptive.css`,"css"),document.getElementById("BP__SC_winsay_cp_filetree__Adaptive_display").classList.remove("fn__none")})),await e("SC_winsay_cp_filetree__docFontsize",(async function(e){n(e)||(a("--SCC-Variables-MI-DocTree-docFontsize",`${e}pt`),document.getElementById("SC_winsay_cp_filetree__docFontsize__label").setAttribute("aria-label",`${e}`),await i.setItem("SC_winsay_cp_filetree__docFontsize__label",e))})),await e("SC_winsay_cp_filetree__nbFontsize",(async()=>{const e=await o("SC_winsay_cp_filetree__nbFontsize");n(e)||(a("--SCC-Variables-MI-DocTree-nbFontsize",`${e}pt`),document.getElementById("SC_winsay_cp_filetree__nbFontsize__label").setAttribute("aria-label",`${e}`),await i.setItem("SC_winsay_cp_filetree__nbFontsize__label",e))})),await e("SC_winsay_cp_filetree__nbMargin",(async function(e){n(e)||(a("--SCC-Variables-MI-DocTree-nbMargin",`${e}em`),document.getElementById("SC_winsay_cp_filetree__nbMargin__label").setAttribute("aria-label",`${e}`),await i.setItem("SC_winsay_cp_filetree__nbMargin__label",e))}))}async function O(){await e("SC_winsay_cp_search__layout",(async function(e){n(e)&&document.getElementById("search__layout")?document.getElementById("search__layout").remove():l("search__layout",`${t}style/sweet/sugar/search/${e}`)})),await s(document.getElementById("SC_winsay_cp_search__index"),(()=>{l("search__index",`${t}style/sweet/sugar/search/index.css`)}),(()=>{_(`${t}style/sweet/sugar/search/index.css`,"css")})),await s(document.getElementById("SC_winsay_cp_search__disable_tips"),(()=>{const e=document.getElementById("search__disable_tips");e&&e.remove()}),(()=>{l("search__disable_tips",`${t}style/sweet/sugar/search/tips.css`)}))}async function R(){await s(document.getElementById("SC_winsay_cp_system__SelfProtection"),(()=>{let e=null;window.winsay.storage.It_SelfProtector&&clearInterval(window.winsay.storage.It_SelfProtector),window.winsay.storage.It_SelfProtector=setInterval((async()=>{window.siyuan.config.appearance.hideStatusBar&&(null==document.getElementById("Info")&&(e=new H({isCancel:!0,dragable:!1,XML:M,success(){console.log("点击了确定");let e=!1;const n=document.querySelector("#toolbar #barSetting"),a=document.querySelector('.b3-tab-bar:not(.sc-custom-nav) [data-name="appearance"]');null==a&&(e=!0),e&&n.click(),a.click(),setTimeout((()=>{document.querySelector("#hideStatusBar").click()}),200),e&&setTimeout((()=>{document.elementFromPoint(1,1).click()}),200)},cancel(){console.log("点击了取消")},maskable:!0})),e&&await e.open((()=>{document.getElementById("Info").innerHTML="检测到底部状态栏被隐藏,主题设置入口不可用!是否立即开启?",document.getElementById("CoverWarming").innerHTML="若要禁用此提醒,请在主题设置中关闭【主题自我保护】"})));try{n("")}catch(e){console.error(e),alert("主题自我保护检测到异常:Sofill- 内核已被篡改,若重载无效请重新安装")}}),3e4)}),(()=>{window.winsay.storage.It_SelfProtector&&clearInterval(window.winsay.storage.It_SelfProtector)})),await s(document.getElementById("SC_winsay_cp_system__Ball"),(()=>{if("body--mobile"===r){const e=document.querySelector("#Sofill-MobileBall");e&&(e.style.display="none")}}),(()=>{if("body--mobile"===r){const e=document.querySelector("#Sofill-MobileBall");e?e.style.display="block":d("Sofill-MobileBall not found")}}))}async function G(){var e=null;S()&&(e=require("fs"),require("path")),document.getElementById("SC_winsay_cp_system__ClearlocalStorage").addEventListener("click",(async()=>{new H({isCancel:!0,dragable:!1,XML:I,success(){console.log("点击了确定");var e=0;i.length().then((n=>{for(var a=0;a<n;a++)i.key(a).then((n=>{(n.startsWith("winsay_")||n.startsWith("SC_winsay_"))&&(i.removeItem(n),console.log(`${n} removed`),e++)}))})),d(`已清理 ${e} 项<br>页面即将刷新`),setTimeout((()=>{window.location.reload()}),3e3)},cancel(){console.log("点击了取消")},maskable:!0}).open()})),document.getElementById("SC_winsay_cp_system__ResetAllSettings").addEventListener("click",(async()=>{new H({isCancel:!0,dragable:!1,XML:T,success(){console.log("点击了确定");var e=0;i.length().then((n=>{for(var a=0;a<n;a++)i.key(a).then((n=>{n.startsWith("SC_winsay_cp")&&(i.removeItem(n),console.log(`${n} removed`),e++)}))})),d(`已重置 ${e} 项<br>页面即将刷新`),setTimeout((()=>{window.location.reload()}),3e3)},cancel(){console.log("点击了取消")},maskable:!0}).open()})),document.getElementById("SC_winsay_cp_system__Refresh").addEventListener("click",(async()=>{setTimeout((()=>{window.location.reload()}),300)})),document.getElementById("SC_winsay_cp_system__ShowDebugInfo").addEventListener("click",(async()=>{setTimeout((()=>{new H({isCancel:!0,dragable:!1,XML:L,success(){console.log("点击了确定")},cancel(){console.log("点击了取消")},maskable:!1}).open((()=>{document.getElementById("UpdateInfo").innerHTML=`\n<div style="max-height: 58vh;overflow: auto;white-space: nowrap;">\nlocalIPs <br><code class="fn__code">${window.siyuan.config.localIPs}</code><br><br>\napi.token <br><code class="fn__code">${window.siyuan.config.api.token}</code><br><br>\nsystem.homeDir <br><code class="fn__code">${window.siyuan.config.system.homeDir}</code><br><br>\nsystem.workspaceDir <br><code class="fn__code">${window.siyuan.config.system.workspaceDir}</code><br><br>\nsystem.confDir <br><code class="fn__code">${window.siyuan.config.system.confDir}</code><br><br>\nsystem.dataDir <br><code class="fn__code">${window.siyuan.config.system.dataDir}</code><br><br>\nappearance.darkThemes <br><code class="fn__code">${window.siyuan.config.appearance.darkThemes}</code><br><br>\nappearance.lightThemes <br><code class="fn__code">${window.siyuan.config.appearance.lightThemes}</code><br><br>\nappearance.mode <br><code class="fn__code">${window.siyuan.config.appearance.mode}</code><br><br>\nappearance.themeDark <br><code class="fn__code">${window.siyuan.config.appearance.themeDark}</code><br><br>\nappearance.themeLight <br><code class="fn__code">${window.siyuan.config.appearance.themeLight}</code><br><br>\nappearance.themeVer <br><code class="fn__code">${window.siyuan.config.appearance.themeVer}</code><br><br>\nappearance.blockRefTextLeft <br><code class="fn__code">${window.siyuan.config.export.blockRefTextLeft}</code><br><br>\nappearance.blockRefTextRight <br><code class="fn__code">${window.siyuan.config.export.blockRefTextRight}</code><br><br>\nfileTree.maxOpenTabCount(页签打开最大数量) <br><code class="fn__code">${window.siyuan.config.fileTree.maxOpenTabCount}</code><br><br>\nsystem.fixedPort(是否固定端口) <br><code class="fn__code">${window.siyuan.config.system.fixedPort}</code><br><br>\nappearance.hideStatusBar(修改没有效果,仅用于判断是否隐藏底部状态栏) <br><code class="fn__code">${window.siyuan.config.appearance.hideStatusBar}</code><br><br>\nappearance.customCSS(是否开启自定义主题) <br><code class="fn__code">${window.siyuan.config.appearance.customCSS}</code>\n</div>\n`,console.warn(window.siyuan.languages)}))}),300)})),document.getElementById("SC__exportData").addEventListener("click",(async()=>{var n=document.querySelector("#SC__exportData_a"),a=0,s=0,l={winsay:{},sy_editor:{},sy_keymap:{}};i.length().then((e=>{for(var n=0;n<e;n++)i.key(n).then((e=>{if(e.startsWith("winsay_")||e.startsWith("SC_winsay_"))try{i.getItem(e).then((n=>{l.winsay[e]=n})),s++}catch(n){console.error(`${e} is not a valid value for ${n}`),l.winsay[e]=null}finally{a++}}))}));let t=await i.getItem("SC_winsay_cp__exportData__EXT_sy_editor");l.sy_editor="true"===t?window.siyuan.config.editor:"禁用了附加这部分数据";let o=await i.getItem("SC_winsay_cp__exportData__EXT_sy_keymap");if(l.sy_keymap="true"===o?window.siyuan.config.keymap:"禁用了附加这部分数据","true"===await i.getItem("SC_winsay_cp__exportData__EXT_sy_sync")?(l.sy_sync=window.siyuan.config.sync,l.sy_repo=window.siyuan.config.repo):(l.sy_sync="禁用了附加这部分数据",l.sy_repo="禁用了附加这部分数据"),g())document.body.classList.contains("user--Sub")?(h.putFile(`/data/snippets/Sofill-ConfigData__${Date.now()}.json`,JSON.stringify(l)),d(`导出 ${s}/${a}<br>【订阅用户权益生效提示】备份已保存到同步文件夹 ${window.siyuan.config.system.dataDir}/snippets/`)):d("平台受限,仅支持订阅用户导出");else{var _=new Blob([JSON.stringify(l)]);n.href=URL.createObjectURL(_),n.download="Sofill-ConfigData.json",n.click(),d(`导出 ${s}/${a}`),e&&document.body.classList.contains("user--Sub")&&e.writeFile(`${window.siyuan.config.system.dataDir}/snippets/Sofill-ConfigData__${Date.now()}.json`,JSON.stringify(l),"utf-8",(function(e){e?console.error(e):(console.log("Write successfully~~"),d(`【订阅用户权益生效提示】备份已保存到同步文件夹 ${window.siyuan.config.system.dataDir}/snippets/`))}))}})),document.getElementById("SC__importData").addEventListener("click",(async()=>{var e=document.querySelector("#SC__importData_i");e.onchange=()=>{if(""===this.value||this.files.length<1)return console.warn("Oops..."),!1;var e=0,n=0,a={},s=0,l=new FileReader;l.readAsText(this.files[0]),l.onload=async function(l){var t=l.target.result;try{t=JSON.parse(t)}catch(e){return void d(`无效数据 ${e}`,3e3)}for(var o in console.log(t),t)if(a[o]={},"winsay"===o)for(var _ in t[o])e+=1,t[o][_]!==await i.getItem(_)&&(n+=1,a[o][_]=`${await i.getItem(_)} => ${t[o][_]}`);console.warn("================================ Changes Preview ================================"),console.log(a),console.warn("================================================================================");let c=new H({isCancel:!0,dragable:!1,XML:V,success(){for(var l in console.log("点击了确定"),t)if(a[l]={},"winsay"===l)for(var o in t[l])try{i.setItem(o,t[l][o]).then((e=>{s+=1,console.warn(`${o} updated`)}))}catch(e){console.error(e)}d(`导入成功 ${s}/${e},覆盖 ${n} 项`)},cancel(){console.log("点击了取消")},maskable:!0});await c.open((()=>{document.getElementById("CoverWarming").innerHTML=`影响 ${n}/${e} 项`}))}},e.value=""})),document.getElementById("SC_winsay_cp__checkUpdateBtn").addEventListener("click",(async()=>{z()}))}function U(){var e=null;if(null==document.getElementById("SC-CP")&&(e=new D({isCancel:!0,dragable:!1,maskable:!0})),"body--mobile"===r){const n=document.getElementById("sidebar"),a=document.getElementById("menu");if(null==document.getElementById("Sofill-CDUI-1")){const s=document.createElement("svg");s.setAttribute("data-type",""),s.id="Sofill-CDUI-1",s.className="Sofill-CDUI-btn toolbar__icon",s.innerHTML='<svg id="CP_ep1" viewBox="0 0 32 32">\n <path d="M25.143 10.667h-1.524v-3.048c0-4.206-3.413-7.619-7.619-7.619s-7.619 3.413-7.619 7.619v3.048h-1.524c-1.676 0-3.048 1.371-3.048 3.048v15.238c0 1.676 1.371 3.048 3.048 3.048h18.286c1.676 0 3.048-1.371 3.048-3.048v-15.238c0-1.676-1.371-3.048-3.048-3.048zM11.428 7.619c0-2.53 2.042-4.571 4.571-4.571s4.571 2.042 4.571 4.571v3.048h-9.143v-3.048zM25.143 28.952h-18.286v-15.238h18.286v15.238zM16 24.381c1.676 0 3.048-1.371 3.048-3.048s-1.371-3.048-3.048-3.048-3.048 1.371-3.048 3.048 1.371 3.048 3.048 3.048z"></path>\n </svg>';const l=document.createElement("div");l.id="Sofill-CDUI-2",l.className="Sofill-CDUI-btn b3-list-item b3-list-item--big",l.innerHTML='<span class="b3-list-item__icon b3-list-item__graphic">🏳️‍🌈</span><span class="b3-list-item__text">主题设置</span>',n.children[0].insertAdjacentElement("beforeend",s),document.querySelector("#Sofill-CDUI-1").addEventListener("click",(async n=>{e.open(),await $("Sofill-"),n.stopPropagation()})),document.querySelector("#toolbarMore").addEventListener("click",(n=>{setTimeout((()=>{a.insertBefore(l,a.children[0]),document.querySelector("#Sofill-CDUI-2").addEventListener("click",(async n=>{e.open(),await $("Sofill-")}))}),100)}))}}else{var n=document.querySelector("#barHelp");if(n&&(n.addEventListener("click",(e=>{let n=e.target,a=n.parentNode,s=a.parentNode,l=s.parentNode;if("toolbarVIP"===s.id||"toolbarVIP"===l.id){document.querySelector("#toolbar #barSetting").click(),document.querySelector('.b3-tab-bar:not(.sc-custom-nav) [data-name="account"]').click(),e.stopPropagation()}else if("barMode"===a.id||"barMode"===s.id){document.querySelector("#toolbar #barMode").click(),e.stopPropagation()}else a.classList.contains("b3-menu__item")||s.classList.contains("b3-menu__item")?console.log(n.innerHTML):"barTopHelp"===n.id||"barTopHelp"===a.id?n.id="barHelp":e.stopPropagation()}),!0),n.setAttribute("class","toolbar__item"),n.children[0].innerHTML='<use xlink:href="#iconMore"></use>',async function(n,a,s,l){if(null==document.getElementById(s)){const i=document.createElement("button");i.id=s,i.className=l,i.ariaLabel="主题设置(实验性)",i.style.paddingRight="0",i.innerHTML='<svg class="b3-menu__icon Sofill-CDUI-btn__icon" "=""><use xlink:href="#iconSettings"></use></svg><span class="b3-menu__label">主题设置</span>',n.insertAdjacentElement(a,i),document.getElementById(s).onclick=async()=>{e.open(),await $("Sofill-"),document.getElementById("sofill_preview").setAttribute("src",`${t}preview.png`)}}}(n.children[1],"beforeend","Sofill-CDUI-1","Sofill-CDUI-btn b3-menu__item")),n&&null==document.getElementById("sc_drawer")){var a=document.createElement("div");a.id="sc_drawer",a.style.display="flex",a.style.flexDirection="row-reverse",a.style.borderBottom="2px dashed var(--b3-theme-surface-lighter)",a.style.minHeight="2rem",setTimeout((()=>{a.setAttribute("data-themeInfo",`${b}`)}),1e3),n.children[1].insertAdjacentElement("afterbegin",a)}if(document.querySelector("body.android.body--desktop")){let e='<svg><use xlink:href="#iconQuit"></use></svg>',n=document.querySelector("#toolbar"),a=document.createElement("div");a.id="barQuit",a.className="toolbar__item b3-tooltips b3-tooltips__sw",a.setAttribute("aria-label","退出 Quit"),a.innerHTML=e,n.insertAdjacentElement("beforeend",a),a.onclick=()=>{if(document.body.classList.contains("client--browser")){document.querySelector("#toolbar #barSetting").click(),document.querySelector('.b3-tab-bar:not(.sc-custom-nav) [data-name="about"]').click(),setTimeout((()=>{document.querySelector("#menuSafeQuit").click(),document.elementFromPoint(1,1).click()}),500)}else window.location.href="siyuan://api/system/exit"}}}}class X{constructor(e,n){return new Proxy(e,n)}}async function j(){const e=document.querySelector("#SC-CP"),n=e.querySelectorAll("select:not([id^='NoSync'])"),a=e.querySelectorAll("input[id^='SC_winsay_cp']:not([type='checkbox'])"),s=e.querySelectorAll("input[type='checkbox']:not([id^='NoSync'])"),l=[];l.push.apply(l,n),l.push.apply(l,a),l.push.apply(l,s);const t="myDB",i=1;let o;function _(e,n){return new Promise(((a,s)=>{const l=o.transaction(["myTable"],"readwrite").objectStore("myTable").put({id:e,name:e,value:n});l.onsuccess=()=>{a()},l.onerror=()=>{console.error(`set value ${e} to indexeddb error`),s()}}))}new Promise(((e,n)=>{const a=window.indexedDB.open(t,i);a.onsuccess=()=>{o=a.result,e(o)},a.onerror=()=>{console.error("open indexeddb error"),n()},a.onupgradeneeded=()=>{a.result.createObjectStore("myTable",{keyPath:"id"}).createIndex("name","name",{unique:!1})}})).then((()=>{l.forEach((e=>{const n=e.id;n&&(function(e){return new Promise(((n,a)=>{const s=o.transaction(["myTable"],"readonly").objectStore("myTable").index("name").get(e);s.onsuccess=()=>{n(function(e){let n,a=e[0],s=1;for(;s<e.length;){const l=e[s],t=e[s+1];if(s+=2,("optionalAccess"===l||"optionalCall"===l)&&null==a)return;"access"===l||"optionalAccess"===l?(n=a,a=t(a)):"call"!==l&&"optionalCall"!==l||(a=t(((...e)=>a.call(n,...e))),n=void 0)}return a}([s,"access",e=>e.result,"optionalAccess",e=>e.value]))},s.onerror=()=>{console.error(`get value ${e} from indexeddb error`),a()}}))}(n).then((n=>{if("checkbox"===e.type)e.checked=Boolean(n);else if("range"===e.type||"number"===e.type)e.value=String(n);else if("SELECT"===e.tagName){const a=e.querySelector(`option[value="${n}"]`);a&&(a.selected=!0)}})),e.addEventListener("change",(()=>{let a;"checkbox"===e.type?a=e.checked:"range"===e.type||"number"===e.type?a=Number(e.value):"SELECT"===e.tagName&&(a=e.value),_(n,a)})))}))}));new X(e,{get:(e,n,a)=>Reflect.get(e,n,a),set(e,n,a,s){Reflect.set(e,n,a,s);const l=document.querySelector(`#${String(n)}`);if(l)if("checkbox"===l.type)l.checked=Boolean(a);else if("range"===l.type||"number"===l.type)l.value=String(a);else if("SELECT"===l.tagName){const e=l.querySelector(`option[value="${a}"]`);e&&(e.selected=!0)}return _(String(n),a),!0}})}export{j as C,U as a,G as b,k as c,B as d,q as e,N as f,F as g,W as h,O as i,R as j};