diff --git a/404.html b/404.html index b6c20c32..87fcbb4d 100644 --- a/404.html +++ b/404.html @@ -5,10 +5,10 @@ 404 | 轻雪机器人 - - + + - + @@ -17,7 +17,7 @@
- + \ No newline at end of file diff --git a/assets/app.CFNZxMrj.js b/assets/app.DCMrthsh.js similarity index 58% rename from assets/app.CFNZxMrj.js rename to assets/app.DCMrthsh.js index 9b8c13e8..18179eb9 100644 --- a/assets/app.CFNZxMrj.js +++ b/assets/app.DCMrthsh.js @@ -1 +1 @@ -import{R as p}from"./chunks/theme.dkAQqrG2.js";import{U as o,aa as u,ab as l,ac as c,ad as f,ae as d,af as m,ag as h,ah as g,ai as A,aj as y,d as P,u as v,y as w,x as C,ak as R,al as b,am as E,an as S}from"./chunks/framework.C4_mTacX.js";function i(e){if(e.extends){const a=i(e.extends);return{...a,...e,async enhanceApp(t){a.enhanceApp&&await a.enhanceApp(t),e.enhanceApp&&await e.enhanceApp(t)}}}return e}const s=i(p),T=P({name:"VitePressApp",setup(){const{site:e,lang:a,dir:t}=v();return w(()=>{C(()=>{document.documentElement.lang=a.value,document.documentElement.dir=t.value})}),e.value.router.prefetchLinks&&R(),b(),E(),s.setup&&s.setup(),()=>S(s.Layout)}});async function j(){globalThis.__VITEPRESS__=!0;const e=D(),a=x();a.provide(l,e);const t=c(e.route);return a.provide(f,t),a.component("Content",d),a.component("ClientOnly",m),Object.defineProperties(a.config.globalProperties,{$frontmatter:{get(){return t.frontmatter.value}},$params:{get(){return t.page.value.params}}}),s.enhanceApp&&await s.enhanceApp({app:a,router:e,siteData:h}),{app:a,router:e,data:t}}function x(){return g(T)}function D(){let e=o,a;return A(t=>{let n=y(t),r=null;return n&&(e&&(a=n),(e||a===n)&&(n=n.replace(/\.js$/,".lean.js")),r=import(n)),o&&(e=!1),r},s.NotFound)}o&&j().then(({app:e,router:a,data:t})=>{a.go().then(()=>{u(a.route,t.site),e.mount("#app")})});export{j as createApp}; +import{R as p}from"./chunks/theme.0PwJcuzq.js";import{R as o,a8 as u,a9 as l,aa as c,ab as f,ac as d,ad as m,ae as h,af as g,ag as A,ah as v,d as P,u as R,v as w,s as y,ai as C,aj as b,ak as E,al as S}from"./chunks/framework.jrU0lkHV.js";function i(e){if(e.extends){const a=i(e.extends);return{...a,...e,async enhanceApp(t){a.enhanceApp&&await a.enhanceApp(t),e.enhanceApp&&await e.enhanceApp(t)}}}return e}const s=i(p),T=P({name:"VitePressApp",setup(){const{site:e,lang:a,dir:t}=R();return w(()=>{y(()=>{document.documentElement.lang=a.value,document.documentElement.dir=t.value})}),e.value.router.prefetchLinks&&C(),b(),E(),s.setup&&s.setup(),()=>S(s.Layout)}});async function j(){globalThis.__VITEPRESS__=!0;const e=_(),a=D();a.provide(l,e);const t=c(e.route);return a.provide(f,t),a.component("Content",d),a.component("ClientOnly",m),Object.defineProperties(a.config.globalProperties,{$frontmatter:{get(){return t.frontmatter.value}},$params:{get(){return t.page.value.params}}}),s.enhanceApp&&await s.enhanceApp({app:a,router:e,siteData:h}),{app:a,router:e,data:t}}function D(){return g(T)}function _(){let e=o,a;return A(t=>{let n=v(t),r=null;return n&&(e&&(a=n),(e||a===n)&&(n=n.replace(/\.js$/,".lean.js")),r=import(n)),o&&(e=!1),r},s.NotFound)}o&&j().then(({app:e,router:a,data:t})=>{a.go().then(()=>{u(a.route,t.site),e.mount("#app")})});export{j as createApp}; diff --git a/assets/chunks/@localSearchIndexen.DFtgcR16.js b/assets/chunks/@localSearchIndexen.DFtgcR16.js new file mode 100644 index 00000000..baafddb1 --- /dev/null +++ b/assets/chunks/@localSearchIndexen.DFtgcR16.js @@ -0,0 +1 @@ +const e=`{"documentCount":301,"nextId":301,"documentIds":{"0":"/en/deploy/config.html#configurations","1":"/en/deploy/config.html#basic-configuration","2":"/en/deploy/config.html#other-configurations","3":"/en/deploy/config.html#example-configuration-of-onebot-implementation-side-connected-to-nonebot","4":"/en/deploy/config.html#other","5":"/en/deploy/fandq.html#faq","6":"/en/deploy/fandq.html#frequently-asked-questions","7":"/en/deploy/fandq.html#other-questions","8":"/en/deploy/fandq.html#recommended-solution-qq","9":"/en/deploy/fandq.html#recommended-solution-minecraft","10":"/en/deploy/fandq.html#acknowledgements","11":"/en/deploy/install.html#install","12":"/en/deploy/install.html#normal-installation","13":"/en/deploy/install.html#run-with-docker","14":"/en/deploy/install.html#use-trss-script","15":"/en/deploy/install.html#device-requirements","16":"/en/deploy/install.html#for-other-questions-please-refer-to-faq","17":"/en/dev/api/bot/#module-liteyuki-bot","18":"/en/dev/api/bot/#class-liteyukibot","19":"/en/dev/api/bot/#func-init-self-kwargs-none","20":"/en/dev/api/bot/#func-run-self","21":"/en/dev/api/bot/#async-func-keep-alive-self","22":"/en/dev/api/bot/#func-restart-self-delay-int-0","23":"/en/dev/api/bot/#func-restart-process-self-name-optional-str-none","24":"/en/dev/api/bot/#func-init-self-args-kwargs","25":"/en/dev/api/bot/#func-init-logger-self","26":"/en/dev/api/bot/#func-stop-self","27":"/en/dev/api/bot/#func-on-before-start-self-func-lifespan-func-lifespan-func","28":"/en/dev/api/bot/#func-on-after-start-self-func-lifespan-func","29":"/en/dev/api/bot/#func-on-after-shutdown-self-func-lifespan-func","30":"/en/dev/api/bot/#func-on-before-process-shutdown-self-func-process-lifespan-func","31":"/en/dev/api/bot/#func-on-before-process-restart-self-func-process-lifespan-func-process-lifespan-func","32":"/en/dev/api/bot/#func-on-after-restart-self-func-lifespan-func","33":"/en/dev/api/bot/#func-get-bot-liteyukibot","34":"/en/dev/api/bot/#func-get-config-key-str-default-any-none-any","35":"/en/dev/api/bot/#func-get-config-with-compat-key-str-compat-keys-tuple-str-default-any-none-any","36":"/en/dev/api/bot/lifespan.html#module-liteyuki-bot-lifespan","37":"/en/dev/api/bot/lifespan.html#var-sync-lifespan-func","38":"/en/dev/api/bot/lifespan.html#var-async-lifespan-func","39":"/en/dev/api/bot/lifespan.html#var-lifespan-func","40":"/en/dev/api/bot/lifespan.html#var-sync-process-lifespan-func","41":"/en/dev/api/bot/lifespan.html#var-async-process-lifespan-func","42":"/en/dev/api/bot/lifespan.html#var-process-lifespan-func","43":"/en/dev/api/bot/lifespan.html#class-lifespan","44":"/en/dev/api/bot/lifespan.html#func-init-self-none","45":"/en/dev/api/bot/lifespan.html#async-func-run-funcs-funcs-sequence-lifespan-func-process-lifespan-func-args-kwargs-none","46":"/en/dev/api/bot/lifespan.html#func-on-before-start-self-func-lifespan-func-lifespan-func","47":"/en/dev/api/bot/lifespan.html#func-on-after-start-self-func-lifespan-func-lifespan-func","48":"/en/dev/api/bot/lifespan.html#func-on-before-process-shutdown-self-func-process-lifespan-func-process-lifespan-func","49":"/en/dev/api/bot/lifespan.html#func-on-after-shutdown-self-func-lifespan-func-lifespan-func","50":"/en/dev/api/bot/lifespan.html#func-on-before-process-restart-self-func-process-lifespan-func-process-lifespan-func","51":"/en/dev/api/bot/lifespan.html#func-on-after-restart-self-func-lifespan-func-lifespan-func","52":"/en/dev/api/bot/lifespan.html#async-func-before-start-self-none","53":"/en/dev/api/bot/lifespan.html#async-func-after-start-self-none","54":"/en/dev/api/bot/lifespan.html#async-func-before-process-shutdown-self-args-kwargs-none","55":"/en/dev/api/bot/lifespan.html#async-func-after-shutdown-self-none","56":"/en/dev/api/bot/lifespan.html#async-func-before-process-restart-self-args-kwargs-none","57":"/en/dev/api/bot/lifespan.html#async-func-after-restart-self-none","58":"/en/dev/api/comm/channel.html#module-liteyuki-comm-channel","59":"/en/dev/api/comm/channel.html#var-sync-on-receive-func","60":"/en/dev/api/comm/channel.html#var-on-receive-func","61":"/en/dev/api/comm/channel.html#var-sync-filter-func","62":"/en/dev/api/comm/channel.html#var-async-filter-func","63":"/en/dev/api/comm/channel.html#var-filter-func","64":"/en/dev/api/comm/channel.html#class-channel-generic-t","65":"/en/dev/api/comm/channel.html#func-init-self-name-str-type-check-optional-bool-none","66":"/en/dev/api/comm/channel.html#func-send-self-data-t","67":"/en/dev/api/comm/channel.html#func-receive-self-t","68":"/en/dev/api/comm/channel.html#async-func-async-receive-self-t","69":"/en/dev/api/comm/channel.html#func-on-receive-self-filter-func-optional-filter-func-none-callable-callable-t-any-callable-t-any","70":"/en/dev/api/comm/channel.html#var-active-channel","71":"/en/dev/api/comm/channel.html#var-passive-channel","72":"/en/dev/api/comm/channel.html#var-channel-deliver-active-channel","73":"/en/dev/api/comm/channel.html#var-channel-deliver-passive-channel","74":"/en/dev/api/comm/channel.html#func-set-channel-name-str-channel-channel","75":"/en/dev/api/comm/channel.html#func-set-channels-channels-dict-str-channel","76":"/en/dev/api/comm/channel.html#func-get-channel-name-str-channel","77":"/en/dev/api/comm/channel.html#func-get-channels-dict-str-channel","78":"/en/dev/api/comm/channel.html#func-on-set-channel-data-tuple-str-dict-str-any","79":"/en/dev/api/comm/channel.html#func-on-get-channel-data-tuple-str-dict-str-any","80":"/en/dev/api/comm/channel.html#func-on-get-channels-data-tuple-str-dict-str-any","81":"/en/dev/api/comm/event.html#module-liteyuki-comm-event","82":"/en/dev/api/comm/event.html#class-event","83":"/en/dev/api/comm/event.html#func-init-self-name-str-data-dict-str-any","84":"/en/dev/api/comm/#module-liteyuki-comm","85":"/en/dev/api/comm/storage.html#module-liteyuki-comm-storage","86":"/en/dev/api/comm/storage.html#var-on-main-subscriber-receive-funcs","87":"/en/dev/api/comm/storage.html#var-on-sub-subscriber-receive-funcs","88":"/en/dev/api/comm/storage.html#class-keyvaluestore","89":"/en/dev/api/comm/storage.html#func-init-self","90":"/en/dev/api/comm/storage.html#func-set-self-key-str-value-any-none","91":"/en/dev/api/comm/storage.html#func-get-self-key-str-default-optional-any-none-optional-any","92":"/en/dev/api/comm/storage.html#func-delete-self-key-str-ignore-key-error-bool-true-none","93":"/en/dev/api/comm/storage.html#func-get-all-self-dict-str-any","94":"/en/dev/api/comm/storage.html#func-publish-self-channel-str-data-any-none","95":"/en/dev/api/comm/storage.html#func-on-subscriber-receive-self-channel-str-callable-on-receive-func-on-receive-func","96":"/en/dev/api/comm/storage.html#async-func-run-subscriber-receive-funcs-channel-str-data-any","97":"/en/dev/api/comm/storage.html#async-func-start-receive-loop-self","98":"/en/dev/api/comm/storage.html#class-globalkeyvaluestore","99":"/en/dev/api/comm/storage.html#func-get-instance-cls","100":"/en/dev/api/comm/storage.html#attr-instance-none","101":"/en/dev/api/comm/storage.html#attr-lock-threading-lock","102":"/en/dev/api/comm/storage.html#var-shared-memory","103":"/en/dev/api/comm/storage.html#var-ref-count","104":"/en/dev/api/comm/storage.html#func-on-get-data-tuple-str-dict-str-any","105":"/en/dev/api/comm/storage.html#func-on-set-data-tuple-str-dict-str-any","106":"/en/dev/api/comm/storage.html#func-on-delete-data-tuple-str-dict-str-any","107":"/en/dev/api/comm/storage.html#func-on-get-all-data-tuple-str-dict-str-any","108":"/en/dev/api/config.html#module-liteyuki-config","109":"/en/dev/api/config.html#func-flat-config-config-dict-str-any-dict-str-any","110":"/en/dev/api/config.html#func-load-from-yaml-file-str-dict-str-any","111":"/en/dev/api/config.html#func-load-from-json-file-str-dict-str-any","112":"/en/dev/api/config.html#func-load-from-toml-file-str-dict-str-any","113":"/en/dev/api/config.html#func-load-from-files-files-str-no-warning-bool-false-dict-str-any","114":"/en/dev/api/config.html#func-load-configs-from-dirs-directories-str-no-waring-bool-false-dict-str-any","115":"/en/dev/api/config.html#func-load-config-in-default-no-waring-bool-false-dict-str-any","116":"/en/dev/api/core/#module-liteyuki-core","117":"/en/dev/api/core/manager.html#module-liteyuki-core-manager","118":"/en/dev/api/core/manager.html#class-channeldeliver","119":"/en/dev/api/core/manager.html#func-init-self-active-channel-any-passive-channel-any-channel-deliver-active-channel-channel-any-channel-deliver-passive-channel-tuple-str-dict-publish-channel-tuple-str-any","120":"/en/dev/api/core/manager.html#class-processmanager","121":"/en/dev/api/core/manager.html#func-init-self-lifespan-lifespan","122":"/en/dev/api/core/manager.html#func-start-all-self","123":"/en/dev/api/core/manager.html#func-add-target-self-name-str-target-target-func-args-tuple-kwargs-none","124":"/en/dev/api/core/manager.html#func-join-all-self","125":"/en/dev/api/core/manager.html#func-terminate-self-name-str","126":"/en/dev/api/core/manager.html#func-terminate-all-self","127":"/en/dev/api/core/manager.html#func-is-process-alive-self-name-str-bool","128":"/en/dev/api/core/manager.html#class-subprocessmanager","129":"/en/dev/api/core/manager.html#func-init-self","130":"/en/dev/api/core/manager.html#func-new-process-self-name-str-args-kwargs-callable-processfunctype-none","131":"/en/dev/api/core/manager.html#func-add-self-name-str-func-processfunctype-args-kwargs","132":"/en/dev/api/core/manager.html#func-start-self-name-str","133":"/en/dev/api/core/manager.html#func-start-all-self-1","134":"/en/dev/api/dev/#module-liteyuki-dev","135":"/en/dev/api/dev/observer.html#module-liteyuki-dev-observer","136":"/en/dev/api/dev/observer.html#var-callback-func","137":"/en/dev/api/dev/observer.html#var-filter-func","138":"/en/dev/api/dev/observer.html#func-debounce-wait","139":"/en/dev/api/dev/observer.html#class-codemodifiedhandler-filesystemeventhandler","140":"/en/dev/api/dev/observer.html#func-on-modified-self-event","141":"/en/dev/api/dev/observer.html#func-on-created-self-event","142":"/en/dev/api/dev/observer.html#func-on-deleted-self-event","143":"/en/dev/api/dev/observer.html#func-on-moved-self-event","144":"/en/dev/api/dev/observer.html#func-on-any-event-self-event","145":"/en/dev/api/dev/observer.html#func-on-file-system-event-directories-tuple-str-recursive-bool-true-event-filter-filter-func-none-callable-callback-func-callback-func","146":"/en/dev/api/dev/plugin.html#module-liteyuki-dev-plugin","147":"/en/dev/api/dev/plugin.html#func-run-plugins-module-path-str-path","148":"/en/dev/api/exception.html#module-liteyuki-exception","149":"/en/dev/api/exception.html#class-liteyukiexception-baseexception","150":"/en/dev/api/#module-liteyuki","151":"/en/dev/api/#var-version","152":"/en/dev/api/log.html#module-liteyuki-log","153":"/en/dev/api/log.html#func-get-format-level-str-str","154":"/en/dev/api/log.html#func-init-log-config-dict","155":"/en/dev/api/mkdoc.html#module-liteyuki-mkdoc","156":"/en/dev/api/mkdoc.html#class-deftype-enum","157":"/en/dev/api/mkdoc.html#attr-function-function","158":"/en/dev/api/mkdoc.html#attr-method-method","159":"/en/dev/api/mkdoc.html#attr-static-method-staticmethod","160":"/en/dev/api/mkdoc.html#attr-class-method-classmethod","161":"/en/dev/api/mkdoc.html#attr-property-property","162":"/en/dev/api/mkdoc.html#class-functioninfo-basemodel","163":"/en/dev/api/mkdoc.html#attr-name-str-no-default","164":"/en/dev/api/mkdoc.html#attr-args-list-tuple-str-str-no-default","165":"/en/dev/api/mkdoc.html#attr-return-type-str-no-default","166":"/en/dev/api/mkdoc.html#attr-docstring-str-no-default","167":"/en/dev/api/mkdoc.html#attr-source-code-str","168":"/en/dev/api/mkdoc.html#attr-type-deftype-no-default","169":"/en/dev/api/mkdoc.html#attr-is-async-bool-no-default","170":"/en/dev/api/mkdoc.html#class-attributeinfo-basemodel","171":"/en/dev/api/mkdoc.html#attr-name-str-no-default-1","172":"/en/dev/api/mkdoc.html#attr-type-str-no-default","173":"/en/dev/api/mkdoc.html#attr-value-any-none","174":"/en/dev/api/mkdoc.html#attr-docstring-str","175":"/en/dev/api/mkdoc.html#class-classinfo-basemodel","176":"/en/dev/api/mkdoc.html#attr-name-str-no-default-2","177":"/en/dev/api/mkdoc.html#attr-docstring-str-no-default-1","178":"/en/dev/api/mkdoc.html#attr-methods-list-functioninfo-no-default","179":"/en/dev/api/mkdoc.html#attr-attributes-list-attributeinfo-no-default","180":"/en/dev/api/mkdoc.html#attr-inherit-list-str-no-default","181":"/en/dev/api/mkdoc.html#class-moduleinfo-basemodel","182":"/en/dev/api/mkdoc.html#attr-module-path-str-no-default","183":"/en/dev/api/mkdoc.html#attr-functions-list-functioninfo-no-default","184":"/en/dev/api/mkdoc.html#attr-classes-list-classinfo-no-default","185":"/en/dev/api/mkdoc.html#attr-attributes-list-attributeinfo-no-default-1","186":"/en/dev/api/mkdoc.html#attr-docstring-str-no-default-2","187":"/en/dev/api/mkdoc.html#func-get-relative-path-base-path-str-target-path-str-str","188":"/en/dev/api/mkdoc.html#func-write-to-files-file-data-dict-str-str","189":"/en/dev/api/mkdoc.html#func-get-file-list-module-folder-str","190":"/en/dev/api/mkdoc.html#func-get-module-info-normal-file-path-str-ignore-private-bool-true-moduleinfo","191":"/en/dev/api/mkdoc.html#func-generate-markdown-module-info-moduleinfo-front-matter-none-lang-str-zh-cn-str","192":"/en/dev/api/mkdoc.html#func-generate-docs-module-folder-str-output-dir-str-with-top-bool-false-lang-str-zh-cn-ignored-paths-none","193":"/en/dev/api/mkdoc.html#var-no-module-name-pyfile-path","194":"/en/dev/api/plugin/#module-liteyuki-plugin","195":"/en/dev/api/plugin/#func-get-loaded-plugins-dict-str-plugin","196":"/en/dev/api/plugin/load.html#module-liteyuki-plugin-load","197":"/en/dev/api/plugin/load.html#func-load-plugin-module-path-str-path-optional-plugin","198":"/en/dev/api/plugin/load.html#func-load-plugins-plugin-dir-str-ignore-warning-bool-true-set-plugin","199":"/en/dev/api/plugin/load.html#func-format-display-name-display-name-str-plugin-type-plugintype-str","200":"/en/dev/api/plugin/manager.html#module-liteyuki-plugin-manager","201":"/en/dev/api/plugin/model.html#module-liteyuki-plugin-model","202":"/en/dev/api/plugin/model.html#class-plugintype-enum","203":"/en/dev/api/plugin/model.html#attr-application-application","204":"/en/dev/api/plugin/model.html#attr-service-service","205":"/en/dev/api/plugin/model.html#attr-module-module","206":"/en/dev/api/plugin/model.html#attr-unclassified-unclassified","207":"/en/dev/api/plugin/model.html#attr-test-test","208":"/en/dev/api/plugin/model.html#class-pluginmetadata-basemodel","209":"/en/dev/api/plugin/model.html#attr-name-str-no-default","210":"/en/dev/api/plugin/model.html#attr-description-str","211":"/en/dev/api/plugin/model.html#attr-usage-str","212":"/en/dev/api/plugin/model.html#attr-type-plugintype-plugintype-unclassified","213":"/en/dev/api/plugin/model.html#attr-author-str","214":"/en/dev/api/plugin/model.html#attr-homepage-str","215":"/en/dev/api/plugin/model.html#attr-extra-dict-str-any","216":"/en/dev/api/plugin/model.html#class-plugin-basemodel","217":"/en/dev/api/plugin/model.html#func-hash-self","218":"/en/dev/api/plugin/model.html#attr-model-config-arbitrary-types-allowed-true","219":"/en/dev/api/plugin/model.html#attr-name-str-no-default-1","220":"/en/dev/api/plugin/model.html#attr-module-moduletype-no-default","221":"/en/dev/api/plugin/model.html#attr-module-name-str-no-default","222":"/en/dev/api/plugin/model.html#attr-metadata-optional-pluginmetadata-none","223":"/en/dev/api/plugins/#module-liteyuki-plugins","224":"/en/dev/api/plugins/liteecho.html#module-liteyuki-plugins-liteecho","225":"/en/dev/api/plugins/liteecho.html#async-func-liteecho-event-messageevent","226":"/en/dev/api/session/event.html#module-liteyuki-session-event","227":"/en/dev/api/session/event.html#class-messageevent","228":"/en/dev/api/session/event.html#func-init-self-bot-id-str-message-list-dict-str-any-str-message-type-str-raw-message-str-session-id-str-user-id-str-session-type-str-receive-channel-optional-channel-messageevent-none-data-optional-dict-str-any-none","229":"/en/dev/api/session/event.html#func-reply-self-message-str-dict-str-any","230":"/en/dev/api/plugins/plugin_loader/#module-liteyuki-plugins-plugin-loader","231":"/en/dev/api/plugins/plugin_loader/#func-default-plugins-loader","232":"/en/dev/api/session/#module-liteyuki-session","233":"/en/dev/api/session/matcher.html#module-liteyuki-session-matcher","234":"/en/dev/api/session/matcher.html#class-matcher","235":"/en/dev/api/session/matcher.html#func-init-self-rule-rule-priority-int-block-bool","236":"/en/dev/api/session/matcher.html#func-handle-self-callable-eventhandler-eventhandler","237":"/en/dev/api/session/matcher.html#async-func-run-self-event-messageevent-none","238":"/en/dev/api/session/on.html#module-liteyuki-session-on","239":"/en/dev/api/session/on.html#func-add-matcher-matcher-matcher","240":"/en/dev/api/session/on.html#func-on-message-rule-rule-empty-rule-priority-int-0-block-bool-false-matcher","241":"/en/dev/api/session/on.html#func-on-keywords-keywords-list-str-rule-empty-rule-priority-int-0-block-bool-false-matcher","242":"/en/dev/api/session/rule.html#module-liteyuki-session-rule","243":"/en/dev/api/session/rule.html#var-rulehandlerfunc","244":"/en/dev/api/session/rule.html#class-rule","245":"/en/dev/api/session/rule.html#func-init-self-handler-rulehandlerfunc","246":"/en/dev/api/session/rule.html#func-self-other-rule-rule","247":"/en/dev/api/session/rule.html#func-self-other-rule-rule-1","248":"/en/dev/api/session/rule.html#async-func-self-event-messageevent-bool","249":"/en/dev/api/session/rule.html#async-func-empty-rule-event-messageevent-bool","250":"/en/dev/api/session/rule.html#async-func-is-su-rule-event-messageevent-bool","251":"/en/dev/api/session/session.html#module-liteyuki-session-session","252":"/en/dev/api/utils.html#module-liteyuki-utils","253":"/en/dev/api/utils.html#func-is-coroutine-callable-call-callable-any-bool","254":"/en/dev/api/utils.html#func-run-coroutine-coro-coroutine","255":"/en/dev/api/utils.html#func-run-coroutine-in-thread-coro-coroutine","256":"/en/dev/api/utils.html#func-path-to-module-name-path-path-str","257":"/en/dev/api/utils.html#func-async-wrapper-func-callable-any-callable-coroutine","258":"/en/dev/best_practices.html#best-practices","259":"/en/dev/best_practices.html#bot-applications","260":"/en/dev/best_practices.html#plugins","261":"/en/dev/best_practices.html#others","262":"/en/dev/comm.html#channel-communication","263":"/en/dev/comm.html#introduction","264":"/en/dev/comm.html#example","265":"/en/dev/comm.html#共享内存通信","266":"/en/dev/comm.html#简介","267":"/en/dev/comm.html#示例","268":"/en/dev/guide.html#development-guide","269":"/en/dev/guide.html#how-to-develop","270":"/en/dev/guide.html#suggestions","271":"/en/dev/guide.html#project-structure","272":"/en/dev/guide.html#standardization","273":"/en/dev/guide.html#finally","274":"/en/dev/lyfunc.html#轻雪函数","275":"/en/dev/lyfunc.html#函数文件","276":"/en/dev/lyfunc.html#命令文档","277":"/en/dev/lyfunc.html#示例","278":"/en/dev/lyfunc.html#api","279":"/en/dev/lyfunc.html#结束关键字","280":"/en/dev/plugin.html#简介","281":"/en/dev/plugin.html#开始","282":"/en/dev/plugin.html#创建插件","283":"/en/dev/plugin.html#编写逻辑部分","284":"/en/dev/plugin.html#加载插件","285":"/en/dev/plugin.html#方法1","286":"/en/dev/plugin.html#方法2","287":"/en/dev/resource.html#简介","288":"/en/dev/resource.html#加载资源包","289":"/en/usage/agreement.html#用户协议","290":"/en/usage/basic.html#基础插件","291":"/en/usage/basic.html#轻雪命令liteyuki-command","292":"/en/usage/basic.html#命令别名","293":"/en/usage/basic.html#插件-包管理器-liteyuki-pacman","294":"/en/usage/basic.html#命令别名-1","295":"/en/usage/basic.html#用户管理liteyuki-user","296":"/en/usage/extra.html#功能插件命令","297":"/en/usage/extra.html#轻雪天气liteyuki-weather","298":"/en/usage/extra.html#命令别名","299":"/en/usage/extra.html#统计信息liteyuki-statistics","300":"/en/usage/extra.html#命令别名-1"},"fieldIds":{"title":0,"titles":1,"text":2},"fieldLength":{"0":[1,1,50],"1":[2,1,82],"2":[2,1,67],"3":[9,1,71],"4":[1,1,21],"5":[1,1,1],"6":[3,1,172],"7":[2,1,18],"8":[4,1,31],"9":[4,1,25],"10":[1,1,14],"11":[1,1,1],"12":[2,1,59],"13":[3,1,57],"14":[3,1,18],"15":[2,1,83],"16":[6,3,1],"17":[3,1,1],"18":[2,3,1],"19":[6,5,60],"20":[4,5,31],"21":[6,5,33],"22":[8,5,62],"23":[10,5,38],"24":[6,5,19],"25":[5,5,16],"26":[4,5,18],"27":[8,5,22],"28":[8,5,21],"29":[8,5,22],"30":[10,5,24],"31":[10,5,25],"32":[8,5,22],"33":[5,3,37],"34":[10,3,29],"35":[14,3,48],"36":[4,1,24],"37":[4,4,8],"38":[4,4,9],"39":[3,4,11],"40":[5,4,9],"41":[5,4,10],"42":[4,4,12],"43":[2,4,1],"44":[5,6,34],"45":[13,6,41],"46":[8,6,23],"47":[8,6,23],"48":[10,6,25],"49":[8,6,23],"50":[10,6,25],"51":[8,6,23],"52":[7,6,23],"53":[7,6,23],"54":[10,6,26],"55":[7,6,24],"56":[10,6,26],"57":[7,6,24],"58":[4,1,3],"59":[5,4,9],"60":[4,4,12],"61":[4,4,9],"62":[4,4,11],"63":[3,4,11],"64":[5,4,1],"65":[12,9,74],"66":[6,9,47],"67":[5,9,32],"68":[6,9,31],"69":[15,9,66],"70":[3,4,9],"71":[3,4,9],"72":[4,4,11],"73":[4,4,12],"74":[7,4,43],"75":[7,4,22],"76":[7,4,34],"77":[8,4,39],"78":[10,4,27],"79":[10,4,30],"80":[10,4,29],"81":[4,1,2],"82":[2,4,1],"83":[9,6,16],"84":[3,1,8],"85":[4,1,4],"86":[6,4,12],"87":[6,4,12],"88":[2,4,1],"89":[4,6,33],"90":[9,6,34],"91":[12,6,40],"92":[12,6,45],"93":[9,6,33],"94":[9,6,24],"95":[13,6,54],"96":[11,6,31],"97":[7,6,45],"98":[2,4,2],"99":[5,6,21],"100":[4,6,1],"101":[6,6,1],"102":[3,4,9],"103":[3,4,17],"104":[9,4,31],"105":[9,4,29],"106":[9,4,29],"107":[10,4,29],"108":[3,1,14],"109":[8,3,41],"110":[10,3,38],"111":[10,3,37],"112":[10,3,37],"113":[14,3,46],"114":[16,3,52],"115":[15,3,37],"116":[3,1,1],"117":[4,1,24],"118":[2,4,1],"119":[14,6,21],"120":[2,4,1],"121":[6,6,20],"122":[5,6,31],"123":[14,6,51],"124":[5,6,16],"125":[6,6,34],"126":[5,6,15],"127":[9,6,30],"128":[2,4,1],"129":[4,6,15],"130":[13,6,26],"131":[9,6,26],"132":[6,6,25],"133":[5,6,23],"134":[3,1,2],"135":[4,1,5],"136":[3,4,9],"137":[3,4,9],"138":[4,4,28],"139":[4,4,3],"140":[6,8,19],"141":[6,8,12],"142":[6,8,12],"143":[6,8,12],"144":[6,8,12],"145":[20,4,54],"146":[4,1,24],"147":[9,4,33],"148":[3,1,2],"149":[4,3,1],"150":[2,1,10],"151":[3,2,7],"152":[3,1,24],"153":[6,3,20],"154":[6,3,49],"155":[3,1,24],"156":[4,3,1],"157":[5,7,1],"158":[5,7,1],"159":[6,7,1],"160":[6,7,1],"161":[5,7,1],"162":[4,3,1],"163":[6,7,1],"164":[8,7,1],"165":[7,7,1],"166":[6,7,1],"167":[6,7,1],"168":[6,7,1],"169":[7,7,1],"170":[4,3,1],"171":[6,7,1],"172":[6,7,1],"173":[5,7,1],"174":[5,7,1],"175":[4,3,1],"176":[6,7,1],"177":[6,7,1],"178":[7,7,1],"179":[7,7,1],"180":[7,7,1],"181":[4,3,1],"182":[7,7,1],"183":[7,7,1],"184":[7,7,1],"185":[7,7,1],"186":[6,7,1],"187":[8,3,23],"188":[9,3,39],"189":[8,3,30],"190":[15,3,145],"191":[15,3,97],"192":[20,3,97],"193":[6,3,10],"194":[3,1,1],"195":[9,3,20],"196":[4,1,24],"197":[12,4,78],"198":[15,4,61],"199":[9,4,40],"200":[4,1,24],"201":[4,1,24],"202":[4,4,1],"203":[5,8,1],"204":[5,8,1],"205":[5,8,1],"206":[5,8,1],"207":[5,8,1],"208":[4,4,1],"209":[6,8,1],"210":[5,8,1],"211":[5,8,1],"212":[5,8,1],"213":[5,8,1],"214":[5,8,1],"215":[7,8,1],"216":[4,4,1],"217":[3,8,13],"218":[9,8,1],"219":[6,8,1],"220":[6,8,1],"221":[7,8,1],"222":[6,8,1],"223":[3,1,15],"224":[4,1,30],"225":[6,4,23],"226":[4,1,24],"227":[2,4,1],"228":[24,6,35],"229":[9,6,37],"230":[5,1,24],"231":[5,5,24],"232":[3,1,24],"233":[4,1,24],"234":[2,4,1],"235":[10,6,28],"236":[7,6,23],"237":[8,6,33],"238":[4,1,24],"239":[5,4,24],"240":[15,4,21],"241":[16,4,32],"242":[4,1,24],"243":[2,4,11],"244":[2,4,1],"245":[6,6,13],"246":[7,6,21],"247":[7,6,22],"248":[8,6,23],"249":[8,4,19],"250":[9,4,24],"251":[3,1,24],"252":[3,1,5],"253":[9,3,33],"254":[6,3,45],"255":[8,3,23],"256":[8,3,41],"257":[8,3,28],"258":[2,1,1],"259":[2,2,19],"260":[1,2,10],"261":[1,2,30],"262":[2,1,1],"263":[1,2,46],"264":[1,2,105],"265":[1,2,1],"266":[1,3,9],"267":[1,3,18],"268":[2,1,1],"269":[3,2,67],"270":[1,5,34],"271":[2,2,60],"272":[1,2,141],"273":[1,2,23],"274":[1,1,9],"275":[1,1,25],"276":[1,1,33],"277":[1,2,26],"278":[1,1,7],"279":[1,1,18],"280":[1,1,4],"281":[1,1,1],"282":[1,2,42],"283":[1,2,58],"284":[1,2,1],"285":[1,3,6],"286":[1,3,25],"287":[1,1,31],"288":[1,1,56],"289":[1,1,28],"290":[1,1,16],"291":[2,1,86],"292":[1,3,30],"293":[4,1,53],"294":[1,5,38],"295":[2,1,20],"296":[1,1,1],"297":[2,1,30],"298":[1,3,8],"299":[2,1,35],"300":[1,3,17]},"averageFieldLength":[5.644518272425252,4.139534883720927,22.481727574750828],"storedFields":{"0":{"title":"Configurations","titles":[]},"1":{"title":"Basic Configuration","titles":["Configurations"]},"2":{"title":"Other configurations","titles":["Configurations"]},"3":{"title":"Example: Configuration of OneBot implementation side connected to NoneBot","titles":["Configurations"]},"4":{"title":"Other","titles":["Configurations"]},"5":{"title":"FAQ","titles":[]},"6":{"title":"Frequently Asked Questions","titles":["FAQ"]},"7":{"title":"Other questions","titles":["FAQ"]},"8":{"title":"Recommended Solution(QQ)","titles":["FAQ"]},"9":{"title":"Recommended Solution(Minecraft)","titles":["FAQ"]},"10":{"title":"Acknowledgements","titles":["FAQ"]},"11":{"title":"Install","titles":[]},"12":{"title":"Normal Installation","titles":["Install"]},"13":{"title":"Run with Docker","titles":["Install"]},"14":{"title":"Use TRSS Script","titles":["Install"]},"15":{"title":"Device Requirements","titles":["Install"]},"16":{"title":"For other questions, please refer to","titles":["Install","Device Requirements"]},"17":{"title":"Module liteyuki.bot","titles":[]},"18":{"title":"class LiteyukiBot","titles":["Module liteyuki.bot"]},"19":{"title":"func __init__(self, **kwargs) -> None","titles":["Module liteyuki.bot","class LiteyukiBot"]},"20":{"title":"func run(self)","titles":["Module liteyuki.bot","class LiteyukiBot"]},"21":{"title":"async func keep_alive(self)","titles":["Module liteyuki.bot","class LiteyukiBot"]},"22":{"title":"func restart(self, delay: int = 0)","titles":["Module liteyuki.bot","class LiteyukiBot"]},"23":{"title":"func restart_process(self, name: Optional[str] = None)","titles":["Module liteyuki.bot","class LiteyukiBot"]},"24":{"title":"func init(self, *args, **kwargs)","titles":["Module liteyuki.bot","class LiteyukiBot"]},"25":{"title":"func init_logger(self)","titles":["Module liteyuki.bot","class LiteyukiBot"]},"26":{"title":"func stop(self)","titles":["Module liteyuki.bot","class LiteyukiBot"]},"27":{"title":"func on_before_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC","titles":["Module liteyuki.bot","class LiteyukiBot"]},"28":{"title":"func on_after_start(self, func: LIFESPAN_FUNC)","titles":["Module liteyuki.bot","class LiteyukiBot"]},"29":{"title":"func on_after_shutdown(self, func: LIFESPAN_FUNC)","titles":["Module liteyuki.bot","class LiteyukiBot"]},"30":{"title":"func on_before_process_shutdown(self, func: PROCESS_LIFESPAN_FUNC)","titles":["Module liteyuki.bot","class LiteyukiBot"]},"31":{"title":"func on_before_process_restart(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC","titles":["Module liteyuki.bot","class LiteyukiBot"]},"32":{"title":"func on_after_restart(self, func: LIFESPAN_FUNC)","titles":["Module liteyuki.bot","class LiteyukiBot"]},"33":{"title":"func get_bot() -> LiteyukiBot","titles":["Module liteyuki.bot"]},"34":{"title":"func get_config(key: str, default: Any = None) -> Any","titles":["Module liteyuki.bot"]},"35":{"title":"func get_config_with_compat(key: str, compat_keys: tuple[str], default: Any = None) -> Any","titles":["Module liteyuki.bot"]},"36":{"title":"Module liteyuki.bot.lifespan","titles":[]},"37":{"title":"var SYNC_LIFESPAN_FUNC","titles":["Module liteyuki.bot.lifespan"]},"38":{"title":"var ASYNC_LIFESPAN_FUNC","titles":["Module liteyuki.bot.lifespan"]},"39":{"title":"var LIFESPAN_FUNC","titles":["Module liteyuki.bot.lifespan"]},"40":{"title":"var SYNC_PROCESS_LIFESPAN_FUNC","titles":["Module liteyuki.bot.lifespan"]},"41":{"title":"var ASYNC_PROCESS_LIFESPAN_FUNC","titles":["Module liteyuki.bot.lifespan"]},"42":{"title":"var PROCESS_LIFESPAN_FUNC","titles":["Module liteyuki.bot.lifespan"]},"43":{"title":"class Lifespan","titles":["Module liteyuki.bot.lifespan"]},"44":{"title":"func __init__(self) -> None","titles":["Module liteyuki.bot.lifespan","class Lifespan"]},"45":{"title":"async func run_funcs(funcs: Sequence[LIFESPAN_FUNC | PROCESS_LIFESPAN_FUNC], *args, **kwargs) -> None","titles":["Module liteyuki.bot.lifespan","class Lifespan"]},"46":{"title":"func on_before_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC","titles":["Module liteyuki.bot.lifespan","class Lifespan"]},"47":{"title":"func on_after_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC","titles":["Module liteyuki.bot.lifespan","class Lifespan"]},"48":{"title":"func on_before_process_shutdown(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC","titles":["Module liteyuki.bot.lifespan","class Lifespan"]},"49":{"title":"func on_after_shutdown(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC","titles":["Module liteyuki.bot.lifespan","class Lifespan"]},"50":{"title":"func on_before_process_restart(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC","titles":["Module liteyuki.bot.lifespan","class Lifespan"]},"51":{"title":"func on_after_restart(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC","titles":["Module liteyuki.bot.lifespan","class Lifespan"]},"52":{"title":"async func before_start(self) -> None","titles":["Module liteyuki.bot.lifespan","class Lifespan"]},"53":{"title":"async func after_start(self) -> None","titles":["Module liteyuki.bot.lifespan","class Lifespan"]},"54":{"title":"async func before_process_shutdown(self, *args, **kwargs) -> None","titles":["Module liteyuki.bot.lifespan","class Lifespan"]},"55":{"title":"async func after_shutdown(self) -> None","titles":["Module liteyuki.bot.lifespan","class Lifespan"]},"56":{"title":"async func before_process_restart(self, *args, **kwargs) -> None","titles":["Module liteyuki.bot.lifespan","class Lifespan"]},"57":{"title":"async func after_restart(self) -> None","titles":["Module liteyuki.bot.lifespan","class Lifespan"]},"58":{"title":"Module liteyuki.comm.channel","titles":[]},"59":{"title":"var SYNC_ON_RECEIVE_FUNC","titles":["Module liteyuki.comm.channel"]},"60":{"title":"var ON_RECEIVE_FUNC","titles":["Module liteyuki.comm.channel"]},"61":{"title":"var SYNC_FILTER_FUNC","titles":["Module liteyuki.comm.channel"]},"62":{"title":"var ASYNC_FILTER_FUNC","titles":["Module liteyuki.comm.channel"]},"63":{"title":"var FILTER_FUNC","titles":["Module liteyuki.comm.channel"]},"64":{"title":"class Channel(Generic[T])","titles":["Module liteyuki.comm.channel"]},"65":{"title":"func __init__(self, name: str, type_check: Optional[bool] = None)","titles":["Module liteyuki.comm.channel","class Channel(Generic[T])"]},"66":{"title":"func send(self, data: T)","titles":["Module liteyuki.comm.channel","class Channel(Generic[T])"]},"67":{"title":"func receive(self) -> T","titles":["Module liteyuki.comm.channel","class Channel(Generic[T])"]},"68":{"title":"async func async_receive(self) -> T","titles":["Module liteyuki.comm.channel","class Channel(Generic[T])"]},"69":{"title":"func on_receive(self, filter_func: Optional[FILTER_FUNC] = None) -> Callable[[Callable[[T], Any]], Callable[[T], Any]]","titles":["Module liteyuki.comm.channel","class Channel(Generic[T])"]},"70":{"title":"var active_channel","titles":["Module liteyuki.comm.channel"]},"71":{"title":"var passive_channel","titles":["Module liteyuki.comm.channel"]},"72":{"title":"var channel_deliver_active_channel","titles":["Module liteyuki.comm.channel"]},"73":{"title":"var channel_deliver_passive_channel","titles":["Module liteyuki.comm.channel"]},"74":{"title":"func set_channel(name: str, channel: Channel)","titles":["Module liteyuki.comm.channel"]},"75":{"title":"func set_channels(channels: dict[str, Channel])","titles":["Module liteyuki.comm.channel"]},"76":{"title":"func get_channel(name: str) -> Channel","titles":["Module liteyuki.comm.channel"]},"77":{"title":"func get_channels() -> dict[str, Channel]","titles":["Module liteyuki.comm.channel"]},"78":{"title":"func on_set_channel(data: tuple[str, dict[str, Any]])","titles":["Module liteyuki.comm.channel"]},"79":{"title":"func on_get_channel(data: tuple[str, dict[str, Any]])","titles":["Module liteyuki.comm.channel"]},"80":{"title":"func on_get_channels(data: tuple[str, dict[str, Any]])","titles":["Module liteyuki.comm.channel"]},"81":{"title":"Module liteyuki.comm.event","titles":[]},"82":{"title":"class Event","titles":["Module liteyuki.comm.event"]},"83":{"title":"func __init__(self, name: str, data: dict[str, Any])","titles":["Module liteyuki.comm.event","class Event"]},"84":{"title":"Module liteyuki.comm","titles":[]},"85":{"title":"Module liteyuki.comm.storage","titles":[]},"86":{"title":"var _on_main_subscriber_receive_funcs","titles":["Module liteyuki.comm.storage"]},"87":{"title":"var _on_sub_subscriber_receive_funcs","titles":["Module liteyuki.comm.storage"]},"88":{"title":"class KeyValueStore","titles":["Module liteyuki.comm.storage"]},"89":{"title":"func __init__(self)","titles":["Module liteyuki.comm.storage","class KeyValueStore"]},"90":{"title":"func set(self, key: str, value: Any) -> None","titles":["Module liteyuki.comm.storage","class KeyValueStore"]},"91":{"title":"func get(self, key: str, default: Optional[Any] = None) -> Optional[Any]","titles":["Module liteyuki.comm.storage","class KeyValueStore"]},"92":{"title":"func delete(self, key: str, ignore_key_error: bool = True) -> None","titles":["Module liteyuki.comm.storage","class KeyValueStore"]},"93":{"title":"func get_all(self) -> dict[str, Any]","titles":["Module liteyuki.comm.storage","class KeyValueStore"]},"94":{"title":"func publish(self, channel_: str, data: Any) -> None","titles":["Module liteyuki.comm.storage","class KeyValueStore"]},"95":{"title":"func on_subscriber_receive(self, channel_: str) -> Callable[[ON_RECEIVE_FUNC], ON_RECEIVE_FUNC]","titles":["Module liteyuki.comm.storage","class KeyValueStore"]},"96":{"title":"async func run_subscriber_receive_funcs(channel_: str, data: Any)","titles":["Module liteyuki.comm.storage","class KeyValueStore"]},"97":{"title":"async func start_receive_loop(self)","titles":["Module liteyuki.comm.storage","class KeyValueStore"]},"98":{"title":"class GlobalKeyValueStore","titles":["Module liteyuki.comm.storage"]},"99":{"title":"func get_instance(cls)","titles":["Module liteyuki.comm.storage","class GlobalKeyValueStore"]},"100":{"title":"attr _instance = None","titles":["Module liteyuki.comm.storage","class GlobalKeyValueStore"]},"101":{"title":"attr _lock = threading.Lock()","titles":["Module liteyuki.comm.storage","class GlobalKeyValueStore"]},"102":{"title":"var shared_memory","titles":["Module liteyuki.comm.storage"]},"103":{"title":"var _ref_count","titles":["Module liteyuki.comm.storage"]},"104":{"title":"func on_get(data: tuple[str, dict[str, Any]])","titles":["Module liteyuki.comm.storage"]},"105":{"title":"func on_set(data: tuple[str, dict[str, Any]])","titles":["Module liteyuki.comm.storage"]},"106":{"title":"func on_delete(data: tuple[str, dict[str, Any]])","titles":["Module liteyuki.comm.storage"]},"107":{"title":"func on_get_all(data: tuple[str, dict[str, Any]])","titles":["Module liteyuki.comm.storage"]},"108":{"title":"Module liteyuki.config","titles":[]},"109":{"title":"func flat_config(config: dict[str, Any]) -> dict[str, Any]","titles":["Module liteyuki.config"]},"110":{"title":"func load_from_yaml(file_: str) -> dict[str, Any]","titles":["Module liteyuki.config"]},"111":{"title":"func load_from_json(file_: str) -> dict[str, Any]","titles":["Module liteyuki.config"]},"112":{"title":"func load_from_toml(file_: str) -> dict[str, Any]","titles":["Module liteyuki.config"]},"113":{"title":"func load_from_files(*files: str, *, no_warning: bool = False) -> dict[str, Any]","titles":["Module liteyuki.config"]},"114":{"title":"func load_configs_from_dirs(*directories: str, *, no_waring: bool = False) -> dict[str, Any]","titles":["Module liteyuki.config"]},"115":{"title":"func load_config_in_default(no_waring: bool = False) -> dict[str, Any]","titles":["Module liteyuki.config"]},"116":{"title":"Module liteyuki.core","titles":[]},"117":{"title":"Module liteyuki.core.manager","titles":[]},"118":{"title":"class ChannelDeliver","titles":["Module liteyuki.core.manager"]},"119":{"title":"func __init__(self, active: Channel[Any], passive: Channel[Any], channel_deliver_active: Channel[Channel[Any]], channel_deliver_passive: Channel[tuple[str, dict]], publish: Channel[tuple[str, Any]])","titles":["Module liteyuki.core.manager","class ChannelDeliver"]},"120":{"title":"class ProcessManager","titles":["Module liteyuki.core.manager"]},"121":{"title":"func __init__(self, lifespan: Lifespan)","titles":["Module liteyuki.core.manager","class ProcessManager"]},"122":{"title":"func start_all(self)","titles":["Module liteyuki.core.manager","class ProcessManager"]},"123":{"title":"func add_target(self, name: str, target: TARGET_FUNC, args: tuple = (), kwargs = None)","titles":["Module liteyuki.core.manager","class ProcessManager"]},"124":{"title":"func join_all(self)","titles":["Module liteyuki.core.manager","class ProcessManager"]},"125":{"title":"func terminate(self, name: str)","titles":["Module liteyuki.core.manager","class ProcessManager"]},"126":{"title":"func terminate_all(self)","titles":["Module liteyuki.core.manager","class ProcessManager"]},"127":{"title":"func is_process_alive(self, name: str) -> bool","titles":["Module liteyuki.core.manager","class ProcessManager"]},"128":{"title":"class _SubProcessManager","titles":["Module liteyuki.core.manager"]},"129":{"title":"func __init__(self)","titles":["Module liteyuki.core.manager","class _SubProcessManager"]},"130":{"title":"func new_process(self, name: str, *args, **kwargs) -> Callable[[ProcessFuncType], None]","titles":["Module liteyuki.core.manager","class _SubProcessManager"]},"131":{"title":"func add(self, name: str, func: ProcessFuncType, *args, **kwargs)","titles":["Module liteyuki.core.manager","class _SubProcessManager"]},"132":{"title":"func start(self, name: str)","titles":["Module liteyuki.core.manager","class _SubProcessManager"]},"133":{"title":"func start_all(self)","titles":["Module liteyuki.core.manager","class _SubProcessManager"]},"134":{"title":"Module liteyuki.dev","titles":[]},"135":{"title":"Module liteyuki.dev.observer","titles":[]},"136":{"title":"var CALLBACK_FUNC","titles":["Module liteyuki.dev.observer"]},"137":{"title":"var FILTER_FUNC","titles":["Module liteyuki.dev.observer"]},"138":{"title":"func debounce(wait)","titles":["Module liteyuki.dev.observer"]},"139":{"title":"class CodeModifiedHandler(FileSystemEventHandler)","titles":["Module liteyuki.dev.observer"]},"140":{"title":"func on_modified(self, event)","titles":["Module liteyuki.dev.observer","class CodeModifiedHandler(FileSystemEventHandler)"]},"141":{"title":"func on_created(self, event)","titles":["Module liteyuki.dev.observer","class CodeModifiedHandler(FileSystemEventHandler)"]},"142":{"title":"func on_deleted(self, event)","titles":["Module liteyuki.dev.observer","class CodeModifiedHandler(FileSystemEventHandler)"]},"143":{"title":"func on_moved(self, event)","titles":["Module liteyuki.dev.observer","class CodeModifiedHandler(FileSystemEventHandler)"]},"144":{"title":"func on_any_event(self, event)","titles":["Module liteyuki.dev.observer","class CodeModifiedHandler(FileSystemEventHandler)"]},"145":{"title":"func on_file_system_event(directories: tuple[str], recursive: bool = True, event_filter: FILTER_FUNC = None) -> Callable[[CALLBACK_FUNC], CALLBACK_FUNC]","titles":["Module liteyuki.dev.observer"]},"146":{"title":"Module liteyuki.dev.plugin","titles":[]},"147":{"title":"func run_plugins(*module_path: str | Path)","titles":["Module liteyuki.dev.plugin"]},"148":{"title":"Module liteyuki.exception","titles":[]},"149":{"title":"class LiteyukiException(BaseException)","titles":["Module liteyuki.exception"]},"150":{"title":"Module liteyuki","titles":[]},"151":{"title":"var __version__","titles":["Module liteyuki"]},"152":{"title":"Module liteyuki.log","titles":[]},"153":{"title":"func get_format(level: str) -> str","titles":["Module liteyuki.log"]},"154":{"title":"func init_log(config: dict)","titles":["Module liteyuki.log"]},"155":{"title":"Module liteyuki.mkdoc","titles":[]},"156":{"title":"class DefType(Enum)","titles":["Module liteyuki.mkdoc"]},"157":{"title":"attr FUNCTION = 'function'","titles":["Module liteyuki.mkdoc","class DefType(Enum)"]},"158":{"title":"attr METHOD = 'method'","titles":["Module liteyuki.mkdoc","class DefType(Enum)"]},"159":{"title":"attr STATIC_METHOD = 'staticmethod'","titles":["Module liteyuki.mkdoc","class DefType(Enum)"]},"160":{"title":"attr CLASS_METHOD = 'classmethod'","titles":["Module liteyuki.mkdoc","class DefType(Enum)"]},"161":{"title":"attr PROPERTY = 'property'","titles":["Module liteyuki.mkdoc","class DefType(Enum)"]},"162":{"title":"class FunctionInfo(BaseModel)","titles":["Module liteyuki.mkdoc"]},"163":{"title":"attr name: str = NO_DEFAULT","titles":["Module liteyuki.mkdoc","class FunctionInfo(BaseModel)"]},"164":{"title":"attr args: list[tuple[str, str]] = NO_DEFAULT","titles":["Module liteyuki.mkdoc","class FunctionInfo(BaseModel)"]},"165":{"title":"attr return_type: str = NO_DEFAULT","titles":["Module liteyuki.mkdoc","class FunctionInfo(BaseModel)"]},"166":{"title":"attr docstring: str = NO_DEFAULT","titles":["Module liteyuki.mkdoc","class FunctionInfo(BaseModel)"]},"167":{"title":"attr source_code: str = ''","titles":["Module liteyuki.mkdoc","class FunctionInfo(BaseModel)"]},"168":{"title":"attr type: DefType = NO_DEFAULT","titles":["Module liteyuki.mkdoc","class FunctionInfo(BaseModel)"]},"169":{"title":"attr is_async: bool = NO_DEFAULT","titles":["Module liteyuki.mkdoc","class FunctionInfo(BaseModel)"]},"170":{"title":"class AttributeInfo(BaseModel)","titles":["Module liteyuki.mkdoc"]},"171":{"title":"attr name: str = NO_DEFAULT","titles":["Module liteyuki.mkdoc","class AttributeInfo(BaseModel)"]},"172":{"title":"attr type: str = NO_DEFAULT","titles":["Module liteyuki.mkdoc","class AttributeInfo(BaseModel)"]},"173":{"title":"attr value: Any = None","titles":["Module liteyuki.mkdoc","class AttributeInfo(BaseModel)"]},"174":{"title":"attr docstring: str = ''","titles":["Module liteyuki.mkdoc","class AttributeInfo(BaseModel)"]},"175":{"title":"class ClassInfo(BaseModel)","titles":["Module liteyuki.mkdoc"]},"176":{"title":"attr name: str = NO_DEFAULT","titles":["Module liteyuki.mkdoc","class ClassInfo(BaseModel)"]},"177":{"title":"attr docstring: str = NO_DEFAULT","titles":["Module liteyuki.mkdoc","class ClassInfo(BaseModel)"]},"178":{"title":"attr methods: list[FunctionInfo] = NO_DEFAULT","titles":["Module liteyuki.mkdoc","class ClassInfo(BaseModel)"]},"179":{"title":"attr attributes: list[AttributeInfo] = NO_DEFAULT","titles":["Module liteyuki.mkdoc","class ClassInfo(BaseModel)"]},"180":{"title":"attr inherit: list[str] = NO_DEFAULT","titles":["Module liteyuki.mkdoc","class ClassInfo(BaseModel)"]},"181":{"title":"class ModuleInfo(BaseModel)","titles":["Module liteyuki.mkdoc"]},"182":{"title":"attr module_path: str = NO_DEFAULT","titles":["Module liteyuki.mkdoc","class ModuleInfo(BaseModel)"]},"183":{"title":"attr functions: list[FunctionInfo] = NO_DEFAULT","titles":["Module liteyuki.mkdoc","class ModuleInfo(BaseModel)"]},"184":{"title":"attr classes: list[ClassInfo] = NO_DEFAULT","titles":["Module liteyuki.mkdoc","class ModuleInfo(BaseModel)"]},"185":{"title":"attr attributes: list[AttributeInfo] = NO_DEFAULT","titles":["Module liteyuki.mkdoc","class ModuleInfo(BaseModel)"]},"186":{"title":"attr docstring: str = NO_DEFAULT","titles":["Module liteyuki.mkdoc","class ModuleInfo(BaseModel)"]},"187":{"title":"func get_relative_path(base_path: str, target_path: str) -> str","titles":["Module liteyuki.mkdoc"]},"188":{"title":"func write_to_files(file_data: dict[str, str])","titles":["Module liteyuki.mkdoc"]},"189":{"title":"func get_file_list(module_folder: str)","titles":["Module liteyuki.mkdoc"]},"190":{"title":"func get_module_info_normal(file_path: str, ignore_private: bool = True) -> ModuleInfo","titles":["Module liteyuki.mkdoc"]},"191":{"title":"func generate_markdown(module_info: ModuleInfo, front_matter = None, lang: str = 'zh-CN') -> str","titles":["Module liteyuki.mkdoc"]},"192":{"title":"func generate_docs(module_folder: str, output_dir: str, with_top: bool = False, lang: str = 'zh-CN', ignored_paths = None)","titles":["Module liteyuki.mkdoc"]},"193":{"title":"var no_module_name_pyfile_path","titles":["Module liteyuki.mkdoc"]},"194":{"title":"Module liteyuki.plugin","titles":[]},"195":{"title":"func get_loaded_plugins() -> dict[str, Plugin]","titles":["Module liteyuki.plugin"]},"196":{"title":"Module liteyuki.plugin.load","titles":[]},"197":{"title":"func load_plugin(module_path: str | Path) -> Optional[Plugin]","titles":["Module liteyuki.plugin.load"]},"198":{"title":"func load_plugins(*plugin_dir: str, *, ignore_warning: bool = True) -> set[Plugin]","titles":["Module liteyuki.plugin.load"]},"199":{"title":"func format_display_name(display_name: str, plugin_type: PluginType) -> str","titles":["Module liteyuki.plugin.load"]},"200":{"title":"Module liteyuki.plugin.manager","titles":[]},"201":{"title":"Module liteyuki.plugin.model","titles":[]},"202":{"title":"class PluginType(Enum)","titles":["Module liteyuki.plugin.model"]},"203":{"title":"attr APPLICATION = 'application'","titles":["Module liteyuki.plugin.model","class PluginType(Enum)"]},"204":{"title":"attr SERVICE = 'service'","titles":["Module liteyuki.plugin.model","class PluginType(Enum)"]},"205":{"title":"attr MODULE = 'module'","titles":["Module liteyuki.plugin.model","class PluginType(Enum)"]},"206":{"title":"attr UNCLASSIFIED = 'unclassified'","titles":["Module liteyuki.plugin.model","class PluginType(Enum)"]},"207":{"title":"attr TEST = 'test'","titles":["Module liteyuki.plugin.model","class PluginType(Enum)"]},"208":{"title":"class PluginMetadata(BaseModel)","titles":["Module liteyuki.plugin.model"]},"209":{"title":"attr name: str = NO_DEFAULT","titles":["Module liteyuki.plugin.model","class PluginMetadata(BaseModel)"]},"210":{"title":"attr description: str = ''","titles":["Module liteyuki.plugin.model","class PluginMetadata(BaseModel)"]},"211":{"title":"attr usage: str = ''","titles":["Module liteyuki.plugin.model","class PluginMetadata(BaseModel)"]},"212":{"title":"attr type: PluginType = PluginType.UNCLASSIFIED","titles":["Module liteyuki.plugin.model","class PluginMetadata(BaseModel)"]},"213":{"title":"attr author: str = ''","titles":["Module liteyuki.plugin.model","class PluginMetadata(BaseModel)"]},"214":{"title":"attr homepage: str = ''","titles":["Module liteyuki.plugin.model","class PluginMetadata(BaseModel)"]},"215":{"title":"attr extra: dict[str, Any] = {}","titles":["Module liteyuki.plugin.model","class PluginMetadata(BaseModel)"]},"216":{"title":"class Plugin(BaseModel)","titles":["Module liteyuki.plugin.model"]},"217":{"title":"func hash self","titles":["Module liteyuki.plugin.model","class Plugin(BaseModel)"]},"218":{"title":"attr model_config = {'arbitrary_types_allowed': True}","titles":["Module liteyuki.plugin.model","class Plugin(BaseModel)"]},"219":{"title":"attr name: str = NO_DEFAULT","titles":["Module liteyuki.plugin.model","class Plugin(BaseModel)"]},"220":{"title":"attr module: ModuleType = NO_DEFAULT","titles":["Module liteyuki.plugin.model","class Plugin(BaseModel)"]},"221":{"title":"attr module_name: str = NO_DEFAULT","titles":["Module liteyuki.plugin.model","class Plugin(BaseModel)"]},"222":{"title":"attr metadata: Optional[PluginMetadata] = None","titles":["Module liteyuki.plugin.model","class Plugin(BaseModel)"]},"223":{"title":"Module liteyuki.plugins","titles":[]},"224":{"title":"Module liteyuki.plugins.liteecho","titles":[]},"225":{"title":"async func liteecho(event: MessageEvent)","titles":["Module liteyuki.plugins.liteecho"]},"226":{"title":"Module liteyuki.session.event","titles":[]},"227":{"title":"class MessageEvent","titles":["Module liteyuki.session.event"]},"228":{"title":"func __init__(self, bot_id: str, message: list[dict[str, Any]] | str, message_type: str, raw_message: str, session_id: str, user_id: str, session_type: str, receive_channel: Optional[Channel[MessageEvent]] = None, data: Optional[dict[str, Any]] = None)","titles":["Module liteyuki.session.event","class MessageEvent"]},"229":{"title":"func reply(self, message: str | dict[str, Any])","titles":["Module liteyuki.session.event","class MessageEvent"]},"230":{"title":"Module liteyuki.plugins.plugin_loader","titles":[]},"231":{"title":"func default_plugins_loader()","titles":["Module liteyuki.plugins.plugin_loader"]},"232":{"title":"Module liteyuki.session","titles":[]},"233":{"title":"Module liteyuki.session.matcher","titles":[]},"234":{"title":"class Matcher","titles":["Module liteyuki.session.matcher"]},"235":{"title":"func __init__(self, rule: Rule, priority: int, block: bool)","titles":["Module liteyuki.session.matcher","class Matcher"]},"236":{"title":"func handle(self) -> Callable[[EventHandler], EventHandler]","titles":["Module liteyuki.session.matcher","class Matcher"]},"237":{"title":"async func run(self, event: MessageEvent) -> None","titles":["Module liteyuki.session.matcher","class Matcher"]},"238":{"title":"Module liteyuki.session.on","titles":[]},"239":{"title":"func add_matcher(matcher: Matcher)","titles":["Module liteyuki.session.on"]},"240":{"title":"func on_message(rule: Rule = empty_rule, priority: int = 0, block: bool = False) -> Matcher","titles":["Module liteyuki.session.on"]},"241":{"title":"func on_keywords(keywords: list[str], rule = empty_rule, priority: int = 0, block: bool = False) -> Matcher","titles":["Module liteyuki.session.on"]},"242":{"title":"Module liteyuki.session.rule","titles":[]},"243":{"title":"var RuleHandlerFunc","titles":["Module liteyuki.session.rule"]},"244":{"title":"class Rule","titles":["Module liteyuki.session.rule"]},"245":{"title":"func __init__(self, handler: RuleHandlerFunc)","titles":["Module liteyuki.session.rule","class Rule"]},"246":{"title":"func self | other: Rule => Rule","titles":["Module liteyuki.session.rule","class Rule"]},"247":{"title":"func self & other: Rule => Rule","titles":["Module liteyuki.session.rule","class Rule"]},"248":{"title":"async func self () event: MessageEvent => bool","titles":["Module liteyuki.session.rule","class Rule"]},"249":{"title":"async func empty_rule(event: MessageEvent) -> bool","titles":["Module liteyuki.session.rule"]},"250":{"title":"async func is_su_rule(event: MessageEvent) -> bool","titles":["Module liteyuki.session.rule"]},"251":{"title":"Module liteyuki.session.session","titles":[]},"252":{"title":"Module liteyuki.utils","titles":[]},"253":{"title":"func is_coroutine_callable(call: Callable[..., Any]) -> bool","titles":["Module liteyuki.utils"]},"254":{"title":"func run_coroutine(*coro: Coroutine)","titles":["Module liteyuki.utils"]},"255":{"title":"func run_coroutine_in_thread(*coro: Coroutine)","titles":["Module liteyuki.utils"]},"256":{"title":"func path_to_module_name(path: Path) -> str","titles":["Module liteyuki.utils"]},"257":{"title":"func async_wrapper(func: Callable[..., Any]) -> Callable[..., Coroutine]","titles":["Module liteyuki.utils"]},"258":{"title":"Best Practices","titles":[]},"259":{"title":"Bot applications","titles":["Best Practices"]},"260":{"title":"plugins","titles":["Best Practices"]},"261":{"title":"Others","titles":["Best Practices"]},"262":{"title":"Channel Communication","titles":[]},"263":{"title":"Introduction","titles":["Channel Communication"]},"264":{"title":"Example","titles":["Channel Communication"]},"265":{"title":"共享内存通信","titles":["Channel Communication"]},"266":{"title":"简介","titles":["Channel Communication","共享内存通信"]},"267":{"title":"示例","titles":["Channel Communication","共享内存通信"]},"268":{"title":"Development Guide","titles":[]},"269":{"title":"How to Develop","titles":["Development Guide"]},"270":{"title":"Suggestions","titles":["Development Guide","How to Develop"]},"271":{"title":"Project Structure","titles":["Development Guide"]},"272":{"title":"Standardization","titles":["Development Guide"]},"273":{"title":"Finally","titles":["Development Guide"]},"274":{"title":"轻雪函数","titles":[]},"275":{"title":"函数文件","titles":["轻雪函数"]},"276":{"title":"命令文档","titles":["轻雪函数"]},"277":{"title":"示例","titles":["轻雪函数","命令文档"]},"278":{"title":"API","titles":["轻雪函数"]},"279":{"title":"结束关键字","titles":["轻雪函数"]},"280":{"title":"简介","titles":[]},"281":{"title":"开始","titles":["简介"]},"282":{"title":"创建插件","titles":["简介","开始"]},"283":{"title":"编写逻辑部分","titles":["简介","开始"]},"284":{"title":"加载插件","titles":["简介","开始"]},"285":{"title":"方法1","titles":["简介","开始","加载插件"]},"286":{"title":"方法2","titles":["简介","开始","加载插件"]},"287":{"title":"简介","titles":[]},"288":{"title":"加载资源包","titles":["简介"]},"289":{"title":"用户协议","titles":[]},"290":{"title":"基础插件","titles":[]},"291":{"title":"轻雪命令liteyuki_command","titles":["基础插件"]},"292":{"title":"命令别名","titles":["基础插件","轻雪命令liteyuki_command"]},"293":{"title":"插件/包管理器 liteyuki_pacman","titles":["基础插件"]},"294":{"title":"命令别名","titles":["基础插件","插件/包管理器 liteyuki_pacman"]},"295":{"title":"用户管理liteyuki_user","titles":["基础插件"]},"296":{"title":"功能插件命令","titles":[]},"297":{"title":"轻雪天气liteyuki_weather","titles":["功能插件命令"]},"298":{"title":"命令别名","titles":["功能插件命令","轻雪天气liteyuki_weather"]},"299":{"title":"统计信息liteyuki_statistics","titles":["功能插件命令"]},"300":{"title":"命令别名","titles":["功能插件命令","统计信息liteyuki_statistics"]}},"dirtCount":0,"index":[["或",{"2":{"299":2}}],["或插件路径",{"2":{"197":1}}],["当前bot",{"2":{"299":1}}],["当前群聊",{"2":{"299":1}}],["当前会话启用",{"2":{"293":1}}],["秒",{"2":{"299":2}}],["小时",{"2":{"299":2}}],["天",{"2":{"299":2}}],["天气",{"2":{"297":1,"298":1}}],["格式",{"2":{"299":1}}],["格式为onebot",{"2":{"291":1}}],["统计时间范围为duration",{"2":{"299":1}}],["统计周期为period",{"2":{"299":1}}],["统计信息",{"2":{"299":1}}],["统计信息liteyuki",{"0":{"299":1},"1":{"300":1}}],["功能",{"2":{"299":1}}],["功能插件命令",{"0":{"296":1},"1":{"297":1,"298":1,"299":1,"300":1}}],["绑定城市",{"2":{"298":1}}],["绑定查询城市",{"2":{"297":1}}],["个人全局生效",{"2":{"297":1}}],["个人信息",{"2":{"295":1}}],["海淀",{"2":{"297":1}}],["北京",{"2":{"297":1}}],["支持中英文",{"2":{"297":2}}],["支持中英文城市名",{"2":{"297":1}}],["支持多个关键词查询",{"2":{"297":1}}],["支持绑定城市",{"2":{"297":1}}],["支持单行注释",{"2":{"275":1}}],["受限于nonebot2钩子函数的依赖注入参数",{"2":{"294":1}}],["帮助",{"2":{"294":1}}],["列表",{"2":{"294":1}}],["列出所有资源包",{"2":{"293":1}}],["列出所有插件",{"2":{"293":1}}],["更改",{"2":{"294":1}}],["更新",{"2":{"294":1}}],["更新插件商店索引",{"2":{"293":1}}],["更新轻雪",{"2":{"291":1,"292":1}}],["全局停用",{"2":{"294":1}}],["全局启用",{"2":{"293":1,"294":1}}],["搜索",{"2":{"294":1}}],["卸载",{"2":{"294":2}}],["卸载资源包",{"2":{"293":1}}],["卸载插件",{"2":{"293":1}}],["私聊所有人可用",{"2":{"293":2}}],["包管理器",{"0":{"293":1},"1":{"294":1}}],["包括子task",{"2":{"276":1}}],["切换图片模式",{"2":{"292":1}}],["状态",{"2":{"292":1}}],["别名",{"2":{"292":1,"294":1,"295":1,"298":1,"300":1}}],["所有人",{"2":{"291":1,"293":1,"295":3}}],["所以在编写lyfunction时也要注意异步的调用",{"2":{"279":1}}],["群聊",{"2":{"292":1}}],["群聊仅群主",{"2":{"291":1,"293":2}}],["群号",{"2":{"291":1}}],["管理员",{"2":{"291":1,"293":2}}],["停用插件",{"2":{"293":2}}],["停用",{"2":{"292":1,"294":1}}],["停用机器人",{"2":{"291":1}}],["停止后钩子",{"2":{"55":1}}],["停止前钩子",{"2":{"54":1}}],["停止",{"2":{"44":1}}],["停止轻雪",{"2":{"23":1,"26":1}}],["该功能需要commit",{"2":{"291":1}}],["该模块封装通道实现",{"2":{"266":1}}],["该模块用于存放一些开发工具",{"2":{"134":1}}],["该模块用于常用配置文件的加载",{"2":{"108":1}}],["该模块用于轻雪主进程和nonebot子进程之间的通信",{"2":{"84":1}}],["推荐私聊使用",{"2":{"291":1}}],["推荐在编写html时同时更改对应js代码",{"2":{"287":1}}],["查询目标地实时天气",{"2":{"297":1}}],["查询实时天气",{"2":{"297":1}}],["查询",{"2":{"292":1,"295":1}}],["查询配置项",{"2":{"291":1}}],["查看用户信息菜单",{"2":{"295":1}}],["查看插件帮助",{"2":{"293":1}}],["查看轻雪文档",{"2":{"291":1}}],["查看统计信息和状态",{"2":{"291":1}}],["查看当前bot",{"2":{"291":1}}],["和风天气的天气key",{"2":{"297":1}}],["和",{"2":{"291":1}}],["和10是不一样的",{"2":{"291":1}}],["和config目录下的所有配置文件",{"2":{"115":1}}],["输入值会被执行以转换为正确的类型",{"2":{"291":1}}],["输出",{"2":{"275":1}}],["输出文件夹",{"2":{"192":1}}],["输出文件",{"2":{"188":1}}],["版本",{"2":{"291":1}}],["❌",{"2":{"291":11}}],["超级用户可用",{"2":{"291":1,"293":2}}],["超级用户",{"2":{"291":10,"293":10}}],["重载",{"2":{"294":1}}],["重载所有资源包",{"2":{"293":1}}],["重载资源",{"2":{"292":1}}],["重载轻雪",{"2":{"291":1}}],["重启轻雪",{"2":{"292":1}}],["重启轻雪即可加载插件",{"2":{"285":1}}],["重启轻雪本体",{"2":{"22":1}}],["重启后钩子",{"2":{"57":1}}],["重启前钩子",{"2":{"56":1}}],["重启",{"2":{"44":1}}],["举例",{"2":{"291":1}}],["权限",{"2":{"291":1,"293":2,"295":1}}],["说明",{"2":{"291":1,"293":2,"295":1}}],["~代替",{"2":{"290":1}}],["~可以使用插件",{"2":{"290":1}}],["安装插件",{"2":{"293":1}}],["安装",{"2":{"290":1,"294":1}}],["安装的插件",{"2":{"197":1}}],["命令",{"2":{"291":1,"292":1,"293":2,"294":1,"295":2,"297":1,"298":1,"299":1,"300":1}}],["命令别名",{"0":{"292":1,"294":1,"298":1,"300":1},"2":{"290":1,"295":1}}],["命令文档",{"0":{"276":1},"1":{"277":1}}],["为可选参数",{"2":{"290":1}}],["为必填参数",{"2":{"290":1}}],["为子进程重启时调用",{"2":{"31":1}}],["为子进程停止时调用",{"2":{"30":1}}],["基础插件",{"0":{"290":1},"1":{"291":1,"292":1,"293":1,"294":1,"295":1}}],["基础路径",{"2":{"187":1}}],["且通过安全的方式传输到轻雪的服务器",{"2":{"289":1}}],["且通道标识为",{"2":{"264":1}}],["系统信息及python信息",{"2":{"289":1}}],["内存",{"2":{"289":1}}],["内存共享是线程安全的",{"2":{"266":1}}],["内存共享使得代码编写更加简洁",{"2":{"266":1}}],["分钟",{"2":{"299":2}}],["分发",{"2":{"289":1}}],["分工明确",{"2":{"108":1}}],["修改优先级",{"2":{"293":1}}],["修改",{"2":{"289":1}}],["本项目不会收集用户的任何隐私信息",{"2":{"289":1}}],["本项目遵循mit协议",{"2":{"289":1}}],["本模块用于轻雪主进程和子进程之间的通信的事件类",{"2":{"81":1}}],["本模块定义了一个通用的通道类",{"2":{"58":1}}],["同时用户也应该自行选择可用的资源包",{"2":{"288":1}}],["同步接收数据",{"2":{"67":1}}],["同步接收函数",{"2":{"59":1}}],["同步过滤函数",{"2":{"61":1}}],["同步进程生命周期函数",{"2":{"40":1}}],["同步生命周期函数",{"2":{"37":1}}],["第三方资源包开发者需要注意版本兼容性",{"2":{"288":1}}],["对于主动推送的插件不生效",{"2":{"294":1}}],["对于不同资源包的不同文件",{"2":{"288":1}}],["对外启动方法",{"2":{"122":1}}],["└─",{"2":{"288":1}}],["└───",{"2":{"288":1}}],["└─resource",{"2":{"288":2}}],["├─templates",{"2":{"288":1}}],["├─metadata",{"2":{"288":2}}],["正常的路径应该是这样的",{"2":{"288":1}}],["只需要将其解压到根目录resources目录下即可",{"2":{"288":1}}],["zip格式压缩的",{"2":{"288":1}}],["zh",{"0":{"191":1,"192":1},"2":{"2":1,"191":2,"192":1,"271":1}}],["以上内容仅用于项目的优化",{"2":{"289":1}}],["以避免出现无法预料的问题",{"2":{"287":1}}],["以下我们会编写一个简单的插件",{"2":{"283":1}}],["错位等无法预料的事情发生",{"2":{"287":1}}],["异常",{"2":{"287":1}}],["异步任务结束关键字",{"2":{"279":1}}],["异步等待",{"2":{"276":1}}],["异步包装器",{"2":{"257":1}}],["异步接收数据",{"2":{"68":1}}],["异步过滤函数",{"2":{"62":1}}],["异步进程生命周期函数",{"2":{"41":1}}],["异步生命周期函数",{"2":{"38":1}}],["请阅读插件主页的说明",{"2":{"294":1}}],["请确保您所编写的html代码能被bot解析",{"2":{"287":1}}],["请注意",{"2":{"287":1}}],["请不要将需要动态加载的内容写入配置文件",{"2":{"108":1}}],["欢迎各位投稿资源包到轻雪资源商店",{"2":{"287":1}}],["部分异常信息",{"2":{"289":1}}],["部分内容制作需要一点点前端基础",{"2":{"287":1}}],["部分来源于",{"2":{"252":1}}],["讲起打包成一个新的资源包",{"2":{"287":1}}],["仅需按照原有路径进行文件替换即可",{"2":{"287":1}}],["那么加载b包后",{"2":{"288":1}}],["那么你能够很快就上手",{"2":{"287":1}}],["那么当前所有函数包的task都会被截停销毁",{"2":{"279":1}}],["如果你接触过minecraft的资源包",{"2":{"287":1}}],["如果你想同时输出多行内容可以尝试换行符",{"2":{"275":1}}],["主题包中的html渲染使用js来规定数据的渲染位置",{"2":{"287":1}}],["主题商店提供了一些资源包供你选择",{"2":{"287":1}}],["主进程中",{"2":{"264":1}}],["主进程中通过get",{"2":{"264":1}}],["主进程订阅者接收函数",{"2":{"86":1}}],["主进程创建单例",{"2":{"72":1}}],["资源",{"2":{"287":1}}],["资源包管理",{"2":{"293":1}}],["资源包的结构会随着轻雪的更新而有变动",{"2":{"288":1}}],["资源包的制作很简单",{"2":{"287":1}}],["资源包加载遵循一个优先级",{"2":{"288":1}}],["资源包描述",{"2":{"288":1}}],["资源包名称",{"2":{"288":1}}],["资源包通常是以",{"2":{"288":1}}],["资源包",{"2":{"287":1,"294":1}}],["它允许你一定程度上自定义轻雪的外观",{"2":{"287":1}}],["它允许你在轻雪中运行一些自定义的由数据驱动的命令",{"2":{"274":1}}],["字体包",{"2":{"287":1}}],["字符串",{"2":{"191":1}}],["亦可根据用途称为主题包",{"2":{"287":1}}],["保存后轻雪会自动重载nonebot进程",{"2":{"286":1}}],["保持轻雪运行",{"2":{"21":1}}],["我们在src",{"2":{"286":1}}],["然后运行python",{"2":{"286":1}}],["方法2",{"0":{"286":1}}],["方法1",{"0":{"285":1}}],["用户管理liteyuki",{"0":{"295":1}}],["用户协议",{"0":{"289":1}}],["用observer的on",{"2":{"283":1}}],["用于统计bot接收到的消息",{"2":{"299":1}}],["用于开发nonebot时进行文件系统变更重载",{"2":{"283":1}}],["用于结束当前已完成function的执行",{"2":{"279":1}}],["用于存放内置插件",{"2":{"223":1}}],["用于获取和唯一标识",{"2":{"123":1}}],["用于进程间通信",{"2":{"58":1}}],["排除的文件扩展名",{"2":{"283":1}}],["因此插件主要是一些后台任务或者与聊天机器人的通信",{"2":{"283":1}}],["定义插件元数据",{"2":{"282":1}}],["定义变量",{"2":{"276":1}}],["导入轻雪bot和日志",{"2":{"283":1}}],["导入文件系统事件",{"2":{"283":1}}],["导入文件系统观察器",{"2":{"283":1}}],["导入文件夹下多个插件",{"2":{"198":1}}],["导入逻辑部分",{"2":{"282":1}}],["即后加载的资源包会覆盖前面的资源包",{"2":{"288":1}}],["即可创建一个插件",{"2":{"282":1}}],["即不等待",{"2":{"276":1}}],["首先创建一个文件夹",{"2":{"282":1}}],["开始",{"0":{"281":1},"1":{"282":1,"283":1,"284":1,"285":1,"286":1}}],["编写逻辑部分",{"0":{"283":1}}],["编写轻雪函数推荐你使用vs",{"2":{"279":1}}],["编辑时的语法高亮可采取shell格式",{"2":{"275":1}}],["有一个task任务没有完成而await被执行了",{"2":{"279":1}}],["的情况是效率提升的关键",{"2":{"279":1}}],["单线程走到底",{"2":{"279":1}}],["单位s",{"2":{"276":1}}],["避免出现",{"2":{"279":1}}],["由于liteyukibot基于异步运行",{"2":{"279":1}}],["结束关键字",{"0":{"279":1}}],["结束函数关键字",{"2":{"276":1}}],["理论上所有基于onebotv11的api都可调用",{"2":{"278":1}}],["则该文件夹不会被识别为资源包",{"2":{"288":1}}],["则需要删除await",{"2":{"277":1}}],["则传入泛型默认开启",{"2":{"65":1}}],["无需手动创建实例",{"2":{"286":1}}],["无需手动初始化bot",{"2":{"147":1}}],["无限戳",{"2":{"277":1}}],["执行",{"2":{"277":1}}],["疯狂戳好友",{"2":{"277":1}}],["否则会导致渲染失败或渲染结果不理想",{"2":{"287":1}}],["否则task对象会被销毁",{"2":{"276":1}}],["否则默认关闭",{"2":{"65":1}}],["需要在最后调用",{"2":{"276":1}}],["等待所有异步任务结束",{"2":{"276":1}}],["使用通用日期简写",{"2":{"299":2}}],["使用此项目代表你已经同意以上协议",{"2":{"289":1}}],["使用开发工具快速运行插件",{"2":{"286":1}}],["使用",{"2":{"277":1}}],["使用新的task执行命令",{"2":{"276":1}}],["使用watchdog监控文件变化并重启bot",{"2":{"135":1}}],["调用机器人函数",{"2":{"291":1}}],["调用机器人api",{"2":{"291":1}}],["调用重启进程方法",{"2":{"283":1}}],["调用函数",{"2":{"276":1}}],["调用bot",{"2":{"276":1}}],["也支持句末注释",{"2":{"275":1}}],["例如npm",{"2":{"290":1}}],["例如nonebot插件中",{"2":{"264":1}}],["例如你在a中定义了templates",{"2":{"288":1}}],["例如html",{"2":{"287":1}}],["例如main",{"2":{"286":1}}],["例如watchdog",{"2":{"282":1,"285":1}}],["例如",{"2":{"275":2,"288":1,"297":1}}],["例如test",{"2":{"275":1,"286":1}}],["函数文件放在资源包的functions目录下",{"2":{"275":1}}],["函数文件",{"0":{"275":1}}],["函数列表",{"2":{"45":1}}],["属于资源包的一部分",{"2":{"274":1}}],["类似于minecraft的mcfunction",{"2":{"274":1}}],["类似于redis",{"2":{"85":1}}],["是可以相对引用的",{"2":{"288":1}}],["是轻雪的一个功能",{"2":{"274":1}}],["是否为协程可调用对象",{"2":{"253":1}}],["是否阻断后续优先级更低的匹配器",{"2":{"235":1}}],["是否忽略警告",{"2":{"198":1}}],["是否忽略键不存在的错误",{"2":{"92":1}}],["是否包含顶层文件夹",{"2":{"192":1}}],["是否递归监听子目录",{"2":{"145":1}}],["是否开启类型检查",{"2":{"65":1}}],["示例",{"0":{"267":1,"277":1}}],["线程锁会自动保护共享内存的读写操作",{"2":{"266":1}}],["相比于普通进程通信",{"2":{"266":1}}],["相对路径",{"2":{"188":1}}],["简介",{"0":{"266":1,"280":1,"287":1},"1":{"281":1,"282":1,"283":1,"284":1,"285":1,"286":1,"288":1}}],["被动模式",{"2":{"264":1}}],["被动通道传递通道",{"2":{"73":1}}],["被动通道",{"2":{"71":1}}],["每隔0",{"2":{"277":1}}],["每行一个命令",{"2":{"275":1}}],["每次接收到字符串数据时都会运行",{"2":{"264":1}}],["每3秒发送一次消息",{"2":{"264":1}}],["每个配置文件给一个或一类服务提供配置",{"2":{"108":1}}],["创建入口文件",{"2":{"286":1}}],["创建插件",{"0":{"282":1}}],["创建子进程的同时会初始化一个被动通道和一个主动通道",{"2":{"264":1}}],["创建asyncio",{"2":{"122":1}}],["路径a",{"2":{"256":1}}],["转换路径为模块名",{"2":{"256":1}}],["可用",{"2":{"291":1}}],["可用参数",{"2":{"291":1}}],["可以在配置文件中把auto",{"2":{"289":1}}],["可以在a的index",{"2":{"288":1}}],["可以在此基础上进行修改",{"2":{"287":1}}],["可以很高程度地扩展轻雪的功能",{"2":{"280":1}}],["可以是本地插件或是通过",{"2":{"197":1}}],["可递归",{"2":{"276":1}}],["可调用对象",{"2":{"253":1}}],["判断是否为协程可调用对象",{"2":{"253":1}}],["并且应该在metadata",{"2":{"288":1}}],["并且不用修改源代码",{"2":{"287":1}}],["并在其中写入一些代码",{"2":{"286":1}}],["并在其中写入以下代码",{"2":{"286":1}}],["并在其中创建一个",{"2":{"282":1}}],["并遵循其许可进行修改",{"2":{"252":1}}],["并发运行异步函数",{"2":{"45":1}}],["一个",{"2":{"282":1}}],["一个键不要多次出现",{"2":{"108":1}}],["一些常用的工具类",{"2":{"252":1}}],["优先级",{"2":{"235":1}}],["规则函数签名",{"2":{"243":1}}],["规则",{"2":{"235":1}}],["匹配器",{"2":{"235":1}}],["505468b及以后的lagrange",{"2":{"291":1}}],["55",{"2":{"242":1}}],["52",{"2":{"238":1}}],["51",{"2":{"233":1}}],["59",{"2":{"196":1,"200":1}}],["应在初始化时调用",{"2":{"231":1}}],["回复消息",{"2":{"229":1}}],["根据不同类型插件设置颜色",{"2":{"199":1}}],["加载",{"2":{"294":1}}],["加载资源包",{"0":{"288":1},"2":{"293":1}}],["加载插件",{"0":{"284":1},"1":{"285":1,"286":1}}],["加载插件加载器",{"2":{"19":1}}],["加载单个插件",{"2":{"197":1}}],["下午10",{"2":{"226":1,"230":1,"232":1,"233":1,"238":1,"242":1,"251":1}}],["下午12",{"2":{"224":1}}],["下午11",{"2":{"196":1,"200":1}}],["下午8",{"2":{"36":1}}],["插件停用只能阻断传入响应",{"2":{"294":1}}],["插件管理",{"2":{"293":1,"294":1}}],["插件",{"0":{"293":1},"1":{"294":1}}],["插件信息",{"2":{"289":1}}],["插件描述",{"2":{"282":1}}],["插件版本",{"2":{"282":1}}],["插件类型",{"2":{"199":1,"282":1}}],["插件名称",{"2":{"197":1,"199":1,"282":1}}],["插件字典",{"2":{"195":1}}],["插件路径",{"2":{"147":1}}],["去头路径",{"2":{"193":1}}],["忽略的路径",{"2":{"192":1}}],["忽略私有函数和类",{"2":{"190":1}}],["模块名",{"2":{"256":1}}],["模块文件夹",{"2":{"192":1}}],["模块信息",{"2":{"190":1,"191":1}}],["源代码",{"2":{"191":1,"267":1}}],["x26",{"2":{"191":4,"241":1}}],["x3c",{"2":{"20":4,"22":1,"154":5,"191":8,"197":2,"199":2,"239":1,"276":6,"297":2,"299":2}}],["+",{"2":{"191":2,"256":1}}],["+=",{"2":{"22":1,"69":1,"191":15}}],["语言包等",{"2":{"287":1}}],["语言",{"2":{"191":1,"192":1}}],["自定义选项title",{"2":{"191":1}}],["自动调用",{"2":{"24":1}}],["你在a包中定义了一个index",{"2":{"288":1}}],["你自己制作的资源包也应该遵循这个规则",{"2":{"288":1}}],["你也可以自己制作资源包",{"2":{"287":1}}],["你的插件代码",{"2":{"282":1}}],["你可以选择开启auto",{"2":{"289":1}}],["你可以自由使用",{"2":{"289":1}}],["你可以自定义一些信息",{"2":{"288":1}}],["你可以在多个线程中读写共享内存",{"2":{"266":1}}],["你可以通过storage模块实现内存共享通信",{"2":{"266":1}}],["你可在此自定义生成的markdown格式",{"2":{"191":1}}],["你应该使用其他储存方式",{"2":{"108":1}}],["生成文档",{"2":{"192":1}}],["生成模块的markdown",{"2":{"191":1}}],["生命周期函数",{"2":{"27":2,"28":2,"29":2,"30":2,"31":2,"32":2,"39":1,"46":2,"47":2,"49":2,"51":2}}],["生命周期管理",{"2":{"19":1}}],["文件内容为一系列的命令",{"2":{"275":1}}],["文件名以",{"2":{"275":1}}],["文件夹路径",{"2":{"198":1}}],["文件路径",{"2":{"190":1}}],["文件数据",{"2":{"188":1}}],["目标路径",{"2":{"187":1}}],["⭕",{"2":{"154":1}}],["⚠️",{"2":{"154":1}}],["✅",{"2":{"154":1}}],["ℹ️信息",{"2":{"264":4}}],["ℹ️",{"2":{"154":1}}],["🐛",{"2":{"154":1}}],["在群聊启用",{"2":{"291":1}}],["在普通图片和markdown大图之间切换",{"2":{"291":1}}],["在b中定义了templates",{"2":{"288":1}}],["在配置文件中的liteyuki",{"2":{"285":1}}],["在设备上执行命令",{"2":{"276":1}}],["在发信器输出",{"2":{"275":1}}],["在任意进程中均可使用",{"2":{"267":1}}],["在子进程中",{"2":{"264":1}}],["在轻雪插件中",{"2":{"264":1}}],["在新线程中运行协程",{"2":{"255":1}}],["在语言加载完成后执行",{"2":{"154":1}}],["在主进程中运行",{"2":{"97":1}}],["31",{"2":{"224":1}}],["3",{"2":{"151":1,"198":1,"264":1}}],["300~500mb",{"2":{"15":1}}],["6",{"2":{"151":1}}],["测试版本号",{"2":{"151":1}}],["此模块为内置插件文件夹",{"2":{"223":1}}],["此模块为liteyuki的框架整体",{"2":{"150":1}}],["此模块用于注册观察者函数",{"2":{"135":1}}],["参考liteyuki",{"2":{"147":1}}],["参数列表",{"2":{"291":2}}],["参数为调用set",{"2":{"264":1}}],["参数",{"2":{"24":1,"290":1,"299":1}}],["运行环境的设备信息",{"2":{"289":1}}],["运行在主进程中",{"2":{"280":1}}],["运行协程",{"2":{"254":1}}],["运行处理函数",{"2":{"237":1}}],["运行插件",{"2":{"147":1}}],["运行订阅者接收函数",{"2":{"96":1}}],["上午12",{"2":{"201":1}}],["上午11",{"2":{"117":1}}],["上午6",{"2":{"155":1}}],["上午9",{"2":{"152":1}}],["上午5",{"2":{"146":1}}],["装饰一个函数在接收到数据后执行",{"2":{"145":1}}],["装饰器",{"2":{"69":1,"95":1,"145":1,"236":2}}],["返回true则执行回调函数",{"2":{"145":1}}],["事件过滤器",{"2":{"145":1}}],["事件循环",{"2":{"19":1}}],["监听目录们",{"2":{"145":1}}],["防抖函数",{"2":{"138":1}}],["防止获取空指针",{"2":{"103":1}}],["位置1为filesystemevent",{"2":{"136":1,"137":1}}],["启用",{"2":{"292":1,"294":1}}],["启用插件后",{"2":{"286":1}}],["启用该模块需要在配置文件中设置dev",{"2":{"135":1}}],["启动后控制台输出",{"2":{"264":1}}],["启动后钩子",{"2":{"53":1}}],["启动所有子进程",{"2":{"133":1}}],["启动所有进程",{"2":{"122":1}}],["启动指定子进程",{"2":{"132":1}}],["启动发布订阅接收器循环",{"2":{"97":1}}],["启动前钩子",{"2":{"52":1}}],["启动",{"2":{"44":1}}],["添加配置项",{"2":{"291":1}}],["添加sleep",{"2":{"277":1}}],["添加处理函数",{"2":{"236":1}}],["添加子进程",{"2":{"131":1}}],["添加进程",{"2":{"123":1}}],["检查进程是否存活",{"2":{"127":1}}],["终止进程并从进程字典中删除",{"2":{"125":1}}],["通过关键词搜索插件",{"2":{"293":1}}],["通过装饰器注册一个函数在接收到消息时运行",{"2":{"264":1}}],["通常是目录不存在或目录为空",{"2":{"198":1}}],["通常会默认传入chan",{"2":{"123":1}}],["通道实例",{"2":{"74":1,"75":1,"76":1,"77":1}}],["通道名称",{"2":{"74":1,"76":1}}],["通道传递通道",{"2":{"72":1}}],["通道id",{"2":{"65":1}}],["项目目录下的配置文件优先",{"2":{"115":1}}],["项目目录下的配置文件优先级高于config目录下的配置文件",{"2":{"108":1}}],["项目目录下的config",{"2":{"115":1}}],["按照读取文件的优先级反向覆盖",{"2":{"114":1}}],["不带key返回配置项列表",{"2":{"291":1}}],["不包含任何隐私信息",{"2":{"289":1}}],["不含隐私部分",{"2":{"289":1}}],["不含插件数据",{"2":{"289":1}}],["不同adapter",{"2":{"278":1}}],["不递归",{"2":{"114":1}}],["不要出现过多的嵌套",{"2":{"108":1}}],["从一个标准的轻雪项目加载配置文件",{"2":{"115":1}}],["从目录下加载配置文件",{"2":{"114":1}}],["从指定文件加载配置项",{"2":{"113":1}}],["默认普通图片",{"2":{"291":1}}],["默认开启",{"2":{"289":1}}],["默认插件加载器",{"2":{"231":1}}],["默认执行扁平化选项",{"2":{"113":1,"114":1}}],["默认值",{"2":{"34":1,"35":1,"91":1}}],["8",{"2":{"110":1,"111":1,"112":1,"146":1,"155":1,"188":1,"190":1,"224":1,"225":1,"226":1,"230":1,"232":1,"233":1,"238":1,"242":1,"251":1}}],["但请注意甄别第三方插件的安全性",{"2":{"289":1}}],["但请保证以上三个字段",{"2":{"288":1}}],["但是请保留原作者信息",{"2":{"289":1}}],["但是更加轻量级并且线程安全",{"2":{"85":1}}],["但若出现非单function的情况",{"2":{"279":1}}],["但需单独起篇幅",{"2":{"274":1}}],["但也包含原有的键值对",{"2":{"109":1}}],["扁平化后的配置文件",{"2":{"109":1}}],["扁平化配置文件",{"2":{"109":1}}],["扁平化编写",{"2":{"108":1}}],["注意不要嵌套文件夹",{"2":{"288":1}}],["注意冲突时的优先级",{"2":{"108":1}}],["注册一个函数在nonebot启动后运行",{"2":{"264":1}}],["注册一个函数在轻雪启动后运行",{"2":{"264":1}}],["注册文件系统变化监听器",{"2":{"145":1}}],["注册重启后的函数",{"2":{"32":1,"51":1}}],["注册进程重启前的函数",{"2":{"31":1,"50":1}}],["注册进程停止前的函数",{"2":{"30":1,"48":1}}],["注册停止后的函数",{"2":{"29":1,"49":1}}],["注册启动时的函数",{"2":{"46":1,"47":1}}],["注册启动后的函数",{"2":{"28":1}}],["注册启动前的函数",{"2":{"27":1}}],["尽量不要冲突",{"2":{"108":1}}],["多配置文件编写原则",{"2":{"108":1}}],["引用计数",{"2":{"103":1}}],["共享内存通信",{"0":{"265":1},"1":{"266":1,"267":1}}],["共享内存对象",{"2":{"102":1}}],["共享内存模块",{"2":{"85":1}}],["若不存在则返回空",{"2":{"291":1}}],["若不存在则创建于config",{"2":{"291":1}}],["若存在则返回",{"2":{"291":1}}],["若存在则覆盖",{"2":{"291":1}}],["若存在则会覆盖",{"2":{"291":1}}],["若你不希望提供这些信息",{"2":{"289":1}}],["若没有metadata",{"2":{"288":1}}],["若要戳20s后停止",{"2":{"277":1}}],["若函数中启动了其他task",{"2":{"276":1}}],["若有子进程订阅则推送给子进程",{"2":{"97":1}}],["若为空",{"2":{"65":1}}],["订阅者接收消息时的回调",{"2":{"95":1}}],["频道",{"2":{"94":1,"95":1,"96":1}}],["发布消息",{"2":{"94":1}}],["发送函数为同步函数",{"2":{"66":1}}],["发送数据",{"2":{"66":1}}],["删除键值对",{"2":{"92":1}}],["值",{"2":{"90":1,"91":1}}],["键值对",{"2":{"93":1}}],["键",{"2":{"90":1,"91":1,"92":1}}],["设置用户信息或打开属性设置菜单",{"2":{"295":1}}],["设置",{"2":{"292":1,"295":1}}],["设置共享内存",{"2":{"267":1}}],["设置后的插件名称",{"2":{"199":1}}],["设置插件名称颜色",{"2":{"199":1}}],["设置键值对",{"2":{"90":1}}],["设置通道实例",{"2":{"74":1,"75":1}}],["依赖关系",{"2":{"84":1}}],["子进程中获取通道直接导入进程全局单例即可",{"2":{"264":1}}],["子进程中导入单例active",{"2":{"264":1}}],["子进程名称",{"2":{"131":1,"132":1}}],["子进程函数关键字参数",{"2":{"131":1}}],["子进程函数参数",{"2":{"131":1}}],["子进程函数",{"2":{"131":1}}],["子进程订阅者接收函数",{"2":{"87":1}}],["子进程初始化时实例化",{"2":{"72":1}}],["子进程可用的主动和被动通道",{"2":{"70":1}}],["接收数据并执行函数",{"2":{"69":1}}],["接收函数",{"2":{"60":1}}],["会自动判断key版本",{"2":{"297":1}}],["会自动识别文件格式",{"2":{"113":1}}],["会话负载信息",{"2":{"289":1}}],["会触发最大递归深度限制",{"2":{"277":1}}],["会挂起等待",{"2":{"68":1}}],["会阻塞线程",{"2":{"67":1}}],["数据",{"2":{"66":1,"67":1,"68":1,"94":1,"96":1}}],["没有异步的必要",{"2":{"66":1}}],["过滤函数",{"2":{"63":1,"69":1}}],["轻雪天气liteyuki",{"0":{"297":1},"1":{"298":1}}],["轻雪文档",{"2":{"292":1}}],["轻雪命令liteyuki",{"0":{"291":1},"1":{"292":1}}],["轻雪会收集以下内容",{"2":{"289":1}}],["轻雪原版资源包请查看liteyukibot",{"2":{"287":1}}],["轻雪主进程不涉及聊天部分",{"2":{"283":1}}],["轻雪插件是轻雪内置的一部分功能",{"2":{"280":1}}],["轻雪函数",{"0":{"274":1},"1":{"275":1,"276":1,"277":1,"278":1,"279":1},"2":{"274":1}}],["轻雪框架提供了一个内存共享通信的接口",{"2":{"266":1}}],["轻雪抽象消息事件",{"2":{"228":1}}],["轻雪生命周期管理",{"2":{"44":1}}],["轻雪实例",{"2":{"33":1}}],["进程生命周期函数",{"2":{"48":2,"50":2}}],["进程函数关键字参数",{"2":{"123":1}}],["进程函数参数",{"2":{"123":1}}],["进程函数",{"2":{"42":1,"123":1}}],["进程名",{"2":{"23":1,"123":1}}],["|",{"0":{"45":1,"147":1,"197":1,"228":1,"229":1,"246":1},"2":{"39":1,"42":1,"45":2,"60":1,"63":1,"147":1,"197":1,"228":1,"229":1}}],["7",{"2":{"36":1,"117":1,"152":1,"196":1,"200":1,"201":1}}],["兼容键",{"2":{"35":1}}],["兼容旧版本",{"2":{"35":1}}],["获取用户信息",{"2":{"295":1}}],["获取唯一的轻雪bot实例",{"2":{"283":1}}],["获取共享内存",{"2":{"267":1}}],["获取主动通道",{"2":{"264":1}}],["获取被动通道",{"2":{"264":1}}],["获取已加载的插件",{"2":{"195":1}}],["获取函数和类",{"2":{"190":1}}],["获取相对路径",{"2":{"187":1}}],["获取所有键值对",{"2":{"93":1}}],["获取键值对",{"2":{"91":1}}],["获取通道实例们",{"2":{"77":1}}],["获取通道实例",{"2":{"76":1}}],["获取配置",{"2":{"34":1,"35":1}}],["获取轻雪实例",{"2":{"33":1}}],["未实现",{"2":{"29":1,"32":1,"55":1,"57":1}}],["关键字参数",{"2":{"24":1}}],["延迟重启时间",{"2":{"22":1}}],["外部启动接口",{"2":{"20":1}}],["初始化通道",{"2":{"65":1}}],["初始化日志",{"2":{"25":1}}],["初始化轻雪",{"2":{"24":1}}],["初始化轻雪实例",{"2":{"19":1}}],["初始化",{"2":{"19":1}}],["=none",{"2":{"23":1,"65":1,"69":1,"91":1,"228":2}}],["==",{"2":{"22":3,"77":1,"78":2,"79":2,"80":1,"97":1,"103":1,"104":2,"105":2,"106":2,"107":1,"153":1,"190":4,"191":2,"256":1}}],["=",{"0":{"22":1,"23":1,"34":1,"35":1,"65":1,"69":1,"91":1,"92":1,"100":1,"101":1,"113":1,"114":1,"115":1,"123":2,"145":2,"157":1,"158":1,"159":1,"160":1,"161":1,"163":1,"164":1,"165":1,"166":1,"167":1,"168":1,"169":1,"171":1,"172":1,"173":1,"174":1,"176":1,"177":1,"178":1,"179":1,"180":1,"182":1,"183":1,"184":1,"185":1,"186":1,"190":1,"191":2,"192":3,"198":1,"203":1,"204":1,"205":1,"206":1,"207":1,"209":1,"210":1,"211":1,"212":1,"213":1,"214":1,"215":1,"218":1,"219":1,"220":1,"221":1,"222":1,"228":2,"240":3,"241":3,"246":1,"247":1,"248":1},"2":{"19":7,"22":6,"23":2,"44":7,"45":1,"65":10,"66":1,"67":1,"68":2,"69":1,"74":1,"76":1,"77":1,"78":1,"79":1,"80":1,"83":2,"89":6,"90":2,"91":2,"92":1,"93":1,"95":2,"97":1,"99":1,"104":3,"105":2,"106":1,"107":1,"109":2,"110":1,"111":1,"112":1,"113":1,"114":1,"115":1,"119":5,"121":3,"123":5,"125":1,"129":1,"130":1,"131":1,"138":3,"145":2,"147":4,"154":1,"189":1,"190":17,"191":16,"192":13,"197":12,"198":6,"199":5,"228":10,"229":1,"235":5,"240":1,"245":1,"253":1,"254":2,"256":1,"257":1,"264":5,"267":1,"282":1,"283":2}}],["常规操作",{"2":{"19":1}}],[">",{"2":{"19":1,"27":1,"31":1,"33":1,"34":1,"35":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"67":1,"68":1,"69":3,"76":1,"77":1,"90":1,"91":1,"92":1,"93":1,"94":1,"95":2,"109":1,"110":1,"111":1,"112":1,"113":1,"114":1,"115":1,"127":1,"130":1,"138":1,"145":2,"153":1,"187":1,"190":1,"191":3,"192":1,"195":1,"197":1,"198":1,"199":3,"236":2,"237":1,"240":1,"241":1,"246":2,"247":2,"248":1,"249":1,"250":1,"253":1,"256":1,"257":1,"297":2}}],["配置项",{"2":{"297":1}}],["配置项目",{"2":{"109":1}}],["配置了命令别名的命令可以使用别名代替原命令",{"2":{"290":1}}],["配置文件尽量扁平化",{"2":{"108":1}}],["配置值",{"2":{"34":1,"35":1}}],["配置键",{"2":{"34":1,"35":1}}],["配置",{"2":{"19":2,"292":1}}],["$",{"2":{"13":3}}],["kill",{"2":{"125":1}}],["k",{"2":{"109":2,"191":2}}],["keyword",{"2":{"241":2}}],["keywords为城市名",{"2":{"297":2}}],["keywords",{"0":{"241":2},"2":{"241":5,"293":1,"297":2}}],["keyerror",{"2":{"92":1,"132":1}}],["keyvaluestore",{"0":{"88":1},"1":{"89":1,"90":1,"91":1,"92":1,"93":1,"94":1,"95":1,"96":1,"97":1},"2":{"99":1,"102":1}}],["keys",{"0":{"35":1},"2":{"35":3}}],["key",{"0":{"34":1,"35":1,"90":1,"91":1,"92":2},"2":{"34":3,"35":10,"90":6,"91":6,"92":11,"104":3,"105":3,"106":3,"109":2,"267":2,"291":4,"295":2,"297":1}}],["keyboardinterrupt",{"2":{"20":1}}],["keeping",{"2":{"21":1}}],["keep",{"0":{"21":1},"2":{"21":1}}],["kwargs=none",{"2":{"123":1}}],["kwargs",{"0":{"19":1,"24":1,"45":1,"54":1,"56":1,"123":1,"130":1,"131":1},"2":{"19":3,"24":2,"45":3,"54":2,"56":2,"123":4,"130":2,"131":3,"138":2,"257":2,"291":2}}],["kritor",{"2":{"8":1}}],["knowledge",{"2":{"269":1}}],["know",{"2":{"6":2}}],["qq群号",{"2":{"299":1}}],["qq",{"0":{"8":1},"2":{"7":1,"8":3}}],["question",{"2":{"6":1}}],["questions",{"0":{"6":1,"7":1,"16":1}}],["quotes",{"2":{"272":2}}],["quot",{"2":{"3":2,"272":1,"279":2,"291":2,"297":4}}],["js",{"2":{"8":1}}],["json",{"0":{"111":1},"2":{"0":2,"111":4,"113":2,"115":1}}],["join",{"0":{"124":1},"2":{"7":1,"22":1,"114":1,"124":2,"125":1,"189":1,"191":4,"192":1,"198":2,"256":2}}],["guidelines",{"2":{"272":2}}],["guide",{"0":{"268":1},"1":{"269":1,"270":1,"271":1,"272":1,"273":1},"2":{"272":1}}],["girl",{"2":{"259":1}}],["gitmoji",{"2":{"272":2}}],["github",{"2":{"7":1,"12":1,"13":1,"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"65":1,"66":1,"67":1,"68":1,"69":1,"74":1,"75":1,"76":1,"77":1,"78":1,"79":1,"80":1,"83":1,"89":1,"90":1,"91":1,"92":1,"93":1,"94":1,"95":1,"96":1,"97":1,"99":1,"104":1,"105":1,"106":1,"107":1,"109":1,"110":1,"111":1,"112":1,"113":1,"114":1,"115":1,"119":1,"121":1,"122":1,"123":1,"124":1,"125":1,"126":1,"127":1,"129":1,"130":1,"131":1,"132":1,"133":1,"138":1,"140":1,"141":1,"142":1,"143":1,"144":1,"145":1,"147":1,"153":1,"154":1,"187":1,"188":1,"189":1,"190":1,"191":1,"192":1,"195":1,"197":1,"198":1,"199":1,"217":1,"225":1,"228":1,"229":1,"231":1,"235":1,"236":1,"237":1,"239":1,"240":1,"241":1,"245":1,"246":1,"247":1,"248":1,"249":1,"250":1,"253":1,"254":1,"255":1,"256":1,"257":1,"259":1}}],["git",{"2":{"6":1,"12":2,"13":1,"15":2}}],["g",{"2":{"199":1,"300":1}}],["group",{"2":{"291":9,"292":1,"293":2,"299":3,"300":1}}],["group775840726",{"2":{"7":1}}],["green>",{"2":{"154":1}}],["gather",{"2":{"45":1,"254":1}}],["getattr",{"2":{"253":1}}],["get",{"0":{"33":1,"34":1,"35":1,"76":1,"77":1,"79":1,"80":1,"91":1,"93":1,"99":1,"104":1,"107":1,"153":1,"187":1,"189":1,"190":1,"195":1},"2":{"23":2,"33":2,"34":3,"35":5,"65":2,"66":1,"68":1,"76":2,"77":2,"78":1,"79":4,"80":3,"90":1,"91":4,"92":1,"93":2,"99":1,"102":1,"103":1,"104":3,"106":1,"107":3,"147":1,"153":1,"154":2,"187":1,"189":1,"190":5,"192":3,"193":1,"195":1,"197":3,"198":1,"231":2,"254":1,"264":8,"267":1,"283":2,"291":3,"292":1,"295":2}}],["generator",{"2":{"261":1}}],["generate",{"0":{"191":1,"192":1},"2":{"0":1,"191":1,"192":3,"272":1}}],["generic",{"0":{"64":1},"1":{"65":1,"66":1,"67":1,"68":1,"69":1},"2":{"65":2,"66":1}}],["gensokyo",{"2":{"8":1}}],["globalkeyvaluestore",{"0":{"98":1},"1":{"99":1,"100":1,"101":1},"2":{"102":1}}],["global",{"2":{"19":1,"69":1,"293":2,"294":2}}],["gt",{"0":{"19":1,"27":1,"31":1,"33":1,"34":1,"35":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"67":1,"68":1,"69":1,"76":1,"77":1,"90":1,"91":1,"92":1,"93":1,"94":1,"95":1,"109":1,"110":1,"111":1,"112":1,"113":1,"114":1,"115":1,"127":1,"130":1,"145":1,"153":1,"187":1,"190":1,"191":1,"195":1,"197":1,"198":1,"199":1,"236":1,"237":1,"240":1,"241":1,"246":1,"247":1,"248":1,"249":1,"250":1,"253":1,"256":1,"257":1},"2":{"84":3,"109":1,"235":1,"256":1,"272":2,"290":1,"291":7,"293":10,"295":2}}],["google",{"2":{"272":2}}],["go",{"2":{"8":2,"263":1}}],["\`",{"2":{"3":1,"191":14}}],["validate",{"2":{"66":1}}],["value=ast",{"2":{"190":1}}],["valueerror",{"2":{"65":2,"74":1}}],["value2",{"2":{"2":1}}],["value1",{"2":{"2":1}}],["value",{"0":{"90":1,"173":1},"2":{"2":1,"3":3,"90":5,"105":3,"109":3,"190":6,"191":3,"267":2,"291":2,"295":1}}],["var=value",{"2":{"276":1}}],["var2=value2",{"2":{"276":1}}],["var1=value1>",{"2":{"276":1}}],["var",{"0":{"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"59":1,"60":1,"61":1,"62":1,"63":1,"70":1,"71":1,"72":1,"73":1,"86":1,"87":1,"102":1,"103":1,"136":1,"137":1,"151":1,"193":1,"243":1},"2":{"191":2}}],["version=",{"2":{"282":1}}],["version",{"0":{"151":1},"2":{"15":1,"288":1}}],["venv",{"2":{"12":4}}],["v",{"2":{"13":2,"109":2,"191":2}}],["vitepress",{"2":{"272":1}}],["view",{"2":{"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"65":1,"66":1,"67":1,"68":1,"69":1,"74":1,"75":1,"76":1,"77":1,"78":1,"79":1,"80":1,"83":1,"89":1,"90":1,"91":1,"92":1,"93":1,"94":1,"95":1,"96":1,"97":1,"99":1,"104":1,"105":1,"106":1,"107":1,"109":1,"110":1,"111":1,"112":1,"113":1,"114":1,"115":1,"119":1,"121":1,"122":1,"123":1,"124":1,"125":1,"126":1,"127":1,"129":1,"130":1,"131":1,"132":1,"133":1,"138":1,"140":1,"141":1,"142":1,"143":1,"144":1,"145":1,"147":1,"153":1,"154":1,"187":1,"188":1,"189":1,"190":1,"191":1,"192":1,"195":1,"197":1,"198":1,"199":1,"217":1,"225":1,"228":1,"229":1,"231":1,"235":1,"236":1,"237":1,"239":1,"240":1,"241":1,"245":1,"246":1,"247":1,"248":1,"249":1,"250":1,"253":1,"254":1,"255":1,"256":1,"257":1}}],["virtual",{"2":{"6":1,"12":3}}],["visit",{"2":{"3":1}}],["v11协议api",{"2":{"291":2}}],["v11",{"2":{"3":1,"278":1}}],["2s戳两次",{"2":{"277":1}}],["22",{"2":{"224":1}}],["27",{"2":{"117":1,"152":1}}],["24",{"2":{"36":1,"201":1}}],["23",{"2":{"36":1,"155":1,"196":1,"200":1}}],["20代替空格",{"2":{"291":1}}],["20和end",{"2":{"277":1}}],["2024",{"2":{"36":2,"117":2,"146":2,"152":2,"155":2,"196":2,"200":2,"201":2,"224":2,"226":2,"230":2,"232":2,"233":2,"238":2,"242":2,"251":2}}],["2020",{"2":{"36":1,"117":1,"146":1,"152":1,"155":1,"196":1,"200":1,"201":1,"224":1,"226":1,"230":1,"232":1,"233":1,"238":1,"242":1,"251":1}}],["20216",{"2":{"1":1,"3":1,"13":4}}],["20",{"2":{"15":1}}],["2019+",{"2":{"15":1}}],["2",{"2":{"2":1,"277":1,"288":1}}],["object",{"2":{"263":1}}],["observer",{"0":{"135":1},"1":{"136":1,"137":1,"138":1,"139":1,"140":1,"141":1,"142":1,"143":1,"144":1,"145":1},"2":{"145":1,"283":2}}],["occurred",{"2":{"254":1}}],["occupy",{"2":{"15":1}}],["overall",{"2":{"150":1}}],["os",{"2":{"113":1,"114":3,"187":1,"188":4,"189":2,"190":1,"192":2,"198":9,"283":2}}],["outlook",{"2":{"36":1,"117":1,"146":1,"152":1,"155":1,"196":1,"200":1,"201":1,"224":1,"226":1,"230":1,"232":1,"233":1,"238":1,"242":1,"251":1}}],["output",{"0":{"192":1},"2":{"2":1,"192":5}}],["open",{"2":{"22":1,"110":1,"111":1,"112":1,"188":1,"190":1,"273":1}}],["openshamrock",{"2":{"8":1}}],["option",{"2":{"290":1}}],["optional",{"0":{"23":1,"65":1,"69":1,"91":2,"197":1,"222":1,"228":2},"2":{"22":1,"23":2,"34":1,"35":1,"65":1,"69":3,"89":2,"91":3,"197":1,"228":2}}],["opt",{"2":{"20":2,"197":3}}],["ordinary",{"2":{"272":1}}],["order",{"2":{"192":1}}],["organization",{"2":{"269":1}}],["or",{"2":{"4":1,"6":2,"15":1,"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"65":1,"66":1,"67":1,"68":1,"69":1,"74":1,"75":1,"76":1,"77":1,"78":1,"79":1,"80":1,"83":1,"89":1,"90":1,"91":1,"92":1,"93":1,"94":1,"95":1,"96":1,"97":1,"99":1,"104":1,"105":1,"106":1,"107":1,"109":1,"110":1,"111":1,"112":1,"113":1,"114":1,"115":1,"119":1,"121":1,"122":1,"123":1,"124":1,"125":1,"126":1,"127":1,"129":1,"130":1,"131":1,"132":1,"133":1,"138":1,"140":1,"141":1,"142":1,"143":1,"144":1,"145":1,"147":1,"153":1,"154":1,"187":1,"188":1,"189":1,"190":5,"191":1,"192":1,"195":1,"197":1,"198":1,"199":1,"217":1,"225":1,"228":1,"229":1,"231":1,"235":1,"236":1,"237":1,"239":1,"240":1,"241":1,"245":1,"246":3,"247":1,"248":1,"249":1,"250":1,"253":1,"254":1,"255":1,"256":1,"257":1,"272":3}}],["official",{"2":{"259":2,"261":1}}],["of",{"0":{"3":1},"2":{"6":3,"9":1,"13":1,"15":1,"66":1,"74":1,"150":1,"197":1,"261":1,"269":4,"272":5}}],["others",{"0":{"261":1}}],["other",{"0":{"2":1,"4":1,"7":1,"16":1,"246":1,"247":1},"2":{"2":1,"3":1,"9":1,"15":2,"246":2,"247":2,"263":3}}],["one",{"2":{"6":1,"264":1}}],["onebotv11",{"2":{"8":4}}],["onebot",{"0":{"3":1},"2":{"2":2,"3":2,"4":1,"6":2,"8":1,"278":1,"291":1}}],["only",{"2":{"0":1,"6":1,"69":1,"264":1}}],["on",{"0":{"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"59":1,"60":1,"69":1,"78":1,"79":1,"80":1,"86":1,"87":1,"95":3,"104":1,"105":1,"106":1,"107":1,"140":1,"141":1,"142":1,"143":1,"144":1,"145":1,"238":1,"240":1,"241":1},"1":{"239":1,"240":1,"241":1},"2":{"0":1,"3":1,"6":1,"7":1,"8":4,"12":1,"15":3,"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":3,"28":3,"29":3,"30":3,"31":3,"32":3,"33":1,"34":1,"35":1,"44":1,"45":1,"46":2,"47":2,"48":2,"49":2,"50":2,"51":2,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"60":2,"65":3,"66":1,"67":1,"68":1,"69":5,"74":1,"75":1,"76":1,"77":2,"78":4,"79":4,"80":3,"83":1,"86":1,"87":1,"89":1,"90":1,"91":1,"92":1,"93":1,"94":1,"95":12,"96":2,"97":1,"99":1,"103":1,"104":4,"105":4,"106":4,"107":3,"109":1,"110":1,"111":1,"112":1,"113":1,"114":1,"115":1,"119":1,"121":1,"122":1,"123":1,"124":1,"125":1,"126":1,"127":1,"129":1,"130":1,"131":1,"132":1,"133":1,"138":1,"140":3,"141":3,"142":3,"143":3,"144":3,"145":3,"147":1,"153":1,"154":1,"187":1,"188":1,"189":1,"190":1,"191":1,"192":1,"195":1,"197":1,"198":1,"199":1,"217":1,"224":1,"225":2,"228":1,"229":1,"231":1,"235":1,"236":1,"237":1,"238":1,"239":1,"240":2,"241":5,"245":1,"246":1,"247":1,"248":1,"249":1,"250":1,"253":1,"254":1,"255":1,"256":1,"257":1,"259":1,"264":6,"272":1,"283":1}}],["45m",{"2":{"299":2}}],["44",{"2":{"232":1}}],["47",{"2":{"226":1,"251":1}}],["41",{"2":{"13":1}}],["40",{"2":{"13":1}}],["4",{"2":{"1":1}}],["utility",{"2":{"271":1}}],["utils",{"0":{"252":1},"1":{"253":1,"254":1,"255":1,"256":1,"257":1},"2":{"271":1}}],["utf",{"2":{"110":1,"111":1,"112":1,"188":1,"190":1}}],["ubuntu",{"2":{"15":1}}],["unload",{"2":{"293":1,"294":1}}],["understand",{"2":{"272":1}}],["underlying",{"2":{"10":1}}],["unit",{"2":{"271":1}}],["uninstall",{"2":{"6":2,"293":1,"294":1}}],["until",{"2":{"254":2}}],["unclassified",{"0":{"206":2,"212":1}}],["unparse",{"2":{"190":10}}],["unsupported",{"2":{"113":1}}],["usage",{"0":{"211":1},"2":{"269":1}}],["using",{"2":{"6":2,"13":1}}],["users",{"2":{"272":1}}],["user",{"0":{"228":1,"295":1},"2":{"228":3,"229":2,"250":1,"272":1,"277":3}}],["used",{"2":{"69":1,"223":1,"264":1,"272":1}}],["use",{"0":{"14":1},"2":{"1":1,"3":2,"4":2,"6":6,"8":1,"12":4,"13":1,"14":1,"15":2,"35":1,"197":1,"270":1,"272":2}}],["updates",{"2":{"1":1}}],["update",{"2":{"1":2,"2":2,"6":1,"15":2,"113":3,"114":1,"115":1,"291":1,"292":1,"293":1,"294":1}}],["feat",{"2":{"272":1}}],["features",{"2":{"272":2}}],["feature",{"2":{"272":1}}],["flake8",{"2":{"270":1}}],["flat",{"0":{"109":1},"2":{"109":2,"110":1,"111":1,"112":1}}],["flag",{"2":{"44":1}}],["f",{"2":{"22":1,"23":2,"35":1,"65":4,"66":1,"74":2,"109":1,"110":1,"111":1,"112":1,"113":2,"114":1,"122":1,"125":2,"127":1,"132":1,"133":1,"188":2,"191":19,"192":1,"197":5,"198":9,"199":1,"254":1,"264":2,"283":1}}],["friend",{"2":{"277":2}}],["front",{"0":{"191":1},"2":{"191":5,"192":3,"269":1}}],["from",{"0":{"110":1,"111":1,"112":1,"113":1,"114":1},"2":{"67":1,"110":3,"111":3,"112":3,"113":4,"114":2,"115":2,"263":1,"264":4,"282":1,"283":3}}],["framework",{"2":{"10":1,"150":1,"263":1,"269":1,"271":3}}],["frequently",{"0":{"6":1}}],["future",{"2":{"254":1}}],["func=none",{"2":{"145":1}}],["func=lambda",{"2":{"77":1,"78":2,"79":2,"80":1,"264":1}}],["funcs",{"0":{"45":2,"86":1,"87":1,"96":1},"2":{"44":6,"45":4,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":2,"53":2,"54":2,"55":2,"56":2,"57":2,"69":1,"95":6,"96":2,"97":1}}],["func",{"0":{"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":4,"28":3,"29":3,"30":3,"31":4,"32":3,"33":1,"34":1,"35":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"44":1,"45":3,"46":4,"47":4,"48":4,"49":4,"50":4,"51":4,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"59":1,"60":1,"61":1,"62":1,"63":1,"65":1,"66":1,"67":1,"68":1,"69":3,"74":1,"75":1,"76":1,"77":1,"78":1,"79":1,"80":1,"83":1,"89":1,"90":1,"91":1,"92":1,"93":1,"94":1,"95":3,"96":1,"97":1,"99":1,"104":1,"105":1,"106":1,"107":1,"109":1,"110":1,"111":1,"112":1,"113":1,"114":1,"115":1,"119":1,"121":1,"122":1,"123":2,"124":1,"125":1,"126":1,"127":1,"129":1,"130":1,"131":2,"132":1,"133":1,"136":1,"137":1,"138":1,"140":1,"141":1,"142":1,"143":1,"144":1,"145":4,"147":1,"153":1,"154":1,"187":1,"188":1,"189":1,"190":1,"191":1,"192":1,"195":1,"197":1,"198":1,"199":1,"217":1,"225":1,"228":1,"229":1,"231":1,"235":1,"236":1,"237":1,"239":1,"240":1,"241":1,"245":1,"246":1,"247":1,"248":1,"249":1,"250":1,"253":1,"254":1,"255":1,"256":1,"257":2},"2":{"27":7,"28":6,"29":6,"30":6,"31":7,"32":6,"39":2,"42":2,"44":6,"45":8,"46":8,"47":8,"48":8,"49":8,"50":8,"51":8,"60":2,"63":2,"65":2,"69":20,"86":1,"87":1,"95":8,"96":2,"123":1,"130":2,"131":3,"138":2,"145":7,"190":2,"191":9,"253":2,"257":4,"276":1}}],["function实现语法高亮",{"2":{"279":1}}],["functiondef",{"2":{"190":3}}],["functioninfo",{"0":{"162":1,"178":1,"183":1},"1":{"163":1,"164":1,"165":1,"166":1,"167":1,"168":1,"169":1},"2":{"190":2}}],["functions=",{"2":{"190":1}}],["functions",{"0":{"183":1},"2":{"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"190":1,"191":1}}],["function",{"0":{"157":2},"2":{"6":2,"15":2,"190":3,"264":1,"274":1,"276":1,"277":2,"291":3}}],["full",{"2":{"6":1,"264":1}}],["familiar",{"2":{"269":2}}],["failed",{"2":{"6":2,"197":1}}],["faq",{"0":{"5":1},"1":{"6":1,"7":1,"8":1,"9":1,"10":1}}],["false时例如docs",{"2":{"192":1}}],["false",{"0":{"113":1,"114":1,"115":1,"192":1,"240":1,"241":1},"2":{"2":4,"65":2,"89":2,"253":1}}],["follow",{"2":{"272":4}}],["following",{"2":{"2":1,"269":1,"272":2}}],["folder",{"0":{"189":1,"192":1},"2":{"189":2,"192":4,"193":1,"223":1}}],["found",{"2":{"66":1,"74":1,"113":1,"114":1,"125":1,"127":1,"132":1}}],["font",{"2":{"10":1}}],["fonts",{"2":{"1":1}}],["fork",{"2":{"269":1}}],["formatting",{"2":{"270":1}}],["format=get",{"2":{"154":1}}],["formats",{"2":{"114":1}}],["format",{"0":{"153":1,"199":1},"2":{"113":1,"153":3,"154":1,"197":2,"199":1,"272":1}}],["for",{"0":{"16":1},"2":{"1":1,"3":2,"6":2,"8":1,"23":1,"35":1,"45":1,"65":1,"75":1,"96":1,"109":2,"113":1,"114":2,"122":1,"124":1,"126":1,"133":1,"145":1,"188":1,"189":2,"190":12,"191":9,"192":3,"198":2,"231":2,"237":1,"239":1,"241":1,"254":2,"263":1,"264":1,"270":1,"272":5,"282":1}}],["finally",{"0":{"273":1}}],["field",{"2":{"272":3}}],["fields",{"2":{"0":1,"3":2}}],["fixing",{"2":{"272":2}}],["filter=lambda",{"2":{"283":1}}],["filter",{"0":{"61":1,"62":1,"63":1,"69":2,"137":1,"145":2},"2":{"63":2,"69":8,"77":1,"78":2,"79":2,"80":1,"145":5,"264":1}}],["file",{"0":{"110":1,"111":1,"112":1,"145":1,"188":1,"189":1,"190":1},"2":{"3":1,"6":1,"36":1,"110":4,"111":4,"112":4,"113":12,"114":3,"117":1,"145":1,"146":1,"152":1,"155":1,"188":3,"189":7,"190":8,"192":6,"196":1,"200":1,"201":1,"224":1,"226":1,"230":1,"232":1,"233":1,"238":1,"242":1,"251":1,"271":1,"283":3}}],["filesystemeventhandler",{"0":{"139":1},"1":{"140":1,"141":1,"142":1,"143":1,"144":1}}],["filesystemevent",{"2":{"136":1,"137":1,"145":1,"283":2}}],["files",{"0":{"113":2,"188":1},"2":{"0":4,"113":3,"114":1,"115":1,"188":1,"189":2,"192":1}}],["fill",{"2":{"1":1,"3":1,"272":1}}],["first",{"2":{"0":1,"6":1,"190":2,"269":1}}],["b包也定义了一个index",{"2":{"288":1}}],["bilingual",{"2":{"272":1}}],["bind",{"2":{"298":1}}],["binding",{"2":{"1":1}}],["bin",{"2":{"12":1}}],["brief",{"2":{"272":1}}],["branch",{"2":{"269":4}}],["break",{"2":{"239":1}}],["browser",{"2":{"6":1}}],["black",{"2":{"270":1}}],["block",{"0":{"235":1,"240":1,"241":1},"2":{"235":4,"240":2,"241":2}}],["blue>",{"2":{"154":1}}],["b",{"2":{"109":1,"192":2,"256":2,"300":1}}],["body",{"2":{"190":1}}],["bool=false",{"2":{"113":1,"114":1,"115":1,"192":1,"240":1,"241":1}}],["bool=true",{"2":{"92":1,"145":1,"190":1,"198":1}}],["bool",{"0":{"65":1,"92":1,"113":1,"114":1,"115":1,"127":1,"145":1,"169":1,"190":1,"192":1,"198":1,"235":1,"240":1,"241":1,"248":1,"249":1,"250":1,"253":1},"2":{"61":1,"62":1,"65":1,"127":1,"137":1,"235":1,"243":1,"246":1,"247":1,"248":1,"249":1,"250":1,"253":2}}],["both",{"2":{"271":1}}],["bot",{"0":{"17":1,"33":1,"36":1,"228":1,"259":1},"1":{"18":1,"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"43":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1},"2":{"1":1,"2":1,"6":2,"9":1,"12":1,"15":1,"19":2,"33":4,"34":1,"35":4,"147":2,"228":3,"229":2,"259":3,"260":1,"261":1,"264":4,"271":2,"275":1,"283":2,"291":1,"299":3,"300":1}}],["bugs",{"2":{"272":2}}],["bug",{"2":{"272":2}}],["business",{"2":{"271":1}}],["built",{"2":{"223":2,"271":1}}],["build",{"2":{"13":2}}],["but",{"2":{"3":1,"6":1,"264":1,"272":1}}],["bases",{"2":{"190":1}}],["base",{"0":{"187":1},"2":{"187":3,"190":2}}],["basemodel",{"0":{"162":1,"170":1,"175":1,"181":1,"208":1,"216":1},"1":{"163":1,"164":1,"165":1,"166":1,"167":1,"168":1,"169":1,"171":1,"172":1,"173":1,"174":1,"176":1,"177":1,"178":1,"179":1,"180":1,"182":1,"183":1,"184":1,"185":1,"186":1,"209":1,"210":1,"211":1,"212":1,"213":1,"214":1,"215":1,"217":1,"218":1,"219":1,"220":1,"221":1,"222":1}}],["baseexception",{"0":{"149":1}}],["based",{"2":{"8":4,"259":1}}],["bash",{"2":{"12":1}}],["basically",{"2":{"3":1}}],["basic",{"0":{"1":1},"2":{"269":2}}],["better",{"2":{"273":1}}],["between",{"2":{"6":1}}],["best",{"0":{"258":1},"1":{"259":1,"260":1,"261":1}}],["before",{"0":{"27":1,"30":1,"31":1,"46":1,"48":1,"50":1,"52":1,"54":1,"56":1},"2":{"27":2,"30":2,"31":2,"44":3,"46":2,"48":2,"50":2,"52":3,"54":3,"56":3}}],["below",{"2":{"6":1}}],["been",{"2":{"6":1}}],["be",{"2":{"3":1,"6":2,"15":1,"35":1,"66":1,"69":1,"74":1,"140":1,"264":1,"272":2}}],["by",{"2":{"3":1,"4":1,"6":2,"264":1,"270":1}}],["14s",{"2":{"299":2}}],["1h",{"2":{"299":2}}],["1d",{"2":{"299":2}}],["1145141919810",{"2":{"291":1}}],["11",{"2":{"230":1}}],["19",{"2":{"155":1,"226":1,"232":1,"233":1,"238":1,"242":1,"251":1}}],["1919810",{"2":{"1":1}}],["10",{"2":{"151":1,"291":1}}],["10+",{"2":{"12":1,"15":1}}],["18",{"2":{"146":1}}],["12",{"2":{"117":1,"152":1}}],["127",{"2":{"1":1,"3":1}}],["1gb",{"2":{"15":2}}],["1vcpu",{"2":{"15":1}}],["1",{"2":{"1":1,"2":1,"3":1,"21":1,"22":2,"23":2,"69":1,"78":2,"79":2,"80":1,"97":2,"104":3,"105":2,"106":1,"107":1,"109":1,"139":1,"140":1,"191":6,"192":1,"197":4,"256":2,"282":1,"288":2}}],["03",{"2":{"264":2}}],["0000",{"2":{"264":3}}],["00",{"2":{"264":18}}],["02",{"2":{"201":1,"230":1}}],["04",{"2":{"146":1}}],["04+",{"2":{"15":1}}],["0",{"0":{"22":1,"240":1,"241":1},"2":{"1":2,"3":2,"19":1,"21":1,"22":2,"44":1,"77":1,"78":2,"79":2,"80":1,"97":1,"103":2,"104":2,"105":2,"106":2,"107":1,"190":1,"191":7,"235":1,"277":1,"282":2,"288":2}}],["html中用",{"2":{"288":1}}],["html",{"2":{"288":1}}],["html文件会被覆盖",{"2":{"288":1}}],["html文件",{"2":{"288":2}}],["https",{"2":{"12":1,"13":1}}],["hints",{"2":{"272":1}}],["hint",{"2":{"65":1,"190":1,"191":1}}],["harmless",{"2":{"272":1}}],["handlers",{"2":{"235":1,"236":1,"237":1}}],["handler",{"0":{"245":1},"2":{"145":3,"236":4,"237":2,"245":3,"246":4,"247":4,"248":2}}],["handle",{"0":{"236":1},"2":{"6":1,"224":1,"225":1,"236":1}}],["hash",{"0":{"217":1},"2":{"217":2}}],["has",{"2":{"6":1,"272":1}}],["have",{"2":{"3":1,"6":3,"7":1,"13":1,"15":1}}],["homepage",{"0":{"214":1}}],["how",{"0":{"269":1},"1":{"270":1},"2":{"6":2}}],["host",{"2":{"1":1}}],["hello",{"2":{"275":5,"291":1}}],["help",{"2":{"6":2,"293":1,"294":1}}],["here",{"2":{"3":2}}],["header",{"2":{"1":1,"6":1}}],["echo",{"2":{"275":3}}],["easy",{"2":{"272":1}}],["each",{"2":{"272":2}}],["editing",{"2":{"272":1}}],["etc",{"2":{"272":1}}],["e",{"2":{"92":2,"197":1,"199":1,"254":2}}],["emoji",{"2":{"272":1}}],["emsp",{"2":{"191":4}}],["email",{"2":{"36":1,"117":1,"146":1,"152":1,"155":1,"196":1,"200":1,"201":1,"224":1,"226":1,"230":1,"232":1,"233":1,"238":1,"242":1,"251":1}}],["empty",{"0":{"240":1,"241":1,"249":1},"2":{"1":1,"197":1,"198":1,"249":1}}],["else",{"2":{"22":1,"23":1,"33":1,"45":1,"65":1,"69":2,"74":1,"76":1,"77":1,"90":1,"91":1,"92":1,"93":1,"95":2,"110":1,"111":1,"112":1,"153":1,"154":5,"190":9,"191":10,"192":2,"197":2,"239":1,"254":1,"256":1}}],["elif",{"2":{"22":2,"65":1,"69":1,"113":4,"190":5,"197":2,"198":1}}],["event装饰器监听文件系统事件",{"2":{"283":1}}],["events",{"2":{"283":1}}],["eventhandler",{"0":{"236":2},"2":{"235":1,"236":4}}],["event",{"0":{"81":1,"82":1,"140":1,"141":1,"142":1,"143":1,"144":2,"145":2,"225":1,"226":1,"237":1,"248":1,"249":1,"250":1},"1":{"82":1,"83":2,"227":1,"228":1,"229":1},"2":{"19":4,"21":1,"26":1,"84":1,"140":1,"141":2,"142":2,"143":2,"144":3,"145":8,"225":3,"226":1,"229":2,"237":4,"241":2,"246":3,"247":3,"248":2,"249":1,"250":2,"254":2,"272":1,"283":8}}],["every",{"2":{"1":1}}],["errors=true",{"2":{"192":1}}],["errors",{"2":{"6":1}}],["error",{"0":{"92":1},"2":{"6":1,"92":3,"154":2,"254":1}}],["extra",{"0":{"215":1}}],["extensions",{"2":{"283":2}}],["extend",{"2":{"147":1}}],["external",{"2":{"1":1}}],["exclude",{"2":{"283":2}}],["exc",{"2":{"197":1,"237":1}}],["exception模块包含了liteyuki运行中的所有错误",{"2":{"148":1}}],["exception",{"0":{"148":1},"1":{"149":1},"2":{"21":1,"197":1,"237":1,"254":2}}],["except",{"2":{"20":1,"21":1,"92":1,"197":1,"237":1,"254":2}}],["executor",{"2":{"68":1}}],["executable",{"2":{"6":1,"15":1,"22":3}}],["exist",{"2":{"198":1}}],["exists",{"2":{"65":2,"74":1,"113":1,"114":1,"188":1,"198":2}}],["exit",{"2":{"22":1}}],["exiting",{"2":{"21":1}}],["example",{"0":{"3":1,"264":1},"2":{"6":2}}],["enclosed",{"2":{"272":1}}],["encoding=",{"2":{"110":1,"111":1,"112":1,"188":1,"190":1}}],["encountered",{"2":{"9":1}}],["english",{"2":{"271":1}}],["en",{"2":{"271":1}}],["entry",{"2":{"271":1}}],["enter",{"2":{"6":1}}],["end",{"2":{"269":1,"276":1}}],["endswith",{"2":{"113":3,"114":1,"189":1,"198":1,"283":1}}],["enumerate",{"2":{"239":1}}],["enum",{"0":{"156":1,"202":1},"1":{"157":1,"158":1,"159":1,"160":1,"161":1,"203":1,"204":1,"205":1,"206":1,"207":1}}],["enforcing",{"2":{"65":1}}],["environment",{"2":{"12":4}}],["environments",{"2":{"3":1,"6":1,"15":1}}],["ensure",{"2":{"1":1,"254":1,"269":1,"272":7}}],["enable",{"2":{"1":1,"270":1,"291":2,"292":1,"293":2,"294":2}}],["msg",{"2":{"291":1}}],["mcfunction",{"2":{"275":2}}],["mkdir",{"2":{"192":1}}],["mkdoc",{"0":{"155":1},"1":{"156":1,"157":1,"158":1,"159":1,"160":1,"161":1,"162":1,"163":1,"164":1,"165":1,"166":1,"167":1,"168":1,"169":1,"170":1,"171":1,"172":1,"173":1,"174":1,"175":1,"176":1,"177":1,"178":1,"179":1,"180":1,"181":1,"182":1,"183":1,"184":1,"185":1,"186":1,"187":1,"188":1,"189":1,"190":1,"191":1,"192":1,"193":1},"2":{"155":1}}],["md",{"2":{"192":13}}],["m",{"2":{"12":1,"15":1,"199":1,"239":2,"300":1}}],["mix",{"2":{"272":1}}],["minimum",{"2":{"15":1}}],["minecraftonebot",{"2":{"9":1}}],["minecraft",{"0":{"9":1},"2":{"9":1}}],["misans",{"2":{"10":1}}],["must",{"2":{"66":1,"74":1,"140":1}}],["much",{"2":{"6":1,"272":3}}],["multiple",{"2":{"0":1,"15":1,"272":1}}],["mypy",{"2":{"270":1}}],["my",{"2":{"6":1}}],["member",{"2":{"291":1}}],["memory",{"0":{"102":1},"2":{"15":1,"89":3,"103":1,"104":3,"105":3,"106":3,"107":2,"123":1,"263":1,"267":3}}],["meta",{"2":{"197":4,"282":1}}],["metadata",{"0":{"222":1},"2":{"197":13}}],["method",{"0":{"158":2,"159":1,"160":1},"2":{"190":5,"191":13}}],["methods=",{"2":{"190":1}}],["methods",{"0":{"178":1},"2":{"3":1,"190":1,"191":1}}],["means",{"2":{"6":1}}],["message=",{"2":{"229":1,"291":1}}],["message=message",{"2":{"229":1}}],["messageevent",{"0":{"225":1,"227":1,"228":1,"237":1,"248":1,"249":1,"250":1},"1":{"228":1,"229":1},"2":{"225":1,"228":1,"229":1,"237":1,"241":1,"243":1,"246":1,"247":1,"248":1,"249":1,"250":1}}],["messages",{"2":{"6":2,"263":2}}],["message",{"0":{"228":3,"229":1,"240":1},"2":{"4":1,"6":1,"225":1,"228":9,"229":5,"240":1,"241":2,"272":5,"299":1,"300":1}}],["merge",{"2":{"0":1,"269":1}}],["map",{"2":{"261":1}}],["maplemono",{"2":{"10":1}}],["mark",{"2":{"272":1}}],["markdown",{"0":{"191":1},"2":{"191":2,"192":1,"269":1,"272":1}}],["marsho",{"2":{"259":1}}],["matcher",{"0":{"233":1,"234":1,"239":3,"240":1,"241":1},"1":{"234":1,"235":2,"236":2,"237":2},"2":{"233":1,"239":9,"240":6,"241":1}}],["match",{"2":{"199":1}}],["matter=none",{"2":{"191":1}}],["matter",{"0":{"191":1},"2":{"191":4,"192":3}}],["makedirs",{"2":{"188":1}}],["make",{"2":{"6":2,"273":1}}],["maintainer",{"2":{"269":1}}],["mainprocess",{"2":{"263":1}}],["main",{"0":{"86":1},"2":{"6":1,"12":1,"33":1,"65":4,"69":4,"74":1,"76":1,"77":1,"89":1,"90":1,"91":1,"92":1,"93":1,"95":5,"96":1,"97":1,"263":1,"264":6,"269":1,"271":1,"286":1}}],["manager",{"0":{"117":1,"200":1},"1":{"118":1,"119":1,"120":1,"121":1,"122":1,"123":1,"124":1,"125":1,"126":1,"127":1,"128":1,"129":1,"130":1,"131":1,"132":1,"133":1},"2":{"19":1,"20":1,"22":1,"23":1,"26":1,"117":1,"200":1}}],["manage",{"2":{"14":1}}],["management",{"2":{"14":1,"261":1}}],["many",{"2":{"6":1}}],["manually",{"2":{"2":1,"65":1}}],["may",{"2":{"3":1}}],["moved",{"0":{"143":1},"2":{"143":1}}],["more",{"2":{"2":1,"14":1,"15":1,"270":1}}],["moduletype",{"0":{"220":1}}],["module=module",{"2":{"197":1}}],["moduleinfo",{"0":{"181":1,"190":1,"191":1},"1":{"182":1,"183":1,"184":1,"185":1,"186":1},"2":{"190":2,"191":1}}],["module",{"0":{"17":1,"36":1,"58":1,"81":1,"84":1,"85":1,"108":1,"116":1,"117":1,"134":1,"135":1,"146":1,"147":1,"148":1,"150":1,"152":1,"155":1,"182":1,"189":1,"190":1,"191":1,"192":1,"193":1,"194":1,"196":1,"197":1,"200":1,"201":1,"205":2,"220":1,"221":1,"223":1,"224":1,"226":1,"230":1,"232":1,"233":1,"238":1,"242":1,"251":1,"252":1,"256":1},"1":{"18":1,"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"43":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"59":1,"60":1,"61":1,"62":1,"63":1,"64":1,"65":1,"66":1,"67":1,"68":1,"69":1,"70":1,"71":1,"72":1,"73":1,"74":1,"75":1,"76":1,"77":1,"78":1,"79":1,"80":1,"82":1,"83":1,"86":1,"87":1,"88":1,"89":1,"90":1,"91":1,"92":1,"93":1,"94":1,"95":1,"96":1,"97":1,"98":1,"99":1,"100":1,"101":1,"102":1,"103":1,"104":1,"105":1,"106":1,"107":1,"109":1,"110":1,"111":1,"112":1,"113":1,"114":1,"115":1,"118":1,"119":1,"120":1,"121":1,"122":1,"123":1,"124":1,"125":1,"126":1,"127":1,"128":1,"129":1,"130":1,"131":1,"132":1,"133":1,"136":1,"137":1,"138":1,"139":1,"140":1,"141":1,"142":1,"143":1,"144":1,"145":1,"147":1,"149":1,"151":1,"153":1,"154":1,"156":1,"157":1,"158":1,"159":1,"160":1,"161":1,"162":1,"163":1,"164":1,"165":1,"166":1,"167":1,"168":1,"169":1,"170":1,"171":1,"172":1,"173":1,"174":1,"175":1,"176":1,"177":1,"178":1,"179":1,"180":1,"181":1,"182":1,"183":1,"184":1,"185":1,"186":1,"187":1,"188":1,"189":1,"190":1,"191":1,"192":1,"193":1,"195":1,"197":1,"198":1,"199":1,"202":1,"203":1,"204":1,"205":1,"206":1,"207":1,"208":1,"209":1,"210":1,"211":1,"212":1,"213":1,"214":1,"215":1,"216":1,"217":1,"218":1,"219":1,"220":1,"221":1,"222":1,"225":1,"227":1,"228":1,"229":1,"231":1,"234":1,"235":1,"236":1,"237":1,"239":1,"240":1,"241":1,"243":1,"244":1,"245":1,"246":1,"247":1,"248":1,"249":1,"250":1,"253":1,"254":1,"255":1,"256":1,"257":1},"2":{"147":3,"150":1,"189":2,"190":11,"191":5,"192":19,"193":1,"197":26,"198":9,"199":1,"217":1,"223":1,"256":1}}],["modified",{"0":{"140":1},"2":{"13":1,"140":2,"141":1,"142":1,"143":1,"144":1,"145":4}}],["modify",{"2":{"0":2}}],["modes",{"2":{"264":1}}],["model",{"0":{"201":1,"218":1},"1":{"202":1,"203":1,"204":1,"205":1,"206":1,"207":1,"208":1,"209":1,"210":1,"211":1,"212":1,"213":1,"214":1,"215":1,"216":1,"217":1,"218":1,"219":1,"220":1,"221":1,"222":1},"2":{"201":1,"259":1}}],["mode为true",{"2":{"135":1}}],["mode",{"2":{"2":5,"6":3,"264":5,"270":2,"291":2,"292":1}}],["most",{"2":{"0":1}}],["lyf结尾",{"2":{"275":1}}],["lyfunction语法",{"2":{"291":1}}],["lyfunction",{"2":{"275":1}}],["lt",{"2":{"272":2,"290":1,"291":7,"293":10,"295":2}}],["lead",{"2":{"272":1}}],["least",{"2":{"15":2}}],["level=0",{"2":{"154":1}}],["level",{"0":{"153":1},"2":{"1":3,"153":2,"154":6}}],["lsposed",{"2":{"8":1}}],["llonebot",{"2":{"8":1}}],["laptop",{"2":{"192":2}}],["lang",{"0":{"191":1,"192":1},"2":{"191":3,"192":2}}],["language",{"2":{"2":2,"269":1,"272":3}}],["last",{"2":{"138":4}}],["lambda",{"2":{"103":1,"104":2,"105":2,"106":2,"107":1}}],["lagrange",{"2":{"8":2}}],["location",{"2":{"261":1}}],["local",{"2":{"1":1}}],["locks",{"2":{"92":1}}],["lock",{"0":{"101":2},"2":{"90":3,"91":3,"92":3,"99":1}}],["loop",{"0":{"97":1},"2":{"19":4,"65":1,"68":3,"89":2,"97":2,"254":10}}],["log0000",{"2":{"264":1}}],["logger",{"0":{"25":1},"2":{"19":1,"20":2,"21":2,"22":1,"24":1,"25":1,"35":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"65":2,"110":1,"111":1,"112":1,"113":2,"114":1,"122":1,"125":2,"127":1,"133":1,"154":7,"197":3,"198":3,"254":1,"264":3,"283":2}}],["logo",{"2":{"19":1}}],["logic",{"2":{"6":1,"271":1}}],["login",{"2":{"6":2}}],["logs",{"2":{"2":1}}],["log",{"0":{"152":1,"154":1},"1":{"153":1,"154":1},"2":{"1":4,"6":1,"25":1,"152":1,"154":3,"264":1}}],["loaded",{"0":{"195":1},"2":{"195":1}}],["loader",{"0":{"230":1,"231":1},"1":{"231":1},"2":{"19":1,"231":1}}],["loading",{"2":{"110":1,"111":1,"112":1}}],["load",{"0":{"110":1,"111":1,"112":1,"113":1,"114":1,"115":1,"196":1,"197":1,"198":1},"1":{"197":1,"198":1,"199":1},"2":{"0":1,"2":2,"19":1,"110":3,"111":3,"112":3,"113":4,"114":2,"115":3,"147":2,"196":1,"197":3,"198":2,"231":2,"293":1,"294":1}}],["links",{"2":{"272":2}}],["linux",{"2":{"8":1,"12":1,"14":1,"15":1,"22":1}}],["like",{"2":{"263":1}}],["life",{"2":{"44":1}}],["lifespan=self",{"2":{"19":1}}],["lifespan",{"0":{"27":2,"28":1,"29":1,"30":1,"31":2,"32":1,"36":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"43":1,"45":2,"46":2,"47":2,"48":2,"49":2,"50":2,"51":2,"121":2},"1":{"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"43":1,"44":2,"45":2,"46":2,"47":2,"48":2,"49":2,"50":2,"51":2,"52":2,"53":2,"54":2,"55":2,"56":2,"57":2},"2":{"19":3,"27":5,"28":4,"29":4,"30":4,"31":5,"32":4,"36":1,"39":2,"42":2,"44":6,"45":4,"46":4,"47":4,"48":4,"49":4,"50":4,"51":4,"121":4}}],["litedoc",{"2":{"261":1,"272":1}}],["liteecho",{"0":{"224":1,"225":1},"1":{"225":1},"2":{"224":2,"225":2,"291":1}}],["liteloader",{"2":{"8":1}}],["liteyukiexception",{"0":{"149":1}}],["liteyukistudio",{"2":{"12":1,"13":1,"36":1,"117":1,"146":1,"152":1,"155":1,"196":1,"200":1,"201":1,"224":1,"226":1,"230":1,"232":1,"233":1,"238":1,"242":1,"251":1}}],["liteyuki",{"0":{"17":1,"36":1,"58":1,"81":1,"84":1,"85":1,"108":1,"116":1,"117":1,"134":1,"135":1,"146":1,"148":1,"150":1,"152":1,"155":1,"194":1,"196":1,"200":1,"201":1,"223":1,"224":1,"226":1,"230":1,"232":1,"233":1,"238":1,"242":1,"251":1,"252":1,"293":1},"1":{"18":1,"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"43":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"59":1,"60":1,"61":1,"62":1,"63":1,"64":1,"65":1,"66":1,"67":1,"68":1,"69":1,"70":1,"71":1,"72":1,"73":1,"74":1,"75":1,"76":1,"77":1,"78":1,"79":1,"80":1,"82":1,"83":1,"86":1,"87":1,"88":1,"89":1,"90":1,"91":1,"92":1,"93":1,"94":1,"95":1,"96":1,"97":1,"98":1,"99":1,"100":1,"101":1,"102":1,"103":1,"104":1,"105":1,"106":1,"107":1,"109":1,"110":1,"111":1,"112":1,"113":1,"114":1,"115":1,"118":1,"119":1,"120":1,"121":1,"122":1,"123":1,"124":1,"125":1,"126":1,"127":1,"128":1,"129":1,"130":1,"131":1,"132":1,"133":1,"136":1,"137":1,"138":1,"139":1,"140":1,"141":1,"142":1,"143":1,"144":1,"145":1,"147":1,"149":1,"151":1,"153":1,"154":1,"156":1,"157":1,"158":1,"159":1,"160":1,"161":1,"162":1,"163":1,"164":1,"165":1,"166":1,"167":1,"168":1,"169":1,"170":1,"171":1,"172":1,"173":1,"174":1,"175":1,"176":1,"177":1,"178":1,"179":1,"180":1,"181":1,"182":1,"183":1,"184":1,"185":1,"186":1,"187":1,"188":1,"189":1,"190":1,"191":1,"192":1,"193":1,"195":1,"197":1,"198":1,"199":1,"202":1,"203":1,"204":1,"205":1,"206":1,"207":1,"208":1,"209":1,"210":1,"211":1,"212":1,"213":1,"214":1,"215":1,"216":1,"217":1,"218":1,"219":1,"220":1,"221":1,"222":1,"225":1,"227":1,"228":1,"229":1,"231":1,"234":1,"235":1,"236":1,"237":1,"239":1,"240":1,"241":1,"243":1,"244":1,"245":1,"246":1,"247":1,"248":1,"249":1,"250":1,"253":1,"254":1,"255":1,"256":1,"257":1,"294":1},"2":{"1":6,"2":4,"3":2,"4":2,"6":6,"12":1,"14":1,"15":1,"19":2,"21":2,"33":1,"147":2,"150":1,"197":5,"231":3,"259":4,"260":3,"261":6,"263":1,"264":12,"267":2,"269":4,"271":6,"272":2,"273":1,"274":1,"282":1,"283":4,"286":1,"287":1,"291":4,"292":3}}],["liteyukibot",{"0":{"18":1,"33":1},"1":{"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1},"2":{"0":5,"9":1,"12":2,"13":6,"14":1,"22":1,"33":2,"147":1,"259":2,"260":2,"261":2,"263":1,"271":3}}],["limited",{"2":{"4":1}}],["listdir",{"2":{"114":1,"198":2}}],["listen",{"2":{"263":1}}],["listening",{"2":{"1":1}}],["listed",{"2":{"6":1}}],["list",{"0":{"164":1,"178":1,"179":1,"180":1,"183":1,"184":1,"185":1,"189":1,"228":1,"241":1},"2":{"1":4,"44":6,"65":2,"86":1,"87":1,"189":4,"190":4,"192":3,"228":1,"235":1,"239":3,"241":1,"291":1,"293":2,"294":1}}],["switch",{"2":{"291":2,"292":1}}],["simple",{"2":{"282":1}}],["single",{"2":{"272":1}}],["signature",{"2":{"257":2}}],["sides",{"2":{"3":1,"6":1}}],["side",{"0":{"3":1},"2":{"6":4}}],["src",{"2":{"231":1,"271":2,"283":5}}],["schedule",{"2":{"145":1}}],["script",{"0":{"14":1},"2":{"14":1,"261":1}}],["scripts",{"2":{"12":1}}],["shinjuku",{"2":{"297":1}}],["shellstatistic",{"2":{"299":1}}],["shellbind",{"2":{"297":1}}],["shellweather",{"2":{"297":1}}],["shellmain",{"2":{"288":1}}],["shellvar",{"2":{"276":1}}],["shellcmd",{"2":{"275":1}}],["shell",{"2":{"275":1,"277":1}}],["shutil",{"2":{"192":1}}],["shutdown",{"0":{"29":1,"30":1,"48":1,"49":1,"54":1,"55":1},"2":{"29":2,"30":2,"44":2,"48":2,"49":2,"54":3,"55":3}}],["showing",{"2":{"261":1}}],["show",{"2":{"154":6}}],["should",{"2":{"65":1,"272":7}}],["shared",{"0":{"102":1},"2":{"89":3,"103":1,"104":3,"105":3,"106":3,"107":2,"123":1,"263":1,"267":3}}],["syntax",{"2":{"269":1,"272":1}}],["sync",{"0":{"37":1,"40":1,"59":1,"61":1},"2":{"39":1,"42":1,"60":1,"63":1,"257":1}}],["sys",{"2":{"22":3,"154":1}}],["system",{"0":{"145":1},"2":{"15":2,"22":4,"145":1,"283":2}}],["snowykami",{"2":{"36":2,"117":2,"146":2,"152":2,"155":2,"196":2,"200":2,"201":2,"224":2,"226":2,"230":2,"232":2,"233":2,"238":2,"242":2,"251":2}}],["sleep",{"2":{"21":1,"22":1,"264":1,"276":1,"277":1}}],["style",{"2":{"272":2,"288":2}}],["stem",{"2":{"256":2}}],["stdout",{"2":{"154":1}}],["store",{"2":{"89":1,"90":1,"91":1,"92":2,"93":1,"223":1}}],["storage",{"0":{"85":1},"1":{"86":1,"87":1,"88":1,"89":1,"90":1,"91":1,"92":1,"93":1,"94":1,"95":1,"96":1,"97":1,"98":1,"99":1,"100":1,"101":1,"102":1,"103":1,"104":1,"105":1,"106":1,"107":1},"2":{"84":2,"267":2}}],["stopped",{"2":{"20":1}}],["stopping",{"2":{"20":1}}],["stop",{"0":{"26":1},"2":{"19":1,"20":1,"21":2,"26":2}}],["strings",{"2":{"272":2}}],["strip",{"2":{"225":2}}],["str=",{"2":{"191":1,"192":1}}],["structure",{"0":{"271":1},"2":{"66":1}}],["str",{"0":{"23":1,"34":1,"35":2,"65":1,"74":1,"75":1,"76":1,"77":1,"78":2,"79":2,"80":2,"83":2,"90":1,"91":1,"92":1,"93":1,"94":1,"95":1,"96":1,"104":2,"105":2,"106":2,"107":2,"109":2,"110":2,"111":2,"112":2,"113":2,"114":2,"115":1,"119":2,"123":1,"125":1,"127":1,"130":1,"131":1,"132":1,"145":1,"147":1,"153":2,"163":1,"164":2,"165":1,"166":1,"167":1,"171":1,"172":1,"174":1,"176":1,"177":1,"180":1,"182":1,"186":1,"187":3,"188":2,"189":1,"190":1,"191":2,"192":3,"195":1,"197":1,"198":1,"199":2,"209":1,"210":1,"211":1,"213":1,"214":1,"215":1,"219":1,"221":1,"228":9,"229":2,"241":1,"256":1},"2":{"19":1,"23":2,"34":2,"35":3,"40":1,"41":1,"65":2,"73":2,"74":2,"75":2,"76":2,"77":3,"78":2,"79":2,"80":2,"83":2,"86":1,"87":1,"89":5,"90":1,"91":1,"92":1,"93":3,"94":1,"95":1,"96":1,"104":2,"105":2,"106":2,"107":2,"109":2,"110":2,"111":2,"112":2,"113":2,"114":2,"115":1,"119":2,"121":2,"123":1,"125":1,"127":1,"129":1,"130":1,"131":1,"132":1,"145":1,"147":1,"153":2,"187":3,"188":2,"189":1,"190":1,"191":1,"192":4,"195":2,"197":1,"198":1,"199":3,"228":9,"229":2,"241":1,"250":1,"256":2,"264":1}}],["statistic",{"2":{"300":1}}],["statistics",{"0":{"299":1},"1":{"300":1}}],["static",{"0":{"159":1},"2":{"190":1}}],["staticmethod",{"0":{"159":1},"2":{"44":1,"45":1,"95":1,"96":1,"190":1}}],["status",{"2":{"291":1,"292":1}}],["stat",{"2":{"261":1,"300":1}}],["star",{"2":{"261":1}}],["starmap",{"2":{"261":1}}],["startup",{"2":{"264":2}}],["startswith",{"2":{"190":3,"224":1,"225":1}}],["started",{"2":{"6":1}}],["start",{"0":{"27":1,"28":1,"46":1,"47":1,"52":1,"53":1,"97":1,"122":1,"132":1,"133":1},"2":{"1":2,"6":3,"12":1,"20":1,"22":2,"27":2,"28":2,"44":2,"46":2,"47":2,"52":3,"53":3,"97":2,"122":2,"132":2,"133":2,"255":1,"264":1}}],["starting",{"2":{"0":1,"122":1,"133":1}}],["standardization",{"0":{"272":1}}],["standard",{"2":{"6":2}}],["s",{"2":{"15":1}}],["sparkles",{"2":{"272":2}}],["space",{"2":{"15":1}}],["split",{"2":{"197":4}}],["specified",{"2":{"197":1}}],["specific",{"2":{"15":1}}],["specify",{"2":{"6":1}}],["so",{"2":{"271":1}}],["software",{"2":{"36":1,"117":1,"146":1,"152":1,"155":1,"196":1,"200":1,"201":1,"224":1,"226":1,"230":1,"232":1,"233":1,"238":1,"242":1,"251":1}}],["source",{"0":{"167":1},"2":{"12":1,"15":1,"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"65":1,"66":1,"67":1,"68":1,"69":1,"74":1,"75":1,"76":1,"77":1,"78":1,"79":1,"80":1,"83":1,"89":1,"90":1,"91":1,"92":1,"93":1,"94":1,"95":1,"96":1,"97":1,"99":1,"104":1,"105":1,"106":1,"107":1,"109":1,"110":1,"111":1,"112":1,"113":1,"114":1,"115":1,"119":1,"121":1,"122":1,"123":1,"124":1,"125":1,"126":1,"127":1,"129":1,"130":1,"131":1,"132":1,"133":1,"138":1,"140":1,"141":1,"142":1,"143":1,"144":1,"145":1,"147":1,"153":1,"154":1,"187":1,"188":1,"189":1,"190":3,"191":7,"192":1,"195":1,"197":1,"198":1,"199":1,"217":1,"225":1,"228":1,"229":1,"231":1,"235":1,"236":1,"237":1,"239":1,"240":1,"241":1,"245":1,"246":1,"247":1,"248":1,"249":1,"250":1,"253":1,"254":1,"255":1,"256":1,"257":1,"261":1,"271":1,"273":1}}],["solution",{"0":{"8":1,"9":1}}],["some",{"2":{"1":1,"6":2}}],["search",{"2":{"293":1,"294":1}}],["see",{"2":{"270":1}}],["session",{"0":{"226":1,"228":2,"232":1,"233":1,"238":1,"242":1,"251":2},"1":{"227":1,"228":1,"229":1,"234":1,"235":1,"236":1,"237":1,"239":1,"240":1,"241":1,"243":1,"244":1,"245":1,"246":1,"247":1,"248":1,"249":1,"250":1},"2":{"228":6,"229":5,"251":1}}],["service",{"0":{"204":2},"2":{"199":1,"282":1}}],["server",{"2":{"1":1,"3":1,"9":1,"15":1}}],["sep",{"2":{"190":3}}],["sequence",{"0":{"45":1},"2":{"45":2}}],["setting",{"2":{"270":1}}],["set",{"0":{"74":1,"75":1,"78":1,"90":1,"105":1,"198":1},"2":{"19":1,"21":1,"26":1,"65":1,"74":2,"75":2,"77":1,"78":3,"90":2,"104":1,"105":3,"198":2,"254":1,"267":1,"291":2,"292":1,"295":2}}],["self",{"0":{"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"44":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"65":1,"66":1,"67":1,"68":1,"69":1,"83":1,"89":1,"90":1,"91":1,"92":1,"93":1,"94":1,"95":1,"97":1,"119":1,"121":1,"122":1,"123":1,"124":1,"125":1,"126":1,"127":1,"129":1,"130":1,"131":1,"132":1,"133":1,"140":1,"141":1,"142":1,"143":1,"144":1,"217":1,"228":1,"229":1,"235":1,"236":1,"237":1,"245":1,"246":1,"247":1,"248":1},"2":{"19":11,"20":4,"21":3,"22":4,"23":2,"24":2,"25":1,"26":3,"27":2,"28":2,"29":2,"30":2,"31":2,"32":2,"44":8,"46":2,"47":2,"48":2,"49":2,"50":2,"51":2,"52":3,"53":3,"54":3,"55":3,"56":3,"57":3,"65":14,"66":6,"67":3,"68":2,"69":3,"83":3,"89":7,"90":3,"91":3,"92":4,"93":3,"94":2,"95":1,"97":4,"119":6,"121":4,"122":2,"123":2,"124":2,"125":3,"126":3,"127":3,"129":2,"130":2,"131":2,"132":3,"133":2,"140":1,"141":2,"142":2,"143":2,"144":2,"190":1,"191":1,"217":2,"228":10,"229":3,"235":5,"236":2,"237":3,"245":2,"246":2,"247":2,"248":3}}],["send",{"0":{"66":1},"2":{"6":1,"23":2,"65":2,"66":4,"74":1,"76":1,"77":1,"79":1,"80":1,"90":1,"91":1,"92":1,"93":1,"94":1,"97":1,"104":1,"107":1,"229":1,"263":1,"264":3,"291":1}}],["summary",{"2":{"272":1}}],["summary>",{"2":{"191":3}}],["summary>源代码",{"2":{"191":1}}],["suggestions",{"0":{"270":1}}],["su",{"0":{"250":1},"2":{"224":1,"225":1,"250":1}}],["succeeded",{"2":{"197":1}}],["success",{"2":{"125":1,"154":2,"197":2}}],["such",{"2":{"6":1,"270":1,"272":2}}],["subprocess",{"2":{"129":1,"130":1,"131":1}}],["subprocessmanager",{"0":{"128":1},"1":{"129":1,"130":1,"131":1,"132":1,"133":1}}],["subscribe",{"2":{"95":1}}],["subscriber",{"0":{"86":1,"87":1,"95":1,"96":1},"2":{"95":7,"96":2,"97":1}}],["sub",{"0":{"87":1},"2":{"33":1,"65":2,"69":1,"89":1,"95":4,"97":1}}],["submitted",{"2":{"272":1}}],["submit",{"2":{"7":1,"269":2}}],["sure",{"2":{"6":2}}],["support",{"2":{"260":2,"272":1}}],["supported",{"2":{"4":1,"114":1}}],["supports",{"2":{"0":1,"8":5}}],["superuser",{"2":{"1":1}}],["superusers",{"2":{"0":1,"1":1,"6":1,"250":1}}],["same",{"2":{"3":2}}],["safe",{"2":{"2":2,"6":3,"110":1}}],["num为每页显示数量",{"2":{"293":2}}],["num",{"2":{"293":2}}],["number",{"2":{"13":2}}],["nliteyuki",{"2":{"275":1}}],["n\`\`\`",{"2":{"191":2}}],["n\`\`\`python",{"2":{"191":2}}],["n",{"2":{"191":52,"192":2}}],["name>",{"2":{"276":2}}],["name=module",{"2":{"197":3}}],["name=target",{"2":{"190":2}}],["name=class",{"2":{"190":1}}],["name=node",{"2":{"190":2}}],["name=f",{"2":{"123":2}}],["name=",{"2":{"70":1,"71":1,"89":3,"282":1}}],["name",{"0":{"23":1,"65":1,"74":1,"76":1,"83":1,"123":1,"125":1,"127":1,"130":1,"131":1,"132":1,"163":1,"171":1,"176":1,"193":1,"199":2,"209":1,"219":1,"221":1,"256":1},"2":{"23":6,"65":11,"74":7,"75":2,"76":5,"78":3,"79":3,"83":3,"122":3,"123":5,"124":1,"125":6,"126":2,"127":5,"130":3,"131":4,"132":5,"133":2,"190":11,"191":7,"192":2,"197":20,"198":9,"199":6,"217":1,"256":1,"264":2,"291":4,"293":8}}],["ntqq",{"2":{"8":1}}],["npm",{"2":{"6":1,"293":7,"294":1}}],["nesting",{"2":{"272":1}}],["new",{"0":{"130":1},"2":{"19":1,"109":3,"130":1,"254":1,"269":1,"272":2}}],["necessary",{"2":{"6":1}}],["needs",{"2":{"264":1}}],["need",{"2":{"0":1,"2":1,"6":1,"269":1}}],["non",{"2":{"273":1}}],["nonlocal",{"2":{"138":1}}],["nonedog",{"2":{"282":1}}],["none",{"0":{"19":1,"23":1,"34":1,"35":1,"44":1,"45":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"65":1,"69":1,"90":1,"91":1,"92":1,"94":1,"100":1,"123":1,"130":1,"145":1,"173":1,"191":1,"192":1,"222":1,"228":2,"237":1},"2":{"19":1,"23":2,"33":1,"34":1,"35":1,"44":1,"45":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"65":3,"66":1,"68":1,"69":2,"90":1,"92":1,"94":1,"99":2,"110":1,"111":1,"112":1,"123":1,"130":1,"136":1,"138":1,"145":1,"190":3,"192":1,"197":4,"198":1,"228":1,"237":1,"243":2,"248":1,"253":1}}],["nonebot2",{"2":{"4":2,"10":1}}],["nonebot",{"0":{"3":1},"2":{"1":2,"2":2,"3":1,"10":1,"252":1,"260":6,"264":3,"271":3,"282":1,"283":4,"286":1}}],["nohup",{"2":{"22":2,"276":1,"277":1}}],["nodes",{"2":{"190":2}}],["node",{"2":{"8":1,"15":1,"190":42}}],["notimplementederror",{"2":{"140":1}}],["not",{"2":{"1":1,"2":1,"4":1,"6":4,"15":2,"21":1,"23":1,"33":1,"65":1,"66":2,"69":4,"74":1,"92":1,"95":3,"97":1,"110":1,"111":1,"112":1,"113":3,"114":3,"125":2,"127":2,"132":2,"145":2,"188":1,"190":8,"197":1,"198":8,"237":1,"272":3,"283":2}}],["normal>",{"2":{"154":1}}],["normal",{"0":{"12":1,"190":1},"2":{"1":1,"190":1,"192":1}}],["no",{"0":{"113":1,"114":1,"115":1,"163":1,"164":1,"165":1,"166":1,"168":1,"169":1,"171":1,"172":1,"176":1,"177":1,"178":1,"179":1,"180":1,"182":1,"183":1,"184":1,"185":1,"186":1,"193":1,"209":1,"219":1,"220":1,"221":1},"2":{"1":1,"72":1,"73":1,"113":3,"114":3,"115":3,"190":3,"191":1,"192":2,"272":1}}],["nickname",{"2":{"0":1,"1":2,"6":3}}],["ignored",{"0":{"192":1},"2":{"192":7}}],["ignore",{"0":{"92":1,"190":1,"198":1},"2":{"92":3,"190":5,"192":1,"198":5}}],["id仅超级用户可用",{"2":{"291":1}}],["id=user",{"2":{"277":2}}],["id=1234567",{"2":{"291":2}}],["id=123456",{"2":{"277":1}}],["id=self",{"2":{"229":3}}],["id",{"0":{"228":3},"2":{"69":5,"190":6,"228":9,"229":3,"250":1,"277":2,"291":2,"293":1,"299":4}}],["ids",{"2":{"65":2,"69":2}}],["impossible",{"2":{"263":1}}],["import",{"2":{"103":1,"197":1,"264":5,"267":1,"282":2,"283":3,"286":1}}],["implemented",{"2":{"140":1,"264":1}}],["implement",{"2":{"6":1,"264":1}}],["implementation",{"0":{"3":1},"2":{"3":1,"6":4,"8":1}}],["image",{"2":{"13":1,"291":2,"292":1}}],["i",{"2":{"6":2,"239":2,"264":6}}],["icon=f",{"2":{"154":5}}],["icon",{"2":{"1":2,"154":7,"191":1,"192":2}}],["isclass",{"2":{"253":1}}],["iscoroutinefunction",{"2":{"253":2}}],["isroutine",{"2":{"253":1}}],["isfile",{"2":{"198":1,"283":1}}],["isdir",{"2":{"198":2}}],["isinstance",{"2":{"74":1,"109":1,"190":13,"197":1,"264":1}}],["issues",{"2":{"9":2}}],["issue",{"2":{"7":1}}],["is",{"0":{"127":1,"169":1,"250":1,"253":1},"2":{"1":3,"2":1,"3":3,"4":1,"6":2,"12":1,"15":1,"19":1,"20":2,"21":3,"23":1,"33":2,"45":1,"65":6,"66":1,"69":5,"74":1,"76":1,"77":1,"89":2,"90":1,"91":1,"92":1,"93":1,"95":3,"97":1,"99":2,"110":1,"111":1,"112":1,"123":1,"125":1,"127":2,"145":1,"150":1,"190":2,"191":2,"192":1,"197":1,"198":2,"223":1,"228":1,"248":1,"250":1,"253":1,"254":1,"263":2,"264":3,"271":3,"272":12,"273":1}}],["if",{"2":{"1":2,"2":4,"3":1,"6":2,"7":1,"13":2,"15":2,"22":2,"23":1,"33":2,"35":2,"45":1,"65":5,"66":3,"67":1,"69":6,"74":3,"76":1,"77":1,"90":1,"91":1,"92":3,"93":1,"95":5,"97":2,"99":2,"109":1,"110":1,"111":1,"112":1,"113":2,"114":3,"123":1,"125":2,"127":1,"132":1,"138":1,"145":1,"153":1,"154":5,"188":1,"189":1,"190":20,"191":10,"192":4,"197":2,"198":9,"228":1,"229":1,"237":1,"239":1,"248":1,"253":2,"254":1,"256":1,"269":3,"272":2}}],["inaccessible",{"2":{"272":1}}],["included",{"2":{"271":1}}],["including",{"2":{"15":1}}],["inspect",{"2":{"253":4,"257":1}}],["insert",{"2":{"239":1}}],["instances",{"2":{"261":1}}],["instance",{"0":{"99":1,"100":1},"2":{"19":2,"33":4,"66":1,"74":1,"99":5,"102":1}}],["installed",{"2":{"15":1}}],["installation",{"0":{"12":1},"2":{"6":2}}],["install",{"0":{"11":1},"1":{"12":1,"13":1,"14":1,"15":1,"16":1},"2":{"6":3,"12":3,"13":1,"15":2,"290":1,"293":1,"294":1}}],["instead",{"2":{"6":2,"13":1,"35":1}}],["index",{"2":{"191":1,"192":1,"288":1}}],["inherit=",{"2":{"190":1}}],["inherit",{"0":{"180":1},"2":{"191":5}}],["inner",{"2":{"65":2}}],["initialized",{"2":{"33":1,"65":2}}],["initializing",{"2":{"19":1}}],["init",{"0":{"19":1,"24":1,"25":1,"44":1,"65":1,"83":1,"89":1,"119":1,"121":1,"129":1,"154":1,"228":1,"235":1,"245":1},"2":{"19":2,"24":2,"25":2,"44":1,"65":1,"83":1,"89":1,"119":1,"121":1,"129":1,"154":1,"190":1,"192":2,"198":2,"228":1,"230":1,"232":1,"235":1,"245":1,"256":1,"282":3}}],["introducing",{"2":{"272":1}}],["introduction",{"0":{"263":1}}],["into",{"2":{"269":1}}],["inter",{"2":{"263":1}}],["interface",{"2":{"261":1}}],["interpreter",{"2":{"6":1}}],["interpreters",{"2":{"6":2}}],["int=0",{"2":{"22":1,"240":1,"241":1}}],["int",{"0":{"22":1,"235":1,"240":1,"241":1},"2":{"22":1,"44":1,"65":2,"235":1}}],["intact",{"2":{"6":1}}],["invalidgitrepositoryerror",{"2":{"6":1}}],["information",{"2":{"3":1,"270":1}}],["info",{"0":{"190":1,"191":1},"2":{"1":1,"19":1,"20":2,"21":2,"22":1,"154":3,"190":12,"191":5,"192":5,"264":2}}],["in",{"0":{"115":1,"255":1},"2":{"0":3,"1":1,"2":1,"3":2,"6":3,"23":1,"33":1,"35":3,"45":1,"65":5,"68":1,"69":1,"74":1,"75":1,"92":1,"95":3,"96":1,"97":1,"109":2,"113":1,"114":2,"115":1,"122":1,"124":1,"125":1,"126":1,"127":1,"132":1,"133":1,"145":1,"147":1,"188":1,"189":2,"190":13,"191":9,"192":5,"198":2,"223":2,"231":2,"237":1,"239":1,"241":2,"250":1,"254":2,"255":1,"263":1,"269":5,"270":2,"271":4,"272":6,"273":1,"283":1}}],["iter",{"2":{"190":2}}],["items",{"2":{"0":1,"6":1,"75":1,"109":2,"133":1,"188":1,"191":1,"192":1}}],["itself",{"2":{"6":1,"9":1}}],["it",{"2":{"0":1,"2":2,"3":1,"6":5,"12":1,"263":2}}],["raw",{"0":{"228":1},"2":{"225":1,"228":3,"229":1,"241":1}}],["raise",{"2":{"33":2,"65":3,"66":2,"67":1,"69":1,"74":2,"92":1,"95":1,"97":1,"132":1,"140":1}}],["rulehandlerfunc",{"0":{"243":1,"245":1},"2":{"245":1}}],["rule=empty",{"2":{"240":1,"241":1}}],["rule=is",{"2":{"224":1,"225":1}}],["rule",{"0":{"235":2,"240":3,"241":2,"242":1,"244":1,"246":2,"247":2,"249":1,"250":1},"1":{"243":1,"244":1,"245":2,"246":2,"247":2,"248":2,"249":1,"250":1},"2":{"224":1,"225":1,"235":5,"237":1,"240":3,"241":5,"242":1,"246":3,"247":3,"248":1,"249":3,"250":2}}],["runnable",{"2":{"272":1}}],["running",{"2":{"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"65":1,"68":1,"89":2,"254":2,"263":1}}],["runtimeerror",{"2":{"33":2,"66":1,"67":1,"69":1,"95":1,"97":1,"254":1}}],["run",{"0":{"13":1,"20":1,"45":1,"96":1,"147":1,"237":1,"254":1,"255":1},"2":{"0":1,"12":1,"13":2,"15":1,"20":3,"45":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"68":1,"96":1,"97":1,"122":1,"147":2,"237":1,"254":3,"255":1,"286":2}}],["r>",{"2":{"197":2}}],["rv",{"2":{"192":2}}],["rk",{"2":{"192":2}}],["rmtree",{"2":{"192":1}}],["rpm",{"2":{"293":5,"294":1}}],["rp",{"2":{"188":4}}],["rpc",{"2":{"84":1}}],["rights",{"2":{"36":1,"117":1,"146":1,"152":1,"155":1,"196":1,"200":1,"201":1,"224":1,"226":1,"230":1,"232":1,"233":1,"238":1,"242":1,"251":1}}],["root",{"2":{"13":1,"189":2}}],["r",{"2":{"12":1,"15":1,"110":1,"111":1,"112":1,"190":1}}],["revise",{"2":{"272":1}}],["reverse",{"2":{"3":2}}],["readme",{"2":{"192":2}}],["read",{"2":{"190":1,"269":2}}],["reload",{"2":{"291":1,"292":2,"293":1,"294":1}}],["reloading",{"2":{"283":1}}],["related",{"2":{"271":1,"272":1}}],["relative",{"0":{"187":1},"2":{"187":1,"192":1,"193":1,"256":1}}],["rel",{"2":{"192":4,"256":5}}],["relpath",{"2":{"187":1}}],["red>",{"2":{"154":1}}],["remove",{"2":{"154":1}}],["ref",{"0":{"103":1}}],["refer",{"0":{"16":1},"2":{"6":1,"272":1}}],["reference",{"2":{"3":1,"269":1}}],["returns",{"2":{"190":4}}],["return",{"0":{"165":1},"2":{"27":2,"28":2,"29":2,"30":2,"31":2,"32":2,"33":2,"34":2,"35":4,"46":2,"47":2,"48":2,"49":2,"50":2,"51":2,"67":2,"68":2,"69":7,"76":3,"77":3,"91":3,"93":3,"95":3,"99":1,"109":2,"110":1,"111":1,"112":1,"113":1,"114":1,"115":1,"125":1,"127":1,"130":1,"138":3,"145":4,"153":2,"187":1,"189":1,"190":4,"191":4,"195":2,"197":2,"198":1,"199":2,"217":1,"236":3,"237":1,"240":1,"241":2,"246":2,"247":2,"248":2,"249":1,"250":1,"253":4,"256":3,"257":3}}],["reply",{"0":{"229":1},"2":{"225":1,"229":3}}],["replace",{"2":{"13":1,"190":3,"191":4,"192":8}}],["repository",{"2":{"269":7,"271":2,"272":1}}],["repo",{"2":{"13":1}}],["report设定为false",{"2":{"289":1}}],["reports",{"2":{"6":1}}],["report",{"2":{"1":2,"6":2,"289":1}}],["request",{"2":{"269":1}}],["requests",{"2":{"1":1}}],["required",{"2":{"65":1,"272":1}}],["requires",{"2":{"15":1}}],["requirements",{"0":{"15":1},"1":{"16":1},"2":{"12":1,"15":1}}],["restriction",{"2":{"272":1}}],["restarting",{"2":{"22":1}}],["restart",{"0":{"22":1,"23":1,"31":1,"32":1,"50":1,"51":1,"56":1,"57":1},"2":{"0":1,"19":1,"22":3,"23":1,"31":2,"32":2,"44":2,"50":2,"51":2,"56":3,"57":3,"283":2}}],["resource",{"2":{"271":1}}],["resources",{"2":{"271":1,"287":1,"288":1,"292":1}}],["resolve",{"2":{"256":2}}],["reserved",{"2":{"36":1,"117":1,"146":1,"152":1,"155":1,"196":1,"200":1,"201":1,"224":1,"226":1,"230":1,"232":1,"233":1,"238":1,"242":1,"251":1}}],["response",{"2":{"6":2}}],["respond",{"2":{"6":1}}],["receiving",{"2":{"264":1}}],["receive",{"0":{"59":1,"60":1,"67":1,"68":1,"69":1,"86":1,"87":1,"95":3,"96":1,"97":1,"228":1},"2":{"1":1,"60":2,"65":3,"67":2,"68":2,"69":4,"76":1,"77":2,"78":2,"79":2,"80":1,"86":1,"87":1,"89":2,"91":1,"93":1,"95":11,"96":2,"97":4,"103":1,"104":2,"105":2,"106":2,"107":1,"228":3,"229":3,"264":11}}],["recursive=recursive",{"2":{"145":1}}],["recursive",{"0":{"145":1},"2":{"145":2}}],["recv",{"2":{"65":2,"67":2,"76":5,"77":5,"79":3,"80":3,"91":5,"93":5,"104":3,"107":3}}],["recommended",{"0":{"8":1,"9":1},"2":{"3":1,"6":1,"12":1,"14":1,"15":2,"272":1}}],["city",{"2":{"297":1,"298":1}}],["css相对路径引用b中的css",{"2":{"288":1}}],["css",{"2":{"287":1,"288":1}}],["cwd",{"2":{"256":1}}],["cfg",{"2":{"147":4}}],["cute",{"2":{"259":1}}],["current|bot",{"2":{"299":1}}],["current|group",{"2":{"299":1}}],["current",{"2":{"138":3,"299":2,"300":1}}],["custom",{"2":{"2":4,"259":1}}],["customize",{"2":{"2":1}}],["c",{"2":{"36":1,"109":1,"117":1,"146":1,"152":1,"155":1,"196":1,"199":1,"200":1,"201":1,"224":1,"226":1,"230":1,"232":1,"233":1,"238":1,"242":1,"251":1,"254":4,"256":2,"300":1}}],["cmd",{"2":{"22":5,"275":2,"276":1}}],["cpu",{"2":{"15":1,"289":1}}],["cd",{"2":{"12":1,"13":1}}],["cls",{"0":{"99":1},"2":{"99":6,"190":1,"191":11}}],["close",{"2":{"254":1}}],["closed",{"2":{"65":1,"66":2,"67":2,"261":1}}],["clone",{"2":{"12":2,"13":2}}],["cloning",{"2":{"6":1}}],["classdef",{"2":{"190":3}}],["classes=",{"2":{"190":1}}],["classes",{"0":{"184":1},"2":{"190":1,"191":1}}],["classinfo",{"0":{"175":1,"184":1},"1":{"176":1,"177":1,"178":1,"179":1,"180":1},"2":{"190":1}}],["classmethod",{"0":{"160":1},"2":{"98":1,"99":1,"190":1}}],["class",{"0":{"18":1,"43":1,"64":1,"82":1,"88":1,"98":1,"118":1,"120":1,"128":1,"139":1,"149":1,"156":1,"160":1,"162":1,"170":1,"175":1,"181":1,"202":1,"208":1,"216":1,"227":1,"234":1,"244":1},"1":{"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"65":1,"66":1,"67":1,"68":1,"69":1,"83":1,"89":1,"90":1,"91":1,"92":1,"93":1,"94":1,"95":1,"96":1,"97":1,"99":1,"100":1,"101":1,"119":1,"121":1,"122":1,"123":1,"124":1,"125":1,"126":1,"127":1,"129":1,"130":1,"131":1,"132":1,"133":1,"140":1,"141":1,"142":1,"143":1,"144":1,"157":1,"158":1,"159":1,"160":1,"161":1,"163":1,"164":1,"165":1,"166":1,"167":1,"168":1,"169":1,"171":1,"172":1,"173":1,"174":1,"176":1,"177":1,"178":1,"179":1,"180":1,"182":1,"183":1,"184":1,"185":1,"186":1,"203":1,"204":1,"205":1,"206":1,"207":1,"209":1,"210":1,"211":1,"212":1,"213":1,"214":1,"215":1,"217":1,"218":1,"219":1,"220":1,"221":1,"222":1,"228":1,"229":1,"235":1,"236":1,"237":1,"245":1,"246":1,"247":1,"248":1},"2":{"190":24,"191":2}}],["client",{"2":{"8":1}}],["cqhttp",{"2":{"8":1}}],["chinese",{"2":{"271":1}}],["child",{"2":{"190":2,"263":1}}],["chromium",{"2":{"15":1}}],["channel时的通道标识",{"2":{"264":1}}],["channel即可",{"2":{"264":1}}],["channel及passive",{"2":{"264":1}}],["channel函数获取通道对象",{"2":{"264":2}}],["channel=none",{"2":{"229":1}}],["channeldeliver",{"0":{"118":1},"1":{"119":1},"2":{"123":1}}],["channels",{"0":{"75":2,"77":1,"80":1},"2":{"75":4,"77":2,"79":1,"80":3}}],["channel",{"0":{"58":1,"64":1,"70":1,"71":1,"72":2,"73":2,"74":3,"75":1,"76":2,"77":1,"78":1,"79":1,"94":1,"95":1,"96":1,"119":8,"228":2,"262":1},"1":{"59":1,"60":1,"61":1,"62":1,"63":1,"64":1,"65":2,"66":2,"67":2,"68":2,"69":2,"70":1,"71":1,"72":1,"73":1,"74":1,"75":1,"76":1,"77":1,"78":1,"79":1,"80":1,"263":1,"264":1,"265":1,"266":1,"267":1},"2":{"23":2,"65":7,"66":1,"67":1,"70":3,"71":3,"72":2,"73":1,"74":19,"75":5,"76":9,"77":10,"78":11,"79":7,"80":2,"84":2,"89":4,"91":1,"93":1,"94":4,"95":8,"96":3,"97":2,"119":12,"123":12,"228":4,"229":2,"263":3,"264":14}}],["chan",{"2":{"23":4,"76":5,"77":5,"79":3,"80":3,"89":2,"90":1,"91":6,"92":1,"93":6,"94":1,"97":1,"103":1,"104":5,"105":2,"106":2,"107":4,"123":2,"264":2}}],["changed",{"2":{"283":1}}],["change",{"2":{"12":1,"13":1,"293":1,"294":1}}],["chat",{"2":{"6":1,"7":1,"9":1}}],["checking",{"2":{"270":1}}],["check",{"0":{"65":1},"2":{"1":1,"6":1,"65":8,"66":1}}],["cn",{"0":{"191":1,"192":1},"2":{"2":1,"191":2,"192":1}}],["color",{"2":{"199":7}}],["color=",{"2":{"154":5}}],["colors=true",{"2":{"20":2,"197":3}}],["copy",{"2":{"109":1,"269":1}}],["copyright",{"2":{"36":1,"117":1,"146":1,"152":1,"155":1,"196":1,"200":1,"201":1,"224":1,"226":1,"230":1,"232":1,"233":1,"238":1,"242":1,"251":1}}],["count",{"0":{"103":1},"2":{"19":1,"22":2}}],["code插件liteyuki",{"2":{"279":1}}],["code=ast",{"2":{"190":2}}],["codemodifiedhandler",{"0":{"139":1},"1":{"140":1,"141":1,"142":1,"143":1,"144":1},"2":{"145":1}}],["code",{"0":{"167":1},"2":{"15":1,"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"65":1,"66":1,"67":1,"68":1,"69":1,"74":1,"75":1,"76":1,"77":1,"78":1,"79":1,"80":1,"83":1,"89":1,"90":1,"91":1,"92":1,"93":1,"94":1,"95":1,"96":1,"97":1,"99":1,"104":1,"105":1,"106":1,"107":1,"109":1,"110":1,"111":1,"112":1,"113":1,"114":1,"115":1,"119":1,"121":1,"122":1,"123":1,"124":1,"125":1,"126":1,"127":1,"129":1,"130":1,"131":1,"132":1,"133":1,"138":1,"140":1,"141":1,"142":1,"143":1,"144":1,"145":4,"147":1,"153":1,"154":1,"187":1,"188":1,"189":1,"190":1,"191":7,"192":3,"195":1,"197":1,"198":1,"199":1,"217":1,"225":1,"228":1,"229":1,"231":1,"235":1,"236":1,"237":1,"239":1,"240":1,"241":1,"245":1,"246":1,"247":1,"248":1,"249":1,"250":1,"253":1,"254":1,"255":1,"256":1,"257":1,"269":2,"270":1,"271":1,"272":6}}],["corresponding",{"2":{"272":1}}],["correct",{"2":{"272":2}}],["correctly",{"2":{"6":2,"272":1}}],["coro",{"0":{"254":1,"255":1},"2":{"254":5,"255":2}}],["coroutine",{"0":{"253":1,"254":2,"255":2,"257":1},"2":{"45":1,"62":1,"69":2,"95":1,"243":1,"253":1,"254":2,"255":3,"257":2}}],["core",{"0":{"116":1,"117":1},"1":{"118":1,"119":1,"120":1,"121":1,"122":1,"123":1,"124":1,"125":1,"126":1,"127":1,"128":1,"129":1,"130":1,"131":1,"132":1,"133":1},"2":{"8":1}}],["come",{"2":{"263":1}}],["combined",{"2":{"246":2,"247":2}}],["com",{"2":{"12":1,"13":1,"36":1,"117":1,"146":1,"152":1,"155":1,"196":1,"200":1,"201":1,"224":1,"226":1,"230":1,"232":1,"233":1,"238":1,"242":1,"251":1}}],["compat",{"0":{"35":2},"2":{"35":8}}],["completing",{"2":{"272":1}}],["completion",{"2":{"2":2}}],["complete",{"2":{"254":2,"272":1}}],["complies",{"2":{"6":1}}],["computer",{"2":{"6":1}}],["commit",{"2":{"272":6}}],["comment",{"2":{"272":1}}],["communicate",{"2":{"263":1}}],["communication",{"0":{"262":1},"1":{"263":1,"264":1,"265":1,"266":1,"267":1},"2":{"3":1,"263":1}}],["comm",{"0":{"58":1,"81":1,"84":1,"85":1},"1":{"59":1,"60":1,"61":1,"62":1,"63":1,"64":1,"65":1,"66":1,"67":1,"68":1,"69":1,"70":1,"71":1,"72":1,"73":1,"74":1,"75":1,"76":1,"77":1,"78":1,"79":1,"80":1,"82":1,"83":1,"86":1,"87":1,"88":1,"89":1,"90":1,"91":1,"92":1,"93":1,"94":1,"95":1,"96":1,"97":1,"98":1,"99":1,"100":1,"101":1,"102":1,"103":1,"104":1,"105":1,"106":1,"107":1},"2":{"264":2,"267":2}}],["command>",{"2":{"276":2}}],["command",{"0":{"291":1},"1":{"292":1},"2":{"1":4,"6":5,"10":1}}],["conditions",{"2":{"272":1}}],["contributions",{"2":{"273":1}}],["content",{"2":{"190":2,"191":17,"192":2,"271":1,"272":1}}],["continue",{"2":{"114":1,"190":1,"192":1,"198":3}}],["container",{"2":{"13":1}}],["contact",{"2":{"6":1,"269":1}}],["conn",{"2":{"65":4,"66":1,"67":1}}],["connect",{"2":{"6":1}}],["connected",{"0":{"3":1}}],["convenient",{"2":{"14":1}}],["confirm",{"2":{"6":1}}],["configs",{"0":{"114":1},"2":{"114":1,"115":1}}],["config=self",{"2":{"25":1}}],["configured",{"2":{"3":1}}],["configuration",{"0":{"1":1,"3":1},"2":{"0":5,"1":1,"2":2,"3":1,"6":2}}],["configurations",{"0":{"0":1,"2":1},"1":{"1":1,"2":1,"3":1,"4":1},"2":{"2":1}}],["config",{"0":{"34":1,"35":1,"108":1,"109":2,"115":1,"154":1,"218":1},"1":{"109":1,"110":1,"111":1,"112":1,"113":1,"114":1,"115":1},"2":{"0":5,"2":2,"19":2,"25":1,"34":2,"35":6,"109":9,"110":6,"111":6,"112":6,"113":7,"114":4,"115":9,"147":1,"154":3,"231":2,"270":1,"291":4,"292":1}}],["conflict",{"2":{"6":1}}],["conflicts",{"2":{"6":1,"12":1,"269":1}}],["console",{"2":{"1":1,"270":1}}],["created",{"0":{"141":1},"2":{"141":1}}],["create",{"2":{"0":1,"12":1,"96":1,"269":2}}],["cat",{"2":{"259":1}}],["category",{"2":{"191":1,"192":2}}],["case",{"2":{"199":4,"269":1}}],["cases",{"2":{"0":1}}],["callback",{"0":{"136":1,"145":2},"2":{"69":1,"145":4,"264":1}}],["callable",{"0":{"69":3,"95":1,"130":1,"145":1,"236":1,"253":2,"257":2},"2":{"37":1,"38":1,"40":1,"41":1,"45":1,"59":1,"61":1,"62":1,"69":10,"95":2,"121":1,"130":1,"136":1,"137":1,"145":1,"236":1,"243":1,"253":2,"257":4}}],["call",{"0":{"253":1},"2":{"19":1,"22":2,"138":4,"248":1,"253":7,"264":1}}],["cache",{"2":{"13":2}}],["cannot",{"2":{"6":1,"66":1,"67":1,"95":1,"97":1}}],["can",{"2":{"0":2,"4":1,"6":2,"7":1,"12":1,"33":1,"69":1,"263":1,"264":1,"270":1,"272":1}}],["duration>",{"2":{"299":1}}],["duration",{"2":{"299":2,"300":1}}],["during",{"2":{"270":1}}],["duplex",{"2":{"264":1}}],["driver",{"2":{"264":4}}],["d",{"2":{"103":2,"104":4,"105":4,"106":4,"107":2,"256":2,"300":1}}],["data=",{"2":{"229":1}}],["data",{"0":{"66":1,"78":1,"79":1,"80":1,"83":1,"94":1,"96":1,"104":1,"105":1,"106":1,"107":1,"188":1,"228":1},"2":{"66":6,"67":2,"68":2,"69":5,"77":2,"78":7,"79":7,"80":4,"83":3,"94":4,"95":3,"96":3,"97":6,"104":4,"105":3,"106":2,"107":2,"188":5,"192":5,"228":5,"264":7}}],["daemon=true",{"2":{"22":1,"122":1,"255":1}}],["darwin",{"2":{"22":1}}],["day",{"2":{"1":1}}],["dog",{"2":{"282":1,"283":1}}],["double",{"2":{"272":1}}],["dot",{"2":{"190":1}}],["document",{"2":{"272":1}}],["documents",{"2":{"269":1}}],["documentation",{"2":{"6":1,"9":1,"261":1,"269":1,"271":3,"272":7}}],["docs",{"0":{"192":1},"2":{"192":3,"271":1,"291":1,"292":1}}],["docstring=method",{"2":{"190":1}}],["docstring=module",{"2":{"190":1}}],["docstring=class",{"2":{"190":1}}],["docstring=function",{"2":{"190":1}}],["docstring",{"0":{"166":1,"174":1,"177":1,"186":1},"2":{"190":16,"191":12,"272":2}}],["docker",{"0":{"13":1},"2":{"13":4,"271":2}}],["don",{"2":{"6":1,"7":1,"9":1}}],["download",{"2":{"6":1}}],["does",{"2":{"6":4,"198":1}}],["do",{"2":{"6":1,"15":1,"272":1}}],["did",{"2":{"272":1}}],["diagnose=false",{"2":{"154":1}}],["dict",{"0":{"75":1,"77":1,"78":1,"79":1,"80":1,"83":1,"93":1,"104":1,"105":1,"106":1,"107":1,"109":2,"110":1,"111":1,"112":1,"113":1,"114":1,"115":1,"119":1,"154":1,"188":1,"195":1,"215":1,"228":2,"229":1},"2":{"19":1,"73":1,"75":2,"77":3,"78":1,"79":1,"80":1,"83":1,"86":1,"87":1,"89":2,"93":3,"104":1,"105":1,"106":1,"107":1,"109":3,"110":1,"111":1,"112":1,"113":1,"114":1,"115":1,"119":1,"121":3,"129":1,"154":1,"188":1,"192":1,"195":2,"197":6,"228":2,"229":1}}],["disable",{"2":{"291":1,"292":1,"293":2,"294":2}}],["distribution",{"2":{"261":1}}],["disk",{"2":{"15":1}}],["display",{"0":{"199":2},"2":{"1":1,"197":7,"199":4}}],["different",{"2":{"3":2,"6":1}}],["dir",{"0":{"192":1,"198":1},"2":{"192":5,"198":16,"231":2}}],["dirname",{"2":{"188":2}}],["directories=",{"2":{"283":1}}],["directories",{"0":{"114":1,"145":1},"2":{"114":2,"145":3,"271":3}}],["directory",{"2":{"0":4,"1":1,"2":1,"12":1,"13":2,"114":6,"145":2,"198":1,"271":11}}],["directly",{"2":{"15":1}}],["direct",{"2":{"6":1,"263":1}}],["dirs",{"0":{"114":1},"2":{"1":1,"114":1,"115":1,"189":1,"231":1}}],["details",{"2":{"272":1}}],["details>",{"2":{"191":4}}],["detailed",{"2":{"2":1,"3":1,"272":1}}],["debounce",{"0":{"138":1},"2":{"138":1,"139":1,"140":1}}],["debugging",{"2":{"270":1}}],["debug",{"2":{"2":2,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"65":2,"110":1,"111":1,"112":1,"122":1,"133":1,"153":2,"154":2,"283":1}}],["deepcopy",{"2":{"109":1}}],["decorator",{"2":{"69":2,"95":2,"130":2,"138":2,"145":2,"190":13,"236":2,"264":1}}],["del",{"2":{"92":2}}],["deleted",{"0":{"142":1},"2":{"142":1}}],["delete",{"0":{"92":1,"106":1},"2":{"92":2,"105":1,"106":3}}],["deliver",{"0":{"72":1,"73":1,"119":2},"2":{"74":1,"76":1,"77":2,"78":2,"79":2,"80":1,"119":6,"123":6}}],["delivery",{"2":{"4":1,"123":1}}],["delay",{"0":{"22":1},"2":{"22":3}}],["deftype",{"0":{"156":1,"168":1},"1":{"157":1,"158":1,"159":1,"160":1,"161":1},"2":{"190":4,"191":1}}],["def",{"2":{"21":1,"45":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"68":1,"69":2,"78":1,"79":1,"80":1,"95":2,"96":1,"97":1,"99":1,"104":1,"105":1,"106":1,"107":1,"130":1,"138":2,"140":1,"145":2,"190":4,"191":2,"225":1,"236":1,"237":1,"241":1,"246":1,"247":1,"248":1,"249":1,"250":1,"257":1,"264":3,"283":1}}],["defaults",{"2":{"22":1,"23":1,"34":1,"35":1,"69":1}}],["default",{"0":{"34":1,"35":1,"91":1,"115":1,"163":1,"164":1,"165":1,"166":1,"168":1,"169":1,"171":1,"172":1,"176":1,"177":1,"178":1,"179":1,"180":1,"182":1,"183":1,"184":1,"185":1,"186":1,"209":1,"219":1,"220":1,"221":1,"231":1},"2":{"1":1,"2":3,"3":1,"34":3,"35":3,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"59":1,"60":1,"61":1,"62":1,"63":1,"70":1,"71":1,"72":2,"73":2,"86":1,"87":1,"91":5,"102":1,"103":1,"104":3,"115":1,"136":1,"137":1,"147":1,"151":1,"153":1,"193":1,"231":1,"243":1}}],["deprecated",{"2":{"35":1}}],["depth=1",{"2":{"12":1,"13":1}}],["deploy",{"2":{"6":1}}],["depend",{"2":{"15":1}}],["dependency",{"2":{"12":1}}],["dependencies",{"2":{"12":1,"15":1}}],["depends",{"2":{"3":1,"15":1}}],["depending",{"2":{"0":1}}],["description=",{"2":{"282":1}}],["description",{"0":{"210":1},"2":{"3":1,"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"59":1,"60":1,"61":1,"62":1,"63":1,"65":1,"66":1,"67":1,"68":1,"69":1,"70":1,"71":1,"72":1,"73":1,"74":1,"75":1,"76":1,"77":1,"86":1,"87":1,"90":1,"91":1,"92":1,"93":1,"94":1,"95":1,"96":1,"97":1,"102":1,"103":1,"109":1,"110":1,"111":1,"112":1,"113":1,"114":1,"115":1,"122":1,"123":1,"125":1,"127":1,"131":1,"132":1,"133":1,"136":1,"137":1,"138":1,"145":1,"147":1,"151":1,"154":1,"187":1,"188":1,"190":1,"191":1,"192":1,"193":1,"195":1,"197":1,"198":1,"199":1,"228":1,"229":1,"231":1,"235":1,"236":1,"237":1,"243":1,"253":1,"254":1,"255":1,"256":1,"257":1,"272":1,"288":1}}],["device",{"0":{"15":1},"1":{"16":1},"2":{"15":1}}],["developer",{"2":{"270":1,"282":1}}],["developers",{"2":{"9":1}}],["developing",{"2":{"269":2}}],["develop",{"0":{"269":1},"1":{"270":1},"2":{"9":1,"269":1,"271":2}}],["development",{"0":{"268":1},"1":{"269":1,"270":1,"271":1,"272":1,"273":1},"2":{"2":3,"269":2,"270":1,"272":1,"273":1}}],["dev",{"0":{"134":1,"135":1,"146":1},"1":{"136":1,"137":1,"138":1,"139":1,"140":1,"141":1,"142":1,"143":1,"144":1,"145":1,"147":1},"2":{"2":1,"270":1,"283":1,"286":1}}],["two",{"2":{"264":1}}],["target",{"0":{"123":3,"187":1},"2":{"123":5,"187":3,"190":5}}],["target=run",{"2":{"255":1}}],["target=self",{"2":{"122":1}}],["target=os",{"2":{"22":1}}],["targets",{"2":{"121":1,"122":1,"123":1,"124":1,"126":1,"127":1,"190":2}}],["task",{"2":{"96":1,"122":1}}],["tasks",{"2":{"45":2}}],["types",{"0":{"218":1}}],["type=plugintype",{"2":{"282":1}}],["type=self",{"2":{"229":2}}],["type=attr",{"2":{"190":1}}],["type=ast",{"2":{"190":3}}],["type=def",{"2":{"190":1}}],["type=deftype",{"2":{"190":1}}],["typeerror",{"2":{"65":1,"66":1,"74":1}}],["typealias",{"2":{"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"59":1,"60":1,"61":1,"62":1,"63":1,"136":1,"137":1,"243":1}}],["type",{"0":{"65":1,"165":1,"168":1,"172":1,"199":1,"212":1,"228":2},"2":{"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"59":1,"60":1,"61":1,"62":1,"63":1,"65":11,"66":7,"70":1,"71":1,"72":1,"73":1,"74":1,"86":1,"87":1,"102":1,"136":1,"137":1,"190":11,"191":13,"197":2,"199":4,"228":6,"229":2,"243":1,"272":5}}],["tuple=",{"2":{"123":1}}],["tuplestr",{"2":{"35":1}}],["tuple",{"0":{"35":1,"78":1,"79":1,"80":1,"104":1,"105":1,"106":1,"107":1,"119":2,"123":1,"145":1,"164":1},"2":{"35":1,"73":1,"78":1,"79":1,"80":1,"89":3,"104":1,"105":1,"106":1,"107":1,"119":2,"121":2,"145":1}}],["tests",{"2":{"271":1}}],["test",{"0":{"207":2},"2":{"199":1,"271":1}}],["text",{"2":{"191":3}}],["terminated",{"2":{"125":1}}],["terminate",{"0":{"125":1,"126":1},"2":{"22":1,"26":1,"125":2,"126":2}}],["telegram",{"2":{"6":1}}],["title",{"2":{"192":2}}],["time>",{"2":{"276":1}}],["timeout",{"2":{"125":1}}],["time",{"2":{"22":1,"36":1,"117":1,"138":9,"146":1,"152":1,"155":1,"196":1,"200":1,"201":1,"224":1,"226":1,"230":1,"232":1,"233":1,"238":1,"242":1,"251":1}}],["tip",{"2":{"12":1,"13":1,"279":1,"288":1,"290":1}}],["txt",{"2":{"12":1,"15":1}}],["transfer",{"2":{"263":1}}],["traceback",{"2":{"197":1,"237":1}}],["trim",{"2":{"259":2}}],["tree",{"2":{"190":3}}],["try",{"2":{"20":1,"21":1,"92":1,"197":1,"237":1,"254":1}}],["trss",{"0":{"14":1},"2":{"8":1,"14":1,"261":1}}],["true时例如docs",{"2":{"192":1}}],["true",{"0":{"92":1,"145":1,"190":1,"198":1,"218":1},"2":{"1":3,"2":4,"6":1,"67":1,"97":1,"154":1,"192":1,"248":1,"249":1,"264":2,"270":1}}],["t",{"0":{"64":1,"66":1,"67":1,"68":1,"69":2},"1":{"65":1,"66":1,"67":1,"68":1,"69":1},"2":{"6":1,"7":1,"9":1,"13":1,"33":1,"59":1,"61":1,"62":1,"66":2,"67":2,"68":2,"69":7}}],["through",{"2":{"263":2}}],["thread",{"0":{"255":1},"2":{"22":1,"122":1,"255":2}}],["threading",{"0":{"101":1},"2":{"19":1,"22":1,"122":1,"255":1}}],["that",{"2":{"6":2,"263":1,"264":1,"269":2,"272":7}}],["this",{"2":{"6":3,"150":1,"223":1,"269":1,"271":2,"273":1}}],["their",{"2":{"261":1}}],["then",{"2":{"6":1,"12":1}}],["therefore",{"2":{"263":1}}],["there",{"2":{"1":1,"6":1,"15":1,"272":2}}],["these",{"2":{"0":1,"271":1}}],["the",{"2":{"0":6,"1":1,"2":4,"3":6,"4":2,"6":20,"9":2,"10":3,"12":3,"13":2,"15":4,"150":1,"197":1,"223":1,"259":1,"263":1,"264":2,"269":10,"270":1,"271":6,"272":24}}],["tokyo",{"2":{"297":1}}],["token",{"2":{"2":2}}],["together",{"2":{"272":1}}],["top",{"0":{"192":1},"2":{"192":3}}],["tools",{"2":{"270":1}}],["too",{"2":{"6":1}}],["to",{"0":{"3":1,"16":1,"188":1,"256":1,"269":1},"1":{"270":1},"2":{"0":1,"1":6,"2":3,"3":2,"4":1,"6":17,"12":6,"13":1,"14":2,"15":5,"22":1,"23":1,"34":1,"35":1,"66":1,"69":1,"188":1,"192":1,"197":5,"198":2,"223":1,"256":2,"260":2,"263":3,"264":2,"269":5,"270":1,"272":7,"273":1}}],["toml",{"0":{"112":1},"2":{"0":2,"112":4,"113":2,"115":1}}],["world",{"2":{"275":5}}],["w",{"2":{"188":1}}],["write",{"0":{"188":1},"2":{"188":2,"192":1}}],["wrapper",{"0":{"257":1},"2":{"45":1,"69":2,"95":4,"123":1,"138":2,"145":2,"257":4}}],["watchdog",{"2":{"283":1,"286":1}}],["watch",{"2":{"282":1,"283":1}}],["walk",{"2":{"189":1,"190":1}}],["wait",{"0":{"138":1},"2":{"138":2}}],["waring=no",{"2":{"115":1}}],["waring",{"0":{"114":1,"115":1},"2":{"114":3,"115":3}}],["warning=no",{"2":{"114":1,"115":1}}],["warning",{"0":{"113":1,"198":1},"2":{"15":2,"35":1,"113":5,"114":1,"125":1,"127":1,"154":2,"197":1,"198":8,"279":1,"294":1}}],["way",{"2":{"14":1}}],["want",{"2":{"1":1}}],["weather",{"0":{"297":1},"1":{"298":1},"2":{"297":1,"298":1}}],["welcome",{"2":{"273":1}}],["we",{"2":{"9":1,"272":1,"273":1}}],["websocket",{"2":{"3":2}}],["windows10+",{"2":{"15":1}}],["windows",{"2":{"13":1,"15":2,"22":1}}],["without",{"2":{"15":1}}],["with",{"0":{"13":1,"35":1,"192":1},"2":{"6":2,"13":1,"35":1,"90":1,"91":1,"92":1,"99":1,"188":1,"190":1,"191":5,"192":3,"263":1,"264":1,"269":2}}],["will",{"2":{"0":3,"2":3,"6":1,"15":2,"35":1,"273":1}}],["what",{"2":{"272":1}}],["while",{"2":{"21":1,"67":1,"97":1,"264":2}}],["which",{"2":{"6":2,"14":1}}],["why",{"2":{"6":1}}],["where",{"2":{"272":1}}],["whether",{"2":{"1":3,"2":1}}],["when",{"2":{"0":2,"272":2}}],["ws",{"2":{"3":2}}],["poke",{"2":{"277":4}}],["possible",{"2":{"272":3}}],["port",{"2":{"1":2,"13":2}}],["pep8",{"2":{"272":1}}],["period\`",{"2":{"300":1}}],["period>",{"2":{"299":1}}],["period",{"2":{"299":2}}],["permit",{"2":{"272":1}}],["permission",{"2":{"6":1}}],["persists",{"2":{"6":1}}],["personal",{"2":{"0":1,"269":1}}],["pull",{"2":{"269":1}}],["publish=publish",{"2":{"123":1}}],["publish",{"0":{"94":1,"119":1},"2":{"89":2,"94":2,"97":2,"119":3}}],["pwd",{"2":{"13":3}}],["p",{"2":{"13":1,"300":1}}],["pipe",{"2":{"65":2}}],["pip",{"2":{"12":1,"15":1,"197":1}}],["py即可启动插件",{"2":{"286":1}}],["pyo",{"2":{"283":1}}],["pycache",{"2":{"283":1}}],["pyc",{"2":{"283":1}}],["pycharm",{"2":{"36":1,"117":1,"146":1,"152":1,"155":1,"196":1,"200":1,"201":1,"224":1,"226":1,"230":1,"232":1,"233":1,"238":1,"242":1,"251":1}}],["py文件",{"2":{"282":1}}],["py文件或一个包含",{"2":{"282":1}}],["py的文件夹即可被识别为插件",{"2":{"282":1}}],["pyfile",{"0":{"193":1},"2":{"192":8,"193":1}}],["pyi",{"2":{"189":1,"190":1}}],["py",{"2":{"6":1,"12":1,"36":1,"117":1,"146":1,"152":1,"155":1,"189":1,"190":1,"192":1,"196":1,"198":3,"200":1,"201":1,"224":1,"226":1,"230":2,"232":2,"233":1,"238":1,"242":1,"251":1,"267":1,"271":1,"282":1,"283":1,"286":2,"288":1}}],["python格式",{"2":{"275":1}}],["pythonfrom",{"2":{"264":1,"267":1,"282":1,"286":1}}],["pythonimport",{"2":{"264":1,"283":1}}],["pythonasync",{"2":{"21":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"68":1,"97":1,"237":1,"248":1}}],["pythondef",{"2":{"19":1,"20":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"44":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"65":1,"66":1,"67":1,"69":1,"74":1,"75":1,"76":1,"77":1,"83":1,"89":1,"90":1,"91":1,"92":1,"93":1,"94":1,"95":1,"109":1,"110":1,"111":1,"112":1,"113":1,"114":1,"115":1,"119":1,"121":1,"122":1,"123":1,"124":1,"125":1,"126":1,"127":1,"129":1,"130":1,"131":1,"132":1,"133":1,"138":1,"141":1,"142":1,"143":1,"144":1,"145":1,"147":1,"153":1,"154":1,"187":1,"188":1,"189":1,"190":1,"191":1,"192":1,"195":1,"197":1,"198":1,"199":1,"217":1,"228":1,"229":1,"231":1,"235":1,"236":1,"239":1,"240":1,"241":1,"245":1,"246":1,"247":1,"253":1,"254":1,"255":1,"256":1,"257":1}}],["python3",{"2":{"12":1,"15":1}}],["python",{"2":{"6":5,"12":2,"15":3,"45":1,"78":1,"79":1,"80":1,"96":1,"99":1,"104":1,"105":1,"106":1,"107":1,"140":1,"190":1,"225":1,"249":1,"250":1,"269":1,"272":1}}],["page为页数",{"2":{"293":2}}],["page",{"2":{"293":2}}],["pacman",{"0":{"293":1},"1":{"294":1}}],["pack",{"2":{"288":2,"293":3}}],["packs",{"2":{"271":1}}],["param",{"2":{"290":1}}],["participate",{"2":{"273":1}}],["participation",{"2":{"269":1}}],["part",{"2":{"271":1,"272":1}}],["parts",{"2":{"256":2}}],["parent",{"2":{"190":4}}],["parse",{"2":{"190":1,"272":1}}],["parser",{"2":{"10":1}}],["parsed",{"2":{"6":1}}],["parsing",{"2":{"1":1}}],["passive=channel",{"2":{"123":1}}],["passive=chan",{"2":{"123":1}}],["passive",{"0":{"71":1,"73":1,"119":2},"2":{"71":1,"74":1,"76":1,"77":2,"78":2,"79":2,"80":1,"89":2,"90":1,"91":1,"92":1,"93":1,"103":1,"104":2,"105":2,"106":2,"107":1,"119":6,"123":5,"264":15}}],["pathlib",{"2":{"197":1}}],["paths=none",{"2":{"192":1}}],["paths",{"0":{"192":1},"2":{"192":4}}],["path=dot",{"2":{"190":1}}],["path",{"0":{"147":2,"182":1,"187":3,"190":1,"193":1,"197":2,"256":3},"2":{"6":2,"13":1,"15":3,"113":1,"114":2,"147":4,"187":8,"188":3,"189":1,"190":6,"192":22,"193":2,"197":16,"198":26,"256":11,"283":5}}],["platform",{"2":{"22":3}}],["platforms",{"2":{"6":1}}],["playwright",{"2":{"6":2}}],["plugintype",{"0":{"199":1,"202":1,"212":2},"1":{"203":1,"204":1,"205":1,"206":1,"207":1},"2":{"199":5,"282":1}}],["pluginmetadata",{"0":{"208":1,"222":1},"1":{"209":1,"210":1,"211":1,"212":1,"213":1,"214":1,"215":1},"2":{"197":4,"282":2}}],["plugin的函数签名",{"2":{"147":1}}],["plugin",{"0":{"146":1,"194":1,"195":1,"196":1,"197":2,"198":2,"199":1,"200":1,"201":1,"216":1,"230":1},"1":{"147":1,"195":1,"197":1,"198":1,"199":1,"202":1,"203":1,"204":1,"205":1,"206":1,"207":1,"208":1,"209":1,"210":1,"211":1,"212":1,"213":1,"214":1,"215":1,"216":1,"217":2,"218":2,"219":2,"220":2,"221":2,"222":2,"231":1},"2":{"1":3,"4":1,"6":3,"8":1,"10":1,"19":2,"146":1,"195":2,"197":14,"198":5,"199":4,"223":1,"231":6,"260":4,"263":1,"269":2,"271":3,"282":4,"285":1,"286":2,"293":5}}],["plugins下创建一个文件",{"2":{"286":1}}],["plugins中添加你的插件路径",{"2":{"285":1}}],["plugins",{"0":{"147":1,"195":1,"198":1,"223":1,"224":1,"230":1,"231":1,"260":1},"1":{"225":1,"231":1},"2":{"1":1,"2":2,"6":2,"15":3,"19":1,"147":6,"195":2,"197":3,"198":9,"223":1,"231":4,"271":5,"283":1,"286":2}}],["please",{"0":{"16":1},"2":{"1":2,"2":1,"3":2,"6":4,"9":1,"13":2,"15":1,"269":3,"271":2,"272":2}}],["practices",{"0":{"258":1},"1":{"259":1,"260":1,"261":1}}],["priority",{"0":{"235":1,"240":1,"241":1},"2":{"235":4,"239":2,"240":2,"241":2}}],["prioritize",{"2":{"9":1}}],["private",{"0":{"190":1},"2":{"190":5}}],["print",{"2":{"19":1,"192":1,"197":1,"237":1}}],["profile",{"2":{"295":4}}],["profit",{"2":{"273":1}}],["property",{"0":{"161":2},"2":{"190":2}}],["provides",{"2":{"10":3,"14":1,"263":1}}],["provided",{"2":{"3":1,"6":1}}],["problematic",{"2":{"6":1}}],["problem",{"2":{"6":1}}],["problems",{"2":{"1":1}}],["processfunctype",{"0":{"130":1,"131":1},"2":{"130":2,"131":1}}],["processmanager",{"0":{"120":1},"1":{"121":1,"122":1,"123":1,"124":1,"125":1,"126":1,"127":1},"2":{"19":2}}],["process",{"0":{"23":1,"30":2,"31":3,"40":1,"41":1,"42":1,"45":1,"48":3,"50":3,"54":1,"56":1,"127":1,"130":1},"2":{"19":1,"20":1,"22":1,"23":4,"26":1,"30":5,"31":6,"33":2,"42":2,"44":4,"45":2,"48":6,"50":6,"54":2,"56":2,"65":4,"69":3,"74":1,"76":1,"77":1,"90":1,"91":1,"92":1,"93":1,"95":3,"97":2,"121":1,"122":2,"124":2,"125":7,"127":2,"130":1,"132":1,"133":3,"263":2,"264":8,"283":2}}],["processes",{"2":{"6":1,"15":1,"23":1,"121":1,"125":2,"127":1,"129":1,"130":1,"131":1,"132":2,"133":1,"263":4}}],["processing",{"2":{"6":1}}],["protocol",{"2":{"3":1,"6":1,"8":6}}],["production",{"2":{"3":1}}],["project",{"0":{"271":1},"2":{"0":1,"6":2,"9":2,"12":1,"13":1,"271":1,"273":2}}],["prefix",{"2":{"1":1}}],["preference",{"2":{"0":1}}],["y",{"2":{"199":1}}],["yellow>",{"2":{"154":1}}],["y>",{"2":{"20":2}}],["y>liteyuki",{"2":{"20":2}}],["yunzai",{"2":{"8":1}}],["yml格式的所有合法内容",{"2":{"291":1}}],["yml文件",{"2":{"288":1}}],["yml中填写一些信息",{"2":{"288":1}}],["yml",{"2":{"0":2,"113":1,"115":1,"270":1,"288":2,"291":1}}],["you",{"2":{"0":4,"1":1,"2":1,"3":1,"4":1,"6":6,"7":2,"12":1,"13":2,"15":2,"263":1,"269":5,"270":1,"272":2}}],["your",{"2":{"0":1,"13":1,"15":1,"197":2,"269":6,"273":1}}],["yamlweather",{"2":{"297":1}}],["yamlname",{"2":{"288":1}}],["yaml",{"0":{"110":1},"2":{"0":2,"1":1,"2":2,"110":4,"113":2,"115":1}}],["a包中的index",{"2":{"288":1}}],["applications",{"0":{"259":1}}],["application",{"0":{"203":2},"2":{"199":1,"271":4}}],["append",{"2":{"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"69":2,"95":2,"189":1,"190":5,"236":1,"239":1}}],["api格式为onebot",{"2":{"291":1}}],["api文档",{"2":{"278":1}}],["api也有差别",{"2":{"278":1}}],["api",{"0":{"278":1},"2":{"192":6,"261":2,"269":1,"276":3,"277":2,"291":3}}],["awaitable",{"2":{"38":1,"41":1}}],["await",{"2":{"21":1,"45":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"68":1,"69":2,"95":1,"97":2,"237":2,"246":2,"247":2,"248":1,"264":1,"276":1,"277":1,"279":1}}],["arbitrary",{"0":{"218":1}}],["arg",{"2":{"190":13,"191":16}}],["argv",{"2":{"22":1}}],["args=coro",{"2":{"255":1}}],["args=",{"2":{"22":1,"122":1,"190":2}}],["args",{"0":{"24":1,"45":1,"54":1,"56":1,"123":1,"130":1,"131":1,"164":1},"2":{"22":2,"24":2,"45":3,"54":2,"56":2,"123":3,"130":2,"131":3,"138":2,"190":8,"191":8,"257":2,"291":4}}],["arguments",{"2":{"19":1,"22":1,"23":1,"24":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"34":1,"35":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"65":1,"66":1,"69":1,"74":1,"75":1,"76":1,"90":1,"91":1,"92":1,"94":1,"95":1,"96":1,"109":1,"123":1,"125":1,"127":1,"131":1,"132":1,"145":1,"147":1,"187":1,"188":1,"190":1,"191":1,"192":1,"197":1,"198":1,"199":1,"229":1,"235":1,"237":1,"253":1,"254":1,"255":1,"256":1,"257":1}}],["arch",{"2":{"14":1}}],["are",{"2":{"1":1,"6":2,"13":1,"15":1,"263":1,"269":4,"271":1,"272":2}}],["abs",{"2":{"192":4}}],["absolute",{"2":{"13":1}}],["able",{"2":{"15":1}}],["about",{"2":{"6":1}}],["active和",{"2":{"264":1}}],["active和chan",{"2":{"123":1}}],["active=channel",{"2":{"123":1}}],["active=chan",{"2":{"123":1}}],["active",{"0":{"70":1,"72":1,"119":2},"2":{"23":6,"70":1,"89":2,"94":1,"97":1,"119":6,"123":4,"264":13}}],["activate",{"2":{"12":4}}],["acknowledgements",{"0":{"10":1}}],["account",{"2":{"7":1,"269":1}}],["according",{"2":{"6":1}}],["accesstoken",{"2":{"3":2}}],["access",{"2":{"2":2}}],["author",{"0":{"213":1},"2":{"6":1,"36":1,"117":1,"146":1,"152":1,"155":1,"196":1,"200":1,"201":1,"224":1,"226":1,"230":1,"232":1,"233":1,"238":1,"242":1,"251":1}}],["auto",{"2":{"1":2,"2":2}}],["automatically",{"2":{"0":1,"1":2}}],["after",{"0":{"28":1,"29":1,"32":1,"47":1,"49":1,"51":1,"53":1,"55":1,"57":1},"2":{"6":2,"28":2,"29":2,"32":2,"44":3,"47":2,"49":2,"51":2,"53":3,"55":3,"57":3,"264":1,"272":1}}],["avoid",{"2":{"6":1,"12":1}}],["available",{"2":{"1":1}}],["a",{"2":{"3":1,"6":4,"7":1,"8":3,"9":1,"12":2,"14":1,"66":1,"67":1,"109":1,"192":2,"198":1,"256":1,"259":1,"263":1,"264":1,"269":4,"272":4,"273":1,"282":1}}],["annassign",{"2":{"190":1}}],["annotation",{"2":{"190":6}}],["an",{"2":{"6":1,"7":1,"66":1,"74":1}}],["anyone",{"2":{"273":1}}],["any=none",{"2":{"34":1,"35":1}}],["any",{"0":{"34":2,"35":2,"69":2,"78":1,"79":1,"80":1,"83":1,"90":1,"91":2,"93":1,"94":1,"96":1,"104":1,"105":1,"106":1,"107":1,"109":2,"110":1,"111":1,"112":1,"113":1,"114":1,"115":1,"119":4,"144":1,"173":1,"215":1,"228":2,"229":1,"253":1,"257":1},"2":{"2":1,"4":1,"19":1,"34":3,"35":3,"37":1,"38":1,"40":1,"41":1,"59":1,"62":2,"69":7,"72":1,"73":1,"76":1,"77":1,"78":1,"79":1,"80":1,"83":1,"89":3,"90":1,"91":4,"93":3,"94":1,"95":1,"96":1,"104":1,"105":1,"106":1,"107":1,"109":2,"110":1,"111":1,"112":1,"113":1,"114":1,"115":1,"119":4,"144":1,"190":7,"192":1,"228":2,"229":1,"241":1,"253":1,"257":1}}],["and",{"2":{"0":6,"4":1,"6":7,"9":1,"12":2,"15":2,"66":1,"145":1,"190":7,"191":1,"198":3,"247":2,"259":1,"261":1,"263":3,"264":2,"269":4,"270":2,"271":2,"272":9,"273":1,"283":2}}],["adapter",{"2":{"3":1,"4":2}}],["advanced",{"2":{"2":1}}],["addition",{"2":{"272":1}}],["add",{"0":{"123":1,"131":1,"239":1},"2":{"2":1,"123":1,"131":1,"154":1,"198":1,"239":1,"240":1,"272":1}}],["address",{"2":{"1":1,"3":2}}],["amp",{"0":{"247":1},"2":{"13":2}}],["am",{"2":{"1":1,"264":6}}],["attributes=",{"2":{"190":2}}],["attributes",{"0":{"179":1,"185":1},"2":{"190":2,"191":2}}],["attributeinfo",{"0":{"170":1,"179":1,"185":1},"1":{"171":1,"172":1,"173":1,"174":1},"2":{"190":2}}],["attr",{"0":{"100":1,"101":1,"157":1,"158":1,"159":1,"160":1,"161":1,"163":1,"164":1,"165":1,"166":1,"167":1,"168":1,"169":1,"171":1,"172":1,"173":1,"174":1,"176":1,"177":1,"178":1,"179":1,"180":1,"182":1,"183":1,"184":1,"185":1,"186":1,"203":1,"204":1,"205":1,"206":1,"207":1,"209":1,"210":1,"211":1,"212":1,"213":1,"214":1,"215":1,"218":1,"219":1,"220":1,"221":1,"222":1},"2":{"190":2,"191":14}}],["at",{"2":{"1":1,"15":2}}],["already",{"2":{"65":2,"74":1,"269":1}}],["alive",{"0":{"21":1,"127":1},"2":{"21":2,"125":1,"127":2}}],["alconna",{"2":{"1":2,"2":2,"10":1}}],["allowing",{"2":{"260":2}}],["allowed",{"0":{"218":1}}],["allow",{"2":{"2":2}}],["all",{"0":{"93":1,"107":1,"122":1,"124":1,"126":1,"133":1},"2":{"0":1,"2":1,"20":1,"22":1,"26":1,"36":1,"93":2,"106":1,"107":3,"117":1,"122":1,"124":1,"126":1,"133":1,"146":1,"152":1,"155":1,"196":1,"200":1,"201":1,"224":1,"226":1,"230":1,"232":1,"233":1,"238":1,"242":1,"251":1,"261":1}}],["assumes",{"2":{"269":1}}],["assign",{"2":{"190":2}}],["ast",{"2":{"190":29}}],["asynchronous",{"2":{"257":1}}],["async=isinstance",{"2":{"190":2}}],["asyncfunctiondef",{"2":{"190":3}}],["async",{"0":{"21":1,"38":1,"41":1,"45":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"62":1,"68":2,"96":1,"97":1,"169":1,"225":1,"237":1,"248":1,"249":1,"250":1,"257":1},"2":{"39":1,"42":1,"45":3,"60":1,"63":1,"68":1,"69":1,"86":1,"87":1,"95":1,"96":1,"97":1,"191":4,"225":1,"241":1,"246":1,"247":1,"249":1,"250":1,"257":2,"264":2}}],["asyncio",{"2":{"19":2,"20":1,"21":1,"45":1,"68":1,"96":1,"254":5,"264":2}}],["ask",{"2":{"9":1}}],["asked",{"0":{"6":1}}],["as",{"2":{"0":1,"3":1,"6":2,"92":1,"188":1,"190":1,"197":1,"254":1,"270":1,"272":6}}]],"serializationVersion":2}`;export{e as default}; diff --git a/assets/chunks/@localSearchIndexen.DoEtlDCM.js b/assets/chunks/@localSearchIndexen.DoEtlDCM.js deleted file mode 100644 index b1d87d09..00000000 --- a/assets/chunks/@localSearchIndexen.DoEtlDCM.js +++ /dev/null @@ -1 +0,0 @@ -const e=`{"documentCount":307,"nextId":307,"documentIds":{"0":"/en/deploy/config.html#configurations","1":"/en/deploy/config.html#basic-configuration","2":"/en/deploy/config.html#other-configurations","3":"/en/deploy/config.html#example-configuration-of-onebot-implementation-side-connected-to-nonebot","4":"/en/deploy/config.html#other","5":"/en/deploy/install.html#install","6":"/en/deploy/install.html#normal-installation","7":"/en/deploy/install.html#run-with-docker","8":"/en/deploy/install.html#use-trss-script","9":"/en/deploy/install.html#device-requirements","10":"/en/deploy/install.html#for-other-questions-please-refer-to-faq","11":"/en/deploy/fandq.html#faq","12":"/en/deploy/fandq.html#frequently-asked-questions","13":"/en/deploy/fandq.html#other-questions","14":"/en/deploy/fandq.html#recommended-solution-qq","15":"/en/deploy/fandq.html#recommended-solution-minecraft","16":"/en/deploy/fandq.html#acknowledgements","17":"/en/dev/api/bot/#module-liteyuki-bot","18":"/en/dev/api/bot/#class-liteyukibot","19":"/en/dev/api/bot/#func-init-self-kwargs-none","20":"/en/dev/api/bot/#func-run-self","21":"/en/dev/api/bot/#async-func-keep-alive-self","22":"/en/dev/api/bot/#func-restart-self-delay-int-0","23":"/en/dev/api/bot/#func-restart-process-self-name-optional-str-none","24":"/en/dev/api/bot/#func-init-self-args-kwargs","25":"/en/dev/api/bot/#func-init-logger-self","26":"/en/dev/api/bot/#func-stop-self","27":"/en/dev/api/bot/#func-on-before-start-self-func-lifespan-func-lifespan-func","28":"/en/dev/api/bot/#func-on-after-start-self-func-lifespan-func","29":"/en/dev/api/bot/#func-on-after-shutdown-self-func-lifespan-func","30":"/en/dev/api/bot/#func-on-before-process-shutdown-self-func-process-lifespan-func","31":"/en/dev/api/bot/#func-on-before-process-restart-self-func-process-lifespan-func-process-lifespan-func","32":"/en/dev/api/bot/#func-on-after-restart-self-func-lifespan-func","33":"/en/dev/api/bot/#func-get-bot-liteyukibot","34":"/en/dev/api/bot/#func-get-config-key-str-default-any-none-any","35":"/en/dev/api/bot/#func-get-config-with-compat-key-str-compat-keys-tuple-str-default-any-none-any","36":"/en/dev/api/bot/lifespan.html#module-liteyuki-bot-lifespan","37":"/en/dev/api/bot/lifespan.html#var-sync-lifespan-func","38":"/en/dev/api/bot/lifespan.html#var-async-lifespan-func","39":"/en/dev/api/bot/lifespan.html#var-lifespan-func","40":"/en/dev/api/bot/lifespan.html#var-sync-process-lifespan-func","41":"/en/dev/api/bot/lifespan.html#var-async-process-lifespan-func","42":"/en/dev/api/bot/lifespan.html#var-process-lifespan-func","43":"/en/dev/api/bot/lifespan.html#class-lifespan","44":"/en/dev/api/bot/lifespan.html#func-init-self-none","45":"/en/dev/api/bot/lifespan.html#async-func-run-funcs-funcs-sequence-lifespan-func-process-lifespan-func-args-kwargs-none","46":"/en/dev/api/bot/lifespan.html#func-on-before-start-self-func-lifespan-func-lifespan-func","47":"/en/dev/api/bot/lifespan.html#func-on-after-start-self-func-lifespan-func-lifespan-func","48":"/en/dev/api/bot/lifespan.html#func-on-before-process-shutdown-self-func-process-lifespan-func-process-lifespan-func","49":"/en/dev/api/bot/lifespan.html#func-on-after-shutdown-self-func-lifespan-func-lifespan-func","50":"/en/dev/api/bot/lifespan.html#func-on-before-process-restart-self-func-process-lifespan-func-process-lifespan-func","51":"/en/dev/api/bot/lifespan.html#func-on-after-restart-self-func-lifespan-func-lifespan-func","52":"/en/dev/api/bot/lifespan.html#async-func-before-start-self-none","53":"/en/dev/api/bot/lifespan.html#async-func-after-start-self-none","54":"/en/dev/api/bot/lifespan.html#async-func-before-process-shutdown-self-args-kwargs-none","55":"/en/dev/api/bot/lifespan.html#async-func-after-shutdown-self-none","56":"/en/dev/api/bot/lifespan.html#async-func-before-process-restart-self-args-kwargs-none","57":"/en/dev/api/bot/lifespan.html#async-func-after-restart-self-none","58":"/en/dev/api/comm/channel.html#module-liteyuki-comm-channel","59":"/en/dev/api/comm/channel.html#var-sync-on-receive-func","60":"/en/dev/api/comm/channel.html#var-on-receive-func","61":"/en/dev/api/comm/channel.html#var-sync-filter-func","62":"/en/dev/api/comm/channel.html#var-async-filter-func","63":"/en/dev/api/comm/channel.html#var-filter-func","64":"/en/dev/api/comm/channel.html#class-channel-generic-t","65":"/en/dev/api/comm/channel.html#func-init-self-name-str-type-check-optional-bool-none","66":"/en/dev/api/comm/channel.html#func-send-self-data-t","67":"/en/dev/api/comm/channel.html#func-receive-self-t","68":"/en/dev/api/comm/channel.html#async-func-async-receive-self-t","69":"/en/dev/api/comm/channel.html#func-on-receive-self-filter-func-optional-filter-func-none-callable-callable-t-any-callable-t-any","70":"/en/dev/api/comm/channel.html#var-active-channel","71":"/en/dev/api/comm/channel.html#var-passive-channel","72":"/en/dev/api/comm/channel.html#var-channel-deliver-active-channel","73":"/en/dev/api/comm/channel.html#var-channel-deliver-passive-channel","74":"/en/dev/api/comm/channel.html#func-set-channel-name-str-channel-channel","75":"/en/dev/api/comm/channel.html#func-set-channels-channels-dict-str-channel","76":"/en/dev/api/comm/channel.html#func-get-channel-name-str-channel","77":"/en/dev/api/comm/channel.html#func-get-channels-dict-str-channel","78":"/en/dev/api/comm/channel.html#func-on-set-channel-data-tuple-str-dict-str-any","79":"/en/dev/api/comm/channel.html#func-on-get-channel-data-tuple-str-dict-str-any","80":"/en/dev/api/comm/channel.html#func-on-get-channels-data-tuple-str-dict-str-any","81":"/en/dev/api/comm/event.html#module-liteyuki-comm-event","82":"/en/dev/api/comm/event.html#class-event","83":"/en/dev/api/comm/event.html#func-init-self-name-str-data-dict-str-any","84":"/en/dev/api/comm/#module-liteyuki-comm","85":"/en/dev/api/comm/socks_channel.html#module-liteyuki-comm-socks-channel","86":"/en/dev/api/comm/socks_channel.html#class-sockschannel","87":"/en/dev/api/comm/socks_channel.html#func-init-self-name-str","88":"/en/dev/api/comm/socks_channel.html#func-send-self-data","89":"/en/dev/api/comm/socks_channel.html#func-receive-self","90":"/en/dev/api/comm/socks_channel.html#func-close-self","91":"/en/dev/api/comm/storage.html#module-liteyuki-comm-storage","92":"/en/dev/api/comm/storage.html#var-on-main-subscriber-receive-funcs","93":"/en/dev/api/comm/storage.html#var-on-sub-subscriber-receive-funcs","94":"/en/dev/api/comm/storage.html#class-keyvaluestore","95":"/en/dev/api/comm/storage.html#func-init-self","96":"/en/dev/api/comm/storage.html#func-set-self-key-str-value-any-none","97":"/en/dev/api/comm/storage.html#func-get-self-key-str-default-optional-any-none-optional-any","98":"/en/dev/api/comm/storage.html#func-delete-self-key-str-ignore-key-error-bool-true-none","99":"/en/dev/api/comm/storage.html#func-get-all-self-dict-str-any","100":"/en/dev/api/comm/storage.html#func-publish-self-channel-str-data-any-none","101":"/en/dev/api/comm/storage.html#func-on-subscriber-receive-self-channel-str-callable-on-receive-func-on-receive-func","102":"/en/dev/api/comm/storage.html#async-func-run-subscriber-receive-funcs-channel-str-data-any","103":"/en/dev/api/comm/storage.html#async-func-start-receive-loop-self","104":"/en/dev/api/comm/storage.html#class-globalkeyvaluestore","105":"/en/dev/api/comm/storage.html#func-get-instance-cls","106":"/en/dev/api/comm/storage.html#attr-instance-none","107":"/en/dev/api/comm/storage.html#attr-lock-threading-lock","108":"/en/dev/api/comm/storage.html#var-shared-memory","109":"/en/dev/api/comm/storage.html#var-ref-count","110":"/en/dev/api/comm/storage.html#func-on-get-data-tuple-str-dict-str-any","111":"/en/dev/api/comm/storage.html#func-on-set-data-tuple-str-dict-str-any","112":"/en/dev/api/comm/storage.html#func-on-delete-data-tuple-str-dict-str-any","113":"/en/dev/api/comm/storage.html#func-on-get-all-data-tuple-str-dict-str-any","114":"/en/dev/api/config.html#module-liteyuki-config","115":"/en/dev/api/config.html#func-flat-config-config-dict-str-any-dict-str-any","116":"/en/dev/api/config.html#func-load-from-yaml-file-str-dict-str-any","117":"/en/dev/api/config.html#func-load-from-json-file-str-dict-str-any","118":"/en/dev/api/config.html#func-load-from-toml-file-str-dict-str-any","119":"/en/dev/api/config.html#func-load-from-files-files-str-no-warning-bool-false-dict-str-any","120":"/en/dev/api/config.html#func-load-configs-from-dirs-directories-str-no-waring-bool-false-dict-str-any","121":"/en/dev/api/config.html#func-load-config-in-default-no-waring-bool-false-dict-str-any","122":"/en/dev/api/core/#module-liteyuki-core","123":"/en/dev/api/core/manager.html#module-liteyuki-core-manager","124":"/en/dev/api/core/manager.html#class-channeldeliver","125":"/en/dev/api/core/manager.html#func-init-self-active-channel-any-passive-channel-any-channel-deliver-active-channel-channel-any-channel-deliver-passive-channel-tuple-str-dict-publish-channel-tuple-str-any","126":"/en/dev/api/core/manager.html#class-processmanager","127":"/en/dev/api/core/manager.html#func-init-self-lifespan-lifespan","128":"/en/dev/api/core/manager.html#func-start-all-self","129":"/en/dev/api/core/manager.html#func-add-target-self-name-str-target-target-func-args-tuple-kwargs-none","130":"/en/dev/api/core/manager.html#func-join-all-self","131":"/en/dev/api/core/manager.html#func-terminate-self-name-str","132":"/en/dev/api/core/manager.html#func-terminate-all-self","133":"/en/dev/api/core/manager.html#func-is-process-alive-self-name-str-bool","134":"/en/dev/api/core/manager.html#class-subprocessmanager","135":"/en/dev/api/core/manager.html#func-init-self","136":"/en/dev/api/core/manager.html#func-new-process-self-name-str-args-kwargs-callable-processfunctype-none","137":"/en/dev/api/core/manager.html#func-add-self-name-str-func-processfunctype-args-kwargs","138":"/en/dev/api/core/manager.html#func-start-self-name-str","139":"/en/dev/api/core/manager.html#func-start-all-self-1","140":"/en/dev/api/dev/#module-liteyuki-dev","141":"/en/dev/api/dev/plugin.html#module-liteyuki-dev-plugin","142":"/en/dev/api/dev/plugin.html#func-run-plugins-module-path-str-path","143":"/en/dev/api/dev/observer.html#module-liteyuki-dev-observer","144":"/en/dev/api/dev/observer.html#var-callback-func","145":"/en/dev/api/dev/observer.html#var-filter-func","146":"/en/dev/api/dev/observer.html#func-debounce-wait","147":"/en/dev/api/dev/observer.html#class-codemodifiedhandler-filesystemeventhandler","148":"/en/dev/api/dev/observer.html#func-on-modified-self-event","149":"/en/dev/api/dev/observer.html#func-on-created-self-event","150":"/en/dev/api/dev/observer.html#func-on-deleted-self-event","151":"/en/dev/api/dev/observer.html#func-on-moved-self-event","152":"/en/dev/api/dev/observer.html#func-on-any-event-self-event","153":"/en/dev/api/dev/observer.html#func-on-file-system-event-directories-tuple-str-recursive-bool-true-event-filter-filter-func-none-callable-callback-func-callback-func","154":"/en/dev/api/exception.html#module-liteyuki-exception","155":"/en/dev/api/exception.html#class-liteyukiexception-baseexception","156":"/en/dev/api/#module-liteyuki","157":"/en/dev/api/#var-version","158":"/en/dev/api/log.html#module-liteyuki-log","159":"/en/dev/api/log.html#func-get-format-level-str-str","160":"/en/dev/api/log.html#func-init-log-config-dict","161":"/en/dev/api/message/event.html#module-liteyuki-message-event","162":"/en/dev/api/message/event.html#class-messageevent","163":"/en/dev/api/message/event.html#func-init-self-bot-id-str-message-list-dict-str-any-str-message-type-str-raw-message-str-session-id-str-user-id-str-session-type-str-receive-channel-optional-channel-messageevent-none-data-optional-dict-str-any-none","164":"/en/dev/api/message/event.html#func-reply-self-message-str-dict-str-any","165":"/en/dev/api/message/#module-liteyuki-message","166":"/en/dev/api/message/matcher.html#module-liteyuki-message-matcher","167":"/en/dev/api/message/matcher.html#class-matcher","168":"/en/dev/api/message/matcher.html#func-init-self-rule-rule-priority-int-block-bool","169":"/en/dev/api/message/matcher.html#func-handle-self-callable-eventhandler-eventhandler","170":"/en/dev/api/message/matcher.html#async-func-run-self-event-messageevent-none","171":"/en/dev/api/message/on.html#module-liteyuki-message-on","172":"/en/dev/api/message/on.html#func-add-matcher-matcher-matcher","173":"/en/dev/api/message/on.html#func-on-message-rule-rule-empty-rule-priority-int-0-block-bool-false-matcher","174":"/en/dev/api/message/on.html#func-on-keywords-keywords-list-str-rule-empty-rule-priority-int-0-block-bool-false-matcher","175":"/en/dev/api/message/rule.html#module-liteyuki-message-rule","176":"/en/dev/api/message/rule.html#var-rulehandlerfunc","177":"/en/dev/api/message/rule.html#class-rule","178":"/en/dev/api/message/rule.html#func-init-self-handler-rulehandlerfunc","179":"/en/dev/api/message/rule.html#func-self-other-rule-rule","180":"/en/dev/api/message/rule.html#func-self-other-rule-rule-1","181":"/en/dev/api/message/rule.html#async-func-self-event-messageevent-bool","182":"/en/dev/api/message/rule.html#async-func-empty-rule-event-messageevent-bool","183":"/en/dev/api/message/rule.html#async-func-is-su-rule-event-messageevent-bool","184":"/en/dev/api/message/session.html#module-liteyuki-message-session","185":"/en/dev/api/plugin/#module-liteyuki-plugin","186":"/en/dev/api/plugin/#func-get-loaded-plugins-dict-str-plugin","187":"/en/dev/api/mkdoc.html#module-liteyuki-mkdoc","188":"/en/dev/api/mkdoc.html#class-deftype-enum","189":"/en/dev/api/mkdoc.html#attr-function-function","190":"/en/dev/api/mkdoc.html#attr-method-method","191":"/en/dev/api/mkdoc.html#attr-static-method-staticmethod","192":"/en/dev/api/mkdoc.html#attr-class-method-classmethod","193":"/en/dev/api/mkdoc.html#attr-property-property","194":"/en/dev/api/mkdoc.html#class-functioninfo-basemodel","195":"/en/dev/api/mkdoc.html#attr-name-str-no-default","196":"/en/dev/api/mkdoc.html#attr-args-list-tuple-str-str-no-default","197":"/en/dev/api/mkdoc.html#attr-return-type-str-no-default","198":"/en/dev/api/mkdoc.html#attr-docstring-str-no-default","199":"/en/dev/api/mkdoc.html#attr-source-code-str","200":"/en/dev/api/mkdoc.html#attr-type-deftype-no-default","201":"/en/dev/api/mkdoc.html#attr-is-async-bool-no-default","202":"/en/dev/api/mkdoc.html#class-attributeinfo-basemodel","203":"/en/dev/api/mkdoc.html#attr-name-str-no-default-1","204":"/en/dev/api/mkdoc.html#attr-type-str-no-default","205":"/en/dev/api/mkdoc.html#attr-value-any-none","206":"/en/dev/api/mkdoc.html#attr-docstring-str","207":"/en/dev/api/mkdoc.html#class-classinfo-basemodel","208":"/en/dev/api/mkdoc.html#attr-name-str-no-default-2","209":"/en/dev/api/mkdoc.html#attr-docstring-str-no-default-1","210":"/en/dev/api/mkdoc.html#attr-methods-list-functioninfo-no-default","211":"/en/dev/api/mkdoc.html#attr-attributes-list-attributeinfo-no-default","212":"/en/dev/api/mkdoc.html#attr-inherit-list-str-no-default","213":"/en/dev/api/mkdoc.html#class-moduleinfo-basemodel","214":"/en/dev/api/mkdoc.html#attr-module-path-str-no-default","215":"/en/dev/api/mkdoc.html#attr-functions-list-functioninfo-no-default","216":"/en/dev/api/mkdoc.html#attr-classes-list-classinfo-no-default","217":"/en/dev/api/mkdoc.html#attr-attributes-list-attributeinfo-no-default-1","218":"/en/dev/api/mkdoc.html#attr-docstring-str-no-default-2","219":"/en/dev/api/mkdoc.html#func-get-relative-path-base-path-str-target-path-str-str","220":"/en/dev/api/mkdoc.html#func-write-to-files-file-data-dict-str-str","221":"/en/dev/api/mkdoc.html#func-get-file-list-module-folder-str","222":"/en/dev/api/mkdoc.html#func-get-module-info-normal-file-path-str-ignore-private-bool-true-moduleinfo","223":"/en/dev/api/mkdoc.html#func-generate-markdown-module-info-moduleinfo-front-matter-none-lang-str-zh-cn-str","224":"/en/dev/api/mkdoc.html#func-generate-docs-module-folder-str-output-dir-str-with-top-bool-false-lang-str-zh-cn-ignored-paths-none","225":"/en/dev/api/mkdoc.html#var-no-module-name-pyfile-path","226":"/en/dev/api/plugin/load.html#module-liteyuki-plugin-load","227":"/en/dev/api/plugin/load.html#func-load-plugin-module-path-str-path-optional-plugin","228":"/en/dev/api/plugin/load.html#func-load-plugins-plugin-dir-str-ignore-warning-bool-true-set-plugin","229":"/en/dev/api/plugin/load.html#func-format-display-name-display-name-str-plugin-type-plugintype-str","230":"/en/dev/api/plugin/manager.html#module-liteyuki-plugin-manager","231":"/en/dev/api/plugin/model.html#module-liteyuki-plugin-model","232":"/en/dev/api/plugin/model.html#class-plugintype-enum","233":"/en/dev/api/plugin/model.html#attr-application-application","234":"/en/dev/api/plugin/model.html#attr-service-service","235":"/en/dev/api/plugin/model.html#attr-module-module","236":"/en/dev/api/plugin/model.html#attr-unclassified-unclassified","237":"/en/dev/api/plugin/model.html#attr-test-test","238":"/en/dev/api/plugin/model.html#class-pluginmetadata-basemodel","239":"/en/dev/api/plugin/model.html#attr-name-str-no-default","240":"/en/dev/api/plugin/model.html#attr-description-str","241":"/en/dev/api/plugin/model.html#attr-usage-str","242":"/en/dev/api/plugin/model.html#attr-type-plugintype-plugintype-unclassified","243":"/en/dev/api/plugin/model.html#attr-author-str","244":"/en/dev/api/plugin/model.html#attr-homepage-str","245":"/en/dev/api/plugin/model.html#attr-extra-dict-str-any","246":"/en/dev/api/plugin/model.html#class-plugin-basemodel","247":"/en/dev/api/plugin/model.html#func-hash-self","248":"/en/dev/api/plugin/model.html#attr-model-config-arbitrary-types-allowed-true","249":"/en/dev/api/plugin/model.html#attr-name-str-no-default-1","250":"/en/dev/api/plugin/model.html#attr-module-moduletype-no-default","251":"/en/dev/api/plugin/model.html#attr-module-name-str-no-default","252":"/en/dev/api/plugin/model.html#attr-metadata-optional-pluginmetadata-none","253":"/en/dev/api/plugins/#module-liteyuki-plugins","254":"/en/dev/api/plugins/liteecho.html#module-liteyuki-plugins-liteecho","255":"/en/dev/api/plugins/liteecho.html#async-func-liteecho-event-messageevent","256":"/en/dev/api/plugins/plugin_loader/#module-liteyuki-plugins-plugin-loader","257":"/en/dev/api/plugins/plugin_loader/#func-default-plugins-loader","258":"/en/dev/api/utils.html#module-liteyuki-utils","259":"/en/dev/api/utils.html#func-is-coroutine-callable-call-callable-any-bool","260":"/en/dev/api/utils.html#func-run-coroutine-coro-coroutine","261":"/en/dev/api/utils.html#func-run-coroutine-in-thread-coro-coroutine","262":"/en/dev/api/utils.html#func-path-to-module-name-path-path-str","263":"/en/dev/api/utils.html#func-async-wrapper-func-callable-any-callable-coroutine","264":"/en/dev/best_practices.html#best-practices","265":"/en/dev/best_practices.html#bot-applications","266":"/en/dev/best_practices.html#plugins","267":"/en/dev/best_practices.html#others","268":"/en/dev/comm.html#channel-communication","269":"/en/dev/comm.html#introduction","270":"/en/dev/comm.html#example","271":"/en/dev/comm.html#共享内存通信","272":"/en/dev/comm.html#简介","273":"/en/dev/comm.html#示例","274":"/en/dev/guide.html#development-guide","275":"/en/dev/guide.html#how-to-develop","276":"/en/dev/guide.html#suggestions","277":"/en/dev/guide.html#project-structure","278":"/en/dev/guide.html#standardization","279":"/en/dev/guide.html#finally","280":"/en/dev/plugin.html#简介","281":"/en/dev/plugin.html#开始","282":"/en/dev/plugin.html#创建插件","283":"/en/dev/plugin.html#编写逻辑部分","284":"/en/dev/plugin.html#加载插件","285":"/en/dev/plugin.html#方法1","286":"/en/dev/plugin.html#方法2","287":"/en/dev/lyfunc.html#轻雪函数","288":"/en/dev/lyfunc.html#函数文件","289":"/en/dev/lyfunc.html#命令文档","290":"/en/dev/lyfunc.html#示例","291":"/en/dev/lyfunc.html#api","292":"/en/dev/lyfunc.html#结束关键字","293":"/en/dev/resource.html#简介","294":"/en/dev/resource.html#加载资源包","295":"/en/usage/agreement.html#用户协议","296":"/en/usage/basic.html#基础插件","297":"/en/usage/basic.html#轻雪命令liteyuki-command","298":"/en/usage/basic.html#命令别名","299":"/en/usage/basic.html#插件-包管理器-liteyuki-pacman","300":"/en/usage/basic.html#命令别名-1","301":"/en/usage/basic.html#用户管理liteyuki-user","302":"/en/usage/extra.html#功能插件命令","303":"/en/usage/extra.html#轻雪天气liteyuki-weather","304":"/en/usage/extra.html#命令别名","305":"/en/usage/extra.html#统计信息liteyuki-statistics","306":"/en/usage/extra.html#命令别名-1"},"fieldIds":{"title":0,"titles":1,"text":2},"fieldLength":{"0":[1,1,50],"1":[2,1,82],"2":[2,1,67],"3":[9,1,71],"4":[1,1,21],"5":[1,1,1],"6":[2,1,59],"7":[3,1,57],"8":[3,1,18],"9":[2,1,83],"10":[6,3,1],"11":[1,1,1],"12":[3,1,172],"13":[2,1,18],"14":[4,1,31],"15":[4,1,25],"16":[1,1,14],"17":[3,1,1],"18":[2,3,1],"19":[6,5,60],"20":[4,5,31],"21":[6,5,33],"22":[8,5,62],"23":[10,5,38],"24":[6,5,19],"25":[5,5,16],"26":[4,5,18],"27":[8,5,22],"28":[8,5,21],"29":[8,5,22],"30":[10,5,24],"31":[10,5,25],"32":[8,5,22],"33":[5,3,37],"34":[10,3,29],"35":[14,3,48],"36":[4,1,24],"37":[4,4,8],"38":[4,4,9],"39":[3,4,11],"40":[5,4,9],"41":[5,4,10],"42":[4,4,12],"43":[2,4,1],"44":[5,6,34],"45":[13,6,41],"46":[8,6,23],"47":[8,6,23],"48":[10,6,25],"49":[8,6,23],"50":[10,6,25],"51":[8,6,23],"52":[7,6,23],"53":[7,6,23],"54":[10,6,26],"55":[7,6,24],"56":[10,6,26],"57":[7,6,24],"58":[4,1,3],"59":[5,4,9],"60":[4,4,12],"61":[4,4,9],"62":[4,4,11],"63":[3,4,11],"64":[5,4,1],"65":[12,9,74],"66":[6,9,47],"67":[5,9,32],"68":[6,9,31],"69":[15,9,66],"70":[3,4,9],"71":[3,4,9],"72":[4,4,11],"73":[4,4,12],"74":[7,4,43],"75":[7,4,22],"76":[7,4,34],"77":[8,4,39],"78":[10,4,27],"79":[10,4,30],"80":[10,4,29],"81":[4,1,2],"82":[2,4,1],"83":[9,6,16],"84":[3,1,8],"85":[5,1,2],"86":[2,5,1],"87":[6,7,23],"88":[5,7,16],"89":[4,7,16],"90":[4,7,13],"91":[4,1,4],"92":[6,4,12],"93":[6,4,12],"94":[2,4,1],"95":[4,6,33],"96":[9,6,34],"97":[12,6,40],"98":[12,6,45],"99":[9,6,33],"100":[9,6,24],"101":[13,6,54],"102":[11,6,31],"103":[7,6,45],"104":[2,4,2],"105":[5,6,21],"106":[4,6,1],"107":[6,6,1],"108":[3,4,9],"109":[3,4,17],"110":[9,4,31],"111":[9,4,29],"112":[9,4,29],"113":[10,4,29],"114":[3,1,14],"115":[8,3,41],"116":[10,3,38],"117":[10,3,37],"118":[10,3,37],"119":[14,3,46],"120":[16,3,52],"121":[15,3,37],"122":[3,1,1],"123":[4,1,24],"124":[2,4,1],"125":[14,6,21],"126":[2,4,1],"127":[6,6,20],"128":[5,6,31],"129":[14,6,51],"130":[5,6,16],"131":[6,6,34],"132":[5,6,15],"133":[9,6,30],"134":[2,4,1],"135":[4,6,15],"136":[13,6,26],"137":[9,6,26],"138":[6,6,25],"139":[5,6,23],"140":[3,1,2],"141":[4,1,24],"142":[9,4,33],"143":[4,1,5],"144":[3,4,9],"145":[3,4,9],"146":[4,4,28],"147":[4,4,3],"148":[6,8,19],"149":[6,8,12],"150":[6,8,12],"151":[6,8,12],"152":[6,8,12],"153":[20,4,54],"154":[3,1,2],"155":[4,3,1],"156":[2,1,10],"157":[3,2,7],"158":[3,1,24],"159":[6,3,20],"160":[6,3,49],"161":[4,1,24],"162":[2,4,1],"163":[24,6,35],"164":[9,6,37],"165":[3,1,24],"166":[4,1,24],"167":[2,4,1],"168":[10,6,28],"169":[7,6,23],"170":[8,6,33],"171":[4,1,24],"172":[5,4,24],"173":[15,4,21],"174":[16,4,32],"175":[4,1,24],"176":[2,4,11],"177":[2,4,1],"178":[6,6,13],"179":[7,6,21],"180":[7,6,22],"181":[8,6,23],"182":[8,4,19],"183":[9,4,24],"184":[4,1,24],"185":[3,1,1],"186":[9,3,20],"187":[3,1,24],"188":[4,3,1],"189":[5,7,1],"190":[5,7,1],"191":[6,7,1],"192":[6,7,1],"193":[5,7,1],"194":[4,3,1],"195":[6,7,1],"196":[8,7,1],"197":[7,7,1],"198":[6,7,1],"199":[6,7,1],"200":[6,7,1],"201":[7,7,1],"202":[4,3,1],"203":[6,7,1],"204":[6,7,1],"205":[5,7,1],"206":[5,7,1],"207":[4,3,1],"208":[6,7,1],"209":[6,7,1],"210":[7,7,1],"211":[7,7,1],"212":[7,7,1],"213":[4,3,1],"214":[7,7,1],"215":[7,7,1],"216":[7,7,1],"217":[7,7,1],"218":[6,7,1],"219":[8,3,23],"220":[9,3,39],"221":[8,3,30],"222":[15,3,145],"223":[15,3,97],"224":[20,3,97],"225":[6,3,10],"226":[4,1,24],"227":[12,4,78],"228":[15,4,61],"229":[9,4,40],"230":[4,1,24],"231":[4,1,24],"232":[4,4,1],"233":[5,8,1],"234":[5,8,1],"235":[5,8,1],"236":[5,8,1],"237":[5,8,1],"238":[4,4,1],"239":[6,8,1],"240":[5,8,1],"241":[5,8,1],"242":[5,8,1],"243":[5,8,1],"244":[5,8,1],"245":[7,8,1],"246":[4,4,1],"247":[3,8,13],"248":[9,8,1],"249":[6,8,1],"250":[6,8,1],"251":[7,8,1],"252":[6,8,1],"253":[3,1,15],"254":[4,1,30],"255":[6,4,23],"256":[5,1,24],"257":[5,5,24],"258":[3,1,5],"259":[9,3,33],"260":[6,3,45],"261":[8,3,23],"262":[8,3,41],"263":[8,3,28],"264":[2,1,1],"265":[2,2,19],"266":[1,2,10],"267":[1,2,30],"268":[2,1,1],"269":[1,2,46],"270":[1,2,105],"271":[1,2,1],"272":[1,3,9],"273":[1,3,18],"274":[2,1,1],"275":[3,2,67],"276":[1,5,34],"277":[2,2,60],"278":[1,2,141],"279":[1,2,23],"280":[1,1,4],"281":[1,1,1],"282":[1,2,42],"283":[1,2,58],"284":[1,2,1],"285":[1,3,6],"286":[1,3,25],"287":[1,1,9],"288":[1,1,25],"289":[1,1,33],"290":[1,2,26],"291":[1,1,7],"292":[1,1,18],"293":[1,1,31],"294":[1,1,56],"295":[1,1,28],"296":[1,1,16],"297":[2,1,86],"298":[1,3,30],"299":[4,1,53],"300":[1,5,38],"301":[2,1,20],"302":[1,1,1],"303":[2,1,30],"304":[1,3,8],"305":[2,1,35],"306":[1,3,17]},"averageFieldLength":[5.622149837133549,4.1693811074918585,22.27361563517915],"storedFields":{"0":{"title":"Configurations","titles":[]},"1":{"title":"Basic Configuration","titles":["Configurations"]},"2":{"title":"Other configurations","titles":["Configurations"]},"3":{"title":"Example: Configuration of OneBot implementation side connected to NoneBot","titles":["Configurations"]},"4":{"title":"Other","titles":["Configurations"]},"5":{"title":"Install","titles":[]},"6":{"title":"Normal Installation","titles":["Install"]},"7":{"title":"Run with Docker","titles":["Install"]},"8":{"title":"Use TRSS Script","titles":["Install"]},"9":{"title":"Device Requirements","titles":["Install"]},"10":{"title":"For other questions, please refer to","titles":["Install","Device Requirements"]},"11":{"title":"FAQ","titles":[]},"12":{"title":"Frequently Asked Questions","titles":["FAQ"]},"13":{"title":"Other questions","titles":["FAQ"]},"14":{"title":"Recommended Solution(QQ)","titles":["FAQ"]},"15":{"title":"Recommended Solution(Minecraft)","titles":["FAQ"]},"16":{"title":"Acknowledgements","titles":["FAQ"]},"17":{"title":"Module liteyuki.bot","titles":[]},"18":{"title":"class LiteyukiBot","titles":["Module liteyuki.bot"]},"19":{"title":"func __init__(self, **kwargs) -> None","titles":["Module liteyuki.bot","class LiteyukiBot"]},"20":{"title":"func run(self)","titles":["Module liteyuki.bot","class LiteyukiBot"]},"21":{"title":"async func keep_alive(self)","titles":["Module liteyuki.bot","class LiteyukiBot"]},"22":{"title":"func restart(self, delay: int = 0)","titles":["Module liteyuki.bot","class LiteyukiBot"]},"23":{"title":"func restart_process(self, name: Optional[str] = None)","titles":["Module liteyuki.bot","class LiteyukiBot"]},"24":{"title":"func init(self, *args, **kwargs)","titles":["Module liteyuki.bot","class LiteyukiBot"]},"25":{"title":"func init_logger(self)","titles":["Module liteyuki.bot","class LiteyukiBot"]},"26":{"title":"func stop(self)","titles":["Module liteyuki.bot","class LiteyukiBot"]},"27":{"title":"func on_before_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC","titles":["Module liteyuki.bot","class LiteyukiBot"]},"28":{"title":"func on_after_start(self, func: LIFESPAN_FUNC)","titles":["Module liteyuki.bot","class LiteyukiBot"]},"29":{"title":"func on_after_shutdown(self, func: LIFESPAN_FUNC)","titles":["Module liteyuki.bot","class LiteyukiBot"]},"30":{"title":"func on_before_process_shutdown(self, func: PROCESS_LIFESPAN_FUNC)","titles":["Module liteyuki.bot","class LiteyukiBot"]},"31":{"title":"func on_before_process_restart(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC","titles":["Module liteyuki.bot","class LiteyukiBot"]},"32":{"title":"func on_after_restart(self, func: LIFESPAN_FUNC)","titles":["Module liteyuki.bot","class LiteyukiBot"]},"33":{"title":"func get_bot() -> LiteyukiBot","titles":["Module liteyuki.bot"]},"34":{"title":"func get_config(key: str, default: Any = None) -> Any","titles":["Module liteyuki.bot"]},"35":{"title":"func get_config_with_compat(key: str, compat_keys: tuple[str], default: Any = None) -> Any","titles":["Module liteyuki.bot"]},"36":{"title":"Module liteyuki.bot.lifespan","titles":[]},"37":{"title":"var SYNC_LIFESPAN_FUNC","titles":["Module liteyuki.bot.lifespan"]},"38":{"title":"var ASYNC_LIFESPAN_FUNC","titles":["Module liteyuki.bot.lifespan"]},"39":{"title":"var LIFESPAN_FUNC","titles":["Module liteyuki.bot.lifespan"]},"40":{"title":"var SYNC_PROCESS_LIFESPAN_FUNC","titles":["Module liteyuki.bot.lifespan"]},"41":{"title":"var ASYNC_PROCESS_LIFESPAN_FUNC","titles":["Module liteyuki.bot.lifespan"]},"42":{"title":"var PROCESS_LIFESPAN_FUNC","titles":["Module liteyuki.bot.lifespan"]},"43":{"title":"class Lifespan","titles":["Module liteyuki.bot.lifespan"]},"44":{"title":"func __init__(self) -> None","titles":["Module liteyuki.bot.lifespan","class Lifespan"]},"45":{"title":"async func run_funcs(funcs: Sequence[LIFESPAN_FUNC | PROCESS_LIFESPAN_FUNC], *args, **kwargs) -> None","titles":["Module liteyuki.bot.lifespan","class Lifespan"]},"46":{"title":"func on_before_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC","titles":["Module liteyuki.bot.lifespan","class Lifespan"]},"47":{"title":"func on_after_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC","titles":["Module liteyuki.bot.lifespan","class Lifespan"]},"48":{"title":"func on_before_process_shutdown(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC","titles":["Module liteyuki.bot.lifespan","class Lifespan"]},"49":{"title":"func on_after_shutdown(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC","titles":["Module liteyuki.bot.lifespan","class Lifespan"]},"50":{"title":"func on_before_process_restart(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC","titles":["Module liteyuki.bot.lifespan","class Lifespan"]},"51":{"title":"func on_after_restart(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC","titles":["Module liteyuki.bot.lifespan","class Lifespan"]},"52":{"title":"async func before_start(self) -> None","titles":["Module liteyuki.bot.lifespan","class Lifespan"]},"53":{"title":"async func after_start(self) -> None","titles":["Module liteyuki.bot.lifespan","class Lifespan"]},"54":{"title":"async func before_process_shutdown(self, *args, **kwargs) -> None","titles":["Module liteyuki.bot.lifespan","class Lifespan"]},"55":{"title":"async func after_shutdown(self) -> None","titles":["Module liteyuki.bot.lifespan","class Lifespan"]},"56":{"title":"async func before_process_restart(self, *args, **kwargs) -> None","titles":["Module liteyuki.bot.lifespan","class Lifespan"]},"57":{"title":"async func after_restart(self) -> None","titles":["Module liteyuki.bot.lifespan","class Lifespan"]},"58":{"title":"Module liteyuki.comm.channel","titles":[]},"59":{"title":"var SYNC_ON_RECEIVE_FUNC","titles":["Module liteyuki.comm.channel"]},"60":{"title":"var ON_RECEIVE_FUNC","titles":["Module liteyuki.comm.channel"]},"61":{"title":"var SYNC_FILTER_FUNC","titles":["Module liteyuki.comm.channel"]},"62":{"title":"var ASYNC_FILTER_FUNC","titles":["Module liteyuki.comm.channel"]},"63":{"title":"var FILTER_FUNC","titles":["Module liteyuki.comm.channel"]},"64":{"title":"class Channel(Generic[T])","titles":["Module liteyuki.comm.channel"]},"65":{"title":"func __init__(self, name: str, type_check: Optional[bool] = None)","titles":["Module liteyuki.comm.channel","class Channel(Generic[T])"]},"66":{"title":"func send(self, data: T)","titles":["Module liteyuki.comm.channel","class Channel(Generic[T])"]},"67":{"title":"func receive(self) -> T","titles":["Module liteyuki.comm.channel","class Channel(Generic[T])"]},"68":{"title":"async func async_receive(self) -> T","titles":["Module liteyuki.comm.channel","class Channel(Generic[T])"]},"69":{"title":"func on_receive(self, filter_func: Optional[FILTER_FUNC] = None) -> Callable[[Callable[[T], Any]], Callable[[T], Any]]","titles":["Module liteyuki.comm.channel","class Channel(Generic[T])"]},"70":{"title":"var active_channel","titles":["Module liteyuki.comm.channel"]},"71":{"title":"var passive_channel","titles":["Module liteyuki.comm.channel"]},"72":{"title":"var channel_deliver_active_channel","titles":["Module liteyuki.comm.channel"]},"73":{"title":"var channel_deliver_passive_channel","titles":["Module liteyuki.comm.channel"]},"74":{"title":"func set_channel(name: str, channel: Channel)","titles":["Module liteyuki.comm.channel"]},"75":{"title":"func set_channels(channels: dict[str, Channel])","titles":["Module liteyuki.comm.channel"]},"76":{"title":"func get_channel(name: str) -> Channel","titles":["Module liteyuki.comm.channel"]},"77":{"title":"func get_channels() -> dict[str, Channel]","titles":["Module liteyuki.comm.channel"]},"78":{"title":"func on_set_channel(data: tuple[str, dict[str, Any]])","titles":["Module liteyuki.comm.channel"]},"79":{"title":"func on_get_channel(data: tuple[str, dict[str, Any]])","titles":["Module liteyuki.comm.channel"]},"80":{"title":"func on_get_channels(data: tuple[str, dict[str, Any]])","titles":["Module liteyuki.comm.channel"]},"81":{"title":"Module liteyuki.comm.event","titles":[]},"82":{"title":"class Event","titles":["Module liteyuki.comm.event"]},"83":{"title":"func __init__(self, name: str, data: dict[str, Any])","titles":["Module liteyuki.comm.event","class Event"]},"84":{"title":"Module liteyuki.comm","titles":[]},"85":{"title":"Module liteyuki.comm.socks_channel","titles":[]},"86":{"title":"class SocksChannel","titles":["Module liteyuki.comm.socks_channel"]},"87":{"title":"func __init__(self, name: str)","titles":["Module liteyuki.comm.socks_channel","class SocksChannel"]},"88":{"title":"func send(self, data)","titles":["Module liteyuki.comm.socks_channel","class SocksChannel"]},"89":{"title":"func receive(self)","titles":["Module liteyuki.comm.socks_channel","class SocksChannel"]},"90":{"title":"func close(self)","titles":["Module liteyuki.comm.socks_channel","class SocksChannel"]},"91":{"title":"Module liteyuki.comm.storage","titles":[]},"92":{"title":"var _on_main_subscriber_receive_funcs","titles":["Module liteyuki.comm.storage"]},"93":{"title":"var _on_sub_subscriber_receive_funcs","titles":["Module liteyuki.comm.storage"]},"94":{"title":"class KeyValueStore","titles":["Module liteyuki.comm.storage"]},"95":{"title":"func __init__(self)","titles":["Module liteyuki.comm.storage","class KeyValueStore"]},"96":{"title":"func set(self, key: str, value: Any) -> None","titles":["Module liteyuki.comm.storage","class KeyValueStore"]},"97":{"title":"func get(self, key: str, default: Optional[Any] = None) -> Optional[Any]","titles":["Module liteyuki.comm.storage","class KeyValueStore"]},"98":{"title":"func delete(self, key: str, ignore_key_error: bool = True) -> None","titles":["Module liteyuki.comm.storage","class KeyValueStore"]},"99":{"title":"func get_all(self) -> dict[str, Any]","titles":["Module liteyuki.comm.storage","class KeyValueStore"]},"100":{"title":"func publish(self, channel_: str, data: Any) -> None","titles":["Module liteyuki.comm.storage","class KeyValueStore"]},"101":{"title":"func on_subscriber_receive(self, channel_: str) -> Callable[[ON_RECEIVE_FUNC], ON_RECEIVE_FUNC]","titles":["Module liteyuki.comm.storage","class KeyValueStore"]},"102":{"title":"async func run_subscriber_receive_funcs(channel_: str, data: Any)","titles":["Module liteyuki.comm.storage","class KeyValueStore"]},"103":{"title":"async func start_receive_loop(self)","titles":["Module liteyuki.comm.storage","class KeyValueStore"]},"104":{"title":"class GlobalKeyValueStore","titles":["Module liteyuki.comm.storage"]},"105":{"title":"func get_instance(cls)","titles":["Module liteyuki.comm.storage","class GlobalKeyValueStore"]},"106":{"title":"attr _instance = None","titles":["Module liteyuki.comm.storage","class GlobalKeyValueStore"]},"107":{"title":"attr _lock = threading.Lock()","titles":["Module liteyuki.comm.storage","class GlobalKeyValueStore"]},"108":{"title":"var shared_memory","titles":["Module liteyuki.comm.storage"]},"109":{"title":"var _ref_count","titles":["Module liteyuki.comm.storage"]},"110":{"title":"func on_get(data: tuple[str, dict[str, Any]])","titles":["Module liteyuki.comm.storage"]},"111":{"title":"func on_set(data: tuple[str, dict[str, Any]])","titles":["Module liteyuki.comm.storage"]},"112":{"title":"func on_delete(data: tuple[str, dict[str, Any]])","titles":["Module liteyuki.comm.storage"]},"113":{"title":"func on_get_all(data: tuple[str, dict[str, Any]])","titles":["Module liteyuki.comm.storage"]},"114":{"title":"Module liteyuki.config","titles":[]},"115":{"title":"func flat_config(config: dict[str, Any]) -> dict[str, Any]","titles":["Module liteyuki.config"]},"116":{"title":"func load_from_yaml(file_: str) -> dict[str, Any]","titles":["Module liteyuki.config"]},"117":{"title":"func load_from_json(file_: str) -> dict[str, Any]","titles":["Module liteyuki.config"]},"118":{"title":"func load_from_toml(file_: str) -> dict[str, Any]","titles":["Module liteyuki.config"]},"119":{"title":"func load_from_files(*files: str, *, no_warning: bool = False) -> dict[str, Any]","titles":["Module liteyuki.config"]},"120":{"title":"func load_configs_from_dirs(*directories: str, *, no_waring: bool = False) -> dict[str, Any]","titles":["Module liteyuki.config"]},"121":{"title":"func load_config_in_default(no_waring: bool = False) -> dict[str, Any]","titles":["Module liteyuki.config"]},"122":{"title":"Module liteyuki.core","titles":[]},"123":{"title":"Module liteyuki.core.manager","titles":[]},"124":{"title":"class ChannelDeliver","titles":["Module liteyuki.core.manager"]},"125":{"title":"func __init__(self, active: Channel[Any], passive: Channel[Any], channel_deliver_active: Channel[Channel[Any]], channel_deliver_passive: Channel[tuple[str, dict]], publish: Channel[tuple[str, Any]])","titles":["Module liteyuki.core.manager","class ChannelDeliver"]},"126":{"title":"class ProcessManager","titles":["Module liteyuki.core.manager"]},"127":{"title":"func __init__(self, lifespan: Lifespan)","titles":["Module liteyuki.core.manager","class ProcessManager"]},"128":{"title":"func start_all(self)","titles":["Module liteyuki.core.manager","class ProcessManager"]},"129":{"title":"func add_target(self, name: str, target: TARGET_FUNC, args: tuple = (), kwargs = None)","titles":["Module liteyuki.core.manager","class ProcessManager"]},"130":{"title":"func join_all(self)","titles":["Module liteyuki.core.manager","class ProcessManager"]},"131":{"title":"func terminate(self, name: str)","titles":["Module liteyuki.core.manager","class ProcessManager"]},"132":{"title":"func terminate_all(self)","titles":["Module liteyuki.core.manager","class ProcessManager"]},"133":{"title":"func is_process_alive(self, name: str) -> bool","titles":["Module liteyuki.core.manager","class ProcessManager"]},"134":{"title":"class _SubProcessManager","titles":["Module liteyuki.core.manager"]},"135":{"title":"func __init__(self)","titles":["Module liteyuki.core.manager","class _SubProcessManager"]},"136":{"title":"func new_process(self, name: str, *args, **kwargs) -> Callable[[ProcessFuncType], None]","titles":["Module liteyuki.core.manager","class _SubProcessManager"]},"137":{"title":"func add(self, name: str, func: ProcessFuncType, *args, **kwargs)","titles":["Module liteyuki.core.manager","class _SubProcessManager"]},"138":{"title":"func start(self, name: str)","titles":["Module liteyuki.core.manager","class _SubProcessManager"]},"139":{"title":"func start_all(self)","titles":["Module liteyuki.core.manager","class _SubProcessManager"]},"140":{"title":"Module liteyuki.dev","titles":[]},"141":{"title":"Module liteyuki.dev.plugin","titles":[]},"142":{"title":"func run_plugins(*module_path: str | Path)","titles":["Module liteyuki.dev.plugin"]},"143":{"title":"Module liteyuki.dev.observer","titles":[]},"144":{"title":"var CALLBACK_FUNC","titles":["Module liteyuki.dev.observer"]},"145":{"title":"var FILTER_FUNC","titles":["Module liteyuki.dev.observer"]},"146":{"title":"func debounce(wait)","titles":["Module liteyuki.dev.observer"]},"147":{"title":"class CodeModifiedHandler(FileSystemEventHandler)","titles":["Module liteyuki.dev.observer"]},"148":{"title":"func on_modified(self, event)","titles":["Module liteyuki.dev.observer","class CodeModifiedHandler(FileSystemEventHandler)"]},"149":{"title":"func on_created(self, event)","titles":["Module liteyuki.dev.observer","class CodeModifiedHandler(FileSystemEventHandler)"]},"150":{"title":"func on_deleted(self, event)","titles":["Module liteyuki.dev.observer","class CodeModifiedHandler(FileSystemEventHandler)"]},"151":{"title":"func on_moved(self, event)","titles":["Module liteyuki.dev.observer","class CodeModifiedHandler(FileSystemEventHandler)"]},"152":{"title":"func on_any_event(self, event)","titles":["Module liteyuki.dev.observer","class CodeModifiedHandler(FileSystemEventHandler)"]},"153":{"title":"func on_file_system_event(directories: tuple[str], recursive: bool = True, event_filter: FILTER_FUNC = None) -> Callable[[CALLBACK_FUNC], CALLBACK_FUNC]","titles":["Module liteyuki.dev.observer"]},"154":{"title":"Module liteyuki.exception","titles":[]},"155":{"title":"class LiteyukiException(BaseException)","titles":["Module liteyuki.exception"]},"156":{"title":"Module liteyuki","titles":[]},"157":{"title":"var __version__","titles":["Module liteyuki"]},"158":{"title":"Module liteyuki.log","titles":[]},"159":{"title":"func get_format(level: str) -> str","titles":["Module liteyuki.log"]},"160":{"title":"func init_log(config: dict)","titles":["Module liteyuki.log"]},"161":{"title":"Module liteyuki.message.event","titles":[]},"162":{"title":"class MessageEvent","titles":["Module liteyuki.message.event"]},"163":{"title":"func __init__(self, bot_id: str, message: list[dict[str, Any]] | str, message_type: str, raw_message: str, session_id: str, user_id: str, session_type: str, receive_channel: Optional[Channel[MessageEvent]] = None, data: Optional[dict[str, Any]] = None)","titles":["Module liteyuki.message.event","class MessageEvent"]},"164":{"title":"func reply(self, message: str | dict[str, Any])","titles":["Module liteyuki.message.event","class MessageEvent"]},"165":{"title":"Module liteyuki.message","titles":[]},"166":{"title":"Module liteyuki.message.matcher","titles":[]},"167":{"title":"class Matcher","titles":["Module liteyuki.message.matcher"]},"168":{"title":"func __init__(self, rule: Rule, priority: int, block: bool)","titles":["Module liteyuki.message.matcher","class Matcher"]},"169":{"title":"func handle(self) -> Callable[[EventHandler], EventHandler]","titles":["Module liteyuki.message.matcher","class Matcher"]},"170":{"title":"async func run(self, event: MessageEvent) -> None","titles":["Module liteyuki.message.matcher","class Matcher"]},"171":{"title":"Module liteyuki.message.on","titles":[]},"172":{"title":"func add_matcher(matcher: Matcher)","titles":["Module liteyuki.message.on"]},"173":{"title":"func on_message(rule: Rule = empty_rule, priority: int = 0, block: bool = False) -> Matcher","titles":["Module liteyuki.message.on"]},"174":{"title":"func on_keywords(keywords: list[str], rule = empty_rule, priority: int = 0, block: bool = False) -> Matcher","titles":["Module liteyuki.message.on"]},"175":{"title":"Module liteyuki.message.rule","titles":[]},"176":{"title":"var RuleHandlerFunc","titles":["Module liteyuki.message.rule"]},"177":{"title":"class Rule","titles":["Module liteyuki.message.rule"]},"178":{"title":"func __init__(self, handler: RuleHandlerFunc)","titles":["Module liteyuki.message.rule","class Rule"]},"179":{"title":"func self | other: Rule => Rule","titles":["Module liteyuki.message.rule","class Rule"]},"180":{"title":"func self & other: Rule => Rule","titles":["Module liteyuki.message.rule","class Rule"]},"181":{"title":"async func self () event: MessageEvent => bool","titles":["Module liteyuki.message.rule","class Rule"]},"182":{"title":"async func empty_rule(event: MessageEvent) -> bool","titles":["Module liteyuki.message.rule"]},"183":{"title":"async func is_su_rule(event: MessageEvent) -> bool","titles":["Module liteyuki.message.rule"]},"184":{"title":"Module liteyuki.message.session","titles":[]},"185":{"title":"Module liteyuki.plugin","titles":[]},"186":{"title":"func get_loaded_plugins() -> dict[str, Plugin]","titles":["Module liteyuki.plugin"]},"187":{"title":"Module liteyuki.mkdoc","titles":[]},"188":{"title":"class DefType(Enum)","titles":["Module liteyuki.mkdoc"]},"189":{"title":"attr FUNCTION = 'function'","titles":["Module liteyuki.mkdoc","class DefType(Enum)"]},"190":{"title":"attr METHOD = 'method'","titles":["Module liteyuki.mkdoc","class DefType(Enum)"]},"191":{"title":"attr STATIC_METHOD = 'staticmethod'","titles":["Module liteyuki.mkdoc","class DefType(Enum)"]},"192":{"title":"attr CLASS_METHOD = 'classmethod'","titles":["Module liteyuki.mkdoc","class DefType(Enum)"]},"193":{"title":"attr PROPERTY = 'property'","titles":["Module liteyuki.mkdoc","class DefType(Enum)"]},"194":{"title":"class FunctionInfo(BaseModel)","titles":["Module liteyuki.mkdoc"]},"195":{"title":"attr name: str = NO_DEFAULT","titles":["Module liteyuki.mkdoc","class FunctionInfo(BaseModel)"]},"196":{"title":"attr args: list[tuple[str, str]] = NO_DEFAULT","titles":["Module liteyuki.mkdoc","class FunctionInfo(BaseModel)"]},"197":{"title":"attr return_type: str = NO_DEFAULT","titles":["Module liteyuki.mkdoc","class FunctionInfo(BaseModel)"]},"198":{"title":"attr docstring: str = NO_DEFAULT","titles":["Module liteyuki.mkdoc","class FunctionInfo(BaseModel)"]},"199":{"title":"attr source_code: str = ''","titles":["Module liteyuki.mkdoc","class FunctionInfo(BaseModel)"]},"200":{"title":"attr type: DefType = NO_DEFAULT","titles":["Module liteyuki.mkdoc","class FunctionInfo(BaseModel)"]},"201":{"title":"attr is_async: bool = NO_DEFAULT","titles":["Module liteyuki.mkdoc","class FunctionInfo(BaseModel)"]},"202":{"title":"class AttributeInfo(BaseModel)","titles":["Module liteyuki.mkdoc"]},"203":{"title":"attr name: str = NO_DEFAULT","titles":["Module liteyuki.mkdoc","class AttributeInfo(BaseModel)"]},"204":{"title":"attr type: str = NO_DEFAULT","titles":["Module liteyuki.mkdoc","class AttributeInfo(BaseModel)"]},"205":{"title":"attr value: Any = None","titles":["Module liteyuki.mkdoc","class AttributeInfo(BaseModel)"]},"206":{"title":"attr docstring: str = ''","titles":["Module liteyuki.mkdoc","class AttributeInfo(BaseModel)"]},"207":{"title":"class ClassInfo(BaseModel)","titles":["Module liteyuki.mkdoc"]},"208":{"title":"attr name: str = NO_DEFAULT","titles":["Module liteyuki.mkdoc","class ClassInfo(BaseModel)"]},"209":{"title":"attr docstring: str = NO_DEFAULT","titles":["Module liteyuki.mkdoc","class ClassInfo(BaseModel)"]},"210":{"title":"attr methods: list[FunctionInfo] = NO_DEFAULT","titles":["Module liteyuki.mkdoc","class ClassInfo(BaseModel)"]},"211":{"title":"attr attributes: list[AttributeInfo] = NO_DEFAULT","titles":["Module liteyuki.mkdoc","class ClassInfo(BaseModel)"]},"212":{"title":"attr inherit: list[str] = NO_DEFAULT","titles":["Module liteyuki.mkdoc","class ClassInfo(BaseModel)"]},"213":{"title":"class ModuleInfo(BaseModel)","titles":["Module liteyuki.mkdoc"]},"214":{"title":"attr module_path: str = NO_DEFAULT","titles":["Module liteyuki.mkdoc","class ModuleInfo(BaseModel)"]},"215":{"title":"attr functions: list[FunctionInfo] = NO_DEFAULT","titles":["Module liteyuki.mkdoc","class ModuleInfo(BaseModel)"]},"216":{"title":"attr classes: list[ClassInfo] = NO_DEFAULT","titles":["Module liteyuki.mkdoc","class ModuleInfo(BaseModel)"]},"217":{"title":"attr attributes: list[AttributeInfo] = NO_DEFAULT","titles":["Module liteyuki.mkdoc","class ModuleInfo(BaseModel)"]},"218":{"title":"attr docstring: str = NO_DEFAULT","titles":["Module liteyuki.mkdoc","class ModuleInfo(BaseModel)"]},"219":{"title":"func get_relative_path(base_path: str, target_path: str) -> str","titles":["Module liteyuki.mkdoc"]},"220":{"title":"func write_to_files(file_data: dict[str, str])","titles":["Module liteyuki.mkdoc"]},"221":{"title":"func get_file_list(module_folder: str)","titles":["Module liteyuki.mkdoc"]},"222":{"title":"func get_module_info_normal(file_path: str, ignore_private: bool = True) -> ModuleInfo","titles":["Module liteyuki.mkdoc"]},"223":{"title":"func generate_markdown(module_info: ModuleInfo, front_matter = None, lang: str = 'zh-CN') -> str","titles":["Module liteyuki.mkdoc"]},"224":{"title":"func generate_docs(module_folder: str, output_dir: str, with_top: bool = False, lang: str = 'zh-CN', ignored_paths = None)","titles":["Module liteyuki.mkdoc"]},"225":{"title":"var no_module_name_pyfile_path","titles":["Module liteyuki.mkdoc"]},"226":{"title":"Module liteyuki.plugin.load","titles":[]},"227":{"title":"func load_plugin(module_path: str | Path) -> Optional[Plugin]","titles":["Module liteyuki.plugin.load"]},"228":{"title":"func load_plugins(*plugin_dir: str, *, ignore_warning: bool = True) -> set[Plugin]","titles":["Module liteyuki.plugin.load"]},"229":{"title":"func format_display_name(display_name: str, plugin_type: PluginType) -> str","titles":["Module liteyuki.plugin.load"]},"230":{"title":"Module liteyuki.plugin.manager","titles":[]},"231":{"title":"Module liteyuki.plugin.model","titles":[]},"232":{"title":"class PluginType(Enum)","titles":["Module liteyuki.plugin.model"]},"233":{"title":"attr APPLICATION = 'application'","titles":["Module liteyuki.plugin.model","class PluginType(Enum)"]},"234":{"title":"attr SERVICE = 'service'","titles":["Module liteyuki.plugin.model","class PluginType(Enum)"]},"235":{"title":"attr MODULE = 'module'","titles":["Module liteyuki.plugin.model","class PluginType(Enum)"]},"236":{"title":"attr UNCLASSIFIED = 'unclassified'","titles":["Module liteyuki.plugin.model","class PluginType(Enum)"]},"237":{"title":"attr TEST = 'test'","titles":["Module liteyuki.plugin.model","class PluginType(Enum)"]},"238":{"title":"class PluginMetadata(BaseModel)","titles":["Module liteyuki.plugin.model"]},"239":{"title":"attr name: str = NO_DEFAULT","titles":["Module liteyuki.plugin.model","class PluginMetadata(BaseModel)"]},"240":{"title":"attr description: str = ''","titles":["Module liteyuki.plugin.model","class PluginMetadata(BaseModel)"]},"241":{"title":"attr usage: str = ''","titles":["Module liteyuki.plugin.model","class PluginMetadata(BaseModel)"]},"242":{"title":"attr type: PluginType = PluginType.UNCLASSIFIED","titles":["Module liteyuki.plugin.model","class PluginMetadata(BaseModel)"]},"243":{"title":"attr author: str = ''","titles":["Module liteyuki.plugin.model","class PluginMetadata(BaseModel)"]},"244":{"title":"attr homepage: str = ''","titles":["Module liteyuki.plugin.model","class PluginMetadata(BaseModel)"]},"245":{"title":"attr extra: dict[str, Any] = {}","titles":["Module liteyuki.plugin.model","class PluginMetadata(BaseModel)"]},"246":{"title":"class Plugin(BaseModel)","titles":["Module liteyuki.plugin.model"]},"247":{"title":"func hash self","titles":["Module liteyuki.plugin.model","class Plugin(BaseModel)"]},"248":{"title":"attr model_config = {'arbitrary_types_allowed': True}","titles":["Module liteyuki.plugin.model","class Plugin(BaseModel)"]},"249":{"title":"attr name: str = NO_DEFAULT","titles":["Module liteyuki.plugin.model","class Plugin(BaseModel)"]},"250":{"title":"attr module: ModuleType = NO_DEFAULT","titles":["Module liteyuki.plugin.model","class Plugin(BaseModel)"]},"251":{"title":"attr module_name: str = NO_DEFAULT","titles":["Module liteyuki.plugin.model","class Plugin(BaseModel)"]},"252":{"title":"attr metadata: Optional[PluginMetadata] = None","titles":["Module liteyuki.plugin.model","class Plugin(BaseModel)"]},"253":{"title":"Module liteyuki.plugins","titles":[]},"254":{"title":"Module liteyuki.plugins.liteecho","titles":[]},"255":{"title":"async func liteecho(event: MessageEvent)","titles":["Module liteyuki.plugins.liteecho"]},"256":{"title":"Module liteyuki.plugins.plugin_loader","titles":[]},"257":{"title":"func default_plugins_loader()","titles":["Module liteyuki.plugins.plugin_loader"]},"258":{"title":"Module liteyuki.utils","titles":[]},"259":{"title":"func is_coroutine_callable(call: Callable[..., Any]) -> bool","titles":["Module liteyuki.utils"]},"260":{"title":"func run_coroutine(*coro: Coroutine)","titles":["Module liteyuki.utils"]},"261":{"title":"func run_coroutine_in_thread(*coro: Coroutine)","titles":["Module liteyuki.utils"]},"262":{"title":"func path_to_module_name(path: Path) -> str","titles":["Module liteyuki.utils"]},"263":{"title":"func async_wrapper(func: Callable[..., Any]) -> Callable[..., Coroutine]","titles":["Module liteyuki.utils"]},"264":{"title":"Best Practices","titles":[]},"265":{"title":"Bot applications","titles":["Best Practices"]},"266":{"title":"plugins","titles":["Best Practices"]},"267":{"title":"Others","titles":["Best Practices"]},"268":{"title":"Channel Communication","titles":[]},"269":{"title":"Introduction","titles":["Channel Communication"]},"270":{"title":"Example","titles":["Channel Communication"]},"271":{"title":"共享内存通信","titles":["Channel Communication"]},"272":{"title":"简介","titles":["Channel Communication","共享内存通信"]},"273":{"title":"示例","titles":["Channel Communication","共享内存通信"]},"274":{"title":"Development Guide","titles":[]},"275":{"title":"How to Develop","titles":["Development Guide"]},"276":{"title":"Suggestions","titles":["Development Guide","How to Develop"]},"277":{"title":"Project Structure","titles":["Development Guide"]},"278":{"title":"Standardization","titles":["Development Guide"]},"279":{"title":"Finally","titles":["Development Guide"]},"280":{"title":"简介","titles":[]},"281":{"title":"开始","titles":["简介"]},"282":{"title":"创建插件","titles":["简介","开始"]},"283":{"title":"编写逻辑部分","titles":["简介","开始"]},"284":{"title":"加载插件","titles":["简介","开始"]},"285":{"title":"方法1","titles":["简介","开始","加载插件"]},"286":{"title":"方法2","titles":["简介","开始","加载插件"]},"287":{"title":"轻雪函数","titles":[]},"288":{"title":"函数文件","titles":["轻雪函数"]},"289":{"title":"命令文档","titles":["轻雪函数"]},"290":{"title":"示例","titles":["轻雪函数","命令文档"]},"291":{"title":"API","titles":["轻雪函数"]},"292":{"title":"结束关键字","titles":["轻雪函数"]},"293":{"title":"简介","titles":[]},"294":{"title":"加载资源包","titles":["简介"]},"295":{"title":"用户协议","titles":[]},"296":{"title":"基础插件","titles":[]},"297":{"title":"轻雪命令liteyuki_command","titles":["基础插件"]},"298":{"title":"命令别名","titles":["基础插件","轻雪命令liteyuki_command"]},"299":{"title":"插件/包管理器 liteyuki_pacman","titles":["基础插件"]},"300":{"title":"命令别名","titles":["基础插件","插件/包管理器 liteyuki_pacman"]},"301":{"title":"用户管理liteyuki_user","titles":["基础插件"]},"302":{"title":"功能插件命令","titles":[]},"303":{"title":"轻雪天气liteyuki_weather","titles":["功能插件命令"]},"304":{"title":"命令别名","titles":["功能插件命令","轻雪天气liteyuki_weather"]},"305":{"title":"统计信息liteyuki_statistics","titles":["功能插件命令"]},"306":{"title":"命令别名","titles":["功能插件命令","统计信息liteyuki_statistics"]}},"dirtCount":0,"index":[["或",{"2":{"305":2}}],["或插件路径",{"2":{"227":1}}],["当前bot",{"2":{"305":1}}],["当前群聊",{"2":{"305":1}}],["当前会话启用",{"2":{"299":1}}],["秒",{"2":{"305":2}}],["小时",{"2":{"305":2}}],["天",{"2":{"305":2}}],["天气",{"2":{"303":1,"304":1}}],["格式",{"2":{"305":1}}],["格式为onebot",{"2":{"297":1}}],["统计时间范围为duration",{"2":{"305":1}}],["统计周期为period",{"2":{"305":1}}],["统计信息",{"2":{"305":1}}],["统计信息liteyuki",{"0":{"305":1},"1":{"306":1}}],["功能",{"2":{"305":1}}],["功能插件命令",{"0":{"302":1},"1":{"303":1,"304":1,"305":1,"306":1}}],["绑定城市",{"2":{"304":1}}],["绑定查询城市",{"2":{"303":1}}],["个人全局生效",{"2":{"303":1}}],["个人信息",{"2":{"301":1}}],["海淀",{"2":{"303":1}}],["北京",{"2":{"303":1}}],["支持中英文",{"2":{"303":2}}],["支持中英文城市名",{"2":{"303":1}}],["支持多个关键词查询",{"2":{"303":1}}],["支持绑定城市",{"2":{"303":1}}],["支持单行注释",{"2":{"288":1}}],["受限于nonebot2钩子函数的依赖注入参数",{"2":{"300":1}}],["帮助",{"2":{"300":1}}],["列表",{"2":{"300":1}}],["列出所有资源包",{"2":{"299":1}}],["列出所有插件",{"2":{"299":1}}],["更改",{"2":{"300":1}}],["更新",{"2":{"300":1}}],["更新插件商店索引",{"2":{"299":1}}],["更新轻雪",{"2":{"297":1,"298":1}}],["全局停用",{"2":{"300":1}}],["全局启用",{"2":{"299":1,"300":1}}],["搜索",{"2":{"300":1}}],["卸载",{"2":{"300":2}}],["卸载资源包",{"2":{"299":1}}],["卸载插件",{"2":{"299":1}}],["私聊所有人可用",{"2":{"299":2}}],["包管理器",{"0":{"299":1},"1":{"300":1}}],["包括子task",{"2":{"289":1}}],["切换图片模式",{"2":{"298":1}}],["状态",{"2":{"298":1}}],["别名",{"2":{"298":1,"300":1,"301":1,"304":1,"306":1}}],["所有人",{"2":{"297":1,"299":1,"301":3}}],["所以在编写lyfunction时也要注意异步的调用",{"2":{"292":1}}],["群聊",{"2":{"298":1}}],["群聊仅群主",{"2":{"297":1,"299":2}}],["群号",{"2":{"297":1}}],["管理员",{"2":{"297":1,"299":2}}],["停用插件",{"2":{"299":2}}],["停用",{"2":{"298":1,"300":1}}],["停用机器人",{"2":{"297":1}}],["停止后钩子",{"2":{"55":1}}],["停止前钩子",{"2":{"54":1}}],["停止",{"2":{"44":1}}],["停止轻雪",{"2":{"23":1,"26":1}}],["该功能需要commit",{"2":{"297":1}}],["该模块封装通道实现",{"2":{"272":1}}],["该模块用于存放一些开发工具",{"2":{"140":1}}],["该模块用于常用配置文件的加载",{"2":{"114":1}}],["该模块用于轻雪主进程和nonebot子进程之间的通信",{"2":{"84":1}}],["推荐私聊使用",{"2":{"297":1}}],["推荐在编写html时同时更改对应js代码",{"2":{"293":1}}],["查询目标地实时天气",{"2":{"303":1}}],["查询实时天气",{"2":{"303":1}}],["查询",{"2":{"298":1,"301":1}}],["查询配置项",{"2":{"297":1}}],["查看用户信息菜单",{"2":{"301":1}}],["查看插件帮助",{"2":{"299":1}}],["查看轻雪文档",{"2":{"297":1}}],["查看统计信息和状态",{"2":{"297":1}}],["查看当前bot",{"2":{"297":1}}],["和风天气的天气key",{"2":{"303":1}}],["和",{"2":{"297":1}}],["和10是不一样的",{"2":{"297":1}}],["和config目录下的所有配置文件",{"2":{"121":1}}],["输入值会被执行以转换为正确的类型",{"2":{"297":1}}],["输出",{"2":{"288":1}}],["输出文件夹",{"2":{"224":1}}],["输出文件",{"2":{"220":1}}],["版本",{"2":{"297":1}}],["❌",{"2":{"297":11}}],["超级用户可用",{"2":{"297":1,"299":2}}],["超级用户",{"2":{"297":10,"299":10}}],["重载",{"2":{"300":1}}],["重载所有资源包",{"2":{"299":1}}],["重载资源",{"2":{"298":1}}],["重载轻雪",{"2":{"297":1}}],["重启轻雪",{"2":{"298":1}}],["重启轻雪即可加载插件",{"2":{"285":1}}],["重启轻雪本体",{"2":{"22":1}}],["重启后钩子",{"2":{"57":1}}],["重启前钩子",{"2":{"56":1}}],["重启",{"2":{"44":1}}],["举例",{"2":{"297":1}}],["权限",{"2":{"297":1,"299":2,"301":1}}],["说明",{"2":{"297":1,"299":2,"301":1}}],["~代替",{"2":{"296":1}}],["~可以使用插件",{"2":{"296":1}}],["安装插件",{"2":{"299":1}}],["安装",{"2":{"296":1,"300":1}}],["安装的插件",{"2":{"227":1}}],["命令",{"2":{"297":1,"298":1,"299":2,"300":1,"301":2,"303":1,"304":1,"305":1,"306":1}}],["命令别名",{"0":{"298":1,"300":1,"304":1,"306":1},"2":{"296":1,"301":1}}],["命令文档",{"0":{"289":1},"1":{"290":1}}],["为可选参数",{"2":{"296":1}}],["为必填参数",{"2":{"296":1}}],["为子进程重启时调用",{"2":{"31":1}}],["为子进程停止时调用",{"2":{"30":1}}],["且通过安全的方式传输到轻雪的服务器",{"2":{"295":1}}],["且通道标识为",{"2":{"270":1}}],["系统信息及python信息",{"2":{"295":1}}],["内存",{"2":{"295":1}}],["内存共享是线程安全的",{"2":{"272":1}}],["内存共享使得代码编写更加简洁",{"2":{"272":1}}],["分钟",{"2":{"305":2}}],["分发",{"2":{"295":1}}],["分工明确",{"2":{"114":1}}],["修改优先级",{"2":{"299":1}}],["修改",{"2":{"295":1}}],["本项目不会收集用户的任何隐私信息",{"2":{"295":1}}],["本项目遵循mit协议",{"2":{"295":1}}],["本模块用于轻雪主进程和子进程之间的通信的事件类",{"2":{"81":1}}],["本模块定义了一个通用的通道类",{"2":{"58":1}}],["同时用户也应该自行选择可用的资源包",{"2":{"294":1}}],["同步接收数据",{"2":{"67":1}}],["同步接收函数",{"2":{"59":1}}],["同步过滤函数",{"2":{"61":1}}],["同步进程生命周期函数",{"2":{"40":1}}],["同步生命周期函数",{"2":{"37":1}}],["第三方资源包开发者需要注意版本兼容性",{"2":{"294":1}}],["对于主动推送的插件不生效",{"2":{"300":1}}],["对于不同资源包的不同文件",{"2":{"294":1}}],["对外启动方法",{"2":{"128":1}}],["└─",{"2":{"294":1}}],["└───",{"2":{"294":1}}],["└─resource",{"2":{"294":2}}],["├─templates",{"2":{"294":1}}],["├─metadata",{"2":{"294":2}}],["正常的路径应该是这样的",{"2":{"294":1}}],["只需要将其解压到根目录resources目录下即可",{"2":{"294":1}}],["zip格式压缩的",{"2":{"294":1}}],["zh",{"0":{"223":1,"224":1},"2":{"2":1,"223":2,"224":1,"277":1}}],["以上内容仅用于项目的优化",{"2":{"295":1}}],["以避免出现无法预料的问题",{"2":{"293":1}}],["以下我们会编写一个简单的插件",{"2":{"283":1}}],["错位等无法预料的事情发生",{"2":{"293":1}}],["异常",{"2":{"293":1}}],["异步任务结束关键字",{"2":{"292":1}}],["异步等待",{"2":{"289":1}}],["异步包装器",{"2":{"263":1}}],["异步接收数据",{"2":{"68":1}}],["异步过滤函数",{"2":{"62":1}}],["异步进程生命周期函数",{"2":{"41":1}}],["异步生命周期函数",{"2":{"38":1}}],["请阅读插件主页的说明",{"2":{"300":1}}],["请确保您所编写的html代码能被bot解析",{"2":{"293":1}}],["请注意",{"2":{"293":1}}],["请不要将需要动态加载的内容写入配置文件",{"2":{"114":1}}],["欢迎各位投稿资源包到轻雪资源商店",{"2":{"293":1}}],["部分异常信息",{"2":{"295":1}}],["部分内容制作需要一点点前端基础",{"2":{"293":1}}],["部分来源于",{"2":{"258":1}}],["讲起打包成一个新的资源包",{"2":{"293":1}}],["仅需按照原有路径进行文件替换即可",{"2":{"293":1}}],["那么加载b包后",{"2":{"294":1}}],["那么你能够很快就上手",{"2":{"293":1}}],["那么当前所有函数包的task都会被截停销毁",{"2":{"292":1}}],["如果你接触过minecraft的资源包",{"2":{"293":1}}],["如果你想同时输出多行内容可以尝试换行符",{"2":{"288":1}}],["主题包中的html渲染使用js来规定数据的渲染位置",{"2":{"293":1}}],["主题商店提供了一些资源包供你选择",{"2":{"293":1}}],["主进程中",{"2":{"270":1}}],["主进程中通过get",{"2":{"270":1}}],["主进程订阅者接收函数",{"2":{"92":1}}],["主进程创建单例",{"2":{"72":1}}],["资源",{"2":{"293":1}}],["资源包管理",{"2":{"299":1}}],["资源包的结构会随着轻雪的更新而有变动",{"2":{"294":1}}],["资源包的制作很简单",{"2":{"293":1}}],["资源包加载遵循一个优先级",{"2":{"294":1}}],["资源包描述",{"2":{"294":1}}],["资源包名称",{"2":{"294":1}}],["资源包通常是以",{"2":{"294":1}}],["资源包",{"2":{"293":1,"300":1}}],["它允许你一定程度上自定义轻雪的外观",{"2":{"293":1}}],["它允许你在轻雪中运行一些自定义的由数据驱动的命令",{"2":{"287":1}}],["字体包",{"2":{"293":1}}],["字符串",{"2":{"223":1}}],["亦可根据用途称为主题包",{"2":{"293":1}}],["有一个task任务没有完成而await被执行了",{"2":{"292":1}}],["的情况是效率提升的关键",{"2":{"292":1}}],["单线程走到底",{"2":{"292":1}}],["单位s",{"2":{"289":1}}],["避免出现",{"2":{"292":1}}],["由于liteyukibot基于异步运行",{"2":{"292":1}}],["结束关键字",{"0":{"292":1}}],["结束函数关键字",{"2":{"289":1}}],["理论上所有基于onebotv11的api都可调用",{"2":{"291":1}}],["则该文件夹不会被识别为资源包",{"2":{"294":1}}],["则需要删除await",{"2":{"290":1}}],["则传入泛型默认开启",{"2":{"65":1}}],["无限戳",{"2":{"290":1}}],["无需手动创建实例",{"2":{"286":1}}],["无需手动初始化bot",{"2":{"142":1}}],["执行",{"2":{"290":1}}],["疯狂戳好友",{"2":{"290":1}}],["否则会导致渲染失败或渲染结果不理想",{"2":{"293":1}}],["否则task对象会被销毁",{"2":{"289":1}}],["否则默认关闭",{"2":{"65":1}}],["需要在最后调用",{"2":{"289":1}}],["等待所有异步任务结束",{"2":{"289":1}}],["即后加载的资源包会覆盖前面的资源包",{"2":{"294":1}}],["即不等待",{"2":{"289":1}}],["即可创建一个插件",{"2":{"282":1}}],["调用机器人函数",{"2":{"297":1}}],["调用机器人api",{"2":{"297":1}}],["调用函数",{"2":{"289":1}}],["调用bot",{"2":{"289":1}}],["调用重启进程方法",{"2":{"283":1}}],["定义变量",{"2":{"289":1}}],["定义插件元数据",{"2":{"282":1}}],["也支持句末注释",{"2":{"288":1}}],["编写轻雪函数推荐你使用vs",{"2":{"292":1}}],["编写逻辑部分",{"0":{"283":1}}],["编辑时的语法高亮可采取shell格式",{"2":{"288":1}}],["函数文件放在资源包的functions目录下",{"2":{"288":1}}],["函数文件",{"0":{"288":1}}],["函数列表",{"2":{"45":1}}],["属于资源包的一部分",{"2":{"287":1}}],["类似于minecraft的mcfunction",{"2":{"287":1}}],["类似于redis",{"2":{"91":1}}],["是可以相对引用的",{"2":{"294":1}}],["是轻雪的一个功能",{"2":{"287":1}}],["是否为协程可调用对象",{"2":{"259":1}}],["是否忽略警告",{"2":{"228":1}}],["是否忽略键不存在的错误",{"2":{"98":1}}],["是否包含顶层文件夹",{"2":{"224":1}}],["是否阻断后续优先级更低的匹配器",{"2":{"168":1}}],["是否递归监听子目录",{"2":{"153":1}}],["是否开启类型检查",{"2":{"65":1}}],["保存后轻雪会自动重载nonebot进程",{"2":{"286":1}}],["保持轻雪运行",{"2":{"21":1}}],["我们在src",{"2":{"286":1}}],["然后运行python",{"2":{"286":1}}],["使用通用日期简写",{"2":{"305":2}}],["使用此项目代表你已经同意以上协议",{"2":{"295":1}}],["使用",{"2":{"290":1}}],["使用新的task执行命令",{"2":{"289":1}}],["使用开发工具快速运行插件",{"2":{"286":1}}],["使用watchdog监控文件变化并重启bot",{"2":{"143":1}}],["方法2",{"0":{"286":1}}],["方法1",{"0":{"285":1}}],["用户管理liteyuki",{"0":{"301":1}}],["用户协议",{"0":{"295":1}}],["用observer的on",{"2":{"283":1}}],["用于统计bot接收到的消息",{"2":{"305":1}}],["用于结束当前已完成function的执行",{"2":{"292":1}}],["用于开发nonebot时进行文件系统变更重载",{"2":{"283":1}}],["用于存放内置插件",{"2":{"253":1}}],["用于获取和唯一标识",{"2":{"129":1}}],["用于进程间通信",{"2":{"58":1}}],["排除的文件扩展名",{"2":{"283":1}}],["因此插件主要是一些后台任务或者与聊天机器人的通信",{"2":{"283":1}}],["导入轻雪bot和日志",{"2":{"283":1}}],["导入文件系统事件",{"2":{"283":1}}],["导入文件系统观察器",{"2":{"283":1}}],["导入文件夹下多个插件",{"2":{"228":1}}],["导入逻辑部分",{"2":{"282":1}}],["例如npm",{"2":{"296":1}}],["例如nonebot插件中",{"2":{"270":1}}],["例如你在a中定义了templates",{"2":{"294":1}}],["例如html",{"2":{"293":1}}],["例如",{"2":{"288":2,"294":1,"303":1}}],["例如test",{"2":{"286":1,"288":1}}],["例如main",{"2":{"286":1}}],["例如watchdog",{"2":{"282":1,"285":1}}],["首先创建一个文件夹",{"2":{"282":1}}],["开始",{"0":{"281":1},"1":{"282":1,"283":1,"284":1,"285":1,"286":1}}],["示例",{"0":{"273":1,"290":1}}],["线程锁会自动保护共享内存的读写操作",{"2":{"272":1}}],["相比于普通进程通信",{"2":{"272":1}}],["相对路径",{"2":{"220":1}}],["简介",{"0":{"272":1,"280":1,"293":1},"1":{"281":1,"282":1,"283":1,"284":1,"285":1,"286":1,"294":1}}],["被动模式",{"2":{"270":1}}],["被动通道传递通道",{"2":{"73":1}}],["被动通道",{"2":{"71":1}}],["每隔0",{"2":{"290":1}}],["每行一个命令",{"2":{"288":1}}],["每次接收到字符串数据时都会运行",{"2":{"270":1}}],["每3秒发送一次消息",{"2":{"270":1}}],["每个配置文件给一个或一类服务提供配置",{"2":{"114":1}}],["创建入口文件",{"2":{"286":1}}],["创建插件",{"0":{"282":1}}],["创建子进程的同时会初始化一个被动通道和一个主动通道",{"2":{"270":1}}],["创建asyncio",{"2":{"128":1}}],["路径a",{"2":{"262":1}}],["转换路径为模块名",{"2":{"262":1}}],["可用",{"2":{"297":1}}],["可用参数",{"2":{"297":1}}],["可递归",{"2":{"289":1}}],["可以在配置文件中把auto",{"2":{"295":1}}],["可以在a的index",{"2":{"294":1}}],["可以在此基础上进行修改",{"2":{"293":1}}],["可以很高程度地扩展轻雪的功能",{"2":{"280":1}}],["可以是本地插件或是通过",{"2":{"227":1}}],["可调用对象",{"2":{"259":1}}],["判断是否为协程可调用对象",{"2":{"259":1}}],["并且应该在metadata",{"2":{"294":1}}],["并且不用修改源代码",{"2":{"293":1}}],["并在其中写入一些代码",{"2":{"286":1}}],["并在其中写入以下代码",{"2":{"286":1}}],["并在其中创建一个",{"2":{"282":1}}],["并遵循其许可进行修改",{"2":{"258":1}}],["并发运行异步函数",{"2":{"45":1}}],["一个",{"2":{"282":1}}],["一个键不要多次出现",{"2":{"114":1}}],["一些常用的工具类",{"2":{"258":1}}],["应在初始化时调用",{"2":{"257":1}}],["根据不同类型插件设置颜色",{"2":{"229":1}}],["加载",{"2":{"300":1}}],["加载资源包",{"0":{"294":1},"2":{"299":1}}],["加载插件",{"0":{"284":1},"1":{"285":1,"286":1}}],["加载插件加载器",{"2":{"19":1}}],["加载单个插件",{"2":{"227":1}}],["去头路径",{"2":{"225":1}}],["忽略的路径",{"2":{"224":1}}],["忽略私有函数和类",{"2":{"222":1}}],["模块名",{"2":{"262":1}}],["模块文件夹",{"2":{"224":1}}],["模块信息",{"2":{"222":1,"223":1}}],["源代码",{"2":{"223":1,"273":1}}],["+",{"2":{"223":2,"262":1}}],["+=",{"2":{"22":1,"69":1,"223":15}}],["语言包等",{"2":{"293":1}}],["语言",{"2":{"223":1,"224":1}}],["自定义选项title",{"2":{"223":1}}],["自动调用",{"2":{"24":1}}],["你在a包中定义了一个index",{"2":{"294":1}}],["你自己制作的资源包也应该遵循这个规则",{"2":{"294":1}}],["你也可以自己制作资源包",{"2":{"293":1}}],["你的插件代码",{"2":{"282":1}}],["你可以选择开启auto",{"2":{"295":1}}],["你可以自由使用",{"2":{"295":1}}],["你可以自定义一些信息",{"2":{"294":1}}],["你可以在多个线程中读写共享内存",{"2":{"272":1}}],["你可以通过storage模块实现内存共享通信",{"2":{"272":1}}],["你可在此自定义生成的markdown格式",{"2":{"223":1}}],["你应该使用其他储存方式",{"2":{"114":1}}],["生成文档",{"2":{"224":1}}],["生成模块的markdown",{"2":{"223":1}}],["生命周期函数",{"2":{"27":2,"28":2,"29":2,"30":2,"31":2,"32":2,"39":1,"46":2,"47":2,"49":2,"51":2}}],["生命周期管理",{"2":{"19":1}}],["文件内容为一系列的命令",{"2":{"288":1}}],["文件名以",{"2":{"288":1}}],["文件夹路径",{"2":{"228":1}}],["文件路径",{"2":{"222":1}}],["文件数据",{"2":{"220":1}}],["目标路径",{"2":{"219":1}}],["基础插件",{"0":{"296":1},"1":{"297":1,"298":1,"299":1,"300":1,"301":1}}],["基础路径",{"2":{"219":1}}],["基于socket的通道",{"2":{"85":1}}],["插件停用只能阻断传入响应",{"2":{"300":1}}],["插件管理",{"2":{"299":1,"300":1}}],["插件",{"0":{"299":1},"1":{"300":1}}],["插件信息",{"2":{"295":1}}],["插件描述",{"2":{"282":1}}],["插件版本",{"2":{"282":1}}],["插件类型",{"2":{"229":1,"282":1}}],["插件名称",{"2":{"227":1,"229":1,"282":1}}],["插件字典",{"2":{"186":1}}],["插件路径",{"2":{"142":1}}],["x26",{"2":{"174":1,"223":4}}],["x3c",{"2":{"20":4,"22":1,"160":5,"172":1,"223":8,"227":2,"229":2,"289":6,"303":2,"305":2}}],["505468b及以后的lagrange",{"2":{"297":1}}],["59",{"2":{"226":1,"230":1}}],["55",{"2":{"175":1}}],["52",{"2":{"171":1}}],["51",{"2":{"166":1}}],["优先级",{"2":{"168":1}}],["规则函数签名",{"2":{"176":1}}],["规则",{"2":{"168":1}}],["匹配器",{"2":{"168":1}}],["回复消息",{"2":{"164":1}}],["下午12",{"2":{"254":1}}],["下午11",{"2":{"226":1,"230":1}}],["下午10",{"2":{"161":1,"165":1,"166":1,"171":1,"175":1,"184":1,"256":1}}],["下午8",{"2":{"36":1}}],["⭕",{"2":{"160":1}}],["⚠️",{"2":{"160":1}}],["✅",{"2":{"160":1}}],["ℹ️信息",{"2":{"270":4}}],["ℹ️",{"2":{"160":1}}],["🐛",{"2":{"160":1}}],["在群聊启用",{"2":{"297":1}}],["在普通图片和markdown大图之间切换",{"2":{"297":1}}],["在b中定义了templates",{"2":{"294":1}}],["在设备上执行命令",{"2":{"289":1}}],["在发信器输出",{"2":{"288":1}}],["在配置文件中的liteyuki",{"2":{"285":1}}],["在任意进程中均可使用",{"2":{"273":1}}],["在子进程中",{"2":{"270":1}}],["在轻雪插件中",{"2":{"270":1}}],["在新线程中运行协程",{"2":{"261":1}}],["在语言加载完成后执行",{"2":{"160":1}}],["在主进程中运行",{"2":{"103":1}}],["31",{"2":{"254":1}}],["3",{"2":{"157":1,"228":1,"270":1}}],["300~500mb",{"2":{"9":1}}],["6",{"2":{"157":1}}],["测试版本号",{"2":{"157":1}}],["此模块为内置插件文件夹",{"2":{"253":1}}],["此模块为liteyuki的框架整体",{"2":{"156":1}}],["此模块用于注册观察者函数",{"2":{"143":1}}],["装饰一个函数在接收到数据后执行",{"2":{"153":1}}],["装饰器",{"2":{"69":1,"101":1,"153":1,"169":2}}],["返回true则执行回调函数",{"2":{"153":1}}],["事件过滤器",{"2":{"153":1}}],["事件循环",{"2":{"19":1}}],["监听目录们",{"2":{"153":1}}],["防抖函数",{"2":{"146":1}}],["防止获取空指针",{"2":{"109":1}}],["位置1为filesystemevent",{"2":{"144":1,"145":1}}],["启用",{"2":{"298":1,"300":1}}],["启用插件后",{"2":{"286":1}}],["启用该模块需要在配置文件中设置dev",{"2":{"143":1}}],["启动后控制台输出",{"2":{"270":1}}],["启动后钩子",{"2":{"53":1}}],["启动所有子进程",{"2":{"139":1}}],["启动所有进程",{"2":{"128":1}}],["启动指定子进程",{"2":{"138":1}}],["启动发布订阅接收器循环",{"2":{"103":1}}],["启动前钩子",{"2":{"52":1}}],["启动",{"2":{"44":1}}],["参考liteyuki",{"2":{"142":1}}],["参数列表",{"2":{"297":2}}],["参数为调用set",{"2":{"270":1}}],["参数",{"2":{"24":1,"296":1,"305":1}}],["运行环境的设备信息",{"2":{"295":1}}],["运行在主进程中",{"2":{"280":1}}],["运行协程",{"2":{"260":1}}],["运行处理函数",{"2":{"170":1}}],["运行插件",{"2":{"142":1}}],["运行订阅者接收函数",{"2":{"102":1}}],["上午12",{"2":{"231":1}}],["上午11",{"2":{"123":1}}],["上午6",{"2":{"187":1}}],["上午9",{"2":{"158":1}}],["上午5",{"2":{"141":1}}],["添加配置项",{"2":{"297":1}}],["添加sleep",{"2":{"290":1}}],["添加处理函数",{"2":{"169":1}}],["添加子进程",{"2":{"137":1}}],["添加进程",{"2":{"129":1}}],["检查进程是否存活",{"2":{"133":1}}],["终止进程并从进程字典中删除",{"2":{"131":1}}],["通过关键词搜索插件",{"2":{"299":1}}],["通过装饰器注册一个函数在接收到消息时运行",{"2":{"270":1}}],["通常是目录不存在或目录为空",{"2":{"228":1}}],["通常会默认传入chan",{"2":{"129":1}}],["通道实例",{"2":{"74":1,"75":1,"76":1,"77":1}}],["通道名称",{"2":{"74":1,"76":1}}],["通道传递通道",{"2":{"72":1}}],["通道id",{"2":{"65":1,"87":1}}],["项目目录下的配置文件优先",{"2":{"121":1}}],["项目目录下的配置文件优先级高于config目录下的配置文件",{"2":{"114":1}}],["项目目录下的config",{"2":{"121":1}}],["按照读取文件的优先级反向覆盖",{"2":{"120":1}}],["不带key返回配置项列表",{"2":{"297":1}}],["不包含任何隐私信息",{"2":{"295":1}}],["不含隐私部分",{"2":{"295":1}}],["不含插件数据",{"2":{"295":1}}],["不同adapter",{"2":{"291":1}}],["不递归",{"2":{"120":1}}],["不要出现过多的嵌套",{"2":{"114":1}}],["从一个标准的轻雪项目加载配置文件",{"2":{"121":1}}],["从目录下加载配置文件",{"2":{"120":1}}],["从指定文件加载配置项",{"2":{"119":1}}],["默认普通图片",{"2":{"297":1}}],["默认开启",{"2":{"295":1}}],["默认插件加载器",{"2":{"257":1}}],["默认执行扁平化选项",{"2":{"119":1,"120":1}}],["默认值",{"2":{"34":1,"35":1,"97":1}}],["8",{"2":{"116":1,"117":1,"118":1,"141":1,"161":1,"165":1,"166":1,"171":1,"175":1,"184":1,"187":1,"220":1,"222":1,"254":1,"255":1,"256":1}}],["但请注意甄别第三方插件的安全性",{"2":{"295":1}}],["但请保证以上三个字段",{"2":{"294":1}}],["但是请保留原作者信息",{"2":{"295":1}}],["但是更加轻量级并且线程安全",{"2":{"91":1}}],["但若出现非单function的情况",{"2":{"292":1}}],["但需单独起篇幅",{"2":{"287":1}}],["但也包含原有的键值对",{"2":{"115":1}}],["扁平化后的配置文件",{"2":{"115":1}}],["扁平化配置文件",{"2":{"115":1}}],["扁平化编写",{"2":{"114":1}}],["注意不要嵌套文件夹",{"2":{"294":1}}],["注意冲突时的优先级",{"2":{"114":1}}],["注册一个函数在nonebot启动后运行",{"2":{"270":1}}],["注册一个函数在轻雪启动后运行",{"2":{"270":1}}],["注册文件系统变化监听器",{"2":{"153":1}}],["注册重启后的函数",{"2":{"32":1,"51":1}}],["注册进程重启前的函数",{"2":{"31":1,"50":1}}],["注册进程停止前的函数",{"2":{"30":1,"48":1}}],["注册停止后的函数",{"2":{"29":1,"49":1}}],["注册启动时的函数",{"2":{"46":1,"47":1}}],["注册启动后的函数",{"2":{"28":1}}],["注册启动前的函数",{"2":{"27":1}}],["尽量不要冲突",{"2":{"114":1}}],["多配置文件编写原则",{"2":{"114":1}}],["引用计数",{"2":{"109":1}}],["共享内存通信",{"0":{"271":1},"1":{"272":1,"273":1}}],["共享内存对象",{"2":{"108":1}}],["共享内存模块",{"2":{"91":1}}],["若不存在则返回空",{"2":{"297":1}}],["若不存在则创建于config",{"2":{"297":1}}],["若存在则返回",{"2":{"297":1}}],["若存在则覆盖",{"2":{"297":1}}],["若存在则会覆盖",{"2":{"297":1}}],["若你不希望提供这些信息",{"2":{"295":1}}],["若没有metadata",{"2":{"294":1}}],["若要戳20s后停止",{"2":{"290":1}}],["若函数中启动了其他task",{"2":{"289":1}}],["若有子进程订阅则推送给子进程",{"2":{"103":1}}],["若为空",{"2":{"65":1}}],["订阅者接收消息时的回调",{"2":{"101":1}}],["频道",{"2":{"100":1,"101":1,"102":1}}],["发布消息",{"2":{"100":1}}],["发送函数为同步函数",{"2":{"66":1}}],["发送数据",{"2":{"66":1,"88":1}}],["删除键值对",{"2":{"98":1}}],["值",{"2":{"96":1,"97":1}}],["键值对",{"2":{"99":1}}],["键",{"2":{"96":1,"97":1,"98":1}}],["设置用户信息或打开属性设置菜单",{"2":{"301":1}}],["设置",{"2":{"298":1,"301":1}}],["设置共享内存",{"2":{"273":1}}],["设置后的插件名称",{"2":{"229":1}}],["设置插件名称颜色",{"2":{"229":1}}],["设置键值对",{"2":{"96":1}}],["设置通道实例",{"2":{"74":1,"75":1}}],["关闭通道",{"2":{"90":1}}],["关键字参数",{"2":{"24":1}}],["依赖关系",{"2":{"84":1}}],["子进程中获取通道直接导入进程全局单例即可",{"2":{"270":1}}],["子进程中导入单例active",{"2":{"270":1}}],["子进程名称",{"2":{"137":1,"138":1}}],["子进程函数关键字参数",{"2":{"137":1}}],["子进程函数参数",{"2":{"137":1}}],["子进程函数",{"2":{"137":1}}],["子进程订阅者接收函数",{"2":{"93":1}}],["子进程初始化时实例化",{"2":{"72":1}}],["子进程可用的主动和被动通道",{"2":{"70":1}}],["接收数据",{"2":{"89":1}}],["接收数据并执行函数",{"2":{"69":1}}],["接收函数",{"2":{"60":1}}],["会自动判断key版本",{"2":{"303":1}}],["会自动识别文件格式",{"2":{"119":1}}],["会话负载信息",{"2":{"295":1}}],["会触发最大递归深度限制",{"2":{"290":1}}],["会挂起等待",{"2":{"68":1}}],["会阻塞线程",{"2":{"67":1}}],["数据",{"2":{"66":1,"67":1,"68":1,"88":1,"89":1,"100":1,"102":1}}],["没有异步的必要",{"2":{"66":1}}],["过滤函数",{"2":{"63":1,"69":1}}],["轻雪天气liteyuki",{"0":{"303":1},"1":{"304":1}}],["轻雪文档",{"2":{"298":1}}],["轻雪命令liteyuki",{"0":{"297":1},"1":{"298":1}}],["轻雪会收集以下内容",{"2":{"295":1}}],["轻雪原版资源包请查看liteyukibot",{"2":{"293":1}}],["轻雪函数",{"0":{"287":1},"1":{"288":1,"289":1,"290":1,"291":1,"292":1},"2":{"287":1}}],["轻雪主进程不涉及聊天部分",{"2":{"283":1}}],["轻雪插件是轻雪内置的一部分功能",{"2":{"280":1}}],["轻雪框架提供了一个内存共享通信的接口",{"2":{"272":1}}],["轻雪抽象消息事件",{"2":{"163":1}}],["轻雪生命周期管理",{"2":{"44":1}}],["轻雪实例",{"2":{"33":1}}],["进程生命周期函数",{"2":{"48":2,"50":2}}],["进程函数关键字参数",{"2":{"129":1}}],["进程函数参数",{"2":{"129":1}}],["进程函数",{"2":{"42":1,"129":1}}],["进程名",{"2":{"23":1,"129":1}}],["|",{"0":{"45":1,"142":1,"163":1,"164":1,"179":1,"227":1},"2":{"39":1,"42":1,"45":2,"60":1,"63":1,"142":1,"163":1,"164":1,"227":1}}],["7",{"2":{"36":1,"123":1,"158":1,"226":1,"230":1,"231":1}}],["兼容键",{"2":{"35":1}}],["兼容旧版本",{"2":{"35":1}}],["获取用户信息",{"2":{"301":1}}],["获取唯一的轻雪bot实例",{"2":{"283":1}}],["获取共享内存",{"2":{"273":1}}],["获取主动通道",{"2":{"270":1}}],["获取被动通道",{"2":{"270":1}}],["获取函数和类",{"2":{"222":1}}],["获取相对路径",{"2":{"219":1}}],["获取已加载的插件",{"2":{"186":1}}],["获取所有键值对",{"2":{"99":1}}],["获取键值对",{"2":{"97":1}}],["获取通道实例们",{"2":{"77":1}}],["获取通道实例",{"2":{"76":1}}],["获取配置",{"2":{"34":1,"35":1}}],["获取轻雪实例",{"2":{"33":1}}],["未实现",{"2":{"29":1,"32":1,"55":1,"57":1}}],["延迟重启时间",{"2":{"22":1}}],["外部启动接口",{"2":{"20":1}}],["初始化通道",{"2":{"65":1,"87":1}}],["初始化日志",{"2":{"25":1}}],["初始化轻雪",{"2":{"24":1}}],["初始化轻雪实例",{"2":{"19":1}}],["初始化",{"2":{"19":1}}],["=none",{"2":{"23":1,"65":1,"69":1,"97":1,"163":2}}],["==",{"2":{"22":3,"77":1,"78":2,"79":2,"80":1,"103":1,"109":1,"110":2,"111":2,"112":2,"113":1,"159":1,"222":4,"223":2,"262":1}}],["=",{"0":{"22":1,"23":1,"34":1,"35":1,"65":1,"69":1,"97":1,"98":1,"106":1,"107":1,"119":1,"120":1,"121":1,"129":2,"153":2,"163":2,"173":3,"174":3,"179":1,"180":1,"181":1,"189":1,"190":1,"191":1,"192":1,"193":1,"195":1,"196":1,"197":1,"198":1,"199":1,"200":1,"201":1,"203":1,"204":1,"205":1,"206":1,"208":1,"209":1,"210":1,"211":1,"212":1,"214":1,"215":1,"216":1,"217":1,"218":1,"222":1,"223":2,"224":3,"228":1,"233":1,"234":1,"235":1,"236":1,"237":1,"239":1,"240":1,"241":1,"242":1,"243":1,"244":1,"245":1,"248":1,"249":1,"250":1,"251":1,"252":1},"2":{"19":7,"22":6,"23":2,"44":7,"45":1,"65":10,"66":1,"67":1,"68":2,"69":1,"74":1,"76":1,"77":1,"78":1,"79":1,"80":1,"83":2,"87":4,"95":6,"96":2,"97":2,"98":1,"99":1,"101":2,"103":1,"105":1,"110":3,"111":2,"112":1,"113":1,"115":2,"116":1,"117":1,"118":1,"119":1,"120":1,"121":1,"125":5,"127":3,"129":5,"131":1,"135":1,"136":1,"137":1,"142":4,"146":3,"153":2,"160":1,"163":10,"164":1,"168":5,"173":1,"178":1,"221":1,"222":17,"223":16,"224":13,"227":12,"228":6,"229":5,"259":1,"260":2,"262":1,"263":1,"270":5,"273":1,"282":1,"283":2}}],["常规操作",{"2":{"19":1}}],[">",{"2":{"19":1,"27":1,"31":1,"33":1,"34":1,"35":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"67":1,"68":1,"69":3,"76":1,"77":1,"96":1,"97":1,"98":1,"99":1,"100":1,"101":2,"115":1,"116":1,"117":1,"118":1,"119":1,"120":1,"121":1,"133":1,"136":1,"146":1,"153":2,"159":1,"169":2,"170":1,"173":1,"174":1,"179":2,"180":2,"181":1,"182":1,"183":1,"186":1,"219":1,"222":1,"223":3,"224":1,"227":1,"228":1,"229":3,"259":1,"262":1,"263":1,"303":2}}],["配置项",{"2":{"303":1}}],["配置项目",{"2":{"115":1}}],["配置了命令别名的命令可以使用别名代替原命令",{"2":{"296":1}}],["配置文件尽量扁平化",{"2":{"114":1}}],["配置值",{"2":{"34":1,"35":1}}],["配置键",{"2":{"34":1,"35":1}}],["配置",{"2":{"19":2,"298":1}}],["kill",{"2":{"131":1}}],["k",{"2":{"115":2,"223":2}}],["keyword",{"2":{"174":2}}],["keywords为城市名",{"2":{"303":2}}],["keywords",{"0":{"174":2},"2":{"174":5,"299":1,"303":2}}],["keyerror",{"2":{"98":1,"138":1}}],["keyvaluestore",{"0":{"94":1},"1":{"95":1,"96":1,"97":1,"98":1,"99":1,"100":1,"101":1,"102":1,"103":1},"2":{"105":1,"108":1}}],["keys",{"0":{"35":1},"2":{"35":3}}],["key",{"0":{"34":1,"35":1,"96":1,"97":1,"98":2},"2":{"34":3,"35":10,"96":6,"97":6,"98":11,"110":3,"111":3,"112":3,"115":2,"273":2,"297":4,"301":2,"303":1}}],["keyboardinterrupt",{"2":{"20":1}}],["keeping",{"2":{"21":1}}],["keep",{"0":{"21":1},"2":{"21":1}}],["kwargs=none",{"2":{"129":1}}],["kwargs",{"0":{"19":1,"24":1,"45":1,"54":1,"56":1,"129":1,"136":1,"137":1},"2":{"19":3,"24":2,"45":3,"54":2,"56":2,"129":4,"136":2,"137":3,"146":2,"263":2,"297":2}}],["kritor",{"2":{"14":1}}],["knowledge",{"2":{"275":1}}],["know",{"2":{"12":2}}],["qq群号",{"2":{"305":1}}],["qq",{"0":{"14":1},"2":{"13":1,"14":3}}],["question",{"2":{"12":1}}],["questions",{"0":{"10":1,"12":1,"13":1}}],["quotes",{"2":{"278":2}}],["quot",{"2":{"3":2,"278":1,"292":2,"297":2,"303":4}}],["js",{"2":{"14":1}}],["json",{"0":{"117":1},"2":{"0":2,"117":4,"119":2,"121":1}}],["join",{"0":{"130":1},"2":{"13":1,"22":1,"120":1,"130":2,"131":1,"221":1,"223":4,"224":1,"228":2,"262":2}}],["$",{"2":{"7":3}}],["guidelines",{"2":{"278":2}}],["guide",{"0":{"274":1},"1":{"275":1,"276":1,"277":1,"278":1,"279":1},"2":{"278":1}}],["girl",{"2":{"265":1}}],["gitmoji",{"2":{"278":2}}],["github",{"2":{"6":1,"7":1,"13":1,"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"65":1,"66":1,"67":1,"68":1,"69":1,"74":1,"75":1,"76":1,"77":1,"78":1,"79":1,"80":1,"83":1,"87":1,"88":1,"89":1,"90":1,"95":1,"96":1,"97":1,"98":1,"99":1,"100":1,"101":1,"102":1,"103":1,"105":1,"110":1,"111":1,"112":1,"113":1,"115":1,"116":1,"117":1,"118":1,"119":1,"120":1,"121":1,"125":1,"127":1,"128":1,"129":1,"130":1,"131":1,"132":1,"133":1,"135":1,"136":1,"137":1,"138":1,"139":1,"142":1,"146":1,"148":1,"149":1,"150":1,"151":1,"152":1,"153":1,"159":1,"160":1,"163":1,"164":1,"168":1,"169":1,"170":1,"172":1,"173":1,"174":1,"178":1,"179":1,"180":1,"181":1,"182":1,"183":1,"186":1,"219":1,"220":1,"221":1,"222":1,"223":1,"224":1,"227":1,"228":1,"229":1,"247":1,"255":1,"257":1,"259":1,"260":1,"261":1,"262":1,"263":1,"265":1}}],["git",{"2":{"6":2,"7":1,"9":2,"12":1}}],["g",{"2":{"229":1,"306":1}}],["group",{"2":{"297":9,"298":1,"299":2,"305":3,"306":1}}],["group775840726",{"2":{"13":1}}],["green>",{"2":{"160":1}}],["gather",{"2":{"45":1,"260":1}}],["getattr",{"2":{"259":1}}],["get",{"0":{"33":1,"34":1,"35":1,"76":1,"77":1,"79":1,"80":1,"97":1,"99":1,"105":1,"110":1,"113":1,"159":1,"186":1,"219":1,"221":1,"222":1},"2":{"23":2,"33":2,"34":3,"35":5,"65":2,"66":1,"68":1,"76":2,"77":2,"78":1,"79":4,"80":3,"96":1,"97":4,"98":1,"99":2,"105":1,"108":1,"109":1,"110":3,"112":1,"113":3,"142":1,"159":1,"160":2,"186":1,"219":1,"221":1,"222":5,"224":3,"225":1,"227":3,"228":1,"257":2,"260":1,"270":8,"273":1,"283":2,"297":3,"298":1,"301":2}}],["generator",{"2":{"267":1}}],["generate",{"0":{"223":1,"224":1},"2":{"0":1,"223":1,"224":3,"278":1}}],["generic",{"0":{"64":1},"1":{"65":1,"66":1,"67":1,"68":1,"69":1},"2":{"65":2,"66":1}}],["gensokyo",{"2":{"14":1}}],["globalkeyvaluestore",{"0":{"104":1},"1":{"105":1,"106":1,"107":1},"2":{"108":1}}],["global",{"2":{"19":1,"69":1,"299":2,"300":2}}],["gt",{"0":{"19":1,"27":1,"31":1,"33":1,"34":1,"35":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"67":1,"68":1,"69":1,"76":1,"77":1,"96":1,"97":1,"98":1,"99":1,"100":1,"101":1,"115":1,"116":1,"117":1,"118":1,"119":1,"120":1,"121":1,"133":1,"136":1,"153":1,"159":1,"169":1,"170":1,"173":1,"174":1,"179":1,"180":1,"181":1,"182":1,"183":1,"186":1,"219":1,"222":1,"223":1,"227":1,"228":1,"229":1,"259":1,"262":1,"263":1},"2":{"84":3,"115":1,"168":1,"262":1,"278":2,"296":1,"297":7,"299":10,"301":2}}],["google",{"2":{"278":2}}],["go",{"2":{"14":2,"269":1}}],["\`",{"2":{"3":1,"223":14}}],["validate",{"2":{"66":1}}],["value=ast",{"2":{"222":1}}],["valueerror",{"2":{"65":2,"74":1}}],["value2",{"2":{"2":1}}],["value1",{"2":{"2":1}}],["value",{"0":{"96":1,"205":1},"2":{"2":1,"3":3,"96":5,"111":3,"115":3,"222":6,"223":3,"273":2,"297":2,"301":1}}],["var=value",{"2":{"289":1}}],["var2=value2",{"2":{"289":1}}],["var1=value1>",{"2":{"289":1}}],["var",{"0":{"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"59":1,"60":1,"61":1,"62":1,"63":1,"70":1,"71":1,"72":1,"73":1,"92":1,"93":1,"108":1,"109":1,"144":1,"145":1,"157":1,"176":1,"225":1},"2":{"223":2}}],["version=",{"2":{"282":1}}],["version",{"0":{"157":1},"2":{"9":1,"294":1}}],["venv",{"2":{"6":4}}],["v",{"2":{"7":2,"115":2,"223":2}}],["vitepress",{"2":{"278":1}}],["view",{"2":{"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"65":1,"66":1,"67":1,"68":1,"69":1,"74":1,"75":1,"76":1,"77":1,"78":1,"79":1,"80":1,"83":1,"87":1,"88":1,"89":1,"90":1,"95":1,"96":1,"97":1,"98":1,"99":1,"100":1,"101":1,"102":1,"103":1,"105":1,"110":1,"111":1,"112":1,"113":1,"115":1,"116":1,"117":1,"118":1,"119":1,"120":1,"121":1,"125":1,"127":1,"128":1,"129":1,"130":1,"131":1,"132":1,"133":1,"135":1,"136":1,"137":1,"138":1,"139":1,"142":1,"146":1,"148":1,"149":1,"150":1,"151":1,"152":1,"153":1,"159":1,"160":1,"163":1,"164":1,"168":1,"169":1,"170":1,"172":1,"173":1,"174":1,"178":1,"179":1,"180":1,"181":1,"182":1,"183":1,"186":1,"219":1,"220":1,"221":1,"222":1,"223":1,"224":1,"227":1,"228":1,"229":1,"247":1,"255":1,"257":1,"259":1,"260":1,"261":1,"262":1,"263":1}}],["virtual",{"2":{"6":3,"12":1}}],["visit",{"2":{"3":1}}],["v11协议api",{"2":{"297":2}}],["v11",{"2":{"3":1,"291":1}}],["2s戳两次",{"2":{"290":1}}],["22",{"2":{"254":1}}],["27",{"2":{"123":1,"158":1}}],["24",{"2":{"36":1,"231":1}}],["23",{"2":{"36":1,"187":1,"226":1,"230":1}}],["20代替空格",{"2":{"297":1}}],["20和end",{"2":{"290":1}}],["2024",{"2":{"36":2,"123":2,"141":2,"158":2,"161":2,"165":2,"166":2,"171":2,"175":2,"184":2,"187":2,"226":2,"230":2,"231":2,"254":2,"256":2}}],["2020",{"2":{"36":1,"123":1,"141":1,"158":1,"161":1,"165":1,"166":1,"171":1,"175":1,"184":1,"187":1,"226":1,"230":1,"231":1,"254":1,"256":1}}],["20216",{"2":{"1":1,"3":1,"7":4}}],["20",{"2":{"9":1}}],["2019+",{"2":{"9":1}}],["2",{"2":{"2":1,"290":1,"294":1}}],["object",{"2":{"269":1}}],["observer",{"0":{"143":1},"1":{"144":1,"145":1,"146":1,"147":1,"148":1,"149":1,"150":1,"151":1,"152":1,"153":1},"2":{"153":1,"283":2}}],["occurred",{"2":{"260":1}}],["occupy",{"2":{"9":1}}],["overall",{"2":{"156":1}}],["os",{"2":{"119":1,"120":3,"219":1,"220":4,"221":2,"222":1,"224":2,"228":9,"283":2}}],["outlook",{"2":{"36":1,"123":1,"141":1,"158":1,"161":1,"165":1,"166":1,"171":1,"175":1,"184":1,"187":1,"226":1,"230":1,"231":1,"254":1,"256":1}}],["output",{"0":{"224":1},"2":{"2":1,"224":5}}],["open",{"2":{"22":1,"116":1,"117":1,"118":1,"220":1,"222":1,"279":1}}],["openshamrock",{"2":{"14":1}}],["option",{"2":{"296":1}}],["optional",{"0":{"23":1,"65":1,"69":1,"97":2,"163":2,"227":1,"252":1},"2":{"22":1,"23":2,"34":1,"35":1,"65":1,"69":3,"95":2,"97":3,"163":2,"227":1}}],["opt",{"2":{"20":2,"227":3}}],["ordinary",{"2":{"278":1}}],["order",{"2":{"224":1}}],["organization",{"2":{"275":1}}],["or",{"2":{"4":1,"9":1,"12":2,"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"65":1,"66":1,"67":1,"68":1,"69":1,"74":1,"75":1,"76":1,"77":1,"78":1,"79":1,"80":1,"83":1,"87":1,"88":1,"89":1,"90":1,"95":1,"96":1,"97":1,"98":1,"99":1,"100":1,"101":1,"102":1,"103":1,"105":1,"110":1,"111":1,"112":1,"113":1,"115":1,"116":1,"117":1,"118":1,"119":1,"120":1,"121":1,"125":1,"127":1,"128":1,"129":1,"130":1,"131":1,"132":1,"133":1,"135":1,"136":1,"137":1,"138":1,"139":1,"142":1,"146":1,"148":1,"149":1,"150":1,"151":1,"152":1,"153":1,"159":1,"160":1,"163":1,"164":1,"168":1,"169":1,"170":1,"172":1,"173":1,"174":1,"178":1,"179":3,"180":1,"181":1,"182":1,"183":1,"186":1,"219":1,"220":1,"221":1,"222":5,"223":1,"224":1,"227":1,"228":1,"229":1,"247":1,"255":1,"257":1,"259":1,"260":1,"261":1,"262":1,"263":1,"278":3}}],["official",{"2":{"265":2,"267":1}}],["of",{"0":{"3":1},"2":{"7":1,"9":1,"12":3,"15":1,"66":1,"74":1,"156":1,"227":1,"267":1,"275":4,"278":5}}],["others",{"0":{"267":1}}],["other",{"0":{"2":1,"4":1,"10":1,"13":1,"179":1,"180":1},"2":{"2":1,"3":1,"9":2,"15":1,"179":2,"180":2,"269":3}}],["one",{"2":{"12":1,"270":1}}],["onebotv11",{"2":{"14":4}}],["onebot",{"0":{"3":1},"2":{"2":2,"3":2,"4":1,"12":2,"14":1,"291":1,"297":1}}],["only",{"2":{"0":1,"12":1,"69":1,"270":1}}],["on",{"0":{"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"59":1,"60":1,"69":1,"78":1,"79":1,"80":1,"92":1,"93":1,"101":3,"110":1,"111":1,"112":1,"113":1,"148":1,"149":1,"150":1,"151":1,"152":1,"153":1,"171":1,"173":1,"174":1},"1":{"172":1,"173":1,"174":1},"2":{"0":1,"3":1,"6":1,"9":3,"12":1,"13":1,"14":4,"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":3,"28":3,"29":3,"30":3,"31":3,"32":3,"33":1,"34":1,"35":1,"44":1,"45":1,"46":2,"47":2,"48":2,"49":2,"50":2,"51":2,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"60":2,"65":3,"66":1,"67":1,"68":1,"69":5,"74":1,"75":1,"76":1,"77":2,"78":4,"79":4,"80":3,"83":1,"87":1,"88":1,"89":1,"90":1,"92":1,"93":1,"95":1,"96":1,"97":1,"98":1,"99":1,"100":1,"101":12,"102":2,"103":1,"105":1,"109":1,"110":4,"111":4,"112":4,"113":3,"115":1,"116":1,"117":1,"118":1,"119":1,"120":1,"121":1,"125":1,"127":1,"128":1,"129":1,"130":1,"131":1,"132":1,"133":1,"135":1,"136":1,"137":1,"138":1,"139":1,"142":1,"146":1,"148":3,"149":3,"150":3,"151":3,"152":3,"153":3,"159":1,"160":1,"163":1,"164":1,"168":1,"169":1,"170":1,"171":1,"172":1,"173":2,"174":5,"178":1,"179":1,"180":1,"181":1,"182":1,"183":1,"186":1,"219":1,"220":1,"221":1,"222":1,"223":1,"224":1,"227":1,"228":1,"229":1,"247":1,"254":1,"255":2,"257":1,"259":1,"260":1,"261":1,"262":1,"263":1,"265":1,"270":6,"278":1,"283":1}}],["45m",{"2":{"305":2}}],["44",{"2":{"165":1}}],["47",{"2":{"161":1,"184":1}}],["41",{"2":{"7":1}}],["40",{"2":{"7":1}}],["4",{"2":{"1":1}}],["utility",{"2":{"277":1}}],["utils",{"0":{"258":1},"1":{"259":1,"260":1,"261":1,"262":1,"263":1},"2":{"277":1}}],["utf",{"2":{"116":1,"117":1,"118":1,"220":1,"222":1}}],["unload",{"2":{"299":1,"300":1}}],["understand",{"2":{"278":1}}],["underlying",{"2":{"16":1}}],["unit",{"2":{"277":1}}],["uninstall",{"2":{"12":2,"299":1,"300":1}}],["until",{"2":{"260":2}}],["unclassified",{"0":{"236":2,"242":1}}],["unparse",{"2":{"222":10}}],["unsupported",{"2":{"119":1}}],["ubuntu",{"2":{"9":1}}],["usage",{"0":{"241":1},"2":{"275":1}}],["using",{"2":{"7":1,"12":2}}],["users",{"2":{"278":1}}],["user",{"0":{"163":1,"301":1},"2":{"163":3,"164":2,"183":1,"278":1,"290":3}}],["used",{"2":{"69":1,"253":1,"270":1,"278":1}}],["use",{"0":{"8":1},"2":{"1":1,"3":2,"4":2,"6":4,"7":1,"8":1,"9":2,"12":6,"14":1,"35":1,"227":1,"276":1,"278":2}}],["updates",{"2":{"1":1}}],["update",{"2":{"1":2,"2":2,"9":2,"12":1,"119":3,"120":1,"121":1,"297":1,"298":1,"299":1,"300":1}}],["feat",{"2":{"278":1}}],["features",{"2":{"278":2}}],["feature",{"2":{"278":1}}],["flake8",{"2":{"276":1}}],["flat",{"0":{"115":1},"2":{"115":2,"116":1,"117":1,"118":1}}],["flag",{"2":{"44":1}}],["f",{"2":{"22":1,"23":2,"35":1,"65":4,"66":1,"74":2,"115":1,"116":1,"117":1,"118":1,"119":2,"120":1,"128":1,"131":2,"133":1,"138":1,"139":1,"220":2,"223":19,"224":1,"227":5,"228":9,"229":1,"260":1,"270":2,"283":1}}],["friend",{"2":{"290":2}}],["front",{"0":{"223":1},"2":{"223":5,"224":3,"275":1}}],["from",{"0":{"116":1,"117":1,"118":1,"119":1,"120":1},"2":{"67":1,"116":3,"117":3,"118":3,"119":4,"120":2,"121":2,"269":1,"270":4,"282":1,"283":3}}],["framework",{"2":{"16":1,"156":1,"269":1,"275":1,"277":3}}],["frequently",{"0":{"12":1}}],["future",{"2":{"260":1}}],["func=none",{"2":{"153":1}}],["func=lambda",{"2":{"77":1,"78":2,"79":2,"80":1,"270":1}}],["funcs",{"0":{"45":2,"92":1,"93":1,"102":1},"2":{"44":6,"45":4,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":2,"53":2,"54":2,"55":2,"56":2,"57":2,"69":1,"101":6,"102":2,"103":1}}],["func",{"0":{"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":4,"28":3,"29":3,"30":3,"31":4,"32":3,"33":1,"34":1,"35":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"44":1,"45":3,"46":4,"47":4,"48":4,"49":4,"50":4,"51":4,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"59":1,"60":1,"61":1,"62":1,"63":1,"65":1,"66":1,"67":1,"68":1,"69":3,"74":1,"75":1,"76":1,"77":1,"78":1,"79":1,"80":1,"83":1,"87":1,"88":1,"89":1,"90":1,"95":1,"96":1,"97":1,"98":1,"99":1,"100":1,"101":3,"102":1,"103":1,"105":1,"110":1,"111":1,"112":1,"113":1,"115":1,"116":1,"117":1,"118":1,"119":1,"120":1,"121":1,"125":1,"127":1,"128":1,"129":2,"130":1,"131":1,"132":1,"133":1,"135":1,"136":1,"137":2,"138":1,"139":1,"142":1,"144":1,"145":1,"146":1,"148":1,"149":1,"150":1,"151":1,"152":1,"153":4,"159":1,"160":1,"163":1,"164":1,"168":1,"169":1,"170":1,"172":1,"173":1,"174":1,"178":1,"179":1,"180":1,"181":1,"182":1,"183":1,"186":1,"219":1,"220":1,"221":1,"222":1,"223":1,"224":1,"227":1,"228":1,"229":1,"247":1,"255":1,"257":1,"259":1,"260":1,"261":1,"262":1,"263":2},"2":{"27":7,"28":6,"29":6,"30":6,"31":7,"32":6,"39":2,"42":2,"44":6,"45":8,"46":8,"47":8,"48":8,"49":8,"50":8,"51":8,"60":2,"63":2,"65":2,"69":20,"92":1,"93":1,"101":8,"102":2,"129":1,"136":2,"137":3,"146":2,"153":7,"222":2,"223":9,"259":2,"263":4,"289":1}}],["function实现语法高亮",{"2":{"292":1}}],["functiondef",{"2":{"222":3}}],["functioninfo",{"0":{"194":1,"210":1,"215":1},"1":{"195":1,"196":1,"197":1,"198":1,"199":1,"200":1,"201":1},"2":{"222":2}}],["functions=",{"2":{"222":1}}],["functions",{"0":{"215":1},"2":{"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"222":1,"223":1}}],["function",{"0":{"189":2},"2":{"9":2,"12":2,"222":3,"270":1,"287":1,"289":1,"290":2,"297":3}}],["full",{"2":{"12":1,"270":1}}],["familiar",{"2":{"275":2}}],["failed",{"2":{"12":2,"227":1}}],["faq",{"0":{"11":1},"1":{"12":1,"13":1,"14":1,"15":1,"16":1}}],["false时例如docs",{"2":{"224":1}}],["false",{"0":{"119":1,"120":1,"121":1,"173":1,"174":1,"224":1},"2":{"2":4,"65":2,"87":1,"95":2,"259":1}}],["follow",{"2":{"278":4}}],["following",{"2":{"2":1,"275":1,"278":2}}],["folder",{"0":{"221":1,"224":1},"2":{"221":2,"224":4,"225":1,"253":1}}],["found",{"2":{"66":1,"74":1,"119":1,"120":1,"131":1,"133":1,"138":1}}],["font",{"2":{"16":1}}],["fonts",{"2":{"1":1}}],["fork",{"2":{"275":1}}],["formatting",{"2":{"276":1}}],["format=get",{"2":{"160":1}}],["formats",{"2":{"120":1}}],["format",{"0":{"159":1,"229":1},"2":{"119":1,"159":3,"160":1,"227":2,"229":1,"278":1}}],["for",{"0":{"10":1},"2":{"1":1,"3":2,"12":2,"14":1,"23":1,"35":1,"45":1,"65":1,"75":1,"102":1,"115":2,"119":1,"120":2,"128":1,"130":1,"132":1,"139":1,"153":1,"170":1,"172":1,"174":1,"220":1,"221":2,"222":12,"223":9,"224":3,"228":2,"257":2,"260":2,"269":1,"270":1,"276":1,"278":5,"282":1}}],["finally",{"0":{"279":1}}],["field",{"2":{"278":3}}],["fields",{"2":{"0":1,"3":2}}],["fixing",{"2":{"278":2}}],["filter=lambda",{"2":{"283":1}}],["filter",{"0":{"61":1,"62":1,"63":1,"69":2,"145":1,"153":2},"2":{"63":2,"69":8,"77":1,"78":2,"79":2,"80":1,"153":5,"270":1}}],["file",{"0":{"116":1,"117":1,"118":1,"153":1,"220":1,"221":1,"222":1},"2":{"3":1,"12":1,"36":1,"116":4,"117":4,"118":4,"119":12,"120":3,"123":1,"141":1,"153":1,"158":1,"161":1,"165":1,"166":1,"171":1,"175":1,"184":1,"187":1,"220":3,"221":7,"222":8,"224":6,"226":1,"230":1,"231":1,"254":1,"256":1,"277":1,"283":3}}],["filesystemeventhandler",{"0":{"147":1},"1":{"148":1,"149":1,"150":1,"151":1,"152":1}}],["filesystemevent",{"2":{"144":1,"145":1,"153":1,"283":2}}],["files",{"0":{"119":2,"220":1},"2":{"0":4,"119":3,"120":1,"121":1,"220":1,"221":2,"224":1}}],["fill",{"2":{"1":1,"3":1,"278":1}}],["first",{"2":{"0":1,"12":1,"222":2,"275":1}}],["b包也定义了一个index",{"2":{"294":1}}],["bilingual",{"2":{"278":1}}],["bind",{"2":{"304":1}}],["binding",{"2":{"1":1}}],["bin",{"2":{"6":1}}],["brief",{"2":{"278":1}}],["branch",{"2":{"275":4}}],["break",{"2":{"172":1}}],["browser",{"2":{"12":1}}],["black",{"2":{"276":1}}],["block",{"0":{"168":1,"173":1,"174":1},"2":{"168":4,"173":2,"174":2}}],["blue>",{"2":{"160":1}}],["b",{"2":{"115":1,"224":2,"262":2,"306":1}}],["body",{"2":{"222":1}}],["bool=false",{"2":{"119":1,"120":1,"121":1,"173":1,"174":1,"224":1}}],["bool=true",{"2":{"98":1,"153":1,"222":1,"228":1}}],["bool",{"0":{"65":1,"98":1,"119":1,"120":1,"121":1,"133":1,"153":1,"168":1,"173":1,"174":1,"181":1,"182":1,"183":1,"201":1,"222":1,"224":1,"228":1,"259":1},"2":{"61":1,"62":1,"65":1,"133":1,"145":1,"168":1,"176":1,"179":1,"180":1,"181":1,"182":1,"183":1,"259":2}}],["both",{"2":{"277":1}}],["bot",{"0":{"17":1,"33":1,"36":1,"163":1,"265":1},"1":{"18":1,"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"43":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1},"2":{"1":1,"2":1,"6":1,"9":1,"12":2,"15":1,"19":2,"33":4,"34":1,"35":4,"142":2,"163":3,"164":2,"265":3,"266":1,"267":1,"270":4,"277":2,"283":2,"288":1,"297":1,"305":3,"306":1}}],["bugs",{"2":{"278":2}}],["bug",{"2":{"278":2}}],["business",{"2":{"277":1}}],["built",{"2":{"253":2,"277":1}}],["build",{"2":{"7":2}}],["but",{"2":{"3":1,"12":1,"270":1,"278":1}}],["bases",{"2":{"222":1}}],["base",{"0":{"219":1},"2":{"219":3,"222":2}}],["basemodel",{"0":{"194":1,"202":1,"207":1,"213":1,"238":1,"246":1},"1":{"195":1,"196":1,"197":1,"198":1,"199":1,"200":1,"201":1,"203":1,"204":1,"205":1,"206":1,"208":1,"209":1,"210":1,"211":1,"212":1,"214":1,"215":1,"216":1,"217":1,"218":1,"239":1,"240":1,"241":1,"242":1,"243":1,"244":1,"245":1,"247":1,"248":1,"249":1,"250":1,"251":1,"252":1}}],["baseexception",{"0":{"155":1}}],["based",{"2":{"14":4,"265":1}}],["bash",{"2":{"6":1}}],["basically",{"2":{"3":1}}],["basic",{"0":{"1":1},"2":{"275":2}}],["better",{"2":{"279":1}}],["between",{"2":{"12":1}}],["best",{"0":{"264":1},"1":{"265":1,"266":1,"267":1}}],["before",{"0":{"27":1,"30":1,"31":1,"46":1,"48":1,"50":1,"52":1,"54":1,"56":1},"2":{"27":2,"30":2,"31":2,"44":3,"46":2,"48":2,"50":2,"52":3,"54":3,"56":3}}],["below",{"2":{"12":1}}],["been",{"2":{"12":1}}],["be",{"2":{"3":1,"9":1,"12":2,"35":1,"66":1,"69":1,"74":1,"148":1,"270":1,"278":2}}],["by",{"2":{"3":1,"4":1,"12":2,"270":1,"276":1}}],["14s",{"2":{"305":2}}],["1h",{"2":{"305":2}}],["1d",{"2":{"305":2}}],["1145141919810",{"2":{"297":1}}],["11",{"2":{"256":1}}],["19",{"2":{"161":1,"165":1,"166":1,"171":1,"175":1,"184":1,"187":1}}],["1919810",{"2":{"1":1}}],["10",{"2":{"157":1,"297":1}}],["10+",{"2":{"6":1,"9":1}}],["18",{"2":{"141":1}}],["12",{"2":{"123":1,"158":1}}],["127",{"2":{"1":1,"3":1}}],["1gb",{"2":{"9":2}}],["1vcpu",{"2":{"9":1}}],["1",{"2":{"1":1,"2":1,"3":1,"21":1,"22":2,"23":2,"69":1,"78":2,"79":2,"80":1,"103":2,"110":3,"111":2,"112":1,"113":1,"115":1,"147":1,"148":1,"223":6,"224":1,"227":4,"262":2,"282":1,"294":2}}],["03",{"2":{"270":2}}],["0000",{"2":{"270":3}}],["00",{"2":{"270":18}}],["02",{"2":{"231":1,"256":1}}],["04",{"2":{"141":1}}],["04+",{"2":{"9":1}}],["0",{"0":{"22":1,"173":1,"174":1},"2":{"1":2,"3":2,"19":1,"21":1,"22":2,"44":1,"77":1,"78":2,"79":2,"80":1,"103":1,"109":2,"110":2,"111":2,"112":2,"113":1,"168":1,"222":1,"223":7,"282":2,"290":1,"294":2}}],["html中用",{"2":{"294":1}}],["html",{"2":{"294":1}}],["html文件会被覆盖",{"2":{"294":1}}],["html文件",{"2":{"294":2}}],["https",{"2":{"6":1,"7":1}}],["hints",{"2":{"278":1}}],["hint",{"2":{"65":1,"222":1,"223":1}}],["harmless",{"2":{"278":1}}],["handlers",{"2":{"168":1,"169":1,"170":1}}],["handler",{"0":{"178":1},"2":{"153":3,"169":4,"170":2,"178":3,"179":4,"180":4,"181":2}}],["handle",{"0":{"169":1},"2":{"12":1,"169":1,"254":1,"255":1}}],["hash",{"0":{"247":1},"2":{"247":2}}],["has",{"2":{"12":1,"278":1}}],["have",{"2":{"3":1,"7":1,"9":1,"12":3,"13":1}}],["homepage",{"0":{"244":1}}],["how",{"0":{"275":1},"1":{"276":1},"2":{"12":2}}],["host",{"2":{"1":1}}],["hello",{"2":{"288":5,"297":1}}],["help",{"2":{"12":2,"299":1,"300":1}}],["here",{"2":{"3":2}}],["header",{"2":{"1":1,"12":1}}],["echo",{"2":{"288":3}}],["easy",{"2":{"278":1}}],["each",{"2":{"278":2}}],["editing",{"2":{"278":1}}],["etc",{"2":{"278":1}}],["e",{"2":{"98":2,"227":1,"229":1,"260":2}}],["emoji",{"2":{"278":1}}],["emsp",{"2":{"223":4}}],["email",{"2":{"36":1,"123":1,"141":1,"158":1,"161":1,"165":1,"166":1,"171":1,"175":1,"184":1,"187":1,"226":1,"230":1,"231":1,"254":1,"256":1}}],["empty",{"0":{"173":1,"174":1,"182":1},"2":{"1":1,"182":1,"227":1,"228":1}}],["else",{"2":{"22":1,"23":1,"33":1,"45":1,"65":1,"69":2,"74":1,"76":1,"77":1,"96":1,"97":1,"98":1,"99":1,"101":2,"116":1,"117":1,"118":1,"159":1,"160":5,"172":1,"222":9,"223":10,"224":2,"227":2,"260":1,"262":1}}],["elif",{"2":{"22":2,"65":1,"69":1,"119":4,"222":5,"227":2,"228":1}}],["event装饰器监听文件系统事件",{"2":{"283":1}}],["events",{"2":{"283":1}}],["eventhandler",{"0":{"169":2},"2":{"168":1,"169":4}}],["event",{"0":{"81":1,"82":1,"148":1,"149":1,"150":1,"151":1,"152":2,"153":2,"161":1,"170":1,"181":1,"182":1,"183":1,"255":1},"1":{"82":1,"83":2,"162":1,"163":1,"164":1},"2":{"19":4,"21":1,"26":1,"84":1,"148":1,"149":2,"150":2,"151":2,"152":3,"153":8,"161":1,"164":2,"170":4,"174":2,"179":3,"180":3,"181":2,"182":1,"183":2,"255":3,"260":2,"278":1,"283":8}}],["every",{"2":{"1":1}}],["errors=true",{"2":{"224":1}}],["errors",{"2":{"12":1}}],["error",{"0":{"98":1},"2":{"12":1,"98":3,"160":2,"260":1}}],["extra",{"0":{"245":1}}],["extensions",{"2":{"283":2}}],["extend",{"2":{"142":1}}],["external",{"2":{"1":1}}],["exclude",{"2":{"283":2}}],["exc",{"2":{"170":1,"227":1}}],["exception模块包含了liteyuki运行中的所有错误",{"2":{"154":1}}],["exception",{"0":{"154":1},"1":{"155":1},"2":{"21":1,"170":1,"227":1,"260":2}}],["except",{"2":{"20":1,"21":1,"98":1,"170":1,"227":1,"260":2}}],["executor",{"2":{"68":1}}],["executable",{"2":{"9":1,"12":1,"22":3}}],["exist",{"2":{"228":1}}],["exists",{"2":{"65":2,"74":1,"119":1,"120":1,"220":1,"228":2}}],["exit",{"2":{"22":1}}],["exiting",{"2":{"21":1}}],["example",{"0":{"3":1,"270":1},"2":{"12":2}}],["enclosed",{"2":{"278":1}}],["encoding=",{"2":{"116":1,"117":1,"118":1,"220":1,"222":1}}],["encountered",{"2":{"15":1}}],["english",{"2":{"277":1}}],["en",{"2":{"277":1}}],["entry",{"2":{"277":1}}],["enter",{"2":{"12":1}}],["end",{"2":{"275":1,"289":1}}],["endswith",{"2":{"119":3,"120":1,"221":1,"228":1,"283":1}}],["enum",{"0":{"188":1,"232":1},"1":{"189":1,"190":1,"191":1,"192":1,"193":1,"233":1,"234":1,"235":1,"236":1,"237":1}}],["enumerate",{"2":{"172":1}}],["enforcing",{"2":{"65":1}}],["environment",{"2":{"6":4}}],["environments",{"2":{"3":1,"9":1,"12":1}}],["ensure",{"2":{"1":1,"260":1,"275":1,"278":7}}],["enable",{"2":{"1":1,"276":1,"297":2,"298":1,"299":2,"300":2}}],["msg",{"2":{"297":1}}],["mcfunction",{"2":{"288":2}}],["mkdir",{"2":{"224":1}}],["mkdoc",{"0":{"187":1},"1":{"188":1,"189":1,"190":1,"191":1,"192":1,"193":1,"194":1,"195":1,"196":1,"197":1,"198":1,"199":1,"200":1,"201":1,"202":1,"203":1,"204":1,"205":1,"206":1,"207":1,"208":1,"209":1,"210":1,"211":1,"212":1,"213":1,"214":1,"215":1,"216":1,"217":1,"218":1,"219":1,"220":1,"221":1,"222":1,"223":1,"224":1,"225":1},"2":{"187":1}}],["md",{"2":{"224":13}}],["mix",{"2":{"278":1}}],["misans",{"2":{"16":1}}],["minecraftonebot",{"2":{"15":1}}],["minecraft",{"0":{"15":1},"2":{"15":1}}],["minimum",{"2":{"9":1}}],["must",{"2":{"66":1,"74":1,"148":1}}],["much",{"2":{"12":1,"278":3}}],["multiple",{"2":{"0":1,"9":1,"278":1}}],["mypy",{"2":{"276":1}}],["my",{"2":{"12":1}}],["m",{"2":{"6":1,"9":1,"172":2,"229":1,"306":1}}],["member",{"2":{"297":1}}],["memory",{"0":{"108":1},"2":{"9":1,"95":3,"109":1,"110":3,"111":3,"112":3,"113":2,"129":1,"269":1,"273":3}}],["meta",{"2":{"227":4,"282":1}}],["metadata",{"0":{"252":1},"2":{"227":13}}],["method",{"0":{"190":2,"191":1,"192":1},"2":{"222":5,"223":13}}],["methods=",{"2":{"222":1}}],["methods",{"0":{"210":1},"2":{"3":1,"222":1,"223":1}}],["means",{"2":{"12":1}}],["message=",{"2":{"164":1,"297":1}}],["message=message",{"2":{"164":1}}],["messageevent",{"0":{"162":1,"163":1,"170":1,"181":1,"182":1,"183":1,"255":1},"1":{"163":1,"164":1},"2":{"163":1,"164":1,"170":1,"174":1,"176":1,"179":1,"180":1,"181":1,"182":1,"183":1,"255":1}}],["messages",{"2":{"12":2,"269":2}}],["message",{"0":{"161":1,"163":3,"164":1,"165":1,"166":1,"171":1,"173":1,"175":1,"184":1},"1":{"162":1,"163":1,"164":1,"167":1,"168":1,"169":1,"170":1,"172":1,"173":1,"174":1,"176":1,"177":1,"178":1,"179":1,"180":1,"181":1,"182":1,"183":1},"2":{"4":1,"12":1,"163":9,"164":5,"173":1,"174":2,"255":1,"278":5,"305":1,"306":1}}],["merge",{"2":{"0":1,"275":1}}],["map",{"2":{"267":1}}],["maplemono",{"2":{"16":1}}],["mark",{"2":{"278":1}}],["markdown",{"0":{"223":1},"2":{"223":2,"224":1,"275":1,"278":1}}],["marsho",{"2":{"265":1}}],["match",{"2":{"229":1}}],["matcher",{"0":{"166":1,"167":1,"172":3,"173":1,"174":1},"1":{"167":1,"168":2,"169":2,"170":2},"2":{"166":1,"172":9,"173":6,"174":1}}],["matter=none",{"2":{"223":1}}],["matter",{"0":{"223":1},"2":{"223":4,"224":3}}],["makedirs",{"2":{"220":1}}],["make",{"2":{"12":2,"279":1}}],["many",{"2":{"12":1}}],["manager",{"0":{"123":1,"230":1},"1":{"124":1,"125":1,"126":1,"127":1,"128":1,"129":1,"130":1,"131":1,"132":1,"133":1,"134":1,"135":1,"136":1,"137":1,"138":1,"139":1},"2":{"19":1,"20":1,"22":1,"23":1,"26":1,"123":1,"230":1}}],["manage",{"2":{"8":1}}],["management",{"2":{"8":1,"267":1}}],["manually",{"2":{"2":1,"65":1}}],["maintainer",{"2":{"275":1}}],["mainprocess",{"2":{"269":1}}],["main",{"0":{"92":1},"2":{"6":1,"12":1,"33":1,"65":4,"69":4,"74":1,"76":1,"77":1,"95":1,"96":1,"97":1,"98":1,"99":1,"101":5,"102":1,"103":1,"269":1,"270":6,"275":1,"277":1,"286":1}}],["may",{"2":{"3":1}}],["moved",{"0":{"151":1},"2":{"151":1}}],["more",{"2":{"2":1,"8":1,"9":1,"276":1}}],["moduletype",{"0":{"250":1}}],["module=module",{"2":{"227":1}}],["moduleinfo",{"0":{"213":1,"222":1,"223":1},"1":{"214":1,"215":1,"216":1,"217":1,"218":1},"2":{"222":2,"223":1}}],["module",{"0":{"17":1,"36":1,"58":1,"81":1,"84":1,"85":1,"91":1,"114":1,"122":1,"123":1,"140":1,"141":1,"142":1,"143":1,"154":1,"156":1,"158":1,"161":1,"165":1,"166":1,"171":1,"175":1,"184":1,"185":1,"187":1,"214":1,"221":1,"222":1,"223":1,"224":1,"225":1,"226":1,"227":1,"230":1,"231":1,"235":2,"250":1,"251":1,"253":1,"254":1,"256":1,"258":1,"262":1},"1":{"18":1,"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"43":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"59":1,"60":1,"61":1,"62":1,"63":1,"64":1,"65":1,"66":1,"67":1,"68":1,"69":1,"70":1,"71":1,"72":1,"73":1,"74":1,"75":1,"76":1,"77":1,"78":1,"79":1,"80":1,"82":1,"83":1,"86":1,"87":1,"88":1,"89":1,"90":1,"92":1,"93":1,"94":1,"95":1,"96":1,"97":1,"98":1,"99":1,"100":1,"101":1,"102":1,"103":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":1,"110":1,"111":1,"112":1,"113":1,"115":1,"116":1,"117":1,"118":1,"119":1,"120":1,"121":1,"124":1,"125":1,"126":1,"127":1,"128":1,"129":1,"130":1,"131":1,"132":1,"133":1,"134":1,"135":1,"136":1,"137":1,"138":1,"139":1,"142":1,"144":1,"145":1,"146":1,"147":1,"148":1,"149":1,"150":1,"151":1,"152":1,"153":1,"155":1,"157":1,"159":1,"160":1,"162":1,"163":1,"164":1,"167":1,"168":1,"169":1,"170":1,"172":1,"173":1,"174":1,"176":1,"177":1,"178":1,"179":1,"180":1,"181":1,"182":1,"183":1,"186":1,"188":1,"189":1,"190":1,"191":1,"192":1,"193":1,"194":1,"195":1,"196":1,"197":1,"198":1,"199":1,"200":1,"201":1,"202":1,"203":1,"204":1,"205":1,"206":1,"207":1,"208":1,"209":1,"210":1,"211":1,"212":1,"213":1,"214":1,"215":1,"216":1,"217":1,"218":1,"219":1,"220":1,"221":1,"222":1,"223":1,"224":1,"225":1,"227":1,"228":1,"229":1,"232":1,"233":1,"234":1,"235":1,"236":1,"237":1,"238":1,"239":1,"240":1,"241":1,"242":1,"243":1,"244":1,"245":1,"246":1,"247":1,"248":1,"249":1,"250":1,"251":1,"252":1,"255":1,"257":1,"259":1,"260":1,"261":1,"262":1,"263":1},"2":{"142":3,"156":1,"221":2,"222":11,"223":5,"224":19,"225":1,"227":26,"228":9,"229":1,"247":1,"253":1,"262":1}}],["modified",{"0":{"148":1},"2":{"7":1,"148":2,"149":1,"150":1,"151":1,"152":1,"153":4}}],["modify",{"2":{"0":2}}],["modes",{"2":{"270":1}}],["model",{"0":{"231":1,"248":1},"1":{"232":1,"233":1,"234":1,"235":1,"236":1,"237":1,"238":1,"239":1,"240":1,"241":1,"242":1,"243":1,"244":1,"245":1,"246":1,"247":1,"248":1,"249":1,"250":1,"251":1,"252":1},"2":{"231":1,"265":1}}],["mode为true",{"2":{"143":1}}],["mode",{"2":{"2":5,"12":3,"270":5,"276":2,"297":2,"298":1}}],["most",{"2":{"0":1}}],["lyf结尾",{"2":{"288":1}}],["lyfunction语法",{"2":{"297":1}}],["lyfunction",{"2":{"288":1}}],["lt",{"2":{"278":2,"296":1,"297":7,"299":10,"301":2}}],["lsposed",{"2":{"14":1}}],["llonebot",{"2":{"14":1}}],["laptop",{"2":{"224":2}}],["lang",{"0":{"223":1,"224":1},"2":{"223":3,"224":2}}],["language",{"2":{"2":2,"275":1,"278":3}}],["last",{"2":{"146":4}}],["lambda",{"2":{"109":1,"110":2,"111":2,"112":2,"113":1}}],["lagrange",{"2":{"14":2}}],["lead",{"2":{"278":1}}],["least",{"2":{"9":2}}],["level=0",{"2":{"160":1}}],["level",{"0":{"159":1},"2":{"1":3,"159":2,"160":6}}],["location",{"2":{"267":1}}],["local",{"2":{"1":1}}],["locks",{"2":{"98":1}}],["lock",{"0":{"107":2},"2":{"96":3,"97":3,"98":3,"105":1}}],["loop",{"0":{"103":1},"2":{"19":4,"65":1,"68":3,"95":2,"103":2,"260":10}}],["log0000",{"2":{"270":1}}],["logger",{"0":{"25":1},"2":{"19":1,"20":2,"21":2,"22":1,"24":1,"25":1,"35":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"65":2,"116":1,"117":1,"118":1,"119":2,"120":1,"128":1,"131":2,"133":1,"139":1,"160":7,"227":3,"228":3,"260":1,"270":3,"283":2}}],["logo",{"2":{"19":1}}],["logic",{"2":{"12":1,"277":1}}],["login",{"2":{"12":2}}],["logs",{"2":{"2":1}}],["log",{"0":{"158":1,"160":1},"1":{"159":1,"160":1},"2":{"1":4,"12":1,"25":1,"158":1,"160":3,"270":1}}],["loaded",{"0":{"186":1},"2":{"186":1}}],["loader",{"0":{"256":1,"257":1},"1":{"257":1},"2":{"19":1,"257":1}}],["loading",{"2":{"116":1,"117":1,"118":1}}],["load",{"0":{"116":1,"117":1,"118":1,"119":1,"120":1,"121":1,"226":1,"227":1,"228":1},"1":{"227":1,"228":1,"229":1},"2":{"0":1,"2":2,"19":1,"116":3,"117":3,"118":3,"119":4,"120":2,"121":3,"142":2,"226":1,"227":3,"228":2,"257":2,"299":1,"300":1}}],["links",{"2":{"278":2}}],["linux",{"2":{"6":1,"8":1,"9":1,"14":1,"22":1}}],["like",{"2":{"269":1}}],["life",{"2":{"44":1}}],["lifespan=self",{"2":{"19":1}}],["lifespan",{"0":{"27":2,"28":1,"29":1,"30":1,"31":2,"32":1,"36":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"43":1,"45":2,"46":2,"47":2,"48":2,"49":2,"50":2,"51":2,"127":2},"1":{"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"43":1,"44":2,"45":2,"46":2,"47":2,"48":2,"49":2,"50":2,"51":2,"52":2,"53":2,"54":2,"55":2,"56":2,"57":2},"2":{"19":3,"27":5,"28":4,"29":4,"30":4,"31":5,"32":4,"36":1,"39":2,"42":2,"44":6,"45":4,"46":4,"47":4,"48":4,"49":4,"50":4,"51":4,"127":4}}],["litedoc",{"2":{"267":1,"278":1}}],["liteecho",{"0":{"254":1,"255":1},"1":{"255":1},"2":{"254":2,"255":2,"297":1}}],["liteloader",{"2":{"14":1}}],["liteyukiexception",{"0":{"155":1}}],["liteyukistudio",{"2":{"6":1,"7":1,"36":1,"123":1,"141":1,"158":1,"161":1,"165":1,"166":1,"171":1,"175":1,"184":1,"187":1,"226":1,"230":1,"231":1,"254":1,"256":1}}],["liteyuki",{"0":{"17":1,"36":1,"58":1,"81":1,"84":1,"85":1,"91":1,"114":1,"122":1,"123":1,"140":1,"141":1,"143":1,"154":1,"156":1,"158":1,"161":1,"165":1,"166":1,"171":1,"175":1,"184":1,"185":1,"187":1,"226":1,"230":1,"231":1,"253":1,"254":1,"256":1,"258":1,"299":1},"1":{"18":1,"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"43":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"59":1,"60":1,"61":1,"62":1,"63":1,"64":1,"65":1,"66":1,"67":1,"68":1,"69":1,"70":1,"71":1,"72":1,"73":1,"74":1,"75":1,"76":1,"77":1,"78":1,"79":1,"80":1,"82":1,"83":1,"86":1,"87":1,"88":1,"89":1,"90":1,"92":1,"93":1,"94":1,"95":1,"96":1,"97":1,"98":1,"99":1,"100":1,"101":1,"102":1,"103":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":1,"110":1,"111":1,"112":1,"113":1,"115":1,"116":1,"117":1,"118":1,"119":1,"120":1,"121":1,"124":1,"125":1,"126":1,"127":1,"128":1,"129":1,"130":1,"131":1,"132":1,"133":1,"134":1,"135":1,"136":1,"137":1,"138":1,"139":1,"142":1,"144":1,"145":1,"146":1,"147":1,"148":1,"149":1,"150":1,"151":1,"152":1,"153":1,"155":1,"157":1,"159":1,"160":1,"162":1,"163":1,"164":1,"167":1,"168":1,"169":1,"170":1,"172":1,"173":1,"174":1,"176":1,"177":1,"178":1,"179":1,"180":1,"181":1,"182":1,"183":1,"186":1,"188":1,"189":1,"190":1,"191":1,"192":1,"193":1,"194":1,"195":1,"196":1,"197":1,"198":1,"199":1,"200":1,"201":1,"202":1,"203":1,"204":1,"205":1,"206":1,"207":1,"208":1,"209":1,"210":1,"211":1,"212":1,"213":1,"214":1,"215":1,"216":1,"217":1,"218":1,"219":1,"220":1,"221":1,"222":1,"223":1,"224":1,"225":1,"227":1,"228":1,"229":1,"232":1,"233":1,"234":1,"235":1,"236":1,"237":1,"238":1,"239":1,"240":1,"241":1,"242":1,"243":1,"244":1,"245":1,"246":1,"247":1,"248":1,"249":1,"250":1,"251":1,"252":1,"255":1,"257":1,"259":1,"260":1,"261":1,"262":1,"263":1,"300":1},"2":{"1":6,"2":4,"3":2,"4":2,"6":1,"8":1,"9":1,"12":6,"19":2,"21":2,"33":1,"142":2,"156":1,"227":5,"257":3,"265":4,"266":3,"267":6,"269":1,"270":12,"273":2,"275":4,"277":6,"278":2,"279":1,"282":1,"283":4,"286":1,"287":1,"293":1,"297":4,"298":3}}],["liteyukibot",{"0":{"18":1,"33":1},"1":{"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1},"2":{"0":5,"6":2,"7":6,"8":1,"15":1,"22":1,"33":2,"142":1,"265":2,"266":2,"267":2,"269":1,"277":3}}],["limited",{"2":{"4":1}}],["listdir",{"2":{"120":1,"228":2}}],["listen",{"2":{"269":1}}],["listening",{"2":{"1":1}}],["listed",{"2":{"12":1}}],["list",{"0":{"163":1,"174":1,"196":1,"210":1,"211":1,"212":1,"215":1,"216":1,"217":1,"221":1},"2":{"1":4,"44":6,"65":2,"92":1,"93":1,"163":1,"168":1,"172":3,"174":1,"221":4,"222":4,"224":3,"297":1,"299":2,"300":1}}],["switch",{"2":{"297":2,"298":1}}],["simple",{"2":{"282":1}}],["single",{"2":{"278":1}}],["signature",{"2":{"263":2}}],["sides",{"2":{"3":1,"12":1}}],["side",{"0":{"3":1},"2":{"12":4}}],["src",{"2":{"257":1,"277":2,"283":5}}],["schedule",{"2":{"153":1}}],["script",{"0":{"8":1},"2":{"8":1,"267":1}}],["scripts",{"2":{"6":1}}],["shinjuku",{"2":{"303":1}}],["shellstatistic",{"2":{"305":1}}],["shellbind",{"2":{"303":1}}],["shellweather",{"2":{"303":1}}],["shellmain",{"2":{"294":1}}],["shellvar",{"2":{"289":1}}],["shellcmd",{"2":{"288":1}}],["shell",{"2":{"288":1,"290":1}}],["shutil",{"2":{"224":1}}],["shutdown",{"0":{"29":1,"30":1,"48":1,"49":1,"54":1,"55":1},"2":{"29":2,"30":2,"44":2,"48":2,"49":2,"54":3,"55":3}}],["showing",{"2":{"267":1}}],["show",{"2":{"160":6}}],["should",{"2":{"65":1,"278":7}}],["shared",{"0":{"108":1},"2":{"95":3,"109":1,"110":3,"111":3,"112":3,"113":2,"129":1,"269":1,"273":3}}],["syntax",{"2":{"275":1,"278":1}}],["sync",{"0":{"37":1,"40":1,"59":1,"61":1},"2":{"39":1,"42":1,"60":1,"63":1,"263":1}}],["sys",{"2":{"22":3,"160":1}}],["system",{"0":{"153":1},"2":{"9":2,"22":4,"153":1,"283":2}}],["snowykami",{"2":{"36":2,"123":2,"141":2,"158":2,"161":2,"165":2,"166":2,"171":2,"175":2,"184":2,"187":2,"226":2,"230":2,"231":2,"254":2,"256":2}}],["sleep",{"2":{"21":1,"22":1,"270":1,"289":1,"290":1}}],["style",{"2":{"278":2,"294":2}}],["stem",{"2":{"262":2}}],["stdout",{"2":{"160":1}}],["store",{"2":{"95":1,"96":1,"97":1,"98":2,"99":1,"253":1}}],["storage",{"0":{"91":1},"1":{"92":1,"93":1,"94":1,"95":1,"96":1,"97":1,"98":1,"99":1,"100":1,"101":1,"102":1,"103":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":1,"110":1,"111":1,"112":1,"113":1},"2":{"84":2,"273":2}}],["stopped",{"2":{"20":1}}],["stopping",{"2":{"20":1}}],["stop",{"0":{"26":1},"2":{"19":1,"20":1,"21":2,"26":2}}],["strings",{"2":{"278":2}}],["strip",{"2":{"255":2}}],["str=",{"2":{"223":1,"224":1}}],["structure",{"0":{"277":1},"2":{"66":1}}],["str",{"0":{"23":1,"34":1,"35":2,"65":1,"74":1,"75":1,"76":1,"77":1,"78":2,"79":2,"80":2,"83":2,"87":1,"96":1,"97":1,"98":1,"99":1,"100":1,"101":1,"102":1,"110":2,"111":2,"112":2,"113":2,"115":2,"116":2,"117":2,"118":2,"119":2,"120":2,"121":1,"125":2,"129":1,"131":1,"133":1,"136":1,"137":1,"138":1,"142":1,"153":1,"159":2,"163":9,"164":2,"174":1,"186":1,"195":1,"196":2,"197":1,"198":1,"199":1,"203":1,"204":1,"206":1,"208":1,"209":1,"212":1,"214":1,"218":1,"219":3,"220":2,"221":1,"222":1,"223":2,"224":3,"227":1,"228":1,"229":2,"239":1,"240":1,"241":1,"243":1,"244":1,"245":1,"249":1,"251":1,"262":1},"2":{"19":1,"23":2,"34":2,"35":3,"40":1,"41":1,"65":2,"73":2,"74":2,"75":2,"76":2,"77":3,"78":2,"79":2,"80":2,"83":2,"87":1,"92":1,"93":1,"95":5,"96":1,"97":1,"98":1,"99":3,"100":1,"101":1,"102":1,"110":2,"111":2,"112":2,"113":2,"115":2,"116":2,"117":2,"118":2,"119":2,"120":2,"121":1,"125":2,"127":2,"129":1,"131":1,"133":1,"135":1,"136":1,"137":1,"138":1,"142":1,"153":1,"159":2,"163":9,"164":2,"174":1,"183":1,"186":2,"219":3,"220":2,"221":1,"222":1,"223":1,"224":4,"227":1,"228":1,"229":3,"262":2,"270":1}}],["statistic",{"2":{"306":1}}],["statistics",{"0":{"305":1},"1":{"306":1}}],["static",{"0":{"191":1},"2":{"222":1}}],["staticmethod",{"0":{"191":1},"2":{"44":1,"45":1,"101":1,"102":1,"222":1}}],["status",{"2":{"297":1,"298":1}}],["stat",{"2":{"267":1,"306":1}}],["star",{"2":{"267":1}}],["starmap",{"2":{"267":1}}],["startup",{"2":{"270":2}}],["startswith",{"2":{"222":3,"254":1,"255":1}}],["started",{"2":{"12":1}}],["start",{"0":{"27":1,"28":1,"46":1,"47":1,"52":1,"53":1,"103":1,"128":1,"138":1,"139":1},"2":{"1":2,"6":1,"12":3,"20":1,"22":2,"27":2,"28":2,"44":2,"46":2,"47":2,"52":3,"53":3,"103":2,"128":2,"138":2,"139":2,"261":1,"270":1}}],["starting",{"2":{"0":1,"128":1,"139":1}}],["standardization",{"0":{"278":1}}],["standard",{"2":{"12":2}}],["search",{"2":{"299":1,"300":1}}],["see",{"2":{"276":1}}],["service",{"0":{"234":2},"2":{"229":1,"282":1}}],["server",{"2":{"1":1,"3":1,"9":1,"15":1}}],["sep",{"2":{"222":3}}],["session",{"0":{"163":2,"184":1},"2":{"163":6,"164":5,"184":1}}],["sequence",{"0":{"45":1},"2":{"45":2}}],["setting",{"2":{"276":1}}],["set",{"0":{"74":1,"75":1,"78":1,"96":1,"111":1,"228":1},"2":{"19":1,"21":1,"26":1,"65":1,"74":2,"75":2,"77":1,"78":3,"96":2,"110":1,"111":3,"228":2,"260":1,"273":1,"297":2,"298":1,"301":2}}],["self",{"0":{"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"44":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"65":1,"66":1,"67":1,"68":1,"69":1,"83":1,"87":1,"88":1,"89":1,"90":1,"95":1,"96":1,"97":1,"98":1,"99":1,"100":1,"101":1,"103":1,"125":1,"127":1,"128":1,"129":1,"130":1,"131":1,"132":1,"133":1,"135":1,"136":1,"137":1,"138":1,"139":1,"148":1,"149":1,"150":1,"151":1,"152":1,"163":1,"164":1,"168":1,"169":1,"170":1,"178":1,"179":1,"180":1,"181":1,"247":1},"2":{"19":11,"20":4,"21":3,"22":4,"23":2,"24":2,"25":1,"26":3,"27":2,"28":2,"29":2,"30":2,"31":2,"32":2,"44":8,"46":2,"47":2,"48":2,"49":2,"50":2,"51":2,"52":3,"53":3,"54":3,"55":3,"56":3,"57":3,"65":14,"66":6,"67":3,"68":2,"69":3,"83":3,"87":5,"88":1,"89":1,"90":1,"95":7,"96":3,"97":3,"98":4,"99":3,"100":2,"101":1,"103":4,"125":6,"127":4,"128":2,"129":2,"130":2,"131":3,"132":3,"133":3,"135":2,"136":2,"137":2,"138":3,"139":2,"148":1,"149":2,"150":2,"151":2,"152":2,"163":10,"164":3,"168":5,"169":2,"170":3,"178":2,"179":2,"180":2,"181":3,"222":1,"223":1,"247":2}}],["send",{"0":{"66":1,"88":1},"2":{"12":1,"23":2,"65":2,"66":4,"74":1,"76":1,"77":1,"79":1,"80":1,"87":1,"88":1,"96":1,"97":1,"98":1,"99":1,"100":1,"103":1,"110":1,"113":1,"164":1,"269":1,"270":3,"297":1}}],["summary",{"2":{"278":1}}],["summary>",{"2":{"223":3}}],["summary>源代码",{"2":{"223":1}}],["suggestions",{"0":{"276":1}}],["su",{"0":{"183":1},"2":{"183":1,"254":1,"255":1}}],["succeeded",{"2":{"227":1}}],["success",{"2":{"131":1,"160":2,"227":2}}],["such",{"2":{"12":1,"276":1,"278":2}}],["subprocess",{"2":{"135":1,"136":1,"137":1}}],["subprocessmanager",{"0":{"134":1},"1":{"135":1,"136":1,"137":1,"138":1,"139":1}}],["subscribe",{"2":{"101":1}}],["subscriber",{"0":{"92":1,"93":1,"101":1,"102":1},"2":{"101":7,"102":2,"103":1}}],["sub",{"0":{"93":1},"2":{"33":1,"65":2,"69":1,"95":1,"101":4,"103":1}}],["submitted",{"2":{"278":1}}],["submit",{"2":{"13":1,"275":2}}],["sure",{"2":{"12":2}}],["support",{"2":{"266":2,"278":1}}],["supported",{"2":{"4":1,"120":1}}],["supports",{"2":{"0":1,"14":5}}],["superuser",{"2":{"1":1}}],["superusers",{"2":{"0":1,"1":1,"12":1,"183":1}}],["s",{"2":{"9":1}}],["sparkles",{"2":{"278":2}}],["space",{"2":{"9":1}}],["split",{"2":{"227":4}}],["specified",{"2":{"227":1}}],["specific",{"2":{"9":1}}],["specify",{"2":{"12":1}}],["so",{"2":{"277":1}}],["sockschannel",{"0":{"86":1},"1":{"87":1,"88":1,"89":1,"90":1}}],["socks",{"0":{"85":1},"1":{"86":1,"87":1,"88":1,"89":1,"90":1}}],["software",{"2":{"36":1,"123":1,"141":1,"158":1,"161":1,"165":1,"166":1,"171":1,"175":1,"184":1,"187":1,"226":1,"230":1,"231":1,"254":1,"256":1}}],["solution",{"0":{"14":1,"15":1}}],["source",{"0":{"199":1},"2":{"6":1,"9":1,"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"65":1,"66":1,"67":1,"68":1,"69":1,"74":1,"75":1,"76":1,"77":1,"78":1,"79":1,"80":1,"83":1,"87":1,"88":1,"89":1,"90":1,"95":1,"96":1,"97":1,"98":1,"99":1,"100":1,"101":1,"102":1,"103":1,"105":1,"110":1,"111":1,"112":1,"113":1,"115":1,"116":1,"117":1,"118":1,"119":1,"120":1,"121":1,"125":1,"127":1,"128":1,"129":1,"130":1,"131":1,"132":1,"133":1,"135":1,"136":1,"137":1,"138":1,"139":1,"142":1,"146":1,"148":1,"149":1,"150":1,"151":1,"152":1,"153":1,"159":1,"160":1,"163":1,"164":1,"168":1,"169":1,"170":1,"172":1,"173":1,"174":1,"178":1,"179":1,"180":1,"181":1,"182":1,"183":1,"186":1,"219":1,"220":1,"221":1,"222":3,"223":7,"224":1,"227":1,"228":1,"229":1,"247":1,"255":1,"257":1,"259":1,"260":1,"261":1,"262":1,"263":1,"267":1,"277":1,"279":1}}],["some",{"2":{"1":1,"12":2}}],["same",{"2":{"3":2}}],["safe",{"2":{"2":2,"12":3,"116":1}}],["num为每页显示数量",{"2":{"299":2}}],["num",{"2":{"299":2}}],["number",{"2":{"7":2}}],["nliteyuki",{"2":{"288":1}}],["n\`\`\`",{"2":{"223":2}}],["n\`\`\`python",{"2":{"223":2}}],["n",{"2":{"223":52,"224":2}}],["name>",{"2":{"289":2}}],["name=module",{"2":{"227":3}}],["name=target",{"2":{"222":2}}],["name=class",{"2":{"222":1}}],["name=node",{"2":{"222":2}}],["name=f",{"2":{"129":2}}],["name=",{"2":{"70":1,"71":1,"95":3,"282":1}}],["name",{"0":{"23":1,"65":1,"74":1,"76":1,"83":1,"87":1,"129":1,"131":1,"133":1,"136":1,"137":1,"138":1,"195":1,"203":1,"208":1,"225":1,"229":2,"239":1,"249":1,"251":1,"262":1},"2":{"23":6,"65":11,"74":7,"75":2,"76":5,"78":3,"79":3,"83":3,"87":4,"128":3,"129":5,"130":1,"131":6,"132":2,"133":5,"136":3,"137":4,"138":5,"139":2,"222":11,"223":7,"224":2,"227":20,"228":9,"229":6,"247":1,"262":1,"270":2,"297":4,"299":8}}],["ntqq",{"2":{"14":1}}],["npm",{"2":{"12":1,"299":7,"300":1}}],["nesting",{"2":{"278":1}}],["new",{"0":{"136":1},"2":{"19":1,"115":3,"136":1,"260":1,"275":1,"278":2}}],["necessary",{"2":{"12":1}}],["needs",{"2":{"270":1}}],["need",{"2":{"0":1,"2":1,"12":1,"275":1}}],["non",{"2":{"279":1}}],["nonlocal",{"2":{"146":1}}],["nonedog",{"2":{"282":1}}],["none",{"0":{"19":1,"23":1,"34":1,"35":1,"44":1,"45":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"65":1,"69":1,"96":1,"97":1,"98":1,"100":1,"106":1,"129":1,"136":1,"153":1,"163":2,"170":1,"205":1,"223":1,"224":1,"252":1},"2":{"19":1,"23":2,"33":1,"34":1,"35":1,"44":1,"45":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"65":3,"66":1,"68":1,"69":2,"87":2,"96":1,"98":1,"100":1,"105":2,"116":1,"117":1,"118":1,"129":1,"136":1,"144":1,"146":1,"153":1,"163":1,"170":1,"176":2,"181":1,"222":3,"224":1,"227":4,"228":1,"259":1}}],["nonebot2",{"2":{"4":2,"16":1}}],["nonebot",{"0":{"3":1},"2":{"1":2,"2":2,"3":1,"16":1,"258":1,"266":6,"270":3,"277":3,"282":1,"283":4,"286":1}}],["nohup",{"2":{"22":2,"289":1,"290":1}}],["nodes",{"2":{"222":2}}],["node",{"2":{"9":1,"14":1,"222":42}}],["notimplementederror",{"2":{"148":1}}],["not",{"2":{"1":1,"2":1,"4":1,"9":2,"12":4,"21":1,"23":1,"33":1,"65":1,"66":2,"69":4,"74":1,"98":1,"101":3,"103":1,"116":1,"117":1,"118":1,"119":3,"120":3,"131":2,"133":2,"138":2,"153":2,"170":1,"220":1,"222":8,"227":1,"228":8,"278":3,"283":2}}],["normal>",{"2":{"160":1}}],["normal",{"0":{"6":1,"222":1},"2":{"1":1,"222":1,"224":1}}],["no",{"0":{"119":1,"120":1,"121":1,"195":1,"196":1,"197":1,"198":1,"200":1,"201":1,"203":1,"204":1,"208":1,"209":1,"210":1,"211":1,"212":1,"214":1,"215":1,"216":1,"217":1,"218":1,"225":1,"239":1,"249":1,"250":1,"251":1},"2":{"1":1,"72":1,"73":1,"119":3,"120":3,"121":3,"222":3,"223":1,"224":2,"278":1}}],["nickname",{"2":{"0":1,"1":2,"12":3}}],["ignored",{"0":{"224":1},"2":{"224":7}}],["ignore",{"0":{"98":1,"222":1,"228":1},"2":{"98":3,"222":5,"224":1,"228":5}}],["id仅超级用户可用",{"2":{"297":1}}],["id=user",{"2":{"290":2}}],["id=1234567",{"2":{"297":2}}],["id=123456",{"2":{"290":1}}],["id=self",{"2":{"164":3}}],["id",{"0":{"163":3},"2":{"69":5,"163":9,"164":3,"183":1,"222":6,"290":2,"297":2,"299":1,"305":4}}],["ids",{"2":{"65":2,"69":2}}],["i",{"2":{"12":2,"172":2,"270":6}}],["impossible",{"2":{"269":1}}],["import",{"2":{"109":1,"227":1,"270":5,"273":1,"282":2,"283":3,"286":1}}],["implemented",{"2":{"148":1,"270":1}}],["implement",{"2":{"12":1,"270":1}}],["implementation",{"0":{"3":1},"2":{"3":1,"12":4,"14":1}}],["image",{"2":{"7":1,"297":2,"298":1}}],["icon=f",{"2":{"160":5}}],["icon",{"2":{"1":2,"160":7,"223":1,"224":2}}],["isclass",{"2":{"259":1}}],["iscoroutinefunction",{"2":{"259":2}}],["isroutine",{"2":{"259":1}}],["isfile",{"2":{"228":1,"283":1}}],["isdir",{"2":{"228":2}}],["isinstance",{"2":{"74":1,"115":1,"222":13,"227":1,"270":1}}],["issues",{"2":{"15":2}}],["issue",{"2":{"13":1}}],["is",{"0":{"133":1,"183":1,"201":1,"259":1},"2":{"1":3,"2":1,"3":3,"4":1,"6":1,"9":1,"12":2,"19":1,"20":2,"21":3,"23":1,"33":2,"45":1,"65":6,"66":1,"69":5,"74":1,"76":1,"77":1,"95":2,"96":1,"97":1,"98":1,"99":1,"101":3,"103":1,"105":2,"116":1,"117":1,"118":1,"129":1,"131":1,"133":2,"153":1,"156":1,"163":1,"181":1,"183":1,"222":2,"223":2,"224":1,"227":1,"228":2,"253":1,"259":1,"260":1,"269":2,"270":3,"277":3,"278":12,"279":1}}],["if",{"2":{"1":2,"2":4,"3":1,"7":2,"9":2,"12":2,"13":1,"22":2,"23":1,"33":2,"35":2,"45":1,"65":5,"66":3,"67":1,"69":6,"74":3,"76":1,"77":1,"96":1,"97":1,"98":3,"99":1,"101":5,"103":2,"105":2,"115":1,"116":1,"117":1,"118":1,"119":2,"120":3,"129":1,"131":2,"133":1,"138":1,"146":1,"153":1,"159":1,"160":5,"163":1,"164":1,"170":1,"172":1,"181":1,"220":1,"221":1,"222":20,"223":10,"224":4,"227":2,"228":9,"259":2,"260":1,"262":1,"275":3,"278":2}}],["inaccessible",{"2":{"278":1}}],["included",{"2":{"277":1}}],["including",{"2":{"9":1}}],["index",{"2":{"223":1,"224":1,"294":1}}],["inherit=",{"2":{"222":1}}],["inherit",{"0":{"212":1},"2":{"223":5}}],["inspect",{"2":{"259":4,"263":1}}],["insert",{"2":{"172":1}}],["instances",{"2":{"267":1}}],["instance",{"0":{"105":1,"106":1},"2":{"19":2,"33":4,"66":1,"74":1,"105":5,"108":1}}],["installed",{"2":{"9":1}}],["installation",{"0":{"6":1},"2":{"12":2}}],["install",{"0":{"5":1},"1":{"6":1,"7":1,"8":1,"9":1,"10":1},"2":{"6":3,"7":1,"9":2,"12":3,"296":1,"299":1,"300":1}}],["instead",{"2":{"7":1,"12":2,"35":1}}],["inner",{"2":{"65":2}}],["initialized",{"2":{"33":1,"65":2}}],["initializing",{"2":{"19":1}}],["init",{"0":{"19":1,"24":1,"25":1,"44":1,"65":1,"83":1,"87":1,"95":1,"125":1,"127":1,"135":1,"160":1,"163":1,"168":1,"178":1},"2":{"19":2,"24":2,"25":2,"44":1,"65":1,"83":1,"87":1,"95":1,"125":1,"127":1,"135":1,"160":1,"163":1,"165":1,"168":1,"178":1,"222":1,"224":2,"228":2,"256":1,"262":1,"282":3}}],["introducing",{"2":{"278":1}}],["introduction",{"0":{"269":1}}],["into",{"2":{"275":1}}],["inter",{"2":{"269":1}}],["interface",{"2":{"267":1}}],["interpreter",{"2":{"12":1}}],["interpreters",{"2":{"12":2}}],["int=0",{"2":{"22":1,"173":1,"174":1}}],["int",{"0":{"22":1,"168":1,"173":1,"174":1},"2":{"22":1,"44":1,"65":2,"168":1}}],["intact",{"2":{"12":1}}],["invalidgitrepositoryerror",{"2":{"12":1}}],["information",{"2":{"3":1,"276":1}}],["info",{"0":{"222":1,"223":1},"2":{"1":1,"19":1,"20":2,"21":2,"22":1,"160":3,"222":12,"223":5,"224":5,"270":2}}],["in",{"0":{"121":1,"261":1},"2":{"0":3,"1":1,"2":1,"3":2,"12":3,"23":1,"33":1,"35":3,"45":1,"65":5,"68":1,"69":1,"74":1,"75":1,"98":1,"101":3,"102":1,"103":1,"115":2,"119":1,"120":2,"121":1,"128":1,"130":1,"131":1,"132":1,"133":1,"138":1,"139":1,"142":1,"153":1,"170":1,"172":1,"174":2,"183":1,"220":1,"221":2,"222":13,"223":9,"224":5,"228":2,"253":2,"257":2,"260":2,"261":1,"269":1,"275":5,"276":2,"277":4,"278":6,"279":1,"283":1}}],["iter",{"2":{"222":2}}],["items",{"2":{"0":1,"12":1,"75":1,"115":2,"139":1,"220":1,"223":1,"224":1}}],["itself",{"2":{"12":1,"15":1}}],["it",{"2":{"0":1,"2":2,"3":1,"6":1,"12":5,"269":2}}],["r>",{"2":{"227":2}}],["rv",{"2":{"224":2}}],["rk",{"2":{"224":2}}],["rmtree",{"2":{"224":1}}],["rpm",{"2":{"299":5,"300":1}}],["rp",{"2":{"220":4}}],["rpc",{"2":{"84":1}}],["rule=is",{"2":{"254":1,"255":1}}],["rule=empty",{"2":{"173":1,"174":1}}],["rulehandlerfunc",{"0":{"176":1,"178":1},"2":{"178":1}}],["rule",{"0":{"168":2,"173":3,"174":2,"175":1,"177":1,"179":2,"180":2,"182":1,"183":1},"1":{"176":1,"177":1,"178":2,"179":2,"180":2,"181":2,"182":1,"183":1},"2":{"168":5,"170":1,"173":3,"174":5,"175":1,"179":3,"180":3,"181":1,"182":3,"183":2,"254":1,"255":1}}],["runnable",{"2":{"278":1}}],["running",{"2":{"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"65":1,"68":1,"95":2,"260":2,"269":1}}],["runtimeerror",{"2":{"33":2,"66":1,"67":1,"69":1,"101":1,"103":1,"260":1}}],["run",{"0":{"7":1,"20":1,"45":1,"102":1,"142":1,"170":1,"260":1,"261":1},"2":{"0":1,"6":1,"7":2,"9":1,"20":3,"45":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"68":1,"102":1,"103":1,"128":1,"142":2,"170":1,"260":3,"261":1,"286":2}}],["raw",{"0":{"163":1},"2":{"163":3,"164":1,"174":1,"255":1}}],["raise",{"2":{"33":2,"65":3,"66":2,"67":1,"69":1,"74":2,"98":1,"101":1,"103":1,"138":1,"148":1}}],["rights",{"2":{"36":1,"123":1,"141":1,"158":1,"161":1,"165":1,"166":1,"171":1,"175":1,"184":1,"187":1,"226":1,"230":1,"231":1,"254":1,"256":1}}],["root",{"2":{"7":1,"221":2}}],["r",{"2":{"6":1,"9":1,"116":1,"117":1,"118":1,"222":1}}],["revise",{"2":{"278":1}}],["reverse",{"2":{"3":2}}],["readme",{"2":{"224":2}}],["read",{"2":{"222":1,"275":2}}],["reload",{"2":{"297":1,"298":2,"299":1,"300":1}}],["reloading",{"2":{"283":1}}],["related",{"2":{"277":1,"278":1}}],["relative",{"0":{"219":1},"2":{"219":1,"224":1,"225":1,"262":1}}],["rel",{"2":{"224":4,"262":5}}],["relpath",{"2":{"219":1}}],["red>",{"2":{"160":1}}],["remove",{"2":{"160":1}}],["ref",{"0":{"109":1}}],["refer",{"0":{"10":1},"2":{"12":1,"278":1}}],["reference",{"2":{"3":1,"275":1}}],["returns",{"2":{"222":4}}],["return",{"0":{"197":1},"2":{"27":2,"28":2,"29":2,"30":2,"31":2,"32":2,"33":2,"34":2,"35":4,"46":2,"47":2,"48":2,"49":2,"50":2,"51":2,"67":2,"68":2,"69":7,"76":3,"77":3,"89":1,"97":3,"99":3,"101":3,"105":1,"115":2,"116":1,"117":1,"118":1,"119":1,"120":1,"121":1,"131":1,"133":1,"136":1,"146":3,"153":4,"159":2,"169":3,"170":1,"173":1,"174":2,"179":2,"180":2,"181":2,"182":1,"183":1,"186":2,"219":1,"221":1,"222":4,"223":4,"227":2,"228":1,"229":2,"247":1,"259":4,"262":3,"263":3}}],["restriction",{"2":{"278":1}}],["restarting",{"2":{"22":1}}],["restart",{"0":{"22":1,"23":1,"31":1,"32":1,"50":1,"51":1,"56":1,"57":1},"2":{"0":1,"19":1,"22":3,"23":1,"31":2,"32":2,"44":2,"50":2,"51":2,"56":3,"57":3,"283":2}}],["resource",{"2":{"277":1}}],["resources",{"2":{"277":1,"293":1,"294":1,"298":1}}],["resolve",{"2":{"262":2}}],["reserved",{"2":{"36":1,"123":1,"141":1,"158":1,"161":1,"165":1,"166":1,"171":1,"175":1,"184":1,"187":1,"226":1,"230":1,"231":1,"254":1,"256":1}}],["response",{"2":{"12":2}}],["respond",{"2":{"12":1}}],["reply",{"0":{"164":1},"2":{"164":3,"255":1}}],["replace",{"2":{"7":1,"222":3,"223":4,"224":8}}],["repository",{"2":{"275":7,"277":2,"278":1}}],["repo",{"2":{"7":1}}],["report设定为false",{"2":{"295":1}}],["reports",{"2":{"12":1}}],["report",{"2":{"1":2,"12":2,"295":1}}],["request",{"2":{"275":1}}],["requests",{"2":{"1":1}}],["required",{"2":{"65":1,"278":1}}],["requires",{"2":{"9":1}}],["requirements",{"0":{"9":1},"1":{"10":1},"2":{"6":1,"9":1}}],["receiving",{"2":{"270":1}}],["receive",{"0":{"59":1,"60":1,"67":1,"68":1,"69":1,"89":1,"92":1,"93":1,"101":3,"102":1,"103":1,"163":1},"2":{"1":1,"60":2,"65":3,"67":2,"68":2,"69":4,"76":1,"77":2,"78":2,"79":2,"80":1,"89":1,"92":1,"93":1,"95":2,"97":1,"99":1,"101":11,"102":2,"103":4,"109":1,"110":2,"111":2,"112":2,"113":1,"163":3,"164":3,"270":11}}],["recursive=recursive",{"2":{"153":1}}],["recursive",{"0":{"153":1},"2":{"153":2}}],["recv",{"2":{"65":2,"67":2,"76":5,"77":5,"79":3,"80":3,"87":1,"97":5,"99":5,"110":3,"113":3}}],["recommended",{"0":{"14":1,"15":1},"2":{"3":1,"6":1,"8":1,"9":2,"12":1,"278":1}}],["city",{"2":{"303":1,"304":1}}],["css相对路径引用b中的css",{"2":{"294":1}}],["css",{"2":{"293":1,"294":1}}],["cwd",{"2":{"262":1}}],["cute",{"2":{"265":1}}],["current|bot",{"2":{"305":1}}],["current|group",{"2":{"305":1}}],["current",{"2":{"146":3,"305":2,"306":1}}],["custom",{"2":{"2":4,"265":1}}],["customize",{"2":{"2":1}}],["cfg",{"2":{"142":4}}],["c",{"2":{"36":1,"115":1,"123":1,"141":1,"158":1,"161":1,"165":1,"166":1,"171":1,"175":1,"184":1,"187":1,"226":1,"229":1,"230":1,"231":1,"254":1,"256":1,"260":4,"262":2,"306":1}}],["cmd",{"2":{"22":5,"288":2,"289":1}}],["cls",{"0":{"105":1},"2":{"105":6,"222":1,"223":11}}],["close",{"0":{"90":1},"2":{"90":1,"260":1}}],["closed",{"2":{"65":1,"66":2,"67":2,"87":1,"267":1}}],["cloning",{"2":{"12":1}}],["clone",{"2":{"6":2,"7":2}}],["classdef",{"2":{"222":3}}],["classes=",{"2":{"222":1}}],["classes",{"0":{"216":1},"2":{"222":1,"223":1}}],["classinfo",{"0":{"207":1,"216":1},"1":{"208":1,"209":1,"210":1,"211":1,"212":1},"2":{"222":1}}],["classmethod",{"0":{"192":1},"2":{"104":1,"105":1,"222":1}}],["class",{"0":{"18":1,"43":1,"64":1,"82":1,"86":1,"94":1,"104":1,"124":1,"126":1,"134":1,"147":1,"155":1,"162":1,"167":1,"177":1,"188":1,"192":1,"194":1,"202":1,"207":1,"213":1,"232":1,"238":1,"246":1},"1":{"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"65":1,"66":1,"67":1,"68":1,"69":1,"83":1,"87":1,"88":1,"89":1,"90":1,"95":1,"96":1,"97":1,"98":1,"99":1,"100":1,"101":1,"102":1,"103":1,"105":1,"106":1,"107":1,"125":1,"127":1,"128":1,"129":1,"130":1,"131":1,"132":1,"133":1,"135":1,"136":1,"137":1,"138":1,"139":1,"148":1,"149":1,"150":1,"151":1,"152":1,"163":1,"164":1,"168":1,"169":1,"170":1,"178":1,"179":1,"180":1,"181":1,"189":1,"190":1,"191":1,"192":1,"193":1,"195":1,"196":1,"197":1,"198":1,"199":1,"200":1,"201":1,"203":1,"204":1,"205":1,"206":1,"208":1,"209":1,"210":1,"211":1,"212":1,"214":1,"215":1,"216":1,"217":1,"218":1,"233":1,"234":1,"235":1,"236":1,"237":1,"239":1,"240":1,"241":1,"242":1,"243":1,"244":1,"245":1,"247":1,"248":1,"249":1,"250":1,"251":1,"252":1},"2":{"222":24,"223":2}}],["client",{"2":{"14":1}}],["cqhttp",{"2":{"14":1}}],["cpu",{"2":{"9":1,"295":1}}],["cd",{"2":{"6":1,"7":1}}],["chinese",{"2":{"277":1}}],["child",{"2":{"222":2,"269":1}}],["channel时的通道标识",{"2":{"270":1}}],["channel即可",{"2":{"270":1}}],["channel及passive",{"2":{"270":1}}],["channel函数获取通道对象",{"2":{"270":2}}],["channel=none",{"2":{"164":1}}],["channeldeliver",{"0":{"124":1},"1":{"125":1},"2":{"129":1}}],["channels",{"0":{"75":2,"77":1,"80":1},"2":{"75":4,"77":2,"79":1,"80":3}}],["channel",{"0":{"58":1,"64":1,"70":1,"71":1,"72":2,"73":2,"74":3,"75":1,"76":2,"77":1,"78":1,"79":1,"85":1,"100":1,"101":1,"102":1,"125":8,"163":2,"268":1},"1":{"59":1,"60":1,"61":1,"62":1,"63":1,"64":1,"65":2,"66":2,"67":2,"68":2,"69":2,"70":1,"71":1,"72":1,"73":1,"74":1,"75":1,"76":1,"77":1,"78":1,"79":1,"80":1,"86":1,"87":1,"88":1,"89":1,"90":1,"269":1,"270":1,"271":1,"272":1,"273":1},"2":{"23":2,"65":7,"66":1,"67":1,"70":3,"71":3,"72":2,"73":1,"74":19,"75":5,"76":9,"77":10,"78":11,"79":7,"80":2,"84":2,"95":4,"97":1,"99":1,"100":4,"101":8,"102":3,"103":2,"125":12,"129":12,"163":4,"164":2,"269":3,"270":14}}],["chan",{"2":{"23":4,"76":5,"77":5,"79":3,"80":3,"95":2,"96":1,"97":6,"98":1,"99":6,"100":1,"103":1,"109":1,"110":5,"111":2,"112":2,"113":4,"129":2,"270":2}}],["changed",{"2":{"283":1}}],["change",{"2":{"6":1,"7":1,"299":1,"300":1}}],["chat",{"2":{"12":1,"13":1,"15":1}}],["chromium",{"2":{"9":1}}],["checking",{"2":{"276":1}}],["check",{"0":{"65":1},"2":{"1":1,"12":1,"65":8,"66":1}}],["cn",{"0":{"223":1,"224":1},"2":{"2":1,"223":2,"224":1}}],["color",{"2":{"229":7}}],["color=",{"2":{"160":5}}],["colors=true",{"2":{"20":2,"227":3}}],["copy",{"2":{"115":1,"275":1}}],["copyright",{"2":{"36":1,"123":1,"141":1,"158":1,"161":1,"165":1,"166":1,"171":1,"175":1,"184":1,"187":1,"226":1,"230":1,"231":1,"254":1,"256":1}}],["count",{"0":{"109":1},"2":{"19":1,"22":2}}],["corresponding",{"2":{"278":1}}],["correct",{"2":{"278":2}}],["correctly",{"2":{"12":2,"278":1}}],["coro",{"0":{"260":1,"261":1},"2":{"260":5,"261":2}}],["coroutine",{"0":{"259":1,"260":2,"261":2,"263":1},"2":{"45":1,"62":1,"69":2,"101":1,"176":1,"259":1,"260":2,"261":3,"263":2}}],["core",{"0":{"122":1,"123":1},"1":{"124":1,"125":1,"126":1,"127":1,"128":1,"129":1,"130":1,"131":1,"132":1,"133":1,"134":1,"135":1,"136":1,"137":1,"138":1,"139":1},"2":{"14":1}}],["code插件liteyuki",{"2":{"292":1}}],["code=ast",{"2":{"222":2}}],["codemodifiedhandler",{"0":{"147":1},"1":{"148":1,"149":1,"150":1,"151":1,"152":1},"2":{"153":1}}],["code",{"0":{"199":1},"2":{"9":1,"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"65":1,"66":1,"67":1,"68":1,"69":1,"74":1,"75":1,"76":1,"77":1,"78":1,"79":1,"80":1,"83":1,"87":1,"88":1,"89":1,"90":1,"95":1,"96":1,"97":1,"98":1,"99":1,"100":1,"101":1,"102":1,"103":1,"105":1,"110":1,"111":1,"112":1,"113":1,"115":1,"116":1,"117":1,"118":1,"119":1,"120":1,"121":1,"125":1,"127":1,"128":1,"129":1,"130":1,"131":1,"132":1,"133":1,"135":1,"136":1,"137":1,"138":1,"139":1,"142":1,"146":1,"148":1,"149":1,"150":1,"151":1,"152":1,"153":4,"159":1,"160":1,"163":1,"164":1,"168":1,"169":1,"170":1,"172":1,"173":1,"174":1,"178":1,"179":1,"180":1,"181":1,"182":1,"183":1,"186":1,"219":1,"220":1,"221":1,"222":1,"223":7,"224":3,"227":1,"228":1,"229":1,"247":1,"255":1,"257":1,"259":1,"260":1,"261":1,"262":1,"263":1,"275":2,"276":1,"277":1,"278":6}}],["come",{"2":{"269":1}}],["combined",{"2":{"179":2,"180":2}}],["compat",{"0":{"35":2},"2":{"35":8}}],["completing",{"2":{"278":1}}],["completion",{"2":{"2":2}}],["complete",{"2":{"260":2,"278":1}}],["complies",{"2":{"12":1}}],["computer",{"2":{"12":1}}],["com",{"2":{"6":1,"7":1,"36":1,"123":1,"141":1,"158":1,"161":1,"165":1,"166":1,"171":1,"175":1,"184":1,"187":1,"226":1,"230":1,"231":1,"254":1,"256":1}}],["commit",{"2":{"278":6}}],["comment",{"2":{"278":1}}],["communicate",{"2":{"269":1}}],["communication",{"0":{"268":1},"1":{"269":1,"270":1,"271":1,"272":1,"273":1},"2":{"3":1,"269":1}}],["comm",{"0":{"58":1,"81":1,"84":1,"85":1,"91":1},"1":{"59":1,"60":1,"61":1,"62":1,"63":1,"64":1,"65":1,"66":1,"67":1,"68":1,"69":1,"70":1,"71":1,"72":1,"73":1,"74":1,"75":1,"76":1,"77":1,"78":1,"79":1,"80":1,"82":1,"83":1,"86":1,"87":1,"88":1,"89":1,"90":1,"92":1,"93":1,"94":1,"95":1,"96":1,"97":1,"98":1,"99":1,"100":1,"101":1,"102":1,"103":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":1,"110":1,"111":1,"112":1,"113":1},"2":{"270":2,"273":2}}],["command>",{"2":{"289":2}}],["command",{"0":{"297":1},"1":{"298":1},"2":{"1":4,"12":5,"16":1}}],["conditions",{"2":{"278":1}}],["contributions",{"2":{"279":1}}],["content",{"2":{"222":2,"223":17,"224":2,"277":1,"278":1}}],["continue",{"2":{"120":1,"222":1,"224":1,"228":3}}],["contact",{"2":{"12":1,"275":1}}],["container",{"2":{"7":1}}],["conn",{"2":{"65":4,"66":1,"67":1,"87":2}}],["connect",{"2":{"12":1}}],["connected",{"0":{"3":1}}],["convenient",{"2":{"8":1}}],["confirm",{"2":{"12":1}}],["configs",{"0":{"120":1},"2":{"120":1,"121":1}}],["config=self",{"2":{"25":1}}],["configured",{"2":{"3":1}}],["configuration",{"0":{"1":1,"3":1},"2":{"0":5,"1":1,"2":2,"3":1,"12":2}}],["configurations",{"0":{"0":1,"2":1},"1":{"1":1,"2":1,"3":1,"4":1},"2":{"2":1}}],["config",{"0":{"34":1,"35":1,"114":1,"115":2,"121":1,"160":1,"248":1},"1":{"115":1,"116":1,"117":1,"118":1,"119":1,"120":1,"121":1},"2":{"0":5,"2":2,"19":2,"25":1,"34":2,"35":6,"115":9,"116":6,"117":6,"118":6,"119":7,"120":4,"121":9,"142":1,"160":3,"257":2,"276":1,"297":4,"298":1}}],["conflict",{"2":{"12":1}}],["conflicts",{"2":{"6":1,"12":1,"275":1}}],["console",{"2":{"1":1,"276":1}}],["created",{"0":{"149":1},"2":{"149":1}}],["create",{"2":{"0":1,"6":1,"102":1,"275":2}}],["cat",{"2":{"265":1}}],["category",{"2":{"223":1,"224":2}}],["case",{"2":{"229":4,"275":1}}],["cases",{"2":{"0":1}}],["callback",{"0":{"144":1,"153":2},"2":{"69":1,"153":4,"270":1}}],["callable",{"0":{"69":3,"101":1,"136":1,"153":1,"169":1,"259":2,"263":2},"2":{"37":1,"38":1,"40":1,"41":1,"45":1,"59":1,"61":1,"62":1,"69":10,"101":2,"127":1,"136":1,"144":1,"145":1,"153":1,"169":1,"176":1,"259":2,"263":4}}],["call",{"0":{"259":1},"2":{"19":1,"22":2,"146":4,"181":1,"259":7,"270":1}}],["cache",{"2":{"7":2}}],["cannot",{"2":{"12":1,"66":1,"67":1,"101":1,"103":1}}],["can",{"2":{"0":2,"4":1,"6":1,"12":2,"13":1,"33":1,"69":1,"269":1,"270":1,"276":1,"278":1}}],["duration>",{"2":{"305":1}}],["duration",{"2":{"305":2,"306":1}}],["during",{"2":{"276":1}}],["duplex",{"2":{"270":1}}],["driver",{"2":{"270":4}}],["d",{"2":{"109":2,"110":4,"111":4,"112":4,"113":2,"262":2,"306":1}}],["data=",{"2":{"164":1}}],["data",{"0":{"66":1,"78":1,"79":1,"80":1,"83":1,"88":1,"100":1,"102":1,"110":1,"111":1,"112":1,"113":1,"163":1,"220":1},"2":{"66":6,"67":2,"68":2,"69":5,"77":2,"78":7,"79":7,"80":4,"83":3,"88":2,"89":1,"100":4,"101":3,"102":3,"103":6,"110":4,"111":3,"112":2,"113":2,"163":5,"220":5,"224":5,"270":7}}],["daemon=true",{"2":{"22":1,"128":1,"261":1}}],["darwin",{"2":{"22":1}}],["day",{"2":{"1":1}}],["dog",{"2":{"282":1,"283":1}}],["double",{"2":{"278":1}}],["dot",{"2":{"222":1}}],["document",{"2":{"278":1}}],["documents",{"2":{"275":1}}],["documentation",{"2":{"12":1,"15":1,"267":1,"275":1,"277":3,"278":7}}],["docs",{"0":{"224":1},"2":{"224":3,"277":1,"297":1,"298":1}}],["docstring=method",{"2":{"222":1}}],["docstring=module",{"2":{"222":1}}],["docstring=class",{"2":{"222":1}}],["docstring=function",{"2":{"222":1}}],["docstring",{"0":{"198":1,"206":1,"209":1,"218":1},"2":{"222":16,"223":12,"278":2}}],["docker",{"0":{"7":1},"2":{"7":4,"277":2}}],["don",{"2":{"12":1,"13":1,"15":1}}],["download",{"2":{"12":1}}],["does",{"2":{"12":4,"228":1}}],["do",{"2":{"9":1,"12":1,"278":1}}],["did",{"2":{"278":1}}],["diagnose=false",{"2":{"160":1}}],["dict",{"0":{"75":1,"77":1,"78":1,"79":1,"80":1,"83":1,"99":1,"110":1,"111":1,"112":1,"113":1,"115":2,"116":1,"117":1,"118":1,"119":1,"120":1,"121":1,"125":1,"160":1,"163":2,"164":1,"186":1,"220":1,"245":1},"2":{"19":1,"73":1,"75":2,"77":3,"78":1,"79":1,"80":1,"83":1,"92":1,"93":1,"95":2,"99":3,"110":1,"111":1,"112":1,"113":1,"115":3,"116":1,"117":1,"118":1,"119":1,"120":1,"121":1,"125":1,"127":3,"135":1,"160":1,"163":2,"164":1,"186":2,"220":1,"224":1,"227":6}}],["disable",{"2":{"297":1,"298":1,"299":2,"300":2}}],["distribution",{"2":{"267":1}}],["disk",{"2":{"9":1}}],["display",{"0":{"229":2},"2":{"1":1,"227":7,"229":4}}],["different",{"2":{"3":2,"12":1}}],["dir",{"0":{"224":1,"228":1},"2":{"224":5,"228":16,"257":2}}],["dirname",{"2":{"220":2}}],["directories=",{"2":{"283":1}}],["directories",{"0":{"120":1,"153":1},"2":{"120":2,"153":3,"277":3}}],["directory",{"2":{"0":4,"1":1,"2":1,"6":1,"7":2,"120":6,"153":2,"228":1,"277":11}}],["direct",{"2":{"12":1,"269":1}}],["directly",{"2":{"9":1}}],["dirs",{"0":{"120":1},"2":{"1":1,"120":1,"121":1,"221":1,"257":1}}],["details",{"2":{"278":1}}],["details>",{"2":{"223":4}}],["detailed",{"2":{"2":1,"3":1,"278":1}}],["debounce",{"0":{"146":1},"2":{"146":1,"147":1,"148":1}}],["debugging",{"2":{"276":1}}],["debug",{"2":{"2":2,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"65":2,"116":1,"117":1,"118":1,"128":1,"139":1,"159":2,"160":2,"283":1}}],["deepcopy",{"2":{"115":1}}],["decorator",{"2":{"69":2,"101":2,"136":2,"146":2,"153":2,"169":2,"222":13,"270":1}}],["del",{"2":{"98":2}}],["deleted",{"0":{"150":1},"2":{"150":1}}],["delete",{"0":{"98":1,"112":1},"2":{"98":2,"111":1,"112":3}}],["deliver",{"0":{"72":1,"73":1,"125":2},"2":{"74":1,"76":1,"77":2,"78":2,"79":2,"80":1,"125":6,"129":6}}],["delivery",{"2":{"4":1,"129":1}}],["delay",{"0":{"22":1},"2":{"22":3}}],["deftype",{"0":{"188":1,"200":1},"1":{"189":1,"190":1,"191":1,"192":1,"193":1},"2":{"222":4,"223":1}}],["def",{"2":{"21":1,"45":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"68":1,"69":2,"78":1,"79":1,"80":1,"101":2,"102":1,"103":1,"105":1,"110":1,"111":1,"112":1,"113":1,"136":1,"146":2,"148":1,"153":2,"169":1,"170":1,"174":1,"179":1,"180":1,"181":1,"182":1,"183":1,"222":4,"223":2,"255":1,"263":1,"270":3,"283":1}}],["defaults",{"2":{"22":1,"23":1,"34":1,"35":1,"69":1}}],["default",{"0":{"34":1,"35":1,"97":1,"121":1,"195":1,"196":1,"197":1,"198":1,"200":1,"201":1,"203":1,"204":1,"208":1,"209":1,"210":1,"211":1,"212":1,"214":1,"215":1,"216":1,"217":1,"218":1,"239":1,"249":1,"250":1,"251":1,"257":1},"2":{"1":1,"2":3,"3":1,"34":3,"35":3,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"59":1,"60":1,"61":1,"62":1,"63":1,"70":1,"71":1,"72":2,"73":2,"92":1,"93":1,"97":5,"108":1,"109":1,"110":3,"121":1,"142":1,"144":1,"145":1,"157":1,"159":1,"176":1,"225":1,"257":1}}],["deprecated",{"2":{"35":1}}],["deploy",{"2":{"12":1}}],["depth=1",{"2":{"6":1,"7":1}}],["depend",{"2":{"9":1}}],["dependency",{"2":{"6":1}}],["dependencies",{"2":{"6":1,"9":1}}],["depends",{"2":{"3":1,"9":1}}],["depending",{"2":{"0":1}}],["description=",{"2":{"282":1}}],["description",{"0":{"240":1},"2":{"3":1,"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"59":1,"60":1,"61":1,"62":1,"63":1,"65":1,"66":1,"67":1,"68":1,"69":1,"70":1,"71":1,"72":1,"73":1,"74":1,"75":1,"76":1,"77":1,"87":1,"88":1,"89":1,"90":1,"92":1,"93":1,"96":1,"97":1,"98":1,"99":1,"100":1,"101":1,"102":1,"103":1,"108":1,"109":1,"115":1,"116":1,"117":1,"118":1,"119":1,"120":1,"121":1,"128":1,"129":1,"131":1,"133":1,"137":1,"138":1,"139":1,"142":1,"144":1,"145":1,"146":1,"153":1,"157":1,"160":1,"163":1,"164":1,"168":1,"169":1,"170":1,"176":1,"186":1,"219":1,"220":1,"222":1,"223":1,"224":1,"225":1,"227":1,"228":1,"229":1,"257":1,"259":1,"260":1,"261":1,"262":1,"263":1,"278":1,"294":1}}],["developer",{"2":{"276":1,"282":1}}],["developers",{"2":{"15":1}}],["developing",{"2":{"275":2}}],["develop",{"0":{"275":1},"1":{"276":1},"2":{"15":1,"275":1,"277":2}}],["development",{"0":{"274":1},"1":{"275":1,"276":1,"277":1,"278":1,"279":1},"2":{"2":3,"275":2,"276":1,"278":1,"279":1}}],["device",{"0":{"9":1},"1":{"10":1},"2":{"9":1}}],["dev",{"0":{"140":1,"141":1,"143":1},"1":{"142":1,"144":1,"145":1,"146":1,"147":1,"148":1,"149":1,"150":1,"151":1,"152":1,"153":1},"2":{"2":1,"276":1,"283":1,"286":1}}],["two",{"2":{"270":1}}],["target",{"0":{"129":3,"219":1},"2":{"129":5,"219":3,"222":5}}],["target=run",{"2":{"261":1}}],["target=self",{"2":{"128":1}}],["target=os",{"2":{"22":1}}],["targets",{"2":{"127":1,"128":1,"129":1,"130":1,"132":1,"133":1,"222":2}}],["task",{"2":{"102":1,"128":1}}],["tasks",{"2":{"45":2}}],["types",{"0":{"248":1}}],["type=plugintype",{"2":{"282":1}}],["type=attr",{"2":{"222":1}}],["type=ast",{"2":{"222":3}}],["type=def",{"2":{"222":1}}],["type=deftype",{"2":{"222":1}}],["type=self",{"2":{"164":2}}],["typeerror",{"2":{"65":1,"66":1,"74":1}}],["typealias",{"2":{"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"59":1,"60":1,"61":1,"62":1,"63":1,"144":1,"145":1,"176":1}}],["type",{"0":{"65":1,"163":2,"197":1,"200":1,"204":1,"229":1,"242":1},"2":{"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"59":1,"60":1,"61":1,"62":1,"63":1,"65":11,"66":7,"70":1,"71":1,"72":1,"73":1,"74":1,"92":1,"93":1,"108":1,"144":1,"145":1,"163":6,"164":2,"176":1,"222":11,"223":13,"227":2,"229":4,"278":5}}],["tuple=",{"2":{"129":1}}],["tuplestr",{"2":{"35":1}}],["tuple",{"0":{"35":1,"78":1,"79":1,"80":1,"110":1,"111":1,"112":1,"113":1,"125":2,"129":1,"153":1,"196":1},"2":{"35":1,"73":1,"78":1,"79":1,"80":1,"95":3,"110":1,"111":1,"112":1,"113":1,"125":2,"127":2,"153":1}}],["tests",{"2":{"277":1}}],["test",{"0":{"237":2},"2":{"229":1,"277":1}}],["text",{"2":{"223":3}}],["terminated",{"2":{"131":1}}],["terminate",{"0":{"131":1,"132":1},"2":{"22":1,"26":1,"131":2,"132":2}}],["telegram",{"2":{"12":1}}],["title",{"2":{"224":2}}],["time>",{"2":{"289":1}}],["timeout",{"2":{"131":1}}],["time",{"2":{"22":1,"36":1,"123":1,"141":1,"146":9,"158":1,"161":1,"165":1,"166":1,"171":1,"175":1,"184":1,"187":1,"226":1,"230":1,"231":1,"254":1,"256":1}}],["tip",{"2":{"6":1,"7":1,"292":1,"294":1,"296":1}}],["through",{"2":{"269":2}}],["thread",{"0":{"261":1},"2":{"22":1,"128":1,"261":2}}],["threading",{"0":{"107":1},"2":{"19":1,"22":1,"128":1,"261":1}}],["that",{"2":{"12":2,"269":1,"270":1,"275":2,"278":7}}],["this",{"2":{"12":3,"156":1,"253":1,"275":1,"277":2,"279":1}}],["their",{"2":{"267":1}}],["then",{"2":{"6":1,"12":1}}],["therefore",{"2":{"269":1}}],["there",{"2":{"1":1,"9":1,"12":1,"278":2}}],["these",{"2":{"0":1,"277":1}}],["the",{"2":{"0":6,"1":1,"2":4,"3":6,"4":2,"6":3,"7":2,"9":4,"12":20,"15":2,"16":3,"156":1,"227":1,"253":1,"265":1,"269":1,"270":2,"275":10,"276":1,"277":6,"278":24}}],["transfer",{"2":{"269":1}}],["traceback",{"2":{"170":1,"227":1}}],["trim",{"2":{"265":2}}],["tree",{"2":{"222":3}}],["try",{"2":{"20":1,"21":1,"98":1,"170":1,"227":1,"260":1}}],["trss",{"0":{"8":1},"2":{"8":1,"14":1,"267":1}}],["true时例如docs",{"2":{"224":1}}],["true",{"0":{"98":1,"153":1,"222":1,"228":1,"248":1},"2":{"1":3,"2":4,"12":1,"67":1,"103":1,"160":1,"181":1,"182":1,"224":1,"270":2,"276":1}}],["t",{"0":{"64":1,"66":1,"67":1,"68":1,"69":2},"1":{"65":1,"66":1,"67":1,"68":1,"69":1},"2":{"7":1,"12":1,"13":1,"15":1,"33":1,"59":1,"61":1,"62":1,"66":2,"67":2,"68":2,"69":7}}],["txt",{"2":{"6":1,"9":1}}],["tokyo",{"2":{"303":1}}],["token",{"2":{"2":2}}],["together",{"2":{"278":1}}],["top",{"0":{"224":1},"2":{"224":3}}],["tools",{"2":{"276":1}}],["too",{"2":{"12":1}}],["to",{"0":{"3":1,"10":1,"220":1,"262":1,"275":1},"1":{"276":1},"2":{"0":1,"1":6,"2":3,"3":2,"4":1,"6":6,"7":1,"8":2,"9":5,"12":17,"22":1,"23":1,"34":1,"35":1,"66":1,"69":1,"220":1,"224":1,"227":5,"228":2,"253":1,"262":2,"266":2,"269":3,"270":2,"275":5,"276":1,"278":7,"279":1}}],["toml",{"0":{"118":1},"2":{"0":2,"118":4,"119":2,"121":1}}],["world",{"2":{"288":5}}],["w",{"2":{"220":1}}],["write",{"0":{"220":1},"2":{"220":2,"224":1}}],["wrapper",{"0":{"263":1},"2":{"45":1,"69":2,"101":4,"129":1,"146":2,"153":2,"263":4}}],["weather",{"0":{"303":1},"1":{"304":1},"2":{"303":1,"304":1}}],["welcome",{"2":{"279":1}}],["we",{"2":{"15":1,"278":1,"279":1}}],["websocket",{"2":{"3":2}}],["watchdog",{"2":{"283":1,"286":1}}],["watch",{"2":{"282":1,"283":1}}],["walk",{"2":{"221":1,"222":1}}],["wait",{"0":{"146":1},"2":{"146":2}}],["waring=no",{"2":{"121":1}}],["waring",{"0":{"120":1,"121":1},"2":{"120":3,"121":3}}],["warning=no",{"2":{"120":1,"121":1}}],["warning",{"0":{"119":1,"228":1},"2":{"9":2,"35":1,"119":5,"120":1,"131":1,"133":1,"160":2,"227":1,"228":8,"292":1,"300":1}}],["way",{"2":{"8":1}}],["want",{"2":{"1":1}}],["what",{"2":{"278":1}}],["while",{"2":{"21":1,"67":1,"103":1,"270":2}}],["which",{"2":{"8":1,"12":2}}],["why",{"2":{"12":1}}],["where",{"2":{"278":1}}],["whether",{"2":{"1":3,"2":1}}],["when",{"2":{"0":2,"278":2}}],["windows10+",{"2":{"9":1}}],["windows",{"2":{"7":1,"9":2,"22":1}}],["without",{"2":{"9":1}}],["with",{"0":{"7":1,"35":1,"224":1},"2":{"7":1,"12":2,"35":1,"96":1,"97":1,"98":1,"105":1,"220":1,"222":1,"223":5,"224":3,"269":1,"270":1,"275":2}}],["will",{"2":{"0":3,"2":3,"9":2,"12":1,"35":1,"279":1}}],["ws",{"2":{"3":2}}],["poke",{"2":{"290":4}}],["possible",{"2":{"278":3}}],["port",{"2":{"1":2,"7":2}}],["pep8",{"2":{"278":1}}],["period\`",{"2":{"306":1}}],["period>",{"2":{"305":1}}],["period",{"2":{"305":2}}],["permit",{"2":{"278":1}}],["permission",{"2":{"12":1}}],["persists",{"2":{"12":1}}],["personal",{"2":{"0":1,"275":1}}],["pull",{"2":{"275":1}}],["publish=publish",{"2":{"129":1}}],["publish",{"0":{"100":1,"125":1},"2":{"95":2,"100":2,"103":2,"125":3}}],["page为页数",{"2":{"299":2}}],["page",{"2":{"299":2}}],["pacman",{"0":{"299":1},"1":{"300":1}}],["pack",{"2":{"294":2,"299":3}}],["packs",{"2":{"277":1}}],["param",{"2":{"296":1}}],["participate",{"2":{"279":1}}],["participation",{"2":{"275":1}}],["part",{"2":{"277":1,"278":1}}],["parts",{"2":{"262":2}}],["parent",{"2":{"222":4}}],["parse",{"2":{"222":1,"278":1}}],["parser",{"2":{"16":1}}],["parsed",{"2":{"12":1}}],["parsing",{"2":{"1":1}}],["pass",{"2":{"88":1,"89":1,"90":1}}],["passive=channel",{"2":{"129":1}}],["passive=chan",{"2":{"129":1}}],["passive",{"0":{"71":1,"73":1,"125":2},"2":{"71":1,"74":1,"76":1,"77":2,"78":2,"79":2,"80":1,"95":2,"96":1,"97":1,"98":1,"99":1,"109":1,"110":2,"111":2,"112":2,"113":1,"125":6,"129":5,"270":15}}],["pathlib",{"2":{"227":1}}],["paths=none",{"2":{"224":1}}],["paths",{"0":{"224":1},"2":{"224":4}}],["path=dot",{"2":{"222":1}}],["path",{"0":{"142":2,"214":1,"219":3,"222":1,"225":1,"227":2,"262":3},"2":{"7":1,"9":3,"12":2,"119":1,"120":2,"142":4,"219":8,"220":3,"221":1,"222":6,"224":22,"225":2,"227":16,"228":26,"262":11,"283":5}}],["pwd",{"2":{"7":3}}],["p",{"2":{"7":1,"306":1}}],["py即可启动插件",{"2":{"286":1}}],["pyo",{"2":{"283":1}}],["pycache",{"2":{"283":1}}],["pyc",{"2":{"283":1}}],["pycharm",{"2":{"36":1,"123":1,"141":1,"158":1,"161":1,"165":1,"166":1,"171":1,"175":1,"184":1,"187":1,"226":1,"230":1,"231":1,"254":1,"256":1}}],["py文件",{"2":{"282":1}}],["py文件或一个包含",{"2":{"282":1}}],["py的文件夹即可被识别为插件",{"2":{"282":1}}],["pyfile",{"0":{"225":1},"2":{"224":8,"225":1}}],["pyi",{"2":{"221":1,"222":1}}],["py",{"2":{"6":1,"12":1,"36":1,"123":1,"141":1,"158":1,"161":1,"165":2,"166":1,"171":1,"175":1,"184":1,"187":1,"221":1,"222":1,"224":1,"226":1,"228":3,"230":1,"231":1,"254":1,"256":2,"273":1,"277":1,"282":1,"283":1,"286":2,"294":1}}],["python格式",{"2":{"288":1}}],["pythonfrom",{"2":{"270":1,"273":1,"282":1,"286":1}}],["pythonimport",{"2":{"270":1,"283":1}}],["pythonasync",{"2":{"21":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"68":1,"103":1,"170":1,"181":1}}],["pythondef",{"2":{"19":1,"20":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"44":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"65":1,"66":1,"67":1,"69":1,"74":1,"75":1,"76":1,"77":1,"83":1,"87":1,"88":1,"89":1,"90":1,"95":1,"96":1,"97":1,"98":1,"99":1,"100":1,"101":1,"115":1,"116":1,"117":1,"118":1,"119":1,"120":1,"121":1,"125":1,"127":1,"128":1,"129":1,"130":1,"131":1,"132":1,"133":1,"135":1,"136":1,"137":1,"138":1,"139":1,"142":1,"146":1,"149":1,"150":1,"151":1,"152":1,"153":1,"159":1,"160":1,"163":1,"164":1,"168":1,"169":1,"172":1,"173":1,"174":1,"178":1,"179":1,"180":1,"186":1,"219":1,"220":1,"221":1,"222":1,"223":1,"224":1,"227":1,"228":1,"229":1,"247":1,"257":1,"259":1,"260":1,"261":1,"262":1,"263":1}}],["python",{"2":{"6":2,"9":3,"12":5,"45":1,"78":1,"79":1,"80":1,"102":1,"105":1,"110":1,"111":1,"112":1,"113":1,"148":1,"182":1,"183":1,"222":1,"255":1,"275":1,"278":1}}],["python3",{"2":{"6":1,"9":1}}],["pipe",{"2":{"65":2}}],["pip",{"2":{"6":1,"9":1,"227":1}}],["platform",{"2":{"22":3}}],["platforms",{"2":{"12":1}}],["playwright",{"2":{"12":2}}],["plugintype",{"0":{"229":1,"232":1,"242":2},"1":{"233":1,"234":1,"235":1,"236":1,"237":1},"2":{"229":5,"282":1}}],["pluginmetadata",{"0":{"238":1,"252":1},"1":{"239":1,"240":1,"241":1,"242":1,"243":1,"244":1,"245":1},"2":{"227":4,"282":2}}],["plugin的函数签名",{"2":{"142":1}}],["plugin",{"0":{"141":1,"185":1,"186":1,"226":1,"227":2,"228":2,"229":1,"230":1,"231":1,"246":1,"256":1},"1":{"142":1,"186":1,"227":1,"228":1,"229":1,"232":1,"233":1,"234":1,"235":1,"236":1,"237":1,"238":1,"239":1,"240":1,"241":1,"242":1,"243":1,"244":1,"245":1,"246":1,"247":2,"248":2,"249":2,"250":2,"251":2,"252":2,"257":1},"2":{"1":3,"4":1,"12":3,"14":1,"16":1,"19":2,"141":1,"186":2,"227":14,"228":5,"229":4,"253":1,"257":6,"266":4,"269":1,"275":2,"277":3,"282":4,"285":1,"286":2,"299":5}}],["plugins下创建一个文件",{"2":{"286":1}}],["plugins中添加你的插件路径",{"2":{"285":1}}],["plugins",{"0":{"142":1,"186":1,"228":1,"253":1,"254":1,"256":1,"257":1,"266":1},"1":{"255":1,"257":1},"2":{"1":1,"2":2,"9":3,"12":2,"19":1,"142":6,"186":2,"227":3,"228":9,"253":1,"257":4,"277":5,"283":1,"286":2}}],["please",{"0":{"10":1},"2":{"1":2,"2":1,"3":2,"7":2,"9":1,"12":4,"15":1,"275":3,"277":2,"278":2}}],["practices",{"0":{"264":1},"1":{"265":1,"266":1,"267":1}}],["private",{"0":{"222":1},"2":{"222":5}}],["priority",{"0":{"168":1,"173":1,"174":1},"2":{"168":4,"172":2,"173":2,"174":2}}],["prioritize",{"2":{"15":1}}],["print",{"2":{"19":1,"170":1,"224":1,"227":1}}],["profile",{"2":{"301":4}}],["profit",{"2":{"279":1}}],["property",{"0":{"193":2},"2":{"222":2}}],["problematic",{"2":{"12":1}}],["problem",{"2":{"12":1}}],["problems",{"2":{"1":1}}],["processfunctype",{"0":{"136":1,"137":1},"2":{"136":2,"137":1}}],["processmanager",{"0":{"126":1},"1":{"127":1,"128":1,"129":1,"130":1,"131":1,"132":1,"133":1},"2":{"19":2}}],["process",{"0":{"23":1,"30":2,"31":3,"40":1,"41":1,"42":1,"45":1,"48":3,"50":3,"54":1,"56":1,"133":1,"136":1},"2":{"19":1,"20":1,"22":1,"23":4,"26":1,"30":5,"31":6,"33":2,"42":2,"44":4,"45":2,"48":6,"50":6,"54":2,"56":2,"65":4,"69":3,"74":1,"76":1,"77":1,"96":1,"97":1,"98":1,"99":1,"101":3,"103":2,"127":1,"128":2,"130":2,"131":7,"133":2,"136":1,"138":1,"139":3,"269":2,"270":8,"283":2}}],["processing",{"2":{"12":1}}],["processes",{"2":{"9":1,"12":1,"23":1,"127":1,"131":2,"133":1,"135":1,"136":1,"137":1,"138":2,"139":1,"269":4}}],["provides",{"2":{"8":1,"16":3,"269":1}}],["provided",{"2":{"3":1,"12":1}}],["protocol",{"2":{"3":1,"12":1,"14":6}}],["production",{"2":{"3":1}}],["project",{"0":{"277":1},"2":{"0":1,"6":1,"7":1,"12":2,"15":2,"277":1,"279":2}}],["prefix",{"2":{"1":1}}],["preference",{"2":{"0":1}}],["y",{"2":{"229":1}}],["yellow>",{"2":{"160":1}}],["y>",{"2":{"20":2}}],["y>liteyuki",{"2":{"20":2}}],["yunzai",{"2":{"14":1}}],["yml格式的所有合法内容",{"2":{"297":1}}],["yml文件",{"2":{"294":1}}],["yml中填写一些信息",{"2":{"294":1}}],["yml",{"2":{"0":2,"119":1,"121":1,"276":1,"294":2,"297":1}}],["you",{"2":{"0":4,"1":1,"2":1,"3":1,"4":1,"6":1,"7":2,"9":2,"12":6,"13":2,"269":1,"275":5,"276":1,"278":2}}],["your",{"2":{"0":1,"7":1,"9":1,"227":2,"275":6,"279":1}}],["yamlweather",{"2":{"303":1}}],["yamlname",{"2":{"294":1}}],["yaml",{"0":{"116":1},"2":{"0":2,"1":1,"2":2,"116":4,"119":2,"121":1}}],["a包中的index",{"2":{"294":1}}],["applications",{"0":{"265":1}}],["application",{"0":{"233":2},"2":{"229":1,"277":4}}],["append",{"2":{"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"69":2,"101":2,"169":1,"172":1,"221":1,"222":5}}],["api格式为onebot",{"2":{"297":1}}],["api文档",{"2":{"291":1}}],["api也有差别",{"2":{"291":1}}],["api",{"0":{"291":1},"2":{"224":6,"267":2,"275":1,"289":3,"290":2,"297":3}}],["awaitable",{"2":{"38":1,"41":1}}],["await",{"2":{"21":1,"45":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"68":1,"69":2,"101":1,"103":2,"170":2,"179":2,"180":2,"181":1,"270":1,"289":1,"290":1,"292":1}}],["author",{"0":{"243":1},"2":{"12":1,"36":1,"123":1,"141":1,"158":1,"161":1,"165":1,"166":1,"171":1,"175":1,"184":1,"187":1,"226":1,"230":1,"231":1,"254":1,"256":1}}],["auto",{"2":{"1":2,"2":2}}],["automatically",{"2":{"0":1,"1":2}}],["after",{"0":{"28":1,"29":1,"32":1,"47":1,"49":1,"51":1,"53":1,"55":1,"57":1},"2":{"12":2,"28":2,"29":2,"32":2,"44":3,"47":2,"49":2,"51":2,"53":3,"55":3,"57":3,"270":1,"278":1}}],["abs",{"2":{"224":4}}],["absolute",{"2":{"7":1}}],["about",{"2":{"12":1}}],["able",{"2":{"9":1}}],["arbitrary",{"0":{"248":1}}],["arg",{"2":{"222":13,"223":16}}],["argv",{"2":{"22":1}}],["args=coro",{"2":{"261":1}}],["args=",{"2":{"22":1,"128":1,"222":2}}],["args",{"0":{"24":1,"45":1,"54":1,"56":1,"129":1,"136":1,"137":1,"196":1},"2":{"22":2,"24":2,"45":3,"54":2,"56":2,"129":3,"136":2,"137":3,"146":2,"222":8,"223":8,"263":2,"297":4}}],["arguments",{"2":{"19":1,"22":1,"23":1,"24":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"34":1,"35":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"65":1,"66":1,"69":1,"74":1,"75":1,"76":1,"87":1,"88":1,"96":1,"97":1,"98":1,"100":1,"101":1,"102":1,"115":1,"129":1,"131":1,"133":1,"137":1,"138":1,"142":1,"153":1,"164":1,"168":1,"170":1,"219":1,"220":1,"222":1,"223":1,"224":1,"227":1,"228":1,"229":1,"259":1,"260":1,"261":1,"262":1,"263":1}}],["arch",{"2":{"8":1}}],["are",{"2":{"1":1,"7":1,"9":1,"12":2,"269":1,"275":4,"277":1,"278":2}}],["active和",{"2":{"270":1}}],["active和chan",{"2":{"129":1}}],["active=channel",{"2":{"129":1}}],["active=chan",{"2":{"129":1}}],["active",{"0":{"70":1,"72":1,"125":2},"2":{"23":6,"70":1,"95":2,"100":1,"103":1,"125":6,"129":4,"270":13}}],["activate",{"2":{"6":4}}],["acknowledgements",{"0":{"16":1}}],["account",{"2":{"13":1,"275":1}}],["according",{"2":{"12":1}}],["accesstoken",{"2":{"3":2}}],["access",{"2":{"2":2}}],["avoid",{"2":{"6":1,"12":1}}],["available",{"2":{"1":1}}],["a",{"2":{"3":1,"6":2,"8":1,"12":4,"13":1,"14":3,"15":1,"66":1,"67":1,"115":1,"224":2,"228":1,"262":1,"265":1,"269":1,"270":1,"275":4,"278":4,"279":1,"282":1}}],["annassign",{"2":{"222":1}}],["annotation",{"2":{"222":6}}],["an",{"2":{"12":1,"13":1,"66":1,"74":1}}],["anyone",{"2":{"279":1}}],["any=none",{"2":{"34":1,"35":1}}],["any",{"0":{"34":2,"35":2,"69":2,"78":1,"79":1,"80":1,"83":1,"96":1,"97":2,"99":1,"100":1,"102":1,"110":1,"111":1,"112":1,"113":1,"115":2,"116":1,"117":1,"118":1,"119":1,"120":1,"121":1,"125":4,"152":1,"163":2,"164":1,"205":1,"245":1,"259":1,"263":1},"2":{"2":1,"4":1,"19":1,"34":3,"35":3,"37":1,"38":1,"40":1,"41":1,"59":1,"62":2,"69":7,"72":1,"73":1,"76":1,"77":1,"78":1,"79":1,"80":1,"83":1,"95":3,"96":1,"97":4,"99":3,"100":1,"101":1,"102":1,"110":1,"111":1,"112":1,"113":1,"115":2,"116":1,"117":1,"118":1,"119":1,"120":1,"121":1,"125":4,"152":1,"163":2,"164":1,"174":1,"222":7,"224":1,"259":1,"263":1}}],["and",{"2":{"0":6,"4":1,"6":2,"9":2,"12":7,"15":1,"66":1,"153":1,"180":2,"222":7,"223":1,"228":3,"265":1,"267":1,"269":3,"270":2,"275":4,"276":2,"277":2,"278":9,"279":1,"283":2}}],["adapter",{"2":{"3":1,"4":2}}],["advanced",{"2":{"2":1}}],["addition",{"2":{"278":1}}],["add",{"0":{"129":1,"137":1,"172":1},"2":{"2":1,"129":1,"137":1,"160":1,"172":1,"173":1,"228":1,"278":1}}],["address",{"2":{"1":1,"3":2}}],["amp",{"0":{"180":1},"2":{"7":2}}],["am",{"2":{"1":1,"270":6}}],["attributes=",{"2":{"222":2}}],["attributes",{"0":{"211":1,"217":1},"2":{"222":2,"223":2}}],["attributeinfo",{"0":{"202":1,"211":1,"217":1},"1":{"203":1,"204":1,"205":1,"206":1},"2":{"222":2}}],["attr",{"0":{"106":1,"107":1,"189":1,"190":1,"191":1,"192":1,"193":1,"195":1,"196":1,"197":1,"198":1,"199":1,"200":1,"201":1,"203":1,"204":1,"205":1,"206":1,"208":1,"209":1,"210":1,"211":1,"212":1,"214":1,"215":1,"216":1,"217":1,"218":1,"233":1,"234":1,"235":1,"236":1,"237":1,"239":1,"240":1,"241":1,"242":1,"243":1,"244":1,"245":1,"248":1,"249":1,"250":1,"251":1,"252":1},"2":{"222":2,"223":14}}],["at",{"2":{"1":1,"9":2}}],["already",{"2":{"65":2,"74":1,"275":1}}],["alive",{"0":{"21":1,"133":1},"2":{"21":2,"131":1,"133":2}}],["alconna",{"2":{"1":2,"2":2,"16":1}}],["allowing",{"2":{"266":2}}],["allowed",{"0":{"248":1}}],["allow",{"2":{"2":2}}],["all",{"0":{"99":1,"113":1,"128":1,"130":1,"132":1,"139":1},"2":{"0":1,"2":1,"20":1,"22":1,"26":1,"36":1,"99":2,"112":1,"113":3,"123":1,"128":1,"130":1,"132":1,"139":1,"141":1,"158":1,"161":1,"165":1,"166":1,"171":1,"175":1,"184":1,"187":1,"226":1,"230":1,"231":1,"254":1,"256":1,"267":1}}],["assumes",{"2":{"275":1}}],["assign",{"2":{"222":2}}],["ast",{"2":{"222":29}}],["asynchronous",{"2":{"263":1}}],["async=isinstance",{"2":{"222":2}}],["asyncfunctiondef",{"2":{"222":3}}],["async",{"0":{"21":1,"38":1,"41":1,"45":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"62":1,"68":2,"102":1,"103":1,"170":1,"181":1,"182":1,"183":1,"201":1,"255":1,"263":1},"2":{"39":1,"42":1,"45":3,"60":1,"63":1,"68":1,"69":1,"92":1,"93":1,"101":1,"102":1,"103":1,"174":1,"179":1,"180":1,"182":1,"183":1,"223":4,"255":1,"263":2,"270":2}}],["asyncio",{"2":{"19":2,"20":1,"21":1,"45":1,"68":1,"102":1,"260":5,"270":2}}],["ask",{"2":{"15":1}}],["asked",{"0":{"12":1}}],["as",{"2":{"0":1,"3":1,"12":2,"98":1,"220":1,"222":1,"227":1,"260":1,"276":1,"278":6}}]],"serializationVersion":2}`;export{e as default}; diff --git a/assets/chunks/@localSearchIndexroot.B7VV9A1e.js b/assets/chunks/@localSearchIndexroot.B7VV9A1e.js deleted file mode 100644 index bf956754..00000000 --- a/assets/chunks/@localSearchIndexroot.B7VV9A1e.js +++ /dev/null @@ -1 +0,0 @@ -const e=`{"documentCount":307,"nextId":307,"documentIds":{"0":"/deploy/config.html#配置","1":"/deploy/config.html#基础配置项","2":"/deploy/config.html#其他配置","3":"/deploy/config.html#示例-与nonebot对接的onebot实现端配置","4":"/deploy/config.html#其他","5":"/deploy/fandq.html#答疑","6":"/deploy/fandq.html#常见问题","7":"/deploy/fandq.html#其他问题","8":"/deploy/fandq.html#推荐方案-qq","9":"/deploy/fandq.html#推荐方案-minecraft","10":"/deploy/fandq.html#鸣谢","11":"/deploy/install.html#安装","12":"/deploy/install.html#常规部署","13":"/deploy/install.html#使用docker构建","14":"/deploy/install.html#使用trss-scripts部署","15":"/deploy/install.html#装置要求","16":"/deploy/install.html#其他问题请移步至答疑","17":"/dev/api/bot/#模块-liteyuki-bot","18":"/dev/api/bot/#class-liteyukibot","19":"/dev/api/bot/#func-init-self-kwargs-none","20":"/dev/api/bot/#func-run-self","21":"/dev/api/bot/#async-func-keep-alive-self","22":"/dev/api/bot/#func-restart-self-delay-int-0","23":"/dev/api/bot/#func-restart-process-self-name-optional-str-none","24":"/dev/api/bot/#func-init-self-args-kwargs","25":"/dev/api/bot/#func-init-logger-self","26":"/dev/api/bot/#func-stop-self","27":"/dev/api/bot/#func-on-before-start-self-func-lifespan-func-lifespan-func","28":"/dev/api/bot/#func-on-after-start-self-func-lifespan-func","29":"/dev/api/bot/#func-on-after-shutdown-self-func-lifespan-func","30":"/dev/api/bot/#func-on-before-process-shutdown-self-func-process-lifespan-func","31":"/dev/api/bot/#func-on-before-process-restart-self-func-process-lifespan-func-process-lifespan-func","32":"/dev/api/bot/#func-on-after-restart-self-func-lifespan-func","33":"/dev/api/bot/#func-get-bot-liteyukibot","34":"/dev/api/bot/#func-get-config-key-str-default-any-none-any","35":"/dev/api/bot/#func-get-config-with-compat-key-str-compat-keys-tuple-str-default-any-none-any","36":"/dev/api/bot/lifespan.html#模块-liteyuki-bot-lifespan","37":"/dev/api/bot/lifespan.html#var-sync-lifespan-func","38":"/dev/api/bot/lifespan.html#var-async-lifespan-func","39":"/dev/api/bot/lifespan.html#var-lifespan-func","40":"/dev/api/bot/lifespan.html#var-sync-process-lifespan-func","41":"/dev/api/bot/lifespan.html#var-async-process-lifespan-func","42":"/dev/api/bot/lifespan.html#var-process-lifespan-func","43":"/dev/api/bot/lifespan.html#class-lifespan","44":"/dev/api/bot/lifespan.html#func-init-self-none","45":"/dev/api/bot/lifespan.html#async-func-run-funcs-funcs-sequence-lifespan-func-process-lifespan-func-args-kwargs-none","46":"/dev/api/bot/lifespan.html#func-on-before-start-self-func-lifespan-func-lifespan-func","47":"/dev/api/bot/lifespan.html#func-on-after-start-self-func-lifespan-func-lifespan-func","48":"/dev/api/bot/lifespan.html#func-on-before-process-shutdown-self-func-process-lifespan-func-process-lifespan-func","49":"/dev/api/bot/lifespan.html#func-on-after-shutdown-self-func-lifespan-func-lifespan-func","50":"/dev/api/bot/lifespan.html#func-on-before-process-restart-self-func-process-lifespan-func-process-lifespan-func","51":"/dev/api/bot/lifespan.html#func-on-after-restart-self-func-lifespan-func-lifespan-func","52":"/dev/api/bot/lifespan.html#async-func-before-start-self-none","53":"/dev/api/bot/lifespan.html#async-func-after-start-self-none","54":"/dev/api/bot/lifespan.html#async-func-before-process-shutdown-self-args-kwargs-none","55":"/dev/api/bot/lifespan.html#async-func-after-shutdown-self-none","56":"/dev/api/bot/lifespan.html#async-func-before-process-restart-self-args-kwargs-none","57":"/dev/api/bot/lifespan.html#async-func-after-restart-self-none","58":"/dev/api/comm/channel.html#模块-liteyuki-comm-channel","59":"/dev/api/comm/channel.html#var-sync-on-receive-func","60":"/dev/api/comm/channel.html#var-on-receive-func","61":"/dev/api/comm/channel.html#var-sync-filter-func","62":"/dev/api/comm/channel.html#var-async-filter-func","63":"/dev/api/comm/channel.html#var-filter-func","64":"/dev/api/comm/channel.html#class-channel-generic-t","65":"/dev/api/comm/channel.html#func-init-self-name-str-type-check-optional-bool-none","66":"/dev/api/comm/channel.html#func-send-self-data-t","67":"/dev/api/comm/channel.html#func-receive-self-t","68":"/dev/api/comm/channel.html#async-func-async-receive-self-t","69":"/dev/api/comm/channel.html#func-on-receive-self-filter-func-optional-filter-func-none-callable-callable-t-any-callable-t-any","70":"/dev/api/comm/channel.html#var-active-channel","71":"/dev/api/comm/channel.html#var-passive-channel","72":"/dev/api/comm/channel.html#var-channel-deliver-active-channel","73":"/dev/api/comm/channel.html#var-channel-deliver-passive-channel","74":"/dev/api/comm/channel.html#func-set-channel-name-str-channel-channel","75":"/dev/api/comm/channel.html#func-set-channels-channels-dict-str-channel","76":"/dev/api/comm/channel.html#func-get-channel-name-str-channel","77":"/dev/api/comm/channel.html#func-get-channels-dict-str-channel","78":"/dev/api/comm/channel.html#func-on-set-channel-data-tuple-str-dict-str-any","79":"/dev/api/comm/channel.html#func-on-get-channel-data-tuple-str-dict-str-any","80":"/dev/api/comm/channel.html#func-on-get-channels-data-tuple-str-dict-str-any","81":"/dev/api/comm/event.html#模块-liteyuki-comm-event","82":"/dev/api/comm/event.html#class-event","83":"/dev/api/comm/event.html#func-init-self-name-str-data-dict-str-any","84":"/dev/api/comm/#模块-liteyuki-comm","85":"/dev/api/comm/socks_channel.html#模块-liteyuki-comm-socks-channel","86":"/dev/api/comm/socks_channel.html#class-sockschannel","87":"/dev/api/comm/socks_channel.html#func-init-self-name-str","88":"/dev/api/comm/socks_channel.html#func-send-self-data","89":"/dev/api/comm/socks_channel.html#func-receive-self","90":"/dev/api/comm/socks_channel.html#func-close-self","91":"/dev/api/comm/storage.html#模块-liteyuki-comm-storage","92":"/dev/api/comm/storage.html#var-on-main-subscriber-receive-funcs","93":"/dev/api/comm/storage.html#var-on-sub-subscriber-receive-funcs","94":"/dev/api/comm/storage.html#class-keyvaluestore","95":"/dev/api/comm/storage.html#func-init-self","96":"/dev/api/comm/storage.html#func-set-self-key-str-value-any-none","97":"/dev/api/comm/storage.html#func-get-self-key-str-default-optional-any-none-optional-any","98":"/dev/api/comm/storage.html#func-delete-self-key-str-ignore-key-error-bool-true-none","99":"/dev/api/comm/storage.html#func-get-all-self-dict-str-any","100":"/dev/api/comm/storage.html#func-publish-self-channel-str-data-any-none","101":"/dev/api/comm/storage.html#func-on-subscriber-receive-self-channel-str-callable-on-receive-func-on-receive-func","102":"/dev/api/comm/storage.html#async-func-run-subscriber-receive-funcs-channel-str-data-any","103":"/dev/api/comm/storage.html#async-func-start-receive-loop-self","104":"/dev/api/comm/storage.html#class-globalkeyvaluestore","105":"/dev/api/comm/storage.html#func-get-instance-cls","106":"/dev/api/comm/storage.html#attr-instance-none","107":"/dev/api/comm/storage.html#attr-lock-threading-lock","108":"/dev/api/comm/storage.html#var-shared-memory","109":"/dev/api/comm/storage.html#var-ref-count","110":"/dev/api/comm/storage.html#func-on-get-data-tuple-str-dict-str-any","111":"/dev/api/comm/storage.html#func-on-set-data-tuple-str-dict-str-any","112":"/dev/api/comm/storage.html#func-on-delete-data-tuple-str-dict-str-any","113":"/dev/api/comm/storage.html#func-on-get-all-data-tuple-str-dict-str-any","114":"/dev/api/config.html#模块-liteyuki-config","115":"/dev/api/config.html#func-flat-config-config-dict-str-any-dict-str-any","116":"/dev/api/config.html#func-load-from-yaml-file-str-dict-str-any","117":"/dev/api/config.html#func-load-from-json-file-str-dict-str-any","118":"/dev/api/config.html#func-load-from-toml-file-str-dict-str-any","119":"/dev/api/config.html#func-load-from-files-files-str-no-warning-bool-false-dict-str-any","120":"/dev/api/config.html#func-load-configs-from-dirs-directories-str-no-waring-bool-false-dict-str-any","121":"/dev/api/config.html#func-load-config-in-default-no-waring-bool-false-dict-str-any","122":"/dev/api/dev/#模块-liteyuki-dev","123":"/dev/api/core/manager.html#模块-liteyuki-core-manager","124":"/dev/api/core/manager.html#class-channeldeliver","125":"/dev/api/core/manager.html#func-init-self-active-channel-any-passive-channel-any-channel-deliver-active-channel-channel-any-channel-deliver-passive-channel-tuple-str-dict-publish-channel-tuple-str-any","126":"/dev/api/core/manager.html#class-processmanager","127":"/dev/api/core/manager.html#func-init-self-lifespan-lifespan","128":"/dev/api/core/manager.html#func-start-all-self","129":"/dev/api/core/manager.html#func-add-target-self-name-str-target-target-func-args-tuple-kwargs-none","130":"/dev/api/core/manager.html#func-join-all-self","131":"/dev/api/core/manager.html#func-terminate-self-name-str","132":"/dev/api/core/manager.html#func-terminate-all-self","133":"/dev/api/core/manager.html#func-is-process-alive-self-name-str-bool","134":"/dev/api/core/manager.html#class-subprocessmanager","135":"/dev/api/core/manager.html#func-init-self","136":"/dev/api/core/manager.html#func-new-process-self-name-str-args-kwargs-callable-processfunctype-none","137":"/dev/api/core/manager.html#func-add-self-name-str-func-processfunctype-args-kwargs","138":"/dev/api/core/manager.html#func-start-self-name-str","139":"/dev/api/core/manager.html#func-start-all-self-1","140":"/dev/api/core/#模块-liteyuki-core","141":"/dev/api/dev/observer.html#模块-liteyuki-dev-observer","142":"/dev/api/dev/observer.html#var-callback-func","143":"/dev/api/dev/observer.html#var-filter-func","144":"/dev/api/dev/observer.html#func-debounce-wait","145":"/dev/api/dev/observer.html#class-codemodifiedhandler-filesystemeventhandler","146":"/dev/api/dev/observer.html#func-on-modified-self-event","147":"/dev/api/dev/observer.html#func-on-created-self-event","148":"/dev/api/dev/observer.html#func-on-deleted-self-event","149":"/dev/api/dev/observer.html#func-on-moved-self-event","150":"/dev/api/dev/observer.html#func-on-any-event-self-event","151":"/dev/api/dev/observer.html#func-on-file-system-event-directories-tuple-str-recursive-bool-true-event-filter-filter-func-none-callable-callback-func-callback-func","152":"/dev/api/dev/plugin.html#模块-liteyuki-dev-plugin","153":"/dev/api/dev/plugin.html#func-run-plugins-module-path-str-path","154":"/dev/api/exception.html#模块-liteyuki-exception","155":"/dev/api/exception.html#class-liteyukiexception-baseexception","156":"/dev/api/#模块-liteyuki","157":"/dev/api/#var-version","158":"/dev/api/log.html#模块-liteyuki-log","159":"/dev/api/log.html#func-get-format-level-str-str","160":"/dev/api/log.html#func-init-log-config-dict","161":"/dev/api/message/event.html#模块-liteyuki-message-event","162":"/dev/api/message/event.html#class-messageevent","163":"/dev/api/message/event.html#func-init-self-bot-id-str-message-list-dict-str-any-str-message-type-str-raw-message-str-session-id-str-user-id-str-session-type-str-receive-channel-optional-channel-messageevent-none-data-optional-dict-str-any-none","164":"/dev/api/message/event.html#func-reply-self-message-str-dict-str-any","165":"/dev/api/message/#模块-liteyuki-message","166":"/dev/api/message/matcher.html#模块-liteyuki-message-matcher","167":"/dev/api/message/matcher.html#class-matcher","168":"/dev/api/message/matcher.html#func-init-self-rule-rule-priority-int-block-bool","169":"/dev/api/message/matcher.html#func-handle-self-callable-eventhandler-eventhandler","170":"/dev/api/message/matcher.html#async-func-run-self-event-messageevent-none","171":"/dev/api/message/on.html#模块-liteyuki-message-on","172":"/dev/api/message/on.html#func-add-matcher-matcher-matcher","173":"/dev/api/message/on.html#func-on-message-rule-rule-empty-rule-priority-int-0-block-bool-false-matcher","174":"/dev/api/message/on.html#func-on-keywords-keywords-list-str-rule-empty-rule-priority-int-0-block-bool-false-matcher","175":"/dev/api/message/rule.html#模块-liteyuki-message-rule","176":"/dev/api/message/rule.html#var-rulehandlerfunc","177":"/dev/api/message/rule.html#class-rule","178":"/dev/api/message/rule.html#func-init-self-handler-rulehandlerfunc","179":"/dev/api/message/rule.html#func-self-other-rule-rule","180":"/dev/api/message/rule.html#func-self-other-rule-rule-1","181":"/dev/api/message/rule.html#async-func-self-event-messageevent-bool","182":"/dev/api/message/rule.html#async-func-empty-rule-event-messageevent-bool","183":"/dev/api/message/rule.html#async-func-is-su-rule-event-messageevent-bool","184":"/dev/api/message/session.html#模块-liteyuki-message-session","185":"/dev/api/mkdoc.html#模块-liteyuki-mkdoc","186":"/dev/api/mkdoc.html#class-deftype-enum","187":"/dev/api/mkdoc.html#attr-function-function","188":"/dev/api/mkdoc.html#attr-method-method","189":"/dev/api/mkdoc.html#attr-static-method-staticmethod","190":"/dev/api/mkdoc.html#attr-class-method-classmethod","191":"/dev/api/mkdoc.html#attr-property-property","192":"/dev/api/mkdoc.html#class-functioninfo-basemodel","193":"/dev/api/mkdoc.html#attr-name-str-no-default","194":"/dev/api/mkdoc.html#attr-args-list-tuple-str-str-no-default","195":"/dev/api/mkdoc.html#attr-return-type-str-no-default","196":"/dev/api/mkdoc.html#attr-docstring-str-no-default","197":"/dev/api/mkdoc.html#attr-source-code-str","198":"/dev/api/mkdoc.html#attr-type-deftype-no-default","199":"/dev/api/mkdoc.html#attr-is-async-bool-no-default","200":"/dev/api/mkdoc.html#class-attributeinfo-basemodel","201":"/dev/api/mkdoc.html#attr-name-str-no-default-1","202":"/dev/api/mkdoc.html#attr-type-str-no-default","203":"/dev/api/mkdoc.html#attr-value-any-none","204":"/dev/api/mkdoc.html#attr-docstring-str","205":"/dev/api/mkdoc.html#class-classinfo-basemodel","206":"/dev/api/mkdoc.html#attr-name-str-no-default-2","207":"/dev/api/mkdoc.html#attr-docstring-str-no-default-1","208":"/dev/api/mkdoc.html#attr-methods-list-functioninfo-no-default","209":"/dev/api/mkdoc.html#attr-attributes-list-attributeinfo-no-default","210":"/dev/api/mkdoc.html#attr-inherit-list-str-no-default","211":"/dev/api/mkdoc.html#class-moduleinfo-basemodel","212":"/dev/api/mkdoc.html#attr-module-path-str-no-default","213":"/dev/api/mkdoc.html#attr-functions-list-functioninfo-no-default","214":"/dev/api/mkdoc.html#attr-classes-list-classinfo-no-default","215":"/dev/api/mkdoc.html#attr-attributes-list-attributeinfo-no-default-1","216":"/dev/api/mkdoc.html#attr-docstring-str-no-default-2","217":"/dev/api/mkdoc.html#func-get-relative-path-base-path-str-target-path-str-str","218":"/dev/api/mkdoc.html#func-write-to-files-file-data-dict-str-str","219":"/dev/api/mkdoc.html#func-get-file-list-module-folder-str","220":"/dev/api/mkdoc.html#func-get-module-info-normal-file-path-str-ignore-private-bool-true-moduleinfo","221":"/dev/api/mkdoc.html#func-generate-markdown-module-info-moduleinfo-front-matter-none-lang-str-zh-cn-str","222":"/dev/api/mkdoc.html#func-generate-docs-module-folder-str-output-dir-str-with-top-bool-false-lang-str-zh-cn-ignored-paths-none","223":"/dev/api/mkdoc.html#var-no-module-name-pyfile-path","224":"/dev/api/plugin/#模块-liteyuki-plugin","225":"/dev/api/plugin/#func-get-loaded-plugins-dict-str-plugin","226":"/dev/api/plugin/load.html#模块-liteyuki-plugin-load","227":"/dev/api/plugin/load.html#func-load-plugin-module-path-str-path-optional-plugin","228":"/dev/api/plugin/load.html#func-load-plugins-plugin-dir-str-ignore-warning-bool-true-set-plugin","229":"/dev/api/plugin/load.html#func-format-display-name-display-name-str-plugin-type-plugintype-str","230":"/dev/api/plugin/manager.html#模块-liteyuki-plugin-manager","231":"/dev/api/plugin/model.html#模块-liteyuki-plugin-model","232":"/dev/api/plugin/model.html#class-plugintype-enum","233":"/dev/api/plugin/model.html#attr-application-application","234":"/dev/api/plugin/model.html#attr-service-service","235":"/dev/api/plugin/model.html#attr-module-module","236":"/dev/api/plugin/model.html#attr-unclassified-unclassified","237":"/dev/api/plugin/model.html#attr-test-test","238":"/dev/api/plugin/model.html#class-pluginmetadata-basemodel","239":"/dev/api/plugin/model.html#attr-name-str-no-default","240":"/dev/api/plugin/model.html#attr-description-str","241":"/dev/api/plugin/model.html#attr-usage-str","242":"/dev/api/plugin/model.html#attr-type-plugintype-plugintype-unclassified","243":"/dev/api/plugin/model.html#attr-author-str","244":"/dev/api/plugin/model.html#attr-homepage-str","245":"/dev/api/plugin/model.html#attr-extra-dict-str-any","246":"/dev/api/plugin/model.html#class-plugin-basemodel","247":"/dev/api/plugin/model.html#func-hash-self","248":"/dev/api/plugin/model.html#attr-model-config-arbitrary-types-allowed-true","249":"/dev/api/plugin/model.html#attr-name-str-no-default-1","250":"/dev/api/plugin/model.html#attr-module-moduletype-no-default","251":"/dev/api/plugin/model.html#attr-module-name-str-no-default","252":"/dev/api/plugin/model.html#attr-metadata-optional-pluginmetadata-none","253":"/dev/api/plugins/#模块-liteyuki-plugins","254":"/dev/api/plugins/liteecho.html#模块-liteyuki-plugins-liteecho","255":"/dev/api/plugins/liteecho.html#async-func-liteecho-event-messageevent","256":"/dev/api/plugins/plugin_loader/#模块-liteyuki-plugins-plugin-loader","257":"/dev/api/plugins/plugin_loader/#func-default-plugins-loader","258":"/dev/api/utils.html#模块-liteyuki-utils","259":"/dev/api/utils.html#func-is-coroutine-callable-call-callable-any-bool","260":"/dev/api/utils.html#func-run-coroutine-coro-coroutine","261":"/dev/api/utils.html#func-run-coroutine-in-thread-coro-coroutine","262":"/dev/api/utils.html#func-path-to-module-name-path-path-str","263":"/dev/api/utils.html#func-async-wrapper-func-callable-any-callable-coroutine","264":"/dev/best_practices.html#最佳实践","265":"/dev/best_practices.html#机器人应用","266":"/dev/best_practices.html#插件","267":"/dev/best_practices.html#其他","268":"/dev/comm.html#通道通信","269":"/dev/comm.html#简介","270":"/dev/comm.html#示例","271":"/dev/comm.html#共享内存通信","272":"/dev/comm.html#简介-1","273":"/dev/comm.html#示例-1","274":"/dev/guide.html#开发指南","275":"/dev/guide.html#如何开发","276":"/dev/guide.html#建议","277":"/dev/guide.html#项目结构","278":"/dev/guide.html#规范化","279":"/dev/guide.html#最后","280":"/dev/lyfunc.html#轻雪函数","281":"/dev/lyfunc.html#函数文件","282":"/dev/lyfunc.html#命令文档","283":"/dev/lyfunc.html#示例","284":"/dev/lyfunc.html#api","285":"/dev/lyfunc.html#结束关键字","286":"/dev/resource.html#简介","287":"/dev/resource.html#加载资源包","288":"/dev/plugin.html#简介","289":"/dev/plugin.html#开始","290":"/dev/plugin.html#创建插件","291":"/dev/plugin.html#编写逻辑部分","292":"/dev/plugin.html#加载插件","293":"/dev/plugin.html#方法1","294":"/dev/plugin.html#方法2","295":"/usage/agreement.html#用户协议","296":"/usage/basic.html#基础插件","297":"/usage/basic.html#轻雪命令liteyuki-command","298":"/usage/basic.html#命令别名","299":"/usage/basic.html#插件-包管理器-liteyuki-pacman","300":"/usage/basic.html#命令别名-1","301":"/usage/basic.html#用户管理liteyuki-user","302":"/usage/extra.html#功能插件命令","303":"/usage/extra.html#轻雪天气liteyuki-weather","304":"/usage/extra.html#命令别名","305":"/usage/extra.html#统计信息liteyuki-statistics","306":"/usage/extra.html#命令别名-1"},"fieldIds":{"title":0,"titles":1,"text":2},"fieldLength":{"0":[1,1,16],"1":[1,1,51],"2":[1,1,48],"3":[2,1,28],"4":[1,1,3],"5":[1,1,1],"6":[1,1,55],"7":[1,1,2],"8":[3,1,30],"9":[3,1,6],"10":[1,1,8],"11":[1,1,1],"12":[1,1,48],"13":[1,1,35],"14":[2,1,7],"15":[1,1,39],"16":[1,2,1],"17":[3,1,1],"18":[2,3,1],"19":[6,5,57],"20":[4,5,28],"21":[6,5,30],"22":[8,5,59],"23":[10,5,35],"24":[6,5,15],"25":[5,5,13],"26":[4,5,15],"27":[8,5,20],"28":[8,5,19],"29":[8,5,20],"30":[10,5,22],"31":[10,5,23],"32":[8,5,20],"33":[5,3,34],"34":[10,3,26],"35":[14,3,45],"36":[4,1,24],"37":[4,4,8],"38":[4,4,9],"39":[3,4,11],"40":[5,4,9],"41":[5,4,10],"42":[4,4,12],"43":[2,4,1],"44":[5,6,31],"45":[13,6,38],"46":[8,6,21],"47":[8,6,21],"48":[10,6,23],"49":[8,6,21],"50":[10,6,23],"51":[8,6,21],"52":[7,6,20],"53":[7,6,20],"54":[10,6,23],"55":[7,6,21],"56":[10,6,23],"57":[7,6,21],"58":[4,1,3],"59":[5,4,9],"60":[4,4,12],"61":[4,4,9],"62":[4,4,11],"63":[3,4,11],"64":[5,4,1],"65":[12,9,72],"66":[6,9,44],"67":[5,9,29],"68":[6,9,28],"69":[15,9,64],"70":[3,4,9],"71":[3,4,9],"72":[4,4,11],"73":[4,4,12],"74":[7,4,40],"75":[7,4,19],"76":[7,4,31],"77":[8,4,37],"78":[10,4,25],"79":[10,4,28],"80":[10,4,27],"81":[4,1,2],"82":[2,4,1],"83":[9,6,13],"84":[3,1,8],"85":[5,1,2],"86":[2,5,1],"87":[6,7,20],"88":[5,7,13],"89":[4,7,13],"90":[4,7,10],"91":[4,1,4],"92":[6,4,12],"93":[6,4,12],"94":[2,4,1],"95":[4,6,30],"96":[9,6,31],"97":[12,6,37],"98":[12,6,42],"99":[9,6,30],"100":[9,6,21],"101":[13,6,52],"102":[11,6,29],"103":[7,6,42],"104":[2,4,2],"105":[5,6,18],"106":[4,6,1],"107":[6,6,1],"108":[3,4,9],"109":[3,4,17],"110":[9,4,29],"111":[9,4,27],"112":[9,4,27],"113":[10,4,27],"114":[3,1,14],"115":[8,3,38],"116":[10,3,35],"117":[10,3,34],"118":[10,3,34],"119":[14,3,43],"120":[16,3,49],"121":[15,3,34],"122":[3,1,2],"123":[4,1,24],"124":[2,4,1],"125":[14,6,18],"126":[2,4,1],"127":[6,6,17],"128":[5,6,28],"129":[14,6,48],"130":[5,6,13],"131":[6,6,31],"132":[5,6,12],"133":[9,6,27],"134":[2,4,1],"135":[4,6,12],"136":[13,6,23],"137":[9,6,23],"138":[6,6,22],"139":[5,6,20],"140":[3,1,1],"141":[4,1,5],"142":[3,4,9],"143":[3,4,9],"144":[4,4,25],"145":[4,4,3],"146":[6,8,17],"147":[6,8,10],"148":[6,8,10],"149":[6,8,10],"150":[6,8,10],"151":[20,4,53],"152":[4,1,24],"153":[9,4,30],"154":[3,1,2],"155":[4,3,1],"156":[2,1,10],"157":[3,2,7],"158":[3,1,24],"159":[6,3,17],"160":[6,3,46],"161":[4,1,24],"162":[2,4,1],"163":[24,6,32],"164":[9,6,34],"165":[3,1,24],"166":[4,1,24],"167":[2,4,1],"168":[10,6,25],"169":[7,6,20],"170":[8,6,30],"171":[4,1,24],"172":[5,4,21],"173":[15,4,19],"174":[16,4,30],"175":[4,1,24],"176":[2,4,11],"177":[2,4,1],"178":[6,6,10],"179":[7,6,19],"180":[7,6,19],"181":[8,6,20],"182":[8,4,16],"183":[9,4,21],"184":[4,1,24],"185":[3,1,24],"186":[4,3,1],"187":[5,7,1],"188":[5,7,1],"189":[6,7,1],"190":[6,7,1],"191":[5,7,1],"192":[4,3,1],"193":[6,7,1],"194":[8,7,1],"195":[7,7,1],"196":[6,7,1],"197":[6,7,1],"198":[6,7,1],"199":[7,7,1],"200":[4,3,1],"201":[6,7,1],"202":[6,7,1],"203":[5,7,1],"204":[5,7,1],"205":[4,3,1],"206":[6,7,1],"207":[6,7,1],"208":[7,7,1],"209":[7,7,1],"210":[7,7,1],"211":[4,3,1],"212":[7,7,1],"213":[7,7,1],"214":[7,7,1],"215":[7,7,1],"216":[6,7,1],"217":[8,3,20],"218":[9,3,36],"219":[8,3,27],"220":[15,3,143],"221":[15,3,95],"222":[20,3,95],"223":[6,3,10],"224":[3,1,1],"225":[9,3,17],"226":[4,1,24],"227":[12,4,75],"228":[15,4,58],"229":[9,4,37],"230":[4,1,24],"231":[4,1,24],"232":[4,4,1],"233":[5,8,1],"234":[5,8,1],"235":[5,8,1],"236":[5,8,1],"237":[5,8,1],"238":[4,4,1],"239":[6,8,1],"240":[5,8,1],"241":[5,8,1],"242":[5,8,1],"243":[5,8,1],"244":[5,8,1],"245":[7,8,1],"246":[4,4,1],"247":[3,8,10],"248":[9,8,1],"249":[6,8,1],"250":[6,8,1],"251":[7,8,1],"252":[6,8,1],"253":[3,1,15],"254":[4,1,30],"255":[6,4,21],"256":[5,1,24],"257":[5,5,21],"258":[3,1,5],"259":[9,3,30],"260":[6,3,42],"261":[8,3,20],"262":[8,3,38],"263":[8,3,25],"264":[1,1,1],"265":[1,1,13],"266":[1,1,10],"267":[1,1,15],"268":[1,1,1],"269":[1,1,12],"270":[1,1,83],"271":[1,1,1],"272":[1,2,9],"273":[1,2,18],"274":[1,1,1],"275":[1,1,18],"276":[1,2,10],"277":[1,1,36],"278":[1,1,55],"279":[1,1,4],"280":[1,1,9],"281":[1,1,25],"282":[1,1,33],"283":[1,2,26],"284":[1,1,7],"285":[1,1,18],"286":[1,1,31],"287":[1,1,56],"288":[1,1,4],"289":[1,1,1],"290":[1,2,42],"291":[1,2,58],"292":[1,2,1],"293":[1,3,6],"294":[1,3,25],"295":[1,1,28],"296":[1,1,16],"297":[2,1,86],"298":[1,3,30],"299":[4,1,53],"300":[1,5,38],"301":[2,1,20],"302":[1,1,1],"303":[2,1,30],"304":[1,3,8],"305":[2,1,35],"306":[1,3,17]},"averageFieldLength":[5.521172638436483,4.117263843648208,18.99674267100976],"storedFields":{"0":{"title":"配置","titles":[]},"1":{"title":"基础配置项","titles":["配置"]},"2":{"title":"其他配置","titles":["配置"]},"3":{"title":"示例:与NoneBot对接的OneBot实现端配置","titles":["配置"]},"4":{"title":"其他","titles":["配置"]},"5":{"title":"答疑","titles":[]},"6":{"title":"常见问题","titles":["答疑"]},"7":{"title":"其他问题","titles":["答疑"]},"8":{"title":"推荐方案(QQ)","titles":["答疑"]},"9":{"title":"推荐方案(Minecraft)","titles":["答疑"]},"10":{"title":"鸣谢","titles":["答疑"]},"11":{"title":"安装","titles":[]},"12":{"title":"常规部署","titles":["安装"]},"13":{"title":"使用Docker构建","titles":["安装"]},"14":{"title":"使用TRSS Scripts部署","titles":["安装"]},"15":{"title":"装置要求","titles":["安装"]},"16":{"title":"其他问题请移步至","titles":["安装","装置要求"]},"17":{"title":"模块 liteyuki.bot","titles":[]},"18":{"title":"class LiteyukiBot","titles":["模块 liteyuki.bot"]},"19":{"title":"func __init__(self, **kwargs) -> None","titles":["模块 liteyuki.bot","class LiteyukiBot"]},"20":{"title":"func run(self)","titles":["模块 liteyuki.bot","class LiteyukiBot"]},"21":{"title":"async func keep_alive(self)","titles":["模块 liteyuki.bot","class LiteyukiBot"]},"22":{"title":"func restart(self, delay: int = 0)","titles":["模块 liteyuki.bot","class LiteyukiBot"]},"23":{"title":"func restart_process(self, name: Optional[str] = None)","titles":["模块 liteyuki.bot","class LiteyukiBot"]},"24":{"title":"func init(self, *args, **kwargs)","titles":["模块 liteyuki.bot","class LiteyukiBot"]},"25":{"title":"func init_logger(self)","titles":["模块 liteyuki.bot","class LiteyukiBot"]},"26":{"title":"func stop(self)","titles":["模块 liteyuki.bot","class LiteyukiBot"]},"27":{"title":"func on_before_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC","titles":["模块 liteyuki.bot","class LiteyukiBot"]},"28":{"title":"func on_after_start(self, func: LIFESPAN_FUNC)","titles":["模块 liteyuki.bot","class LiteyukiBot"]},"29":{"title":"func on_after_shutdown(self, func: LIFESPAN_FUNC)","titles":["模块 liteyuki.bot","class LiteyukiBot"]},"30":{"title":"func on_before_process_shutdown(self, func: PROCESS_LIFESPAN_FUNC)","titles":["模块 liteyuki.bot","class LiteyukiBot"]},"31":{"title":"func on_before_process_restart(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC","titles":["模块 liteyuki.bot","class LiteyukiBot"]},"32":{"title":"func on_after_restart(self, func: LIFESPAN_FUNC)","titles":["模块 liteyuki.bot","class LiteyukiBot"]},"33":{"title":"func get_bot() -> LiteyukiBot","titles":["模块 liteyuki.bot"]},"34":{"title":"func get_config(key: str, default: Any = None) -> Any","titles":["模块 liteyuki.bot"]},"35":{"title":"func get_config_with_compat(key: str, compat_keys: tuple[str], default: Any = None) -> Any","titles":["模块 liteyuki.bot"]},"36":{"title":"模块 liteyuki.bot.lifespan","titles":[]},"37":{"title":"var SYNC_LIFESPAN_FUNC","titles":["模块 liteyuki.bot.lifespan"]},"38":{"title":"var ASYNC_LIFESPAN_FUNC","titles":["模块 liteyuki.bot.lifespan"]},"39":{"title":"var LIFESPAN_FUNC","titles":["模块 liteyuki.bot.lifespan"]},"40":{"title":"var SYNC_PROCESS_LIFESPAN_FUNC","titles":["模块 liteyuki.bot.lifespan"]},"41":{"title":"var ASYNC_PROCESS_LIFESPAN_FUNC","titles":["模块 liteyuki.bot.lifespan"]},"42":{"title":"var PROCESS_LIFESPAN_FUNC","titles":["模块 liteyuki.bot.lifespan"]},"43":{"title":"class Lifespan","titles":["模块 liteyuki.bot.lifespan"]},"44":{"title":"func __init__(self) -> None","titles":["模块 liteyuki.bot.lifespan","class Lifespan"]},"45":{"title":"async func run_funcs(funcs: Sequence[LIFESPAN_FUNC | PROCESS_LIFESPAN_FUNC], *args, **kwargs) -> None","titles":["模块 liteyuki.bot.lifespan","class Lifespan"]},"46":{"title":"func on_before_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC","titles":["模块 liteyuki.bot.lifespan","class Lifespan"]},"47":{"title":"func on_after_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC","titles":["模块 liteyuki.bot.lifespan","class Lifespan"]},"48":{"title":"func on_before_process_shutdown(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC","titles":["模块 liteyuki.bot.lifespan","class Lifespan"]},"49":{"title":"func on_after_shutdown(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC","titles":["模块 liteyuki.bot.lifespan","class Lifespan"]},"50":{"title":"func on_before_process_restart(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC","titles":["模块 liteyuki.bot.lifespan","class Lifespan"]},"51":{"title":"func on_after_restart(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC","titles":["模块 liteyuki.bot.lifespan","class Lifespan"]},"52":{"title":"async func before_start(self) -> None","titles":["模块 liteyuki.bot.lifespan","class Lifespan"]},"53":{"title":"async func after_start(self) -> None","titles":["模块 liteyuki.bot.lifespan","class Lifespan"]},"54":{"title":"async func before_process_shutdown(self, *args, **kwargs) -> None","titles":["模块 liteyuki.bot.lifespan","class Lifespan"]},"55":{"title":"async func after_shutdown(self) -> None","titles":["模块 liteyuki.bot.lifespan","class Lifespan"]},"56":{"title":"async func before_process_restart(self, *args, **kwargs) -> None","titles":["模块 liteyuki.bot.lifespan","class Lifespan"]},"57":{"title":"async func after_restart(self) -> None","titles":["模块 liteyuki.bot.lifespan","class Lifespan"]},"58":{"title":"模块 liteyuki.comm.channel","titles":[]},"59":{"title":"var SYNC_ON_RECEIVE_FUNC","titles":["模块 liteyuki.comm.channel"]},"60":{"title":"var ON_RECEIVE_FUNC","titles":["模块 liteyuki.comm.channel"]},"61":{"title":"var SYNC_FILTER_FUNC","titles":["模块 liteyuki.comm.channel"]},"62":{"title":"var ASYNC_FILTER_FUNC","titles":["模块 liteyuki.comm.channel"]},"63":{"title":"var FILTER_FUNC","titles":["模块 liteyuki.comm.channel"]},"64":{"title":"class Channel(Generic[T])","titles":["模块 liteyuki.comm.channel"]},"65":{"title":"func __init__(self, name: str, type_check: Optional[bool] = None)","titles":["模块 liteyuki.comm.channel","class Channel(Generic[T])"]},"66":{"title":"func send(self, data: T)","titles":["模块 liteyuki.comm.channel","class Channel(Generic[T])"]},"67":{"title":"func receive(self) -> T","titles":["模块 liteyuki.comm.channel","class Channel(Generic[T])"]},"68":{"title":"async func async_receive(self) -> T","titles":["模块 liteyuki.comm.channel","class Channel(Generic[T])"]},"69":{"title":"func on_receive(self, filter_func: Optional[FILTER_FUNC] = None) -> Callable[[Callable[[T], Any]], Callable[[T], Any]]","titles":["模块 liteyuki.comm.channel","class Channel(Generic[T])"]},"70":{"title":"var active_channel","titles":["模块 liteyuki.comm.channel"]},"71":{"title":"var passive_channel","titles":["模块 liteyuki.comm.channel"]},"72":{"title":"var channel_deliver_active_channel","titles":["模块 liteyuki.comm.channel"]},"73":{"title":"var channel_deliver_passive_channel","titles":["模块 liteyuki.comm.channel"]},"74":{"title":"func set_channel(name: str, channel: Channel)","titles":["模块 liteyuki.comm.channel"]},"75":{"title":"func set_channels(channels: dict[str, Channel])","titles":["模块 liteyuki.comm.channel"]},"76":{"title":"func get_channel(name: str) -> Channel","titles":["模块 liteyuki.comm.channel"]},"77":{"title":"func get_channels() -> dict[str, Channel]","titles":["模块 liteyuki.comm.channel"]},"78":{"title":"func on_set_channel(data: tuple[str, dict[str, Any]])","titles":["模块 liteyuki.comm.channel"]},"79":{"title":"func on_get_channel(data: tuple[str, dict[str, Any]])","titles":["模块 liteyuki.comm.channel"]},"80":{"title":"func on_get_channels(data: tuple[str, dict[str, Any]])","titles":["模块 liteyuki.comm.channel"]},"81":{"title":"模块 liteyuki.comm.event","titles":[]},"82":{"title":"class Event","titles":["模块 liteyuki.comm.event"]},"83":{"title":"func __init__(self, name: str, data: dict[str, Any])","titles":["模块 liteyuki.comm.event","class Event"]},"84":{"title":"模块 liteyuki.comm","titles":[]},"85":{"title":"模块 liteyuki.comm.socks_channel","titles":[]},"86":{"title":"class SocksChannel","titles":["模块 liteyuki.comm.socks_channel"]},"87":{"title":"func __init__(self, name: str)","titles":["模块 liteyuki.comm.socks_channel","class SocksChannel"]},"88":{"title":"func send(self, data)","titles":["模块 liteyuki.comm.socks_channel","class SocksChannel"]},"89":{"title":"func receive(self)","titles":["模块 liteyuki.comm.socks_channel","class SocksChannel"]},"90":{"title":"func close(self)","titles":["模块 liteyuki.comm.socks_channel","class SocksChannel"]},"91":{"title":"模块 liteyuki.comm.storage","titles":[]},"92":{"title":"var _on_main_subscriber_receive_funcs","titles":["模块 liteyuki.comm.storage"]},"93":{"title":"var _on_sub_subscriber_receive_funcs","titles":["模块 liteyuki.comm.storage"]},"94":{"title":"class KeyValueStore","titles":["模块 liteyuki.comm.storage"]},"95":{"title":"func __init__(self)","titles":["模块 liteyuki.comm.storage","class KeyValueStore"]},"96":{"title":"func set(self, key: str, value: Any) -> None","titles":["模块 liteyuki.comm.storage","class KeyValueStore"]},"97":{"title":"func get(self, key: str, default: Optional[Any] = None) -> Optional[Any]","titles":["模块 liteyuki.comm.storage","class KeyValueStore"]},"98":{"title":"func delete(self, key: str, ignore_key_error: bool = True) -> None","titles":["模块 liteyuki.comm.storage","class KeyValueStore"]},"99":{"title":"func get_all(self) -> dict[str, Any]","titles":["模块 liteyuki.comm.storage","class KeyValueStore"]},"100":{"title":"func publish(self, channel_: str, data: Any) -> None","titles":["模块 liteyuki.comm.storage","class KeyValueStore"]},"101":{"title":"func on_subscriber_receive(self, channel_: str) -> Callable[[ON_RECEIVE_FUNC], ON_RECEIVE_FUNC]","titles":["模块 liteyuki.comm.storage","class KeyValueStore"]},"102":{"title":"async func run_subscriber_receive_funcs(channel_: str, data: Any)","titles":["模块 liteyuki.comm.storage","class KeyValueStore"]},"103":{"title":"async func start_receive_loop(self)","titles":["模块 liteyuki.comm.storage","class KeyValueStore"]},"104":{"title":"class GlobalKeyValueStore","titles":["模块 liteyuki.comm.storage"]},"105":{"title":"func get_instance(cls)","titles":["模块 liteyuki.comm.storage","class GlobalKeyValueStore"]},"106":{"title":"attr _instance = None","titles":["模块 liteyuki.comm.storage","class GlobalKeyValueStore"]},"107":{"title":"attr _lock = threading.Lock()","titles":["模块 liteyuki.comm.storage","class GlobalKeyValueStore"]},"108":{"title":"var shared_memory","titles":["模块 liteyuki.comm.storage"]},"109":{"title":"var _ref_count","titles":["模块 liteyuki.comm.storage"]},"110":{"title":"func on_get(data: tuple[str, dict[str, Any]])","titles":["模块 liteyuki.comm.storage"]},"111":{"title":"func on_set(data: tuple[str, dict[str, Any]])","titles":["模块 liteyuki.comm.storage"]},"112":{"title":"func on_delete(data: tuple[str, dict[str, Any]])","titles":["模块 liteyuki.comm.storage"]},"113":{"title":"func on_get_all(data: tuple[str, dict[str, Any]])","titles":["模块 liteyuki.comm.storage"]},"114":{"title":"模块 liteyuki.config","titles":[]},"115":{"title":"func flat_config(config: dict[str, Any]) -> dict[str, Any]","titles":["模块 liteyuki.config"]},"116":{"title":"func load_from_yaml(file_: str) -> dict[str, Any]","titles":["模块 liteyuki.config"]},"117":{"title":"func load_from_json(file_: str) -> dict[str, Any]","titles":["模块 liteyuki.config"]},"118":{"title":"func load_from_toml(file_: str) -> dict[str, Any]","titles":["模块 liteyuki.config"]},"119":{"title":"func load_from_files(*files: str, *, no_warning: bool = False) -> dict[str, Any]","titles":["模块 liteyuki.config"]},"120":{"title":"func load_configs_from_dirs(*directories: str, *, no_waring: bool = False) -> dict[str, Any]","titles":["模块 liteyuki.config"]},"121":{"title":"func load_config_in_default(no_waring: bool = False) -> dict[str, Any]","titles":["模块 liteyuki.config"]},"122":{"title":"模块 liteyuki.dev","titles":[]},"123":{"title":"模块 liteyuki.core.manager","titles":[]},"124":{"title":"class ChannelDeliver","titles":["模块 liteyuki.core.manager"]},"125":{"title":"func __init__(self, active: Channel[Any], passive: Channel[Any], channel_deliver_active: Channel[Channel[Any]], channel_deliver_passive: Channel[tuple[str, dict]], publish: Channel[tuple[str, Any]])","titles":["模块 liteyuki.core.manager","class ChannelDeliver"]},"126":{"title":"class ProcessManager","titles":["模块 liteyuki.core.manager"]},"127":{"title":"func __init__(self, lifespan: Lifespan)","titles":["模块 liteyuki.core.manager","class ProcessManager"]},"128":{"title":"func start_all(self)","titles":["模块 liteyuki.core.manager","class ProcessManager"]},"129":{"title":"func add_target(self, name: str, target: TARGET_FUNC, args: tuple = (), kwargs = None)","titles":["模块 liteyuki.core.manager","class ProcessManager"]},"130":{"title":"func join_all(self)","titles":["模块 liteyuki.core.manager","class ProcessManager"]},"131":{"title":"func terminate(self, name: str)","titles":["模块 liteyuki.core.manager","class ProcessManager"]},"132":{"title":"func terminate_all(self)","titles":["模块 liteyuki.core.manager","class ProcessManager"]},"133":{"title":"func is_process_alive(self, name: str) -> bool","titles":["模块 liteyuki.core.manager","class ProcessManager"]},"134":{"title":"class _SubProcessManager","titles":["模块 liteyuki.core.manager"]},"135":{"title":"func __init__(self)","titles":["模块 liteyuki.core.manager","class _SubProcessManager"]},"136":{"title":"func new_process(self, name: str, *args, **kwargs) -> Callable[[ProcessFuncType], None]","titles":["模块 liteyuki.core.manager","class _SubProcessManager"]},"137":{"title":"func add(self, name: str, func: ProcessFuncType, *args, **kwargs)","titles":["模块 liteyuki.core.manager","class _SubProcessManager"]},"138":{"title":"func start(self, name: str)","titles":["模块 liteyuki.core.manager","class _SubProcessManager"]},"139":{"title":"func start_all(self)","titles":["模块 liteyuki.core.manager","class _SubProcessManager"]},"140":{"title":"模块 liteyuki.core","titles":[]},"141":{"title":"模块 liteyuki.dev.observer","titles":[]},"142":{"title":"var CALLBACK_FUNC","titles":["模块 liteyuki.dev.observer"]},"143":{"title":"var FILTER_FUNC","titles":["模块 liteyuki.dev.observer"]},"144":{"title":"func debounce(wait)","titles":["模块 liteyuki.dev.observer"]},"145":{"title":"class CodeModifiedHandler(FileSystemEventHandler)","titles":["模块 liteyuki.dev.observer"]},"146":{"title":"func on_modified(self, event)","titles":["模块 liteyuki.dev.observer","class CodeModifiedHandler(FileSystemEventHandler)"]},"147":{"title":"func on_created(self, event)","titles":["模块 liteyuki.dev.observer","class CodeModifiedHandler(FileSystemEventHandler)"]},"148":{"title":"func on_deleted(self, event)","titles":["模块 liteyuki.dev.observer","class CodeModifiedHandler(FileSystemEventHandler)"]},"149":{"title":"func on_moved(self, event)","titles":["模块 liteyuki.dev.observer","class CodeModifiedHandler(FileSystemEventHandler)"]},"150":{"title":"func on_any_event(self, event)","titles":["模块 liteyuki.dev.observer","class CodeModifiedHandler(FileSystemEventHandler)"]},"151":{"title":"func on_file_system_event(directories: tuple[str], recursive: bool = True, event_filter: FILTER_FUNC = None) -> Callable[[CALLBACK_FUNC], CALLBACK_FUNC]","titles":["模块 liteyuki.dev.observer"]},"152":{"title":"模块 liteyuki.dev.plugin","titles":[]},"153":{"title":"func run_plugins(*module_path: str | Path)","titles":["模块 liteyuki.dev.plugin"]},"154":{"title":"模块 liteyuki.exception","titles":[]},"155":{"title":"class LiteyukiException(BaseException)","titles":["模块 liteyuki.exception"]},"156":{"title":"模块 liteyuki","titles":[]},"157":{"title":"var __version__","titles":["模块 liteyuki"]},"158":{"title":"模块 liteyuki.log","titles":[]},"159":{"title":"func get_format(level: str) -> str","titles":["模块 liteyuki.log"]},"160":{"title":"func init_log(config: dict)","titles":["模块 liteyuki.log"]},"161":{"title":"模块 liteyuki.message.event","titles":[]},"162":{"title":"class MessageEvent","titles":["模块 liteyuki.message.event"]},"163":{"title":"func __init__(self, bot_id: str, message: list[dict[str, Any]] | str, message_type: str, raw_message: str, session_id: str, user_id: str, session_type: str, receive_channel: Optional[Channel[MessageEvent]] = None, data: Optional[dict[str, Any]] = None)","titles":["模块 liteyuki.message.event","class MessageEvent"]},"164":{"title":"func reply(self, message: str | dict[str, Any])","titles":["模块 liteyuki.message.event","class MessageEvent"]},"165":{"title":"模块 liteyuki.message","titles":[]},"166":{"title":"模块 liteyuki.message.matcher","titles":[]},"167":{"title":"class Matcher","titles":["模块 liteyuki.message.matcher"]},"168":{"title":"func __init__(self, rule: Rule, priority: int, block: bool)","titles":["模块 liteyuki.message.matcher","class Matcher"]},"169":{"title":"func handle(self) -> Callable[[EventHandler], EventHandler]","titles":["模块 liteyuki.message.matcher","class Matcher"]},"170":{"title":"async func run(self, event: MessageEvent) -> None","titles":["模块 liteyuki.message.matcher","class Matcher"]},"171":{"title":"模块 liteyuki.message.on","titles":[]},"172":{"title":"func add_matcher(matcher: Matcher)","titles":["模块 liteyuki.message.on"]},"173":{"title":"func on_message(rule: Rule = empty_rule, priority: int = 0, block: bool = False) -> Matcher","titles":["模块 liteyuki.message.on"]},"174":{"title":"func on_keywords(keywords: list[str], rule = empty_rule, priority: int = 0, block: bool = False) -> Matcher","titles":["模块 liteyuki.message.on"]},"175":{"title":"模块 liteyuki.message.rule","titles":[]},"176":{"title":"var RuleHandlerFunc","titles":["模块 liteyuki.message.rule"]},"177":{"title":"class Rule","titles":["模块 liteyuki.message.rule"]},"178":{"title":"func __init__(self, handler: RuleHandlerFunc)","titles":["模块 liteyuki.message.rule","class Rule"]},"179":{"title":"func self | other: Rule => Rule","titles":["模块 liteyuki.message.rule","class Rule"]},"180":{"title":"func self & other: Rule => Rule","titles":["模块 liteyuki.message.rule","class Rule"]},"181":{"title":"async func self () event: MessageEvent => bool","titles":["模块 liteyuki.message.rule","class Rule"]},"182":{"title":"async func empty_rule(event: MessageEvent) -> bool","titles":["模块 liteyuki.message.rule"]},"183":{"title":"async func is_su_rule(event: MessageEvent) -> bool","titles":["模块 liteyuki.message.rule"]},"184":{"title":"模块 liteyuki.message.session","titles":[]},"185":{"title":"模块 liteyuki.mkdoc","titles":[]},"186":{"title":"class DefType(Enum)","titles":["模块 liteyuki.mkdoc"]},"187":{"title":"attr FUNCTION = 'function'","titles":["模块 liteyuki.mkdoc","class DefType(Enum)"]},"188":{"title":"attr METHOD = 'method'","titles":["模块 liteyuki.mkdoc","class DefType(Enum)"]},"189":{"title":"attr STATIC_METHOD = 'staticmethod'","titles":["模块 liteyuki.mkdoc","class DefType(Enum)"]},"190":{"title":"attr CLASS_METHOD = 'classmethod'","titles":["模块 liteyuki.mkdoc","class DefType(Enum)"]},"191":{"title":"attr PROPERTY = 'property'","titles":["模块 liteyuki.mkdoc","class DefType(Enum)"]},"192":{"title":"class FunctionInfo(BaseModel)","titles":["模块 liteyuki.mkdoc"]},"193":{"title":"attr name: str = NO_DEFAULT","titles":["模块 liteyuki.mkdoc","class FunctionInfo(BaseModel)"]},"194":{"title":"attr args: list[tuple[str, str]] = NO_DEFAULT","titles":["模块 liteyuki.mkdoc","class FunctionInfo(BaseModel)"]},"195":{"title":"attr return_type: str = NO_DEFAULT","titles":["模块 liteyuki.mkdoc","class FunctionInfo(BaseModel)"]},"196":{"title":"attr docstring: str = NO_DEFAULT","titles":["模块 liteyuki.mkdoc","class FunctionInfo(BaseModel)"]},"197":{"title":"attr source_code: str = ''","titles":["模块 liteyuki.mkdoc","class FunctionInfo(BaseModel)"]},"198":{"title":"attr type: DefType = NO_DEFAULT","titles":["模块 liteyuki.mkdoc","class FunctionInfo(BaseModel)"]},"199":{"title":"attr is_async: bool = NO_DEFAULT","titles":["模块 liteyuki.mkdoc","class FunctionInfo(BaseModel)"]},"200":{"title":"class AttributeInfo(BaseModel)","titles":["模块 liteyuki.mkdoc"]},"201":{"title":"attr name: str = NO_DEFAULT","titles":["模块 liteyuki.mkdoc","class AttributeInfo(BaseModel)"]},"202":{"title":"attr type: str = NO_DEFAULT","titles":["模块 liteyuki.mkdoc","class AttributeInfo(BaseModel)"]},"203":{"title":"attr value: Any = None","titles":["模块 liteyuki.mkdoc","class AttributeInfo(BaseModel)"]},"204":{"title":"attr docstring: str = ''","titles":["模块 liteyuki.mkdoc","class AttributeInfo(BaseModel)"]},"205":{"title":"class ClassInfo(BaseModel)","titles":["模块 liteyuki.mkdoc"]},"206":{"title":"attr name: str = NO_DEFAULT","titles":["模块 liteyuki.mkdoc","class ClassInfo(BaseModel)"]},"207":{"title":"attr docstring: str = NO_DEFAULT","titles":["模块 liteyuki.mkdoc","class ClassInfo(BaseModel)"]},"208":{"title":"attr methods: list[FunctionInfo] = NO_DEFAULT","titles":["模块 liteyuki.mkdoc","class ClassInfo(BaseModel)"]},"209":{"title":"attr attributes: list[AttributeInfo] = NO_DEFAULT","titles":["模块 liteyuki.mkdoc","class ClassInfo(BaseModel)"]},"210":{"title":"attr inherit: list[str] = NO_DEFAULT","titles":["模块 liteyuki.mkdoc","class ClassInfo(BaseModel)"]},"211":{"title":"class ModuleInfo(BaseModel)","titles":["模块 liteyuki.mkdoc"]},"212":{"title":"attr module_path: str = NO_DEFAULT","titles":["模块 liteyuki.mkdoc","class ModuleInfo(BaseModel)"]},"213":{"title":"attr functions: list[FunctionInfo] = NO_DEFAULT","titles":["模块 liteyuki.mkdoc","class ModuleInfo(BaseModel)"]},"214":{"title":"attr classes: list[ClassInfo] = NO_DEFAULT","titles":["模块 liteyuki.mkdoc","class ModuleInfo(BaseModel)"]},"215":{"title":"attr attributes: list[AttributeInfo] = NO_DEFAULT","titles":["模块 liteyuki.mkdoc","class ModuleInfo(BaseModel)"]},"216":{"title":"attr docstring: str = NO_DEFAULT","titles":["模块 liteyuki.mkdoc","class ModuleInfo(BaseModel)"]},"217":{"title":"func get_relative_path(base_path: str, target_path: str) -> str","titles":["模块 liteyuki.mkdoc"]},"218":{"title":"func write_to_files(file_data: dict[str, str])","titles":["模块 liteyuki.mkdoc"]},"219":{"title":"func get_file_list(module_folder: str)","titles":["模块 liteyuki.mkdoc"]},"220":{"title":"func get_module_info_normal(file_path: str, ignore_private: bool = True) -> ModuleInfo","titles":["模块 liteyuki.mkdoc"]},"221":{"title":"func generate_markdown(module_info: ModuleInfo, front_matter = None, lang: str = 'zh-CN') -> str","titles":["模块 liteyuki.mkdoc"]},"222":{"title":"func generate_docs(module_folder: str, output_dir: str, with_top: bool = False, lang: str = 'zh-CN', ignored_paths = None)","titles":["模块 liteyuki.mkdoc"]},"223":{"title":"var no_module_name_pyfile_path","titles":["模块 liteyuki.mkdoc"]},"224":{"title":"模块 liteyuki.plugin","titles":[]},"225":{"title":"func get_loaded_plugins() -> dict[str, Plugin]","titles":["模块 liteyuki.plugin"]},"226":{"title":"模块 liteyuki.plugin.load","titles":[]},"227":{"title":"func load_plugin(module_path: str | Path) -> Optional[Plugin]","titles":["模块 liteyuki.plugin.load"]},"228":{"title":"func load_plugins(*plugin_dir: str, *, ignore_warning: bool = True) -> set[Plugin]","titles":["模块 liteyuki.plugin.load"]},"229":{"title":"func format_display_name(display_name: str, plugin_type: PluginType) -> str","titles":["模块 liteyuki.plugin.load"]},"230":{"title":"模块 liteyuki.plugin.manager","titles":[]},"231":{"title":"模块 liteyuki.plugin.model","titles":[]},"232":{"title":"class PluginType(Enum)","titles":["模块 liteyuki.plugin.model"]},"233":{"title":"attr APPLICATION = 'application'","titles":["模块 liteyuki.plugin.model","class PluginType(Enum)"]},"234":{"title":"attr SERVICE = 'service'","titles":["模块 liteyuki.plugin.model","class PluginType(Enum)"]},"235":{"title":"attr MODULE = 'module'","titles":["模块 liteyuki.plugin.model","class PluginType(Enum)"]},"236":{"title":"attr UNCLASSIFIED = 'unclassified'","titles":["模块 liteyuki.plugin.model","class PluginType(Enum)"]},"237":{"title":"attr TEST = 'test'","titles":["模块 liteyuki.plugin.model","class PluginType(Enum)"]},"238":{"title":"class PluginMetadata(BaseModel)","titles":["模块 liteyuki.plugin.model"]},"239":{"title":"attr name: str = NO_DEFAULT","titles":["模块 liteyuki.plugin.model","class PluginMetadata(BaseModel)"]},"240":{"title":"attr description: str = ''","titles":["模块 liteyuki.plugin.model","class PluginMetadata(BaseModel)"]},"241":{"title":"attr usage: str = ''","titles":["模块 liteyuki.plugin.model","class PluginMetadata(BaseModel)"]},"242":{"title":"attr type: PluginType = PluginType.UNCLASSIFIED","titles":["模块 liteyuki.plugin.model","class PluginMetadata(BaseModel)"]},"243":{"title":"attr author: str = ''","titles":["模块 liteyuki.plugin.model","class PluginMetadata(BaseModel)"]},"244":{"title":"attr homepage: str = ''","titles":["模块 liteyuki.plugin.model","class PluginMetadata(BaseModel)"]},"245":{"title":"attr extra: dict[str, Any] = {}","titles":["模块 liteyuki.plugin.model","class PluginMetadata(BaseModel)"]},"246":{"title":"class Plugin(BaseModel)","titles":["模块 liteyuki.plugin.model"]},"247":{"title":"func hash self","titles":["模块 liteyuki.plugin.model","class Plugin(BaseModel)"]},"248":{"title":"attr model_config = {'arbitrary_types_allowed': True}","titles":["模块 liteyuki.plugin.model","class Plugin(BaseModel)"]},"249":{"title":"attr name: str = NO_DEFAULT","titles":["模块 liteyuki.plugin.model","class Plugin(BaseModel)"]},"250":{"title":"attr module: ModuleType = NO_DEFAULT","titles":["模块 liteyuki.plugin.model","class Plugin(BaseModel)"]},"251":{"title":"attr module_name: str = NO_DEFAULT","titles":["模块 liteyuki.plugin.model","class Plugin(BaseModel)"]},"252":{"title":"attr metadata: Optional[PluginMetadata] = None","titles":["模块 liteyuki.plugin.model","class Plugin(BaseModel)"]},"253":{"title":"模块 liteyuki.plugins","titles":[]},"254":{"title":"模块 liteyuki.plugins.liteecho","titles":[]},"255":{"title":"async func liteecho(event: MessageEvent)","titles":["模块 liteyuki.plugins.liteecho"]},"256":{"title":"模块 liteyuki.plugins.plugin_loader","titles":[]},"257":{"title":"func default_plugins_loader()","titles":["模块 liteyuki.plugins.plugin_loader"]},"258":{"title":"模块 liteyuki.utils","titles":[]},"259":{"title":"func is_coroutine_callable(call: Callable[..., Any]) -> bool","titles":["模块 liteyuki.utils"]},"260":{"title":"func run_coroutine(*coro: Coroutine)","titles":["模块 liteyuki.utils"]},"261":{"title":"func run_coroutine_in_thread(*coro: Coroutine)","titles":["模块 liteyuki.utils"]},"262":{"title":"func path_to_module_name(path: Path) -> str","titles":["模块 liteyuki.utils"]},"263":{"title":"func async_wrapper(func: Callable[..., Any]) -> Callable[..., Coroutine]","titles":["模块 liteyuki.utils"]},"264":{"title":"最佳实践","titles":[]},"265":{"title":"机器人应用","titles":["最佳实践"]},"266":{"title":"插件","titles":["最佳实践"]},"267":{"title":"其他","titles":["最佳实践"]},"268":{"title":"通道通信","titles":[]},"269":{"title":"简介","titles":["通道通信"]},"270":{"title":"示例","titles":["通道通信"]},"271":{"title":"共享内存通信","titles":["通道通信"]},"272":{"title":"简介","titles":["通道通信","共享内存通信"]},"273":{"title":"示例","titles":["通道通信","共享内存通信"]},"274":{"title":"开发指南","titles":[]},"275":{"title":"如何开发","titles":["开发指南"]},"276":{"title":"建议","titles":["开发指南","如何开发"]},"277":{"title":"项目结构","titles":["开发指南"]},"278":{"title":"规范化","titles":["开发指南"]},"279":{"title":"最后","titles":["开发指南"]},"280":{"title":"轻雪函数","titles":[]},"281":{"title":"函数文件","titles":["轻雪函数"]},"282":{"title":"命令文档","titles":["轻雪函数"]},"283":{"title":"示例","titles":["轻雪函数","命令文档"]},"284":{"title":"API","titles":["轻雪函数"]},"285":{"title":"结束关键字","titles":["轻雪函数"]},"286":{"title":"简介","titles":[]},"287":{"title":"加载资源包","titles":["简介"]},"288":{"title":"简介","titles":[]},"289":{"title":"开始","titles":["简介"]},"290":{"title":"创建插件","titles":["简介","开始"]},"291":{"title":"编写逻辑部分","titles":["简介","开始"]},"292":{"title":"加载插件","titles":["简介","开始"]},"293":{"title":"方法1","titles":["简介","开始","加载插件"]},"294":{"title":"方法2","titles":["简介","开始","加载插件"]},"295":{"title":"用户协议","titles":[]},"296":{"title":"基础插件","titles":[]},"297":{"title":"轻雪命令liteyuki_command","titles":["基础插件"]},"298":{"title":"命令别名","titles":["基础插件","轻雪命令liteyuki_command"]},"299":{"title":"插件/包管理器 liteyuki_pacman","titles":["基础插件"]},"300":{"title":"命令别名","titles":["基础插件","插件/包管理器 liteyuki_pacman"]},"301":{"title":"用户管理liteyuki_user","titles":["基础插件"]},"302":{"title":"功能插件命令","titles":[]},"303":{"title":"轻雪天气liteyuki_weather","titles":["功能插件命令"]},"304":{"title":"命令别名","titles":["功能插件命令","轻雪天气liteyuki_weather"]},"305":{"title":"统计信息liteyuki_statistics","titles":["功能插件命令"]},"306":{"title":"命令别名","titles":["功能插件命令","统计信息liteyuki_statistics"]}},"dirtCount":0,"index":[["当前bot",{"2":{"305":1}}],["当前群聊",{"2":{"305":1}}],["当前会话启用",{"2":{"299":1}}],["秒",{"2":{"305":2}}],["小时",{"2":{"305":2}}],["天",{"2":{"305":2}}],["天气",{"2":{"303":1,"304":1}}],["格式",{"2":{"305":1}}],["格式为onebot",{"2":{"297":1}}],["统计时间范围为duration",{"2":{"305":1}}],["统计周期为period",{"2":{"305":1}}],["统计信息",{"2":{"305":1}}],["统计信息liteyuki",{"0":{"305":1},"1":{"306":1}}],["功能",{"2":{"305":1}}],["功能插件命令",{"0":{"302":1},"1":{"303":1,"304":1,"305":1,"306":1}}],["个人全局生效",{"2":{"303":1}}],["个人信息",{"2":{"301":1}}],["绑定城市",{"2":{"304":1}}],["绑定查询城市",{"2":{"303":1}}],["绑定端口",{"2":{"1":1}}],["海淀",{"2":{"303":1}}],["北京",{"2":{"303":1}}],["受限于nonebot2钩子函数的依赖注入参数",{"2":{"300":1}}],["帮助",{"2":{"300":1}}],["列表",{"2":{"300":1}}],["列出所有资源包",{"2":{"299":1}}],["列出所有插件",{"2":{"299":1}}],["更改",{"2":{"300":1}}],["更新",{"2":{"300":1}}],["更新插件商店索引",{"2":{"299":1}}],["更新轻雪",{"2":{"297":1,"298":1}}],["更新轻雪失败",{"2":{"6":1}}],["全局停用",{"2":{"300":1}}],["全局启用",{"2":{"299":1,"300":1}}],["搜索",{"2":{"300":1}}],["卸载",{"2":{"300":2}}],["卸载资源包",{"2":{"299":1}}],["卸载插件",{"2":{"299":1}}],["私聊所有人可用",{"2":{"299":2}}],["包管理器",{"0":{"299":1},"1":{"300":1}}],["包括子task",{"2":{"282":1}}],["包括chromium",{"2":{"15":1}}],["切换图片模式",{"2":{"298":1}}],["切换到bot目录下",{"2":{"12":1}}],["状态",{"2":{"298":1}}],["别名",{"2":{"298":1,"300":1,"301":1,"304":1,"306":1}}],["别用你那b",{"2":{"15":1}}],["所有人",{"2":{"297":1,"299":1,"301":3}}],["所以在编写lyfunction时也要注意异步的调用",{"2":{"285":1}}],["所以此项目既是liteyukibot应用仓库",{"2":{"277":1}}],["群聊",{"2":{"298":1}}],["群聊仅群主",{"2":{"297":1,"299":2}}],["群号",{"2":{"297":1}}],["管理员",{"2":{"297":1,"299":2}}],["管理脚本",{"2":{"267":1}}],["停用插件",{"2":{"299":2}}],["停用",{"2":{"298":1,"300":1}}],["停用机器人",{"2":{"297":1}}],["停止后钩子",{"2":{"55":1}}],["停止前钩子",{"2":{"54":1}}],["停止",{"2":{"44":1}}],["停止轻雪",{"2":{"23":1,"26":1}}],["查询目标地实时天气",{"2":{"303":1}}],["查询实时天气",{"2":{"303":1}}],["查询",{"2":{"298":1,"301":1}}],["查询配置项",{"2":{"297":1}}],["查看用户信息菜单",{"2":{"301":1}}],["查看插件帮助",{"2":{"299":1}}],["查看轻雪文档",{"2":{"297":1}}],["查看统计信息和状态",{"2":{"297":1}}],["查看当前bot",{"2":{"297":1}}],["版本",{"2":{"297":1}}],["❌",{"2":{"297":11}}],["超级用户可用",{"2":{"297":1,"299":2}}],["超级用户",{"2":{"297":10,"299":10}}],["超级用户列表",{"2":{"1":1}}],["重载",{"2":{"300":1}}],["重载所有资源包",{"2":{"299":1}}],["重载资源",{"2":{"298":1}}],["重载轻雪",{"2":{"297":1}}],["重启轻雪",{"2":{"298":1}}],["重启轻雪即可加载插件",{"2":{"293":1}}],["重启轻雪本体",{"2":{"22":1}}],["重启后钩子",{"2":{"57":1}}],["重启前钩子",{"2":{"56":1}}],["重启",{"2":{"44":1}}],["举例",{"2":{"297":1}}],["权限",{"2":{"297":1,"299":2,"301":1}}],["~代替",{"2":{"296":1}}],["~可以使用插件",{"2":{"296":1}}],["命令",{"2":{"297":1,"298":1,"299":2,"300":1,"301":2,"303":1,"304":1,"305":1,"306":1}}],["命令别名",{"0":{"298":1,"300":1,"304":1,"306":1},"2":{"296":1,"301":1}}],["命令文档",{"0":{"282":1},"1":{"283":1}}],["系统信息及python信息",{"2":{"295":1}}],["分钟",{"2":{"305":2}}],["分发",{"2":{"295":1}}],["分工明确",{"2":{"114":1}}],["修改优先级",{"2":{"299":1}}],["修改",{"2":{"295":1}}],["修订文档时",{"2":{"278":1}}],["保存后轻雪会自动重载nonebot进程",{"2":{"294":1}}],["保持轻雪运行",{"2":{"21":1}}],["方法2",{"0":{"294":1}}],["方法1",{"0":{"293":1}}],["用户管理liteyuki",{"0":{"301":1}}],["用户协议",{"0":{"295":1}}],["用observer的on",{"2":{"291":1}}],["用于统计bot接收到的消息",{"2":{"305":1}}],["用于开发nonebot时进行文件系统变更重载",{"2":{"291":1}}],["用于结束当前已完成function的执行",{"2":{"285":1}}],["用于存放内置插件",{"2":{"253":1}}],["用于获取和唯一标识",{"2":{"129":1}}],["用于进程间通信",{"2":{"58":1}}],["排除的文件扩展名",{"2":{"291":1}}],["因此插件主要是一些后台任务或者与聊天机器人的通信",{"2":{"291":1}}],["因此无法通过内存共享和直接对象传递的方式进行通信",{"2":{"269":1}}],["定义插件元数据",{"2":{"290":1}}],["定义变量",{"2":{"282":1}}],["导入轻雪bot和日志",{"2":{"291":1}}],["导入文件系统事件",{"2":{"291":1}}],["导入文件系统观察器",{"2":{"291":1}}],["导入文件夹下多个插件",{"2":{"228":1}}],["导入逻辑部分",{"2":{"290":1}}],["第三方资源包开发者需要注意版本兼容性",{"2":{"287":1}}],["└─",{"2":{"287":1}}],["└───",{"2":{"287":1}}],["└─resource",{"2":{"287":2}}],["├─templates",{"2":{"287":1}}],["├─metadata",{"2":{"287":2}}],["正常的路径应该是这样的",{"2":{"287":1}}],["只需要将其解压到根目录resources目录下即可",{"2":{"287":1}}],["只负责处理和回应消息",{"2":{"6":1}}],["zip格式压缩的",{"2":{"287":1}}],["zh",{"0":{"221":1,"222":1},"2":{"2":1,"221":2,"222":1,"277":1}}],["错位等无法预料的事情发生",{"2":{"286":1}}],["异常",{"2":{"286":1}}],["异步任务结束关键字",{"2":{"285":1}}],["异步等待",{"2":{"282":1}}],["异步包装器",{"2":{"263":1}}],["异步接收数据",{"2":{"68":1}}],["异步过滤函数",{"2":{"62":1}}],["异步进程生命周期函数",{"2":{"41":1}}],["异步生命周期函数",{"2":{"38":1}}],["欢迎各位投稿资源包到轻雪资源商店",{"2":{"286":1}}],["部分异常信息",{"2":{"295":1}}],["部分内容制作需要一点点前端基础",{"2":{"286":1}}],["部分来源于",{"2":{"258":1}}],["讲起打包成一个新的资源包",{"2":{"286":1}}],["仅需按照原有路径进行文件替换即可",{"2":{"286":1}}],["资源",{"2":{"286":1}}],["资源包管理",{"2":{"299":1}}],["资源包的结构会随着轻雪的更新而有变动",{"2":{"287":1}}],["资源包的制作很简单",{"2":{"286":1}}],["资源包加载遵循一个优先级",{"2":{"287":1}}],["资源包描述",{"2":{"287":1}}],["资源包名称",{"2":{"287":1}}],["资源包通常是以",{"2":{"287":1}}],["资源包",{"2":{"286":1,"300":1}}],["它允许你一定程度上自定义轻雪的外观",{"2":{"286":1}}],["它允许你在轻雪中运行一些自定义的由数据驱动的命令",{"2":{"280":1}}],["亦可根据用途称为主题包",{"2":{"286":1}}],["编写逻辑部分",{"0":{"291":1}}],["编写轻雪函数推荐你使用vs",{"2":{"285":1}}],["编辑时的语法高亮可采取shell格式",{"2":{"281":1}}],["那么加载b包后",{"2":{"287":1}}],["那么你能够很快就上手",{"2":{"286":1}}],["那么当前所有函数包的task都会被截停销毁",{"2":{"285":1}}],["那么将会被解析为nickname而不是命令",{"2":{"6":1}}],["的情况是效率提升的关键",{"2":{"285":1}}],["的可爱猫娘机器人",{"2":{"265":1}}],["避免出现",{"2":{"285":1}}],["由于liteyukibot基于异步运行",{"2":{"285":1}}],["结束关键字",{"0":{"285":1}}],["结束函数关键字",{"2":{"282":1}}],["理论上所有基于onebotv11的api都可调用",{"2":{"284":1}}],["则该文件夹不会被识别为资源包",{"2":{"287":1}}],["则需要删除await",{"2":{"283":1}}],["则传入泛型默认开启",{"2":{"65":1}}],["无需手动创建实例",{"2":{"294":1}}],["无需手动初始化bot",{"2":{"153":1}}],["无限戳",{"2":{"283":1}}],["执行",{"2":{"283":1}}],["疯狂戳好友",{"2":{"283":1}}],["否则会导致渲染失败或渲染结果不理想",{"2":{"286":1}}],["否则task对象会被销毁",{"2":{"282":1}}],["否则默认关闭",{"2":{"65":1}}],["等待所有异步任务结束",{"2":{"282":1}}],["单线程走到底",{"2":{"285":1}}],["单位s",{"2":{"282":1}}],["单元测试目录",{"2":{"277":1}}],["调用机器人函数",{"2":{"297":1}}],["调用机器人api",{"2":{"297":1}}],["调用重启进程方法",{"2":{"291":1}}],["调用函数",{"2":{"282":1}}],["调用bot",{"2":{"282":1}}],["也支持句末注释",{"2":{"281":1}}],["也可以监听其他进程的消息",{"2":{"269":1}}],["函数文件放在资源包的functions目录下",{"2":{"281":1}}],["函数文件",{"0":{"281":1}}],["函数列表",{"2":{"45":1}}],["属于资源包的一部分",{"2":{"280":1}}],["是可以相对引用的",{"2":{"287":1}}],["是轻雪的一个功能",{"2":{"280":1}}],["是否为协程可调用对象",{"2":{"259":1}}],["是否忽略警告",{"2":{"228":1}}],["是否忽略键不存在的错误",{"2":{"98":1}}],["是否包含顶层文件夹",{"2":{"222":1}}],["是否阻断后续优先级更低的匹配器",{"2":{"168":1}}],["是否递归监听子目录",{"2":{"151":1}}],["是否开启类型检查",{"2":{"65":1}}],["是否允许更新",{"2":{"2":1}}],["是否自动更新轻雪",{"2":{"1":1}}],["是否自动上报问题给轻雪服务器",{"2":{"1":1}}],["是否显示日志等级图标",{"2":{"1":1}}],["最后",{"0":{"279":1}}],["最佳实践",{"0":{"264":1},"1":{"265":1,"266":1,"267":1}}],["总结来说就是你干了什么",{"2":{"278":1}}],["给event添加新字段",{"2":{"278":1}}],["具体请参考gitmoji",{"2":{"278":1}}],["表示修复bug等",{"2":{"278":1}}],["表示引入新功能",{"2":{"278":1}}],["我们在src",{"2":{"294":1}}],["我们欢迎任何人参与开发",{"2":{"279":1}}],["我们使用gitmoji来标记commit的类型",{"2":{"278":1}}],["我们专门为minecraft开发的服务器bot",{"2":{"9":1}}],["应在每次完成一个功能或修复一个bug后提交代码",{"2":{"278":1}}],["应在初始化时调用",{"2":{"257":1}}],["尽量避免使用单引号",{"2":{"278":1}}],["尽量不要冲突",{"2":{"114":1}}],["没有危害的",{"2":{"278":1}}],["没有异步的必要",{"2":{"66":1}}],["提交到轻雪仓库的代码",{"2":{"278":1}}],["提供",{"2":{"6":1}}],["代码请遵循pep8和google",{"2":{"278":1}}],["规范化",{"0":{"278":1}}],["规则函数签名",{"2":{"176":1}}],["规则",{"2":{"168":1}}],["业务逻辑请在此目录下进行开发",{"2":{"277":1}}],["同时用户也应该自行选择可用的资源包",{"2":{"287":1}}],["同时也是liteyuki框架的仓库",{"2":{"277":1}}],["同步接收数据",{"2":{"67":1}}],["同步接收函数",{"2":{"59":1}}],["同步过滤函数",{"2":{"61":1}}],["同步进程生命周期函数",{"2":{"40":1}}],["同步生命周期函数",{"2":{"37":1}}],["中文文档",{"2":{"277":1}}],["英文文档",{"2":{"277":1}}],["文档请遵循markdown语法",{"2":{"278":1}}],["文档目录",{"2":{"277":1}}],["文件内容为一系列的命令",{"2":{"281":1}}],["文件名以",{"2":{"281":1}}],["文件夹路径",{"2":{"228":1}}],["文件路径",{"2":{"220":1}}],["文件数据",{"2":{"218":1}}],["工具目录",{"2":{"277":1}}],["内置资源包目录",{"2":{"277":1}}],["内存共享是线程安全的",{"2":{"272":1}}],["内存共享使得代码编写更加简洁",{"2":{"272":1}}],["内存",{"2":{"15":1,"295":1}}],["框架目录",{"2":{"277":1}}],["项目结构",{"0":{"277":1}}],["项目目录下的配置文件优先",{"2":{"121":1}}],["项目目录下的配置文件优先级高于config目录下的配置文件",{"2":{"114":1}}],["项目目录下的config",{"2":{"121":1}}],["出现冲突请与仓库维护者联系",{"2":{"275":1}}],["将你的分支合并到轻雪仓库的main分支",{"2":{"275":1}}],["将你的代码提交到这个分支",{"2":{"275":1}}],["将消息按照onebot标准处理好上报给轻雪",{"2":{"6":1}}],["组织账户下",{"2":{"275":1}}],["首先创建一个文件夹",{"2":{"290":1}}],["首先fork一份轻雪仓库到你的个人",{"2":{"275":1}}],["首次运行后生成config",{"2":{"0":1}}],["引用",{"2":{"275":1}}],["引用计数",{"2":{"109":1}}],["线程锁会自动保护共享内存的读写操作",{"2":{"272":1}}],["相比于普通进程通信",{"2":{"272":1}}],["相对路径",{"2":{"218":1}}],["且通过安全的方式传输到轻雪的服务器",{"2":{"295":1}}],["且通道标识为",{"2":{"270":1}}],["且遵守了相关字体开源协议",{"2":{"10":1}}],["创建入口文件",{"2":{"294":1}}],["创建插件",{"0":{"290":1}}],["创建子进程的同时会初始化一个被动通道和一个主动通道",{"2":{"270":1}}],["创建asyncio",{"2":{"128":1}}],["实现",{"2":{"270":1}}],["实现端本身不负责处理响应逻辑",{"2":{"6":1}}],["主题包中的html渲染使用js来规定数据的渲染位置",{"2":{"286":1}}],["主题商店提供了一些资源包供你选择",{"2":{"286":1}}],["主动模式需调用chan",{"2":{"270":1}}],["主进程中",{"2":{"270":1}}],["主进程中通过get",{"2":{"270":1}}],["主进程接收到消息后重启对应子进程",{"2":{"269":1}}],["主进程订阅者接收函数",{"2":{"92":1}}],["主进程创建单例",{"2":{"72":1}}],["被动模式",{"2":{"270":1}}],["被动模式由chan",{"2":{"270":1}}],["被动通道传递通道",{"2":{"73":1}}],["被动通道",{"2":{"71":1}}],["即可创建一个插件",{"2":{"290":1}}],["即后加载的资源包会覆盖前面的资源包",{"2":{"287":1}}],["即不等待",{"2":{"282":1}}],["即被动模式和主动模式",{"2":{"270":1}}],["即轻雪作为服务端",{"2":{"3":1}}],["有一个task任务没有完成而await被执行了",{"2":{"285":1}}],["有条件可以使用中英双语",{"2":{"278":1}}],["有两种接收模式",{"2":{"270":1}}],["有的插件安装后报错无法启动",{"2":{"6":1}}],["这样可以在控制台看到更多的调试信息",{"2":{"276":1}}],["这时可以通过通道对主进程发送消息",{"2":{"269":1}}],["这里给出一个参考值",{"2":{"3":1}}],["里",{"2":{"269":1}}],["简介",{"0":{"269":1,"272":1,"286":1,"288":1},"1":{"287":1,"289":1,"290":1,"291":1,"292":1,"293":1,"294":1}}],["闭源",{"2":{"267":1}}],["展示轻雪的所有实例及其位置分布",{"2":{"267":1}}],["支持中英文",{"2":{"303":2}}],["支持中英文城市名",{"2":{"303":1}}],["支持多个关键词查询",{"2":{"303":1}}],["支持绑定城市",{"2":{"303":1}}],["支持单行注释",{"2":{"281":1}}],["支持轻雪",{"2":{"266":1}}],["支持onebotv11标准",{"2":{"9":1}}],["让",{"2":{"266":1}}],["让轻雪支持",{"2":{"266":1}}],["官方定制轻雪机器人",{"2":{"265":1}}],["机器人源码目录",{"2":{"277":1}}],["机器人入口文件",{"2":{"277":1}}],["机器人应用",{"0":{"265":1}}],["机器人昵称列表",{"2":{"1":1}}],["路径a",{"2":{"262":1}}],["转换路径为模块名",{"2":{"262":1}}],["判断是否为协程可调用对象",{"2":{"259":1}}],["一个",{"2":{"290":1}}],["一个键不要多次出现",{"2":{"114":1}}],["一些常用的工具类",{"2":{"258":1}}],["根据不同类型插件设置颜色",{"2":{"229":1}}],["插件停用只能阻断传入响应",{"2":{"300":1}}],["插件管理",{"2":{"299":1,"300":1}}],["插件信息",{"2":{"295":1}}],["插件描述",{"2":{"290":1}}],["插件版本",{"2":{"290":1}}],["插件开发请在此目录下进行开发",{"2":{"277":1}}],["插件开发无需阅读本文档",{"2":{"275":1}}],["插件",{"0":{"266":1,"299":1},"1":{"300":1},"2":{"266":2}}],["插件类型",{"2":{"229":1,"290":1}}],["插件名称",{"2":{"227":1,"229":1,"290":1}}],["插件字典",{"2":{"225":1}}],["插件路径",{"2":{"153":1}}],["去头路径",{"2":{"223":1}}],["忽略的路径",{"2":{"222":1}}],["忽略私有函数和类",{"2":{"220":1}}],["\`",{"2":{"221":14}}],["+",{"2":{"221":2,"262":1}}],["+=",{"2":{"22":1,"69":1,"221":15}}],["字体包",{"2":{"286":1}}],["字符串请使用双引号",{"2":{"278":1}}],["字符串",{"2":{"221":1}}],["字段",{"2":{"3":1}}],["语言包等",{"2":{"286":1}}],["语言",{"2":{"221":1,"222":1}}],["输入值会被执行以转换为正确的类型",{"2":{"297":1}}],["输入playwright",{"2":{"6":1}}],["输出",{"2":{"281":1}}],["输出文件夹",{"2":{"222":1}}],["输出文件",{"2":{"218":1}}],["目标路径",{"2":{"217":1}}],["目前可用性较低",{"2":{"8":1}}],["目前markdown消息支持lagrange",{"2":{"8":1}}],["x26",{"2":{"174":1,"221":4}}],["x3c",{"2":{"20":4,"22":1,"160":5,"172":1,"221":8,"227":2,"229":2,"282":6,"303":2,"305":2}}],["505468b及以后的lagrange",{"2":{"297":1}}],["59",{"2":{"226":1,"230":1}}],["55",{"2":{"175":1}}],["52",{"2":{"171":1}}],["51",{"2":{"166":1}}],["优先级",{"2":{"168":1}}],["匹配器",{"2":{"168":1}}],["45m",{"2":{"305":2}}],["44",{"2":{"165":1}}],["47",{"2":{"161":1,"184":1}}],["回复消息",{"2":{"164":1}}],["⭕",{"2":{"160":1}}],["⚠️",{"2":{"160":1}}],["✅",{"2":{"160":1}}],["ℹ️信息",{"2":{"270":4}}],["ℹ️",{"2":{"160":1}}],["🐛",{"2":{"160":1}}],["31",{"2":{"254":1}}],["3",{"2":{"157":1,"228":1,"270":1}}],["6",{"2":{"157":1}}],["测试版本号",{"2":{"157":1}}],["此模块为内置插件文件夹",{"2":{"253":1}}],["此模块为liteyuki的框架整体",{"2":{"156":1}}],["此模块用于注册观察者函数",{"2":{"141":1}}],["运行环境的设备信息",{"2":{"295":1}}],["运行在主进程中",{"2":{"288":1}}],["运行协程",{"2":{"260":1}}],["运行处理函数",{"2":{"170":1}}],["运行插件",{"2":{"153":1}}],["运行订阅者接收函数",{"2":{"102":1}}],["上午12",{"2":{"231":1}}],["上午11",{"2":{"123":1}}],["上午6",{"2":{"185":1}}],["上午9",{"2":{"158":1}}],["上午5",{"2":{"152":1}}],["事件过滤器",{"2":{"151":1}}],["事件循环",{"2":{"19":1}}],["防抖函数",{"2":{"144":1}}],["防止获取空指针",{"2":{"109":1}}],["位置1为filesystemevent",{"2":{"142":1,"143":1}}],["启用",{"2":{"298":1,"300":1}}],["启用插件后",{"2":{"294":1}}],["启用开发者模式",{"2":{"276":1}}],["启用该模块需要在配置文件中设置dev",{"2":{"141":1}}],["启动后控制台输出",{"2":{"270":1}}],["启动后钩子",{"2":{"53":1}}],["启动所有子进程",{"2":{"139":1}}],["启动所有进程",{"2":{"128":1}}],["启动指定子进程",{"2":{"138":1}}],["启动发布订阅接收器循环",{"2":{"103":1}}],["启动前钩子",{"2":{"52":1}}],["启动",{"2":{"44":1}}],["启动容器",{"2":{"13":1}}],["启动bot",{"2":{"12":1}}],["启动时会加载项目目录下config",{"2":{"0":1}}],["添加配置项",{"2":{"297":1}}],["添加sleep",{"2":{"283":1}}],["添加处理函数",{"2":{"169":1}}],["添加子进程",{"2":{"137":1}}],["添加进程",{"2":{"129":1}}],["检查进程是否存活",{"2":{"133":1}}],["终止进程并从进程字典中删除",{"2":{"131":1}}],["通过关键词搜索插件",{"2":{"299":1}}],["通过装饰器注册一个函数在接收到消息时运行",{"2":{"270":1}}],["通常是目录不存在或目录为空",{"2":{"228":1}}],["通常会默认传入chan",{"2":{"129":1}}],["通道是全双工的",{"2":{"270":1}}],["通道通信",{"0":{"268":1},"1":{"269":1,"270":1,"271":1,"272":1,"273":1}}],["通道实例",{"2":{"74":1,"75":1,"76":1,"77":1}}],["通道名称",{"2":{"74":1,"76":1}}],["通道传递通道",{"2":{"72":1}}],["通道id",{"2":{"65":1,"87":1}}],["对于主动推送的插件不生效",{"2":{"300":1}}],["对于不同资源包的不同文件",{"2":{"287":1}}],["对外启动方法",{"2":{"128":1}}],["对公开放时建议设置",{"2":{"2":1}}],["按照读取文件的优先级反向覆盖",{"2":{"120":1}}],["从一个标准的轻雪项目加载配置文件",{"2":{"121":1}}],["从目录下加载配置文件",{"2":{"120":1}}],["从指定文件加载配置项",{"2":{"119":1}}],["8",{"2":{"116":1,"117":1,"118":1,"152":1,"161":1,"165":1,"166":1,"171":1,"175":1,"184":1,"185":1,"218":1,"220":1,"254":1,"255":1,"256":1}}],["但请注意甄别第三方插件的安全性",{"2":{"295":1}}],["但请保证以上三个字段",{"2":{"287":1}}],["但若出现非单function的情况",{"2":{"285":1}}],["但需单独起篇幅",{"2":{"280":1}}],["但在嵌套字符串时可以使用单引号",{"2":{"278":1}}],["但一个通道只能使用一种",{"2":{"270":1}}],["但也包含原有的键值对",{"2":{"115":1}}],["但是请保留原作者信息",{"2":{"295":1}}],["但是更加轻量级并且线程安全",{"2":{"91":1}}],["但是bot昵称有一个help",{"2":{"6":1}}],["但是基本上都是一样的",{"2":{"3":1}}],["但是部分内容会被覆盖",{"2":{"1":1}}],["扁平化后的配置文件",{"2":{"115":1}}],["扁平化配置文件",{"2":{"115":1}}],["扁平化编写",{"2":{"114":1}}],["注意不要嵌套文件夹",{"2":{"287":1}}],["注意冲突时的优先级",{"2":{"114":1}}],["注册一个函数在nonebot启动后运行",{"2":{"270":1}}],["注册一个函数在轻雪启动后运行",{"2":{"270":1}}],["注册文件系统变化监听器",{"2":{"151":1}}],["注册重启后的函数",{"2":{"32":1,"51":1}}],["注册进程重启前的函数",{"2":{"31":1,"50":1}}],["注册进程停止前的函数",{"2":{"30":1,"48":1}}],["注册停止后的函数",{"2":{"29":1,"49":1}}],["注册启动时的函数",{"2":{"46":1,"47":1}}],["注册启动后的函数",{"2":{"28":1}}],["注册启动前的函数",{"2":{"27":1}}],["每隔0",{"2":{"283":1}}],["每行一个命令",{"2":{"281":1}}],["每个语言的文档都要修订",{"2":{"278":1}}],["每个配置文件给一个或一类服务提供配置",{"2":{"114":1}}],["每种语言都有对应的文档",{"2":{"278":1}}],["每次接收到字符串数据时都会运行",{"2":{"270":1}}],["每3秒发送一次消息",{"2":{"270":1}}],["每天4点检查更新",{"2":{"1":1}}],["多配置文件编写原则",{"2":{"114":1}}],["共享内存通信",{"0":{"271":1},"1":{"272":1,"273":1}}],["共享内存对象",{"2":{"108":1}}],["共享内存模块",{"2":{"91":1}}],["订阅者接收消息时的回调",{"2":{"101":1}}],["频道",{"2":{"100":1,"101":1,"102":1}}],["发布消息",{"2":{"100":1}}],["发送函数为同步函数",{"2":{"66":1}}],["发送数据",{"2":{"66":1,"88":1}}],["删除键值对",{"2":{"98":1}}],["值",{"2":{"96":1,"97":1}}],["键值对",{"2":{"99":1}}],["键",{"2":{"96":1,"97":1,"98":1}}],["类似于minecraft的mcfunction",{"2":{"280":1}}],["类似于redis",{"2":{"91":1}}],["类型",{"2":{"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"59":1,"60":1,"61":1,"62":1,"63":1,"70":1,"71":1,"72":1,"73":1,"92":1,"93":1,"108":1,"142":1,"143":1,"176":1}}],["关闭通道",{"2":{"90":1}}],["关键字参数",{"2":{"24":1}}],["依赖关系",{"2":{"84":1}}],["设置用户信息或打开属性设置菜单",{"2":{"301":1}}],["设置",{"2":{"298":1,"301":1}}],["设置共享内存",{"2":{"273":1}}],["设置后的插件名称",{"2":{"229":1}}],["设置插件名称颜色",{"2":{"229":1}}],["设置键值对",{"2":{"96":1}}],["设置通道实例",{"2":{"74":1,"75":1}}],["设备上python环境太乱了",{"2":{"6":1}}],["子进程中获取通道直接导入进程全局单例即可",{"2":{"270":1}}],["子进程中导入单例active",{"2":{"270":1}}],["子进程名称",{"2":{"137":1,"138":1}}],["子进程函数关键字参数",{"2":{"137":1}}],["子进程函数参数",{"2":{"137":1}}],["子进程函数",{"2":{"137":1}}],["子进程订阅者接收函数",{"2":{"93":1}}],["子进程初始化时实例化",{"2":{"72":1}}],["子进程可用的主动和被动通道",{"2":{"70":1}}],["装饰回调函数实现",{"2":{"270":1}}],["装饰一个函数在接收到数据后执行",{"2":{"151":1}}],["装饰器",{"2":{"69":1,"101":1,"151":1,"169":2}}],["装置要求",{"0":{"15":1},"1":{"16":1}}],["接收数据",{"2":{"89":1}}],["接收数据并执行函数",{"2":{"69":1}}],["接收函数",{"2":{"60":1}}],["会自动判断key版本",{"2":{"303":1}}],["会自动识别文件格式",{"2":{"119":1}}],["会话负载信息",{"2":{"295":1}}],["会触发最大递归深度限制",{"2":{"283":1}}],["会挂起等待",{"2":{"68":1}}],["会阻塞线程",{"2":{"67":1}}],["数据",{"2":{"66":1,"67":1,"68":1,"88":1,"89":1,"100":1,"102":1}}],["过滤函数",{"2":{"63":1,"69":1}}],["并在其中写入一些代码",{"2":{"294":1}}],["并在其中写入以下代码",{"2":{"294":1}}],["并在其中创建一个",{"2":{"290":1}}],["并且应该在metadata",{"2":{"287":1}}],["并且不用修改源代码",{"2":{"286":1}}],["并且支持vitepress相关内容",{"2":{"278":1}}],["并遵循其许可进行修改",{"2":{"258":1}}],["并发运行异步函数",{"2":{"45":1}}],["并使用克隆而非直接下载的方式部署轻雪",{"2":{"6":1}}],["|",{"0":{"45":1,"153":1,"163":1,"164":1,"179":1,"227":1},"2":{"39":1,"42":1,"45":2,"60":1,"63":1,"153":1,"163":1,"164":1,"227":1}}],["下午12",{"2":{"254":1}}],["下午11",{"2":{"226":1,"230":1}}],["下午10",{"2":{"161":1,"165":1,"166":1,"171":1,"175":1,"184":1,"256":1}}],["下午8",{"2":{"36":1}}],["下面已经列出一些推荐的实现端",{"2":{"6":1}}],["7",{"2":{"36":1,"123":1,"158":1,"226":1,"230":1,"231":1}}],["兼容键",{"2":{"35":1}}],["兼容旧版本",{"2":{"35":1}}],["获取用户信息",{"2":{"301":1}}],["获取唯一的轻雪bot实例",{"2":{"291":1}}],["获取共享内存",{"2":{"273":1}}],["获取主动通道",{"2":{"270":1}}],["获取被动通道",{"2":{"270":1}}],["获取已加载的插件",{"2":{"225":1}}],["获取函数和类",{"2":{"220":1}}],["获取相对路径",{"2":{"217":1}}],["获取所有键值对",{"2":{"99":1}}],["获取键值对",{"2":{"97":1}}],["获取通道实例们",{"2":{"77":1}}],["获取通道实例",{"2":{"76":1}}],["获取配置",{"2":{"34":1,"35":1}}],["获取轻雪实例",{"2":{"33":1}}],["为可选参数",{"2":{"296":1}}],["为必填参数",{"2":{"296":1}}],["为子进程重启时调用",{"2":{"31":1}}],["为子进程停止时调用",{"2":{"30":1}}],["为什么我启动后机器人没有反应",{"2":{"6":1}}],["未实现",{"2":{"29":1,"32":1,"55":1,"57":1}}],["返回true则执行回调函数",{"2":{"151":1}}],["返回",{"2":{"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"67":1,"68":1,"69":1,"76":1,"77":1,"89":1,"97":1,"99":1,"101":1,"115":1,"151":1,"169":1,"220":1,"221":1,"225":1,"229":1,"259":1,"262":1,"263":1}}],["自定义选项title",{"2":{"221":1}}],["自动调用",{"2":{"24":1}}],["自己整一个websocket客户端",{"2":{"8":1}}],["进程生命周期函数",{"2":{"48":2,"50":2}}],["进程函数关键字参数",{"2":{"129":1}}],["进程函数参数",{"2":{"129":1}}],["进程函数",{"2":{"42":1,"129":1}}],["进程名",{"2":{"23":1,"129":1}}],["进入轻雪目录",{"2":{"13":1}}],["join",{"0":{"130":1},"2":{"22":1,"120":1,"130":2,"131":1,"219":1,"221":4,"222":1,"228":2,"262":2}}],["js",{"2":{"8":1}}],["json",{"0":{"117":1},"2":{"0":1,"117":4,"119":2,"121":1}}],["json和toml作为配置文件",{"2":{"0":1}}],["延迟重启时间",{"2":{"22":1}}],["kill",{"2":{"131":1}}],["k",{"2":{"115":2,"221":2}}],["keyword",{"2":{"174":2}}],["keywords为城市名",{"2":{"303":2}}],["keywords",{"0":{"174":2},"2":{"174":5,"299":1,"303":2}}],["keyerror",{"2":{"98":1,"138":1}}],["keyvaluestore",{"0":{"94":1},"1":{"95":1,"96":1,"97":1,"98":1,"99":1,"100":1,"101":1,"102":1,"103":1},"2":{"105":1,"108":1}}],["keys",{"0":{"35":1},"2":{"35":3}}],["key",{"0":{"34":1,"35":1,"96":1,"97":1,"98":2},"2":{"34":3,"35":10,"96":6,"97":6,"98":11,"110":3,"111":3,"112":3,"115":2,"273":2,"297":4,"301":2,"303":1}}],["keyboardinterrupt",{"2":{"20":1}}],["keeping",{"2":{"21":1}}],["keep",{"0":{"21":1},"2":{"21":1}}],["kwargs=none",{"2":{"129":1}}],["kwargs",{"0":{"19":1,"24":1,"45":1,"54":1,"56":1,"129":1,"136":1,"137":1},"2":{"19":3,"24":2,"45":3,"54":2,"56":2,"129":4,"136":2,"137":3,"144":2,"263":2,"297":2}}],["echo",{"2":{"281":3}}],["emoji",{"2":{"278":1}}],["emsp",{"2":{"221":4}}],["empty",{"0":{"173":1,"174":1,"182":1},"2":{"182":1,"227":1,"228":1}}],["email",{"2":{"36":1,"123":1,"152":1,"158":1,"161":1,"165":1,"166":1,"171":1,"175":1,"184":1,"185":1,"226":1,"230":1,"231":1,"254":1,"256":1}}],["enable",{"2":{"297":2,"298":1,"299":2,"300":2}}],["end",{"2":{"282":1}}],["endswith",{"2":{"119":3,"120":1,"219":1,"228":1,"291":1}}],["en",{"2":{"277":1}}],["ensure",{"2":{"260":1}}],["enum",{"0":{"186":1,"232":1},"1":{"187":1,"188":1,"189":1,"190":1,"191":1,"233":1,"234":1,"235":1,"236":1,"237":1}}],["enumerate",{"2":{"172":1}}],["encoding=",{"2":{"116":1,"117":1,"118":1,"218":1,"220":1}}],["enforcing",{"2":{"65":1}}],["e",{"2":{"98":2,"227":1,"229":1,"260":2}}],["errors=true",{"2":{"222":1}}],["error",{"0":{"98":1},"2":{"98":3,"160":2,"260":1}}],["else",{"2":{"22":1,"23":1,"33":1,"45":1,"65":1,"69":2,"74":1,"76":1,"77":1,"96":1,"97":1,"98":1,"99":1,"101":2,"116":1,"117":1,"118":1,"159":1,"160":5,"172":1,"220":9,"221":10,"222":2,"227":2,"260":1,"262":1}}],["elif",{"2":{"22":2,"65":1,"69":1,"119":4,"220":5,"227":2,"228":1}}],["extensions",{"2":{"291":2}}],["extend",{"2":{"153":1}}],["extra",{"0":{"245":1}}],["exclude",{"2":{"291":2}}],["exc",{"2":{"170":1,"227":1}}],["exception模块包含了liteyuki运行中的所有错误",{"2":{"154":1}}],["exception",{"0":{"154":1},"1":{"155":1},"2":{"21":1,"170":1,"227":1,"260":2}}],["except",{"2":{"20":1,"21":1,"98":1,"170":1,"227":1,"260":2}}],["executor",{"2":{"68":1}}],["executable",{"2":{"22":3}}],["exist",{"2":{"228":1}}],["exists",{"2":{"65":2,"74":1,"119":1,"120":1,"218":1,"228":2}}],["exit",{"2":{"22":1}}],["exiting",{"2":{"21":1}}],["event装饰器监听文件系统事件",{"2":{"291":1}}],["events",{"2":{"291":1}}],["eventhandler",{"0":{"169":2},"2":{"168":1,"169":4}}],["event",{"0":{"81":1,"82":1,"146":1,"147":1,"148":1,"149":1,"150":2,"151":2,"161":1,"170":1,"181":1,"182":1,"183":1,"255":1},"1":{"82":1,"83":2,"162":1,"163":1,"164":1},"2":{"19":4,"21":1,"26":1,"84":1,"146":1,"147":2,"148":2,"149":2,"150":3,"151":8,"161":1,"164":2,"170":4,"174":2,"179":3,"180":3,"181":2,"182":1,"183":2,"255":3,"260":2,"291":8}}],["外部启动接口",{"2":{"20":1}}],["加载",{"2":{"300":1}}],["加载插件",{"0":{"292":1},"1":{"293":1,"294":1}}],["加载插件加载器",{"2":{"19":1}}],["加载资源包",{"0":{"287":1},"2":{"299":1}}],["加载单个插件",{"2":{"227":1}}],["加入qq群775840726",{"2":{"7":1}}],["生成文档",{"2":{"222":1}}],["生成模块的markdown",{"2":{"221":1}}],["生命周期函数",{"2":{"27":2,"28":2,"29":2,"30":2,"31":2,"32":2,"39":1,"46":2,"47":2,"49":2,"51":2}}],["生命周期管理",{"2":{"19":1}}],["生产环境中推荐反向websocket",{"2":{"3":1}}],["初始化通道",{"2":{"65":1,"87":1}}],["初始化日志",{"2":{"25":1}}],["初始化轻雪",{"2":{"24":1}}],["初始化轻雪实例",{"2":{"19":1}}],["初始化",{"2":{"19":1}}],["=none",{"2":{"23":1,"65":1,"69":1,"97":1,"163":2}}],["==",{"2":{"22":3,"77":1,"78":2,"79":2,"80":1,"103":1,"109":1,"110":2,"111":2,"112":2,"113":1,"159":1,"220":4,"221":2,"262":1}}],["=",{"0":{"22":1,"23":1,"34":1,"35":1,"65":1,"69":1,"97":1,"98":1,"106":1,"107":1,"119":1,"120":1,"121":1,"129":2,"151":2,"163":2,"173":3,"174":3,"179":1,"180":1,"181":1,"187":1,"188":1,"189":1,"190":1,"191":1,"193":1,"194":1,"195":1,"196":1,"197":1,"198":1,"199":1,"201":1,"202":1,"203":1,"204":1,"206":1,"207":1,"208":1,"209":1,"210":1,"212":1,"213":1,"214":1,"215":1,"216":1,"220":1,"221":2,"222":3,"228":1,"233":1,"234":1,"235":1,"236":1,"237":1,"239":1,"240":1,"241":1,"242":1,"243":1,"244":1,"245":1,"248":1,"249":1,"250":1,"251":1,"252":1},"2":{"19":7,"22":6,"23":2,"44":7,"45":1,"65":10,"66":1,"67":1,"68":2,"69":1,"74":1,"76":1,"77":1,"78":1,"79":1,"80":1,"83":2,"87":4,"95":6,"96":2,"97":2,"98":1,"99":1,"101":2,"103":1,"105":1,"110":3,"111":2,"112":1,"113":1,"115":2,"116":1,"117":1,"118":1,"119":1,"120":1,"121":1,"125":5,"127":3,"129":5,"131":1,"135":1,"136":1,"137":1,"144":3,"151":2,"153":4,"160":1,"163":10,"164":1,"168":5,"173":1,"178":1,"219":1,"220":17,"221":16,"222":13,"227":12,"228":6,"229":5,"259":1,"260":2,"262":1,"263":1,"270":5,"273":1,"290":1,"291":2}}],[">",{"2":{"19":1,"27":1,"31":1,"33":1,"34":1,"35":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"67":1,"68":1,"69":3,"76":1,"77":1,"96":1,"97":1,"98":1,"99":1,"100":1,"101":2,"115":1,"116":1,"117":1,"118":1,"119":1,"120":1,"121":1,"133":1,"136":1,"144":1,"151":2,"159":1,"169":2,"170":1,"173":1,"174":1,"179":2,"180":2,"181":1,"182":1,"183":1,"217":1,"220":1,"221":3,"222":1,"225":1,"227":1,"228":1,"229":3,"259":1,"262":1,"263":1,"303":2}}],["在群聊启用",{"2":{"297":1}}],["在普通图片和markdown大图之间切换",{"2":{"297":1}}],["在配置文件中的liteyuki",{"2":{"293":1}}],["在b中定义了templates",{"2":{"287":1}}],["在设备上执行命令",{"2":{"282":1}}],["在发信器输出",{"2":{"281":1}}],["在你的仓库中创建一个pull",{"2":{"275":1}}],["在你的仓库中创建一个新的分支",{"2":{"275":1}}],["在你的仓库中进行开发",{"2":{"275":1}}],["在任意进程中均可使用",{"2":{"273":1}}],["在子进程中",{"2":{"270":1}}],["在轻雪插件中",{"2":{"270":1}}],["在新线程中运行协程",{"2":{"261":1}}],["在语言加载完成后执行",{"2":{"160":1}}],["在主进程中运行",{"2":{"103":1}}],["在github上查看",{"2":{"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"65":1,"66":1,"67":1,"68":1,"69":1,"74":1,"75":1,"76":1,"77":1,"78":1,"79":1,"80":1,"83":1,"87":1,"88":1,"89":1,"90":1,"95":1,"96":1,"97":1,"98":1,"99":1,"100":1,"101":1,"102":1,"103":1,"105":1,"110":1,"111":1,"112":1,"113":1,"115":1,"116":1,"117":1,"118":1,"119":1,"120":1,"121":1,"125":1,"127":1,"128":1,"129":1,"130":1,"131":1,"132":1,"133":1,"135":1,"136":1,"137":1,"138":1,"139":1,"144":1,"146":1,"147":1,"148":1,"149":1,"150":1,"151":1,"153":1,"159":1,"160":1,"163":1,"164":1,"168":1,"169":1,"170":1,"172":1,"173":1,"174":1,"178":1,"179":1,"180":1,"181":1,"182":1,"183":1,"217":1,"218":1,"219":1,"220":1,"221":1,"222":1,"225":1,"227":1,"228":1,"229":1,"247":1,"255":1,"257":1,"259":1,"260":1,"261":1,"262":1,"263":1}}],["在安全模式下你可以使用npm",{"2":{"6":1}}],["或插件路径",{"2":{"227":1}}],["或",{"2":{"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"65":1,"66":1,"67":1,"68":1,"69":1,"74":1,"75":1,"76":1,"77":1,"78":1,"79":1,"80":1,"83":1,"87":1,"88":1,"89":1,"90":1,"95":1,"96":1,"97":1,"98":1,"99":1,"100":1,"101":1,"102":1,"103":1,"105":1,"110":1,"111":1,"112":1,"113":1,"115":1,"116":1,"117":1,"118":1,"119":1,"120":1,"121":1,"125":1,"127":1,"128":1,"129":1,"130":1,"131":1,"132":1,"133":1,"135":1,"136":1,"137":1,"138":1,"139":1,"144":1,"146":1,"147":1,"148":1,"149":1,"150":1,"151":1,"153":1,"159":1,"160":1,"163":1,"164":1,"168":1,"169":1,"170":1,"172":1,"173":1,"174":1,"178":1,"179":1,"180":1,"181":1,"182":1,"183":1,"217":1,"218":1,"219":1,"220":1,"221":1,"222":1,"225":1,"227":1,"228":1,"229":1,"247":1,"255":1,"257":1,"259":1,"260":1,"261":1,"262":1,"263":1,"305":2}}],["源代码",{"2":{"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"65":1,"66":1,"67":1,"68":1,"69":1,"74":1,"75":1,"76":1,"77":1,"78":1,"79":1,"80":1,"83":1,"87":1,"88":1,"89":1,"90":1,"95":1,"96":1,"97":1,"98":1,"99":1,"100":1,"101":1,"102":1,"103":1,"105":1,"110":1,"111":1,"112":1,"113":1,"115":1,"116":1,"117":1,"118":1,"119":1,"120":1,"121":1,"125":1,"127":1,"128":1,"129":1,"130":1,"131":1,"132":1,"133":1,"135":1,"136":1,"137":1,"138":1,"139":1,"144":1,"146":1,"147":1,"148":1,"149":1,"150":1,"151":1,"153":1,"159":1,"160":1,"163":1,"164":1,"168":1,"169":1,"170":1,"172":1,"173":1,"174":1,"178":1,"179":1,"180":1,"181":1,"182":1,"183":1,"217":1,"218":1,"219":1,"220":1,"221":2,"222":1,"225":1,"227":1,"228":1,"229":1,"247":1,"255":1,"257":1,"259":1,"260":1,"261":1,"262":1,"263":1,"273":1}}],["参与开发默认你已经了解python语言和轻雪框架的基本使用方法",{"2":{"275":1}}],["参考liteyuki",{"2":{"153":1}}],["参考值",{"2":{"3":1}}],["参数列表",{"2":{"297":2}}],["参数为调用set",{"2":{"270":1}}],["参数",{"2":{"19":1,"22":1,"23":1,"24":2,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"34":1,"35":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"65":1,"66":1,"69":1,"74":1,"75":1,"76":1,"87":1,"88":1,"96":1,"97":1,"98":1,"100":1,"101":1,"102":1,"115":1,"129":1,"131":1,"133":1,"137":1,"138":1,"151":1,"153":1,"164":1,"168":1,"170":1,"217":1,"218":1,"220":1,"221":1,"222":1,"227":1,"228":1,"229":1,"259":1,"260":1,"261":1,"262":1,"263":1,"296":1,"305":1}}],["feat",{"2":{"278":1}}],["future",{"2":{"260":1}}],["function实现语法高亮",{"2":{"285":1}}],["functiondef",{"2":{"220":3}}],["functioninfo",{"0":{"192":1,"208":1,"213":1},"1":{"193":1,"194":1,"195":1,"196":1,"197":1,"198":1,"199":1},"2":{"220":2}}],["function",{"0":{"187":2},"2":{"220":3,"280":1,"282":1,"283":2,"297":3}}],["functions=",{"2":{"220":1}}],["functions",{"0":{"213":1},"2":{"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"220":1,"221":1}}],["func=none",{"2":{"151":1}}],["func=lambda",{"2":{"77":1,"78":2,"79":2,"80":1,"270":1}}],["funcs",{"0":{"45":2,"92":1,"93":1,"102":1},"2":{"44":6,"45":4,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":2,"53":2,"54":2,"55":2,"56":2,"57":2,"69":1,"101":6,"102":2,"103":1}}],["func",{"0":{"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":4,"28":3,"29":3,"30":3,"31":4,"32":3,"33":1,"34":1,"35":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"44":1,"45":3,"46":4,"47":4,"48":4,"49":4,"50":4,"51":4,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"59":1,"60":1,"61":1,"62":1,"63":1,"65":1,"66":1,"67":1,"68":1,"69":3,"74":1,"75":1,"76":1,"77":1,"78":1,"79":1,"80":1,"83":1,"87":1,"88":1,"89":1,"90":1,"95":1,"96":1,"97":1,"98":1,"99":1,"100":1,"101":3,"102":1,"103":1,"105":1,"110":1,"111":1,"112":1,"113":1,"115":1,"116":1,"117":1,"118":1,"119":1,"120":1,"121":1,"125":1,"127":1,"128":1,"129":2,"130":1,"131":1,"132":1,"133":1,"135":1,"136":1,"137":2,"138":1,"139":1,"142":1,"143":1,"144":1,"146":1,"147":1,"148":1,"149":1,"150":1,"151":4,"153":1,"159":1,"160":1,"163":1,"164":1,"168":1,"169":1,"170":1,"172":1,"173":1,"174":1,"178":1,"179":1,"180":1,"181":1,"182":1,"183":1,"217":1,"218":1,"219":1,"220":1,"221":1,"222":1,"225":1,"227":1,"228":1,"229":1,"247":1,"255":1,"257":1,"259":1,"260":1,"261":1,"262":1,"263":2},"2":{"27":7,"28":6,"29":6,"30":6,"31":7,"32":6,"39":2,"42":2,"44":6,"45":8,"46":8,"47":8,"48":8,"49":8,"50":8,"51":8,"60":2,"63":2,"65":2,"69":20,"92":1,"93":1,"101":8,"102":2,"129":1,"136":2,"137":3,"144":2,"151":7,"220":2,"221":9,"259":2,"263":4,"282":1}}],["failed",{"2":{"227":1}}],["false时例如docs",{"2":{"222":1}}],["false",{"0":{"119":1,"120":1,"121":1,"173":1,"174":1,"222":1},"2":{"2":4,"65":2,"87":1,"95":2,"259":1}}],["first",{"2":{"220":2}}],["filter=lambda",{"2":{"291":1}}],["filter",{"0":{"61":1,"62":1,"63":1,"69":2,"143":1,"151":2},"2":{"63":2,"69":8,"77":1,"78":2,"79":2,"80":1,"151":5,"270":1}}],["filesystemeventhandler",{"0":{"145":1},"1":{"146":1,"147":1,"148":1,"149":1,"150":1}}],["filesystemevent",{"2":{"142":1,"143":1,"151":1,"291":2}}],["files",{"0":{"119":2,"218":1},"2":{"119":3,"120":1,"121":1,"218":1,"219":2,"222":1}}],["file",{"0":{"116":1,"117":1,"118":1,"151":1,"218":1,"219":1,"220":1},"2":{"36":1,"116":4,"117":4,"118":4,"119":12,"120":3,"123":1,"151":1,"152":1,"158":1,"161":1,"165":1,"166":1,"171":1,"175":1,"184":1,"185":1,"218":3,"219":7,"220":8,"222":6,"226":1,"230":1,"231":1,"254":1,"256":1,"291":3}}],["friend",{"2":{"283":2}}],["front",{"0":{"221":1},"2":{"221":5,"222":3}}],["from",{"0":{"116":1,"117":1,"118":1,"119":1,"120":1},"2":{"67":1,"116":3,"117":3,"118":3,"119":4,"120":2,"121":2,"270":4,"290":1,"291":3}}],["framework",{"2":{"156":1}}],["flake8",{"2":{"276":1}}],["flat",{"0":{"115":1},"2":{"115":2,"116":1,"117":1,"118":1}}],["flag",{"2":{"44":1}}],["folder",{"0":{"219":1,"222":1},"2":{"219":2,"222":4,"223":1,"253":1}}],["found",{"2":{"66":1,"74":1,"119":1,"120":1,"131":1,"133":1,"138":1}}],["format=get",{"2":{"160":1}}],["formats",{"2":{"120":1}}],["format",{"0":{"159":1,"229":1},"2":{"119":1,"159":3,"160":1,"227":2,"229":1}}],["for",{"2":{"23":1,"35":1,"45":1,"65":1,"75":1,"102":1,"115":2,"119":1,"120":2,"128":1,"130":1,"132":1,"139":1,"151":1,"170":1,"172":1,"174":1,"218":1,"219":2,"220":12,"221":9,"222":3,"228":2,"257":2,"260":2,"290":1}}],["f",{"2":{"22":1,"23":2,"35":1,"65":4,"66":1,"74":2,"115":1,"116":1,"117":1,"118":1,"119":2,"120":1,"128":1,"131":2,"133":1,"138":1,"139":1,"218":2,"221":19,"222":1,"227":5,"228":9,"229":1,"260":1,"270":2,"291":1}}],["模块名",{"2":{"262":1}}],["模块文件夹",{"2":{"222":1}}],["模块信息",{"2":{"220":1,"221":1}}],["模块",{"0":{"17":1,"36":1,"58":1,"81":1,"84":1,"85":1,"91":1,"114":1,"122":1,"123":1,"140":1,"141":1,"152":1,"154":1,"156":1,"158":1,"161":1,"165":1,"166":1,"171":1,"175":1,"184":1,"185":1,"224":1,"226":1,"230":1,"231":1,"253":1,"254":1,"256":1,"258":1},"1":{"18":1,"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"43":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"59":1,"60":1,"61":1,"62":1,"63":1,"64":1,"65":1,"66":1,"67":1,"68":1,"69":1,"70":1,"71":1,"72":1,"73":1,"74":1,"75":1,"76":1,"77":1,"78":1,"79":1,"80":1,"82":1,"83":1,"86":1,"87":1,"88":1,"89":1,"90":1,"92":1,"93":1,"94":1,"95":1,"96":1,"97":1,"98":1,"99":1,"100":1,"101":1,"102":1,"103":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":1,"110":1,"111":1,"112":1,"113":1,"115":1,"116":1,"117":1,"118":1,"119":1,"120":1,"121":1,"124":1,"125":1,"126":1,"127":1,"128":1,"129":1,"130":1,"131":1,"132":1,"133":1,"134":1,"135":1,"136":1,"137":1,"138":1,"139":1,"142":1,"143":1,"144":1,"145":1,"146":1,"147":1,"148":1,"149":1,"150":1,"151":1,"153":1,"155":1,"157":1,"159":1,"160":1,"162":1,"163":1,"164":1,"167":1,"168":1,"169":1,"170":1,"172":1,"173":1,"174":1,"176":1,"177":1,"178":1,"179":1,"180":1,"181":1,"182":1,"183":1,"186":1,"187":1,"188":1,"189":1,"190":1,"191":1,"192":1,"193":1,"194":1,"195":1,"196":1,"197":1,"198":1,"199":1,"200":1,"201":1,"202":1,"203":1,"204":1,"205":1,"206":1,"207":1,"208":1,"209":1,"210":1,"211":1,"212":1,"213":1,"214":1,"215":1,"216":1,"217":1,"218":1,"219":1,"220":1,"221":1,"222":1,"223":1,"225":1,"227":1,"228":1,"229":1,"232":1,"233":1,"234":1,"235":1,"236":1,"237":1,"238":1,"239":1,"240":1,"241":1,"242":1,"243":1,"244":1,"245":1,"246":1,"247":1,"248":1,"249":1,"250":1,"251":1,"252":1,"255":1,"257":1,"259":1,"260":1,"261":1,"262":1,"263":1}}],["至少1gb空间",{"2":{"15":1}}],["至少1vcpu",{"2":{"15":1}}],["硬盘",{"2":{"15":1}}],["及",{"2":{"15":1}}],["不带key返回配置项列表",{"2":{"297":1}}],["不包含任何隐私信息",{"2":{"295":1}}],["不含隐私部分",{"2":{"295":1}}],["不含插件数据",{"2":{"295":1}}],["不同adapter",{"2":{"284":1}}],["不同的实现端给出的字段可能不同",{"2":{"3":1}}],["不限制commit",{"2":{"278":1}}],["不要出现无法访问的死链接",{"2":{"278":1}}],["不要出现过多的嵌套",{"2":{"114":1}}],["不要将多个功能或多个bug的代码混在一起提交",{"2":{"278":1}}],["不递归",{"2":{"120":1}}],["不是liteyukibot官方提供的功能",{"2":{"14":1}}],["该功能需要commit",{"2":{"297":1}}],["该功能由trss提供支持",{"2":{"14":1}}],["该模块封装通道实现",{"2":{"272":1}}],["该模块用于存放一些开发工具",{"2":{"122":1}}],["该模块用于常用配置文件的加载",{"2":{"114":1}}],["该模块用于轻雪主进程和nonebot子进程之间的通信",{"2":{"84":1}}],["该步骤为必要项",{"2":{"12":1}}],["weather",{"0":{"303":1},"1":{"304":1},"2":{"303":1,"304":1}}],["world",{"2":{"281":5}}],["w",{"2":{"218":1}}],["write",{"0":{"218":1},"2":{"218":2,"222":1}}],["wrapper",{"0":{"263":1},"2":{"45":1,"69":2,"101":4,"129":1,"144":2,"151":2,"263":4}}],["watchdog",{"2":{"291":1,"294":1}}],["watch",{"2":{"290":1,"291":1}}],["walk",{"2":{"219":1,"220":1}}],["wait",{"0":{"144":1},"2":{"144":2}}],["waring=no",{"2":{"121":1}}],["waring",{"0":{"120":1,"121":1},"2":{"120":3,"121":3}}],["warning=no",{"2":{"120":1,"121":1}}],["warning",{"0":{"119":1,"228":1},"2":{"15":2,"35":1,"119":5,"120":1,"131":1,"133":1,"160":2,"227":1,"228":8,"285":1,"300":1}}],["will",{"2":{"35":1}}],["with",{"0":{"35":1,"222":1},"2":{"35":1,"96":1,"97":1,"98":1,"105":1,"218":1,"220":1,"221":5,"222":3}}],["windows",{"2":{"15":1,"22":1}}],["windows系统版本最低windows10+",{"2":{"15":1}}],["windows请使用项目绝对目录",{"2":{"13":1}}],["while",{"2":{"21":1,"67":1,"103":1,"270":2}}],["ws",{"2":{"3":2}}],["$",{"2":{"13":2}}],["构建镜像",{"2":{"13":1}}],["克隆项目",{"2":{"13":1}}],["克隆项目到本地",{"2":{"12":1}}],["使用通用日期简写",{"2":{"305":2}}],["使用此项目代表你已经同意以上协议",{"2":{"295":1}}],["使用开发工具快速运行插件",{"2":{"294":1}}],["使用",{"2":{"283":1}}],["使用新的task执行命令",{"2":{"282":1}}],["使用watchdog监控文件变化并重启bot",{"2":{"141":1}}],["使用trss",{"0":{"14":1}}],["使用docker构建",{"0":{"13":1}}],["使用其他项目连接请先自行查阅文档",{"2":{"9":1}}],["b包也定义了一个index",{"2":{"287":1}}],["bug",{"2":{"278":1}}],["built",{"2":{"253":2}}],["build",{"2":{"13":1}}],["break",{"2":{"172":1}}],["black等工具进行代码检查和格式化",{"2":{"276":1}}],["block",{"0":{"168":1,"173":1,"174":1},"2":{"168":4,"173":2,"174":2}}],["blue>",{"2":{"160":1}}],["bases",{"2":{"220":1}}],["base",{"0":{"217":1},"2":{"217":3,"220":2}}],["basemodel",{"0":{"192":1,"200":1,"205":1,"211":1,"238":1,"246":1},"1":{"193":1,"194":1,"195":1,"196":1,"197":1,"198":1,"199":1,"201":1,"202":1,"203":1,"204":1,"206":1,"207":1,"208":1,"209":1,"210":1,"212":1,"213":1,"214":1,"215":1,"216":1,"239":1,"240":1,"241":1,"242":1,"243":1,"244":1,"245":1,"247":1,"248":1,"249":1,"250":1,"251":1,"252":1}}],["baseexception",{"0":{"155":1}}],["bash",{"2":{"12":1}}],["b",{"2":{"115":1,"222":2,"262":2,"306":1}}],["body",{"2":{"220":1}}],["bool=false",{"2":{"119":1,"120":1,"121":1,"173":1,"174":1,"222":1}}],["bool=true",{"2":{"98":1,"151":1,"220":1,"228":1}}],["bool",{"0":{"65":1,"98":1,"119":1,"120":1,"121":1,"133":1,"151":1,"168":1,"173":1,"174":1,"181":1,"182":1,"183":1,"199":1,"220":1,"222":1,"228":1,"259":1},"2":{"61":1,"62":1,"65":1,"133":1,"143":1,"168":1,"176":1,"179":1,"180":1,"181":1,"182":1,"183":1,"259":2}}],["bot",{"0":{"17":1,"33":1,"36":1,"163":1},"1":{"18":1,"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"43":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1},"2":{"19":2,"33":4,"34":1,"35":4,"153":2,"163":3,"164":2,"270":4,"281":1,"291":2,"297":1,"305":3,"306":1}}],["bot无其他插件会占用300~500mb",{"2":{"15":1}}],["be",{"2":{"35":1,"66":1,"69":1,"74":1,"146":1}}],["before",{"0":{"27":1,"30":1,"31":1,"46":1,"48":1,"50":1,"52":1,"54":1,"56":1},"2":{"27":2,"30":2,"31":2,"44":3,"46":2,"48":2,"50":2,"52":3,"54":3,"56":3}}],["bind",{"2":{"304":1}}],["bin",{"2":{"12":1}}],["可用",{"2":{"297":1}}],["可用参数",{"2":{"297":1}}],["可递归",{"2":{"282":1}}],["可调用对象",{"2":{"259":1}}],["可以很高程度地扩展轻雪的功能",{"2":{"288":1}}],["可以在配置文件中把auto",{"2":{"295":1}}],["可以在a的index",{"2":{"287":1}}],["可以在此基础上进行修改",{"2":{"286":1}}],["可以在config",{"2":{"276":1}}],["可以是本地插件或是通过",{"2":{"227":1}}],["可以使用liteyuki镜像",{"2":{"12":1}}],["可使用ws",{"2":{"8":1}}],["help",{"2":{"299":1,"300":1}}],["hello",{"2":{"281":5,"297":1}}],["html中用",{"2":{"287":1}}],["html",{"2":{"287":1}}],["html文件会被覆盖",{"2":{"287":1}}],["html文件",{"2":{"287":2}}],["https",{"2":{"12":2,"13":1}}],["hash",{"0":{"247":1},"2":{"247":2}}],["handle",{"0":{"169":1},"2":{"169":1,"254":1,"255":1}}],["handlers",{"2":{"168":1,"169":1,"170":1}}],["handler",{"0":{"178":1},"2":{"151":3,"169":4,"170":2,"178":3,"179":4,"180":4,"181":2}}],["homepage",{"0":{"244":1}}],["host",{"2":{"1":1}}],["hint",{"2":{"65":1,"220":1,"221":1}}],["环境",{"2":{"12":1}}],["和风天气的天气key",{"2":{"303":1}}],["和10是不一样的",{"2":{"297":1}}],["和config目录下的所有配置文件",{"2":{"121":1}}],["和",{"2":{"12":1,"265":1,"297":1}}],["常规操作",{"2":{"19":1}}],["常规部署",{"0":{"12":1}}],["常见问题",{"0":{"6":1}}],["安装插件",{"2":{"299":1}}],["安装的插件",{"2":{"227":1}}],["安装依赖",{"2":{"12":1}}],["安装",{"0":{"11":1},"1":{"12":1,"13":1,"14":1,"15":1,"16":1},"2":{"12":1,"13":1,"296":1,"300":1}}],["安全模式",{"2":{"2":1}}],["鸣谢",{"0":{"10":1}}],["然后运行python",{"2":{"294":1}}],["然后使用",{"2":{"12":1}}],["然后给轻雪传输数据",{"2":{"8":1}}],["然后用",{"2":{"6":1}}],["看着qq的消息",{"2":{"8":1}}],["人工实现的onebot协议",{"2":{"8":1}}],["需要在最后调用",{"2":{"282":1}}],["需要官方机器人权限",{"2":{"8":1}}],["需要安装ntqq",{"2":{"8":1}}],["原生实现",{"2":{"8":1}}],["group",{"2":{"297":9,"298":1,"299":2,"305":3,"306":1}}],["green>",{"2":{"160":1}}],["guide",{"2":{"278":1}}],["g",{"2":{"229":1,"306":1}}],["gather",{"2":{"45":1,"260":1}}],["generate",{"0":{"221":1,"222":1},"2":{"221":1,"222":3}}],["generic",{"0":{"64":1},"1":{"65":1,"66":1,"67":1,"68":1,"69":1},"2":{"65":2,"66":1}}],["gensokyo",{"2":{"8":1}}],["getattr",{"2":{"259":1}}],["get",{"0":{"33":1,"34":1,"35":1,"76":1,"77":1,"79":1,"80":1,"97":1,"99":1,"105":1,"110":1,"113":1,"159":1,"217":1,"219":1,"220":1,"225":1},"2":{"23":2,"33":2,"34":3,"35":5,"65":2,"66":1,"68":1,"76":2,"77":2,"78":1,"79":4,"80":3,"96":1,"97":4,"98":1,"99":2,"105":1,"108":1,"109":1,"110":3,"112":1,"113":3,"153":1,"159":1,"160":2,"217":1,"219":1,"220":5,"222":3,"223":1,"225":1,"227":3,"228":1,"257":2,"260":1,"270":8,"273":1,"291":2,"297":3,"298":1,"301":2}}],["globalkeyvaluestore",{"0":{"104":1},"1":{"105":1,"106":1,"107":1},"2":{"108":1}}],["global",{"2":{"19":1,"69":1,"299":2,"300":2}}],["gt",{"0":{"19":1,"27":1,"31":1,"33":1,"34":1,"35":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"67":1,"68":1,"69":1,"76":1,"77":1,"96":1,"97":1,"98":1,"99":1,"100":1,"101":1,"115":1,"116":1,"117":1,"118":1,"119":1,"120":1,"121":1,"133":1,"136":1,"151":1,"159":1,"169":1,"170":1,"173":1,"174":1,"179":1,"180":1,"181":1,"182":1,"183":1,"217":1,"220":1,"221":1,"225":1,"227":1,"228":1,"229":1,"259":1,"262":1,"263":1},"2":{"84":3,"115":1,"168":1,"262":1,"278":2,"296":1,"297":7,"299":10,"301":2}}],["github",{"2":{"12":1,"13":1,"265":1}}],["git",{"2":{"12":3,"13":1}}],["golang",{"2":{"8":1}}],["go语言实现的onebot11实现端",{"2":{"8":1}}],["go",{"2":{"8":1}}],["occurred",{"2":{"260":1}}],["output",{"0":{"222":1},"2":{"222":5}}],["outlook",{"2":{"36":1,"123":1,"152":1,"158":1,"161":1,"165":1,"166":1,"171":1,"175":1,"184":1,"185":1,"226":1,"230":1,"231":1,"254":1,"256":1}}],["order",{"2":{"222":1}}],["or",{"2":{"179":2,"220":4}}],["other",{"0":{"179":1,"180":1},"2":{"179":2,"180":2}}],["overall",{"2":{"156":1}}],["observer",{"0":{"141":1},"1":{"142":1,"143":1,"144":1,"145":1,"146":1,"147":1,"148":1,"149":1,"150":1,"151":1},"2":{"151":1,"291":2}}],["os",{"2":{"119":1,"120":3,"217":1,"218":4,"219":2,"220":1,"222":2,"228":9,"291":2}}],["of",{"2":{"66":1,"74":1,"156":1,"227":1}}],["only",{"2":{"69":1}}],["on",{"0":{"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"59":1,"60":1,"69":1,"78":1,"79":1,"80":1,"92":1,"93":1,"101":3,"110":1,"111":1,"112":1,"113":1,"146":1,"147":1,"148":1,"149":1,"150":1,"151":1,"171":1,"173":1,"174":1},"1":{"172":1,"173":1,"174":1},"2":{"27":2,"28":2,"29":2,"30":2,"31":2,"32":2,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"60":2,"65":2,"69":4,"77":1,"78":3,"79":3,"80":2,"92":1,"93":1,"101":11,"102":1,"109":1,"110":3,"111":3,"112":3,"113":2,"146":2,"147":2,"148":2,"149":2,"150":2,"151":2,"171":1,"173":1,"174":4,"254":1,"255":1,"270":6,"291":1}}],["onebot",{"2":{"2":1,"3":1,"8":2,"284":1,"297":1}}],["open",{"2":{"22":1,"116":1,"117":1,"118":1,"218":1,"220":1}}],["openshamrock",{"2":{"8":1}}],["option",{"2":{"296":1}}],["optional",{"0":{"23":1,"65":1,"69":1,"97":2,"163":2,"227":1,"252":1},"2":{"22":1,"23":2,"34":1,"35":1,"65":1,"69":3,"95":2,"97":3,"163":2,"227":1}}],["opt",{"2":{"20":2,"227":3}}],["基础插件",{"0":{"296":1},"1":{"297":1,"298":1,"299":1,"300":1,"301":1}}],["基础路径",{"2":{"217":1}}],["基础配置项",{"0":{"1":1}}],["基于socket的通道",{"2":{"85":1}}],["基于",{"2":{"8":1,"265":1}}],["基于node",{"2":{"8":1}}],["基于ntqq的onebot实现",{"2":{"8":1}}],["基于lsposed的onebot11实现",{"2":{"8":1}}],["qq群号",{"2":{"305":1}}],["qq官方机器人api",{"2":{"8":1}}],["qq",{"0":{"8":1}}],["quot",{"2":{"3":2,"278":1,"285":2,"297":2,"303":4}}],["推荐私聊使用",{"2":{"297":1}}],["推荐在编写html时同时更改对应js代码",{"2":{"286":1}}],["推荐",{"2":{"278":1}}],["推荐ubuntu",{"2":{"15":1}}],["推荐使用arch",{"2":{"14":1}}],["推荐使用虚拟环境来运行轻雪",{"2":{"12":1}}],["推荐使用反向ws协议进行通信",{"2":{"3":1}}],["推荐方案",{"0":{"8":1,"9":1}}],["仍然出现问题",{"2":{"6":1}}],["登录功能由实现端",{"2":{"6":1}}],["本项目不会收集用户的任何隐私信息",{"2":{"295":1}}],["本项目不负责实现登录功能",{"2":{"6":1}}],["本项目遵循mit协议",{"2":{"295":1}}],["本项目是一个非盈利的开源项目",{"2":{"279":1}}],["本模块用于轻雪主进程和子进程之间的通信的事件类",{"2":{"81":1}}],["本模块定义了一个通用的通道类",{"2":{"58":1}}],["本机默认为127",{"2":{"3":1}}],["例如npm",{"2":{"296":1}}],["例如nonebot插件中",{"2":{"270":1}}],["例如main",{"2":{"294":1}}],["例如watchdog",{"2":{"290":1,"293":1}}],["例如你在a中定义了templates",{"2":{"287":1}}],["例如html",{"2":{"286":1}}],["例如",{"2":{"281":2,"287":1,"303":1}}],["例如test",{"2":{"281":1,"294":1}}],["例如子进程接收到用户信息需要重启机器人",{"2":{"269":1}}],["例如qq",{"2":{"6":1}}],["例如一个命令是help",{"2":{"6":1}}],["怎么登录聊天平台",{"2":{"6":1}}],["报错invalidgitrepositoryerror",{"2":{"6":1}}],["冲突",{"2":{"6":1}}],["确认插件必要配置项完好后",{"2":{"6":1}}],["确认命令头没有和nickname",{"2":{"6":1}}],["确认你有权限使用命令并按照正确的命令发送",{"2":{"6":1}}],["其中type字段为commit类型且可选",{"2":{"278":1}}],["其中",{"2":{"6":1,"277":1}}],["其他插件框架进程是伴随的子进程",{"2":{"269":1}}],["其他插件占用视具体插件而定",{"2":{"15":1}}],["其他插件自带的调试功能也将开启",{"2":{"2":1}}],["其他问题请移步至",{"0":{"16":1}}],["其他问题",{"0":{"7":1}}],["其他",{"0":{"4":1,"267":1}}],["其他nonebot插件的配置项",{"2":{"2":1}}],["其他配置",{"0":{"2":1}}],["r>",{"2":{"227":2}}],["rv",{"2":{"222":2}}],["rk",{"2":{"222":2}}],["rmtree",{"2":{"222":1}}],["rpm",{"2":{"299":5,"300":1}}],["rp",{"2":{"218":4}}],["rpc",{"2":{"84":1}}],["rule=is",{"2":{"254":1,"255":1}}],["rule=empty",{"2":{"173":1,"174":1}}],["rulehandlerfunc",{"0":{"176":1,"178":1},"2":{"178":1}}],["rule",{"0":{"168":2,"173":3,"174":2,"175":1,"177":1,"179":2,"180":2,"182":1,"183":1},"1":{"176":1,"177":1,"178":2,"179":2,"180":2,"181":2,"182":1,"183":1},"2":{"168":5,"170":1,"173":3,"174":5,"175":1,"179":3,"180":3,"181":1,"182":3,"183":2,"254":1,"255":1}}],["running",{"2":{"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"65":1,"68":1,"95":2,"260":2}}],["runtimeerror",{"2":{"33":2,"66":1,"67":1,"69":1,"101":1,"103":1,"260":1}}],["run",{"0":{"20":1,"45":1,"102":1,"153":1,"170":1,"260":1,"261":1},"2":{"13":1,"20":3,"45":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"68":1,"102":1,"103":1,"128":1,"153":2,"170":1,"260":3,"261":1,"294":2}}],["raw",{"0":{"163":1},"2":{"163":3,"164":1,"174":1,"255":1}}],["raise",{"2":{"33":2,"65":3,"66":2,"67":1,"69":1,"74":2,"98":1,"101":1,"103":1,"138":1,"146":1}}],["rights",{"2":{"36":1,"123":1,"152":1,"158":1,"161":1,"165":1,"166":1,"171":1,"175":1,"184":1,"185":1,"226":1,"230":1,"231":1,"254":1,"256":1}}],["root",{"2":{"13":1,"219":2}}],["request",{"2":{"275":1}}],["required",{"2":{"65":1}}],["requirements",{"2":{"6":1,"12":1,"15":1}}],["readme",{"2":{"222":2}}],["read",{"2":{"220":1}}],["reload",{"2":{"297":1,"298":2,"299":1,"300":1}}],["reloading",{"2":{"291":1}}],["rel",{"2":{"222":4,"262":5}}],["relpath",{"2":{"217":1}}],["relative",{"0":{"217":1},"2":{"217":1,"222":1,"223":1,"262":1}}],["replace",{"2":{"220":3,"221":4,"222":8}}],["reply",{"0":{"164":1},"2":{"164":3,"255":1}}],["report设定为false",{"2":{"295":1}}],["report",{"2":{"1":1,"295":1}}],["red>",{"2":{"160":1}}],["remove",{"2":{"160":1}}],["ref",{"0":{"109":1}}],["recursive=recursive",{"2":{"151":1}}],["recursive",{"0":{"151":1},"2":{"151":2}}],["recv",{"2":{"65":2,"67":2,"76":5,"77":5,"79":3,"80":3,"87":1,"97":5,"99":5,"110":3,"113":3}}],["receive",{"0":{"59":1,"60":1,"67":1,"68":1,"69":1,"89":1,"92":1,"93":1,"101":3,"102":1,"103":1,"163":1},"2":{"60":2,"65":3,"67":2,"68":2,"69":4,"76":1,"77":2,"78":2,"79":2,"80":1,"89":1,"92":1,"93":1,"95":2,"97":1,"99":1,"101":11,"102":2,"103":4,"109":1,"110":2,"111":2,"112":2,"113":1,"163":3,"164":3,"270":11}}],["resources",{"2":{"277":1,"286":1,"287":1,"298":1}}],["resolve",{"2":{"262":2}}],["reserved",{"2":{"36":1,"123":1,"152":1,"158":1,"161":1,"165":1,"166":1,"171":1,"175":1,"184":1,"185":1,"226":1,"230":1,"231":1,"254":1,"256":1}}],["restarting",{"2":{"22":1}}],["restart",{"0":{"22":1,"23":1,"31":1,"32":1,"50":1,"51":1,"56":1,"57":1},"2":{"19":1,"22":3,"23":1,"31":2,"32":2,"44":2,"50":2,"51":2,"56":3,"57":3,"291":2}}],["returns",{"2":{"220":4}}],["return",{"0":{"195":1},"2":{"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":3,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"67":1,"68":1,"69":6,"76":2,"77":2,"97":2,"99":2,"101":2,"105":1,"115":1,"116":1,"117":1,"118":1,"119":1,"120":1,"121":1,"131":1,"133":1,"136":1,"144":3,"151":3,"159":2,"169":2,"170":1,"173":1,"174":2,"179":2,"180":2,"181":2,"182":1,"183":1,"217":1,"219":1,"220":3,"221":3,"225":1,"227":2,"228":1,"229":1,"247":1,"259":3,"262":2,"263":2}}],["r",{"2":{"6":1,"12":1,"15":1,"116":1,"117":1,"118":1,"220":1}}],["msg",{"2":{"297":1}}],["mcfunction",{"2":{"281":2}}],["mkdir",{"2":{"222":1}}],["mkdoc",{"0":{"185":1},"1":{"186":1,"187":1,"188":1,"189":1,"190":1,"191":1,"192":1,"193":1,"194":1,"195":1,"196":1,"197":1,"198":1,"199":1,"200":1,"201":1,"202":1,"203":1,"204":1,"205":1,"206":1,"207":1,"208":1,"209":1,"210":1,"211":1,"212":1,"213":1,"214":1,"215":1,"216":1,"217":1,"218":1,"219":1,"220":1,"221":1,"222":1,"223":1},"2":{"185":1}}],["md",{"2":{"222":13}}],["member",{"2":{"297":1}}],["memory",{"0":{"108":1},"2":{"95":3,"109":1,"110":3,"111":3,"112":3,"113":2,"129":1,"273":3}}],["meta",{"2":{"227":4,"290":1}}],["metadata",{"0":{"252":1},"2":{"227":13}}],["methods=",{"2":{"220":1}}],["methods",{"0":{"208":1},"2":{"220":1,"221":1}}],["method",{"0":{"188":2,"189":1,"190":1},"2":{"220":5,"221":13}}],["message的语言",{"2":{"278":1}}],["message的格式为",{"2":{"278":1}}],["message字段为简短的描述",{"2":{"278":1}}],["message请遵循以下规范",{"2":{"278":1}}],["message=",{"2":{"164":1,"297":1}}],["message=message",{"2":{"164":1}}],["messageevent",{"0":{"162":1,"163":1,"170":1,"181":1,"182":1,"183":1,"255":1},"1":{"163":1,"164":1},"2":{"163":1,"164":1,"170":1,"174":1,"176":1,"179":1,"180":1,"181":1,"182":1,"183":1,"255":1}}],["message",{"0":{"161":1,"163":3,"164":1,"165":1,"166":1,"171":1,"173":1,"175":1,"184":1},"1":{"162":1,"163":1,"164":1,"167":1,"168":1,"169":1,"170":1,"172":1,"173":1,"174":1,"176":1,"177":1,"178":1,"179":1,"180":1,"181":1,"182":1,"183":1},"2":{"163":9,"164":5,"173":1,"174":2,"255":1,"278":1,"305":1,"306":1}}],["moved",{"0":{"149":1},"2":{"149":1}}],["moduletype",{"0":{"250":1}}],["module=module",{"2":{"227":1}}],["moduleinfo",{"0":{"211":1,"220":1,"221":1},"1":{"212":1,"213":1,"214":1,"215":1,"216":1},"2":{"220":2,"221":1}}],["module",{"0":{"153":1,"212":1,"219":1,"220":1,"221":1,"222":1,"223":1,"227":1,"235":2,"250":1,"251":1,"262":1},"2":{"153":3,"156":1,"219":2,"220":11,"221":5,"222":19,"223":1,"227":26,"228":9,"229":1,"247":1,"253":1,"262":1}}],["modified",{"0":{"146":1},"2":{"146":2,"147":1,"148":1,"149":1,"150":1,"151":4}}],["model",{"0":{"231":1,"248":1},"1":{"232":1,"233":1,"234":1,"235":1,"236":1,"237":1,"238":1,"239":1,"240":1,"241":1,"242":1,"243":1,"244":1,"245":1,"246":1,"247":1,"248":1,"249":1,"250":1,"251":1,"252":1},"2":{"231":1,"265":1}}],["mode为true",{"2":{"141":1}}],["mode",{"2":{"2":2,"6":1,"276":1,"297":2,"298":1}}],["must",{"2":{"66":1,"74":1,"146":1}}],["marsho",{"2":{"265":1}}],["markdown",{"0":{"221":1},"2":{"221":2,"222":1}}],["match",{"2":{"229":1}}],["matcher",{"0":{"166":1,"167":1,"172":3,"173":1,"174":1},"1":{"167":1,"168":2,"169":2,"170":2},"2":{"166":1,"172":9,"173":6,"174":1}}],["matter=none",{"2":{"221":1}}],["matter",{"0":{"221":1},"2":{"221":4,"222":3}}],["makedirs",{"2":{"218":1}}],["manually",{"2":{"65":1}}],["manager",{"0":{"123":1,"230":1},"1":{"124":1,"125":1,"126":1,"127":1,"128":1,"129":1,"130":1,"131":1,"132":1,"133":1,"134":1,"135":1,"136":1,"137":1,"138":1,"139":1},"2":{"19":1,"20":1,"22":1,"23":1,"26":1,"123":1,"230":1}}],["maplemono提供的字体",{"2":{"10":1}}],["mainprocess",{"2":{"269":1}}],["main",{"0":{"92":1},"2":{"6":1,"12":1,"33":1,"65":4,"69":4,"74":1,"76":1,"77":1,"95":1,"96":1,"97":1,"98":1,"99":1,"101":5,"102":1,"103":1,"270":6,"277":1,"294":1}}],["misans",{"2":{"10":1}}],["minecraftonebot",{"2":{"9":1}}],["minecraft",{"0":{"9":1}}],["m",{"2":{"6":1,"12":1,"15":1,"172":2,"229":1,"306":1}}],["答疑",{"0":{"5":1},"1":{"6":1,"7":1,"8":1,"9":1,"10":1}}],["要使用其他通信方式请访问onebot",{"2":{"3":1}}],["如",{"2":{"278":2}}],["如需往轻雪仓库提交代码",{"2":{"275":1}}],["如需自定义请手动添加",{"2":{"2":1}}],["如何开发",{"0":{"275":1},"1":{"276":1}}],["如果是文档相关的开发",{"2":{"275":1}}],["如果你接触过minecraft的资源包",{"2":{"286":1}}],["如果你想同时输出多行内容可以尝试换行符",{"2":{"281":1}}],["如果你没有安装git直接下载源代码运行",{"2":{"15":1}}],["如果你给轻雪配置了accesstoken",{"2":{"3":1}}],["如果装置上有多个环境",{"2":{"15":1}}],["version=",{"2":{"290":1}}],["version",{"0":{"157":1},"2":{"287":1}}],["venv来创建虚拟环境",{"2":{"12":1}}],["venv",{"2":{"12":3}}],["validate",{"2":{"66":1}}],["value=ast",{"2":{"220":1}}],["value",{"0":{"96":1,"203":1},"2":{"96":5,"111":3,"115":3,"220":6,"221":3,"273":2,"297":2,"301":1}}],["valueerror",{"2":{"65":2,"74":1}}],["value2",{"2":{"2":1}}],["value1",{"2":{"2":1}}],["var=value",{"2":{"282":1}}],["var2=value2",{"2":{"282":1}}],["var1=value1>",{"2":{"282":1}}],["var",{"0":{"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"59":1,"60":1,"61":1,"62":1,"63":1,"70":1,"71":1,"72":1,"73":1,"92":1,"93":1,"108":1,"109":1,"142":1,"143":1,"157":1,"176":1,"223":1},"2":{"221":2}}],["v",{"2":{"13":2,"115":2,"221":2}}],["v11协议api",{"2":{"297":2}}],["v11",{"2":{"3":1,"284":1}}],["地址取决于配置文件",{"2":{"3":1}}],["地址",{"2":{"3":1}}],["反向websocket",{"2":{"3":1}}],["协议端",{"2":{"6":1}}],["协议",{"2":{"3":1}}],["说明",{"2":{"3":1,"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"59":1,"60":1,"61":1,"62":1,"63":1,"65":1,"66":1,"67":1,"68":1,"69":1,"70":1,"71":1,"72":1,"73":1,"74":1,"75":1,"76":1,"77":1,"87":1,"88":1,"89":1,"90":1,"92":1,"93":1,"96":1,"97":1,"98":1,"99":1,"100":1,"101":1,"102":1,"103":1,"108":1,"109":1,"115":1,"116":1,"117":1,"118":1,"119":1,"120":1,"121":1,"128":1,"129":1,"131":1,"133":1,"137":1,"138":1,"139":1,"142":1,"143":1,"144":1,"151":1,"153":1,"157":1,"160":1,"163":1,"164":1,"168":1,"169":1,"170":1,"176":1,"217":1,"218":1,"220":1,"221":1,"222":1,"223":1,"225":1,"227":1,"228":1,"229":1,"257":1,"259":1,"260":1,"261":1,"262":1,"263":1,"297":1,"299":2,"301":1}}],["与nonebot对接的onebot实现端配置",{"0":{"3":1}}],["示例",{"0":{"3":1,"270":1,"273":1,"283":1}}],["监听目录们",{"2":{"151":1}}],["监听地址",{"2":{"1":1}}],["监视文件变化并自动重载",{"2":{"2":1}}],["开始",{"0":{"289":1},"1":{"290":1,"291":1,"292":1,"293":1,"294":1}}],["开发文档是详细的",{"2":{"278":1}}],["开发过程中可以使用mypy",{"2":{"276":1}}],["开发指南",{"0":{"274":1},"1":{"275":1,"276":1,"277":1,"278":1,"279":1}}],["开发者模式",{"2":{"2":1}}],["开发者选项",{"2":{"2":1}}],["开启后将会启动监视者",{"2":{"2":1}}],["开启后将不会加载任何第三方nonebot插件",{"2":{"2":1}}],["开启会自动重载bot或者资源",{"2":{"2":1}}],["2s戳两次",{"2":{"283":1}}],["22",{"2":{"254":1}}],["27",{"2":{"123":1,"158":1}}],["24",{"2":{"36":1,"231":1}}],["23",{"2":{"36":1,"185":1,"226":1,"230":1}}],["20代替空格",{"2":{"297":1}}],["20和end",{"2":{"283":1}}],["2024",{"2":{"36":2,"123":2,"152":2,"158":2,"161":2,"165":2,"166":2,"171":2,"175":2,"184":2,"185":2,"226":2,"230":2,"231":2,"254":2,"256":2}}],["2020",{"2":{"36":1,"123":1,"152":1,"158":1,"161":1,"165":1,"166":1,"171":1,"175":1,"184":1,"185":1,"226":1,"230":1,"231":1,"254":1,"256":1}}],["20216中的20216替换为你的端口号",{"2":{"13":1}}],["20216",{"2":{"1":1,"3":2,"13":2}}],["20",{"2":{"15":1}}],["2019+",{"2":{"15":1}}],["2",{"2":{"2":1,"283":1,"287":1}}],["建议",{"0":{"276":1}}],["建议1gb以上",{"2":{"15":1}}],["建议开启",{"2":{"2":1}}],["建议迁移到liteyuki下",{"2":{"1":1}}],["默认普通图片",{"2":{"297":1}}],["默认开启",{"2":{"295":1}}],["默认插件加载器",{"2":{"257":1}}],["默认执行扁平化选项",{"2":{"119":1,"120":1}}],["默认值",{"2":{"34":1,"35":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"59":1,"60":1,"61":1,"62":1,"63":1,"70":1,"71":1,"72":1,"73":1,"92":1,"93":1,"97":1,"108":1,"109":1,"142":1,"143":1,"157":1,"176":1,"223":1}}],["默认false",{"2":{"2":1}}],["默认语言",{"2":{"2":1}}],["默认为本机",{"2":{"1":1}}],["city",{"2":{"303":1,"304":1}}],["css相对路径引用b中的css",{"2":{"287":1}}],["css",{"2":{"286":1,"287":1}}],["cwd",{"2":{"262":1}}],["cfg",{"2":{"153":4}}],["current|bot",{"2":{"305":1}}],["current|group",{"2":{"305":1}}],["current",{"2":{"144":3,"305":2,"306":1}}],["custom",{"2":{"2":4}}],["created",{"0":{"147":1},"2":{"147":1}}],["create",{"2":{"102":1}}],["child",{"2":{"220":2}}],["check",{"0":{"65":1},"2":{"65":8,"66":1}}],["change",{"2":{"299":1,"300":1}}],["changed",{"2":{"291":1}}],["channel时的通道标识",{"2":{"270":1}}],["channel即可",{"2":{"270":1}}],["channel及passive",{"2":{"270":1}}],["channel函数获取通道对象",{"2":{"270":2}}],["channel=none",{"2":{"164":1}}],["channeldeliver",{"0":{"124":1},"1":{"125":1},"2":{"129":1}}],["channels",{"0":{"75":2,"77":1,"80":1},"2":{"75":4,"77":2,"79":1,"80":3}}],["channel",{"0":{"58":1,"64":1,"70":1,"71":1,"72":2,"73":2,"74":3,"75":1,"76":2,"77":1,"78":1,"79":1,"85":1,"100":1,"101":1,"102":1,"125":8,"163":2},"1":{"59":1,"60":1,"61":1,"62":1,"63":1,"64":1,"65":2,"66":2,"67":2,"68":2,"69":2,"70":1,"71":1,"72":1,"73":1,"74":1,"75":1,"76":1,"77":1,"78":1,"79":1,"80":1,"86":1,"87":1,"88":1,"89":1,"90":1},"2":{"23":2,"65":7,"66":1,"67":1,"70":3,"71":3,"72":2,"73":1,"74":19,"75":5,"76":9,"77":10,"78":11,"79":7,"80":2,"84":2,"95":4,"97":1,"99":1,"100":4,"101":8,"102":3,"103":2,"125":12,"129":12,"163":4,"164":2,"270":12}}],["chan",{"2":{"23":4,"76":5,"77":5,"79":3,"80":3,"95":2,"96":1,"97":6,"98":1,"99":6,"100":1,"103":1,"109":1,"110":5,"111":2,"112":2,"113":4,"129":2}}],["c",{"2":{"36":1,"115":1,"123":1,"152":1,"158":1,"161":1,"165":1,"166":1,"171":1,"175":1,"184":1,"185":1,"226":1,"229":1,"230":1,"231":1,"254":1,"256":1,"260":4,"262":2,"306":1}}],["cmd",{"2":{"22":5,"281":2,"282":1}}],["case",{"2":{"229":4}}],["category",{"2":{"221":1,"222":2}}],["cannot",{"2":{"66":1,"67":1,"101":1,"103":1}}],["can",{"2":{"33":1,"69":1}}],["callback",{"0":{"142":1,"151":2},"2":{"69":1,"151":4}}],["callable",{"0":{"69":3,"101":1,"136":1,"151":1,"169":1,"259":2,"263":2},"2":{"37":1,"38":1,"40":1,"41":1,"45":1,"59":1,"61":1,"62":1,"69":10,"101":2,"127":1,"136":1,"142":1,"143":1,"151":1,"169":1,"176":1,"259":2,"263":4}}],["call",{"0":{"259":1},"2":{"19":1,"22":2,"144":4,"181":1,"259":7}}],["cache",{"2":{"13":2}}],["cls",{"0":{"105":1},"2":{"105":6,"220":1,"221":11}}],["close",{"0":{"90":1},"2":{"90":1,"260":1}}],["closed",{"2":{"65":1,"66":2,"67":2,"87":1}}],["clone",{"2":{"12":1,"13":1}}],["classdef",{"2":{"220":3}}],["classes=",{"2":{"220":1}}],["classes",{"0":{"214":1},"2":{"220":1,"221":1}}],["classinfo",{"0":{"205":1,"214":1},"1":{"206":1,"207":1,"208":1,"209":1,"210":1},"2":{"220":1}}],["classmethod",{"0":{"190":1},"2":{"104":1,"105":1,"220":1}}],["class",{"0":{"18":1,"43":1,"64":1,"82":1,"86":1,"94":1,"104":1,"124":1,"126":1,"134":1,"145":1,"155":1,"162":1,"167":1,"177":1,"186":1,"190":1,"192":1,"200":1,"205":1,"211":1,"232":1,"238":1,"246":1},"1":{"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"65":1,"66":1,"67":1,"68":1,"69":1,"83":1,"87":1,"88":1,"89":1,"90":1,"95":1,"96":1,"97":1,"98":1,"99":1,"100":1,"101":1,"102":1,"103":1,"105":1,"106":1,"107":1,"125":1,"127":1,"128":1,"129":1,"130":1,"131":1,"132":1,"133":1,"135":1,"136":1,"137":1,"138":1,"139":1,"146":1,"147":1,"148":1,"149":1,"150":1,"163":1,"164":1,"168":1,"169":1,"170":1,"178":1,"179":1,"180":1,"181":1,"187":1,"188":1,"189":1,"190":1,"191":1,"193":1,"194":1,"195":1,"196":1,"197":1,"198":1,"199":1,"201":1,"202":1,"203":1,"204":1,"206":1,"207":1,"208":1,"209":1,"210":1,"212":1,"213":1,"214":1,"215":1,"216":1,"233":1,"234":1,"235":1,"236":1,"237":1,"239":1,"240":1,"241":1,"242":1,"243":1,"244":1,"245":1,"247":1,"248":1,"249":1,"250":1,"251":1,"252":1},"2":{"220":24,"221":2}}],["cpu",{"2":{"15":1,"295":1}}],["centos",{"2":{"15":1}}],["cd",{"2":{"12":1,"13":1}}],["cqhttp",{"2":{"8":1}}],["color",{"2":{"229":7}}],["color=",{"2":{"160":5}}],["colors=true",{"2":{"20":2,"227":3}}],["code插件liteyuki",{"2":{"285":1}}],["code=ast",{"2":{"220":2}}],["code",{"0":{"197":1},"2":{"151":3,"221":6,"222":2}}],["codemodifiedhandler",{"0":{"145":1},"1":{"146":1,"147":1,"148":1,"149":1,"150":1},"2":{"151":1}}],["coro",{"0":{"260":1,"261":1},"2":{"260":5,"261":2}}],["coroutine",{"0":{"259":1,"260":2,"261":2,"263":1},"2":{"45":1,"62":1,"69":2,"101":1,"176":1,"259":1,"260":2,"261":3,"263":2}}],["core",{"0":{"123":1,"140":1},"1":{"124":1,"125":1,"126":1,"127":1,"128":1,"129":1,"130":1,"131":1,"132":1,"133":1,"134":1,"135":1,"136":1,"137":1,"138":1,"139":1}}],["copy",{"2":{"115":1}}],["copyright",{"2":{"36":1,"123":1,"152":1,"158":1,"161":1,"165":1,"166":1,"171":1,"175":1,"184":1,"185":1,"226":1,"230":1,"231":1,"254":1,"256":1}}],["content",{"2":{"220":2,"221":17,"222":2}}],["continue",{"2":{"120":1,"220":1,"222":1,"228":3}}],["conn",{"2":{"65":4,"66":1,"67":1,"87":2}}],["configs",{"0":{"120":1},"2":{"120":1,"121":1}}],["config=self",{"2":{"25":1}}],["config",{"0":{"34":1,"35":1,"114":1,"115":2,"121":1,"160":1,"248":1},"1":{"115":1,"116":1,"117":1,"118":1,"119":1,"120":1,"121":1},"2":{"2":2,"19":2,"25":1,"34":2,"35":6,"115":9,"116":6,"117":6,"118":6,"119":7,"120":4,"121":9,"153":1,"160":3,"257":2,"297":4,"298":1}}],["count",{"0":{"109":1},"2":{"19":1,"22":2}}],["combined",{"2":{"179":2,"180":2}}],["commit",{"2":{"278":2}}],["comm",{"0":{"58":1,"81":1,"84":1,"85":1,"91":1},"1":{"59":1,"60":1,"61":1,"62":1,"63":1,"64":1,"65":1,"66":1,"67":1,"68":1,"69":1,"70":1,"71":1,"72":1,"73":1,"74":1,"75":1,"76":1,"77":1,"78":1,"79":1,"80":1,"82":1,"83":1,"86":1,"87":1,"88":1,"89":1,"90":1,"92":1,"93":1,"94":1,"95":1,"96":1,"97":1,"98":1,"99":1,"100":1,"101":1,"102":1,"103":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":1,"110":1,"111":1,"112":1,"113":1},"2":{"270":2,"273":2}}],["command>",{"2":{"282":2}}],["command",{"0":{"297":1},"1":{"298":1},"2":{"1":2}}],["complete",{"2":{"260":2}}],["completion",{"2":{"2":1}}],["compat",{"0":{"35":2},"2":{"35":8}}],["com",{"2":{"12":1,"13":1,"36":1,"123":1,"152":1,"158":1,"161":1,"165":1,"166":1,"171":1,"175":1,"184":1,"185":1,"226":1,"230":1,"231":1,"254":1,"256":1}}],["cn",{"0":{"221":1,"222":1},"2":{"2":1,"221":2,"222":1}}],["duration>",{"2":{"305":1}}],["duration",{"2":{"305":2,"306":1}}],["driver",{"2":{"270":4}}],["dog",{"2":{"290":1,"291":1}}],["does",{"2":{"228":1}}],["dot",{"2":{"220":1}}],["docs",{"0":{"222":1},"2":{"222":3,"277":1,"297":1,"298":1}}],["docstring或liteyuki",{"2":{"278":1}}],["docstring=method",{"2":{"220":1}}],["docstring=module",{"2":{"220":1}}],["docstring=class",{"2":{"220":1}}],["docstring=function",{"2":{"220":1}}],["docstring",{"0":{"196":1,"204":1,"207":1,"216":1},"2":{"220":16,"221":12,"278":1}}],["docker相关内容目录",{"2":{"277":1}}],["docker",{"2":{"13":3,"277":1}}],["d",{"2":{"109":2,"110":4,"111":4,"112":4,"113":2,"262":2,"306":1}}],["data=",{"2":{"164":1}}],["data",{"0":{"66":1,"78":1,"79":1,"80":1,"83":1,"88":1,"100":1,"102":1,"110":1,"111":1,"112":1,"113":1,"163":1,"218":1},"2":{"66":6,"67":2,"68":2,"69":5,"77":2,"78":7,"79":7,"80":4,"83":3,"88":2,"89":1,"100":4,"101":3,"102":3,"103":6,"110":4,"111":3,"112":2,"113":2,"163":5,"218":5,"222":5,"270":7}}],["daemon=true",{"2":{"22":1,"128":1,"261":1}}],["darwin",{"2":{"22":1}}],["disable",{"2":{"297":1,"298":1,"299":2,"300":2}}],["display",{"0":{"229":2},"2":{"227":7,"229":4}}],["diagnose=false",{"2":{"160":1}}],["dir",{"0":{"222":1,"228":1},"2":{"222":5,"228":16,"257":2}}],["dirname",{"2":{"218":2}}],["directory",{"2":{"120":6,"151":2,"228":1}}],["directories=",{"2":{"291":1}}],["directories",{"0":{"120":1,"151":1},"2":{"120":2,"151":3}}],["dirs",{"0":{"120":1},"2":{"1":1,"120":1,"121":1,"219":1,"257":1}}],["dict",{"0":{"75":1,"77":1,"78":1,"79":1,"80":1,"83":1,"99":1,"110":1,"111":1,"112":1,"113":1,"115":2,"116":1,"117":1,"118":1,"119":1,"120":1,"121":1,"125":1,"160":1,"163":2,"164":1,"218":1,"225":1,"245":1},"2":{"19":1,"73":1,"75":2,"77":3,"78":1,"79":1,"80":1,"83":1,"92":1,"93":1,"95":2,"99":3,"110":1,"111":1,"112":1,"113":1,"115":3,"116":1,"117":1,"118":1,"119":1,"120":1,"121":1,"125":1,"127":3,"135":1,"160":1,"163":2,"164":1,"218":1,"222":1,"225":2,"227":6}}],["description=",{"2":{"290":1}}],["description",{"0":{"240":1},"2":{"287":1}}],["details>",{"2":{"221":4}}],["debounce",{"0":{"144":1},"2":{"144":1,"145":1,"146":1}}],["debug",{"2":{"2":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"65":2,"116":1,"117":1,"118":1,"128":1,"139":1,"159":2,"160":2,"291":1}}],["deepcopy",{"2":{"115":1}}],["del",{"2":{"98":2}}],["deleted",{"0":{"148":1},"2":{"148":1}}],["delete",{"0":{"98":1,"112":1},"2":{"98":2,"111":1,"112":3}}],["delivery",{"2":{"129":1}}],["deliver",{"0":{"72":1,"73":1,"125":2},"2":{"74":1,"76":1,"77":2,"78":2,"79":2,"80":1,"125":6,"129":6}}],["delay",{"0":{"22":1},"2":{"22":3}}],["decorator",{"2":{"69":2,"101":2,"136":2,"144":2,"151":2,"169":2,"220":13}}],["deprecated",{"2":{"35":1}}],["depth=1",{"2":{"12":1,"13":1}}],["deftype",{"0":{"186":1,"198":1},"1":{"187":1,"188":1,"189":1,"190":1,"191":1},"2":{"220":4,"221":1}}],["def",{"2":{"21":1,"45":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"68":1,"69":2,"78":1,"79":1,"80":1,"101":2,"102":1,"103":1,"105":1,"110":1,"111":1,"112":1,"113":1,"136":1,"144":2,"146":1,"151":2,"169":1,"170":1,"174":1,"179":1,"180":1,"181":1,"182":1,"183":1,"220":4,"221":2,"255":1,"263":1,"270":3,"291":1}}],["defaults",{"2":{"22":1,"23":1,"34":1,"35":1,"69":1}}],["default",{"0":{"34":1,"35":1,"97":1,"121":1,"193":1,"194":1,"195":1,"196":1,"198":1,"199":1,"201":1,"202":1,"206":1,"207":1,"208":1,"209":1,"210":1,"212":1,"213":1,"214":1,"215":1,"216":1,"239":1,"249":1,"250":1,"251":1,"257":1},"2":{"2":1,"34":3,"35":3,"72":1,"73":1,"97":5,"110":3,"121":1,"153":1,"159":1,"257":1}}],["developer",{"2":{"290":1}}],["dev",{"0":{"122":1,"141":1,"152":1},"1":{"142":1,"143":1,"144":1,"145":1,"146":1,"147":1,"148":1,"149":1,"150":1,"151":1,"153":1},"2":{"2":1,"291":1,"294":1}}],["访问令牌",{"2":{"2":1}}],["a包中的index",{"2":{"287":1}}],["am",{"2":{"270":6}}],["amp",{"0":{"180":1}}],["arbitrary",{"0":{"248":1}}],["arg",{"2":{"220":13,"221":16}}],["argv",{"2":{"22":1}}],["args=coro",{"2":{"261":1}}],["args=",{"2":{"22":1,"128":1,"220":2}}],["args",{"0":{"24":1,"45":1,"54":1,"56":1,"129":1,"136":1,"137":1,"194":1},"2":{"22":2,"24":2,"45":3,"54":2,"56":2,"129":3,"136":2,"137":3,"144":2,"220":8,"221":8,"263":2,"297":4}}],["abs",{"2":{"222":4}}],["application",{"0":{"233":2},"2":{"229":1}}],["append",{"2":{"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"69":2,"101":2,"169":1,"172":1,"219":1,"220":5}}],["api格式为onebot",{"2":{"297":1}}],["api文档",{"2":{"284":1}}],["api也有差别",{"2":{"284":1}}],["api",{"0":{"284":1},"2":{"222":6,"267":1,"282":3,"283":2,"297":3}}],["add",{"0":{"129":1,"137":1,"172":1},"2":{"129":1,"137":1,"160":1,"172":1,"173":1,"228":1}}],["adapter获取详细信息",{"2":{"3":1}}],["attributes=",{"2":{"220":2}}],["attributes",{"0":{"209":1,"215":1},"2":{"220":2,"221":2}}],["attributeinfo",{"0":{"200":1,"209":1,"215":1},"1":{"201":1,"202":1,"203":1,"204":1},"2":{"220":2}}],["attr",{"0":{"106":1,"107":1,"187":1,"188":1,"189":1,"190":1,"191":1,"193":1,"194":1,"195":1,"196":1,"197":1,"198":1,"199":1,"201":1,"202":1,"203":1,"204":1,"206":1,"207":1,"208":1,"209":1,"210":1,"212":1,"213":1,"214":1,"215":1,"216":1,"233":1,"234":1,"235":1,"236":1,"237":1,"239":1,"240":1,"241":1,"242":1,"243":1,"244":1,"245":1,"248":1,"249":1,"250":1,"251":1,"252":1},"2":{"220":2,"221":14}}],["assign",{"2":{"220":2}}],["ast",{"2":{"220":29}}],["as",{"2":{"98":1,"218":1,"220":1,"227":1,"260":1}}],["asynchronous",{"2":{"263":1}}],["async=isinstance",{"2":{"220":2}}],["asyncfunctiondef",{"2":{"220":3}}],["async",{"0":{"21":1,"38":1,"41":1,"45":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"62":1,"68":2,"102":1,"103":1,"170":1,"181":1,"182":1,"183":1,"199":1,"255":1,"263":1},"2":{"39":1,"42":1,"45":3,"60":1,"63":1,"68":1,"69":1,"92":1,"93":1,"101":1,"102":1,"103":1,"174":1,"179":1,"180":1,"182":1,"183":1,"221":4,"255":1,"263":2,"270":2}}],["asyncio",{"2":{"19":2,"20":1,"21":1,"45":1,"68":1,"102":1,"260":5,"270":2}}],["a",{"2":{"66":1,"67":1,"115":1,"222":2,"228":1,"262":1,"290":1}}],["annassign",{"2":{"220":1}}],["annotation",{"2":{"220":6}}],["an",{"2":{"66":1,"74":1}}],["and",{"2":{"66":1,"151":1,"180":2,"220":7,"221":1,"228":3,"291":2}}],["any=none",{"2":{"34":1,"35":1}}],["any",{"0":{"34":2,"35":2,"69":2,"78":1,"79":1,"80":1,"83":1,"96":1,"97":2,"99":1,"100":1,"102":1,"110":1,"111":1,"112":1,"113":1,"115":2,"116":1,"117":1,"118":1,"119":1,"120":1,"121":1,"125":4,"150":1,"163":2,"164":1,"203":1,"245":1,"259":1,"263":1},"2":{"19":1,"34":3,"35":3,"37":1,"38":1,"40":1,"41":1,"59":1,"62":2,"69":7,"72":1,"73":1,"76":1,"77":1,"78":1,"79":1,"80":1,"83":1,"95":3,"96":1,"97":4,"99":3,"100":1,"101":1,"102":1,"110":1,"111":1,"112":1,"113":1,"115":2,"116":1,"117":1,"118":1,"119":1,"120":1,"121":1,"125":4,"150":1,"163":2,"164":1,"174":1,"220":7,"222":1,"259":1,"263":1}}],["author",{"0":{"243":1},"2":{"36":1,"123":1,"152":1,"158":1,"161":1,"165":1,"166":1,"171":1,"175":1,"184":1,"185":1,"226":1,"230":1,"231":1,"254":1,"256":1}}],["auto",{"2":{"1":2,"2":1}}],["after",{"0":{"28":1,"29":1,"32":1,"47":1,"49":1,"51":1,"53":1,"55":1,"57":1},"2":{"28":2,"29":2,"32":2,"44":3,"47":2,"49":2,"51":2,"53":3,"55":3,"57":3,"270":1}}],["awaitable",{"2":{"38":1,"41":1}}],["await",{"2":{"21":1,"45":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"68":1,"69":2,"101":1,"103":2,"170":2,"179":2,"180":2,"181":1,"270":1,"282":1,"283":1,"285":1}}],["active和",{"2":{"270":1}}],["active和chan",{"2":{"129":1}}],["active=channel",{"2":{"129":1}}],["active=chan",{"2":{"129":1}}],["active",{"0":{"70":1,"72":1,"125":2},"2":{"23":6,"70":1,"95":2,"100":1,"103":1,"125":6,"129":4,"270":11}}],["activate激活",{"2":{"12":1}}],["activate来激活虚拟环境",{"2":{"12":1}}],["accesstoken",{"2":{"3":1}}],["access",{"2":{"2":1}}],["already",{"2":{"65":2,"74":1}}],["alive",{"0":{"21":1,"133":1},"2":{"21":2,"131":1,"133":2}}],["all",{"0":{"99":1,"113":1,"128":1,"130":1,"132":1,"139":1},"2":{"20":1,"22":1,"26":1,"36":1,"99":2,"112":1,"113":3,"123":1,"128":1,"130":1,"132":1,"139":1,"152":1,"158":1,"161":1,"165":1,"166":1,"171":1,"175":1,"184":1,"185":1,"226":1,"230":1,"231":1,"254":1,"256":1}}],["allowed",{"0":{"248":1}}],["allow",{"2":{"2":1}}],["alconna提供的命令解析功能",{"2":{"10":1}}],["alconna是否自动补全指令",{"2":{"2":1}}],["alconna",{"2":{"2":1}}],["高级nonebot配置",{"2":{"2":1}}],["以上内容仅用于项目的优化",{"2":{"295":1}}],["以下我们会编写一个简单的插件",{"2":{"291":1}}],["以下为默认值",{"2":{"2":1}}],["以避免出现无法预料的问题",{"2":{"286":1}}],["以避免依赖冲突",{"2":{"12":1}}],["以保证litedoc能够正确解析并生成文档",{"2":{"278":1}}],["以前的最外层配置项仍可为nonebot服务",{"2":{"1":1}}],["period\`",{"2":{"306":1}}],["period>",{"2":{"305":1}}],["period",{"2":{"305":2}}],["poke",{"2":{"283":4}}],["port",{"2":{"1":1}}],["publish=publish",{"2":{"129":1}}],["publish",{"0":{"100":1,"125":1},"2":{"95":2,"100":2,"103":2,"125":3}}],["page为页数",{"2":{"299":2}}],["page",{"2":{"299":2}}],["pacman",{"0":{"299":1},"1":{"300":1}}],["pack",{"2":{"287":2,"299":3}}],["param",{"2":{"296":1}}],["parts",{"2":{"262":2}}],["parent",{"2":{"220":4}}],["parse",{"2":{"220":1}}],["pass",{"2":{"88":1,"89":1,"90":1}}],["passive=channel",{"2":{"129":1}}],["passive=chan",{"2":{"129":1}}],["passive",{"0":{"71":1,"73":1,"125":2},"2":{"71":1,"74":1,"76":1,"77":2,"78":2,"79":2,"80":1,"95":2,"96":1,"97":1,"98":1,"99":1,"109":1,"110":2,"111":2,"112":2,"113":1,"125":6,"129":5,"270":13}}],["pathlib",{"2":{"227":1}}],["paths=none",{"2":{"222":1}}],["paths",{"0":{"222":1},"2":{"222":4}}],["path=dot",{"2":{"220":1}}],["path",{"0":{"153":2,"212":1,"217":3,"220":1,"223":1,"227":2,"262":3},"2":{"6":3,"13":1,"15":1,"119":1,"120":2,"153":4,"217":8,"218":3,"219":1,"220":6,"222":22,"223":2,"227":16,"228":26,"262":11,"291":5}}],["profile",{"2":{"301":4}}],["property",{"0":{"191":2},"2":{"220":2}}],["processfunctype",{"0":{"136":1,"137":1},"2":{"136":2,"137":1}}],["processes",{"2":{"23":1,"127":1,"131":2,"133":1,"135":1,"136":1,"137":1,"138":2,"139":1}}],["processmanager",{"0":{"126":1},"1":{"127":1,"128":1,"129":1,"130":1,"131":1,"132":1,"133":1},"2":{"19":2}}],["process",{"0":{"23":1,"30":2,"31":3,"40":1,"41":1,"42":1,"45":1,"48":3,"50":3,"54":1,"56":1,"133":1,"136":1},"2":{"19":1,"20":1,"22":1,"23":4,"26":1,"30":5,"31":6,"33":2,"42":2,"44":4,"45":2,"48":6,"50":6,"54":2,"56":2,"65":4,"69":3,"74":1,"76":1,"77":1,"96":1,"97":1,"98":1,"99":1,"101":3,"103":2,"127":1,"128":2,"130":2,"131":7,"133":2,"136":1,"138":1,"139":3,"270":8,"291":2}}],["private",{"0":{"220":1},"2":{"220":5}}],["priority",{"0":{"168":1,"173":1,"174":1},"2":{"168":4,"172":2,"173":2,"174":2}}],["print",{"2":{"19":1,"170":1,"222":1,"227":1}}],["pwd",{"2":{"13":3}}],["p",{"2":{"13":1,"306":1}}],["platform",{"2":{"22":3}}],["playwright安装失败",{"2":{"6":1}}],["plugintype",{"0":{"229":1,"232":1,"242":2},"1":{"233":1,"234":1,"235":1,"236":1,"237":1},"2":{"229":5,"290":1}}],["pluginmetadata",{"0":{"238":1,"252":1},"1":{"239":1,"240":1,"241":1,"242":1,"243":1,"244":1,"245":1},"2":{"227":4,"290":2}}],["plugin的函数签名",{"2":{"153":1}}],["plugin进行通信",{"2":{"8":1}}],["plugin",{"0":{"152":1,"224":1,"225":1,"226":1,"227":2,"228":2,"229":1,"230":1,"231":1,"246":1,"256":1},"1":{"153":1,"225":1,"227":1,"228":1,"229":1,"232":1,"233":1,"234":1,"235":1,"236":1,"237":1,"238":1,"239":1,"240":1,"241":1,"242":1,"243":1,"244":1,"245":1,"246":1,"247":2,"248":2,"249":2,"250":2,"251":2,"252":2,"257":1},"2":{"1":1,"10":1,"19":2,"152":1,"225":2,"227":14,"228":5,"229":4,"253":1,"257":6,"266":2,"290":4,"293":1,"294":2,"299":5}}],["plugins下创建一个文件",{"2":{"294":1}}],["plugins中添加你的插件路径",{"2":{"293":1}}],["plugins目录下为插件目录",{"2":{"277":1}}],["plugins和nonebot",{"2":{"277":1}}],["plugins",{"0":{"153":1,"225":1,"228":1,"253":1,"254":1,"256":1,"257":1},"1":{"255":1,"257":1},"2":{"1":1,"19":1,"153":6,"225":2,"227":3,"228":9,"253":1,"257":4,"277":2,"291":1,"294":2}}],["py即可启动插件",{"2":{"294":1}}],["pyo",{"2":{"291":1}}],["pycache",{"2":{"291":1}}],["pyc",{"2":{"291":1}}],["pycharm",{"2":{"36":1,"123":1,"152":1,"158":1,"161":1,"165":1,"166":1,"171":1,"175":1,"184":1,"185":1,"226":1,"230":1,"231":1,"254":1,"256":1}}],["py文件",{"2":{"290":1}}],["py文件或一个包含",{"2":{"290":1}}],["py的文件夹即可被识别为插件",{"2":{"290":1}}],["pyfile",{"0":{"223":1},"2":{"222":8,"223":1}}],["pyi",{"2":{"219":1,"220":1}}],["py",{"2":{"12":1,"36":1,"123":1,"152":1,"158":1,"161":1,"165":2,"166":1,"171":1,"175":1,"184":1,"185":1,"219":1,"220":1,"222":1,"226":1,"228":3,"230":1,"231":1,"254":1,"256":2,"273":1,"277":1,"287":1,"290":1,"291":1,"294":2}}],["py来启动bot",{"2":{"6":1}}],["python格式",{"2":{"281":1}}],["pythonfrom",{"2":{"270":1,"273":1,"290":1,"294":1}}],["pythonimport",{"2":{"270":1,"291":1}}],["pythonasync",{"2":{"21":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"68":1,"103":1,"170":1,"181":1}}],["pythondef",{"2":{"19":1,"20":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"44":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"65":1,"66":1,"67":1,"69":1,"74":1,"75":1,"76":1,"77":1,"83":1,"87":1,"88":1,"89":1,"90":1,"95":1,"96":1,"97":1,"98":1,"99":1,"100":1,"101":1,"115":1,"116":1,"117":1,"118":1,"119":1,"120":1,"121":1,"125":1,"127":1,"128":1,"129":1,"130":1,"131":1,"132":1,"133":1,"135":1,"136":1,"137":1,"138":1,"139":1,"144":1,"147":1,"148":1,"149":1,"150":1,"151":1,"153":1,"159":1,"160":1,"163":1,"164":1,"168":1,"169":1,"172":1,"173":1,"174":1,"178":1,"179":1,"180":1,"217":1,"218":1,"219":1,"220":1,"221":1,"222":1,"225":1,"227":1,"228":1,"229":1,"247":1,"257":1,"259":1,"260":1,"261":1,"262":1,"263":1}}],["python为你的python可执行文件路径",{"2":{"15":1}}],["python3",{"2":{"12":1}}],["python是你要用来运行bot的可执行文件",{"2":{"6":1}}],["python",{"2":{"6":2,"12":1,"15":1,"45":1,"78":1,"79":1,"80":1,"102":1,"105":1,"110":1,"111":1,"112":1,"113":1,"146":1,"182":1,"183":1,"220":1,"255":1,"278":1}}],["pipe",{"2":{"65":2}}],["pip",{"2":{"6":1,"12":1,"15":1,"227":1}}],["pip和python不对应怎么办",{"2":{"6":1}}],["utils",{"0":{"258":1},"1":{"259":1,"260":1,"261":1,"262":1,"263":1},"2":{"277":1}}],["utf",{"2":{"116":1,"117":1,"118":1,"218":1,"220":1}}],["usage",{"0":{"241":1}}],["user",{"0":{"163":1,"301":1},"2":{"163":3,"164":2,"183":1,"283":3}}],["used",{"2":{"69":1,"253":1}}],["use",{"2":{"1":1,"35":1,"227":1}}],["unload",{"2":{"299":1,"300":1}}],["uninstall",{"2":{"299":1,"300":1}}],["uninstall卸载问题插件",{"2":{"6":1}}],["until",{"2":{"260":2}}],["unclassified",{"0":{"236":2,"242":1}}],["unparse",{"2":{"220":10}}],["unsupported",{"2":{"119":1}}],["update",{"2":{"1":1,"2":1,"119":3,"120":1,"121":1,"297":1,"298":1,"299":1,"300":1}}],["某些控制台字体不可用",{"2":{"1":1}}],["tests",{"2":{"277":1}}],["test",{"0":{"237":2},"2":{"229":1}}],["text",{"2":{"221":3}}],["terminated",{"2":{"131":1}}],["terminate",{"0":{"131":1,"132":1},"2":{"22":1,"26":1,"131":2,"132":2}}],["the",{"2":{"156":1,"227":1,"253":1}}],["this",{"2":{"156":1,"253":1}}],["thread",{"0":{"261":1},"2":{"22":1,"128":1,"261":2}}],["threading",{"0":{"107":1},"2":{"19":1,"22":1,"128":1,"261":1}}],["types",{"0":{"248":1}}],["type=plugintype",{"2":{"290":1}}],["type=attr",{"2":{"220":1}}],["type=ast",{"2":{"220":3}}],["type=def",{"2":{"220":1}}],["type=deftype",{"2":{"220":1}}],["type=self",{"2":{"164":2}}],["typeerror",{"2":{"65":1,"66":1,"74":1}}],["type",{"0":{"65":1,"163":2,"195":1,"198":1,"202":1,"229":1,"242":1},"2":{"65":11,"66":7,"74":1,"163":6,"164":2,"220":11,"221":13,"227":2,"229":4,"278":1}}],["typealias",{"2":{"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"59":1,"60":1,"61":1,"62":1,"63":1,"142":1,"143":1,"176":1}}],["target",{"0":{"129":3,"217":1},"2":{"129":5,"217":3,"220":5}}],["target=run",{"2":{"261":1}}],["target=self",{"2":{"128":1}}],["target=os",{"2":{"22":1}}],["targets",{"2":{"127":1,"128":1,"129":1,"130":1,"132":1,"133":1,"220":2}}],["task",{"2":{"102":1,"128":1}}],["tasks",{"2":{"45":2}}],["tuple=",{"2":{"129":1}}],["tuplestr",{"2":{"35":1}}],["tuple",{"0":{"35":1,"78":1,"79":1,"80":1,"110":1,"111":1,"112":1,"113":1,"125":2,"129":1,"151":1,"194":1},"2":{"35":1,"73":1,"78":1,"79":1,"80":1,"95":3,"110":1,"111":1,"112":1,"113":1,"125":2,"127":2,"151":1}}],["title",{"2":{"222":2}}],["time>",{"2":{"282":1}}],["timeout",{"2":{"131":1}}],["time",{"2":{"22":1,"36":1,"123":1,"144":9,"152":1,"158":1,"161":1,"165":1,"166":1,"171":1,"175":1,"184":1,"185":1,"226":1,"230":1,"231":1,"254":1,"256":1}}],["tip",{"2":{"12":1,"13":1,"285":1,"287":1,"296":1}}],["t",{"0":{"64":1,"66":1,"67":1,"68":1,"69":2},"1":{"65":1,"66":1,"67":1,"68":1,"69":1},"2":{"13":1,"33":1,"59":1,"61":1,"62":1,"66":2,"67":2,"68":2,"69":7}}],["txt",{"2":{"12":1}}],["txt来安装依赖",{"2":{"6":1,"15":1}}],["trim",{"2":{"265":2}}],["tree",{"2":{"220":3}}],["traceback",{"2":{"170":1,"227":1}}],["try",{"2":{"20":1,"21":1,"98":1,"170":1,"227":1,"260":1}}],["trss",{"2":{"8":1,"14":1,"267":2}}],["true时例如docs",{"2":{"222":1}}],["true下启动轻雪",{"2":{"6":1}}],["true",{"0":{"98":1,"151":1,"220":1,"228":1,"248":1},"2":{"1":3,"2":1,"67":1,"103":1,"160":1,"181":1,"182":1,"222":1,"270":2,"276":1}}],["tokyo",{"2":{"303":1}}],["token",{"2":{"2":1}}],["top",{"0":{"222":1},"2":{"222":3}}],["toml",{"0":{"118":1},"2":{"118":4,"119":2,"121":1}}],["toml和config目录下的所有配置文件",{"2":{"0":1}}],["to",{"0":{"218":1,"262":1},"2":{"6":3,"13":1,"15":2,"22":1,"23":1,"34":1,"35":1,"66":1,"69":1,"218":1,"222":1,"227":5,"228":2,"253":1,"262":2}}],["image",{"2":{"297":2,"298":1}}],["implemented",{"2":{"146":1}}],["import",{"2":{"109":1,"227":1,"270":5,"273":1,"290":2,"291":3,"294":1}}],["iter",{"2":{"220":2}}],["items",{"2":{"75":1,"115":2,"139":1,"218":1,"221":1,"222":1}}],["i",{"2":{"172":2,"270":6}}],["ignored",{"0":{"222":1},"2":{"222":7}}],["ignore",{"0":{"98":1,"220":1,"228":1},"2":{"98":3,"220":5,"222":1,"228":5}}],["id仅超级用户可用",{"2":{"297":1}}],["id=user",{"2":{"283":2}}],["id=1234567",{"2":{"297":2}}],["id=123456",{"2":{"283":1}}],["id=self",{"2":{"164":3}}],["id",{"0":{"163":3},"2":{"69":5,"163":9,"164":3,"183":1,"220":6,"283":2,"297":2,"299":1,"305":4}}],["ids",{"2":{"65":2,"69":2}}],["if",{"2":{"22":2,"23":1,"33":2,"35":2,"45":1,"65":5,"66":3,"67":1,"69":6,"74":3,"76":1,"77":1,"96":1,"97":1,"98":3,"99":1,"101":5,"103":2,"105":2,"115":1,"116":1,"117":1,"118":1,"119":2,"120":3,"129":1,"131":2,"133":1,"138":1,"144":1,"151":1,"159":1,"160":5,"163":1,"164":1,"170":1,"172":1,"181":1,"218":1,"219":1,"220":20,"221":10,"222":4,"227":2,"228":9,"259":2,"260":1,"262":1}}],["isclass",{"2":{"259":1}}],["iscoroutinefunction",{"2":{"259":2}}],["isroutine",{"2":{"259":1}}],["isfile",{"2":{"228":1,"291":1}}],["isdir",{"2":{"228":2}}],["isinstance",{"2":{"74":1,"115":1,"220":13,"227":1,"270":1}}],["is",{"0":{"133":1,"183":1,"199":1,"259":1},"2":{"19":1,"20":2,"21":3,"23":1,"33":2,"45":1,"65":6,"66":1,"69":5,"74":1,"76":1,"77":1,"95":2,"96":1,"97":1,"98":1,"99":1,"101":3,"103":1,"105":2,"116":1,"117":1,"118":1,"129":1,"131":1,"133":2,"151":1,"156":1,"163":1,"181":1,"183":1,"220":2,"221":2,"222":1,"227":1,"228":2,"253":1,"259":1,"260":1}}],["icu",{"2":{"12":1}}],["icon=f",{"2":{"160":5}}],["icon",{"2":{"1":1,"160":7,"221":1,"222":2}}],["index",{"2":{"221":1,"222":1,"287":1}}],["inherit=",{"2":{"220":1}}],["inherit",{"0":{"210":1},"2":{"221":5}}],["inspect",{"2":{"259":4,"263":1}}],["insert",{"2":{"172":1}}],["instead",{"2":{"35":1}}],["instance",{"0":{"105":1,"106":1},"2":{"19":2,"33":4,"66":1,"74":1,"105":5,"108":1}}],["install安装浏览器",{"2":{"6":1}}],["install",{"2":{"6":1,"12":1,"15":1,"296":1,"299":1,"300":1}}],["inner",{"2":{"65":2}}],["in",{"0":{"121":1,"261":1},"2":{"23":1,"33":1,"35":3,"45":1,"65":5,"68":1,"69":1,"74":1,"75":1,"98":1,"101":3,"102":1,"103":1,"115":2,"119":1,"120":2,"121":1,"128":1,"130":1,"131":1,"132":1,"133":1,"138":1,"139":1,"151":1,"153":1,"170":1,"172":1,"174":2,"183":1,"218":1,"219":2,"220":13,"221":9,"222":5,"228":2,"253":2,"257":2,"260":2,"261":1,"291":1}}],["int=0",{"2":{"22":1,"173":1,"174":1}}],["int",{"0":{"22":1,"168":1,"173":1,"174":1},"2":{"22":1,"44":1,"65":2,"168":1}}],["initialized",{"2":{"33":1,"65":2}}],["initializing",{"2":{"19":1}}],["init",{"0":{"19":1,"24":1,"25":1,"44":1,"65":1,"83":1,"87":1,"95":1,"125":1,"127":1,"135":1,"160":1,"163":1,"168":1,"178":1},"2":{"19":2,"24":2,"25":2,"44":1,"65":1,"83":1,"87":1,"95":1,"125":1,"127":1,"135":1,"160":1,"163":1,"165":1,"168":1,"178":1,"220":1,"222":2,"228":2,"256":1,"262":1,"290":3}}],["info",{"0":{"220":1,"221":1},"2":{"1":1,"19":1,"20":2,"21":2,"22":1,"160":3,"220":12,"221":5,"222":5,"270":2}}],["日志等级",{"2":{"1":1}}],["lyf结尾",{"2":{"281":1}}],["lyfunction语法",{"2":{"297":1}}],["lyfunction",{"2":{"281":1}}],["lt",{"2":{"278":2,"296":1,"297":7,"299":10,"301":2}}],["locks",{"2":{"98":1}}],["lock",{"0":{"107":2},"2":{"96":3,"97":3,"98":3,"105":1}}],["loaded",{"0":{"225":1},"2":{"225":1}}],["loader",{"0":{"256":1,"257":1},"1":{"257":1},"2":{"19":1,"257":1}}],["loading",{"2":{"116":1,"117":1,"118":1}}],["load",{"0":{"116":1,"117":1,"118":1,"119":1,"120":1,"121":1,"226":1,"227":1,"228":1},"1":{"227":1,"228":1,"229":1},"2":{"19":1,"116":3,"117":3,"118":3,"119":4,"120":2,"121":3,"153":2,"226":1,"227":3,"228":2,"257":2,"299":1,"300":1}}],["loop",{"0":{"103":1},"2":{"19":4,"65":1,"68":3,"95":2,"103":2,"260":10}}],["log0000",{"2":{"270":1}}],["logger",{"0":{"25":1},"2":{"19":1,"20":2,"21":2,"22":1,"24":1,"25":1,"35":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"65":2,"116":1,"117":1,"118":1,"119":2,"120":1,"128":1,"131":2,"133":1,"139":1,"160":7,"227":3,"228":3,"260":1,"270":3,"291":2}}],["logo",{"2":{"19":1}}],["log",{"0":{"158":1,"160":1},"1":{"159":1,"160":1},"2":{"1":2,"25":1,"158":1,"160":3,"270":1}}],["litedoc",{"2":{"267":1}}],["liteecho",{"0":{"254":1,"255":1},"1":{"255":1},"2":{"254":2,"255":2,"297":1}}],["liteyuki框架是包含在liteyukibot应用中的",{"2":{"277":1}}],["liteyukiexception",{"0":{"155":1}}],["liteyuki轻雪机器人管理脚本",{"2":{"14":1}}],["liteyukibot代替$",{"2":{"13":1}}],["liteyukibot",{"0":{"18":1,"33":1},"1":{"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1},"2":{"12":3,"13":5,"22":1,"33":2,"153":1,"265":2,"266":2,"267":2,"277":1}}],["liteyukistudio",{"2":{"12":2,"13":1,"36":1,"123":1,"152":1,"158":1,"161":1,"165":1,"166":1,"171":1,"175":1,"184":1,"185":1,"226":1,"230":1,"231":1,"254":1,"256":1}}],["liteyuki",{"0":{"17":1,"36":1,"58":1,"81":1,"84":1,"85":1,"91":1,"114":1,"122":1,"123":1,"140":1,"141":1,"152":1,"154":1,"156":1,"158":1,"161":1,"165":1,"166":1,"171":1,"175":1,"184":1,"185":1,"224":1,"226":1,"230":1,"231":1,"253":1,"254":1,"256":1,"258":1,"299":1},"1":{"18":1,"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"43":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"59":1,"60":1,"61":1,"62":1,"63":1,"64":1,"65":1,"66":1,"67":1,"68":1,"69":1,"70":1,"71":1,"72":1,"73":1,"74":1,"75":1,"76":1,"77":1,"78":1,"79":1,"80":1,"82":1,"83":1,"86":1,"87":1,"88":1,"89":1,"90":1,"92":1,"93":1,"94":1,"95":1,"96":1,"97":1,"98":1,"99":1,"100":1,"101":1,"102":1,"103":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":1,"110":1,"111":1,"112":1,"113":1,"115":1,"116":1,"117":1,"118":1,"119":1,"120":1,"121":1,"124":1,"125":1,"126":1,"127":1,"128":1,"129":1,"130":1,"131":1,"132":1,"133":1,"134":1,"135":1,"136":1,"137":1,"138":1,"139":1,"142":1,"143":1,"144":1,"145":1,"146":1,"147":1,"148":1,"149":1,"150":1,"151":1,"153":1,"155":1,"157":1,"159":1,"160":1,"162":1,"163":1,"164":1,"167":1,"168":1,"169":1,"170":1,"172":1,"173":1,"174":1,"176":1,"177":1,"178":1,"179":1,"180":1,"181":1,"182":1,"183":1,"186":1,"187":1,"188":1,"189":1,"190":1,"191":1,"192":1,"193":1,"194":1,"195":1,"196":1,"197":1,"198":1,"199":1,"200":1,"201":1,"202":1,"203":1,"204":1,"205":1,"206":1,"207":1,"208":1,"209":1,"210":1,"211":1,"212":1,"213":1,"214":1,"215":1,"216":1,"217":1,"218":1,"219":1,"220":1,"221":1,"222":1,"223":1,"225":1,"227":1,"228":1,"229":1,"232":1,"233":1,"234":1,"235":1,"236":1,"237":1,"238":1,"239":1,"240":1,"241":1,"242":1,"243":1,"244":1,"245":1,"246":1,"247":1,"248":1,"249":1,"250":1,"251":1,"252":1,"255":1,"257":1,"259":1,"260":1,"261":1,"262":1,"263":1,"300":1},"2":{"1":2,"2":1,"12":1,"19":2,"21":2,"33":1,"153":2,"156":1,"227":5,"257":3,"265":1,"267":2,"270":12,"273":2,"277":3,"280":1,"286":1,"290":1,"291":4,"294":1,"297":4,"298":3}}],["listdir",{"2":{"120":1,"228":2}}],["list",{"0":{"163":1,"174":1,"194":1,"208":1,"209":1,"210":1,"213":1,"214":1,"215":1,"219":1},"2":{"44":6,"65":2,"92":1,"93":1,"163":1,"168":1,"172":3,"174":1,"219":4,"220":4,"222":3,"297":1,"299":2,"300":1}}],["life",{"2":{"44":1}}],["lifespan=self",{"2":{"19":1}}],["lifespan",{"0":{"27":2,"28":1,"29":1,"30":1,"31":2,"32":1,"36":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"43":1,"45":2,"46":2,"47":2,"48":2,"49":2,"50":2,"51":2,"127":2},"1":{"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"43":1,"44":2,"45":2,"46":2,"47":2,"48":2,"49":2,"50":2,"51":2,"52":2,"53":2,"54":2,"55":2,"56":2,"57":2},"2":{"19":3,"27":5,"28":4,"29":4,"30":4,"31":5,"32":4,"36":1,"39":2,"42":2,"44":6,"45":4,"46":4,"47":4,"48":4,"49":4,"50":4,"51":4,"127":4}}],["linux系统要支持python3",{"2":{"15":1}}],["linux",{"2":{"14":1,"22":1}}],["linux下使用source",{"2":{"12":1}}],["llonebot",{"2":{"8":1}}],["laptop",{"2":{"222":2}}],["lang",{"0":{"221":1,"222":1},"2":{"221":3,"222":2}}],["language",{"2":{"2":1}}],["last",{"2":{"144":4}}],["lambda",{"2":{"109":1,"110":2,"111":2,"112":2,"113":1}}],["lagrange",{"2":{"8":1}}],["level=0",{"2":{"160":1}}],["level",{"0":{"159":1},"2":{"1":1,"159":2,"160":6}}],["写在外层的配置项将会被覆盖",{"2":{"1":1}}],["switch",{"2":{"297":2,"298":1}}],["simple",{"2":{"290":1}}],["signature",{"2":{"263":2}}],["src目录下为应用程序部分",{"2":{"277":1}}],["src",{"2":{"257":1,"277":1,"291":5}}],["sparkles",{"2":{"278":2}}],["specified",{"2":{"227":1}}],["split",{"2":{"227":4}}],["schedule",{"2":{"151":1}}],["scripts部署",{"0":{"14":1}}],["scripts",{"2":{"12":1}}],["source",{"0":{"197":1},"2":{"220":2,"221":6}}],["sockschannel",{"0":{"86":1},"1":{"87":1,"88":1,"89":1,"90":1}}],["socks",{"0":{"85":1},"1":{"86":1,"87":1,"88":1,"89":1,"90":1}}],["software",{"2":{"36":1,"123":1,"152":1,"158":1,"161":1,"165":1,"166":1,"171":1,"175":1,"184":1,"185":1,"226":1,"230":1,"231":1,"254":1,"256":1}}],["shinjuku",{"2":{"303":1}}],["shellstatistic",{"2":{"305":1}}],["shellbind",{"2":{"303":1}}],["shellweather",{"2":{"303":1}}],["shellmain",{"2":{"287":1}}],["shellvar",{"2":{"282":1}}],["shellcmd",{"2":{"281":1}}],["shell",{"2":{"281":1,"283":1}}],["shutil",{"2":{"222":1}}],["shutdown",{"0":{"29":1,"30":1,"48":1,"49":1,"54":1,"55":1},"2":{"29":2,"30":2,"44":2,"48":2,"49":2,"54":3,"55":3}}],["show",{"2":{"160":6}}],["should",{"2":{"65":1}}],["shared",{"0":{"108":1},"2":{"95":3,"109":1,"110":3,"111":3,"112":3,"113":2,"129":1,"273":3}}],["sync",{"0":{"37":1,"40":1,"59":1,"61":1},"2":{"39":1,"42":1,"60":1,"63":1,"263":1}}],["system",{"0":{"151":1},"2":{"22":4,"151":1,"291":2}}],["sys",{"2":{"22":3,"160":1}}],["snowykami",{"2":{"36":2,"123":2,"152":2,"158":2,"161":2,"165":2,"166":2,"171":2,"175":2,"184":2,"185":2,"226":2,"230":2,"231":2,"254":2,"256":2}}],["succeeded",{"2":{"227":1}}],["success",{"2":{"131":1,"160":2,"227":2}}],["summary>",{"2":{"221":3}}],["summary>源代码",{"2":{"221":1}}],["su",{"0":{"183":1},"2":{"183":1,"254":1,"255":1}}],["supported",{"2":{"120":1}}],["superusers",{"2":{"1":1,"183":1}}],["subprocess",{"2":{"135":1,"136":1,"137":1}}],["subprocessmanager",{"0":{"134":1},"1":{"135":1,"136":1,"137":1,"138":1,"139":1}}],["subscribe",{"2":{"101":1}}],["subscriber",{"0":{"92":1,"93":1,"101":1,"102":1},"2":{"101":7,"102":2,"103":1}}],["sub",{"0":{"93":1},"2":{"33":1,"65":2,"69":1,"95":1,"101":4,"103":1}}],["sleep",{"2":{"21":1,"22":1,"270":1,"282":1,"283":1}}],["style",{"2":{"278":1,"287":2}}],["stem",{"2":{"262":2}}],["stdout",{"2":{"160":1}}],["store",{"2":{"95":1,"96":1,"97":1,"98":2,"99":1,"253":1}}],["storage",{"0":{"91":1},"1":{"92":1,"93":1,"94":1,"95":1,"96":1,"97":1,"98":1,"99":1,"100":1,"101":1,"102":1,"103":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":1,"110":1,"111":1,"112":1,"113":1},"2":{"84":2,"273":2}}],["stopped",{"2":{"20":1}}],["stopping",{"2":{"20":1}}],["stop",{"0":{"26":1},"2":{"19":1,"20":1,"21":2,"26":2}}],["stat",{"2":{"306":1}}],["statistic",{"2":{"306":1}}],["statistics",{"0":{"305":1},"1":{"306":1}}],["static",{"0":{"189":1},"2":{"220":1}}],["staticmethod",{"0":{"189":1},"2":{"44":1,"45":1,"101":1,"102":1,"220":1}}],["status",{"2":{"297":1,"298":1}}],["starmap",{"2":{"267":1}}],["startup",{"2":{"270":2}}],["startswith",{"2":{"220":3,"254":1,"255":1}}],["starting",{"2":{"128":1,"139":1}}],["start或superusers",{"2":{"6":1}}],["start保证alconna解析正常",{"2":{"1":1}}],["start",{"0":{"27":1,"28":1,"46":1,"47":1,"52":1,"53":1,"103":1,"128":1,"138":1,"139":1},"2":{"1":1,"20":1,"22":2,"27":2,"28":2,"44":2,"46":2,"47":2,"52":3,"53":3,"103":2,"128":2,"138":2,"139":2,"261":1,"270":1}}],["strip",{"2":{"255":2}}],["str=",{"2":{"221":1,"222":1}}],["structure",{"2":{"66":1}}],["str",{"0":{"23":1,"34":1,"35":2,"65":1,"74":1,"75":1,"76":1,"77":1,"78":2,"79":2,"80":2,"83":2,"87":1,"96":1,"97":1,"98":1,"99":1,"100":1,"101":1,"102":1,"110":2,"111":2,"112":2,"113":2,"115":2,"116":2,"117":2,"118":2,"119":2,"120":2,"121":1,"125":2,"129":1,"131":1,"133":1,"136":1,"137":1,"138":1,"151":1,"153":1,"159":2,"163":9,"164":2,"174":1,"193":1,"194":2,"195":1,"196":1,"197":1,"201":1,"202":1,"204":1,"206":1,"207":1,"210":1,"212":1,"216":1,"217":3,"218":2,"219":1,"220":1,"221":2,"222":3,"225":1,"227":1,"228":1,"229":2,"239":1,"240":1,"241":1,"243":1,"244":1,"245":1,"249":1,"251":1,"262":1},"2":{"19":1,"23":2,"34":2,"35":3,"40":1,"41":1,"65":2,"73":2,"74":2,"75":2,"76":2,"77":3,"78":2,"79":2,"80":2,"83":2,"87":1,"92":1,"93":1,"95":5,"96":1,"97":1,"98":1,"99":3,"100":1,"101":1,"102":1,"110":2,"111":2,"112":2,"113":2,"115":2,"116":2,"117":2,"118":2,"119":2,"120":2,"121":1,"125":2,"127":2,"129":1,"131":1,"133":1,"135":1,"136":1,"137":1,"138":1,"151":1,"153":1,"159":2,"163":9,"164":2,"174":1,"183":1,"217":3,"218":2,"219":1,"220":1,"221":1,"222":4,"225":2,"227":1,"228":1,"229":3,"262":2,"270":1}}],["search",{"2":{"299":1,"300":1}}],["service",{"0":{"234":2},"2":{"229":1,"290":1}}],["server",{"2":{"15":1}}],["sep",{"2":{"220":3}}],["session",{"0":{"163":2,"184":1},"2":{"163":6,"164":5,"184":1}}],["sequence",{"0":{"45":1},"2":{"45":2}}],["send",{"0":{"66":1,"88":1},"2":{"23":2,"65":2,"66":4,"74":1,"76":1,"77":1,"79":1,"80":1,"87":1,"88":1,"96":1,"97":1,"98":1,"99":1,"100":1,"103":1,"110":1,"113":1,"164":1,"270":3,"297":1}}],["set",{"0":{"74":1,"75":1,"78":1,"96":1,"111":1,"228":1},"2":{"19":1,"21":1,"26":1,"65":1,"74":2,"75":2,"77":1,"78":3,"96":2,"110":1,"111":3,"228":2,"260":1,"273":1,"297":2,"298":1,"301":2}}],["self",{"0":{"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"44":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"65":1,"66":1,"67":1,"68":1,"69":1,"83":1,"87":1,"88":1,"89":1,"90":1,"95":1,"96":1,"97":1,"98":1,"99":1,"100":1,"101":1,"103":1,"125":1,"127":1,"128":1,"129":1,"130":1,"131":1,"132":1,"133":1,"135":1,"136":1,"137":1,"138":1,"139":1,"146":1,"147":1,"148":1,"149":1,"150":1,"163":1,"164":1,"168":1,"169":1,"170":1,"178":1,"179":1,"180":1,"181":1,"247":1},"2":{"19":11,"20":4,"21":3,"22":4,"23":2,"24":2,"25":1,"26":3,"27":2,"28":2,"29":2,"30":2,"31":2,"32":2,"44":8,"46":2,"47":2,"48":2,"49":2,"50":2,"51":2,"52":3,"53":3,"54":3,"55":3,"56":3,"57":3,"65":14,"66":6,"67":3,"68":2,"69":3,"83":3,"87":5,"88":1,"89":1,"90":1,"95":7,"96":3,"97":3,"98":4,"99":3,"100":2,"101":1,"103":4,"125":6,"127":4,"128":2,"129":2,"130":2,"131":3,"132":3,"133":3,"135":2,"136":2,"137":2,"138":3,"139":2,"146":1,"147":2,"148":2,"149":2,"150":2,"163":10,"164":3,"168":5,"169":2,"170":3,"178":2,"179":2,"180":2,"181":3,"220":1,"221":1,"247":2}}],["safe",{"2":{"2":1,"116":1}}],["num为每页显示数量",{"2":{"299":2}}],["num",{"2":{"299":2}}],["npm",{"2":{"299":7,"300":1}}],["nliteyuki",{"2":{"281":1}}],["n\`\`\`",{"2":{"221":2}}],["n\`\`\`python",{"2":{"221":2}}],["n",{"2":{"221":52,"222":2}}],["name>",{"2":{"282":2}}],["name=module",{"2":{"227":3}}],["name=target",{"2":{"220":2}}],["name=class",{"2":{"220":1}}],["name=node",{"2":{"220":2}}],["name=f",{"2":{"129":2}}],["name=",{"2":{"70":1,"71":1,"95":3,"290":1}}],["name",{"0":{"23":1,"65":1,"74":1,"76":1,"83":1,"87":1,"129":1,"131":1,"133":1,"136":1,"137":1,"138":1,"193":1,"201":1,"206":1,"223":1,"229":2,"239":1,"249":1,"251":1,"262":1},"2":{"23":6,"65":11,"74":7,"75":2,"76":5,"78":3,"79":3,"83":3,"87":4,"128":3,"129":5,"130":1,"131":6,"132":2,"133":5,"136":3,"137":4,"138":5,"139":2,"220":11,"221":7,"222":2,"227":20,"228":9,"229":6,"247":1,"262":1,"270":2,"297":4,"299":8}}],["new",{"0":{"136":1},"2":{"19":1,"115":3,"136":1,"260":1}}],["nodes",{"2":{"220":2}}],["node",{"2":{"220":42}}],["node等进程",{"2":{"15":1}}],["normal",{"0":{"220":1},"2":{"220":1,"222":1}}],["normal>",{"2":{"160":1}}],["nonlocal",{"2":{"144":1}}],["nonedog",{"2":{"290":1}}],["none",{"0":{"19":1,"23":1,"34":1,"35":1,"44":1,"45":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"65":1,"69":1,"96":1,"97":1,"98":1,"100":1,"106":1,"129":1,"136":1,"151":1,"163":2,"170":1,"203":1,"221":1,"222":1,"252":1},"2":{"19":1,"23":2,"33":1,"34":1,"35":1,"44":1,"45":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"65":3,"66":1,"68":1,"69":2,"87":2,"96":1,"98":1,"100":1,"105":2,"116":1,"117":1,"118":1,"129":1,"136":1,"142":1,"144":1,"151":1,"163":1,"170":1,"176":2,"181":1,"220":3,"222":1,"227":4,"228":1,"259":1}}],["nonebot插件目录",{"2":{"277":1}}],["nonebot2提供的框架支持",{"2":{"10":1}}],["nonebot",{"2":{"2":1,"10":1,"258":1,"266":6,"270":3,"277":1,"290":1,"291":4,"294":1}}],["nonebot机器人的配置",{"2":{"1":1}}],["no",{"0":{"119":1,"120":1,"121":1,"193":1,"194":1,"195":1,"196":1,"198":1,"199":1,"201":1,"202":1,"206":1,"207":1,"208":1,"209":1,"210":1,"212":1,"213":1,"214":1,"215":1,"216":1,"223":1,"239":1,"249":1,"250":1,"251":1},"2":{"72":1,"73":1,"119":3,"120":3,"121":3,"220":3,"221":1,"222":2}}],["nohup",{"2":{"22":2,"282":1,"283":1}}],["notimplementederror",{"2":{"146":1}}],["not",{"2":{"21":1,"23":1,"33":1,"65":1,"66":2,"69":4,"74":1,"98":1,"101":3,"103":1,"116":1,"117":1,"118":1,"119":3,"120":3,"131":2,"133":2,"138":2,"151":2,"170":1,"218":1,"220":8,"227":1,"228":8,"291":2}}],["ntqq的onebot插件",{"2":{"8":1}}],["nickname",{"2":{"1":1}}],["若不存在则返回空",{"2":{"297":1}}],["若不存在则创建于config",{"2":{"297":1}}],["若存在则返回",{"2":{"297":1}}],["若存在则覆盖",{"2":{"297":1}}],["若存在则会覆盖",{"2":{"297":1}}],["若要戳20s后停止",{"2":{"283":1}}],["若要接收外部请求请填写0",{"2":{"1":1}}],["若函数中启动了其他task",{"2":{"282":1}}],["若有面向普通用户部分",{"2":{"278":1}}],["若有子进程订阅则推送给子进程",{"2":{"103":1}}],["若有困难请联系对应开发者而不是liteyuki的开发者",{"2":{"9":1}}],["若为空",{"2":{"65":1}}],["若你不希望提供这些信息",{"2":{"295":1}}],["若你不能访问github",{"2":{"12":1}}],["若你修改了端口号请将20216",{"2":{"13":1}}],["若没有metadata",{"2":{"287":1}}],["若没有",{"2":{"1":1}}],["14s",{"2":{"305":2}}],["1h",{"2":{"305":2}}],["1d",{"2":{"305":2}}],["1145141919810",{"2":{"297":1}}],["11",{"2":{"256":1}}],["19",{"2":{"161":1,"165":1,"166":1,"171":1,"175":1,"184":1,"185":1}}],["1919810",{"2":{"1":1}}],["10",{"2":{"157":1,"297":1}}],["10+",{"2":{"12":1,"15":1}}],["18",{"2":{"152":1}}],["12",{"2":{"123":1,"158":1}}],["127",{"2":{"1":1,"3":1}}],["1",{"2":{"1":1,"2":1,"3":2,"21":1,"22":2,"23":2,"69":1,"78":2,"79":2,"80":1,"103":2,"110":3,"111":2,"112":1,"113":1,"115":1,"145":1,"146":1,"221":6,"222":1,"227":4,"262":2,"287":2,"290":1}}],["03",{"2":{"270":2}}],["0000",{"2":{"270":3}}],["00",{"2":{"270":18}}],["02",{"2":{"231":1,"256":1}}],["04",{"2":{"152":1}}],["04+",{"2":{"15":1}}],["0",{"0":{"22":1,"173":1,"174":1},"2":{"1":5,"3":4,"19":1,"21":1,"22":2,"44":1,"77":1,"78":2,"79":2,"80":1,"103":1,"109":2,"110":2,"111":2,"112":2,"113":1,"168":1,"220":1,"221":7,"283":1,"287":2,"290":2}}],["请注意",{"2":{"286":1}}],["请确保您所编写的html代码能被bot解析",{"2":{"286":1}}],["请确保用户文档是通俗易懂的",{"2":{"278":1}}],["请确保文档内的链接是正确的",{"2":{"278":1}}],["请确保文档是完善的",{"2":{"278":1}}],["请确保注释风格为google",{"2":{"278":1}}],["请确保代码的类型提示是正确的",{"2":{"278":1}}],["请确保代码是可运行的",{"2":{"278":1}}],["请确保你了解markdown语法和基本前端知识",{"2":{"275":1}}],["请遵循以下规范",{"2":{"278":1}}],["请阅读插件主页的说明",{"2":{"300":1}}],["请阅读插件开发文档和api",{"2":{"275":1}}],["请阅读以下内容",{"2":{"275":1}}],["请不要将需要动态加载的内容写入配置文件",{"2":{"114":1}}],["请联系插件作者或在安全模式safe",{"2":{"6":1}}],["请先查阅插件文档",{"2":{"6":1}}],["请正确安装git",{"2":{"6":1}}],["请检查配置文件的command",{"2":{"6":1}}],["请使用path",{"2":{"15":1}}],["请使用",{"2":{"6":1}}],["请在此填写相同的值",{"2":{"3":1}}],["请开启alconna",{"2":{"1":1}}],["请尽快迁移",{"2":{"1":1}}],["空命令头",{"2":{"1":1}}],["指令前缀",{"2":{"1":1}}],["轻雪天气liteyuki",{"0":{"303":1},"1":{"304":1}}],["轻雪文档",{"2":{"298":1}}],["轻雪命令liteyuki",{"0":{"297":1},"1":{"298":1}}],["轻雪会收集以下内容",{"2":{"295":1}}],["轻雪会自动合并这些配置文件",{"2":{"0":1}}],["轻雪主进程不涉及聊天部分",{"2":{"291":1}}],["轻雪原版资源包请查看liteyukibot",{"2":{"286":1}}],["轻雪函数",{"0":{"280":1},"1":{"281":1,"282":1,"283":1,"284":1,"285":1},"2":{"280":1}}],["轻雪框架提供了一个内存共享通信的接口",{"2":{"272":1}}],["轻雪提供了一个通道channel用于跨进程通信",{"2":{"269":1}}],["轻雪运行在主进程",{"2":{"269":1}}],["轻雪api文档生成器",{"2":{"267":1}}],["轻雪官方星图",{"2":{"267":1}}],["轻雪官方机器人",{"2":{"265":1}}],["轻雪机器人统计接口",{"2":{"267":1}}],["轻雪机器人",{"2":{"266":1}}],["轻雪",{"2":{"265":1}}],["轻雪抽象消息事件",{"2":{"163":1}}],["轻雪生命周期管理",{"2":{"44":1}}],["轻雪实例",{"2":{"33":1}}],["轻雪的更新功能依赖git",{"2":{"15":1}}],["轻雪使用git进行版本管理",{"2":{"12":1}}],["轻雪不局限于onebot适配器",{"2":{"4":1}}],["轻雪调试",{"2":{"2":1}}],["轻雪插件是轻雪内置的一部分功能",{"2":{"288":1}}],["轻雪插件目录",{"2":{"277":1}}],["轻雪插件目录列表",{"2":{"1":1}}],["轻雪插件列表",{"2":{"1":1}}],["轻雪支持yaml",{"2":{"0":1}}],["y",{"2":{"229":1}}],["your",{"2":{"227":2}}],["yellow>",{"2":{"160":1}}],["y>",{"2":{"20":2}}],["y>liteyuki",{"2":{"20":2}}],["yunzai",{"2":{"8":1}}],["yamlweather",{"2":{"303":1}}],["yamlname",{"2":{"287":1}}],["yamlnonebot",{"2":{"1":1}}],["yaml",{"0":{"116":1},"2":{"0":1,"2":1,"116":4,"119":2,"121":1}}],["yml格式的所有合法内容",{"2":{"297":1}}],["yml文件",{"2":{"287":1}}],["yml中填写一些信息",{"2":{"287":1}}],["yml中设置dev",{"2":{"276":1}}],["yml",{"2":{"0":1,"119":1,"121":1,"287":2,"297":1}}],["yml和config目录",{"2":{"0":1}}],["你的插件代码",{"2":{"290":1}}],["你的贡献将会使轻雪变得更好",{"2":{"279":1}}],["你在a包中定义了一个index",{"2":{"287":1}}],["你自己制作的资源包也应该遵循这个规则",{"2":{"287":1}}],["你也可以自己制作资源包",{"2":{"286":1}}],["你应该使用其他储存方式",{"2":{"114":1}}],["你将无法使用更新功能",{"2":{"15":1}}],["你需要使用onebot标准的实现端来连接到轻雪并将消息上报给轻雪",{"2":{"6":1}}],["你有这个问题说明你不是很了解这个项目",{"2":{"6":1}}],["你可以选择开启auto",{"2":{"295":1}}],["你可以自由使用",{"2":{"295":1}}],["你可以自定义一些信息",{"2":{"287":1}}],["你可以在多个线程中读写共享内存",{"2":{"272":1}}],["你可以通过storage模块实现内存共享通信",{"2":{"272":1}}],["你可以通过channel发送消息给其他进程",{"2":{"269":1}}],["你可以使用python",{"2":{"12":1}}],["你可以使用nonebot2支持的任何适配器或使用轻雪讯息传递插件",{"2":{"4":1}}],["你可在此自定义生成的markdown格式",{"2":{"221":1}}],["你可在config目录下创建多个配置文件",{"2":{"0":1}}],["你可修改配置项后重启轻雪",{"2":{"0":1}}],["你只需要修改superusers及nickname字段即可",{"2":{"0":1}}],["绝大多数情况下",{"2":{"0":1}}],["取决于你个人的喜好",{"2":{"0":1}}],["配置项",{"2":{"303":1}}],["配置项目",{"2":{"115":1}}],["配置了命令别名的命令可以使用别名代替原命令",{"2":{"296":1}}],["配置文件尽量扁平化",{"2":{"114":1}}],["配置值",{"2":{"34":1,"35":1}}],["配置键",{"2":{"34":1,"35":1}}],["配置",{"0":{"0":1},"1":{"1":1,"2":1,"3":1,"4":1},"2":{"19":2,"298":1}}]],"serializationVersion":2}`;export{e as default}; diff --git a/assets/chunks/@localSearchIndexroot.D6awRTd5.js b/assets/chunks/@localSearchIndexroot.D6awRTd5.js new file mode 100644 index 00000000..978ab3c8 --- /dev/null +++ b/assets/chunks/@localSearchIndexroot.D6awRTd5.js @@ -0,0 +1 @@ +const e=`{"documentCount":301,"nextId":301,"documentIds":{"0":"/deploy/config.html#配置","1":"/deploy/config.html#基础配置项","2":"/deploy/config.html#其他配置","3":"/deploy/config.html#示例-与nonebot对接的onebot实现端配置","4":"/deploy/config.html#其他","5":"/deploy/fandq.html#答疑","6":"/deploy/fandq.html#常见问题","7":"/deploy/fandq.html#其他问题","8":"/deploy/fandq.html#推荐方案-qq","9":"/deploy/fandq.html#推荐方案-minecraft","10":"/deploy/fandq.html#鸣谢","11":"/deploy/install.html#安装","12":"/deploy/install.html#常规部署","13":"/deploy/install.html#使用docker构建","14":"/deploy/install.html#使用trss-scripts部署","15":"/deploy/install.html#装置要求","16":"/deploy/install.html#其他问题请移步至答疑","17":"/dev/api/bot/#模块-liteyuki-bot","18":"/dev/api/bot/#class-liteyukibot","19":"/dev/api/bot/#func-init-self-kwargs-none","20":"/dev/api/bot/#func-run-self","21":"/dev/api/bot/#async-func-keep-alive-self","22":"/dev/api/bot/#func-restart-self-delay-int-0","23":"/dev/api/bot/#func-restart-process-self-name-optional-str-none","24":"/dev/api/bot/#func-init-self-args-kwargs","25":"/dev/api/bot/#func-init-logger-self","26":"/dev/api/bot/#func-stop-self","27":"/dev/api/bot/#func-on-before-start-self-func-lifespan-func-lifespan-func","28":"/dev/api/bot/#func-on-after-start-self-func-lifespan-func","29":"/dev/api/bot/#func-on-after-shutdown-self-func-lifespan-func","30":"/dev/api/bot/#func-on-before-process-shutdown-self-func-process-lifespan-func","31":"/dev/api/bot/#func-on-before-process-restart-self-func-process-lifespan-func-process-lifespan-func","32":"/dev/api/bot/#func-on-after-restart-self-func-lifespan-func","33":"/dev/api/bot/#func-get-bot-liteyukibot","34":"/dev/api/bot/#func-get-config-key-str-default-any-none-any","35":"/dev/api/bot/#func-get-config-with-compat-key-str-compat-keys-tuple-str-default-any-none-any","36":"/dev/api/bot/lifespan.html#模块-liteyuki-bot-lifespan","37":"/dev/api/bot/lifespan.html#var-sync-lifespan-func","38":"/dev/api/bot/lifespan.html#var-async-lifespan-func","39":"/dev/api/bot/lifespan.html#var-lifespan-func","40":"/dev/api/bot/lifespan.html#var-sync-process-lifespan-func","41":"/dev/api/bot/lifespan.html#var-async-process-lifespan-func","42":"/dev/api/bot/lifespan.html#var-process-lifespan-func","43":"/dev/api/bot/lifespan.html#class-lifespan","44":"/dev/api/bot/lifespan.html#func-init-self-none","45":"/dev/api/bot/lifespan.html#async-func-run-funcs-funcs-sequence-lifespan-func-process-lifespan-func-args-kwargs-none","46":"/dev/api/bot/lifespan.html#func-on-before-start-self-func-lifespan-func-lifespan-func","47":"/dev/api/bot/lifespan.html#func-on-after-start-self-func-lifespan-func-lifespan-func","48":"/dev/api/bot/lifespan.html#func-on-before-process-shutdown-self-func-process-lifespan-func-process-lifespan-func","49":"/dev/api/bot/lifespan.html#func-on-after-shutdown-self-func-lifespan-func-lifespan-func","50":"/dev/api/bot/lifespan.html#func-on-before-process-restart-self-func-process-lifespan-func-process-lifespan-func","51":"/dev/api/bot/lifespan.html#func-on-after-restart-self-func-lifespan-func-lifespan-func","52":"/dev/api/bot/lifespan.html#async-func-before-start-self-none","53":"/dev/api/bot/lifespan.html#async-func-after-start-self-none","54":"/dev/api/bot/lifespan.html#async-func-before-process-shutdown-self-args-kwargs-none","55":"/dev/api/bot/lifespan.html#async-func-after-shutdown-self-none","56":"/dev/api/bot/lifespan.html#async-func-before-process-restart-self-args-kwargs-none","57":"/dev/api/bot/lifespan.html#async-func-after-restart-self-none","58":"/dev/api/comm/channel.html#模块-liteyuki-comm-channel","59":"/dev/api/comm/channel.html#var-sync-on-receive-func","60":"/dev/api/comm/channel.html#var-on-receive-func","61":"/dev/api/comm/channel.html#var-sync-filter-func","62":"/dev/api/comm/channel.html#var-async-filter-func","63":"/dev/api/comm/channel.html#var-filter-func","64":"/dev/api/comm/channel.html#class-channel-generic-t","65":"/dev/api/comm/channel.html#func-init-self-name-str-type-check-optional-bool-none","66":"/dev/api/comm/channel.html#func-send-self-data-t","67":"/dev/api/comm/channel.html#func-receive-self-t","68":"/dev/api/comm/channel.html#async-func-async-receive-self-t","69":"/dev/api/comm/channel.html#func-on-receive-self-filter-func-optional-filter-func-none-callable-callable-t-any-callable-t-any","70":"/dev/api/comm/channel.html#var-active-channel","71":"/dev/api/comm/channel.html#var-passive-channel","72":"/dev/api/comm/channel.html#var-channel-deliver-active-channel","73":"/dev/api/comm/channel.html#var-channel-deliver-passive-channel","74":"/dev/api/comm/channel.html#func-set-channel-name-str-channel-channel","75":"/dev/api/comm/channel.html#func-set-channels-channels-dict-str-channel","76":"/dev/api/comm/channel.html#func-get-channel-name-str-channel","77":"/dev/api/comm/channel.html#func-get-channels-dict-str-channel","78":"/dev/api/comm/channel.html#func-on-set-channel-data-tuple-str-dict-str-any","79":"/dev/api/comm/channel.html#func-on-get-channel-data-tuple-str-dict-str-any","80":"/dev/api/comm/channel.html#func-on-get-channels-data-tuple-str-dict-str-any","81":"/dev/api/comm/event.html#模块-liteyuki-comm-event","82":"/dev/api/comm/event.html#class-event","83":"/dev/api/comm/event.html#func-init-self-name-str-data-dict-str-any","84":"/dev/api/comm/#模块-liteyuki-comm","85":"/dev/api/comm/storage.html#模块-liteyuki-comm-storage","86":"/dev/api/comm/storage.html#var-on-main-subscriber-receive-funcs","87":"/dev/api/comm/storage.html#var-on-sub-subscriber-receive-funcs","88":"/dev/api/comm/storage.html#class-keyvaluestore","89":"/dev/api/comm/storage.html#func-init-self","90":"/dev/api/comm/storage.html#func-set-self-key-str-value-any-none","91":"/dev/api/comm/storage.html#func-get-self-key-str-default-optional-any-none-optional-any","92":"/dev/api/comm/storage.html#func-delete-self-key-str-ignore-key-error-bool-true-none","93":"/dev/api/comm/storage.html#func-get-all-self-dict-str-any","94":"/dev/api/comm/storage.html#func-publish-self-channel-str-data-any-none","95":"/dev/api/comm/storage.html#func-on-subscriber-receive-self-channel-str-callable-on-receive-func-on-receive-func","96":"/dev/api/comm/storage.html#async-func-run-subscriber-receive-funcs-channel-str-data-any","97":"/dev/api/comm/storage.html#async-func-start-receive-loop-self","98":"/dev/api/comm/storage.html#class-globalkeyvaluestore","99":"/dev/api/comm/storage.html#func-get-instance-cls","100":"/dev/api/comm/storage.html#attr-instance-none","101":"/dev/api/comm/storage.html#attr-lock-threading-lock","102":"/dev/api/comm/storage.html#var-shared-memory","103":"/dev/api/comm/storage.html#var-ref-count","104":"/dev/api/comm/storage.html#func-on-get-data-tuple-str-dict-str-any","105":"/dev/api/comm/storage.html#func-on-set-data-tuple-str-dict-str-any","106":"/dev/api/comm/storage.html#func-on-delete-data-tuple-str-dict-str-any","107":"/dev/api/comm/storage.html#func-on-get-all-data-tuple-str-dict-str-any","108":"/dev/api/config.html#模块-liteyuki-config","109":"/dev/api/config.html#func-flat-config-config-dict-str-any-dict-str-any","110":"/dev/api/config.html#func-load-from-yaml-file-str-dict-str-any","111":"/dev/api/config.html#func-load-from-json-file-str-dict-str-any","112":"/dev/api/config.html#func-load-from-toml-file-str-dict-str-any","113":"/dev/api/config.html#func-load-from-files-files-str-no-warning-bool-false-dict-str-any","114":"/dev/api/config.html#func-load-configs-from-dirs-directories-str-no-waring-bool-false-dict-str-any","115":"/dev/api/config.html#func-load-config-in-default-no-waring-bool-false-dict-str-any","116":"/dev/api/core/#模块-liteyuki-core","117":"/dev/api/core/manager.html#模块-liteyuki-core-manager","118":"/dev/api/core/manager.html#class-channeldeliver","119":"/dev/api/core/manager.html#func-init-self-active-channel-any-passive-channel-any-channel-deliver-active-channel-channel-any-channel-deliver-passive-channel-tuple-str-dict-publish-channel-tuple-str-any","120":"/dev/api/core/manager.html#class-processmanager","121":"/dev/api/core/manager.html#func-init-self-lifespan-lifespan","122":"/dev/api/core/manager.html#func-start-all-self","123":"/dev/api/core/manager.html#func-add-target-self-name-str-target-target-func-args-tuple-kwargs-none","124":"/dev/api/core/manager.html#func-join-all-self","125":"/dev/api/core/manager.html#func-terminate-self-name-str","126":"/dev/api/core/manager.html#func-terminate-all-self","127":"/dev/api/core/manager.html#func-is-process-alive-self-name-str-bool","128":"/dev/api/core/manager.html#class-subprocessmanager","129":"/dev/api/core/manager.html#func-init-self","130":"/dev/api/core/manager.html#func-new-process-self-name-str-args-kwargs-callable-processfunctype-none","131":"/dev/api/core/manager.html#func-add-self-name-str-func-processfunctype-args-kwargs","132":"/dev/api/core/manager.html#func-start-self-name-str","133":"/dev/api/core/manager.html#func-start-all-self-1","134":"/dev/api/dev/#模块-liteyuki-dev","135":"/dev/api/dev/observer.html#模块-liteyuki-dev-observer","136":"/dev/api/dev/observer.html#var-callback-func","137":"/dev/api/dev/observer.html#var-filter-func","138":"/dev/api/dev/observer.html#func-debounce-wait","139":"/dev/api/dev/observer.html#class-codemodifiedhandler-filesystemeventhandler","140":"/dev/api/dev/observer.html#func-on-modified-self-event","141":"/dev/api/dev/observer.html#func-on-created-self-event","142":"/dev/api/dev/observer.html#func-on-deleted-self-event","143":"/dev/api/dev/observer.html#func-on-moved-self-event","144":"/dev/api/dev/observer.html#func-on-any-event-self-event","145":"/dev/api/dev/observer.html#func-on-file-system-event-directories-tuple-str-recursive-bool-true-event-filter-filter-func-none-callable-callback-func-callback-func","146":"/dev/api/dev/plugin.html#模块-liteyuki-dev-plugin","147":"/dev/api/dev/plugin.html#func-run-plugins-module-path-str-path","148":"/dev/api/exception.html#模块-liteyuki-exception","149":"/dev/api/exception.html#class-liteyukiexception-baseexception","150":"/dev/api/#模块-liteyuki","151":"/dev/api/#var-version","152":"/dev/api/log.html#模块-liteyuki-log","153":"/dev/api/log.html#func-get-format-level-str-str","154":"/dev/api/log.html#func-init-log-config-dict","155":"/dev/api/mkdoc.html#模块-liteyuki-mkdoc","156":"/dev/api/mkdoc.html#class-deftype-enum","157":"/dev/api/mkdoc.html#attr-function-function","158":"/dev/api/mkdoc.html#attr-method-method","159":"/dev/api/mkdoc.html#attr-static-method-staticmethod","160":"/dev/api/mkdoc.html#attr-class-method-classmethod","161":"/dev/api/mkdoc.html#attr-property-property","162":"/dev/api/mkdoc.html#class-functioninfo-basemodel","163":"/dev/api/mkdoc.html#attr-name-str-no-default","164":"/dev/api/mkdoc.html#attr-args-list-tuple-str-str-no-default","165":"/dev/api/mkdoc.html#attr-return-type-str-no-default","166":"/dev/api/mkdoc.html#attr-docstring-str-no-default","167":"/dev/api/mkdoc.html#attr-source-code-str","168":"/dev/api/mkdoc.html#attr-type-deftype-no-default","169":"/dev/api/mkdoc.html#attr-is-async-bool-no-default","170":"/dev/api/mkdoc.html#class-attributeinfo-basemodel","171":"/dev/api/mkdoc.html#attr-name-str-no-default-1","172":"/dev/api/mkdoc.html#attr-type-str-no-default","173":"/dev/api/mkdoc.html#attr-value-any-none","174":"/dev/api/mkdoc.html#attr-docstring-str","175":"/dev/api/mkdoc.html#class-classinfo-basemodel","176":"/dev/api/mkdoc.html#attr-name-str-no-default-2","177":"/dev/api/mkdoc.html#attr-docstring-str-no-default-1","178":"/dev/api/mkdoc.html#attr-methods-list-functioninfo-no-default","179":"/dev/api/mkdoc.html#attr-attributes-list-attributeinfo-no-default","180":"/dev/api/mkdoc.html#attr-inherit-list-str-no-default","181":"/dev/api/mkdoc.html#class-moduleinfo-basemodel","182":"/dev/api/mkdoc.html#attr-module-path-str-no-default","183":"/dev/api/mkdoc.html#attr-functions-list-functioninfo-no-default","184":"/dev/api/mkdoc.html#attr-classes-list-classinfo-no-default","185":"/dev/api/mkdoc.html#attr-attributes-list-attributeinfo-no-default-1","186":"/dev/api/mkdoc.html#attr-docstring-str-no-default-2","187":"/dev/api/mkdoc.html#func-get-relative-path-base-path-str-target-path-str-str","188":"/dev/api/mkdoc.html#func-write-to-files-file-data-dict-str-str","189":"/dev/api/mkdoc.html#func-get-file-list-module-folder-str","190":"/dev/api/mkdoc.html#func-get-module-info-normal-file-path-str-ignore-private-bool-true-moduleinfo","191":"/dev/api/mkdoc.html#func-generate-markdown-module-info-moduleinfo-front-matter-none-lang-str-zh-cn-str","192":"/dev/api/mkdoc.html#func-generate-docs-module-folder-str-output-dir-str-with-top-bool-false-lang-str-zh-cn-ignored-paths-none","193":"/dev/api/mkdoc.html#var-no-module-name-pyfile-path","194":"/dev/api/plugin/#模块-liteyuki-plugin","195":"/dev/api/plugin/#func-get-loaded-plugins-dict-str-plugin","196":"/dev/api/plugin/load.html#模块-liteyuki-plugin-load","197":"/dev/api/plugin/load.html#func-load-plugin-module-path-str-path-optional-plugin","198":"/dev/api/plugin/load.html#func-load-plugins-plugin-dir-str-ignore-warning-bool-true-set-plugin","199":"/dev/api/plugin/load.html#func-format-display-name-display-name-str-plugin-type-plugintype-str","200":"/dev/api/plugin/manager.html#模块-liteyuki-plugin-manager","201":"/dev/api/plugin/model.html#模块-liteyuki-plugin-model","202":"/dev/api/plugin/model.html#class-plugintype-enum","203":"/dev/api/plugin/model.html#attr-application-application","204":"/dev/api/plugin/model.html#attr-service-service","205":"/dev/api/plugin/model.html#attr-module-module","206":"/dev/api/plugin/model.html#attr-unclassified-unclassified","207":"/dev/api/plugin/model.html#attr-test-test","208":"/dev/api/plugin/model.html#class-pluginmetadata-basemodel","209":"/dev/api/plugin/model.html#attr-name-str-no-default","210":"/dev/api/plugin/model.html#attr-description-str","211":"/dev/api/plugin/model.html#attr-usage-str","212":"/dev/api/plugin/model.html#attr-type-plugintype-plugintype-unclassified","213":"/dev/api/plugin/model.html#attr-author-str","214":"/dev/api/plugin/model.html#attr-homepage-str","215":"/dev/api/plugin/model.html#attr-extra-dict-str-any","216":"/dev/api/plugin/model.html#class-plugin-basemodel","217":"/dev/api/plugin/model.html#func-hash-self","218":"/dev/api/plugin/model.html#attr-model-config-arbitrary-types-allowed-true","219":"/dev/api/plugin/model.html#attr-name-str-no-default-1","220":"/dev/api/plugin/model.html#attr-module-moduletype-no-default","221":"/dev/api/plugin/model.html#attr-module-name-str-no-default","222":"/dev/api/plugin/model.html#attr-metadata-optional-pluginmetadata-none","223":"/dev/api/plugins/#模块-liteyuki-plugins","224":"/dev/api/plugins/liteecho.html#模块-liteyuki-plugins-liteecho","225":"/dev/api/plugins/liteecho.html#async-func-liteecho-event-messageevent","226":"/dev/api/plugins/plugin_loader/#模块-liteyuki-plugins-plugin-loader","227":"/dev/api/plugins/plugin_loader/#func-default-plugins-loader","228":"/dev/api/session/event.html#模块-liteyuki-session-event","229":"/dev/api/session/event.html#class-messageevent","230":"/dev/api/session/event.html#func-init-self-bot-id-str-message-list-dict-str-any-str-message-type-str-raw-message-str-session-id-str-user-id-str-session-type-str-receive-channel-optional-channel-messageevent-none-data-optional-dict-str-any-none","231":"/dev/api/session/event.html#func-reply-self-message-str-dict-str-any","232":"/dev/api/session/#模块-liteyuki-session","233":"/dev/api/session/matcher.html#模块-liteyuki-session-matcher","234":"/dev/api/session/matcher.html#class-matcher","235":"/dev/api/session/matcher.html#func-init-self-rule-rule-priority-int-block-bool","236":"/dev/api/session/matcher.html#func-handle-self-callable-eventhandler-eventhandler","237":"/dev/api/session/matcher.html#async-func-run-self-event-messageevent-none","238":"/dev/api/session/on.html#模块-liteyuki-session-on","239":"/dev/api/session/on.html#func-add-matcher-matcher-matcher","240":"/dev/api/session/on.html#func-on-message-rule-rule-empty-rule-priority-int-0-block-bool-false-matcher","241":"/dev/api/session/on.html#func-on-keywords-keywords-list-str-rule-empty-rule-priority-int-0-block-bool-false-matcher","242":"/dev/api/session/rule.html#模块-liteyuki-session-rule","243":"/dev/api/session/rule.html#var-rulehandlerfunc","244":"/dev/api/session/rule.html#class-rule","245":"/dev/api/session/rule.html#func-init-self-handler-rulehandlerfunc","246":"/dev/api/session/rule.html#func-self-other-rule-rule","247":"/dev/api/session/rule.html#func-self-other-rule-rule-1","248":"/dev/api/session/rule.html#async-func-self-event-messageevent-bool","249":"/dev/api/session/rule.html#async-func-empty-rule-event-messageevent-bool","250":"/dev/api/session/rule.html#async-func-is-su-rule-event-messageevent-bool","251":"/dev/api/session/session.html#模块-liteyuki-session-session","252":"/dev/api/utils.html#模块-liteyuki-utils","253":"/dev/api/utils.html#func-is-coroutine-callable-call-callable-any-bool","254":"/dev/api/utils.html#func-run-coroutine-coro-coroutine","255":"/dev/api/utils.html#func-run-coroutine-in-thread-coro-coroutine","256":"/dev/api/utils.html#func-path-to-module-name-path-path-str","257":"/dev/api/utils.html#func-async-wrapper-func-callable-any-callable-coroutine","258":"/dev/best_practices.html#最佳实践","259":"/dev/best_practices.html#机器人应用","260":"/dev/best_practices.html#插件","261":"/dev/best_practices.html#其他","262":"/dev/comm.html#通道通信","263":"/dev/comm.html#简介","264":"/dev/comm.html#示例","265":"/dev/comm.html#共享内存通信","266":"/dev/comm.html#简介-1","267":"/dev/comm.html#示例-1","268":"/dev/guide.html#开发指南","269":"/dev/guide.html#如何开发","270":"/dev/guide.html#建议","271":"/dev/guide.html#项目结构","272":"/dev/guide.html#规范化","273":"/dev/guide.html#最后","274":"/dev/lyfunc.html#轻雪函数","275":"/dev/lyfunc.html#函数文件","276":"/dev/lyfunc.html#命令文档","277":"/dev/lyfunc.html#示例","278":"/dev/lyfunc.html#api","279":"/dev/lyfunc.html#结束关键字","280":"/dev/plugin.html#简介","281":"/dev/plugin.html#开始","282":"/dev/plugin.html#创建插件","283":"/dev/plugin.html#编写逻辑部分","284":"/dev/plugin.html#加载插件","285":"/dev/plugin.html#方法1","286":"/dev/plugin.html#方法2","287":"/dev/resource.html#简介","288":"/dev/resource.html#加载资源包","289":"/usage/agreement.html#用户协议","290":"/usage/basic.html#基础插件","291":"/usage/basic.html#轻雪命令liteyuki-command","292":"/usage/basic.html#命令别名","293":"/usage/basic.html#插件-包管理器-liteyuki-pacman","294":"/usage/basic.html#命令别名-1","295":"/usage/basic.html#用户管理liteyuki-user","296":"/usage/extra.html#功能插件命令","297":"/usage/extra.html#轻雪天气liteyuki-weather","298":"/usage/extra.html#命令别名","299":"/usage/extra.html#统计信息liteyuki-statistics","300":"/usage/extra.html#命令别名-1"},"fieldIds":{"title":0,"titles":1,"text":2},"fieldLength":{"0":[1,1,16],"1":[1,1,55],"2":[1,1,48],"3":[2,1,28],"4":[1,1,3],"5":[1,1,1],"6":[1,1,55],"7":[1,1,2],"8":[3,1,30],"9":[3,1,6],"10":[1,1,8],"11":[1,1,1],"12":[1,1,48],"13":[1,1,35],"14":[2,1,7],"15":[1,1,39],"16":[1,2,1],"17":[3,1,1],"18":[2,3,1],"19":[6,5,57],"20":[4,5,28],"21":[6,5,30],"22":[8,5,59],"23":[10,5,35],"24":[6,5,15],"25":[5,5,13],"26":[4,5,15],"27":[8,5,20],"28":[8,5,19],"29":[8,5,20],"30":[10,5,22],"31":[10,5,23],"32":[8,5,20],"33":[5,3,34],"34":[10,3,26],"35":[14,3,45],"36":[4,1,24],"37":[4,4,8],"38":[4,4,9],"39":[3,4,11],"40":[5,4,9],"41":[5,4,10],"42":[4,4,12],"43":[2,4,1],"44":[5,6,31],"45":[13,6,38],"46":[8,6,21],"47":[8,6,21],"48":[10,6,23],"49":[8,6,21],"50":[10,6,23],"51":[8,6,21],"52":[7,6,20],"53":[7,6,20],"54":[10,6,23],"55":[7,6,21],"56":[10,6,23],"57":[7,6,21],"58":[4,1,3],"59":[5,4,9],"60":[4,4,12],"61":[4,4,9],"62":[4,4,11],"63":[3,4,11],"64":[5,4,1],"65":[12,9,72],"66":[6,9,44],"67":[5,9,29],"68":[6,9,28],"69":[15,9,64],"70":[3,4,9],"71":[3,4,9],"72":[4,4,11],"73":[4,4,12],"74":[7,4,40],"75":[7,4,19],"76":[7,4,31],"77":[8,4,37],"78":[10,4,25],"79":[10,4,28],"80":[10,4,27],"81":[4,1,2],"82":[2,4,1],"83":[9,6,13],"84":[3,1,8],"85":[4,1,4],"86":[6,4,12],"87":[6,4,12],"88":[2,4,1],"89":[4,6,30],"90":[9,6,31],"91":[12,6,37],"92":[12,6,42],"93":[9,6,30],"94":[9,6,21],"95":[13,6,52],"96":[11,6,29],"97":[7,6,42],"98":[2,4,2],"99":[5,6,18],"100":[4,6,1],"101":[6,6,1],"102":[3,4,9],"103":[3,4,17],"104":[9,4,29],"105":[9,4,27],"106":[9,4,27],"107":[10,4,27],"108":[3,1,14],"109":[8,3,38],"110":[10,3,35],"111":[10,3,34],"112":[10,3,34],"113":[14,3,43],"114":[16,3,49],"115":[15,3,34],"116":[3,1,1],"117":[4,1,24],"118":[2,4,1],"119":[14,6,18],"120":[2,4,1],"121":[6,6,17],"122":[5,6,28],"123":[14,6,48],"124":[5,6,13],"125":[6,6,31],"126":[5,6,12],"127":[9,6,27],"128":[2,4,1],"129":[4,6,12],"130":[13,6,23],"131":[9,6,23],"132":[6,6,22],"133":[5,6,20],"134":[3,1,2],"135":[4,1,5],"136":[3,4,9],"137":[3,4,9],"138":[4,4,25],"139":[4,4,3],"140":[6,8,17],"141":[6,8,10],"142":[6,8,10],"143":[6,8,10],"144":[6,8,10],"145":[20,4,53],"146":[4,1,24],"147":[9,4,30],"148":[3,1,2],"149":[4,3,1],"150":[2,1,10],"151":[3,2,7],"152":[3,1,24],"153":[6,3,17],"154":[6,3,46],"155":[3,1,24],"156":[4,3,1],"157":[5,7,1],"158":[5,7,1],"159":[6,7,1],"160":[6,7,1],"161":[5,7,1],"162":[4,3,1],"163":[6,7,1],"164":[8,7,1],"165":[7,7,1],"166":[6,7,1],"167":[6,7,1],"168":[6,7,1],"169":[7,7,1],"170":[4,3,1],"171":[6,7,1],"172":[6,7,1],"173":[5,7,1],"174":[5,7,1],"175":[4,3,1],"176":[6,7,1],"177":[6,7,1],"178":[7,7,1],"179":[7,7,1],"180":[7,7,1],"181":[4,3,1],"182":[7,7,1],"183":[7,7,1],"184":[7,7,1],"185":[7,7,1],"186":[6,7,1],"187":[8,3,20],"188":[9,3,36],"189":[8,3,27],"190":[15,3,143],"191":[15,3,95],"192":[20,3,95],"193":[6,3,10],"194":[3,1,1],"195":[9,3,17],"196":[4,1,24],"197":[12,4,75],"198":[15,4,58],"199":[9,4,37],"200":[4,1,24],"201":[4,1,24],"202":[4,4,1],"203":[5,8,1],"204":[5,8,1],"205":[5,8,1],"206":[5,8,1],"207":[5,8,1],"208":[4,4,1],"209":[6,8,1],"210":[5,8,1],"211":[5,8,1],"212":[5,8,1],"213":[5,8,1],"214":[5,8,1],"215":[7,8,1],"216":[4,4,1],"217":[3,8,10],"218":[9,8,1],"219":[6,8,1],"220":[6,8,1],"221":[7,8,1],"222":[6,8,1],"223":[3,1,15],"224":[4,1,30],"225":[6,4,21],"226":[5,1,24],"227":[5,5,21],"228":[4,1,24],"229":[2,4,1],"230":[24,6,32],"231":[9,6,34],"232":[3,1,24],"233":[4,1,24],"234":[2,4,1],"235":[10,6,25],"236":[7,6,20],"237":[8,6,30],"238":[4,1,24],"239":[5,4,21],"240":[15,4,19],"241":[16,4,30],"242":[4,1,24],"243":[2,4,11],"244":[2,4,1],"245":[6,6,10],"246":[7,6,19],"247":[7,6,19],"248":[8,6,20],"249":[8,4,16],"250":[9,4,21],"251":[3,1,24],"252":[3,1,5],"253":[9,3,30],"254":[6,3,42],"255":[8,3,20],"256":[8,3,38],"257":[8,3,25],"258":[1,1,1],"259":[1,1,13],"260":[1,1,10],"261":[1,1,15],"262":[1,1,1],"263":[1,1,12],"264":[1,1,83],"265":[1,1,1],"266":[1,2,9],"267":[1,2,18],"268":[1,1,1],"269":[1,1,18],"270":[1,2,10],"271":[1,1,36],"272":[1,1,55],"273":[1,1,4],"274":[1,1,9],"275":[1,1,25],"276":[1,1,33],"277":[1,2,26],"278":[1,1,7],"279":[1,1,18],"280":[1,1,4],"281":[1,1,1],"282":[1,2,42],"283":[1,2,58],"284":[1,2,1],"285":[1,3,6],"286":[1,3,25],"287":[1,1,31],"288":[1,1,56],"289":[1,1,28],"290":[1,1,16],"291":[2,1,86],"292":[1,3,30],"293":[4,1,53],"294":[1,5,38],"295":[2,1,20],"296":[1,1,1],"297":[2,1,30],"298":[1,3,8],"299":[2,1,35],"300":[1,3,17]},"averageFieldLength":[5.541528239202657,4.086378737541526,19.192691029900327],"storedFields":{"0":{"title":"配置","titles":[]},"1":{"title":"基础配置项","titles":["配置"]},"2":{"title":"其他配置","titles":["配置"]},"3":{"title":"示例:与NoneBot对接的OneBot实现端配置","titles":["配置"]},"4":{"title":"其他","titles":["配置"]},"5":{"title":"答疑","titles":[]},"6":{"title":"常见问题","titles":["答疑"]},"7":{"title":"其他问题","titles":["答疑"]},"8":{"title":"推荐方案(QQ)","titles":["答疑"]},"9":{"title":"推荐方案(Minecraft)","titles":["答疑"]},"10":{"title":"鸣谢","titles":["答疑"]},"11":{"title":"安装","titles":[]},"12":{"title":"常规部署","titles":["安装"]},"13":{"title":"使用Docker构建","titles":["安装"]},"14":{"title":"使用TRSS Scripts部署","titles":["安装"]},"15":{"title":"装置要求","titles":["安装"]},"16":{"title":"其他问题请移步至","titles":["安装","装置要求"]},"17":{"title":"模块 liteyuki.bot","titles":[]},"18":{"title":"class LiteyukiBot","titles":["模块 liteyuki.bot"]},"19":{"title":"func __init__(self, **kwargs) -> None","titles":["模块 liteyuki.bot","class LiteyukiBot"]},"20":{"title":"func run(self)","titles":["模块 liteyuki.bot","class LiteyukiBot"]},"21":{"title":"async func keep_alive(self)","titles":["模块 liteyuki.bot","class LiteyukiBot"]},"22":{"title":"func restart(self, delay: int = 0)","titles":["模块 liteyuki.bot","class LiteyukiBot"]},"23":{"title":"func restart_process(self, name: Optional[str] = None)","titles":["模块 liteyuki.bot","class LiteyukiBot"]},"24":{"title":"func init(self, *args, **kwargs)","titles":["模块 liteyuki.bot","class LiteyukiBot"]},"25":{"title":"func init_logger(self)","titles":["模块 liteyuki.bot","class LiteyukiBot"]},"26":{"title":"func stop(self)","titles":["模块 liteyuki.bot","class LiteyukiBot"]},"27":{"title":"func on_before_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC","titles":["模块 liteyuki.bot","class LiteyukiBot"]},"28":{"title":"func on_after_start(self, func: LIFESPAN_FUNC)","titles":["模块 liteyuki.bot","class LiteyukiBot"]},"29":{"title":"func on_after_shutdown(self, func: LIFESPAN_FUNC)","titles":["模块 liteyuki.bot","class LiteyukiBot"]},"30":{"title":"func on_before_process_shutdown(self, func: PROCESS_LIFESPAN_FUNC)","titles":["模块 liteyuki.bot","class LiteyukiBot"]},"31":{"title":"func on_before_process_restart(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC","titles":["模块 liteyuki.bot","class LiteyukiBot"]},"32":{"title":"func on_after_restart(self, func: LIFESPAN_FUNC)","titles":["模块 liteyuki.bot","class LiteyukiBot"]},"33":{"title":"func get_bot() -> LiteyukiBot","titles":["模块 liteyuki.bot"]},"34":{"title":"func get_config(key: str, default: Any = None) -> Any","titles":["模块 liteyuki.bot"]},"35":{"title":"func get_config_with_compat(key: str, compat_keys: tuple[str], default: Any = None) -> Any","titles":["模块 liteyuki.bot"]},"36":{"title":"模块 liteyuki.bot.lifespan","titles":[]},"37":{"title":"var SYNC_LIFESPAN_FUNC","titles":["模块 liteyuki.bot.lifespan"]},"38":{"title":"var ASYNC_LIFESPAN_FUNC","titles":["模块 liteyuki.bot.lifespan"]},"39":{"title":"var LIFESPAN_FUNC","titles":["模块 liteyuki.bot.lifespan"]},"40":{"title":"var SYNC_PROCESS_LIFESPAN_FUNC","titles":["模块 liteyuki.bot.lifespan"]},"41":{"title":"var ASYNC_PROCESS_LIFESPAN_FUNC","titles":["模块 liteyuki.bot.lifespan"]},"42":{"title":"var PROCESS_LIFESPAN_FUNC","titles":["模块 liteyuki.bot.lifespan"]},"43":{"title":"class Lifespan","titles":["模块 liteyuki.bot.lifespan"]},"44":{"title":"func __init__(self) -> None","titles":["模块 liteyuki.bot.lifespan","class Lifespan"]},"45":{"title":"async func run_funcs(funcs: Sequence[LIFESPAN_FUNC | PROCESS_LIFESPAN_FUNC], *args, **kwargs) -> None","titles":["模块 liteyuki.bot.lifespan","class Lifespan"]},"46":{"title":"func on_before_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC","titles":["模块 liteyuki.bot.lifespan","class Lifespan"]},"47":{"title":"func on_after_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC","titles":["模块 liteyuki.bot.lifespan","class Lifespan"]},"48":{"title":"func on_before_process_shutdown(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC","titles":["模块 liteyuki.bot.lifespan","class Lifespan"]},"49":{"title":"func on_after_shutdown(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC","titles":["模块 liteyuki.bot.lifespan","class Lifespan"]},"50":{"title":"func on_before_process_restart(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC","titles":["模块 liteyuki.bot.lifespan","class Lifespan"]},"51":{"title":"func on_after_restart(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC","titles":["模块 liteyuki.bot.lifespan","class Lifespan"]},"52":{"title":"async func before_start(self) -> None","titles":["模块 liteyuki.bot.lifespan","class Lifespan"]},"53":{"title":"async func after_start(self) -> None","titles":["模块 liteyuki.bot.lifespan","class Lifespan"]},"54":{"title":"async func before_process_shutdown(self, *args, **kwargs) -> None","titles":["模块 liteyuki.bot.lifespan","class Lifespan"]},"55":{"title":"async func after_shutdown(self) -> None","titles":["模块 liteyuki.bot.lifespan","class Lifespan"]},"56":{"title":"async func before_process_restart(self, *args, **kwargs) -> None","titles":["模块 liteyuki.bot.lifespan","class Lifespan"]},"57":{"title":"async func after_restart(self) -> None","titles":["模块 liteyuki.bot.lifespan","class Lifespan"]},"58":{"title":"模块 liteyuki.comm.channel","titles":[]},"59":{"title":"var SYNC_ON_RECEIVE_FUNC","titles":["模块 liteyuki.comm.channel"]},"60":{"title":"var ON_RECEIVE_FUNC","titles":["模块 liteyuki.comm.channel"]},"61":{"title":"var SYNC_FILTER_FUNC","titles":["模块 liteyuki.comm.channel"]},"62":{"title":"var ASYNC_FILTER_FUNC","titles":["模块 liteyuki.comm.channel"]},"63":{"title":"var FILTER_FUNC","titles":["模块 liteyuki.comm.channel"]},"64":{"title":"class Channel(Generic[T])","titles":["模块 liteyuki.comm.channel"]},"65":{"title":"func __init__(self, name: str, type_check: Optional[bool] = None)","titles":["模块 liteyuki.comm.channel","class Channel(Generic[T])"]},"66":{"title":"func send(self, data: T)","titles":["模块 liteyuki.comm.channel","class Channel(Generic[T])"]},"67":{"title":"func receive(self) -> T","titles":["模块 liteyuki.comm.channel","class Channel(Generic[T])"]},"68":{"title":"async func async_receive(self) -> T","titles":["模块 liteyuki.comm.channel","class Channel(Generic[T])"]},"69":{"title":"func on_receive(self, filter_func: Optional[FILTER_FUNC] = None) -> Callable[[Callable[[T], Any]], Callable[[T], Any]]","titles":["模块 liteyuki.comm.channel","class Channel(Generic[T])"]},"70":{"title":"var active_channel","titles":["模块 liteyuki.comm.channel"]},"71":{"title":"var passive_channel","titles":["模块 liteyuki.comm.channel"]},"72":{"title":"var channel_deliver_active_channel","titles":["模块 liteyuki.comm.channel"]},"73":{"title":"var channel_deliver_passive_channel","titles":["模块 liteyuki.comm.channel"]},"74":{"title":"func set_channel(name: str, channel: Channel)","titles":["模块 liteyuki.comm.channel"]},"75":{"title":"func set_channels(channels: dict[str, Channel])","titles":["模块 liteyuki.comm.channel"]},"76":{"title":"func get_channel(name: str) -> Channel","titles":["模块 liteyuki.comm.channel"]},"77":{"title":"func get_channels() -> dict[str, Channel]","titles":["模块 liteyuki.comm.channel"]},"78":{"title":"func on_set_channel(data: tuple[str, dict[str, Any]])","titles":["模块 liteyuki.comm.channel"]},"79":{"title":"func on_get_channel(data: tuple[str, dict[str, Any]])","titles":["模块 liteyuki.comm.channel"]},"80":{"title":"func on_get_channels(data: tuple[str, dict[str, Any]])","titles":["模块 liteyuki.comm.channel"]},"81":{"title":"模块 liteyuki.comm.event","titles":[]},"82":{"title":"class Event","titles":["模块 liteyuki.comm.event"]},"83":{"title":"func __init__(self, name: str, data: dict[str, Any])","titles":["模块 liteyuki.comm.event","class Event"]},"84":{"title":"模块 liteyuki.comm","titles":[]},"85":{"title":"模块 liteyuki.comm.storage","titles":[]},"86":{"title":"var _on_main_subscriber_receive_funcs","titles":["模块 liteyuki.comm.storage"]},"87":{"title":"var _on_sub_subscriber_receive_funcs","titles":["模块 liteyuki.comm.storage"]},"88":{"title":"class KeyValueStore","titles":["模块 liteyuki.comm.storage"]},"89":{"title":"func __init__(self)","titles":["模块 liteyuki.comm.storage","class KeyValueStore"]},"90":{"title":"func set(self, key: str, value: Any) -> None","titles":["模块 liteyuki.comm.storage","class KeyValueStore"]},"91":{"title":"func get(self, key: str, default: Optional[Any] = None) -> Optional[Any]","titles":["模块 liteyuki.comm.storage","class KeyValueStore"]},"92":{"title":"func delete(self, key: str, ignore_key_error: bool = True) -> None","titles":["模块 liteyuki.comm.storage","class KeyValueStore"]},"93":{"title":"func get_all(self) -> dict[str, Any]","titles":["模块 liteyuki.comm.storage","class KeyValueStore"]},"94":{"title":"func publish(self, channel_: str, data: Any) -> None","titles":["模块 liteyuki.comm.storage","class KeyValueStore"]},"95":{"title":"func on_subscriber_receive(self, channel_: str) -> Callable[[ON_RECEIVE_FUNC], ON_RECEIVE_FUNC]","titles":["模块 liteyuki.comm.storage","class KeyValueStore"]},"96":{"title":"async func run_subscriber_receive_funcs(channel_: str, data: Any)","titles":["模块 liteyuki.comm.storage","class KeyValueStore"]},"97":{"title":"async func start_receive_loop(self)","titles":["模块 liteyuki.comm.storage","class KeyValueStore"]},"98":{"title":"class GlobalKeyValueStore","titles":["模块 liteyuki.comm.storage"]},"99":{"title":"func get_instance(cls)","titles":["模块 liteyuki.comm.storage","class GlobalKeyValueStore"]},"100":{"title":"attr _instance = None","titles":["模块 liteyuki.comm.storage","class GlobalKeyValueStore"]},"101":{"title":"attr _lock = threading.Lock()","titles":["模块 liteyuki.comm.storage","class GlobalKeyValueStore"]},"102":{"title":"var shared_memory","titles":["模块 liteyuki.comm.storage"]},"103":{"title":"var _ref_count","titles":["模块 liteyuki.comm.storage"]},"104":{"title":"func on_get(data: tuple[str, dict[str, Any]])","titles":["模块 liteyuki.comm.storage"]},"105":{"title":"func on_set(data: tuple[str, dict[str, Any]])","titles":["模块 liteyuki.comm.storage"]},"106":{"title":"func on_delete(data: tuple[str, dict[str, Any]])","titles":["模块 liteyuki.comm.storage"]},"107":{"title":"func on_get_all(data: tuple[str, dict[str, Any]])","titles":["模块 liteyuki.comm.storage"]},"108":{"title":"模块 liteyuki.config","titles":[]},"109":{"title":"func flat_config(config: dict[str, Any]) -> dict[str, Any]","titles":["模块 liteyuki.config"]},"110":{"title":"func load_from_yaml(file_: str) -> dict[str, Any]","titles":["模块 liteyuki.config"]},"111":{"title":"func load_from_json(file_: str) -> dict[str, Any]","titles":["模块 liteyuki.config"]},"112":{"title":"func load_from_toml(file_: str) -> dict[str, Any]","titles":["模块 liteyuki.config"]},"113":{"title":"func load_from_files(*files: str, *, no_warning: bool = False) -> dict[str, Any]","titles":["模块 liteyuki.config"]},"114":{"title":"func load_configs_from_dirs(*directories: str, *, no_waring: bool = False) -> dict[str, Any]","titles":["模块 liteyuki.config"]},"115":{"title":"func load_config_in_default(no_waring: bool = False) -> dict[str, Any]","titles":["模块 liteyuki.config"]},"116":{"title":"模块 liteyuki.core","titles":[]},"117":{"title":"模块 liteyuki.core.manager","titles":[]},"118":{"title":"class ChannelDeliver","titles":["模块 liteyuki.core.manager"]},"119":{"title":"func __init__(self, active: Channel[Any], passive: Channel[Any], channel_deliver_active: Channel[Channel[Any]], channel_deliver_passive: Channel[tuple[str, dict]], publish: Channel[tuple[str, Any]])","titles":["模块 liteyuki.core.manager","class ChannelDeliver"]},"120":{"title":"class ProcessManager","titles":["模块 liteyuki.core.manager"]},"121":{"title":"func __init__(self, lifespan: Lifespan)","titles":["模块 liteyuki.core.manager","class ProcessManager"]},"122":{"title":"func start_all(self)","titles":["模块 liteyuki.core.manager","class ProcessManager"]},"123":{"title":"func add_target(self, name: str, target: TARGET_FUNC, args: tuple = (), kwargs = None)","titles":["模块 liteyuki.core.manager","class ProcessManager"]},"124":{"title":"func join_all(self)","titles":["模块 liteyuki.core.manager","class ProcessManager"]},"125":{"title":"func terminate(self, name: str)","titles":["模块 liteyuki.core.manager","class ProcessManager"]},"126":{"title":"func terminate_all(self)","titles":["模块 liteyuki.core.manager","class ProcessManager"]},"127":{"title":"func is_process_alive(self, name: str) -> bool","titles":["模块 liteyuki.core.manager","class ProcessManager"]},"128":{"title":"class _SubProcessManager","titles":["模块 liteyuki.core.manager"]},"129":{"title":"func __init__(self)","titles":["模块 liteyuki.core.manager","class _SubProcessManager"]},"130":{"title":"func new_process(self, name: str, *args, **kwargs) -> Callable[[ProcessFuncType], None]","titles":["模块 liteyuki.core.manager","class _SubProcessManager"]},"131":{"title":"func add(self, name: str, func: ProcessFuncType, *args, **kwargs)","titles":["模块 liteyuki.core.manager","class _SubProcessManager"]},"132":{"title":"func start(self, name: str)","titles":["模块 liteyuki.core.manager","class _SubProcessManager"]},"133":{"title":"func start_all(self)","titles":["模块 liteyuki.core.manager","class _SubProcessManager"]},"134":{"title":"模块 liteyuki.dev","titles":[]},"135":{"title":"模块 liteyuki.dev.observer","titles":[]},"136":{"title":"var CALLBACK_FUNC","titles":["模块 liteyuki.dev.observer"]},"137":{"title":"var FILTER_FUNC","titles":["模块 liteyuki.dev.observer"]},"138":{"title":"func debounce(wait)","titles":["模块 liteyuki.dev.observer"]},"139":{"title":"class CodeModifiedHandler(FileSystemEventHandler)","titles":["模块 liteyuki.dev.observer"]},"140":{"title":"func on_modified(self, event)","titles":["模块 liteyuki.dev.observer","class CodeModifiedHandler(FileSystemEventHandler)"]},"141":{"title":"func on_created(self, event)","titles":["模块 liteyuki.dev.observer","class CodeModifiedHandler(FileSystemEventHandler)"]},"142":{"title":"func on_deleted(self, event)","titles":["模块 liteyuki.dev.observer","class CodeModifiedHandler(FileSystemEventHandler)"]},"143":{"title":"func on_moved(self, event)","titles":["模块 liteyuki.dev.observer","class CodeModifiedHandler(FileSystemEventHandler)"]},"144":{"title":"func on_any_event(self, event)","titles":["模块 liteyuki.dev.observer","class CodeModifiedHandler(FileSystemEventHandler)"]},"145":{"title":"func on_file_system_event(directories: tuple[str], recursive: bool = True, event_filter: FILTER_FUNC = None) -> Callable[[CALLBACK_FUNC], CALLBACK_FUNC]","titles":["模块 liteyuki.dev.observer"]},"146":{"title":"模块 liteyuki.dev.plugin","titles":[]},"147":{"title":"func run_plugins(*module_path: str | Path)","titles":["模块 liteyuki.dev.plugin"]},"148":{"title":"模块 liteyuki.exception","titles":[]},"149":{"title":"class LiteyukiException(BaseException)","titles":["模块 liteyuki.exception"]},"150":{"title":"模块 liteyuki","titles":[]},"151":{"title":"var __version__","titles":["模块 liteyuki"]},"152":{"title":"模块 liteyuki.log","titles":[]},"153":{"title":"func get_format(level: str) -> str","titles":["模块 liteyuki.log"]},"154":{"title":"func init_log(config: dict)","titles":["模块 liteyuki.log"]},"155":{"title":"模块 liteyuki.mkdoc","titles":[]},"156":{"title":"class DefType(Enum)","titles":["模块 liteyuki.mkdoc"]},"157":{"title":"attr FUNCTION = 'function'","titles":["模块 liteyuki.mkdoc","class DefType(Enum)"]},"158":{"title":"attr METHOD = 'method'","titles":["模块 liteyuki.mkdoc","class DefType(Enum)"]},"159":{"title":"attr STATIC_METHOD = 'staticmethod'","titles":["模块 liteyuki.mkdoc","class DefType(Enum)"]},"160":{"title":"attr CLASS_METHOD = 'classmethod'","titles":["模块 liteyuki.mkdoc","class DefType(Enum)"]},"161":{"title":"attr PROPERTY = 'property'","titles":["模块 liteyuki.mkdoc","class DefType(Enum)"]},"162":{"title":"class FunctionInfo(BaseModel)","titles":["模块 liteyuki.mkdoc"]},"163":{"title":"attr name: str = NO_DEFAULT","titles":["模块 liteyuki.mkdoc","class FunctionInfo(BaseModel)"]},"164":{"title":"attr args: list[tuple[str, str]] = NO_DEFAULT","titles":["模块 liteyuki.mkdoc","class FunctionInfo(BaseModel)"]},"165":{"title":"attr return_type: str = NO_DEFAULT","titles":["模块 liteyuki.mkdoc","class FunctionInfo(BaseModel)"]},"166":{"title":"attr docstring: str = NO_DEFAULT","titles":["模块 liteyuki.mkdoc","class FunctionInfo(BaseModel)"]},"167":{"title":"attr source_code: str = ''","titles":["模块 liteyuki.mkdoc","class FunctionInfo(BaseModel)"]},"168":{"title":"attr type: DefType = NO_DEFAULT","titles":["模块 liteyuki.mkdoc","class FunctionInfo(BaseModel)"]},"169":{"title":"attr is_async: bool = NO_DEFAULT","titles":["模块 liteyuki.mkdoc","class FunctionInfo(BaseModel)"]},"170":{"title":"class AttributeInfo(BaseModel)","titles":["模块 liteyuki.mkdoc"]},"171":{"title":"attr name: str = NO_DEFAULT","titles":["模块 liteyuki.mkdoc","class AttributeInfo(BaseModel)"]},"172":{"title":"attr type: str = NO_DEFAULT","titles":["模块 liteyuki.mkdoc","class AttributeInfo(BaseModel)"]},"173":{"title":"attr value: Any = None","titles":["模块 liteyuki.mkdoc","class AttributeInfo(BaseModel)"]},"174":{"title":"attr docstring: str = ''","titles":["模块 liteyuki.mkdoc","class AttributeInfo(BaseModel)"]},"175":{"title":"class ClassInfo(BaseModel)","titles":["模块 liteyuki.mkdoc"]},"176":{"title":"attr name: str = NO_DEFAULT","titles":["模块 liteyuki.mkdoc","class ClassInfo(BaseModel)"]},"177":{"title":"attr docstring: str = NO_DEFAULT","titles":["模块 liteyuki.mkdoc","class ClassInfo(BaseModel)"]},"178":{"title":"attr methods: list[FunctionInfo] = NO_DEFAULT","titles":["模块 liteyuki.mkdoc","class ClassInfo(BaseModel)"]},"179":{"title":"attr attributes: list[AttributeInfo] = NO_DEFAULT","titles":["模块 liteyuki.mkdoc","class ClassInfo(BaseModel)"]},"180":{"title":"attr inherit: list[str] = NO_DEFAULT","titles":["模块 liteyuki.mkdoc","class ClassInfo(BaseModel)"]},"181":{"title":"class ModuleInfo(BaseModel)","titles":["模块 liteyuki.mkdoc"]},"182":{"title":"attr module_path: str = NO_DEFAULT","titles":["模块 liteyuki.mkdoc","class ModuleInfo(BaseModel)"]},"183":{"title":"attr functions: list[FunctionInfo] = NO_DEFAULT","titles":["模块 liteyuki.mkdoc","class ModuleInfo(BaseModel)"]},"184":{"title":"attr classes: list[ClassInfo] = NO_DEFAULT","titles":["模块 liteyuki.mkdoc","class ModuleInfo(BaseModel)"]},"185":{"title":"attr attributes: list[AttributeInfo] = NO_DEFAULT","titles":["模块 liteyuki.mkdoc","class ModuleInfo(BaseModel)"]},"186":{"title":"attr docstring: str = NO_DEFAULT","titles":["模块 liteyuki.mkdoc","class ModuleInfo(BaseModel)"]},"187":{"title":"func get_relative_path(base_path: str, target_path: str) -> str","titles":["模块 liteyuki.mkdoc"]},"188":{"title":"func write_to_files(file_data: dict[str, str])","titles":["模块 liteyuki.mkdoc"]},"189":{"title":"func get_file_list(module_folder: str)","titles":["模块 liteyuki.mkdoc"]},"190":{"title":"func get_module_info_normal(file_path: str, ignore_private: bool = True) -> ModuleInfo","titles":["模块 liteyuki.mkdoc"]},"191":{"title":"func generate_markdown(module_info: ModuleInfo, front_matter = None, lang: str = 'zh-CN') -> str","titles":["模块 liteyuki.mkdoc"]},"192":{"title":"func generate_docs(module_folder: str, output_dir: str, with_top: bool = False, lang: str = 'zh-CN', ignored_paths = None)","titles":["模块 liteyuki.mkdoc"]},"193":{"title":"var no_module_name_pyfile_path","titles":["模块 liteyuki.mkdoc"]},"194":{"title":"模块 liteyuki.plugin","titles":[]},"195":{"title":"func get_loaded_plugins() -> dict[str, Plugin]","titles":["模块 liteyuki.plugin"]},"196":{"title":"模块 liteyuki.plugin.load","titles":[]},"197":{"title":"func load_plugin(module_path: str | Path) -> Optional[Plugin]","titles":["模块 liteyuki.plugin.load"]},"198":{"title":"func load_plugins(*plugin_dir: str, *, ignore_warning: bool = True) -> set[Plugin]","titles":["模块 liteyuki.plugin.load"]},"199":{"title":"func format_display_name(display_name: str, plugin_type: PluginType) -> str","titles":["模块 liteyuki.plugin.load"]},"200":{"title":"模块 liteyuki.plugin.manager","titles":[]},"201":{"title":"模块 liteyuki.plugin.model","titles":[]},"202":{"title":"class PluginType(Enum)","titles":["模块 liteyuki.plugin.model"]},"203":{"title":"attr APPLICATION = 'application'","titles":["模块 liteyuki.plugin.model","class PluginType(Enum)"]},"204":{"title":"attr SERVICE = 'service'","titles":["模块 liteyuki.plugin.model","class PluginType(Enum)"]},"205":{"title":"attr MODULE = 'module'","titles":["模块 liteyuki.plugin.model","class PluginType(Enum)"]},"206":{"title":"attr UNCLASSIFIED = 'unclassified'","titles":["模块 liteyuki.plugin.model","class PluginType(Enum)"]},"207":{"title":"attr TEST = 'test'","titles":["模块 liteyuki.plugin.model","class PluginType(Enum)"]},"208":{"title":"class PluginMetadata(BaseModel)","titles":["模块 liteyuki.plugin.model"]},"209":{"title":"attr name: str = NO_DEFAULT","titles":["模块 liteyuki.plugin.model","class PluginMetadata(BaseModel)"]},"210":{"title":"attr description: str = ''","titles":["模块 liteyuki.plugin.model","class PluginMetadata(BaseModel)"]},"211":{"title":"attr usage: str = ''","titles":["模块 liteyuki.plugin.model","class PluginMetadata(BaseModel)"]},"212":{"title":"attr type: PluginType = PluginType.UNCLASSIFIED","titles":["模块 liteyuki.plugin.model","class PluginMetadata(BaseModel)"]},"213":{"title":"attr author: str = ''","titles":["模块 liteyuki.plugin.model","class PluginMetadata(BaseModel)"]},"214":{"title":"attr homepage: str = ''","titles":["模块 liteyuki.plugin.model","class PluginMetadata(BaseModel)"]},"215":{"title":"attr extra: dict[str, Any] = {}","titles":["模块 liteyuki.plugin.model","class PluginMetadata(BaseModel)"]},"216":{"title":"class Plugin(BaseModel)","titles":["模块 liteyuki.plugin.model"]},"217":{"title":"func hash self","titles":["模块 liteyuki.plugin.model","class Plugin(BaseModel)"]},"218":{"title":"attr model_config = {'arbitrary_types_allowed': True}","titles":["模块 liteyuki.plugin.model","class Plugin(BaseModel)"]},"219":{"title":"attr name: str = NO_DEFAULT","titles":["模块 liteyuki.plugin.model","class Plugin(BaseModel)"]},"220":{"title":"attr module: ModuleType = NO_DEFAULT","titles":["模块 liteyuki.plugin.model","class Plugin(BaseModel)"]},"221":{"title":"attr module_name: str = NO_DEFAULT","titles":["模块 liteyuki.plugin.model","class Plugin(BaseModel)"]},"222":{"title":"attr metadata: Optional[PluginMetadata] = None","titles":["模块 liteyuki.plugin.model","class Plugin(BaseModel)"]},"223":{"title":"模块 liteyuki.plugins","titles":[]},"224":{"title":"模块 liteyuki.plugins.liteecho","titles":[]},"225":{"title":"async func liteecho(event: MessageEvent)","titles":["模块 liteyuki.plugins.liteecho"]},"226":{"title":"模块 liteyuki.plugins.plugin_loader","titles":[]},"227":{"title":"func default_plugins_loader()","titles":["模块 liteyuki.plugins.plugin_loader"]},"228":{"title":"模块 liteyuki.session.event","titles":[]},"229":{"title":"class MessageEvent","titles":["模块 liteyuki.session.event"]},"230":{"title":"func __init__(self, bot_id: str, message: list[dict[str, Any]] | str, message_type: str, raw_message: str, session_id: str, user_id: str, session_type: str, receive_channel: Optional[Channel[MessageEvent]] = None, data: Optional[dict[str, Any]] = None)","titles":["模块 liteyuki.session.event","class MessageEvent"]},"231":{"title":"func reply(self, message: str | dict[str, Any])","titles":["模块 liteyuki.session.event","class MessageEvent"]},"232":{"title":"模块 liteyuki.session","titles":[]},"233":{"title":"模块 liteyuki.session.matcher","titles":[]},"234":{"title":"class Matcher","titles":["模块 liteyuki.session.matcher"]},"235":{"title":"func __init__(self, rule: Rule, priority: int, block: bool)","titles":["模块 liteyuki.session.matcher","class Matcher"]},"236":{"title":"func handle(self) -> Callable[[EventHandler], EventHandler]","titles":["模块 liteyuki.session.matcher","class Matcher"]},"237":{"title":"async func run(self, event: MessageEvent) -> None","titles":["模块 liteyuki.session.matcher","class Matcher"]},"238":{"title":"模块 liteyuki.session.on","titles":[]},"239":{"title":"func add_matcher(matcher: Matcher)","titles":["模块 liteyuki.session.on"]},"240":{"title":"func on_message(rule: Rule = empty_rule, priority: int = 0, block: bool = False) -> Matcher","titles":["模块 liteyuki.session.on"]},"241":{"title":"func on_keywords(keywords: list[str], rule = empty_rule, priority: int = 0, block: bool = False) -> Matcher","titles":["模块 liteyuki.session.on"]},"242":{"title":"模块 liteyuki.session.rule","titles":[]},"243":{"title":"var RuleHandlerFunc","titles":["模块 liteyuki.session.rule"]},"244":{"title":"class Rule","titles":["模块 liteyuki.session.rule"]},"245":{"title":"func __init__(self, handler: RuleHandlerFunc)","titles":["模块 liteyuki.session.rule","class Rule"]},"246":{"title":"func self | other: Rule => Rule","titles":["模块 liteyuki.session.rule","class Rule"]},"247":{"title":"func self & other: Rule => Rule","titles":["模块 liteyuki.session.rule","class Rule"]},"248":{"title":"async func self () event: MessageEvent => bool","titles":["模块 liteyuki.session.rule","class Rule"]},"249":{"title":"async func empty_rule(event: MessageEvent) -> bool","titles":["模块 liteyuki.session.rule"]},"250":{"title":"async func is_su_rule(event: MessageEvent) -> bool","titles":["模块 liteyuki.session.rule"]},"251":{"title":"模块 liteyuki.session.session","titles":[]},"252":{"title":"模块 liteyuki.utils","titles":[]},"253":{"title":"func is_coroutine_callable(call: Callable[..., Any]) -> bool","titles":["模块 liteyuki.utils"]},"254":{"title":"func run_coroutine(*coro: Coroutine)","titles":["模块 liteyuki.utils"]},"255":{"title":"func run_coroutine_in_thread(*coro: Coroutine)","titles":["模块 liteyuki.utils"]},"256":{"title":"func path_to_module_name(path: Path) -> str","titles":["模块 liteyuki.utils"]},"257":{"title":"func async_wrapper(func: Callable[..., Any]) -> Callable[..., Coroutine]","titles":["模块 liteyuki.utils"]},"258":{"title":"最佳实践","titles":[]},"259":{"title":"机器人应用","titles":["最佳实践"]},"260":{"title":"插件","titles":["最佳实践"]},"261":{"title":"其他","titles":["最佳实践"]},"262":{"title":"通道通信","titles":[]},"263":{"title":"简介","titles":["通道通信"]},"264":{"title":"示例","titles":["通道通信"]},"265":{"title":"共享内存通信","titles":["通道通信"]},"266":{"title":"简介","titles":["通道通信","共享内存通信"]},"267":{"title":"示例","titles":["通道通信","共享内存通信"]},"268":{"title":"开发指南","titles":[]},"269":{"title":"如何开发","titles":["开发指南"]},"270":{"title":"建议","titles":["开发指南","如何开发"]},"271":{"title":"项目结构","titles":["开发指南"]},"272":{"title":"规范化","titles":["开发指南"]},"273":{"title":"最后","titles":["开发指南"]},"274":{"title":"轻雪函数","titles":[]},"275":{"title":"函数文件","titles":["轻雪函数"]},"276":{"title":"命令文档","titles":["轻雪函数"]},"277":{"title":"示例","titles":["轻雪函数","命令文档"]},"278":{"title":"API","titles":["轻雪函数"]},"279":{"title":"结束关键字","titles":["轻雪函数"]},"280":{"title":"简介","titles":[]},"281":{"title":"开始","titles":["简介"]},"282":{"title":"创建插件","titles":["简介","开始"]},"283":{"title":"编写逻辑部分","titles":["简介","开始"]},"284":{"title":"加载插件","titles":["简介","开始"]},"285":{"title":"方法1","titles":["简介","开始","加载插件"]},"286":{"title":"方法2","titles":["简介","开始","加载插件"]},"287":{"title":"简介","titles":[]},"288":{"title":"加载资源包","titles":["简介"]},"289":{"title":"用户协议","titles":[]},"290":{"title":"基础插件","titles":[]},"291":{"title":"轻雪命令liteyuki_command","titles":["基础插件"]},"292":{"title":"命令别名","titles":["基础插件","轻雪命令liteyuki_command"]},"293":{"title":"插件/包管理器 liteyuki_pacman","titles":["基础插件"]},"294":{"title":"命令别名","titles":["基础插件","插件/包管理器 liteyuki_pacman"]},"295":{"title":"用户管理liteyuki_user","titles":["基础插件"]},"296":{"title":"功能插件命令","titles":[]},"297":{"title":"轻雪天气liteyuki_weather","titles":["功能插件命令"]},"298":{"title":"命令别名","titles":["功能插件命令","轻雪天气liteyuki_weather"]},"299":{"title":"统计信息liteyuki_statistics","titles":["功能插件命令"]},"300":{"title":"命令别名","titles":["功能插件命令","统计信息liteyuki_statistics"]}},"dirtCount":0,"index":[["当前bot",{"2":{"299":1}}],["当前群聊",{"2":{"299":1}}],["当前会话启用",{"2":{"293":1}}],["秒",{"2":{"299":2}}],["小时",{"2":{"299":2}}],["天",{"2":{"299":2}}],["天气",{"2":{"297":1,"298":1}}],["格式",{"2":{"299":1}}],["格式为onebot",{"2":{"291":1}}],["统计时间范围为duration",{"2":{"299":1}}],["统计周期为period",{"2":{"299":1}}],["统计信息",{"2":{"299":1}}],["统计信息liteyuki",{"0":{"299":1},"1":{"300":1}}],["功能",{"2":{"299":1}}],["功能插件命令",{"0":{"296":1},"1":{"297":1,"298":1,"299":1,"300":1}}],["个人全局生效",{"2":{"297":1}}],["个人信息",{"2":{"295":1}}],["绑定城市",{"2":{"298":1}}],["绑定查询城市",{"2":{"297":1}}],["绑定端口",{"2":{"1":1}}],["海淀",{"2":{"297":1}}],["北京",{"2":{"297":1}}],["受限于nonebot2钩子函数的依赖注入参数",{"2":{"294":1}}],["帮助",{"2":{"294":1}}],["列表",{"2":{"294":1}}],["列出所有资源包",{"2":{"293":1}}],["列出所有插件",{"2":{"293":1}}],["更改",{"2":{"294":1}}],["更新",{"2":{"294":1}}],["更新插件商店索引",{"2":{"293":1}}],["更新轻雪",{"2":{"291":1,"292":1}}],["更新轻雪失败",{"2":{"6":1}}],["全局停用",{"2":{"294":1}}],["全局启用",{"2":{"293":1,"294":1}}],["搜索",{"2":{"294":1}}],["卸载",{"2":{"294":2}}],["卸载资源包",{"2":{"293":1}}],["卸载插件",{"2":{"293":1}}],["私聊所有人可用",{"2":{"293":2}}],["包管理器",{"0":{"293":1},"1":{"294":1}}],["包括子task",{"2":{"276":1}}],["包括chromium",{"2":{"15":1}}],["切换图片模式",{"2":{"292":1}}],["切换到bot目录下",{"2":{"12":1}}],["状态",{"2":{"292":1}}],["别名",{"2":{"292":1,"294":1,"295":1,"298":1,"300":1}}],["别用你那b",{"2":{"15":1}}],["所有人",{"2":{"291":1,"293":1,"295":3}}],["所以在编写lyfunction时也要注意异步的调用",{"2":{"279":1}}],["所以此项目既是liteyukibot应用仓库",{"2":{"271":1}}],["群聊",{"2":{"292":1}}],["群聊仅群主",{"2":{"291":1,"293":2}}],["群号",{"2":{"291":1}}],["管理员",{"2":{"291":1,"293":2}}],["管理脚本",{"2":{"261":1}}],["停用插件",{"2":{"293":2}}],["停用",{"2":{"292":1,"294":1}}],["停用机器人",{"2":{"291":1}}],["停止后钩子",{"2":{"55":1}}],["停止前钩子",{"2":{"54":1}}],["停止",{"2":{"44":1}}],["停止轻雪",{"2":{"23":1,"26":1}}],["查询目标地实时天气",{"2":{"297":1}}],["查询实时天气",{"2":{"297":1}}],["查询",{"2":{"292":1,"295":1}}],["查询配置项",{"2":{"291":1}}],["查看用户信息菜单",{"2":{"295":1}}],["查看插件帮助",{"2":{"293":1}}],["查看轻雪文档",{"2":{"291":1}}],["查看统计信息和状态",{"2":{"291":1}}],["查看当前bot",{"2":{"291":1}}],["版本",{"2":{"291":1}}],["❌",{"2":{"291":11}}],["超级用户可用",{"2":{"291":1,"293":2}}],["超级用户",{"2":{"291":10,"293":10}}],["超级用户列表",{"2":{"1":1}}],["重载",{"2":{"294":1}}],["重载所有资源包",{"2":{"293":1}}],["重载资源",{"2":{"292":1}}],["重载轻雪",{"2":{"291":1}}],["重启轻雪",{"2":{"292":1}}],["重启轻雪即可加载插件",{"2":{"285":1}}],["重启轻雪本体",{"2":{"22":1}}],["重启后钩子",{"2":{"57":1}}],["重启前钩子",{"2":{"56":1}}],["重启",{"2":{"44":1}}],["举例",{"2":{"291":1}}],["权限",{"2":{"291":1,"293":2,"295":1}}],["~代替",{"2":{"290":1}}],["~可以使用插件",{"2":{"290":1}}],["命令",{"2":{"291":1,"292":1,"293":2,"294":1,"295":2,"297":1,"298":1,"299":1,"300":1}}],["命令别名",{"0":{"292":1,"294":1,"298":1,"300":1},"2":{"290":1,"295":1}}],["命令文档",{"0":{"276":1},"1":{"277":1}}],["系统信息及python信息",{"2":{"289":1}}],["分钟",{"2":{"299":2}}],["分发",{"2":{"289":1}}],["分工明确",{"2":{"108":1}}],["修改优先级",{"2":{"293":1}}],["修改",{"2":{"289":1}}],["修订文档时",{"2":{"272":1}}],["第三方资源包开发者需要注意版本兼容性",{"2":{"288":1}}],["└─",{"2":{"288":1}}],["└───",{"2":{"288":1}}],["└─resource",{"2":{"288":2}}],["├─templates",{"2":{"288":1}}],["├─metadata",{"2":{"288":2}}],["正常的路径应该是这样的",{"2":{"288":1}}],["只需要将其解压到根目录resources目录下即可",{"2":{"288":1}}],["只负责处理和回应消息",{"2":{"6":1}}],["zip格式压缩的",{"2":{"288":1}}],["zh",{"0":{"191":1,"192":1},"2":{"2":1,"191":2,"192":1,"271":1}}],["错位等无法预料的事情发生",{"2":{"287":1}}],["异常",{"2":{"287":1}}],["异步任务结束关键字",{"2":{"279":1}}],["异步等待",{"2":{"276":1}}],["异步包装器",{"2":{"257":1}}],["异步接收数据",{"2":{"68":1}}],["异步过滤函数",{"2":{"62":1}}],["异步进程生命周期函数",{"2":{"41":1}}],["异步生命周期函数",{"2":{"38":1}}],["欢迎各位投稿资源包到轻雪资源商店",{"2":{"287":1}}],["部分异常信息",{"2":{"289":1}}],["部分内容制作需要一点点前端基础",{"2":{"287":1}}],["部分来源于",{"2":{"252":1}}],["讲起打包成一个新的资源包",{"2":{"287":1}}],["仅需按照原有路径进行文件替换即可",{"2":{"287":1}}],["资源",{"2":{"287":1}}],["资源包管理",{"2":{"293":1}}],["资源包的结构会随着轻雪的更新而有变动",{"2":{"288":1}}],["资源包的制作很简单",{"2":{"287":1}}],["资源包加载遵循一个优先级",{"2":{"288":1}}],["资源包描述",{"2":{"288":1}}],["资源包名称",{"2":{"288":1}}],["资源包通常是以",{"2":{"288":1}}],["资源包",{"2":{"287":1,"294":1}}],["它允许你一定程度上自定义轻雪的外观",{"2":{"287":1}}],["它允许你在轻雪中运行一些自定义的由数据驱动的命令",{"2":{"274":1}}],["亦可根据用途称为主题包",{"2":{"287":1}}],["保存后轻雪会自动重载nonebot进程",{"2":{"286":1}}],["保持轻雪运行",{"2":{"21":1}}],["方法2",{"0":{"286":1}}],["方法1",{"0":{"285":1}}],["用户管理liteyuki",{"0":{"295":1}}],["用户协议",{"0":{"289":1}}],["用observer的on",{"2":{"283":1}}],["用于统计bot接收到的消息",{"2":{"299":1}}],["用于开发nonebot时进行文件系统变更重载",{"2":{"283":1}}],["用于结束当前已完成function的执行",{"2":{"279":1}}],["用于存放内置插件",{"2":{"223":1}}],["用于获取和唯一标识",{"2":{"123":1}}],["用于进程间通信",{"2":{"58":1}}],["排除的文件扩展名",{"2":{"283":1}}],["因此插件主要是一些后台任务或者与聊天机器人的通信",{"2":{"283":1}}],["因此无法通过内存共享和直接对象传递的方式进行通信",{"2":{"263":1}}],["定义插件元数据",{"2":{"282":1}}],["定义变量",{"2":{"276":1}}],["导入轻雪bot和日志",{"2":{"283":1}}],["导入文件系统事件",{"2":{"283":1}}],["导入文件系统观察器",{"2":{"283":1}}],["导入文件夹下多个插件",{"2":{"198":1}}],["导入逻辑部分",{"2":{"282":1}}],["编写逻辑部分",{"0":{"283":1}}],["编写轻雪函数推荐你使用vs",{"2":{"279":1}}],["编辑时的语法高亮可采取shell格式",{"2":{"275":1}}],["那么加载b包后",{"2":{"288":1}}],["那么你能够很快就上手",{"2":{"287":1}}],["那么当前所有函数包的task都会被截停销毁",{"2":{"279":1}}],["那么将会被解析为nickname而不是命令",{"2":{"6":1}}],["的情况是效率提升的关键",{"2":{"279":1}}],["的可爱猫娘机器人",{"2":{"259":1}}],["避免出现",{"2":{"279":1}}],["由于liteyukibot基于异步运行",{"2":{"279":1}}],["结束关键字",{"0":{"279":1}}],["结束函数关键字",{"2":{"276":1}}],["理论上所有基于onebotv11的api都可调用",{"2":{"278":1}}],["则该文件夹不会被识别为资源包",{"2":{"288":1}}],["则需要删除await",{"2":{"277":1}}],["则传入泛型默认开启",{"2":{"65":1}}],["无需手动创建实例",{"2":{"286":1}}],["无需手动初始化bot",{"2":{"147":1}}],["无限戳",{"2":{"277":1}}],["执行",{"2":{"277":1}}],["疯狂戳好友",{"2":{"277":1}}],["否则会导致渲染失败或渲染结果不理想",{"2":{"287":1}}],["否则task对象会被销毁",{"2":{"276":1}}],["否则默认关闭",{"2":{"65":1}}],["等待所有异步任务结束",{"2":{"276":1}}],["单线程走到底",{"2":{"279":1}}],["单位s",{"2":{"276":1}}],["单元测试目录",{"2":{"271":1}}],["调用机器人函数",{"2":{"291":1}}],["调用机器人api",{"2":{"291":1}}],["调用重启进程方法",{"2":{"283":1}}],["调用函数",{"2":{"276":1}}],["调用bot",{"2":{"276":1}}],["也支持句末注释",{"2":{"275":1}}],["也可以监听其他进程的消息",{"2":{"263":1}}],["函数文件放在资源包的functions目录下",{"2":{"275":1}}],["函数文件",{"0":{"275":1}}],["函数列表",{"2":{"45":1}}],["属于资源包的一部分",{"2":{"274":1}}],["是可以相对引用的",{"2":{"288":1}}],["是轻雪的一个功能",{"2":{"274":1}}],["是否为协程可调用对象",{"2":{"253":1}}],["是否阻断后续优先级更低的匹配器",{"2":{"235":1}}],["是否忽略警告",{"2":{"198":1}}],["是否忽略键不存在的错误",{"2":{"92":1}}],["是否包含顶层文件夹",{"2":{"192":1}}],["是否递归监听子目录",{"2":{"145":1}}],["是否开启类型检查",{"2":{"65":1}}],["是否允许更新",{"2":{"2":1}}],["是否自动更新轻雪",{"2":{"1":1}}],["是否自动上报问题给轻雪服务器",{"2":{"1":1}}],["是否显示日志等级图标",{"2":{"1":1}}],["最后",{"0":{"273":1}}],["最佳实践",{"0":{"258":1},"1":{"259":1,"260":1,"261":1}}],["总结来说就是你干了什么",{"2":{"272":1}}],["给event添加新字段",{"2":{"272":1}}],["具体请参考gitmoji",{"2":{"272":1}}],["表示修复bug等",{"2":{"272":1}}],["表示引入新功能",{"2":{"272":1}}],["我们在src",{"2":{"286":1}}],["我们欢迎任何人参与开发",{"2":{"273":1}}],["我们使用gitmoji来标记commit的类型",{"2":{"272":1}}],["我们专门为minecraft开发的服务器bot",{"2":{"9":1}}],["应在每次完成一个功能或修复一个bug后提交代码",{"2":{"272":1}}],["应在初始化时调用",{"2":{"227":1}}],["尽量避免使用单引号",{"2":{"272":1}}],["尽量不要冲突",{"2":{"108":1}}],["没有危害的",{"2":{"272":1}}],["没有异步的必要",{"2":{"66":1}}],["提交到轻雪仓库的代码",{"2":{"272":1}}],["提供",{"2":{"6":1}}],["代码请遵循pep8和google",{"2":{"272":1}}],["规范化",{"0":{"272":1}}],["规则函数签名",{"2":{"243":1}}],["规则",{"2":{"235":1}}],["业务逻辑请在此目录下进行开发",{"2":{"271":1}}],["同时用户也应该自行选择可用的资源包",{"2":{"288":1}}],["同时也是liteyuki框架的仓库",{"2":{"271":1}}],["同步接收数据",{"2":{"67":1}}],["同步接收函数",{"2":{"59":1}}],["同步过滤函数",{"2":{"61":1}}],["同步进程生命周期函数",{"2":{"40":1}}],["同步生命周期函数",{"2":{"37":1}}],["中文文档",{"2":{"271":1}}],["英文文档",{"2":{"271":1}}],["文档请遵循markdown语法",{"2":{"272":1}}],["文档目录",{"2":{"271":1}}],["文件内容为一系列的命令",{"2":{"275":1}}],["文件名以",{"2":{"275":1}}],["文件夹路径",{"2":{"198":1}}],["文件路径",{"2":{"190":1}}],["文件数据",{"2":{"188":1}}],["工具目录",{"2":{"271":1}}],["内置资源包目录",{"2":{"271":1}}],["内存共享是线程安全的",{"2":{"266":1}}],["内存共享使得代码编写更加简洁",{"2":{"266":1}}],["内存",{"2":{"15":1,"289":1}}],["框架目录",{"2":{"271":1}}],["项目结构",{"0":{"271":1}}],["项目目录下的配置文件优先",{"2":{"115":1}}],["项目目录下的配置文件优先级高于config目录下的配置文件",{"2":{"108":1}}],["项目目录下的config",{"2":{"115":1}}],["出现冲突请与仓库维护者联系",{"2":{"269":1}}],["将你的分支合并到轻雪仓库的main分支",{"2":{"269":1}}],["将你的代码提交到这个分支",{"2":{"269":1}}],["将消息按照onebot标准处理好上报给轻雪",{"2":{"6":1}}],["组织账户下",{"2":{"269":1}}],["首先创建一个文件夹",{"2":{"282":1}}],["首先fork一份轻雪仓库到你的个人",{"2":{"269":1}}],["首次运行后生成config",{"2":{"0":1}}],["引用",{"2":{"269":1}}],["引用计数",{"2":{"103":1}}],["线程锁会自动保护共享内存的读写操作",{"2":{"266":1}}],["相比于普通进程通信",{"2":{"266":1}}],["相对路径",{"2":{"188":1}}],["且通过安全的方式传输到轻雪的服务器",{"2":{"289":1}}],["且通道标识为",{"2":{"264":1}}],["且遵守了相关字体开源协议",{"2":{"10":1}}],["创建入口文件",{"2":{"286":1}}],["创建插件",{"0":{"282":1}}],["创建子进程的同时会初始化一个被动通道和一个主动通道",{"2":{"264":1}}],["创建asyncio",{"2":{"122":1}}],["实现",{"2":{"264":1}}],["实现端本身不负责处理响应逻辑",{"2":{"6":1}}],["主题包中的html渲染使用js来规定数据的渲染位置",{"2":{"287":1}}],["主题商店提供了一些资源包供你选择",{"2":{"287":1}}],["主动模式需调用chan",{"2":{"264":1}}],["主进程中",{"2":{"264":1}}],["主进程中通过get",{"2":{"264":1}}],["主进程接收到消息后重启对应子进程",{"2":{"263":1}}],["主进程订阅者接收函数",{"2":{"86":1}}],["主进程创建单例",{"2":{"72":1}}],["被动模式",{"2":{"264":1}}],["被动模式由chan",{"2":{"264":1}}],["被动通道传递通道",{"2":{"73":1}}],["被动通道",{"2":{"71":1}}],["即后加载的资源包会覆盖前面的资源包",{"2":{"288":1}}],["即可创建一个插件",{"2":{"282":1}}],["即不等待",{"2":{"276":1}}],["即被动模式和主动模式",{"2":{"264":1}}],["即轻雪作为服务端",{"2":{"3":1}}],["有一个task任务没有完成而await被执行了",{"2":{"279":1}}],["有条件可以使用中英双语",{"2":{"272":1}}],["有两种接收模式",{"2":{"264":1}}],["有的插件安装后报错无法启动",{"2":{"6":1}}],["这样可以在控制台看到更多的调试信息",{"2":{"270":1}}],["这时可以通过通道对主进程发送消息",{"2":{"263":1}}],["这里给出一个参考值",{"2":{"3":1}}],["里",{"2":{"263":1}}],["简介",{"0":{"263":1,"266":1,"280":1,"287":1},"1":{"281":1,"282":1,"283":1,"284":1,"285":1,"286":1,"288":1}}],["闭源",{"2":{"261":1}}],["展示轻雪的所有实例及其位置分布",{"2":{"261":1}}],["支持中英文",{"2":{"297":2}}],["支持中英文城市名",{"2":{"297":1}}],["支持多个关键词查询",{"2":{"297":1}}],["支持绑定城市",{"2":{"297":1}}],["支持单行注释",{"2":{"275":1}}],["支持轻雪",{"2":{"260":1}}],["支持onebotv11标准",{"2":{"9":1}}],["让",{"2":{"260":1}}],["让轻雪支持",{"2":{"260":1}}],["官方定制轻雪机器人",{"2":{"259":1}}],["机器人源码目录",{"2":{"271":1}}],["机器人入口文件",{"2":{"271":1}}],["机器人应用",{"0":{"259":1}}],["机器人昵称列表",{"2":{"1":1}}],["路径a",{"2":{"256":1}}],["转换路径为模块名",{"2":{"256":1}}],["判断是否为协程可调用对象",{"2":{"253":1}}],["一个",{"2":{"282":1}}],["一个键不要多次出现",{"2":{"108":1}}],["一些常用的工具类",{"2":{"252":1}}],["优先级",{"2":{"235":1}}],["匹配器",{"2":{"235":1}}],["505468b及以后的lagrange",{"2":{"291":1}}],["55",{"2":{"242":1}}],["52",{"2":{"238":1}}],["51",{"2":{"233":1}}],["59",{"2":{"196":1,"200":1}}],["45m",{"2":{"299":2}}],["44",{"2":{"232":1}}],["47",{"2":{"228":1,"251":1}}],["回复消息",{"2":{"231":1}}],["根据不同类型插件设置颜色",{"2":{"199":1}}],["插件停用只能阻断传入响应",{"2":{"294":1}}],["插件管理",{"2":{"293":1,"294":1}}],["插件信息",{"2":{"289":1}}],["插件描述",{"2":{"282":1}}],["插件版本",{"2":{"282":1}}],["插件开发请在此目录下进行开发",{"2":{"271":1}}],["插件开发无需阅读本文档",{"2":{"269":1}}],["插件",{"0":{"260":1,"293":1},"1":{"294":1},"2":{"260":2}}],["插件类型",{"2":{"199":1,"282":1}}],["插件名称",{"2":{"197":1,"199":1,"282":1}}],["插件字典",{"2":{"195":1}}],["插件路径",{"2":{"147":1}}],["去头路径",{"2":{"193":1}}],["忽略的路径",{"2":{"192":1}}],["忽略私有函数和类",{"2":{"190":1}}],["x26",{"2":{"191":4,"241":1}}],["x3c",{"2":{"20":4,"22":1,"154":5,"191":8,"197":2,"199":2,"239":1,"276":6,"297":2,"299":2}}],["\`",{"2":{"191":14}}],["+",{"2":{"191":2,"256":1}}],["+=",{"2":{"22":1,"69":1,"191":15}}],["字体包",{"2":{"287":1}}],["字符串请使用双引号",{"2":{"272":1}}],["字符串",{"2":{"191":1}}],["字段",{"2":{"3":1}}],["语言包等",{"2":{"287":1}}],["语言",{"2":{"191":1,"192":1}}],["输入值会被执行以转换为正确的类型",{"2":{"291":1}}],["输入playwright",{"2":{"6":1}}],["输出",{"2":{"275":1}}],["输出文件夹",{"2":{"192":1}}],["输出文件",{"2":{"188":1}}],["目标路径",{"2":{"187":1}}],["目前可用性较低",{"2":{"8":1}}],["目前markdown消息支持lagrange",{"2":{"8":1}}],["⭕",{"2":{"154":1}}],["⚠️",{"2":{"154":1}}],["✅",{"2":{"154":1}}],["ℹ️信息",{"2":{"264":4}}],["ℹ️",{"2":{"154":1}}],["🐛",{"2":{"154":1}}],["测试版本号",{"2":{"151":1}}],["此模块为内置插件文件夹",{"2":{"223":1}}],["此模块为liteyuki的框架整体",{"2":{"150":1}}],["此模块用于注册观察者函数",{"2":{"135":1}}],["运行环境的设备信息",{"2":{"289":1}}],["运行在主进程中",{"2":{"280":1}}],["运行协程",{"2":{"254":1}}],["运行处理函数",{"2":{"237":1}}],["运行插件",{"2":{"147":1}}],["运行订阅者接收函数",{"2":{"96":1}}],["上午12",{"2":{"201":1}}],["上午11",{"2":{"117":1}}],["上午6",{"2":{"155":1}}],["上午9",{"2":{"152":1}}],["上午5",{"2":{"146":1}}],["事件过滤器",{"2":{"145":1}}],["事件循环",{"2":{"19":1}}],["防抖函数",{"2":{"138":1}}],["防止获取空指针",{"2":{"103":1}}],["位置1为filesystemevent",{"2":{"136":1,"137":1}}],["启用",{"2":{"292":1,"294":1}}],["启用插件后",{"2":{"286":1}}],["启用开发者模式",{"2":{"270":1}}],["启用该模块需要在配置文件中设置dev",{"2":{"135":1}}],["启动后控制台输出",{"2":{"264":1}}],["启动后钩子",{"2":{"53":1}}],["启动所有子进程",{"2":{"133":1}}],["启动所有进程",{"2":{"122":1}}],["启动指定子进程",{"2":{"132":1}}],["启动发布订阅接收器循环",{"2":{"97":1}}],["启动前钩子",{"2":{"52":1}}],["启动",{"2":{"44":1}}],["启动容器",{"2":{"13":1}}],["启动bot",{"2":{"12":1}}],["启动时会加载项目目录下config",{"2":{"0":1}}],["添加配置项",{"2":{"291":1}}],["添加sleep",{"2":{"277":1}}],["添加处理函数",{"2":{"236":1}}],["添加子进程",{"2":{"131":1}}],["添加进程",{"2":{"123":1}}],["检查进程是否存活",{"2":{"127":1}}],["终止进程并从进程字典中删除",{"2":{"125":1}}],["通过关键词搜索插件",{"2":{"293":1}}],["通过装饰器注册一个函数在接收到消息时运行",{"2":{"264":1}}],["通常是目录不存在或目录为空",{"2":{"198":1}}],["通常会默认传入chan",{"2":{"123":1}}],["通道是全双工的",{"2":{"264":1}}],["通道通信",{"0":{"262":1},"1":{"263":1,"264":1,"265":1,"266":1,"267":1}}],["通道实例",{"2":{"74":1,"75":1,"76":1,"77":1}}],["通道名称",{"2":{"74":1,"76":1}}],["通道传递通道",{"2":{"72":1}}],["通道id",{"2":{"65":1}}],["对于主动推送的插件不生效",{"2":{"294":1}}],["对于不同资源包的不同文件",{"2":{"288":1}}],["对外启动方法",{"2":{"122":1}}],["对公开放时建议设置",{"2":{"2":1}}],["按照读取文件的优先级反向覆盖",{"2":{"114":1}}],["从一个标准的轻雪项目加载配置文件",{"2":{"115":1}}],["从目录下加载配置文件",{"2":{"114":1}}],["从指定文件加载配置项",{"2":{"113":1}}],["8",{"2":{"110":1,"111":1,"112":1,"146":1,"155":1,"188":1,"190":1,"224":1,"225":1,"226":1,"228":1,"232":1,"233":1,"238":1,"242":1,"251":1}}],["但请注意甄别第三方插件的安全性",{"2":{"289":1}}],["但请保证以上三个字段",{"2":{"288":1}}],["但若出现非单function的情况",{"2":{"279":1}}],["但需单独起篇幅",{"2":{"274":1}}],["但在嵌套字符串时可以使用单引号",{"2":{"272":1}}],["但一个通道只能使用一种",{"2":{"264":1}}],["但也包含原有的键值对",{"2":{"109":1}}],["但是请保留原作者信息",{"2":{"289":1}}],["但是更加轻量级并且线程安全",{"2":{"85":1}}],["但是bot昵称有一个help",{"2":{"6":1}}],["但是基本上都是一样的",{"2":{"3":1}}],["但是部分内容会被覆盖",{"2":{"1":1}}],["扁平化后的配置文件",{"2":{"109":1}}],["扁平化配置文件",{"2":{"109":1}}],["扁平化编写",{"2":{"108":1}}],["注意不要嵌套文件夹",{"2":{"288":1}}],["注意冲突时的优先级",{"2":{"108":1}}],["注册一个函数在nonebot启动后运行",{"2":{"264":1}}],["注册一个函数在轻雪启动后运行",{"2":{"264":1}}],["注册文件系统变化监听器",{"2":{"145":1}}],["注册重启后的函数",{"2":{"32":1,"51":1}}],["注册进程重启前的函数",{"2":{"31":1,"50":1}}],["注册进程停止前的函数",{"2":{"30":1,"48":1}}],["注册停止后的函数",{"2":{"29":1,"49":1}}],["注册启动时的函数",{"2":{"46":1,"47":1}}],["注册启动后的函数",{"2":{"28":1}}],["注册启动前的函数",{"2":{"27":1}}],["每隔0",{"2":{"277":1}}],["每行一个命令",{"2":{"275":1}}],["每个语言的文档都要修订",{"2":{"272":1}}],["每个配置文件给一个或一类服务提供配置",{"2":{"108":1}}],["每种语言都有对应的文档",{"2":{"272":1}}],["每次接收到字符串数据时都会运行",{"2":{"264":1}}],["每3秒发送一次消息",{"2":{"264":1}}],["每天4点检查更新",{"2":{"1":1}}],["多配置文件编写原则",{"2":{"108":1}}],["共享内存通信",{"0":{"265":1},"1":{"266":1,"267":1}}],["共享内存对象",{"2":{"102":1}}],["共享内存模块",{"2":{"85":1}}],["订阅者接收消息时的回调",{"2":{"95":1}}],["频道",{"2":{"94":1,"95":1,"96":1}}],["发布消息",{"2":{"94":1}}],["发送函数为同步函数",{"2":{"66":1}}],["发送数据",{"2":{"66":1}}],["删除键值对",{"2":{"92":1}}],["值",{"2":{"90":1,"91":1}}],["键值对",{"2":{"93":1}}],["键",{"2":{"90":1,"91":1,"92":1}}],["类似于minecraft的mcfunction",{"2":{"274":1}}],["类似于redis",{"2":{"85":1}}],["类型",{"2":{"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"59":1,"60":1,"61":1,"62":1,"63":1,"70":1,"71":1,"72":1,"73":1,"86":1,"87":1,"102":1,"136":1,"137":1,"243":1}}],["依赖关系",{"2":{"84":1}}],["设置用户信息或打开属性设置菜单",{"2":{"295":1}}],["设置",{"2":{"292":1,"295":1}}],["设置共享内存",{"2":{"267":1}}],["设置后的插件名称",{"2":{"199":1}}],["设置插件名称颜色",{"2":{"199":1}}],["设置键值对",{"2":{"90":1}}],["设置通道实例",{"2":{"74":1,"75":1}}],["设备上python环境太乱了",{"2":{"6":1}}],["子进程中获取通道直接导入进程全局单例即可",{"2":{"264":1}}],["子进程中导入单例active",{"2":{"264":1}}],["子进程名称",{"2":{"131":1,"132":1}}],["子进程函数关键字参数",{"2":{"131":1}}],["子进程函数参数",{"2":{"131":1}}],["子进程函数",{"2":{"131":1}}],["子进程订阅者接收函数",{"2":{"87":1}}],["子进程初始化时实例化",{"2":{"72":1}}],["子进程可用的主动和被动通道",{"2":{"70":1}}],["装饰回调函数实现",{"2":{"264":1}}],["装饰一个函数在接收到数据后执行",{"2":{"145":1}}],["装饰器",{"2":{"69":1,"95":1,"145":1,"236":2}}],["装置要求",{"0":{"15":1},"1":{"16":1}}],["接收数据并执行函数",{"2":{"69":1}}],["接收函数",{"2":{"60":1}}],["会自动判断key版本",{"2":{"297":1}}],["会自动识别文件格式",{"2":{"113":1}}],["会话负载信息",{"2":{"289":1}}],["会触发最大递归深度限制",{"2":{"277":1}}],["会挂起等待",{"2":{"68":1}}],["会阻塞线程",{"2":{"67":1}}],["数据",{"2":{"66":1,"67":1,"68":1,"94":1,"96":1}}],["过滤函数",{"2":{"63":1,"69":1}}],["并且应该在metadata",{"2":{"288":1}}],["并且不用修改源代码",{"2":{"287":1}}],["并且支持vitepress相关内容",{"2":{"272":1}}],["并在其中写入一些代码",{"2":{"286":1}}],["并在其中写入以下代码",{"2":{"286":1}}],["并在其中创建一个",{"2":{"282":1}}],["并遵循其许可进行修改",{"2":{"252":1}}],["并发运行异步函数",{"2":{"45":1}}],["并使用克隆而非直接下载的方式部署轻雪",{"2":{"6":1}}],["|",{"0":{"45":1,"147":1,"197":1,"230":1,"231":1,"246":1},"2":{"39":1,"42":1,"45":2,"60":1,"63":1,"147":1,"197":1,"230":1,"231":1}}],["下午10",{"2":{"226":1,"228":1,"232":1,"233":1,"238":1,"242":1,"251":1}}],["下午12",{"2":{"224":1}}],["下午11",{"2":{"196":1,"200":1}}],["下午8",{"2":{"36":1}}],["下面已经列出一些推荐的实现端",{"2":{"6":1}}],["7",{"2":{"36":1,"117":1,"152":1,"196":1,"200":1,"201":1}}],["兼容键",{"2":{"35":1}}],["兼容旧版本",{"2":{"35":1}}],["获取用户信息",{"2":{"295":1}}],["获取唯一的轻雪bot实例",{"2":{"283":1}}],["获取共享内存",{"2":{"267":1}}],["获取主动通道",{"2":{"264":1}}],["获取被动通道",{"2":{"264":1}}],["获取已加载的插件",{"2":{"195":1}}],["获取函数和类",{"2":{"190":1}}],["获取相对路径",{"2":{"187":1}}],["获取所有键值对",{"2":{"93":1}}],["获取键值对",{"2":{"91":1}}],["获取通道实例们",{"2":{"77":1}}],["获取通道实例",{"2":{"76":1}}],["获取配置",{"2":{"34":1,"35":1}}],["获取轻雪实例",{"2":{"33":1}}],["为可选参数",{"2":{"290":1}}],["为必填参数",{"2":{"290":1}}],["为子进程重启时调用",{"2":{"31":1}}],["为子进程停止时调用",{"2":{"30":1}}],["为什么我启动后机器人没有反应",{"2":{"6":1}}],["未实现",{"2":{"29":1,"32":1,"55":1,"57":1}}],["返回true则执行回调函数",{"2":{"145":1}}],["返回",{"2":{"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"67":1,"68":1,"69":1,"76":1,"77":1,"91":1,"93":1,"95":1,"109":1,"145":1,"190":1,"191":1,"195":1,"199":1,"236":1,"253":1,"256":1,"257":1}}],["关键字参数",{"2":{"24":1}}],["自定义选项title",{"2":{"191":1}}],["自动调用",{"2":{"24":1}}],["自己整一个websocket客户端",{"2":{"8":1}}],["进程生命周期函数",{"2":{"48":2,"50":2}}],["进程函数关键字参数",{"2":{"123":1}}],["进程函数参数",{"2":{"123":1}}],["进程函数",{"2":{"42":1,"123":1}}],["进程名",{"2":{"23":1,"123":1}}],["进入轻雪目录",{"2":{"13":1}}],["join",{"0":{"124":1},"2":{"22":1,"114":1,"124":2,"125":1,"189":1,"191":4,"192":1,"198":2,"256":2}}],["js",{"2":{"8":1}}],["json",{"0":{"111":1},"2":{"0":1,"111":4,"113":2,"115":1}}],["json和toml作为配置文件",{"2":{"0":1}}],["延迟重启时间",{"2":{"22":1}}],["kill",{"2":{"125":1}}],["k",{"2":{"109":2,"191":2}}],["keyword",{"2":{"241":2}}],["keywords为城市名",{"2":{"297":2}}],["keywords",{"0":{"241":2},"2":{"241":5,"293":1,"297":2}}],["keyerror",{"2":{"92":1,"132":1}}],["keyvaluestore",{"0":{"88":1},"1":{"89":1,"90":1,"91":1,"92":1,"93":1,"94":1,"95":1,"96":1,"97":1},"2":{"99":1,"102":1}}],["keys",{"0":{"35":1},"2":{"35":3}}],["key",{"0":{"34":1,"35":1,"90":1,"91":1,"92":2},"2":{"34":3,"35":10,"90":6,"91":6,"92":11,"104":3,"105":3,"106":3,"109":2,"267":2,"291":4,"295":2,"297":1}}],["keyboardinterrupt",{"2":{"20":1}}],["keeping",{"2":{"21":1}}],["keep",{"0":{"21":1},"2":{"21":1}}],["kwargs=none",{"2":{"123":1}}],["kwargs",{"0":{"19":1,"24":1,"45":1,"54":1,"56":1,"123":1,"130":1,"131":1},"2":{"19":3,"24":2,"45":3,"54":2,"56":2,"123":4,"130":2,"131":3,"138":2,"257":2,"291":2}}],["echo",{"2":{"275":3}}],["emoji",{"2":{"272":1}}],["empty",{"0":{"240":1,"241":1,"249":1},"2":{"197":1,"198":1,"249":1}}],["emsp",{"2":{"191":4}}],["email",{"2":{"36":1,"117":1,"146":1,"152":1,"155":1,"196":1,"200":1,"201":1,"224":1,"226":1,"228":1,"232":1,"233":1,"238":1,"242":1,"251":1}}],["enable",{"2":{"291":2,"292":1,"293":2,"294":2}}],["end",{"2":{"276":1}}],["endswith",{"2":{"113":3,"114":1,"189":1,"198":1,"283":1}}],["en",{"2":{"271":1}}],["ensure",{"2":{"254":1}}],["enumerate",{"2":{"239":1}}],["enum",{"0":{"156":1,"202":1},"1":{"157":1,"158":1,"159":1,"160":1,"161":1,"203":1,"204":1,"205":1,"206":1,"207":1}}],["encoding=",{"2":{"110":1,"111":1,"112":1,"188":1,"190":1}}],["enforcing",{"2":{"65":1}}],["e",{"2":{"92":2,"197":1,"199":1,"254":2}}],["errors=true",{"2":{"192":1}}],["error",{"0":{"92":1},"2":{"92":3,"154":2,"254":1}}],["else",{"2":{"22":1,"23":1,"33":1,"45":1,"65":1,"69":2,"74":1,"76":1,"77":1,"90":1,"91":1,"92":1,"93":1,"95":2,"110":1,"111":1,"112":1,"153":1,"154":5,"190":9,"191":10,"192":2,"197":2,"239":1,"254":1,"256":1}}],["elif",{"2":{"22":2,"65":1,"69":1,"113":4,"190":5,"197":2,"198":1}}],["extensions",{"2":{"283":2}}],["extend",{"2":{"147":1}}],["extra",{"0":{"215":1}}],["exclude",{"2":{"283":2}}],["exc",{"2":{"197":1,"237":1}}],["exception模块包含了liteyuki运行中的所有错误",{"2":{"148":1}}],["exception",{"0":{"148":1},"1":{"149":1},"2":{"21":1,"197":1,"237":1,"254":2}}],["except",{"2":{"20":1,"21":1,"92":1,"197":1,"237":1,"254":2}}],["executor",{"2":{"68":1}}],["executable",{"2":{"22":3}}],["exist",{"2":{"198":1}}],["exists",{"2":{"65":2,"74":1,"113":1,"114":1,"188":1,"198":2}}],["exit",{"2":{"22":1}}],["exiting",{"2":{"21":1}}],["event装饰器监听文件系统事件",{"2":{"283":1}}],["events",{"2":{"283":1}}],["eventhandler",{"0":{"236":2},"2":{"235":1,"236":4}}],["event",{"0":{"81":1,"82":1,"140":1,"141":1,"142":1,"143":1,"144":2,"145":2,"225":1,"228":1,"237":1,"248":1,"249":1,"250":1},"1":{"82":1,"83":2,"229":1,"230":1,"231":1},"2":{"19":4,"21":1,"26":1,"84":1,"140":1,"141":2,"142":2,"143":2,"144":3,"145":8,"225":3,"228":1,"231":2,"237":4,"241":2,"246":3,"247":3,"248":2,"249":1,"250":2,"254":2,"283":8}}],["外部启动接口",{"2":{"20":1}}],["加载",{"2":{"294":1}}],["加载资源包",{"0":{"288":1},"2":{"293":1}}],["加载插件",{"0":{"284":1},"1":{"285":1,"286":1}}],["加载插件加载器",{"2":{"19":1}}],["加载单个插件",{"2":{"197":1}}],["加入qq群775840726",{"2":{"7":1}}],["生成文档",{"2":{"192":1}}],["生成模块的markdown",{"2":{"191":1}}],["生命周期函数",{"2":{"27":2,"28":2,"29":2,"30":2,"31":2,"32":2,"39":1,"46":2,"47":2,"49":2,"51":2}}],["生命周期管理",{"2":{"19":1}}],["生产环境中推荐反向websocket",{"2":{"3":1}}],["初始化通道",{"2":{"65":1}}],["初始化日志",{"2":{"25":1}}],["初始化轻雪",{"2":{"24":1}}],["初始化轻雪实例",{"2":{"19":1}}],["初始化",{"2":{"19":1}}],["=none",{"2":{"23":1,"65":1,"69":1,"91":1,"230":2}}],["==",{"2":{"22":3,"77":1,"78":2,"79":2,"80":1,"97":1,"103":1,"104":2,"105":2,"106":2,"107":1,"153":1,"190":4,"191":2,"256":1}}],["=",{"0":{"22":1,"23":1,"34":1,"35":1,"65":1,"69":1,"91":1,"92":1,"100":1,"101":1,"113":1,"114":1,"115":1,"123":2,"145":2,"157":1,"158":1,"159":1,"160":1,"161":1,"163":1,"164":1,"165":1,"166":1,"167":1,"168":1,"169":1,"171":1,"172":1,"173":1,"174":1,"176":1,"177":1,"178":1,"179":1,"180":1,"182":1,"183":1,"184":1,"185":1,"186":1,"190":1,"191":2,"192":3,"198":1,"203":1,"204":1,"205":1,"206":1,"207":1,"209":1,"210":1,"211":1,"212":1,"213":1,"214":1,"215":1,"218":1,"219":1,"220":1,"221":1,"222":1,"230":2,"240":3,"241":3,"246":1,"247":1,"248":1},"2":{"19":7,"22":6,"23":2,"44":7,"45":1,"65":10,"66":1,"67":1,"68":2,"69":1,"74":1,"76":1,"77":1,"78":1,"79":1,"80":1,"83":2,"89":6,"90":2,"91":2,"92":1,"93":1,"95":2,"97":1,"99":1,"104":3,"105":2,"106":1,"107":1,"109":2,"110":1,"111":1,"112":1,"113":1,"114":1,"115":1,"119":5,"121":3,"123":5,"125":1,"129":1,"130":1,"131":1,"138":3,"145":2,"147":4,"154":1,"189":1,"190":17,"191":16,"192":13,"197":12,"198":6,"199":5,"230":10,"231":1,"235":5,"240":1,"245":1,"253":1,"254":2,"256":1,"257":1,"264":5,"267":1,"282":1,"283":2}}],[">",{"2":{"19":1,"27":1,"31":1,"33":1,"34":1,"35":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"67":1,"68":1,"69":3,"76":1,"77":1,"90":1,"91":1,"92":1,"93":1,"94":1,"95":2,"109":1,"110":1,"111":1,"112":1,"113":1,"114":1,"115":1,"127":1,"130":1,"138":1,"145":2,"153":1,"187":1,"190":1,"191":3,"192":1,"195":1,"197":1,"198":1,"199":3,"236":2,"237":1,"240":1,"241":1,"246":2,"247":2,"248":1,"249":1,"250":1,"253":1,"256":1,"257":1,"297":2}}],["在群聊启用",{"2":{"291":1}}],["在普通图片和markdown大图之间切换",{"2":{"291":1}}],["在b中定义了templates",{"2":{"288":1}}],["在配置文件中的liteyuki",{"2":{"285":1}}],["在设备上执行命令",{"2":{"276":1}}],["在发信器输出",{"2":{"275":1}}],["在你的仓库中创建一个pull",{"2":{"269":1}}],["在你的仓库中创建一个新的分支",{"2":{"269":1}}],["在你的仓库中进行开发",{"2":{"269":1}}],["在任意进程中均可使用",{"2":{"267":1}}],["在子进程中",{"2":{"264":1}}],["在轻雪插件中",{"2":{"264":1}}],["在新线程中运行协程",{"2":{"255":1}}],["在语言加载完成后执行",{"2":{"154":1}}],["在主进程中运行",{"2":{"97":1}}],["在github上查看",{"2":{"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"65":1,"66":1,"67":1,"68":1,"69":1,"74":1,"75":1,"76":1,"77":1,"78":1,"79":1,"80":1,"83":1,"89":1,"90":1,"91":1,"92":1,"93":1,"94":1,"95":1,"96":1,"97":1,"99":1,"104":1,"105":1,"106":1,"107":1,"109":1,"110":1,"111":1,"112":1,"113":1,"114":1,"115":1,"119":1,"121":1,"122":1,"123":1,"124":1,"125":1,"126":1,"127":1,"129":1,"130":1,"131":1,"132":1,"133":1,"138":1,"140":1,"141":1,"142":1,"143":1,"144":1,"145":1,"147":1,"153":1,"154":1,"187":1,"188":1,"189":1,"190":1,"191":1,"192":1,"195":1,"197":1,"198":1,"199":1,"217":1,"225":1,"227":1,"230":1,"231":1,"235":1,"236":1,"237":1,"239":1,"240":1,"241":1,"245":1,"246":1,"247":1,"248":1,"249":1,"250":1,"253":1,"254":1,"255":1,"256":1,"257":1}}],["在安全模式下你可以使用npm",{"2":{"6":1}}],["或插件路径",{"2":{"197":1}}],["或",{"2":{"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"65":1,"66":1,"67":1,"68":1,"69":1,"74":1,"75":1,"76":1,"77":1,"78":1,"79":1,"80":1,"83":1,"89":1,"90":1,"91":1,"92":1,"93":1,"94":1,"95":1,"96":1,"97":1,"99":1,"104":1,"105":1,"106":1,"107":1,"109":1,"110":1,"111":1,"112":1,"113":1,"114":1,"115":1,"119":1,"121":1,"122":1,"123":1,"124":1,"125":1,"126":1,"127":1,"129":1,"130":1,"131":1,"132":1,"133":1,"138":1,"140":1,"141":1,"142":1,"143":1,"144":1,"145":1,"147":1,"153":1,"154":1,"187":1,"188":1,"189":1,"190":1,"191":1,"192":1,"195":1,"197":1,"198":1,"199":1,"217":1,"225":1,"227":1,"230":1,"231":1,"235":1,"236":1,"237":1,"239":1,"240":1,"241":1,"245":1,"246":1,"247":1,"248":1,"249":1,"250":1,"253":1,"254":1,"255":1,"256":1,"257":1,"299":2}}],["源代码",{"2":{"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"65":1,"66":1,"67":1,"68":1,"69":1,"74":1,"75":1,"76":1,"77":1,"78":1,"79":1,"80":1,"83":1,"89":1,"90":1,"91":1,"92":1,"93":1,"94":1,"95":1,"96":1,"97":1,"99":1,"104":1,"105":1,"106":1,"107":1,"109":1,"110":1,"111":1,"112":1,"113":1,"114":1,"115":1,"119":1,"121":1,"122":1,"123":1,"124":1,"125":1,"126":1,"127":1,"129":1,"130":1,"131":1,"132":1,"133":1,"138":1,"140":1,"141":1,"142":1,"143":1,"144":1,"145":1,"147":1,"153":1,"154":1,"187":1,"188":1,"189":1,"190":1,"191":2,"192":1,"195":1,"197":1,"198":1,"199":1,"217":1,"225":1,"227":1,"230":1,"231":1,"235":1,"236":1,"237":1,"239":1,"240":1,"241":1,"245":1,"246":1,"247":1,"248":1,"249":1,"250":1,"253":1,"254":1,"255":1,"256":1,"257":1,"267":1}}],["参与开发默认你已经了解python语言和轻雪框架的基本使用方法",{"2":{"269":1}}],["参考liteyuki",{"2":{"147":1}}],["参考值",{"2":{"3":1}}],["参数列表",{"2":{"291":2}}],["参数为调用set",{"2":{"264":1}}],["参数",{"2":{"19":1,"22":1,"23":1,"24":2,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"34":1,"35":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"65":1,"66":1,"69":1,"74":1,"75":1,"76":1,"90":1,"91":1,"92":1,"94":1,"95":1,"96":1,"109":1,"123":1,"125":1,"127":1,"131":1,"132":1,"145":1,"147":1,"187":1,"188":1,"190":1,"191":1,"192":1,"197":1,"198":1,"199":1,"231":1,"235":1,"237":1,"253":1,"254":1,"255":1,"256":1,"257":1,"290":1,"299":1}}],["feat",{"2":{"272":1}}],["future",{"2":{"254":1}}],["function实现语法高亮",{"2":{"279":1}}],["functiondef",{"2":{"190":3}}],["functioninfo",{"0":{"162":1,"178":1,"183":1},"1":{"163":1,"164":1,"165":1,"166":1,"167":1,"168":1,"169":1},"2":{"190":2}}],["function",{"0":{"157":2},"2":{"190":3,"274":1,"276":1,"277":2,"291":3}}],["functions=",{"2":{"190":1}}],["functions",{"0":{"183":1},"2":{"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"190":1,"191":1}}],["func=none",{"2":{"145":1}}],["func=lambda",{"2":{"77":1,"78":2,"79":2,"80":1,"264":1}}],["funcs",{"0":{"45":2,"86":1,"87":1,"96":1},"2":{"44":6,"45":4,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":2,"53":2,"54":2,"55":2,"56":2,"57":2,"69":1,"95":6,"96":2,"97":1}}],["func",{"0":{"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":4,"28":3,"29":3,"30":3,"31":4,"32":3,"33":1,"34":1,"35":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"44":1,"45":3,"46":4,"47":4,"48":4,"49":4,"50":4,"51":4,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"59":1,"60":1,"61":1,"62":1,"63":1,"65":1,"66":1,"67":1,"68":1,"69":3,"74":1,"75":1,"76":1,"77":1,"78":1,"79":1,"80":1,"83":1,"89":1,"90":1,"91":1,"92":1,"93":1,"94":1,"95":3,"96":1,"97":1,"99":1,"104":1,"105":1,"106":1,"107":1,"109":1,"110":1,"111":1,"112":1,"113":1,"114":1,"115":1,"119":1,"121":1,"122":1,"123":2,"124":1,"125":1,"126":1,"127":1,"129":1,"130":1,"131":2,"132":1,"133":1,"136":1,"137":1,"138":1,"140":1,"141":1,"142":1,"143":1,"144":1,"145":4,"147":1,"153":1,"154":1,"187":1,"188":1,"189":1,"190":1,"191":1,"192":1,"195":1,"197":1,"198":1,"199":1,"217":1,"225":1,"227":1,"230":1,"231":1,"235":1,"236":1,"237":1,"239":1,"240":1,"241":1,"245":1,"246":1,"247":1,"248":1,"249":1,"250":1,"253":1,"254":1,"255":1,"256":1,"257":2},"2":{"27":7,"28":6,"29":6,"30":6,"31":7,"32":6,"39":2,"42":2,"44":6,"45":8,"46":8,"47":8,"48":8,"49":8,"50":8,"51":8,"60":2,"63":2,"65":2,"69":20,"86":1,"87":1,"95":8,"96":2,"123":1,"130":2,"131":3,"138":2,"145":7,"190":2,"191":9,"253":2,"257":4,"276":1}}],["failed",{"2":{"197":1}}],["false时例如docs",{"2":{"192":1}}],["false",{"0":{"113":1,"114":1,"115":1,"192":1,"240":1,"241":1},"2":{"2":4,"65":2,"89":2,"253":1}}],["first",{"2":{"190":2}}],["filter=lambda",{"2":{"283":1}}],["filter",{"0":{"61":1,"62":1,"63":1,"69":2,"137":1,"145":2},"2":{"63":2,"69":8,"77":1,"78":2,"79":2,"80":1,"145":5,"264":1}}],["filesystemeventhandler",{"0":{"139":1},"1":{"140":1,"141":1,"142":1,"143":1,"144":1}}],["filesystemevent",{"2":{"136":1,"137":1,"145":1,"283":2}}],["files",{"0":{"113":2,"188":1},"2":{"113":3,"114":1,"115":1,"188":1,"189":2,"192":1}}],["file",{"0":{"110":1,"111":1,"112":1,"145":1,"188":1,"189":1,"190":1},"2":{"36":1,"110":4,"111":4,"112":4,"113":12,"114":3,"117":1,"145":1,"146":1,"152":1,"155":1,"188":3,"189":7,"190":8,"192":6,"196":1,"200":1,"201":1,"224":1,"226":1,"228":1,"232":1,"233":1,"238":1,"242":1,"251":1,"283":3}}],["friend",{"2":{"277":2}}],["front",{"0":{"191":1},"2":{"191":5,"192":3}}],["from",{"0":{"110":1,"111":1,"112":1,"113":1,"114":1},"2":{"67":1,"110":3,"111":3,"112":3,"113":4,"114":2,"115":2,"264":4,"282":1,"283":3}}],["framework",{"2":{"150":1}}],["flake8",{"2":{"270":1}}],["flat",{"0":{"109":1},"2":{"109":2,"110":1,"111":1,"112":1}}],["flag",{"2":{"44":1}}],["folder",{"0":{"189":1,"192":1},"2":{"189":2,"192":4,"193":1,"223":1}}],["found",{"2":{"66":1,"74":1,"113":1,"114":1,"125":1,"127":1,"132":1}}],["format=get",{"2":{"154":1}}],["formats",{"2":{"114":1}}],["format",{"0":{"153":1,"199":1},"2":{"113":1,"153":3,"154":1,"197":2,"199":1}}],["for",{"2":{"23":1,"35":1,"45":1,"65":1,"75":1,"96":1,"109":2,"113":1,"114":2,"122":1,"124":1,"126":1,"133":1,"145":1,"188":1,"189":2,"190":12,"191":9,"192":3,"198":2,"227":2,"237":1,"239":1,"241":1,"254":2,"282":1}}],["f",{"2":{"22":1,"23":2,"35":1,"65":4,"66":1,"74":2,"109":1,"110":1,"111":1,"112":1,"113":2,"114":1,"122":1,"125":2,"127":1,"132":1,"133":1,"188":2,"191":19,"192":1,"197":5,"198":9,"199":1,"254":1,"264":2,"283":1}}],["模块名",{"2":{"256":1}}],["模块文件夹",{"2":{"192":1}}],["模块信息",{"2":{"190":1,"191":1}}],["模块",{"0":{"17":1,"36":1,"58":1,"81":1,"84":1,"85":1,"108":1,"116":1,"117":1,"134":1,"135":1,"146":1,"148":1,"150":1,"152":1,"155":1,"194":1,"196":1,"200":1,"201":1,"223":1,"224":1,"226":1,"228":1,"232":1,"233":1,"238":1,"242":1,"251":1,"252":1},"1":{"18":1,"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"43":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"59":1,"60":1,"61":1,"62":1,"63":1,"64":1,"65":1,"66":1,"67":1,"68":1,"69":1,"70":1,"71":1,"72":1,"73":1,"74":1,"75":1,"76":1,"77":1,"78":1,"79":1,"80":1,"82":1,"83":1,"86":1,"87":1,"88":1,"89":1,"90":1,"91":1,"92":1,"93":1,"94":1,"95":1,"96":1,"97":1,"98":1,"99":1,"100":1,"101":1,"102":1,"103":1,"104":1,"105":1,"106":1,"107":1,"109":1,"110":1,"111":1,"112":1,"113":1,"114":1,"115":1,"118":1,"119":1,"120":1,"121":1,"122":1,"123":1,"124":1,"125":1,"126":1,"127":1,"128":1,"129":1,"130":1,"131":1,"132":1,"133":1,"136":1,"137":1,"138":1,"139":1,"140":1,"141":1,"142":1,"143":1,"144":1,"145":1,"147":1,"149":1,"151":1,"153":1,"154":1,"156":1,"157":1,"158":1,"159":1,"160":1,"161":1,"162":1,"163":1,"164":1,"165":1,"166":1,"167":1,"168":1,"169":1,"170":1,"171":1,"172":1,"173":1,"174":1,"175":1,"176":1,"177":1,"178":1,"179":1,"180":1,"181":1,"182":1,"183":1,"184":1,"185":1,"186":1,"187":1,"188":1,"189":1,"190":1,"191":1,"192":1,"193":1,"195":1,"197":1,"198":1,"199":1,"202":1,"203":1,"204":1,"205":1,"206":1,"207":1,"208":1,"209":1,"210":1,"211":1,"212":1,"213":1,"214":1,"215":1,"216":1,"217":1,"218":1,"219":1,"220":1,"221":1,"222":1,"225":1,"227":1,"229":1,"230":1,"231":1,"234":1,"235":1,"236":1,"237":1,"239":1,"240":1,"241":1,"243":1,"244":1,"245":1,"246":1,"247":1,"248":1,"249":1,"250":1,"253":1,"254":1,"255":1,"256":1,"257":1}}],["至少1gb空间",{"2":{"15":1}}],["至少1vcpu",{"2":{"15":1}}],["硬盘",{"2":{"15":1}}],["及",{"2":{"15":1}}],["该功能需要commit",{"2":{"291":1}}],["该功能由trss提供支持",{"2":{"14":1}}],["该模块封装通道实现",{"2":{"266":1}}],["该模块用于存放一些开发工具",{"2":{"134":1}}],["该模块用于常用配置文件的加载",{"2":{"108":1}}],["该模块用于轻雪主进程和nonebot子进程之间的通信",{"2":{"84":1}}],["该步骤为必要项",{"2":{"12":1}}],["weather",{"0":{"297":1},"1":{"298":1},"2":{"297":1,"298":1}}],["world",{"2":{"275":5}}],["w",{"2":{"188":1}}],["write",{"0":{"188":1},"2":{"188":2,"192":1}}],["wrapper",{"0":{"257":1},"2":{"45":1,"69":2,"95":4,"123":1,"138":2,"145":2,"257":4}}],["watchdog",{"2":{"283":1,"286":1}}],["watch",{"2":{"282":1,"283":1}}],["walk",{"2":{"189":1,"190":1}}],["wait",{"0":{"138":1},"2":{"138":2}}],["waring=no",{"2":{"115":1}}],["waring",{"0":{"114":1,"115":1},"2":{"114":3,"115":3}}],["warning=no",{"2":{"114":1,"115":1}}],["warning",{"0":{"113":1,"198":1},"2":{"15":2,"35":1,"113":5,"114":1,"125":1,"127":1,"154":2,"197":1,"198":8,"279":1,"294":1}}],["will",{"2":{"35":1}}],["with",{"0":{"35":1,"192":1},"2":{"35":1,"90":1,"91":1,"92":1,"99":1,"188":1,"190":1,"191":5,"192":3}}],["windows",{"2":{"15":1,"22":1}}],["windows系统版本最低windows10+",{"2":{"15":1}}],["windows请使用项目绝对目录",{"2":{"13":1}}],["while",{"2":{"21":1,"67":1,"97":1,"264":2}}],["ws",{"2":{"3":2}}],["$",{"2":{"13":2}}],["构建镜像",{"2":{"13":1}}],["克隆项目",{"2":{"13":1}}],["克隆项目到本地",{"2":{"12":1}}],["使用通用日期简写",{"2":{"299":2}}],["使用此项目代表你已经同意以上协议",{"2":{"289":1}}],["使用开发工具快速运行插件",{"2":{"286":1}}],["使用",{"2":{"277":1}}],["使用新的task执行命令",{"2":{"276":1}}],["使用watchdog监控文件变化并重启bot",{"2":{"135":1}}],["使用trss",{"0":{"14":1}}],["使用docker构建",{"0":{"13":1}}],["使用其他项目连接请先自行查阅文档",{"2":{"9":1}}],["b包也定义了一个index",{"2":{"288":1}}],["bug",{"2":{"272":1}}],["built",{"2":{"223":2}}],["build",{"2":{"13":1}}],["break",{"2":{"239":1}}],["black等工具进行代码检查和格式化",{"2":{"270":1}}],["block",{"0":{"235":1,"240":1,"241":1},"2":{"235":4,"240":2,"241":2}}],["blue>",{"2":{"154":1}}],["bases",{"2":{"190":1}}],["base",{"0":{"187":1},"2":{"187":3,"190":2}}],["basemodel",{"0":{"162":1,"170":1,"175":1,"181":1,"208":1,"216":1},"1":{"163":1,"164":1,"165":1,"166":1,"167":1,"168":1,"169":1,"171":1,"172":1,"173":1,"174":1,"176":1,"177":1,"178":1,"179":1,"180":1,"182":1,"183":1,"184":1,"185":1,"186":1,"209":1,"210":1,"211":1,"212":1,"213":1,"214":1,"215":1,"217":1,"218":1,"219":1,"220":1,"221":1,"222":1}}],["baseexception",{"0":{"149":1}}],["bash",{"2":{"12":1}}],["b",{"2":{"109":1,"192":2,"256":2,"300":1}}],["body",{"2":{"190":1}}],["bool=false",{"2":{"113":1,"114":1,"115":1,"192":1,"240":1,"241":1}}],["bool=true",{"2":{"92":1,"145":1,"190":1,"198":1}}],["bool",{"0":{"65":1,"92":1,"113":1,"114":1,"115":1,"127":1,"145":1,"169":1,"190":1,"192":1,"198":1,"235":1,"240":1,"241":1,"248":1,"249":1,"250":1,"253":1},"2":{"61":1,"62":1,"65":1,"127":1,"137":1,"235":1,"243":1,"246":1,"247":1,"248":1,"249":1,"250":1,"253":2}}],["bot",{"0":{"17":1,"33":1,"36":1,"230":1},"1":{"18":1,"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"43":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1},"2":{"19":2,"33":4,"34":1,"35":4,"147":2,"230":3,"231":2,"264":4,"275":1,"283":2,"291":1,"299":3,"300":1}}],["bot无其他插件会占用300~500mb",{"2":{"15":1}}],["be",{"2":{"35":1,"66":1,"69":1,"74":1,"140":1}}],["before",{"0":{"27":1,"30":1,"31":1,"46":1,"48":1,"50":1,"52":1,"54":1,"56":1},"2":{"27":2,"30":2,"31":2,"44":3,"46":2,"48":2,"50":2,"52":3,"54":3,"56":3}}],["bind",{"2":{"298":1}}],["bin",{"2":{"12":1}}],["以上内容仅用于项目的优化",{"2":{"289":1}}],["以避免出现无法预料的问题",{"2":{"287":1}}],["以避免依赖冲突",{"2":{"12":1}}],["以下我们会编写一个简单的插件",{"2":{"283":1}}],["以下为默认值",{"2":{"2":1}}],["以保证litedoc能够正确解析并生成文档",{"2":{"272":1}}],["可用",{"2":{"291":1}}],["可用参数",{"2":{"291":1}}],["可递归",{"2":{"276":1}}],["可调用对象",{"2":{"253":1}}],["可以在配置文件中把auto",{"2":{"289":1}}],["可以在a的index",{"2":{"288":1}}],["可以在此基础上进行修改",{"2":{"287":1}}],["可以在config",{"2":{"270":1}}],["可以很高程度地扩展轻雪的功能",{"2":{"280":1}}],["可以是本地插件或是通过",{"2":{"197":1}}],["可以使用liteyuki镜像",{"2":{"12":1}}],["可使用ws",{"2":{"8":1}}],["help",{"2":{"293":1,"294":1}}],["hello",{"2":{"275":5,"291":1}}],["html中用",{"2":{"288":1}}],["html",{"2":{"288":1}}],["html文件会被覆盖",{"2":{"288":1}}],["html文件",{"2":{"288":2}}],["https",{"2":{"12":2,"13":1}}],["handle",{"0":{"236":1},"2":{"224":1,"225":1,"236":1}}],["handlers",{"2":{"235":1,"236":1,"237":1}}],["handler",{"0":{"245":1},"2":{"145":3,"236":4,"237":2,"245":3,"246":4,"247":4,"248":2}}],["hash",{"0":{"217":1},"2":{"217":2}}],["homepage",{"0":{"214":1}}],["host",{"2":{"1":1}}],["hint",{"2":{"65":1,"190":1,"191":1}}],["环境",{"2":{"12":1}}],["和风天气的天气key",{"2":{"297":1}}],["和10是不一样的",{"2":{"291":1}}],["和config目录下的所有配置文件",{"2":{"115":1}}],["和",{"2":{"12":1,"259":1,"291":1}}],["常规操作",{"2":{"19":1}}],["常规部署",{"0":{"12":1}}],["常见问题",{"0":{"6":1}}],["安装插件",{"2":{"293":1}}],["安装的插件",{"2":{"197":1}}],["安装依赖",{"2":{"12":1}}],["安装",{"0":{"11":1},"1":{"12":1,"13":1,"14":1,"15":1,"16":1},"2":{"12":1,"13":1,"290":1,"294":1}}],["安全模式",{"2":{"2":1}}],["鸣谢",{"0":{"10":1}}],["然后运行python",{"2":{"286":1}}],["然后使用",{"2":{"12":1}}],["然后给轻雪传输数据",{"2":{"8":1}}],["然后用",{"2":{"6":1}}],["看着qq的消息",{"2":{"8":1}}],["人工实现的onebot协议",{"2":{"8":1}}],["需要在最后调用",{"2":{"276":1}}],["需要官方机器人权限",{"2":{"8":1}}],["需要安装ntqq",{"2":{"8":1}}],["原生实现",{"2":{"8":1}}],["group",{"2":{"291":9,"292":1,"293":2,"299":3,"300":1}}],["green>",{"2":{"154":1}}],["guide",{"2":{"272":1}}],["g",{"2":{"199":1,"300":1}}],["gather",{"2":{"45":1,"254":1}}],["generate",{"0":{"191":1,"192":1},"2":{"191":1,"192":3}}],["generic",{"0":{"64":1},"1":{"65":1,"66":1,"67":1,"68":1,"69":1},"2":{"65":2,"66":1}}],["gensokyo",{"2":{"8":1}}],["getattr",{"2":{"253":1}}],["get",{"0":{"33":1,"34":1,"35":1,"76":1,"77":1,"79":1,"80":1,"91":1,"93":1,"99":1,"104":1,"107":1,"153":1,"187":1,"189":1,"190":1,"195":1},"2":{"23":2,"33":2,"34":3,"35":5,"65":2,"66":1,"68":1,"76":2,"77":2,"78":1,"79":4,"80":3,"90":1,"91":4,"92":1,"93":2,"99":1,"102":1,"103":1,"104":3,"106":1,"107":3,"147":1,"153":1,"154":2,"187":1,"189":1,"190":5,"192":3,"193":1,"195":1,"197":3,"198":1,"227":2,"254":1,"264":8,"267":1,"283":2,"291":3,"292":1,"295":2}}],["globalkeyvaluestore",{"0":{"98":1},"1":{"99":1,"100":1,"101":1},"2":{"102":1}}],["global",{"2":{"19":1,"69":1,"293":2,"294":2}}],["gt",{"0":{"19":1,"27":1,"31":1,"33":1,"34":1,"35":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"67":1,"68":1,"69":1,"76":1,"77":1,"90":1,"91":1,"92":1,"93":1,"94":1,"95":1,"109":1,"110":1,"111":1,"112":1,"113":1,"114":1,"115":1,"127":1,"130":1,"145":1,"153":1,"187":1,"190":1,"191":1,"195":1,"197":1,"198":1,"199":1,"236":1,"237":1,"240":1,"241":1,"246":1,"247":1,"248":1,"249":1,"250":1,"253":1,"256":1,"257":1},"2":{"84":3,"109":1,"235":1,"256":1,"272":2,"290":1,"291":7,"293":10,"295":2}}],["github",{"2":{"12":1,"13":1,"259":1}}],["git",{"2":{"12":3,"13":1}}],["golang",{"2":{"8":1}}],["go语言实现的onebot11实现端",{"2":{"8":1}}],["go",{"2":{"8":1}}],["occurred",{"2":{"254":1}}],["other",{"0":{"246":1,"247":1},"2":{"246":2,"247":2}}],["output",{"0":{"192":1},"2":{"192":5}}],["outlook",{"2":{"36":1,"117":1,"146":1,"152":1,"155":1,"196":1,"200":1,"201":1,"224":1,"226":1,"228":1,"232":1,"233":1,"238":1,"242":1,"251":1}}],["order",{"2":{"192":1}}],["or",{"2":{"190":4,"246":2}}],["overall",{"2":{"150":1}}],["observer",{"0":{"135":1},"1":{"136":1,"137":1,"138":1,"139":1,"140":1,"141":1,"142":1,"143":1,"144":1,"145":1},"2":{"145":1,"283":2}}],["os",{"2":{"113":1,"114":3,"187":1,"188":4,"189":2,"190":1,"192":2,"198":9,"283":2}}],["of",{"2":{"66":1,"74":1,"150":1,"197":1}}],["only",{"2":{"69":1}}],["on",{"0":{"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"59":1,"60":1,"69":1,"78":1,"79":1,"80":1,"86":1,"87":1,"95":3,"104":1,"105":1,"106":1,"107":1,"140":1,"141":1,"142":1,"143":1,"144":1,"145":1,"238":1,"240":1,"241":1},"1":{"239":1,"240":1,"241":1},"2":{"27":2,"28":2,"29":2,"30":2,"31":2,"32":2,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"60":2,"65":2,"69":4,"77":1,"78":3,"79":3,"80":2,"86":1,"87":1,"95":11,"96":1,"103":1,"104":3,"105":3,"106":3,"107":2,"140":2,"141":2,"142":2,"143":2,"144":2,"145":2,"224":1,"225":1,"238":1,"240":1,"241":4,"264":6,"283":1}}],["onebot",{"2":{"2":1,"3":1,"8":2,"278":1,"291":1}}],["open",{"2":{"22":1,"110":1,"111":1,"112":1,"188":1,"190":1}}],["openshamrock",{"2":{"8":1}}],["option",{"2":{"290":1}}],["optional",{"0":{"23":1,"65":1,"69":1,"91":2,"197":1,"222":1,"230":2},"2":{"22":1,"23":2,"34":1,"35":1,"65":1,"69":3,"89":2,"91":3,"197":1,"230":2}}],["opt",{"2":{"20":2,"197":3}}],["基础插件",{"0":{"290":1},"1":{"291":1,"292":1,"293":1,"294":1,"295":1}}],["基础路径",{"2":{"187":1}}],["基础配置项",{"0":{"1":1}}],["基于",{"2":{"8":1,"259":1}}],["基于node",{"2":{"8":1}}],["基于ntqq的onebot实现",{"2":{"8":1}}],["基于lsposed的onebot11实现",{"2":{"8":1}}],["qq群号",{"2":{"299":1}}],["qq官方机器人api",{"2":{"8":1}}],["qq",{"0":{"8":1}}],["quot",{"2":{"3":2,"272":1,"279":2,"291":2,"297":4}}],["推荐私聊使用",{"2":{"291":1}}],["推荐在编写html时同时更改对应js代码",{"2":{"287":1}}],["推荐",{"2":{"272":1}}],["推荐ubuntu",{"2":{"15":1}}],["推荐使用arch",{"2":{"14":1}}],["推荐使用虚拟环境来运行轻雪",{"2":{"12":1}}],["推荐使用反向ws协议进行通信",{"2":{"3":1}}],["推荐方案",{"0":{"8":1,"9":1}}],["仍然出现问题",{"2":{"6":1}}],["登录功能由实现端",{"2":{"6":1}}],["本项目不会收集用户的任何隐私信息",{"2":{"289":1}}],["本项目不负责实现登录功能",{"2":{"6":1}}],["本项目遵循mit协议",{"2":{"289":1}}],["本项目是一个非盈利的开源项目",{"2":{"273":1}}],["本模块用于轻雪主进程和子进程之间的通信的事件类",{"2":{"81":1}}],["本模块定义了一个通用的通道类",{"2":{"58":1}}],["本机默认为127",{"2":{"3":1}}],["例如npm",{"2":{"290":1}}],["例如nonebot插件中",{"2":{"264":1}}],["例如你在a中定义了templates",{"2":{"288":1}}],["例如html",{"2":{"287":1}}],["例如main",{"2":{"286":1}}],["例如watchdog",{"2":{"282":1,"285":1}}],["例如",{"2":{"275":2,"288":1,"297":1}}],["例如test",{"2":{"275":1,"286":1}}],["例如子进程接收到用户信息需要重启机器人",{"2":{"263":1}}],["例如qq",{"2":{"6":1}}],["例如一个命令是help",{"2":{"6":1}}],["怎么登录聊天平台",{"2":{"6":1}}],["报错invalidgitrepositoryerror",{"2":{"6":1}}],["冲突",{"2":{"6":1}}],["确认插件必要配置项完好后",{"2":{"6":1}}],["确认命令头没有和nickname",{"2":{"6":1}}],["确认你有权限使用命令并按照正确的命令发送",{"2":{"6":1}}],["其中type字段为commit类型且可选",{"2":{"272":1}}],["其中",{"2":{"6":1,"271":1}}],["其他插件框架进程是伴随的子进程",{"2":{"263":1}}],["其他插件占用视具体插件而定",{"2":{"15":1}}],["其他插件自带的调试功能也将开启",{"2":{"2":1}}],["其他问题请移步至",{"0":{"16":1}}],["其他问题",{"0":{"7":1}}],["其他",{"0":{"4":1,"261":1}}],["其他nonebot插件的配置项",{"2":{"2":1}}],["其他配置",{"0":{"2":1}}],["raw",{"0":{"230":1},"2":{"225":1,"230":3,"231":1,"241":1}}],["raise",{"2":{"33":2,"65":3,"66":2,"67":1,"69":1,"74":2,"92":1,"95":1,"97":1,"132":1,"140":1}}],["rulehandlerfunc",{"0":{"243":1,"245":1},"2":{"245":1}}],["rule=empty",{"2":{"240":1,"241":1}}],["rule=is",{"2":{"224":1,"225":1}}],["rule",{"0":{"235":2,"240":3,"241":2,"242":1,"244":1,"246":2,"247":2,"249":1,"250":1},"1":{"243":1,"244":1,"245":2,"246":2,"247":2,"248":2,"249":1,"250":1},"2":{"224":1,"225":1,"235":5,"237":1,"240":3,"241":5,"242":1,"246":3,"247":3,"248":1,"249":3,"250":2}}],["running",{"2":{"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"65":1,"68":1,"89":2,"254":2}}],["runtimeerror",{"2":{"33":2,"66":1,"67":1,"69":1,"95":1,"97":1,"254":1}}],["run",{"0":{"20":1,"45":1,"96":1,"147":1,"237":1,"254":1,"255":1},"2":{"13":1,"20":3,"45":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"68":1,"96":1,"97":1,"122":1,"147":2,"237":1,"254":3,"255":1,"286":2}}],["r>",{"2":{"197":2}}],["rv",{"2":{"192":2}}],["rk",{"2":{"192":2}}],["rmtree",{"2":{"192":1}}],["rpm",{"2":{"293":5,"294":1}}],["rp",{"2":{"188":4}}],["rpc",{"2":{"84":1}}],["rights",{"2":{"36":1,"117":1,"146":1,"152":1,"155":1,"196":1,"200":1,"201":1,"224":1,"226":1,"228":1,"232":1,"233":1,"238":1,"242":1,"251":1}}],["root",{"2":{"13":1,"189":2}}],["request",{"2":{"269":1}}],["required",{"2":{"65":1}}],["requirements",{"2":{"6":1,"12":1,"15":1}}],["reply",{"0":{"231":1},"2":{"225":1,"231":3}}],["replace",{"2":{"190":3,"191":4,"192":8}}],["report设定为false",{"2":{"289":1}}],["report",{"2":{"1":1,"289":1}}],["readme",{"2":{"192":2}}],["read",{"2":{"190":1}}],["reload",{"2":{"291":1,"292":2,"293":1,"294":1}}],["reloading",{"2":{"283":1}}],["rel",{"2":{"192":4,"256":5}}],["relpath",{"2":{"187":1}}],["relative",{"0":{"187":1},"2":{"187":1,"192":1,"193":1,"256":1}}],["red>",{"2":{"154":1}}],["remove",{"2":{"154":1}}],["ref",{"0":{"103":1}}],["recursive=recursive",{"2":{"145":1}}],["recursive",{"0":{"145":1},"2":{"145":2}}],["recv",{"2":{"65":2,"67":2,"76":5,"77":5,"79":3,"80":3,"91":5,"93":5,"104":3,"107":3}}],["receive",{"0":{"59":1,"60":1,"67":1,"68":1,"69":1,"86":1,"87":1,"95":3,"96":1,"97":1,"230":1},"2":{"60":2,"65":3,"67":2,"68":2,"69":4,"76":1,"77":2,"78":2,"79":2,"80":1,"86":1,"87":1,"89":2,"91":1,"93":1,"95":11,"96":2,"97":4,"103":1,"104":2,"105":2,"106":2,"107":1,"230":3,"231":3,"264":11}}],["resources",{"2":{"271":1,"287":1,"288":1,"292":1}}],["resolve",{"2":{"256":2}}],["reserved",{"2":{"36":1,"117":1,"146":1,"152":1,"155":1,"196":1,"200":1,"201":1,"224":1,"226":1,"228":1,"232":1,"233":1,"238":1,"242":1,"251":1}}],["restarting",{"2":{"22":1}}],["restart",{"0":{"22":1,"23":1,"31":1,"32":1,"50":1,"51":1,"56":1,"57":1},"2":{"19":1,"22":3,"23":1,"31":2,"32":2,"44":2,"50":2,"51":2,"56":3,"57":3,"283":2}}],["returns",{"2":{"190":4}}],["return",{"0":{"165":1},"2":{"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":3,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"67":1,"68":1,"69":6,"76":2,"77":2,"91":2,"93":2,"95":2,"99":1,"109":1,"110":1,"111":1,"112":1,"113":1,"114":1,"115":1,"125":1,"127":1,"130":1,"138":3,"145":3,"153":2,"187":1,"189":1,"190":3,"191":3,"195":1,"197":2,"198":1,"199":1,"217":1,"236":2,"237":1,"240":1,"241":2,"246":2,"247":2,"248":2,"249":1,"250":1,"253":3,"256":2,"257":2}}],["r",{"2":{"6":1,"12":1,"15":1,"110":1,"111":1,"112":1,"190":1}}],["msg",{"2":{"291":1}}],["mcfunction",{"2":{"275":2}}],["mkdir",{"2":{"192":1}}],["mkdoc",{"0":{"155":1},"1":{"156":1,"157":1,"158":1,"159":1,"160":1,"161":1,"162":1,"163":1,"164":1,"165":1,"166":1,"167":1,"168":1,"169":1,"170":1,"171":1,"172":1,"173":1,"174":1,"175":1,"176":1,"177":1,"178":1,"179":1,"180":1,"181":1,"182":1,"183":1,"184":1,"185":1,"186":1,"187":1,"188":1,"189":1,"190":1,"191":1,"192":1,"193":1},"2":{"155":1}}],["md",{"2":{"192":13}}],["member",{"2":{"291":1}}],["memory",{"0":{"102":1},"2":{"89":3,"103":1,"104":3,"105":3,"106":3,"107":2,"123":1,"267":3}}],["message的语言",{"2":{"272":1}}],["message的格式为",{"2":{"272":1}}],["message字段为简短的描述",{"2":{"272":1}}],["message请遵循以下规范",{"2":{"272":1}}],["message=",{"2":{"231":1,"291":1}}],["message=message",{"2":{"231":1}}],["message",{"0":{"230":3,"231":1,"240":1},"2":{"225":1,"230":9,"231":5,"240":1,"241":2,"272":1,"299":1,"300":1}}],["messageevent",{"0":{"225":1,"229":1,"230":1,"237":1,"248":1,"249":1,"250":1},"1":{"230":1,"231":1},"2":{"225":1,"230":1,"231":1,"237":1,"241":1,"243":1,"246":1,"247":1,"248":1,"249":1,"250":1}}],["meta",{"2":{"197":4,"282":1}}],["metadata",{"0":{"222":1},"2":{"197":13}}],["methods=",{"2":{"190":1}}],["methods",{"0":{"178":1},"2":{"190":1,"191":1}}],["method",{"0":{"158":2,"159":1,"160":1},"2":{"190":5,"191":13}}],["moved",{"0":{"143":1},"2":{"143":1}}],["moduletype",{"0":{"220":1}}],["module=module",{"2":{"197":1}}],["moduleinfo",{"0":{"181":1,"190":1,"191":1},"1":{"182":1,"183":1,"184":1,"185":1,"186":1},"2":{"190":2,"191":1}}],["module",{"0":{"147":1,"182":1,"189":1,"190":1,"191":1,"192":1,"193":1,"197":1,"205":2,"220":1,"221":1,"256":1},"2":{"147":3,"150":1,"189":2,"190":11,"191":5,"192":19,"193":1,"197":26,"198":9,"199":1,"217":1,"223":1,"256":1}}],["modified",{"0":{"140":1},"2":{"140":2,"141":1,"142":1,"143":1,"144":1,"145":4}}],["model",{"0":{"201":1,"218":1},"1":{"202":1,"203":1,"204":1,"205":1,"206":1,"207":1,"208":1,"209":1,"210":1,"211":1,"212":1,"213":1,"214":1,"215":1,"216":1,"217":1,"218":1,"219":1,"220":1,"221":1,"222":1},"2":{"201":1,"259":1}}],["mode为true",{"2":{"135":1}}],["mode",{"2":{"2":2,"6":1,"270":1,"291":2,"292":1}}],["must",{"2":{"66":1,"74":1,"140":1}}],["marsho",{"2":{"259":1}}],["markdown",{"0":{"191":1},"2":{"191":2,"192":1}}],["matcher",{"0":{"233":1,"234":1,"239":3,"240":1,"241":1},"1":{"234":1,"235":2,"236":2,"237":2},"2":{"233":1,"239":9,"240":6,"241":1}}],["match",{"2":{"199":1}}],["matter=none",{"2":{"191":1}}],["matter",{"0":{"191":1},"2":{"191":4,"192":3}}],["makedirs",{"2":{"188":1}}],["manually",{"2":{"65":1}}],["manager",{"0":{"117":1,"200":1},"1":{"118":1,"119":1,"120":1,"121":1,"122":1,"123":1,"124":1,"125":1,"126":1,"127":1,"128":1,"129":1,"130":1,"131":1,"132":1,"133":1},"2":{"19":1,"20":1,"22":1,"23":1,"26":1,"117":1,"200":1}}],["maplemono提供的字体",{"2":{"10":1}}],["mainprocess",{"2":{"263":1}}],["main",{"0":{"86":1},"2":{"6":1,"12":1,"33":1,"65":4,"69":4,"74":1,"76":1,"77":1,"89":1,"90":1,"91":1,"92":1,"93":1,"95":5,"96":1,"97":1,"264":6,"271":1,"286":1}}],["misans",{"2":{"10":1}}],["minecraftonebot",{"2":{"9":1}}],["minecraft",{"0":{"9":1}}],["m",{"2":{"6":1,"12":1,"15":1,"199":1,"239":2,"300":1}}],["答疑",{"0":{"5":1},"1":{"6":1,"7":1,"8":1,"9":1,"10":1}}],["要使用其他通信方式请访问onebot",{"2":{"3":1}}],["如",{"2":{"272":2}}],["如需往轻雪仓库提交代码",{"2":{"269":1}}],["如需自定义请手动添加",{"2":{"2":1}}],["如何开发",{"0":{"269":1},"1":{"270":1}}],["如果是文档相关的开发",{"2":{"269":1}}],["如果你接触过minecraft的资源包",{"2":{"287":1}}],["如果你想同时输出多行内容可以尝试换行符",{"2":{"275":1}}],["如果你没有安装git直接下载源代码运行",{"2":{"15":1}}],["如果你给轻雪配置了accesstoken",{"2":{"3":1}}],["如果装置上有多个环境",{"2":{"15":1}}],["version=",{"2":{"282":1}}],["version",{"0":{"151":1},"2":{"288":1}}],["venv来创建虚拟环境",{"2":{"12":1}}],["venv",{"2":{"12":3}}],["validate",{"2":{"66":1}}],["value=ast",{"2":{"190":1}}],["value",{"0":{"90":1,"173":1},"2":{"90":5,"105":3,"109":3,"190":6,"191":3,"267":2,"291":2,"295":1}}],["valueerror",{"2":{"65":2,"74":1}}],["value2",{"2":{"2":1}}],["value1",{"2":{"2":1}}],["var=value",{"2":{"276":1}}],["var2=value2",{"2":{"276":1}}],["var1=value1>",{"2":{"276":1}}],["var",{"0":{"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"59":1,"60":1,"61":1,"62":1,"63":1,"70":1,"71":1,"72":1,"73":1,"86":1,"87":1,"102":1,"103":1,"136":1,"137":1,"151":1,"193":1,"243":1},"2":{"191":2}}],["v",{"2":{"13":2,"109":2,"191":2}}],["v11协议api",{"2":{"291":2}}],["v11",{"2":{"3":1,"278":1}}],["地址取决于配置文件",{"2":{"3":1}}],["地址",{"2":{"3":1}}],["反向websocket",{"2":{"3":1}}],["协议端",{"2":{"6":1}}],["协议",{"2":{"3":1}}],["说明",{"2":{"3":1,"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"59":1,"60":1,"61":1,"62":1,"63":1,"65":1,"66":1,"67":1,"68":1,"69":1,"70":1,"71":1,"72":1,"73":1,"74":1,"75":1,"76":1,"77":1,"86":1,"87":1,"90":1,"91":1,"92":1,"93":1,"94":1,"95":1,"96":1,"97":1,"102":1,"103":1,"109":1,"110":1,"111":1,"112":1,"113":1,"114":1,"115":1,"122":1,"123":1,"125":1,"127":1,"131":1,"132":1,"133":1,"136":1,"137":1,"138":1,"145":1,"147":1,"151":1,"154":1,"187":1,"188":1,"190":1,"191":1,"192":1,"193":1,"195":1,"197":1,"198":1,"199":1,"227":1,"230":1,"231":1,"235":1,"236":1,"237":1,"243":1,"253":1,"254":1,"255":1,"256":1,"257":1,"291":1,"293":2,"295":1}}],["不带key返回配置项列表",{"2":{"291":1}}],["不包含任何隐私信息",{"2":{"289":1}}],["不含隐私部分",{"2":{"289":1}}],["不含插件数据",{"2":{"289":1}}],["不同adapter",{"2":{"278":1}}],["不同的实现端给出的字段可能不同",{"2":{"3":1}}],["不限制commit",{"2":{"272":1}}],["不要出现无法访问的死链接",{"2":{"272":1}}],["不要出现过多的嵌套",{"2":{"108":1}}],["不要将多个功能或多个bug的代码混在一起提交",{"2":{"272":1}}],["不递归",{"2":{"114":1}}],["不是liteyukibot官方提供的功能",{"2":{"14":1}}],["不再使用外层配置",{"2":{"1":1}}],["与nonebot对接的onebot实现端配置",{"0":{"3":1}}],["示例",{"0":{"3":1,"264":1,"267":1,"277":1}}],["监听目录们",{"2":{"145":1}}],["监听地址",{"2":{"1":1}}],["监视文件变化并自动重载",{"2":{"2":1}}],["开始",{"0":{"281":1},"1":{"282":1,"283":1,"284":1,"285":1,"286":1}}],["开发文档是详细的",{"2":{"272":1}}],["开发过程中可以使用mypy",{"2":{"270":1}}],["开发指南",{"0":{"268":1},"1":{"269":1,"270":1,"271":1,"272":1,"273":1}}],["开发者模式",{"2":{"2":1}}],["开发者选项",{"2":{"2":1}}],["开启后将会启动监视者",{"2":{"2":1}}],["开启后将不会加载任何第三方nonebot插件",{"2":{"2":1}}],["开启会自动重载bot或者资源",{"2":{"2":1}}],["2s戳两次",{"2":{"277":1}}],["22",{"2":{"224":1}}],["27",{"2":{"117":1,"152":1}}],["24",{"2":{"36":1,"201":1}}],["23",{"2":{"36":1,"155":1,"196":1,"200":1}}],["20代替空格",{"2":{"291":1}}],["20和end",{"2":{"277":1}}],["2024",{"2":{"36":2,"117":2,"146":2,"152":2,"155":2,"196":2,"200":2,"201":2,"224":2,"226":2,"228":2,"232":2,"233":2,"238":2,"242":2,"251":2}}],["2020",{"2":{"36":1,"117":1,"146":1,"152":1,"155":1,"196":1,"200":1,"201":1,"224":1,"226":1,"228":1,"232":1,"233":1,"238":1,"242":1,"251":1}}],["20216中的20216替换为你的端口号",{"2":{"13":1}}],["20216",{"2":{"1":1,"3":2,"13":2}}],["20",{"2":{"15":1}}],["2019+",{"2":{"15":1}}],["2",{"2":{"2":1,"277":1,"288":1}}],["建议",{"0":{"270":1}}],["建议1gb以上",{"2":{"15":1}}],["建议开启",{"2":{"2":1}}],["建议迁移到liteyuki下",{"2":{"1":1}}],["默认普通图片",{"2":{"291":1}}],["默认开启",{"2":{"289":1}}],["默认插件加载器",{"2":{"227":1}}],["默认执行扁平化选项",{"2":{"113":1,"114":1}}],["默认值",{"2":{"34":1,"35":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"59":1,"60":1,"61":1,"62":1,"63":1,"70":1,"71":1,"72":1,"73":1,"86":1,"87":1,"91":1,"102":1,"103":1,"136":1,"137":1,"151":1,"193":1,"243":1}}],["默认false",{"2":{"2":1}}],["默认语言",{"2":{"2":1}}],["默认为本机",{"2":{"1":1}}],["city",{"2":{"297":1,"298":1}}],["css相对路径引用b中的css",{"2":{"288":1}}],["css",{"2":{"287":1,"288":1}}],["cwd",{"2":{"256":1}}],["cfg",{"2":{"147":4}}],["current|bot",{"2":{"299":1}}],["current|group",{"2":{"299":1}}],["current",{"2":{"138":3,"299":2,"300":1}}],["custom",{"2":{"2":4}}],["created",{"0":{"141":1},"2":{"141":1}}],["create",{"2":{"96":1}}],["child",{"2":{"190":2}}],["check",{"0":{"65":1},"2":{"65":8,"66":1}}],["change",{"2":{"293":1,"294":1}}],["changed",{"2":{"283":1}}],["channel时的通道标识",{"2":{"264":1}}],["channel即可",{"2":{"264":1}}],["channel及passive",{"2":{"264":1}}],["channel函数获取通道对象",{"2":{"264":2}}],["channel=none",{"2":{"231":1}}],["channeldeliver",{"0":{"118":1},"1":{"119":1},"2":{"123":1}}],["channels",{"0":{"75":2,"77":1,"80":1},"2":{"75":4,"77":2,"79":1,"80":3}}],["channel",{"0":{"58":1,"64":1,"70":1,"71":1,"72":2,"73":2,"74":3,"75":1,"76":2,"77":1,"78":1,"79":1,"94":1,"95":1,"96":1,"119":8,"230":2},"1":{"59":1,"60":1,"61":1,"62":1,"63":1,"64":1,"65":2,"66":2,"67":2,"68":2,"69":2,"70":1,"71":1,"72":1,"73":1,"74":1,"75":1,"76":1,"77":1,"78":1,"79":1,"80":1},"2":{"23":2,"65":7,"66":1,"67":1,"70":3,"71":3,"72":2,"73":1,"74":19,"75":5,"76":9,"77":10,"78":11,"79":7,"80":2,"84":2,"89":4,"91":1,"93":1,"94":4,"95":8,"96":3,"97":2,"119":12,"123":12,"230":4,"231":2,"264":12}}],["chan",{"2":{"23":4,"76":5,"77":5,"79":3,"80":3,"89":2,"90":1,"91":6,"92":1,"93":6,"94":1,"97":1,"103":1,"104":5,"105":2,"106":2,"107":4,"123":2}}],["c",{"2":{"36":1,"109":1,"117":1,"146":1,"152":1,"155":1,"196":1,"199":1,"200":1,"201":1,"224":1,"226":1,"228":1,"232":1,"233":1,"238":1,"242":1,"251":1,"254":4,"256":2,"300":1}}],["cmd",{"2":{"22":5,"275":2,"276":1}}],["case",{"2":{"199":4}}],["category",{"2":{"191":1,"192":2}}],["cannot",{"2":{"66":1,"67":1,"95":1,"97":1}}],["can",{"2":{"33":1,"69":1}}],["callback",{"0":{"136":1,"145":2},"2":{"69":1,"145":4}}],["callable",{"0":{"69":3,"95":1,"130":1,"145":1,"236":1,"253":2,"257":2},"2":{"37":1,"38":1,"40":1,"41":1,"45":1,"59":1,"61":1,"62":1,"69":10,"95":2,"121":1,"130":1,"136":1,"137":1,"145":1,"236":1,"243":1,"253":2,"257":4}}],["call",{"0":{"253":1},"2":{"19":1,"22":2,"138":4,"248":1,"253":7}}],["cache",{"2":{"13":2}}],["cls",{"0":{"99":1},"2":{"99":6,"190":1,"191":11}}],["close",{"2":{"254":1}}],["closed",{"2":{"65":1,"66":2,"67":2}}],["clone",{"2":{"12":1,"13":1}}],["classdef",{"2":{"190":3}}],["classes=",{"2":{"190":1}}],["classes",{"0":{"184":1},"2":{"190":1,"191":1}}],["classinfo",{"0":{"175":1,"184":1},"1":{"176":1,"177":1,"178":1,"179":1,"180":1},"2":{"190":1}}],["classmethod",{"0":{"160":1},"2":{"98":1,"99":1,"190":1}}],["class",{"0":{"18":1,"43":1,"64":1,"82":1,"88":1,"98":1,"118":1,"120":1,"128":1,"139":1,"149":1,"156":1,"160":1,"162":1,"170":1,"175":1,"181":1,"202":1,"208":1,"216":1,"229":1,"234":1,"244":1},"1":{"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"65":1,"66":1,"67":1,"68":1,"69":1,"83":1,"89":1,"90":1,"91":1,"92":1,"93":1,"94":1,"95":1,"96":1,"97":1,"99":1,"100":1,"101":1,"119":1,"121":1,"122":1,"123":1,"124":1,"125":1,"126":1,"127":1,"129":1,"130":1,"131":1,"132":1,"133":1,"140":1,"141":1,"142":1,"143":1,"144":1,"157":1,"158":1,"159":1,"160":1,"161":1,"163":1,"164":1,"165":1,"166":1,"167":1,"168":1,"169":1,"171":1,"172":1,"173":1,"174":1,"176":1,"177":1,"178":1,"179":1,"180":1,"182":1,"183":1,"184":1,"185":1,"186":1,"203":1,"204":1,"205":1,"206":1,"207":1,"209":1,"210":1,"211":1,"212":1,"213":1,"214":1,"215":1,"217":1,"218":1,"219":1,"220":1,"221":1,"222":1,"230":1,"231":1,"235":1,"236":1,"237":1,"245":1,"246":1,"247":1,"248":1},"2":{"190":24,"191":2}}],["cpu",{"2":{"15":1,"289":1}}],["centos",{"2":{"15":1}}],["cd",{"2":{"12":1,"13":1}}],["cqhttp",{"2":{"8":1}}],["color",{"2":{"199":7}}],["color=",{"2":{"154":5}}],["colors=true",{"2":{"20":2,"197":3}}],["code插件liteyuki",{"2":{"279":1}}],["code=ast",{"2":{"190":2}}],["code",{"0":{"167":1},"2":{"145":3,"191":6,"192":2}}],["codemodifiedhandler",{"0":{"139":1},"1":{"140":1,"141":1,"142":1,"143":1,"144":1},"2":{"145":1}}],["coro",{"0":{"254":1,"255":1},"2":{"254":5,"255":2}}],["coroutine",{"0":{"253":1,"254":2,"255":2,"257":1},"2":{"45":1,"62":1,"69":2,"95":1,"243":1,"253":1,"254":2,"255":3,"257":2}}],["core",{"0":{"116":1,"117":1},"1":{"118":1,"119":1,"120":1,"121":1,"122":1,"123":1,"124":1,"125":1,"126":1,"127":1,"128":1,"129":1,"130":1,"131":1,"132":1,"133":1}}],["copy",{"2":{"109":1}}],["copyright",{"2":{"36":1,"117":1,"146":1,"152":1,"155":1,"196":1,"200":1,"201":1,"224":1,"226":1,"228":1,"232":1,"233":1,"238":1,"242":1,"251":1}}],["content",{"2":{"190":2,"191":17,"192":2}}],["continue",{"2":{"114":1,"190":1,"192":1,"198":3}}],["conn",{"2":{"65":4,"66":1,"67":1}}],["configs",{"0":{"114":1},"2":{"114":1,"115":1}}],["config=self",{"2":{"25":1}}],["config",{"0":{"34":1,"35":1,"108":1,"109":2,"115":1,"154":1,"218":1},"1":{"109":1,"110":1,"111":1,"112":1,"113":1,"114":1,"115":1},"2":{"2":2,"19":2,"25":1,"34":2,"35":6,"109":9,"110":6,"111":6,"112":6,"113":7,"114":4,"115":9,"147":1,"154":3,"227":2,"291":4,"292":1}}],["count",{"0":{"103":1},"2":{"19":1,"22":2}}],["combined",{"2":{"246":2,"247":2}}],["commit",{"2":{"272":2}}],["comm",{"0":{"58":1,"81":1,"84":1,"85":1},"1":{"59":1,"60":1,"61":1,"62":1,"63":1,"64":1,"65":1,"66":1,"67":1,"68":1,"69":1,"70":1,"71":1,"72":1,"73":1,"74":1,"75":1,"76":1,"77":1,"78":1,"79":1,"80":1,"82":1,"83":1,"86":1,"87":1,"88":1,"89":1,"90":1,"91":1,"92":1,"93":1,"94":1,"95":1,"96":1,"97":1,"98":1,"99":1,"100":1,"101":1,"102":1,"103":1,"104":1,"105":1,"106":1,"107":1},"2":{"264":2,"267":2}}],["command>",{"2":{"276":2}}],["command",{"0":{"291":1},"1":{"292":1},"2":{"1":2}}],["complete",{"2":{"254":2}}],["completion",{"2":{"2":1}}],["compat",{"0":{"35":2},"2":{"35":8}}],["com",{"2":{"12":1,"13":1,"36":1,"117":1,"146":1,"152":1,"155":1,"196":1,"200":1,"201":1,"224":1,"226":1,"228":1,"232":1,"233":1,"238":1,"242":1,"251":1}}],["cn",{"0":{"191":1,"192":1},"2":{"2":1,"191":2,"192":1}}],["duration>",{"2":{"299":1}}],["duration",{"2":{"299":2,"300":1}}],["driver",{"2":{"264":4}}],["dog",{"2":{"282":1,"283":1}}],["does",{"2":{"198":1}}],["dot",{"2":{"190":1}}],["docs",{"0":{"192":1},"2":{"192":3,"271":1,"291":1,"292":1}}],["docstring或liteyuki",{"2":{"272":1}}],["docstring=method",{"2":{"190":1}}],["docstring=module",{"2":{"190":1}}],["docstring=class",{"2":{"190":1}}],["docstring=function",{"2":{"190":1}}],["docstring",{"0":{"166":1,"174":1,"177":1,"186":1},"2":{"190":16,"191":12,"272":1}}],["docker相关内容目录",{"2":{"271":1}}],["docker",{"2":{"13":3,"271":1}}],["d",{"2":{"103":2,"104":4,"105":4,"106":4,"107":2,"256":2,"300":1}}],["data=",{"2":{"231":1}}],["data",{"0":{"66":1,"78":1,"79":1,"80":1,"83":1,"94":1,"96":1,"104":1,"105":1,"106":1,"107":1,"188":1,"230":1},"2":{"66":6,"67":2,"68":2,"69":5,"77":2,"78":7,"79":7,"80":4,"83":3,"94":4,"95":3,"96":3,"97":6,"104":4,"105":3,"106":2,"107":2,"188":5,"192":5,"230":5,"264":7}}],["daemon=true",{"2":{"22":1,"122":1,"255":1}}],["darwin",{"2":{"22":1}}],["disable",{"2":{"291":1,"292":1,"293":2,"294":2}}],["display",{"0":{"199":2},"2":{"197":7,"199":4}}],["diagnose=false",{"2":{"154":1}}],["dir",{"0":{"192":1,"198":1},"2":{"192":5,"198":16,"227":2}}],["dirname",{"2":{"188":2}}],["directory",{"2":{"114":6,"145":2,"198":1}}],["directories=",{"2":{"283":1}}],["directories",{"0":{"114":1,"145":1},"2":{"114":2,"145":3}}],["dirs",{"0":{"114":1},"2":{"1":1,"114":1,"115":1,"189":1,"227":1}}],["dict",{"0":{"75":1,"77":1,"78":1,"79":1,"80":1,"83":1,"93":1,"104":1,"105":1,"106":1,"107":1,"109":2,"110":1,"111":1,"112":1,"113":1,"114":1,"115":1,"119":1,"154":1,"188":1,"195":1,"215":1,"230":2,"231":1},"2":{"19":1,"73":1,"75":2,"77":3,"78":1,"79":1,"80":1,"83":1,"86":1,"87":1,"89":2,"93":3,"104":1,"105":1,"106":1,"107":1,"109":3,"110":1,"111":1,"112":1,"113":1,"114":1,"115":1,"119":1,"121":3,"129":1,"154":1,"188":1,"192":1,"195":2,"197":6,"230":2,"231":1}}],["description=",{"2":{"282":1}}],["description",{"0":{"210":1},"2":{"288":1}}],["details>",{"2":{"191":4}}],["debounce",{"0":{"138":1},"2":{"138":1,"139":1,"140":1}}],["debug",{"2":{"2":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"65":2,"110":1,"111":1,"112":1,"122":1,"133":1,"153":2,"154":2,"283":1}}],["deepcopy",{"2":{"109":1}}],["del",{"2":{"92":2}}],["deleted",{"0":{"142":1},"2":{"142":1}}],["delete",{"0":{"92":1,"106":1},"2":{"92":2,"105":1,"106":3}}],["delivery",{"2":{"123":1}}],["deliver",{"0":{"72":1,"73":1,"119":2},"2":{"74":1,"76":1,"77":2,"78":2,"79":2,"80":1,"119":6,"123":6}}],["delay",{"0":{"22":1},"2":{"22":3}}],["decorator",{"2":{"69":2,"95":2,"130":2,"138":2,"145":2,"190":13,"236":2}}],["deprecated",{"2":{"35":1}}],["depth=1",{"2":{"12":1,"13":1}}],["deftype",{"0":{"156":1,"168":1},"1":{"157":1,"158":1,"159":1,"160":1,"161":1},"2":{"190":4,"191":1}}],["def",{"2":{"21":1,"45":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"68":1,"69":2,"78":1,"79":1,"80":1,"95":2,"96":1,"97":1,"99":1,"104":1,"105":1,"106":1,"107":1,"130":1,"138":2,"140":1,"145":2,"190":4,"191":2,"225":1,"236":1,"237":1,"241":1,"246":1,"247":1,"248":1,"249":1,"250":1,"257":1,"264":3,"283":1}}],["defaults",{"2":{"22":1,"23":1,"34":1,"35":1,"69":1}}],["default",{"0":{"34":1,"35":1,"91":1,"115":1,"163":1,"164":1,"165":1,"166":1,"168":1,"169":1,"171":1,"172":1,"176":1,"177":1,"178":1,"179":1,"180":1,"182":1,"183":1,"184":1,"185":1,"186":1,"209":1,"219":1,"220":1,"221":1,"227":1},"2":{"2":1,"34":3,"35":3,"72":1,"73":1,"91":5,"104":3,"115":1,"147":1,"153":1,"227":1}}],["developer",{"2":{"282":1}}],["dev",{"0":{"134":1,"135":1,"146":1},"1":{"136":1,"137":1,"138":1,"139":1,"140":1,"141":1,"142":1,"143":1,"144":1,"145":1,"147":1},"2":{"2":1,"283":1,"286":1}}],["访问令牌",{"2":{"2":1}}],["a包中的index",{"2":{"288":1}}],["am",{"2":{"264":6}}],["amp",{"0":{"247":1}}],["arbitrary",{"0":{"218":1}}],["arg",{"2":{"190":13,"191":16}}],["argv",{"2":{"22":1}}],["args=coro",{"2":{"255":1}}],["args=",{"2":{"22":1,"122":1,"190":2}}],["args",{"0":{"24":1,"45":1,"54":1,"56":1,"123":1,"130":1,"131":1,"164":1},"2":{"22":2,"24":2,"45":3,"54":2,"56":2,"123":3,"130":2,"131":3,"138":2,"190":8,"191":8,"257":2,"291":4}}],["abs",{"2":{"192":4}}],["application",{"0":{"203":2},"2":{"199":1}}],["append",{"2":{"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"69":2,"95":2,"189":1,"190":5,"236":1,"239":1}}],["api格式为onebot",{"2":{"291":1}}],["api文档",{"2":{"278":1}}],["api也有差别",{"2":{"278":1}}],["api",{"0":{"278":1},"2":{"192":6,"261":1,"276":3,"277":2,"291":3}}],["add",{"0":{"123":1,"131":1,"239":1},"2":{"123":1,"131":1,"154":1,"198":1,"239":1,"240":1}}],["adapter获取详细信息",{"2":{"3":1}}],["attributes=",{"2":{"190":2}}],["attributes",{"0":{"179":1,"185":1},"2":{"190":2,"191":2}}],["attributeinfo",{"0":{"170":1,"179":1,"185":1},"1":{"171":1,"172":1,"173":1,"174":1},"2":{"190":2}}],["attr",{"0":{"100":1,"101":1,"157":1,"158":1,"159":1,"160":1,"161":1,"163":1,"164":1,"165":1,"166":1,"167":1,"168":1,"169":1,"171":1,"172":1,"173":1,"174":1,"176":1,"177":1,"178":1,"179":1,"180":1,"182":1,"183":1,"184":1,"185":1,"186":1,"203":1,"204":1,"205":1,"206":1,"207":1,"209":1,"210":1,"211":1,"212":1,"213":1,"214":1,"215":1,"218":1,"219":1,"220":1,"221":1,"222":1},"2":{"190":2,"191":14}}],["assign",{"2":{"190":2}}],["ast",{"2":{"190":29}}],["as",{"2":{"92":1,"188":1,"190":1,"197":1,"254":1}}],["asynchronous",{"2":{"257":1}}],["async=isinstance",{"2":{"190":2}}],["asyncfunctiondef",{"2":{"190":3}}],["async",{"0":{"21":1,"38":1,"41":1,"45":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"62":1,"68":2,"96":1,"97":1,"169":1,"225":1,"237":1,"248":1,"249":1,"250":1,"257":1},"2":{"39":1,"42":1,"45":3,"60":1,"63":1,"68":1,"69":1,"86":1,"87":1,"95":1,"96":1,"97":1,"191":4,"225":1,"241":1,"246":1,"247":1,"249":1,"250":1,"257":2,"264":2}}],["asyncio",{"2":{"19":2,"20":1,"21":1,"45":1,"68":1,"96":1,"254":5,"264":2}}],["a",{"2":{"66":1,"67":1,"109":1,"192":2,"198":1,"256":1,"282":1}}],["annassign",{"2":{"190":1}}],["annotation",{"2":{"190":6}}],["an",{"2":{"66":1,"74":1}}],["and",{"2":{"66":1,"145":1,"190":7,"191":1,"198":3,"247":2,"283":2}}],["any=none",{"2":{"34":1,"35":1}}],["any",{"0":{"34":2,"35":2,"69":2,"78":1,"79":1,"80":1,"83":1,"90":1,"91":2,"93":1,"94":1,"96":1,"104":1,"105":1,"106":1,"107":1,"109":2,"110":1,"111":1,"112":1,"113":1,"114":1,"115":1,"119":4,"144":1,"173":1,"215":1,"230":2,"231":1,"253":1,"257":1},"2":{"19":1,"34":3,"35":3,"37":1,"38":1,"40":1,"41":1,"59":1,"62":2,"69":7,"72":1,"73":1,"76":1,"77":1,"78":1,"79":1,"80":1,"83":1,"89":3,"90":1,"91":4,"93":3,"94":1,"95":1,"96":1,"104":1,"105":1,"106":1,"107":1,"109":2,"110":1,"111":1,"112":1,"113":1,"114":1,"115":1,"119":4,"144":1,"190":7,"192":1,"230":2,"231":1,"241":1,"253":1,"257":1}}],["author",{"0":{"213":1},"2":{"36":1,"117":1,"146":1,"152":1,"155":1,"196":1,"200":1,"201":1,"224":1,"226":1,"228":1,"232":1,"233":1,"238":1,"242":1,"251":1}}],["auto",{"2":{"1":2,"2":1}}],["after",{"0":{"28":1,"29":1,"32":1,"47":1,"49":1,"51":1,"53":1,"55":1,"57":1},"2":{"28":2,"29":2,"32":2,"44":3,"47":2,"49":2,"51":2,"53":3,"55":3,"57":3,"264":1}}],["awaitable",{"2":{"38":1,"41":1}}],["await",{"2":{"21":1,"45":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"68":1,"69":2,"95":1,"97":2,"237":2,"246":2,"247":2,"248":1,"264":1,"276":1,"277":1,"279":1}}],["active和",{"2":{"264":1}}],["active和chan",{"2":{"123":1}}],["active=channel",{"2":{"123":1}}],["active=chan",{"2":{"123":1}}],["active",{"0":{"70":1,"72":1,"119":2},"2":{"23":6,"70":1,"89":2,"94":1,"97":1,"119":6,"123":4,"264":11}}],["activate激活",{"2":{"12":1}}],["activate来激活虚拟环境",{"2":{"12":1}}],["accesstoken",{"2":{"3":1}}],["access",{"2":{"2":1}}],["already",{"2":{"65":2,"74":1}}],["alive",{"0":{"21":1,"127":1},"2":{"21":2,"125":1,"127":2}}],["all",{"0":{"93":1,"107":1,"122":1,"124":1,"126":1,"133":1},"2":{"20":1,"22":1,"26":1,"36":1,"93":2,"106":1,"107":3,"117":1,"122":1,"124":1,"126":1,"133":1,"146":1,"152":1,"155":1,"196":1,"200":1,"201":1,"224":1,"226":1,"228":1,"232":1,"233":1,"238":1,"242":1,"251":1}}],["allowed",{"0":{"218":1}}],["allow",{"2":{"2":1}}],["alconna提供的命令解析功能",{"2":{"10":1}}],["alconna是否自动补全指令",{"2":{"2":1}}],["alconna",{"2":{"2":1}}],["高级nonebot配置",{"2":{"2":1}}],["period\`",{"2":{"300":1}}],["period>",{"2":{"299":1}}],["period",{"2":{"299":2}}],["poke",{"2":{"277":4}}],["port",{"2":{"1":1}}],["publish=publish",{"2":{"123":1}}],["publish",{"0":{"94":1,"119":1},"2":{"89":2,"94":2,"97":2,"119":3}}],["page为页数",{"2":{"293":2}}],["page",{"2":{"293":2}}],["pacman",{"0":{"293":1},"1":{"294":1}}],["pack",{"2":{"288":2,"293":3}}],["param",{"2":{"290":1}}],["parts",{"2":{"256":2}}],["parent",{"2":{"190":4}}],["parse",{"2":{"190":1}}],["passive=channel",{"2":{"123":1}}],["passive=chan",{"2":{"123":1}}],["passive",{"0":{"71":1,"73":1,"119":2},"2":{"71":1,"74":1,"76":1,"77":2,"78":2,"79":2,"80":1,"89":2,"90":1,"91":1,"92":1,"93":1,"103":1,"104":2,"105":2,"106":2,"107":1,"119":6,"123":5,"264":13}}],["pathlib",{"2":{"197":1}}],["paths=none",{"2":{"192":1}}],["paths",{"0":{"192":1},"2":{"192":4}}],["path=dot",{"2":{"190":1}}],["path",{"0":{"147":2,"182":1,"187":3,"190":1,"193":1,"197":2,"256":3},"2":{"6":3,"13":1,"15":1,"113":1,"114":2,"147":4,"187":8,"188":3,"189":1,"190":6,"192":22,"193":2,"197":16,"198":26,"256":11,"283":5}}],["priority",{"0":{"235":1,"240":1,"241":1},"2":{"235":4,"239":2,"240":2,"241":2}}],["private",{"0":{"190":1},"2":{"190":5}}],["print",{"2":{"19":1,"192":1,"197":1,"237":1}}],["profile",{"2":{"295":4}}],["property",{"0":{"161":2},"2":{"190":2}}],["processfunctype",{"0":{"130":1,"131":1},"2":{"130":2,"131":1}}],["processes",{"2":{"23":1,"121":1,"125":2,"127":1,"129":1,"130":1,"131":1,"132":2,"133":1}}],["processmanager",{"0":{"120":1},"1":{"121":1,"122":1,"123":1,"124":1,"125":1,"126":1,"127":1},"2":{"19":2}}],["process",{"0":{"23":1,"30":2,"31":3,"40":1,"41":1,"42":1,"45":1,"48":3,"50":3,"54":1,"56":1,"127":1,"130":1},"2":{"19":1,"20":1,"22":1,"23":4,"26":1,"30":5,"31":6,"33":2,"42":2,"44":4,"45":2,"48":6,"50":6,"54":2,"56":2,"65":4,"69":3,"74":1,"76":1,"77":1,"90":1,"91":1,"92":1,"93":1,"95":3,"97":2,"121":1,"122":2,"124":2,"125":7,"127":2,"130":1,"132":1,"133":3,"264":8,"283":2}}],["pwd",{"2":{"13":3}}],["p",{"2":{"13":1,"300":1}}],["platform",{"2":{"22":3}}],["playwright安装失败",{"2":{"6":1}}],["plugintype",{"0":{"199":1,"202":1,"212":2},"1":{"203":1,"204":1,"205":1,"206":1,"207":1},"2":{"199":5,"282":1}}],["pluginmetadata",{"0":{"208":1,"222":1},"1":{"209":1,"210":1,"211":1,"212":1,"213":1,"214":1,"215":1},"2":{"197":4,"282":2}}],["plugin的函数签名",{"2":{"147":1}}],["plugin进行通信",{"2":{"8":1}}],["plugin",{"0":{"146":1,"194":1,"195":1,"196":1,"197":2,"198":2,"199":1,"200":1,"201":1,"216":1,"226":1},"1":{"147":1,"195":1,"197":1,"198":1,"199":1,"202":1,"203":1,"204":1,"205":1,"206":1,"207":1,"208":1,"209":1,"210":1,"211":1,"212":1,"213":1,"214":1,"215":1,"216":1,"217":2,"218":2,"219":2,"220":2,"221":2,"222":2,"227":1},"2":{"1":1,"10":1,"19":2,"146":1,"195":2,"197":14,"198":5,"199":4,"223":1,"227":6,"260":2,"282":4,"285":1,"286":2,"293":5}}],["plugins下创建一个文件",{"2":{"286":1}}],["plugins中添加你的插件路径",{"2":{"285":1}}],["plugins目录下为插件目录",{"2":{"271":1}}],["plugins和nonebot",{"2":{"271":1}}],["plugins",{"0":{"147":1,"195":1,"198":1,"223":1,"224":1,"226":1,"227":1},"1":{"225":1,"227":1},"2":{"1":1,"19":1,"147":6,"195":2,"197":3,"198":9,"223":1,"227":4,"271":2,"283":1,"286":2}}],["py即可启动插件",{"2":{"286":1}}],["pyo",{"2":{"283":1}}],["pycache",{"2":{"283":1}}],["pyc",{"2":{"283":1}}],["pycharm",{"2":{"36":1,"117":1,"146":1,"152":1,"155":1,"196":1,"200":1,"201":1,"224":1,"226":1,"228":1,"232":1,"233":1,"238":1,"242":1,"251":1}}],["py文件",{"2":{"282":1}}],["py文件或一个包含",{"2":{"282":1}}],["py的文件夹即可被识别为插件",{"2":{"282":1}}],["pyfile",{"0":{"193":1},"2":{"192":8,"193":1}}],["pyi",{"2":{"189":1,"190":1}}],["py",{"2":{"12":1,"36":1,"117":1,"146":1,"152":1,"155":1,"189":1,"190":1,"192":1,"196":1,"198":3,"200":1,"201":1,"224":1,"226":2,"228":1,"232":2,"233":1,"238":1,"242":1,"251":1,"267":1,"271":1,"282":1,"283":1,"286":2,"288":1}}],["py来启动bot",{"2":{"6":1}}],["python格式",{"2":{"275":1}}],["pythonfrom",{"2":{"264":1,"267":1,"282":1,"286":1}}],["pythonimport",{"2":{"264":1,"283":1}}],["pythonasync",{"2":{"21":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"68":1,"97":1,"237":1,"248":1}}],["pythondef",{"2":{"19":1,"20":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"44":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"65":1,"66":1,"67":1,"69":1,"74":1,"75":1,"76":1,"77":1,"83":1,"89":1,"90":1,"91":1,"92":1,"93":1,"94":1,"95":1,"109":1,"110":1,"111":1,"112":1,"113":1,"114":1,"115":1,"119":1,"121":1,"122":1,"123":1,"124":1,"125":1,"126":1,"127":1,"129":1,"130":1,"131":1,"132":1,"133":1,"138":1,"141":1,"142":1,"143":1,"144":1,"145":1,"147":1,"153":1,"154":1,"187":1,"188":1,"189":1,"190":1,"191":1,"192":1,"195":1,"197":1,"198":1,"199":1,"217":1,"227":1,"230":1,"231":1,"235":1,"236":1,"239":1,"240":1,"241":1,"245":1,"246":1,"247":1,"253":1,"254":1,"255":1,"256":1,"257":1}}],["python为你的python可执行文件路径",{"2":{"15":1}}],["python3",{"2":{"12":1}}],["python是你要用来运行bot的可执行文件",{"2":{"6":1}}],["python",{"2":{"6":2,"12":1,"15":1,"45":1,"78":1,"79":1,"80":1,"96":1,"99":1,"104":1,"105":1,"106":1,"107":1,"140":1,"190":1,"225":1,"249":1,"250":1,"272":1}}],["pipe",{"2":{"65":2}}],["pip",{"2":{"6":1,"12":1,"15":1,"197":1}}],["pip和python不对应怎么办",{"2":{"6":1}}],["utils",{"0":{"252":1},"1":{"253":1,"254":1,"255":1,"256":1,"257":1},"2":{"271":1}}],["utf",{"2":{"110":1,"111":1,"112":1,"188":1,"190":1}}],["usage",{"0":{"211":1}}],["user",{"0":{"230":1,"295":1},"2":{"230":3,"231":2,"250":1,"277":3}}],["used",{"2":{"69":1,"223":1}}],["use",{"2":{"1":1,"35":1,"197":1}}],["unload",{"2":{"293":1,"294":1}}],["uninstall",{"2":{"293":1,"294":1}}],["uninstall卸载问题插件",{"2":{"6":1}}],["until",{"2":{"254":2}}],["unclassified",{"0":{"206":2,"212":1}}],["unparse",{"2":{"190":10}}],["unsupported",{"2":{"113":1}}],["update",{"2":{"1":1,"2":1,"113":3,"114":1,"115":1,"291":1,"292":1,"293":1,"294":1}}],["某些控制台字体不可用",{"2":{"1":1}}],["tests",{"2":{"271":1}}],["test",{"0":{"207":2},"2":{"199":1}}],["text",{"2":{"191":3}}],["terminated",{"2":{"125":1}}],["terminate",{"0":{"125":1,"126":1},"2":{"22":1,"26":1,"125":2,"126":2}}],["the",{"2":{"150":1,"197":1,"223":1}}],["this",{"2":{"150":1,"223":1}}],["thread",{"0":{"255":1},"2":{"22":1,"122":1,"255":2}}],["threading",{"0":{"101":1},"2":{"19":1,"22":1,"122":1,"255":1}}],["types",{"0":{"218":1}}],["type=plugintype",{"2":{"282":1}}],["type=self",{"2":{"231":2}}],["type=attr",{"2":{"190":1}}],["type=ast",{"2":{"190":3}}],["type=def",{"2":{"190":1}}],["type=deftype",{"2":{"190":1}}],["typeerror",{"2":{"65":1,"66":1,"74":1}}],["type",{"0":{"65":1,"165":1,"168":1,"172":1,"199":1,"212":1,"230":2},"2":{"65":11,"66":7,"74":1,"190":11,"191":13,"197":2,"199":4,"230":6,"231":2,"272":1}}],["typealias",{"2":{"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"59":1,"60":1,"61":1,"62":1,"63":1,"136":1,"137":1,"243":1}}],["target",{"0":{"123":3,"187":1},"2":{"123":5,"187":3,"190":5}}],["target=run",{"2":{"255":1}}],["target=self",{"2":{"122":1}}],["target=os",{"2":{"22":1}}],["targets",{"2":{"121":1,"122":1,"123":1,"124":1,"126":1,"127":1,"190":2}}],["task",{"2":{"96":1,"122":1}}],["tasks",{"2":{"45":2}}],["tuple=",{"2":{"123":1}}],["tuplestr",{"2":{"35":1}}],["tuple",{"0":{"35":1,"78":1,"79":1,"80":1,"104":1,"105":1,"106":1,"107":1,"119":2,"123":1,"145":1,"164":1},"2":{"35":1,"73":1,"78":1,"79":1,"80":1,"89":3,"104":1,"105":1,"106":1,"107":1,"119":2,"121":2,"145":1}}],["title",{"2":{"192":2}}],["time>",{"2":{"276":1}}],["timeout",{"2":{"125":1}}],["time",{"2":{"22":1,"36":1,"117":1,"138":9,"146":1,"152":1,"155":1,"196":1,"200":1,"201":1,"224":1,"226":1,"228":1,"232":1,"233":1,"238":1,"242":1,"251":1}}],["tip",{"2":{"12":1,"13":1,"279":1,"288":1,"290":1}}],["t",{"0":{"64":1,"66":1,"67":1,"68":1,"69":2},"1":{"65":1,"66":1,"67":1,"68":1,"69":1},"2":{"13":1,"33":1,"59":1,"61":1,"62":1,"66":2,"67":2,"68":2,"69":7}}],["txt",{"2":{"12":1}}],["txt来安装依赖",{"2":{"6":1,"15":1}}],["trim",{"2":{"259":2}}],["traceback",{"2":{"197":1,"237":1}}],["tree",{"2":{"190":3}}],["try",{"2":{"20":1,"21":1,"92":1,"197":1,"237":1,"254":1}}],["trss",{"2":{"8":1,"14":1,"261":2}}],["true时例如docs",{"2":{"192":1}}],["true下启动轻雪",{"2":{"6":1}}],["true",{"0":{"92":1,"145":1,"190":1,"198":1,"218":1},"2":{"1":3,"2":1,"67":1,"97":1,"154":1,"192":1,"248":1,"249":1,"264":2,"270":1}}],["tokyo",{"2":{"297":1}}],["token",{"2":{"2":1}}],["top",{"0":{"192":1},"2":{"192":3}}],["toml",{"0":{"112":1},"2":{"112":4,"113":2,"115":1}}],["toml和config目录下的所有配置文件",{"2":{"0":1}}],["to",{"0":{"188":1,"256":1},"2":{"6":3,"13":1,"15":2,"22":1,"23":1,"34":1,"35":1,"66":1,"69":1,"188":1,"192":1,"197":5,"198":2,"223":1,"256":2}}],["image",{"2":{"291":2,"292":1}}],["implemented",{"2":{"140":1}}],["import",{"2":{"103":1,"197":1,"264":5,"267":1,"282":2,"283":3,"286":1}}],["i",{"2":{"239":2,"264":6}}],["iter",{"2":{"190":2}}],["items",{"2":{"75":1,"109":2,"133":1,"188":1,"191":1,"192":1}}],["ignored",{"0":{"192":1},"2":{"192":7}}],["ignore",{"0":{"92":1,"190":1,"198":1},"2":{"92":3,"190":5,"192":1,"198":5}}],["id仅超级用户可用",{"2":{"291":1}}],["id=user",{"2":{"277":2}}],["id=1234567",{"2":{"291":2}}],["id=123456",{"2":{"277":1}}],["id=self",{"2":{"231":3}}],["id",{"0":{"230":3},"2":{"69":5,"190":6,"230":9,"231":3,"250":1,"277":2,"291":2,"293":1,"299":4}}],["ids",{"2":{"65":2,"69":2}}],["if",{"2":{"22":2,"23":1,"33":2,"35":2,"45":1,"65":5,"66":3,"67":1,"69":6,"74":3,"76":1,"77":1,"90":1,"91":1,"92":3,"93":1,"95":5,"97":2,"99":2,"109":1,"110":1,"111":1,"112":1,"113":2,"114":3,"123":1,"125":2,"127":1,"132":1,"138":1,"145":1,"153":1,"154":5,"188":1,"189":1,"190":20,"191":10,"192":4,"197":2,"198":9,"230":1,"231":1,"237":1,"239":1,"248":1,"253":2,"254":1,"256":1}}],["isclass",{"2":{"253":1}}],["iscoroutinefunction",{"2":{"253":2}}],["isroutine",{"2":{"253":1}}],["isfile",{"2":{"198":1,"283":1}}],["isdir",{"2":{"198":2}}],["isinstance",{"2":{"74":1,"109":1,"190":13,"197":1,"264":1}}],["is",{"0":{"127":1,"169":1,"250":1,"253":1},"2":{"19":1,"20":2,"21":3,"23":1,"33":2,"45":1,"65":6,"66":1,"69":5,"74":1,"76":1,"77":1,"89":2,"90":1,"91":1,"92":1,"93":1,"95":3,"97":1,"99":2,"110":1,"111":1,"112":1,"123":1,"125":1,"127":2,"145":1,"150":1,"190":2,"191":2,"192":1,"197":1,"198":2,"223":1,"230":1,"248":1,"250":1,"253":1,"254":1}}],["icu",{"2":{"12":1}}],["icon=f",{"2":{"154":5}}],["icon",{"2":{"1":1,"154":7,"191":1,"192":2}}],["inspect",{"2":{"253":4,"257":1}}],["insert",{"2":{"239":1}}],["instead",{"2":{"35":1}}],["instance",{"0":{"99":1,"100":1},"2":{"19":2,"33":4,"66":1,"74":1,"99":5,"102":1}}],["install安装浏览器",{"2":{"6":1}}],["install",{"2":{"6":1,"12":1,"15":1,"290":1,"293":1,"294":1}}],["index",{"2":{"191":1,"192":1,"288":1}}],["inherit=",{"2":{"190":1}}],["inherit",{"0":{"180":1},"2":{"191":5}}],["inner",{"2":{"65":2}}],["in",{"0":{"115":1,"255":1},"2":{"23":1,"33":1,"35":3,"45":1,"65":5,"68":1,"69":1,"74":1,"75":1,"92":1,"95":3,"96":1,"97":1,"109":2,"113":1,"114":2,"115":1,"122":1,"124":1,"125":1,"126":1,"127":1,"132":1,"133":1,"145":1,"147":1,"188":1,"189":2,"190":13,"191":9,"192":5,"198":2,"223":2,"227":2,"237":1,"239":1,"241":2,"250":1,"254":2,"255":1,"283":1}}],["int=0",{"2":{"22":1,"240":1,"241":1}}],["int",{"0":{"22":1,"235":1,"240":1,"241":1},"2":{"22":1,"44":1,"65":2,"235":1}}],["initialized",{"2":{"33":1,"65":2}}],["initializing",{"2":{"19":1}}],["init",{"0":{"19":1,"24":1,"25":1,"44":1,"65":1,"83":1,"89":1,"119":1,"121":1,"129":1,"154":1,"230":1,"235":1,"245":1},"2":{"19":2,"24":2,"25":2,"44":1,"65":1,"83":1,"89":1,"119":1,"121":1,"129":1,"154":1,"190":1,"192":2,"198":2,"226":1,"230":1,"232":1,"235":1,"245":1,"256":1,"282":3}}],["info",{"0":{"190":1,"191":1},"2":{"1":1,"19":1,"20":2,"21":2,"22":1,"154":3,"190":12,"191":5,"192":5,"264":2}}],["日志等级",{"2":{"1":1}}],["lyf结尾",{"2":{"275":1}}],["lyfunction语法",{"2":{"291":1}}],["lyfunction",{"2":{"275":1}}],["lt",{"2":{"272":2,"290":1,"291":7,"293":10,"295":2}}],["locks",{"2":{"92":1}}],["lock",{"0":{"101":2},"2":{"90":3,"91":3,"92":3,"99":1}}],["loaded",{"0":{"195":1},"2":{"195":1}}],["loader",{"0":{"226":1,"227":1},"1":{"227":1},"2":{"19":1,"227":1}}],["loading",{"2":{"110":1,"111":1,"112":1}}],["load",{"0":{"110":1,"111":1,"112":1,"113":1,"114":1,"115":1,"196":1,"197":1,"198":1},"1":{"197":1,"198":1,"199":1},"2":{"19":1,"110":3,"111":3,"112":3,"113":4,"114":2,"115":3,"147":2,"196":1,"197":3,"198":2,"227":2,"293":1,"294":1}}],["loop",{"0":{"97":1},"2":{"19":4,"65":1,"68":3,"89":2,"97":2,"254":10}}],["log0000",{"2":{"264":1}}],["logger",{"0":{"25":1},"2":{"19":1,"20":2,"21":2,"22":1,"24":1,"25":1,"35":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"65":2,"110":1,"111":1,"112":1,"113":2,"114":1,"122":1,"125":2,"127":1,"133":1,"154":7,"197":3,"198":3,"254":1,"264":3,"283":2}}],["logo",{"2":{"19":1}}],["log",{"0":{"152":1,"154":1},"1":{"153":1,"154":1},"2":{"1":2,"25":1,"152":1,"154":3,"264":1}}],["litedoc",{"2":{"261":1}}],["liteecho",{"0":{"224":1,"225":1},"1":{"225":1},"2":{"224":2,"225":2,"291":1}}],["liteyuki框架是包含在liteyukibot应用中的",{"2":{"271":1}}],["liteyukiexception",{"0":{"149":1}}],["liteyuki轻雪机器人管理脚本",{"2":{"14":1}}],["liteyukibot代替$",{"2":{"13":1}}],["liteyukibot",{"0":{"18":1,"33":1},"1":{"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1},"2":{"12":3,"13":5,"22":1,"33":2,"147":1,"259":2,"260":2,"261":2,"271":1}}],["liteyukistudio",{"2":{"12":2,"13":1,"36":1,"117":1,"146":1,"152":1,"155":1,"196":1,"200":1,"201":1,"224":1,"226":1,"228":1,"232":1,"233":1,"238":1,"242":1,"251":1}}],["liteyuki",{"0":{"17":1,"36":1,"58":1,"81":1,"84":1,"85":1,"108":1,"116":1,"117":1,"134":1,"135":1,"146":1,"148":1,"150":1,"152":1,"155":1,"194":1,"196":1,"200":1,"201":1,"223":1,"224":1,"226":1,"228":1,"232":1,"233":1,"238":1,"242":1,"251":1,"252":1,"293":1},"1":{"18":1,"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"43":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"59":1,"60":1,"61":1,"62":1,"63":1,"64":1,"65":1,"66":1,"67":1,"68":1,"69":1,"70":1,"71":1,"72":1,"73":1,"74":1,"75":1,"76":1,"77":1,"78":1,"79":1,"80":1,"82":1,"83":1,"86":1,"87":1,"88":1,"89":1,"90":1,"91":1,"92":1,"93":1,"94":1,"95":1,"96":1,"97":1,"98":1,"99":1,"100":1,"101":1,"102":1,"103":1,"104":1,"105":1,"106":1,"107":1,"109":1,"110":1,"111":1,"112":1,"113":1,"114":1,"115":1,"118":1,"119":1,"120":1,"121":1,"122":1,"123":1,"124":1,"125":1,"126":1,"127":1,"128":1,"129":1,"130":1,"131":1,"132":1,"133":1,"136":1,"137":1,"138":1,"139":1,"140":1,"141":1,"142":1,"143":1,"144":1,"145":1,"147":1,"149":1,"151":1,"153":1,"154":1,"156":1,"157":1,"158":1,"159":1,"160":1,"161":1,"162":1,"163":1,"164":1,"165":1,"166":1,"167":1,"168":1,"169":1,"170":1,"171":1,"172":1,"173":1,"174":1,"175":1,"176":1,"177":1,"178":1,"179":1,"180":1,"181":1,"182":1,"183":1,"184":1,"185":1,"186":1,"187":1,"188":1,"189":1,"190":1,"191":1,"192":1,"193":1,"195":1,"197":1,"198":1,"199":1,"202":1,"203":1,"204":1,"205":1,"206":1,"207":1,"208":1,"209":1,"210":1,"211":1,"212":1,"213":1,"214":1,"215":1,"216":1,"217":1,"218":1,"219":1,"220":1,"221":1,"222":1,"225":1,"227":1,"229":1,"230":1,"231":1,"234":1,"235":1,"236":1,"237":1,"239":1,"240":1,"241":1,"243":1,"244":1,"245":1,"246":1,"247":1,"248":1,"249":1,"250":1,"253":1,"254":1,"255":1,"256":1,"257":1,"294":1},"2":{"1":2,"2":1,"12":1,"19":2,"21":2,"33":1,"147":2,"150":1,"197":5,"227":3,"259":1,"261":2,"264":12,"267":2,"271":3,"274":1,"282":1,"283":4,"286":1,"287":1,"291":4,"292":3}}],["listdir",{"2":{"114":1,"198":2}}],["list",{"0":{"164":1,"178":1,"179":1,"180":1,"183":1,"184":1,"185":1,"189":1,"230":1,"241":1},"2":{"44":6,"65":2,"86":1,"87":1,"189":4,"190":4,"192":3,"230":1,"235":1,"239":3,"241":1,"291":1,"293":2,"294":1}}],["life",{"2":{"44":1}}],["lifespan=self",{"2":{"19":1}}],["lifespan",{"0":{"27":2,"28":1,"29":1,"30":1,"31":2,"32":1,"36":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"43":1,"45":2,"46":2,"47":2,"48":2,"49":2,"50":2,"51":2,"121":2},"1":{"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"43":1,"44":2,"45":2,"46":2,"47":2,"48":2,"49":2,"50":2,"51":2,"52":2,"53":2,"54":2,"55":2,"56":2,"57":2},"2":{"19":3,"27":5,"28":4,"29":4,"30":4,"31":5,"32":4,"36":1,"39":2,"42":2,"44":6,"45":4,"46":4,"47":4,"48":4,"49":4,"50":4,"51":4,"121":4}}],["linux系统要支持python3",{"2":{"15":1}}],["linux",{"2":{"14":1,"22":1}}],["linux下使用source",{"2":{"12":1}}],["llonebot",{"2":{"8":1}}],["laptop",{"2":{"192":2}}],["lang",{"0":{"191":1,"192":1},"2":{"191":3,"192":2}}],["language",{"2":{"2":1}}],["last",{"2":{"138":4}}],["lambda",{"2":{"103":1,"104":2,"105":2,"106":2,"107":1}}],["lagrange",{"2":{"8":1}}],["level=0",{"2":{"154":1}}],["level",{"0":{"153":1},"2":{"1":1,"153":2,"154":6}}],["写在外层的配置项将会被覆盖",{"2":{"1":1}}],["switch",{"2":{"291":2,"292":1}}],["simple",{"2":{"282":1}}],["signature",{"2":{"257":2}}],["src目录下为应用程序部分",{"2":{"271":1}}],["src",{"2":{"227":1,"271":1,"283":5}}],["sparkles",{"2":{"272":2}}],["specified",{"2":{"197":1}}],["split",{"2":{"197":4}}],["source",{"0":{"167":1},"2":{"190":2,"191":6}}],["software",{"2":{"36":1,"117":1,"146":1,"152":1,"155":1,"196":1,"200":1,"201":1,"224":1,"226":1,"228":1,"232":1,"233":1,"238":1,"242":1,"251":1}}],["schedule",{"2":{"145":1}}],["scripts部署",{"0":{"14":1}}],["scripts",{"2":{"12":1}}],["shinjuku",{"2":{"297":1}}],["shellstatistic",{"2":{"299":1}}],["shellbind",{"2":{"297":1}}],["shellweather",{"2":{"297":1}}],["shellmain",{"2":{"288":1}}],["shellvar",{"2":{"276":1}}],["shellcmd",{"2":{"275":1}}],["shell",{"2":{"275":1,"277":1}}],["shutil",{"2":{"192":1}}],["shutdown",{"0":{"29":1,"30":1,"48":1,"49":1,"54":1,"55":1},"2":{"29":2,"30":2,"44":2,"48":2,"49":2,"54":3,"55":3}}],["show",{"2":{"154":6}}],["should",{"2":{"65":1}}],["shared",{"0":{"102":1},"2":{"89":3,"103":1,"104":3,"105":3,"106":3,"107":2,"123":1,"267":3}}],["sync",{"0":{"37":1,"40":1,"59":1,"61":1},"2":{"39":1,"42":1,"60":1,"63":1,"257":1}}],["system",{"0":{"145":1},"2":{"22":4,"145":1,"283":2}}],["sys",{"2":{"22":3,"154":1}}],["snowykami",{"2":{"36":2,"117":2,"146":2,"152":2,"155":2,"196":2,"200":2,"201":2,"224":2,"226":2,"228":2,"232":2,"233":2,"238":2,"242":2,"251":2}}],["su",{"0":{"250":1},"2":{"224":1,"225":1,"250":1}}],["succeeded",{"2":{"197":1}}],["success",{"2":{"125":1,"154":2,"197":2}}],["summary>",{"2":{"191":3}}],["summary>源代码",{"2":{"191":1}}],["supported",{"2":{"114":1}}],["superusers",{"2":{"1":1,"250":1}}],["subprocess",{"2":{"129":1,"130":1,"131":1}}],["subprocessmanager",{"0":{"128":1},"1":{"129":1,"130":1,"131":1,"132":1,"133":1}}],["subscribe",{"2":{"95":1}}],["subscriber",{"0":{"86":1,"87":1,"95":1,"96":1},"2":{"95":7,"96":2,"97":1}}],["sub",{"0":{"87":1},"2":{"33":1,"65":2,"69":1,"89":1,"95":4,"97":1}}],["sleep",{"2":{"21":1,"22":1,"264":1,"276":1,"277":1}}],["style",{"2":{"272":1,"288":2}}],["stem",{"2":{"256":2}}],["stdout",{"2":{"154":1}}],["store",{"2":{"89":1,"90":1,"91":1,"92":2,"93":1,"223":1}}],["storage",{"0":{"85":1},"1":{"86":1,"87":1,"88":1,"89":1,"90":1,"91":1,"92":1,"93":1,"94":1,"95":1,"96":1,"97":1,"98":1,"99":1,"100":1,"101":1,"102":1,"103":1,"104":1,"105":1,"106":1,"107":1},"2":{"84":2,"267":2}}],["stopped",{"2":{"20":1}}],["stopping",{"2":{"20":1}}],["stop",{"0":{"26":1},"2":{"19":1,"20":1,"21":2,"26":2}}],["stat",{"2":{"300":1}}],["statistic",{"2":{"300":1}}],["statistics",{"0":{"299":1},"1":{"300":1}}],["static",{"0":{"159":1},"2":{"190":1}}],["staticmethod",{"0":{"159":1},"2":{"44":1,"45":1,"95":1,"96":1,"190":1}}],["status",{"2":{"291":1,"292":1}}],["starmap",{"2":{"261":1}}],["startup",{"2":{"264":2}}],["startswith",{"2":{"190":3,"224":1,"225":1}}],["starting",{"2":{"122":1,"133":1}}],["start或superusers",{"2":{"6":1}}],["start保证alconna解析正常",{"2":{"1":1}}],["start",{"0":{"27":1,"28":1,"46":1,"47":1,"52":1,"53":1,"97":1,"122":1,"132":1,"133":1},"2":{"1":1,"20":1,"22":2,"27":2,"28":2,"44":2,"46":2,"47":2,"52":3,"53":3,"97":2,"122":2,"132":2,"133":2,"255":1,"264":1}}],["strip",{"2":{"225":2}}],["str=",{"2":{"191":1,"192":1}}],["structure",{"2":{"66":1}}],["str",{"0":{"23":1,"34":1,"35":2,"65":1,"74":1,"75":1,"76":1,"77":1,"78":2,"79":2,"80":2,"83":2,"90":1,"91":1,"92":1,"93":1,"94":1,"95":1,"96":1,"104":2,"105":2,"106":2,"107":2,"109":2,"110":2,"111":2,"112":2,"113":2,"114":2,"115":1,"119":2,"123":1,"125":1,"127":1,"130":1,"131":1,"132":1,"145":1,"147":1,"153":2,"163":1,"164":2,"165":1,"166":1,"167":1,"171":1,"172":1,"174":1,"176":1,"177":1,"180":1,"182":1,"186":1,"187":3,"188":2,"189":1,"190":1,"191":2,"192":3,"195":1,"197":1,"198":1,"199":2,"209":1,"210":1,"211":1,"213":1,"214":1,"215":1,"219":1,"221":1,"230":9,"231":2,"241":1,"256":1},"2":{"19":1,"23":2,"34":2,"35":3,"40":1,"41":1,"65":2,"73":2,"74":2,"75":2,"76":2,"77":3,"78":2,"79":2,"80":2,"83":2,"86":1,"87":1,"89":5,"90":1,"91":1,"92":1,"93":3,"94":1,"95":1,"96":1,"104":2,"105":2,"106":2,"107":2,"109":2,"110":2,"111":2,"112":2,"113":2,"114":2,"115":1,"119":2,"121":2,"123":1,"125":1,"127":1,"129":1,"130":1,"131":1,"132":1,"145":1,"147":1,"153":2,"187":3,"188":2,"189":1,"190":1,"191":1,"192":4,"195":2,"197":1,"198":1,"199":3,"230":9,"231":2,"241":1,"250":1,"256":2,"264":1}}],["search",{"2":{"293":1,"294":1}}],["session",{"0":{"228":1,"230":2,"232":1,"233":1,"238":1,"242":1,"251":2},"1":{"229":1,"230":1,"231":1,"234":1,"235":1,"236":1,"237":1,"239":1,"240":1,"241":1,"243":1,"244":1,"245":1,"246":1,"247":1,"248":1,"249":1,"250":1},"2":{"230":6,"231":5,"251":1}}],["service",{"0":{"204":2},"2":{"199":1,"282":1}}],["server",{"2":{"15":1}}],["sep",{"2":{"190":3}}],["sequence",{"0":{"45":1},"2":{"45":2}}],["send",{"0":{"66":1},"2":{"23":2,"65":2,"66":4,"74":1,"76":1,"77":1,"79":1,"80":1,"90":1,"91":1,"92":1,"93":1,"94":1,"97":1,"104":1,"107":1,"231":1,"264":3,"291":1}}],["set",{"0":{"74":1,"75":1,"78":1,"90":1,"105":1,"198":1},"2":{"19":1,"21":1,"26":1,"65":1,"74":2,"75":2,"77":1,"78":3,"90":2,"104":1,"105":3,"198":2,"254":1,"267":1,"291":2,"292":1,"295":2}}],["self",{"0":{"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"44":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"65":1,"66":1,"67":1,"68":1,"69":1,"83":1,"89":1,"90":1,"91":1,"92":1,"93":1,"94":1,"95":1,"97":1,"119":1,"121":1,"122":1,"123":1,"124":1,"125":1,"126":1,"127":1,"129":1,"130":1,"131":1,"132":1,"133":1,"140":1,"141":1,"142":1,"143":1,"144":1,"217":1,"230":1,"231":1,"235":1,"236":1,"237":1,"245":1,"246":1,"247":1,"248":1},"2":{"19":11,"20":4,"21":3,"22":4,"23":2,"24":2,"25":1,"26":3,"27":2,"28":2,"29":2,"30":2,"31":2,"32":2,"44":8,"46":2,"47":2,"48":2,"49":2,"50":2,"51":2,"52":3,"53":3,"54":3,"55":3,"56":3,"57":3,"65":14,"66":6,"67":3,"68":2,"69":3,"83":3,"89":7,"90":3,"91":3,"92":4,"93":3,"94":2,"95":1,"97":4,"119":6,"121":4,"122":2,"123":2,"124":2,"125":3,"126":3,"127":3,"129":2,"130":2,"131":2,"132":3,"133":2,"140":1,"141":2,"142":2,"143":2,"144":2,"190":1,"191":1,"217":2,"230":10,"231":3,"235":5,"236":2,"237":3,"245":2,"246":2,"247":2,"248":3}}],["safe",{"2":{"2":1,"110":1}}],["num为每页显示数量",{"2":{"293":2}}],["num",{"2":{"293":2}}],["npm",{"2":{"293":7,"294":1}}],["nliteyuki",{"2":{"275":1}}],["n\`\`\`",{"2":{"191":2}}],["n\`\`\`python",{"2":{"191":2}}],["n",{"2":{"191":52,"192":2}}],["name>",{"2":{"276":2}}],["name=module",{"2":{"197":3}}],["name=target",{"2":{"190":2}}],["name=class",{"2":{"190":1}}],["name=node",{"2":{"190":2}}],["name=f",{"2":{"123":2}}],["name=",{"2":{"70":1,"71":1,"89":3,"282":1}}],["name",{"0":{"23":1,"65":1,"74":1,"76":1,"83":1,"123":1,"125":1,"127":1,"130":1,"131":1,"132":1,"163":1,"171":1,"176":1,"193":1,"199":2,"209":1,"219":1,"221":1,"256":1},"2":{"23":6,"65":11,"74":7,"75":2,"76":5,"78":3,"79":3,"83":3,"122":3,"123":5,"124":1,"125":6,"126":2,"127":5,"130":3,"131":4,"132":5,"133":2,"190":11,"191":7,"192":2,"197":20,"198":9,"199":6,"217":1,"256":1,"264":2,"291":4,"293":8}}],["new",{"0":{"130":1},"2":{"19":1,"109":3,"130":1,"254":1}}],["nodes",{"2":{"190":2}}],["node",{"2":{"190":42}}],["node等进程",{"2":{"15":1}}],["normal",{"0":{"190":1},"2":{"190":1,"192":1}}],["normal>",{"2":{"154":1}}],["nonlocal",{"2":{"138":1}}],["nonedog",{"2":{"282":1}}],["none",{"0":{"19":1,"23":1,"34":1,"35":1,"44":1,"45":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"65":1,"69":1,"90":1,"91":1,"92":1,"94":1,"100":1,"123":1,"130":1,"145":1,"173":1,"191":1,"192":1,"222":1,"230":2,"237":1},"2":{"19":1,"23":2,"33":1,"34":1,"35":1,"44":1,"45":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"65":3,"66":1,"68":1,"69":2,"90":1,"92":1,"94":1,"99":2,"110":1,"111":1,"112":1,"123":1,"130":1,"136":1,"138":1,"145":1,"190":3,"192":1,"197":4,"198":1,"230":1,"237":1,"243":2,"248":1,"253":1}}],["nonebot插件目录",{"2":{"271":1}}],["nonebot2提供的框架支持",{"2":{"10":1}}],["nonebot",{"2":{"2":1,"10":1,"252":1,"260":6,"264":3,"271":1,"282":1,"283":4,"286":1}}],["nonebot下配置已迁移至nonebot键下",{"2":{"1":1}}],["nonebot机器人的配置",{"2":{"1":1}}],["no",{"0":{"113":1,"114":1,"115":1,"163":1,"164":1,"165":1,"166":1,"168":1,"169":1,"171":1,"172":1,"176":1,"177":1,"178":1,"179":1,"180":1,"182":1,"183":1,"184":1,"185":1,"186":1,"193":1,"209":1,"219":1,"220":1,"221":1},"2":{"72":1,"73":1,"113":3,"114":3,"115":3,"190":3,"191":1,"192":2}}],["nohup",{"2":{"22":2,"276":1,"277":1}}],["notimplementederror",{"2":{"140":1}}],["not",{"2":{"21":1,"23":1,"33":1,"65":1,"66":2,"69":4,"74":1,"92":1,"95":3,"97":1,"110":1,"111":1,"112":1,"113":3,"114":3,"125":2,"127":2,"132":2,"145":2,"188":1,"190":8,"197":1,"198":8,"237":1,"283":2}}],["ntqq的onebot插件",{"2":{"8":1}}],["nickname",{"2":{"1":1}}],["若不存在则返回空",{"2":{"291":1}}],["若不存在则创建于config",{"2":{"291":1}}],["若存在则返回",{"2":{"291":1}}],["若存在则覆盖",{"2":{"291":1}}],["若存在则会覆盖",{"2":{"291":1}}],["若要戳20s后停止",{"2":{"277":1}}],["若要接收外部请求请填写0",{"2":{"1":1}}],["若函数中启动了其他task",{"2":{"276":1}}],["若有面向普通用户部分",{"2":{"272":1}}],["若有子进程订阅则推送给子进程",{"2":{"97":1}}],["若有困难请联系对应开发者而不是liteyuki的开发者",{"2":{"9":1}}],["若为空",{"2":{"65":1}}],["若你不希望提供这些信息",{"2":{"289":1}}],["若你不能访问github",{"2":{"12":1}}],["若你修改了端口号请将20216",{"2":{"13":1}}],["若没有metadata",{"2":{"288":1}}],["若没有",{"2":{"1":1}}],["03",{"2":{"264":2}}],["0000",{"2":{"264":3}}],["00",{"2":{"264":18}}],["02",{"2":{"201":1,"226":1}}],["04",{"2":{"146":1}}],["04+",{"2":{"15":1}}],["0",{"0":{"22":1,"240":1,"241":1},"2":{"1":5,"3":4,"19":1,"21":1,"22":2,"44":1,"77":1,"78":2,"79":2,"80":1,"97":1,"103":2,"104":2,"105":2,"106":2,"107":1,"190":1,"191":7,"235":1,"277":1,"282":2,"288":2}}],["14s",{"2":{"299":2}}],["1h",{"2":{"299":2}}],["1d",{"2":{"299":2}}],["1145141919810",{"2":{"291":1}}],["11",{"2":{"226":1}}],["19",{"2":{"155":1,"228":1,"232":1,"233":1,"238":1,"242":1,"251":1}}],["1919810",{"2":{"1":1}}],["18",{"2":{"146":1}}],["12",{"2":{"117":1,"152":1}}],["127",{"2":{"1":1,"3":1}}],["10",{"2":{"151":1,"291":1}}],["10+",{"2":{"12":1,"15":1}}],["10版本后",{"2":{"1":1}}],["1",{"2":{"1":1,"2":1,"3":2,"21":1,"22":2,"23":2,"69":1,"78":2,"79":2,"80":1,"97":2,"104":3,"105":2,"106":1,"107":1,"109":1,"139":1,"140":1,"191":6,"192":1,"197":4,"256":2,"282":1,"288":2}}],["请注意",{"2":{"287":1}}],["请确保您所编写的html代码能被bot解析",{"2":{"287":1}}],["请确保用户文档是通俗易懂的",{"2":{"272":1}}],["请确保文档内的链接是正确的",{"2":{"272":1}}],["请确保文档是完善的",{"2":{"272":1}}],["请确保注释风格为google",{"2":{"272":1}}],["请确保代码的类型提示是正确的",{"2":{"272":1}}],["请确保代码是可运行的",{"2":{"272":1}}],["请确保你了解markdown语法和基本前端知识",{"2":{"269":1}}],["请遵循以下规范",{"2":{"272":1}}],["请阅读插件主页的说明",{"2":{"294":1}}],["请阅读插件开发文档和api",{"2":{"269":1}}],["请阅读以下内容",{"2":{"269":1}}],["请不要将需要动态加载的内容写入配置文件",{"2":{"108":1}}],["请联系插件作者或在安全模式safe",{"2":{"6":1}}],["请先查阅插件文档",{"2":{"6":1}}],["请正确安装git",{"2":{"6":1}}],["请检查配置文件的command",{"2":{"6":1}}],["请使用path",{"2":{"15":1}}],["请使用",{"2":{"6":1}}],["请在此填写相同的值",{"2":{"3":1}}],["请开启alconna",{"2":{"1":1}}],["请尽快迁移",{"2":{"1":1}}],["空命令头",{"2":{"1":1}}],["指令前缀",{"2":{"1":1}}],["31",{"2":{"224":1}}],["3",{"2":{"1":1,"151":1,"198":1,"264":1}}],["6",{"2":{"1":1,"151":1}}],["轻雪天气liteyuki",{"0":{"297":1},"1":{"298":1}}],["轻雪文档",{"2":{"292":1}}],["轻雪命令liteyuki",{"0":{"291":1},"1":{"292":1}}],["轻雪会收集以下内容",{"2":{"289":1}}],["轻雪会自动合并这些配置文件",{"2":{"0":1}}],["轻雪原版资源包请查看liteyukibot",{"2":{"287":1}}],["轻雪主进程不涉及聊天部分",{"2":{"283":1}}],["轻雪函数",{"0":{"274":1},"1":{"275":1,"276":1,"277":1,"278":1,"279":1},"2":{"274":1}}],["轻雪框架提供了一个内存共享通信的接口",{"2":{"266":1}}],["轻雪提供了一个通道channel用于跨进程通信",{"2":{"263":1}}],["轻雪运行在主进程",{"2":{"263":1}}],["轻雪api文档生成器",{"2":{"261":1}}],["轻雪官方星图",{"2":{"261":1}}],["轻雪官方机器人",{"2":{"259":1}}],["轻雪机器人统计接口",{"2":{"261":1}}],["轻雪机器人",{"2":{"260":1}}],["轻雪",{"2":{"259":1}}],["轻雪抽象消息事件",{"2":{"230":1}}],["轻雪生命周期管理",{"2":{"44":1}}],["轻雪实例",{"2":{"33":1}}],["轻雪的更新功能依赖git",{"2":{"15":1}}],["轻雪使用git进行版本管理",{"2":{"12":1}}],["轻雪不局限于onebot适配器",{"2":{"4":1}}],["轻雪调试",{"2":{"2":1}}],["轻雪插件是轻雪内置的一部分功能",{"2":{"280":1}}],["轻雪插件目录",{"2":{"271":1}}],["轻雪插件目录列表",{"2":{"1":1}}],["轻雪插件列表",{"2":{"1":1}}],["轻雪支持yaml",{"2":{"0":1}}],["y",{"2":{"199":1}}],["your",{"2":{"197":2}}],["yellow>",{"2":{"154":1}}],["y>",{"2":{"20":2}}],["y>liteyuki",{"2":{"20":2}}],["yunzai",{"2":{"8":1}}],["yamlweather",{"2":{"297":1}}],["yamlname",{"2":{"288":1}}],["yamlnonebot",{"2":{"1":1}}],["yaml",{"0":{"110":1},"2":{"0":1,"2":1,"110":4,"113":2,"115":1}}],["yml格式的所有合法内容",{"2":{"291":1}}],["yml文件",{"2":{"288":1}}],["yml中填写一些信息",{"2":{"288":1}}],["yml中设置dev",{"2":{"270":1}}],["yml",{"2":{"0":1,"113":1,"115":1,"288":2,"291":1}}],["yml和config目录",{"2":{"0":1}}],["你在a包中定义了一个index",{"2":{"288":1}}],["你自己制作的资源包也应该遵循这个规则",{"2":{"288":1}}],["你也可以自己制作资源包",{"2":{"287":1}}],["你的插件代码",{"2":{"282":1}}],["你的贡献将会使轻雪变得更好",{"2":{"273":1}}],["你应该使用其他储存方式",{"2":{"108":1}}],["你将无法使用更新功能",{"2":{"15":1}}],["你需要使用onebot标准的实现端来连接到轻雪并将消息上报给轻雪",{"2":{"6":1}}],["你有这个问题说明你不是很了解这个项目",{"2":{"6":1}}],["你可以选择开启auto",{"2":{"289":1}}],["你可以自由使用",{"2":{"289":1}}],["你可以自定义一些信息",{"2":{"288":1}}],["你可以在多个线程中读写共享内存",{"2":{"266":1}}],["你可以通过storage模块实现内存共享通信",{"2":{"266":1}}],["你可以通过channel发送消息给其他进程",{"2":{"263":1}}],["你可以使用python",{"2":{"12":1}}],["你可以使用nonebot2支持的任何适配器或使用轻雪讯息传递插件",{"2":{"4":1}}],["你可在此自定义生成的markdown格式",{"2":{"191":1}}],["你可在config目录下创建多个配置文件",{"2":{"0":1}}],["你可修改配置项后重启轻雪",{"2":{"0":1}}],["你只需要修改superusers及nickname字段即可",{"2":{"0":1}}],["绝大多数情况下",{"2":{"0":1}}],["取决于你个人的喜好",{"2":{"0":1}}],["配置项",{"2":{"297":1}}],["配置项目",{"2":{"109":1}}],["配置了命令别名的命令可以使用别名代替原命令",{"2":{"290":1}}],["配置文件尽量扁平化",{"2":{"108":1}}],["配置值",{"2":{"34":1,"35":1}}],["配置键",{"2":{"34":1,"35":1}}],["配置",{"0":{"0":1},"1":{"1":1,"2":1,"3":1,"4":1},"2":{"19":2,"292":1}}]],"serializationVersion":2}`;export{e as default}; diff --git a/assets/chunks/ContributorBar.Br32ziZW.js b/assets/chunks/ContributorBar.pWVsN6v9.js similarity index 77% rename from assets/chunks/ContributorBar.Br32ziZW.js rename to assets/chunks/ContributorBar.pWVsN6v9.js index 1266d5b2..7d3373db 100644 --- a/assets/chunks/ContributorBar.Br32ziZW.js +++ b/assets/chunks/ContributorBar.pWVsN6v9.js @@ -1 +1 @@ -import{g as c}from"./theme.dkAQqrG2.js";import{d as e,o as a,c as n,j as t,t as i,k as p,_ as u}from"./framework.C4_mTacX.js";const _="https://github.com/",o="LiteyukiStudio/LiteyukiBot",b=`${_}${o}`,m={class:"contributor-bar"},l=e({__name:"ContributorBar",setup(h){const r=`https://contrib.rocks/image?repo=${o}`,s=`${b}/graphs/contributors`;return(d,f)=>(a(),n("div",m,[t("h2",null,i(p(c)("thx_contributors")),1),t("a",{href:s},[t("div",{class:"contributor-list"},[t("img",{src:r,alt:"Contributors"})])])]))}}),k=u(l,[["__scopeId","data-v-bc374713"]]);export{k as C}; +import{g as c}from"./theme.0PwJcuzq.js";import{d as e,o as a,c as n,j as t,t as i,k as p,_ as u}from"./framework.jrU0lkHV.js";const _="https://github.com/",o="LiteyukiStudio/LiteyukiBot",b=`${_}${o}`,m={class:"contributor-bar"},l=e({__name:"ContributorBar",setup(h){const r=`https://contrib.rocks/image?repo=${o}`,s=`${b}/graphs/contributors`;return(d,f)=>(a(),n("div",m,[t("h2",null,i(p(c)("thx_contributors")),1),t("a",{href:s},[t("div",{class:"contributor-list"},[t("img",{src:r,alt:"Contributors"})])])]))}}),k=u(l,[["__scopeId","data-v-bc374713"]]);export{k as C}; diff --git a/assets/chunks/VPLocalSearchBox.BmwVYg_B.js b/assets/chunks/VPLocalSearchBox.BmwVYg_B.js deleted file mode 100644 index 0b66e2f4..00000000 --- a/assets/chunks/VPLocalSearchBox.BmwVYg_B.js +++ /dev/null @@ -1,7 +0,0 @@ -var Ot=Object.defineProperty;var Rt=(a,e,t)=>e in a?Ot(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t;var Ce=(a,e,t)=>Rt(a,typeof e!="symbol"?e+"":e,t);import{X as et,s as ne,h as ve,ao as tt,ap as Ct,aq as Mt,v as je,ar as At,d as Lt,G as ye,as as st,at as Dt,au as zt,x as Pt,av as Vt,y as Me,R as de,Q as we,aw as jt,ax as $t,Y as Bt,U as Wt,a1 as Kt,o as Q,b as Jt,j as x,a2 as Ut,k as D,a6 as qt,a7 as Gt,a8 as Qt,c as Z,n as nt,e as _e,E as it,F as rt,a as he,t as fe,ay as Ht,p as Yt,l as Zt,az as at,aA as Xt,ad as es,aj as ts,aB as ss,_ as ns}from"./framework.C4_mTacX.js";import{u as is,c as rs}from"./theme.dkAQqrG2.js";const as={en:()=>et(()=>import("./@localSearchIndexen.DoEtlDCM.js"),[]),root:()=>et(()=>import("./@localSearchIndexroot.B7VV9A1e.js"),[])};/*! -* tabbable 6.2.0 -* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE -*/var gt=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],Ie=gt.join(","),bt=typeof Element>"u",re=bt?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Ne=!bt&&Element.prototype.getRootNode?function(a){var e;return a==null||(e=a.getRootNode)===null||e===void 0?void 0:e.call(a)}:function(a){return a==null?void 0:a.ownerDocument},ke=function a(e,t){var s;t===void 0&&(t=!0);var n=e==null||(s=e.getAttribute)===null||s===void 0?void 0:s.call(e,"inert"),r=n===""||n==="true",i=r||t&&e&&a(e.parentNode);return i},os=function(e){var t,s=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return s===""||s==="true"},yt=function(e,t,s){if(ke(e))return[];var n=Array.prototype.slice.apply(e.querySelectorAll(Ie));return t&&re.call(e,Ie)&&n.unshift(e),n=n.filter(s),n},wt=function a(e,t,s){for(var n=[],r=Array.from(e);r.length;){var i=r.shift();if(!ke(i,!1))if(i.tagName==="SLOT"){var o=i.assignedElements(),c=o.length?o:i.children,l=a(c,!0,s);s.flatten?n.push.apply(n,l):n.push({scopeParent:i,candidates:l})}else{var h=re.call(i,Ie);h&&s.filter(i)&&(t||!e.includes(i))&&n.push(i);var v=i.shadowRoot||typeof s.getShadowRoot=="function"&&s.getShadowRoot(i),f=!ke(v,!1)&&(!s.shadowRootFilter||s.shadowRootFilter(i));if(v&&f){var b=a(v===!0?i.children:v.children,!0,s);s.flatten?n.push.apply(n,b):n.push({scopeParent:i,candidates:b})}else r.unshift.apply(r,i.children)}}return n},_t=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},ie=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||os(e))&&!_t(e)?0:e.tabIndex},cs=function(e,t){var s=ie(e);return s<0&&t&&!_t(e)?0:s},ls=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},xt=function(e){return e.tagName==="INPUT"},us=function(e){return xt(e)&&e.type==="hidden"},ds=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(s){return s.tagName==="SUMMARY"});return t},hs=function(e,t){for(var s=0;ssummary:first-of-type"),i=r?e.parentElement:e;if(re.call(i,"details:not([open]) *"))return!0;if(!s||s==="full"||s==="legacy-full"){if(typeof n=="function"){for(var o=e;e;){var c=e.parentElement,l=Ne(e);if(c&&!c.shadowRoot&&n(c)===!0)return ot(e);e.assignedSlot?e=e.assignedSlot:!c&&l!==e.ownerDocument?e=l.host:e=c}e=o}if(ms(e))return!e.getClientRects().length;if(s!=="legacy-full")return!0}else if(s==="non-zero-area")return ot(e);return!1},bs=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var s=0;s=0)},ws=function a(e){var t=[],s=[];return e.forEach(function(n,r){var i=!!n.scopeParent,o=i?n.scopeParent:n,c=cs(o,i),l=i?a(n.candidates):o;c===0?i?t.push.apply(t,l):t.push(o):s.push({documentOrder:r,tabIndex:c,item:n,isScope:i,content:l})}),s.sort(ls).reduce(function(n,r){return r.isScope?n.push.apply(n,r.content):n.push(r.content),n},[]).concat(t)},_s=function(e,t){t=t||{};var s;return t.getShadowRoot?s=wt([e],t.includeContainer,{filter:$e.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:ys}):s=yt(e,t.includeContainer,$e.bind(null,t)),ws(s)},xs=function(e,t){t=t||{};var s;return t.getShadowRoot?s=wt([e],t.includeContainer,{filter:Fe.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):s=yt(e,t.includeContainer,Fe.bind(null,t)),s},ae=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return re.call(e,Ie)===!1?!1:$e(t,e)},Ss=gt.concat("iframe").join(","),Ae=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return re.call(e,Ss)===!1?!1:Fe(t,e)};/*! -* focus-trap 7.5.4 -* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE -*/function ct(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(a);e&&(s=s.filter(function(n){return Object.getOwnPropertyDescriptor(a,n).enumerable})),t.push.apply(t,s)}return t}function lt(a){for(var e=1;e0){var s=e[e.length-1];s!==t&&s.pause()}var n=e.indexOf(t);n===-1||e.splice(n,1),e.push(t)},deactivateTrap:function(e,t){var s=e.indexOf(t);s!==-1&&e.splice(s,1),e.length>0&&e[e.length-1].unpause()}},Ns=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},ks=function(e){return(e==null?void 0:e.key)==="Escape"||(e==null?void 0:e.key)==="Esc"||(e==null?void 0:e.keyCode)===27},me=function(e){return(e==null?void 0:e.key)==="Tab"||(e==null?void 0:e.keyCode)===9},Fs=function(e){return me(e)&&!e.shiftKey},Os=function(e){return me(e)&&e.shiftKey},dt=function(e){return setTimeout(e,0)},ht=function(e,t){var s=-1;return e.every(function(n,r){return t(n)?(s=r,!1):!0}),s},pe=function(e){for(var t=arguments.length,s=new Array(t>1?t-1:0),n=1;n1?m-1:0),E=1;E=0)u=s.activeElement;else{var d=i.tabbableGroups[0],m=d&&d.firstTabbableNode;u=m||h("fallbackFocus")}if(!u)throw new Error("Your focus-trap needs to have at least one focusable element");return u},f=function(){if(i.containerGroups=i.containers.map(function(u){var d=_s(u,r.tabbableOptions),m=xs(u,r.tabbableOptions),S=d.length>0?d[0]:void 0,E=d.length>0?d[d.length-1]:void 0,k=m.find(function(p){return ae(p)}),F=m.slice().reverse().find(function(p){return ae(p)}),M=!!d.find(function(p){return ie(p)>0});return{container:u,tabbableNodes:d,focusableNodes:m,posTabIndexesFound:M,firstTabbableNode:S,lastTabbableNode:E,firstDomTabbableNode:k,lastDomTabbableNode:F,nextTabbableNode:function(g){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,O=d.indexOf(g);return O<0?N?m.slice(m.indexOf(g)+1).find(function(P){return ae(P)}):m.slice(0,m.indexOf(g)).reverse().find(function(P){return ae(P)}):d[O+(N?1:-1)]}}}),i.tabbableGroups=i.containerGroups.filter(function(u){return u.tabbableNodes.length>0}),i.tabbableGroups.length<=0&&!h("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(i.containerGroups.find(function(u){return u.posTabIndexesFound})&&i.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},b=function T(u){var d=u.activeElement;if(d)return d.shadowRoot&&d.shadowRoot.activeElement!==null?T(d.shadowRoot):d},y=function T(u){if(u!==!1&&u!==b(document)){if(!u||!u.focus){T(v());return}u.focus({preventScroll:!!r.preventScroll}),i.mostRecentlyFocusedNode=u,Ns(u)&&u.select()}},_=function(u){var d=h("setReturnFocus",u);return d||(d===!1?!1:u)},w=function(u){var d=u.target,m=u.event,S=u.isBackward,E=S===void 0?!1:S;d=d||xe(m),f();var k=null;if(i.tabbableGroups.length>0){var F=l(d,m),M=F>=0?i.containerGroups[F]:void 0;if(F<0)E?k=i.tabbableGroups[i.tabbableGroups.length-1].lastTabbableNode:k=i.tabbableGroups[0].firstTabbableNode;else if(E){var p=ht(i.tabbableGroups,function(I){var L=I.firstTabbableNode;return d===L});if(p<0&&(M.container===d||Ae(d,r.tabbableOptions)&&!ae(d,r.tabbableOptions)&&!M.nextTabbableNode(d,!1))&&(p=F),p>=0){var g=p===0?i.tabbableGroups.length-1:p-1,N=i.tabbableGroups[g];k=ie(d)>=0?N.lastTabbableNode:N.lastDomTabbableNode}else me(m)||(k=M.nextTabbableNode(d,!1))}else{var O=ht(i.tabbableGroups,function(I){var L=I.lastTabbableNode;return d===L});if(O<0&&(M.container===d||Ae(d,r.tabbableOptions)&&!ae(d,r.tabbableOptions)&&!M.nextTabbableNode(d))&&(O=F),O>=0){var P=O===i.tabbableGroups.length-1?0:O+1,V=i.tabbableGroups[P];k=ie(d)>=0?V.firstTabbableNode:V.firstDomTabbableNode}else me(m)||(k=M.nextTabbableNode(d))}}else k=h("fallbackFocus");return k},R=function(u){var d=xe(u);if(!(l(d,u)>=0)){if(pe(r.clickOutsideDeactivates,u)){o.deactivate({returnFocus:r.returnFocusOnDeactivate});return}pe(r.allowOutsideClick,u)||u.preventDefault()}},C=function(u){var d=xe(u),m=l(d,u)>=0;if(m||d instanceof Document)m&&(i.mostRecentlyFocusedNode=d);else{u.stopImmediatePropagation();var S,E=!0;if(i.mostRecentlyFocusedNode)if(ie(i.mostRecentlyFocusedNode)>0){var k=l(i.mostRecentlyFocusedNode),F=i.containerGroups[k].tabbableNodes;if(F.length>0){var M=F.findIndex(function(p){return p===i.mostRecentlyFocusedNode});M>=0&&(r.isKeyForward(i.recentNavEvent)?M+1=0&&(S=F[M-1],E=!1))}}else i.containerGroups.some(function(p){return p.tabbableNodes.some(function(g){return ie(g)>0})})||(E=!1);else E=!1;E&&(S=w({target:i.mostRecentlyFocusedNode,isBackward:r.isKeyBackward(i.recentNavEvent)})),y(S||i.mostRecentlyFocusedNode||v())}i.recentNavEvent=void 0},J=function(u){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;i.recentNavEvent=u;var m=w({event:u,isBackward:d});m&&(me(u)&&u.preventDefault(),y(m))},H=function(u){if(ks(u)&&pe(r.escapeDeactivates,u)!==!1){u.preventDefault(),o.deactivate();return}(r.isKeyForward(u)||r.isKeyBackward(u))&&J(u,r.isKeyBackward(u))},W=function(u){var d=xe(u);l(d,u)>=0||pe(r.clickOutsideDeactivates,u)||pe(r.allowOutsideClick,u)||(u.preventDefault(),u.stopImmediatePropagation())},j=function(){if(i.active)return ut.activateTrap(n,o),i.delayInitialFocusTimer=r.delayInitialFocus?dt(function(){y(v())}):y(v()),s.addEventListener("focusin",C,!0),s.addEventListener("mousedown",R,{capture:!0,passive:!1}),s.addEventListener("touchstart",R,{capture:!0,passive:!1}),s.addEventListener("click",W,{capture:!0,passive:!1}),s.addEventListener("keydown",H,{capture:!0,passive:!1}),o},$=function(){if(i.active)return s.removeEventListener("focusin",C,!0),s.removeEventListener("mousedown",R,!0),s.removeEventListener("touchstart",R,!0),s.removeEventListener("click",W,!0),s.removeEventListener("keydown",H,!0),o},Re=function(u){var d=u.some(function(m){var S=Array.from(m.removedNodes);return S.some(function(E){return E===i.mostRecentlyFocusedNode})});d&&y(v())},A=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(Re):void 0,U=function(){A&&(A.disconnect(),i.active&&!i.paused&&i.containers.map(function(u){A.observe(u,{subtree:!0,childList:!0})}))};return o={get active(){return i.active},get paused(){return i.paused},activate:function(u){if(i.active)return this;var d=c(u,"onActivate"),m=c(u,"onPostActivate"),S=c(u,"checkCanFocusTrap");S||f(),i.active=!0,i.paused=!1,i.nodeFocusedBeforeActivation=s.activeElement,d==null||d();var E=function(){S&&f(),j(),U(),m==null||m()};return S?(S(i.containers.concat()).then(E,E),this):(E(),this)},deactivate:function(u){if(!i.active)return this;var d=lt({onDeactivate:r.onDeactivate,onPostDeactivate:r.onPostDeactivate,checkCanReturnFocus:r.checkCanReturnFocus},u);clearTimeout(i.delayInitialFocusTimer),i.delayInitialFocusTimer=void 0,$(),i.active=!1,i.paused=!1,U(),ut.deactivateTrap(n,o);var m=c(d,"onDeactivate"),S=c(d,"onPostDeactivate"),E=c(d,"checkCanReturnFocus"),k=c(d,"returnFocus","returnFocusOnDeactivate");m==null||m();var F=function(){dt(function(){k&&y(_(i.nodeFocusedBeforeActivation)),S==null||S()})};return k&&E?(E(_(i.nodeFocusedBeforeActivation)).then(F,F),this):(F(),this)},pause:function(u){if(i.paused||!i.active)return this;var d=c(u,"onPause"),m=c(u,"onPostPause");return i.paused=!0,d==null||d(),$(),U(),m==null||m(),this},unpause:function(u){if(!i.paused||!i.active)return this;var d=c(u,"onUnpause"),m=c(u,"onPostUnpause");return i.paused=!1,d==null||d(),f(),j(),U(),m==null||m(),this},updateContainerElements:function(u){var d=[].concat(u).filter(Boolean);return i.containers=d.map(function(m){return typeof m=="string"?s.querySelector(m):m}),i.active&&f(),U(),this}},o.updateContainerElements(e),o};function Ms(a,e={}){let t;const{immediate:s,...n}=e,r=ne(!1),i=ne(!1),o=f=>t&&t.activate(f),c=f=>t&&t.deactivate(f),l=()=>{t&&(t.pause(),i.value=!0)},h=()=>{t&&(t.unpause(),i.value=!1)},v=ve(()=>{const f=tt(a);return(Array.isArray(f)?f:[f]).map(b=>{const y=tt(b);return typeof y=="string"?y:Ct(y)}).filter(Mt)});return je(v,f=>{f.length&&(t=Cs(f,{...n,onActivate(){r.value=!0,e.onActivate&&e.onActivate()},onDeactivate(){r.value=!1,e.onDeactivate&&e.onDeactivate()}}),s&&o())},{flush:"post"}),At(()=>c()),{hasFocus:r,isPaused:i,activate:o,deactivate:c,pause:l,unpause:h}}class ce{constructor(e,t=!0,s=[],n=5e3){this.ctx=e,this.iframes=t,this.exclude=s,this.iframesTimeout=n}static matches(e,t){const s=typeof t=="string"?[t]:t,n=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(n){let r=!1;return s.every(i=>n.call(e,i)?(r=!0,!1):!0),r}else return!1}getContexts(){let e,t=[];return typeof this.ctx>"u"||!this.ctx?e=[]:NodeList.prototype.isPrototypeOf(this.ctx)?e=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?e=this.ctx:typeof this.ctx=="string"?e=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):e=[this.ctx],e.forEach(s=>{const n=t.filter(r=>r.contains(s)).length>0;t.indexOf(s)===-1&&!n&&t.push(s)}),t}getIframeContents(e,t,s=()=>{}){let n;try{const r=e.contentWindow;if(n=r.document,!r||!n)throw new Error("iframe inaccessible")}catch{s()}n&&t(n)}isIframeBlank(e){const t="about:blank",s=e.getAttribute("src").trim();return e.contentWindow.location.href===t&&s!==t&&s}observeIframeLoad(e,t,s){let n=!1,r=null;const i=()=>{if(!n){n=!0,clearTimeout(r);try{this.isIframeBlank(e)||(e.removeEventListener("load",i),this.getIframeContents(e,t,s))}catch{s()}}};e.addEventListener("load",i),r=setTimeout(i,this.iframesTimeout)}onIframeReady(e,t,s){try{e.contentWindow.document.readyState==="complete"?this.isIframeBlank(e)?this.observeIframeLoad(e,t,s):this.getIframeContents(e,t,s):this.observeIframeLoad(e,t,s)}catch{s()}}waitForIframes(e,t){let s=0;this.forEachIframe(e,()=>!0,n=>{s++,this.waitForIframes(n.querySelector("html"),()=>{--s||t()})},n=>{n||t()})}forEachIframe(e,t,s,n=()=>{}){let r=e.querySelectorAll("iframe"),i=r.length,o=0;r=Array.prototype.slice.call(r);const c=()=>{--i<=0&&n(o)};i||c(),r.forEach(l=>{ce.matches(l,this.exclude)?c():this.onIframeReady(l,h=>{t(l)&&(o++,s(h)),c()},c)})}createIterator(e,t,s){return document.createNodeIterator(e,t,s,!1)}createInstanceOnIframe(e){return new ce(e.querySelector("html"),this.iframes)}compareNodeIframe(e,t,s){const n=e.compareDocumentPosition(s),r=Node.DOCUMENT_POSITION_PRECEDING;if(n&r)if(t!==null){const i=t.compareDocumentPosition(s),o=Node.DOCUMENT_POSITION_FOLLOWING;if(i&o)return!0}else return!0;return!1}getIteratorNode(e){const t=e.previousNode();let s;return t===null?s=e.nextNode():s=e.nextNode()&&e.nextNode(),{prevNode:t,node:s}}checkIframeFilter(e,t,s,n){let r=!1,i=!1;return n.forEach((o,c)=>{o.val===s&&(r=c,i=o.handled)}),this.compareNodeIframe(e,t,s)?(r===!1&&!i?n.push({val:s,handled:!0}):r!==!1&&!i&&(n[r].handled=!0),!0):(r===!1&&n.push({val:s,handled:!1}),!1)}handleOpenIframes(e,t,s,n){e.forEach(r=>{r.handled||this.getIframeContents(r.val,i=>{this.createInstanceOnIframe(i).forEachNode(t,s,n)})})}iterateThroughNodes(e,t,s,n,r){const i=this.createIterator(t,e,n);let o=[],c=[],l,h,v=()=>({prevNode:h,node:l}=this.getIteratorNode(i),l);for(;v();)this.iframes&&this.forEachIframe(t,f=>this.checkIframeFilter(l,h,f,o),f=>{this.createInstanceOnIframe(f).forEachNode(e,b=>c.push(b),n)}),c.push(l);c.forEach(f=>{s(f)}),this.iframes&&this.handleOpenIframes(o,e,s,n),r()}forEachNode(e,t,s,n=()=>{}){const r=this.getContexts();let i=r.length;i||n(),r.forEach(o=>{const c=()=>{this.iterateThroughNodes(e,o,t,s,()=>{--i<=0&&n()})};this.iframes?this.waitForIframes(o,c):c()})}}let As=class{constructor(e){this.ctx=e,this.ie=!1;const t=window.navigator.userAgent;(t.indexOf("MSIE")>-1||t.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(e){this._opt=Object.assign({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:()=>{},noMatch:()=>{},filter:()=>!0,done:()=>{},debug:!1,log:window.console},e)}get opt(){return this._opt}get iterator(){return new ce(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(e,t="debug"){const s=this.opt.log;this.opt.debug&&typeof s=="object"&&typeof s[t]=="function"&&s[t](`mark.js: ${e}`)}escapeStr(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(e){return this.opt.wildcards!=="disabled"&&(e=this.setupWildcardsRegExp(e)),e=this.escapeStr(e),Object.keys(this.opt.synonyms).length&&(e=this.createSynonymsRegExp(e)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),this.opt.diacritics&&(e=this.createDiacriticsRegExp(e)),e=this.createMergedBlanksRegExp(e),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.createJoinersRegExp(e)),this.opt.wildcards!=="disabled"&&(e=this.createWildcardsRegExp(e)),e=this.createAccuracyRegExp(e),e}createSynonymsRegExp(e){const t=this.opt.synonyms,s=this.opt.caseSensitive?"":"i",n=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let r in t)if(t.hasOwnProperty(r)){const i=t[r],o=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(r):this.escapeStr(r),c=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(i):this.escapeStr(i);o!==""&&c!==""&&(e=e.replace(new RegExp(`(${this.escapeStr(o)}|${this.escapeStr(c)})`,`gm${s}`),n+`(${this.processSynomyms(o)}|${this.processSynomyms(c)})`+n))}return e}processSynomyms(e){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),e}setupWildcardsRegExp(e){return e=e.replace(/(?:\\)*\?/g,t=>t.charAt(0)==="\\"?"?":""),e.replace(/(?:\\)*\*/g,t=>t.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(e){let t=this.opt.wildcards==="withSpaces";return e.replace(/\u0001/g,t?"[\\S\\s]?":"\\S?").replace(/\u0002/g,t?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(e){return e.replace(/[^(|)\\]/g,(t,s,n)=>{let r=n.charAt(s+1);return/[(|)\\]/.test(r)||r===""?t:t+"\0"})}createJoinersRegExp(e){let t=[];const s=this.opt.ignorePunctuation;return Array.isArray(s)&&s.length&&t.push(this.escapeStr(s.join(""))),this.opt.ignoreJoiners&&t.push("\\u00ad\\u200b\\u200c\\u200d"),t.length?e.split(/\u0000+/).join(`[${t.join("")}]*`):e}createDiacriticsRegExp(e){const t=this.opt.caseSensitive?"":"i",s=this.opt.caseSensitive?["aàáảãạăằắẳẵặâầấẩẫậäåāą","AÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćč","CÇĆČ","dđď","DĐĎ","eèéẻẽẹêềếểễệëěēę","EÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïī","IÌÍỈĨỊÎÏĪ","lł","LŁ","nñňń","NÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøō","OÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rř","RŘ","sšśșş","SŠŚȘŞ","tťțţ","TŤȚŢ","uùúủũụưừứửữựûüůū","UÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿ","YÝỲỶỸỴŸ","zžżź","ZŽŻŹ"]:["aàáảãạăằắẳẵặâầấẩẫậäåāąAÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćčCÇĆČ","dđďDĐĎ","eèéẻẽẹêềếểễệëěēęEÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïīIÌÍỈĨỊÎÏĪ","lłLŁ","nñňńNÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøōOÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rřRŘ","sšśșşSŠŚȘŞ","tťțţTŤȚŢ","uùúủũụưừứửữựûüůūUÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿYÝỲỶỸỴŸ","zžżźZŽŻŹ"];let n=[];return e.split("").forEach(r=>{s.every(i=>{if(i.indexOf(r)!==-1){if(n.indexOf(i)>-1)return!1;e=e.replace(new RegExp(`[${i}]`,`gm${t}`),`[${i}]`),n.push(i)}return!0})}),e}createMergedBlanksRegExp(e){return e.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(e){const t="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~¡¿";let s=this.opt.accuracy,n=typeof s=="string"?s:s.value,r=typeof s=="string"?[]:s.limiters,i="";switch(r.forEach(o=>{i+=`|${this.escapeStr(o)}`}),n){case"partially":default:return`()(${e})`;case"complementary":return i="\\s"+(i||this.escapeStr(t)),`()([^${i}]*${e}[^${i}]*)`;case"exactly":return`(^|\\s${i})(${e})(?=$|\\s${i})`}}getSeparatedKeywords(e){let t=[];return e.forEach(s=>{this.opt.separateWordSearch?s.split(" ").forEach(n=>{n.trim()&&t.indexOf(n)===-1&&t.push(n)}):s.trim()&&t.indexOf(s)===-1&&t.push(s)}),{keywords:t.sort((s,n)=>n.length-s.length),length:t.length}}isNumeric(e){return Number(parseFloat(e))==e}checkRanges(e){if(!Array.isArray(e)||Object.prototype.toString.call(e[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(e),[];const t=[];let s=0;return e.sort((n,r)=>n.start-r.start).forEach(n=>{let{start:r,end:i,valid:o}=this.callNoMatchOnInvalidRanges(n,s);o&&(n.start=r,n.length=i-r,t.push(n),s=i)}),t}callNoMatchOnInvalidRanges(e,t){let s,n,r=!1;return e&&typeof e.start<"u"?(s=parseInt(e.start,10),n=s+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&n-t>0&&n-s>0?r=!0:(this.log(`Ignoring invalid or overlapping range: ${JSON.stringify(e)}`),this.opt.noMatch(e))):(this.log(`Ignoring invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)),{start:s,end:n,valid:r}}checkWhitespaceRanges(e,t,s){let n,r=!0,i=s.length,o=t-i,c=parseInt(e.start,10)-o;return c=c>i?i:c,n=c+parseInt(e.length,10),n>i&&(n=i,this.log(`End range automatically set to the max value of ${i}`)),c<0||n-c<0||c>i||n>i?(r=!1,this.log(`Invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)):s.substring(c,n).replace(/\s+/g,"")===""&&(r=!1,this.log("Skipping whitespace only range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:c,end:n,valid:r}}getTextNodes(e){let t="",s=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,n=>{s.push({start:t.length,end:(t+=n.textContent).length,node:n})},n=>this.matchesExclude(n.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{e({value:t,nodes:s})})}matchesExclude(e){return ce.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(e,t,s){const n=this.opt.element?this.opt.element:"mark",r=e.splitText(t),i=r.splitText(s-t);let o=document.createElement(n);return o.setAttribute("data-markjs","true"),this.opt.className&&o.setAttribute("class",this.opt.className),o.textContent=r.textContent,r.parentNode.replaceChild(o,r),i}wrapRangeInMappedTextNode(e,t,s,n,r){e.nodes.every((i,o)=>{const c=e.nodes[o+1];if(typeof c>"u"||c.start>t){if(!n(i.node))return!1;const l=t-i.start,h=(s>i.end?i.end:s)-i.start,v=e.value.substr(0,i.start),f=e.value.substr(h+i.start);if(i.node=this.wrapRangeInTextNode(i.node,l,h),e.value=v+f,e.nodes.forEach((b,y)=>{y>=o&&(e.nodes[y].start>0&&y!==o&&(e.nodes[y].start-=h),e.nodes[y].end-=h)}),s-=h,r(i.node.previousSibling,i.start),s>i.end)t=i.end;else return!1}return!0})}wrapMatches(e,t,s,n,r){const i=t===0?0:t+1;this.getTextNodes(o=>{o.nodes.forEach(c=>{c=c.node;let l;for(;(l=e.exec(c.textContent))!==null&&l[i]!=="";){if(!s(l[i],c))continue;let h=l.index;if(i!==0)for(let v=1;v{let c;for(;(c=e.exec(o.value))!==null&&c[i]!=="";){let l=c.index;if(i!==0)for(let v=1;vs(c[i],v),(v,f)=>{e.lastIndex=f,n(v)})}r()})}wrapRangeFromIndex(e,t,s,n){this.getTextNodes(r=>{const i=r.value.length;e.forEach((o,c)=>{let{start:l,end:h,valid:v}=this.checkWhitespaceRanges(o,i,r.value);v&&this.wrapRangeInMappedTextNode(r,l,h,f=>t(f,o,r.value.substring(l,h),c),f=>{s(f,o)})}),n()})}unwrapMatches(e){const t=e.parentNode;let s=document.createDocumentFragment();for(;e.firstChild;)s.appendChild(e.removeChild(e.firstChild));t.replaceChild(s,e),this.ie?this.normalizeTextNode(t):t.normalize()}normalizeTextNode(e){if(e){if(e.nodeType===3)for(;e.nextSibling&&e.nextSibling.nodeType===3;)e.nodeValue+=e.nextSibling.nodeValue,e.parentNode.removeChild(e.nextSibling);else this.normalizeTextNode(e.firstChild);this.normalizeTextNode(e.nextSibling)}}markRegExp(e,t){this.opt=t,this.log(`Searching with expression "${e}"`);let s=0,n="wrapMatches";const r=i=>{s++,this.opt.each(i)};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),this[n](e,this.opt.ignoreGroups,(i,o)=>this.opt.filter(o,i,s),r,()=>{s===0&&this.opt.noMatch(e),this.opt.done(s)})}mark(e,t){this.opt=t;let s=0,n="wrapMatches";const{keywords:r,length:i}=this.getSeparatedKeywords(typeof e=="string"?[e]:e),o=this.opt.caseSensitive?"":"i",c=l=>{let h=new RegExp(this.createRegExp(l),`gm${o}`),v=0;this.log(`Searching with expression "${h}"`),this[n](h,1,(f,b)=>this.opt.filter(b,l,s,v),f=>{v++,s++,this.opt.each(f)},()=>{v===0&&this.opt.noMatch(l),r[i-1]===l?this.opt.done(s):c(r[r.indexOf(l)+1])})};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),i===0?this.opt.done(s):c(r[0])}markRanges(e,t){this.opt=t;let s=0,n=this.checkRanges(e);n&&n.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(n)),this.wrapRangeFromIndex(n,(r,i,o,c)=>this.opt.filter(r,i,o,c),(r,i)=>{s++,this.opt.each(r,i)},()=>{this.opt.done(s)})):this.opt.done(s)}unmark(e){this.opt=e;let t=this.opt.element?this.opt.element:"*";t+="[data-markjs]",this.opt.className&&(t+=`.${this.opt.className}`),this.log(`Removal selector "${t}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,s=>{this.unwrapMatches(s)},s=>{const n=ce.matches(s,t),r=this.matchesExclude(s);return!n||r?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function Ls(a){const e=new As(a);return this.mark=(t,s)=>(e.mark(t,s),this),this.markRegExp=(t,s)=>(e.markRegExp(t,s),this),this.markRanges=(t,s)=>(e.markRanges(t,s),this),this.unmark=t=>(e.unmark(t),this),this}function Te(a,e,t,s){function n(r){return r instanceof t?r:new t(function(i){i(r)})}return new(t||(t=Promise))(function(r,i){function o(h){try{l(s.next(h))}catch(v){i(v)}}function c(h){try{l(s.throw(h))}catch(v){i(v)}}function l(h){h.done?r(h.value):n(h.value).then(o,c)}l((s=s.apply(a,[])).next())})}const Ds="ENTRIES",St="KEYS",Et="VALUES",z="";class Le{constructor(e,t){const s=e._tree,n=Array.from(s.keys());this.set=e,this._type=t,this._path=n.length>0?[{node:s,keys:n}]:[]}next(){const e=this.dive();return this.backtrack(),e}dive(){if(this._path.length===0)return{done:!0,value:void 0};const{node:e,keys:t}=oe(this._path);if(oe(t)===z)return{done:!1,value:this.result()};const s=e.get(oe(t));return this._path.push({node:s,keys:Array.from(s.keys())}),this.dive()}backtrack(){if(this._path.length===0)return;const e=oe(this._path).keys;e.pop(),!(e.length>0)&&(this._path.pop(),this.backtrack())}key(){return this.set._prefix+this._path.map(({keys:e})=>oe(e)).filter(e=>e!==z).join("")}value(){return oe(this._path).node.get(z)}result(){switch(this._type){case Et:return this.value();case St:return this.key();default:return[this.key(),this.value()]}}[Symbol.iterator](){return this}}const oe=a=>a[a.length-1],zs=(a,e,t)=>{const s=new Map;if(e===void 0)return s;const n=e.length+1,r=n+t,i=new Uint8Array(r*n).fill(t+1);for(let o=0;o{const c=r*i;e:for(const l of a.keys())if(l===z){const h=n[c-1];h<=t&&s.set(o,[a.get(l),h])}else{let h=r;for(let v=0;vt)continue e}Tt(a.get(l),e,t,s,n,h,i,o+l)}};class X{constructor(e=new Map,t=""){this._size=void 0,this._tree=e,this._prefix=t}atPrefix(e){if(!e.startsWith(this._prefix))throw new Error("Mismatched prefix");const[t,s]=Oe(this._tree,e.slice(this._prefix.length));if(t===void 0){const[n,r]=Je(s);for(const i of n.keys())if(i!==z&&i.startsWith(r)){const o=new Map;return o.set(i.slice(r.length),n.get(i)),new X(o,e)}}return new X(t,e)}clear(){this._size=void 0,this._tree.clear()}delete(e){return this._size=void 0,Ps(this._tree,e)}entries(){return new Le(this,Ds)}forEach(e){for(const[t,s]of this)e(t,s,this)}fuzzyGet(e,t){return zs(this._tree,e,t)}get(e){const t=Be(this._tree,e);return t!==void 0?t.get(z):void 0}has(e){const t=Be(this._tree,e);return t!==void 0&&t.has(z)}keys(){return new Le(this,St)}set(e,t){if(typeof e!="string")throw new Error("key must be a string");return this._size=void 0,De(this._tree,e).set(z,t),this}get size(){if(this._size)return this._size;this._size=0;const e=this.entries();for(;!e.next().done;)this._size+=1;return this._size}update(e,t){if(typeof e!="string")throw new Error("key must be a string");this._size=void 0;const s=De(this._tree,e);return s.set(z,t(s.get(z))),this}fetch(e,t){if(typeof e!="string")throw new Error("key must be a string");this._size=void 0;const s=De(this._tree,e);let n=s.get(z);return n===void 0&&s.set(z,n=t()),n}values(){return new Le(this,Et)}[Symbol.iterator](){return this.entries()}static from(e){const t=new X;for(const[s,n]of e)t.set(s,n);return t}static fromObject(e){return X.from(Object.entries(e))}}const Oe=(a,e,t=[])=>{if(e.length===0||a==null)return[a,t];for(const s of a.keys())if(s!==z&&e.startsWith(s))return t.push([a,s]),Oe(a.get(s),e.slice(s.length),t);return t.push([a,e]),Oe(void 0,"",t)},Be=(a,e)=>{if(e.length===0||a==null)return a;for(const t of a.keys())if(t!==z&&e.startsWith(t))return Be(a.get(t),e.slice(t.length))},De=(a,e)=>{const t=e.length;e:for(let s=0;a&&s{const[t,s]=Oe(a,e);if(t!==void 0){if(t.delete(z),t.size===0)It(s);else if(t.size===1){const[n,r]=t.entries().next().value;Nt(s,n,r)}}},It=a=>{if(a.length===0)return;const[e,t]=Je(a);if(e.delete(t),e.size===0)It(a.slice(0,-1));else if(e.size===1){const[s,n]=e.entries().next().value;s!==z&&Nt(a.slice(0,-1),s,n)}},Nt=(a,e,t)=>{if(a.length===0)return;const[s,n]=Je(a);s.set(n+e,t),s.delete(n)},Je=a=>a[a.length-1],Ue="or",kt="and",Vs="and_not";class le{constructor(e){if((e==null?void 0:e.fields)==null)throw new Error('MiniSearch: option "fields" must be provided');const t=e.autoVacuum==null||e.autoVacuum===!0?Ve:e.autoVacuum;this._options=Object.assign(Object.assign(Object.assign({},Pe),e),{autoVacuum:t,searchOptions:Object.assign(Object.assign({},ft),e.searchOptions||{}),autoSuggestOptions:Object.assign(Object.assign({},Ks),e.autoSuggestOptions||{})}),this._index=new X,this._documentCount=0,this._documentIds=new Map,this._idToShortId=new Map,this._fieldIds={},this._fieldLength=new Map,this._avgFieldLength=[],this._nextId=0,this._storedFields=new Map,this._dirtCount=0,this._currentVacuum=null,this._enqueuedVacuum=null,this._enqueuedVacuumConditions=Ke,this.addFields(this._options.fields)}add(e){const{extractField:t,tokenize:s,processTerm:n,fields:r,idField:i}=this._options,o=t(e,i);if(o==null)throw new Error(`MiniSearch: document does not have ID field "${i}"`);if(this._idToShortId.has(o))throw new Error(`MiniSearch: duplicate ID ${o}`);const c=this.addDocumentId(o);this.saveStoredFields(c,e);for(const l of r){const h=t(e,l);if(h==null)continue;const v=s(h.toString(),l),f=this._fieldIds[l],b=new Set(v).size;this.addFieldLength(c,f,this._documentCount-1,b);for(const y of v){const _=n(y,l);if(Array.isArray(_))for(const w of _)this.addTerm(f,c,w);else _&&this.addTerm(f,c,_)}}}addAll(e){for(const t of e)this.add(t)}addAllAsync(e,t={}){const{chunkSize:s=10}=t,n={chunk:[],promise:Promise.resolve()},{chunk:r,promise:i}=e.reduce(({chunk:o,promise:c},l,h)=>(o.push(l),(h+1)%s===0?{chunk:[],promise:c.then(()=>new Promise(v=>setTimeout(v,0))).then(()=>this.addAll(o))}:{chunk:o,promise:c}),n);return i.then(()=>this.addAll(r))}remove(e){const{tokenize:t,processTerm:s,extractField:n,fields:r,idField:i}=this._options,o=n(e,i);if(o==null)throw new Error(`MiniSearch: document does not have ID field "${i}"`);const c=this._idToShortId.get(o);if(c==null)throw new Error(`MiniSearch: cannot remove document with ID ${o}: it is not in the index`);for(const l of r){const h=n(e,l);if(h==null)continue;const v=t(h.toString(),l),f=this._fieldIds[l],b=new Set(v).size;this.removeFieldLength(c,f,this._documentCount,b);for(const y of v){const _=s(y,l);if(Array.isArray(_))for(const w of _)this.removeTerm(f,c,w);else _&&this.removeTerm(f,c,_)}}this._storedFields.delete(c),this._documentIds.delete(c),this._idToShortId.delete(o),this._fieldLength.delete(c),this._documentCount-=1}removeAll(e){if(e)for(const t of e)this.remove(t);else{if(arguments.length>0)throw new Error("Expected documents to be present. Omit the argument to remove all documents.");this._index=new X,this._documentCount=0,this._documentIds=new Map,this._idToShortId=new Map,this._fieldLength=new Map,this._avgFieldLength=[],this._storedFields=new Map,this._nextId=0}}discard(e){const t=this._idToShortId.get(e);if(t==null)throw new Error(`MiniSearch: cannot discard document with ID ${e}: it is not in the index`);this._idToShortId.delete(e),this._documentIds.delete(t),this._storedFields.delete(t),(this._fieldLength.get(t)||[]).forEach((s,n)=>{this.removeFieldLength(t,n,this._documentCount,s)}),this._fieldLength.delete(t),this._documentCount-=1,this._dirtCount+=1,this.maybeAutoVacuum()}maybeAutoVacuum(){if(this._options.autoVacuum===!1)return;const{minDirtFactor:e,minDirtCount:t,batchSize:s,batchWait:n}=this._options.autoVacuum;this.conditionalVacuum({batchSize:s,batchWait:n},{minDirtCount:t,minDirtFactor:e})}discardAll(e){const t=this._options.autoVacuum;try{this._options.autoVacuum=!1;for(const s of e)this.discard(s)}finally{this._options.autoVacuum=t}this.maybeAutoVacuum()}replace(e){const{idField:t,extractField:s}=this._options,n=s(e,t);this.discard(n),this.add(e)}vacuum(e={}){return this.conditionalVacuum(e)}conditionalVacuum(e,t){return this._currentVacuum?(this._enqueuedVacuumConditions=this._enqueuedVacuumConditions&&t,this._enqueuedVacuum!=null?this._enqueuedVacuum:(this._enqueuedVacuum=this._currentVacuum.then(()=>{const s=this._enqueuedVacuumConditions;return this._enqueuedVacuumConditions=Ke,this.performVacuuming(e,s)}),this._enqueuedVacuum)):this.vacuumConditionsMet(t)===!1?Promise.resolve():(this._currentVacuum=this.performVacuuming(e),this._currentVacuum)}performVacuuming(e,t){return Te(this,void 0,void 0,function*(){const s=this._dirtCount;if(this.vacuumConditionsMet(t)){const n=e.batchSize||We.batchSize,r=e.batchWait||We.batchWait;let i=1;for(const[o,c]of this._index){for(const[l,h]of c)for(const[v]of h)this._documentIds.has(v)||(h.size<=1?c.delete(l):h.delete(v));this._index.get(o).size===0&&this._index.delete(o),i%n===0&&(yield new Promise(l=>setTimeout(l,r))),i+=1}this._dirtCount-=s}yield null,this._currentVacuum=this._enqueuedVacuum,this._enqueuedVacuum=null})}vacuumConditionsMet(e){if(e==null)return!0;let{minDirtCount:t,minDirtFactor:s}=e;return t=t||Ve.minDirtCount,s=s||Ve.minDirtFactor,this.dirtCount>=t&&this.dirtFactor>=s}get isVacuuming(){return this._currentVacuum!=null}get dirtCount(){return this._dirtCount}get dirtFactor(){return this._dirtCount/(1+this._documentCount+this._dirtCount)}has(e){return this._idToShortId.has(e)}getStoredFields(e){const t=this._idToShortId.get(e);if(t!=null)return this._storedFields.get(t)}search(e,t={}){const s=this.executeQuery(e,t),n=[];for(const[r,{score:i,terms:o,match:c}]of s){const l=o.length||1,h={id:this._documentIds.get(r),score:i*l,terms:Object.keys(c),queryTerms:o,match:c};Object.assign(h,this._storedFields.get(r)),(t.filter==null||t.filter(h))&&n.push(h)}return e===le.wildcard&&t.boostDocument==null&&this._options.searchOptions.boostDocument==null||n.sort(vt),n}autoSuggest(e,t={}){t=Object.assign(Object.assign({},this._options.autoSuggestOptions),t);const s=new Map;for(const{score:r,terms:i}of this.search(e,t)){const o=i.join(" "),c=s.get(o);c!=null?(c.score+=r,c.count+=1):s.set(o,{score:r,terms:i,count:1})}const n=[];for(const[r,{score:i,terms:o,count:c}]of s)n.push({suggestion:r,terms:o,score:i/c});return n.sort(vt),n}get documentCount(){return this._documentCount}get termCount(){return this._index.size}static loadJSON(e,t){if(t==null)throw new Error("MiniSearch: loadJSON should be given the same options used when serializing the index");return this.loadJS(JSON.parse(e),t)}static loadJSONAsync(e,t){return Te(this,void 0,void 0,function*(){if(t==null)throw new Error("MiniSearch: loadJSON should be given the same options used when serializing the index");return this.loadJSAsync(JSON.parse(e),t)})}static getDefault(e){if(Pe.hasOwnProperty(e))return ze(Pe,e);throw new Error(`MiniSearch: unknown option "${e}"`)}static loadJS(e,t){const{index:s,documentIds:n,fieldLength:r,storedFields:i,serializationVersion:o}=e,c=this.instantiateMiniSearch(e,t);c._documentIds=Se(n),c._fieldLength=Se(r),c._storedFields=Se(i);for(const[l,h]of c._documentIds)c._idToShortId.set(h,l);for(const[l,h]of s){const v=new Map;for(const f of Object.keys(h)){let b=h[f];o===1&&(b=b.ds),v.set(parseInt(f,10),Se(b))}c._index.set(l,v)}return c}static loadJSAsync(e,t){return Te(this,void 0,void 0,function*(){const{index:s,documentIds:n,fieldLength:r,storedFields:i,serializationVersion:o}=e,c=this.instantiateMiniSearch(e,t);c._documentIds=yield Ee(n),c._fieldLength=yield Ee(r),c._storedFields=yield Ee(i);for(const[h,v]of c._documentIds)c._idToShortId.set(v,h);let l=0;for(const[h,v]of s){const f=new Map;for(const b of Object.keys(v)){let y=v[b];o===1&&(y=y.ds),f.set(parseInt(b,10),yield Ee(y))}++l%1e3===0&&(yield Ft(0)),c._index.set(h,f)}return c})}static instantiateMiniSearch(e,t){const{documentCount:s,nextId:n,fieldIds:r,averageFieldLength:i,dirtCount:o,serializationVersion:c}=e;if(c!==1&&c!==2)throw new Error("MiniSearch: cannot deserialize an index created with an incompatible version");const l=new le(t);return l._documentCount=s,l._nextId=n,l._idToShortId=new Map,l._fieldIds=r,l._avgFieldLength=i,l._dirtCount=o||0,l._index=new X,l}executeQuery(e,t={}){if(e===le.wildcard)return this.executeWildcardQuery(t);if(typeof e!="string"){const f=Object.assign(Object.assign(Object.assign({},t),e),{queries:void 0}),b=e.queries.map(y=>this.executeQuery(y,f));return this.combineResults(b,f.combineWith)}const{tokenize:s,processTerm:n,searchOptions:r}=this._options,i=Object.assign(Object.assign({tokenize:s,processTerm:n},r),t),{tokenize:o,processTerm:c}=i,v=o(e).flatMap(f=>c(f)).filter(f=>!!f).map(Ws(i)).map(f=>this.executeQuerySpec(f,i));return this.combineResults(v,i.combineWith)}executeQuerySpec(e,t){const s=Object.assign(Object.assign({},this._options.searchOptions),t),n=(s.fields||this._options.fields).reduce((_,w)=>Object.assign(Object.assign({},_),{[w]:ze(s.boost,w)||1}),{}),{boostDocument:r,weights:i,maxFuzzy:o,bm25:c}=s,{fuzzy:l,prefix:h}=Object.assign(Object.assign({},ft.weights),i),v=this._index.get(e.term),f=this.termResults(e.term,e.term,1,e.termBoost,v,n,r,c);let b,y;if(e.prefix&&(b=this._index.atPrefix(e.term)),e.fuzzy){const _=e.fuzzy===!0?.2:e.fuzzy,w=_<1?Math.min(o,Math.round(e.term.length*_)):_;w&&(y=this._index.fuzzyGet(e.term,w))}if(b)for(const[_,w]of b){const R=_.length-e.term.length;if(!R)continue;y==null||y.delete(_);const C=h*_.length/(_.length+.3*R);this.termResults(e.term,_,C,e.termBoost,w,n,r,c,f)}if(y)for(const _ of y.keys()){const[w,R]=y.get(_);if(!R)continue;const C=l*_.length/(_.length+R);this.termResults(e.term,_,C,e.termBoost,w,n,r,c,f)}return f}executeWildcardQuery(e){const t=new Map,s=Object.assign(Object.assign({},this._options.searchOptions),e);for(const[n,r]of this._documentIds){const i=s.boostDocument?s.boostDocument(r,"",this._storedFields.get(n)):1;t.set(n,{score:i,terms:[],match:{}})}return t}combineResults(e,t=Ue){if(e.length===0)return new Map;const s=t.toLowerCase(),n=js[s];if(!n)throw new Error(`Invalid combination operator: ${t}`);return e.reduce(n)||new Map}toJSON(){const e=[];for(const[t,s]of this._index){const n={};for(const[r,i]of s)n[r]=Object.fromEntries(i);e.push([t,n])}return{documentCount:this._documentCount,nextId:this._nextId,documentIds:Object.fromEntries(this._documentIds),fieldIds:this._fieldIds,fieldLength:Object.fromEntries(this._fieldLength),averageFieldLength:this._avgFieldLength,storedFields:Object.fromEntries(this._storedFields),dirtCount:this._dirtCount,index:e,serializationVersion:2}}termResults(e,t,s,n,r,i,o,c,l=new Map){if(r==null)return l;for(const h of Object.keys(i)){const v=i[h],f=this._fieldIds[h],b=r.get(f);if(b==null)continue;let y=b.size;const _=this._avgFieldLength[f];for(const w of b.keys()){if(!this._documentIds.has(w)){this.removeTerm(f,w,t),y-=1;continue}const R=o?o(this._documentIds.get(w),t,this._storedFields.get(w)):1;if(!R)continue;const C=b.get(w),J=this._fieldLength.get(w)[f],H=Bs(C,y,this._documentCount,J,_,c),W=s*n*v*R*H,j=l.get(w);if(j){j.score+=W,Js(j.terms,e);const $=ze(j.match,t);$?$.push(h):j.match[t]=[h]}else l.set(w,{score:W,terms:[e],match:{[t]:[h]}})}}return l}addTerm(e,t,s){const n=this._index.fetch(s,mt);let r=n.get(e);if(r==null)r=new Map,r.set(t,1),n.set(e,r);else{const i=r.get(t);r.set(t,(i||0)+1)}}removeTerm(e,t,s){if(!this._index.has(s)){this.warnDocumentChanged(t,e,s);return}const n=this._index.fetch(s,mt),r=n.get(e);r==null||r.get(t)==null?this.warnDocumentChanged(t,e,s):r.get(t)<=1?r.size<=1?n.delete(e):r.delete(t):r.set(t,r.get(t)-1),this._index.get(s).size===0&&this._index.delete(s)}warnDocumentChanged(e,t,s){for(const n of Object.keys(this._fieldIds))if(this._fieldIds[n]===t){this._options.logger("warn",`MiniSearch: document with ID ${this._documentIds.get(e)} has changed before removal: term "${s}" was not present in field "${n}". Removing a document after it has changed can corrupt the index!`,"version_conflict");return}}addDocumentId(e){const t=this._nextId;return this._idToShortId.set(e,t),this._documentIds.set(t,e),this._documentCount+=1,this._nextId+=1,t}addFields(e){for(let t=0;tObject.prototype.hasOwnProperty.call(a,e)?a[e]:void 0,js={[Ue]:(a,e)=>{for(const t of e.keys()){const s=a.get(t);if(s==null)a.set(t,e.get(t));else{const{score:n,terms:r,match:i}=e.get(t);s.score=s.score+n,s.match=Object.assign(s.match,i),pt(s.terms,r)}}return a},[kt]:(a,e)=>{const t=new Map;for(const s of e.keys()){const n=a.get(s);if(n==null)continue;const{score:r,terms:i,match:o}=e.get(s);pt(n.terms,i),t.set(s,{score:n.score+r,terms:n.terms,match:Object.assign(n.match,o)})}return t},[Vs]:(a,e)=>{for(const t of e.keys())a.delete(t);return a}},$s={k:1.2,b:.7,d:.5},Bs=(a,e,t,s,n,r)=>{const{k:i,b:o,d:c}=r;return Math.log(1+(t-e+.5)/(e+.5))*(c+a*(i+1)/(a+i*(1-o+o*s/n)))},Ws=a=>(e,t,s)=>{const n=typeof a.fuzzy=="function"?a.fuzzy(e,t,s):a.fuzzy||!1,r=typeof a.prefix=="function"?a.prefix(e,t,s):a.prefix===!0,i=typeof a.boostTerm=="function"?a.boostTerm(e,t,s):1;return{term:e,fuzzy:n,prefix:r,termBoost:i}},Pe={idField:"id",extractField:(a,e)=>a[e],tokenize:a=>a.split(Us),processTerm:a=>a.toLowerCase(),fields:void 0,searchOptions:void 0,storeFields:[],logger:(a,e)=>{typeof(console==null?void 0:console[a])=="function"&&console[a](e)},autoVacuum:!0},ft={combineWith:Ue,prefix:!1,fuzzy:!1,maxFuzzy:6,boost:{},weights:{fuzzy:.45,prefix:.375},bm25:$s},Ks={combineWith:kt,prefix:(a,e,t)=>e===t.length-1},We={batchSize:1e3,batchWait:10},Ke={minDirtFactor:.1,minDirtCount:20},Ve=Object.assign(Object.assign({},We),Ke),Js=(a,e)=>{a.includes(e)||a.push(e)},pt=(a,e)=>{for(const t of e)a.includes(t)||a.push(t)},vt=({score:a},{score:e})=>e-a,mt=()=>new Map,Se=a=>{const e=new Map;for(const t of Object.keys(a))e.set(parseInt(t,10),a[t]);return e},Ee=a=>Te(void 0,void 0,void 0,function*(){const e=new Map;let t=0;for(const s of Object.keys(a))e.set(parseInt(s,10),a[s]),++t%1e3===0&&(yield Ft(0));return e}),Ft=a=>new Promise(e=>setTimeout(e,a)),Us=/[\n\r\p{Z}\p{P}]+/u;class qs{constructor(e=10){Ce(this,"max");Ce(this,"cache");this.max=e,this.cache=new Map}get(e){let t=this.cache.get(e);return t!==void 0&&(this.cache.delete(e),this.cache.set(e,t)),t}set(e,t){this.cache.has(e)?this.cache.delete(e):this.cache.size===this.max&&this.cache.delete(this.first()),this.cache.set(e,t)}first(){return this.cache.keys().next().value}clear(){this.cache.clear()}}const K=a=>(Yt("data-v-1db8f530"),a=a(),Zt(),a),Gs=["aria-owns"],Qs={class:"shell"},Hs=["title"],Ys=K(()=>x("span",{"aria-hidden":"true",class:"vpi-search search-icon local-search-icon"},null,-1)),Zs=[Ys],Xs={class:"search-actions before"},en=["title"],tn=K(()=>x("span",{class:"vpi-arrow-left local-search-icon"},null,-1)),sn=[tn],nn=["placeholder"],rn={class:"search-actions"},an=["title"],on=K(()=>x("span",{class:"vpi-layout-list local-search-icon"},null,-1)),cn=[on],ln=["disabled","title"],un=K(()=>x("span",{class:"vpi-delete local-search-icon"},null,-1)),dn=[un],hn=["id","role","aria-labelledby"],fn=["aria-selected"],pn=["href","aria-label","onMouseenter","onFocusin"],vn={class:"titles"},mn=K(()=>x("span",{class:"title-icon"},"#",-1)),gn=["innerHTML"],bn=K(()=>x("span",{class:"vpi-chevron-right local-search-icon"},null,-1)),yn={class:"title main"},wn=["innerHTML"],_n={key:0,class:"excerpt-wrapper"},xn={key:0,class:"excerpt",inert:""},Sn=["innerHTML"],En=K(()=>x("div",{class:"excerpt-gradient-bottom"},null,-1)),Tn=K(()=>x("div",{class:"excerpt-gradient-top"},null,-1)),In={key:0,class:"no-results"},Nn={class:"search-keyboard-shortcuts"},kn=["aria-label"],Fn=K(()=>x("span",{class:"vpi-arrow-up navigate-icon"},null,-1)),On=[Fn],Rn=["aria-label"],Cn=K(()=>x("span",{class:"vpi-arrow-down navigate-icon"},null,-1)),Mn=[Cn],An=["aria-label"],Ln=K(()=>x("span",{class:"vpi-corner-down-left navigate-icon"},null,-1)),Dn=[Ln],zn=["aria-label"],Pn=Lt({__name:"VPLocalSearchBox",emits:["close"],setup(a,{emit:e}){var F,M;const t=e,s=ye(),n=ye(),r=ye(as),i=is(),{activate:o}=Ms(s,{immediate:!0,allowOutsideClick:!0,clickOutsideDeactivates:!0,escapeDeactivates:!0}),{localeIndex:c,theme:l}=i,h=st(async()=>{var p,g,N,O,P,V,I,L,q;return at(le.loadJSON((N=await((g=(p=r.value)[c.value])==null?void 0:g.call(p)))==null?void 0:N.default,{fields:["title","titles","text"],storeFields:["title","titles"],searchOptions:{fuzzy:.2,prefix:!0,boost:{title:4,text:2,titles:1},...((O=l.value.search)==null?void 0:O.provider)==="local"&&((V=(P=l.value.search.options)==null?void 0:P.miniSearch)==null?void 0:V.searchOptions)},...((I=l.value.search)==null?void 0:I.provider)==="local"&&((q=(L=l.value.search.options)==null?void 0:L.miniSearch)==null?void 0:q.options)}))}),f=ve(()=>{var p,g;return((p=l.value.search)==null?void 0:p.provider)==="local"&&((g=l.value.search.options)==null?void 0:g.disableQueryPersistence)===!0}).value?ne(""):Dt("vitepress:local-search-filter",""),b=zt("vitepress:local-search-detailed-list",((F=l.value.search)==null?void 0:F.provider)==="local"&&((M=l.value.search.options)==null?void 0:M.detailedView)===!0),y=ve(()=>{var p,g,N;return((p=l.value.search)==null?void 0:p.provider)==="local"&&(((g=l.value.search.options)==null?void 0:g.disableDetailedView)===!0||((N=l.value.search.options)==null?void 0:N.detailedView)===!1)}),_=ve(()=>{var g,N,O,P,V,I,L;const p=((g=l.value.search)==null?void 0:g.options)??l.value.algolia;return((V=(P=(O=(N=p==null?void 0:p.locales)==null?void 0:N[c.value])==null?void 0:O.translations)==null?void 0:P.button)==null?void 0:V.buttonText)||((L=(I=p==null?void 0:p.translations)==null?void 0:I.button)==null?void 0:L.buttonText)||"Search"});Pt(()=>{y.value&&(b.value=!1)});const w=ye([]),R=ne(!1);je(f,()=>{R.value=!1});const C=st(async()=>{if(n.value)return at(new Ls(n.value))},null),J=new qs(16);Vt(()=>[h.value,f.value,b.value],async([p,g,N],O,P)=>{var ge,qe,Ge,Qe;(O==null?void 0:O[0])!==p&&J.clear();let V=!1;if(P(()=>{V=!0}),!p)return;w.value=p.search(g).slice(0,16),R.value=!0;const I=N?await Promise.all(w.value.map(B=>H(B.id))):[];if(V)return;for(const{id:B,mod:ee}of I){const te=B.slice(0,B.indexOf("#"));let Y=J.get(te);if(Y)continue;Y=new Map,J.set(te,Y);const G=ee.default??ee;if(G!=null&&G.render||G!=null&&G.setup){const se=Xt(G);se.config.warnHandler=()=>{},se.provide(es,i),Object.defineProperties(se.config.globalProperties,{$frontmatter:{get(){return i.frontmatter.value}},$params:{get(){return i.page.value.params}}});const He=document.createElement("div");se.mount(He),He.querySelectorAll("h1, h2, h3, h4, h5, h6").forEach(ue=>{var Xe;const be=(Xe=ue.querySelector("a"))==null?void 0:Xe.getAttribute("href"),Ye=(be==null?void 0:be.startsWith("#"))&&be.slice(1);if(!Ye)return;let Ze="";for(;(ue=ue.nextElementSibling)&&!/^h[1-6]$/i.test(ue.tagName);)Ze+=ue.outerHTML;Y.set(Ye,Ze)}),se.unmount()}if(V)return}const L=new Set;if(w.value=w.value.map(B=>{const[ee,te]=B.id.split("#"),Y=J.get(ee),G=(Y==null?void 0:Y.get(te))??"";for(const se in B.match)L.add(se);return{...B,text:G}}),await de(),V)return;await new Promise(B=>{var ee;(ee=C.value)==null||ee.unmark({done:()=>{var te;(te=C.value)==null||te.markRegExp(k(L),{done:B})}})});const q=((ge=s.value)==null?void 0:ge.querySelectorAll(".result .excerpt"))??[];for(const B of q)(qe=B.querySelector('mark[data-markjs="true"]'))==null||qe.scrollIntoView({block:"center"});(Qe=(Ge=n.value)==null?void 0:Ge.firstElementChild)==null||Qe.scrollIntoView({block:"start"})},{debounce:200,immediate:!0});async function H(p){const g=ts(p.slice(0,p.indexOf("#")));try{if(!g)throw new Error(`Cannot find file for id: ${p}`);return{id:p,mod:await import(g)}}catch(N){return console.error(N),{id:p,mod:{}}}}const W=ne(),j=ve(()=>{var p;return((p=f.value)==null?void 0:p.length)<=0});function $(p=!0){var g,N;(g=W.value)==null||g.focus(),p&&((N=W.value)==null||N.select())}Me(()=>{$()});function Re(p){p.pointerType==="mouse"&&$()}const A=ne(-1),U=ne(!1);je(w,p=>{A.value=p.length?0:-1,T()});function T(){de(()=>{const p=document.querySelector(".result.selected");p==null||p.scrollIntoView({block:"nearest"})})}we("ArrowUp",p=>{p.preventDefault(),A.value--,A.value<0&&(A.value=w.value.length-1),U.value=!0,T()}),we("ArrowDown",p=>{p.preventDefault(),A.value++,A.value>=w.value.length&&(A.value=0),U.value=!0,T()});const u=jt();we("Enter",p=>{if(p.isComposing||p.target instanceof HTMLButtonElement&&p.target.type!=="submit")return;const g=w.value[A.value];if(p.target instanceof HTMLInputElement&&!g){p.preventDefault();return}g&&(u.go(g.id),t("close"))}),we("Escape",()=>{t("close")});const m=rs({modal:{displayDetails:"Display detailed list",resetButtonTitle:"Reset search",backButtonTitle:"Close search",noResultsText:"No results for",footer:{selectText:"to select",selectKeyAriaLabel:"enter",navigateText:"to navigate",navigateUpKeyAriaLabel:"up arrow",navigateDownKeyAriaLabel:"down arrow",closeText:"to close",closeKeyAriaLabel:"escape"}}});Me(()=>{window.history.pushState(null,"",null)}),$t("popstate",p=>{p.preventDefault(),t("close")});const S=Bt(Wt?document.body:null);Me(()=>{de(()=>{S.value=!0,de().then(()=>o())})}),Kt(()=>{S.value=!1});function E(){f.value="",de().then(()=>$(!1))}function k(p){return new RegExp([...p].sort((g,N)=>N.length-g.length).map(g=>`(${ss(g)})`).join("|"),"gi")}return(p,g)=>{var N,O,P,V;return Q(),Jt(Ht,{to:"body"},[x("div",{ref_key:"el",ref:s,role:"button","aria-owns":(N=w.value)!=null&&N.length?"localsearch-list":void 0,"aria-expanded":"true","aria-haspopup":"listbox","aria-labelledby":"localsearch-label",class:"VPLocalSearchBox"},[x("div",{class:"backdrop",onClick:g[0]||(g[0]=I=>p.$emit("close"))}),x("div",Qs,[x("form",{class:"search-bar",onPointerup:g[4]||(g[4]=I=>Re(I)),onSubmit:g[5]||(g[5]=Ut(()=>{},["prevent"]))},[x("label",{title:_.value,id:"localsearch-label",for:"localsearch-input"},Zs,8,Hs),x("div",Xs,[x("button",{class:"back-button",title:D(m)("modal.backButtonTitle"),onClick:g[1]||(g[1]=I=>p.$emit("close"))},sn,8,en)]),qt(x("input",{ref_key:"searchInput",ref:W,"onUpdate:modelValue":g[2]||(g[2]=I=>Qt(f)?f.value=I:null),placeholder:_.value,id:"localsearch-input","aria-labelledby":"localsearch-label",class:"search-input"},null,8,nn),[[Gt,D(f)]]),x("div",rn,[y.value?_e("",!0):(Q(),Z("button",{key:0,class:nt(["toggle-layout-button",{"detailed-list":D(b)}]),type:"button",title:D(m)("modal.displayDetails"),onClick:g[3]||(g[3]=I=>A.value>-1&&(b.value=!D(b)))},cn,10,an)),x("button",{class:"clear-button",type:"reset",disabled:j.value,title:D(m)("modal.resetButtonTitle"),onClick:E},dn,8,ln)])],32),x("ul",{ref_key:"resultsEl",ref:n,id:(O=w.value)!=null&&O.length?"localsearch-list":void 0,role:(P=w.value)!=null&&P.length?"listbox":void 0,"aria-labelledby":(V=w.value)!=null&&V.length?"localsearch-label":void 0,class:"results",onMousemove:g[7]||(g[7]=I=>U.value=!1)},[(Q(!0),Z(rt,null,it(w.value,(I,L)=>(Q(),Z("li",{key:I.id,role:"option","aria-selected":A.value===L?"true":"false"},[x("a",{href:I.id,class:nt(["result",{selected:A.value===L}]),"aria-label":[...I.titles,I.title].join(" > "),onMouseenter:q=>!U.value&&(A.value=L),onFocusin:q=>A.value=L,onClick:g[6]||(g[6]=q=>p.$emit("close"))},[x("div",null,[x("div",vn,[mn,(Q(!0),Z(rt,null,it(I.titles,(q,ge)=>(Q(),Z("span",{key:ge,class:"title"},[x("span",{class:"text",innerHTML:q},null,8,gn),bn]))),128)),x("span",yn,[x("span",{class:"text",innerHTML:I.title},null,8,wn)])]),D(b)?(Q(),Z("div",_n,[I.text?(Q(),Z("div",xn,[x("div",{class:"vp-doc",innerHTML:I.text},null,8,Sn)])):_e("",!0),En,Tn])):_e("",!0)])],42,pn)],8,fn))),128)),D(f)&&!w.value.length&&R.value?(Q(),Z("li",In,[he(fe(D(m)("modal.noResultsText"))+' "',1),x("strong",null,fe(D(f)),1),he('" ')])):_e("",!0)],40,hn),x("div",Nn,[x("span",null,[x("kbd",{"aria-label":D(m)("modal.footer.navigateUpKeyAriaLabel")},On,8,kn),x("kbd",{"aria-label":D(m)("modal.footer.navigateDownKeyAriaLabel")},Mn,8,Rn),he(" "+fe(D(m)("modal.footer.navigateText")),1)]),x("span",null,[x("kbd",{"aria-label":D(m)("modal.footer.selectKeyAriaLabel")},Dn,8,An),he(" "+fe(D(m)("modal.footer.selectText")),1)]),x("span",null,[x("kbd",{"aria-label":D(m)("modal.footer.closeKeyAriaLabel")},"esc",8,zn),he(" "+fe(D(m)("modal.footer.closeText")),1)])])])],8,Gs)])}}}),Kn=ns(Pn,[["__scopeId","data-v-1db8f530"]]);export{Kn as default}; diff --git a/assets/chunks/VPLocalSearchBox.vmvtnKUe.js b/assets/chunks/VPLocalSearchBox.vmvtnKUe.js new file mode 100644 index 00000000..06fdadf1 --- /dev/null +++ b/assets/chunks/VPLocalSearchBox.vmvtnKUe.js @@ -0,0 +1,7 @@ +var Ft=Object.defineProperty;var Ot=(a,e,t)=>e in a?Ft(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t;var Ce=(a,e,t)=>Ot(a,typeof e!="symbol"?e+"":e,t);import{V as Xe,p as ne,h as ve,am as et,an as Rt,ao as Ct,q as Ve,ap as Mt,d as At,D as we,aq as tt,ar as Lt,as as Dt,s as zt,at as Pt,v as Me,P as de,O as xe,au as jt,av as Vt,W as $t,R as Bt,$ as Wt,o as q,b as Kt,j as _,a0 as Jt,k as D,a4 as Ut,a5 as qt,a6 as Gt,c as Y,n as st,e as _e,C as nt,F as it,a as he,t as fe,aw as Ht,ax as rt,ay as Qt,ab as Yt,ah as Zt,az as Xt,_ as es}from"./framework.jrU0lkHV.js";import{u as ts,c as ss}from"./theme.0PwJcuzq.js";const ns={en:()=>Xe(()=>import("./@localSearchIndexen.DFtgcR16.js"),[]),root:()=>Xe(()=>import("./@localSearchIndexroot.D6awRTd5.js"),[])};/*! +* tabbable 6.2.0 +* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE +*/var mt=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],ke=mt.join(","),gt=typeof Element>"u",re=gt?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Ne=!gt&&Element.prototype.getRootNode?function(a){var e;return a==null||(e=a.getRootNode)===null||e===void 0?void 0:e.call(a)}:function(a){return a==null?void 0:a.ownerDocument},Fe=function a(e,t){var s;t===void 0&&(t=!0);var n=e==null||(s=e.getAttribute)===null||s===void 0?void 0:s.call(e,"inert"),r=n===""||n==="true",i=r||t&&e&&a(e.parentNode);return i},is=function(e){var t,s=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return s===""||s==="true"},bt=function(e,t,s){if(Fe(e))return[];var n=Array.prototype.slice.apply(e.querySelectorAll(ke));return t&&re.call(e,ke)&&n.unshift(e),n=n.filter(s),n},yt=function a(e,t,s){for(var n=[],r=Array.from(e);r.length;){var i=r.shift();if(!Fe(i,!1))if(i.tagName==="SLOT"){var o=i.assignedElements(),l=o.length?o:i.children,c=a(l,!0,s);s.flatten?n.push.apply(n,c):n.push({scopeParent:i,candidates:c})}else{var h=re.call(i,ke);h&&s.filter(i)&&(t||!e.includes(i))&&n.push(i);var v=i.shadowRoot||typeof s.getShadowRoot=="function"&&s.getShadowRoot(i),p=!Fe(v,!1)&&(!s.shadowRootFilter||s.shadowRootFilter(i));if(v&&p){var b=a(v===!0?i.children:v.children,!0,s);s.flatten?n.push.apply(n,b):n.push({scopeParent:i,candidates:b})}else r.unshift.apply(r,i.children)}}return n},wt=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},ie=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||is(e))&&!wt(e)?0:e.tabIndex},rs=function(e,t){var s=ie(e);return s<0&&t&&!wt(e)?0:s},as=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},xt=function(e){return e.tagName==="INPUT"},os=function(e){return xt(e)&&e.type==="hidden"},ls=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(s){return s.tagName==="SUMMARY"});return t},cs=function(e,t){for(var s=0;ssummary:first-of-type"),i=r?e.parentElement:e;if(re.call(i,"details:not([open]) *"))return!0;if(!s||s==="full"||s==="legacy-full"){if(typeof n=="function"){for(var o=e;e;){var l=e.parentElement,c=Ne(e);if(l&&!l.shadowRoot&&n(l)===!0)return at(e);e.assignedSlot?e=e.assignedSlot:!l&&c!==e.ownerDocument?e=c.host:e=l}e=o}if(fs(e))return!e.getClientRects().length;if(s!=="legacy-full")return!0}else if(s==="non-zero-area")return at(e);return!1},vs=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var s=0;s=0)},gs=function a(e){var t=[],s=[];return e.forEach(function(n,r){var i=!!n.scopeParent,o=i?n.scopeParent:n,l=rs(o,i),c=i?a(n.candidates):o;l===0?i?t.push.apply(t,c):t.push(o):s.push({documentOrder:r,tabIndex:l,item:n,isScope:i,content:c})}),s.sort(as).reduce(function(n,r){return r.isScope?n.push.apply(n,r.content):n.push(r.content),n},[]).concat(t)},bs=function(e,t){t=t||{};var s;return t.getShadowRoot?s=yt([e],t.includeContainer,{filter:$e.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:ms}):s=bt(e,t.includeContainer,$e.bind(null,t)),gs(s)},ys=function(e,t){t=t||{};var s;return t.getShadowRoot?s=yt([e],t.includeContainer,{filter:Oe.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):s=bt(e,t.includeContainer,Oe.bind(null,t)),s},ae=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return re.call(e,ke)===!1?!1:$e(t,e)},ws=mt.concat("iframe").join(","),Ae=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return re.call(e,ws)===!1?!1:Oe(t,e)};/*! +* focus-trap 7.6.0 +* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE +*/function xs(a,e,t){return(e=Ss(e))in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function ot(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(a);e&&(s=s.filter(function(n){return Object.getOwnPropertyDescriptor(a,n).enumerable})),t.push.apply(t,s)}return t}function lt(a){for(var e=1;e0){var s=e[e.length-1];s!==t&&s.pause()}var n=e.indexOf(t);n===-1||e.splice(n,1),e.push(t)},deactivateTrap:function(e,t){var s=e.indexOf(t);s!==-1&&e.splice(s,1),e.length>0&&e[e.length-1].unpause()}},Es=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},Ts=function(e){return(e==null?void 0:e.key)==="Escape"||(e==null?void 0:e.key)==="Esc"||(e==null?void 0:e.keyCode)===27},me=function(e){return(e==null?void 0:e.key)==="Tab"||(e==null?void 0:e.keyCode)===9},Is=function(e){return me(e)&&!e.shiftKey},ks=function(e){return me(e)&&e.shiftKey},ut=function(e){return setTimeout(e,0)},dt=function(e,t){var s=-1;return e.every(function(n,r){return t(n)?(s=r,!1):!0}),s},pe=function(e){for(var t=arguments.length,s=new Array(t>1?t-1:0),n=1;n1?g-1:0),E=1;E=0)d=s.activeElement;else{var u=i.tabbableGroups[0],g=u&&u.firstTabbableNode;d=g||h("fallbackFocus")}if(!d)throw new Error("Your focus-trap needs to have at least one focusable element");return d},p=function(){if(i.containerGroups=i.containers.map(function(d){var u=bs(d,r.tabbableOptions),g=ys(d,r.tabbableOptions),S=u.length>0?u[0]:void 0,E=u.length>0?u[u.length-1]:void 0,N=g.find(function(f){return ae(f)}),F=g.slice().reverse().find(function(f){return ae(f)}),m=!!u.find(function(f){return ie(f)>0});return{container:d,tabbableNodes:u,focusableNodes:g,posTabIndexesFound:m,firstTabbableNode:S,lastTabbableNode:E,firstDomTabbableNode:N,lastDomTabbableNode:F,nextTabbableNode:function(I){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,C=u.indexOf(I);return C<0?A?g.slice(g.indexOf(I)+1).find(function(M){return ae(M)}):g.slice(0,g.indexOf(I)).reverse().find(function(M){return ae(M)}):u[C+(A?1:-1)]}}}),i.tabbableGroups=i.containerGroups.filter(function(d){return d.tabbableNodes.length>0}),i.tabbableGroups.length<=0&&!h("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(i.containerGroups.find(function(d){return d.posTabIndexesFound})&&i.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},b=function(d){var u=d.activeElement;if(u)return u.shadowRoot&&u.shadowRoot.activeElement!==null?b(u.shadowRoot):u},y=function(d){if(d!==!1&&d!==b(document)){if(!d||!d.focus){y(v());return}d.focus({preventScroll:!!r.preventScroll}),i.mostRecentlyFocusedNode=d,Es(d)&&d.select()}},x=function(d){var u=h("setReturnFocus",d);return u||(u===!1?!1:d)},w=function(d){var u=d.target,g=d.event,S=d.isBackward,E=S===void 0?!1:S;u=u||Se(g),p();var N=null;if(i.tabbableGroups.length>0){var F=c(u,g),m=F>=0?i.containerGroups[F]:void 0;if(F<0)E?N=i.tabbableGroups[i.tabbableGroups.length-1].lastTabbableNode:N=i.tabbableGroups[0].firstTabbableNode;else if(E){var f=dt(i.tabbableGroups,function(T){var P=T.firstTabbableNode;return u===P});if(f<0&&(m.container===u||Ae(u,r.tabbableOptions)&&!ae(u,r.tabbableOptions)&&!m.nextTabbableNode(u,!1))&&(f=F),f>=0){var I=f===0?i.tabbableGroups.length-1:f-1,A=i.tabbableGroups[I];N=ie(u)>=0?A.lastTabbableNode:A.lastDomTabbableNode}else me(g)||(N=m.nextTabbableNode(u,!1))}else{var C=dt(i.tabbableGroups,function(T){var P=T.lastTabbableNode;return u===P});if(C<0&&(m.container===u||Ae(u,r.tabbableOptions)&&!ae(u,r.tabbableOptions)&&!m.nextTabbableNode(u))&&(C=F),C>=0){var M=C===i.tabbableGroups.length-1?0:C+1,j=i.tabbableGroups[M];N=ie(u)>=0?j.firstTabbableNode:j.firstDomTabbableNode}else me(g)||(N=m.nextTabbableNode(u))}}else N=h("fallbackFocus");return N},O=function(d){var u=Se(d);if(!(c(u,d)>=0)){if(pe(r.clickOutsideDeactivates,d)){o.deactivate({returnFocus:r.returnFocusOnDeactivate});return}pe(r.allowOutsideClick,d)||d.preventDefault()}},R=function(d){var u=Se(d),g=c(u,d)>=0;if(g||u instanceof Document)g&&(i.mostRecentlyFocusedNode=u);else{d.stopImmediatePropagation();var S,E=!0;if(i.mostRecentlyFocusedNode)if(ie(i.mostRecentlyFocusedNode)>0){var N=c(i.mostRecentlyFocusedNode),F=i.containerGroups[N].tabbableNodes;if(F.length>0){var m=F.findIndex(function(f){return f===i.mostRecentlyFocusedNode});m>=0&&(r.isKeyForward(i.recentNavEvent)?m+1=0&&(S=F[m-1],E=!1))}}else i.containerGroups.some(function(f){return f.tabbableNodes.some(function(I){return ie(I)>0})})||(E=!1);else E=!1;E&&(S=w({target:i.mostRecentlyFocusedNode,isBackward:r.isKeyBackward(i.recentNavEvent)})),y(S||i.mostRecentlyFocusedNode||v())}i.recentNavEvent=void 0},K=function(d){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;i.recentNavEvent=d;var g=w({event:d,isBackward:u});g&&(me(d)&&d.preventDefault(),y(g))},G=function(d){(r.isKeyForward(d)||r.isKeyBackward(d))&&K(d,r.isKeyBackward(d))},W=function(d){Ts(d)&&pe(r.escapeDeactivates,d)!==!1&&(d.preventDefault(),o.deactivate())},V=function(d){var u=Se(d);c(u,d)>=0||pe(r.clickOutsideDeactivates,d)||pe(r.allowOutsideClick,d)||(d.preventDefault(),d.stopImmediatePropagation())},$=function(){if(i.active)return ct.activateTrap(n,o),i.delayInitialFocusTimer=r.delayInitialFocus?ut(function(){y(v())}):y(v()),s.addEventListener("focusin",R,!0),s.addEventListener("mousedown",O,{capture:!0,passive:!1}),s.addEventListener("touchstart",O,{capture:!0,passive:!1}),s.addEventListener("click",V,{capture:!0,passive:!1}),s.addEventListener("keydown",G,{capture:!0,passive:!1}),s.addEventListener("keydown",W),o},ge=function(){if(i.active)return s.removeEventListener("focusin",R,!0),s.removeEventListener("mousedown",O,!0),s.removeEventListener("touchstart",O,!0),s.removeEventListener("click",V,!0),s.removeEventListener("keydown",G,!0),s.removeEventListener("keydown",W),o},L=function(d){var u=d.some(function(g){var S=Array.from(g.removedNodes);return S.some(function(E){return E===i.mostRecentlyFocusedNode})});u&&y(v())},H=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(L):void 0,J=function(){H&&(H.disconnect(),i.active&&!i.paused&&i.containers.map(function(d){H.observe(d,{subtree:!0,childList:!0})}))};return o={get active(){return i.active},get paused(){return i.paused},activate:function(d){if(i.active)return this;var u=l(d,"onActivate"),g=l(d,"onPostActivate"),S=l(d,"checkCanFocusTrap");S||p(),i.active=!0,i.paused=!1,i.nodeFocusedBeforeActivation=s.activeElement,u==null||u();var E=function(){S&&p(),$(),J(),g==null||g()};return S?(S(i.containers.concat()).then(E,E),this):(E(),this)},deactivate:function(d){if(!i.active)return this;var u=lt({onDeactivate:r.onDeactivate,onPostDeactivate:r.onPostDeactivate,checkCanReturnFocus:r.checkCanReturnFocus},d);clearTimeout(i.delayInitialFocusTimer),i.delayInitialFocusTimer=void 0,ge(),i.active=!1,i.paused=!1,J(),ct.deactivateTrap(n,o);var g=l(u,"onDeactivate"),S=l(u,"onPostDeactivate"),E=l(u,"checkCanReturnFocus"),N=l(u,"returnFocus","returnFocusOnDeactivate");g==null||g();var F=function(){ut(function(){N&&y(x(i.nodeFocusedBeforeActivation)),S==null||S()})};return N&&E?(E(x(i.nodeFocusedBeforeActivation)).then(F,F),this):(F(),this)},pause:function(d){if(i.paused||!i.active)return this;var u=l(d,"onPause"),g=l(d,"onPostPause");return i.paused=!0,u==null||u(),ge(),J(),g==null||g(),this},unpause:function(d){if(!i.paused||!i.active)return this;var u=l(d,"onUnpause"),g=l(d,"onPostUnpause");return i.paused=!1,u==null||u(),p(),$(),J(),g==null||g(),this},updateContainerElements:function(d){var u=[].concat(d).filter(Boolean);return i.containers=u.map(function(g){return typeof g=="string"?s.querySelector(g):g}),i.active&&p(),J(),this}},o.updateContainerElements(e),o};function Os(a,e={}){let t;const{immediate:s,...n}=e,r=ne(!1),i=ne(!1),o=p=>t&&t.activate(p),l=p=>t&&t.deactivate(p),c=()=>{t&&(t.pause(),i.value=!0)},h=()=>{t&&(t.unpause(),i.value=!1)},v=ve(()=>{const p=et(a);return(Array.isArray(p)?p:[p]).map(b=>{const y=et(b);return typeof y=="string"?y:Rt(y)}).filter(Ct)});return Ve(v,p=>{p.length&&(t=Fs(p,{...n,onActivate(){r.value=!0,e.onActivate&&e.onActivate()},onDeactivate(){r.value=!1,e.onDeactivate&&e.onDeactivate()}}),s&&o())},{flush:"post"}),Mt(()=>l()),{hasFocus:r,isPaused:i,activate:o,deactivate:l,pause:c,unpause:h}}class le{constructor(e,t=!0,s=[],n=5e3){this.ctx=e,this.iframes=t,this.exclude=s,this.iframesTimeout=n}static matches(e,t){const s=typeof t=="string"?[t]:t,n=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(n){let r=!1;return s.every(i=>n.call(e,i)?(r=!0,!1):!0),r}else return!1}getContexts(){let e,t=[];return typeof this.ctx>"u"||!this.ctx?e=[]:NodeList.prototype.isPrototypeOf(this.ctx)?e=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?e=this.ctx:typeof this.ctx=="string"?e=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):e=[this.ctx],e.forEach(s=>{const n=t.filter(r=>r.contains(s)).length>0;t.indexOf(s)===-1&&!n&&t.push(s)}),t}getIframeContents(e,t,s=()=>{}){let n;try{const r=e.contentWindow;if(n=r.document,!r||!n)throw new Error("iframe inaccessible")}catch{s()}n&&t(n)}isIframeBlank(e){const t="about:blank",s=e.getAttribute("src").trim();return e.contentWindow.location.href===t&&s!==t&&s}observeIframeLoad(e,t,s){let n=!1,r=null;const i=()=>{if(!n){n=!0,clearTimeout(r);try{this.isIframeBlank(e)||(e.removeEventListener("load",i),this.getIframeContents(e,t,s))}catch{s()}}};e.addEventListener("load",i),r=setTimeout(i,this.iframesTimeout)}onIframeReady(e,t,s){try{e.contentWindow.document.readyState==="complete"?this.isIframeBlank(e)?this.observeIframeLoad(e,t,s):this.getIframeContents(e,t,s):this.observeIframeLoad(e,t,s)}catch{s()}}waitForIframes(e,t){let s=0;this.forEachIframe(e,()=>!0,n=>{s++,this.waitForIframes(n.querySelector("html"),()=>{--s||t()})},n=>{n||t()})}forEachIframe(e,t,s,n=()=>{}){let r=e.querySelectorAll("iframe"),i=r.length,o=0;r=Array.prototype.slice.call(r);const l=()=>{--i<=0&&n(o)};i||l(),r.forEach(c=>{le.matches(c,this.exclude)?l():this.onIframeReady(c,h=>{t(c)&&(o++,s(h)),l()},l)})}createIterator(e,t,s){return document.createNodeIterator(e,t,s,!1)}createInstanceOnIframe(e){return new le(e.querySelector("html"),this.iframes)}compareNodeIframe(e,t,s){const n=e.compareDocumentPosition(s),r=Node.DOCUMENT_POSITION_PRECEDING;if(n&r)if(t!==null){const i=t.compareDocumentPosition(s),o=Node.DOCUMENT_POSITION_FOLLOWING;if(i&o)return!0}else return!0;return!1}getIteratorNode(e){const t=e.previousNode();let s;return t===null?s=e.nextNode():s=e.nextNode()&&e.nextNode(),{prevNode:t,node:s}}checkIframeFilter(e,t,s,n){let r=!1,i=!1;return n.forEach((o,l)=>{o.val===s&&(r=l,i=o.handled)}),this.compareNodeIframe(e,t,s)?(r===!1&&!i?n.push({val:s,handled:!0}):r!==!1&&!i&&(n[r].handled=!0),!0):(r===!1&&n.push({val:s,handled:!1}),!1)}handleOpenIframes(e,t,s,n){e.forEach(r=>{r.handled||this.getIframeContents(r.val,i=>{this.createInstanceOnIframe(i).forEachNode(t,s,n)})})}iterateThroughNodes(e,t,s,n,r){const i=this.createIterator(t,e,n);let o=[],l=[],c,h,v=()=>({prevNode:h,node:c}=this.getIteratorNode(i),c);for(;v();)this.iframes&&this.forEachIframe(t,p=>this.checkIframeFilter(c,h,p,o),p=>{this.createInstanceOnIframe(p).forEachNode(e,b=>l.push(b),n)}),l.push(c);l.forEach(p=>{s(p)}),this.iframes&&this.handleOpenIframes(o,e,s,n),r()}forEachNode(e,t,s,n=()=>{}){const r=this.getContexts();let i=r.length;i||n(),r.forEach(o=>{const l=()=>{this.iterateThroughNodes(e,o,t,s,()=>{--i<=0&&n()})};this.iframes?this.waitForIframes(o,l):l()})}}let Rs=class{constructor(e){this.ctx=e,this.ie=!1;const t=window.navigator.userAgent;(t.indexOf("MSIE")>-1||t.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(e){this._opt=Object.assign({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:()=>{},noMatch:()=>{},filter:()=>!0,done:()=>{},debug:!1,log:window.console},e)}get opt(){return this._opt}get iterator(){return new le(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(e,t="debug"){const s=this.opt.log;this.opt.debug&&typeof s=="object"&&typeof s[t]=="function"&&s[t](`mark.js: ${e}`)}escapeStr(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(e){return this.opt.wildcards!=="disabled"&&(e=this.setupWildcardsRegExp(e)),e=this.escapeStr(e),Object.keys(this.opt.synonyms).length&&(e=this.createSynonymsRegExp(e)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),this.opt.diacritics&&(e=this.createDiacriticsRegExp(e)),e=this.createMergedBlanksRegExp(e),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.createJoinersRegExp(e)),this.opt.wildcards!=="disabled"&&(e=this.createWildcardsRegExp(e)),e=this.createAccuracyRegExp(e),e}createSynonymsRegExp(e){const t=this.opt.synonyms,s=this.opt.caseSensitive?"":"i",n=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let r in t)if(t.hasOwnProperty(r)){const i=t[r],o=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(r):this.escapeStr(r),l=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(i):this.escapeStr(i);o!==""&&l!==""&&(e=e.replace(new RegExp(`(${this.escapeStr(o)}|${this.escapeStr(l)})`,`gm${s}`),n+`(${this.processSynomyms(o)}|${this.processSynomyms(l)})`+n))}return e}processSynomyms(e){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),e}setupWildcardsRegExp(e){return e=e.replace(/(?:\\)*\?/g,t=>t.charAt(0)==="\\"?"?":""),e.replace(/(?:\\)*\*/g,t=>t.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(e){let t=this.opt.wildcards==="withSpaces";return e.replace(/\u0001/g,t?"[\\S\\s]?":"\\S?").replace(/\u0002/g,t?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(e){return e.replace(/[^(|)\\]/g,(t,s,n)=>{let r=n.charAt(s+1);return/[(|)\\]/.test(r)||r===""?t:t+"\0"})}createJoinersRegExp(e){let t=[];const s=this.opt.ignorePunctuation;return Array.isArray(s)&&s.length&&t.push(this.escapeStr(s.join(""))),this.opt.ignoreJoiners&&t.push("\\u00ad\\u200b\\u200c\\u200d"),t.length?e.split(/\u0000+/).join(`[${t.join("")}]*`):e}createDiacriticsRegExp(e){const t=this.opt.caseSensitive?"":"i",s=this.opt.caseSensitive?["aàáảãạăằắẳẵặâầấẩẫậäåāą","AÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćč","CÇĆČ","dđď","DĐĎ","eèéẻẽẹêềếểễệëěēę","EÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïī","IÌÍỈĨỊÎÏĪ","lł","LŁ","nñňń","NÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøō","OÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rř","RŘ","sšśșş","SŠŚȘŞ","tťțţ","TŤȚŢ","uùúủũụưừứửữựûüůū","UÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿ","YÝỲỶỸỴŸ","zžżź","ZŽŻŹ"]:["aàáảãạăằắẳẵặâầấẩẫậäåāąAÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćčCÇĆČ","dđďDĐĎ","eèéẻẽẹêềếểễệëěēęEÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïīIÌÍỈĨỊÎÏĪ","lłLŁ","nñňńNÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøōOÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rřRŘ","sšśșşSŠŚȘŞ","tťțţTŤȚŢ","uùúủũụưừứửữựûüůūUÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿYÝỲỶỸỴŸ","zžżźZŽŻŹ"];let n=[];return e.split("").forEach(r=>{s.every(i=>{if(i.indexOf(r)!==-1){if(n.indexOf(i)>-1)return!1;e=e.replace(new RegExp(`[${i}]`,`gm${t}`),`[${i}]`),n.push(i)}return!0})}),e}createMergedBlanksRegExp(e){return e.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(e){const t="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~¡¿";let s=this.opt.accuracy,n=typeof s=="string"?s:s.value,r=typeof s=="string"?[]:s.limiters,i="";switch(r.forEach(o=>{i+=`|${this.escapeStr(o)}`}),n){case"partially":default:return`()(${e})`;case"complementary":return i="\\s"+(i||this.escapeStr(t)),`()([^${i}]*${e}[^${i}]*)`;case"exactly":return`(^|\\s${i})(${e})(?=$|\\s${i})`}}getSeparatedKeywords(e){let t=[];return e.forEach(s=>{this.opt.separateWordSearch?s.split(" ").forEach(n=>{n.trim()&&t.indexOf(n)===-1&&t.push(n)}):s.trim()&&t.indexOf(s)===-1&&t.push(s)}),{keywords:t.sort((s,n)=>n.length-s.length),length:t.length}}isNumeric(e){return Number(parseFloat(e))==e}checkRanges(e){if(!Array.isArray(e)||Object.prototype.toString.call(e[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(e),[];const t=[];let s=0;return e.sort((n,r)=>n.start-r.start).forEach(n=>{let{start:r,end:i,valid:o}=this.callNoMatchOnInvalidRanges(n,s);o&&(n.start=r,n.length=i-r,t.push(n),s=i)}),t}callNoMatchOnInvalidRanges(e,t){let s,n,r=!1;return e&&typeof e.start<"u"?(s=parseInt(e.start,10),n=s+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&n-t>0&&n-s>0?r=!0:(this.log(`Ignoring invalid or overlapping range: ${JSON.stringify(e)}`),this.opt.noMatch(e))):(this.log(`Ignoring invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)),{start:s,end:n,valid:r}}checkWhitespaceRanges(e,t,s){let n,r=!0,i=s.length,o=t-i,l=parseInt(e.start,10)-o;return l=l>i?i:l,n=l+parseInt(e.length,10),n>i&&(n=i,this.log(`End range automatically set to the max value of ${i}`)),l<0||n-l<0||l>i||n>i?(r=!1,this.log(`Invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)):s.substring(l,n).replace(/\s+/g,"")===""&&(r=!1,this.log("Skipping whitespace only range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:l,end:n,valid:r}}getTextNodes(e){let t="",s=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,n=>{s.push({start:t.length,end:(t+=n.textContent).length,node:n})},n=>this.matchesExclude(n.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{e({value:t,nodes:s})})}matchesExclude(e){return le.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(e,t,s){const n=this.opt.element?this.opt.element:"mark",r=e.splitText(t),i=r.splitText(s-t);let o=document.createElement(n);return o.setAttribute("data-markjs","true"),this.opt.className&&o.setAttribute("class",this.opt.className),o.textContent=r.textContent,r.parentNode.replaceChild(o,r),i}wrapRangeInMappedTextNode(e,t,s,n,r){e.nodes.every((i,o)=>{const l=e.nodes[o+1];if(typeof l>"u"||l.start>t){if(!n(i.node))return!1;const c=t-i.start,h=(s>i.end?i.end:s)-i.start,v=e.value.substr(0,i.start),p=e.value.substr(h+i.start);if(i.node=this.wrapRangeInTextNode(i.node,c,h),e.value=v+p,e.nodes.forEach((b,y)=>{y>=o&&(e.nodes[y].start>0&&y!==o&&(e.nodes[y].start-=h),e.nodes[y].end-=h)}),s-=h,r(i.node.previousSibling,i.start),s>i.end)t=i.end;else return!1}return!0})}wrapMatches(e,t,s,n,r){const i=t===0?0:t+1;this.getTextNodes(o=>{o.nodes.forEach(l=>{l=l.node;let c;for(;(c=e.exec(l.textContent))!==null&&c[i]!=="";){if(!s(c[i],l))continue;let h=c.index;if(i!==0)for(let v=1;v{let l;for(;(l=e.exec(o.value))!==null&&l[i]!=="";){let c=l.index;if(i!==0)for(let v=1;vs(l[i],v),(v,p)=>{e.lastIndex=p,n(v)})}r()})}wrapRangeFromIndex(e,t,s,n){this.getTextNodes(r=>{const i=r.value.length;e.forEach((o,l)=>{let{start:c,end:h,valid:v}=this.checkWhitespaceRanges(o,i,r.value);v&&this.wrapRangeInMappedTextNode(r,c,h,p=>t(p,o,r.value.substring(c,h),l),p=>{s(p,o)})}),n()})}unwrapMatches(e){const t=e.parentNode;let s=document.createDocumentFragment();for(;e.firstChild;)s.appendChild(e.removeChild(e.firstChild));t.replaceChild(s,e),this.ie?this.normalizeTextNode(t):t.normalize()}normalizeTextNode(e){if(e){if(e.nodeType===3)for(;e.nextSibling&&e.nextSibling.nodeType===3;)e.nodeValue+=e.nextSibling.nodeValue,e.parentNode.removeChild(e.nextSibling);else this.normalizeTextNode(e.firstChild);this.normalizeTextNode(e.nextSibling)}}markRegExp(e,t){this.opt=t,this.log(`Searching with expression "${e}"`);let s=0,n="wrapMatches";const r=i=>{s++,this.opt.each(i)};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),this[n](e,this.opt.ignoreGroups,(i,o)=>this.opt.filter(o,i,s),r,()=>{s===0&&this.opt.noMatch(e),this.opt.done(s)})}mark(e,t){this.opt=t;let s=0,n="wrapMatches";const{keywords:r,length:i}=this.getSeparatedKeywords(typeof e=="string"?[e]:e),o=this.opt.caseSensitive?"":"i",l=c=>{let h=new RegExp(this.createRegExp(c),`gm${o}`),v=0;this.log(`Searching with expression "${h}"`),this[n](h,1,(p,b)=>this.opt.filter(b,c,s,v),p=>{v++,s++,this.opt.each(p)},()=>{v===0&&this.opt.noMatch(c),r[i-1]===c?this.opt.done(s):l(r[r.indexOf(c)+1])})};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),i===0?this.opt.done(s):l(r[0])}markRanges(e,t){this.opt=t;let s=0,n=this.checkRanges(e);n&&n.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(n)),this.wrapRangeFromIndex(n,(r,i,o,l)=>this.opt.filter(r,i,o,l),(r,i)=>{s++,this.opt.each(r,i)},()=>{this.opt.done(s)})):this.opt.done(s)}unmark(e){this.opt=e;let t=this.opt.element?this.opt.element:"*";t+="[data-markjs]",this.opt.className&&(t+=`.${this.opt.className}`),this.log(`Removal selector "${t}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,s=>{this.unwrapMatches(s)},s=>{const n=le.matches(s,t),r=this.matchesExclude(s);return!n||r?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function Cs(a){const e=new Rs(a);return this.mark=(t,s)=>(e.mark(t,s),this),this.markRegExp=(t,s)=>(e.markRegExp(t,s),this),this.markRanges=(t,s)=>(e.markRanges(t,s),this),this.unmark=t=>(e.unmark(t),this),this}function Ie(a,e,t,s){function n(r){return r instanceof t?r:new t(function(i){i(r)})}return new(t||(t=Promise))(function(r,i){function o(h){try{c(s.next(h))}catch(v){i(v)}}function l(h){try{c(s.throw(h))}catch(v){i(v)}}function c(h){h.done?r(h.value):n(h.value).then(o,l)}c((s=s.apply(a,[])).next())})}const Ms="ENTRIES",_t="KEYS",St="VALUES",z="";class Le{constructor(e,t){const s=e._tree,n=Array.from(s.keys());this.set=e,this._type=t,this._path=n.length>0?[{node:s,keys:n}]:[]}next(){const e=this.dive();return this.backtrack(),e}dive(){if(this._path.length===0)return{done:!0,value:void 0};const{node:e,keys:t}=oe(this._path);if(oe(t)===z)return{done:!1,value:this.result()};const s=e.get(oe(t));return this._path.push({node:s,keys:Array.from(s.keys())}),this.dive()}backtrack(){if(this._path.length===0)return;const e=oe(this._path).keys;e.pop(),!(e.length>0)&&(this._path.pop(),this.backtrack())}key(){return this.set._prefix+this._path.map(({keys:e})=>oe(e)).filter(e=>e!==z).join("")}value(){return oe(this._path).node.get(z)}result(){switch(this._type){case St:return this.value();case _t:return this.key();default:return[this.key(),this.value()]}}[Symbol.iterator](){return this}}const oe=a=>a[a.length-1],As=(a,e,t)=>{const s=new Map;if(e===void 0)return s;const n=e.length+1,r=n+t,i=new Uint8Array(r*n).fill(t+1);for(let o=0;o{const l=r*i;e:for(const c of a.keys())if(c===z){const h=n[l-1];h<=t&&s.set(o,[a.get(c),h])}else{let h=r;for(let v=0;vt)continue e}Et(a.get(c),e,t,s,n,h,i,o+c)}};class Z{constructor(e=new Map,t=""){this._size=void 0,this._tree=e,this._prefix=t}atPrefix(e){if(!e.startsWith(this._prefix))throw new Error("Mismatched prefix");const[t,s]=Re(this._tree,e.slice(this._prefix.length));if(t===void 0){const[n,r]=Je(s);for(const i of n.keys())if(i!==z&&i.startsWith(r)){const o=new Map;return o.set(i.slice(r.length),n.get(i)),new Z(o,e)}}return new Z(t,e)}clear(){this._size=void 0,this._tree.clear()}delete(e){return this._size=void 0,Ls(this._tree,e)}entries(){return new Le(this,Ms)}forEach(e){for(const[t,s]of this)e(t,s,this)}fuzzyGet(e,t){return As(this._tree,e,t)}get(e){const t=Be(this._tree,e);return t!==void 0?t.get(z):void 0}has(e){const t=Be(this._tree,e);return t!==void 0&&t.has(z)}keys(){return new Le(this,_t)}set(e,t){if(typeof e!="string")throw new Error("key must be a string");return this._size=void 0,De(this._tree,e).set(z,t),this}get size(){if(this._size)return this._size;this._size=0;const e=this.entries();for(;!e.next().done;)this._size+=1;return this._size}update(e,t){if(typeof e!="string")throw new Error("key must be a string");this._size=void 0;const s=De(this._tree,e);return s.set(z,t(s.get(z))),this}fetch(e,t){if(typeof e!="string")throw new Error("key must be a string");this._size=void 0;const s=De(this._tree,e);let n=s.get(z);return n===void 0&&s.set(z,n=t()),n}values(){return new Le(this,St)}[Symbol.iterator](){return this.entries()}static from(e){const t=new Z;for(const[s,n]of e)t.set(s,n);return t}static fromObject(e){return Z.from(Object.entries(e))}}const Re=(a,e,t=[])=>{if(e.length===0||a==null)return[a,t];for(const s of a.keys())if(s!==z&&e.startsWith(s))return t.push([a,s]),Re(a.get(s),e.slice(s.length),t);return t.push([a,e]),Re(void 0,"",t)},Be=(a,e)=>{if(e.length===0||a==null)return a;for(const t of a.keys())if(t!==z&&e.startsWith(t))return Be(a.get(t),e.slice(t.length))},De=(a,e)=>{const t=e.length;e:for(let s=0;a&&s{const[t,s]=Re(a,e);if(t!==void 0){if(t.delete(z),t.size===0)Tt(s);else if(t.size===1){const[n,r]=t.entries().next().value;It(s,n,r)}}},Tt=a=>{if(a.length===0)return;const[e,t]=Je(a);if(e.delete(t),e.size===0)Tt(a.slice(0,-1));else if(e.size===1){const[s,n]=e.entries().next().value;s!==z&&It(a.slice(0,-1),s,n)}},It=(a,e,t)=>{if(a.length===0)return;const[s,n]=Je(a);s.set(n+e,t),s.delete(n)},Je=a=>a[a.length-1],Ue="or",kt="and",Ds="and_not";class ce{constructor(e){if((e==null?void 0:e.fields)==null)throw new Error('MiniSearch: option "fields" must be provided');const t=e.autoVacuum==null||e.autoVacuum===!0?je:e.autoVacuum;this._options=Object.assign(Object.assign(Object.assign({},Pe),e),{autoVacuum:t,searchOptions:Object.assign(Object.assign({},ht),e.searchOptions||{}),autoSuggestOptions:Object.assign(Object.assign({},$s),e.autoSuggestOptions||{})}),this._index=new Z,this._documentCount=0,this._documentIds=new Map,this._idToShortId=new Map,this._fieldIds={},this._fieldLength=new Map,this._avgFieldLength=[],this._nextId=0,this._storedFields=new Map,this._dirtCount=0,this._currentVacuum=null,this._enqueuedVacuum=null,this._enqueuedVacuumConditions=Ke,this.addFields(this._options.fields)}add(e){const{extractField:t,tokenize:s,processTerm:n,fields:r,idField:i}=this._options,o=t(e,i);if(o==null)throw new Error(`MiniSearch: document does not have ID field "${i}"`);if(this._idToShortId.has(o))throw new Error(`MiniSearch: duplicate ID ${o}`);const l=this.addDocumentId(o);this.saveStoredFields(l,e);for(const c of r){const h=t(e,c);if(h==null)continue;const v=s(h.toString(),c),p=this._fieldIds[c],b=new Set(v).size;this.addFieldLength(l,p,this._documentCount-1,b);for(const y of v){const x=n(y,c);if(Array.isArray(x))for(const w of x)this.addTerm(p,l,w);else x&&this.addTerm(p,l,x)}}}addAll(e){for(const t of e)this.add(t)}addAllAsync(e,t={}){const{chunkSize:s=10}=t,n={chunk:[],promise:Promise.resolve()},{chunk:r,promise:i}=e.reduce(({chunk:o,promise:l},c,h)=>(o.push(c),(h+1)%s===0?{chunk:[],promise:l.then(()=>new Promise(v=>setTimeout(v,0))).then(()=>this.addAll(o))}:{chunk:o,promise:l}),n);return i.then(()=>this.addAll(r))}remove(e){const{tokenize:t,processTerm:s,extractField:n,fields:r,idField:i}=this._options,o=n(e,i);if(o==null)throw new Error(`MiniSearch: document does not have ID field "${i}"`);const l=this._idToShortId.get(o);if(l==null)throw new Error(`MiniSearch: cannot remove document with ID ${o}: it is not in the index`);for(const c of r){const h=n(e,c);if(h==null)continue;const v=t(h.toString(),c),p=this._fieldIds[c],b=new Set(v).size;this.removeFieldLength(l,p,this._documentCount,b);for(const y of v){const x=s(y,c);if(Array.isArray(x))for(const w of x)this.removeTerm(p,l,w);else x&&this.removeTerm(p,l,x)}}this._storedFields.delete(l),this._documentIds.delete(l),this._idToShortId.delete(o),this._fieldLength.delete(l),this._documentCount-=1}removeAll(e){if(e)for(const t of e)this.remove(t);else{if(arguments.length>0)throw new Error("Expected documents to be present. Omit the argument to remove all documents.");this._index=new Z,this._documentCount=0,this._documentIds=new Map,this._idToShortId=new Map,this._fieldLength=new Map,this._avgFieldLength=[],this._storedFields=new Map,this._nextId=0}}discard(e){const t=this._idToShortId.get(e);if(t==null)throw new Error(`MiniSearch: cannot discard document with ID ${e}: it is not in the index`);this._idToShortId.delete(e),this._documentIds.delete(t),this._storedFields.delete(t),(this._fieldLength.get(t)||[]).forEach((s,n)=>{this.removeFieldLength(t,n,this._documentCount,s)}),this._fieldLength.delete(t),this._documentCount-=1,this._dirtCount+=1,this.maybeAutoVacuum()}maybeAutoVacuum(){if(this._options.autoVacuum===!1)return;const{minDirtFactor:e,minDirtCount:t,batchSize:s,batchWait:n}=this._options.autoVacuum;this.conditionalVacuum({batchSize:s,batchWait:n},{minDirtCount:t,minDirtFactor:e})}discardAll(e){const t=this._options.autoVacuum;try{this._options.autoVacuum=!1;for(const s of e)this.discard(s)}finally{this._options.autoVacuum=t}this.maybeAutoVacuum()}replace(e){const{idField:t,extractField:s}=this._options,n=s(e,t);this.discard(n),this.add(e)}vacuum(e={}){return this.conditionalVacuum(e)}conditionalVacuum(e,t){return this._currentVacuum?(this._enqueuedVacuumConditions=this._enqueuedVacuumConditions&&t,this._enqueuedVacuum!=null?this._enqueuedVacuum:(this._enqueuedVacuum=this._currentVacuum.then(()=>{const s=this._enqueuedVacuumConditions;return this._enqueuedVacuumConditions=Ke,this.performVacuuming(e,s)}),this._enqueuedVacuum)):this.vacuumConditionsMet(t)===!1?Promise.resolve():(this._currentVacuum=this.performVacuuming(e),this._currentVacuum)}performVacuuming(e,t){return Ie(this,void 0,void 0,function*(){const s=this._dirtCount;if(this.vacuumConditionsMet(t)){const n=e.batchSize||We.batchSize,r=e.batchWait||We.batchWait;let i=1;for(const[o,l]of this._index){for(const[c,h]of l)for(const[v]of h)this._documentIds.has(v)||(h.size<=1?l.delete(c):h.delete(v));this._index.get(o).size===0&&this._index.delete(o),i%n===0&&(yield new Promise(c=>setTimeout(c,r))),i+=1}this._dirtCount-=s}yield null,this._currentVacuum=this._enqueuedVacuum,this._enqueuedVacuum=null})}vacuumConditionsMet(e){if(e==null)return!0;let{minDirtCount:t,minDirtFactor:s}=e;return t=t||je.minDirtCount,s=s||je.minDirtFactor,this.dirtCount>=t&&this.dirtFactor>=s}get isVacuuming(){return this._currentVacuum!=null}get dirtCount(){return this._dirtCount}get dirtFactor(){return this._dirtCount/(1+this._documentCount+this._dirtCount)}has(e){return this._idToShortId.has(e)}getStoredFields(e){const t=this._idToShortId.get(e);if(t!=null)return this._storedFields.get(t)}search(e,t={}){const s=this.executeQuery(e,t),n=[];for(const[r,{score:i,terms:o,match:l}]of s){const c=o.length||1,h={id:this._documentIds.get(r),score:i*c,terms:Object.keys(l),queryTerms:o,match:l};Object.assign(h,this._storedFields.get(r)),(t.filter==null||t.filter(h))&&n.push(h)}return e===ce.wildcard&&t.boostDocument==null&&this._options.searchOptions.boostDocument==null||n.sort(pt),n}autoSuggest(e,t={}){t=Object.assign(Object.assign({},this._options.autoSuggestOptions),t);const s=new Map;for(const{score:r,terms:i}of this.search(e,t)){const o=i.join(" "),l=s.get(o);l!=null?(l.score+=r,l.count+=1):s.set(o,{score:r,terms:i,count:1})}const n=[];for(const[r,{score:i,terms:o,count:l}]of s)n.push({suggestion:r,terms:o,score:i/l});return n.sort(pt),n}get documentCount(){return this._documentCount}get termCount(){return this._index.size}static loadJSON(e,t){if(t==null)throw new Error("MiniSearch: loadJSON should be given the same options used when serializing the index");return this.loadJS(JSON.parse(e),t)}static loadJSONAsync(e,t){return Ie(this,void 0,void 0,function*(){if(t==null)throw new Error("MiniSearch: loadJSON should be given the same options used when serializing the index");return this.loadJSAsync(JSON.parse(e),t)})}static getDefault(e){if(Pe.hasOwnProperty(e))return ze(Pe,e);throw new Error(`MiniSearch: unknown option "${e}"`)}static loadJS(e,t){const{index:s,documentIds:n,fieldLength:r,storedFields:i,serializationVersion:o}=e,l=this.instantiateMiniSearch(e,t);l._documentIds=Ee(n),l._fieldLength=Ee(r),l._storedFields=Ee(i);for(const[c,h]of l._documentIds)l._idToShortId.set(h,c);for(const[c,h]of s){const v=new Map;for(const p of Object.keys(h)){let b=h[p];o===1&&(b=b.ds),v.set(parseInt(p,10),Ee(b))}l._index.set(c,v)}return l}static loadJSAsync(e,t){return Ie(this,void 0,void 0,function*(){const{index:s,documentIds:n,fieldLength:r,storedFields:i,serializationVersion:o}=e,l=this.instantiateMiniSearch(e,t);l._documentIds=yield Te(n),l._fieldLength=yield Te(r),l._storedFields=yield Te(i);for(const[h,v]of l._documentIds)l._idToShortId.set(v,h);let c=0;for(const[h,v]of s){const p=new Map;for(const b of Object.keys(v)){let y=v[b];o===1&&(y=y.ds),p.set(parseInt(b,10),yield Te(y))}++c%1e3===0&&(yield Nt(0)),l._index.set(h,p)}return l})}static instantiateMiniSearch(e,t){const{documentCount:s,nextId:n,fieldIds:r,averageFieldLength:i,dirtCount:o,serializationVersion:l}=e;if(l!==1&&l!==2)throw new Error("MiniSearch: cannot deserialize an index created with an incompatible version");const c=new ce(t);return c._documentCount=s,c._nextId=n,c._idToShortId=new Map,c._fieldIds=r,c._avgFieldLength=i,c._dirtCount=o||0,c._index=new Z,c}executeQuery(e,t={}){if(e===ce.wildcard)return this.executeWildcardQuery(t);if(typeof e!="string"){const p=Object.assign(Object.assign(Object.assign({},t),e),{queries:void 0}),b=e.queries.map(y=>this.executeQuery(y,p));return this.combineResults(b,p.combineWith)}const{tokenize:s,processTerm:n,searchOptions:r}=this._options,i=Object.assign(Object.assign({tokenize:s,processTerm:n},r),t),{tokenize:o,processTerm:l}=i,v=o(e).flatMap(p=>l(p)).filter(p=>!!p).map(Vs(i)).map(p=>this.executeQuerySpec(p,i));return this.combineResults(v,i.combineWith)}executeQuerySpec(e,t){const s=Object.assign(Object.assign({},this._options.searchOptions),t),n=(s.fields||this._options.fields).reduce((x,w)=>Object.assign(Object.assign({},x),{[w]:ze(s.boost,w)||1}),{}),{boostDocument:r,weights:i,maxFuzzy:o,bm25:l}=s,{fuzzy:c,prefix:h}=Object.assign(Object.assign({},ht.weights),i),v=this._index.get(e.term),p=this.termResults(e.term,e.term,1,e.termBoost,v,n,r,l);let b,y;if(e.prefix&&(b=this._index.atPrefix(e.term)),e.fuzzy){const x=e.fuzzy===!0?.2:e.fuzzy,w=x<1?Math.min(o,Math.round(e.term.length*x)):x;w&&(y=this._index.fuzzyGet(e.term,w))}if(b)for(const[x,w]of b){const O=x.length-e.term.length;if(!O)continue;y==null||y.delete(x);const R=h*x.length/(x.length+.3*O);this.termResults(e.term,x,R,e.termBoost,w,n,r,l,p)}if(y)for(const x of y.keys()){const[w,O]=y.get(x);if(!O)continue;const R=c*x.length/(x.length+O);this.termResults(e.term,x,R,e.termBoost,w,n,r,l,p)}return p}executeWildcardQuery(e){const t=new Map,s=Object.assign(Object.assign({},this._options.searchOptions),e);for(const[n,r]of this._documentIds){const i=s.boostDocument?s.boostDocument(r,"",this._storedFields.get(n)):1;t.set(n,{score:i,terms:[],match:{}})}return t}combineResults(e,t=Ue){if(e.length===0)return new Map;const s=t.toLowerCase(),n=zs[s];if(!n)throw new Error(`Invalid combination operator: ${t}`);return e.reduce(n)||new Map}toJSON(){const e=[];for(const[t,s]of this._index){const n={};for(const[r,i]of s)n[r]=Object.fromEntries(i);e.push([t,n])}return{documentCount:this._documentCount,nextId:this._nextId,documentIds:Object.fromEntries(this._documentIds),fieldIds:this._fieldIds,fieldLength:Object.fromEntries(this._fieldLength),averageFieldLength:this._avgFieldLength,storedFields:Object.fromEntries(this._storedFields),dirtCount:this._dirtCount,index:e,serializationVersion:2}}termResults(e,t,s,n,r,i,o,l,c=new Map){if(r==null)return c;for(const h of Object.keys(i)){const v=i[h],p=this._fieldIds[h],b=r.get(p);if(b==null)continue;let y=b.size;const x=this._avgFieldLength[p];for(const w of b.keys()){if(!this._documentIds.has(w)){this.removeTerm(p,w,t),y-=1;continue}const O=o?o(this._documentIds.get(w),t,this._storedFields.get(w)):1;if(!O)continue;const R=b.get(w),K=this._fieldLength.get(w)[p],G=js(R,y,this._documentCount,K,x,l),W=s*n*v*O*G,V=c.get(w);if(V){V.score+=W,Bs(V.terms,e);const $=ze(V.match,t);$?$.push(h):V.match[t]=[h]}else c.set(w,{score:W,terms:[e],match:{[t]:[h]}})}}return c}addTerm(e,t,s){const n=this._index.fetch(s,vt);let r=n.get(e);if(r==null)r=new Map,r.set(t,1),n.set(e,r);else{const i=r.get(t);r.set(t,(i||0)+1)}}removeTerm(e,t,s){if(!this._index.has(s)){this.warnDocumentChanged(t,e,s);return}const n=this._index.fetch(s,vt),r=n.get(e);r==null||r.get(t)==null?this.warnDocumentChanged(t,e,s):r.get(t)<=1?r.size<=1?n.delete(e):r.delete(t):r.set(t,r.get(t)-1),this._index.get(s).size===0&&this._index.delete(s)}warnDocumentChanged(e,t,s){for(const n of Object.keys(this._fieldIds))if(this._fieldIds[n]===t){this._options.logger("warn",`MiniSearch: document with ID ${this._documentIds.get(e)} has changed before removal: term "${s}" was not present in field "${n}". Removing a document after it has changed can corrupt the index!`,"version_conflict");return}}addDocumentId(e){const t=this._nextId;return this._idToShortId.set(e,t),this._documentIds.set(t,e),this._documentCount+=1,this._nextId+=1,t}addFields(e){for(let t=0;tObject.prototype.hasOwnProperty.call(a,e)?a[e]:void 0,zs={[Ue]:(a,e)=>{for(const t of e.keys()){const s=a.get(t);if(s==null)a.set(t,e.get(t));else{const{score:n,terms:r,match:i}=e.get(t);s.score=s.score+n,s.match=Object.assign(s.match,i),ft(s.terms,r)}}return a},[kt]:(a,e)=>{const t=new Map;for(const s of e.keys()){const n=a.get(s);if(n==null)continue;const{score:r,terms:i,match:o}=e.get(s);ft(n.terms,i),t.set(s,{score:n.score+r,terms:n.terms,match:Object.assign(n.match,o)})}return t},[Ds]:(a,e)=>{for(const t of e.keys())a.delete(t);return a}},Ps={k:1.2,b:.7,d:.5},js=(a,e,t,s,n,r)=>{const{k:i,b:o,d:l}=r;return Math.log(1+(t-e+.5)/(e+.5))*(l+a*(i+1)/(a+i*(1-o+o*s/n)))},Vs=a=>(e,t,s)=>{const n=typeof a.fuzzy=="function"?a.fuzzy(e,t,s):a.fuzzy||!1,r=typeof a.prefix=="function"?a.prefix(e,t,s):a.prefix===!0,i=typeof a.boostTerm=="function"?a.boostTerm(e,t,s):1;return{term:e,fuzzy:n,prefix:r,termBoost:i}},Pe={idField:"id",extractField:(a,e)=>a[e],tokenize:a=>a.split(Ws),processTerm:a=>a.toLowerCase(),fields:void 0,searchOptions:void 0,storeFields:[],logger:(a,e)=>{typeof(console==null?void 0:console[a])=="function"&&console[a](e)},autoVacuum:!0},ht={combineWith:Ue,prefix:!1,fuzzy:!1,maxFuzzy:6,boost:{},weights:{fuzzy:.45,prefix:.375},bm25:Ps},$s={combineWith:kt,prefix:(a,e,t)=>e===t.length-1},We={batchSize:1e3,batchWait:10},Ke={minDirtFactor:.1,minDirtCount:20},je=Object.assign(Object.assign({},We),Ke),Bs=(a,e)=>{a.includes(e)||a.push(e)},ft=(a,e)=>{for(const t of e)a.includes(t)||a.push(t)},pt=({score:a},{score:e})=>e-a,vt=()=>new Map,Ee=a=>{const e=new Map;for(const t of Object.keys(a))e.set(parseInt(t,10),a[t]);return e},Te=a=>Ie(void 0,void 0,void 0,function*(){const e=new Map;let t=0;for(const s of Object.keys(a))e.set(parseInt(s,10),a[s]),++t%1e3===0&&(yield Nt(0));return e}),Nt=a=>new Promise(e=>setTimeout(e,a)),Ws=/[\n\r\p{Z}\p{P}]+/u;class Ks{constructor(e=10){Ce(this,"max");Ce(this,"cache");this.max=e,this.cache=new Map}get(e){let t=this.cache.get(e);return t!==void 0&&(this.cache.delete(e),this.cache.set(e,t)),t}set(e,t){this.cache.has(e)?this.cache.delete(e):this.cache.size===this.max&&this.cache.delete(this.first()),this.cache.set(e,t)}first(){return this.cache.keys().next().value}clear(){this.cache.clear()}}const Js=["aria-owns"],Us={class:"shell"},qs=["title"],Gs={class:"search-actions before"},Hs=["title"],Qs=["aria-activedescendant","aria-controls","placeholder"],Ys={class:"search-actions"},Zs=["title"],Xs=["disabled","title"],en=["id","role","aria-labelledby"],tn=["id","aria-selected"],sn=["href","aria-label","onMouseenter","onFocusin"],nn={class:"titles"},rn=["innerHTML"],an={class:"title main"},on=["innerHTML"],ln={key:0,class:"excerpt-wrapper"},cn={key:0,class:"excerpt",inert:""},un=["innerHTML"],dn={key:0,class:"no-results"},hn={class:"search-keyboard-shortcuts"},fn=["aria-label"],pn=["aria-label"],vn=["aria-label"],mn=["aria-label"],gn=At({__name:"VPLocalSearchBox",emits:["close"],setup(a,{emit:e}){var N,F;const t=e,s=we(),n=we(),r=we(ns),i=ts(),{activate:o}=Os(s,{immediate:!0,allowOutsideClick:!0,clickOutsideDeactivates:!0,escapeDeactivates:!0}),{localeIndex:l,theme:c}=i,h=tt(async()=>{var m,f,I,A,C,M,j,T,P;return rt(ce.loadJSON((I=await((f=(m=r.value)[l.value])==null?void 0:f.call(m)))==null?void 0:I.default,{fields:["title","titles","text"],storeFields:["title","titles"],searchOptions:{fuzzy:.2,prefix:!0,boost:{title:4,text:2,titles:1},...((A=c.value.search)==null?void 0:A.provider)==="local"&&((M=(C=c.value.search.options)==null?void 0:C.miniSearch)==null?void 0:M.searchOptions)},...((j=c.value.search)==null?void 0:j.provider)==="local"&&((P=(T=c.value.search.options)==null?void 0:T.miniSearch)==null?void 0:P.options)}))}),p=ve(()=>{var m,f;return((m=c.value.search)==null?void 0:m.provider)==="local"&&((f=c.value.search.options)==null?void 0:f.disableQueryPersistence)===!0}).value?ne(""):Lt("vitepress:local-search-filter",""),b=Dt("vitepress:local-search-detailed-list",((N=c.value.search)==null?void 0:N.provider)==="local"&&((F=c.value.search.options)==null?void 0:F.detailedView)===!0),y=ve(()=>{var m,f,I;return((m=c.value.search)==null?void 0:m.provider)==="local"&&(((f=c.value.search.options)==null?void 0:f.disableDetailedView)===!0||((I=c.value.search.options)==null?void 0:I.detailedView)===!1)}),x=ve(()=>{var f,I,A,C,M,j,T;const m=((f=c.value.search)==null?void 0:f.options)??c.value.algolia;return((M=(C=(A=(I=m==null?void 0:m.locales)==null?void 0:I[l.value])==null?void 0:A.translations)==null?void 0:C.button)==null?void 0:M.buttonText)||((T=(j=m==null?void 0:m.translations)==null?void 0:j.button)==null?void 0:T.buttonText)||"Search"});zt(()=>{y.value&&(b.value=!1)});const w=we([]),O=ne(!1);Ve(p,()=>{O.value=!1});const R=tt(async()=>{if(n.value)return rt(new Cs(n.value))},null),K=new Ks(16);Pt(()=>[h.value,p.value,b.value],async([m,f,I],A,C)=>{var X,be,qe,Ge;(A==null?void 0:A[0])!==m&&K.clear();let M=!1;if(C(()=>{M=!0}),!m)return;w.value=m.search(f).slice(0,16),O.value=!0;const j=I?await Promise.all(w.value.map(B=>G(B.id))):[];if(M)return;for(const{id:B,mod:ee}of j){const te=B.slice(0,B.indexOf("#"));let Q=K.get(te);if(Q)continue;Q=new Map,K.set(te,Q);const U=ee.default??ee;if(U!=null&&U.render||U!=null&&U.setup){const se=Qt(U);se.config.warnHandler=()=>{},se.provide(Yt,i),Object.defineProperties(se.config.globalProperties,{$frontmatter:{get(){return i.frontmatter.value}},$params:{get(){return i.page.value.params}}});const He=document.createElement("div");se.mount(He),He.querySelectorAll("h1, h2, h3, h4, h5, h6").forEach(ue=>{var Ze;const ye=(Ze=ue.querySelector("a"))==null?void 0:Ze.getAttribute("href"),Qe=(ye==null?void 0:ye.startsWith("#"))&&ye.slice(1);if(!Qe)return;let Ye="";for(;(ue=ue.nextElementSibling)&&!/^h[1-6]$/i.test(ue.tagName);)Ye+=ue.outerHTML;Q.set(Qe,Ye)}),se.unmount()}if(M)return}const T=new Set;if(w.value=w.value.map(B=>{const[ee,te]=B.id.split("#"),Q=K.get(ee),U=(Q==null?void 0:Q.get(te))??"";for(const se in B.match)T.add(se);return{...B,text:U}}),await de(),M)return;await new Promise(B=>{var ee;(ee=R.value)==null||ee.unmark({done:()=>{var te;(te=R.value)==null||te.markRegExp(E(T),{done:B})}})});const P=((X=s.value)==null?void 0:X.querySelectorAll(".result .excerpt"))??[];for(const B of P)(be=B.querySelector('mark[data-markjs="true"]'))==null||be.scrollIntoView({block:"center"});(Ge=(qe=n.value)==null?void 0:qe.firstElementChild)==null||Ge.scrollIntoView({block:"start"})},{debounce:200,immediate:!0});async function G(m){const f=Zt(m.slice(0,m.indexOf("#")));try{if(!f)throw new Error(`Cannot find file for id: ${m}`);return{id:m,mod:await import(f)}}catch(I){return console.error(I),{id:m,mod:{}}}}const W=ne(),V=ve(()=>{var m;return((m=p.value)==null?void 0:m.length)<=0});function $(m=!0){var f,I;(f=W.value)==null||f.focus(),m&&((I=W.value)==null||I.select())}Me(()=>{$()});function ge(m){m.pointerType==="mouse"&&$()}const L=ne(-1),H=ne(!1);Ve(w,m=>{L.value=m.length?0:-1,J()});function J(){de(()=>{const m=document.querySelector(".result.selected");m==null||m.scrollIntoView({block:"nearest"})})}xe("ArrowUp",m=>{m.preventDefault(),L.value--,L.value<0&&(L.value=w.value.length-1),H.value=!0,J()}),xe("ArrowDown",m=>{m.preventDefault(),L.value++,L.value>=w.value.length&&(L.value=0),H.value=!0,J()});const k=jt();xe("Enter",m=>{if(m.isComposing||m.target instanceof HTMLButtonElement&&m.target.type!=="submit")return;const f=w.value[L.value];if(m.target instanceof HTMLInputElement&&!f){m.preventDefault();return}f&&(k.go(f.id),t("close"))}),xe("Escape",()=>{t("close")});const u=ss({modal:{displayDetails:"Display detailed list",resetButtonTitle:"Reset search",backButtonTitle:"Close search",noResultsText:"No results for",footer:{selectText:"to select",selectKeyAriaLabel:"enter",navigateText:"to navigate",navigateUpKeyAriaLabel:"up arrow",navigateDownKeyAriaLabel:"down arrow",closeText:"to close",closeKeyAriaLabel:"escape"}}});Me(()=>{window.history.pushState(null,"",null)}),Vt("popstate",m=>{m.preventDefault(),t("close")});const g=$t(Bt?document.body:null);Me(()=>{de(()=>{g.value=!0,de().then(()=>o())})}),Wt(()=>{g.value=!1});function S(){p.value="",de().then(()=>$(!1))}function E(m){return new RegExp([...m].sort((f,I)=>I.length-f.length).map(f=>`(${Xt(f)})`).join("|"),"gi")}return(m,f)=>{var I,A,C,M,j;return q(),Kt(Ht,{to:"body"},[_("div",{ref_key:"el",ref:s,role:"button","aria-owns":(I=w.value)!=null&&I.length?"localsearch-list":void 0,"aria-expanded":"true","aria-haspopup":"listbox","aria-labelledby":"localsearch-label",class:"VPLocalSearchBox"},[_("div",{class:"backdrop",onClick:f[0]||(f[0]=T=>m.$emit("close"))}),_("div",Us,[_("form",{class:"search-bar",onPointerup:f[4]||(f[4]=T=>ge(T)),onSubmit:f[5]||(f[5]=Jt(()=>{},["prevent"]))},[_("label",{title:x.value,id:"localsearch-label",for:"localsearch-input"},f[8]||(f[8]=[_("span",{"aria-hidden":"true",class:"vpi-search search-icon local-search-icon"},null,-1)]),8,qs),_("div",Gs,[_("button",{class:"back-button",title:D(u)("modal.backButtonTitle"),onClick:f[1]||(f[1]=T=>m.$emit("close"))},f[9]||(f[9]=[_("span",{class:"vpi-arrow-left local-search-icon"},null,-1)]),8,Hs)]),Ut(_("input",{ref_key:"searchInput",ref:W,"onUpdate:modelValue":f[2]||(f[2]=T=>Gt(p)?p.value=T:null),"aria-activedescendant":L.value>-1?"localsearch-item-"+L.value:void 0,"aria-autocomplete":"both","aria-controls":(A=w.value)!=null&&A.length?"localsearch-list":void 0,"aria-labelledby":"localsearch-label",autocapitalize:"off",autocomplete:"off",autocorrect:"off",class:"search-input",id:"localsearch-input",enterkeyhint:"go",maxlength:"64",placeholder:x.value,spellcheck:"false",type:"search"},null,8,Qs),[[qt,D(p)]]),_("div",Ys,[y.value?_e("",!0):(q(),Y("button",{key:0,class:st(["toggle-layout-button",{"detailed-list":D(b)}]),type:"button",title:D(u)("modal.displayDetails"),onClick:f[3]||(f[3]=T=>L.value>-1&&(b.value=!D(b)))},f[10]||(f[10]=[_("span",{class:"vpi-layout-list local-search-icon"},null,-1)]),10,Zs)),_("button",{class:"clear-button",type:"reset",disabled:V.value,title:D(u)("modal.resetButtonTitle"),onClick:S},f[11]||(f[11]=[_("span",{class:"vpi-delete local-search-icon"},null,-1)]),8,Xs)])],32),_("ul",{ref_key:"resultsEl",ref:n,id:(C=w.value)!=null&&C.length?"localsearch-list":void 0,role:(M=w.value)!=null&&M.length?"listbox":void 0,"aria-labelledby":(j=w.value)!=null&&j.length?"localsearch-label":void 0,class:"results",onMousemove:f[7]||(f[7]=T=>H.value=!1)},[(q(!0),Y(it,null,nt(w.value,(T,P)=>(q(),Y("li",{key:T.id,id:"localsearch-item-"+P,"aria-selected":L.value===P?"true":"false",role:"option"},[_("a",{href:T.id,class:st(["result",{selected:L.value===P}]),"aria-label":[...T.titles,T.title].join(" > "),onMouseenter:X=>!H.value&&(L.value=P),onFocusin:X=>L.value=P,onClick:f[6]||(f[6]=X=>m.$emit("close"))},[_("div",null,[_("div",nn,[f[13]||(f[13]=_("span",{class:"title-icon"},"#",-1)),(q(!0),Y(it,null,nt(T.titles,(X,be)=>(q(),Y("span",{key:be,class:"title"},[_("span",{class:"text",innerHTML:X},null,8,rn),f[12]||(f[12]=_("span",{class:"vpi-chevron-right local-search-icon"},null,-1))]))),128)),_("span",an,[_("span",{class:"text",innerHTML:T.title},null,8,on)])]),D(b)?(q(),Y("div",ln,[T.text?(q(),Y("div",cn,[_("div",{class:"vp-doc",innerHTML:T.text},null,8,un)])):_e("",!0),f[14]||(f[14]=_("div",{class:"excerpt-gradient-bottom"},null,-1)),f[15]||(f[15]=_("div",{class:"excerpt-gradient-top"},null,-1))])):_e("",!0)])],42,sn)],8,tn))),128)),D(p)&&!w.value.length&&O.value?(q(),Y("li",dn,[he(fe(D(u)("modal.noResultsText"))+' "',1),_("strong",null,fe(D(p)),1),f[16]||(f[16]=he('" '))])):_e("",!0)],40,en),_("div",hn,[_("span",null,[_("kbd",{"aria-label":D(u)("modal.footer.navigateUpKeyAriaLabel")},f[17]||(f[17]=[_("span",{class:"vpi-arrow-up navigate-icon"},null,-1)]),8,fn),_("kbd",{"aria-label":D(u)("modal.footer.navigateDownKeyAriaLabel")},f[18]||(f[18]=[_("span",{class:"vpi-arrow-down navigate-icon"},null,-1)]),8,pn),he(" "+fe(D(u)("modal.footer.navigateText")),1)]),_("span",null,[_("kbd",{"aria-label":D(u)("modal.footer.selectKeyAriaLabel")},f[19]||(f[19]=[_("span",{class:"vpi-corner-down-left navigate-icon"},null,-1)]),8,vn),he(" "+fe(D(u)("modal.footer.selectText")),1)]),_("span",null,[_("kbd",{"aria-label":D(u)("modal.footer.closeKeyAriaLabel")},"esc",8,mn),he(" "+fe(D(u)("modal.footer.closeText")),1)])])])],8,Js)])}}}),Sn=es(gn,[["__scopeId","data-v-db8fabf3"]]);export{Sn as default}; diff --git a/assets/chunks/framework.C4_mTacX.js b/assets/chunks/framework.C4_mTacX.js deleted file mode 100644 index 88388198..00000000 --- a/assets/chunks/framework.C4_mTacX.js +++ /dev/null @@ -1,17 +0,0 @@ -/** -* @vue/shared v3.4.38 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**//*! #__NO_SIDE_EFFECTS__ */function wr(e,t){const n=new Set(e.split(","));return r=>n.has(r)}const ne={},yt=[],Ae=()=>{},Mi=()=>!1,Kt=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Er=e=>e.startsWith("onUpdate:"),fe=Object.assign,Cr=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Ii=Object.prototype.hasOwnProperty,z=(e,t)=>Ii.call(e,t),k=Array.isArray,_t=e=>Tn(e)==="[object Map]",Xs=e=>Tn(e)==="[object Set]",q=e=>typeof e=="function",ie=e=>typeof e=="string",Qe=e=>typeof e=="symbol",Z=e=>e!==null&&typeof e=="object",Ys=e=>(Z(e)||q(e))&&q(e.then)&&q(e.catch),zs=Object.prototype.toString,Tn=e=>zs.call(e),Pi=e=>Tn(e).slice(8,-1),Js=e=>Tn(e)==="[object Object]",Sr=e=>ie(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,bt=wr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),xn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Ni=/-(\w)/g,Le=xn(e=>e.replace(Ni,(t,n)=>n?n.toUpperCase():"")),Fi=/\B([A-Z])/g,Ze=xn(e=>e.replace(Fi,"-$1").toLowerCase()),An=xn(e=>e.charAt(0).toUpperCase()+e.slice(1)),fn=xn(e=>e?`on${An(e)}`:""),ze=(e,t)=>!Object.is(e,t),dn=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},cr=e=>{const t=parseFloat(e);return isNaN(t)?e:t},$i=e=>{const t=ie(e)?Number(e):NaN;return isNaN(t)?e:t};let Qr;const Zs=()=>Qr||(Qr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Tr(e){if(k(e)){const t={};for(let n=0;n{if(n){const r=n.split(ji);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function xr(e){let t="";if(ie(e))t=e;else if(k(e))for(let n=0;n!!(e&&e.__v_isRef===!0),ki=e=>ie(e)?e:e==null?"":k(e)||Z(e)&&(e.toString===zs||!q(e.toString))?to(e)?ki(e.value):JSON.stringify(e,no,2):String(e),no=(e,t)=>to(t)?no(e,t.value):_t(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],o)=>(n[kn(r,o)+" =>"]=s,n),{})}:Xs(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>kn(n))}:Qe(t)?kn(t):Z(t)&&!k(t)&&!Js(t)?String(t):t,kn=(e,t="")=>{var n;return Qe(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** -* @vue/reactivity v3.4.38 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let Ee;class Ki{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Ee,!t&&Ee&&(this.index=(Ee.scopes||(Ee.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Ee;try{return Ee=this,t()}finally{Ee=n}}}on(){Ee=this}off(){Ee=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),tt()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Xe,n=ct;try{return Xe=!0,ct=this,this._runnings++,Zr(this),this.fn()}finally{es(this),this._runnings--,ct=n,Xe=t}}stop(){this.active&&(Zr(this),es(this),this.onStop&&this.onStop(),this.active=!1)}}function Gi(e){return e.value}function Zr(e){e._trackId++,e._depsLength=0}function es(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t{const n=new Map;return n.cleanup=e,n.computed=t,n},yn=new WeakMap,at=Symbol(""),fr=Symbol("");function ve(e,t,n){if(Xe&&ct){let r=yn.get(e);r||yn.set(e,r=new Map);let s=r.get(n);s||r.set(n,s=co(()=>r.delete(n))),io(ct,s)}}function Ve(e,t,n,r,s,o){const i=yn.get(e);if(!i)return;let l=[];if(t==="clear")l=[...i.values()];else if(n==="length"&&k(e)){const c=Number(r);i.forEach((u,f)=>{(f==="length"||!Qe(f)&&f>=c)&&l.push(u)})}else switch(n!==void 0&&l.push(i.get(n)),t){case"add":k(e)?Sr(n)&&l.push(i.get("length")):(l.push(i.get(at)),_t(e)&&l.push(i.get(fr)));break;case"delete":k(e)||(l.push(i.get(at)),_t(e)&&l.push(i.get(fr)));break;case"set":_t(e)&&l.push(i.get(at));break}Rr();for(const c of l)c&&lo(c,4);Or()}function Xi(e,t){const n=yn.get(e);return n&&n.get(t)}const Yi=wr("__proto__,__v_isRef,__isVue"),ao=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Qe)),ts=zi();function zi(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=J(this);for(let o=0,i=this.length;o{e[t]=function(...n){et(),Rr();const r=J(this)[t].apply(this,n);return Or(),tt(),r}}),e}function Ji(e){Qe(e)||(e=String(e));const t=J(this);return ve(t,"has",e),t.hasOwnProperty(e)}class uo{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){const s=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return o;if(n==="__v_raw")return r===(s?o?ul:go:o?po:ho).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const i=k(t);if(!s){if(i&&z(ts,n))return Reflect.get(ts,n,r);if(n==="hasOwnProperty")return Ji}const l=Reflect.get(t,n,r);return(Qe(n)?ao.has(n):Yi(n))||(s||ve(t,"get",n),o)?l:he(l)?i&&Sr(n)?l:l.value:Z(l)?s?Ln(l):On(l):l}}class fo extends uo{constructor(t=!1){super(!1,t)}set(t,n,r,s){let o=t[n];if(!this._isShallow){const c=dt(o);if(!Tt(r)&&!dt(r)&&(o=J(o),r=J(r)),!k(t)&&he(o)&&!he(r))return c?!1:(o.value=r,!0)}const i=k(t)&&Sr(n)?Number(n)e,Rn=e=>Reflect.getPrototypeOf(e);function Jt(e,t,n=!1,r=!1){e=e.__v_raw;const s=J(e),o=J(t);n||(ze(t,o)&&ve(s,"get",t),ve(s,"get",o));const{has:i}=Rn(s),l=r?Lr:n?Pr:jt;if(i.call(s,t))return l(e.get(t));if(i.call(s,o))return l(e.get(o));e!==s&&e.get(t)}function Qt(e,t=!1){const n=this.__v_raw,r=J(n),s=J(e);return t||(ze(e,s)&&ve(r,"has",e),ve(r,"has",s)),e===s?n.has(e):n.has(e)||n.has(s)}function Zt(e,t=!1){return e=e.__v_raw,!t&&ve(J(e),"iterate",at),Reflect.get(e,"size",e)}function ns(e,t=!1){!t&&!Tt(e)&&!dt(e)&&(e=J(e));const n=J(this);return Rn(n).has.call(n,e)||(n.add(e),Ve(n,"add",e,e)),this}function rs(e,t,n=!1){!n&&!Tt(t)&&!dt(t)&&(t=J(t));const r=J(this),{has:s,get:o}=Rn(r);let i=s.call(r,e);i||(e=J(e),i=s.call(r,e));const l=o.call(r,e);return r.set(e,t),i?ze(t,l)&&Ve(r,"set",e,t):Ve(r,"add",e,t),this}function ss(e){const t=J(this),{has:n,get:r}=Rn(t);let s=n.call(t,e);s||(e=J(e),s=n.call(t,e)),r&&r.call(t,e);const o=t.delete(e);return s&&Ve(t,"delete",e,void 0),o}function os(){const e=J(this),t=e.size!==0,n=e.clear();return t&&Ve(e,"clear",void 0,void 0),n}function en(e,t){return function(r,s){const o=this,i=o.__v_raw,l=J(i),c=t?Lr:e?Pr:jt;return!e&&ve(l,"iterate",at),i.forEach((u,f)=>r.call(s,c(u),c(f),o))}}function tn(e,t,n){return function(...r){const s=this.__v_raw,o=J(s),i=_t(o),l=e==="entries"||e===Symbol.iterator&&i,c=e==="keys"&&i,u=s[e](...r),f=n?Lr:t?Pr:jt;return!t&&ve(o,"iterate",c?fr:at),{next(){const{value:h,done:m}=u.next();return m?{value:h,done:m}:{value:l?[f(h[0]),f(h[1])]:f(h),done:m}},[Symbol.iterator](){return this}}}}function Ue(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function nl(){const e={get(o){return Jt(this,o)},get size(){return Zt(this)},has:Qt,add:ns,set:rs,delete:ss,clear:os,forEach:en(!1,!1)},t={get(o){return Jt(this,o,!1,!0)},get size(){return Zt(this)},has:Qt,add(o){return ns.call(this,o,!0)},set(o,i){return rs.call(this,o,i,!0)},delete:ss,clear:os,forEach:en(!1,!0)},n={get(o){return Jt(this,o,!0)},get size(){return Zt(this,!0)},has(o){return Qt.call(this,o,!0)},add:Ue("add"),set:Ue("set"),delete:Ue("delete"),clear:Ue("clear"),forEach:en(!0,!1)},r={get(o){return Jt(this,o,!0,!0)},get size(){return Zt(this,!0)},has(o){return Qt.call(this,o,!0)},add:Ue("add"),set:Ue("set"),delete:Ue("delete"),clear:Ue("clear"),forEach:en(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=tn(o,!1,!1),n[o]=tn(o,!0,!1),t[o]=tn(o,!1,!0),r[o]=tn(o,!0,!0)}),[e,n,t,r]}const[rl,sl,ol,il]=nl();function Mr(e,t){const n=t?e?il:ol:e?sl:rl;return(r,s,o)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(z(n,s)&&s in r?n:r,s,o)}const ll={get:Mr(!1,!1)},cl={get:Mr(!1,!0)},al={get:Mr(!0,!1)};const ho=new WeakMap,po=new WeakMap,go=new WeakMap,ul=new WeakMap;function fl(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function dl(e){return e.__v_skip||!Object.isExtensible(e)?0:fl(Pi(e))}function On(e){return dt(e)?e:Ir(e,!1,Zi,ll,ho)}function hl(e){return Ir(e,!1,tl,cl,po)}function Ln(e){return Ir(e,!0,el,al,go)}function Ir(e,t,n,r,s){if(!Z(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=s.get(e);if(o)return o;const i=dl(e);if(i===0)return e;const l=new Proxy(e,i===2?r:n);return s.set(e,l),l}function vt(e){return dt(e)?vt(e.__v_raw):!!(e&&e.__v_isReactive)}function dt(e){return!!(e&&e.__v_isReadonly)}function Tt(e){return!!(e&&e.__v_isShallow)}function mo(e){return e?!!e.__v_raw:!1}function J(e){const t=e&&e.__v_raw;return t?J(t):e}function hn(e){return Object.isExtensible(e)&&Qs(e,"__v_skip",!0),e}const jt=e=>Z(e)?On(e):e,Pr=e=>Z(e)?Ln(e):e;class yo{constructor(t,n,r,s){this.getter=t,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Ar(()=>t(this._value),()=>It(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=r}get value(){const t=J(this);return(!t._cacheable||t.effect.dirty)&&ze(t._value,t._value=t.effect.run())&&It(t,4),Nr(t),t.effect._dirtyLevel>=2&&It(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function pl(e,t,n=!1){let r,s;const o=q(e);return o?(r=e,s=Ae):(r=e.get,s=e.set),new yo(r,s,o||!s,n)}function Nr(e){var t;Xe&&ct&&(e=J(e),io(ct,(t=e.dep)!=null?t:e.dep=co(()=>e.dep=void 0,e instanceof yo?e:void 0)))}function It(e,t=4,n,r){e=J(e);const s=e.dep;s&&lo(s,t)}function he(e){return!!(e&&e.__v_isRef===!0)}function oe(e){return _o(e,!1)}function Fr(e){return _o(e,!0)}function _o(e,t){return he(e)?e:new gl(e,t)}class gl{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:J(t),this._value=n?t:jt(t)}get value(){return Nr(this),this._value}set value(t){const n=this.__v_isShallow||Tt(t)||dt(t);t=n?t:J(t),ze(t,this._rawValue)&&(this._rawValue,this._rawValue=t,this._value=n?t:jt(t),It(this,4))}}function bo(e){return he(e)?e.value:e}const ml={get:(e,t,n)=>bo(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return he(s)&&!he(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function vo(e){return vt(e)?e:new Proxy(e,ml)}class yl{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:r}=t(()=>Nr(this),()=>It(this));this._get=n,this._set=r}get value(){return this._get()}set value(t){this._set(t)}}function _l(e){return new yl(e)}class bl{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Xi(J(this._object),this._key)}}class vl{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function wl(e,t,n){return he(e)?e:q(e)?new vl(e):Z(e)&&arguments.length>1?El(e,t,n):oe(e)}function El(e,t,n){const r=e[t];return he(r)?r:new bl(e,t,n)}/** -* @vue/runtime-core v3.4.38 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/function Ye(e,t,n,r){try{return r?e(...r):e()}catch(s){Wt(s,t,n)}}function Re(e,t,n,r){if(q(e)){const s=Ye(e,t,n,r);return s&&Ys(s)&&s.catch(o=>{Wt(o,t,n)}),s}if(k(e)){const s=[];for(let o=0;o>>1,s=ge[r],o=Dt(s);oFe&&ge.splice(t,1)}function xl(e){k(e)?wt.push(...e):(!Ke||!Ke.includes(e,e.allowRecurse?it+1:it))&&wt.push(e),Eo()}function is(e,t,n=Vt?Fe+1:0){for(;nDt(n)-Dt(r));if(wt.length=0,Ke){Ke.push(...t);return}for(Ke=t,it=0;ite.id==null?1/0:e.id,Al=(e,t)=>{const n=Dt(e)-Dt(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Co(e){dr=!1,Vt=!0,ge.sort(Al);try{for(Fe=0;Fe{r._d&&bs(-1);const o=bn(t);let i;try{i=e(...s)}finally{bn(o),r._d&&bs(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function au(e,t){if(ue===null)return e;const n=Vn(ue),r=e.dirs||(e.dirs=[]);for(let s=0;s{e.isMounted=!0}),Oo(()=>{e.isUnmounting=!0}),e}const Se=[Function,Array],So={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Se,onEnter:Se,onAfterEnter:Se,onEnterCancelled:Se,onBeforeLeave:Se,onLeave:Se,onAfterLeave:Se,onLeaveCancelled:Se,onBeforeAppear:Se,onAppear:Se,onAfterAppear:Se,onAppearCancelled:Se},To=e=>{const t=e.subTree;return t.component?To(t.component):t},Ll={name:"BaseTransition",props:So,setup(e,{slots:t}){const n=jn(),r=Ol();return()=>{const s=t.default&&Ao(t.default(),!0);if(!s||!s.length)return;let o=s[0];if(s.length>1){for(const m of s)if(m.type!==ye){o=m;break}}const i=J(e),{mode:l}=i;if(r.isLeaving)return Kn(o);const c=ls(o);if(!c)return Kn(o);let u=hr(c,i,r,n,m=>u=m);vn(c,u);const f=n.subTree,h=f&&ls(f);if(h&&h.type!==ye&&!lt(c,h)&&To(n).type!==ye){const m=hr(h,i,r,n);if(vn(h,m),l==="out-in"&&c.type!==ye)return r.isLeaving=!0,m.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},Kn(o);l==="in-out"&&c.type!==ye&&(m.delayLeave=(_,w,O)=>{const U=xo(r,h);U[String(h.key)]=h,_[We]=()=>{w(),_[We]=void 0,delete u.delayedLeave},u.delayedLeave=O})}return o}}},Ml=Ll;function xo(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function hr(e,t,n,r,s){const{appear:o,mode:i,persisted:l=!1,onBeforeEnter:c,onEnter:u,onAfterEnter:f,onEnterCancelled:h,onBeforeLeave:m,onLeave:_,onAfterLeave:w,onLeaveCancelled:O,onBeforeAppear:U,onAppear:W,onAfterAppear:H,onAppearCancelled:p}=t,y=String(e.key),I=xo(n,e),x=(M,b)=>{M&&Re(M,r,9,b)},F=(M,b)=>{const P=b[1];x(M,b),k(M)?M.every(S=>S.length<=1)&&P():M.length<=1&&P()},V={mode:i,persisted:l,beforeEnter(M){let b=c;if(!n.isMounted)if(o)b=U||c;else return;M[We]&&M[We](!0);const P=I[y];P&<(e,P)&&P.el[We]&&P.el[We](),x(b,[M])},enter(M){let b=u,P=f,S=h;if(!n.isMounted)if(o)b=W||u,P=H||f,S=p||h;else return;let K=!1;const ee=M[nn]=re=>{K||(K=!0,re?x(S,[M]):x(P,[M]),V.delayedLeave&&V.delayedLeave(),M[nn]=void 0)};b?F(b,[M,ee]):ee()},leave(M,b){const P=String(e.key);if(M[nn]&&M[nn](!0),n.isUnmounting)return b();x(m,[M]);let S=!1;const K=M[We]=ee=>{S||(S=!0,b(),ee?x(O,[M]):x(w,[M]),M[We]=void 0,I[P]===e&&delete I[P])};I[P]=e,_?F(_,[M,K]):K()},clone(M){const b=hr(M,t,n,r,s);return s&&s(b),b}};return V}function Kn(e){if(qt(e))return e=Je(e),e.children=null,e}function ls(e){if(!qt(e))return e;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&q(n.default))return n.default()}}function vn(e,t){e.shapeFlag&6&&e.component?vn(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Ao(e,t=!1,n){let r=[],s=0;for(let o=0;o1)for(let o=0;o!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function uu(e){q(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:s=200,timeout:o,suspensible:i=!0,onError:l}=e;let c=null,u,f=0;const h=()=>(f++,c=null,m()),m=()=>{let _;return c||(_=c=t().catch(w=>{if(w=w instanceof Error?w:new Error(String(w)),l)return new Promise((O,U)=>{l(w,()=>O(h()),()=>U(w),f+1)});throw w}).then(w=>_!==c&&c?c:(w&&(w.__esModule||w[Symbol.toStringTag]==="Module")&&(w=w.default),u=w,w)))};return Hr({name:"AsyncComponentWrapper",__asyncLoader:m,get __asyncResolved(){return u},setup(){const _=ae;if(u)return()=>Wn(u,_);const w=H=>{c=null,Wt(H,_,13,!r)};if(i&&_.suspense||Xt)return m().then(H=>()=>Wn(H,_)).catch(H=>(w(H),()=>r?le(r,{error:H}):null));const O=oe(!1),U=oe(),W=oe(!!s);return s&&setTimeout(()=>{W.value=!1},s),o!=null&&setTimeout(()=>{if(!O.value&&!U.value){const H=new Error(`Async component timed out after ${o}ms.`);w(H),U.value=H}},o),m().then(()=>{O.value=!0,_.parent&&qt(_.parent.vnode)&&(_.parent.effect.dirty=!0,In(_.parent.update))}).catch(H=>{w(H),U.value=H}),()=>{if(O.value&&u)return Wn(u,_);if(U.value&&r)return le(r,{error:U.value});if(n&&!W.value)return le(n)}}})}function Wn(e,t){const{ref:n,props:r,children:s,ce:o}=t.vnode,i=le(e,r,s);return i.ref=n,i.ce=o,delete t.vnode.ce,i}const qt=e=>e.type.__isKeepAlive;function Il(e,t){Ro(e,"a",t)}function Pl(e,t){Ro(e,"da",t)}function Ro(e,t,n=ae){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Nn(t,r,n),n){let s=n.parent;for(;s&&s.parent;)qt(s.parent.vnode)&&Nl(r,t,n,s),s=s.parent}}function Nl(e,t,n,r){const s=Nn(t,e,r,!0);Fn(()=>{Cr(r[t],s)},n)}function Nn(e,t,n=ae,r=!1){if(n){const s=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{et();const l=Gt(n),c=Re(t,n,e,i);return l(),tt(),c});return r?s.unshift(o):s.push(o),o}}const De=e=>(t,n=ae)=>{(!Xt||e==="sp")&&Nn(e,(...r)=>t(...r),n)},Fl=De("bm"),At=De("m"),$l=De("bu"),Hl=De("u"),Oo=De("bum"),Fn=De("um"),jl=De("sp"),Vl=De("rtg"),Dl=De("rtc");function Ul(e,t=ae){Nn("ec",e,t)}const jr="components";function fu(e,t){return Mo(jr,e,!0,t)||e}const Lo=Symbol.for("v-ndc");function du(e){return ie(e)?Mo(jr,e,!1)||e:e||Lo}function Mo(e,t,n=!0,r=!1){const s=ue||ae;if(s){const o=s.type;if(e===jr){const l=Pc(o,!1);if(l&&(l===t||l===Le(t)||l===An(Le(t))))return o}const i=cs(s[e]||o[e],t)||cs(s.appContext[e],t);return!i&&r?o:i}}function cs(e,t){return e&&(e[t]||e[Le(t)]||e[An(Le(t))])}function hu(e,t,n,r){let s;const o=n;if(k(e)||ie(e)){s=new Array(e.length);for(let i=0,l=e.length;it(i,l,void 0,o));else{const i=Object.keys(e);s=new Array(i.length);for(let l=0,c=i.length;lCn(t)?!(t.type===ye||t.type===be&&!Io(t.children)):!0)?e:null}function gu(e,t){const n={};for(const r in e)n[/[A-Z]/.test(r)?`on:${r}`:fn(r)]=e[r];return n}const pr=e=>e?oi(e)?Vn(e):pr(e.parent):null,Pt=fe(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>pr(e.parent),$root:e=>pr(e.root),$emit:e=>e.emit,$options:e=>Vr(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,In(e.update)}),$nextTick:e=>e.n||(e.n=Mn.bind(e.proxy)),$watch:e=>gc.bind(e)}),qn=(e,t)=>e!==ne&&!e.__isScriptSetup&&z(e,t),Bl={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:s,props:o,accessCache:i,type:l,appContext:c}=e;let u;if(t[0]!=="$"){const _=i[t];if(_!==void 0)switch(_){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return o[t]}else{if(qn(r,t))return i[t]=1,r[t];if(s!==ne&&z(s,t))return i[t]=2,s[t];if((u=e.propsOptions[0])&&z(u,t))return i[t]=3,o[t];if(n!==ne&&z(n,t))return i[t]=4,n[t];gr&&(i[t]=0)}}const f=Pt[t];let h,m;if(f)return t==="$attrs"&&ve(e.attrs,"get",""),f(e);if((h=l.__cssModules)&&(h=h[t]))return h;if(n!==ne&&z(n,t))return i[t]=4,n[t];if(m=c.config.globalProperties,z(m,t))return m[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:o}=e;return qn(s,t)?(s[t]=n,!0):r!==ne&&z(r,t)?(r[t]=n,!0):z(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,propsOptions:o}},i){let l;return!!n[i]||e!==ne&&z(e,i)||qn(t,i)||(l=o[0])&&z(l,i)||z(r,i)||z(Pt,i)||z(s.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:z(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function mu(){return kl().slots}function kl(){const e=jn();return e.setupContext||(e.setupContext=li(e))}function as(e){return k(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let gr=!0;function Kl(e){const t=Vr(e),n=e.proxy,r=e.ctx;gr=!1,t.beforeCreate&&us(t.beforeCreate,e,"bc");const{data:s,computed:o,methods:i,watch:l,provide:c,inject:u,created:f,beforeMount:h,mounted:m,beforeUpdate:_,updated:w,activated:O,deactivated:U,beforeDestroy:W,beforeUnmount:H,destroyed:p,unmounted:y,render:I,renderTracked:x,renderTriggered:F,errorCaptured:V,serverPrefetch:M,expose:b,inheritAttrs:P,components:S,directives:K,filters:ee}=t;if(u&&Wl(u,r,null),i)for(const Y in i){const B=i[Y];q(B)&&(r[Y]=B.bind(n))}if(s){const Y=s.call(n,n);Z(Y)&&(e.data=On(Y))}if(gr=!0,o)for(const Y in o){const B=o[Y],de=q(B)?B.bind(n,n):q(B.get)?B.get.bind(n,n):Ae,Yt=!q(B)&&q(B.set)?B.set.bind(n):Ae,nt=se({get:de,set:Yt});Object.defineProperty(r,Y,{enumerable:!0,configurable:!0,get:()=>nt.value,set:Ie=>nt.value=Ie})}if(l)for(const Y in l)Po(l[Y],r,n,Y);if(c){const Y=q(c)?c.call(n):c;Reflect.ownKeys(Y).forEach(B=>{Jl(B,Y[B])})}f&&us(f,e,"c");function D(Y,B){k(B)?B.forEach(de=>Y(de.bind(n))):B&&Y(B.bind(n))}if(D(Fl,h),D(At,m),D($l,_),D(Hl,w),D(Il,O),D(Pl,U),D(Ul,V),D(Dl,x),D(Vl,F),D(Oo,H),D(Fn,y),D(jl,M),k(b))if(b.length){const Y=e.exposed||(e.exposed={});b.forEach(B=>{Object.defineProperty(Y,B,{get:()=>n[B],set:de=>n[B]=de})})}else e.exposed||(e.exposed={});I&&e.render===Ae&&(e.render=I),P!=null&&(e.inheritAttrs=P),S&&(e.components=S),K&&(e.directives=K)}function Wl(e,t,n=Ae){k(e)&&(e=mr(e));for(const r in e){const s=e[r];let o;Z(s)?"default"in s?o=St(s.from||r,s.default,!0):o=St(s.from||r):o=St(s),he(o)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[r]=o}}function us(e,t,n){Re(k(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Po(e,t,n,r){const s=r.includes(".")?zo(n,r):()=>n[r];if(ie(e)){const o=t[e];q(o)&&$e(s,o)}else if(q(e))$e(s,e.bind(n));else if(Z(e))if(k(e))e.forEach(o=>Po(o,t,n,r));else{const o=q(e.handler)?e.handler.bind(n):t[e.handler];q(o)&&$e(s,o,e)}}function Vr(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,l=o.get(t);let c;return l?c=l:!s.length&&!n&&!r?c=t:(c={},s.length&&s.forEach(u=>wn(c,u,i,!0)),wn(c,t,i)),Z(t)&&o.set(t,c),c}function wn(e,t,n,r=!1){const{mixins:s,extends:o}=t;o&&wn(e,o,n,!0),s&&s.forEach(i=>wn(e,i,n,!0));for(const i in t)if(!(r&&i==="expose")){const l=ql[i]||n&&n[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const ql={data:fs,props:ds,emits:ds,methods:Mt,computed:Mt,beforeCreate:me,created:me,beforeMount:me,mounted:me,beforeUpdate:me,updated:me,beforeDestroy:me,beforeUnmount:me,destroyed:me,unmounted:me,activated:me,deactivated:me,errorCaptured:me,serverPrefetch:me,components:Mt,directives:Mt,watch:Xl,provide:fs,inject:Gl};function fs(e,t){return t?e?function(){return fe(q(e)?e.call(this,this):e,q(t)?t.call(this,this):t)}:t:e}function Gl(e,t){return Mt(mr(e),mr(t))}function mr(e){if(k(e)){const t={};for(let n=0;n1)return n&&q(t)?t.call(r&&r.proxy):t}}const Fo={},$o=()=>Object.create(Fo),Ho=e=>Object.getPrototypeOf(e)===Fo;function Ql(e,t,n,r=!1){const s={},o=$o();e.propsDefaults=Object.create(null),jo(e,t,s,o);for(const i in e.propsOptions[0])i in s||(s[i]=void 0);n?e.props=r?s:hl(s):e.type.props?e.props=s:e.props=o,e.attrs=o}function Zl(e,t,n,r){const{props:s,attrs:o,vnode:{patchFlag:i}}=e,l=J(s),[c]=e.propsOptions;let u=!1;if((r||i>0)&&!(i&16)){if(i&8){const f=e.vnode.dynamicProps;for(let h=0;h{c=!0;const[m,_]=Vo(h,t,!0);fe(i,m),_&&l.push(..._)};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!o&&!c)return Z(e)&&r.set(e,yt),yt;if(k(o))for(let f=0;fe[0]==="_"||e==="$stable",Dr=e=>k(e)?e.map(xe):[xe(e)],tc=(e,t,n)=>{if(t._n)return t;const r=Rl((...s)=>Dr(t(...s)),n);return r._c=!1,r},Uo=(e,t,n)=>{const r=e._ctx;for(const s in e){if(Do(s))continue;const o=e[s];if(q(o))t[s]=tc(s,o,r);else if(o!=null){const i=Dr(o);t[s]=()=>i}}},Bo=(e,t)=>{const n=Dr(t);e.slots.default=()=>n},ko=(e,t,n)=>{for(const r in t)(n||r!=="_")&&(e[r]=t[r])},nc=(e,t,n)=>{const r=e.slots=$o();if(e.vnode.shapeFlag&32){const s=t._;s?(ko(r,t,n),n&&Qs(r,"_",s,!0)):Uo(t,r)}else t&&Bo(e,t)},rc=(e,t,n)=>{const{vnode:r,slots:s}=e;let o=!0,i=ne;if(r.shapeFlag&32){const l=t._;l?n&&l===1?o=!1:ko(s,t,n):(o=!t.$stable,Uo(t,s)),i=t}else t&&(Bo(e,t),i={default:1});if(o)for(const l in s)!Do(l)&&i[l]==null&&delete s[l]};function En(e,t,n,r,s=!1){if(k(e)){e.forEach((m,_)=>En(m,t&&(k(t)?t[_]:t),n,r,s));return}if(Et(r)&&!s)return;const o=r.shapeFlag&4?Vn(r.component):r.el,i=s?null:o,{i:l,r:c}=e,u=t&&t.r,f=l.refs===ne?l.refs={}:l.refs,h=l.setupState;if(u!=null&&u!==c&&(ie(u)?(f[u]=null,z(h,u)&&(h[u]=null)):he(u)&&(u.value=null)),q(c))Ye(c,l,12,[i,f]);else{const m=ie(c),_=he(c);if(m||_){const w=()=>{if(e.f){const O=m?z(h,c)?h[c]:f[c]:c.value;s?k(O)&&Cr(O,o):k(O)?O.includes(o)||O.push(o):m?(f[c]=[o],z(h,c)&&(h[c]=f[c])):(c.value=[o],e.k&&(f[e.k]=c.value))}else m?(f[c]=i,z(h,c)&&(h[c]=i)):_&&(c.value=i,e.k&&(f[e.k]=i))};i?(w.id=-1,_e(w,n)):w()}}}const Ko=Symbol("_vte"),sc=e=>e.__isTeleport,Nt=e=>e&&(e.disabled||e.disabled===""),ps=e=>typeof SVGElement<"u"&&e instanceof SVGElement,gs=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,_r=(e,t)=>{const n=e&&e.to;return ie(n)?t?t(n):null:n},oc={name:"Teleport",__isTeleport:!0,process(e,t,n,r,s,o,i,l,c,u){const{mc:f,pc:h,pbc:m,o:{insert:_,querySelector:w,createText:O,createComment:U}}=u,W=Nt(t.props);let{shapeFlag:H,children:p,dynamicChildren:y}=t;if(e==null){const I=t.el=O(""),x=t.anchor=O("");_(I,n,r),_(x,n,r);const F=t.target=_r(t.props,w),V=qo(F,t,O,_);F&&(i==="svg"||ps(F)?i="svg":(i==="mathml"||gs(F))&&(i="mathml"));const M=(b,P)=>{H&16&&f(p,b,P,s,o,i,l,c)};W?M(n,x):F&&M(F,V)}else{t.el=e.el,t.targetStart=e.targetStart;const I=t.anchor=e.anchor,x=t.target=e.target,F=t.targetAnchor=e.targetAnchor,V=Nt(e.props),M=V?n:x,b=V?I:F;if(i==="svg"||ps(x)?i="svg":(i==="mathml"||gs(x))&&(i="mathml"),y?(m(e.dynamicChildren,y,M,s,o,i,l),Ur(e,t,!0)):c||h(e,t,M,b,s,o,i,l,!1),W)V?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):rn(t,n,I,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const P=t.target=_r(t.props,w);P&&rn(t,P,null,u,0)}else V&&rn(t,x,F,u,1)}Wo(t)},remove(e,t,n,{um:r,o:{remove:s}},o){const{shapeFlag:i,children:l,anchor:c,targetStart:u,targetAnchor:f,target:h,props:m}=e;if(h&&(s(u),s(f)),o&&s(c),i&16){const _=o||!Nt(m);for(let w=0;w{ms||(console.error("Hydration completed but contains mismatches."),ms=!0)},lc=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",cc=e=>e.namespaceURI.includes("MathML"),sn=e=>{if(lc(e))return"svg";if(cc(e))return"mathml"},on=e=>e.nodeType===8;function ac(e){const{mt:t,p:n,o:{patchProp:r,createText:s,nextSibling:o,parentNode:i,remove:l,insert:c,createComment:u}}=e,f=(p,y)=>{if(!y.hasChildNodes()){n(null,p,y),_n(),y._vnode=p;return}h(y.firstChild,p,null,null,null),_n(),y._vnode=p},h=(p,y,I,x,F,V=!1)=>{V=V||!!y.dynamicChildren;const M=on(p)&&p.data==="[",b=()=>O(p,y,I,x,F,M),{type:P,ref:S,shapeFlag:K,patchFlag:ee}=y;let re=p.nodeType;y.el=p,ee===-2&&(V=!1,y.dynamicChildren=null);let D=null;switch(P){case ut:re!==3?y.children===""?(c(y.el=s(""),i(p),p),D=p):D=b():(p.data!==y.children&&(gt(),p.data=y.children),D=o(p));break;case ye:H(p)?(D=o(p),W(y.el=p.content.firstChild,p,I)):re!==8||M?D=b():D=o(p);break;case Ft:if(M&&(p=o(p),re=p.nodeType),re===1||re===3){D=p;const Y=!y.children.length;for(let B=0;B{V=V||!!y.dynamicChildren;const{type:M,props:b,patchFlag:P,shapeFlag:S,dirs:K,transition:ee}=y,re=M==="input"||M==="option";if(re||P!==-1){K&&Ne(y,null,I,"created");let D=!1;if(H(p)){D=Xo(x,ee)&&I&&I.vnode.props&&I.vnode.props.appear;const B=p.content.firstChild;D&&ee.beforeEnter(B),W(B,p,I),y.el=p=B}if(S&16&&!(b&&(b.innerHTML||b.textContent))){let B=_(p.firstChild,y,p,I,x,F,V);for(;B;){gt();const de=B;B=B.nextSibling,l(de)}}else S&8&&p.textContent!==y.children&&(gt(),p.textContent=y.children);if(b){if(re||!V||P&48){const B=p.tagName.includes("-");for(const de in b)(re&&(de.endsWith("value")||de==="indeterminate")||Kt(de)&&!bt(de)||de[0]==="."||B)&&r(p,de,null,b[de],void 0,I)}else if(b.onClick)r(p,"onClick",null,b.onClick,void 0,I);else if(P&4&&vt(b.style))for(const B in b.style)b.style[B]}let Y;(Y=b&&b.onVnodeBeforeMount)&&Te(Y,I,y),K&&Ne(y,null,I,"beforeMount"),((Y=b&&b.onVnodeMounted)||K||D)&&Qo(()=>{Y&&Te(Y,I,y),D&&ee.enter(p),K&&Ne(y,null,I,"mounted")},x)}return p.nextSibling},_=(p,y,I,x,F,V,M)=>{M=M||!!y.dynamicChildren;const b=y.children,P=b.length;for(let S=0;S{const{slotScopeIds:M}=y;M&&(F=F?F.concat(M):M);const b=i(p),P=_(o(p),y,b,I,x,F,V);return P&&on(P)&&P.data==="]"?o(y.anchor=P):(gt(),c(y.anchor=u("]"),b,P),P)},O=(p,y,I,x,F,V)=>{if(gt(),y.el=null,V){const P=U(p);for(;;){const S=o(p);if(S&&S!==P)l(S);else break}}const M=o(p),b=i(p);return l(p),n(null,y,b,M,I,x,sn(b),F),M},U=(p,y="[",I="]")=>{let x=0;for(;p;)if(p=o(p),p&&on(p)&&(p.data===y&&x++,p.data===I)){if(x===0)return o(p);x--}return p},W=(p,y,I)=>{const x=y.parentNode;x&&x.replaceChild(p,y);let F=I;for(;F;)F.vnode.el===y&&(F.vnode.el=F.subTree.el=p),F=F.parent},H=p=>p.nodeType===1&&p.tagName.toLowerCase()==="template";return[f,h]}const _e=Qo;function uc(e){return Go(e)}function fc(e){return Go(e,ac)}function Go(e,t){const n=Zs();n.__VUE__=!0;const{insert:r,remove:s,patchProp:o,createElement:i,createText:l,createComment:c,setText:u,setElementText:f,parentNode:h,nextSibling:m,setScopeId:_=Ae,insertStaticContent:w}=e,O=(a,d,g,C=null,v=null,T=null,L=void 0,A=null,R=!!d.dynamicChildren)=>{if(a===d)return;a&&!lt(a,d)&&(C=zt(a),Ie(a,v,T,!0),a=null),d.patchFlag===-2&&(R=!1,d.dynamicChildren=null);const{type:E,ref:N,shapeFlag:j}=d;switch(E){case ut:U(a,d,g,C);break;case ye:W(a,d,g,C);break;case Ft:a==null&&H(d,g,C,L);break;case be:S(a,d,g,C,v,T,L,A,R);break;default:j&1?I(a,d,g,C,v,T,L,A,R):j&6?K(a,d,g,C,v,T,L,A,R):(j&64||j&128)&&E.process(a,d,g,C,v,T,L,A,R,ht)}N!=null&&v&&En(N,a&&a.ref,T,d||a,!d)},U=(a,d,g,C)=>{if(a==null)r(d.el=l(d.children),g,C);else{const v=d.el=a.el;d.children!==a.children&&u(v,d.children)}},W=(a,d,g,C)=>{a==null?r(d.el=c(d.children||""),g,C):d.el=a.el},H=(a,d,g,C)=>{[a.el,a.anchor]=w(a.children,d,g,C,a.el,a.anchor)},p=({el:a,anchor:d},g,C)=>{let v;for(;a&&a!==d;)v=m(a),r(a,g,C),a=v;r(d,g,C)},y=({el:a,anchor:d})=>{let g;for(;a&&a!==d;)g=m(a),s(a),a=g;s(d)},I=(a,d,g,C,v,T,L,A,R)=>{d.type==="svg"?L="svg":d.type==="math"&&(L="mathml"),a==null?x(d,g,C,v,T,L,A,R):M(a,d,v,T,L,A,R)},x=(a,d,g,C,v,T,L,A)=>{let R,E;const{props:N,shapeFlag:j,transition:$,dirs:G}=a;if(R=a.el=i(a.type,T,N&&N.is,N),j&8?f(R,a.children):j&16&&V(a.children,R,null,C,v,Gn(a,T),L,A),G&&Ne(a,null,C,"created"),F(R,a,a.scopeId,L,C),N){for(const te in N)te!=="value"&&!bt(te)&&o(R,te,null,N[te],T,C);"value"in N&&o(R,"value",null,N.value,T),(E=N.onVnodeBeforeMount)&&Te(E,C,a)}G&&Ne(a,null,C,"beforeMount");const X=Xo(v,$);X&&$.beforeEnter(R),r(R,d,g),((E=N&&N.onVnodeMounted)||X||G)&&_e(()=>{E&&Te(E,C,a),X&&$.enter(R),G&&Ne(a,null,C,"mounted")},v)},F=(a,d,g,C,v)=>{if(g&&_(a,g),C)for(let T=0;T{for(let E=R;E{const A=d.el=a.el;let{patchFlag:R,dynamicChildren:E,dirs:N}=d;R|=a.patchFlag&16;const j=a.props||ne,$=d.props||ne;let G;if(g&&rt(g,!1),(G=$.onVnodeBeforeUpdate)&&Te(G,g,d,a),N&&Ne(d,a,g,"beforeUpdate"),g&&rt(g,!0),(j.innerHTML&&$.innerHTML==null||j.textContent&&$.textContent==null)&&f(A,""),E?b(a.dynamicChildren,E,A,g,C,Gn(d,v),T):L||B(a,d,A,null,g,C,Gn(d,v),T,!1),R>0){if(R&16)P(A,j,$,g,v);else if(R&2&&j.class!==$.class&&o(A,"class",null,$.class,v),R&4&&o(A,"style",j.style,$.style,v),R&8){const X=d.dynamicProps;for(let te=0;te{G&&Te(G,g,d,a),N&&Ne(d,a,g,"updated")},C)},b=(a,d,g,C,v,T,L)=>{for(let A=0;A{if(d!==g){if(d!==ne)for(const T in d)!bt(T)&&!(T in g)&&o(a,T,d[T],null,v,C);for(const T in g){if(bt(T))continue;const L=g[T],A=d[T];L!==A&&T!=="value"&&o(a,T,A,L,v,C)}"value"in g&&o(a,"value",d.value,g.value,v)}},S=(a,d,g,C,v,T,L,A,R)=>{const E=d.el=a?a.el:l(""),N=d.anchor=a?a.anchor:l("");let{patchFlag:j,dynamicChildren:$,slotScopeIds:G}=d;G&&(A=A?A.concat(G):G),a==null?(r(E,g,C),r(N,g,C),V(d.children||[],g,N,v,T,L,A,R)):j>0&&j&64&&$&&a.dynamicChildren?(b(a.dynamicChildren,$,g,v,T,L,A),(d.key!=null||v&&d===v.subTree)&&Ur(a,d,!0)):B(a,d,g,N,v,T,L,A,R)},K=(a,d,g,C,v,T,L,A,R)=>{d.slotScopeIds=A,a==null?d.shapeFlag&512?v.ctx.activate(d,g,C,L,R):ee(d,g,C,v,T,L,R):re(a,d,R)},ee=(a,d,g,C,v,T,L)=>{const A=a.component=Oc(a,C,v);if(qt(a)&&(A.ctx.renderer=ht),Lc(A,!1,L),A.asyncDep){if(v&&v.registerDep(A,D,L),!a.el){const R=A.subTree=le(ye);W(null,R,d,g)}}else D(A,a,d,g,v,T,L)},re=(a,d,g)=>{const C=d.component=a.component;if(vc(a,d,g))if(C.asyncDep&&!C.asyncResolved){Y(C,d,g);return}else C.next=d,Tl(C.update),C.effect.dirty=!0,C.update();else d.el=a.el,C.vnode=d},D=(a,d,g,C,v,T,L)=>{const A=()=>{if(a.isMounted){let{next:N,bu:j,u:$,parent:G,vnode:X}=a;{const pt=Yo(a);if(pt){N&&(N.el=X.el,Y(a,N,L)),pt.asyncDep.then(()=>{a.isUnmounted||A()});return}}let te=N,Q;rt(a,!1),N?(N.el=X.el,Y(a,N,L)):N=X,j&&dn(j),(Q=N.props&&N.props.onVnodeBeforeUpdate)&&Te(Q,G,N,X),rt(a,!0);const ce=Xn(a),Oe=a.subTree;a.subTree=ce,O(Oe,ce,h(Oe.el),zt(Oe),a,v,T),N.el=ce.el,te===null&&wc(a,ce.el),$&&_e($,v),(Q=N.props&&N.props.onVnodeUpdated)&&_e(()=>Te(Q,G,N,X),v)}else{let N;const{el:j,props:$}=d,{bm:G,m:X,parent:te}=a,Q=Et(d);if(rt(a,!1),G&&dn(G),!Q&&(N=$&&$.onVnodeBeforeMount)&&Te(N,te,d),rt(a,!0),j&&Bn){const ce=()=>{a.subTree=Xn(a),Bn(j,a.subTree,a,v,null)};Q?d.type.__asyncLoader().then(()=>!a.isUnmounted&&ce()):ce()}else{const ce=a.subTree=Xn(a);O(null,ce,g,C,a,v,T),d.el=ce.el}if(X&&_e(X,v),!Q&&(N=$&&$.onVnodeMounted)){const ce=d;_e(()=>Te(N,te,ce),v)}(d.shapeFlag&256||te&&Et(te.vnode)&&te.vnode.shapeFlag&256)&&a.a&&_e(a.a,v),a.isMounted=!0,d=g=C=null}},R=a.effect=new Ar(A,Ae,()=>In(E),a.scope),E=a.update=()=>{R.dirty&&R.run()};E.i=a,E.id=a.uid,rt(a,!0),E()},Y=(a,d,g)=>{d.component=a;const C=a.vnode.props;a.vnode=d,a.next=null,Zl(a,d.props,C,g),rc(a,d.children,g),et(),is(a),tt()},B=(a,d,g,C,v,T,L,A,R=!1)=>{const E=a&&a.children,N=a?a.shapeFlag:0,j=d.children,{patchFlag:$,shapeFlag:G}=d;if($>0){if($&128){Yt(E,j,g,C,v,T,L,A,R);return}else if($&256){de(E,j,g,C,v,T,L,A,R);return}}G&8?(N&16&&Rt(E,v,T),j!==E&&f(g,j)):N&16?G&16?Yt(E,j,g,C,v,T,L,A,R):Rt(E,v,T,!0):(N&8&&f(g,""),G&16&&V(j,g,C,v,T,L,A,R))},de=(a,d,g,C,v,T,L,A,R)=>{a=a||yt,d=d||yt;const E=a.length,N=d.length,j=Math.min(E,N);let $;for($=0;$N?Rt(a,v,T,!0,!1,j):V(d,g,C,v,T,L,A,R,j)},Yt=(a,d,g,C,v,T,L,A,R)=>{let E=0;const N=d.length;let j=a.length-1,$=N-1;for(;E<=j&&E<=$;){const G=a[E],X=d[E]=R?qe(d[E]):xe(d[E]);if(lt(G,X))O(G,X,g,null,v,T,L,A,R);else break;E++}for(;E<=j&&E<=$;){const G=a[j],X=d[$]=R?qe(d[$]):xe(d[$]);if(lt(G,X))O(G,X,g,null,v,T,L,A,R);else break;j--,$--}if(E>j){if(E<=$){const G=$+1,X=G$)for(;E<=j;)Ie(a[E],v,T,!0),E++;else{const G=E,X=E,te=new Map;for(E=X;E<=$;E++){const we=d[E]=R?qe(d[E]):xe(d[E]);we.key!=null&&te.set(we.key,E)}let Q,ce=0;const Oe=$-X+1;let pt=!1,Yr=0;const Ot=new Array(Oe);for(E=0;E=Oe){Ie(we,v,T,!0);continue}let Pe;if(we.key!=null)Pe=te.get(we.key);else for(Q=X;Q<=$;Q++)if(Ot[Q-X]===0&<(we,d[Q])){Pe=Q;break}Pe===void 0?Ie(we,v,T,!0):(Ot[Pe-X]=E+1,Pe>=Yr?Yr=Pe:pt=!0,O(we,d[Pe],g,null,v,T,L,A,R),ce++)}const zr=pt?dc(Ot):yt;for(Q=zr.length-1,E=Oe-1;E>=0;E--){const we=X+E,Pe=d[we],Jr=we+1{const{el:T,type:L,transition:A,children:R,shapeFlag:E}=a;if(E&6){nt(a.component.subTree,d,g,C);return}if(E&128){a.suspense.move(d,g,C);return}if(E&64){L.move(a,d,g,ht);return}if(L===be){r(T,d,g);for(let j=0;jA.enter(T),v);else{const{leave:j,delayLeave:$,afterLeave:G}=A,X=()=>r(T,d,g),te=()=>{j(T,()=>{X(),G&&G()})};$?$(T,X,te):te()}else r(T,d,g)},Ie=(a,d,g,C=!1,v=!1)=>{const{type:T,props:L,ref:A,children:R,dynamicChildren:E,shapeFlag:N,patchFlag:j,dirs:$,cacheIndex:G}=a;if(j===-2&&(v=!1),A!=null&&En(A,null,g,a,!0),G!=null&&(d.renderCache[G]=void 0),N&256){d.ctx.deactivate(a);return}const X=N&1&&$,te=!Et(a);let Q;if(te&&(Q=L&&L.onVnodeBeforeUnmount)&&Te(Q,d,a),N&6)Li(a.component,g,C);else{if(N&128){a.suspense.unmount(g,C);return}X&&Ne(a,null,d,"beforeUnmount"),N&64?a.type.remove(a,d,g,ht,C):E&&!E.hasOnce&&(T!==be||j>0&&j&64)?Rt(E,d,g,!1,!0):(T===be&&j&384||!v&&N&16)&&Rt(R,d,g),C&&Gr(a)}(te&&(Q=L&&L.onVnodeUnmounted)||X)&&_e(()=>{Q&&Te(Q,d,a),X&&Ne(a,null,d,"unmounted")},g)},Gr=a=>{const{type:d,el:g,anchor:C,transition:v}=a;if(d===be){Oi(g,C);return}if(d===Ft){y(a);return}const T=()=>{s(g),v&&!v.persisted&&v.afterLeave&&v.afterLeave()};if(a.shapeFlag&1&&v&&!v.persisted){const{leave:L,delayLeave:A}=v,R=()=>L(g,T);A?A(a.el,T,R):R()}else T()},Oi=(a,d)=>{let g;for(;a!==d;)g=m(a),s(a),a=g;s(d)},Li=(a,d,g)=>{const{bum:C,scope:v,update:T,subTree:L,um:A,m:R,a:E}=a;ys(R),ys(E),C&&dn(C),v.stop(),T&&(T.active=!1,Ie(L,a,d,g)),A&&_e(A,d),_e(()=>{a.isUnmounted=!0},d),d&&d.pendingBranch&&!d.isUnmounted&&a.asyncDep&&!a.asyncResolved&&a.suspenseId===d.pendingId&&(d.deps--,d.deps===0&&d.resolve())},Rt=(a,d,g,C=!1,v=!1,T=0)=>{for(let L=T;L{if(a.shapeFlag&6)return zt(a.component.subTree);if(a.shapeFlag&128)return a.suspense.next();const d=m(a.anchor||a.el),g=d&&d[Ko];return g?m(g):d};let Dn=!1;const Xr=(a,d,g)=>{a==null?d._vnode&&Ie(d._vnode,null,null,!0):O(d._vnode||null,a,d,null,null,null,g),d._vnode=a,Dn||(Dn=!0,is(),_n(),Dn=!1)},ht={p:O,um:Ie,m:nt,r:Gr,mt:ee,mc:V,pc:B,pbc:b,n:zt,o:e};let Un,Bn;return t&&([Un,Bn]=t(ht)),{render:Xr,hydrate:Un,createApp:zl(Xr,Un)}}function Gn({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function rt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Xo(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ur(e,t,n=!1){const r=e.children,s=t.children;if(k(r)&&k(s))for(let o=0;o>1,e[n[l]]0&&(t[r]=n[o-1]),n[o]=r)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=t[i];return n}function Yo(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Yo(t)}function ys(e){if(e)for(let t=0;tSt(hc);function Br(e,t){return $n(e,null,t)}function _u(e,t){return $n(e,null,{flush:"post"})}const ln={};function $e(e,t,n){return $n(e,t,n)}function $n(e,t,{immediate:n,deep:r,flush:s,once:o,onTrack:i,onTrigger:l}=ne){if(t&&o){const x=t;t=(...F)=>{x(...F),I()}}const c=ae,u=x=>r===!0?x:Ge(x,r===!1?1:void 0);let f,h=!1,m=!1;if(he(e)?(f=()=>e.value,h=Tt(e)):vt(e)?(f=()=>u(e),h=!0):k(e)?(m=!0,h=e.some(x=>vt(x)||Tt(x)),f=()=>e.map(x=>{if(he(x))return x.value;if(vt(x))return u(x);if(q(x))return Ye(x,c,2)})):q(e)?t?f=()=>Ye(e,c,2):f=()=>(_&&_(),Re(e,c,3,[w])):f=Ae,t&&r){const x=f;f=()=>Ge(x())}let _,w=x=>{_=p.onStop=()=>{Ye(x,c,4),_=p.onStop=void 0}},O;if(Xt)if(w=Ae,t?n&&Re(t,c,3,[f(),m?[]:void 0,w]):f(),s==="sync"){const x=pc();O=x.__watcherHandles||(x.__watcherHandles=[])}else return Ae;let U=m?new Array(e.length).fill(ln):ln;const W=()=>{if(!(!p.active||!p.dirty))if(t){const x=p.run();(r||h||(m?x.some((F,V)=>ze(F,U[V])):ze(x,U)))&&(_&&_(),Re(t,c,3,[x,U===ln?void 0:m&&U[0]===ln?[]:U,w]),U=x)}else p.run()};W.allowRecurse=!!t;let H;s==="sync"?H=W:s==="post"?H=()=>_e(W,c&&c.suspense):(W.pre=!0,c&&(W.id=c.uid),H=()=>In(W));const p=new Ar(f,Ae,H),y=ro(),I=()=>{p.stop(),y&&Cr(y.effects,p)};return t?n?W():U=p.run():s==="post"?_e(p.run.bind(p),c&&c.suspense):p.run(),O&&O.push(I),I}function gc(e,t,n){const r=this.proxy,s=ie(e)?e.includes(".")?zo(r,e):()=>r[e]:e.bind(r,r);let o;q(t)?o=t:(o=t.handler,n=t);const i=Gt(this),l=$n(s,o.bind(r),n);return i(),l}function zo(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;s{Ge(r,t,n)});else if(Js(e)){for(const r in e)Ge(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Ge(e[r],t,n)}return e}const mc=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Le(t)}Modifiers`]||e[`${Ze(t)}Modifiers`];function yc(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||ne;let s=n;const o=t.startsWith("update:"),i=o&&mc(r,t.slice(7));i&&(i.trim&&(s=n.map(f=>ie(f)?f.trim():f)),i.number&&(s=n.map(cr)));let l,c=r[l=fn(t)]||r[l=fn(Le(t))];!c&&o&&(c=r[l=fn(Ze(t))]),c&&Re(c,e,6,s);const u=r[l+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Re(u,e,6,s)}}function Jo(e,t,n=!1){const r=t.emitsCache,s=r.get(e);if(s!==void 0)return s;const o=e.emits;let i={},l=!1;if(!q(e)){const c=u=>{const f=Jo(u,t,!0);f&&(l=!0,fe(i,f))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!o&&!l?(Z(e)&&r.set(e,null),null):(k(o)?o.forEach(c=>i[c]=null):fe(i,o),Z(e)&&r.set(e,i),i)}function Hn(e,t){return!e||!Kt(t)?!1:(t=t.slice(2).replace(/Once$/,""),z(e,t[0].toLowerCase()+t.slice(1))||z(e,Ze(t))||z(e,t))}function Xn(e){const{type:t,vnode:n,proxy:r,withProxy:s,propsOptions:[o],slots:i,attrs:l,emit:c,render:u,renderCache:f,props:h,data:m,setupState:_,ctx:w,inheritAttrs:O}=e,U=bn(e);let W,H;try{if(n.shapeFlag&4){const y=s||r,I=y;W=xe(u.call(I,y,f,h,_,m,w)),H=l}else{const y=t;W=xe(y.length>1?y(h,{attrs:l,slots:i,emit:c}):y(h,null)),H=t.props?l:_c(l)}}catch(y){$t.length=0,Wt(y,e,1),W=le(ye)}let p=W;if(H&&O!==!1){const y=Object.keys(H),{shapeFlag:I}=p;y.length&&I&7&&(o&&y.some(Er)&&(H=bc(H,o)),p=Je(p,H,!1,!0))}return n.dirs&&(p=Je(p,null,!1,!0),p.dirs=p.dirs?p.dirs.concat(n.dirs):n.dirs),n.transition&&(p.transition=n.transition),W=p,bn(U),W}const _c=e=>{let t;for(const n in e)(n==="class"||n==="style"||Kt(n))&&((t||(t={}))[n]=e[n]);return t},bc=(e,t)=>{const n={};for(const r in e)(!Er(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function vc(e,t,n){const{props:r,children:s,component:o}=e,{props:i,children:l,patchFlag:c}=t,u=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?_s(r,i,u):!!i;if(c&8){const f=t.dynamicProps;for(let h=0;he.__isSuspense;function Qo(e,t){t&&t.pendingBranch?k(e)?t.effects.push(...e):t.effects.push(e):xl(e)}const be=Symbol.for("v-fgt"),ut=Symbol.for("v-txt"),ye=Symbol.for("v-cmt"),Ft=Symbol.for("v-stc"),$t=[];let Ce=null;function Zo(e=!1){$t.push(Ce=e?null:[])}function Cc(){$t.pop(),Ce=$t[$t.length-1]||null}let Ut=1;function bs(e){Ut+=e,e<0&&Ce&&(Ce.hasOnce=!0)}function ei(e){return e.dynamicChildren=Ut>0?Ce||yt:null,Cc(),Ut>0&&Ce&&Ce.push(e),e}function bu(e,t,n,r,s,o){return ei(ri(e,t,n,r,s,o,!0))}function ti(e,t,n,r,s){return ei(le(e,t,n,r,s,!0))}function Cn(e){return e?e.__v_isVNode===!0:!1}function lt(e,t){return e.type===t.type&&e.key===t.key}const ni=({key:e})=>e??null,pn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ie(e)||he(e)||q(e)?{i:ue,r:e,k:t,f:!!n}:e:null);function ri(e,t=null,n=null,r=0,s=null,o=e===be?0:1,i=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ni(t),ref:t&&pn(t),scopeId:Pn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:ue};return l?(kr(c,n),o&128&&e.normalize(c)):n&&(c.shapeFlag|=ie(n)?8:16),Ut>0&&!i&&Ce&&(c.patchFlag>0||o&6)&&c.patchFlag!==32&&Ce.push(c),c}const le=Sc;function Sc(e,t=null,n=null,r=0,s=null,o=!1){if((!e||e===Lo)&&(e=ye),Cn(e)){const l=Je(e,t,!0);return n&&kr(l,n),Ut>0&&!o&&Ce&&(l.shapeFlag&6?Ce[Ce.indexOf(e)]=l:Ce.push(l)),l.patchFlag=-2,l}if(Nc(e)&&(e=e.__vccOpts),t){t=Tc(t);let{class:l,style:c}=t;l&&!ie(l)&&(t.class=xr(l)),Z(c)&&(mo(c)&&!k(c)&&(c=fe({},c)),t.style=Tr(c))}const i=ie(e)?1:Ec(e)?128:sc(e)?64:Z(e)?4:q(e)?2:0;return ri(e,t,n,r,s,i,o,!0)}function Tc(e){return e?mo(e)||Ho(e)?fe({},e):e:null}function Je(e,t,n=!1,r=!1){const{props:s,ref:o,patchFlag:i,children:l,transition:c}=e,u=t?xc(s||{},t):s,f={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&ni(u),ref:t&&t.ref?n&&o?k(o)?o.concat(pn(t)):[o,pn(t)]:pn(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==be?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Je(e.ssContent),ssFallback:e.ssFallback&&Je(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&r&&vn(f,c.clone(f)),f}function si(e=" ",t=0){return le(ut,null,e,t)}function vu(e,t){const n=le(Ft,null,e);return n.staticCount=t,n}function wu(e="",t=!1){return t?(Zo(),ti(ye,null,e)):le(ye,null,e)}function xe(e){return e==null||typeof e=="boolean"?le(ye):k(e)?le(be,null,e.slice()):typeof e=="object"?qe(e):le(ut,null,String(e))}function qe(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Je(e)}function kr(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(k(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),kr(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!Ho(t)?t._ctx=ue:s===3&&ue&&(ue.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else q(t)?(t={default:t,_ctx:ue},n=32):(t=String(t),r&64?(n=16,t=[si(t)]):n=8);e.children=t,e.shapeFlag|=n}function xc(...e){const t={};for(let n=0;nae||ue;let Sn,br;{const e=Zs(),t=(n,r)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(r),o=>{s.length>1?s.forEach(i=>i(o)):s[0](o)}};Sn=t("__VUE_INSTANCE_SETTERS__",n=>ae=n),br=t("__VUE_SSR_SETTERS__",n=>Xt=n)}const Gt=e=>{const t=ae;return Sn(e),e.scope.on(),()=>{e.scope.off(),Sn(t)}},vs=()=>{ae&&ae.scope.off(),Sn(null)};function oi(e){return e.vnode.shapeFlag&4}let Xt=!1;function Lc(e,t=!1,n=!1){t&&br(t);const{props:r,children:s}=e.vnode,o=oi(e);Ql(e,r,o,t),nc(e,s,n);const i=o?Mc(e,t):void 0;return t&&br(!1),i}function Mc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Bl);const{setup:r}=n;if(r){const s=e.setupContext=r.length>1?li(e):null,o=Gt(e);et();const i=Ye(r,e,0,[e.props,s]);if(tt(),o(),Ys(i)){if(i.then(vs,vs),t)return i.then(l=>{ws(e,l,t)}).catch(l=>{Wt(l,e,0)});e.asyncDep=i}else ws(e,i,t)}else ii(e,t)}function ws(e,t,n){q(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Z(t)&&(e.setupState=vo(t)),ii(e,n)}let Es;function ii(e,t,n){const r=e.type;if(!e.render){if(!t&&Es&&!r.render){const s=r.template||Vr(e).template;if(s){const{isCustomElement:o,compilerOptions:i}=e.appContext.config,{delimiters:l,compilerOptions:c}=r,u=fe(fe({isCustomElement:o,delimiters:l},i),c);r.render=Es(s,u)}}e.render=r.render||Ae}{const s=Gt(e);et();try{Kl(e)}finally{tt(),s()}}}const Ic={get(e,t){return ve(e,"get",""),e[t]}};function li(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Ic),slots:e.slots,emit:e.emit,expose:t}}function Vn(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(vo(hn(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Pt)return Pt[n](e)},has(t,n){return n in t||n in Pt}})):e.proxy}function Pc(e,t=!0){return q(e)?e.displayName||e.name:e.name||t&&e.__name}function Nc(e){return q(e)&&"__vccOpts"in e}const se=(e,t)=>pl(e,t,Xt);function vr(e,t,n){const r=arguments.length;return r===2?Z(t)&&!k(t)?Cn(t)?le(e,null,[t]):le(e,t):le(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Cn(n)&&(n=[n]),le(e,t,n))}const Fc="3.4.38";/** -* @vue/runtime-dom v3.4.38 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/const $c="http://www.w3.org/2000/svg",Hc="http://www.w3.org/1998/Math/MathML",je=typeof document<"u"?document:null,Cs=je&&je.createElement("template"),jc={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const s=t==="svg"?je.createElementNS($c,e):t==="mathml"?je.createElementNS(Hc,e):n?je.createElement(e,{is:n}):je.createElement(e);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>je.createTextNode(e),createComment:e=>je.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>je.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,o){const i=n?n.previousSibling:t.lastChild;if(s&&(s===o||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===o||!(s=s.nextSibling)););else{Cs.innerHTML=r==="svg"?`${e}`:r==="mathml"?`${e}`:e;const l=Cs.content;if(r==="svg"||r==="mathml"){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Be="transition",Lt="animation",Bt=Symbol("_vtc"),ci=(e,{slots:t})=>vr(Ml,Vc(e),t);ci.displayName="Transition";const ai={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};ci.props=fe({},So,ai);const st=(e,t=[])=>{k(e)?e.forEach(n=>n(...t)):e&&e(...t)},Ss=e=>e?k(e)?e.some(t=>t.length>1):e.length>1:!1;function Vc(e){const t={};for(const S in e)S in ai||(t[S]=e[S]);if(e.css===!1)return t;const{name:n="v",type:r,duration:s,enterFromClass:o=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:c=o,appearActiveClass:u=i,appearToClass:f=l,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:m=`${n}-leave-active`,leaveToClass:_=`${n}-leave-to`}=e,w=Dc(s),O=w&&w[0],U=w&&w[1],{onBeforeEnter:W,onEnter:H,onEnterCancelled:p,onLeave:y,onLeaveCancelled:I,onBeforeAppear:x=W,onAppear:F=H,onAppearCancelled:V=p}=t,M=(S,K,ee)=>{ot(S,K?f:l),ot(S,K?u:i),ee&&ee()},b=(S,K)=>{S._isLeaving=!1,ot(S,h),ot(S,_),ot(S,m),K&&K()},P=S=>(K,ee)=>{const re=S?F:H,D=()=>M(K,S,ee);st(re,[K,D]),Ts(()=>{ot(K,S?c:o),ke(K,S?f:l),Ss(re)||xs(K,r,O,D)})};return fe(t,{onBeforeEnter(S){st(W,[S]),ke(S,o),ke(S,i)},onBeforeAppear(S){st(x,[S]),ke(S,c),ke(S,u)},onEnter:P(!1),onAppear:P(!0),onLeave(S,K){S._isLeaving=!0;const ee=()=>b(S,K);ke(S,h),ke(S,m),kc(),Ts(()=>{S._isLeaving&&(ot(S,h),ke(S,_),Ss(y)||xs(S,r,U,ee))}),st(y,[S,ee])},onEnterCancelled(S){M(S,!1),st(p,[S])},onAppearCancelled(S){M(S,!0),st(V,[S])},onLeaveCancelled(S){b(S),st(I,[S])}})}function Dc(e){if(e==null)return null;if(Z(e))return[Yn(e.enter),Yn(e.leave)];{const t=Yn(e);return[t,t]}}function Yn(e){return $i(e)}function ke(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Bt]||(e[Bt]=new Set)).add(t)}function ot(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[Bt];n&&(n.delete(t),n.size||(e[Bt]=void 0))}function Ts(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Uc=0;function xs(e,t,n,r){const s=e._endId=++Uc,o=()=>{s===e._endId&&r()};if(n)return setTimeout(o,n);const{type:i,timeout:l,propCount:c}=Bc(e,t);if(!i)return r();const u=i+"end";let f=0;const h=()=>{e.removeEventListener(u,m),o()},m=_=>{_.target===e&&++f>=c&&h()};setTimeout(()=>{f(n[w]||"").split(", "),s=r(`${Be}Delay`),o=r(`${Be}Duration`),i=As(s,o),l=r(`${Lt}Delay`),c=r(`${Lt}Duration`),u=As(l,c);let f=null,h=0,m=0;t===Be?i>0&&(f=Be,h=i,m=o.length):t===Lt?u>0&&(f=Lt,h=u,m=c.length):(h=Math.max(i,u),f=h>0?i>u?Be:Lt:null,m=f?f===Be?o.length:c.length:0);const _=f===Be&&/\b(transform|all)(,|$)/.test(r(`${Be}Property`).toString());return{type:f,timeout:h,propCount:m,hasTransform:_}}function As(e,t){for(;e.lengthRs(n)+Rs(e[r])))}function Rs(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function kc(){return document.body.offsetHeight}function Kc(e,t,n){const r=e[Bt];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Os=Symbol("_vod"),Wc=Symbol("_vsh"),qc=Symbol(""),Gc=/(^|;)\s*display\s*:/;function Xc(e,t,n){const r=e.style,s=ie(n);let o=!1;if(n&&!s){if(t)if(ie(t))for(const i of t.split(";")){const l=i.slice(0,i.indexOf(":")).trim();n[l]==null&&gn(r,l,"")}else for(const i in t)n[i]==null&&gn(r,i,"");for(const i in n)i==="display"&&(o=!0),gn(r,i,n[i])}else if(s){if(t!==n){const i=r[qc];i&&(n+=";"+i),r.cssText=n,o=Gc.test(n)}}else t&&e.removeAttribute("style");Os in e&&(e[Os]=o?r.display:"",e[Wc]&&(r.display="none"))}const Ls=/\s*!important$/;function gn(e,t,n){if(k(n))n.forEach(r=>gn(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=Yc(e,t);Ls.test(n)?e.setProperty(Ze(r),n.replace(Ls,""),"important"):e[r]=n}}const Ms=["Webkit","Moz","ms"],zn={};function Yc(e,t){const n=zn[t];if(n)return n;let r=Le(t);if(r!=="filter"&&r in e)return zn[t]=r;r=An(r);for(let s=0;sJn||(ea.then(()=>Jn=0),Jn=Date.now());function na(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Re(ra(r,n.value),t,5,[r])};return n.value=e,n.attached=ta(),n}function ra(e,t){if(k(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>s=>!s._stopped&&r&&r(s))}else return t}const $s=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,sa=(e,t,n,r,s,o)=>{const i=s==="svg";t==="class"?Kc(e,r,i):t==="style"?Xc(e,n,r):Kt(t)?Er(t)||Qc(e,t,n,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):oa(e,t,r,i))?(zc(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Ps(e,t,r,i,o,t!=="value")):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Ps(e,t,r,i))};function oa(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&$s(t)&&q(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return $s(t)&&ie(n)?!1:t in e}const Hs=e=>{const t=e.props["onUpdate:modelValue"]||!1;return k(t)?n=>dn(t,n):t};function ia(e){e.target.composing=!0}function js(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Qn=Symbol("_assign"),Eu={created(e,{modifiers:{lazy:t,trim:n,number:r}},s){e[Qn]=Hs(s);const o=r||s.props&&s.props.type==="number";mt(e,t?"change":"input",i=>{if(i.target.composing)return;let l=e.value;n&&(l=l.trim()),o&&(l=cr(l)),e[Qn](l)}),n&&mt(e,"change",()=>{e.value=e.value.trim()}),t||(mt(e,"compositionstart",ia),mt(e,"compositionend",js),mt(e,"change",js))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:s,number:o}},i){if(e[Qn]=Hs(i),e.composing)return;const l=(o||e.type==="number")&&!/^0\d/.test(e.value)?cr(e.value):e.value,c=t??"";l!==c&&(document.activeElement===e&&e.type!=="range"&&(r&&t===n||s&&e.value.trim()===c)||(e.value=c))}},la=["ctrl","shift","alt","meta"],ca={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>la.some(n=>e[`${n}Key`]&&!t.includes(n))},Cu=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(s,...o)=>{for(let i=0;i{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=s=>{if(!("key"in s))return;const o=Ze(s.key);if(t.some(i=>i===o||aa[i]===o))return e(s)})},ui=fe({patchProp:sa},jc);let Ht,Vs=!1;function ua(){return Ht||(Ht=uc(ui))}function fa(){return Ht=Vs?Ht:fc(ui),Vs=!0,Ht}const Tu=(...e)=>{const t=ua().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=di(r);if(!s)return;const o=t._component;!q(o)&&!o.render&&!o.template&&(o.template=s.innerHTML),s.innerHTML="";const i=n(s,!1,fi(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),i},t},xu=(...e)=>{const t=fa().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=di(r);if(s)return n(s,!0,fi(s))},t};function fi(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function di(e){return ie(e)?document.querySelector(e):e}const Au=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},da=window.__VP_SITE_DATA__;function Kr(e){return ro()?(qi(e),!0):!1}function He(e){return typeof e=="function"?e():bo(e)}const hi=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Ru=e=>e!=null,ha=Object.prototype.toString,pa=e=>ha.call(e)==="[object Object]",kt=()=>{},Ds=ga();function ga(){var e,t;return hi&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function ma(e,t){function n(...r){return new Promise((s,o)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(s).catch(o)})}return n}const pi=e=>e();function ya(e,t={}){let n,r,s=kt;const o=l=>{clearTimeout(l),s(),s=kt};return l=>{const c=He(e),u=He(t.maxWait);return n&&o(n),c<=0||u!==void 0&&u<=0?(r&&(o(r),r=null),Promise.resolve(l())):new Promise((f,h)=>{s=t.rejectOnCancel?h:f,u&&!r&&(r=setTimeout(()=>{n&&o(n),r=null,f(l())},u)),n=setTimeout(()=>{r&&o(r),r=null,f(l())},c)})}}function _a(e=pi){const t=oe(!0);function n(){t.value=!1}function r(){t.value=!0}const s=(...o)=>{t.value&&e(...o)};return{isActive:Ln(t),pause:n,resume:r,eventFilter:s}}function ba(e){return jn()}function gi(...e){if(e.length!==1)return wl(...e);const t=e[0];return typeof t=="function"?Ln(_l(()=>({get:t,set:kt}))):oe(t)}function mi(e,t,n={}){const{eventFilter:r=pi,...s}=n;return $e(e,ma(r,t),s)}function va(e,t,n={}){const{eventFilter:r,...s}=n,{eventFilter:o,pause:i,resume:l,isActive:c}=_a(r);return{stop:mi(e,t,{...s,eventFilter:o}),pause:i,resume:l,isActive:c}}function Wr(e,t=!0,n){ba()?At(e,n):t?e():Mn(e)}function Ou(e,t,n={}){const{debounce:r=0,maxWait:s=void 0,...o}=n;return mi(e,t,{...o,eventFilter:ya(r,{maxWait:s})})}function Lu(e,t,n){let r;he(n)?r={evaluating:n}:r={};const{lazy:s=!1,evaluating:o=void 0,shallow:i=!0,onError:l=kt}=r,c=oe(!s),u=i?Fr(t):oe(t);let f=0;return Br(async h=>{if(!c.value)return;f++;const m=f;let _=!1;o&&Promise.resolve().then(()=>{o.value=!0});try{const w=await e(O=>{h(()=>{o&&(o.value=!1),_||O()})});m===f&&(u.value=w)}catch(w){l(w)}finally{o&&m===f&&(o.value=!1),_=!0}}),s?se(()=>(c.value=!0,u.value)):u}function yi(e){var t;const n=He(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Me=hi?window:void 0;function xt(...e){let t,n,r,s;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,r,s]=e,t=Me):[t,n,r,s]=e,!t)return kt;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const o=[],i=()=>{o.forEach(f=>f()),o.length=0},l=(f,h,m,_)=>(f.addEventListener(h,m,_),()=>f.removeEventListener(h,m,_)),c=$e(()=>[yi(t),He(s)],([f,h])=>{if(i(),!f)return;const m=pa(h)?{...h}:h;o.push(...n.flatMap(_=>r.map(w=>l(f,_,w,m))))},{immediate:!0,flush:"post"}),u=()=>{c(),i()};return Kr(u),u}function wa(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function Mu(...e){let t,n,r={};e.length===3?(t=e[0],n=e[1],r=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],r=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:s=Me,eventName:o="keydown",passive:i=!1,dedupe:l=!1}=r,c=wa(t);return xt(s,o,f=>{f.repeat&&He(l)||c(f)&&n(f)},i)}function Ea(){const e=oe(!1),t=jn();return t&&At(()=>{e.value=!0},t),e}function Ca(e){const t=Ea();return se(()=>(t.value,!!e()))}function _i(e,t={}){const{window:n=Me}=t,r=Ca(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let s;const o=oe(!1),i=u=>{o.value=u.matches},l=()=>{s&&("removeEventListener"in s?s.removeEventListener("change",i):s.removeListener(i))},c=Br(()=>{r.value&&(l(),s=n.matchMedia(He(e)),"addEventListener"in s?s.addEventListener("change",i):s.addListener(i),o.value=s.matches)});return Kr(()=>{c(),l(),s=void 0}),o}const cn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},an="__vueuse_ssr_handlers__",Sa=Ta();function Ta(){return an in cn||(cn[an]=cn[an]||{}),cn[an]}function bi(e,t){return Sa[e]||t}function xa(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const Aa={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},Us="vueuse-storage";function qr(e,t,n,r={}){var s;const{flush:o="pre",deep:i=!0,listenToStorageChanges:l=!0,writeDefaults:c=!0,mergeDefaults:u=!1,shallow:f,window:h=Me,eventFilter:m,onError:_=b=>{console.error(b)},initOnMounted:w}=r,O=(f?Fr:oe)(typeof t=="function"?t():t);if(!n)try{n=bi("getDefaultStorage",()=>{var b;return(b=Me)==null?void 0:b.localStorage})()}catch(b){_(b)}if(!n)return O;const U=He(t),W=xa(U),H=(s=r.serializer)!=null?s:Aa[W],{pause:p,resume:y}=va(O,()=>x(O.value),{flush:o,deep:i,eventFilter:m});h&&l&&Wr(()=>{n instanceof Storage?xt(h,"storage",V):xt(h,Us,M),w&&V()}),w||V();function I(b,P){if(h){const S={key:e,oldValue:b,newValue:P,storageArea:n};h.dispatchEvent(n instanceof Storage?new StorageEvent("storage",S):new CustomEvent(Us,{detail:S}))}}function x(b){try{const P=n.getItem(e);if(b==null)I(P,null),n.removeItem(e);else{const S=H.write(b);P!==S&&(n.setItem(e,S),I(P,S))}}catch(P){_(P)}}function F(b){const P=b?b.newValue:n.getItem(e);if(P==null)return c&&U!=null&&n.setItem(e,H.write(U)),U;if(!b&&u){const S=H.read(P);return typeof u=="function"?u(S,U):W==="object"&&!Array.isArray(S)?{...U,...S}:S}else return typeof P!="string"?P:H.read(P)}function V(b){if(!(b&&b.storageArea!==n)){if(b&&b.key==null){O.value=U;return}if(!(b&&b.key!==e)){p();try{(b==null?void 0:b.newValue)!==H.write(O.value)&&(O.value=F(b))}catch(P){_(P)}finally{b?Mn(y):y()}}}}function M(b){V(b.detail)}return O}function vi(e){return _i("(prefers-color-scheme: dark)",e)}const Ra="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function Oa(e={}){const{selector:t="html",attribute:n="class",initialValue:r="auto",window:s=Me,storage:o,storageKey:i="vueuse-color-scheme",listenToStorageChanges:l=!0,storageRef:c,emitAuto:u,disableTransition:f=!0}=e,h={auto:"",light:"light",dark:"dark",...e.modes||{}},m=vi({window:s}),_=se(()=>m.value?"dark":"light"),w=c||(i==null?gi(r):qr(i,r,o,{window:s,listenToStorageChanges:l})),O=se(()=>w.value==="auto"?_.value:w.value),U=bi("updateHTMLAttrs",(y,I,x)=>{const F=typeof y=="string"?s==null?void 0:s.document.querySelector(y):yi(y);if(!F)return;const V=new Set,M=new Set;let b=null;if(I==="class"){const S=x.split(/\s/g);Object.values(h).flatMap(K=>(K||"").split(/\s/g)).filter(Boolean).forEach(K=>{S.includes(K)?V.add(K):M.add(K)})}else b={key:I,value:x};if(V.size===0&&M.size===0&&b===null)return;let P;f&&(P=s.document.createElement("style"),P.appendChild(document.createTextNode(Ra)),s.document.head.appendChild(P));for(const S of V)F.classList.add(S);for(const S of M)F.classList.remove(S);b&&F.setAttribute(b.key,b.value),f&&(s.getComputedStyle(P).opacity,document.head.removeChild(P))});function W(y){var I;U(t,n,(I=h[y])!=null?I:y)}function H(y){e.onChanged?e.onChanged(y,W):W(y)}$e(O,H,{flush:"post",immediate:!0}),Wr(()=>H(O.value));const p=se({get(){return u?w.value:O.value},set(y){w.value=y}});try{return Object.assign(p,{store:w,system:_,state:O})}catch{return p}}function La(e={}){const{valueDark:t="dark",valueLight:n="",window:r=Me}=e,s=Oa({...e,onChanged:(l,c)=>{var u;e.onChanged?(u=e.onChanged)==null||u.call(e,l==="dark",c,l):c(l)},modes:{dark:t,light:n}}),o=se(()=>s.system?s.system.value:vi({window:r}).value?"dark":"light");return se({get(){return s.value==="dark"},set(l){const c=l?"dark":"light";o.value===c?s.value="auto":s.value=c}})}function Zn(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function Iu(e,t,n={}){const{window:r=Me}=n;return qr(e,t,r==null?void 0:r.localStorage,n)}function wi(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth1?!0:(t.preventDefault&&t.preventDefault(),!1)}const er=new WeakMap;function Pu(e,t=!1){const n=oe(t);let r=null,s="";$e(gi(e),l=>{const c=Zn(He(l));if(c){const u=c;if(er.get(u)||er.set(u,u.style.overflow),u.style.overflow!=="hidden"&&(s=u.style.overflow),u.style.overflow==="hidden")return n.value=!0;if(n.value)return u.style.overflow="hidden"}},{immediate:!0});const o=()=>{const l=Zn(He(e));!l||n.value||(Ds&&(r=xt(l,"touchmove",c=>{Ma(c)},{passive:!1})),l.style.overflow="hidden",n.value=!0)},i=()=>{const l=Zn(He(e));!l||!n.value||(Ds&&(r==null||r()),l.style.overflow=s,er.delete(l),n.value=!1)};return Kr(i),se({get(){return n.value},set(l){l?o():i()}})}function Nu(e,t,n={}){const{window:r=Me}=n;return qr(e,t,r==null?void 0:r.sessionStorage,n)}function Fu(e={}){const{window:t=Me,behavior:n="auto"}=e;if(!t)return{x:oe(0),y:oe(0)};const r=oe(t.scrollX),s=oe(t.scrollY),o=se({get(){return r.value},set(l){scrollTo({left:l,behavior:n})}}),i=se({get(){return s.value},set(l){scrollTo({top:l,behavior:n})}});return xt(t,"scroll",()=>{r.value=t.scrollX,s.value=t.scrollY},{capture:!1,passive:!0}),{x:o,y:i}}function $u(e={}){const{window:t=Me,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:r=Number.POSITIVE_INFINITY,listenOrientation:s=!0,includeScrollbar:o=!0,type:i="inner"}=e,l=oe(n),c=oe(r),u=()=>{t&&(i==="outer"?(l.value=t.outerWidth,c.value=t.outerHeight):o?(l.value=t.innerWidth,c.value=t.innerHeight):(l.value=t.document.documentElement.clientWidth,c.value=t.document.documentElement.clientHeight))};if(u(),Wr(u),xt("resize",u,{passive:!0}),s){const f=_i("(orientation: portrait)");$e(f,()=>u())}return{width:l,height:c}}const tr={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1};var nr={};const Ei=/^(?:[a-z]+:|\/\/)/i,Ia="vitepress-theme-appearance",Pa=/#.*$/,Na=/[?#].*$/,Fa=/(?:(^|\/)index)?\.(?:md|html)$/,pe=typeof document<"u",Ci={relativePath:"404.md",filePath:"",title:"404",description:"Not Found",headers:[],frontmatter:{sidebar:!1,layout:"page"},lastUpdated:0,isNotFound:!0};function $a(e,t,n=!1){if(t===void 0)return!1;if(e=Bs(`/${e}`),n)return new RegExp(t).test(e);if(Bs(t)!==e)return!1;const r=t.match(Pa);return r?(pe?location.hash:"")===r[0]:!0}function Bs(e){return decodeURI(e).replace(Na,"").replace(Fa,"$1")}function Ha(e){return Ei.test(e)}function ja(e,t){return Object.keys((e==null?void 0:e.locales)||{}).find(n=>n!=="root"&&!Ha(n)&&$a(t,`/${n}/`,!0))||"root"}function Va(e,t){var r,s,o,i,l,c,u;const n=ja(e,t);return Object.assign({},e,{localeIndex:n,lang:((r=e.locales[n])==null?void 0:r.lang)??e.lang,dir:((s=e.locales[n])==null?void 0:s.dir)??e.dir,title:((o=e.locales[n])==null?void 0:o.title)??e.title,titleTemplate:((i=e.locales[n])==null?void 0:i.titleTemplate)??e.titleTemplate,description:((l=e.locales[n])==null?void 0:l.description)??e.description,head:Ti(e.head,((c=e.locales[n])==null?void 0:c.head)??[]),themeConfig:{...e.themeConfig,...(u=e.locales[n])==null?void 0:u.themeConfig}})}function Si(e,t){const n=t.title||e.title,r=t.titleTemplate??e.titleTemplate;if(typeof r=="string"&&r.includes(":title"))return r.replace(/:title/g,n);const s=Da(e.title,r);return n===s.slice(3)?n:`${n}${s}`}function Da(e,t){return t===!1?"":t===!0||t===void 0?` | ${e}`:e===t?"":` | ${t}`}function Ua(e,t){const[n,r]=t;if(n!=="meta")return!1;const s=Object.entries(r)[0];return s==null?!1:e.some(([o,i])=>o===n&&i[s[0]]===s[1])}function Ti(e,t){return[...e.filter(n=>!Ua(t,n)),...t]}const Ba=/[\u0000-\u001F"#$&*+,:;<=>?[\]^`{|}\u007F]/g,ka=/^[a-z]:/i;function ks(e){const t=ka.exec(e),n=t?t[0]:"";return n+e.slice(n.length).replace(Ba,"_").replace(/(^|\/)_+(?=[^/]*$)/,"$1")}const rr=new Set;function Ka(e){if(rr.size===0){const n=typeof process=="object"&&(nr==null?void 0:nr.VITE_EXTRA_EXTENSIONS)||(tr==null?void 0:tr.VITE_EXTRA_EXTENSIONS)||"";("3g2,3gp,aac,ai,apng,au,avif,bin,bmp,cer,class,conf,crl,css,csv,dll,doc,eps,epub,exe,gif,gz,ics,ief,jar,jpe,jpeg,jpg,js,json,jsonld,m4a,man,mid,midi,mjs,mov,mp2,mp3,mp4,mpe,mpeg,mpg,mpp,oga,ogg,ogv,ogx,opus,otf,p10,p7c,p7m,p7s,pdf,png,ps,qt,roff,rtf,rtx,ser,svg,t,tif,tiff,tr,ts,tsv,ttf,txt,vtt,wav,weba,webm,webp,woff,woff2,xhtml,xml,yaml,yml,zip"+(n&&typeof n=="string"?","+n:"")).split(",").forEach(r=>rr.add(r))}const t=e.split(".").pop();return t==null||!rr.has(t.toLowerCase())}function Hu(e){return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const Wa=Symbol(),ft=Fr(da);function ju(e){const t=se(()=>Va(ft.value,e.data.relativePath)),n=t.value.appearance,r=n==="force-dark"?oe(!0):n?La({storageKey:Ia,initialValue:()=>n==="dark"?"dark":"auto",...typeof n=="object"?n:{}}):oe(!1),s=oe(pe?location.hash:"");return pe&&window.addEventListener("hashchange",()=>{s.value=location.hash}),$e(()=>e.data,()=>{s.value=pe?location.hash:""}),{site:t,theme:se(()=>t.value.themeConfig),page:se(()=>e.data),frontmatter:se(()=>e.data.frontmatter),params:se(()=>e.data.params),lang:se(()=>t.value.lang),dir:se(()=>e.data.frontmatter.dir||t.value.dir),localeIndex:se(()=>t.value.localeIndex||"root"),title:se(()=>Si(t.value,e.data)),description:se(()=>e.data.description||t.value.description),isDark:r,hash:se(()=>s.value)}}function qa(){const e=St(Wa);if(!e)throw new Error("vitepress data not properly injected in app");return e}function Ga(e,t){return`${e}${t}`.replace(/\/+/g,"/")}function Ks(e){return Ei.test(e)||!e.startsWith("/")?e:Ga(ft.value.base,e)}function Xa(e){let t=e.replace(/\.html$/,"");if(t=decodeURIComponent(t),t=t.replace(/\/$/,"/index"),pe){const n="/";t=ks(t.slice(n.length).replace(/\//g,"_")||"index")+".md";let r=__VP_HASH_MAP__[t.toLowerCase()];if(r||(t=t.endsWith("_index.md")?t.slice(0,-9)+".md":t.slice(0,-3)+"_index.md",r=__VP_HASH_MAP__[t.toLowerCase()]),!r)return null;t=`${n}assets/${t}.${r}.js`}else t=`./${ks(t.slice(1).replace(/\//g,"_"))}.md.js`;return t}let mn=[];function Vu(e){mn.push(e),Fn(()=>{mn=mn.filter(t=>t!==e)})}function Ya(){let e=ft.value.scrollOffset,t=0,n=24;if(typeof e=="object"&&"padding"in e&&(n=e.padding,e=e.selector),typeof e=="number")t=e;else if(typeof e=="string")t=Ws(e,n);else if(Array.isArray(e))for(const r of e){const s=Ws(r,n);if(s){t=s;break}}return t}function Ws(e,t){const n=document.querySelector(e);if(!n)return 0;const r=n.getBoundingClientRect().bottom;return r<0?0:r+t}const za=Symbol(),xi="http://a.com",Ja=()=>({path:"/",component:null,data:Ci});function Du(e,t){const n=On(Ja()),r={route:n,go:s};async function s(l=pe?location.href:"/"){var c,u;l=sr(l),await((c=r.onBeforeRouteChange)==null?void 0:c.call(r,l))!==!1&&(pe&&l!==sr(location.href)&&(history.replaceState({scrollPosition:window.scrollY},""),history.pushState({},"",l)),await i(l),await((u=r.onAfterRouteChanged)==null?void 0:u.call(r,l)))}let o=null;async function i(l,c=0,u=!1){var m;if(await((m=r.onBeforePageLoad)==null?void 0:m.call(r,l))===!1)return;const f=new URL(l,xi),h=o=f.pathname;try{let _=await e(h);if(!_)throw new Error(`Page not found: ${h}`);if(o===h){o=null;const{default:w,__pageData:O}=_;if(!w)throw new Error(`Invalid route component: ${w}`);n.path=pe?h:Ks(h),n.component=hn(w),n.data=hn(O),pe&&Mn(()=>{let U=ft.value.base+O.relativePath.replace(/(?:(^|\/)index)?\.md$/,"$1");if(!ft.value.cleanUrls&&!U.endsWith("/")&&(U+=".html"),U!==f.pathname&&(f.pathname=U,l=U+f.search+f.hash,history.replaceState({},"",l)),f.hash&&!c){let W=null;try{W=document.getElementById(decodeURIComponent(f.hash).slice(1))}catch(H){console.warn(H)}if(W){qs(W,f.hash);return}}window.scrollTo(0,c)})}}catch(_){if(!/fetch|Page not found/.test(_.message)&&!/^\/404(\.html|\/)?$/.test(l)&&console.error(_),!u)try{const w=await fetch(ft.value.base+"hashmap.json");window.__VP_HASH_MAP__=await w.json(),await i(l,c,!0);return}catch{}if(o===h){o=null,n.path=pe?h:Ks(h),n.component=t?hn(t):null;const w=pe?h.replace(/(^|\/)$/,"$1index").replace(/(\.html)?$/,".md").replace(/^\//,""):"404.md";n.data={...Ci,relativePath:w}}}}return pe&&(history.state===null&&history.replaceState({},""),window.addEventListener("click",l=>{if(l.defaultPrevented||!(l.target instanceof Element)||l.target.closest("button")||l.button!==0||l.ctrlKey||l.shiftKey||l.altKey||l.metaKey)return;const c=l.target.closest("a");if(!c||c.closest(".vp-raw")||c.hasAttribute("download")||c.hasAttribute("target"))return;const u=c.getAttribute("href")??(c instanceof SVGAElement?c.getAttribute("xlink:href"):null);if(u==null)return;const{href:f,origin:h,pathname:m,hash:_,search:w}=new URL(u,c.baseURI),O=new URL(location.href);h===O.origin&&Ka(m)&&(l.preventDefault(),m===O.pathname&&w===O.search?(_!==O.hash&&(history.pushState({},"",f),window.dispatchEvent(new HashChangeEvent("hashchange",{oldURL:O.href,newURL:f}))),_?qs(c,_,c.classList.contains("header-anchor")):window.scrollTo(0,0)):s(f))},{capture:!0}),window.addEventListener("popstate",async l=>{var c;l.state!==null&&(await i(sr(location.href),l.state&&l.state.scrollPosition||0),(c=r.onAfterRouteChanged)==null||c.call(r,location.href))}),window.addEventListener("hashchange",l=>{l.preventDefault()})),r}function Qa(){const e=St(za);if(!e)throw new Error("useRouter() is called without provider.");return e}function Ai(){return Qa().route}function qs(e,t,n=!1){let r=null;try{r=e.classList.contains("header-anchor")?e:document.getElementById(decodeURIComponent(t).slice(1))}catch(s){console.warn(s)}if(r){let s=function(){!n||Math.abs(i-window.scrollY)>window.innerHeight?window.scrollTo(0,i):window.scrollTo({left:0,top:i,behavior:"smooth"})};const o=parseInt(window.getComputedStyle(r).paddingTop,10),i=window.scrollY+r.getBoundingClientRect().top-Ya()+o;requestAnimationFrame(s)}}function sr(e){const t=new URL(e,xi);return t.pathname=t.pathname.replace(/(^|\/)index(\.html)?$/,"$1"),ft.value.cleanUrls?t.pathname=t.pathname.replace(/\.html$/,""):!t.pathname.endsWith("/")&&!t.pathname.endsWith(".html")&&(t.pathname+=".html"),t.pathname+t.search+t.hash}const or=()=>mn.forEach(e=>e()),Uu=Hr({name:"VitePressContent",props:{as:{type:[Object,String],default:"div"}},setup(e){const t=Ai(),{site:n}=qa();return()=>vr(e.as,n.value.contentProps??{style:{position:"relative"}},[t.component?vr(t.component,{onVnodeMounted:or,onVnodeUpdated:or,onVnodeUnmounted:or}):"404 Page Not Found"])}}),Za="modulepreload",eu=function(e){return"/"+e},Gs={},Bu=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),i=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));s=Promise.all(n.map(l=>{if(l=eu(l),l in Gs)return;Gs[l]=!0;const c=l.endsWith(".css"),u=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${u}`))return;const f=document.createElement("link");if(f.rel=c?"stylesheet":Za,c||(f.as="script",f.crossOrigin=""),f.href=l,i&&f.setAttribute("nonce",i),document.head.appendChild(f),c)return new Promise((h,m)=>{f.addEventListener("load",h),f.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${l}`)))})}))}return s.then(()=>t()).catch(o=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=o,window.dispatchEvent(i),!i.defaultPrevented)throw o})},ku=Hr({setup(e,{slots:t}){const n=oe(!1);return At(()=>{n.value=!0}),()=>n.value&&t.default?t.default():null}});function Ku(){pe&&window.addEventListener("click",e=>{var n;const t=e.target;if(t.matches(".vp-code-group input")){const r=(n=t.parentElement)==null?void 0:n.parentElement;if(!r)return;const s=Array.from(r.querySelectorAll("input")).indexOf(t);if(s<0)return;const o=r.querySelector(".blocks");if(!o)return;const i=Array.from(o.children).find(u=>u.classList.contains("active"));if(!i)return;const l=o.children[s];if(!l||i===l)return;i.classList.remove("active"),l.classList.add("active");const c=r==null?void 0:r.querySelector(`label[for="${t.id}"]`);c==null||c.scrollIntoView({block:"nearest"})}})}function Wu(){if(pe){const e=new WeakMap;window.addEventListener("click",t=>{var r;const n=t.target;if(n.matches('div[class*="language-"] > button.copy')){const s=n.parentElement,o=(r=n.nextElementSibling)==null?void 0:r.nextElementSibling;if(!s||!o)return;const i=/language-(shellscript|shell|bash|sh|zsh)/.test(s.className),l=[".vp-copy-ignore",".diff.remove"],c=o.cloneNode(!0);c.querySelectorAll(l.join(",")).forEach(f=>f.remove());let u=c.textContent||"";i&&(u=u.replace(/^ *(\$|>) /gm,"").trim()),tu(u).then(()=>{n.classList.add("copied"),clearTimeout(e.get(n));const f=setTimeout(()=>{n.classList.remove("copied"),n.blur(),e.delete(n)},2e3);e.set(n,f)})}})}}async function tu(e){try{return navigator.clipboard.writeText(e)}catch{const t=document.createElement("textarea"),n=document.activeElement;t.value=e,t.setAttribute("readonly",""),t.style.contain="strict",t.style.position="absolute",t.style.left="-9999px",t.style.fontSize="12pt";const r=document.getSelection(),s=r?r.rangeCount>0&&r.getRangeAt(0):null;document.body.appendChild(t),t.select(),t.selectionStart=0,t.selectionEnd=e.length,document.execCommand("copy"),document.body.removeChild(t),s&&(r.removeAllRanges(),r.addRange(s)),n&&n.focus()}}function qu(e,t){let n=!0,r=[];const s=o=>{if(n){n=!1,o.forEach(l=>{const c=ir(l);for(const u of document.head.children)if(u.isEqualNode(c)){r.push(u);return}});return}const i=o.map(ir);r.forEach((l,c)=>{const u=i.findIndex(f=>f==null?void 0:f.isEqualNode(l??null));u!==-1?delete i[u]:(l==null||l.remove(),delete r[c])}),i.forEach(l=>l&&document.head.appendChild(l)),r=[...r,...i].filter(Boolean)};Br(()=>{const o=e.data,i=t.value,l=o&&o.description,c=o&&o.frontmatter.head||[],u=Si(i,o);u!==document.title&&(document.title=u);const f=l||i.description;let h=document.querySelector("meta[name=description]");h?h.getAttribute("content")!==f&&h.setAttribute("content",f):ir(["meta",{name:"description",content:f}]),s(Ti(i.head,ru(c)))})}function ir([e,t,n]){const r=document.createElement(e);for(const s in t)r.setAttribute(s,t[s]);return n&&(r.innerHTML=n),e==="script"&&!t.async&&(r.async=!1),r}function nu(e){return e[0]==="meta"&&e[1]&&e[1].name==="description"}function ru(e){return e.filter(t=>!nu(t))}const lr=new Set,Ri=()=>document.createElement("link"),su=e=>{const t=Ri();t.rel="prefetch",t.href=e,document.head.appendChild(t)},ou=e=>{const t=new XMLHttpRequest;t.open("GET",e,t.withCredentials=!0),t.send()};let un;const iu=pe&&(un=Ri())&&un.relList&&un.relList.supports&&un.relList.supports("prefetch")?su:ou;function Gu(){if(!pe||!window.IntersectionObserver)return;let e;if((e=navigator.connection)&&(e.saveData||/2g/.test(e.effectiveType)))return;const t=window.requestIdleCallback||setTimeout;let n=null;const r=()=>{n&&n.disconnect(),n=new IntersectionObserver(o=>{o.forEach(i=>{if(i.isIntersecting){const l=i.target;n.unobserve(l);const{pathname:c}=l;if(!lr.has(c)){lr.add(c);const u=Xa(c);u&&iu(u)}}})}),t(()=>{document.querySelectorAll("#app a").forEach(o=>{const{hostname:i,pathname:l}=new URL(o.href instanceof SVGAnimatedString?o.href.animVal:o.href,o.baseURI),c=l.match(/\.\w+$/);c&&c[0]!==".html"||o.target!=="_blank"&&i===location.hostname&&(l!==location.pathname?n.observe(o):lr.add(l))})})};At(r);const s=Ai();$e(()=>s.path,r),Fn(()=>{n&&n.disconnect()})}export{gu as $,_u as A,Hl as B,Ya as C,fu as D,hu as E,be as F,Fr as G,Vu as H,le as I,du as J,Ei as K,Ai as L,xc as M,St as N,$u as O,Tr as P,Mu as Q,Mn as R,Fu as S,ci as T,pe as U,Ln as V,uu as W,Bu as X,Pu as Y,Jl as Z,Au as _,si as a,Su as a0,Oo as a1,Cu as a2,mu as a3,Pl as a4,Il as a5,au as a6,Eu as a7,he as a8,vu as a9,Tu as aA,Hu as aB,qu as aa,za as ab,ju as ac,Wa as ad,Uu as ae,ku as af,ft as ag,xu as ah,Du as ai,Xa as aj,Gu as ak,Wu as al,Ku as am,vr as an,He as ao,yi as ap,Ru as aq,Kr as ar,Lu as as,Nu as at,Iu as au,Ou as av,Qa as aw,xt as ax,yu as ay,hn as az,ti as b,bu as c,Hr as d,wu as e,Ka as f,Ks as g,se as h,Ha as i,ri as j,bo as k,cu as l,$a as m,xr as n,Zo as o,lu as p,_i as q,pu as r,oe as s,ki as t,qa as u,$e as v,Rl as w,Br as x,At as y,Fn as z}; diff --git a/assets/chunks/framework.jrU0lkHV.js b/assets/chunks/framework.jrU0lkHV.js new file mode 100644 index 00000000..549ec157 --- /dev/null +++ b/assets/chunks/framework.jrU0lkHV.js @@ -0,0 +1,18 @@ +/** +* @vue/shared v3.5.12 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**//*! #__NO_SIDE_EFFECTS__ */function Ns(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Z={},Et=[],ke=()=>{},Uo=()=>!1,Zt=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Fs=e=>e.startsWith("onUpdate:"),ce=Object.assign,Hs=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},ko=Object.prototype.hasOwnProperty,z=(e,t)=>ko.call(e,t),K=Array.isArray,Tt=e=>In(e)==="[object Map]",si=e=>In(e)==="[object Set]",q=e=>typeof e=="function",re=e=>typeof e=="string",Ye=e=>typeof e=="symbol",ne=e=>e!==null&&typeof e=="object",ri=e=>(ne(e)||q(e))&&q(e.then)&&q(e.catch),ii=Object.prototype.toString,In=e=>ii.call(e),Bo=e=>In(e).slice(8,-1),oi=e=>In(e)==="[object Object]",$s=e=>re(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ct=Ns(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Nn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Wo=/-(\w)/g,Le=Nn(e=>e.replace(Wo,(t,n)=>n?n.toUpperCase():"")),Ko=/\B([A-Z])/g,st=Nn(e=>e.replace(Ko,"-$1").toLowerCase()),Fn=Nn(e=>e.charAt(0).toUpperCase()+e.slice(1)),vn=Nn(e=>e?`on${Fn(e)}`:""),tt=(e,t)=>!Object.is(e,t),bn=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},vs=e=>{const t=parseFloat(e);return isNaN(t)?e:t},qo=e=>{const t=re(e)?Number(e):NaN;return isNaN(t)?e:t};let ar;const Hn=()=>ar||(ar=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ds(e){if(K(e)){const t={};for(let n=0;n{if(n){const s=n.split(Yo);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function js(e){let t="";if(re(e))t=e;else if(K(e))for(let n=0;n!!(e&&e.__v_isRef===!0),Zo=e=>re(e)?e:e==null?"":K(e)||ne(e)&&(e.toString===ii||!q(e.toString))?ai(e)?Zo(e.value):JSON.stringify(e,fi,2):String(e),fi=(e,t)=>ai(t)?fi(e,t.value):Tt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],i)=>(n[zn(s,i)+" =>"]=r,n),{})}:si(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>zn(n))}:Ye(t)?zn(t):ne(t)&&!K(t)&&!oi(t)?String(t):t,zn=(e,t="")=>{var n;return Ye(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** +* @vue/reactivity v3.5.12 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let _e;class el{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=_e,!t&&_e&&(this.index=(_e.scopes||(_e.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t0)return;if(jt){let t=jt;for(jt=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Dt;){let t=Dt;for(Dt=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=n}}if(e)throw e}function gi(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function mi(e){let t,n=e.depsTail,s=n;for(;s;){const r=s.prevDep;s.version===-1?(s===n&&(n=r),ks(s),nl(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=r}e.deps=t,e.depsTail=n}function bs(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(yi(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function yi(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Kt))return;e.globalVersion=Kt;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!bs(e)){e.flags&=-3;return}const n=te,s=Ne;te=e,Ne=!0;try{gi(e);const r=e.fn(e._value);(t.version===0||tt(r,e._value))&&(e._value=r,t.version++)}catch(r){throw t.version++,r}finally{te=n,Ne=s,mi(e),e.flags&=-3}}function ks(e,t=!1){const{dep:n,prevSub:s,nextSub:r}=e;if(s&&(s.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)ks(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function nl(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Ne=!0;const vi=[];function rt(){vi.push(Ne),Ne=!1}function it(){const e=vi.pop();Ne=e===void 0?!0:e}function fr(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=te;te=void 0;try{t()}finally{te=n}}}let Kt=0;class sl{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class $n{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!te||!Ne||te===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==te)n=this.activeLink=new sl(te,this),te.deps?(n.prevDep=te.depsTail,te.depsTail.nextDep=n,te.depsTail=n):te.deps=te.depsTail=n,bi(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=te.depsTail,n.nextDep=void 0,te.depsTail.nextDep=n,te.depsTail=n,te.deps===n&&(te.deps=s)}return n}trigger(t){this.version++,Kt++,this.notify(t)}notify(t){Vs();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Us()}}}function bi(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let s=t.deps;s;s=s.nextDep)bi(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Tn=new WeakMap,dt=Symbol(""),_s=Symbol(""),qt=Symbol("");function me(e,t,n){if(Ne&&te){let s=Tn.get(e);s||Tn.set(e,s=new Map);let r=s.get(n);r||(s.set(n,r=new $n),r.map=s,r.key=n),r.track()}}function qe(e,t,n,s,r,i){const o=Tn.get(e);if(!o){Kt++;return}const l=c=>{c&&c.trigger()};if(Vs(),t==="clear")o.forEach(l);else{const c=K(e),f=c&&$s(n);if(c&&n==="length"){const a=Number(s);o.forEach((d,y)=>{(y==="length"||y===qt||!Ye(y)&&y>=a)&&l(d)})}else switch((n!==void 0||o.has(void 0))&&l(o.get(n)),f&&l(o.get(qt)),t){case"add":c?f&&l(o.get("length")):(l(o.get(dt)),Tt(e)&&l(o.get(_s)));break;case"delete":c||(l(o.get(dt)),Tt(e)&&l(o.get(_s)));break;case"set":Tt(e)&&l(o.get(dt));break}}Us()}function rl(e,t){const n=Tn.get(e);return n&&n.get(t)}function bt(e){const t=J(e);return t===e?t:(me(t,"iterate",qt),Pe(e)?t:t.map(ye))}function Dn(e){return me(e=J(e),"iterate",qt),e}const il={__proto__:null,[Symbol.iterator](){return Zn(this,Symbol.iterator,ye)},concat(...e){return bt(this).concat(...e.map(t=>K(t)?bt(t):t))},entries(){return Zn(this,"entries",e=>(e[1]=ye(e[1]),e))},every(e,t){return We(this,"every",e,t,void 0,arguments)},filter(e,t){return We(this,"filter",e,t,n=>n.map(ye),arguments)},find(e,t){return We(this,"find",e,t,ye,arguments)},findIndex(e,t){return We(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return We(this,"findLast",e,t,ye,arguments)},findLastIndex(e,t){return We(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return We(this,"forEach",e,t,void 0,arguments)},includes(...e){return es(this,"includes",e)},indexOf(...e){return es(this,"indexOf",e)},join(e){return bt(this).join(e)},lastIndexOf(...e){return es(this,"lastIndexOf",e)},map(e,t){return We(this,"map",e,t,void 0,arguments)},pop(){return Ft(this,"pop")},push(...e){return Ft(this,"push",e)},reduce(e,...t){return ur(this,"reduce",e,t)},reduceRight(e,...t){return ur(this,"reduceRight",e,t)},shift(){return Ft(this,"shift")},some(e,t){return We(this,"some",e,t,void 0,arguments)},splice(...e){return Ft(this,"splice",e)},toReversed(){return bt(this).toReversed()},toSorted(e){return bt(this).toSorted(e)},toSpliced(...e){return bt(this).toSpliced(...e)},unshift(...e){return Ft(this,"unshift",e)},values(){return Zn(this,"values",ye)}};function Zn(e,t,n){const s=Dn(e),r=s[t]();return s!==e&&!Pe(e)&&(r._next=r.next,r.next=()=>{const i=r._next();return i.value&&(i.value=n(i.value)),i}),r}const ol=Array.prototype;function We(e,t,n,s,r,i){const o=Dn(e),l=o!==e&&!Pe(e),c=o[t];if(c!==ol[t]){const d=c.apply(e,i);return l?ye(d):d}let f=n;o!==e&&(l?f=function(d,y){return n.call(this,ye(d),y,e)}:n.length>2&&(f=function(d,y){return n.call(this,d,y,e)}));const a=c.call(o,f,s);return l&&r?r(a):a}function ur(e,t,n,s){const r=Dn(e);let i=n;return r!==e&&(Pe(e)?n.length>3&&(i=function(o,l,c){return n.call(this,o,l,c,e)}):i=function(o,l,c){return n.call(this,o,ye(l),c,e)}),r[t](i,...s)}function es(e,t,n){const s=J(e);me(s,"iterate",qt);const r=s[t](...n);return(r===-1||r===!1)&&Ks(n[0])?(n[0]=J(n[0]),s[t](...n)):r}function Ft(e,t,n=[]){rt(),Vs();const s=J(e)[t].apply(e,n);return Us(),it(),s}const ll=Ns("__proto__,__v_isRef,__isVue"),_i=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ye));function cl(e){Ye(e)||(e=String(e));const t=J(this);return me(t,"has",e),t.hasOwnProperty(e)}class wi{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){const r=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return i;if(n==="__v_raw")return s===(r?i?vl:Ti:i?Ei:xi).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const o=K(t);if(!r){let c;if(o&&(c=il[n]))return c;if(n==="hasOwnProperty")return cl}const l=Reflect.get(t,n,fe(t)?t:s);return(Ye(n)?_i.has(n):ll(n))||(r||me(t,"get",n),i)?l:fe(l)?o&&$s(n)?l:l.value:ne(l)?r?Vn(l):jn(l):l}}class Si extends wi{constructor(t=!1){super(!1,t)}set(t,n,s,r){let i=t[n];if(!this._isShallow){const c=yt(i);if(!Pe(s)&&!yt(s)&&(i=J(i),s=J(s)),!K(t)&&fe(i)&&!fe(s))return c?!1:(i.value=s,!0)}const o=K(t)&&$s(n)?Number(n)e,ln=e=>Reflect.getPrototypeOf(e);function hl(e,t,n){return function(...s){const r=this.__v_raw,i=J(r),o=Tt(i),l=e==="entries"||e===Symbol.iterator&&o,c=e==="keys"&&o,f=r[e](...s),a=n?ws:t?Ss:ye;return!t&&me(i,"iterate",c?_s:dt),{next(){const{value:d,done:y}=f.next();return y?{value:d,done:y}:{value:l?[a(d[0]),a(d[1])]:a(d),done:y}},[Symbol.iterator](){return this}}}}function cn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function pl(e,t){const n={get(r){const i=this.__v_raw,o=J(i),l=J(r);e||(tt(r,l)&&me(o,"get",r),me(o,"get",l));const{has:c}=ln(o),f=t?ws:e?Ss:ye;if(c.call(o,r))return f(i.get(r));if(c.call(o,l))return f(i.get(l));i!==o&&i.get(r)},get size(){const r=this.__v_raw;return!e&&me(J(r),"iterate",dt),Reflect.get(r,"size",r)},has(r){const i=this.__v_raw,o=J(i),l=J(r);return e||(tt(r,l)&&me(o,"has",r),me(o,"has",l)),r===l?i.has(r):i.has(r)||i.has(l)},forEach(r,i){const o=this,l=o.__v_raw,c=J(l),f=t?ws:e?Ss:ye;return!e&&me(c,"iterate",dt),l.forEach((a,d)=>r.call(i,f(a),f(d),o))}};return ce(n,e?{add:cn("add"),set:cn("set"),delete:cn("delete"),clear:cn("clear")}:{add(r){!t&&!Pe(r)&&!yt(r)&&(r=J(r));const i=J(this);return ln(i).has.call(i,r)||(i.add(r),qe(i,"add",r,r)),this},set(r,i){!t&&!Pe(i)&&!yt(i)&&(i=J(i));const o=J(this),{has:l,get:c}=ln(o);let f=l.call(o,r);f||(r=J(r),f=l.call(o,r));const a=c.call(o,r);return o.set(r,i),f?tt(i,a)&&qe(o,"set",r,i):qe(o,"add",r,i),this},delete(r){const i=J(this),{has:o,get:l}=ln(i);let c=o.call(i,r);c||(r=J(r),c=o.call(i,r)),l&&l.call(i,r);const f=i.delete(r);return c&&qe(i,"delete",r,void 0),f},clear(){const r=J(this),i=r.size!==0,o=r.clear();return i&&qe(r,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=hl(r,e,t)}),n}function Bs(e,t){const n=pl(e,t);return(s,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(z(n,r)&&r in s?n:s,r,i)}const gl={get:Bs(!1,!1)},ml={get:Bs(!1,!0)},yl={get:Bs(!0,!1)};const xi=new WeakMap,Ei=new WeakMap,Ti=new WeakMap,vl=new WeakMap;function bl(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function _l(e){return e.__v_skip||!Object.isExtensible(e)?0:bl(Bo(e))}function jn(e){return yt(e)?e:Ws(e,!1,fl,gl,xi)}function wl(e){return Ws(e,!1,dl,ml,Ei)}function Vn(e){return Ws(e,!0,ul,yl,Ti)}function Ws(e,t,n,s,r){if(!ne(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const o=_l(e);if(o===0)return e;const l=new Proxy(e,o===2?s:n);return r.set(e,l),l}function ht(e){return yt(e)?ht(e.__v_raw):!!(e&&e.__v_isReactive)}function yt(e){return!!(e&&e.__v_isReadonly)}function Pe(e){return!!(e&&e.__v_isShallow)}function Ks(e){return e?!!e.__v_raw:!1}function J(e){const t=e&&e.__v_raw;return t?J(t):e}function _n(e){return!z(e,"__v_skip")&&Object.isExtensible(e)&&li(e,"__v_skip",!0),e}const ye=e=>ne(e)?jn(e):e,Ss=e=>ne(e)?Vn(e):e;function fe(e){return e?e.__v_isRef===!0:!1}function oe(e){return Ci(e,!1)}function qs(e){return Ci(e,!0)}function Ci(e,t){return fe(e)?e:new Sl(e,t)}class Sl{constructor(t,n){this.dep=new $n,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:J(t),this._value=n?t:ye(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||Pe(t)||yt(t);t=s?t:J(t),tt(t,n)&&(this._rawValue=t,this._value=s?t:ye(t),this.dep.trigger())}}function Ai(e){return fe(e)?e.value:e}const xl={get:(e,t,n)=>t==="__v_raw"?e:Ai(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return fe(r)&&!fe(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function Ri(e){return ht(e)?e:new Proxy(e,xl)}class El{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new $n,{get:s,set:r}=t(n.track.bind(n),n.trigger.bind(n));this._get=s,this._set=r}get value(){return this._value=this._get()}set value(t){this._set(t)}}function Tl(e){return new El(e)}class Cl{constructor(t,n,s){this._object=t,this._key=n,this._defaultValue=s,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return rl(J(this._object),this._key)}}class Al{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Rl(e,t,n){return fe(e)?e:q(e)?new Al(e):ne(e)&&arguments.length>1?Ol(e,t,n):oe(e)}function Ol(e,t,n){const s=e[t];return fe(s)?s:new Cl(e,t,n)}class Ml{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new $n(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Kt-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&te!==this)return pi(this,!0),!0}get value(){const t=this.dep.track();return yi(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Pl(e,t,n=!1){let s,r;return q(e)?s=e:(s=e.get,r=e.set),new Ml(s,r,n)}const an={},Cn=new WeakMap;let ft;function Ll(e,t=!1,n=ft){if(n){let s=Cn.get(n);s||Cn.set(n,s=[]),s.push(e)}}function Il(e,t,n=Z){const{immediate:s,deep:r,once:i,scheduler:o,augmentJob:l,call:c}=n,f=g=>r?g:Pe(g)||r===!1||r===0?Ge(g,1):Ge(g);let a,d,y,v,S=!1,b=!1;if(fe(e)?(d=()=>e.value,S=Pe(e)):ht(e)?(d=()=>f(e),S=!0):K(e)?(b=!0,S=e.some(g=>ht(g)||Pe(g)),d=()=>e.map(g=>{if(fe(g))return g.value;if(ht(g))return f(g);if(q(g))return c?c(g,2):g()})):q(e)?t?d=c?()=>c(e,2):e:d=()=>{if(y){rt();try{y()}finally{it()}}const g=ft;ft=a;try{return c?c(e,3,[v]):e(v)}finally{ft=g}}:d=ke,t&&r){const g=d,M=r===!0?1/0:r;d=()=>Ge(g(),M)}const B=ui(),N=()=>{a.stop(),B&&Hs(B.effects,a)};if(i&&t){const g=t;t=(...M)=>{g(...M),N()}}let j=b?new Array(e.length).fill(an):an;const p=g=>{if(!(!(a.flags&1)||!a.dirty&&!g))if(t){const M=a.run();if(r||S||(b?M.some((F,$)=>tt(F,j[$])):tt(M,j))){y&&y();const F=ft;ft=a;try{const $=[M,j===an?void 0:b&&j[0]===an?[]:j,v];c?c(t,3,$):t(...$),j=M}finally{ft=F}}}else a.run()};return l&&l(p),a=new di(d),a.scheduler=o?()=>o(p,!1):p,v=g=>Ll(g,!1,a),y=a.onStop=()=>{const g=Cn.get(a);if(g){if(c)c(g,4);else for(const M of g)M();Cn.delete(a)}},t?s?p(!0):j=a.run():o?o(p.bind(null,!0),!0):a.run(),N.pause=a.pause.bind(a),N.resume=a.resume.bind(a),N.stop=N,N}function Ge(e,t=1/0,n){if(t<=0||!ne(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,fe(e))Ge(e.value,t,n);else if(K(e))for(let s=0;s{Ge(s,t,n)});else if(oi(e)){for(const s in e)Ge(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&Ge(e[s],t,n)}return e}/** +* @vue/runtime-core v3.5.12 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function en(e,t,n,s){try{return s?e(...s):e()}catch(r){tn(r,t,n)}}function He(e,t,n,s){if(q(e)){const r=en(e,t,n,s);return r&&ri(r)&&r.catch(i=>{tn(i,t,n)}),r}if(K(e)){const r=[];for(let i=0;i>>1,r=we[s],i=Gt(r);i=Gt(n)?we.push(e):we.splice(Fl(t),0,e),e.flags|=1,Mi()}}function Mi(){An||(An=Oi.then(Pi))}function Hl(e){K(e)?At.push(...e):Qe&&e.id===-1?Qe.splice(wt+1,0,e):e.flags&1||(At.push(e),e.flags|=1),Mi()}function dr(e,t,n=Ve+1){for(;nGt(n)-Gt(s));if(At.length=0,Qe){Qe.push(...t);return}for(Qe=t,wt=0;wte.id==null?e.flags&2?-1:1/0:e.id;function Pi(e){try{for(Ve=0;Ve{s._d&&Cr(-1);const i=On(t);let o;try{o=e(...r)}finally{On(i),s._d&&Cr(1)}return o};return s._n=!0,s._c=!0,s._d=!0,s}function bf(e,t){if(de===null)return e;const n=Gn(de),s=e.dirs||(e.dirs=[]);for(let r=0;re.__isTeleport,Vt=e=>e&&(e.disabled||e.disabled===""),Dl=e=>e&&(e.defer||e.defer===""),hr=e=>typeof SVGElement<"u"&&e instanceof SVGElement,pr=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,xs=(e,t)=>{const n=e&&e.to;return re(n)?t?t(n):null:n},jl={name:"Teleport",__isTeleport:!0,process(e,t,n,s,r,i,o,l,c,f){const{mc:a,pc:d,pbc:y,o:{insert:v,querySelector:S,createText:b,createComment:B}}=f,N=Vt(t.props);let{shapeFlag:j,children:p,dynamicChildren:g}=t;if(e==null){const M=t.el=b(""),F=t.anchor=b("");v(M,n,s),v(F,n,s);const $=(R,_)=>{j&16&&(r&&r.isCE&&(r.ce._teleportTarget=R),a(p,R,_,r,i,o,l,c))},V=()=>{const R=t.target=xs(t.props,S),_=Fi(R,t,b,v);R&&(o!=="svg"&&hr(R)?o="svg":o!=="mathml"&&pr(R)&&(o="mathml"),N||($(R,_),wn(t,!1)))};N&&($(n,F),wn(t,!0)),Dl(t.props)?xe(V,i):V()}else{t.el=e.el,t.targetStart=e.targetStart;const M=t.anchor=e.anchor,F=t.target=e.target,$=t.targetAnchor=e.targetAnchor,V=Vt(e.props),R=V?n:F,_=V?M:$;if(o==="svg"||hr(F)?o="svg":(o==="mathml"||pr(F))&&(o="mathml"),g?(y(e.dynamicChildren,g,R,r,i,o,l),Qs(e,t,!0)):c||d(e,t,R,_,r,i,o,l,!1),N)V?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):fn(t,n,M,f,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const I=t.target=xs(t.props,S);I&&fn(t,I,null,f,0)}else V&&fn(t,F,$,f,1);wn(t,N)}},remove(e,t,n,{um:s,o:{remove:r}},i){const{shapeFlag:o,children:l,anchor:c,targetStart:f,targetAnchor:a,target:d,props:y}=e;if(d&&(r(f),r(a)),i&&r(c),o&16){const v=i||!Vt(y);for(let S=0;S{e.isMounted=!0}),ki(()=>{e.isUnmounting=!0}),e}const Re=[Function,Array],Hi={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Re,onEnter:Re,onAfterEnter:Re,onEnterCancelled:Re,onBeforeLeave:Re,onLeave:Re,onAfterLeave:Re,onLeaveCancelled:Re,onBeforeAppear:Re,onAppear:Re,onAfterAppear:Re,onAppearCancelled:Re},$i=e=>{const t=e.subTree;return t.component?$i(t.component):t},kl={name:"BaseTransition",props:Hi,setup(e,{slots:t}){const n=qn(),s=Ul();return()=>{const r=t.default&&Vi(t.default(),!0);if(!r||!r.length)return;const i=Di(r),o=J(e),{mode:l}=o;if(s.isLeaving)return ts(i);const c=gr(i);if(!c)return ts(i);let f=Es(c,o,s,n,y=>f=y);c.type!==ve&&Yt(c,f);const a=n.subTree,d=a&&gr(a);if(d&&d.type!==ve&&!ut(c,d)&&$i(n).type!==ve){const y=Es(d,o,s,n);if(Yt(d,y),l==="out-in"&&c.type!==ve)return s.isLeaving=!0,y.afterLeave=()=>{s.isLeaving=!1,n.job.flags&8||n.update(),delete y.afterLeave},ts(i);l==="in-out"&&c.type!==ve&&(y.delayLeave=(v,S,b)=>{const B=ji(s,d);B[String(d.key)]=d,v[Ze]=()=>{S(),v[Ze]=void 0,delete f.delayedLeave},f.delayedLeave=b})}return i}}};function Di(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==ve){t=n;break}}return t}const Bl=kl;function ji(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function Es(e,t,n,s,r){const{appear:i,mode:o,persisted:l=!1,onBeforeEnter:c,onEnter:f,onAfterEnter:a,onEnterCancelled:d,onBeforeLeave:y,onLeave:v,onAfterLeave:S,onLeaveCancelled:b,onBeforeAppear:B,onAppear:N,onAfterAppear:j,onAppearCancelled:p}=t,g=String(e.key),M=ji(n,e),F=(R,_)=>{R&&He(R,s,9,_)},$=(R,_)=>{const I=_[1];F(R,_),K(R)?R.every(E=>E.length<=1)&&I():R.length<=1&&I()},V={mode:o,persisted:l,beforeEnter(R){let _=c;if(!n.isMounted)if(i)_=B||c;else return;R[Ze]&&R[Ze](!0);const I=M[g];I&&ut(e,I)&&I.el[Ze]&&I.el[Ze](),F(_,[R])},enter(R){let _=f,I=a,E=d;if(!n.isMounted)if(i)_=N||f,I=j||a,E=p||d;else return;let W=!1;const se=R[un]=ae=>{W||(W=!0,ae?F(E,[R]):F(I,[R]),V.delayedLeave&&V.delayedLeave(),R[un]=void 0)};_?$(_,[R,se]):se()},leave(R,_){const I=String(e.key);if(R[un]&&R[un](!0),n.isUnmounting)return _();F(y,[R]);let E=!1;const W=R[Ze]=se=>{E||(E=!0,_(),se?F(b,[R]):F(S,[R]),R[Ze]=void 0,M[I]===e&&delete M[I])};M[I]=e,v?$(v,[R,W]):W()},clone(R){const _=Es(R,t,n,s,r);return r&&r(_),_}};return V}function ts(e){if(nn(e))return e=nt(e),e.children=null,e}function gr(e){if(!nn(e))return Ni(e.type)&&e.children?Di(e.children):e;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&q(n.default))return n.default()}}function Yt(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Yt(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Vi(e,t=!1,n){let s=[],r=0;for(let i=0;i1)for(let i=0;iMn(S,t&&(K(t)?t[b]:t),n,s,r));return}if(pt(s)&&!r)return;const i=s.shapeFlag&4?Gn(s.component):s.el,o=r?null:i,{i:l,r:c}=e,f=t&&t.r,a=l.refs===Z?l.refs={}:l.refs,d=l.setupState,y=J(d),v=d===Z?()=>!1:S=>z(y,S);if(f!=null&&f!==c&&(re(f)?(a[f]=null,v(f)&&(d[f]=null)):fe(f)&&(f.value=null)),q(c))en(c,l,12,[o,a]);else{const S=re(c),b=fe(c);if(S||b){const B=()=>{if(e.f){const N=S?v(c)?d[c]:a[c]:c.value;r?K(N)&&Hs(N,i):K(N)?N.includes(i)||N.push(i):S?(a[c]=[i],v(c)&&(d[c]=a[c])):(c.value=[i],e.k&&(a[e.k]=c.value))}else S?(a[c]=o,v(c)&&(d[c]=o)):b&&(c.value=o,e.k&&(a[e.k]=o))};o?(B.id=-1,xe(B,n)):B()}}}let mr=!1;const _t=()=>{mr||(console.error("Hydration completed but contains mismatches."),mr=!0)},Wl=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",Kl=e=>e.namespaceURI.includes("MathML"),dn=e=>{if(e.nodeType===1){if(Wl(e))return"svg";if(Kl(e))return"mathml"}},xt=e=>e.nodeType===8;function ql(e){const{mt:t,p:n,o:{patchProp:s,createText:r,nextSibling:i,parentNode:o,remove:l,insert:c,createComment:f}}=e,a=(p,g)=>{if(!g.hasChildNodes()){n(null,p,g),Rn(),g._vnode=p;return}d(g.firstChild,p,null,null,null),Rn(),g._vnode=p},d=(p,g,M,F,$,V=!1)=>{V=V||!!g.dynamicChildren;const R=xt(p)&&p.data==="[",_=()=>b(p,g,M,F,$,R),{type:I,ref:E,shapeFlag:W,patchFlag:se}=g;let ae=p.nodeType;g.el=p,se===-2&&(V=!1,g.dynamicChildren=null);let U=null;switch(I){case gt:ae!==3?g.children===""?(c(g.el=r(""),o(p),p),U=p):U=_():(p.data!==g.children&&(_t(),p.data=g.children),U=i(p));break;case ve:j(p)?(U=i(p),N(g.el=p.content.firstChild,p,M)):ae!==8||R?U=_():U=i(p);break;case kt:if(R&&(p=i(p),ae=p.nodeType),ae===1||ae===3){U=p;const Y=!g.children.length;for(let D=0;D{V=V||!!g.dynamicChildren;const{type:R,props:_,patchFlag:I,shapeFlag:E,dirs:W,transition:se}=g,ae=R==="input"||R==="option";if(ae||I!==-1){W&&Ue(g,null,M,"created");let U=!1;if(j(p)){U=io(null,se)&&M&&M.vnode.props&&M.vnode.props.appear;const D=p.content.firstChild;U&&se.beforeEnter(D),N(D,p,M),g.el=p=D}if(E&16&&!(_&&(_.innerHTML||_.textContent))){let D=v(p.firstChild,g,p,M,F,$,V);for(;D;){hn(p,1)||_t();const he=D;D=D.nextSibling,l(he)}}else if(E&8){let D=g.children;D[0]===` +`&&(p.tagName==="PRE"||p.tagName==="TEXTAREA")&&(D=D.slice(1)),p.textContent!==D&&(hn(p,0)||_t(),p.textContent=g.children)}if(_){if(ae||!V||I&48){const D=p.tagName.includes("-");for(const he in _)(ae&&(he.endsWith("value")||he==="indeterminate")||Zt(he)&&!Ct(he)||he[0]==="."||D)&&s(p,he,null,_[he],void 0,M)}else if(_.onClick)s(p,"onClick",null,_.onClick,void 0,M);else if(I&4&&ht(_.style))for(const D in _.style)_.style[D]}let Y;(Y=_&&_.onVnodeBeforeMount)&&Oe(Y,M,g),W&&Ue(g,null,M,"beforeMount"),((Y=_&&_.onVnodeMounted)||W||U)&&fo(()=>{Y&&Oe(Y,M,g),U&&se.enter(p),W&&Ue(g,null,M,"mounted")},F)}return p.nextSibling},v=(p,g,M,F,$,V,R)=>{R=R||!!g.dynamicChildren;const _=g.children,I=_.length;for(let E=0;E{const{slotScopeIds:R}=g;R&&($=$?$.concat(R):R);const _=o(p),I=v(i(p),g,_,M,F,$,V);return I&&xt(I)&&I.data==="]"?i(g.anchor=I):(_t(),c(g.anchor=f("]"),_,I),I)},b=(p,g,M,F,$,V)=>{if(hn(p.parentElement,1)||_t(),g.el=null,V){const I=B(p);for(;;){const E=i(p);if(E&&E!==I)l(E);else break}}const R=i(p),_=o(p);return l(p),n(null,g,_,R,M,F,dn(_),$),R},B=(p,g="[",M="]")=>{let F=0;for(;p;)if(p=i(p),p&&xt(p)&&(p.data===g&&F++,p.data===M)){if(F===0)return i(p);F--}return p},N=(p,g,M)=>{const F=g.parentNode;F&&F.replaceChild(p,g);let $=M;for(;$;)$.vnode.el===g&&($.vnode.el=$.subTree.el=p),$=$.parent},j=p=>p.nodeType===1&&p.tagName==="TEMPLATE";return[a,d]}const yr="data-allow-mismatch",Gl={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function hn(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(yr);)e=e.parentElement;const n=e&&e.getAttribute(yr);if(n==null)return!1;if(n==="")return!0;{const s=n.split(",");return t===0&&s.includes("children")?!0:n.split(",").includes(Gl[t])}}Hn().requestIdleCallback;Hn().cancelIdleCallback;function Yl(e,t){if(xt(e)&&e.data==="["){let n=1,s=e.nextSibling;for(;s;){if(s.nodeType===1){if(t(s)===!1)break}else if(xt(s))if(s.data==="]"){if(--n===0)break}else s.data==="["&&n++;s=s.nextSibling}}else t(e)}const pt=e=>!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function wf(e){q(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:s,delay:r=200,hydrate:i,timeout:o,suspensible:l=!0,onError:c}=e;let f=null,a,d=0;const y=()=>(d++,f=null,v()),v=()=>{let S;return f||(S=f=t().catch(b=>{if(b=b instanceof Error?b:new Error(String(b)),c)return new Promise((B,N)=>{c(b,()=>B(y()),()=>N(b),d+1)});throw b}).then(b=>S!==f&&f?f:(b&&(b.__esModule||b[Symbol.toStringTag]==="Module")&&(b=b.default),a=b,b)))};return Ys({name:"AsyncComponentWrapper",__asyncLoader:v,__asyncHydrate(S,b,B){const N=i?()=>{const j=i(B,p=>Yl(S,p));j&&(b.bum||(b.bum=[])).push(j)}:B;a?N():v().then(()=>!b.isUnmounted&&N())},get __asyncResolved(){return a},setup(){const S=ue;if(Xs(S),a)return()=>ns(a,S);const b=p=>{f=null,tn(p,S,13,!s)};if(l&&S.suspense||Mt)return v().then(p=>()=>ns(p,S)).catch(p=>(b(p),()=>s?le(s,{error:p}):null));const B=oe(!1),N=oe(),j=oe(!!r);return r&&setTimeout(()=>{j.value=!1},r),o!=null&&setTimeout(()=>{if(!B.value&&!N.value){const p=new Error(`Async component timed out after ${o}ms.`);b(p),N.value=p}},o),v().then(()=>{B.value=!0,S.parent&&nn(S.parent.vnode)&&S.parent.update()}).catch(p=>{b(p),N.value=p}),()=>{if(B.value&&a)return ns(a,S);if(N.value&&s)return le(s,{error:N.value});if(n&&!j.value)return le(n)}}})}function ns(e,t){const{ref:n,props:s,children:r,ce:i}=t.vnode,o=le(e,s,r);return o.ref=n,o.ce=i,delete t.vnode.ce,o}const nn=e=>e.type.__isKeepAlive;function Xl(e,t){Ui(e,"a",t)}function Jl(e,t){Ui(e,"da",t)}function Ui(e,t,n=ue){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(kn(t,s,n),n){let r=n.parent;for(;r&&r.parent;)nn(r.parent.vnode)&&zl(s,t,n,r),r=r.parent}}function zl(e,t,n,s){const r=kn(t,e,s,!0);Bn(()=>{Hs(s[t],r)},n)}function kn(e,t,n=ue,s=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{rt();const l=sn(n),c=He(t,n,e,o);return l(),it(),c});return s?r.unshift(i):r.push(i),i}}const Xe=e=>(t,n=ue)=>{(!Mt||e==="sp")&&kn(e,(...s)=>t(...s),n)},Ql=Xe("bm"),Lt=Xe("m"),Zl=Xe("bu"),ec=Xe("u"),ki=Xe("bum"),Bn=Xe("um"),tc=Xe("sp"),nc=Xe("rtg"),sc=Xe("rtc");function rc(e,t=ue){kn("ec",e,t)}const Bi="components";function Sf(e,t){return Ki(Bi,e,!0,t)||e}const Wi=Symbol.for("v-ndc");function xf(e){return re(e)?Ki(Bi,e,!1)||e:e||Wi}function Ki(e,t,n=!0,s=!1){const r=de||ue;if(r){const i=r.type;{const l=Bc(i,!1);if(l&&(l===t||l===Le(t)||l===Fn(Le(t))))return i}const o=vr(r[e]||i[e],t)||vr(r.appContext[e],t);return!o&&s?i:o}}function vr(e,t){return e&&(e[t]||e[Le(t)]||e[Fn(Le(t))])}function Ef(e,t,n,s){let r;const i=n,o=K(e);if(o||re(e)){const l=o&&ht(e);let c=!1;l&&(c=!Pe(e),e=Dn(e)),r=new Array(e.length);for(let f=0,a=e.length;ft(l,c,void 0,i));else{const l=Object.keys(e);r=new Array(l.length);for(let c=0,f=l.length;cJt(t)?!(t.type===ve||t.type===Se&&!qi(t.children)):!0)?e:null}function Cf(e,t){const n={};for(const s in e)n[/[A-Z]/.test(s)?`on:${s}`:vn(s)]=e[s];return n}const Ts=e=>e?mo(e)?Gn(e):Ts(e.parent):null,Ut=ce(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Ts(e.parent),$root:e=>Ts(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Js(e),$forceUpdate:e=>e.f||(e.f=()=>{Gs(e.update)}),$nextTick:e=>e.n||(e.n=Un.bind(e.proxy)),$watch:e=>Cc.bind(e)}),ss=(e,t)=>e!==Z&&!e.__isScriptSetup&&z(e,t),ic={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:r,props:i,accessCache:o,type:l,appContext:c}=e;let f;if(t[0]!=="$"){const v=o[t];if(v!==void 0)switch(v){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return i[t]}else{if(ss(s,t))return o[t]=1,s[t];if(r!==Z&&z(r,t))return o[t]=2,r[t];if((f=e.propsOptions[0])&&z(f,t))return o[t]=3,i[t];if(n!==Z&&z(n,t))return o[t]=4,n[t];Cs&&(o[t]=0)}}const a=Ut[t];let d,y;if(a)return t==="$attrs"&&me(e.attrs,"get",""),a(e);if((d=l.__cssModules)&&(d=d[t]))return d;if(n!==Z&&z(n,t))return o[t]=4,n[t];if(y=c.config.globalProperties,z(y,t))return y[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:i}=e;return ss(r,t)?(r[t]=n,!0):s!==Z&&z(s,t)?(s[t]=n,!0):z(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,propsOptions:i}},o){let l;return!!n[o]||e!==Z&&z(e,o)||ss(t,o)||(l=i[0])&&z(l,o)||z(s,o)||z(Ut,o)||z(r.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:z(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Af(){return oc().slots}function oc(){const e=qn();return e.setupContext||(e.setupContext=vo(e))}function br(e){return K(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Cs=!0;function lc(e){const t=Js(e),n=e.proxy,s=e.ctx;Cs=!1,t.beforeCreate&&_r(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:o,watch:l,provide:c,inject:f,created:a,beforeMount:d,mounted:y,beforeUpdate:v,updated:S,activated:b,deactivated:B,beforeDestroy:N,beforeUnmount:j,destroyed:p,unmounted:g,render:M,renderTracked:F,renderTriggered:$,errorCaptured:V,serverPrefetch:R,expose:_,inheritAttrs:I,components:E,directives:W,filters:se}=t;if(f&&cc(f,s,null),o)for(const Y in o){const D=o[Y];q(D)&&(s[Y]=D.bind(n))}if(r){const Y=r.call(n,n);ne(Y)&&(e.data=jn(Y))}if(Cs=!0,i)for(const Y in i){const D=i[Y],he=q(D)?D.bind(n,n):q(D.get)?D.get.bind(n,n):ke,rn=!q(D)&&q(D.set)?D.set.bind(n):ke,ot=ie({get:he,set:rn});Object.defineProperty(s,Y,{enumerable:!0,configurable:!0,get:()=>ot.value,set:De=>ot.value=De})}if(l)for(const Y in l)Gi(l[Y],s,n,Y);if(c){const Y=q(c)?c.call(n):c;Reflect.ownKeys(Y).forEach(D=>{pc(D,Y[D])})}a&&_r(a,e,"c");function U(Y,D){K(D)?D.forEach(he=>Y(he.bind(n))):D&&Y(D.bind(n))}if(U(Ql,d),U(Lt,y),U(Zl,v),U(ec,S),U(Xl,b),U(Jl,B),U(rc,V),U(sc,F),U(nc,$),U(ki,j),U(Bn,g),U(tc,R),K(_))if(_.length){const Y=e.exposed||(e.exposed={});_.forEach(D=>{Object.defineProperty(Y,D,{get:()=>n[D],set:he=>n[D]=he})})}else e.exposed||(e.exposed={});M&&e.render===ke&&(e.render=M),I!=null&&(e.inheritAttrs=I),E&&(e.components=E),W&&(e.directives=W),R&&Xs(e)}function cc(e,t,n=ke){K(e)&&(e=As(e));for(const s in e){const r=e[s];let i;ne(r)?"default"in r?i=Ot(r.from||s,r.default,!0):i=Ot(r.from||s):i=Ot(r),fe(i)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[s]=i}}function _r(e,t,n){He(K(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function Gi(e,t,n,s){let r=s.includes(".")?lo(n,s):()=>n[s];if(re(e)){const i=t[e];q(i)&&Fe(r,i)}else if(q(e))Fe(r,e.bind(n));else if(ne(e))if(K(e))e.forEach(i=>Gi(i,t,n,s));else{const i=q(e.handler)?e.handler.bind(n):t[e.handler];q(i)&&Fe(r,i,e)}}function Js(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,l=i.get(t);let c;return l?c=l:!r.length&&!n&&!s?c=t:(c={},r.length&&r.forEach(f=>Pn(c,f,o,!0)),Pn(c,t,o)),ne(t)&&i.set(t,c),c}function Pn(e,t,n,s=!1){const{mixins:r,extends:i}=t;i&&Pn(e,i,n,!0),r&&r.forEach(o=>Pn(e,o,n,!0));for(const o in t)if(!(s&&o==="expose")){const l=ac[o]||n&&n[o];e[o]=l?l(e[o],t[o]):t[o]}return e}const ac={data:wr,props:Sr,emits:Sr,methods:$t,computed:$t,beforeCreate:be,created:be,beforeMount:be,mounted:be,beforeUpdate:be,updated:be,beforeDestroy:be,beforeUnmount:be,destroyed:be,unmounted:be,activated:be,deactivated:be,errorCaptured:be,serverPrefetch:be,components:$t,directives:$t,watch:uc,provide:wr,inject:fc};function wr(e,t){return t?e?function(){return ce(q(e)?e.call(this,this):e,q(t)?t.call(this,this):t)}:t:e}function fc(e,t){return $t(As(e),As(t))}function As(e){if(K(e)){const t={};for(let n=0;n1)return n&&q(t)?t.call(s&&s.proxy):t}}const Xi={},Ji=()=>Object.create(Xi),zi=e=>Object.getPrototypeOf(e)===Xi;function gc(e,t,n,s=!1){const r={},i=Ji();e.propsDefaults=Object.create(null),Qi(e,t,r,i);for(const o in e.propsOptions[0])o in r||(r[o]=void 0);n?e.props=s?r:wl(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function mc(e,t,n,s){const{props:r,attrs:i,vnode:{patchFlag:o}}=e,l=J(r),[c]=e.propsOptions;let f=!1;if((s||o>0)&&!(o&16)){if(o&8){const a=e.vnode.dynamicProps;for(let d=0;d{c=!0;const[y,v]=Zi(d,t,!0);ce(o,y),v&&l.push(...v)};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}if(!i&&!c)return ne(e)&&s.set(e,Et),Et;if(K(i))for(let a=0;ae[0]==="_"||e==="$stable",zs=e=>K(e)?e.map(Me):[Me(e)],vc=(e,t,n)=>{if(t._n)return t;const s=$l((...r)=>zs(t(...r)),n);return s._c=!1,s},to=(e,t,n)=>{const s=e._ctx;for(const r in e){if(eo(r))continue;const i=e[r];if(q(i))t[r]=vc(r,i,s);else if(i!=null){const o=zs(i);t[r]=()=>o}}},no=(e,t)=>{const n=zs(t);e.slots.default=()=>n},so=(e,t,n)=>{for(const s in t)(n||s!=="_")&&(e[s]=t[s])},bc=(e,t,n)=>{const s=e.slots=Ji();if(e.vnode.shapeFlag&32){const r=t._;r?(so(s,t,n),n&&li(s,"_",r,!0)):to(t,s)}else t&&no(e,t)},_c=(e,t,n)=>{const{vnode:s,slots:r}=e;let i=!0,o=Z;if(s.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:so(r,t,n):(i=!t.$stable,to(t,r)),o=t}else t&&(no(e,t),o={default:1});if(i)for(const l in r)!eo(l)&&o[l]==null&&delete r[l]},xe=fo;function wc(e){return ro(e)}function Sc(e){return ro(e,ql)}function ro(e,t){const n=Hn();n.__VUE__=!0;const{insert:s,remove:r,patchProp:i,createElement:o,createText:l,createComment:c,setText:f,setElementText:a,parentNode:d,nextSibling:y,setScopeId:v=ke,insertStaticContent:S}=e,b=(u,h,m,T=null,w=null,x=null,P=void 0,O=null,A=!!h.dynamicChildren)=>{if(u===h)return;u&&!ut(u,h)&&(T=on(u),De(u,w,x,!0),u=null),h.patchFlag===-2&&(A=!1,h.dynamicChildren=null);const{type:C,ref:k,shapeFlag:L}=h;switch(C){case gt:B(u,h,m,T);break;case ve:N(u,h,m,T);break;case kt:u==null&&j(h,m,T,P);break;case Se:E(u,h,m,T,w,x,P,O,A);break;default:L&1?M(u,h,m,T,w,x,P,O,A):L&6?W(u,h,m,T,w,x,P,O,A):(L&64||L&128)&&C.process(u,h,m,T,w,x,P,O,A,vt)}k!=null&&w&&Mn(k,u&&u.ref,x,h||u,!h)},B=(u,h,m,T)=>{if(u==null)s(h.el=l(h.children),m,T);else{const w=h.el=u.el;h.children!==u.children&&f(w,h.children)}},N=(u,h,m,T)=>{u==null?s(h.el=c(h.children||""),m,T):h.el=u.el},j=(u,h,m,T)=>{[u.el,u.anchor]=S(u.children,h,m,T,u.el,u.anchor)},p=({el:u,anchor:h},m,T)=>{let w;for(;u&&u!==h;)w=y(u),s(u,m,T),u=w;s(h,m,T)},g=({el:u,anchor:h})=>{let m;for(;u&&u!==h;)m=y(u),r(u),u=m;r(h)},M=(u,h,m,T,w,x,P,O,A)=>{h.type==="svg"?P="svg":h.type==="math"&&(P="mathml"),u==null?F(h,m,T,w,x,P,O,A):R(u,h,w,x,P,O,A)},F=(u,h,m,T,w,x,P,O)=>{let A,C;const{props:k,shapeFlag:L,transition:H,dirs:G}=u;if(A=u.el=o(u.type,x,k&&k.is,k),L&8?a(A,u.children):L&16&&V(u.children,A,null,T,w,rs(u,x),P,O),G&&Ue(u,null,T,"created"),$(A,u,u.scopeId,P,T),k){for(const ee in k)ee!=="value"&&!Ct(ee)&&i(A,ee,null,k[ee],x,T);"value"in k&&i(A,"value",null,k.value,x),(C=k.onVnodeBeforeMount)&&Oe(C,T,u)}G&&Ue(u,null,T,"beforeMount");const X=io(w,H);X&&H.beforeEnter(A),s(A,h,m),((C=k&&k.onVnodeMounted)||X||G)&&xe(()=>{C&&Oe(C,T,u),X&&H.enter(A),G&&Ue(u,null,T,"mounted")},w)},$=(u,h,m,T,w)=>{if(m&&v(u,m),T)for(let x=0;x{for(let C=A;C{const O=h.el=u.el;let{patchFlag:A,dynamicChildren:C,dirs:k}=h;A|=u.patchFlag&16;const L=u.props||Z,H=h.props||Z;let G;if(m&<(m,!1),(G=H.onVnodeBeforeUpdate)&&Oe(G,m,h,u),k&&Ue(h,u,m,"beforeUpdate"),m&<(m,!0),(L.innerHTML&&H.innerHTML==null||L.textContent&&H.textContent==null)&&a(O,""),C?_(u.dynamicChildren,C,O,m,T,rs(h,w),x):P||D(u,h,O,null,m,T,rs(h,w),x,!1),A>0){if(A&16)I(O,L,H,m,w);else if(A&2&&L.class!==H.class&&i(O,"class",null,H.class,w),A&4&&i(O,"style",L.style,H.style,w),A&8){const X=h.dynamicProps;for(let ee=0;ee{G&&Oe(G,m,h,u),k&&Ue(h,u,m,"updated")},T)},_=(u,h,m,T,w,x,P)=>{for(let O=0;O{if(h!==m){if(h!==Z)for(const x in h)!Ct(x)&&!(x in m)&&i(u,x,h[x],null,w,T);for(const x in m){if(Ct(x))continue;const P=m[x],O=h[x];P!==O&&x!=="value"&&i(u,x,O,P,w,T)}"value"in m&&i(u,"value",h.value,m.value,w)}},E=(u,h,m,T,w,x,P,O,A)=>{const C=h.el=u?u.el:l(""),k=h.anchor=u?u.anchor:l("");let{patchFlag:L,dynamicChildren:H,slotScopeIds:G}=h;G&&(O=O?O.concat(G):G),u==null?(s(C,m,T),s(k,m,T),V(h.children||[],m,k,w,x,P,O,A)):L>0&&L&64&&H&&u.dynamicChildren?(_(u.dynamicChildren,H,m,w,x,P,O),(h.key!=null||w&&h===w.subTree)&&Qs(u,h,!0)):D(u,h,m,k,w,x,P,O,A)},W=(u,h,m,T,w,x,P,O,A)=>{h.slotScopeIds=O,u==null?h.shapeFlag&512?w.ctx.activate(h,m,T,P,A):se(h,m,T,w,x,P,A):ae(u,h,A)},se=(u,h,m,T,w,x,P)=>{const O=u.component=jc(u,T,w);if(nn(u)&&(O.ctx.renderer=vt),Vc(O,!1,P),O.asyncDep){if(w&&w.registerDep(O,U,P),!u.el){const A=O.subTree=le(ve);N(null,A,h,m)}}else U(O,u,h,m,w,x,P)},ae=(u,h,m)=>{const T=h.component=u.component;if(Pc(u,h,m))if(T.asyncDep&&!T.asyncResolved){Y(T,h,m);return}else T.next=h,T.update();else h.el=u.el,T.vnode=h},U=(u,h,m,T,w,x,P)=>{const O=()=>{if(u.isMounted){let{next:L,bu:H,u:G,parent:X,vnode:ee}=u;{const Te=oo(u);if(Te){L&&(L.el=ee.el,Y(u,L,P)),Te.asyncDep.then(()=>{u.isUnmounted||O()});return}}let Q=L,Ee;lt(u,!1),L?(L.el=ee.el,Y(u,L,P)):L=ee,H&&bn(H),(Ee=L.props&&L.props.onVnodeBeforeUpdate)&&Oe(Ee,X,L,ee),lt(u,!0);const pe=is(u),Ie=u.subTree;u.subTree=pe,b(Ie,pe,d(Ie.el),on(Ie),u,w,x),L.el=pe.el,Q===null&&Lc(u,pe.el),G&&xe(G,w),(Ee=L.props&&L.props.onVnodeUpdated)&&xe(()=>Oe(Ee,X,L,ee),w)}else{let L;const{el:H,props:G}=h,{bm:X,m:ee,parent:Q,root:Ee,type:pe}=u,Ie=pt(h);if(lt(u,!1),X&&bn(X),!Ie&&(L=G&&G.onVnodeBeforeMount)&&Oe(L,Q,h),lt(u,!0),H&&Jn){const Te=()=>{u.subTree=is(u),Jn(H,u.subTree,u,w,null)};Ie&&pe.__asyncHydrate?pe.__asyncHydrate(H,u,Te):Te()}else{Ee.ce&&Ee.ce._injectChildStyle(pe);const Te=u.subTree=is(u);b(null,Te,m,T,u,w,x),h.el=Te.el}if(ee&&xe(ee,w),!Ie&&(L=G&&G.onVnodeMounted)){const Te=h;xe(()=>Oe(L,Q,Te),w)}(h.shapeFlag&256||Q&&pt(Q.vnode)&&Q.vnode.shapeFlag&256)&&u.a&&xe(u.a,w),u.isMounted=!0,h=m=T=null}};u.scope.on();const A=u.effect=new di(O);u.scope.off();const C=u.update=A.run.bind(A),k=u.job=A.runIfDirty.bind(A);k.i=u,k.id=u.uid,A.scheduler=()=>Gs(k),lt(u,!0),C()},Y=(u,h,m)=>{h.component=u;const T=u.vnode.props;u.vnode=h,u.next=null,mc(u,h.props,T,m),_c(u,h.children,m),rt(),dr(u),it()},D=(u,h,m,T,w,x,P,O,A=!1)=>{const C=u&&u.children,k=u?u.shapeFlag:0,L=h.children,{patchFlag:H,shapeFlag:G}=h;if(H>0){if(H&128){rn(C,L,m,T,w,x,P,O,A);return}else if(H&256){he(C,L,m,T,w,x,P,O,A);return}}G&8?(k&16&&It(C,w,x),L!==C&&a(m,L)):k&16?G&16?rn(C,L,m,T,w,x,P,O,A):It(C,w,x,!0):(k&8&&a(m,""),G&16&&V(L,m,T,w,x,P,O,A))},he=(u,h,m,T,w,x,P,O,A)=>{u=u||Et,h=h||Et;const C=u.length,k=h.length,L=Math.min(C,k);let H;for(H=0;Hk?It(u,w,x,!0,!1,L):V(h,m,T,w,x,P,O,A,L)},rn=(u,h,m,T,w,x,P,O,A)=>{let C=0;const k=h.length;let L=u.length-1,H=k-1;for(;C<=L&&C<=H;){const G=u[C],X=h[C]=A?et(h[C]):Me(h[C]);if(ut(G,X))b(G,X,m,null,w,x,P,O,A);else break;C++}for(;C<=L&&C<=H;){const G=u[L],X=h[H]=A?et(h[H]):Me(h[H]);if(ut(G,X))b(G,X,m,null,w,x,P,O,A);else break;L--,H--}if(C>L){if(C<=H){const G=H+1,X=GH)for(;C<=L;)De(u[C],w,x,!0),C++;else{const G=C,X=C,ee=new Map;for(C=X;C<=H;C++){const Ce=h[C]=A?et(h[C]):Me(h[C]);Ce.key!=null&&ee.set(Ce.key,C)}let Q,Ee=0;const pe=H-X+1;let Ie=!1,Te=0;const Nt=new Array(pe);for(C=0;C=pe){De(Ce,w,x,!0);continue}let je;if(Ce.key!=null)je=ee.get(Ce.key);else for(Q=X;Q<=H;Q++)if(Nt[Q-X]===0&&ut(Ce,h[Q])){je=Q;break}je===void 0?De(Ce,w,x,!0):(Nt[je-X]=C+1,je>=Te?Te=je:Ie=!0,b(Ce,h[je],m,null,w,x,P,O,A),Ee++)}const lr=Ie?xc(Nt):Et;for(Q=lr.length-1,C=pe-1;C>=0;C--){const Ce=X+C,je=h[Ce],cr=Ce+1{const{el:x,type:P,transition:O,children:A,shapeFlag:C}=u;if(C&6){ot(u.component.subTree,h,m,T);return}if(C&128){u.suspense.move(h,m,T);return}if(C&64){P.move(u,h,m,vt);return}if(P===Se){s(x,h,m);for(let L=0;LO.enter(x),w);else{const{leave:L,delayLeave:H,afterLeave:G}=O,X=()=>s(x,h,m),ee=()=>{L(x,()=>{X(),G&&G()})};H?H(x,X,ee):ee()}else s(x,h,m)},De=(u,h,m,T=!1,w=!1)=>{const{type:x,props:P,ref:O,children:A,dynamicChildren:C,shapeFlag:k,patchFlag:L,dirs:H,cacheIndex:G}=u;if(L===-2&&(w=!1),O!=null&&Mn(O,null,m,u,!0),G!=null&&(h.renderCache[G]=void 0),k&256){h.ctx.deactivate(u);return}const X=k&1&&H,ee=!pt(u);let Q;if(ee&&(Q=P&&P.onVnodeBeforeUnmount)&&Oe(Q,h,u),k&6)Vo(u.component,m,T);else{if(k&128){u.suspense.unmount(m,T);return}X&&Ue(u,null,h,"beforeUnmount"),k&64?u.type.remove(u,h,m,vt,T):C&&!C.hasOnce&&(x!==Se||L>0&&L&64)?It(C,h,m,!1,!0):(x===Se&&L&384||!w&&k&16)&&It(A,h,m),T&&ir(u)}(ee&&(Q=P&&P.onVnodeUnmounted)||X)&&xe(()=>{Q&&Oe(Q,h,u),X&&Ue(u,null,h,"unmounted")},m)},ir=u=>{const{type:h,el:m,anchor:T,transition:w}=u;if(h===Se){jo(m,T);return}if(h===kt){g(u);return}const x=()=>{r(m),w&&!w.persisted&&w.afterLeave&&w.afterLeave()};if(u.shapeFlag&1&&w&&!w.persisted){const{leave:P,delayLeave:O}=w,A=()=>P(m,x);O?O(u.el,x,A):A()}else x()},jo=(u,h)=>{let m;for(;u!==h;)m=y(u),r(u),u=m;r(h)},Vo=(u,h,m)=>{const{bum:T,scope:w,job:x,subTree:P,um:O,m:A,a:C}=u;Er(A),Er(C),T&&bn(T),w.stop(),x&&(x.flags|=8,De(P,u,h,m)),O&&xe(O,h),xe(()=>{u.isUnmounted=!0},h),h&&h.pendingBranch&&!h.isUnmounted&&u.asyncDep&&!u.asyncResolved&&u.suspenseId===h.pendingId&&(h.deps--,h.deps===0&&h.resolve())},It=(u,h,m,T=!1,w=!1,x=0)=>{for(let P=x;P{if(u.shapeFlag&6)return on(u.component.subTree);if(u.shapeFlag&128)return u.suspense.next();const h=y(u.anchor||u.el),m=h&&h[Ii];return m?y(m):h};let Yn=!1;const or=(u,h,m)=>{u==null?h._vnode&&De(h._vnode,null,null,!0):b(h._vnode||null,u,h,null,null,null,m),h._vnode=u,Yn||(Yn=!0,dr(),Rn(),Yn=!1)},vt={p:b,um:De,m:ot,r:ir,mt:se,mc:V,pc:D,pbc:_,n:on,o:e};let Xn,Jn;return t&&([Xn,Jn]=t(vt)),{render:or,hydrate:Xn,createApp:hc(or,Xn)}}function rs({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function lt({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function io(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Qs(e,t,n=!1){const s=e.children,r=t.children;if(K(s)&&K(r))for(let i=0;i>1,e[n[l]]0&&(t[s]=n[i-1]),n[i]=s)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}function oo(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:oo(t)}function Er(e){if(e)for(let t=0;tOt(Ec);function Zs(e,t){return Wn(e,null,t)}function Rf(e,t){return Wn(e,null,{flush:"post"})}function Fe(e,t,n){return Wn(e,t,n)}function Wn(e,t,n=Z){const{immediate:s,deep:r,flush:i,once:o}=n,l=ce({},n),c=t&&s||!t&&i!=="post";let f;if(Mt){if(i==="sync"){const v=Tc();f=v.__watcherHandles||(v.__watcherHandles=[])}else if(!c){const v=()=>{};return v.stop=ke,v.resume=ke,v.pause=ke,v}}const a=ue;l.call=(v,S,b)=>He(v,a,S,b);let d=!1;i==="post"?l.scheduler=v=>{xe(v,a&&a.suspense)}:i!=="sync"&&(d=!0,l.scheduler=(v,S)=>{S?v():Gs(v)}),l.augmentJob=v=>{t&&(v.flags|=4),d&&(v.flags|=2,a&&(v.id=a.uid,v.i=a))};const y=Il(e,t,l);return Mt&&(f?f.push(y):c&&y()),y}function Cc(e,t,n){const s=this.proxy,r=re(e)?e.includes(".")?lo(s,e):()=>s[e]:e.bind(s,s);let i;q(t)?i=t:(i=t.handler,n=t);const o=sn(this),l=Wn(r,i.bind(s),n);return o(),l}function lo(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;rt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Le(t)}Modifiers`]||e[`${st(t)}Modifiers`];function Rc(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||Z;let r=n;const i=t.startsWith("update:"),o=i&&Ac(s,t.slice(7));o&&(o.trim&&(r=n.map(a=>re(a)?a.trim():a)),o.number&&(r=n.map(vs)));let l,c=s[l=vn(t)]||s[l=vn(Le(t))];!c&&i&&(c=s[l=vn(st(t))]),c&&He(c,e,6,r);const f=s[l+"Once"];if(f){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,He(f,e,6,r)}}function co(e,t,n=!1){const s=t.emitsCache,r=s.get(e);if(r!==void 0)return r;const i=e.emits;let o={},l=!1;if(!q(e)){const c=f=>{const a=co(f,t,!0);a&&(l=!0,ce(o,a))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!i&&!l?(ne(e)&&s.set(e,null),null):(K(i)?i.forEach(c=>o[c]=null):ce(o,i),ne(e)&&s.set(e,o),o)}function Kn(e,t){return!e||!Zt(t)?!1:(t=t.slice(2).replace(/Once$/,""),z(e,t[0].toLowerCase()+t.slice(1))||z(e,st(t))||z(e,t))}function is(e){const{type:t,vnode:n,proxy:s,withProxy:r,propsOptions:[i],slots:o,attrs:l,emit:c,render:f,renderCache:a,props:d,data:y,setupState:v,ctx:S,inheritAttrs:b}=e,B=On(e);let N,j;try{if(n.shapeFlag&4){const g=r||s,M=g;N=Me(f.call(M,g,a,d,v,y,S)),j=l}else{const g=t;N=Me(g.length>1?g(d,{attrs:l,slots:o,emit:c}):g(d,null)),j=t.props?l:Oc(l)}}catch(g){Bt.length=0,tn(g,e,1),N=le(ve)}let p=N;if(j&&b!==!1){const g=Object.keys(j),{shapeFlag:M}=p;g.length&&M&7&&(i&&g.some(Fs)&&(j=Mc(j,i)),p=nt(p,j,!1,!0))}return n.dirs&&(p=nt(p,null,!1,!0),p.dirs=p.dirs?p.dirs.concat(n.dirs):n.dirs),n.transition&&Yt(p,n.transition),N=p,On(B),N}const Oc=e=>{let t;for(const n in e)(n==="class"||n==="style"||Zt(n))&&((t||(t={}))[n]=e[n]);return t},Mc=(e,t)=>{const n={};for(const s in e)(!Fs(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function Pc(e,t,n){const{props:s,children:r,component:i}=e,{props:o,children:l,patchFlag:c}=t,f=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return s?Tr(s,o,f):!!o;if(c&8){const a=t.dynamicProps;for(let d=0;de.__isSuspense;function fo(e,t){t&&t.pendingBranch?K(e)?t.effects.push(...e):t.effects.push(e):Hl(e)}const Se=Symbol.for("v-fgt"),gt=Symbol.for("v-txt"),ve=Symbol.for("v-cmt"),kt=Symbol.for("v-stc"),Bt=[];let Ae=null;function Os(e=!1){Bt.push(Ae=e?null:[])}function Ic(){Bt.pop(),Ae=Bt[Bt.length-1]||null}let Xt=1;function Cr(e){Xt+=e,e<0&&Ae&&(Ae.hasOnce=!0)}function uo(e){return e.dynamicChildren=Xt>0?Ae||Et:null,Ic(),Xt>0&&Ae&&Ae.push(e),e}function Of(e,t,n,s,r,i){return uo(po(e,t,n,s,r,i,!0))}function Ms(e,t,n,s,r){return uo(le(e,t,n,s,r,!0))}function Jt(e){return e?e.__v_isVNode===!0:!1}function ut(e,t){return e.type===t.type&&e.key===t.key}const ho=({key:e})=>e??null,Sn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?re(e)||fe(e)||q(e)?{i:de,r:e,k:t,f:!!n}:e:null);function po(e,t=null,n=null,s=0,r=null,i=e===Se?0:1,o=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ho(t),ref:t&&Sn(t),scopeId:Li,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:de};return l?(er(c,n),i&128&&e.normalize(c)):n&&(c.shapeFlag|=re(n)?8:16),Xt>0&&!o&&Ae&&(c.patchFlag>0||i&6)&&c.patchFlag!==32&&Ae.push(c),c}const le=Nc;function Nc(e,t=null,n=null,s=0,r=null,i=!1){if((!e||e===Wi)&&(e=ve),Jt(e)){const l=nt(e,t,!0);return n&&er(l,n),Xt>0&&!i&&Ae&&(l.shapeFlag&6?Ae[Ae.indexOf(e)]=l:Ae.push(l)),l.patchFlag=-2,l}if(Wc(e)&&(e=e.__vccOpts),t){t=Fc(t);let{class:l,style:c}=t;l&&!re(l)&&(t.class=js(l)),ne(c)&&(Ks(c)&&!K(c)&&(c=ce({},c)),t.style=Ds(c))}const o=re(e)?1:ao(e)?128:Ni(e)?64:ne(e)?4:q(e)?2:0;return po(e,t,n,s,r,o,i,!0)}function Fc(e){return e?Ks(e)||zi(e)?ce({},e):e:null}function nt(e,t,n=!1,s=!1){const{props:r,ref:i,patchFlag:o,children:l,transition:c}=e,f=t?Hc(r||{},t):r,a={__v_isVNode:!0,__v_skip:!0,type:e.type,props:f,key:f&&ho(f),ref:t&&t.ref?n&&i?K(i)?i.concat(Sn(t)):[i,Sn(t)]:Sn(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Se?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&nt(e.ssContent),ssFallback:e.ssFallback&&nt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&s&&Yt(a,c.clone(a)),a}function go(e=" ",t=0){return le(gt,null,e,t)}function Mf(e,t){const n=le(kt,null,e);return n.staticCount=t,n}function Pf(e="",t=!1){return t?(Os(),Ms(ve,null,e)):le(ve,null,e)}function Me(e){return e==null||typeof e=="boolean"?le(ve):K(e)?le(Se,null,e.slice()):Jt(e)?et(e):le(gt,null,String(e))}function et(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:nt(e)}function er(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(K(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),er(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!zi(t)?t._ctx=de:r===3&&de&&(de.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else q(t)?(t={default:t,_ctx:de},n=32):(t=String(t),s&64?(n=16,t=[go(t)]):n=8);e.children=t,e.shapeFlag|=n}function Hc(...e){const t={};for(let n=0;nue||de;let Ln,Ps;{const e=Hn(),t=(n,s)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(s),i=>{r.length>1?r.forEach(o=>o(i)):r[0](i)}};Ln=t("__VUE_INSTANCE_SETTERS__",n=>ue=n),Ps=t("__VUE_SSR_SETTERS__",n=>Mt=n)}const sn=e=>{const t=ue;return Ln(e),e.scope.on(),()=>{e.scope.off(),Ln(t)}},Ar=()=>{ue&&ue.scope.off(),Ln(null)};function mo(e){return e.vnode.shapeFlag&4}let Mt=!1;function Vc(e,t=!1,n=!1){t&&Ps(t);const{props:s,children:r}=e.vnode,i=mo(e);gc(e,s,i,t),bc(e,r,n);const o=i?Uc(e,t):void 0;return t&&Ps(!1),o}function Uc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,ic);const{setup:s}=n;if(s){rt();const r=e.setupContext=s.length>1?vo(e):null,i=sn(e),o=en(s,e,0,[e.props,r]),l=ri(o);if(it(),i(),(l||e.sp)&&!pt(e)&&Xs(e),l){if(o.then(Ar,Ar),t)return o.then(c=>{Rr(e,c,t)}).catch(c=>{tn(c,e,0)});e.asyncDep=o}else Rr(e,o,t)}else yo(e,t)}function Rr(e,t,n){q(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ne(t)&&(e.setupState=Ri(t)),yo(e,n)}let Or;function yo(e,t,n){const s=e.type;if(!e.render){if(!t&&Or&&!s.render){const r=s.template||Js(e).template;if(r){const{isCustomElement:i,compilerOptions:o}=e.appContext.config,{delimiters:l,compilerOptions:c}=s,f=ce(ce({isCustomElement:i,delimiters:l},o),c);s.render=Or(r,f)}}e.render=s.render||ke}{const r=sn(e);rt();try{lc(e)}finally{it(),r()}}}const kc={get(e,t){return me(e,"get",""),e[t]}};function vo(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,kc),slots:e.slots,emit:e.emit,expose:t}}function Gn(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Ri(_n(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Ut)return Ut[n](e)},has(t,n){return n in t||n in Ut}})):e.proxy}function Bc(e,t=!0){return q(e)?e.displayName||e.name:e.name||t&&e.__name}function Wc(e){return q(e)&&"__vccOpts"in e}const ie=(e,t)=>Pl(e,t,Mt);function Ls(e,t,n){const s=arguments.length;return s===2?ne(t)&&!K(t)?Jt(t)?le(e,null,[t]):le(e,t):le(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&Jt(n)&&(n=[n]),le(e,t,n))}const Kc="3.5.12";/** +* @vue/runtime-dom v3.5.12 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let Is;const Mr=typeof window<"u"&&window.trustedTypes;if(Mr)try{Is=Mr.createPolicy("vue",{createHTML:e=>e})}catch{}const bo=Is?e=>Is.createHTML(e):e=>e,qc="http://www.w3.org/2000/svg",Gc="http://www.w3.org/1998/Math/MathML",Ke=typeof document<"u"?document:null,Pr=Ke&&Ke.createElement("template"),Yc={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t==="svg"?Ke.createElementNS(qc,e):t==="mathml"?Ke.createElementNS(Gc,e):n?Ke.createElement(e,{is:n}):Ke.createElement(e);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>Ke.createTextNode(e),createComment:e=>Ke.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ke.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,i){const o=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===i||!(r=r.nextSibling)););else{Pr.innerHTML=bo(s==="svg"?`${e}`:s==="mathml"?`${e}`:e);const l=Pr.content;if(s==="svg"||s==="mathml"){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Je="transition",Ht="animation",zt=Symbol("_vtc"),_o={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Xc=ce({},Hi,_o),Jc=e=>(e.displayName="Transition",e.props=Xc,e),Lf=Jc((e,{slots:t})=>Ls(Bl,zc(e),t)),ct=(e,t=[])=>{K(e)?e.forEach(n=>n(...t)):e&&e(...t)},Lr=e=>e?K(e)?e.some(t=>t.length>1):e.length>1:!1;function zc(e){const t={};for(const E in e)E in _o||(t[E]=e[E]);if(e.css===!1)return t;const{name:n="v",type:s,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:c=i,appearActiveClass:f=o,appearToClass:a=l,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:y=`${n}-leave-active`,leaveToClass:v=`${n}-leave-to`}=e,S=Qc(r),b=S&&S[0],B=S&&S[1],{onBeforeEnter:N,onEnter:j,onEnterCancelled:p,onLeave:g,onLeaveCancelled:M,onBeforeAppear:F=N,onAppear:$=j,onAppearCancelled:V=p}=t,R=(E,W,se)=>{at(E,W?a:l),at(E,W?f:o),se&&se()},_=(E,W)=>{E._isLeaving=!1,at(E,d),at(E,v),at(E,y),W&&W()},I=E=>(W,se)=>{const ae=E?$:j,U=()=>R(W,E,se);ct(ae,[W,U]),Ir(()=>{at(W,E?c:i),ze(W,E?a:l),Lr(ae)||Nr(W,s,b,U)})};return ce(t,{onBeforeEnter(E){ct(N,[E]),ze(E,i),ze(E,o)},onBeforeAppear(E){ct(F,[E]),ze(E,c),ze(E,f)},onEnter:I(!1),onAppear:I(!0),onLeave(E,W){E._isLeaving=!0;const se=()=>_(E,W);ze(E,d),ze(E,y),ta(),Ir(()=>{E._isLeaving&&(at(E,d),ze(E,v),Lr(g)||Nr(E,s,B,se))}),ct(g,[E,se])},onEnterCancelled(E){R(E,!1),ct(p,[E])},onAppearCancelled(E){R(E,!0),ct(V,[E])},onLeaveCancelled(E){_(E),ct(M,[E])}})}function Qc(e){if(e==null)return null;if(ne(e))return[os(e.enter),os(e.leave)];{const t=os(e);return[t,t]}}function os(e){return qo(e)}function ze(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[zt]||(e[zt]=new Set)).add(t)}function at(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[zt];n&&(n.delete(t),n.size||(e[zt]=void 0))}function Ir(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Zc=0;function Nr(e,t,n,s){const r=e._endId=++Zc,i=()=>{r===e._endId&&s()};if(n!=null)return setTimeout(i,n);const{type:o,timeout:l,propCount:c}=ea(e,t);if(!o)return s();const f=o+"end";let a=0;const d=()=>{e.removeEventListener(f,y),i()},y=v=>{v.target===e&&++a>=c&&d()};setTimeout(()=>{a(n[S]||"").split(", "),r=s(`${Je}Delay`),i=s(`${Je}Duration`),o=Fr(r,i),l=s(`${Ht}Delay`),c=s(`${Ht}Duration`),f=Fr(l,c);let a=null,d=0,y=0;t===Je?o>0&&(a=Je,d=o,y=i.length):t===Ht?f>0&&(a=Ht,d=f,y=c.length):(d=Math.max(o,f),a=d>0?o>f?Je:Ht:null,y=a?a===Je?i.length:c.length:0);const v=a===Je&&/\b(transform|all)(,|$)/.test(s(`${Je}Property`).toString());return{type:a,timeout:d,propCount:y,hasTransform:v}}function Fr(e,t){for(;e.lengthHr(n)+Hr(e[s])))}function Hr(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function ta(){return document.body.offsetHeight}function na(e,t,n){const s=e[zt];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const $r=Symbol("_vod"),sa=Symbol("_vsh"),ra=Symbol(""),ia=/(^|;)\s*display\s*:/;function oa(e,t,n){const s=e.style,r=re(n);let i=!1;if(n&&!r){if(t)if(re(t))for(const o of t.split(";")){const l=o.slice(0,o.indexOf(":")).trim();n[l]==null&&xn(s,l,"")}else for(const o in t)n[o]==null&&xn(s,o,"");for(const o in n)o==="display"&&(i=!0),xn(s,o,n[o])}else if(r){if(t!==n){const o=s[ra];o&&(n+=";"+o),s.cssText=n,i=ia.test(n)}}else t&&e.removeAttribute("style");$r in e&&(e[$r]=i?s.display:"",e[sa]&&(s.display="none"))}const Dr=/\s*!important$/;function xn(e,t,n){if(K(n))n.forEach(s=>xn(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=la(e,t);Dr.test(n)?e.setProperty(st(s),n.replace(Dr,""),"important"):e[s]=n}}const jr=["Webkit","Moz","ms"],ls={};function la(e,t){const n=ls[t];if(n)return n;let s=Le(t);if(s!=="filter"&&s in e)return ls[t]=s;s=Fn(s);for(let r=0;rcs||(ua.then(()=>cs=0),cs=Date.now());function ha(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;He(pa(s,n.value),t,5,[s])};return n.value=e,n.attached=da(),n}function pa(e,t){if(K(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>r=>!r._stopped&&s&&s(r))}else return t}const Kr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,ga=(e,t,n,s,r,i)=>{const o=r==="svg";t==="class"?na(e,s,o):t==="style"?oa(e,n,s):Zt(t)?Fs(t)||aa(e,t,n,s,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):ma(e,t,s,o))?(kr(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Ur(e,t,s,o,i,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!re(s))?kr(e,Le(t),s,i,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Ur(e,t,s,o))};function ma(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&Kr(t)&&q(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return Kr(t)&&re(n)?!1:t in e}const qr=e=>{const t=e.props["onUpdate:modelValue"]||!1;return K(t)?n=>bn(t,n):t};function ya(e){e.target.composing=!0}function Gr(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const as=Symbol("_assign"),If={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e[as]=qr(r);const i=s||r.props&&r.props.type==="number";St(e,t?"change":"input",o=>{if(o.target.composing)return;let l=e.value;n&&(l=l.trim()),i&&(l=vs(l)),e[as](l)}),n&&St(e,"change",()=>{e.value=e.value.trim()}),t||(St(e,"compositionstart",ya),St(e,"compositionend",Gr),St(e,"change",Gr))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:r,number:i}},o){if(e[as]=qr(o),e.composing)return;const l=(i||e.type==="number")&&!/^0\d/.test(e.value)?vs(e.value):e.value,c=t??"";l!==c&&(document.activeElement===e&&e.type!=="range"&&(s&&t===n||r&&e.value.trim()===c)||(e.value=c))}},va=["ctrl","shift","alt","meta"],ba={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>va.some(n=>e[`${n}Key`]&&!t.includes(n))},Nf=(e,t)=>{const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(r,...i)=>{for(let o=0;o{const n=e._withKeys||(e._withKeys={}),s=t.join(".");return n[s]||(n[s]=r=>{if(!("key"in r))return;const i=st(r.key);if(t.some(o=>o===i||_a[o]===i))return e(r)})},wo=ce({patchProp:ga},Yc);let Wt,Yr=!1;function wa(){return Wt||(Wt=wc(wo))}function Sa(){return Wt=Yr?Wt:Sc(wo),Yr=!0,Wt}const Hf=(...e)=>{const t=wa().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=xo(s);if(!r)return;const i=t._component;!q(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const o=n(r,!1,So(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t},$f=(...e)=>{const t=Sa().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=xo(s);if(r)return n(r,!0,So(r))},t};function So(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function xo(e){return re(e)?document.querySelector(e):e}const Df=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n},xa=window.__VP_SITE_DATA__;function tr(e){return ui()?(tl(e),!0):!1}function Be(e){return typeof e=="function"?e():Ai(e)}const Eo=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const jf=e=>e!=null,Ea=Object.prototype.toString,Ta=e=>Ea.call(e)==="[object Object]",Qt=()=>{},Xr=Ca();function Ca(){var e,t;return Eo&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function Aa(e,t){function n(...s){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,s),{fn:t,thisArg:this,args:s})).then(r).catch(i)})}return n}const To=e=>e();function Ra(e,t={}){let n,s,r=Qt;const i=l=>{clearTimeout(l),r(),r=Qt};return l=>{const c=Be(e),f=Be(t.maxWait);return n&&i(n),c<=0||f!==void 0&&f<=0?(s&&(i(s),s=null),Promise.resolve(l())):new Promise((a,d)=>{r=t.rejectOnCancel?d:a,f&&!s&&(s=setTimeout(()=>{n&&i(n),s=null,a(l())},f)),n=setTimeout(()=>{s&&i(s),s=null,a(l())},c)})}}function Oa(e=To){const t=oe(!0);function n(){t.value=!1}function s(){t.value=!0}const r=(...i)=>{t.value&&e(...i)};return{isActive:Vn(t),pause:n,resume:s,eventFilter:r}}function Ma(e){return qn()}function Co(...e){if(e.length!==1)return Rl(...e);const t=e[0];return typeof t=="function"?Vn(Tl(()=>({get:t,set:Qt}))):oe(t)}function Ao(e,t,n={}){const{eventFilter:s=To,...r}=n;return Fe(e,Aa(s,t),r)}function Pa(e,t,n={}){const{eventFilter:s,...r}=n,{eventFilter:i,pause:o,resume:l,isActive:c}=Oa(s);return{stop:Ao(e,t,{...r,eventFilter:i}),pause:o,resume:l,isActive:c}}function nr(e,t=!0,n){Ma()?Lt(e,n):t?e():Un(e)}function Vf(e,t,n={}){const{debounce:s=0,maxWait:r=void 0,...i}=n;return Ao(e,t,{...i,eventFilter:Ra(s,{maxWait:r})})}function Uf(e,t,n){let s;fe(n)?s={evaluating:n}:s={};const{lazy:r=!1,evaluating:i=void 0,shallow:o=!0,onError:l=Qt}=s,c=oe(!r),f=o?qs(t):oe(t);let a=0;return Zs(async d=>{if(!c.value)return;a++;const y=a;let v=!1;i&&Promise.resolve().then(()=>{i.value=!0});try{const S=await e(b=>{d(()=>{i&&(i.value=!1),v||b()})});y===a&&(f.value=S)}catch(S){l(S)}finally{i&&y===a&&(i.value=!1),v=!0}}),r?ie(()=>(c.value=!0,f.value)):f}const $e=Eo?window:void 0;function Ro(e){var t;const n=Be(e);return(t=n==null?void 0:n.$el)!=null?t:n}function Pt(...e){let t,n,s,r;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,s,r]=e,t=$e):[t,n,s,r]=e,!t)return Qt;Array.isArray(n)||(n=[n]),Array.isArray(s)||(s=[s]);const i=[],o=()=>{i.forEach(a=>a()),i.length=0},l=(a,d,y,v)=>(a.addEventListener(d,y,v),()=>a.removeEventListener(d,y,v)),c=Fe(()=>[Ro(t),Be(r)],([a,d])=>{if(o(),!a)return;const y=Ta(d)?{...d}:d;i.push(...n.flatMap(v=>s.map(S=>l(a,v,S,y))))},{immediate:!0,flush:"post"}),f=()=>{c(),o()};return tr(f),f}function La(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function kf(...e){let t,n,s={};e.length===3?(t=e[0],n=e[1],s=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],s=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:r=$e,eventName:i="keydown",passive:o=!1,dedupe:l=!1}=s,c=La(t);return Pt(r,i,a=>{a.repeat&&Be(l)||c(a)&&n(a)},o)}function Ia(){const e=oe(!1),t=qn();return t&&Lt(()=>{e.value=!0},t),e}function Na(e){const t=Ia();return ie(()=>(t.value,!!e()))}function Oo(e,t={}){const{window:n=$e}=t,s=Na(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let r;const i=oe(!1),o=f=>{i.value=f.matches},l=()=>{r&&("removeEventListener"in r?r.removeEventListener("change",o):r.removeListener(o))},c=Zs(()=>{s.value&&(l(),r=n.matchMedia(Be(e)),"addEventListener"in r?r.addEventListener("change",o):r.addListener(o),i.value=r.matches)});return tr(()=>{c(),l(),r=void 0}),i}const pn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},gn="__vueuse_ssr_handlers__",Fa=Ha();function Ha(){return gn in pn||(pn[gn]=pn[gn]||{}),pn[gn]}function Mo(e,t){return Fa[e]||t}function sr(e){return Oo("(prefers-color-scheme: dark)",e)}function $a(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const Da={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},Jr="vueuse-storage";function rr(e,t,n,s={}){var r;const{flush:i="pre",deep:o=!0,listenToStorageChanges:l=!0,writeDefaults:c=!0,mergeDefaults:f=!1,shallow:a,window:d=$e,eventFilter:y,onError:v=_=>{console.error(_)},initOnMounted:S}=s,b=(a?qs:oe)(typeof t=="function"?t():t);if(!n)try{n=Mo("getDefaultStorage",()=>{var _;return(_=$e)==null?void 0:_.localStorage})()}catch(_){v(_)}if(!n)return b;const B=Be(t),N=$a(B),j=(r=s.serializer)!=null?r:Da[N],{pause:p,resume:g}=Pa(b,()=>F(b.value),{flush:i,deep:o,eventFilter:y});d&&l&&nr(()=>{n instanceof Storage?Pt(d,"storage",V):Pt(d,Jr,R),S&&V()}),S||V();function M(_,I){if(d){const E={key:e,oldValue:_,newValue:I,storageArea:n};d.dispatchEvent(n instanceof Storage?new StorageEvent("storage",E):new CustomEvent(Jr,{detail:E}))}}function F(_){try{const I=n.getItem(e);if(_==null)M(I,null),n.removeItem(e);else{const E=j.write(_);I!==E&&(n.setItem(e,E),M(I,E))}}catch(I){v(I)}}function $(_){const I=_?_.newValue:n.getItem(e);if(I==null)return c&&B!=null&&n.setItem(e,j.write(B)),B;if(!_&&f){const E=j.read(I);return typeof f=="function"?f(E,B):N==="object"&&!Array.isArray(E)?{...B,...E}:E}else return typeof I!="string"?I:j.read(I)}function V(_){if(!(_&&_.storageArea!==n)){if(_&&_.key==null){b.value=B;return}if(!(_&&_.key!==e)){p();try{(_==null?void 0:_.newValue)!==j.write(b.value)&&(b.value=$(_))}catch(I){v(I)}finally{_?Un(g):g()}}}}function R(_){V(_.detail)}return b}const ja="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function Va(e={}){const{selector:t="html",attribute:n="class",initialValue:s="auto",window:r=$e,storage:i,storageKey:o="vueuse-color-scheme",listenToStorageChanges:l=!0,storageRef:c,emitAuto:f,disableTransition:a=!0}=e,d={auto:"",light:"light",dark:"dark",...e.modes||{}},y=sr({window:r}),v=ie(()=>y.value?"dark":"light"),S=c||(o==null?Co(s):rr(o,s,i,{window:r,listenToStorageChanges:l})),b=ie(()=>S.value==="auto"?v.value:S.value),B=Mo("updateHTMLAttrs",(g,M,F)=>{const $=typeof g=="string"?r==null?void 0:r.document.querySelector(g):Ro(g);if(!$)return;const V=new Set,R=new Set;let _=null;if(M==="class"){const E=F.split(/\s/g);Object.values(d).flatMap(W=>(W||"").split(/\s/g)).filter(Boolean).forEach(W=>{E.includes(W)?V.add(W):R.add(W)})}else _={key:M,value:F};if(V.size===0&&R.size===0&&_===null)return;let I;a&&(I=r.document.createElement("style"),I.appendChild(document.createTextNode(ja)),r.document.head.appendChild(I));for(const E of V)$.classList.add(E);for(const E of R)$.classList.remove(E);_&&$.setAttribute(_.key,_.value),a&&(r.getComputedStyle(I).opacity,document.head.removeChild(I))});function N(g){var M;B(t,n,(M=d[g])!=null?M:g)}function j(g){e.onChanged?e.onChanged(g,N):N(g)}Fe(b,j,{flush:"post",immediate:!0}),nr(()=>j(b.value));const p=ie({get(){return f?S.value:b.value},set(g){S.value=g}});try{return Object.assign(p,{store:S,system:v,state:b})}catch{return p}}function Ua(e={}){const{valueDark:t="dark",valueLight:n="",window:s=$e}=e,r=Va({...e,onChanged:(l,c)=>{var f;e.onChanged?(f=e.onChanged)==null||f.call(e,l==="dark",c,l):c(l)},modes:{dark:t,light:n}}),i=ie(()=>r.system?r.system.value:sr({window:s}).value?"dark":"light");return ie({get(){return r.value==="dark"},set(l){const c=l?"dark":"light";i.value===c?r.value="auto":r.value=c}})}function fs(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function Bf(e,t,n={}){const{window:s=$e}=n;return rr(e,t,s==null?void 0:s.localStorage,n)}function Po(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth1?!0:(t.preventDefault&&t.preventDefault(),!1)}const us=new WeakMap;function Wf(e,t=!1){const n=oe(t);let s=null,r="";Fe(Co(e),l=>{const c=fs(Be(l));if(c){const f=c;if(us.get(f)||us.set(f,f.style.overflow),f.style.overflow!=="hidden"&&(r=f.style.overflow),f.style.overflow==="hidden")return n.value=!0;if(n.value)return f.style.overflow="hidden"}},{immediate:!0});const i=()=>{const l=fs(Be(e));!l||n.value||(Xr&&(s=Pt(l,"touchmove",c=>{ka(c)},{passive:!1})),l.style.overflow="hidden",n.value=!0)},o=()=>{const l=fs(Be(e));!l||!n.value||(Xr&&(s==null||s()),l.style.overflow=r,us.delete(l),n.value=!1)};return tr(o),ie({get(){return n.value},set(l){l?i():o()}})}function Kf(e,t,n={}){const{window:s=$e}=n;return rr(e,t,s==null?void 0:s.sessionStorage,n)}function qf(e={}){const{window:t=$e,behavior:n="auto"}=e;if(!t)return{x:oe(0),y:oe(0)};const s=oe(t.scrollX),r=oe(t.scrollY),i=ie({get(){return s.value},set(l){scrollTo({left:l,behavior:n})}}),o=ie({get(){return r.value},set(l){scrollTo({top:l,behavior:n})}});return Pt(t,"scroll",()=>{s.value=t.scrollX,r.value=t.scrollY},{capture:!1,passive:!0}),{x:i,y:o}}function Gf(e={}){const{window:t=$e,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:s=Number.POSITIVE_INFINITY,listenOrientation:r=!0,includeScrollbar:i=!0,type:o="inner"}=e,l=oe(n),c=oe(s),f=()=>{t&&(o==="outer"?(l.value=t.outerWidth,c.value=t.outerHeight):i?(l.value=t.innerWidth,c.value=t.innerHeight):(l.value=t.document.documentElement.clientWidth,c.value=t.document.documentElement.clientHeight))};if(f(),nr(f),Pt("resize",f,{passive:!0}),r){const a=Oo("(orientation: portrait)");Fe(a,()=>f())}return{width:l,height:c}}const ds={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1};var hs={};const Lo=/^(?:[a-z]+:|\/\/)/i,Ba="vitepress-theme-appearance",Wa=/#.*$/,Ka=/[?#].*$/,qa=/(?:(^|\/)index)?\.(?:md|html)$/,ge=typeof document<"u",Io={relativePath:"404.md",filePath:"",title:"404",description:"Not Found",headers:[],frontmatter:{sidebar:!1,layout:"page"},lastUpdated:0,isNotFound:!0};function Ga(e,t,n=!1){if(t===void 0)return!1;if(e=zr(`/${e}`),n)return new RegExp(t).test(e);if(zr(t)!==e)return!1;const s=t.match(Wa);return s?(ge?location.hash:"")===s[0]:!0}function zr(e){return decodeURI(e).replace(Ka,"").replace(qa,"$1")}function Ya(e){return Lo.test(e)}function Xa(e,t){return Object.keys((e==null?void 0:e.locales)||{}).find(n=>n!=="root"&&!Ya(n)&&Ga(t,`/${n}/`,!0))||"root"}function Ja(e,t){var s,r,i,o,l,c,f;const n=Xa(e,t);return Object.assign({},e,{localeIndex:n,lang:((s=e.locales[n])==null?void 0:s.lang)??e.lang,dir:((r=e.locales[n])==null?void 0:r.dir)??e.dir,title:((i=e.locales[n])==null?void 0:i.title)??e.title,titleTemplate:((o=e.locales[n])==null?void 0:o.titleTemplate)??e.titleTemplate,description:((l=e.locales[n])==null?void 0:l.description)??e.description,head:Fo(e.head,((c=e.locales[n])==null?void 0:c.head)??[]),themeConfig:{...e.themeConfig,...(f=e.locales[n])==null?void 0:f.themeConfig}})}function No(e,t){const n=t.title||e.title,s=t.titleTemplate??e.titleTemplate;if(typeof s=="string"&&s.includes(":title"))return s.replace(/:title/g,n);const r=za(e.title,s);return n===r.slice(3)?n:`${n}${r}`}function za(e,t){return t===!1?"":t===!0||t===void 0?` | ${e}`:e===t?"":` | ${t}`}function Qa(e,t){const[n,s]=t;if(n!=="meta")return!1;const r=Object.entries(s)[0];return r==null?!1:e.some(([i,o])=>i===n&&o[r[0]]===r[1])}function Fo(e,t){return[...e.filter(n=>!Qa(t,n)),...t]}const Za=/[\u0000-\u001F"#$&*+,:;<=>?[\]^`{|}\u007F]/g,ef=/^[a-z]:/i;function Qr(e){const t=ef.exec(e),n=t?t[0]:"";return n+e.slice(n.length).replace(Za,"_").replace(/(^|\/)_+(?=[^/]*$)/,"$1")}const ps=new Set;function tf(e){if(ps.size===0){const n=typeof process=="object"&&(hs==null?void 0:hs.VITE_EXTRA_EXTENSIONS)||(ds==null?void 0:ds.VITE_EXTRA_EXTENSIONS)||"";("3g2,3gp,aac,ai,apng,au,avif,bin,bmp,cer,class,conf,crl,css,csv,dll,doc,eps,epub,exe,gif,gz,ics,ief,jar,jpe,jpeg,jpg,js,json,jsonld,m4a,man,mid,midi,mjs,mov,mp2,mp3,mp4,mpe,mpeg,mpg,mpp,oga,ogg,ogv,ogx,opus,otf,p10,p7c,p7m,p7s,pdf,png,ps,qt,roff,rtf,rtx,ser,svg,t,tif,tiff,tr,ts,tsv,ttf,txt,vtt,wav,weba,webm,webp,woff,woff2,xhtml,xml,yaml,yml,zip"+(n&&typeof n=="string"?","+n:"")).split(",").forEach(s=>ps.add(s))}const t=e.split(".").pop();return t==null||!ps.has(t.toLowerCase())}function Yf(e){return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const nf=Symbol(),mt=qs(xa);function Xf(e){const t=ie(()=>Ja(mt.value,e.data.relativePath)),n=t.value.appearance,s=n==="force-dark"?oe(!0):n==="force-auto"?sr():n?Ua({storageKey:Ba,initialValue:()=>n==="dark"?"dark":"auto",...typeof n=="object"?n:{}}):oe(!1),r=oe(ge?location.hash:"");return ge&&window.addEventListener("hashchange",()=>{r.value=location.hash}),Fe(()=>e.data,()=>{r.value=ge?location.hash:""}),{site:t,theme:ie(()=>t.value.themeConfig),page:ie(()=>e.data),frontmatter:ie(()=>e.data.frontmatter),params:ie(()=>e.data.params),lang:ie(()=>t.value.lang),dir:ie(()=>e.data.frontmatter.dir||t.value.dir),localeIndex:ie(()=>t.value.localeIndex||"root"),title:ie(()=>No(t.value,e.data)),description:ie(()=>e.data.description||t.value.description),isDark:s,hash:ie(()=>r.value)}}function sf(){const e=Ot(nf);if(!e)throw new Error("vitepress data not properly injected in app");return e}function rf(e,t){return`${e}${t}`.replace(/\/+/g,"/")}function Zr(e){return Lo.test(e)||!e.startsWith("/")?e:rf(mt.value.base,e)}function of(e){let t=e.replace(/\.html$/,"");if(t=decodeURIComponent(t),t=t.replace(/\/$/,"/index"),ge){const n="/";t=Qr(t.slice(n.length).replace(/\//g,"_")||"index")+".md";let s=__VP_HASH_MAP__[t.toLowerCase()];if(s||(t=t.endsWith("_index.md")?t.slice(0,-9)+".md":t.slice(0,-3)+"_index.md",s=__VP_HASH_MAP__[t.toLowerCase()]),!s)return null;t=`${n}assets/${t}.${s}.js`}else t=`./${Qr(t.slice(1).replace(/\//g,"_"))}.md.js`;return t}let En=[];function Jf(e){En.push(e),Bn(()=>{En=En.filter(t=>t!==e)})}function lf(){let e=mt.value.scrollOffset,t=0,n=24;if(typeof e=="object"&&"padding"in e&&(n=e.padding,e=e.selector),typeof e=="number")t=e;else if(typeof e=="string")t=ei(e,n);else if(Array.isArray(e))for(const s of e){const r=ei(s,n);if(r){t=r;break}}return t}function ei(e,t){const n=document.querySelector(e);if(!n)return 0;const s=n.getBoundingClientRect().bottom;return s<0?0:s+t}const cf=Symbol(),Ho="http://a.com",af=()=>({path:"/",component:null,data:Io});function zf(e,t){const n=jn(af()),s={route:n,go:r};async function r(l=ge?location.href:"/"){var c,f;l=gs(l),await((c=s.onBeforeRouteChange)==null?void 0:c.call(s,l))!==!1&&(ge&&l!==gs(location.href)&&(history.replaceState({scrollPosition:window.scrollY},""),history.pushState({},"",l)),await o(l),await((f=s.onAfterRouteChanged)==null?void 0:f.call(s,l)))}let i=null;async function o(l,c=0,f=!1){var y,v;if(await((y=s.onBeforePageLoad)==null?void 0:y.call(s,l))===!1)return;const a=new URL(l,Ho),d=i=a.pathname;try{let S=await e(d);if(!S)throw new Error(`Page not found: ${d}`);if(i===d){i=null;const{default:b,__pageData:B}=S;if(!b)throw new Error(`Invalid route component: ${b}`);await((v=s.onAfterPageLoad)==null?void 0:v.call(s,l)),n.path=ge?d:Zr(d),n.component=_n(b),n.data=_n(B),ge&&Un(()=>{let N=mt.value.base+B.relativePath.replace(/(?:(^|\/)index)?\.md$/,"$1");if(!mt.value.cleanUrls&&!N.endsWith("/")&&(N+=".html"),N!==a.pathname&&(a.pathname=N,l=N+a.search+a.hash,history.replaceState({},"",l)),a.hash&&!c){let j=null;try{j=document.getElementById(decodeURIComponent(a.hash).slice(1))}catch(p){console.warn(p)}if(j){ti(j,a.hash);return}}window.scrollTo(0,c)})}}catch(S){if(!/fetch|Page not found/.test(S.message)&&!/^\/404(\.html|\/)?$/.test(l)&&console.error(S),!f)try{const b=await fetch(mt.value.base+"hashmap.json");window.__VP_HASH_MAP__=await b.json(),await o(l,c,!0);return}catch{}if(i===d){i=null,n.path=ge?d:Zr(d),n.component=t?_n(t):null;const b=ge?d.replace(/(^|\/)$/,"$1index").replace(/(\.html)?$/,".md").replace(/^\//,""):"404.md";n.data={...Io,relativePath:b}}}}return ge&&(history.state===null&&history.replaceState({},""),window.addEventListener("click",l=>{if(l.defaultPrevented||!(l.target instanceof Element)||l.target.closest("button")||l.button!==0||l.ctrlKey||l.shiftKey||l.altKey||l.metaKey)return;const c=l.target.closest("a");if(!c||c.closest(".vp-raw")||c.hasAttribute("download")||c.hasAttribute("target"))return;const f=c.getAttribute("href")??(c instanceof SVGAElement?c.getAttribute("xlink:href"):null);if(f==null)return;const{href:a,origin:d,pathname:y,hash:v,search:S}=new URL(f,c.baseURI),b=new URL(location.href);d===b.origin&&tf(y)&&(l.preventDefault(),y===b.pathname&&S===b.search?(v!==b.hash&&(history.pushState({},"",a),window.dispatchEvent(new HashChangeEvent("hashchange",{oldURL:b.href,newURL:a}))),v?ti(c,v,c.classList.contains("header-anchor")):window.scrollTo(0,0)):r(a))},{capture:!0}),window.addEventListener("popstate",async l=>{var c;l.state!==null&&(await o(gs(location.href),l.state&&l.state.scrollPosition||0),(c=s.onAfterRouteChanged)==null||c.call(s,location.href))}),window.addEventListener("hashchange",l=>{l.preventDefault()})),s}function ff(){const e=Ot(cf);if(!e)throw new Error("useRouter() is called without provider.");return e}function $o(){return ff().route}function ti(e,t,n=!1){let s=null;try{s=e.classList.contains("header-anchor")?e:document.getElementById(decodeURIComponent(t).slice(1))}catch(r){console.warn(r)}if(s){let r=function(){!n||Math.abs(o-window.scrollY)>window.innerHeight?window.scrollTo(0,o):window.scrollTo({left:0,top:o,behavior:"smooth"})};const i=parseInt(window.getComputedStyle(s).paddingTop,10),o=window.scrollY+s.getBoundingClientRect().top-lf()+i;requestAnimationFrame(r)}}function gs(e){const t=new URL(e,Ho);return t.pathname=t.pathname.replace(/(^|\/)index(\.html)?$/,"$1"),mt.value.cleanUrls?t.pathname=t.pathname.replace(/\.html$/,""):!t.pathname.endsWith("/")&&!t.pathname.endsWith(".html")&&(t.pathname+=".html"),t.pathname+t.search+t.hash}const mn=()=>En.forEach(e=>e()),Qf=Ys({name:"VitePressContent",props:{as:{type:[Object,String],default:"div"}},setup(e){const t=$o(),{frontmatter:n,site:s}=sf();return Fe(n,mn,{deep:!0,flush:"post"}),()=>Ls(e.as,s.value.contentProps??{style:{position:"relative"}},[t.component?Ls(t.component,{onVnodeMounted:mn,onVnodeUpdated:mn,onVnodeUnmounted:mn}):"404 Page Not Found"])}}),uf="modulepreload",df=function(e){return"/"+e},ni={},Zf=function(t,n,s){let r=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),l=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));r=Promise.allSettled(n.map(c=>{if(c=df(c),c in ni)return;ni[c]=!0;const f=c.endsWith(".css"),a=f?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${a}`))return;const d=document.createElement("link");if(d.rel=f?"stylesheet":uf,f||(d.as="script"),d.crossOrigin="",d.href=c,l&&d.setAttribute("nonce",l),document.head.appendChild(d),f)return new Promise((y,v)=>{d.addEventListener("load",y),d.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${c}`)))})}))}function i(o){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=o,window.dispatchEvent(l),!l.defaultPrevented)throw o}return r.then(o=>{for(const l of o||[])l.status==="rejected"&&i(l.reason);return t().catch(i)})},eu=Ys({setup(e,{slots:t}){const n=oe(!1);return Lt(()=>{n.value=!0}),()=>n.value&&t.default?t.default():null}});function tu(){ge&&window.addEventListener("click",e=>{var n;const t=e.target;if(t.matches(".vp-code-group input")){const s=(n=t.parentElement)==null?void 0:n.parentElement;if(!s)return;const r=Array.from(s.querySelectorAll("input")).indexOf(t);if(r<0)return;const i=s.querySelector(".blocks");if(!i)return;const o=Array.from(i.children).find(f=>f.classList.contains("active"));if(!o)return;const l=i.children[r];if(!l||o===l)return;o.classList.remove("active"),l.classList.add("active");const c=s==null?void 0:s.querySelector(`label[for="${t.id}"]`);c==null||c.scrollIntoView({block:"nearest"})}})}function nu(){if(ge){const e=new WeakMap;window.addEventListener("click",t=>{var s;const n=t.target;if(n.matches('div[class*="language-"] > button.copy')){const r=n.parentElement,i=(s=n.nextElementSibling)==null?void 0:s.nextElementSibling;if(!r||!i)return;const o=/language-(shellscript|shell|bash|sh|zsh)/.test(r.className),l=[".vp-copy-ignore",".diff.remove"],c=i.cloneNode(!0);c.querySelectorAll(l.join(",")).forEach(a=>a.remove());let f=c.textContent||"";o&&(f=f.replace(/^ *(\$|>) /gm,"").trim()),hf(f).then(()=>{n.classList.add("copied"),clearTimeout(e.get(n));const a=setTimeout(()=>{n.classList.remove("copied"),n.blur(),e.delete(n)},2e3);e.set(n,a)})}})}}async function hf(e){try{return navigator.clipboard.writeText(e)}catch{const t=document.createElement("textarea"),n=document.activeElement;t.value=e,t.setAttribute("readonly",""),t.style.contain="strict",t.style.position="absolute",t.style.left="-9999px",t.style.fontSize="12pt";const s=document.getSelection(),r=s?s.rangeCount>0&&s.getRangeAt(0):null;document.body.appendChild(t),t.select(),t.selectionStart=0,t.selectionEnd=e.length,document.execCommand("copy"),document.body.removeChild(t),r&&(s.removeAllRanges(),s.addRange(r)),n&&n.focus()}}function su(e,t){let n=!0,s=[];const r=i=>{if(n){n=!1,i.forEach(l=>{const c=ms(l);for(const f of document.head.children)if(f.isEqualNode(c)){s.push(f);return}});return}const o=i.map(ms);s.forEach((l,c)=>{const f=o.findIndex(a=>a==null?void 0:a.isEqualNode(l??null));f!==-1?delete o[f]:(l==null||l.remove(),delete s[c])}),o.forEach(l=>l&&document.head.appendChild(l)),s=[...s,...o].filter(Boolean)};Zs(()=>{const i=e.data,o=t.value,l=i&&i.description,c=i&&i.frontmatter.head||[],f=No(o,i);f!==document.title&&(document.title=f);const a=l||o.description;let d=document.querySelector("meta[name=description]");d?d.getAttribute("content")!==a&&d.setAttribute("content",a):ms(["meta",{name:"description",content:a}]),r(Fo(o.head,gf(c)))})}function ms([e,t,n]){const s=document.createElement(e);for(const r in t)s.setAttribute(r,t[r]);return n&&(s.innerHTML=n),e==="script"&&t.async==null&&(s.async=!1),s}function pf(e){return e[0]==="meta"&&e[1]&&e[1].name==="description"}function gf(e){return e.filter(t=>!pf(t))}const ys=new Set,Do=()=>document.createElement("link"),mf=e=>{const t=Do();t.rel="prefetch",t.href=e,document.head.appendChild(t)},yf=e=>{const t=new XMLHttpRequest;t.open("GET",e,t.withCredentials=!0),t.send()};let yn;const vf=ge&&(yn=Do())&&yn.relList&&yn.relList.supports&&yn.relList.supports("prefetch")?mf:yf;function ru(){if(!ge||!window.IntersectionObserver)return;let e;if((e=navigator.connection)&&(e.saveData||/2g/.test(e.effectiveType)))return;const t=window.requestIdleCallback||setTimeout;let n=null;const s=()=>{n&&n.disconnect(),n=new IntersectionObserver(i=>{i.forEach(o=>{if(o.isIntersecting){const l=o.target;n.unobserve(l);const{pathname:c}=l;if(!ys.has(c)){ys.add(c);const f=of(c);f&&vf(f)}}})}),t(()=>{document.querySelectorAll("#app a").forEach(i=>{const{hostname:o,pathname:l}=new URL(i.href instanceof SVGAnimatedString?i.href.animVal:i.href,i.baseURI),c=l.match(/\.\w+$/);c&&c[0]!==".html"||i.target!=="_blank"&&o===location.hostname&&(l!==location.pathname?n.observe(i):ys.add(l))})})};Lt(s);const r=$o();Fe(()=>r.path,s),Bn(()=>{n&&n.disconnect()})}export{ki as $,lf as A,Sf as B,Ef as C,qs as D,Jf as E,Se as F,le as G,xf as H,Lo as I,$o as J,Hc as K,Ot as L,Gf as M,Ds as N,kf as O,Un as P,qf as Q,ge as R,Vn as S,Lf as T,wf as U,Zf as V,Wf as W,pc as X,Cf as Y,Ff as Z,Df as _,go as a,Nf as a0,Af as a1,Jl as a2,Xl as a3,bf as a4,If as a5,fe as a6,Mf as a7,su as a8,cf as a9,Xf as aa,nf as ab,Qf as ac,eu as ad,mt as ae,$f as af,zf as ag,of as ah,ru as ai,nu as aj,tu as ak,Ls as al,Be as am,Ro as an,jf as ao,tr as ap,Uf as aq,Kf as ar,Bf as as,Vf as at,ff as au,Pt as av,_f as aw,_n as ax,Hf as ay,Yf as az,Ms as b,Of as c,Ys as d,Pf as e,tf as f,Zr as g,ie as h,Ya as i,po as j,Ai as k,Ga as l,Oo as m,js as n,Os as o,oe as p,Fe as q,Tf as r,Zs as s,Zo as t,sf as u,Lt as v,$l as w,Bn as x,Rf as y,ec as z}; diff --git a/assets/chunks/theme.0PwJcuzq.js b/assets/chunks/theme.0PwJcuzq.js new file mode 100644 index 00000000..16832517 --- /dev/null +++ b/assets/chunks/theme.0PwJcuzq.js @@ -0,0 +1,18 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/chunks/VPLocalSearchBox.vmvtnKUe.js","assets/chunks/framework.jrU0lkHV.js"])))=>i.map(i=>d[i]); +import{u as ve,d as b,o as i,c as p,r as f,n as x,a as Q,t as N,b as w,w as v,e as k,T as Me,_ as $,i as St,f as wt,g as Ee,h as T,j as c,k as u,l as te,m as Pe,p as C,q as W,s as he,v as Z,x as re,y as Be,z as Pt,A as Lt,B as ne,F as D,C as R,D as Xe,E as me,G as S,H as G,I as Qe,J as _e,K as X,L as ie,M as Vt,N as ge,O as Le,P as Tt,Q as Ze,R as be,S as Nt,U as Ct,V as It,W as et,X as tt,Y as At,Z as Mt,$ as Et,a0 as nt,a1 as Bt,a2 as Ot,a3 as Ht,a4 as Ve,a5 as Te,a6 as Ne}from"./framework.jrU0lkHV.js";const Dt={en:{stats:"Stats",online:"Online",offline:"Offline",total:"Total",fetching:"Fetching",stars:"Stars",forks:"Forks",issues:"Issues",prs:"Pull Requests",visitors:"Visitors",size:"Size",plugins:"Plugins",resources:"Resources",pluginStore:"Plugin Store",pluginStoreDesc:"Content from the LightSnow Plugin Store, LightSnow supports NoneBot through the lpnonebot plugin, and references some NoneBot plugins",liteyukiOnly:"Liteyuki Only",search:"Search",resourceStore:"Resources Store",thx_contributors:"Thanks the following contributors!",easterEgg:"Congratulations on finding the Easter egg!",publishPlugin:"Publish Plugin",publishRes:"Publish Resource",closeButtonText:"Close",submitButtonText:"Submit",resName:"Name",resDesc:"Description",resAuthor:"Author",resLink:"Download Link",resHomepage:"Homepage",resNameText:"Example: Kawaii Style Theme",resDescText:"Example: A kawaii style and color theme",resAuthorText:"Usually the github username, Example: yanyongyu",resLinkText:"Direct download link, usually zip package link",resHomepageText:'Optional, can be the name of the git platform repository"'},zh:{stats:"统计信息",online:"在线",offline:"离线",total:"实例",fetching:"获取中",stars:"星星",forks:"分叉",issues:"议题",prs:"拉取请求",visitors:"访客",size:"大小",plugins:"插件",resources:"主题资源",store:"商店",pluginStore:"插件商店",pluginStoreDesc:"内容来自轻雪插件商店,轻雪通过lpnonebot插件对NoneBot实现支持,引用了部分NoneBot插件",liteyukiOnly:"仅轻雪",search:"搜索",resourceStore:"资源商店",thx_contributors:"感谢以下贡献者!",easterEgg:"恭喜你发现了彩蛋!",publishPlugin:"发布插件",publishRes:"发布资源",closeButtonText:"关闭",submitButtonText:"提交",resName:"名称",resDesc:"描述",resAuthor:"作者",resLink:"下载链接",resHomepage:"主页",resNameText:"示例:可爱风格主题",resDescText:"示例:一个可爱风格和配色的主题",resAuthorText:"通常为github用户名,示例:yanyongyu",resLinkText:"直接下载链接,通常为zip包链接",resHomepageText:"可选,可为git平台仓库名"}};let pe={};function ot(n,e){return n=ke(n),Dt[n][e]}function ke(n){return n.includes("-")?n.split("-")[0]:n}function xt(){const n=ke(ve().site.value.lang);for(let e in pe)pe[e].value=ot(n,e)}function j(n){const e=ke(ve().site.value.lang);return pe[n]=ot(e,n),pe[n]||n}const Ft=b({__name:"VPBadge",props:{text:{},type:{default:"tip"}},setup(n){return(e,t)=>(i(),p("span",{class:x(["VPBadge",e.type])},[f(e.$slots,"default",{},()=>[Q(N(e.text),1)])],2))}}),Rt={key:0,class:"VPBackdrop"},jt=b({__name:"VPBackdrop",props:{show:{type:Boolean}},setup(n){return(e,t)=>(i(),w(Me,{name:"fade"},{default:v(()=>[e.show?(i(),p("div",Rt)):k("",!0)]),_:1}))}}),zt=$(jt,[["__scopeId","data-v-56982ed4"]]),O=ve;function Ut(n,e){let t,s=!1;return()=>{t&&clearTimeout(t),s?t=setTimeout(n,e):(n(),(s=!0)&&setTimeout(()=>s=!1,e))}}function Ce(n){return/^\//.test(n)?n:`/${n}`}function Oe(n){const{pathname:e,search:t,hash:s,protocol:o}=new URL(n,"http://a.com");if(St(n)||n.startsWith("#")||!o.startsWith("http")||!wt(e))return n;const{site:a}=O(),l=e.endsWith("/")||e.endsWith(".html")?n:n.replace(/(?:(^\.+)\/)?.*$/,`$1${e.replace(/(\.md)?$/,a.value.cleanUrls?"":".html")}${t}${s}`);return Ee(l)}function le({correspondingLink:n=!1}={}){const{site:e,localeIndex:t,page:s,theme:o,hash:a}=O(),l=T(()=>{var d,h;return{label:(d=e.value.locales[t.value])==null?void 0:d.label,link:((h=e.value.locales[t.value])==null?void 0:h.link)||(t.value==="root"?"/":`/${t.value}/`)}});return{localeLinks:T(()=>Object.entries(e.value.locales).flatMap(([d,h])=>l.value.label===h.label?[]:{text:h.label,link:Gt(h.link||(d==="root"?"/":`/${d}/`),o.value.i18nRouting!==!1&&n,s.value.relativePath.slice(l.value.link.length-1),!e.value.cleanUrls)+a.value})),currentLang:l}}function Gt(n,e,t,s){return e?n.replace(/\/$/,"")+Ce(t.replace(/(^|\/)index\.md$/,"$1").replace(/\.md$/,s?".html":"")):n}const Kt={class:"NotFound"},Wt={class:"code"},qt={class:"title"},Jt={class:"quote"},Yt={class:"action"},Xt=["href","aria-label"],Qt=b({__name:"NotFound",setup(n){const{theme:e}=O(),{currentLang:t}=le();return(s,o)=>{var a,l,r,d,h;return i(),p("div",Kt,[c("p",Wt,N(((a=u(e).notFound)==null?void 0:a.code)??"404"),1),c("h1",qt,N(((l=u(e).notFound)==null?void 0:l.title)??"PAGE NOT FOUND"),1),o[0]||(o[0]=c("div",{class:"divider"},null,-1)),c("blockquote",Jt,N(((r=u(e).notFound)==null?void 0:r.quote)??"But if you don't change your direction, and if you keep looking, you may end up where you are heading."),1),c("div",Yt,[c("a",{class:"link",href:u(Ee)(u(t).link),"aria-label":((d=u(e).notFound)==null?void 0:d.linkLabel)??"go to home"},N(((h=u(e).notFound)==null?void 0:h.linkText)??"Take me home"),9,Xt)])])}}}),Zt=$(Qt,[["__scopeId","data-v-838f1696"]]);function st(n,e){if(Array.isArray(n))return de(n);if(n==null)return[];e=Ce(e);const t=Object.keys(n).sort((o,a)=>a.split("/").length-o.split("/").length).find(o=>e.startsWith(Ce(o))),s=t?n[t]:[];return Array.isArray(s)?de(s):de(s.items,s.base)}function en(n){const e=[];let t=0;for(const s in n){const o=n[s];if(o.items){t=e.push(o);continue}e[t]||e.push({items:[]}),e[t].items.push(o)}return e}function tn(n){const e=[];function t(s){for(const o of s)o.text&&o.link&&e.push({text:o.text,link:o.link,docFooterText:o.docFooterText}),o.items&&t(o.items)}return t(n),e}function Ie(n,e){return Array.isArray(e)?e.some(t=>Ie(n,t)):te(n,e.link)?!0:e.items?Ie(n,e.items):!1}function de(n,e){return[...n].map(t=>{const s={...t},o=s.base||e;return o&&s.link&&(s.link=o+s.link),s.items&&(s.items=de(s.items,o)),s})}function q(){const{frontmatter:n,page:e,theme:t}=O(),s=Pe("(min-width: 960px)"),o=C(!1),a=T(()=>{const M=t.value.sidebar,y=e.value.relativePath;return M?st(M,y):[]}),l=C(a.value);W(a,(M,y)=>{JSON.stringify(M)!==JSON.stringify(y)&&(l.value=a.value)});const r=T(()=>n.value.sidebar!==!1&&l.value.length>0&&n.value.layout!=="home"),d=T(()=>h?n.value.aside==null?t.value.aside==="left":n.value.aside==="left":!1),h=T(()=>n.value.layout==="home"?!1:n.value.aside!=null?!!n.value.aside:t.value.aside!==!1),_=T(()=>r.value&&s.value),m=T(()=>r.value?en(l.value):[]);function g(){o.value=!0}function I(){o.value=!1}function V(){o.value?I():g()}return{isOpen:o,sidebar:l,sidebarGroups:m,hasSidebar:r,hasAside:h,leftAside:d,isSidebarEnabled:_,open:g,close:I,toggle:V}}function nn(n,e){let t;he(()=>{t=n.value?document.activeElement:void 0}),Z(()=>{window.addEventListener("keyup",s)}),re(()=>{window.removeEventListener("keyup",s)});function s(o){o.key==="Escape"&&n.value&&(e(),t==null||t.focus())}}function on(n){const{page:e,hash:t}=O(),s=C(!1),o=T(()=>n.value.collapsed!=null),a=T(()=>!!n.value.link),l=C(!1),r=()=>{l.value=te(e.value.relativePath,n.value.link)};W([e,n,t],r),Z(r);const d=T(()=>l.value?!0:n.value.items?Ie(e.value.relativePath,n.value.items):!1),h=T(()=>!!(n.value.items&&n.value.items.length));he(()=>{s.value=!!(o.value&&n.value.collapsed)}),Be(()=>{(l.value||d.value)&&(s.value=!1)});function _(){o.value&&(s.value=!s.value)}return{collapsed:s,collapsible:o,isLink:a,isActiveLink:l,hasActiveLink:d,hasChildren:h,toggle:_}}function sn(){const{hasSidebar:n}=q(),e=Pe("(min-width: 960px)"),t=Pe("(min-width: 1280px)");return{isAsideEnabled:T(()=>!t.value&&!e.value?!1:n.value?t.value:e.value)}}const Ae=[];function at(n){return typeof n.outline=="object"&&!Array.isArray(n.outline)&&n.outline.label||n.outlineTitle||"On this page"}function He(n){const e=[...document.querySelectorAll(".VPDoc :where(h1,h2,h3,h4,h5,h6)")].filter(t=>t.id&&t.hasChildNodes()).map(t=>{const s=Number(t.tagName[1]);return{element:t,title:an(t),link:"#"+t.id,level:s}});return rn(e,n)}function an(n){let e="";for(const t of n.childNodes)if(t.nodeType===1){if(t.classList.contains("VPBadge")||t.classList.contains("header-anchor")||t.classList.contains("ignore-header"))continue;e+=t.textContent}else t.nodeType===3&&(e+=t.textContent);return e.trim()}function rn(n,e){if(e===!1)return[];const t=(typeof e=="object"&&!Array.isArray(e)?e.level:e)||2,[s,o]=typeof t=="number"?[t,t]:t==="deep"?[2,6]:t;return cn(n,s,o)}function ln(n,e){const{isAsideEnabled:t}=sn(),s=Ut(a,100);let o=null;Z(()=>{requestAnimationFrame(a),window.addEventListener("scroll",s)}),Pt(()=>{l(location.hash)}),re(()=>{window.removeEventListener("scroll",s)});function a(){if(!t.value)return;const r=window.scrollY,d=window.innerHeight,h=document.body.offsetHeight,_=Math.abs(r+d-h)<1,m=Ae.map(({element:I,link:V})=>({link:V,top:un(I)})).filter(({top:I})=>!Number.isNaN(I)).sort((I,V)=>I.top-V.top);if(!m.length){l(null);return}if(r<1){l(null);return}if(_){l(m[m.length-1].link);return}let g=null;for(const{link:I,top:V}of m){if(V>r+Lt()+4)break;g=I}l(g)}function l(r){o&&o.classList.remove("active"),r==null?o=null:o=n.value.querySelector(`a[href="${decodeURIComponent(r)}"]`);const d=o;d?(d.classList.add("active"),e.value.style.top=d.offsetTop+39+"px",e.value.style.opacity="1"):(e.value.style.top="33px",e.value.style.opacity="0")}}function un(n){let e=0;for(;n!==document.body;){if(n===null)return NaN;e+=n.offsetTop,n=n.offsetParent}return e}function cn(n,e,t){Ae.length=0;const s=[],o=[];return n.forEach(a=>{const l={...a,children:[]};let r=o[o.length-1];for(;r&&r.level>=l.level;)o.pop(),r=o[o.length-1];if(l.element.classList.contains("ignore-header")||r&&"shouldIgnore"in r){o.push({level:l.level,shouldIgnore:!0});return}l.level>t||l.level{const o=ne("VPDocOutlineItem",!0);return i(),p("ul",{class:x(["VPDocOutlineItem",t.root?"root":"nested"])},[(i(!0),p(D,null,R(t.headers,({children:a,link:l,title:r})=>(i(),p("li",null,[c("a",{class:"outline-link",href:l,onClick:e,title:r},N(r),9,dn),a!=null&&a.length?(i(),w(o,{key:0,headers:a},null,8,["headers"])):k("",!0)]))),256))],2)}}}),rt=$(pn,[["__scopeId","data-v-8eab9d68"]]),fn={class:"content"},vn={"aria-level":"2",class:"outline-title",id:"doc-outline-aria-label",role:"heading"},hn=b({__name:"VPDocAsideOutline",setup(n){const{frontmatter:e,theme:t}=O(),s=Xe([]);me(()=>{s.value=He(e.value.outline??t.value.outline)});const o=C(),a=C();return ln(o,a),(l,r)=>(i(),p("nav",{"aria-labelledby":"doc-outline-aria-label",class:x(["VPDocAsideOutline",{"has-outline":s.value.length>0}]),ref_key:"container",ref:o},[c("div",fn,[c("div",{class:"outline-marker",ref_key:"marker",ref:a},null,512),c("div",vn,N(u(at)(u(t))),1),S(rt,{headers:s.value,root:!0},null,8,["headers"])])],2))}}),mn=$(hn,[["__scopeId","data-v-13e7f6e7"]]),_n={class:"VPDocAsideCarbonAds"},gn=b({__name:"VPDocAsideCarbonAds",props:{carbonAds:{}},setup(n){const e=()=>null;return(t,s)=>(i(),p("div",_n,[S(u(e),{"carbon-ads":t.carbonAds},null,8,["carbon-ads"])]))}}),bn={class:"VPDocAside"},kn=b({__name:"VPDocAside",setup(n){const{theme:e}=O();return(t,s)=>(i(),p("div",bn,[f(t.$slots,"aside-top",{},void 0,!0),f(t.$slots,"aside-outline-before",{},void 0,!0),S(mn),f(t.$slots,"aside-outline-after",{},void 0,!0),s[0]||(s[0]=c("div",{class:"spacer"},null,-1)),f(t.$slots,"aside-ads-before",{},void 0,!0),u(e).carbonAds?(i(),w(gn,{key:0,"carbon-ads":u(e).carbonAds},null,8,["carbon-ads"])):k("",!0),f(t.$slots,"aside-ads-after",{},void 0,!0),f(t.$slots,"aside-bottom",{},void 0,!0)]))}}),yn=$(kn,[["__scopeId","data-v-ceccf741"]]);function $n(){const{theme:n,page:e}=O();return T(()=>{const{text:t="Edit this page",pattern:s=""}=n.value.editLink||{};let o;return typeof s=="function"?o=s(e.value):o=s.replace(/:path/g,e.value.filePath),{url:o,text:t}})}function Sn(){const{page:n,theme:e,frontmatter:t}=O();return T(()=>{var h,_,m,g,I,V,M,y;const s=st(e.value.sidebar,n.value.relativePath),o=tn(s),a=wn(o,F=>F.link.replace(/[?#].*$/,"")),l=a.findIndex(F=>te(n.value.relativePath,F.link)),r=((h=e.value.docFooter)==null?void 0:h.prev)===!1&&!t.value.prev||t.value.prev===!1,d=((_=e.value.docFooter)==null?void 0:_.next)===!1&&!t.value.next||t.value.next===!1;return{prev:r?void 0:{text:(typeof t.value.prev=="string"?t.value.prev:typeof t.value.prev=="object"?t.value.prev.text:void 0)??((m=a[l-1])==null?void 0:m.docFooterText)??((g=a[l-1])==null?void 0:g.text),link:(typeof t.value.prev=="object"?t.value.prev.link:void 0)??((I=a[l-1])==null?void 0:I.link)},next:d?void 0:{text:(typeof t.value.next=="string"?t.value.next:typeof t.value.next=="object"?t.value.next.text:void 0)??((V=a[l+1])==null?void 0:V.docFooterText)??((M=a[l+1])==null?void 0:M.text),link:(typeof t.value.next=="object"?t.value.next.link:void 0)??((y=a[l+1])==null?void 0:y.link)}}})}function wn(n,e){const t=new Set;return n.filter(s=>{const o=e(s);return t.has(o)?!1:t.add(o)})}const K=b({__name:"VPLink",props:{tag:{},href:{},noIcon:{type:Boolean},target:{},rel:{}},setup(n){const e=n,t=T(()=>e.tag??(e.href?"a":"span")),s=T(()=>e.href&&Qe.test(e.href)||e.target==="_blank");return(o,a)=>(i(),w(G(t.value),{class:x(["VPLink",{link:o.href,"vp-external-link-icon":s.value,"no-icon":o.noIcon}]),href:o.href?u(Oe)(o.href):void 0,target:o.target??(s.value?"_blank":void 0),rel:o.rel??(s.value?"noreferrer":void 0)},{default:v(()=>[f(o.$slots,"default")]),_:3},8,["class","href","target","rel"]))}}),Pn={class:"VPLastUpdated"},Ln=["datetime"],Vn=b({__name:"VPDocFooterLastUpdated",setup(n){const{theme:e,page:t,lang:s}=O(),o=T(()=>new Date(t.value.lastUpdated)),a=T(()=>o.value.toISOString()),l=C("");return Z(()=>{he(()=>{var r,d,h;l.value=new Intl.DateTimeFormat((d=(r=e.value.lastUpdated)==null?void 0:r.formatOptions)!=null&&d.forceLocale?s.value:void 0,((h=e.value.lastUpdated)==null?void 0:h.formatOptions)??{dateStyle:"short",timeStyle:"short"}).format(o.value)})}),(r,d)=>{var h;return i(),p("p",Pn,[Q(N(((h=u(e).lastUpdated)==null?void 0:h.text)||u(e).lastUpdatedText||"Last updated")+": ",1),c("time",{datetime:a.value},N(l.value),9,Ln)])}}}),Tn=$(Vn,[["__scopeId","data-v-4967a5ea"]]),Nn={key:0,class:"VPDocFooter"},Cn={key:0,class:"edit-info"},In={key:0,class:"edit-link"},An={key:1,class:"last-updated"},Mn={key:1,class:"prev-next","aria-labelledby":"doc-footer-aria-label"},En={class:"pager"},Bn=["innerHTML"],On=["innerHTML"],Hn={class:"pager"},Dn=["innerHTML"],xn=["innerHTML"],Fn=b({__name:"VPDocFooter",setup(n){const{theme:e,page:t,frontmatter:s}=O(),o=$n(),a=Sn(),l=T(()=>e.value.editLink&&s.value.editLink!==!1),r=T(()=>t.value.lastUpdated),d=T(()=>l.value||r.value||a.value.prev||a.value.next);return(h,_)=>{var m,g,I,V;return d.value?(i(),p("footer",Nn,[f(h.$slots,"doc-footer-before",{},void 0,!0),l.value||r.value?(i(),p("div",Cn,[l.value?(i(),p("div",In,[S(K,{class:"edit-link-button",href:u(o).url,"no-icon":!0},{default:v(()=>[_[0]||(_[0]=c("span",{class:"vpi-square-pen edit-link-icon"},null,-1)),Q(" "+N(u(o).text),1)]),_:1},8,["href"])])):k("",!0),r.value?(i(),p("div",An,[S(Tn)])):k("",!0)])):k("",!0),(m=u(a).prev)!=null&&m.link||(g=u(a).next)!=null&&g.link?(i(),p("nav",Mn,[_[1]||(_[1]=c("span",{class:"visually-hidden",id:"doc-footer-aria-label"},"Pager",-1)),c("div",En,[(I=u(a).prev)!=null&&I.link?(i(),w(K,{key:0,class:"pager-link prev",href:u(a).prev.link},{default:v(()=>{var M;return[c("span",{class:"desc",innerHTML:((M=u(e).docFooter)==null?void 0:M.prev)||"Previous page"},null,8,Bn),c("span",{class:"title",innerHTML:u(a).prev.text},null,8,On)]}),_:1},8,["href"])):k("",!0)]),c("div",Hn,[(V=u(a).next)!=null&&V.link?(i(),w(K,{key:0,class:"pager-link next",href:u(a).next.link},{default:v(()=>{var M;return[c("span",{class:"desc",innerHTML:((M=u(e).docFooter)==null?void 0:M.next)||"Next page"},null,8,Dn),c("span",{class:"title",innerHTML:u(a).next.text},null,8,xn)]}),_:1},8,["href"])):k("",!0)])])):k("",!0)])):k("",!0)}}}),Rn=$(Fn,[["__scopeId","data-v-ae614b68"]]),jn={class:"container"},zn={class:"aside-container"},Un={class:"aside-content"},Gn={class:"content"},Kn={class:"content-container"},Wn={class:"main"},qn=b({__name:"VPDoc",setup(n){const{theme:e}=O(),t=_e(),{hasSidebar:s,hasAside:o,leftAside:a}=q(),l=T(()=>t.path.replace(/[./]+/g,"_").replace(/_html$/,""));return(r,d)=>{const h=ne("Content");return i(),p("div",{class:x(["VPDoc",{"has-sidebar":u(s),"has-aside":u(o)}])},[f(r.$slots,"doc-top",{},void 0,!0),c("div",jn,[u(o)?(i(),p("div",{key:0,class:x(["aside",{"left-aside":u(a)}])},[d[0]||(d[0]=c("div",{class:"aside-curtain"},null,-1)),c("div",zn,[c("div",Un,[S(yn,null,{"aside-top":v(()=>[f(r.$slots,"aside-top",{},void 0,!0)]),"aside-bottom":v(()=>[f(r.$slots,"aside-bottom",{},void 0,!0)]),"aside-outline-before":v(()=>[f(r.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":v(()=>[f(r.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":v(()=>[f(r.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":v(()=>[f(r.$slots,"aside-ads-after",{},void 0,!0)]),_:3})])])],2)):k("",!0),c("div",Gn,[c("div",Kn,[f(r.$slots,"doc-before",{},void 0,!0),c("main",Wn,[S(h,{class:x(["vp-doc",[l.value,u(e).externalLinkIcon&&"external-link-icon-enabled"]])},null,8,["class"])]),S(Rn,null,{"doc-footer-before":v(()=>[f(r.$slots,"doc-footer-before",{},void 0,!0)]),_:3}),f(r.$slots,"doc-after",{},void 0,!0)])])]),f(r.$slots,"doc-bottom",{},void 0,!0)],2)}}}),Jn=$(qn,[["__scopeId","data-v-720a8890"]]),Yn=b({__name:"VPButton",props:{tag:{},size:{default:"medium"},theme:{default:"brand"},text:{},href:{},target:{},rel:{}},setup(n){const e=n,t=T(()=>e.href&&Qe.test(e.href)),s=T(()=>e.tag||(e.href?"a":"button"));return(o,a)=>(i(),w(G(s.value),{class:x(["VPButton",[o.size,o.theme]]),href:o.href?u(Oe)(o.href):void 0,target:e.target??(t.value?"_blank":void 0),rel:e.rel??(t.value?"noreferrer":void 0)},{default:v(()=>[Q(N(o.text),1)]),_:1},8,["class","href","target","rel"]))}}),Xn=$(Yn,[["__scopeId","data-v-70a298c4"]]),Qn=["src","alt"],Zn=b({inheritAttrs:!1,__name:"VPImage",props:{image:{},alt:{}},setup(n){return(e,t)=>{const s=ne("VPImage",!0);return e.image?(i(),p(D,{key:0},[typeof e.image=="string"||"src"in e.image?(i(),p("img",X({key:0,class:"VPImage"},typeof e.image=="string"?e.$attrs:{...e.image,...e.$attrs},{src:u(Ee)(typeof e.image=="string"?e.image:e.image.src),alt:e.alt??(typeof e.image=="string"?"":e.image.alt||"")}),null,16,Qn)):(i(),p(D,{key:1},[S(s,X({class:"dark",image:e.image.dark,alt:e.image.alt},e.$attrs),null,16,["image","alt"]),S(s,X({class:"light",image:e.image.light,alt:e.image.alt},e.$attrs),null,16,["image","alt"])],64))],64)):k("",!0)}}}),fe=$(Zn,[["__scopeId","data-v-0fb6b2b9"]]),eo={class:"container"},to={class:"main"},no={key:0,class:"name"},oo=["innerHTML"],so=["innerHTML"],ao=["innerHTML"],ro={key:0,class:"actions"},io={key:0,class:"image"},lo={class:"image-container"},uo=b({__name:"VPHero",props:{name:{},text:{},tagline:{},image:{},actions:{}},setup(n){const e=ie("hero-image-slot-exists");return(t,s)=>(i(),p("div",{class:x(["VPHero",{"has-image":t.image||u(e)}])},[c("div",eo,[c("div",to,[f(t.$slots,"home-hero-info-before",{},void 0,!0),f(t.$slots,"home-hero-info",{},()=>[t.name?(i(),p("h1",no,[c("span",{innerHTML:t.name,class:"clip"},null,8,oo)])):k("",!0),t.text?(i(),p("p",{key:1,innerHTML:t.text,class:"text"},null,8,so)):k("",!0),t.tagline?(i(),p("p",{key:2,innerHTML:t.tagline,class:"tagline"},null,8,ao)):k("",!0)],!0),f(t.$slots,"home-hero-info-after",{},void 0,!0),t.actions?(i(),p("div",ro,[(i(!0),p(D,null,R(t.actions,o=>(i(),p("div",{key:o.link,class:"action"},[S(Xn,{tag:"a",size:"medium",theme:o.theme,text:o.text,href:o.link,target:o.target,rel:o.rel},null,8,["theme","text","href","target","rel"])]))),128))])):k("",!0),f(t.$slots,"home-hero-actions-after",{},void 0,!0)]),t.image||u(e)?(i(),p("div",io,[c("div",lo,[s[0]||(s[0]=c("div",{class:"image-bg"},null,-1)),f(t.$slots,"home-hero-image",{},()=>[t.image?(i(),w(fe,{key:0,class:"image-src",image:t.image},null,8,["image"])):k("",!0)],!0)])])):k("",!0)])],2))}}),co=$(uo,[["__scopeId","data-v-5bacb0e4"]]),po=b({__name:"VPHomeHero",setup(n){const{frontmatter:e}=O();return(t,s)=>u(e).hero?(i(),w(co,{key:0,class:"VPHomeHero",name:u(e).hero.name,text:u(e).hero.text,tagline:u(e).hero.tagline,image:u(e).hero.image,actions:u(e).hero.actions},{"home-hero-info-before":v(()=>[f(t.$slots,"home-hero-info-before")]),"home-hero-info":v(()=>[f(t.$slots,"home-hero-info")]),"home-hero-info-after":v(()=>[f(t.$slots,"home-hero-info-after")]),"home-hero-actions-after":v(()=>[f(t.$slots,"home-hero-actions-after")]),"home-hero-image":v(()=>[f(t.$slots,"home-hero-image")]),_:3},8,["name","text","tagline","image","actions"])):k("",!0)}}),fo={class:"box"},vo={key:0,class:"icon"},ho=["innerHTML"],mo=["innerHTML"],_o=["innerHTML"],go={key:4,class:"link-text"},bo={class:"link-text-value"},ko=b({__name:"VPFeature",props:{icon:{},title:{},details:{},link:{},linkText:{},rel:{},target:{}},setup(n){return(e,t)=>(i(),w(K,{class:"VPFeature",href:e.link,rel:e.rel,target:e.target,"no-icon":!0,tag:e.link?"a":"div"},{default:v(()=>[c("article",fo,[typeof e.icon=="object"&&e.icon.wrap?(i(),p("div",vo,[S(fe,{image:e.icon,alt:e.icon.alt,height:e.icon.height||48,width:e.icon.width||48},null,8,["image","alt","height","width"])])):typeof e.icon=="object"?(i(),w(fe,{key:1,image:e.icon,alt:e.icon.alt,height:e.icon.height||48,width:e.icon.width||48},null,8,["image","alt","height","width"])):e.icon?(i(),p("div",{key:2,class:"icon",innerHTML:e.icon},null,8,ho)):k("",!0),c("h2",{class:"title",innerHTML:e.title},null,8,mo),e.details?(i(),p("p",{key:3,class:"details",innerHTML:e.details},null,8,_o)):k("",!0),e.linkText?(i(),p("div",go,[c("p",bo,[Q(N(e.linkText)+" ",1),t[0]||(t[0]=c("span",{class:"vpi-arrow-right link-text-icon"},null,-1))])])):k("",!0)])]),_:1},8,["href","rel","target","tag"]))}}),yo=$(ko,[["__scopeId","data-v-9ab683b9"]]),$o={key:0,class:"VPFeatures"},So={class:"container"},wo={class:"items"},Po=b({__name:"VPFeatures",props:{features:{}},setup(n){const e=n,t=T(()=>{const s=e.features.length;if(s){if(s===2)return"grid-2";if(s===3)return"grid-3";if(s%3===0)return"grid-6";if(s>3)return"grid-4"}else return});return(s,o)=>s.features?(i(),p("div",$o,[c("div",So,[c("div",wo,[(i(!0),p(D,null,R(s.features,a=>(i(),p("div",{key:a.title,class:x(["item",[t.value]])},[S(yo,{icon:a.icon,title:a.title,details:a.details,link:a.link,"link-text":a.linkText,rel:a.rel,target:a.target},null,8,["icon","title","details","link","link-text","rel","target"])],2))),128))])])])):k("",!0)}}),Lo=$(Po,[["__scopeId","data-v-865a0111"]]),Vo=b({__name:"VPHomeFeatures",setup(n){const{frontmatter:e}=O();return(t,s)=>u(e).features?(i(),w(Lo,{key:0,class:"VPHomeFeatures",features:u(e).features},null,8,["features"])):k("",!0)}}),To=b({__name:"VPHomeContent",setup(n){const{width:e}=Vt({initialWidth:0,includeScrollbar:!1});return(t,s)=>(i(),p("div",{class:"vp-doc container",style:ge(u(e)?{"--vp-offset":`calc(50% - ${u(e)/2}px)`}:{})},[f(t.$slots,"default",{},void 0,!0)],4))}}),No=$(To,[["__scopeId","data-v-db2315e1"]]),Co={class:"VPHome"},Io=b({__name:"VPHome",setup(n){const{frontmatter:e}=O();return(t,s)=>{const o=ne("Content");return i(),p("div",Co,[f(t.$slots,"home-hero-before",{},void 0,!0),S(po,null,{"home-hero-info-before":v(()=>[f(t.$slots,"home-hero-info-before",{},void 0,!0)]),"home-hero-info":v(()=>[f(t.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-info-after":v(()=>[f(t.$slots,"home-hero-info-after",{},void 0,!0)]),"home-hero-actions-after":v(()=>[f(t.$slots,"home-hero-actions-after",{},void 0,!0)]),"home-hero-image":v(()=>[f(t.$slots,"home-hero-image",{},void 0,!0)]),_:3}),f(t.$slots,"home-hero-after",{},void 0,!0),f(t.$slots,"home-features-before",{},void 0,!0),S(Vo),f(t.$slots,"home-features-after",{},void 0,!0),u(e).markdownStyles!==!1?(i(),w(No,{key:0},{default:v(()=>[S(o)]),_:1})):(i(),w(o,{key:1}))])}}}),Ao=$(Io,[["__scopeId","data-v-5b103178"]]),Mo={},Eo={class:"VPPage"};function Bo(n,e){const t=ne("Content");return i(),p("div",Eo,[f(n.$slots,"page-top"),S(t),f(n.$slots,"page-bottom")])}const Oo=$(Mo,[["render",Bo]]),Ho=b({__name:"VPContent",setup(n){const{page:e,frontmatter:t}=O(),{hasSidebar:s}=q();return(o,a)=>(i(),p("div",{class:x(["VPContent",{"has-sidebar":u(s),"is-home":u(t).layout==="home"}]),id:"VPContent"},[u(e).isNotFound?f(o.$slots,"not-found",{key:0},()=>[S(Zt)],!0):u(t).layout==="page"?(i(),w(Oo,{key:1},{"page-top":v(()=>[f(o.$slots,"page-top",{},void 0,!0)]),"page-bottom":v(()=>[f(o.$slots,"page-bottom",{},void 0,!0)]),_:3})):u(t).layout==="home"?(i(),w(Ao,{key:2},{"home-hero-before":v(()=>[f(o.$slots,"home-hero-before",{},void 0,!0)]),"home-hero-info-before":v(()=>[f(o.$slots,"home-hero-info-before",{},void 0,!0)]),"home-hero-info":v(()=>[f(o.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-info-after":v(()=>[f(o.$slots,"home-hero-info-after",{},void 0,!0)]),"home-hero-actions-after":v(()=>[f(o.$slots,"home-hero-actions-after",{},void 0,!0)]),"home-hero-image":v(()=>[f(o.$slots,"home-hero-image",{},void 0,!0)]),"home-hero-after":v(()=>[f(o.$slots,"home-hero-after",{},void 0,!0)]),"home-features-before":v(()=>[f(o.$slots,"home-features-before",{},void 0,!0)]),"home-features-after":v(()=>[f(o.$slots,"home-features-after",{},void 0,!0)]),_:3})):u(t).layout&&u(t).layout!=="doc"?(i(),w(G(u(t).layout),{key:3})):(i(),w(Jn,{key:4},{"doc-top":v(()=>[f(o.$slots,"doc-top",{},void 0,!0)]),"doc-bottom":v(()=>[f(o.$slots,"doc-bottom",{},void 0,!0)]),"doc-footer-before":v(()=>[f(o.$slots,"doc-footer-before",{},void 0,!0)]),"doc-before":v(()=>[f(o.$slots,"doc-before",{},void 0,!0)]),"doc-after":v(()=>[f(o.$slots,"doc-after",{},void 0,!0)]),"aside-top":v(()=>[f(o.$slots,"aside-top",{},void 0,!0)]),"aside-outline-before":v(()=>[f(o.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":v(()=>[f(o.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":v(()=>[f(o.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":v(()=>[f(o.$slots,"aside-ads-after",{},void 0,!0)]),"aside-bottom":v(()=>[f(o.$slots,"aside-bottom",{},void 0,!0)]),_:3}))],2))}}),Do=$(Ho,[["__scopeId","data-v-75058cb9"]]),xo={class:"container"},Fo=["innerHTML"],Ro=["innerHTML"],jo=b({__name:"VPFooter",setup(n){const{theme:e,frontmatter:t}=O(),{hasSidebar:s}=q();return(o,a)=>u(e).footer&&u(t).footer!==!1?(i(),p("footer",{key:0,class:x(["VPFooter",{"has-sidebar":u(s)}])},[c("div",xo,[u(e).footer.message?(i(),p("p",{key:0,class:"message",innerHTML:u(e).footer.message},null,8,Fo)):k("",!0),u(e).footer.copyright?(i(),p("p",{key:1,class:"copyright",innerHTML:u(e).footer.copyright},null,8,Ro)):k("",!0)])],2)):k("",!0)}}),zo=$(jo,[["__scopeId","data-v-d6cdff98"]]);function Uo(){const{theme:n,frontmatter:e}=O(),t=Xe([]),s=T(()=>t.value.length>0);return me(()=>{t.value=He(e.value.outline??n.value.outline)}),{headers:t,hasLocalNav:s}}const Go={class:"menu-text"},Ko={class:"header"},Wo={class:"outline"},qo=b({__name:"VPLocalNavOutlineDropdown",props:{headers:{},navHeight:{}},setup(n){const e=n,{theme:t}=O(),s=C(!1),o=C(0),a=C(),l=C();function r(m){var g;(g=a.value)!=null&&g.contains(m.target)||(s.value=!1)}W(s,m=>{if(m){document.addEventListener("click",r);return}document.removeEventListener("click",r)}),Le("Escape",()=>{s.value=!1}),me(()=>{s.value=!1});function d(){s.value=!s.value,o.value=window.innerHeight+Math.min(window.scrollY-e.navHeight,0)}function h(m){m.target.classList.contains("outline-link")&&(l.value&&(l.value.style.transition="none"),Tt(()=>{s.value=!1}))}function _(){s.value=!1,window.scrollTo({top:0,left:0,behavior:"smooth"})}return(m,g)=>(i(),p("div",{class:"VPLocalNavOutlineDropdown",style:ge({"--vp-vh":o.value+"px"}),ref_key:"main",ref:a},[m.headers.length>0?(i(),p("button",{key:0,onClick:d,class:x({open:s.value})},[c("span",Go,N(u(at)(u(t))),1),g[0]||(g[0]=c("span",{class:"vpi-chevron-right icon"},null,-1))],2)):(i(),p("button",{key:1,onClick:_},N(u(t).returnToTopLabel||"Return to top"),1)),S(Me,{name:"flyout"},{default:v(()=>[s.value?(i(),p("div",{key:0,ref_key:"items",ref:l,class:"items",onClick:h},[c("div",Ko,[c("a",{class:"top-link",href:"#",onClick:_},N(u(t).returnToTopLabel||"Return to top"),1)]),c("div",Wo,[S(rt,{headers:m.headers},null,8,["headers"])])],512)):k("",!0)]),_:1})],4))}}),Jo=$(qo,[["__scopeId","data-v-d9b155a3"]]),Yo={class:"container"},Xo=["aria-expanded"],Qo={class:"menu-text"},Zo=b({__name:"VPLocalNav",props:{open:{type:Boolean}},emits:["open-menu"],setup(n){const{theme:e,frontmatter:t}=O(),{hasSidebar:s}=q(),{headers:o}=Uo(),{y:a}=Ze(),l=C(0);Z(()=>{l.value=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--vp-nav-height"))}),me(()=>{o.value=He(t.value.outline??e.value.outline)});const r=T(()=>o.value.length===0),d=T(()=>r.value&&!s.value),h=T(()=>({VPLocalNav:!0,"has-sidebar":s.value,empty:r.value,fixed:d.value}));return(_,m)=>u(t).layout!=="home"&&(!d.value||u(a)>=l.value)?(i(),p("div",{key:0,class:x(h.value)},[c("div",Yo,[u(s)?(i(),p("button",{key:0,class:"menu","aria-expanded":_.open,"aria-controls":"VPSidebarNav",onClick:m[0]||(m[0]=g=>_.$emit("open-menu"))},[m[1]||(m[1]=c("span",{class:"vpi-align-left menu-icon"},null,-1)),c("span",Qo,N(u(e).sidebarMenuLabel||"Menu"),1)],8,Xo)):k("",!0),S(Jo,{headers:u(o),navHeight:l.value},null,8,["headers","navHeight"])])],2)):k("",!0)}}),es=$(Zo,[["__scopeId","data-v-25ccf56c"]]);function ts(){const n=C(!1);function e(){n.value=!0,window.addEventListener("resize",o)}function t(){n.value=!1,window.removeEventListener("resize",o)}function s(){n.value?t():e()}function o(){window.outerWidth>=768&&t()}const a=_e();return W(()=>a.path,t),{isScreenOpen:n,openScreen:e,closeScreen:t,toggleScreen:s}}const ns={},os={class:"VPSwitch",type:"button",role:"switch"},ss={class:"check"},as={key:0,class:"icon"};function rs(n,e){return i(),p("button",os,[c("span",ss,[n.$slots.default?(i(),p("span",as,[f(n.$slots,"default",{},void 0,!0)])):k("",!0)])])}const is=$(ns,[["render",rs],["__scopeId","data-v-afa34961"]]),ls=b({__name:"VPSwitchAppearance",setup(n){const{isDark:e,theme:t}=O(),s=ie("toggle-appearance",()=>{e.value=!e.value}),o=C("");return Be(()=>{o.value=e.value?t.value.lightModeSwitchTitle||"Switch to light theme":t.value.darkModeSwitchTitle||"Switch to dark theme"}),(a,l)=>(i(),w(is,{title:o.value,class:"VPSwitchAppearance","aria-checked":u(e),onClick:u(s)},{default:v(()=>l[0]||(l[0]=[c("span",{class:"vpi-sun sun"},null,-1),c("span",{class:"vpi-moon moon"},null,-1)])),_:1},8,["title","aria-checked","onClick"]))}}),De=$(ls,[["__scopeId","data-v-ba5c08ea"]]),us={key:0,class:"VPNavBarAppearance"},cs=b({__name:"VPNavBarAppearance",setup(n){const{site:e}=O();return(t,s)=>u(e).appearance&&u(e).appearance!=="force-dark"&&u(e).appearance!=="force-auto"?(i(),p("div",us,[S(De)])):k("",!0)}}),ds=$(cs,[["__scopeId","data-v-8557f7cd"]]),xe=C();let it=!1,we=0;function ps(n){const e=C(!1);if(be){!it&&fs(),we++;const t=W(xe,s=>{var o,a,l;s===n.el.value||(o=n.el.value)!=null&&o.contains(s)?(e.value=!0,(a=n.onFocus)==null||a.call(n)):(e.value=!1,(l=n.onBlur)==null||l.call(n))});re(()=>{t(),we--,we||vs()})}return Nt(e)}function fs(){document.addEventListener("focusin",lt),it=!0,xe.value=document.activeElement}function vs(){document.removeEventListener("focusin",lt)}function lt(){xe.value=document.activeElement}const hs={class:"VPMenuLink"},ms=["innerHTML"],_s=b({__name:"VPMenuLink",props:{item:{}},setup(n){const{page:e}=O();return(t,s)=>(i(),p("div",hs,[S(K,{class:x({active:u(te)(u(e).relativePath,t.item.activeMatch||t.item.link,!!t.item.activeMatch)}),href:t.item.link,target:t.item.target,rel:t.item.rel,"no-icon":t.item.noIcon},{default:v(()=>[c("span",{innerHTML:t.item.text},null,8,ms)]),_:1},8,["class","href","target","rel","no-icon"])]))}}),ye=$(_s,[["__scopeId","data-v-95de8a01"]]),gs={class:"VPMenuGroup"},bs={key:0,class:"title"},ks=b({__name:"VPMenuGroup",props:{text:{},items:{}},setup(n){return(e,t)=>(i(),p("div",gs,[e.text?(i(),p("p",bs,N(e.text),1)):k("",!0),(i(!0),p(D,null,R(e.items,s=>(i(),p(D,null,["link"in s?(i(),w(ye,{key:0,item:s},null,8,["item"])):k("",!0)],64))),256))]))}}),ys=$(ks,[["__scopeId","data-v-73d2e32a"]]),$s={class:"VPMenu"},Ss={key:0,class:"items"},ws=b({__name:"VPMenu",props:{items:{}},setup(n){return(e,t)=>(i(),p("div",$s,[e.items?(i(),p("div",Ss,[(i(!0),p(D,null,R(e.items,s=>(i(),p(D,{key:JSON.stringify(s)},["link"in s?(i(),w(ye,{key:0,item:s},null,8,["item"])):"component"in s?(i(),w(G(s.component),X({key:1,ref_for:!0},s.props),null,16)):(i(),w(ys,{key:2,text:s.text,items:s.items},null,8,["text","items"]))],64))),128))])):k("",!0),f(e.$slots,"default",{},void 0,!0)]))}}),Ps=$(ws,[["__scopeId","data-v-a190a078"]]),Ls=["aria-expanded","aria-label"],Vs={key:0,class:"text"},Ts=["innerHTML"],Ns={key:1,class:"vpi-more-horizontal icon"},Cs={class:"menu"},Is=b({__name:"VPFlyout",props:{icon:{},button:{},label:{},items:{}},setup(n){const e=C(!1),t=C();ps({el:t,onBlur:s});function s(){e.value=!1}return(o,a)=>(i(),p("div",{class:"VPFlyout",ref_key:"el",ref:t,onMouseenter:a[1]||(a[1]=l=>e.value=!0),onMouseleave:a[2]||(a[2]=l=>e.value=!1)},[c("button",{type:"button",class:"button","aria-haspopup":"true","aria-expanded":e.value,"aria-label":o.label,onClick:a[0]||(a[0]=l=>e.value=!e.value)},[o.button||o.icon?(i(),p("span",Vs,[o.icon?(i(),p("span",{key:0,class:x([o.icon,"option-icon"])},null,2)):k("",!0),o.button?(i(),p("span",{key:1,innerHTML:o.button},null,8,Ts)):k("",!0),a[3]||(a[3]=c("span",{class:"vpi-chevron-down text-icon"},null,-1))])):(i(),p("span",Ns))],8,Ls),c("div",Cs,[S(Ps,{items:o.items},{default:v(()=>[f(o.$slots,"default",{},void 0,!0)]),_:3},8,["items"])])],544))}}),Fe=$(Is,[["__scopeId","data-v-b04809c3"]]),As=["href","aria-label","innerHTML"],Ms=b({__name:"VPSocialLink",props:{icon:{},link:{},ariaLabel:{}},setup(n){const e=n,t=T(()=>typeof e.icon=="object"?e.icon.svg:``);return(s,o)=>(i(),p("a",{class:"VPSocialLink no-icon",href:s.link,"aria-label":s.ariaLabel??(typeof s.icon=="string"?s.icon:""),target:"_blank",rel:"noopener",innerHTML:t.value},null,8,As))}}),Es=$(Ms,[["__scopeId","data-v-2de8af25"]]),Bs={class:"VPSocialLinks"},Os=b({__name:"VPSocialLinks",props:{links:{}},setup(n){return(e,t)=>(i(),p("div",Bs,[(i(!0),p(D,null,R(e.links,({link:s,icon:o,ariaLabel:a})=>(i(),w(Es,{key:s,icon:o,link:s,ariaLabel:a},null,8,["icon","link","ariaLabel"]))),128))]))}}),Re=$(Os,[["__scopeId","data-v-3accd626"]]),Hs={key:0,class:"group translations"},Ds={class:"trans-title"},xs={key:1,class:"group"},Fs={class:"item appearance"},Rs={class:"label"},js={class:"appearance-action"},zs={key:2,class:"group"},Us={class:"item social-links"},Gs=b({__name:"VPNavBarExtra",setup(n){const{site:e,theme:t}=O(),{localeLinks:s,currentLang:o}=le({correspondingLink:!0}),a=T(()=>s.value.length&&o.value.label||e.value.appearance||t.value.socialLinks);return(l,r)=>a.value?(i(),w(Fe,{key:0,class:"VPNavBarExtra",label:"extra navigation"},{default:v(()=>[u(s).length&&u(o).label?(i(),p("div",Hs,[c("p",Ds,N(u(o).label),1),(i(!0),p(D,null,R(u(s),d=>(i(),w(ye,{key:d.link,item:d},null,8,["item"]))),128))])):k("",!0),u(e).appearance&&u(e).appearance!=="force-dark"&&u(e).appearance!=="force-auto"?(i(),p("div",xs,[c("div",Fs,[c("p",Rs,N(u(t).darkModeSwitchLabel||"Appearance"),1),c("div",js,[S(De)])])])):k("",!0),u(t).socialLinks?(i(),p("div",zs,[c("div",Us,[S(Re,{class:"social-links-list",links:u(t).socialLinks},null,8,["links"])])])):k("",!0)]),_:1})):k("",!0)}}),Ks=$(Gs,[["__scopeId","data-v-fb446541"]]),Ws=["aria-expanded"],qs=b({__name:"VPNavBarHamburger",props:{active:{type:Boolean}},emits:["click"],setup(n){return(e,t)=>(i(),p("button",{type:"button",class:x(["VPNavBarHamburger",{active:e.active}]),"aria-label":"mobile navigation","aria-expanded":e.active,"aria-controls":"VPNavScreen",onClick:t[0]||(t[0]=s=>e.$emit("click"))},t[1]||(t[1]=[c("span",{class:"container"},[c("span",{class:"top"}),c("span",{class:"middle"}),c("span",{class:"bottom"})],-1)]),10,Ws))}}),Js=$(qs,[["__scopeId","data-v-fdaa2be5"]]),Ys=["innerHTML"],Xs=b({__name:"VPNavBarMenuLink",props:{item:{}},setup(n){const{page:e}=O();return(t,s)=>(i(),w(K,{class:x({VPNavBarMenuLink:!0,active:u(te)(u(e).relativePath,t.item.activeMatch||t.item.link,!!t.item.activeMatch)}),href:t.item.link,target:t.item.target,rel:t.item.rel,"no-icon":t.item.noIcon,tabindex:"0"},{default:v(()=>[c("span",{innerHTML:t.item.text},null,8,Ys)]),_:1},8,["class","href","target","rel","no-icon"]))}}),Qs=$(Xs,[["__scopeId","data-v-9e29c75b"]]),Zs=b({__name:"VPNavBarMenuGroup",props:{item:{}},setup(n){const e=n,{page:t}=O(),s=a=>"component"in a?!1:"link"in a?te(t.value.relativePath,a.link,!!e.item.activeMatch):a.items.some(s),o=T(()=>s(e.item));return(a,l)=>(i(),w(Fe,{class:x({VPNavBarMenuGroup:!0,active:u(te)(u(t).relativePath,a.item.activeMatch,!!a.item.activeMatch)||o.value}),button:a.item.text,items:a.item.items},null,8,["class","button","items"]))}}),ea={key:0,"aria-labelledby":"main-nav-aria-label",class:"VPNavBarMenu"},ta=b({__name:"VPNavBarMenu",setup(n){const{theme:e}=O();return(t,s)=>u(e).nav?(i(),p("nav",ea,[s[0]||(s[0]=c("span",{id:"main-nav-aria-label",class:"visually-hidden"}," Main Navigation ",-1)),(i(!0),p(D,null,R(u(e).nav,o=>(i(),p(D,{key:JSON.stringify(o)},["link"in o?(i(),w(Qs,{key:0,item:o},null,8,["item"])):"component"in o?(i(),w(G(o.component),X({key:1,ref_for:!0},o.props),null,16)):(i(),w(Zs,{key:2,item:o},null,8,["item"]))],64))),128))])):k("",!0)}}),na=$(ta,[["__scopeId","data-v-b3f7df5b"]]);function oa(n){const{localeIndex:e,theme:t}=O();function s(o){var V,M,y;const a=o.split("."),l=(V=t.value.search)==null?void 0:V.options,r=l&&typeof l=="object",d=r&&((y=(M=l.locales)==null?void 0:M[e.value])==null?void 0:y.translations)||null,h=r&&l.translations||null;let _=d,m=h,g=n;const I=a.pop();for(const F of a){let z=null;const J=g==null?void 0:g[F];J&&(z=g=J);const ee=m==null?void 0:m[F];ee&&(z=m=ee);const Y=_==null?void 0:_[F];Y&&(z=_=Y),J||(g=z),ee||(m=z),Y||(_=z)}return(_==null?void 0:_[I])??(m==null?void 0:m[I])??(g==null?void 0:g[I])??""}return s}const sa=["aria-label"],aa={class:"DocSearch-Button-Container"},ra={class:"DocSearch-Button-Placeholder"},Ge=b({__name:"VPNavBarSearchButton",setup(n){const t=oa({button:{buttonText:"Search",buttonAriaLabel:"Search"}});return(s,o)=>(i(),p("button",{type:"button",class:"DocSearch DocSearch-Button","aria-label":u(t)("button.buttonAriaLabel")},[c("span",aa,[o[0]||(o[0]=c("span",{class:"vp-icon DocSearch-Search-Icon"},null,-1)),c("span",ra,N(u(t)("button.buttonText")),1)]),o[1]||(o[1]=c("span",{class:"DocSearch-Button-Keys"},[c("kbd",{class:"DocSearch-Button-Key"}),c("kbd",{class:"DocSearch-Button-Key"},"K")],-1))],8,sa))}}),ia={class:"VPNavBarSearch"},la={id:"local-search"},ua={key:1,id:"docsearch"},ca=b({__name:"VPNavBarSearch",setup(n){const e=Ct(()=>It(()=>import("./VPLocalSearchBox.vmvtnKUe.js"),__vite__mapDeps([0,1]))),t=()=>null,{theme:s}=O(),o=C(!1),a=C(!1);Z(()=>{});function l(){o.value||(o.value=!0,setTimeout(r,16))}function r(){const m=new Event("keydown");m.key="k",m.metaKey=!0,window.dispatchEvent(m),setTimeout(()=>{document.querySelector(".DocSearch-Modal")||r()},16)}function d(m){const g=m.target,I=g.tagName;return g.isContentEditable||I==="INPUT"||I==="SELECT"||I==="TEXTAREA"}const h=C(!1);Le("k",m=>{(m.ctrlKey||m.metaKey)&&(m.preventDefault(),h.value=!0)}),Le("/",m=>{d(m)||(m.preventDefault(),h.value=!0)});const _="local";return(m,g)=>{var I;return i(),p("div",ia,[u(_)==="local"?(i(),p(D,{key:0},[h.value?(i(),w(u(e),{key:0,onClose:g[0]||(g[0]=V=>h.value=!1)})):k("",!0),c("div",la,[S(Ge,{onClick:g[1]||(g[1]=V=>h.value=!0)})])],64)):u(_)==="algolia"?(i(),p(D,{key:1},[o.value?(i(),w(u(t),{key:0,algolia:((I=u(s).search)==null?void 0:I.options)??u(s).algolia,onVnodeBeforeMount:g[2]||(g[2]=V=>a.value=!0)},null,8,["algolia"])):k("",!0),a.value?k("",!0):(i(),p("div",ua,[S(Ge,{onClick:l})]))],64)):k("",!0)])}}}),da=b({__name:"VPNavBarSocialLinks",setup(n){const{theme:e}=O();return(t,s)=>u(e).socialLinks?(i(),w(Re,{key:0,class:"VPNavBarSocialLinks",links:u(e).socialLinks},null,8,["links"])):k("",!0)}}),pa=$(da,[["__scopeId","data-v-c69cde25"]]),fa=["href","rel","target"],va={key:1},ha={key:2},ma=b({__name:"VPNavBarTitle",setup(n){const{site:e,theme:t}=O(),{hasSidebar:s}=q(),{currentLang:o}=le(),a=T(()=>{var d;return typeof t.value.logoLink=="string"?t.value.logoLink:(d=t.value.logoLink)==null?void 0:d.link}),l=T(()=>{var d;return typeof t.value.logoLink=="string"||(d=t.value.logoLink)==null?void 0:d.rel}),r=T(()=>{var d;return typeof t.value.logoLink=="string"||(d=t.value.logoLink)==null?void 0:d.target});return(d,h)=>(i(),p("div",{class:x(["VPNavBarTitle",{"has-sidebar":u(s)}])},[c("a",{class:"title",href:a.value??u(Oe)(u(o).link),rel:l.value,target:r.value},[f(d.$slots,"nav-bar-title-before",{},void 0,!0),u(t).logo?(i(),w(fe,{key:0,class:"logo",image:u(t).logo},null,8,["image"])):k("",!0),u(t).siteTitle?(i(),p("span",va,N(u(t).siteTitle),1)):u(t).siteTitle===void 0?(i(),p("span",ha,N(u(e).title),1)):k("",!0),f(d.$slots,"nav-bar-title-after",{},void 0,!0)],8,fa)],2))}}),_a=$(ma,[["__scopeId","data-v-1f5af21f"]]),ga={class:"items"},ba={class:"title"},ka=b({__name:"VPNavBarTranslations",setup(n){const{theme:e}=O(),{localeLinks:t,currentLang:s}=le({correspondingLink:!0});return(o,a)=>u(t).length&&u(s).label?(i(),w(Fe,{key:0,class:"VPNavBarTranslations",icon:"vpi-languages",label:u(e).langMenuLabel||"Change language"},{default:v(()=>[c("div",ga,[c("p",ba,N(u(s).label),1),(i(!0),p(D,null,R(u(t),l=>(i(),w(ye,{key:l.link,item:l},null,8,["item"]))),128))])]),_:1},8,["label"])):k("",!0)}}),ya=$(ka,[["__scopeId","data-v-481b3dac"]]),$a={class:"wrapper"},Sa={class:"container"},wa={class:"title"},Pa={class:"content"},La={class:"content-body"},Va=b({__name:"VPNavBar",props:{isScreenOpen:{type:Boolean}},emits:["toggle-screen"],setup(n){const e=n,{y:t}=Ze(),{hasSidebar:s}=q(),{frontmatter:o}=O(),a=C({});return Be(()=>{a.value={"has-sidebar":s.value,home:o.value.layout==="home",top:t.value===0,"screen-open":e.isScreenOpen}}),(l,r)=>(i(),p("div",{class:x(["VPNavBar",a.value])},[c("div",$a,[c("div",Sa,[c("div",wa,[S(_a,null,{"nav-bar-title-before":v(()=>[f(l.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":v(()=>[f(l.$slots,"nav-bar-title-after",{},void 0,!0)]),_:3})]),c("div",Pa,[c("div",La,[f(l.$slots,"nav-bar-content-before",{},void 0,!0),S(ca,{class:"search"}),S(na,{class:"menu"}),S(ya,{class:"translations"}),S(ds,{class:"appearance"}),S(pa,{class:"social-links"}),S(Ks,{class:"extra"}),f(l.$slots,"nav-bar-content-after",{},void 0,!0),S(Js,{class:"hamburger",active:l.isScreenOpen,onClick:r[0]||(r[0]=d=>l.$emit("toggle-screen"))},null,8,["active"])])])])]),r[1]||(r[1]=c("div",{class:"divider"},[c("div",{class:"divider-line"})],-1))],2))}}),Ta=$(Va,[["__scopeId","data-v-ae4b7a2d"]]),Na={key:0,class:"VPNavScreenAppearance"},Ca={class:"text"},Ia=b({__name:"VPNavScreenAppearance",setup(n){const{site:e,theme:t}=O();return(s,o)=>u(e).appearance&&u(e).appearance!=="force-dark"&&u(e).appearance!=="force-auto"?(i(),p("div",Na,[c("p",Ca,N(u(t).darkModeSwitchLabel||"Appearance"),1),S(De)])):k("",!0)}}),Aa=$(Ia,[["__scopeId","data-v-f8a3b135"]]),Ma=["innerHTML"],Ea=b({__name:"VPNavScreenMenuLink",props:{item:{}},setup(n){const e=ie("close-screen");return(t,s)=>(i(),w(K,{class:"VPNavScreenMenuLink",href:t.item.link,target:t.item.target,rel:t.item.rel,"no-icon":t.item.noIcon,onClick:u(e)},{default:v(()=>[c("span",{innerHTML:t.item.text},null,8,Ma)]),_:1},8,["href","target","rel","no-icon","onClick"]))}}),Ba=$(Ea,[["__scopeId","data-v-0cc62b07"]]),Oa=["innerHTML"],Ha=b({__name:"VPNavScreenMenuGroupLink",props:{item:{}},setup(n){const e=ie("close-screen");return(t,s)=>(i(),w(K,{class:"VPNavScreenMenuGroupLink",href:t.item.link,target:t.item.target,rel:t.item.rel,"no-icon":t.item.noIcon,onClick:u(e)},{default:v(()=>[c("span",{innerHTML:t.item.text},null,8,Oa)]),_:1},8,["href","target","rel","no-icon","onClick"]))}}),ut=$(Ha,[["__scopeId","data-v-7271ab5e"]]),Da={class:"VPNavScreenMenuGroupSection"},xa={key:0,class:"title"},Fa=b({__name:"VPNavScreenMenuGroupSection",props:{text:{},items:{}},setup(n){return(e,t)=>(i(),p("div",Da,[e.text?(i(),p("p",xa,N(e.text),1)):k("",!0),(i(!0),p(D,null,R(e.items,s=>(i(),w(ut,{key:s.text,item:s},null,8,["item"]))),128))]))}}),Ra=$(Fa,[["__scopeId","data-v-597571e3"]]),ja=["aria-controls","aria-expanded"],za=["innerHTML"],Ua=["id"],Ga={key:0,class:"item"},Ka={key:1,class:"item"},Wa={key:2,class:"group"},qa=b({__name:"VPNavScreenMenuGroup",props:{text:{},items:{}},setup(n){const e=n,t=C(!1),s=T(()=>`NavScreenGroup-${e.text.replace(" ","-").toLowerCase()}`);function o(){t.value=!t.value}return(a,l)=>(i(),p("div",{class:x(["VPNavScreenMenuGroup",{open:t.value}])},[c("button",{class:"button","aria-controls":s.value,"aria-expanded":t.value,onClick:o},[c("span",{class:"button-text",innerHTML:a.text},null,8,za),l[0]||(l[0]=c("span",{class:"vpi-plus button-icon"},null,-1))],8,ja),c("div",{id:s.value,class:"items"},[(i(!0),p(D,null,R(a.items,r=>(i(),p(D,{key:JSON.stringify(r)},["link"in r?(i(),p("div",Ga,[S(ut,{item:r},null,8,["item"])])):"component"in r?(i(),p("div",Ka,[(i(),w(G(r.component),X({ref_for:!0},r.props,{"screen-menu":""}),null,16))])):(i(),p("div",Wa,[S(Ra,{text:r.text,items:r.items},null,8,["text","items"])]))],64))),128))],8,Ua)],2))}}),Ja=$(qa,[["__scopeId","data-v-3ea0c66d"]]),Ya={key:0,class:"VPNavScreenMenu"},Xa=b({__name:"VPNavScreenMenu",setup(n){const{theme:e}=O();return(t,s)=>u(e).nav?(i(),p("nav",Ya,[(i(!0),p(D,null,R(u(e).nav,o=>(i(),p(D,{key:JSON.stringify(o)},["link"in o?(i(),w(Ba,{key:0,item:o},null,8,["item"])):"component"in o?(i(),w(G(o.component),X({key:1,ref_for:!0},o.props,{"screen-menu":""}),null,16)):(i(),w(Ja,{key:2,text:o.text||"",items:o.items},null,8,["text","items"]))],64))),128))])):k("",!0)}}),Qa=b({__name:"VPNavScreenSocialLinks",setup(n){const{theme:e}=O();return(t,s)=>u(e).socialLinks?(i(),w(Re,{key:0,class:"VPNavScreenSocialLinks",links:u(e).socialLinks},null,8,["links"])):k("",!0)}}),Za={class:"list"},er=b({__name:"VPNavScreenTranslations",setup(n){const{localeLinks:e,currentLang:t}=le({correspondingLink:!0}),s=C(!1);function o(){s.value=!s.value}return(a,l)=>u(e).length&&u(t).label?(i(),p("div",{key:0,class:x(["VPNavScreenTranslations",{open:s.value}])},[c("button",{class:"title",onClick:o},[l[0]||(l[0]=c("span",{class:"vpi-languages icon lang"},null,-1)),Q(" "+N(u(t).label)+" ",1),l[1]||(l[1]=c("span",{class:"vpi-chevron-down icon chevron"},null,-1))]),c("ul",Za,[(i(!0),p(D,null,R(u(e),r=>(i(),p("li",{key:r.link,class:"item"},[S(K,{class:"link",href:r.link},{default:v(()=>[Q(N(r.text),1)]),_:2},1032,["href"])]))),128))])],2)):k("",!0)}}),tr=$(er,[["__scopeId","data-v-5725d81a"]]),nr={class:"container"},or=b({__name:"VPNavScreen",props:{open:{type:Boolean}},setup(n){const e=C(null),t=et(be?document.body:null);return(s,o)=>(i(),w(Me,{name:"fade",onEnter:o[0]||(o[0]=a=>t.value=!0),onAfterLeave:o[1]||(o[1]=a=>t.value=!1)},{default:v(()=>[s.open?(i(),p("div",{key:0,class:"VPNavScreen",ref_key:"screen",ref:e,id:"VPNavScreen"},[c("div",nr,[f(s.$slots,"nav-screen-content-before",{},void 0,!0),S(Xa,{class:"menu"}),S(tr,{class:"translations"}),S(Aa,{class:"appearance"}),S(Qa,{class:"social-links"}),f(s.$slots,"nav-screen-content-after",{},void 0,!0)])],512)):k("",!0)]),_:3}))}}),sr=$(or,[["__scopeId","data-v-9fc6ed2b"]]),ar={key:0,class:"VPNav"},rr=b({__name:"VPNav",setup(n){const{isScreenOpen:e,closeScreen:t,toggleScreen:s}=ts(),{frontmatter:o}=O(),a=T(()=>o.value.navbar!==!1);return tt("close-screen",t),he(()=>{be&&document.documentElement.classList.toggle("hide-nav",!a.value)}),(l,r)=>a.value?(i(),p("header",ar,[S(Ta,{"is-screen-open":u(e),onToggleScreen:u(s)},{"nav-bar-title-before":v(()=>[f(l.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":v(()=>[f(l.$slots,"nav-bar-title-after",{},void 0,!0)]),"nav-bar-content-before":v(()=>[f(l.$slots,"nav-bar-content-before",{},void 0,!0)]),"nav-bar-content-after":v(()=>[f(l.$slots,"nav-bar-content-after",{},void 0,!0)]),_:3},8,["is-screen-open","onToggleScreen"]),S(sr,{open:u(e)},{"nav-screen-content-before":v(()=>[f(l.$slots,"nav-screen-content-before",{},void 0,!0)]),"nav-screen-content-after":v(()=>[f(l.$slots,"nav-screen-content-after",{},void 0,!0)]),_:3},8,["open"])])):k("",!0)}}),ir=$(rr,[["__scopeId","data-v-11c1b2ae"]]),lr=["role","tabindex"],ur={key:1,class:"items"},cr=b({__name:"VPSidebarItem",props:{item:{},depth:{}},setup(n){const e=n,{collapsed:t,collapsible:s,isLink:o,isActiveLink:a,hasActiveLink:l,hasChildren:r,toggle:d}=on(T(()=>e.item)),h=T(()=>r.value?"section":"div"),_=T(()=>o.value?"a":"div"),m=T(()=>r.value?e.depth+2===7?"p":`h${e.depth+2}`:"p"),g=T(()=>o.value?void 0:"button"),I=T(()=>[[`level-${e.depth}`],{collapsible:s.value},{collapsed:t.value},{"is-link":o.value},{"is-active":a.value},{"has-active":l.value}]);function V(y){"key"in y&&y.key!=="Enter"||!e.item.link&&d()}function M(){e.item.link&&d()}return(y,F)=>{const z=ne("VPSidebarItem",!0);return i(),w(G(h.value),{class:x(["VPSidebarItem",I.value])},{default:v(()=>[y.item.text?(i(),p("div",X({key:0,class:"item",role:g.value},At(y.item.items?{click:V,keydown:V}:{},!0),{tabindex:y.item.items&&0}),[F[1]||(F[1]=c("div",{class:"indicator"},null,-1)),y.item.link?(i(),w(K,{key:0,tag:_.value,class:"link",href:y.item.link,rel:y.item.rel,target:y.item.target},{default:v(()=>[(i(),w(G(m.value),{class:"text",innerHTML:y.item.text},null,8,["innerHTML"]))]),_:1},8,["tag","href","rel","target"])):(i(),w(G(m.value),{key:1,class:"text",innerHTML:y.item.text},null,8,["innerHTML"])),y.item.collapsed!=null&&y.item.items&&y.item.items.length?(i(),p("div",{key:2,class:"caret",role:"button","aria-label":"toggle section",onClick:M,onKeydown:Mt(M,["enter"]),tabindex:"0"},F[0]||(F[0]=[c("span",{class:"vpi-chevron-right caret-icon"},null,-1)]),32)):k("",!0)],16,lr)):k("",!0),y.item.items&&y.item.items.length?(i(),p("div",ur,[y.depth<5?(i(!0),p(D,{key:0},R(y.item.items,J=>(i(),w(z,{key:J.text,item:J,depth:y.depth+1},null,8,["item","depth"]))),128)):k("",!0)])):k("",!0)]),_:1},8,["class"])}}}),dr=$(cr,[["__scopeId","data-v-3643370d"]]),pr=b({__name:"VPSidebarGroup",props:{items:{}},setup(n){const e=C(!0);let t=null;return Z(()=>{t=setTimeout(()=>{t=null,e.value=!1},300)}),Et(()=>{t!=null&&(clearTimeout(t),t=null)}),(s,o)=>(i(!0),p(D,null,R(s.items,a=>(i(),p("div",{key:a.text,class:x(["group",{"no-transition":e.value}])},[S(dr,{item:a,depth:0},null,8,["item"])],2))),128))}}),fr=$(pr,[["__scopeId","data-v-4b065ade"]]),vr={class:"nav",id:"VPSidebarNav","aria-labelledby":"sidebar-aria-label",tabindex:"-1"},hr=b({__name:"VPSidebar",props:{open:{type:Boolean}},setup(n){const{sidebarGroups:e,hasSidebar:t}=q(),s=n,o=C(null),a=et(be?document.body:null);W([s,o],()=>{var r;s.open?(a.value=!0,(r=o.value)==null||r.focus()):a.value=!1},{immediate:!0,flush:"post"});const l=C(0);return W(e,()=>{l.value+=1},{deep:!0}),(r,d)=>u(t)?(i(),p("aside",{key:0,class:x(["VPSidebar",{open:r.open}]),ref_key:"navEl",ref:o,onClick:d[0]||(d[0]=nt(()=>{},["stop"]))},[d[2]||(d[2]=c("div",{class:"curtain"},null,-1)),c("nav",vr,[d[1]||(d[1]=c("span",{class:"visually-hidden",id:"sidebar-aria-label"}," Sidebar Navigation ",-1)),f(r.$slots,"sidebar-nav-before",{},void 0,!0),(i(),w(fr,{items:u(e),key:l.value},null,8,["items"])),f(r.$slots,"sidebar-nav-after",{},void 0,!0)])],2)):k("",!0)}}),mr=$(hr,[["__scopeId","data-v-0b3a1f6f"]]),_r=b({__name:"VPSkipLink",setup(n){const e=_e(),t=C();W(()=>e.path,()=>t.value.focus());function s({target:o}){const a=document.getElementById(decodeURIComponent(o.hash).slice(1));if(a){const l=()=>{a.removeAttribute("tabindex"),a.removeEventListener("blur",l)};a.setAttribute("tabindex","-1"),a.addEventListener("blur",l),a.focus(),window.scrollTo(0,0)}}return(o,a)=>(i(),p(D,null,[c("span",{ref_key:"backToTop",ref:t,tabindex:"-1"},null,512),c("a",{href:"#VPContent",class:"VPSkipLink visually-hidden",onClick:s}," Skip to content ")],64))}}),gr=$(_r,[["__scopeId","data-v-a12d2059"]]),br=b({__name:"Layout",setup(n){const{isOpen:e,open:t,close:s}=q(),o=_e();W(()=>o.path,s),nn(e,s);const{frontmatter:a}=O(),l=Bt(),r=T(()=>!!l["home-hero-image"]);return tt("hero-image-slot-exists",r),(d,h)=>{const _=ne("Content");return u(a).layout!==!1?(i(),p("div",{key:0,class:x(["Layout",u(a).pageClass])},[f(d.$slots,"layout-top",{},void 0,!0),S(gr),S(zt,{class:"backdrop",show:u(e),onClick:u(s)},null,8,["show","onClick"]),S(ir,null,{"nav-bar-title-before":v(()=>[f(d.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":v(()=>[f(d.$slots,"nav-bar-title-after",{},void 0,!0)]),"nav-bar-content-before":v(()=>[f(d.$slots,"nav-bar-content-before",{},void 0,!0)]),"nav-bar-content-after":v(()=>[f(d.$slots,"nav-bar-content-after",{},void 0,!0)]),"nav-screen-content-before":v(()=>[f(d.$slots,"nav-screen-content-before",{},void 0,!0)]),"nav-screen-content-after":v(()=>[f(d.$slots,"nav-screen-content-after",{},void 0,!0)]),_:3}),S(es,{open:u(e),onOpenMenu:u(t)},null,8,["open","onOpenMenu"]),S(mr,{open:u(e)},{"sidebar-nav-before":v(()=>[f(d.$slots,"sidebar-nav-before",{},void 0,!0)]),"sidebar-nav-after":v(()=>[f(d.$slots,"sidebar-nav-after",{},void 0,!0)]),_:3},8,["open"]),S(Do,null,{"page-top":v(()=>[f(d.$slots,"page-top",{},void 0,!0)]),"page-bottom":v(()=>[f(d.$slots,"page-bottom",{},void 0,!0)]),"not-found":v(()=>[f(d.$slots,"not-found",{},void 0,!0)]),"home-hero-before":v(()=>[f(d.$slots,"home-hero-before",{},void 0,!0)]),"home-hero-info-before":v(()=>[f(d.$slots,"home-hero-info-before",{},void 0,!0)]),"home-hero-info":v(()=>[f(d.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-info-after":v(()=>[f(d.$slots,"home-hero-info-after",{},void 0,!0)]),"home-hero-actions-after":v(()=>[f(d.$slots,"home-hero-actions-after",{},void 0,!0)]),"home-hero-image":v(()=>[f(d.$slots,"home-hero-image",{},void 0,!0)]),"home-hero-after":v(()=>[f(d.$slots,"home-hero-after",{},void 0,!0)]),"home-features-before":v(()=>[f(d.$slots,"home-features-before",{},void 0,!0)]),"home-features-after":v(()=>[f(d.$slots,"home-features-after",{},void 0,!0)]),"doc-footer-before":v(()=>[f(d.$slots,"doc-footer-before",{},void 0,!0)]),"doc-before":v(()=>[f(d.$slots,"doc-before",{},void 0,!0)]),"doc-after":v(()=>[f(d.$slots,"doc-after",{},void 0,!0)]),"doc-top":v(()=>[f(d.$slots,"doc-top",{},void 0,!0)]),"doc-bottom":v(()=>[f(d.$slots,"doc-bottom",{},void 0,!0)]),"aside-top":v(()=>[f(d.$slots,"aside-top",{},void 0,!0)]),"aside-bottom":v(()=>[f(d.$slots,"aside-bottom",{},void 0,!0)]),"aside-outline-before":v(()=>[f(d.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":v(()=>[f(d.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":v(()=>[f(d.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":v(()=>[f(d.$slots,"aside-ads-after",{},void 0,!0)]),_:3}),S(zo),f(d.$slots,"layout-bottom",{},void 0,!0)],2)):(i(),w(_,{key:1}))}}}),kr=$(br,[["__scopeId","data-v-826bb513"]]),ct={Layout:kr,enhanceApp:({app:n})=>{n.component("Badge",Ft)}},je="LiteyukiStudio",ze="LiteyukiBot",yr="https://api.github.com",$r="https://git.liteyuki.icu/api/v1",Sr="https://api.liteyuki.icu/online",wr="https://api.liteyuki.icu/count",Pr="https://api.liteyuki.icu/visit",Lr="https://api.liteyuki.icu/visit_count",se=`https://github.com/${je}/${ze}`,Ke="https://starmap.liteyuki.icu";async function Vr(){try{const n=`${$r}/repos/${je}/${ze}`;console.log(n);const t=await(await fetch(n)).json();return{stars:t.stars_count,forks:t.forks_count,watchers:t.watchers_count,issues:0,prs:0,size:t.size}}catch{return{stars:-1,forks:-1,watchers:-1,issues:-1,prs:-1,size:-1}}}async function Tr(){try{const e=await(await fetch(`${yr}/repos/${je}/${ze}`)).json();return{stars:e.stargazers_count,forks:e.forks_count,watchers:e.watchers_count,issues:e.open_issues_count,prs:e.open_issues_count,size:e.size}}catch{return{stars:-1,forks:-1,watchers:-1,issues:-1,prs:-1,size:-1}}}async function Nr(){const n=await Tr(),e=await Vr();return{stars:n.stars+e.stars,forks:n.forks+e.forks,watchers:n.watchers+e.watchers,issues:n.issues+e.issues,prs:n.prs+e.prs,size:n.size+e.size}}const oe={getTotal:async()=>{try{return(await(await fetch(wr)).json()).register}catch{return-1}},getOnline:async()=>{try{return(await(await fetch(Sr)).json()).online}catch{return-1}},getGithubStats:Nr,getPluginNum:async()=>{try{return(await(await fetch("/plugins.json")).json()).length}catch{return-1}},getResourceNum:async()=>{try{return(await(await fetch("/resources.json")).json()).length}catch{return-1}},getVisitCount:async()=>{try{return(await(await fetch(Lr)).json()).count}catch{return-1}}};function Cr(){const n="deviceId";let e=localStorage.getItem(n);return e||(e=Ar(),localStorage.setItem(n,e)),e}async function Ir(){const n=Cr();try{await fetch(Pr,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({device_id:n}).toString()})}catch(e){console.error("Failed to upload visit record:",e)}}function Ar(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){var e=Math.random()*16|0,t=n==="x"?e:e&3|8;return t.toString(16)})}/*! + * vue-router v4.4.5 + * (c) 2024 Eduardo San Martin Morote + * @license MIT + */var We;(function(n){n.pop="pop",n.push="push"})(We||(We={}));var qe;(function(n){n.back="back",n.forward="forward",n.unknown=""})(qe||(qe={}));var Je;(function(n){n[n.aborted=4]="aborted",n[n.cancelled=8]="cancelled",n[n.duplicated=16]="duplicated"})(Je||(Je={}));const Mr=Symbol("");function Er(n,e,t){const s=()=>{n[e].delete(t)};re(s),Ot(s),Ht(()=>{n[e].add(t)}),n[e].add(t)}function Br(n){const e=ie(Mr,{}).value;e&&Er(e,"updateGuards",n)}const Or={class:"stats-bar-content"},Hr={class:"stats-bar"},Dr={class:"stats-info"},xr={class:"stats-title"},Fr={class:"sections"},Rr=["href"],jr={class:"section-tab"},zr={class:"text"},Ur={class:"number"},Gr=b({__name:"StatsBar",setup(n){const{Layout:e}=ct;let t=null;const s={total:{name:"total",color:"#00a6ff",value:C(-1),link:Ke},online:{name:"online",color:"#7eff7e",value:C(-1),link:Ke},stars:{name:"stars",color:"#ffcc00",value:C(-1),link:`${se}/stargazers`},forks:{name:"forks",color:"#ff6600",value:C(-1),link:`${se}/forks`},issues:{name:"issues",color:"#ff0000",value:C(-1),link:`${se}/issues`},prs:{name:"prs",color:"#f15df1",value:C(-1),link:`${se}/pulls`},plugins:{name:"plugins",color:"#a766ff",value:C(-1),link:"./store/plugin"},resources:{name:"resources",color:"#5a54fa",value:C(-1),link:"./store/resource"},visitors:{name:"visitors",color:"#00a6ff",value:C(-1),link:se}};async function o(){[s.online.value.value,s.total.value.value,s.plugins.value.value,s.resources.value.value,s.visitors.value.value,t]=await Promise.all([oe.getOnline(),oe.getTotal(),oe.getPluginNum(),oe.getResourceNum(),oe.getVisitCount(),oe.getGithubStats()]),s.stars.value.value=(t==null?void 0:t.stars)||0,s.forks.value.value=(t==null?void 0:t.forks)||0,s.issues.value.value=(t==null?void 0:t.issues)||0,s.prs.value.value=(t==null?void 0:t.prs)||0}function a(l){return l.value.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}return Z(()=>{const l=setInterval(o,1e4);o(),Ir(),re(()=>{clearInterval(l)})}),Br(()=>{xt()}),console.log(` _ _ _ _ _ ____ _ + | | (_) | | | (_) _ \\ | | + | | _| |_ ___ _ _ _ _| | ___| |_) | ___ | |_ + | | | | __/ _ \\ | | | | | | |/ / | _ < / _ \\| __| + | |____| | || __/ |_| | |_| | <| | |_) | (_) | |_ + |______|_|\\__\\___|\\__, |\\__,_|_|\\_\\_|____/ \\___/ \\__| + __/ | + |___/ `),console.log(j("easterEgg")),(l,r)=>(i(),w(u(e),null,{"home-features-before":v(()=>[c("div",Or,[c("div",Hr,[c("div",Dr,[c("div",xr,N(u(j)("stats")),1),c("div",Fr,[(i(!0),p(D,null,R(Object.values(s),d=>(i(),p("div",{key:d.name,class:"section"},[c("a",{href:d.link,target:"_blank"},[c("div",jr,[c("span",{class:"dot",style:ge({backgroundColor:d.color})},null,4),c("span",zr,N(u(j)(d.name)),1)]),c("div",Ur,N(a(d.value)),1)],8,Rr)]))),128))])]),r[0]||(r[0]=c("div",{class:"starmap"},[c("iframe",{src:"https://starmap.liteyuki.icu/",width:"100%",height:"300px",class:"gamma"})],-1))])])]),_:1}))}}),Ye=$(Gr,[["__scopeId","data-v-2391887b"]]);var Kr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Wr(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var dt={exports:{}};/*! + * clipboard.js v2.0.11 + * https://clipboardjs.com/ + * + * Licensed MIT © Zeno Rocha + */(function(n,e){(function(s,o){n.exports=o()})(Kr,function(){return function(){var t={686:function(a,l,r){r.d(l,{default:function(){return $t}});var d=r(279),h=r.n(d),_=r(370),m=r.n(_),g=r(817),I=r.n(g);function V(B){try{return document.execCommand(B)}catch{return!1}}var M=function(L){var P=I()(L);return V("cut"),P},y=M;function F(B){var L=document.documentElement.getAttribute("dir")==="rtl",P=document.createElement("textarea");P.style.fontSize="12pt",P.style.border="0",P.style.padding="0",P.style.margin="0",P.style.position="absolute",P.style[L?"right":"left"]="-9999px";var A=window.pageYOffset||document.documentElement.scrollTop;return P.style.top="".concat(A,"px"),P.setAttribute("readonly",""),P.value=B,P}var z=function(L,P){var A=F(L);P.container.appendChild(A);var E=I()(A);return V("copy"),A.remove(),E},J=function(L){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},A="";return typeof L=="string"?A=z(L,P):L instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(L==null?void 0:L.type)?A=z(L.value,P):(A=I()(L),V("copy")),A},ee=J;function Y(B){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Y=function(P){return typeof P}:Y=function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P},Y(B)}var pt=function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},P=L.action,A=P===void 0?"copy":P,E=L.container,H=L.target,U=L.text;if(A!=="copy"&&A!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(H!==void 0)if(H&&Y(H)==="object"&&H.nodeType===1){if(A==="copy"&&H.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(A==="cut"&&(H.hasAttribute("readonly")||H.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(U)return ee(U,{container:E});if(H)return A==="cut"?y(H):ee(H,{container:E})},ft=pt;function ae(B){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ae=function(P){return typeof P}:ae=function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P},ae(B)}function vt(B,L){if(!(B instanceof L))throw new TypeError("Cannot call a class as a function")}function Ue(B,L){for(var P=0;P"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function ue(B){return ue=Object.setPrototypeOf?Object.getPrototypeOf:function(P){return P.__proto__||Object.getPrototypeOf(P)},ue(B)}function Se(B,L){var P="data-clipboard-".concat(B);if(L.hasAttribute(P))return L.getAttribute(P)}var yt=function(B){mt(P,B);var L=_t(P);function P(A,E){var H;return vt(this,P),H=L.call(this),H.resolveOptions(E),H.listenClick(A),H}return ht(P,[{key:"resolveOptions",value:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof E.action=="function"?E.action:this.defaultAction,this.target=typeof E.target=="function"?E.target:this.defaultTarget,this.text=typeof E.text=="function"?E.text:this.defaultText,this.container=ae(E.container)==="object"?E.container:document.body}},{key:"listenClick",value:function(E){var H=this;this.listener=m()(E,"click",function(U){return H.onClick(U)})}},{key:"onClick",value:function(E){var H=E.delegateTarget||E.currentTarget,U=this.action(H)||"copy",ce=ft({action:U,container:this.container,target:this.target(H),text:this.text(H)});this.emit(ce?"success":"error",{action:U,text:ce,trigger:H,clearSelection:function(){H&&H.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(E){return Se("action",E)}},{key:"defaultTarget",value:function(E){var H=Se("target",E);if(H)return document.querySelector(H)}},{key:"defaultText",value:function(E){return Se("text",E)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(E){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return ee(E,H)}},{key:"cut",value:function(E){return y(E)}},{key:"isSupported",value:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],H=typeof E=="string"?[E]:E,U=!!document.queryCommandSupported;return H.forEach(function(ce){U=U&&!!document.queryCommandSupported(ce)}),U}}]),P}(h()),$t=yt},828:function(a){var l=9;if(typeof Element<"u"&&!Element.prototype.matches){var r=Element.prototype;r.matches=r.matchesSelector||r.mozMatchesSelector||r.msMatchesSelector||r.oMatchesSelector||r.webkitMatchesSelector}function d(h,_){for(;h&&h.nodeType!==l;){if(typeof h.matches=="function"&&h.matches(_))return h;h=h.parentNode}}a.exports=d},438:function(a,l,r){var d=r(828);function h(g,I,V,M,y){var F=m.apply(this,arguments);return g.addEventListener(V,F,y),{destroy:function(){g.removeEventListener(V,F,y)}}}function _(g,I,V,M,y){return typeof g.addEventListener=="function"?h.apply(null,arguments):typeof V=="function"?h.bind(null,document).apply(null,arguments):(typeof g=="string"&&(g=document.querySelectorAll(g)),Array.prototype.map.call(g,function(F){return h(F,I,V,M,y)}))}function m(g,I,V,M){return function(y){y.delegateTarget=d(y.target,I),y.delegateTarget&&M.call(g,y)}}a.exports=_},879:function(a,l){l.node=function(r){return r!==void 0&&r instanceof HTMLElement&&r.nodeType===1},l.nodeList=function(r){var d=Object.prototype.toString.call(r);return r!==void 0&&(d==="[object NodeList]"||d==="[object HTMLCollection]")&&"length"in r&&(r.length===0||l.node(r[0]))},l.string=function(r){return typeof r=="string"||r instanceof String},l.fn=function(r){var d=Object.prototype.toString.call(r);return d==="[object Function]"}},370:function(a,l,r){var d=r(879),h=r(438);function _(V,M,y){if(!V&&!M&&!y)throw new Error("Missing required arguments");if(!d.string(M))throw new TypeError("Second argument must be a String");if(!d.fn(y))throw new TypeError("Third argument must be a Function");if(d.node(V))return m(V,M,y);if(d.nodeList(V))return g(V,M,y);if(d.string(V))return I(V,M,y);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function m(V,M,y){return V.addEventListener(M,y),{destroy:function(){V.removeEventListener(M,y)}}}function g(V,M,y){return Array.prototype.forEach.call(V,function(F){F.addEventListener(M,y)}),{destroy:function(){Array.prototype.forEach.call(V,function(F){F.removeEventListener(M,y)})}}}function I(V,M,y){return h(document.body,V,M,y)}a.exports=_},817:function(a){function l(r){var d;if(r.nodeName==="SELECT")r.focus(),d=r.value;else if(r.nodeName==="INPUT"||r.nodeName==="TEXTAREA"){var h=r.hasAttribute("readonly");h||r.setAttribute("readonly",""),r.select(),r.setSelectionRange(0,r.value.length),h||r.removeAttribute("readonly"),d=r.value}else{r.hasAttribute("contenteditable")&&r.focus();var _=window.getSelection(),m=document.createRange();m.selectNodeContents(r),_.removeAllRanges(),_.addRange(m),d=_.toString()}return d}a.exports=l},279:function(a){function l(){}l.prototype={on:function(r,d,h){var _=this.e||(this.e={});return(_[r]||(_[r]=[])).push({fn:d,ctx:h}),this},once:function(r,d,h){var _=this;function m(){_.off(r,m),d.apply(h,arguments)}return m._=d,this.on(r,m,h)},emit:function(r){var d=[].slice.call(arguments,1),h=((this.e||(this.e={}))[r]||[]).slice(),_=0,m=h.length;for(_;_{const o=new Jr(".copy-btn",{text:()=>`npm install ${e.item.module_name}`});o.on("success",()=>{}),o.on("error",()=>{})},s=o=>{const a=o.replace(/^#/,""),[l,r,d]=a.match(/.{2}/g).map(_=>parseInt(_,16)),h=(l*299+r*587+d*114)/1e3;return{backgroundColor:o,color:h>128?"#000":"#fff"}};return(o,a)=>(i(),p("div",Yr,[c("div",Xr,N(e.item.name),1),c("div",Qr,N(e.item.desc),1),c("div",Zr,[(i(!0),p(D,null,R(e.item.tags,l=>(i(),p("span",{class:"tag",key:l,style:ge(s(l.color))},N(l.label),5))),128))]),c("div",ei,[c("a",{href:e.item.homepage,class:"btn",target:"_blank"},a[0]||(a[0]=[c("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 16 16"},[c("path",{fill:"currentColor",d:"m7.775 3.275l1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0a.751.751 0 0 1 .018-1.042a.751.751 0 0 1 1.042-.018a1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018a.751.751 0 0 1-.018-1.042m-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018a.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0a.751.751 0 0 1-.018 1.042a.751.751 0 0 1-1.042.018a1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83"})],-1)]),8,ti),c("button",{class:"btn copy-btn",onClick:t},"复制安装命令"),c("div",ni,[c("a",{class:"author-info",href:`https://github.com/${e.item.author}`},[c("img",{class:"icon avatar",src:`https://github.com/${e.item.author}.png?size=80`,alt:""},null,8,si),c("div",ai,N(e.item.author),1)],8,oi)])])]))}}),ii=$(ri,[["__scopeId","data-v-a8e3f329"]]),li={class:"switch"},ui=["checked"],ci=b({__name:"ToggleSwitch",props:{modelValue:Boolean},emits:["update:modelValue"],setup(n,{emit:e}){const t=e,s=o=>{t("update:modelValue",o)};return(o,a)=>(i(),p("label",li,[c("input",{type:"checkbox",checked:n.modelValue,onChange:a[0]||(a[0]=l=>s(l.target.checked))},null,40,ui),a[1]||(a[1]=c("span",{class:"slider round"},null,-1))]))}}),di=$(ci,[["__scopeId","data-v-b3db11d1"]]),pi=[{module_name:"liteyukibot-plugin-nonebot",project_link:"liteyukibot-plugin-nonebot",name:"NoneBot插件",desc:"在轻雪中使用NoneBot,内置轻雪--NoneBot会话控制器插件,为NoneBot开发者提供了更多便捷功能(已内置)",author:"snowykami",homepage:"https://github.com/LiteyukiStudio/liteyukibot-plugin-nonebot",tags:[{label:"app",color:"#aeeaa8"}],is_official:!0,type:"application",valid:!0,version:"rolling"},{module_name:"liteyukibot-plugin-antidislink",project_link:"liteyukibot-plugin-antidislink",name:"防断联插件",desc:"防止你的群友断联化",author:"snowykami",homepage:"https://github.com/snowykami/liteyukibot-plugin-antidislink",tags:[{label:"app",color:"#aeeaa8"},{label:"dislink",color:"#d0e9ff"}],is_official:!0,type:"application",valid:!0,version:"rolling"},{module_name:"liteyukibot-plugin-lagrange",project_link:"liteyukibot-plugin-lagrange",name:"LagrangePlugin",desc:"在轻雪中使用lagrange-python!",author:"snowykami",homepage:"https://github.com/snowykami/liteyukibot-plugin-lagrange",tags:[{label:"app",color:"#aeeaa8"},{label:"lagrange",color:"#ff89f7"}],is_official:!0,type:"application",valid:!0,version:"rolling"},{module_name:"liteyukibot-plugin-htmlrender",project_link:"liteyukibot-plugin-htmlrender",name:"htmlrender",desc:"使用系统中的浏览器对网页进行渲染,便于其他插件使用",author:"EillesWan",homepage:"https://github.com/LiteyukiStudio/liteyukibot-plugin-htmlrender",tags:[{label:"ch",color:"#4285f4"},{label:"ro",color:"#db4437"},{label:"mi",color:"#f4b400"},{label:"um",color:"#0f9d58"}],is_official:!0,type:"application",valid:!0,version:"rolling"}],fi={class:"market"},vi={class:"search-box-div"},hi=["placeholder"],mi={class:"items"},_i=b({__name:"PluginStore",setup(n){let e=C(!1),t=T(()=>{let a=s.value;return o.value&&(a=a.filter(l=>l.name.toLowerCase().includes(o.value.toLowerCase())||l.desc.toLowerCase().includes(o.value.toLowerCase())||l.author.toLowerCase().includes(o.value.toLowerCase())||l.module_name.toLowerCase().includes(o.value.toLowerCase()))),e.value&&(a=a.filter(l=>l.is_liteyuki_plugin)),a}),s=C([]),o=C("");return s.value=pi,s.value.forEach(a=>{a.is_liteyuki_plugin=!0}),fetch("https://registry.nonebot.dev/plugins.json").then(a=>a.json()).then(a=>{a.forEach(l=>{l.is_official=!1}),s.value=s.value.concat(a)}),(a,l)=>(i(),p("div",fi,[c("h1",null,N(u(j)("pluginStore")),1),c("p",null,N(u(j)("pluginStoreDesc")),1),c("div",vi,[Ve(c("input",{class:"item-search-box",type:"text","onUpdate:modelValue":l[0]||(l[0]=r=>Ne(o)?o.value=r:o=r),placeholder:u(j)("search")},null,8,hi),[[Te,u(o)]]),S(di,{modelValue:u(e),"onUpdate:modelValue":l[1]||(l[1]=r=>Ne(e)?e.value=r:e=r)},null,8,["modelValue"]),Q(" "+N(u(j)("liteyukiOnly")),1)]),c("div",mi,[(i(!0),p(D,null,R(u(t),r=>(i(),w(ii,{key:r.id,item:r},null,8,["item"]))),128))])]))}}),gi=$(_i,[["__scopeId","data-v-671446c8"]]),bi={class:"item-card"},ki={class:"item-name"},yi={class:"item-description"},$i={class:"item-bar"},Si=["href"],wi=["href"],Pi=["src"],Li={class:"author-name"},Vi=b({__name:"ResItemCard",props:{item:Object},setup(n){const e=n;return(t,s)=>(i(),p("div",bi,[c("div",ki,N(e.item.name),1),c("div",yi,N(e.item.description),1),c("div",$i,[c("a",{href:e.item.link,class:"",target:"_blank"},s[0]||(s[0]=[c("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 16 16"},[c("path",{fill:"currentColor",d:"m7.775 3.275l1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0a.751.751 0 0 1 .018-1.042a.751.751 0 0 1 1.042-.018a1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018a.751.751 0 0 1-.018-1.042m-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018a.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0a.751.751 0 0 1-.018 1.042a.751.751 0 0 1-1.042.018a1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83"})],-1)]),8,Si),c("div",null,[c("a",{class:"author-info",href:`https://github.com/${e.item.author}`},[c("img",{class:"icon avatar",src:`https://github.com/${e.item.author}.png?size=80`,alt:""},null,8,Pi),c("div",Li,N(e.item.author),1)],8,wi)])])]))}}),Ti=$(Vi,[["__scopeId","data-v-22cbd1fa"]]),Ni={key:0,class:"floating-window"},Ci={class:"window-content"},Ii=b({__name:"ResPubWindow",props:{isVisible:Boolean},setup(n){return(e,t)=>n.isVisible?(i(),p("div",Ni,[c("div",Ci,[f(e.$slots,"default",{},void 0,!0)])])):k("",!0)}}),Ai=$(Ii,[["__scopeId","data-v-8b5829b6"]]),Mi=[{name:"KawaiiStatus",author:"SnowyKami",description:"可爱的状态卡片,仿照koishi的制作",link:"https://cdn.liteyuki.icu/static/lrp/KawaiiStatus.zip"},{name:"MiSans字体包",author:"SnowyKami",description:"小米官方字体MiSans",link:"https://cdn.liteyuki.icu/static/lrp/MiSansFonts.zip"},{name:"MapleMono字体包",author:"SnowyKami",description:"适用于字母的字体包",link:"https://cdn.liteyuki.icu/static/lrp/MapleMonoFonts.zip"},{name:"野兽先辈主题HomoTheme",author:"SnowyKami",description:"野兽先辈主题包,114514!",link:"https://cdn.liteyuki.icu/static/lrp/HomoTheme.zip"},{name:"自定义设备信息",author:"SnowyKami",description:"自定义服务端的设备信息,自行修改使用",link:"https://cdn.liteyuki.icu/static/lrp/custom-device.zip"},{name:"轻雪傲娇系词库",author:"SnowyKami",description:"使用https://github.com/Kyomotoi/AnimeThesaurus的词库",link:"https://cdn.liteyuki.icu/static/lrp/liteyuki_words_aojiao.zip"},{name:"轻雪可爱系词库",author:"SnowyKami",description:"使用https://github.com/Kyomotoi/AnimeThesaurus的词库",link:"https://cdn.liteyuki.icu/static/lrp/liteyuki_words_kawaii.zip"},{name:"轻雪Kakyo语言包",author:"Nanaloveyuki",description:"Liteyuki Bot的语言包,用于提供多种语言的翻译。",link:"https://github.com/Nanaloveyuki/liteyuki-langpack/releases/download/KakyoVer/Kakyo-pack.zip"},{name:"更多背景模板包",author:"snowykami",description:"自定义各种卡片的背景",link:"https://cdn.liteyuki.icu/static/lrp/morebg.zip"},{name:"测试资源包",desc:"test",link:"https://cdn.liteyuki.icu/static/lrp/liteyuki_words_aojiao.zip",homepage:"",author:"snowykami"},{name:"轻雪Kakyo语言包 稳定版",description:"Liteyuki Bot的语言包,用于提供多种语言的翻译。",link:"https://cdn.liteyuki.icu/static/lrp/kakyo.zip",homepage:"https://github.com/Nanaloveyuki/liteyuki-langpack",author:"Nanaloveyuki"},{name:"测试资源包2",description:"test",link:"https://cdn.liteyuki.icu/static/lrp/liteyuki_words_aojiao.zip",homepage:"",author:"snowykami"}],Ei={class:"market"},Bi={class:"search-box-div"},Oi=["placeholder"],Hi={class:"store-tabs",style:{display:"flex"}},Di={class:"items"},xi={for:"name"},Fi=["placeholder"],Ri={class:"pub-options",style:{display:"flex","justify-content":"center"}},ji=b({__name:"ResStore",setup(n){let e=T(()=>s.value?t.value.filter(_=>_.name.toLowerCase().includes(s.value.toLowerCase())||_.description.toLowerCase().includes(s.value.toLowerCase())||_.author.toLowerCase().includes(s.value.toLowerCase())).reverse():t.value.reverse()),t=C([]),s=C("");t.value=Mi;const o=C(!1);let a=C({name:""});function l(){o.value=!0}function r(){o.value=!1}let d="";ke(ve().site.value.lang)==="zh"?d="zh":d="en";function h(){const _=encodeURI(`Resource: ${a.value.name}`),m=`${se}/issues/new?assignees=&labels=Resource&template=resource_publish_${d}.yml&title=${_}`;console.log(m),window.open(m,"_blank")}return(_,m)=>(i(),p("div",Ei,[c("h1",null,N(u(j)("resourceStore")),1),c("div",Bi,[Ve(c("input",{class:"item-search-box",type:"text",placeholder:u(j)("search"),"onUpdate:modelValue":m[0]||(m[0]=g=>Ne(s)?s.value=g:s=g)},null,8,Oi),[[Te,u(s)]])]),c("div",Hi,[c("button",{class:"store-button publish-button",onClick:l},N(u(j)("publishRes")),1)]),c("div",Di,[(i(!0),p(D,null,R(u(e),g=>(i(),w(Ti,{key:g.id,item:g},null,8,["item"]))),128))]),S(Ai,{class:"pub-window","is-visible":o.value},{default:v(()=>[c("h2",null,N(u(j)("publishRes")),1),c("form",{onSubmit:nt(h,["prevent"])},[c("label",xi,N(u(j)("resName")),1),Ve(c("input",{type:"text",id:"name","onUpdate:modelValue":m[1]||(m[1]=g=>u(a).name=g),placeholder:u(j)("resNameText")},null,8,Fi),[[Te,u(a).name]]),c("div",Ri,[c("button",{class:"pub-option close",type:"button",onClick:r},N(u(j)("closeButtonText")),1),c("button",{class:"pub-option submit",type:"submit",onClick:h},N(u(j)("submitButtonText")),1)])],32)]),_:1},8,["is-visible"])]))}}),zi=$(ji,[["__scopeId","data-v-83d58003"]]),Ki={extends:ct,enhanceApp({app:n}){n.component("StatsBar",Ye),n.component("PluginStore",gi),n.component("ResStore",zi)},Layout:Ye};export{Ki as R,oa as c,j as g,O as u}; diff --git a/assets/chunks/theme.dkAQqrG2.js b/assets/chunks/theme.dkAQqrG2.js deleted file mode 100644 index 6a09df38..00000000 --- a/assets/chunks/theme.dkAQqrG2.js +++ /dev/null @@ -1,18 +0,0 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/chunks/VPLocalSearchBox.BmwVYg_B.js","assets/chunks/framework.C4_mTacX.js"])))=>i.map(i=>d[i]); -import{u as _e,d as b,o as r,c as p,r as f,n as D,a as J,t as T,b as w,w as v,e as k,T as Be,_ as $,i as Nt,f as Ct,g as Oe,h as I,j as u,k as c,p as F,l as R,m as oe,q as Ve,s as N,v as Y,x as me,y as te,z as le,A as He,B as At,C as Mt,D as se,F as x,E as z,G as Ze,H as ge,I as S,J as W,K as et,L as be,M as ee,N as ce,O as Et,P as ke,Q as Te,R as Bt,S as tt,U as ye,V as Ot,W as Ht,X as xt,Y as nt,Z as ot,$ as Dt,a0 as Ft,a1 as Rt,a2 as st,a3 as jt,a4 as zt,a5 as Ut,a6 as Ie,a7 as Ne,a8 as Ce}from"./framework.C4_mTacX.js";const Gt={en:{stats:"Stats",online:"Online",offline:"Offline",total:"Total",fetching:"Fetching",stars:"Stars",forks:"Forks",issues:"Issues",prs:"Pull Requests",visitors:"Visitors",size:"Size",plugins:"Plugins",resources:"Resources",pluginStore:"Plugin Store",pluginStoreDesc:"Content from the LightSnow Plugin Store, LightSnow supports NoneBot through the lpnonebot plugin, and references some NoneBot plugins",liteyukiOnly:"Liteyuki Only",search:"Search",resourceStore:"Resources Store",thx_contributors:"Thanks the following contributors!",easterEgg:"Congratulations on finding the Easter egg!",publishPlugin:"Publish Plugin",publishRes:"Publish Resource",closeButtonText:"Close",submitButtonText:"Submit",resName:"Name",resDesc:"Description",resAuthor:"Author",resLink:"Download Link",resHomepage:"Homepage",resNameText:"Example: Kawaii Style Theme",resDescText:"Example: A kawaii style and color theme",resAuthorText:"Usually the github username, Example: yanyongyu",resLinkText:"Direct download link, usually zip package link",resHomepageText:'Optional, can be the name of the git platform repository"'},zh:{stats:"统计信息",online:"在线",offline:"离线",total:"实例",fetching:"获取中",stars:"星星",forks:"分叉",issues:"议题",prs:"拉取请求",visitors:"访客",size:"大小",plugins:"插件",resources:"主题资源",store:"商店",pluginStore:"插件商店",pluginStoreDesc:"内容来自轻雪插件商店,轻雪通过lpnonebot插件对NoneBot实现支持,引用了部分NoneBot插件",liteyukiOnly:"仅轻雪",search:"搜索",resourceStore:"资源商店",thx_contributors:"感谢以下贡献者!",easterEgg:"恭喜你发现了彩蛋!",publishPlugin:"发布插件",publishRes:"发布资源",closeButtonText:"关闭",submitButtonText:"提交",resName:"名称",resDesc:"描述",resAuthor:"作者",resLink:"下载链接",resHomepage:"主页",resNameText:"示例:可爱风格主题",resDescText:"示例:一个可爱风格和配色的主题",resAuthorText:"通常为github用户名,示例:yanyongyu",resLinkText:"直接下载链接,通常为zip包链接",resHomepageText:"可选,可为git平台仓库名"}};let ve={};function at(t,e){return t=$e(t),Gt[t][e]}function $e(t){return t.includes("-")?t.split("-")[0]:t}function Kt(){const t=$e(_e().site.value.lang);for(let e in ve)ve[e].value=at(t,e)}function U(t){const e=$e(_e().site.value.lang);return ve[t]=at(e,t),ve[t]||t}const Wt=b({__name:"VPBadge",props:{text:{},type:{default:"tip"}},setup(t){return(e,n)=>(r(),p("span",{class:D(["VPBadge",e.type])},[f(e.$slots,"default",{},()=>[J(T(e.text),1)])],2))}}),qt={key:0,class:"VPBackdrop"},Jt=b({__name:"VPBackdrop",props:{show:{type:Boolean}},setup(t){return(e,n)=>(r(),w(Be,{name:"fade"},{default:v(()=>[e.show?(r(),p("div",qt)):k("",!0)]),_:1}))}}),Yt=$(Jt,[["__scopeId","data-v-7e9fed24"]]),O=_e;function Xt(t,e){let n,s=!1;return()=>{n&&clearTimeout(n),s?n=setTimeout(t,e):(t(),(s=!0)&&setTimeout(()=>s=!1,e))}}function Ae(t){return/^\//.test(t)?t:`/${t}`}function xe(t){const{pathname:e,search:n,hash:s,protocol:o}=new URL(t,"http://a.com");if(Nt(t)||t.startsWith("#")||!o.startsWith("http")||!Ct(e))return t;const{site:a}=O(),l=e.endsWith("/")||e.endsWith(".html")?t:t.replace(/(?:(^\.+)\/)?.*$/,`$1${e.replace(/(\.md)?$/,a.value.cleanUrls?"":".html")}${n}${s}`);return Oe(l)}function ue({correspondingLink:t=!1}={}){const{site:e,localeIndex:n,page:s,theme:o,hash:a}=O(),l=I(()=>{var d,h;return{label:(d=e.value.locales[n.value])==null?void 0:d.label,link:((h=e.value.locales[n.value])==null?void 0:h.link)||(n.value==="root"?"/":`/${n.value}/`)}});return{localeLinks:I(()=>Object.entries(e.value.locales).flatMap(([d,h])=>l.value.label===h.label?[]:{text:h.label,link:Qt(h.link||(d==="root"?"/":`/${d}/`),o.value.i18nRouting!==!1&&t,s.value.relativePath.slice(l.value.link.length-1),!e.value.cleanUrls)+a.value})),currentLang:l}}function Qt(t,e,n,s){return e?t.replace(/\/$/,"")+Ae(n.replace(/(^|\/)index\.md$/,"$1").replace(/\.md$/,s?".html":"")):t}const Zt=t=>(F("data-v-743bc607"),t=t(),R(),t),en={class:"NotFound"},tn={class:"code"},nn={class:"title"},on=Zt(()=>u("div",{class:"divider"},null,-1)),sn={class:"quote"},an={class:"action"},rn=["href","aria-label"],ln=b({__name:"NotFound",setup(t){const{theme:e}=O(),{currentLang:n}=ue();return(s,o)=>{var a,l,i,d,h;return r(),p("div",en,[u("p",tn,T(((a=c(e).notFound)==null?void 0:a.code)??"404"),1),u("h1",nn,T(((l=c(e).notFound)==null?void 0:l.title)??"PAGE NOT FOUND"),1),on,u("blockquote",sn,T(((i=c(e).notFound)==null?void 0:i.quote)??"But if you don't change your direction, and if you keep looking, you may end up where you are heading."),1),u("div",an,[u("a",{class:"link",href:c(Oe)(c(n).link),"aria-label":((d=c(e).notFound)==null?void 0:d.linkLabel)??"go to home"},T(((h=c(e).notFound)==null?void 0:h.linkText)??"Take me home"),9,rn)])])}}}),cn=$(ln,[["__scopeId","data-v-743bc607"]]);function rt(t,e){if(Array.isArray(t))return fe(t);if(t==null)return[];e=Ae(e);const n=Object.keys(t).sort((o,a)=>a.split("/").length-o.split("/").length).find(o=>e.startsWith(Ae(o))),s=n?t[n]:[];return Array.isArray(s)?fe(s):fe(s.items,s.base)}function un(t){const e=[];let n=0;for(const s in t){const o=t[s];if(o.items){n=e.push(o);continue}e[n]||e.push({items:[]}),e[n].items.push(o)}return e}function dn(t){const e=[];function n(s){for(const o of s)o.text&&o.link&&e.push({text:o.text,link:o.link,docFooterText:o.docFooterText}),o.items&&n(o.items)}return n(t),e}function Me(t,e){return Array.isArray(e)?e.some(n=>Me(t,n)):oe(t,e.link)?!0:e.items?Me(t,e.items):!1}function fe(t,e){return[...t].map(n=>{const s={...n},o=s.base||e;return o&&s.link&&(s.link=o+s.link),s.items&&(s.items=fe(s.items,o)),s})}function X(){const{frontmatter:t,page:e,theme:n}=O(),s=Ve("(min-width: 960px)"),o=N(!1),a=I(()=>{const M=n.value.sidebar,y=e.value.relativePath;return M?rt(M,y):[]}),l=N(a.value);Y(a,(M,y)=>{JSON.stringify(M)!==JSON.stringify(y)&&(l.value=a.value)});const i=I(()=>t.value.sidebar!==!1&&l.value.length>0&&t.value.layout!=="home"),d=I(()=>h?t.value.aside==null?n.value.aside==="left":t.value.aside==="left":!1),h=I(()=>t.value.layout==="home"?!1:t.value.aside!=null?!!t.value.aside:n.value.aside!==!1),m=I(()=>i.value&&s.value),_=I(()=>i.value?un(l.value):[]);function g(){o.value=!0}function C(){o.value=!1}function V(){o.value?C():g()}return{isOpen:o,sidebar:l,sidebarGroups:_,hasSidebar:i,hasAside:h,leftAside:d,isSidebarEnabled:m,open:g,close:C,toggle:V}}function pn(t,e){let n;me(()=>{n=t.value?document.activeElement:void 0}),te(()=>{window.addEventListener("keyup",s)}),le(()=>{window.removeEventListener("keyup",s)});function s(o){o.key==="Escape"&&t.value&&(e(),n==null||n.focus())}}function fn(t){const{page:e,hash:n}=O(),s=N(!1),o=I(()=>t.value.collapsed!=null),a=I(()=>!!t.value.link),l=N(!1),i=()=>{l.value=oe(e.value.relativePath,t.value.link)};Y([e,t,n],i),te(i);const d=I(()=>l.value?!0:t.value.items?Me(e.value.relativePath,t.value.items):!1),h=I(()=>!!(t.value.items&&t.value.items.length));me(()=>{s.value=!!(o.value&&t.value.collapsed)}),He(()=>{(l.value||d.value)&&(s.value=!1)});function m(){o.value&&(s.value=!s.value)}return{collapsed:s,collapsible:o,isLink:a,isActiveLink:l,hasActiveLink:d,hasChildren:h,toggle:m}}function vn(){const{hasSidebar:t}=X(),e=Ve("(min-width: 960px)"),n=Ve("(min-width: 1280px)");return{isAsideEnabled:I(()=>!n.value&&!e.value?!1:t.value?n.value:e.value)}}const Ee=[];function it(t){return typeof t.outline=="object"&&!Array.isArray(t.outline)&&t.outline.label||t.outlineTitle||"On this page"}function De(t){const e=[...document.querySelectorAll(".VPDoc :where(h1,h2,h3,h4,h5,h6)")].filter(n=>n.id&&n.hasChildNodes()).map(n=>{const s=Number(n.tagName[1]);return{element:n,title:hn(n),link:"#"+n.id,level:s}});return _n(e,t)}function hn(t){let e="";for(const n of t.childNodes)if(n.nodeType===1){if(n.classList.contains("VPBadge")||n.classList.contains("header-anchor")||n.classList.contains("ignore-header"))continue;e+=n.textContent}else n.nodeType===3&&(e+=n.textContent);return e.trim()}function _n(t,e){if(e===!1)return[];const n=(typeof e=="object"&&!Array.isArray(e)?e.level:e)||2,[s,o]=typeof n=="number"?[n,n]:n==="deep"?[2,6]:n;t=t.filter(l=>l.level>=s&&l.level<=o),Ee.length=0;for(const{element:l,link:i}of t)Ee.push({element:l,link:i});const a=[];e:for(let l=0;l=0;d--){const h=t[d];if(h.level{requestAnimationFrame(a),window.addEventListener("scroll",s)}),At(()=>{l(location.hash)}),le(()=>{window.removeEventListener("scroll",s)});function a(){if(!n.value)return;const i=window.scrollY,d=window.innerHeight,h=document.body.offsetHeight,m=Math.abs(i+d-h)<1,_=Ee.map(({element:C,link:V})=>({link:V,top:gn(C)})).filter(({top:C})=>!Number.isNaN(C)).sort((C,V)=>C.top-V.top);if(!_.length){l(null);return}if(i<1){l(null);return}if(m){l(_[_.length-1].link);return}let g=null;for(const{link:C,top:V}of _){if(V>i+Mt()+4)break;g=C}l(g)}function l(i){o&&o.classList.remove("active"),i==null?o=null:o=t.value.querySelector(`a[href="${decodeURIComponent(i)}"]`);const d=o;d?(d.classList.add("active"),e.value.style.top=d.offsetTop+39+"px",e.value.style.opacity="1"):(e.value.style.top="33px",e.value.style.opacity="0")}}function gn(t){let e=0;for(;t!==document.body;){if(t===null)return NaN;e+=t.offsetTop,t=t.offsetParent}return e}const bn=["href","title"],kn=b({__name:"VPDocOutlineItem",props:{headers:{},root:{type:Boolean}},setup(t){function e({target:n}){const s=n.href.split("#")[1],o=document.getElementById(decodeURIComponent(s));o==null||o.focus({preventScroll:!0})}return(n,s)=>{const o=se("VPDocOutlineItem",!0);return r(),p("ul",{class:D(["VPDocOutlineItem",n.root?"root":"nested"])},[(r(!0),p(x,null,z(n.headers,({children:a,link:l,title:i})=>(r(),p("li",null,[u("a",{class:"outline-link",href:l,onClick:e,title:i},T(i),9,bn),a!=null&&a.length?(r(),w(o,{key:0,headers:a},null,8,["headers"])):k("",!0)]))),256))],2)}}}),lt=$(kn,[["__scopeId","data-v-1406b17f"]]),yn={class:"content"},$n={"aria-level":"2",class:"outline-title",id:"doc-outline-aria-label",role:"heading"},Sn=b({__name:"VPDocAsideOutline",setup(t){const{frontmatter:e,theme:n}=O(),s=Ze([]);ge(()=>{s.value=De(e.value.outline??n.value.outline)});const o=N(),a=N();return mn(o,a),(l,i)=>(r(),p("nav",{"aria-labelledby":"doc-outline-aria-label",class:D(["VPDocAsideOutline",{"has-outline":s.value.length>0}]),ref_key:"container",ref:o},[u("div",yn,[u("div",{class:"outline-marker",ref_key:"marker",ref:a},null,512),u("div",$n,T(c(it)(c(n))),1),S(lt,{headers:s.value,root:!0},null,8,["headers"])])],2))}}),wn=$(Sn,[["__scopeId","data-v-d2c84864"]]),Pn={class:"VPDocAsideCarbonAds"},Ln=b({__name:"VPDocAsideCarbonAds",props:{carbonAds:{}},setup(t){const e=()=>null;return(n,s)=>(r(),p("div",Pn,[S(c(e),{"carbon-ads":n.carbonAds},null,8,["carbon-ads"])]))}}),Vn=t=>(F("data-v-2fb953a0"),t=t(),R(),t),Tn={class:"VPDocAside"},In=Vn(()=>u("div",{class:"spacer"},null,-1)),Nn=b({__name:"VPDocAside",setup(t){const{theme:e}=O();return(n,s)=>(r(),p("div",Tn,[f(n.$slots,"aside-top",{},void 0,!0),f(n.$slots,"aside-outline-before",{},void 0,!0),S(wn),f(n.$slots,"aside-outline-after",{},void 0,!0),In,f(n.$slots,"aside-ads-before",{},void 0,!0),c(e).carbonAds?(r(),w(Ln,{key:0,"carbon-ads":c(e).carbonAds},null,8,["carbon-ads"])):k("",!0),f(n.$slots,"aside-ads-after",{},void 0,!0),f(n.$slots,"aside-bottom",{},void 0,!0)]))}}),Cn=$(Nn,[["__scopeId","data-v-2fb953a0"]]);function An(){const{theme:t,page:e}=O();return I(()=>{const{text:n="Edit this page",pattern:s=""}=t.value.editLink||{};let o;return typeof s=="function"?o=s(e.value):o=s.replace(/:path/g,e.value.filePath),{url:o,text:n}})}function Mn(){const{page:t,theme:e,frontmatter:n}=O();return I(()=>{var h,m,_,g,C,V,M,y;const s=rt(e.value.sidebar,t.value.relativePath),o=dn(s),a=En(o,j=>j.link.replace(/[?#].*$/,"")),l=a.findIndex(j=>oe(t.value.relativePath,j.link)),i=((h=e.value.docFooter)==null?void 0:h.prev)===!1&&!n.value.prev||n.value.prev===!1,d=((m=e.value.docFooter)==null?void 0:m.next)===!1&&!n.value.next||n.value.next===!1;return{prev:i?void 0:{text:(typeof n.value.prev=="string"?n.value.prev:typeof n.value.prev=="object"?n.value.prev.text:void 0)??((_=a[l-1])==null?void 0:_.docFooterText)??((g=a[l-1])==null?void 0:g.text),link:(typeof n.value.prev=="object"?n.value.prev.link:void 0)??((C=a[l-1])==null?void 0:C.link)},next:d?void 0:{text:(typeof n.value.next=="string"?n.value.next:typeof n.value.next=="object"?n.value.next.text:void 0)??((V=a[l+1])==null?void 0:V.docFooterText)??((M=a[l+1])==null?void 0:M.text),link:(typeof n.value.next=="object"?n.value.next.link:void 0)??((y=a[l+1])==null?void 0:y.link)}}})}function En(t,e){const n=new Set;return t.filter(s=>{const o=e(s);return n.has(o)?!1:n.add(o)})}const q=b({__name:"VPLink",props:{tag:{},href:{},noIcon:{type:Boolean},target:{},rel:{}},setup(t){const e=t,n=I(()=>e.tag??(e.href?"a":"span")),s=I(()=>e.href&&et.test(e.href)||e.target==="_blank");return(o,a)=>(r(),w(W(n.value),{class:D(["VPLink",{link:o.href,"vp-external-link-icon":s.value,"no-icon":o.noIcon}]),href:o.href?c(xe)(o.href):void 0,target:o.target??(s.value?"_blank":void 0),rel:o.rel??(s.value?"noreferrer":void 0)},{default:v(()=>[f(o.$slots,"default")]),_:3},8,["class","href","target","rel"]))}}),Bn={class:"VPLastUpdated"},On=["datetime"],Hn=b({__name:"VPDocFooterLastUpdated",setup(t){const{theme:e,page:n,lang:s}=O(),o=I(()=>new Date(n.value.lastUpdated)),a=I(()=>o.value.toISOString()),l=N("");return te(()=>{me(()=>{var i,d,h;l.value=new Intl.DateTimeFormat((d=(i=e.value.lastUpdated)==null?void 0:i.formatOptions)!=null&&d.forceLocale?s.value:void 0,((h=e.value.lastUpdated)==null?void 0:h.formatOptions)??{dateStyle:"short",timeStyle:"short"}).format(o.value)})}),(i,d)=>{var h;return r(),p("p",Bn,[J(T(((h=c(e).lastUpdated)==null?void 0:h.text)||c(e).lastUpdatedText||"Last updated")+": ",1),u("time",{datetime:a.value},T(l.value),9,On)])}}}),xn=$(Hn,[["__scopeId","data-v-8a8c5efc"]]),ct=t=>(F("data-v-655c432b"),t=t(),R(),t),Dn={key:0,class:"VPDocFooter"},Fn={key:0,class:"edit-info"},Rn={key:0,class:"edit-link"},jn=ct(()=>u("span",{class:"vpi-square-pen edit-link-icon"},null,-1)),zn={key:1,class:"last-updated"},Un={key:1,class:"prev-next","aria-labelledby":"doc-footer-aria-label"},Gn=ct(()=>u("span",{class:"visually-hidden",id:"doc-footer-aria-label"},"Pager",-1)),Kn={class:"pager"},Wn=["innerHTML"],qn=["innerHTML"],Jn={class:"pager"},Yn=["innerHTML"],Xn=["innerHTML"],Qn=b({__name:"VPDocFooter",setup(t){const{theme:e,page:n,frontmatter:s}=O(),o=An(),a=Mn(),l=I(()=>e.value.editLink&&s.value.editLink!==!1),i=I(()=>n.value.lastUpdated),d=I(()=>l.value||i.value||a.value.prev||a.value.next);return(h,m)=>{var _,g,C,V;return d.value?(r(),p("footer",Dn,[f(h.$slots,"doc-footer-before",{},void 0,!0),l.value||i.value?(r(),p("div",Fn,[l.value?(r(),p("div",Rn,[S(q,{class:"edit-link-button",href:c(o).url,"no-icon":!0},{default:v(()=>[jn,J(" "+T(c(o).text),1)]),_:1},8,["href"])])):k("",!0),i.value?(r(),p("div",zn,[S(xn)])):k("",!0)])):k("",!0),(_=c(a).prev)!=null&&_.link||(g=c(a).next)!=null&&g.link?(r(),p("nav",Un,[Gn,u("div",Kn,[(C=c(a).prev)!=null&&C.link?(r(),w(q,{key:0,class:"pager-link prev",href:c(a).prev.link},{default:v(()=>{var M;return[u("span",{class:"desc",innerHTML:((M=c(e).docFooter)==null?void 0:M.prev)||"Previous page"},null,8,Wn),u("span",{class:"title",innerHTML:c(a).prev.text},null,8,qn)]}),_:1},8,["href"])):k("",!0)]),u("div",Jn,[(V=c(a).next)!=null&&V.link?(r(),w(q,{key:0,class:"pager-link next",href:c(a).next.link},{default:v(()=>{var M;return[u("span",{class:"desc",innerHTML:((M=c(e).docFooter)==null?void 0:M.next)||"Next page"},null,8,Yn),u("span",{class:"title",innerHTML:c(a).next.text},null,8,Xn)]}),_:1},8,["href"])):k("",!0)])])):k("",!0)])):k("",!0)}}}),Zn=$(Qn,[["__scopeId","data-v-655c432b"]]),eo=t=>(F("data-v-1c9751e9"),t=t(),R(),t),to={class:"container"},no=eo(()=>u("div",{class:"aside-curtain"},null,-1)),oo={class:"aside-container"},so={class:"aside-content"},ao={class:"content"},ro={class:"content-container"},io={class:"main"},lo=b({__name:"VPDoc",setup(t){const{theme:e}=O(),n=be(),{hasSidebar:s,hasAside:o,leftAside:a}=X(),l=I(()=>n.path.replace(/[./]+/g,"_").replace(/_html$/,""));return(i,d)=>{const h=se("Content");return r(),p("div",{class:D(["VPDoc",{"has-sidebar":c(s),"has-aside":c(o)}])},[f(i.$slots,"doc-top",{},void 0,!0),u("div",to,[c(o)?(r(),p("div",{key:0,class:D(["aside",{"left-aside":c(a)}])},[no,u("div",oo,[u("div",so,[S(Cn,null,{"aside-top":v(()=>[f(i.$slots,"aside-top",{},void 0,!0)]),"aside-bottom":v(()=>[f(i.$slots,"aside-bottom",{},void 0,!0)]),"aside-outline-before":v(()=>[f(i.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":v(()=>[f(i.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":v(()=>[f(i.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":v(()=>[f(i.$slots,"aside-ads-after",{},void 0,!0)]),_:3})])])],2)):k("",!0),u("div",ao,[u("div",ro,[f(i.$slots,"doc-before",{},void 0,!0),u("main",io,[S(h,{class:D(["vp-doc",[l.value,c(e).externalLinkIcon&&"external-link-icon-enabled"]])},null,8,["class"])]),S(Zn,null,{"doc-footer-before":v(()=>[f(i.$slots,"doc-footer-before",{},void 0,!0)]),_:3}),f(i.$slots,"doc-after",{},void 0,!0)])])]),f(i.$slots,"doc-bottom",{},void 0,!0)],2)}}}),co=$(lo,[["__scopeId","data-v-1c9751e9"]]),uo=b({__name:"VPButton",props:{tag:{},size:{default:"medium"},theme:{default:"brand"},text:{},href:{},target:{},rel:{}},setup(t){const e=t,n=I(()=>e.href&&et.test(e.href)),s=I(()=>e.tag||e.href?"a":"button");return(o,a)=>(r(),w(W(s.value),{class:D(["VPButton",[o.size,o.theme]]),href:o.href?c(xe)(o.href):void 0,target:e.target??(n.value?"_blank":void 0),rel:e.rel??(n.value?"noreferrer":void 0)},{default:v(()=>[J(T(o.text),1)]),_:1},8,["class","href","target","rel"]))}}),po=$(uo,[["__scopeId","data-v-885c0d42"]]),fo=["src","alt"],vo=b({inheritAttrs:!1,__name:"VPImage",props:{image:{},alt:{}},setup(t){return(e,n)=>{const s=se("VPImage",!0);return e.image?(r(),p(x,{key:0},[typeof e.image=="string"||"src"in e.image?(r(),p("img",ee({key:0,class:"VPImage"},typeof e.image=="string"?e.$attrs:{...e.image,...e.$attrs},{src:c(Oe)(typeof e.image=="string"?e.image:e.image.src),alt:e.alt??(typeof e.image=="string"?"":e.image.alt||"")}),null,16,fo)):(r(),p(x,{key:1},[S(s,ee({class:"dark",image:e.image.dark,alt:e.image.alt},e.$attrs),null,16,["image","alt"]),S(s,ee({class:"light",image:e.image.light,alt:e.image.alt},e.$attrs),null,16,["image","alt"])],64))],64)):k("",!0)}}}),he=$(vo,[["__scopeId","data-v-e2df84be"]]),ho=t=>(F("data-v-fad16c33"),t=t(),R(),t),_o={class:"container"},mo={class:"main"},go={key:0,class:"name"},bo=["innerHTML"],ko=["innerHTML"],yo=["innerHTML"],$o={key:0,class:"actions"},So={key:0,class:"image"},wo={class:"image-container"},Po=ho(()=>u("div",{class:"image-bg"},null,-1)),Lo=b({__name:"VPHero",props:{name:{},text:{},tagline:{},image:{},actions:{}},setup(t){const e=ce("hero-image-slot-exists");return(n,s)=>(r(),p("div",{class:D(["VPHero",{"has-image":n.image||c(e)}])},[u("div",_o,[u("div",mo,[f(n.$slots,"home-hero-info-before",{},void 0,!0),f(n.$slots,"home-hero-info",{},()=>[n.name?(r(),p("h1",go,[u("span",{innerHTML:n.name,class:"clip"},null,8,bo)])):k("",!0),n.text?(r(),p("p",{key:1,innerHTML:n.text,class:"text"},null,8,ko)):k("",!0),n.tagline?(r(),p("p",{key:2,innerHTML:n.tagline,class:"tagline"},null,8,yo)):k("",!0)],!0),f(n.$slots,"home-hero-info-after",{},void 0,!0),n.actions?(r(),p("div",$o,[(r(!0),p(x,null,z(n.actions,o=>(r(),p("div",{key:o.link,class:"action"},[S(po,{tag:"a",size:"medium",theme:o.theme,text:o.text,href:o.link,target:o.target,rel:o.rel},null,8,["theme","text","href","target","rel"])]))),128))])):k("",!0),f(n.$slots,"home-hero-actions-after",{},void 0,!0)]),n.image||c(e)?(r(),p("div",So,[u("div",wo,[Po,f(n.$slots,"home-hero-image",{},()=>[n.image?(r(),w(he,{key:0,class:"image-src",image:n.image},null,8,["image"])):k("",!0)],!0)])])):k("",!0)])],2))}}),Vo=$(Lo,[["__scopeId","data-v-fad16c33"]]),To=b({__name:"VPHomeHero",setup(t){const{frontmatter:e}=O();return(n,s)=>c(e).hero?(r(),w(Vo,{key:0,class:"VPHomeHero",name:c(e).hero.name,text:c(e).hero.text,tagline:c(e).hero.tagline,image:c(e).hero.image,actions:c(e).hero.actions},{"home-hero-info-before":v(()=>[f(n.$slots,"home-hero-info-before")]),"home-hero-info":v(()=>[f(n.$slots,"home-hero-info")]),"home-hero-info-after":v(()=>[f(n.$slots,"home-hero-info-after")]),"home-hero-actions-after":v(()=>[f(n.$slots,"home-hero-actions-after")]),"home-hero-image":v(()=>[f(n.$slots,"home-hero-image")]),_:3},8,["name","text","tagline","image","actions"])):k("",!0)}}),Io=t=>(F("data-v-cf4dac36"),t=t(),R(),t),No={class:"box"},Co={key:0,class:"icon"},Ao=["innerHTML"],Mo=["innerHTML"],Eo=["innerHTML"],Bo={key:4,class:"link-text"},Oo={class:"link-text-value"},Ho=Io(()=>u("span",{class:"vpi-arrow-right link-text-icon"},null,-1)),xo=b({__name:"VPFeature",props:{icon:{},title:{},details:{},link:{},linkText:{},rel:{},target:{}},setup(t){return(e,n)=>(r(),w(q,{class:"VPFeature",href:e.link,rel:e.rel,target:e.target,"no-icon":!0,tag:e.link?"a":"div"},{default:v(()=>[u("article",No,[typeof e.icon=="object"&&e.icon.wrap?(r(),p("div",Co,[S(he,{image:e.icon,alt:e.icon.alt,height:e.icon.height||48,width:e.icon.width||48},null,8,["image","alt","height","width"])])):typeof e.icon=="object"?(r(),w(he,{key:1,image:e.icon,alt:e.icon.alt,height:e.icon.height||48,width:e.icon.width||48},null,8,["image","alt","height","width"])):e.icon?(r(),p("div",{key:2,class:"icon",innerHTML:e.icon},null,8,Ao)):k("",!0),u("h2",{class:"title",innerHTML:e.title},null,8,Mo),e.details?(r(),p("p",{key:3,class:"details",innerHTML:e.details},null,8,Eo)):k("",!0),e.linkText?(r(),p("div",Bo,[u("p",Oo,[J(T(e.linkText)+" ",1),Ho])])):k("",!0)])]),_:1},8,["href","rel","target","tag"]))}}),Do=$(xo,[["__scopeId","data-v-cf4dac36"]]),Fo={key:0,class:"VPFeatures"},Ro={class:"container"},jo={class:"items"},zo=b({__name:"VPFeatures",props:{features:{}},setup(t){const e=t,n=I(()=>{const s=e.features.length;if(s){if(s===2)return"grid-2";if(s===3)return"grid-3";if(s%3===0)return"grid-6";if(s>3)return"grid-4"}else return});return(s,o)=>s.features?(r(),p("div",Fo,[u("div",Ro,[u("div",jo,[(r(!0),p(x,null,z(s.features,a=>(r(),p("div",{key:a.title,class:D(["item",[n.value]])},[S(Do,{icon:a.icon,title:a.title,details:a.details,link:a.link,"link-text":a.linkText,rel:a.rel,target:a.target},null,8,["icon","title","details","link","link-text","rel","target"])],2))),128))])])])):k("",!0)}}),Uo=$(zo,[["__scopeId","data-v-ac35a1e4"]]),Go=b({__name:"VPHomeFeatures",setup(t){const{frontmatter:e}=O();return(n,s)=>c(e).features?(r(),w(Uo,{key:0,class:"VPHomeFeatures",features:c(e).features},null,8,["features"])):k("",!0)}}),Ko=b({__name:"VPHomeContent",setup(t){const{width:e}=Et({initialWidth:0,includeScrollbar:!1});return(n,s)=>(r(),p("div",{class:"vp-doc container",style:ke(c(e)?{"--vp-offset":`calc(50% - ${c(e)/2}px)`}:{})},[f(n.$slots,"default",{},void 0,!0)],4))}}),Wo=$(Ko,[["__scopeId","data-v-6adace40"]]),qo={class:"VPHome"},Jo=b({__name:"VPHome",setup(t){const{frontmatter:e}=O();return(n,s)=>{const o=se("Content");return r(),p("div",qo,[f(n.$slots,"home-hero-before",{},void 0,!0),S(To,null,{"home-hero-info-before":v(()=>[f(n.$slots,"home-hero-info-before",{},void 0,!0)]),"home-hero-info":v(()=>[f(n.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-info-after":v(()=>[f(n.$slots,"home-hero-info-after",{},void 0,!0)]),"home-hero-actions-after":v(()=>[f(n.$slots,"home-hero-actions-after",{},void 0,!0)]),"home-hero-image":v(()=>[f(n.$slots,"home-hero-image",{},void 0,!0)]),_:3}),f(n.$slots,"home-hero-after",{},void 0,!0),f(n.$slots,"home-features-before",{},void 0,!0),S(Go),f(n.$slots,"home-features-after",{},void 0,!0),c(e).markdownStyles!==!1?(r(),w(Wo,{key:0},{default:v(()=>[S(o)]),_:1})):(r(),w(o,{key:1}))])}}}),Yo=$(Jo,[["__scopeId","data-v-da614b08"]]),Xo={},Qo={class:"VPPage"};function Zo(t,e){const n=se("Content");return r(),p("div",Qo,[f(t.$slots,"page-top"),S(n),f(t.$slots,"page-bottom")])}const es=$(Xo,[["render",Zo]]),ts=b({__name:"VPContent",setup(t){const{page:e,frontmatter:n}=O(),{hasSidebar:s}=X();return(o,a)=>(r(),p("div",{class:D(["VPContent",{"has-sidebar":c(s),"is-home":c(n).layout==="home"}]),id:"VPContent"},[c(e).isNotFound?f(o.$slots,"not-found",{key:0},()=>[S(cn)],!0):c(n).layout==="page"?(r(),w(es,{key:1},{"page-top":v(()=>[f(o.$slots,"page-top",{},void 0,!0)]),"page-bottom":v(()=>[f(o.$slots,"page-bottom",{},void 0,!0)]),_:3})):c(n).layout==="home"?(r(),w(Yo,{key:2},{"home-hero-before":v(()=>[f(o.$slots,"home-hero-before",{},void 0,!0)]),"home-hero-info-before":v(()=>[f(o.$slots,"home-hero-info-before",{},void 0,!0)]),"home-hero-info":v(()=>[f(o.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-info-after":v(()=>[f(o.$slots,"home-hero-info-after",{},void 0,!0)]),"home-hero-actions-after":v(()=>[f(o.$slots,"home-hero-actions-after",{},void 0,!0)]),"home-hero-image":v(()=>[f(o.$slots,"home-hero-image",{},void 0,!0)]),"home-hero-after":v(()=>[f(o.$slots,"home-hero-after",{},void 0,!0)]),"home-features-before":v(()=>[f(o.$slots,"home-features-before",{},void 0,!0)]),"home-features-after":v(()=>[f(o.$slots,"home-features-after",{},void 0,!0)]),_:3})):c(n).layout&&c(n).layout!=="doc"?(r(),w(W(c(n).layout),{key:3})):(r(),w(co,{key:4},{"doc-top":v(()=>[f(o.$slots,"doc-top",{},void 0,!0)]),"doc-bottom":v(()=>[f(o.$slots,"doc-bottom",{},void 0,!0)]),"doc-footer-before":v(()=>[f(o.$slots,"doc-footer-before",{},void 0,!0)]),"doc-before":v(()=>[f(o.$slots,"doc-before",{},void 0,!0)]),"doc-after":v(()=>[f(o.$slots,"doc-after",{},void 0,!0)]),"aside-top":v(()=>[f(o.$slots,"aside-top",{},void 0,!0)]),"aside-outline-before":v(()=>[f(o.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":v(()=>[f(o.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":v(()=>[f(o.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":v(()=>[f(o.$slots,"aside-ads-after",{},void 0,!0)]),"aside-bottom":v(()=>[f(o.$slots,"aside-bottom",{},void 0,!0)]),_:3}))],2))}}),ns=$(ts,[["__scopeId","data-v-f70c28c5"]]),os={class:"container"},ss=["innerHTML"],as=["innerHTML"],rs=b({__name:"VPFooter",setup(t){const{theme:e,frontmatter:n}=O(),{hasSidebar:s}=X();return(o,a)=>c(e).footer&&c(n).footer!==!1?(r(),p("footer",{key:0,class:D(["VPFooter",{"has-sidebar":c(s)}])},[u("div",os,[c(e).footer.message?(r(),p("p",{key:0,class:"message",innerHTML:c(e).footer.message},null,8,ss)):k("",!0),c(e).footer.copyright?(r(),p("p",{key:1,class:"copyright",innerHTML:c(e).footer.copyright},null,8,as)):k("",!0)])],2)):k("",!0)}}),is=$(rs,[["__scopeId","data-v-1a52749f"]]);function ls(){const{theme:t,frontmatter:e}=O(),n=Ze([]),s=I(()=>n.value.length>0);return ge(()=>{n.value=De(e.value.outline??t.value.outline)}),{headers:n,hasLocalNav:s}}const cs=t=>(F("data-v-c1bcce0a"),t=t(),R(),t),us={class:"menu-text"},ds=cs(()=>u("span",{class:"vpi-chevron-right icon"},null,-1)),ps={class:"header"},fs={class:"outline"},vs=b({__name:"VPLocalNavOutlineDropdown",props:{headers:{},navHeight:{}},setup(t){const e=t,{theme:n}=O(),s=N(!1),o=N(0),a=N(),l=N();function i(_){var g;(g=a.value)!=null&&g.contains(_.target)||(s.value=!1)}Y(s,_=>{if(_){document.addEventListener("click",i);return}document.removeEventListener("click",i)}),Te("Escape",()=>{s.value=!1}),ge(()=>{s.value=!1});function d(){s.value=!s.value,o.value=window.innerHeight+Math.min(window.scrollY-e.navHeight,0)}function h(_){_.target.classList.contains("outline-link")&&(l.value&&(l.value.style.transition="none"),Bt(()=>{s.value=!1}))}function m(){s.value=!1,window.scrollTo({top:0,left:0,behavior:"smooth"})}return(_,g)=>(r(),p("div",{class:"VPLocalNavOutlineDropdown",style:ke({"--vp-vh":o.value+"px"}),ref_key:"main",ref:a},[_.headers.length>0?(r(),p("button",{key:0,onClick:d,class:D({open:s.value})},[u("span",us,T(c(it)(c(n))),1),ds],2)):(r(),p("button",{key:1,onClick:m},T(c(n).returnToTopLabel||"Return to top"),1)),S(Be,{name:"flyout"},{default:v(()=>[s.value?(r(),p("div",{key:0,ref_key:"items",ref:l,class:"items",onClick:h},[u("div",ps,[u("a",{class:"top-link",href:"#",onClick:m},T(c(n).returnToTopLabel||"Return to top"),1)]),u("div",fs,[S(lt,{headers:_.headers},null,8,["headers"])])],512)):k("",!0)]),_:1})],4))}}),hs=$(vs,[["__scopeId","data-v-c1bcce0a"]]),_s=t=>(F("data-v-cb0eba99"),t=t(),R(),t),ms={class:"container"},gs=["aria-expanded"],bs=_s(()=>u("span",{class:"vpi-align-left menu-icon"},null,-1)),ks={class:"menu-text"},ys=b({__name:"VPLocalNav",props:{open:{type:Boolean}},emits:["open-menu"],setup(t){const{theme:e,frontmatter:n}=O(),{hasSidebar:s}=X(),{headers:o}=ls(),{y:a}=tt(),l=N(0);te(()=>{l.value=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--vp-nav-height"))}),ge(()=>{o.value=De(n.value.outline??e.value.outline)});const i=I(()=>o.value.length===0),d=I(()=>i.value&&!s.value),h=I(()=>({VPLocalNav:!0,"has-sidebar":s.value,empty:i.value,fixed:d.value}));return(m,_)=>c(n).layout!=="home"&&(!d.value||c(a)>=l.value)?(r(),p("div",{key:0,class:D(h.value)},[u("div",ms,[c(s)?(r(),p("button",{key:0,class:"menu","aria-expanded":m.open,"aria-controls":"VPSidebarNav",onClick:_[0]||(_[0]=g=>m.$emit("open-menu"))},[bs,u("span",ks,T(c(e).sidebarMenuLabel||"Menu"),1)],8,gs)):k("",!0),S(hs,{headers:c(o),navHeight:l.value},null,8,["headers","navHeight"])])],2)):k("",!0)}}),$s=$(ys,[["__scopeId","data-v-cb0eba99"]]);function Ss(){const t=N(!1);function e(){t.value=!0,window.addEventListener("resize",o)}function n(){t.value=!1,window.removeEventListener("resize",o)}function s(){t.value?n():e()}function o(){window.outerWidth>=768&&n()}const a=be();return Y(()=>a.path,n),{isScreenOpen:t,openScreen:e,closeScreen:n,toggleScreen:s}}const ws={},Ps={class:"VPSwitch",type:"button",role:"switch"},Ls={class:"check"},Vs={key:0,class:"icon"};function Ts(t,e){return r(),p("button",Ps,[u("span",Ls,[t.$slots.default?(r(),p("span",Vs,[f(t.$slots,"default",{},void 0,!0)])):k("",!0)])])}const Is=$(ws,[["render",Ts],["__scopeId","data-v-be0da757"]]),ut=t=>(F("data-v-d86ee44f"),t=t(),R(),t),Ns=ut(()=>u("span",{class:"vpi-sun sun"},null,-1)),Cs=ut(()=>u("span",{class:"vpi-moon moon"},null,-1)),As=b({__name:"VPSwitchAppearance",setup(t){const{isDark:e,theme:n}=O(),s=ce("toggle-appearance",()=>{e.value=!e.value}),o=N("");return He(()=>{o.value=e.value?n.value.lightModeSwitchTitle||"Switch to light theme":n.value.darkModeSwitchTitle||"Switch to dark theme"}),(a,l)=>(r(),w(Is,{title:o.value,class:"VPSwitchAppearance","aria-checked":c(e),onClick:c(s)},{default:v(()=>[Ns,Cs]),_:1},8,["title","aria-checked","onClick"]))}}),Fe=$(As,[["__scopeId","data-v-d86ee44f"]]),Ms={key:0,class:"VPNavBarAppearance"},Es=b({__name:"VPNavBarAppearance",setup(t){const{site:e}=O();return(n,s)=>c(e).appearance&&c(e).appearance!=="force-dark"&&c(e).appearance!=="force-auto"?(r(),p("div",Ms,[S(Fe)])):k("",!0)}}),Bs=$(Es,[["__scopeId","data-v-06e253f6"]]),Re=N();let dt=!1,Le=0;function Os(t){const e=N(!1);if(ye){!dt&&Hs(),Le++;const n=Y(Re,s=>{var o,a,l;s===t.el.value||(o=t.el.value)!=null&&o.contains(s)?(e.value=!0,(a=t.onFocus)==null||a.call(t)):(e.value=!1,(l=t.onBlur)==null||l.call(t))});le(()=>{n(),Le--,Le||xs()})}return Ot(e)}function Hs(){document.addEventListener("focusin",pt),dt=!0,Re.value=document.activeElement}function xs(){document.removeEventListener("focusin",pt)}function pt(){Re.value=document.activeElement}const Ds={class:"VPMenuLink"},Fs=b({__name:"VPMenuLink",props:{item:{}},setup(t){const{page:e}=O();return(n,s)=>(r(),p("div",Ds,[S(q,{class:D({active:c(oe)(c(e).relativePath,n.item.activeMatch||n.item.link,!!n.item.activeMatch)}),href:n.item.link,target:n.item.target,rel:n.item.rel},{default:v(()=>[J(T(n.item.text),1)]),_:1},8,["class","href","target","rel"])]))}}),Se=$(Fs,[["__scopeId","data-v-01a82388"]]),Rs={class:"VPMenuGroup"},js={key:0,class:"title"},zs=b({__name:"VPMenuGroup",props:{text:{},items:{}},setup(t){return(e,n)=>(r(),p("div",Rs,[e.text?(r(),p("p",js,T(e.text),1)):k("",!0),(r(!0),p(x,null,z(e.items,s=>(r(),p(x,null,["link"in s?(r(),w(Se,{key:0,item:s},null,8,["item"])):k("",!0)],64))),256))]))}}),Us=$(zs,[["__scopeId","data-v-655b43d5"]]),Gs={class:"VPMenu"},Ks={key:0,class:"items"},Ws=b({__name:"VPMenu",props:{items:{}},setup(t){return(e,n)=>(r(),p("div",Gs,[e.items?(r(),p("div",Ks,[(r(!0),p(x,null,z(e.items,s=>(r(),p(x,{key:JSON.stringify(s)},["link"in s?(r(),w(Se,{key:0,item:s},null,8,["item"])):"component"in s?(r(),w(W(s.component),ee({key:1,ref_for:!0},s.props),null,16)):(r(),w(Us,{key:2,text:s.text,items:s.items},null,8,["text","items"]))],64))),128))])):k("",!0),f(e.$slots,"default",{},void 0,!0)]))}}),qs=$(Ws,[["__scopeId","data-v-ce2cf657"]]),Js=t=>(F("data-v-062a5734"),t=t(),R(),t),Ys=["aria-expanded","aria-label"],Xs={key:0,class:"text"},Qs=["innerHTML"],Zs=Js(()=>u("span",{class:"vpi-chevron-down text-icon"},null,-1)),ea={key:1,class:"vpi-more-horizontal icon"},ta={class:"menu"},na=b({__name:"VPFlyout",props:{icon:{},button:{},label:{},items:{}},setup(t){const e=N(!1),n=N();Os({el:n,onBlur:s});function s(){e.value=!1}return(o,a)=>(r(),p("div",{class:"VPFlyout",ref_key:"el",ref:n,onMouseenter:a[1]||(a[1]=l=>e.value=!0),onMouseleave:a[2]||(a[2]=l=>e.value=!1)},[u("button",{type:"button",class:"button","aria-haspopup":"true","aria-expanded":e.value,"aria-label":o.label,onClick:a[0]||(a[0]=l=>e.value=!e.value)},[o.button||o.icon?(r(),p("span",Xs,[o.icon?(r(),p("span",{key:0,class:D([o.icon,"option-icon"])},null,2)):k("",!0),o.button?(r(),p("span",{key:1,innerHTML:o.button},null,8,Qs)):k("",!0),Zs])):(r(),p("span",ea))],8,Ys),u("div",ta,[S(qs,{items:o.items},{default:v(()=>[f(o.$slots,"default",{},void 0,!0)]),_:3},8,["items"])])],544))}}),je=$(na,[["__scopeId","data-v-062a5734"]]),oa=["href","aria-label","innerHTML"],sa=b({__name:"VPSocialLink",props:{icon:{},link:{},ariaLabel:{}},setup(t){const e=t,n=I(()=>typeof e.icon=="object"?e.icon.svg:``);return(s,o)=>(r(),p("a",{class:"VPSocialLink no-icon",href:s.link,"aria-label":s.ariaLabel??(typeof s.icon=="string"?s.icon:""),target:"_blank",rel:"noopener",innerHTML:n.value},null,8,oa))}}),aa=$(sa,[["__scopeId","data-v-99aaa61b"]]),ra={class:"VPSocialLinks"},ia=b({__name:"VPSocialLinks",props:{links:{}},setup(t){return(e,n)=>(r(),p("div",ra,[(r(!0),p(x,null,z(e.links,({link:s,icon:o,ariaLabel:a})=>(r(),w(aa,{key:s,icon:o,link:s,ariaLabel:a},null,8,["icon","link","ariaLabel"]))),128))]))}}),ze=$(ia,[["__scopeId","data-v-ca9cff1c"]]),la={key:0,class:"group translations"},ca={class:"trans-title"},ua={key:1,class:"group"},da={class:"item appearance"},pa={class:"label"},fa={class:"appearance-action"},va={key:2,class:"group"},ha={class:"item social-links"},_a=b({__name:"VPNavBarExtra",setup(t){const{site:e,theme:n}=O(),{localeLinks:s,currentLang:o}=ue({correspondingLink:!0}),a=I(()=>s.value.length&&o.value.label||e.value.appearance||n.value.socialLinks);return(l,i)=>a.value?(r(),w(je,{key:0,class:"VPNavBarExtra",label:"extra navigation"},{default:v(()=>[c(s).length&&c(o).label?(r(),p("div",la,[u("p",ca,T(c(o).label),1),(r(!0),p(x,null,z(c(s),d=>(r(),w(Se,{key:d.link,item:d},null,8,["item"]))),128))])):k("",!0),c(e).appearance&&c(e).appearance!=="force-dark"&&c(e).appearance!=="force-auto"?(r(),p("div",ua,[u("div",da,[u("p",pa,T(c(n).darkModeSwitchLabel||"Appearance"),1),u("div",fa,[S(Fe)])])])):k("",!0),c(n).socialLinks?(r(),p("div",va,[u("div",ha,[S(ze,{class:"social-links-list",links:c(n).socialLinks},null,8,["links"])])])):k("",!0)]),_:1})):k("",!0)}}),ma=$(_a,[["__scopeId","data-v-cf308650"]]),ga=t=>(F("data-v-cdf5d88e"),t=t(),R(),t),ba=["aria-expanded"],ka=ga(()=>u("span",{class:"container"},[u("span",{class:"top"}),u("span",{class:"middle"}),u("span",{class:"bottom"})],-1)),ya=[ka],$a=b({__name:"VPNavBarHamburger",props:{active:{type:Boolean}},emits:["click"],setup(t){return(e,n)=>(r(),p("button",{type:"button",class:D(["VPNavBarHamburger",{active:e.active}]),"aria-label":"mobile navigation","aria-expanded":e.active,"aria-controls":"VPNavScreen",onClick:n[0]||(n[0]=s=>e.$emit("click"))},ya,10,ba))}}),Sa=$($a,[["__scopeId","data-v-cdf5d88e"]]),wa=["innerHTML"],Pa=b({__name:"VPNavBarMenuLink",props:{item:{}},setup(t){const{page:e}=O();return(n,s)=>(r(),w(q,{class:D({VPNavBarMenuLink:!0,active:c(oe)(c(e).relativePath,n.item.activeMatch||n.item.link,!!n.item.activeMatch)}),href:n.item.link,noIcon:n.item.noIcon,target:n.item.target,rel:n.item.rel,tabindex:"0"},{default:v(()=>[u("span",{innerHTML:n.item.text},null,8,wa)]),_:1},8,["class","href","noIcon","target","rel"]))}}),La=$(Pa,[["__scopeId","data-v-2a328df5"]]),Va=b({__name:"VPNavBarMenuGroup",props:{item:{}},setup(t){const e=t,{page:n}=O(),s=a=>"component"in a?!1:"link"in a?oe(n.value.relativePath,a.link,!!e.item.activeMatch):a.items.some(s),o=I(()=>s(e.item));return(a,l)=>(r(),w(je,{class:D({VPNavBarMenuGroup:!0,active:c(oe)(c(n).relativePath,a.item.activeMatch,!!a.item.activeMatch)||o.value}),button:a.item.text,items:a.item.items},null,8,["class","button","items"]))}}),Ta=t=>(F("data-v-dc270a69"),t=t(),R(),t),Ia={key:0,"aria-labelledby":"main-nav-aria-label",class:"VPNavBarMenu"},Na=Ta(()=>u("span",{id:"main-nav-aria-label",class:"visually-hidden"}," Main Navigation ",-1)),Ca=b({__name:"VPNavBarMenu",setup(t){const{theme:e}=O();return(n,s)=>c(e).nav?(r(),p("nav",Ia,[Na,(r(!0),p(x,null,z(c(e).nav,o=>(r(),p(x,{key:JSON.stringify(o)},["link"in o?(r(),w(La,{key:0,item:o},null,8,["item"])):"component"in o?(r(),w(W(o.component),ee({key:1,ref_for:!0},o.props),null,16)):(r(),w(Va,{key:2,item:o},null,8,["item"]))],64))),128))])):k("",!0)}}),Aa=$(Ca,[["__scopeId","data-v-dc270a69"]]);function Ma(t){const{localeIndex:e,theme:n}=O();function s(o){var V,M,y;const a=o.split("."),l=(V=n.value.search)==null?void 0:V.options,i=l&&typeof l=="object",d=i&&((y=(M=l.locales)==null?void 0:M[e.value])==null?void 0:y.translations)||null,h=i&&l.translations||null;let m=d,_=h,g=t;const C=a.pop();for(const j of a){let G=null;const Q=g==null?void 0:g[j];Q&&(G=g=Q);const ne=_==null?void 0:_[j];ne&&(G=_=ne);const Z=m==null?void 0:m[j];Z&&(G=m=Z),Q||(g=G),ne||(_=G),Z||(m=G)}return(m==null?void 0:m[C])??(_==null?void 0:_[C])??(g==null?void 0:g[C])??""}return s}const Ea=["aria-label"],Ba={class:"DocSearch-Button-Container"},Oa=u("span",{class:"vp-icon DocSearch-Search-Icon"},null,-1),Ha={class:"DocSearch-Button-Placeholder"},xa=u("span",{class:"DocSearch-Button-Keys"},[u("kbd",{class:"DocSearch-Button-Key"}),u("kbd",{class:"DocSearch-Button-Key"},"K")],-1),We=b({__name:"VPNavBarSearchButton",setup(t){const n=Ma({button:{buttonText:"Search",buttonAriaLabel:"Search"}});return(s,o)=>(r(),p("button",{type:"button",class:"DocSearch DocSearch-Button","aria-label":c(n)("button.buttonAriaLabel")},[u("span",Ba,[Oa,u("span",Ha,T(c(n)("button.buttonText")),1)]),xa],8,Ea))}}),Da={class:"VPNavBarSearch"},Fa={id:"local-search"},Ra={key:1,id:"docsearch"},ja=b({__name:"VPNavBarSearch",setup(t){const e=Ht(()=>xt(()=>import("./VPLocalSearchBox.BmwVYg_B.js"),__vite__mapDeps([0,1]))),n=()=>null,{theme:s}=O(),o=N(!1),a=N(!1);te(()=>{});function l(){o.value||(o.value=!0,setTimeout(i,16))}function i(){const _=new Event("keydown");_.key="k",_.metaKey=!0,window.dispatchEvent(_),setTimeout(()=>{document.querySelector(".DocSearch-Modal")||i()},16)}function d(_){const g=_.target,C=g.tagName;return g.isContentEditable||C==="INPUT"||C==="SELECT"||C==="TEXTAREA"}const h=N(!1);Te("k",_=>{(_.ctrlKey||_.metaKey)&&(_.preventDefault(),h.value=!0)}),Te("/",_=>{d(_)||(_.preventDefault(),h.value=!0)});const m="local";return(_,g)=>{var C;return r(),p("div",Da,[c(m)==="local"?(r(),p(x,{key:0},[h.value?(r(),w(c(e),{key:0,onClose:g[0]||(g[0]=V=>h.value=!1)})):k("",!0),u("div",Fa,[S(We,{onClick:g[1]||(g[1]=V=>h.value=!0)})])],64)):c(m)==="algolia"?(r(),p(x,{key:1},[o.value?(r(),w(c(n),{key:0,algolia:((C=c(s).search)==null?void 0:C.options)??c(s).algolia,onVnodeBeforeMount:g[2]||(g[2]=V=>a.value=!0)},null,8,["algolia"])):k("",!0),a.value?k("",!0):(r(),p("div",Ra,[S(We,{onClick:l})]))],64)):k("",!0)])}}}),za=b({__name:"VPNavBarSocialLinks",setup(t){const{theme:e}=O();return(n,s)=>c(e).socialLinks?(r(),w(ze,{key:0,class:"VPNavBarSocialLinks",links:c(e).socialLinks},null,8,["links"])):k("",!0)}}),Ua=$(za,[["__scopeId","data-v-489228c3"]]),Ga=["href","rel","target"],Ka={key:1},Wa={key:2},qa=b({__name:"VPNavBarTitle",setup(t){const{site:e,theme:n}=O(),{hasSidebar:s}=X(),{currentLang:o}=ue(),a=I(()=>{var d;return typeof n.value.logoLink=="string"?n.value.logoLink:(d=n.value.logoLink)==null?void 0:d.link}),l=I(()=>{var d;return typeof n.value.logoLink=="string"||(d=n.value.logoLink)==null?void 0:d.rel}),i=I(()=>{var d;return typeof n.value.logoLink=="string"||(d=n.value.logoLink)==null?void 0:d.target});return(d,h)=>(r(),p("div",{class:D(["VPNavBarTitle",{"has-sidebar":c(s)}])},[u("a",{class:"title",href:a.value??c(xe)(c(o).link),rel:l.value,target:i.value},[f(d.$slots,"nav-bar-title-before",{},void 0,!0),c(n).logo?(r(),w(he,{key:0,class:"logo",image:c(n).logo},null,8,["image"])):k("",!0),c(n).siteTitle?(r(),p("span",Ka,T(c(n).siteTitle),1)):c(n).siteTitle===void 0?(r(),p("span",Wa,T(c(e).title),1)):k("",!0),f(d.$slots,"nav-bar-title-after",{},void 0,!0)],8,Ga)],2))}}),Ja=$(qa,[["__scopeId","data-v-d1e2cfaa"]]),Ya={class:"items"},Xa={class:"title"},Qa=b({__name:"VPNavBarTranslations",setup(t){const{theme:e}=O(),{localeLinks:n,currentLang:s}=ue({correspondingLink:!0});return(o,a)=>c(n).length&&c(s).label?(r(),w(je,{key:0,class:"VPNavBarTranslations",icon:"vpi-languages",label:c(e).langMenuLabel||"Change language"},{default:v(()=>[u("div",Ya,[u("p",Xa,T(c(s).label),1),(r(!0),p(x,null,z(c(n),l=>(r(),w(Se,{key:l.link,item:l},null,8,["item"]))),128))])]),_:1},8,["label"])):k("",!0)}}),Za=$(Qa,[["__scopeId","data-v-1cf30254"]]),er=t=>(F("data-v-6db865c9"),t=t(),R(),t),tr={class:"wrapper"},nr={class:"container"},or={class:"title"},sr={class:"content"},ar={class:"content-body"},rr=er(()=>u("div",{class:"divider"},[u("div",{class:"divider-line"})],-1)),ir=b({__name:"VPNavBar",props:{isScreenOpen:{type:Boolean}},emits:["toggle-screen"],setup(t){const e=t,{y:n}=tt(),{hasSidebar:s}=X(),{frontmatter:o}=O(),a=N({});return He(()=>{a.value={"has-sidebar":s.value,home:o.value.layout==="home",top:n.value===0,"screen-open":e.isScreenOpen}}),(l,i)=>(r(),p("div",{class:D(["VPNavBar",a.value])},[u("div",tr,[u("div",nr,[u("div",or,[S(Ja,null,{"nav-bar-title-before":v(()=>[f(l.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":v(()=>[f(l.$slots,"nav-bar-title-after",{},void 0,!0)]),_:3})]),u("div",sr,[u("div",ar,[f(l.$slots,"nav-bar-content-before",{},void 0,!0),S(ja,{class:"search"}),S(Aa,{class:"menu"}),S(Za,{class:"translations"}),S(Bs,{class:"appearance"}),S(Ua,{class:"social-links"}),S(ma,{class:"extra"}),f(l.$slots,"nav-bar-content-after",{},void 0,!0),S(Sa,{class:"hamburger",active:l.isScreenOpen,onClick:i[0]||(i[0]=d=>l.$emit("toggle-screen"))},null,8,["active"])])])])]),rr],2))}}),lr=$(ir,[["__scopeId","data-v-6db865c9"]]),cr={key:0,class:"VPNavScreenAppearance"},ur={class:"text"},dr=b({__name:"VPNavScreenAppearance",setup(t){const{site:e,theme:n}=O();return(s,o)=>c(e).appearance&&c(e).appearance!=="force-dark"&&c(e).appearance!=="force-auto"?(r(),p("div",cr,[u("p",ur,T(c(n).darkModeSwitchLabel||"Appearance"),1),S(Fe)])):k("",!0)}}),pr=$(dr,[["__scopeId","data-v-d86aab40"]]),fr=b({__name:"VPNavScreenMenuLink",props:{item:{}},setup(t){const e=ce("close-screen");return(n,s)=>(r(),w(q,{class:"VPNavScreenMenuLink",href:n.item.link,target:n.item.target,rel:n.item.rel,onClick:c(e),innerHTML:n.item.text},null,8,["href","target","rel","onClick","innerHTML"]))}}),vr=$(fr,[["__scopeId","data-v-a0f676ea"]]),hr=b({__name:"VPNavScreenMenuGroupLink",props:{item:{}},setup(t){const e=ce("close-screen");return(n,s)=>(r(),w(q,{class:"VPNavScreenMenuGroupLink",href:n.item.link,target:n.item.target,rel:n.item.rel,onClick:c(e)},{default:v(()=>[J(T(n.item.text),1)]),_:1},8,["href","target","rel","onClick"]))}}),ft=$(hr,[["__scopeId","data-v-63dc5c8c"]]),_r={class:"VPNavScreenMenuGroupSection"},mr={key:0,class:"title"},gr=b({__name:"VPNavScreenMenuGroupSection",props:{text:{},items:{}},setup(t){return(e,n)=>(r(),p("div",_r,[e.text?(r(),p("p",mr,T(e.text),1)):k("",!0),(r(!0),p(x,null,z(e.items,s=>(r(),w(ft,{key:s.text,item:s},null,8,["item"]))),128))]))}}),br=$(gr,[["__scopeId","data-v-e26000b6"]]),kr=t=>(F("data-v-2d86c186"),t=t(),R(),t),yr=["aria-controls","aria-expanded"],$r=["innerHTML"],Sr=kr(()=>u("span",{class:"vpi-plus button-icon"},null,-1)),wr=["id"],Pr={key:0,class:"item"},Lr={key:1,class:"item"},Vr={key:2,class:"group"},Tr=b({__name:"VPNavScreenMenuGroup",props:{text:{},items:{}},setup(t){const e=t,n=N(!1),s=I(()=>`NavScreenGroup-${e.text.replace(" ","-").toLowerCase()}`);function o(){n.value=!n.value}return(a,l)=>(r(),p("div",{class:D(["VPNavScreenMenuGroup",{open:n.value}])},[u("button",{class:"button","aria-controls":s.value,"aria-expanded":n.value,onClick:o},[u("span",{class:"button-text",innerHTML:a.text},null,8,$r),Sr],8,yr),u("div",{id:s.value,class:"items"},[(r(!0),p(x,null,z(a.items,i=>(r(),p(x,{key:JSON.stringify(i)},["link"in i?(r(),p("div",Pr,[S(ft,{item:i},null,8,["item"])])):"component"in i?(r(),p("div",Lr,[(r(),w(W(i.component),ee({ref_for:!0},i.props,{"screen-menu":""}),null,16))])):(r(),p("div",Vr,[S(br,{text:i.text,items:i.items},null,8,["text","items"])]))],64))),128))],8,wr)],2))}}),Ir=$(Tr,[["__scopeId","data-v-2d86c186"]]),Nr={key:0,class:"VPNavScreenMenu"},Cr=b({__name:"VPNavScreenMenu",setup(t){const{theme:e}=O();return(n,s)=>c(e).nav?(r(),p("nav",Nr,[(r(!0),p(x,null,z(c(e).nav,o=>(r(),p(x,{key:JSON.stringify(o)},["link"in o?(r(),w(vr,{key:0,item:o},null,8,["item"])):"component"in o?(r(),w(W(o.component),ee({key:1,ref_for:!0},o.props,{"screen-menu":""}),null,16)):(r(),w(Ir,{key:2,text:o.text||"",items:o.items},null,8,["text","items"]))],64))),128))])):k("",!0)}}),Ar=b({__name:"VPNavScreenSocialLinks",setup(t){const{theme:e}=O();return(n,s)=>c(e).socialLinks?(r(),w(ze,{key:0,class:"VPNavScreenSocialLinks",links:c(e).socialLinks},null,8,["links"])):k("",!0)}}),vt=t=>(F("data-v-66e76a18"),t=t(),R(),t),Mr=vt(()=>u("span",{class:"vpi-languages icon lang"},null,-1)),Er=vt(()=>u("span",{class:"vpi-chevron-down icon chevron"},null,-1)),Br={class:"list"},Or=b({__name:"VPNavScreenTranslations",setup(t){const{localeLinks:e,currentLang:n}=ue({correspondingLink:!0}),s=N(!1);function o(){s.value=!s.value}return(a,l)=>c(e).length&&c(n).label?(r(),p("div",{key:0,class:D(["VPNavScreenTranslations",{open:s.value}])},[u("button",{class:"title",onClick:o},[Mr,J(" "+T(c(n).label)+" ",1),Er]),u("ul",Br,[(r(!0),p(x,null,z(c(e),i=>(r(),p("li",{key:i.link,class:"item"},[S(q,{class:"link",href:i.link},{default:v(()=>[J(T(i.text),1)]),_:2},1032,["href"])]))),128))])],2)):k("",!0)}}),Hr=$(Or,[["__scopeId","data-v-66e76a18"]]),xr={class:"container"},Dr=b({__name:"VPNavScreen",props:{open:{type:Boolean}},setup(t){const e=N(null),n=nt(ye?document.body:null);return(s,o)=>(r(),w(Be,{name:"fade",onEnter:o[0]||(o[0]=a=>n.value=!0),onAfterLeave:o[1]||(o[1]=a=>n.value=!1)},{default:v(()=>[s.open?(r(),p("div",{key:0,class:"VPNavScreen",ref_key:"screen",ref:e,id:"VPNavScreen"},[u("div",xr,[f(s.$slots,"nav-screen-content-before",{},void 0,!0),S(Cr,{class:"menu"}),S(Hr,{class:"translations"}),S(pr,{class:"appearance"}),S(Ar,{class:"social-links"}),f(s.$slots,"nav-screen-content-after",{},void 0,!0)])],512)):k("",!0)]),_:3}))}}),Fr=$(Dr,[["__scopeId","data-v-3ff2bb85"]]),Rr={key:0,class:"VPNav"},jr=b({__name:"VPNav",setup(t){const{isScreenOpen:e,closeScreen:n,toggleScreen:s}=Ss(),{frontmatter:o}=O(),a=I(()=>o.value.navbar!==!1);return ot("close-screen",n),me(()=>{ye&&document.documentElement.classList.toggle("hide-nav",!a.value)}),(l,i)=>a.value?(r(),p("header",Rr,[S(lr,{"is-screen-open":c(e),onToggleScreen:c(s)},{"nav-bar-title-before":v(()=>[f(l.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":v(()=>[f(l.$slots,"nav-bar-title-after",{},void 0,!0)]),"nav-bar-content-before":v(()=>[f(l.$slots,"nav-bar-content-before",{},void 0,!0)]),"nav-bar-content-after":v(()=>[f(l.$slots,"nav-bar-content-after",{},void 0,!0)]),_:3},8,["is-screen-open","onToggleScreen"]),S(Fr,{open:c(e)},{"nav-screen-content-before":v(()=>[f(l.$slots,"nav-screen-content-before",{},void 0,!0)]),"nav-screen-content-after":v(()=>[f(l.$slots,"nav-screen-content-after",{},void 0,!0)]),_:3},8,["open"])])):k("",!0)}}),zr=$(jr,[["__scopeId","data-v-3aff48bd"]]),ht=t=>(F("data-v-fe6d72fb"),t=t(),R(),t),Ur=["role","tabindex"],Gr=ht(()=>u("div",{class:"indicator"},null,-1)),Kr=ht(()=>u("span",{class:"vpi-chevron-right caret-icon"},null,-1)),Wr=[Kr],qr={key:1,class:"items"},Jr=b({__name:"VPSidebarItem",props:{item:{},depth:{}},setup(t){const e=t,{collapsed:n,collapsible:s,isLink:o,isActiveLink:a,hasActiveLink:l,hasChildren:i,toggle:d}=fn(I(()=>e.item)),h=I(()=>i.value?"section":"div"),m=I(()=>o.value?"a":"div"),_=I(()=>i.value?e.depth+2===7?"p":`h${e.depth+2}`:"p"),g=I(()=>o.value?void 0:"button"),C=I(()=>[[`level-${e.depth}`],{collapsible:s.value},{collapsed:n.value},{"is-link":o.value},{"is-active":a.value},{"has-active":l.value}]);function V(y){"key"in y&&y.key!=="Enter"||!e.item.link&&d()}function M(){e.item.link&&d()}return(y,j)=>{const G=se("VPSidebarItem",!0);return r(),w(W(h.value),{class:D(["VPSidebarItem",C.value])},{default:v(()=>[y.item.text?(r(),p("div",ee({key:0,class:"item",role:g.value},Dt(y.item.items?{click:V,keydown:V}:{},!0),{tabindex:y.item.items&&0}),[Gr,y.item.link?(r(),w(q,{key:0,tag:m.value,class:"link",href:y.item.link,rel:y.item.rel,target:y.item.target},{default:v(()=>[(r(),w(W(_.value),{class:"text",innerHTML:y.item.text},null,8,["innerHTML"]))]),_:1},8,["tag","href","rel","target"])):(r(),w(W(_.value),{key:1,class:"text",innerHTML:y.item.text},null,8,["innerHTML"])),y.item.collapsed!=null&&y.item.items&&y.item.items.length?(r(),p("div",{key:2,class:"caret",role:"button","aria-label":"toggle section",onClick:M,onKeydown:Ft(M,["enter"]),tabindex:"0"},Wr,32)):k("",!0)],16,Ur)):k("",!0),y.item.items&&y.item.items.length?(r(),p("div",qr,[y.depth<5?(r(!0),p(x,{key:0},z(y.item.items,Q=>(r(),w(G,{key:Q.text,item:Q,depth:y.depth+1},null,8,["item","depth"]))),128)):k("",!0)])):k("",!0)]),_:1},8,["class"])}}}),Yr=$(Jr,[["__scopeId","data-v-fe6d72fb"]]),Xr=b({__name:"VPSidebarGroup",props:{items:{}},setup(t){const e=N(!0);let n=null;return te(()=>{n=setTimeout(()=>{n=null,e.value=!1},300)}),Rt(()=>{n!=null&&(clearTimeout(n),n=null)}),(s,o)=>(r(!0),p(x,null,z(s.items,a=>(r(),p("div",{key:a.text,class:D(["group",{"no-transition":e.value}])},[S(Yr,{item:a,depth:0},null,8,["item"])],2))),128))}}),Qr=$(Xr,[["__scopeId","data-v-1e9a5d2e"]]),_t=t=>(F("data-v-bc2dce68"),t=t(),R(),t),Zr=_t(()=>u("div",{class:"curtain"},null,-1)),ei={class:"nav",id:"VPSidebarNav","aria-labelledby":"sidebar-aria-label",tabindex:"-1"},ti=_t(()=>u("span",{class:"visually-hidden",id:"sidebar-aria-label"}," Sidebar Navigation ",-1)),ni=b({__name:"VPSidebar",props:{open:{type:Boolean}},setup(t){const{sidebarGroups:e,hasSidebar:n}=X(),s=t,o=N(null),a=nt(ye?document.body:null);Y([s,o],()=>{var i;s.open?(a.value=!0,(i=o.value)==null||i.focus()):a.value=!1},{immediate:!0,flush:"post"});const l=N(0);return Y(e,()=>{l.value+=1},{deep:!0}),(i,d)=>c(n)?(r(),p("aside",{key:0,class:D(["VPSidebar",{open:i.open}]),ref_key:"navEl",ref:o,onClick:d[0]||(d[0]=st(()=>{},["stop"]))},[Zr,u("nav",ei,[ti,f(i.$slots,"sidebar-nav-before",{},void 0,!0),(r(),w(Qr,{items:c(e),key:l.value},null,8,["items"])),f(i.$slots,"sidebar-nav-after",{},void 0,!0)])],2)):k("",!0)}}),oi=$(ni,[["__scopeId","data-v-bc2dce68"]]),si=b({__name:"VPSkipLink",setup(t){const e=be(),n=N();Y(()=>e.path,()=>n.value.focus());function s({target:o}){const a=document.getElementById(decodeURIComponent(o.hash).slice(1));if(a){const l=()=>{a.removeAttribute("tabindex"),a.removeEventListener("blur",l)};a.setAttribute("tabindex","-1"),a.addEventListener("blur",l),a.focus(),window.scrollTo(0,0)}}return(o,a)=>(r(),p(x,null,[u("span",{ref_key:"backToTop",ref:n,tabindex:"-1"},null,512),u("a",{href:"#VPContent",class:"VPSkipLink visually-hidden",onClick:s}," Skip to content ")],64))}}),ai=$(si,[["__scopeId","data-v-5ffb6bc3"]]),ri=b({__name:"Layout",setup(t){const{isOpen:e,open:n,close:s}=X(),o=be();Y(()=>o.path,s),pn(e,s);const{frontmatter:a}=O(),l=jt(),i=I(()=>!!l["home-hero-image"]);return ot("hero-image-slot-exists",i),(d,h)=>{const m=se("Content");return c(a).layout!==!1?(r(),p("div",{key:0,class:D(["Layout",c(a).pageClass])},[f(d.$slots,"layout-top",{},void 0,!0),S(ai),S(Yt,{class:"backdrop",show:c(e),onClick:c(s)},null,8,["show","onClick"]),S(zr,null,{"nav-bar-title-before":v(()=>[f(d.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":v(()=>[f(d.$slots,"nav-bar-title-after",{},void 0,!0)]),"nav-bar-content-before":v(()=>[f(d.$slots,"nav-bar-content-before",{},void 0,!0)]),"nav-bar-content-after":v(()=>[f(d.$slots,"nav-bar-content-after",{},void 0,!0)]),"nav-screen-content-before":v(()=>[f(d.$slots,"nav-screen-content-before",{},void 0,!0)]),"nav-screen-content-after":v(()=>[f(d.$slots,"nav-screen-content-after",{},void 0,!0)]),_:3}),S($s,{open:c(e),onOpenMenu:c(n)},null,8,["open","onOpenMenu"]),S(oi,{open:c(e)},{"sidebar-nav-before":v(()=>[f(d.$slots,"sidebar-nav-before",{},void 0,!0)]),"sidebar-nav-after":v(()=>[f(d.$slots,"sidebar-nav-after",{},void 0,!0)]),_:3},8,["open"]),S(ns,null,{"page-top":v(()=>[f(d.$slots,"page-top",{},void 0,!0)]),"page-bottom":v(()=>[f(d.$slots,"page-bottom",{},void 0,!0)]),"not-found":v(()=>[f(d.$slots,"not-found",{},void 0,!0)]),"home-hero-before":v(()=>[f(d.$slots,"home-hero-before",{},void 0,!0)]),"home-hero-info-before":v(()=>[f(d.$slots,"home-hero-info-before",{},void 0,!0)]),"home-hero-info":v(()=>[f(d.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-info-after":v(()=>[f(d.$slots,"home-hero-info-after",{},void 0,!0)]),"home-hero-actions-after":v(()=>[f(d.$slots,"home-hero-actions-after",{},void 0,!0)]),"home-hero-image":v(()=>[f(d.$slots,"home-hero-image",{},void 0,!0)]),"home-hero-after":v(()=>[f(d.$slots,"home-hero-after",{},void 0,!0)]),"home-features-before":v(()=>[f(d.$slots,"home-features-before",{},void 0,!0)]),"home-features-after":v(()=>[f(d.$slots,"home-features-after",{},void 0,!0)]),"doc-footer-before":v(()=>[f(d.$slots,"doc-footer-before",{},void 0,!0)]),"doc-before":v(()=>[f(d.$slots,"doc-before",{},void 0,!0)]),"doc-after":v(()=>[f(d.$slots,"doc-after",{},void 0,!0)]),"doc-top":v(()=>[f(d.$slots,"doc-top",{},void 0,!0)]),"doc-bottom":v(()=>[f(d.$slots,"doc-bottom",{},void 0,!0)]),"aside-top":v(()=>[f(d.$slots,"aside-top",{},void 0,!0)]),"aside-bottom":v(()=>[f(d.$slots,"aside-bottom",{},void 0,!0)]),"aside-outline-before":v(()=>[f(d.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":v(()=>[f(d.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":v(()=>[f(d.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":v(()=>[f(d.$slots,"aside-ads-after",{},void 0,!0)]),_:3}),S(is),f(d.$slots,"layout-bottom",{},void 0,!0)],2)):(r(),w(m,{key:1}))}}}),ii=$(ri,[["__scopeId","data-v-5047c77d"]]),mt={Layout:ii,enhanceApp:({app:t})=>{t.component("Badge",Wt)}},Ue="LiteyukiStudio",Ge="LiteyukiBot",li="https://api.github.com",ci="https://git.liteyuki.icu/api/v1",ui="https://api.liteyuki.icu/online",di="https://api.liteyuki.icu/count",pi="https://api.liteyuki.icu/visit",fi="https://api.liteyuki.icu/visit_count",re=`https://github.com/${Ue}/${Ge}`,qe="https://starmap.liteyuki.icu";async function vi(){try{const t=`${ci}/repos/${Ue}/${Ge}`;console.log(t);const n=await(await fetch(t)).json();return{stars:n.stars_count,forks:n.forks_count,watchers:n.watchers_count,issues:0,prs:0,size:n.size}}catch{return{stars:-1,forks:-1,watchers:-1,issues:-1,prs:-1,size:-1}}}async function hi(){try{const e=await(await fetch(`${li}/repos/${Ue}/${Ge}`)).json();return{stars:e.stargazers_count,forks:e.forks_count,watchers:e.watchers_count,issues:e.open_issues_count,prs:e.open_issues_count,size:e.size}}catch{return{stars:-1,forks:-1,watchers:-1,issues:-1,prs:-1,size:-1}}}async function _i(){const t=await hi(),e=await vi();return{stars:t.stars+e.stars,forks:t.forks+e.forks,watchers:t.watchers+e.watchers,issues:t.issues+e.issues,prs:t.prs+e.prs,size:t.size+e.size}}const ae={getTotal:async()=>{try{return(await(await fetch(di)).json()).register}catch{return-1}},getOnline:async()=>{try{return(await(await fetch(ui)).json()).online}catch{return-1}},getGithubStats:_i,getPluginNum:async()=>{try{return(await(await fetch("/plugins.json")).json()).length}catch{return-1}},getResourceNum:async()=>{try{return(await(await fetch("/resources.json")).json()).length}catch{return-1}},getVisitCount:async()=>{try{return(await(await fetch(fi)).json()).count}catch{return-1}}};function mi(){const t="deviceId";let e=localStorage.getItem(t);return e||(e=bi(),localStorage.setItem(t,e)),e}async function gi(){const t=mi();try{await fetch(pi,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({device_id:t}).toString()})}catch(e){console.error("Failed to upload visit record:",e)}}function bi(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=Math.random()*16|0,n=t==="x"?e:e&3|8;return n.toString(16)})}/*! - * vue-router v4.4.3 - * (c) 2024 Eduardo San Martin Morote - * @license MIT - */var Je;(function(t){t.pop="pop",t.push="push"})(Je||(Je={}));var Ye;(function(t){t.back="back",t.forward="forward",t.unknown=""})(Ye||(Ye={}));var Xe;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(Xe||(Xe={}));const ki=Symbol("");function yi(t,e,n){const s=()=>{t[e].delete(n)};le(s),zt(s),Ut(()=>{t[e].add(n)}),t[e].add(n)}function $i(t){const e=ce(ki,{}).value;e&&yi(e,"updateGuards",t)}const Si=t=>(F("data-v-2391887b"),t=t(),R(),t),wi={class:"stats-bar-content"},Pi={class:"stats-bar"},Li={class:"stats-info"},Vi={class:"stats-title"},Ti={class:"sections"},Ii=["href"],Ni={class:"section-tab"},Ci={class:"text"},Ai={class:"number"},Mi=Si(()=>u("div",{class:"starmap"},[u("iframe",{src:"https://starmap.liteyuki.icu/",width:"100%",height:"300px",class:"gamma"})],-1)),Ei=b({__name:"StatsBar",setup(t){const{Layout:e}=mt;let n=null;const s={total:{name:"total",color:"#00a6ff",value:N(-1),link:qe},online:{name:"online",color:"#7eff7e",value:N(-1),link:qe},stars:{name:"stars",color:"#ffcc00",value:N(-1),link:`${re}/stargazers`},forks:{name:"forks",color:"#ff6600",value:N(-1),link:`${re}/forks`},issues:{name:"issues",color:"#ff0000",value:N(-1),link:`${re}/issues`},prs:{name:"prs",color:"#f15df1",value:N(-1),link:`${re}/pulls`},plugins:{name:"plugins",color:"#a766ff",value:N(-1),link:"./store/plugin"},resources:{name:"resources",color:"#5a54fa",value:N(-1),link:"./store/resource"},visitors:{name:"visitors",color:"#00a6ff",value:N(-1),link:re}};async function o(){[s.online.value.value,s.total.value.value,s.plugins.value.value,s.resources.value.value,s.visitors.value.value,n]=await Promise.all([ae.getOnline(),ae.getTotal(),ae.getPluginNum(),ae.getResourceNum(),ae.getVisitCount(),ae.getGithubStats()]),s.stars.value.value=(n==null?void 0:n.stars)||0,s.forks.value.value=(n==null?void 0:n.forks)||0,s.issues.value.value=(n==null?void 0:n.issues)||0,s.prs.value.value=(n==null?void 0:n.prs)||0}function a(l){return l.value.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}return te(()=>{const l=setInterval(o,1e4);o(),gi(),le(()=>{clearInterval(l)})}),$i(()=>{Kt()}),console.log(` _ _ _ _ _ ____ _ - | | (_) | | | (_) _ \\ | | - | | _| |_ ___ _ _ _ _| | ___| |_) | ___ | |_ - | | | | __/ _ \\ | | | | | | |/ / | _ < / _ \\| __| - | |____| | || __/ |_| | |_| | <| | |_) | (_) | |_ - |______|_|\\__\\___|\\__, |\\__,_|_|\\_\\_|____/ \\___/ \\__| - __/ | - |___/ `),console.log(U("easterEgg")),(l,i)=>(r(),w(c(e),null,{"home-features-before":v(()=>[u("div",wi,[u("div",Pi,[u("div",Li,[u("div",Vi,T(c(U)("stats")),1),u("div",Ti,[(r(!0),p(x,null,z(Object.values(s),d=>(r(),p("div",{key:d.name,class:"section"},[u("a",{href:d.link,target:"_blank"},[u("div",Ni,[u("span",{class:"dot",style:ke({backgroundColor:d.color})},null,4),u("span",Ci,T(c(U)(d.name)),1)]),u("div",Ai,T(a(d.value)),1)],8,Ii)]))),128))])]),Mi])])]),_:1}))}}),Qe=$(Ei,[["__scopeId","data-v-2391887b"]]);var Bi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Oi(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var gt={exports:{}};/*! - * clipboard.js v2.0.11 - * https://clipboardjs.com/ - * - * Licensed MIT © Zeno Rocha - */(function(t,e){(function(s,o){t.exports=o()})(Bi,function(){return function(){var n={686:function(a,l,i){i.d(l,{default:function(){return It}});var d=i(279),h=i.n(d),m=i(370),_=i.n(m),g=i(817),C=i.n(g);function V(B){try{return document.execCommand(B)}catch{return!1}}var M=function(L){var P=C()(L);return V("cut"),P},y=M;function j(B){var L=document.documentElement.getAttribute("dir")==="rtl",P=document.createElement("textarea");P.style.fontSize="12pt",P.style.border="0",P.style.padding="0",P.style.margin="0",P.style.position="absolute",P.style[L?"right":"left"]="-9999px";var A=window.pageYOffset||document.documentElement.scrollTop;return P.style.top="".concat(A,"px"),P.setAttribute("readonly",""),P.value=B,P}var G=function(L,P){var A=j(L);P.container.appendChild(A);var E=C()(A);return V("copy"),A.remove(),E},Q=function(L){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},A="";return typeof L=="string"?A=G(L,P):L instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(L==null?void 0:L.type)?A=G(L.value,P):(A=C()(L),V("copy")),A},ne=Q;function Z(B){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Z=function(P){return typeof P}:Z=function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P},Z(B)}var bt=function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},P=L.action,A=P===void 0?"copy":P,E=L.container,H=L.target,K=L.text;if(A!=="copy"&&A!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(H!==void 0)if(H&&Z(H)==="object"&&H.nodeType===1){if(A==="copy"&&H.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(A==="cut"&&(H.hasAttribute("readonly")||H.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(K)return ne(K,{container:E});if(H)return A==="cut"?y(H):ne(H,{container:E})},kt=bt;function ie(B){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ie=function(P){return typeof P}:ie=function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P},ie(B)}function yt(B,L){if(!(B instanceof L))throw new TypeError("Cannot call a class as a function")}function Ke(B,L){for(var P=0;P"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function de(B){return de=Object.setPrototypeOf?Object.getPrototypeOf:function(P){return P.__proto__||Object.getPrototypeOf(P)},de(B)}function Pe(B,L){var P="data-clipboard-".concat(B);if(L.hasAttribute(P))return L.getAttribute(P)}var Tt=function(B){St(P,B);var L=wt(P);function P(A,E){var H;return yt(this,P),H=L.call(this),H.resolveOptions(E),H.listenClick(A),H}return $t(P,[{key:"resolveOptions",value:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof E.action=="function"?E.action:this.defaultAction,this.target=typeof E.target=="function"?E.target:this.defaultTarget,this.text=typeof E.text=="function"?E.text:this.defaultText,this.container=ie(E.container)==="object"?E.container:document.body}},{key:"listenClick",value:function(E){var H=this;this.listener=_()(E,"click",function(K){return H.onClick(K)})}},{key:"onClick",value:function(E){var H=E.delegateTarget||E.currentTarget,K=this.action(H)||"copy",pe=kt({action:K,container:this.container,target:this.target(H),text:this.text(H)});this.emit(pe?"success":"error",{action:K,text:pe,trigger:H,clearSelection:function(){H&&H.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(E){return Pe("action",E)}},{key:"defaultTarget",value:function(E){var H=Pe("target",E);if(H)return document.querySelector(H)}},{key:"defaultText",value:function(E){return Pe("text",E)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(E){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return ne(E,H)}},{key:"cut",value:function(E){return y(E)}},{key:"isSupported",value:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],H=typeof E=="string"?[E]:E,K=!!document.queryCommandSupported;return H.forEach(function(pe){K=K&&!!document.queryCommandSupported(pe)}),K}}]),P}(h()),It=Tt},828:function(a){var l=9;if(typeof Element<"u"&&!Element.prototype.matches){var i=Element.prototype;i.matches=i.matchesSelector||i.mozMatchesSelector||i.msMatchesSelector||i.oMatchesSelector||i.webkitMatchesSelector}function d(h,m){for(;h&&h.nodeType!==l;){if(typeof h.matches=="function"&&h.matches(m))return h;h=h.parentNode}}a.exports=d},438:function(a,l,i){var d=i(828);function h(g,C,V,M,y){var j=_.apply(this,arguments);return g.addEventListener(V,j,y),{destroy:function(){g.removeEventListener(V,j,y)}}}function m(g,C,V,M,y){return typeof g.addEventListener=="function"?h.apply(null,arguments):typeof V=="function"?h.bind(null,document).apply(null,arguments):(typeof g=="string"&&(g=document.querySelectorAll(g)),Array.prototype.map.call(g,function(j){return h(j,C,V,M,y)}))}function _(g,C,V,M){return function(y){y.delegateTarget=d(y.target,C),y.delegateTarget&&M.call(g,y)}}a.exports=m},879:function(a,l){l.node=function(i){return i!==void 0&&i instanceof HTMLElement&&i.nodeType===1},l.nodeList=function(i){var d=Object.prototype.toString.call(i);return i!==void 0&&(d==="[object NodeList]"||d==="[object HTMLCollection]")&&"length"in i&&(i.length===0||l.node(i[0]))},l.string=function(i){return typeof i=="string"||i instanceof String},l.fn=function(i){var d=Object.prototype.toString.call(i);return d==="[object Function]"}},370:function(a,l,i){var d=i(879),h=i(438);function m(V,M,y){if(!V&&!M&&!y)throw new Error("Missing required arguments");if(!d.string(M))throw new TypeError("Second argument must be a String");if(!d.fn(y))throw new TypeError("Third argument must be a Function");if(d.node(V))return _(V,M,y);if(d.nodeList(V))return g(V,M,y);if(d.string(V))return C(V,M,y);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function _(V,M,y){return V.addEventListener(M,y),{destroy:function(){V.removeEventListener(M,y)}}}function g(V,M,y){return Array.prototype.forEach.call(V,function(j){j.addEventListener(M,y)}),{destroy:function(){Array.prototype.forEach.call(V,function(j){j.removeEventListener(M,y)})}}}function C(V,M,y){return h(document.body,V,M,y)}a.exports=m},817:function(a){function l(i){var d;if(i.nodeName==="SELECT")i.focus(),d=i.value;else if(i.nodeName==="INPUT"||i.nodeName==="TEXTAREA"){var h=i.hasAttribute("readonly");h||i.setAttribute("readonly",""),i.select(),i.setSelectionRange(0,i.value.length),h||i.removeAttribute("readonly"),d=i.value}else{i.hasAttribute("contenteditable")&&i.focus();var m=window.getSelection(),_=document.createRange();_.selectNodeContents(i),m.removeAllRanges(),m.addRange(_),d=m.toString()}return d}a.exports=l},279:function(a){function l(){}l.prototype={on:function(i,d,h){var m=this.e||(this.e={});return(m[i]||(m[i]=[])).push({fn:d,ctx:h}),this},once:function(i,d,h){var m=this;function _(){m.off(i,_),d.apply(h,arguments)}return _._=d,this.on(i,_,h)},emit:function(i){var d=[].slice.call(arguments,1),h=((this.e||(this.e={}))[i]||[]).slice(),m=0,_=h.length;for(m;m<_;m++)h[m].fn.apply(h[m].ctx,d);return this},off:function(i,d){var h=this.e||(this.e={}),m=h[i],_=[];if(m&&d)for(var g=0,C=m.length;g(F("data-v-a8e3f329"),t=t(),R(),t),Fi={class:"item-card"},Ri={class:"item-name"},ji={class:"item-description"},zi={class:"tags"},Ui={class:"item-bar"},Gi=["href"],Ki=Di(()=>u("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 16 16"},[u("path",{fill:"currentColor",d:"m7.775 3.275l1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0a.751.751 0 0 1 .018-1.042a.751.751 0 0 1 1.042-.018a1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018a.751.751 0 0 1-.018-1.042m-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018a.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0a.751.751 0 0 1-.018 1.042a.751.751 0 0 1-1.042.018a1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83"})],-1)),Wi=[Ki],qi={class:"btn"},Ji=["href"],Yi=["src"],Xi={class:"author-name"},Qi=b({__name:"PluginItemCard",props:{item:Object},setup(t){const e=t,n=()=>{const o=new xi(".copy-btn",{text:()=>`npm install ${e.item.module_name}`});o.on("success",()=>{}),o.on("error",()=>{})},s=o=>{const a=o.replace(/^#/,""),[l,i,d]=a.match(/.{2}/g).map(m=>parseInt(m,16)),h=(l*299+i*587+d*114)/1e3;return{backgroundColor:o,color:h>128?"#000":"#fff"}};return(o,a)=>(r(),p("div",Fi,[u("div",Ri,T(e.item.name),1),u("div",ji,T(e.item.desc),1),u("div",zi,[(r(!0),p(x,null,z(e.item.tags,l=>(r(),p("span",{class:"tag",key:l,style:ke(s(l.color))},T(l.label),5))),128))]),u("div",Ui,[u("a",{href:e.item.homepage,class:"btn",target:"_blank"},Wi,8,Gi),u("button",{class:"btn copy-btn",onClick:n},"复制安装命令"),u("div",qi,[u("a",{class:"author-info",href:`https://github.com/${e.item.author}`},[u("img",{class:"icon avatar",src:`https://github.com/${e.item.author}.png?size=80`,alt:""},null,8,Yi),u("div",Xi,T(e.item.author),1)],8,Ji)])])]))}}),Zi=$(Qi,[["__scopeId","data-v-a8e3f329"]]),el=t=>(F("data-v-b3db11d1"),t=t(),R(),t),tl={class:"switch"},nl=["checked"],ol=el(()=>u("span",{class:"slider round"},null,-1)),sl=b({__name:"ToggleSwitch",props:{modelValue:Boolean},emits:["update:modelValue"],setup(t,{emit:e}){const n=e,s=o=>{n("update:modelValue",o)};return(o,a)=>(r(),p("label",tl,[u("input",{type:"checkbox",checked:t.modelValue,onChange:a[0]||(a[0]=l=>s(l.target.checked))},null,40,nl),ol]))}}),al=$(sl,[["__scopeId","data-v-b3db11d1"]]),rl=[{module_name:"liteyukibot-plugin-nonebot",project_link:"liteyukibot-plugin-nonebot",name:"NoneBot插件",desc:"在轻雪中使用NoneBot,内置轻雪--NoneBot会话控制器插件,为NoneBot开发者提供了更多便捷功能(已内置)",author:"snowykami",homepage:"https://github.com/LiteyukiStudio/liteyukibot-plugin-nonebot",tags:[{label:"app",color:"#aeeaa8"}],is_official:!0,type:"application",valid:!0,version:"rolling"},{module_name:"liteyukibot-plugin-antidislink",project_link:"liteyukibot-plugin-antidislink",name:"防断联插件",desc:"防止你的群友断联化",author:"snowykami",homepage:"https://github.com/snowykami/liteyukibot-plugin-antidislink",tags:[{label:"app",color:"#aeeaa8"},{label:"dislink",color:"#d0e9ff"}],is_official:!0,type:"application",valid:!0,version:"rolling"},{module_name:"liteyukibot-plugin-lagrange",project_link:"liteyukibot-plugin-lagrange",name:"LagrangePlugin",desc:"在轻雪中使用lagrange-python!",author:"snowykami",homepage:"https://github.com/snowykami/liteyukibot-plugin-lagrange",tags:[{label:"app",color:"#aeeaa8"},{label:"lagrange",color:"#ff89f7"}],is_official:!0,type:"application",valid:!0,version:"rolling"},{module_name:"liteyukibot-plugin-htmlrender",project_link:"liteyukibot-plugin-htmlrender",name:"htmlrender",desc:"使用系统中的浏览器对网页进行渲染,便于其他插件使用",author:"EillesWan",homepage:"https://github.com/LiteyukiStudio/liteyukibot-plugin-htmlrender",tags:[{label:"ch",color:"#4285f4"},{label:"ro",color:"#db4437"},{label:"mi",color:"#f4b400"},{label:"um",color:"#0f9d58"}],is_official:!0,type:"application",valid:!0,version:"rolling"}],il={class:"market"},ll={class:"search-box-div"},cl=["placeholder"],ul={class:"items"},dl=b({__name:"PluginStore",setup(t){let e=N(!1),n=I(()=>{let a=s.value;return o.value&&(a=a.filter(l=>l.name.toLowerCase().includes(o.value.toLowerCase())||l.desc.toLowerCase().includes(o.value.toLowerCase())||l.author.toLowerCase().includes(o.value.toLowerCase())||l.module_name.toLowerCase().includes(o.value.toLowerCase()))),e.value&&(a=a.filter(l=>l.is_liteyuki_plugin)),a}),s=N([]),o=N("");return s.value=rl,s.value.forEach(a=>{a.is_liteyuki_plugin=!0}),fetch("https://registry.nonebot.dev/plugins.json").then(a=>a.json()).then(a=>{a.forEach(l=>{l.is_official=!1}),s.value=s.value.concat(a)}),(a,l)=>(r(),p("div",il,[u("h1",null,T(c(U)("pluginStore")),1),u("p",null,T(c(U)("pluginStoreDesc")),1),u("div",ll,[Ie(u("input",{class:"item-search-box",type:"text","onUpdate:modelValue":l[0]||(l[0]=i=>Ce(o)?o.value=i:o=i),placeholder:c(U)("search")},null,8,cl),[[Ne,c(o)]]),S(al,{modelValue:c(e),"onUpdate:modelValue":l[1]||(l[1]=i=>Ce(e)?e.value=i:e=i)},null,8,["modelValue"]),J(" "+T(c(U)("liteyukiOnly")),1)]),u("div",ul,[(r(!0),p(x,null,z(c(n),i=>(r(),w(Zi,{key:i.id,item:i},null,8,["item"]))),128))])]))}}),pl=$(dl,[["__scopeId","data-v-671446c8"]]),fl=t=>(F("data-v-22cbd1fa"),t=t(),R(),t),vl={class:"item-card"},hl={class:"item-name"},_l={class:"item-description"},ml={class:"item-bar"},gl=["href"],bl=fl(()=>u("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 16 16"},[u("path",{fill:"currentColor",d:"m7.775 3.275l1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0a.751.751 0 0 1 .018-1.042a.751.751 0 0 1 1.042-.018a1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018a.751.751 0 0 1-.018-1.042m-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018a.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0a.751.751 0 0 1-.018 1.042a.751.751 0 0 1-1.042.018a1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83"})],-1)),kl=[bl],yl=["href"],$l=["src"],Sl={class:"author-name"},wl=b({__name:"ResItemCard",props:{item:Object},setup(t){const e=t;return(n,s)=>(r(),p("div",vl,[u("div",hl,T(e.item.name),1),u("div",_l,T(e.item.description),1),u("div",ml,[u("a",{href:e.item.link,class:"",target:"_blank"},kl,8,gl),u("div",null,[u("a",{class:"author-info",href:`https://github.com/${e.item.author}`},[u("img",{class:"icon avatar",src:`https://github.com/${e.item.author}.png?size=80`,alt:""},null,8,$l),u("div",Sl,T(e.item.author),1)],8,yl)])])]))}}),Pl=$(wl,[["__scopeId","data-v-22cbd1fa"]]),Ll={key:0,class:"floating-window"},Vl={class:"window-content"},Tl=b({__name:"ResPubWindow",props:{isVisible:Boolean},setup(t){return(e,n)=>t.isVisible?(r(),p("div",Ll,[u("div",Vl,[f(e.$slots,"default",{},void 0,!0)])])):k("",!0)}}),Il=$(Tl,[["__scopeId","data-v-8b5829b6"]]),Nl=[{name:"KawaiiStatus",author:"SnowyKami",description:"可爱的状态卡片,仿照koishi的制作",link:"https://cdn.liteyuki.icu/static/lrp/KawaiiStatus.zip"},{name:"MiSans字体包",author:"SnowyKami",description:"小米官方字体MiSans",link:"https://cdn.liteyuki.icu/static/lrp/MiSansFonts.zip"},{name:"MapleMono字体包",author:"SnowyKami",description:"适用于字母的字体包",link:"https://cdn.liteyuki.icu/static/lrp/MapleMonoFonts.zip"},{name:"野兽先辈主题HomoTheme",author:"SnowyKami",description:"野兽先辈主题包,114514!",link:"https://cdn.liteyuki.icu/static/lrp/HomoTheme.zip"},{name:"自定义设备信息",author:"SnowyKami",description:"自定义服务端的设备信息,自行修改使用",link:"https://cdn.liteyuki.icu/static/lrp/custom-device.zip"},{name:"轻雪傲娇系词库",author:"SnowyKami",description:"使用https://github.com/Kyomotoi/AnimeThesaurus的词库",link:"https://cdn.liteyuki.icu/static/lrp/liteyuki_words_aojiao.zip"},{name:"轻雪可爱系词库",author:"SnowyKami",description:"使用https://github.com/Kyomotoi/AnimeThesaurus的词库",link:"https://cdn.liteyuki.icu/static/lrp/liteyuki_words_kawaii.zip"},{name:"轻雪Kakyo语言包",author:"Nanaloveyuki",description:"Liteyuki Bot的语言包,用于提供多种语言的翻译。",link:"https://github.com/Nanaloveyuki/liteyuki-langpack/releases/download/KakyoVer/Kakyo-pack.zip"},{name:"更多背景模板包",author:"snowykami",description:"自定义各种卡片的背景",link:"https://cdn.liteyuki.icu/static/lrp/morebg.zip"},{name:"测试资源包",desc:"test",link:"https://cdn.liteyuki.icu/static/lrp/liteyuki_words_aojiao.zip",homepage:"",author:"snowykami"},{name:"轻雪Kakyo语言包 稳定版",description:"Liteyuki Bot的语言包,用于提供多种语言的翻译。",link:"https://cdn.liteyuki.icu/static/lrp/kakyo.zip",homepage:"https://github.com/Nanaloveyuki/liteyuki-langpack",author:"Nanaloveyuki"},{name:"测试资源包2",description:"test",link:"https://cdn.liteyuki.icu/static/lrp/liteyuki_words_aojiao.zip",homepage:"",author:"snowykami"}],Cl={class:"market"},Al={class:"search-box-div"},Ml=["placeholder"],El={class:"store-tabs",style:{display:"flex"}},Bl={class:"items"},Ol={for:"name"},Hl=["placeholder"],xl={class:"pub-options",style:{display:"flex","justify-content":"center"}},Dl=b({__name:"ResStore",setup(t){let e=I(()=>s.value?n.value.filter(m=>m.name.toLowerCase().includes(s.value.toLowerCase())||m.description.toLowerCase().includes(s.value.toLowerCase())||m.author.toLowerCase().includes(s.value.toLowerCase())).reverse():n.value.reverse()),n=N([]),s=N("");n.value=Nl;const o=N(!1);let a=N({name:""});function l(){o.value=!0}function i(){o.value=!1}let d="";$e(_e().site.value.lang)==="zh"?d="zh":d="en";function h(){const m=encodeURI(`Resource: ${a.value.name}`),_=`${re}/issues/new?assignees=&labels=Resource&template=resource_publish_${d}.yml&title=${m}`;console.log(_),window.open(_,"_blank")}return(m,_)=>(r(),p("div",Cl,[u("h1",null,T(c(U)("resourceStore")),1),u("div",Al,[Ie(u("input",{class:"item-search-box",type:"text",placeholder:c(U)("search"),"onUpdate:modelValue":_[0]||(_[0]=g=>Ce(s)?s.value=g:s=g)},null,8,Ml),[[Ne,c(s)]])]),u("div",El,[u("button",{class:"store-button publish-button",onClick:l},T(c(U)("publishRes")),1)]),u("div",Bl,[(r(!0),p(x,null,z(c(e),g=>(r(),w(Pl,{key:g.id,item:g},null,8,["item"]))),128))]),S(Il,{class:"pub-window","is-visible":o.value},{default:v(()=>[u("h2",null,T(c(U)("publishRes")),1),u("form",{onSubmit:st(h,["prevent"])},[u("label",Ol,T(c(U)("resName")),1),Ie(u("input",{type:"text",id:"name","onUpdate:modelValue":_[1]||(_[1]=g=>c(a).name=g),placeholder:c(U)("resNameText")},null,8,Hl),[[Ne,c(a).name]]),u("div",xl,[u("button",{class:"pub-option close",type:"button",onClick:i},T(c(U)("closeButtonText")),1),u("button",{class:"pub-option submit",type:"submit",onClick:h},T(c(U)("submitButtonText")),1)])],32)]),_:1},8,["is-visible"])]))}}),Fl=$(Dl,[["__scopeId","data-v-83d58003"]]),zl={extends:mt,enhanceApp({app:t}){t.component("StatsBar",Qe),t.component("PluginStore",pl),t.component("ResStore",Fl)},Layout:Qe};export{zl as R,Ma as c,U as g,O as u}; diff --git a/assets/deploy_config.md.BBoJ_SVs.lean.js b/assets/deploy_config.md.BBoJ_SVs.lean.js deleted file mode 100644 index 724629a9..00000000 --- a/assets/deploy_config.md.BBoJ_SVs.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"配置","description":"","frontmatter":{"title":"配置","order":2},"headers":[],"relativePath":"deploy/config.md","filePath":"zh/deploy/config.md","lastUpdated":1725101868000}'),t={name:"deploy/config.md"},l=n("",15),h=[l];function e(k,p,d,o,r,E){return a(),i("div",null,h)}const y=s(t,[["render",e]]);export{g as __pageData,y as default}; diff --git a/assets/deploy_config.md.BBoJ_SVs.js b/assets/deploy_config.md.CsfRbAPS.js similarity index 85% rename from assets/deploy_config.md.BBoJ_SVs.js rename to assets/deploy_config.md.CsfRbAPS.js index 1c77a5ea..63586451 100644 --- a/assets/deploy_config.md.BBoJ_SVs.js +++ b/assets/deploy_config.md.CsfRbAPS.js @@ -1,5 +1,5 @@ -import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"配置","description":"","frontmatter":{"title":"配置","order":2},"headers":[],"relativePath":"deploy/config.md","filePath":"zh/deploy/config.md","lastUpdated":1725101868000}'),t={name:"deploy/config.md"},l=n(`

配置

轻雪支持yamljsontoml作为配置文件,取决于你个人的喜好

首次运行后生成config.ymlconfig目录,你可修改配置项后重启轻雪,绝大多数情况下,你只需要修改superusersnickname字段即可

启动时会加载项目目录下config.yml/yaml/json/tomlconfig目录下的所有配置文件,你可在config目录下创建多个配置文件,轻雪会自动合并这些配置文件

基础配置项

yaml
nonebot:
-  # Nonebot机器人的配置,以前的最外层配置项仍可为Nonebot服务,但是部分内容会被覆盖,请尽快迁移
+import{_ as i,c as a,a7 as n,o as t}from"./chunks/framework.jrU0lkHV.js";const E=JSON.parse('{"title":"配置","description":"","frontmatter":{"title":"配置","order":2},"headers":[],"relativePath":"deploy/config.md","filePath":"zh/deploy/config.md","lastUpdated":1728838653000}'),l={name:"deploy/config.md"};function h(e,s,k,p,d,o){return t(),a("div",null,s[0]||(s[0]=[n(`

配置

轻雪支持yamljsontoml作为配置文件,取决于你个人的喜好

首次运行后生成config.ymlconfig目录,你可修改配置项后重启轻雪,绝大多数情况下,你只需要修改superusersnickname字段即可

启动时会加载项目目录下config.yml/yaml/json/tomlconfig目录下的所有配置文件,你可在config目录下创建多个配置文件,轻雪会自动合并这些配置文件

基础配置项

yaml
nonebot:
+  # Nonebot机器人的配置,6.3.10版本后,NoneBot下配置已迁移至nonebot键下,不再使用外层配置,但是部分内容会被覆盖,请尽快迁移
   command_start: [ "/", "" ] # 指令前缀,若没有""空命令头,请开启alconna_use_command_start保证alconna解析正常
   host: 127.0.0.1 # 监听地址,默认为本机,若要接收外部请求请填写0.0.0.0
   port: 20216 # 绑定端口
@@ -28,4 +28,4 @@ import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const g
   debug: false  # 轻雪调试,开启会自动重载Bot或者资源,其他插件自带的调试功能也将开启
   dev_mode: false # 开发者模式,开启后将会启动监视者,监视文件变化并自动重载
 
-...

示例:与NoneBot对接的OneBot实现端配置

生产环境中推荐反向WebSocket 不同的实现端给出的字段可能不同,但是基本上都是一样的,这里给出一个参考值

字段参考值说明
协议反向WebSocket推荐使用反向ws协议进行通信,即轻雪作为服务端
地址ws://127.0.0.1:20216/onebot/v11/ws地址取决于配置文件,本机默认为127.0.0.1:20216
AccessToken""如果你给轻雪配置了AccessToken,请在此填写相同的值

其他

  • 轻雪不局限于OneBot适配器,你可以使用NoneBot2支持的任何适配器或使用轻雪讯息传递插件
`,15),h=[l];function e(k,p,d,o,r,E){return a(),i("div",null,h)}const y=s(t,[["render",e]]);export{g as __pageData,y as default}; +...

示例:与NoneBot对接的OneBot实现端配置

生产环境中推荐反向WebSocket 不同的实现端给出的字段可能不同,但是基本上都是一样的,这里给出一个参考值

字段参考值说明
协议反向WebSocket推荐使用反向ws协议进行通信,即轻雪作为服务端
地址ws://127.0.0.1:20216/onebot/v11/ws地址取决于配置文件,本机默认为127.0.0.1:20216
AccessToken""如果你给轻雪配置了AccessToken,请在此填写相同的值

其他

  • 轻雪不局限于OneBot适配器,你可以使用NoneBot2支持的任何适配器或使用轻雪讯息传递插件
`,15)]))}const g=i(l,[["render",h]]);export{E as __pageData,g as default}; diff --git a/assets/deploy_config.md.CsfRbAPS.lean.js b/assets/deploy_config.md.CsfRbAPS.lean.js new file mode 100644 index 00000000..63586451 --- /dev/null +++ b/assets/deploy_config.md.CsfRbAPS.lean.js @@ -0,0 +1,31 @@ +import{_ as i,c as a,a7 as n,o as t}from"./chunks/framework.jrU0lkHV.js";const E=JSON.parse('{"title":"配置","description":"","frontmatter":{"title":"配置","order":2},"headers":[],"relativePath":"deploy/config.md","filePath":"zh/deploy/config.md","lastUpdated":1728838653000}'),l={name:"deploy/config.md"};function h(e,s,k,p,d,o){return t(),a("div",null,s[0]||(s[0]=[n(`

配置

轻雪支持yamljsontoml作为配置文件,取决于你个人的喜好

首次运行后生成config.ymlconfig目录,你可修改配置项后重启轻雪,绝大多数情况下,你只需要修改superusersnickname字段即可

启动时会加载项目目录下config.yml/yaml/json/tomlconfig目录下的所有配置文件,你可在config目录下创建多个配置文件,轻雪会自动合并这些配置文件

基础配置项

yaml
nonebot:
+  # Nonebot机器人的配置,6.3.10版本后,NoneBot下配置已迁移至nonebot键下,不再使用外层配置,但是部分内容会被覆盖,请尽快迁移
+  command_start: [ "/", "" ] # 指令前缀,若没有""空命令头,请开启alconna_use_command_start保证alconna解析正常
+  host: 127.0.0.1 # 监听地址,默认为本机,若要接收外部请求请填写0.0.0.0
+  port: 20216 # 绑定端口
+  nickname: [ "liteyuki" ]  # 机器人昵称列表
+  superusers: [ "1919810" ]  # 超级用户列表
+liteyuki:
+  # 写在外层的配置项将会被覆盖,建议迁移到liteyuki下
+  log_level: "INFO" # 日志等级
+  log_icon: true # 是否显示日志等级图标(某些控制台字体不可用)
+  auto_report: true # 是否自动上报问题给轻雪服务器
+  auto_update: true # 是否自动更新轻雪,每天4点检查更新
+  plugins: [ ] # 轻雪插件列表
+  plugin_dirs: [ ] # 轻雪插件目录列表

其他配置

以下为默认值,如需自定义请手动添加

yaml
# 高级NoneBot配置
+nonebot:
+  onebot_access_token: "" # 访问令牌,对公开放时建议设置
+  default_language: "zh-CN" # 默认语言
+  alconna_auto_completion: false # alconna是否自动补全指令,默认false,建议开启
+  safe_mode: false # 安全模式,开启后将不会加载任何第三方NoneBot插件
+  # 其他Nonebot插件的配置项
+  custom_config_1: "custom_value1"
+  custom_config_2: "custom_value2"
+
+# 开发者选项
+liteyuki:
+  allow_update: true # 是否允许更新
+  debug: false  # 轻雪调试,开启会自动重载Bot或者资源,其他插件自带的调试功能也将开启
+  dev_mode: false # 开发者模式,开启后将会启动监视者,监视文件变化并自动重载
+
+...

示例:与NoneBot对接的OneBot实现端配置

生产环境中推荐反向WebSocket 不同的实现端给出的字段可能不同,但是基本上都是一样的,这里给出一个参考值

字段参考值说明
协议反向WebSocket推荐使用反向ws协议进行通信,即轻雪作为服务端
地址ws://127.0.0.1:20216/onebot/v11/ws地址取决于配置文件,本机默认为127.0.0.1:20216
AccessToken""如果你给轻雪配置了AccessToken,请在此填写相同的值

其他

  • 轻雪不局限于OneBot适配器,你可以使用NoneBot2支持的任何适配器或使用轻雪讯息传递插件
`,15)]))}const g=i(l,[["render",h]]);export{E as __pageData,g as default}; diff --git a/assets/deploy_fandq.md.Ch9Ahkyl.js b/assets/deploy_fandq.md.Ch9Ahkyl.js new file mode 100644 index 00000000..b122c323 --- /dev/null +++ b/assets/deploy_fandq.md.Ch9Ahkyl.js @@ -0,0 +1 @@ +import{_ as o,c as t,a7 as a,o as r}from"./chunks/framework.jrU0lkHV.js";const u=JSON.parse('{"title":"答疑","description":"","frontmatter":{"title":"答疑","order":3},"headers":[],"relativePath":"deploy/fandq.md","filePath":"zh/deploy/fandq.md","lastUpdated":1725101868000}'),l={name:"deploy/fandq.md"};function n(i,e,c,d,h,p){return r(),t("div",null,e[0]||(e[0]=[a('

答疑

常见问题

  • 设备上Python环境太乱了,pip和python不对应怎么办?

    • 请使用/path/to/python -m pip install -r requirements.txt来安装依赖, 然后用/path/to/python main.py来启动Bot, 其中/path/to/python是你要用来运行Bot的可执行文件
  • 为什么我启动后机器人没有反应?

    • 请检查配置文件的command_startsuperusers,确认你有权限使用命令并按照正确的命令发送
    • 确认命令头没有和nickname{}冲突,例如一个命令是help,但是Bot昵称有一个help,那么将会被解析为nickname而不是命令
  • 更新轻雪失败,报错InvalidGitRepositoryError

    • 请正确安装Git,并使用克隆而非直接下载的方式部署轻雪
  • 怎么登录聊天平台,例如QQ?

    • 你有这个问题说明你不是很了解这个项目,本项目不负责实现登录功能,只负责处理和回应消息,登录功能由实现端(协议端)提供, 实现端本身不负责处理响应逻辑,将消息按照OneBot标准处理好上报给轻雪 你需要使用Onebot标准的实现端来连接到轻雪并将消息上报给轻雪,下面已经列出一些推荐的实现端
  • Playwright安装失败

    • 输入playwright install安装浏览器
  • 有的插件安装后报错无法启动

    • 请先查阅插件文档,确认插件必要配置项完好后,仍然出现问题,请联系插件作者或在安全模式safe_mode: true下启动轻雪,在安全模式下你可以使用npm uninstall卸载问题插件
  • 其他问题

    加入QQ群775840726

推荐方案(QQ)

  1. Lagrange.OneBot,基于NTQQ的OneBot实现,目前Markdown消息支持Lagrange
  2. LLOneBot,NTQQ的OneBot插件,需要安装NTQQ
  3. OpenShamrock,基于Lsposed的OneBot11实现
  4. TRSS-Yunzai,基于node.js,可使用ws-plugin进行通信
  5. go-cqhttpgo语言实现的OneBot11实现端,目前可用性较低
  6. Gensokyo,基于 OneBot QQ官方机器人Api Golang 原生实现,需要官方机器人权限
  7. 人工实现的Onebot协议,自己整一个WebSocket客户端,看着QQ的消息,然后给轻雪传输数据

推荐方案(Minecraft)

  1. MinecraftOneBot,我们专门为Minecraft开发的服务器Bot,支持OneBotV11标准

使用其他项目连接请先自行查阅文档,若有困难请联系对应开发者而不是Liteyuki的开发者

鸣谢

',10)]))}const f=o(l,[["render",n]]);export{u as __pageData,f as default}; diff --git a/assets/deploy_fandq.md.Ch9Ahkyl.lean.js b/assets/deploy_fandq.md.Ch9Ahkyl.lean.js new file mode 100644 index 00000000..b122c323 --- /dev/null +++ b/assets/deploy_fandq.md.Ch9Ahkyl.lean.js @@ -0,0 +1 @@ +import{_ as o,c as t,a7 as a,o as r}from"./chunks/framework.jrU0lkHV.js";const u=JSON.parse('{"title":"答疑","description":"","frontmatter":{"title":"答疑","order":3},"headers":[],"relativePath":"deploy/fandq.md","filePath":"zh/deploy/fandq.md","lastUpdated":1725101868000}'),l={name:"deploy/fandq.md"};function n(i,e,c,d,h,p){return r(),t("div",null,e[0]||(e[0]=[a('

答疑

常见问题

  • 设备上Python环境太乱了,pip和python不对应怎么办?

    • 请使用/path/to/python -m pip install -r requirements.txt来安装依赖, 然后用/path/to/python main.py来启动Bot, 其中/path/to/python是你要用来运行Bot的可执行文件
  • 为什么我启动后机器人没有反应?

    • 请检查配置文件的command_startsuperusers,确认你有权限使用命令并按照正确的命令发送
    • 确认命令头没有和nickname{}冲突,例如一个命令是help,但是Bot昵称有一个help,那么将会被解析为nickname而不是命令
  • 更新轻雪失败,报错InvalidGitRepositoryError

    • 请正确安装Git,并使用克隆而非直接下载的方式部署轻雪
  • 怎么登录聊天平台,例如QQ?

    • 你有这个问题说明你不是很了解这个项目,本项目不负责实现登录功能,只负责处理和回应消息,登录功能由实现端(协议端)提供, 实现端本身不负责处理响应逻辑,将消息按照OneBot标准处理好上报给轻雪 你需要使用Onebot标准的实现端来连接到轻雪并将消息上报给轻雪,下面已经列出一些推荐的实现端
  • Playwright安装失败

    • 输入playwright install安装浏览器
  • 有的插件安装后报错无法启动

    • 请先查阅插件文档,确认插件必要配置项完好后,仍然出现问题,请联系插件作者或在安全模式safe_mode: true下启动轻雪,在安全模式下你可以使用npm uninstall卸载问题插件
  • 其他问题

    加入QQ群775840726

推荐方案(QQ)

  1. Lagrange.OneBot,基于NTQQ的OneBot实现,目前Markdown消息支持Lagrange
  2. LLOneBot,NTQQ的OneBot插件,需要安装NTQQ
  3. OpenShamrock,基于Lsposed的OneBot11实现
  4. TRSS-Yunzai,基于node.js,可使用ws-plugin进行通信
  5. go-cqhttpgo语言实现的OneBot11实现端,目前可用性较低
  6. Gensokyo,基于 OneBot QQ官方机器人Api Golang 原生实现,需要官方机器人权限
  7. 人工实现的Onebot协议,自己整一个WebSocket客户端,看着QQ的消息,然后给轻雪传输数据

推荐方案(Minecraft)

  1. MinecraftOneBot,我们专门为Minecraft开发的服务器Bot,支持OneBotV11标准

使用其他项目连接请先自行查阅文档,若有困难请联系对应开发者而不是Liteyuki的开发者

鸣谢

',10)]))}const f=o(l,[["render",n]]);export{u as __pageData,f as default}; diff --git a/assets/deploy_fandq.md.D3AaSKzf.js b/assets/deploy_fandq.md.D3AaSKzf.js deleted file mode 100644 index 58b147be..00000000 --- a/assets/deploy_fandq.md.D3AaSKzf.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as e,c as o,o as t,a9 as a}from"./chunks/framework.C4_mTacX.js";const m=JSON.parse('{"title":"答疑","description":"","frontmatter":{"title":"答疑","order":3},"headers":[],"relativePath":"deploy/fandq.md","filePath":"zh/deploy/fandq.md","lastUpdated":1725101868000}'),r={name:"deploy/fandq.md"},n=a('

答疑

常见问题

  • 设备上Python环境太乱了,pip和python不对应怎么办?

    • 请使用/path/to/python -m pip install -r requirements.txt来安装依赖, 然后用/path/to/python main.py来启动Bot, 其中/path/to/python是你要用来运行Bot的可执行文件
  • 为什么我启动后机器人没有反应?

    • 请检查配置文件的command_startsuperusers,确认你有权限使用命令并按照正确的命令发送
    • 确认命令头没有和nickname{}冲突,例如一个命令是help,但是Bot昵称有一个help,那么将会被解析为nickname而不是命令
  • 更新轻雪失败,报错InvalidGitRepositoryError

    • 请正确安装Git,并使用克隆而非直接下载的方式部署轻雪
  • 怎么登录聊天平台,例如QQ?

    • 你有这个问题说明你不是很了解这个项目,本项目不负责实现登录功能,只负责处理和回应消息,登录功能由实现端(协议端)提供, 实现端本身不负责处理响应逻辑,将消息按照OneBot标准处理好上报给轻雪 你需要使用Onebot标准的实现端来连接到轻雪并将消息上报给轻雪,下面已经列出一些推荐的实现端
  • Playwright安装失败

    • 输入playwright install安装浏览器
  • 有的插件安装后报错无法启动

    • 请先查阅插件文档,确认插件必要配置项完好后,仍然出现问题,请联系插件作者或在安全模式safe_mode: true下启动轻雪,在安全模式下你可以使用npm uninstall卸载问题插件
  • 其他问题

    加入QQ群775840726

推荐方案(QQ)

  1. Lagrange.OneBot,基于NTQQ的OneBot实现,目前Markdown消息支持Lagrange
  2. LLOneBot,NTQQ的OneBot插件,需要安装NTQQ
  3. OpenShamrock,基于Lsposed的OneBot11实现
  4. TRSS-Yunzai,基于node.js,可使用ws-plugin进行通信
  5. go-cqhttpgo语言实现的OneBot11实现端,目前可用性较低
  6. Gensokyo,基于 OneBot QQ官方机器人Api Golang 原生实现,需要官方机器人权限
  7. 人工实现的Onebot协议,自己整一个WebSocket客户端,看着QQ的消息,然后给轻雪传输数据

推荐方案(Minecraft)

  1. MinecraftOneBot,我们专门为Minecraft开发的服务器Bot,支持OneBotV11标准

使用其他项目连接请先自行查阅文档,若有困难请联系对应开发者而不是Liteyuki的开发者

鸣谢

',10),l=[n];function i(c,h,d,p,s,u){return t(),o("div",null,l)}const g=e(r,[["render",i]]);export{m as __pageData,g as default}; diff --git a/assets/deploy_fandq.md.D3AaSKzf.lean.js b/assets/deploy_fandq.md.D3AaSKzf.lean.js deleted file mode 100644 index d15e78e5..00000000 --- a/assets/deploy_fandq.md.D3AaSKzf.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as e,c as o,o as t,a9 as a}from"./chunks/framework.C4_mTacX.js";const m=JSON.parse('{"title":"答疑","description":"","frontmatter":{"title":"答疑","order":3},"headers":[],"relativePath":"deploy/fandq.md","filePath":"zh/deploy/fandq.md","lastUpdated":1725101868000}'),r={name:"deploy/fandq.md"},n=a("",10),l=[n];function i(c,h,d,p,s,u){return t(),o("div",null,l)}const g=e(r,[["render",i]]);export{m as __pageData,g as default}; diff --git a/assets/deploy_install.md.DMcLeaSP.lean.js b/assets/deploy_install.md.DMcLeaSP.lean.js deleted file mode 100644 index b5ebde44..00000000 --- a/assets/deploy_install.md.DMcLeaSP.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as i,c as t,o as e,a9 as s}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"安装","description":"","frontmatter":{"title":"安装","order":1},"headers":[],"relativePath":"deploy/install.md","filePath":"zh/deploy/install.md","lastUpdated":1725247253000}'),a={name:"deploy/install.md"},o=s("",15),l=[o];function n(c,d,r,h,p,k){return e(),t("div",null,l)}const y=i(a,[["render",n]]);export{g as __pageData,y as default}; diff --git a/assets/deploy_install.md.DMcLeaSP.js b/assets/deploy_install.md.mX0RSUJJ.js similarity index 78% rename from assets/deploy_install.md.DMcLeaSP.js rename to assets/deploy_install.md.mX0RSUJJ.js index fc39db30..1b638909 100644 --- a/assets/deploy_install.md.DMcLeaSP.js +++ b/assets/deploy_install.md.mX0RSUJJ.js @@ -1,4 +1,4 @@ -import{_ as i,c as t,o as e,a9 as s}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"安装","description":"","frontmatter":{"title":"安装","order":1},"headers":[],"relativePath":"deploy/install.md","filePath":"zh/deploy/install.md","lastUpdated":1725247253000}'),a={name:"deploy/install.md"},o=s(`

安装

常规部署

  1. 安装 GitPython3.10+ 环境
bash
# 克隆项目到本地,轻雪使用Git进行版本管理,该步骤为必要项
+import{_ as t,c as e,a7 as s,o as a}from"./chunks/framework.jrU0lkHV.js";const k=JSON.parse('{"title":"安装","description":"","frontmatter":{"title":"安装","order":1},"headers":[],"relativePath":"deploy/install.md","filePath":"zh/deploy/install.md","lastUpdated":1725247253000}'),o={name:"deploy/install.md"};function l(n,i,c,d,r,h){return a(),e("div",null,i[0]||(i[0]=[s(`

安装

常规部署

  1. 安装 GitPython3.10+ 环境
bash
# 克隆项目到本地,轻雪使用Git进行版本管理,该步骤为必要项
 git clone https://github.com/LiteyukiStudio/LiteyukiBot --depth=1 # 若你不能访问Github,可以使用Liteyuki镜像:https://git.liteyuki.icu/LiteyukiStudio/LiteyukiBot
 
 # 切换到Bot目录下
@@ -6,4 +6,4 @@ import{_ as i,c as t,o as e,a9 as s}from"./chunks/framework.C4_mTacX.js";const g
 # 安装依赖
 pip install -r requirements.txt
 # 启动Bot
-python main.py

TIP

推荐使用虚拟环境来运行轻雪,以避免依赖冲突,你可以使用python -m venv .venv来创建虚拟环境,然后使用.venv\\Scripts\\activate来激活虚拟环境(Linux下使用source .venv/bin/activate激活)

使用Docker构建

  1. 安装 Docker
  2. 克隆项目 git clone https://github.com/LiteyukiStudio/LiteyukiBot --depth=1
  3. 进入轻雪目录 cd LiteyukiBot
  4. 构建镜像 docker build -t liteyukibot .
  5. 启动容器 docker run -p 20216:20216 -v $(pwd):/liteyukibot -v $(pwd)/.cache:/root/.cache liteyukibot

TIP

Windows请使用项目绝对目录/path/to/LiteyukiBot代替$(pwd)
若你修改了端口号请将20216:20216中的20216替换为你的端口号

使用TRSS Scripts部署

TRSS_Liteyuki轻雪机器人管理脚本,该功能由TRSS提供支持,不是LiteyukiBot官方提供的功能,推荐使用Arch Linux

装置要求

  • Windows系统版本最低Windows10+/Windows Server 2019+
  • Linux系统要支持Python3.10+,推荐Ubuntu 20.04+(别用你那b CentOS)
  • CPU: 至少1vCPU
  • 内存: Bot无其他插件会占用300~500MB,包括chromiumnode等进程,其他插件占用视具体插件而定,建议1GB以上
  • 硬盘: 至少1GB空间

WARNING

如果装置上有多个环境,请使用path/to/python -m pip install -r requirements.txt来安装依赖,path/to/python为你的Python可执行文件路径

WARNING

轻雪的更新功能依赖Git,如果你没有安装Git直接下载源代码运行,你将无法使用更新功能

其他问题请移步至答疑

`,15),l=[o];function n(c,d,r,h,p,k){return e(),t("div",null,l)}const y=i(a,[["render",n]]);export{g as __pageData,y as default}; +python main.py

TIP

推荐使用虚拟环境来运行轻雪,以避免依赖冲突,你可以使用python -m venv .venv来创建虚拟环境,然后使用.venv\\Scripts\\activate来激活虚拟环境(Linux下使用source .venv/bin/activate激活)

使用Docker构建

  1. 安装 Docker
  2. 克隆项目 git clone https://github.com/LiteyukiStudio/LiteyukiBot --depth=1
  3. 进入轻雪目录 cd LiteyukiBot
  4. 构建镜像 docker build -t liteyukibot .
  5. 启动容器 docker run -p 20216:20216 -v $(pwd):/liteyukibot -v $(pwd)/.cache:/root/.cache liteyukibot

TIP

Windows请使用项目绝对目录/path/to/LiteyukiBot代替$(pwd)
若你修改了端口号请将20216:20216中的20216替换为你的端口号

使用TRSS Scripts部署

TRSS_Liteyuki轻雪机器人管理脚本,该功能由TRSS提供支持,不是LiteyukiBot官方提供的功能,推荐使用Arch Linux

装置要求

  • Windows系统版本最低Windows10+/Windows Server 2019+
  • Linux系统要支持Python3.10+,推荐Ubuntu 20.04+(别用你那b CentOS)
  • CPU: 至少1vCPU
  • 内存: Bot无其他插件会占用300~500MB,包括chromiumnode等进程,其他插件占用视具体插件而定,建议1GB以上
  • 硬盘: 至少1GB空间

WARNING

如果装置上有多个环境,请使用path/to/python -m pip install -r requirements.txt来安装依赖,path/to/python为你的Python可执行文件路径

WARNING

轻雪的更新功能依赖Git,如果你没有安装Git直接下载源代码运行,你将无法使用更新功能

其他问题请移步至答疑

`,15)]))}const u=t(o,[["render",l]]);export{k as __pageData,u as default}; diff --git a/assets/deploy_install.md.mX0RSUJJ.lean.js b/assets/deploy_install.md.mX0RSUJJ.lean.js new file mode 100644 index 00000000..1b638909 --- /dev/null +++ b/assets/deploy_install.md.mX0RSUJJ.lean.js @@ -0,0 +1,9 @@ +import{_ as t,c as e,a7 as s,o as a}from"./chunks/framework.jrU0lkHV.js";const k=JSON.parse('{"title":"安装","description":"","frontmatter":{"title":"安装","order":1},"headers":[],"relativePath":"deploy/install.md","filePath":"zh/deploy/install.md","lastUpdated":1725247253000}'),o={name:"deploy/install.md"};function l(n,i,c,d,r,h){return a(),e("div",null,i[0]||(i[0]=[s(`

安装

常规部署

  1. 安装 GitPython3.10+ 环境
bash
# 克隆项目到本地,轻雪使用Git进行版本管理,该步骤为必要项
+git clone https://github.com/LiteyukiStudio/LiteyukiBot --depth=1 # 若你不能访问Github,可以使用Liteyuki镜像:https://git.liteyuki.icu/LiteyukiStudio/LiteyukiBot
+
+# 切换到Bot目录下
+cd LiteyukiBot
+# 安装依赖
+pip install -r requirements.txt
+# 启动Bot
+python main.py

TIP

推荐使用虚拟环境来运行轻雪,以避免依赖冲突,你可以使用python -m venv .venv来创建虚拟环境,然后使用.venv\\Scripts\\activate来激活虚拟环境(Linux下使用source .venv/bin/activate激活)

使用Docker构建

  1. 安装 Docker
  2. 克隆项目 git clone https://github.com/LiteyukiStudio/LiteyukiBot --depth=1
  3. 进入轻雪目录 cd LiteyukiBot
  4. 构建镜像 docker build -t liteyukibot .
  5. 启动容器 docker run -p 20216:20216 -v $(pwd):/liteyukibot -v $(pwd)/.cache:/root/.cache liteyukibot

TIP

Windows请使用项目绝对目录/path/to/LiteyukiBot代替$(pwd)
若你修改了端口号请将20216:20216中的20216替换为你的端口号

使用TRSS Scripts部署

TRSS_Liteyuki轻雪机器人管理脚本,该功能由TRSS提供支持,不是LiteyukiBot官方提供的功能,推荐使用Arch Linux

装置要求

  • Windows系统版本最低Windows10+/Windows Server 2019+
  • Linux系统要支持Python3.10+,推荐Ubuntu 20.04+(别用你那b CentOS)
  • CPU: 至少1vCPU
  • 内存: Bot无其他插件会占用300~500MB,包括chromiumnode等进程,其他插件占用视具体插件而定,建议1GB以上
  • 硬盘: 至少1GB空间

WARNING

如果装置上有多个环境,请使用path/to/python -m pip install -r requirements.txt来安装依赖,path/to/python为你的Python可执行文件路径

WARNING

轻雪的更新功能依赖Git,如果你没有安装Git直接下载源代码运行,你将无法使用更新功能

其他问题请移步至答疑

`,15)]))}const u=t(o,[["render",l]]);export{k as __pageData,u as default}; diff --git a/assets/dev_api_bot_index.md.DpCC1zEs.lean.js b/assets/dev_api_bot_index.md.DpCC1zEs.lean.js deleted file mode 100644 index da4327f7..00000000 --- a/assets/dev_api_bot_index.md.DpCC1zEs.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as s,c as i,o as a,a9 as t}from"./chunks/framework.C4_mTacX.js";const y=JSON.parse('{"title":"liteyuki.bot","description":"","frontmatter":{"title":"liteyuki.bot","collapsed":true},"headers":[],"relativePath":"dev/api/bot/index.md","filePath":"zh/dev/api/bot/index.md","lastUpdated":null}'),n={name:"dev/api/bot/index.md"},e=t("",103),l=[e];function h(p,k,r,o,d,g){return a(),i("div",null,l)}const c=s(n,[["render",h]]);export{y as __pageData,c as default}; diff --git a/assets/dev_api_bot_index.md.DpCC1zEs.js b/assets/dev_api_bot_index.md.EFktxyMC.js similarity index 95% rename from assets/dev_api_bot_index.md.DpCC1zEs.js rename to assets/dev_api_bot_index.md.EFktxyMC.js index e355b719..23f4b6fa 100644 --- a/assets/dev_api_bot_index.md.DpCC1zEs.js +++ b/assets/dev_api_bot_index.md.EFktxyMC.js @@ -1,4 +1,4 @@ -import{_ as s,c as i,o as a,a9 as t}from"./chunks/framework.C4_mTacX.js";const y=JSON.parse('{"title":"liteyuki.bot","description":"","frontmatter":{"title":"liteyuki.bot","collapsed":true},"headers":[],"relativePath":"dev/api/bot/index.md","filePath":"zh/dev/api/bot/index.md","lastUpdated":null}'),n={name:"dev/api/bot/index.md"},e=t(`

模块 liteyuki.bot

class LiteyukiBot


func __init__(self, **kwargs) -> None

说明: 初始化轻雪实例

参数:

  • **kwargs: 配置
源代码在GitHub上查看
python
def __init__(self, **kwargs) -> None:
+import{_ as i,c as a,a7 as t,o as n}from"./chunks/framework.jrU0lkHV.js";const g=JSON.parse('{"title":"liteyuki.bot","description":"","frontmatter":{"title":"liteyuki.bot","collapsed":true},"headers":[],"relativePath":"dev/api/bot/index.md","filePath":"zh/dev/api/bot/index.md","lastUpdated":null}'),e={name:"dev/api/bot/index.md"};function l(h,s,p,k,r,o){return n(),a("div",null,s[0]||(s[0]=[t(`

模块 liteyuki.bot

class LiteyukiBot


func __init__(self, **kwargs) -> None

说明: 初始化轻雪实例

参数:

  • **kwargs: 配置
源代码在GitHub上查看
python
def __init__(self, **kwargs) -> None:
     """常规操作"""
     print_logo()
     global _BOT_INSTANCE
@@ -79,4 +79,4 @@ import{_ as s,c as i,o as a,a9 as t}from"./chunks/framework.C4_mTacX.js";const y
         if compat_key in get_bot().config:
             logger.warning(f'Config key "{compat_key}" will be deprecated, use "{key}" instead.')
             return get_bot().config[compat_key]
-    return default
`,103),l=[e];function h(p,k,r,o,d,g){return a(),i("div",null,l)}const c=s(n,[["render",h]]);export{y as __pageData,c as default}; + return default
`,103)]))}const E=i(e,[["render",l]]);export{g as __pageData,E as default}; diff --git a/assets/dev_api_bot_index.md.EFktxyMC.lean.js b/assets/dev_api_bot_index.md.EFktxyMC.lean.js new file mode 100644 index 00000000..23f4b6fa --- /dev/null +++ b/assets/dev_api_bot_index.md.EFktxyMC.lean.js @@ -0,0 +1,82 @@ +import{_ as i,c as a,a7 as t,o as n}from"./chunks/framework.jrU0lkHV.js";const g=JSON.parse('{"title":"liteyuki.bot","description":"","frontmatter":{"title":"liteyuki.bot","collapsed":true},"headers":[],"relativePath":"dev/api/bot/index.md","filePath":"zh/dev/api/bot/index.md","lastUpdated":null}'),e={name:"dev/api/bot/index.md"};function l(h,s,p,k,r,o){return n(),a("div",null,s[0]||(s[0]=[t(`

模块 liteyuki.bot

class LiteyukiBot


func __init__(self, **kwargs) -> None

说明: 初始化轻雪实例

参数:

  • **kwargs: 配置
源代码在GitHub上查看
python
def __init__(self, **kwargs) -> None:
+    """常规操作"""
+    print_logo()
+    global _BOT_INSTANCE
+    _BOT_INSTANCE = self
+    '配置'
+    self.config: dict[str, Any] = kwargs
+    '初始化'
+    self.init(**self.config)
+    logger.info('Liteyuki is initializing...')
+    '生命周期管理'
+    self.lifespan = Lifespan()
+    self.process_manager: ProcessManager = ProcessManager(lifespan=self.lifespan)
+    '事件循环'
+    self.loop = asyncio.new_event_loop()
+    asyncio.set_event_loop(self.loop)
+    self.stop_event = threading.Event()
+    self.call_restart_count = 0
+    '加载插件加载器'
+    load_plugin('liteyuki.plugins.plugin_loader')

func run(self)

说明: 外部启动接口

源代码在GitHub上查看
python
def run(self):
+    self.process_manager.start_all()
+    try:
+        asyncio.run(self._run())
+    except KeyboardInterrupt:
+        logger.opt(colors=True).info('<y>Liteyuki is stopping...</y>')
+        self.stop()
+    logger.opt(colors=True).info('<y>Liteyuki is stopped...</y>')

async func keep_alive(self)

说明: 保持轻雪运行

源代码在GitHub上查看
python
async def keep_alive(self):
+    logger.info('Liteyuki is keeping alive...')
+    try:
+        while not self.stop_event.is_set():
+            await asyncio.sleep(0.1)
+    except Exception:
+        logger.info('Liteyuki is exiting...')
+        self.stop()

func restart(self, delay: int = 0)

说明: 重启轻雪本体

参数:

  • delay (int, optional): 延迟重启时间. Defaults to 0.
源代码在GitHub上查看
python
def restart(self, delay: int=0):
+    if self.call_restart_count < 1:
+        executable = sys.executable
+        args = sys.argv
+        logger.info('Restarting LiteyukiBot...')
+        time.sleep(delay)
+        if platform.system() == 'Windows':
+            cmd = 'start'
+        elif platform.system() == 'Linux':
+            cmd = 'nohup'
+        elif platform.system() == 'Darwin':
+            cmd = 'open'
+        else:
+            cmd = 'nohup'
+        self.process_manager.terminate_all()
+        threading.Thread(target=os.system, args=(f"{cmd} {executable} {' '.join(args)}",), daemon=True).start()
+        sys.exit(0)
+    self.call_restart_count += 1

func restart_process(self, name: Optional[str] = None)

说明: 停止轻雪

参数:

源代码在GitHub上查看
python
def restart_process(self, name: Optional[str]=None):
+    if name is not None:
+        chan_active = get_channel(f'{name}-active')
+        chan_active.send(1)
+    else:
+        for process_name in self.process_manager.processes:
+            chan_active = get_channel(f'{process_name}-active')
+            chan_active.send(1)

func init(self, *args, **kwargs)

说明: 初始化轻雪, 自动调用

参数:

  • *args: 参数
  • **kwargs: 关键字参数
源代码在GitHub上查看
python
def init(self, *args, **kwargs):
+    self.init_logger()

func init_logger(self)

说明: 初始化日志

源代码在GitHub上查看
python
def init_logger(self):
+    init_log(config=self.config)

func stop(self)

说明: 停止轻雪

源代码在GitHub上查看
python
def stop(self):
+    self.process_manager.terminate_all()
+    self.stop_event.set()

func on_before_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC

说明: 注册启动前的函数

参数:

返回: LIFESPAN_FUNC: 生命周期函数

源代码在GitHub上查看
python
def on_before_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC:
+    return self.lifespan.on_before_start(func)

func on_after_start(self, func: LIFESPAN_FUNC)

说明: 注册启动后的函数

参数:

返回: LIFESPAN_FUNC: 生命周期函数

源代码在GitHub上查看
python
def on_after_start(self, func: LIFESPAN_FUNC):
+    return self.lifespan.on_after_start(func)

func on_after_shutdown(self, func: LIFESPAN_FUNC)

说明: 注册停止后的函数:未实现

参数:

返回: LIFESPAN_FUNC: 生命周期函数

源代码在GitHub上查看
python
def on_after_shutdown(self, func: LIFESPAN_FUNC):
+    return self.lifespan.on_after_shutdown(func)

func on_before_process_shutdown(self, func: PROCESS_LIFESPAN_FUNC)

说明: 注册进程停止前的函数,为子进程停止时调用

参数:

返回: PROCESS_LIFESPAN_FUNC: 生命周期函数

源代码在GitHub上查看
python
def on_before_process_shutdown(self, func: PROCESS_LIFESPAN_FUNC):
+    return self.lifespan.on_before_process_shutdown(func)

func on_before_process_restart(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC

说明: 注册进程重启前的函数,为子进程重启时调用

参数:

返回: PROCESS_LIFESPAN_FUNC: 生命周期函数

源代码在GitHub上查看
python
def on_before_process_restart(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC:
+    return self.lifespan.on_before_process_restart(func)

func on_after_restart(self, func: LIFESPAN_FUNC)

说明: 注册重启后的函数:未实现

参数:

返回: LIFESPAN_FUNC: 生命周期函数

源代码在GitHub上查看
python
def on_after_restart(self, func: LIFESPAN_FUNC):
+    return self.lifespan.on_after_restart(func)

func get_bot() -> LiteyukiBot

说明: 获取轻雪实例

返回: LiteyukiBot: 轻雪实例

源代码在GitHub上查看
python
def get_bot() -> LiteyukiBot:
+    if IS_MAIN_PROCESS:
+        if _BOT_INSTANCE is None:
+            raise RuntimeError('Liteyuki instance not initialized.')
+        return _BOT_INSTANCE
+    else:
+        raise RuntimeError("Can't get bot instance in sub process.")

func get_config(key: str, default: Any = None) -> Any

说明: 获取配置

参数:

  • key (str): 配置键
  • default (Any, optional): 默认值. Defaults to None.

返回: Any: 配置值

源代码在GitHub上查看
python
def get_config(key: str, default: Any=None) -> Any:
+    return get_bot().config.get(key, default)

func get_config_with_compat(key: str, compat_keys: tuple[str], default: Any = None) -> Any

说明: 获取配置,兼容旧版本

参数:

  • key (str): 配置键
  • compat_keys (tuplestr): 兼容键
  • default (Any, optional): 默认值. Defaults to None.

返回: Any: 配置值

源代码在GitHub上查看
python
def get_config_with_compat(key: str, compat_keys: tuple[str], default: Any=None) -> Any:
+    if key in get_bot().config:
+        return get_bot().config[key]
+    for compat_key in compat_keys:
+        if compat_key in get_bot().config:
+            logger.warning(f'Config key "{compat_key}" will be deprecated, use "{key}" instead.')
+            return get_bot().config[compat_key]
+    return default
`,103)]))}const E=i(e,[["render",l]]);export{g as __pageData,E as default}; diff --git a/assets/dev_api_bot_lifespan.md.B9gZA-Xv.js b/assets/dev_api_bot_lifespan.md.B9gZA-Xv.js new file mode 100644 index 00000000..bd1659ef --- /dev/null +++ b/assets/dev_api_bot_lifespan.md.B9gZA-Xv.js @@ -0,0 +1 @@ +import{_ as i,c as a,a7 as n,o as t}from"./chunks/framework.jrU0lkHV.js";const d=JSON.parse('{"title":"liteyuki.bot.lifespan","description":"","frontmatter":{"title":"liteyuki.bot.lifespan"},"headers":[],"relativePath":"dev/api/bot/lifespan.md","filePath":"zh/dev/api/bot/lifespan.md","lastUpdated":null}'),e={name:"dev/api/bot/lifespan.md"};function l(h,s,p,r,k,o){return t(),a("div",null,s[0]||(s[0]=[n('

模块 liteyuki.bot.lifespan

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/23 下午8:24 @Author : snowykami @Email : snowykami@outlook.com @File : lifespan.py @Software: PyCharm

var SYNC_LIFESPAN_FUNC

  • 说明: 同步生命周期函数

  • 类型: TypeAlias

  • 默认值: Callable[[], Any]

var ASYNC_LIFESPAN_FUNC

  • 说明: 异步生命周期函数

  • 类型: TypeAlias

  • 默认值: Callable[[], Awaitable[Any]]

var LIFESPAN_FUNC

  • 说明: 生命周期函数

  • 类型: TypeAlias

  • 默认值: SYNC_LIFESPAN_FUNC | ASYNC_LIFESPAN_FUNC

var SYNC_PROCESS_LIFESPAN_FUNC

  • 说明: 同步进程生命周期函数

  • 类型: TypeAlias

  • 默认值: Callable[[str], Any]

var ASYNC_PROCESS_LIFESPAN_FUNC

  • 说明: 异步进程生命周期函数

  • 类型: TypeAlias

  • 默认值: Callable[[str], Awaitable[Any]]

var PROCESS_LIFESPAN_FUNC

  • 说明: 进程函数

  • 类型: TypeAlias

  • 默认值: SYNC_PROCESS_LIFESPAN_FUNC | ASYNC_PROCESS_LIFESPAN_FUNC

class Lifespan


func __init__(self) -> None

说明: 轻雪生命周期管理,启动、停止、重启

源代码在GitHub上查看
python
def __init__(self) -> None:\n    self.life_flag: int = 0\n    self._before_start_funcs: list[LIFESPAN_FUNC] = []\n    self._after_start_funcs: list[LIFESPAN_FUNC] = []\n    self._before_process_shutdown_funcs: list[PROCESS_LIFESPAN_FUNC] = []\n    self._after_shutdown_funcs: list[LIFESPAN_FUNC] = []\n    self._before_process_restart_funcs: list[PROCESS_LIFESPAN_FUNC] = []\n    self._after_restart_funcs: list[LIFESPAN_FUNC] = []

@staticmethod

async func run_funcs(funcs: Sequence[LIFESPAN_FUNC | PROCESS_LIFESPAN_FUNC], *args, **kwargs) -> None

说明: 并发运行异步函数

参数:

源代码在GitHub上查看
python
@staticmethod\nasync def run_funcs(funcs: Sequence[LIFESPAN_FUNC | PROCESS_LIFESPAN_FUNC], *args, **kwargs) -> None:\n    tasks = [func(*args, **kwargs) if is_coroutine_callable(func) else async_wrapper(func)(*args, **kwargs) for func in funcs]\n    await asyncio.gather(*tasks)

func on_before_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC

说明: 注册启动时的函数

参数:

返回: LIFESPAN_FUNC: 生命周期函数

源代码在GitHub上查看
python
def on_before_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC:\n    self._before_start_funcs.append(func)\n    return func

func on_after_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC

说明: 注册启动时的函数

参数:

返回: LIFESPAN_FUNC: 生命周期函数

源代码在GitHub上查看
python
def on_after_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC:\n    self._after_start_funcs.append(func)\n    return func

func on_before_process_shutdown(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC

说明: 注册进程停止前的函数

参数:

返回: PROCESS_LIFESPAN_FUNC: 进程生命周期函数

源代码在GitHub上查看
python
def on_before_process_shutdown(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC:\n    self._before_process_shutdown_funcs.append(func)\n    return func

func on_after_shutdown(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC

说明: 注册停止后的函数

参数:

返回: LIFESPAN_FUNC: 生命周期函数

源代码在GitHub上查看
python
def on_after_shutdown(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC:\n    self._after_shutdown_funcs.append(func)\n    return func

func on_before_process_restart(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC

说明: 注册进程重启前的函数

参数:

返回: PROCESS_LIFESPAN_FUNC: 进程生命周期函数

源代码在GitHub上查看
python
def on_before_process_restart(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC:\n    self._before_process_restart_funcs.append(func)\n    return func

func on_after_restart(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC

说明: 注册重启后的函数

参数:

返回: LIFESPAN_FUNC: 生命周期函数

源代码在GitHub上查看
python
def on_after_restart(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC:\n    self._after_restart_funcs.append(func)\n    return func

async func before_start(self) -> None

说明: 启动前钩子

源代码在GitHub上查看
python
async def before_start(self) -> None:\n    logger.debug('Running before_start functions')\n    await self.run_funcs(self._before_start_funcs)

async func after_start(self) -> None

说明: 启动后钩子

源代码在GitHub上查看
python
async def after_start(self) -> None:\n    logger.debug('Running after_start functions')\n    await self.run_funcs(self._after_start_funcs)

async func before_process_shutdown(self, *args, **kwargs) -> None

说明: 停止前钩子

源代码在GitHub上查看
python
async def before_process_shutdown(self, *args, **kwargs) -> None:\n    logger.debug('Running before_shutdown functions')\n    await self.run_funcs(self._before_process_shutdown_funcs, *args, **kwargs)

async func after_shutdown(self) -> None

说明: 停止后钩子 未实现

源代码在GitHub上查看
python
async def after_shutdown(self) -> None:\n    logger.debug('Running after_shutdown functions')\n    await self.run_funcs(self._after_shutdown_funcs)

async func before_process_restart(self, *args, **kwargs) -> None

说明: 重启前钩子

源代码在GitHub上查看
python
async def before_process_restart(self, *args, **kwargs) -> None:\n    logger.debug('Running before_restart functions')\n    await self.run_funcs(self._before_process_restart_funcs, *args, **kwargs)

async func after_restart(self) -> None

说明: 重启后钩子 未实现

源代码在GitHub上查看
python
async def after_restart(self) -> None:\n    logger.debug('Running after_restart functions')\n    await self.run_funcs(self._after_restart_funcs)
',93)]))}const g=i(e,[["render",l]]);export{d as __pageData,g as default}; diff --git a/assets/dev_api_bot_lifespan.md.B9gZA-Xv.lean.js b/assets/dev_api_bot_lifespan.md.B9gZA-Xv.lean.js new file mode 100644 index 00000000..bd1659ef --- /dev/null +++ b/assets/dev_api_bot_lifespan.md.B9gZA-Xv.lean.js @@ -0,0 +1 @@ +import{_ as i,c as a,a7 as n,o as t}from"./chunks/framework.jrU0lkHV.js";const d=JSON.parse('{"title":"liteyuki.bot.lifespan","description":"","frontmatter":{"title":"liteyuki.bot.lifespan"},"headers":[],"relativePath":"dev/api/bot/lifespan.md","filePath":"zh/dev/api/bot/lifespan.md","lastUpdated":null}'),e={name:"dev/api/bot/lifespan.md"};function l(h,s,p,r,k,o){return t(),a("div",null,s[0]||(s[0]=[n('

模块 liteyuki.bot.lifespan

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/23 下午8:24 @Author : snowykami @Email : snowykami@outlook.com @File : lifespan.py @Software: PyCharm

var SYNC_LIFESPAN_FUNC

  • 说明: 同步生命周期函数

  • 类型: TypeAlias

  • 默认值: Callable[[], Any]

var ASYNC_LIFESPAN_FUNC

  • 说明: 异步生命周期函数

  • 类型: TypeAlias

  • 默认值: Callable[[], Awaitable[Any]]

var LIFESPAN_FUNC

  • 说明: 生命周期函数

  • 类型: TypeAlias

  • 默认值: SYNC_LIFESPAN_FUNC | ASYNC_LIFESPAN_FUNC

var SYNC_PROCESS_LIFESPAN_FUNC

  • 说明: 同步进程生命周期函数

  • 类型: TypeAlias

  • 默认值: Callable[[str], Any]

var ASYNC_PROCESS_LIFESPAN_FUNC

  • 说明: 异步进程生命周期函数

  • 类型: TypeAlias

  • 默认值: Callable[[str], Awaitable[Any]]

var PROCESS_LIFESPAN_FUNC

  • 说明: 进程函数

  • 类型: TypeAlias

  • 默认值: SYNC_PROCESS_LIFESPAN_FUNC | ASYNC_PROCESS_LIFESPAN_FUNC

class Lifespan


func __init__(self) -> None

说明: 轻雪生命周期管理,启动、停止、重启

源代码在GitHub上查看
python
def __init__(self) -> None:\n    self.life_flag: int = 0\n    self._before_start_funcs: list[LIFESPAN_FUNC] = []\n    self._after_start_funcs: list[LIFESPAN_FUNC] = []\n    self._before_process_shutdown_funcs: list[PROCESS_LIFESPAN_FUNC] = []\n    self._after_shutdown_funcs: list[LIFESPAN_FUNC] = []\n    self._before_process_restart_funcs: list[PROCESS_LIFESPAN_FUNC] = []\n    self._after_restart_funcs: list[LIFESPAN_FUNC] = []

@staticmethod

async func run_funcs(funcs: Sequence[LIFESPAN_FUNC | PROCESS_LIFESPAN_FUNC], *args, **kwargs) -> None

说明: 并发运行异步函数

参数:

源代码在GitHub上查看
python
@staticmethod\nasync def run_funcs(funcs: Sequence[LIFESPAN_FUNC | PROCESS_LIFESPAN_FUNC], *args, **kwargs) -> None:\n    tasks = [func(*args, **kwargs) if is_coroutine_callable(func) else async_wrapper(func)(*args, **kwargs) for func in funcs]\n    await asyncio.gather(*tasks)

func on_before_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC

说明: 注册启动时的函数

参数:

返回: LIFESPAN_FUNC: 生命周期函数

源代码在GitHub上查看
python
def on_before_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC:\n    self._before_start_funcs.append(func)\n    return func

func on_after_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC

说明: 注册启动时的函数

参数:

返回: LIFESPAN_FUNC: 生命周期函数

源代码在GitHub上查看
python
def on_after_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC:\n    self._after_start_funcs.append(func)\n    return func

func on_before_process_shutdown(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC

说明: 注册进程停止前的函数

参数:

返回: PROCESS_LIFESPAN_FUNC: 进程生命周期函数

源代码在GitHub上查看
python
def on_before_process_shutdown(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC:\n    self._before_process_shutdown_funcs.append(func)\n    return func

func on_after_shutdown(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC

说明: 注册停止后的函数

参数:

返回: LIFESPAN_FUNC: 生命周期函数

源代码在GitHub上查看
python
def on_after_shutdown(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC:\n    self._after_shutdown_funcs.append(func)\n    return func

func on_before_process_restart(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC

说明: 注册进程重启前的函数

参数:

返回: PROCESS_LIFESPAN_FUNC: 进程生命周期函数

源代码在GitHub上查看
python
def on_before_process_restart(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC:\n    self._before_process_restart_funcs.append(func)\n    return func

func on_after_restart(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC

说明: 注册重启后的函数

参数:

返回: LIFESPAN_FUNC: 生命周期函数

源代码在GitHub上查看
python
def on_after_restart(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC:\n    self._after_restart_funcs.append(func)\n    return func

async func before_start(self) -> None

说明: 启动前钩子

源代码在GitHub上查看
python
async def before_start(self) -> None:\n    logger.debug('Running before_start functions')\n    await self.run_funcs(self._before_start_funcs)

async func after_start(self) -> None

说明: 启动后钩子

源代码在GitHub上查看
python
async def after_start(self) -> None:\n    logger.debug('Running after_start functions')\n    await self.run_funcs(self._after_start_funcs)

async func before_process_shutdown(self, *args, **kwargs) -> None

说明: 停止前钩子

源代码在GitHub上查看
python
async def before_process_shutdown(self, *args, **kwargs) -> None:\n    logger.debug('Running before_shutdown functions')\n    await self.run_funcs(self._before_process_shutdown_funcs, *args, **kwargs)

async func after_shutdown(self) -> None

说明: 停止后钩子 未实现

源代码在GitHub上查看
python
async def after_shutdown(self) -> None:\n    logger.debug('Running after_shutdown functions')\n    await self.run_funcs(self._after_shutdown_funcs)

async func before_process_restart(self, *args, **kwargs) -> None

说明: 重启前钩子

源代码在GitHub上查看
python
async def before_process_restart(self, *args, **kwargs) -> None:\n    logger.debug('Running before_restart functions')\n    await self.run_funcs(self._before_process_restart_funcs, *args, **kwargs)

async func after_restart(self) -> None

说明: 重启后钩子 未实现

源代码在GitHub上查看
python
async def after_restart(self) -> None:\n    logger.debug('Running after_restart functions')\n    await self.run_funcs(self._after_restart_funcs)
',93)]))}const g=i(e,[["render",l]]);export{d as __pageData,g as default}; diff --git a/assets/dev_api_bot_lifespan.md.DBf_PC3G.js b/assets/dev_api_bot_lifespan.md.DBf_PC3G.js deleted file mode 100644 index 340f66a2..00000000 --- a/assets/dev_api_bot_lifespan.md.DBf_PC3G.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const E=JSON.parse('{"title":"liteyuki.bot.lifespan","description":"","frontmatter":{"title":"liteyuki.bot.lifespan"},"headers":[],"relativePath":"dev/api/bot/lifespan.md","filePath":"zh/dev/api/bot/lifespan.md","lastUpdated":null}'),t={name:"dev/api/bot/lifespan.md"},e=n('

模块 liteyuki.bot.lifespan

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/23 下午8:24 @Author : snowykami @Email : snowykami@outlook.com @File : lifespan.py @Software: PyCharm

var SYNC_LIFESPAN_FUNC

  • 说明: 同步生命周期函数

  • 类型: TypeAlias

  • 默认值: Callable[[], Any]

var ASYNC_LIFESPAN_FUNC

  • 说明: 异步生命周期函数

  • 类型: TypeAlias

  • 默认值: Callable[[], Awaitable[Any]]

var LIFESPAN_FUNC

  • 说明: 生命周期函数

  • 类型: TypeAlias

  • 默认值: SYNC_LIFESPAN_FUNC | ASYNC_LIFESPAN_FUNC

var SYNC_PROCESS_LIFESPAN_FUNC

  • 说明: 同步进程生命周期函数

  • 类型: TypeAlias

  • 默认值: Callable[[str], Any]

var ASYNC_PROCESS_LIFESPAN_FUNC

  • 说明: 异步进程生命周期函数

  • 类型: TypeAlias

  • 默认值: Callable[[str], Awaitable[Any]]

var PROCESS_LIFESPAN_FUNC

  • 说明: 进程函数

  • 类型: TypeAlias

  • 默认值: SYNC_PROCESS_LIFESPAN_FUNC | ASYNC_PROCESS_LIFESPAN_FUNC

class Lifespan


func __init__(self) -> None

说明: 轻雪生命周期管理,启动、停止、重启

源代码在GitHub上查看
python
def __init__(self) -> None:\n    self.life_flag: int = 0\n    self._before_start_funcs: list[LIFESPAN_FUNC] = []\n    self._after_start_funcs: list[LIFESPAN_FUNC] = []\n    self._before_process_shutdown_funcs: list[PROCESS_LIFESPAN_FUNC] = []\n    self._after_shutdown_funcs: list[LIFESPAN_FUNC] = []\n    self._before_process_restart_funcs: list[PROCESS_LIFESPAN_FUNC] = []\n    self._after_restart_funcs: list[LIFESPAN_FUNC] = []

@staticmethod

async func run_funcs(funcs: Sequence[LIFESPAN_FUNC | PROCESS_LIFESPAN_FUNC], *args, **kwargs) -> None

说明: 并发运行异步函数

参数:

源代码在GitHub上查看
python
@staticmethod\nasync def run_funcs(funcs: Sequence[LIFESPAN_FUNC | PROCESS_LIFESPAN_FUNC], *args, **kwargs) -> None:\n    tasks = [func(*args, **kwargs) if is_coroutine_callable(func) else async_wrapper(func)(*args, **kwargs) for func in funcs]\n    await asyncio.gather(*tasks)

func on_before_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC

说明: 注册启动时的函数

参数:

返回: LIFESPAN_FUNC: 生命周期函数

源代码在GitHub上查看
python
def on_before_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC:\n    self._before_start_funcs.append(func)\n    return func

func on_after_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC

说明: 注册启动时的函数

参数:

返回: LIFESPAN_FUNC: 生命周期函数

源代码在GitHub上查看
python
def on_after_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC:\n    self._after_start_funcs.append(func)\n    return func

func on_before_process_shutdown(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC

说明: 注册进程停止前的函数

参数:

返回: PROCESS_LIFESPAN_FUNC: 进程生命周期函数

源代码在GitHub上查看
python
def on_before_process_shutdown(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC:\n    self._before_process_shutdown_funcs.append(func)\n    return func

func on_after_shutdown(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC

说明: 注册停止后的函数

参数:

返回: LIFESPAN_FUNC: 生命周期函数

源代码在GitHub上查看
python
def on_after_shutdown(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC:\n    self._after_shutdown_funcs.append(func)\n    return func

func on_before_process_restart(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC

说明: 注册进程重启前的函数

参数:

返回: PROCESS_LIFESPAN_FUNC: 进程生命周期函数

源代码在GitHub上查看
python
def on_before_process_restart(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC:\n    self._before_process_restart_funcs.append(func)\n    return func

func on_after_restart(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC

说明: 注册重启后的函数

参数:

返回: LIFESPAN_FUNC: 生命周期函数

源代码在GitHub上查看
python
def on_after_restart(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC:\n    self._after_restart_funcs.append(func)\n    return func

async func before_start(self) -> None

说明: 启动前钩子

源代码在GitHub上查看
python
async def before_start(self) -> None:\n    logger.debug('Running before_start functions')\n    await self.run_funcs(self._before_start_funcs)

async func after_start(self) -> None

说明: 启动后钩子

源代码在GitHub上查看
python
async def after_start(self) -> None:\n    logger.debug('Running after_start functions')\n    await self.run_funcs(self._after_start_funcs)

async func before_process_shutdown(self, *args, **kwargs) -> None

说明: 停止前钩子

源代码在GitHub上查看
python
async def before_process_shutdown(self, *args, **kwargs) -> None:\n    logger.debug('Running before_shutdown functions')\n    await self.run_funcs(self._before_process_shutdown_funcs, *args, **kwargs)

async func after_shutdown(self) -> None

说明: 停止后钩子 未实现

源代码在GitHub上查看
python
async def after_shutdown(self) -> None:\n    logger.debug('Running after_shutdown functions')\n    await self.run_funcs(self._after_shutdown_funcs)

async func before_process_restart(self, *args, **kwargs) -> None

说明: 重启前钩子

源代码在GitHub上查看
python
async def before_process_restart(self, *args, **kwargs) -> None:\n    logger.debug('Running before_restart functions')\n    await self.run_funcs(self._before_process_restart_funcs, *args, **kwargs)

async func after_restart(self) -> None

说明: 重启后钩子 未实现

源代码在GitHub上查看
python
async def after_restart(self) -> None:\n    logger.debug('Running after_restart functions')\n    await self.run_funcs(self._after_restart_funcs)
',93),l=[e];function h(p,r,k,o,c,d){return a(),i("div",null,l)}const u=s(t,[["render",h]]);export{E as __pageData,u as default}; diff --git a/assets/dev_api_bot_lifespan.md.DBf_PC3G.lean.js b/assets/dev_api_bot_lifespan.md.DBf_PC3G.lean.js deleted file mode 100644 index 7aa95d2b..00000000 --- a/assets/dev_api_bot_lifespan.md.DBf_PC3G.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const E=JSON.parse('{"title":"liteyuki.bot.lifespan","description":"","frontmatter":{"title":"liteyuki.bot.lifespan"},"headers":[],"relativePath":"dev/api/bot/lifespan.md","filePath":"zh/dev/api/bot/lifespan.md","lastUpdated":null}'),t={name:"dev/api/bot/lifespan.md"},e=n("",93),l=[e];function h(p,r,k,o,c,d){return a(),i("div",null,l)}const u=s(t,[["render",h]]);export{E as __pageData,u as default}; diff --git a/assets/dev_api_comm_channel.md.EvJIM00r.js b/assets/dev_api_comm_channel.md.CmpDD1vu.js similarity index 91% rename from assets/dev_api_comm_channel.md.EvJIM00r.js rename to assets/dev_api_comm_channel.md.CmpDD1vu.js index bcc1ef0f..d9f83842 100644 --- a/assets/dev_api_comm_channel.md.EvJIM00r.js +++ b/assets/dev_api_comm_channel.md.CmpDD1vu.js @@ -1,4 +1,4 @@ -import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const o=JSON.parse('{"title":"liteyuki.comm.channel","description":"","frontmatter":{"title":"liteyuki.comm.channel"},"headers":[],"relativePath":"dev/api/comm/channel.md","filePath":"zh/dev/api/comm/channel.md","lastUpdated":null}'),e={name:"dev/api/comm/channel.md"},l=n(`

模块 liteyuki.comm.channel

本模块定义了一个通用的通道类,用于进程间通信

var SYNC_ON_RECEIVE_FUNC

  • 说明: 同步接收函数

  • 类型: TypeAlias

  • 默认值: Callable[[T], Any]

var ON_RECEIVE_FUNC

  • 说明: 接收函数

  • 类型: TypeAlias

  • 默认值: SYNC_ON_RECEIVE_FUNC | ASYNC_ON_RECEIVE_FUNC

var SYNC_FILTER_FUNC

  • 说明: 同步过滤函数

  • 类型: TypeAlias

  • 默认值: Callable[[T], bool]

var ASYNC_FILTER_FUNC

  • 说明: 异步过滤函数

  • 类型: TypeAlias

  • 默认值: Callable[[T], Coroutine[Any, Any, bool]]

var FILTER_FUNC

  • 说明: 过滤函数

  • 类型: TypeAlias

  • 默认值: SYNC_FILTER_FUNC | ASYNC_FILTER_FUNC

class Channel(Generic[T])


func __init__(self, name: str, type_check: Optional[bool] = None)

说明: 初始化通道

参数:

  • name: 通道ID
  • type_check: 是否开启类型检查, 若为空,则传入泛型默认开启,否则默认关闭
源代码在GitHub上查看
python
def __init__(self, name: str, type_check: Optional[bool]=None):
+import{_ as i,c as a,a7 as n,o as e}from"./chunks/framework.jrU0lkHV.js";const c=JSON.parse('{"title":"liteyuki.comm.channel","description":"","frontmatter":{"title":"liteyuki.comm.channel"},"headers":[],"relativePath":"dev/api/comm/channel.md","filePath":"zh/dev/api/comm/channel.md","lastUpdated":null}'),l={name:"dev/api/comm/channel.md"};function t(h,s,k,p,r,d){return e(),a("div",null,s[0]||(s[0]=[n(`

模块 liteyuki.comm.channel

本模块定义了一个通用的通道类,用于进程间通信

var SYNC_ON_RECEIVE_FUNC

  • 说明: 同步接收函数

  • 类型: TypeAlias

  • 默认值: Callable[[T], Any]

var ON_RECEIVE_FUNC

  • 说明: 接收函数

  • 类型: TypeAlias

  • 默认值: SYNC_ON_RECEIVE_FUNC | ASYNC_ON_RECEIVE_FUNC

var SYNC_FILTER_FUNC

  • 说明: 同步过滤函数

  • 类型: TypeAlias

  • 默认值: Callable[[T], bool]

var ASYNC_FILTER_FUNC

  • 说明: 异步过滤函数

  • 类型: TypeAlias

  • 默认值: Callable[[T], Coroutine[Any, Any, bool]]

var FILTER_FUNC

  • 说明: 过滤函数

  • 类型: TypeAlias

  • 默认值: SYNC_FILTER_FUNC | ASYNC_FILTER_FUNC

class Channel(Generic[T])


func __init__(self, name: str, type_check: Optional[bool] = None)

说明: 初始化通道

参数:

  • name: 通道ID
  • type_check: 是否开启类型检查, 若为空,则传入泛型默认开启,否则默认关闭
源代码在GitHub上查看
python
def __init__(self, name: str, type_check: Optional[bool]=None):
     self.conn_send, self.conn_recv = Pipe()
     self._conn_send_inner, self._conn_recv_inner = Pipe()
     self._closed = False
@@ -91,4 +91,4 @@ import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const o
     recv_chan.send(get_channel(name))

@channel_deliver_passive_channel.on_receive(filter_func=lambda data: data[0] == 'get_channels')

func on_get_channels(data: tuple[str, dict[str, Any]])

源代码在GitHub上查看
python
@channel_deliver_passive_channel.on_receive(filter_func=lambda data: data[0] == 'get_channels')
 def on_get_channels(data: tuple[str, dict[str, Any]]):
     recv_chan = data[1]['recv_chan']
-    recv_chan.send(get_channels())
`,86),t=[l];function h(k,p,r,d,E,c){return a(),i("div",null,t)}const y=s(e,[["render",h]]);export{o as __pageData,y as default}; + recv_chan.send(get_channels())
`,86)]))}const g=i(l,[["render",t]]);export{c as __pageData,g as default}; diff --git a/assets/dev_api_comm_channel.md.CmpDD1vu.lean.js b/assets/dev_api_comm_channel.md.CmpDD1vu.lean.js new file mode 100644 index 00000000..d9f83842 --- /dev/null +++ b/assets/dev_api_comm_channel.md.CmpDD1vu.lean.js @@ -0,0 +1,94 @@ +import{_ as i,c as a,a7 as n,o as e}from"./chunks/framework.jrU0lkHV.js";const c=JSON.parse('{"title":"liteyuki.comm.channel","description":"","frontmatter":{"title":"liteyuki.comm.channel"},"headers":[],"relativePath":"dev/api/comm/channel.md","filePath":"zh/dev/api/comm/channel.md","lastUpdated":null}'),l={name:"dev/api/comm/channel.md"};function t(h,s,k,p,r,d){return e(),a("div",null,s[0]||(s[0]=[n(`

模块 liteyuki.comm.channel

本模块定义了一个通用的通道类,用于进程间通信

var SYNC_ON_RECEIVE_FUNC

  • 说明: 同步接收函数

  • 类型: TypeAlias

  • 默认值: Callable[[T], Any]

var ON_RECEIVE_FUNC

  • 说明: 接收函数

  • 类型: TypeAlias

  • 默认值: SYNC_ON_RECEIVE_FUNC | ASYNC_ON_RECEIVE_FUNC

var SYNC_FILTER_FUNC

  • 说明: 同步过滤函数

  • 类型: TypeAlias

  • 默认值: Callable[[T], bool]

var ASYNC_FILTER_FUNC

  • 说明: 异步过滤函数

  • 类型: TypeAlias

  • 默认值: Callable[[T], Coroutine[Any, Any, bool]]

var FILTER_FUNC

  • 说明: 过滤函数

  • 类型: TypeAlias

  • 默认值: SYNC_FILTER_FUNC | ASYNC_FILTER_FUNC

class Channel(Generic[T])


func __init__(self, name: str, type_check: Optional[bool] = None)

说明: 初始化通道

参数:

  • name: 通道ID
  • type_check: 是否开启类型检查, 若为空,则传入泛型默认开启,否则默认关闭
源代码在GitHub上查看
python
def __init__(self, name: str, type_check: Optional[bool]=None):
+    self.conn_send, self.conn_recv = Pipe()
+    self._conn_send_inner, self._conn_recv_inner = Pipe()
+    self._closed = False
+    self._on_main_receive_func_ids: list[int] = []
+    self._on_sub_receive_func_ids: list[int] = []
+    self.name: str = name
+    self.is_receive_loop_running = False
+    if type_check is None:
+        type_check = self._get_generic_type() is not None
+    elif type_check:
+        if self._get_generic_type() is None:
+            raise TypeError('Type hint is required for enforcing type check.')
+    self.type_check = type_check
+    if name in _channel:
+        raise ValueError(f'Channel {name} already exists')
+    if IS_MAIN_PROCESS:
+        if name in _channel:
+            raise ValueError(f'Channel {name} already exists')
+        _channel[name] = self
+        logger.debug(f'Channel {name} initialized in main process')
+    else:
+        logger.debug(f'Channel {name} initialized in sub process, should manually set in main process')

func send(self, data: T)

说明: 发送数据,发送函数为同步函数,没有异步的必要

参数:

  • data (T): 数据
源代码在GitHub上查看
python
def send(self, data: T):
+    if self.type_check:
+        _type = self._get_generic_type()
+        if _type is not None and (not self._validate_structure(data, _type)):
+            raise TypeError(f'Data must be an instance of {_type}, {type(data)} found')
+    if self._closed:
+        raise RuntimeError('Cannot send to a closed channel')
+    self.conn_send.send(data)

func receive(self) -> T

说明: 同步接收数据,会阻塞线程

返回: T: 数据

源代码在GitHub上查看
python
def receive(self) -> T:
+    if self._closed:
+        raise RuntimeError('Cannot receive from a closed channel')
+    while True:
+        data = self.conn_recv.recv()
+        return data

async func async_receive(self) -> T

说明: 异步接收数据,会挂起等待

返回: T: 数据

源代码在GitHub上查看
python
async def async_receive(self) -> T:
+    loop = asyncio.get_running_loop()
+    data = await loop.run_in_executor(None, self.receive)
+    return data

func on_receive(self, filter_func: Optional[FILTER_FUNC] = None) -> Callable[[Callable[[T], Any]], Callable[[T], Any]]

说明: 接收数据并执行函数

参数:

返回: Callable[[Callable[[T], Any]], Callable[[T], Any]]: 装饰器

源代码在GitHub上查看
python
def on_receive(self, filter_func: Optional[FILTER_FUNC]=None) -> Callable[[Callable[[T], Any]], Callable[[T], Any]]:
+    if not IS_MAIN_PROCESS:
+        raise RuntimeError('on_receive can only be used in main process')
+
+    def decorator(func: Callable[[T], Any]) -> Callable[[T], Any]:
+        global _func_id
+
+        async def wrapper(data: T) -> Any:
+            if filter_func is not None:
+                if is_coroutine_callable(filter_func):
+                    if not await filter_func(data):
+                        return
+                elif not filter_func(data):
+                    return
+            if is_coroutine_callable(func):
+                return await func(data)
+            else:
+                return func(data)
+        _callback_funcs[_func_id] = wrapper
+        if IS_MAIN_PROCESS:
+            self._on_main_receive_func_ids.append(_func_id)
+        else:
+            self._on_sub_receive_func_ids.append(_func_id)
+        _func_id += 1
+        return func
+    return decorator

var active_channel

  • 说明: 子进程可用的主动和被动通道

  • 类型: Channel

  • 默认值: Channel(name='active_channel')

var passive_channel

  • 说明: 被动通道

  • 类型: Channel

  • 默认值: Channel(name='passive_channel')

var channel_deliver_active_channel

  • 说明: 通道传递通道,主进程创建单例,子进程初始化时实例化

  • 类型: Channel[Channel[Any]]

  • 默认值: NO_DEFAULT

var channel_deliver_passive_channel

  • 说明: 被动通道传递通道

  • 类型: Channel[tuple[str, dict[str, Any]]]

  • 默认值: NO_DEFAULT


func set_channel(name: str, channel: Channel)

说明: 设置通道实例

参数:

  • name (str): 通道名称
  • channel (Channel): 通道实例
源代码在GitHub上查看
python
def set_channel(name: str, channel: 'Channel'):
+    if not isinstance(channel, Channel):
+        raise TypeError(f'channel_ must be an instance of Channel, {type(channel)} found')
+    if IS_MAIN_PROCESS:
+        if name in _channel:
+            raise ValueError(f'Channel {name} already exists')
+        _channel[name] = channel
+    else:
+        channel_deliver_passive_channel.send(('set_channel', {'name': name, 'channel_': channel}))

func set_channels(channels: dict[str, Channel])

说明: 设置通道实例

参数:

源代码在GitHub上查看
python
def set_channels(channels: dict[str, 'Channel']):
+    for name, channel in channels.items():
+        set_channel(name, channel)

func get_channel(name: str) -> Channel

说明: 获取通道实例

参数:

  • name (str): 通道名称

返回: Channel: 通道实例

源代码在GitHub上查看
python
def get_channel(name: str) -> 'Channel':
+    if IS_MAIN_PROCESS:
+        return _channel[name]
+    else:
+        recv_chan = Channel[Channel[Any]]('recv_chan')
+        channel_deliver_passive_channel.send(('get_channel', {'name': name, 'recv_chan': recv_chan}))
+        return recv_chan.receive()

func get_channels() -> dict[str, Channel]

说明: 获取通道实例们

返回: dict[str, Channel]: 通道实例

源代码在GitHub上查看
python
def get_channels() -> dict[str, 'Channel']:
+    if IS_MAIN_PROCESS:
+        return _channel
+    else:
+        recv_chan = Channel[dict[str, Channel[Any]]]('recv_chan')
+        channel_deliver_passive_channel.send(('get_channels', {'recv_chan': recv_chan}))
+        return recv_chan.receive()

@channel_deliver_passive_channel.on_receive(filter_func=lambda data: data[0] == 'set_channel')

func on_set_channel(data: tuple[str, dict[str, Any]])

源代码在GitHub上查看
python
@channel_deliver_passive_channel.on_receive(filter_func=lambda data: data[0] == 'set_channel')
+def on_set_channel(data: tuple[str, dict[str, Any]]):
+    name, channel = (data[1]['name'], data[1]['channel_'])
+    set_channel(name, channel)

@channel_deliver_passive_channel.on_receive(filter_func=lambda data: data[0] == 'get_channel')

func on_get_channel(data: tuple[str, dict[str, Any]])

源代码在GitHub上查看
python
@channel_deliver_passive_channel.on_receive(filter_func=lambda data: data[0] == 'get_channel')
+def on_get_channel(data: tuple[str, dict[str, Any]]):
+    name, recv_chan = (data[1]['name'], data[1]['recv_chan'])
+    recv_chan.send(get_channel(name))

@channel_deliver_passive_channel.on_receive(filter_func=lambda data: data[0] == 'get_channels')

func on_get_channels(data: tuple[str, dict[str, Any]])

源代码在GitHub上查看
python
@channel_deliver_passive_channel.on_receive(filter_func=lambda data: data[0] == 'get_channels')
+def on_get_channels(data: tuple[str, dict[str, Any]]):
+    recv_chan = data[1]['recv_chan']
+    recv_chan.send(get_channels())
`,86)]))}const g=i(l,[["render",t]]);export{c as __pageData,g as default}; diff --git a/assets/dev_api_comm_channel.md.EvJIM00r.lean.js b/assets/dev_api_comm_channel.md.EvJIM00r.lean.js deleted file mode 100644 index 326d91e4..00000000 --- a/assets/dev_api_comm_channel.md.EvJIM00r.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const o=JSON.parse('{"title":"liteyuki.comm.channel","description":"","frontmatter":{"title":"liteyuki.comm.channel"},"headers":[],"relativePath":"dev/api/comm/channel.md","filePath":"zh/dev/api/comm/channel.md","lastUpdated":null}'),e={name:"dev/api/comm/channel.md"},l=n("",86),t=[l];function h(k,p,r,d,E,c){return a(),i("div",null,t)}const y=s(e,[["render",h]]);export{o as __pageData,y as default}; diff --git a/assets/dev_api_comm_event.md.DE0D5mOI.js b/assets/dev_api_comm_event.md.DE0D5mOI.js new file mode 100644 index 00000000..cac5a396 --- /dev/null +++ b/assets/dev_api_comm_event.md.DE0D5mOI.js @@ -0,0 +1 @@ +import{_ as s,c as t,a7 as i,o as e}from"./chunks/framework.jrU0lkHV.js";const c=JSON.parse('{"title":"liteyuki.comm.event","description":"","frontmatter":{"title":"liteyuki.comm.event"},"headers":[],"relativePath":"dev/api/comm/event.md","filePath":"zh/dev/api/comm/event.md","lastUpdated":null}'),n={name:"dev/api/comm/event.md"};function l(h,a,r,d,p,o){return e(),t("div",null,a[0]||(a[0]=[i('

模块 liteyuki.comm.event

本模块用于轻雪主进程和子进程之间的通信的事件类

class Event


func __init__(self, name: str, data: dict[str, Any])

源代码在GitHub上查看
python
def __init__(self, name: str, data: dict[str, Any]):\n    self.name = name\n    self.data = data
',6)]))}const m=s(n,[["render",l]]);export{c as __pageData,m as default}; diff --git a/assets/dev_api_comm_event.md.DE0D5mOI.lean.js b/assets/dev_api_comm_event.md.DE0D5mOI.lean.js new file mode 100644 index 00000000..cac5a396 --- /dev/null +++ b/assets/dev_api_comm_event.md.DE0D5mOI.lean.js @@ -0,0 +1 @@ +import{_ as s,c as t,a7 as i,o as e}from"./chunks/framework.jrU0lkHV.js";const c=JSON.parse('{"title":"liteyuki.comm.event","description":"","frontmatter":{"title":"liteyuki.comm.event"},"headers":[],"relativePath":"dev/api/comm/event.md","filePath":"zh/dev/api/comm/event.md","lastUpdated":null}'),n={name:"dev/api/comm/event.md"};function l(h,a,r,d,p,o){return e(),t("div",null,a[0]||(a[0]=[i('

模块 liteyuki.comm.event

本模块用于轻雪主进程和子进程之间的通信的事件类

class Event


func __init__(self, name: str, data: dict[str, Any])

源代码在GitHub上查看
python
def __init__(self, name: str, data: dict[str, Any]):\n    self.name = name\n    self.data = data
',6)]))}const m=s(n,[["render",l]]);export{c as __pageData,m as default}; diff --git a/assets/dev_api_comm_event.md.Dkw9vL8j.js b/assets/dev_api_comm_event.md.Dkw9vL8j.js deleted file mode 100644 index 1a220884..00000000 --- a/assets/dev_api_comm_event.md.Dkw9vL8j.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as s,c as a,o as t,a9 as i}from"./chunks/framework.C4_mTacX.js";const _=JSON.parse('{"title":"liteyuki.comm.event","description":"","frontmatter":{"title":"liteyuki.comm.event"},"headers":[],"relativePath":"dev/api/comm/event.md","filePath":"zh/dev/api/comm/event.md","lastUpdated":null}'),e={name:"dev/api/comm/event.md"},n=i('

模块 liteyuki.comm.event

本模块用于轻雪主进程和子进程之间的通信的事件类

class Event


func __init__(self, name: str, data: dict[str, Any])

源代码在GitHub上查看
python
def __init__(self, name: str, data: dict[str, Any]):\n    self.name = name\n    self.data = data
',6),l=[n];function h(r,d,o,c,p,k){return t(),a("div",null,l)}const y=s(e,[["render",h]]);export{_ as __pageData,y as default}; diff --git a/assets/dev_api_comm_event.md.Dkw9vL8j.lean.js b/assets/dev_api_comm_event.md.Dkw9vL8j.lean.js deleted file mode 100644 index cc54bf88..00000000 --- a/assets/dev_api_comm_event.md.Dkw9vL8j.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as s,c as a,o as t,a9 as i}from"./chunks/framework.C4_mTacX.js";const _=JSON.parse('{"title":"liteyuki.comm.event","description":"","frontmatter":{"title":"liteyuki.comm.event"},"headers":[],"relativePath":"dev/api/comm/event.md","filePath":"zh/dev/api/comm/event.md","lastUpdated":null}'),e={name:"dev/api/comm/event.md"},n=i("",6),l=[n];function h(r,d,o,c,p,k){return t(),a("div",null,l)}const y=s(e,[["render",h]]);export{_ as __pageData,y as default}; diff --git a/assets/dev_api_comm_index.md.BubSUNVe.js b/assets/dev_api_comm_index.md.BubSUNVe.js deleted file mode 100644 index 74da66f8..00000000 --- a/assets/dev_api_comm_index.md.BubSUNVe.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as a,c as o,o as i,j as e,a as t}from"./chunks/framework.C4_mTacX.js";const k=JSON.parse('{"title":"liteyuki.comm","description":"","frontmatter":{"title":"liteyuki.comm","collapsed":true},"headers":[],"relativePath":"dev/api/comm/index.md","filePath":"zh/dev/api/comm/index.md","lastUpdated":null}'),n={name:"dev/api/comm/index.md"},c=e("h1",{id:"模块-liteyuki-comm",tabindex:"-1"},[e("strong",null,"模块"),t(),e("code",null,"liteyuki.comm"),t(),e("a",{class:"header-anchor",href:"#模块-liteyuki-comm","aria-label":'Permalink to "**模块** `liteyuki.comm`"'},"​")],-1),l=e("p",null,"该模块用于轻雪主进程和Nonebot子进程之间的通信 依赖关系 event -> _ storage -> channel_ rpc -> channel_, storage",-1),s=[c,l];function r(d,m,_,p,u,h){return i(),o("div",null,s)}const x=a(n,[["render",r]]);export{k as __pageData,x as default}; diff --git a/assets/dev_api_comm_index.md.BubSUNVe.lean.js b/assets/dev_api_comm_index.md.BubSUNVe.lean.js deleted file mode 100644 index 74da66f8..00000000 --- a/assets/dev_api_comm_index.md.BubSUNVe.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as a,c as o,o as i,j as e,a as t}from"./chunks/framework.C4_mTacX.js";const k=JSON.parse('{"title":"liteyuki.comm","description":"","frontmatter":{"title":"liteyuki.comm","collapsed":true},"headers":[],"relativePath":"dev/api/comm/index.md","filePath":"zh/dev/api/comm/index.md","lastUpdated":null}'),n={name:"dev/api/comm/index.md"},c=e("h1",{id:"模块-liteyuki-comm",tabindex:"-1"},[e("strong",null,"模块"),t(),e("code",null,"liteyuki.comm"),t(),e("a",{class:"header-anchor",href:"#模块-liteyuki-comm","aria-label":'Permalink to "**模块** `liteyuki.comm`"'},"​")],-1),l=e("p",null,"该模块用于轻雪主进程和Nonebot子进程之间的通信 依赖关系 event -> _ storage -> channel_ rpc -> channel_, storage",-1),s=[c,l];function r(d,m,_,p,u,h){return i(),o("div",null,s)}const x=a(n,[["render",r]]);export{k as __pageData,x as default}; diff --git a/assets/dev_api_comm_index.md.D0UYHib5.js b/assets/dev_api_comm_index.md.D0UYHib5.js new file mode 100644 index 00000000..8d5c4da2 --- /dev/null +++ b/assets/dev_api_comm_index.md.D0UYHib5.js @@ -0,0 +1 @@ +import{_ as o,c as i,j as e,a,o as n}from"./chunks/framework.jrU0lkHV.js";const _=JSON.parse('{"title":"liteyuki.comm","description":"","frontmatter":{"title":"liteyuki.comm","collapsed":true},"headers":[],"relativePath":"dev/api/comm/index.md","filePath":"zh/dev/api/comm/index.md","lastUpdated":null}'),l={name:"dev/api/comm/index.md"};function r(c,t,m,d,s,p){return n(),i("div",null,t[0]||(t[0]=[e("h1",{id:"模块-liteyuki-comm",tabindex:"-1"},[e("strong",null,"模块"),a(),e("code",null,"liteyuki.comm"),a(),e("a",{class:"header-anchor",href:"#模块-liteyuki-comm","aria-label":'Permalink to "**模块** `liteyuki.comm`"'},"​")],-1),e("p",null,"该模块用于轻雪主进程和Nonebot子进程之间的通信 依赖关系 event -> _ storage -> channel_ rpc -> channel_, storage",-1)]))}const f=o(l,[["render",r]]);export{_ as __pageData,f as default}; diff --git a/assets/dev_api_comm_index.md.D0UYHib5.lean.js b/assets/dev_api_comm_index.md.D0UYHib5.lean.js new file mode 100644 index 00000000..8d5c4da2 --- /dev/null +++ b/assets/dev_api_comm_index.md.D0UYHib5.lean.js @@ -0,0 +1 @@ +import{_ as o,c as i,j as e,a,o as n}from"./chunks/framework.jrU0lkHV.js";const _=JSON.parse('{"title":"liteyuki.comm","description":"","frontmatter":{"title":"liteyuki.comm","collapsed":true},"headers":[],"relativePath":"dev/api/comm/index.md","filePath":"zh/dev/api/comm/index.md","lastUpdated":null}'),l={name:"dev/api/comm/index.md"};function r(c,t,m,d,s,p){return n(),i("div",null,t[0]||(t[0]=[e("h1",{id:"模块-liteyuki-comm",tabindex:"-1"},[e("strong",null,"模块"),a(),e("code",null,"liteyuki.comm"),a(),e("a",{class:"header-anchor",href:"#模块-liteyuki-comm","aria-label":'Permalink to "**模块** `liteyuki.comm`"'},"​")],-1),e("p",null,"该模块用于轻雪主进程和Nonebot子进程之间的通信 依赖关系 event -> _ storage -> channel_ rpc -> channel_, storage",-1)]))}const f=o(l,[["render",r]]);export{_ as __pageData,f as default}; diff --git a/assets/dev_api_comm_socks_channel.md.D0z-3box.js b/assets/dev_api_comm_socks_channel.md.D0z-3box.js deleted file mode 100644 index df439427..00000000 --- a/assets/dev_api_comm_socks_channel.md.D0z-3box.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as s,c as a,o as i,a9 as e}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"liteyuki.comm.socks_channel","description":"","frontmatter":{"title":"liteyuki.comm.socks_channel"},"headers":[],"relativePath":"dev/api/comm/socks_channel.md","filePath":"zh/dev/api/comm/socks_channel.md","lastUpdated":null}'),t={name:"dev/api/comm/socks_channel.md"},n=e('

模块 liteyuki.comm.socks_channel

基于socket的通道

class SocksChannel


func __init__(self, name: str)

说明: 初始化通道

参数:

  • name: 通道ID
源代码在GitHub上查看
python
def __init__(self, name: str):\n    self._name = name\n    self._conn_send = None\n    self._conn_recv = None\n    self._closed = False

func send(self, data)

说明: 发送数据

参数:

  • data: 数据
源代码在GitHub上查看
python
def send(self, data):\n    pass

func receive(self)

说明: 接收数据

返回: data: 数据

源代码在GitHub上查看
python
def receive(self):\n    pass

func close(self)

说明: 关闭通道

源代码在GitHub上查看
python
def close(self):\n    pass
',24),l=[n];function h(o,c,p,k,r,d){return i(),a("div",null,l)}const m=s(t,[["render",h]]);export{g as __pageData,m as default}; diff --git a/assets/dev_api_comm_socks_channel.md.D0z-3box.lean.js b/assets/dev_api_comm_socks_channel.md.D0z-3box.lean.js deleted file mode 100644 index 272bbf75..00000000 --- a/assets/dev_api_comm_socks_channel.md.D0z-3box.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as s,c as a,o as i,a9 as e}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"liteyuki.comm.socks_channel","description":"","frontmatter":{"title":"liteyuki.comm.socks_channel"},"headers":[],"relativePath":"dev/api/comm/socks_channel.md","filePath":"zh/dev/api/comm/socks_channel.md","lastUpdated":null}'),t={name:"dev/api/comm/socks_channel.md"},n=e("",24),l=[n];function h(o,c,p,k,r,d){return i(),a("div",null,l)}const m=s(t,[["render",h]]);export{g as __pageData,m as default}; diff --git a/assets/dev_api_comm_storage.md.DlCQ-bAW.js b/assets/dev_api_comm_storage.md.BpVehScg.js similarity index 94% rename from assets/dev_api_comm_storage.md.DlCQ-bAW.js rename to assets/dev_api_comm_storage.md.BpVehScg.js index 7695ef8e..533fcea8 100644 --- a/assets/dev_api_comm_storage.md.DlCQ-bAW.js +++ b/assets/dev_api_comm_storage.md.BpVehScg.js @@ -1,4 +1,4 @@ -import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const y=JSON.parse('{"title":"liteyuki.comm.storage","description":"","frontmatter":{"title":"liteyuki.comm.storage"},"headers":[],"relativePath":"dev/api/comm/storage.md","filePath":"zh/dev/api/comm/storage.md","lastUpdated":null}'),t={name:"dev/api/comm/storage.md"},e=n(`

模块 liteyuki.comm.storage

共享内存模块。类似于redis,但是更加轻量级并且线程安全

var _on_main_subscriber_receive_funcs

  • 说明: 主进程订阅者接收函数

  • 类型: dict[str, list[ASYNC_ON_RECEIVE_FUNC]]

  • 默认值: {}

var _on_sub_subscriber_receive_funcs

  • 说明: 子进程订阅者接收函数

  • 类型: dict[str, list[ASYNC_ON_RECEIVE_FUNC]]

  • 默认值: {}

class KeyValueStore


func __init__(self)

源代码在GitHub上查看
python
def __init__(self):
+import{_ as i,c as a,a7 as n,o as t}from"./chunks/framework.jrU0lkHV.js";const g=JSON.parse('{"title":"liteyuki.comm.storage","description":"","frontmatter":{"title":"liteyuki.comm.storage"},"headers":[],"relativePath":"dev/api/comm/storage.md","filePath":"zh/dev/api/comm/storage.md","lastUpdated":null}'),e={name:"dev/api/comm/storage.md"};function h(l,s,k,p,r,d){return t(),a("div",null,s[0]||(s[0]=[n(`

模块 liteyuki.comm.storage

共享内存模块。类似于redis,但是更加轻量级并且线程安全

var _on_main_subscriber_receive_funcs

  • 说明: 主进程订阅者接收函数

  • 类型: dict[str, list[ASYNC_ON_RECEIVE_FUNC]]

  • 默认值: {}

var _on_sub_subscriber_receive_funcs

  • 说明: 子进程订阅者接收函数

  • 类型: dict[str, list[ASYNC_ON_RECEIVE_FUNC]]

  • 默认值: {}

class KeyValueStore


func __init__(self)

源代码在GitHub上查看
python
def __init__(self):
     self._store = {}
     self.active_chan = Channel[tuple[str, Optional[dict[str, Any]]]](name='shared_memory-active')
     self.passive_chan = Channel[tuple[str, Optional[dict[str, Any]]]](name='shared_memory-passive')
@@ -87,4 +87,4 @@ import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const y
     shared_memory.delete(key)

@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'get_all')

func on_get_all(data: tuple[str, dict[str, Any]])

源代码在GitHub上查看
python
@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'get_all')
 def on_get_all(data: tuple[str, dict[str, Any]]):
     recv_chan = data[1]['recv_chan']
-    recv_chan.send(shared_memory.get_all())
`,85),h=[e];function l(k,p,r,d,E,g){return a(),i("div",null,h)}const c=s(t,[["render",l]]);export{y as __pageData,c as default}; + recv_chan.send(shared_memory.get_all())
`,85)]))}const y=i(e,[["render",h]]);export{g as __pageData,y as default}; diff --git a/assets/dev_api_comm_storage.md.BpVehScg.lean.js b/assets/dev_api_comm_storage.md.BpVehScg.lean.js new file mode 100644 index 00000000..533fcea8 --- /dev/null +++ b/assets/dev_api_comm_storage.md.BpVehScg.lean.js @@ -0,0 +1,90 @@ +import{_ as i,c as a,a7 as n,o as t}from"./chunks/framework.jrU0lkHV.js";const g=JSON.parse('{"title":"liteyuki.comm.storage","description":"","frontmatter":{"title":"liteyuki.comm.storage"},"headers":[],"relativePath":"dev/api/comm/storage.md","filePath":"zh/dev/api/comm/storage.md","lastUpdated":null}'),e={name:"dev/api/comm/storage.md"};function h(l,s,k,p,r,d){return t(),a("div",null,s[0]||(s[0]=[n(`

模块 liteyuki.comm.storage

共享内存模块。类似于redis,但是更加轻量级并且线程安全

var _on_main_subscriber_receive_funcs

  • 说明: 主进程订阅者接收函数

  • 类型: dict[str, list[ASYNC_ON_RECEIVE_FUNC]]

  • 默认值: {}

var _on_sub_subscriber_receive_funcs

  • 说明: 子进程订阅者接收函数

  • 类型: dict[str, list[ASYNC_ON_RECEIVE_FUNC]]

  • 默认值: {}

class KeyValueStore


func __init__(self)

源代码在GitHub上查看
python
def __init__(self):
+    self._store = {}
+    self.active_chan = Channel[tuple[str, Optional[dict[str, Any]]]](name='shared_memory-active')
+    self.passive_chan = Channel[tuple[str, Optional[dict[str, Any]]]](name='shared_memory-passive')
+    self.publish_channel = Channel[tuple[str, Any]](name='shared_memory-publish')
+    self.is_main_receive_loop_running = False
+    self.is_sub_receive_loop_running = False

func set(self, key: str, value: Any) -> None

说明: 设置键值对

参数:

  • key: 键
  • value: 值
源代码在GitHub上查看
python
def set(self, key: str, value: Any) -> None:
+    if IS_MAIN_PROCESS:
+        lock = _get_lock(key)
+        with lock:
+            self._store[key] = value
+    else:
+        self.passive_chan.send(('set', {'key': key, 'value': value}))

func get(self, key: str, default: Optional[Any] = None) -> Optional[Any]

说明: 获取键值对

参数:

  • key: 键
  • default: 默认值

返回: Any: 值

源代码在GitHub上查看
python
def get(self, key: str, default: Optional[Any]=None) -> Optional[Any]:
+    if IS_MAIN_PROCESS:
+        lock = _get_lock(key)
+        with lock:
+            return self._store.get(key, default)
+    else:
+        recv_chan = Channel[Optional[Any]]('recv_chan')
+        self.passive_chan.send(('get', {'key': key, 'default': default, 'recv_chan': recv_chan}))
+        return recv_chan.receive()

func delete(self, key: str, ignore_key_error: bool = True) -> None

说明: 删除键值对

参数:

  • key: 键
  • ignore_key_error: 是否忽略键不存在的错误
源代码在GitHub上查看
python
def delete(self, key: str, ignore_key_error: bool=True) -> None:
+    if IS_MAIN_PROCESS:
+        lock = _get_lock(key)
+        with lock:
+            if key in self._store:
+                try:
+                    del self._store[key]
+                    del _locks[key]
+                except KeyError as e:
+                    if not ignore_key_error:
+                        raise e
+    else:
+        self.passive_chan.send(('delete', {'key': key}))

func get_all(self) -> dict[str, Any]

说明: 获取所有键值对

返回: dict[str, Any]: 键值对

源代码在GitHub上查看
python
def get_all(self) -> dict[str, Any]:
+    if IS_MAIN_PROCESS:
+        return self._store
+    else:
+        recv_chan = Channel[dict[str, Any]]('recv_chan')
+        self.passive_chan.send(('get_all', {'recv_chan': recv_chan}))
+        return recv_chan.receive()

func publish(self, channel_: str, data: Any) -> None

说明: 发布消息

参数:

  • channel_: 频道
  • data: 数据
源代码在GitHub上查看
python
def publish(self, channel_: str, data: Any) -> None:
+    self.active_chan.send(('publish', {'channel': channel_, 'data': data}))

func on_subscriber_receive(self, channel_: str) -> Callable[[ON_RECEIVE_FUNC], ON_RECEIVE_FUNC]

说明: 订阅者接收消息时的回调

参数:

  • channel_: 频道

返回: 装饰器

源代码在GitHub上查看
python
def on_subscriber_receive(self, channel_: str) -> Callable[[ON_RECEIVE_FUNC], ON_RECEIVE_FUNC]:
+    if not IS_MAIN_PROCESS:
+        raise RuntimeError('Cannot subscribe in sub process.')
+
+    def decorator(func: ON_RECEIVE_FUNC) -> ON_RECEIVE_FUNC:
+
+        async def wrapper(data: Any):
+            if is_coroutine_callable(func):
+                await func(data)
+            else:
+                func(data)
+        if IS_MAIN_PROCESS:
+            if channel_ not in _on_main_subscriber_receive_funcs:
+                _on_main_subscriber_receive_funcs[channel_] = []
+            _on_main_subscriber_receive_funcs[channel_].append(wrapper)
+        else:
+            if channel_ not in _on_sub_subscriber_receive_funcs:
+                _on_sub_subscriber_receive_funcs[channel_] = []
+            _on_sub_subscriber_receive_funcs[channel_].append(wrapper)
+        return wrapper
+    return decorator

@staticmethod

async func run_subscriber_receive_funcs(channel_: str, data: Any)

说明: 运行订阅者接收函数

参数:

  • channel_: 频道
  • data: 数据
源代码在GitHub上查看
python
@staticmethod
+async def run_subscriber_receive_funcs(channel_: str, data: Any):
+    [asyncio.create_task(func(data)) for func in _on_main_subscriber_receive_funcs[channel_]]

async func start_receive_loop(self)

说明: 启动发布订阅接收器循环,在主进程中运行,若有子进程订阅则推送给子进程

源代码在GitHub上查看
python
async def start_receive_loop(self):
+    if not IS_MAIN_PROCESS:
+        raise RuntimeError('Cannot start receive loop in sub process.')
+    while True:
+        data = await self.active_chan.async_receive()
+        if data[0] == 'publish':
+            await self.run_subscriber_receive_funcs(data[1]['channel'], data[1]['data'])
+            self.publish_channel.send(data)

class GlobalKeyValueStore


@classmethod

func get_instance(cls)

源代码在GitHub上查看
python
@classmethod
+def get_instance(cls):
+    if cls._instance is None:
+        with cls._lock:
+            if cls._instance is None:
+                cls._instance = KeyValueStore()
+    return cls._instance

attr _instance = None

attr _lock = threading.Lock()

var shared_memory

  • 说明: 共享内存对象

  • 类型: KeyValueStore

  • 默认值: GlobalKeyValueStore.get_instance()

var _ref_count

  • 说明: import 引用计数, 防止获取空指针

  • 默认值: 0


@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'get')

func on_get(data: tuple[str, dict[str, Any]])

源代码在GitHub上查看
python
@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'get')
+def on_get(data: tuple[str, dict[str, Any]]):
+    key = data[1]['key']
+    default = data[1]['default']
+    recv_chan = data[1]['recv_chan']
+    recv_chan.send(shared_memory.get(key, default))

@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'set')

func on_set(data: tuple[str, dict[str, Any]])

源代码在GitHub上查看
python
@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'set')
+def on_set(data: tuple[str, dict[str, Any]]):
+    key = data[1]['key']
+    value = data[1]['value']
+    shared_memory.set(key, value)

@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'delete')

func on_delete(data: tuple[str, dict[str, Any]])

源代码在GitHub上查看
python
@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'delete')
+def on_delete(data: tuple[str, dict[str, Any]]):
+    key = data[1]['key']
+    shared_memory.delete(key)

@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'get_all')

func on_get_all(data: tuple[str, dict[str, Any]])

源代码在GitHub上查看
python
@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'get_all')
+def on_get_all(data: tuple[str, dict[str, Any]]):
+    recv_chan = data[1]['recv_chan']
+    recv_chan.send(shared_memory.get_all())
`,85)]))}const y=i(e,[["render",h]]);export{g as __pageData,y as default}; diff --git a/assets/dev_api_comm_storage.md.DlCQ-bAW.lean.js b/assets/dev_api_comm_storage.md.DlCQ-bAW.lean.js deleted file mode 100644 index 5778f7d6..00000000 --- a/assets/dev_api_comm_storage.md.DlCQ-bAW.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const y=JSON.parse('{"title":"liteyuki.comm.storage","description":"","frontmatter":{"title":"liteyuki.comm.storage"},"headers":[],"relativePath":"dev/api/comm/storage.md","filePath":"zh/dev/api/comm/storage.md","lastUpdated":null}'),t={name:"dev/api/comm/storage.md"},e=n("",85),h=[e];function l(k,p,r,d,E,g){return a(),i("div",null,h)}const c=s(t,[["render",l]]);export{y as __pageData,c as default}; diff --git a/assets/dev_api_config.md.BWciqFj4.lean.js b/assets/dev_api_config.md.BWciqFj4.lean.js deleted file mode 100644 index b8f1786c..00000000 --- a/assets/dev_api_config.md.BWciqFj4.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as s,c as a,o as n,a9 as i,j as t}from"./chunks/framework.C4_mTacX.js";const f=JSON.parse('{"title":"liteyuki.config","description":"","frontmatter":{"title":"liteyuki.config"},"headers":[],"relativePath":"dev/api/config.md","filePath":"zh/dev/api/config.md","lastUpdated":null}'),h={name:"dev/api/config.md"},l=i("",6),k=t("p",{"a.b.c:":"",1:""},"{a:{b:{c:1}}} ->",-1),p=i("",28),e=[l,k,p];function r(d,E,g,o,y,c){return n(),a("div",null,e)}const u=s(h,[["render",r]]);export{f as __pageData,u as default}; diff --git a/assets/dev_api_config.md.BWciqFj4.js b/assets/dev_api_config.md.Cho6yGha.js similarity index 91% rename from assets/dev_api_config.md.BWciqFj4.js rename to assets/dev_api_config.md.Cho6yGha.js index 530be8e2..65f79b41 100644 --- a/assets/dev_api_config.md.BWciqFj4.js +++ b/assets/dev_api_config.md.Cho6yGha.js @@ -1,4 +1,4 @@ -import{_ as s,c as a,o as n,a9 as i,j as t}from"./chunks/framework.C4_mTacX.js";const f=JSON.parse('{"title":"liteyuki.config","description":"","frontmatter":{"title":"liteyuki.config"},"headers":[],"relativePath":"dev/api/config.md","filePath":"zh/dev/api/config.md","lastUpdated":null}'),h={name:"dev/api/config.md"},l=i('

模块 liteyuki.config

该模块用于常用配置文件的加载 多配置文件编写原则:

  1. 尽量不要冲突: 一个键不要多次出现
  2. 分工明确: 每个配置文件给一个或一类服务提供配置
  3. 扁平化编写: 配置文件尽量扁平化,不要出现过多的嵌套
  4. 注意冲突时的优先级: 项目目录下的配置文件优先级高于config目录下的配置文件
  5. 请不要将需要动态加载的内容写入配置文件,你应该使用其他储存方式

func flat_config(config: dict[str, Any]) -> dict[str, Any]

说明: 扁平化配置文件

',6),k=t("p",{"a.b.c:":"",1:""},"{a:{b:{c:1}}} ->",-1),p=i(`

参数:

  • config: 配置项目

返回: 扁平化后的配置文件,但也包含原有的键值对

源代码在GitHub上查看
python
def flat_config(config: dict[str, Any]) -> dict[str, Any]:
+import{_ as a,c as n,a7 as s,j as t,o as h}from"./chunks/framework.jrU0lkHV.js";const o=JSON.parse('{"title":"liteyuki.config","description":"","frontmatter":{"title":"liteyuki.config"},"headers":[],"relativePath":"dev/api/config.md","filePath":"zh/dev/api/config.md","lastUpdated":null}'),l={name:"dev/api/config.md"};function k(p,i,e,r,d,E){return h(),n("div",null,i[0]||(i[0]=[s('

模块 liteyuki.config

该模块用于常用配置文件的加载 多配置文件编写原则:

  1. 尽量不要冲突: 一个键不要多次出现
  2. 分工明确: 每个配置文件给一个或一类服务提供配置
  3. 扁平化编写: 配置文件尽量扁平化,不要出现过多的嵌套
  4. 注意冲突时的优先级: 项目目录下的配置文件优先级高于config目录下的配置文件
  5. 请不要将需要动态加载的内容写入配置文件,你应该使用其他储存方式

func flat_config(config: dict[str, Any]) -> dict[str, Any]

说明: 扁平化配置文件

',6),t("p",{"a.b.c:":"",1:""},"{a:{b:{c:1}}} ->",-1),s(`

参数:

  • config: 配置项目

返回: 扁平化后的配置文件,但也包含原有的键值对

源代码在GitHub上查看
python
def flat_config(config: dict[str, Any]) -> dict[str, Any]:
     new_config = copy.deepcopy(config)
     for key, value in config.items():
         if isinstance(value, dict):
@@ -40,4 +40,4 @@ import{_ as s,c as a,o as n,a9 as i,j as t}from"./chunks/framework.C4_mTacX.js";
     return config

func load_config_in_default(no_waring: bool = False) -> dict[str, Any]

说明: 从一个标准的轻雪项目加载配置文件 项目目录下的config.*和config目录下的所有配置文件 项目目录下的配置文件优先

源代码在GitHub上查看
python
def load_config_in_default(no_waring: bool=False) -> dict[str, Any]:
     config = load_configs_from_dirs('config', no_waring=no_waring)
     config.update(load_from_files('config.yaml', 'config.toml', 'config.json', 'config.yml', no_warning=no_waring))
-    return config
`,28),e=[l,k,p];function r(d,E,g,o,y,c){return n(),a("div",null,e)}const u=s(h,[["render",r]]);export{f as __pageData,u as default}; + return config
`,28)]))}const y=a(l,[["render",k]]);export{o as __pageData,y as default}; diff --git a/assets/dev_api_config.md.Cho6yGha.lean.js b/assets/dev_api_config.md.Cho6yGha.lean.js new file mode 100644 index 00000000..65f79b41 --- /dev/null +++ b/assets/dev_api_config.md.Cho6yGha.lean.js @@ -0,0 +1,43 @@ +import{_ as a,c as n,a7 as s,j as t,o as h}from"./chunks/framework.jrU0lkHV.js";const o=JSON.parse('{"title":"liteyuki.config","description":"","frontmatter":{"title":"liteyuki.config"},"headers":[],"relativePath":"dev/api/config.md","filePath":"zh/dev/api/config.md","lastUpdated":null}'),l={name:"dev/api/config.md"};function k(p,i,e,r,d,E){return h(),n("div",null,i[0]||(i[0]=[s('

模块 liteyuki.config

该模块用于常用配置文件的加载 多配置文件编写原则:

  1. 尽量不要冲突: 一个键不要多次出现
  2. 分工明确: 每个配置文件给一个或一类服务提供配置
  3. 扁平化编写: 配置文件尽量扁平化,不要出现过多的嵌套
  4. 注意冲突时的优先级: 项目目录下的配置文件优先级高于config目录下的配置文件
  5. 请不要将需要动态加载的内容写入配置文件,你应该使用其他储存方式

func flat_config(config: dict[str, Any]) -> dict[str, Any]

说明: 扁平化配置文件

',6),t("p",{"a.b.c:":"",1:""},"{a:{b:{c:1}}} ->",-1),s(`

参数:

  • config: 配置项目

返回: 扁平化后的配置文件,但也包含原有的键值对

源代码在GitHub上查看
python
def flat_config(config: dict[str, Any]) -> dict[str, Any]:
+    new_config = copy.deepcopy(config)
+    for key, value in config.items():
+        if isinstance(value, dict):
+            for k, v in flat_config(value).items():
+                new_config[f'{key}.{k}'] = v
+    return new_config

func load_from_yaml(file_: str) -> dict[str, Any]

说明: Load config from yaml file

源代码在GitHub上查看
python
def load_from_yaml(file_: str) -> dict[str, Any]:
+    logger.debug(f'Loading YAML config from {file_}')
+    config = yaml.safe_load(open(file_, 'r', encoding='utf-8'))
+    return flat_config(config if config is not None else {})

func load_from_json(file_: str) -> dict[str, Any]

说明: Load config from json file

源代码在GitHub上查看
python
def load_from_json(file_: str) -> dict[str, Any]:
+    logger.debug(f'Loading JSON config from {file_}')
+    config = json.load(open(file_, 'r', encoding='utf-8'))
+    return flat_config(config if config is not None else {})

func load_from_toml(file_: str) -> dict[str, Any]

说明: Load config from toml file

源代码在GitHub上查看
python
def load_from_toml(file_: str) -> dict[str, Any]:
+    logger.debug(f'Loading TOML config from {file_}')
+    config = toml.load(open(file_, 'r', encoding='utf-8'))
+    return flat_config(config if config is not None else {})

func load_from_files(*files: str, *, no_warning: bool = False) -> dict[str, Any]

说明: 从指定文件加载配置项,会自动识别文件格式 默认执行扁平化选项

源代码在GitHub上查看
python
def load_from_files(*files: str, no_warning: bool=False) -> dict[str, Any]:
+    config = {}
+    for file in files:
+        if os.path.exists(file):
+            if file.endswith(('.yaml', 'yml')):
+                config.update(load_from_yaml(file))
+            elif file.endswith('.json'):
+                config.update(load_from_json(file))
+            elif file.endswith('.toml'):
+                config.update(load_from_toml(file))
+            elif not no_warning:
+                logger.warning(f'Unsupported config file format: {file}')
+        elif not no_warning:
+            logger.warning(f'Config file not found: {file}')
+    return config

func load_configs_from_dirs(*directories: str, *, no_waring: bool = False) -> dict[str, Any]

说明: 从目录下加载配置文件,不递归 按照读取文件的优先级反向覆盖 默认执行扁平化选项

源代码在GitHub上查看
python
def load_configs_from_dirs(*directories: str, no_waring: bool=False) -> dict[str, Any]:
+    config = {}
+    for directory in directories:
+        if not os.path.exists(directory):
+            if not no_waring:
+                logger.warning(f'Directory not found: {directory}')
+            continue
+        for file in os.listdir(directory):
+            if file.endswith(_SUPPORTED_CONFIG_FORMATS):
+                config.update(load_from_files(os.path.join(directory, file), no_warning=no_waring))
+    return config

func load_config_in_default(no_waring: bool = False) -> dict[str, Any]

说明: 从一个标准的轻雪项目加载配置文件 项目目录下的config.*和config目录下的所有配置文件 项目目录下的配置文件优先

源代码在GitHub上查看
python
def load_config_in_default(no_waring: bool=False) -> dict[str, Any]:
+    config = load_configs_from_dirs('config', no_waring=no_waring)
+    config.update(load_from_files('config.yaml', 'config.toml', 'config.json', 'config.yml', no_warning=no_waring))
+    return config
`,28)]))}const y=a(l,[["render",k]]);export{o as __pageData,y as default}; diff --git a/assets/dev_api_core_index.md.B0E7Phf1.js b/assets/dev_api_core_index.md.B0E7Phf1.js deleted file mode 100644 index 8a5cf7f8..00000000 --- a/assets/dev_api_core_index.md.B0E7Phf1.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as a,c as o,o as i,j as e,a as t}from"./chunks/framework.C4_mTacX.js";const f=JSON.parse('{"title":"liteyuki.core","description":"","frontmatter":{"title":"liteyuki.core","collapsed":true},"headers":[],"relativePath":"dev/api/core/index.md","filePath":"zh/dev/api/core/index.md","lastUpdated":null}'),r={name:"dev/api/core/index.md"},c=e("h1",{id:"模块-liteyuki-core",tabindex:"-1"},[e("strong",null,"模块"),t(),e("code",null,"liteyuki.core"),t(),e("a",{class:"header-anchor",href:"#模块-liteyuki-core","aria-label":'Permalink to "**模块** `liteyuki.core`"'},"​")],-1),l=[c];function n(d,s,p,u,_,h){return i(),o("div",null,l)}const k=a(r,[["render",n]]);export{f as __pageData,k as default}; diff --git a/assets/dev_api_core_index.md.B0E7Phf1.lean.js b/assets/dev_api_core_index.md.B0E7Phf1.lean.js deleted file mode 100644 index 8a5cf7f8..00000000 --- a/assets/dev_api_core_index.md.B0E7Phf1.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as a,c as o,o as i,j as e,a as t}from"./chunks/framework.C4_mTacX.js";const f=JSON.parse('{"title":"liteyuki.core","description":"","frontmatter":{"title":"liteyuki.core","collapsed":true},"headers":[],"relativePath":"dev/api/core/index.md","filePath":"zh/dev/api/core/index.md","lastUpdated":null}'),r={name:"dev/api/core/index.md"},c=e("h1",{id:"模块-liteyuki-core",tabindex:"-1"},[e("strong",null,"模块"),t(),e("code",null,"liteyuki.core"),t(),e("a",{class:"header-anchor",href:"#模块-liteyuki-core","aria-label":'Permalink to "**模块** `liteyuki.core`"'},"​")],-1),l=[c];function n(d,s,p,u,_,h){return i(),o("div",null,l)}const k=a(r,[["render",n]]);export{f as __pageData,k as default}; diff --git a/assets/dev_api_core_index.md.BjvZyb-q.js b/assets/dev_api_core_index.md.BjvZyb-q.js new file mode 100644 index 00000000..9b75a16e --- /dev/null +++ b/assets/dev_api_core_index.md.BjvZyb-q.js @@ -0,0 +1 @@ +import{_ as r,c as i,j as e,a,o}from"./chunks/framework.jrU0lkHV.js";const f=JSON.parse('{"title":"liteyuki.core","description":"","frontmatter":{"title":"liteyuki.core","collapsed":true},"headers":[],"relativePath":"dev/api/core/index.md","filePath":"zh/dev/api/core/index.md","lastUpdated":null}'),l={name:"dev/api/core/index.md"};function n(c,t,d,s,p,u){return o(),i("div",null,t[0]||(t[0]=[e("h1",{id:"模块-liteyuki-core",tabindex:"-1"},[e("strong",null,"模块"),a(),e("code",null,"liteyuki.core"),a(),e("a",{class:"header-anchor",href:"#模块-liteyuki-core","aria-label":'Permalink to "**模块** `liteyuki.core`"'},"​")],-1)]))}const k=r(l,[["render",n]]);export{f as __pageData,k as default}; diff --git a/assets/dev_api_core_index.md.BjvZyb-q.lean.js b/assets/dev_api_core_index.md.BjvZyb-q.lean.js new file mode 100644 index 00000000..9b75a16e --- /dev/null +++ b/assets/dev_api_core_index.md.BjvZyb-q.lean.js @@ -0,0 +1 @@ +import{_ as r,c as i,j as e,a,o}from"./chunks/framework.jrU0lkHV.js";const f=JSON.parse('{"title":"liteyuki.core","description":"","frontmatter":{"title":"liteyuki.core","collapsed":true},"headers":[],"relativePath":"dev/api/core/index.md","filePath":"zh/dev/api/core/index.md","lastUpdated":null}'),l={name:"dev/api/core/index.md"};function n(c,t,d,s,p,u){return o(),i("div",null,t[0]||(t[0]=[e("h1",{id:"模块-liteyuki-core",tabindex:"-1"},[e("strong",null,"模块"),a(),e("code",null,"liteyuki.core"),a(),e("a",{class:"header-anchor",href:"#模块-liteyuki-core","aria-label":'Permalink to "**模块** `liteyuki.core`"'},"​")],-1)]))}const k=r(l,[["render",n]]);export{f as __pageData,k as default}; diff --git a/assets/dev_api_core_manager.md.CwENM4-V.js b/assets/dev_api_core_manager.md.BA-Ul5rJ.js similarity index 91% rename from assets/dev_api_core_manager.md.CwENM4-V.js rename to assets/dev_api_core_manager.md.BA-Ul5rJ.js index 32a0a0a0..615ecfb1 100644 --- a/assets/dev_api_core_manager.md.CwENM4-V.js +++ b/assets/dev_api_core_manager.md.BA-Ul5rJ.js @@ -1,4 +1,4 @@ -import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const c=JSON.parse('{"title":"liteyuki.core.manager","description":"","frontmatter":{"title":"liteyuki.core.manager"},"headers":[],"relativePath":"dev/api/core/manager.md","filePath":"zh/dev/api/core/manager.md","lastUpdated":null}'),e={name:"dev/api/core/manager.md"},t=n(`

模块 liteyuki.core.manager

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/27 上午11:12 @Author : snowykami @Email : snowykami@outlook.com @File : manager.py @Software: PyCharm

class ChannelDeliver


func __init__(self, active: Channel[Any], passive: Channel[Any], channel_deliver_active: Channel[Channel[Any]], channel_deliver_passive: Channel[tuple[str, dict]], publish: Channel[tuple[str, Any]])

源代码在GitHub上查看
python
def __init__(self, active: Channel[Any], passive: Channel[Any], channel_deliver_active: Channel[Channel[Any]], channel_deliver_passive: Channel[tuple[str, dict]], publish: Channel[tuple[str, Any]]):
+import{_ as i,c as a,a7 as n,o as e}from"./chunks/framework.jrU0lkHV.js";const E=JSON.parse('{"title":"liteyuki.core.manager","description":"","frontmatter":{"title":"liteyuki.core.manager"},"headers":[],"relativePath":"dev/api/core/manager.md","filePath":"zh/dev/api/core/manager.md","lastUpdated":null}'),t={name:"dev/api/core/manager.md"};function l(h,s,k,p,r,d){return e(),a("div",null,s[0]||(s[0]=[n(`

模块 liteyuki.core.manager

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/27 上午11:12 @Author : snowykami @Email : snowykami@outlook.com @File : manager.py @Software: PyCharm

class ChannelDeliver


func __init__(self, active: Channel[Any], passive: Channel[Any], channel_deliver_active: Channel[Channel[Any]], channel_deliver_passive: Channel[tuple[str, dict]], publish: Channel[tuple[str, Any]])

源代码在GitHub上查看
python
def __init__(self, active: Channel[Any], passive: Channel[Any], channel_deliver_active: Channel[Channel[Any]], channel_deliver_passive: Channel[tuple[str, dict]], publish: Channel[tuple[str, Any]]):
     self.active = active
     self.passive = passive
     self.channel_deliver_active = channel_deliver_active
@@ -43,4 +43,4 @@ import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const c
     self.processes[name].start()

func start_all(self)

说明: 启动所有子进程

源代码在GitHub上查看
python
def start_all(self):
     for name, process in self.processes.items():
         process.start()
-        logger.debug(f'Starting process {name}')
`,62),l=[t];function h(k,p,r,d,g,E){return a(),i("div",null,l)}const y=s(e,[["render",h]]);export{c as __pageData,y as default}; + logger.debug(f'Starting process {name}')
`,62)]))}const o=i(t,[["render",l]]);export{E as __pageData,o as default}; diff --git a/assets/dev_api_core_manager.md.BA-Ul5rJ.lean.js b/assets/dev_api_core_manager.md.BA-Ul5rJ.lean.js new file mode 100644 index 00000000..615ecfb1 --- /dev/null +++ b/assets/dev_api_core_manager.md.BA-Ul5rJ.lean.js @@ -0,0 +1,46 @@ +import{_ as i,c as a,a7 as n,o as e}from"./chunks/framework.jrU0lkHV.js";const E=JSON.parse('{"title":"liteyuki.core.manager","description":"","frontmatter":{"title":"liteyuki.core.manager"},"headers":[],"relativePath":"dev/api/core/manager.md","filePath":"zh/dev/api/core/manager.md","lastUpdated":null}'),t={name:"dev/api/core/manager.md"};function l(h,s,k,p,r,d){return e(),a("div",null,s[0]||(s[0]=[n(`

模块 liteyuki.core.manager

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/27 上午11:12 @Author : snowykami @Email : snowykami@outlook.com @File : manager.py @Software: PyCharm

class ChannelDeliver


func __init__(self, active: Channel[Any], passive: Channel[Any], channel_deliver_active: Channel[Channel[Any]], channel_deliver_passive: Channel[tuple[str, dict]], publish: Channel[tuple[str, Any]])

源代码在GitHub上查看
python
def __init__(self, active: Channel[Any], passive: Channel[Any], channel_deliver_active: Channel[Channel[Any]], channel_deliver_passive: Channel[tuple[str, dict]], publish: Channel[tuple[str, Any]]):
+    self.active = active
+    self.passive = passive
+    self.channel_deliver_active = channel_deliver_active
+    self.channel_deliver_passive = channel_deliver_passive
+    self.publish = publish

class ProcessManager


func __init__(self, lifespan: Lifespan)

源代码在GitHub上查看
python
def __init__(self, lifespan: 'Lifespan'):
+    self.lifespan = lifespan
+    self.targets: dict[str, tuple[Callable, tuple, dict]] = {}
+    self.processes: dict[str, Process] = {}

func start_all(self)

说明: 对外启动方法,启动所有进程,创建asyncio task

源代码在GitHub上查看
python
def start_all(self):
+    for name in self.targets:
+        logger.debug(f'Starting process {name}')
+        threading.Thread(target=self._run_process, args=(name,), daemon=True).start()

func add_target(self, name: str, target: TARGET_FUNC, args: tuple = (), kwargs = None)

说明: 添加进程

参数:

  • name: 进程名,用于获取和唯一标识
  • target: 进程函数
  • args: 进程函数参数
  • kwargs: 进程函数关键字参数,通常会默认传入chan_active和chan_passive
源代码在GitHub上查看
python
def add_target(self, name: str, target: TARGET_FUNC, args: tuple=(), kwargs=None):
+    if kwargs is None:
+        kwargs = {}
+    chan_active: Channel = Channel(name=f'{name}-active')
+    chan_passive: Channel = Channel(name=f'{name}-passive')
+    channel_deliver = ChannelDeliver(active=chan_active, passive=chan_passive, channel_deliver_active=channel_deliver_active_channel, channel_deliver_passive=channel_deliver_passive_channel, publish=publish_channel)
+    self.targets[name] = (_delivery_channel_wrapper, (target, channel_deliver, shared_memory, *args), kwargs)

func join_all(self)

源代码在GitHub上查看
python
def join_all(self):
+    for name, process in self.targets:
+        process.join()

func terminate(self, name: str)

说明: 终止进程并从进程字典中删除

参数:

  • name:
源代码在GitHub上查看
python
def terminate(self, name: str):
+    if name not in self.processes:
+        logger.warning(f'Process {name} not found.')
+        return
+    process = self.processes[name]
+    process.terminate()
+    process.join(TIMEOUT)
+    if process.is_alive():
+        process.kill()
+    logger.success(f'Process {name} terminated.')

func terminate_all(self)

源代码在GitHub上查看
python
def terminate_all(self):
+    for name in self.targets:
+        self.terminate(name)

func is_process_alive(self, name: str) -> bool

说明: 检查进程是否存活

参数:

  • name:
源代码在GitHub上查看
python
def is_process_alive(self, name: str) -> bool:
+    if name not in self.targets:
+        logger.warning(f'Process {name} not found.')
+    return self.processes[name].is_alive()

class _SubProcessManager


func __init__(self)

源代码在GitHub上查看
python
def __init__(self):
+    self.processes: dict[str, SubProcess] = {}

func new_process(self, name: str, *args, **kwargs) -> Callable[[ProcessFuncType], None]

源代码在GitHub上查看
python
def new_process(self, name: str, *args, **kwargs) -> Callable[[ProcessFuncType], None]:
+
+    def decorator(func: ProcessFuncType):
+        self.processes[name] = SubProcess(name, func, *args, **kwargs)
+    return decorator

func add(self, name: str, func: ProcessFuncType, *args, **kwargs)

说明: 添加子进程

参数:

  • func: 子进程函数
  • name: 子进程名称
  • args: 子进程函数参数
  • kwargs: 子进程函数关键字参数
源代码在GitHub上查看
python
def add(self, name: str, func: ProcessFuncType, *args, **kwargs):
+    self.processes[name] = SubProcess(name, func, *args, **kwargs)

func start(self, name: str)

说明: 启动指定子进程

参数:

  • name: 子进程名称
源代码在GitHub上查看
python
def start(self, name: str):
+    if name not in self.processes:
+        raise KeyError(f'Process {name} not found.')
+    self.processes[name].start()

func start_all(self)

说明: 启动所有子进程

源代码在GitHub上查看
python
def start_all(self):
+    for name, process in self.processes.items():
+        process.start()
+        logger.debug(f'Starting process {name}')
`,62)]))}const o=i(t,[["render",l]]);export{E as __pageData,o as default}; diff --git a/assets/dev_api_core_manager.md.CwENM4-V.lean.js b/assets/dev_api_core_manager.md.CwENM4-V.lean.js deleted file mode 100644 index 43f73ae3..00000000 --- a/assets/dev_api_core_manager.md.CwENM4-V.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const c=JSON.parse('{"title":"liteyuki.core.manager","description":"","frontmatter":{"title":"liteyuki.core.manager"},"headers":[],"relativePath":"dev/api/core/manager.md","filePath":"zh/dev/api/core/manager.md","lastUpdated":null}'),e={name:"dev/api/core/manager.md"},t=n("",62),l=[t];function h(k,p,r,d,g,E){return a(),i("div",null,l)}const y=s(e,[["render",h]]);export{c as __pageData,y as default}; diff --git a/assets/dev_api_dev_index.md.Chgr0inF.js b/assets/dev_api_dev_index.md.Chgr0inF.js deleted file mode 100644 index e04eeef2..00000000 --- a/assets/dev_api_dev_index.md.Chgr0inF.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as a,c as d,o as i,j as e,a as t}from"./chunks/framework.C4_mTacX.js";const f=JSON.parse('{"title":"liteyuki.dev","description":"","frontmatter":{"title":"liteyuki.dev","collapsed":true},"headers":[],"relativePath":"dev/api/dev/index.md","filePath":"zh/dev/api/dev/index.md","lastUpdated":null}'),l={name:"dev/api/dev/index.md"},n=e("h1",{id:"模块-liteyuki-dev",tabindex:"-1"},[e("strong",null,"模块"),t(),e("code",null,"liteyuki.dev"),t(),e("a",{class:"header-anchor",href:"#模块-liteyuki-dev","aria-label":'Permalink to "**模块** `liteyuki.dev`"'},"​")],-1),o=e("p",null,"该模块用于存放一些开发工具",-1),s=[n,o];function r(c,p,_,u,v,h){return i(),d("div",null,s)}const k=a(l,[["render",r]]);export{f as __pageData,k as default}; diff --git a/assets/dev_api_dev_index.md.Chgr0inF.lean.js b/assets/dev_api_dev_index.md.Chgr0inF.lean.js deleted file mode 100644 index e04eeef2..00000000 --- a/assets/dev_api_dev_index.md.Chgr0inF.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as a,c as d,o as i,j as e,a as t}from"./chunks/framework.C4_mTacX.js";const f=JSON.parse('{"title":"liteyuki.dev","description":"","frontmatter":{"title":"liteyuki.dev","collapsed":true},"headers":[],"relativePath":"dev/api/dev/index.md","filePath":"zh/dev/api/dev/index.md","lastUpdated":null}'),l={name:"dev/api/dev/index.md"},n=e("h1",{id:"模块-liteyuki-dev",tabindex:"-1"},[e("strong",null,"模块"),t(),e("code",null,"liteyuki.dev"),t(),e("a",{class:"header-anchor",href:"#模块-liteyuki-dev","aria-label":'Permalink to "**模块** `liteyuki.dev`"'},"​")],-1),o=e("p",null,"该模块用于存放一些开发工具",-1),s=[n,o];function r(c,p,_,u,v,h){return i(),d("div",null,s)}const k=a(l,[["render",r]]);export{f as __pageData,k as default}; diff --git a/assets/dev_api_dev_index.md.hNwQD8ZN.js b/assets/dev_api_dev_index.md.hNwQD8ZN.js new file mode 100644 index 00000000..04b28ef7 --- /dev/null +++ b/assets/dev_api_dev_index.md.hNwQD8ZN.js @@ -0,0 +1 @@ +import{_ as d,c as i,j as e,a,o as l}from"./chunks/framework.jrU0lkHV.js";const m=JSON.parse('{"title":"liteyuki.dev","description":"","frontmatter":{"title":"liteyuki.dev","collapsed":true},"headers":[],"relativePath":"dev/api/dev/index.md","filePath":"zh/dev/api/dev/index.md","lastUpdated":null}'),n={name:"dev/api/dev/index.md"};function r(o,t,s,c,p,u){return l(),i("div",null,t[0]||(t[0]=[e("h1",{id:"模块-liteyuki-dev",tabindex:"-1"},[e("strong",null,"模块"),a(),e("code",null,"liteyuki.dev"),a(),e("a",{class:"header-anchor",href:"#模块-liteyuki-dev","aria-label":'Permalink to "**模块** `liteyuki.dev`"'},"​")],-1),e("p",null,"该模块用于存放一些开发工具",-1)]))}const f=d(n,[["render",r]]);export{m as __pageData,f as default}; diff --git a/assets/dev_api_dev_index.md.hNwQD8ZN.lean.js b/assets/dev_api_dev_index.md.hNwQD8ZN.lean.js new file mode 100644 index 00000000..04b28ef7 --- /dev/null +++ b/assets/dev_api_dev_index.md.hNwQD8ZN.lean.js @@ -0,0 +1 @@ +import{_ as d,c as i,j as e,a,o as l}from"./chunks/framework.jrU0lkHV.js";const m=JSON.parse('{"title":"liteyuki.dev","description":"","frontmatter":{"title":"liteyuki.dev","collapsed":true},"headers":[],"relativePath":"dev/api/dev/index.md","filePath":"zh/dev/api/dev/index.md","lastUpdated":null}'),n={name:"dev/api/dev/index.md"};function r(o,t,s,c,p,u){return l(),i("div",null,t[0]||(t[0]=[e("h1",{id:"模块-liteyuki-dev",tabindex:"-1"},[e("strong",null,"模块"),a(),e("code",null,"liteyuki.dev"),a(),e("a",{class:"header-anchor",href:"#模块-liteyuki-dev","aria-label":'Permalink to "**模块** `liteyuki.dev`"'},"​")],-1),e("p",null,"该模块用于存放一些开发工具",-1)]))}const f=d(n,[["render",r]]);export{m as __pageData,f as default}; diff --git a/assets/dev_api_dev_observer.md.DXfnQgLO.js b/assets/dev_api_dev_observer.md.BhLDGDw1.js similarity index 86% rename from assets/dev_api_dev_observer.md.DXfnQgLO.js rename to assets/dev_api_dev_observer.md.BhLDGDw1.js index a2ed903d..93dd879f 100644 --- a/assets/dev_api_dev_observer.md.DXfnQgLO.js +++ b/assets/dev_api_dev_observer.md.BhLDGDw1.js @@ -1,4 +1,4 @@ -import{_ as s,c as i,o as e,a9 as a}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"liteyuki.dev.observer","description":"","frontmatter":{"title":"liteyuki.dev.observer"},"headers":[],"relativePath":"dev/api/dev/observer.md","filePath":"zh/dev/api/dev/observer.md","lastUpdated":null}'),n={name:"dev/api/dev/observer.md"},t=a(`

模块 liteyuki.dev.observer

此模块用于注册观察者函数,使用watchdog监控文件变化并重启bot 启用该模块需要在配置文件中设置dev_mode为True

var CALLBACK_FUNC

  • 说明: 位置1为FileSystemEvent

  • 类型: TypeAlias

  • 默认值: Callable[[FileSystemEvent], None]

var FILTER_FUNC

  • 说明: 位置1为FileSystemEvent

  • 类型: TypeAlias

  • 默认值: Callable[[FileSystemEvent], bool]


func debounce(wait)

说明: 防抖函数

源代码在GitHub上查看
python
def debounce(wait):
+import{_ as i,c as e,a7 as a,o as n}from"./chunks/framework.jrU0lkHV.js";const c=JSON.parse('{"title":"liteyuki.dev.observer","description":"","frontmatter":{"title":"liteyuki.dev.observer"},"headers":[],"relativePath":"dev/api/dev/observer.md","filePath":"zh/dev/api/dev/observer.md","lastUpdated":null}'),t={name:"dev/api/dev/observer.md"};function l(h,s,p,r,k,d){return n(),e("div",null,s[0]||(s[0]=[a(`

模块 liteyuki.dev.observer

此模块用于注册观察者函数,使用watchdog监控文件变化并重启bot 启用该模块需要在配置文件中设置dev_mode为True

var CALLBACK_FUNC

  • 说明: 位置1为FileSystemEvent

  • 类型: TypeAlias

  • 默认值: Callable[[FileSystemEvent], None]

var FILTER_FUNC

  • 说明: 位置1为FileSystemEvent

  • 类型: TypeAlias

  • 默认值: Callable[[FileSystemEvent], bool]


func debounce(wait)

说明: 防抖函数

源代码在GitHub上查看
python
def debounce(wait):
 
     def decorator(func):
 
@@ -29,4 +29,4 @@ import{_ as s,c as i,o as e,a9 as a}from"./chunks/framework.C4_mTacX.js";const g
         for directory in directories:
             observer.schedule(code_modified_handler, directory, recursive=recursive)
         return func
-    return decorator
`,34),l=[t];function h(p,r,k,d,o,c){return e(),i("div",null,l)}const y=s(n,[["render",h]]);export{g as __pageData,y as default}; + return decorator
`,34)]))}const E=i(t,[["render",l]]);export{c as __pageData,E as default}; diff --git a/assets/dev_api_dev_observer.md.BhLDGDw1.lean.js b/assets/dev_api_dev_observer.md.BhLDGDw1.lean.js new file mode 100644 index 00000000..93dd879f --- /dev/null +++ b/assets/dev_api_dev_observer.md.BhLDGDw1.lean.js @@ -0,0 +1,32 @@ +import{_ as i,c as e,a7 as a,o as n}from"./chunks/framework.jrU0lkHV.js";const c=JSON.parse('{"title":"liteyuki.dev.observer","description":"","frontmatter":{"title":"liteyuki.dev.observer"},"headers":[],"relativePath":"dev/api/dev/observer.md","filePath":"zh/dev/api/dev/observer.md","lastUpdated":null}'),t={name:"dev/api/dev/observer.md"};function l(h,s,p,r,k,d){return n(),e("div",null,s[0]||(s[0]=[a(`

模块 liteyuki.dev.observer

此模块用于注册观察者函数,使用watchdog监控文件变化并重启bot 启用该模块需要在配置文件中设置dev_mode为True

var CALLBACK_FUNC

  • 说明: 位置1为FileSystemEvent

  • 类型: TypeAlias

  • 默认值: Callable[[FileSystemEvent], None]

var FILTER_FUNC

  • 说明: 位置1为FileSystemEvent

  • 类型: TypeAlias

  • 默认值: Callable[[FileSystemEvent], bool]


func debounce(wait)

说明: 防抖函数

源代码在GitHub上查看
python
def debounce(wait):
+
+    def decorator(func):
+
+        def wrapper(*args, **kwargs):
+            nonlocal last_call_time
+            current_time = time.time()
+            if current_time - last_call_time > wait:
+                last_call_time = current_time
+                return func(*args, **kwargs)
+        last_call_time = None
+        return wrapper
+    return decorator

class CodeModifiedHandler(FileSystemEventHandler)


@debounce(1)

func on_modified(self, event)

源代码在GitHub上查看
python
@debounce(1)
+def on_modified(self, event):
+    raise NotImplementedError('on_modified must be implemented')

func on_created(self, event)

源代码在GitHub上查看
python
def on_created(self, event):
+    self.on_modified(event)

func on_deleted(self, event)

源代码在GitHub上查看
python
def on_deleted(self, event):
+    self.on_modified(event)

func on_moved(self, event)

源代码在GitHub上查看
python
def on_moved(self, event):
+    self.on_modified(event)

func on_any_event(self, event)

源代码在GitHub上查看
python
def on_any_event(self, event):
+    self.on_modified(event)

func on_file_system_event(directories: tuple[str], recursive: bool = True, event_filter: FILTER_FUNC = None) -> Callable[[CALLBACK_FUNC], CALLBACK_FUNC]

说明: 注册文件系统变化监听器

参数:

  • directories: 监听目录们
  • recursive: 是否递归监听子目录
  • event_filter: 事件过滤器, 返回True则执行回调函数

返回: 装饰器,装饰一个函数在接收到数据后执行

源代码在GitHub上查看
python
def on_file_system_event(directories: tuple[str], recursive: bool=True, event_filter: FILTER_FUNC=None) -> Callable[[CALLBACK_FUNC], CALLBACK_FUNC]:
+
+    def decorator(func: CALLBACK_FUNC) -> CALLBACK_FUNC:
+
+        def wrapper(event: FileSystemEvent):
+            if event_filter is not None and (not event_filter(event)):
+                return
+            func(event)
+        code_modified_handler = CodeModifiedHandler()
+        code_modified_handler.on_modified = wrapper
+        for directory in directories:
+            observer.schedule(code_modified_handler, directory, recursive=recursive)
+        return func
+    return decorator
`,34)]))}const E=i(t,[["render",l]]);export{c as __pageData,E as default}; diff --git a/assets/dev_api_dev_observer.md.DXfnQgLO.lean.js b/assets/dev_api_dev_observer.md.DXfnQgLO.lean.js deleted file mode 100644 index 7883d94d..00000000 --- a/assets/dev_api_dev_observer.md.DXfnQgLO.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as s,c as i,o as e,a9 as a}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"liteyuki.dev.observer","description":"","frontmatter":{"title":"liteyuki.dev.observer"},"headers":[],"relativePath":"dev/api/dev/observer.md","filePath":"zh/dev/api/dev/observer.md","lastUpdated":null}'),n={name:"dev/api/dev/observer.md"},t=a("",34),l=[t];function h(p,r,k,d,o,c){return e(),i("div",null,l)}const y=s(n,[["render",h]]);export{g as __pageData,y as default}; diff --git a/assets/dev_api_dev_plugin.md.Be-m1DJn.js b/assets/dev_api_dev_plugin.md.Be-m1DJn.js new file mode 100644 index 00000000..3fba5583 --- /dev/null +++ b/assets/dev_api_dev_plugin.md.Be-m1DJn.js @@ -0,0 +1,7 @@ +import{_ as s,c as a,a7 as t,o as n}from"./chunks/framework.jrU0lkHV.js";const u=JSON.parse('{"title":"liteyuki.dev.plugin","description":"","frontmatter":{"title":"liteyuki.dev.plugin"},"headers":[],"relativePath":"dev/api/dev/plugin.md","filePath":"zh/dev/api/dev/plugin.md","lastUpdated":null}'),l={name:"dev/api/dev/plugin.md"};function e(p,i,h,k,r,d){return n(),a("div",null,i[0]||(i[0]=[t(`

模块 liteyuki.dev.plugin

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/18 上午5:04 @Author : snowykami @Email : snowykami@outlook.com @File : plugin.py @Software: PyCharm


func run_plugins(*module_path: str | Path)

说明: 运行插件,无需手动初始化bot

参数:

  • module_path: 插件路径,参考liteyuki.load_plugin的函数签名
源代码在GitHub上查看
python
def run_plugins(*module_path: str | Path):
+    cfg = load_config_in_default()
+    plugins = cfg.get('liteyuki.plugins', [])
+    plugins.extend(module_path)
+    cfg['liteyuki.plugins'] = plugins
+    bot = LiteyukiBot(**cfg)
+    bot.run()
`,9)]))}const g=s(l,[["render",e]]);export{u as __pageData,g as default}; diff --git a/assets/dev_api_dev_plugin.md.Be-m1DJn.lean.js b/assets/dev_api_dev_plugin.md.Be-m1DJn.lean.js new file mode 100644 index 00000000..3fba5583 --- /dev/null +++ b/assets/dev_api_dev_plugin.md.Be-m1DJn.lean.js @@ -0,0 +1,7 @@ +import{_ as s,c as a,a7 as t,o as n}from"./chunks/framework.jrU0lkHV.js";const u=JSON.parse('{"title":"liteyuki.dev.plugin","description":"","frontmatter":{"title":"liteyuki.dev.plugin"},"headers":[],"relativePath":"dev/api/dev/plugin.md","filePath":"zh/dev/api/dev/plugin.md","lastUpdated":null}'),l={name:"dev/api/dev/plugin.md"};function e(p,i,h,k,r,d){return n(),a("div",null,i[0]||(i[0]=[t(`

模块 liteyuki.dev.plugin

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/18 上午5:04 @Author : snowykami @Email : snowykami@outlook.com @File : plugin.py @Software: PyCharm


func run_plugins(*module_path: str | Path)

说明: 运行插件,无需手动初始化bot

参数:

  • module_path: 插件路径,参考liteyuki.load_plugin的函数签名
源代码在GitHub上查看
python
def run_plugins(*module_path: str | Path):
+    cfg = load_config_in_default()
+    plugins = cfg.get('liteyuki.plugins', [])
+    plugins.extend(module_path)
+    cfg['liteyuki.plugins'] = plugins
+    bot = LiteyukiBot(**cfg)
+    bot.run()
`,9)]))}const g=s(l,[["render",e]]);export{u as __pageData,g as default}; diff --git a/assets/dev_api_dev_plugin.md.Cops7KZu.js b/assets/dev_api_dev_plugin.md.Cops7KZu.js deleted file mode 100644 index d9156366..00000000 --- a/assets/dev_api_dev_plugin.md.Cops7KZu.js +++ /dev/null @@ -1,7 +0,0 @@ -import{_ as i,c as s,o as a,a9 as t}from"./chunks/framework.C4_mTacX.js";const E=JSON.parse('{"title":"liteyuki.dev.plugin","description":"","frontmatter":{"title":"liteyuki.dev.plugin"},"headers":[],"relativePath":"dev/api/dev/plugin.md","filePath":"zh/dev/api/dev/plugin.md","lastUpdated":null}'),n={name:"dev/api/dev/plugin.md"},e=t(`

模块 liteyuki.dev.plugin

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/18 上午5:04 @Author : snowykami @Email : snowykami@outlook.com @File : plugin.py @Software: PyCharm


func run_plugins(*module_path: str | Path)

说明: 运行插件,无需手动初始化bot

参数:

  • module_path: 插件路径,参考liteyuki.load_plugin的函数签名
源代码在GitHub上查看
python
def run_plugins(*module_path: str | Path):
-    cfg = load_config_in_default()
-    plugins = cfg.get('liteyuki.plugins', [])
-    plugins.extend(module_path)
-    cfg['liteyuki.plugins'] = plugins
-    bot = LiteyukiBot(**cfg)
-    bot.run()
`,9),l=[e];function p(h,k,r,d,o,u){return a(),s("div",null,l)}const c=i(n,[["render",p]]);export{E as __pageData,c as default}; diff --git a/assets/dev_api_dev_plugin.md.Cops7KZu.lean.js b/assets/dev_api_dev_plugin.md.Cops7KZu.lean.js deleted file mode 100644 index f1ce4465..00000000 --- a/assets/dev_api_dev_plugin.md.Cops7KZu.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as i,c as s,o as a,a9 as t}from"./chunks/framework.C4_mTacX.js";const E=JSON.parse('{"title":"liteyuki.dev.plugin","description":"","frontmatter":{"title":"liteyuki.dev.plugin"},"headers":[],"relativePath":"dev/api/dev/plugin.md","filePath":"zh/dev/api/dev/plugin.md","lastUpdated":null}'),n={name:"dev/api/dev/plugin.md"},e=t("",9),l=[e];function p(h,k,r,d,o,u){return a(),s("div",null,l)}const c=i(n,[["render",p]]);export{E as __pageData,c as default}; diff --git a/assets/dev_api_exception.md.BdPwU3gE.js b/assets/dev_api_exception.md.BdPwU3gE.js new file mode 100644 index 00000000..aeec396e --- /dev/null +++ b/assets/dev_api_exception.md.BdPwU3gE.js @@ -0,0 +1 @@ +import{_ as t,c as i,a7 as a,o}from"./chunks/framework.jrU0lkHV.js";const u=JSON.parse('{"title":"liteyuki.exception","description":"","frontmatter":{"title":"liteyuki.exception"},"headers":[],"relativePath":"dev/api/exception.md","filePath":"zh/dev/api/exception.md","lastUpdated":null}'),n={name:"dev/api/exception.md"};function c(s,e,p,l,r,d){return o(),i("div",null,e[0]||(e[0]=[a('

模块 liteyuki.exception

exception模块包含了liteyuki运行中的所有错误

class LiteyukiException(BaseException)

',3)]))}const k=t(n,[["render",c]]);export{u as __pageData,k as default}; diff --git a/assets/dev_api_exception.md.BdPwU3gE.lean.js b/assets/dev_api_exception.md.BdPwU3gE.lean.js new file mode 100644 index 00000000..aeec396e --- /dev/null +++ b/assets/dev_api_exception.md.BdPwU3gE.lean.js @@ -0,0 +1 @@ +import{_ as t,c as i,a7 as a,o}from"./chunks/framework.jrU0lkHV.js";const u=JSON.parse('{"title":"liteyuki.exception","description":"","frontmatter":{"title":"liteyuki.exception"},"headers":[],"relativePath":"dev/api/exception.md","filePath":"zh/dev/api/exception.md","lastUpdated":null}'),n={name:"dev/api/exception.md"};function c(s,e,p,l,r,d){return o(),i("div",null,e[0]||(e[0]=[a('

模块 liteyuki.exception

exception模块包含了liteyuki运行中的所有错误

class LiteyukiException(BaseException)

',3)]))}const k=t(n,[["render",c]]);export{u as __pageData,k as default}; diff --git a/assets/dev_api_exception.md.Bo7F9S9r.js b/assets/dev_api_exception.md.Bo7F9S9r.js deleted file mode 100644 index 7e151132..00000000 --- a/assets/dev_api_exception.md.Bo7F9S9r.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as e,c as t,o as i,a9 as a}from"./chunks/framework.C4_mTacX.js";const h=JSON.parse('{"title":"liteyuki.exception","description":"","frontmatter":{"title":"liteyuki.exception"},"headers":[],"relativePath":"dev/api/exception.md","filePath":"zh/dev/api/exception.md","lastUpdated":null}'),o={name:"dev/api/exception.md"},c=a('

模块 liteyuki.exception

exception模块包含了liteyuki运行中的所有错误

class LiteyukiException(BaseException)

',3),n=[c];function s(p,l,r,d,_,x){return i(),t("div",null,n)}const k=e(o,[["render",s]]);export{h as __pageData,k as default}; diff --git a/assets/dev_api_exception.md.Bo7F9S9r.lean.js b/assets/dev_api_exception.md.Bo7F9S9r.lean.js deleted file mode 100644 index dcd26f55..00000000 --- a/assets/dev_api_exception.md.Bo7F9S9r.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as e,c as t,o as i,a9 as a}from"./chunks/framework.C4_mTacX.js";const h=JSON.parse('{"title":"liteyuki.exception","description":"","frontmatter":{"title":"liteyuki.exception"},"headers":[],"relativePath":"dev/api/exception.md","filePath":"zh/dev/api/exception.md","lastUpdated":null}'),o={name:"dev/api/exception.md"},c=a("",3),n=[c];function s(p,l,r,d,_,x){return i(),t("div",null,n)}const k=e(o,[["render",s]]);export{h as __pageData,k as default}; diff --git a/assets/dev_api_index.md.BzH7dCwu.js b/assets/dev_api_index.md.BzH7dCwu.js new file mode 100644 index 00000000..b3610cf4 --- /dev/null +++ b/assets/dev_api_index.md.BzH7dCwu.js @@ -0,0 +1 @@ +import{_ as t,c as a,a7 as i,o as r}from"./chunks/framework.jrU0lkHV.js";const _=JSON.parse('{"title":"liteyuki API","description":"","frontmatter":{"title":"liteyuki API","collapsed":true,"order":100},"headers":[],"relativePath":"dev/api/index.md","filePath":"zh/dev/api/index.md","lastUpdated":null}'),o={name:"dev/api/index.md"};function l(n,e,d,s,c,p){return r(),a("div",null,e[0]||(e[0]=[i('

模块 liteyuki

此模块为liteyuki的框架整体

This module is the overall framework of liteyuki.

var __version__

  • 说明: 测试版本号

  • 默认值: '6.3.10'

',5)]))}const h=t(o,[["render",l]]);export{_ as __pageData,h as default}; diff --git a/assets/dev_api_index.md.BzH7dCwu.lean.js b/assets/dev_api_index.md.BzH7dCwu.lean.js new file mode 100644 index 00000000..b3610cf4 --- /dev/null +++ b/assets/dev_api_index.md.BzH7dCwu.lean.js @@ -0,0 +1 @@ +import{_ as t,c as a,a7 as i,o as r}from"./chunks/framework.jrU0lkHV.js";const _=JSON.parse('{"title":"liteyuki API","description":"","frontmatter":{"title":"liteyuki API","collapsed":true,"order":100},"headers":[],"relativePath":"dev/api/index.md","filePath":"zh/dev/api/index.md","lastUpdated":null}'),o={name:"dev/api/index.md"};function l(n,e,d,s,c,p){return r(),a("div",null,e[0]||(e[0]=[i('

模块 liteyuki

此模块为liteyuki的框架整体

This module is the overall framework of liteyuki.

var __version__

  • 说明: 测试版本号

  • 默认值: '6.3.10'

',5)]))}const h=t(o,[["render",l]]);export{_ as __pageData,h as default}; diff --git a/assets/dev_api_index.md.mhROT_CR.js b/assets/dev_api_index.md.mhROT_CR.js deleted file mode 100644 index 671128e5..00000000 --- a/assets/dev_api_index.md.mhROT_CR.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as e,c as t,o as a,a9 as i}from"./chunks/framework.C4_mTacX.js";const v=JSON.parse('{"title":"liteyuki API","description":"","frontmatter":{"title":"liteyuki API","collapsed":true,"order":100},"headers":[],"relativePath":"dev/api/index.md","filePath":"zh/dev/api/index.md","lastUpdated":null}'),o={name:"dev/api/index.md"},r=i('

模块 liteyuki

此模块为liteyuki的框架整体

This module is the overall framework of liteyuki.

var __version__

  • 说明: 测试版本号

  • 默认值: '6.3.10'

',5),l=[r];function n(s,d,_,c,p,u){return a(),t("div",null,l)}const k=e(o,[["render",n]]);export{v as __pageData,k as default}; diff --git a/assets/dev_api_index.md.mhROT_CR.lean.js b/assets/dev_api_index.md.mhROT_CR.lean.js deleted file mode 100644 index 6b4786b0..00000000 --- a/assets/dev_api_index.md.mhROT_CR.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as e,c as t,o as a,a9 as i}from"./chunks/framework.C4_mTacX.js";const v=JSON.parse('{"title":"liteyuki API","description":"","frontmatter":{"title":"liteyuki API","collapsed":true,"order":100},"headers":[],"relativePath":"dev/api/index.md","filePath":"zh/dev/api/index.md","lastUpdated":null}'),o={name:"dev/api/index.md"},r=i("",5),l=[r];function n(s,d,_,c,p,u){return a(),t("div",null,l)}const k=e(o,[["render",n]]);export{v as __pageData,k as default}; diff --git a/assets/dev_api_log.md.B0RBm2Ui.lean.js b/assets/dev_api_log.md.B0RBm2Ui.lean.js deleted file mode 100644 index e19c634d..00000000 --- a/assets/dev_api_log.md.B0RBm2Ui.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as s,c as i,o as a,a9 as h}from"./chunks/framework.C4_mTacX.js";const y=JSON.parse('{"title":"liteyuki.log","description":"","frontmatter":{"title":"liteyuki.log"},"headers":[],"relativePath":"dev/api/log.md","filePath":"zh/dev/api/log.md","lastUpdated":null}'),t={name:"dev/api/log.md"},k=h("",10),l=[k];function n(p,e,E,r,g,d){return a(),i("div",null,l)}const o=s(t,[["render",n]]);export{y as __pageData,o as default}; diff --git a/assets/dev_api_log.md.B0RBm2Ui.js b/assets/dev_api_log.md.CocTY971.js similarity index 85% rename from assets/dev_api_log.md.B0RBm2Ui.js rename to assets/dev_api_log.md.CocTY971.js index 171fa0e6..73e6b0a5 100644 --- a/assets/dev_api_log.md.B0RBm2Ui.js +++ b/assets/dev_api_log.md.CocTY971.js @@ -1,4 +1,4 @@ -import{_ as s,c as i,o as a,a9 as h}from"./chunks/framework.C4_mTacX.js";const y=JSON.parse('{"title":"liteyuki.log","description":"","frontmatter":{"title":"liteyuki.log"},"headers":[],"relativePath":"dev/api/log.md","filePath":"zh/dev/api/log.md","lastUpdated":null}'),t={name:"dev/api/log.md"},k=h(`

模块 liteyuki.log

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/27 上午9:12 @Author : snowykami @Email : snowykami@outlook.com @File : log.py @Software: PyCharm


func get_format(level: str) -> str

源代码在GitHub上查看
python
def get_format(level: str) -> str:
+import{_ as i,c as a,a7 as h,o as t}from"./chunks/framework.jrU0lkHV.js";const d=JSON.parse('{"title":"liteyuki.log","description":"","frontmatter":{"title":"liteyuki.log"},"headers":[],"relativePath":"dev/api/log.md","filePath":"zh/dev/api/log.md","lastUpdated":null}'),k={name:"dev/api/log.md"};function l(n,s,p,e,E,r){return t(),a("div",null,s[0]||(s[0]=[h(`

模块 liteyuki.log

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/27 上午9:12 @Author : snowykami @Email : snowykami@outlook.com @File : log.py @Software: PyCharm


func get_format(level: str) -> str

源代码在GitHub上查看
python
def get_format(level: str) -> str:
     if level == 'DEBUG':
         return debug_format
     else:
@@ -10,4 +10,4 @@ import{_ as s,c as i,o as a,a9 as h}from"./chunks/framework.C4_mTacX.js";const y
     logger.level('INFO', color='<normal>', icon=f"{('ℹ️' if show_icon else '')}INFO")
     logger.level('SUCCESS', color='<green>', icon=f"{('✅' if show_icon else '')}SUCCESS")
     logger.level('WARNING', color='<yellow>', icon=f"{('⚠️' if show_icon else '')}WARNING")
-    logger.level('ERROR', color='<red>', icon=f"{('⭕' if show_icon else '')}ERROR")
`,10),l=[k];function n(p,e,E,r,g,d){return a(),i("div",null,l)}const o=s(t,[["render",n]]);export{y as __pageData,o as default}; + logger.level('ERROR', color='<red>', icon=f"{('⭕' if show_icon else '')}ERROR")
`,10)]))}const F=i(k,[["render",l]]);export{d as __pageData,F as default}; diff --git a/assets/dev_api_log.md.CocTY971.lean.js b/assets/dev_api_log.md.CocTY971.lean.js new file mode 100644 index 00000000..73e6b0a5 --- /dev/null +++ b/assets/dev_api_log.md.CocTY971.lean.js @@ -0,0 +1,13 @@ +import{_ as i,c as a,a7 as h,o as t}from"./chunks/framework.jrU0lkHV.js";const d=JSON.parse('{"title":"liteyuki.log","description":"","frontmatter":{"title":"liteyuki.log"},"headers":[],"relativePath":"dev/api/log.md","filePath":"zh/dev/api/log.md","lastUpdated":null}'),k={name:"dev/api/log.md"};function l(n,s,p,e,E,r){return t(),a("div",null,s[0]||(s[0]=[h(`

模块 liteyuki.log

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/27 上午9:12 @Author : snowykami @Email : snowykami@outlook.com @File : log.py @Software: PyCharm


func get_format(level: str) -> str

源代码在GitHub上查看
python
def get_format(level: str) -> str:
+    if level == 'DEBUG':
+        return debug_format
+    else:
+        return default_format

func init_log(config: dict)

说明: 在语言加载完成后执行

源代码在GitHub上查看
python
def init_log(config: dict):
+    logger.remove()
+    logger.add(sys.stdout, level=0, diagnose=False, format=get_format(config.get('log_level', 'INFO')))
+    show_icon = config.get('log_icon', True)
+    logger.level('DEBUG', color='<blue>', icon=f"{('🐛' if show_icon else '')}DEBUG")
+    logger.level('INFO', color='<normal>', icon=f"{('ℹ️' if show_icon else '')}INFO")
+    logger.level('SUCCESS', color='<green>', icon=f"{('✅' if show_icon else '')}SUCCESS")
+    logger.level('WARNING', color='<yellow>', icon=f"{('⚠️' if show_icon else '')}WARNING")
+    logger.level('ERROR', color='<red>', icon=f"{('⭕' if show_icon else '')}ERROR")
`,10)]))}const F=i(k,[["render",l]]);export{d as __pageData,F as default}; diff --git a/assets/dev_api_message_event.md.DyDwsc6d.lean.js b/assets/dev_api_message_event.md.DyDwsc6d.lean.js deleted file mode 100644 index 275e8403..00000000 --- a/assets/dev_api_message_event.md.DyDwsc6d.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as s,c as i,o as a,a9 as e}from"./chunks/framework.C4_mTacX.js";const o=JSON.parse('{"title":"liteyuki.message.event","description":"","frontmatter":{"title":"liteyuki.message.event"},"headers":[],"relativePath":"dev/api/message/event.md","filePath":"zh/dev/api/message/event.md","lastUpdated":null}'),t={name:"dev/api/message/event.md"},n=e("",14),h=[n];function l(k,p,r,d,E,g){return a(),i("div",null,h)}const F=s(t,[["render",l]]);export{o as __pageData,F as default}; diff --git a/assets/dev_api_message_index.md.Ox32xQC5.js b/assets/dev_api_message_index.md.Ox32xQC5.js deleted file mode 100644 index 81ecaaf9..00000000 --- a/assets/dev_api_message_index.md.Ox32xQC5.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as a,c as s,o as i,j as e,a as t}from"./chunks/framework.C4_mTacX.js";const y=JSON.parse('{"title":"liteyuki.message","description":"","frontmatter":{"title":"liteyuki.message","collapsed":true},"headers":[],"relativePath":"dev/api/message/index.md","filePath":"zh/dev/api/message/index.md","lastUpdated":null}'),o={name:"dev/api/message/index.md"},l=e("h1",{id:"模块-liteyuki-message",tabindex:"-1"},[e("strong",null,"模块"),t(),e("code",null,"liteyuki.message"),t(),e("a",{class:"header-anchor",href:"#模块-liteyuki-message","aria-label":'Permalink to "**模块** `liteyuki.message`"'},"​")],-1),n=e("p",null,"Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved",-1),r=e("p",null,[t("@Time : 2024/8/19 下午10:44 @Author : snowykami @Email : "),e("a",{href:"mailto:snowykami@outlook.com",target:"_blank",rel:"noreferrer"},"snowykami@outlook.com"),t(" @File : "),e("strong",null,"init"),t(".py.py @Software: PyCharm")],-1),d=[l,n,r];function m(c,u,p,_,h,k){return i(),s("div",null,d)}const f=a(o,[["render",m]]);export{y as __pageData,f as default}; diff --git a/assets/dev_api_message_index.md.Ox32xQC5.lean.js b/assets/dev_api_message_index.md.Ox32xQC5.lean.js deleted file mode 100644 index 81ecaaf9..00000000 --- a/assets/dev_api_message_index.md.Ox32xQC5.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as a,c as s,o as i,j as e,a as t}from"./chunks/framework.C4_mTacX.js";const y=JSON.parse('{"title":"liteyuki.message","description":"","frontmatter":{"title":"liteyuki.message","collapsed":true},"headers":[],"relativePath":"dev/api/message/index.md","filePath":"zh/dev/api/message/index.md","lastUpdated":null}'),o={name:"dev/api/message/index.md"},l=e("h1",{id:"模块-liteyuki-message",tabindex:"-1"},[e("strong",null,"模块"),t(),e("code",null,"liteyuki.message"),t(),e("a",{class:"header-anchor",href:"#模块-liteyuki-message","aria-label":'Permalink to "**模块** `liteyuki.message`"'},"​")],-1),n=e("p",null,"Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved",-1),r=e("p",null,[t("@Time : 2024/8/19 下午10:44 @Author : snowykami @Email : "),e("a",{href:"mailto:snowykami@outlook.com",target:"_blank",rel:"noreferrer"},"snowykami@outlook.com"),t(" @File : "),e("strong",null,"init"),t(".py.py @Software: PyCharm")],-1),d=[l,n,r];function m(c,u,p,_,h,k){return i(),s("div",null,d)}const f=a(o,[["render",m]]);export{y as __pageData,f as default}; diff --git a/assets/dev_api_message_matcher.md.DVuQfqJD.lean.js b/assets/dev_api_message_matcher.md.DVuQfqJD.lean.js deleted file mode 100644 index baa11698..00000000 --- a/assets/dev_api_message_matcher.md.DVuQfqJD.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as s,c as i,o as a,a9 as e}from"./chunks/framework.C4_mTacX.js";const y=JSON.parse('{"title":"liteyuki.message.matcher","description":"","frontmatter":{"title":"liteyuki.message.matcher"},"headers":[],"relativePath":"dev/api/message/matcher.md","filePath":"zh/dev/api/message/matcher.md","lastUpdated":null}'),t={name:"dev/api/message/matcher.md"},n=e("",21),l=[n];function h(r,p,k,o,d,c){return a(),i("div",null,l)}const E=s(t,[["render",h]]);export{y as __pageData,E as default}; diff --git a/assets/dev_api_message_on.md.CApMkdr1.lean.js b/assets/dev_api_message_on.md.CApMkdr1.lean.js deleted file mode 100644 index 7b29bb79..00000000 --- a/assets/dev_api_message_on.md.CApMkdr1.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as s,c as i,o as a,a9 as e}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"liteyuki.message.on","description":"","frontmatter":{"title":"liteyuki.message.on"},"headers":[],"relativePath":"dev/api/message/on.md","filePath":"zh/dev/api/message/on.md","lastUpdated":null}'),t={name:"dev/api/message/on.md"},n=e("",12),l=[n];function h(r,k,p,o,d,y){return a(),i("div",null,l)}const E=s(t,[["render",h]]);export{g as __pageData,E as default}; diff --git a/assets/dev_api_message_rule.md.DtsqYM0_.js b/assets/dev_api_message_rule.md.DtsqYM0_.js deleted file mode 100644 index 599071d8..00000000 --- a/assets/dev_api_message_rule.md.DtsqYM0_.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as s,c as i,o as a,a9 as e}from"./chunks/framework.C4_mTacX.js";const c=JSON.parse('{"title":"liteyuki.message.rule","description":"","frontmatter":{"title":"liteyuki.message.rule"},"headers":[],"relativePath":"dev/api/message/rule.md","filePath":"zh/dev/api/message/rule.md","lastUpdated":null}'),t={name:"dev/api/message/rule.md"},n=e('

模块 liteyuki.message.rule

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 下午10:55 @Author : snowykami @Email : snowykami@outlook.com @File : rule.py @Software: PyCharm

var RuleHandlerFunc

  • 说明: 规则函数签名

  • 类型: TypeAlias

  • 默认值: Callable[[MessageEvent], Coroutine[None, None, bool]]

class Rule


func __init__(self, handler: RuleHandlerFunc)

源代码在GitHub上查看
python
def __init__(self, handler: RuleHandlerFunc):\n    self.handler = handler

func self | other: Rule => Rule

源代码在GitHub上查看
python
def __or__(self, other: 'Rule') -> 'Rule':\n\n    async def combined_handler(event: MessageEvent) -> bool:\n        return await self.handler(event) or await other.handler(event)\n    return Rule(combined_handler)

func self & other: Rule => Rule

源代码在GitHub上查看
python
def __and__(self, other: 'Rule') -> 'Rule':\n\n    async def combined_handler(event: MessageEvent) -> bool:\n        return await self.handler(event) and await other.handler(event)\n    return Rule(combined_handler)

async func self () event: MessageEvent => bool

源代码在GitHub上查看
python
async def __call__(self, event: MessageEvent) -> bool:\n    if self.handler is None:\n        return True\n    return await self.handler(event)

@Rule

async func empty_rule(event: MessageEvent) -> bool

源代码在GitHub上查看
python
@Rule\nasync def empty_rule(event: MessageEvent) -> bool:\n    return True

@Rule

async func is_su_rule(event: MessageEvent) -> bool

源代码在GitHub上查看
python
@Rule\nasync def is_su_rule(event: MessageEvent) -> bool:\n    return str(event.user_id) in _superusers
',26),l=[n];function h(r,p,k,d,o,u){return a(),i("div",null,l)}const y=s(t,[["render",h]]);export{c as __pageData,y as default}; diff --git a/assets/dev_api_message_rule.md.DtsqYM0_.lean.js b/assets/dev_api_message_rule.md.DtsqYM0_.lean.js deleted file mode 100644 index ba500885..00000000 --- a/assets/dev_api_message_rule.md.DtsqYM0_.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as s,c as i,o as a,a9 as e}from"./chunks/framework.C4_mTacX.js";const c=JSON.parse('{"title":"liteyuki.message.rule","description":"","frontmatter":{"title":"liteyuki.message.rule"},"headers":[],"relativePath":"dev/api/message/rule.md","filePath":"zh/dev/api/message/rule.md","lastUpdated":null}'),t={name:"dev/api/message/rule.md"},n=e("",26),l=[n];function h(r,p,k,d,o,u){return a(),i("div",null,l)}const y=s(t,[["render",h]]);export{c as __pageData,y as default}; diff --git a/assets/dev_api_message_session.md.Dvgy6WBS.js b/assets/dev_api_message_session.md.Dvgy6WBS.js deleted file mode 100644 index 38a80534..00000000 --- a/assets/dev_api_message_session.md.Dvgy6WBS.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as t,c as a,o,j as e,a as s}from"./chunks/framework.C4_mTacX.js";const y=JSON.parse('{"title":"liteyuki.message.session","description":"","frontmatter":{"title":"liteyuki.message.session"},"headers":[],"relativePath":"dev/api/message/session.md","filePath":"zh/dev/api/message/session.md","lastUpdated":null}'),i={name:"dev/api/message/session.md"},n=e("h1",{id:"模块-liteyuki-message-session",tabindex:"-1"},[e("strong",null,"模块"),s(),e("code",null,"liteyuki.message.session"),s(),e("a",{class:"header-anchor",href:"#模块-liteyuki-message-session","aria-label":'Permalink to "**模块** `liteyuki.message.session`"'},"​")],-1),l=e("p",null,"Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved",-1),r=e("p",null,[s("@Time : 2024/8/19 下午10:47 @Author : snowykami @Email : "),e("a",{href:"mailto:snowykami@outlook.com",target:"_blank",rel:"noreferrer"},"snowykami@outlook.com"),s(" @File : session.py @Software: PyCharm")],-1),m=[n,l,r];function d(c,u,_,p,h,k){return o(),a("div",null,m)}const f=t(i,[["render",d]]);export{y as __pageData,f as default}; diff --git a/assets/dev_api_message_session.md.Dvgy6WBS.lean.js b/assets/dev_api_message_session.md.Dvgy6WBS.lean.js deleted file mode 100644 index 38a80534..00000000 --- a/assets/dev_api_message_session.md.Dvgy6WBS.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as t,c as a,o,j as e,a as s}from"./chunks/framework.C4_mTacX.js";const y=JSON.parse('{"title":"liteyuki.message.session","description":"","frontmatter":{"title":"liteyuki.message.session"},"headers":[],"relativePath":"dev/api/message/session.md","filePath":"zh/dev/api/message/session.md","lastUpdated":null}'),i={name:"dev/api/message/session.md"},n=e("h1",{id:"模块-liteyuki-message-session",tabindex:"-1"},[e("strong",null,"模块"),s(),e("code",null,"liteyuki.message.session"),s(),e("a",{class:"header-anchor",href:"#模块-liteyuki-message-session","aria-label":'Permalink to "**模块** `liteyuki.message.session`"'},"​")],-1),l=e("p",null,"Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved",-1),r=e("p",null,[s("@Time : 2024/8/19 下午10:47 @Author : snowykami @Email : "),e("a",{href:"mailto:snowykami@outlook.com",target:"_blank",rel:"noreferrer"},"snowykami@outlook.com"),s(" @File : session.py @Software: PyCharm")],-1),m=[n,l,r];function d(c,u,_,p,h,k){return o(),a("div",null,m)}const f=t(i,[["render",d]]);export{y as __pageData,f as default}; diff --git a/assets/dev_api_mkdoc.md.BQNdAtbl.lean.js b/assets/dev_api_mkdoc.md.BQNdAtbl.lean.js deleted file mode 100644 index 0bee5aee..00000000 --- a/assets/dev_api_mkdoc.md.BQNdAtbl.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as s,c as i,o as a,a9 as t}from"./chunks/framework.C4_mTacX.js";const y=JSON.parse('{"title":"liteyuki.mkdoc","description":"","frontmatter":{"title":"liteyuki.mkdoc"},"headers":[],"relativePath":"dev/api/mkdoc.md","filePath":"zh/dev/api/mkdoc.md","lastUpdated":null}'),n={name:"dev/api/mkdoc.md"},h=t("",71),k=[h];function l(p,e,r,E,d,g){return a(),i("div",null,k)}const o=s(n,[["render",l]]);export{y as __pageData,o as default}; diff --git a/assets/dev_api_mkdoc.md.BQNdAtbl.js b/assets/dev_api_mkdoc.md.CTnAyukw.js similarity index 88% rename from assets/dev_api_mkdoc.md.BQNdAtbl.js rename to assets/dev_api_mkdoc.md.CTnAyukw.js index df3b4393..c77946eb 100644 --- a/assets/dev_api_mkdoc.md.BQNdAtbl.js +++ b/assets/dev_api_mkdoc.md.CTnAyukw.js @@ -1,4 +1,4 @@ -import{_ as s,c as i,o as a,a9 as t}from"./chunks/framework.C4_mTacX.js";const y=JSON.parse('{"title":"liteyuki.mkdoc","description":"","frontmatter":{"title":"liteyuki.mkdoc"},"headers":[],"relativePath":"dev/api/mkdoc.md","filePath":"zh/dev/api/mkdoc.md","lastUpdated":null}'),n={name:"dev/api/mkdoc.md"},h=t(`

模块 liteyuki.mkdoc

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 上午6:23 @Author : snowykami @Email : snowykami@outlook.com @File : mkdoc.py @Software: PyCharm

class DefType(Enum)

attr FUNCTION = 'function'

attr METHOD = 'method'

attr STATIC_METHOD = 'staticmethod'

attr CLASS_METHOD = 'classmethod'

attr PROPERTY = 'property'

class FunctionInfo(BaseModel)

attr name: str = NO_DEFAULT

attr args: list[tuple[str, str]] = NO_DEFAULT

attr return_type: str = NO_DEFAULT

attr docstring: str = NO_DEFAULT

attr source_code: str = ''

attr type: DefType = NO_DEFAULT

attr is_async: bool = NO_DEFAULT

class AttributeInfo(BaseModel)

attr name: str = NO_DEFAULT

attr type: str = NO_DEFAULT

attr value: Any = None

attr docstring: str = ''

class ClassInfo(BaseModel)

attr name: str = NO_DEFAULT

attr docstring: str = NO_DEFAULT

attr methods: list[FunctionInfo] = NO_DEFAULT

attr attributes: list[AttributeInfo] = NO_DEFAULT

attr inherit: list[str] = NO_DEFAULT

class ModuleInfo(BaseModel)

attr module_path: str = NO_DEFAULT

attr functions: list[FunctionInfo] = NO_DEFAULT

attr classes: list[ClassInfo] = NO_DEFAULT

attr attributes: list[AttributeInfo] = NO_DEFAULT

attr docstring: str = NO_DEFAULT


func get_relative_path(base_path: str, target_path: str) -> str

说明: 获取相对路径

参数:

  • base_path: 基础路径
  • target_path: 目标路径
源代码在GitHub上查看
python
def get_relative_path(base_path: str, target_path: str) -> str:
+import{_ as i,c as a,a7 as t,o as n}from"./chunks/framework.jrU0lkHV.js";const g=JSON.parse('{"title":"liteyuki.mkdoc","description":"","frontmatter":{"title":"liteyuki.mkdoc"},"headers":[],"relativePath":"dev/api/mkdoc.md","filePath":"zh/dev/api/mkdoc.md","lastUpdated":null}'),h={name:"dev/api/mkdoc.md"};function k(l,s,p,e,r,E){return n(),a("div",null,s[0]||(s[0]=[t(`

模块 liteyuki.mkdoc

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 上午6:23 @Author : snowykami @Email : snowykami@outlook.com @File : mkdoc.py @Software: PyCharm

class DefType(Enum)

attr FUNCTION = 'function'

attr METHOD = 'method'

attr STATIC_METHOD = 'staticmethod'

attr CLASS_METHOD = 'classmethod'

attr PROPERTY = 'property'

class FunctionInfo(BaseModel)

attr name: str = NO_DEFAULT

attr args: list[tuple[str, str]] = NO_DEFAULT

attr return_type: str = NO_DEFAULT

attr docstring: str = NO_DEFAULT

attr source_code: str = ''

attr type: DefType = NO_DEFAULT

attr is_async: bool = NO_DEFAULT

class AttributeInfo(BaseModel)

attr name: str = NO_DEFAULT

attr type: str = NO_DEFAULT

attr value: Any = None

attr docstring: str = ''

class ClassInfo(BaseModel)

attr name: str = NO_DEFAULT

attr docstring: str = NO_DEFAULT

attr methods: list[FunctionInfo] = NO_DEFAULT

attr attributes: list[AttributeInfo] = NO_DEFAULT

attr inherit: list[str] = NO_DEFAULT

class ModuleInfo(BaseModel)

attr module_path: str = NO_DEFAULT

attr functions: list[FunctionInfo] = NO_DEFAULT

attr classes: list[ClassInfo] = NO_DEFAULT

attr attributes: list[AttributeInfo] = NO_DEFAULT

attr docstring: str = NO_DEFAULT


func get_relative_path(base_path: str, target_path: str) -> str

说明: 获取相对路径

参数:

  • base_path: 基础路径
  • target_path: 目标路径
源代码在GitHub上查看
python
def get_relative_path(base_path: str, target_path: str) -> str:
     return os.path.relpath(target_path, base_path)

func write_to_files(file_data: dict[str, str])

说明: 输出文件

参数:

  • file_data: 文件数据 相对路径
源代码在GitHub上查看
python
def write_to_files(file_data: dict[str, str]):
     for rp, data in file_data.items():
         if not os.path.exists(os.path.dirname(rp)):
@@ -120,4 +120,4 @@ import{_ as s,c as i,o as a,a9 as t}from"./chunks/framework.C4_mTacX.js";const y
         md_content = generate_markdown(module_info, front_matter)
         print(f'Generate {pyfile_path} -> {abs_md_path}')
         file_data[abs_md_path] = md_content
-    write_to_files(file_data)

var no_module_name_pyfile_path

  • 说明: 去头路径

  • 默认值: get_relative_path(module_folder, pyfile_path)

`,71),k=[h];function l(p,e,r,E,d,g){return a(),i("div",null,k)}const o=s(n,[["render",l]]);export{y as __pageData,o as default}; + write_to_files(file_data)

var no_module_name_pyfile_path

  • 说明: 去头路径

  • 默认值: get_relative_path(module_folder, pyfile_path)

`,71)]))}const F=i(h,[["render",k]]);export{g as __pageData,F as default}; diff --git a/assets/dev_api_mkdoc.md.CTnAyukw.lean.js b/assets/dev_api_mkdoc.md.CTnAyukw.lean.js new file mode 100644 index 00000000..c77946eb --- /dev/null +++ b/assets/dev_api_mkdoc.md.CTnAyukw.lean.js @@ -0,0 +1,123 @@ +import{_ as i,c as a,a7 as t,o as n}from"./chunks/framework.jrU0lkHV.js";const g=JSON.parse('{"title":"liteyuki.mkdoc","description":"","frontmatter":{"title":"liteyuki.mkdoc"},"headers":[],"relativePath":"dev/api/mkdoc.md","filePath":"zh/dev/api/mkdoc.md","lastUpdated":null}'),h={name:"dev/api/mkdoc.md"};function k(l,s,p,e,r,E){return n(),a("div",null,s[0]||(s[0]=[t(`

模块 liteyuki.mkdoc

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 上午6:23 @Author : snowykami @Email : snowykami@outlook.com @File : mkdoc.py @Software: PyCharm

class DefType(Enum)

attr FUNCTION = 'function'

attr METHOD = 'method'

attr STATIC_METHOD = 'staticmethod'

attr CLASS_METHOD = 'classmethod'

attr PROPERTY = 'property'

class FunctionInfo(BaseModel)

attr name: str = NO_DEFAULT

attr args: list[tuple[str, str]] = NO_DEFAULT

attr return_type: str = NO_DEFAULT

attr docstring: str = NO_DEFAULT

attr source_code: str = ''

attr type: DefType = NO_DEFAULT

attr is_async: bool = NO_DEFAULT

class AttributeInfo(BaseModel)

attr name: str = NO_DEFAULT

attr type: str = NO_DEFAULT

attr value: Any = None

attr docstring: str = ''

class ClassInfo(BaseModel)

attr name: str = NO_DEFAULT

attr docstring: str = NO_DEFAULT

attr methods: list[FunctionInfo] = NO_DEFAULT

attr attributes: list[AttributeInfo] = NO_DEFAULT

attr inherit: list[str] = NO_DEFAULT

class ModuleInfo(BaseModel)

attr module_path: str = NO_DEFAULT

attr functions: list[FunctionInfo] = NO_DEFAULT

attr classes: list[ClassInfo] = NO_DEFAULT

attr attributes: list[AttributeInfo] = NO_DEFAULT

attr docstring: str = NO_DEFAULT


func get_relative_path(base_path: str, target_path: str) -> str

说明: 获取相对路径

参数:

  • base_path: 基础路径
  • target_path: 目标路径
源代码在GitHub上查看
python
def get_relative_path(base_path: str, target_path: str) -> str:
+    return os.path.relpath(target_path, base_path)

func write_to_files(file_data: dict[str, str])

说明: 输出文件

参数:

  • file_data: 文件数据 相对路径
源代码在GitHub上查看
python
def write_to_files(file_data: dict[str, str]):
+    for rp, data in file_data.items():
+        if not os.path.exists(os.path.dirname(rp)):
+            os.makedirs(os.path.dirname(rp))
+        with open(rp, 'w', encoding='utf-8') as f:
+            f.write(data)

func get_file_list(module_folder: str)

源代码在GitHub上查看
python
def get_file_list(module_folder: str):
+    file_list = []
+    for root, dirs, files in os.walk(module_folder):
+        for file in files:
+            if file.endswith(('.py', '.pyi')):
+                file_list.append(os.path.join(root, file))
+    return file_list

func get_module_info_normal(file_path: str, ignore_private: bool = True) -> ModuleInfo

说明: 获取函数和类

参数:

  • file_path: Python 文件路径
  • ignore_private: 忽略私有函数和类

返回: 模块信息

源代码在GitHub上查看
python
def get_module_info_normal(file_path: str, ignore_private: bool=True) -> ModuleInfo:
+    with open(file_path, 'r', encoding='utf-8') as file:
+        file_content = file.read()
+        tree = ast.parse(file_content)
+    dot_sep_module_path = file_path.replace(os.sep, '.').replace('.py', '').replace('.pyi', '')
+    module_docstring = ast.get_docstring(tree)
+    module_info = ModuleInfo(module_path=dot_sep_module_path, functions=[], classes=[], attributes=[], docstring=module_docstring if module_docstring else '')
+    for node in ast.walk(tree):
+        if isinstance(node, (ast.FunctionDef, ast.AsyncFunctionDef)):
+            if not any((isinstance(parent, ast.ClassDef) for parent in ast.iter_child_nodes(node))) and (not ignore_private or not node.name.startswith('_')):
+                if node.args.args:
+                    first_arg = node.args.args[0]
+                    if first_arg.arg in ('self', 'cls'):
+                        continue
+                function_docstring = ast.get_docstring(node)
+                func_info = FunctionInfo(name=node.name, args=[(arg.arg, ast.unparse(arg.annotation) if arg.annotation else NO_TYPE_ANY) for arg in node.args.args], return_type=ast.unparse(node.returns) if node.returns else 'None', docstring=function_docstring if function_docstring else '', type=DefType.FUNCTION, is_async=isinstance(node, ast.AsyncFunctionDef), source_code=ast.unparse(node))
+                module_info.functions.append(func_info)
+        elif isinstance(node, ast.ClassDef):
+            class_docstring = ast.get_docstring(node)
+            class_info = ClassInfo(name=node.name, docstring=class_docstring if class_docstring else '', methods=[], attributes=[], inherit=[ast.unparse(base) for base in node.bases])
+            for class_node in node.body:
+                if isinstance(class_node, ast.FunctionDef) and (not ignore_private or not class_node.name.startswith('_') or class_node.name == '__init__'):
+                    method_docstring = ast.get_docstring(class_node)
+                    def_type = DefType.METHOD
+                    if class_node.decorator_list:
+                        if any((isinstance(decorator, ast.Name) and decorator.id == 'staticmethod' for decorator in class_node.decorator_list)):
+                            def_type = DefType.STATIC_METHOD
+                        elif any((isinstance(decorator, ast.Name) and decorator.id == 'classmethod' for decorator in class_node.decorator_list)):
+                            def_type = DefType.CLASS_METHOD
+                        elif any((isinstance(decorator, ast.Name) and decorator.id == 'property' for decorator in class_node.decorator_list)):
+                            def_type = DefType.PROPERTY
+                    class_info.methods.append(FunctionInfo(name=class_node.name, args=[(arg.arg, ast.unparse(arg.annotation) if arg.annotation else NO_TYPE_ANY) for arg in class_node.args.args], return_type=ast.unparse(class_node.returns) if class_node.returns else 'None', docstring=method_docstring if method_docstring else '', type=def_type, is_async=isinstance(class_node, ast.AsyncFunctionDef), source_code=ast.unparse(class_node)))
+                elif isinstance(class_node, ast.Assign):
+                    for target in class_node.targets:
+                        if isinstance(target, ast.Name):
+                            class_info.attributes.append(AttributeInfo(name=target.id, type=ast.unparse(class_node.value)))
+            module_info.classes.append(class_info)
+        elif isinstance(node, ast.Assign):
+            if not any((isinstance(parent, (ast.ClassDef, ast.FunctionDef)) for parent in ast.iter_child_nodes(node))):
+                for target in node.targets:
+                    if isinstance(target, ast.Name) and (not ignore_private or not target.id.startswith('_')):
+                        attr_type = NO_TYPE_HINT
+                        if isinstance(node.value, ast.AnnAssign) and node.value.annotation:
+                            attr_type = ast.unparse(node.value.annotation)
+                        module_info.attributes.append(AttributeInfo(name=target.id, type=attr_type, value=ast.unparse(node.value) if node.value else None))
+    return module_info

func generate_markdown(module_info: ModuleInfo, front_matter = None, lang: str = 'zh-CN') -> str

说明: 生成模块的Markdown 你可在此自定义生成的Markdown格式

参数:

  • module_info: 模块信息
  • front_matter: 自定义选项title, index, icon, category
  • lang: 语言

返回: Markdown 字符串

源代码在GitHub上查看
python
def generate_markdown(module_info: ModuleInfo, front_matter=None, lang: str='zh-CN') -> str:
+    content = ''
+    front_matter = '---\\n' + '\\n'.join([f'{k}: {v}' for k, v in front_matter.items()]) + '\\n---\\n\\n'
+    content += front_matter
+    for func in module_info.functions:
+        args_with_type = [f'{arg[0]}: {arg[1]}' if arg[1] else arg[0] for arg in func.args]
+        content += f"### ***{('async ' if func.is_async else '')}def*** \`{func.name}({', '.join(args_with_type)}) -> {func.return_type}\`\\n\\n"
+        func.docstring = func.docstring.replace('\\n', '\\n\\n')
+        content += f'{func.docstring}\\n\\n'
+        content += f'<details>\\n<summary>源代码</summary>\\n\\n\`\`\`python\\n{func.source_code}\\n\`\`\`\\n</details>\\n\\n'
+    for cls in module_info.classes:
+        if cls.inherit:
+            inherit = f"({', '.join(cls.inherit)})" if cls.inherit else ''
+            content += f'### ***class*** \`{cls.name}{inherit}\`\\n\\n'
+        else:
+            content += f'### ***class*** \`{cls.name}\`\\n\\n'
+        cls.docstring = cls.docstring.replace('\\n', '\\n\\n')
+        content += f'{cls.docstring}\\n\\n'
+        for method in cls.methods:
+            if method.type != DefType.METHOD:
+                args_with_type = [f'{arg[0]}: {arg[1]}' if arg[1] else arg[0] for arg in method.args]
+                content += f'### &emsp; ***@{method.type.value}***\\n'
+            else:
+                args_with_type = [f'{arg[0]}: {arg[1]}' if arg[1] and arg[0] != 'self' else arg[0] for arg in method.args]
+            content += f"### &emsp; ***{('async ' if method.is_async else '')}def*** \`{method.name}({', '.join(args_with_type)}) -> {method.return_type}\`\\n\\n"
+            method.docstring = method.docstring.replace('\\n', '\\n\\n')
+            content += f'&emsp;{method.docstring}\\n\\n'
+            if lang == 'zh-CN':
+                TEXT_SOURCE_CODE = '源代码'
+            else:
+                TEXT_SOURCE_CODE = 'Source Code'
+            content += f'<details>\\n<summary>{TEXT_SOURCE_CODE}</summary>\\n\\n\`\`\`python\\n{method.source_code}\\n\`\`\`\\n</details>\\n\\n'
+        for attr in cls.attributes:
+            content += f'### &emsp; ***attr*** \`{attr.name}: {attr.type}\`\\n\\n'
+    for attr in module_info.attributes:
+        if attr.type == NO_TYPE_HINT:
+            content += f'### ***var*** \`{attr.name} = {attr.value}\`\\n\\n'
+        else:
+            content += f'### ***var*** \`{attr.name}: {attr.type} = {attr.value}\`\\n\\n'
+        attr.docstring = attr.docstring.replace('\\n', '\\n\\n')
+        content += f'{attr.docstring}\\n\\n'
+    return content

func generate_docs(module_folder: str, output_dir: str, with_top: bool = False, lang: str = 'zh-CN', ignored_paths = None)

说明: 生成文档

参数:

  • module_folder: 模块文件夹
  • output_dir: 输出文件夹
  • with_top: 是否包含顶层文件夹 False时例如docs/api/module_a, docs/api/module_b, True时例如docs/api/module/module_a.md, docs/api/module/module_b.md
  • ignored_paths: 忽略的路径
  • lang: 语言
源代码在GitHub上查看
python
def generate_docs(module_folder: str, output_dir: str, with_top: bool=False, lang: str='zh-CN', ignored_paths=None):
+    if ignored_paths is None:
+        ignored_paths = []
+    file_data: dict[str, str] = {}
+    file_list = get_file_list(module_folder)
+    shutil.rmtree(output_dir, ignore_errors=True)
+    os.mkdir(output_dir)
+    replace_data = {'__init__': 'README', '.py': '.md'}
+    for pyfile_path in file_list:
+        if any((ignored_path.replace('\\\\', '/') in pyfile_path.replace('\\\\', '/') for ignored_path in ignored_paths)):
+            continue
+        no_module_name_pyfile_path = get_relative_path(module_folder, pyfile_path)
+        rel_md_path = pyfile_path if with_top else no_module_name_pyfile_path
+        for rk, rv in replace_data.items():
+            rel_md_path = rel_md_path.replace(rk, rv)
+        abs_md_path = os.path.join(output_dir, rel_md_path)
+        module_info = get_module_info_normal(pyfile_path)
+        if 'README' in abs_md_path:
+            front_matter = {'title': module_info.module_path.replace('.__init__', '').replace('_', '\\\\n'), 'index': 'true', 'icon': 'laptop-code', 'category': 'API'}
+        else:
+            front_matter = {'title': module_info.module_path.replace('_', '\\\\n'), 'order': '1', 'icon': 'laptop-code', 'category': 'API'}
+        md_content = generate_markdown(module_info, front_matter)
+        print(f'Generate {pyfile_path} -> {abs_md_path}')
+        file_data[abs_md_path] = md_content
+    write_to_files(file_data)

var no_module_name_pyfile_path

  • 说明: 去头路径

  • 默认值: get_relative_path(module_folder, pyfile_path)

`,71)]))}const F=i(h,[["render",k]]);export{g as __pageData,F as default}; diff --git a/assets/dev_api_plugin_index.md.DyFjlTCa.js b/assets/dev_api_plugin_index.md.DyFjlTCa.js deleted file mode 100644 index fb6d762e..00000000 --- a/assets/dev_api_plugin_index.md.DyFjlTCa.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as i,c as t,o as e,a9 as s}from"./chunks/framework.C4_mTacX.js";const _=JSON.parse('{"title":"liteyuki.plugin","description":"","frontmatter":{"title":"liteyuki.plugin","collapsed":true},"headers":[],"relativePath":"dev/api/plugin/index.md","filePath":"zh/dev/api/plugin/index.md","lastUpdated":null}'),a={name:"dev/api/plugin/index.md"},n=s('

模块 liteyuki.plugin


func get_loaded_plugins() -> dict[str, Plugin]

说明: 获取已加载的插件

返回: dict[str, Plugin]: 插件字典

源代码在GitHub上查看
python
def get_loaded_plugins() -> dict[str, Plugin]:\n    return _plugins
',6),l=[n];function d(p,r,o,u,g,h){return e(),t("div",null,l)}const k=i(a,[["render",d]]);export{_ as __pageData,k as default}; diff --git a/assets/dev_api_plugin_index.md.DyFjlTCa.lean.js b/assets/dev_api_plugin_index.md.DyFjlTCa.lean.js deleted file mode 100644 index 27033e4a..00000000 --- a/assets/dev_api_plugin_index.md.DyFjlTCa.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as i,c as t,o as e,a9 as s}from"./chunks/framework.C4_mTacX.js";const _=JSON.parse('{"title":"liteyuki.plugin","description":"","frontmatter":{"title":"liteyuki.plugin","collapsed":true},"headers":[],"relativePath":"dev/api/plugin/index.md","filePath":"zh/dev/api/plugin/index.md","lastUpdated":null}'),a={name:"dev/api/plugin/index.md"},n=s("",6),l=[n];function d(p,r,o,u,g,h){return e(),t("div",null,l)}const k=i(a,[["render",d]]);export{_ as __pageData,k as default}; diff --git a/assets/dev_api_plugin_index.md.T2gAKhVl.js b/assets/dev_api_plugin_index.md.T2gAKhVl.js new file mode 100644 index 00000000..59458c69 --- /dev/null +++ b/assets/dev_api_plugin_index.md.T2gAKhVl.js @@ -0,0 +1 @@ +import{_ as t,c as e,a7 as s,o as a}from"./chunks/framework.jrU0lkHV.js";const h=JSON.parse('{"title":"liteyuki.plugin","description":"","frontmatter":{"title":"liteyuki.plugin","collapsed":true},"headers":[],"relativePath":"dev/api/plugin/index.md","filePath":"zh/dev/api/plugin/index.md","lastUpdated":null}'),n={name:"dev/api/plugin/index.md"};function l(p,i,d,r,o,u){return a(),e("div",null,i[0]||(i[0]=[s('

模块 liteyuki.plugin


func get_loaded_plugins() -> dict[str, Plugin]

说明: 获取已加载的插件

返回: dict[str, Plugin]: 插件字典

源代码在GitHub上查看
python
def get_loaded_plugins() -> dict[str, Plugin]:\n    return _plugins
',6)]))}const c=t(n,[["render",l]]);export{h as __pageData,c as default}; diff --git a/assets/dev_api_plugin_index.md.T2gAKhVl.lean.js b/assets/dev_api_plugin_index.md.T2gAKhVl.lean.js new file mode 100644 index 00000000..59458c69 --- /dev/null +++ b/assets/dev_api_plugin_index.md.T2gAKhVl.lean.js @@ -0,0 +1 @@ +import{_ as t,c as e,a7 as s,o as a}from"./chunks/framework.jrU0lkHV.js";const h=JSON.parse('{"title":"liteyuki.plugin","description":"","frontmatter":{"title":"liteyuki.plugin","collapsed":true},"headers":[],"relativePath":"dev/api/plugin/index.md","filePath":"zh/dev/api/plugin/index.md","lastUpdated":null}'),n={name:"dev/api/plugin/index.md"};function l(p,i,d,r,o,u){return a(),e("div",null,i[0]||(i[0]=[s('

模块 liteyuki.plugin


func get_loaded_plugins() -> dict[str, Plugin]

说明: 获取已加载的插件

返回: dict[str, Plugin]: 插件字典

源代码在GitHub上查看
python
def get_loaded_plugins() -> dict[str, Plugin]:\n    return _plugins
',6)]))}const c=t(n,[["render",l]]);export{h as __pageData,c as default}; diff --git a/assets/dev_api_plugin_load.md.C496SdCj.lean.js b/assets/dev_api_plugin_load.md.C496SdCj.lean.js deleted file mode 100644 index b98d87c2..00000000 --- a/assets/dev_api_plugin_load.md.C496SdCj.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as h,D as l,c as k,j as i,a as s,I as t,w as p,a9 as a,o as e}from"./chunks/framework.C4_mTacX.js";const B=JSON.parse('{"title":"liteyuki.plugin.load","description":"","frontmatter":{"title":"liteyuki.plugin.load"},"headers":[],"relativePath":"dev/api/plugin/load.md","filePath":"zh/dev/api/plugin/load.md","lastUpdated":null}'),E={name:"dev/api/plugin/load.md"},d=a("",20),r=i("strong",null,"返回",-1),g=a("",1);function y(F,o,u,_,C,c){const n=l("y");return e(),k("div",null,[d,i("p",null,[r,s(": str: 设置后的插件名称 "),t(n,null,{default:p(()=>[s("name")]),_:1})]),g])}const A=h(E,[["render",y]]);export{B as __pageData,A as default}; diff --git a/assets/dev_api_plugin_load.md.C496SdCj.js b/assets/dev_api_plugin_load.md.kHIr9w4H.js similarity index 89% rename from assets/dev_api_plugin_load.md.C496SdCj.js rename to assets/dev_api_plugin_load.md.kHIr9w4H.js index 777296fe..a9c18f1f 100644 --- a/assets/dev_api_plugin_load.md.C496SdCj.js +++ b/assets/dev_api_plugin_load.md.kHIr9w4H.js @@ -1,4 +1,4 @@ -import{_ as h,D as l,c as k,j as i,a as s,I as t,w as p,a9 as a,o as e}from"./chunks/framework.C4_mTacX.js";const B=JSON.parse('{"title":"liteyuki.plugin.load","description":"","frontmatter":{"title":"liteyuki.plugin.load"},"headers":[],"relativePath":"dev/api/plugin/load.md","filePath":"zh/dev/api/plugin/load.md","lastUpdated":null}'),E={name:"dev/api/plugin/load.md"},d=a(`

模块 liteyuki.plugin.load

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/23 下午11:59 @Author : snowykami @Email : snowykami@outlook.com @File : load.py @Software: PyCharm


func load_plugin(module_path: str | Path) -> Optional[Plugin]

说明: 加载单个插件,可以是本地插件或是通过 pip 安装的插件。

参数:

  • module_path: 插件名称 path.to.your.plugin
  • 或插件路径 pathlib.Path(path/to/your/plugin):
源代码在GitHub上查看
python
def load_plugin(module_path: str | Path) -> Optional[Plugin]:
+import{_ as l,c as k,a7 as i,j as a,a as n,G as t,w as p,B as e,o as E}from"./chunks/framework.jrU0lkHV.js";const _=JSON.parse('{"title":"liteyuki.plugin.load","description":"","frontmatter":{"title":"liteyuki.plugin.load"},"headers":[],"relativePath":"dev/api/plugin/load.md","filePath":"zh/dev/api/plugin/load.md","lastUpdated":null}'),d={name:"dev/api/plugin/load.md"};function r(g,s,y,F,o,u){const h=e("y");return E(),k("div",null,[s[3]||(s[3]=i(`

模块 liteyuki.plugin.load

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/23 下午11:59 @Author : snowykami @Email : snowykami@outlook.com @File : load.py @Software: PyCharm


func load_plugin(module_path: str | Path) -> Optional[Plugin]

说明: 加载单个插件,可以是本地插件或是通过 pip 安装的插件。

参数:

  • module_path: 插件名称 path.to.your.plugin
  • 或插件路径 pathlib.Path(path/to/your/plugin):
源代码在GitHub上查看
python
def load_plugin(module_path: str | Path) -> Optional[Plugin]:
     module_path = path_to_module_name(Path(module_path)) if isinstance(module_path, Path) else module_path
     try:
         module = import_module(module_path)
@@ -48,7 +48,7 @@ import{_ as h,D as l,c as k,j as i,a as s,I as t,w as p,a9 as a,o as e}from"./ch
                 load_plugin(module_name)
                 if _plugins.get(module_name):
                     plugins.add(_plugins[module_name])
-    return plugins

func format_display_name(display_name: str, plugin_type: PluginType) -> str

说明: 设置插件名称颜色,根据不同类型插件设置颜色

参数:

  • display_name: 插件名称
  • plugin_type: 插件类型
`,20),r=i("strong",null,"返回",-1),g=a(`
源代码在GitHub上查看
python
def format_display_name(display_name: str, plugin_type: PluginType) -> str:
+    return plugins

func format_display_name(display_name: str, plugin_type: PluginType) -> str

说明: 设置插件名称颜色,根据不同类型插件设置颜色

参数:

  • display_name: 插件名称
  • plugin_type: 插件类型
`,20)),a("p",null,[s[1]||(s[1]=a("strong",null,"返回",-1)),s[2]||(s[2]=n(": str: 设置后的插件名称 ")),t(h,null,{default:p(()=>s[0]||(s[0]=[n("name")])),_:1})]),s[4]||(s[4]=i(`
源代码在GitHub上查看
python
def format_display_name(display_name: str, plugin_type: PluginType) -> str:
     color = 'y'
     match plugin_type:
         case PluginType.APPLICATION:
@@ -59,4 +59,4 @@ import{_ as h,D as l,c as k,j as i,a as s,I as t,w as p,a9 as a,o as e}from"./ch
             color = 'e'
         case PluginType.SERVICE:
             color = 'c'
-    return f'<{color}>{display_name} [{plugin_type.name}]</{color}>'
`,1);function y(F,o,u,_,C,c){const n=l("y");return e(),k("div",null,[d,i("p",null,[r,s(": str: 设置后的插件名称 "),t(n,null,{default:p(()=>[s("name")]),_:1})]),g])}const A=h(E,[["render",y]]);export{B as __pageData,A as default}; + return f'<{color}>{display_name} [{plugin_type.name}]</{color}>'
`,1))])}const c=l(d,[["render",r]]);export{_ as __pageData,c as default}; diff --git a/assets/dev_api_plugin_load.md.kHIr9w4H.lean.js b/assets/dev_api_plugin_load.md.kHIr9w4H.lean.js new file mode 100644 index 00000000..a9c18f1f --- /dev/null +++ b/assets/dev_api_plugin_load.md.kHIr9w4H.lean.js @@ -0,0 +1,62 @@ +import{_ as l,c as k,a7 as i,j as a,a as n,G as t,w as p,B as e,o as E}from"./chunks/framework.jrU0lkHV.js";const _=JSON.parse('{"title":"liteyuki.plugin.load","description":"","frontmatter":{"title":"liteyuki.plugin.load"},"headers":[],"relativePath":"dev/api/plugin/load.md","filePath":"zh/dev/api/plugin/load.md","lastUpdated":null}'),d={name:"dev/api/plugin/load.md"};function r(g,s,y,F,o,u){const h=e("y");return E(),k("div",null,[s[3]||(s[3]=i(`

模块 liteyuki.plugin.load

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/23 下午11:59 @Author : snowykami @Email : snowykami@outlook.com @File : load.py @Software: PyCharm


func load_plugin(module_path: str | Path) -> Optional[Plugin]

说明: 加载单个插件,可以是本地插件或是通过 pip 安装的插件。

参数:

  • module_path: 插件名称 path.to.your.plugin
  • 或插件路径 pathlib.Path(path/to/your/plugin):
源代码在GitHub上查看
python
def load_plugin(module_path: str | Path) -> Optional[Plugin]:
+    module_path = path_to_module_name(Path(module_path)) if isinstance(module_path, Path) else module_path
+    try:
+        module = import_module(module_path)
+        _plugins[module.__name__] = Plugin(name=module.__name__, module=module, module_name=module_path)
+        if module.__dict__.get('__plugin_metadata__', None):
+            metadata: 'PluginMetadata' = module.__dict__['__plugin_metadata__']
+            display_name = module.__name__.split('.')[-1]
+        elif module.__dict__.get('__liteyuki_plugin_meta__', None):
+            metadata: 'PluginMetadata' = module.__dict__['__liteyuki_plugin_meta__']
+            display_name = format_display_name(f"{metadata.name}({module.__name__.split('.')[-1]})", metadata.type)
+        elif module.__dict__.get('__plugin_meta__', None):
+            metadata: 'PluginMetadata' = module.__dict__['__plugin_meta__']
+            display_name = format_display_name(f"{metadata.name}({module.__name__.split('.')[-1]})", metadata.type)
+        else:
+            logger.opt(colors=True).warning(f'The metadata of Liteyuki plugin "{module.__name__}" is not specified, use empty.')
+            metadata = PluginMetadata(name=module.__name__)
+            display_name = module.__name__.split('.')[-1]
+        _plugins[module.__name__].metadata = metadata
+        logger.opt(colors=True).success(f'Succeeded to load liteyuki plugin "{display_name}"')
+        return _plugins[module.__name__]
+    except Exception as e:
+        logger.opt(colors=True).success(f'Failed to load liteyuki plugin "<r>{module_path}</r>"')
+        traceback.print_exc()
+        return None

func load_plugins(*plugin_dir: str, *, ignore_warning: bool = True) -> set[Plugin]

说明: 导入文件夹下多个插件

参数:

  • plugin_dir: 文件夹路径
  • ignore_warning: 是否忽略警告,通常是目录不存在或目录为空
源代码在GitHub上查看
python
def load_plugins(*plugin_dir: str, ignore_warning: bool=True) -> set[Plugin]:
+    plugins = set()
+    for dir_path in plugin_dir:
+        if not os.path.exists(dir_path):
+            if not ignore_warning:
+                logger.warning(f"Plugins dir '{dir_path}' does not exist.")
+            continue
+        if not os.listdir(dir_path):
+            if not ignore_warning:
+                logger.warning(f"Plugins dir '{dir_path}' is empty.")
+            continue
+        if not os.path.isdir(dir_path):
+            if not ignore_warning:
+                logger.warning(f"Plugins dir '{dir_path}' is not a directory.")
+            continue
+        for f in os.listdir(dir_path):
+            path = Path(os.path.join(dir_path, f))
+            module_name = None
+            if os.path.isfile(path) and f.endswith('.py') and (f != '__init__.py'):
+                module_name = f'{path_to_module_name(Path(dir_path))}.{f[:-3]}'
+            elif os.path.isdir(path) and os.path.exists(os.path.join(path, '__init__.py')):
+                module_name = path_to_module_name(path)
+            if module_name:
+                load_plugin(module_name)
+                if _plugins.get(module_name):
+                    plugins.add(_plugins[module_name])
+    return plugins

func format_display_name(display_name: str, plugin_type: PluginType) -> str

说明: 设置插件名称颜色,根据不同类型插件设置颜色

参数:

  • display_name: 插件名称
  • plugin_type: 插件类型
`,20)),a("p",null,[s[1]||(s[1]=a("strong",null,"返回",-1)),s[2]||(s[2]=n(": str: 设置后的插件名称 ")),t(h,null,{default:p(()=>s[0]||(s[0]=[n("name")])),_:1})]),s[4]||(s[4]=i(`
源代码在GitHub上查看
python
def format_display_name(display_name: str, plugin_type: PluginType) -> str:
+    color = 'y'
+    match plugin_type:
+        case PluginType.APPLICATION:
+            color = 'm'
+        case PluginType.TEST:
+            color = 'g'
+        case PluginType.MODULE:
+            color = 'e'
+        case PluginType.SERVICE:
+            color = 'c'
+    return f'<{color}>{display_name} [{plugin_type.name}]</{color}>'
`,1))])}const c=l(d,[["render",r]]);export{_ as __pageData,c as default}; diff --git a/assets/dev_api_plugin_manager.md.B4LvaDGc.js b/assets/dev_api_plugin_manager.md.B4LvaDGc.js new file mode 100644 index 00000000..2792d624 --- /dev/null +++ b/assets/dev_api_plugin_manager.md.B4LvaDGc.js @@ -0,0 +1 @@ +import{_ as i,c as n,j as e,a,o as l}from"./chunks/framework.jrU0lkHV.js";const c=JSON.parse('{"title":"liteyuki.plugin.manager","description":"","frontmatter":{"title":"liteyuki.plugin.manager"},"headers":[],"relativePath":"dev/api/plugin/manager.md","filePath":"zh/dev/api/plugin/manager.md","lastUpdated":null}'),r={name:"dev/api/plugin/manager.md"};function o(m,t,u,p,s,g){return l(),n("div",null,t[0]||(t[0]=[e("h1",{id:"模块-liteyuki-plugin-manager",tabindex:"-1"},[e("strong",null,"模块"),a(),e("code",null,"liteyuki.plugin.manager"),a(),e("a",{class:"header-anchor",href:"#模块-liteyuki-plugin-manager","aria-label":'Permalink to "**模块** `liteyuki.plugin.manager`"'},"​")],-1),e("p",null,"Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved",-1),e("p",null,[a("@Time : 2024/7/23 下午11:59 @Author : snowykami @Email : "),e("a",{href:"mailto:snowykami@outlook.com",target:"_blank",rel:"noreferrer"},"snowykami@outlook.com"),a(" @File : manager.py @Software: PyCharm")],-1)]))}const k=i(r,[["render",o]]);export{c as __pageData,k as default}; diff --git a/assets/dev_api_plugin_manager.md.B4LvaDGc.lean.js b/assets/dev_api_plugin_manager.md.B4LvaDGc.lean.js new file mode 100644 index 00000000..2792d624 --- /dev/null +++ b/assets/dev_api_plugin_manager.md.B4LvaDGc.lean.js @@ -0,0 +1 @@ +import{_ as i,c as n,j as e,a,o as l}from"./chunks/framework.jrU0lkHV.js";const c=JSON.parse('{"title":"liteyuki.plugin.manager","description":"","frontmatter":{"title":"liteyuki.plugin.manager"},"headers":[],"relativePath":"dev/api/plugin/manager.md","filePath":"zh/dev/api/plugin/manager.md","lastUpdated":null}'),r={name:"dev/api/plugin/manager.md"};function o(m,t,u,p,s,g){return l(),n("div",null,t[0]||(t[0]=[e("h1",{id:"模块-liteyuki-plugin-manager",tabindex:"-1"},[e("strong",null,"模块"),a(),e("code",null,"liteyuki.plugin.manager"),a(),e("a",{class:"header-anchor",href:"#模块-liteyuki-plugin-manager","aria-label":'Permalink to "**模块** `liteyuki.plugin.manager`"'},"​")],-1),e("p",null,"Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved",-1),e("p",null,[a("@Time : 2024/7/23 下午11:59 @Author : snowykami @Email : "),e("a",{href:"mailto:snowykami@outlook.com",target:"_blank",rel:"noreferrer"},"snowykami@outlook.com"),a(" @File : manager.py @Software: PyCharm")],-1)]))}const k=i(r,[["render",o]]);export{c as __pageData,k as default}; diff --git a/assets/dev_api_plugin_manager.md.WWoouVFL.js b/assets/dev_api_plugin_manager.md.WWoouVFL.js deleted file mode 100644 index 8628af31..00000000 --- a/assets/dev_api_plugin_manager.md.WWoouVFL.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as t,c as i,o as n,j as e,a}from"./chunks/framework.C4_mTacX.js";const y=JSON.parse('{"title":"liteyuki.plugin.manager","description":"","frontmatter":{"title":"liteyuki.plugin.manager"},"headers":[],"relativePath":"dev/api/plugin/manager.md","filePath":"zh/dev/api/plugin/manager.md","lastUpdated":null}'),l={name:"dev/api/plugin/manager.md"},r=e("h1",{id:"模块-liteyuki-plugin-manager",tabindex:"-1"},[e("strong",null,"模块"),a(),e("code",null,"liteyuki.plugin.manager"),a(),e("a",{class:"header-anchor",href:"#模块-liteyuki-plugin-manager","aria-label":'Permalink to "**模块** `liteyuki.plugin.manager`"'},"​")],-1),o=e("p",null,"Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved",-1),s=e("p",null,[a("@Time : 2024/7/23 下午11:59 @Author : snowykami @Email : "),e("a",{href:"mailto:snowykami@outlook.com",target:"_blank",rel:"noreferrer"},"snowykami@outlook.com"),a(" @File : manager.py @Software: PyCharm")],-1),m=[r,o,s];function u(p,d,c,g,_,h){return n(),i("div",null,m)}const f=t(l,[["render",u]]);export{y as __pageData,f as default}; diff --git a/assets/dev_api_plugin_manager.md.WWoouVFL.lean.js b/assets/dev_api_plugin_manager.md.WWoouVFL.lean.js deleted file mode 100644 index 8628af31..00000000 --- a/assets/dev_api_plugin_manager.md.WWoouVFL.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as t,c as i,o as n,j as e,a}from"./chunks/framework.C4_mTacX.js";const y=JSON.parse('{"title":"liteyuki.plugin.manager","description":"","frontmatter":{"title":"liteyuki.plugin.manager"},"headers":[],"relativePath":"dev/api/plugin/manager.md","filePath":"zh/dev/api/plugin/manager.md","lastUpdated":null}'),l={name:"dev/api/plugin/manager.md"},r=e("h1",{id:"模块-liteyuki-plugin-manager",tabindex:"-1"},[e("strong",null,"模块"),a(),e("code",null,"liteyuki.plugin.manager"),a(),e("a",{class:"header-anchor",href:"#模块-liteyuki-plugin-manager","aria-label":'Permalink to "**模块** `liteyuki.plugin.manager`"'},"​")],-1),o=e("p",null,"Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved",-1),s=e("p",null,[a("@Time : 2024/7/23 下午11:59 @Author : snowykami @Email : "),e("a",{href:"mailto:snowykami@outlook.com",target:"_blank",rel:"noreferrer"},"snowykami@outlook.com"),a(" @File : manager.py @Software: PyCharm")],-1),m=[r,o,s];function u(p,d,c,g,_,h){return n(),i("div",null,m)}const f=t(l,[["render",u]]);export{y as __pageData,f as default}; diff --git a/assets/dev_api_plugin_model.md.BmVr2u82.js b/assets/dev_api_plugin_model.md.BmVr2u82.js deleted file mode 100644 index 9bd8d0e0..00000000 --- a/assets/dev_api_plugin_model.md.BmVr2u82.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as a,c as t,o as e,a9 as r}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"liteyuki.plugin.model","description":"","frontmatter":{"title":"liteyuki.plugin.model"},"headers":[],"relativePath":"dev/api/plugin/model.md","filePath":"zh/dev/api/plugin/model.md","lastUpdated":null}'),o={name:"dev/api/plugin/model.md"},s=r('

模块 liteyuki.plugin.model

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/24 上午12:02 @Author : snowykami @Email : snowykami@outlook.com @File : model.py @Software: PyCharm

class PluginType(Enum)

attr APPLICATION = 'application'

attr SERVICE = 'service'

attr MODULE = 'module'

attr UNCLASSIFIED = 'unclassified'

attr TEST = 'test'

class PluginMetadata(BaseModel)

attr name: str = NO_DEFAULT

attr description: str = ''

attr usage: str = ''

attr type: PluginType = PluginType.UNCLASSIFIED

attr author: str = ''

attr homepage: str = ''

attr extra: dict[str, Any] = {}

class Plugin(BaseModel)


func hash self

源代码在GitHub上查看
python
def __hash__(self):\n    return hash(self.module_name)

attr model_config = {'arbitrary_types_allowed': True}

attr name: str = NO_DEFAULT

attr module: ModuleType = NO_DEFAULT

attr module_name: str = NO_DEFAULT

attr metadata: Optional[PluginMetadata] = None

',26),i=[s];function l(n,d,h,c,u,m){return e(),t("div",null,i)}const k=a(o,[["render",l]]);export{g as __pageData,k as default}; diff --git a/assets/dev_api_plugin_model.md.BmVr2u82.lean.js b/assets/dev_api_plugin_model.md.BmVr2u82.lean.js deleted file mode 100644 index 7e776a66..00000000 --- a/assets/dev_api_plugin_model.md.BmVr2u82.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as a,c as t,o as e,a9 as r}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"liteyuki.plugin.model","description":"","frontmatter":{"title":"liteyuki.plugin.model"},"headers":[],"relativePath":"dev/api/plugin/model.md","filePath":"zh/dev/api/plugin/model.md","lastUpdated":null}'),o={name:"dev/api/plugin/model.md"},s=r("",26),i=[s];function l(n,d,h,c,u,m){return e(),t("div",null,i)}const k=a(o,[["render",l]]);export{g as __pageData,k as default}; diff --git a/assets/dev_api_plugin_model.md.C2KezkKb.js b/assets/dev_api_plugin_model.md.C2KezkKb.js new file mode 100644 index 00000000..42ea0ea5 --- /dev/null +++ b/assets/dev_api_plugin_model.md.C2KezkKb.js @@ -0,0 +1 @@ +import{_ as t,c as e,a7 as r,o}from"./chunks/framework.jrU0lkHV.js";const m=JSON.parse('{"title":"liteyuki.plugin.model","description":"","frontmatter":{"title":"liteyuki.plugin.model"},"headers":[],"relativePath":"dev/api/plugin/model.md","filePath":"zh/dev/api/plugin/model.md","lastUpdated":null}'),s={name:"dev/api/plugin/model.md"};function i(l,a,n,d,h,u){return o(),e("div",null,a[0]||(a[0]=[r('

模块 liteyuki.plugin.model

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/24 上午12:02 @Author : snowykami @Email : snowykami@outlook.com @File : model.py @Software: PyCharm

class PluginType(Enum)

attr APPLICATION = 'application'

attr SERVICE = 'service'

attr MODULE = 'module'

attr UNCLASSIFIED = 'unclassified'

attr TEST = 'test'

class PluginMetadata(BaseModel)

attr name: str = NO_DEFAULT

attr description: str = ''

attr usage: str = ''

attr type: PluginType = PluginType.UNCLASSIFIED

attr author: str = ''

attr homepage: str = ''

attr extra: dict[str, Any] = {}

class Plugin(BaseModel)


func hash self

源代码在GitHub上查看
python
def __hash__(self):\n    return hash(self.module_name)

attr model_config = {'arbitrary_types_allowed': True}

attr name: str = NO_DEFAULT

attr module: ModuleType = NO_DEFAULT

attr module_name: str = NO_DEFAULT

attr metadata: Optional[PluginMetadata] = None

',26)]))}const p=t(s,[["render",i]]);export{m as __pageData,p as default}; diff --git a/assets/dev_api_plugin_model.md.C2KezkKb.lean.js b/assets/dev_api_plugin_model.md.C2KezkKb.lean.js new file mode 100644 index 00000000..42ea0ea5 --- /dev/null +++ b/assets/dev_api_plugin_model.md.C2KezkKb.lean.js @@ -0,0 +1 @@ +import{_ as t,c as e,a7 as r,o}from"./chunks/framework.jrU0lkHV.js";const m=JSON.parse('{"title":"liteyuki.plugin.model","description":"","frontmatter":{"title":"liteyuki.plugin.model"},"headers":[],"relativePath":"dev/api/plugin/model.md","filePath":"zh/dev/api/plugin/model.md","lastUpdated":null}'),s={name:"dev/api/plugin/model.md"};function i(l,a,n,d,h,u){return o(),e("div",null,a[0]||(a[0]=[r('

模块 liteyuki.plugin.model

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/24 上午12:02 @Author : snowykami @Email : snowykami@outlook.com @File : model.py @Software: PyCharm

class PluginType(Enum)

attr APPLICATION = 'application'

attr SERVICE = 'service'

attr MODULE = 'module'

attr UNCLASSIFIED = 'unclassified'

attr TEST = 'test'

class PluginMetadata(BaseModel)

attr name: str = NO_DEFAULT

attr description: str = ''

attr usage: str = ''

attr type: PluginType = PluginType.UNCLASSIFIED

attr author: str = ''

attr homepage: str = ''

attr extra: dict[str, Any] = {}

class Plugin(BaseModel)


func hash self

源代码在GitHub上查看
python
def __hash__(self):\n    return hash(self.module_name)

attr model_config = {'arbitrary_types_allowed': True}

attr name: str = NO_DEFAULT

attr module: ModuleType = NO_DEFAULT

attr module_name: str = NO_DEFAULT

attr metadata: Optional[PluginMetadata] = None

',26)]))}const p=t(s,[["render",i]]);export{m as __pageData,p as default}; diff --git a/assets/dev_api_plugins_index.md.DKPWPaBA.js b/assets/dev_api_plugins_index.md.DKPWPaBA.js new file mode 100644 index 00000000..3019c2a3 --- /dev/null +++ b/assets/dev_api_plugins_index.md.DKPWPaBA.js @@ -0,0 +1 @@ +import{_ as l,c as n,j as e,a as t,o as a}from"./chunks/framework.jrU0lkHV.js";const m=JSON.parse('{"title":"liteyuki.plugins","description":"","frontmatter":{"title":"liteyuki.plugins","collapsed":true},"headers":[],"relativePath":"dev/api/plugins/index.md","filePath":"zh/dev/api/plugins/index.md","lastUpdated":null}'),s={name:"dev/api/plugins/index.md"};function u(d,i,r,o,p,c){return a(),n("div",null,i[0]||(i[0]=[e("h1",{id:"模块-liteyuki-plugins",tabindex:"-1"},[e("strong",null,"模块"),t(),e("code",null,"liteyuki.plugins"),t(),e("a",{class:"header-anchor",href:"#模块-liteyuki-plugins","aria-label":'Permalink to "**模块** `liteyuki.plugins`"'},"​")],-1),e("p",null,"此模块为内置插件文件夹,用于存放内置插件。 This module is the built-in plugin folder, used to store built-in plugins.",-1)]))}const f=l(s,[["render",u]]);export{m as __pageData,f as default}; diff --git a/assets/dev_api_plugins_index.md.DKPWPaBA.lean.js b/assets/dev_api_plugins_index.md.DKPWPaBA.lean.js new file mode 100644 index 00000000..3019c2a3 --- /dev/null +++ b/assets/dev_api_plugins_index.md.DKPWPaBA.lean.js @@ -0,0 +1 @@ +import{_ as l,c as n,j as e,a as t,o as a}from"./chunks/framework.jrU0lkHV.js";const m=JSON.parse('{"title":"liteyuki.plugins","description":"","frontmatter":{"title":"liteyuki.plugins","collapsed":true},"headers":[],"relativePath":"dev/api/plugins/index.md","filePath":"zh/dev/api/plugins/index.md","lastUpdated":null}'),s={name:"dev/api/plugins/index.md"};function u(d,i,r,o,p,c){return a(),n("div",null,i[0]||(i[0]=[e("h1",{id:"模块-liteyuki-plugins",tabindex:"-1"},[e("strong",null,"模块"),t(),e("code",null,"liteyuki.plugins"),t(),e("a",{class:"header-anchor",href:"#模块-liteyuki-plugins","aria-label":'Permalink to "**模块** `liteyuki.plugins`"'},"​")],-1),e("p",null,"此模块为内置插件文件夹,用于存放内置插件。 This module is the built-in plugin folder, used to store built-in plugins.",-1)]))}const f=l(s,[["render",u]]);export{m as __pageData,f as default}; diff --git a/assets/dev_api_plugins_index.md.kWwCXP54.js b/assets/dev_api_plugins_index.md.kWwCXP54.js deleted file mode 100644 index 44a913b7..00000000 --- a/assets/dev_api_plugins_index.md.kWwCXP54.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as t,c as l,o as n,j as e,a as i}from"./chunks/framework.C4_mTacX.js";const f=JSON.parse('{"title":"liteyuki.plugins","description":"","frontmatter":{"title":"liteyuki.plugins","collapsed":true},"headers":[],"relativePath":"dev/api/plugins/index.md","filePath":"zh/dev/api/plugins/index.md","lastUpdated":null}'),s={name:"dev/api/plugins/index.md"},a=e("h1",{id:"模块-liteyuki-plugins",tabindex:"-1"},[e("strong",null,"模块"),i(),e("code",null,"liteyuki.plugins"),i(),e("a",{class:"header-anchor",href:"#模块-liteyuki-plugins","aria-label":'Permalink to "**模块** `liteyuki.plugins`"'},"​")],-1),o=e("p",null,"此模块为内置插件文件夹,用于存放内置插件。 This module is the built-in plugin folder, used to store built-in plugins.",-1),d=[a,o];function u(r,p,c,_,h,g){return n(),l("div",null,d)}const k=t(s,[["render",u]]);export{f as __pageData,k as default}; diff --git a/assets/dev_api_plugins_index.md.kWwCXP54.lean.js b/assets/dev_api_plugins_index.md.kWwCXP54.lean.js deleted file mode 100644 index 44a913b7..00000000 --- a/assets/dev_api_plugins_index.md.kWwCXP54.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as t,c as l,o as n,j as e,a as i}from"./chunks/framework.C4_mTacX.js";const f=JSON.parse('{"title":"liteyuki.plugins","description":"","frontmatter":{"title":"liteyuki.plugins","collapsed":true},"headers":[],"relativePath":"dev/api/plugins/index.md","filePath":"zh/dev/api/plugins/index.md","lastUpdated":null}'),s={name:"dev/api/plugins/index.md"},a=e("h1",{id:"模块-liteyuki-plugins",tabindex:"-1"},[e("strong",null,"模块"),i(),e("code",null,"liteyuki.plugins"),i(),e("a",{class:"header-anchor",href:"#模块-liteyuki-plugins","aria-label":'Permalink to "**模块** `liteyuki.plugins`"'},"​")],-1),o=e("p",null,"此模块为内置插件文件夹,用于存放内置插件。 This module is the built-in plugin folder, used to store built-in plugins.",-1),d=[a,o];function u(r,p,c,_,h,g){return n(),l("div",null,d)}const k=t(s,[["render",u]]);export{f as __pageData,k as default}; diff --git a/assets/dev_api_plugins_liteecho.md.BlQiZZ9H.js b/assets/dev_api_plugins_liteecho.md.BlQiZZ9H.js new file mode 100644 index 00000000..216a5f3e --- /dev/null +++ b/assets/dev_api_plugins_liteecho.md.BlQiZZ9H.js @@ -0,0 +1 @@ +import{_ as i,c as s,a7 as t,o as a}from"./chunks/framework.jrU0lkHV.js";const d=JSON.parse('{"title":"liteyuki.plugins.liteecho","description":"","frontmatter":{"title":"liteyuki.plugins.liteecho"},"headers":[],"relativePath":"dev/api/plugins/liteecho.md","filePath":"zh/dev/api/plugins/liteecho.md","lastUpdated":null}'),l={name:"dev/api/plugins/liteecho.md"};function n(h,e,o,p,r,k){return a(),s("div",null,e[0]||(e[0]=[t('

模块 liteyuki.plugins.liteecho

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/22 下午12:31 @Author : snowykami @Email : snowykami@outlook.com @File : liteecho.py @Software: PyCharm


@on_startswith(['liteecho'], rule=is_su_rule).handle()

async func liteecho(event: MessageEvent)

源代码在GitHub上查看
python
@on_startswith(['liteecho'], rule=is_su_rule).handle()\nasync def liteecho(event: MessageEvent):\n    event.reply(event.raw_message.strip()[8:].strip())
',7)]))}const u=i(l,[["render",n]]);export{d as __pageData,u as default}; diff --git a/assets/dev_api_plugins_liteecho.md.BlQiZZ9H.lean.js b/assets/dev_api_plugins_liteecho.md.BlQiZZ9H.lean.js new file mode 100644 index 00000000..216a5f3e --- /dev/null +++ b/assets/dev_api_plugins_liteecho.md.BlQiZZ9H.lean.js @@ -0,0 +1 @@ +import{_ as i,c as s,a7 as t,o as a}from"./chunks/framework.jrU0lkHV.js";const d=JSON.parse('{"title":"liteyuki.plugins.liteecho","description":"","frontmatter":{"title":"liteyuki.plugins.liteecho"},"headers":[],"relativePath":"dev/api/plugins/liteecho.md","filePath":"zh/dev/api/plugins/liteecho.md","lastUpdated":null}'),l={name:"dev/api/plugins/liteecho.md"};function n(h,e,o,p,r,k){return a(),s("div",null,e[0]||(e[0]=[t('

模块 liteyuki.plugins.liteecho

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/22 下午12:31 @Author : snowykami @Email : snowykami@outlook.com @File : liteecho.py @Software: PyCharm


@on_startswith(['liteecho'], rule=is_su_rule).handle()

async func liteecho(event: MessageEvent)

源代码在GitHub上查看
python
@on_startswith(['liteecho'], rule=is_su_rule).handle()\nasync def liteecho(event: MessageEvent):\n    event.reply(event.raw_message.strip()[8:].strip())
',7)]))}const u=i(l,[["render",n]]);export{d as __pageData,u as default}; diff --git a/assets/dev_api_plugins_liteecho.md.sryx6SuS.js b/assets/dev_api_plugins_liteecho.md.sryx6SuS.js deleted file mode 100644 index 88c7970c..00000000 --- a/assets/dev_api_plugins_liteecho.md.sryx6SuS.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as e,c as i,o as s,a9 as t}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"liteyuki.plugins.liteecho","description":"","frontmatter":{"title":"liteyuki.plugins.liteecho"},"headers":[],"relativePath":"dev/api/plugins/liteecho.md","filePath":"zh/dev/api/plugins/liteecho.md","lastUpdated":null}'),a={name:"dev/api/plugins/liteecho.md"},l=t('

模块 liteyuki.plugins.liteecho

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/22 下午12:31 @Author : snowykami @Email : snowykami@outlook.com @File : liteecho.py @Software: PyCharm


@on_startswith(['liteecho'], rule=is_su_rule).handle()

async func liteecho(event: MessageEvent)

源代码在GitHub上查看
python
@on_startswith(['liteecho'], rule=is_su_rule).handle()\nasync def liteecho(event: MessageEvent):\n    event.reply(event.raw_message.strip()[8:].strip())
',7),n=[l];function h(o,p,r,c,k,d){return s(),i("div",null,n)}const y=e(a,[["render",h]]);export{g as __pageData,y as default}; diff --git a/assets/dev_api_plugins_liteecho.md.sryx6SuS.lean.js b/assets/dev_api_plugins_liteecho.md.sryx6SuS.lean.js deleted file mode 100644 index 15709b9c..00000000 --- a/assets/dev_api_plugins_liteecho.md.sryx6SuS.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as e,c as i,o as s,a9 as t}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"liteyuki.plugins.liteecho","description":"","frontmatter":{"title":"liteyuki.plugins.liteecho"},"headers":[],"relativePath":"dev/api/plugins/liteecho.md","filePath":"zh/dev/api/plugins/liteecho.md","lastUpdated":null}'),a={name:"dev/api/plugins/liteecho.md"},l=t("",7),n=[l];function h(o,p,r,c,k,d){return s(),i("div",null,n)}const y=e(a,[["render",h]]);export{g as __pageData,y as default}; diff --git a/assets/dev_api_plugins_plugin_loader_index.md.DVvGETw-.js b/assets/dev_api_plugins_plugin_loader_index.md.DVvGETw-.js deleted file mode 100644 index de403ebc..00000000 --- a/assets/dev_api_plugins_plugin_loader_index.md.DVvGETw-.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as i,c as s,o as a,a9 as l}from"./chunks/framework.C4_mTacX.js";const _=JSON.parse('{"title":"liteyuki.plugins.plugin_loader","description":"","frontmatter":{"title":"liteyuki.plugins.plugin_loader","collapsed":true},"headers":[],"relativePath":"dev/api/plugins/plugin_loader/index.md","filePath":"zh/dev/api/plugins/plugin_loader/index.md","lastUpdated":null}'),n={name:"dev/api/plugins/plugin_loader/index.md"},e=l('

模块 liteyuki.plugins.plugin_loader

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/11 下午10:02 @Author : snowykami @Email : snowykami@outlook.com @File : init.py.py @Software: PyCharm


func default_plugins_loader()

说明: 默认插件加载器,应在初始化时调用

源代码在GitHub上查看
python
def default_plugins_loader():\n    for plugin in get_config('liteyuki.plugins', []):\n        load_plugin(plugin)\n    for plugin_dir in get_config('liteyuki.plugin_dirs', ['src/liteyuki_plugins']):\n        load_plugins(plugin_dir)
',7),t=[e];function p(r,o,d,h,k,u){return a(),s("div",null,t)}const c=i(n,[["render",p]]);export{_ as __pageData,c as default}; diff --git a/assets/dev_api_plugins_plugin_loader_index.md.DVvGETw-.lean.js b/assets/dev_api_plugins_plugin_loader_index.md.DVvGETw-.lean.js deleted file mode 100644 index 7a81e083..00000000 --- a/assets/dev_api_plugins_plugin_loader_index.md.DVvGETw-.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as i,c as s,o as a,a9 as l}from"./chunks/framework.C4_mTacX.js";const _=JSON.parse('{"title":"liteyuki.plugins.plugin_loader","description":"","frontmatter":{"title":"liteyuki.plugins.plugin_loader","collapsed":true},"headers":[],"relativePath":"dev/api/plugins/plugin_loader/index.md","filePath":"zh/dev/api/plugins/plugin_loader/index.md","lastUpdated":null}'),n={name:"dev/api/plugins/plugin_loader/index.md"},e=l("",7),t=[e];function p(r,o,d,h,k,u){return a(),s("div",null,t)}const c=i(n,[["render",p]]);export{_ as __pageData,c as default}; diff --git a/assets/dev_api_plugins_plugin_loader_index.md.f4CfmASM.js b/assets/dev_api_plugins_plugin_loader_index.md.f4CfmASM.js new file mode 100644 index 00000000..53b03a5f --- /dev/null +++ b/assets/dev_api_plugins_plugin_loader_index.md.f4CfmASM.js @@ -0,0 +1 @@ +import{_ as s,c as a,a7 as l,o as n}from"./chunks/framework.jrU0lkHV.js";const u=JSON.parse('{"title":"liteyuki.plugins.plugin_loader","description":"","frontmatter":{"title":"liteyuki.plugins.plugin_loader","collapsed":true},"headers":[],"relativePath":"dev/api/plugins/plugin_loader/index.md","filePath":"zh/dev/api/plugins/plugin_loader/index.md","lastUpdated":null}'),e={name:"dev/api/plugins/plugin_loader/index.md"};function t(p,i,r,d,o,h){return n(),a("div",null,i[0]||(i[0]=[l('

模块 liteyuki.plugins.plugin_loader

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/11 下午10:02 @Author : snowykami @Email : snowykami@outlook.com @File : init.py.py @Software: PyCharm


func default_plugins_loader()

说明: 默认插件加载器,应在初始化时调用

源代码在GitHub上查看
python
def default_plugins_loader():\n    for plugin in get_config('liteyuki.plugins', []):\n        load_plugin(plugin)\n    for plugin_dir in get_config('liteyuki.plugin_dirs', ['src/liteyuki_plugins']):\n        load_plugins(plugin_dir)
',7)]))}const g=s(e,[["render",t]]);export{u as __pageData,g as default}; diff --git a/assets/dev_api_plugins_plugin_loader_index.md.f4CfmASM.lean.js b/assets/dev_api_plugins_plugin_loader_index.md.f4CfmASM.lean.js new file mode 100644 index 00000000..53b03a5f --- /dev/null +++ b/assets/dev_api_plugins_plugin_loader_index.md.f4CfmASM.lean.js @@ -0,0 +1 @@ +import{_ as s,c as a,a7 as l,o as n}from"./chunks/framework.jrU0lkHV.js";const u=JSON.parse('{"title":"liteyuki.plugins.plugin_loader","description":"","frontmatter":{"title":"liteyuki.plugins.plugin_loader","collapsed":true},"headers":[],"relativePath":"dev/api/plugins/plugin_loader/index.md","filePath":"zh/dev/api/plugins/plugin_loader/index.md","lastUpdated":null}'),e={name:"dev/api/plugins/plugin_loader/index.md"};function t(p,i,r,d,o,h){return n(),a("div",null,i[0]||(i[0]=[l('

模块 liteyuki.plugins.plugin_loader

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/11 下午10:02 @Author : snowykami @Email : snowykami@outlook.com @File : init.py.py @Software: PyCharm


func default_plugins_loader()

说明: 默认插件加载器,应在初始化时调用

源代码在GitHub上查看
python
def default_plugins_loader():\n    for plugin in get_config('liteyuki.plugins', []):\n        load_plugin(plugin)\n    for plugin_dir in get_config('liteyuki.plugin_dirs', ['src/liteyuki_plugins']):\n        load_plugins(plugin_dir)
',7)]))}const g=s(e,[["render",t]]);export{u as __pageData,g as default}; diff --git a/assets/dev_api_message_event.md.DyDwsc6d.js b/assets/dev_api_session_event.md.D3sQQZ9F.js similarity index 61% rename from assets/dev_api_message_event.md.DyDwsc6d.js rename to assets/dev_api_session_event.md.D3sQQZ9F.js index dc8d6705..1ceb723a 100644 --- a/assets/dev_api_message_event.md.DyDwsc6d.js +++ b/assets/dev_api_session_event.md.D3sQQZ9F.js @@ -1,4 +1,4 @@ -import{_ as s,c as i,o as a,a9 as e}from"./chunks/framework.C4_mTacX.js";const o=JSON.parse('{"title":"liteyuki.message.event","description":"","frontmatter":{"title":"liteyuki.message.event"},"headers":[],"relativePath":"dev/api/message/event.md","filePath":"zh/dev/api/message/event.md","lastUpdated":null}'),t={name:"dev/api/message/event.md"},n=e(`

模块 liteyuki.message.event

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 下午10:47 @Author : snowykami @Email : snowykami@outlook.com @File : event.py @Software: PyCharm

class MessageEvent


func __init__(self, bot_id: str, message: list[dict[str, Any]] | str, message_type: str, raw_message: str, session_id: str, user_id: str, session_type: str, receive_channel: Optional[Channel[MessageEvent]] = None, data: Optional[dict[str, Any]] = None)

说明: 轻雪抽象消息事件

源代码在GitHub上查看
python
def __init__(self, bot_id: str, message: list[dict[str, Any]] | str, message_type: str, raw_message: str, session_id: str, user_id: str, session_type: str, receive_channel: Optional[Channel['MessageEvent']]=None, data: Optional[dict[str, Any]]=None):
+import{_ as i,c as a,a7 as e,o as t}from"./chunks/framework.jrU0lkHV.js";const g=JSON.parse('{"title":"liteyuki.session.event","description":"","frontmatter":{"title":"liteyuki.session.event"},"headers":[],"relativePath":"dev/api/session/event.md","filePath":"zh/dev/api/session/event.md","lastUpdated":null}'),n={name:"dev/api/session/event.md"};function h(l,s,k,p,r,d){return t(),a("div",null,s[0]||(s[0]=[e(`

模块 liteyuki.session.event

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 下午10:47 @Author : snowykami @Email : snowykami@outlook.com @File : event.py @Software: PyCharm

class MessageEvent


func __init__(self, bot_id: str, message: list[dict[str, Any]] | str, message_type: str, raw_message: str, session_id: str, user_id: str, session_type: str, receive_channel: Optional[Channel[MessageEvent]] = None, data: Optional[dict[str, Any]] = None)

说明: 轻雪抽象消息事件

源代码在GitHub上查看
python
def __init__(self, bot_id: str, message: list[dict[str, Any]] | str, message_type: str, raw_message: str, session_id: str, user_id: str, session_type: str, receive_channel: Optional[Channel['MessageEvent']]=None, data: Optional[dict[str, Any]]=None):
     if data is None:
         data = {}
     self.message_type = message_type
@@ -9,7 +9,7 @@ import{_ as s,c as i,o as a,a9 as e}from"./chunks/framework.C4_mTacX.js";const o
     self.session_id = session_id
     self.session_type = session_type
     self.user_id = user_id
-    self.receive_channel = receive_channel

func reply(self, message: str | dict[str, Any])

说明: 回复消息

参数:

  • message:
源代码在GitHub上查看
python
def reply(self, message: str | dict[str, Any]):
+    self.receive_channel = receive_channel

func reply(self, message: str | dict[str, Any])

说明: 回复消息

参数:

  • message:
源代码在GitHub上查看
python
def reply(self, message: str | dict[str, Any]):
     reply_event = MessageEvent(message_type=self.session_type, message=message, raw_message='', data={'message': message}, bot_id=self.bot_id, session_id=self.session_id, user_id=self.user_id, session_type=self.session_type, receive_channel=None)
     if self.receive_channel:
-        self.receive_channel.send(reply_event)
`,14),h=[n];function l(k,p,r,d,E,g){return a(),i("div",null,h)}const F=s(t,[["render",l]]);export{o as __pageData,F as default}; + self.receive_channel.send(reply_event)
`,14)]))}const y=i(n,[["render",h]]);export{g as __pageData,y as default}; diff --git a/assets/dev_api_session_event.md.D3sQQZ9F.lean.js b/assets/dev_api_session_event.md.D3sQQZ9F.lean.js new file mode 100644 index 00000000..1ceb723a --- /dev/null +++ b/assets/dev_api_session_event.md.D3sQQZ9F.lean.js @@ -0,0 +1,15 @@ +import{_ as i,c as a,a7 as e,o as t}from"./chunks/framework.jrU0lkHV.js";const g=JSON.parse('{"title":"liteyuki.session.event","description":"","frontmatter":{"title":"liteyuki.session.event"},"headers":[],"relativePath":"dev/api/session/event.md","filePath":"zh/dev/api/session/event.md","lastUpdated":null}'),n={name:"dev/api/session/event.md"};function h(l,s,k,p,r,d){return t(),a("div",null,s[0]||(s[0]=[e(`

模块 liteyuki.session.event

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 下午10:47 @Author : snowykami @Email : snowykami@outlook.com @File : event.py @Software: PyCharm

class MessageEvent


func __init__(self, bot_id: str, message: list[dict[str, Any]] | str, message_type: str, raw_message: str, session_id: str, user_id: str, session_type: str, receive_channel: Optional[Channel[MessageEvent]] = None, data: Optional[dict[str, Any]] = None)

说明: 轻雪抽象消息事件

源代码在GitHub上查看
python
def __init__(self, bot_id: str, message: list[dict[str, Any]] | str, message_type: str, raw_message: str, session_id: str, user_id: str, session_type: str, receive_channel: Optional[Channel['MessageEvent']]=None, data: Optional[dict[str, Any]]=None):
+    if data is None:
+        data = {}
+    self.message_type = message_type
+    self.data = data
+    self.bot_id = bot_id
+    self.message = message
+    self.raw_message = raw_message
+    self.session_id = session_id
+    self.session_type = session_type
+    self.user_id = user_id
+    self.receive_channel = receive_channel

func reply(self, message: str | dict[str, Any])

说明: 回复消息

参数:

  • message:
源代码在GitHub上查看
python
def reply(self, message: str | dict[str, Any]):
+    reply_event = MessageEvent(message_type=self.session_type, message=message, raw_message='', data={'message': message}, bot_id=self.bot_id, session_id=self.session_id, user_id=self.user_id, session_type=self.session_type, receive_channel=None)
+    if self.receive_channel:
+        self.receive_channel.send(reply_event)
`,14)]))}const y=i(n,[["render",h]]);export{g as __pageData,y as default}; diff --git a/assets/dev_api_session_index.md.DrlwTUzS.js b/assets/dev_api_session_index.md.DrlwTUzS.js new file mode 100644 index 00000000..4b781619 --- /dev/null +++ b/assets/dev_api_session_index.md.DrlwTUzS.js @@ -0,0 +1 @@ +import{_ as t,c as o,j as e,a as i,o as a}from"./chunks/framework.jrU0lkHV.js";const k=JSON.parse('{"title":"liteyuki.session","description":"","frontmatter":{"title":"liteyuki.session","collapsed":true},"headers":[],"relativePath":"dev/api/session/index.md","filePath":"zh/dev/api/session/index.md","lastUpdated":null}'),n={name:"dev/api/session/index.md"};function l(r,s,d,u,p,c){return a(),o("div",null,s[0]||(s[0]=[e("h1",{id:"模块-liteyuki-session",tabindex:"-1"},[e("strong",null,"模块"),i(),e("code",null,"liteyuki.session"),i(),e("a",{class:"header-anchor",href:"#模块-liteyuki-session","aria-label":'Permalink to "**模块** `liteyuki.session`"'},"​")],-1),e("p",null,"Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved",-1),e("p",null,[i("@Time : 2024/8/19 下午10:44 @Author : snowykami @Email : "),e("a",{href:"mailto:snowykami@outlook.com",target:"_blank",rel:"noreferrer"},"snowykami@outlook.com"),i(" @File : "),e("strong",null,"init"),i(".py.py @Software: PyCharm")],-1)]))}const y=t(n,[["render",l]]);export{k as __pageData,y as default}; diff --git a/assets/dev_api_session_index.md.DrlwTUzS.lean.js b/assets/dev_api_session_index.md.DrlwTUzS.lean.js new file mode 100644 index 00000000..4b781619 --- /dev/null +++ b/assets/dev_api_session_index.md.DrlwTUzS.lean.js @@ -0,0 +1 @@ +import{_ as t,c as o,j as e,a as i,o as a}from"./chunks/framework.jrU0lkHV.js";const k=JSON.parse('{"title":"liteyuki.session","description":"","frontmatter":{"title":"liteyuki.session","collapsed":true},"headers":[],"relativePath":"dev/api/session/index.md","filePath":"zh/dev/api/session/index.md","lastUpdated":null}'),n={name:"dev/api/session/index.md"};function l(r,s,d,u,p,c){return a(),o("div",null,s[0]||(s[0]=[e("h1",{id:"模块-liteyuki-session",tabindex:"-1"},[e("strong",null,"模块"),i(),e("code",null,"liteyuki.session"),i(),e("a",{class:"header-anchor",href:"#模块-liteyuki-session","aria-label":'Permalink to "**模块** `liteyuki.session`"'},"​")],-1),e("p",null,"Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved",-1),e("p",null,[i("@Time : 2024/8/19 下午10:44 @Author : snowykami @Email : "),e("a",{href:"mailto:snowykami@outlook.com",target:"_blank",rel:"noreferrer"},"snowykami@outlook.com"),i(" @File : "),e("strong",null,"init"),i(".py.py @Software: PyCharm")],-1)]))}const y=t(n,[["render",l]]);export{k as __pageData,y as default}; diff --git a/assets/dev_api_message_matcher.md.DVuQfqJD.js b/assets/dev_api_session_matcher.md.AbqZMTjz.js similarity index 67% rename from assets/dev_api_message_matcher.md.DVuQfqJD.js rename to assets/dev_api_session_matcher.md.AbqZMTjz.js index 64296183..7ca005d3 100644 --- a/assets/dev_api_message_matcher.md.DVuQfqJD.js +++ b/assets/dev_api_session_matcher.md.AbqZMTjz.js @@ -1,17 +1,17 @@ -import{_ as s,c as i,o as a,a9 as e}from"./chunks/framework.C4_mTacX.js";const y=JSON.parse('{"title":"liteyuki.message.matcher","description":"","frontmatter":{"title":"liteyuki.message.matcher"},"headers":[],"relativePath":"dev/api/message/matcher.md","filePath":"zh/dev/api/message/matcher.md","lastUpdated":null}'),t={name:"dev/api/message/matcher.md"},n=e(`

模块 liteyuki.message.matcher

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 下午10:51 @Author : snowykami @Email : snowykami@outlook.com @File : matcher.py @Software: PyCharm

class Matcher


func __init__(self, rule: Rule, priority: int, block: bool)

说明: 匹配器

参数:

  • rule: 规则
  • priority: 优先级 >= 0
  • block: 是否阻断后续优先级更低的匹配器
源代码在GitHub上查看
python
def __init__(self, rule: Rule, priority: int, block: bool):
+import{_ as i,c as a,a7 as e,o as n}from"./chunks/framework.jrU0lkHV.js";const c=JSON.parse('{"title":"liteyuki.session.matcher","description":"","frontmatter":{"title":"liteyuki.session.matcher"},"headers":[],"relativePath":"dev/api/session/matcher.md","filePath":"zh/dev/api/session/matcher.md","lastUpdated":null}'),t={name:"dev/api/session/matcher.md"};function l(h,s,r,p,k,o){return n(),a("div",null,s[0]||(s[0]=[e(`

模块 liteyuki.session.matcher

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 下午10:51 @Author : snowykami @Email : snowykami@outlook.com @File : matcher.py @Software: PyCharm

class Matcher


func __init__(self, rule: Rule, priority: int, block: bool)

说明: 匹配器

参数:

  • rule: 规则
  • priority: 优先级 >= 0
  • block: 是否阻断后续优先级更低的匹配器
源代码在GitHub上查看
python
def __init__(self, rule: Rule, priority: int, block: bool):
     self.rule = rule
     self.priority = priority
     self.block = block
-    self.handlers: list[EventHandler] = []

func handle(self) -> Callable[[EventHandler], EventHandler]

说明: 添加处理函数,装饰器

返回: 装饰器 handler

源代码在GitHub上查看
python
def handle(self) -> Callable[[EventHandler], EventHandler]:
+    self.handlers: list[EventHandler] = []

func handle(self) -> Callable[[EventHandler], EventHandler]

说明: 添加处理函数,装饰器

返回: 装饰器 handler

源代码在GitHub上查看
python
def handle(self) -> Callable[[EventHandler], EventHandler]:
 
     def decorator(handler: EventHandler) -> EventHandler:
         self.handlers.append(handler)
         return handler
-    return decorator

async func run(self, event: MessageEvent) -> None

说明: 运行处理函数

参数:

  • event:
源代码在GitHub上查看
python
async def run(self, event: MessageEvent) -> None:
+    return decorator

async func run(self, event: MessageEvent) -> None

说明: 运行处理函数

参数:

  • event:
源代码在GitHub上查看
python
async def run(self, event: MessageEvent) -> None:
     if not await self.rule(event):
         return
     for handler in self.handlers:
         try:
             await handler(event)
         except Exception:
-            traceback.print_exc()
`,21),l=[n];function h(r,p,k,o,d,c){return a(),i("div",null,l)}const E=s(t,[["render",h]]);export{y as __pageData,E as default}; + traceback.print_exc()
`,21)]))}const g=i(t,[["render",l]]);export{c as __pageData,g as default}; diff --git a/assets/dev_api_session_matcher.md.AbqZMTjz.lean.js b/assets/dev_api_session_matcher.md.AbqZMTjz.lean.js new file mode 100644 index 00000000..7ca005d3 --- /dev/null +++ b/assets/dev_api_session_matcher.md.AbqZMTjz.lean.js @@ -0,0 +1,17 @@ +import{_ as i,c as a,a7 as e,o as n}from"./chunks/framework.jrU0lkHV.js";const c=JSON.parse('{"title":"liteyuki.session.matcher","description":"","frontmatter":{"title":"liteyuki.session.matcher"},"headers":[],"relativePath":"dev/api/session/matcher.md","filePath":"zh/dev/api/session/matcher.md","lastUpdated":null}'),t={name:"dev/api/session/matcher.md"};function l(h,s,r,p,k,o){return n(),a("div",null,s[0]||(s[0]=[e(`

模块 liteyuki.session.matcher

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 下午10:51 @Author : snowykami @Email : snowykami@outlook.com @File : matcher.py @Software: PyCharm

class Matcher


func __init__(self, rule: Rule, priority: int, block: bool)

说明: 匹配器

参数:

  • rule: 规则
  • priority: 优先级 >= 0
  • block: 是否阻断后续优先级更低的匹配器
源代码在GitHub上查看
python
def __init__(self, rule: Rule, priority: int, block: bool):
+    self.rule = rule
+    self.priority = priority
+    self.block = block
+    self.handlers: list[EventHandler] = []

func handle(self) -> Callable[[EventHandler], EventHandler]

说明: 添加处理函数,装饰器

返回: 装饰器 handler

源代码在GitHub上查看
python
def handle(self) -> Callable[[EventHandler], EventHandler]:
+
+    def decorator(handler: EventHandler) -> EventHandler:
+        self.handlers.append(handler)
+        return handler
+    return decorator

async func run(self, event: MessageEvent) -> None

说明: 运行处理函数

参数:

  • event:
源代码在GitHub上查看
python
async def run(self, event: MessageEvent) -> None:
+    if not await self.rule(event):
+        return
+    for handler in self.handlers:
+        try:
+            await handler(event)
+        except Exception:
+            traceback.print_exc()
`,21)]))}const g=i(t,[["render",l]]);export{c as __pageData,g as default}; diff --git a/assets/dev_api_message_on.md.CApMkdr1.js b/assets/dev_api_session_on.md.B-6wibts.js similarity index 77% rename from assets/dev_api_message_on.md.CApMkdr1.js rename to assets/dev_api_session_on.md.B-6wibts.js index f7245253..8ed2a557 100644 --- a/assets/dev_api_message_on.md.CApMkdr1.js +++ b/assets/dev_api_session_on.md.B-6wibts.js @@ -1,15 +1,15 @@ -import{_ as s,c as i,o as a,a9 as e}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"liteyuki.message.on","description":"","frontmatter":{"title":"liteyuki.message.on"},"headers":[],"relativePath":"dev/api/message/on.md","filePath":"zh/dev/api/message/on.md","lastUpdated":null}'),t={name:"dev/api/message/on.md"},n=e(`

模块 liteyuki.message.on

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 下午10:52 @Author : snowykami @Email : snowykami@outlook.com @File : on.py @Software: PyCharm


func add_matcher(matcher: Matcher)

源代码在GitHub上查看
python
def add_matcher(matcher: Matcher):
+import{_ as i,c as a,a7 as t,o as e}from"./chunks/framework.jrU0lkHV.js";const y=JSON.parse('{"title":"liteyuki.session.on","description":"","frontmatter":{"title":"liteyuki.session.on"},"headers":[],"relativePath":"dev/api/session/on.md","filePath":"zh/dev/api/session/on.md","lastUpdated":null}'),n={name:"dev/api/session/on.md"};function l(h,s,r,k,p,o){return e(),a("div",null,s[0]||(s[0]=[t(`

模块 liteyuki.session.on

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 下午10:52 @Author : snowykami @Email : snowykami@outlook.com @File : on.py @Software: PyCharm


func add_matcher(matcher: Matcher)

源代码在GitHub上查看
python
def add_matcher(matcher: Matcher):
     for i, m in enumerate(_matcher_list):
         if m.priority < matcher.priority:
             _matcher_list.insert(i, matcher)
             break
     else:
-        _matcher_list.append(matcher)

func on_message(rule: Rule = empty_rule, priority: int = 0, block: bool = False) -> Matcher

源代码在GitHub上查看
python
def on_message(rule: Rule=empty_rule, priority: int=0, block: bool=False) -> Matcher:
+        _matcher_list.append(matcher)

func on_message(rule: Rule = empty_rule, priority: int = 0, block: bool = False) -> Matcher

源代码在GitHub上查看
python
def on_message(rule: Rule=empty_rule, priority: int=0, block: bool=False) -> Matcher:
     matcher = Matcher(rule, priority, block)
     add_matcher(matcher)
-    return matcher

func on_keywords(keywords: list[str], rule = empty_rule, priority: int = 0, block: bool = False) -> Matcher

源代码在GitHub上查看
python
def on_keywords(keywords: list[str], rule=empty_rule, priority: int=0, block: bool=False) -> Matcher:
+    return matcher

func on_keywords(keywords: list[str], rule = empty_rule, priority: int = 0, block: bool = False) -> Matcher

源代码在GitHub上查看
python
def on_keywords(keywords: list[str], rule=empty_rule, priority: int=0, block: bool=False) -> Matcher:
 
     @Rule
     async def on_keywords_rule(event: MessageEvent):
         return any((keyword in event.raw_message for keyword in keywords))
-    return on_message(on_keywords_rule & rule, priority, block)
`,12),l=[n];function h(r,k,p,o,d,y){return a(),i("div",null,l)}const E=s(t,[["render",h]]);export{g as __pageData,E as default}; + return on_message(on_keywords_rule & rule, priority, block)
`,12)]))}const c=i(n,[["render",l]]);export{y as __pageData,c as default}; diff --git a/assets/dev_api_session_on.md.B-6wibts.lean.js b/assets/dev_api_session_on.md.B-6wibts.lean.js new file mode 100644 index 00000000..8ed2a557 --- /dev/null +++ b/assets/dev_api_session_on.md.B-6wibts.lean.js @@ -0,0 +1,15 @@ +import{_ as i,c as a,a7 as t,o as e}from"./chunks/framework.jrU0lkHV.js";const y=JSON.parse('{"title":"liteyuki.session.on","description":"","frontmatter":{"title":"liteyuki.session.on"},"headers":[],"relativePath":"dev/api/session/on.md","filePath":"zh/dev/api/session/on.md","lastUpdated":null}'),n={name:"dev/api/session/on.md"};function l(h,s,r,k,p,o){return e(),a("div",null,s[0]||(s[0]=[t(`

模块 liteyuki.session.on

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 下午10:52 @Author : snowykami @Email : snowykami@outlook.com @File : on.py @Software: PyCharm


func add_matcher(matcher: Matcher)

源代码在GitHub上查看
python
def add_matcher(matcher: Matcher):
+    for i, m in enumerate(_matcher_list):
+        if m.priority < matcher.priority:
+            _matcher_list.insert(i, matcher)
+            break
+    else:
+        _matcher_list.append(matcher)

func on_message(rule: Rule = empty_rule, priority: int = 0, block: bool = False) -> Matcher

源代码在GitHub上查看
python
def on_message(rule: Rule=empty_rule, priority: int=0, block: bool=False) -> Matcher:
+    matcher = Matcher(rule, priority, block)
+    add_matcher(matcher)
+    return matcher

func on_keywords(keywords: list[str], rule = empty_rule, priority: int = 0, block: bool = False) -> Matcher

源代码在GitHub上查看
python
def on_keywords(keywords: list[str], rule=empty_rule, priority: int=0, block: bool=False) -> Matcher:
+
+    @Rule
+    async def on_keywords_rule(event: MessageEvent):
+        return any((keyword in event.raw_message for keyword in keywords))
+    return on_message(on_keywords_rule & rule, priority, block)
`,12)]))}const c=i(n,[["render",l]]);export{y as __pageData,c as default}; diff --git a/assets/dev_api_session_rule.md.CNqb27Xk.js b/assets/dev_api_session_rule.md.CNqb27Xk.js new file mode 100644 index 00000000..d33ab058 --- /dev/null +++ b/assets/dev_api_session_rule.md.CNqb27Xk.js @@ -0,0 +1 @@ +import{_ as i,c as a,a7 as e,o as t}from"./chunks/framework.jrU0lkHV.js";const u=JSON.parse('{"title":"liteyuki.session.rule","description":"","frontmatter":{"title":"liteyuki.session.rule"},"headers":[],"relativePath":"dev/api/session/rule.md","filePath":"zh/dev/api/session/rule.md","lastUpdated":null}'),n={name:"dev/api/session/rule.md"};function l(h,s,r,p,k,d){return t(),a("div",null,s[0]||(s[0]=[e('

模块 liteyuki.session.rule

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 下午10:55 @Author : snowykami @Email : snowykami@outlook.com @File : rule.py @Software: PyCharm

var RuleHandlerFunc

  • 说明: 规则函数签名

  • 类型: TypeAlias

  • 默认值: Callable[[MessageEvent], Coroutine[None, None, bool]]

class Rule


func __init__(self, handler: RuleHandlerFunc)

源代码在GitHub上查看
python
def __init__(self, handler: RuleHandlerFunc):\n    self.handler = handler

func self | other: Rule => Rule

源代码在GitHub上查看
python
def __or__(self, other: 'Rule') -> 'Rule':\n\n    async def combined_handler(event: MessageEvent) -> bool:\n        return await self.handler(event) or await other.handler(event)\n    return Rule(combined_handler)

func self & other: Rule => Rule

源代码在GitHub上查看
python
def __and__(self, other: 'Rule') -> 'Rule':\n\n    async def combined_handler(event: MessageEvent) -> bool:\n        return await self.handler(event) and await other.handler(event)\n    return Rule(combined_handler)

async func self () event: MessageEvent => bool

源代码在GitHub上查看
python
async def __call__(self, event: MessageEvent) -> bool:\n    if self.handler is None:\n        return True\n    return await self.handler(event)

@Rule

async func empty_rule(event: MessageEvent) -> bool

源代码在GitHub上查看
python
@Rule\nasync def empty_rule(event: MessageEvent) -> bool:\n    return True

@Rule

async func is_su_rule(event: MessageEvent) -> bool

源代码在GitHub上查看
python
@Rule\nasync def is_su_rule(event: MessageEvent) -> bool:\n    return str(event.user_id) in _superusers
',26)]))}const g=i(n,[["render",l]]);export{u as __pageData,g as default}; diff --git a/assets/dev_api_session_rule.md.CNqb27Xk.lean.js b/assets/dev_api_session_rule.md.CNqb27Xk.lean.js new file mode 100644 index 00000000..d33ab058 --- /dev/null +++ b/assets/dev_api_session_rule.md.CNqb27Xk.lean.js @@ -0,0 +1 @@ +import{_ as i,c as a,a7 as e,o as t}from"./chunks/framework.jrU0lkHV.js";const u=JSON.parse('{"title":"liteyuki.session.rule","description":"","frontmatter":{"title":"liteyuki.session.rule"},"headers":[],"relativePath":"dev/api/session/rule.md","filePath":"zh/dev/api/session/rule.md","lastUpdated":null}'),n={name:"dev/api/session/rule.md"};function l(h,s,r,p,k,d){return t(),a("div",null,s[0]||(s[0]=[e('

模块 liteyuki.session.rule

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 下午10:55 @Author : snowykami @Email : snowykami@outlook.com @File : rule.py @Software: PyCharm

var RuleHandlerFunc

  • 说明: 规则函数签名

  • 类型: TypeAlias

  • 默认值: Callable[[MessageEvent], Coroutine[None, None, bool]]

class Rule


func __init__(self, handler: RuleHandlerFunc)

源代码在GitHub上查看
python
def __init__(self, handler: RuleHandlerFunc):\n    self.handler = handler

func self | other: Rule => Rule

源代码在GitHub上查看
python
def __or__(self, other: 'Rule') -> 'Rule':\n\n    async def combined_handler(event: MessageEvent) -> bool:\n        return await self.handler(event) or await other.handler(event)\n    return Rule(combined_handler)

func self & other: Rule => Rule

源代码在GitHub上查看
python
def __and__(self, other: 'Rule') -> 'Rule':\n\n    async def combined_handler(event: MessageEvent) -> bool:\n        return await self.handler(event) and await other.handler(event)\n    return Rule(combined_handler)

async func self () event: MessageEvent => bool

源代码在GitHub上查看
python
async def __call__(self, event: MessageEvent) -> bool:\n    if self.handler is None:\n        return True\n    return await self.handler(event)

@Rule

async func empty_rule(event: MessageEvent) -> bool

源代码在GitHub上查看
python
@Rule\nasync def empty_rule(event: MessageEvent) -> bool:\n    return True

@Rule

async func is_su_rule(event: MessageEvent) -> bool

源代码在GitHub上查看
python
@Rule\nasync def is_su_rule(event: MessageEvent) -> bool:\n    return str(event.user_id) in _superusers
',26)]))}const g=i(n,[["render",l]]);export{u as __pageData,g as default}; diff --git a/assets/dev_api_session_session.md.bPL76QAG.js b/assets/dev_api_session_session.md.bPL76QAG.js new file mode 100644 index 00000000..3a068bc8 --- /dev/null +++ b/assets/dev_api_session_session.md.bPL76QAG.js @@ -0,0 +1 @@ +import{_ as o,c as t,j as s,a as e,o as n}from"./chunks/framework.jrU0lkHV.js";const k=JSON.parse('{"title":"liteyuki.session.session","description":"","frontmatter":{"title":"liteyuki.session.session"},"headers":[],"relativePath":"dev/api/session/session.md","filePath":"zh/dev/api/session/session.md","lastUpdated":null}'),a={name:"dev/api/session/session.md"};function l(r,i,d,u,m,p){return n(),t("div",null,i[0]||(i[0]=[s("h1",{id:"模块-liteyuki-session-session",tabindex:"-1"},[s("strong",null,"模块"),e(),s("code",null,"liteyuki.session.session"),e(),s("a",{class:"header-anchor",href:"#模块-liteyuki-session-session","aria-label":'Permalink to "**模块** `liteyuki.session.session`"'},"​")],-1),s("p",null,"Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved",-1),s("p",null,[e("@Time : 2024/8/19 下午10:47 @Author : snowykami @Email : "),s("a",{href:"mailto:snowykami@outlook.com",target:"_blank",rel:"noreferrer"},"snowykami@outlook.com"),e(" @File : session.py @Software: PyCharm")],-1)]))}const y=o(a,[["render",l]]);export{k as __pageData,y as default}; diff --git a/assets/dev_api_session_session.md.bPL76QAG.lean.js b/assets/dev_api_session_session.md.bPL76QAG.lean.js new file mode 100644 index 00000000..3a068bc8 --- /dev/null +++ b/assets/dev_api_session_session.md.bPL76QAG.lean.js @@ -0,0 +1 @@ +import{_ as o,c as t,j as s,a as e,o as n}from"./chunks/framework.jrU0lkHV.js";const k=JSON.parse('{"title":"liteyuki.session.session","description":"","frontmatter":{"title":"liteyuki.session.session"},"headers":[],"relativePath":"dev/api/session/session.md","filePath":"zh/dev/api/session/session.md","lastUpdated":null}'),a={name:"dev/api/session/session.md"};function l(r,i,d,u,m,p){return n(),t("div",null,i[0]||(i[0]=[s("h1",{id:"模块-liteyuki-session-session",tabindex:"-1"},[s("strong",null,"模块"),e(),s("code",null,"liteyuki.session.session"),e(),s("a",{class:"header-anchor",href:"#模块-liteyuki-session-session","aria-label":'Permalink to "**模块** `liteyuki.session.session`"'},"​")],-1),s("p",null,"Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved",-1),s("p",null,[e("@Time : 2024/8/19 下午10:47 @Author : snowykami @Email : "),s("a",{href:"mailto:snowykami@outlook.com",target:"_blank",rel:"noreferrer"},"snowykami@outlook.com"),e(" @File : session.py @Software: PyCharm")],-1)]))}const y=o(a,[["render",l]]);export{k as __pageData,y as default}; diff --git a/assets/dev_api_utils.md.wryzX8vr.js b/assets/dev_api_utils.md.BdVRWEBV.js similarity index 87% rename from assets/dev_api_utils.md.wryzX8vr.js rename to assets/dev_api_utils.md.BdVRWEBV.js index 24632686..4c7e19e8 100644 --- a/assets/dev_api_utils.md.wryzX8vr.js +++ b/assets/dev_api_utils.md.BdVRWEBV.js @@ -1,4 +1,4 @@ -import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"liteyuki.utils","description":"","frontmatter":{"title":"liteyuki.utils"},"headers":[],"relativePath":"dev/api/utils.md","filePath":"zh/dev/api/utils.md","lastUpdated":null}'),t={name:"dev/api/utils.md"},l=n(`

模块 liteyuki.utils

一些常用的工具类,部分来源于 nonebot 并遵循其许可进行修改


func is_coroutine_callable(call: Callable[..., Any]) -> bool

说明: 判断是否为协程可调用对象

参数:

  • call: 可调用对象

返回: bool: 是否为协程可调用对象

源代码在GitHub上查看
python
def is_coroutine_callable(call: Callable[..., Any]) -> bool:
+import{_ as i,c as a,a7 as n,o as t}from"./chunks/framework.jrU0lkHV.js";const E=JSON.parse('{"title":"liteyuki.utils","description":"","frontmatter":{"title":"liteyuki.utils"},"headers":[],"relativePath":"dev/api/utils.md","filePath":"zh/dev/api/utils.md","lastUpdated":null}'),l={name:"dev/api/utils.md"};function h(e,s,p,k,r,o){return t(),a("div",null,s[0]||(s[0]=[n(`

模块 liteyuki.utils

一些常用的工具类,部分来源于 nonebot 并遵循其许可进行修改


func is_coroutine_callable(call: Callable[..., Any]) -> bool

说明: 判断是否为协程可调用对象

参数:

  • call: 可调用对象

返回: bool: 是否为协程可调用对象

源代码在GitHub上查看
python
def is_coroutine_callable(call: Callable[..., Any]) -> bool:
     if inspect.isroutine(call):
         return inspect.iscoroutinefunction(call)
     if inspect.isclass(call):
@@ -30,4 +30,4 @@ import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const g
     async def wrapper(*args, **kwargs):
         return func(*args, **kwargs)
     wrapper.__signature__ = inspect.signature(func)
-    return wrapper
`,35),h=[l];function e(p,k,r,o,d,E){return a(),i("div",null,h)}const u=s(t,[["render",e]]);export{g as __pageData,u as default}; + return wrapper
`,35)]))}const c=i(l,[["render",h]]);export{E as __pageData,c as default}; diff --git a/assets/dev_api_utils.md.BdVRWEBV.lean.js b/assets/dev_api_utils.md.BdVRWEBV.lean.js new file mode 100644 index 00000000..4c7e19e8 --- /dev/null +++ b/assets/dev_api_utils.md.BdVRWEBV.lean.js @@ -0,0 +1,33 @@ +import{_ as i,c as a,a7 as n,o as t}from"./chunks/framework.jrU0lkHV.js";const E=JSON.parse('{"title":"liteyuki.utils","description":"","frontmatter":{"title":"liteyuki.utils"},"headers":[],"relativePath":"dev/api/utils.md","filePath":"zh/dev/api/utils.md","lastUpdated":null}'),l={name:"dev/api/utils.md"};function h(e,s,p,k,r,o){return t(),a("div",null,s[0]||(s[0]=[n(`

模块 liteyuki.utils

一些常用的工具类,部分来源于 nonebot 并遵循其许可进行修改


func is_coroutine_callable(call: Callable[..., Any]) -> bool

说明: 判断是否为协程可调用对象

参数:

  • call: 可调用对象

返回: bool: 是否为协程可调用对象

源代码在GitHub上查看
python
def is_coroutine_callable(call: Callable[..., Any]) -> bool:
+    if inspect.isroutine(call):
+        return inspect.iscoroutinefunction(call)
+    if inspect.isclass(call):
+        return False
+    func_ = getattr(call, '__call__', None)
+    return inspect.iscoroutinefunction(func_)

func run_coroutine(*coro: Coroutine)

说明: 运行协程

参数:

  • coro:
源代码在GitHub上查看
python
def run_coroutine(*coro: Coroutine):
+    try:
+        loop = asyncio.get_running_loop()
+        if loop.is_running():
+            for c in coro:
+                asyncio.ensure_future(c)
+        else:
+            for c in coro:
+                loop.run_until_complete(c)
+    except RuntimeError:
+        loop = asyncio.new_event_loop()
+        asyncio.set_event_loop(loop)
+        loop.run_until_complete(asyncio.gather(*coro))
+        loop.close()
+    except Exception as e:
+        logger.error(f'Exception occurred: {e}')

func run_coroutine_in_thread(*coro: Coroutine)

说明: 在新线程中运行协程

参数:

  • coro:
源代码在GitHub上查看
python
def run_coroutine_in_thread(*coro: Coroutine):
+    threading.Thread(target=run_coroutine, args=coro, daemon=True).start()

func path_to_module_name(path: Path) -> str

说明: 转换路径为模块名

参数:

  • path: 路径a/b/c/d -> a.b.c.d

返回: str: 模块名

源代码在GitHub上查看
python
def path_to_module_name(path: Path) -> str:
+    rel_path = path.resolve().relative_to(Path.cwd().resolve())
+    if rel_path.stem == '__init__':
+        return '.'.join(rel_path.parts[:-1])
+    else:
+        return '.'.join(rel_path.parts[:-1] + (rel_path.stem,))

func async_wrapper(func: Callable[..., Any]) -> Callable[..., Coroutine]

说明: 异步包装器

参数:

  • func: Sync Callable

返回: Coroutine: Asynchronous Callable

源代码在GitHub上查看
python
def async_wrapper(func: Callable[..., Any]) -> Callable[..., Coroutine]:
+
+    async def wrapper(*args, **kwargs):
+        return func(*args, **kwargs)
+    wrapper.__signature__ = inspect.signature(func)
+    return wrapper
`,35)]))}const c=i(l,[["render",h]]);export{E as __pageData,c as default}; diff --git a/assets/dev_api_utils.md.wryzX8vr.lean.js b/assets/dev_api_utils.md.wryzX8vr.lean.js deleted file mode 100644 index 94021da9..00000000 --- a/assets/dev_api_utils.md.wryzX8vr.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"liteyuki.utils","description":"","frontmatter":{"title":"liteyuki.utils"},"headers":[],"relativePath":"dev/api/utils.md","filePath":"zh/dev/api/utils.md","lastUpdated":null}'),t={name:"dev/api/utils.md"},l=n("",35),h=[l];function e(p,k,r,o,d,E){return a(),i("div",null,h)}const u=s(t,[["render",e]]);export{g as __pageData,u as default}; diff --git a/assets/dev_best_practices.md.C81iVQ5j.js b/assets/dev_best_practices.md.C81iVQ5j.js new file mode 100644 index 00000000..8393be1a --- /dev/null +++ b/assets/dev_best_practices.md.C81iVQ5j.js @@ -0,0 +1 @@ +import{_ as e,c as i,a7 as a,o as r}from"./chunks/framework.jrU0lkHV.js";const b=JSON.parse('{"title":"最佳实践","description":"","frontmatter":{"title":"最佳实践","order":10},"headers":[],"relativePath":"dev/best_practices.md","filePath":"zh/dev/best_practices.md","lastUpdated":1726860160000}'),o={name:"dev/best_practices.md"};function l(n,t,u,h,s,c){return r(),i("div",null,t[0]||(t[0]=[a('

最佳实践

机器人应用

插件

其他

  • liteyuki starmap:轻雪官方星图,展示轻雪的所有实例及其位置分布
  • TRSS_Liteyuki:TRSS LiteyukiBot 管理脚本
  • litedoc:轻雪API文档生成器
  • liteyukibot-api (闭源):轻雪机器人统计接口
',7)]))}const k=e(o,[["render",l]]);export{b as __pageData,k as default}; diff --git a/assets/dev_best_practices.md.C81iVQ5j.lean.js b/assets/dev_best_practices.md.C81iVQ5j.lean.js new file mode 100644 index 00000000..8393be1a --- /dev/null +++ b/assets/dev_best_practices.md.C81iVQ5j.lean.js @@ -0,0 +1 @@ +import{_ as e,c as i,a7 as a,o as r}from"./chunks/framework.jrU0lkHV.js";const b=JSON.parse('{"title":"最佳实践","description":"","frontmatter":{"title":"最佳实践","order":10},"headers":[],"relativePath":"dev/best_practices.md","filePath":"zh/dev/best_practices.md","lastUpdated":1726860160000}'),o={name:"dev/best_practices.md"};function l(n,t,u,h,s,c){return r(),i("div",null,t[0]||(t[0]=[a('

最佳实践

机器人应用

插件

其他

  • liteyuki starmap:轻雪官方星图,展示轻雪的所有实例及其位置分布
  • TRSS_Liteyuki:TRSS LiteyukiBot 管理脚本
  • litedoc:轻雪API文档生成器
  • liteyukibot-api (闭源):轻雪机器人统计接口
',7)]))}const k=e(o,[["render",l]]);export{b as __pageData,k as default}; diff --git a/assets/dev_best_practices.md.CJZXAqyp.js b/assets/dev_best_practices.md.CJZXAqyp.js deleted file mode 100644 index ead5bf40..00000000 --- a/assets/dev_best_practices.md.CJZXAqyp.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as t,c as e,o as i,a9 as a}from"./chunks/framework.C4_mTacX.js";const k=JSON.parse('{"title":"最佳实践","description":"","frontmatter":{"title":"最佳实践","order":10},"headers":[],"relativePath":"dev/best_practices.md","filePath":"zh/dev/best_practices.md","lastUpdated":1726860160000}'),r={name:"dev/best_practices.md"},o=a('

最佳实践

机器人应用

插件

其他

  • liteyuki starmap:轻雪官方星图,展示轻雪的所有实例及其位置分布
  • TRSS_Liteyuki:TRSS LiteyukiBot 管理脚本
  • litedoc:轻雪API文档生成器
  • liteyukibot-api (闭源):轻雪机器人统计接口
',7),l=[o];function n(u,h,s,c,_,d){return i(),e("div",null,l)}const p=t(r,[["render",n]]);export{k as __pageData,p as default}; diff --git a/assets/dev_best_practices.md.CJZXAqyp.lean.js b/assets/dev_best_practices.md.CJZXAqyp.lean.js deleted file mode 100644 index a1b322e2..00000000 --- a/assets/dev_best_practices.md.CJZXAqyp.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as t,c as e,o as i,a9 as a}from"./chunks/framework.C4_mTacX.js";const k=JSON.parse('{"title":"最佳实践","description":"","frontmatter":{"title":"最佳实践","order":10},"headers":[],"relativePath":"dev/best_practices.md","filePath":"zh/dev/best_practices.md","lastUpdated":1726860160000}'),r={name:"dev/best_practices.md"},o=a("",7),l=[o];function n(u,h,s,c,_,d){return i(),e("div",null,l)}const p=t(r,[["render",n]]);export{k as __pageData,p as default}; diff --git a/assets/dev_comm.md.cMJIV6AK.js b/assets/dev_comm.md.CxBTde6D.js similarity index 84% rename from assets/dev_comm.md.cMJIV6AK.js rename to assets/dev_comm.md.CxBTde6D.js index c7180610..d415812a 100644 --- a/assets/dev_comm.md.cMJIV6AK.js +++ b/assets/dev_comm.md.CxBTde6D.js @@ -1,4 +1,4 @@ -import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"进程通信","description":"","frontmatter":{"title":"进程通信","order":4},"headers":[],"relativePath":"dev/comm.md","filePath":"zh/dev/comm.md","lastUpdated":1725102337000}'),e={name:"dev/comm.md"},h=n(`

通道通信

简介

轻雪运行在主进程 MainProcess 里,其他插件框架进程是伴随的子进程,因此无法通过内存共享和直接对象传递的方式进行通信, 轻雪提供了一个通道Channel用于跨进程通信, 你可以通过Channel发送消息给其他进程,也可以监听其他进程的消息。

例如子进程接收到用户信息需要重启机器人,这时可以通过通道对主进程发送消息,主进程接收到消息后重启对应子进程。

示例

通道是全双工的,有两种接收模式,但一个通道只能使用一种,即被动模式和主动模式,被动模式由chan.on_receive()装饰回调函数实现,主动模式需调用chan.receive()实现

  • 创建子进程的同时会初始化一个被动通道和一个主动通道,且通道标识为{process_name}-active{process_name}-passive
  • 主进程中通过get_channel函数获取通道对象
  • 子进程中导入单例active_channelpassive_channel即可

在轻雪插件中(主进程中)

python
import asyncio
+import{_ as i,c as a,a7 as n,o as e}from"./chunks/framework.jrU0lkHV.js";const o=JSON.parse('{"title":"进程通信","description":"","frontmatter":{"title":"进程通信","order":4},"headers":[],"relativePath":"dev/comm.md","filePath":"zh/dev/comm.md","lastUpdated":1725102337000}'),l={name:"dev/comm.md"};function h(t,s,p,k,r,d){return e(),a("div",null,s[0]||(s[0]=[n(`

通道通信

简介

轻雪运行在主进程 MainProcess 里,其他插件框架进程是伴随的子进程,因此无法通过内存共享和直接对象传递的方式进行通信, 轻雪提供了一个通道Channel用于跨进程通信, 你可以通过Channel发送消息给其他进程,也可以监听其他进程的消息。

例如子进程接收到用户信息需要重启机器人,这时可以通过通道对主进程发送消息,主进程接收到消息后重启对应子进程。

示例

通道是全双工的,有两种接收模式,但一个通道只能使用一种,即被动模式和主动模式,被动模式由chan.on_receive()装饰回调函数实现,主动模式需调用chan.receive()实现

  • 创建子进程的同时会初始化一个被动通道和一个主动通道,且通道标识为{process_name}-active{process_name}-passive
  • 主进程中通过get_channel函数获取通道对象
  • 子进程中导入单例active_channelpassive_channel即可

在轻雪插件中(主进程中)

python
import asyncio
 
 from liteyuki.comm import get_channel, Channel
 from liteyuki import get_bot
@@ -40,4 +40,4 @@ import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const g
 ...

共享内存通信

简介

  • 相比于普通进程通信,内存共享使得代码编写更加简洁,轻雪框架提供了一个内存共享通信的接口,你可以通过storage模块实现内存共享通信,该模块封装通道实现
  • 内存共享是线程安全的,你可以在多个线程中读写共享内存,线程锁会自动保护共享内存的读写操作

示例

在任意进程中均可使用

python
from liteyuki.comm.storage import shared_memory
 
 shared_memory.set("key", "value")  # 设置共享内存
-value = shared_memory.get("key")  # 获取共享内存

源代码:liteyuki/comm/storage.py

`,20),l=[h];function t(p,k,r,d,E,o){return a(),i("div",null,l)}const y=s(e,[["render",t]]);export{g as __pageData,y as default}; +value = shared_memory.get("key") # 获取共享内存

源代码:liteyuki/comm/storage.py

`,20)]))}const c=i(l,[["render",h]]);export{o as __pageData,c as default}; diff --git a/assets/dev_comm.md.CxBTde6D.lean.js b/assets/dev_comm.md.CxBTde6D.lean.js new file mode 100644 index 00000000..d415812a --- /dev/null +++ b/assets/dev_comm.md.CxBTde6D.lean.js @@ -0,0 +1,43 @@ +import{_ as i,c as a,a7 as n,o as e}from"./chunks/framework.jrU0lkHV.js";const o=JSON.parse('{"title":"进程通信","description":"","frontmatter":{"title":"进程通信","order":4},"headers":[],"relativePath":"dev/comm.md","filePath":"zh/dev/comm.md","lastUpdated":1725102337000}'),l={name:"dev/comm.md"};function h(t,s,p,k,r,d){return e(),a("div",null,s[0]||(s[0]=[n(`

通道通信

简介

轻雪运行在主进程 MainProcess 里,其他插件框架进程是伴随的子进程,因此无法通过内存共享和直接对象传递的方式进行通信, 轻雪提供了一个通道Channel用于跨进程通信, 你可以通过Channel发送消息给其他进程,也可以监听其他进程的消息。

例如子进程接收到用户信息需要重启机器人,这时可以通过通道对主进程发送消息,主进程接收到消息后重启对应子进程。

示例

通道是全双工的,有两种接收模式,但一个通道只能使用一种,即被动模式和主动模式,被动模式由chan.on_receive()装饰回调函数实现,主动模式需调用chan.receive()实现

  • 创建子进程的同时会初始化一个被动通道和一个主动通道,且通道标识为{process_name}-active{process_name}-passive
  • 主进程中通过get_channel函数获取通道对象
  • 子进程中导入单例active_channelpassive_channel即可

在轻雪插件中(主进程中)

python
import asyncio
+
+from liteyuki.comm import get_channel, Channel
+from liteyuki import get_bot
+
+# get_channel函数获取通道对象,参数为调用set_channel时的通道标识
+channel_passive = get_channel("nonebot-passive")  # 获取被动通道
+channel_active = get_channel("nonebot-active")  # 获取主动通道
+liteyuki_bot = get_bot()
+
+
+# 注册一个函数在轻雪启动后运行
+@liteyuki_bot.on_after_start
+async def send_data():
+    while True:
+        channel_passive.send("I am liteyuki main process passive")
+        channel_active.send("I am liteyuki main process active")
+        await asyncio.sleep(3)  # 每3秒发送一次消息

在子进程中(例如NoneBot插件中)

python
from nonebot import get_driver
+from liteyuki.comm import active_channel, passive_channel  # 子进程中获取通道直接导入进程全局单例即可
+from liteyuki.log import logger
+
+driver = get_driver()
+
+
+# 被动模式,通过装饰器注册一个函数在接收到消息时运行,每次接收到字符串数据时都会运行
+@passive_channel.on_receive(filter_func=lambda data: isinstance(data, str))
+async def on_passive_receive(data):
+    logger.info(f"Passive receive: {data}")
+
+
+# 注册一个函数在NoneBot启动后运行
+@driver.on_startup
+def on_startup():
+    while True:
+        data = active_channel.receive()
+        logger.info(f"Active receive: {data}")

启动后控制台输出

log
0000-00-00 00:00:00 [ℹ️信息] Passive receive: I am liteyuki main process passive
+0000-00-00 00:00:00 [ℹ️信息] Active receive: I am liteyuki main process active
+0000-00-00 00:00:03 [ℹ️信息] Passive receive: I am liteyuki main process passive
+0000-00-00 00:00:03 [ℹ️信息] Active receive: I am liteyuki main process active
+...

共享内存通信

简介

  • 相比于普通进程通信,内存共享使得代码编写更加简洁,轻雪框架提供了一个内存共享通信的接口,你可以通过storage模块实现内存共享通信,该模块封装通道实现
  • 内存共享是线程安全的,你可以在多个线程中读写共享内存,线程锁会自动保护共享内存的读写操作

示例

在任意进程中均可使用

python
from liteyuki.comm.storage import shared_memory
+
+shared_memory.set("key", "value")  # 设置共享内存
+value = shared_memory.get("key")  # 获取共享内存

源代码:liteyuki/comm/storage.py

`,20)]))}const c=i(l,[["render",h]]);export{o as __pageData,c as default}; diff --git a/assets/dev_comm.md.cMJIV6AK.lean.js b/assets/dev_comm.md.cMJIV6AK.lean.js deleted file mode 100644 index e26d04df..00000000 --- a/assets/dev_comm.md.cMJIV6AK.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"进程通信","description":"","frontmatter":{"title":"进程通信","order":4},"headers":[],"relativePath":"dev/comm.md","filePath":"zh/dev/comm.md","lastUpdated":1725102337000}'),e={name:"dev/comm.md"},h=n("",20),l=[h];function t(p,k,r,d,E,o){return a(),i("div",null,l)}const y=s(e,[["render",t]]);export{g as __pageData,y as default}; diff --git a/assets/dev_guide.md.Bh9eUuws.js b/assets/dev_guide.md.Bh9eUuws.js deleted file mode 100644 index 17472f35..00000000 --- a/assets/dev_guide.md.Bh9eUuws.js +++ /dev/null @@ -1 +0,0 @@ -import{C as e}from"./chunks/ContributorBar.Br32ziZW.js";import{c as o,I as i,a9 as l,o as t}from"./chunks/framework.C4_mTacX.js";import"./chunks/theme.dkAQqrG2.js";const a=l('

开发指南

如何开发

插件开发无需阅读本文档,请阅读插件开发文档API 引用

如需往轻雪仓库提交代码,请阅读以下内容:

  1. 首先fork一份轻雪仓库到你的个人/组织账户下。
  2. 在你的仓库中进行开发。
  3. 在你的仓库中创建一个新的分支,将你的代码提交到这个分支。
  4. 在你的仓库中创建一个Pull Request,将你的分支合并到轻雪仓库的main分支。

参与开发默认你已经了解Python语言和轻雪框架的基本使用方法,如果是文档相关的开发,请确保你了解Markdown语法和基本前端知识。 出现冲突请与仓库维护者联系。

建议

  • 开发过程中可以使用mypy, flake8, black等工具进行代码检查和格式化。
  • 启用开发者模式,可以在config.yml中设置dev_mode: true,这样可以在控制台看到更多的调试信息。

项目结构

  • main.py: 机器人入口文件
  • liteyuki: 框架目录(liteyukibot)
  • src: 机器人源码目录
    • liteyuki_plugins: 轻雪插件目录
    • nonebot_plugins: Nonebot插件目录
    • resources: 内置资源包目录
    • utils: 工具目录
  • tests: 单元测试目录
  • docs: 文档目录
    • en: 英文文档
    • zh: 中文文档
  • docker: Docker相关内容目录

其中,liteyuki框架是包含在LiteyukiBot应用中的,所以此项目既是LiteyukiBot应用仓库,同时也是liteyuki框架的仓库

src目录下为应用程序部分,业务逻辑请在此目录下进行开发,liteyuki_pluginsnonebot_plugins目录下为插件目录,插件开发请在此目录下进行开发。

规范化

  • 代码请遵循PEP8Google Python Style Guide
  • 提交到轻雪仓库的代码,请遵循以下规范:
    • 请确保代码是可运行的,没有危害的。
    • 请确保代码的类型提示是正确的。
    • 请确保注释风格为Google DocstringLiteyuki Docstring(推荐)以保证Litedoc能够正确解析并生成文档。
    • 字符串请使用双引号",尽量避免使用单引号',但在嵌套字符串时可以使用单引号。
    • 若有面向普通用户部分,请确保文档是完善的(每种语言都有对应的文档)。
  • commit message请遵循以下规范:
    • 应在每次完成一个功能或修复一个bug后提交代码,不要将多个功能或多个bug的代码混在一起提交。
    • 我们使用gitmoji来标记commit的类型,如:sparkles:表示引入新功能,:bug:表示修复bug等,具体请参考gitmoji
    • commit message的格式为<emoji> [type:] <message>,如:sparkles: feat: 给event添加新字段, 其中type字段为commit类型且可选,message字段为简短的描述,总结来说就是你干了什么。
    • 不限制commit message的语言,有条件可以使用中英双语。
  • 文档请遵循Markdown语法,并且支持vitepress相关内容:
    • 修订文档时,每个语言的文档都要修订。
    • 请确保文档内的链接是正确的,不要出现无法访问的死链接。
    • 请确保用户文档是通俗易懂的,开发文档是详细的。

最后

  • 本项目是一个非盈利的开源项目,我们欢迎任何人参与开发,你的贡献将会使轻雪变得更好。
',16),g=JSON.parse('{"title":"开发指南","description":"","frontmatter":{"title":"开发指南","order":0},"headers":[],"relativePath":"dev/guide.md","filePath":"zh/dev/guide.md","lastUpdated":1725389024000}'),r={name:"dev/guide.md"},m=Object.assign(r,{setup(d){return(c,u)=>(t(),o("div",null,[a,i(e)]))}});export{g as __pageData,m as default}; diff --git a/assets/dev_guide.md.Bh9eUuws.lean.js b/assets/dev_guide.md.Bh9eUuws.lean.js deleted file mode 100644 index eac8d43b..00000000 --- a/assets/dev_guide.md.Bh9eUuws.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{C as e}from"./chunks/ContributorBar.Br32ziZW.js";import{c as o,I as i,a9 as l,o as t}from"./chunks/framework.C4_mTacX.js";import"./chunks/theme.dkAQqrG2.js";const a=l("",16),g=JSON.parse('{"title":"开发指南","description":"","frontmatter":{"title":"开发指南","order":0},"headers":[],"relativePath":"dev/guide.md","filePath":"zh/dev/guide.md","lastUpdated":1725389024000}'),r={name:"dev/guide.md"},m=Object.assign(r,{setup(d){return(c,u)=>(t(),o("div",null,[a,i(e)]))}});export{g as __pageData,m as default}; diff --git a/assets/dev_guide.md.DaPEdOY0.js b/assets/dev_guide.md.DaPEdOY0.js new file mode 100644 index 00000000..ca6afc9c --- /dev/null +++ b/assets/dev_guide.md.DaPEdOY0.js @@ -0,0 +1 @@ +import{C as o}from"./chunks/ContributorBar.pWVsN6v9.js";import{c as i,a7 as l,G as t,o as a}from"./chunks/framework.jrU0lkHV.js";import"./chunks/theme.0PwJcuzq.js";const h=JSON.parse('{"title":"开发指南","description":"","frontmatter":{"title":"开发指南","order":0},"headers":[],"relativePath":"dev/guide.md","filePath":"zh/dev/guide.md","lastUpdated":1725389024000}'),r={name:"dev/guide.md"},g=Object.assign(r,{setup(d){return(c,e)=>(a(),i("div",null,[e[0]||(e[0]=l('

开发指南

如何开发

插件开发无需阅读本文档,请阅读插件开发文档API 引用

如需往轻雪仓库提交代码,请阅读以下内容:

  1. 首先fork一份轻雪仓库到你的个人/组织账户下。
  2. 在你的仓库中进行开发。
  3. 在你的仓库中创建一个新的分支,将你的代码提交到这个分支。
  4. 在你的仓库中创建一个Pull Request,将你的分支合并到轻雪仓库的main分支。

参与开发默认你已经了解Python语言和轻雪框架的基本使用方法,如果是文档相关的开发,请确保你了解Markdown语法和基本前端知识。 出现冲突请与仓库维护者联系。

建议

  • 开发过程中可以使用mypy, flake8, black等工具进行代码检查和格式化。
  • 启用开发者模式,可以在config.yml中设置dev_mode: true,这样可以在控制台看到更多的调试信息。

项目结构

  • main.py: 机器人入口文件
  • liteyuki: 框架目录(liteyukibot)
  • src: 机器人源码目录
    • liteyuki_plugins: 轻雪插件目录
    • nonebot_plugins: Nonebot插件目录
    • resources: 内置资源包目录
    • utils: 工具目录
  • tests: 单元测试目录
  • docs: 文档目录
    • en: 英文文档
    • zh: 中文文档
  • docker: Docker相关内容目录

其中,liteyuki框架是包含在LiteyukiBot应用中的,所以此项目既是LiteyukiBot应用仓库,同时也是liteyuki框架的仓库

src目录下为应用程序部分,业务逻辑请在此目录下进行开发,liteyuki_pluginsnonebot_plugins目录下为插件目录,插件开发请在此目录下进行开发。

规范化

  • 代码请遵循PEP8Google Python Style Guide
  • 提交到轻雪仓库的代码,请遵循以下规范:
    • 请确保代码是可运行的,没有危害的。
    • 请确保代码的类型提示是正确的。
    • 请确保注释风格为Google DocstringLiteyuki Docstring(推荐)以保证Litedoc能够正确解析并生成文档。
    • 字符串请使用双引号",尽量避免使用单引号',但在嵌套字符串时可以使用单引号。
    • 若有面向普通用户部分,请确保文档是完善的(每种语言都有对应的文档)。
  • commit message请遵循以下规范:
    • 应在每次完成一个功能或修复一个bug后提交代码,不要将多个功能或多个bug的代码混在一起提交。
    • 我们使用gitmoji来标记commit的类型,如:sparkles:表示引入新功能,:bug:表示修复bug等,具体请参考gitmoji
    • commit message的格式为<emoji> [type:] <message>,如:sparkles: feat: 给event添加新字段, 其中type字段为commit类型且可选,message字段为简短的描述,总结来说就是你干了什么。
    • 不限制commit message的语言,有条件可以使用中英双语。
  • 文档请遵循Markdown语法,并且支持vitepress相关内容:
    • 修订文档时,每个语言的文档都要修订。
    • 请确保文档内的链接是正确的,不要出现无法访问的死链接。
    • 请确保用户文档是通俗易懂的,开发文档是详细的。

最后

  • 本项目是一个非盈利的开源项目,我们欢迎任何人参与开发,你的贡献将会使轻雪变得更好。
',16)),t(o)]))}});export{h as __pageData,g as default}; diff --git a/assets/dev_guide.md.DaPEdOY0.lean.js b/assets/dev_guide.md.DaPEdOY0.lean.js new file mode 100644 index 00000000..ca6afc9c --- /dev/null +++ b/assets/dev_guide.md.DaPEdOY0.lean.js @@ -0,0 +1 @@ +import{C as o}from"./chunks/ContributorBar.pWVsN6v9.js";import{c as i,a7 as l,G as t,o as a}from"./chunks/framework.jrU0lkHV.js";import"./chunks/theme.0PwJcuzq.js";const h=JSON.parse('{"title":"开发指南","description":"","frontmatter":{"title":"开发指南","order":0},"headers":[],"relativePath":"dev/guide.md","filePath":"zh/dev/guide.md","lastUpdated":1725389024000}'),r={name:"dev/guide.md"},g=Object.assign(r,{setup(d){return(c,e)=>(a(),i("div",null,[e[0]||(e[0]=l('

开发指南

如何开发

插件开发无需阅读本文档,请阅读插件开发文档API 引用

如需往轻雪仓库提交代码,请阅读以下内容:

  1. 首先fork一份轻雪仓库到你的个人/组织账户下。
  2. 在你的仓库中进行开发。
  3. 在你的仓库中创建一个新的分支,将你的代码提交到这个分支。
  4. 在你的仓库中创建一个Pull Request,将你的分支合并到轻雪仓库的main分支。

参与开发默认你已经了解Python语言和轻雪框架的基本使用方法,如果是文档相关的开发,请确保你了解Markdown语法和基本前端知识。 出现冲突请与仓库维护者联系。

建议

  • 开发过程中可以使用mypy, flake8, black等工具进行代码检查和格式化。
  • 启用开发者模式,可以在config.yml中设置dev_mode: true,这样可以在控制台看到更多的调试信息。

项目结构

  • main.py: 机器人入口文件
  • liteyuki: 框架目录(liteyukibot)
  • src: 机器人源码目录
    • liteyuki_plugins: 轻雪插件目录
    • nonebot_plugins: Nonebot插件目录
    • resources: 内置资源包目录
    • utils: 工具目录
  • tests: 单元测试目录
  • docs: 文档目录
    • en: 英文文档
    • zh: 中文文档
  • docker: Docker相关内容目录

其中,liteyuki框架是包含在LiteyukiBot应用中的,所以此项目既是LiteyukiBot应用仓库,同时也是liteyuki框架的仓库

src目录下为应用程序部分,业务逻辑请在此目录下进行开发,liteyuki_pluginsnonebot_plugins目录下为插件目录,插件开发请在此目录下进行开发。

规范化

  • 代码请遵循PEP8Google Python Style Guide
  • 提交到轻雪仓库的代码,请遵循以下规范:
    • 请确保代码是可运行的,没有危害的。
    • 请确保代码的类型提示是正确的。
    • 请确保注释风格为Google DocstringLiteyuki Docstring(推荐)以保证Litedoc能够正确解析并生成文档。
    • 字符串请使用双引号",尽量避免使用单引号',但在嵌套字符串时可以使用单引号。
    • 若有面向普通用户部分,请确保文档是完善的(每种语言都有对应的文档)。
  • commit message请遵循以下规范:
    • 应在每次完成一个功能或修复一个bug后提交代码,不要将多个功能或多个bug的代码混在一起提交。
    • 我们使用gitmoji来标记commit的类型,如:sparkles:表示引入新功能,:bug:表示修复bug等,具体请参考gitmoji
    • commit message的格式为<emoji> [type:] <message>,如:sparkles: feat: 给event添加新字段, 其中type字段为commit类型且可选,message字段为简短的描述,总结来说就是你干了什么。
    • 不限制commit message的语言,有条件可以使用中英双语。
  • 文档请遵循Markdown语法,并且支持vitepress相关内容:
    • 修订文档时,每个语言的文档都要修订。
    • 请确保文档内的链接是正确的,不要出现无法访问的死链接。
    • 请确保用户文档是通俗易懂的,开发文档是详细的。

最后

  • 本项目是一个非盈利的开源项目,我们欢迎任何人参与开发,你的贡献将会使轻雪变得更好。
',16)),t(o)]))}});export{h as __pageData,g as default}; diff --git a/assets/dev_lyfunc.md.D4LU5X67.lean.js b/assets/dev_lyfunc.md.D4LU5X67.lean.js deleted file mode 100644 index 80567529..00000000 --- a/assets/dev_lyfunc.md.D4LU5X67.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const F=JSON.parse('{"title":"轻雪函数","description":"","frontmatter":{"title":"轻雪函数","order":2},"headers":[],"relativePath":"dev/lyfunc.md","filePath":"zh/dev/lyfunc.md","lastUpdated":1725101868000}'),t={name:"dev/lyfunc.md"},l=n("",19),e=[l];function h(p,k,d,r,o,c){return a(),i("div",null,e)}const y=s(t,[["render",h]]);export{F as __pageData,y as default}; diff --git a/assets/dev_lyfunc.md.D4LU5X67.js b/assets/dev_lyfunc.md.DXKpS1Qm.js similarity index 84% rename from assets/dev_lyfunc.md.D4LU5X67.js rename to assets/dev_lyfunc.md.DXKpS1Qm.js index 6fd35e67..ba5fcac0 100644 --- a/assets/dev_lyfunc.md.D4LU5X67.js +++ b/assets/dev_lyfunc.md.DXKpS1Qm.js @@ -1,4 +1,4 @@ -import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const F=JSON.parse('{"title":"轻雪函数","description":"","frontmatter":{"title":"轻雪函数","order":2},"headers":[],"relativePath":"dev/lyfunc.md","filePath":"zh/dev/lyfunc.md","lastUpdated":1725101868000}'),t={name:"dev/lyfunc.md"},l=n(`

轻雪函数

轻雪函数 Liteyuki Function 是轻雪的一个功能,它允许你在轻雪中运行一些自定义的由数据驱动的命令,类似于Minecraft的mcfunction,属于资源包的一部分,但需单独起篇幅.

函数文件

函数文件放在资源包的functions目录下,文件名以.mcfunction .lyfunction .lyf结尾,例如test.mcfunction,文件内容为一系列的命令,每行一个命令,支持单行注释#(编辑时的语法高亮可采取shell格式),例如:

shell
# 在发信器输出"hello world"
+import{_ as i,c as a,a7 as n,o as t}from"./chunks/framework.jrU0lkHV.js";const c=JSON.parse('{"title":"轻雪函数","description":"","frontmatter":{"title":"轻雪函数","order":2},"headers":[],"relativePath":"dev/lyfunc.md","filePath":"zh/dev/lyfunc.md","lastUpdated":1725101868000}'),l={name:"dev/lyfunc.md"};function e(h,s,p,k,d,r){return t(),a("div",null,s[0]||(s[0]=[n(`

轻雪函数

轻雪函数 Liteyuki Function 是轻雪的一个功能,它允许你在轻雪中运行一些自定义的由数据驱动的命令,类似于Minecraft的mcfunction,属于资源包的一部分,但需单独起篇幅.

函数文件

函数文件放在资源包的functions目录下,文件名以.mcfunction .lyfunction .lyf结尾,例如test.mcfunction,文件内容为一系列的命令,每行一个命令,支持单行注释#(编辑时的语法高亮可采取shell格式),例如:

shell
# 在发信器输出"hello world"
 cmd echo hello world
 
 # 如果你想同时输出多行内容可以尝试换行符(Python格式)
@@ -17,4 +17,4 @@ import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const F
 api friend_poke user_id=user_id
 sleep 0.2
 nohup function poke
-await

API

理论上所有基于onebotv11的api都可调用,不同Adapter api也有差别.

Onebot v11 API文档

结束关键字

由于LiteyukiBot基于异步运行, 所以在编写lyfunction时也要注意异步的调用,避免出现"单线程走到底"的情况是效率提升的关键.

await 异步任务结束关键字,用于结束当前已完成function的执行

WARNING

但若出现非单function的情况,有一个task任务没有完成而await被执行了,那么当前所有函数包的task都会被截停销毁

TIP

编写轻雪函数推荐你使用VS Code插件Liteyuki Function实现语法高亮

`,19),e=[l];function h(p,k,d,r,o,c){return a(),i("div",null,e)}const y=s(t,[["render",h]]);export{F as __pageData,y as default}; +await

API

理论上所有基于onebotv11的api都可调用,不同Adapter api也有差别.

Onebot v11 API文档

结束关键字

由于LiteyukiBot基于异步运行, 所以在编写lyfunction时也要注意异步的调用,避免出现"单线程走到底"的情况是效率提升的关键.

await 异步任务结束关键字,用于结束当前已完成function的执行

WARNING

但若出现非单function的情况,有一个task任务没有完成而await被执行了,那么当前所有函数包的task都会被截停销毁

TIP

编写轻雪函数推荐你使用VS Code插件Liteyuki Function实现语法高亮

`,19)]))}const g=i(l,[["render",e]]);export{c as __pageData,g as default}; diff --git a/assets/dev_lyfunc.md.DXKpS1Qm.lean.js b/assets/dev_lyfunc.md.DXKpS1Qm.lean.js new file mode 100644 index 00000000..ba5fcac0 --- /dev/null +++ b/assets/dev_lyfunc.md.DXKpS1Qm.lean.js @@ -0,0 +1,20 @@ +import{_ as i,c as a,a7 as n,o as t}from"./chunks/framework.jrU0lkHV.js";const c=JSON.parse('{"title":"轻雪函数","description":"","frontmatter":{"title":"轻雪函数","order":2},"headers":[],"relativePath":"dev/lyfunc.md","filePath":"zh/dev/lyfunc.md","lastUpdated":1725101868000}'),l={name:"dev/lyfunc.md"};function e(h,s,p,k,d,r){return t(),a("div",null,s[0]||(s[0]=[n(`

轻雪函数

轻雪函数 Liteyuki Function 是轻雪的一个功能,它允许你在轻雪中运行一些自定义的由数据驱动的命令,类似于Minecraft的mcfunction,属于资源包的一部分,但需单独起篇幅.

函数文件

函数文件放在资源包的functions目录下,文件名以.mcfunction .lyfunction .lyf结尾,例如test.mcfunction,文件内容为一系列的命令,每行一个命令,支持单行注释#(编辑时的语法高亮可采取shell格式),例如:

shell
# 在发信器输出"hello world"
+cmd echo hello world
+
+# 如果你想同时输出多行内容可以尝试换行符(Python格式)
+cmd echo hello world\\nLiteyuki bot

也支持句末注释,例如:

shell
cmd echo hello world # 输出"hello world"

命令文档

shell
var <var1=value1> [var2=value2] ...  # 定义变量
+cmd <command>  # 在设备上执行命令
+api <api_name> [var=value...]  # 调用Bot API
+function <func_name> # 调用函数,可递归
+sleep <time>  # 异步等待,单位s
+nohup <command>  # 使用新的task执行命令,即不等待
+end # 结束函数关键字,包括子task
+await # 等待所有异步任务结束,若函数中启动了其他task,需要在最后调用,否则task对象会被销毁

示例

shell
# 疯狂戳好友
+# 使用 /function poke user_id=123456 执行
+# 每隔0.2s戳两次,无限戳,会触发最大递归深度限制
+# 若要戳20s后停止,则需要删除await,添加sleep 20和end
+api friend_poke user_id=user_id
+api friend_poke user_id=user_id
+sleep 0.2
+nohup function poke
+await

API

理论上所有基于onebotv11的api都可调用,不同Adapter api也有差别.

Onebot v11 API文档

结束关键字

由于LiteyukiBot基于异步运行, 所以在编写lyfunction时也要注意异步的调用,避免出现"单线程走到底"的情况是效率提升的关键.

await 异步任务结束关键字,用于结束当前已完成function的执行

WARNING

但若出现非单function的情况,有一个task任务没有完成而await被执行了,那么当前所有函数包的task都会被截停销毁

TIP

编写轻雪函数推荐你使用VS Code插件Liteyuki Function实现语法高亮

`,19)]))}const g=i(l,[["render",e]]);export{c as __pageData,g as default}; diff --git a/assets/dev_plugin.md.phZolwS6.js b/assets/dev_plugin.md.CUXCZtZe.js similarity index 86% rename from assets/dev_plugin.md.phZolwS6.js rename to assets/dev_plugin.md.CUXCZtZe.js index 7100a0e8..513c603a 100644 --- a/assets/dev_plugin.md.phZolwS6.js +++ b/assets/dev_plugin.md.CUXCZtZe.js @@ -1,4 +1,4 @@ -import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const y=JSON.parse('{"title":"轻雪插件开发","description":"","frontmatter":{"title":"轻雪插件开发","order":3},"headers":[],"relativePath":"dev/plugin.md","filePath":"zh/dev/plugin.md","lastUpdated":1725101868000}'),t={name:"dev/plugin.md"},h=n(`

简介

轻雪插件是轻雪内置的一部分功能,运行在主进程中,可以很高程度地扩展轻雪的功能

开始

创建插件

一个.py文件或一个包含__init__.py的文件夹即可被识别为插件

首先创建一个文件夹,例如watchdog_plugin,并在其中创建一个__init__.py文件,即可创建一个插件

__init__.py

python
from liteyuki.plugin import PluginMetadata, PluginType
+import{_ as i,c as a,a7 as n,o as t}from"./chunks/framework.jrU0lkHV.js";const o=JSON.parse('{"title":"轻雪插件开发","description":"","frontmatter":{"title":"轻雪插件开发","order":3},"headers":[],"relativePath":"dev/plugin.md","filePath":"zh/dev/plugin.md","lastUpdated":1725101868000}'),h={name:"dev/plugin.md"};function l(p,s,e,k,d,r){return t(),a("div",null,s[0]||(s[0]=[n(`

简介

轻雪插件是轻雪内置的一部分功能,运行在主进程中,可以很高程度地扩展轻雪的功能

开始

创建插件

一个.py文件或一个包含__init__.py的文件夹即可被识别为插件

首先创建一个文件夹,例如watchdog_plugin,并在其中创建一个__init__.py文件,即可创建一个插件

__init__.py

python
from liteyuki.plugin import PluginMetadata, PluginType
 from .watch_dog import *    # 导入逻辑部分
 
 # 定义插件元数据
@@ -29,4 +29,4 @@ import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const y
     logger.debug(f"File {event.src_path} changed, reloading nonebot...")
     liteyuki.restart_process("nonebot")  # 调用重启进程方法

加载插件

方法1

  • 在配置文件中的liteyuki.plugins中添加你的插件路径,例如watchdog_plugin,重启轻雪即可加载插件。

方法2

  • 使用开发工具快速运行插件,无需手动创建实例
  • 创建入口文件,例如main.py,并在其中写入以下代码
python
from liteyuki.dev.plugin import run_plugins
 
-run_plugins("watchdog_plugin")

然后运行python main.py即可启动插件

启用插件后,我们在src/nonebot_plugins下创建一个文件,例如test.py,并在其中写入一些代码,保存后轻雪会自动重载NoneBot进程

`,19),l=[h];function p(e,k,d,r,E,o){return a(),i("div",null,l)}const c=s(t,[["render",p]]);export{y as __pageData,c as default}; +run_plugins("watchdog_plugin")

然后运行python main.py即可启动插件

启用插件后,我们在src/nonebot_plugins下创建一个文件,例如test.py,并在其中写入一些代码,保存后轻雪会自动重载NoneBot进程

`,19)]))}const g=i(h,[["render",l]]);export{o as __pageData,g as default}; diff --git a/assets/dev_plugin.md.CUXCZtZe.lean.js b/assets/dev_plugin.md.CUXCZtZe.lean.js new file mode 100644 index 00000000..513c603a --- /dev/null +++ b/assets/dev_plugin.md.CUXCZtZe.lean.js @@ -0,0 +1,32 @@ +import{_ as i,c as a,a7 as n,o as t}from"./chunks/framework.jrU0lkHV.js";const o=JSON.parse('{"title":"轻雪插件开发","description":"","frontmatter":{"title":"轻雪插件开发","order":3},"headers":[],"relativePath":"dev/plugin.md","filePath":"zh/dev/plugin.md","lastUpdated":1725101868000}'),h={name:"dev/plugin.md"};function l(p,s,e,k,d,r){return t(),a("div",null,s[0]||(s[0]=[n(`

简介

轻雪插件是轻雪内置的一部分功能,运行在主进程中,可以很高程度地扩展轻雪的功能

开始

创建插件

一个.py文件或一个包含__init__.py的文件夹即可被识别为插件

首先创建一个文件夹,例如watchdog_plugin,并在其中创建一个__init__.py文件,即可创建一个插件

__init__.py

python
from liteyuki.plugin import PluginMetadata, PluginType
+from .watch_dog import *    # 导入逻辑部分
+
+# 定义插件元数据
+__plugin_meta__ = PluginMetadata(
+    name="NoneDog",  # 插件名称
+    version="1.0.0",  # 插件版本
+    description="A simple plugin for nonebot developer",  # 插件描述
+    type=PluginType.SERVICE  # 插件类型
+)
+
+# 你的插件代码
+...

编写逻辑部分

轻雪主进程不涉及聊天部分,因此插件主要是一些后台任务或者与聊天机器人的通信 以下我们会编写一个简单的插件,用于开发NoneBot时进行文件系统变更重载 watch_dog.py

python
import os
+from liteyuki.dev import observer  # 导入文件系统观察器
+from liteyuki import get_bot, logger  # 导入轻雪Bot和日志
+from watchdog.events import FileSystemEvent  # 导入文件系统事件
+
+liteyuki = get_bot()  # 获取唯一的轻雪Bot实例
+
+exclude_extensions = (".pyc", ".pyo")  # 排除的文件扩展名
+
+
+# 用observer的on_file_system_event装饰器监听文件系统事件
+@observer.on_file_system_event(
+    directories=("src/nonebot_plugins",),
+    event_filter=lambda event: not event.src_path.endswith(exclude_extensions) and ("__pycache__" not in event.src_path) and os.path.isfile(event.src_path)
+)
+def restart_nonebot_process(event: FileSystemEvent):
+    logger.debug(f"File {event.src_path} changed, reloading nonebot...")
+    liteyuki.restart_process("nonebot")  # 调用重启进程方法

加载插件

方法1

  • 在配置文件中的liteyuki.plugins中添加你的插件路径,例如watchdog_plugin,重启轻雪即可加载插件。

方法2

  • 使用开发工具快速运行插件,无需手动创建实例
  • 创建入口文件,例如main.py,并在其中写入以下代码
python
from liteyuki.dev.plugin import run_plugins
+
+run_plugins("watchdog_plugin")

然后运行python main.py即可启动插件

启用插件后,我们在src/nonebot_plugins下创建一个文件,例如test.py,并在其中写入一些代码,保存后轻雪会自动重载NoneBot进程

`,19)]))}const g=i(h,[["render",l]]);export{o as __pageData,g as default}; diff --git a/assets/dev_plugin.md.phZolwS6.lean.js b/assets/dev_plugin.md.phZolwS6.lean.js deleted file mode 100644 index 694828de..00000000 --- a/assets/dev_plugin.md.phZolwS6.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const y=JSON.parse('{"title":"轻雪插件开发","description":"","frontmatter":{"title":"轻雪插件开发","order":3},"headers":[],"relativePath":"dev/plugin.md","filePath":"zh/dev/plugin.md","lastUpdated":1725101868000}'),t={name:"dev/plugin.md"},h=n("",19),l=[h];function p(e,k,d,r,E,o){return a(),i("div",null,l)}const c=s(t,[["render",p]]);export{y as __pageData,c as default}; diff --git a/assets/dev_resource.md.CiEukBtC.lean.js b/assets/dev_resource.md.CiEukBtC.lean.js deleted file mode 100644 index 095bfb63..00000000 --- a/assets/dev_resource.md.CiEukBtC.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as s,c as a,o as i,a9 as e}from"./chunks/framework.C4_mTacX.js";const m=JSON.parse('{"title":"资源包开发","description":"","frontmatter":{"title":"资源包开发","order":1},"headers":[],"relativePath":"dev/resource.md","filePath":"zh/dev/resource.md","lastUpdated":1725102337000}'),l={name:"dev/resource.md"},t=e("",12),n=[t];function p(c,h,d,o,r,k){return i(),a("div",null,n)}const y=s(l,[["render",p]]);export{m as __pageData,y as default}; diff --git a/assets/dev_resource.md.CiEukBtC.js b/assets/dev_resource.md.wRoE226-.js similarity index 59% rename from assets/dev_resource.md.CiEukBtC.js rename to assets/dev_resource.md.wRoE226-.js index d9c1ddd9..35ffe547 100644 --- a/assets/dev_resource.md.CiEukBtC.js +++ b/assets/dev_resource.md.wRoE226-.js @@ -1,4 +1,4 @@ -import{_ as s,c as a,o as i,a9 as e}from"./chunks/framework.C4_mTacX.js";const m=JSON.parse('{"title":"资源包开发","description":"","frontmatter":{"title":"资源包开发","order":1},"headers":[],"relativePath":"dev/resource.md","filePath":"zh/dev/resource.md","lastUpdated":1725102337000}'),l={name:"dev/resource.md"},t=e(`

简介

资源包,亦可根据用途称为主题包、字体包、语言包等,它允许你一定程度上自定义轻雪的外观,并且不用修改源代码

  • 资源/主题商店提供了一些资源包供你选择,你也可以自己制作资源包
  • 资源包的制作很简单,如果你接触过Minecraft的资源包,那么你能够很快就上手,仅需按照原有路径进行文件替换即可,讲起打包成一个新的资源包。
  • 部分内容制作需要一点点前端基础,例如htmlcss
  • 轻雪原版资源包请查看LiteyukiBot/liteyuki/resources,可以在此基础上进行修改
  • 欢迎各位投稿资源包到轻雪资源商店

请注意,主题包中的html渲染使用Js来规定数据的渲染位置,请确保您所编写的html代码能被Bot解析,否则会导致渲染失败或渲染结果不理想/异常/错位等无法预料的事情发生。推荐在编写html时同时更改对应Js代码,以避免出现无法预料的问题。


加载资源包

  • 资源包通常是以.zip格式压缩的,只需要将其解压到根目录resources目录下即可,注意不要嵌套文件夹,正常的路径应该是这样的
shell
main.py
+import{_ as a,c as i,a7 as e,o as l}from"./chunks/framework.jrU0lkHV.js";const k=JSON.parse('{"title":"资源包开发","description":"","frontmatter":{"title":"资源包开发","order":1},"headers":[],"relativePath":"dev/resource.md","filePath":"zh/dev/resource.md","lastUpdated":1725102337000}'),t={name:"dev/resource.md"};function n(p,s,d,h,c,o){return l(),i("div",null,s[0]||(s[0]=[e(`

简介

资源包,亦可根据用途称为主题包、字体包、语言包等,它允许你一定程度上自定义轻雪的外观,并且不用修改源代码

  • 资源/主题商店提供了一些资源包供你选择,你也可以自己制作资源包
  • 资源包的制作很简单,如果你接触过Minecraft的资源包,那么你能够很快就上手,仅需按照原有路径进行文件替换即可,讲起打包成一个新的资源包。
  • 部分内容制作需要一点点前端基础,例如htmlcss
  • 轻雪原版资源包请查看LiteyukiBot/liteyuki/resources,可以在此基础上进行修改
  • 欢迎各位投稿资源包到轻雪资源商店

请注意,主题包中的html渲染使用Js来规定数据的渲染位置,请确保您所编写的html代码能被Bot解析,否则会导致渲染失败或渲染结果不理想/异常/错位等无法预料的事情发生。推荐在编写html时同时更改对应Js代码,以避免出现无法预料的问题。


加载资源包

  • 资源包通常是以.zip格式压缩的,只需要将其解压到根目录resources目录下即可,注意不要嵌套文件夹,正常的路径应该是这样的
shell
main.py
 resources
 └─resource_pack_1
     ├─metadata.yml
@@ -10,4 +10,4 @@ import{_ as s,c as a,o as i,a9 as e}from"./chunks/framework.C4_mTacX.js";const m
 version: "1.0.0"
 description: "资源包描述"
 # 你可以自定义一些信息,但请保证以上三个字段
-...
  • 资源包加载遵循一个优先级,即后加载的资源包会覆盖前面的资源包,例如,你在A包中定义了一个index.html文件,B包也定义了一个index.html文件,那么加载B包后,A包中的index.html文件会被覆盖
  • 对于不同资源包的不同文件,是可以相对引用的,例如你在A中定义了templates/index.html,在B中定义了templates/style.css,可以在A的index.html中用./style.css相对路径引用B中的css

TIP

资源包的结构会随着轻雪的更新而有变动,第三方资源包开发者需要注意版本兼容性,同时用户也应该自行选择可用的资源包

`,12),n=[t];function p(c,h,d,o,r,k){return i(),a("div",null,n)}const y=s(l,[["render",p]]);export{m as __pageData,y as default}; +...
  • 资源包加载遵循一个优先级,即后加载的资源包会覆盖前面的资源包,例如,你在A包中定义了一个index.html文件,B包也定义了一个index.html文件,那么加载B包后,A包中的index.html文件会被覆盖
  • 对于不同资源包的不同文件,是可以相对引用的,例如你在A中定义了templates/index.html,在B中定义了templates/style.css,可以在A的index.html中用./style.css相对路径引用B中的css

TIP

资源包的结构会随着轻雪的更新而有变动,第三方资源包开发者需要注意版本兼容性,同时用户也应该自行选择可用的资源包

`,12)]))}const u=a(t,[["render",n]]);export{k as __pageData,u as default}; diff --git a/assets/dev_resource.md.wRoE226-.lean.js b/assets/dev_resource.md.wRoE226-.lean.js new file mode 100644 index 00000000..35ffe547 --- /dev/null +++ b/assets/dev_resource.md.wRoE226-.lean.js @@ -0,0 +1,13 @@ +import{_ as a,c as i,a7 as e,o as l}from"./chunks/framework.jrU0lkHV.js";const k=JSON.parse('{"title":"资源包开发","description":"","frontmatter":{"title":"资源包开发","order":1},"headers":[],"relativePath":"dev/resource.md","filePath":"zh/dev/resource.md","lastUpdated":1725102337000}'),t={name:"dev/resource.md"};function n(p,s,d,h,c,o){return l(),i("div",null,s[0]||(s[0]=[e(`

简介

资源包,亦可根据用途称为主题包、字体包、语言包等,它允许你一定程度上自定义轻雪的外观,并且不用修改源代码

  • 资源/主题商店提供了一些资源包供你选择,你也可以自己制作资源包
  • 资源包的制作很简单,如果你接触过Minecraft的资源包,那么你能够很快就上手,仅需按照原有路径进行文件替换即可,讲起打包成一个新的资源包。
  • 部分内容制作需要一点点前端基础,例如htmlcss
  • 轻雪原版资源包请查看LiteyukiBot/liteyuki/resources,可以在此基础上进行修改
  • 欢迎各位投稿资源包到轻雪资源商店

请注意,主题包中的html渲染使用Js来规定数据的渲染位置,请确保您所编写的html代码能被Bot解析,否则会导致渲染失败或渲染结果不理想/异常/错位等无法预料的事情发生。推荐在编写html时同时更改对应Js代码,以避免出现无法预料的问题。


加载资源包

  • 资源包通常是以.zip格式压缩的,只需要将其解压到根目录resources目录下即可,注意不要嵌套文件夹,正常的路径应该是这样的
shell
main.py
+resources
+└─resource_pack_1
+    ├─metadata.yml
+    ├─templates
+    └───...
+└─resource_pack_2
+    ├─metadata.yml
+    └─...
  • 你自己制作的资源包也应该遵循这个规则,并且应该在metadata.yml中填写一些信息
  • 若没有metadata.yml文件,则该文件夹不会被识别为资源包
yaml
name: "资源包名称"
+version: "1.0.0"
+description: "资源包描述"
+# 你可以自定义一些信息,但请保证以上三个字段
+...
  • 资源包加载遵循一个优先级,即后加载的资源包会覆盖前面的资源包,例如,你在A包中定义了一个index.html文件,B包也定义了一个index.html文件,那么加载B包后,A包中的index.html文件会被覆盖
  • 对于不同资源包的不同文件,是可以相对引用的,例如你在A中定义了templates/index.html,在B中定义了templates/style.css,可以在A的index.html中用./style.css相对路径引用B中的css

TIP

资源包的结构会随着轻雪的更新而有变动,第三方资源包开发者需要注意版本兼容性,同时用户也应该自行选择可用的资源包

`,12)]))}const u=a(t,[["render",n]]);export{k as __pageData,u as default}; diff --git a/assets/en_deploy_config.md.DdMT5vqs.js b/assets/en_deploy_config.md.CggQr9gM.js similarity index 86% rename from assets/en_deploy_config.md.DdMT5vqs.js rename to assets/en_deploy_config.md.CggQr9gM.js index 6bb4dee3..aefb6d2b 100644 --- a/assets/en_deploy_config.md.DdMT5vqs.js +++ b/assets/en_deploy_config.md.CggQr9gM.js @@ -1,4 +1,4 @@ -import{_ as s,c as i,o as a,a9 as t}from"./chunks/framework.C4_mTacX.js";const u=JSON.parse('{"title":"Configurations","description":"","frontmatter":{"title":"Configurations","order":2},"headers":[],"relativePath":"en/deploy/config.md","filePath":"en/deploy/config.md","lastUpdated":1725101868000}'),e={name:"en/deploy/config.md"},n=t(`

Configurations

LiteyukiBot supports yaml, json, and toml as configuration files, depending on your personal preference.

When you first run LiteyukiBot, it will generate config.yml and the config directory. You can modify the configuration items and restart LiteyukiBot. In most cases, you only need to modify the superusers and nickname fields.

When starting, LiteyukiBot will load all configuration files in the project directory config.yml/yaml/json/toml and the config directory. You can create multiple configuration files in the config directory, and LiteyukiBot will automatically merge these configuration files.

Basic Configuration

yaml
# NoneBot configuration
+import{_ as i,c as a,a7 as t,o as n}from"./chunks/framework.jrU0lkHV.js";const c=JSON.parse('{"title":"Configurations","description":"","frontmatter":{"title":"Configurations","order":2},"headers":[],"relativePath":"en/deploy/config.md","filePath":"en/deploy/config.md","lastUpdated":1725101868000}'),e={name:"en/deploy/config.md"};function l(o,s,h,p,k,r){return n(),a("div",null,s[0]||(s[0]=[t(`

Configurations

LiteyukiBot supports yaml, json, and toml as configuration files, depending on your personal preference.

When you first run LiteyukiBot, it will generate config.yml and the config directory. You can modify the configuration items and restart LiteyukiBot. In most cases, you only need to modify the superusers and nickname fields.

When starting, LiteyukiBot will load all configuration files in the project directory config.yml/yaml/json/toml and the config directory. You can create multiple configuration files in the config directory, and LiteyukiBot will automatically merge these configuration files.

Basic Configuration

yaml
# NoneBot configuration
 nonebot:
   command_start: [ "/", "" ] # Command prefix, if there is no "" empty command header, please enable alconna_use_command_start to ensure alconna parsing is normal
   host: 127.0.0.1 # Listening address, default is local, if you want to receive external requests, please fill in
@@ -26,4 +26,4 @@ import{_ as s,c as i,o as a,a9 as t}from"./chunks/framework.C4_mTacX.js";const u
   allow_update: true # Whether to allow Liteyuki to update
   debug: false  # Debug mode, if true, Liteyuki will output more detailed logs
   dev_mode: false # development mode, if true, Liteyuki will load all plugins in the development directory
-...
yaml

Example: Configuration of OneBot implementation side connected to NoneBot

In production environments, it is recommended to use reverse WebSocket The fields provided by different implementation sides may be different, but basically the same. Here is a reference value

FieldsValueDescription
protocolReverse WebSocketLiteyuki-NoneBot as server
addressws://127.0.0.1:20216/onebot/v11/wsThe address depends on the configuration file, the default is \`
AccessToken""If you have configured AccessToken for Liteyuki, please fill in the same value here
  • To use other communication methods, please visit OneBot Adapter for detailed information

Other

  • Liteyuki is not limited to the OneBot adapter and NoneBot2. You can use any adapter supported by NoneBot2 or use the Liteyuki message delivery plugin
`,16),l=[n];function o(h,p,k,r,d,c){return a(),i("div",null,l)}const y=s(e,[["render",o]]);export{u as __pageData,y as default}; +...
yaml

Example: Configuration of OneBot implementation side connected to NoneBot

In production environments, it is recommended to use reverse WebSocket The fields provided by different implementation sides may be different, but basically the same. Here is a reference value

FieldsValueDescription
protocolReverse WebSocketLiteyuki-NoneBot as server
addressws://127.0.0.1:20216/onebot/v11/wsThe address depends on the configuration file, the default is \`
AccessToken""If you have configured AccessToken for Liteyuki, please fill in the same value here
  • To use other communication methods, please visit OneBot Adapter for detailed information

Other

  • Liteyuki is not limited to the OneBot adapter and NoneBot2. You can use any adapter supported by NoneBot2 or use the Liteyuki message delivery plugin
`,16)]))}const g=i(e,[["render",l]]);export{c as __pageData,g as default}; diff --git a/assets/en_deploy_config.md.CggQr9gM.lean.js b/assets/en_deploy_config.md.CggQr9gM.lean.js new file mode 100644 index 00000000..aefb6d2b --- /dev/null +++ b/assets/en_deploy_config.md.CggQr9gM.lean.js @@ -0,0 +1,29 @@ +import{_ as i,c as a,a7 as t,o as n}from"./chunks/framework.jrU0lkHV.js";const c=JSON.parse('{"title":"Configurations","description":"","frontmatter":{"title":"Configurations","order":2},"headers":[],"relativePath":"en/deploy/config.md","filePath":"en/deploy/config.md","lastUpdated":1725101868000}'),e={name:"en/deploy/config.md"};function l(o,s,h,p,k,r){return n(),a("div",null,s[0]||(s[0]=[t(`

Configurations

LiteyukiBot supports yaml, json, and toml as configuration files, depending on your personal preference.

When you first run LiteyukiBot, it will generate config.yml and the config directory. You can modify the configuration items and restart LiteyukiBot. In most cases, you only need to modify the superusers and nickname fields.

When starting, LiteyukiBot will load all configuration files in the project directory config.yml/yaml/json/toml and the config directory. You can create multiple configuration files in the config directory, and LiteyukiBot will automatically merge these configuration files.

Basic Configuration

yaml
# NoneBot configuration
+nonebot:
+  command_start: [ "/", "" ] # Command prefix, if there is no "" empty command header, please enable alconna_use_command_start to ensure alconna parsing is normal
+  host: 127.0.0.1 # Listening address, default is local, if you want to receive external requests, please fill in
+  port: 20216 # Binding port
+  nickname: [ "liteyuki" ]  # Bot nickname list
+  superusers: [ "1919810" ]  # Superuser list
+liteyuki:
+  log_level: "INFO" # Log level
+  log_icon: true # Whether to display the log level icon (some console fonts are not available)
+  auto_report: true # Whether to automatically report problems to Liteyuki server
+  auto_update: true # Whether to automatically update Liteyuki, check for updates at 4 am every day
+  plugins: [ ] # Liteyuki plugin list
+  plugin_dirs: [ ] # Liteyuki plugin directory list

Other configurations

The following is the default value. If you need to customize it, please add it manually

yaml
# Advanced configuration
+nonebot:
+  onebot_access_token: "" # OneBot access token
+  default_language: "zh-CN" # Default language
+  alconna_auto_completion: false # alconna auto completion
+  safe_mode: false # Safe mode, if true, the bot will not load any plugins
+  # other nonebot configurations
+  custom_config_1: "custom_value1"
+  custom_config_2: "custom_value2"
+
+# development configuration
+liteyuki:
+  allow_update: true # Whether to allow Liteyuki to update
+  debug: false  # Debug mode, if true, Liteyuki will output more detailed logs
+  dev_mode: false # development mode, if true, Liteyuki will load all plugins in the development directory
+...
yaml

Example: Configuration of OneBot implementation side connected to NoneBot

In production environments, it is recommended to use reverse WebSocket The fields provided by different implementation sides may be different, but basically the same. Here is a reference value

FieldsValueDescription
protocolReverse WebSocketLiteyuki-NoneBot as server
addressws://127.0.0.1:20216/onebot/v11/wsThe address depends on the configuration file, the default is \`
AccessToken""If you have configured AccessToken for Liteyuki, please fill in the same value here
  • To use other communication methods, please visit OneBot Adapter for detailed information

Other

  • Liteyuki is not limited to the OneBot adapter and NoneBot2. You can use any adapter supported by NoneBot2 or use the Liteyuki message delivery plugin
`,16)]))}const g=i(e,[["render",l]]);export{c as __pageData,g as default}; diff --git a/assets/en_deploy_config.md.DdMT5vqs.lean.js b/assets/en_deploy_config.md.DdMT5vqs.lean.js deleted file mode 100644 index 91fb5e1c..00000000 --- a/assets/en_deploy_config.md.DdMT5vqs.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as s,c as i,o as a,a9 as t}from"./chunks/framework.C4_mTacX.js";const u=JSON.parse('{"title":"Configurations","description":"","frontmatter":{"title":"Configurations","order":2},"headers":[],"relativePath":"en/deploy/config.md","filePath":"en/deploy/config.md","lastUpdated":1725101868000}'),e={name:"en/deploy/config.md"},n=t("",16),l=[n];function o(h,p,k,r,d,c){return a(),i("div",null,l)}const y=s(e,[["render",o]]);export{u as __pageData,y as default}; diff --git a/assets/en_deploy_fandq.md.BKc7kj27.js b/assets/en_deploy_fandq.md.BKc7kj27.js deleted file mode 100644 index 1c3db812..00000000 --- a/assets/en_deploy_fandq.md.BKc7kj27.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as e,c as o,o as t,a9 as n}from"./chunks/framework.C4_mTacX.js";const f=JSON.parse('{"title":"FAQ","description":"","frontmatter":{"title":"FAQ","order":3},"headers":[],"relativePath":"en/deploy/fandq.md","filePath":"en/deploy/fandq.md","lastUpdated":1725101868000}'),a={name:"en/deploy/fandq.md"},r=n('

FAQ

Frequently Asked Questions

  • There are too many python interpreters on my computer, how do I know which one to use?

    • You can specify which python interpreter to use by using the full path to the python executable, for example, /path/to/python main.py
    • Use virtual environments to avoid conflicts between different python interpreters
  • Why does the bot not respond after I start it?

    • Please check the configuration file command_start or superusers, make sure you have permission to use the command and send it correctly
    • Make sure the command header does not conflict with nickname{}, for example, a command is help, but the Bot nickname has a help, then it will be parsed as a nickname instead of a command
  • Update Liteyuki failed, error InvalidGitRepositoryError

    • Please install Git correctly and deploy Liteyuki using cloning instead of direct download
  • How to log in to chat platforms such as Telegram?

    • If you have this question, it means you don't know much about this project. This project does not implement the login function, only the message processing and response. The login function is provided by the implementation side (protocol side). The implementation side itself does not handle response logic. It processes and reports messages to Liteyuki according to the OneBot standard. You need to use an implementation side that complies with the OneBot standard to connect to Liteyuki and report messages to Liteyuki. Some recommended implementation sides have been listed below
  • Playwright installation failed

    • Enter playwright install to install the browser
  • Some plugins report errors after installation and cannot be started

    • Please refer to the plugin documentation first, confirm that the necessary configuration items of the plugin are intact, and if the problem persists, please contact the plugin author or start Liteyuki in safe mode safe_mode: true. In safe mode, you can use npm uninstall to uninstall problematic plugins

Other questions

  1. Lagrange.OneBot, based on Lagrange.Core, a Linux QQ implementation, supports OneBotv11 protocol
  2. LLOneBot, a plugin for Liteloader NTQQ, supports OneBotv11 protocol
  3. OpenShamrock, based on Lsposed, supports kritor protocol
  4. TRSS-Yunzai, based on Node.js, supports OneBotv11 protocol
  5. go-cqhttp,A QQ Client based on go, supports OneBotv11 protocol
  6. Gensokyo, use QQ protocol
  1. MinecraftOneBot, We develop a Minecraft server chat bot

Other project encountered issues, please prioritize the documentation and issues of the project itself, don't ask LiteyukiBot developers

Acknowledgements

',12),i=[r];function l(s,d,c,h,p,u){return t(),o("div",null,i)}const g=e(a,[["render",l]]);export{f as __pageData,g as default}; diff --git a/assets/en_deploy_fandq.md.BKc7kj27.lean.js b/assets/en_deploy_fandq.md.BKc7kj27.lean.js deleted file mode 100644 index 06ffacfe..00000000 --- a/assets/en_deploy_fandq.md.BKc7kj27.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as e,c as o,o as t,a9 as n}from"./chunks/framework.C4_mTacX.js";const f=JSON.parse('{"title":"FAQ","description":"","frontmatter":{"title":"FAQ","order":3},"headers":[],"relativePath":"en/deploy/fandq.md","filePath":"en/deploy/fandq.md","lastUpdated":1725101868000}'),a={name:"en/deploy/fandq.md"},r=n("",12),i=[r];function l(s,d,c,h,p,u){return t(),o("div",null,i)}const g=e(a,[["render",l]]);export{f as __pageData,g as default}; diff --git a/assets/en_deploy_fandq.md.DQ_mT_zy.js b/assets/en_deploy_fandq.md.DQ_mT_zy.js new file mode 100644 index 00000000..dff0d415 --- /dev/null +++ b/assets/en_deploy_fandq.md.DQ_mT_zy.js @@ -0,0 +1 @@ +import{_ as o,c as t,a7 as n,o as a}from"./chunks/framework.jrU0lkHV.js";const u=JSON.parse('{"title":"FAQ","description":"","frontmatter":{"title":"FAQ","order":3},"headers":[],"relativePath":"en/deploy/fandq.md","filePath":"en/deploy/fandq.md","lastUpdated":1725101868000}'),r={name:"en/deploy/fandq.md"};function i(l,e,s,d,c,h){return a(),t("div",null,e[0]||(e[0]=[n('

FAQ

Frequently Asked Questions

  • There are too many python interpreters on my computer, how do I know which one to use?

    • You can specify which python interpreter to use by using the full path to the python executable, for example, /path/to/python main.py
    • Use virtual environments to avoid conflicts between different python interpreters
  • Why does the bot not respond after I start it?

    • Please check the configuration file command_start or superusers, make sure you have permission to use the command and send it correctly
    • Make sure the command header does not conflict with nickname{}, for example, a command is help, but the Bot nickname has a help, then it will be parsed as a nickname instead of a command
  • Update Liteyuki failed, error InvalidGitRepositoryError

    • Please install Git correctly and deploy Liteyuki using cloning instead of direct download
  • How to log in to chat platforms such as Telegram?

    • If you have this question, it means you don't know much about this project. This project does not implement the login function, only the message processing and response. The login function is provided by the implementation side (protocol side). The implementation side itself does not handle response logic. It processes and reports messages to Liteyuki according to the OneBot standard. You need to use an implementation side that complies with the OneBot standard to connect to Liteyuki and report messages to Liteyuki. Some recommended implementation sides have been listed below
  • Playwright installation failed

    • Enter playwright install to install the browser
  • Some plugins report errors after installation and cannot be started

    • Please refer to the plugin documentation first, confirm that the necessary configuration items of the plugin are intact, and if the problem persists, please contact the plugin author or start Liteyuki in safe mode safe_mode: true. In safe mode, you can use npm uninstall to uninstall problematic plugins

Other questions

  1. Lagrange.OneBot, based on Lagrange.Core, a Linux QQ implementation, supports OneBotv11 protocol
  2. LLOneBot, a plugin for Liteloader NTQQ, supports OneBotv11 protocol
  3. OpenShamrock, based on Lsposed, supports kritor protocol
  4. TRSS-Yunzai, based on Node.js, supports OneBotv11 protocol
  5. go-cqhttp,A QQ Client based on go, supports OneBotv11 protocol
  6. Gensokyo, use QQ protocol
  1. MinecraftOneBot, We develop a Minecraft server chat bot

Other project encountered issues, please prioritize the documentation and issues of the project itself, don't ask LiteyukiBot developers

Acknowledgements

',12)]))}const m=o(r,[["render",i]]);export{u as __pageData,m as default}; diff --git a/assets/en_deploy_fandq.md.DQ_mT_zy.lean.js b/assets/en_deploy_fandq.md.DQ_mT_zy.lean.js new file mode 100644 index 00000000..dff0d415 --- /dev/null +++ b/assets/en_deploy_fandq.md.DQ_mT_zy.lean.js @@ -0,0 +1 @@ +import{_ as o,c as t,a7 as n,o as a}from"./chunks/framework.jrU0lkHV.js";const u=JSON.parse('{"title":"FAQ","description":"","frontmatter":{"title":"FAQ","order":3},"headers":[],"relativePath":"en/deploy/fandq.md","filePath":"en/deploy/fandq.md","lastUpdated":1725101868000}'),r={name:"en/deploy/fandq.md"};function i(l,e,s,d,c,h){return a(),t("div",null,e[0]||(e[0]=[n('

FAQ

Frequently Asked Questions

  • There are too many python interpreters on my computer, how do I know which one to use?

    • You can specify which python interpreter to use by using the full path to the python executable, for example, /path/to/python main.py
    • Use virtual environments to avoid conflicts between different python interpreters
  • Why does the bot not respond after I start it?

    • Please check the configuration file command_start or superusers, make sure you have permission to use the command and send it correctly
    • Make sure the command header does not conflict with nickname{}, for example, a command is help, but the Bot nickname has a help, then it will be parsed as a nickname instead of a command
  • Update Liteyuki failed, error InvalidGitRepositoryError

    • Please install Git correctly and deploy Liteyuki using cloning instead of direct download
  • How to log in to chat platforms such as Telegram?

    • If you have this question, it means you don't know much about this project. This project does not implement the login function, only the message processing and response. The login function is provided by the implementation side (protocol side). The implementation side itself does not handle response logic. It processes and reports messages to Liteyuki according to the OneBot standard. You need to use an implementation side that complies with the OneBot standard to connect to Liteyuki and report messages to Liteyuki. Some recommended implementation sides have been listed below
  • Playwright installation failed

    • Enter playwright install to install the browser
  • Some plugins report errors after installation and cannot be started

    • Please refer to the plugin documentation first, confirm that the necessary configuration items of the plugin are intact, and if the problem persists, please contact the plugin author or start Liteyuki in safe mode safe_mode: true. In safe mode, you can use npm uninstall to uninstall problematic plugins

Other questions

  1. Lagrange.OneBot, based on Lagrange.Core, a Linux QQ implementation, supports OneBotv11 protocol
  2. LLOneBot, a plugin for Liteloader NTQQ, supports OneBotv11 protocol
  3. OpenShamrock, based on Lsposed, supports kritor protocol
  4. TRSS-Yunzai, based on Node.js, supports OneBotv11 protocol
  5. go-cqhttp,A QQ Client based on go, supports OneBotv11 protocol
  6. Gensokyo, use QQ protocol
  1. MinecraftOneBot, We develop a Minecraft server chat bot

Other project encountered issues, please prioritize the documentation and issues of the project itself, don't ask LiteyukiBot developers

Acknowledgements

',12)]))}const m=o(r,[["render",i]]);export{u as __pageData,m as default}; diff --git a/assets/en_deploy_install.md.C00Sx2cS.lean.js b/assets/en_deploy_install.md.C00Sx2cS.lean.js deleted file mode 100644 index 3249523e..00000000 --- a/assets/en_deploy_install.md.C00Sx2cS.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as e,c as t,o as i,a9 as a}from"./chunks/framework.C4_mTacX.js";const m=JSON.parse('{"title":"Install","description":"","frontmatter":{"title":"Install","order":1},"headers":[],"relativePath":"en/deploy/install.md","filePath":"en/deploy/install.md","lastUpdated":1725102337000}'),s={name:"en/deploy/install.md"},o=a("",15),n=[o];function l(r,c,d,h,p,u){return i(),t("div",null,n)}const y=e(s,[["render",l]]);export{m as __pageData,y as default}; diff --git a/assets/en_deploy_install.md.C00Sx2cS.js b/assets/en_deploy_install.md.CixqkAmD.js similarity index 78% rename from assets/en_deploy_install.md.C00Sx2cS.js rename to assets/en_deploy_install.md.CixqkAmD.js index a3bfdd86..3a2570b1 100644 --- a/assets/en_deploy_install.md.C00Sx2cS.js +++ b/assets/en_deploy_install.md.CixqkAmD.js @@ -1,8 +1,8 @@ -import{_ as e,c as t,o as i,a9 as a}from"./chunks/framework.C4_mTacX.js";const m=JSON.parse('{"title":"Install","description":"","frontmatter":{"title":"Install","order":1},"headers":[],"relativePath":"en/deploy/install.md","filePath":"en/deploy/install.md","lastUpdated":1725102337000}'),s={name:"en/deploy/install.md"},o=a(`

Install

Normal Installation

  1. Install Git and Python3.10+ Environment.
bash
# Clone the project
+import{_ as t,c as i,a7 as a,o as s}from"./chunks/framework.jrU0lkHV.js";const u=JSON.parse('{"title":"Install","description":"","frontmatter":{"title":"Install","order":1},"headers":[],"relativePath":"en/deploy/install.md","filePath":"en/deploy/install.md","lastUpdated":1725102337000}'),o={name:"en/deploy/install.md"};function n(l,e,r,c,d,h){return s(),i("div",null,e[0]||(e[0]=[a(`

Install

Normal Installation

  1. Install Git and Python3.10+ Environment.
bash
# Clone the project
 git clone https://github.com/LiteyukiStudio/LiteyukiBot --depth=1
 # change directory
 cd LiteyukiBot
 # install dependencies
 pip install -r requirements.txt
 # start the bot!
-python main.py

TIP

It is recommended to use a virtual environment to run Liteyuki to avoid dependency conflicts. You can use python -m venv .venv to create a virtual environment, and then use .venv\\Scripts\\activate to activate the virtual environment (use source .venv/bin/activate to activate on Linux).

Run with Docker

  1. Install Docker
  2. Clone Repo git clone https://github.com/LiteyukiStudio/LiteyukiBot --depth=1
  3. Change directory cd LiteyukiBot
  4. Build docker image docker build -t liteyukibot .
  5. Run container docker run -p 20216:20216 -v $(pwd):/liteyukibot -v $(pwd)/.cache:/root/.cache liteyukibot

TIP

If you are using Windows, please use the absolute project directory /path/to/LiteyukiBot instead of $&#40;pwd&#41;
If you have modified the port number, please replace 20216:20216 with your port number

Use TRSS Script

TRSS_Liteyuki Management Script, which provides a more convenient way to manage LiteyukiBot, recommended to use Arch Linux

Device Requirements

  • Windows system version minimum Windows10+/Windows Server 2019+
  • Linux system requires Python3.10+, recommended Ubuntu 20.04+
  • CPU: at least 1vCPU
  • Memory: Bot without other plugins will occupy 300~500MB, including chromium and node processes, other plugins depend on specific plugins, recommended 1GB or more
  • Disk: at least 1GB of space

WARNING

If there are multiple environments on the device, please use path/to/python -m pip install -r requirements.txt to install dependencies, path/to/python is the path to your Python executable

WARNING

Liteyuki's update function depends on Git. If you do not have Git installed and run the source code directly, you will not be able to use the update function

For other questions, please refer to FAQ

`,15),n=[o];function l(r,c,d,h,p,u){return i(),t("div",null,n)}const y=e(s,[["render",l]]);export{m as __pageData,y as default}; +python main.py

TIP

It is recommended to use a virtual environment to run Liteyuki to avoid dependency conflicts. You can use python -m venv .venv to create a virtual environment, and then use .venv\\Scripts\\activate to activate the virtual environment (use source .venv/bin/activate to activate on Linux).

Run with Docker

  1. Install Docker
  2. Clone Repo git clone https://github.com/LiteyukiStudio/LiteyukiBot --depth=1
  3. Change directory cd LiteyukiBot
  4. Build docker image docker build -t liteyukibot .
  5. Run container docker run -p 20216:20216 -v $(pwd):/liteyukibot -v $(pwd)/.cache:/root/.cache liteyukibot

TIP

If you are using Windows, please use the absolute project directory /path/to/LiteyukiBot instead of $&#40;pwd&#41;
If you have modified the port number, please replace 20216:20216 with your port number

Use TRSS Script

TRSS_Liteyuki Management Script, which provides a more convenient way to manage LiteyukiBot, recommended to use Arch Linux

Device Requirements

  • Windows system version minimum Windows10+/Windows Server 2019+
  • Linux system requires Python3.10+, recommended Ubuntu 20.04+
  • CPU: at least 1vCPU
  • Memory: Bot without other plugins will occupy 300~500MB, including chromium and node processes, other plugins depend on specific plugins, recommended 1GB or more
  • Disk: at least 1GB of space

WARNING

If there are multiple environments on the device, please use path/to/python -m pip install -r requirements.txt to install dependencies, path/to/python is the path to your Python executable

WARNING

Liteyuki's update function depends on Git. If you do not have Git installed and run the source code directly, you will not be able to use the update function

For other questions, please refer to FAQ

`,15)]))}const k=t(o,[["render",n]]);export{u as __pageData,k as default}; diff --git a/assets/en_deploy_install.md.CixqkAmD.lean.js b/assets/en_deploy_install.md.CixqkAmD.lean.js new file mode 100644 index 00000000..3a2570b1 --- /dev/null +++ b/assets/en_deploy_install.md.CixqkAmD.lean.js @@ -0,0 +1,8 @@ +import{_ as t,c as i,a7 as a,o as s}from"./chunks/framework.jrU0lkHV.js";const u=JSON.parse('{"title":"Install","description":"","frontmatter":{"title":"Install","order":1},"headers":[],"relativePath":"en/deploy/install.md","filePath":"en/deploy/install.md","lastUpdated":1725102337000}'),o={name:"en/deploy/install.md"};function n(l,e,r,c,d,h){return s(),i("div",null,e[0]||(e[0]=[a(`

Install

Normal Installation

  1. Install Git and Python3.10+ Environment.
bash
# Clone the project
+git clone https://github.com/LiteyukiStudio/LiteyukiBot --depth=1
+# change directory
+cd LiteyukiBot
+# install dependencies
+pip install -r requirements.txt
+# start the bot!
+python main.py

TIP

It is recommended to use a virtual environment to run Liteyuki to avoid dependency conflicts. You can use python -m venv .venv to create a virtual environment, and then use .venv\\Scripts\\activate to activate the virtual environment (use source .venv/bin/activate to activate on Linux).

Run with Docker

  1. Install Docker
  2. Clone Repo git clone https://github.com/LiteyukiStudio/LiteyukiBot --depth=1
  3. Change directory cd LiteyukiBot
  4. Build docker image docker build -t liteyukibot .
  5. Run container docker run -p 20216:20216 -v $(pwd):/liteyukibot -v $(pwd)/.cache:/root/.cache liteyukibot

TIP

If you are using Windows, please use the absolute project directory /path/to/LiteyukiBot instead of $&#40;pwd&#41;
If you have modified the port number, please replace 20216:20216 with your port number

Use TRSS Script

TRSS_Liteyuki Management Script, which provides a more convenient way to manage LiteyukiBot, recommended to use Arch Linux

Device Requirements

  • Windows system version minimum Windows10+/Windows Server 2019+
  • Linux system requires Python3.10+, recommended Ubuntu 20.04+
  • CPU: at least 1vCPU
  • Memory: Bot without other plugins will occupy 300~500MB, including chromium and node processes, other plugins depend on specific plugins, recommended 1GB or more
  • Disk: at least 1GB of space

WARNING

If there are multiple environments on the device, please use path/to/python -m pip install -r requirements.txt to install dependencies, path/to/python is the path to your Python executable

WARNING

Liteyuki's update function depends on Git. If you do not have Git installed and run the source code directly, you will not be able to use the update function

For other questions, please refer to FAQ

`,15)]))}const k=t(o,[["render",n]]);export{u as __pageData,k as default}; diff --git a/assets/en_dev_api_bot_index.md.HOfQ1yqh.lean.js b/assets/en_dev_api_bot_index.md.HOfQ1yqh.lean.js deleted file mode 100644 index c154d56b..00000000 --- a/assets/en_dev_api_bot_index.md.HOfQ1yqh.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as s,c as i,o as a,a9 as t}from"./chunks/framework.C4_mTacX.js";const c=JSON.parse('{"title":"liteyuki.bot","description":"","frontmatter":{"title":"liteyuki.bot","collapsed":true},"headers":[],"relativePath":"en/dev/api/bot/index.md","filePath":"en/dev/api/bot/index.md","lastUpdated":null}'),n={name:"en/dev/api/bot/index.md"},e=t("",103),l=[e];function h(p,k,r,o,d,g){return a(),i("div",null,l)}const y=s(n,[["render",h]]);export{c as __pageData,y as default}; diff --git a/assets/en_dev_api_bot_index.md.HOfQ1yqh.js b/assets/en_dev_api_bot_index.md.S3EtTJZC.js similarity index 95% rename from assets/en_dev_api_bot_index.md.HOfQ1yqh.js rename to assets/en_dev_api_bot_index.md.S3EtTJZC.js index fb49cb77..bfb9048c 100644 --- a/assets/en_dev_api_bot_index.md.HOfQ1yqh.js +++ b/assets/en_dev_api_bot_index.md.S3EtTJZC.js @@ -1,4 +1,4 @@ -import{_ as s,c as i,o as a,a9 as t}from"./chunks/framework.C4_mTacX.js";const c=JSON.parse('{"title":"liteyuki.bot","description":"","frontmatter":{"title":"liteyuki.bot","collapsed":true},"headers":[],"relativePath":"en/dev/api/bot/index.md","filePath":"en/dev/api/bot/index.md","lastUpdated":null}'),n={name:"en/dev/api/bot/index.md"},e=t(`

Module liteyuki.bot

class LiteyukiBot


func __init__(self, **kwargs) -> None

Description: 初始化轻雪实例

Arguments:

  • **kwargs: 配置
Source code or View on GitHub
python
def __init__(self, **kwargs) -> None:
+import{_ as i,c as a,a7 as t,o as n}from"./chunks/framework.jrU0lkHV.js";const g=JSON.parse('{"title":"liteyuki.bot","description":"","frontmatter":{"title":"liteyuki.bot","collapsed":true},"headers":[],"relativePath":"en/dev/api/bot/index.md","filePath":"en/dev/api/bot/index.md","lastUpdated":null}'),e={name:"en/dev/api/bot/index.md"};function l(h,s,p,k,r,o){return n(),a("div",null,s[0]||(s[0]=[t(`

Module liteyuki.bot

class LiteyukiBot


func __init__(self, **kwargs) -> None

Description: 初始化轻雪实例

Arguments:

  • **kwargs: 配置
Source code or View on GitHub
python
def __init__(self, **kwargs) -> None:
     """常规操作"""
     print_logo()
     global _BOT_INSTANCE
@@ -79,4 +79,4 @@ import{_ as s,c as i,o as a,a9 as t}from"./chunks/framework.C4_mTacX.js";const c
         if compat_key in get_bot().config:
             logger.warning(f'Config key "{compat_key}" will be deprecated, use "{key}" instead.')
             return get_bot().config[compat_key]
-    return default
`,103),l=[e];function h(p,k,r,o,d,g){return a(),i("div",null,l)}const y=s(n,[["render",h]]);export{c as __pageData,y as default}; + return default
`,103)]))}const E=i(e,[["render",l]]);export{g as __pageData,E as default}; diff --git a/assets/en_dev_api_bot_index.md.S3EtTJZC.lean.js b/assets/en_dev_api_bot_index.md.S3EtTJZC.lean.js new file mode 100644 index 00000000..bfb9048c --- /dev/null +++ b/assets/en_dev_api_bot_index.md.S3EtTJZC.lean.js @@ -0,0 +1,82 @@ +import{_ as i,c as a,a7 as t,o as n}from"./chunks/framework.jrU0lkHV.js";const g=JSON.parse('{"title":"liteyuki.bot","description":"","frontmatter":{"title":"liteyuki.bot","collapsed":true},"headers":[],"relativePath":"en/dev/api/bot/index.md","filePath":"en/dev/api/bot/index.md","lastUpdated":null}'),e={name:"en/dev/api/bot/index.md"};function l(h,s,p,k,r,o){return n(),a("div",null,s[0]||(s[0]=[t(`

Module liteyuki.bot

class LiteyukiBot


func __init__(self, **kwargs) -> None

Description: 初始化轻雪实例

Arguments:

  • **kwargs: 配置
Source code or View on GitHub
python
def __init__(self, **kwargs) -> None:
+    """常规操作"""
+    print_logo()
+    global _BOT_INSTANCE
+    _BOT_INSTANCE = self
+    '配置'
+    self.config: dict[str, Any] = kwargs
+    '初始化'
+    self.init(**self.config)
+    logger.info('Liteyuki is initializing...')
+    '生命周期管理'
+    self.lifespan = Lifespan()
+    self.process_manager: ProcessManager = ProcessManager(lifespan=self.lifespan)
+    '事件循环'
+    self.loop = asyncio.new_event_loop()
+    asyncio.set_event_loop(self.loop)
+    self.stop_event = threading.Event()
+    self.call_restart_count = 0
+    '加载插件加载器'
+    load_plugin('liteyuki.plugins.plugin_loader')

func run(self)

Description: 外部启动接口

Source code or View on GitHub
python
def run(self):
+    self.process_manager.start_all()
+    try:
+        asyncio.run(self._run())
+    except KeyboardInterrupt:
+        logger.opt(colors=True).info('<y>Liteyuki is stopping...</y>')
+        self.stop()
+    logger.opt(colors=True).info('<y>Liteyuki is stopped...</y>')

async func keep_alive(self)

Description: 保持轻雪运行

Source code or View on GitHub
python
async def keep_alive(self):
+    logger.info('Liteyuki is keeping alive...')
+    try:
+        while not self.stop_event.is_set():
+            await asyncio.sleep(0.1)
+    except Exception:
+        logger.info('Liteyuki is exiting...')
+        self.stop()

func restart(self, delay: int = 0)

Description: 重启轻雪本体

Arguments:

  • delay (int, optional): 延迟重启时间. Defaults to 0.
Source code or View on GitHub
python
def restart(self, delay: int=0):
+    if self.call_restart_count < 1:
+        executable = sys.executable
+        args = sys.argv
+        logger.info('Restarting LiteyukiBot...')
+        time.sleep(delay)
+        if platform.system() == 'Windows':
+            cmd = 'start'
+        elif platform.system() == 'Linux':
+            cmd = 'nohup'
+        elif platform.system() == 'Darwin':
+            cmd = 'open'
+        else:
+            cmd = 'nohup'
+        self.process_manager.terminate_all()
+        threading.Thread(target=os.system, args=(f"{cmd} {executable} {' '.join(args)}",), daemon=True).start()
+        sys.exit(0)
+    self.call_restart_count += 1

func restart_process(self, name: Optional[str] = None)

Description: 停止轻雪

Arguments:

Source code or View on GitHub
python
def restart_process(self, name: Optional[str]=None):
+    if name is not None:
+        chan_active = get_channel(f'{name}-active')
+        chan_active.send(1)
+    else:
+        for process_name in self.process_manager.processes:
+            chan_active = get_channel(f'{process_name}-active')
+            chan_active.send(1)

func init(self, *args, **kwargs)

Description: 初始化轻雪, 自动调用

Arguments:

  • *args: 参数
  • **kwargs: 关键字参数
Source code or View on GitHub
python
def init(self, *args, **kwargs):
+    self.init_logger()

func init_logger(self)

Description: 初始化日志

Source code or View on GitHub
python
def init_logger(self):
+    init_log(config=self.config)

func stop(self)

Description: 停止轻雪

Source code or View on GitHub
python
def stop(self):
+    self.process_manager.terminate_all()
+    self.stop_event.set()

func on_before_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC

Description: 注册启动前的函数

Arguments:

Return: LIFESPAN_FUNC: 生命周期函数

Source code or View on GitHub
python
def on_before_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC:
+    return self.lifespan.on_before_start(func)

func on_after_start(self, func: LIFESPAN_FUNC)

Description: 注册启动后的函数

Arguments:

Return: LIFESPAN_FUNC: 生命周期函数

Source code or View on GitHub
python
def on_after_start(self, func: LIFESPAN_FUNC):
+    return self.lifespan.on_after_start(func)

func on_after_shutdown(self, func: LIFESPAN_FUNC)

Description: 注册停止后的函数:未实现

Arguments:

Return: LIFESPAN_FUNC: 生命周期函数

Source code or View on GitHub
python
def on_after_shutdown(self, func: LIFESPAN_FUNC):
+    return self.lifespan.on_after_shutdown(func)

func on_before_process_shutdown(self, func: PROCESS_LIFESPAN_FUNC)

Description: 注册进程停止前的函数,为子进程停止时调用

Arguments:

Return: PROCESS_LIFESPAN_FUNC: 生命周期函数

Source code or View on GitHub
python
def on_before_process_shutdown(self, func: PROCESS_LIFESPAN_FUNC):
+    return self.lifespan.on_before_process_shutdown(func)

func on_before_process_restart(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC

Description: 注册进程重启前的函数,为子进程重启时调用

Arguments:

Return: PROCESS_LIFESPAN_FUNC: 生命周期函数

Source code or View on GitHub
python
def on_before_process_restart(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC:
+    return self.lifespan.on_before_process_restart(func)

func on_after_restart(self, func: LIFESPAN_FUNC)

Description: 注册重启后的函数:未实现

Arguments:

Return: LIFESPAN_FUNC: 生命周期函数

Source code or View on GitHub
python
def on_after_restart(self, func: LIFESPAN_FUNC):
+    return self.lifespan.on_after_restart(func)

func get_bot() -> LiteyukiBot

Description: 获取轻雪实例

Return: LiteyukiBot: 轻雪实例

Source code or View on GitHub
python
def get_bot() -> LiteyukiBot:
+    if IS_MAIN_PROCESS:
+        if _BOT_INSTANCE is None:
+            raise RuntimeError('Liteyuki instance not initialized.')
+        return _BOT_INSTANCE
+    else:
+        raise RuntimeError("Can't get bot instance in sub process.")

func get_config(key: str, default: Any = None) -> Any

Description: 获取配置

Arguments:

  • key (str): 配置键
  • default (Any, optional): 默认值. Defaults to None.

Return: Any: 配置值

Source code or View on GitHub
python
def get_config(key: str, default: Any=None) -> Any:
+    return get_bot().config.get(key, default)

func get_config_with_compat(key: str, compat_keys: tuple[str], default: Any = None) -> Any

Description: 获取配置,兼容旧版本

Arguments:

  • key (str): 配置键
  • compat_keys (tuplestr): 兼容键
  • default (Any, optional): 默认值. Defaults to None.

Return: Any: 配置值

Source code or View on GitHub
python
def get_config_with_compat(key: str, compat_keys: tuple[str], default: Any=None) -> Any:
+    if key in get_bot().config:
+        return get_bot().config[key]
+    for compat_key in compat_keys:
+        if compat_key in get_bot().config:
+            logger.warning(f'Config key "{compat_key}" will be deprecated, use "{key}" instead.')
+            return get_bot().config[compat_key]
+    return default
`,103)]))}const E=i(e,[["render",l]]);export{g as __pageData,E as default}; diff --git a/assets/en_dev_api_bot_lifespan.md.6xrY1FLk.js b/assets/en_dev_api_bot_lifespan.md.6xrY1FLk.js new file mode 100644 index 00000000..26afb22b --- /dev/null +++ b/assets/en_dev_api_bot_lifespan.md.6xrY1FLk.js @@ -0,0 +1 @@ +import{_ as i,c as a,a7 as n,o as e}from"./chunks/framework.jrU0lkHV.js";const d=JSON.parse('{"title":"liteyuki.bot.lifespan","description":"","frontmatter":{"title":"liteyuki.bot.lifespan"},"headers":[],"relativePath":"en/dev/api/bot/lifespan.md","filePath":"en/dev/api/bot/lifespan.md","lastUpdated":1725101868000}'),t={name:"en/dev/api/bot/lifespan.md"};function l(h,s,p,r,k,o){return e(),a("div",null,s[0]||(s[0]=[n('

Module liteyuki.bot.lifespan

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/23 下午8:24 @Author : snowykami @Email : snowykami@outlook.com @File : lifespan.py @Software: PyCharm

var SYNC_LIFESPAN_FUNC

  • Description: 同步生命周期函数

  • Type: TypeAlias

  • Default: Callable[[], Any]

var ASYNC_LIFESPAN_FUNC

  • Description: 异步生命周期函数

  • Type: TypeAlias

  • Default: Callable[[], Awaitable[Any]]

var LIFESPAN_FUNC

  • Description: 生命周期函数

  • Type: TypeAlias

  • Default: SYNC_LIFESPAN_FUNC | ASYNC_LIFESPAN_FUNC

var SYNC_PROCESS_LIFESPAN_FUNC

  • Description: 同步进程生命周期函数

  • Type: TypeAlias

  • Default: Callable[[str], Any]

var ASYNC_PROCESS_LIFESPAN_FUNC

  • Description: 异步进程生命周期函数

  • Type: TypeAlias

  • Default: Callable[[str], Awaitable[Any]]

var PROCESS_LIFESPAN_FUNC

  • Description: 进程函数

  • Type: TypeAlias

  • Default: SYNC_PROCESS_LIFESPAN_FUNC | ASYNC_PROCESS_LIFESPAN_FUNC

class Lifespan


func __init__(self) -> None

Description: 轻雪生命周期管理,启动、停止、重启

Source code or View on GitHub
python
def __init__(self) -> None:\n    self.life_flag: int = 0\n    self._before_start_funcs: list[LIFESPAN_FUNC] = []\n    self._after_start_funcs: list[LIFESPAN_FUNC] = []\n    self._before_process_shutdown_funcs: list[PROCESS_LIFESPAN_FUNC] = []\n    self._after_shutdown_funcs: list[LIFESPAN_FUNC] = []\n    self._before_process_restart_funcs: list[PROCESS_LIFESPAN_FUNC] = []\n    self._after_restart_funcs: list[LIFESPAN_FUNC] = []

@staticmethod

async func run_funcs(funcs: Sequence[LIFESPAN_FUNC | PROCESS_LIFESPAN_FUNC], *args, **kwargs) -> None

Description: 并发运行异步函数

Arguments:

Source code or View on GitHub
python
@staticmethod\nasync def run_funcs(funcs: Sequence[LIFESPAN_FUNC | PROCESS_LIFESPAN_FUNC], *args, **kwargs) -> None:\n    tasks = [func(*args, **kwargs) if is_coroutine_callable(func) else async_wrapper(func)(*args, **kwargs) for func in funcs]\n    await asyncio.gather(*tasks)

func on_before_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC

Description: 注册启动时的函数

Arguments:

Return: LIFESPAN_FUNC: 生命周期函数

Source code or View on GitHub
python
def on_before_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC:\n    self._before_start_funcs.append(func)\n    return func

func on_after_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC

Description: 注册启动时的函数

Arguments:

Return: LIFESPAN_FUNC: 生命周期函数

Source code or View on GitHub
python
def on_after_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC:\n    self._after_start_funcs.append(func)\n    return func

func on_before_process_shutdown(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC

Description: 注册进程停止前的函数

Arguments:

Return: PROCESS_LIFESPAN_FUNC: 进程生命周期函数

Source code or View on GitHub
python
def on_before_process_shutdown(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC:\n    self._before_process_shutdown_funcs.append(func)\n    return func

func on_after_shutdown(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC

Description: 注册停止后的函数

Arguments:

Return: LIFESPAN_FUNC: 生命周期函数

Source code or View on GitHub
python
def on_after_shutdown(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC:\n    self._after_shutdown_funcs.append(func)\n    return func

func on_before_process_restart(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC

Description: 注册进程重启前的函数

Arguments:

Return: PROCESS_LIFESPAN_FUNC: 进程生命周期函数

Source code or View on GitHub
python
def on_before_process_restart(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC:\n    self._before_process_restart_funcs.append(func)\n    return func

func on_after_restart(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC

Description: 注册重启后的函数

Arguments:

Return: LIFESPAN_FUNC: 生命周期函数

Source code or View on GitHub
python
def on_after_restart(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC:\n    self._after_restart_funcs.append(func)\n    return func

async func before_start(self) -> None

Description: 启动前钩子

Source code or View on GitHub
python
async def before_start(self) -> None:\n    logger.debug('Running before_start functions')\n    await self.run_funcs(self._before_start_funcs)

async func after_start(self) -> None

Description: 启动后钩子

Source code or View on GitHub
python
async def after_start(self) -> None:\n    logger.debug('Running after_start functions')\n    await self.run_funcs(self._after_start_funcs)

async func before_process_shutdown(self, *args, **kwargs) -> None

Description: 停止前钩子

Source code or View on GitHub
python
async def before_process_shutdown(self, *args, **kwargs) -> None:\n    logger.debug('Running before_shutdown functions')\n    await self.run_funcs(self._before_process_shutdown_funcs, *args, **kwargs)

async func after_shutdown(self) -> None

Description: 停止后钩子 未实现

Source code or View on GitHub
python
async def after_shutdown(self) -> None:\n    logger.debug('Running after_shutdown functions')\n    await self.run_funcs(self._after_shutdown_funcs)

async func before_process_restart(self, *args, **kwargs) -> None

Description: 重启前钩子

Source code or View on GitHub
python
async def before_process_restart(self, *args, **kwargs) -> None:\n    logger.debug('Running before_restart functions')\n    await self.run_funcs(self._before_process_restart_funcs, *args, **kwargs)

async func after_restart(self) -> None

Description: 重启后钩子 未实现

Source code or View on GitHub
python
async def after_restart(self) -> None:\n    logger.debug('Running after_restart functions')\n    await self.run_funcs(self._after_restart_funcs)
',93)]))}const g=i(t,[["render",l]]);export{d as __pageData,g as default}; diff --git a/assets/en_dev_api_bot_lifespan.md.6xrY1FLk.lean.js b/assets/en_dev_api_bot_lifespan.md.6xrY1FLk.lean.js new file mode 100644 index 00000000..26afb22b --- /dev/null +++ b/assets/en_dev_api_bot_lifespan.md.6xrY1FLk.lean.js @@ -0,0 +1 @@ +import{_ as i,c as a,a7 as n,o as e}from"./chunks/framework.jrU0lkHV.js";const d=JSON.parse('{"title":"liteyuki.bot.lifespan","description":"","frontmatter":{"title":"liteyuki.bot.lifespan"},"headers":[],"relativePath":"en/dev/api/bot/lifespan.md","filePath":"en/dev/api/bot/lifespan.md","lastUpdated":1725101868000}'),t={name:"en/dev/api/bot/lifespan.md"};function l(h,s,p,r,k,o){return e(),a("div",null,s[0]||(s[0]=[n('

Module liteyuki.bot.lifespan

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/23 下午8:24 @Author : snowykami @Email : snowykami@outlook.com @File : lifespan.py @Software: PyCharm

var SYNC_LIFESPAN_FUNC

  • Description: 同步生命周期函数

  • Type: TypeAlias

  • Default: Callable[[], Any]

var ASYNC_LIFESPAN_FUNC

  • Description: 异步生命周期函数

  • Type: TypeAlias

  • Default: Callable[[], Awaitable[Any]]

var LIFESPAN_FUNC

  • Description: 生命周期函数

  • Type: TypeAlias

  • Default: SYNC_LIFESPAN_FUNC | ASYNC_LIFESPAN_FUNC

var SYNC_PROCESS_LIFESPAN_FUNC

  • Description: 同步进程生命周期函数

  • Type: TypeAlias

  • Default: Callable[[str], Any]

var ASYNC_PROCESS_LIFESPAN_FUNC

  • Description: 异步进程生命周期函数

  • Type: TypeAlias

  • Default: Callable[[str], Awaitable[Any]]

var PROCESS_LIFESPAN_FUNC

  • Description: 进程函数

  • Type: TypeAlias

  • Default: SYNC_PROCESS_LIFESPAN_FUNC | ASYNC_PROCESS_LIFESPAN_FUNC

class Lifespan


func __init__(self) -> None

Description: 轻雪生命周期管理,启动、停止、重启

Source code or View on GitHub
python
def __init__(self) -> None:\n    self.life_flag: int = 0\n    self._before_start_funcs: list[LIFESPAN_FUNC] = []\n    self._after_start_funcs: list[LIFESPAN_FUNC] = []\n    self._before_process_shutdown_funcs: list[PROCESS_LIFESPAN_FUNC] = []\n    self._after_shutdown_funcs: list[LIFESPAN_FUNC] = []\n    self._before_process_restart_funcs: list[PROCESS_LIFESPAN_FUNC] = []\n    self._after_restart_funcs: list[LIFESPAN_FUNC] = []

@staticmethod

async func run_funcs(funcs: Sequence[LIFESPAN_FUNC | PROCESS_LIFESPAN_FUNC], *args, **kwargs) -> None

Description: 并发运行异步函数

Arguments:

Source code or View on GitHub
python
@staticmethod\nasync def run_funcs(funcs: Sequence[LIFESPAN_FUNC | PROCESS_LIFESPAN_FUNC], *args, **kwargs) -> None:\n    tasks = [func(*args, **kwargs) if is_coroutine_callable(func) else async_wrapper(func)(*args, **kwargs) for func in funcs]\n    await asyncio.gather(*tasks)

func on_before_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC

Description: 注册启动时的函数

Arguments:

Return: LIFESPAN_FUNC: 生命周期函数

Source code or View on GitHub
python
def on_before_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC:\n    self._before_start_funcs.append(func)\n    return func

func on_after_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC

Description: 注册启动时的函数

Arguments:

Return: LIFESPAN_FUNC: 生命周期函数

Source code or View on GitHub
python
def on_after_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC:\n    self._after_start_funcs.append(func)\n    return func

func on_before_process_shutdown(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC

Description: 注册进程停止前的函数

Arguments:

Return: PROCESS_LIFESPAN_FUNC: 进程生命周期函数

Source code or View on GitHub
python
def on_before_process_shutdown(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC:\n    self._before_process_shutdown_funcs.append(func)\n    return func

func on_after_shutdown(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC

Description: 注册停止后的函数

Arguments:

Return: LIFESPAN_FUNC: 生命周期函数

Source code or View on GitHub
python
def on_after_shutdown(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC:\n    self._after_shutdown_funcs.append(func)\n    return func

func on_before_process_restart(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC

Description: 注册进程重启前的函数

Arguments:

Return: PROCESS_LIFESPAN_FUNC: 进程生命周期函数

Source code or View on GitHub
python
def on_before_process_restart(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC:\n    self._before_process_restart_funcs.append(func)\n    return func

func on_after_restart(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC

Description: 注册重启后的函数

Arguments:

Return: LIFESPAN_FUNC: 生命周期函数

Source code or View on GitHub
python
def on_after_restart(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC:\n    self._after_restart_funcs.append(func)\n    return func

async func before_start(self) -> None

Description: 启动前钩子

Source code or View on GitHub
python
async def before_start(self) -> None:\n    logger.debug('Running before_start functions')\n    await self.run_funcs(self._before_start_funcs)

async func after_start(self) -> None

Description: 启动后钩子

Source code or View on GitHub
python
async def after_start(self) -> None:\n    logger.debug('Running after_start functions')\n    await self.run_funcs(self._after_start_funcs)

async func before_process_shutdown(self, *args, **kwargs) -> None

Description: 停止前钩子

Source code or View on GitHub
python
async def before_process_shutdown(self, *args, **kwargs) -> None:\n    logger.debug('Running before_shutdown functions')\n    await self.run_funcs(self._before_process_shutdown_funcs, *args, **kwargs)

async func after_shutdown(self) -> None

Description: 停止后钩子 未实现

Source code or View on GitHub
python
async def after_shutdown(self) -> None:\n    logger.debug('Running after_shutdown functions')\n    await self.run_funcs(self._after_shutdown_funcs)

async func before_process_restart(self, *args, **kwargs) -> None

Description: 重启前钩子

Source code or View on GitHub
python
async def before_process_restart(self, *args, **kwargs) -> None:\n    logger.debug('Running before_restart functions')\n    await self.run_funcs(self._before_process_restart_funcs, *args, **kwargs)

async func after_restart(self) -> None

Description: 重启后钩子 未实现

Source code or View on GitHub
python
async def after_restart(self) -> None:\n    logger.debug('Running after_restart functions')\n    await self.run_funcs(self._after_restart_funcs)
',93)]))}const g=i(t,[["render",l]]);export{d as __pageData,g as default}; diff --git a/assets/en_dev_api_bot_lifespan.md.B-nofctY.js b/assets/en_dev_api_bot_lifespan.md.B-nofctY.js deleted file mode 100644 index c166c42d..00000000 --- a/assets/en_dev_api_bot_lifespan.md.B-nofctY.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const u=JSON.parse('{"title":"liteyuki.bot.lifespan","description":"","frontmatter":{"title":"liteyuki.bot.lifespan"},"headers":[],"relativePath":"en/dev/api/bot/lifespan.md","filePath":"en/dev/api/bot/lifespan.md","lastUpdated":1725101868000}'),e={name:"en/dev/api/bot/lifespan.md"},t=n('

Module liteyuki.bot.lifespan

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/23 下午8:24 @Author : snowykami @Email : snowykami@outlook.com @File : lifespan.py @Software: PyCharm

var SYNC_LIFESPAN_FUNC

  • Description: 同步生命周期函数

  • Type: TypeAlias

  • Default: Callable[[], Any]

var ASYNC_LIFESPAN_FUNC

  • Description: 异步生命周期函数

  • Type: TypeAlias

  • Default: Callable[[], Awaitable[Any]]

var LIFESPAN_FUNC

  • Description: 生命周期函数

  • Type: TypeAlias

  • Default: SYNC_LIFESPAN_FUNC | ASYNC_LIFESPAN_FUNC

var SYNC_PROCESS_LIFESPAN_FUNC

  • Description: 同步进程生命周期函数

  • Type: TypeAlias

  • Default: Callable[[str], Any]

var ASYNC_PROCESS_LIFESPAN_FUNC

  • Description: 异步进程生命周期函数

  • Type: TypeAlias

  • Default: Callable[[str], Awaitable[Any]]

var PROCESS_LIFESPAN_FUNC

  • Description: 进程函数

  • Type: TypeAlias

  • Default: SYNC_PROCESS_LIFESPAN_FUNC | ASYNC_PROCESS_LIFESPAN_FUNC

class Lifespan


func __init__(self) -> None

Description: 轻雪生命周期管理,启动、停止、重启

Source code or View on GitHub
python
def __init__(self) -> None:\n    self.life_flag: int = 0\n    self._before_start_funcs: list[LIFESPAN_FUNC] = []\n    self._after_start_funcs: list[LIFESPAN_FUNC] = []\n    self._before_process_shutdown_funcs: list[PROCESS_LIFESPAN_FUNC] = []\n    self._after_shutdown_funcs: list[LIFESPAN_FUNC] = []\n    self._before_process_restart_funcs: list[PROCESS_LIFESPAN_FUNC] = []\n    self._after_restart_funcs: list[LIFESPAN_FUNC] = []

@staticmethod

async func run_funcs(funcs: Sequence[LIFESPAN_FUNC | PROCESS_LIFESPAN_FUNC], *args, **kwargs) -> None

Description: 并发运行异步函数

Arguments:

Source code or View on GitHub
python
@staticmethod\nasync def run_funcs(funcs: Sequence[LIFESPAN_FUNC | PROCESS_LIFESPAN_FUNC], *args, **kwargs) -> None:\n    tasks = [func(*args, **kwargs) if is_coroutine_callable(func) else async_wrapper(func)(*args, **kwargs) for func in funcs]\n    await asyncio.gather(*tasks)

func on_before_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC

Description: 注册启动时的函数

Arguments:

Return: LIFESPAN_FUNC: 生命周期函数

Source code or View on GitHub
python
def on_before_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC:\n    self._before_start_funcs.append(func)\n    return func

func on_after_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC

Description: 注册启动时的函数

Arguments:

Return: LIFESPAN_FUNC: 生命周期函数

Source code or View on GitHub
python
def on_after_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC:\n    self._after_start_funcs.append(func)\n    return func

func on_before_process_shutdown(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC

Description: 注册进程停止前的函数

Arguments:

Return: PROCESS_LIFESPAN_FUNC: 进程生命周期函数

Source code or View on GitHub
python
def on_before_process_shutdown(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC:\n    self._before_process_shutdown_funcs.append(func)\n    return func

func on_after_shutdown(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC

Description: 注册停止后的函数

Arguments:

Return: LIFESPAN_FUNC: 生命周期函数

Source code or View on GitHub
python
def on_after_shutdown(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC:\n    self._after_shutdown_funcs.append(func)\n    return func

func on_before_process_restart(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC

Description: 注册进程重启前的函数

Arguments:

Return: PROCESS_LIFESPAN_FUNC: 进程生命周期函数

Source code or View on GitHub
python
def on_before_process_restart(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC:\n    self._before_process_restart_funcs.append(func)\n    return func

func on_after_restart(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC

Description: 注册重启后的函数

Arguments:

Return: LIFESPAN_FUNC: 生命周期函数

Source code or View on GitHub
python
def on_after_restart(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC:\n    self._after_restart_funcs.append(func)\n    return func

async func before_start(self) -> None

Description: 启动前钩子

Source code or View on GitHub
python
async def before_start(self) -> None:\n    logger.debug('Running before_start functions')\n    await self.run_funcs(self._before_start_funcs)

async func after_start(self) -> None

Description: 启动后钩子

Source code or View on GitHub
python
async def after_start(self) -> None:\n    logger.debug('Running after_start functions')\n    await self.run_funcs(self._after_start_funcs)

async func before_process_shutdown(self, *args, **kwargs) -> None

Description: 停止前钩子

Source code or View on GitHub
python
async def before_process_shutdown(self, *args, **kwargs) -> None:\n    logger.debug('Running before_shutdown functions')\n    await self.run_funcs(self._before_process_shutdown_funcs, *args, **kwargs)

async func after_shutdown(self) -> None

Description: 停止后钩子 未实现

Source code or View on GitHub
python
async def after_shutdown(self) -> None:\n    logger.debug('Running after_shutdown functions')\n    await self.run_funcs(self._after_shutdown_funcs)

async func before_process_restart(self, *args, **kwargs) -> None

Description: 重启前钩子

Source code or View on GitHub
python
async def before_process_restart(self, *args, **kwargs) -> None:\n    logger.debug('Running before_restart functions')\n    await self.run_funcs(self._before_process_restart_funcs, *args, **kwargs)

async func after_restart(self) -> None

Description: 重启后钩子 未实现

Source code or View on GitHub
python
async def after_restart(self) -> None:\n    logger.debug('Running after_restart functions')\n    await self.run_funcs(self._after_restart_funcs)
',93),l=[t];function h(p,r,k,o,c,d){return a(),i("div",null,l)}const E=s(e,[["render",h]]);export{u as __pageData,E as default}; diff --git a/assets/en_dev_api_bot_lifespan.md.B-nofctY.lean.js b/assets/en_dev_api_bot_lifespan.md.B-nofctY.lean.js deleted file mode 100644 index dd49a56e..00000000 --- a/assets/en_dev_api_bot_lifespan.md.B-nofctY.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const u=JSON.parse('{"title":"liteyuki.bot.lifespan","description":"","frontmatter":{"title":"liteyuki.bot.lifespan"},"headers":[],"relativePath":"en/dev/api/bot/lifespan.md","filePath":"en/dev/api/bot/lifespan.md","lastUpdated":1725101868000}'),e={name:"en/dev/api/bot/lifespan.md"},t=n("",93),l=[t];function h(p,r,k,o,c,d){return a(),i("div",null,l)}const E=s(e,[["render",h]]);export{u as __pageData,E as default}; diff --git a/assets/en_dev_api_comm_channel.md.zKOKhdvB.js b/assets/en_dev_api_comm_channel.md.B1Sr7_Nc.js similarity index 91% rename from assets/en_dev_api_comm_channel.md.zKOKhdvB.js rename to assets/en_dev_api_comm_channel.md.B1Sr7_Nc.js index 8f5eae2d..c334c22d 100644 --- a/assets/en_dev_api_comm_channel.md.zKOKhdvB.js +++ b/assets/en_dev_api_comm_channel.md.B1Sr7_Nc.js @@ -1,4 +1,4 @@ -import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"liteyuki.comm.channel","description":"","frontmatter":{"title":"liteyuki.comm.channel"},"headers":[],"relativePath":"en/dev/api/comm/channel.md","filePath":"en/dev/api/comm/channel.md","lastUpdated":1725101868000}'),e={name:"en/dev/api/comm/channel.md"},t=n(`

Module liteyuki.comm.channel

本模块定义了一个通用的通道类,用于进程间通信

var SYNC_ON_RECEIVE_FUNC

  • Description: 同步接收函数

  • Type: TypeAlias

  • Default: Callable[[T], Any]

var ON_RECEIVE_FUNC

  • Description: 接收函数

  • Type: TypeAlias

  • Default: SYNC_ON_RECEIVE_FUNC | ASYNC_ON_RECEIVE_FUNC

var SYNC_FILTER_FUNC

  • Description: 同步过滤函数

  • Type: TypeAlias

  • Default: Callable[[T], bool]

var ASYNC_FILTER_FUNC

  • Description: 异步过滤函数

  • Type: TypeAlias

  • Default: Callable[[T], Coroutine[Any, Any, bool]]

var FILTER_FUNC

  • Description: 过滤函数

  • Type: TypeAlias

  • Default: SYNC_FILTER_FUNC | ASYNC_FILTER_FUNC

class Channel(Generic[T])


func __init__(self, name: str, type_check: Optional[bool] = None)

Description: 初始化通道

Arguments:

  • name: 通道ID
  • type_check: 是否开启类型检查, 若为空,则传入泛型默认开启,否则默认关闭
Source code or View on GitHub
python
def __init__(self, name: str, type_check: Optional[bool]=None):
+import{_ as i,c as a,a7 as n,o as e}from"./chunks/framework.jrU0lkHV.js";const E=JSON.parse('{"title":"liteyuki.comm.channel","description":"","frontmatter":{"title":"liteyuki.comm.channel"},"headers":[],"relativePath":"en/dev/api/comm/channel.md","filePath":"en/dev/api/comm/channel.md","lastUpdated":1725101868000}'),t={name:"en/dev/api/comm/channel.md"};function l(h,s,k,p,r,d){return e(),a("div",null,s[0]||(s[0]=[n(`

Module liteyuki.comm.channel

本模块定义了一个通用的通道类,用于进程间通信

var SYNC_ON_RECEIVE_FUNC

  • Description: 同步接收函数

  • Type: TypeAlias

  • Default: Callable[[T], Any]

var ON_RECEIVE_FUNC

  • Description: 接收函数

  • Type: TypeAlias

  • Default: SYNC_ON_RECEIVE_FUNC | ASYNC_ON_RECEIVE_FUNC

var SYNC_FILTER_FUNC

  • Description: 同步过滤函数

  • Type: TypeAlias

  • Default: Callable[[T], bool]

var ASYNC_FILTER_FUNC

  • Description: 异步过滤函数

  • Type: TypeAlias

  • Default: Callable[[T], Coroutine[Any, Any, bool]]

var FILTER_FUNC

  • Description: 过滤函数

  • Type: TypeAlias

  • Default: SYNC_FILTER_FUNC | ASYNC_FILTER_FUNC

class Channel(Generic[T])


func __init__(self, name: str, type_check: Optional[bool] = None)

Description: 初始化通道

Arguments:

  • name: 通道ID
  • type_check: 是否开启类型检查, 若为空,则传入泛型默认开启,否则默认关闭
Source code or View on GitHub
python
def __init__(self, name: str, type_check: Optional[bool]=None):
     self.conn_send, self.conn_recv = Pipe()
     self._conn_send_inner, self._conn_recv_inner = Pipe()
     self._closed = False
@@ -91,4 +91,4 @@ import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const g
     recv_chan.send(get_channel(name))

@channel_deliver_passive_channel.on_receive(filter_func=lambda data: data[0] == 'get_channels')

func on_get_channels(data: tuple[str, dict[str, Any]])

Source code or View on GitHub
python
@channel_deliver_passive_channel.on_receive(filter_func=lambda data: data[0] == 'get_channels')
 def on_get_channels(data: tuple[str, dict[str, Any]]):
     recv_chan = data[1]['recv_chan']
-    recv_chan.send(get_channels())
`,86),l=[t];function h(k,p,r,d,c,E){return a(),i("div",null,l)}const y=s(e,[["render",h]]);export{g as __pageData,y as default}; + recv_chan.send(get_channels())
`,86)]))}const o=i(t,[["render",l]]);export{E as __pageData,o as default}; diff --git a/assets/en_dev_api_comm_channel.md.B1Sr7_Nc.lean.js b/assets/en_dev_api_comm_channel.md.B1Sr7_Nc.lean.js new file mode 100644 index 00000000..c334c22d --- /dev/null +++ b/assets/en_dev_api_comm_channel.md.B1Sr7_Nc.lean.js @@ -0,0 +1,94 @@ +import{_ as i,c as a,a7 as n,o as e}from"./chunks/framework.jrU0lkHV.js";const E=JSON.parse('{"title":"liteyuki.comm.channel","description":"","frontmatter":{"title":"liteyuki.comm.channel"},"headers":[],"relativePath":"en/dev/api/comm/channel.md","filePath":"en/dev/api/comm/channel.md","lastUpdated":1725101868000}'),t={name:"en/dev/api/comm/channel.md"};function l(h,s,k,p,r,d){return e(),a("div",null,s[0]||(s[0]=[n(`

Module liteyuki.comm.channel

本模块定义了一个通用的通道类,用于进程间通信

var SYNC_ON_RECEIVE_FUNC

  • Description: 同步接收函数

  • Type: TypeAlias

  • Default: Callable[[T], Any]

var ON_RECEIVE_FUNC

  • Description: 接收函数

  • Type: TypeAlias

  • Default: SYNC_ON_RECEIVE_FUNC | ASYNC_ON_RECEIVE_FUNC

var SYNC_FILTER_FUNC

  • Description: 同步过滤函数

  • Type: TypeAlias

  • Default: Callable[[T], bool]

var ASYNC_FILTER_FUNC

  • Description: 异步过滤函数

  • Type: TypeAlias

  • Default: Callable[[T], Coroutine[Any, Any, bool]]

var FILTER_FUNC

  • Description: 过滤函数

  • Type: TypeAlias

  • Default: SYNC_FILTER_FUNC | ASYNC_FILTER_FUNC

class Channel(Generic[T])


func __init__(self, name: str, type_check: Optional[bool] = None)

Description: 初始化通道

Arguments:

  • name: 通道ID
  • type_check: 是否开启类型检查, 若为空,则传入泛型默认开启,否则默认关闭
Source code or View on GitHub
python
def __init__(self, name: str, type_check: Optional[bool]=None):
+    self.conn_send, self.conn_recv = Pipe()
+    self._conn_send_inner, self._conn_recv_inner = Pipe()
+    self._closed = False
+    self._on_main_receive_func_ids: list[int] = []
+    self._on_sub_receive_func_ids: list[int] = []
+    self.name: str = name
+    self.is_receive_loop_running = False
+    if type_check is None:
+        type_check = self._get_generic_type() is not None
+    elif type_check:
+        if self._get_generic_type() is None:
+            raise TypeError('Type hint is required for enforcing type check.')
+    self.type_check = type_check
+    if name in _channel:
+        raise ValueError(f'Channel {name} already exists')
+    if IS_MAIN_PROCESS:
+        if name in _channel:
+            raise ValueError(f'Channel {name} already exists')
+        _channel[name] = self
+        logger.debug(f'Channel {name} initialized in main process')
+    else:
+        logger.debug(f'Channel {name} initialized in sub process, should manually set in main process')

func send(self, data: T)

Description: 发送数据,发送函数为同步函数,没有异步的必要

Arguments:

  • data (T): 数据
Source code or View on GitHub
python
def send(self, data: T):
+    if self.type_check:
+        _type = self._get_generic_type()
+        if _type is not None and (not self._validate_structure(data, _type)):
+            raise TypeError(f'Data must be an instance of {_type}, {type(data)} found')
+    if self._closed:
+        raise RuntimeError('Cannot send to a closed channel')
+    self.conn_send.send(data)

func receive(self) -> T

Description: 同步接收数据,会阻塞线程

Return: T: 数据

Source code or View on GitHub
python
def receive(self) -> T:
+    if self._closed:
+        raise RuntimeError('Cannot receive from a closed channel')
+    while True:
+        data = self.conn_recv.recv()
+        return data

async func async_receive(self) -> T

Description: 异步接收数据,会挂起等待

Return: T: 数据

Source code or View on GitHub
python
async def async_receive(self) -> T:
+    loop = asyncio.get_running_loop()
+    data = await loop.run_in_executor(None, self.receive)
+    return data

func on_receive(self, filter_func: Optional[FILTER_FUNC] = None) -> Callable[[Callable[[T], Any]], Callable[[T], Any]]

Description: 接收数据并执行函数

Arguments:

Return: Callable[[Callable[[T], Any]], Callable[[T], Any]]: 装饰器

Source code or View on GitHub
python
def on_receive(self, filter_func: Optional[FILTER_FUNC]=None) -> Callable[[Callable[[T], Any]], Callable[[T], Any]]:
+    if not IS_MAIN_PROCESS:
+        raise RuntimeError('on_receive can only be used in main process')
+
+    def decorator(func: Callable[[T], Any]) -> Callable[[T], Any]:
+        global _func_id
+
+        async def wrapper(data: T) -> Any:
+            if filter_func is not None:
+                if is_coroutine_callable(filter_func):
+                    if not await filter_func(data):
+                        return
+                elif not filter_func(data):
+                    return
+            if is_coroutine_callable(func):
+                return await func(data)
+            else:
+                return func(data)
+        _callback_funcs[_func_id] = wrapper
+        if IS_MAIN_PROCESS:
+            self._on_main_receive_func_ids.append(_func_id)
+        else:
+            self._on_sub_receive_func_ids.append(_func_id)
+        _func_id += 1
+        return func
+    return decorator

var active_channel

  • Description: 子进程可用的主动和被动通道

  • Type: Channel

  • Default: Channel(name='active_channel')

var passive_channel

  • Description: 被动通道

  • Type: Channel

  • Default: Channel(name='passive_channel')

var channel_deliver_active_channel

  • Description: 通道传递通道,主进程创建单例,子进程初始化时实例化

  • Type: Channel[Channel[Any]]

  • Default: NO_DEFAULT

var channel_deliver_passive_channel

  • Description: 被动通道传递通道

  • Type: Channel[tuple[str, dict[str, Any]]]

  • Default: NO_DEFAULT


func set_channel(name: str, channel: Channel)

Description: 设置通道实例

Arguments:

  • name (str): 通道名称
  • channel (Channel): 通道实例
Source code or View on GitHub
python
def set_channel(name: str, channel: 'Channel'):
+    if not isinstance(channel, Channel):
+        raise TypeError(f'channel_ must be an instance of Channel, {type(channel)} found')
+    if IS_MAIN_PROCESS:
+        if name in _channel:
+            raise ValueError(f'Channel {name} already exists')
+        _channel[name] = channel
+    else:
+        channel_deliver_passive_channel.send(('set_channel', {'name': name, 'channel_': channel}))

func set_channels(channels: dict[str, Channel])

Description: 设置通道实例

Arguments:

Source code or View on GitHub
python
def set_channels(channels: dict[str, 'Channel']):
+    for name, channel in channels.items():
+        set_channel(name, channel)

func get_channel(name: str) -> Channel

Description: 获取通道实例

Arguments:

  • name (str): 通道名称

Return: Channel: 通道实例

Source code or View on GitHub
python
def get_channel(name: str) -> 'Channel':
+    if IS_MAIN_PROCESS:
+        return _channel[name]
+    else:
+        recv_chan = Channel[Channel[Any]]('recv_chan')
+        channel_deliver_passive_channel.send(('get_channel', {'name': name, 'recv_chan': recv_chan}))
+        return recv_chan.receive()

func get_channels() -> dict[str, Channel]

Description: 获取通道实例们

Return: dict[str, Channel]: 通道实例

Source code or View on GitHub
python
def get_channels() -> dict[str, 'Channel']:
+    if IS_MAIN_PROCESS:
+        return _channel
+    else:
+        recv_chan = Channel[dict[str, Channel[Any]]]('recv_chan')
+        channel_deliver_passive_channel.send(('get_channels', {'recv_chan': recv_chan}))
+        return recv_chan.receive()

@channel_deliver_passive_channel.on_receive(filter_func=lambda data: data[0] == 'set_channel')

func on_set_channel(data: tuple[str, dict[str, Any]])

Source code or View on GitHub
python
@channel_deliver_passive_channel.on_receive(filter_func=lambda data: data[0] == 'set_channel')
+def on_set_channel(data: tuple[str, dict[str, Any]]):
+    name, channel = (data[1]['name'], data[1]['channel_'])
+    set_channel(name, channel)

@channel_deliver_passive_channel.on_receive(filter_func=lambda data: data[0] == 'get_channel')

func on_get_channel(data: tuple[str, dict[str, Any]])

Source code or View on GitHub
python
@channel_deliver_passive_channel.on_receive(filter_func=lambda data: data[0] == 'get_channel')
+def on_get_channel(data: tuple[str, dict[str, Any]]):
+    name, recv_chan = (data[1]['name'], data[1]['recv_chan'])
+    recv_chan.send(get_channel(name))

@channel_deliver_passive_channel.on_receive(filter_func=lambda data: data[0] == 'get_channels')

func on_get_channels(data: tuple[str, dict[str, Any]])

Source code or View on GitHub
python
@channel_deliver_passive_channel.on_receive(filter_func=lambda data: data[0] == 'get_channels')
+def on_get_channels(data: tuple[str, dict[str, Any]]):
+    recv_chan = data[1]['recv_chan']
+    recv_chan.send(get_channels())
`,86)]))}const o=i(t,[["render",l]]);export{E as __pageData,o as default}; diff --git a/assets/en_dev_api_comm_channel.md.zKOKhdvB.lean.js b/assets/en_dev_api_comm_channel.md.zKOKhdvB.lean.js deleted file mode 100644 index 6e602d40..00000000 --- a/assets/en_dev_api_comm_channel.md.zKOKhdvB.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"liteyuki.comm.channel","description":"","frontmatter":{"title":"liteyuki.comm.channel"},"headers":[],"relativePath":"en/dev/api/comm/channel.md","filePath":"en/dev/api/comm/channel.md","lastUpdated":1725101868000}'),e={name:"en/dev/api/comm/channel.md"},t=n("",86),l=[t];function h(k,p,r,d,c,E){return a(),i("div",null,l)}const y=s(e,[["render",h]]);export{g as __pageData,y as default}; diff --git a/assets/en_dev_api_comm_event.md.Crpo-bJ4.js b/assets/en_dev_api_comm_event.md.Crpo-bJ4.js deleted file mode 100644 index 38bae7d8..00000000 --- a/assets/en_dev_api_comm_event.md.Crpo-bJ4.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as e,c as s,o as a,a9 as t}from"./chunks/framework.C4_mTacX.js";const _=JSON.parse('{"title":"liteyuki.comm.event","description":"","frontmatter":{"title":"liteyuki.comm.event"},"headers":[],"relativePath":"en/dev/api/comm/event.md","filePath":"en/dev/api/comm/event.md","lastUpdated":1725101868000}'),i={name:"en/dev/api/comm/event.md"},n=t('

Module liteyuki.comm.event

本模块用于轻雪主进程和子进程之间的通信的事件类

class Event


func __init__(self, name: str, data: dict[str, Any])

Source code or View on GitHub
python
def __init__(self, name: str, data: dict[str, Any]):\n    self.name = name\n    self.data = data
',6),l=[n];function h(d,o,r,c,p,k){return a(),s("div",null,l)}const u=e(i,[["render",h]]);export{_ as __pageData,u as default}; diff --git a/assets/en_dev_api_comm_event.md.Crpo-bJ4.lean.js b/assets/en_dev_api_comm_event.md.Crpo-bJ4.lean.js deleted file mode 100644 index 22c9205b..00000000 --- a/assets/en_dev_api_comm_event.md.Crpo-bJ4.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as e,c as s,o as a,a9 as t}from"./chunks/framework.C4_mTacX.js";const _=JSON.parse('{"title":"liteyuki.comm.event","description":"","frontmatter":{"title":"liteyuki.comm.event"},"headers":[],"relativePath":"en/dev/api/comm/event.md","filePath":"en/dev/api/comm/event.md","lastUpdated":1725101868000}'),i={name:"en/dev/api/comm/event.md"},n=t("",6),l=[n];function h(d,o,r,c,p,k){return a(),s("div",null,l)}const u=e(i,[["render",h]]);export{_ as __pageData,u as default}; diff --git a/assets/en_dev_api_comm_event.md.JdKBF15S.js b/assets/en_dev_api_comm_event.md.JdKBF15S.js new file mode 100644 index 00000000..4274d80f --- /dev/null +++ b/assets/en_dev_api_comm_event.md.JdKBF15S.js @@ -0,0 +1 @@ +import{_ as e,c as s,a7 as i,o as t}from"./chunks/framework.jrU0lkHV.js";const c=JSON.parse('{"title":"liteyuki.comm.event","description":"","frontmatter":{"title":"liteyuki.comm.event"},"headers":[],"relativePath":"en/dev/api/comm/event.md","filePath":"en/dev/api/comm/event.md","lastUpdated":1725101868000}'),n={name:"en/dev/api/comm/event.md"};function l(d,a,r,h,o,p){return t(),s("div",null,a[0]||(a[0]=[i('

Module liteyuki.comm.event

本模块用于轻雪主进程和子进程之间的通信的事件类

class Event


func __init__(self, name: str, data: dict[str, Any])

Source code or View on GitHub
python
def __init__(self, name: str, data: dict[str, Any]):\n    self.name = name\n    self.data = data
',6)]))}const m=e(n,[["render",l]]);export{c as __pageData,m as default}; diff --git a/assets/en_dev_api_comm_event.md.JdKBF15S.lean.js b/assets/en_dev_api_comm_event.md.JdKBF15S.lean.js new file mode 100644 index 00000000..4274d80f --- /dev/null +++ b/assets/en_dev_api_comm_event.md.JdKBF15S.lean.js @@ -0,0 +1 @@ +import{_ as e,c as s,a7 as i,o as t}from"./chunks/framework.jrU0lkHV.js";const c=JSON.parse('{"title":"liteyuki.comm.event","description":"","frontmatter":{"title":"liteyuki.comm.event"},"headers":[],"relativePath":"en/dev/api/comm/event.md","filePath":"en/dev/api/comm/event.md","lastUpdated":1725101868000}'),n={name:"en/dev/api/comm/event.md"};function l(d,a,r,h,o,p){return t(),s("div",null,a[0]||(a[0]=[i('

Module liteyuki.comm.event

本模块用于轻雪主进程和子进程之间的通信的事件类

class Event


func __init__(self, name: str, data: dict[str, Any])

Source code or View on GitHub
python
def __init__(self, name: str, data: dict[str, Any]):\n    self.name = name\n    self.data = data
',6)]))}const m=e(n,[["render",l]]);export{c as __pageData,m as default}; diff --git a/assets/en_dev_api_comm_index.md.BWaivW24.js b/assets/en_dev_api_comm_index.md.BWaivW24.js new file mode 100644 index 00000000..9b3e47fd --- /dev/null +++ b/assets/en_dev_api_comm_index.md.BWaivW24.js @@ -0,0 +1 @@ +import{_ as o,c as l,j as e,a,o as n}from"./chunks/framework.jrU0lkHV.js";const _=JSON.parse('{"title":"liteyuki.comm","description":"","frontmatter":{"title":"liteyuki.comm","collapsed":true},"headers":[],"relativePath":"en/dev/api/comm/index.md","filePath":"en/dev/api/comm/index.md","lastUpdated":null}'),i={name:"en/dev/api/comm/index.md"};function d(m,t,r,c,s,u){return n(),l("div",null,t[0]||(t[0]=[e("h1",{id:"module-liteyuki-comm",tabindex:"-1"},[e("strong",null,"Module"),a(),e("code",null,"liteyuki.comm"),a(),e("a",{class:"header-anchor",href:"#module-liteyuki-comm","aria-label":'Permalink to "**Module** `liteyuki.comm`"'},"​")],-1),e("p",null,"该模块用于轻雪主进程和Nonebot子进程之间的通信 依赖关系 event -> _ storage -> channel_ rpc -> channel_, storage",-1)]))}const f=o(i,[["render",d]]);export{_ as __pageData,f as default}; diff --git a/assets/en_dev_api_comm_index.md.BWaivW24.lean.js b/assets/en_dev_api_comm_index.md.BWaivW24.lean.js new file mode 100644 index 00000000..9b3e47fd --- /dev/null +++ b/assets/en_dev_api_comm_index.md.BWaivW24.lean.js @@ -0,0 +1 @@ +import{_ as o,c as l,j as e,a,o as n}from"./chunks/framework.jrU0lkHV.js";const _=JSON.parse('{"title":"liteyuki.comm","description":"","frontmatter":{"title":"liteyuki.comm","collapsed":true},"headers":[],"relativePath":"en/dev/api/comm/index.md","filePath":"en/dev/api/comm/index.md","lastUpdated":null}'),i={name:"en/dev/api/comm/index.md"};function d(m,t,r,c,s,u){return n(),l("div",null,t[0]||(t[0]=[e("h1",{id:"module-liteyuki-comm",tabindex:"-1"},[e("strong",null,"Module"),a(),e("code",null,"liteyuki.comm"),a(),e("a",{class:"header-anchor",href:"#module-liteyuki-comm","aria-label":'Permalink to "**Module** `liteyuki.comm`"'},"​")],-1),e("p",null,"该模块用于轻雪主进程和Nonebot子进程之间的通信 依赖关系 event -> _ storage -> channel_ rpc -> channel_, storage",-1)]))}const f=o(i,[["render",d]]);export{_ as __pageData,f as default}; diff --git a/assets/en_dev_api_comm_index.md.BghEev94.js b/assets/en_dev_api_comm_index.md.BghEev94.js deleted file mode 100644 index 447074fe..00000000 --- a/assets/en_dev_api_comm_index.md.BghEev94.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as o,c as a,o as n,j as e,a as t}from"./chunks/framework.C4_mTacX.js";const k=JSON.parse('{"title":"liteyuki.comm","description":"","frontmatter":{"title":"liteyuki.comm","collapsed":true},"headers":[],"relativePath":"en/dev/api/comm/index.md","filePath":"en/dev/api/comm/index.md","lastUpdated":null}'),i={name:"en/dev/api/comm/index.md"},l=e("h1",{id:"module-liteyuki-comm",tabindex:"-1"},[e("strong",null,"Module"),t(),e("code",null,"liteyuki.comm"),t(),e("a",{class:"header-anchor",href:"#module-liteyuki-comm","aria-label":'Permalink to "**Module** `liteyuki.comm`"'},"​")],-1),c=e("p",null,"该模块用于轻雪主进程和Nonebot子进程之间的通信 依赖关系 event -> _ storage -> channel_ rpc -> channel_, storage",-1),d=[l,c];function s(m,r,u,_,p,h){return n(),a("div",null,d)}const x=o(i,[["render",s]]);export{k as __pageData,x as default}; diff --git a/assets/en_dev_api_comm_index.md.BghEev94.lean.js b/assets/en_dev_api_comm_index.md.BghEev94.lean.js deleted file mode 100644 index 447074fe..00000000 --- a/assets/en_dev_api_comm_index.md.BghEev94.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as o,c as a,o as n,j as e,a as t}from"./chunks/framework.C4_mTacX.js";const k=JSON.parse('{"title":"liteyuki.comm","description":"","frontmatter":{"title":"liteyuki.comm","collapsed":true},"headers":[],"relativePath":"en/dev/api/comm/index.md","filePath":"en/dev/api/comm/index.md","lastUpdated":null}'),i={name:"en/dev/api/comm/index.md"},l=e("h1",{id:"module-liteyuki-comm",tabindex:"-1"},[e("strong",null,"Module"),t(),e("code",null,"liteyuki.comm"),t(),e("a",{class:"header-anchor",href:"#module-liteyuki-comm","aria-label":'Permalink to "**Module** `liteyuki.comm`"'},"​")],-1),c=e("p",null,"该模块用于轻雪主进程和Nonebot子进程之间的通信 依赖关系 event -> _ storage -> channel_ rpc -> channel_, storage",-1),d=[l,c];function s(m,r,u,_,p,h){return n(),a("div",null,d)}const x=o(i,[["render",s]]);export{k as __pageData,x as default}; diff --git a/assets/en_dev_api_comm_socks_channel.md.B8_s4Hv_.js b/assets/en_dev_api_comm_socks_channel.md.B8_s4Hv_.js deleted file mode 100644 index f160ae5d..00000000 --- a/assets/en_dev_api_comm_socks_channel.md.B8_s4Hv_.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as s,c as a,o as i,a9 as e}from"./chunks/framework.C4_mTacX.js";const m=JSON.parse('{"title":"liteyuki.comm.socks_channel","description":"","frontmatter":{"title":"liteyuki.comm.socks_channel"},"headers":[],"relativePath":"en/dev/api/comm/socks_channel.md","filePath":"en/dev/api/comm/socks_channel.md","lastUpdated":null}'),n={name:"en/dev/api/comm/socks_channel.md"},t=e('

Module liteyuki.comm.socks_channel

基于socket的通道

class SocksChannel


func __init__(self, name: str)

Description: 初始化通道

Arguments:

  • name: 通道ID
Source code or View on GitHub
python
def __init__(self, name: str):\n    self._name = name\n    self._conn_send = None\n    self._conn_recv = None\n    self._closed = False

func send(self, data)

Description: 发送数据

Arguments:

  • data: 数据
Source code or View on GitHub
python
def send(self, data):\n    pass

func receive(self)

Description: 接收数据

Return: data: 数据

Source code or View on GitHub
python
def receive(self):\n    pass

func close(self)

Description: 关闭通道

Source code or View on GitHub
python
def close(self):\n    pass
',24),l=[t];function o(h,c,p,r,k,d){return i(),a("div",null,l)}const g=s(n,[["render",o]]);export{m as __pageData,g as default}; diff --git a/assets/en_dev_api_comm_socks_channel.md.B8_s4Hv_.lean.js b/assets/en_dev_api_comm_socks_channel.md.B8_s4Hv_.lean.js deleted file mode 100644 index f27d675e..00000000 --- a/assets/en_dev_api_comm_socks_channel.md.B8_s4Hv_.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as s,c as a,o as i,a9 as e}from"./chunks/framework.C4_mTacX.js";const m=JSON.parse('{"title":"liteyuki.comm.socks_channel","description":"","frontmatter":{"title":"liteyuki.comm.socks_channel"},"headers":[],"relativePath":"en/dev/api/comm/socks_channel.md","filePath":"en/dev/api/comm/socks_channel.md","lastUpdated":null}'),n={name:"en/dev/api/comm/socks_channel.md"},t=e("",24),l=[t];function o(h,c,p,r,k,d){return i(),a("div",null,l)}const g=s(n,[["render",o]]);export{m as __pageData,g as default}; diff --git a/assets/en_dev_api_comm_storage.md.WX6gT40z.js b/assets/en_dev_api_comm_storage.md.C9UlOPzB.js similarity index 94% rename from assets/en_dev_api_comm_storage.md.WX6gT40z.js rename to assets/en_dev_api_comm_storage.md.C9UlOPzB.js index fe1d7dcb..d47a4845 100644 --- a/assets/en_dev_api_comm_storage.md.WX6gT40z.js +++ b/assets/en_dev_api_comm_storage.md.C9UlOPzB.js @@ -1,4 +1,4 @@ -import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"liteyuki.comm.storage","description":"","frontmatter":{"title":"liteyuki.comm.storage"},"headers":[],"relativePath":"en/dev/api/comm/storage.md","filePath":"en/dev/api/comm/storage.md","lastUpdated":1725101868000}'),t={name:"en/dev/api/comm/storage.md"},e=n(`

Module liteyuki.comm.storage

共享内存模块。类似于redis,但是更加轻量级并且线程安全

var _on_main_subscriber_receive_funcs

  • Description: 主进程订阅者接收函数

  • Type: dict[str, list[ASYNC_ON_RECEIVE_FUNC]]

  • Default: {}

var _on_sub_subscriber_receive_funcs

  • Description: 子进程订阅者接收函数

  • Type: dict[str, list[ASYNC_ON_RECEIVE_FUNC]]

  • Default: {}

class KeyValueStore


func __init__(self)

Source code or View on GitHub
python
def __init__(self):
+import{_ as i,c as a,a7 as n,o as t}from"./chunks/framework.jrU0lkHV.js";const o=JSON.parse('{"title":"liteyuki.comm.storage","description":"","frontmatter":{"title":"liteyuki.comm.storage"},"headers":[],"relativePath":"en/dev/api/comm/storage.md","filePath":"en/dev/api/comm/storage.md","lastUpdated":1725101868000}'),e={name:"en/dev/api/comm/storage.md"};function l(h,s,k,p,r,d){return t(),a("div",null,s[0]||(s[0]=[n(`

Module liteyuki.comm.storage

共享内存模块。类似于redis,但是更加轻量级并且线程安全

var _on_main_subscriber_receive_funcs

  • Description: 主进程订阅者接收函数

  • Type: dict[str, list[ASYNC_ON_RECEIVE_FUNC]]

  • Default: {}

var _on_sub_subscriber_receive_funcs

  • Description: 子进程订阅者接收函数

  • Type: dict[str, list[ASYNC_ON_RECEIVE_FUNC]]

  • Default: {}

class KeyValueStore


func __init__(self)

Source code or View on GitHub
python
def __init__(self):
     self._store = {}
     self.active_chan = Channel[tuple[str, Optional[dict[str, Any]]]](name='shared_memory-active')
     self.passive_chan = Channel[tuple[str, Optional[dict[str, Any]]]](name='shared_memory-passive')
@@ -87,4 +87,4 @@ import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const g
     shared_memory.delete(key)

@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'get_all')

func on_get_all(data: tuple[str, dict[str, Any]])

Source code or View on GitHub
python
@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'get_all')
 def on_get_all(data: tuple[str, dict[str, Any]]):
     recv_chan = data[1]['recv_chan']
-    recv_chan.send(shared_memory.get_all())
`,85),l=[e];function h(k,p,r,d,E,o){return a(),i("div",null,l)}const y=s(t,[["render",h]]);export{g as __pageData,y as default}; + recv_chan.send(shared_memory.get_all())
`,85)]))}const c=i(e,[["render",l]]);export{o as __pageData,c as default}; diff --git a/assets/en_dev_api_comm_storage.md.C9UlOPzB.lean.js b/assets/en_dev_api_comm_storage.md.C9UlOPzB.lean.js new file mode 100644 index 00000000..d47a4845 --- /dev/null +++ b/assets/en_dev_api_comm_storage.md.C9UlOPzB.lean.js @@ -0,0 +1,90 @@ +import{_ as i,c as a,a7 as n,o as t}from"./chunks/framework.jrU0lkHV.js";const o=JSON.parse('{"title":"liteyuki.comm.storage","description":"","frontmatter":{"title":"liteyuki.comm.storage"},"headers":[],"relativePath":"en/dev/api/comm/storage.md","filePath":"en/dev/api/comm/storage.md","lastUpdated":1725101868000}'),e={name:"en/dev/api/comm/storage.md"};function l(h,s,k,p,r,d){return t(),a("div",null,s[0]||(s[0]=[n(`

Module liteyuki.comm.storage

共享内存模块。类似于redis,但是更加轻量级并且线程安全

var _on_main_subscriber_receive_funcs

  • Description: 主进程订阅者接收函数

  • Type: dict[str, list[ASYNC_ON_RECEIVE_FUNC]]

  • Default: {}

var _on_sub_subscriber_receive_funcs

  • Description: 子进程订阅者接收函数

  • Type: dict[str, list[ASYNC_ON_RECEIVE_FUNC]]

  • Default: {}

class KeyValueStore


func __init__(self)

Source code or View on GitHub
python
def __init__(self):
+    self._store = {}
+    self.active_chan = Channel[tuple[str, Optional[dict[str, Any]]]](name='shared_memory-active')
+    self.passive_chan = Channel[tuple[str, Optional[dict[str, Any]]]](name='shared_memory-passive')
+    self.publish_channel = Channel[tuple[str, Any]](name='shared_memory-publish')
+    self.is_main_receive_loop_running = False
+    self.is_sub_receive_loop_running = False

func set(self, key: str, value: Any) -> None

Description: 设置键值对

Arguments:

  • key: 键
  • value: 值
Source code or View on GitHub
python
def set(self, key: str, value: Any) -> None:
+    if IS_MAIN_PROCESS:
+        lock = _get_lock(key)
+        with lock:
+            self._store[key] = value
+    else:
+        self.passive_chan.send(('set', {'key': key, 'value': value}))

func get(self, key: str, default: Optional[Any] = None) -> Optional[Any]

Description: 获取键值对

Arguments:

  • key: 键
  • default: 默认值

Return: Any: 值

Source code or View on GitHub
python
def get(self, key: str, default: Optional[Any]=None) -> Optional[Any]:
+    if IS_MAIN_PROCESS:
+        lock = _get_lock(key)
+        with lock:
+            return self._store.get(key, default)
+    else:
+        recv_chan = Channel[Optional[Any]]('recv_chan')
+        self.passive_chan.send(('get', {'key': key, 'default': default, 'recv_chan': recv_chan}))
+        return recv_chan.receive()

func delete(self, key: str, ignore_key_error: bool = True) -> None

Description: 删除键值对

Arguments:

  • key: 键
  • ignore_key_error: 是否忽略键不存在的错误
Source code or View on GitHub
python
def delete(self, key: str, ignore_key_error: bool=True) -> None:
+    if IS_MAIN_PROCESS:
+        lock = _get_lock(key)
+        with lock:
+            if key in self._store:
+                try:
+                    del self._store[key]
+                    del _locks[key]
+                except KeyError as e:
+                    if not ignore_key_error:
+                        raise e
+    else:
+        self.passive_chan.send(('delete', {'key': key}))

func get_all(self) -> dict[str, Any]

Description: 获取所有键值对

Return: dict[str, Any]: 键值对

Source code or View on GitHub
python
def get_all(self) -> dict[str, Any]:
+    if IS_MAIN_PROCESS:
+        return self._store
+    else:
+        recv_chan = Channel[dict[str, Any]]('recv_chan')
+        self.passive_chan.send(('get_all', {'recv_chan': recv_chan}))
+        return recv_chan.receive()

func publish(self, channel_: str, data: Any) -> None

Description: 发布消息

Arguments:

  • channel_: 频道
  • data: 数据
Source code or View on GitHub
python
def publish(self, channel_: str, data: Any) -> None:
+    self.active_chan.send(('publish', {'channel': channel_, 'data': data}))

func on_subscriber_receive(self, channel_: str) -> Callable[[ON_RECEIVE_FUNC], ON_RECEIVE_FUNC]

Description: 订阅者接收消息时的回调

Arguments:

  • channel_: 频道

Return: 装饰器

Source code or View on GitHub
python
def on_subscriber_receive(self, channel_: str) -> Callable[[ON_RECEIVE_FUNC], ON_RECEIVE_FUNC]:
+    if not IS_MAIN_PROCESS:
+        raise RuntimeError('Cannot subscribe in sub process.')
+
+    def decorator(func: ON_RECEIVE_FUNC) -> ON_RECEIVE_FUNC:
+
+        async def wrapper(data: Any):
+            if is_coroutine_callable(func):
+                await func(data)
+            else:
+                func(data)
+        if IS_MAIN_PROCESS:
+            if channel_ not in _on_main_subscriber_receive_funcs:
+                _on_main_subscriber_receive_funcs[channel_] = []
+            _on_main_subscriber_receive_funcs[channel_].append(wrapper)
+        else:
+            if channel_ not in _on_sub_subscriber_receive_funcs:
+                _on_sub_subscriber_receive_funcs[channel_] = []
+            _on_sub_subscriber_receive_funcs[channel_].append(wrapper)
+        return wrapper
+    return decorator

@staticmethod

async func run_subscriber_receive_funcs(channel_: str, data: Any)

Description: 运行订阅者接收函数

Arguments:

  • channel_: 频道
  • data: 数据
Source code or View on GitHub
python
@staticmethod
+async def run_subscriber_receive_funcs(channel_: str, data: Any):
+    [asyncio.create_task(func(data)) for func in _on_main_subscriber_receive_funcs[channel_]]

async func start_receive_loop(self)

Description: 启动发布订阅接收器循环,在主进程中运行,若有子进程订阅则推送给子进程

Source code or View on GitHub
python
async def start_receive_loop(self):
+    if not IS_MAIN_PROCESS:
+        raise RuntimeError('Cannot start receive loop in sub process.')
+    while True:
+        data = await self.active_chan.async_receive()
+        if data[0] == 'publish':
+            await self.run_subscriber_receive_funcs(data[1]['channel'], data[1]['data'])
+            self.publish_channel.send(data)

class GlobalKeyValueStore


@classmethod

func get_instance(cls)

Source code or View on GitHub
python
@classmethod
+def get_instance(cls):
+    if cls._instance is None:
+        with cls._lock:
+            if cls._instance is None:
+                cls._instance = KeyValueStore()
+    return cls._instance

attr _instance = None

attr _lock = threading.Lock()

var shared_memory

  • Description: 共享内存对象

  • Type: KeyValueStore

  • Default: GlobalKeyValueStore.get_instance()

var _ref_count

  • Description: import 引用计数, 防止获取空指针

  • Default: 0


@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'get')

func on_get(data: tuple[str, dict[str, Any]])

Source code or View on GitHub
python
@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'get')
+def on_get(data: tuple[str, dict[str, Any]]):
+    key = data[1]['key']
+    default = data[1]['default']
+    recv_chan = data[1]['recv_chan']
+    recv_chan.send(shared_memory.get(key, default))

@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'set')

func on_set(data: tuple[str, dict[str, Any]])

Source code or View on GitHub
python
@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'set')
+def on_set(data: tuple[str, dict[str, Any]]):
+    key = data[1]['key']
+    value = data[1]['value']
+    shared_memory.set(key, value)

@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'delete')

func on_delete(data: tuple[str, dict[str, Any]])

Source code or View on GitHub
python
@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'delete')
+def on_delete(data: tuple[str, dict[str, Any]]):
+    key = data[1]['key']
+    shared_memory.delete(key)

@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'get_all')

func on_get_all(data: tuple[str, dict[str, Any]])

Source code or View on GitHub
python
@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'get_all')
+def on_get_all(data: tuple[str, dict[str, Any]]):
+    recv_chan = data[1]['recv_chan']
+    recv_chan.send(shared_memory.get_all())
`,85)]))}const c=i(e,[["render",l]]);export{o as __pageData,c as default}; diff --git a/assets/en_dev_api_comm_storage.md.WX6gT40z.lean.js b/assets/en_dev_api_comm_storage.md.WX6gT40z.lean.js deleted file mode 100644 index 092a265a..00000000 --- a/assets/en_dev_api_comm_storage.md.WX6gT40z.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"liteyuki.comm.storage","description":"","frontmatter":{"title":"liteyuki.comm.storage"},"headers":[],"relativePath":"en/dev/api/comm/storage.md","filePath":"en/dev/api/comm/storage.md","lastUpdated":1725101868000}'),t={name:"en/dev/api/comm/storage.md"},e=n("",85),l=[e];function h(k,p,r,d,E,o){return a(),i("div",null,l)}const y=s(t,[["render",h]]);export{g as __pageData,y as default}; diff --git a/assets/en_dev_api_config.md.CRNFMcJd.lean.js b/assets/en_dev_api_config.md.CRNFMcJd.lean.js deleted file mode 100644 index 82037c8c..00000000 --- a/assets/en_dev_api_config.md.CRNFMcJd.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as s,c as a,o as n,a9 as i,j as t}from"./chunks/framework.C4_mTacX.js";const f=JSON.parse('{"title":"liteyuki.config","description":"","frontmatter":{"title":"liteyuki.config"},"headers":[],"relativePath":"en/dev/api/config.md","filePath":"en/dev/api/config.md","lastUpdated":1725101868000}'),h={name:"en/dev/api/config.md"},l=i("",6),k=t("p",{"a.b.c:":"",1:""},"{a:{b:{c:1}}} ->",-1),p=i("",28),e=[l,k,p];function r(d,E,g,o,y,c){return n(),a("div",null,e)}const u=s(h,[["render",r]]);export{f as __pageData,u as default}; diff --git a/assets/en_dev_api_config.md.CRNFMcJd.js b/assets/en_dev_api_config.md.VQ9sNlqG.js similarity index 91% rename from assets/en_dev_api_config.md.CRNFMcJd.js rename to assets/en_dev_api_config.md.VQ9sNlqG.js index e8560597..9b25962e 100644 --- a/assets/en_dev_api_config.md.CRNFMcJd.js +++ b/assets/en_dev_api_config.md.VQ9sNlqG.js @@ -1,4 +1,4 @@ -import{_ as s,c as a,o as n,a9 as i,j as t}from"./chunks/framework.C4_mTacX.js";const f=JSON.parse('{"title":"liteyuki.config","description":"","frontmatter":{"title":"liteyuki.config"},"headers":[],"relativePath":"en/dev/api/config.md","filePath":"en/dev/api/config.md","lastUpdated":1725101868000}'),h={name:"en/dev/api/config.md"},l=i('

Module liteyuki.config

该模块用于常用配置文件的加载 多配置文件编写原则:

  1. 尽量不要冲突: 一个键不要多次出现
  2. 分工明确: 每个配置文件给一个或一类服务提供配置
  3. 扁平化编写: 配置文件尽量扁平化,不要出现过多的嵌套
  4. 注意冲突时的优先级: 项目目录下的配置文件优先级高于config目录下的配置文件
  5. 请不要将需要动态加载的内容写入配置文件,你应该使用其他储存方式

func flat_config(config: dict[str, Any]) -> dict[str, Any]

Description: 扁平化配置文件

',6),k=t("p",{"a.b.c:":"",1:""},"{a:{b:{c:1}}} ->",-1),p=i(`

Arguments:

  • config: 配置项目

Return: 扁平化后的配置文件,但也包含原有的键值对

Source code or View on GitHub
python
def flat_config(config: dict[str, Any]) -> dict[str, Any]:
+import{_ as a,c as n,a7 as s,j as t,o as h}from"./chunks/framework.jrU0lkHV.js";const o=JSON.parse('{"title":"liteyuki.config","description":"","frontmatter":{"title":"liteyuki.config"},"headers":[],"relativePath":"en/dev/api/config.md","filePath":"en/dev/api/config.md","lastUpdated":1725101868000}'),l={name:"en/dev/api/config.md"};function k(p,i,e,r,d,E){return h(),n("div",null,i[0]||(i[0]=[s('

Module liteyuki.config

该模块用于常用配置文件的加载 多配置文件编写原则:

  1. 尽量不要冲突: 一个键不要多次出现
  2. 分工明确: 每个配置文件给一个或一类服务提供配置
  3. 扁平化编写: 配置文件尽量扁平化,不要出现过多的嵌套
  4. 注意冲突时的优先级: 项目目录下的配置文件优先级高于config目录下的配置文件
  5. 请不要将需要动态加载的内容写入配置文件,你应该使用其他储存方式

func flat_config(config: dict[str, Any]) -> dict[str, Any]

Description: 扁平化配置文件

',6),t("p",{"a.b.c:":"",1:""},"{a:{b:{c:1}}} ->",-1),s(`

Arguments:

  • config: 配置项目

Return: 扁平化后的配置文件,但也包含原有的键值对

Source code or View on GitHub
python
def flat_config(config: dict[str, Any]) -> dict[str, Any]:
     new_config = copy.deepcopy(config)
     for key, value in config.items():
         if isinstance(value, dict):
@@ -40,4 +40,4 @@ import{_ as s,c as a,o as n,a9 as i,j as t}from"./chunks/framework.C4_mTacX.js";
     return config

func load_config_in_default(no_waring: bool = False) -> dict[str, Any]

Description: 从一个标准的轻雪项目加载配置文件 项目目录下的config.*和config目录下的所有配置文件 项目目录下的配置文件优先

Source code or View on GitHub
python
def load_config_in_default(no_waring: bool=False) -> dict[str, Any]:
     config = load_configs_from_dirs('config', no_waring=no_waring)
     config.update(load_from_files('config.yaml', 'config.toml', 'config.json', 'config.yml', no_warning=no_waring))
-    return config
`,28),e=[l,k,p];function r(d,E,g,o,y,c){return n(),a("div",null,e)}const u=s(h,[["render",r]]);export{f as __pageData,u as default}; + return config
`,28)]))}const y=a(l,[["render",k]]);export{o as __pageData,y as default}; diff --git a/assets/en_dev_api_config.md.VQ9sNlqG.lean.js b/assets/en_dev_api_config.md.VQ9sNlqG.lean.js new file mode 100644 index 00000000..9b25962e --- /dev/null +++ b/assets/en_dev_api_config.md.VQ9sNlqG.lean.js @@ -0,0 +1,43 @@ +import{_ as a,c as n,a7 as s,j as t,o as h}from"./chunks/framework.jrU0lkHV.js";const o=JSON.parse('{"title":"liteyuki.config","description":"","frontmatter":{"title":"liteyuki.config"},"headers":[],"relativePath":"en/dev/api/config.md","filePath":"en/dev/api/config.md","lastUpdated":1725101868000}'),l={name:"en/dev/api/config.md"};function k(p,i,e,r,d,E){return h(),n("div",null,i[0]||(i[0]=[s('

Module liteyuki.config

该模块用于常用配置文件的加载 多配置文件编写原则:

  1. 尽量不要冲突: 一个键不要多次出现
  2. 分工明确: 每个配置文件给一个或一类服务提供配置
  3. 扁平化编写: 配置文件尽量扁平化,不要出现过多的嵌套
  4. 注意冲突时的优先级: 项目目录下的配置文件优先级高于config目录下的配置文件
  5. 请不要将需要动态加载的内容写入配置文件,你应该使用其他储存方式

func flat_config(config: dict[str, Any]) -> dict[str, Any]

Description: 扁平化配置文件

',6),t("p",{"a.b.c:":"",1:""},"{a:{b:{c:1}}} ->",-1),s(`

Arguments:

  • config: 配置项目

Return: 扁平化后的配置文件,但也包含原有的键值对

Source code or View on GitHub
python
def flat_config(config: dict[str, Any]) -> dict[str, Any]:
+    new_config = copy.deepcopy(config)
+    for key, value in config.items():
+        if isinstance(value, dict):
+            for k, v in flat_config(value).items():
+                new_config[f'{key}.{k}'] = v
+    return new_config

func load_from_yaml(file_: str) -> dict[str, Any]

Description: Load config from yaml file

Source code or View on GitHub
python
def load_from_yaml(file_: str) -> dict[str, Any]:
+    logger.debug(f'Loading YAML config from {file_}')
+    config = yaml.safe_load(open(file_, 'r', encoding='utf-8'))
+    return flat_config(config if config is not None else {})

func load_from_json(file_: str) -> dict[str, Any]

Description: Load config from json file

Source code or View on GitHub
python
def load_from_json(file_: str) -> dict[str, Any]:
+    logger.debug(f'Loading JSON config from {file_}')
+    config = json.load(open(file_, 'r', encoding='utf-8'))
+    return flat_config(config if config is not None else {})

func load_from_toml(file_: str) -> dict[str, Any]

Description: Load config from toml file

Source code or View on GitHub
python
def load_from_toml(file_: str) -> dict[str, Any]:
+    logger.debug(f'Loading TOML config from {file_}')
+    config = toml.load(open(file_, 'r', encoding='utf-8'))
+    return flat_config(config if config is not None else {})

func load_from_files(*files: str, *, no_warning: bool = False) -> dict[str, Any]

Description: 从指定文件加载配置项,会自动识别文件格式 默认执行扁平化选项

Source code or View on GitHub
python
def load_from_files(*files: str, no_warning: bool=False) -> dict[str, Any]:
+    config = {}
+    for file in files:
+        if os.path.exists(file):
+            if file.endswith(('.yaml', 'yml')):
+                config.update(load_from_yaml(file))
+            elif file.endswith('.json'):
+                config.update(load_from_json(file))
+            elif file.endswith('.toml'):
+                config.update(load_from_toml(file))
+            elif not no_warning:
+                logger.warning(f'Unsupported config file format: {file}')
+        elif not no_warning:
+            logger.warning(f'Config file not found: {file}')
+    return config

func load_configs_from_dirs(*directories: str, *, no_waring: bool = False) -> dict[str, Any]

Description: 从目录下加载配置文件,不递归 按照读取文件的优先级反向覆盖 默认执行扁平化选项

Source code or View on GitHub
python
def load_configs_from_dirs(*directories: str, no_waring: bool=False) -> dict[str, Any]:
+    config = {}
+    for directory in directories:
+        if not os.path.exists(directory):
+            if not no_waring:
+                logger.warning(f'Directory not found: {directory}')
+            continue
+        for file in os.listdir(directory):
+            if file.endswith(_SUPPORTED_CONFIG_FORMATS):
+                config.update(load_from_files(os.path.join(directory, file), no_warning=no_waring))
+    return config

func load_config_in_default(no_waring: bool = False) -> dict[str, Any]

Description: 从一个标准的轻雪项目加载配置文件 项目目录下的config.*和config目录下的所有配置文件 项目目录下的配置文件优先

Source code or View on GitHub
python
def load_config_in_default(no_waring: bool=False) -> dict[str, Any]:
+    config = load_configs_from_dirs('config', no_waring=no_waring)
+    config.update(load_from_files('config.yaml', 'config.toml', 'config.json', 'config.yml', no_warning=no_waring))
+    return config
`,28)]))}const y=a(l,[["render",k]]);export{o as __pageData,y as default}; diff --git a/assets/en_dev_api_core_index.md.D5Civ-zH.js b/assets/en_dev_api_core_index.md.D5Civ-zH.js new file mode 100644 index 00000000..e1578db8 --- /dev/null +++ b/assets/en_dev_api_core_index.md.D5Civ-zH.js @@ -0,0 +1 @@ +import{_ as o,c as r,j as e,a,o as i}from"./chunks/framework.jrU0lkHV.js";const f=JSON.parse('{"title":"liteyuki.core","description":"","frontmatter":{"title":"liteyuki.core","collapsed":true},"headers":[],"relativePath":"en/dev/api/core/index.md","filePath":"en/dev/api/core/index.md","lastUpdated":null}'),l={name:"en/dev/api/core/index.md"};function d(n,t,c,s,u,p){return i(),r("div",null,t[0]||(t[0]=[e("h1",{id:"module-liteyuki-core",tabindex:"-1"},[e("strong",null,"Module"),a(),e("code",null,"liteyuki.core"),a(),e("a",{class:"header-anchor",href:"#module-liteyuki-core","aria-label":'Permalink to "**Module** `liteyuki.core`"'},"​")],-1)]))}const k=o(l,[["render",d]]);export{f as __pageData,k as default}; diff --git a/assets/en_dev_api_core_index.md.D5Civ-zH.lean.js b/assets/en_dev_api_core_index.md.D5Civ-zH.lean.js new file mode 100644 index 00000000..e1578db8 --- /dev/null +++ b/assets/en_dev_api_core_index.md.D5Civ-zH.lean.js @@ -0,0 +1 @@ +import{_ as o,c as r,j as e,a,o as i}from"./chunks/framework.jrU0lkHV.js";const f=JSON.parse('{"title":"liteyuki.core","description":"","frontmatter":{"title":"liteyuki.core","collapsed":true},"headers":[],"relativePath":"en/dev/api/core/index.md","filePath":"en/dev/api/core/index.md","lastUpdated":null}'),l={name:"en/dev/api/core/index.md"};function d(n,t,c,s,u,p){return i(),r("div",null,t[0]||(t[0]=[e("h1",{id:"module-liteyuki-core",tabindex:"-1"},[e("strong",null,"Module"),a(),e("code",null,"liteyuki.core"),a(),e("a",{class:"header-anchor",href:"#module-liteyuki-core","aria-label":'Permalink to "**Module** `liteyuki.core`"'},"​")],-1)]))}const k=o(l,[["render",d]]);export{f as __pageData,k as default}; diff --git a/assets/en_dev_api_core_index.md.NuGEgKq2.js b/assets/en_dev_api_core_index.md.NuGEgKq2.js deleted file mode 100644 index 507d0ee5..00000000 --- a/assets/en_dev_api_core_index.md.NuGEgKq2.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as a,c as o,o as i,j as e,a as t}from"./chunks/framework.C4_mTacX.js";const f=JSON.parse('{"title":"liteyuki.core","description":"","frontmatter":{"title":"liteyuki.core","collapsed":true},"headers":[],"relativePath":"en/dev/api/core/index.md","filePath":"en/dev/api/core/index.md","lastUpdated":null}'),r={name:"en/dev/api/core/index.md"},l=e("h1",{id:"module-liteyuki-core",tabindex:"-1"},[e("strong",null,"Module"),t(),e("code",null,"liteyuki.core"),t(),e("a",{class:"header-anchor",href:"#module-liteyuki-core","aria-label":'Permalink to "**Module** `liteyuki.core`"'},"​")],-1),c=[l];function d(n,s,u,p,_,m){return i(),o("div",null,c)}const k=a(r,[["render",d]]);export{f as __pageData,k as default}; diff --git a/assets/en_dev_api_core_index.md.NuGEgKq2.lean.js b/assets/en_dev_api_core_index.md.NuGEgKq2.lean.js deleted file mode 100644 index 507d0ee5..00000000 --- a/assets/en_dev_api_core_index.md.NuGEgKq2.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as a,c as o,o as i,j as e,a as t}from"./chunks/framework.C4_mTacX.js";const f=JSON.parse('{"title":"liteyuki.core","description":"","frontmatter":{"title":"liteyuki.core","collapsed":true},"headers":[],"relativePath":"en/dev/api/core/index.md","filePath":"en/dev/api/core/index.md","lastUpdated":null}'),r={name:"en/dev/api/core/index.md"},l=e("h1",{id:"module-liteyuki-core",tabindex:"-1"},[e("strong",null,"Module"),t(),e("code",null,"liteyuki.core"),t(),e("a",{class:"header-anchor",href:"#module-liteyuki-core","aria-label":'Permalink to "**Module** `liteyuki.core`"'},"​")],-1),c=[l];function d(n,s,u,p,_,m){return i(),o("div",null,c)}const k=a(r,[["render",d]]);export{f as __pageData,k as default}; diff --git a/assets/en_dev_api_core_manager.md.D_hvcNXp.lean.js b/assets/en_dev_api_core_manager.md.D_hvcNXp.lean.js deleted file mode 100644 index feaaa701..00000000 --- a/assets/en_dev_api_core_manager.md.D_hvcNXp.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const c=JSON.parse('{"title":"liteyuki.core.manager","description":"","frontmatter":{"title":"liteyuki.core.manager"},"headers":[],"relativePath":"en/dev/api/core/manager.md","filePath":"en/dev/api/core/manager.md","lastUpdated":1725101868000}'),e={name:"en/dev/api/core/manager.md"},t=n("",62),l=[t];function h(k,p,r,d,g,o){return a(),i("div",null,l)}const y=s(e,[["render",h]]);export{c as __pageData,y as default}; diff --git a/assets/en_dev_api_core_manager.md.D_hvcNXp.js b/assets/en_dev_api_core_manager.md.H4rqnaCF.js similarity index 91% rename from assets/en_dev_api_core_manager.md.D_hvcNXp.js rename to assets/en_dev_api_core_manager.md.H4rqnaCF.js index 6a778c80..e01a4c88 100644 --- a/assets/en_dev_api_core_manager.md.D_hvcNXp.js +++ b/assets/en_dev_api_core_manager.md.H4rqnaCF.js @@ -1,4 +1,4 @@ -import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const c=JSON.parse('{"title":"liteyuki.core.manager","description":"","frontmatter":{"title":"liteyuki.core.manager"},"headers":[],"relativePath":"en/dev/api/core/manager.md","filePath":"en/dev/api/core/manager.md","lastUpdated":1725101868000}'),e={name:"en/dev/api/core/manager.md"},t=n(`

Module liteyuki.core.manager

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/27 上午11:12 @Author : snowykami @Email : snowykami@outlook.com @File : manager.py @Software: PyCharm

class ChannelDeliver


func __init__(self, active: Channel[Any], passive: Channel[Any], channel_deliver_active: Channel[Channel[Any]], channel_deliver_passive: Channel[tuple[str, dict]], publish: Channel[tuple[str, Any]])

Source code or View on GitHub
python
def __init__(self, active: Channel[Any], passive: Channel[Any], channel_deliver_active: Channel[Channel[Any]], channel_deliver_passive: Channel[tuple[str, dict]], publish: Channel[tuple[str, Any]]):
+import{_ as i,c as a,a7 as n,o as e}from"./chunks/framework.jrU0lkHV.js";const o=JSON.parse('{"title":"liteyuki.core.manager","description":"","frontmatter":{"title":"liteyuki.core.manager"},"headers":[],"relativePath":"en/dev/api/core/manager.md","filePath":"en/dev/api/core/manager.md","lastUpdated":1725101868000}'),t={name:"en/dev/api/core/manager.md"};function l(h,s,k,p,r,d){return e(),a("div",null,s[0]||(s[0]=[n(`

Module liteyuki.core.manager

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/27 上午11:12 @Author : snowykami @Email : snowykami@outlook.com @File : manager.py @Software: PyCharm

class ChannelDeliver


func __init__(self, active: Channel[Any], passive: Channel[Any], channel_deliver_active: Channel[Channel[Any]], channel_deliver_passive: Channel[tuple[str, dict]], publish: Channel[tuple[str, Any]])

Source code or View on GitHub
python
def __init__(self, active: Channel[Any], passive: Channel[Any], channel_deliver_active: Channel[Channel[Any]], channel_deliver_passive: Channel[tuple[str, dict]], publish: Channel[tuple[str, Any]]):
     self.active = active
     self.passive = passive
     self.channel_deliver_active = channel_deliver_active
@@ -43,4 +43,4 @@ import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const c
     self.processes[name].start()

func start_all(self)

Description: 启动所有子进程

Source code or View on GitHub
python
def start_all(self):
     for name, process in self.processes.items():
         process.start()
-        logger.debug(f'Starting process {name}')
`,62),l=[t];function h(k,p,r,d,g,o){return a(),i("div",null,l)}const y=s(e,[["render",h]]);export{c as __pageData,y as default}; + logger.debug(f'Starting process {name}')
`,62)]))}const E=i(t,[["render",l]]);export{o as __pageData,E as default}; diff --git a/assets/en_dev_api_core_manager.md.H4rqnaCF.lean.js b/assets/en_dev_api_core_manager.md.H4rqnaCF.lean.js new file mode 100644 index 00000000..e01a4c88 --- /dev/null +++ b/assets/en_dev_api_core_manager.md.H4rqnaCF.lean.js @@ -0,0 +1,46 @@ +import{_ as i,c as a,a7 as n,o as e}from"./chunks/framework.jrU0lkHV.js";const o=JSON.parse('{"title":"liteyuki.core.manager","description":"","frontmatter":{"title":"liteyuki.core.manager"},"headers":[],"relativePath":"en/dev/api/core/manager.md","filePath":"en/dev/api/core/manager.md","lastUpdated":1725101868000}'),t={name:"en/dev/api/core/manager.md"};function l(h,s,k,p,r,d){return e(),a("div",null,s[0]||(s[0]=[n(`

Module liteyuki.core.manager

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/27 上午11:12 @Author : snowykami @Email : snowykami@outlook.com @File : manager.py @Software: PyCharm

class ChannelDeliver


func __init__(self, active: Channel[Any], passive: Channel[Any], channel_deliver_active: Channel[Channel[Any]], channel_deliver_passive: Channel[tuple[str, dict]], publish: Channel[tuple[str, Any]])

Source code or View on GitHub
python
def __init__(self, active: Channel[Any], passive: Channel[Any], channel_deliver_active: Channel[Channel[Any]], channel_deliver_passive: Channel[tuple[str, dict]], publish: Channel[tuple[str, Any]]):
+    self.active = active
+    self.passive = passive
+    self.channel_deliver_active = channel_deliver_active
+    self.channel_deliver_passive = channel_deliver_passive
+    self.publish = publish

class ProcessManager


func __init__(self, lifespan: Lifespan)

Source code or View on GitHub
python
def __init__(self, lifespan: 'Lifespan'):
+    self.lifespan = lifespan
+    self.targets: dict[str, tuple[Callable, tuple, dict]] = {}
+    self.processes: dict[str, Process] = {}

func start_all(self)

Description: 对外启动方法,启动所有进程,创建asyncio task

Source code or View on GitHub
python
def start_all(self):
+    for name in self.targets:
+        logger.debug(f'Starting process {name}')
+        threading.Thread(target=self._run_process, args=(name,), daemon=True).start()

func add_target(self, name: str, target: TARGET_FUNC, args: tuple = (), kwargs = None)

Description: 添加进程

Arguments:

  • name: 进程名,用于获取和唯一标识
  • target: 进程函数
  • args: 进程函数参数
  • kwargs: 进程函数关键字参数,通常会默认传入chan_active和chan_passive
Source code or View on GitHub
python
def add_target(self, name: str, target: TARGET_FUNC, args: tuple=(), kwargs=None):
+    if kwargs is None:
+        kwargs = {}
+    chan_active: Channel = Channel(name=f'{name}-active')
+    chan_passive: Channel = Channel(name=f'{name}-passive')
+    channel_deliver = ChannelDeliver(active=chan_active, passive=chan_passive, channel_deliver_active=channel_deliver_active_channel, channel_deliver_passive=channel_deliver_passive_channel, publish=publish_channel)
+    self.targets[name] = (_delivery_channel_wrapper, (target, channel_deliver, shared_memory, *args), kwargs)

func join_all(self)

Source code or View on GitHub
python
def join_all(self):
+    for name, process in self.targets:
+        process.join()

func terminate(self, name: str)

Description: 终止进程并从进程字典中删除

Arguments:

  • name:
Source code or View on GitHub
python
def terminate(self, name: str):
+    if name not in self.processes:
+        logger.warning(f'Process {name} not found.')
+        return
+    process = self.processes[name]
+    process.terminate()
+    process.join(TIMEOUT)
+    if process.is_alive():
+        process.kill()
+    logger.success(f'Process {name} terminated.')

func terminate_all(self)

Source code or View on GitHub
python
def terminate_all(self):
+    for name in self.targets:
+        self.terminate(name)

func is_process_alive(self, name: str) -> bool

Description: 检查进程是否存活

Arguments:

  • name:
Source code or View on GitHub
python
def is_process_alive(self, name: str) -> bool:
+    if name not in self.targets:
+        logger.warning(f'Process {name} not found.')
+    return self.processes[name].is_alive()

class _SubProcessManager


func __init__(self)

Source code or View on GitHub
python
def __init__(self):
+    self.processes: dict[str, SubProcess] = {}

func new_process(self, name: str, *args, **kwargs) -> Callable[[ProcessFuncType], None]

Source code or View on GitHub
python
def new_process(self, name: str, *args, **kwargs) -> Callable[[ProcessFuncType], None]:
+
+    def decorator(func: ProcessFuncType):
+        self.processes[name] = SubProcess(name, func, *args, **kwargs)
+    return decorator

func add(self, name: str, func: ProcessFuncType, *args, **kwargs)

Description: 添加子进程

Arguments:

  • func: 子进程函数
  • name: 子进程名称
  • args: 子进程函数参数
  • kwargs: 子进程函数关键字参数
Source code or View on GitHub
python
def add(self, name: str, func: ProcessFuncType, *args, **kwargs):
+    self.processes[name] = SubProcess(name, func, *args, **kwargs)

func start(self, name: str)

Description: 启动指定子进程

Arguments:

  • name: 子进程名称
Source code or View on GitHub
python
def start(self, name: str):
+    if name not in self.processes:
+        raise KeyError(f'Process {name} not found.')
+    self.processes[name].start()

func start_all(self)

Description: 启动所有子进程

Source code or View on GitHub
python
def start_all(self):
+    for name, process in self.processes.items():
+        process.start()
+        logger.debug(f'Starting process {name}')
`,62)]))}const E=i(t,[["render",l]]);export{o as __pageData,E as default}; diff --git a/assets/en_dev_api_dev_index.md.BaJFdikO.js b/assets/en_dev_api_dev_index.md.BaJFdikO.js new file mode 100644 index 00000000..bdce920e --- /dev/null +++ b/assets/en_dev_api_dev_index.md.BaJFdikO.js @@ -0,0 +1 @@ +import{_ as d,c as l,j as e,a,o as i}from"./chunks/framework.jrU0lkHV.js";const m=JSON.parse('{"title":"liteyuki.dev","description":"","frontmatter":{"title":"liteyuki.dev","collapsed":true},"headers":[],"relativePath":"en/dev/api/dev/index.md","filePath":"en/dev/api/dev/index.md","lastUpdated":null}'),n={name:"en/dev/api/dev/index.md"};function o(r,t,s,u,c,p){return i(),l("div",null,t[0]||(t[0]=[e("h1",{id:"module-liteyuki-dev",tabindex:"-1"},[e("strong",null,"Module"),a(),e("code",null,"liteyuki.dev"),a(),e("a",{class:"header-anchor",href:"#module-liteyuki-dev","aria-label":'Permalink to "**Module** `liteyuki.dev`"'},"​")],-1),e("p",null,"该模块用于存放一些开发工具",-1)]))}const f=d(n,[["render",o]]);export{m as __pageData,f as default}; diff --git a/assets/en_dev_api_dev_index.md.BaJFdikO.lean.js b/assets/en_dev_api_dev_index.md.BaJFdikO.lean.js new file mode 100644 index 00000000..bdce920e --- /dev/null +++ b/assets/en_dev_api_dev_index.md.BaJFdikO.lean.js @@ -0,0 +1 @@ +import{_ as d,c as l,j as e,a,o as i}from"./chunks/framework.jrU0lkHV.js";const m=JSON.parse('{"title":"liteyuki.dev","description":"","frontmatter":{"title":"liteyuki.dev","collapsed":true},"headers":[],"relativePath":"en/dev/api/dev/index.md","filePath":"en/dev/api/dev/index.md","lastUpdated":null}'),n={name:"en/dev/api/dev/index.md"};function o(r,t,s,u,c,p){return i(),l("div",null,t[0]||(t[0]=[e("h1",{id:"module-liteyuki-dev",tabindex:"-1"},[e("strong",null,"Module"),a(),e("code",null,"liteyuki.dev"),a(),e("a",{class:"header-anchor",href:"#module-liteyuki-dev","aria-label":'Permalink to "**Module** `liteyuki.dev`"'},"​")],-1),e("p",null,"该模块用于存放一些开发工具",-1)]))}const f=d(n,[["render",o]]);export{m as __pageData,f as default}; diff --git a/assets/en_dev_api_dev_index.md.UZwSl7RN.js b/assets/en_dev_api_dev_index.md.UZwSl7RN.js deleted file mode 100644 index e342c753..00000000 --- a/assets/en_dev_api_dev_index.md.UZwSl7RN.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as d,c as a,o as i,j as e,a as t}from"./chunks/framework.C4_mTacX.js";const f=JSON.parse('{"title":"liteyuki.dev","description":"","frontmatter":{"title":"liteyuki.dev","collapsed":true},"headers":[],"relativePath":"en/dev/api/dev/index.md","filePath":"en/dev/api/dev/index.md","lastUpdated":null}'),l={name:"en/dev/api/dev/index.md"},n=e("h1",{id:"module-liteyuki-dev",tabindex:"-1"},[e("strong",null,"Module"),t(),e("code",null,"liteyuki.dev"),t(),e("a",{class:"header-anchor",href:"#module-liteyuki-dev","aria-label":'Permalink to "**Module** `liteyuki.dev`"'},"​")],-1),o=e("p",null,"该模块用于存放一些开发工具",-1),s=[n,o];function r(c,u,p,_,v,m){return i(),a("div",null,s)}const k=d(l,[["render",r]]);export{f as __pageData,k as default}; diff --git a/assets/en_dev_api_dev_index.md.UZwSl7RN.lean.js b/assets/en_dev_api_dev_index.md.UZwSl7RN.lean.js deleted file mode 100644 index e342c753..00000000 --- a/assets/en_dev_api_dev_index.md.UZwSl7RN.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as d,c as a,o as i,j as e,a as t}from"./chunks/framework.C4_mTacX.js";const f=JSON.parse('{"title":"liteyuki.dev","description":"","frontmatter":{"title":"liteyuki.dev","collapsed":true},"headers":[],"relativePath":"en/dev/api/dev/index.md","filePath":"en/dev/api/dev/index.md","lastUpdated":null}'),l={name:"en/dev/api/dev/index.md"},n=e("h1",{id:"module-liteyuki-dev",tabindex:"-1"},[e("strong",null,"Module"),t(),e("code",null,"liteyuki.dev"),t(),e("a",{class:"header-anchor",href:"#module-liteyuki-dev","aria-label":'Permalink to "**Module** `liteyuki.dev`"'},"​")],-1),o=e("p",null,"该模块用于存放一些开发工具",-1),s=[n,o];function r(c,u,p,_,v,m){return i(),a("div",null,s)}const k=d(l,[["render",r]]);export{f as __pageData,k as default}; diff --git a/assets/en_dev_api_dev_observer.md.DAh-d3XU.js b/assets/en_dev_api_dev_observer.md.BWo0192F.js similarity index 86% rename from assets/en_dev_api_dev_observer.md.DAh-d3XU.js rename to assets/en_dev_api_dev_observer.md.BWo0192F.js index 91c6934d..4e9aabed 100644 --- a/assets/en_dev_api_dev_observer.md.DAh-d3XU.js +++ b/assets/en_dev_api_dev_observer.md.BWo0192F.js @@ -1,4 +1,4 @@ -import{_ as s,c as i,o as e,a9 as a}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"liteyuki.dev.observer","description":"","frontmatter":{"title":"liteyuki.dev.observer"},"headers":[],"relativePath":"en/dev/api/dev/observer.md","filePath":"en/dev/api/dev/observer.md","lastUpdated":1725101868000}'),n={name:"en/dev/api/dev/observer.md"},t=a(`

Module liteyuki.dev.observer

此模块用于注册观察者函数,使用watchdog监控文件变化并重启bot 启用该模块需要在配置文件中设置dev_mode为True

var CALLBACK_FUNC

  • Description: 位置1为FileSystemEvent

  • Type: TypeAlias

  • Default: Callable[[FileSystemEvent], None]

var FILTER_FUNC

  • Description: 位置1为FileSystemEvent

  • Type: TypeAlias

  • Default: Callable[[FileSystemEvent], bool]


func debounce(wait)

Description: 防抖函数

Source code or View on GitHub
python
def debounce(wait):
+import{_ as i,c as e,a7 as a,o as n}from"./chunks/framework.jrU0lkHV.js";const c=JSON.parse('{"title":"liteyuki.dev.observer","description":"","frontmatter":{"title":"liteyuki.dev.observer"},"headers":[],"relativePath":"en/dev/api/dev/observer.md","filePath":"en/dev/api/dev/observer.md","lastUpdated":1725101868000}'),t={name:"en/dev/api/dev/observer.md"};function l(h,s,p,r,k,d){return n(),e("div",null,s[0]||(s[0]=[a(`

Module liteyuki.dev.observer

此模块用于注册观察者函数,使用watchdog监控文件变化并重启bot 启用该模块需要在配置文件中设置dev_mode为True

var CALLBACK_FUNC

  • Description: 位置1为FileSystemEvent

  • Type: TypeAlias

  • Default: Callable[[FileSystemEvent], None]

var FILTER_FUNC

  • Description: 位置1为FileSystemEvent

  • Type: TypeAlias

  • Default: Callable[[FileSystemEvent], bool]


func debounce(wait)

Description: 防抖函数

Source code or View on GitHub
python
def debounce(wait):
 
     def decorator(func):
 
@@ -29,4 +29,4 @@ import{_ as s,c as i,o as e,a9 as a}from"./chunks/framework.C4_mTacX.js";const g
         for directory in directories:
             observer.schedule(code_modified_handler, directory, recursive=recursive)
         return func
-    return decorator
`,34),l=[t];function h(p,r,k,d,o,c){return e(),i("div",null,l)}const y=s(n,[["render",h]]);export{g as __pageData,y as default}; + return decorator
`,34)]))}const E=i(t,[["render",l]]);export{c as __pageData,E as default}; diff --git a/assets/en_dev_api_dev_observer.md.BWo0192F.lean.js b/assets/en_dev_api_dev_observer.md.BWo0192F.lean.js new file mode 100644 index 00000000..4e9aabed --- /dev/null +++ b/assets/en_dev_api_dev_observer.md.BWo0192F.lean.js @@ -0,0 +1,32 @@ +import{_ as i,c as e,a7 as a,o as n}from"./chunks/framework.jrU0lkHV.js";const c=JSON.parse('{"title":"liteyuki.dev.observer","description":"","frontmatter":{"title":"liteyuki.dev.observer"},"headers":[],"relativePath":"en/dev/api/dev/observer.md","filePath":"en/dev/api/dev/observer.md","lastUpdated":1725101868000}'),t={name:"en/dev/api/dev/observer.md"};function l(h,s,p,r,k,d){return n(),e("div",null,s[0]||(s[0]=[a(`

Module liteyuki.dev.observer

此模块用于注册观察者函数,使用watchdog监控文件变化并重启bot 启用该模块需要在配置文件中设置dev_mode为True

var CALLBACK_FUNC

  • Description: 位置1为FileSystemEvent

  • Type: TypeAlias

  • Default: Callable[[FileSystemEvent], None]

var FILTER_FUNC

  • Description: 位置1为FileSystemEvent

  • Type: TypeAlias

  • Default: Callable[[FileSystemEvent], bool]


func debounce(wait)

Description: 防抖函数

Source code or View on GitHub
python
def debounce(wait):
+
+    def decorator(func):
+
+        def wrapper(*args, **kwargs):
+            nonlocal last_call_time
+            current_time = time.time()
+            if current_time - last_call_time > wait:
+                last_call_time = current_time
+                return func(*args, **kwargs)
+        last_call_time = None
+        return wrapper
+    return decorator

class CodeModifiedHandler(FileSystemEventHandler)


@debounce(1)

func on_modified(self, event)

Source code or View on GitHub
python
@debounce(1)
+def on_modified(self, event):
+    raise NotImplementedError('on_modified must be implemented')

func on_created(self, event)

Source code or View on GitHub
python
def on_created(self, event):
+    self.on_modified(event)

func on_deleted(self, event)

Source code or View on GitHub
python
def on_deleted(self, event):
+    self.on_modified(event)

func on_moved(self, event)

Source code or View on GitHub
python
def on_moved(self, event):
+    self.on_modified(event)

func on_any_event(self, event)

Source code or View on GitHub
python
def on_any_event(self, event):
+    self.on_modified(event)

func on_file_system_event(directories: tuple[str], recursive: bool = True, event_filter: FILTER_FUNC = None) -> Callable[[CALLBACK_FUNC], CALLBACK_FUNC]

Description: 注册文件系统变化监听器

Arguments:

  • directories: 监听目录们
  • recursive: 是否递归监听子目录
  • event_filter: 事件过滤器, 返回True则执行回调函数

Return: 装饰器,装饰一个函数在接收到数据后执行

Source code or View on GitHub
python
def on_file_system_event(directories: tuple[str], recursive: bool=True, event_filter: FILTER_FUNC=None) -> Callable[[CALLBACK_FUNC], CALLBACK_FUNC]:
+
+    def decorator(func: CALLBACK_FUNC) -> CALLBACK_FUNC:
+
+        def wrapper(event: FileSystemEvent):
+            if event_filter is not None and (not event_filter(event)):
+                return
+            func(event)
+        code_modified_handler = CodeModifiedHandler()
+        code_modified_handler.on_modified = wrapper
+        for directory in directories:
+            observer.schedule(code_modified_handler, directory, recursive=recursive)
+        return func
+    return decorator
`,34)]))}const E=i(t,[["render",l]]);export{c as __pageData,E as default}; diff --git a/assets/en_dev_api_dev_observer.md.DAh-d3XU.lean.js b/assets/en_dev_api_dev_observer.md.DAh-d3XU.lean.js deleted file mode 100644 index 9c14cb6c..00000000 --- a/assets/en_dev_api_dev_observer.md.DAh-d3XU.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as s,c as i,o as e,a9 as a}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"liteyuki.dev.observer","description":"","frontmatter":{"title":"liteyuki.dev.observer"},"headers":[],"relativePath":"en/dev/api/dev/observer.md","filePath":"en/dev/api/dev/observer.md","lastUpdated":1725101868000}'),n={name:"en/dev/api/dev/observer.md"},t=a("",34),l=[t];function h(p,r,k,d,o,c){return e(),i("div",null,l)}const y=s(n,[["render",h]]);export{g as __pageData,y as default}; diff --git a/assets/en_dev_api_dev_plugin.md.ByOqvpeD.js b/assets/en_dev_api_dev_plugin.md.ByOqvpeD.js deleted file mode 100644 index ef8654d0..00000000 --- a/assets/en_dev_api_dev_plugin.md.ByOqvpeD.js +++ /dev/null @@ -1,7 +0,0 @@ -import{_ as i,c as s,o as a,a9 as t}from"./chunks/framework.C4_mTacX.js";const E=JSON.parse('{"title":"liteyuki.dev.plugin","description":"","frontmatter":{"title":"liteyuki.dev.plugin"},"headers":[],"relativePath":"en/dev/api/dev/plugin.md","filePath":"en/dev/api/dev/plugin.md","lastUpdated":1725101868000}'),e={name:"en/dev/api/dev/plugin.md"},n=t(`

Module liteyuki.dev.plugin

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/18 上午5:04 @Author : snowykami @Email : snowykami@outlook.com @File : plugin.py @Software: PyCharm


func run_plugins(*module_path: str | Path)

Description: 运行插件,无需手动初始化bot

Arguments:

  • module_path: 插件路径,参考liteyuki.load_plugin的函数签名
Source code or View on GitHub
python
def run_plugins(*module_path: str | Path):
-    cfg = load_config_in_default()
-    plugins = cfg.get('liteyuki.plugins', [])
-    plugins.extend(module_path)
-    cfg['liteyuki.plugins'] = plugins
-    bot = LiteyukiBot(**cfg)
-    bot.run()
`,9),l=[n];function p(h,k,o,r,d,u){return a(),s("div",null,l)}const c=i(e,[["render",p]]);export{E as __pageData,c as default}; diff --git a/assets/en_dev_api_dev_plugin.md.ByOqvpeD.lean.js b/assets/en_dev_api_dev_plugin.md.ByOqvpeD.lean.js deleted file mode 100644 index 43feb206..00000000 --- a/assets/en_dev_api_dev_plugin.md.ByOqvpeD.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as i,c as s,o as a,a9 as t}from"./chunks/framework.C4_mTacX.js";const E=JSON.parse('{"title":"liteyuki.dev.plugin","description":"","frontmatter":{"title":"liteyuki.dev.plugin"},"headers":[],"relativePath":"en/dev/api/dev/plugin.md","filePath":"en/dev/api/dev/plugin.md","lastUpdated":1725101868000}'),e={name:"en/dev/api/dev/plugin.md"},n=t("",9),l=[n];function p(h,k,o,r,d,u){return a(),s("div",null,l)}const c=i(e,[["render",p]]);export{E as __pageData,c as default}; diff --git a/assets/en_dev_api_dev_plugin.md.DAA5UIMl.js b/assets/en_dev_api_dev_plugin.md.DAA5UIMl.js new file mode 100644 index 00000000..e1c964c9 --- /dev/null +++ b/assets/en_dev_api_dev_plugin.md.DAA5UIMl.js @@ -0,0 +1,7 @@ +import{_ as s,c as a,a7 as t,o as n}from"./chunks/framework.jrU0lkHV.js";const u=JSON.parse('{"title":"liteyuki.dev.plugin","description":"","frontmatter":{"title":"liteyuki.dev.plugin"},"headers":[],"relativePath":"en/dev/api/dev/plugin.md","filePath":"en/dev/api/dev/plugin.md","lastUpdated":1725101868000}'),e={name:"en/dev/api/dev/plugin.md"};function l(p,i,h,k,r,d){return n(),a("div",null,i[0]||(i[0]=[t(`

Module liteyuki.dev.plugin

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/18 上午5:04 @Author : snowykami @Email : snowykami@outlook.com @File : plugin.py @Software: PyCharm


func run_plugins(*module_path: str | Path)

Description: 运行插件,无需手动初始化bot

Arguments:

  • module_path: 插件路径,参考liteyuki.load_plugin的函数签名
Source code or View on GitHub
python
def run_plugins(*module_path: str | Path):
+    cfg = load_config_in_default()
+    plugins = cfg.get('liteyuki.plugins', [])
+    plugins.extend(module_path)
+    cfg['liteyuki.plugins'] = plugins
+    bot = LiteyukiBot(**cfg)
+    bot.run()
`,9)]))}const g=s(e,[["render",l]]);export{u as __pageData,g as default}; diff --git a/assets/en_dev_api_dev_plugin.md.DAA5UIMl.lean.js b/assets/en_dev_api_dev_plugin.md.DAA5UIMl.lean.js new file mode 100644 index 00000000..e1c964c9 --- /dev/null +++ b/assets/en_dev_api_dev_plugin.md.DAA5UIMl.lean.js @@ -0,0 +1,7 @@ +import{_ as s,c as a,a7 as t,o as n}from"./chunks/framework.jrU0lkHV.js";const u=JSON.parse('{"title":"liteyuki.dev.plugin","description":"","frontmatter":{"title":"liteyuki.dev.plugin"},"headers":[],"relativePath":"en/dev/api/dev/plugin.md","filePath":"en/dev/api/dev/plugin.md","lastUpdated":1725101868000}'),e={name:"en/dev/api/dev/plugin.md"};function l(p,i,h,k,r,d){return n(),a("div",null,i[0]||(i[0]=[t(`

Module liteyuki.dev.plugin

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/18 上午5:04 @Author : snowykami @Email : snowykami@outlook.com @File : plugin.py @Software: PyCharm


func run_plugins(*module_path: str | Path)

Description: 运行插件,无需手动初始化bot

Arguments:

  • module_path: 插件路径,参考liteyuki.load_plugin的函数签名
Source code or View on GitHub
python
def run_plugins(*module_path: str | Path):
+    cfg = load_config_in_default()
+    plugins = cfg.get('liteyuki.plugins', [])
+    plugins.extend(module_path)
+    cfg['liteyuki.plugins'] = plugins
+    bot = LiteyukiBot(**cfg)
+    bot.run()
`,9)]))}const g=s(e,[["render",l]]);export{u as __pageData,g as default}; diff --git a/assets/en_dev_api_exception.md.C2tcvSVJ.js b/assets/en_dev_api_exception.md.C2tcvSVJ.js new file mode 100644 index 00000000..b891c48e --- /dev/null +++ b/assets/en_dev_api_exception.md.C2tcvSVJ.js @@ -0,0 +1 @@ +import{_ as t,c as i,a7 as o,o as a}from"./chunks/framework.jrU0lkHV.js";const x=JSON.parse('{"title":"liteyuki.exception","description":"","frontmatter":{"title":"liteyuki.exception"},"headers":[],"relativePath":"en/dev/api/exception.md","filePath":"en/dev/api/exception.md","lastUpdated":1725101868000}'),n={name:"en/dev/api/exception.md"};function c(s,e,l,p,r,d){return a(),i("div",null,e[0]||(e[0]=[o('

Module liteyuki.exception

exception模块包含了liteyuki运行中的所有错误

class LiteyukiException(BaseException)

',3)]))}const k=t(n,[["render",c]]);export{x as __pageData,k as default}; diff --git a/assets/en_dev_api_exception.md.C2tcvSVJ.lean.js b/assets/en_dev_api_exception.md.C2tcvSVJ.lean.js new file mode 100644 index 00000000..b891c48e --- /dev/null +++ b/assets/en_dev_api_exception.md.C2tcvSVJ.lean.js @@ -0,0 +1 @@ +import{_ as t,c as i,a7 as o,o as a}from"./chunks/framework.jrU0lkHV.js";const x=JSON.parse('{"title":"liteyuki.exception","description":"","frontmatter":{"title":"liteyuki.exception"},"headers":[],"relativePath":"en/dev/api/exception.md","filePath":"en/dev/api/exception.md","lastUpdated":1725101868000}'),n={name:"en/dev/api/exception.md"};function c(s,e,l,p,r,d){return a(),i("div",null,e[0]||(e[0]=[o('

Module liteyuki.exception

exception模块包含了liteyuki运行中的所有错误

class LiteyukiException(BaseException)

',3)]))}const k=t(n,[["render",c]]);export{x as __pageData,k as default}; diff --git a/assets/en_dev_api_exception.md.HPP9FBE6.js b/assets/en_dev_api_exception.md.HPP9FBE6.js deleted file mode 100644 index 84e424d4..00000000 --- a/assets/en_dev_api_exception.md.HPP9FBE6.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as e,c as t,o as i,a9 as o}from"./chunks/framework.C4_mTacX.js";const h=JSON.parse('{"title":"liteyuki.exception","description":"","frontmatter":{"title":"liteyuki.exception"},"headers":[],"relativePath":"en/dev/api/exception.md","filePath":"en/dev/api/exception.md","lastUpdated":1725101868000}'),a={name:"en/dev/api/exception.md"},c=o('

Module liteyuki.exception

exception模块包含了liteyuki运行中的所有错误

class LiteyukiException(BaseException)

',3),n=[c];function s(l,p,r,d,_,u){return i(),t("div",null,n)}const k=e(a,[["render",s]]);export{h as __pageData,k as default}; diff --git a/assets/en_dev_api_exception.md.HPP9FBE6.lean.js b/assets/en_dev_api_exception.md.HPP9FBE6.lean.js deleted file mode 100644 index 242a9be7..00000000 --- a/assets/en_dev_api_exception.md.HPP9FBE6.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as e,c as t,o as i,a9 as o}from"./chunks/framework.C4_mTacX.js";const h=JSON.parse('{"title":"liteyuki.exception","description":"","frontmatter":{"title":"liteyuki.exception"},"headers":[],"relativePath":"en/dev/api/exception.md","filePath":"en/dev/api/exception.md","lastUpdated":1725101868000}'),a={name:"en/dev/api/exception.md"},c=o("",3),n=[c];function s(l,p,r,d,_,u){return i(),t("div",null,n)}const k=e(a,[["render",s]]);export{h as __pageData,k as default}; diff --git a/assets/en_dev_api_index.md.Bem5oMXv.js b/assets/en_dev_api_index.md.Bem5oMXv.js deleted file mode 100644 index 0061ec78..00000000 --- a/assets/en_dev_api_index.md.Bem5oMXv.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as e,c as t,o as a,a9 as i}from"./chunks/framework.C4_mTacX.js";const m=JSON.parse('{"title":"liteyuki API","description":"","frontmatter":{"title":"liteyuki API","collapsed":true,"order":100},"headers":[],"relativePath":"en/dev/api/index.md","filePath":"en/dev/api/index.md","lastUpdated":null}'),o={name:"en/dev/api/index.md"},r=i('

Module liteyuki

此模块为liteyuki的框架整体

This module is the overall framework of liteyuki.

var __version__

  • Description: 测试版本号

  • Default: '6.3.10'

',5),l=[r];function n(d,s,_,c,u,p){return a(),t("div",null,l)}const v=e(o,[["render",n]]);export{m as __pageData,v as default}; diff --git a/assets/en_dev_api_index.md.Bem5oMXv.lean.js b/assets/en_dev_api_index.md.Bem5oMXv.lean.js deleted file mode 100644 index deff6dcd..00000000 --- a/assets/en_dev_api_index.md.Bem5oMXv.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as e,c as t,o as a,a9 as i}from"./chunks/framework.C4_mTacX.js";const m=JSON.parse('{"title":"liteyuki API","description":"","frontmatter":{"title":"liteyuki API","collapsed":true,"order":100},"headers":[],"relativePath":"en/dev/api/index.md","filePath":"en/dev/api/index.md","lastUpdated":null}'),o={name:"en/dev/api/index.md"},r=i("",5),l=[r];function n(d,s,_,c,u,p){return a(),t("div",null,l)}const v=e(o,[["render",n]]);export{m as __pageData,v as default}; diff --git a/assets/en_dev_api_index.md.D8u3gQrU.js b/assets/en_dev_api_index.md.D8u3gQrU.js new file mode 100644 index 00000000..603368c1 --- /dev/null +++ b/assets/en_dev_api_index.md.D8u3gQrU.js @@ -0,0 +1 @@ +import{_ as t,c as a,a7 as i,o}from"./chunks/framework.jrU0lkHV.js";const _=JSON.parse('{"title":"liteyuki API","description":"","frontmatter":{"title":"liteyuki API","collapsed":true,"order":100},"headers":[],"relativePath":"en/dev/api/index.md","filePath":"en/dev/api/index.md","lastUpdated":null}'),r={name:"en/dev/api/index.md"};function l(n,e,d,s,u,c){return o(),a("div",null,e[0]||(e[0]=[i('

Module liteyuki

此模块为liteyuki的框架整体

This module is the overall framework of liteyuki.

var __version__

  • Description: 测试版本号

  • Default: '6.3.10'

',5)]))}const m=t(r,[["render",l]]);export{_ as __pageData,m as default}; diff --git a/assets/en_dev_api_index.md.D8u3gQrU.lean.js b/assets/en_dev_api_index.md.D8u3gQrU.lean.js new file mode 100644 index 00000000..603368c1 --- /dev/null +++ b/assets/en_dev_api_index.md.D8u3gQrU.lean.js @@ -0,0 +1 @@ +import{_ as t,c as a,a7 as i,o}from"./chunks/framework.jrU0lkHV.js";const _=JSON.parse('{"title":"liteyuki API","description":"","frontmatter":{"title":"liteyuki API","collapsed":true,"order":100},"headers":[],"relativePath":"en/dev/api/index.md","filePath":"en/dev/api/index.md","lastUpdated":null}'),r={name:"en/dev/api/index.md"};function l(n,e,d,s,u,c){return o(),a("div",null,e[0]||(e[0]=[i('

Module liteyuki

此模块为liteyuki的框架整体

This module is the overall framework of liteyuki.

var __version__

  • Description: 测试版本号

  • Default: '6.3.10'

',5)]))}const m=t(r,[["render",l]]);export{_ as __pageData,m as default}; diff --git a/assets/en_dev_api_log.md.t5U3-0Tg.js b/assets/en_dev_api_log.md.BhI5mphS.js similarity index 85% rename from assets/en_dev_api_log.md.t5U3-0Tg.js rename to assets/en_dev_api_log.md.BhI5mphS.js index c5f059e0..15fb3c94 100644 --- a/assets/en_dev_api_log.md.t5U3-0Tg.js +++ b/assets/en_dev_api_log.md.BhI5mphS.js @@ -1,4 +1,4 @@ -import{_ as s,c as i,o as a,a9 as h}from"./chunks/framework.C4_mTacX.js";const y=JSON.parse('{"title":"liteyuki.log","description":"","frontmatter":{"title":"liteyuki.log"},"headers":[],"relativePath":"en/dev/api/log.md","filePath":"en/dev/api/log.md","lastUpdated":1725101868000}'),t={name:"en/dev/api/log.md"},k=h(`

Module liteyuki.log

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/27 上午9:12 @Author : snowykami @Email : snowykami@outlook.com @File : log.py @Software: PyCharm


func get_format(level: str) -> str

Source code or View on GitHub
python
def get_format(level: str) -> str:
+import{_ as s,c as a,a7 as h,o as t}from"./chunks/framework.jrU0lkHV.js";const d=JSON.parse('{"title":"liteyuki.log","description":"","frontmatter":{"title":"liteyuki.log"},"headers":[],"relativePath":"en/dev/api/log.md","filePath":"en/dev/api/log.md","lastUpdated":1725101868000}'),k={name:"en/dev/api/log.md"};function l(n,i,p,e,E,r){return t(),a("div",null,i[0]||(i[0]=[h(`

Module liteyuki.log

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/27 上午9:12 @Author : snowykami @Email : snowykami@outlook.com @File : log.py @Software: PyCharm


func get_format(level: str) -> str

Source code or View on GitHub
python
def get_format(level: str) -> str:
     if level == 'DEBUG':
         return debug_format
     else:
@@ -10,4 +10,4 @@ import{_ as s,c as i,o as a,a9 as h}from"./chunks/framework.C4_mTacX.js";const y
     logger.level('INFO', color='<normal>', icon=f"{('ℹ️' if show_icon else '')}INFO")
     logger.level('SUCCESS', color='<green>', icon=f"{('✅' if show_icon else '')}SUCCESS")
     logger.level('WARNING', color='<yellow>', icon=f"{('⚠️' if show_icon else '')}WARNING")
-    logger.level('ERROR', color='<red>', icon=f"{('⭕' if show_icon else '')}ERROR")
`,10),l=[k];function n(p,e,E,r,g,d){return a(),i("div",null,l)}const o=s(t,[["render",n]]);export{y as __pageData,o as default}; + logger.level('ERROR', color='<red>', icon=f"{('⭕' if show_icon else '')}ERROR")
`,10)]))}const F=s(k,[["render",l]]);export{d as __pageData,F as default}; diff --git a/assets/en_dev_api_log.md.BhI5mphS.lean.js b/assets/en_dev_api_log.md.BhI5mphS.lean.js new file mode 100644 index 00000000..15fb3c94 --- /dev/null +++ b/assets/en_dev_api_log.md.BhI5mphS.lean.js @@ -0,0 +1,13 @@ +import{_ as s,c as a,a7 as h,o as t}from"./chunks/framework.jrU0lkHV.js";const d=JSON.parse('{"title":"liteyuki.log","description":"","frontmatter":{"title":"liteyuki.log"},"headers":[],"relativePath":"en/dev/api/log.md","filePath":"en/dev/api/log.md","lastUpdated":1725101868000}'),k={name:"en/dev/api/log.md"};function l(n,i,p,e,E,r){return t(),a("div",null,i[0]||(i[0]=[h(`

Module liteyuki.log

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/27 上午9:12 @Author : snowykami @Email : snowykami@outlook.com @File : log.py @Software: PyCharm


func get_format(level: str) -> str

Source code or View on GitHub
python
def get_format(level: str) -> str:
+    if level == 'DEBUG':
+        return debug_format
+    else:
+        return default_format

func init_log(config: dict)

Description: 在语言加载完成后执行

Source code or View on GitHub
python
def init_log(config: dict):
+    logger.remove()
+    logger.add(sys.stdout, level=0, diagnose=False, format=get_format(config.get('log_level', 'INFO')))
+    show_icon = config.get('log_icon', True)
+    logger.level('DEBUG', color='<blue>', icon=f"{('🐛' if show_icon else '')}DEBUG")
+    logger.level('INFO', color='<normal>', icon=f"{('ℹ️' if show_icon else '')}INFO")
+    logger.level('SUCCESS', color='<green>', icon=f"{('✅' if show_icon else '')}SUCCESS")
+    logger.level('WARNING', color='<yellow>', icon=f"{('⚠️' if show_icon else '')}WARNING")
+    logger.level('ERROR', color='<red>', icon=f"{('⭕' if show_icon else '')}ERROR")
`,10)]))}const F=s(k,[["render",l]]);export{d as __pageData,F as default}; diff --git a/assets/en_dev_api_log.md.t5U3-0Tg.lean.js b/assets/en_dev_api_log.md.t5U3-0Tg.lean.js deleted file mode 100644 index 6f6f50c7..00000000 --- a/assets/en_dev_api_log.md.t5U3-0Tg.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as s,c as i,o as a,a9 as h}from"./chunks/framework.C4_mTacX.js";const y=JSON.parse('{"title":"liteyuki.log","description":"","frontmatter":{"title":"liteyuki.log"},"headers":[],"relativePath":"en/dev/api/log.md","filePath":"en/dev/api/log.md","lastUpdated":1725101868000}'),t={name:"en/dev/api/log.md"},k=h("",10),l=[k];function n(p,e,E,r,g,d){return a(),i("div",null,l)}const o=s(t,[["render",n]]);export{y as __pageData,o as default}; diff --git a/assets/en_dev_api_message_event.md.C6I96y2L.lean.js b/assets/en_dev_api_message_event.md.C6I96y2L.lean.js deleted file mode 100644 index 9512256e..00000000 --- a/assets/en_dev_api_message_event.md.C6I96y2L.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as s,c as i,o as a,a9 as e}from"./chunks/framework.C4_mTacX.js";const o=JSON.parse('{"title":"liteyuki.message.event","description":"","frontmatter":{"title":"liteyuki.message.event"},"headers":[],"relativePath":"en/dev/api/message/event.md","filePath":"en/dev/api/message/event.md","lastUpdated":1725101868000}'),t={name:"en/dev/api/message/event.md"},n=e("",14),h=[n];function l(k,p,r,d,E,g){return a(),i("div",null,h)}const c=s(t,[["render",l]]);export{o as __pageData,c as default}; diff --git a/assets/en_dev_api_message_index.md.CTleW7FS.js b/assets/en_dev_api_message_index.md.CTleW7FS.js deleted file mode 100644 index 6f71da0c..00000000 --- a/assets/en_dev_api_message_index.md.CTleW7FS.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as a,c as s,o,j as e,a as t}from"./chunks/framework.C4_mTacX.js";const y=JSON.parse('{"title":"liteyuki.message","description":"","frontmatter":{"title":"liteyuki.message","collapsed":true},"headers":[],"relativePath":"en/dev/api/message/index.md","filePath":"en/dev/api/message/index.md","lastUpdated":null}'),i={name:"en/dev/api/message/index.md"},l=e("h1",{id:"module-liteyuki-message",tabindex:"-1"},[e("strong",null,"Module"),t(),e("code",null,"liteyuki.message"),t(),e("a",{class:"header-anchor",href:"#module-liteyuki-message","aria-label":'Permalink to "**Module** `liteyuki.message`"'},"​")],-1),n=e("p",null,"Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved",-1),r=e("p",null,[t("@Time : 2024/8/19 下午10:44 @Author : snowykami @Email : "),e("a",{href:"mailto:snowykami@outlook.com",target:"_blank",rel:"noreferrer"},"snowykami@outlook.com"),t(" @File : "),e("strong",null,"init"),t(".py.py @Software: PyCharm")],-1),d=[l,n,r];function m(c,u,p,_,h,k){return o(),s("div",null,d)}const f=a(i,[["render",m]]);export{y as __pageData,f as default}; diff --git a/assets/en_dev_api_message_index.md.CTleW7FS.lean.js b/assets/en_dev_api_message_index.md.CTleW7FS.lean.js deleted file mode 100644 index 6f71da0c..00000000 --- a/assets/en_dev_api_message_index.md.CTleW7FS.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as a,c as s,o,j as e,a as t}from"./chunks/framework.C4_mTacX.js";const y=JSON.parse('{"title":"liteyuki.message","description":"","frontmatter":{"title":"liteyuki.message","collapsed":true},"headers":[],"relativePath":"en/dev/api/message/index.md","filePath":"en/dev/api/message/index.md","lastUpdated":null}'),i={name:"en/dev/api/message/index.md"},l=e("h1",{id:"module-liteyuki-message",tabindex:"-1"},[e("strong",null,"Module"),t(),e("code",null,"liteyuki.message"),t(),e("a",{class:"header-anchor",href:"#module-liteyuki-message","aria-label":'Permalink to "**Module** `liteyuki.message`"'},"​")],-1),n=e("p",null,"Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved",-1),r=e("p",null,[t("@Time : 2024/8/19 下午10:44 @Author : snowykami @Email : "),e("a",{href:"mailto:snowykami@outlook.com",target:"_blank",rel:"noreferrer"},"snowykami@outlook.com"),t(" @File : "),e("strong",null,"init"),t(".py.py @Software: PyCharm")],-1),d=[l,n,r];function m(c,u,p,_,h,k){return o(),s("div",null,d)}const f=a(i,[["render",m]]);export{y as __pageData,f as default}; diff --git a/assets/en_dev_api_message_matcher.md.CtCEbUVJ.lean.js b/assets/en_dev_api_message_matcher.md.CtCEbUVJ.lean.js deleted file mode 100644 index 1d26ea83..00000000 --- a/assets/en_dev_api_message_matcher.md.CtCEbUVJ.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as s,c as i,o as a,a9 as e}from"./chunks/framework.C4_mTacX.js";const u=JSON.parse('{"title":"liteyuki.message.matcher","description":"","frontmatter":{"title":"liteyuki.message.matcher"},"headers":[],"relativePath":"en/dev/api/message/matcher.md","filePath":"en/dev/api/message/matcher.md","lastUpdated":1725101868000}'),n={name:"en/dev/api/message/matcher.md"},t=e("",21),l=[t];function h(r,p,k,o,d,c){return a(),i("div",null,l)}const y=s(n,[["render",h]]);export{u as __pageData,y as default}; diff --git a/assets/en_dev_api_message_on.md.DOPTBR4O.lean.js b/assets/en_dev_api_message_on.md.DOPTBR4O.lean.js deleted file mode 100644 index f23b5cba..00000000 --- a/assets/en_dev_api_message_on.md.DOPTBR4O.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as s,c as i,o as a,a9 as e}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"liteyuki.message.on","description":"","frontmatter":{"title":"liteyuki.message.on"},"headers":[],"relativePath":"en/dev/api/message/on.md","filePath":"en/dev/api/message/on.md","lastUpdated":1725101868000}'),t={name:"en/dev/api/message/on.md"},n=e("",12),l=[n];function h(r,k,p,o,d,y){return a(),i("div",null,l)}const u=s(t,[["render",h]]);export{g as __pageData,u as default}; diff --git a/assets/en_dev_api_message_rule.md.BBaFECzV.js b/assets/en_dev_api_message_rule.md.BBaFECzV.js deleted file mode 100644 index af311335..00000000 --- a/assets/en_dev_api_message_rule.md.BBaFECzV.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as s,c as i,o as e,a9 as a}from"./chunks/framework.C4_mTacX.js";const c=JSON.parse('{"title":"liteyuki.message.rule","description":"","frontmatter":{"title":"liteyuki.message.rule"},"headers":[],"relativePath":"en/dev/api/message/rule.md","filePath":"en/dev/api/message/rule.md","lastUpdated":1725101868000}'),t={name:"en/dev/api/message/rule.md"},n=a('

Module liteyuki.message.rule

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 下午10:55 @Author : snowykami @Email : snowykami@outlook.com @File : rule.py @Software: PyCharm

var RuleHandlerFunc

  • Description: 规则函数签名

  • Type: TypeAlias

  • Default: Callable[[MessageEvent], Coroutine[None, None, bool]]

class Rule


func __init__(self, handler: RuleHandlerFunc)

Source code or View on GitHub
python
def __init__(self, handler: RuleHandlerFunc):\n    self.handler = handler

func self | other: Rule => Rule

Source code or View on GitHub
python
def __or__(self, other: 'Rule') -> 'Rule':\n\n    async def combined_handler(event: MessageEvent) -> bool:\n        return await self.handler(event) or await other.handler(event)\n    return Rule(combined_handler)

func self & other: Rule => Rule

Source code or View on GitHub
python
def __and__(self, other: 'Rule') -> 'Rule':\n\n    async def combined_handler(event: MessageEvent) -> bool:\n        return await self.handler(event) and await other.handler(event)\n    return Rule(combined_handler)

async func self () event: MessageEvent => bool

Source code or View on GitHub
python
async def __call__(self, event: MessageEvent) -> bool:\n    if self.handler is None:\n        return True\n    return await self.handler(event)

@Rule

async func empty_rule(event: MessageEvent) -> bool

Source code or View on GitHub
python
@Rule\nasync def empty_rule(event: MessageEvent) -> bool:\n    return True

@Rule

async func is_su_rule(event: MessageEvent) -> bool

Source code or View on GitHub
python
@Rule\nasync def is_su_rule(event: MessageEvent) -> bool:\n    return str(event.user_id) in _superusers
',26),l=[n];function h(r,p,k,o,d,u){return e(),i("div",null,l)}const y=s(t,[["render",h]]);export{c as __pageData,y as default}; diff --git a/assets/en_dev_api_message_rule.md.BBaFECzV.lean.js b/assets/en_dev_api_message_rule.md.BBaFECzV.lean.js deleted file mode 100644 index 366673d8..00000000 --- a/assets/en_dev_api_message_rule.md.BBaFECzV.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as s,c as i,o as e,a9 as a}from"./chunks/framework.C4_mTacX.js";const c=JSON.parse('{"title":"liteyuki.message.rule","description":"","frontmatter":{"title":"liteyuki.message.rule"},"headers":[],"relativePath":"en/dev/api/message/rule.md","filePath":"en/dev/api/message/rule.md","lastUpdated":1725101868000}'),t={name:"en/dev/api/message/rule.md"},n=a("",26),l=[n];function h(r,p,k,o,d,u){return e(),i("div",null,l)}const y=s(t,[["render",h]]);export{c as __pageData,y as default}; diff --git a/assets/en_dev_api_message_session.md.BJvZrFxU.js b/assets/en_dev_api_message_session.md.BJvZrFxU.js deleted file mode 100644 index cf6ad762..00000000 --- a/assets/en_dev_api_message_session.md.BJvZrFxU.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as o,c as t,o as a,j as e,a as s}from"./chunks/framework.C4_mTacX.js";const y=JSON.parse('{"title":"liteyuki.message.session","description":"","frontmatter":{"title":"liteyuki.message.session"},"headers":[],"relativePath":"en/dev/api/message/session.md","filePath":"en/dev/api/message/session.md","lastUpdated":1725101868000}'),i={name:"en/dev/api/message/session.md"},n=e("h1",{id:"module-liteyuki-message-session",tabindex:"-1"},[e("strong",null,"Module"),s(),e("code",null,"liteyuki.message.session"),s(),e("a",{class:"header-anchor",href:"#module-liteyuki-message-session","aria-label":'Permalink to "**Module** `liteyuki.message.session`"'},"​")],-1),l=e("p",null,"Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved",-1),r=e("p",null,[s("@Time : 2024/8/19 下午10:47 @Author : snowykami @Email : "),e("a",{href:"mailto:snowykami@outlook.com",target:"_blank",rel:"noreferrer"},"snowykami@outlook.com"),s(" @File : session.py @Software: PyCharm")],-1),d=[n,l,r];function m(c,u,_,p,h,k){return a(),t("div",null,d)}const f=o(i,[["render",m]]);export{y as __pageData,f as default}; diff --git a/assets/en_dev_api_message_session.md.BJvZrFxU.lean.js b/assets/en_dev_api_message_session.md.BJvZrFxU.lean.js deleted file mode 100644 index cf6ad762..00000000 --- a/assets/en_dev_api_message_session.md.BJvZrFxU.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as o,c as t,o as a,j as e,a as s}from"./chunks/framework.C4_mTacX.js";const y=JSON.parse('{"title":"liteyuki.message.session","description":"","frontmatter":{"title":"liteyuki.message.session"},"headers":[],"relativePath":"en/dev/api/message/session.md","filePath":"en/dev/api/message/session.md","lastUpdated":1725101868000}'),i={name:"en/dev/api/message/session.md"},n=e("h1",{id:"module-liteyuki-message-session",tabindex:"-1"},[e("strong",null,"Module"),s(),e("code",null,"liteyuki.message.session"),s(),e("a",{class:"header-anchor",href:"#module-liteyuki-message-session","aria-label":'Permalink to "**Module** `liteyuki.message.session`"'},"​")],-1),l=e("p",null,"Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved",-1),r=e("p",null,[s("@Time : 2024/8/19 下午10:47 @Author : snowykami @Email : "),e("a",{href:"mailto:snowykami@outlook.com",target:"_blank",rel:"noreferrer"},"snowykami@outlook.com"),s(" @File : session.py @Software: PyCharm")],-1),d=[n,l,r];function m(c,u,_,p,h,k){return a(),t("div",null,d)}const f=o(i,[["render",m]]);export{y as __pageData,f as default}; diff --git a/assets/en_dev_api_mkdoc.md.B0odpxJC.lean.js b/assets/en_dev_api_mkdoc.md.B0odpxJC.lean.js deleted file mode 100644 index aea3477b..00000000 --- a/assets/en_dev_api_mkdoc.md.B0odpxJC.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as s,c as i,o as a,a9 as t}from"./chunks/framework.C4_mTacX.js";const y=JSON.parse('{"title":"liteyuki.mkdoc","description":"","frontmatter":{"title":"liteyuki.mkdoc"},"headers":[],"relativePath":"en/dev/api/mkdoc.md","filePath":"en/dev/api/mkdoc.md","lastUpdated":1725101868000}'),n={name:"en/dev/api/mkdoc.md"},h=t("",71),k=[h];function l(p,e,r,E,d,g){return a(),i("div",null,k)}const o=s(n,[["render",l]]);export{y as __pageData,o as default}; diff --git a/assets/en_dev_api_mkdoc.md.B0odpxJC.js b/assets/en_dev_api_mkdoc.md.CSPkfV_w.js similarity index 88% rename from assets/en_dev_api_mkdoc.md.B0odpxJC.js rename to assets/en_dev_api_mkdoc.md.CSPkfV_w.js index ce26e5a7..cf80d531 100644 --- a/assets/en_dev_api_mkdoc.md.B0odpxJC.js +++ b/assets/en_dev_api_mkdoc.md.CSPkfV_w.js @@ -1,4 +1,4 @@ -import{_ as s,c as i,o as a,a9 as t}from"./chunks/framework.C4_mTacX.js";const y=JSON.parse('{"title":"liteyuki.mkdoc","description":"","frontmatter":{"title":"liteyuki.mkdoc"},"headers":[],"relativePath":"en/dev/api/mkdoc.md","filePath":"en/dev/api/mkdoc.md","lastUpdated":1725101868000}'),n={name:"en/dev/api/mkdoc.md"},h=t(`

Module liteyuki.mkdoc

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 上午6:23 @Author : snowykami @Email : snowykami@outlook.com @File : mkdoc.py @Software: PyCharm

class DefType(Enum)

attr FUNCTION = 'function'

attr METHOD = 'method'

attr STATIC_METHOD = 'staticmethod'

attr CLASS_METHOD = 'classmethod'

attr PROPERTY = 'property'

class FunctionInfo(BaseModel)

attr name: str = NO_DEFAULT

attr args: list[tuple[str, str]] = NO_DEFAULT

attr return_type: str = NO_DEFAULT

attr docstring: str = NO_DEFAULT

attr source_code: str = ''

attr type: DefType = NO_DEFAULT

attr is_async: bool = NO_DEFAULT

class AttributeInfo(BaseModel)

attr name: str = NO_DEFAULT

attr type: str = NO_DEFAULT

attr value: Any = None

attr docstring: str = ''

class ClassInfo(BaseModel)

attr name: str = NO_DEFAULT

attr docstring: str = NO_DEFAULT

attr methods: list[FunctionInfo] = NO_DEFAULT

attr attributes: list[AttributeInfo] = NO_DEFAULT

attr inherit: list[str] = NO_DEFAULT

class ModuleInfo(BaseModel)

attr module_path: str = NO_DEFAULT

attr functions: list[FunctionInfo] = NO_DEFAULT

attr classes: list[ClassInfo] = NO_DEFAULT

attr attributes: list[AttributeInfo] = NO_DEFAULT

attr docstring: str = NO_DEFAULT


func get_relative_path(base_path: str, target_path: str) -> str

Description: 获取相对路径

Arguments:

  • base_path: 基础路径
  • target_path: 目标路径
Source code or View on GitHub
python
def get_relative_path(base_path: str, target_path: str) -> str:
+import{_ as i,c as a,a7 as t,o as n}from"./chunks/framework.jrU0lkHV.js";const g=JSON.parse('{"title":"liteyuki.mkdoc","description":"","frontmatter":{"title":"liteyuki.mkdoc"},"headers":[],"relativePath":"en/dev/api/mkdoc.md","filePath":"en/dev/api/mkdoc.md","lastUpdated":1725101868000}'),h={name:"en/dev/api/mkdoc.md"};function k(l,s,p,e,r,E){return n(),a("div",null,s[0]||(s[0]=[t(`

Module liteyuki.mkdoc

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 上午6:23 @Author : snowykami @Email : snowykami@outlook.com @File : mkdoc.py @Software: PyCharm

class DefType(Enum)

attr FUNCTION = 'function'

attr METHOD = 'method'

attr STATIC_METHOD = 'staticmethod'

attr CLASS_METHOD = 'classmethod'

attr PROPERTY = 'property'

class FunctionInfo(BaseModel)

attr name: str = NO_DEFAULT

attr args: list[tuple[str, str]] = NO_DEFAULT

attr return_type: str = NO_DEFAULT

attr docstring: str = NO_DEFAULT

attr source_code: str = ''

attr type: DefType = NO_DEFAULT

attr is_async: bool = NO_DEFAULT

class AttributeInfo(BaseModel)

attr name: str = NO_DEFAULT

attr type: str = NO_DEFAULT

attr value: Any = None

attr docstring: str = ''

class ClassInfo(BaseModel)

attr name: str = NO_DEFAULT

attr docstring: str = NO_DEFAULT

attr methods: list[FunctionInfo] = NO_DEFAULT

attr attributes: list[AttributeInfo] = NO_DEFAULT

attr inherit: list[str] = NO_DEFAULT

class ModuleInfo(BaseModel)

attr module_path: str = NO_DEFAULT

attr functions: list[FunctionInfo] = NO_DEFAULT

attr classes: list[ClassInfo] = NO_DEFAULT

attr attributes: list[AttributeInfo] = NO_DEFAULT

attr docstring: str = NO_DEFAULT


func get_relative_path(base_path: str, target_path: str) -> str

Description: 获取相对路径

Arguments:

  • base_path: 基础路径
  • target_path: 目标路径
Source code or View on GitHub
python
def get_relative_path(base_path: str, target_path: str) -> str:
     return os.path.relpath(target_path, base_path)

func write_to_files(file_data: dict[str, str])

Description: 输出文件

Arguments:

  • file_data: 文件数据 相对路径
Source code or View on GitHub
python
def write_to_files(file_data: dict[str, str]):
     for rp, data in file_data.items():
         if not os.path.exists(os.path.dirname(rp)):
@@ -120,4 +120,4 @@ import{_ as s,c as i,o as a,a9 as t}from"./chunks/framework.C4_mTacX.js";const y
         md_content = generate_markdown(module_info, front_matter)
         print(f'Generate {pyfile_path} -> {abs_md_path}')
         file_data[abs_md_path] = md_content
-    write_to_files(file_data)

var no_module_name_pyfile_path

  • Description: 去头路径

  • Default: get_relative_path(module_folder, pyfile_path)

`,71),k=[h];function l(p,e,r,E,d,g){return a(),i("div",null,k)}const o=s(n,[["render",l]]);export{y as __pageData,o as default}; + write_to_files(file_data)

var no_module_name_pyfile_path

  • Description: 去头路径

  • Default: get_relative_path(module_folder, pyfile_path)

`,71)]))}const F=i(h,[["render",k]]);export{g as __pageData,F as default}; diff --git a/assets/en_dev_api_mkdoc.md.CSPkfV_w.lean.js b/assets/en_dev_api_mkdoc.md.CSPkfV_w.lean.js new file mode 100644 index 00000000..cf80d531 --- /dev/null +++ b/assets/en_dev_api_mkdoc.md.CSPkfV_w.lean.js @@ -0,0 +1,123 @@ +import{_ as i,c as a,a7 as t,o as n}from"./chunks/framework.jrU0lkHV.js";const g=JSON.parse('{"title":"liteyuki.mkdoc","description":"","frontmatter":{"title":"liteyuki.mkdoc"},"headers":[],"relativePath":"en/dev/api/mkdoc.md","filePath":"en/dev/api/mkdoc.md","lastUpdated":1725101868000}'),h={name:"en/dev/api/mkdoc.md"};function k(l,s,p,e,r,E){return n(),a("div",null,s[0]||(s[0]=[t(`

Module liteyuki.mkdoc

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 上午6:23 @Author : snowykami @Email : snowykami@outlook.com @File : mkdoc.py @Software: PyCharm

class DefType(Enum)

attr FUNCTION = 'function'

attr METHOD = 'method'

attr STATIC_METHOD = 'staticmethod'

attr CLASS_METHOD = 'classmethod'

attr PROPERTY = 'property'

class FunctionInfo(BaseModel)

attr name: str = NO_DEFAULT

attr args: list[tuple[str, str]] = NO_DEFAULT

attr return_type: str = NO_DEFAULT

attr docstring: str = NO_DEFAULT

attr source_code: str = ''

attr type: DefType = NO_DEFAULT

attr is_async: bool = NO_DEFAULT

class AttributeInfo(BaseModel)

attr name: str = NO_DEFAULT

attr type: str = NO_DEFAULT

attr value: Any = None

attr docstring: str = ''

class ClassInfo(BaseModel)

attr name: str = NO_DEFAULT

attr docstring: str = NO_DEFAULT

attr methods: list[FunctionInfo] = NO_DEFAULT

attr attributes: list[AttributeInfo] = NO_DEFAULT

attr inherit: list[str] = NO_DEFAULT

class ModuleInfo(BaseModel)

attr module_path: str = NO_DEFAULT

attr functions: list[FunctionInfo] = NO_DEFAULT

attr classes: list[ClassInfo] = NO_DEFAULT

attr attributes: list[AttributeInfo] = NO_DEFAULT

attr docstring: str = NO_DEFAULT


func get_relative_path(base_path: str, target_path: str) -> str

Description: 获取相对路径

Arguments:

  • base_path: 基础路径
  • target_path: 目标路径
Source code or View on GitHub
python
def get_relative_path(base_path: str, target_path: str) -> str:
+    return os.path.relpath(target_path, base_path)

func write_to_files(file_data: dict[str, str])

Description: 输出文件

Arguments:

  • file_data: 文件数据 相对路径
Source code or View on GitHub
python
def write_to_files(file_data: dict[str, str]):
+    for rp, data in file_data.items():
+        if not os.path.exists(os.path.dirname(rp)):
+            os.makedirs(os.path.dirname(rp))
+        with open(rp, 'w', encoding='utf-8') as f:
+            f.write(data)

func get_file_list(module_folder: str)

Source code or View on GitHub
python
def get_file_list(module_folder: str):
+    file_list = []
+    for root, dirs, files in os.walk(module_folder):
+        for file in files:
+            if file.endswith(('.py', '.pyi')):
+                file_list.append(os.path.join(root, file))
+    return file_list

func get_module_info_normal(file_path: str, ignore_private: bool = True) -> ModuleInfo

Description: 获取函数和类

Arguments:

  • file_path: Python 文件路径
  • ignore_private: 忽略私有函数和类

Return: 模块信息

Source code or View on GitHub
python
def get_module_info_normal(file_path: str, ignore_private: bool=True) -> ModuleInfo:
+    with open(file_path, 'r', encoding='utf-8') as file:
+        file_content = file.read()
+        tree = ast.parse(file_content)
+    dot_sep_module_path = file_path.replace(os.sep, '.').replace('.py', '').replace('.pyi', '')
+    module_docstring = ast.get_docstring(tree)
+    module_info = ModuleInfo(module_path=dot_sep_module_path, functions=[], classes=[], attributes=[], docstring=module_docstring if module_docstring else '')
+    for node in ast.walk(tree):
+        if isinstance(node, (ast.FunctionDef, ast.AsyncFunctionDef)):
+            if not any((isinstance(parent, ast.ClassDef) for parent in ast.iter_child_nodes(node))) and (not ignore_private or not node.name.startswith('_')):
+                if node.args.args:
+                    first_arg = node.args.args[0]
+                    if first_arg.arg in ('self', 'cls'):
+                        continue
+                function_docstring = ast.get_docstring(node)
+                func_info = FunctionInfo(name=node.name, args=[(arg.arg, ast.unparse(arg.annotation) if arg.annotation else NO_TYPE_ANY) for arg in node.args.args], return_type=ast.unparse(node.returns) if node.returns else 'None', docstring=function_docstring if function_docstring else '', type=DefType.FUNCTION, is_async=isinstance(node, ast.AsyncFunctionDef), source_code=ast.unparse(node))
+                module_info.functions.append(func_info)
+        elif isinstance(node, ast.ClassDef):
+            class_docstring = ast.get_docstring(node)
+            class_info = ClassInfo(name=node.name, docstring=class_docstring if class_docstring else '', methods=[], attributes=[], inherit=[ast.unparse(base) for base in node.bases])
+            for class_node in node.body:
+                if isinstance(class_node, ast.FunctionDef) and (not ignore_private or not class_node.name.startswith('_') or class_node.name == '__init__'):
+                    method_docstring = ast.get_docstring(class_node)
+                    def_type = DefType.METHOD
+                    if class_node.decorator_list:
+                        if any((isinstance(decorator, ast.Name) and decorator.id == 'staticmethod' for decorator in class_node.decorator_list)):
+                            def_type = DefType.STATIC_METHOD
+                        elif any((isinstance(decorator, ast.Name) and decorator.id == 'classmethod' for decorator in class_node.decorator_list)):
+                            def_type = DefType.CLASS_METHOD
+                        elif any((isinstance(decorator, ast.Name) and decorator.id == 'property' for decorator in class_node.decorator_list)):
+                            def_type = DefType.PROPERTY
+                    class_info.methods.append(FunctionInfo(name=class_node.name, args=[(arg.arg, ast.unparse(arg.annotation) if arg.annotation else NO_TYPE_ANY) for arg in class_node.args.args], return_type=ast.unparse(class_node.returns) if class_node.returns else 'None', docstring=method_docstring if method_docstring else '', type=def_type, is_async=isinstance(class_node, ast.AsyncFunctionDef), source_code=ast.unparse(class_node)))
+                elif isinstance(class_node, ast.Assign):
+                    for target in class_node.targets:
+                        if isinstance(target, ast.Name):
+                            class_info.attributes.append(AttributeInfo(name=target.id, type=ast.unparse(class_node.value)))
+            module_info.classes.append(class_info)
+        elif isinstance(node, ast.Assign):
+            if not any((isinstance(parent, (ast.ClassDef, ast.FunctionDef)) for parent in ast.iter_child_nodes(node))):
+                for target in node.targets:
+                    if isinstance(target, ast.Name) and (not ignore_private or not target.id.startswith('_')):
+                        attr_type = NO_TYPE_HINT
+                        if isinstance(node.value, ast.AnnAssign) and node.value.annotation:
+                            attr_type = ast.unparse(node.value.annotation)
+                        module_info.attributes.append(AttributeInfo(name=target.id, type=attr_type, value=ast.unparse(node.value) if node.value else None))
+    return module_info

func generate_markdown(module_info: ModuleInfo, front_matter = None, lang: str = 'zh-CN') -> str

Description: 生成模块的Markdown 你可在此自定义生成的Markdown格式

Arguments:

  • module_info: 模块信息
  • front_matter: 自定义选项title, index, icon, category
  • lang: 语言

Return: Markdown 字符串

Source code or View on GitHub
python
def generate_markdown(module_info: ModuleInfo, front_matter=None, lang: str='zh-CN') -> str:
+    content = ''
+    front_matter = '---\\n' + '\\n'.join([f'{k}: {v}' for k, v in front_matter.items()]) + '\\n---\\n\\n'
+    content += front_matter
+    for func in module_info.functions:
+        args_with_type = [f'{arg[0]}: {arg[1]}' if arg[1] else arg[0] for arg in func.args]
+        content += f"### ***{('async ' if func.is_async else '')}def*** \`{func.name}({', '.join(args_with_type)}) -> {func.return_type}\`\\n\\n"
+        func.docstring = func.docstring.replace('\\n', '\\n\\n')
+        content += f'{func.docstring}\\n\\n'
+        content += f'<details>\\n<summary>源代码</summary>\\n\\n\`\`\`python\\n{func.source_code}\\n\`\`\`\\n</details>\\n\\n'
+    for cls in module_info.classes:
+        if cls.inherit:
+            inherit = f"({', '.join(cls.inherit)})" if cls.inherit else ''
+            content += f'### ***class*** \`{cls.name}{inherit}\`\\n\\n'
+        else:
+            content += f'### ***class*** \`{cls.name}\`\\n\\n'
+        cls.docstring = cls.docstring.replace('\\n', '\\n\\n')
+        content += f'{cls.docstring}\\n\\n'
+        for method in cls.methods:
+            if method.type != DefType.METHOD:
+                args_with_type = [f'{arg[0]}: {arg[1]}' if arg[1] else arg[0] for arg in method.args]
+                content += f'### &emsp; ***@{method.type.value}***\\n'
+            else:
+                args_with_type = [f'{arg[0]}: {arg[1]}' if arg[1] and arg[0] != 'self' else arg[0] for arg in method.args]
+            content += f"### &emsp; ***{('async ' if method.is_async else '')}def*** \`{method.name}({', '.join(args_with_type)}) -> {method.return_type}\`\\n\\n"
+            method.docstring = method.docstring.replace('\\n', '\\n\\n')
+            content += f'&emsp;{method.docstring}\\n\\n'
+            if lang == 'zh-CN':
+                TEXT_SOURCE_CODE = '源代码'
+            else:
+                TEXT_SOURCE_CODE = 'Source Code'
+            content += f'<details>\\n<summary>{TEXT_SOURCE_CODE}</summary>\\n\\n\`\`\`python\\n{method.source_code}\\n\`\`\`\\n</details>\\n\\n'
+        for attr in cls.attributes:
+            content += f'### &emsp; ***attr*** \`{attr.name}: {attr.type}\`\\n\\n'
+    for attr in module_info.attributes:
+        if attr.type == NO_TYPE_HINT:
+            content += f'### ***var*** \`{attr.name} = {attr.value}\`\\n\\n'
+        else:
+            content += f'### ***var*** \`{attr.name}: {attr.type} = {attr.value}\`\\n\\n'
+        attr.docstring = attr.docstring.replace('\\n', '\\n\\n')
+        content += f'{attr.docstring}\\n\\n'
+    return content

func generate_docs(module_folder: str, output_dir: str, with_top: bool = False, lang: str = 'zh-CN', ignored_paths = None)

Description: 生成文档

Arguments:

  • module_folder: 模块文件夹
  • output_dir: 输出文件夹
  • with_top: 是否包含顶层文件夹 False时例如docs/api/module_a, docs/api/module_b, True时例如docs/api/module/module_a.md, docs/api/module/module_b.md
  • ignored_paths: 忽略的路径
  • lang: 语言
Source code or View on GitHub
python
def generate_docs(module_folder: str, output_dir: str, with_top: bool=False, lang: str='zh-CN', ignored_paths=None):
+    if ignored_paths is None:
+        ignored_paths = []
+    file_data: dict[str, str] = {}
+    file_list = get_file_list(module_folder)
+    shutil.rmtree(output_dir, ignore_errors=True)
+    os.mkdir(output_dir)
+    replace_data = {'__init__': 'README', '.py': '.md'}
+    for pyfile_path in file_list:
+        if any((ignored_path.replace('\\\\', '/') in pyfile_path.replace('\\\\', '/') for ignored_path in ignored_paths)):
+            continue
+        no_module_name_pyfile_path = get_relative_path(module_folder, pyfile_path)
+        rel_md_path = pyfile_path if with_top else no_module_name_pyfile_path
+        for rk, rv in replace_data.items():
+            rel_md_path = rel_md_path.replace(rk, rv)
+        abs_md_path = os.path.join(output_dir, rel_md_path)
+        module_info = get_module_info_normal(pyfile_path)
+        if 'README' in abs_md_path:
+            front_matter = {'title': module_info.module_path.replace('.__init__', '').replace('_', '\\\\n'), 'index': 'true', 'icon': 'laptop-code', 'category': 'API'}
+        else:
+            front_matter = {'title': module_info.module_path.replace('_', '\\\\n'), 'order': '1', 'icon': 'laptop-code', 'category': 'API'}
+        md_content = generate_markdown(module_info, front_matter)
+        print(f'Generate {pyfile_path} -> {abs_md_path}')
+        file_data[abs_md_path] = md_content
+    write_to_files(file_data)

var no_module_name_pyfile_path

  • Description: 去头路径

  • Default: get_relative_path(module_folder, pyfile_path)

`,71)]))}const F=i(h,[["render",k]]);export{g as __pageData,F as default}; diff --git a/assets/en_dev_api_plugin_index.md.CWXWjAhj.js b/assets/en_dev_api_plugin_index.md.CWXWjAhj.js new file mode 100644 index 00000000..8290cde8 --- /dev/null +++ b/assets/en_dev_api_plugin_index.md.CWXWjAhj.js @@ -0,0 +1 @@ +import{_ as t,c as e,a7 as s,o as a}from"./chunks/framework.jrU0lkHV.js";const c=JSON.parse('{"title":"liteyuki.plugin","description":"","frontmatter":{"title":"liteyuki.plugin","collapsed":true},"headers":[],"relativePath":"en/dev/api/plugin/index.md","filePath":"en/dev/api/plugin/index.md","lastUpdated":null}'),n={name:"en/dev/api/plugin/index.md"};function l(d,i,p,o,r,u){return a(),e("div",null,i[0]||(i[0]=[s('

Module liteyuki.plugin


func get_loaded_plugins() -> dict[str, Plugin]

Description: 获取已加载的插件

Return: dict[str, Plugin]: 插件字典

Source code or View on GitHub
python
def get_loaded_plugins() -> dict[str, Plugin]:\n    return _plugins
',6)]))}const h=t(n,[["render",l]]);export{c as __pageData,h as default}; diff --git a/assets/en_dev_api_plugin_index.md.CWXWjAhj.lean.js b/assets/en_dev_api_plugin_index.md.CWXWjAhj.lean.js new file mode 100644 index 00000000..8290cde8 --- /dev/null +++ b/assets/en_dev_api_plugin_index.md.CWXWjAhj.lean.js @@ -0,0 +1 @@ +import{_ as t,c as e,a7 as s,o as a}from"./chunks/framework.jrU0lkHV.js";const c=JSON.parse('{"title":"liteyuki.plugin","description":"","frontmatter":{"title":"liteyuki.plugin","collapsed":true},"headers":[],"relativePath":"en/dev/api/plugin/index.md","filePath":"en/dev/api/plugin/index.md","lastUpdated":null}'),n={name:"en/dev/api/plugin/index.md"};function l(d,i,p,o,r,u){return a(),e("div",null,i[0]||(i[0]=[s('

Module liteyuki.plugin


func get_loaded_plugins() -> dict[str, Plugin]

Description: 获取已加载的插件

Return: dict[str, Plugin]: 插件字典

Source code or View on GitHub
python
def get_loaded_plugins() -> dict[str, Plugin]:\n    return _plugins
',6)]))}const h=t(n,[["render",l]]);export{c as __pageData,h as default}; diff --git a/assets/en_dev_api_plugin_index.md.ibr3u-4e.js b/assets/en_dev_api_plugin_index.md.ibr3u-4e.js deleted file mode 100644 index 5071ebcb..00000000 --- a/assets/en_dev_api_plugin_index.md.ibr3u-4e.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as i,c as t,o as e,a9 as s}from"./chunks/framework.C4_mTacX.js";const _=JSON.parse('{"title":"liteyuki.plugin","description":"","frontmatter":{"title":"liteyuki.plugin","collapsed":true},"headers":[],"relativePath":"en/dev/api/plugin/index.md","filePath":"en/dev/api/plugin/index.md","lastUpdated":null}'),a={name:"en/dev/api/plugin/index.md"},n=s('

Module liteyuki.plugin


func get_loaded_plugins() -> dict[str, Plugin]

Description: 获取已加载的插件

Return: dict[str, Plugin]: 插件字典

Source code or View on GitHub
python
def get_loaded_plugins() -> dict[str, Plugin]:\n    return _plugins
',6),l=[n];function d(o,p,r,u,g,c){return e(),t("div",null,l)}const k=i(a,[["render",d]]);export{_ as __pageData,k as default}; diff --git a/assets/en_dev_api_plugin_index.md.ibr3u-4e.lean.js b/assets/en_dev_api_plugin_index.md.ibr3u-4e.lean.js deleted file mode 100644 index e75357c9..00000000 --- a/assets/en_dev_api_plugin_index.md.ibr3u-4e.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as i,c as t,o as e,a9 as s}from"./chunks/framework.C4_mTacX.js";const _=JSON.parse('{"title":"liteyuki.plugin","description":"","frontmatter":{"title":"liteyuki.plugin","collapsed":true},"headers":[],"relativePath":"en/dev/api/plugin/index.md","filePath":"en/dev/api/plugin/index.md","lastUpdated":null}'),a={name:"en/dev/api/plugin/index.md"},n=s("",6),l=[n];function d(o,p,r,u,g,c){return e(),t("div",null,l)}const k=i(a,[["render",d]]);export{_ as __pageData,k as default}; diff --git a/assets/en_dev_api_plugin_load.md.BPbPSe3L.lean.js b/assets/en_dev_api_plugin_load.md.BPbPSe3L.lean.js deleted file mode 100644 index 708ddae7..00000000 --- a/assets/en_dev_api_plugin_load.md.BPbPSe3L.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as h,D as l,c as t,j as i,a as s,I as k,w as p,a9 as a,o as e}from"./chunks/framework.C4_mTacX.js";const B=JSON.parse('{"title":"liteyuki.plugin.load","description":"","frontmatter":{"title":"liteyuki.plugin.load"},"headers":[],"relativePath":"en/dev/api/plugin/load.md","filePath":"en/dev/api/plugin/load.md","lastUpdated":1725101868000}'),E={name:"en/dev/api/plugin/load.md"},d=a("",20),r=i("strong",null,"Return",-1),g=a("",1);function y(F,o,u,_,C,c){const n=l("y");return e(),t("div",null,[d,i("p",null,[r,s(": str: 设置后的插件名称 "),k(n,null,{default:p(()=>[s("name")]),_:1})]),g])}const A=h(E,[["render",y]]);export{B as __pageData,A as default}; diff --git a/assets/en_dev_api_plugin_load.md.BPbPSe3L.js b/assets/en_dev_api_plugin_load.md.D5m3R33u.js similarity index 89% rename from assets/en_dev_api_plugin_load.md.BPbPSe3L.js rename to assets/en_dev_api_plugin_load.md.D5m3R33u.js index b8e18dc9..2051e46e 100644 --- a/assets/en_dev_api_plugin_load.md.BPbPSe3L.js +++ b/assets/en_dev_api_plugin_load.md.D5m3R33u.js @@ -1,4 +1,4 @@ -import{_ as h,D as l,c as t,j as i,a as s,I as k,w as p,a9 as a,o as e}from"./chunks/framework.C4_mTacX.js";const B=JSON.parse('{"title":"liteyuki.plugin.load","description":"","frontmatter":{"title":"liteyuki.plugin.load"},"headers":[],"relativePath":"en/dev/api/plugin/load.md","filePath":"en/dev/api/plugin/load.md","lastUpdated":1725101868000}'),E={name:"en/dev/api/plugin/load.md"},d=a(`

Module liteyuki.plugin.load

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/23 下午11:59 @Author : snowykami @Email : snowykami@outlook.com @File : load.py @Software: PyCharm


func load_plugin(module_path: str | Path) -> Optional[Plugin]

Description: 加载单个插件,可以是本地插件或是通过 pip 安装的插件。

Arguments:

  • module_path: 插件名称 path.to.your.plugin
  • 或插件路径 pathlib.Path(path/to/your/plugin):
Source code or View on GitHub
python
def load_plugin(module_path: str | Path) -> Optional[Plugin]:
+import{_ as l,c as k,a7 as i,j as a,a as n,G as t,w as p,B as e,o as E}from"./chunks/framework.jrU0lkHV.js";const _=JSON.parse('{"title":"liteyuki.plugin.load","description":"","frontmatter":{"title":"liteyuki.plugin.load"},"headers":[],"relativePath":"en/dev/api/plugin/load.md","filePath":"en/dev/api/plugin/load.md","lastUpdated":1725101868000}'),d={name:"en/dev/api/plugin/load.md"};function r(g,s,y,F,o,u){const h=e("y");return E(),k("div",null,[s[3]||(s[3]=i(`

Module liteyuki.plugin.load

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/23 下午11:59 @Author : snowykami @Email : snowykami@outlook.com @File : load.py @Software: PyCharm


func load_plugin(module_path: str | Path) -> Optional[Plugin]

Description: 加载单个插件,可以是本地插件或是通过 pip 安装的插件。

Arguments:

  • module_path: 插件名称 path.to.your.plugin
  • 或插件路径 pathlib.Path(path/to/your/plugin):
Source code or View on GitHub
python
def load_plugin(module_path: str | Path) -> Optional[Plugin]:
     module_path = path_to_module_name(Path(module_path)) if isinstance(module_path, Path) else module_path
     try:
         module = import_module(module_path)
@@ -48,7 +48,7 @@ import{_ as h,D as l,c as t,j as i,a as s,I as k,w as p,a9 as a,o as e}from"./ch
                 load_plugin(module_name)
                 if _plugins.get(module_name):
                     plugins.add(_plugins[module_name])
-    return plugins

func format_display_name(display_name: str, plugin_type: PluginType) -> str

Description: 设置插件名称颜色,根据不同类型插件设置颜色

Arguments:

  • display_name: 插件名称
  • plugin_type: 插件类型
`,20),r=i("strong",null,"Return",-1),g=a(`
Source code or View on GitHub
python
def format_display_name(display_name: str, plugin_type: PluginType) -> str:
+    return plugins

func format_display_name(display_name: str, plugin_type: PluginType) -> str

Description: 设置插件名称颜色,根据不同类型插件设置颜色

Arguments:

  • display_name: 插件名称
  • plugin_type: 插件类型
`,20)),a("p",null,[s[1]||(s[1]=a("strong",null,"Return",-1)),s[2]||(s[2]=n(": str: 设置后的插件名称 ")),t(h,null,{default:p(()=>s[0]||(s[0]=[n("name")])),_:1})]),s[4]||(s[4]=i(`
Source code or View on GitHub
python
def format_display_name(display_name: str, plugin_type: PluginType) -> str:
     color = 'y'
     match plugin_type:
         case PluginType.APPLICATION:
@@ -59,4 +59,4 @@ import{_ as h,D as l,c as t,j as i,a as s,I as k,w as p,a9 as a,o as e}from"./ch
             color = 'e'
         case PluginType.SERVICE:
             color = 'c'
-    return f'<{color}>{display_name} [{plugin_type.name}]</{color}>'
`,1);function y(F,o,u,_,C,c){const n=l("y");return e(),t("div",null,[d,i("p",null,[r,s(": str: 设置后的插件名称 "),k(n,null,{default:p(()=>[s("name")]),_:1})]),g])}const A=h(E,[["render",y]]);export{B as __pageData,A as default}; + return f'<{color}>{display_name} [{plugin_type.name}]</{color}>'
`,1))])}const c=l(d,[["render",r]]);export{_ as __pageData,c as default}; diff --git a/assets/en_dev_api_plugin_load.md.D5m3R33u.lean.js b/assets/en_dev_api_plugin_load.md.D5m3R33u.lean.js new file mode 100644 index 00000000..2051e46e --- /dev/null +++ b/assets/en_dev_api_plugin_load.md.D5m3R33u.lean.js @@ -0,0 +1,62 @@ +import{_ as l,c as k,a7 as i,j as a,a as n,G as t,w as p,B as e,o as E}from"./chunks/framework.jrU0lkHV.js";const _=JSON.parse('{"title":"liteyuki.plugin.load","description":"","frontmatter":{"title":"liteyuki.plugin.load"},"headers":[],"relativePath":"en/dev/api/plugin/load.md","filePath":"en/dev/api/plugin/load.md","lastUpdated":1725101868000}'),d={name:"en/dev/api/plugin/load.md"};function r(g,s,y,F,o,u){const h=e("y");return E(),k("div",null,[s[3]||(s[3]=i(`

Module liteyuki.plugin.load

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/23 下午11:59 @Author : snowykami @Email : snowykami@outlook.com @File : load.py @Software: PyCharm


func load_plugin(module_path: str | Path) -> Optional[Plugin]

Description: 加载单个插件,可以是本地插件或是通过 pip 安装的插件。

Arguments:

  • module_path: 插件名称 path.to.your.plugin
  • 或插件路径 pathlib.Path(path/to/your/plugin):
Source code or View on GitHub
python
def load_plugin(module_path: str | Path) -> Optional[Plugin]:
+    module_path = path_to_module_name(Path(module_path)) if isinstance(module_path, Path) else module_path
+    try:
+        module = import_module(module_path)
+        _plugins[module.__name__] = Plugin(name=module.__name__, module=module, module_name=module_path)
+        if module.__dict__.get('__plugin_metadata__', None):
+            metadata: 'PluginMetadata' = module.__dict__['__plugin_metadata__']
+            display_name = module.__name__.split('.')[-1]
+        elif module.__dict__.get('__liteyuki_plugin_meta__', None):
+            metadata: 'PluginMetadata' = module.__dict__['__liteyuki_plugin_meta__']
+            display_name = format_display_name(f"{metadata.name}({module.__name__.split('.')[-1]})", metadata.type)
+        elif module.__dict__.get('__plugin_meta__', None):
+            metadata: 'PluginMetadata' = module.__dict__['__plugin_meta__']
+            display_name = format_display_name(f"{metadata.name}({module.__name__.split('.')[-1]})", metadata.type)
+        else:
+            logger.opt(colors=True).warning(f'The metadata of Liteyuki plugin "{module.__name__}" is not specified, use empty.')
+            metadata = PluginMetadata(name=module.__name__)
+            display_name = module.__name__.split('.')[-1]
+        _plugins[module.__name__].metadata = metadata
+        logger.opt(colors=True).success(f'Succeeded to load liteyuki plugin "{display_name}"')
+        return _plugins[module.__name__]
+    except Exception as e:
+        logger.opt(colors=True).success(f'Failed to load liteyuki plugin "<r>{module_path}</r>"')
+        traceback.print_exc()
+        return None

func load_plugins(*plugin_dir: str, *, ignore_warning: bool = True) -> set[Plugin]

Description: 导入文件夹下多个插件

Arguments:

  • plugin_dir: 文件夹路径
  • ignore_warning: 是否忽略警告,通常是目录不存在或目录为空
Source code or View on GitHub
python
def load_plugins(*plugin_dir: str, ignore_warning: bool=True) -> set[Plugin]:
+    plugins = set()
+    for dir_path in plugin_dir:
+        if not os.path.exists(dir_path):
+            if not ignore_warning:
+                logger.warning(f"Plugins dir '{dir_path}' does not exist.")
+            continue
+        if not os.listdir(dir_path):
+            if not ignore_warning:
+                logger.warning(f"Plugins dir '{dir_path}' is empty.")
+            continue
+        if not os.path.isdir(dir_path):
+            if not ignore_warning:
+                logger.warning(f"Plugins dir '{dir_path}' is not a directory.")
+            continue
+        for f in os.listdir(dir_path):
+            path = Path(os.path.join(dir_path, f))
+            module_name = None
+            if os.path.isfile(path) and f.endswith('.py') and (f != '__init__.py'):
+                module_name = f'{path_to_module_name(Path(dir_path))}.{f[:-3]}'
+            elif os.path.isdir(path) and os.path.exists(os.path.join(path, '__init__.py')):
+                module_name = path_to_module_name(path)
+            if module_name:
+                load_plugin(module_name)
+                if _plugins.get(module_name):
+                    plugins.add(_plugins[module_name])
+    return plugins

func format_display_name(display_name: str, plugin_type: PluginType) -> str

Description: 设置插件名称颜色,根据不同类型插件设置颜色

Arguments:

  • display_name: 插件名称
  • plugin_type: 插件类型
`,20)),a("p",null,[s[1]||(s[1]=a("strong",null,"Return",-1)),s[2]||(s[2]=n(": str: 设置后的插件名称 ")),t(h,null,{default:p(()=>s[0]||(s[0]=[n("name")])),_:1})]),s[4]||(s[4]=i(`
Source code or View on GitHub
python
def format_display_name(display_name: str, plugin_type: PluginType) -> str:
+    color = 'y'
+    match plugin_type:
+        case PluginType.APPLICATION:
+            color = 'm'
+        case PluginType.TEST:
+            color = 'g'
+        case PluginType.MODULE:
+            color = 'e'
+        case PluginType.SERVICE:
+            color = 'c'
+    return f'<{color}>{display_name} [{plugin_type.name}]</{color}>'
`,1))])}const c=l(d,[["render",r]]);export{_ as __pageData,c as default}; diff --git a/assets/en_dev_api_plugin_manager.md.LGDmEnuh.js b/assets/en_dev_api_plugin_manager.md.LGDmEnuh.js deleted file mode 100644 index ea0bd74c..00000000 --- a/assets/en_dev_api_plugin_manager.md.LGDmEnuh.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as t,c as n,o as i,j as e,a}from"./chunks/framework.C4_mTacX.js";const y=JSON.parse('{"title":"liteyuki.plugin.manager","description":"","frontmatter":{"title":"liteyuki.plugin.manager"},"headers":[],"relativePath":"en/dev/api/plugin/manager.md","filePath":"en/dev/api/plugin/manager.md","lastUpdated":1725101868000}'),o={name:"en/dev/api/plugin/manager.md"},l=e("h1",{id:"module-liteyuki-plugin-manager",tabindex:"-1"},[e("strong",null,"Module"),a(),e("code",null,"liteyuki.plugin.manager"),a(),e("a",{class:"header-anchor",href:"#module-liteyuki-plugin-manager","aria-label":'Permalink to "**Module** `liteyuki.plugin.manager`"'},"​")],-1),r=e("p",null,"Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved",-1),s=e("p",null,[a("@Time : 2024/7/23 下午11:59 @Author : snowykami @Email : "),e("a",{href:"mailto:snowykami@outlook.com",target:"_blank",rel:"noreferrer"},"snowykami@outlook.com"),a(" @File : manager.py @Software: PyCharm")],-1),u=[l,r,s];function m(d,p,c,g,_,h){return i(),n("div",null,u)}const f=t(o,[["render",m]]);export{y as __pageData,f as default}; diff --git a/assets/en_dev_api_plugin_manager.md.LGDmEnuh.lean.js b/assets/en_dev_api_plugin_manager.md.LGDmEnuh.lean.js deleted file mode 100644 index ea0bd74c..00000000 --- a/assets/en_dev_api_plugin_manager.md.LGDmEnuh.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as t,c as n,o as i,j as e,a}from"./chunks/framework.C4_mTacX.js";const y=JSON.parse('{"title":"liteyuki.plugin.manager","description":"","frontmatter":{"title":"liteyuki.plugin.manager"},"headers":[],"relativePath":"en/dev/api/plugin/manager.md","filePath":"en/dev/api/plugin/manager.md","lastUpdated":1725101868000}'),o={name:"en/dev/api/plugin/manager.md"},l=e("h1",{id:"module-liteyuki-plugin-manager",tabindex:"-1"},[e("strong",null,"Module"),a(),e("code",null,"liteyuki.plugin.manager"),a(),e("a",{class:"header-anchor",href:"#module-liteyuki-plugin-manager","aria-label":'Permalink to "**Module** `liteyuki.plugin.manager`"'},"​")],-1),r=e("p",null,"Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved",-1),s=e("p",null,[a("@Time : 2024/7/23 下午11:59 @Author : snowykami @Email : "),e("a",{href:"mailto:snowykami@outlook.com",target:"_blank",rel:"noreferrer"},"snowykami@outlook.com"),a(" @File : manager.py @Software: PyCharm")],-1),u=[l,r,s];function m(d,p,c,g,_,h){return i(),n("div",null,u)}const f=t(o,[["render",m]]);export{y as __pageData,f as default}; diff --git a/assets/en_dev_api_plugin_manager.md.dpHkH-nG.js b/assets/en_dev_api_plugin_manager.md.dpHkH-nG.js new file mode 100644 index 00000000..4490646e --- /dev/null +++ b/assets/en_dev_api_plugin_manager.md.dpHkH-nG.js @@ -0,0 +1 @@ +import{_ as t,c as i,j as e,a,o as l}from"./chunks/framework.jrU0lkHV.js";const c=JSON.parse('{"title":"liteyuki.plugin.manager","description":"","frontmatter":{"title":"liteyuki.plugin.manager"},"headers":[],"relativePath":"en/dev/api/plugin/manager.md","filePath":"en/dev/api/plugin/manager.md","lastUpdated":1725101868000}'),r={name:"en/dev/api/plugin/manager.md"};function o(u,n,m,p,s,d){return l(),i("div",null,n[0]||(n[0]=[e("h1",{id:"module-liteyuki-plugin-manager",tabindex:"-1"},[e("strong",null,"Module"),a(),e("code",null,"liteyuki.plugin.manager"),a(),e("a",{class:"header-anchor",href:"#module-liteyuki-plugin-manager","aria-label":'Permalink to "**Module** `liteyuki.plugin.manager`"'},"​")],-1),e("p",null,"Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved",-1),e("p",null,[a("@Time : 2024/7/23 下午11:59 @Author : snowykami @Email : "),e("a",{href:"mailto:snowykami@outlook.com",target:"_blank",rel:"noreferrer"},"snowykami@outlook.com"),a(" @File : manager.py @Software: PyCharm")],-1)]))}const k=t(r,[["render",o]]);export{c as __pageData,k as default}; diff --git a/assets/en_dev_api_plugin_manager.md.dpHkH-nG.lean.js b/assets/en_dev_api_plugin_manager.md.dpHkH-nG.lean.js new file mode 100644 index 00000000..4490646e --- /dev/null +++ b/assets/en_dev_api_plugin_manager.md.dpHkH-nG.lean.js @@ -0,0 +1 @@ +import{_ as t,c as i,j as e,a,o as l}from"./chunks/framework.jrU0lkHV.js";const c=JSON.parse('{"title":"liteyuki.plugin.manager","description":"","frontmatter":{"title":"liteyuki.plugin.manager"},"headers":[],"relativePath":"en/dev/api/plugin/manager.md","filePath":"en/dev/api/plugin/manager.md","lastUpdated":1725101868000}'),r={name:"en/dev/api/plugin/manager.md"};function o(u,n,m,p,s,d){return l(),i("div",null,n[0]||(n[0]=[e("h1",{id:"module-liteyuki-plugin-manager",tabindex:"-1"},[e("strong",null,"Module"),a(),e("code",null,"liteyuki.plugin.manager"),a(),e("a",{class:"header-anchor",href:"#module-liteyuki-plugin-manager","aria-label":'Permalink to "**Module** `liteyuki.plugin.manager`"'},"​")],-1),e("p",null,"Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved",-1),e("p",null,[a("@Time : 2024/7/23 下午11:59 @Author : snowykami @Email : "),e("a",{href:"mailto:snowykami@outlook.com",target:"_blank",rel:"noreferrer"},"snowykami@outlook.com"),a(" @File : manager.py @Software: PyCharm")],-1)]))}const k=t(r,[["render",o]]);export{c as __pageData,k as default}; diff --git a/assets/en_dev_api_plugin_model.md.BZm0dnvF.js b/assets/en_dev_api_plugin_model.md.BZm0dnvF.js new file mode 100644 index 00000000..6ac6c867 --- /dev/null +++ b/assets/en_dev_api_plugin_model.md.BZm0dnvF.js @@ -0,0 +1 @@ +import{_ as e,c as t,a7 as r,o}from"./chunks/framework.jrU0lkHV.js";const m=JSON.parse('{"title":"liteyuki.plugin.model","description":"","frontmatter":{"title":"liteyuki.plugin.model"},"headers":[],"relativePath":"en/dev/api/plugin/model.md","filePath":"en/dev/api/plugin/model.md","lastUpdated":1725101868000}'),s={name:"en/dev/api/plugin/model.md"};function i(l,a,n,d,h,u){return o(),t("div",null,a[0]||(a[0]=[r('

Module liteyuki.plugin.model

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/24 上午12:02 @Author : snowykami @Email : snowykami@outlook.com @File : model.py @Software: PyCharm

class PluginType(Enum)

attr APPLICATION = 'application'

attr SERVICE = 'service'

attr MODULE = 'module'

attr UNCLASSIFIED = 'unclassified'

attr TEST = 'test'

class PluginMetadata(BaseModel)

attr name: str = NO_DEFAULT

attr description: str = ''

attr usage: str = ''

attr type: PluginType = PluginType.UNCLASSIFIED

attr author: str = ''

attr homepage: str = ''

attr extra: dict[str, Any] = {}

class Plugin(BaseModel)


func hash self

Source code or View on GitHub
python
def __hash__(self):\n    return hash(self.module_name)

attr model_config = {'arbitrary_types_allowed': True}

attr name: str = NO_DEFAULT

attr module: ModuleType = NO_DEFAULT

attr module_name: str = NO_DEFAULT

attr metadata: Optional[PluginMetadata] = None

',26)]))}const p=e(s,[["render",i]]);export{m as __pageData,p as default}; diff --git a/assets/en_dev_api_plugin_model.md.BZm0dnvF.lean.js b/assets/en_dev_api_plugin_model.md.BZm0dnvF.lean.js new file mode 100644 index 00000000..6ac6c867 --- /dev/null +++ b/assets/en_dev_api_plugin_model.md.BZm0dnvF.lean.js @@ -0,0 +1 @@ +import{_ as e,c as t,a7 as r,o}from"./chunks/framework.jrU0lkHV.js";const m=JSON.parse('{"title":"liteyuki.plugin.model","description":"","frontmatter":{"title":"liteyuki.plugin.model"},"headers":[],"relativePath":"en/dev/api/plugin/model.md","filePath":"en/dev/api/plugin/model.md","lastUpdated":1725101868000}'),s={name:"en/dev/api/plugin/model.md"};function i(l,a,n,d,h,u){return o(),t("div",null,a[0]||(a[0]=[r('

Module liteyuki.plugin.model

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/24 上午12:02 @Author : snowykami @Email : snowykami@outlook.com @File : model.py @Software: PyCharm

class PluginType(Enum)

attr APPLICATION = 'application'

attr SERVICE = 'service'

attr MODULE = 'module'

attr UNCLASSIFIED = 'unclassified'

attr TEST = 'test'

class PluginMetadata(BaseModel)

attr name: str = NO_DEFAULT

attr description: str = ''

attr usage: str = ''

attr type: PluginType = PluginType.UNCLASSIFIED

attr author: str = ''

attr homepage: str = ''

attr extra: dict[str, Any] = {}

class Plugin(BaseModel)


func hash self

Source code or View on GitHub
python
def __hash__(self):\n    return hash(self.module_name)

attr model_config = {'arbitrary_types_allowed': True}

attr name: str = NO_DEFAULT

attr module: ModuleType = NO_DEFAULT

attr module_name: str = NO_DEFAULT

attr metadata: Optional[PluginMetadata] = None

',26)]))}const p=e(s,[["render",i]]);export{m as __pageData,p as default}; diff --git a/assets/en_dev_api_plugin_model.md.C8mVVzkp.js b/assets/en_dev_api_plugin_model.md.C8mVVzkp.js deleted file mode 100644 index f3e6a277..00000000 --- a/assets/en_dev_api_plugin_model.md.C8mVVzkp.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as a,c as e,o as t,a9 as r}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"liteyuki.plugin.model","description":"","frontmatter":{"title":"liteyuki.plugin.model"},"headers":[],"relativePath":"en/dev/api/plugin/model.md","filePath":"en/dev/api/plugin/model.md","lastUpdated":1725101868000}'),o={name:"en/dev/api/plugin/model.md"},s=r('

Module liteyuki.plugin.model

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/24 上午12:02 @Author : snowykami @Email : snowykami@outlook.com @File : model.py @Software: PyCharm

class PluginType(Enum)

attr APPLICATION = 'application'

attr SERVICE = 'service'

attr MODULE = 'module'

attr UNCLASSIFIED = 'unclassified'

attr TEST = 'test'

class PluginMetadata(BaseModel)

attr name: str = NO_DEFAULT

attr description: str = ''

attr usage: str = ''

attr type: PluginType = PluginType.UNCLASSIFIED

attr author: str = ''

attr homepage: str = ''

attr extra: dict[str, Any] = {}

class Plugin(BaseModel)


func hash self

Source code or View on GitHub
python
def __hash__(self):\n    return hash(self.module_name)

attr model_config = {'arbitrary_types_allowed': True}

attr name: str = NO_DEFAULT

attr module: ModuleType = NO_DEFAULT

attr module_name: str = NO_DEFAULT

attr metadata: Optional[PluginMetadata] = None

',26),i=[s];function l(n,d,h,c,u,m){return t(),e("div",null,i)}const k=a(o,[["render",l]]);export{g as __pageData,k as default}; diff --git a/assets/en_dev_api_plugin_model.md.C8mVVzkp.lean.js b/assets/en_dev_api_plugin_model.md.C8mVVzkp.lean.js deleted file mode 100644 index d713477f..00000000 --- a/assets/en_dev_api_plugin_model.md.C8mVVzkp.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as a,c as e,o as t,a9 as r}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"liteyuki.plugin.model","description":"","frontmatter":{"title":"liteyuki.plugin.model"},"headers":[],"relativePath":"en/dev/api/plugin/model.md","filePath":"en/dev/api/plugin/model.md","lastUpdated":1725101868000}'),o={name:"en/dev/api/plugin/model.md"},s=r("",26),i=[s];function l(n,d,h,c,u,m){return t(),e("div",null,i)}const k=a(o,[["render",l]]);export{g as __pageData,k as default}; diff --git a/assets/en_dev_api_plugins_index.md.CBJItUz2.js b/assets/en_dev_api_plugins_index.md.CBJItUz2.js deleted file mode 100644 index 27bbcc62..00000000 --- a/assets/en_dev_api_plugins_index.md.CBJItUz2.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as t,c as l,o as n,j as e,a as i}from"./chunks/framework.C4_mTacX.js";const f=JSON.parse('{"title":"liteyuki.plugins","description":"","frontmatter":{"title":"liteyuki.plugins","collapsed":true},"headers":[],"relativePath":"en/dev/api/plugins/index.md","filePath":"en/dev/api/plugins/index.md","lastUpdated":null}'),s={name:"en/dev/api/plugins/index.md"},a=e("h1",{id:"module-liteyuki-plugins",tabindex:"-1"},[e("strong",null,"Module"),i(),e("code",null,"liteyuki.plugins"),i(),e("a",{class:"header-anchor",href:"#module-liteyuki-plugins","aria-label":'Permalink to "**Module** `liteyuki.plugins`"'},"​")],-1),o=e("p",null,"此模块为内置插件文件夹,用于存放内置插件。 This module is the built-in plugin folder, used to store built-in plugins.",-1),d=[a,o];function u(r,p,c,_,g,h){return n(),l("div",null,d)}const k=t(s,[["render",u]]);export{f as __pageData,k as default}; diff --git a/assets/en_dev_api_plugins_index.md.CBJItUz2.lean.js b/assets/en_dev_api_plugins_index.md.CBJItUz2.lean.js deleted file mode 100644 index 27bbcc62..00000000 --- a/assets/en_dev_api_plugins_index.md.CBJItUz2.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as t,c as l,o as n,j as e,a as i}from"./chunks/framework.C4_mTacX.js";const f=JSON.parse('{"title":"liteyuki.plugins","description":"","frontmatter":{"title":"liteyuki.plugins","collapsed":true},"headers":[],"relativePath":"en/dev/api/plugins/index.md","filePath":"en/dev/api/plugins/index.md","lastUpdated":null}'),s={name:"en/dev/api/plugins/index.md"},a=e("h1",{id:"module-liteyuki-plugins",tabindex:"-1"},[e("strong",null,"Module"),i(),e("code",null,"liteyuki.plugins"),i(),e("a",{class:"header-anchor",href:"#module-liteyuki-plugins","aria-label":'Permalink to "**Module** `liteyuki.plugins`"'},"​")],-1),o=e("p",null,"此模块为内置插件文件夹,用于存放内置插件。 This module is the built-in plugin folder, used to store built-in plugins.",-1),d=[a,o];function u(r,p,c,_,g,h){return n(),l("div",null,d)}const k=t(s,[["render",u]]);export{f as __pageData,k as default}; diff --git a/assets/en_dev_api_plugins_index.md.Dby_mWRR.js b/assets/en_dev_api_plugins_index.md.Dby_mWRR.js new file mode 100644 index 00000000..59071829 --- /dev/null +++ b/assets/en_dev_api_plugins_index.md.Dby_mWRR.js @@ -0,0 +1 @@ +import{_ as t,c as n,j as e,a as l,o as a}from"./chunks/framework.jrU0lkHV.js";const m=JSON.parse('{"title":"liteyuki.plugins","description":"","frontmatter":{"title":"liteyuki.plugins","collapsed":true},"headers":[],"relativePath":"en/dev/api/plugins/index.md","filePath":"en/dev/api/plugins/index.md","lastUpdated":null}'),s={name:"en/dev/api/plugins/index.md"};function u(d,i,o,r,p,c){return a(),n("div",null,i[0]||(i[0]=[e("h1",{id:"module-liteyuki-plugins",tabindex:"-1"},[e("strong",null,"Module"),l(),e("code",null,"liteyuki.plugins"),l(),e("a",{class:"header-anchor",href:"#module-liteyuki-plugins","aria-label":'Permalink to "**Module** `liteyuki.plugins`"'},"​")],-1),e("p",null,"此模块为内置插件文件夹,用于存放内置插件。 This module is the built-in plugin folder, used to store built-in plugins.",-1)]))}const f=t(s,[["render",u]]);export{m as __pageData,f as default}; diff --git a/assets/en_dev_api_plugins_index.md.Dby_mWRR.lean.js b/assets/en_dev_api_plugins_index.md.Dby_mWRR.lean.js new file mode 100644 index 00000000..59071829 --- /dev/null +++ b/assets/en_dev_api_plugins_index.md.Dby_mWRR.lean.js @@ -0,0 +1 @@ +import{_ as t,c as n,j as e,a as l,o as a}from"./chunks/framework.jrU0lkHV.js";const m=JSON.parse('{"title":"liteyuki.plugins","description":"","frontmatter":{"title":"liteyuki.plugins","collapsed":true},"headers":[],"relativePath":"en/dev/api/plugins/index.md","filePath":"en/dev/api/plugins/index.md","lastUpdated":null}'),s={name:"en/dev/api/plugins/index.md"};function u(d,i,o,r,p,c){return a(),n("div",null,i[0]||(i[0]=[e("h1",{id:"module-liteyuki-plugins",tabindex:"-1"},[e("strong",null,"Module"),l(),e("code",null,"liteyuki.plugins"),l(),e("a",{class:"header-anchor",href:"#module-liteyuki-plugins","aria-label":'Permalink to "**Module** `liteyuki.plugins`"'},"​")],-1),e("p",null,"此模块为内置插件文件夹,用于存放内置插件。 This module is the built-in plugin folder, used to store built-in plugins.",-1)]))}const f=t(s,[["render",u]]);export{m as __pageData,f as default}; diff --git a/assets/en_dev_api_plugins_liteecho.md.BkpA_Gke.js b/assets/en_dev_api_plugins_liteecho.md.BkpA_Gke.js deleted file mode 100644 index 847430c8..00000000 --- a/assets/en_dev_api_plugins_liteecho.md.BkpA_Gke.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as e,c as i,o as s,a9 as t}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"liteyuki.plugins.liteecho","description":"","frontmatter":{"title":"liteyuki.plugins.liteecho"},"headers":[],"relativePath":"en/dev/api/plugins/liteecho.md","filePath":"en/dev/api/plugins/liteecho.md","lastUpdated":1725101868000}'),a={name:"en/dev/api/plugins/liteecho.md"},l=t('

Module liteyuki.plugins.liteecho

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/22 下午12:31 @Author : snowykami @Email : snowykami@outlook.com @File : liteecho.py @Software: PyCharm


@on_startswith(['liteecho'], rule=is_su_rule).handle()

async func liteecho(event: MessageEvent)

Source code or View on GitHub
python
@on_startswith(['liteecho'], rule=is_su_rule).handle()\nasync def liteecho(event: MessageEvent):\n    event.reply(event.raw_message.strip()[8:].strip())
',7),n=[l];function h(o,p,r,c,k,d){return s(),i("div",null,n)}const y=e(a,[["render",h]]);export{g as __pageData,y as default}; diff --git a/assets/en_dev_api_plugins_liteecho.md.BkpA_Gke.lean.js b/assets/en_dev_api_plugins_liteecho.md.BkpA_Gke.lean.js deleted file mode 100644 index d07770ae..00000000 --- a/assets/en_dev_api_plugins_liteecho.md.BkpA_Gke.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as e,c as i,o as s,a9 as t}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"liteyuki.plugins.liteecho","description":"","frontmatter":{"title":"liteyuki.plugins.liteecho"},"headers":[],"relativePath":"en/dev/api/plugins/liteecho.md","filePath":"en/dev/api/plugins/liteecho.md","lastUpdated":1725101868000}'),a={name:"en/dev/api/plugins/liteecho.md"},l=t("",7),n=[l];function h(o,p,r,c,k,d){return s(),i("div",null,n)}const y=e(a,[["render",h]]);export{g as __pageData,y as default}; diff --git a/assets/en_dev_api_plugins_liteecho.md.CrtVqPCc.js b/assets/en_dev_api_plugins_liteecho.md.CrtVqPCc.js new file mode 100644 index 00000000..9c7429bf --- /dev/null +++ b/assets/en_dev_api_plugins_liteecho.md.CrtVqPCc.js @@ -0,0 +1 @@ +import{_ as i,c as s,a7 as t,o as a}from"./chunks/framework.jrU0lkHV.js";const d=JSON.parse('{"title":"liteyuki.plugins.liteecho","description":"","frontmatter":{"title":"liteyuki.plugins.liteecho"},"headers":[],"relativePath":"en/dev/api/plugins/liteecho.md","filePath":"en/dev/api/plugins/liteecho.md","lastUpdated":1725101868000}'),l={name:"en/dev/api/plugins/liteecho.md"};function n(h,e,o,p,r,k){return a(),s("div",null,e[0]||(e[0]=[t('

Module liteyuki.plugins.liteecho

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/22 下午12:31 @Author : snowykami @Email : snowykami@outlook.com @File : liteecho.py @Software: PyCharm


@on_startswith(['liteecho'], rule=is_su_rule).handle()

async func liteecho(event: MessageEvent)

Source code or View on GitHub
python
@on_startswith(['liteecho'], rule=is_su_rule).handle()\nasync def liteecho(event: MessageEvent):\n    event.reply(event.raw_message.strip()[8:].strip())
',7)]))}const u=i(l,[["render",n]]);export{d as __pageData,u as default}; diff --git a/assets/en_dev_api_plugins_liteecho.md.CrtVqPCc.lean.js b/assets/en_dev_api_plugins_liteecho.md.CrtVqPCc.lean.js new file mode 100644 index 00000000..9c7429bf --- /dev/null +++ b/assets/en_dev_api_plugins_liteecho.md.CrtVqPCc.lean.js @@ -0,0 +1 @@ +import{_ as i,c as s,a7 as t,o as a}from"./chunks/framework.jrU0lkHV.js";const d=JSON.parse('{"title":"liteyuki.plugins.liteecho","description":"","frontmatter":{"title":"liteyuki.plugins.liteecho"},"headers":[],"relativePath":"en/dev/api/plugins/liteecho.md","filePath":"en/dev/api/plugins/liteecho.md","lastUpdated":1725101868000}'),l={name:"en/dev/api/plugins/liteecho.md"};function n(h,e,o,p,r,k){return a(),s("div",null,e[0]||(e[0]=[t('

Module liteyuki.plugins.liteecho

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/22 下午12:31 @Author : snowykami @Email : snowykami@outlook.com @File : liteecho.py @Software: PyCharm


@on_startswith(['liteecho'], rule=is_su_rule).handle()

async func liteecho(event: MessageEvent)

Source code or View on GitHub
python
@on_startswith(['liteecho'], rule=is_su_rule).handle()\nasync def liteecho(event: MessageEvent):\n    event.reply(event.raw_message.strip()[8:].strip())
',7)]))}const u=i(l,[["render",n]]);export{d as __pageData,u as default}; diff --git a/assets/en_dev_api_plugins_plugin_loader_index.md.BC_T8lis.js b/assets/en_dev_api_plugins_plugin_loader_index.md.BC_T8lis.js new file mode 100644 index 00000000..17d801d6 --- /dev/null +++ b/assets/en_dev_api_plugins_plugin_loader_index.md.BC_T8lis.js @@ -0,0 +1 @@ +import{_ as s,c as a,a7 as l,o as e}from"./chunks/framework.jrU0lkHV.js";const k=JSON.parse('{"title":"liteyuki.plugins.plugin_loader","description":"","frontmatter":{"title":"liteyuki.plugins.plugin_loader","collapsed":true},"headers":[],"relativePath":"en/dev/api/plugins/plugin_loader/index.md","filePath":"en/dev/api/plugins/plugin_loader/index.md","lastUpdated":null}'),n={name:"en/dev/api/plugins/plugin_loader/index.md"};function t(p,i,r,o,d,h){return e(),a("div",null,i[0]||(i[0]=[l('

Module liteyuki.plugins.plugin_loader

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/11 下午10:02 @Author : snowykami @Email : snowykami@outlook.com @File : init.py.py @Software: PyCharm


func default_plugins_loader()

Description: 默认插件加载器,应在初始化时调用

Source code or View on GitHub
python
def default_plugins_loader():\n    for plugin in get_config('liteyuki.plugins', []):\n        load_plugin(plugin)\n    for plugin_dir in get_config('liteyuki.plugin_dirs', ['src/liteyuki_plugins']):\n        load_plugins(plugin_dir)
',7)]))}const g=s(n,[["render",t]]);export{k as __pageData,g as default}; diff --git a/assets/en_dev_api_plugins_plugin_loader_index.md.BC_T8lis.lean.js b/assets/en_dev_api_plugins_plugin_loader_index.md.BC_T8lis.lean.js new file mode 100644 index 00000000..17d801d6 --- /dev/null +++ b/assets/en_dev_api_plugins_plugin_loader_index.md.BC_T8lis.lean.js @@ -0,0 +1 @@ +import{_ as s,c as a,a7 as l,o as e}from"./chunks/framework.jrU0lkHV.js";const k=JSON.parse('{"title":"liteyuki.plugins.plugin_loader","description":"","frontmatter":{"title":"liteyuki.plugins.plugin_loader","collapsed":true},"headers":[],"relativePath":"en/dev/api/plugins/plugin_loader/index.md","filePath":"en/dev/api/plugins/plugin_loader/index.md","lastUpdated":null}'),n={name:"en/dev/api/plugins/plugin_loader/index.md"};function t(p,i,r,o,d,h){return e(),a("div",null,i[0]||(i[0]=[l('

Module liteyuki.plugins.plugin_loader

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/11 下午10:02 @Author : snowykami @Email : snowykami@outlook.com @File : init.py.py @Software: PyCharm


func default_plugins_loader()

Description: 默认插件加载器,应在初始化时调用

Source code or View on GitHub
python
def default_plugins_loader():\n    for plugin in get_config('liteyuki.plugins', []):\n        load_plugin(plugin)\n    for plugin_dir in get_config('liteyuki.plugin_dirs', ['src/liteyuki_plugins']):\n        load_plugins(plugin_dir)
',7)]))}const g=s(n,[["render",t]]);export{k as __pageData,g as default}; diff --git a/assets/en_dev_api_plugins_plugin_loader_index.md.cG7vDNwD.js b/assets/en_dev_api_plugins_plugin_loader_index.md.cG7vDNwD.js deleted file mode 100644 index bc6e2c9a..00000000 --- a/assets/en_dev_api_plugins_plugin_loader_index.md.cG7vDNwD.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as i,c as s,o as a,a9 as e}from"./chunks/framework.C4_mTacX.js";const _=JSON.parse('{"title":"liteyuki.plugins.plugin_loader","description":"","frontmatter":{"title":"liteyuki.plugins.plugin_loader","collapsed":true},"headers":[],"relativePath":"en/dev/api/plugins/plugin_loader/index.md","filePath":"en/dev/api/plugins/plugin_loader/index.md","lastUpdated":null}'),l={name:"en/dev/api/plugins/plugin_loader/index.md"},n=e('

Module liteyuki.plugins.plugin_loader

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/11 下午10:02 @Author : snowykami @Email : snowykami@outlook.com @File : init.py.py @Software: PyCharm


func default_plugins_loader()

Description: 默认插件加载器,应在初始化时调用

Source code or View on GitHub
python
def default_plugins_loader():\n    for plugin in get_config('liteyuki.plugins', []):\n        load_plugin(plugin)\n    for plugin_dir in get_config('liteyuki.plugin_dirs', ['src/liteyuki_plugins']):\n        load_plugins(plugin_dir)
',7),t=[n];function p(o,r,d,h,u,k){return a(),s("div",null,t)}const c=i(l,[["render",p]]);export{_ as __pageData,c as default}; diff --git a/assets/en_dev_api_plugins_plugin_loader_index.md.cG7vDNwD.lean.js b/assets/en_dev_api_plugins_plugin_loader_index.md.cG7vDNwD.lean.js deleted file mode 100644 index 1813a0ce..00000000 --- a/assets/en_dev_api_plugins_plugin_loader_index.md.cG7vDNwD.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as i,c as s,o as a,a9 as e}from"./chunks/framework.C4_mTacX.js";const _=JSON.parse('{"title":"liteyuki.plugins.plugin_loader","description":"","frontmatter":{"title":"liteyuki.plugins.plugin_loader","collapsed":true},"headers":[],"relativePath":"en/dev/api/plugins/plugin_loader/index.md","filePath":"en/dev/api/plugins/plugin_loader/index.md","lastUpdated":null}'),l={name:"en/dev/api/plugins/plugin_loader/index.md"},n=e("",7),t=[n];function p(o,r,d,h,u,k){return a(),s("div",null,t)}const c=i(l,[["render",p]]);export{_ as __pageData,c as default}; diff --git a/assets/en_dev_api_message_event.md.C6I96y2L.js b/assets/en_dev_api_session_event.md.DLw2yT5i.js similarity index 60% rename from assets/en_dev_api_message_event.md.C6I96y2L.js rename to assets/en_dev_api_session_event.md.DLw2yT5i.js index 92e2e2fa..9733271c 100644 --- a/assets/en_dev_api_message_event.md.C6I96y2L.js +++ b/assets/en_dev_api_session_event.md.DLw2yT5i.js @@ -1,4 +1,4 @@ -import{_ as s,c as i,o as a,a9 as e}from"./chunks/framework.C4_mTacX.js";const o=JSON.parse('{"title":"liteyuki.message.event","description":"","frontmatter":{"title":"liteyuki.message.event"},"headers":[],"relativePath":"en/dev/api/message/event.md","filePath":"en/dev/api/message/event.md","lastUpdated":1725101868000}'),t={name:"en/dev/api/message/event.md"},n=e(`

Module liteyuki.message.event

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 下午10:47 @Author : snowykami @Email : snowykami@outlook.com @File : event.py @Software: PyCharm

class MessageEvent


func __init__(self, bot_id: str, message: list[dict[str, Any]] | str, message_type: str, raw_message: str, session_id: str, user_id: str, session_type: str, receive_channel: Optional[Channel[MessageEvent]] = None, data: Optional[dict[str, Any]] = None)

Description: 轻雪抽象消息事件

Source code or View on GitHub
python
def __init__(self, bot_id: str, message: list[dict[str, Any]] | str, message_type: str, raw_message: str, session_id: str, user_id: str, session_type: str, receive_channel: Optional[Channel['MessageEvent']]=None, data: Optional[dict[str, Any]]=None):
+import{_ as i,c as a,a7 as e,o as t}from"./chunks/framework.jrU0lkHV.js";const g=JSON.parse('{"title":"liteyuki.session.event","description":"","frontmatter":{"title":"liteyuki.session.event"},"headers":[],"relativePath":"en/dev/api/session/event.md","filePath":"en/dev/api/session/event.md","lastUpdated":null}'),n={name:"en/dev/api/session/event.md"};function h(l,s,k,p,r,d){return t(),a("div",null,s[0]||(s[0]=[e(`

Module liteyuki.session.event

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 下午10:47 @Author : snowykami @Email : snowykami@outlook.com @File : event.py @Software: PyCharm

class MessageEvent


func __init__(self, bot_id: str, message: list[dict[str, Any]] | str, message_type: str, raw_message: str, session_id: str, user_id: str, session_type: str, receive_channel: Optional[Channel[MessageEvent]] = None, data: Optional[dict[str, Any]] = None)

Description: 轻雪抽象消息事件

Source code or View on GitHub
python
def __init__(self, bot_id: str, message: list[dict[str, Any]] | str, message_type: str, raw_message: str, session_id: str, user_id: str, session_type: str, receive_channel: Optional[Channel['MessageEvent']]=None, data: Optional[dict[str, Any]]=None):
     if data is None:
         data = {}
     self.message_type = message_type
@@ -9,7 +9,7 @@ import{_ as s,c as i,o as a,a9 as e}from"./chunks/framework.C4_mTacX.js";const o
     self.session_id = session_id
     self.session_type = session_type
     self.user_id = user_id
-    self.receive_channel = receive_channel

func reply(self, message: str | dict[str, Any])

Description: 回复消息

Arguments:

  • message:
Source code or View on GitHub
python
def reply(self, message: str | dict[str, Any]):
+    self.receive_channel = receive_channel

func reply(self, message: str | dict[str, Any])

Description: 回复消息

Arguments:

  • message:
Source code or View on GitHub
python
def reply(self, message: str | dict[str, Any]):
     reply_event = MessageEvent(message_type=self.session_type, message=message, raw_message='', data={'message': message}, bot_id=self.bot_id, session_id=self.session_id, user_id=self.user_id, session_type=self.session_type, receive_channel=None)
     if self.receive_channel:
-        self.receive_channel.send(reply_event)
`,14),h=[n];function l(k,p,r,d,E,g){return a(),i("div",null,h)}const c=s(t,[["render",l]]);export{o as __pageData,c as default}; + self.receive_channel.send(reply_event)
`,14)]))}const y=i(n,[["render",h]]);export{g as __pageData,y as default}; diff --git a/assets/en_dev_api_session_event.md.DLw2yT5i.lean.js b/assets/en_dev_api_session_event.md.DLw2yT5i.lean.js new file mode 100644 index 00000000..9733271c --- /dev/null +++ b/assets/en_dev_api_session_event.md.DLw2yT5i.lean.js @@ -0,0 +1,15 @@ +import{_ as i,c as a,a7 as e,o as t}from"./chunks/framework.jrU0lkHV.js";const g=JSON.parse('{"title":"liteyuki.session.event","description":"","frontmatter":{"title":"liteyuki.session.event"},"headers":[],"relativePath":"en/dev/api/session/event.md","filePath":"en/dev/api/session/event.md","lastUpdated":null}'),n={name:"en/dev/api/session/event.md"};function h(l,s,k,p,r,d){return t(),a("div",null,s[0]||(s[0]=[e(`

Module liteyuki.session.event

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 下午10:47 @Author : snowykami @Email : snowykami@outlook.com @File : event.py @Software: PyCharm

class MessageEvent


func __init__(self, bot_id: str, message: list[dict[str, Any]] | str, message_type: str, raw_message: str, session_id: str, user_id: str, session_type: str, receive_channel: Optional[Channel[MessageEvent]] = None, data: Optional[dict[str, Any]] = None)

Description: 轻雪抽象消息事件

Source code or View on GitHub
python
def __init__(self, bot_id: str, message: list[dict[str, Any]] | str, message_type: str, raw_message: str, session_id: str, user_id: str, session_type: str, receive_channel: Optional[Channel['MessageEvent']]=None, data: Optional[dict[str, Any]]=None):
+    if data is None:
+        data = {}
+    self.message_type = message_type
+    self.data = data
+    self.bot_id = bot_id
+    self.message = message
+    self.raw_message = raw_message
+    self.session_id = session_id
+    self.session_type = session_type
+    self.user_id = user_id
+    self.receive_channel = receive_channel

func reply(self, message: str | dict[str, Any])

Description: 回复消息

Arguments:

  • message:
Source code or View on GitHub
python
def reply(self, message: str | dict[str, Any]):
+    reply_event = MessageEvent(message_type=self.session_type, message=message, raw_message='', data={'message': message}, bot_id=self.bot_id, session_id=self.session_id, user_id=self.user_id, session_type=self.session_type, receive_channel=None)
+    if self.receive_channel:
+        self.receive_channel.send(reply_event)
`,14)]))}const y=i(n,[["render",h]]);export{g as __pageData,y as default}; diff --git a/assets/en_dev_api_session_index.md.D-YOgw8v.js b/assets/en_dev_api_session_index.md.D-YOgw8v.js new file mode 100644 index 00000000..cb717549 --- /dev/null +++ b/assets/en_dev_api_session_index.md.D-YOgw8v.js @@ -0,0 +1 @@ +import{_ as o,c as t,j as e,a as i,o as a}from"./chunks/framework.jrU0lkHV.js";const k=JSON.parse('{"title":"liteyuki.session","description":"","frontmatter":{"title":"liteyuki.session","collapsed":true},"headers":[],"relativePath":"en/dev/api/session/index.md","filePath":"en/dev/api/session/index.md","lastUpdated":null}'),n={name:"en/dev/api/session/index.md"};function l(r,s,d,u,m,p){return a(),t("div",null,s[0]||(s[0]=[e("h1",{id:"module-liteyuki-session",tabindex:"-1"},[e("strong",null,"Module"),i(),e("code",null,"liteyuki.session"),i(),e("a",{class:"header-anchor",href:"#module-liteyuki-session","aria-label":'Permalink to "**Module** `liteyuki.session`"'},"​")],-1),e("p",null,"Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved",-1),e("p",null,[i("@Time : 2024/8/19 下午10:44 @Author : snowykami @Email : "),e("a",{href:"mailto:snowykami@outlook.com",target:"_blank",rel:"noreferrer"},"snowykami@outlook.com"),i(" @File : "),e("strong",null,"init"),i(".py.py @Software: PyCharm")],-1)]))}const y=o(n,[["render",l]]);export{k as __pageData,y as default}; diff --git a/assets/en_dev_api_session_index.md.D-YOgw8v.lean.js b/assets/en_dev_api_session_index.md.D-YOgw8v.lean.js new file mode 100644 index 00000000..cb717549 --- /dev/null +++ b/assets/en_dev_api_session_index.md.D-YOgw8v.lean.js @@ -0,0 +1 @@ +import{_ as o,c as t,j as e,a as i,o as a}from"./chunks/framework.jrU0lkHV.js";const k=JSON.parse('{"title":"liteyuki.session","description":"","frontmatter":{"title":"liteyuki.session","collapsed":true},"headers":[],"relativePath":"en/dev/api/session/index.md","filePath":"en/dev/api/session/index.md","lastUpdated":null}'),n={name:"en/dev/api/session/index.md"};function l(r,s,d,u,m,p){return a(),t("div",null,s[0]||(s[0]=[e("h1",{id:"module-liteyuki-session",tabindex:"-1"},[e("strong",null,"Module"),i(),e("code",null,"liteyuki.session"),i(),e("a",{class:"header-anchor",href:"#module-liteyuki-session","aria-label":'Permalink to "**Module** `liteyuki.session`"'},"​")],-1),e("p",null,"Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved",-1),e("p",null,[i("@Time : 2024/8/19 下午10:44 @Author : snowykami @Email : "),e("a",{href:"mailto:snowykami@outlook.com",target:"_blank",rel:"noreferrer"},"snowykami@outlook.com"),i(" @File : "),e("strong",null,"init"),i(".py.py @Software: PyCharm")],-1)]))}const y=o(n,[["render",l]]);export{k as __pageData,y as default}; diff --git a/assets/en_dev_api_message_matcher.md.CtCEbUVJ.js b/assets/en_dev_api_session_matcher.md.DJciHvHX.js similarity index 67% rename from assets/en_dev_api_message_matcher.md.CtCEbUVJ.js rename to assets/en_dev_api_session_matcher.md.DJciHvHX.js index b99cc00f..e3dcf6a3 100644 --- a/assets/en_dev_api_message_matcher.md.CtCEbUVJ.js +++ b/assets/en_dev_api_session_matcher.md.DJciHvHX.js @@ -1,17 +1,17 @@ -import{_ as s,c as i,o as a,a9 as e}from"./chunks/framework.C4_mTacX.js";const u=JSON.parse('{"title":"liteyuki.message.matcher","description":"","frontmatter":{"title":"liteyuki.message.matcher"},"headers":[],"relativePath":"en/dev/api/message/matcher.md","filePath":"en/dev/api/message/matcher.md","lastUpdated":1725101868000}'),n={name:"en/dev/api/message/matcher.md"},t=e(`

Module liteyuki.message.matcher

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 下午10:51 @Author : snowykami @Email : snowykami@outlook.com @File : matcher.py @Software: PyCharm

class Matcher


func __init__(self, rule: Rule, priority: int, block: bool)

Description: 匹配器

Arguments:

  • rule: 规则
  • priority: 优先级 >= 0
  • block: 是否阻断后续优先级更低的匹配器
Source code or View on GitHub
python
def __init__(self, rule: Rule, priority: int, block: bool):
+import{_ as i,c as a,a7 as e,o as n}from"./chunks/framework.jrU0lkHV.js";const c=JSON.parse('{"title":"liteyuki.session.matcher","description":"","frontmatter":{"title":"liteyuki.session.matcher"},"headers":[],"relativePath":"en/dev/api/session/matcher.md","filePath":"en/dev/api/session/matcher.md","lastUpdated":null}'),t={name:"en/dev/api/session/matcher.md"};function l(h,s,r,p,k,o){return n(),a("div",null,s[0]||(s[0]=[e(`

Module liteyuki.session.matcher

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 下午10:51 @Author : snowykami @Email : snowykami@outlook.com @File : matcher.py @Software: PyCharm

class Matcher


func __init__(self, rule: Rule, priority: int, block: bool)

Description: 匹配器

Arguments:

  • rule: 规则
  • priority: 优先级 >= 0
  • block: 是否阻断后续优先级更低的匹配器
Source code or View on GitHub
python
def __init__(self, rule: Rule, priority: int, block: bool):
     self.rule = rule
     self.priority = priority
     self.block = block
-    self.handlers: list[EventHandler] = []

func handle(self) -> Callable[[EventHandler], EventHandler]

Description: 添加处理函数,装饰器

Return: 装饰器 handler

Source code or View on GitHub
python
def handle(self) -> Callable[[EventHandler], EventHandler]:
+    self.handlers: list[EventHandler] = []

func handle(self) -> Callable[[EventHandler], EventHandler]

Description: 添加处理函数,装饰器

Return: 装饰器 handler

Source code or View on GitHub
python
def handle(self) -> Callable[[EventHandler], EventHandler]:
 
     def decorator(handler: EventHandler) -> EventHandler:
         self.handlers.append(handler)
         return handler
-    return decorator

async func run(self, event: MessageEvent) -> None

Description: 运行处理函数

Arguments:

  • event:
Source code or View on GitHub
python
async def run(self, event: MessageEvent) -> None:
+    return decorator

async func run(self, event: MessageEvent) -> None

Description: 运行处理函数

Arguments:

  • event:
Source code or View on GitHub
python
async def run(self, event: MessageEvent) -> None:
     if not await self.rule(event):
         return
     for handler in self.handlers:
         try:
             await handler(event)
         except Exception:
-            traceback.print_exc()
`,21),l=[t];function h(r,p,k,o,d,c){return a(),i("div",null,l)}const y=s(n,[["render",h]]);export{u as __pageData,y as default}; + traceback.print_exc()
`,21)]))}const g=i(t,[["render",l]]);export{c as __pageData,g as default}; diff --git a/assets/en_dev_api_session_matcher.md.DJciHvHX.lean.js b/assets/en_dev_api_session_matcher.md.DJciHvHX.lean.js new file mode 100644 index 00000000..e3dcf6a3 --- /dev/null +++ b/assets/en_dev_api_session_matcher.md.DJciHvHX.lean.js @@ -0,0 +1,17 @@ +import{_ as i,c as a,a7 as e,o as n}from"./chunks/framework.jrU0lkHV.js";const c=JSON.parse('{"title":"liteyuki.session.matcher","description":"","frontmatter":{"title":"liteyuki.session.matcher"},"headers":[],"relativePath":"en/dev/api/session/matcher.md","filePath":"en/dev/api/session/matcher.md","lastUpdated":null}'),t={name:"en/dev/api/session/matcher.md"};function l(h,s,r,p,k,o){return n(),a("div",null,s[0]||(s[0]=[e(`

Module liteyuki.session.matcher

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 下午10:51 @Author : snowykami @Email : snowykami@outlook.com @File : matcher.py @Software: PyCharm

class Matcher


func __init__(self, rule: Rule, priority: int, block: bool)

Description: 匹配器

Arguments:

  • rule: 规则
  • priority: 优先级 >= 0
  • block: 是否阻断后续优先级更低的匹配器
Source code or View on GitHub
python
def __init__(self, rule: Rule, priority: int, block: bool):
+    self.rule = rule
+    self.priority = priority
+    self.block = block
+    self.handlers: list[EventHandler] = []

func handle(self) -> Callable[[EventHandler], EventHandler]

Description: 添加处理函数,装饰器

Return: 装饰器 handler

Source code or View on GitHub
python
def handle(self) -> Callable[[EventHandler], EventHandler]:
+
+    def decorator(handler: EventHandler) -> EventHandler:
+        self.handlers.append(handler)
+        return handler
+    return decorator

async func run(self, event: MessageEvent) -> None

Description: 运行处理函数

Arguments:

  • event:
Source code or View on GitHub
python
async def run(self, event: MessageEvent) -> None:
+    if not await self.rule(event):
+        return
+    for handler in self.handlers:
+        try:
+            await handler(event)
+        except Exception:
+            traceback.print_exc()
`,21)]))}const g=i(t,[["render",l]]);export{c as __pageData,g as default}; diff --git a/assets/en_dev_api_message_on.md.DOPTBR4O.js b/assets/en_dev_api_session_on.md.C-j6_GTu.js similarity index 77% rename from assets/en_dev_api_message_on.md.DOPTBR4O.js rename to assets/en_dev_api_session_on.md.C-j6_GTu.js index 0cbb9431..0c9adf03 100644 --- a/assets/en_dev_api_message_on.md.DOPTBR4O.js +++ b/assets/en_dev_api_session_on.md.C-j6_GTu.js @@ -1,15 +1,15 @@ -import{_ as s,c as i,o as a,a9 as e}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"liteyuki.message.on","description":"","frontmatter":{"title":"liteyuki.message.on"},"headers":[],"relativePath":"en/dev/api/message/on.md","filePath":"en/dev/api/message/on.md","lastUpdated":1725101868000}'),t={name:"en/dev/api/message/on.md"},n=e(`

Module liteyuki.message.on

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 下午10:52 @Author : snowykami @Email : snowykami@outlook.com @File : on.py @Software: PyCharm


func add_matcher(matcher: Matcher)

Source code or View on GitHub
python
def add_matcher(matcher: Matcher):
+import{_ as i,c as a,a7 as e,o as t}from"./chunks/framework.jrU0lkHV.js";const y=JSON.parse('{"title":"liteyuki.session.on","description":"","frontmatter":{"title":"liteyuki.session.on"},"headers":[],"relativePath":"en/dev/api/session/on.md","filePath":"en/dev/api/session/on.md","lastUpdated":null}'),n={name:"en/dev/api/session/on.md"};function l(h,s,r,k,p,o){return t(),a("div",null,s[0]||(s[0]=[e(`

Module liteyuki.session.on

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 下午10:52 @Author : snowykami @Email : snowykami@outlook.com @File : on.py @Software: PyCharm


func add_matcher(matcher: Matcher)

Source code or View on GitHub
python
def add_matcher(matcher: Matcher):
     for i, m in enumerate(_matcher_list):
         if m.priority < matcher.priority:
             _matcher_list.insert(i, matcher)
             break
     else:
-        _matcher_list.append(matcher)

func on_message(rule: Rule = empty_rule, priority: int = 0, block: bool = False) -> Matcher

Source code or View on GitHub
python
def on_message(rule: Rule=empty_rule, priority: int=0, block: bool=False) -> Matcher:
+        _matcher_list.append(matcher)

func on_message(rule: Rule = empty_rule, priority: int = 0, block: bool = False) -> Matcher

Source code or View on GitHub
python
def on_message(rule: Rule=empty_rule, priority: int=0, block: bool=False) -> Matcher:
     matcher = Matcher(rule, priority, block)
     add_matcher(matcher)
-    return matcher

func on_keywords(keywords: list[str], rule = empty_rule, priority: int = 0, block: bool = False) -> Matcher

Source code or View on GitHub
python
def on_keywords(keywords: list[str], rule=empty_rule, priority: int=0, block: bool=False) -> Matcher:
+    return matcher

func on_keywords(keywords: list[str], rule = empty_rule, priority: int = 0, block: bool = False) -> Matcher

Source code or View on GitHub
python
def on_keywords(keywords: list[str], rule=empty_rule, priority: int=0, block: bool=False) -> Matcher:
 
     @Rule
     async def on_keywords_rule(event: MessageEvent):
         return any((keyword in event.raw_message for keyword in keywords))
-    return on_message(on_keywords_rule & rule, priority, block)
`,12),l=[n];function h(r,k,p,o,d,y){return a(),i("div",null,l)}const u=s(t,[["render",h]]);export{g as __pageData,u as default}; + return on_message(on_keywords_rule & rule, priority, block)
`,12)]))}const c=i(n,[["render",l]]);export{y as __pageData,c as default}; diff --git a/assets/en_dev_api_session_on.md.C-j6_GTu.lean.js b/assets/en_dev_api_session_on.md.C-j6_GTu.lean.js new file mode 100644 index 00000000..0c9adf03 --- /dev/null +++ b/assets/en_dev_api_session_on.md.C-j6_GTu.lean.js @@ -0,0 +1,15 @@ +import{_ as i,c as a,a7 as e,o as t}from"./chunks/framework.jrU0lkHV.js";const y=JSON.parse('{"title":"liteyuki.session.on","description":"","frontmatter":{"title":"liteyuki.session.on"},"headers":[],"relativePath":"en/dev/api/session/on.md","filePath":"en/dev/api/session/on.md","lastUpdated":null}'),n={name:"en/dev/api/session/on.md"};function l(h,s,r,k,p,o){return t(),a("div",null,s[0]||(s[0]=[e(`

Module liteyuki.session.on

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 下午10:52 @Author : snowykami @Email : snowykami@outlook.com @File : on.py @Software: PyCharm


func add_matcher(matcher: Matcher)

Source code or View on GitHub
python
def add_matcher(matcher: Matcher):
+    for i, m in enumerate(_matcher_list):
+        if m.priority < matcher.priority:
+            _matcher_list.insert(i, matcher)
+            break
+    else:
+        _matcher_list.append(matcher)

func on_message(rule: Rule = empty_rule, priority: int = 0, block: bool = False) -> Matcher

Source code or View on GitHub
python
def on_message(rule: Rule=empty_rule, priority: int=0, block: bool=False) -> Matcher:
+    matcher = Matcher(rule, priority, block)
+    add_matcher(matcher)
+    return matcher

func on_keywords(keywords: list[str], rule = empty_rule, priority: int = 0, block: bool = False) -> Matcher

Source code or View on GitHub
python
def on_keywords(keywords: list[str], rule=empty_rule, priority: int=0, block: bool=False) -> Matcher:
+
+    @Rule
+    async def on_keywords_rule(event: MessageEvent):
+        return any((keyword in event.raw_message for keyword in keywords))
+    return on_message(on_keywords_rule & rule, priority, block)
`,12)]))}const c=i(n,[["render",l]]);export{y as __pageData,c as default}; diff --git a/assets/en_dev_api_session_rule.md.DXmjjk0K.js b/assets/en_dev_api_session_rule.md.DXmjjk0K.js new file mode 100644 index 00000000..f1cd54e1 --- /dev/null +++ b/assets/en_dev_api_session_rule.md.DXmjjk0K.js @@ -0,0 +1 @@ +import{_ as i,c as e,a7 as a,o as n}from"./chunks/framework.jrU0lkHV.js";const u=JSON.parse('{"title":"liteyuki.session.rule","description":"","frontmatter":{"title":"liteyuki.session.rule"},"headers":[],"relativePath":"en/dev/api/session/rule.md","filePath":"en/dev/api/session/rule.md","lastUpdated":null}'),t={name:"en/dev/api/session/rule.md"};function l(h,s,r,p,k,o){return n(),e("div",null,s[0]||(s[0]=[a('

Module liteyuki.session.rule

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 下午10:55 @Author : snowykami @Email : snowykami@outlook.com @File : rule.py @Software: PyCharm

var RuleHandlerFunc

  • Description: 规则函数签名

  • Type: TypeAlias

  • Default: Callable[[MessageEvent], Coroutine[None, None, bool]]

class Rule


func __init__(self, handler: RuleHandlerFunc)

Source code or View on GitHub
python
def __init__(self, handler: RuleHandlerFunc):\n    self.handler = handler

func self | other: Rule => Rule

Source code or View on GitHub
python
def __or__(self, other: 'Rule') -> 'Rule':\n\n    async def combined_handler(event: MessageEvent) -> bool:\n        return await self.handler(event) or await other.handler(event)\n    return Rule(combined_handler)

func self & other: Rule => Rule

Source code or View on GitHub
python
def __and__(self, other: 'Rule') -> 'Rule':\n\n    async def combined_handler(event: MessageEvent) -> bool:\n        return await self.handler(event) and await other.handler(event)\n    return Rule(combined_handler)

async func self () event: MessageEvent => bool

Source code or View on GitHub
python
async def __call__(self, event: MessageEvent) -> bool:\n    if self.handler is None:\n        return True\n    return await self.handler(event)

@Rule

async func empty_rule(event: MessageEvent) -> bool

Source code or View on GitHub
python
@Rule\nasync def empty_rule(event: MessageEvent) -> bool:\n    return True

@Rule

async func is_su_rule(event: MessageEvent) -> bool

Source code or View on GitHub
python
@Rule\nasync def is_su_rule(event: MessageEvent) -> bool:\n    return str(event.user_id) in _superusers
',26)]))}const c=i(t,[["render",l]]);export{u as __pageData,c as default}; diff --git a/assets/en_dev_api_session_rule.md.DXmjjk0K.lean.js b/assets/en_dev_api_session_rule.md.DXmjjk0K.lean.js new file mode 100644 index 00000000..f1cd54e1 --- /dev/null +++ b/assets/en_dev_api_session_rule.md.DXmjjk0K.lean.js @@ -0,0 +1 @@ +import{_ as i,c as e,a7 as a,o as n}from"./chunks/framework.jrU0lkHV.js";const u=JSON.parse('{"title":"liteyuki.session.rule","description":"","frontmatter":{"title":"liteyuki.session.rule"},"headers":[],"relativePath":"en/dev/api/session/rule.md","filePath":"en/dev/api/session/rule.md","lastUpdated":null}'),t={name:"en/dev/api/session/rule.md"};function l(h,s,r,p,k,o){return n(),e("div",null,s[0]||(s[0]=[a('

Module liteyuki.session.rule

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 下午10:55 @Author : snowykami @Email : snowykami@outlook.com @File : rule.py @Software: PyCharm

var RuleHandlerFunc

  • Description: 规则函数签名

  • Type: TypeAlias

  • Default: Callable[[MessageEvent], Coroutine[None, None, bool]]

class Rule


func __init__(self, handler: RuleHandlerFunc)

Source code or View on GitHub
python
def __init__(self, handler: RuleHandlerFunc):\n    self.handler = handler

func self | other: Rule => Rule

Source code or View on GitHub
python
def __or__(self, other: 'Rule') -> 'Rule':\n\n    async def combined_handler(event: MessageEvent) -> bool:\n        return await self.handler(event) or await other.handler(event)\n    return Rule(combined_handler)

func self & other: Rule => Rule

Source code or View on GitHub
python
def __and__(self, other: 'Rule') -> 'Rule':\n\n    async def combined_handler(event: MessageEvent) -> bool:\n        return await self.handler(event) and await other.handler(event)\n    return Rule(combined_handler)

async func self () event: MessageEvent => bool

Source code or View on GitHub
python
async def __call__(self, event: MessageEvent) -> bool:\n    if self.handler is None:\n        return True\n    return await self.handler(event)

@Rule

async func empty_rule(event: MessageEvent) -> bool

Source code or View on GitHub
python
@Rule\nasync def empty_rule(event: MessageEvent) -> bool:\n    return True

@Rule

async func is_su_rule(event: MessageEvent) -> bool

Source code or View on GitHub
python
@Rule\nasync def is_su_rule(event: MessageEvent) -> bool:\n    return str(event.user_id) in _superusers
',26)]))}const c=i(t,[["render",l]]);export{u as __pageData,c as default}; diff --git a/assets/en_dev_api_session_session.md.CkKWDq6y.js b/assets/en_dev_api_session_session.md.CkKWDq6y.js new file mode 100644 index 00000000..df828dc7 --- /dev/null +++ b/assets/en_dev_api_session_session.md.CkKWDq6y.js @@ -0,0 +1 @@ +import{_ as i,c as n,j as e,a as s,o as t}from"./chunks/framework.jrU0lkHV.js";const k=JSON.parse('{"title":"liteyuki.session.session","description":"","frontmatter":{"title":"liteyuki.session.session"},"headers":[],"relativePath":"en/dev/api/session/session.md","filePath":"en/dev/api/session/session.md","lastUpdated":null}'),a={name:"en/dev/api/session/session.md"};function l(r,o,d,u,m,p){return t(),n("div",null,o[0]||(o[0]=[e("h1",{id:"module-liteyuki-session-session",tabindex:"-1"},[e("strong",null,"Module"),s(),e("code",null,"liteyuki.session.session"),s(),e("a",{class:"header-anchor",href:"#module-liteyuki-session-session","aria-label":'Permalink to "**Module** `liteyuki.session.session`"'},"​")],-1),e("p",null,"Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved",-1),e("p",null,[s("@Time : 2024/8/19 下午10:47 @Author : snowykami @Email : "),e("a",{href:"mailto:snowykami@outlook.com",target:"_blank",rel:"noreferrer"},"snowykami@outlook.com"),s(" @File : session.py @Software: PyCharm")],-1)]))}const y=i(a,[["render",l]]);export{k as __pageData,y as default}; diff --git a/assets/en_dev_api_session_session.md.CkKWDq6y.lean.js b/assets/en_dev_api_session_session.md.CkKWDq6y.lean.js new file mode 100644 index 00000000..df828dc7 --- /dev/null +++ b/assets/en_dev_api_session_session.md.CkKWDq6y.lean.js @@ -0,0 +1 @@ +import{_ as i,c as n,j as e,a as s,o as t}from"./chunks/framework.jrU0lkHV.js";const k=JSON.parse('{"title":"liteyuki.session.session","description":"","frontmatter":{"title":"liteyuki.session.session"},"headers":[],"relativePath":"en/dev/api/session/session.md","filePath":"en/dev/api/session/session.md","lastUpdated":null}'),a={name:"en/dev/api/session/session.md"};function l(r,o,d,u,m,p){return t(),n("div",null,o[0]||(o[0]=[e("h1",{id:"module-liteyuki-session-session",tabindex:"-1"},[e("strong",null,"Module"),s(),e("code",null,"liteyuki.session.session"),s(),e("a",{class:"header-anchor",href:"#module-liteyuki-session-session","aria-label":'Permalink to "**Module** `liteyuki.session.session`"'},"​")],-1),e("p",null,"Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved",-1),e("p",null,[s("@Time : 2024/8/19 下午10:47 @Author : snowykami @Email : "),e("a",{href:"mailto:snowykami@outlook.com",target:"_blank",rel:"noreferrer"},"snowykami@outlook.com"),s(" @File : session.py @Software: PyCharm")],-1)]))}const y=i(a,[["render",l]]);export{k as __pageData,y as default}; diff --git a/assets/en_dev_api_utils.md.DKuaapxu.js b/assets/en_dev_api_utils.md.BMFkr-N2.js similarity index 87% rename from assets/en_dev_api_utils.md.DKuaapxu.js rename to assets/en_dev_api_utils.md.BMFkr-N2.js index 63b378f4..9c242988 100644 --- a/assets/en_dev_api_utils.md.DKuaapxu.js +++ b/assets/en_dev_api_utils.md.BMFkr-N2.js @@ -1,4 +1,4 @@ -import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"liteyuki.utils","description":"","frontmatter":{"title":"liteyuki.utils"},"headers":[],"relativePath":"en/dev/api/utils.md","filePath":"en/dev/api/utils.md","lastUpdated":1725101868000}'),t={name:"en/dev/api/utils.md"},l=n(`

Module liteyuki.utils

一些常用的工具类,部分来源于 nonebot 并遵循其许可进行修改


func is_coroutine_callable(call: Callable[..., Any]) -> bool

Description: 判断是否为协程可调用对象

Arguments:

  • call: 可调用对象

Return: bool: 是否为协程可调用对象

Source code or View on GitHub
python
def is_coroutine_callable(call: Callable[..., Any]) -> bool:
+import{_ as i,c as a,a7 as n,o as t}from"./chunks/framework.jrU0lkHV.js";const c=JSON.parse('{"title":"liteyuki.utils","description":"","frontmatter":{"title":"liteyuki.utils"},"headers":[],"relativePath":"en/dev/api/utils.md","filePath":"en/dev/api/utils.md","lastUpdated":1725101868000}'),l={name:"en/dev/api/utils.md"};function e(h,s,p,k,r,o){return t(),a("div",null,s[0]||(s[0]=[n(`

Module liteyuki.utils

一些常用的工具类,部分来源于 nonebot 并遵循其许可进行修改


func is_coroutine_callable(call: Callable[..., Any]) -> bool

Description: 判断是否为协程可调用对象

Arguments:

  • call: 可调用对象

Return: bool: 是否为协程可调用对象

Source code or View on GitHub
python
def is_coroutine_callable(call: Callable[..., Any]) -> bool:
     if inspect.isroutine(call):
         return inspect.iscoroutinefunction(call)
     if inspect.isclass(call):
@@ -30,4 +30,4 @@ import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const g
     async def wrapper(*args, **kwargs):
         return func(*args, **kwargs)
     wrapper.__signature__ = inspect.signature(func)
-    return wrapper
`,35),e=[l];function h(p,k,r,o,d,c){return a(),i("div",null,e)}const u=s(t,[["render",h]]);export{g as __pageData,u as default}; + return wrapper
`,35)]))}const E=i(l,[["render",e]]);export{c as __pageData,E as default}; diff --git a/assets/en_dev_api_utils.md.BMFkr-N2.lean.js b/assets/en_dev_api_utils.md.BMFkr-N2.lean.js new file mode 100644 index 00000000..9c242988 --- /dev/null +++ b/assets/en_dev_api_utils.md.BMFkr-N2.lean.js @@ -0,0 +1,33 @@ +import{_ as i,c as a,a7 as n,o as t}from"./chunks/framework.jrU0lkHV.js";const c=JSON.parse('{"title":"liteyuki.utils","description":"","frontmatter":{"title":"liteyuki.utils"},"headers":[],"relativePath":"en/dev/api/utils.md","filePath":"en/dev/api/utils.md","lastUpdated":1725101868000}'),l={name:"en/dev/api/utils.md"};function e(h,s,p,k,r,o){return t(),a("div",null,s[0]||(s[0]=[n(`

Module liteyuki.utils

一些常用的工具类,部分来源于 nonebot 并遵循其许可进行修改


func is_coroutine_callable(call: Callable[..., Any]) -> bool

Description: 判断是否为协程可调用对象

Arguments:

  • call: 可调用对象

Return: bool: 是否为协程可调用对象

Source code or View on GitHub
python
def is_coroutine_callable(call: Callable[..., Any]) -> bool:
+    if inspect.isroutine(call):
+        return inspect.iscoroutinefunction(call)
+    if inspect.isclass(call):
+        return False
+    func_ = getattr(call, '__call__', None)
+    return inspect.iscoroutinefunction(func_)

func run_coroutine(*coro: Coroutine)

Description: 运行协程

Arguments:

  • coro:
Source code or View on GitHub
python
def run_coroutine(*coro: Coroutine):
+    try:
+        loop = asyncio.get_running_loop()
+        if loop.is_running():
+            for c in coro:
+                asyncio.ensure_future(c)
+        else:
+            for c in coro:
+                loop.run_until_complete(c)
+    except RuntimeError:
+        loop = asyncio.new_event_loop()
+        asyncio.set_event_loop(loop)
+        loop.run_until_complete(asyncio.gather(*coro))
+        loop.close()
+    except Exception as e:
+        logger.error(f'Exception occurred: {e}')

func run_coroutine_in_thread(*coro: Coroutine)

Description: 在新线程中运行协程

Arguments:

  • coro:
Source code or View on GitHub
python
def run_coroutine_in_thread(*coro: Coroutine):
+    threading.Thread(target=run_coroutine, args=coro, daemon=True).start()

func path_to_module_name(path: Path) -> str

Description: 转换路径为模块名

Arguments:

  • path: 路径a/b/c/d -> a.b.c.d

Return: str: 模块名

Source code or View on GitHub
python
def path_to_module_name(path: Path) -> str:
+    rel_path = path.resolve().relative_to(Path.cwd().resolve())
+    if rel_path.stem == '__init__':
+        return '.'.join(rel_path.parts[:-1])
+    else:
+        return '.'.join(rel_path.parts[:-1] + (rel_path.stem,))

func async_wrapper(func: Callable[..., Any]) -> Callable[..., Coroutine]

Description: 异步包装器

Arguments:

  • func: Sync Callable

Return: Coroutine: Asynchronous Callable

Source code or View on GitHub
python
def async_wrapper(func: Callable[..., Any]) -> Callable[..., Coroutine]:
+
+    async def wrapper(*args, **kwargs):
+        return func(*args, **kwargs)
+    wrapper.__signature__ = inspect.signature(func)
+    return wrapper
`,35)]))}const E=i(l,[["render",e]]);export{c as __pageData,E as default}; diff --git a/assets/en_dev_api_utils.md.DKuaapxu.lean.js b/assets/en_dev_api_utils.md.DKuaapxu.lean.js deleted file mode 100644 index ffb650fa..00000000 --- a/assets/en_dev_api_utils.md.DKuaapxu.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"liteyuki.utils","description":"","frontmatter":{"title":"liteyuki.utils"},"headers":[],"relativePath":"en/dev/api/utils.md","filePath":"en/dev/api/utils.md","lastUpdated":1725101868000}'),t={name:"en/dev/api/utils.md"},l=n("",35),e=[l];function h(p,k,r,o,d,c){return a(),i("div",null,e)}const u=s(t,[["render",h]]);export{g as __pageData,u as default}; diff --git a/assets/en_dev_best_practices.md.D99RjFWq.js b/assets/en_dev_best_practices.md.D99RjFWq.js new file mode 100644 index 00000000..aac53d55 --- /dev/null +++ b/assets/en_dev_best_practices.md.D99RjFWq.js @@ -0,0 +1 @@ +import{_ as e,c as i,a7 as a,o as r}from"./chunks/framework.jrU0lkHV.js";const k=JSON.parse('{"title":"Best Practices","description":"","frontmatter":{"title":"Best Practices","order":10},"headers":[],"relativePath":"en/dev/best_practices.md","filePath":"en/dev/best_practices.md","lastUpdated":1726860160000}'),o={name:"en/dev/best_practices.md"};function l(n,t,s,u,c,h){return r(),i("div",null,t[0]||(t[0]=[a('

Best Practices

Bot applications

plugins

Others

  • liteyuki starmap: Liteyuki official star map, showing all instances of Liteyuki and their location distribution
  • TRSS_Liteyuki: LiteyukiBot management script
  • litedoc: Liteyuki API documentation generator
  • liteyukibot-api (closed source): Liteyuki Bot stat interface
',7)]))}const b=e(o,[["render",l]]);export{k as __pageData,b as default}; diff --git a/assets/en_dev_best_practices.md.D99RjFWq.lean.js b/assets/en_dev_best_practices.md.D99RjFWq.lean.js new file mode 100644 index 00000000..aac53d55 --- /dev/null +++ b/assets/en_dev_best_practices.md.D99RjFWq.lean.js @@ -0,0 +1 @@ +import{_ as e,c as i,a7 as a,o as r}from"./chunks/framework.jrU0lkHV.js";const k=JSON.parse('{"title":"Best Practices","description":"","frontmatter":{"title":"Best Practices","order":10},"headers":[],"relativePath":"en/dev/best_practices.md","filePath":"en/dev/best_practices.md","lastUpdated":1726860160000}'),o={name:"en/dev/best_practices.md"};function l(n,t,s,u,c,h){return r(),i("div",null,t[0]||(t[0]=[a('

Best Practices

Bot applications

plugins

Others

  • liteyuki starmap: Liteyuki official star map, showing all instances of Liteyuki and their location distribution
  • TRSS_Liteyuki: LiteyukiBot management script
  • litedoc: Liteyuki API documentation generator
  • liteyukibot-api (closed source): Liteyuki Bot stat interface
',7)]))}const b=e(o,[["render",l]]);export{k as __pageData,b as default}; diff --git a/assets/en_dev_best_practices.md.rGudE50n.js b/assets/en_dev_best_practices.md.rGudE50n.js deleted file mode 100644 index d3b6fd3b..00000000 --- a/assets/en_dev_best_practices.md.rGudE50n.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as t,c as e,o as i,a9 as a}from"./chunks/framework.C4_mTacX.js";const b=JSON.parse('{"title":"Best Practices","description":"","frontmatter":{"title":"Best Practices","order":10},"headers":[],"relativePath":"en/dev/best_practices.md","filePath":"en/dev/best_practices.md","lastUpdated":1726860160000}'),r={name:"en/dev/best_practices.md"},o=a('

Best Practices

Bot applications

plugins

Others

  • liteyuki starmap: Liteyuki official star map, showing all instances of Liteyuki and their location distribution
  • TRSS_Liteyuki: LiteyukiBot management script
  • litedoc: Liteyuki API documentation generator
  • liteyukibot-api (closed source): Liteyuki Bot stat interface
',7),l=[o];function n(s,u,c,h,p,k){return i(),e("div",null,l)}const _=t(r,[["render",n]]);export{b as __pageData,_ as default}; diff --git a/assets/en_dev_best_practices.md.rGudE50n.lean.js b/assets/en_dev_best_practices.md.rGudE50n.lean.js deleted file mode 100644 index 5ef04ee9..00000000 --- a/assets/en_dev_best_practices.md.rGudE50n.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as t,c as e,o as i,a9 as a}from"./chunks/framework.C4_mTacX.js";const b=JSON.parse('{"title":"Best Practices","description":"","frontmatter":{"title":"Best Practices","order":10},"headers":[],"relativePath":"en/dev/best_practices.md","filePath":"en/dev/best_practices.md","lastUpdated":1726860160000}'),r={name:"en/dev/best_practices.md"},o=a("",7),l=[o];function n(s,u,c,h,p,k){return i(),e("div",null,l)}const _=t(r,[["render",n]]);export{b as __pageData,_ as default}; diff --git a/assets/en_dev_comm.md.bOf5Cc-F.js b/assets/en_dev_comm.md.DmDE4NY9.js similarity index 84% rename from assets/en_dev_comm.md.bOf5Cc-F.js rename to assets/en_dev_comm.md.DmDE4NY9.js index e966f52f..a5045e63 100644 --- a/assets/en_dev_comm.md.bOf5Cc-F.js +++ b/assets/en_dev_comm.md.DmDE4NY9.js @@ -1,4 +1,4 @@ -import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"Process Communication","description":"","frontmatter":{"title":"Process Communication","order":4},"headers":[],"relativePath":"en/dev/comm.md","filePath":"en/dev/comm.md","lastUpdated":1726859552000}'),e={name:"en/dev/comm.md"},t=n(`

Channel Communication

Introduction

LiteyukiBot is running in the main process MainProcess, and other plugin framework processes are child processes that come with it. Therefore, it is impossible to communicate through shared memory and direct object transfer. Liteyuki provides a channel Channel for inter-process communication like go. You can send messages to other processes through Channel and listen to messages from other processes.

Example

The channel is full-duplex, with two receiving modes, but only one mode can be used for a channel, that is, passive mode and active mode, passive mode is implemented by the chan.on_receive() decorator callback function, and active mode needs to call chan.receive() to implement

  • 创建子进程的同时会初始化一个被动通道和一个主动通道,且通道标识为{process_name}-active{process_name}-passive
  • 主进程中通过get_channel函数获取通道对象
  • 子进程中导入单例active_channelpassive_channel即可

在轻雪插件中(主进程中)

python
import asyncio
+import{_ as i,c as a,a7 as n,o as e}from"./chunks/framework.jrU0lkHV.js";const c=JSON.parse('{"title":"Process Communication","description":"","frontmatter":{"title":"Process Communication","order":4},"headers":[],"relativePath":"en/dev/comm.md","filePath":"en/dev/comm.md","lastUpdated":1726859552000}'),t={name:"en/dev/comm.md"};function l(h,s,p,k,r,o){return e(),a("div",null,s[0]||(s[0]=[n(`

Channel Communication

Introduction

LiteyukiBot is running in the main process MainProcess, and other plugin framework processes are child processes that come with it. Therefore, it is impossible to communicate through shared memory and direct object transfer. Liteyuki provides a channel Channel for inter-process communication like go. You can send messages to other processes through Channel and listen to messages from other processes.

Example

The channel is full-duplex, with two receiving modes, but only one mode can be used for a channel, that is, passive mode and active mode, passive mode is implemented by the chan.on_receive() decorator callback function, and active mode needs to call chan.receive() to implement

  • 创建子进程的同时会初始化一个被动通道和一个主动通道,且通道标识为{process_name}-active{process_name}-passive
  • 主进程中通过get_channel函数获取通道对象
  • 子进程中导入单例active_channelpassive_channel即可

在轻雪插件中(主进程中)

python
import asyncio
 
 from liteyuki.comm import get_channel, Channel
 from liteyuki import get_bot
@@ -40,4 +40,4 @@ import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const g
 ...

共享内存通信

简介

  • 相比于普通进程通信,内存共享使得代码编写更加简洁,轻雪框架提供了一个内存共享通信的接口,你可以通过storage模块实现内存共享通信,该模块封装通道实现
  • 内存共享是线程安全的,你可以在多个线程中读写共享内存,线程锁会自动保护共享内存的读写操作

示例

在任意进程中均可使用

python
from liteyuki.comm.storage import shared_memory
 
 shared_memory.set("key", "value")  # 设置共享内存
-value = shared_memory.get("key")  # 获取共享内存

源代码:liteyuki/comm/storage.py

`,19),l=[t];function h(p,k,r,o,d,c){return a(),i("div",null,l)}const y=s(e,[["render",h]]);export{g as __pageData,y as default}; +value = shared_memory.get("key") # 获取共享内存

源代码:liteyuki/comm/storage.py

`,19)]))}const E=i(t,[["render",l]]);export{c as __pageData,E as default}; diff --git a/assets/en_dev_comm.md.DmDE4NY9.lean.js b/assets/en_dev_comm.md.DmDE4NY9.lean.js new file mode 100644 index 00000000..a5045e63 --- /dev/null +++ b/assets/en_dev_comm.md.DmDE4NY9.lean.js @@ -0,0 +1,43 @@ +import{_ as i,c as a,a7 as n,o as e}from"./chunks/framework.jrU0lkHV.js";const c=JSON.parse('{"title":"Process Communication","description":"","frontmatter":{"title":"Process Communication","order":4},"headers":[],"relativePath":"en/dev/comm.md","filePath":"en/dev/comm.md","lastUpdated":1726859552000}'),t={name:"en/dev/comm.md"};function l(h,s,p,k,r,o){return e(),a("div",null,s[0]||(s[0]=[n(`

Channel Communication

Introduction

LiteyukiBot is running in the main process MainProcess, and other plugin framework processes are child processes that come with it. Therefore, it is impossible to communicate through shared memory and direct object transfer. Liteyuki provides a channel Channel for inter-process communication like go. You can send messages to other processes through Channel and listen to messages from other processes.

Example

The channel is full-duplex, with two receiving modes, but only one mode can be used for a channel, that is, passive mode and active mode, passive mode is implemented by the chan.on_receive() decorator callback function, and active mode needs to call chan.receive() to implement

  • 创建子进程的同时会初始化一个被动通道和一个主动通道,且通道标识为{process_name}-active{process_name}-passive
  • 主进程中通过get_channel函数获取通道对象
  • 子进程中导入单例active_channelpassive_channel即可

在轻雪插件中(主进程中)

python
import asyncio
+
+from liteyuki.comm import get_channel, Channel
+from liteyuki import get_bot
+
+# get_channel函数获取通道对象,参数为调用set_channel时的通道标识
+channel_passive = get_channel("nonebot-passive")  # 获取被动通道
+channel_active = get_channel("nonebot-active")  # 获取主动通道
+liteyuki_bot = get_bot()
+
+
+# 注册一个函数在轻雪启动后运行
+@liteyuki_bot.on_after_start
+async def send_data():
+    while True:
+        channel_passive.send("I am liteyuki main process passive")
+        channel_active.send("I am liteyuki main process active")
+        await asyncio.sleep(3)  # 每3秒发送一次消息

在子进程中(例如NoneBot插件中)

python
from nonebot import get_driver
+from liteyuki.comm import active_channel, passive_channel  # 子进程中获取通道直接导入进程全局单例即可
+from liteyuki.log import logger
+
+driver = get_driver()
+
+
+# 被动模式,通过装饰器注册一个函数在接收到消息时运行,每次接收到字符串数据时都会运行
+@passive_channel.on_receive(filter_func=lambda data: isinstance(data, str))
+async def on_passive_receive(data):
+    logger.info(f"Passive receive: {data}")
+
+
+# 注册一个函数在NoneBot启动后运行
+@driver.on_startup
+def on_startup():
+    while True:
+        data = active_channel.receive()
+        logger.info(f"Active receive: {data}")

启动后控制台输出

log
0000-00-00 00:00:00 [ℹ️信息] Passive receive: I am liteyuki main process passive
+0000-00-00 00:00:00 [ℹ️信息] Active receive: I am liteyuki main process active
+0000-00-00 00:00:03 [ℹ️信息] Passive receive: I am liteyuki main process passive
+0000-00-00 00:00:03 [ℹ️信息] Active receive: I am liteyuki main process active
+...

共享内存通信

简介

  • 相比于普通进程通信,内存共享使得代码编写更加简洁,轻雪框架提供了一个内存共享通信的接口,你可以通过storage模块实现内存共享通信,该模块封装通道实现
  • 内存共享是线程安全的,你可以在多个线程中读写共享内存,线程锁会自动保护共享内存的读写操作

示例

在任意进程中均可使用

python
from liteyuki.comm.storage import shared_memory
+
+shared_memory.set("key", "value")  # 设置共享内存
+value = shared_memory.get("key")  # 获取共享内存

源代码:liteyuki/comm/storage.py

`,19)]))}const E=i(t,[["render",l]]);export{c as __pageData,E as default}; diff --git a/assets/en_dev_comm.md.bOf5Cc-F.lean.js b/assets/en_dev_comm.md.bOf5Cc-F.lean.js deleted file mode 100644 index 816db943..00000000 --- a/assets/en_dev_comm.md.bOf5Cc-F.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"Process Communication","description":"","frontmatter":{"title":"Process Communication","order":4},"headers":[],"relativePath":"en/dev/comm.md","filePath":"en/dev/comm.md","lastUpdated":1726859552000}'),e={name:"en/dev/comm.md"},t=n("",19),l=[t];function h(p,k,r,o,d,c){return a(),i("div",null,l)}const y=s(e,[["render",h]]);export{g as __pageData,y as default}; diff --git a/assets/en_dev_guide.md.Bn04Nqso.js b/assets/en_dev_guide.md.Bn04Nqso.js new file mode 100644 index 00000000..9e69883b --- /dev/null +++ b/assets/en_dev_guide.md.Bn04Nqso.js @@ -0,0 +1 @@ +import{C as o}from"./chunks/ContributorBar.pWVsN6v9.js";import{c as t,a7 as i,G as r,o as a}from"./chunks/framework.jrU0lkHV.js";import"./chunks/theme.0PwJcuzq.js";const h=JSON.parse('{"title":"Development Guide","description":"","frontmatter":{"title":"Development Guide","order":0},"headers":[],"relativePath":"en/dev/guide.md","filePath":"en/dev/guide.md","lastUpdated":1725389024000}'),l={name:"en/dev/guide.md"},p=Object.assign(l,{setup(n){return(d,e)=>(a(),t("div",null,[e[0]||(e[0]=i('

Development Guide

How to Develop

Please read the Plugin Development and API Reference documents if you are developing a plugin.

If you need to submit code to the Liteyuki repository, please read the following:

  1. First fork a copy of the Liteyuki repository to your personal/organization account.
  2. Develop in your repository.
  3. Create a new branch in your repository and submit your code to this branch.
  4. Create a Pull Request in your repository to merge your branch into the main branch of the Liteyuki repository.
  • Participation in development assumes that you are already familiar with the basic usage of the Python language and the Liteyuki framework.
  • If you are developing documentation, please ensure that you are familiar with Markdown syntax and basic front-end knowledge.
  • Contact the repository maintainer in case of conflicts.

Suggestions

  • During development, you can use tools such as mypy, flake8, and black for code checking and formatting.
  • Enable developer mode by setting dev_mode: true in config.yml to see more debugging information in the console.

Project Structure

  • main.py: Bot entry file
  • liteyuki: Framework directory (liteyukibot)
  • src: Bot application source code directory
    • liteyuki_plugins: Liteyuki plugin directory
    • nonebot_plugins: Nonebot plugin directory
    • resources: Built-in resource packs directory
    • utils: Utility directory
  • tests: Unit test directory
  • docs: Documentation directory
    • en: English documentation
    • zh: Chinese documentation
  • docker: Docker related content directory

The liteyuki framework is included in the LiteyukiBot application, so this project is both the LiteyukiBot application repository and the liteyuki framework repository.

The src directory is the application part, please develop business logic in this directory. liteyuki_plugins and nonebot_plugins directories are plugin directories, please develop plugins in these directories.

Standardization

  • Code should follow PEP8 and Google Python Style Guide.
  • In addition, code submitted to the Liteyuki repository should follow the following guidelines:
    • Ensure that the code is runnable and harmless.
    • Ensure that the type hints in the code are correct.
    • Ensure that the comment style is Google Docstring or Liteyuki Docstring(recommended) to ensure that Litedoc can parse and generate documentation correctly.
    • Strings should be enclosed in double quotes " as much as possible, and single quotes ' should be used when nesting strings.
    • If there is a part for ordinary users, ensure that the documentation is complete (each language has corresponding documentation).
  • commit message should follow the following guidelines:
    • You should commit the code after completing a feature or fixing a bug, and not mix the code of multiple features or bugs together.
    • We use gitmoji to mark the type of commit, such as :sparkles: for introducing new features, :bug: for fixing bugs, etc., please refer to gitmoji for details.
    • The format of the commit message is <emoji> [type:] <message>, such as :sparkles: feat: add new field to event, where the type field is the type of commit, not much is required, but please fill in as much as possible; the message field is a brief description, in summary, what you did.
    • There is no restriction on the language of the commit message, and bilingual use is possible if conditions permit.
  • The documentation should follow Markdown syntax and support vitepress-related content:
    • Revise the documentation for each language when editing.
    • Ensure that the links in the document are correct and do not lead to inaccessible links.
    • Ensure that the User Documentation is easy to understand and the Development Documentation is detailed.

Finally

  • This project is a non-profit open-source project, and we welcome anyone to participate in development. Your contributions will make Liteyuki better.
',16)),r(o)]))}});export{h as __pageData,p as default}; diff --git a/assets/en_dev_guide.md.Bn04Nqso.lean.js b/assets/en_dev_guide.md.Bn04Nqso.lean.js new file mode 100644 index 00000000..9e69883b --- /dev/null +++ b/assets/en_dev_guide.md.Bn04Nqso.lean.js @@ -0,0 +1 @@ +import{C as o}from"./chunks/ContributorBar.pWVsN6v9.js";import{c as t,a7 as i,G as r,o as a}from"./chunks/framework.jrU0lkHV.js";import"./chunks/theme.0PwJcuzq.js";const h=JSON.parse('{"title":"Development Guide","description":"","frontmatter":{"title":"Development Guide","order":0},"headers":[],"relativePath":"en/dev/guide.md","filePath":"en/dev/guide.md","lastUpdated":1725389024000}'),l={name:"en/dev/guide.md"},p=Object.assign(l,{setup(n){return(d,e)=>(a(),t("div",null,[e[0]||(e[0]=i('

Development Guide

How to Develop

Please read the Plugin Development and API Reference documents if you are developing a plugin.

If you need to submit code to the Liteyuki repository, please read the following:

  1. First fork a copy of the Liteyuki repository to your personal/organization account.
  2. Develop in your repository.
  3. Create a new branch in your repository and submit your code to this branch.
  4. Create a Pull Request in your repository to merge your branch into the main branch of the Liteyuki repository.
  • Participation in development assumes that you are already familiar with the basic usage of the Python language and the Liteyuki framework.
  • If you are developing documentation, please ensure that you are familiar with Markdown syntax and basic front-end knowledge.
  • Contact the repository maintainer in case of conflicts.

Suggestions

  • During development, you can use tools such as mypy, flake8, and black for code checking and formatting.
  • Enable developer mode by setting dev_mode: true in config.yml to see more debugging information in the console.

Project Structure

  • main.py: Bot entry file
  • liteyuki: Framework directory (liteyukibot)
  • src: Bot application source code directory
    • liteyuki_plugins: Liteyuki plugin directory
    • nonebot_plugins: Nonebot plugin directory
    • resources: Built-in resource packs directory
    • utils: Utility directory
  • tests: Unit test directory
  • docs: Documentation directory
    • en: English documentation
    • zh: Chinese documentation
  • docker: Docker related content directory

The liteyuki framework is included in the LiteyukiBot application, so this project is both the LiteyukiBot application repository and the liteyuki framework repository.

The src directory is the application part, please develop business logic in this directory. liteyuki_plugins and nonebot_plugins directories are plugin directories, please develop plugins in these directories.

Standardization

  • Code should follow PEP8 and Google Python Style Guide.
  • In addition, code submitted to the Liteyuki repository should follow the following guidelines:
    • Ensure that the code is runnable and harmless.
    • Ensure that the type hints in the code are correct.
    • Ensure that the comment style is Google Docstring or Liteyuki Docstring(recommended) to ensure that Litedoc can parse and generate documentation correctly.
    • Strings should be enclosed in double quotes " as much as possible, and single quotes ' should be used when nesting strings.
    • If there is a part for ordinary users, ensure that the documentation is complete (each language has corresponding documentation).
  • commit message should follow the following guidelines:
    • You should commit the code after completing a feature or fixing a bug, and not mix the code of multiple features or bugs together.
    • We use gitmoji to mark the type of commit, such as :sparkles: for introducing new features, :bug: for fixing bugs, etc., please refer to gitmoji for details.
    • The format of the commit message is <emoji> [type:] <message>, such as :sparkles: feat: add new field to event, where the type field is the type of commit, not much is required, but please fill in as much as possible; the message field is a brief description, in summary, what you did.
    • There is no restriction on the language of the commit message, and bilingual use is possible if conditions permit.
  • The documentation should follow Markdown syntax and support vitepress-related content:
    • Revise the documentation for each language when editing.
    • Ensure that the links in the document are correct and do not lead to inaccessible links.
    • Ensure that the User Documentation is easy to understand and the Development Documentation is detailed.

Finally

  • This project is a non-profit open-source project, and we welcome anyone to participate in development. Your contributions will make Liteyuki better.
',16)),r(o)]))}});export{h as __pageData,p as default}; diff --git a/assets/en_dev_guide.md.OuXmspBQ.js b/assets/en_dev_guide.md.OuXmspBQ.js deleted file mode 100644 index b7710082..00000000 --- a/assets/en_dev_guide.md.OuXmspBQ.js +++ /dev/null @@ -1 +0,0 @@ -import{C as e}from"./chunks/ContributorBar.Br32ziZW.js";import{c as o,I as t,a9 as i,o as r}from"./chunks/framework.C4_mTacX.js";import"./chunks/theme.dkAQqrG2.js";const a=i('

Development Guide

How to Develop

Please read the Plugin Development and API Reference documents if you are developing a plugin.

If you need to submit code to the Liteyuki repository, please read the following:

  1. First fork a copy of the Liteyuki repository to your personal/organization account.
  2. Develop in your repository.
  3. Create a new branch in your repository and submit your code to this branch.
  4. Create a Pull Request in your repository to merge your branch into the main branch of the Liteyuki repository.
  • Participation in development assumes that you are already familiar with the basic usage of the Python language and the Liteyuki framework.
  • If you are developing documentation, please ensure that you are familiar with Markdown syntax and basic front-end knowledge.
  • Contact the repository maintainer in case of conflicts.

Suggestions

  • During development, you can use tools such as mypy, flake8, and black for code checking and formatting.
  • Enable developer mode by setting dev_mode: true in config.yml to see more debugging information in the console.

Project Structure

  • main.py: Bot entry file
  • liteyuki: Framework directory (liteyukibot)
  • src: Bot application source code directory
    • liteyuki_plugins: Liteyuki plugin directory
    • nonebot_plugins: Nonebot plugin directory
    • resources: Built-in resource packs directory
    • utils: Utility directory
  • tests: Unit test directory
  • docs: Documentation directory
    • en: English documentation
    • zh: Chinese documentation
  • docker: Docker related content directory

The liteyuki framework is included in the LiteyukiBot application, so this project is both the LiteyukiBot application repository and the liteyuki framework repository.

The src directory is the application part, please develop business logic in this directory. liteyuki_plugins and nonebot_plugins directories are plugin directories, please develop plugins in these directories.

Standardization

  • Code should follow PEP8 and Google Python Style Guide.
  • In addition, code submitted to the Liteyuki repository should follow the following guidelines:
    • Ensure that the code is runnable and harmless.
    • Ensure that the type hints in the code are correct.
    • Ensure that the comment style is Google Docstring or Liteyuki Docstring(recommended) to ensure that Litedoc can parse and generate documentation correctly.
    • Strings should be enclosed in double quotes " as much as possible, and single quotes ' should be used when nesting strings.
    • If there is a part for ordinary users, ensure that the documentation is complete (each language has corresponding documentation).
  • commit message should follow the following guidelines:
    • You should commit the code after completing a feature or fixing a bug, and not mix the code of multiple features or bugs together.
    • We use gitmoji to mark the type of commit, such as :sparkles: for introducing new features, :bug: for fixing bugs, etc., please refer to gitmoji for details.
    • The format of the commit message is <emoji> [type:] <message>, such as :sparkles: feat: add new field to event, where the type field is the type of commit, not much is required, but please fill in as much as possible; the message field is a brief description, in summary, what you did.
    • There is no restriction on the language of the commit message, and bilingual use is possible if conditions permit.
  • The documentation should follow Markdown syntax and support vitepress-related content:
    • Revise the documentation for each language when editing.
    • Ensure that the links in the document are correct and do not lead to inaccessible links.
    • Ensure that the User Documentation is easy to understand and the Development Documentation is detailed.

Finally

  • This project is a non-profit open-source project, and we welcome anyone to participate in development. Your contributions will make Liteyuki better.
',16),p=JSON.parse('{"title":"Development Guide","description":"","frontmatter":{"title":"Development Guide","order":0},"headers":[],"relativePath":"en/dev/guide.md","filePath":"en/dev/guide.md","lastUpdated":1725389024000}'),l={name:"en/dev/guide.md"},g=Object.assign(l,{setup(n){return(d,s)=>(r(),o("div",null,[a,t(e)]))}});export{p as __pageData,g as default}; diff --git a/assets/en_dev_guide.md.OuXmspBQ.lean.js b/assets/en_dev_guide.md.OuXmspBQ.lean.js deleted file mode 100644 index 646cef5a..00000000 --- a/assets/en_dev_guide.md.OuXmspBQ.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{C as e}from"./chunks/ContributorBar.Br32ziZW.js";import{c as o,I as t,a9 as i,o as r}from"./chunks/framework.C4_mTacX.js";import"./chunks/theme.dkAQqrG2.js";const a=i("",16),p=JSON.parse('{"title":"Development Guide","description":"","frontmatter":{"title":"Development Guide","order":0},"headers":[],"relativePath":"en/dev/guide.md","filePath":"en/dev/guide.md","lastUpdated":1725389024000}'),l={name:"en/dev/guide.md"},g=Object.assign(l,{setup(n){return(d,s)=>(r(),o("div",null,[a,t(e)]))}});export{p as __pageData,g as default}; diff --git a/assets/en_dev_lyfunc.md.DjX4Hm-0.js b/assets/en_dev_lyfunc.md.BVZAJYq4.js similarity index 84% rename from assets/en_dev_lyfunc.md.DjX4Hm-0.js rename to assets/en_dev_lyfunc.md.BVZAJYq4.js index c837ef4b..8a132f97 100644 --- a/assets/en_dev_lyfunc.md.DjX4Hm-0.js +++ b/assets/en_dev_lyfunc.md.BVZAJYq4.js @@ -1,4 +1,4 @@ -import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const F=JSON.parse('{"title":"Liteyuki Function","description":"","frontmatter":{"title":"Liteyuki Function","order":2},"headers":[],"relativePath":"en/dev/lyfunc.md","filePath":"en/dev/lyfunc.md","lastUpdated":1726859552000}'),t={name:"en/dev/lyfunc.md"},l=n(`

轻雪函数

轻雪函数 Liteyuki Function 是轻雪的一个功能,它允许你在轻雪中运行一些自定义的由数据驱动的命令,类似于Minecraft的mcfunction,属于资源包的一部分,但需单独起篇幅.

函数文件

函数文件放在资源包的functions目录下,文件名以.mcfunction .lyfunction .lyf结尾,例如test.mcfunction,文件内容为一系列的命令,每行一个命令,支持单行注释#(编辑时的语法高亮可采取shell格式),例如:

shell
# 在发信器输出"hello world"
+import{_ as i,c as a,a7 as n,o as t}from"./chunks/framework.jrU0lkHV.js";const c=JSON.parse('{"title":"Liteyuki Function","description":"","frontmatter":{"title":"Liteyuki Function","order":2},"headers":[],"relativePath":"en/dev/lyfunc.md","filePath":"en/dev/lyfunc.md","lastUpdated":1726859552000}'),l={name:"en/dev/lyfunc.md"};function e(h,s,p,k,d,r){return t(),a("div",null,s[0]||(s[0]=[n(`

轻雪函数

轻雪函数 Liteyuki Function 是轻雪的一个功能,它允许你在轻雪中运行一些自定义的由数据驱动的命令,类似于Minecraft的mcfunction,属于资源包的一部分,但需单独起篇幅.

函数文件

函数文件放在资源包的functions目录下,文件名以.mcfunction .lyfunction .lyf结尾,例如test.mcfunction,文件内容为一系列的命令,每行一个命令,支持单行注释#(编辑时的语法高亮可采取shell格式),例如:

shell
# 在发信器输出"hello world"
 cmd echo hello world
 
 # 如果你想同时输出多行内容可以尝试换行符(Python格式)
@@ -17,4 +17,4 @@ import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const F
 api friend_poke user_id=user_id
 sleep 0.2
 nohup function poke
-await

API

理论上所有基于onebotv11的api都可调用,不同Adapter api也有差别.

Onebot v11 API文档

结束关键字

由于LiteyukiBot基于异步运行, 所以在编写lyfunction时也要注意异步的调用,避免出现"单线程走到底"的情况是效率提升的关键.

await 异步任务结束关键字,用于结束当前已完成function的执行

WARNING

但若出现非单function的情况,有一个task任务没有完成而await被执行了,那么当前所有函数包的task都会被截停销毁

TIP

编写轻雪函数推荐你使用VS Code插件Liteyuki Function实现语法高亮

`,19),e=[l];function h(p,k,d,r,o,c){return a(),i("div",null,e)}const y=s(t,[["render",h]]);export{F as __pageData,y as default}; +await

API

理论上所有基于onebotv11的api都可调用,不同Adapter api也有差别.

Onebot v11 API文档

结束关键字

由于LiteyukiBot基于异步运行, 所以在编写lyfunction时也要注意异步的调用,避免出现"单线程走到底"的情况是效率提升的关键.

await 异步任务结束关键字,用于结束当前已完成function的执行

WARNING

但若出现非单function的情况,有一个task任务没有完成而await被执行了,那么当前所有函数包的task都会被截停销毁

TIP

编写轻雪函数推荐你使用VS Code插件Liteyuki Function实现语法高亮

`,19)]))}const g=i(l,[["render",e]]);export{c as __pageData,g as default}; diff --git a/assets/en_dev_lyfunc.md.BVZAJYq4.lean.js b/assets/en_dev_lyfunc.md.BVZAJYq4.lean.js new file mode 100644 index 00000000..8a132f97 --- /dev/null +++ b/assets/en_dev_lyfunc.md.BVZAJYq4.lean.js @@ -0,0 +1,20 @@ +import{_ as i,c as a,a7 as n,o as t}from"./chunks/framework.jrU0lkHV.js";const c=JSON.parse('{"title":"Liteyuki Function","description":"","frontmatter":{"title":"Liteyuki Function","order":2},"headers":[],"relativePath":"en/dev/lyfunc.md","filePath":"en/dev/lyfunc.md","lastUpdated":1726859552000}'),l={name:"en/dev/lyfunc.md"};function e(h,s,p,k,d,r){return t(),a("div",null,s[0]||(s[0]=[n(`

轻雪函数

轻雪函数 Liteyuki Function 是轻雪的一个功能,它允许你在轻雪中运行一些自定义的由数据驱动的命令,类似于Minecraft的mcfunction,属于资源包的一部分,但需单独起篇幅.

函数文件

函数文件放在资源包的functions目录下,文件名以.mcfunction .lyfunction .lyf结尾,例如test.mcfunction,文件内容为一系列的命令,每行一个命令,支持单行注释#(编辑时的语法高亮可采取shell格式),例如:

shell
# 在发信器输出"hello world"
+cmd echo hello world
+
+# 如果你想同时输出多行内容可以尝试换行符(Python格式)
+cmd echo hello world\\nLiteyuki bot

也支持句末注释,例如:

shell
cmd echo hello world # 输出"hello world"

命令文档

shell
var <var1=value1> [var2=value2] ...  # 定义变量
+cmd <command>  # 在设备上执行命令
+api <api_name> [var=value...]  # 调用Bot API
+function <func_name> # 调用函数,可递归
+sleep <time>  # 异步等待,单位s
+nohup <command>  # 使用新的task执行命令,即不等待
+end # 结束函数关键字,包括子task
+await # 等待所有异步任务结束,若函数中启动了其他task,需要在最后调用,否则task对象会被销毁

示例

shell
# 疯狂戳好友
+# 使用 /function poke user_id=123456 执行
+# 每隔0.2s戳两次,无限戳,会触发最大递归深度限制
+# 若要戳20s后停止,则需要删除await,添加sleep 20和end
+api friend_poke user_id=user_id
+api friend_poke user_id=user_id
+sleep 0.2
+nohup function poke
+await

API

理论上所有基于onebotv11的api都可调用,不同Adapter api也有差别.

Onebot v11 API文档

结束关键字

由于LiteyukiBot基于异步运行, 所以在编写lyfunction时也要注意异步的调用,避免出现"单线程走到底"的情况是效率提升的关键.

await 异步任务结束关键字,用于结束当前已完成function的执行

WARNING

但若出现非单function的情况,有一个task任务没有完成而await被执行了,那么当前所有函数包的task都会被截停销毁

TIP

编写轻雪函数推荐你使用VS Code插件Liteyuki Function实现语法高亮

`,19)]))}const g=i(l,[["render",e]]);export{c as __pageData,g as default}; diff --git a/assets/en_dev_lyfunc.md.DjX4Hm-0.lean.js b/assets/en_dev_lyfunc.md.DjX4Hm-0.lean.js deleted file mode 100644 index c54539c2..00000000 --- a/assets/en_dev_lyfunc.md.DjX4Hm-0.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const F=JSON.parse('{"title":"Liteyuki Function","description":"","frontmatter":{"title":"Liteyuki Function","order":2},"headers":[],"relativePath":"en/dev/lyfunc.md","filePath":"en/dev/lyfunc.md","lastUpdated":1726859552000}'),t={name:"en/dev/lyfunc.md"},l=n("",19),e=[l];function h(p,k,d,r,o,c){return a(),i("div",null,e)}const y=s(t,[["render",h]]);export{F as __pageData,y as default}; diff --git a/assets/en_dev_plugin.md.DoGEEBa3.js b/assets/en_dev_plugin.md.BMvHexfU.js similarity index 86% rename from assets/en_dev_plugin.md.DoGEEBa3.js rename to assets/en_dev_plugin.md.BMvHexfU.js index 9a5aa104..0346b177 100644 --- a/assets/en_dev_plugin.md.DoGEEBa3.js +++ b/assets/en_dev_plugin.md.BMvHexfU.js @@ -1,4 +1,4 @@ -import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const y=JSON.parse('{"title":"Liteyuki Plugin","description":"","frontmatter":{"title":"Liteyuki Plugin","order":3},"headers":[],"relativePath":"en/dev/plugin.md","filePath":"en/dev/plugin.md","lastUpdated":1726859552000}'),t={name:"en/dev/plugin.md"},h=n(`

简介

轻雪插件是轻雪内置的一部分功能,运行在主进程中,可以很高程度地扩展轻雪的功能

开始

创建插件

一个.py文件或一个包含__init__.py的文件夹即可被识别为插件

首先创建一个文件夹,例如watchdog_plugin,并在其中创建一个__init__.py文件,即可创建一个插件

__init__.py

python
from liteyuki.plugin import PluginMetadata, PluginType
+import{_ as i,c as a,a7 as n,o as t}from"./chunks/framework.jrU0lkHV.js";const o=JSON.parse('{"title":"Liteyuki Plugin","description":"","frontmatter":{"title":"Liteyuki Plugin","order":3},"headers":[],"relativePath":"en/dev/plugin.md","filePath":"en/dev/plugin.md","lastUpdated":1726859552000}'),h={name:"en/dev/plugin.md"};function l(p,s,e,k,d,r){return t(),a("div",null,s[0]||(s[0]=[n(`

简介

轻雪插件是轻雪内置的一部分功能,运行在主进程中,可以很高程度地扩展轻雪的功能

开始

创建插件

一个.py文件或一个包含__init__.py的文件夹即可被识别为插件

首先创建一个文件夹,例如watchdog_plugin,并在其中创建一个__init__.py文件,即可创建一个插件

__init__.py

python
from liteyuki.plugin import PluginMetadata, PluginType
 from .watch_dog import *    # 导入逻辑部分
 
 # 定义插件元数据
@@ -29,4 +29,4 @@ import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const y
     logger.debug(f"File {event.src_path} changed, reloading nonebot...")
     liteyuki.restart_process("nonebot")  # 调用重启进程方法

加载插件

方法1

  • 在配置文件中的liteyuki.plugins中添加你的插件路径,例如watchdog_plugin,重启轻雪即可加载插件。

方法2

  • 使用开发工具快速运行插件,无需手动创建实例
  • 创建入口文件,例如main.py,并在其中写入以下代码
python
from liteyuki.dev.plugin import run_plugins
 
-run_plugins("watchdog_plugin")

然后运行python main.py即可启动插件

启用插件后,我们在src/nonebot_plugins下创建一个文件,例如test.py,并在其中写入一些代码,保存后轻雪会自动重载NoneBot进程

`,19),l=[h];function p(e,k,d,r,E,o){return a(),i("div",null,l)}const c=s(t,[["render",p]]);export{y as __pageData,c as default}; +run_plugins("watchdog_plugin")

然后运行python main.py即可启动插件

启用插件后,我们在src/nonebot_plugins下创建一个文件,例如test.py,并在其中写入一些代码,保存后轻雪会自动重载NoneBot进程

`,19)]))}const g=i(h,[["render",l]]);export{o as __pageData,g as default}; diff --git a/assets/en_dev_plugin.md.BMvHexfU.lean.js b/assets/en_dev_plugin.md.BMvHexfU.lean.js new file mode 100644 index 00000000..0346b177 --- /dev/null +++ b/assets/en_dev_plugin.md.BMvHexfU.lean.js @@ -0,0 +1,32 @@ +import{_ as i,c as a,a7 as n,o as t}from"./chunks/framework.jrU0lkHV.js";const o=JSON.parse('{"title":"Liteyuki Plugin","description":"","frontmatter":{"title":"Liteyuki Plugin","order":3},"headers":[],"relativePath":"en/dev/plugin.md","filePath":"en/dev/plugin.md","lastUpdated":1726859552000}'),h={name:"en/dev/plugin.md"};function l(p,s,e,k,d,r){return t(),a("div",null,s[0]||(s[0]=[n(`

简介

轻雪插件是轻雪内置的一部分功能,运行在主进程中,可以很高程度地扩展轻雪的功能

开始

创建插件

一个.py文件或一个包含__init__.py的文件夹即可被识别为插件

首先创建一个文件夹,例如watchdog_plugin,并在其中创建一个__init__.py文件,即可创建一个插件

__init__.py

python
from liteyuki.plugin import PluginMetadata, PluginType
+from .watch_dog import *    # 导入逻辑部分
+
+# 定义插件元数据
+__plugin_meta__ = PluginMetadata(
+    name="NoneDog",  # 插件名称
+    version="1.0.0",  # 插件版本
+    description="A simple plugin for nonebot developer",  # 插件描述
+    type=PluginType.SERVICE  # 插件类型
+)
+
+# 你的插件代码
+...

编写逻辑部分

轻雪主进程不涉及聊天部分,因此插件主要是一些后台任务或者与聊天机器人的通信 以下我们会编写一个简单的插件,用于开发NoneBot时进行文件系统变更重载 watch_dog.py

python
import os
+from liteyuki.dev import observer  # 导入文件系统观察器
+from liteyuki import get_bot, logger  # 导入轻雪Bot和日志
+from watchdog.events import FileSystemEvent  # 导入文件系统事件
+
+liteyuki = get_bot()  # 获取唯一的轻雪Bot实例
+
+exclude_extensions = (".pyc", ".pyo")  # 排除的文件扩展名
+
+
+# 用observer的on_file_system_event装饰器监听文件系统事件
+@observer.on_file_system_event(
+    directories=("src/nonebot_plugins",),
+    event_filter=lambda event: not event.src_path.endswith(exclude_extensions) and ("__pycache__" not in event.src_path) and os.path.isfile(event.src_path)
+)
+def restart_nonebot_process(event: FileSystemEvent):
+    logger.debug(f"File {event.src_path} changed, reloading nonebot...")
+    liteyuki.restart_process("nonebot")  # 调用重启进程方法

加载插件

方法1

  • 在配置文件中的liteyuki.plugins中添加你的插件路径,例如watchdog_plugin,重启轻雪即可加载插件。

方法2

  • 使用开发工具快速运行插件,无需手动创建实例
  • 创建入口文件,例如main.py,并在其中写入以下代码
python
from liteyuki.dev.plugin import run_plugins
+
+run_plugins("watchdog_plugin")

然后运行python main.py即可启动插件

启用插件后,我们在src/nonebot_plugins下创建一个文件,例如test.py,并在其中写入一些代码,保存后轻雪会自动重载NoneBot进程

`,19)]))}const g=i(h,[["render",l]]);export{o as __pageData,g as default}; diff --git a/assets/en_dev_plugin.md.DoGEEBa3.lean.js b/assets/en_dev_plugin.md.DoGEEBa3.lean.js deleted file mode 100644 index c8d451de..00000000 --- a/assets/en_dev_plugin.md.DoGEEBa3.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const y=JSON.parse('{"title":"Liteyuki Plugin","description":"","frontmatter":{"title":"Liteyuki Plugin","order":3},"headers":[],"relativePath":"en/dev/plugin.md","filePath":"en/dev/plugin.md","lastUpdated":1726859552000}'),t={name:"en/dev/plugin.md"},h=n("",19),l=[h];function p(e,k,d,r,E,o){return a(),i("div",null,l)}const c=s(t,[["render",p]]);export{y as __pageData,c as default}; diff --git a/assets/en_dev_resource.md.DtkAy8nT.js b/assets/en_dev_resource.md.Ct0C78Rc.js similarity index 59% rename from assets/en_dev_resource.md.DtkAy8nT.js rename to assets/en_dev_resource.md.Ct0C78Rc.js index 4f9e6396..b2372404 100644 --- a/assets/en_dev_resource.md.DtkAy8nT.js +++ b/assets/en_dev_resource.md.Ct0C78Rc.js @@ -1,4 +1,4 @@ -import{_ as s,c as a,o as i,a9 as e}from"./chunks/framework.C4_mTacX.js";const m=JSON.parse('{"title":"Resource Pack","description":"","frontmatter":{"title":"Resource Pack","order":1},"headers":[],"relativePath":"en/dev/resource.md","filePath":"en/dev/resource.md","lastUpdated":1726859552000}'),l={name:"en/dev/resource.md"},t=e(`

简介

资源包,亦可根据用途称为主题包、字体包、语言包等,它允许你一定程度上自定义轻雪的外观,并且不用修改源代码

  • 资源/主题商店提供了一些资源包供你选择,你也可以自己制作资源包
  • 资源包的制作很简单,如果你接触过Minecraft的资源包,那么你能够很快就上手,仅需按照原有路径进行文件替换即可,讲起打包成一个新的资源包。
  • 部分内容制作需要一点点前端基础,例如htmlcss
  • 轻雪原版资源包请查看LiteyukiBot/liteyuki/resources,可以在此基础上进行修改
  • 欢迎各位投稿资源包到轻雪资源商店

请注意,主题包中的html渲染使用Js来规定数据的渲染位置,请确保您所编写的html代码能被Bot解析,否则会导致渲染失败或渲染结果不理想/异常/错位等无法预料的事情发生。推荐在编写html时同时更改对应Js代码,以避免出现无法预料的问题。


加载资源包

  • 资源包通常是以.zip格式压缩的,只需要将其解压到根目录resources目录下即可,注意不要嵌套文件夹,正常的路径应该是这样的
shell
main.py
+import{_ as a,c as i,a7 as e,o as l}from"./chunks/framework.jrU0lkHV.js";const k=JSON.parse('{"title":"Resource Pack","description":"","frontmatter":{"title":"Resource Pack","order":1},"headers":[],"relativePath":"en/dev/resource.md","filePath":"en/dev/resource.md","lastUpdated":1726859552000}'),t={name:"en/dev/resource.md"};function n(p,s,c,d,h,o){return l(),i("div",null,s[0]||(s[0]=[e(`

简介

资源包,亦可根据用途称为主题包、字体包、语言包等,它允许你一定程度上自定义轻雪的外观,并且不用修改源代码

  • 资源/主题商店提供了一些资源包供你选择,你也可以自己制作资源包
  • 资源包的制作很简单,如果你接触过Minecraft的资源包,那么你能够很快就上手,仅需按照原有路径进行文件替换即可,讲起打包成一个新的资源包。
  • 部分内容制作需要一点点前端基础,例如htmlcss
  • 轻雪原版资源包请查看LiteyukiBot/liteyuki/resources,可以在此基础上进行修改
  • 欢迎各位投稿资源包到轻雪资源商店

请注意,主题包中的html渲染使用Js来规定数据的渲染位置,请确保您所编写的html代码能被Bot解析,否则会导致渲染失败或渲染结果不理想/异常/错位等无法预料的事情发生。推荐在编写html时同时更改对应Js代码,以避免出现无法预料的问题。


加载资源包

  • 资源包通常是以.zip格式压缩的,只需要将其解压到根目录resources目录下即可,注意不要嵌套文件夹,正常的路径应该是这样的
shell
main.py
 resources
 └─resource_pack_1
     ├─metadata.yml
@@ -10,4 +10,4 @@ import{_ as s,c as a,o as i,a9 as e}from"./chunks/framework.C4_mTacX.js";const m
 version: "1.0.0"
 description: "资源包描述"
 # 你可以自定义一些信息,但请保证以上三个字段
-...
  • 资源包加载遵循一个优先级,即后加载的资源包会覆盖前面的资源包,例如,你在A包中定义了一个index.html文件,B包也定义了一个index.html文件,那么加载B包后,A包中的index.html文件会被覆盖
  • 对于不同资源包的不同文件,是可以相对引用的,例如你在A中定义了templates/index.html,在B中定义了templates/style.css,可以在A的index.html中用./style.css相对路径引用B中的css

TIP

资源包的结构会随着轻雪的更新而有变动,第三方资源包开发者需要注意版本兼容性,同时用户也应该自行选择可用的资源包

`,12),n=[t];function p(c,d,h,o,r,k){return i(),a("div",null,n)}const y=s(l,[["render",p]]);export{m as __pageData,y as default}; +...
  • 资源包加载遵循一个优先级,即后加载的资源包会覆盖前面的资源包,例如,你在A包中定义了一个index.html文件,B包也定义了一个index.html文件,那么加载B包后,A包中的index.html文件会被覆盖
  • 对于不同资源包的不同文件,是可以相对引用的,例如你在A中定义了templates/index.html,在B中定义了templates/style.css,可以在A的index.html中用./style.css相对路径引用B中的css

TIP

资源包的结构会随着轻雪的更新而有变动,第三方资源包开发者需要注意版本兼容性,同时用户也应该自行选择可用的资源包

`,12)]))}const u=a(t,[["render",n]]);export{k as __pageData,u as default}; diff --git a/assets/en_dev_resource.md.Ct0C78Rc.lean.js b/assets/en_dev_resource.md.Ct0C78Rc.lean.js new file mode 100644 index 00000000..b2372404 --- /dev/null +++ b/assets/en_dev_resource.md.Ct0C78Rc.lean.js @@ -0,0 +1,13 @@ +import{_ as a,c as i,a7 as e,o as l}from"./chunks/framework.jrU0lkHV.js";const k=JSON.parse('{"title":"Resource Pack","description":"","frontmatter":{"title":"Resource Pack","order":1},"headers":[],"relativePath":"en/dev/resource.md","filePath":"en/dev/resource.md","lastUpdated":1726859552000}'),t={name:"en/dev/resource.md"};function n(p,s,c,d,h,o){return l(),i("div",null,s[0]||(s[0]=[e(`

简介

资源包,亦可根据用途称为主题包、字体包、语言包等,它允许你一定程度上自定义轻雪的外观,并且不用修改源代码

  • 资源/主题商店提供了一些资源包供你选择,你也可以自己制作资源包
  • 资源包的制作很简单,如果你接触过Minecraft的资源包,那么你能够很快就上手,仅需按照原有路径进行文件替换即可,讲起打包成一个新的资源包。
  • 部分内容制作需要一点点前端基础,例如htmlcss
  • 轻雪原版资源包请查看LiteyukiBot/liteyuki/resources,可以在此基础上进行修改
  • 欢迎各位投稿资源包到轻雪资源商店

请注意,主题包中的html渲染使用Js来规定数据的渲染位置,请确保您所编写的html代码能被Bot解析,否则会导致渲染失败或渲染结果不理想/异常/错位等无法预料的事情发生。推荐在编写html时同时更改对应Js代码,以避免出现无法预料的问题。


加载资源包

  • 资源包通常是以.zip格式压缩的,只需要将其解压到根目录resources目录下即可,注意不要嵌套文件夹,正常的路径应该是这样的
shell
main.py
+resources
+└─resource_pack_1
+    ├─metadata.yml
+    ├─templates
+    └───...
+└─resource_pack_2
+    ├─metadata.yml
+    └─...
  • 你自己制作的资源包也应该遵循这个规则,并且应该在metadata.yml中填写一些信息
  • 若没有metadata.yml文件,则该文件夹不会被识别为资源包
yaml
name: "资源包名称"
+version: "1.0.0"
+description: "资源包描述"
+# 你可以自定义一些信息,但请保证以上三个字段
+...
  • 资源包加载遵循一个优先级,即后加载的资源包会覆盖前面的资源包,例如,你在A包中定义了一个index.html文件,B包也定义了一个index.html文件,那么加载B包后,A包中的index.html文件会被覆盖
  • 对于不同资源包的不同文件,是可以相对引用的,例如你在A中定义了templates/index.html,在B中定义了templates/style.css,可以在A的index.html中用./style.css相对路径引用B中的css

TIP

资源包的结构会随着轻雪的更新而有变动,第三方资源包开发者需要注意版本兼容性,同时用户也应该自行选择可用的资源包

`,12)]))}const u=a(t,[["render",n]]);export{k as __pageData,u as default}; diff --git a/assets/en_dev_resource.md.DtkAy8nT.lean.js b/assets/en_dev_resource.md.DtkAy8nT.lean.js deleted file mode 100644 index 14b4b396..00000000 --- a/assets/en_dev_resource.md.DtkAy8nT.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as s,c as a,o as i,a9 as e}from"./chunks/framework.C4_mTacX.js";const m=JSON.parse('{"title":"Resource Pack","description":"","frontmatter":{"title":"Resource Pack","order":1},"headers":[],"relativePath":"en/dev/resource.md","filePath":"en/dev/resource.md","lastUpdated":1726859552000}'),l={name:"en/dev/resource.md"},t=e("",12),n=[t];function p(c,d,h,o,r,k){return i(),a("div",null,n)}const y=s(l,[["render",p]]);export{m as __pageData,y as default}; diff --git a/assets/en_index.md.r_vtXGDB.js b/assets/en_index.md.B0j9slrc.js similarity index 96% rename from assets/en_index.md.r_vtXGDB.js rename to assets/en_index.md.B0j9slrc.js index a5678387..a3688b0a 100644 --- a/assets/en_index.md.r_vtXGDB.js +++ b/assets/en_index.md.B0j9slrc.js @@ -1 +1 @@ -import{_ as e,c as t,o as i}from"./chunks/framework.C4_mTacX.js";const u=JSON.parse('{"title":"","description":"","frontmatter":{"layout":"home","hero":{"name":"LiteyukiBot","tagline":"An integrated chat bot application and management framework","actions":[{"theme":"brand","text":"🚀 Get Started","link":"./deploy/install"},{"theme":"alt","text":"📖 Manual","link":"./usage/basic"},{"theme":"alt","text":"📦 Extensions","link":"./store/"},{"theme":"alt","text":"🛠️ Development","link":"./dev/guide"}],"image":{"light":"/liteyuki.svg","dark":"/liteyuki-dark.svg","alt":"Liteyuki Logo"}},"features":[{"title":"Ecological Diversity","icon":"🛠️","details":"Based on the liteyuki framework, compatible with any Python bot framework and application","link":"./dev/api"},{"title":"Pluggable","icon":"🧩","details":"Use package manager for convenient management of plugins and resource packs","link":"./store/plugin"},{"title":"Customizable","icon":"🎨","details":"Fully customize the appearance using resource packs","link":"./store/resource"},{"title":"Localization","icon":"🌐","details":"Support for multiple languages through resource packs","link":"https://baike.baidu.com/item/i18n/6771940"},{"title":"Easy to use","icon":"⚙️","details":"No complicated pre-process, ready to use out of the box","link":"./deploy/config"},{"title":"High Performance","icon":"🚀","details":"500 plugins, starts within 2 seconds"},{"title":"Rolling Updates","icon":"☁️","details":"Keep your robot up to date with the latest commits"},{"title":"Open Source","icon":"📄","details":"The project follows the LSO LICENSE and is open to contributions","link":"https://github.com/LiteyukiStudio/LiteyukiStudioOpensourceLICENSE"}]},"headers":[],"relativePath":"en/index.md","filePath":"en/index.md","lastUpdated":1726859552000}'),a={name:"en/index.md"};function o(n,l,s,r,c,d){return i(),t("div")}const m=e(a,[["render",o]]);export{u as __pageData,m as default}; +import{_ as e,c as t,o as i}from"./chunks/framework.jrU0lkHV.js";const u=JSON.parse('{"title":"","description":"","frontmatter":{"layout":"home","hero":{"name":"LiteyukiBot","tagline":"An integrated chat bot application and management framework","actions":[{"theme":"brand","text":"🚀 Get Started","link":"./deploy/install"},{"theme":"alt","text":"📖 Manual","link":"./usage/basic"},{"theme":"alt","text":"📦 Extensions","link":"./store/"},{"theme":"alt","text":"🛠️ Development","link":"./dev/guide"}],"image":{"light":"/liteyuki.svg","dark":"/liteyuki-dark.svg","alt":"Liteyuki Logo"}},"features":[{"title":"Ecological Diversity","icon":"🛠️","details":"Based on the liteyuki framework, compatible with any Python bot framework and application","link":"./dev/api"},{"title":"Pluggable","icon":"🧩","details":"Use package manager for convenient management of plugins and resource packs","link":"./store/plugin"},{"title":"Customizable","icon":"🎨","details":"Fully customize the appearance using resource packs","link":"./store/resource"},{"title":"Localization","icon":"🌐","details":"Support for multiple languages through resource packs","link":"https://baike.baidu.com/item/i18n/6771940"},{"title":"Easy to use","icon":"⚙️","details":"No complicated pre-process, ready to use out of the box","link":"./deploy/config"},{"title":"High Performance","icon":"🚀","details":"500 plugins, starts within 2 seconds"},{"title":"Rolling Updates","icon":"☁️","details":"Keep your robot up to date with the latest commits"},{"title":"Open Source","icon":"📄","details":"The project follows the LSO LICENSE and is open to contributions","link":"https://github.com/LiteyukiStudio/LiteyukiStudioOpensourceLICENSE"}]},"headers":[],"relativePath":"en/index.md","filePath":"en/index.md","lastUpdated":1726859552000}'),a={name:"en/index.md"};function o(n,l,s,r,c,d){return i(),t("div")}const m=e(a,[["render",o]]);export{u as __pageData,m as default}; diff --git a/assets/en_index.md.r_vtXGDB.lean.js b/assets/en_index.md.B0j9slrc.lean.js similarity index 96% rename from assets/en_index.md.r_vtXGDB.lean.js rename to assets/en_index.md.B0j9slrc.lean.js index a5678387..a3688b0a 100644 --- a/assets/en_index.md.r_vtXGDB.lean.js +++ b/assets/en_index.md.B0j9slrc.lean.js @@ -1 +1 @@ -import{_ as e,c as t,o as i}from"./chunks/framework.C4_mTacX.js";const u=JSON.parse('{"title":"","description":"","frontmatter":{"layout":"home","hero":{"name":"LiteyukiBot","tagline":"An integrated chat bot application and management framework","actions":[{"theme":"brand","text":"🚀 Get Started","link":"./deploy/install"},{"theme":"alt","text":"📖 Manual","link":"./usage/basic"},{"theme":"alt","text":"📦 Extensions","link":"./store/"},{"theme":"alt","text":"🛠️ Development","link":"./dev/guide"}],"image":{"light":"/liteyuki.svg","dark":"/liteyuki-dark.svg","alt":"Liteyuki Logo"}},"features":[{"title":"Ecological Diversity","icon":"🛠️","details":"Based on the liteyuki framework, compatible with any Python bot framework and application","link":"./dev/api"},{"title":"Pluggable","icon":"🧩","details":"Use package manager for convenient management of plugins and resource packs","link":"./store/plugin"},{"title":"Customizable","icon":"🎨","details":"Fully customize the appearance using resource packs","link":"./store/resource"},{"title":"Localization","icon":"🌐","details":"Support for multiple languages through resource packs","link":"https://baike.baidu.com/item/i18n/6771940"},{"title":"Easy to use","icon":"⚙️","details":"No complicated pre-process, ready to use out of the box","link":"./deploy/config"},{"title":"High Performance","icon":"🚀","details":"500 plugins, starts within 2 seconds"},{"title":"Rolling Updates","icon":"☁️","details":"Keep your robot up to date with the latest commits"},{"title":"Open Source","icon":"📄","details":"The project follows the LSO LICENSE and is open to contributions","link":"https://github.com/LiteyukiStudio/LiteyukiStudioOpensourceLICENSE"}]},"headers":[],"relativePath":"en/index.md","filePath":"en/index.md","lastUpdated":1726859552000}'),a={name:"en/index.md"};function o(n,l,s,r,c,d){return i(),t("div")}const m=e(a,[["render",o]]);export{u as __pageData,m as default}; +import{_ as e,c as t,o as i}from"./chunks/framework.jrU0lkHV.js";const u=JSON.parse('{"title":"","description":"","frontmatter":{"layout":"home","hero":{"name":"LiteyukiBot","tagline":"An integrated chat bot application and management framework","actions":[{"theme":"brand","text":"🚀 Get Started","link":"./deploy/install"},{"theme":"alt","text":"📖 Manual","link":"./usage/basic"},{"theme":"alt","text":"📦 Extensions","link":"./store/"},{"theme":"alt","text":"🛠️ Development","link":"./dev/guide"}],"image":{"light":"/liteyuki.svg","dark":"/liteyuki-dark.svg","alt":"Liteyuki Logo"}},"features":[{"title":"Ecological Diversity","icon":"🛠️","details":"Based on the liteyuki framework, compatible with any Python bot framework and application","link":"./dev/api"},{"title":"Pluggable","icon":"🧩","details":"Use package manager for convenient management of plugins and resource packs","link":"./store/plugin"},{"title":"Customizable","icon":"🎨","details":"Fully customize the appearance using resource packs","link":"./store/resource"},{"title":"Localization","icon":"🌐","details":"Support for multiple languages through resource packs","link":"https://baike.baidu.com/item/i18n/6771940"},{"title":"Easy to use","icon":"⚙️","details":"No complicated pre-process, ready to use out of the box","link":"./deploy/config"},{"title":"High Performance","icon":"🚀","details":"500 plugins, starts within 2 seconds"},{"title":"Rolling Updates","icon":"☁️","details":"Keep your robot up to date with the latest commits"},{"title":"Open Source","icon":"📄","details":"The project follows the LSO LICENSE and is open to contributions","link":"https://github.com/LiteyukiStudio/LiteyukiStudioOpensourceLICENSE"}]},"headers":[],"relativePath":"en/index.md","filePath":"en/index.md","lastUpdated":1726859552000}'),a={name:"en/index.md"};function o(n,l,s,r,c,d){return i(),t("div")}const m=e(a,[["render",o]]);export{u as __pageData,m as default}; diff --git a/assets/en_store_plugin.md.C0UyBVv2.js b/assets/en_store_plugin.md.C0UyBVv2.js deleted file mode 100644 index b80a20e5..00000000 --- a/assets/en_store_plugin.md.C0UyBVv2.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as t,D as n,c as o,I as r,o as a}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"Plugin Store","description":"","frontmatter":{"title":"Plugin Store","order":2},"headers":[],"relativePath":"en/store/plugin.md","filePath":"en/store/plugin.md","lastUpdated":1725200049000}'),s={name:"en/store/plugin.md"};function l(i,c,p,d,u,_){const e=n("PluginStore");return a(),o("div",null,[r(e)])}const f=t(s,[["render",l]]);export{g as __pageData,f as default}; diff --git a/assets/en_store_plugin.md.C0UyBVv2.lean.js b/assets/en_store_plugin.md.C0UyBVv2.lean.js deleted file mode 100644 index b80a20e5..00000000 --- a/assets/en_store_plugin.md.C0UyBVv2.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as t,D as n,c as o,I as r,o as a}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"Plugin Store","description":"","frontmatter":{"title":"Plugin Store","order":2},"headers":[],"relativePath":"en/store/plugin.md","filePath":"en/store/plugin.md","lastUpdated":1725200049000}'),s={name:"en/store/plugin.md"};function l(i,c,p,d,u,_){const e=n("PluginStore");return a(),o("div",null,[r(e)])}const f=t(s,[["render",l]]);export{g as __pageData,f as default}; diff --git a/assets/en_store_plugin.md.Dr9xSRQO.js b/assets/en_store_plugin.md.Dr9xSRQO.js new file mode 100644 index 00000000..cd6dea15 --- /dev/null +++ b/assets/en_store_plugin.md.Dr9xSRQO.js @@ -0,0 +1 @@ +import{_ as t,c as n,G as o,B as r,o as a}from"./chunks/framework.jrU0lkHV.js";const g=JSON.parse('{"title":"Plugin Store","description":"","frontmatter":{"title":"Plugin Store","order":2},"headers":[],"relativePath":"en/store/plugin.md","filePath":"en/store/plugin.md","lastUpdated":1725200049000}'),s={name:"en/store/plugin.md"};function l(i,c,p,d,u,_){const e=r("PluginStore");return a(),n("div",null,[o(e)])}const f=t(s,[["render",l]]);export{g as __pageData,f as default}; diff --git a/assets/en_store_plugin.md.Dr9xSRQO.lean.js b/assets/en_store_plugin.md.Dr9xSRQO.lean.js new file mode 100644 index 00000000..cd6dea15 --- /dev/null +++ b/assets/en_store_plugin.md.Dr9xSRQO.lean.js @@ -0,0 +1 @@ +import{_ as t,c as n,G as o,B as r,o as a}from"./chunks/framework.jrU0lkHV.js";const g=JSON.parse('{"title":"Plugin Store","description":"","frontmatter":{"title":"Plugin Store","order":2},"headers":[],"relativePath":"en/store/plugin.md","filePath":"en/store/plugin.md","lastUpdated":1725200049000}'),s={name:"en/store/plugin.md"};function l(i,c,p,d,u,_){const e=r("PluginStore");return a(),n("div",null,[o(e)])}const f=t(s,[["render",l]]);export{g as __pageData,f as default}; diff --git a/assets/en_store_resource.md.B4TeEUVy.js b/assets/en_store_resource.md.B4TeEUVy.js new file mode 100644 index 00000000..474f1f67 --- /dev/null +++ b/assets/en_store_resource.md.B4TeEUVy.js @@ -0,0 +1 @@ +import{_ as t,c as r,G as o,B as s,o as a}from"./chunks/framework.jrU0lkHV.js";const f=JSON.parse('{"title":"Resource Store","description":"","frontmatter":{"title":"Resource Store","order":1},"headers":[],"relativePath":"en/store/resource.md","filePath":"en/store/resource.md","lastUpdated":1725200049000}'),c={name:"en/store/resource.md"};function n(d,p,_,l,i,m){const e=s("ResStore");return a(),r("div",null,[o(e)])}const S=t(c,[["render",n]]);export{f as __pageData,S as default}; diff --git a/assets/en_store_resource.md.B4TeEUVy.lean.js b/assets/en_store_resource.md.B4TeEUVy.lean.js new file mode 100644 index 00000000..474f1f67 --- /dev/null +++ b/assets/en_store_resource.md.B4TeEUVy.lean.js @@ -0,0 +1 @@ +import{_ as t,c as r,G as o,B as s,o as a}from"./chunks/framework.jrU0lkHV.js";const f=JSON.parse('{"title":"Resource Store","description":"","frontmatter":{"title":"Resource Store","order":1},"headers":[],"relativePath":"en/store/resource.md","filePath":"en/store/resource.md","lastUpdated":1725200049000}'),c={name:"en/store/resource.md"};function n(d,p,_,l,i,m){const e=s("ResStore");return a(),r("div",null,[o(e)])}const S=t(c,[["render",n]]);export{f as __pageData,S as default}; diff --git a/assets/en_store_resource.md.Ci-LBCav.js b/assets/en_store_resource.md.Ci-LBCav.js deleted file mode 100644 index 0de46c3f..00000000 --- a/assets/en_store_resource.md.Ci-LBCav.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as t,D as r,c as o,I as s,o as a}from"./chunks/framework.C4_mTacX.js";const f=JSON.parse('{"title":"Resource Store","description":"","frontmatter":{"title":"Resource Store","order":1},"headers":[],"relativePath":"en/store/resource.md","filePath":"en/store/resource.md","lastUpdated":1725200049000}'),c={name:"en/store/resource.md"};function n(d,p,_,l,i,m){const e=r("ResStore");return a(),o("div",null,[s(e)])}const S=t(c,[["render",n]]);export{f as __pageData,S as default}; diff --git a/assets/en_store_resource.md.Ci-LBCav.lean.js b/assets/en_store_resource.md.Ci-LBCav.lean.js deleted file mode 100644 index 0de46c3f..00000000 --- a/assets/en_store_resource.md.Ci-LBCav.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as t,D as r,c as o,I as s,o as a}from"./chunks/framework.C4_mTacX.js";const f=JSON.parse('{"title":"Resource Store","description":"","frontmatter":{"title":"Resource Store","order":1},"headers":[],"relativePath":"en/store/resource.md","filePath":"en/store/resource.md","lastUpdated":1725200049000}'),c={name:"en/store/resource.md"};function n(d,p,_,l,i,m){const e=r("ResStore");return a(),o("div",null,[s(e)])}const S=t(c,[["render",n]]);export{f as __pageData,S as default}; diff --git a/assets/en_usage_agreement.md.CLjnKVc3.js b/assets/en_usage_agreement.md.CLjnKVc3.js new file mode 100644 index 00000000..a0bc44c6 --- /dev/null +++ b/assets/en_usage_agreement.md.CLjnKVc3.js @@ -0,0 +1 @@ +import{_ as t,c as a,a7 as o,o as l}from"./chunks/framework.jrU0lkHV.js";const u=JSON.parse('{"title":"用户协议","description":"","frontmatter":{"title":"用户协议","order":3},"headers":[],"relativePath":"en/usage/agreement.md","filePath":"en/usage/agreement.md","lastUpdated":1725101868000}'),r={name:"en/usage/agreement.md"};function i(n,e,d,s,c,m){return l(),a("div",null,e[0]||(e[0]=[o('

用户协议

  1. 本项目遵循MIT协议,你可以自由使用,修改,分发,但是请保留原作者信息
  2. 你可以选择开启auto_report(默认开启),轻雪会收集以下内容
    • 运行环境的设备信息:CPU,内存,系统信息及Python信息
    • 插件信息(不含插件数据)
    • 部分异常信息,
    • 会话负载信息(不含隐私部分) 以上内容仅用于项目的优化,不包含任何隐私信息,且通过安全的方式传输到轻雪的服务器,若你不希望提供这些信息,可以在配置文件中把auto_report设定为false
  3. 本项目不会收集用户的任何隐私信息,但请注意甄别第三方插件的安全性
  4. 使用此项目代表你已经同意以上协议
',2)]))}const _=t(r,[["render",i]]);export{u as __pageData,_ as default}; diff --git a/assets/en_usage_agreement.md.CLjnKVc3.lean.js b/assets/en_usage_agreement.md.CLjnKVc3.lean.js new file mode 100644 index 00000000..a0bc44c6 --- /dev/null +++ b/assets/en_usage_agreement.md.CLjnKVc3.lean.js @@ -0,0 +1 @@ +import{_ as t,c as a,a7 as o,o as l}from"./chunks/framework.jrU0lkHV.js";const u=JSON.parse('{"title":"用户协议","description":"","frontmatter":{"title":"用户协议","order":3},"headers":[],"relativePath":"en/usage/agreement.md","filePath":"en/usage/agreement.md","lastUpdated":1725101868000}'),r={name:"en/usage/agreement.md"};function i(n,e,d,s,c,m){return l(),a("div",null,e[0]||(e[0]=[o('

用户协议

  1. 本项目遵循MIT协议,你可以自由使用,修改,分发,但是请保留原作者信息
  2. 你可以选择开启auto_report(默认开启),轻雪会收集以下内容
    • 运行环境的设备信息:CPU,内存,系统信息及Python信息
    • 插件信息(不含插件数据)
    • 部分异常信息,
    • 会话负载信息(不含隐私部分) 以上内容仅用于项目的优化,不包含任何隐私信息,且通过安全的方式传输到轻雪的服务器,若你不希望提供这些信息,可以在配置文件中把auto_report设定为false
  3. 本项目不会收集用户的任何隐私信息,但请注意甄别第三方插件的安全性
  4. 使用此项目代表你已经同意以上协议
',2)]))}const _=t(r,[["render",i]]);export{u as __pageData,_ as default}; diff --git a/assets/en_usage_agreement.md.vFfahjeR.js b/assets/en_usage_agreement.md.vFfahjeR.js deleted file mode 100644 index 5577c8c8..00000000 --- a/assets/en_usage_agreement.md.vFfahjeR.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as e,c as t,o as a,a9 as o}from"./chunks/framework.C4_mTacX.js";const h=JSON.parse('{"title":"用户协议","description":"","frontmatter":{"title":"用户协议","order":3},"headers":[],"relativePath":"en/usage/agreement.md","filePath":"en/usage/agreement.md","lastUpdated":1725101868000}'),l={name:"en/usage/agreement.md"},i=o('

用户协议

  1. 本项目遵循MIT协议,你可以自由使用,修改,分发,但是请保留原作者信息
  2. 你可以选择开启auto_report(默认开启),轻雪会收集以下内容
    • 运行环境的设备信息:CPU,内存,系统信息及Python信息
    • 插件信息(不含插件数据)
    • 部分异常信息,
    • 会话负载信息(不含隐私部分) 以上内容仅用于项目的优化,不包含任何隐私信息,且通过安全的方式传输到轻雪的服务器,若你不希望提供这些信息,可以在配置文件中把auto_report设定为false
  3. 本项目不会收集用户的任何隐私信息,但请注意甄别第三方插件的安全性
  4. 使用此项目代表你已经同意以上协议
',2),r=[i];function c(n,_,s,d,m,p){return a(),t("div",null,r)}const f=e(l,[["render",c]]);export{h as __pageData,f as default}; diff --git a/assets/en_usage_agreement.md.vFfahjeR.lean.js b/assets/en_usage_agreement.md.vFfahjeR.lean.js deleted file mode 100644 index 4030c95b..00000000 --- a/assets/en_usage_agreement.md.vFfahjeR.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as e,c as t,o as a,a9 as o}from"./chunks/framework.C4_mTacX.js";const h=JSON.parse('{"title":"用户协议","description":"","frontmatter":{"title":"用户协议","order":3},"headers":[],"relativePath":"en/usage/agreement.md","filePath":"en/usage/agreement.md","lastUpdated":1725101868000}'),l={name:"en/usage/agreement.md"},i=o("",2),r=[i];function c(n,_,s,d,m,p){return a(),t("div",null,r)}const f=e(l,[["render",c]]);export{h as __pageData,f as default}; diff --git a/assets/en_usage_basic.md.D5OATOhG.js b/assets/en_usage_basic.md.D5OATOhG.js new file mode 100644 index 00000000..9e6885b1 --- /dev/null +++ b/assets/en_usage_basic.md.D5OATOhG.js @@ -0,0 +1 @@ +import{_ as e,c as d,a7 as l,o as n}from"./chunks/framework.jrU0lkHV.js";const x=JSON.parse('{"title":"基础插件","description":"","frontmatter":{"title":"基础插件","order":1},"headers":[],"relativePath":"en/usage/basic.md","filePath":"en/usage/basic.md","lastUpdated":1725101868000}'),r={name:"en/usage/basic.md"};function a(c,t,i,s,o,g){return n(),d("div",null,t[0]||(t[0]=[l('

基础插件


TIP

参数<param>为必填参数,[option]为可选参数。

命令别名:配置了命令别名的命令可以使用别名代替原命令,例如npm install ~可以使用插件 安装 ~代替。

轻雪命令liteyuki_command

命令说明权限举例可用参数
reload-liteyuki重载轻雪超级用户
update-liteyuki更新轻雪超级用户
liteecho查看当前bot 版本超级用户
status查看统计信息和状态超级用户
config set <key> value添加配置项,若存在则会覆盖,输入值会被执行以转换为正确的类型,"10"和10是不一样的超级用户config set name 'liteyuki-bot'<key>: 若存在则覆盖, 若不存在则创建于config.yml ; value: yml格式的所有合法内容
config get [key] 查询配置项,不带key返回配置项列表,推荐私聊使用超级用户config get name<key>: 若存在则返回, 若不存在则返回空
switch-image-mode 在普通图片和Markdown大图之间切换,该功能需要commit:505468b及以后的Lagrange.OneBot,默认普通图片超级用户switch-image-mode
/api api_name [args] 调用机器人API超级用户/api get_group_member_list group_id=1234567<args>: 参数列表, 格式为onebot v11协议api, 可用%20代替空格
/function function_name [args] [kwargs] 调用机器人函数(.lyfunction语法)超级用户/function send_group_msg group_id=1234567 message='hello'<args><kwargs>: 参数列表, api格式为onebot v11协议api
group enable/disable [group_id]在群聊启用/停用机器人,group_id仅超级用户可用超级用户,群聊仅群主、管理员、超级用户可用group enable 1145141919810<group_id>: 群号
liteyuki-docs查看轻雪文档所有人

命令别名

命令别名
status状态
reload-liteyuki重启轻雪
update-liteyuki更新轻雪
reload-resources重载资源
config配置, set 设置 / get 查询
switch-image-mode切换图片模式
liteyuki-docs轻雪文档
group群聊, enable 启用 / disable 停用

插件/包管理器 liteyuki_pacman

  • 插件管理
命令说明权限
npm update更新插件商店索引超级用户
npm install <plugin_name>安装插件超级用户
npm uninstall <plugin_name>卸载插件超级用户
npm search <keywords...>通过关键词搜索插件超级用户
npm enable-global/disable-global <plugin_name>全局启用/停用插件超级用户
npm enable/disable <plugin_name> [--group <group_id>]当前会话启用/停用插件群聊仅群主、管理员、超级用户可用,私聊所有人可用
npm list [page] [num]列出所有插件 page为页数,num为每页显示数量群聊仅群主、管理员、超级用户可用,私聊所有人可用
help <plugin_name>查看插件帮助所有人
  • 资源包管理
命令说明权限
rpm list [page] [num]列出所有资源包 page为页数,num为每页显示数量超级用户
rpm load <pack_name>加载资源包超级用户
rpm unload <pack_name>卸载资源包超级用户
rpm change <pack_name>修改优先级超级用户
rpm reload重载所有资源包超级用户

命令别名

命令别名
npm插件管理
update更新
install安装
uninstall卸载
search搜索
enable启用
disable停用
enable-global全局启用
disable-global全局停用
rpm资源包
load加载
unload卸载
change更改
reload重载
list列表
help帮助

WARNING

受限于NoneBot2钩子函数的依赖注入参数,插件停用只能阻断传入响应,对于主动推送的插件不生效,请阅读插件主页的说明。


用户管理liteyuki_user

命令说明权限
profile查看用户信息菜单所有人
profile set <key> [value]设置用户信息或打开属性设置菜单所有人
profile get <key>获取用户信息所有人

###命令别名

命令别名
profile个人信息
set设置
get查询
',22)]))}const h=e(r,[["render",a]]);export{x as __pageData,h as default}; diff --git a/assets/en_usage_basic.md.D5OATOhG.lean.js b/assets/en_usage_basic.md.D5OATOhG.lean.js new file mode 100644 index 00000000..9e6885b1 --- /dev/null +++ b/assets/en_usage_basic.md.D5OATOhG.lean.js @@ -0,0 +1 @@ +import{_ as e,c as d,a7 as l,o as n}from"./chunks/framework.jrU0lkHV.js";const x=JSON.parse('{"title":"基础插件","description":"","frontmatter":{"title":"基础插件","order":1},"headers":[],"relativePath":"en/usage/basic.md","filePath":"en/usage/basic.md","lastUpdated":1725101868000}'),r={name:"en/usage/basic.md"};function a(c,t,i,s,o,g){return n(),d("div",null,t[0]||(t[0]=[l('

基础插件


TIP

参数<param>为必填参数,[option]为可选参数。

命令别名:配置了命令别名的命令可以使用别名代替原命令,例如npm install ~可以使用插件 安装 ~代替。

轻雪命令liteyuki_command

命令说明权限举例可用参数
reload-liteyuki重载轻雪超级用户
update-liteyuki更新轻雪超级用户
liteecho查看当前bot 版本超级用户
status查看统计信息和状态超级用户
config set <key> value添加配置项,若存在则会覆盖,输入值会被执行以转换为正确的类型,"10"和10是不一样的超级用户config set name 'liteyuki-bot'<key>: 若存在则覆盖, 若不存在则创建于config.yml ; value: yml格式的所有合法内容
config get [key] 查询配置项,不带key返回配置项列表,推荐私聊使用超级用户config get name<key>: 若存在则返回, 若不存在则返回空
switch-image-mode 在普通图片和Markdown大图之间切换,该功能需要commit:505468b及以后的Lagrange.OneBot,默认普通图片超级用户switch-image-mode
/api api_name [args] 调用机器人API超级用户/api get_group_member_list group_id=1234567<args>: 参数列表, 格式为onebot v11协议api, 可用%20代替空格
/function function_name [args] [kwargs] 调用机器人函数(.lyfunction语法)超级用户/function send_group_msg group_id=1234567 message='hello'<args><kwargs>: 参数列表, api格式为onebot v11协议api
group enable/disable [group_id]在群聊启用/停用机器人,group_id仅超级用户可用超级用户,群聊仅群主、管理员、超级用户可用group enable 1145141919810<group_id>: 群号
liteyuki-docs查看轻雪文档所有人

命令别名

命令别名
status状态
reload-liteyuki重启轻雪
update-liteyuki更新轻雪
reload-resources重载资源
config配置, set 设置 / get 查询
switch-image-mode切换图片模式
liteyuki-docs轻雪文档
group群聊, enable 启用 / disable 停用

插件/包管理器 liteyuki_pacman

  • 插件管理
命令说明权限
npm update更新插件商店索引超级用户
npm install <plugin_name>安装插件超级用户
npm uninstall <plugin_name>卸载插件超级用户
npm search <keywords...>通过关键词搜索插件超级用户
npm enable-global/disable-global <plugin_name>全局启用/停用插件超级用户
npm enable/disable <plugin_name> [--group <group_id>]当前会话启用/停用插件群聊仅群主、管理员、超级用户可用,私聊所有人可用
npm list [page] [num]列出所有插件 page为页数,num为每页显示数量群聊仅群主、管理员、超级用户可用,私聊所有人可用
help <plugin_name>查看插件帮助所有人
  • 资源包管理
命令说明权限
rpm list [page] [num]列出所有资源包 page为页数,num为每页显示数量超级用户
rpm load <pack_name>加载资源包超级用户
rpm unload <pack_name>卸载资源包超级用户
rpm change <pack_name>修改优先级超级用户
rpm reload重载所有资源包超级用户

命令别名

命令别名
npm插件管理
update更新
install安装
uninstall卸载
search搜索
enable启用
disable停用
enable-global全局启用
disable-global全局停用
rpm资源包
load加载
unload卸载
change更改
reload重载
list列表
help帮助

WARNING

受限于NoneBot2钩子函数的依赖注入参数,插件停用只能阻断传入响应,对于主动推送的插件不生效,请阅读插件主页的说明。


用户管理liteyuki_user

命令说明权限
profile查看用户信息菜单所有人
profile set <key> [value]设置用户信息或打开属性设置菜单所有人
profile get <key>获取用户信息所有人

###命令别名

命令别名
profile个人信息
set设置
get查询
',22)]))}const h=e(r,[["render",a]]);export{x as __pageData,h as default}; diff --git a/assets/en_usage_basic.md.DVpsBy5w.js b/assets/en_usage_basic.md.DVpsBy5w.js deleted file mode 100644 index c09866b2..00000000 --- a/assets/en_usage_basic.md.DVpsBy5w.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as t,c as e,o as d,a9 as l}from"./chunks/framework.C4_mTacX.js";const u=JSON.parse('{"title":"基础插件","description":"","frontmatter":{"title":"基础插件","order":1},"headers":[],"relativePath":"en/usage/basic.md","filePath":"en/usage/basic.md","lastUpdated":1725101868000}'),n={name:"en/usage/basic.md"},r=l('

基础插件


TIP

参数<param>为必填参数,[option]为可选参数。

命令别名:配置了命令别名的命令可以使用别名代替原命令,例如npm install ~可以使用插件 安装 ~代替。

轻雪命令liteyuki_command

命令说明权限举例可用参数
reload-liteyuki重载轻雪超级用户
update-liteyuki更新轻雪超级用户
liteecho查看当前bot 版本超级用户
status查看统计信息和状态超级用户
config set <key> value添加配置项,若存在则会覆盖,输入值会被执行以转换为正确的类型,"10"和10是不一样的超级用户config set name 'liteyuki-bot'<key>: 若存在则覆盖, 若不存在则创建于config.yml ; value: yml格式的所有合法内容
config get [key] 查询配置项,不带key返回配置项列表,推荐私聊使用超级用户config get name<key>: 若存在则返回, 若不存在则返回空
switch-image-mode 在普通图片和Markdown大图之间切换,该功能需要commit:505468b及以后的Lagrange.OneBot,默认普通图片超级用户switch-image-mode
/api api_name [args] 调用机器人API超级用户/api get_group_member_list group_id=1234567<args>: 参数列表, 格式为onebot v11协议api, 可用%20代替空格
/function function_name [args] [kwargs] 调用机器人函数(.lyfunction语法)超级用户/function send_group_msg group_id=1234567 message='hello'<args><kwargs>: 参数列表, api格式为onebot v11协议api
group enable/disable [group_id]在群聊启用/停用机器人,group_id仅超级用户可用超级用户,群聊仅群主、管理员、超级用户可用group enable 1145141919810<group_id>: 群号
liteyuki-docs查看轻雪文档所有人

命令别名

命令别名
status状态
reload-liteyuki重启轻雪
update-liteyuki更新轻雪
reload-resources重载资源
config配置, set 设置 / get 查询
switch-image-mode切换图片模式
liteyuki-docs轻雪文档
group群聊, enable 启用 / disable 停用

插件/包管理器 liteyuki_pacman

  • 插件管理
命令说明权限
npm update更新插件商店索引超级用户
npm install <plugin_name>安装插件超级用户
npm uninstall <plugin_name>卸载插件超级用户
npm search <keywords...>通过关键词搜索插件超级用户
npm enable-global/disable-global <plugin_name>全局启用/停用插件超级用户
npm enable/disable <plugin_name> [--group <group_id>]当前会话启用/停用插件群聊仅群主、管理员、超级用户可用,私聊所有人可用
npm list [page] [num]列出所有插件 page为页数,num为每页显示数量群聊仅群主、管理员、超级用户可用,私聊所有人可用
help <plugin_name>查看插件帮助所有人
  • 资源包管理
命令说明权限
rpm list [page] [num]列出所有资源包 page为页数,num为每页显示数量超级用户
rpm load <pack_name>加载资源包超级用户
rpm unload <pack_name>卸载资源包超级用户
rpm change <pack_name>修改优先级超级用户
rpm reload重载所有资源包超级用户

命令别名

命令别名
npm插件管理
update更新
install安装
uninstall卸载
search搜索
enable启用
disable停用
enable-global全局启用
disable-global全局停用
rpm资源包
load加载
unload卸载
change更改
reload重载
list列表
help帮助

WARNING

受限于NoneBot2钩子函数的依赖注入参数,插件停用只能阻断传入响应,对于主动推送的插件不生效,请阅读插件主页的说明。


用户管理liteyuki_user

命令说明权限
profile查看用户信息菜单所有人
profile set <key> [value]设置用户信息或打开属性设置菜单所有人
profile get <key>获取用户信息所有人

###命令别名

命令别名
profile个人信息
set设置
get查询
',22),a=[r];function c(i,s,o,g,y,x){return d(),e("div",null,a)}const p=t(n,[["render",c]]);export{u as __pageData,p as default}; diff --git a/assets/en_usage_basic.md.DVpsBy5w.lean.js b/assets/en_usage_basic.md.DVpsBy5w.lean.js deleted file mode 100644 index 2d3904f4..00000000 --- a/assets/en_usage_basic.md.DVpsBy5w.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as t,c as e,o as d,a9 as l}from"./chunks/framework.C4_mTacX.js";const u=JSON.parse('{"title":"基础插件","description":"","frontmatter":{"title":"基础插件","order":1},"headers":[],"relativePath":"en/usage/basic.md","filePath":"en/usage/basic.md","lastUpdated":1725101868000}'),n={name:"en/usage/basic.md"},r=l("",22),a=[r];function c(i,s,o,g,y,x){return d(),e("div",null,a)}const p=t(n,[["render",c]]);export{u as __pageData,p as default}; diff --git a/assets/en_usage_extra.md.CeleBdoC.js b/assets/en_usage_extra.md.CeleBdoC.js new file mode 100644 index 00000000..7039dd4b --- /dev/null +++ b/assets/en_usage_extra.md.CeleBdoC.js @@ -0,0 +1 @@ +import{_ as e,c as s,a7 as i,o as a}from"./chunks/framework.jrU0lkHV.js";const k=JSON.parse('{"title":"功能命令","description":"","frontmatter":{"title":"功能命令","order":2},"headers":[],"relativePath":"en/usage/extra.md","filePath":"en/usage/extra.md","lastUpdated":1725101868000}'),l={name:"en/usage/extra.md"};function d(n,t,r,h,o,p){return a(),s("div",null,t[0]||(t[0]=[i('

功能插件命令

轻雪天气liteyuki_weather

查询实时天气,支持绑定城市,支持中英文城市名,支持多个关键词查询。

配置项

yaml
weather_key: "" # 和风天气的天气key,会自动判断key版本

命令

shell
weather <keywords...> # Keywords为城市名,支持中英文

查询目标地实时天气,例如:"天气 北京 海淀", "weather Tokyo Shinjuku"

shell
bind-city <keywords...> # Keywords为城市名,支持中英文

绑定查询城市,个人全局生效

命令别名

命令别名
weather天气
bind-city绑定城市

统计信息liteyuki_statistics

统计信息 命令

shell
statistic message --duration <duration> --period <period> --group [current|group_id] --bot [current|bot_id]

功能: 用于统计Bot接收到的消息, 统计周期为period, 统计时间范围为duration

参数格式
duration使用通用日期简写: 1d(天), 1h(小时), 45m(分钟), 14s(秒)
period使用通用日期简写: 1d(天), 1h(小时), 45m(分钟), 14s(秒)
groupcurrent (当前群聊) 或 group_id (QQ群号)
botcurrent (当前Bot) 或 bot_id

命令别名

命令别名
statisticstat
messagem
--duration-d
--period`-p
--group-g
--bot-b
currentc
',20)]))}const g=e(l,[["render",d]]);export{k as __pageData,g as default}; diff --git a/assets/en_usage_extra.md.CeleBdoC.lean.js b/assets/en_usage_extra.md.CeleBdoC.lean.js new file mode 100644 index 00000000..7039dd4b --- /dev/null +++ b/assets/en_usage_extra.md.CeleBdoC.lean.js @@ -0,0 +1 @@ +import{_ as e,c as s,a7 as i,o as a}from"./chunks/framework.jrU0lkHV.js";const k=JSON.parse('{"title":"功能命令","description":"","frontmatter":{"title":"功能命令","order":2},"headers":[],"relativePath":"en/usage/extra.md","filePath":"en/usage/extra.md","lastUpdated":1725101868000}'),l={name:"en/usage/extra.md"};function d(n,t,r,h,o,p){return a(),s("div",null,t[0]||(t[0]=[i('

功能插件命令

轻雪天气liteyuki_weather

查询实时天气,支持绑定城市,支持中英文城市名,支持多个关键词查询。

配置项

yaml
weather_key: "" # 和风天气的天气key,会自动判断key版本

命令

shell
weather <keywords...> # Keywords为城市名,支持中英文

查询目标地实时天气,例如:"天气 北京 海淀", "weather Tokyo Shinjuku"

shell
bind-city <keywords...> # Keywords为城市名,支持中英文

绑定查询城市,个人全局生效

命令别名

命令别名
weather天气
bind-city绑定城市

统计信息liteyuki_statistics

统计信息 命令

shell
statistic message --duration <duration> --period <period> --group [current|group_id] --bot [current|bot_id]

功能: 用于统计Bot接收到的消息, 统计周期为period, 统计时间范围为duration

参数格式
duration使用通用日期简写: 1d(天), 1h(小时), 45m(分钟), 14s(秒)
period使用通用日期简写: 1d(天), 1h(小时), 45m(分钟), 14s(秒)
groupcurrent (当前群聊) 或 group_id (QQ群号)
botcurrent (当前Bot) 或 bot_id

命令别名

命令别名
statisticstat
messagem
--duration-d
--period`-p
--group-g
--bot-b
currentc
',20)]))}const g=e(l,[["render",d]]);export{k as __pageData,g as default}; diff --git a/assets/en_usage_extra.md.DU-WQhbO.js b/assets/en_usage_extra.md.DU-WQhbO.js deleted file mode 100644 index 9cb2ddc0..00000000 --- a/assets/en_usage_extra.md.DU-WQhbO.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as t,c as e,o as s,a9 as i}from"./chunks/framework.C4_mTacX.js";const y=JSON.parse('{"title":"功能命令","description":"","frontmatter":{"title":"功能命令","order":2},"headers":[],"relativePath":"en/usage/extra.md","filePath":"en/usage/extra.md","lastUpdated":1725101868000}'),a={name:"en/usage/extra.md"},l=i('

功能插件命令

轻雪天气liteyuki_weather

查询实时天气,支持绑定城市,支持中英文城市名,支持多个关键词查询。

配置项

yaml
weather_key: "" # 和风天气的天气key,会自动判断key版本

命令

shell
weather <keywords...> # Keywords为城市名,支持中英文

查询目标地实时天气,例如:"天气 北京 海淀", "weather Tokyo Shinjuku"

shell
bind-city <keywords...> # Keywords为城市名,支持中英文

绑定查询城市,个人全局生效

命令别名

命令别名
weather天气
bind-city绑定城市

统计信息liteyuki_statistics

统计信息 命令

shell
statistic message --duration <duration> --period <period> --group [current|group_id] --bot [current|bot_id]

功能: 用于统计Bot接收到的消息, 统计周期为period, 统计时间范围为duration

参数格式
duration使用通用日期简写: 1d(天), 1h(小时), 45m(分钟), 14s(秒)
period使用通用日期简写: 1d(天), 1h(小时), 45m(分钟), 14s(秒)
groupcurrent (当前群聊) 或 group_id (QQ群号)
botcurrent (当前Bot) 或 bot_id

命令别名

命令别名
statisticstat
messagem
--duration-d
--period`-p
--group-g
--bot-b
currentc
',20),d=[l];function n(h,r,o,p,c,k){return s(),e("div",null,d)}const u=t(a,[["render",n]]);export{y as __pageData,u as default}; diff --git a/assets/en_usage_extra.md.DU-WQhbO.lean.js b/assets/en_usage_extra.md.DU-WQhbO.lean.js deleted file mode 100644 index ae137eec..00000000 --- a/assets/en_usage_extra.md.DU-WQhbO.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as t,c as e,o as s,a9 as i}from"./chunks/framework.C4_mTacX.js";const y=JSON.parse('{"title":"功能命令","description":"","frontmatter":{"title":"功能命令","order":2},"headers":[],"relativePath":"en/usage/extra.md","filePath":"en/usage/extra.md","lastUpdated":1725101868000}'),a={name:"en/usage/extra.md"},l=i("",20),d=[l];function n(h,r,o,p,c,k){return s(),e("div",null,d)}const u=t(a,[["render",n]]);export{y as __pageData,u as default}; diff --git a/assets/index.md.C2Q5V-UK.js b/assets/index.md.u5az6EET.js similarity index 96% rename from assets/index.md.C2Q5V-UK.js rename to assets/index.md.u5az6EET.js index c921baab..fe0d79e4 100644 --- a/assets/index.md.C2Q5V-UK.js +++ b/assets/index.md.u5az6EET.js @@ -1 +1 @@ -import{_ as t,c as e,o as i}from"./chunks/framework.C4_mTacX.js";const k=JSON.parse('{"title":"","description":"","frontmatter":{"layout":"home","hero":{"name":"轻雪机器人","tagline":"一个综合性的聊天机器人应用及管理框架","actions":[{"theme":"brand","text":"🚀 快速开始","link":"./deploy/install"},{"theme":"alt","text":"📖 使用手册","link":"./usage/basic"},{"theme":"alt","text":"📦 扩展","link":"./store/resource"},{"theme":"alt","text":"🛠️ 开发","link":"./dev/guide"}],"image":{"light":"./liteyuki.svg","dark":"./liteyuki-dark.svg","alt":"Liteyuki Logo"}},"features":[{"title":"生态良好","icon":"🛠️","details":"基于轻雪框架,原生支持任意Python Bot框架和应用程序","link":"./dev/api"},{"title":"插件管理","icon":"🧩","details":"使用包管理器,便捷管理插件及资源包","link":"./store/plugin"},{"title":"自由定制","icon":"🎨","details":"使用资源包对外观进行完全自定义","link":"./store/resource"},{"title":"国际化","icon":"🌐","details":"通过资源包支持多种语言","link":"https://baike.baidu.com/item/i18n/6771940"},{"title":"简易使用","icon":"⚙️","details":"无需繁琐前期过程,开箱即用","link":"./deploy/config"},{"title":"超高性能","icon":"🚀","details":"500个插件,2秒内启动"},{"title":"滚动更新","icon":"☁️","details":"让你的机器人保持最新提交"},{"title":"开源项目","icon":"📄","details":"项目遵循LSO LICENCE开源,欢迎各位的贡献","link":"https://github.com/LiteyukiStudio/LiteyukiStudioOpensourceLICENSE"}]},"headers":[],"relativePath":"index.md","filePath":"zh/index.md","lastUpdated":1726859552000}'),a={name:"index.md"};function l(n,o,s,d,c,r){return i(),e("div")}const m=t(a,[["render",l]]);export{k as __pageData,m as default}; +import{_ as t,c as e,o as i}from"./chunks/framework.jrU0lkHV.js";const k=JSON.parse('{"title":"","description":"","frontmatter":{"layout":"home","hero":{"name":"轻雪机器人","tagline":"一个综合性的聊天机器人应用及管理框架","actions":[{"theme":"brand","text":"🚀 快速开始","link":"./deploy/install"},{"theme":"alt","text":"📖 使用手册","link":"./usage/basic"},{"theme":"alt","text":"📦 扩展","link":"./store/resource"},{"theme":"alt","text":"🛠️ 开发","link":"./dev/guide"}],"image":{"light":"./liteyuki.svg","dark":"./liteyuki-dark.svg","alt":"Liteyuki Logo"}},"features":[{"title":"生态良好","icon":"🛠️","details":"基于轻雪框架,原生支持任意Python Bot框架和应用程序","link":"./dev/api"},{"title":"插件管理","icon":"🧩","details":"使用包管理器,便捷管理插件及资源包","link":"./store/plugin"},{"title":"自由定制","icon":"🎨","details":"使用资源包对外观进行完全自定义","link":"./store/resource"},{"title":"国际化","icon":"🌐","details":"通过资源包支持多种语言","link":"https://baike.baidu.com/item/i18n/6771940"},{"title":"简易使用","icon":"⚙️","details":"无需繁琐前期过程,开箱即用","link":"./deploy/config"},{"title":"超高性能","icon":"🚀","details":"500个插件,2秒内启动"},{"title":"滚动更新","icon":"☁️","details":"让你的机器人保持最新提交"},{"title":"开源项目","icon":"📄","details":"项目遵循LSO LICENCE开源,欢迎各位的贡献","link":"https://github.com/LiteyukiStudio/LiteyukiStudioOpensourceLICENSE"}]},"headers":[],"relativePath":"index.md","filePath":"zh/index.md","lastUpdated":1726859552000}'),a={name:"index.md"};function l(n,o,s,d,c,r){return i(),e("div")}const m=t(a,[["render",l]]);export{k as __pageData,m as default}; diff --git a/assets/index.md.C2Q5V-UK.lean.js b/assets/index.md.u5az6EET.lean.js similarity index 96% rename from assets/index.md.C2Q5V-UK.lean.js rename to assets/index.md.u5az6EET.lean.js index c921baab..fe0d79e4 100644 --- a/assets/index.md.C2Q5V-UK.lean.js +++ b/assets/index.md.u5az6EET.lean.js @@ -1 +1 @@ -import{_ as t,c as e,o as i}from"./chunks/framework.C4_mTacX.js";const k=JSON.parse('{"title":"","description":"","frontmatter":{"layout":"home","hero":{"name":"轻雪机器人","tagline":"一个综合性的聊天机器人应用及管理框架","actions":[{"theme":"brand","text":"🚀 快速开始","link":"./deploy/install"},{"theme":"alt","text":"📖 使用手册","link":"./usage/basic"},{"theme":"alt","text":"📦 扩展","link":"./store/resource"},{"theme":"alt","text":"🛠️ 开发","link":"./dev/guide"}],"image":{"light":"./liteyuki.svg","dark":"./liteyuki-dark.svg","alt":"Liteyuki Logo"}},"features":[{"title":"生态良好","icon":"🛠️","details":"基于轻雪框架,原生支持任意Python Bot框架和应用程序","link":"./dev/api"},{"title":"插件管理","icon":"🧩","details":"使用包管理器,便捷管理插件及资源包","link":"./store/plugin"},{"title":"自由定制","icon":"🎨","details":"使用资源包对外观进行完全自定义","link":"./store/resource"},{"title":"国际化","icon":"🌐","details":"通过资源包支持多种语言","link":"https://baike.baidu.com/item/i18n/6771940"},{"title":"简易使用","icon":"⚙️","details":"无需繁琐前期过程,开箱即用","link":"./deploy/config"},{"title":"超高性能","icon":"🚀","details":"500个插件,2秒内启动"},{"title":"滚动更新","icon":"☁️","details":"让你的机器人保持最新提交"},{"title":"开源项目","icon":"📄","details":"项目遵循LSO LICENCE开源,欢迎各位的贡献","link":"https://github.com/LiteyukiStudio/LiteyukiStudioOpensourceLICENSE"}]},"headers":[],"relativePath":"index.md","filePath":"zh/index.md","lastUpdated":1726859552000}'),a={name:"index.md"};function l(n,o,s,d,c,r){return i(),e("div")}const m=t(a,[["render",l]]);export{k as __pageData,m as default}; +import{_ as t,c as e,o as i}from"./chunks/framework.jrU0lkHV.js";const k=JSON.parse('{"title":"","description":"","frontmatter":{"layout":"home","hero":{"name":"轻雪机器人","tagline":"一个综合性的聊天机器人应用及管理框架","actions":[{"theme":"brand","text":"🚀 快速开始","link":"./deploy/install"},{"theme":"alt","text":"📖 使用手册","link":"./usage/basic"},{"theme":"alt","text":"📦 扩展","link":"./store/resource"},{"theme":"alt","text":"🛠️ 开发","link":"./dev/guide"}],"image":{"light":"./liteyuki.svg","dark":"./liteyuki-dark.svg","alt":"Liteyuki Logo"}},"features":[{"title":"生态良好","icon":"🛠️","details":"基于轻雪框架,原生支持任意Python Bot框架和应用程序","link":"./dev/api"},{"title":"插件管理","icon":"🧩","details":"使用包管理器,便捷管理插件及资源包","link":"./store/plugin"},{"title":"自由定制","icon":"🎨","details":"使用资源包对外观进行完全自定义","link":"./store/resource"},{"title":"国际化","icon":"🌐","details":"通过资源包支持多种语言","link":"https://baike.baidu.com/item/i18n/6771940"},{"title":"简易使用","icon":"⚙️","details":"无需繁琐前期过程,开箱即用","link":"./deploy/config"},{"title":"超高性能","icon":"🚀","details":"500个插件,2秒内启动"},{"title":"滚动更新","icon":"☁️","details":"让你的机器人保持最新提交"},{"title":"开源项目","icon":"📄","details":"项目遵循LSO LICENCE开源,欢迎各位的贡献","link":"https://github.com/LiteyukiStudio/LiteyukiStudioOpensourceLICENSE"}]},"headers":[],"relativePath":"index.md","filePath":"zh/index.md","lastUpdated":1726859552000}'),a={name:"index.md"};function l(n,o,s,d,c,r){return i(),e("div")}const m=t(a,[["render",l]]);export{k as __pageData,m as default}; diff --git a/assets/store_plugin.md.BhQadjel.js b/assets/store_plugin.md.BhQadjel.js deleted file mode 100644 index 02f9f8c5..00000000 --- a/assets/store_plugin.md.BhQadjel.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as t,D as o,c as n,I as r,o as a}from"./chunks/framework.C4_mTacX.js";const f=JSON.parse('{"title":"插件商店","description":"","frontmatter":{"title":"插件商店","order":2},"headers":[],"relativePath":"store/plugin.md","filePath":"zh/store/plugin.md","lastUpdated":1725200049000}'),s={name:"store/plugin.md"};function c(l,p,i,d,_,m){const e=o("PluginStore");return a(),n("div",null,[r(e)])}const g=t(s,[["render",c]]);export{f as __pageData,g as default}; diff --git a/assets/store_plugin.md.BhQadjel.lean.js b/assets/store_plugin.md.BhQadjel.lean.js deleted file mode 100644 index 02f9f8c5..00000000 --- a/assets/store_plugin.md.BhQadjel.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as t,D as o,c as n,I as r,o as a}from"./chunks/framework.C4_mTacX.js";const f=JSON.parse('{"title":"插件商店","description":"","frontmatter":{"title":"插件商店","order":2},"headers":[],"relativePath":"store/plugin.md","filePath":"zh/store/plugin.md","lastUpdated":1725200049000}'),s={name:"store/plugin.md"};function c(l,p,i,d,_,m){const e=o("PluginStore");return a(),n("div",null,[r(e)])}const g=t(s,[["render",c]]);export{f as __pageData,g as default}; diff --git a/assets/store_plugin.md.Cac6z_ig.js b/assets/store_plugin.md.Cac6z_ig.js new file mode 100644 index 00000000..a20d97fc --- /dev/null +++ b/assets/store_plugin.md.Cac6z_ig.js @@ -0,0 +1 @@ +import{_ as t,c as o,G as n,B as r,o as a}from"./chunks/framework.jrU0lkHV.js";const f=JSON.parse('{"title":"插件商店","description":"","frontmatter":{"title":"插件商店","order":2},"headers":[],"relativePath":"store/plugin.md","filePath":"zh/store/plugin.md","lastUpdated":1725200049000}'),s={name:"store/plugin.md"};function c(l,p,i,d,_,m){const e=r("PluginStore");return a(),o("div",null,[n(e)])}const g=t(s,[["render",c]]);export{f as __pageData,g as default}; diff --git a/assets/store_plugin.md.Cac6z_ig.lean.js b/assets/store_plugin.md.Cac6z_ig.lean.js new file mode 100644 index 00000000..a20d97fc --- /dev/null +++ b/assets/store_plugin.md.Cac6z_ig.lean.js @@ -0,0 +1 @@ +import{_ as t,c as o,G as n,B as r,o as a}from"./chunks/framework.jrU0lkHV.js";const f=JSON.parse('{"title":"插件商店","description":"","frontmatter":{"title":"插件商店","order":2},"headers":[],"relativePath":"store/plugin.md","filePath":"zh/store/plugin.md","lastUpdated":1725200049000}'),s={name:"store/plugin.md"};function c(l,p,i,d,_,m){const e=r("PluginStore");return a(),o("div",null,[n(e)])}const g=t(s,[["render",c]]);export{f as __pageData,g as default}; diff --git a/assets/store_resource.md.B343iwju.js b/assets/store_resource.md.B343iwju.js new file mode 100644 index 00000000..3937d714 --- /dev/null +++ b/assets/store_resource.md.B343iwju.js @@ -0,0 +1 @@ +import{_ as t,c as r,G as o,B as s,o as a}from"./chunks/framework.jrU0lkHV.js";const f=JSON.parse('{"title":"资源商店","description":"","frontmatter":{"title":"资源商店","order":1},"headers":[],"relativePath":"store/resource.md","filePath":"zh/store/resource.md","lastUpdated":1725200049000}'),c={name:"store/resource.md"};function n(d,p,_,l,i,m){const e=s("ResStore");return a(),r("div",null,[o(e)])}const h=t(c,[["render",n]]);export{f as __pageData,h as default}; diff --git a/assets/store_resource.md.B343iwju.lean.js b/assets/store_resource.md.B343iwju.lean.js new file mode 100644 index 00000000..3937d714 --- /dev/null +++ b/assets/store_resource.md.B343iwju.lean.js @@ -0,0 +1 @@ +import{_ as t,c as r,G as o,B as s,o as a}from"./chunks/framework.jrU0lkHV.js";const f=JSON.parse('{"title":"资源商店","description":"","frontmatter":{"title":"资源商店","order":1},"headers":[],"relativePath":"store/resource.md","filePath":"zh/store/resource.md","lastUpdated":1725200049000}'),c={name:"store/resource.md"};function n(d,p,_,l,i,m){const e=s("ResStore");return a(),r("div",null,[o(e)])}const h=t(c,[["render",n]]);export{f as __pageData,h as default}; diff --git a/assets/store_resource.md.CgUrr2wJ.js b/assets/store_resource.md.CgUrr2wJ.js deleted file mode 100644 index 10954da8..00000000 --- a/assets/store_resource.md.CgUrr2wJ.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as t,D as r,c as o,I as s,o as a}from"./chunks/framework.C4_mTacX.js";const f=JSON.parse('{"title":"资源商店","description":"","frontmatter":{"title":"资源商店","order":1},"headers":[],"relativePath":"store/resource.md","filePath":"zh/store/resource.md","lastUpdated":1725200049000}'),c={name:"store/resource.md"};function n(d,p,_,l,i,m){const e=r("ResStore");return a(),o("div",null,[s(e)])}const h=t(c,[["render",n]]);export{f as __pageData,h as default}; diff --git a/assets/store_resource.md.CgUrr2wJ.lean.js b/assets/store_resource.md.CgUrr2wJ.lean.js deleted file mode 100644 index 10954da8..00000000 --- a/assets/store_resource.md.CgUrr2wJ.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as t,D as r,c as o,I as s,o as a}from"./chunks/framework.C4_mTacX.js";const f=JSON.parse('{"title":"资源商店","description":"","frontmatter":{"title":"资源商店","order":1},"headers":[],"relativePath":"store/resource.md","filePath":"zh/store/resource.md","lastUpdated":1725200049000}'),c={name:"store/resource.md"};function n(d,p,_,l,i,m){const e=r("ResStore");return a(),o("div",null,[s(e)])}const h=t(c,[["render",n]]);export{f as __pageData,h as default}; diff --git a/assets/style.DRLWl5fD.css b/assets/style.BeaJEhVr.css similarity index 72% rename from assets/style.DRLWl5fD.css rename to assets/style.BeaJEhVr.css index 44032801..8c774d7d 100644 --- a/assets/style.DRLWl5fD.css +++ b/assets/style.BeaJEhVr.css @@ -1 +1 @@ -@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(/assets/inter-roman-cyrillic-ext.BBPuwvHQ.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(/assets/inter-roman-cyrillic.C5lxZ8CY.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(/assets/inter-roman-greek-ext.CqjqNYQ-.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(/assets/inter-roman-greek.BBVDIX6e.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(/assets/inter-roman-vietnamese.BjW4sHH5.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(/assets/inter-roman-latin-ext.4ZJIpNVo.woff2) format("woff2");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(/assets/inter-roman-latin.Di8DUHzh.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:italic;font-weight:100 900;font-display:swap;src:url(/assets/inter-italic-cyrillic-ext.r48I6akx.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:italic;font-weight:100 900;font-display:swap;src:url(/assets/inter-italic-cyrillic.By2_1cv3.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:italic;font-weight:100 900;font-display:swap;src:url(/assets/inter-italic-greek-ext.1u6EdAuj.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:italic;font-weight:100 900;font-display:swap;src:url(/assets/inter-italic-greek.DJ8dCoTZ.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Inter;font-style:italic;font-weight:100 900;font-display:swap;src:url(/assets/inter-italic-vietnamese.BSbpV94h.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:italic;font-weight:100 900;font-display:swap;src:url(/assets/inter-italic-latin-ext.CN1xVJS-.woff2) format("woff2");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:italic;font-weight:100 900;font-display:swap;src:url(/assets/inter-italic-latin.C2AdPX0b.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Punctuation SC;font-weight:400;src:local("PingFang SC Regular"),local("Noto Sans CJK SC"),local("Microsoft YaHei");unicode-range:U+201C,U+201D,U+2018,U+2019,U+2E3A,U+2014,U+2013,U+2026,U+00B7,U+007E,U+002F}@font-face{font-family:Punctuation SC;font-weight:500;src:local("PingFang SC Medium"),local("Noto Sans CJK SC"),local("Microsoft YaHei");unicode-range:U+201C,U+201D,U+2018,U+2019,U+2E3A,U+2014,U+2013,U+2026,U+00B7,U+007E,U+002F}@font-face{font-family:Punctuation SC;font-weight:600;src:local("PingFang SC Semibold"),local("Noto Sans CJK SC Bold"),local("Microsoft YaHei Bold");unicode-range:U+201C,U+201D,U+2018,U+2019,U+2E3A,U+2014,U+2013,U+2026,U+00B7,U+007E,U+002F}@font-face{font-family:Punctuation SC;font-weight:700;src:local("PingFang SC Semibold"),local("Noto Sans CJK SC Bold"),local("Microsoft YaHei Bold");unicode-range:U+201C,U+201D,U+2018,U+2019,U+2E3A,U+2014,U+2013,U+2026,U+00B7,U+007E,U+002F}:root{--vp-c-white: #ffffff;--vp-c-black: #000000;--vp-c-neutral: var(--vp-c-black);--vp-c-neutral-inverse: var(--vp-c-white)}.dark{--vp-c-neutral: var(--vp-c-white);--vp-c-neutral-inverse: var(--vp-c-black)}:root{--vp-c-gray-1: #dddde3;--vp-c-gray-2: #e4e4e9;--vp-c-gray-3: #ebebef;--vp-c-gray-soft: rgba(142, 150, 170, .14);--vp-c-indigo-1: #3451b2;--vp-c-indigo-2: #3a5ccc;--vp-c-indigo-3: #5672cd;--vp-c-indigo-soft: rgba(100, 108, 255, .14);--vp-c-purple-1: #6f42c1;--vp-c-purple-2: #7e4cc9;--vp-c-purple-3: #8e5cd9;--vp-c-purple-soft: rgba(159, 122, 234, .14);--vp-c-green-1: #18794e;--vp-c-green-2: #299764;--vp-c-green-3: #30a46c;--vp-c-green-soft: rgba(16, 185, 129, .14);--vp-c-yellow-1: #915930;--vp-c-yellow-2: #946300;--vp-c-yellow-3: #9f6a00;--vp-c-yellow-soft: rgba(234, 179, 8, .14);--vp-c-red-1: #b8272c;--vp-c-red-2: #d5393e;--vp-c-red-3: #e0575b;--vp-c-red-soft: rgba(244, 63, 94, .14);--vp-c-sponsor: #db2777}.dark{--vp-c-gray-1: #515c67;--vp-c-gray-2: #414853;--vp-c-gray-3: #32363f;--vp-c-gray-soft: rgba(101, 117, 133, .16);--vp-c-indigo-1: #a8b1ff;--vp-c-indigo-2: #5c73e7;--vp-c-indigo-3: #3e63dd;--vp-c-indigo-soft: rgba(100, 108, 255, .16);--vp-c-purple-1: #c8abfa;--vp-c-purple-2: #a879e6;--vp-c-purple-3: #8e5cd9;--vp-c-purple-soft: rgba(159, 122, 234, .16);--vp-c-green-1: #3dd68c;--vp-c-green-2: #30a46c;--vp-c-green-3: #298459;--vp-c-green-soft: rgba(16, 185, 129, .16);--vp-c-yellow-1: #f9b44e;--vp-c-yellow-2: #da8b17;--vp-c-yellow-3: #a46a0a;--vp-c-yellow-soft: rgba(234, 179, 8, .16);--vp-c-red-1: #f66f81;--vp-c-red-2: #f14158;--vp-c-red-3: #b62a3c;--vp-c-red-soft: rgba(244, 63, 94, .16)}:root{--vp-c-bg: #ffffff;--vp-c-bg-alt: #f6f6f7;--vp-c-bg-elv: #ffffff;--vp-c-bg-soft: #f6f6f7}.dark{--vp-c-bg: #1b1b1f;--vp-c-bg-alt: #161618;--vp-c-bg-elv: #202127;--vp-c-bg-soft: #202127}:root{--vp-c-border: #c2c2c4;--vp-c-divider: #e2e2e3;--vp-c-gutter: #e2e2e3}.dark{--vp-c-border: #3c3f44;--vp-c-divider: #2e2e32;--vp-c-gutter: #000000}:root{--vp-c-text-1: rgba(60, 60, 67);--vp-c-text-2: rgba(60, 60, 67, .78);--vp-c-text-3: rgba(60, 60, 67, .56)}.dark{--vp-c-text-1: rgba(255, 255, 245, .86);--vp-c-text-2: rgba(235, 235, 245, .6);--vp-c-text-3: rgba(235, 235, 245, .38)}:root{--vp-c-default-1: var(--vp-c-gray-1);--vp-c-default-2: var(--vp-c-gray-2);--vp-c-default-3: var(--vp-c-gray-3);--vp-c-default-soft: var(--vp-c-gray-soft);--vp-c-brand-1: var(--vp-c-indigo-1);--vp-c-brand-2: var(--vp-c-indigo-2);--vp-c-brand-3: var(--vp-c-indigo-3);--vp-c-brand-soft: var(--vp-c-indigo-soft);--vp-c-brand: var(--vp-c-brand-1);--vp-c-tip-1: var(--vp-c-brand-1);--vp-c-tip-2: var(--vp-c-brand-2);--vp-c-tip-3: var(--vp-c-brand-3);--vp-c-tip-soft: var(--vp-c-brand-soft);--vp-c-note-1: var(--vp-c-brand-1);--vp-c-note-2: var(--vp-c-brand-2);--vp-c-note-3: var(--vp-c-brand-3);--vp-c-note-soft: var(--vp-c-brand-soft);--vp-c-success-1: var(--vp-c-green-1);--vp-c-success-2: var(--vp-c-green-2);--vp-c-success-3: var(--vp-c-green-3);--vp-c-success-soft: var(--vp-c-green-soft);--vp-c-important-1: var(--vp-c-purple-1);--vp-c-important-2: var(--vp-c-purple-2);--vp-c-important-3: var(--vp-c-purple-3);--vp-c-important-soft: var(--vp-c-purple-soft);--vp-c-warning-1: var(--vp-c-yellow-1);--vp-c-warning-2: var(--vp-c-yellow-2);--vp-c-warning-3: var(--vp-c-yellow-3);--vp-c-warning-soft: var(--vp-c-yellow-soft);--vp-c-danger-1: var(--vp-c-red-1);--vp-c-danger-2: var(--vp-c-red-2);--vp-c-danger-3: var(--vp-c-red-3);--vp-c-danger-soft: var(--vp-c-red-soft);--vp-c-caution-1: var(--vp-c-red-1);--vp-c-caution-2: var(--vp-c-red-2);--vp-c-caution-3: var(--vp-c-red-3);--vp-c-caution-soft: var(--vp-c-red-soft)}:root{--vp-font-family-base: "Inter", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--vp-font-family-mono: ui-monospace, "Menlo", "Monaco", "Consolas", "Liberation Mono", "Courier New", monospace;font-optical-sizing:auto}:root:where(:lang(zh)){--vp-font-family-base: "Punctuation SC", "Inter", ui-sans-serif, system-ui, "PingFang SC", "Noto Sans CJK SC", "Noto Sans SC", "Heiti SC", "Microsoft YaHei", "DengXian", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"}:root{--vp-shadow-1: 0 1px 2px rgba(0, 0, 0, .04), 0 1px 2px rgba(0, 0, 0, .06);--vp-shadow-2: 0 3px 12px rgba(0, 0, 0, .07), 0 1px 4px rgba(0, 0, 0, .07);--vp-shadow-3: 0 12px 32px rgba(0, 0, 0, .1), 0 2px 6px rgba(0, 0, 0, .08);--vp-shadow-4: 0 14px 44px rgba(0, 0, 0, .12), 0 3px 9px rgba(0, 0, 0, .12);--vp-shadow-5: 0 18px 56px rgba(0, 0, 0, .16), 0 4px 12px rgba(0, 0, 0, .16)}:root{--vp-z-index-footer: 10;--vp-z-index-local-nav: 20;--vp-z-index-nav: 30;--vp-z-index-layout-top: 40;--vp-z-index-backdrop: 50;--vp-z-index-sidebar: 60}@media (min-width: 960px){:root{--vp-z-index-sidebar: 25}}:root{--vp-layout-max-width: 1440px}:root{--vp-header-anchor-symbol: "#"}:root{--vp-code-line-height: 1.7;--vp-code-font-size: .875em;--vp-code-color: var(--vp-c-brand-1);--vp-code-link-color: var(--vp-c-brand-1);--vp-code-link-hover-color: var(--vp-c-brand-2);--vp-code-bg: var(--vp-c-default-soft);--vp-code-block-color: var(--vp-c-text-2);--vp-code-block-bg: var(--vp-c-bg-alt);--vp-code-block-divider-color: var(--vp-c-gutter);--vp-code-lang-color: var(--vp-c-text-3);--vp-code-line-highlight-color: var(--vp-c-default-soft);--vp-code-line-number-color: var(--vp-c-text-3);--vp-code-line-diff-add-color: var(--vp-c-success-soft);--vp-code-line-diff-add-symbol-color: var(--vp-c-success-1);--vp-code-line-diff-remove-color: var(--vp-c-danger-soft);--vp-code-line-diff-remove-symbol-color: var(--vp-c-danger-1);--vp-code-line-warning-color: var(--vp-c-warning-soft);--vp-code-line-error-color: var(--vp-c-danger-soft);--vp-code-copy-code-border-color: var(--vp-c-divider);--vp-code-copy-code-bg: var(--vp-c-bg-soft);--vp-code-copy-code-hover-border-color: var(--vp-c-divider);--vp-code-copy-code-hover-bg: var(--vp-c-bg);--vp-code-copy-code-active-text: var(--vp-c-text-2);--vp-code-copy-copied-text-content: "Copied";--vp-code-tab-divider: var(--vp-code-block-divider-color);--vp-code-tab-text-color: var(--vp-c-text-2);--vp-code-tab-bg: var(--vp-code-block-bg);--vp-code-tab-hover-text-color: var(--vp-c-text-1);--vp-code-tab-active-text-color: var(--vp-c-text-1);--vp-code-tab-active-bar-color: var(--vp-c-brand-1)}:root{--vp-button-brand-border: transparent;--vp-button-brand-text: var(--vp-c-white);--vp-button-brand-bg: var(--vp-c-brand-3);--vp-button-brand-hover-border: transparent;--vp-button-brand-hover-text: var(--vp-c-white);--vp-button-brand-hover-bg: var(--vp-c-brand-2);--vp-button-brand-active-border: transparent;--vp-button-brand-active-text: var(--vp-c-white);--vp-button-brand-active-bg: var(--vp-c-brand-1);--vp-button-alt-border: transparent;--vp-button-alt-text: var(--vp-c-text-1);--vp-button-alt-bg: var(--vp-c-default-3);--vp-button-alt-hover-border: transparent;--vp-button-alt-hover-text: var(--vp-c-text-1);--vp-button-alt-hover-bg: var(--vp-c-default-2);--vp-button-alt-active-border: transparent;--vp-button-alt-active-text: var(--vp-c-text-1);--vp-button-alt-active-bg: var(--vp-c-default-1);--vp-button-sponsor-border: var(--vp-c-text-2);--vp-button-sponsor-text: var(--vp-c-text-2);--vp-button-sponsor-bg: transparent;--vp-button-sponsor-hover-border: var(--vp-c-sponsor);--vp-button-sponsor-hover-text: var(--vp-c-sponsor);--vp-button-sponsor-hover-bg: transparent;--vp-button-sponsor-active-border: var(--vp-c-sponsor);--vp-button-sponsor-active-text: var(--vp-c-sponsor);--vp-button-sponsor-active-bg: transparent}:root{--vp-custom-block-font-size: 14px;--vp-custom-block-code-font-size: 13px;--vp-custom-block-info-border: transparent;--vp-custom-block-info-text: var(--vp-c-text-1);--vp-custom-block-info-bg: var(--vp-c-default-soft);--vp-custom-block-info-code-bg: var(--vp-c-default-soft);--vp-custom-block-note-border: transparent;--vp-custom-block-note-text: var(--vp-c-text-1);--vp-custom-block-note-bg: var(--vp-c-default-soft);--vp-custom-block-note-code-bg: var(--vp-c-default-soft);--vp-custom-block-tip-border: transparent;--vp-custom-block-tip-text: var(--vp-c-text-1);--vp-custom-block-tip-bg: var(--vp-c-tip-soft);--vp-custom-block-tip-code-bg: var(--vp-c-tip-soft);--vp-custom-block-important-border: transparent;--vp-custom-block-important-text: var(--vp-c-text-1);--vp-custom-block-important-bg: var(--vp-c-important-soft);--vp-custom-block-important-code-bg: var(--vp-c-important-soft);--vp-custom-block-warning-border: transparent;--vp-custom-block-warning-text: var(--vp-c-text-1);--vp-custom-block-warning-bg: var(--vp-c-warning-soft);--vp-custom-block-warning-code-bg: var(--vp-c-warning-soft);--vp-custom-block-danger-border: transparent;--vp-custom-block-danger-text: var(--vp-c-text-1);--vp-custom-block-danger-bg: var(--vp-c-danger-soft);--vp-custom-block-danger-code-bg: var(--vp-c-danger-soft);--vp-custom-block-caution-border: transparent;--vp-custom-block-caution-text: var(--vp-c-text-1);--vp-custom-block-caution-bg: var(--vp-c-caution-soft);--vp-custom-block-caution-code-bg: var(--vp-c-caution-soft);--vp-custom-block-details-border: var(--vp-custom-block-info-border);--vp-custom-block-details-text: var(--vp-custom-block-info-text);--vp-custom-block-details-bg: var(--vp-custom-block-info-bg);--vp-custom-block-details-code-bg: var(--vp-custom-block-info-code-bg)}:root{--vp-input-border-color: var(--vp-c-border);--vp-input-bg-color: var(--vp-c-bg-alt);--vp-input-switch-bg-color: var(--vp-c-default-soft)}:root{--vp-nav-height: 64px;--vp-nav-bg-color: var(--vp-c-bg);--vp-nav-screen-bg-color: var(--vp-c-bg);--vp-nav-logo-height: 24px}.hide-nav{--vp-nav-height: 0px}.hide-nav .VPSidebar{--vp-nav-height: 22px}:root{--vp-local-nav-bg-color: var(--vp-c-bg)}:root{--vp-sidebar-width: 272px;--vp-sidebar-bg-color: var(--vp-c-bg-alt)}:root{--vp-backdrop-bg-color: rgba(0, 0, 0, .6)}:root{--vp-home-hero-name-color: var(--vp-c-brand-1);--vp-home-hero-name-background: transparent;--vp-home-hero-image-background-image: none;--vp-home-hero-image-filter: none}:root{--vp-badge-info-border: transparent;--vp-badge-info-text: var(--vp-c-text-2);--vp-badge-info-bg: var(--vp-c-default-soft);--vp-badge-tip-border: transparent;--vp-badge-tip-text: var(--vp-c-tip-1);--vp-badge-tip-bg: var(--vp-c-tip-soft);--vp-badge-warning-border: transparent;--vp-badge-warning-text: var(--vp-c-warning-1);--vp-badge-warning-bg: var(--vp-c-warning-soft);--vp-badge-danger-border: transparent;--vp-badge-danger-text: var(--vp-c-danger-1);--vp-badge-danger-bg: var(--vp-c-danger-soft)}:root{--vp-carbon-ads-text-color: var(--vp-c-text-1);--vp-carbon-ads-poweredby-color: var(--vp-c-text-2);--vp-carbon-ads-bg-color: var(--vp-c-bg-soft);--vp-carbon-ads-hover-text-color: var(--vp-c-brand-1);--vp-carbon-ads-hover-poweredby-color: var(--vp-c-text-1)}:root{--vp-local-search-bg: var(--vp-c-bg);--vp-local-search-result-bg: var(--vp-c-bg);--vp-local-search-result-border: var(--vp-c-divider);--vp-local-search-result-selected-bg: var(--vp-c-bg);--vp-local-search-result-selected-border: var(--vp-c-brand-1);--vp-local-search-highlight-bg: var(--vp-c-brand-1);--vp-local-search-highlight-text: var(--vp-c-neutral-inverse)}@media (prefers-reduced-motion: reduce){*,:before,:after{animation-delay:-1ms!important;animation-duration:1ms!important;animation-iteration-count:1!important;background-attachment:initial!important;scroll-behavior:auto!important;transition-duration:0s!important;transition-delay:0s!important}}*,:before,:after{box-sizing:border-box}html{line-height:1.4;font-size:16px;-webkit-text-size-adjust:100%}html.dark{color-scheme:dark}body{margin:0;width:100%;min-width:320px;min-height:100vh;line-height:24px;font-family:var(--vp-font-family-base);font-size:16px;font-weight:400;color:var(--vp-c-text-1);background-color:var(--vp-c-bg);font-synthesis:style;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}main{display:block}h1,h2,h3,h4,h5,h6{margin:0;line-height:24px;font-size:16px;font-weight:400}p{margin:0}strong,b{font-weight:600}a,area,button,[role=button],input,label,select,summary,textarea{touch-action:manipulation}a{color:inherit;text-decoration:inherit}ol,ul{list-style:none;margin:0;padding:0}blockquote{margin:0}pre,code,kbd,samp{font-family:var(--vp-font-family-mono)}img,svg,video,canvas,audio,iframe,embed,object{display:block}figure{margin:0}img,video{max-width:100%;height:auto}button,input,optgroup,select,textarea{border:0;padding:0;line-height:inherit;color:inherit}button{padding:0;font-family:inherit;background-color:transparent;background-image:none}button:enabled,[role=button]:enabled{cursor:pointer}button:focus,button:focus-visible{outline:1px dotted;outline:4px auto -webkit-focus-ring-color}button:focus:not(:focus-visible){outline:none!important}input:focus,textarea:focus,select:focus{outline:none}table{border-collapse:collapse}input{background-color:transparent}input:-ms-input-placeholder,textarea:-ms-input-placeholder{color:var(--vp-c-text-3)}input::-ms-input-placeholder,textarea::-ms-input-placeholder{color:var(--vp-c-text-3)}input::placeholder,textarea::placeholder{color:var(--vp-c-text-3)}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}textarea{resize:vertical}select{-webkit-appearance:none}fieldset{margin:0;padding:0}h1,h2,h3,h4,h5,h6,li,p{overflow-wrap:break-word}vite-error-overlay{z-index:9999}mjx-container{overflow-x:auto}mjx-container>svg{display:inline-block;margin:auto}[class^=vpi-],[class*=" vpi-"],.vp-icon{width:1em;height:1em}[class^=vpi-].bg,[class*=" vpi-"].bg,.vp-icon.bg{background-size:100% 100%;background-color:transparent}[class^=vpi-]:not(.bg),[class*=" vpi-"]:not(.bg),.vp-icon:not(.bg){-webkit-mask:var(--icon) no-repeat;mask:var(--icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit}.vpi-align-left{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M21 6H3M15 12H3M17 18H3'/%3E%3C/svg%3E")}.vpi-arrow-right,.vpi-arrow-down,.vpi-arrow-left,.vpi-arrow-up{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E")}.vpi-chevron-right,.vpi-chevron-down,.vpi-chevron-left,.vpi-chevron-up{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E")}.vpi-chevron-down,.vpi-arrow-down{transform:rotate(90deg)}.vpi-chevron-left,.vpi-arrow-left{transform:rotate(180deg)}.vpi-chevron-up,.vpi-arrow-up{transform:rotate(-90deg)}.vpi-square-pen{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7'/%3E%3Cpath d='M18.375 2.625a2.121 2.121 0 1 1 3 3L12 15l-4 1 1-4Z'/%3E%3C/svg%3E")}.vpi-plus{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14M12 5v14'/%3E%3C/svg%3E")}.vpi-sun{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41'/%3E%3C/svg%3E")}.vpi-moon{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z'/%3E%3C/svg%3E")}.vpi-more-horizontal{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='1'/%3E%3Ccircle cx='19' cy='12' r='1'/%3E%3Ccircle cx='5' cy='12' r='1'/%3E%3C/svg%3E")}.vpi-languages{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m5 8 6 6M4 14l6-6 2-3M2 5h12M7 2h1M22 22l-5-10-5 10M14 18h6'/%3E%3C/svg%3E")}.vpi-heart{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z'/%3E%3C/svg%3E")}.vpi-search{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E")}.vpi-layout-list{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Crect width='7' height='7' x='3' y='3' rx='1'/%3E%3Crect width='7' height='7' x='3' y='14' rx='1'/%3E%3Cpath d='M14 4h7M14 9h7M14 15h7M14 20h7'/%3E%3C/svg%3E")}.vpi-delete{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M20 5H9l-7 7 7 7h11a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2ZM18 9l-6 6M12 9l6 6'/%3E%3C/svg%3E")}.vpi-corner-down-left{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m9 10-5 5 5 5'/%3E%3Cpath d='M20 4v7a4 4 0 0 1-4 4H4'/%3E%3C/svg%3E")}:root{--vp-icon-copy: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='rgba(128,128,128,1)' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Crect width='8' height='4' x='8' y='2' rx='1' ry='1'/%3E%3Cpath d='M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2'/%3E%3C/svg%3E");--vp-icon-copied: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='rgba(128,128,128,1)' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Crect width='8' height='4' x='8' y='2' rx='1' ry='1'/%3E%3Cpath d='M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2'/%3E%3Cpath d='m9 14 2 2 4-4'/%3E%3C/svg%3E")}.vpi-social-discord{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.317 4.37a19.791 19.791 0 0 0-4.885-1.515.074.074 0 0 0-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 0 0-5.487 0 12.64 12.64 0 0 0-.617-1.25.077.077 0 0 0-.079-.037A19.736 19.736 0 0 0 3.677 4.37a.07.07 0 0 0-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 0 0 .031.057 19.9 19.9 0 0 0 5.993 3.03.078.078 0 0 0 .084-.028c.462-.63.874-1.295 1.226-1.994a.076.076 0 0 0-.041-.106 13.107 13.107 0 0 1-1.872-.892.077.077 0 0 1-.008-.128 10.2 10.2 0 0 0 .372-.292.074.074 0 0 1 .077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 0 1 .078.01c.12.098.246.198.373.292a.077.077 0 0 1-.006.127 12.299 12.299 0 0 1-1.873.892.077.077 0 0 0-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 0 0 .084.028 19.839 19.839 0 0 0 6.002-3.03.077.077 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 0 0-.031-.03zM8.02 15.33c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.956-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.956 2.418-2.157 2.418zm7.975 0c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.955-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.946 2.418-2.157 2.418Z'/%3E%3C/svg%3E")}.vpi-social-facebook{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.101 23.691v-7.98H6.627v-3.667h2.474v-1.58c0-4.085 1.848-5.978 5.858-5.978.401 0 .955.042 1.468.103a8.68 8.68 0 0 1 1.141.195v3.325a8.623 8.623 0 0 0-.653-.036 26.805 26.805 0 0 0-.733-.009c-.707 0-1.259.096-1.675.309a1.686 1.686 0 0 0-.679.622c-.258.42-.374.995-.374 1.752v1.297h3.919l-.386 2.103-.287 1.564h-3.246v8.245C19.396 23.238 24 18.179 24 12.044c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.628 3.874 10.35 9.101 11.647Z'/%3E%3C/svg%3E")}.vpi-social-github{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12'/%3E%3C/svg%3E")}.vpi-social-instagram{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7.03.084c-1.277.06-2.149.264-2.91.563a5.874 5.874 0 0 0-2.124 1.388 5.878 5.878 0 0 0-1.38 2.127C.321 4.926.12 5.8.064 7.076.008 8.354-.005 8.764.001 12.023c.007 3.259.021 3.667.083 4.947.061 1.277.264 2.149.563 2.911.308.789.72 1.457 1.388 2.123a5.872 5.872 0 0 0 2.129 1.38c.763.295 1.636.496 2.913.552 1.278.056 1.689.069 4.947.063 3.257-.007 3.668-.021 4.947-.082 1.28-.06 2.147-.265 2.91-.563a5.881 5.881 0 0 0 2.123-1.388 5.881 5.881 0 0 0 1.38-2.129c.295-.763.496-1.636.551-2.912.056-1.28.07-1.69.063-4.948-.006-3.258-.02-3.667-.081-4.947-.06-1.28-.264-2.148-.564-2.911a5.892 5.892 0 0 0-1.387-2.123 5.857 5.857 0 0 0-2.128-1.38C19.074.322 18.202.12 16.924.066 15.647.009 15.236-.006 11.977 0 8.718.008 8.31.021 7.03.084m.14 21.693c-1.17-.05-1.805-.245-2.228-.408a3.736 3.736 0 0 1-1.382-.895 3.695 3.695 0 0 1-.9-1.378c-.165-.423-.363-1.058-.417-2.228-.06-1.264-.072-1.644-.08-4.848-.006-3.204.006-3.583.061-4.848.05-1.169.246-1.805.408-2.228.216-.561.477-.96.895-1.382a3.705 3.705 0 0 1 1.379-.9c.423-.165 1.057-.361 2.227-.417 1.265-.06 1.644-.072 4.848-.08 3.203-.006 3.583.006 4.85.062 1.168.05 1.804.244 2.227.408.56.216.96.475 1.382.895.421.42.681.817.9 1.378.165.422.362 1.056.417 2.227.06 1.265.074 1.645.08 4.848.005 3.203-.006 3.583-.061 4.848-.051 1.17-.245 1.805-.408 2.23-.216.56-.477.96-.896 1.38a3.705 3.705 0 0 1-1.378.9c-.422.165-1.058.362-2.226.418-1.266.06-1.645.072-4.85.079-3.204.007-3.582-.006-4.848-.06m9.783-16.192a1.44 1.44 0 1 0 1.437-1.442 1.44 1.44 0 0 0-1.437 1.442M5.839 12.012a6.161 6.161 0 1 0 12.323-.024 6.162 6.162 0 0 0-12.323.024M8 12.008A4 4 0 1 1 12.008 16 4 4 0 0 1 8 12.008'/%3E%3C/svg%3E")}.vpi-social-linkedin{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.062 2.062 0 0 1-2.063-2.065 2.064 2.064 0 1 1 2.063 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z'/%3E%3C/svg%3E")}.vpi-social-mastodon{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M23.268 5.313c-.35-2.578-2.617-4.61-5.304-5.004C17.51.242 15.792 0 11.813 0h-.03c-3.98 0-4.835.242-5.288.309C3.882.692 1.496 2.518.917 5.127.64 6.412.61 7.837.661 9.143c.074 1.874.088 3.745.26 5.611.118 1.24.325 2.47.62 3.68.55 2.237 2.777 4.098 4.96 4.857 2.336.792 4.849.923 7.256.38.265-.061.527-.132.786-.213.585-.184 1.27-.39 1.774-.753a.057.057 0 0 0 .023-.043v-1.809a.052.052 0 0 0-.02-.041.053.053 0 0 0-.046-.01 20.282 20.282 0 0 1-4.709.545c-2.73 0-3.463-1.284-3.674-1.818a5.593 5.593 0 0 1-.319-1.433.053.053 0 0 1 .066-.054c1.517.363 3.072.546 4.632.546.376 0 .75 0 1.125-.01 1.57-.044 3.224-.124 4.768-.422.038-.008.077-.015.11-.024 2.435-.464 4.753-1.92 4.989-5.604.008-.145.03-1.52.03-1.67.002-.512.167-3.63-.024-5.545zm-3.748 9.195h-2.561V8.29c0-1.309-.55-1.976-1.67-1.976-1.23 0-1.846.79-1.846 2.35v3.403h-2.546V8.663c0-1.56-.617-2.35-1.848-2.35-1.112 0-1.668.668-1.67 1.977v6.218H4.822V8.102c0-1.31.337-2.35 1.011-3.12.696-.77 1.608-1.164 2.74-1.164 1.311 0 2.302.5 2.962 1.498l.638 1.06.638-1.06c.66-.999 1.65-1.498 2.96-1.498 1.13 0 2.043.395 2.74 1.164.675.77 1.012 1.81 1.012 3.12z'/%3E%3C/svg%3E")}.vpi-social-npm{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M1.763 0C.786 0 0 .786 0 1.763v20.474C0 23.214.786 24 1.763 24h20.474c.977 0 1.763-.786 1.763-1.763V1.763C24 .786 23.214 0 22.237 0zM5.13 5.323l13.837.019-.009 13.836h-3.464l.01-10.382h-3.456L12.04 19.17H5.113z'/%3E%3C/svg%3E")}.vpi-social-slack{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5.042 15.165a2.528 2.528 0 0 1-2.52 2.523A2.528 2.528 0 0 1 0 15.165a2.527 2.527 0 0 1 2.522-2.52h2.52v2.52zm1.271 0a2.527 2.527 0 0 1 2.521-2.52 2.527 2.527 0 0 1 2.521 2.52v6.313A2.528 2.528 0 0 1 8.834 24a2.528 2.528 0 0 1-2.521-2.522v-6.313zM8.834 5.042a2.528 2.528 0 0 1-2.521-2.52A2.528 2.528 0 0 1 8.834 0a2.528 2.528 0 0 1 2.521 2.522v2.52H8.834zm0 1.271a2.528 2.528 0 0 1 2.521 2.521 2.528 2.528 0 0 1-2.521 2.521H2.522A2.528 2.528 0 0 1 0 8.834a2.528 2.528 0 0 1 2.522-2.521h6.312zm10.122 2.521a2.528 2.528 0 0 1 2.522-2.521A2.528 2.528 0 0 1 24 8.834a2.528 2.528 0 0 1-2.522 2.521h-2.522V8.834zm-1.268 0a2.528 2.528 0 0 1-2.523 2.521 2.527 2.527 0 0 1-2.52-2.521V2.522A2.527 2.527 0 0 1 15.165 0a2.528 2.528 0 0 1 2.523 2.522v6.312zm-2.523 10.122a2.528 2.528 0 0 1 2.523 2.522A2.528 2.528 0 0 1 15.165 24a2.527 2.527 0 0 1-2.52-2.522v-2.522h2.52zm0-1.268a2.527 2.527 0 0 1-2.52-2.523 2.526 2.526 0 0 1 2.52-2.52h6.313A2.527 2.527 0 0 1 24 15.165a2.528 2.528 0 0 1-2.522 2.523h-6.313z'/%3E%3C/svg%3E")}.vpi-social-twitter,.vpi-social-x{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z'/%3E%3C/svg%3E")}.vpi-social-youtube{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z'/%3E%3C/svg%3E")}.visually-hidden{position:absolute;width:1px;height:1px;white-space:nowrap;clip:rect(0 0 0 0);clip-path:inset(50%);overflow:hidden}.custom-block{border:1px solid transparent;border-radius:8px;padding:16px 16px 8px;line-height:24px;font-size:var(--vp-custom-block-font-size);color:var(--vp-c-text-2)}.custom-block.info{border-color:var(--vp-custom-block-info-border);color:var(--vp-custom-block-info-text);background-color:var(--vp-custom-block-info-bg)}.custom-block.info a,.custom-block.info code{color:var(--vp-c-brand-1)}.custom-block.info a:hover,.custom-block.info a:hover>code{color:var(--vp-c-brand-2)}.custom-block.info code{background-color:var(--vp-custom-block-info-code-bg)}.custom-block.note{border-color:var(--vp-custom-block-note-border);color:var(--vp-custom-block-note-text);background-color:var(--vp-custom-block-note-bg)}.custom-block.note a,.custom-block.note code{color:var(--vp-c-brand-1)}.custom-block.note a:hover,.custom-block.note a:hover>code{color:var(--vp-c-brand-2)}.custom-block.note code{background-color:var(--vp-custom-block-note-code-bg)}.custom-block.tip{border-color:var(--vp-custom-block-tip-border);color:var(--vp-custom-block-tip-text);background-color:var(--vp-custom-block-tip-bg)}.custom-block.tip a,.custom-block.tip code{color:var(--vp-c-tip-1)}.custom-block.tip a:hover,.custom-block.tip a:hover>code{color:var(--vp-c-tip-2)}.custom-block.tip code{background-color:var(--vp-custom-block-tip-code-bg)}.custom-block.important{border-color:var(--vp-custom-block-important-border);color:var(--vp-custom-block-important-text);background-color:var(--vp-custom-block-important-bg)}.custom-block.important a,.custom-block.important code{color:var(--vp-c-important-1)}.custom-block.important a:hover,.custom-block.important a:hover>code{color:var(--vp-c-important-2)}.custom-block.important code{background-color:var(--vp-custom-block-important-code-bg)}.custom-block.warning{border-color:var(--vp-custom-block-warning-border);color:var(--vp-custom-block-warning-text);background-color:var(--vp-custom-block-warning-bg)}.custom-block.warning a,.custom-block.warning code{color:var(--vp-c-warning-1)}.custom-block.warning a:hover,.custom-block.warning a:hover>code{color:var(--vp-c-warning-2)}.custom-block.warning code{background-color:var(--vp-custom-block-warning-code-bg)}.custom-block.danger{border-color:var(--vp-custom-block-danger-border);color:var(--vp-custom-block-danger-text);background-color:var(--vp-custom-block-danger-bg)}.custom-block.danger a,.custom-block.danger code{color:var(--vp-c-danger-1)}.custom-block.danger a:hover,.custom-block.danger a:hover>code{color:var(--vp-c-danger-2)}.custom-block.danger code{background-color:var(--vp-custom-block-danger-code-bg)}.custom-block.caution{border-color:var(--vp-custom-block-caution-border);color:var(--vp-custom-block-caution-text);background-color:var(--vp-custom-block-caution-bg)}.custom-block.caution a,.custom-block.caution code{color:var(--vp-c-caution-1)}.custom-block.caution a:hover,.custom-block.caution a:hover>code{color:var(--vp-c-caution-2)}.custom-block.caution code{background-color:var(--vp-custom-block-caution-code-bg)}.custom-block.details{border-color:var(--vp-custom-block-details-border);color:var(--vp-custom-block-details-text);background-color:var(--vp-custom-block-details-bg)}.custom-block.details a{color:var(--vp-c-brand-1)}.custom-block.details a:hover,.custom-block.details a:hover>code{color:var(--vp-c-brand-2)}.custom-block.details code{background-color:var(--vp-custom-block-details-code-bg)}.custom-block-title{font-weight:600}.custom-block p+p{margin:8px 0}.custom-block.details summary{margin:0 0 8px;font-weight:700;cursor:pointer;-webkit-user-select:none;user-select:none}.custom-block.details summary+p{margin:8px 0}.custom-block a{color:inherit;font-weight:600;text-decoration:underline;text-underline-offset:2px;transition:opacity .25s}.custom-block a:hover{opacity:.75}.custom-block code{font-size:var(--vp-custom-block-code-font-size)}.custom-block.custom-block th,.custom-block.custom-block blockquote>p{font-size:var(--vp-custom-block-font-size);color:inherit}.dark .vp-code span{color:var(--shiki-dark, inherit)}html:not(.dark) .vp-code span{color:var(--shiki-light, inherit)}.vp-code-group{margin-top:16px}.vp-code-group .tabs{position:relative;display:flex;margin-right:-24px;margin-left:-24px;padding:0 12px;background-color:var(--vp-code-tab-bg);overflow-x:auto;overflow-y:hidden;box-shadow:inset 0 -1px var(--vp-code-tab-divider)}@media (min-width: 640px){.vp-code-group .tabs{margin-right:0;margin-left:0;border-radius:8px 8px 0 0}}.vp-code-group .tabs input{position:fixed;opacity:0;pointer-events:none}.vp-code-group .tabs label{position:relative;display:inline-block;border-bottom:1px solid transparent;padding:0 12px;line-height:48px;font-size:14px;font-weight:500;color:var(--vp-code-tab-text-color);white-space:nowrap;cursor:pointer;transition:color .25s}.vp-code-group .tabs label:after{position:absolute;right:8px;bottom:-1px;left:8px;z-index:1;height:2px;border-radius:2px;content:"";background-color:transparent;transition:background-color .25s}.vp-code-group label:hover{color:var(--vp-code-tab-hover-text-color)}.vp-code-group input:checked+label{color:var(--vp-code-tab-active-text-color)}.vp-code-group input:checked+label:after{background-color:var(--vp-code-tab-active-bar-color)}.vp-code-group div[class*=language-],.vp-block{display:none;margin-top:0!important;border-top-left-radius:0!important;border-top-right-radius:0!important}.vp-code-group div[class*=language-].active,.vp-block.active{display:block}.vp-block{padding:20px 24px}.vp-doc h1,.vp-doc h2,.vp-doc h3,.vp-doc h4,.vp-doc h5,.vp-doc h6{position:relative;font-weight:600;outline:none}.vp-doc h1{letter-spacing:-.02em;line-height:40px;font-size:28px}.vp-doc h2{margin:48px 0 16px;border-top:1px solid var(--vp-c-divider);padding-top:24px;letter-spacing:-.02em;line-height:32px;font-size:24px}.vp-doc h3{margin:32px 0 0;letter-spacing:-.01em;line-height:28px;font-size:20px}.vp-doc h4{margin:24px 0 0;letter-spacing:-.01em;line-height:24px;font-size:18px}.vp-doc .header-anchor{position:absolute;top:0;left:0;margin-left:-.87em;font-weight:500;-webkit-user-select:none;user-select:none;opacity:0;text-decoration:none;transition:color .25s,opacity .25s}.vp-doc .header-anchor:before{content:var(--vp-header-anchor-symbol)}.vp-doc h1:hover .header-anchor,.vp-doc h1 .header-anchor:focus,.vp-doc h2:hover .header-anchor,.vp-doc h2 .header-anchor:focus,.vp-doc h3:hover .header-anchor,.vp-doc h3 .header-anchor:focus,.vp-doc h4:hover .header-anchor,.vp-doc h4 .header-anchor:focus,.vp-doc h5:hover .header-anchor,.vp-doc h5 .header-anchor:focus,.vp-doc h6:hover .header-anchor,.vp-doc h6 .header-anchor:focus{opacity:1}@media (min-width: 768px){.vp-doc h1{letter-spacing:-.02em;line-height:40px;font-size:32px}}.vp-doc h2 .header-anchor{top:24px}.vp-doc p,.vp-doc summary{margin:16px 0}.vp-doc p{line-height:28px}.vp-doc blockquote{margin:16px 0;border-left:2px solid var(--vp-c-divider);padding-left:16px;transition:border-color .5s;color:var(--vp-c-text-2)}.vp-doc blockquote>p{margin:0;font-size:16px;transition:color .5s}.vp-doc a{font-weight:500;color:var(--vp-c-brand-1);text-decoration:underline;text-underline-offset:2px;transition:color .25s,opacity .25s}.vp-doc a:hover{color:var(--vp-c-brand-2)}.vp-doc strong{font-weight:600}.vp-doc ul,.vp-doc ol{padding-left:1.25rem;margin:16px 0}.vp-doc ul{list-style:disc}.vp-doc ol{list-style:decimal}.vp-doc li+li{margin-top:8px}.vp-doc li>ol,.vp-doc li>ul{margin:8px 0 0}.vp-doc table{display:block;border-collapse:collapse;margin:20px 0;overflow-x:auto}.vp-doc tr{background-color:var(--vp-c-bg);border-top:1px solid var(--vp-c-divider);transition:background-color .5s}.vp-doc tr:nth-child(2n){background-color:var(--vp-c-bg-soft)}.vp-doc th,.vp-doc td{border:1px solid var(--vp-c-divider);padding:8px 16px}.vp-doc th{text-align:left;font-size:14px;font-weight:600;color:var(--vp-c-text-2);background-color:var(--vp-c-bg-soft)}.vp-doc td{font-size:14px}.vp-doc hr{margin:16px 0;border:none;border-top:1px solid var(--vp-c-divider)}.vp-doc .custom-block{margin:16px 0}.vp-doc .custom-block p{margin:8px 0;line-height:24px}.vp-doc .custom-block p:first-child{margin:0}.vp-doc .custom-block div[class*=language-]{margin:8px 0;border-radius:8px}.vp-doc .custom-block div[class*=language-] code{font-weight:400;background-color:transparent}.vp-doc .custom-block .vp-code-group .tabs{margin:0;border-radius:8px 8px 0 0}.vp-doc :not(pre,h1,h2,h3,h4,h5,h6)>code{font-size:var(--vp-code-font-size);color:var(--vp-code-color)}.vp-doc :not(pre)>code{border-radius:4px;padding:3px 6px;background-color:var(--vp-code-bg);transition:color .25s,background-color .5s}.vp-doc a>code{color:var(--vp-code-link-color)}.vp-doc a:hover>code{color:var(--vp-code-link-hover-color)}.vp-doc h1>code,.vp-doc h2>code,.vp-doc h3>code,.vp-doc h4>code{font-size:.9em}.vp-doc div[class*=language-],.vp-block{position:relative;margin:16px -24px;background-color:var(--vp-code-block-bg);overflow-x:auto;transition:background-color .5s}@media (min-width: 640px){.vp-doc div[class*=language-],.vp-block{border-radius:8px;margin:16px 0}}@media (max-width: 639px){.vp-doc li div[class*=language-]{border-radius:8px 0 0 8px}}.vp-doc div[class*=language-]+div[class*=language-],.vp-doc div[class$=-api]+div[class*=language-],.vp-doc div[class*=language-]+div[class$=-api]>div[class*=language-]{margin-top:-8px}.vp-doc [class*=language-] pre,.vp-doc [class*=language-] code{direction:ltr;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}.vp-doc [class*=language-] pre{position:relative;z-index:1;margin:0;padding:20px 0;background:transparent;overflow-x:auto}.vp-doc [class*=language-] code{display:block;padding:0 24px;width:fit-content;min-width:100%;line-height:var(--vp-code-line-height);font-size:var(--vp-code-font-size);color:var(--vp-code-block-color);transition:color .5s}.vp-doc [class*=language-] code .highlighted{background-color:var(--vp-code-line-highlight-color);transition:background-color .5s;margin:0 -24px;padding:0 24px;width:calc(100% + 48px);display:inline-block}.vp-doc [class*=language-] code .highlighted.error{background-color:var(--vp-code-line-error-color)}.vp-doc [class*=language-] code .highlighted.warning{background-color:var(--vp-code-line-warning-color)}.vp-doc [class*=language-] code .diff{transition:background-color .5s;margin:0 -24px;padding:0 24px;width:calc(100% + 48px);display:inline-block}.vp-doc [class*=language-] code .diff:before{position:absolute;left:10px}.vp-doc [class*=language-] .has-focused-lines .line:not(.has-focus){filter:blur(.095rem);opacity:.4;transition:filter .35s,opacity .35s}.vp-doc [class*=language-] .has-focused-lines .line:not(.has-focus){opacity:.7;transition:filter .35s,opacity .35s}.vp-doc [class*=language-]:hover .has-focused-lines .line:not(.has-focus){filter:blur(0);opacity:1}.vp-doc [class*=language-] code .diff.remove{background-color:var(--vp-code-line-diff-remove-color);opacity:.7}.vp-doc [class*=language-] code .diff.remove:before{content:"-";color:var(--vp-code-line-diff-remove-symbol-color)}.vp-doc [class*=language-] code .diff.add{background-color:var(--vp-code-line-diff-add-color)}.vp-doc [class*=language-] code .diff.add:before{content:"+";color:var(--vp-code-line-diff-add-symbol-color)}.vp-doc div[class*=language-].line-numbers-mode{padding-left:32px}.vp-doc .line-numbers-wrapper{position:absolute;top:0;bottom:0;left:0;z-index:3;border-right:1px solid var(--vp-code-block-divider-color);padding-top:20px;width:32px;text-align:center;font-family:var(--vp-font-family-mono);line-height:var(--vp-code-line-height);font-size:var(--vp-code-font-size);color:var(--vp-code-line-number-color);transition:border-color .5s,color .5s}.vp-doc [class*=language-]>button.copy{direction:ltr;position:absolute;top:12px;right:12px;z-index:3;border:1px solid var(--vp-code-copy-code-border-color);border-radius:4px;width:40px;height:40px;background-color:var(--vp-code-copy-code-bg);opacity:0;cursor:pointer;background-image:var(--vp-icon-copy);background-position:50%;background-size:20px;background-repeat:no-repeat;transition:border-color .25s,background-color .25s,opacity .25s}.vp-doc [class*=language-]:hover>button.copy,.vp-doc [class*=language-]>button.copy:focus{opacity:1}.vp-doc [class*=language-]>button.copy:hover,.vp-doc [class*=language-]>button.copy.copied{border-color:var(--vp-code-copy-code-hover-border-color);background-color:var(--vp-code-copy-code-hover-bg)}.vp-doc [class*=language-]>button.copy.copied,.vp-doc [class*=language-]>button.copy:hover.copied{border-radius:0 4px 4px 0;background-color:var(--vp-code-copy-code-hover-bg);background-image:var(--vp-icon-copied)}.vp-doc [class*=language-]>button.copy.copied:before,.vp-doc [class*=language-]>button.copy:hover.copied:before{position:relative;top:-1px;transform:translate(calc(-100% - 1px));display:flex;justify-content:center;align-items:center;border:1px solid var(--vp-code-copy-code-hover-border-color);border-right:0;border-radius:4px 0 0 4px;padding:0 10px;width:fit-content;height:40px;text-align:center;font-size:12px;font-weight:500;color:var(--vp-code-copy-code-active-text);background-color:var(--vp-code-copy-code-hover-bg);white-space:nowrap;content:var(--vp-code-copy-copied-text-content)}.vp-doc [class*=language-]>span.lang{position:absolute;top:2px;right:8px;z-index:2;font-size:12px;font-weight:500;color:var(--vp-code-lang-color);transition:color .4s,opacity .4s}.vp-doc [class*=language-]:hover>button.copy+span.lang,.vp-doc [class*=language-]>button.copy:focus+span.lang{opacity:0}.vp-doc .VPTeamMembers{margin-top:24px}.vp-doc .VPTeamMembers.small.count-1 .container{margin:0!important;max-width:calc((100% - 24px)/2)!important}.vp-doc .VPTeamMembers.small.count-2 .container,.vp-doc .VPTeamMembers.small.count-3 .container{max-width:100%!important}.vp-doc .VPTeamMembers.medium.count-1 .container{margin:0!important;max-width:calc((100% - 24px)/2)!important}:is(.vp-external-link-icon,.vp-doc a[href*="://"],.vp-doc a[target=_blank]):not(.no-icon):after{display:inline-block;margin-top:-1px;margin-left:4px;width:11px;height:11px;background:currentColor;color:var(--vp-c-text-3);flex-shrink:0;--icon: url("data:image/svg+xml, %3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' %3E%3Cpath d='M0 0h24v24H0V0z' fill='none' /%3E%3Cpath d='M9 5v2h6.59L4 18.59 5.41 20 17 8.41V15h2V5H9z' /%3E%3C/svg%3E");-webkit-mask-image:var(--icon);mask-image:var(--icon)}.vp-external-link-icon:after{content:""}.external-link-icon-enabled :is(.vp-doc a[href*="://"],.vp-doc a[target=_blank]):after{content:"";color:currentColor}.vp-sponsor{border-radius:16px;overflow:hidden}.vp-sponsor.aside{border-radius:12px}.vp-sponsor-section+.vp-sponsor-section{margin-top:4px}.vp-sponsor-tier{margin:0 0 4px!important;text-align:center;letter-spacing:1px!important;line-height:24px;width:100%;font-weight:600;color:var(--vp-c-text-2);background-color:var(--vp-c-bg-soft)}.vp-sponsor.normal .vp-sponsor-tier{padding:13px 0 11px;font-size:14px}.vp-sponsor.aside .vp-sponsor-tier{padding:9px 0 7px;font-size:12px}.vp-sponsor-grid+.vp-sponsor-tier{margin-top:4px}.vp-sponsor-grid{display:flex;flex-wrap:wrap;gap:4px}.vp-sponsor-grid.xmini .vp-sponsor-grid-link{height:64px}.vp-sponsor-grid.xmini .vp-sponsor-grid-image{max-width:64px;max-height:22px}.vp-sponsor-grid.mini .vp-sponsor-grid-link{height:72px}.vp-sponsor-grid.mini .vp-sponsor-grid-image{max-width:96px;max-height:24px}.vp-sponsor-grid.small .vp-sponsor-grid-link{height:96px}.vp-sponsor-grid.small .vp-sponsor-grid-image{max-width:96px;max-height:24px}.vp-sponsor-grid.medium .vp-sponsor-grid-link{height:112px}.vp-sponsor-grid.medium .vp-sponsor-grid-image{max-width:120px;max-height:36px}.vp-sponsor-grid.big .vp-sponsor-grid-link{height:184px}.vp-sponsor-grid.big .vp-sponsor-grid-image{max-width:192px;max-height:56px}.vp-sponsor-grid[data-vp-grid="2"] .vp-sponsor-grid-item{width:calc((100% - 4px)/2)}.vp-sponsor-grid[data-vp-grid="3"] .vp-sponsor-grid-item{width:calc((100% - 4px * 2) / 3)}.vp-sponsor-grid[data-vp-grid="4"] .vp-sponsor-grid-item{width:calc((100% - 12px)/4)}.vp-sponsor-grid[data-vp-grid="5"] .vp-sponsor-grid-item{width:calc((100% - 16px)/5)}.vp-sponsor-grid[data-vp-grid="6"] .vp-sponsor-grid-item{width:calc((100% - 4px * 5) / 6)}.vp-sponsor-grid-item{flex-shrink:0;width:100%;background-color:var(--vp-c-bg-soft);transition:background-color .25s}.vp-sponsor-grid-item:hover{background-color:var(--vp-c-default-soft)}.vp-sponsor-grid-item:hover .vp-sponsor-grid-image{filter:grayscale(0) invert(0)}.vp-sponsor-grid-item.empty:hover{background-color:var(--vp-c-bg-soft)}.dark .vp-sponsor-grid-item:hover{background-color:var(--vp-c-white)}.dark .vp-sponsor-grid-item.empty:hover{background-color:var(--vp-c-bg-soft)}.vp-sponsor-grid-link{display:flex}.vp-sponsor-grid-box{display:flex;justify-content:center;align-items:center;width:100%}.vp-sponsor-grid-image{max-width:100%;filter:grayscale(1);transition:filter .25s}.dark .vp-sponsor-grid-image{filter:grayscale(1) invert(1)}.VPBadge{display:inline-block;margin-left:2px;border:1px solid transparent;border-radius:12px;padding:0 10px;line-height:22px;font-size:12px;font-weight:500;transform:translateY(-2px)}.VPBadge.small{padding:0 6px;line-height:18px;font-size:10px;transform:translateY(-8px)}.VPDocFooter .VPBadge{display:none}.vp-doc h1>.VPBadge{margin-top:4px;vertical-align:top}.vp-doc h2>.VPBadge{margin-top:3px;padding:0 8px;vertical-align:top}.vp-doc h3>.VPBadge{vertical-align:middle}.vp-doc h4>.VPBadge,.vp-doc h5>.VPBadge,.vp-doc h6>.VPBadge{vertical-align:middle;line-height:18px}.VPBadge.info{border-color:var(--vp-badge-info-border);color:var(--vp-badge-info-text);background-color:var(--vp-badge-info-bg)}.VPBadge.tip{border-color:var(--vp-badge-tip-border);color:var(--vp-badge-tip-text);background-color:var(--vp-badge-tip-bg)}.VPBadge.warning{border-color:var(--vp-badge-warning-border);color:var(--vp-badge-warning-text);background-color:var(--vp-badge-warning-bg)}.VPBadge.danger{border-color:var(--vp-badge-danger-border);color:var(--vp-badge-danger-text);background-color:var(--vp-badge-danger-bg)}.VPBackdrop[data-v-7e9fed24]{position:fixed;top:0;right:0;bottom:0;left:0;z-index:var(--vp-z-index-backdrop);background:var(--vp-backdrop-bg-color);transition:opacity .5s}.VPBackdrop.fade-enter-from[data-v-7e9fed24],.VPBackdrop.fade-leave-to[data-v-7e9fed24]{opacity:0}.VPBackdrop.fade-leave-active[data-v-7e9fed24]{transition-duration:.25s}@media (min-width: 1280px){.VPBackdrop[data-v-7e9fed24]{display:none}}.NotFound[data-v-743bc607]{padding:64px 24px 96px;text-align:center}@media (min-width: 768px){.NotFound[data-v-743bc607]{padding:96px 32px 168px}}.code[data-v-743bc607]{line-height:64px;font-size:64px;font-weight:600}.title[data-v-743bc607]{padding-top:12px;letter-spacing:2px;line-height:20px;font-size:20px;font-weight:700}.divider[data-v-743bc607]{margin:24px auto 18px;width:64px;height:1px;background-color:var(--vp-c-divider)}.quote[data-v-743bc607]{margin:0 auto;max-width:256px;font-size:14px;font-weight:500;color:var(--vp-c-text-2)}.action[data-v-743bc607]{padding-top:20px}.link[data-v-743bc607]{display:inline-block;border:1px solid var(--vp-c-brand-1);border-radius:16px;padding:3px 16px;font-size:14px;font-weight:500;color:var(--vp-c-brand-1);transition:border-color .25s,color .25s}.link[data-v-743bc607]:hover{border-color:var(--vp-c-brand-2);color:var(--vp-c-brand-2)}.root[data-v-1406b17f]{position:relative;z-index:1}.nested[data-v-1406b17f]{padding-right:16px;padding-left:16px}.outline-link[data-v-1406b17f]{display:block;line-height:32px;font-size:14px;font-weight:400;color:var(--vp-c-text-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:color .5s}.outline-link[data-v-1406b17f]:hover,.outline-link.active[data-v-1406b17f]{color:var(--vp-c-text-1);transition:color .25s}.outline-link.nested[data-v-1406b17f]{padding-left:13px}.VPDocAsideOutline[data-v-d2c84864]{display:none}.VPDocAsideOutline.has-outline[data-v-d2c84864]{display:block}.content[data-v-d2c84864]{position:relative;border-left:1px solid var(--vp-c-divider);padding-left:16px;font-size:13px;font-weight:500}.outline-marker[data-v-d2c84864]{position:absolute;top:32px;left:-1px;z-index:0;opacity:0;width:2px;border-radius:2px;height:18px;background-color:var(--vp-c-brand-1);transition:top .25s cubic-bezier(0,1,.5,1),background-color .5s,opacity .25s}.outline-title[data-v-d2c84864]{line-height:32px;font-size:14px;font-weight:600}.VPDocAside[data-v-2fb953a0]{display:flex;flex-direction:column;flex-grow:1}.spacer[data-v-2fb953a0]{flex-grow:1}.VPDocAside[data-v-2fb953a0] .spacer+.VPDocAsideSponsors,.VPDocAside[data-v-2fb953a0] .spacer+.VPDocAsideCarbonAds{margin-top:24px}.VPDocAside[data-v-2fb953a0] .VPDocAsideSponsors+.VPDocAsideCarbonAds{margin-top:16px}.VPLastUpdated[data-v-8a8c5efc]{line-height:24px;font-size:14px;font-weight:500;color:var(--vp-c-text-2)}@media (min-width: 640px){.VPLastUpdated[data-v-8a8c5efc]{line-height:32px;font-size:14px;font-weight:500}}.VPDocFooter[data-v-655c432b]{margin-top:64px}.edit-info[data-v-655c432b]{padding-bottom:18px}@media (min-width: 640px){.edit-info[data-v-655c432b]{display:flex;justify-content:space-between;align-items:center;padding-bottom:14px}}.edit-link-button[data-v-655c432b]{display:flex;align-items:center;border:0;line-height:32px;font-size:14px;font-weight:500;color:var(--vp-c-brand-1);transition:color .25s}.edit-link-button[data-v-655c432b]:hover{color:var(--vp-c-brand-2)}.edit-link-icon[data-v-655c432b]{margin-right:8px}.prev-next[data-v-655c432b]{border-top:1px solid var(--vp-c-divider);padding-top:24px;display:grid;grid-row-gap:8px}@media (min-width: 640px){.prev-next[data-v-655c432b]{grid-template-columns:repeat(2,1fr);grid-column-gap:16px}}.pager-link[data-v-655c432b]{display:block;border:1px solid var(--vp-c-divider);border-radius:8px;padding:11px 16px 13px;width:100%;height:100%;transition:border-color .25s}.pager-link[data-v-655c432b]:hover{border-color:var(--vp-c-brand-1)}.pager-link.next[data-v-655c432b]{margin-left:auto;text-align:right}.desc[data-v-655c432b]{display:block;line-height:20px;font-size:12px;font-weight:500;color:var(--vp-c-text-2)}.title[data-v-655c432b]{display:block;line-height:20px;font-size:14px;font-weight:500;color:var(--vp-c-brand-1);transition:color .25s}.VPDoc[data-v-1c9751e9]{padding:32px 24px 96px;width:100%}@media (min-width: 768px){.VPDoc[data-v-1c9751e9]{padding:48px 32px 128px}}@media (min-width: 960px){.VPDoc[data-v-1c9751e9]{padding:48px 32px 0}.VPDoc:not(.has-sidebar) .container[data-v-1c9751e9]{display:flex;justify-content:center;max-width:992px}.VPDoc:not(.has-sidebar) .content[data-v-1c9751e9]{max-width:752px}}@media (min-width: 1280px){.VPDoc .container[data-v-1c9751e9]{display:flex;justify-content:center}.VPDoc .aside[data-v-1c9751e9]{display:block}}@media (min-width: 1440px){.VPDoc:not(.has-sidebar) .content[data-v-1c9751e9]{max-width:784px}.VPDoc:not(.has-sidebar) .container[data-v-1c9751e9]{max-width:1104px}}.container[data-v-1c9751e9]{margin:0 auto;width:100%}.aside[data-v-1c9751e9]{position:relative;display:none;order:2;flex-grow:1;padding-left:32px;width:100%;max-width:256px}.left-aside[data-v-1c9751e9]{order:1;padding-left:unset;padding-right:32px}.aside-container[data-v-1c9751e9]{position:fixed;top:0;padding-top:calc(var(--vp-nav-height) + var(--vp-layout-top-height, 0px) + var(--vp-doc-top-height, 0px) + 48px);width:224px;height:100vh;overflow-x:hidden;overflow-y:auto;scrollbar-width:none}.aside-container[data-v-1c9751e9]::-webkit-scrollbar{display:none}.aside-curtain[data-v-1c9751e9]{position:fixed;bottom:0;z-index:10;width:224px;height:32px;background:linear-gradient(transparent,var(--vp-c-bg) 70%)}.aside-content[data-v-1c9751e9]{display:flex;flex-direction:column;min-height:calc(100vh - (var(--vp-nav-height) + var(--vp-layout-top-height, 0px) + 48px));padding-bottom:32px}.content[data-v-1c9751e9]{position:relative;margin:0 auto;width:100%}@media (min-width: 960px){.content[data-v-1c9751e9]{padding:0 32px 128px}}@media (min-width: 1280px){.content[data-v-1c9751e9]{order:1;margin:0;min-width:640px}}.content-container[data-v-1c9751e9]{margin:0 auto}.VPDoc.has-aside .content-container[data-v-1c9751e9]{max-width:688px}.VPButton[data-v-885c0d42]{display:inline-block;border:1px solid transparent;text-align:center;font-weight:600;white-space:nowrap;transition:color .25s,border-color .25s,background-color .25s}.VPButton[data-v-885c0d42]:active{transition:color .1s,border-color .1s,background-color .1s}.VPButton.medium[data-v-885c0d42]{border-radius:20px;padding:0 20px;line-height:38px;font-size:14px}.VPButton.big[data-v-885c0d42]{border-radius:24px;padding:0 24px;line-height:46px;font-size:16px}.VPButton.brand[data-v-885c0d42]{border-color:var(--vp-button-brand-border);color:var(--vp-button-brand-text);background-color:var(--vp-button-brand-bg)}.VPButton.brand[data-v-885c0d42]:hover{border-color:var(--vp-button-brand-hover-border);color:var(--vp-button-brand-hover-text);background-color:var(--vp-button-brand-hover-bg)}.VPButton.brand[data-v-885c0d42]:active{border-color:var(--vp-button-brand-active-border);color:var(--vp-button-brand-active-text);background-color:var(--vp-button-brand-active-bg)}.VPButton.alt[data-v-885c0d42]{border-color:var(--vp-button-alt-border);color:var(--vp-button-alt-text);background-color:var(--vp-button-alt-bg)}.VPButton.alt[data-v-885c0d42]:hover{border-color:var(--vp-button-alt-hover-border);color:var(--vp-button-alt-hover-text);background-color:var(--vp-button-alt-hover-bg)}.VPButton.alt[data-v-885c0d42]:active{border-color:var(--vp-button-alt-active-border);color:var(--vp-button-alt-active-text);background-color:var(--vp-button-alt-active-bg)}.VPButton.sponsor[data-v-885c0d42]{border-color:var(--vp-button-sponsor-border);color:var(--vp-button-sponsor-text);background-color:var(--vp-button-sponsor-bg)}.VPButton.sponsor[data-v-885c0d42]:hover{border-color:var(--vp-button-sponsor-hover-border);color:var(--vp-button-sponsor-hover-text);background-color:var(--vp-button-sponsor-hover-bg)}.VPButton.sponsor[data-v-885c0d42]:active{border-color:var(--vp-button-sponsor-active-border);color:var(--vp-button-sponsor-active-text);background-color:var(--vp-button-sponsor-active-bg)}html:not(.dark) .VPImage.dark[data-v-e2df84be]{display:none}.dark .VPImage.light[data-v-e2df84be]{display:none}.VPHero[data-v-fad16c33]{margin-top:calc((var(--vp-nav-height) + var(--vp-layout-top-height, 0px)) * -1);padding:calc(var(--vp-nav-height) + var(--vp-layout-top-height, 0px) + 48px) 24px 48px}@media (min-width: 640px){.VPHero[data-v-fad16c33]{padding:calc(var(--vp-nav-height) + var(--vp-layout-top-height, 0px) + 80px) 48px 64px}}@media (min-width: 960px){.VPHero[data-v-fad16c33]{padding:calc(var(--vp-nav-height) + var(--vp-layout-top-height, 0px) + 80px) 64px 64px}}.container[data-v-fad16c33]{display:flex;flex-direction:column;margin:0 auto;max-width:1152px}@media (min-width: 960px){.container[data-v-fad16c33]{flex-direction:row}}.main[data-v-fad16c33]{position:relative;z-index:10;order:2;flex-grow:1;flex-shrink:0}.VPHero.has-image .container[data-v-fad16c33]{text-align:center}@media (min-width: 960px){.VPHero.has-image .container[data-v-fad16c33]{text-align:left}}@media (min-width: 960px){.main[data-v-fad16c33]{order:1;width:calc((100% / 3) * 2)}.VPHero.has-image .main[data-v-fad16c33]{max-width:592px}}.name[data-v-fad16c33],.text[data-v-fad16c33]{max-width:392px;letter-spacing:-.4px;line-height:40px;font-size:32px;font-weight:700;white-space:pre-wrap}.VPHero.has-image .name[data-v-fad16c33],.VPHero.has-image .text[data-v-fad16c33]{margin:0 auto}.name[data-v-fad16c33]{color:var(--vp-home-hero-name-color)}.clip[data-v-fad16c33]{background:var(--vp-home-hero-name-background);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:var(--vp-home-hero-name-color)}@media (min-width: 640px){.name[data-v-fad16c33],.text[data-v-fad16c33]{max-width:576px;line-height:56px;font-size:48px}}@media (min-width: 960px){.name[data-v-fad16c33],.text[data-v-fad16c33]{line-height:64px;font-size:56px}.VPHero.has-image .name[data-v-fad16c33],.VPHero.has-image .text[data-v-fad16c33]{margin:0}}.tagline[data-v-fad16c33]{padding-top:8px;max-width:392px;line-height:28px;font-size:18px;font-weight:500;white-space:pre-wrap;color:var(--vp-c-text-2)}.VPHero.has-image .tagline[data-v-fad16c33]{margin:0 auto}@media (min-width: 640px){.tagline[data-v-fad16c33]{padding-top:12px;max-width:576px;line-height:32px;font-size:20px}}@media (min-width: 960px){.tagline[data-v-fad16c33]{line-height:36px;font-size:24px}.VPHero.has-image .tagline[data-v-fad16c33]{margin:0}}.actions[data-v-fad16c33]{display:flex;flex-wrap:wrap;margin:-6px;padding-top:24px}.VPHero.has-image .actions[data-v-fad16c33]{justify-content:center}@media (min-width: 640px){.actions[data-v-fad16c33]{padding-top:32px}}@media (min-width: 960px){.VPHero.has-image .actions[data-v-fad16c33]{justify-content:flex-start}}.action[data-v-fad16c33]{flex-shrink:0;padding:6px}.image[data-v-fad16c33]{order:1;margin:-76px -24px -48px}@media (min-width: 640px){.image[data-v-fad16c33]{margin:-108px -24px -48px}}@media (min-width: 960px){.image[data-v-fad16c33]{flex-grow:1;order:2;margin:0;min-height:100%}}.image-container[data-v-fad16c33]{position:relative;margin:0 auto;width:320px;height:320px}@media (min-width: 640px){.image-container[data-v-fad16c33]{width:392px;height:392px}}@media (min-width: 960px){.image-container[data-v-fad16c33]{display:flex;justify-content:center;align-items:center;width:100%;height:100%;transform:translate(-32px,-32px)}}.image-bg[data-v-fad16c33]{position:absolute;top:50%;left:50%;border-radius:50%;width:192px;height:192px;background-image:var(--vp-home-hero-image-background-image);filter:var(--vp-home-hero-image-filter);transform:translate(-50%,-50%)}@media (min-width: 640px){.image-bg[data-v-fad16c33]{width:256px;height:256px}}@media (min-width: 960px){.image-bg[data-v-fad16c33]{width:320px;height:320px}}[data-v-fad16c33] .image-src{position:absolute;top:50%;left:50%;max-width:192px;max-height:192px;transform:translate(-50%,-50%)}@media (min-width: 640px){[data-v-fad16c33] .image-src{max-width:256px;max-height:256px}}@media (min-width: 960px){[data-v-fad16c33] .image-src{max-width:320px;max-height:320px}}.VPFeature[data-v-cf4dac36]{display:block;border:1px solid var(--vp-c-bg-soft);border-radius:12px;height:100%;background-color:var(--vp-c-bg-soft);transition:border-color .25s,background-color .25s}.VPFeature.link[data-v-cf4dac36]:hover{border-color:var(--vp-c-brand-1)}.box[data-v-cf4dac36]{display:flex;flex-direction:column;padding:24px;height:100%}.box[data-v-cf4dac36]>.VPImage{margin-bottom:20px}.icon[data-v-cf4dac36]{display:flex;justify-content:center;align-items:center;margin-bottom:20px;border-radius:6px;background-color:var(--vp-c-default-soft);width:48px;height:48px;font-size:24px;transition:background-color .25s}.title[data-v-cf4dac36]{line-height:24px;font-size:16px;font-weight:600}.details[data-v-cf4dac36]{flex-grow:1;padding-top:8px;line-height:24px;font-size:14px;font-weight:500;color:var(--vp-c-text-2)}.link-text[data-v-cf4dac36]{padding-top:8px}.link-text-value[data-v-cf4dac36]{display:flex;align-items:center;font-size:14px;font-weight:500;color:var(--vp-c-brand-1)}.link-text-icon[data-v-cf4dac36]{margin-left:6px}.VPFeatures[data-v-ac35a1e4]{position:relative;padding:0 24px}@media (min-width: 640px){.VPFeatures[data-v-ac35a1e4]{padding:0 48px}}@media (min-width: 960px){.VPFeatures[data-v-ac35a1e4]{padding:0 64px}}.container[data-v-ac35a1e4]{margin:0 auto;max-width:1152px}.items[data-v-ac35a1e4]{display:flex;flex-wrap:wrap;margin:-8px}.item[data-v-ac35a1e4]{padding:8px;width:100%}@media (min-width: 640px){.item.grid-2[data-v-ac35a1e4],.item.grid-4[data-v-ac35a1e4],.item.grid-6[data-v-ac35a1e4]{width:50%}}@media (min-width: 768px){.item.grid-2[data-v-ac35a1e4],.item.grid-4[data-v-ac35a1e4]{width:50%}.item.grid-3[data-v-ac35a1e4],.item.grid-6[data-v-ac35a1e4]{width:calc(100% / 3)}}@media (min-width: 960px){.item.grid-4[data-v-ac35a1e4]{width:25%}}.container[data-v-6adace40]{margin:auto;width:100%;max-width:1280px;padding:0 24px}@media (min-width: 640px){.container[data-v-6adace40]{padding:0 48px}}@media (min-width: 960px){.container[data-v-6adace40]{width:100%;padding:0 64px}}.vp-doc[data-v-6adace40] .VPHomeSponsors,.vp-doc[data-v-6adace40] .VPTeamPage{margin-left:var(--vp-offset, calc(50% - 50vw) );margin-right:var(--vp-offset, calc(50% - 50vw) )}.vp-doc[data-v-6adace40] .VPHomeSponsors h2{border-top:none;letter-spacing:normal}.vp-doc[data-v-6adace40] .VPHomeSponsors a,.vp-doc[data-v-6adace40] .VPTeamPage a{text-decoration:none}.VPHome[data-v-da614b08]{margin-bottom:96px}@media (min-width: 768px){.VPHome[data-v-da614b08]{margin-bottom:128px}}.VPContent[data-v-f70c28c5]{flex-grow:1;flex-shrink:0;margin:var(--vp-layout-top-height, 0px) auto 0;width:100%}.VPContent.is-home[data-v-f70c28c5]{width:100%;max-width:100%}.VPContent.has-sidebar[data-v-f70c28c5]{margin:0}@media (min-width: 960px){.VPContent[data-v-f70c28c5]{padding-top:var(--vp-nav-height)}.VPContent.has-sidebar[data-v-f70c28c5]{margin:var(--vp-layout-top-height, 0px) 0 0;padding-left:var(--vp-sidebar-width)}}@media (min-width: 1440px){.VPContent.has-sidebar[data-v-f70c28c5]{padding-right:calc((100vw - var(--vp-layout-max-width)) / 2);padding-left:calc((100vw - var(--vp-layout-max-width)) / 2 + var(--vp-sidebar-width))}}.VPFooter[data-v-1a52749f]{position:relative;z-index:var(--vp-z-index-footer);border-top:1px solid var(--vp-c-gutter);padding:32px 24px;background-color:var(--vp-c-bg)}.VPFooter.has-sidebar[data-v-1a52749f]{display:none}.VPFooter[data-v-1a52749f] a{text-decoration-line:underline;text-underline-offset:2px;transition:color .25s}.VPFooter[data-v-1a52749f] a:hover{color:var(--vp-c-text-1)}@media (min-width: 768px){.VPFooter[data-v-1a52749f]{padding:32px}}.container[data-v-1a52749f]{margin:0 auto;max-width:var(--vp-layout-max-width);text-align:center}.message[data-v-1a52749f],.copyright[data-v-1a52749f]{line-height:24px;font-size:14px;font-weight:500;color:var(--vp-c-text-2)}.VPLocalNavOutlineDropdown[data-v-c1bcce0a]{padding:12px 20px 11px}@media (min-width: 960px){.VPLocalNavOutlineDropdown[data-v-c1bcce0a]{padding:12px 36px 11px}}.VPLocalNavOutlineDropdown button[data-v-c1bcce0a]{display:block;font-size:12px;font-weight:500;line-height:24px;color:var(--vp-c-text-2);transition:color .5s;position:relative}.VPLocalNavOutlineDropdown button[data-v-c1bcce0a]:hover{color:var(--vp-c-text-1);transition:color .25s}.VPLocalNavOutlineDropdown button.open[data-v-c1bcce0a]{color:var(--vp-c-text-1)}.icon[data-v-c1bcce0a]{display:inline-block;vertical-align:middle;margin-left:2px;font-size:14px;transform:rotate(0);transition:transform .25s}@media (min-width: 960px){.VPLocalNavOutlineDropdown button[data-v-c1bcce0a]{font-size:14px}.icon[data-v-c1bcce0a]{font-size:16px}}.open>.icon[data-v-c1bcce0a]{transform:rotate(90deg)}.items[data-v-c1bcce0a]{position:absolute;top:40px;right:16px;left:16px;display:grid;gap:1px;border:1px solid var(--vp-c-border);border-radius:8px;background-color:var(--vp-c-gutter);max-height:calc(var(--vp-vh, 100vh) - 86px);overflow:hidden auto;box-shadow:var(--vp-shadow-3)}@media (min-width: 960px){.items[data-v-c1bcce0a]{right:auto;left:calc(var(--vp-sidebar-width) + 32px);width:320px}}.header[data-v-c1bcce0a]{background-color:var(--vp-c-bg-soft)}.top-link[data-v-c1bcce0a]{display:block;padding:0 16px;line-height:48px;font-size:14px;font-weight:500;color:var(--vp-c-brand-1)}.outline[data-v-c1bcce0a]{padding:8px 0;background-color:var(--vp-c-bg-soft)}.flyout-enter-active[data-v-c1bcce0a]{transition:all .2s ease-out}.flyout-leave-active[data-v-c1bcce0a]{transition:all .15s ease-in}.flyout-enter-from[data-v-c1bcce0a],.flyout-leave-to[data-v-c1bcce0a]{opacity:0;transform:translateY(-16px)}.VPLocalNav[data-v-cb0eba99]{position:sticky;top:0;left:0;z-index:var(--vp-z-index-local-nav);border-bottom:1px solid var(--vp-c-gutter);padding-top:var(--vp-layout-top-height, 0px);width:100%;background-color:var(--vp-local-nav-bg-color)}.VPLocalNav.fixed[data-v-cb0eba99]{position:fixed}@media (min-width: 960px){.VPLocalNav[data-v-cb0eba99]{top:var(--vp-nav-height)}.VPLocalNav.has-sidebar[data-v-cb0eba99]{padding-left:var(--vp-sidebar-width)}.VPLocalNav.empty[data-v-cb0eba99]{display:none}}@media (min-width: 1280px){.VPLocalNav[data-v-cb0eba99]{display:none}}@media (min-width: 1440px){.VPLocalNav.has-sidebar[data-v-cb0eba99]{padding-left:calc((100vw - var(--vp-layout-max-width)) / 2 + var(--vp-sidebar-width))}}.container[data-v-cb0eba99]{display:flex;justify-content:space-between;align-items:center}.menu[data-v-cb0eba99]{display:flex;align-items:center;padding:12px 24px 11px;line-height:24px;font-size:12px;font-weight:500;color:var(--vp-c-text-2);transition:color .5s}.menu[data-v-cb0eba99]:hover{color:var(--vp-c-text-1);transition:color .25s}@media (min-width: 768px){.menu[data-v-cb0eba99]{padding:0 32px}}@media (min-width: 960px){.menu[data-v-cb0eba99]{display:none}}.menu-icon[data-v-cb0eba99]{margin-right:8px;font-size:14px}.VPOutlineDropdown[data-v-cb0eba99]{padding:12px 24px 11px}@media (min-width: 768px){.VPOutlineDropdown[data-v-cb0eba99]{padding:12px 32px 11px}}.VPSwitch[data-v-be0da757]{position:relative;border-radius:11px;display:block;width:40px;height:22px;flex-shrink:0;border:1px solid var(--vp-input-border-color);background-color:var(--vp-input-switch-bg-color);transition:border-color .25s!important}.VPSwitch[data-v-be0da757]:hover{border-color:var(--vp-c-brand-1)}.check[data-v-be0da757]{position:absolute;top:1px;left:1px;width:18px;height:18px;border-radius:50%;background-color:var(--vp-c-neutral-inverse);box-shadow:var(--vp-shadow-1);transition:transform .25s!important}.icon[data-v-be0da757]{position:relative;display:block;width:18px;height:18px;border-radius:50%;overflow:hidden}.icon[data-v-be0da757] [class^=vpi-]{position:absolute;top:3px;left:3px;width:12px;height:12px;color:var(--vp-c-text-2)}.dark .icon[data-v-be0da757] [class^=vpi-]{color:var(--vp-c-text-1);transition:opacity .25s!important}.sun[data-v-d86ee44f]{opacity:1}.moon[data-v-d86ee44f],.dark .sun[data-v-d86ee44f]{opacity:0}.dark .moon[data-v-d86ee44f]{opacity:1}.dark .VPSwitchAppearance[data-v-d86ee44f] .check{transform:translate(18px)}.VPNavBarAppearance[data-v-06e253f6]{display:none}@media (min-width: 1280px){.VPNavBarAppearance[data-v-06e253f6]{display:flex;align-items:center}}.VPMenuGroup+.VPMenuLink[data-v-01a82388]{margin:12px -12px 0;border-top:1px solid var(--vp-c-divider);padding:12px 12px 0}.link[data-v-01a82388]{display:block;border-radius:6px;padding:0 12px;line-height:32px;font-size:14px;font-weight:500;color:var(--vp-c-text-1);white-space:nowrap;transition:background-color .25s,color .25s}.link[data-v-01a82388]:hover{color:var(--vp-c-brand-1);background-color:var(--vp-c-default-soft)}.link.active[data-v-01a82388]{color:var(--vp-c-brand-1)}.VPMenuGroup[data-v-655b43d5]{margin:12px -12px 0;border-top:1px solid var(--vp-c-divider);padding:12px 12px 0}.VPMenuGroup[data-v-655b43d5]:first-child{margin-top:0;border-top:0;padding-top:0}.VPMenuGroup+.VPMenuGroup[data-v-655b43d5]{margin-top:12px;border-top:1px solid var(--vp-c-divider)}.title[data-v-655b43d5]{padding:0 12px;line-height:32px;font-size:14px;font-weight:600;color:var(--vp-c-text-2);white-space:nowrap;transition:color .25s}.VPMenu[data-v-ce2cf657]{border-radius:12px;padding:12px;min-width:128px;border:1px solid var(--vp-c-divider);background-color:var(--vp-c-bg-elv);box-shadow:var(--vp-shadow-3);transition:background-color .5s;max-height:calc(100vh - var(--vp-nav-height));overflow-y:auto}.VPMenu[data-v-ce2cf657] .group{margin:0 -12px;padding:0 12px 12px}.VPMenu[data-v-ce2cf657] .group+.group{border-top:1px solid var(--vp-c-divider);padding:11px 12px 12px}.VPMenu[data-v-ce2cf657] .group:last-child{padding-bottom:0}.VPMenu[data-v-ce2cf657] .group+.item{border-top:1px solid var(--vp-c-divider);padding:11px 16px 0}.VPMenu[data-v-ce2cf657] .item{padding:0 16px;white-space:nowrap}.VPMenu[data-v-ce2cf657] .label{flex-grow:1;line-height:28px;font-size:12px;font-weight:500;color:var(--vp-c-text-2);transition:color .5s}.VPMenu[data-v-ce2cf657] .action{padding-left:24px}.VPFlyout[data-v-062a5734]{position:relative}.VPFlyout[data-v-062a5734]:hover{color:var(--vp-c-brand-1);transition:color .25s}.VPFlyout:hover .text[data-v-062a5734]{color:var(--vp-c-text-2)}.VPFlyout:hover .icon[data-v-062a5734]{fill:var(--vp-c-text-2)}.VPFlyout.active .text[data-v-062a5734]{color:var(--vp-c-brand-1)}.VPFlyout.active:hover .text[data-v-062a5734]{color:var(--vp-c-brand-2)}.VPFlyout:hover .menu[data-v-062a5734],.button[aria-expanded=true]+.menu[data-v-062a5734]{opacity:1;visibility:visible;transform:translateY(0)}.button[aria-expanded=false]+.menu[data-v-062a5734]{opacity:0;visibility:hidden;transform:translateY(0)}.button[data-v-062a5734]{display:flex;align-items:center;padding:0 12px;height:var(--vp-nav-height);color:var(--vp-c-text-1);transition:color .5s}.text[data-v-062a5734]{display:flex;align-items:center;line-height:var(--vp-nav-height);font-size:14px;font-weight:500;color:var(--vp-c-text-1);transition:color .25s}.option-icon[data-v-062a5734]{margin-right:0;font-size:16px}.text-icon[data-v-062a5734]{margin-left:4px;font-size:14px}.icon[data-v-062a5734]{font-size:20px;transition:fill .25s}.menu[data-v-062a5734]{position:absolute;top:calc(var(--vp-nav-height) / 2 + 20px);right:0;opacity:0;visibility:hidden;transition:opacity .25s,visibility .25s,transform .25s}.VPSocialLink[data-v-99aaa61b]{display:flex;justify-content:center;align-items:center;width:36px;height:36px;color:var(--vp-c-text-2);transition:color .5s}.VPSocialLink[data-v-99aaa61b]:hover{color:var(--vp-c-text-1);transition:color .25s}.VPSocialLink[data-v-99aaa61b]>svg,.VPSocialLink[data-v-99aaa61b]>[class^=vpi-social-]{width:20px;height:20px;fill:currentColor}.VPSocialLinks[data-v-ca9cff1c]{display:flex;justify-content:center}.VPNavBarExtra[data-v-cf308650]{display:none;margin-right:-12px}@media (min-width: 768px){.VPNavBarExtra[data-v-cf308650]{display:block}}@media (min-width: 1280px){.VPNavBarExtra[data-v-cf308650]{display:none}}.trans-title[data-v-cf308650]{padding:0 24px 0 12px;line-height:32px;font-size:14px;font-weight:700;color:var(--vp-c-text-1)}.item.appearance[data-v-cf308650],.item.social-links[data-v-cf308650]{display:flex;align-items:center;padding:0 12px}.item.appearance[data-v-cf308650]{min-width:176px}.appearance-action[data-v-cf308650]{margin-right:-2px}.social-links-list[data-v-cf308650]{margin:-4px -8px}.VPNavBarHamburger[data-v-cdf5d88e]{display:flex;justify-content:center;align-items:center;width:48px;height:var(--vp-nav-height)}@media (min-width: 768px){.VPNavBarHamburger[data-v-cdf5d88e]{display:none}}.container[data-v-cdf5d88e]{position:relative;width:16px;height:14px;overflow:hidden}.VPNavBarHamburger:hover .top[data-v-cdf5d88e]{top:0;left:0;transform:translate(4px)}.VPNavBarHamburger:hover .middle[data-v-cdf5d88e]{top:6px;left:0;transform:translate(0)}.VPNavBarHamburger:hover .bottom[data-v-cdf5d88e]{top:12px;left:0;transform:translate(8px)}.VPNavBarHamburger.active .top[data-v-cdf5d88e]{top:6px;transform:translate(0) rotate(225deg)}.VPNavBarHamburger.active .middle[data-v-cdf5d88e]{top:6px;transform:translate(16px)}.VPNavBarHamburger.active .bottom[data-v-cdf5d88e]{top:6px;transform:translate(0) rotate(135deg)}.VPNavBarHamburger.active:hover .top[data-v-cdf5d88e],.VPNavBarHamburger.active:hover .middle[data-v-cdf5d88e],.VPNavBarHamburger.active:hover .bottom[data-v-cdf5d88e]{background-color:var(--vp-c-text-2);transition:top .25s,background-color .25s,transform .25s}.top[data-v-cdf5d88e],.middle[data-v-cdf5d88e],.bottom[data-v-cdf5d88e]{position:absolute;width:16px;height:2px;background-color:var(--vp-c-text-1);transition:top .25s,background-color .5s,transform .25s}.top[data-v-cdf5d88e]{top:0;left:0;transform:translate(0)}.middle[data-v-cdf5d88e]{top:6px;left:0;transform:translate(8px)}.bottom[data-v-cdf5d88e]{top:12px;left:0;transform:translate(4px)}.VPNavBarMenuLink[data-v-2a328df5]{display:flex;align-items:center;padding:0 12px;line-height:var(--vp-nav-height);font-size:14px;font-weight:500;color:var(--vp-c-text-1);transition:color .25s}.VPNavBarMenuLink.active[data-v-2a328df5],.VPNavBarMenuLink[data-v-2a328df5]:hover{color:var(--vp-c-brand-1)}.VPNavBarMenu[data-v-dc270a69]{display:none}@media (min-width: 768px){.VPNavBarMenu[data-v-dc270a69]{display:flex}}/*! @docsearch/css 3.6.1 | MIT License | © Algolia, Inc. and contributors | https://docsearch.algolia.com */:root{--docsearch-primary-color:#5468ff;--docsearch-text-color:#1c1e21;--docsearch-spacing:12px;--docsearch-icon-stroke-width:1.4;--docsearch-highlight-color:var(--docsearch-primary-color);--docsearch-muted-color:#969faf;--docsearch-container-background:rgba(101,108,133,.8);--docsearch-logo-color:#5468ff;--docsearch-modal-width:560px;--docsearch-modal-height:600px;--docsearch-modal-background:#f5f6f7;--docsearch-modal-shadow:inset 1px 1px 0 0 hsla(0,0%,100%,.5),0 3px 8px 0 #555a64;--docsearch-searchbox-height:56px;--docsearch-searchbox-background:#ebedf0;--docsearch-searchbox-focus-background:#fff;--docsearch-searchbox-shadow:inset 0 0 0 2px var(--docsearch-primary-color);--docsearch-hit-height:56px;--docsearch-hit-color:#444950;--docsearch-hit-active-color:#fff;--docsearch-hit-background:#fff;--docsearch-hit-shadow:0 1px 3px 0 #d4d9e1;--docsearch-key-gradient:linear-gradient(-225deg,#d5dbe4,#f8f8f8);--docsearch-key-shadow:inset 0 -2px 0 0 #cdcde6,inset 0 0 1px 1px #fff,0 1px 2px 1px rgba(30,35,90,.4);--docsearch-key-pressed-shadow:inset 0 -2px 0 0 #cdcde6,inset 0 0 1px 1px #fff,0 1px 1px 0 rgba(30,35,90,.4);--docsearch-footer-height:44px;--docsearch-footer-background:#fff;--docsearch-footer-shadow:0 -1px 0 0 #e0e3e8,0 -3px 6px 0 rgba(69,98,155,.12)}html[data-theme=dark]{--docsearch-text-color:#f5f6f7;--docsearch-container-background:rgba(9,10,17,.8);--docsearch-modal-background:#15172a;--docsearch-modal-shadow:inset 1px 1px 0 0 #2c2e40,0 3px 8px 0 #000309;--docsearch-searchbox-background:#090a11;--docsearch-searchbox-focus-background:#000;--docsearch-hit-color:#bec3c9;--docsearch-hit-shadow:none;--docsearch-hit-background:#090a11;--docsearch-key-gradient:linear-gradient(-26.5deg,#565872,#31355b);--docsearch-key-shadow:inset 0 -2px 0 0 #282d55,inset 0 0 1px 1px #51577d,0 2px 2px 0 rgba(3,4,9,.3);--docsearch-key-pressed-shadow:inset 0 -2px 0 0 #282d55,inset 0 0 1px 1px #51577d,0 1px 1px 0 rgba(3,4,9,.30196078431372547);--docsearch-footer-background:#1e2136;--docsearch-footer-shadow:inset 0 1px 0 0 rgba(73,76,106,.5),0 -4px 8px 0 rgba(0,0,0,.2);--docsearch-logo-color:#fff;--docsearch-muted-color:#7f8497}.DocSearch-Button{align-items:center;background:var(--docsearch-searchbox-background);border:0;border-radius:40px;color:var(--docsearch-muted-color);cursor:pointer;display:flex;font-weight:500;height:36px;justify-content:space-between;margin:0 0 0 16px;padding:0 8px;-webkit-user-select:none;user-select:none}.DocSearch-Button:active,.DocSearch-Button:focus,.DocSearch-Button:hover{background:var(--docsearch-searchbox-focus-background);box-shadow:var(--docsearch-searchbox-shadow);color:var(--docsearch-text-color);outline:none}.DocSearch-Button-Container{align-items:center;display:flex}.DocSearch-Search-Icon{stroke-width:1.6}.DocSearch-Button .DocSearch-Search-Icon{color:var(--docsearch-text-color)}.DocSearch-Button-Placeholder{font-size:1rem;padding:0 12px 0 6px}.DocSearch-Button-Keys{display:flex;min-width:calc(40px + .8em)}.DocSearch-Button-Key{align-items:center;background:var(--docsearch-key-gradient);border-radius:3px;box-shadow:var(--docsearch-key-shadow);color:var(--docsearch-muted-color);display:flex;height:18px;justify-content:center;margin-right:.4em;position:relative;padding:0 0 2px;border:0;top:-1px;width:20px}.DocSearch-Button-Key--pressed{transform:translate3d(0,1px,0);box-shadow:var(--docsearch-key-pressed-shadow)}@media (max-width:768px){.DocSearch-Button-Keys,.DocSearch-Button-Placeholder{display:none}}.DocSearch--active{overflow:hidden!important}.DocSearch-Container,.DocSearch-Container *{box-sizing:border-box}.DocSearch-Container{background-color:var(--docsearch-container-background);height:100vh;left:0;position:fixed;top:0;width:100vw;z-index:200}.DocSearch-Container a{text-decoration:none}.DocSearch-Link{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;color:var(--docsearch-highlight-color);cursor:pointer;font:inherit;margin:0;padding:0}.DocSearch-Modal{background:var(--docsearch-modal-background);border-radius:6px;box-shadow:var(--docsearch-modal-shadow);flex-direction:column;margin:60px auto auto;max-width:var(--docsearch-modal-width);position:relative}.DocSearch-SearchBar{display:flex;padding:var(--docsearch-spacing) var(--docsearch-spacing) 0}.DocSearch-Form{align-items:center;background:var(--docsearch-searchbox-focus-background);border-radius:4px;box-shadow:var(--docsearch-searchbox-shadow);display:flex;height:var(--docsearch-searchbox-height);margin:0;padding:0 var(--docsearch-spacing);position:relative;width:100%}.DocSearch-Input{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:0;color:var(--docsearch-text-color);flex:1;font:inherit;font-size:1.2em;height:100%;outline:none;padding:0 0 0 8px;width:80%}.DocSearch-Input::placeholder{color:var(--docsearch-muted-color);opacity:1}.DocSearch-Input::-webkit-search-cancel-button,.DocSearch-Input::-webkit-search-decoration,.DocSearch-Input::-webkit-search-results-button,.DocSearch-Input::-webkit-search-results-decoration{display:none}.DocSearch-LoadingIndicator,.DocSearch-MagnifierLabel,.DocSearch-Reset{margin:0;padding:0}.DocSearch-MagnifierLabel,.DocSearch-Reset{align-items:center;color:var(--docsearch-highlight-color);display:flex;justify-content:center}.DocSearch-Container--Stalled .DocSearch-MagnifierLabel,.DocSearch-LoadingIndicator{display:none}.DocSearch-Container--Stalled .DocSearch-LoadingIndicator{align-items:center;color:var(--docsearch-highlight-color);display:flex;justify-content:center}@media screen and (prefers-reduced-motion:reduce){.DocSearch-Reset{animation:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;border-radius:50%;color:var(--docsearch-icon-color);cursor:pointer;right:0;stroke-width:var(--docsearch-icon-stroke-width)}}.DocSearch-Reset{animation:fade-in .1s ease-in forwards;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;border-radius:50%;color:var(--docsearch-icon-color);cursor:pointer;padding:2px;right:0;stroke-width:var(--docsearch-icon-stroke-width)}.DocSearch-Reset[hidden]{display:none}.DocSearch-Reset:hover{color:var(--docsearch-highlight-color)}.DocSearch-LoadingIndicator svg,.DocSearch-MagnifierLabel svg{height:24px;width:24px}.DocSearch-Cancel{display:none}.DocSearch-Dropdown{max-height:calc(var(--docsearch-modal-height) - var(--docsearch-searchbox-height) - var(--docsearch-spacing) - var(--docsearch-footer-height));min-height:var(--docsearch-spacing);overflow-y:auto;overflow-y:overlay;padding:0 var(--docsearch-spacing);scrollbar-color:var(--docsearch-muted-color) var(--docsearch-modal-background);scrollbar-width:thin}.DocSearch-Dropdown::-webkit-scrollbar{width:12px}.DocSearch-Dropdown::-webkit-scrollbar-track{background:transparent}.DocSearch-Dropdown::-webkit-scrollbar-thumb{background-color:var(--docsearch-muted-color);border:3px solid var(--docsearch-modal-background);border-radius:20px}.DocSearch-Dropdown ul{list-style:none;margin:0;padding:0}.DocSearch-Label{font-size:.75em;line-height:1.6em}.DocSearch-Help,.DocSearch-Label{color:var(--docsearch-muted-color)}.DocSearch-Help{font-size:.9em;margin:0;-webkit-user-select:none;user-select:none}.DocSearch-Title{font-size:1.2em}.DocSearch-Logo a{display:flex}.DocSearch-Logo svg{color:var(--docsearch-logo-color);margin-left:8px}.DocSearch-Hits:last-of-type{margin-bottom:24px}.DocSearch-Hits mark{background:none;color:var(--docsearch-highlight-color)}.DocSearch-HitsFooter{color:var(--docsearch-muted-color);display:flex;font-size:.85em;justify-content:center;margin-bottom:var(--docsearch-spacing);padding:var(--docsearch-spacing)}.DocSearch-HitsFooter a{border-bottom:1px solid;color:inherit}.DocSearch-Hit{border-radius:4px;display:flex;padding-bottom:4px;position:relative}@media screen and (prefers-reduced-motion:reduce){.DocSearch-Hit--deleting{transition:none}}.DocSearch-Hit--deleting{opacity:0;transition:all .25s linear}@media screen and (prefers-reduced-motion:reduce){.DocSearch-Hit--favoriting{transition:none}}.DocSearch-Hit--favoriting{transform:scale(0);transform-origin:top center;transition:all .25s linear;transition-delay:.25s}.DocSearch-Hit a{background:var(--docsearch-hit-background);border-radius:4px;box-shadow:var(--docsearch-hit-shadow);display:block;padding-left:var(--docsearch-spacing);width:100%}.DocSearch-Hit-source{background:var(--docsearch-modal-background);color:var(--docsearch-highlight-color);font-size:.85em;font-weight:600;line-height:32px;margin:0 -4px;padding:8px 4px 0;position:sticky;top:0;z-index:10}.DocSearch-Hit-Tree{color:var(--docsearch-muted-color);height:var(--docsearch-hit-height);opacity:.5;stroke-width:var(--docsearch-icon-stroke-width);width:24px}.DocSearch-Hit[aria-selected=true] a{background-color:var(--docsearch-highlight-color)}.DocSearch-Hit[aria-selected=true] mark{text-decoration:underline}.DocSearch-Hit-Container{align-items:center;color:var(--docsearch-hit-color);display:flex;flex-direction:row;height:var(--docsearch-hit-height);padding:0 var(--docsearch-spacing) 0 0}.DocSearch-Hit-icon{height:20px;width:20px}.DocSearch-Hit-action,.DocSearch-Hit-icon{color:var(--docsearch-muted-color);stroke-width:var(--docsearch-icon-stroke-width)}.DocSearch-Hit-action{align-items:center;display:flex;height:22px;width:22px}.DocSearch-Hit-action svg{display:block;height:18px;width:18px}.DocSearch-Hit-action+.DocSearch-Hit-action{margin-left:6px}.DocSearch-Hit-action-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;border-radius:50%;color:inherit;cursor:pointer;padding:2px}svg.DocSearch-Hit-Select-Icon{display:none}.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-Select-Icon{display:block}.DocSearch-Hit-action-button:focus,.DocSearch-Hit-action-button:hover{background:#0003;transition:background-color .1s ease-in}@media screen and (prefers-reduced-motion:reduce){.DocSearch-Hit-action-button:focus,.DocSearch-Hit-action-button:hover{transition:none}}.DocSearch-Hit-action-button:focus path,.DocSearch-Hit-action-button:hover path{fill:#fff}.DocSearch-Hit-content-wrapper{display:flex;flex:1 1 auto;flex-direction:column;font-weight:500;justify-content:center;line-height:1.2em;margin:0 8px;overflow-x:hidden;position:relative;text-overflow:ellipsis;white-space:nowrap;width:80%}.DocSearch-Hit-title{font-size:.9em}.DocSearch-Hit-path{color:var(--docsearch-muted-color);font-size:.75em}.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-action,.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-icon,.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-path,.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-text,.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-title,.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-Tree,.DocSearch-Hit[aria-selected=true] mark{color:var(--docsearch-hit-active-color)!important}@media screen and (prefers-reduced-motion:reduce){.DocSearch-Hit-action-button:focus,.DocSearch-Hit-action-button:hover{background:#0003;transition:none}}.DocSearch-ErrorScreen,.DocSearch-NoResults,.DocSearch-StartScreen{font-size:.9em;margin:0 auto;padding:36px 0;text-align:center;width:80%}.DocSearch-Screen-Icon{color:var(--docsearch-muted-color);padding-bottom:12px}.DocSearch-NoResults-Prefill-List{display:inline-block;padding-bottom:24px;text-align:left}.DocSearch-NoResults-Prefill-List ul{display:inline-block;padding:8px 0 0}.DocSearch-NoResults-Prefill-List li{list-style-position:inside;list-style-type:"» "}.DocSearch-Prefill{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;border-radius:1em;color:var(--docsearch-highlight-color);cursor:pointer;display:inline-block;font-size:1em;font-weight:700;padding:0}.DocSearch-Prefill:focus,.DocSearch-Prefill:hover{outline:none;text-decoration:underline}.DocSearch-Footer{align-items:center;background:var(--docsearch-footer-background);border-radius:0 0 8px 8px;box-shadow:var(--docsearch-footer-shadow);display:flex;flex-direction:row-reverse;flex-shrink:0;height:var(--docsearch-footer-height);justify-content:space-between;padding:0 var(--docsearch-spacing);position:relative;-webkit-user-select:none;user-select:none;width:100%;z-index:300}.DocSearch-Commands{color:var(--docsearch-muted-color);display:flex;list-style:none;margin:0;padding:0}.DocSearch-Commands li{align-items:center;display:flex}.DocSearch-Commands li:not(:last-of-type){margin-right:.8em}.DocSearch-Commands-Key{align-items:center;background:var(--docsearch-key-gradient);border-radius:2px;box-shadow:var(--docsearch-key-shadow);display:flex;height:18px;justify-content:center;margin-right:.4em;padding:0 0 1px;color:var(--docsearch-muted-color);border:0;width:20px}.DocSearch-VisuallyHiddenForAccessibility{clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}@media (max-width:768px){:root{--docsearch-spacing:10px;--docsearch-footer-height:40px}.DocSearch-Dropdown{height:100%}.DocSearch-Container{height:100vh;height:-webkit-fill-available;height:calc(var(--docsearch-vh, 1vh)*100);position:absolute}.DocSearch-Footer{border-radius:0;bottom:0;position:absolute}.DocSearch-Hit-content-wrapper{display:flex;position:relative;width:80%}.DocSearch-Modal{border-radius:0;box-shadow:none;height:100vh;height:-webkit-fill-available;height:calc(var(--docsearch-vh, 1vh)*100);margin:0;max-width:100%;width:100%}.DocSearch-Dropdown{max-height:calc(var(--docsearch-vh, 1vh)*100 - var(--docsearch-searchbox-height) - var(--docsearch-spacing) - var(--docsearch-footer-height))}.DocSearch-Cancel{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;color:var(--docsearch-highlight-color);cursor:pointer;display:inline-block;flex:none;font:inherit;font-size:1em;font-weight:500;margin-left:var(--docsearch-spacing);outline:none;overflow:hidden;padding:0;-webkit-user-select:none;user-select:none;white-space:nowrap}.DocSearch-Commands,.DocSearch-Hit-Tree{display:none}}@keyframes fade-in{0%{opacity:0}to{opacity:1}}[class*=DocSearch]{--docsearch-primary-color: var(--vp-c-brand-1);--docsearch-highlight-color: var(--docsearch-primary-color);--docsearch-text-color: var(--vp-c-text-1);--docsearch-muted-color: var(--vp-c-text-2);--docsearch-searchbox-shadow: none;--docsearch-searchbox-background: transparent;--docsearch-searchbox-focus-background: transparent;--docsearch-key-gradient: transparent;--docsearch-key-shadow: none;--docsearch-modal-background: var(--vp-c-bg-soft);--docsearch-footer-background: var(--vp-c-bg)}.dark [class*=DocSearch]{--docsearch-modal-shadow: none;--docsearch-footer-shadow: none;--docsearch-logo-color: var(--vp-c-text-2);--docsearch-hit-background: var(--vp-c-default-soft);--docsearch-hit-color: var(--vp-c-text-2);--docsearch-hit-shadow: none}.DocSearch-Button{display:flex;justify-content:center;align-items:center;margin:0;padding:0;width:48px;height:55px;background:transparent;transition:border-color .25s}.DocSearch-Button:hover{background:transparent}.DocSearch-Button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}.DocSearch-Button-Key--pressed{transform:none;box-shadow:none}.DocSearch-Button:focus:not(:focus-visible){outline:none!important}@media (min-width: 768px){.DocSearch-Button{justify-content:flex-start;border:1px solid transparent;border-radius:8px;padding:0 10px 0 12px;width:100%;height:40px;background-color:var(--vp-c-bg-alt)}.DocSearch-Button:hover{border-color:var(--vp-c-brand-1);background:var(--vp-c-bg-alt)}}.DocSearch-Button .DocSearch-Button-Container{display:flex;align-items:center}.DocSearch-Button .DocSearch-Search-Icon{position:relative;width:16px;height:16px;color:var(--vp-c-text-1);fill:currentColor;transition:color .5s}.DocSearch-Button:hover .DocSearch-Search-Icon{color:var(--vp-c-text-1)}@media (min-width: 768px){.DocSearch-Button .DocSearch-Search-Icon{top:1px;margin-right:8px;width:14px;height:14px;color:var(--vp-c-text-2)}}.DocSearch-Button .DocSearch-Button-Placeholder{display:none;margin-top:2px;padding:0 16px 0 0;font-size:13px;font-weight:500;color:var(--vp-c-text-2);transition:color .5s}.DocSearch-Button:hover .DocSearch-Button-Placeholder{color:var(--vp-c-text-1)}@media (min-width: 768px){.DocSearch-Button .DocSearch-Button-Placeholder{display:inline-block}}.DocSearch-Button .DocSearch-Button-Keys{direction:ltr;display:none;min-width:auto}@media (min-width: 768px){.DocSearch-Button .DocSearch-Button-Keys{display:flex;align-items:center}}.DocSearch-Button .DocSearch-Button-Key{display:block;margin:2px 0 0;border:1px solid var(--vp-c-divider);border-right:none;border-radius:4px 0 0 4px;padding-left:6px;min-width:0;width:auto;height:22px;line-height:22px;font-family:var(--vp-font-family-base);font-size:12px;font-weight:500;transition:color .5s,border-color .5s}.DocSearch-Button .DocSearch-Button-Key+.DocSearch-Button-Key{border-right:1px solid var(--vp-c-divider);border-left:none;border-radius:0 4px 4px 0;padding-left:2px;padding-right:6px}.DocSearch-Button .DocSearch-Button-Key:first-child{font-size:0!important}.DocSearch-Button .DocSearch-Button-Key:first-child:after{content:"Ctrl";font-size:12px;letter-spacing:normal;color:var(--docsearch-muted-color)}.mac .DocSearch-Button .DocSearch-Button-Key:first-child:after{content:"⌘"}.DocSearch-Button .DocSearch-Button-Key:first-child>*{display:none}.DocSearch-Search-Icon{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' stroke-width='1.6' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' d='m14.386 14.386 4.088 4.088-4.088-4.088A7.533 7.533 0 1 1 3.733 3.733a7.533 7.533 0 0 1 10.653 10.653z'/%3E%3C/svg%3E")}.VPNavBarSearch{display:flex;align-items:center}@media (min-width: 768px){.VPNavBarSearch{flex-grow:1;padding-left:24px}}@media (min-width: 960px){.VPNavBarSearch{padding-left:32px}}.dark .DocSearch-Footer{border-top:1px solid var(--vp-c-divider)}.DocSearch-Form{border:1px solid var(--vp-c-brand-1);background-color:var(--vp-c-white)}.dark .DocSearch-Form{background-color:var(--vp-c-default-soft)}.DocSearch-Screen-Icon>svg{margin:auto}.VPNavBarSocialLinks[data-v-489228c3]{display:none}@media (min-width: 1280px){.VPNavBarSocialLinks[data-v-489228c3]{display:flex;align-items:center}}.title[data-v-d1e2cfaa]{display:flex;align-items:center;border-bottom:1px solid transparent;width:100%;height:var(--vp-nav-height);font-size:16px;font-weight:600;color:var(--vp-c-text-1);transition:opacity .25s}@media (min-width: 960px){.title[data-v-d1e2cfaa]{flex-shrink:0}.VPNavBarTitle.has-sidebar .title[data-v-d1e2cfaa]{border-bottom-color:var(--vp-c-divider)}}[data-v-d1e2cfaa] .logo{margin-right:8px;height:var(--vp-nav-logo-height)}.VPNavBarTranslations[data-v-1cf30254]{display:none}@media (min-width: 1280px){.VPNavBarTranslations[data-v-1cf30254]{display:flex;align-items:center}}.title[data-v-1cf30254]{padding:0 24px 0 12px;line-height:32px;font-size:14px;font-weight:700;color:var(--vp-c-text-1)}.VPNavBar[data-v-6db865c9]{position:relative;height:var(--vp-nav-height);pointer-events:none;white-space:nowrap;transition:background-color .25s}.VPNavBar.screen-open[data-v-6db865c9]{transition:none;background-color:var(--vp-nav-bg-color);border-bottom:1px solid var(--vp-c-divider)}.VPNavBar[data-v-6db865c9]:not(.home){background-color:var(--vp-nav-bg-color)}@media (min-width: 960px){.VPNavBar[data-v-6db865c9]:not(.home){background-color:transparent}.VPNavBar[data-v-6db865c9]:not(.has-sidebar):not(.home.top){background-color:var(--vp-nav-bg-color)}}.wrapper[data-v-6db865c9]{padding:0 8px 0 24px}@media (min-width: 768px){.wrapper[data-v-6db865c9]{padding:0 32px}}@media (min-width: 960px){.VPNavBar.has-sidebar .wrapper[data-v-6db865c9]{padding:0}}.container[data-v-6db865c9]{display:flex;justify-content:space-between;margin:0 auto;max-width:calc(var(--vp-layout-max-width) - 64px);height:var(--vp-nav-height);pointer-events:none}.container>.title[data-v-6db865c9],.container>.content[data-v-6db865c9]{pointer-events:none}.container[data-v-6db865c9] *{pointer-events:auto}@media (min-width: 960px){.VPNavBar.has-sidebar .container[data-v-6db865c9]{max-width:100%}}.title[data-v-6db865c9]{flex-shrink:0;height:calc(var(--vp-nav-height) - 1px);transition:background-color .5s}@media (min-width: 960px){.VPNavBar.has-sidebar .title[data-v-6db865c9]{position:absolute;top:0;left:0;z-index:2;padding:0 32px;width:var(--vp-sidebar-width);height:var(--vp-nav-height);background-color:transparent}}@media (min-width: 1440px){.VPNavBar.has-sidebar .title[data-v-6db865c9]{padding-left:max(32px,calc((100% - (var(--vp-layout-max-width) - 64px)) / 2));width:calc((100% - (var(--vp-layout-max-width) - 64px)) / 2 + var(--vp-sidebar-width) - 32px)}}.content[data-v-6db865c9]{flex-grow:1}@media (min-width: 960px){.VPNavBar.has-sidebar .content[data-v-6db865c9]{position:relative;z-index:1;padding-right:32px;padding-left:var(--vp-sidebar-width)}}@media (min-width: 1440px){.VPNavBar.has-sidebar .content[data-v-6db865c9]{padding-right:calc((100vw - var(--vp-layout-max-width)) / 2 + 32px);padding-left:calc((100vw - var(--vp-layout-max-width)) / 2 + var(--vp-sidebar-width))}}.content-body[data-v-6db865c9]{display:flex;justify-content:flex-end;align-items:center;height:var(--vp-nav-height);transition:background-color .5s}@media (min-width: 960px){.VPNavBar:not(.home.top) .content-body[data-v-6db865c9]{position:relative;background-color:var(--vp-nav-bg-color)}.VPNavBar:not(.has-sidebar):not(.home.top) .content-body[data-v-6db865c9]{background-color:transparent}}@media (max-width: 767px){.content-body[data-v-6db865c9]{column-gap:.5rem}}.menu+.translations[data-v-6db865c9]:before,.menu+.appearance[data-v-6db865c9]:before,.menu+.social-links[data-v-6db865c9]:before,.translations+.appearance[data-v-6db865c9]:before,.appearance+.social-links[data-v-6db865c9]:before{margin-right:8px;margin-left:8px;width:1px;height:24px;background-color:var(--vp-c-divider);content:""}.menu+.appearance[data-v-6db865c9]:before,.translations+.appearance[data-v-6db865c9]:before{margin-right:16px}.appearance+.social-links[data-v-6db865c9]:before{margin-left:16px}.social-links[data-v-6db865c9]{margin-right:-8px}.divider[data-v-6db865c9]{width:100%;height:1px}@media (min-width: 960px){.VPNavBar.has-sidebar .divider[data-v-6db865c9]{padding-left:var(--vp-sidebar-width)}}@media (min-width: 1440px){.VPNavBar.has-sidebar .divider[data-v-6db865c9]{padding-left:calc((100vw - var(--vp-layout-max-width)) / 2 + var(--vp-sidebar-width))}}.divider-line[data-v-6db865c9]{width:100%;height:1px;transition:background-color .5s}.VPNavBar:not(.home) .divider-line[data-v-6db865c9]{background-color:var(--vp-c-gutter)}@media (min-width: 960px){.VPNavBar:not(.home.top) .divider-line[data-v-6db865c9]{background-color:var(--vp-c-gutter)}.VPNavBar:not(.has-sidebar):not(.home.top) .divider[data-v-6db865c9]{background-color:var(--vp-c-gutter)}}.VPNavScreenAppearance[data-v-d86aab40]{display:flex;justify-content:space-between;align-items:center;border-radius:8px;padding:12px 14px 12px 16px;background-color:var(--vp-c-bg-soft)}.text[data-v-d86aab40]{line-height:24px;font-size:12px;font-weight:500;color:var(--vp-c-text-2)}.VPNavScreenMenuLink[data-v-a0f676ea]{display:block;border-bottom:1px solid var(--vp-c-divider);padding:12px 0 11px;line-height:24px;font-size:14px;font-weight:500;color:var(--vp-c-text-1);transition:border-color .25s,color .25s}.VPNavScreenMenuLink[data-v-a0f676ea]:hover{color:var(--vp-c-brand-1)}.VPNavScreenMenuGroupLink[data-v-63dc5c8c]{display:block;margin-left:12px;line-height:32px;font-size:14px;font-weight:400;color:var(--vp-c-text-1);transition:color .25s}.VPNavScreenMenuGroupLink[data-v-63dc5c8c]:hover{color:var(--vp-c-brand-1)}.VPNavScreenMenuGroupSection[data-v-e26000b6]{display:block}.title[data-v-e26000b6]{line-height:32px;font-size:13px;font-weight:700;color:var(--vp-c-text-2);transition:color .25s}.VPNavScreenMenuGroup[data-v-2d86c186]{border-bottom:1px solid var(--vp-c-divider);height:48px;overflow:hidden;transition:border-color .5s}.VPNavScreenMenuGroup .items[data-v-2d86c186]{visibility:hidden}.VPNavScreenMenuGroup.open .items[data-v-2d86c186]{visibility:visible}.VPNavScreenMenuGroup.open[data-v-2d86c186]{padding-bottom:10px;height:auto}.VPNavScreenMenuGroup.open .button[data-v-2d86c186]{padding-bottom:6px;color:var(--vp-c-brand-1)}.VPNavScreenMenuGroup.open .button-icon[data-v-2d86c186]{transform:rotate(45deg)}.button[data-v-2d86c186]{display:flex;justify-content:space-between;align-items:center;padding:12px 4px 11px 0;width:100%;line-height:24px;font-size:14px;font-weight:500;color:var(--vp-c-text-1);transition:color .25s}.button[data-v-2d86c186]:hover{color:var(--vp-c-brand-1)}.button-icon[data-v-2d86c186]{transition:transform .25s}.group[data-v-2d86c186]:first-child{padding-top:0}.group+.group[data-v-2d86c186],.group+.item[data-v-2d86c186]{padding-top:4px}.VPNavScreenTranslations[data-v-66e76a18]{height:24px;overflow:hidden}.VPNavScreenTranslations.open[data-v-66e76a18]{height:auto}.title[data-v-66e76a18]{display:flex;align-items:center;font-size:14px;font-weight:500;color:var(--vp-c-text-1)}.icon[data-v-66e76a18]{font-size:16px}.icon.lang[data-v-66e76a18]{margin-right:8px}.icon.chevron[data-v-66e76a18]{margin-left:4px}.list[data-v-66e76a18]{padding:4px 0 0 24px}.link[data-v-66e76a18]{line-height:32px;font-size:13px;color:var(--vp-c-text-1)}.VPNavScreen[data-v-3ff2bb85]{position:fixed;top:calc(var(--vp-nav-height) + var(--vp-layout-top-height, 0px));right:0;bottom:0;left:0;padding:0 32px;width:100%;background-color:var(--vp-nav-screen-bg-color);overflow-y:auto;transition:background-color .25s;pointer-events:auto}.VPNavScreen.fade-enter-active[data-v-3ff2bb85],.VPNavScreen.fade-leave-active[data-v-3ff2bb85]{transition:opacity .25s}.VPNavScreen.fade-enter-active .container[data-v-3ff2bb85],.VPNavScreen.fade-leave-active .container[data-v-3ff2bb85]{transition:transform .25s ease}.VPNavScreen.fade-enter-from[data-v-3ff2bb85],.VPNavScreen.fade-leave-to[data-v-3ff2bb85]{opacity:0}.VPNavScreen.fade-enter-from .container[data-v-3ff2bb85],.VPNavScreen.fade-leave-to .container[data-v-3ff2bb85]{transform:translateY(-8px)}@media (min-width: 768px){.VPNavScreen[data-v-3ff2bb85]{display:none}}.container[data-v-3ff2bb85]{margin:0 auto;padding:24px 0 96px;max-width:288px}.menu+.translations[data-v-3ff2bb85],.menu+.appearance[data-v-3ff2bb85],.translations+.appearance[data-v-3ff2bb85]{margin-top:24px}.menu+.social-links[data-v-3ff2bb85]{margin-top:16px}.appearance+.social-links[data-v-3ff2bb85]{margin-top:16px}.VPNav[data-v-3aff48bd]{position:relative;top:var(--vp-layout-top-height, 0px);left:0;z-index:var(--vp-z-index-nav);width:100%;pointer-events:none;transition:background-color .5s}@media (min-width: 960px){.VPNav[data-v-3aff48bd]{position:fixed}}.VPSidebarItem.level-0[data-v-fe6d72fb]{padding-bottom:24px}.VPSidebarItem.collapsed.level-0[data-v-fe6d72fb]{padding-bottom:10px}.item[data-v-fe6d72fb]{position:relative;display:flex;width:100%}.VPSidebarItem.collapsible>.item[data-v-fe6d72fb]{cursor:pointer}.indicator[data-v-fe6d72fb]{position:absolute;top:6px;bottom:6px;left:-17px;width:2px;border-radius:2px;transition:background-color .25s}.VPSidebarItem.level-2.is-active>.item>.indicator[data-v-fe6d72fb],.VPSidebarItem.level-3.is-active>.item>.indicator[data-v-fe6d72fb],.VPSidebarItem.level-4.is-active>.item>.indicator[data-v-fe6d72fb],.VPSidebarItem.level-5.is-active>.item>.indicator[data-v-fe6d72fb]{background-color:var(--vp-c-brand-1)}.link[data-v-fe6d72fb]{display:flex;align-items:center;flex-grow:1}.text[data-v-fe6d72fb]{flex-grow:1;padding:4px 0;line-height:24px;font-size:14px;transition:color .25s}.VPSidebarItem.level-0 .text[data-v-fe6d72fb]{font-weight:700;color:var(--vp-c-text-1)}.VPSidebarItem.level-1 .text[data-v-fe6d72fb],.VPSidebarItem.level-2 .text[data-v-fe6d72fb],.VPSidebarItem.level-3 .text[data-v-fe6d72fb],.VPSidebarItem.level-4 .text[data-v-fe6d72fb],.VPSidebarItem.level-5 .text[data-v-fe6d72fb]{font-weight:500;color:var(--vp-c-text-2)}.VPSidebarItem.level-0.is-link>.item>.link:hover .text[data-v-fe6d72fb],.VPSidebarItem.level-1.is-link>.item>.link:hover .text[data-v-fe6d72fb],.VPSidebarItem.level-2.is-link>.item>.link:hover .text[data-v-fe6d72fb],.VPSidebarItem.level-3.is-link>.item>.link:hover .text[data-v-fe6d72fb],.VPSidebarItem.level-4.is-link>.item>.link:hover .text[data-v-fe6d72fb],.VPSidebarItem.level-5.is-link>.item>.link:hover .text[data-v-fe6d72fb]{color:var(--vp-c-brand-1)}.VPSidebarItem.level-0.has-active>.item>.text[data-v-fe6d72fb],.VPSidebarItem.level-1.has-active>.item>.text[data-v-fe6d72fb],.VPSidebarItem.level-2.has-active>.item>.text[data-v-fe6d72fb],.VPSidebarItem.level-3.has-active>.item>.text[data-v-fe6d72fb],.VPSidebarItem.level-4.has-active>.item>.text[data-v-fe6d72fb],.VPSidebarItem.level-5.has-active>.item>.text[data-v-fe6d72fb],.VPSidebarItem.level-0.has-active>.item>.link>.text[data-v-fe6d72fb],.VPSidebarItem.level-1.has-active>.item>.link>.text[data-v-fe6d72fb],.VPSidebarItem.level-2.has-active>.item>.link>.text[data-v-fe6d72fb],.VPSidebarItem.level-3.has-active>.item>.link>.text[data-v-fe6d72fb],.VPSidebarItem.level-4.has-active>.item>.link>.text[data-v-fe6d72fb],.VPSidebarItem.level-5.has-active>.item>.link>.text[data-v-fe6d72fb]{color:var(--vp-c-text-1)}.VPSidebarItem.level-0.is-active>.item .link>.text[data-v-fe6d72fb],.VPSidebarItem.level-1.is-active>.item .link>.text[data-v-fe6d72fb],.VPSidebarItem.level-2.is-active>.item .link>.text[data-v-fe6d72fb],.VPSidebarItem.level-3.is-active>.item .link>.text[data-v-fe6d72fb],.VPSidebarItem.level-4.is-active>.item .link>.text[data-v-fe6d72fb],.VPSidebarItem.level-5.is-active>.item .link>.text[data-v-fe6d72fb]{color:var(--vp-c-brand-1)}.caret[data-v-fe6d72fb]{display:flex;justify-content:center;align-items:center;margin-right:-7px;width:32px;height:32px;color:var(--vp-c-text-3);cursor:pointer;transition:color .25s;flex-shrink:0}.item:hover .caret[data-v-fe6d72fb]{color:var(--vp-c-text-2)}.item:hover .caret[data-v-fe6d72fb]:hover{color:var(--vp-c-text-1)}.caret-icon[data-v-fe6d72fb]{font-size:18px;transform:rotate(90deg);transition:transform .25s}.VPSidebarItem.collapsed .caret-icon[data-v-fe6d72fb]{transform:rotate(0)}.VPSidebarItem.level-1 .items[data-v-fe6d72fb],.VPSidebarItem.level-2 .items[data-v-fe6d72fb],.VPSidebarItem.level-3 .items[data-v-fe6d72fb],.VPSidebarItem.level-4 .items[data-v-fe6d72fb],.VPSidebarItem.level-5 .items[data-v-fe6d72fb]{border-left:1px solid var(--vp-c-divider);padding-left:16px}.VPSidebarItem.collapsed .items[data-v-fe6d72fb]{display:none}.no-transition[data-v-1e9a5d2e] .caret-icon{transition:none}.group+.group[data-v-1e9a5d2e]{border-top:1px solid var(--vp-c-divider);padding-top:10px}@media (min-width: 960px){.group[data-v-1e9a5d2e]{padding-top:10px;width:calc(var(--vp-sidebar-width) - 64px)}}.VPSidebar[data-v-bc2dce68]{position:fixed;top:var(--vp-layout-top-height, 0px);bottom:0;left:0;z-index:var(--vp-z-index-sidebar);padding:32px 32px 96px;width:calc(100vw - 64px);max-width:320px;background-color:var(--vp-sidebar-bg-color);opacity:0;box-shadow:var(--vp-c-shadow-3);overflow-x:hidden;overflow-y:auto;transform:translate(-100%);transition:opacity .5s,transform .25s ease;overscroll-behavior:contain}.VPSidebar.open[data-v-bc2dce68]{opacity:1;visibility:visible;transform:translate(0);transition:opacity .25s,transform .5s cubic-bezier(.19,1,.22,1)}.dark .VPSidebar[data-v-bc2dce68]{box-shadow:var(--vp-shadow-1)}@media (min-width: 960px){.VPSidebar[data-v-bc2dce68]{padding-top:var(--vp-nav-height);width:var(--vp-sidebar-width);max-width:100%;background-color:var(--vp-sidebar-bg-color);opacity:1;visibility:visible;box-shadow:none;transform:translate(0)}}@media (min-width: 1440px){.VPSidebar[data-v-bc2dce68]{padding-left:max(32px,calc((100% - (var(--vp-layout-max-width) - 64px)) / 2));width:calc((100% - (var(--vp-layout-max-width) - 64px)) / 2 + var(--vp-sidebar-width) - 32px)}}@media (min-width: 960px){.curtain[data-v-bc2dce68]{position:sticky;top:-64px;left:0;z-index:1;margin-top:calc(var(--vp-nav-height) * -1);margin-right:-32px;margin-left:-32px;height:var(--vp-nav-height);background-color:var(--vp-sidebar-bg-color)}}.nav[data-v-bc2dce68]{outline:0}.VPSkipLink[data-v-5ffb6bc3]{top:8px;left:8px;padding:8px 16px;z-index:999;border-radius:8px;font-size:12px;font-weight:700;text-decoration:none;color:var(--vp-c-brand-1);box-shadow:var(--vp-shadow-3);background-color:var(--vp-c-bg)}.VPSkipLink[data-v-5ffb6bc3]:focus{height:auto;width:auto;clip:auto;clip-path:none}@media (min-width: 1280px){.VPSkipLink[data-v-5ffb6bc3]{top:14px;left:16px}}.Layout[data-v-5047c77d]{display:flex;flex-direction:column;min-height:100vh}.VPHomeSponsors[data-v-afd0962e]{border-top:1px solid var(--vp-c-gutter);padding-top:88px!important}.VPHomeSponsors[data-v-afd0962e]{margin:96px 0}@media (min-width: 768px){.VPHomeSponsors[data-v-afd0962e]{margin:128px 0}}.VPHomeSponsors[data-v-afd0962e]{padding:0 24px}@media (min-width: 768px){.VPHomeSponsors[data-v-afd0962e]{padding:0 48px}}@media (min-width: 960px){.VPHomeSponsors[data-v-afd0962e]{padding:0 64px}}.container[data-v-afd0962e]{margin:0 auto;max-width:1152px}.love[data-v-afd0962e]{margin:0 auto;width:fit-content;font-size:28px;color:var(--vp-c-text-3)}.icon[data-v-afd0962e]{display:inline-block}.message[data-v-afd0962e]{margin:0 auto;padding-top:10px;max-width:320px;text-align:center;line-height:24px;font-size:16px;font-weight:500;color:var(--vp-c-text-2)}.sponsors[data-v-afd0962e]{padding-top:32px}.action[data-v-afd0962e]{padding-top:40px;text-align:center}.VPTeamPage[data-v-85428f4c]{margin:96px 0}@media (min-width: 768px){.VPTeamPage[data-v-85428f4c]{margin:128px 0}}.VPHome .VPTeamPageTitle[data-v-85428f4c-s]{border-top:1px solid var(--vp-c-gutter);padding-top:88px!important}.VPTeamPageSection+.VPTeamPageSection[data-v-85428f4c-s],.VPTeamMembers+.VPTeamPageSection[data-v-85428f4c-s]{margin-top:64px}.VPTeamMembers+.VPTeamMembers[data-v-85428f4c-s]{margin-top:24px}@media (min-width: 768px){.VPTeamPageTitle+.VPTeamPageSection[data-v-85428f4c-s]{margin-top:16px}.VPTeamPageSection+.VPTeamPageSection[data-v-85428f4c-s],.VPTeamMembers+.VPTeamPageSection[data-v-85428f4c-s]{margin-top:96px}}.VPTeamMembers[data-v-85428f4c-s]{padding:0 24px}@media (min-width: 768px){.VPTeamMembers[data-v-85428f4c-s]{padding:0 48px}}@media (min-width: 960px){.VPTeamMembers[data-v-85428f4c-s]{padding:0 64px}}.VPTeamPageTitle[data-v-619940cd]{padding:48px 32px;text-align:center}@media (min-width: 768px){.VPTeamPageTitle[data-v-619940cd]{padding:64px 48px 48px}}@media (min-width: 960px){.VPTeamPageTitle[data-v-619940cd]{padding:80px 64px 48px}}.title[data-v-619940cd]{letter-spacing:0;line-height:44px;font-size:36px;font-weight:500}@media (min-width: 768px){.title[data-v-619940cd]{letter-spacing:-.5px;line-height:56px;font-size:48px}}.lead[data-v-619940cd]{margin:0 auto;max-width:512px;padding-top:12px;line-height:24px;font-size:16px;font-weight:500;color:var(--vp-c-text-2)}@media (min-width: 768px){.lead[data-v-619940cd]{max-width:592px;letter-spacing:.15px;line-height:28px;font-size:20px}}.VPTeamPageSection[data-v-30fd4480]{padding:0 32px}@media (min-width: 768px){.VPTeamPageSection[data-v-30fd4480]{padding:0 48px}}@media (min-width: 960px){.VPTeamPageSection[data-v-30fd4480]{padding:0 64px}}.title[data-v-30fd4480]{position:relative;margin:0 auto;max-width:1152px;text-align:center;color:var(--vp-c-text-2)}.title-line[data-v-30fd4480]{position:absolute;top:16px;left:0;width:100%;height:1px;background-color:var(--vp-c-divider)}.title-text[data-v-30fd4480]{position:relative;display:inline-block;padding:0 24px;letter-spacing:0;line-height:32px;font-size:20px;font-weight:500;background-color:var(--vp-c-bg)}.lead[data-v-30fd4480]{margin:0 auto;max-width:480px;padding-top:12px;text-align:center;line-height:24px;font-size:16px;font-weight:500;color:var(--vp-c-text-2)}.members[data-v-30fd4480]{padding-top:40px}.VPTeamMembersItem[data-v-df7ae315]{display:flex;flex-direction:column;gap:2px;border-radius:12px;width:100%;height:100%;overflow:hidden}.VPTeamMembersItem.small .profile[data-v-df7ae315]{padding:32px}.VPTeamMembersItem.small .data[data-v-df7ae315]{padding-top:20px}.VPTeamMembersItem.small .avatar[data-v-df7ae315]{width:64px;height:64px}.VPTeamMembersItem.small .name[data-v-df7ae315]{line-height:24px;font-size:16px}.VPTeamMembersItem.small .affiliation[data-v-df7ae315]{padding-top:4px;line-height:20px;font-size:14px}.VPTeamMembersItem.small .desc[data-v-df7ae315]{padding-top:12px;line-height:20px;font-size:14px}.VPTeamMembersItem.small .links[data-v-df7ae315]{margin:0 -16px -20px;padding:10px 0 0}.VPTeamMembersItem.medium .profile[data-v-df7ae315]{padding:48px 32px}.VPTeamMembersItem.medium .data[data-v-df7ae315]{padding-top:24px;text-align:center}.VPTeamMembersItem.medium .avatar[data-v-df7ae315]{width:96px;height:96px}.VPTeamMembersItem.medium .name[data-v-df7ae315]{letter-spacing:.15px;line-height:28px;font-size:20px}.VPTeamMembersItem.medium .affiliation[data-v-df7ae315]{padding-top:4px;font-size:16px}.VPTeamMembersItem.medium .desc[data-v-df7ae315]{padding-top:16px;max-width:288px;font-size:16px}.VPTeamMembersItem.medium .links[data-v-df7ae315]{margin:0 -16px -12px;padding:16px 12px 0}.profile[data-v-df7ae315]{flex-grow:1;background-color:var(--vp-c-bg-soft)}.data[data-v-df7ae315]{text-align:center}.avatar[data-v-df7ae315]{position:relative;flex-shrink:0;margin:0 auto;border-radius:50%;box-shadow:var(--vp-shadow-3)}.avatar-img[data-v-df7ae315]{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:50%;object-fit:cover}.name[data-v-df7ae315]{margin:0;font-weight:600}.affiliation[data-v-df7ae315]{margin:0;font-weight:500;color:var(--vp-c-text-2)}.org.link[data-v-df7ae315]{color:var(--vp-c-text-2);transition:color .25s}.org.link[data-v-df7ae315]:hover{color:var(--vp-c-brand-1)}.desc[data-v-df7ae315]{margin:0 auto}.desc[data-v-df7ae315] a{font-weight:500;color:var(--vp-c-brand-1);text-decoration-style:dotted;transition:color .25s}.links[data-v-df7ae315]{display:flex;justify-content:center;height:56px}.sp-link[data-v-df7ae315]{display:flex;justify-content:center;align-items:center;text-align:center;padding:16px;font-size:14px;font-weight:500;color:var(--vp-c-sponsor);background-color:var(--vp-c-bg-soft);transition:color .25s,background-color .25s}.sp .sp-link.link[data-v-df7ae315]:hover,.sp .sp-link.link[data-v-df7ae315]:focus{outline:none;color:var(--vp-c-white);background-color:var(--vp-c-sponsor)}.sp-icon[data-v-df7ae315]{margin-right:8px;font-size:16px}.VPTeamMembers.small .container[data-v-27026a4f]{grid-template-columns:repeat(auto-fit,minmax(224px,1fr))}.VPTeamMembers.small.count-1 .container[data-v-27026a4f]{max-width:276px}.VPTeamMembers.small.count-2 .container[data-v-27026a4f]{max-width:576px}.VPTeamMembers.small.count-3 .container[data-v-27026a4f]{max-width:876px}.VPTeamMembers.medium .container[data-v-27026a4f]{grid-template-columns:repeat(auto-fit,minmax(256px,1fr))}@media (min-width: 375px){.VPTeamMembers.medium .container[data-v-27026a4f]{grid-template-columns:repeat(auto-fit,minmax(288px,1fr))}}.VPTeamMembers.medium.count-1 .container[data-v-27026a4f]{max-width:368px}.VPTeamMembers.medium.count-2 .container[data-v-27026a4f]{max-width:760px}.container[data-v-27026a4f]{display:grid;gap:24px;margin:0 auto;max-width:1152px}:root{--vp-c-brand-1: #149ef8;--vp-c-brand-2: #0434ad;--vp-home-hero-name-color: transparent;--vp-home-hero-name-background: -webkit-linear-gradient(120deg, #34a3fe 30%, #8d44ff);--vp-home-hero-image-background-image: linear-gradient(-45deg, #d0e9ff 50%, #a2d8f4 50%);--vp-home-hero-image-filter: blur(44px);--vp-c-gray-1: #eee;--vp-c-gray-2: #aaa;--border-radius-1: 10px;--border-radius-2: 20px;--border-radius-3: 40px;--vp-font-family-base: "Poppins", "Punctuation SC", "Inter", ui-sans-serif, system-ui, "PingFang SC", "Noto Sans CJK SC", "Noto Sans SC", "Heiti SC", "Microsoft YaHei", "DengXian", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--vp-font-family-mono: "Cousine", monospace;--red: #ef4444;--liteyuki-color: #149ef8;--button-radius: 6px}.dark{--vp-home-hero-image-background-image: linear-gradient(-45deg, #004785 50%, #0374ad 50%);--vp-c-gray-1: #333;--vp-c-gray-2: #666}.tab-buttons{padding:7px;flex:1;display:flex;justify-content:flex-start;height:60%;align-items:center}.tab-title{text-align:center;justify-content:center;flex:1}.item-search-box{border-radius:100px;width:80%;padding:10px;margin:10px 0;border:1px solid #ccc}.search-box-div{display:flex;justify-content:space-around;margin:10px 0}.item-search-box{width:80%}.item-card{position:relative;border-radius:15px;background-color:var(--vp-c-gray-1);height:160px;padding:16px;margin:10px;box-sizing:border-box;transition:background .3s ease}.item-name{font-size:20px;margin-bottom:10px}.item-description{color:var(--vp-c-gray-2);font-size:13px;white-space:pre-wrap}.author-info{display:flex;justify-content:left;align-items:center}.author-name{font-size:15px;font-weight:400}.avatar{border-radius:50%;margin:0 10px}.store-tabs{display:flex;justify-content:flex-end;margin:10px 0}.publish-button{right:10px;bottom:10px;padding:5px 10px;border-radius:10px;background-color:var(--vp-c-brand-1);color:#fff;font-size:15px;cursor:pointer}.pub-window input{width:100%;padding:10px;margin:10px 0;border-radius:10px;border:1px solid #ccc}.pub-option{margin:10px;padding:5px;border:2px solid var(--vp-c-gray-1);border-radius:var(--button-radius);background-color:var(--vp-c-gray-1)}.pub-option.submit{background-color:var(--vp-c-brand-1)}.stats-bar-content[data-v-2391887b]{display:flex;justify-content:center;align-items:center;flex-direction:column}.gamma[data-v-2391887b]{filter:brightness(1.8)}.dark .gamma[data-v-2391887b]{filter:brightness(1)}.stats-bar[data-v-2391887b]{width:80%;max-width:1150px;display:flex;justify-content:space-between;padding:20px;margin:10px;border-radius:var(--border-radius-2);background-color:var(--vp-c-gray-1);flex-direction:column}.stats-info[data-v-2391887b]{margin-bottom:20px}.stats-title[data-v-2391887b]{font-size:20px;font-weight:700;margin-bottom:20px;text-align:center}.sections[data-v-2391887b]{height:100%;width:100%;display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:15px;margin:10px}.section[data-v-2391887b]{display:flex;flex-direction:column;position:relative;border-radius:var(--border-radius-2)}.section[data-v-2391887b]:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;border:0 solid transparent;transition:border .1s ease-in-out;border-radius:var(--border-radius-2);pointer-events:none}.section[data-v-2391887b]:hover:before{border:1px solid #00a6ff;border-radius:var(--border-radius-2)}.section-tab[data-v-2391887b]{margin-left:15px;display:flex;justify-content:flex-start;align-items:center}.dot[data-v-2391887b]{width:10px;height:10px;border-radius:50%;margin-right:5px}.text[data-v-2391887b]{font-size:14px;white-space:nowrap;align-items:center}.number[data-v-2391887b]{font-size:27px;font-weight:700;margin-top:5px;margin-left:15px}.starmap[data-v-2391887b]{position:relative;width:100%;height:200px;overflow:hidden;border-radius:var(--border-radius-2)}.starmap iframe[data-v-2391887b]{position:absolute;top:-150px;left:-40px;width:calc(100% + 80px);height:calc(100% + 300px)}@media (min-width: 768px){.stats-bar[data-v-2391887b]{flex-direction:row;margin:30px}.stats-info[data-v-2391887b]{width:40%;margin:10px 30px 30px}.starmap[data-v-2391887b]{width:60%;height:400px}.starmap iframe[data-v-2391887b]{position:absolute;top:-130px;left:-60px;width:calc(100% + 120px);height:calc(100% + 280px)}}.btn[data-v-a8e3f329]{margin-right:15px}button[data-v-a8e3f329]{background-color:#0000;border:none}.copy-btn[data-v-a8e3f329]{cursor:pointer;color:#666}.icon[data-v-a8e3f329]{width:20px;height:20px}.item-bar[data-v-a8e3f329]{position:absolute;bottom:0;height:50px;display:flex;align-items:center;box-sizing:border-box;justify-content:space-between;color:#0005}.tag[data-v-a8e3f329]{display:inline-block;padding:0 5px;margin-right:5px;border-radius:5px;font-size:12px}.switch[data-v-b3db11d1]{position:relative;display:inline-block;width:60px;height:34px}.switch input[data-v-b3db11d1]{opacity:0;width:0;height:0}.slider[data-v-b3db11d1]{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#ccc;transition:.4s;border-radius:34px}.slider[data-v-b3db11d1]:before{position:absolute;content:"";height:26px;width:26px;left:4px;bottom:4px;background-color:#fff;transition:.4s;border-radius:50%}input:checked+.slider[data-v-b3db11d1]{background-color:#2196f3}input:checked+.slider[data-v-b3db11d1]:before{transform:translate(26px)}h1[data-v-671446c8]{color:#00a6ff;text-align:center;font-weight:700}.items[data-v-671446c8]{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:10px}.search-box-div[data-v-671446c8]{display:flex;justify-content:center;align-items:center;margin-bottom:10px}.search-box-div input[data-v-671446c8]{margin-right:10px}.icon[data-v-22cbd1fa]{width:20px;height:20px;color:$themeColor}.item-bar[data-v-22cbd1fa]{position:absolute;bottom:0;height:50px;display:flex;align-items:center;box-sizing:border-box;justify-content:space-between;color:#0005}.floating-window[data-v-8b5829b6]{position:fixed;top:0;left:0;width:100%;height:100%;background:#00000080;display:flex;justify-content:center;align-items:center;z-index:1000}.window-content[data-v-8b5829b6]{background:var(--vp-c-gray-1);padding:20px;border-radius:5px;max-width:60%;box-shadow:0 2px 10px #0000001a}h1[data-v-83d58003]{color:#00a6ff;text-align:center;font-weight:700}.items[data-v-83d58003]{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:10px}.contributor-bar[data-v-bc374713]{display:flex;flex-direction:column;align-items:center}.VPLocalSearchBox[data-v-1db8f530]{position:fixed;z-index:100;top:0;right:0;bottom:0;left:0;display:flex}.backdrop[data-v-1db8f530]{position:absolute;top:0;right:0;bottom:0;left:0;background:var(--vp-backdrop-bg-color);transition:opacity .5s}.shell[data-v-1db8f530]{position:relative;padding:12px;margin:64px auto;display:flex;flex-direction:column;gap:16px;background:var(--vp-local-search-bg);width:min(100vw - 60px,900px);height:min-content;max-height:min(100vh - 128px,900px);border-radius:6px}@media (max-width: 767px){.shell[data-v-1db8f530]{margin:0;width:100vw;height:100vh;max-height:none;border-radius:0}}.search-bar[data-v-1db8f530]{border:1px solid var(--vp-c-divider);border-radius:4px;display:flex;align-items:center;padding:0 12px;cursor:text}@media (max-width: 767px){.search-bar[data-v-1db8f530]{padding:0 8px}}.search-bar[data-v-1db8f530]:focus-within{border-color:var(--vp-c-brand-1)}.local-search-icon[data-v-1db8f530]{display:block;font-size:18px}.navigate-icon[data-v-1db8f530]{display:block;font-size:14px}.search-icon[data-v-1db8f530]{margin:8px}@media (max-width: 767px){.search-icon[data-v-1db8f530]{display:none}}.search-input[data-v-1db8f530]{padding:6px 12px;font-size:inherit;width:100%}@media (max-width: 767px){.search-input[data-v-1db8f530]{padding:6px 4px}}.search-actions[data-v-1db8f530]{display:flex;gap:4px}@media (any-pointer: coarse){.search-actions[data-v-1db8f530]{gap:8px}}@media (min-width: 769px){.search-actions.before[data-v-1db8f530]{display:none}}.search-actions button[data-v-1db8f530]{padding:8px}.search-actions button[data-v-1db8f530]:not([disabled]):hover,.toggle-layout-button.detailed-list[data-v-1db8f530]{color:var(--vp-c-brand-1)}.search-actions button.clear-button[data-v-1db8f530]:disabled{opacity:.37}.search-keyboard-shortcuts[data-v-1db8f530]{font-size:.8rem;opacity:75%;display:flex;flex-wrap:wrap;gap:16px;line-height:14px}.search-keyboard-shortcuts span[data-v-1db8f530]{display:flex;align-items:center;gap:4px}@media (max-width: 767px){.search-keyboard-shortcuts[data-v-1db8f530]{display:none}}.search-keyboard-shortcuts kbd[data-v-1db8f530]{background:#8080801a;border-radius:4px;padding:3px 6px;min-width:24px;display:inline-block;text-align:center;vertical-align:middle;border:1px solid rgba(128,128,128,.15);box-shadow:0 2px 2px #0000001a}.results[data-v-1db8f530]{display:flex;flex-direction:column;gap:6px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}.result[data-v-1db8f530]{display:flex;align-items:center;gap:8px;border-radius:4px;transition:none;line-height:1rem;border:solid 2px var(--vp-local-search-result-border);outline:none}.result>div[data-v-1db8f530]{margin:12px;width:100%;overflow:hidden}@media (max-width: 767px){.result>div[data-v-1db8f530]{margin:8px}}.titles[data-v-1db8f530]{display:flex;flex-wrap:wrap;gap:4px;position:relative;z-index:1001;padding:2px 0}.title[data-v-1db8f530]{display:flex;align-items:center;gap:4px}.title.main[data-v-1db8f530]{font-weight:500}.title-icon[data-v-1db8f530]{opacity:.5;font-weight:500;color:var(--vp-c-brand-1)}.title svg[data-v-1db8f530]{opacity:.5}.result.selected[data-v-1db8f530]{--vp-local-search-result-bg: var(--vp-local-search-result-selected-bg);border-color:var(--vp-local-search-result-selected-border)}.excerpt-wrapper[data-v-1db8f530]{position:relative}.excerpt[data-v-1db8f530]{opacity:50%;pointer-events:none;max-height:140px;overflow:hidden;position:relative;margin-top:4px}.result.selected .excerpt[data-v-1db8f530]{opacity:1}.excerpt[data-v-1db8f530] *{font-size:.8rem!important;line-height:130%!important}.titles[data-v-1db8f530] mark,.excerpt[data-v-1db8f530] mark{background-color:var(--vp-local-search-highlight-bg);color:var(--vp-local-search-highlight-text);border-radius:2px;padding:0 2px}.excerpt[data-v-1db8f530] .vp-code-group .tabs{display:none}.excerpt[data-v-1db8f530] .vp-code-group div[class*=language-]{border-radius:8px!important}.excerpt-gradient-bottom[data-v-1db8f530]{position:absolute;bottom:-1px;left:0;width:100%;height:8px;background:linear-gradient(transparent,var(--vp-local-search-result-bg));z-index:1000}.excerpt-gradient-top[data-v-1db8f530]{position:absolute;top:-1px;left:0;width:100%;height:8px;background:linear-gradient(var(--vp-local-search-result-bg),transparent);z-index:1000}.result.selected .titles[data-v-1db8f530],.result.selected .title-icon[data-v-1db8f530]{color:var(--vp-c-brand-1)!important}.no-results[data-v-1db8f530]{font-size:.9rem;text-align:center;padding:12px}svg[data-v-1db8f530]{flex:none} +@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(/assets/inter-roman-cyrillic-ext.BBPuwvHQ.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(/assets/inter-roman-cyrillic.C5lxZ8CY.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(/assets/inter-roman-greek-ext.CqjqNYQ-.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(/assets/inter-roman-greek.BBVDIX6e.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(/assets/inter-roman-vietnamese.BjW4sHH5.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(/assets/inter-roman-latin-ext.4ZJIpNVo.woff2) format("woff2");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(/assets/inter-roman-latin.Di8DUHzh.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:italic;font-weight:100 900;font-display:swap;src:url(/assets/inter-italic-cyrillic-ext.r48I6akx.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:italic;font-weight:100 900;font-display:swap;src:url(/assets/inter-italic-cyrillic.By2_1cv3.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:italic;font-weight:100 900;font-display:swap;src:url(/assets/inter-italic-greek-ext.1u6EdAuj.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:italic;font-weight:100 900;font-display:swap;src:url(/assets/inter-italic-greek.DJ8dCoTZ.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Inter;font-style:italic;font-weight:100 900;font-display:swap;src:url(/assets/inter-italic-vietnamese.BSbpV94h.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:italic;font-weight:100 900;font-display:swap;src:url(/assets/inter-italic-latin-ext.CN1xVJS-.woff2) format("woff2");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:italic;font-weight:100 900;font-display:swap;src:url(/assets/inter-italic-latin.C2AdPX0b.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Punctuation SC;font-weight:400;src:local("PingFang SC Regular"),local("Noto Sans CJK SC"),local("Microsoft YaHei");unicode-range:U+201C,U+201D,U+2018,U+2019,U+2E3A,U+2014,U+2013,U+2026,U+00B7,U+007E,U+002F}@font-face{font-family:Punctuation SC;font-weight:500;src:local("PingFang SC Medium"),local("Noto Sans CJK SC"),local("Microsoft YaHei");unicode-range:U+201C,U+201D,U+2018,U+2019,U+2E3A,U+2014,U+2013,U+2026,U+00B7,U+007E,U+002F}@font-face{font-family:Punctuation SC;font-weight:600;src:local("PingFang SC Semibold"),local("Noto Sans CJK SC Bold"),local("Microsoft YaHei Bold");unicode-range:U+201C,U+201D,U+2018,U+2019,U+2E3A,U+2014,U+2013,U+2026,U+00B7,U+007E,U+002F}@font-face{font-family:Punctuation SC;font-weight:700;src:local("PingFang SC Semibold"),local("Noto Sans CJK SC Bold"),local("Microsoft YaHei Bold");unicode-range:U+201C,U+201D,U+2018,U+2019,U+2E3A,U+2014,U+2013,U+2026,U+00B7,U+007E,U+002F}:root{--vp-c-white: #ffffff;--vp-c-black: #000000;--vp-c-neutral: var(--vp-c-black);--vp-c-neutral-inverse: var(--vp-c-white)}.dark{--vp-c-neutral: var(--vp-c-white);--vp-c-neutral-inverse: var(--vp-c-black)}:root{--vp-c-gray-1: #dddde3;--vp-c-gray-2: #e4e4e9;--vp-c-gray-3: #ebebef;--vp-c-gray-soft: rgba(142, 150, 170, .14);--vp-c-indigo-1: #3451b2;--vp-c-indigo-2: #3a5ccc;--vp-c-indigo-3: #5672cd;--vp-c-indigo-soft: rgba(100, 108, 255, .14);--vp-c-purple-1: #6f42c1;--vp-c-purple-2: #7e4cc9;--vp-c-purple-3: #8e5cd9;--vp-c-purple-soft: rgba(159, 122, 234, .14);--vp-c-green-1: #18794e;--vp-c-green-2: #299764;--vp-c-green-3: #30a46c;--vp-c-green-soft: rgba(16, 185, 129, .14);--vp-c-yellow-1: #915930;--vp-c-yellow-2: #946300;--vp-c-yellow-3: #9f6a00;--vp-c-yellow-soft: rgba(234, 179, 8, .14);--vp-c-red-1: #b8272c;--vp-c-red-2: #d5393e;--vp-c-red-3: #e0575b;--vp-c-red-soft: rgba(244, 63, 94, .14);--vp-c-sponsor: #db2777}.dark{--vp-c-gray-1: #515c67;--vp-c-gray-2: #414853;--vp-c-gray-3: #32363f;--vp-c-gray-soft: rgba(101, 117, 133, .16);--vp-c-indigo-1: #a8b1ff;--vp-c-indigo-2: #5c73e7;--vp-c-indigo-3: #3e63dd;--vp-c-indigo-soft: rgba(100, 108, 255, .16);--vp-c-purple-1: #c8abfa;--vp-c-purple-2: #a879e6;--vp-c-purple-3: #8e5cd9;--vp-c-purple-soft: rgba(159, 122, 234, .16);--vp-c-green-1: #3dd68c;--vp-c-green-2: #30a46c;--vp-c-green-3: #298459;--vp-c-green-soft: rgba(16, 185, 129, .16);--vp-c-yellow-1: #f9b44e;--vp-c-yellow-2: #da8b17;--vp-c-yellow-3: #a46a0a;--vp-c-yellow-soft: rgba(234, 179, 8, .16);--vp-c-red-1: #f66f81;--vp-c-red-2: #f14158;--vp-c-red-3: #b62a3c;--vp-c-red-soft: rgba(244, 63, 94, .16)}:root{--vp-c-bg: #ffffff;--vp-c-bg-alt: #f6f6f7;--vp-c-bg-elv: #ffffff;--vp-c-bg-soft: #f6f6f7}.dark{--vp-c-bg: #1b1b1f;--vp-c-bg-alt: #161618;--vp-c-bg-elv: #202127;--vp-c-bg-soft: #202127}:root{--vp-c-border: #c2c2c4;--vp-c-divider: #e2e2e3;--vp-c-gutter: #e2e2e3}.dark{--vp-c-border: #3c3f44;--vp-c-divider: #2e2e32;--vp-c-gutter: #000000}:root{--vp-c-text-1: rgba(60, 60, 67);--vp-c-text-2: rgba(60, 60, 67, .78);--vp-c-text-3: rgba(60, 60, 67, .56)}.dark{--vp-c-text-1: rgba(255, 255, 245, .86);--vp-c-text-2: rgba(235, 235, 245, .6);--vp-c-text-3: rgba(235, 235, 245, .38)}:root{--vp-c-default-1: var(--vp-c-gray-1);--vp-c-default-2: var(--vp-c-gray-2);--vp-c-default-3: var(--vp-c-gray-3);--vp-c-default-soft: var(--vp-c-gray-soft);--vp-c-brand-1: var(--vp-c-indigo-1);--vp-c-brand-2: var(--vp-c-indigo-2);--vp-c-brand-3: var(--vp-c-indigo-3);--vp-c-brand-soft: var(--vp-c-indigo-soft);--vp-c-brand: var(--vp-c-brand-1);--vp-c-tip-1: var(--vp-c-brand-1);--vp-c-tip-2: var(--vp-c-brand-2);--vp-c-tip-3: var(--vp-c-brand-3);--vp-c-tip-soft: var(--vp-c-brand-soft);--vp-c-note-1: var(--vp-c-brand-1);--vp-c-note-2: var(--vp-c-brand-2);--vp-c-note-3: var(--vp-c-brand-3);--vp-c-note-soft: var(--vp-c-brand-soft);--vp-c-success-1: var(--vp-c-green-1);--vp-c-success-2: var(--vp-c-green-2);--vp-c-success-3: var(--vp-c-green-3);--vp-c-success-soft: var(--vp-c-green-soft);--vp-c-important-1: var(--vp-c-purple-1);--vp-c-important-2: var(--vp-c-purple-2);--vp-c-important-3: var(--vp-c-purple-3);--vp-c-important-soft: var(--vp-c-purple-soft);--vp-c-warning-1: var(--vp-c-yellow-1);--vp-c-warning-2: var(--vp-c-yellow-2);--vp-c-warning-3: var(--vp-c-yellow-3);--vp-c-warning-soft: var(--vp-c-yellow-soft);--vp-c-danger-1: var(--vp-c-red-1);--vp-c-danger-2: var(--vp-c-red-2);--vp-c-danger-3: var(--vp-c-red-3);--vp-c-danger-soft: var(--vp-c-red-soft);--vp-c-caution-1: var(--vp-c-red-1);--vp-c-caution-2: var(--vp-c-red-2);--vp-c-caution-3: var(--vp-c-red-3);--vp-c-caution-soft: var(--vp-c-red-soft)}:root{--vp-font-family-base: "Inter", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--vp-font-family-mono: ui-monospace, "Menlo", "Monaco", "Consolas", "Liberation Mono", "Courier New", monospace;font-optical-sizing:auto}:root:where(:lang(zh)){--vp-font-family-base: "Punctuation SC", "Inter", ui-sans-serif, system-ui, "PingFang SC", "Noto Sans CJK SC", "Noto Sans SC", "Heiti SC", "Microsoft YaHei", "DengXian", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"}:root{--vp-shadow-1: 0 1px 2px rgba(0, 0, 0, .04), 0 1px 2px rgba(0, 0, 0, .06);--vp-shadow-2: 0 3px 12px rgba(0, 0, 0, .07), 0 1px 4px rgba(0, 0, 0, .07);--vp-shadow-3: 0 12px 32px rgba(0, 0, 0, .1), 0 2px 6px rgba(0, 0, 0, .08);--vp-shadow-4: 0 14px 44px rgba(0, 0, 0, .12), 0 3px 9px rgba(0, 0, 0, .12);--vp-shadow-5: 0 18px 56px rgba(0, 0, 0, .16), 0 4px 12px rgba(0, 0, 0, .16)}:root{--vp-z-index-footer: 10;--vp-z-index-local-nav: 20;--vp-z-index-nav: 30;--vp-z-index-layout-top: 40;--vp-z-index-backdrop: 50;--vp-z-index-sidebar: 60}@media (min-width: 960px){:root{--vp-z-index-sidebar: 25}}:root{--vp-layout-max-width: 1440px}:root{--vp-header-anchor-symbol: "#"}:root{--vp-code-line-height: 1.7;--vp-code-font-size: .875em;--vp-code-color: var(--vp-c-brand-1);--vp-code-link-color: var(--vp-c-brand-1);--vp-code-link-hover-color: var(--vp-c-brand-2);--vp-code-bg: var(--vp-c-default-soft);--vp-code-block-color: var(--vp-c-text-2);--vp-code-block-bg: var(--vp-c-bg-alt);--vp-code-block-divider-color: var(--vp-c-gutter);--vp-code-lang-color: var(--vp-c-text-3);--vp-code-line-highlight-color: var(--vp-c-default-soft);--vp-code-line-number-color: var(--vp-c-text-3);--vp-code-line-diff-add-color: var(--vp-c-success-soft);--vp-code-line-diff-add-symbol-color: var(--vp-c-success-1);--vp-code-line-diff-remove-color: var(--vp-c-danger-soft);--vp-code-line-diff-remove-symbol-color: var(--vp-c-danger-1);--vp-code-line-warning-color: var(--vp-c-warning-soft);--vp-code-line-error-color: var(--vp-c-danger-soft);--vp-code-copy-code-border-color: var(--vp-c-divider);--vp-code-copy-code-bg: var(--vp-c-bg-soft);--vp-code-copy-code-hover-border-color: var(--vp-c-divider);--vp-code-copy-code-hover-bg: var(--vp-c-bg);--vp-code-copy-code-active-text: var(--vp-c-text-2);--vp-code-copy-copied-text-content: "Copied";--vp-code-tab-divider: var(--vp-code-block-divider-color);--vp-code-tab-text-color: var(--vp-c-text-2);--vp-code-tab-bg: var(--vp-code-block-bg);--vp-code-tab-hover-text-color: var(--vp-c-text-1);--vp-code-tab-active-text-color: var(--vp-c-text-1);--vp-code-tab-active-bar-color: var(--vp-c-brand-1)}:root{--vp-button-brand-border: transparent;--vp-button-brand-text: var(--vp-c-white);--vp-button-brand-bg: var(--vp-c-brand-3);--vp-button-brand-hover-border: transparent;--vp-button-brand-hover-text: var(--vp-c-white);--vp-button-brand-hover-bg: var(--vp-c-brand-2);--vp-button-brand-active-border: transparent;--vp-button-brand-active-text: var(--vp-c-white);--vp-button-brand-active-bg: var(--vp-c-brand-1);--vp-button-alt-border: transparent;--vp-button-alt-text: var(--vp-c-text-1);--vp-button-alt-bg: var(--vp-c-default-3);--vp-button-alt-hover-border: transparent;--vp-button-alt-hover-text: var(--vp-c-text-1);--vp-button-alt-hover-bg: var(--vp-c-default-2);--vp-button-alt-active-border: transparent;--vp-button-alt-active-text: var(--vp-c-text-1);--vp-button-alt-active-bg: var(--vp-c-default-1);--vp-button-sponsor-border: var(--vp-c-text-2);--vp-button-sponsor-text: var(--vp-c-text-2);--vp-button-sponsor-bg: transparent;--vp-button-sponsor-hover-border: var(--vp-c-sponsor);--vp-button-sponsor-hover-text: var(--vp-c-sponsor);--vp-button-sponsor-hover-bg: transparent;--vp-button-sponsor-active-border: var(--vp-c-sponsor);--vp-button-sponsor-active-text: var(--vp-c-sponsor);--vp-button-sponsor-active-bg: transparent}:root{--vp-custom-block-font-size: 14px;--vp-custom-block-code-font-size: 13px;--vp-custom-block-info-border: transparent;--vp-custom-block-info-text: var(--vp-c-text-1);--vp-custom-block-info-bg: var(--vp-c-default-soft);--vp-custom-block-info-code-bg: var(--vp-c-default-soft);--vp-custom-block-note-border: transparent;--vp-custom-block-note-text: var(--vp-c-text-1);--vp-custom-block-note-bg: var(--vp-c-default-soft);--vp-custom-block-note-code-bg: var(--vp-c-default-soft);--vp-custom-block-tip-border: transparent;--vp-custom-block-tip-text: var(--vp-c-text-1);--vp-custom-block-tip-bg: var(--vp-c-tip-soft);--vp-custom-block-tip-code-bg: var(--vp-c-tip-soft);--vp-custom-block-important-border: transparent;--vp-custom-block-important-text: var(--vp-c-text-1);--vp-custom-block-important-bg: var(--vp-c-important-soft);--vp-custom-block-important-code-bg: var(--vp-c-important-soft);--vp-custom-block-warning-border: transparent;--vp-custom-block-warning-text: var(--vp-c-text-1);--vp-custom-block-warning-bg: var(--vp-c-warning-soft);--vp-custom-block-warning-code-bg: var(--vp-c-warning-soft);--vp-custom-block-danger-border: transparent;--vp-custom-block-danger-text: var(--vp-c-text-1);--vp-custom-block-danger-bg: var(--vp-c-danger-soft);--vp-custom-block-danger-code-bg: var(--vp-c-danger-soft);--vp-custom-block-caution-border: transparent;--vp-custom-block-caution-text: var(--vp-c-text-1);--vp-custom-block-caution-bg: var(--vp-c-caution-soft);--vp-custom-block-caution-code-bg: var(--vp-c-caution-soft);--vp-custom-block-details-border: var(--vp-custom-block-info-border);--vp-custom-block-details-text: var(--vp-custom-block-info-text);--vp-custom-block-details-bg: var(--vp-custom-block-info-bg);--vp-custom-block-details-code-bg: var(--vp-custom-block-info-code-bg)}:root{--vp-input-border-color: var(--vp-c-border);--vp-input-bg-color: var(--vp-c-bg-alt);--vp-input-switch-bg-color: var(--vp-c-default-soft)}:root{--vp-nav-height: 64px;--vp-nav-bg-color: var(--vp-c-bg);--vp-nav-screen-bg-color: var(--vp-c-bg);--vp-nav-logo-height: 24px}.hide-nav{--vp-nav-height: 0px}.hide-nav .VPSidebar{--vp-nav-height: 22px}:root{--vp-local-nav-bg-color: var(--vp-c-bg)}:root{--vp-sidebar-width: 272px;--vp-sidebar-bg-color: var(--vp-c-bg-alt)}:root{--vp-backdrop-bg-color: rgba(0, 0, 0, .6)}:root{--vp-home-hero-name-color: var(--vp-c-brand-1);--vp-home-hero-name-background: transparent;--vp-home-hero-image-background-image: none;--vp-home-hero-image-filter: none}:root{--vp-badge-info-border: transparent;--vp-badge-info-text: var(--vp-c-text-2);--vp-badge-info-bg: var(--vp-c-default-soft);--vp-badge-tip-border: transparent;--vp-badge-tip-text: var(--vp-c-tip-1);--vp-badge-tip-bg: var(--vp-c-tip-soft);--vp-badge-warning-border: transparent;--vp-badge-warning-text: var(--vp-c-warning-1);--vp-badge-warning-bg: var(--vp-c-warning-soft);--vp-badge-danger-border: transparent;--vp-badge-danger-text: var(--vp-c-danger-1);--vp-badge-danger-bg: var(--vp-c-danger-soft)}:root{--vp-carbon-ads-text-color: var(--vp-c-text-1);--vp-carbon-ads-poweredby-color: var(--vp-c-text-2);--vp-carbon-ads-bg-color: var(--vp-c-bg-soft);--vp-carbon-ads-hover-text-color: var(--vp-c-brand-1);--vp-carbon-ads-hover-poweredby-color: var(--vp-c-text-1)}:root{--vp-local-search-bg: var(--vp-c-bg);--vp-local-search-result-bg: var(--vp-c-bg);--vp-local-search-result-border: var(--vp-c-divider);--vp-local-search-result-selected-bg: var(--vp-c-bg);--vp-local-search-result-selected-border: var(--vp-c-brand-1);--vp-local-search-highlight-bg: var(--vp-c-brand-1);--vp-local-search-highlight-text: var(--vp-c-neutral-inverse)}@media (prefers-reduced-motion: reduce){*,:before,:after{animation-delay:-1ms!important;animation-duration:1ms!important;animation-iteration-count:1!important;background-attachment:initial!important;scroll-behavior:auto!important;transition-duration:0s!important;transition-delay:0s!important}}*,:before,:after{box-sizing:border-box}html{line-height:1.4;font-size:16px;-webkit-text-size-adjust:100%}html.dark{color-scheme:dark}body{margin:0;width:100%;min-width:320px;min-height:100vh;line-height:24px;font-family:var(--vp-font-family-base);font-size:16px;font-weight:400;color:var(--vp-c-text-1);background-color:var(--vp-c-bg);font-synthesis:style;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}main{display:block}h1,h2,h3,h4,h5,h6{margin:0;line-height:24px;font-size:16px;font-weight:400}p{margin:0}strong,b{font-weight:600}a,area,button,[role=button],input,label,select,summary,textarea{touch-action:manipulation}a{color:inherit;text-decoration:inherit}ol,ul{list-style:none;margin:0;padding:0}blockquote{margin:0}pre,code,kbd,samp{font-family:var(--vp-font-family-mono)}img,svg,video,canvas,audio,iframe,embed,object{display:block}figure{margin:0}img,video{max-width:100%;height:auto}button,input,optgroup,select,textarea{border:0;padding:0;line-height:inherit;color:inherit}button{padding:0;font-family:inherit;background-color:transparent;background-image:none}button:enabled,[role=button]:enabled{cursor:pointer}button:focus,button:focus-visible{outline:1px dotted;outline:4px auto -webkit-focus-ring-color}button:focus:not(:focus-visible){outline:none!important}input:focus,textarea:focus,select:focus{outline:none}table{border-collapse:collapse}input{background-color:transparent}input:-ms-input-placeholder,textarea:-ms-input-placeholder{color:var(--vp-c-text-3)}input::-ms-input-placeholder,textarea::-ms-input-placeholder{color:var(--vp-c-text-3)}input::placeholder,textarea::placeholder{color:var(--vp-c-text-3)}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}textarea{resize:vertical}select{-webkit-appearance:none}fieldset{margin:0;padding:0}h1,h2,h3,h4,h5,h6,li,p{overflow-wrap:break-word}vite-error-overlay{z-index:9999}mjx-container{overflow-x:auto}mjx-container>svg{display:inline-block;margin:auto}[class^=vpi-],[class*=" vpi-"],.vp-icon{width:1em;height:1em}[class^=vpi-].bg,[class*=" vpi-"].bg,.vp-icon.bg{background-size:100% 100%;background-color:transparent}[class^=vpi-]:not(.bg),[class*=" vpi-"]:not(.bg),.vp-icon:not(.bg){-webkit-mask:var(--icon) no-repeat;mask:var(--icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit}.vpi-align-left{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M21 6H3M15 12H3M17 18H3'/%3E%3C/svg%3E")}.vpi-arrow-right,.vpi-arrow-down,.vpi-arrow-left,.vpi-arrow-up{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E")}.vpi-chevron-right,.vpi-chevron-down,.vpi-chevron-left,.vpi-chevron-up{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E")}.vpi-chevron-down,.vpi-arrow-down{transform:rotate(90deg)}.vpi-chevron-left,.vpi-arrow-left{transform:rotate(180deg)}.vpi-chevron-up,.vpi-arrow-up{transform:rotate(-90deg)}.vpi-square-pen{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7'/%3E%3Cpath d='M18.375 2.625a2.121 2.121 0 1 1 3 3L12 15l-4 1 1-4Z'/%3E%3C/svg%3E")}.vpi-plus{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14M12 5v14'/%3E%3C/svg%3E")}.vpi-sun{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41'/%3E%3C/svg%3E")}.vpi-moon{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z'/%3E%3C/svg%3E")}.vpi-more-horizontal{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='1'/%3E%3Ccircle cx='19' cy='12' r='1'/%3E%3Ccircle cx='5' cy='12' r='1'/%3E%3C/svg%3E")}.vpi-languages{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m5 8 6 6M4 14l6-6 2-3M2 5h12M7 2h1M22 22l-5-10-5 10M14 18h6'/%3E%3C/svg%3E")}.vpi-heart{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z'/%3E%3C/svg%3E")}.vpi-search{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E")}.vpi-layout-list{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Crect width='7' height='7' x='3' y='3' rx='1'/%3E%3Crect width='7' height='7' x='3' y='14' rx='1'/%3E%3Cpath d='M14 4h7M14 9h7M14 15h7M14 20h7'/%3E%3C/svg%3E")}.vpi-delete{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M20 5H9l-7 7 7 7h11a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2ZM18 9l-6 6M12 9l6 6'/%3E%3C/svg%3E")}.vpi-corner-down-left{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m9 10-5 5 5 5'/%3E%3Cpath d='M20 4v7a4 4 0 0 1-4 4H4'/%3E%3C/svg%3E")}:root{--vp-icon-copy: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='rgba(128,128,128,1)' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Crect width='8' height='4' x='8' y='2' rx='1' ry='1'/%3E%3Cpath d='M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2'/%3E%3C/svg%3E");--vp-icon-copied: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='rgba(128,128,128,1)' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Crect width='8' height='4' x='8' y='2' rx='1' ry='1'/%3E%3Cpath d='M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2'/%3E%3Cpath d='m9 14 2 2 4-4'/%3E%3C/svg%3E")}.vpi-social-discord{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.317 4.37a19.791 19.791 0 0 0-4.885-1.515.074.074 0 0 0-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 0 0-5.487 0 12.64 12.64 0 0 0-.617-1.25.077.077 0 0 0-.079-.037A19.736 19.736 0 0 0 3.677 4.37a.07.07 0 0 0-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 0 0 .031.057 19.9 19.9 0 0 0 5.993 3.03.078.078 0 0 0 .084-.028c.462-.63.874-1.295 1.226-1.994a.076.076 0 0 0-.041-.106 13.107 13.107 0 0 1-1.872-.892.077.077 0 0 1-.008-.128 10.2 10.2 0 0 0 .372-.292.074.074 0 0 1 .077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 0 1 .078.01c.12.098.246.198.373.292a.077.077 0 0 1-.006.127 12.299 12.299 0 0 1-1.873.892.077.077 0 0 0-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 0 0 .084.028 19.839 19.839 0 0 0 6.002-3.03.077.077 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 0 0-.031-.03zM8.02 15.33c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.956-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.956 2.418-2.157 2.418zm7.975 0c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.955-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.946 2.418-2.157 2.418Z'/%3E%3C/svg%3E")}.vpi-social-facebook{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.101 23.691v-7.98H6.627v-3.667h2.474v-1.58c0-4.085 1.848-5.978 5.858-5.978.401 0 .955.042 1.468.103a8.68 8.68 0 0 1 1.141.195v3.325a8.623 8.623 0 0 0-.653-.036 26.805 26.805 0 0 0-.733-.009c-.707 0-1.259.096-1.675.309a1.686 1.686 0 0 0-.679.622c-.258.42-.374.995-.374 1.752v1.297h3.919l-.386 2.103-.287 1.564h-3.246v8.245C19.396 23.238 24 18.179 24 12.044c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.628 3.874 10.35 9.101 11.647Z'/%3E%3C/svg%3E")}.vpi-social-github{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12'/%3E%3C/svg%3E")}.vpi-social-instagram{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7.03.084c-1.277.06-2.149.264-2.91.563a5.874 5.874 0 0 0-2.124 1.388 5.878 5.878 0 0 0-1.38 2.127C.321 4.926.12 5.8.064 7.076.008 8.354-.005 8.764.001 12.023c.007 3.259.021 3.667.083 4.947.061 1.277.264 2.149.563 2.911.308.789.72 1.457 1.388 2.123a5.872 5.872 0 0 0 2.129 1.38c.763.295 1.636.496 2.913.552 1.278.056 1.689.069 4.947.063 3.257-.007 3.668-.021 4.947-.082 1.28-.06 2.147-.265 2.91-.563a5.881 5.881 0 0 0 2.123-1.388 5.881 5.881 0 0 0 1.38-2.129c.295-.763.496-1.636.551-2.912.056-1.28.07-1.69.063-4.948-.006-3.258-.02-3.667-.081-4.947-.06-1.28-.264-2.148-.564-2.911a5.892 5.892 0 0 0-1.387-2.123 5.857 5.857 0 0 0-2.128-1.38C19.074.322 18.202.12 16.924.066 15.647.009 15.236-.006 11.977 0 8.718.008 8.31.021 7.03.084m.14 21.693c-1.17-.05-1.805-.245-2.228-.408a3.736 3.736 0 0 1-1.382-.895 3.695 3.695 0 0 1-.9-1.378c-.165-.423-.363-1.058-.417-2.228-.06-1.264-.072-1.644-.08-4.848-.006-3.204.006-3.583.061-4.848.05-1.169.246-1.805.408-2.228.216-.561.477-.96.895-1.382a3.705 3.705 0 0 1 1.379-.9c.423-.165 1.057-.361 2.227-.417 1.265-.06 1.644-.072 4.848-.08 3.203-.006 3.583.006 4.85.062 1.168.05 1.804.244 2.227.408.56.216.96.475 1.382.895.421.42.681.817.9 1.378.165.422.362 1.056.417 2.227.06 1.265.074 1.645.08 4.848.005 3.203-.006 3.583-.061 4.848-.051 1.17-.245 1.805-.408 2.23-.216.56-.477.96-.896 1.38a3.705 3.705 0 0 1-1.378.9c-.422.165-1.058.362-2.226.418-1.266.06-1.645.072-4.85.079-3.204.007-3.582-.006-4.848-.06m9.783-16.192a1.44 1.44 0 1 0 1.437-1.442 1.44 1.44 0 0 0-1.437 1.442M5.839 12.012a6.161 6.161 0 1 0 12.323-.024 6.162 6.162 0 0 0-12.323.024M8 12.008A4 4 0 1 1 12.008 16 4 4 0 0 1 8 12.008'/%3E%3C/svg%3E")}.vpi-social-linkedin{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.062 2.062 0 0 1-2.063-2.065 2.064 2.064 0 1 1 2.063 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z'/%3E%3C/svg%3E")}.vpi-social-mastodon{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M23.268 5.313c-.35-2.578-2.617-4.61-5.304-5.004C17.51.242 15.792 0 11.813 0h-.03c-3.98 0-4.835.242-5.288.309C3.882.692 1.496 2.518.917 5.127.64 6.412.61 7.837.661 9.143c.074 1.874.088 3.745.26 5.611.118 1.24.325 2.47.62 3.68.55 2.237 2.777 4.098 4.96 4.857 2.336.792 4.849.923 7.256.38.265-.061.527-.132.786-.213.585-.184 1.27-.39 1.774-.753a.057.057 0 0 0 .023-.043v-1.809a.052.052 0 0 0-.02-.041.053.053 0 0 0-.046-.01 20.282 20.282 0 0 1-4.709.545c-2.73 0-3.463-1.284-3.674-1.818a5.593 5.593 0 0 1-.319-1.433.053.053 0 0 1 .066-.054c1.517.363 3.072.546 4.632.546.376 0 .75 0 1.125-.01 1.57-.044 3.224-.124 4.768-.422.038-.008.077-.015.11-.024 2.435-.464 4.753-1.92 4.989-5.604.008-.145.03-1.52.03-1.67.002-.512.167-3.63-.024-5.545zm-3.748 9.195h-2.561V8.29c0-1.309-.55-1.976-1.67-1.976-1.23 0-1.846.79-1.846 2.35v3.403h-2.546V8.663c0-1.56-.617-2.35-1.848-2.35-1.112 0-1.668.668-1.67 1.977v6.218H4.822V8.102c0-1.31.337-2.35 1.011-3.12.696-.77 1.608-1.164 2.74-1.164 1.311 0 2.302.5 2.962 1.498l.638 1.06.638-1.06c.66-.999 1.65-1.498 2.96-1.498 1.13 0 2.043.395 2.74 1.164.675.77 1.012 1.81 1.012 3.12z'/%3E%3C/svg%3E")}.vpi-social-npm{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M1.763 0C.786 0 0 .786 0 1.763v20.474C0 23.214.786 24 1.763 24h20.474c.977 0 1.763-.786 1.763-1.763V1.763C24 .786 23.214 0 22.237 0zM5.13 5.323l13.837.019-.009 13.836h-3.464l.01-10.382h-3.456L12.04 19.17H5.113z'/%3E%3C/svg%3E")}.vpi-social-slack{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5.042 15.165a2.528 2.528 0 0 1-2.52 2.523A2.528 2.528 0 0 1 0 15.165a2.527 2.527 0 0 1 2.522-2.52h2.52v2.52zm1.271 0a2.527 2.527 0 0 1 2.521-2.52 2.527 2.527 0 0 1 2.521 2.52v6.313A2.528 2.528 0 0 1 8.834 24a2.528 2.528 0 0 1-2.521-2.522v-6.313zM8.834 5.042a2.528 2.528 0 0 1-2.521-2.52A2.528 2.528 0 0 1 8.834 0a2.528 2.528 0 0 1 2.521 2.522v2.52H8.834zm0 1.271a2.528 2.528 0 0 1 2.521 2.521 2.528 2.528 0 0 1-2.521 2.521H2.522A2.528 2.528 0 0 1 0 8.834a2.528 2.528 0 0 1 2.522-2.521h6.312zm10.122 2.521a2.528 2.528 0 0 1 2.522-2.521A2.528 2.528 0 0 1 24 8.834a2.528 2.528 0 0 1-2.522 2.521h-2.522V8.834zm-1.268 0a2.528 2.528 0 0 1-2.523 2.521 2.527 2.527 0 0 1-2.52-2.521V2.522A2.527 2.527 0 0 1 15.165 0a2.528 2.528 0 0 1 2.523 2.522v6.312zm-2.523 10.122a2.528 2.528 0 0 1 2.523 2.522A2.528 2.528 0 0 1 15.165 24a2.527 2.527 0 0 1-2.52-2.522v-2.522h2.52zm0-1.268a2.527 2.527 0 0 1-2.52-2.523 2.526 2.526 0 0 1 2.52-2.52h6.313A2.527 2.527 0 0 1 24 15.165a2.528 2.528 0 0 1-2.522 2.523h-6.313z'/%3E%3C/svg%3E")}.vpi-social-twitter,.vpi-social-x{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z'/%3E%3C/svg%3E")}.vpi-social-youtube{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z'/%3E%3C/svg%3E")}.visually-hidden{position:absolute;width:1px;height:1px;white-space:nowrap;clip:rect(0 0 0 0);clip-path:inset(50%);overflow:hidden}.custom-block{border:1px solid transparent;border-radius:8px;padding:16px 16px 8px;line-height:24px;font-size:var(--vp-custom-block-font-size);color:var(--vp-c-text-2)}.custom-block.info{border-color:var(--vp-custom-block-info-border);color:var(--vp-custom-block-info-text);background-color:var(--vp-custom-block-info-bg)}.custom-block.info a,.custom-block.info code{color:var(--vp-c-brand-1)}.custom-block.info a:hover,.custom-block.info a:hover>code{color:var(--vp-c-brand-2)}.custom-block.info code{background-color:var(--vp-custom-block-info-code-bg)}.custom-block.note{border-color:var(--vp-custom-block-note-border);color:var(--vp-custom-block-note-text);background-color:var(--vp-custom-block-note-bg)}.custom-block.note a,.custom-block.note code{color:var(--vp-c-brand-1)}.custom-block.note a:hover,.custom-block.note a:hover>code{color:var(--vp-c-brand-2)}.custom-block.note code{background-color:var(--vp-custom-block-note-code-bg)}.custom-block.tip{border-color:var(--vp-custom-block-tip-border);color:var(--vp-custom-block-tip-text);background-color:var(--vp-custom-block-tip-bg)}.custom-block.tip a,.custom-block.tip code{color:var(--vp-c-tip-1)}.custom-block.tip a:hover,.custom-block.tip a:hover>code{color:var(--vp-c-tip-2)}.custom-block.tip code{background-color:var(--vp-custom-block-tip-code-bg)}.custom-block.important{border-color:var(--vp-custom-block-important-border);color:var(--vp-custom-block-important-text);background-color:var(--vp-custom-block-important-bg)}.custom-block.important a,.custom-block.important code{color:var(--vp-c-important-1)}.custom-block.important a:hover,.custom-block.important a:hover>code{color:var(--vp-c-important-2)}.custom-block.important code{background-color:var(--vp-custom-block-important-code-bg)}.custom-block.warning{border-color:var(--vp-custom-block-warning-border);color:var(--vp-custom-block-warning-text);background-color:var(--vp-custom-block-warning-bg)}.custom-block.warning a,.custom-block.warning code{color:var(--vp-c-warning-1)}.custom-block.warning a:hover,.custom-block.warning a:hover>code{color:var(--vp-c-warning-2)}.custom-block.warning code{background-color:var(--vp-custom-block-warning-code-bg)}.custom-block.danger{border-color:var(--vp-custom-block-danger-border);color:var(--vp-custom-block-danger-text);background-color:var(--vp-custom-block-danger-bg)}.custom-block.danger a,.custom-block.danger code{color:var(--vp-c-danger-1)}.custom-block.danger a:hover,.custom-block.danger a:hover>code{color:var(--vp-c-danger-2)}.custom-block.danger code{background-color:var(--vp-custom-block-danger-code-bg)}.custom-block.caution{border-color:var(--vp-custom-block-caution-border);color:var(--vp-custom-block-caution-text);background-color:var(--vp-custom-block-caution-bg)}.custom-block.caution a,.custom-block.caution code{color:var(--vp-c-caution-1)}.custom-block.caution a:hover,.custom-block.caution a:hover>code{color:var(--vp-c-caution-2)}.custom-block.caution code{background-color:var(--vp-custom-block-caution-code-bg)}.custom-block.details{border-color:var(--vp-custom-block-details-border);color:var(--vp-custom-block-details-text);background-color:var(--vp-custom-block-details-bg)}.custom-block.details a{color:var(--vp-c-brand-1)}.custom-block.details a:hover,.custom-block.details a:hover>code{color:var(--vp-c-brand-2)}.custom-block.details code{background-color:var(--vp-custom-block-details-code-bg)}.custom-block-title{font-weight:600}.custom-block p+p{margin:8px 0}.custom-block.details summary{margin:0 0 8px;font-weight:700;cursor:pointer;-webkit-user-select:none;user-select:none}.custom-block.details summary+p{margin:8px 0}.custom-block a{color:inherit;font-weight:600;text-decoration:underline;text-underline-offset:2px;transition:opacity .25s}.custom-block a:hover{opacity:.75}.custom-block code{font-size:var(--vp-custom-block-code-font-size)}.custom-block.custom-block th,.custom-block.custom-block blockquote>p{font-size:var(--vp-custom-block-font-size);color:inherit}.dark .vp-code span{color:var(--shiki-dark, inherit)}html:not(.dark) .vp-code span{color:var(--shiki-light, inherit)}.vp-code-group{margin-top:16px}.vp-code-group .tabs{position:relative;display:flex;margin-right:-24px;margin-left:-24px;padding:0 12px;background-color:var(--vp-code-tab-bg);overflow-x:auto;overflow-y:hidden;box-shadow:inset 0 -1px var(--vp-code-tab-divider)}@media (min-width: 640px){.vp-code-group .tabs{margin-right:0;margin-left:0;border-radius:8px 8px 0 0}}.vp-code-group .tabs input{position:fixed;opacity:0;pointer-events:none}.vp-code-group .tabs label{position:relative;display:inline-block;border-bottom:1px solid transparent;padding:0 12px;line-height:48px;font-size:14px;font-weight:500;color:var(--vp-code-tab-text-color);white-space:nowrap;cursor:pointer;transition:color .25s}.vp-code-group .tabs label:after{position:absolute;right:8px;bottom:-1px;left:8px;z-index:1;height:2px;border-radius:2px;content:"";background-color:transparent;transition:background-color .25s}.vp-code-group label:hover{color:var(--vp-code-tab-hover-text-color)}.vp-code-group input:checked+label{color:var(--vp-code-tab-active-text-color)}.vp-code-group input:checked+label:after{background-color:var(--vp-code-tab-active-bar-color)}.vp-code-group div[class*=language-],.vp-block{display:none;margin-top:0!important;border-top-left-radius:0!important;border-top-right-radius:0!important}.vp-code-group div[class*=language-].active,.vp-block.active{display:block}.vp-block{padding:20px 24px}.vp-doc h1,.vp-doc h2,.vp-doc h3,.vp-doc h4,.vp-doc h5,.vp-doc h6{position:relative;font-weight:600;outline:none}.vp-doc h1{letter-spacing:-.02em;line-height:40px;font-size:28px}.vp-doc h2{margin:48px 0 16px;border-top:1px solid var(--vp-c-divider);padding-top:24px;letter-spacing:-.02em;line-height:32px;font-size:24px}.vp-doc h3{margin:32px 0 0;letter-spacing:-.01em;line-height:28px;font-size:20px}.vp-doc h4{margin:24px 0 0;letter-spacing:-.01em;line-height:24px;font-size:18px}.vp-doc .header-anchor{position:absolute;top:0;left:0;margin-left:-.87em;font-weight:500;-webkit-user-select:none;user-select:none;opacity:0;text-decoration:none;transition:color .25s,opacity .25s}.vp-doc .header-anchor:before{content:var(--vp-header-anchor-symbol)}.vp-doc h1:hover .header-anchor,.vp-doc h1 .header-anchor:focus,.vp-doc h2:hover .header-anchor,.vp-doc h2 .header-anchor:focus,.vp-doc h3:hover .header-anchor,.vp-doc h3 .header-anchor:focus,.vp-doc h4:hover .header-anchor,.vp-doc h4 .header-anchor:focus,.vp-doc h5:hover .header-anchor,.vp-doc h5 .header-anchor:focus,.vp-doc h6:hover .header-anchor,.vp-doc h6 .header-anchor:focus{opacity:1}@media (min-width: 768px){.vp-doc h1{letter-spacing:-.02em;line-height:40px;font-size:32px}}.vp-doc h2 .header-anchor{top:24px}.vp-doc p,.vp-doc summary{margin:16px 0}.vp-doc p{line-height:28px}.vp-doc blockquote{margin:16px 0;border-left:2px solid var(--vp-c-divider);padding-left:16px;transition:border-color .5s;color:var(--vp-c-text-2)}.vp-doc blockquote>p{margin:0;font-size:16px;transition:color .5s}.vp-doc a{font-weight:500;color:var(--vp-c-brand-1);text-decoration:underline;text-underline-offset:2px;transition:color .25s,opacity .25s}.vp-doc a:hover{color:var(--vp-c-brand-2)}.vp-doc strong{font-weight:600}.vp-doc ul,.vp-doc ol{padding-left:1.25rem;margin:16px 0}.vp-doc ul{list-style:disc}.vp-doc ol{list-style:decimal}.vp-doc li+li{margin-top:8px}.vp-doc li>ol,.vp-doc li>ul{margin:8px 0 0}.vp-doc table{display:block;border-collapse:collapse;margin:20px 0;overflow-x:auto}.vp-doc tr{background-color:var(--vp-c-bg);border-top:1px solid var(--vp-c-divider);transition:background-color .5s}.vp-doc tr:nth-child(2n){background-color:var(--vp-c-bg-soft)}.vp-doc th,.vp-doc td{border:1px solid var(--vp-c-divider);padding:8px 16px}.vp-doc th{text-align:left;font-size:14px;font-weight:600;color:var(--vp-c-text-2);background-color:var(--vp-c-bg-soft)}.vp-doc td{font-size:14px}.vp-doc hr{margin:16px 0;border:none;border-top:1px solid var(--vp-c-divider)}.vp-doc .custom-block{margin:16px 0}.vp-doc .custom-block p{margin:8px 0;line-height:24px}.vp-doc .custom-block p:first-child{margin:0}.vp-doc .custom-block div[class*=language-]{margin:8px 0;border-radius:8px}.vp-doc .custom-block div[class*=language-] code{font-weight:400;background-color:transparent}.vp-doc .custom-block .vp-code-group .tabs{margin:0;border-radius:8px 8px 0 0}.vp-doc :not(pre,h1,h2,h3,h4,h5,h6)>code{font-size:var(--vp-code-font-size);color:var(--vp-code-color)}.vp-doc :not(pre)>code{border-radius:4px;padding:3px 6px;background-color:var(--vp-code-bg);transition:color .25s,background-color .5s}.vp-doc a>code{color:var(--vp-code-link-color)}.vp-doc a:hover>code{color:var(--vp-code-link-hover-color)}.vp-doc h1>code,.vp-doc h2>code,.vp-doc h3>code,.vp-doc h4>code{font-size:.9em}.vp-doc div[class*=language-],.vp-block{position:relative;margin:16px -24px;background-color:var(--vp-code-block-bg);overflow-x:auto;transition:background-color .5s}@media (min-width: 640px){.vp-doc div[class*=language-],.vp-block{border-radius:8px;margin:16px 0}}@media (max-width: 639px){.vp-doc li div[class*=language-]{border-radius:8px 0 0 8px}}.vp-doc div[class*=language-]+div[class*=language-],.vp-doc div[class$=-api]+div[class*=language-],.vp-doc div[class*=language-]+div[class$=-api]>div[class*=language-]{margin-top:-8px}.vp-doc [class*=language-] pre,.vp-doc [class*=language-] code{direction:ltr;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}.vp-doc [class*=language-] pre{position:relative;z-index:1;margin:0;padding:20px 0;background:transparent;overflow-x:auto}.vp-doc [class*=language-] code{display:block;padding:0 24px;width:fit-content;min-width:100%;line-height:var(--vp-code-line-height);font-size:var(--vp-code-font-size);color:var(--vp-code-block-color);transition:color .5s}.vp-doc [class*=language-] code .highlighted{background-color:var(--vp-code-line-highlight-color);transition:background-color .5s;margin:0 -24px;padding:0 24px;width:calc(100% + 48px);display:inline-block}.vp-doc [class*=language-] code .highlighted.error{background-color:var(--vp-code-line-error-color)}.vp-doc [class*=language-] code .highlighted.warning{background-color:var(--vp-code-line-warning-color)}.vp-doc [class*=language-] code .diff{transition:background-color .5s;margin:0 -24px;padding:0 24px;width:calc(100% + 48px);display:inline-block}.vp-doc [class*=language-] code .diff:before{position:absolute;left:10px}.vp-doc [class*=language-] .has-focused-lines .line:not(.has-focus){filter:blur(.095rem);opacity:.4;transition:filter .35s,opacity .35s}.vp-doc [class*=language-] .has-focused-lines .line:not(.has-focus){opacity:.7;transition:filter .35s,opacity .35s}.vp-doc [class*=language-]:hover .has-focused-lines .line:not(.has-focus){filter:blur(0);opacity:1}.vp-doc [class*=language-] code .diff.remove{background-color:var(--vp-code-line-diff-remove-color);opacity:.7}.vp-doc [class*=language-] code .diff.remove:before{content:"-";color:var(--vp-code-line-diff-remove-symbol-color)}.vp-doc [class*=language-] code .diff.add{background-color:var(--vp-code-line-diff-add-color)}.vp-doc [class*=language-] code .diff.add:before{content:"+";color:var(--vp-code-line-diff-add-symbol-color)}.vp-doc div[class*=language-].line-numbers-mode{padding-left:32px}.vp-doc .line-numbers-wrapper{position:absolute;top:0;bottom:0;left:0;z-index:3;border-right:1px solid var(--vp-code-block-divider-color);padding-top:20px;width:32px;text-align:center;font-family:var(--vp-font-family-mono);line-height:var(--vp-code-line-height);font-size:var(--vp-code-font-size);color:var(--vp-code-line-number-color);transition:border-color .5s,color .5s}.vp-doc [class*=language-]>button.copy{direction:ltr;position:absolute;top:12px;right:12px;z-index:3;border:1px solid var(--vp-code-copy-code-border-color);border-radius:4px;width:40px;height:40px;background-color:var(--vp-code-copy-code-bg);opacity:0;cursor:pointer;background-image:var(--vp-icon-copy);background-position:50%;background-size:20px;background-repeat:no-repeat;transition:border-color .25s,background-color .25s,opacity .25s}.vp-doc [class*=language-]:hover>button.copy,.vp-doc [class*=language-]>button.copy:focus{opacity:1}.vp-doc [class*=language-]>button.copy:hover,.vp-doc [class*=language-]>button.copy.copied{border-color:var(--vp-code-copy-code-hover-border-color);background-color:var(--vp-code-copy-code-hover-bg)}.vp-doc [class*=language-]>button.copy.copied,.vp-doc [class*=language-]>button.copy:hover.copied{border-radius:0 4px 4px 0;background-color:var(--vp-code-copy-code-hover-bg);background-image:var(--vp-icon-copied)}.vp-doc [class*=language-]>button.copy.copied:before,.vp-doc [class*=language-]>button.copy:hover.copied:before{position:relative;top:-1px;transform:translate(calc(-100% - 1px));display:flex;justify-content:center;align-items:center;border:1px solid var(--vp-code-copy-code-hover-border-color);border-right:0;border-radius:4px 0 0 4px;padding:0 10px;width:fit-content;height:40px;text-align:center;font-size:12px;font-weight:500;color:var(--vp-code-copy-code-active-text);background-color:var(--vp-code-copy-code-hover-bg);white-space:nowrap;content:var(--vp-code-copy-copied-text-content)}.vp-doc [class*=language-]>span.lang{position:absolute;top:2px;right:8px;z-index:2;font-size:12px;font-weight:500;color:var(--vp-code-lang-color);transition:color .4s,opacity .4s}.vp-doc [class*=language-]:hover>button.copy+span.lang,.vp-doc [class*=language-]>button.copy:focus+span.lang{opacity:0}.vp-doc .VPTeamMembers{margin-top:24px}.vp-doc .VPTeamMembers.small.count-1 .container{margin:0!important;max-width:calc((100% - 24px)/2)!important}.vp-doc .VPTeamMembers.small.count-2 .container,.vp-doc .VPTeamMembers.small.count-3 .container{max-width:100%!important}.vp-doc .VPTeamMembers.medium.count-1 .container{margin:0!important;max-width:calc((100% - 24px)/2)!important}:is(.vp-external-link-icon,.vp-doc a[href*="://"],.vp-doc a[target=_blank]):not(.no-icon):after{display:inline-block;margin-top:-1px;margin-left:4px;width:11px;height:11px;background:currentColor;color:var(--vp-c-text-3);flex-shrink:0;--icon: url("data:image/svg+xml, %3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' %3E%3Cpath d='M0 0h24v24H0V0z' fill='none' /%3E%3Cpath d='M9 5v2h6.59L4 18.59 5.41 20 17 8.41V15h2V5H9z' /%3E%3C/svg%3E");-webkit-mask-image:var(--icon);mask-image:var(--icon)}.vp-external-link-icon:after{content:""}.external-link-icon-enabled :is(.vp-doc a[href*="://"],.vp-doc a[target=_blank]):after{content:"";color:currentColor}.vp-sponsor{border-radius:16px;overflow:hidden}.vp-sponsor.aside{border-radius:12px}.vp-sponsor-section+.vp-sponsor-section{margin-top:4px}.vp-sponsor-tier{margin:0 0 4px!important;text-align:center;letter-spacing:1px!important;line-height:24px;width:100%;font-weight:600;color:var(--vp-c-text-2);background-color:var(--vp-c-bg-soft)}.vp-sponsor.normal .vp-sponsor-tier{padding:13px 0 11px;font-size:14px}.vp-sponsor.aside .vp-sponsor-tier{padding:9px 0 7px;font-size:12px}.vp-sponsor-grid+.vp-sponsor-tier{margin-top:4px}.vp-sponsor-grid{display:flex;flex-wrap:wrap;gap:4px}.vp-sponsor-grid.xmini .vp-sponsor-grid-link{height:64px}.vp-sponsor-grid.xmini .vp-sponsor-grid-image{max-width:64px;max-height:22px}.vp-sponsor-grid.mini .vp-sponsor-grid-link{height:72px}.vp-sponsor-grid.mini .vp-sponsor-grid-image{max-width:96px;max-height:24px}.vp-sponsor-grid.small .vp-sponsor-grid-link{height:96px}.vp-sponsor-grid.small .vp-sponsor-grid-image{max-width:96px;max-height:24px}.vp-sponsor-grid.medium .vp-sponsor-grid-link{height:112px}.vp-sponsor-grid.medium .vp-sponsor-grid-image{max-width:120px;max-height:36px}.vp-sponsor-grid.big .vp-sponsor-grid-link{height:184px}.vp-sponsor-grid.big .vp-sponsor-grid-image{max-width:192px;max-height:56px}.vp-sponsor-grid[data-vp-grid="2"] .vp-sponsor-grid-item{width:calc((100% - 4px)/2)}.vp-sponsor-grid[data-vp-grid="3"] .vp-sponsor-grid-item{width:calc((100% - 4px * 2) / 3)}.vp-sponsor-grid[data-vp-grid="4"] .vp-sponsor-grid-item{width:calc((100% - 12px)/4)}.vp-sponsor-grid[data-vp-grid="5"] .vp-sponsor-grid-item{width:calc((100% - 16px)/5)}.vp-sponsor-grid[data-vp-grid="6"] .vp-sponsor-grid-item{width:calc((100% - 4px * 5) / 6)}.vp-sponsor-grid-item{flex-shrink:0;width:100%;background-color:var(--vp-c-bg-soft);transition:background-color .25s}.vp-sponsor-grid-item:hover{background-color:var(--vp-c-default-soft)}.vp-sponsor-grid-item:hover .vp-sponsor-grid-image{filter:grayscale(0) invert(0)}.vp-sponsor-grid-item.empty:hover{background-color:var(--vp-c-bg-soft)}.dark .vp-sponsor-grid-item:hover{background-color:var(--vp-c-white)}.dark .vp-sponsor-grid-item.empty:hover{background-color:var(--vp-c-bg-soft)}.vp-sponsor-grid-link{display:flex}.vp-sponsor-grid-box{display:flex;justify-content:center;align-items:center;width:100%}.vp-sponsor-grid-image{max-width:100%;filter:grayscale(1);transition:filter .25s}.dark .vp-sponsor-grid-image{filter:grayscale(1) invert(1)}.VPBadge{display:inline-block;margin-left:2px;border:1px solid transparent;border-radius:12px;padding:0 10px;line-height:22px;font-size:12px;font-weight:500;transform:translateY(-2px)}.VPBadge.small{padding:0 6px;line-height:18px;font-size:10px;transform:translateY(-8px)}.VPDocFooter .VPBadge{display:none}.vp-doc h1>.VPBadge{margin-top:4px;vertical-align:top}.vp-doc h2>.VPBadge{margin-top:3px;padding:0 8px;vertical-align:top}.vp-doc h3>.VPBadge{vertical-align:middle}.vp-doc h4>.VPBadge,.vp-doc h5>.VPBadge,.vp-doc h6>.VPBadge{vertical-align:middle;line-height:18px}.VPBadge.info{border-color:var(--vp-badge-info-border);color:var(--vp-badge-info-text);background-color:var(--vp-badge-info-bg)}.VPBadge.tip{border-color:var(--vp-badge-tip-border);color:var(--vp-badge-tip-text);background-color:var(--vp-badge-tip-bg)}.VPBadge.warning{border-color:var(--vp-badge-warning-border);color:var(--vp-badge-warning-text);background-color:var(--vp-badge-warning-bg)}.VPBadge.danger{border-color:var(--vp-badge-danger-border);color:var(--vp-badge-danger-text);background-color:var(--vp-badge-danger-bg)}.VPBackdrop[data-v-56982ed4]{position:fixed;top:0;right:0;bottom:0;left:0;z-index:var(--vp-z-index-backdrop);background:var(--vp-backdrop-bg-color);transition:opacity .5s}.VPBackdrop.fade-enter-from[data-v-56982ed4],.VPBackdrop.fade-leave-to[data-v-56982ed4]{opacity:0}.VPBackdrop.fade-leave-active[data-v-56982ed4]{transition-duration:.25s}@media (min-width: 1280px){.VPBackdrop[data-v-56982ed4]{display:none}}.NotFound[data-v-838f1696]{padding:64px 24px 96px;text-align:center}@media (min-width: 768px){.NotFound[data-v-838f1696]{padding:96px 32px 168px}}.code[data-v-838f1696]{line-height:64px;font-size:64px;font-weight:600}.title[data-v-838f1696]{padding-top:12px;letter-spacing:2px;line-height:20px;font-size:20px;font-weight:700}.divider[data-v-838f1696]{margin:24px auto 18px;width:64px;height:1px;background-color:var(--vp-c-divider)}.quote[data-v-838f1696]{margin:0 auto;max-width:256px;font-size:14px;font-weight:500;color:var(--vp-c-text-2)}.action[data-v-838f1696]{padding-top:20px}.link[data-v-838f1696]{display:inline-block;border:1px solid var(--vp-c-brand-1);border-radius:16px;padding:3px 16px;font-size:14px;font-weight:500;color:var(--vp-c-brand-1);transition:border-color .25s,color .25s}.link[data-v-838f1696]:hover{border-color:var(--vp-c-brand-2);color:var(--vp-c-brand-2)}.root[data-v-8eab9d68]{position:relative;z-index:1}.nested[data-v-8eab9d68]{padding-right:16px;padding-left:16px}.outline-link[data-v-8eab9d68]{display:block;line-height:32px;font-size:14px;font-weight:400;color:var(--vp-c-text-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:color .5s}.outline-link[data-v-8eab9d68]:hover,.outline-link.active[data-v-8eab9d68]{color:var(--vp-c-text-1);transition:color .25s}.outline-link.nested[data-v-8eab9d68]{padding-left:13px}.VPDocAsideOutline[data-v-13e7f6e7]{display:none}.VPDocAsideOutline.has-outline[data-v-13e7f6e7]{display:block}.content[data-v-13e7f6e7]{position:relative;border-left:1px solid var(--vp-c-divider);padding-left:16px;font-size:13px;font-weight:500}.outline-marker[data-v-13e7f6e7]{position:absolute;top:32px;left:-1px;z-index:0;opacity:0;width:2px;border-radius:2px;height:18px;background-color:var(--vp-c-brand-1);transition:top .25s cubic-bezier(0,1,.5,1),background-color .5s,opacity .25s}.outline-title[data-v-13e7f6e7]{line-height:32px;font-size:14px;font-weight:600}.VPDocAside[data-v-ceccf741]{display:flex;flex-direction:column;flex-grow:1}.spacer[data-v-ceccf741]{flex-grow:1}.VPDocAside[data-v-ceccf741] .spacer+.VPDocAsideSponsors,.VPDocAside[data-v-ceccf741] .spacer+.VPDocAsideCarbonAds{margin-top:24px}.VPDocAside[data-v-ceccf741] .VPDocAsideSponsors+.VPDocAsideCarbonAds{margin-top:16px}.VPLastUpdated[data-v-4967a5ea]{line-height:24px;font-size:14px;font-weight:500;color:var(--vp-c-text-2)}@media (min-width: 640px){.VPLastUpdated[data-v-4967a5ea]{line-height:32px;font-size:14px;font-weight:500}}.VPDocFooter[data-v-ae614b68]{margin-top:64px}.edit-info[data-v-ae614b68]{padding-bottom:18px}@media (min-width: 640px){.edit-info[data-v-ae614b68]{display:flex;justify-content:space-between;align-items:center;padding-bottom:14px}}.edit-link-button[data-v-ae614b68]{display:flex;align-items:center;border:0;line-height:32px;font-size:14px;font-weight:500;color:var(--vp-c-brand-1);transition:color .25s}.edit-link-button[data-v-ae614b68]:hover{color:var(--vp-c-brand-2)}.edit-link-icon[data-v-ae614b68]{margin-right:8px}.prev-next[data-v-ae614b68]{border-top:1px solid var(--vp-c-divider);padding-top:24px;display:grid;grid-row-gap:8px}@media (min-width: 640px){.prev-next[data-v-ae614b68]{grid-template-columns:repeat(2,1fr);grid-column-gap:16px}}.pager-link[data-v-ae614b68]{display:block;border:1px solid var(--vp-c-divider);border-radius:8px;padding:11px 16px 13px;width:100%;height:100%;transition:border-color .25s}.pager-link[data-v-ae614b68]:hover{border-color:var(--vp-c-brand-1)}.pager-link.next[data-v-ae614b68]{margin-left:auto;text-align:right}.desc[data-v-ae614b68]{display:block;line-height:20px;font-size:12px;font-weight:500;color:var(--vp-c-text-2)}.title[data-v-ae614b68]{display:block;line-height:20px;font-size:14px;font-weight:500;color:var(--vp-c-brand-1);transition:color .25s}.VPDoc[data-v-720a8890]{padding:32px 24px 96px;width:100%}@media (min-width: 768px){.VPDoc[data-v-720a8890]{padding:48px 32px 128px}}@media (min-width: 960px){.VPDoc[data-v-720a8890]{padding:48px 32px 0}.VPDoc:not(.has-sidebar) .container[data-v-720a8890]{display:flex;justify-content:center;max-width:992px}.VPDoc:not(.has-sidebar) .content[data-v-720a8890]{max-width:752px}}@media (min-width: 1280px){.VPDoc .container[data-v-720a8890]{display:flex;justify-content:center}.VPDoc .aside[data-v-720a8890]{display:block}}@media (min-width: 1440px){.VPDoc:not(.has-sidebar) .content[data-v-720a8890]{max-width:784px}.VPDoc:not(.has-sidebar) .container[data-v-720a8890]{max-width:1104px}}.container[data-v-720a8890]{margin:0 auto;width:100%}.aside[data-v-720a8890]{position:relative;display:none;order:2;flex-grow:1;padding-left:32px;width:100%;max-width:256px}.left-aside[data-v-720a8890]{order:1;padding-left:unset;padding-right:32px}.aside-container[data-v-720a8890]{position:fixed;top:0;padding-top:calc(var(--vp-nav-height) + var(--vp-layout-top-height, 0px) + var(--vp-doc-top-height, 0px) + 48px);width:224px;height:100vh;overflow-x:hidden;overflow-y:auto;scrollbar-width:none}.aside-container[data-v-720a8890]::-webkit-scrollbar{display:none}.aside-curtain[data-v-720a8890]{position:fixed;bottom:0;z-index:10;width:224px;height:32px;background:linear-gradient(transparent,var(--vp-c-bg) 70%)}.aside-content[data-v-720a8890]{display:flex;flex-direction:column;min-height:calc(100vh - (var(--vp-nav-height) + var(--vp-layout-top-height, 0px) + 48px));padding-bottom:32px}.content[data-v-720a8890]{position:relative;margin:0 auto;width:100%}@media (min-width: 960px){.content[data-v-720a8890]{padding:0 32px 128px}}@media (min-width: 1280px){.content[data-v-720a8890]{order:1;margin:0;min-width:640px}}.content-container[data-v-720a8890]{margin:0 auto}.VPDoc.has-aside .content-container[data-v-720a8890]{max-width:688px}.VPButton[data-v-70a298c4]{display:inline-block;border:1px solid transparent;text-align:center;font-weight:600;white-space:nowrap;transition:color .25s,border-color .25s,background-color .25s}.VPButton[data-v-70a298c4]:active{transition:color .1s,border-color .1s,background-color .1s}.VPButton.medium[data-v-70a298c4]{border-radius:20px;padding:0 20px;line-height:38px;font-size:14px}.VPButton.big[data-v-70a298c4]{border-radius:24px;padding:0 24px;line-height:46px;font-size:16px}.VPButton.brand[data-v-70a298c4]{border-color:var(--vp-button-brand-border);color:var(--vp-button-brand-text);background-color:var(--vp-button-brand-bg)}.VPButton.brand[data-v-70a298c4]:hover{border-color:var(--vp-button-brand-hover-border);color:var(--vp-button-brand-hover-text);background-color:var(--vp-button-brand-hover-bg)}.VPButton.brand[data-v-70a298c4]:active{border-color:var(--vp-button-brand-active-border);color:var(--vp-button-brand-active-text);background-color:var(--vp-button-brand-active-bg)}.VPButton.alt[data-v-70a298c4]{border-color:var(--vp-button-alt-border);color:var(--vp-button-alt-text);background-color:var(--vp-button-alt-bg)}.VPButton.alt[data-v-70a298c4]:hover{border-color:var(--vp-button-alt-hover-border);color:var(--vp-button-alt-hover-text);background-color:var(--vp-button-alt-hover-bg)}.VPButton.alt[data-v-70a298c4]:active{border-color:var(--vp-button-alt-active-border);color:var(--vp-button-alt-active-text);background-color:var(--vp-button-alt-active-bg)}.VPButton.sponsor[data-v-70a298c4]{border-color:var(--vp-button-sponsor-border);color:var(--vp-button-sponsor-text);background-color:var(--vp-button-sponsor-bg)}.VPButton.sponsor[data-v-70a298c4]:hover{border-color:var(--vp-button-sponsor-hover-border);color:var(--vp-button-sponsor-hover-text);background-color:var(--vp-button-sponsor-hover-bg)}.VPButton.sponsor[data-v-70a298c4]:active{border-color:var(--vp-button-sponsor-active-border);color:var(--vp-button-sponsor-active-text);background-color:var(--vp-button-sponsor-active-bg)}html:not(.dark) .VPImage.dark[data-v-0fb6b2b9]{display:none}.dark .VPImage.light[data-v-0fb6b2b9]{display:none}.VPHero[data-v-5bacb0e4]{margin-top:calc((var(--vp-nav-height) + var(--vp-layout-top-height, 0px)) * -1);padding:calc(var(--vp-nav-height) + var(--vp-layout-top-height, 0px) + 48px) 24px 48px}@media (min-width: 640px){.VPHero[data-v-5bacb0e4]{padding:calc(var(--vp-nav-height) + var(--vp-layout-top-height, 0px) + 80px) 48px 64px}}@media (min-width: 960px){.VPHero[data-v-5bacb0e4]{padding:calc(var(--vp-nav-height) + var(--vp-layout-top-height, 0px) + 80px) 64px 64px}}.container[data-v-5bacb0e4]{display:flex;flex-direction:column;margin:0 auto;max-width:1152px}@media (min-width: 960px){.container[data-v-5bacb0e4]{flex-direction:row}}.main[data-v-5bacb0e4]{position:relative;z-index:10;order:2;flex-grow:1;flex-shrink:0}.VPHero.has-image .container[data-v-5bacb0e4]{text-align:center}@media (min-width: 960px){.VPHero.has-image .container[data-v-5bacb0e4]{text-align:left}}@media (min-width: 960px){.main[data-v-5bacb0e4]{order:1;width:calc((100% / 3) * 2)}.VPHero.has-image .main[data-v-5bacb0e4]{max-width:592px}}.name[data-v-5bacb0e4],.text[data-v-5bacb0e4]{max-width:392px;letter-spacing:-.4px;line-height:40px;font-size:32px;font-weight:700;white-space:pre-wrap}.VPHero.has-image .name[data-v-5bacb0e4],.VPHero.has-image .text[data-v-5bacb0e4]{margin:0 auto}.name[data-v-5bacb0e4]{color:var(--vp-home-hero-name-color)}.clip[data-v-5bacb0e4]{background:var(--vp-home-hero-name-background);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:var(--vp-home-hero-name-color)}@media (min-width: 640px){.name[data-v-5bacb0e4],.text[data-v-5bacb0e4]{max-width:576px;line-height:56px;font-size:48px}}@media (min-width: 960px){.name[data-v-5bacb0e4],.text[data-v-5bacb0e4]{line-height:64px;font-size:56px}.VPHero.has-image .name[data-v-5bacb0e4],.VPHero.has-image .text[data-v-5bacb0e4]{margin:0}}.tagline[data-v-5bacb0e4]{padding-top:8px;max-width:392px;line-height:28px;font-size:18px;font-weight:500;white-space:pre-wrap;color:var(--vp-c-text-2)}.VPHero.has-image .tagline[data-v-5bacb0e4]{margin:0 auto}@media (min-width: 640px){.tagline[data-v-5bacb0e4]{padding-top:12px;max-width:576px;line-height:32px;font-size:20px}}@media (min-width: 960px){.tagline[data-v-5bacb0e4]{line-height:36px;font-size:24px}.VPHero.has-image .tagline[data-v-5bacb0e4]{margin:0}}.actions[data-v-5bacb0e4]{display:flex;flex-wrap:wrap;margin:-6px;padding-top:24px}.VPHero.has-image .actions[data-v-5bacb0e4]{justify-content:center}@media (min-width: 640px){.actions[data-v-5bacb0e4]{padding-top:32px}}@media (min-width: 960px){.VPHero.has-image .actions[data-v-5bacb0e4]{justify-content:flex-start}}.action[data-v-5bacb0e4]{flex-shrink:0;padding:6px}.image[data-v-5bacb0e4]{order:1;margin:-76px -24px -48px}@media (min-width: 640px){.image[data-v-5bacb0e4]{margin:-108px -24px -48px}}@media (min-width: 960px){.image[data-v-5bacb0e4]{flex-grow:1;order:2;margin:0;min-height:100%}}.image-container[data-v-5bacb0e4]{position:relative;margin:0 auto;width:320px;height:320px}@media (min-width: 640px){.image-container[data-v-5bacb0e4]{width:392px;height:392px}}@media (min-width: 960px){.image-container[data-v-5bacb0e4]{display:flex;justify-content:center;align-items:center;width:100%;height:100%;transform:translate(-32px,-32px)}}.image-bg[data-v-5bacb0e4]{position:absolute;top:50%;left:50%;border-radius:50%;width:192px;height:192px;background-image:var(--vp-home-hero-image-background-image);filter:var(--vp-home-hero-image-filter);transform:translate(-50%,-50%)}@media (min-width: 640px){.image-bg[data-v-5bacb0e4]{width:256px;height:256px}}@media (min-width: 960px){.image-bg[data-v-5bacb0e4]{width:320px;height:320px}}[data-v-5bacb0e4] .image-src{position:absolute;top:50%;left:50%;max-width:192px;max-height:192px;transform:translate(-50%,-50%)}@media (min-width: 640px){[data-v-5bacb0e4] .image-src{max-width:256px;max-height:256px}}@media (min-width: 960px){[data-v-5bacb0e4] .image-src{max-width:320px;max-height:320px}}.VPFeature[data-v-9ab683b9]{display:block;border:1px solid var(--vp-c-bg-soft);border-radius:12px;height:100%;background-color:var(--vp-c-bg-soft);transition:border-color .25s,background-color .25s}.VPFeature.link[data-v-9ab683b9]:hover{border-color:var(--vp-c-brand-1)}.box[data-v-9ab683b9]{display:flex;flex-direction:column;padding:24px;height:100%}.box[data-v-9ab683b9]>.VPImage{margin-bottom:20px}.icon[data-v-9ab683b9]{display:flex;justify-content:center;align-items:center;margin-bottom:20px;border-radius:6px;background-color:var(--vp-c-default-soft);width:48px;height:48px;font-size:24px;transition:background-color .25s}.title[data-v-9ab683b9]{line-height:24px;font-size:16px;font-weight:600}.details[data-v-9ab683b9]{flex-grow:1;padding-top:8px;line-height:24px;font-size:14px;font-weight:500;color:var(--vp-c-text-2)}.link-text[data-v-9ab683b9]{padding-top:8px}.link-text-value[data-v-9ab683b9]{display:flex;align-items:center;font-size:14px;font-weight:500;color:var(--vp-c-brand-1)}.link-text-icon[data-v-9ab683b9]{margin-left:6px}.VPFeatures[data-v-865a0111]{position:relative;padding:0 24px}@media (min-width: 640px){.VPFeatures[data-v-865a0111]{padding:0 48px}}@media (min-width: 960px){.VPFeatures[data-v-865a0111]{padding:0 64px}}.container[data-v-865a0111]{margin:0 auto;max-width:1152px}.items[data-v-865a0111]{display:flex;flex-wrap:wrap;margin:-8px}.item[data-v-865a0111]{padding:8px;width:100%}@media (min-width: 640px){.item.grid-2[data-v-865a0111],.item.grid-4[data-v-865a0111],.item.grid-6[data-v-865a0111]{width:50%}}@media (min-width: 768px){.item.grid-2[data-v-865a0111],.item.grid-4[data-v-865a0111]{width:50%}.item.grid-3[data-v-865a0111],.item.grid-6[data-v-865a0111]{width:calc(100% / 3)}}@media (min-width: 960px){.item.grid-4[data-v-865a0111]{width:25%}}.container[data-v-db2315e1]{margin:auto;width:100%;max-width:1280px;padding:0 24px}@media (min-width: 640px){.container[data-v-db2315e1]{padding:0 48px}}@media (min-width: 960px){.container[data-v-db2315e1]{width:100%;padding:0 64px}}.vp-doc[data-v-db2315e1] .VPHomeSponsors,.vp-doc[data-v-db2315e1] .VPTeamPage{margin-left:var(--vp-offset, calc(50% - 50vw) );margin-right:var(--vp-offset, calc(50% - 50vw) )}.vp-doc[data-v-db2315e1] .VPHomeSponsors h2{border-top:none;letter-spacing:normal}.vp-doc[data-v-db2315e1] .VPHomeSponsors a,.vp-doc[data-v-db2315e1] .VPTeamPage a{text-decoration:none}.VPHome[data-v-5b103178]{margin-bottom:96px}@media (min-width: 768px){.VPHome[data-v-5b103178]{margin-bottom:128px}}.VPContent[data-v-75058cb9]{flex-grow:1;flex-shrink:0;margin:var(--vp-layout-top-height, 0px) auto 0;width:100%}.VPContent.is-home[data-v-75058cb9]{width:100%;max-width:100%}.VPContent.has-sidebar[data-v-75058cb9]{margin:0}@media (min-width: 960px){.VPContent[data-v-75058cb9]{padding-top:var(--vp-nav-height)}.VPContent.has-sidebar[data-v-75058cb9]{margin:var(--vp-layout-top-height, 0px) 0 0;padding-left:var(--vp-sidebar-width)}}@media (min-width: 1440px){.VPContent.has-sidebar[data-v-75058cb9]{padding-right:calc((100vw - var(--vp-layout-max-width)) / 2);padding-left:calc((100vw - var(--vp-layout-max-width)) / 2 + var(--vp-sidebar-width))}}.VPFooter[data-v-d6cdff98]{position:relative;z-index:var(--vp-z-index-footer);border-top:1px solid var(--vp-c-gutter);padding:32px 24px;background-color:var(--vp-c-bg)}.VPFooter.has-sidebar[data-v-d6cdff98]{display:none}.VPFooter[data-v-d6cdff98] a{text-decoration-line:underline;text-underline-offset:2px;transition:color .25s}.VPFooter[data-v-d6cdff98] a:hover{color:var(--vp-c-text-1)}@media (min-width: 768px){.VPFooter[data-v-d6cdff98]{padding:32px}}.container[data-v-d6cdff98]{margin:0 auto;max-width:var(--vp-layout-max-width);text-align:center}.message[data-v-d6cdff98],.copyright[data-v-d6cdff98]{line-height:24px;font-size:14px;font-weight:500;color:var(--vp-c-text-2)}.VPLocalNavOutlineDropdown[data-v-d9b155a3]{padding:12px 20px 11px}@media (min-width: 960px){.VPLocalNavOutlineDropdown[data-v-d9b155a3]{padding:12px 36px 11px}}.VPLocalNavOutlineDropdown button[data-v-d9b155a3]{display:block;font-size:12px;font-weight:500;line-height:24px;color:var(--vp-c-text-2);transition:color .5s;position:relative}.VPLocalNavOutlineDropdown button[data-v-d9b155a3]:hover{color:var(--vp-c-text-1);transition:color .25s}.VPLocalNavOutlineDropdown button.open[data-v-d9b155a3]{color:var(--vp-c-text-1)}.icon[data-v-d9b155a3]{display:inline-block;vertical-align:middle;margin-left:2px;font-size:14px;transform:rotate(0);transition:transform .25s}@media (min-width: 960px){.VPLocalNavOutlineDropdown button[data-v-d9b155a3]{font-size:14px}.icon[data-v-d9b155a3]{font-size:16px}}.open>.icon[data-v-d9b155a3]{transform:rotate(90deg)}.items[data-v-d9b155a3]{position:absolute;top:40px;right:16px;left:16px;display:grid;gap:1px;border:1px solid var(--vp-c-border);border-radius:8px;background-color:var(--vp-c-gutter);max-height:calc(var(--vp-vh, 100vh) - 86px);overflow:hidden auto;box-shadow:var(--vp-shadow-3)}@media (min-width: 960px){.items[data-v-d9b155a3]{right:auto;left:calc(var(--vp-sidebar-width) + 32px);width:320px}}.header[data-v-d9b155a3]{background-color:var(--vp-c-bg-soft)}.top-link[data-v-d9b155a3]{display:block;padding:0 16px;line-height:48px;font-size:14px;font-weight:500;color:var(--vp-c-brand-1)}.outline[data-v-d9b155a3]{padding:8px 0;background-color:var(--vp-c-bg-soft)}.flyout-enter-active[data-v-d9b155a3]{transition:all .2s ease-out}.flyout-leave-active[data-v-d9b155a3]{transition:all .15s ease-in}.flyout-enter-from[data-v-d9b155a3],.flyout-leave-to[data-v-d9b155a3]{opacity:0;transform:translateY(-16px)}.VPLocalNav[data-v-25ccf56c]{position:sticky;top:0;left:0;z-index:var(--vp-z-index-local-nav);border-bottom:1px solid var(--vp-c-gutter);padding-top:var(--vp-layout-top-height, 0px);width:100%;background-color:var(--vp-local-nav-bg-color)}.VPLocalNav.fixed[data-v-25ccf56c]{position:fixed}@media (min-width: 960px){.VPLocalNav[data-v-25ccf56c]{top:var(--vp-nav-height)}.VPLocalNav.has-sidebar[data-v-25ccf56c]{padding-left:var(--vp-sidebar-width)}.VPLocalNav.empty[data-v-25ccf56c]{display:none}}@media (min-width: 1280px){.VPLocalNav[data-v-25ccf56c]{display:none}}@media (min-width: 1440px){.VPLocalNav.has-sidebar[data-v-25ccf56c]{padding-left:calc((100vw - var(--vp-layout-max-width)) / 2 + var(--vp-sidebar-width))}}.container[data-v-25ccf56c]{display:flex;justify-content:space-between;align-items:center}.menu[data-v-25ccf56c]{display:flex;align-items:center;padding:12px 24px 11px;line-height:24px;font-size:12px;font-weight:500;color:var(--vp-c-text-2);transition:color .5s}.menu[data-v-25ccf56c]:hover{color:var(--vp-c-text-1);transition:color .25s}@media (min-width: 768px){.menu[data-v-25ccf56c]{padding:0 32px}}@media (min-width: 960px){.menu[data-v-25ccf56c]{display:none}}.menu-icon[data-v-25ccf56c]{margin-right:8px;font-size:14px}.VPOutlineDropdown[data-v-25ccf56c]{padding:12px 24px 11px}@media (min-width: 768px){.VPOutlineDropdown[data-v-25ccf56c]{padding:12px 32px 11px}}.VPSwitch[data-v-afa34961]{position:relative;border-radius:11px;display:block;width:40px;height:22px;flex-shrink:0;border:1px solid var(--vp-input-border-color);background-color:var(--vp-input-switch-bg-color);transition:border-color .25s!important}.VPSwitch[data-v-afa34961]:hover{border-color:var(--vp-c-brand-1)}.check[data-v-afa34961]{position:absolute;top:1px;left:1px;width:18px;height:18px;border-radius:50%;background-color:var(--vp-c-neutral-inverse);box-shadow:var(--vp-shadow-1);transition:transform .25s!important}.icon[data-v-afa34961]{position:relative;display:block;width:18px;height:18px;border-radius:50%;overflow:hidden}.icon[data-v-afa34961] [class^=vpi-]{position:absolute;top:3px;left:3px;width:12px;height:12px;color:var(--vp-c-text-2)}.dark .icon[data-v-afa34961] [class^=vpi-]{color:var(--vp-c-text-1);transition:opacity .25s!important}.sun[data-v-ba5c08ea]{opacity:1}.moon[data-v-ba5c08ea],.dark .sun[data-v-ba5c08ea]{opacity:0}.dark .moon[data-v-ba5c08ea]{opacity:1}.dark .VPSwitchAppearance[data-v-ba5c08ea] .check{transform:translate(18px)}.VPNavBarAppearance[data-v-8557f7cd]{display:none}@media (min-width: 1280px){.VPNavBarAppearance[data-v-8557f7cd]{display:flex;align-items:center}}.VPMenuGroup+.VPMenuLink[data-v-95de8a01]{margin:12px -12px 0;border-top:1px solid var(--vp-c-divider);padding:12px 12px 0}.link[data-v-95de8a01]{display:block;border-radius:6px;padding:0 12px;line-height:32px;font-size:14px;font-weight:500;color:var(--vp-c-text-1);white-space:nowrap;transition:background-color .25s,color .25s}.link[data-v-95de8a01]:hover{color:var(--vp-c-brand-1);background-color:var(--vp-c-default-soft)}.link.active[data-v-95de8a01]{color:var(--vp-c-brand-1)}.VPMenuGroup[data-v-73d2e32a]{margin:12px -12px 0;border-top:1px solid var(--vp-c-divider);padding:12px 12px 0}.VPMenuGroup[data-v-73d2e32a]:first-child{margin-top:0;border-top:0;padding-top:0}.VPMenuGroup+.VPMenuGroup[data-v-73d2e32a]{margin-top:12px;border-top:1px solid var(--vp-c-divider)}.title[data-v-73d2e32a]{padding:0 12px;line-height:32px;font-size:14px;font-weight:600;color:var(--vp-c-text-2);white-space:nowrap;transition:color .25s}.VPMenu[data-v-a190a078]{border-radius:12px;padding:12px;min-width:128px;border:1px solid var(--vp-c-divider);background-color:var(--vp-c-bg-elv);box-shadow:var(--vp-shadow-3);transition:background-color .5s;max-height:calc(100vh - var(--vp-nav-height));overflow-y:auto}.VPMenu[data-v-a190a078] .group{margin:0 -12px;padding:0 12px 12px}.VPMenu[data-v-a190a078] .group+.group{border-top:1px solid var(--vp-c-divider);padding:11px 12px 12px}.VPMenu[data-v-a190a078] .group:last-child{padding-bottom:0}.VPMenu[data-v-a190a078] .group+.item{border-top:1px solid var(--vp-c-divider);padding:11px 16px 0}.VPMenu[data-v-a190a078] .item{padding:0 16px;white-space:nowrap}.VPMenu[data-v-a190a078] .label{flex-grow:1;line-height:28px;font-size:12px;font-weight:500;color:var(--vp-c-text-2);transition:color .5s}.VPMenu[data-v-a190a078] .action{padding-left:24px}.VPFlyout[data-v-b04809c3]{position:relative}.VPFlyout[data-v-b04809c3]:hover{color:var(--vp-c-brand-1);transition:color .25s}.VPFlyout:hover .text[data-v-b04809c3]{color:var(--vp-c-text-2)}.VPFlyout:hover .icon[data-v-b04809c3]{fill:var(--vp-c-text-2)}.VPFlyout.active .text[data-v-b04809c3]{color:var(--vp-c-brand-1)}.VPFlyout.active:hover .text[data-v-b04809c3]{color:var(--vp-c-brand-2)}.button[aria-expanded=false]+.menu[data-v-b04809c3]{opacity:0;visibility:hidden;transform:translateY(0)}.VPFlyout:hover .menu[data-v-b04809c3],.button[aria-expanded=true]+.menu[data-v-b04809c3]{opacity:1;visibility:visible;transform:translateY(0)}.button[data-v-b04809c3]{display:flex;align-items:center;padding:0 12px;height:var(--vp-nav-height);color:var(--vp-c-text-1);transition:color .5s}.text[data-v-b04809c3]{display:flex;align-items:center;line-height:var(--vp-nav-height);font-size:14px;font-weight:500;color:var(--vp-c-text-1);transition:color .25s}.option-icon[data-v-b04809c3]{margin-right:0;font-size:16px}.text-icon[data-v-b04809c3]{margin-left:4px;font-size:14px}.icon[data-v-b04809c3]{font-size:20px;transition:fill .25s}.menu[data-v-b04809c3]{position:absolute;top:calc(var(--vp-nav-height) / 2 + 20px);right:0;opacity:0;visibility:hidden;transition:opacity .25s,visibility .25s,transform .25s}.VPSocialLink[data-v-2de8af25]{display:flex;justify-content:center;align-items:center;width:36px;height:36px;color:var(--vp-c-text-2);transition:color .5s}.VPSocialLink[data-v-2de8af25]:hover{color:var(--vp-c-text-1);transition:color .25s}.VPSocialLink[data-v-2de8af25]>svg,.VPSocialLink[data-v-2de8af25]>[class^=vpi-social-]{width:20px;height:20px;fill:currentColor}.VPSocialLinks[data-v-3accd626]{display:flex;justify-content:center}.VPNavBarExtra[data-v-fb446541]{display:none;margin-right:-12px}@media (min-width: 768px){.VPNavBarExtra[data-v-fb446541]{display:block}}@media (min-width: 1280px){.VPNavBarExtra[data-v-fb446541]{display:none}}.trans-title[data-v-fb446541]{padding:0 24px 0 12px;line-height:32px;font-size:14px;font-weight:700;color:var(--vp-c-text-1)}.item.appearance[data-v-fb446541],.item.social-links[data-v-fb446541]{display:flex;align-items:center;padding:0 12px}.item.appearance[data-v-fb446541]{min-width:176px}.appearance-action[data-v-fb446541]{margin-right:-2px}.social-links-list[data-v-fb446541]{margin:-4px -8px}.VPNavBarHamburger[data-v-fdaa2be5]{display:flex;justify-content:center;align-items:center;width:48px;height:var(--vp-nav-height)}@media (min-width: 768px){.VPNavBarHamburger[data-v-fdaa2be5]{display:none}}.container[data-v-fdaa2be5]{position:relative;width:16px;height:14px;overflow:hidden}.VPNavBarHamburger:hover .top[data-v-fdaa2be5]{top:0;left:0;transform:translate(4px)}.VPNavBarHamburger:hover .middle[data-v-fdaa2be5]{top:6px;left:0;transform:translate(0)}.VPNavBarHamburger:hover .bottom[data-v-fdaa2be5]{top:12px;left:0;transform:translate(8px)}.VPNavBarHamburger.active .top[data-v-fdaa2be5]{top:6px;transform:translate(0) rotate(225deg)}.VPNavBarHamburger.active .middle[data-v-fdaa2be5]{top:6px;transform:translate(16px)}.VPNavBarHamburger.active .bottom[data-v-fdaa2be5]{top:6px;transform:translate(0) rotate(135deg)}.VPNavBarHamburger.active:hover .top[data-v-fdaa2be5],.VPNavBarHamburger.active:hover .middle[data-v-fdaa2be5],.VPNavBarHamburger.active:hover .bottom[data-v-fdaa2be5]{background-color:var(--vp-c-text-2);transition:top .25s,background-color .25s,transform .25s}.top[data-v-fdaa2be5],.middle[data-v-fdaa2be5],.bottom[data-v-fdaa2be5]{position:absolute;width:16px;height:2px;background-color:var(--vp-c-text-1);transition:top .25s,background-color .5s,transform .25s}.top[data-v-fdaa2be5]{top:0;left:0;transform:translate(0)}.middle[data-v-fdaa2be5]{top:6px;left:0;transform:translate(8px)}.bottom[data-v-fdaa2be5]{top:12px;left:0;transform:translate(4px)}.VPNavBarMenuLink[data-v-9e29c75b]{display:flex;align-items:center;padding:0 12px;line-height:var(--vp-nav-height);font-size:14px;font-weight:500;color:var(--vp-c-text-1);transition:color .25s}.VPNavBarMenuLink.active[data-v-9e29c75b],.VPNavBarMenuLink[data-v-9e29c75b]:hover{color:var(--vp-c-brand-1)}.VPNavBarMenu[data-v-b3f7df5b]{display:none}@media (min-width: 768px){.VPNavBarMenu[data-v-b3f7df5b]{display:flex}}/*! @docsearch/css 3.6.2 | MIT License | © Algolia, Inc. and contributors | https://docsearch.algolia.com */:root{--docsearch-primary-color:#5468ff;--docsearch-text-color:#1c1e21;--docsearch-spacing:12px;--docsearch-icon-stroke-width:1.4;--docsearch-highlight-color:var(--docsearch-primary-color);--docsearch-muted-color:#969faf;--docsearch-container-background:rgba(101,108,133,.8);--docsearch-logo-color:#5468ff;--docsearch-modal-width:560px;--docsearch-modal-height:600px;--docsearch-modal-background:#f5f6f7;--docsearch-modal-shadow:inset 1px 1px 0 0 hsla(0,0%,100%,.5),0 3px 8px 0 #555a64;--docsearch-searchbox-height:56px;--docsearch-searchbox-background:#ebedf0;--docsearch-searchbox-focus-background:#fff;--docsearch-searchbox-shadow:inset 0 0 0 2px var(--docsearch-primary-color);--docsearch-hit-height:56px;--docsearch-hit-color:#444950;--docsearch-hit-active-color:#fff;--docsearch-hit-background:#fff;--docsearch-hit-shadow:0 1px 3px 0 #d4d9e1;--docsearch-key-gradient:linear-gradient(-225deg,#d5dbe4,#f8f8f8);--docsearch-key-shadow:inset 0 -2px 0 0 #cdcde6,inset 0 0 1px 1px #fff,0 1px 2px 1px rgba(30,35,90,.4);--docsearch-key-pressed-shadow:inset 0 -2px 0 0 #cdcde6,inset 0 0 1px 1px #fff,0 1px 1px 0 rgba(30,35,90,.4);--docsearch-footer-height:44px;--docsearch-footer-background:#fff;--docsearch-footer-shadow:0 -1px 0 0 #e0e3e8,0 -3px 6px 0 rgba(69,98,155,.12)}html[data-theme=dark]{--docsearch-text-color:#f5f6f7;--docsearch-container-background:rgba(9,10,17,.8);--docsearch-modal-background:#15172a;--docsearch-modal-shadow:inset 1px 1px 0 0 #2c2e40,0 3px 8px 0 #000309;--docsearch-searchbox-background:#090a11;--docsearch-searchbox-focus-background:#000;--docsearch-hit-color:#bec3c9;--docsearch-hit-shadow:none;--docsearch-hit-background:#090a11;--docsearch-key-gradient:linear-gradient(-26.5deg,#565872,#31355b);--docsearch-key-shadow:inset 0 -2px 0 0 #282d55,inset 0 0 1px 1px #51577d,0 2px 2px 0 rgba(3,4,9,.3);--docsearch-key-pressed-shadow:inset 0 -2px 0 0 #282d55,inset 0 0 1px 1px #51577d,0 1px 1px 0 rgba(3,4,9,.30196078431372547);--docsearch-footer-background:#1e2136;--docsearch-footer-shadow:inset 0 1px 0 0 rgba(73,76,106,.5),0 -4px 8px 0 rgba(0,0,0,.2);--docsearch-logo-color:#fff;--docsearch-muted-color:#7f8497}.DocSearch-Button{align-items:center;background:var(--docsearch-searchbox-background);border:0;border-radius:40px;color:var(--docsearch-muted-color);cursor:pointer;display:flex;font-weight:500;height:36px;justify-content:space-between;margin:0 0 0 16px;padding:0 8px;-webkit-user-select:none;user-select:none}.DocSearch-Button:active,.DocSearch-Button:focus,.DocSearch-Button:hover{background:var(--docsearch-searchbox-focus-background);box-shadow:var(--docsearch-searchbox-shadow);color:var(--docsearch-text-color);outline:none}.DocSearch-Button-Container{align-items:center;display:flex}.DocSearch-Search-Icon{stroke-width:1.6}.DocSearch-Button .DocSearch-Search-Icon{color:var(--docsearch-text-color)}.DocSearch-Button-Placeholder{font-size:1rem;padding:0 12px 0 6px}.DocSearch-Button-Keys{display:flex;min-width:calc(40px + .8em)}.DocSearch-Button-Key{align-items:center;background:var(--docsearch-key-gradient);border-radius:3px;box-shadow:var(--docsearch-key-shadow);color:var(--docsearch-muted-color);display:flex;height:18px;justify-content:center;margin-right:.4em;position:relative;padding:0 0 2px;border:0;top:-1px;width:20px}.DocSearch-Button-Key--pressed{transform:translate3d(0,1px,0);box-shadow:var(--docsearch-key-pressed-shadow)}@media (max-width:768px){.DocSearch-Button-Keys,.DocSearch-Button-Placeholder{display:none}}.DocSearch--active{overflow:hidden!important}.DocSearch-Container,.DocSearch-Container *{box-sizing:border-box}.DocSearch-Container{background-color:var(--docsearch-container-background);height:100vh;left:0;position:fixed;top:0;width:100vw;z-index:200}.DocSearch-Container a{text-decoration:none}.DocSearch-Link{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;color:var(--docsearch-highlight-color);cursor:pointer;font:inherit;margin:0;padding:0}.DocSearch-Modal{background:var(--docsearch-modal-background);border-radius:6px;box-shadow:var(--docsearch-modal-shadow);flex-direction:column;margin:60px auto auto;max-width:var(--docsearch-modal-width);position:relative}.DocSearch-SearchBar{display:flex;padding:var(--docsearch-spacing) var(--docsearch-spacing) 0}.DocSearch-Form{align-items:center;background:var(--docsearch-searchbox-focus-background);border-radius:4px;box-shadow:var(--docsearch-searchbox-shadow);display:flex;height:var(--docsearch-searchbox-height);margin:0;padding:0 var(--docsearch-spacing);position:relative;width:100%}.DocSearch-Input{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:0;color:var(--docsearch-text-color);flex:1;font:inherit;font-size:1.2em;height:100%;outline:none;padding:0 0 0 8px;width:80%}.DocSearch-Input::placeholder{color:var(--docsearch-muted-color);opacity:1}.DocSearch-Input::-webkit-search-cancel-button,.DocSearch-Input::-webkit-search-decoration,.DocSearch-Input::-webkit-search-results-button,.DocSearch-Input::-webkit-search-results-decoration{display:none}.DocSearch-LoadingIndicator,.DocSearch-MagnifierLabel,.DocSearch-Reset{margin:0;padding:0}.DocSearch-MagnifierLabel,.DocSearch-Reset{align-items:center;color:var(--docsearch-highlight-color);display:flex;justify-content:center}.DocSearch-Container--Stalled .DocSearch-MagnifierLabel,.DocSearch-LoadingIndicator{display:none}.DocSearch-Container--Stalled .DocSearch-LoadingIndicator{align-items:center;color:var(--docsearch-highlight-color);display:flex;justify-content:center}@media screen and (prefers-reduced-motion:reduce){.DocSearch-Reset{animation:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;border-radius:50%;color:var(--docsearch-icon-color);cursor:pointer;right:0;stroke-width:var(--docsearch-icon-stroke-width)}}.DocSearch-Reset{animation:fade-in .1s ease-in forwards;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;border-radius:50%;color:var(--docsearch-icon-color);cursor:pointer;padding:2px;right:0;stroke-width:var(--docsearch-icon-stroke-width)}.DocSearch-Reset[hidden]{display:none}.DocSearch-Reset:hover{color:var(--docsearch-highlight-color)}.DocSearch-LoadingIndicator svg,.DocSearch-MagnifierLabel svg{height:24px;width:24px}.DocSearch-Cancel{display:none}.DocSearch-Dropdown{max-height:calc(var(--docsearch-modal-height) - var(--docsearch-searchbox-height) - var(--docsearch-spacing) - var(--docsearch-footer-height));min-height:var(--docsearch-spacing);overflow-y:auto;overflow-y:overlay;padding:0 var(--docsearch-spacing);scrollbar-color:var(--docsearch-muted-color) var(--docsearch-modal-background);scrollbar-width:thin}.DocSearch-Dropdown::-webkit-scrollbar{width:12px}.DocSearch-Dropdown::-webkit-scrollbar-track{background:transparent}.DocSearch-Dropdown::-webkit-scrollbar-thumb{background-color:var(--docsearch-muted-color);border:3px solid var(--docsearch-modal-background);border-radius:20px}.DocSearch-Dropdown ul{list-style:none;margin:0;padding:0}.DocSearch-Label{font-size:.75em;line-height:1.6em}.DocSearch-Help,.DocSearch-Label{color:var(--docsearch-muted-color)}.DocSearch-Help{font-size:.9em;margin:0;-webkit-user-select:none;user-select:none}.DocSearch-Title{font-size:1.2em}.DocSearch-Logo a{display:flex}.DocSearch-Logo svg{color:var(--docsearch-logo-color);margin-left:8px}.DocSearch-Hits:last-of-type{margin-bottom:24px}.DocSearch-Hits mark{background:none;color:var(--docsearch-highlight-color)}.DocSearch-HitsFooter{color:var(--docsearch-muted-color);display:flex;font-size:.85em;justify-content:center;margin-bottom:var(--docsearch-spacing);padding:var(--docsearch-spacing)}.DocSearch-HitsFooter a{border-bottom:1px solid;color:inherit}.DocSearch-Hit{border-radius:4px;display:flex;padding-bottom:4px;position:relative}@media screen and (prefers-reduced-motion:reduce){.DocSearch-Hit--deleting{transition:none}}.DocSearch-Hit--deleting{opacity:0;transition:all .25s linear}@media screen and (prefers-reduced-motion:reduce){.DocSearch-Hit--favoriting{transition:none}}.DocSearch-Hit--favoriting{transform:scale(0);transform-origin:top center;transition:all .25s linear;transition-delay:.25s}.DocSearch-Hit a{background:var(--docsearch-hit-background);border-radius:4px;box-shadow:var(--docsearch-hit-shadow);display:block;padding-left:var(--docsearch-spacing);width:100%}.DocSearch-Hit-source{background:var(--docsearch-modal-background);color:var(--docsearch-highlight-color);font-size:.85em;font-weight:600;line-height:32px;margin:0 -4px;padding:8px 4px 0;position:sticky;top:0;z-index:10}.DocSearch-Hit-Tree{color:var(--docsearch-muted-color);height:var(--docsearch-hit-height);opacity:.5;stroke-width:var(--docsearch-icon-stroke-width);width:24px}.DocSearch-Hit[aria-selected=true] a{background-color:var(--docsearch-highlight-color)}.DocSearch-Hit[aria-selected=true] mark{text-decoration:underline}.DocSearch-Hit-Container{align-items:center;color:var(--docsearch-hit-color);display:flex;flex-direction:row;height:var(--docsearch-hit-height);padding:0 var(--docsearch-spacing) 0 0}.DocSearch-Hit-icon{height:20px;width:20px}.DocSearch-Hit-action,.DocSearch-Hit-icon{color:var(--docsearch-muted-color);stroke-width:var(--docsearch-icon-stroke-width)}.DocSearch-Hit-action{align-items:center;display:flex;height:22px;width:22px}.DocSearch-Hit-action svg{display:block;height:18px;width:18px}.DocSearch-Hit-action+.DocSearch-Hit-action{margin-left:6px}.DocSearch-Hit-action-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;border-radius:50%;color:inherit;cursor:pointer;padding:2px}svg.DocSearch-Hit-Select-Icon{display:none}.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-Select-Icon{display:block}.DocSearch-Hit-action-button:focus,.DocSearch-Hit-action-button:hover{background:#0003;transition:background-color .1s ease-in}@media screen and (prefers-reduced-motion:reduce){.DocSearch-Hit-action-button:focus,.DocSearch-Hit-action-button:hover{transition:none}}.DocSearch-Hit-action-button:focus path,.DocSearch-Hit-action-button:hover path{fill:#fff}.DocSearch-Hit-content-wrapper{display:flex;flex:1 1 auto;flex-direction:column;font-weight:500;justify-content:center;line-height:1.2em;margin:0 8px;overflow-x:hidden;position:relative;text-overflow:ellipsis;white-space:nowrap;width:80%}.DocSearch-Hit-title{font-size:.9em}.DocSearch-Hit-path{color:var(--docsearch-muted-color);font-size:.75em}.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-action,.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-icon,.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-path,.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-text,.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-title,.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-Tree,.DocSearch-Hit[aria-selected=true] mark{color:var(--docsearch-hit-active-color)!important}@media screen and (prefers-reduced-motion:reduce){.DocSearch-Hit-action-button:focus,.DocSearch-Hit-action-button:hover{background:#0003;transition:none}}.DocSearch-ErrorScreen,.DocSearch-NoResults,.DocSearch-StartScreen{font-size:.9em;margin:0 auto;padding:36px 0;text-align:center;width:80%}.DocSearch-Screen-Icon{color:var(--docsearch-muted-color);padding-bottom:12px}.DocSearch-NoResults-Prefill-List{display:inline-block;padding-bottom:24px;text-align:left}.DocSearch-NoResults-Prefill-List ul{display:inline-block;padding:8px 0 0}.DocSearch-NoResults-Prefill-List li{list-style-position:inside;list-style-type:"» "}.DocSearch-Prefill{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;border-radius:1em;color:var(--docsearch-highlight-color);cursor:pointer;display:inline-block;font-size:1em;font-weight:700;padding:0}.DocSearch-Prefill:focus,.DocSearch-Prefill:hover{outline:none;text-decoration:underline}.DocSearch-Footer{align-items:center;background:var(--docsearch-footer-background);border-radius:0 0 8px 8px;box-shadow:var(--docsearch-footer-shadow);display:flex;flex-direction:row-reverse;flex-shrink:0;height:var(--docsearch-footer-height);justify-content:space-between;padding:0 var(--docsearch-spacing);position:relative;-webkit-user-select:none;user-select:none;width:100%;z-index:300}.DocSearch-Commands{color:var(--docsearch-muted-color);display:flex;list-style:none;margin:0;padding:0}.DocSearch-Commands li{align-items:center;display:flex}.DocSearch-Commands li:not(:last-of-type){margin-right:.8em}.DocSearch-Commands-Key{align-items:center;background:var(--docsearch-key-gradient);border-radius:2px;box-shadow:var(--docsearch-key-shadow);display:flex;height:18px;justify-content:center;margin-right:.4em;padding:0 0 1px;color:var(--docsearch-muted-color);border:0;width:20px}.DocSearch-VisuallyHiddenForAccessibility{clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}@media (max-width:768px){:root{--docsearch-spacing:10px;--docsearch-footer-height:40px}.DocSearch-Dropdown{height:100%}.DocSearch-Container{height:100vh;height:-webkit-fill-available;height:calc(var(--docsearch-vh, 1vh)*100);position:absolute}.DocSearch-Footer{border-radius:0;bottom:0;position:absolute}.DocSearch-Hit-content-wrapper{display:flex;position:relative;width:80%}.DocSearch-Modal{border-radius:0;box-shadow:none;height:100vh;height:-webkit-fill-available;height:calc(var(--docsearch-vh, 1vh)*100);margin:0;max-width:100%;width:100%}.DocSearch-Dropdown{max-height:calc(var(--docsearch-vh, 1vh)*100 - var(--docsearch-searchbox-height) - var(--docsearch-spacing) - var(--docsearch-footer-height))}.DocSearch-Cancel{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;color:var(--docsearch-highlight-color);cursor:pointer;display:inline-block;flex:none;font:inherit;font-size:1em;font-weight:500;margin-left:var(--docsearch-spacing);outline:none;overflow:hidden;padding:0;-webkit-user-select:none;user-select:none;white-space:nowrap}.DocSearch-Commands,.DocSearch-Hit-Tree{display:none}}@keyframes fade-in{0%{opacity:0}to{opacity:1}}[class*=DocSearch]{--docsearch-primary-color: var(--vp-c-brand-1);--docsearch-highlight-color: var(--docsearch-primary-color);--docsearch-text-color: var(--vp-c-text-1);--docsearch-muted-color: var(--vp-c-text-2);--docsearch-searchbox-shadow: none;--docsearch-searchbox-background: transparent;--docsearch-searchbox-focus-background: transparent;--docsearch-key-gradient: transparent;--docsearch-key-shadow: none;--docsearch-modal-background: var(--vp-c-bg-soft);--docsearch-footer-background: var(--vp-c-bg)}.dark [class*=DocSearch]{--docsearch-modal-shadow: none;--docsearch-footer-shadow: none;--docsearch-logo-color: var(--vp-c-text-2);--docsearch-hit-background: var(--vp-c-default-soft);--docsearch-hit-color: var(--vp-c-text-2);--docsearch-hit-shadow: none}.DocSearch-Button{display:flex;justify-content:center;align-items:center;margin:0;padding:0;width:48px;height:55px;background:transparent;transition:border-color .25s}.DocSearch-Button:hover{background:transparent}.DocSearch-Button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}.DocSearch-Button-Key--pressed{transform:none;box-shadow:none}.DocSearch-Button:focus:not(:focus-visible){outline:none!important}@media (min-width: 768px){.DocSearch-Button{justify-content:flex-start;border:1px solid transparent;border-radius:8px;padding:0 10px 0 12px;width:100%;height:40px;background-color:var(--vp-c-bg-alt)}.DocSearch-Button:hover{border-color:var(--vp-c-brand-1);background:var(--vp-c-bg-alt)}}.DocSearch-Button .DocSearch-Button-Container{display:flex;align-items:center}.DocSearch-Button .DocSearch-Search-Icon{position:relative;width:16px;height:16px;color:var(--vp-c-text-1);fill:currentColor;transition:color .5s}.DocSearch-Button:hover .DocSearch-Search-Icon{color:var(--vp-c-text-1)}@media (min-width: 768px){.DocSearch-Button .DocSearch-Search-Icon{top:1px;margin-right:8px;width:14px;height:14px;color:var(--vp-c-text-2)}}.DocSearch-Button .DocSearch-Button-Placeholder{display:none;margin-top:2px;padding:0 16px 0 0;font-size:13px;font-weight:500;color:var(--vp-c-text-2);transition:color .5s}.DocSearch-Button:hover .DocSearch-Button-Placeholder{color:var(--vp-c-text-1)}@media (min-width: 768px){.DocSearch-Button .DocSearch-Button-Placeholder{display:inline-block}}.DocSearch-Button .DocSearch-Button-Keys{direction:ltr;display:none;min-width:auto}@media (min-width: 768px){.DocSearch-Button .DocSearch-Button-Keys{display:flex;align-items:center}}.DocSearch-Button .DocSearch-Button-Key{display:block;margin:2px 0 0;border:1px solid var(--vp-c-divider);border-right:none;border-radius:4px 0 0 4px;padding-left:6px;min-width:0;width:auto;height:22px;line-height:22px;font-family:var(--vp-font-family-base);font-size:12px;font-weight:500;transition:color .5s,border-color .5s}.DocSearch-Button .DocSearch-Button-Key+.DocSearch-Button-Key{border-right:1px solid var(--vp-c-divider);border-left:none;border-radius:0 4px 4px 0;padding-left:2px;padding-right:6px}.DocSearch-Button .DocSearch-Button-Key:first-child{font-size:0!important}.DocSearch-Button .DocSearch-Button-Key:first-child:after{content:"Ctrl";font-size:12px;letter-spacing:normal;color:var(--docsearch-muted-color)}.mac .DocSearch-Button .DocSearch-Button-Key:first-child:after{content:"⌘"}.DocSearch-Button .DocSearch-Button-Key:first-child>*{display:none}.DocSearch-Search-Icon{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' stroke-width='1.6' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' d='m14.386 14.386 4.088 4.088-4.088-4.088A7.533 7.533 0 1 1 3.733 3.733a7.533 7.533 0 0 1 10.653 10.653z'/%3E%3C/svg%3E")}.VPNavBarSearch{display:flex;align-items:center}@media (min-width: 768px){.VPNavBarSearch{flex-grow:1;padding-left:24px}}@media (min-width: 960px){.VPNavBarSearch{padding-left:32px}}.dark .DocSearch-Footer{border-top:1px solid var(--vp-c-divider)}.DocSearch-Form{border:1px solid var(--vp-c-brand-1);background-color:var(--vp-c-white)}.dark .DocSearch-Form{background-color:var(--vp-c-default-soft)}.DocSearch-Screen-Icon>svg{margin:auto}.VPNavBarSocialLinks[data-v-c69cde25]{display:none}@media (min-width: 1280px){.VPNavBarSocialLinks[data-v-c69cde25]{display:flex;align-items:center}}.title[data-v-1f5af21f]{display:flex;align-items:center;border-bottom:1px solid transparent;width:100%;height:var(--vp-nav-height);font-size:16px;font-weight:600;color:var(--vp-c-text-1);transition:opacity .25s}@media (min-width: 960px){.title[data-v-1f5af21f]{flex-shrink:0}.VPNavBarTitle.has-sidebar .title[data-v-1f5af21f]{border-bottom-color:var(--vp-c-divider)}}[data-v-1f5af21f] .logo{margin-right:8px;height:var(--vp-nav-logo-height)}.VPNavBarTranslations[data-v-481b3dac]{display:none}@media (min-width: 1280px){.VPNavBarTranslations[data-v-481b3dac]{display:flex;align-items:center}}.title[data-v-481b3dac]{padding:0 24px 0 12px;line-height:32px;font-size:14px;font-weight:700;color:var(--vp-c-text-1)}.VPNavBar[data-v-ae4b7a2d]{position:relative;height:var(--vp-nav-height);pointer-events:none;white-space:nowrap;transition:background-color .25s}.VPNavBar.screen-open[data-v-ae4b7a2d]{transition:none;background-color:var(--vp-nav-bg-color);border-bottom:1px solid var(--vp-c-divider)}.VPNavBar[data-v-ae4b7a2d]:not(.home){background-color:var(--vp-nav-bg-color)}@media (min-width: 960px){.VPNavBar[data-v-ae4b7a2d]:not(.home){background-color:transparent}.VPNavBar[data-v-ae4b7a2d]:not(.has-sidebar):not(.home.top){background-color:var(--vp-nav-bg-color)}}.wrapper[data-v-ae4b7a2d]{padding:0 8px 0 24px}@media (min-width: 768px){.wrapper[data-v-ae4b7a2d]{padding:0 32px}}@media (min-width: 960px){.VPNavBar.has-sidebar .wrapper[data-v-ae4b7a2d]{padding:0}}.container[data-v-ae4b7a2d]{display:flex;justify-content:space-between;margin:0 auto;max-width:calc(var(--vp-layout-max-width) - 64px);height:var(--vp-nav-height);pointer-events:none}.container>.title[data-v-ae4b7a2d],.container>.content[data-v-ae4b7a2d]{pointer-events:none}.container[data-v-ae4b7a2d] *{pointer-events:auto}@media (min-width: 960px){.VPNavBar.has-sidebar .container[data-v-ae4b7a2d]{max-width:100%}}.title[data-v-ae4b7a2d]{flex-shrink:0;height:calc(var(--vp-nav-height) - 1px);transition:background-color .5s}@media (min-width: 960px){.VPNavBar.has-sidebar .title[data-v-ae4b7a2d]{position:absolute;top:0;left:0;z-index:2;padding:0 32px;width:var(--vp-sidebar-width);height:var(--vp-nav-height);background-color:transparent}}@media (min-width: 1440px){.VPNavBar.has-sidebar .title[data-v-ae4b7a2d]{padding-left:max(32px,calc((100% - (var(--vp-layout-max-width) - 64px)) / 2));width:calc((100% - (var(--vp-layout-max-width) - 64px)) / 2 + var(--vp-sidebar-width) - 32px)}}.content[data-v-ae4b7a2d]{flex-grow:1}@media (min-width: 960px){.VPNavBar.has-sidebar .content[data-v-ae4b7a2d]{position:relative;z-index:1;padding-right:32px;padding-left:var(--vp-sidebar-width)}}@media (min-width: 1440px){.VPNavBar.has-sidebar .content[data-v-ae4b7a2d]{padding-right:calc((100vw - var(--vp-layout-max-width)) / 2 + 32px);padding-left:calc((100vw - var(--vp-layout-max-width)) / 2 + var(--vp-sidebar-width))}}.content-body[data-v-ae4b7a2d]{display:flex;justify-content:flex-end;align-items:center;height:var(--vp-nav-height);transition:background-color .5s}@media (min-width: 960px){.VPNavBar:not(.home.top) .content-body[data-v-ae4b7a2d]{position:relative;background-color:var(--vp-nav-bg-color)}.VPNavBar:not(.has-sidebar):not(.home.top) .content-body[data-v-ae4b7a2d]{background-color:transparent}}@media (max-width: 767px){.content-body[data-v-ae4b7a2d]{column-gap:.5rem}}.menu+.translations[data-v-ae4b7a2d]:before,.menu+.appearance[data-v-ae4b7a2d]:before,.menu+.social-links[data-v-ae4b7a2d]:before,.translations+.appearance[data-v-ae4b7a2d]:before,.appearance+.social-links[data-v-ae4b7a2d]:before{margin-right:8px;margin-left:8px;width:1px;height:24px;background-color:var(--vp-c-divider);content:""}.menu+.appearance[data-v-ae4b7a2d]:before,.translations+.appearance[data-v-ae4b7a2d]:before{margin-right:16px}.appearance+.social-links[data-v-ae4b7a2d]:before{margin-left:16px}.social-links[data-v-ae4b7a2d]{margin-right:-8px}.divider[data-v-ae4b7a2d]{width:100%;height:1px}@media (min-width: 960px){.VPNavBar.has-sidebar .divider[data-v-ae4b7a2d]{padding-left:var(--vp-sidebar-width)}}@media (min-width: 1440px){.VPNavBar.has-sidebar .divider[data-v-ae4b7a2d]{padding-left:calc((100vw - var(--vp-layout-max-width)) / 2 + var(--vp-sidebar-width))}}.divider-line[data-v-ae4b7a2d]{width:100%;height:1px;transition:background-color .5s}.VPNavBar:not(.home) .divider-line[data-v-ae4b7a2d]{background-color:var(--vp-c-gutter)}@media (min-width: 960px){.VPNavBar:not(.home.top) .divider-line[data-v-ae4b7a2d]{background-color:var(--vp-c-gutter)}.VPNavBar:not(.has-sidebar):not(.home.top) .divider[data-v-ae4b7a2d]{background-color:var(--vp-c-gutter)}}.VPNavScreenAppearance[data-v-f8a3b135]{display:flex;justify-content:space-between;align-items:center;border-radius:8px;padding:12px 14px 12px 16px;background-color:var(--vp-c-bg-soft)}.text[data-v-f8a3b135]{line-height:24px;font-size:12px;font-weight:500;color:var(--vp-c-text-2)}.VPNavScreenMenuLink[data-v-0cc62b07]{display:block;border-bottom:1px solid var(--vp-c-divider);padding:12px 0 11px;line-height:24px;font-size:14px;font-weight:500;color:var(--vp-c-text-1);transition:border-color .25s,color .25s}.VPNavScreenMenuLink[data-v-0cc62b07]:hover{color:var(--vp-c-brand-1)}.VPNavScreenMenuGroupLink[data-v-7271ab5e]{display:block;margin-left:12px;line-height:32px;font-size:14px;font-weight:400;color:var(--vp-c-text-1);transition:color .25s}.VPNavScreenMenuGroupLink[data-v-7271ab5e]:hover{color:var(--vp-c-brand-1)}.VPNavScreenMenuGroupSection[data-v-597571e3]{display:block}.title[data-v-597571e3]{line-height:32px;font-size:13px;font-weight:700;color:var(--vp-c-text-2);transition:color .25s}.VPNavScreenMenuGroup[data-v-3ea0c66d]{border-bottom:1px solid var(--vp-c-divider);height:48px;overflow:hidden;transition:border-color .5s}.VPNavScreenMenuGroup .items[data-v-3ea0c66d]{visibility:hidden}.VPNavScreenMenuGroup.open .items[data-v-3ea0c66d]{visibility:visible}.VPNavScreenMenuGroup.open[data-v-3ea0c66d]{padding-bottom:10px;height:auto}.VPNavScreenMenuGroup.open .button[data-v-3ea0c66d]{padding-bottom:6px;color:var(--vp-c-brand-1)}.VPNavScreenMenuGroup.open .button-icon[data-v-3ea0c66d]{transform:rotate(45deg)}.button[data-v-3ea0c66d]{display:flex;justify-content:space-between;align-items:center;padding:12px 4px 11px 0;width:100%;line-height:24px;font-size:14px;font-weight:500;color:var(--vp-c-text-1);transition:color .25s}.button[data-v-3ea0c66d]:hover{color:var(--vp-c-brand-1)}.button-icon[data-v-3ea0c66d]{transition:transform .25s}.group[data-v-3ea0c66d]:first-child{padding-top:0}.group+.group[data-v-3ea0c66d],.group+.item[data-v-3ea0c66d]{padding-top:4px}.VPNavScreenTranslations[data-v-5725d81a]{height:24px;overflow:hidden}.VPNavScreenTranslations.open[data-v-5725d81a]{height:auto}.title[data-v-5725d81a]{display:flex;align-items:center;font-size:14px;font-weight:500;color:var(--vp-c-text-1)}.icon[data-v-5725d81a]{font-size:16px}.icon.lang[data-v-5725d81a]{margin-right:8px}.icon.chevron[data-v-5725d81a]{margin-left:4px}.list[data-v-5725d81a]{padding:4px 0 0 24px}.link[data-v-5725d81a]{line-height:32px;font-size:13px;color:var(--vp-c-text-1)}.VPNavScreen[data-v-9fc6ed2b]{position:fixed;top:calc(var(--vp-nav-height) + var(--vp-layout-top-height, 0px));right:0;bottom:0;left:0;padding:0 32px;width:100%;background-color:var(--vp-nav-screen-bg-color);overflow-y:auto;transition:background-color .25s;pointer-events:auto}.VPNavScreen.fade-enter-active[data-v-9fc6ed2b],.VPNavScreen.fade-leave-active[data-v-9fc6ed2b]{transition:opacity .25s}.VPNavScreen.fade-enter-active .container[data-v-9fc6ed2b],.VPNavScreen.fade-leave-active .container[data-v-9fc6ed2b]{transition:transform .25s ease}.VPNavScreen.fade-enter-from[data-v-9fc6ed2b],.VPNavScreen.fade-leave-to[data-v-9fc6ed2b]{opacity:0}.VPNavScreen.fade-enter-from .container[data-v-9fc6ed2b],.VPNavScreen.fade-leave-to .container[data-v-9fc6ed2b]{transform:translateY(-8px)}@media (min-width: 768px){.VPNavScreen[data-v-9fc6ed2b]{display:none}}.container[data-v-9fc6ed2b]{margin:0 auto;padding:24px 0 96px;max-width:288px}.menu+.translations[data-v-9fc6ed2b],.menu+.appearance[data-v-9fc6ed2b],.translations+.appearance[data-v-9fc6ed2b]{margin-top:24px}.menu+.social-links[data-v-9fc6ed2b]{margin-top:16px}.appearance+.social-links[data-v-9fc6ed2b]{margin-top:16px}.VPNav[data-v-11c1b2ae]{position:relative;top:var(--vp-layout-top-height, 0px);left:0;z-index:var(--vp-z-index-nav);width:100%;pointer-events:none;transition:background-color .5s}@media (min-width: 960px){.VPNav[data-v-11c1b2ae]{position:fixed}}.VPSidebarItem.level-0[data-v-3643370d]{padding-bottom:24px}.VPSidebarItem.collapsed.level-0[data-v-3643370d]{padding-bottom:10px}.item[data-v-3643370d]{position:relative;display:flex;width:100%}.VPSidebarItem.collapsible>.item[data-v-3643370d]{cursor:pointer}.indicator[data-v-3643370d]{position:absolute;top:6px;bottom:6px;left:-17px;width:2px;border-radius:2px;transition:background-color .25s}.VPSidebarItem.level-2.is-active>.item>.indicator[data-v-3643370d],.VPSidebarItem.level-3.is-active>.item>.indicator[data-v-3643370d],.VPSidebarItem.level-4.is-active>.item>.indicator[data-v-3643370d],.VPSidebarItem.level-5.is-active>.item>.indicator[data-v-3643370d]{background-color:var(--vp-c-brand-1)}.link[data-v-3643370d]{display:flex;align-items:center;flex-grow:1}.text[data-v-3643370d]{flex-grow:1;padding:4px 0;line-height:24px;font-size:14px;transition:color .25s}.VPSidebarItem.level-0 .text[data-v-3643370d]{font-weight:700;color:var(--vp-c-text-1)}.VPSidebarItem.level-1 .text[data-v-3643370d],.VPSidebarItem.level-2 .text[data-v-3643370d],.VPSidebarItem.level-3 .text[data-v-3643370d],.VPSidebarItem.level-4 .text[data-v-3643370d],.VPSidebarItem.level-5 .text[data-v-3643370d]{font-weight:500;color:var(--vp-c-text-2)}.VPSidebarItem.level-0.is-link>.item>.link:hover .text[data-v-3643370d],.VPSidebarItem.level-1.is-link>.item>.link:hover .text[data-v-3643370d],.VPSidebarItem.level-2.is-link>.item>.link:hover .text[data-v-3643370d],.VPSidebarItem.level-3.is-link>.item>.link:hover .text[data-v-3643370d],.VPSidebarItem.level-4.is-link>.item>.link:hover .text[data-v-3643370d],.VPSidebarItem.level-5.is-link>.item>.link:hover .text[data-v-3643370d]{color:var(--vp-c-brand-1)}.VPSidebarItem.level-0.has-active>.item>.text[data-v-3643370d],.VPSidebarItem.level-1.has-active>.item>.text[data-v-3643370d],.VPSidebarItem.level-2.has-active>.item>.text[data-v-3643370d],.VPSidebarItem.level-3.has-active>.item>.text[data-v-3643370d],.VPSidebarItem.level-4.has-active>.item>.text[data-v-3643370d],.VPSidebarItem.level-5.has-active>.item>.text[data-v-3643370d],.VPSidebarItem.level-0.has-active>.item>.link>.text[data-v-3643370d],.VPSidebarItem.level-1.has-active>.item>.link>.text[data-v-3643370d],.VPSidebarItem.level-2.has-active>.item>.link>.text[data-v-3643370d],.VPSidebarItem.level-3.has-active>.item>.link>.text[data-v-3643370d],.VPSidebarItem.level-4.has-active>.item>.link>.text[data-v-3643370d],.VPSidebarItem.level-5.has-active>.item>.link>.text[data-v-3643370d]{color:var(--vp-c-text-1)}.VPSidebarItem.level-0.is-active>.item .link>.text[data-v-3643370d],.VPSidebarItem.level-1.is-active>.item .link>.text[data-v-3643370d],.VPSidebarItem.level-2.is-active>.item .link>.text[data-v-3643370d],.VPSidebarItem.level-3.is-active>.item .link>.text[data-v-3643370d],.VPSidebarItem.level-4.is-active>.item .link>.text[data-v-3643370d],.VPSidebarItem.level-5.is-active>.item .link>.text[data-v-3643370d]{color:var(--vp-c-brand-1)}.caret[data-v-3643370d]{display:flex;justify-content:center;align-items:center;margin-right:-7px;width:32px;height:32px;color:var(--vp-c-text-3);cursor:pointer;transition:color .25s;flex-shrink:0}.item:hover .caret[data-v-3643370d]{color:var(--vp-c-text-2)}.item:hover .caret[data-v-3643370d]:hover{color:var(--vp-c-text-1)}.caret-icon[data-v-3643370d]{font-size:18px;transform:rotate(90deg);transition:transform .25s}.VPSidebarItem.collapsed .caret-icon[data-v-3643370d]{transform:rotate(0)}.VPSidebarItem.level-1 .items[data-v-3643370d],.VPSidebarItem.level-2 .items[data-v-3643370d],.VPSidebarItem.level-3 .items[data-v-3643370d],.VPSidebarItem.level-4 .items[data-v-3643370d],.VPSidebarItem.level-5 .items[data-v-3643370d]{border-left:1px solid var(--vp-c-divider);padding-left:16px}.VPSidebarItem.collapsed .items[data-v-3643370d]{display:none}.no-transition[data-v-4b065ade] .caret-icon{transition:none}.group+.group[data-v-4b065ade]{border-top:1px solid var(--vp-c-divider);padding-top:10px}@media (min-width: 960px){.group[data-v-4b065ade]{padding-top:10px;width:calc(var(--vp-sidebar-width) - 64px)}}.VPSidebar[data-v-0b3a1f6f]{position:fixed;top:var(--vp-layout-top-height, 0px);bottom:0;left:0;z-index:var(--vp-z-index-sidebar);padding:32px 32px 96px;width:calc(100vw - 64px);max-width:320px;background-color:var(--vp-sidebar-bg-color);opacity:0;box-shadow:var(--vp-c-shadow-3);overflow-x:hidden;overflow-y:auto;transform:translate(-100%);transition:opacity .5s,transform .25s ease;overscroll-behavior:contain}.VPSidebar.open[data-v-0b3a1f6f]{opacity:1;visibility:visible;transform:translate(0);transition:opacity .25s,transform .5s cubic-bezier(.19,1,.22,1)}.dark .VPSidebar[data-v-0b3a1f6f]{box-shadow:var(--vp-shadow-1)}@media (min-width: 960px){.VPSidebar[data-v-0b3a1f6f]{padding-top:var(--vp-nav-height);width:var(--vp-sidebar-width);max-width:100%;background-color:var(--vp-sidebar-bg-color);opacity:1;visibility:visible;box-shadow:none;transform:translate(0)}}@media (min-width: 1440px){.VPSidebar[data-v-0b3a1f6f]{padding-left:max(32px,calc((100% - (var(--vp-layout-max-width) - 64px)) / 2));width:calc((100% - (var(--vp-layout-max-width) - 64px)) / 2 + var(--vp-sidebar-width) - 32px)}}@media (min-width: 960px){.curtain[data-v-0b3a1f6f]{position:sticky;top:-64px;left:0;z-index:1;margin-top:calc(var(--vp-nav-height) * -1);margin-right:-32px;margin-left:-32px;height:var(--vp-nav-height);background-color:var(--vp-sidebar-bg-color)}}.nav[data-v-0b3a1f6f]{outline:0}.VPSkipLink[data-v-a12d2059]{top:8px;left:8px;padding:8px 16px;z-index:999;border-radius:8px;font-size:12px;font-weight:700;text-decoration:none;color:var(--vp-c-brand-1);box-shadow:var(--vp-shadow-3);background-color:var(--vp-c-bg)}.VPSkipLink[data-v-a12d2059]:focus{height:auto;width:auto;clip:auto;clip-path:none}@media (min-width: 1280px){.VPSkipLink[data-v-a12d2059]{top:14px;left:16px}}.Layout[data-v-826bb513]{display:flex;flex-direction:column;min-height:100vh}.VPHomeSponsors[data-v-f0be3032]{border-top:1px solid var(--vp-c-gutter);padding-top:88px!important}.VPHomeSponsors[data-v-f0be3032]{margin:96px 0}@media (min-width: 768px){.VPHomeSponsors[data-v-f0be3032]{margin:128px 0}}.VPHomeSponsors[data-v-f0be3032]{padding:0 24px}@media (min-width: 768px){.VPHomeSponsors[data-v-f0be3032]{padding:0 48px}}@media (min-width: 960px){.VPHomeSponsors[data-v-f0be3032]{padding:0 64px}}.container[data-v-f0be3032]{margin:0 auto;max-width:1152px}.love[data-v-f0be3032]{margin:0 auto;width:fit-content;font-size:28px;color:var(--vp-c-text-3)}.icon[data-v-f0be3032]{display:inline-block}.message[data-v-f0be3032]{margin:0 auto;padding-top:10px;max-width:320px;text-align:center;line-height:24px;font-size:16px;font-weight:500;color:var(--vp-c-text-2)}.sponsors[data-v-f0be3032]{padding-top:32px}.action[data-v-f0be3032]{padding-top:40px;text-align:center}.VPTeamPage[data-v-654aca3a]{margin:96px 0}@media (min-width: 768px){.VPTeamPage[data-v-654aca3a]{margin:128px 0}}.VPHome .VPTeamPageTitle[data-v-654aca3a-s]{border-top:1px solid var(--vp-c-gutter);padding-top:88px!important}.VPTeamPageSection+.VPTeamPageSection[data-v-654aca3a-s],.VPTeamMembers+.VPTeamPageSection[data-v-654aca3a-s]{margin-top:64px}.VPTeamMembers+.VPTeamMembers[data-v-654aca3a-s]{margin-top:24px}@media (min-width: 768px){.VPTeamPageTitle+.VPTeamPageSection[data-v-654aca3a-s]{margin-top:16px}.VPTeamPageSection+.VPTeamPageSection[data-v-654aca3a-s],.VPTeamMembers+.VPTeamPageSection[data-v-654aca3a-s]{margin-top:96px}}.VPTeamMembers[data-v-654aca3a-s]{padding:0 24px}@media (min-width: 768px){.VPTeamMembers[data-v-654aca3a-s]{padding:0 48px}}@media (min-width: 960px){.VPTeamMembers[data-v-654aca3a-s]{padding:0 64px}}.VPTeamPageTitle[data-v-7f39bbe8]{padding:48px 32px;text-align:center}@media (min-width: 768px){.VPTeamPageTitle[data-v-7f39bbe8]{padding:64px 48px 48px}}@media (min-width: 960px){.VPTeamPageTitle[data-v-7f39bbe8]{padding:80px 64px 48px}}.title[data-v-7f39bbe8]{letter-spacing:0;line-height:44px;font-size:36px;font-weight:500}@media (min-width: 768px){.title[data-v-7f39bbe8]{letter-spacing:-.5px;line-height:56px;font-size:48px}}.lead[data-v-7f39bbe8]{margin:0 auto;max-width:512px;padding-top:12px;line-height:24px;font-size:16px;font-weight:500;color:var(--vp-c-text-2)}@media (min-width: 768px){.lead[data-v-7f39bbe8]{max-width:592px;letter-spacing:.15px;line-height:28px;font-size:20px}}.VPTeamPageSection[data-v-d0ad525b]{padding:0 32px}@media (min-width: 768px){.VPTeamPageSection[data-v-d0ad525b]{padding:0 48px}}@media (min-width: 960px){.VPTeamPageSection[data-v-d0ad525b]{padding:0 64px}}.title[data-v-d0ad525b]{position:relative;margin:0 auto;max-width:1152px;text-align:center;color:var(--vp-c-text-2)}.title-line[data-v-d0ad525b]{position:absolute;top:16px;left:0;width:100%;height:1px;background-color:var(--vp-c-divider)}.title-text[data-v-d0ad525b]{position:relative;display:inline-block;padding:0 24px;letter-spacing:0;line-height:32px;font-size:20px;font-weight:500;background-color:var(--vp-c-bg)}.lead[data-v-d0ad525b]{margin:0 auto;max-width:480px;padding-top:12px;text-align:center;line-height:24px;font-size:16px;font-weight:500;color:var(--vp-c-text-2)}.members[data-v-d0ad525b]{padding-top:40px}.VPTeamMembersItem[data-v-7cd391e4]{display:flex;flex-direction:column;gap:2px;border-radius:12px;width:100%;height:100%;overflow:hidden}.VPTeamMembersItem.small .profile[data-v-7cd391e4]{padding:32px}.VPTeamMembersItem.small .data[data-v-7cd391e4]{padding-top:20px}.VPTeamMembersItem.small .avatar[data-v-7cd391e4]{width:64px;height:64px}.VPTeamMembersItem.small .name[data-v-7cd391e4]{line-height:24px;font-size:16px}.VPTeamMembersItem.small .affiliation[data-v-7cd391e4]{padding-top:4px;line-height:20px;font-size:14px}.VPTeamMembersItem.small .desc[data-v-7cd391e4]{padding-top:12px;line-height:20px;font-size:14px}.VPTeamMembersItem.small .links[data-v-7cd391e4]{margin:0 -16px -20px;padding:10px 0 0}.VPTeamMembersItem.medium .profile[data-v-7cd391e4]{padding:48px 32px}.VPTeamMembersItem.medium .data[data-v-7cd391e4]{padding-top:24px;text-align:center}.VPTeamMembersItem.medium .avatar[data-v-7cd391e4]{width:96px;height:96px}.VPTeamMembersItem.medium .name[data-v-7cd391e4]{letter-spacing:.15px;line-height:28px;font-size:20px}.VPTeamMembersItem.medium .affiliation[data-v-7cd391e4]{padding-top:4px;font-size:16px}.VPTeamMembersItem.medium .desc[data-v-7cd391e4]{padding-top:16px;max-width:288px;font-size:16px}.VPTeamMembersItem.medium .links[data-v-7cd391e4]{margin:0 -16px -12px;padding:16px 12px 0}.profile[data-v-7cd391e4]{flex-grow:1;background-color:var(--vp-c-bg-soft)}.data[data-v-7cd391e4]{text-align:center}.avatar[data-v-7cd391e4]{position:relative;flex-shrink:0;margin:0 auto;border-radius:50%;box-shadow:var(--vp-shadow-3)}.avatar-img[data-v-7cd391e4]{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:50%;object-fit:cover}.name[data-v-7cd391e4]{margin:0;font-weight:600}.affiliation[data-v-7cd391e4]{margin:0;font-weight:500;color:var(--vp-c-text-2)}.org.link[data-v-7cd391e4]{color:var(--vp-c-text-2);transition:color .25s}.org.link[data-v-7cd391e4]:hover{color:var(--vp-c-brand-1)}.desc[data-v-7cd391e4]{margin:0 auto}.desc[data-v-7cd391e4] a{font-weight:500;color:var(--vp-c-brand-1);text-decoration-style:dotted;transition:color .25s}.links[data-v-7cd391e4]{display:flex;justify-content:center;height:56px}.sp-link[data-v-7cd391e4]{display:flex;justify-content:center;align-items:center;text-align:center;padding:16px;font-size:14px;font-weight:500;color:var(--vp-c-sponsor);background-color:var(--vp-c-bg-soft);transition:color .25s,background-color .25s}.sp .sp-link.link[data-v-7cd391e4]:hover,.sp .sp-link.link[data-v-7cd391e4]:focus{outline:none;color:var(--vp-c-white);background-color:var(--vp-c-sponsor)}.sp-icon[data-v-7cd391e4]{margin-right:8px;font-size:16px}.VPTeamMembers.small .container[data-v-4276b66a]{grid-template-columns:repeat(auto-fit,minmax(224px,1fr))}.VPTeamMembers.small.count-1 .container[data-v-4276b66a]{max-width:276px}.VPTeamMembers.small.count-2 .container[data-v-4276b66a]{max-width:576px}.VPTeamMembers.small.count-3 .container[data-v-4276b66a]{max-width:876px}.VPTeamMembers.medium .container[data-v-4276b66a]{grid-template-columns:repeat(auto-fit,minmax(256px,1fr))}@media (min-width: 375px){.VPTeamMembers.medium .container[data-v-4276b66a]{grid-template-columns:repeat(auto-fit,minmax(288px,1fr))}}.VPTeamMembers.medium.count-1 .container[data-v-4276b66a]{max-width:368px}.VPTeamMembers.medium.count-2 .container[data-v-4276b66a]{max-width:760px}.container[data-v-4276b66a]{display:grid;gap:24px;margin:0 auto;max-width:1152px}:root{--vp-c-brand-1: #149ef8;--vp-c-brand-2: #0434ad;--vp-home-hero-name-color: transparent;--vp-home-hero-name-background: -webkit-linear-gradient(120deg, #34a3fe 30%, #8d44ff);--vp-home-hero-image-background-image: linear-gradient(-45deg, #d0e9ff 50%, #a2d8f4 50%);--vp-home-hero-image-filter: blur(44px);--vp-c-gray-1: #eee;--vp-c-gray-2: #aaa;--border-radius-1: 10px;--border-radius-2: 20px;--border-radius-3: 40px;--vp-font-family-base: "Poppins", "Punctuation SC", "Inter", ui-sans-serif, system-ui, "PingFang SC", "Noto Sans CJK SC", "Noto Sans SC", "Heiti SC", "Microsoft YaHei", "DengXian", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--vp-font-family-mono: "Cousine", monospace;--red: #ef4444;--liteyuki-color: #149ef8;--button-radius: 6px}.dark{--vp-home-hero-image-background-image: linear-gradient(-45deg, #004785 50%, #0374ad 50%);--vp-c-gray-1: #333;--vp-c-gray-2: #666}.tab-buttons{padding:7px;flex:1;display:flex;justify-content:flex-start;height:60%;align-items:center}.tab-title{text-align:center;justify-content:center;flex:1}.item-search-box{border-radius:100px;width:80%;padding:10px;margin:10px 0;border:1px solid #ccc}.search-box-div{display:flex;justify-content:space-around;margin:10px 0}.item-search-box{width:80%}.item-card{position:relative;border-radius:15px;background-color:var(--vp-c-gray-1);height:160px;padding:16px;margin:10px;box-sizing:border-box;transition:background .3s ease}.item-name{font-size:20px;margin-bottom:10px}.item-description{color:var(--vp-c-gray-2);font-size:13px;white-space:pre-wrap}.author-info{display:flex;justify-content:left;align-items:center}.author-name{font-size:15px;font-weight:400}.avatar{border-radius:50%;margin:0 10px}.store-tabs{display:flex;justify-content:flex-end;margin:10px 0}.publish-button{right:10px;bottom:10px;padding:5px 10px;border-radius:10px;background-color:var(--vp-c-brand-1);color:#fff;font-size:15px;cursor:pointer}.pub-window input{width:100%;padding:10px;margin:10px 0;border-radius:10px;border:1px solid #ccc}.pub-option{margin:10px;padding:5px;border:2px solid var(--vp-c-gray-1);border-radius:var(--button-radius);background-color:var(--vp-c-gray-1)}.pub-option.submit{background-color:var(--vp-c-brand-1)}.stats-bar-content[data-v-2391887b]{display:flex;justify-content:center;align-items:center;flex-direction:column}.gamma[data-v-2391887b]{filter:brightness(1.8)}.dark .gamma[data-v-2391887b]{filter:brightness(1)}.stats-bar[data-v-2391887b]{width:80%;max-width:1150px;display:flex;justify-content:space-between;padding:20px;margin:10px;border-radius:var(--border-radius-2);background-color:var(--vp-c-gray-1);flex-direction:column}.stats-info[data-v-2391887b]{margin-bottom:20px}.stats-title[data-v-2391887b]{font-size:20px;font-weight:700;margin-bottom:20px;text-align:center}.sections[data-v-2391887b]{height:100%;width:100%;display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:15px;margin:10px}.section[data-v-2391887b]{display:flex;flex-direction:column;position:relative;border-radius:var(--border-radius-2)}.section[data-v-2391887b]:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;border:0 solid transparent;transition:border .1s ease-in-out;border-radius:var(--border-radius-2);pointer-events:none}.section[data-v-2391887b]:hover:before{border:1px solid #00a6ff;border-radius:var(--border-radius-2)}.section-tab[data-v-2391887b]{margin-left:15px;display:flex;justify-content:flex-start;align-items:center}.dot[data-v-2391887b]{width:10px;height:10px;border-radius:50%;margin-right:5px}.text[data-v-2391887b]{font-size:14px;white-space:nowrap;align-items:center}.number[data-v-2391887b]{font-size:27px;font-weight:700;margin-top:5px;margin-left:15px}.starmap[data-v-2391887b]{position:relative;width:100%;height:200px;overflow:hidden;border-radius:var(--border-radius-2)}.starmap iframe[data-v-2391887b]{position:absolute;top:-150px;left:-40px;width:calc(100% + 80px);height:calc(100% + 300px)}@media (min-width: 768px){.stats-bar[data-v-2391887b]{flex-direction:row;margin:30px}.stats-info[data-v-2391887b]{width:40%;margin:10px 30px 30px}.starmap[data-v-2391887b]{width:60%;height:400px}.starmap iframe[data-v-2391887b]{position:absolute;top:-130px;left:-60px;width:calc(100% + 120px);height:calc(100% + 280px)}}.btn[data-v-a8e3f329]{margin-right:15px}button[data-v-a8e3f329]{background-color:#0000;border:none}.copy-btn[data-v-a8e3f329]{cursor:pointer;color:#666}.icon[data-v-a8e3f329]{width:20px;height:20px}.item-bar[data-v-a8e3f329]{position:absolute;bottom:0;height:50px;display:flex;align-items:center;box-sizing:border-box;justify-content:space-between;color:#0005}.tag[data-v-a8e3f329]{display:inline-block;padding:0 5px;margin-right:5px;border-radius:5px;font-size:12px}.switch[data-v-b3db11d1]{position:relative;display:inline-block;width:60px;height:34px}.switch input[data-v-b3db11d1]{opacity:0;width:0;height:0}.slider[data-v-b3db11d1]{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#ccc;transition:.4s;border-radius:34px}.slider[data-v-b3db11d1]:before{position:absolute;content:"";height:26px;width:26px;left:4px;bottom:4px;background-color:#fff;transition:.4s;border-radius:50%}input:checked+.slider[data-v-b3db11d1]{background-color:#2196f3}input:checked+.slider[data-v-b3db11d1]:before{transform:translate(26px)}h1[data-v-671446c8]{color:#00a6ff;text-align:center;font-weight:700}.items[data-v-671446c8]{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:10px}.search-box-div[data-v-671446c8]{display:flex;justify-content:center;align-items:center;margin-bottom:10px}.search-box-div input[data-v-671446c8]{margin-right:10px}.icon[data-v-22cbd1fa]{width:20px;height:20px;color:$themeColor}.item-bar[data-v-22cbd1fa]{position:absolute;bottom:0;height:50px;display:flex;align-items:center;box-sizing:border-box;justify-content:space-between;color:#0005}.floating-window[data-v-8b5829b6]{position:fixed;top:0;left:0;width:100%;height:100%;background:#00000080;display:flex;justify-content:center;align-items:center;z-index:1000}.window-content[data-v-8b5829b6]{background:var(--vp-c-gray-1);padding:20px;border-radius:5px;max-width:60%;box-shadow:0 2px 10px #0000001a}h1[data-v-83d58003]{color:#00a6ff;text-align:center;font-weight:700}.items[data-v-83d58003]{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:10px}.contributor-bar[data-v-bc374713]{display:flex;flex-direction:column;align-items:center}.VPLocalSearchBox[data-v-db8fabf3]{position:fixed;z-index:100;top:0;right:0;bottom:0;left:0;display:flex}.backdrop[data-v-db8fabf3]{position:absolute;top:0;right:0;bottom:0;left:0;background:var(--vp-backdrop-bg-color);transition:opacity .5s}.shell[data-v-db8fabf3]{position:relative;padding:12px;margin:64px auto;display:flex;flex-direction:column;gap:16px;background:var(--vp-local-search-bg);width:min(100vw - 60px,900px);height:min-content;max-height:min(100vh - 128px,900px);border-radius:6px}@media (max-width: 767px){.shell[data-v-db8fabf3]{margin:0;width:100vw;height:100vh;max-height:none;border-radius:0}}.search-bar[data-v-db8fabf3]{border:1px solid var(--vp-c-divider);border-radius:4px;display:flex;align-items:center;padding:0 12px;cursor:text}@media (max-width: 767px){.search-bar[data-v-db8fabf3]{padding:0 8px}}.search-bar[data-v-db8fabf3]:focus-within{border-color:var(--vp-c-brand-1)}.local-search-icon[data-v-db8fabf3]{display:block;font-size:18px}.navigate-icon[data-v-db8fabf3]{display:block;font-size:14px}.search-icon[data-v-db8fabf3]{margin:8px}@media (max-width: 767px){.search-icon[data-v-db8fabf3]{display:none}}.search-input[data-v-db8fabf3]{padding:6px 12px;font-size:inherit;width:100%}@media (max-width: 767px){.search-input[data-v-db8fabf3]{padding:6px 4px}}.search-actions[data-v-db8fabf3]{display:flex;gap:4px}@media (any-pointer: coarse){.search-actions[data-v-db8fabf3]{gap:8px}}@media (min-width: 769px){.search-actions.before[data-v-db8fabf3]{display:none}}.search-actions button[data-v-db8fabf3]{padding:8px}.search-actions button[data-v-db8fabf3]:not([disabled]):hover,.toggle-layout-button.detailed-list[data-v-db8fabf3]{color:var(--vp-c-brand-1)}.search-actions button.clear-button[data-v-db8fabf3]:disabled{opacity:.37}.search-keyboard-shortcuts[data-v-db8fabf3]{font-size:.8rem;opacity:75%;display:flex;flex-wrap:wrap;gap:16px;line-height:14px}.search-keyboard-shortcuts span[data-v-db8fabf3]{display:flex;align-items:center;gap:4px}@media (max-width: 767px){.search-keyboard-shortcuts[data-v-db8fabf3]{display:none}}.search-keyboard-shortcuts kbd[data-v-db8fabf3]{background:#8080801a;border-radius:4px;padding:3px 6px;min-width:24px;display:inline-block;text-align:center;vertical-align:middle;border:1px solid rgba(128,128,128,.15);box-shadow:0 2px 2px #0000001a}.results[data-v-db8fabf3]{display:flex;flex-direction:column;gap:6px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}.result[data-v-db8fabf3]{display:flex;align-items:center;gap:8px;border-radius:4px;transition:none;line-height:1rem;border:solid 2px var(--vp-local-search-result-border);outline:none}.result>div[data-v-db8fabf3]{margin:12px;width:100%;overflow:hidden}@media (max-width: 767px){.result>div[data-v-db8fabf3]{margin:8px}}.titles[data-v-db8fabf3]{display:flex;flex-wrap:wrap;gap:4px;position:relative;z-index:1001;padding:2px 0}.title[data-v-db8fabf3]{display:flex;align-items:center;gap:4px}.title.main[data-v-db8fabf3]{font-weight:500}.title-icon[data-v-db8fabf3]{opacity:.5;font-weight:500;color:var(--vp-c-brand-1)}.title svg[data-v-db8fabf3]{opacity:.5}.result.selected[data-v-db8fabf3]{--vp-local-search-result-bg: var(--vp-local-search-result-selected-bg);border-color:var(--vp-local-search-result-selected-border)}.excerpt-wrapper[data-v-db8fabf3]{position:relative}.excerpt[data-v-db8fabf3]{opacity:50%;pointer-events:none;max-height:140px;overflow:hidden;position:relative;margin-top:4px}.result.selected .excerpt[data-v-db8fabf3]{opacity:1}.excerpt[data-v-db8fabf3] *{font-size:.8rem!important;line-height:130%!important}.titles[data-v-db8fabf3] mark,.excerpt[data-v-db8fabf3] mark{background-color:var(--vp-local-search-highlight-bg);color:var(--vp-local-search-highlight-text);border-radius:2px;padding:0 2px}.excerpt[data-v-db8fabf3] .vp-code-group .tabs{display:none}.excerpt[data-v-db8fabf3] .vp-code-group div[class*=language-]{border-radius:8px!important}.excerpt-gradient-bottom[data-v-db8fabf3]{position:absolute;bottom:-1px;left:0;width:100%;height:8px;background:linear-gradient(transparent,var(--vp-local-search-result-bg));z-index:1000}.excerpt-gradient-top[data-v-db8fabf3]{position:absolute;top:-1px;left:0;width:100%;height:8px;background:linear-gradient(var(--vp-local-search-result-bg),transparent);z-index:1000}.result.selected .titles[data-v-db8fabf3],.result.selected .title-icon[data-v-db8fabf3]{color:var(--vp-c-brand-1)!important}.no-results[data-v-db8fabf3]{font-size:.9rem;text-align:center;padding:12px}svg[data-v-db8fabf3]{flex:none} diff --git a/assets/usage_agreement.md.BYijSUyJ.js b/assets/usage_agreement.md.BYijSUyJ.js deleted file mode 100644 index 7fec992a..00000000 --- a/assets/usage_agreement.md.BYijSUyJ.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as e,c as t,o as a,a9 as o}from"./chunks/framework.C4_mTacX.js";const h=JSON.parse('{"title":"用户协议","description":"","frontmatter":{"title":"用户协议","order":3},"headers":[],"relativePath":"usage/agreement.md","filePath":"zh/usage/agreement.md","lastUpdated":1725101868000}'),l={name:"usage/agreement.md"},i=o('

用户协议

  1. 本项目遵循MIT协议,你可以自由使用,修改,分发,但是请保留原作者信息
  2. 你可以选择开启auto_report(默认开启),轻雪会收集以下内容
    • 运行环境的设备信息:CPU,内存,系统信息及Python信息
    • 插件信息(不含插件数据)
    • 部分异常信息,
    • 会话负载信息(不含隐私部分) 以上内容仅用于项目的优化,不包含任何隐私信息,且通过安全的方式传输到轻雪的服务器,若你不希望提供这些信息,可以在配置文件中把auto_report设定为false
  3. 本项目不会收集用户的任何隐私信息,但请注意甄别第三方插件的安全性
  4. 使用此项目代表你已经同意以上协议
',2),r=[i];function c(_,s,d,n,m,p){return a(),t("div",null,r)}const f=e(l,[["render",c]]);export{h as __pageData,f as default}; diff --git a/assets/usage_agreement.md.BYijSUyJ.lean.js b/assets/usage_agreement.md.BYijSUyJ.lean.js deleted file mode 100644 index 30634257..00000000 --- a/assets/usage_agreement.md.BYijSUyJ.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as e,c as t,o as a,a9 as o}from"./chunks/framework.C4_mTacX.js";const h=JSON.parse('{"title":"用户协议","description":"","frontmatter":{"title":"用户协议","order":3},"headers":[],"relativePath":"usage/agreement.md","filePath":"zh/usage/agreement.md","lastUpdated":1725101868000}'),l={name:"usage/agreement.md"},i=o("",2),r=[i];function c(_,s,d,n,m,p){return a(),t("div",null,r)}const f=e(l,[["render",c]]);export{h as __pageData,f as default}; diff --git a/assets/usage_agreement.md.D1WnPguc.js b/assets/usage_agreement.md.D1WnPguc.js new file mode 100644 index 00000000..42e840b8 --- /dev/null +++ b/assets/usage_agreement.md.D1WnPguc.js @@ -0,0 +1 @@ +import{_ as t,c as a,a7 as o,o as l}from"./chunks/framework.jrU0lkHV.js";const u=JSON.parse('{"title":"用户协议","description":"","frontmatter":{"title":"用户协议","order":3},"headers":[],"relativePath":"usage/agreement.md","filePath":"zh/usage/agreement.md","lastUpdated":1725101868000}'),r={name:"usage/agreement.md"};function i(d,e,n,s,c,m){return l(),a("div",null,e[0]||(e[0]=[o('

用户协议

  1. 本项目遵循MIT协议,你可以自由使用,修改,分发,但是请保留原作者信息
  2. 你可以选择开启auto_report(默认开启),轻雪会收集以下内容
    • 运行环境的设备信息:CPU,内存,系统信息及Python信息
    • 插件信息(不含插件数据)
    • 部分异常信息,
    • 会话负载信息(不含隐私部分) 以上内容仅用于项目的优化,不包含任何隐私信息,且通过安全的方式传输到轻雪的服务器,若你不希望提供这些信息,可以在配置文件中把auto_report设定为false
  3. 本项目不会收集用户的任何隐私信息,但请注意甄别第三方插件的安全性
  4. 使用此项目代表你已经同意以上协议
',2)]))}const _=t(r,[["render",i]]);export{u as __pageData,_ as default}; diff --git a/assets/usage_agreement.md.D1WnPguc.lean.js b/assets/usage_agreement.md.D1WnPguc.lean.js new file mode 100644 index 00000000..42e840b8 --- /dev/null +++ b/assets/usage_agreement.md.D1WnPguc.lean.js @@ -0,0 +1 @@ +import{_ as t,c as a,a7 as o,o as l}from"./chunks/framework.jrU0lkHV.js";const u=JSON.parse('{"title":"用户协议","description":"","frontmatter":{"title":"用户协议","order":3},"headers":[],"relativePath":"usage/agreement.md","filePath":"zh/usage/agreement.md","lastUpdated":1725101868000}'),r={name:"usage/agreement.md"};function i(d,e,n,s,c,m){return l(),a("div",null,e[0]||(e[0]=[o('

用户协议

  1. 本项目遵循MIT协议,你可以自由使用,修改,分发,但是请保留原作者信息
  2. 你可以选择开启auto_report(默认开启),轻雪会收集以下内容
    • 运行环境的设备信息:CPU,内存,系统信息及Python信息
    • 插件信息(不含插件数据)
    • 部分异常信息,
    • 会话负载信息(不含隐私部分) 以上内容仅用于项目的优化,不包含任何隐私信息,且通过安全的方式传输到轻雪的服务器,若你不希望提供这些信息,可以在配置文件中把auto_report设定为false
  3. 本项目不会收集用户的任何隐私信息,但请注意甄别第三方插件的安全性
  4. 使用此项目代表你已经同意以上协议
',2)]))}const _=t(r,[["render",i]]);export{u as __pageData,_ as default}; diff --git a/assets/usage_basic.md.CS9J19pD.js b/assets/usage_basic.md.CS9J19pD.js deleted file mode 100644 index 951a494d..00000000 --- a/assets/usage_basic.md.CS9J19pD.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as t,c as e,o as d,a9 as l}from"./chunks/framework.C4_mTacX.js";const u=JSON.parse('{"title":"基础插件","description":"","frontmatter":{"title":"基础插件","order":1},"headers":[],"relativePath":"usage/basic.md","filePath":"zh/usage/basic.md","lastUpdated":1725101868000}'),n={name:"usage/basic.md"},r=l('

基础插件


TIP

参数<param>为必填参数,[option]为可选参数。

命令别名:配置了命令别名的命令可以使用别名代替原命令,例如npm install ~可以使用插件 安装 ~代替。

轻雪命令liteyuki_command

命令说明权限举例可用参数
reload-liteyuki重载轻雪超级用户
update-liteyuki更新轻雪超级用户
liteecho查看当前bot 版本超级用户
status查看统计信息和状态超级用户
config set <key> value添加配置项,若存在则会覆盖,输入值会被执行以转换为正确的类型,"10"和10是不一样的超级用户config set name 'liteyuki-bot'<key>: 若存在则覆盖, 若不存在则创建于config.yml ; value: yml格式的所有合法内容
config get [key] 查询配置项,不带key返回配置项列表,推荐私聊使用超级用户config get name<key>: 若存在则返回, 若不存在则返回空
switch-image-mode 在普通图片和Markdown大图之间切换,该功能需要commit:505468b及以后的Lagrange.OneBot,默认普通图片超级用户switch-image-mode
/api api_name [args] 调用机器人API超级用户/api get_group_member_list group_id=1234567<args>: 参数列表, 格式为onebot v11协议api, 可用%20代替空格
/function function_name [args] [kwargs] 调用机器人函数(.lyfunction语法)超级用户/function send_group_msg group_id=1234567 message='hello'<args><kwargs>: 参数列表, api格式为onebot v11协议api
group enable/disable [group_id]在群聊启用/停用机器人,group_id仅超级用户可用超级用户,群聊仅群主、管理员、超级用户可用group enable 1145141919810<group_id>: 群号
liteyuki-docs查看轻雪文档所有人

命令别名

命令别名
status状态
reload-liteyuki重启轻雪
update-liteyuki更新轻雪
reload-resources重载资源
config配置, set 设置 / get 查询
switch-image-mode切换图片模式
liteyuki-docs轻雪文档
group群聊, enable 启用 / disable 停用

插件/包管理器 liteyuki_pacman

  • 插件管理
命令说明权限
npm update更新插件商店索引超级用户
npm install <plugin_name>安装插件超级用户
npm uninstall <plugin_name>卸载插件超级用户
npm search <keywords...>通过关键词搜索插件超级用户
npm enable-global/disable-global <plugin_name>全局启用/停用插件超级用户
npm enable/disable <plugin_name> [--group <group_id>]当前会话启用/停用插件群聊仅群主、管理员、超级用户可用,私聊所有人可用
npm list [page] [num]列出所有插件 page为页数,num为每页显示数量群聊仅群主、管理员、超级用户可用,私聊所有人可用
help <plugin_name>查看插件帮助所有人
  • 资源包管理
命令说明权限
rpm list [page] [num]列出所有资源包 page为页数,num为每页显示数量超级用户
rpm load <pack_name>加载资源包超级用户
rpm unload <pack_name>卸载资源包超级用户
rpm change <pack_name>修改优先级超级用户
rpm reload重载所有资源包超级用户

命令别名

命令别名
npm插件管理
update更新
install安装
uninstall卸载
search搜索
enable启用
disable停用
enable-global全局启用
disable-global全局停用
rpm资源包
load加载
unload卸载
change更改
reload重载
list列表
help帮助

WARNING

受限于NoneBot2钩子函数的依赖注入参数,插件停用只能阻断传入响应,对于主动推送的插件不生效,请阅读插件主页的说明。


用户管理liteyuki_user

命令说明权限
profile查看用户信息菜单所有人
profile set <key> [value]设置用户信息或打开属性设置菜单所有人
profile get <key>获取用户信息所有人

###命令别名

命令别名
profile个人信息
set设置
get查询
',22),a=[r];function c(i,s,o,g,y,x){return d(),e("div",null,a)}const p=t(n,[["render",c]]);export{u as __pageData,p as default}; diff --git a/assets/usage_basic.md.CS9J19pD.lean.js b/assets/usage_basic.md.CS9J19pD.lean.js deleted file mode 100644 index 5ad824ef..00000000 --- a/assets/usage_basic.md.CS9J19pD.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as t,c as e,o as d,a9 as l}from"./chunks/framework.C4_mTacX.js";const u=JSON.parse('{"title":"基础插件","description":"","frontmatter":{"title":"基础插件","order":1},"headers":[],"relativePath":"usage/basic.md","filePath":"zh/usage/basic.md","lastUpdated":1725101868000}'),n={name:"usage/basic.md"},r=l("",22),a=[r];function c(i,s,o,g,y,x){return d(),e("div",null,a)}const p=t(n,[["render",c]]);export{u as __pageData,p as default}; diff --git a/assets/usage_basic.md.DbulLjQT.js b/assets/usage_basic.md.DbulLjQT.js new file mode 100644 index 00000000..67a2c35b --- /dev/null +++ b/assets/usage_basic.md.DbulLjQT.js @@ -0,0 +1 @@ +import{_ as e,c as d,a7 as l,o as n}from"./chunks/framework.jrU0lkHV.js";const x=JSON.parse('{"title":"基础插件","description":"","frontmatter":{"title":"基础插件","order":1},"headers":[],"relativePath":"usage/basic.md","filePath":"zh/usage/basic.md","lastUpdated":1725101868000}'),r={name:"usage/basic.md"};function a(c,t,i,s,o,g){return n(),d("div",null,t[0]||(t[0]=[l('

基础插件


TIP

参数<param>为必填参数,[option]为可选参数。

命令别名:配置了命令别名的命令可以使用别名代替原命令,例如npm install ~可以使用插件 安装 ~代替。

轻雪命令liteyuki_command

命令说明权限举例可用参数
reload-liteyuki重载轻雪超级用户
update-liteyuki更新轻雪超级用户
liteecho查看当前bot 版本超级用户
status查看统计信息和状态超级用户
config set <key> value添加配置项,若存在则会覆盖,输入值会被执行以转换为正确的类型,"10"和10是不一样的超级用户config set name 'liteyuki-bot'<key>: 若存在则覆盖, 若不存在则创建于config.yml ; value: yml格式的所有合法内容
config get [key] 查询配置项,不带key返回配置项列表,推荐私聊使用超级用户config get name<key>: 若存在则返回, 若不存在则返回空
switch-image-mode 在普通图片和Markdown大图之间切换,该功能需要commit:505468b及以后的Lagrange.OneBot,默认普通图片超级用户switch-image-mode
/api api_name [args] 调用机器人API超级用户/api get_group_member_list group_id=1234567<args>: 参数列表, 格式为onebot v11协议api, 可用%20代替空格
/function function_name [args] [kwargs] 调用机器人函数(.lyfunction语法)超级用户/function send_group_msg group_id=1234567 message='hello'<args><kwargs>: 参数列表, api格式为onebot v11协议api
group enable/disable [group_id]在群聊启用/停用机器人,group_id仅超级用户可用超级用户,群聊仅群主、管理员、超级用户可用group enable 1145141919810<group_id>: 群号
liteyuki-docs查看轻雪文档所有人

命令别名

命令别名
status状态
reload-liteyuki重启轻雪
update-liteyuki更新轻雪
reload-resources重载资源
config配置, set 设置 / get 查询
switch-image-mode切换图片模式
liteyuki-docs轻雪文档
group群聊, enable 启用 / disable 停用

插件/包管理器 liteyuki_pacman

  • 插件管理
命令说明权限
npm update更新插件商店索引超级用户
npm install <plugin_name>安装插件超级用户
npm uninstall <plugin_name>卸载插件超级用户
npm search <keywords...>通过关键词搜索插件超级用户
npm enable-global/disable-global <plugin_name>全局启用/停用插件超级用户
npm enable/disable <plugin_name> [--group <group_id>]当前会话启用/停用插件群聊仅群主、管理员、超级用户可用,私聊所有人可用
npm list [page] [num]列出所有插件 page为页数,num为每页显示数量群聊仅群主、管理员、超级用户可用,私聊所有人可用
help <plugin_name>查看插件帮助所有人
  • 资源包管理
命令说明权限
rpm list [page] [num]列出所有资源包 page为页数,num为每页显示数量超级用户
rpm load <pack_name>加载资源包超级用户
rpm unload <pack_name>卸载资源包超级用户
rpm change <pack_name>修改优先级超级用户
rpm reload重载所有资源包超级用户

命令别名

命令别名
npm插件管理
update更新
install安装
uninstall卸载
search搜索
enable启用
disable停用
enable-global全局启用
disable-global全局停用
rpm资源包
load加载
unload卸载
change更改
reload重载
list列表
help帮助

WARNING

受限于NoneBot2钩子函数的依赖注入参数,插件停用只能阻断传入响应,对于主动推送的插件不生效,请阅读插件主页的说明。


用户管理liteyuki_user

命令说明权限
profile查看用户信息菜单所有人
profile set <key> [value]设置用户信息或打开属性设置菜单所有人
profile get <key>获取用户信息所有人

###命令别名

命令别名
profile个人信息
set设置
get查询
',22)]))}const h=e(r,[["render",a]]);export{x as __pageData,h as default}; diff --git a/assets/usage_basic.md.DbulLjQT.lean.js b/assets/usage_basic.md.DbulLjQT.lean.js new file mode 100644 index 00000000..67a2c35b --- /dev/null +++ b/assets/usage_basic.md.DbulLjQT.lean.js @@ -0,0 +1 @@ +import{_ as e,c as d,a7 as l,o as n}from"./chunks/framework.jrU0lkHV.js";const x=JSON.parse('{"title":"基础插件","description":"","frontmatter":{"title":"基础插件","order":1},"headers":[],"relativePath":"usage/basic.md","filePath":"zh/usage/basic.md","lastUpdated":1725101868000}'),r={name:"usage/basic.md"};function a(c,t,i,s,o,g){return n(),d("div",null,t[0]||(t[0]=[l('

基础插件


TIP

参数<param>为必填参数,[option]为可选参数。

命令别名:配置了命令别名的命令可以使用别名代替原命令,例如npm install ~可以使用插件 安装 ~代替。

轻雪命令liteyuki_command

命令说明权限举例可用参数
reload-liteyuki重载轻雪超级用户
update-liteyuki更新轻雪超级用户
liteecho查看当前bot 版本超级用户
status查看统计信息和状态超级用户
config set <key> value添加配置项,若存在则会覆盖,输入值会被执行以转换为正确的类型,"10"和10是不一样的超级用户config set name 'liteyuki-bot'<key>: 若存在则覆盖, 若不存在则创建于config.yml ; value: yml格式的所有合法内容
config get [key] 查询配置项,不带key返回配置项列表,推荐私聊使用超级用户config get name<key>: 若存在则返回, 若不存在则返回空
switch-image-mode 在普通图片和Markdown大图之间切换,该功能需要commit:505468b及以后的Lagrange.OneBot,默认普通图片超级用户switch-image-mode
/api api_name [args] 调用机器人API超级用户/api get_group_member_list group_id=1234567<args>: 参数列表, 格式为onebot v11协议api, 可用%20代替空格
/function function_name [args] [kwargs] 调用机器人函数(.lyfunction语法)超级用户/function send_group_msg group_id=1234567 message='hello'<args><kwargs>: 参数列表, api格式为onebot v11协议api
group enable/disable [group_id]在群聊启用/停用机器人,group_id仅超级用户可用超级用户,群聊仅群主、管理员、超级用户可用group enable 1145141919810<group_id>: 群号
liteyuki-docs查看轻雪文档所有人

命令别名

命令别名
status状态
reload-liteyuki重启轻雪
update-liteyuki更新轻雪
reload-resources重载资源
config配置, set 设置 / get 查询
switch-image-mode切换图片模式
liteyuki-docs轻雪文档
group群聊, enable 启用 / disable 停用

插件/包管理器 liteyuki_pacman

  • 插件管理
命令说明权限
npm update更新插件商店索引超级用户
npm install <plugin_name>安装插件超级用户
npm uninstall <plugin_name>卸载插件超级用户
npm search <keywords...>通过关键词搜索插件超级用户
npm enable-global/disable-global <plugin_name>全局启用/停用插件超级用户
npm enable/disable <plugin_name> [--group <group_id>]当前会话启用/停用插件群聊仅群主、管理员、超级用户可用,私聊所有人可用
npm list [page] [num]列出所有插件 page为页数,num为每页显示数量群聊仅群主、管理员、超级用户可用,私聊所有人可用
help <plugin_name>查看插件帮助所有人
  • 资源包管理
命令说明权限
rpm list [page] [num]列出所有资源包 page为页数,num为每页显示数量超级用户
rpm load <pack_name>加载资源包超级用户
rpm unload <pack_name>卸载资源包超级用户
rpm change <pack_name>修改优先级超级用户
rpm reload重载所有资源包超级用户

命令别名

命令别名
npm插件管理
update更新
install安装
uninstall卸载
search搜索
enable启用
disable停用
enable-global全局启用
disable-global全局停用
rpm资源包
load加载
unload卸载
change更改
reload重载
list列表
help帮助

WARNING

受限于NoneBot2钩子函数的依赖注入参数,插件停用只能阻断传入响应,对于主动推送的插件不生效,请阅读插件主页的说明。


用户管理liteyuki_user

命令说明权限
profile查看用户信息菜单所有人
profile set <key> [value]设置用户信息或打开属性设置菜单所有人
profile get <key>获取用户信息所有人

###命令别名

命令别名
profile个人信息
set设置
get查询
',22)]))}const h=e(r,[["render",a]]);export{x as __pageData,h as default}; diff --git a/assets/usage_extra.md.BiRGsfAl.js b/assets/usage_extra.md.BiRGsfAl.js new file mode 100644 index 00000000..d8c65136 --- /dev/null +++ b/assets/usage_extra.md.BiRGsfAl.js @@ -0,0 +1 @@ +import{_ as e,c as s,a7 as i,o as a}from"./chunks/framework.jrU0lkHV.js";const k=JSON.parse('{"title":"功能命令","description":"","frontmatter":{"title":"功能命令","order":2},"headers":[],"relativePath":"usage/extra.md","filePath":"zh/usage/extra.md","lastUpdated":1725101868000}'),l={name:"usage/extra.md"};function d(n,t,r,h,o,p){return a(),s("div",null,t[0]||(t[0]=[i('

功能插件命令

轻雪天气liteyuki_weather

查询实时天气,支持绑定城市,支持中英文城市名,支持多个关键词查询。

配置项

yaml
weather_key: "" # 和风天气的天气key,会自动判断key版本

命令

shell
weather <keywords...> # Keywords为城市名,支持中英文

查询目标地实时天气,例如:"天气 北京 海淀", "weather Tokyo Shinjuku"

shell
bind-city <keywords...> # Keywords为城市名,支持中英文

绑定查询城市,个人全局生效

命令别名

命令别名
weather天气
bind-city绑定城市

统计信息liteyuki_statistics

统计信息 命令

shell
statistic message --duration <duration> --period <period> --group [current|group_id] --bot [current|bot_id]

功能: 用于统计Bot接收到的消息, 统计周期为period, 统计时间范围为duration

参数格式
duration使用通用日期简写: 1d(天), 1h(小时), 45m(分钟), 14s(秒)
period使用通用日期简写: 1d(天), 1h(小时), 45m(分钟), 14s(秒)
groupcurrent (当前群聊) 或 group_id (QQ群号)
botcurrent (当前Bot) 或 bot_id

命令别名

命令别名
statisticstat
messagem
--duration-d
--period`-p
--group-g
--bot-b
currentc
',20)]))}const g=e(l,[["render",d]]);export{k as __pageData,g as default}; diff --git a/assets/usage_extra.md.BiRGsfAl.lean.js b/assets/usage_extra.md.BiRGsfAl.lean.js new file mode 100644 index 00000000..d8c65136 --- /dev/null +++ b/assets/usage_extra.md.BiRGsfAl.lean.js @@ -0,0 +1 @@ +import{_ as e,c as s,a7 as i,o as a}from"./chunks/framework.jrU0lkHV.js";const k=JSON.parse('{"title":"功能命令","description":"","frontmatter":{"title":"功能命令","order":2},"headers":[],"relativePath":"usage/extra.md","filePath":"zh/usage/extra.md","lastUpdated":1725101868000}'),l={name:"usage/extra.md"};function d(n,t,r,h,o,p){return a(),s("div",null,t[0]||(t[0]=[i('

功能插件命令

轻雪天气liteyuki_weather

查询实时天气,支持绑定城市,支持中英文城市名,支持多个关键词查询。

配置项

yaml
weather_key: "" # 和风天气的天气key,会自动判断key版本

命令

shell
weather <keywords...> # Keywords为城市名,支持中英文

查询目标地实时天气,例如:"天气 北京 海淀", "weather Tokyo Shinjuku"

shell
bind-city <keywords...> # Keywords为城市名,支持中英文

绑定查询城市,个人全局生效

命令别名

命令别名
weather天气
bind-city绑定城市

统计信息liteyuki_statistics

统计信息 命令

shell
statistic message --duration <duration> --period <period> --group [current|group_id] --bot [current|bot_id]

功能: 用于统计Bot接收到的消息, 统计周期为period, 统计时间范围为duration

参数格式
duration使用通用日期简写: 1d(天), 1h(小时), 45m(分钟), 14s(秒)
period使用通用日期简写: 1d(天), 1h(小时), 45m(分钟), 14s(秒)
groupcurrent (当前群聊) 或 group_id (QQ群号)
botcurrent (当前Bot) 或 bot_id

命令别名

命令别名
statisticstat
messagem
--duration-d
--period`-p
--group-g
--bot-b
currentc
',20)]))}const g=e(l,[["render",d]]);export{k as __pageData,g as default}; diff --git a/assets/usage_extra.md.CPLcG44C.js b/assets/usage_extra.md.CPLcG44C.js deleted file mode 100644 index 124e0d6e..00000000 --- a/assets/usage_extra.md.CPLcG44C.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as t,c as e,o as s,a9 as i}from"./chunks/framework.C4_mTacX.js";const y=JSON.parse('{"title":"功能命令","description":"","frontmatter":{"title":"功能命令","order":2},"headers":[],"relativePath":"usage/extra.md","filePath":"zh/usage/extra.md","lastUpdated":1725101868000}'),a={name:"usage/extra.md"},l=i('

功能插件命令

轻雪天气liteyuki_weather

查询实时天气,支持绑定城市,支持中英文城市名,支持多个关键词查询。

配置项

yaml
weather_key: "" # 和风天气的天气key,会自动判断key版本

命令

shell
weather <keywords...> # Keywords为城市名,支持中英文

查询目标地实时天气,例如:"天气 北京 海淀", "weather Tokyo Shinjuku"

shell
bind-city <keywords...> # Keywords为城市名,支持中英文

绑定查询城市,个人全局生效

命令别名

命令别名
weather天气
bind-city绑定城市

统计信息liteyuki_statistics

统计信息 命令

shell
statistic message --duration <duration> --period <period> --group [current|group_id] --bot [current|bot_id]

功能: 用于统计Bot接收到的消息, 统计周期为period, 统计时间范围为duration

参数格式
duration使用通用日期简写: 1d(天), 1h(小时), 45m(分钟), 14s(秒)
period使用通用日期简写: 1d(天), 1h(小时), 45m(分钟), 14s(秒)
groupcurrent (当前群聊) 或 group_id (QQ群号)
botcurrent (当前Bot) 或 bot_id

命令别名

命令别名
statisticstat
messagem
--duration-d
--period`-p
--group-g
--bot-b
currentc
',20),d=[l];function n(h,r,o,p,c,k){return s(),e("div",null,d)}const u=t(a,[["render",n]]);export{y as __pageData,u as default}; diff --git a/assets/usage_extra.md.CPLcG44C.lean.js b/assets/usage_extra.md.CPLcG44C.lean.js deleted file mode 100644 index b4e94757..00000000 --- a/assets/usage_extra.md.CPLcG44C.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as t,c as e,o as s,a9 as i}from"./chunks/framework.C4_mTacX.js";const y=JSON.parse('{"title":"功能命令","description":"","frontmatter":{"title":"功能命令","order":2},"headers":[],"relativePath":"usage/extra.md","filePath":"zh/usage/extra.md","lastUpdated":1725101868000}'),a={name:"usage/extra.md"},l=i("",20),d=[l];function n(h,r,o,p,c,k){return s(),e("div",null,d)}const u=t(a,[["render",n]]);export{y as __pageData,u as default}; diff --git a/deploy/config.html b/deploy/config.html index ad34c44b..33cc7191 100644 --- a/deploy/config.html +++ b/deploy/config.html @@ -5,22 +5,22 @@ 配置 | 轻雪机器人 - - + + - + - - - + + + -
Skip to content

配置

轻雪支持yamljsontoml作为配置文件,取决于你个人的喜好

首次运行后生成config.ymlconfig目录,你可修改配置项后重启轻雪,绝大多数情况下,你只需要修改superusersnickname字段即可

启动时会加载项目目录下config.yml/yaml/json/tomlconfig目录下的所有配置文件,你可在config目录下创建多个配置文件,轻雪会自动合并这些配置文件

基础配置项

yaml
nonebot:
-  # Nonebot机器人的配置,以前的最外层配置项仍可为Nonebot服务,但是部分内容会被覆盖,请尽快迁移
+    
Skip to content

配置

轻雪支持yamljsontoml作为配置文件,取决于你个人的喜好

首次运行后生成config.ymlconfig目录,你可修改配置项后重启轻雪,绝大多数情况下,你只需要修改superusersnickname字段即可

启动时会加载项目目录下config.yml/yaml/json/tomlconfig目录下的所有配置文件,你可在config目录下创建多个配置文件,轻雪会自动合并这些配置文件

基础配置项

yaml
nonebot:
+  # Nonebot机器人的配置,6.3.10版本后,NoneBot下配置已迁移至nonebot键下,不再使用外层配置,但是部分内容会被覆盖,请尽快迁移
   command_start: [ "/", "" ] # 指令前缀,若没有""空命令头,请开启alconna_use_command_start保证alconna解析正常
   host: 127.0.0.1 # 监听地址,默认为本机,若要接收外部请求请填写0.0.0.0
   port: 20216 # 绑定端口
@@ -49,8 +49,8 @@
   debug: false  # 轻雪调试,开启会自动重载Bot或者资源,其他插件自带的调试功能也将开启
   dev_mode: false # 开发者模式,开启后将会启动监视者,监视文件变化并自动重载
 
-...

示例:与NoneBot对接的OneBot实现端配置

生产环境中推荐反向WebSocket 不同的实现端给出的字段可能不同,但是基本上都是一样的,这里给出一个参考值

字段参考值说明
协议反向WebSocket推荐使用反向ws协议进行通信,即轻雪作为服务端
地址ws://127.0.0.1:20216/onebot/v11/ws地址取决于配置文件,本机默认为127.0.0.1:20216
AccessToken""如果你给轻雪配置了AccessToken,请在此填写相同的值

其他

  • 轻雪不局限于OneBot适配器,你可以使用NoneBot2支持的任何适配器或使用轻雪讯息传递插件

文档由 VitePress 构建 | API引用由 litedoc 生成

- +...

示例:与NoneBot对接的OneBot实现端配置

生产环境中推荐反向WebSocket 不同的实现端给出的字段可能不同,但是基本上都是一样的,这里给出一个参考值

字段参考值说明
协议反向WebSocket推荐使用反向ws协议进行通信,即轻雪作为服务端
地址ws://127.0.0.1:20216/onebot/v11/ws地址取决于配置文件,本机默认为127.0.0.1:20216
AccessToken""如果你给轻雪配置了AccessToken,请在此填写相同的值

其他

  • 轻雪不局限于OneBot适配器,你可以使用NoneBot2支持的任何适配器或使用轻雪讯息传递插件

文档由 VitePress 构建 | API引用由 litedoc 生成

+ \ No newline at end of file diff --git a/deploy/fandq.html b/deploy/fandq.html index 39636a8e..fcf55c4d 100644 --- a/deploy/fandq.html +++ b/deploy/fandq.html @@ -5,22 +5,22 @@ 答疑 | 轻雪机器人 - - + + - + - - - + + + -
Skip to content

答疑

常见问题

  • 设备上Python环境太乱了,pip和python不对应怎么办?

    • 请使用/path/to/python -m pip install -r requirements.txt来安装依赖, 然后用/path/to/python main.py来启动Bot, 其中/path/to/python是你要用来运行Bot的可执行文件
  • 为什么我启动后机器人没有反应?

    • 请检查配置文件的command_startsuperusers,确认你有权限使用命令并按照正确的命令发送
    • 确认命令头没有和nickname{}冲突,例如一个命令是help,但是Bot昵称有一个help,那么将会被解析为nickname而不是命令
  • 更新轻雪失败,报错InvalidGitRepositoryError

    • 请正确安装Git,并使用克隆而非直接下载的方式部署轻雪
  • 怎么登录聊天平台,例如QQ?

    • 你有这个问题说明你不是很了解这个项目,本项目不负责实现登录功能,只负责处理和回应消息,登录功能由实现端(协议端)提供, 实现端本身不负责处理响应逻辑,将消息按照OneBot标准处理好上报给轻雪 你需要使用Onebot标准的实现端来连接到轻雪并将消息上报给轻雪,下面已经列出一些推荐的实现端
  • Playwright安装失败

    • 输入playwright install安装浏览器
  • 有的插件安装后报错无法启动

    • 请先查阅插件文档,确认插件必要配置项完好后,仍然出现问题,请联系插件作者或在安全模式safe_mode: true下启动轻雪,在安全模式下你可以使用npm uninstall卸载问题插件
  • 其他问题

    加入QQ群775840726

推荐方案(QQ)

  1. Lagrange.OneBot,基于NTQQ的OneBot实现,目前Markdown消息支持Lagrange
  2. LLOneBot,NTQQ的OneBot插件,需要安装NTQQ
  3. OpenShamrock,基于Lsposed的OneBot11实现
  4. TRSS-Yunzai,基于node.js,可使用ws-plugin进行通信
  5. go-cqhttpgo语言实现的OneBot11实现端,目前可用性较低
  6. Gensokyo,基于 OneBot QQ官方机器人Api Golang 原生实现,需要官方机器人权限
  7. 人工实现的Onebot协议,自己整一个WebSocket客户端,看着QQ的消息,然后给轻雪传输数据

推荐方案(Minecraft)

  1. MinecraftOneBot,我们专门为Minecraft开发的服务器Bot,支持OneBotV11标准

使用其他项目连接请先自行查阅文档,若有困难请联系对应开发者而不是Liteyuki的开发者

鸣谢

文档由 VitePress 构建 | API引用由 litedoc 生成

- +
Skip to content

答疑

常见问题

  • 设备上Python环境太乱了,pip和python不对应怎么办?

    • 请使用/path/to/python -m pip install -r requirements.txt来安装依赖, 然后用/path/to/python main.py来启动Bot, 其中/path/to/python是你要用来运行Bot的可执行文件
  • 为什么我启动后机器人没有反应?

    • 请检查配置文件的command_startsuperusers,确认你有权限使用命令并按照正确的命令发送
    • 确认命令头没有和nickname{}冲突,例如一个命令是help,但是Bot昵称有一个help,那么将会被解析为nickname而不是命令
  • 更新轻雪失败,报错InvalidGitRepositoryError

    • 请正确安装Git,并使用克隆而非直接下载的方式部署轻雪
  • 怎么登录聊天平台,例如QQ?

    • 你有这个问题说明你不是很了解这个项目,本项目不负责实现登录功能,只负责处理和回应消息,登录功能由实现端(协议端)提供, 实现端本身不负责处理响应逻辑,将消息按照OneBot标准处理好上报给轻雪 你需要使用Onebot标准的实现端来连接到轻雪并将消息上报给轻雪,下面已经列出一些推荐的实现端
  • Playwright安装失败

    • 输入playwright install安装浏览器
  • 有的插件安装后报错无法启动

    • 请先查阅插件文档,确认插件必要配置项完好后,仍然出现问题,请联系插件作者或在安全模式safe_mode: true下启动轻雪,在安全模式下你可以使用npm uninstall卸载问题插件
  • 其他问题

    加入QQ群775840726

推荐方案(QQ)

  1. Lagrange.OneBot,基于NTQQ的OneBot实现,目前Markdown消息支持Lagrange
  2. LLOneBot,NTQQ的OneBot插件,需要安装NTQQ
  3. OpenShamrock,基于Lsposed的OneBot11实现
  4. TRSS-Yunzai,基于node.js,可使用ws-plugin进行通信
  5. go-cqhttpgo语言实现的OneBot11实现端,目前可用性较低
  6. Gensokyo,基于 OneBot QQ官方机器人Api Golang 原生实现,需要官方机器人权限
  7. 人工实现的Onebot协议,自己整一个WebSocket客户端,看着QQ的消息,然后给轻雪传输数据

推荐方案(Minecraft)

  1. MinecraftOneBot,我们专门为Minecraft开发的服务器Bot,支持OneBotV11标准

使用其他项目连接请先自行查阅文档,若有困难请联系对应开发者而不是Liteyuki的开发者

鸣谢

文档由 VitePress 构建 | API引用由 litedoc 生成

+ \ No newline at end of file diff --git a/deploy/install.html b/deploy/install.html index cfdd9fe0..865e1d33 100644 --- a/deploy/install.html +++ b/deploy/install.html @@ -5,21 +5,21 @@ 安装 | 轻雪机器人 - - + + - + - - - + + + -
Skip to content

安装

常规部署

  1. 安装 GitPython3.10+ 环境
bash
# 克隆项目到本地,轻雪使用Git进行版本管理,该步骤为必要项
+    
Skip to content

安装

常规部署

  1. 安装 GitPython3.10+ 环境
bash
# 克隆项目到本地,轻雪使用Git进行版本管理,该步骤为必要项
 git clone https://github.com/LiteyukiStudio/LiteyukiBot --depth=1 # 若你不能访问Github,可以使用Liteyuki镜像:https://git.liteyuki.icu/LiteyukiStudio/LiteyukiBot
 
 # 切换到Bot目录下
@@ -27,8 +27,8 @@
 # 安装依赖
 pip install -r requirements.txt
 # 启动Bot
-python main.py

TIP

推荐使用虚拟环境来运行轻雪,以避免依赖冲突,你可以使用python -m venv .venv来创建虚拟环境,然后使用.venv\Scripts\activate来激活虚拟环境(Linux下使用source .venv/bin/activate激活)

使用Docker构建

  1. 安装 Docker
  2. 克隆项目 git clone https://github.com/LiteyukiStudio/LiteyukiBot --depth=1
  3. 进入轻雪目录 cd LiteyukiBot
  4. 构建镜像 docker build -t liteyukibot .
  5. 启动容器 docker run -p 20216:20216 -v $(pwd):/liteyukibot -v $(pwd)/.cache:/root/.cache liteyukibot

TIP

Windows请使用项目绝对目录/path/to/LiteyukiBot代替$(pwd)
若你修改了端口号请将20216:20216中的20216替换为你的端口号

使用TRSS Scripts部署

TRSS_Liteyuki轻雪机器人管理脚本,该功能由TRSS提供支持,不是LiteyukiBot官方提供的功能,推荐使用Arch Linux

装置要求

  • Windows系统版本最低Windows10+/Windows Server 2019+
  • Linux系统要支持Python3.10+,推荐Ubuntu 20.04+(别用你那b CentOS)
  • CPU: 至少1vCPU
  • 内存: Bot无其他插件会占用300~500MB,包括chromiumnode等进程,其他插件占用视具体插件而定,建议1GB以上
  • 硬盘: 至少1GB空间

WARNING

如果装置上有多个环境,请使用path/to/python -m pip install -r requirements.txt来安装依赖,path/to/python为你的Python可执行文件路径

WARNING

轻雪的更新功能依赖Git,如果你没有安装Git直接下载源代码运行,你将无法使用更新功能

其他问题请移步至答疑

文档由 VitePress 构建 | API引用由 litedoc 生成

- +python main.py

TIP

推荐使用虚拟环境来运行轻雪,以避免依赖冲突,你可以使用python -m venv .venv来创建虚拟环境,然后使用.venv\Scripts\activate来激活虚拟环境(Linux下使用source .venv/bin/activate激活)

使用Docker构建

  1. 安装 Docker
  2. 克隆项目 git clone https://github.com/LiteyukiStudio/LiteyukiBot --depth=1
  3. 进入轻雪目录 cd LiteyukiBot
  4. 构建镜像 docker build -t liteyukibot .
  5. 启动容器 docker run -p 20216:20216 -v $(pwd):/liteyukibot -v $(pwd)/.cache:/root/.cache liteyukibot

TIP

Windows请使用项目绝对目录/path/to/LiteyukiBot代替$(pwd)
若你修改了端口号请将20216:20216中的20216替换为你的端口号

使用TRSS Scripts部署

TRSS_Liteyuki轻雪机器人管理脚本,该功能由TRSS提供支持,不是LiteyukiBot官方提供的功能,推荐使用Arch Linux

装置要求

  • Windows系统版本最低Windows10+/Windows Server 2019+
  • Linux系统要支持Python3.10+,推荐Ubuntu 20.04+(别用你那b CentOS)
  • CPU: 至少1vCPU
  • 内存: Bot无其他插件会占用300~500MB,包括chromiumnode等进程,其他插件占用视具体插件而定,建议1GB以上
  • 硬盘: 至少1GB空间

WARNING

如果装置上有多个环境,请使用path/to/python -m pip install -r requirements.txt来安装依赖,path/to/python为你的Python可执行文件路径

WARNING

轻雪的更新功能依赖Git,如果你没有安装Git直接下载源代码运行,你将无法使用更新功能

其他问题请移步至答疑

文档由 VitePress 构建 | API引用由 litedoc 生成

+ \ No newline at end of file diff --git a/dev/api/bot/index.html b/dev/api/bot/index.html index b576369f..5d965792 100644 --- a/dev/api/bot/index.html +++ b/dev/api/bot/index.html @@ -5,21 +5,21 @@ liteyuki.bot | 轻雪机器人 - - + + - + - - - + + + -
Skip to content

模块 liteyuki.bot

class LiteyukiBot


func __init__(self, **kwargs) -> None

说明: 初始化轻雪实例

参数:

  • **kwargs: 配置
源代码在GitHub上查看
python
def __init__(self, **kwargs) -> None:
+    
Skip to content

模块 liteyuki.bot

class LiteyukiBot


func __init__(self, **kwargs) -> None

说明: 初始化轻雪实例

参数:

  • **kwargs: 配置
源代码在GitHub上查看
python
def __init__(self, **kwargs) -> None:
     """常规操作"""
     print_logo()
     global _BOT_INSTANCE
@@ -100,8 +100,8 @@
         if compat_key in get_bot().config:
             logger.warning(f'Config key "{compat_key}" will be deprecated, use "{key}" instead.')
             return get_bot().config[compat_key]
-    return default

文档由 VitePress 构建 | API引用由 litedoc 生成

- + return default

文档由 VitePress 构建 | API引用由 litedoc 生成

+ \ No newline at end of file diff --git a/dev/api/bot/lifespan.html b/dev/api/bot/lifespan.html index 610618c9..cfdef09b 100644 --- a/dev/api/bot/lifespan.html +++ b/dev/api/bot/lifespan.html @@ -5,21 +5,21 @@ liteyuki.bot.lifespan | 轻雪机器人 - - + + - + - - - + + + -
Skip to content

模块 liteyuki.bot.lifespan

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/23 下午8:24 @Author : snowykami @Email : snowykami@outlook.com @File : lifespan.py @Software: PyCharm

var SYNC_LIFESPAN_FUNC

  • 说明: 同步生命周期函数

  • 类型: TypeAlias

  • 默认值: Callable[[], Any]

var ASYNC_LIFESPAN_FUNC

  • 说明: 异步生命周期函数

  • 类型: TypeAlias

  • 默认值: Callable[[], Awaitable[Any]]

var LIFESPAN_FUNC

  • 说明: 生命周期函数

  • 类型: TypeAlias

  • 默认值: SYNC_LIFESPAN_FUNC | ASYNC_LIFESPAN_FUNC

var SYNC_PROCESS_LIFESPAN_FUNC

  • 说明: 同步进程生命周期函数

  • 类型: TypeAlias

  • 默认值: Callable[[str], Any]

var ASYNC_PROCESS_LIFESPAN_FUNC

  • 说明: 异步进程生命周期函数

  • 类型: TypeAlias

  • 默认值: Callable[[str], Awaitable[Any]]

var PROCESS_LIFESPAN_FUNC

  • 说明: 进程函数

  • 类型: TypeAlias

  • 默认值: SYNC_PROCESS_LIFESPAN_FUNC | ASYNC_PROCESS_LIFESPAN_FUNC

class Lifespan


func __init__(self) -> None

说明: 轻雪生命周期管理,启动、停止、重启

源代码在GitHub上查看
python
def __init__(self) -> None:
+    
Skip to content

模块 liteyuki.bot.lifespan

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/23 下午8:24 @Author : snowykami @Email : snowykami@outlook.com @File : lifespan.py @Software: PyCharm

var SYNC_LIFESPAN_FUNC

  • 说明: 同步生命周期函数

  • 类型: TypeAlias

  • 默认值: Callable[[], Any]

var ASYNC_LIFESPAN_FUNC

  • 说明: 异步生命周期函数

  • 类型: TypeAlias

  • 默认值: Callable[[], Awaitable[Any]]

var LIFESPAN_FUNC

  • 说明: 生命周期函数

  • 类型: TypeAlias

  • 默认值: SYNC_LIFESPAN_FUNC | ASYNC_LIFESPAN_FUNC

var SYNC_PROCESS_LIFESPAN_FUNC

  • 说明: 同步进程生命周期函数

  • 类型: TypeAlias

  • 默认值: Callable[[str], Any]

var ASYNC_PROCESS_LIFESPAN_FUNC

  • 说明: 异步进程生命周期函数

  • 类型: TypeAlias

  • 默认值: Callable[[str], Awaitable[Any]]

var PROCESS_LIFESPAN_FUNC

  • 说明: 进程函数

  • 类型: TypeAlias

  • 默认值: SYNC_PROCESS_LIFESPAN_FUNC | ASYNC_PROCESS_LIFESPAN_FUNC

class Lifespan


func __init__(self) -> None

说明: 轻雪生命周期管理,启动、停止、重启

源代码在GitHub上查看
python
def __init__(self) -> None:
     self.life_flag: int = 0
     self._before_start_funcs: list[LIFESPAN_FUNC] = []
     self._after_start_funcs: list[LIFESPAN_FUNC] = []
@@ -53,8 +53,8 @@
     logger.debug('Running before_restart functions')
     await self.run_funcs(self._before_process_restart_funcs, *args, **kwargs)

async func after_restart(self) -> None

说明: 重启后钩子 未实现

源代码在GitHub上查看
python
async def after_restart(self) -> None:
     logger.debug('Running after_restart functions')
-    await self.run_funcs(self._after_restart_funcs)

文档由 VitePress 构建 | API引用由 litedoc 生成

- + await self.run_funcs(self._after_restart_funcs)

文档由 VitePress 构建 | API引用由 litedoc 生成

+ \ No newline at end of file diff --git a/dev/api/comm/channel.html b/dev/api/comm/channel.html index b96705ed..b35c2e1c 100644 --- a/dev/api/comm/channel.html +++ b/dev/api/comm/channel.html @@ -5,21 +5,21 @@ liteyuki.comm.channel | 轻雪机器人 - - + + - + - - - + + + -
Skip to content

模块 liteyuki.comm.channel

本模块定义了一个通用的通道类,用于进程间通信

var SYNC_ON_RECEIVE_FUNC

  • 说明: 同步接收函数

  • 类型: TypeAlias

  • 默认值: Callable[[T], Any]

var ON_RECEIVE_FUNC

  • 说明: 接收函数

  • 类型: TypeAlias

  • 默认值: SYNC_ON_RECEIVE_FUNC | ASYNC_ON_RECEIVE_FUNC

var SYNC_FILTER_FUNC

  • 说明: 同步过滤函数

  • 类型: TypeAlias

  • 默认值: Callable[[T], bool]

var ASYNC_FILTER_FUNC

  • 说明: 异步过滤函数

  • 类型: TypeAlias

  • 默认值: Callable[[T], Coroutine[Any, Any, bool]]

var FILTER_FUNC

  • 说明: 过滤函数

  • 类型: TypeAlias

  • 默认值: SYNC_FILTER_FUNC | ASYNC_FILTER_FUNC

class Channel(Generic[T])


func __init__(self, name: str, type_check: Optional[bool] = None)

说明: 初始化通道

参数:

  • name: 通道ID
  • type_check: 是否开启类型检查, 若为空,则传入泛型默认开启,否则默认关闭
源代码在GitHub上查看
python
def __init__(self, name: str, type_check: Optional[bool]=None):
+    
Skip to content

模块 liteyuki.comm.channel

本模块定义了一个通用的通道类,用于进程间通信

var SYNC_ON_RECEIVE_FUNC

  • 说明: 同步接收函数

  • 类型: TypeAlias

  • 默认值: Callable[[T], Any]

var ON_RECEIVE_FUNC

  • 说明: 接收函数

  • 类型: TypeAlias

  • 默认值: SYNC_ON_RECEIVE_FUNC | ASYNC_ON_RECEIVE_FUNC

var SYNC_FILTER_FUNC

  • 说明: 同步过滤函数

  • 类型: TypeAlias

  • 默认值: Callable[[T], bool]

var ASYNC_FILTER_FUNC

  • 说明: 异步过滤函数

  • 类型: TypeAlias

  • 默认值: Callable[[T], Coroutine[Any, Any, bool]]

var FILTER_FUNC

  • 说明: 过滤函数

  • 类型: TypeAlias

  • 默认值: SYNC_FILTER_FUNC | ASYNC_FILTER_FUNC

class Channel(Generic[T])


func __init__(self, name: str, type_check: Optional[bool] = None)

说明: 初始化通道

参数:

  • name: 通道ID
  • type_check: 是否开启类型检查, 若为空,则传入泛型默认开启,否则默认关闭
源代码在GitHub上查看
python
def __init__(self, name: str, type_check: Optional[bool]=None):
     self.conn_send, self.conn_recv = Pipe()
     self._conn_send_inner, self._conn_recv_inner = Pipe()
     self._closed = False
@@ -112,8 +112,8 @@
     recv_chan.send(get_channel(name))

@channel_deliver_passive_channel.on_receive(filter_func=lambda data: data[0] == 'get_channels')

func on_get_channels(data: tuple[str, dict[str, Any]])

源代码在GitHub上查看
python
@channel_deliver_passive_channel.on_receive(filter_func=lambda data: data[0] == 'get_channels')
 def on_get_channels(data: tuple[str, dict[str, Any]]):
     recv_chan = data[1]['recv_chan']
-    recv_chan.send(get_channels())

文档由 VitePress 构建 | API引用由 litedoc 生成

- + recv_chan.send(get_channels())

文档由 VitePress 构建 | API引用由 litedoc 生成

+ \ No newline at end of file diff --git a/dev/api/comm/event.html b/dev/api/comm/event.html index c2744aaa..1a84297f 100644 --- a/dev/api/comm/event.html +++ b/dev/api/comm/event.html @@ -5,24 +5,24 @@ liteyuki.comm.event | 轻雪机器人 - - + + - + - - - + + + -
Skip to content

模块 liteyuki.comm.event

本模块用于轻雪主进程和子进程之间的通信的事件类

class Event


func __init__(self, name: str, data: dict[str, Any])

源代码在GitHub上查看
python
def __init__(self, name: str, data: dict[str, Any]):
+    
-    
+    self.data = data

文档由 VitePress 构建 | API引用由 litedoc 生成

+ \ No newline at end of file diff --git a/dev/api/comm/index.html b/dev/api/comm/index.html index c8b12b11..c46c193e 100644 --- a/dev/api/comm/index.html +++ b/dev/api/comm/index.html @@ -5,22 +5,22 @@ liteyuki.comm | 轻雪机器人 - - + + - + - - - + + + - - + + \ No newline at end of file diff --git a/dev/api/comm/socks_channel.html b/dev/api/comm/socks_channel.html deleted file mode 100644 index 26416145..00000000 --- a/dev/api/comm/socks_channel.html +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - liteyuki.comm.socks_channel | 轻雪机器人 - - - - - - - - - - - - - - - -
Skip to content

模块 liteyuki.comm.socks_channel

基于socket的通道

class SocksChannel


func __init__(self, name: str)

说明: 初始化通道

参数:

  • name: 通道ID
源代码在GitHub上查看
python
def __init__(self, name: str):
-    self._name = name
-    self._conn_send = None
-    self._conn_recv = None
-    self._closed = False

func send(self, data)

说明: 发送数据

参数:

  • data: 数据
源代码在GitHub上查看
python
def send(self, data):
-    pass

func receive(self)

说明: 接收数据

返回: data: 数据

源代码在GitHub上查看
python
def receive(self):
-    pass

func close(self)

说明: 关闭通道

源代码在GitHub上查看
python
def close(self):
-    pass

文档由 VitePress 构建 | API引用由 litedoc 生成

- - - - \ No newline at end of file diff --git a/dev/api/comm/storage.html b/dev/api/comm/storage.html index cdcb22e7..0417004d 100644 --- a/dev/api/comm/storage.html +++ b/dev/api/comm/storage.html @@ -5,21 +5,21 @@ liteyuki.comm.storage | 轻雪机器人 - - + + - + - - - + + + -
Skip to content

模块 liteyuki.comm.storage

共享内存模块。类似于redis,但是更加轻量级并且线程安全

var _on_main_subscriber_receive_funcs

  • 说明: 主进程订阅者接收函数

  • 类型: dict[str, list[ASYNC_ON_RECEIVE_FUNC]]

  • 默认值: {}

var _on_sub_subscriber_receive_funcs

  • 说明: 子进程订阅者接收函数

  • 类型: dict[str, list[ASYNC_ON_RECEIVE_FUNC]]

  • 默认值: {}

class KeyValueStore


func __init__(self)

源代码在GitHub上查看
python
def __init__(self):
+    
Skip to content

模块 liteyuki.comm.storage

共享内存模块。类似于redis,但是更加轻量级并且线程安全

var _on_main_subscriber_receive_funcs

  • 说明: 主进程订阅者接收函数

  • 类型: dict[str, list[ASYNC_ON_RECEIVE_FUNC]]

  • 默认值: {}

var _on_sub_subscriber_receive_funcs

  • 说明: 子进程订阅者接收函数

  • 类型: dict[str, list[ASYNC_ON_RECEIVE_FUNC]]

  • 默认值: {}

class KeyValueStore


func __init__(self)

源代码在GitHub上查看
python
def __init__(self):
     self._store = {}
     self.active_chan = Channel[tuple[str, Optional[dict[str, Any]]]](name='shared_memory-active')
     self.passive_chan = Channel[tuple[str, Optional[dict[str, Any]]]](name='shared_memory-passive')
@@ -108,8 +108,8 @@
     shared_memory.delete(key)

@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'get_all')

func on_get_all(data: tuple[str, dict[str, Any]])

源代码在GitHub上查看
python
@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'get_all')
 def on_get_all(data: tuple[str, dict[str, Any]]):
     recv_chan = data[1]['recv_chan']
-    recv_chan.send(shared_memory.get_all())

文档由 VitePress 构建 | API引用由 litedoc 生成

- + recv_chan.send(shared_memory.get_all())

文档由 VitePress 构建 | API引用由 litedoc 生成

+ \ No newline at end of file diff --git a/dev/api/config.html b/dev/api/config.html index 239dd64c..3a7afeef 100644 --- a/dev/api/config.html +++ b/dev/api/config.html @@ -5,21 +5,21 @@ liteyuki.config | 轻雪机器人 - - + + - + - - - + + + -
Skip to content

模块 liteyuki.config

该模块用于常用配置文件的加载 多配置文件编写原则:

  1. 尽量不要冲突: 一个键不要多次出现
  2. 分工明确: 每个配置文件给一个或一类服务提供配置
  3. 扁平化编写: 配置文件尽量扁平化,不要出现过多的嵌套
  4. 注意冲突时的优先级: 项目目录下的配置文件优先级高于config目录下的配置文件
  5. 请不要将需要动态加载的内容写入配置文件,你应该使用其他储存方式

func flat_config(config: dict[str, Any]) -> dict[str, Any]

说明: 扁平化配置文件

{a:{b:{c:1}}} ->

参数:

  • config: 配置项目

返回: 扁平化后的配置文件,但也包含原有的键值对

源代码在GitHub上查看
python
def flat_config(config: dict[str, Any]) -> dict[str, Any]:
+    
Skip to content

模块 liteyuki.config

该模块用于常用配置文件的加载 多配置文件编写原则:

  1. 尽量不要冲突: 一个键不要多次出现
  2. 分工明确: 每个配置文件给一个或一类服务提供配置
  3. 扁平化编写: 配置文件尽量扁平化,不要出现过多的嵌套
  4. 注意冲突时的优先级: 项目目录下的配置文件优先级高于config目录下的配置文件
  5. 请不要将需要动态加载的内容写入配置文件,你应该使用其他储存方式

func flat_config(config: dict[str, Any]) -> dict[str, Any]

说明: 扁平化配置文件

{a:{b:{c:1}}} ->

参数:

  • config: 配置项目

返回: 扁平化后的配置文件,但也包含原有的键值对

源代码在GitHub上查看
python
def flat_config(config: dict[str, Any]) -> dict[str, Any]:
     new_config = copy.deepcopy(config)
     for key, value in config.items():
         if isinstance(value, dict):
@@ -61,8 +61,8 @@
     return config

func load_config_in_default(no_waring: bool = False) -> dict[str, Any]

说明: 从一个标准的轻雪项目加载配置文件 项目目录下的config.*和config目录下的所有配置文件 项目目录下的配置文件优先

源代码在GitHub上查看
python
def load_config_in_default(no_waring: bool=False) -> dict[str, Any]:
     config = load_configs_from_dirs('config', no_waring=no_waring)
     config.update(load_from_files('config.yaml', 'config.toml', 'config.json', 'config.yml', no_warning=no_waring))
-    return config

文档由 VitePress 构建 | API引用由 litedoc 生成

- + return config

文档由 VitePress 构建 | API引用由 litedoc 生成

+ \ No newline at end of file diff --git a/dev/api/core/index.html b/dev/api/core/index.html index b672c2fa..c255e068 100644 --- a/dev/api/core/index.html +++ b/dev/api/core/index.html @@ -5,22 +5,22 @@ liteyuki.core | 轻雪机器人 - - + + - + - - - + + + - - + + \ No newline at end of file diff --git a/dev/api/core/manager.html b/dev/api/core/manager.html index 2791b7c6..f1f7b399 100644 --- a/dev/api/core/manager.html +++ b/dev/api/core/manager.html @@ -5,21 +5,21 @@ liteyuki.core.manager | 轻雪机器人 - - + + - + - - - + + + -
Skip to content

模块 liteyuki.core.manager

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/27 上午11:12 @Author : snowykami @Email : snowykami@outlook.com @File : manager.py @Software: PyCharm

class ChannelDeliver


func __init__(self, active: Channel[Any], passive: Channel[Any], channel_deliver_active: Channel[Channel[Any]], channel_deliver_passive: Channel[tuple[str, dict]], publish: Channel[tuple[str, Any]])

源代码在GitHub上查看
python
def __init__(self, active: Channel[Any], passive: Channel[Any], channel_deliver_active: Channel[Channel[Any]], channel_deliver_passive: Channel[tuple[str, dict]], publish: Channel[tuple[str, Any]]):
+    
Skip to content

模块 liteyuki.core.manager

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/27 上午11:12 @Author : snowykami @Email : snowykami@outlook.com @File : manager.py @Software: PyCharm

class ChannelDeliver


func __init__(self, active: Channel[Any], passive: Channel[Any], channel_deliver_active: Channel[Channel[Any]], channel_deliver_passive: Channel[tuple[str, dict]], publish: Channel[tuple[str, Any]])

源代码在GitHub上查看
python
def __init__(self, active: Channel[Any], passive: Channel[Any], channel_deliver_active: Channel[Channel[Any]], channel_deliver_passive: Channel[tuple[str, dict]], publish: Channel[tuple[str, Any]]):
     self.active = active
     self.passive = passive
     self.channel_deliver_active = channel_deliver_active
@@ -64,8 +64,8 @@
     self.processes[name].start()

func start_all(self)

说明: 启动所有子进程

源代码在GitHub上查看
python
def start_all(self):
     for name, process in self.processes.items():
         process.start()
-        logger.debug(f'Starting process {name}')

文档由 VitePress 构建 | API引用由 litedoc 生成

- + logger.debug(f'Starting process {name}')

文档由 VitePress 构建 | API引用由 litedoc 生成

+ \ No newline at end of file diff --git a/dev/api/dev/index.html b/dev/api/dev/index.html index 491659a8..b416f2f0 100644 --- a/dev/api/dev/index.html +++ b/dev/api/dev/index.html @@ -5,22 +5,22 @@ liteyuki.dev | 轻雪机器人 - - + + - + - - - + + + - - + + \ No newline at end of file diff --git a/dev/api/dev/observer.html b/dev/api/dev/observer.html index d5585025..6614fcd0 100644 --- a/dev/api/dev/observer.html +++ b/dev/api/dev/observer.html @@ -5,21 +5,21 @@ liteyuki.dev.observer | 轻雪机器人 - - + + - + - - - + + + -
Skip to content

模块 liteyuki.dev.observer

此模块用于注册观察者函数,使用watchdog监控文件变化并重启bot 启用该模块需要在配置文件中设置dev_mode为True

var CALLBACK_FUNC

  • 说明: 位置1为FileSystemEvent

  • 类型: TypeAlias

  • 默认值: Callable[[FileSystemEvent], None]

var FILTER_FUNC

  • 说明: 位置1为FileSystemEvent

  • 类型: TypeAlias

  • 默认值: Callable[[FileSystemEvent], bool]


func debounce(wait)

说明: 防抖函数

源代码在GitHub上查看
python
def debounce(wait):
+    
Skip to content

模块 liteyuki.dev.observer

此模块用于注册观察者函数,使用watchdog监控文件变化并重启bot 启用该模块需要在配置文件中设置dev_mode为True

var CALLBACK_FUNC

  • 说明: 位置1为FileSystemEvent

  • 类型: TypeAlias

  • 默认值: Callable[[FileSystemEvent], None]

var FILTER_FUNC

  • 说明: 位置1为FileSystemEvent

  • 类型: TypeAlias

  • 默认值: Callable[[FileSystemEvent], bool]


func debounce(wait)

说明: 防抖函数

源代码在GitHub上查看
python
def debounce(wait):
 
     def decorator(func):
 
@@ -50,8 +50,8 @@
         for directory in directories:
             observer.schedule(code_modified_handler, directory, recursive=recursive)
         return func
-    return decorator

文档由 VitePress 构建 | API引用由 litedoc 生成

- + return decorator

文档由 VitePress 构建 | API引用由 litedoc 生成

+ \ No newline at end of file diff --git a/dev/api/dev/plugin.html b/dev/api/dev/plugin.html index ae472ff8..daad9682 100644 --- a/dev/api/dev/plugin.html +++ b/dev/api/dev/plugin.html @@ -5,28 +5,28 @@ liteyuki.dev.plugin | 轻雪机器人 - - + + - + - - - + + + -
Skip to content

模块 liteyuki.dev.plugin

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/18 上午5:04 @Author : snowykami @Email : snowykami@outlook.com @File : plugin.py @Software: PyCharm


func run_plugins(*module_path: str | Path)

说明: 运行插件,无需手动初始化bot

参数:

  • module_path: 插件路径,参考liteyuki.load_plugin的函数签名
源代码在GitHub上查看
python
def run_plugins(*module_path: str | Path):
+    
Skip to content

模块 liteyuki.dev.plugin

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/18 上午5:04 @Author : snowykami @Email : snowykami@outlook.com @File : plugin.py @Software: PyCharm


func run_plugins(*module_path: str | Path)

说明: 运行插件,无需手动初始化bot

参数:

  • module_path: 插件路径,参考liteyuki.load_plugin的函数签名
源代码在GitHub上查看
python
def run_plugins(*module_path: str | Path):
     cfg = load_config_in_default()
     plugins = cfg.get('liteyuki.plugins', [])
     plugins.extend(module_path)
     cfg['liteyuki.plugins'] = plugins
     bot = LiteyukiBot(**cfg)
-    bot.run()

文档由 VitePress 构建 | API引用由 litedoc 生成

- + bot.run()

文档由 VitePress 构建 | API引用由 litedoc 生成

+ \ No newline at end of file diff --git a/dev/api/exception.html b/dev/api/exception.html index fcaa1ffa..6c524189 100644 --- a/dev/api/exception.html +++ b/dev/api/exception.html @@ -5,22 +5,22 @@ liteyuki.exception | 轻雪机器人 - - + + - + - - - + + + - - + + \ No newline at end of file diff --git a/dev/api/index.html b/dev/api/index.html index c3f10e9c..06a27dfa 100644 --- a/dev/api/index.html +++ b/dev/api/index.html @@ -5,22 +5,22 @@ liteyuki API | 轻雪机器人 - - + + - + - - - + + + - - + + \ No newline at end of file diff --git a/dev/api/log.html b/dev/api/log.html index e796c506..f4ad0bbe 100644 --- a/dev/api/log.html +++ b/dev/api/log.html @@ -5,21 +5,21 @@ liteyuki.log | 轻雪机器人 - - + + - + - - - + + + -
Skip to content

模块 liteyuki.log

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/27 上午9:12 @Author : snowykami @Email : snowykami@outlook.com @File : log.py @Software: PyCharm


func get_format(level: str) -> str

源代码在GitHub上查看
python
def get_format(level: str) -> str:
+    
Skip to content

模块 liteyuki.log

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/27 上午9:12 @Author : snowykami @Email : snowykami@outlook.com @File : log.py @Software: PyCharm


func get_format(level: str) -> str

源代码在GitHub上查看
python
def get_format(level: str) -> str:
     if level == 'DEBUG':
         return debug_format
     else:
@@ -31,8 +31,8 @@
     logger.level('INFO', color='<normal>', icon=f"{('ℹ️' if show_icon else '')}INFO")
     logger.level('SUCCESS', color='<green>', icon=f"{('✅' if show_icon else '')}SUCCESS")
     logger.level('WARNING', color='<yellow>', icon=f"{('⚠️' if show_icon else '')}WARNING")
-    logger.level('ERROR', color='<red>', icon=f"{('⭕' if show_icon else '')}ERROR")

文档由 VitePress 构建 | API引用由 litedoc 生成

- + logger.level('ERROR', color='<red>', icon=f"{('⭕' if show_icon else '')}ERROR")

文档由 VitePress 构建 | API引用由 litedoc 生成

+ \ No newline at end of file diff --git a/dev/api/message/event.html b/dev/api/message/event.html deleted file mode 100644 index 85278a28..00000000 --- a/dev/api/message/event.html +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - liteyuki.message.event | 轻雪机器人 - - - - - - - - - - - - - - - -
Skip to content

模块 liteyuki.message.event

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 下午10:47 @Author : snowykami @Email : snowykami@outlook.com @File : event.py @Software: PyCharm

class MessageEvent


func __init__(self, bot_id: str, message: list[dict[str, Any]] | str, message_type: str, raw_message: str, session_id: str, user_id: str, session_type: str, receive_channel: Optional[Channel[MessageEvent]] = None, data: Optional[dict[str, Any]] = None)

说明: 轻雪抽象消息事件

源代码在GitHub上查看
python
def __init__(self, bot_id: str, message: list[dict[str, Any]] | str, message_type: str, raw_message: str, session_id: str, user_id: str, session_type: str, receive_channel: Optional[Channel['MessageEvent']]=None, data: Optional[dict[str, Any]]=None):
-    if data is None:
-        data = {}
-    self.message_type = message_type
-    self.data = data
-    self.bot_id = bot_id
-    self.message = message
-    self.raw_message = raw_message
-    self.session_id = session_id
-    self.session_type = session_type
-    self.user_id = user_id
-    self.receive_channel = receive_channel

func reply(self, message: str | dict[str, Any])

说明: 回复消息

参数:

  • message:
源代码在GitHub上查看
python
def reply(self, message: str | dict[str, Any]):
-    reply_event = MessageEvent(message_type=self.session_type, message=message, raw_message='', data={'message': message}, bot_id=self.bot_id, session_id=self.session_id, user_id=self.user_id, session_type=self.session_type, receive_channel=None)
-    if self.receive_channel:
-        self.receive_channel.send(reply_event)

文档由 VitePress 构建 | API引用由 litedoc 生成

- - - - \ No newline at end of file diff --git a/dev/api/message/index.html b/dev/api/message/index.html deleted file mode 100644 index c6444aaf..00000000 --- a/dev/api/message/index.html +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - liteyuki.message | 轻雪机器人 - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/dev/api/message/matcher.html b/dev/api/message/matcher.html deleted file mode 100644 index 108ceef7..00000000 --- a/dev/api/message/matcher.html +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - liteyuki.message.matcher | 轻雪机器人 - - - - - - - - - - - - - - - -
Skip to content

模块 liteyuki.message.matcher

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 下午10:51 @Author : snowykami @Email : snowykami@outlook.com @File : matcher.py @Software: PyCharm

class Matcher


func __init__(self, rule: Rule, priority: int, block: bool)

说明: 匹配器

参数:

  • rule: 规则
  • priority: 优先级 >= 0
  • block: 是否阻断后续优先级更低的匹配器
源代码在GitHub上查看
python
def __init__(self, rule: Rule, priority: int, block: bool):
-    self.rule = rule
-    self.priority = priority
-    self.block = block
-    self.handlers: list[EventHandler] = []

func handle(self) -> Callable[[EventHandler], EventHandler]

说明: 添加处理函数,装饰器

返回: 装饰器 handler

源代码在GitHub上查看
python
def handle(self) -> Callable[[EventHandler], EventHandler]:
-
-    def decorator(handler: EventHandler) -> EventHandler:
-        self.handlers.append(handler)
-        return handler
-    return decorator

async func run(self, event: MessageEvent) -> None

说明: 运行处理函数

参数:

  • event:
源代码在GitHub上查看
python
async def run(self, event: MessageEvent) -> None:
-    if not await self.rule(event):
-        return
-    for handler in self.handlers:
-        try:
-            await handler(event)
-        except Exception:
-            traceback.print_exc()

文档由 VitePress 构建 | API引用由 litedoc 生成

- - - - \ No newline at end of file diff --git a/dev/api/message/on.html b/dev/api/message/on.html deleted file mode 100644 index 34d6b6eb..00000000 --- a/dev/api/message/on.html +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - liteyuki.message.on | 轻雪机器人 - - - - - - - - - - - - - - - -
Skip to content

模块 liteyuki.message.on

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 下午10:52 @Author : snowykami @Email : snowykami@outlook.com @File : on.py @Software: PyCharm


func add_matcher(matcher: Matcher)

源代码在GitHub上查看
python
def add_matcher(matcher: Matcher):
-    for i, m in enumerate(_matcher_list):
-        if m.priority < matcher.priority:
-            _matcher_list.insert(i, matcher)
-            break
-    else:
-        _matcher_list.append(matcher)

func on_message(rule: Rule = empty_rule, priority: int = 0, block: bool = False) -> Matcher

源代码在GitHub上查看
python
def on_message(rule: Rule=empty_rule, priority: int=0, block: bool=False) -> Matcher:
-    matcher = Matcher(rule, priority, block)
-    add_matcher(matcher)
-    return matcher

func on_keywords(keywords: list[str], rule = empty_rule, priority: int = 0, block: bool = False) -> Matcher

源代码在GitHub上查看
python
def on_keywords(keywords: list[str], rule=empty_rule, priority: int=0, block: bool=False) -> Matcher:
-
-    @Rule
-    async def on_keywords_rule(event: MessageEvent):
-        return any((keyword in event.raw_message for keyword in keywords))
-    return on_message(on_keywords_rule & rule, priority, block)

文档由 VitePress 构建 | API引用由 litedoc 生成

- - - - \ No newline at end of file diff --git a/dev/api/message/rule.html b/dev/api/message/rule.html deleted file mode 100644 index 2daff2c1..00000000 --- a/dev/api/message/rule.html +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - liteyuki.message.rule | 轻雪机器人 - - - - - - - - - - - - - - - -
Skip to content

模块 liteyuki.message.rule

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 下午10:55 @Author : snowykami @Email : snowykami@outlook.com @File : rule.py @Software: PyCharm

var RuleHandlerFunc

  • 说明: 规则函数签名

  • 类型: TypeAlias

  • 默认值: Callable[[MessageEvent], Coroutine[None, None, bool]]

class Rule


func __init__(self, handler: RuleHandlerFunc)

源代码在GitHub上查看
python
def __init__(self, handler: RuleHandlerFunc):
-    self.handler = handler

func self | other: Rule => Rule

源代码在GitHub上查看
python
def __or__(self, other: 'Rule') -> 'Rule':
-
-    async def combined_handler(event: MessageEvent) -> bool:
-        return await self.handler(event) or await other.handler(event)
-    return Rule(combined_handler)

func self & other: Rule => Rule

源代码在GitHub上查看
python
def __and__(self, other: 'Rule') -> 'Rule':
-
-    async def combined_handler(event: MessageEvent) -> bool:
-        return await self.handler(event) and await other.handler(event)
-    return Rule(combined_handler)

async func self () event: MessageEvent => bool

源代码在GitHub上查看
python
async def __call__(self, event: MessageEvent) -> bool:
-    if self.handler is None:
-        return True
-    return await self.handler(event)

@Rule

async func empty_rule(event: MessageEvent) -> bool

源代码在GitHub上查看
python
@Rule
-async def empty_rule(event: MessageEvent) -> bool:
-    return True

@Rule

async func is_su_rule(event: MessageEvent) -> bool

源代码在GitHub上查看
python
@Rule
-async def is_su_rule(event: MessageEvent) -> bool:
-    return str(event.user_id) in _superusers

文档由 VitePress 构建 | API引用由 litedoc 生成

- - - - \ No newline at end of file diff --git a/dev/api/message/session.html b/dev/api/message/session.html deleted file mode 100644 index 6352d230..00000000 --- a/dev/api/message/session.html +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - liteyuki.message.session | 轻雪机器人 - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/dev/api/mkdoc.html b/dev/api/mkdoc.html index efab68b8..4645bf4b 100644 --- a/dev/api/mkdoc.html +++ b/dev/api/mkdoc.html @@ -5,21 +5,21 @@ liteyuki.mkdoc | 轻雪机器人 - - + + - + - - - + + + -
Skip to content

模块 liteyuki.mkdoc

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 上午6:23 @Author : snowykami @Email : snowykami@outlook.com @File : mkdoc.py @Software: PyCharm

class DefType(Enum)

attr FUNCTION = 'function'

attr METHOD = 'method'

attr STATIC_METHOD = 'staticmethod'

attr CLASS_METHOD = 'classmethod'

attr PROPERTY = 'property'

class FunctionInfo(BaseModel)

attr name: str = NO_DEFAULT

attr args: list[tuple[str, str]] = NO_DEFAULT

attr return_type: str = NO_DEFAULT

attr docstring: str = NO_DEFAULT

attr source_code: str = ''

attr type: DefType = NO_DEFAULT

attr is_async: bool = NO_DEFAULT

class AttributeInfo(BaseModel)

attr name: str = NO_DEFAULT

attr type: str = NO_DEFAULT

attr value: Any = None

attr docstring: str = ''

class ClassInfo(BaseModel)

attr name: str = NO_DEFAULT

attr docstring: str = NO_DEFAULT

attr methods: list[FunctionInfo] = NO_DEFAULT

attr attributes: list[AttributeInfo] = NO_DEFAULT

attr inherit: list[str] = NO_DEFAULT

class ModuleInfo(BaseModel)

attr module_path: str = NO_DEFAULT

attr functions: list[FunctionInfo] = NO_DEFAULT

attr classes: list[ClassInfo] = NO_DEFAULT

attr attributes: list[AttributeInfo] = NO_DEFAULT

attr docstring: str = NO_DEFAULT


func get_relative_path(base_path: str, target_path: str) -> str

说明: 获取相对路径

参数:

  • base_path: 基础路径
  • target_path: 目标路径
源代码在GitHub上查看
python
def get_relative_path(base_path: str, target_path: str) -> str:
+    
Skip to content

模块 liteyuki.mkdoc

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 上午6:23 @Author : snowykami @Email : snowykami@outlook.com @File : mkdoc.py @Software: PyCharm

class DefType(Enum)

attr FUNCTION = 'function'

attr METHOD = 'method'

attr STATIC_METHOD = 'staticmethod'

attr CLASS_METHOD = 'classmethod'

attr PROPERTY = 'property'

class FunctionInfo(BaseModel)

attr name: str = NO_DEFAULT

attr args: list[tuple[str, str]] = NO_DEFAULT

attr return_type: str = NO_DEFAULT

attr docstring: str = NO_DEFAULT

attr source_code: str = ''

attr type: DefType = NO_DEFAULT

attr is_async: bool = NO_DEFAULT

class AttributeInfo(BaseModel)

attr name: str = NO_DEFAULT

attr type: str = NO_DEFAULT

attr value: Any = None

attr docstring: str = ''

class ClassInfo(BaseModel)

attr name: str = NO_DEFAULT

attr docstring: str = NO_DEFAULT

attr methods: list[FunctionInfo] = NO_DEFAULT

attr attributes: list[AttributeInfo] = NO_DEFAULT

attr inherit: list[str] = NO_DEFAULT

class ModuleInfo(BaseModel)

attr module_path: str = NO_DEFAULT

attr functions: list[FunctionInfo] = NO_DEFAULT

attr classes: list[ClassInfo] = NO_DEFAULT

attr attributes: list[AttributeInfo] = NO_DEFAULT

attr docstring: str = NO_DEFAULT


func get_relative_path(base_path: str, target_path: str) -> str

说明: 获取相对路径

参数:

  • base_path: 基础路径
  • target_path: 目标路径
源代码在GitHub上查看
python
def get_relative_path(base_path: str, target_path: str) -> str:
     return os.path.relpath(target_path, base_path)

func write_to_files(file_data: dict[str, str])

说明: 输出文件

参数:

  • file_data: 文件数据 相对路径
源代码在GitHub上查看
python
def write_to_files(file_data: dict[str, str]):
     for rp, data in file_data.items():
         if not os.path.exists(os.path.dirname(rp)):
@@ -141,8 +141,8 @@
         md_content = generate_markdown(module_info, front_matter)
         print(f'Generate {pyfile_path} -> {abs_md_path}')
         file_data[abs_md_path] = md_content
-    write_to_files(file_data)

var no_module_name_pyfile_path

  • 说明: 去头路径

  • 默认值: get_relative_path(module_folder, pyfile_path)

文档由 VitePress 构建 | API引用由 litedoc 生成

- + write_to_files(file_data)

var no_module_name_pyfile_path

  • 说明: 去头路径

  • 默认值: get_relative_path(module_folder, pyfile_path)

文档由 VitePress 构建 | API引用由 litedoc 生成

+ \ No newline at end of file diff --git a/dev/api/plugin/index.html b/dev/api/plugin/index.html index b43a3141..21603c21 100644 --- a/dev/api/plugin/index.html +++ b/dev/api/plugin/index.html @@ -5,23 +5,23 @@ liteyuki.plugin | 轻雪机器人 - - + + - + - - - + + + - - + + \ No newline at end of file diff --git a/dev/api/plugin/load.html b/dev/api/plugin/load.html index bb03b65c..735b0673 100644 --- a/dev/api/plugin/load.html +++ b/dev/api/plugin/load.html @@ -5,21 +5,21 @@ liteyuki.plugin.load | 轻雪机器人 - - + + - + - - - + + + -
Skip to content

模块 liteyuki.plugin.load

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/23 下午11:59 @Author : snowykami @Email : snowykami@outlook.com @File : load.py @Software: PyCharm


func load_plugin(module_path: str | Path) -> Optional[Plugin]

说明: 加载单个插件,可以是本地插件或是通过 pip 安装的插件。

参数:

  • module_path: 插件名称 path.to.your.plugin
  • 或插件路径 pathlib.Path(path/to/your/plugin):
源代码在GitHub上查看
python
def load_plugin(module_path: str | Path) -> Optional[Plugin]:
+    
Skip to content

模块 liteyuki.plugin.load

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/23 下午11:59 @Author : snowykami @Email : snowykami@outlook.com @File : load.py @Software: PyCharm


func load_plugin(module_path: str | Path) -> Optional[Plugin]

说明: 加载单个插件,可以是本地插件或是通过 pip 安装的插件。

参数:

  • module_path: 插件名称 path.to.your.plugin
  • 或插件路径 pathlib.Path(path/to/your/plugin):
源代码在GitHub上查看
python
def load_plugin(module_path: str | Path) -> Optional[Plugin]:
     module_path = path_to_module_name(Path(module_path)) if isinstance(module_path, Path) else module_path
     try:
         module = import_module(module_path)
@@ -80,8 +80,8 @@
             color = 'e'
         case PluginType.SERVICE:
             color = 'c'
-    return f'<{color}>{display_name} [{plugin_type.name}]</{color}>'

文档由 VitePress 构建 | API引用由 litedoc 生成

- + return f'<{color}>{display_name} [{plugin_type.name}]</{color}>'

文档由 VitePress 构建 | API引用由 litedoc 生成

+ \ No newline at end of file diff --git a/dev/api/plugin/manager.html b/dev/api/plugin/manager.html index 4cc8816d..eb4b137f 100644 --- a/dev/api/plugin/manager.html +++ b/dev/api/plugin/manager.html @@ -5,22 +5,22 @@ liteyuki.plugin.manager | 轻雪机器人 - - + + - + - - - + + + - - + + \ No newline at end of file diff --git a/dev/api/plugin/model.html b/dev/api/plugin/model.html index aa88a80c..e0ea4d78 100644 --- a/dev/api/plugin/model.html +++ b/dev/api/plugin/model.html @@ -5,23 +5,23 @@ liteyuki.plugin.model | 轻雪机器人 - - + + - + - - - + + + -
Skip to content

模块 liteyuki.plugin.model

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/24 上午12:02 @Author : snowykami @Email : snowykami@outlook.com @File : model.py @Software: PyCharm

class PluginType(Enum)

attr APPLICATION = 'application'

attr SERVICE = 'service'

attr MODULE = 'module'

attr UNCLASSIFIED = 'unclassified'

attr TEST = 'test'

class PluginMetadata(BaseModel)

attr name: str = NO_DEFAULT

attr description: str = ''

attr usage: str = ''

attr type: PluginType = PluginType.UNCLASSIFIED

attr author: str = ''

attr homepage: str = ''

attr extra: dict[str, Any] = {}

class Plugin(BaseModel)


func hash self

源代码在GitHub上查看
python
def __hash__(self):
-    return hash(self.module_name)

attr model_config = {'arbitrary_types_allowed': True}

attr name: str = NO_DEFAULT

attr module: ModuleType = NO_DEFAULT

attr module_name: str = NO_DEFAULT

attr metadata: Optional[PluginMetadata] = None

文档由 VitePress 构建 | API引用由 litedoc 生成

- +
Skip to content

模块 liteyuki.plugin.model

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/24 上午12:02 @Author : snowykami @Email : snowykami@outlook.com @File : model.py @Software: PyCharm

class PluginType(Enum)

attr APPLICATION = 'application'

attr SERVICE = 'service'

attr MODULE = 'module'

attr UNCLASSIFIED = 'unclassified'

attr TEST = 'test'

class PluginMetadata(BaseModel)

attr name: str = NO_DEFAULT

attr description: str = ''

attr usage: str = ''

attr type: PluginType = PluginType.UNCLASSIFIED

attr author: str = ''

attr homepage: str = ''

attr extra: dict[str, Any] = {}

class Plugin(BaseModel)


func hash self

源代码在GitHub上查看
python
def __hash__(self):
+    return hash(self.module_name)

attr model_config = {'arbitrary_types_allowed': True}

attr name: str = NO_DEFAULT

attr module: ModuleType = NO_DEFAULT

attr module_name: str = NO_DEFAULT

attr metadata: Optional[PluginMetadata] = None

文档由 VitePress 构建 | API引用由 litedoc 生成

+ \ No newline at end of file diff --git a/dev/api/plugins/index.html b/dev/api/plugins/index.html index defae4aa..704312a6 100644 --- a/dev/api/plugins/index.html +++ b/dev/api/plugins/index.html @@ -5,22 +5,22 @@ liteyuki.plugins | 轻雪机器人 - - + + - + - - - + + + - - + + \ No newline at end of file diff --git a/dev/api/plugins/liteecho.html b/dev/api/plugins/liteecho.html index c5d96f12..5b528e36 100644 --- a/dev/api/plugins/liteecho.html +++ b/dev/api/plugins/liteecho.html @@ -5,24 +5,24 @@ liteyuki.plugins.liteecho | 轻雪机器人 - - + + - + - - - + + + -
Skip to content

模块 liteyuki.plugins.liteecho

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/22 下午12:31 @Author : snowykami @Email : snowykami@outlook.com @File : liteecho.py @Software: PyCharm


@on_startswith(['liteecho'], rule=is_su_rule).handle()

async func liteecho(event: MessageEvent)

源代码在GitHub上查看
python
@on_startswith(['liteecho'], rule=is_su_rule).handle()
+    
Skip to content

模块 liteyuki.plugins.liteecho

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/22 下午12:31 @Author : snowykami @Email : snowykami@outlook.com @File : liteecho.py @Software: PyCharm


@on_startswith(['liteecho'], rule=is_su_rule).handle()

async func liteecho(event: MessageEvent)

源代码在GitHub上查看
python
@on_startswith(['liteecho'], rule=is_su_rule).handle()
 async def liteecho(event: MessageEvent):
-    event.reply(event.raw_message.strip()[8:].strip())

文档由 VitePress 构建 | API引用由 litedoc 生成

- + event.reply(event.raw_message.strip()[8:].strip())

文档由 VitePress 构建 | API引用由 litedoc 生成

+ \ No newline at end of file diff --git a/dev/api/plugins/plugin_loader/index.html b/dev/api/plugins/plugin_loader/index.html index c82e9667..dd8a8b7e 100644 --- a/dev/api/plugins/plugin_loader/index.html +++ b/dev/api/plugins/plugin_loader/index.html @@ -5,26 +5,26 @@ liteyuki.plugins.plugin_loader | 轻雪机器人 - - + + - + - - - + + + -
Skip to content

模块 liteyuki.plugins.plugin_loader

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/11 下午10:02 @Author : snowykami @Email : snowykami@outlook.com @File : init.py.py @Software: PyCharm


func default_plugins_loader()

说明: 默认插件加载器,应在初始化时调用

源代码在GitHub上查看
python
def default_plugins_loader():
+    
Skip to content

模块 liteyuki.plugins.plugin_loader

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/11 下午10:02 @Author : snowykami @Email : snowykami@outlook.com @File : init.py.py @Software: PyCharm


func default_plugins_loader()

说明: 默认插件加载器,应在初始化时调用

源代码在GitHub上查看
python
def default_plugins_loader():
     for plugin in get_config('liteyuki.plugins', []):
         load_plugin(plugin)
     for plugin_dir in get_config('liteyuki.plugin_dirs', ['src/liteyuki_plugins']):
-        load_plugins(plugin_dir)

文档由 VitePress 构建 | API引用由 litedoc 生成

- + load_plugins(plugin_dir)

文档由 VitePress 构建 | API引用由 litedoc 生成

+ \ No newline at end of file diff --git a/dev/api/session/event.html b/dev/api/session/event.html new file mode 100644 index 00000000..99a173f0 --- /dev/null +++ b/dev/api/session/event.html @@ -0,0 +1,40 @@ + + + + + + liteyuki.session.event | 轻雪机器人 + + + + + + + + + + + + + + + +
Skip to content

模块 liteyuki.session.event

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 下午10:47 @Author : snowykami @Email : snowykami@outlook.com @File : event.py @Software: PyCharm

class MessageEvent


func __init__(self, bot_id: str, message: list[dict[str, Any]] | str, message_type: str, raw_message: str, session_id: str, user_id: str, session_type: str, receive_channel: Optional[Channel[MessageEvent]] = None, data: Optional[dict[str, Any]] = None)

说明: 轻雪抽象消息事件

源代码在GitHub上查看
python
def __init__(self, bot_id: str, message: list[dict[str, Any]] | str, message_type: str, raw_message: str, session_id: str, user_id: str, session_type: str, receive_channel: Optional[Channel['MessageEvent']]=None, data: Optional[dict[str, Any]]=None):
+    if data is None:
+        data = {}
+    self.message_type = message_type
+    self.data = data
+    self.bot_id = bot_id
+    self.message = message
+    self.raw_message = raw_message
+    self.session_id = session_id
+    self.session_type = session_type
+    self.user_id = user_id
+    self.receive_channel = receive_channel

func reply(self, message: str | dict[str, Any])

说明: 回复消息

参数:

  • message:
源代码在GitHub上查看
python
def reply(self, message: str | dict[str, Any]):
+    reply_event = MessageEvent(message_type=self.session_type, message=message, raw_message='', data={'message': message}, bot_id=self.bot_id, session_id=self.session_id, user_id=self.user_id, session_type=self.session_type, receive_channel=None)
+    if self.receive_channel:
+        self.receive_channel.send(reply_event)

文档由 VitePress 构建 | API引用由 litedoc 生成

+ + + + \ No newline at end of file diff --git a/dev/api/session/index.html b/dev/api/session/index.html new file mode 100644 index 00000000..222ef7fe --- /dev/null +++ b/dev/api/session/index.html @@ -0,0 +1,26 @@ + + + + + + liteyuki.session | 轻雪机器人 + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/dev/api/session/matcher.html b/dev/api/session/matcher.html new file mode 100644 index 00000000..78522526 --- /dev/null +++ b/dev/api/session/matcher.html @@ -0,0 +1,42 @@ + + + + + + liteyuki.session.matcher | 轻雪机器人 + + + + + + + + + + + + + + + +
Skip to content

模块 liteyuki.session.matcher

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 下午10:51 @Author : snowykami @Email : snowykami@outlook.com @File : matcher.py @Software: PyCharm

class Matcher


func __init__(self, rule: Rule, priority: int, block: bool)

说明: 匹配器

参数:

  • rule: 规则
  • priority: 优先级 >= 0
  • block: 是否阻断后续优先级更低的匹配器
源代码在GitHub上查看
python
def __init__(self, rule: Rule, priority: int, block: bool):
+    self.rule = rule
+    self.priority = priority
+    self.block = block
+    self.handlers: list[EventHandler] = []

func handle(self) -> Callable[[EventHandler], EventHandler]

说明: 添加处理函数,装饰器

返回: 装饰器 handler

源代码在GitHub上查看
python
def handle(self) -> Callable[[EventHandler], EventHandler]:
+
+    def decorator(handler: EventHandler) -> EventHandler:
+        self.handlers.append(handler)
+        return handler
+    return decorator

async func run(self, event: MessageEvent) -> None

说明: 运行处理函数

参数:

  • event:
源代码在GitHub上查看
python
async def run(self, event: MessageEvent) -> None:
+    if not await self.rule(event):
+        return
+    for handler in self.handlers:
+        try:
+            await handler(event)
+        except Exception:
+            traceback.print_exc()

文档由 VitePress 构建 | API引用由 litedoc 生成

+ + + + \ No newline at end of file diff --git a/dev/api/session/on.html b/dev/api/session/on.html new file mode 100644 index 00000000..a0bc627e --- /dev/null +++ b/dev/api/session/on.html @@ -0,0 +1,40 @@ + + + + + + liteyuki.session.on | 轻雪机器人 + + + + + + + + + + + + + + + +
Skip to content

模块 liteyuki.session.on

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 下午10:52 @Author : snowykami @Email : snowykami@outlook.com @File : on.py @Software: PyCharm


func add_matcher(matcher: Matcher)

源代码在GitHub上查看
python
def add_matcher(matcher: Matcher):
+    for i, m in enumerate(_matcher_list):
+        if m.priority < matcher.priority:
+            _matcher_list.insert(i, matcher)
+            break
+    else:
+        _matcher_list.append(matcher)

func on_message(rule: Rule = empty_rule, priority: int = 0, block: bool = False) -> Matcher

源代码在GitHub上查看
python
def on_message(rule: Rule=empty_rule, priority: int=0, block: bool=False) -> Matcher:
+    matcher = Matcher(rule, priority, block)
+    add_matcher(matcher)
+    return matcher

func on_keywords(keywords: list[str], rule = empty_rule, priority: int = 0, block: bool = False) -> Matcher

源代码在GitHub上查看
python
def on_keywords(keywords: list[str], rule=empty_rule, priority: int=0, block: bool=False) -> Matcher:
+
+    @Rule
+    async def on_keywords_rule(event: MessageEvent):
+        return any((keyword in event.raw_message for keyword in keywords))
+    return on_message(on_keywords_rule & rule, priority, block)

文档由 VitePress 构建 | API引用由 litedoc 生成

+ + + + \ No newline at end of file diff --git a/dev/api/session/rule.html b/dev/api/session/rule.html new file mode 100644 index 00000000..fb55bbba --- /dev/null +++ b/dev/api/session/rule.html @@ -0,0 +1,42 @@ + + + + + + liteyuki.session.rule | 轻雪机器人 + + + + + + + + + + + + + + + +
Skip to content

模块 liteyuki.session.rule

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 下午10:55 @Author : snowykami @Email : snowykami@outlook.com @File : rule.py @Software: PyCharm

var RuleHandlerFunc

  • 说明: 规则函数签名

  • 类型: TypeAlias

  • 默认值: Callable[[MessageEvent], Coroutine[None, None, bool]]

class Rule


func __init__(self, handler: RuleHandlerFunc)

源代码在GitHub上查看
python
def __init__(self, handler: RuleHandlerFunc):
+    self.handler = handler

func self | other: Rule => Rule

源代码在GitHub上查看
python
def __or__(self, other: 'Rule') -> 'Rule':
+
+    async def combined_handler(event: MessageEvent) -> bool:
+        return await self.handler(event) or await other.handler(event)
+    return Rule(combined_handler)

func self & other: Rule => Rule

源代码在GitHub上查看
python
def __and__(self, other: 'Rule') -> 'Rule':
+
+    async def combined_handler(event: MessageEvent) -> bool:
+        return await self.handler(event) and await other.handler(event)
+    return Rule(combined_handler)

async func self () event: MessageEvent => bool

源代码在GitHub上查看
python
async def __call__(self, event: MessageEvent) -> bool:
+    if self.handler is None:
+        return True
+    return await self.handler(event)

@Rule

async func empty_rule(event: MessageEvent) -> bool

源代码在GitHub上查看
python
@Rule
+async def empty_rule(event: MessageEvent) -> bool:
+    return True

@Rule

async func is_su_rule(event: MessageEvent) -> bool

源代码在GitHub上查看
python
@Rule
+async def is_su_rule(event: MessageEvent) -> bool:
+    return str(event.user_id) in _superusers

文档由 VitePress 构建 | API引用由 litedoc 生成

+ + + + \ No newline at end of file diff --git a/dev/api/session/session.html b/dev/api/session/session.html new file mode 100644 index 00000000..165c17dc --- /dev/null +++ b/dev/api/session/session.html @@ -0,0 +1,26 @@ + + + + + + liteyuki.session.session | 轻雪机器人 + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/dev/api/utils.html b/dev/api/utils.html index a7952803..d986a8dc 100644 --- a/dev/api/utils.html +++ b/dev/api/utils.html @@ -5,21 +5,21 @@ liteyuki.utils | 轻雪机器人 - - + + - + - - - + + + -
Skip to content

模块 liteyuki.utils

一些常用的工具类,部分来源于 nonebot 并遵循其许可进行修改


func is_coroutine_callable(call: Callable[..., Any]) -> bool

说明: 判断是否为协程可调用对象

参数:

  • call: 可调用对象

返回: bool: 是否为协程可调用对象

源代码在GitHub上查看
python
def is_coroutine_callable(call: Callable[..., Any]) -> bool:
+    
Skip to content

模块 liteyuki.utils

一些常用的工具类,部分来源于 nonebot 并遵循其许可进行修改


func is_coroutine_callable(call: Callable[..., Any]) -> bool

说明: 判断是否为协程可调用对象

参数:

  • call: 可调用对象

返回: bool: 是否为协程可调用对象

源代码在GitHub上查看
python
def is_coroutine_callable(call: Callable[..., Any]) -> bool:
     if inspect.isroutine(call):
         return inspect.iscoroutinefunction(call)
     if inspect.isclass(call):
@@ -51,8 +51,8 @@
     async def wrapper(*args, **kwargs):
         return func(*args, **kwargs)
     wrapper.__signature__ = inspect.signature(func)
-    return wrapper

文档由 VitePress 构建 | API引用由 litedoc 生成

- + return wrapper

文档由 VitePress 构建 | API引用由 litedoc 生成

+ \ No newline at end of file diff --git a/dev/best_practices.html b/dev/best_practices.html index abfe92da..86728bbf 100644 --- a/dev/best_practices.html +++ b/dev/best_practices.html @@ -5,22 +5,22 @@ 最佳实践 | 轻雪机器人 - - + + - + - - - + + + -
Skip to content

最佳实践

机器人应用

插件

其他

  • liteyuki starmap:轻雪官方星图,展示轻雪的所有实例及其位置分布
  • TRSS_Liteyuki:TRSS LiteyukiBot 管理脚本
  • litedoc:轻雪API文档生成器
  • liteyukibot-api (闭源):轻雪机器人统计接口

文档由 VitePress 构建 | API引用由 litedoc 生成

- +
Skip to content

最佳实践

机器人应用

插件

其他

  • liteyuki starmap:轻雪官方星图,展示轻雪的所有实例及其位置分布
  • TRSS_Liteyuki:TRSS LiteyukiBot 管理脚本
  • litedoc:轻雪API文档生成器
  • liteyukibot-api (闭源):轻雪机器人统计接口

文档由 VitePress 构建 | API引用由 litedoc 生成

+ \ No newline at end of file diff --git a/dev/comm.html b/dev/comm.html index 445f994c..dba6df0d 100644 --- a/dev/comm.html +++ b/dev/comm.html @@ -5,21 +5,21 @@ 进程通信 | 轻雪机器人 - - + + - + - - - + + + -
Skip to content

通道通信

简介

轻雪运行在主进程 MainProcess 里,其他插件框架进程是伴随的子进程,因此无法通过内存共享和直接对象传递的方式进行通信, 轻雪提供了一个通道Channel用于跨进程通信, 你可以通过Channel发送消息给其他进程,也可以监听其他进程的消息。

例如子进程接收到用户信息需要重启机器人,这时可以通过通道对主进程发送消息,主进程接收到消息后重启对应子进程。

示例

通道是全双工的,有两种接收模式,但一个通道只能使用一种,即被动模式和主动模式,被动模式由chan.on_receive()装饰回调函数实现,主动模式需调用chan.receive()实现

  • 创建子进程的同时会初始化一个被动通道和一个主动通道,且通道标识为{process_name}-active{process_name}-passive
  • 主进程中通过get_channel函数获取通道对象
  • 子进程中导入单例active_channelpassive_channel即可

在轻雪插件中(主进程中)

python
import asyncio
+    
Skip to content

通道通信

简介

轻雪运行在主进程 MainProcess 里,其他插件框架进程是伴随的子进程,因此无法通过内存共享和直接对象传递的方式进行通信, 轻雪提供了一个通道Channel用于跨进程通信, 你可以通过Channel发送消息给其他进程,也可以监听其他进程的消息。

例如子进程接收到用户信息需要重启机器人,这时可以通过通道对主进程发送消息,主进程接收到消息后重启对应子进程。

示例

通道是全双工的,有两种接收模式,但一个通道只能使用一种,即被动模式和主动模式,被动模式由chan.on_receive()装饰回调函数实现,主动模式需调用chan.receive()实现

  • 创建子进程的同时会初始化一个被动通道和一个主动通道,且通道标识为{process_name}-active{process_name}-passive
  • 主进程中通过get_channel函数获取通道对象
  • 子进程中导入单例active_channelpassive_channel即可

在轻雪插件中(主进程中)

python
import asyncio
 
 from liteyuki.comm import get_channel, Channel
 from liteyuki import get_bot
@@ -61,8 +61,8 @@
 ...

共享内存通信

简介

  • 相比于普通进程通信,内存共享使得代码编写更加简洁,轻雪框架提供了一个内存共享通信的接口,你可以通过storage模块实现内存共享通信,该模块封装通道实现
  • 内存共享是线程安全的,你可以在多个线程中读写共享内存,线程锁会自动保护共享内存的读写操作

示例

在任意进程中均可使用

python
from liteyuki.comm.storage import shared_memory
 
 shared_memory.set("key", "value")  # 设置共享内存
-value = shared_memory.get("key")  # 获取共享内存

源代码:liteyuki/comm/storage.py

文档由 VitePress 构建 | API引用由 litedoc 生成

- +value = shared_memory.get("key") # 获取共享内存

源代码:liteyuki/comm/storage.py

文档由 VitePress 构建 | API引用由 litedoc 生成

+ \ No newline at end of file diff --git a/dev/guide.html b/dev/guide.html index 26b5ca8f..4c2dacc7 100644 --- a/dev/guide.html +++ b/dev/guide.html @@ -5,23 +5,23 @@ 开发指南 | 轻雪机器人 - - + + - + - - - - + + + + -
Skip to content

开发指南

如何开发

插件开发无需阅读本文档,请阅读插件开发文档API 引用

如需往轻雪仓库提交代码,请阅读以下内容:

  1. 首先fork一份轻雪仓库到你的个人/组织账户下。
  2. 在你的仓库中进行开发。
  3. 在你的仓库中创建一个新的分支,将你的代码提交到这个分支。
  4. 在你的仓库中创建一个Pull Request,将你的分支合并到轻雪仓库的main分支。

参与开发默认你已经了解Python语言和轻雪框架的基本使用方法,如果是文档相关的开发,请确保你了解Markdown语法和基本前端知识。 出现冲突请与仓库维护者联系。

建议

  • 开发过程中可以使用mypy, flake8, black等工具进行代码检查和格式化。
  • 启用开发者模式,可以在config.yml中设置dev_mode: true,这样可以在控制台看到更多的调试信息。

项目结构

  • main.py: 机器人入口文件
  • liteyuki: 框架目录(liteyukibot)
  • src: 机器人源码目录
    • liteyuki_plugins: 轻雪插件目录
    • nonebot_plugins: Nonebot插件目录
    • resources: 内置资源包目录
    • utils: 工具目录
  • tests: 单元测试目录
  • docs: 文档目录
    • en: 英文文档
    • zh: 中文文档
  • docker: Docker相关内容目录

其中,liteyuki框架是包含在LiteyukiBot应用中的,所以此项目既是LiteyukiBot应用仓库,同时也是liteyuki框架的仓库

src目录下为应用程序部分,业务逻辑请在此目录下进行开发,liteyuki_pluginsnonebot_plugins目录下为插件目录,插件开发请在此目录下进行开发。

规范化

  • 代码请遵循PEP8Google Python Style Guide
  • 提交到轻雪仓库的代码,请遵循以下规范:
    • 请确保代码是可运行的,没有危害的。
    • 请确保代码的类型提示是正确的。
    • 请确保注释风格为Google DocstringLiteyuki Docstring(推荐)以保证Litedoc能够正确解析并生成文档。
    • 字符串请使用双引号",尽量避免使用单引号',但在嵌套字符串时可以使用单引号。
    • 若有面向普通用户部分,请确保文档是完善的(每种语言都有对应的文档)。
  • commit message请遵循以下规范:
    • 应在每次完成一个功能或修复一个bug后提交代码,不要将多个功能或多个bug的代码混在一起提交。
    • 我们使用gitmoji来标记commit的类型,如:sparkles:表示引入新功能,:bug:表示修复bug等,具体请参考gitmoji
    • commit message的格式为<emoji> [type:] <message>,如:sparkles: feat: 给event添加新字段, 其中type字段为commit类型且可选,message字段为简短的描述,总结来说就是你干了什么。
    • 不限制commit message的语言,有条件可以使用中英双语。
  • 文档请遵循Markdown语法,并且支持vitepress相关内容:
    • 修订文档时,每个语言的文档都要修订。
    • 请确保文档内的链接是正确的,不要出现无法访问的死链接。
    • 请确保用户文档是通俗易懂的,开发文档是详细的。

最后

  • 本项目是一个非盈利的开源项目,我们欢迎任何人参与开发,你的贡献将会使轻雪变得更好。

感谢以下贡献者!

Contributors

文档由 VitePress 构建 | API引用由 litedoc 生成

- +
Skip to content

开发指南

如何开发

插件开发无需阅读本文档,请阅读插件开发文档API 引用

如需往轻雪仓库提交代码,请阅读以下内容:

  1. 首先fork一份轻雪仓库到你的个人/组织账户下。
  2. 在你的仓库中进行开发。
  3. 在你的仓库中创建一个新的分支,将你的代码提交到这个分支。
  4. 在你的仓库中创建一个Pull Request,将你的分支合并到轻雪仓库的main分支。

参与开发默认你已经了解Python语言和轻雪框架的基本使用方法,如果是文档相关的开发,请确保你了解Markdown语法和基本前端知识。 出现冲突请与仓库维护者联系。

建议

  • 开发过程中可以使用mypy, flake8, black等工具进行代码检查和格式化。
  • 启用开发者模式,可以在config.yml中设置dev_mode: true,这样可以在控制台看到更多的调试信息。

项目结构

  • main.py: 机器人入口文件
  • liteyuki: 框架目录(liteyukibot)
  • src: 机器人源码目录
    • liteyuki_plugins: 轻雪插件目录
    • nonebot_plugins: Nonebot插件目录
    • resources: 内置资源包目录
    • utils: 工具目录
  • tests: 单元测试目录
  • docs: 文档目录
    • en: 英文文档
    • zh: 中文文档
  • docker: Docker相关内容目录

其中,liteyuki框架是包含在LiteyukiBot应用中的,所以此项目既是LiteyukiBot应用仓库,同时也是liteyuki框架的仓库

src目录下为应用程序部分,业务逻辑请在此目录下进行开发,liteyuki_pluginsnonebot_plugins目录下为插件目录,插件开发请在此目录下进行开发。

规范化

  • 代码请遵循PEP8Google Python Style Guide
  • 提交到轻雪仓库的代码,请遵循以下规范:
    • 请确保代码是可运行的,没有危害的。
    • 请确保代码的类型提示是正确的。
    • 请确保注释风格为Google DocstringLiteyuki Docstring(推荐)以保证Litedoc能够正确解析并生成文档。
    • 字符串请使用双引号",尽量避免使用单引号',但在嵌套字符串时可以使用单引号。
    • 若有面向普通用户部分,请确保文档是完善的(每种语言都有对应的文档)。
  • commit message请遵循以下规范:
    • 应在每次完成一个功能或修复一个bug后提交代码,不要将多个功能或多个bug的代码混在一起提交。
    • 我们使用gitmoji来标记commit的类型,如:sparkles:表示引入新功能,:bug:表示修复bug等,具体请参考gitmoji
    • commit message的格式为<emoji> [type:] <message>,如:sparkles: feat: 给event添加新字段, 其中type字段为commit类型且可选,message字段为简短的描述,总结来说就是你干了什么。
    • 不限制commit message的语言,有条件可以使用中英双语。
  • 文档请遵循Markdown语法,并且支持vitepress相关内容:
    • 修订文档时,每个语言的文档都要修订。
    • 请确保文档内的链接是正确的,不要出现无法访问的死链接。
    • 请确保用户文档是通俗易懂的,开发文档是详细的。

最后

  • 本项目是一个非盈利的开源项目,我们欢迎任何人参与开发,你的贡献将会使轻雪变得更好。

感谢以下贡献者!

Contributors

文档由 VitePress 构建 | API引用由 litedoc 生成

+ \ No newline at end of file diff --git a/dev/lyfunc.html b/dev/lyfunc.html index 6d3860a5..539a0fbc 100644 --- a/dev/lyfunc.html +++ b/dev/lyfunc.html @@ -5,21 +5,21 @@ 轻雪函数 | 轻雪机器人 - - + + - + - - - + + + -
Skip to content

轻雪函数

轻雪函数 Liteyuki Function 是轻雪的一个功能,它允许你在轻雪中运行一些自定义的由数据驱动的命令,类似于Minecraft的mcfunction,属于资源包的一部分,但需单独起篇幅.

函数文件

函数文件放在资源包的functions目录下,文件名以.mcfunction .lyfunction .lyf结尾,例如test.mcfunction,文件内容为一系列的命令,每行一个命令,支持单行注释#(编辑时的语法高亮可采取shell格式),例如:

shell
# 在发信器输出"hello world"
+    
Skip to content

轻雪函数

轻雪函数 Liteyuki Function 是轻雪的一个功能,它允许你在轻雪中运行一些自定义的由数据驱动的命令,类似于Minecraft的mcfunction,属于资源包的一部分,但需单独起篇幅.

函数文件

函数文件放在资源包的functions目录下,文件名以.mcfunction .lyfunction .lyf结尾,例如test.mcfunction,文件内容为一系列的命令,每行一个命令,支持单行注释#(编辑时的语法高亮可采取shell格式),例如:

shell
# 在发信器输出"hello world"
 cmd echo hello world
 
 # 如果你想同时输出多行内容可以尝试换行符(Python格式)
@@ -38,8 +38,8 @@
 api friend_poke user_id=user_id
 sleep 0.2
 nohup function poke
-await

API

理论上所有基于onebotv11的api都可调用,不同Adapter api也有差别.

Onebot v11 API文档

结束关键字

由于LiteyukiBot基于异步运行, 所以在编写lyfunction时也要注意异步的调用,避免出现"单线程走到底"的情况是效率提升的关键.

await 异步任务结束关键字,用于结束当前已完成function的执行

WARNING

但若出现非单function的情况,有一个task任务没有完成而await被执行了,那么当前所有函数包的task都会被截停销毁

TIP

编写轻雪函数推荐你使用VS Code插件Liteyuki Function实现语法高亮

文档由 VitePress 构建 | API引用由 litedoc 生成

- +await

API

理论上所有基于onebotv11的api都可调用,不同Adapter api也有差别.

Onebot v11 API文档

结束关键字

由于LiteyukiBot基于异步运行, 所以在编写lyfunction时也要注意异步的调用,避免出现"单线程走到底"的情况是效率提升的关键.

await 异步任务结束关键字,用于结束当前已完成function的执行

WARNING

但若出现非单function的情况,有一个task任务没有完成而await被执行了,那么当前所有函数包的task都会被截停销毁

TIP

编写轻雪函数推荐你使用VS Code插件Liteyuki Function实现语法高亮

文档由 VitePress 构建 | API引用由 litedoc 生成

+ \ No newline at end of file diff --git a/dev/plugin.html b/dev/plugin.html index 29927f3b..1563958a 100644 --- a/dev/plugin.html +++ b/dev/plugin.html @@ -5,21 +5,21 @@ 轻雪插件开发 | 轻雪机器人 - - + + - + - - - + + + -
Skip to content

简介

轻雪插件是轻雪内置的一部分功能,运行在主进程中,可以很高程度地扩展轻雪的功能

开始

创建插件

一个.py文件或一个包含__init__.py的文件夹即可被识别为插件

首先创建一个文件夹,例如watchdog_plugin,并在其中创建一个__init__.py文件,即可创建一个插件

__init__.py

python
from liteyuki.plugin import PluginMetadata, PluginType
+    
Skip to content

简介

轻雪插件是轻雪内置的一部分功能,运行在主进程中,可以很高程度地扩展轻雪的功能

开始

创建插件

一个.py文件或一个包含__init__.py的文件夹即可被识别为插件

首先创建一个文件夹,例如watchdog_plugin,并在其中创建一个__init__.py文件,即可创建一个插件

__init__.py

python
from liteyuki.plugin import PluginMetadata, PluginType
 from .watch_dog import *    # 导入逻辑部分
 
 # 定义插件元数据
@@ -50,8 +50,8 @@
     logger.debug(f"File {event.src_path} changed, reloading nonebot...")
     liteyuki.restart_process("nonebot")  # 调用重启进程方法

加载插件

方法1

  • 在配置文件中的liteyuki.plugins中添加你的插件路径,例如watchdog_plugin,重启轻雪即可加载插件。

方法2

  • 使用开发工具快速运行插件,无需手动创建实例
  • 创建入口文件,例如main.py,并在其中写入以下代码
python
from liteyuki.dev.plugin import run_plugins
 
-run_plugins("watchdog_plugin")

然后运行python main.py即可启动插件

启用插件后,我们在src/nonebot_plugins下创建一个文件,例如test.py,并在其中写入一些代码,保存后轻雪会自动重载NoneBot进程

文档由 VitePress 构建 | API引用由 litedoc 生成

- +run_plugins("watchdog_plugin")

然后运行python main.py即可启动插件

启用插件后,我们在src/nonebot_plugins下创建一个文件,例如test.py,并在其中写入一些代码,保存后轻雪会自动重载NoneBot进程

文档由 VitePress 构建 | API引用由 litedoc 生成

+ \ No newline at end of file diff --git a/dev/resource.html b/dev/resource.html index 6f23dadf..f2c07fdf 100644 --- a/dev/resource.html +++ b/dev/resource.html @@ -5,21 +5,21 @@ 资源包开发 | 轻雪机器人 - - + + - + - - - + + + -
Skip to content

简介

资源包,亦可根据用途称为主题包、字体包、语言包等,它允许你一定程度上自定义轻雪的外观,并且不用修改源代码

  • 资源/主题商店提供了一些资源包供你选择,你也可以自己制作资源包
  • 资源包的制作很简单,如果你接触过Minecraft的资源包,那么你能够很快就上手,仅需按照原有路径进行文件替换即可,讲起打包成一个新的资源包。
  • 部分内容制作需要一点点前端基础,例如htmlcss
  • 轻雪原版资源包请查看LiteyukiBot/liteyuki/resources,可以在此基础上进行修改
  • 欢迎各位投稿资源包到轻雪资源商店

请注意,主题包中的html渲染使用Js来规定数据的渲染位置,请确保您所编写的html代码能被Bot解析,否则会导致渲染失败或渲染结果不理想/异常/错位等无法预料的事情发生。推荐在编写html时同时更改对应Js代码,以避免出现无法预料的问题。


加载资源包

  • 资源包通常是以.zip格式压缩的,只需要将其解压到根目录resources目录下即可,注意不要嵌套文件夹,正常的路径应该是这样的
shell
main.py
+    
Skip to content

简介

资源包,亦可根据用途称为主题包、字体包、语言包等,它允许你一定程度上自定义轻雪的外观,并且不用修改源代码

  • 资源/主题商店提供了一些资源包供你选择,你也可以自己制作资源包
  • 资源包的制作很简单,如果你接触过Minecraft的资源包,那么你能够很快就上手,仅需按照原有路径进行文件替换即可,讲起打包成一个新的资源包。
  • 部分内容制作需要一点点前端基础,例如htmlcss
  • 轻雪原版资源包请查看LiteyukiBot/liteyuki/resources,可以在此基础上进行修改
  • 欢迎各位投稿资源包到轻雪资源商店

请注意,主题包中的html渲染使用Js来规定数据的渲染位置,请确保您所编写的html代码能被Bot解析,否则会导致渲染失败或渲染结果不理想/异常/错位等无法预料的事情发生。推荐在编写html时同时更改对应Js代码,以避免出现无法预料的问题。


加载资源包

  • 资源包通常是以.zip格式压缩的,只需要将其解压到根目录resources目录下即可,注意不要嵌套文件夹,正常的路径应该是这样的
shell
main.py
 resources
 └─resource_pack_1
     ├─metadata.yml
@@ -31,8 +31,8 @@
 version: "1.0.0"
 description: "资源包描述"
 # 你可以自定义一些信息,但请保证以上三个字段
-...
  • 资源包加载遵循一个优先级,即后加载的资源包会覆盖前面的资源包,例如,你在A包中定义了一个index.html文件,B包也定义了一个index.html文件,那么加载B包后,A包中的index.html文件会被覆盖
  • 对于不同资源包的不同文件,是可以相对引用的,例如你在A中定义了templates/index.html,在B中定义了templates/style.css,可以在A的index.html中用./style.css相对路径引用B中的css

TIP

资源包的结构会随着轻雪的更新而有变动,第三方资源包开发者需要注意版本兼容性,同时用户也应该自行选择可用的资源包

文档由 VitePress 构建 | API引用由 litedoc 生成

- +...
  • 资源包加载遵循一个优先级,即后加载的资源包会覆盖前面的资源包,例如,你在A包中定义了一个index.html文件,B包也定义了一个index.html文件,那么加载B包后,A包中的index.html文件会被覆盖
  • 对于不同资源包的不同文件,是可以相对引用的,例如你在A中定义了templates/index.html,在B中定义了templates/style.css,可以在A的index.html中用./style.css相对路径引用B中的css

TIP

资源包的结构会随着轻雪的更新而有变动,第三方资源包开发者需要注意版本兼容性,同时用户也应该自行选择可用的资源包

文档由 VitePress 构建 | API引用由 litedoc 生成

+ \ No newline at end of file diff --git a/en/deploy/config.html b/en/deploy/config.html index 66fe4870..469b9c10 100644 --- a/en/deploy/config.html +++ b/en/deploy/config.html @@ -5,21 +5,21 @@ Configurations | LiteyukiBot - - + + - + - - - + + + -
Skip to content

Configurations

LiteyukiBot supports yaml, json, and toml as configuration files, depending on your personal preference.

When you first run LiteyukiBot, it will generate config.yml and the config directory. You can modify the configuration items and restart LiteyukiBot. In most cases, you only need to modify the superusers and nickname fields.

When starting, LiteyukiBot will load all configuration files in the project directory config.yml/yaml/json/toml and the config directory. You can create multiple configuration files in the config directory, and LiteyukiBot will automatically merge these configuration files.

Basic Configuration

yaml
# NoneBot configuration
+    
Skip to content

Configurations

LiteyukiBot supports yaml, json, and toml as configuration files, depending on your personal preference.

When you first run LiteyukiBot, it will generate config.yml and the config directory. You can modify the configuration items and restart LiteyukiBot. In most cases, you only need to modify the superusers and nickname fields.

When starting, LiteyukiBot will load all configuration files in the project directory config.yml/yaml/json/toml and the config directory. You can create multiple configuration files in the config directory, and LiteyukiBot will automatically merge these configuration files.

Basic Configuration

yaml
# NoneBot configuration
 nonebot:
   command_start: [ "/", "" ] # Command prefix, if there is no "" empty command header, please enable alconna_use_command_start to ensure alconna parsing is normal
   host: 127.0.0.1 # Listening address, default is local, if you want to receive external requests, please fill in
@@ -47,8 +47,8 @@
   allow_update: true # Whether to allow Liteyuki to update
   debug: false  # Debug mode, if true, Liteyuki will output more detailed logs
   dev_mode: false # development mode, if true, Liteyuki will load all plugins in the development directory
-...
yaml

Example: Configuration of OneBot implementation side connected to NoneBot

In production environments, it is recommended to use reverse WebSocket The fields provided by different implementation sides may be different, but basically the same. Here is a reference value

FieldsValueDescription
protocolReverse WebSocketLiteyuki-NoneBot as server
addressws://127.0.0.1:20216/onebot/v11/wsThe address depends on the configuration file, the default is `
AccessToken""If you have configured AccessToken for Liteyuki, please fill in the same value here
  • To use other communication methods, please visit OneBot Adapter for detailed information

Other

  • Liteyuki is not limited to the OneBot adapter and NoneBot2. You can use any adapter supported by NoneBot2 or use the Liteyuki message delivery plugin

Documentation built with VitePress | API references generated by litedoc

- +...
yaml

Example: Configuration of OneBot implementation side connected to NoneBot

In production environments, it is recommended to use reverse WebSocket The fields provided by different implementation sides may be different, but basically the same. Here is a reference value

FieldsValueDescription
protocolReverse WebSocketLiteyuki-NoneBot as server
addressws://127.0.0.1:20216/onebot/v11/wsThe address depends on the configuration file, the default is `
AccessToken""If you have configured AccessToken for Liteyuki, please fill in the same value here
  • To use other communication methods, please visit OneBot Adapter for detailed information

Other

  • Liteyuki is not limited to the OneBot adapter and NoneBot2. You can use any adapter supported by NoneBot2 or use the Liteyuki message delivery plugin

Documentation built with VitePress | API references generated by litedoc

+ \ No newline at end of file diff --git a/en/deploy/fandq.html b/en/deploy/fandq.html index efd982b7..5107ae09 100644 --- a/en/deploy/fandq.html +++ b/en/deploy/fandq.html @@ -5,22 +5,22 @@ FAQ | LiteyukiBot - - + + - + - - - + + + -
Skip to content

FAQ

Frequently Asked Questions

  • There are too many python interpreters on my computer, how do I know which one to use?

    • You can specify which python interpreter to use by using the full path to the python executable, for example, /path/to/python main.py
    • Use virtual environments to avoid conflicts between different python interpreters
  • Why does the bot not respond after I start it?

    • Please check the configuration file command_start or superusers, make sure you have permission to use the command and send it correctly
    • Make sure the command header does not conflict with nickname{}, for example, a command is help, but the Bot nickname has a help, then it will be parsed as a nickname instead of a command
  • Update Liteyuki failed, error InvalidGitRepositoryError

    • Please install Git correctly and deploy Liteyuki using cloning instead of direct download
  • How to log in to chat platforms such as Telegram?

    • If you have this question, it means you don't know much about this project. This project does not implement the login function, only the message processing and response. The login function is provided by the implementation side (protocol side). The implementation side itself does not handle response logic. It processes and reports messages to Liteyuki according to the OneBot standard. You need to use an implementation side that complies with the OneBot standard to connect to Liteyuki and report messages to Liteyuki. Some recommended implementation sides have been listed below
  • Playwright installation failed

    • Enter playwright install to install the browser
  • Some plugins report errors after installation and cannot be started

    • Please refer to the plugin documentation first, confirm that the necessary configuration items of the plugin are intact, and if the problem persists, please contact the plugin author or start Liteyuki in safe mode safe_mode: true. In safe mode, you can use npm uninstall to uninstall problematic plugins

Other questions

  1. Lagrange.OneBot, based on Lagrange.Core, a Linux QQ implementation, supports OneBotv11 protocol
  2. LLOneBot, a plugin for Liteloader NTQQ, supports OneBotv11 protocol
  3. OpenShamrock, based on Lsposed, supports kritor protocol
  4. TRSS-Yunzai, based on Node.js, supports OneBotv11 protocol
  5. go-cqhttp,A QQ Client based on go, supports OneBotv11 protocol
  6. Gensokyo, use QQ protocol
  1. MinecraftOneBot, We develop a Minecraft server chat bot

Other project encountered issues, please prioritize the documentation and issues of the project itself, don't ask LiteyukiBot developers

Acknowledgements

Documentation built with VitePress | API references generated by litedoc

- +
Skip to content

FAQ

Frequently Asked Questions

  • There are too many python interpreters on my computer, how do I know which one to use?

    • You can specify which python interpreter to use by using the full path to the python executable, for example, /path/to/python main.py
    • Use virtual environments to avoid conflicts between different python interpreters
  • Why does the bot not respond after I start it?

    • Please check the configuration file command_start or superusers, make sure you have permission to use the command and send it correctly
    • Make sure the command header does not conflict with nickname{}, for example, a command is help, but the Bot nickname has a help, then it will be parsed as a nickname instead of a command
  • Update Liteyuki failed, error InvalidGitRepositoryError

    • Please install Git correctly and deploy Liteyuki using cloning instead of direct download
  • How to log in to chat platforms such as Telegram?

    • If you have this question, it means you don't know much about this project. This project does not implement the login function, only the message processing and response. The login function is provided by the implementation side (protocol side). The implementation side itself does not handle response logic. It processes and reports messages to Liteyuki according to the OneBot standard. You need to use an implementation side that complies with the OneBot standard to connect to Liteyuki and report messages to Liteyuki. Some recommended implementation sides have been listed below
  • Playwright installation failed

    • Enter playwright install to install the browser
  • Some plugins report errors after installation and cannot be started

    • Please refer to the plugin documentation first, confirm that the necessary configuration items of the plugin are intact, and if the problem persists, please contact the plugin author or start Liteyuki in safe mode safe_mode: true. In safe mode, you can use npm uninstall to uninstall problematic plugins

Other questions

  1. Lagrange.OneBot, based on Lagrange.Core, a Linux QQ implementation, supports OneBotv11 protocol
  2. LLOneBot, a plugin for Liteloader NTQQ, supports OneBotv11 protocol
  3. OpenShamrock, based on Lsposed, supports kritor protocol
  4. TRSS-Yunzai, based on Node.js, supports OneBotv11 protocol
  5. go-cqhttp,A QQ Client based on go, supports OneBotv11 protocol
  6. Gensokyo, use QQ protocol
  1. MinecraftOneBot, We develop a Minecraft server chat bot

Other project encountered issues, please prioritize the documentation and issues of the project itself, don't ask LiteyukiBot developers

Acknowledgements

Documentation built with VitePress | API references generated by litedoc

+ \ No newline at end of file diff --git a/en/deploy/install.html b/en/deploy/install.html index 1d95839f..1dbee134 100644 --- a/en/deploy/install.html +++ b/en/deploy/install.html @@ -5,29 +5,29 @@ Install | LiteyukiBot - - + + - + - - - + + + -
Skip to content

Install

Normal Installation

  1. Install Git and Python3.10+ Environment.
bash
# Clone the project
+    
Skip to content

Install

Normal Installation

  1. Install Git and Python3.10+ Environment.
bash
# Clone the project
 git clone https://github.com/LiteyukiStudio/LiteyukiBot --depth=1
 # change directory
 cd LiteyukiBot
 # install dependencies
 pip install -r requirements.txt
 # start the bot!
-python main.py

TIP

It is recommended to use a virtual environment to run Liteyuki to avoid dependency conflicts. You can use python -m venv .venv to create a virtual environment, and then use .venv\Scripts\activate to activate the virtual environment (use source .venv/bin/activate to activate on Linux).

Run with Docker

  1. Install Docker
  2. Clone Repo git clone https://github.com/LiteyukiStudio/LiteyukiBot --depth=1
  3. Change directory cd LiteyukiBot
  4. Build docker image docker build -t liteyukibot .
  5. Run container docker run -p 20216:20216 -v $(pwd):/liteyukibot -v $(pwd)/.cache:/root/.cache liteyukibot

TIP

If you are using Windows, please use the absolute project directory /path/to/LiteyukiBot instead of $&#40;pwd&#41;
If you have modified the port number, please replace 20216:20216 with your port number

Use TRSS Script

TRSS_Liteyuki Management Script, which provides a more convenient way to manage LiteyukiBot, recommended to use Arch Linux

Device Requirements

  • Windows system version minimum Windows10+/Windows Server 2019+
  • Linux system requires Python3.10+, recommended Ubuntu 20.04+
  • CPU: at least 1vCPU
  • Memory: Bot without other plugins will occupy 300~500MB, including chromium and node processes, other plugins depend on specific plugins, recommended 1GB or more
  • Disk: at least 1GB of space

WARNING

If there are multiple environments on the device, please use path/to/python -m pip install -r requirements.txt to install dependencies, path/to/python is the path to your Python executable

WARNING

Liteyuki's update function depends on Git. If you do not have Git installed and run the source code directly, you will not be able to use the update function

For other questions, please refer to FAQ

Documentation built with VitePress | API references generated by litedoc

- +python main.py

TIP

It is recommended to use a virtual environment to run Liteyuki to avoid dependency conflicts. You can use python -m venv .venv to create a virtual environment, and then use .venv\Scripts\activate to activate the virtual environment (use source .venv/bin/activate to activate on Linux).

Run with Docker

  1. Install Docker
  2. Clone Repo git clone https://github.com/LiteyukiStudio/LiteyukiBot --depth=1
  3. Change directory cd LiteyukiBot
  4. Build docker image docker build -t liteyukibot .
  5. Run container docker run -p 20216:20216 -v $(pwd):/liteyukibot -v $(pwd)/.cache:/root/.cache liteyukibot

TIP

If you are using Windows, please use the absolute project directory /path/to/LiteyukiBot instead of $&#40;pwd&#41;
If you have modified the port number, please replace 20216:20216 with your port number

Use TRSS Script

TRSS_Liteyuki Management Script, which provides a more convenient way to manage LiteyukiBot, recommended to use Arch Linux

Device Requirements

  • Windows system version minimum Windows10+/Windows Server 2019+
  • Linux system requires Python3.10+, recommended Ubuntu 20.04+
  • CPU: at least 1vCPU
  • Memory: Bot without other plugins will occupy 300~500MB, including chromium and node processes, other plugins depend on specific plugins, recommended 1GB or more
  • Disk: at least 1GB of space

WARNING

If there are multiple environments on the device, please use path/to/python -m pip install -r requirements.txt to install dependencies, path/to/python is the path to your Python executable

WARNING

Liteyuki's update function depends on Git. If you do not have Git installed and run the source code directly, you will not be able to use the update function

For other questions, please refer to FAQ

Documentation built with VitePress | API references generated by litedoc

+ \ No newline at end of file diff --git a/en/dev/api/bot/index.html b/en/dev/api/bot/index.html index 00fc91c6..d3f38023 100644 --- a/en/dev/api/bot/index.html +++ b/en/dev/api/bot/index.html @@ -5,21 +5,21 @@ liteyuki.bot | LiteyukiBot - - + + - + - - - + + + -
Skip to content

Module liteyuki.bot

class LiteyukiBot


func __init__(self, **kwargs) -> None

Description: 初始化轻雪实例

Arguments:

  • **kwargs: 配置
Source code or View on GitHub
python
def __init__(self, **kwargs) -> None:
+    
Skip to content

Module liteyuki.bot

class LiteyukiBot


func __init__(self, **kwargs) -> None

Description: 初始化轻雪实例

Arguments:

  • **kwargs: 配置
Source code or View on GitHub
python
def __init__(self, **kwargs) -> None:
     """常规操作"""
     print_logo()
     global _BOT_INSTANCE
@@ -100,8 +100,8 @@
         if compat_key in get_bot().config:
             logger.warning(f'Config key "{compat_key}" will be deprecated, use "{key}" instead.')
             return get_bot().config[compat_key]
-    return default

Documentation built with VitePress | API references generated by litedoc

- + return default

Documentation built with VitePress | API references generated by litedoc

+ \ No newline at end of file diff --git a/en/dev/api/bot/lifespan.html b/en/dev/api/bot/lifespan.html index f75121ff..1e6151d2 100644 --- a/en/dev/api/bot/lifespan.html +++ b/en/dev/api/bot/lifespan.html @@ -5,21 +5,21 @@ liteyuki.bot.lifespan | LiteyukiBot - - + + - + - - - + + + -
Skip to content

Module liteyuki.bot.lifespan

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/23 下午8:24 @Author : snowykami @Email : snowykami@outlook.com @File : lifespan.py @Software: PyCharm

var SYNC_LIFESPAN_FUNC

  • Description: 同步生命周期函数

  • Type: TypeAlias

  • Default: Callable[[], Any]

var ASYNC_LIFESPAN_FUNC

  • Description: 异步生命周期函数

  • Type: TypeAlias

  • Default: Callable[[], Awaitable[Any]]

var LIFESPAN_FUNC

  • Description: 生命周期函数

  • Type: TypeAlias

  • Default: SYNC_LIFESPAN_FUNC | ASYNC_LIFESPAN_FUNC

var SYNC_PROCESS_LIFESPAN_FUNC

  • Description: 同步进程生命周期函数

  • Type: TypeAlias

  • Default: Callable[[str], Any]

var ASYNC_PROCESS_LIFESPAN_FUNC

  • Description: 异步进程生命周期函数

  • Type: TypeAlias

  • Default: Callable[[str], Awaitable[Any]]

var PROCESS_LIFESPAN_FUNC

  • Description: 进程函数

  • Type: TypeAlias

  • Default: SYNC_PROCESS_LIFESPAN_FUNC | ASYNC_PROCESS_LIFESPAN_FUNC

class Lifespan


func __init__(self) -> None

Description: 轻雪生命周期管理,启动、停止、重启

Source code or View on GitHub
python
def __init__(self) -> None:
+    
Skip to content

Module liteyuki.bot.lifespan

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/23 下午8:24 @Author : snowykami @Email : snowykami@outlook.com @File : lifespan.py @Software: PyCharm

var SYNC_LIFESPAN_FUNC

  • Description: 同步生命周期函数

  • Type: TypeAlias

  • Default: Callable[[], Any]

var ASYNC_LIFESPAN_FUNC

  • Description: 异步生命周期函数

  • Type: TypeAlias

  • Default: Callable[[], Awaitable[Any]]

var LIFESPAN_FUNC

  • Description: 生命周期函数

  • Type: TypeAlias

  • Default: SYNC_LIFESPAN_FUNC | ASYNC_LIFESPAN_FUNC

var SYNC_PROCESS_LIFESPAN_FUNC

  • Description: 同步进程生命周期函数

  • Type: TypeAlias

  • Default: Callable[[str], Any]

var ASYNC_PROCESS_LIFESPAN_FUNC

  • Description: 异步进程生命周期函数

  • Type: TypeAlias

  • Default: Callable[[str], Awaitable[Any]]

var PROCESS_LIFESPAN_FUNC

  • Description: 进程函数

  • Type: TypeAlias

  • Default: SYNC_PROCESS_LIFESPAN_FUNC | ASYNC_PROCESS_LIFESPAN_FUNC

class Lifespan


func __init__(self) -> None

Description: 轻雪生命周期管理,启动、停止、重启

Source code or View on GitHub
python
def __init__(self) -> None:
     self.life_flag: int = 0
     self._before_start_funcs: list[LIFESPAN_FUNC] = []
     self._after_start_funcs: list[LIFESPAN_FUNC] = []
@@ -53,8 +53,8 @@
     logger.debug('Running before_restart functions')
     await self.run_funcs(self._before_process_restart_funcs, *args, **kwargs)

async func after_restart(self) -> None

Description: 重启后钩子 未实现

Source code or View on GitHub
python
async def after_restart(self) -> None:
     logger.debug('Running after_restart functions')
-    await self.run_funcs(self._after_restart_funcs)

Documentation built with VitePress | API references generated by litedoc

- + await self.run_funcs(self._after_restart_funcs)

Documentation built with VitePress | API references generated by litedoc

+ \ No newline at end of file diff --git a/en/dev/api/comm/channel.html b/en/dev/api/comm/channel.html index 30771dc9..53b233e0 100644 --- a/en/dev/api/comm/channel.html +++ b/en/dev/api/comm/channel.html @@ -5,21 +5,21 @@ liteyuki.comm.channel | LiteyukiBot - - + + - + - - - + + + -
Skip to content

Module liteyuki.comm.channel

本模块定义了一个通用的通道类,用于进程间通信

var SYNC_ON_RECEIVE_FUNC

  • Description: 同步接收函数

  • Type: TypeAlias

  • Default: Callable[[T], Any]

var ON_RECEIVE_FUNC

  • Description: 接收函数

  • Type: TypeAlias

  • Default: SYNC_ON_RECEIVE_FUNC | ASYNC_ON_RECEIVE_FUNC

var SYNC_FILTER_FUNC

  • Description: 同步过滤函数

  • Type: TypeAlias

  • Default: Callable[[T], bool]

var ASYNC_FILTER_FUNC

  • Description: 异步过滤函数

  • Type: TypeAlias

  • Default: Callable[[T], Coroutine[Any, Any, bool]]

var FILTER_FUNC

  • Description: 过滤函数

  • Type: TypeAlias

  • Default: SYNC_FILTER_FUNC | ASYNC_FILTER_FUNC

class Channel(Generic[T])


func __init__(self, name: str, type_check: Optional[bool] = None)

Description: 初始化通道

Arguments:

  • name: 通道ID
  • type_check: 是否开启类型检查, 若为空,则传入泛型默认开启,否则默认关闭
Source code or View on GitHub
python
def __init__(self, name: str, type_check: Optional[bool]=None):
+    
Skip to content

Module liteyuki.comm.channel

本模块定义了一个通用的通道类,用于进程间通信

var SYNC_ON_RECEIVE_FUNC

  • Description: 同步接收函数

  • Type: TypeAlias

  • Default: Callable[[T], Any]

var ON_RECEIVE_FUNC

  • Description: 接收函数

  • Type: TypeAlias

  • Default: SYNC_ON_RECEIVE_FUNC | ASYNC_ON_RECEIVE_FUNC

var SYNC_FILTER_FUNC

  • Description: 同步过滤函数

  • Type: TypeAlias

  • Default: Callable[[T], bool]

var ASYNC_FILTER_FUNC

  • Description: 异步过滤函数

  • Type: TypeAlias

  • Default: Callable[[T], Coroutine[Any, Any, bool]]

var FILTER_FUNC

  • Description: 过滤函数

  • Type: TypeAlias

  • Default: SYNC_FILTER_FUNC | ASYNC_FILTER_FUNC

class Channel(Generic[T])


func __init__(self, name: str, type_check: Optional[bool] = None)

Description: 初始化通道

Arguments:

  • name: 通道ID
  • type_check: 是否开启类型检查, 若为空,则传入泛型默认开启,否则默认关闭
Source code or View on GitHub
python
def __init__(self, name: str, type_check: Optional[bool]=None):
     self.conn_send, self.conn_recv = Pipe()
     self._conn_send_inner, self._conn_recv_inner = Pipe()
     self._closed = False
@@ -112,8 +112,8 @@
     recv_chan.send(get_channel(name))

@channel_deliver_passive_channel.on_receive(filter_func=lambda data: data[0] == 'get_channels')

func on_get_channels(data: tuple[str, dict[str, Any]])

Source code or View on GitHub
python
@channel_deliver_passive_channel.on_receive(filter_func=lambda data: data[0] == 'get_channels')
 def on_get_channels(data: tuple[str, dict[str, Any]]):
     recv_chan = data[1]['recv_chan']
-    recv_chan.send(get_channels())

Documentation built with VitePress | API references generated by litedoc

- + recv_chan.send(get_channels())

Documentation built with VitePress | API references generated by litedoc

+ \ No newline at end of file diff --git a/en/dev/api/comm/event.html b/en/dev/api/comm/event.html index 5e0e420f..67aa50b4 100644 --- a/en/dev/api/comm/event.html +++ b/en/dev/api/comm/event.html @@ -5,24 +5,24 @@ liteyuki.comm.event | LiteyukiBot - - + + - + - - - + + + -
Skip to content

Module liteyuki.comm.event

本模块用于轻雪主进程和子进程之间的通信的事件类

class Event


func __init__(self, name: str, data: dict[str, Any])

Source code or View on GitHub
python
def __init__(self, name: str, data: dict[str, Any]):
+    
-    
+    self.data = data

Documentation built with VitePress | API references generated by litedoc

+ \ No newline at end of file diff --git a/en/dev/api/comm/index.html b/en/dev/api/comm/index.html index 42d7255c..3972a753 100644 --- a/en/dev/api/comm/index.html +++ b/en/dev/api/comm/index.html @@ -5,22 +5,22 @@ liteyuki.comm | LiteyukiBot - - + + - + - - - + + + - - + + \ No newline at end of file diff --git a/en/dev/api/comm/socks_channel.html b/en/dev/api/comm/socks_channel.html deleted file mode 100644 index 5e7a7f01..00000000 --- a/en/dev/api/comm/socks_channel.html +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - liteyuki.comm.socks_channel | LiteyukiBot - - - - - - - - - - - - - - - -
Skip to content

Module liteyuki.comm.socks_channel

基于socket的通道

class SocksChannel


func __init__(self, name: str)

Description: 初始化通道

Arguments:

  • name: 通道ID
Source code or View on GitHub
python
def __init__(self, name: str):
-    self._name = name
-    self._conn_send = None
-    self._conn_recv = None
-    self._closed = False

func send(self, data)

Description: 发送数据

Arguments:

  • data: 数据
Source code or View on GitHub
python
def send(self, data):
-    pass

func receive(self)

Description: 接收数据

Return: data: 数据

Source code or View on GitHub
python
def receive(self):
-    pass

func close(self)

Description: 关闭通道

Source code or View on GitHub
python
def close(self):
-    pass

Documentation built with VitePress | API references generated by litedoc

- - - - \ No newline at end of file diff --git a/en/dev/api/comm/storage.html b/en/dev/api/comm/storage.html index 8998f6e5..597cbb72 100644 --- a/en/dev/api/comm/storage.html +++ b/en/dev/api/comm/storage.html @@ -5,21 +5,21 @@ liteyuki.comm.storage | LiteyukiBot - - + + - + - - - + + + -
Skip to content

Module liteyuki.comm.storage

共享内存模块。类似于redis,但是更加轻量级并且线程安全

var _on_main_subscriber_receive_funcs

  • Description: 主进程订阅者接收函数

  • Type: dict[str, list[ASYNC_ON_RECEIVE_FUNC]]

  • Default: {}

var _on_sub_subscriber_receive_funcs

  • Description: 子进程订阅者接收函数

  • Type: dict[str, list[ASYNC_ON_RECEIVE_FUNC]]

  • Default: {}

class KeyValueStore


func __init__(self)

Source code or View on GitHub
python
def __init__(self):
+    
Skip to content

Module liteyuki.comm.storage

共享内存模块。类似于redis,但是更加轻量级并且线程安全

var _on_main_subscriber_receive_funcs

  • Description: 主进程订阅者接收函数

  • Type: dict[str, list[ASYNC_ON_RECEIVE_FUNC]]

  • Default: {}

var _on_sub_subscriber_receive_funcs

  • Description: 子进程订阅者接收函数

  • Type: dict[str, list[ASYNC_ON_RECEIVE_FUNC]]

  • Default: {}

class KeyValueStore


func __init__(self)

Source code or View on GitHub
python
def __init__(self):
     self._store = {}
     self.active_chan = Channel[tuple[str, Optional[dict[str, Any]]]](name='shared_memory-active')
     self.passive_chan = Channel[tuple[str, Optional[dict[str, Any]]]](name='shared_memory-passive')
@@ -108,8 +108,8 @@
     shared_memory.delete(key)

@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'get_all')

func on_get_all(data: tuple[str, dict[str, Any]])

Source code or View on GitHub
python
@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'get_all')
 def on_get_all(data: tuple[str, dict[str, Any]]):
     recv_chan = data[1]['recv_chan']
-    recv_chan.send(shared_memory.get_all())

Documentation built with VitePress | API references generated by litedoc

- + recv_chan.send(shared_memory.get_all())

Documentation built with VitePress | API references generated by litedoc

+ \ No newline at end of file diff --git a/en/dev/api/config.html b/en/dev/api/config.html index c8a2ed5a..29420940 100644 --- a/en/dev/api/config.html +++ b/en/dev/api/config.html @@ -5,21 +5,21 @@ liteyuki.config | LiteyukiBot - - + + - + - - - + + + -
Skip to content

Module liteyuki.config

该模块用于常用配置文件的加载 多配置文件编写原则:

  1. 尽量不要冲突: 一个键不要多次出现
  2. 分工明确: 每个配置文件给一个或一类服务提供配置
  3. 扁平化编写: 配置文件尽量扁平化,不要出现过多的嵌套
  4. 注意冲突时的优先级: 项目目录下的配置文件优先级高于config目录下的配置文件
  5. 请不要将需要动态加载的内容写入配置文件,你应该使用其他储存方式

func flat_config(config: dict[str, Any]) -> dict[str, Any]

Description: 扁平化配置文件

{a:{b:{c:1}}} ->

Arguments:

  • config: 配置项目

Return: 扁平化后的配置文件,但也包含原有的键值对

Source code or View on GitHub
python
def flat_config(config: dict[str, Any]) -> dict[str, Any]:
+    
Skip to content

Module liteyuki.config

该模块用于常用配置文件的加载 多配置文件编写原则:

  1. 尽量不要冲突: 一个键不要多次出现
  2. 分工明确: 每个配置文件给一个或一类服务提供配置
  3. 扁平化编写: 配置文件尽量扁平化,不要出现过多的嵌套
  4. 注意冲突时的优先级: 项目目录下的配置文件优先级高于config目录下的配置文件
  5. 请不要将需要动态加载的内容写入配置文件,你应该使用其他储存方式

func flat_config(config: dict[str, Any]) -> dict[str, Any]

Description: 扁平化配置文件

{a:{b:{c:1}}} ->

Arguments:

  • config: 配置项目

Return: 扁平化后的配置文件,但也包含原有的键值对

Source code or View on GitHub
python
def flat_config(config: dict[str, Any]) -> dict[str, Any]:
     new_config = copy.deepcopy(config)
     for key, value in config.items():
         if isinstance(value, dict):
@@ -61,8 +61,8 @@
     return config

func load_config_in_default(no_waring: bool = False) -> dict[str, Any]

Description: 从一个标准的轻雪项目加载配置文件 项目目录下的config.*和config目录下的所有配置文件 项目目录下的配置文件优先

Source code or View on GitHub
python
def load_config_in_default(no_waring: bool=False) -> dict[str, Any]:
     config = load_configs_from_dirs('config', no_waring=no_waring)
     config.update(load_from_files('config.yaml', 'config.toml', 'config.json', 'config.yml', no_warning=no_waring))
-    return config

Documentation built with VitePress | API references generated by litedoc

- + return config

Documentation built with VitePress | API references generated by litedoc

+ \ No newline at end of file diff --git a/en/dev/api/core/index.html b/en/dev/api/core/index.html index 60ebaf87..5065c9aa 100644 --- a/en/dev/api/core/index.html +++ b/en/dev/api/core/index.html @@ -5,22 +5,22 @@ liteyuki.core | LiteyukiBot - - + + - + - - - + + + - - + + \ No newline at end of file diff --git a/en/dev/api/core/manager.html b/en/dev/api/core/manager.html index 6c27b4be..65855b52 100644 --- a/en/dev/api/core/manager.html +++ b/en/dev/api/core/manager.html @@ -5,21 +5,21 @@ liteyuki.core.manager | LiteyukiBot - - + + - + - - - + + + -
Skip to content

Module liteyuki.core.manager

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/27 上午11:12 @Author : snowykami @Email : snowykami@outlook.com @File : manager.py @Software: PyCharm

class ChannelDeliver


func __init__(self, active: Channel[Any], passive: Channel[Any], channel_deliver_active: Channel[Channel[Any]], channel_deliver_passive: Channel[tuple[str, dict]], publish: Channel[tuple[str, Any]])

Source code or View on GitHub
python
def __init__(self, active: Channel[Any], passive: Channel[Any], channel_deliver_active: Channel[Channel[Any]], channel_deliver_passive: Channel[tuple[str, dict]], publish: Channel[tuple[str, Any]]):
+    
Skip to content

Module liteyuki.core.manager

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/27 上午11:12 @Author : snowykami @Email : snowykami@outlook.com @File : manager.py @Software: PyCharm

class ChannelDeliver


func __init__(self, active: Channel[Any], passive: Channel[Any], channel_deliver_active: Channel[Channel[Any]], channel_deliver_passive: Channel[tuple[str, dict]], publish: Channel[tuple[str, Any]])

Source code or View on GitHub
python
def __init__(self, active: Channel[Any], passive: Channel[Any], channel_deliver_active: Channel[Channel[Any]], channel_deliver_passive: Channel[tuple[str, dict]], publish: Channel[tuple[str, Any]]):
     self.active = active
     self.passive = passive
     self.channel_deliver_active = channel_deliver_active
@@ -64,8 +64,8 @@
     self.processes[name].start()

func start_all(self)

Description: 启动所有子进程

Source code or View on GitHub
python
def start_all(self):
     for name, process in self.processes.items():
         process.start()
-        logger.debug(f'Starting process {name}')

Documentation built with VitePress | API references generated by litedoc

- + logger.debug(f'Starting process {name}')

Documentation built with VitePress | API references generated by litedoc

+ \ No newline at end of file diff --git a/en/dev/api/dev/index.html b/en/dev/api/dev/index.html index de2c8854..af2ae13f 100644 --- a/en/dev/api/dev/index.html +++ b/en/dev/api/dev/index.html @@ -5,22 +5,22 @@ liteyuki.dev | LiteyukiBot - - + + - + - - - + + + - - + + \ No newline at end of file diff --git a/en/dev/api/dev/observer.html b/en/dev/api/dev/observer.html index 9eacb217..50de91f0 100644 --- a/en/dev/api/dev/observer.html +++ b/en/dev/api/dev/observer.html @@ -5,21 +5,21 @@ liteyuki.dev.observer | LiteyukiBot - - + + - + - - - + + + -
Skip to content

Module liteyuki.dev.observer

此模块用于注册观察者函数,使用watchdog监控文件变化并重启bot 启用该模块需要在配置文件中设置dev_mode为True

var CALLBACK_FUNC

  • Description: 位置1为FileSystemEvent

  • Type: TypeAlias

  • Default: Callable[[FileSystemEvent], None]

var FILTER_FUNC

  • Description: 位置1为FileSystemEvent

  • Type: TypeAlias

  • Default: Callable[[FileSystemEvent], bool]


func debounce(wait)

Description: 防抖函数

Source code or View on GitHub
python
def debounce(wait):
+    
Skip to content

Module liteyuki.dev.observer

此模块用于注册观察者函数,使用watchdog监控文件变化并重启bot 启用该模块需要在配置文件中设置dev_mode为True

var CALLBACK_FUNC

  • Description: 位置1为FileSystemEvent

  • Type: TypeAlias

  • Default: Callable[[FileSystemEvent], None]

var FILTER_FUNC

  • Description: 位置1为FileSystemEvent

  • Type: TypeAlias

  • Default: Callable[[FileSystemEvent], bool]


func debounce(wait)

Description: 防抖函数

Source code or View on GitHub
python
def debounce(wait):
 
     def decorator(func):
 
@@ -50,8 +50,8 @@
         for directory in directories:
             observer.schedule(code_modified_handler, directory, recursive=recursive)
         return func
-    return decorator

Documentation built with VitePress | API references generated by litedoc

- + return decorator

Documentation built with VitePress | API references generated by litedoc

+ \ No newline at end of file diff --git a/en/dev/api/dev/plugin.html b/en/dev/api/dev/plugin.html index becedf36..e3b9b3ba 100644 --- a/en/dev/api/dev/plugin.html +++ b/en/dev/api/dev/plugin.html @@ -5,28 +5,28 @@ liteyuki.dev.plugin | LiteyukiBot - - + + - + - - - + + + -
Skip to content

Module liteyuki.dev.plugin

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/18 上午5:04 @Author : snowykami @Email : snowykami@outlook.com @File : plugin.py @Software: PyCharm


func run_plugins(*module_path: str | Path)

Description: 运行插件,无需手动初始化bot

Arguments:

  • module_path: 插件路径,参考liteyuki.load_plugin的函数签名
Source code or View on GitHub
python
def run_plugins(*module_path: str | Path):
+    
Skip to content

Module liteyuki.dev.plugin

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/18 上午5:04 @Author : snowykami @Email : snowykami@outlook.com @File : plugin.py @Software: PyCharm


func run_plugins(*module_path: str | Path)

Description: 运行插件,无需手动初始化bot

Arguments:

  • module_path: 插件路径,参考liteyuki.load_plugin的函数签名
Source code or View on GitHub
python
def run_plugins(*module_path: str | Path):
     cfg = load_config_in_default()
     plugins = cfg.get('liteyuki.plugins', [])
     plugins.extend(module_path)
     cfg['liteyuki.plugins'] = plugins
     bot = LiteyukiBot(**cfg)
-    bot.run()

Documentation built with VitePress | API references generated by litedoc

- + bot.run()

Documentation built with VitePress | API references generated by litedoc

+ \ No newline at end of file diff --git a/en/dev/api/exception.html b/en/dev/api/exception.html index f45a4fea..0b8ccf06 100644 --- a/en/dev/api/exception.html +++ b/en/dev/api/exception.html @@ -5,22 +5,22 @@ liteyuki.exception | LiteyukiBot - - + + - + - - - + + + - - + + \ No newline at end of file diff --git a/en/dev/api/index.html b/en/dev/api/index.html index bddac55a..c26702bf 100644 --- a/en/dev/api/index.html +++ b/en/dev/api/index.html @@ -5,22 +5,22 @@ liteyuki API | LiteyukiBot - - + + - + - - - + + + - - + + \ No newline at end of file diff --git a/en/dev/api/log.html b/en/dev/api/log.html index 7360cc8e..12268bd2 100644 --- a/en/dev/api/log.html +++ b/en/dev/api/log.html @@ -5,21 +5,21 @@ liteyuki.log | LiteyukiBot - - + + - + - - - + + + -
Skip to content

Module liteyuki.log

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/27 上午9:12 @Author : snowykami @Email : snowykami@outlook.com @File : log.py @Software: PyCharm


func get_format(level: str) -> str

Source code or View on GitHub
python
def get_format(level: str) -> str:
+    
Skip to content

Module liteyuki.log

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/27 上午9:12 @Author : snowykami @Email : snowykami@outlook.com @File : log.py @Software: PyCharm


func get_format(level: str) -> str

Source code or View on GitHub
python
def get_format(level: str) -> str:
     if level == 'DEBUG':
         return debug_format
     else:
@@ -31,8 +31,8 @@
     logger.level('INFO', color='<normal>', icon=f"{('ℹ️' if show_icon else '')}INFO")
     logger.level('SUCCESS', color='<green>', icon=f"{('✅' if show_icon else '')}SUCCESS")
     logger.level('WARNING', color='<yellow>', icon=f"{('⚠️' if show_icon else '')}WARNING")
-    logger.level('ERROR', color='<red>', icon=f"{('⭕' if show_icon else '')}ERROR")

Documentation built with VitePress | API references generated by litedoc

- + logger.level('ERROR', color='<red>', icon=f"{('⭕' if show_icon else '')}ERROR")

Documentation built with VitePress | API references generated by litedoc

+ \ No newline at end of file diff --git a/en/dev/api/message/event.html b/en/dev/api/message/event.html deleted file mode 100644 index a026d8dd..00000000 --- a/en/dev/api/message/event.html +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - liteyuki.message.event | LiteyukiBot - - - - - - - - - - - - - - - -
Skip to content

Module liteyuki.message.event

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 下午10:47 @Author : snowykami @Email : snowykami@outlook.com @File : event.py @Software: PyCharm

class MessageEvent


func __init__(self, bot_id: str, message: list[dict[str, Any]] | str, message_type: str, raw_message: str, session_id: str, user_id: str, session_type: str, receive_channel: Optional[Channel[MessageEvent]] = None, data: Optional[dict[str, Any]] = None)

Description: 轻雪抽象消息事件

Source code or View on GitHub
python
def __init__(self, bot_id: str, message: list[dict[str, Any]] | str, message_type: str, raw_message: str, session_id: str, user_id: str, session_type: str, receive_channel: Optional[Channel['MessageEvent']]=None, data: Optional[dict[str, Any]]=None):
-    if data is None:
-        data = {}
-    self.message_type = message_type
-    self.data = data
-    self.bot_id = bot_id
-    self.message = message
-    self.raw_message = raw_message
-    self.session_id = session_id
-    self.session_type = session_type
-    self.user_id = user_id
-    self.receive_channel = receive_channel

func reply(self, message: str | dict[str, Any])

Description: 回复消息

Arguments:

  • message:
Source code or View on GitHub
python
def reply(self, message: str | dict[str, Any]):
-    reply_event = MessageEvent(message_type=self.session_type, message=message, raw_message='', data={'message': message}, bot_id=self.bot_id, session_id=self.session_id, user_id=self.user_id, session_type=self.session_type, receive_channel=None)
-    if self.receive_channel:
-        self.receive_channel.send(reply_event)

Documentation built with VitePress | API references generated by litedoc

- - - - \ No newline at end of file diff --git a/en/dev/api/message/index.html b/en/dev/api/message/index.html deleted file mode 100644 index 32669488..00000000 --- a/en/dev/api/message/index.html +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - liteyuki.message | LiteyukiBot - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/en/dev/api/message/matcher.html b/en/dev/api/message/matcher.html deleted file mode 100644 index fe2955eb..00000000 --- a/en/dev/api/message/matcher.html +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - liteyuki.message.matcher | LiteyukiBot - - - - - - - - - - - - - - - -
Skip to content

Module liteyuki.message.matcher

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 下午10:51 @Author : snowykami @Email : snowykami@outlook.com @File : matcher.py @Software: PyCharm

class Matcher


func __init__(self, rule: Rule, priority: int, block: bool)

Description: 匹配器

Arguments:

  • rule: 规则
  • priority: 优先级 >= 0
  • block: 是否阻断后续优先级更低的匹配器
Source code or View on GitHub
python
def __init__(self, rule: Rule, priority: int, block: bool):
-    self.rule = rule
-    self.priority = priority
-    self.block = block
-    self.handlers: list[EventHandler] = []

func handle(self) -> Callable[[EventHandler], EventHandler]

Description: 添加处理函数,装饰器

Return: 装饰器 handler

Source code or View on GitHub
python
def handle(self) -> Callable[[EventHandler], EventHandler]:
-
-    def decorator(handler: EventHandler) -> EventHandler:
-        self.handlers.append(handler)
-        return handler
-    return decorator

async func run(self, event: MessageEvent) -> None

Description: 运行处理函数

Arguments:

  • event:
Source code or View on GitHub
python
async def run(self, event: MessageEvent) -> None:
-    if not await self.rule(event):
-        return
-    for handler in self.handlers:
-        try:
-            await handler(event)
-        except Exception:
-            traceback.print_exc()

Documentation built with VitePress | API references generated by litedoc

- - - - \ No newline at end of file diff --git a/en/dev/api/message/on.html b/en/dev/api/message/on.html deleted file mode 100644 index c5875f15..00000000 --- a/en/dev/api/message/on.html +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - liteyuki.message.on | LiteyukiBot - - - - - - - - - - - - - - - -
Skip to content

Module liteyuki.message.on

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 下午10:52 @Author : snowykami @Email : snowykami@outlook.com @File : on.py @Software: PyCharm


func add_matcher(matcher: Matcher)

Source code or View on GitHub
python
def add_matcher(matcher: Matcher):
-    for i, m in enumerate(_matcher_list):
-        if m.priority < matcher.priority:
-            _matcher_list.insert(i, matcher)
-            break
-    else:
-        _matcher_list.append(matcher)

func on_message(rule: Rule = empty_rule, priority: int = 0, block: bool = False) -> Matcher

Source code or View on GitHub
python
def on_message(rule: Rule=empty_rule, priority: int=0, block: bool=False) -> Matcher:
-    matcher = Matcher(rule, priority, block)
-    add_matcher(matcher)
-    return matcher

func on_keywords(keywords: list[str], rule = empty_rule, priority: int = 0, block: bool = False) -> Matcher

Source code or View on GitHub
python
def on_keywords(keywords: list[str], rule=empty_rule, priority: int=0, block: bool=False) -> Matcher:
-
-    @Rule
-    async def on_keywords_rule(event: MessageEvent):
-        return any((keyword in event.raw_message for keyword in keywords))
-    return on_message(on_keywords_rule & rule, priority, block)

Documentation built with VitePress | API references generated by litedoc

- - - - \ No newline at end of file diff --git a/en/dev/api/message/rule.html b/en/dev/api/message/rule.html deleted file mode 100644 index 94a86e26..00000000 --- a/en/dev/api/message/rule.html +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - liteyuki.message.rule | LiteyukiBot - - - - - - - - - - - - - - - -
Skip to content

Module liteyuki.message.rule

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 下午10:55 @Author : snowykami @Email : snowykami@outlook.com @File : rule.py @Software: PyCharm

var RuleHandlerFunc

  • Description: 规则函数签名

  • Type: TypeAlias

  • Default: Callable[[MessageEvent], Coroutine[None, None, bool]]

class Rule


func __init__(self, handler: RuleHandlerFunc)

Source code or View on GitHub
python
def __init__(self, handler: RuleHandlerFunc):
-    self.handler = handler

func self | other: Rule => Rule

Source code or View on GitHub
python
def __or__(self, other: 'Rule') -> 'Rule':
-
-    async def combined_handler(event: MessageEvent) -> bool:
-        return await self.handler(event) or await other.handler(event)
-    return Rule(combined_handler)

func self & other: Rule => Rule

Source code or View on GitHub
python
def __and__(self, other: 'Rule') -> 'Rule':
-
-    async def combined_handler(event: MessageEvent) -> bool:
-        return await self.handler(event) and await other.handler(event)
-    return Rule(combined_handler)

async func self () event: MessageEvent => bool

Source code or View on GitHub
python
async def __call__(self, event: MessageEvent) -> bool:
-    if self.handler is None:
-        return True
-    return await self.handler(event)

@Rule

async func empty_rule(event: MessageEvent) -> bool

Source code or View on GitHub
python
@Rule
-async def empty_rule(event: MessageEvent) -> bool:
-    return True

@Rule

async func is_su_rule(event: MessageEvent) -> bool

Source code or View on GitHub
python
@Rule
-async def is_su_rule(event: MessageEvent) -> bool:
-    return str(event.user_id) in _superusers

Documentation built with VitePress | API references generated by litedoc

- - - - \ No newline at end of file diff --git a/en/dev/api/message/session.html b/en/dev/api/message/session.html deleted file mode 100644 index 154801ff..00000000 --- a/en/dev/api/message/session.html +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - liteyuki.message.session | LiteyukiBot - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/en/dev/api/mkdoc.html b/en/dev/api/mkdoc.html index b9f209ad..f2bbf399 100644 --- a/en/dev/api/mkdoc.html +++ b/en/dev/api/mkdoc.html @@ -5,21 +5,21 @@ liteyuki.mkdoc | LiteyukiBot - - + + - + - - - + + + -
Skip to content

Module liteyuki.mkdoc

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 上午6:23 @Author : snowykami @Email : snowykami@outlook.com @File : mkdoc.py @Software: PyCharm

class DefType(Enum)

attr FUNCTION = 'function'

attr METHOD = 'method'

attr STATIC_METHOD = 'staticmethod'

attr CLASS_METHOD = 'classmethod'

attr PROPERTY = 'property'

class FunctionInfo(BaseModel)

attr name: str = NO_DEFAULT

attr args: list[tuple[str, str]] = NO_DEFAULT

attr return_type: str = NO_DEFAULT

attr docstring: str = NO_DEFAULT

attr source_code: str = ''

attr type: DefType = NO_DEFAULT

attr is_async: bool = NO_DEFAULT

class AttributeInfo(BaseModel)

attr name: str = NO_DEFAULT

attr type: str = NO_DEFAULT

attr value: Any = None

attr docstring: str = ''

class ClassInfo(BaseModel)

attr name: str = NO_DEFAULT

attr docstring: str = NO_DEFAULT

attr methods: list[FunctionInfo] = NO_DEFAULT

attr attributes: list[AttributeInfo] = NO_DEFAULT

attr inherit: list[str] = NO_DEFAULT

class ModuleInfo(BaseModel)

attr module_path: str = NO_DEFAULT

attr functions: list[FunctionInfo] = NO_DEFAULT

attr classes: list[ClassInfo] = NO_DEFAULT

attr attributes: list[AttributeInfo] = NO_DEFAULT

attr docstring: str = NO_DEFAULT


func get_relative_path(base_path: str, target_path: str) -> str

Description: 获取相对路径

Arguments:

  • base_path: 基础路径
  • target_path: 目标路径
Source code or View on GitHub
python
def get_relative_path(base_path: str, target_path: str) -> str:
+    
Skip to content

Module liteyuki.mkdoc

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 上午6:23 @Author : snowykami @Email : snowykami@outlook.com @File : mkdoc.py @Software: PyCharm

class DefType(Enum)

attr FUNCTION = 'function'

attr METHOD = 'method'

attr STATIC_METHOD = 'staticmethod'

attr CLASS_METHOD = 'classmethod'

attr PROPERTY = 'property'

class FunctionInfo(BaseModel)

attr name: str = NO_DEFAULT

attr args: list[tuple[str, str]] = NO_DEFAULT

attr return_type: str = NO_DEFAULT

attr docstring: str = NO_DEFAULT

attr source_code: str = ''

attr type: DefType = NO_DEFAULT

attr is_async: bool = NO_DEFAULT

class AttributeInfo(BaseModel)

attr name: str = NO_DEFAULT

attr type: str = NO_DEFAULT

attr value: Any = None

attr docstring: str = ''

class ClassInfo(BaseModel)

attr name: str = NO_DEFAULT

attr docstring: str = NO_DEFAULT

attr methods: list[FunctionInfo] = NO_DEFAULT

attr attributes: list[AttributeInfo] = NO_DEFAULT

attr inherit: list[str] = NO_DEFAULT

class ModuleInfo(BaseModel)

attr module_path: str = NO_DEFAULT

attr functions: list[FunctionInfo] = NO_DEFAULT

attr classes: list[ClassInfo] = NO_DEFAULT

attr attributes: list[AttributeInfo] = NO_DEFAULT

attr docstring: str = NO_DEFAULT


func get_relative_path(base_path: str, target_path: str) -> str

Description: 获取相对路径

Arguments:

  • base_path: 基础路径
  • target_path: 目标路径
Source code or View on GitHub
python
def get_relative_path(base_path: str, target_path: str) -> str:
     return os.path.relpath(target_path, base_path)

func write_to_files(file_data: dict[str, str])

Description: 输出文件

Arguments:

  • file_data: 文件数据 相对路径
Source code or View on GitHub
python
def write_to_files(file_data: dict[str, str]):
     for rp, data in file_data.items():
         if not os.path.exists(os.path.dirname(rp)):
@@ -141,8 +141,8 @@
         md_content = generate_markdown(module_info, front_matter)
         print(f'Generate {pyfile_path} -> {abs_md_path}')
         file_data[abs_md_path] = md_content
-    write_to_files(file_data)

var no_module_name_pyfile_path

  • Description: 去头路径

  • Default: get_relative_path(module_folder, pyfile_path)

Documentation built with VitePress | API references generated by litedoc

- + write_to_files(file_data)

var no_module_name_pyfile_path

  • Description: 去头路径

  • Default: get_relative_path(module_folder, pyfile_path)

Documentation built with VitePress | API references generated by litedoc

+ \ No newline at end of file diff --git a/en/dev/api/plugin/index.html b/en/dev/api/plugin/index.html index d1399cd1..6f41a82a 100644 --- a/en/dev/api/plugin/index.html +++ b/en/dev/api/plugin/index.html @@ -5,23 +5,23 @@ liteyuki.plugin | LiteyukiBot - - + + - + - - - + + + - - + + \ No newline at end of file diff --git a/en/dev/api/plugin/load.html b/en/dev/api/plugin/load.html index 00c71e4a..f27b1f14 100644 --- a/en/dev/api/plugin/load.html +++ b/en/dev/api/plugin/load.html @@ -5,21 +5,21 @@ liteyuki.plugin.load | LiteyukiBot - - + + - + - - - + + + -
Skip to content

Module liteyuki.plugin.load

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/23 下午11:59 @Author : snowykami @Email : snowykami@outlook.com @File : load.py @Software: PyCharm


func load_plugin(module_path: str | Path) -> Optional[Plugin]

Description: 加载单个插件,可以是本地插件或是通过 pip 安装的插件。

Arguments:

  • module_path: 插件名称 path.to.your.plugin
  • 或插件路径 pathlib.Path(path/to/your/plugin):
Source code or View on GitHub
python
def load_plugin(module_path: str | Path) -> Optional[Plugin]:
+    
Skip to content

Module liteyuki.plugin.load

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/23 下午11:59 @Author : snowykami @Email : snowykami@outlook.com @File : load.py @Software: PyCharm


func load_plugin(module_path: str | Path) -> Optional[Plugin]

Description: 加载单个插件,可以是本地插件或是通过 pip 安装的插件。

Arguments:

  • module_path: 插件名称 path.to.your.plugin
  • 或插件路径 pathlib.Path(path/to/your/plugin):
Source code or View on GitHub
python
def load_plugin(module_path: str | Path) -> Optional[Plugin]:
     module_path = path_to_module_name(Path(module_path)) if isinstance(module_path, Path) else module_path
     try:
         module = import_module(module_path)
@@ -80,8 +80,8 @@
             color = 'e'
         case PluginType.SERVICE:
             color = 'c'
-    return f'<{color}>{display_name} [{plugin_type.name}]</{color}>'

Documentation built with VitePress | API references generated by litedoc

- + return f'<{color}>{display_name} [{plugin_type.name}]</{color}>'

Documentation built with VitePress | API references generated by litedoc

+ \ No newline at end of file diff --git a/en/dev/api/plugin/manager.html b/en/dev/api/plugin/manager.html index 5aa441fa..3bbc0038 100644 --- a/en/dev/api/plugin/manager.html +++ b/en/dev/api/plugin/manager.html @@ -5,22 +5,22 @@ liteyuki.plugin.manager | LiteyukiBot - - + + - + - - - + + + - - + + \ No newline at end of file diff --git a/en/dev/api/plugin/model.html b/en/dev/api/plugin/model.html index 46e5c3e6..ac960f88 100644 --- a/en/dev/api/plugin/model.html +++ b/en/dev/api/plugin/model.html @@ -5,23 +5,23 @@ liteyuki.plugin.model | LiteyukiBot - - + + - + - - - + + + -
Skip to content

Module liteyuki.plugin.model

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/24 上午12:02 @Author : snowykami @Email : snowykami@outlook.com @File : model.py @Software: PyCharm

class PluginType(Enum)

attr APPLICATION = 'application'

attr SERVICE = 'service'

attr MODULE = 'module'

attr UNCLASSIFIED = 'unclassified'

attr TEST = 'test'

class PluginMetadata(BaseModel)

attr name: str = NO_DEFAULT

attr description: str = ''

attr usage: str = ''

attr type: PluginType = PluginType.UNCLASSIFIED

attr author: str = ''

attr homepage: str = ''

attr extra: dict[str, Any] = {}

class Plugin(BaseModel)


func hash self

Source code or View on GitHub
python
def __hash__(self):
-    return hash(self.module_name)

attr model_config = {'arbitrary_types_allowed': True}

attr name: str = NO_DEFAULT

attr module: ModuleType = NO_DEFAULT

attr module_name: str = NO_DEFAULT

attr metadata: Optional[PluginMetadata] = None

Documentation built with VitePress | API references generated by litedoc

- +
Skip to content

Module liteyuki.plugin.model

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/24 上午12:02 @Author : snowykami @Email : snowykami@outlook.com @File : model.py @Software: PyCharm

class PluginType(Enum)

attr APPLICATION = 'application'

attr SERVICE = 'service'

attr MODULE = 'module'

attr UNCLASSIFIED = 'unclassified'

attr TEST = 'test'

class PluginMetadata(BaseModel)

attr name: str = NO_DEFAULT

attr description: str = ''

attr usage: str = ''

attr type: PluginType = PluginType.UNCLASSIFIED

attr author: str = ''

attr homepage: str = ''

attr extra: dict[str, Any] = {}

class Plugin(BaseModel)


func hash self

Source code or View on GitHub
python
def __hash__(self):
+    return hash(self.module_name)

attr model_config = {'arbitrary_types_allowed': True}

attr name: str = NO_DEFAULT

attr module: ModuleType = NO_DEFAULT

attr module_name: str = NO_DEFAULT

attr metadata: Optional[PluginMetadata] = None

Documentation built with VitePress | API references generated by litedoc

+ \ No newline at end of file diff --git a/en/dev/api/plugins/index.html b/en/dev/api/plugins/index.html index 6042b695..c94d9017 100644 --- a/en/dev/api/plugins/index.html +++ b/en/dev/api/plugins/index.html @@ -5,22 +5,22 @@ liteyuki.plugins | LiteyukiBot - - + + - + - - - + + + - - + + \ No newline at end of file diff --git a/en/dev/api/plugins/liteecho.html b/en/dev/api/plugins/liteecho.html index 5fc0c60f..a48674b8 100644 --- a/en/dev/api/plugins/liteecho.html +++ b/en/dev/api/plugins/liteecho.html @@ -5,24 +5,24 @@ liteyuki.plugins.liteecho | LiteyukiBot - - + + - + - - - + + + -
Skip to content

Module liteyuki.plugins.liteecho

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/22 下午12:31 @Author : snowykami @Email : snowykami@outlook.com @File : liteecho.py @Software: PyCharm


@on_startswith(['liteecho'], rule=is_su_rule).handle()

async func liteecho(event: MessageEvent)

Source code or View on GitHub
python
@on_startswith(['liteecho'], rule=is_su_rule).handle()
+    
Skip to content

Module liteyuki.plugins.liteecho

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/22 下午12:31 @Author : snowykami @Email : snowykami@outlook.com @File : liteecho.py @Software: PyCharm


@on_startswith(['liteecho'], rule=is_su_rule).handle()

async func liteecho(event: MessageEvent)

Source code or View on GitHub
python
@on_startswith(['liteecho'], rule=is_su_rule).handle()
 async def liteecho(event: MessageEvent):
-    event.reply(event.raw_message.strip()[8:].strip())

Documentation built with VitePress | API references generated by litedoc

- + event.reply(event.raw_message.strip()[8:].strip())

Documentation built with VitePress | API references generated by litedoc

+ \ No newline at end of file diff --git a/en/dev/api/plugins/plugin_loader/index.html b/en/dev/api/plugins/plugin_loader/index.html index 3b009424..aa9d0628 100644 --- a/en/dev/api/plugins/plugin_loader/index.html +++ b/en/dev/api/plugins/plugin_loader/index.html @@ -5,26 +5,26 @@ liteyuki.plugins.plugin_loader | LiteyukiBot - - + + - + - - - + + + -
Skip to content

Module liteyuki.plugins.plugin_loader

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/11 下午10:02 @Author : snowykami @Email : snowykami@outlook.com @File : init.py.py @Software: PyCharm


func default_plugins_loader()

Description: 默认插件加载器,应在初始化时调用

Source code or View on GitHub
python
def default_plugins_loader():
+    
Skip to content

Module liteyuki.plugins.plugin_loader

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/11 下午10:02 @Author : snowykami @Email : snowykami@outlook.com @File : init.py.py @Software: PyCharm


func default_plugins_loader()

Description: 默认插件加载器,应在初始化时调用

Source code or View on GitHub
python
def default_plugins_loader():
     for plugin in get_config('liteyuki.plugins', []):
         load_plugin(plugin)
     for plugin_dir in get_config('liteyuki.plugin_dirs', ['src/liteyuki_plugins']):
-        load_plugins(plugin_dir)

Documentation built with VitePress | API references generated by litedoc

- + load_plugins(plugin_dir)

Documentation built with VitePress | API references generated by litedoc

+ \ No newline at end of file diff --git a/en/dev/api/session/event.html b/en/dev/api/session/event.html new file mode 100644 index 00000000..04eafa6a --- /dev/null +++ b/en/dev/api/session/event.html @@ -0,0 +1,40 @@ + + + + + + liteyuki.session.event | LiteyukiBot + + + + + + + + + + + + + + + +
Skip to content

Module liteyuki.session.event

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 下午10:47 @Author : snowykami @Email : snowykami@outlook.com @File : event.py @Software: PyCharm

class MessageEvent


func __init__(self, bot_id: str, message: list[dict[str, Any]] | str, message_type: str, raw_message: str, session_id: str, user_id: str, session_type: str, receive_channel: Optional[Channel[MessageEvent]] = None, data: Optional[dict[str, Any]] = None)

Description: 轻雪抽象消息事件

Source code or View on GitHub
python
def __init__(self, bot_id: str, message: list[dict[str, Any]] | str, message_type: str, raw_message: str, session_id: str, user_id: str, session_type: str, receive_channel: Optional[Channel['MessageEvent']]=None, data: Optional[dict[str, Any]]=None):
+    if data is None:
+        data = {}
+    self.message_type = message_type
+    self.data = data
+    self.bot_id = bot_id
+    self.message = message
+    self.raw_message = raw_message
+    self.session_id = session_id
+    self.session_type = session_type
+    self.user_id = user_id
+    self.receive_channel = receive_channel

func reply(self, message: str | dict[str, Any])

Description: 回复消息

Arguments:

  • message:
Source code or View on GitHub
python
def reply(self, message: str | dict[str, Any]):
+    reply_event = MessageEvent(message_type=self.session_type, message=message, raw_message='', data={'message': message}, bot_id=self.bot_id, session_id=self.session_id, user_id=self.user_id, session_type=self.session_type, receive_channel=None)
+    if self.receive_channel:
+        self.receive_channel.send(reply_event)

Documentation built with VitePress | API references generated by litedoc

+ + + + \ No newline at end of file diff --git a/en/dev/api/session/index.html b/en/dev/api/session/index.html new file mode 100644 index 00000000..fce3dd00 --- /dev/null +++ b/en/dev/api/session/index.html @@ -0,0 +1,26 @@ + + + + + + liteyuki.session | LiteyukiBot + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/en/dev/api/session/matcher.html b/en/dev/api/session/matcher.html new file mode 100644 index 00000000..117ddaff --- /dev/null +++ b/en/dev/api/session/matcher.html @@ -0,0 +1,42 @@ + + + + + + liteyuki.session.matcher | LiteyukiBot + + + + + + + + + + + + + + + +
Skip to content

Module liteyuki.session.matcher

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 下午10:51 @Author : snowykami @Email : snowykami@outlook.com @File : matcher.py @Software: PyCharm

class Matcher


func __init__(self, rule: Rule, priority: int, block: bool)

Description: 匹配器

Arguments:

  • rule: 规则
  • priority: 优先级 >= 0
  • block: 是否阻断后续优先级更低的匹配器
Source code or View on GitHub
python
def __init__(self, rule: Rule, priority: int, block: bool):
+    self.rule = rule
+    self.priority = priority
+    self.block = block
+    self.handlers: list[EventHandler] = []

func handle(self) -> Callable[[EventHandler], EventHandler]

Description: 添加处理函数,装饰器

Return: 装饰器 handler

Source code or View on GitHub
python
def handle(self) -> Callable[[EventHandler], EventHandler]:
+
+    def decorator(handler: EventHandler) -> EventHandler:
+        self.handlers.append(handler)
+        return handler
+    return decorator

async func run(self, event: MessageEvent) -> None

Description: 运行处理函数

Arguments:

  • event:
Source code or View on GitHub
python
async def run(self, event: MessageEvent) -> None:
+    if not await self.rule(event):
+        return
+    for handler in self.handlers:
+        try:
+            await handler(event)
+        except Exception:
+            traceback.print_exc()

Documentation built with VitePress | API references generated by litedoc

+ + + + \ No newline at end of file diff --git a/en/dev/api/session/on.html b/en/dev/api/session/on.html new file mode 100644 index 00000000..be2df6f4 --- /dev/null +++ b/en/dev/api/session/on.html @@ -0,0 +1,40 @@ + + + + + + liteyuki.session.on | LiteyukiBot + + + + + + + + + + + + + + + +
Skip to content

Module liteyuki.session.on

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 下午10:52 @Author : snowykami @Email : snowykami@outlook.com @File : on.py @Software: PyCharm


func add_matcher(matcher: Matcher)

Source code or View on GitHub
python
def add_matcher(matcher: Matcher):
+    for i, m in enumerate(_matcher_list):
+        if m.priority < matcher.priority:
+            _matcher_list.insert(i, matcher)
+            break
+    else:
+        _matcher_list.append(matcher)

func on_message(rule: Rule = empty_rule, priority: int = 0, block: bool = False) -> Matcher

Source code or View on GitHub
python
def on_message(rule: Rule=empty_rule, priority: int=0, block: bool=False) -> Matcher:
+    matcher = Matcher(rule, priority, block)
+    add_matcher(matcher)
+    return matcher

func on_keywords(keywords: list[str], rule = empty_rule, priority: int = 0, block: bool = False) -> Matcher

Source code or View on GitHub
python
def on_keywords(keywords: list[str], rule=empty_rule, priority: int=0, block: bool=False) -> Matcher:
+
+    @Rule
+    async def on_keywords_rule(event: MessageEvent):
+        return any((keyword in event.raw_message for keyword in keywords))
+    return on_message(on_keywords_rule & rule, priority, block)

Documentation built with VitePress | API references generated by litedoc

+ + + + \ No newline at end of file diff --git a/en/dev/api/session/rule.html b/en/dev/api/session/rule.html new file mode 100644 index 00000000..2b0038ff --- /dev/null +++ b/en/dev/api/session/rule.html @@ -0,0 +1,42 @@ + + + + + + liteyuki.session.rule | LiteyukiBot + + + + + + + + + + + + + + + +
Skip to content

Module liteyuki.session.rule

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 下午10:55 @Author : snowykami @Email : snowykami@outlook.com @File : rule.py @Software: PyCharm

var RuleHandlerFunc

  • Description: 规则函数签名

  • Type: TypeAlias

  • Default: Callable[[MessageEvent], Coroutine[None, None, bool]]

class Rule


func __init__(self, handler: RuleHandlerFunc)

Source code or View on GitHub
python
def __init__(self, handler: RuleHandlerFunc):
+    self.handler = handler

func self | other: Rule => Rule

Source code or View on GitHub
python
def __or__(self, other: 'Rule') -> 'Rule':
+
+    async def combined_handler(event: MessageEvent) -> bool:
+        return await self.handler(event) or await other.handler(event)
+    return Rule(combined_handler)

func self & other: Rule => Rule

Source code or View on GitHub
python
def __and__(self, other: 'Rule') -> 'Rule':
+
+    async def combined_handler(event: MessageEvent) -> bool:
+        return await self.handler(event) and await other.handler(event)
+    return Rule(combined_handler)

async func self () event: MessageEvent => bool

Source code or View on GitHub
python
async def __call__(self, event: MessageEvent) -> bool:
+    if self.handler is None:
+        return True
+    return await self.handler(event)

@Rule

async func empty_rule(event: MessageEvent) -> bool

Source code or View on GitHub
python
@Rule
+async def empty_rule(event: MessageEvent) -> bool:
+    return True

@Rule

async func is_su_rule(event: MessageEvent) -> bool

Source code or View on GitHub
python
@Rule
+async def is_su_rule(event: MessageEvent) -> bool:
+    return str(event.user_id) in _superusers

Documentation built with VitePress | API references generated by litedoc

+ + + + \ No newline at end of file diff --git a/en/dev/api/session/session.html b/en/dev/api/session/session.html new file mode 100644 index 00000000..182dc512 --- /dev/null +++ b/en/dev/api/session/session.html @@ -0,0 +1,26 @@ + + + + + + liteyuki.session.session | LiteyukiBot + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/en/dev/api/utils.html b/en/dev/api/utils.html index b6045df0..005d72cd 100644 --- a/en/dev/api/utils.html +++ b/en/dev/api/utils.html @@ -5,21 +5,21 @@ liteyuki.utils | LiteyukiBot - - + + - + - - - + + + -
Skip to content

Module liteyuki.utils

一些常用的工具类,部分来源于 nonebot 并遵循其许可进行修改


func is_coroutine_callable(call: Callable[..., Any]) -> bool

Description: 判断是否为协程可调用对象

Arguments:

  • call: 可调用对象

Return: bool: 是否为协程可调用对象

Source code or View on GitHub
python
def is_coroutine_callable(call: Callable[..., Any]) -> bool:
+    
Skip to content

Module liteyuki.utils

一些常用的工具类,部分来源于 nonebot 并遵循其许可进行修改


func is_coroutine_callable(call: Callable[..., Any]) -> bool

Description: 判断是否为协程可调用对象

Arguments:

  • call: 可调用对象

Return: bool: 是否为协程可调用对象

Source code or View on GitHub
python
def is_coroutine_callable(call: Callable[..., Any]) -> bool:
     if inspect.isroutine(call):
         return inspect.iscoroutinefunction(call)
     if inspect.isclass(call):
@@ -51,8 +51,8 @@
     async def wrapper(*args, **kwargs):
         return func(*args, **kwargs)
     wrapper.__signature__ = inspect.signature(func)
-    return wrapper

Documentation built with VitePress | API references generated by litedoc

- + return wrapper

Documentation built with VitePress | API references generated by litedoc

+ \ No newline at end of file diff --git a/en/dev/best_practices.html b/en/dev/best_practices.html index 445d19db..422b1ab0 100644 --- a/en/dev/best_practices.html +++ b/en/dev/best_practices.html @@ -5,22 +5,22 @@ Best Practices | LiteyukiBot - - + + - + - - - + + + -
Skip to content

Best Practices

Bot applications

plugins

Others

  • liteyuki starmap: Liteyuki official star map, showing all instances of Liteyuki and their location distribution
  • TRSS_Liteyuki: LiteyukiBot management script
  • litedoc: Liteyuki API documentation generator
  • liteyukibot-api (closed source): Liteyuki Bot stat interface

Documentation built with VitePress | API references generated by litedoc

- +
Skip to content

Best Practices

Bot applications

plugins

Others

  • liteyuki starmap: Liteyuki official star map, showing all instances of Liteyuki and their location distribution
  • TRSS_Liteyuki: LiteyukiBot management script
  • litedoc: Liteyuki API documentation generator
  • liteyukibot-api (closed source): Liteyuki Bot stat interface

Documentation built with VitePress | API references generated by litedoc

+ \ No newline at end of file diff --git a/en/dev/comm.html b/en/dev/comm.html index 55aa7f9f..ee44ba4b 100644 --- a/en/dev/comm.html +++ b/en/dev/comm.html @@ -5,21 +5,21 @@ Process Communication | LiteyukiBot - - + + - + - - - + + + -
Skip to content

Channel Communication

Introduction

LiteyukiBot is running in the main process MainProcess, and other plugin framework processes are child processes that come with it. Therefore, it is impossible to communicate through shared memory and direct object transfer. Liteyuki provides a channel Channel for inter-process communication like go. You can send messages to other processes through Channel and listen to messages from other processes.

Example

The channel is full-duplex, with two receiving modes, but only one mode can be used for a channel, that is, passive mode and active mode, passive mode is implemented by the chan.on_receive() decorator callback function, and active mode needs to call chan.receive() to implement

  • 创建子进程的同时会初始化一个被动通道和一个主动通道,且通道标识为{process_name}-active{process_name}-passive
  • 主进程中通过get_channel函数获取通道对象
  • 子进程中导入单例active_channelpassive_channel即可

在轻雪插件中(主进程中)

python
import asyncio
+    
Skip to content

Channel Communication

Introduction

LiteyukiBot is running in the main process MainProcess, and other plugin framework processes are child processes that come with it. Therefore, it is impossible to communicate through shared memory and direct object transfer. Liteyuki provides a channel Channel for inter-process communication like go. You can send messages to other processes through Channel and listen to messages from other processes.

Example

The channel is full-duplex, with two receiving modes, but only one mode can be used for a channel, that is, passive mode and active mode, passive mode is implemented by the chan.on_receive() decorator callback function, and active mode needs to call chan.receive() to implement

  • 创建子进程的同时会初始化一个被动通道和一个主动通道,且通道标识为{process_name}-active{process_name}-passive
  • 主进程中通过get_channel函数获取通道对象
  • 子进程中导入单例active_channelpassive_channel即可

在轻雪插件中(主进程中)

python
import asyncio
 
 from liteyuki.comm import get_channel, Channel
 from liteyuki import get_bot
@@ -61,8 +61,8 @@
 ...

共享内存通信

简介

  • 相比于普通进程通信,内存共享使得代码编写更加简洁,轻雪框架提供了一个内存共享通信的接口,你可以通过storage模块实现内存共享通信,该模块封装通道实现
  • 内存共享是线程安全的,你可以在多个线程中读写共享内存,线程锁会自动保护共享内存的读写操作

示例

在任意进程中均可使用

python
from liteyuki.comm.storage import shared_memory
 
 shared_memory.set("key", "value")  # 设置共享内存
-value = shared_memory.get("key")  # 获取共享内存

源代码:liteyuki/comm/storage.py

Documentation built with VitePress | API references generated by litedoc

- +value = shared_memory.get("key") # 获取共享内存

源代码:liteyuki/comm/storage.py

Documentation built with VitePress | API references generated by litedoc

+ \ No newline at end of file diff --git a/en/dev/guide.html b/en/dev/guide.html index dab862f4..76ae24c4 100644 --- a/en/dev/guide.html +++ b/en/dev/guide.html @@ -5,23 +5,23 @@ Development Guide | LiteyukiBot - - + + - + - - - - + + + + -
Skip to content

Development Guide

How to Develop

Please read the Plugin Development and API Reference documents if you are developing a plugin.

If you need to submit code to the Liteyuki repository, please read the following:

  1. First fork a copy of the Liteyuki repository to your personal/organization account.
  2. Develop in your repository.
  3. Create a new branch in your repository and submit your code to this branch.
  4. Create a Pull Request in your repository to merge your branch into the main branch of the Liteyuki repository.
  • Participation in development assumes that you are already familiar with the basic usage of the Python language and the Liteyuki framework.
  • If you are developing documentation, please ensure that you are familiar with Markdown syntax and basic front-end knowledge.
  • Contact the repository maintainer in case of conflicts.

Suggestions

  • During development, you can use tools such as mypy, flake8, and black for code checking and formatting.
  • Enable developer mode by setting dev_mode: true in config.yml to see more debugging information in the console.

Project Structure

  • main.py: Bot entry file
  • liteyuki: Framework directory (liteyukibot)
  • src: Bot application source code directory
    • liteyuki_plugins: Liteyuki plugin directory
    • nonebot_plugins: Nonebot plugin directory
    • resources: Built-in resource packs directory
    • utils: Utility directory
  • tests: Unit test directory
  • docs: Documentation directory
    • en: English documentation
    • zh: Chinese documentation
  • docker: Docker related content directory

The liteyuki framework is included in the LiteyukiBot application, so this project is both the LiteyukiBot application repository and the liteyuki framework repository.

The src directory is the application part, please develop business logic in this directory. liteyuki_plugins and nonebot_plugins directories are plugin directories, please develop plugins in these directories.

Standardization

  • Code should follow PEP8 and Google Python Style Guide.
  • In addition, code submitted to the Liteyuki repository should follow the following guidelines:
    • Ensure that the code is runnable and harmless.
    • Ensure that the type hints in the code are correct.
    • Ensure that the comment style is Google Docstring or Liteyuki Docstring(recommended) to ensure that Litedoc can parse and generate documentation correctly.
    • Strings should be enclosed in double quotes " as much as possible, and single quotes ' should be used when nesting strings.
    • If there is a part for ordinary users, ensure that the documentation is complete (each language has corresponding documentation).
  • commit message should follow the following guidelines:
    • You should commit the code after completing a feature or fixing a bug, and not mix the code of multiple features or bugs together.
    • We use gitmoji to mark the type of commit, such as :sparkles: for introducing new features, :bug: for fixing bugs, etc., please refer to gitmoji for details.
    • The format of the commit message is <emoji> [type:] <message>, such as :sparkles: feat: add new field to event, where the type field is the type of commit, not much is required, but please fill in as much as possible; the message field is a brief description, in summary, what you did.
    • There is no restriction on the language of the commit message, and bilingual use is possible if conditions permit.
  • The documentation should follow Markdown syntax and support vitepress-related content:
    • Revise the documentation for each language when editing.
    • Ensure that the links in the document are correct and do not lead to inaccessible links.
    • Ensure that the User Documentation is easy to understand and the Development Documentation is detailed.

Finally

  • This project is a non-profit open-source project, and we welcome anyone to participate in development. Your contributions will make Liteyuki better.

Thanks the following contributors!

Contributors

Documentation built with VitePress | API references generated by litedoc

- +
Skip to content

Development Guide

How to Develop

Please read the Plugin Development and API Reference documents if you are developing a plugin.

If you need to submit code to the Liteyuki repository, please read the following:

  1. First fork a copy of the Liteyuki repository to your personal/organization account.
  2. Develop in your repository.
  3. Create a new branch in your repository and submit your code to this branch.
  4. Create a Pull Request in your repository to merge your branch into the main branch of the Liteyuki repository.
  • Participation in development assumes that you are already familiar with the basic usage of the Python language and the Liteyuki framework.
  • If you are developing documentation, please ensure that you are familiar with Markdown syntax and basic front-end knowledge.
  • Contact the repository maintainer in case of conflicts.

Suggestions

  • During development, you can use tools such as mypy, flake8, and black for code checking and formatting.
  • Enable developer mode by setting dev_mode: true in config.yml to see more debugging information in the console.

Project Structure

  • main.py: Bot entry file
  • liteyuki: Framework directory (liteyukibot)
  • src: Bot application source code directory
    • liteyuki_plugins: Liteyuki plugin directory
    • nonebot_plugins: Nonebot plugin directory
    • resources: Built-in resource packs directory
    • utils: Utility directory
  • tests: Unit test directory
  • docs: Documentation directory
    • en: English documentation
    • zh: Chinese documentation
  • docker: Docker related content directory

The liteyuki framework is included in the LiteyukiBot application, so this project is both the LiteyukiBot application repository and the liteyuki framework repository.

The src directory is the application part, please develop business logic in this directory. liteyuki_plugins and nonebot_plugins directories are plugin directories, please develop plugins in these directories.

Standardization

  • Code should follow PEP8 and Google Python Style Guide.
  • In addition, code submitted to the Liteyuki repository should follow the following guidelines:
    • Ensure that the code is runnable and harmless.
    • Ensure that the type hints in the code are correct.
    • Ensure that the comment style is Google Docstring or Liteyuki Docstring(recommended) to ensure that Litedoc can parse and generate documentation correctly.
    • Strings should be enclosed in double quotes " as much as possible, and single quotes ' should be used when nesting strings.
    • If there is a part for ordinary users, ensure that the documentation is complete (each language has corresponding documentation).
  • commit message should follow the following guidelines:
    • You should commit the code after completing a feature or fixing a bug, and not mix the code of multiple features or bugs together.
    • We use gitmoji to mark the type of commit, such as :sparkles: for introducing new features, :bug: for fixing bugs, etc., please refer to gitmoji for details.
    • The format of the commit message is <emoji> [type:] <message>, such as :sparkles: feat: add new field to event, where the type field is the type of commit, not much is required, but please fill in as much as possible; the message field is a brief description, in summary, what you did.
    • There is no restriction on the language of the commit message, and bilingual use is possible if conditions permit.
  • The documentation should follow Markdown syntax and support vitepress-related content:
    • Revise the documentation for each language when editing.
    • Ensure that the links in the document are correct and do not lead to inaccessible links.
    • Ensure that the User Documentation is easy to understand and the Development Documentation is detailed.

Finally

  • This project is a non-profit open-source project, and we welcome anyone to participate in development. Your contributions will make Liteyuki better.

Thanks the following contributors!

Contributors

Documentation built with VitePress | API references generated by litedoc

+ \ No newline at end of file diff --git a/en/dev/lyfunc.html b/en/dev/lyfunc.html index 6e2cf0cd..8bd19a61 100644 --- a/en/dev/lyfunc.html +++ b/en/dev/lyfunc.html @@ -5,21 +5,21 @@ Liteyuki Function | LiteyukiBot - - + + - + - - - + + + -
Skip to content

轻雪函数

轻雪函数 Liteyuki Function 是轻雪的一个功能,它允许你在轻雪中运行一些自定义的由数据驱动的命令,类似于Minecraft的mcfunction,属于资源包的一部分,但需单独起篇幅.

函数文件

函数文件放在资源包的functions目录下,文件名以.mcfunction .lyfunction .lyf结尾,例如test.mcfunction,文件内容为一系列的命令,每行一个命令,支持单行注释#(编辑时的语法高亮可采取shell格式),例如:

shell
# 在发信器输出"hello world"
+    
Skip to content

轻雪函数

轻雪函数 Liteyuki Function 是轻雪的一个功能,它允许你在轻雪中运行一些自定义的由数据驱动的命令,类似于Minecraft的mcfunction,属于资源包的一部分,但需单独起篇幅.

函数文件

函数文件放在资源包的functions目录下,文件名以.mcfunction .lyfunction .lyf结尾,例如test.mcfunction,文件内容为一系列的命令,每行一个命令,支持单行注释#(编辑时的语法高亮可采取shell格式),例如:

shell
# 在发信器输出"hello world"
 cmd echo hello world
 
 # 如果你想同时输出多行内容可以尝试换行符(Python格式)
@@ -38,8 +38,8 @@
 api friend_poke user_id=user_id
 sleep 0.2
 nohup function poke
-await

API

理论上所有基于onebotv11的api都可调用,不同Adapter api也有差别.

Onebot v11 API文档

结束关键字

由于LiteyukiBot基于异步运行, 所以在编写lyfunction时也要注意异步的调用,避免出现"单线程走到底"的情况是效率提升的关键.

await 异步任务结束关键字,用于结束当前已完成function的执行

WARNING

但若出现非单function的情况,有一个task任务没有完成而await被执行了,那么当前所有函数包的task都会被截停销毁

TIP

编写轻雪函数推荐你使用VS Code插件Liteyuki Function实现语法高亮

Documentation built with VitePress | API references generated by litedoc

- +await

API

理论上所有基于onebotv11的api都可调用,不同Adapter api也有差别.

Onebot v11 API文档

结束关键字

由于LiteyukiBot基于异步运行, 所以在编写lyfunction时也要注意异步的调用,避免出现"单线程走到底"的情况是效率提升的关键.

await 异步任务结束关键字,用于结束当前已完成function的执行

WARNING

但若出现非单function的情况,有一个task任务没有完成而await被执行了,那么当前所有函数包的task都会被截停销毁

TIP

编写轻雪函数推荐你使用VS Code插件Liteyuki Function实现语法高亮

Documentation built with VitePress | API references generated by litedoc

+ \ No newline at end of file diff --git a/en/dev/plugin.html b/en/dev/plugin.html index c805a0dd..a59b6f0d 100644 --- a/en/dev/plugin.html +++ b/en/dev/plugin.html @@ -5,21 +5,21 @@ Liteyuki Plugin | LiteyukiBot - - + + - + - - - + + + -
Skip to content

简介

轻雪插件是轻雪内置的一部分功能,运行在主进程中,可以很高程度地扩展轻雪的功能

开始

创建插件

一个.py文件或一个包含__init__.py的文件夹即可被识别为插件

首先创建一个文件夹,例如watchdog_plugin,并在其中创建一个__init__.py文件,即可创建一个插件

__init__.py

python
from liteyuki.plugin import PluginMetadata, PluginType
+    
Skip to content

简介

轻雪插件是轻雪内置的一部分功能,运行在主进程中,可以很高程度地扩展轻雪的功能

开始

创建插件

一个.py文件或一个包含__init__.py的文件夹即可被识别为插件

首先创建一个文件夹,例如watchdog_plugin,并在其中创建一个__init__.py文件,即可创建一个插件

__init__.py

python
from liteyuki.plugin import PluginMetadata, PluginType
 from .watch_dog import *    # 导入逻辑部分
 
 # 定义插件元数据
@@ -50,8 +50,8 @@
     logger.debug(f"File {event.src_path} changed, reloading nonebot...")
     liteyuki.restart_process("nonebot")  # 调用重启进程方法

加载插件

方法1

  • 在配置文件中的liteyuki.plugins中添加你的插件路径,例如watchdog_plugin,重启轻雪即可加载插件。

方法2

  • 使用开发工具快速运行插件,无需手动创建实例
  • 创建入口文件,例如main.py,并在其中写入以下代码
python
from liteyuki.dev.plugin import run_plugins
 
-run_plugins("watchdog_plugin")

然后运行python main.py即可启动插件

启用插件后,我们在src/nonebot_plugins下创建一个文件,例如test.py,并在其中写入一些代码,保存后轻雪会自动重载NoneBot进程

Documentation built with VitePress | API references generated by litedoc

- +run_plugins("watchdog_plugin")

然后运行python main.py即可启动插件

启用插件后,我们在src/nonebot_plugins下创建一个文件,例如test.py,并在其中写入一些代码,保存后轻雪会自动重载NoneBot进程

Documentation built with VitePress | API references generated by litedoc

+ \ No newline at end of file diff --git a/en/dev/resource.html b/en/dev/resource.html index 5250106e..2b043b5f 100644 --- a/en/dev/resource.html +++ b/en/dev/resource.html @@ -5,21 +5,21 @@ Resource Pack | LiteyukiBot - - + + - + - - - + + + -
Skip to content

简介

资源包,亦可根据用途称为主题包、字体包、语言包等,它允许你一定程度上自定义轻雪的外观,并且不用修改源代码

  • 资源/主题商店提供了一些资源包供你选择,你也可以自己制作资源包
  • 资源包的制作很简单,如果你接触过Minecraft的资源包,那么你能够很快就上手,仅需按照原有路径进行文件替换即可,讲起打包成一个新的资源包。
  • 部分内容制作需要一点点前端基础,例如htmlcss
  • 轻雪原版资源包请查看LiteyukiBot/liteyuki/resources,可以在此基础上进行修改
  • 欢迎各位投稿资源包到轻雪资源商店

请注意,主题包中的html渲染使用Js来规定数据的渲染位置,请确保您所编写的html代码能被Bot解析,否则会导致渲染失败或渲染结果不理想/异常/错位等无法预料的事情发生。推荐在编写html时同时更改对应Js代码,以避免出现无法预料的问题。


加载资源包

  • 资源包通常是以.zip格式压缩的,只需要将其解压到根目录resources目录下即可,注意不要嵌套文件夹,正常的路径应该是这样的
shell
main.py
+    
Skip to content

简介

资源包,亦可根据用途称为主题包、字体包、语言包等,它允许你一定程度上自定义轻雪的外观,并且不用修改源代码

  • 资源/主题商店提供了一些资源包供你选择,你也可以自己制作资源包
  • 资源包的制作很简单,如果你接触过Minecraft的资源包,那么你能够很快就上手,仅需按照原有路径进行文件替换即可,讲起打包成一个新的资源包。
  • 部分内容制作需要一点点前端基础,例如htmlcss
  • 轻雪原版资源包请查看LiteyukiBot/liteyuki/resources,可以在此基础上进行修改
  • 欢迎各位投稿资源包到轻雪资源商店

请注意,主题包中的html渲染使用Js来规定数据的渲染位置,请确保您所编写的html代码能被Bot解析,否则会导致渲染失败或渲染结果不理想/异常/错位等无法预料的事情发生。推荐在编写html时同时更改对应Js代码,以避免出现无法预料的问题。


加载资源包

  • 资源包通常是以.zip格式压缩的,只需要将其解压到根目录resources目录下即可,注意不要嵌套文件夹,正常的路径应该是这样的
shell
main.py
 resources
 └─resource_pack_1
     ├─metadata.yml
@@ -31,8 +31,8 @@
 version: "1.0.0"
 description: "资源包描述"
 # 你可以自定义一些信息,但请保证以上三个字段
-...
  • 资源包加载遵循一个优先级,即后加载的资源包会覆盖前面的资源包,例如,你在A包中定义了一个index.html文件,B包也定义了一个index.html文件,那么加载B包后,A包中的index.html文件会被覆盖
  • 对于不同资源包的不同文件,是可以相对引用的,例如你在A中定义了templates/index.html,在B中定义了templates/style.css,可以在A的index.html中用./style.css相对路径引用B中的css

TIP

资源包的结构会随着轻雪的更新而有变动,第三方资源包开发者需要注意版本兼容性,同时用户也应该自行选择可用的资源包

Documentation built with VitePress | API references generated by litedoc

- +...
  • 资源包加载遵循一个优先级,即后加载的资源包会覆盖前面的资源包,例如,你在A包中定义了一个index.html文件,B包也定义了一个index.html文件,那么加载B包后,A包中的index.html文件会被覆盖
  • 对于不同资源包的不同文件,是可以相对引用的,例如你在A中定义了templates/index.html,在B中定义了templates/style.css,可以在A的index.html中用./style.css相对路径引用B中的css

TIP

资源包的结构会随着轻雪的更新而有变动,第三方资源包开发者需要注意版本兼容性,同时用户也应该自行选择可用的资源包

Documentation built with VitePress | API references generated by litedoc

+ \ No newline at end of file diff --git a/en/index.html b/en/index.html index 0fcb371e..5eeea460 100644 --- a/en/index.html +++ b/en/index.html @@ -5,22 +5,22 @@ LiteyukiBot - - + + - + - - - + + + - - + + \ No newline at end of file diff --git a/en/store/plugin.html b/en/store/plugin.html index 63294cac..7ad86ded 100644 --- a/en/store/plugin.html +++ b/en/store/plugin.html @@ -5,22 +5,22 @@ Plugin Store | LiteyukiBot - - + + - + - - - + + + -
Skip to content

Plugin Store

Content from the LightSnow Plugin Store, LightSnow supports NoneBot through the lpnonebot plugin, and references some NoneBot plugins

Liteyuki Only
NoneBot插件
在轻雪中使用NoneBot,内置轻雪--NoneBot会话控制器插件,为NoneBot开发者提供了更多便捷功能(已内置)
app
防断联插件
防止你的群友断联化
appdislink
LagrangePlugin
在轻雪中使用lagrange-python!
applagrange
htmlrender
使用系统中的浏览器对网页进行渲染,便于其他插件使用
chromium

Documentation built with VitePress | API references generated by litedoc

- +
Skip to content

Plugin Store

Content from the LightSnow Plugin Store, LightSnow supports NoneBot through the lpnonebot plugin, and references some NoneBot plugins

Liteyuki Only
NoneBot插件
在轻雪中使用NoneBot,内置轻雪--NoneBot会话控制器插件,为NoneBot开发者提供了更多便捷功能(已内置)
app
防断联插件
防止你的群友断联化
appdislink
LagrangePlugin
在轻雪中使用lagrange-python!
applagrange
htmlrender
使用系统中的浏览器对网页进行渲染,便于其他插件使用
chromium

Documentation built with VitePress | API references generated by litedoc

+ \ No newline at end of file diff --git a/en/store/resource.html b/en/store/resource.html index 068c3592..dfc761cc 100644 --- a/en/store/resource.html +++ b/en/store/resource.html @@ -5,22 +5,22 @@ Resource Store | LiteyukiBot - - + + - + - - - + + + -
Skip to content

Resources Store

测试资源包2
test
轻雪Kakyo语言包 稳定版
Liteyuki Bot的语言包,用于提供多种语言的翻译。
测试资源包
更多背景模板包
自定义各种卡片的背景
轻雪Kakyo语言包
Liteyuki Bot的语言包,用于提供多种语言的翻译。
轻雪可爱系词库
使用https://github.com/Kyomotoi/AnimeThesaurus的词库
轻雪傲娇系词库
使用https://github.com/Kyomotoi/AnimeThesaurus的词库
自定义设备信息
自定义服务端的设备信息,自行修改使用
野兽先辈主题HomoTheme
野兽先辈主题包,114514!
MapleMono字体包
适用于字母的字体包
MiSans字体包
小米官方字体MiSans
KawaiiStatus
可爱的状态卡片,仿照koishi的制作

Documentation built with VitePress | API references generated by litedoc

- +
Skip to content

Resources Store

测试资源包2
test
轻雪Kakyo语言包 稳定版
Liteyuki Bot的语言包,用于提供多种语言的翻译。
测试资源包
更多背景模板包
自定义各种卡片的背景
轻雪Kakyo语言包
Liteyuki Bot的语言包,用于提供多种语言的翻译。
轻雪可爱系词库
使用https://github.com/Kyomotoi/AnimeThesaurus的词库
轻雪傲娇系词库
使用https://github.com/Kyomotoi/AnimeThesaurus的词库
自定义设备信息
自定义服务端的设备信息,自行修改使用
野兽先辈主题HomoTheme
野兽先辈主题包,114514!
MapleMono字体包
适用于字母的字体包
MiSans字体包
小米官方字体MiSans
KawaiiStatus
可爱的状态卡片,仿照koishi的制作

Documentation built with VitePress | API references generated by litedoc

+ \ No newline at end of file diff --git a/en/usage/agreement.html b/en/usage/agreement.html index 5b75e97f..ff4b2a5b 100644 --- a/en/usage/agreement.html +++ b/en/usage/agreement.html @@ -5,22 +5,22 @@ 用户协议 | LiteyukiBot - - + + - + - - - + + + -
Skip to content

用户协议

  1. 本项目遵循MIT协议,你可以自由使用,修改,分发,但是请保留原作者信息
  2. 你可以选择开启auto_report(默认开启),轻雪会收集以下内容
    • 运行环境的设备信息:CPU,内存,系统信息及Python信息
    • 插件信息(不含插件数据)
    • 部分异常信息,
    • 会话负载信息(不含隐私部分) 以上内容仅用于项目的优化,不包含任何隐私信息,且通过安全的方式传输到轻雪的服务器,若你不希望提供这些信息,可以在配置文件中把auto_report设定为false
  3. 本项目不会收集用户的任何隐私信息,但请注意甄别第三方插件的安全性
  4. 使用此项目代表你已经同意以上协议

Documentation built with VitePress | API references generated by litedoc

- +
Skip to content

用户协议

  1. 本项目遵循MIT协议,你可以自由使用,修改,分发,但是请保留原作者信息
  2. 你可以选择开启auto_report(默认开启),轻雪会收集以下内容
    • 运行环境的设备信息:CPU,内存,系统信息及Python信息
    • 插件信息(不含插件数据)
    • 部分异常信息,
    • 会话负载信息(不含隐私部分) 以上内容仅用于项目的优化,不包含任何隐私信息,且通过安全的方式传输到轻雪的服务器,若你不希望提供这些信息,可以在配置文件中把auto_report设定为false
  3. 本项目不会收集用户的任何隐私信息,但请注意甄别第三方插件的安全性
  4. 使用此项目代表你已经同意以上协议

Documentation built with VitePress | API references generated by litedoc

+ \ No newline at end of file diff --git a/en/usage/basic.html b/en/usage/basic.html index 299e4928..27df1077 100644 --- a/en/usage/basic.html +++ b/en/usage/basic.html @@ -5,22 +5,22 @@ 基础插件 | LiteyukiBot - - + + - + - - - + + + -
Skip to content

基础插件


TIP

参数<param>为必填参数,[option]为可选参数。

命令别名:配置了命令别名的命令可以使用别名代替原命令,例如npm install ~可以使用插件 安装 ~代替。

轻雪命令liteyuki_command

命令说明权限举例可用参数
reload-liteyuki重载轻雪超级用户
update-liteyuki更新轻雪超级用户
liteecho查看当前bot 版本超级用户
status查看统计信息和状态超级用户
config set <key> value添加配置项,若存在则会覆盖,输入值会被执行以转换为正确的类型,"10"和10是不一样的超级用户config set name 'liteyuki-bot'<key>: 若存在则覆盖, 若不存在则创建于config.yml ; value: yml格式的所有合法内容
config get [key] 查询配置项,不带key返回配置项列表,推荐私聊使用超级用户config get name<key>: 若存在则返回, 若不存在则返回空
switch-image-mode 在普通图片和Markdown大图之间切换,该功能需要commit:505468b及以后的Lagrange.OneBot,默认普通图片超级用户switch-image-mode
/api api_name [args] 调用机器人API超级用户/api get_group_member_list group_id=1234567<args>: 参数列表, 格式为onebot v11协议api, 可用%20代替空格
/function function_name [args] [kwargs] 调用机器人函数(.lyfunction语法)超级用户/function send_group_msg group_id=1234567 message='hello'<args><kwargs>: 参数列表, api格式为onebot v11协议api
group enable/disable [group_id]在群聊启用/停用机器人,group_id仅超级用户可用超级用户,群聊仅群主、管理员、超级用户可用group enable 1145141919810<group_id>: 群号
liteyuki-docs查看轻雪文档所有人

命令别名

命令别名
status状态
reload-liteyuki重启轻雪
update-liteyuki更新轻雪
reload-resources重载资源
config配置, set 设置 / get 查询
switch-image-mode切换图片模式
liteyuki-docs轻雪文档
group群聊, enable 启用 / disable 停用

插件/包管理器 liteyuki_pacman

  • 插件管理
命令说明权限
npm update更新插件商店索引超级用户
npm install <plugin_name>安装插件超级用户
npm uninstall <plugin_name>卸载插件超级用户
npm search <keywords...>通过关键词搜索插件超级用户
npm enable-global/disable-global <plugin_name>全局启用/停用插件超级用户
npm enable/disable <plugin_name> [--group <group_id>]当前会话启用/停用插件群聊仅群主、管理员、超级用户可用,私聊所有人可用
npm list [page] [num]列出所有插件 page为页数,num为每页显示数量群聊仅群主、管理员、超级用户可用,私聊所有人可用
help <plugin_name>查看插件帮助所有人
  • 资源包管理
命令说明权限
rpm list [page] [num]列出所有资源包 page为页数,num为每页显示数量超级用户
rpm load <pack_name>加载资源包超级用户
rpm unload <pack_name>卸载资源包超级用户
rpm change <pack_name>修改优先级超级用户
rpm reload重载所有资源包超级用户

命令别名

命令别名
npm插件管理
update更新
install安装
uninstall卸载
search搜索
enable启用
disable停用
enable-global全局启用
disable-global全局停用
rpm资源包
load加载
unload卸载
change更改
reload重载
list列表
help帮助

WARNING

受限于NoneBot2钩子函数的依赖注入参数,插件停用只能阻断传入响应,对于主动推送的插件不生效,请阅读插件主页的说明。


用户管理liteyuki_user

命令说明权限
profile查看用户信息菜单所有人
profile set <key> [value]设置用户信息或打开属性设置菜单所有人
profile get <key>获取用户信息所有人

###命令别名

命令别名
profile个人信息
set设置
get查询

Documentation built with VitePress | API references generated by litedoc

- +
Skip to content

基础插件


TIP

参数<param>为必填参数,[option]为可选参数。

命令别名:配置了命令别名的命令可以使用别名代替原命令,例如npm install ~可以使用插件 安装 ~代替。

轻雪命令liteyuki_command

命令说明权限举例可用参数
reload-liteyuki重载轻雪超级用户
update-liteyuki更新轻雪超级用户
liteecho查看当前bot 版本超级用户
status查看统计信息和状态超级用户
config set <key> value添加配置项,若存在则会覆盖,输入值会被执行以转换为正确的类型,"10"和10是不一样的超级用户config set name 'liteyuki-bot'<key>: 若存在则覆盖, 若不存在则创建于config.yml ; value: yml格式的所有合法内容
config get [key] 查询配置项,不带key返回配置项列表,推荐私聊使用超级用户config get name<key>: 若存在则返回, 若不存在则返回空
switch-image-mode 在普通图片和Markdown大图之间切换,该功能需要commit:505468b及以后的Lagrange.OneBot,默认普通图片超级用户switch-image-mode
/api api_name [args] 调用机器人API超级用户/api get_group_member_list group_id=1234567<args>: 参数列表, 格式为onebot v11协议api, 可用%20代替空格
/function function_name [args] [kwargs] 调用机器人函数(.lyfunction语法)超级用户/function send_group_msg group_id=1234567 message='hello'<args><kwargs>: 参数列表, api格式为onebot v11协议api
group enable/disable [group_id]在群聊启用/停用机器人,group_id仅超级用户可用超级用户,群聊仅群主、管理员、超级用户可用group enable 1145141919810<group_id>: 群号
liteyuki-docs查看轻雪文档所有人

命令别名

命令别名
status状态
reload-liteyuki重启轻雪
update-liteyuki更新轻雪
reload-resources重载资源
config配置, set 设置 / get 查询
switch-image-mode切换图片模式
liteyuki-docs轻雪文档
group群聊, enable 启用 / disable 停用

插件/包管理器 liteyuki_pacman

  • 插件管理
命令说明权限
npm update更新插件商店索引超级用户
npm install <plugin_name>安装插件超级用户
npm uninstall <plugin_name>卸载插件超级用户
npm search <keywords...>通过关键词搜索插件超级用户
npm enable-global/disable-global <plugin_name>全局启用/停用插件超级用户
npm enable/disable <plugin_name> [--group <group_id>]当前会话启用/停用插件群聊仅群主、管理员、超级用户可用,私聊所有人可用
npm list [page] [num]列出所有插件 page为页数,num为每页显示数量群聊仅群主、管理员、超级用户可用,私聊所有人可用
help <plugin_name>查看插件帮助所有人
  • 资源包管理
命令说明权限
rpm list [page] [num]列出所有资源包 page为页数,num为每页显示数量超级用户
rpm load <pack_name>加载资源包超级用户
rpm unload <pack_name>卸载资源包超级用户
rpm change <pack_name>修改优先级超级用户
rpm reload重载所有资源包超级用户

命令别名

命令别名
npm插件管理
update更新
install安装
uninstall卸载
search搜索
enable启用
disable停用
enable-global全局启用
disable-global全局停用
rpm资源包
load加载
unload卸载
change更改
reload重载
list列表
help帮助

WARNING

受限于NoneBot2钩子函数的依赖注入参数,插件停用只能阻断传入响应,对于主动推送的插件不生效,请阅读插件主页的说明。


用户管理liteyuki_user

命令说明权限
profile查看用户信息菜单所有人
profile set <key> [value]设置用户信息或打开属性设置菜单所有人
profile get <key>获取用户信息所有人

###命令别名

命令别名
profile个人信息
set设置
get查询

Documentation built with VitePress | API references generated by litedoc

+ \ No newline at end of file diff --git a/en/usage/extra.html b/en/usage/extra.html index 63b77571..e69b58d6 100644 --- a/en/usage/extra.html +++ b/en/usage/extra.html @@ -5,22 +5,22 @@ 功能命令 | LiteyukiBot - - + + - + - - - + + + -
Skip to content

功能插件命令

轻雪天气liteyuki_weather

查询实时天气,支持绑定城市,支持中英文城市名,支持多个关键词查询。

配置项

yaml
weather_key: "" # 和风天气的天气key,会自动判断key版本

命令

shell
weather <keywords...> # Keywords为城市名,支持中英文

查询目标地实时天气,例如:"天气 北京 海淀", "weather Tokyo Shinjuku"

shell
bind-city <keywords...> # Keywords为城市名,支持中英文

绑定查询城市,个人全局生效

命令别名

命令别名
weather天气
bind-city绑定城市

统计信息liteyuki_statistics

统计信息 命令

shell
statistic message --duration <duration> --period <period> --group [current|group_id] --bot [current|bot_id]

功能: 用于统计Bot接收到的消息, 统计周期为period, 统计时间范围为duration

参数格式
duration使用通用日期简写: 1d(天), 1h(小时), 45m(分钟), 14s(秒)
period使用通用日期简写: 1d(天), 1h(小时), 45m(分钟), 14s(秒)
groupcurrent (当前群聊) 或 group_id (QQ群号)
botcurrent (当前Bot) 或 bot_id

命令别名

命令别名
statisticstat
messagem
--duration-d
--period`-p
--group-g
--bot-b
currentc

Documentation built with VitePress | API references generated by litedoc

- +
Skip to content

功能插件命令

轻雪天气liteyuki_weather

查询实时天气,支持绑定城市,支持中英文城市名,支持多个关键词查询。

配置项

yaml
weather_key: "" # 和风天气的天气key,会自动判断key版本

命令

shell
weather <keywords...> # Keywords为城市名,支持中英文

查询目标地实时天气,例如:"天气 北京 海淀", "weather Tokyo Shinjuku"

shell
bind-city <keywords...> # Keywords为城市名,支持中英文

绑定查询城市,个人全局生效

命令别名

命令别名
weather天气
bind-city绑定城市

统计信息liteyuki_statistics

统计信息 命令

shell
statistic message --duration <duration> --period <period> --group [current|group_id] --bot [current|bot_id]

功能: 用于统计Bot接收到的消息, 统计周期为period, 统计时间范围为duration

参数格式
duration使用通用日期简写: 1d(天), 1h(小时), 45m(分钟), 14s(秒)
period使用通用日期简写: 1d(天), 1h(小时), 45m(分钟), 14s(秒)
groupcurrent (当前群聊) 或 group_id (QQ群号)
botcurrent (当前Bot) 或 bot_id

命令别名

命令别名
statisticstat
messagem
--duration-d
--period`-p
--group-g
--bot-b
currentc

Documentation built with VitePress | API references generated by litedoc

+ \ No newline at end of file diff --git a/hashmap.json b/hashmap.json index ba63d705..b8b7e623 100644 --- a/hashmap.json +++ b/hashmap.json @@ -1 +1 @@ -{"deploy_config.md":"BBoJ_SVs","deploy_fandq.md":"D3AaSKzf","deploy_install.md":"DMcLeaSP","dev_api_bot_index.md":"DpCC1zEs","dev_api_bot_lifespan.md":"DBf_PC3G","dev_api_comm_channel.md":"EvJIM00r","dev_api_comm_event.md":"Dkw9vL8j","dev_api_comm_index.md":"BubSUNVe","dev_api_comm_socks_channel.md":"D0z-3box","dev_api_comm_storage.md":"DlCQ-bAW","dev_api_config.md":"BWciqFj4","dev_api_core_index.md":"B0E7Phf1","dev_api_core_manager.md":"CwENM4-V","dev_api_dev_index.md":"Chgr0inF","dev_api_dev_observer.md":"DXfnQgLO","dev_api_dev_plugin.md":"Cops7KZu","dev_api_exception.md":"Bo7F9S9r","dev_api_index.md":"mhROT_CR","dev_api_log.md":"B0RBm2Ui","dev_api_message_event.md":"DyDwsc6d","dev_api_message_index.md":"Ox32xQC5","dev_api_message_matcher.md":"DVuQfqJD","dev_api_message_on.md":"CApMkdr1","dev_api_message_rule.md":"DtsqYM0_","dev_api_message_session.md":"Dvgy6WBS","dev_api_mkdoc.md":"BQNdAtbl","dev_api_plugin_index.md":"DyFjlTCa","dev_api_plugin_load.md":"C496SdCj","dev_api_plugin_manager.md":"WWoouVFL","dev_api_plugin_model.md":"BmVr2u82","dev_api_plugins_index.md":"kWwCXP54","dev_api_plugins_liteecho.md":"sryx6SuS","dev_api_plugins_plugin_loader_index.md":"DVvGETw-","dev_api_utils.md":"wryzX8vr","dev_best_practices.md":"CJZXAqyp","dev_comm.md":"cMJIV6AK","dev_guide.md":"Bh9eUuws","dev_lyfunc.md":"D4LU5X67","dev_plugin.md":"phZolwS6","dev_resource.md":"CiEukBtC","en_deploy_config.md":"DdMT5vqs","en_deploy_fandq.md":"BKc7kj27","en_deploy_install.md":"C00Sx2cS","en_dev_api_bot_index.md":"HOfQ1yqh","en_dev_api_bot_lifespan.md":"B-nofctY","en_dev_api_comm_channel.md":"zKOKhdvB","en_dev_api_comm_event.md":"Crpo-bJ4","en_dev_api_comm_index.md":"BghEev94","en_dev_api_comm_socks_channel.md":"B8_s4Hv_","en_dev_api_comm_storage.md":"WX6gT40z","en_dev_api_config.md":"CRNFMcJd","en_dev_api_core_index.md":"NuGEgKq2","en_dev_api_core_manager.md":"D_hvcNXp","en_dev_api_dev_index.md":"UZwSl7RN","en_dev_api_dev_observer.md":"DAh-d3XU","en_dev_api_dev_plugin.md":"ByOqvpeD","en_dev_api_exception.md":"HPP9FBE6","en_dev_api_index.md":"Bem5oMXv","en_dev_api_log.md":"t5U3-0Tg","en_dev_api_message_event.md":"C6I96y2L","en_dev_api_message_index.md":"CTleW7FS","en_dev_api_message_matcher.md":"CtCEbUVJ","en_dev_api_message_on.md":"DOPTBR4O","en_dev_api_message_rule.md":"BBaFECzV","en_dev_api_message_session.md":"BJvZrFxU","en_dev_api_mkdoc.md":"B0odpxJC","en_dev_api_plugin_index.md":"ibr3u-4e","en_dev_api_plugin_load.md":"BPbPSe3L","en_dev_api_plugin_manager.md":"LGDmEnuh","en_dev_api_plugin_model.md":"C8mVVzkp","en_dev_api_plugins_index.md":"CBJItUz2","en_dev_api_plugins_liteecho.md":"BkpA_Gke","en_dev_api_plugins_plugin_loader_index.md":"cG7vDNwD","en_dev_api_utils.md":"DKuaapxu","en_dev_best_practices.md":"rGudE50n","en_dev_comm.md":"bOf5Cc-F","en_dev_guide.md":"OuXmspBQ","en_dev_lyfunc.md":"DjX4Hm-0","en_dev_plugin.md":"DoGEEBa3","en_dev_resource.md":"DtkAy8nT","en_index.md":"r_vtXGDB","en_store_plugin.md":"C0UyBVv2","en_store_resource.md":"Ci-LBCav","en_usage_agreement.md":"vFfahjeR","en_usage_basic.md":"DVpsBy5w","en_usage_extra.md":"DU-WQhbO","index.md":"C2Q5V-UK","store_plugin.md":"BhQadjel","store_resource.md":"CgUrr2wJ","usage_agreement.md":"BYijSUyJ","usage_basic.md":"CS9J19pD","usage_extra.md":"CPLcG44C"} +{"deploy_config.md":"CsfRbAPS","deploy_fandq.md":"Ch9Ahkyl","deploy_install.md":"mX0RSUJJ","dev_api_bot_index.md":"EFktxyMC","dev_api_bot_lifespan.md":"B9gZA-Xv","dev_api_comm_channel.md":"CmpDD1vu","dev_api_comm_event.md":"DE0D5mOI","dev_api_comm_index.md":"D0UYHib5","dev_api_comm_storage.md":"BpVehScg","dev_api_config.md":"Cho6yGha","dev_api_core_index.md":"BjvZyb-q","dev_api_core_manager.md":"BA-Ul5rJ","dev_api_dev_index.md":"hNwQD8ZN","dev_api_dev_observer.md":"BhLDGDw1","dev_api_dev_plugin.md":"Be-m1DJn","dev_api_exception.md":"BdPwU3gE","dev_api_index.md":"BzH7dCwu","dev_api_log.md":"CocTY971","dev_api_mkdoc.md":"CTnAyukw","dev_api_plugin_index.md":"T2gAKhVl","dev_api_plugin_load.md":"kHIr9w4H","dev_api_plugin_manager.md":"B4LvaDGc","dev_api_plugin_model.md":"C2KezkKb","dev_api_plugins_index.md":"DKPWPaBA","dev_api_plugins_liteecho.md":"BlQiZZ9H","dev_api_plugins_plugin_loader_index.md":"f4CfmASM","dev_api_session_event.md":"D3sQQZ9F","dev_api_session_index.md":"DrlwTUzS","dev_api_session_matcher.md":"AbqZMTjz","dev_api_session_on.md":"B-6wibts","dev_api_session_rule.md":"CNqb27Xk","dev_api_session_session.md":"bPL76QAG","dev_api_utils.md":"BdVRWEBV","dev_best_practices.md":"C81iVQ5j","dev_comm.md":"CxBTde6D","dev_guide.md":"DaPEdOY0","dev_lyfunc.md":"DXKpS1Qm","dev_plugin.md":"CUXCZtZe","dev_resource.md":"wRoE226-","en_deploy_config.md":"CggQr9gM","en_deploy_fandq.md":"DQ_mT_zy","en_deploy_install.md":"CixqkAmD","en_dev_api_bot_index.md":"S3EtTJZC","en_dev_api_bot_lifespan.md":"6xrY1FLk","en_dev_api_comm_channel.md":"B1Sr7_Nc","en_dev_api_comm_event.md":"JdKBF15S","en_dev_api_comm_index.md":"BWaivW24","en_dev_api_comm_storage.md":"C9UlOPzB","en_dev_api_config.md":"VQ9sNlqG","en_dev_api_core_index.md":"D5Civ-zH","en_dev_api_core_manager.md":"H4rqnaCF","en_dev_api_dev_index.md":"BaJFdikO","en_dev_api_dev_observer.md":"BWo0192F","en_dev_api_dev_plugin.md":"DAA5UIMl","en_dev_api_exception.md":"C2tcvSVJ","en_dev_api_index.md":"D8u3gQrU","en_dev_api_log.md":"BhI5mphS","en_dev_api_mkdoc.md":"CSPkfV_w","en_dev_api_plugin_index.md":"CWXWjAhj","en_dev_api_plugin_load.md":"D5m3R33u","en_dev_api_plugin_manager.md":"dpHkH-nG","en_dev_api_plugin_model.md":"BZm0dnvF","en_dev_api_plugins_index.md":"Dby_mWRR","en_dev_api_plugins_liteecho.md":"CrtVqPCc","en_dev_api_plugins_plugin_loader_index.md":"BC_T8lis","en_dev_api_session_event.md":"DLw2yT5i","en_dev_api_session_index.md":"D-YOgw8v","en_dev_api_session_matcher.md":"DJciHvHX","en_dev_api_session_on.md":"C-j6_GTu","en_dev_api_session_rule.md":"DXmjjk0K","en_dev_api_session_session.md":"CkKWDq6y","en_dev_api_utils.md":"BMFkr-N2","en_dev_best_practices.md":"D99RjFWq","en_dev_comm.md":"DmDE4NY9","en_dev_guide.md":"Bn04Nqso","en_dev_lyfunc.md":"BVZAJYq4","en_dev_plugin.md":"BMvHexfU","en_dev_resource.md":"Ct0C78Rc","en_index.md":"B0j9slrc","en_store_plugin.md":"Dr9xSRQO","en_store_resource.md":"B4TeEUVy","en_usage_agreement.md":"CLjnKVc3","en_usage_basic.md":"D5OATOhG","en_usage_extra.md":"CeleBdoC","index.md":"u5az6EET","store_plugin.md":"Cac6z_ig","store_resource.md":"B343iwju","usage_agreement.md":"D1WnPguc","usage_basic.md":"DbulLjQT","usage_extra.md":"BiRGsfAl"} diff --git a/index.html b/index.html index 5539ac28..60df04c2 100644 --- a/index.html +++ b/index.html @@ -5,22 +5,22 @@ 轻雪机器人 - - + + - + - - - + + + - - + + \ No newline at end of file diff --git a/sitemap.xml b/sitemap.xml index deac5575..681eff0a 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -1 +1 @@ -https://bot.liteyuki.icu/en/deploy/config.html2024-08-31T10:57:48.000Zhttps://bot.liteyuki.icu/deploy/config.html2024-08-31T10:57:48.000Zhttps://bot.liteyuki.icu/en/deploy/fandq.html2024-08-31T10:57:48.000Zhttps://bot.liteyuki.icu/deploy/fandq.html2024-08-31T10:57:48.000Zhttps://bot.liteyuki.icu/en/deploy/install.html2024-08-31T11:05:37.000Zhttps://bot.liteyuki.icu/deploy/install.html2024-09-02T03:20:53.000Zhttps://bot.liteyuki.icu/en/dev/api/bot/https://bot.liteyuki.icu/dev/api/bot/https://bot.liteyuki.icu/en/dev/api/bot/lifespan.html2024-08-31T10:57:48.000Zhttps://bot.liteyuki.icu/dev/api/bot/lifespan.htmlhttps://bot.liteyuki.icu/en/dev/api/comm/channel.html2024-08-31T10:57:48.000Zhttps://bot.liteyuki.icu/dev/api/comm/channel.htmlhttps://bot.liteyuki.icu/en/dev/api/comm/event.html2024-08-31T10:57:48.000Zhttps://bot.liteyuki.icu/dev/api/comm/event.htmlhttps://bot.liteyuki.icu/en/dev/api/comm/https://bot.liteyuki.icu/dev/api/comm/https://bot.liteyuki.icu/en/dev/api/comm/socks_channel.htmlhttps://bot.liteyuki.icu/dev/api/comm/socks_channel.htmlhttps://bot.liteyuki.icu/en/dev/api/comm/storage.html2024-08-31T10:57:48.000Zhttps://bot.liteyuki.icu/dev/api/comm/storage.htmlhttps://bot.liteyuki.icu/en/dev/api/config.html2024-08-31T10:57:48.000Zhttps://bot.liteyuki.icu/dev/api/config.htmlhttps://bot.liteyuki.icu/en/dev/api/core/https://bot.liteyuki.icu/dev/api/core/https://bot.liteyuki.icu/en/dev/api/core/manager.html2024-08-31T10:57:48.000Zhttps://bot.liteyuki.icu/dev/api/core/manager.htmlhttps://bot.liteyuki.icu/en/dev/api/dev/https://bot.liteyuki.icu/dev/api/dev/https://bot.liteyuki.icu/en/dev/api/dev/observer.html2024-08-31T10:57:48.000Zhttps://bot.liteyuki.icu/dev/api/dev/observer.htmlhttps://bot.liteyuki.icu/en/dev/api/dev/plugin.html2024-08-31T10:57:48.000Zhttps://bot.liteyuki.icu/dev/api/dev/plugin.htmlhttps://bot.liteyuki.icu/en/dev/api/exception.html2024-08-31T10:57:48.000Zhttps://bot.liteyuki.icu/dev/api/exception.htmlhttps://bot.liteyuki.icu/en/dev/api/https://bot.liteyuki.icu/dev/api/https://bot.liteyuki.icu/en/dev/api/log.html2024-08-31T10:57:48.000Zhttps://bot.liteyuki.icu/dev/api/log.htmlhttps://bot.liteyuki.icu/en/dev/api/message/event.html2024-08-31T10:57:48.000Zhttps://bot.liteyuki.icu/dev/api/message/event.htmlhttps://bot.liteyuki.icu/en/dev/api/message/https://bot.liteyuki.icu/dev/api/message/https://bot.liteyuki.icu/en/dev/api/message/matcher.html2024-08-31T10:57:48.000Zhttps://bot.liteyuki.icu/dev/api/message/matcher.htmlhttps://bot.liteyuki.icu/en/dev/api/message/on.html2024-08-31T10:57:48.000Zhttps://bot.liteyuki.icu/dev/api/message/on.htmlhttps://bot.liteyuki.icu/en/dev/api/message/rule.html2024-08-31T10:57:48.000Zhttps://bot.liteyuki.icu/dev/api/message/rule.htmlhttps://bot.liteyuki.icu/en/dev/api/message/session.html2024-08-31T10:57:48.000Zhttps://bot.liteyuki.icu/dev/api/message/session.htmlhttps://bot.liteyuki.icu/en/dev/api/mkdoc.html2024-08-31T10:57:48.000Zhttps://bot.liteyuki.icu/dev/api/mkdoc.htmlhttps://bot.liteyuki.icu/en/dev/api/plugin/https://bot.liteyuki.icu/dev/api/plugin/https://bot.liteyuki.icu/en/dev/api/plugin/load.html2024-08-31T10:57:48.000Zhttps://bot.liteyuki.icu/dev/api/plugin/load.htmlhttps://bot.liteyuki.icu/en/dev/api/plugin/manager.html2024-08-31T10:57:48.000Zhttps://bot.liteyuki.icu/dev/api/plugin/manager.htmlhttps://bot.liteyuki.icu/en/dev/api/plugin/model.html2024-08-31T10:57:48.000Zhttps://bot.liteyuki.icu/dev/api/plugin/model.htmlhttps://bot.liteyuki.icu/en/dev/api/plugins/https://bot.liteyuki.icu/dev/api/plugins/https://bot.liteyuki.icu/en/dev/api/plugins/liteecho.html2024-08-31T10:57:48.000Zhttps://bot.liteyuki.icu/dev/api/plugins/liteecho.htmlhttps://bot.liteyuki.icu/en/dev/api/plugins/plugin_loader/https://bot.liteyuki.icu/dev/api/plugins/plugin_loader/https://bot.liteyuki.icu/en/dev/api/utils.html2024-08-31T10:57:48.000Zhttps://bot.liteyuki.icu/dev/api/utils.htmlhttps://bot.liteyuki.icu/en/dev/best_practices.html2024-09-20T19:22:40.000Zhttps://bot.liteyuki.icu/dev/best_practices.html2024-09-20T19:22:40.000Zhttps://bot.liteyuki.icu/en/dev/comm.html2024-09-20T19:12:32.000Zhttps://bot.liteyuki.icu/dev/comm.html2024-08-31T11:05:37.000Zhttps://bot.liteyuki.icu/en/dev/guide.html2024-09-03T18:43:44.000Zhttps://bot.liteyuki.icu/dev/guide.html2024-09-03T18:43:44.000Zhttps://bot.liteyuki.icu/en/dev/lyfunc.html2024-09-20T19:12:32.000Zhttps://bot.liteyuki.icu/dev/lyfunc.html2024-08-31T10:57:48.000Zhttps://bot.liteyuki.icu/en/dev/plugin.html2024-09-20T19:12:32.000Zhttps://bot.liteyuki.icu/dev/plugin.html2024-08-31T10:57:48.000Zhttps://bot.liteyuki.icu/en/dev/resource.html2024-09-20T19:12:32.000Zhttps://bot.liteyuki.icu/dev/resource.html2024-08-31T11:05:37.000Zhttps://bot.liteyuki.icu/en/2024-09-20T19:12:32.000Zhttps://bot.liteyuki.icu/2024-09-20T19:12:32.000Zhttps://bot.liteyuki.icu/en/store/plugin.html2024-09-01T14:14:09.000Zhttps://bot.liteyuki.icu/store/plugin.html2024-09-01T14:14:09.000Zhttps://bot.liteyuki.icu/en/store/resource.html2024-09-01T14:14:09.000Zhttps://bot.liteyuki.icu/store/resource.html2024-09-01T14:14:09.000Zhttps://bot.liteyuki.icu/en/usage/agreement.html2024-08-31T10:57:48.000Zhttps://bot.liteyuki.icu/usage/agreement.html2024-08-31T10:57:48.000Zhttps://bot.liteyuki.icu/en/usage/basic.html2024-08-31T10:57:48.000Zhttps://bot.liteyuki.icu/usage/basic.html2024-08-31T10:57:48.000Zhttps://bot.liteyuki.icu/en/usage/extra.html2024-08-31T10:57:48.000Zhttps://bot.liteyuki.icu/usage/extra.html2024-08-31T10:57:48.000Z \ No newline at end of file +https://bot.liteyuki.icu/en/deploy/config.html2024-08-31T10:57:48.000Zhttps://bot.liteyuki.icu/deploy/config.html2024-10-13T16:57:33.000Zhttps://bot.liteyuki.icu/en/deploy/fandq.html2024-08-31T10:57:48.000Zhttps://bot.liteyuki.icu/deploy/fandq.html2024-08-31T10:57:48.000Zhttps://bot.liteyuki.icu/en/deploy/install.html2024-08-31T11:05:37.000Zhttps://bot.liteyuki.icu/deploy/install.html2024-09-02T03:20:53.000Zhttps://bot.liteyuki.icu/en/dev/api/bot/https://bot.liteyuki.icu/dev/api/bot/https://bot.liteyuki.icu/en/dev/api/bot/lifespan.html2024-08-31T10:57:48.000Zhttps://bot.liteyuki.icu/dev/api/bot/lifespan.htmlhttps://bot.liteyuki.icu/en/dev/api/comm/channel.html2024-08-31T10:57:48.000Zhttps://bot.liteyuki.icu/dev/api/comm/channel.htmlhttps://bot.liteyuki.icu/en/dev/api/comm/event.html2024-08-31T10:57:48.000Zhttps://bot.liteyuki.icu/dev/api/comm/event.htmlhttps://bot.liteyuki.icu/en/dev/api/comm/https://bot.liteyuki.icu/dev/api/comm/https://bot.liteyuki.icu/en/dev/api/comm/storage.html2024-08-31T10:57:48.000Zhttps://bot.liteyuki.icu/dev/api/comm/storage.htmlhttps://bot.liteyuki.icu/en/dev/api/config.html2024-08-31T10:57:48.000Zhttps://bot.liteyuki.icu/dev/api/config.htmlhttps://bot.liteyuki.icu/en/dev/api/core/https://bot.liteyuki.icu/dev/api/core/https://bot.liteyuki.icu/en/dev/api/core/manager.html2024-08-31T10:57:48.000Zhttps://bot.liteyuki.icu/dev/api/core/manager.htmlhttps://bot.liteyuki.icu/en/dev/api/dev/https://bot.liteyuki.icu/dev/api/dev/https://bot.liteyuki.icu/en/dev/api/dev/observer.html2024-08-31T10:57:48.000Zhttps://bot.liteyuki.icu/dev/api/dev/observer.htmlhttps://bot.liteyuki.icu/en/dev/api/dev/plugin.html2024-08-31T10:57:48.000Zhttps://bot.liteyuki.icu/dev/api/dev/plugin.htmlhttps://bot.liteyuki.icu/en/dev/api/exception.html2024-08-31T10:57:48.000Zhttps://bot.liteyuki.icu/dev/api/exception.htmlhttps://bot.liteyuki.icu/en/dev/api/https://bot.liteyuki.icu/dev/api/https://bot.liteyuki.icu/en/dev/api/log.html2024-08-31T10:57:48.000Zhttps://bot.liteyuki.icu/dev/api/log.htmlhttps://bot.liteyuki.icu/en/dev/api/mkdoc.html2024-08-31T10:57:48.000Zhttps://bot.liteyuki.icu/dev/api/mkdoc.htmlhttps://bot.liteyuki.icu/en/dev/api/plugin/https://bot.liteyuki.icu/dev/api/plugin/https://bot.liteyuki.icu/en/dev/api/plugin/load.html2024-08-31T10:57:48.000Zhttps://bot.liteyuki.icu/dev/api/plugin/load.htmlhttps://bot.liteyuki.icu/en/dev/api/plugin/manager.html2024-08-31T10:57:48.000Zhttps://bot.liteyuki.icu/dev/api/plugin/manager.htmlhttps://bot.liteyuki.icu/en/dev/api/plugin/model.html2024-08-31T10:57:48.000Zhttps://bot.liteyuki.icu/dev/api/plugin/model.htmlhttps://bot.liteyuki.icu/en/dev/api/plugins/https://bot.liteyuki.icu/dev/api/plugins/https://bot.liteyuki.icu/en/dev/api/plugins/liteecho.html2024-08-31T10:57:48.000Zhttps://bot.liteyuki.icu/dev/api/plugins/liteecho.htmlhttps://bot.liteyuki.icu/en/dev/api/plugins/plugin_loader/https://bot.liteyuki.icu/dev/api/plugins/plugin_loader/https://bot.liteyuki.icu/en/dev/api/session/event.htmlhttps://bot.liteyuki.icu/dev/api/session/event.htmlhttps://bot.liteyuki.icu/en/dev/api/session/https://bot.liteyuki.icu/dev/api/session/https://bot.liteyuki.icu/en/dev/api/session/matcher.htmlhttps://bot.liteyuki.icu/dev/api/session/matcher.htmlhttps://bot.liteyuki.icu/en/dev/api/session/on.htmlhttps://bot.liteyuki.icu/dev/api/session/on.htmlhttps://bot.liteyuki.icu/en/dev/api/session/rule.htmlhttps://bot.liteyuki.icu/dev/api/session/rule.htmlhttps://bot.liteyuki.icu/en/dev/api/session/session.htmlhttps://bot.liteyuki.icu/dev/api/session/session.htmlhttps://bot.liteyuki.icu/en/dev/api/utils.html2024-08-31T10:57:48.000Zhttps://bot.liteyuki.icu/dev/api/utils.htmlhttps://bot.liteyuki.icu/en/dev/best_practices.html2024-09-20T19:22:40.000Zhttps://bot.liteyuki.icu/dev/best_practices.html2024-09-20T19:22:40.000Zhttps://bot.liteyuki.icu/en/dev/comm.html2024-09-20T19:12:32.000Zhttps://bot.liteyuki.icu/dev/comm.html2024-08-31T11:05:37.000Zhttps://bot.liteyuki.icu/en/dev/guide.html2024-09-03T18:43:44.000Zhttps://bot.liteyuki.icu/dev/guide.html2024-09-03T18:43:44.000Zhttps://bot.liteyuki.icu/en/dev/lyfunc.html2024-09-20T19:12:32.000Zhttps://bot.liteyuki.icu/dev/lyfunc.html2024-08-31T10:57:48.000Zhttps://bot.liteyuki.icu/en/dev/plugin.html2024-09-20T19:12:32.000Zhttps://bot.liteyuki.icu/dev/plugin.html2024-08-31T10:57:48.000Zhttps://bot.liteyuki.icu/en/dev/resource.html2024-09-20T19:12:32.000Zhttps://bot.liteyuki.icu/dev/resource.html2024-08-31T11:05:37.000Zhttps://bot.liteyuki.icu/en/2024-09-20T19:12:32.000Zhttps://bot.liteyuki.icu/2024-09-20T19:12:32.000Zhttps://bot.liteyuki.icu/en/store/plugin.html2024-09-01T14:14:09.000Zhttps://bot.liteyuki.icu/store/plugin.html2024-09-01T14:14:09.000Zhttps://bot.liteyuki.icu/en/store/resource.html2024-09-01T14:14:09.000Zhttps://bot.liteyuki.icu/store/resource.html2024-09-01T14:14:09.000Zhttps://bot.liteyuki.icu/en/usage/agreement.html2024-08-31T10:57:48.000Zhttps://bot.liteyuki.icu/usage/agreement.html2024-08-31T10:57:48.000Zhttps://bot.liteyuki.icu/en/usage/basic.html2024-08-31T10:57:48.000Zhttps://bot.liteyuki.icu/usage/basic.html2024-08-31T10:57:48.000Zhttps://bot.liteyuki.icu/en/usage/extra.html2024-08-31T10:57:48.000Zhttps://bot.liteyuki.icu/usage/extra.html2024-08-31T10:57:48.000Z \ No newline at end of file diff --git a/store/plugin.html b/store/plugin.html index e813dac4..e9957964 100644 --- a/store/plugin.html +++ b/store/plugin.html @@ -5,22 +5,22 @@ 插件商店 | 轻雪机器人 - - + + - + - - - + + + -
Skip to content

插件商店

内容来自轻雪插件商店,轻雪通过lpnonebot插件对NoneBot实现支持,引用了部分NoneBot插件

仅轻雪
NoneBot插件
在轻雪中使用NoneBot,内置轻雪--NoneBot会话控制器插件,为NoneBot开发者提供了更多便捷功能(已内置)
app
防断联插件
防止你的群友断联化
appdislink
LagrangePlugin
在轻雪中使用lagrange-python!
applagrange
htmlrender
使用系统中的浏览器对网页进行渲染,便于其他插件使用
chromium

文档由 VitePress 构建 | API引用由 litedoc 生成

- +
Skip to content

插件商店

内容来自轻雪插件商店,轻雪通过lpnonebot插件对NoneBot实现支持,引用了部分NoneBot插件

仅轻雪
NoneBot插件
在轻雪中使用NoneBot,内置轻雪--NoneBot会话控制器插件,为NoneBot开发者提供了更多便捷功能(已内置)
app
防断联插件
防止你的群友断联化
appdislink
LagrangePlugin
在轻雪中使用lagrange-python!
applagrange
htmlrender
使用系统中的浏览器对网页进行渲染,便于其他插件使用
chromium

文档由 VitePress 构建 | API引用由 litedoc 生成

+ \ No newline at end of file diff --git a/store/resource.html b/store/resource.html index 4ff9b25c..dbe28bf4 100644 --- a/store/resource.html +++ b/store/resource.html @@ -5,22 +5,22 @@ 资源商店 | 轻雪机器人 - - + + - + - - - + + + -
Skip to content

资源商店

KawaiiStatus
可爱的状态卡片,仿照koishi的制作
MiSans字体包
小米官方字体MiSans
MapleMono字体包
适用于字母的字体包
野兽先辈主题HomoTheme
野兽先辈主题包,114514!
自定义设备信息
自定义服务端的设备信息,自行修改使用
轻雪傲娇系词库
使用https://github.com/Kyomotoi/AnimeThesaurus的词库
轻雪可爱系词库
使用https://github.com/Kyomotoi/AnimeThesaurus的词库
轻雪Kakyo语言包
Liteyuki Bot的语言包,用于提供多种语言的翻译。
更多背景模板包
自定义各种卡片的背景
测试资源包
轻雪Kakyo语言包 稳定版
Liteyuki Bot的语言包,用于提供多种语言的翻译。
测试资源包2
test

文档由 VitePress 构建 | API引用由 litedoc 生成

- +
Skip to content

资源商店

KawaiiStatus
可爱的状态卡片,仿照koishi的制作
MiSans字体包
小米官方字体MiSans
MapleMono字体包
适用于字母的字体包
野兽先辈主题HomoTheme
野兽先辈主题包,114514!
自定义设备信息
自定义服务端的设备信息,自行修改使用
轻雪傲娇系词库
使用https://github.com/Kyomotoi/AnimeThesaurus的词库
轻雪可爱系词库
使用https://github.com/Kyomotoi/AnimeThesaurus的词库
轻雪Kakyo语言包
Liteyuki Bot的语言包,用于提供多种语言的翻译。
更多背景模板包
自定义各种卡片的背景
测试资源包
轻雪Kakyo语言包 稳定版
Liteyuki Bot的语言包,用于提供多种语言的翻译。
测试资源包2
test

文档由 VitePress 构建 | API引用由 litedoc 生成

+ \ No newline at end of file diff --git a/usage/agreement.html b/usage/agreement.html index a072d03a..daf3d473 100644 --- a/usage/agreement.html +++ b/usage/agreement.html @@ -5,22 +5,22 @@ 用户协议 | 轻雪机器人 - - + + - + - - - + + + -
Skip to content

用户协议

  1. 本项目遵循MIT协议,你可以自由使用,修改,分发,但是请保留原作者信息
  2. 你可以选择开启auto_report(默认开启),轻雪会收集以下内容
    • 运行环境的设备信息:CPU,内存,系统信息及Python信息
    • 插件信息(不含插件数据)
    • 部分异常信息,
    • 会话负载信息(不含隐私部分) 以上内容仅用于项目的优化,不包含任何隐私信息,且通过安全的方式传输到轻雪的服务器,若你不希望提供这些信息,可以在配置文件中把auto_report设定为false
  3. 本项目不会收集用户的任何隐私信息,但请注意甄别第三方插件的安全性
  4. 使用此项目代表你已经同意以上协议

文档由 VitePress 构建 | API引用由 litedoc 生成

- +
Skip to content

用户协议

  1. 本项目遵循MIT协议,你可以自由使用,修改,分发,但是请保留原作者信息
  2. 你可以选择开启auto_report(默认开启),轻雪会收集以下内容
    • 运行环境的设备信息:CPU,内存,系统信息及Python信息
    • 插件信息(不含插件数据)
    • 部分异常信息,
    • 会话负载信息(不含隐私部分) 以上内容仅用于项目的优化,不包含任何隐私信息,且通过安全的方式传输到轻雪的服务器,若你不希望提供这些信息,可以在配置文件中把auto_report设定为false
  3. 本项目不会收集用户的任何隐私信息,但请注意甄别第三方插件的安全性
  4. 使用此项目代表你已经同意以上协议

文档由 VitePress 构建 | API引用由 litedoc 生成

+ \ No newline at end of file diff --git a/usage/basic.html b/usage/basic.html index 47b7f40b..5a670c46 100644 --- a/usage/basic.html +++ b/usage/basic.html @@ -5,22 +5,22 @@ 基础插件 | 轻雪机器人 - - + + - + - - - + + + -
Skip to content

基础插件


TIP

参数<param>为必填参数,[option]为可选参数。

命令别名:配置了命令别名的命令可以使用别名代替原命令,例如npm install ~可以使用插件 安装 ~代替。

轻雪命令liteyuki_command

命令说明权限举例可用参数
reload-liteyuki重载轻雪超级用户
update-liteyuki更新轻雪超级用户
liteecho查看当前bot 版本超级用户
status查看统计信息和状态超级用户
config set <key> value添加配置项,若存在则会覆盖,输入值会被执行以转换为正确的类型,"10"和10是不一样的超级用户config set name 'liteyuki-bot'<key>: 若存在则覆盖, 若不存在则创建于config.yml ; value: yml格式的所有合法内容
config get [key] 查询配置项,不带key返回配置项列表,推荐私聊使用超级用户config get name<key>: 若存在则返回, 若不存在则返回空
switch-image-mode 在普通图片和Markdown大图之间切换,该功能需要commit:505468b及以后的Lagrange.OneBot,默认普通图片超级用户switch-image-mode
/api api_name [args] 调用机器人API超级用户/api get_group_member_list group_id=1234567<args>: 参数列表, 格式为onebot v11协议api, 可用%20代替空格
/function function_name [args] [kwargs] 调用机器人函数(.lyfunction语法)超级用户/function send_group_msg group_id=1234567 message='hello'<args><kwargs>: 参数列表, api格式为onebot v11协议api
group enable/disable [group_id]在群聊启用/停用机器人,group_id仅超级用户可用超级用户,群聊仅群主、管理员、超级用户可用group enable 1145141919810<group_id>: 群号
liteyuki-docs查看轻雪文档所有人

命令别名

命令别名
status状态
reload-liteyuki重启轻雪
update-liteyuki更新轻雪
reload-resources重载资源
config配置, set 设置 / get 查询
switch-image-mode切换图片模式
liteyuki-docs轻雪文档
group群聊, enable 启用 / disable 停用

插件/包管理器 liteyuki_pacman

  • 插件管理
命令说明权限
npm update更新插件商店索引超级用户
npm install <plugin_name>安装插件超级用户
npm uninstall <plugin_name>卸载插件超级用户
npm search <keywords...>通过关键词搜索插件超级用户
npm enable-global/disable-global <plugin_name>全局启用/停用插件超级用户
npm enable/disable <plugin_name> [--group <group_id>]当前会话启用/停用插件群聊仅群主、管理员、超级用户可用,私聊所有人可用
npm list [page] [num]列出所有插件 page为页数,num为每页显示数量群聊仅群主、管理员、超级用户可用,私聊所有人可用
help <plugin_name>查看插件帮助所有人
  • 资源包管理
命令说明权限
rpm list [page] [num]列出所有资源包 page为页数,num为每页显示数量超级用户
rpm load <pack_name>加载资源包超级用户
rpm unload <pack_name>卸载资源包超级用户
rpm change <pack_name>修改优先级超级用户
rpm reload重载所有资源包超级用户

命令别名

命令别名
npm插件管理
update更新
install安装
uninstall卸载
search搜索
enable启用
disable停用
enable-global全局启用
disable-global全局停用
rpm资源包
load加载
unload卸载
change更改
reload重载
list列表
help帮助

WARNING

受限于NoneBot2钩子函数的依赖注入参数,插件停用只能阻断传入响应,对于主动推送的插件不生效,请阅读插件主页的说明。


用户管理liteyuki_user

命令说明权限
profile查看用户信息菜单所有人
profile set <key> [value]设置用户信息或打开属性设置菜单所有人
profile get <key>获取用户信息所有人

###命令别名

命令别名
profile个人信息
set设置
get查询

文档由 VitePress 构建 | API引用由 litedoc 生成

- +
Skip to content

基础插件


TIP

参数<param>为必填参数,[option]为可选参数。

命令别名:配置了命令别名的命令可以使用别名代替原命令,例如npm install ~可以使用插件 安装 ~代替。

轻雪命令liteyuki_command

命令说明权限举例可用参数
reload-liteyuki重载轻雪超级用户
update-liteyuki更新轻雪超级用户
liteecho查看当前bot 版本超级用户
status查看统计信息和状态超级用户
config set <key> value添加配置项,若存在则会覆盖,输入值会被执行以转换为正确的类型,"10"和10是不一样的超级用户config set name 'liteyuki-bot'<key>: 若存在则覆盖, 若不存在则创建于config.yml ; value: yml格式的所有合法内容
config get [key] 查询配置项,不带key返回配置项列表,推荐私聊使用超级用户config get name<key>: 若存在则返回, 若不存在则返回空
switch-image-mode 在普通图片和Markdown大图之间切换,该功能需要commit:505468b及以后的Lagrange.OneBot,默认普通图片超级用户switch-image-mode
/api api_name [args] 调用机器人API超级用户/api get_group_member_list group_id=1234567<args>: 参数列表, 格式为onebot v11协议api, 可用%20代替空格
/function function_name [args] [kwargs] 调用机器人函数(.lyfunction语法)超级用户/function send_group_msg group_id=1234567 message='hello'<args><kwargs>: 参数列表, api格式为onebot v11协议api
group enable/disable [group_id]在群聊启用/停用机器人,group_id仅超级用户可用超级用户,群聊仅群主、管理员、超级用户可用group enable 1145141919810<group_id>: 群号
liteyuki-docs查看轻雪文档所有人

命令别名

命令别名
status状态
reload-liteyuki重启轻雪
update-liteyuki更新轻雪
reload-resources重载资源
config配置, set 设置 / get 查询
switch-image-mode切换图片模式
liteyuki-docs轻雪文档
group群聊, enable 启用 / disable 停用

插件/包管理器 liteyuki_pacman

  • 插件管理
命令说明权限
npm update更新插件商店索引超级用户
npm install <plugin_name>安装插件超级用户
npm uninstall <plugin_name>卸载插件超级用户
npm search <keywords...>通过关键词搜索插件超级用户
npm enable-global/disable-global <plugin_name>全局启用/停用插件超级用户
npm enable/disable <plugin_name> [--group <group_id>]当前会话启用/停用插件群聊仅群主、管理员、超级用户可用,私聊所有人可用
npm list [page] [num]列出所有插件 page为页数,num为每页显示数量群聊仅群主、管理员、超级用户可用,私聊所有人可用
help <plugin_name>查看插件帮助所有人
  • 资源包管理
命令说明权限
rpm list [page] [num]列出所有资源包 page为页数,num为每页显示数量超级用户
rpm load <pack_name>加载资源包超级用户
rpm unload <pack_name>卸载资源包超级用户
rpm change <pack_name>修改优先级超级用户
rpm reload重载所有资源包超级用户

命令别名

命令别名
npm插件管理
update更新
install安装
uninstall卸载
search搜索
enable启用
disable停用
enable-global全局启用
disable-global全局停用
rpm资源包
load加载
unload卸载
change更改
reload重载
list列表
help帮助

WARNING

受限于NoneBot2钩子函数的依赖注入参数,插件停用只能阻断传入响应,对于主动推送的插件不生效,请阅读插件主页的说明。


用户管理liteyuki_user

命令说明权限
profile查看用户信息菜单所有人
profile set <key> [value]设置用户信息或打开属性设置菜单所有人
profile get <key>获取用户信息所有人

###命令别名

命令别名
profile个人信息
set设置
get查询

文档由 VitePress 构建 | API引用由 litedoc 生成

+ \ No newline at end of file diff --git a/usage/extra.html b/usage/extra.html index 64293b7b..0cbae37b 100644 --- a/usage/extra.html +++ b/usage/extra.html @@ -5,22 +5,22 @@ 功能命令 | 轻雪机器人 - - + + - + - - - + + + -
Skip to content

功能插件命令

轻雪天气liteyuki_weather

查询实时天气,支持绑定城市,支持中英文城市名,支持多个关键词查询。

配置项

yaml
weather_key: "" # 和风天气的天气key,会自动判断key版本

命令

shell
weather <keywords...> # Keywords为城市名,支持中英文

查询目标地实时天气,例如:"天气 北京 海淀", "weather Tokyo Shinjuku"

shell
bind-city <keywords...> # Keywords为城市名,支持中英文

绑定查询城市,个人全局生效

命令别名

命令别名
weather天气
bind-city绑定城市

统计信息liteyuki_statistics

统计信息 命令

shell
statistic message --duration <duration> --period <period> --group [current|group_id] --bot [current|bot_id]

功能: 用于统计Bot接收到的消息, 统计周期为period, 统计时间范围为duration

参数格式
duration使用通用日期简写: 1d(天), 1h(小时), 45m(分钟), 14s(秒)
period使用通用日期简写: 1d(天), 1h(小时), 45m(分钟), 14s(秒)
groupcurrent (当前群聊) 或 group_id (QQ群号)
botcurrent (当前Bot) 或 bot_id

命令别名

命令别名
statisticstat
messagem
--duration-d
--period`-p
--group-g
--bot-b
currentc

文档由 VitePress 构建 | API引用由 litedoc 生成

- +
Skip to content

功能插件命令

轻雪天气liteyuki_weather

查询实时天气,支持绑定城市,支持中英文城市名,支持多个关键词查询。

配置项

yaml
weather_key: "" # 和风天气的天气key,会自动判断key版本

命令

shell
weather <keywords...> # Keywords为城市名,支持中英文

查询目标地实时天气,例如:"天气 北京 海淀", "weather Tokyo Shinjuku"

shell
bind-city <keywords...> # Keywords为城市名,支持中英文

绑定查询城市,个人全局生效

命令别名

命令别名
weather天气
bind-city绑定城市

统计信息liteyuki_statistics

统计信息 命令

shell
statistic message --duration <duration> --period <period> --group [current|group_id] --bot [current|bot_id]

功能: 用于统计Bot接收到的消息, 统计周期为period, 统计时间范围为duration

参数格式
duration使用通用日期简写: 1d(天), 1h(小时), 45m(分钟), 14s(秒)
period使用通用日期简写: 1d(天), 1h(小时), 45m(分钟), 14s(秒)
groupcurrent (当前群聊) 或 group_id (QQ群号)
botcurrent (当前Bot) 或 bot_id

命令别名

命令别名
statisticstat
messagem
--duration-d
--period`-p
--group-g
--bot-b
currentc

文档由 VitePress 构建 | API引用由 litedoc 生成

+ \ No newline at end of file