@gkd-kit/docs 0.0.1788334873313 → 0.0.1790606285768

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. package/.vitepress/dist/404.html +7 -7
  2. package/.vitepress/dist/404_.md +7 -7
  3. package/.vitepress/dist/_config.json +1 -1
  4. package/.vitepress/dist/api/index.html +10 -10
  5. package/.vitepress/dist/api/index_.md +10 -10
  6. package/.vitepress/dist/api/interfaces/RawApp.html +10 -10
  7. package/.vitepress/dist/api/interfaces/RawAppGroup.html +10 -10
  8. package/.vitepress/dist/api/interfaces/RawAppGroup_.md +10 -10
  9. package/.vitepress/dist/api/interfaces/RawAppRule.html +10 -10
  10. package/.vitepress/dist/api/interfaces/RawAppRuleProps.html +10 -10
  11. package/.vitepress/dist/api/interfaces/RawAppRuleProps_.md +10 -10
  12. package/.vitepress/dist/api/interfaces/RawAppRule_.md +10 -10
  13. package/.vitepress/dist/api/interfaces/RawApp_.md +10 -10
  14. package/.vitepress/dist/api/interfaces/RawCategory.html +10 -10
  15. package/.vitepress/dist/api/interfaces/RawCategory_.md +10 -10
  16. package/.vitepress/dist/api/interfaces/RawCommonProps.html +10 -10
  17. package/.vitepress/dist/api/interfaces/RawCommonProps_.md +10 -10
  18. package/.vitepress/dist/api/interfaces/RawGlobalApp.html +10 -10
  19. package/.vitepress/dist/api/interfaces/RawGlobalApp_.md +10 -10
  20. package/.vitepress/dist/api/interfaces/RawGlobalGroup.html +10 -10
  21. package/.vitepress/dist/api/interfaces/RawGlobalGroup_.md +10 -10
  22. package/.vitepress/dist/api/interfaces/RawGlobalRule.html +10 -10
  23. package/.vitepress/dist/api/interfaces/RawGlobalRuleProps.html +10 -10
  24. package/.vitepress/dist/api/interfaces/RawGlobalRuleProps_.md +10 -10
  25. package/.vitepress/dist/api/interfaces/RawGlobalRule_.md +10 -10
  26. package/.vitepress/dist/api/interfaces/RawGroupProps.html +10 -10
  27. package/.vitepress/dist/api/interfaces/RawGroupProps_.md +10 -10
  28. package/.vitepress/dist/api/interfaces/RawRuleProps.html +10 -10
  29. package/.vitepress/dist/api/interfaces/RawRuleProps_.md +10 -10
  30. package/.vitepress/dist/api/interfaces/RawSubscription.html +10 -10
  31. package/.vitepress/dist/api/interfaces/RawSubscription_.md +10 -10
  32. package/.vitepress/dist/api/type-aliases/IArray.html +10 -10
  33. package/.vitepress/dist/api/type-aliases/IArray_.md +10 -10
  34. package/.vitepress/dist/api/type-aliases/Integer.html +10 -10
  35. package/.vitepress/dist/api/type-aliases/IntegerMatcher.html +10 -10
  36. package/.vitepress/dist/api/type-aliases/IntegerMatcher_.md +10 -10
  37. package/.vitepress/dist/api/type-aliases/Integer_.md +10 -10
  38. package/.vitepress/dist/api/type-aliases/Position.html +10 -10
  39. package/.vitepress/dist/api/type-aliases/Position_.md +10 -10
  40. package/.vitepress/dist/api/type-aliases/StringMatcher.html +10 -10
  41. package/.vitepress/dist/api/type-aliases/StringMatcher_.md +10 -10
  42. package/.vitepress/dist/api/type-aliases/SwipeArg.html +10 -10
  43. package/.vitepress/dist/api/type-aliases/SwipeArg_.md +10 -10
  44. package/.vitepress/dist/assets/{app.Uy_pXPEn.js → app.D3rOGg0w.js} +1 -1
  45. package/.vitepress/dist/assets/chunks/{VPLocalSearchBox._tNw4vc7.js → VPLocalSearchBox.BJsIEpr4.js} +2 -2
  46. package/.vitepress/dist/assets/chunks/{metadata.c4faf574.js → metadata.38d6d290.js} +1 -1
  47. package/.vitepress/dist/assets/chunks/theme.CwXYgm9J.js +1 -0
  48. package/.vitepress/dist/assets/{guide_example.md.CMTPTjAm.js → guide_example.md.oPuv_Cof.js} +1 -1
  49. package/.vitepress/dist/assets/{guide_example.md.CMTPTjAm.lean.js → guide_example.md.oPuv_Cof.lean.js} +1 -1
  50. package/.vitepress/dist/assets/{guide_external.md.DmVQ631v.js → guide_external.md.DyCsFv-m.js} +1 -1
  51. package/.vitepress/dist/assets/{guide_external.md.DmVQ631v.lean.js → guide_external.md.DyCsFv-m.lean.js} +1 -1
  52. package/.vitepress/dist/assets/{guide_faq.md.DhP4fTGV.js → guide_faq.md.orCoxKxn.js} +1 -1
  53. package/.vitepress/dist/assets/{guide_faq.md.DhP4fTGV.lean.js → guide_faq.md.orCoxKxn.lean.js} +1 -1
  54. package/.vitepress/dist/assets/{guide_index.md.C5ka7c_u.js → guide_index.md.BS9peG_A.js} +1 -1
  55. package/.vitepress/dist/assets/{guide_index.md.C5ka7c_u.lean.js → guide_index.md.BS9peG_A.lean.js} +1 -1
  56. package/.vitepress/dist/assets/{guide_node.md.D4tW4j5e.js → guide_node.md.pZnyBFi2.js} +1 -1
  57. package/.vitepress/dist/assets/{guide_node.md.D4tW4j5e.lean.js → guide_node.md.pZnyBFi2.lean.js} +1 -1
  58. package/.vitepress/dist/assets/{guide_optimize.md.qubQwYUP.js → guide_optimize.md.CdJ-rUYL.js} +1 -1
  59. package/.vitepress/dist/assets/{guide_optimize.md.qubQwYUP.lean.js → guide_optimize.md.CdJ-rUYL.lean.js} +1 -1
  60. package/.vitepress/dist/assets/{guide_privacy.md.C7-DmlR2.js → guide_privacy.md.BIeL0xu0.js} +1 -1
  61. package/.vitepress/dist/assets/{guide_privacy.md.C7-DmlR2.lean.js → guide_privacy.md.BIeL0xu0.lean.js} +1 -1
  62. package/.vitepress/dist/assets/{guide_selector.md.CkSVzAxS.js → guide_selector.md._Aq2VZEU.js} +1 -1
  63. package/.vitepress/dist/assets/{guide_selector.md.CkSVzAxS.lean.js → guide_selector.md._Aq2VZEU.lean.js} +1 -1
  64. package/.vitepress/dist/assets/{guide_snapshot.md.D7FX3-9p.js → guide_snapshot.md.BOVPKyIu.js} +1 -1
  65. package/.vitepress/dist/assets/{guide_snapshot.md.D7FX3-9p.lean.js → guide_snapshot.md.BOVPKyIu.lean.js} +1 -1
  66. package/.vitepress/dist/assets/{guide_sponsor.md.Dh2tocCw.js → guide_sponsor.md.-vpZ9DIw.js} +1 -1
  67. package/.vitepress/dist/assets/{guide_sponsor.md.Dh2tocCw.lean.js → guide_sponsor.md.-vpZ9DIw.lean.js} +1 -1
  68. package/.vitepress/dist/assets/{guide_subscription.md.CBVeJKI6.js → guide_subscription.md.BtA823EC.js} +1 -1
  69. package/.vitepress/dist/assets/{guide_subscription.md.CBVeJKI6.lean.js → guide_subscription.md.BtA823EC.lean.js} +1 -1
  70. package/.vitepress/dist/assets/{guide_terms.md.D2_f_fIZ.js → guide_terms.md.Dc4DFFM_.js} +1 -1
  71. package/.vitepress/dist/assets/{guide_terms.md.D2_f_fIZ.lean.js → guide_terms.md.Dc4DFFM_.lean.js} +1 -1
  72. package/.vitepress/dist/assets/{guide_what-is-gkd.md.RO90vY_C.js → guide_what-is-gkd.md.CF7zUXZo.js} +1 -1
  73. package/.vitepress/dist/assets/{guide_what-is-gkd.md.RO90vY_C.lean.js → guide_what-is-gkd.md.CF7zUXZo.lean.js} +1 -1
  74. package/.vitepress/dist/assets/{index.md.CQQ0E8m-.js → index.md.BztRtE2s.js} +1 -1
  75. package/.vitepress/dist/assets/{index.md.CQQ0E8m-.lean.js → index.md.BztRtE2s.lean.js} +1 -1
  76. package/.vitepress/dist/assets/style.sQiVUa0J.css +1 -1
  77. package/.vitepress/dist/guide/example.html +11 -11
  78. package/.vitepress/dist/guide/example_.md +11 -11
  79. package/.vitepress/dist/guide/external.html +11 -11
  80. package/.vitepress/dist/guide/external_.md +11 -11
  81. package/.vitepress/dist/guide/faq.html +11 -11
  82. package/.vitepress/dist/guide/faq_.md +11 -11
  83. package/.vitepress/dist/guide/index.html +11 -11
  84. package/.vitepress/dist/guide/index_.md +11 -11
  85. package/.vitepress/dist/guide/node.html +11 -11
  86. package/.vitepress/dist/guide/node_.md +11 -11
  87. package/.vitepress/dist/guide/optimize.html +11 -11
  88. package/.vitepress/dist/guide/optimize_.md +11 -11
  89. package/.vitepress/dist/guide/privacy.html +11 -11
  90. package/.vitepress/dist/guide/privacy_.md +11 -11
  91. package/.vitepress/dist/guide/selector.html +11 -11
  92. package/.vitepress/dist/guide/selector_.md +11 -11
  93. package/.vitepress/dist/guide/snapshot.html +11 -11
  94. package/.vitepress/dist/guide/snapshot_.md +11 -11
  95. package/.vitepress/dist/guide/sponsor.html +11 -11
  96. package/.vitepress/dist/guide/sponsor_.md +11 -11
  97. package/.vitepress/dist/guide/subscription.html +11 -11
  98. package/.vitepress/dist/guide/subscription_.md +11 -11
  99. package/.vitepress/dist/guide/terms.html +11 -11
  100. package/.vitepress/dist/guide/terms_.md +11 -11
  101. package/.vitepress/dist/guide/what-is-gkd.html +11 -11
  102. package/.vitepress/dist/guide/what-is-gkd_.md +11 -11
  103. package/.vitepress/dist/hashmap.json +1 -1
  104. package/.vitepress/dist/index.html +11 -11
  105. package/.vitepress/dist/index_.md +11 -11
  106. package/_config.json +1 -1
  107. package/package.json +1 -1
  108. package/.vitepress/dist/assets/chunks/theme.B5N-Lehd.js +0 -1
@@ -1 +1 @@
1
- import{t as e}from"./chunks/theme.B5N-Lehd.js";import{G as t,J as n,_ as r,a as i,c as a,d as o,dt as s,g as c,gt as l,h as u,i as d,kt as f,n as p,p as m,r as h,s as g,t as _,ut as v,v as y,x as b}from"./chunks/framework.bo_0njjP.js";function x(e){if(e.extends){let t=x(e.extends);return{...t,...e,async enhanceApp(n){t.enhanceApp&&await t.enhanceApp(n),e.enhanceApp&&await e.enhanceApp(n)}}}return e}var S=x(e),C=v({name:`VitePressApp`,setup(){let{site:e,lang:t,dir:n}=y();return l(()=>{f(()=>{document.documentElement.lang=t.value,document.documentElement.dir=n.value})}),e.value.router.prefetchLinks&&_(),h(),d(),S.setup&&S.setup(),()=>s(S.Layout)}});async function w(){globalThis.__VITEPRESS__=!0;let e=E(),n=T();n.provide(g,e);let i=c(e.route);return n.provide(u,i),n.component(`Content`,o),n.component(`ClientOnly`,t),Object.defineProperties(n.config.globalProperties,{$frontmatter:{get(){return i.frontmatter.value}},$params:{get(){return i.page.value.params}}}),S.enhanceApp&&await S.enhanceApp({app:n,router:e,siteData:r}),{app:n,router:e,data:i}}function T(){return n(C)}function E(){let e=b;return a(t=>{let n=m(t),r=null;return n&&(e&&(n=n.replace(/\.js$/,`.lean.js`)),r=i(()=>import(((u)=>{if(u.startsWith('/')){return"https://registry.npmmirror.com/@gkd-kit/docs/0.0.1788334873313/files/.vitepress/dist"+u}return u})(n)),[])),b&&(e=!1),r},S.NotFound)}b&&w().then(({app:e,router:t,data:n})=>{t.go(location.href,{initialLoad:!0}).then(()=>{p(t.route,n.site),e.mount(`#app`)})});export{w as createApp};
1
+ import{t as e}from"./chunks/theme.CwXYgm9J.js";import{G as t,J as n,_ as r,a as i,c as a,d as o,dt as s,g as c,gt as l,h as u,i as d,kt as f,n as p,p as m,r as h,s as g,t as _,ut as v,v as y,x as b}from"./chunks/framework.bo_0njjP.js";function x(e){if(e.extends){let t=x(e.extends);return{...t,...e,async enhanceApp(n){t.enhanceApp&&await t.enhanceApp(n),e.enhanceApp&&await e.enhanceApp(n)}}}return e}var S=x(e),C=v({name:`VitePressApp`,setup(){let{site:e,lang:t,dir:n}=y();return l(()=>{f(()=>{document.documentElement.lang=t.value,document.documentElement.dir=n.value})}),e.value.router.prefetchLinks&&_(),h(),d(),S.setup&&S.setup(),()=>s(S.Layout)}});async function w(){globalThis.__VITEPRESS__=!0;let e=E(),n=T();n.provide(g,e);let i=c(e.route);return n.provide(u,i),n.component(`Content`,o),n.component(`ClientOnly`,t),Object.defineProperties(n.config.globalProperties,{$frontmatter:{get(){return i.frontmatter.value}},$params:{get(){return i.page.value.params}}}),S.enhanceApp&&await S.enhanceApp({app:n,router:e,siteData:r}),{app:n,router:e,data:i}}function T(){return n(C)}function E(){let e=b;return a(t=>{let n=m(t),r=null;return n&&(e&&(n=n.replace(/\.js$/,`.lean.js`)),r=i(()=>import(((u)=>{if(u.startsWith('/')){return"https://registry.npmmirror.com/@gkd-kit/docs/0.0.1790606285768/files/.vitepress/dist"+u}return u})(n)),[])),b&&(e=!1),r},S.NotFound)}b&&w().then(({app:e,router:t,data:n})=>{t.go(location.href,{initialLoad:!0}).then(()=>{p(t.route,n.site),e.mount(`#app`)})});export{w as createApp};
@@ -1,3 +1,3 @@
1
- import{n as e}from"./theme.B5N-Lehd.js";import{$ as t,B as n,Bt as r,D as i,F as a,H as o,Ht as s,I as c,It as l,M as u,Mt as d,Nt as f,O as p,Ot as m,Pt as h,Q as g,V as _,Vt as v,W as y,Wt as b,Y as ee,a as te,at as x,b as ne,et as re,gt as S,h as ie,ht as ae,it as oe,j as se,k as ce,kt as le,mt as C,nt as w,o as ue,p as de,q as fe,rt as pe,st as T,tt as E,u as me,ut as D,x as he,xt as ge,yt as O,zt as k}from"./framework.bo_0njjP.js";var _e={root:()=>te(()=>import(((u)=>{if(u.startsWith('/')){return"https://registry.npmmirror.com/@gkd-kit/docs/0.0.1788334873313/files/.vitepress/dist"+u}return u})(`./@localSearchIndexroot.rRUWHdCY.js`)),[])},ve=[`input:not([inert]):not([inert] *)`,`select:not([inert]):not([inert] *)`,`textarea:not([inert]):not([inert] *)`,`a[href]:not([inert]):not([inert] *)`,`area[href]:not([inert]):not([inert] *)`,`button:not([inert]):not([inert] *)`,`[tabindex]:not(slot):not([inert]):not([inert] *)`,`audio[controls]:not([inert]):not([inert] *)`,`video[controls]:not([inert]):not([inert] *)`,`[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)`,`details>summary:first-of-type:not([inert]):not([inert] *)`,`details:not([inert]):not([inert] *)`],A=ve.join(`,`),ye=typeof Element>`u`,j=ye?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,M=!ye&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)==null?void 0:t.call(e)}:function(e){return e==null?void 0:e.ownerDocument},N=function(e,t){var n;t===void 0&&(t=!0);var r=e==null||(n=e.getAttribute)==null?void 0:n.call(e,`inert`);return r===``||r===`true`||t&&e&&(typeof e.closest==`function`?e.closest(`[inert]`):N(e.parentNode))},P=function(e){var t,n=e==null||(t=e.getAttribute)==null?void 0:t.call(e,`contenteditable`);return n===``||n===`true`},F=function(e,t,n){if(N(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(A));return t&&j.call(e,A)&&r.unshift(e),r=r.filter(n),r},I=function(e,t,n){for(var r=[],i=Array.from(e);i.length;){var a=i.shift();if(!N(a,!1)){if(a.tagName===`SLOT`){var o=a.assignedElements(),s=I(o.length?o:a.children,!0,n);n.flatten?r.push.apply(r,s):r.push({scopeParent:a,candidates:s})}else{j.call(a,A)&&n.filter(a)&&(t||!e.includes(a))&&r.push(a);var c=a.shadowRoot||typeof n.getShadowRoot==`function`&&n.getShadowRoot(a),l=!N(c,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(a));if(c&&l){var u=I(c===!0?a.children:c.children,!0,n);n.flatten?r.push.apply(r,u):r.push({scopeParent:a,candidates:u})}else i.unshift.apply(i,a.children)}}}return r},L=function(e){return!isNaN(parseInt(e.getAttribute(`tabindex`),10))},R=function(e){if(!e)throw Error(`No node provided`);return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||P(e))&&!L(e)?0:e.tabIndex},be=function(e,t){var n=R(e);return n<0&&t&&!L(e)?0:n},z=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},B=function(e){return e.tagName===`INPUT`},xe=function(e){return B(e)&&e.type===`hidden`},V=function(e){return e.tagName===`DETAILS`&&Array.prototype.slice.apply(e.children).some(function(e){return e.tagName===`SUMMARY`})},Se=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]},Ce=function(e){if(!e.name)return!0;var t=e.form||M(e),n=function(e){return t.querySelectorAll(`input[type="radio"][name="`+e+`"]`)},r;if(typeof window<`u`&&window.CSS!==void 0&&typeof window.CSS.escape==`function`)r=n(window.CSS.escape(e.name));else try{r=n(e.name)}catch(e){return console.error(`Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s`,e.message),!1}var i=Se(r,e.form);return!i||i===e},we=function(e){return B(e)&&e.type===`radio`},Te=function(e){return we(e)&&!Ce(e)},Ee=function(e){var t,n=e&&M(e),r=(t=n)==null?void 0:t.host,i=!1;if(n&&n!==e){var a,o,s;for(i=!!((a=r)!=null&&(o=a.ownerDocument)!=null&&o.contains(r)||e!=null&&(s=e.ownerDocument)!=null&&s.contains(e));!i&&r;){var c,l,u;n=M(r),r=(c=n)==null?void 0:c.host,i=!!((l=r)!=null&&(u=l.ownerDocument)!=null&&u.contains(r))}}return i},H=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return n===0&&r===0},U=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if(n===`full-native`&&`checkVisibility`in e)return!e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});var i=getComputedStyle(e).visibility;if(i===`hidden`||i===`collapse`)return!0;var a=j.call(e,`details>summary:first-of-type`)?e.parentElement:e;if(j.call(a,`details:not([open]) *`))return!0;if(!n||n===`full`||n===`full-native`||n===`legacy-full`){if(typeof r==`function`){for(var o=e;e;){var s=e.parentElement,c=M(e);if(s&&!s.shadowRoot&&r(s)===!0)return H(e);e=e.assignedSlot?e.assignedSlot:!s&&c!==e.ownerDocument?c.host:s}e=o}if(Ee(e))return!e.getClientRects().length;if(n!==`legacy-full`)return!0}else if(n===`non-zero-area`)return H(e);return!1},De=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName===`FIELDSET`&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if(r.tagName===`LEGEND`)return j.call(t,`fieldset[disabled] *`)?!0:!r.contains(e)}return!0}t=t.parentElement}return!1},W=function(e,t){return!(t.disabled||xe(t)||U(t,e)||V(t)||De(t))},G=function(e,t){return!(Te(t)||R(t)<0||!W(e,t))},Oe=function(e){var t=parseInt(e.getAttribute(`tabindex`),10);return!!(isNaN(t)||t>=0)},ke=function(e){var t=[],n=[];return e.forEach(function(e,r){var i=!!e.scopeParent,a=i?e.scopeParent:e,o=be(a,i),s=i?ke(e.candidates):a;o===0?i?t.push.apply(t,s):t.push(a):n.push({documentOrder:r,tabIndex:o,item:e,isScope:i,content:s})}),n.sort(z).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)},K=function(e,t){return t=t||{},ke(t.getShadowRoot?I([e],t.includeContainer,{filter:G.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:Oe}):F(e,t.includeContainer,G.bind(null,t)))},Ae=function(e,t){return t=t||{},t.getShadowRoot?I([e],t.includeContainer,{filter:W.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):F(e,t.includeContainer,W.bind(null,t))},q=function(e,t){if(t=t||{},!e)throw Error(`No node provided`);return j.call(e,A)!==!1&&G(t,e)},je=ve.concat(`iframe:not([inert]):not([inert] *)`).join(`,`),Me=function(e,t){if(t=t||{},!e)throw Error(`No node provided`);return j.call(e,je)!==!1&&W(t,e)};function Ne(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Pe(e){if(Array.isArray(e))return Ne(e)}function Fe(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(!n){if(Array.isArray(e)||(n=We(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
1
+ import{n as e}from"./theme.CwXYgm9J.js";import{$ as t,B as n,Bt as r,D as i,F as a,H as o,Ht as s,I as c,It as l,M as u,Mt as d,Nt as f,O as p,Ot as m,Pt as h,Q as g,V as _,Vt as v,W as y,Wt as b,Y as ee,a as te,at as x,b as ne,et as re,gt as S,h as ie,ht as ae,it as oe,j as se,k as ce,kt as le,mt as C,nt as w,o as ue,p as de,q as fe,rt as pe,st as T,tt as E,u as me,ut as D,x as he,xt as ge,yt as O,zt as k}from"./framework.bo_0njjP.js";var _e={root:()=>te(()=>import(((u)=>{if(u.startsWith('/')){return"https://registry.npmmirror.com/@gkd-kit/docs/0.0.1790606285768/files/.vitepress/dist"+u}return u})(`./@localSearchIndexroot.rRUWHdCY.js`)),[])},ve=[`input:not([inert]):not([inert] *)`,`select:not([inert]):not([inert] *)`,`textarea:not([inert]):not([inert] *)`,`a[href]:not([inert]):not([inert] *)`,`area[href]:not([inert]):not([inert] *)`,`button:not([inert]):not([inert] *)`,`[tabindex]:not(slot):not([inert]):not([inert] *)`,`audio[controls]:not([inert]):not([inert] *)`,`video[controls]:not([inert]):not([inert] *)`,`[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)`,`details>summary:first-of-type:not([inert]):not([inert] *)`,`details:not([inert]):not([inert] *)`],A=ve.join(`,`),ye=typeof Element>`u`,j=ye?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,M=!ye&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)==null?void 0:t.call(e)}:function(e){return e==null?void 0:e.ownerDocument},N=function(e,t){var n;t===void 0&&(t=!0);var r=e==null||(n=e.getAttribute)==null?void 0:n.call(e,`inert`);return r===``||r===`true`||t&&e&&(typeof e.closest==`function`?e.closest(`[inert]`):N(e.parentNode))},P=function(e){var t,n=e==null||(t=e.getAttribute)==null?void 0:t.call(e,`contenteditable`);return n===``||n===`true`},F=function(e,t,n){if(N(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(A));return t&&j.call(e,A)&&r.unshift(e),r=r.filter(n),r},I=function(e,t,n){for(var r=[],i=Array.from(e);i.length;){var a=i.shift();if(!N(a,!1)){if(a.tagName===`SLOT`){var o=a.assignedElements(),s=I(o.length?o:a.children,!0,n);n.flatten?r.push.apply(r,s):r.push({scopeParent:a,candidates:s})}else{j.call(a,A)&&n.filter(a)&&(t||!e.includes(a))&&r.push(a);var c=a.shadowRoot||typeof n.getShadowRoot==`function`&&n.getShadowRoot(a),l=!N(c,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(a));if(c&&l){var u=I(c===!0?a.children:c.children,!0,n);n.flatten?r.push.apply(r,u):r.push({scopeParent:a,candidates:u})}else i.unshift.apply(i,a.children)}}}return r},L=function(e){return!isNaN(parseInt(e.getAttribute(`tabindex`),10))},R=function(e){if(!e)throw Error(`No node provided`);return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||P(e))&&!L(e)?0:e.tabIndex},be=function(e,t){var n=R(e);return n<0&&t&&!L(e)?0:n},z=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},B=function(e){return e.tagName===`INPUT`},xe=function(e){return B(e)&&e.type===`hidden`},V=function(e){return e.tagName===`DETAILS`&&Array.prototype.slice.apply(e.children).some(function(e){return e.tagName===`SUMMARY`})},Se=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]},Ce=function(e){if(!e.name)return!0;var t=e.form||M(e),n=function(e){return t.querySelectorAll(`input[type="radio"][name="`+e+`"]`)},r;if(typeof window<`u`&&window.CSS!==void 0&&typeof window.CSS.escape==`function`)r=n(window.CSS.escape(e.name));else try{r=n(e.name)}catch(e){return console.error(`Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s`,e.message),!1}var i=Se(r,e.form);return!i||i===e},we=function(e){return B(e)&&e.type===`radio`},Te=function(e){return we(e)&&!Ce(e)},Ee=function(e){var t,n=e&&M(e),r=(t=n)==null?void 0:t.host,i=!1;if(n&&n!==e){var a,o,s;for(i=!!((a=r)!=null&&(o=a.ownerDocument)!=null&&o.contains(r)||e!=null&&(s=e.ownerDocument)!=null&&s.contains(e));!i&&r;){var c,l,u;n=M(r),r=(c=n)==null?void 0:c.host,i=!!((l=r)!=null&&(u=l.ownerDocument)!=null&&u.contains(r))}}return i},H=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return n===0&&r===0},U=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if(n===`full-native`&&`checkVisibility`in e)return!e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});var i=getComputedStyle(e).visibility;if(i===`hidden`||i===`collapse`)return!0;var a=j.call(e,`details>summary:first-of-type`)?e.parentElement:e;if(j.call(a,`details:not([open]) *`))return!0;if(!n||n===`full`||n===`full-native`||n===`legacy-full`){if(typeof r==`function`){for(var o=e;e;){var s=e.parentElement,c=M(e);if(s&&!s.shadowRoot&&r(s)===!0)return H(e);e=e.assignedSlot?e.assignedSlot:!s&&c!==e.ownerDocument?c.host:s}e=o}if(Ee(e))return!e.getClientRects().length;if(n!==`legacy-full`)return!0}else if(n===`non-zero-area`)return H(e);return!1},De=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName===`FIELDSET`&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if(r.tagName===`LEGEND`)return j.call(t,`fieldset[disabled] *`)?!0:!r.contains(e)}return!0}t=t.parentElement}return!1},W=function(e,t){return!(t.disabled||xe(t)||U(t,e)||V(t)||De(t))},G=function(e,t){return!(Te(t)||R(t)<0||!W(e,t))},Oe=function(e){var t=parseInt(e.getAttribute(`tabindex`),10);return!!(isNaN(t)||t>=0)},ke=function(e){var t=[],n=[];return e.forEach(function(e,r){var i=!!e.scopeParent,a=i?e.scopeParent:e,o=be(a,i),s=i?ke(e.candidates):a;o===0?i?t.push.apply(t,s):t.push(a):n.push({documentOrder:r,tabIndex:o,item:e,isScope:i,content:s})}),n.sort(z).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)},K=function(e,t){return t=t||{},ke(t.getShadowRoot?I([e],t.includeContainer,{filter:G.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:Oe}):F(e,t.includeContainer,G.bind(null,t)))},Ae=function(e,t){return t=t||{},t.getShadowRoot?I([e],t.includeContainer,{filter:W.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):F(e,t.includeContainer,W.bind(null,t))},q=function(e,t){if(t=t||{},!e)throw Error(`No node provided`);return j.call(e,A)!==!1&&G(t,e)},je=ve.concat(`iframe:not([inert]):not([inert] *)`).join(`,`),Me=function(e,t){if(t=t||{},!e)throw Error(`No node provided`);return j.call(e,je)!==!1&&W(t,e)};function Ne(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Pe(e){if(Array.isArray(e))return Ne(e)}function Fe(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(!n){if(Array.isArray(e)||(n=We(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
2
2
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw a}}}}function Ie(e,t,n){return(t=Ue(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Le(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function Re(){throw TypeError(`Invalid attempt to spread non-iterable instance.
3
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ze(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Be(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?ze(Object(n),!0).forEach(function(t){Ie(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ze(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ve(e){return Pe(e)||Le(e)||We(e)||Re()}function He(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Ue(e){var t=He(e,`string`);return typeof t==`symbol`?t:t+``}function We(e,t){if(e){if(typeof e==`string`)return Ne(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ne(e,t):void 0}}var J={getActiveTrap:function(e){return(e==null?void 0:e.length)>0?e[e.length-1]:null},activateTrap:function(e,t){t!==J.getActiveTrap(e)&&J.pauseTrap(e);var n=e.indexOf(t);n===-1||e.splice(n,1),e.push(t)},deactivateTrap:function(e,t){var n=e.indexOf(t);n!==-1&&e.splice(n,1),J.unpauseTrap(e)},pauseTrap:function(e){var t=J.getActiveTrap(e);t==null||t._setPausedState(!0)},unpauseTrap:function(e){var t=J.getActiveTrap(e);t&&!t._isManuallyPaused()&&t._setPausedState(!1)}},Ge=function(e){return e.tagName&&e.tagName.toLowerCase()===`input`&&typeof e.select==`function`},Ke=function(e){return(e==null?void 0:e.key)===`Escape`||(e==null?void 0:e.key)===`Esc`||(e==null?void 0:e.keyCode)===27},Y=function(e){return(e==null?void 0:e.key)===`Tab`||(e==null?void 0:e.keyCode)===9},qe=function(e){return Y(e)&&!e.shiftKey},Je=function(e){return Y(e)&&e.shiftKey},Ye=function(e){return setTimeout(e,0)},X=function(e){var t=[...arguments].slice(1);return typeof e==`function`?e.apply(void 0,t):e},Xe=function(e){return e.target.shadowRoot&&typeof e.composedPath==`function`?e.composedPath()[0]:e.target},Ze=[],Qe=function(e,t){var n=(t==null?void 0:t.document)||document,r=(t==null?void 0:t.trapStack)||Ze,i=Be({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,delayReturnFocus:!0,isolateSubtrees:!1,isKeyForward:qe,isKeyBackward:Je},t),a={containers:[],containerGroups:[],tabbableGroups:[],adjacentElements:new Set,alreadySilent:new Set,nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},o,s=function(e,t,n){return e&&e[t]!==void 0?e[t]:i[n||t]},c=function(e,t){var n=typeof(t==null?void 0:t.composedPath)==`function`?t.composedPath():void 0;return a.containerGroups.findIndex(function(t){var r=t.container,i=t.tabbableNodes;return r.contains(e)||(n==null?void 0:n.includes(r))||i.find(function(t){return t===e})})},l=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.hasFallback,a=r!==void 0&&r,o=t.params,s=o===void 0?[]:o,c=i[e];if(typeof c==`function`&&(c=c.apply(void 0,Ve(s))),c===!0&&(c=void 0),!c){if(c===void 0||c===!1)return c;throw Error(`\`${e}\` was specified but was not a node, or did not return a node`)}var l=c;if(typeof c==`string`){try{l=n.querySelector(c)}catch(t){throw Error(`\`${e}\` appears to be an invalid selector; error="${t.message}"`)}if(!l&&!a)throw Error(`\`${e}\` as selector refers to no known node`)}return l},u=function(e){var t=e.activeElement;return t?t.shadowRoot&&t.shadowRoot.activeElement!==null?u(t.shadowRoot):t:null},d=function(){var e=l(`initialFocus`,{hasFallback:!0});if(e===!1)return!1;if(e===void 0||e&&!Me(e,i.tabbableOptions)){var t=u(n);if(c(t)>=0)e=t;else{var r=a.tabbableGroups[0];e=r&&r.firstTabbableNode||l(`fallbackFocus`)}}else e===null&&(e=l(`fallbackFocus`));if(!e)throw Error(`Your focus-trap needs to have at least one focusable element`);return e},f=function(){if(a.containerGroups=a.containers.map(function(e){var t=K(e,i.tabbableOptions),n=Ae(e,i.tabbableOptions),r=t.length>0?t[0]:void 0,a=t.length>0?t[t.length-1]:void 0,o=n.find(function(e){return q(e)}),s=n.slice().reverse().find(function(e){return q(e)});return{container:e,tabbableNodes:t,focusableNodes:n,posTabIndexesFound:!!t.find(function(e){return R(e)>0}),firstTabbableNode:r,lastTabbableNode:a,firstDomTabbableNode:o,lastDomTabbableNode:s,nextTabbableNode:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,i=t.indexOf(e);return i<0?r?n.slice(n.indexOf(e)+1).find(function(e){return q(e)}):n.slice(0,n.indexOf(e)).reverse().find(function(e){return q(e)}):t[i+(r?1:-1)]}}}),a.tabbableGroups=a.containerGroups.filter(function(e){return e.tabbableNodes.length>0}),a.tabbableGroups.length<=0&&!l(`fallbackFocus`))throw Error(`Your focus-trap must have at least one container with at least one tabbable node in it at all times`);if(a.containerGroups.find(function(e){return e.posTabIndexesFound})&&a.containerGroups.length>1)throw 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.`)},p=function(e){if(e!==!1&&e!==u(document)){if(!e||!e.focus){p(d());return}e.focus({preventScroll:!!i.preventScroll}),a.mostRecentlyFocusedNode=e,Ge(e)&&e.select()}},m=function(e){var t=l(`setReturnFocus`,{params:[e]});return t||t!==!1&&e},h=function(e){var t=e.target,n=e.event,r=e.isBackward,o=r!==void 0&&r;t=t||Xe(n),f();var s=null;if(a.tabbableGroups.length>0){var u=c(t,n),d=u>=0?a.containerGroups[u]:void 0;if(u<0)s=o?a.tabbableGroups[a.tabbableGroups.length-1].lastTabbableNode:a.tabbableGroups[0].firstTabbableNode;else if(o){var p=a.tabbableGroups.findIndex(function(e){var n=e.firstTabbableNode;return t===n});if(p<0&&(d.container===t||Me(t,i.tabbableOptions)&&!q(t,i.tabbableOptions)&&!d.nextTabbableNode(t,!1))&&(p=u),p>=0){var m=p===0?a.tabbableGroups.length-1:p-1,h=a.tabbableGroups[m];s=R(t)>=0?h.lastTabbableNode:h.lastDomTabbableNode}else Y(n)||(s=d.nextTabbableNode(t,!1))}else{var g=a.tabbableGroups.findIndex(function(e){var n=e.lastTabbableNode;return t===n});if(g<0&&(d.container===t||Me(t,i.tabbableOptions)&&!q(t,i.tabbableOptions)&&!d.nextTabbableNode(t))&&(g=u),g>=0){var _=g===a.tabbableGroups.length-1?0:g+1,v=a.tabbableGroups[_];s=R(t)>=0?v.firstTabbableNode:v.firstDomTabbableNode}else Y(n)||(s=d.nextTabbableNode(t))}}else s=l(`fallbackFocus`);return s},g=function(e){if(!(c(Xe(e),e)>=0)){if(X(i.clickOutsideDeactivates,e)){o.deactivate({returnFocus:i.returnFocusOnDeactivate});return}X(i.allowOutsideClick,e)||e.preventDefault()}},_=function(e){var t=Xe(e),n=c(t,e)>=0;if(n||t instanceof Document)n&&(a.mostRecentlyFocusedNode=t);else{e.stopImmediatePropagation();var r,o=!0;if(a.mostRecentlyFocusedNode){if(R(a.mostRecentlyFocusedNode)>0){var s=c(a.mostRecentlyFocusedNode),l=a.containerGroups[s].tabbableNodes;if(l.length>0){var u=l.findIndex(function(e){return e===a.mostRecentlyFocusedNode});u>=0&&(i.isKeyForward(a.recentNavEvent)?u+1<l.length&&(r=l[u+1],o=!1):u-1>=0&&(r=l[u-1],o=!1))}}else a.containerGroups.some(function(e){return e.tabbableNodes.some(function(e){return R(e)>0})})||(o=!1)}else o=!1;o&&(r=h({target:a.mostRecentlyFocusedNode,isBackward:i.isKeyBackward(a.recentNavEvent)})),p(r||a.mostRecentlyFocusedNode||d())}a.recentNavEvent=void 0},v=function(e){var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1];a.recentNavEvent=e;var n=h({event:e,isBackward:t});n&&(Y(e)&&e.preventDefault(),p(n))},y=function(e){(i.isKeyForward(e)||i.isKeyBackward(e))&&v(e,i.isKeyBackward(e))},b=function(e){Ke(e)&&X(i.escapeDeactivates,e)!==!1&&(e.preventDefault(),o.deactivate())},ee=function(e){c(Xe(e),e)>=0||X(i.clickOutsideDeactivates,e)||X(i.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},te=function(){if(a.active){J.activateTrap(r,o);var e;return i.delayInitialFocus?e=new Promise(function(e){a.delayInitialFocusTimer=Ye(function(){p(d()),e()})}):p(d()),n.addEventListener(`focusin`,_,!0),n.addEventListener(`mousedown`,g,{capture:!0,passive:!1}),n.addEventListener(`touchstart`,g,{capture:!0,passive:!1}),n.addEventListener(`click`,ee,{capture:!0,passive:!1}),n.addEventListener(`keydown`,y,{capture:!0,passive:!1}),n.addEventListener(`keydown`,b),e}},x=function(e){a.active&&!a.paused&&o._setSubtreeIsolation(!1),a.adjacentElements.clear(),a.alreadySilent.clear();var t=new Set,n=new Set,r=Fe(e),i;try{for(r.s();!(i=r.n()).done;){var s=i.value;t.add(s);for(var c=typeof ShadowRoot<`u`&&s.getRootNode()instanceof ShadowRoot,l=s;l;){t.add(l);var u=l.parentElement,d=[];u?d=u.children:!u&&c&&(d=l.getRootNode().children,u=l.getRootNode().host,c=typeof ShadowRoot<`u`&&u.getRootNode()instanceof ShadowRoot);var f=Fe(d),p;try{for(f.s();!(p=f.n()).done;){var m=p.value;n.add(m)}}catch(e){f.e(e)}finally{f.f()}l=u}}}catch(e){r.e(e)}finally{r.f()}t.forEach(function(e){n.delete(e)}),a.adjacentElements=n},ne=function(){if(a.active)return n.removeEventListener(`focusin`,_,!0),n.removeEventListener(`mousedown`,g,!0),n.removeEventListener(`touchstart`,g,!0),n.removeEventListener(`click`,ee,!0),n.removeEventListener(`keydown`,y,!0),n.removeEventListener(`keydown`,b),o},re=typeof window<`u`&&`MutationObserver`in window?new MutationObserver(function(e){var t=a.mostRecentlyFocusedNode;t&&e.some(function(e){return Array.from(e.removedNodes).some(function(e){return e===t||typeof e.contains==`function`&&e.contains(t)})})&&a.containers.some(function(e){return e==null?void 0:e.isConnected})&&(f(),p(d()))}):void 0,S=function(){re&&(re.disconnect(),a.active&&!a.paused&&a.containers.map(function(e){re.observe(e,{subtree:!0,childList:!0})}))};return o={get active(){return a.active},get paused(){return a.paused},activate:function(e){if(a.active)return this;var t=s(e,`onActivate`),i=s(e,`onPostActivate`),c=s(e,`checkCanFocusTrap`),l=J.getActiveTrap(r),d=!1;if(l&&!l.paused){var p;(p=l._setSubtreeIsolation)==null||p.call(l,!1),d=!0}try{c||f(),a.active=!0,a.paused=!1,a.nodeFocusedBeforeActivation=u(n),t==null||t({trap:o});var m=function(){c&&f();var e=function(){o._setSubtreeIsolation(!0),S(),i==null||i({trap:o})},t=te();t?t.then(e):e()};if(c)return c(a.containers.concat()).then(m,m),this;m()}catch(e){if(l===J.getActiveTrap(r)&&d){var h;(h=l._setSubtreeIsolation)==null||h.call(l,!0)}throw e}return this},deactivate:function(e){if(!a.active)return this;var t=Be({onDeactivate:i.onDeactivate,onPostDeactivate:i.onPostDeactivate,checkCanReturnFocus:i.checkCanReturnFocus},e);clearTimeout(a.delayInitialFocusTimer),a.delayInitialFocusTimer=void 0,a.paused||o._setSubtreeIsolation(!1),a.alreadySilent.clear(),ne(),a.active=!1,a.paused=!1,S(),J.deactivateTrap(r,o);var n=s(t,`onDeactivate`),c=s(t,`onPostDeactivate`),l=s(t,`checkCanReturnFocus`),u=s(t,`delayReturnFocus`),d=s(t,`returnFocus`,`returnFocusOnDeactivate`);n==null||n({trap:o});var f=function(){d&&p(m(a.nodeFocusedBeforeActivation)),c==null||c({trap:o})},h=function(){u&&d?Ye(f):f()};return d&&l?(l(m(a.nodeFocusedBeforeActivation)).then(h,h),this):(h(),this)},pause:function(e){return a.active?(a.manuallyPaused=!0,this._setPausedState(!0,e)):this},unpause:function(e){return!a.active||(a.manuallyPaused=!1,r[r.length-1]!==this)?this:this._setPausedState(!1,e)},updateContainerElements:function(e){return a.containers=[].concat(e).filter(Boolean).map(function(e){return typeof e==`string`?n.querySelector(e):e}),i.isolateSubtrees&&x(a.containers),a.active&&(f(),a.paused||o._setSubtreeIsolation(!0)),S(),this}},Object.defineProperties(o,{_isManuallyPaused:{value:function(){return a.manuallyPaused}},_setPausedState:{value:function(e,t){if(a.paused===e)return this;if(a.paused=e,e){var n=s(t,`onPause`),r=s(t,`onPostPause`);n==null||n({trap:o}),ne(),o._setSubtreeIsolation(!1),S(),r==null||r({trap:o})}else{var i=s(t,`onUnpause`),c=s(t,`onPostUnpause`);i==null||i({trap:o}),(function(){f();var e=function(){o._setSubtreeIsolation(!0),S(),c==null||c({trap:o})},t=te();t?t.then(e):e()})()}return this}},_setSubtreeIsolation:{value:function(e){i.isolateSubtrees&&a.adjacentElements.forEach(function(t){var n;if(e)switch(i.isolateSubtrees){case`aria-hidden`:(t.ariaHidden===`true`||((n=t.getAttribute(`aria-hidden`))==null?void 0:n.toLowerCase())===`true`)&&a.alreadySilent.add(t),t.setAttribute(`aria-hidden`,`true`);break;default:(t.inert||t.hasAttribute(`inert`))&&a.alreadySilent.add(t),t.setAttribute(`inert`,!0)}else if(!a.alreadySilent.has(t))switch(i.isolateSubtrees){case`aria-hidden`:t.removeAttribute(`aria-hidden`);break;default:t.removeAttribute(`inert`)}})}}}),o.updateContainerElements(e),o};function $e(e,t={}){let i,{immediate:a,...s}=t,c=k(!1),l=k(!1),u=e=>i&&i.activate(e),d=e=>i&&i.deactivate(e);return m(E(()=>_(r(e)).map(e=>{let t=r(e);return typeof t==`string`?t:ce(t)}).filter(n)),e=>{if(e.length){if(!i)i=Qe(e,{...s,onActivate(e){c.value=!0,t.onActivate&&t.onActivate(e)},onDeactivate(e){c.value=!1,t.onDeactivate&&t.onDeactivate(e)}}),a&&u();else{let t=i==null?void 0:i.active;i==null||i.updateContainerElements(e),!t&&a&&u()}}},{flush:`post`}),o(()=>d()),{hasFocus:c,isPaused:l,activate:u,deactivate:d,pause:()=>{i&&(i.pause(),l.value=!0)},unpause:()=>{i&&(i.unpause(),l.value=!1)}}}var et=class e{constructor(e,t=!0,n=[],r=5e3){this.ctx=e,this.iframes=t,this.exclude=n,this.iframesTimeout=r}static matches(e,t){let n=typeof t==`string`?[t]:t,r=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(r){let t=!1;return n.every(n=>!r.call(e,n)||(t=!0,!1)),t}return!1}getContexts(){let e,t=[];return e=this.ctx===void 0||!this.ctx?[]:NodeList.prototype.isPrototypeOf(this.ctx)?Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?this.ctx:typeof this.ctx==`string`?Array.prototype.slice.call(document.querySelectorAll(this.ctx)):[this.ctx],e.forEach(e=>{let n=t.filter(t=>t.contains(e)).length>0;t.indexOf(e)===-1&&!n&&t.push(e)}),t}getIframeContents(e,t,n=()=>{}){let r;try{let t=e.contentWindow;if(r=t.document,!t||!r)throw Error(`iframe inaccessible`)}catch{n()}r&&t(r)}isIframeBlank(e){let t=`about:blank`,n=e.getAttribute(`src`).trim();return e.contentWindow.location.href===t&&n!==t&&n}observeIframeLoad(e,t,n){let r=!1,i=null,a=()=>{if(!r){r=!0,clearTimeout(i);try{this.isIframeBlank(e)||(e.removeEventListener(`load`,a),this.getIframeContents(e,t,n))}catch{n()}}};e.addEventListener(`load`,a),i=setTimeout(a,this.iframesTimeout)}onIframeReady(e,t,n){try{e.contentWindow.document.readyState===`complete`?this.isIframeBlank(e)?this.observeIframeLoad(e,t,n):this.getIframeContents(e,t,n):this.observeIframeLoad(e,t,n)}catch{n()}}waitForIframes(e,t){let n=0;this.forEachIframe(e,()=>!0,e=>{n++,this.waitForIframes(e.querySelector(`html`),()=>{--n||t()})},e=>{e||t()})}forEachIframe(t,n,r,i=()=>{}){let a=t.querySelectorAll(`iframe`),o=a.length,s=0;a=Array.prototype.slice.call(a);let c=()=>{--o<=0&&i(s)};o||c(),a.forEach(t=>{e.matches(t,this.exclude)?c():this.onIframeReady(t,e=>{n(t)&&(s++,r(e)),c()},c)})}createIterator(e,t,n){return document.createNodeIterator(e,t,n,!1)}createInstanceOnIframe(t){return new e(t.querySelector(`html`),this.iframes)}compareNodeIframe(e,t,n){if(e.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_PRECEDING){if(t!==null){if(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_FOLLOWING)return!0}else return!0}return!1}getIteratorNode(e){let t=e.previousNode(),n;return n=(t===null||e.nextNode())&&e.nextNode(),{prevNode:t,node:n}}checkIframeFilter(e,t,n,r){let i=!1,a=!1;return r.forEach((e,t)=>{e.val===n&&(i=t,a=e.handled)}),this.compareNodeIframe(e,t,n)?(i===!1&&!a?r.push({val:n,handled:!0}):i!==!1&&!a&&(r[i].handled=!0),!0):(i===!1&&r.push({val:n,handled:!1}),!1)}handleOpenIframes(e,t,n,r){e.forEach(e=>{e.handled||this.getIframeContents(e.val,e=>{this.createInstanceOnIframe(e).forEachNode(t,n,r)})})}iterateThroughNodes(e,t,n,r,i){let a=this.createIterator(t,e,r),o=[],s=[],c,l,u=()=>({prevNode:l,node:c}=this.getIteratorNode(a),c);for(;u();)this.iframes&&this.forEachIframe(t,e=>this.checkIframeFilter(c,l,e,o),t=>{this.createInstanceOnIframe(t).forEachNode(e,e=>s.push(e),r)}),s.push(c);s.forEach(e=>{n(e)}),this.iframes&&this.handleOpenIframes(o,e,n,r),i()}forEachNode(e,t,n,r=()=>{}){let i=this.getContexts(),a=i.length;a||r(),i.forEach(i=>{let o=()=>{this.iterateThroughNodes(e,i,t,n,()=>{--a<=0&&r()})};this.iframes?this.waitForIframes(i,o):o()})}},tt=class{constructor(e){this.ctx=e,this.ie=!1;let 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 et(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(e,t=`debug`){let n=this.opt.log;this.opt.debug&&typeof n==`object`&&typeof n[t]==`function`&&n[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){let t=this.opt.synonyms,n=this.opt.caseSensitive?``:`i`,r=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?`\0`:``;for(let i in t)if(t.hasOwnProperty(i)){let a=t[i],o=this.opt.wildcards===`disabled`?this.escapeStr(i):this.setupWildcardsRegExp(i),s=this.opt.wildcards===`disabled`?this.escapeStr(a):this.setupWildcardsRegExp(a);o!==``&&s!==``&&(e=e.replace(RegExp(`(${this.escapeStr(o)}|${this.escapeStr(s)})`,`gm${n}`),r+`(${this.processSynomyms(o)}|${this.processSynomyms(s)})`+r))}return e}processSynomyms(e){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),e}setupWildcardsRegExp(e){return e=e.replace(/(?:\\)*\?/g,e=>e.charAt(0)===`\\`?`?`:``),e.replace(/(?:\\)*\*/g,e=>e.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,(e,t,n)=>{let r=n.charAt(t+1);return/[(|)\\]/.test(r)||r===``?e:e+`\0`})}createJoinersRegExp(e){let t=[],n=this.opt.ignorePunctuation;return Array.isArray(n)&&n.length&&t.push(this.escapeStr(n.join(``))),this.opt.ignoreJoiners&&t.push(`\\u00ad\\u200b\\u200c\\u200d`),t.length?e.split(/\u0000+/).join(`[${t.join(``)}]*`):e}createDiacriticsRegExp(e){let t=this.opt.caseSensitive?``:`i`,n=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ŽŻŹ`.split(`.`):[`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ŽŻŹ`],r=[];return e.split(``).forEach(i=>{n.every(n=>{if(n.indexOf(i)!==-1){if(r.indexOf(n)>-1)return!1;e=e.replace(RegExp(`[${n}]`,`gm${t}`),`[${n}]`),r.push(n)}return!0})}),e}createMergedBlanksRegExp(e){return e.replace(/[\s]+/gim,`[\\s]+`)}createAccuracyRegExp(e){let t=this.opt.accuracy,n=typeof t==`string`?t:t.value,r=typeof t==`string`?[]:t.limiters,i=``;switch(r.forEach(e=>{i+=`|${this.escapeStr(e)}`}),n){case`partially`:default:return`()(${e})`;case`complementary`:return i=`\\s`+(i||this.escapeStr(`!"#$%&'()*+,-./:;<=>?@[\\]^_\`{|}~¡¿`)),`()([^${i}]*${e}[^${i}]*)`;case`exactly`:return`(^|\\s${i})(${e})(?=$|\\s${i})`}}getSeparatedKeywords(e){let t=[];return e.forEach(e=>{this.opt.separateWordSearch?e.split(` `).forEach(e=>{e.trim()&&t.indexOf(e)===-1&&t.push(e)}):e.trim()&&t.indexOf(e)===-1&&t.push(e)}),{keywords:t.sort((e,t)=>t.length-e.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),[];let t=[],n=0;return e.sort((e,t)=>e.start-t.start).forEach(e=>{let{start:r,end:i,valid:a}=this.callNoMatchOnInvalidRanges(e,n);a&&(e.start=r,e.length=i-r,t.push(e),n=i)}),t}callNoMatchOnInvalidRanges(e,t){let n,r,i=!1;return e&&e.start!==void 0?(n=parseInt(e.start,10),r=n+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&r-t>0&&r-n>0?i=!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:n,end:r,valid:i}}checkWhitespaceRanges(e,t,n){let r,i=!0,a=n.length,o=t-a,s=parseInt(e.start,10)-o;return s=s>a?a:s,r=s+parseInt(e.length,10),r>a&&(r=a,this.log(`End range automatically set to the max value of ${a}`)),s<0||r-s<0||s>a||r>a?(i=!1,this.log(`Invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)):n.substring(s,r).replace(/\s+/g,``)===``&&(i=!1,this.log(`Skipping whitespace only range: `+JSON.stringify(e)),this.opt.noMatch(e)),{start:s,end:r,valid:i}}getTextNodes(e){let t=``,n=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,e=>{n.push({start:t.length,end:(t+=e.textContent).length,node:e})},e=>this.matchesExclude(e.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{e({value:t,nodes:n})})}matchesExclude(e){return et.matches(e,this.opt.exclude.concat([`script`,`style`,`title`,`head`,`html`]))}wrapRangeInTextNode(e,t,n){let r=this.opt.element?this.opt.element:`mark`,i=e.splitText(t),a=i.splitText(n-t),o=document.createElement(r);return o.setAttribute(`data-markjs`,`true`),this.opt.className&&o.setAttribute(`class`,this.opt.className),o.textContent=i.textContent,i.parentNode.replaceChild(o,i),a}wrapRangeInMappedTextNode(e,t,n,r,i){e.nodes.every((a,o)=>{let s=e.nodes[o+1];if(s===void 0||s.start>t){if(!r(a.node))return!1;let s=t-a.start,c=(n>a.end?a.end:n)-a.start,l=e.value.substr(0,a.start),u=e.value.substr(c+a.start);if(a.node=this.wrapRangeInTextNode(a.node,s,c),e.value=l+u,e.nodes.forEach((t,n)=>{n>=o&&(e.nodes[n].start>0&&n!==o&&(e.nodes[n].start-=c),e.nodes[n].end-=c)}),n-=c,i(a.node.previousSibling,a.start),n>a.end)t=a.end;else return!1}return!0})}wrapMatches(e,t,n,r,i){let a=t===0?0:t+1;this.getTextNodes(t=>{t.nodes.forEach(t=>{t=t.node;let i;for(;(i=e.exec(t.textContent))!==null&&i[a]!==``;){if(!n(i[a],t))continue;let o=i.index;if(a!==0)for(let e=1;e<a;e++)o+=i[e].length;t=this.wrapRangeInTextNode(t,o,o+i[a].length),r(t.previousSibling),e.lastIndex=0}}),i()})}wrapMatchesAcrossElements(e,t,n,r,i){let a=t===0?0:t+1;this.getTextNodes(t=>{let o;for(;(o=e.exec(t.value))!==null&&o[a]!==``;){let i=o.index;if(a!==0)for(let e=1;e<a;e++)i+=o[e].length;let s=i+o[a].length;this.wrapRangeInMappedTextNode(t,i,s,e=>n(o[a],e),(t,n)=>{e.lastIndex=n,r(t)})}i()})}wrapRangeFromIndex(e,t,n,r){this.getTextNodes(i=>{let a=i.value.length;e.forEach((e,r)=>{let{start:o,end:s,valid:c}=this.checkWhitespaceRanges(e,a,i.value);c&&this.wrapRangeInMappedTextNode(i,o,s,n=>t(n,e,i.value.substring(o,s),r),t=>{n(t,e)})}),r()})}unwrapMatches(e){let t=e.parentNode,n=document.createDocumentFragment();for(;e.firstChild;)n.appendChild(e.removeChild(e.firstChild));t.replaceChild(n,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 n=0,r=`wrapMatches`;this.opt.acrossElements&&(r=`wrapMatchesAcrossElements`),this[r](e,this.opt.ignoreGroups,(e,t)=>this.opt.filter(t,e,n),e=>{n++,this.opt.each(e)},()=>{n===0&&this.opt.noMatch(e),this.opt.done(n)})}mark(e,t){this.opt=t;let n=0,r=`wrapMatches`,{keywords:i,length:a}=this.getSeparatedKeywords(typeof e==`string`?[e]:e),o=this.opt.caseSensitive?``:`i`,s=e=>{let t=new RegExp(this.createRegExp(e),`gm${o}`),c=0;this.log(`Searching with expression "${t}"`),this[r](t,1,(t,r)=>this.opt.filter(r,e,n,c),e=>{c++,n++,this.opt.each(e)},()=>{c===0&&this.opt.noMatch(e),i[a-1]===e?this.opt.done(n):s(i[i.indexOf(e)+1])})};this.opt.acrossElements&&(r=`wrapMatchesAcrossElements`),a===0?this.opt.done(n):s(i[0])}markRanges(e,t){this.opt=t;let n=0,r=this.checkRanges(e);r&&r.length?(this.log(`Starting to mark with the following ranges: `+JSON.stringify(r)),this.wrapRangeFromIndex(r,(e,t,n,r)=>this.opt.filter(e,t,n,r),(e,t)=>{n++,this.opt.each(e,t)},()=>{this.opt.done(n)})):this.opt.done(n)}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,e=>{this.unwrapMatches(e)},e=>{let n=et.matches(e,t),r=this.matchesExclude(e);return!n||r?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function nt(e){let t=new tt(e);return this.mark=(e,n)=>(t.mark(e,n),this),this.markRegExp=(e,n)=>(t.markRegExp(e,n),this),this.markRanges=(e,n)=>(t.markRanges(e,n),this),this.unmark=e=>(t.unmark(e),this),this}var rt=`ENTRIES`,it=`KEYS`,at=`VALUES`,Z=``,ot=class{constructor(e,t){let n=e._tree,r=Array.from(n.keys());this.set=e,this._type=t,this._path=r.length>0?[{node:n,keys:r}]:[]}next(){let e=this.dive();return this.backtrack(),e}dive(){if(this._path.length===0)return{done:!0,value:void 0};let{node:e,keys:t}=Q(this._path);if(Q(t)===Z)return{done:!1,value:this.result()};let n=e.get(Q(t));return this._path.push({node:n,keys:Array.from(n.keys())}),this.dive()}backtrack(){if(this._path.length===0)return;let e=Q(this._path).keys;e.pop(),!(e.length>0)&&(this._path.pop(),this.backtrack())}key(){return this.set._prefix+this._path.map(({keys:e})=>Q(e)).filter(e=>e!==Z).join(``)}value(){return Q(this._path).node.get(Z)}result(){switch(this._type){case at:return this.value();case it:return this.key();default:return[this.key(),this.value()]}}[Symbol.iterator](){return this}},Q=e=>e[e.length-1],st=(e,t,n)=>{let r=new Map;if(t===void 0)return r;let i=t.length+1,a=i+n,o=new Uint8Array(a*i).fill(n+1);for(let e=0;e<i;++e)o[e]=e;for(let e=1;e<a;++e)o[e*i]=e;return ct(e,t,n,r,o,1,i,``),r},ct=(e,t,n,r,i,a,o,s)=>{let c=a*o;key:for(let l of e.keys())if(l===Z){let t=i[c-1];t<=n&&r.set(s,[e.get(l),t])}else{let c=a;for(let e=0;e<l.length;++e,++c){let r=l[e],a=o*c,s=a-o,u=i[a],d=Math.max(0,c-n-1),f=Math.min(o-1,c+n);for(let e=d;e<f;++e){let n=r!==t[e],o=i[s+e]+ +n,c=i[s+e+1]+1,l=i[a+e]+1,d=i[a+e+1]=Math.min(o,c,l);d<u&&(u=d)}if(u>n)continue key}ct(e.get(l),t,n,r,i,c,o,s+l)}},lt=class e{constructor(e=new Map,t=``){this._size=void 0,this._tree=e,this._prefix=t}atPrefix(t){if(!t.startsWith(this._prefix))throw Error(`Mismatched prefix`);let[n,r]=ut(this._tree,t.slice(this._prefix.length));if(n===void 0){let[n,i]=gt(r);for(let r of n.keys())if(r!==Z&&r.startsWith(i)){let a=new Map;return a.set(r.slice(i.length),n.get(r)),new e(a,t)}}return new e(n,t)}clear(){this._size=void 0,this._tree.clear()}delete(e){return this._size=void 0,pt(this._tree,e)}entries(){return new ot(this,rt)}forEach(e){for(let[t,n]of this)e(t,n,this)}fuzzyGet(e,t){return st(this._tree,e,t)}get(e){let t=dt(this._tree,e);return t===void 0?void 0:t.get(Z)}has(e){let t=dt(this._tree,e);return t!==void 0&&t.has(Z)}keys(){return new ot(this,it)}set(e,t){if(typeof e!=`string`)throw Error(`key must be a string`);return this._size=void 0,ft(this._tree,e).set(Z,t),this}get size(){if(this._size)return this._size;this._size=0;let e=this.entries();for(;!e.next().done;)this._size+=1;return this._size}update(e,t){if(typeof e!=`string`)throw Error(`key must be a string`);this._size=void 0;let n=ft(this._tree,e);return n.set(Z,t(n.get(Z))),this}fetch(e,t){if(typeof e!=`string`)throw Error(`key must be a string`);this._size=void 0;let n=ft(this._tree,e),r=n.get(Z);return r===void 0&&n.set(Z,r=t()),r}values(){return new ot(this,at)}[Symbol.iterator](){return this.entries()}static from(t){let n=new e;for(let[e,r]of t)n.set(e,r);return n}static fromObject(t){return e.from(Object.entries(t))}},ut=(e,t,n=[])=>{if(t.length===0||e==null)return[e,n];for(let r of e.keys())if(r!==Z&&t.startsWith(r))return n.push([e,r]),ut(e.get(r),t.slice(r.length),n);return n.push([e,t]),ut(void 0,``,n)},dt=(e,t)=>{if(t.length===0||e==null)return e;for(let n of e.keys())if(n!==Z&&t.startsWith(n))return dt(e.get(n),t.slice(n.length))},ft=(e,t)=>{let n=t.length;outer:for(let r=0;e&&r<n;){for(let i of e.keys())if(i!==Z&&t[r]===i[0]){let a=Math.min(n-r,i.length),o=1;for(;o<a&&t[r+o]===i[o];)++o;let s=e.get(i);if(o===i.length)e=s;else{let n=new Map;n.set(i.slice(o),s),e.set(t.slice(r,r+o),n),e.delete(i),e=n}r+=o;continue outer}let i=new Map;return e.set(t.slice(r),i),i}return e},pt=(e,t)=>{let[n,r]=ut(e,t);if(n!==void 0){if(n.delete(Z),n.size===0)mt(r);else if(n.size===1){let[e,t]=n.entries().next().value;ht(r,e,t)}}},mt=e=>{if(e.length===0)return;let[t,n]=gt(e);if(t.delete(n),t.size===0)mt(e.slice(0,-1));else if(t.size===1){let[n,r]=t.entries().next().value;n!==Z&&ht(e.slice(0,-1),n,r)}},ht=(e,t,n)=>{if(e.length===0)return;let[r,i]=gt(e);r.set(i+t,n),r.delete(i)},gt=e=>e[e.length-1],_t=`or`,vt=`and`,yt=`and_not`,bt=class e{constructor(e){if((e==null?void 0:e.fields)==null)throw Error(`MiniSearch: option "fields" must be provided`);let t=e.autoVacuum==null||e.autoVacuum===!0?jt:e.autoVacuum;this._options={...Et,...e,autoVacuum:t,searchOptions:{...Dt,...e.searchOptions||{}},autoSuggestOptions:{...Ot,...e.autoSuggestOptions||{}}},this._index=new lt,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=At,this.addFields(this._options.fields)}add(e){let{extractField:t,stringifyField:n,tokenize:r,processTerm:i,fields:a,idField:o}=this._options,s=t(e,o);if(s==null)throw Error(`MiniSearch: document does not have ID field "${o}"`);if(this._idToShortId.has(s))throw Error(`MiniSearch: duplicate ID ${s}`);let c=this.addDocumentId(s);this.saveStoredFields(c,e);for(let o of a){let a=t(e,o);if(a==null)continue;let s=r(n(a,o),o),l=this._fieldIds[o],u=new Set(s).size;this.addFieldLength(c,l,this._documentCount-1,u);for(let e of s){let t=i(e,o);if(Array.isArray(t))for(let e of t)this.addTerm(l,c,e);else t&&this.addTerm(l,c,t)}}}addAll(e){for(let t of e)this.add(t)}addAllAsync(e,t={}){let{chunkSize:n=10}=t,r={chunk:[],promise:Promise.resolve()},{chunk:i,promise:a}=e.reduce(({chunk:e,promise:t},r,i)=>(e.push(r),(i+1)%n===0?{chunk:[],promise:t.then(()=>new Promise(e=>setTimeout(e,0))).then(()=>this.addAll(e))}:{chunk:e,promise:t}),r);return a.then(()=>this.addAll(i))}remove(e){let{tokenize:t,processTerm:n,extractField:r,stringifyField:i,fields:a,idField:o}=this._options,s=r(e,o);if(s==null)throw Error(`MiniSearch: document does not have ID field "${o}"`);let c=this._idToShortId.get(s);if(c==null)throw Error(`MiniSearch: cannot remove document with ID ${s}: it is not in the index`);for(let o of a){let a=r(e,o);if(a==null)continue;let s=t(i(a,o),o),l=this._fieldIds[o],u=new Set(s).size;this.removeFieldLength(c,l,this._documentCount,u);for(let e of s){let t=n(e,o);if(Array.isArray(t))for(let e of t)this.removeTerm(l,c,e);else t&&this.removeTerm(l,c,t)}}this._storedFields.delete(c),this._documentIds.delete(c),this._idToShortId.delete(s),this._fieldLength.delete(c),--this._documentCount}removeAll(e){if(e)for(let t of e)this.remove(t);else if(arguments.length>0)throw Error(`Expected documents to be present. Omit the argument to remove all documents.`);else this._index=new lt,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){let t=this._idToShortId.get(e);if(t==null)throw 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((e,n)=>{this.removeFieldLength(t,n,this._documentCount,e)}),this._fieldLength.delete(t),--this._documentCount,this._dirtCount+=1,this.maybeAutoVacuum()}maybeAutoVacuum(){if(this._options.autoVacuum===!1)return;let{minDirtFactor:e,minDirtCount:t,batchSize:n,batchWait:r}=this._options.autoVacuum;this.conditionalVacuum({batchSize:n,batchWait:r},{minDirtCount:t,minDirtFactor:e})}discardAll(e){let t=this._options.autoVacuum;try{this._options.autoVacuum=!1;for(let t of e)this.discard(t)}finally{this._options.autoVacuum=t}this.maybeAutoVacuum()}replace(e){let{idField:t,extractField:n}=this._options,r=n(e,t);this.discard(r),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._currentVacuum.then(()=>{let t=this._enqueuedVacuumConditions;return this._enqueuedVacuumConditions=At,this.performVacuuming(e,t)})),this._enqueuedVacuum):this.vacuumConditionsMet(t)===!1?Promise.resolve():(this._currentVacuum=this.performVacuuming(e),this._currentVacuum)}async performVacuuming(e,t){let n=this._dirtCount;if(this.vacuumConditionsMet(t)){let t=e.batchSize||kt.batchSize,r=e.batchWait||kt.batchWait,i=1;for(let[e,n]of this._index){for(let[e,t]of n)for(let[r]of t)this._documentIds.has(r)||(t.size<=1?n.delete(e):t.delete(r));this._index.get(e).size===0&&this._index.delete(e),i%t===0&&await new Promise(e=>setTimeout(e,r)),i+=1}this._dirtCount-=n}await null,this._currentVacuum=this._enqueuedVacuum,this._enqueuedVacuum=null}vacuumConditionsMet(e){if(e==null)return!0;let{minDirtCount:t,minDirtFactor:n}=e;return t=t||jt.minDirtCount,n=n||jt.minDirtFactor,this.dirtCount>=t&&this.dirtFactor>=n}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){let t=this._idToShortId.get(e);if(t!=null)return this._storedFields.get(t)}search(t,n={}){let{searchOptions:r}=this._options,i={...r,...n},a=this.executeQuery(t,n),o=[];for(let[e,{score:t,terms:n,match:r}]of a){let a=n.length||1,s={id:this._documentIds.get(e),score:t*a,terms:Object.keys(r),queryTerms:n,match:r};Object.assign(s,this._storedFields.get(e)),(i.filter==null||i.filter(s))&&o.push(s)}return t===e.wildcard&&i.boostDocument==null||o.sort(Pt),o}autoSuggest(e,t={}){t={...this._options.autoSuggestOptions,...t};let n=new Map;for(let{score:r,terms:i}of this.search(e,t)){let e=i.join(` `),t=n.get(e);t==null?n.set(e,{score:r,terms:i,count:1}):(t.score+=r,t.count+=1)}let r=[];for(let[e,{score:t,terms:i,count:a}]of n)r.push({suggestion:e,terms:i,score:t/a});return r.sort(Pt),r}get documentCount(){return this._documentCount}get termCount(){return this._index.size}static loadJSON(e,t){if(t==null)throw Error(`MiniSearch: loadJSON should be given the same options used when serializing the index`);return this.loadJS(JSON.parse(e),t)}static async loadJSONAsync(e,t){if(t==null)throw 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(Et.hasOwnProperty(e))return xt(Et,e);throw Error(`MiniSearch: unknown option "${e}"`)}static loadJS(e,t){let{index:n,documentIds:r,fieldLength:i,storedFields:a,serializationVersion:o}=e,s=this.instantiateMiniSearch(e,t);s._documentIds=It(r),s._fieldLength=It(i),s._storedFields=It(a);for(let[e,t]of s._documentIds)s._idToShortId.set(t,e);for(let[e,t]of n){let n=new Map;for(let e of Object.keys(t)){let r=t[e];o===1&&(r=r.ds),n.set(parseInt(e,10),It(r))}s._index.set(e,n)}return s}static async loadJSAsync(e,t){let{index:n,documentIds:r,fieldLength:i,storedFields:a,serializationVersion:o}=e,s=this.instantiateMiniSearch(e,t);s._documentIds=await Lt(r),s._fieldLength=await Lt(i),s._storedFields=await Lt(a);for(let[e,t]of s._documentIds)s._idToShortId.set(t,e);let c=0;for(let[e,t]of n){let n=new Map;for(let e of Object.keys(t)){let r=t[e];o===1&&(r=r.ds),n.set(parseInt(e,10),await Lt(r))}++c%1e3==0&&await Rt(0),s._index.set(e,n)}return s}static instantiateMiniSearch(t,n){let{documentCount:r,nextId:i,fieldIds:a,averageFieldLength:o,dirtCount:s,serializationVersion:c}=t;if(c!==1&&c!==2)throw Error(`MiniSearch: cannot deserialize an index created with an incompatible version`);let l=new e(n);return l._documentCount=r,l._nextId=i,l._idToShortId=new Map,l._fieldIds=a,l._avgFieldLength=o,l._dirtCount=s||0,l._index=new lt,l}executeQuery(t,n={}){if(t===e.wildcard)return this.executeWildcardQuery(n);if(typeof t!=`string`){let e={...n,...t,queries:void 0},r=t.queries.map(t=>this.executeQuery(t,e));return this.combineResults(r,e.combineWith)}let{tokenize:r,processTerm:i,searchOptions:a}=this._options,o={tokenize:r,processTerm:i,...a,...n},{tokenize:s,processTerm:c}=o,l=s(t).flatMap(e=>c(e)).filter(e=>!!e).map(Tt(o)).map(e=>this.executeQuerySpec(e,o));return this.combineResults(l,o.combineWith)}executeQuerySpec(e,t){let n={...this._options.searchOptions,...t},r=(n.fields||this._options.fields).reduce((e,t)=>({...e,[t]:xt(n.boost,t)||1}),{}),{boostDocument:i,weights:a,maxFuzzy:o,bm25:s}=n,{fuzzy:c,prefix:l}={...Dt.weights,...a},u=this._index.get(e.term),d=this.termResults(e.term,e.term,1,e.termBoost,u,r,i,s),f,p;if(e.prefix&&(f=this._index.atPrefix(e.term)),e.fuzzy){let t=e.fuzzy===!0?.2:e.fuzzy,n=t<1?Math.min(o,Math.round(e.term.length*t)):t;n&&(p=this._index.fuzzyGet(e.term,n))}if(f)for(let[t,n]of f){let a=t.length-e.term.length;if(!a)continue;p==null||p.delete(t);let o=l*t.length/(t.length+.3*a);this.termResults(e.term,t,o,e.termBoost,n,r,i,s,d)}if(p)for(let t of p.keys()){let[n,a]=p.get(t);if(!a)continue;let o=c*t.length/(t.length+a);this.termResults(e.term,t,o,e.termBoost,n,r,i,s,d)}return d}executeWildcardQuery(e){let t=new Map,n={...this._options.searchOptions,...e};for(let[e,r]of this._documentIds){let i=n.boostDocument?n.boostDocument(r,``,this._storedFields.get(e)):1;t.set(e,{score:i,terms:[],match:{}})}return t}combineResults(e,t=_t){if(e.length===0)return new Map;let n=St[t.toLowerCase()];if(!n)throw Error(`Invalid combination operator: ${t}`);return e.reduce(n)||new Map}toJSON(){let e=[];for(let[t,n]of this._index){let r={};for(let[e,t]of n)r[e]=Object.fromEntries(t);e.push([t,r])}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,n,r,i,a,o,s,c=new Map){if(i==null)return c;for(let l of Object.keys(a)){let u=a[l],d=this._fieldIds[l],f=i.get(d);if(f==null)continue;let p=f.size,m=this._avgFieldLength[d];for(let i of f.keys()){if(!this._documentIds.has(i)){this.removeTerm(d,i,t),--p;continue}let a=o?o(this._documentIds.get(i),t,this._storedFields.get(i)):1;if(!a)continue;let h=f.get(i),g=this._fieldLength.get(i)[d],_=wt(h,p,this._documentCount,g,m,s),v=n*r*u*a*_,y=c.get(i);if(y){y.score+=v,Mt(y.terms,e);let n=xt(y.match,t);n?n.push(l):y.match[t]=[l]}else c.set(i,{score:v,terms:[e],match:{[t]:[l]}})}}return c}addTerm(e,t,n){let r=this._index.fetch(n,Ft),i=r.get(e);if(i==null)i=new Map,i.set(t,1),r.set(e,i);else{let e=i.get(t);i.set(t,(e||0)+1)}}removeTerm(e,t,n){if(!this._index.has(n)){this.warnDocumentChanged(t,e,n);return}let r=this._index.fetch(n,Ft),i=r.get(e);i==null||i.get(t)==null?this.warnDocumentChanged(t,e,n):i.get(t)<=1?i.size<=1?r.delete(e):i.delete(t):i.set(t,i.get(t)-1),this._index.get(n).size===0&&this._index.delete(n)}warnDocumentChanged(e,t,n){for(let r of Object.keys(this._fieldIds))if(this._fieldIds[r]===t){this._options.logger(`warn`,`MiniSearch: document with ID ${this._documentIds.get(e)} has changed before removal: term "${n}" was not present in field "${r}". Removing a document after it has changed can corrupt the index!`,`version_conflict`);return}}addDocumentId(e){let 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;t<e.length;t++)this._fieldIds[e[t]]=t}addFieldLength(e,t,n,r){let i=this._fieldLength.get(e);i==null&&this._fieldLength.set(e,i=[]),i[t]=r;let a=(this._avgFieldLength[t]||0)*n+r;this._avgFieldLength[t]=a/(n+1)}removeFieldLength(e,t,n,r){if(n===1){this._avgFieldLength[t]=0;return}let i=this._avgFieldLength[t]*n-r;this._avgFieldLength[t]=i/(n-1)}saveStoredFields(e,t){let{storeFields:n,extractField:r}=this._options;if(n==null||n.length===0)return;let i=this._storedFields.get(e);i==null&&this._storedFields.set(e,i={});for(let e of n){let n=r(t,e);n!==void 0&&(i[e]=n)}}};bt.wildcard=Symbol(`*`);var xt=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0,St={[_t]:(e,t)=>{for(let n of t.keys()){let r=e.get(n);if(r==null)e.set(n,t.get(n));else{let{score:e,terms:i,match:a}=t.get(n);r.score+=e,r.match=Object.assign(r.match,a),Nt(r.terms,i)}}return e},[vt]:(e,t)=>{let n=new Map;for(let r of t.keys()){let i=e.get(r);if(i==null)continue;let{score:a,terms:o,match:s}=t.get(r);Nt(i.terms,o),n.set(r,{score:i.score+a,terms:i.terms,match:Object.assign(i.match,s)})}return n},[yt]:(e,t)=>{for(let n of t.keys())e.delete(n);return e}},Ct={k:1.2,b:.7,d:.5},wt=(e,t,n,r,i,a)=>{let{k:o,b:s,d:c}=a;return Math.log(1+(n-t+.5)/(t+.5))*(c+e*(o+1)/(e+o*(1-s+s*r/i)))},Tt=e=>(t,n,r)=>({term:t,fuzzy:typeof e.fuzzy==`function`?e.fuzzy(t,n,r):e.fuzzy||!1,prefix:typeof e.prefix==`function`?e.prefix(t,n,r):e.prefix===!0,termBoost:typeof e.boostTerm==`function`?e.boostTerm(t,n,r):1}),Et={idField:`id`,extractField:(e,t)=>e[t],stringifyField:(e,t)=>e.toString(),tokenize:e=>e.split(zt),processTerm:e=>e.toLowerCase(),fields:void 0,searchOptions:void 0,storeFields:[],logger:(e,t)=>{typeof(console==null?void 0:console[e])==`function`&&console[e](t)},autoVacuum:!0},Dt={combineWith:_t,prefix:!1,fuzzy:!1,maxFuzzy:6,boost:{},weights:{fuzzy:.45,prefix:.375},bm25:Ct},Ot={combineWith:vt,prefix:(e,t,n)=>t===n.length-1},kt={batchSize:1e3,batchWait:10},At={minDirtFactor:.1,minDirtCount:20},jt={...kt,...At},Mt=(e,t)=>{e.includes(t)||e.push(t)},Nt=(e,t)=>{for(let n of t)e.includes(n)||e.push(n)},Pt=({score:e},{score:t})=>t-e,Ft=()=>new Map,It=e=>{let t=new Map;for(let n of Object.keys(e))t.set(parseInt(n,10),e[n]);return t},Lt=async e=>{let t=new Map,n=0;for(let r of Object.keys(e))t.set(parseInt(r,10),e[r]),++n%1e3==0&&await Rt(0);return t},Rt=e=>new Promise(t=>setTimeout(t,e)),zt=/[\n\r\p{Z}\p{P}]+/u;function $(e){"@babel/helpers - typeof";return $=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},$(e)}function Bt(e,t){if($(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if($(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Vt(e){var t=Bt(e,`string`);return $(t)==`symbol`?t:t+``}function Ht(e,t,n){return(t=Vt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ut=class{constructor(e=10){Ht(this,`max`,void 0),Ht(this,`cache`,void 0),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()}};function Wt(t){let{localeIndex:n,theme:r}=e();function i(e){var i,a,o,s,c;let l=e.split(`.`),u=(i=r.value.search)==null?void 0:i.options,d=u&&typeof u==`object`,f=d&&((a=u.locales)==null||(a=a[n.value])==null?void 0:a.translations)||null,p=d&&u.translations||null,m=f,h=p,g=t,_=l.pop();for(let e of l){let t=null,n=g==null?void 0:g[e];n&&(t=g=n);let r=h==null?void 0:h[e];r&&(t=h=r);let i=m==null?void 0:m[e];i&&(t=m=i),n||(g=t),r||(h=t),i||(m=t)}return(o=(s=(c=m==null?void 0:m[_])==null?h==null?void 0:h[_]:c)==null?g==null?void 0:g[_]:s)==null?``:o}return i}var Gt=[`aria-owns`],Kt={class:`shell`},qt=[`title`],Jt={class:`search-actions before`},Yt=[`title`],Xt=[`aria-activedescendant`,`aria-controls`,`placeholder`],Zt={class:`search-actions`},Qt=[`role`,`aria-label`],$t=[`title`],en=[`disabled`,`title`],tn=[`id`,`role`,`aria-busy`,`aria-labelledby`],nn=[`id`,`aria-selected`],rn=[`href`,`aria-label`,`onMouseenter`,`onFocusin`,`data-index`],an={class:`titles`},on=[`innerHTML`],sn={class:`title main`},cn=[`innerHTML`],ln={key:0,class:`excerpt-wrapper`},un={key:0,class:`excerpt`,inert:``},dn=[`innerHTML`],fn={key:0,class:`no-results`},pn={class:`search-keyboard-shortcuts`},mn=[`aria-label`],hn=[`aria-label`],gn=[`aria-label`],_n=[`aria-label`],vn=ue(D({__name:`VPLocalSearchBox`,emits:[`close`],setup(n,{emit:r}){var o,_;let ce=r,ue=k(),D=k(),ve=k(_e),A=e(),{activate:ye}=$e(ue,{immediate:!0,allowOutsideClick:!0,clickOutsideDeactivates:!0,escapeDeactivates:!0}),{localeIndex:j,theme:M}=A,N=l(!1),P=l(!1),F=E(()=>N.value||P.value),I=i(async()=>{var e,t,n,r,i,a,o;return h(bt.loadJSON((e=await((t=(n=ve.value)[j.value])==null?void 0:t.call(n)))==null?void 0:e.default,{fields:[`title`,`titles`,`text`],storeFields:[`title`,`titles`],searchOptions:{fuzzy:.2,prefix:!0,boost:{title:4,text:2,titles:1},...((r=M.value.search)==null?void 0:r.provider)===`local`&&((i=M.value.search.options)==null||(i=i.miniSearch)==null?void 0:i.searchOptions)},...((a=M.value.search)==null?void 0:a.provider)===`local`&&((o=M.value.search.options)==null||(o=o.miniSearch)==null?void 0:o.options)}))},void 0,N),L=E(()=>{var e,t;return((e=M.value.search)==null?void 0:e.provider)===`local`&&((t=M.value.search.options)==null?void 0:t.disableQueryPersistence)===!0}).value?l(``):c(`vitepress:local-search-filter`,``),R=u(`vitepress:local-search-detailed-list`,((o=M.value.search)==null?void 0:o.provider)===`local`&&((_=M.value.search.options)==null?void 0:_.detailedView)===!0),be=E(()=>{var e,t;return((e=M.value.search)==null?void 0:e.provider)===`local`&&((t=M.value.search.options)==null?void 0:t.detailedView)===!1});le(()=>{be.value&&(R.value=!1)});let z=k([]),B=l(!1);m(L,()=>{B.value=!1});let xe=i(async()=>{if(D.value)return h(new nt(D.value))},null),V=new Ut(16);y(()=>[I.value,L.value,R.value],async([e,t,n],r,i)=>{var a,o,s;(r==null?void 0:r[0])!==e&&V.clear();let c=!1;if(i(()=>{c=!0,P.value=!1}),!e){z.value=[];return}P.value=!0,z.value=e.search(t).slice(0,16),B.value=!0;let l=n?await Promise.all(z.value.map(e=>Se(e.id))):[];if(c)return;for(let{id:e,mod:t}of l){var u;let n=e.slice(0,e.indexOf(`#`)),r=V.get(n);if(r)continue;r=new Map,V.set(n,r);let i=(u=t.default)==null?t:u;if(i!=null&&i.render||i!=null&&i.setup){let e=fe(i);e.config.warnHandler=()=>{},e.provide(ie,A),Object.defineProperties(e.config.globalProperties,{$frontmatter:{get(){return A.frontmatter.value}},$params:{get(){return A.page.value.params}}});let t=document.createElement(`div`);e.mount(t),t.querySelectorAll(`h1, h2, h3, h4, h5, h6`).forEach(e=>{var t;let n=(t=e.querySelector(`a`))==null?void 0:t.getAttribute(`href`),i=(n==null?void 0:n.startsWith(`#`))&&n.slice(1);if(!i)return;let a=``;for(;(e=e.nextElementSibling)&&!/^h[1-6]$/i.test(e.tagName);)a+=e.outerHTML;r.set(i,a)}),e.unmount()}if(c)return}let d=new Set;if(z.value=z.value.map(e=>{var t;let[n,r]=e.id.split(`#`),i=V.get(n),a=(t=i==null?void 0:i.get(r))==null?``:t;for(let t in e.match)d.add(t);return{...e,text:a}}),await C(),c)return;await new Promise(e=>{var t;(t=xe.value)==null||t.unmark({done:()=>{var t;(t=xe.value)==null||t.markRegExp(je(d),{done:e})}})});let f=(a=(o=ue.value)==null?void 0:o.querySelectorAll(`.result .excerpt`))==null?[]:a;for(let e of f){var p;(p=e.querySelector(`mark[data-markjs="true"]`))==null||p.scrollIntoView({block:`center`})}(s=D.value)==null||(s=s.firstElementChild)==null||s.scrollIntoView({block:`start`}),P.value=!1},{debounce:200,immediate:!0});async function Se(e){let t=de(e.slice(0,e.indexOf(`#`)));try{if(!t)throw Error(`Cannot find file for id: ${e}`);return{id:e,mod:await te(()=>import(((u)=>{if(u.startsWith('/')){return"https://registry.npmmirror.com/@gkd-kit/docs/0.0.1788334873313/files/.vitepress/dist"+u}return u})(t)),[])}}catch(t){return console.error(t),{id:e,mod:{}}}}let Ce=l(),we=E(()=>{var e;return((e=L.value)==null?void 0:e.length)<=0});function Te(e=!0){var t,n;(t=Ce.value)==null||t.focus(),e&&((n=Ce.value)==null||n.select())}S(()=>{Te()});function Ee(e){e.pointerType===`mouse`&&Te()}let H=l(-1),U=l(!0);m(z,e=>{H.value=e.length?0:-1,De()});function De(){C(()=>{let e=document.querySelector(`.result.selected`);e==null||e.scrollIntoView({block:`nearest`})})}function W(e){e.preventDefault(),H.value--,H.value<0&&(H.value=z.value.length-1),U.value=!0,De()}function G(e){e.preventDefault(),H.value++,H.value>=z.value.length&&(H.value=0),U.value=!0,De()}function Oe(e){return e.ctrlKey&&!e.altKey&&!e.metaKey&&!e.shiftKey&&document.documentElement.classList.contains(`mac`)}p(`ArrowUp`,W),p(`ArrowDown`,G),p([`p`,`P`],e=>{Oe(e)&&W(e)}),p([`n`,`N`],e=>{Oe(e)&&G(e)});let ke=me();p(`Enter`,e=>{if(e.isComposing||e.target instanceof HTMLButtonElement&&e.target.type!==`submit`)return;let t=z.value[H.value];if(e.target instanceof HTMLInputElement&&!t){e.preventDefault();return}t&&(ke.go(t.id),ce(`close`))}),p(`Escape`,()=>{ce(`close`)});let K=Wt({button:{buttonText:`Search`},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`}}});S(()=>{window.history.pushState(null,``,null)}),se(`popstate`,e=>{e.preventDefault(),ce(`close`)});let Ae=a(he?document.body:null);S(()=>{C(()=>{Ae.value=!0,C().then(()=>ye())})}),ae(()=>{Ae.value=!1});function q(){L.value=``,C().then(()=>Te(!1))}function je(e){return new RegExp([...e].sort((e,t)=>t.length-e.length).map(e=>`(${ne(e)})`).join(`|`),`gi`)}function Me(e){var t;if(!U.value)return;let n=(t=e.target)==null?void 0:t.closest(`.result`),r=Number.parseInt(n==null?void 0:n.dataset.index);r>=0&&r!==H.value&&(H.value=r),U.value=!1}return(e,n)=>{var r,i,a,o,c;return O(),pe(re,{to:`body`},[w(`div`,{ref_key:`el`,ref:ue,role:`button`,"aria-owns":(r=z.value)!=null&&r.length?`localsearch-list`:void 0,"aria-expanded":`true`,"aria-haspopup":`listbox`,"aria-labelledby":`localsearch-label`,class:`VPLocalSearchBox`},[w(`div`,{class:`backdrop`,onClick:n[0]||(n[0]=t=>e.$emit(`close`))}),w(`div`,Kt,[w(`form`,{class:`search-bar`,onPointerup:n[4]||(n[4]=e=>Ee(e)),onSubmit:n[5]||(n[5]=g(()=>{},[`prevent`]))},[w(`label`,{title:v(K)(`button.buttonText`),id:`localsearch-label`,for:`localsearch-input`},[...n[7]||(n[7]=[w(`span`,{"aria-hidden":`true`,class:`vpi-search search-icon local-search-icon`},null,-1)])],8,qt),w(`div`,Jt,[w(`button`,{class:`back-button`,title:v(K)(`modal.backButtonTitle`),onClick:n[1]||(n[1]=t=>e.$emit(`close`))},[...n[8]||(n[8]=[w(`span`,{class:`vpi-arrow-left local-search-icon`},null,-1)])],8,Yt)]),d(w(`input`,{ref_key:`searchInput`,ref:Ce,"onUpdate:modelValue":n[2]||(n[2]=e=>f(L)?L.value=e:null),"aria-activedescendant":H.value>-1?`localsearch-item-`+H.value:void 0,"aria-autocomplete":`both`,"aria-controls":(i=z.value)!=null&&i.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:v(K)(`button.buttonText`),spellcheck:`false`,type:`search`},null,8,Xt),[[ee,v(L)]]),w(`div`,Zt,[w(`span`,{class:s([`search-loading`,{active:F.value}]),role:F.value?`status`:void 0,"aria-live":`polite`,"aria-label":F.value?`Loading search results`:void 0},null,10,Qt),be.value?oe(``,!0):(O(),x(`button`,{key:0,class:s([`toggle-layout-button`,{"detailed-list":v(R)}]),type:`button`,title:v(K)(`modal.displayDetails`),onClick:n[3]||(n[3]=e=>H.value>-1&&(R.value=!v(R)))},[...n[9]||(n[9]=[w(`span`,{class:`vpi-layout-list local-search-icon`},null,-1)])],10,$t)),w(`button`,{class:`clear-button`,type:`reset`,disabled:we.value,title:v(K)(`modal.resetButtonTitle`),onClick:q},[...n[10]||(n[10]=[w(`span`,{class:`vpi-delete local-search-icon`},null,-1)])],8,en)])],32),w(`ul`,{ref_key:`resultsEl`,ref:D,id:(a=z.value)!=null&&a.length?`localsearch-list`:void 0,role:(o=z.value)!=null&&o.length?`listbox`:void 0,"aria-busy":F.value?`true`:`false`,"aria-labelledby":(c=z.value)!=null&&c.length?`localsearch-label`:void 0,class:`results`,onMousemove:Me},[(O(!0),x(t,null,ge(z.value,(r,i)=>(O(),x(`li`,{key:r.id,id:`localsearch-item-`+i,"aria-selected":H.value===i?`true`:`false`,role:`option`},[w(`a`,{href:r.id,class:s([`result`,{selected:H.value===i}]),"aria-label":[...r.titles,r.title].join(` > `),onMouseenter:e=>!U.value&&(H.value=i),onFocusin:e=>H.value=i,onClick:n[6]||(n[6]=t=>e.$emit(`close`)),"data-index":i},[w(`div`,null,[w(`div`,an,[n[12]||(n[12]=w(`span`,{class:`title-icon`},`#`,-1)),(O(!0),x(t,null,ge(r.titles,(e,t)=>(O(),x(`span`,{key:t,class:`title`},[w(`span`,{class:`text`,innerHTML:e},null,8,on),n[11]||(n[11]=w(`span`,{class:`vpi-chevron-right local-search-icon`},null,-1))]))),128)),w(`span`,sn,[w(`span`,{class:`text`,innerHTML:r.title},null,8,cn)])]),v(R)?(O(),x(`div`,ln,[r.text?(O(),x(`div`,un,[w(`div`,{class:`vp-doc`,innerHTML:r.text},null,8,dn)])):oe(``,!0),n[13]||(n[13]=w(`div`,{class:`excerpt-gradient-bottom`},null,-1)),n[14]||(n[14]=w(`div`,{class:`excerpt-gradient-top`},null,-1))])):oe(``,!0)])],42,rn)],8,nn))),128)),v(L)&&!z.value.length&&B.value?(O(),x(`li`,fn,[T(b(v(K)(`modal.noResultsText`))+` "`,1),w(`strong`,null,b(v(L)),1),n[15]||(n[15]=T(`" `,-1))])):oe(``,!0)],40,tn),w(`div`,pn,[w(`span`,null,[w(`kbd`,{"aria-label":v(K)(`modal.footer.navigateUpKeyAriaLabel`)},[...n[16]||(n[16]=[w(`span`,{class:`vpi-arrow-up navigate-icon`},null,-1)])],8,mn),w(`kbd`,{"aria-label":v(K)(`modal.footer.navigateDownKeyAriaLabel`)},[...n[17]||(n[17]=[w(`span`,{class:`vpi-arrow-down navigate-icon`},null,-1)])],8,hn),T(` `+b(v(K)(`modal.footer.navigateText`)),1)]),w(`span`,null,[w(`kbd`,{"aria-label":v(K)(`modal.footer.selectKeyAriaLabel`)},[...n[18]||(n[18]=[w(`span`,{class:`vpi-corner-down-left navigate-icon`},null,-1)])],8,gn),T(` `+b(v(K)(`modal.footer.selectText`)),1)]),w(`span`,null,[w(`kbd`,{"aria-label":v(K)(`modal.footer.closeKeyAriaLabel`)},`esc`,8,_n),T(` `+b(v(K)(`modal.footer.closeText`)),1)])])])],8,Gt)])}}}),[[`__scopeId`,`data-v-f42494b4`]]);export{vn as default};
3
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ze(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Be(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?ze(Object(n),!0).forEach(function(t){Ie(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ze(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ve(e){return Pe(e)||Le(e)||We(e)||Re()}function He(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Ue(e){var t=He(e,`string`);return typeof t==`symbol`?t:t+``}function We(e,t){if(e){if(typeof e==`string`)return Ne(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ne(e,t):void 0}}var J={getActiveTrap:function(e){return(e==null?void 0:e.length)>0?e[e.length-1]:null},activateTrap:function(e,t){t!==J.getActiveTrap(e)&&J.pauseTrap(e);var n=e.indexOf(t);n===-1||e.splice(n,1),e.push(t)},deactivateTrap:function(e,t){var n=e.indexOf(t);n!==-1&&e.splice(n,1),J.unpauseTrap(e)},pauseTrap:function(e){var t=J.getActiveTrap(e);t==null||t._setPausedState(!0)},unpauseTrap:function(e){var t=J.getActiveTrap(e);t&&!t._isManuallyPaused()&&t._setPausedState(!1)}},Ge=function(e){return e.tagName&&e.tagName.toLowerCase()===`input`&&typeof e.select==`function`},Ke=function(e){return(e==null?void 0:e.key)===`Escape`||(e==null?void 0:e.key)===`Esc`||(e==null?void 0:e.keyCode)===27},Y=function(e){return(e==null?void 0:e.key)===`Tab`||(e==null?void 0:e.keyCode)===9},qe=function(e){return Y(e)&&!e.shiftKey},Je=function(e){return Y(e)&&e.shiftKey},Ye=function(e){return setTimeout(e,0)},X=function(e){var t=[...arguments].slice(1);return typeof e==`function`?e.apply(void 0,t):e},Xe=function(e){return e.target.shadowRoot&&typeof e.composedPath==`function`?e.composedPath()[0]:e.target},Ze=[],Qe=function(e,t){var n=(t==null?void 0:t.document)||document,r=(t==null?void 0:t.trapStack)||Ze,i=Be({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,delayReturnFocus:!0,isolateSubtrees:!1,isKeyForward:qe,isKeyBackward:Je},t),a={containers:[],containerGroups:[],tabbableGroups:[],adjacentElements:new Set,alreadySilent:new Set,nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},o,s=function(e,t,n){return e&&e[t]!==void 0?e[t]:i[n||t]},c=function(e,t){var n=typeof(t==null?void 0:t.composedPath)==`function`?t.composedPath():void 0;return a.containerGroups.findIndex(function(t){var r=t.container,i=t.tabbableNodes;return r.contains(e)||(n==null?void 0:n.includes(r))||i.find(function(t){return t===e})})},l=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.hasFallback,a=r!==void 0&&r,o=t.params,s=o===void 0?[]:o,c=i[e];if(typeof c==`function`&&(c=c.apply(void 0,Ve(s))),c===!0&&(c=void 0),!c){if(c===void 0||c===!1)return c;throw Error(`\`${e}\` was specified but was not a node, or did not return a node`)}var l=c;if(typeof c==`string`){try{l=n.querySelector(c)}catch(t){throw Error(`\`${e}\` appears to be an invalid selector; error="${t.message}"`)}if(!l&&!a)throw Error(`\`${e}\` as selector refers to no known node`)}return l},u=function(e){var t=e.activeElement;return t?t.shadowRoot&&t.shadowRoot.activeElement!==null?u(t.shadowRoot):t:null},d=function(){var e=l(`initialFocus`,{hasFallback:!0});if(e===!1)return!1;if(e===void 0||e&&!Me(e,i.tabbableOptions)){var t=u(n);if(c(t)>=0)e=t;else{var r=a.tabbableGroups[0];e=r&&r.firstTabbableNode||l(`fallbackFocus`)}}else e===null&&(e=l(`fallbackFocus`));if(!e)throw Error(`Your focus-trap needs to have at least one focusable element`);return e},f=function(){if(a.containerGroups=a.containers.map(function(e){var t=K(e,i.tabbableOptions),n=Ae(e,i.tabbableOptions),r=t.length>0?t[0]:void 0,a=t.length>0?t[t.length-1]:void 0,o=n.find(function(e){return q(e)}),s=n.slice().reverse().find(function(e){return q(e)});return{container:e,tabbableNodes:t,focusableNodes:n,posTabIndexesFound:!!t.find(function(e){return R(e)>0}),firstTabbableNode:r,lastTabbableNode:a,firstDomTabbableNode:o,lastDomTabbableNode:s,nextTabbableNode:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,i=t.indexOf(e);return i<0?r?n.slice(n.indexOf(e)+1).find(function(e){return q(e)}):n.slice(0,n.indexOf(e)).reverse().find(function(e){return q(e)}):t[i+(r?1:-1)]}}}),a.tabbableGroups=a.containerGroups.filter(function(e){return e.tabbableNodes.length>0}),a.tabbableGroups.length<=0&&!l(`fallbackFocus`))throw Error(`Your focus-trap must have at least one container with at least one tabbable node in it at all times`);if(a.containerGroups.find(function(e){return e.posTabIndexesFound})&&a.containerGroups.length>1)throw 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.`)},p=function(e){if(e!==!1&&e!==u(document)){if(!e||!e.focus){p(d());return}e.focus({preventScroll:!!i.preventScroll}),a.mostRecentlyFocusedNode=e,Ge(e)&&e.select()}},m=function(e){var t=l(`setReturnFocus`,{params:[e]});return t||t!==!1&&e},h=function(e){var t=e.target,n=e.event,r=e.isBackward,o=r!==void 0&&r;t=t||Xe(n),f();var s=null;if(a.tabbableGroups.length>0){var u=c(t,n),d=u>=0?a.containerGroups[u]:void 0;if(u<0)s=o?a.tabbableGroups[a.tabbableGroups.length-1].lastTabbableNode:a.tabbableGroups[0].firstTabbableNode;else if(o){var p=a.tabbableGroups.findIndex(function(e){var n=e.firstTabbableNode;return t===n});if(p<0&&(d.container===t||Me(t,i.tabbableOptions)&&!q(t,i.tabbableOptions)&&!d.nextTabbableNode(t,!1))&&(p=u),p>=0){var m=p===0?a.tabbableGroups.length-1:p-1,h=a.tabbableGroups[m];s=R(t)>=0?h.lastTabbableNode:h.lastDomTabbableNode}else Y(n)||(s=d.nextTabbableNode(t,!1))}else{var g=a.tabbableGroups.findIndex(function(e){var n=e.lastTabbableNode;return t===n});if(g<0&&(d.container===t||Me(t,i.tabbableOptions)&&!q(t,i.tabbableOptions)&&!d.nextTabbableNode(t))&&(g=u),g>=0){var _=g===a.tabbableGroups.length-1?0:g+1,v=a.tabbableGroups[_];s=R(t)>=0?v.firstTabbableNode:v.firstDomTabbableNode}else Y(n)||(s=d.nextTabbableNode(t))}}else s=l(`fallbackFocus`);return s},g=function(e){if(!(c(Xe(e),e)>=0)){if(X(i.clickOutsideDeactivates,e)){o.deactivate({returnFocus:i.returnFocusOnDeactivate});return}X(i.allowOutsideClick,e)||e.preventDefault()}},_=function(e){var t=Xe(e),n=c(t,e)>=0;if(n||t instanceof Document)n&&(a.mostRecentlyFocusedNode=t);else{e.stopImmediatePropagation();var r,o=!0;if(a.mostRecentlyFocusedNode){if(R(a.mostRecentlyFocusedNode)>0){var s=c(a.mostRecentlyFocusedNode),l=a.containerGroups[s].tabbableNodes;if(l.length>0){var u=l.findIndex(function(e){return e===a.mostRecentlyFocusedNode});u>=0&&(i.isKeyForward(a.recentNavEvent)?u+1<l.length&&(r=l[u+1],o=!1):u-1>=0&&(r=l[u-1],o=!1))}}else a.containerGroups.some(function(e){return e.tabbableNodes.some(function(e){return R(e)>0})})||(o=!1)}else o=!1;o&&(r=h({target:a.mostRecentlyFocusedNode,isBackward:i.isKeyBackward(a.recentNavEvent)})),p(r||a.mostRecentlyFocusedNode||d())}a.recentNavEvent=void 0},v=function(e){var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1];a.recentNavEvent=e;var n=h({event:e,isBackward:t});n&&(Y(e)&&e.preventDefault(),p(n))},y=function(e){(i.isKeyForward(e)||i.isKeyBackward(e))&&v(e,i.isKeyBackward(e))},b=function(e){Ke(e)&&X(i.escapeDeactivates,e)!==!1&&(e.preventDefault(),o.deactivate())},ee=function(e){c(Xe(e),e)>=0||X(i.clickOutsideDeactivates,e)||X(i.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},te=function(){if(a.active){J.activateTrap(r,o);var e;return i.delayInitialFocus?e=new Promise(function(e){a.delayInitialFocusTimer=Ye(function(){p(d()),e()})}):p(d()),n.addEventListener(`focusin`,_,!0),n.addEventListener(`mousedown`,g,{capture:!0,passive:!1}),n.addEventListener(`touchstart`,g,{capture:!0,passive:!1}),n.addEventListener(`click`,ee,{capture:!0,passive:!1}),n.addEventListener(`keydown`,y,{capture:!0,passive:!1}),n.addEventListener(`keydown`,b),e}},x=function(e){a.active&&!a.paused&&o._setSubtreeIsolation(!1),a.adjacentElements.clear(),a.alreadySilent.clear();var t=new Set,n=new Set,r=Fe(e),i;try{for(r.s();!(i=r.n()).done;){var s=i.value;t.add(s);for(var c=typeof ShadowRoot<`u`&&s.getRootNode()instanceof ShadowRoot,l=s;l;){t.add(l);var u=l.parentElement,d=[];u?d=u.children:!u&&c&&(d=l.getRootNode().children,u=l.getRootNode().host,c=typeof ShadowRoot<`u`&&u.getRootNode()instanceof ShadowRoot);var f=Fe(d),p;try{for(f.s();!(p=f.n()).done;){var m=p.value;n.add(m)}}catch(e){f.e(e)}finally{f.f()}l=u}}}catch(e){r.e(e)}finally{r.f()}t.forEach(function(e){n.delete(e)}),a.adjacentElements=n},ne=function(){if(a.active)return n.removeEventListener(`focusin`,_,!0),n.removeEventListener(`mousedown`,g,!0),n.removeEventListener(`touchstart`,g,!0),n.removeEventListener(`click`,ee,!0),n.removeEventListener(`keydown`,y,!0),n.removeEventListener(`keydown`,b),o},re=typeof window<`u`&&`MutationObserver`in window?new MutationObserver(function(e){var t=a.mostRecentlyFocusedNode;t&&e.some(function(e){return Array.from(e.removedNodes).some(function(e){return e===t||typeof e.contains==`function`&&e.contains(t)})})&&a.containers.some(function(e){return e==null?void 0:e.isConnected})&&(f(),p(d()))}):void 0,S=function(){re&&(re.disconnect(),a.active&&!a.paused&&a.containers.map(function(e){re.observe(e,{subtree:!0,childList:!0})}))};return o={get active(){return a.active},get paused(){return a.paused},activate:function(e){if(a.active)return this;var t=s(e,`onActivate`),i=s(e,`onPostActivate`),c=s(e,`checkCanFocusTrap`),l=J.getActiveTrap(r),d=!1;if(l&&!l.paused){var p;(p=l._setSubtreeIsolation)==null||p.call(l,!1),d=!0}try{c||f(),a.active=!0,a.paused=!1,a.nodeFocusedBeforeActivation=u(n),t==null||t({trap:o});var m=function(){c&&f();var e=function(){o._setSubtreeIsolation(!0),S(),i==null||i({trap:o})},t=te();t?t.then(e):e()};if(c)return c(a.containers.concat()).then(m,m),this;m()}catch(e){if(l===J.getActiveTrap(r)&&d){var h;(h=l._setSubtreeIsolation)==null||h.call(l,!0)}throw e}return this},deactivate:function(e){if(!a.active)return this;var t=Be({onDeactivate:i.onDeactivate,onPostDeactivate:i.onPostDeactivate,checkCanReturnFocus:i.checkCanReturnFocus},e);clearTimeout(a.delayInitialFocusTimer),a.delayInitialFocusTimer=void 0,a.paused||o._setSubtreeIsolation(!1),a.alreadySilent.clear(),ne(),a.active=!1,a.paused=!1,S(),J.deactivateTrap(r,o);var n=s(t,`onDeactivate`),c=s(t,`onPostDeactivate`),l=s(t,`checkCanReturnFocus`),u=s(t,`delayReturnFocus`),d=s(t,`returnFocus`,`returnFocusOnDeactivate`);n==null||n({trap:o});var f=function(){d&&p(m(a.nodeFocusedBeforeActivation)),c==null||c({trap:o})},h=function(){u&&d?Ye(f):f()};return d&&l?(l(m(a.nodeFocusedBeforeActivation)).then(h,h),this):(h(),this)},pause:function(e){return a.active?(a.manuallyPaused=!0,this._setPausedState(!0,e)):this},unpause:function(e){return!a.active||(a.manuallyPaused=!1,r[r.length-1]!==this)?this:this._setPausedState(!1,e)},updateContainerElements:function(e){return a.containers=[].concat(e).filter(Boolean).map(function(e){return typeof e==`string`?n.querySelector(e):e}),i.isolateSubtrees&&x(a.containers),a.active&&(f(),a.paused||o._setSubtreeIsolation(!0)),S(),this}},Object.defineProperties(o,{_isManuallyPaused:{value:function(){return a.manuallyPaused}},_setPausedState:{value:function(e,t){if(a.paused===e)return this;if(a.paused=e,e){var n=s(t,`onPause`),r=s(t,`onPostPause`);n==null||n({trap:o}),ne(),o._setSubtreeIsolation(!1),S(),r==null||r({trap:o})}else{var i=s(t,`onUnpause`),c=s(t,`onPostUnpause`);i==null||i({trap:o}),(function(){f();var e=function(){o._setSubtreeIsolation(!0),S(),c==null||c({trap:o})},t=te();t?t.then(e):e()})()}return this}},_setSubtreeIsolation:{value:function(e){i.isolateSubtrees&&a.adjacentElements.forEach(function(t){var n;if(e)switch(i.isolateSubtrees){case`aria-hidden`:(t.ariaHidden===`true`||((n=t.getAttribute(`aria-hidden`))==null?void 0:n.toLowerCase())===`true`)&&a.alreadySilent.add(t),t.setAttribute(`aria-hidden`,`true`);break;default:(t.inert||t.hasAttribute(`inert`))&&a.alreadySilent.add(t),t.setAttribute(`inert`,!0)}else if(!a.alreadySilent.has(t))switch(i.isolateSubtrees){case`aria-hidden`:t.removeAttribute(`aria-hidden`);break;default:t.removeAttribute(`inert`)}})}}}),o.updateContainerElements(e),o};function $e(e,t={}){let i,{immediate:a,...s}=t,c=k(!1),l=k(!1),u=e=>i&&i.activate(e),d=e=>i&&i.deactivate(e);return m(E(()=>_(r(e)).map(e=>{let t=r(e);return typeof t==`string`?t:ce(t)}).filter(n)),e=>{if(e.length){if(!i)i=Qe(e,{...s,onActivate(e){c.value=!0,t.onActivate&&t.onActivate(e)},onDeactivate(e){c.value=!1,t.onDeactivate&&t.onDeactivate(e)}}),a&&u();else{let t=i==null?void 0:i.active;i==null||i.updateContainerElements(e),!t&&a&&u()}}},{flush:`post`}),o(()=>d()),{hasFocus:c,isPaused:l,activate:u,deactivate:d,pause:()=>{i&&(i.pause(),l.value=!0)},unpause:()=>{i&&(i.unpause(),l.value=!1)}}}var et=class e{constructor(e,t=!0,n=[],r=5e3){this.ctx=e,this.iframes=t,this.exclude=n,this.iframesTimeout=r}static matches(e,t){let n=typeof t==`string`?[t]:t,r=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(r){let t=!1;return n.every(n=>!r.call(e,n)||(t=!0,!1)),t}return!1}getContexts(){let e,t=[];return e=this.ctx===void 0||!this.ctx?[]:NodeList.prototype.isPrototypeOf(this.ctx)?Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?this.ctx:typeof this.ctx==`string`?Array.prototype.slice.call(document.querySelectorAll(this.ctx)):[this.ctx],e.forEach(e=>{let n=t.filter(t=>t.contains(e)).length>0;t.indexOf(e)===-1&&!n&&t.push(e)}),t}getIframeContents(e,t,n=()=>{}){let r;try{let t=e.contentWindow;if(r=t.document,!t||!r)throw Error(`iframe inaccessible`)}catch{n()}r&&t(r)}isIframeBlank(e){let t=`about:blank`,n=e.getAttribute(`src`).trim();return e.contentWindow.location.href===t&&n!==t&&n}observeIframeLoad(e,t,n){let r=!1,i=null,a=()=>{if(!r){r=!0,clearTimeout(i);try{this.isIframeBlank(e)||(e.removeEventListener(`load`,a),this.getIframeContents(e,t,n))}catch{n()}}};e.addEventListener(`load`,a),i=setTimeout(a,this.iframesTimeout)}onIframeReady(e,t,n){try{e.contentWindow.document.readyState===`complete`?this.isIframeBlank(e)?this.observeIframeLoad(e,t,n):this.getIframeContents(e,t,n):this.observeIframeLoad(e,t,n)}catch{n()}}waitForIframes(e,t){let n=0;this.forEachIframe(e,()=>!0,e=>{n++,this.waitForIframes(e.querySelector(`html`),()=>{--n||t()})},e=>{e||t()})}forEachIframe(t,n,r,i=()=>{}){let a=t.querySelectorAll(`iframe`),o=a.length,s=0;a=Array.prototype.slice.call(a);let c=()=>{--o<=0&&i(s)};o||c(),a.forEach(t=>{e.matches(t,this.exclude)?c():this.onIframeReady(t,e=>{n(t)&&(s++,r(e)),c()},c)})}createIterator(e,t,n){return document.createNodeIterator(e,t,n,!1)}createInstanceOnIframe(t){return new e(t.querySelector(`html`),this.iframes)}compareNodeIframe(e,t,n){if(e.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_PRECEDING){if(t!==null){if(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_FOLLOWING)return!0}else return!0}return!1}getIteratorNode(e){let t=e.previousNode(),n;return n=(t===null||e.nextNode())&&e.nextNode(),{prevNode:t,node:n}}checkIframeFilter(e,t,n,r){let i=!1,a=!1;return r.forEach((e,t)=>{e.val===n&&(i=t,a=e.handled)}),this.compareNodeIframe(e,t,n)?(i===!1&&!a?r.push({val:n,handled:!0}):i!==!1&&!a&&(r[i].handled=!0),!0):(i===!1&&r.push({val:n,handled:!1}),!1)}handleOpenIframes(e,t,n,r){e.forEach(e=>{e.handled||this.getIframeContents(e.val,e=>{this.createInstanceOnIframe(e).forEachNode(t,n,r)})})}iterateThroughNodes(e,t,n,r,i){let a=this.createIterator(t,e,r),o=[],s=[],c,l,u=()=>({prevNode:l,node:c}=this.getIteratorNode(a),c);for(;u();)this.iframes&&this.forEachIframe(t,e=>this.checkIframeFilter(c,l,e,o),t=>{this.createInstanceOnIframe(t).forEachNode(e,e=>s.push(e),r)}),s.push(c);s.forEach(e=>{n(e)}),this.iframes&&this.handleOpenIframes(o,e,n,r),i()}forEachNode(e,t,n,r=()=>{}){let i=this.getContexts(),a=i.length;a||r(),i.forEach(i=>{let o=()=>{this.iterateThroughNodes(e,i,t,n,()=>{--a<=0&&r()})};this.iframes?this.waitForIframes(i,o):o()})}},tt=class{constructor(e){this.ctx=e,this.ie=!1;let 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 et(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(e,t=`debug`){let n=this.opt.log;this.opt.debug&&typeof n==`object`&&typeof n[t]==`function`&&n[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){let t=this.opt.synonyms,n=this.opt.caseSensitive?``:`i`,r=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?`\0`:``;for(let i in t)if(t.hasOwnProperty(i)){let a=t[i],o=this.opt.wildcards===`disabled`?this.escapeStr(i):this.setupWildcardsRegExp(i),s=this.opt.wildcards===`disabled`?this.escapeStr(a):this.setupWildcardsRegExp(a);o!==``&&s!==``&&(e=e.replace(RegExp(`(${this.escapeStr(o)}|${this.escapeStr(s)})`,`gm${n}`),r+`(${this.processSynomyms(o)}|${this.processSynomyms(s)})`+r))}return e}processSynomyms(e){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),e}setupWildcardsRegExp(e){return e=e.replace(/(?:\\)*\?/g,e=>e.charAt(0)===`\\`?`?`:``),e.replace(/(?:\\)*\*/g,e=>e.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,(e,t,n)=>{let r=n.charAt(t+1);return/[(|)\\]/.test(r)||r===``?e:e+`\0`})}createJoinersRegExp(e){let t=[],n=this.opt.ignorePunctuation;return Array.isArray(n)&&n.length&&t.push(this.escapeStr(n.join(``))),this.opt.ignoreJoiners&&t.push(`\\u00ad\\u200b\\u200c\\u200d`),t.length?e.split(/\u0000+/).join(`[${t.join(``)}]*`):e}createDiacriticsRegExp(e){let t=this.opt.caseSensitive?``:`i`,n=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ŽŻŹ`.split(`.`):[`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ŽŻŹ`],r=[];return e.split(``).forEach(i=>{n.every(n=>{if(n.indexOf(i)!==-1){if(r.indexOf(n)>-1)return!1;e=e.replace(RegExp(`[${n}]`,`gm${t}`),`[${n}]`),r.push(n)}return!0})}),e}createMergedBlanksRegExp(e){return e.replace(/[\s]+/gim,`[\\s]+`)}createAccuracyRegExp(e){let t=this.opt.accuracy,n=typeof t==`string`?t:t.value,r=typeof t==`string`?[]:t.limiters,i=``;switch(r.forEach(e=>{i+=`|${this.escapeStr(e)}`}),n){case`partially`:default:return`()(${e})`;case`complementary`:return i=`\\s`+(i||this.escapeStr(`!"#$%&'()*+,-./:;<=>?@[\\]^_\`{|}~¡¿`)),`()([^${i}]*${e}[^${i}]*)`;case`exactly`:return`(^|\\s${i})(${e})(?=$|\\s${i})`}}getSeparatedKeywords(e){let t=[];return e.forEach(e=>{this.opt.separateWordSearch?e.split(` `).forEach(e=>{e.trim()&&t.indexOf(e)===-1&&t.push(e)}):e.trim()&&t.indexOf(e)===-1&&t.push(e)}),{keywords:t.sort((e,t)=>t.length-e.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),[];let t=[],n=0;return e.sort((e,t)=>e.start-t.start).forEach(e=>{let{start:r,end:i,valid:a}=this.callNoMatchOnInvalidRanges(e,n);a&&(e.start=r,e.length=i-r,t.push(e),n=i)}),t}callNoMatchOnInvalidRanges(e,t){let n,r,i=!1;return e&&e.start!==void 0?(n=parseInt(e.start,10),r=n+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&r-t>0&&r-n>0?i=!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:n,end:r,valid:i}}checkWhitespaceRanges(e,t,n){let r,i=!0,a=n.length,o=t-a,s=parseInt(e.start,10)-o;return s=s>a?a:s,r=s+parseInt(e.length,10),r>a&&(r=a,this.log(`End range automatically set to the max value of ${a}`)),s<0||r-s<0||s>a||r>a?(i=!1,this.log(`Invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)):n.substring(s,r).replace(/\s+/g,``)===``&&(i=!1,this.log(`Skipping whitespace only range: `+JSON.stringify(e)),this.opt.noMatch(e)),{start:s,end:r,valid:i}}getTextNodes(e){let t=``,n=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,e=>{n.push({start:t.length,end:(t+=e.textContent).length,node:e})},e=>this.matchesExclude(e.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{e({value:t,nodes:n})})}matchesExclude(e){return et.matches(e,this.opt.exclude.concat([`script`,`style`,`title`,`head`,`html`]))}wrapRangeInTextNode(e,t,n){let r=this.opt.element?this.opt.element:`mark`,i=e.splitText(t),a=i.splitText(n-t),o=document.createElement(r);return o.setAttribute(`data-markjs`,`true`),this.opt.className&&o.setAttribute(`class`,this.opt.className),o.textContent=i.textContent,i.parentNode.replaceChild(o,i),a}wrapRangeInMappedTextNode(e,t,n,r,i){e.nodes.every((a,o)=>{let s=e.nodes[o+1];if(s===void 0||s.start>t){if(!r(a.node))return!1;let s=t-a.start,c=(n>a.end?a.end:n)-a.start,l=e.value.substr(0,a.start),u=e.value.substr(c+a.start);if(a.node=this.wrapRangeInTextNode(a.node,s,c),e.value=l+u,e.nodes.forEach((t,n)=>{n>=o&&(e.nodes[n].start>0&&n!==o&&(e.nodes[n].start-=c),e.nodes[n].end-=c)}),n-=c,i(a.node.previousSibling,a.start),n>a.end)t=a.end;else return!1}return!0})}wrapMatches(e,t,n,r,i){let a=t===0?0:t+1;this.getTextNodes(t=>{t.nodes.forEach(t=>{t=t.node;let i;for(;(i=e.exec(t.textContent))!==null&&i[a]!==``;){if(!n(i[a],t))continue;let o=i.index;if(a!==0)for(let e=1;e<a;e++)o+=i[e].length;t=this.wrapRangeInTextNode(t,o,o+i[a].length),r(t.previousSibling),e.lastIndex=0}}),i()})}wrapMatchesAcrossElements(e,t,n,r,i){let a=t===0?0:t+1;this.getTextNodes(t=>{let o;for(;(o=e.exec(t.value))!==null&&o[a]!==``;){let i=o.index;if(a!==0)for(let e=1;e<a;e++)i+=o[e].length;let s=i+o[a].length;this.wrapRangeInMappedTextNode(t,i,s,e=>n(o[a],e),(t,n)=>{e.lastIndex=n,r(t)})}i()})}wrapRangeFromIndex(e,t,n,r){this.getTextNodes(i=>{let a=i.value.length;e.forEach((e,r)=>{let{start:o,end:s,valid:c}=this.checkWhitespaceRanges(e,a,i.value);c&&this.wrapRangeInMappedTextNode(i,o,s,n=>t(n,e,i.value.substring(o,s),r),t=>{n(t,e)})}),r()})}unwrapMatches(e){let t=e.parentNode,n=document.createDocumentFragment();for(;e.firstChild;)n.appendChild(e.removeChild(e.firstChild));t.replaceChild(n,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 n=0,r=`wrapMatches`;this.opt.acrossElements&&(r=`wrapMatchesAcrossElements`),this[r](e,this.opt.ignoreGroups,(e,t)=>this.opt.filter(t,e,n),e=>{n++,this.opt.each(e)},()=>{n===0&&this.opt.noMatch(e),this.opt.done(n)})}mark(e,t){this.opt=t;let n=0,r=`wrapMatches`,{keywords:i,length:a}=this.getSeparatedKeywords(typeof e==`string`?[e]:e),o=this.opt.caseSensitive?``:`i`,s=e=>{let t=new RegExp(this.createRegExp(e),`gm${o}`),c=0;this.log(`Searching with expression "${t}"`),this[r](t,1,(t,r)=>this.opt.filter(r,e,n,c),e=>{c++,n++,this.opt.each(e)},()=>{c===0&&this.opt.noMatch(e),i[a-1]===e?this.opt.done(n):s(i[i.indexOf(e)+1])})};this.opt.acrossElements&&(r=`wrapMatchesAcrossElements`),a===0?this.opt.done(n):s(i[0])}markRanges(e,t){this.opt=t;let n=0,r=this.checkRanges(e);r&&r.length?(this.log(`Starting to mark with the following ranges: `+JSON.stringify(r)),this.wrapRangeFromIndex(r,(e,t,n,r)=>this.opt.filter(e,t,n,r),(e,t)=>{n++,this.opt.each(e,t)},()=>{this.opt.done(n)})):this.opt.done(n)}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,e=>{this.unwrapMatches(e)},e=>{let n=et.matches(e,t),r=this.matchesExclude(e);return!n||r?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function nt(e){let t=new tt(e);return this.mark=(e,n)=>(t.mark(e,n),this),this.markRegExp=(e,n)=>(t.markRegExp(e,n),this),this.markRanges=(e,n)=>(t.markRanges(e,n),this),this.unmark=e=>(t.unmark(e),this),this}var rt=`ENTRIES`,it=`KEYS`,at=`VALUES`,Z=``,ot=class{constructor(e,t){let n=e._tree,r=Array.from(n.keys());this.set=e,this._type=t,this._path=r.length>0?[{node:n,keys:r}]:[]}next(){let e=this.dive();return this.backtrack(),e}dive(){if(this._path.length===0)return{done:!0,value:void 0};let{node:e,keys:t}=Q(this._path);if(Q(t)===Z)return{done:!1,value:this.result()};let n=e.get(Q(t));return this._path.push({node:n,keys:Array.from(n.keys())}),this.dive()}backtrack(){if(this._path.length===0)return;let e=Q(this._path).keys;e.pop(),!(e.length>0)&&(this._path.pop(),this.backtrack())}key(){return this.set._prefix+this._path.map(({keys:e})=>Q(e)).filter(e=>e!==Z).join(``)}value(){return Q(this._path).node.get(Z)}result(){switch(this._type){case at:return this.value();case it:return this.key();default:return[this.key(),this.value()]}}[Symbol.iterator](){return this}},Q=e=>e[e.length-1],st=(e,t,n)=>{let r=new Map;if(t===void 0)return r;let i=t.length+1,a=i+n,o=new Uint8Array(a*i).fill(n+1);for(let e=0;e<i;++e)o[e]=e;for(let e=1;e<a;++e)o[e*i]=e;return ct(e,t,n,r,o,1,i,``),r},ct=(e,t,n,r,i,a,o,s)=>{let c=a*o;key:for(let l of e.keys())if(l===Z){let t=i[c-1];t<=n&&r.set(s,[e.get(l),t])}else{let c=a;for(let e=0;e<l.length;++e,++c){let r=l[e],a=o*c,s=a-o,u=i[a],d=Math.max(0,c-n-1),f=Math.min(o-1,c+n);for(let e=d;e<f;++e){let n=r!==t[e],o=i[s+e]+ +n,c=i[s+e+1]+1,l=i[a+e]+1,d=i[a+e+1]=Math.min(o,c,l);d<u&&(u=d)}if(u>n)continue key}ct(e.get(l),t,n,r,i,c,o,s+l)}},lt=class e{constructor(e=new Map,t=``){this._size=void 0,this._tree=e,this._prefix=t}atPrefix(t){if(!t.startsWith(this._prefix))throw Error(`Mismatched prefix`);let[n,r]=ut(this._tree,t.slice(this._prefix.length));if(n===void 0){let[n,i]=gt(r);for(let r of n.keys())if(r!==Z&&r.startsWith(i)){let a=new Map;return a.set(r.slice(i.length),n.get(r)),new e(a,t)}}return new e(n,t)}clear(){this._size=void 0,this._tree.clear()}delete(e){return this._size=void 0,pt(this._tree,e)}entries(){return new ot(this,rt)}forEach(e){for(let[t,n]of this)e(t,n,this)}fuzzyGet(e,t){return st(this._tree,e,t)}get(e){let t=dt(this._tree,e);return t===void 0?void 0:t.get(Z)}has(e){let t=dt(this._tree,e);return t!==void 0&&t.has(Z)}keys(){return new ot(this,it)}set(e,t){if(typeof e!=`string`)throw Error(`key must be a string`);return this._size=void 0,ft(this._tree,e).set(Z,t),this}get size(){if(this._size)return this._size;this._size=0;let e=this.entries();for(;!e.next().done;)this._size+=1;return this._size}update(e,t){if(typeof e!=`string`)throw Error(`key must be a string`);this._size=void 0;let n=ft(this._tree,e);return n.set(Z,t(n.get(Z))),this}fetch(e,t){if(typeof e!=`string`)throw Error(`key must be a string`);this._size=void 0;let n=ft(this._tree,e),r=n.get(Z);return r===void 0&&n.set(Z,r=t()),r}values(){return new ot(this,at)}[Symbol.iterator](){return this.entries()}static from(t){let n=new e;for(let[e,r]of t)n.set(e,r);return n}static fromObject(t){return e.from(Object.entries(t))}},ut=(e,t,n=[])=>{if(t.length===0||e==null)return[e,n];for(let r of e.keys())if(r!==Z&&t.startsWith(r))return n.push([e,r]),ut(e.get(r),t.slice(r.length),n);return n.push([e,t]),ut(void 0,``,n)},dt=(e,t)=>{if(t.length===0||e==null)return e;for(let n of e.keys())if(n!==Z&&t.startsWith(n))return dt(e.get(n),t.slice(n.length))},ft=(e,t)=>{let n=t.length;outer:for(let r=0;e&&r<n;){for(let i of e.keys())if(i!==Z&&t[r]===i[0]){let a=Math.min(n-r,i.length),o=1;for(;o<a&&t[r+o]===i[o];)++o;let s=e.get(i);if(o===i.length)e=s;else{let n=new Map;n.set(i.slice(o),s),e.set(t.slice(r,r+o),n),e.delete(i),e=n}r+=o;continue outer}let i=new Map;return e.set(t.slice(r),i),i}return e},pt=(e,t)=>{let[n,r]=ut(e,t);if(n!==void 0){if(n.delete(Z),n.size===0)mt(r);else if(n.size===1){let[e,t]=n.entries().next().value;ht(r,e,t)}}},mt=e=>{if(e.length===0)return;let[t,n]=gt(e);if(t.delete(n),t.size===0)mt(e.slice(0,-1));else if(t.size===1){let[n,r]=t.entries().next().value;n!==Z&&ht(e.slice(0,-1),n,r)}},ht=(e,t,n)=>{if(e.length===0)return;let[r,i]=gt(e);r.set(i+t,n),r.delete(i)},gt=e=>e[e.length-1],_t=`or`,vt=`and`,yt=`and_not`,bt=class e{constructor(e){if((e==null?void 0:e.fields)==null)throw Error(`MiniSearch: option "fields" must be provided`);let t=e.autoVacuum==null||e.autoVacuum===!0?jt:e.autoVacuum;this._options={...Et,...e,autoVacuum:t,searchOptions:{...Dt,...e.searchOptions||{}},autoSuggestOptions:{...Ot,...e.autoSuggestOptions||{}}},this._index=new lt,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=At,this.addFields(this._options.fields)}add(e){let{extractField:t,stringifyField:n,tokenize:r,processTerm:i,fields:a,idField:o}=this._options,s=t(e,o);if(s==null)throw Error(`MiniSearch: document does not have ID field "${o}"`);if(this._idToShortId.has(s))throw Error(`MiniSearch: duplicate ID ${s}`);let c=this.addDocumentId(s);this.saveStoredFields(c,e);for(let o of a){let a=t(e,o);if(a==null)continue;let s=r(n(a,o),o),l=this._fieldIds[o],u=new Set(s).size;this.addFieldLength(c,l,this._documentCount-1,u);for(let e of s){let t=i(e,o);if(Array.isArray(t))for(let e of t)this.addTerm(l,c,e);else t&&this.addTerm(l,c,t)}}}addAll(e){for(let t of e)this.add(t)}addAllAsync(e,t={}){let{chunkSize:n=10}=t,r={chunk:[],promise:Promise.resolve()},{chunk:i,promise:a}=e.reduce(({chunk:e,promise:t},r,i)=>(e.push(r),(i+1)%n===0?{chunk:[],promise:t.then(()=>new Promise(e=>setTimeout(e,0))).then(()=>this.addAll(e))}:{chunk:e,promise:t}),r);return a.then(()=>this.addAll(i))}remove(e){let{tokenize:t,processTerm:n,extractField:r,stringifyField:i,fields:a,idField:o}=this._options,s=r(e,o);if(s==null)throw Error(`MiniSearch: document does not have ID field "${o}"`);let c=this._idToShortId.get(s);if(c==null)throw Error(`MiniSearch: cannot remove document with ID ${s}: it is not in the index`);for(let o of a){let a=r(e,o);if(a==null)continue;let s=t(i(a,o),o),l=this._fieldIds[o],u=new Set(s).size;this.removeFieldLength(c,l,this._documentCount,u);for(let e of s){let t=n(e,o);if(Array.isArray(t))for(let e of t)this.removeTerm(l,c,e);else t&&this.removeTerm(l,c,t)}}this._storedFields.delete(c),this._documentIds.delete(c),this._idToShortId.delete(s),this._fieldLength.delete(c),--this._documentCount}removeAll(e){if(e)for(let t of e)this.remove(t);else if(arguments.length>0)throw Error(`Expected documents to be present. Omit the argument to remove all documents.`);else this._index=new lt,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){let t=this._idToShortId.get(e);if(t==null)throw 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((e,n)=>{this.removeFieldLength(t,n,this._documentCount,e)}),this._fieldLength.delete(t),--this._documentCount,this._dirtCount+=1,this.maybeAutoVacuum()}maybeAutoVacuum(){if(this._options.autoVacuum===!1)return;let{minDirtFactor:e,minDirtCount:t,batchSize:n,batchWait:r}=this._options.autoVacuum;this.conditionalVacuum({batchSize:n,batchWait:r},{minDirtCount:t,minDirtFactor:e})}discardAll(e){let t=this._options.autoVacuum;try{this._options.autoVacuum=!1;for(let t of e)this.discard(t)}finally{this._options.autoVacuum=t}this.maybeAutoVacuum()}replace(e){let{idField:t,extractField:n}=this._options,r=n(e,t);this.discard(r),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._currentVacuum.then(()=>{let t=this._enqueuedVacuumConditions;return this._enqueuedVacuumConditions=At,this.performVacuuming(e,t)})),this._enqueuedVacuum):this.vacuumConditionsMet(t)===!1?Promise.resolve():(this._currentVacuum=this.performVacuuming(e),this._currentVacuum)}async performVacuuming(e,t){let n=this._dirtCount;if(this.vacuumConditionsMet(t)){let t=e.batchSize||kt.batchSize,r=e.batchWait||kt.batchWait,i=1;for(let[e,n]of this._index){for(let[e,t]of n)for(let[r]of t)this._documentIds.has(r)||(t.size<=1?n.delete(e):t.delete(r));this._index.get(e).size===0&&this._index.delete(e),i%t===0&&await new Promise(e=>setTimeout(e,r)),i+=1}this._dirtCount-=n}await null,this._currentVacuum=this._enqueuedVacuum,this._enqueuedVacuum=null}vacuumConditionsMet(e){if(e==null)return!0;let{minDirtCount:t,minDirtFactor:n}=e;return t=t||jt.minDirtCount,n=n||jt.minDirtFactor,this.dirtCount>=t&&this.dirtFactor>=n}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){let t=this._idToShortId.get(e);if(t!=null)return this._storedFields.get(t)}search(t,n={}){let{searchOptions:r}=this._options,i={...r,...n},a=this.executeQuery(t,n),o=[];for(let[e,{score:t,terms:n,match:r}]of a){let a=n.length||1,s={id:this._documentIds.get(e),score:t*a,terms:Object.keys(r),queryTerms:n,match:r};Object.assign(s,this._storedFields.get(e)),(i.filter==null||i.filter(s))&&o.push(s)}return t===e.wildcard&&i.boostDocument==null||o.sort(Pt),o}autoSuggest(e,t={}){t={...this._options.autoSuggestOptions,...t};let n=new Map;for(let{score:r,terms:i}of this.search(e,t)){let e=i.join(` `),t=n.get(e);t==null?n.set(e,{score:r,terms:i,count:1}):(t.score+=r,t.count+=1)}let r=[];for(let[e,{score:t,terms:i,count:a}]of n)r.push({suggestion:e,terms:i,score:t/a});return r.sort(Pt),r}get documentCount(){return this._documentCount}get termCount(){return this._index.size}static loadJSON(e,t){if(t==null)throw Error(`MiniSearch: loadJSON should be given the same options used when serializing the index`);return this.loadJS(JSON.parse(e),t)}static async loadJSONAsync(e,t){if(t==null)throw 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(Et.hasOwnProperty(e))return xt(Et,e);throw Error(`MiniSearch: unknown option "${e}"`)}static loadJS(e,t){let{index:n,documentIds:r,fieldLength:i,storedFields:a,serializationVersion:o}=e,s=this.instantiateMiniSearch(e,t);s._documentIds=It(r),s._fieldLength=It(i),s._storedFields=It(a);for(let[e,t]of s._documentIds)s._idToShortId.set(t,e);for(let[e,t]of n){let n=new Map;for(let e of Object.keys(t)){let r=t[e];o===1&&(r=r.ds),n.set(parseInt(e,10),It(r))}s._index.set(e,n)}return s}static async loadJSAsync(e,t){let{index:n,documentIds:r,fieldLength:i,storedFields:a,serializationVersion:o}=e,s=this.instantiateMiniSearch(e,t);s._documentIds=await Lt(r),s._fieldLength=await Lt(i),s._storedFields=await Lt(a);for(let[e,t]of s._documentIds)s._idToShortId.set(t,e);let c=0;for(let[e,t]of n){let n=new Map;for(let e of Object.keys(t)){let r=t[e];o===1&&(r=r.ds),n.set(parseInt(e,10),await Lt(r))}++c%1e3==0&&await Rt(0),s._index.set(e,n)}return s}static instantiateMiniSearch(t,n){let{documentCount:r,nextId:i,fieldIds:a,averageFieldLength:o,dirtCount:s,serializationVersion:c}=t;if(c!==1&&c!==2)throw Error(`MiniSearch: cannot deserialize an index created with an incompatible version`);let l=new e(n);return l._documentCount=r,l._nextId=i,l._idToShortId=new Map,l._fieldIds=a,l._avgFieldLength=o,l._dirtCount=s||0,l._index=new lt,l}executeQuery(t,n={}){if(t===e.wildcard)return this.executeWildcardQuery(n);if(typeof t!=`string`){let e={...n,...t,queries:void 0},r=t.queries.map(t=>this.executeQuery(t,e));return this.combineResults(r,e.combineWith)}let{tokenize:r,processTerm:i,searchOptions:a}=this._options,o={tokenize:r,processTerm:i,...a,...n},{tokenize:s,processTerm:c}=o,l=s(t).flatMap(e=>c(e)).filter(e=>!!e).map(Tt(o)).map(e=>this.executeQuerySpec(e,o));return this.combineResults(l,o.combineWith)}executeQuerySpec(e,t){let n={...this._options.searchOptions,...t},r=(n.fields||this._options.fields).reduce((e,t)=>({...e,[t]:xt(n.boost,t)||1}),{}),{boostDocument:i,weights:a,maxFuzzy:o,bm25:s}=n,{fuzzy:c,prefix:l}={...Dt.weights,...a},u=this._index.get(e.term),d=this.termResults(e.term,e.term,1,e.termBoost,u,r,i,s),f,p;if(e.prefix&&(f=this._index.atPrefix(e.term)),e.fuzzy){let t=e.fuzzy===!0?.2:e.fuzzy,n=t<1?Math.min(o,Math.round(e.term.length*t)):t;n&&(p=this._index.fuzzyGet(e.term,n))}if(f)for(let[t,n]of f){let a=t.length-e.term.length;if(!a)continue;p==null||p.delete(t);let o=l*t.length/(t.length+.3*a);this.termResults(e.term,t,o,e.termBoost,n,r,i,s,d)}if(p)for(let t of p.keys()){let[n,a]=p.get(t);if(!a)continue;let o=c*t.length/(t.length+a);this.termResults(e.term,t,o,e.termBoost,n,r,i,s,d)}return d}executeWildcardQuery(e){let t=new Map,n={...this._options.searchOptions,...e};for(let[e,r]of this._documentIds){let i=n.boostDocument?n.boostDocument(r,``,this._storedFields.get(e)):1;t.set(e,{score:i,terms:[],match:{}})}return t}combineResults(e,t=_t){if(e.length===0)return new Map;let n=St[t.toLowerCase()];if(!n)throw Error(`Invalid combination operator: ${t}`);return e.reduce(n)||new Map}toJSON(){let e=[];for(let[t,n]of this._index){let r={};for(let[e,t]of n)r[e]=Object.fromEntries(t);e.push([t,r])}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,n,r,i,a,o,s,c=new Map){if(i==null)return c;for(let l of Object.keys(a)){let u=a[l],d=this._fieldIds[l],f=i.get(d);if(f==null)continue;let p=f.size,m=this._avgFieldLength[d];for(let i of f.keys()){if(!this._documentIds.has(i)){this.removeTerm(d,i,t),--p;continue}let a=o?o(this._documentIds.get(i),t,this._storedFields.get(i)):1;if(!a)continue;let h=f.get(i),g=this._fieldLength.get(i)[d],_=wt(h,p,this._documentCount,g,m,s),v=n*r*u*a*_,y=c.get(i);if(y){y.score+=v,Mt(y.terms,e);let n=xt(y.match,t);n?n.push(l):y.match[t]=[l]}else c.set(i,{score:v,terms:[e],match:{[t]:[l]}})}}return c}addTerm(e,t,n){let r=this._index.fetch(n,Ft),i=r.get(e);if(i==null)i=new Map,i.set(t,1),r.set(e,i);else{let e=i.get(t);i.set(t,(e||0)+1)}}removeTerm(e,t,n){if(!this._index.has(n)){this.warnDocumentChanged(t,e,n);return}let r=this._index.fetch(n,Ft),i=r.get(e);i==null||i.get(t)==null?this.warnDocumentChanged(t,e,n):i.get(t)<=1?i.size<=1?r.delete(e):i.delete(t):i.set(t,i.get(t)-1),this._index.get(n).size===0&&this._index.delete(n)}warnDocumentChanged(e,t,n){for(let r of Object.keys(this._fieldIds))if(this._fieldIds[r]===t){this._options.logger(`warn`,`MiniSearch: document with ID ${this._documentIds.get(e)} has changed before removal: term "${n}" was not present in field "${r}". Removing a document after it has changed can corrupt the index!`,`version_conflict`);return}}addDocumentId(e){let 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;t<e.length;t++)this._fieldIds[e[t]]=t}addFieldLength(e,t,n,r){let i=this._fieldLength.get(e);i==null&&this._fieldLength.set(e,i=[]),i[t]=r;let a=(this._avgFieldLength[t]||0)*n+r;this._avgFieldLength[t]=a/(n+1)}removeFieldLength(e,t,n,r){if(n===1){this._avgFieldLength[t]=0;return}let i=this._avgFieldLength[t]*n-r;this._avgFieldLength[t]=i/(n-1)}saveStoredFields(e,t){let{storeFields:n,extractField:r}=this._options;if(n==null||n.length===0)return;let i=this._storedFields.get(e);i==null&&this._storedFields.set(e,i={});for(let e of n){let n=r(t,e);n!==void 0&&(i[e]=n)}}};bt.wildcard=Symbol(`*`);var xt=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0,St={[_t]:(e,t)=>{for(let n of t.keys()){let r=e.get(n);if(r==null)e.set(n,t.get(n));else{let{score:e,terms:i,match:a}=t.get(n);r.score+=e,r.match=Object.assign(r.match,a),Nt(r.terms,i)}}return e},[vt]:(e,t)=>{let n=new Map;for(let r of t.keys()){let i=e.get(r);if(i==null)continue;let{score:a,terms:o,match:s}=t.get(r);Nt(i.terms,o),n.set(r,{score:i.score+a,terms:i.terms,match:Object.assign(i.match,s)})}return n},[yt]:(e,t)=>{for(let n of t.keys())e.delete(n);return e}},Ct={k:1.2,b:.7,d:.5},wt=(e,t,n,r,i,a)=>{let{k:o,b:s,d:c}=a;return Math.log(1+(n-t+.5)/(t+.5))*(c+e*(o+1)/(e+o*(1-s+s*r/i)))},Tt=e=>(t,n,r)=>({term:t,fuzzy:typeof e.fuzzy==`function`?e.fuzzy(t,n,r):e.fuzzy||!1,prefix:typeof e.prefix==`function`?e.prefix(t,n,r):e.prefix===!0,termBoost:typeof e.boostTerm==`function`?e.boostTerm(t,n,r):1}),Et={idField:`id`,extractField:(e,t)=>e[t],stringifyField:(e,t)=>e.toString(),tokenize:e=>e.split(zt),processTerm:e=>e.toLowerCase(),fields:void 0,searchOptions:void 0,storeFields:[],logger:(e,t)=>{typeof(console==null?void 0:console[e])==`function`&&console[e](t)},autoVacuum:!0},Dt={combineWith:_t,prefix:!1,fuzzy:!1,maxFuzzy:6,boost:{},weights:{fuzzy:.45,prefix:.375},bm25:Ct},Ot={combineWith:vt,prefix:(e,t,n)=>t===n.length-1},kt={batchSize:1e3,batchWait:10},At={minDirtFactor:.1,minDirtCount:20},jt={...kt,...At},Mt=(e,t)=>{e.includes(t)||e.push(t)},Nt=(e,t)=>{for(let n of t)e.includes(n)||e.push(n)},Pt=({score:e},{score:t})=>t-e,Ft=()=>new Map,It=e=>{let t=new Map;for(let n of Object.keys(e))t.set(parseInt(n,10),e[n]);return t},Lt=async e=>{let t=new Map,n=0;for(let r of Object.keys(e))t.set(parseInt(r,10),e[r]),++n%1e3==0&&await Rt(0);return t},Rt=e=>new Promise(t=>setTimeout(t,e)),zt=/[\n\r\p{Z}\p{P}]+/u;function $(e){"@babel/helpers - typeof";return $=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},$(e)}function Bt(e,t){if($(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if($(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Vt(e){var t=Bt(e,`string`);return $(t)==`symbol`?t:t+``}function Ht(e,t,n){return(t=Vt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ut=class{constructor(e=10){Ht(this,`max`,void 0),Ht(this,`cache`,void 0),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()}};function Wt(t){let{localeIndex:n,theme:r}=e();function i(e){var i,a,o,s,c;let l=e.split(`.`),u=(i=r.value.search)==null?void 0:i.options,d=u&&typeof u==`object`,f=d&&((a=u.locales)==null||(a=a[n.value])==null?void 0:a.translations)||null,p=d&&u.translations||null,m=f,h=p,g=t,_=l.pop();for(let e of l){let t=null,n=g==null?void 0:g[e];n&&(t=g=n);let r=h==null?void 0:h[e];r&&(t=h=r);let i=m==null?void 0:m[e];i&&(t=m=i),n||(g=t),r||(h=t),i||(m=t)}return(o=(s=(c=m==null?void 0:m[_])==null?h==null?void 0:h[_]:c)==null?g==null?void 0:g[_]:s)==null?``:o}return i}var Gt=[`aria-owns`],Kt={class:`shell`},qt=[`title`],Jt={class:`search-actions before`},Yt=[`title`],Xt=[`aria-activedescendant`,`aria-controls`,`placeholder`],Zt={class:`search-actions`},Qt=[`role`,`aria-label`],$t=[`title`],en=[`disabled`,`title`],tn=[`id`,`role`,`aria-busy`,`aria-labelledby`],nn=[`id`,`aria-selected`],rn=[`href`,`aria-label`,`onMouseenter`,`onFocusin`,`data-index`],an={class:`titles`},on=[`innerHTML`],sn={class:`title main`},cn=[`innerHTML`],ln={key:0,class:`excerpt-wrapper`},un={key:0,class:`excerpt`,inert:``},dn=[`innerHTML`],fn={key:0,class:`no-results`},pn={class:`search-keyboard-shortcuts`},mn=[`aria-label`],hn=[`aria-label`],gn=[`aria-label`],_n=[`aria-label`],vn=ue(D({__name:`VPLocalSearchBox`,emits:[`close`],setup(n,{emit:r}){var o,_;let ce=r,ue=k(),D=k(),ve=k(_e),A=e(),{activate:ye}=$e(ue,{immediate:!0,allowOutsideClick:!0,clickOutsideDeactivates:!0,escapeDeactivates:!0}),{localeIndex:j,theme:M}=A,N=l(!1),P=l(!1),F=E(()=>N.value||P.value),I=i(async()=>{var e,t,n,r,i,a,o;return h(bt.loadJSON((e=await((t=(n=ve.value)[j.value])==null?void 0:t.call(n)))==null?void 0:e.default,{fields:[`title`,`titles`,`text`],storeFields:[`title`,`titles`],searchOptions:{fuzzy:.2,prefix:!0,boost:{title:4,text:2,titles:1},...((r=M.value.search)==null?void 0:r.provider)===`local`&&((i=M.value.search.options)==null||(i=i.miniSearch)==null?void 0:i.searchOptions)},...((a=M.value.search)==null?void 0:a.provider)===`local`&&((o=M.value.search.options)==null||(o=o.miniSearch)==null?void 0:o.options)}))},void 0,N),L=E(()=>{var e,t;return((e=M.value.search)==null?void 0:e.provider)===`local`&&((t=M.value.search.options)==null?void 0:t.disableQueryPersistence)===!0}).value?l(``):c(`vitepress:local-search-filter`,``),R=u(`vitepress:local-search-detailed-list`,((o=M.value.search)==null?void 0:o.provider)===`local`&&((_=M.value.search.options)==null?void 0:_.detailedView)===!0),be=E(()=>{var e,t;return((e=M.value.search)==null?void 0:e.provider)===`local`&&((t=M.value.search.options)==null?void 0:t.detailedView)===!1});le(()=>{be.value&&(R.value=!1)});let z=k([]),B=l(!1);m(L,()=>{B.value=!1});let xe=i(async()=>{if(D.value)return h(new nt(D.value))},null),V=new Ut(16);y(()=>[I.value,L.value,R.value],async([e,t,n],r,i)=>{var a,o,s;(r==null?void 0:r[0])!==e&&V.clear();let c=!1;if(i(()=>{c=!0,P.value=!1}),!e){z.value=[];return}P.value=!0,z.value=e.search(t).slice(0,16),B.value=!0;let l=n?await Promise.all(z.value.map(e=>Se(e.id))):[];if(c)return;for(let{id:e,mod:t}of l){var u;let n=e.slice(0,e.indexOf(`#`)),r=V.get(n);if(r)continue;r=new Map,V.set(n,r);let i=(u=t.default)==null?t:u;if(i!=null&&i.render||i!=null&&i.setup){let e=fe(i);e.config.warnHandler=()=>{},e.provide(ie,A),Object.defineProperties(e.config.globalProperties,{$frontmatter:{get(){return A.frontmatter.value}},$params:{get(){return A.page.value.params}}});let t=document.createElement(`div`);e.mount(t),t.querySelectorAll(`h1, h2, h3, h4, h5, h6`).forEach(e=>{var t;let n=(t=e.querySelector(`a`))==null?void 0:t.getAttribute(`href`),i=(n==null?void 0:n.startsWith(`#`))&&n.slice(1);if(!i)return;let a=``;for(;(e=e.nextElementSibling)&&!/^h[1-6]$/i.test(e.tagName);)a+=e.outerHTML;r.set(i,a)}),e.unmount()}if(c)return}let d=new Set;if(z.value=z.value.map(e=>{var t;let[n,r]=e.id.split(`#`),i=V.get(n),a=(t=i==null?void 0:i.get(r))==null?``:t;for(let t in e.match)d.add(t);return{...e,text:a}}),await C(),c)return;await new Promise(e=>{var t;(t=xe.value)==null||t.unmark({done:()=>{var t;(t=xe.value)==null||t.markRegExp(je(d),{done:e})}})});let f=(a=(o=ue.value)==null?void 0:o.querySelectorAll(`.result .excerpt`))==null?[]:a;for(let e of f){var p;(p=e.querySelector(`mark[data-markjs="true"]`))==null||p.scrollIntoView({block:`center`})}(s=D.value)==null||(s=s.firstElementChild)==null||s.scrollIntoView({block:`start`}),P.value=!1},{debounce:200,immediate:!0});async function Se(e){let t=de(e.slice(0,e.indexOf(`#`)));try{if(!t)throw Error(`Cannot find file for id: ${e}`);return{id:e,mod:await te(()=>import(((u)=>{if(u.startsWith('/')){return"https://registry.npmmirror.com/@gkd-kit/docs/0.0.1790606285768/files/.vitepress/dist"+u}return u})(t)),[])}}catch(t){return console.error(t),{id:e,mod:{}}}}let Ce=l(),we=E(()=>{var e;return((e=L.value)==null?void 0:e.length)<=0});function Te(e=!0){var t,n;(t=Ce.value)==null||t.focus(),e&&((n=Ce.value)==null||n.select())}S(()=>{Te()});function Ee(e){e.pointerType===`mouse`&&Te()}let H=l(-1),U=l(!0);m(z,e=>{H.value=e.length?0:-1,De()});function De(){C(()=>{let e=document.querySelector(`.result.selected`);e==null||e.scrollIntoView({block:`nearest`})})}function W(e){e.preventDefault(),H.value--,H.value<0&&(H.value=z.value.length-1),U.value=!0,De()}function G(e){e.preventDefault(),H.value++,H.value>=z.value.length&&(H.value=0),U.value=!0,De()}function Oe(e){return e.ctrlKey&&!e.altKey&&!e.metaKey&&!e.shiftKey&&document.documentElement.classList.contains(`mac`)}p(`ArrowUp`,W),p(`ArrowDown`,G),p([`p`,`P`],e=>{Oe(e)&&W(e)}),p([`n`,`N`],e=>{Oe(e)&&G(e)});let ke=me();p(`Enter`,e=>{if(e.isComposing||e.target instanceof HTMLButtonElement&&e.target.type!==`submit`)return;let t=z.value[H.value];if(e.target instanceof HTMLInputElement&&!t){e.preventDefault();return}t&&(ke.go(t.id),ce(`close`))}),p(`Escape`,()=>{ce(`close`)});let K=Wt({button:{buttonText:`Search`},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`}}});S(()=>{window.history.pushState(null,``,null)}),se(`popstate`,e=>{e.preventDefault(),ce(`close`)});let Ae=a(he?document.body:null);S(()=>{C(()=>{Ae.value=!0,C().then(()=>ye())})}),ae(()=>{Ae.value=!1});function q(){L.value=``,C().then(()=>Te(!1))}function je(e){return new RegExp([...e].sort((e,t)=>t.length-e.length).map(e=>`(${ne(e)})`).join(`|`),`gi`)}function Me(e){var t;if(!U.value)return;let n=(t=e.target)==null?void 0:t.closest(`.result`),r=Number.parseInt(n==null?void 0:n.dataset.index);r>=0&&r!==H.value&&(H.value=r),U.value=!1}return(e,n)=>{var r,i,a,o,c;return O(),pe(re,{to:`body`},[w(`div`,{ref_key:`el`,ref:ue,role:`button`,"aria-owns":(r=z.value)!=null&&r.length?`localsearch-list`:void 0,"aria-expanded":`true`,"aria-haspopup":`listbox`,"aria-labelledby":`localsearch-label`,class:`VPLocalSearchBox`},[w(`div`,{class:`backdrop`,onClick:n[0]||(n[0]=t=>e.$emit(`close`))}),w(`div`,Kt,[w(`form`,{class:`search-bar`,onPointerup:n[4]||(n[4]=e=>Ee(e)),onSubmit:n[5]||(n[5]=g(()=>{},[`prevent`]))},[w(`label`,{title:v(K)(`button.buttonText`),id:`localsearch-label`,for:`localsearch-input`},[...n[7]||(n[7]=[w(`span`,{"aria-hidden":`true`,class:`vpi-search search-icon local-search-icon`},null,-1)])],8,qt),w(`div`,Jt,[w(`button`,{class:`back-button`,title:v(K)(`modal.backButtonTitle`),onClick:n[1]||(n[1]=t=>e.$emit(`close`))},[...n[8]||(n[8]=[w(`span`,{class:`vpi-arrow-left local-search-icon`},null,-1)])],8,Yt)]),d(w(`input`,{ref_key:`searchInput`,ref:Ce,"onUpdate:modelValue":n[2]||(n[2]=e=>f(L)?L.value=e:null),"aria-activedescendant":H.value>-1?`localsearch-item-`+H.value:void 0,"aria-autocomplete":`both`,"aria-controls":(i=z.value)!=null&&i.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:v(K)(`button.buttonText`),spellcheck:`false`,type:`search`},null,8,Xt),[[ee,v(L)]]),w(`div`,Zt,[w(`span`,{class:s([`search-loading`,{active:F.value}]),role:F.value?`status`:void 0,"aria-live":`polite`,"aria-label":F.value?`Loading search results`:void 0},null,10,Qt),be.value?oe(``,!0):(O(),x(`button`,{key:0,class:s([`toggle-layout-button`,{"detailed-list":v(R)}]),type:`button`,title:v(K)(`modal.displayDetails`),onClick:n[3]||(n[3]=e=>H.value>-1&&(R.value=!v(R)))},[...n[9]||(n[9]=[w(`span`,{class:`vpi-layout-list local-search-icon`},null,-1)])],10,$t)),w(`button`,{class:`clear-button`,type:`reset`,disabled:we.value,title:v(K)(`modal.resetButtonTitle`),onClick:q},[...n[10]||(n[10]=[w(`span`,{class:`vpi-delete local-search-icon`},null,-1)])],8,en)])],32),w(`ul`,{ref_key:`resultsEl`,ref:D,id:(a=z.value)!=null&&a.length?`localsearch-list`:void 0,role:(o=z.value)!=null&&o.length?`listbox`:void 0,"aria-busy":F.value?`true`:`false`,"aria-labelledby":(c=z.value)!=null&&c.length?`localsearch-label`:void 0,class:`results`,onMousemove:Me},[(O(!0),x(t,null,ge(z.value,(r,i)=>(O(),x(`li`,{key:r.id,id:`localsearch-item-`+i,"aria-selected":H.value===i?`true`:`false`,role:`option`},[w(`a`,{href:r.id,class:s([`result`,{selected:H.value===i}]),"aria-label":[...r.titles,r.title].join(` > `),onMouseenter:e=>!U.value&&(H.value=i),onFocusin:e=>H.value=i,onClick:n[6]||(n[6]=t=>e.$emit(`close`)),"data-index":i},[w(`div`,null,[w(`div`,an,[n[12]||(n[12]=w(`span`,{class:`title-icon`},`#`,-1)),(O(!0),x(t,null,ge(r.titles,(e,t)=>(O(),x(`span`,{key:t,class:`title`},[w(`span`,{class:`text`,innerHTML:e},null,8,on),n[11]||(n[11]=w(`span`,{class:`vpi-chevron-right local-search-icon`},null,-1))]))),128)),w(`span`,sn,[w(`span`,{class:`text`,innerHTML:r.title},null,8,cn)])]),v(R)?(O(),x(`div`,ln,[r.text?(O(),x(`div`,un,[w(`div`,{class:`vp-doc`,innerHTML:r.text},null,8,dn)])):oe(``,!0),n[13]||(n[13]=w(`div`,{class:`excerpt-gradient-bottom`},null,-1)),n[14]||(n[14]=w(`div`,{class:`excerpt-gradient-top`},null,-1))])):oe(``,!0)])],42,rn)],8,nn))),128)),v(L)&&!z.value.length&&B.value?(O(),x(`li`,fn,[T(b(v(K)(`modal.noResultsText`))+` "`,1),w(`strong`,null,b(v(L)),1),n[15]||(n[15]=T(`" `,-1))])):oe(``,!0)],40,tn),w(`div`,pn,[w(`span`,null,[w(`kbd`,{"aria-label":v(K)(`modal.footer.navigateUpKeyAriaLabel`)},[...n[16]||(n[16]=[w(`span`,{class:`vpi-arrow-up navigate-icon`},null,-1)])],8,mn),w(`kbd`,{"aria-label":v(K)(`modal.footer.navigateDownKeyAriaLabel`)},[...n[17]||(n[17]=[w(`span`,{class:`vpi-arrow-down navigate-icon`},null,-1)])],8,hn),T(` `+b(v(K)(`modal.footer.navigateText`)),1)]),w(`span`,null,[w(`kbd`,{"aria-label":v(K)(`modal.footer.selectKeyAriaLabel`)},[...n[18]||(n[18]=[w(`span`,{class:`vpi-corner-down-left navigate-icon`},null,-1)])],8,gn),T(` `+b(v(K)(`modal.footer.selectText`)),1)]),w(`span`,null,[w(`kbd`,{"aria-label":v(K)(`modal.footer.closeKeyAriaLabel`)},`esc`,8,_n),T(` `+b(v(K)(`modal.footer.closeText`)),1)])])])],8,Gt)])}}}),[[`__scopeId`,`data-v-f42494b4`]]);export{vn as default};
@@ -1 +1 @@
1
- window.__VP_HASH_MAP__=JSON.parse("{\"api_index.md\":\"CjQzKled\",\"api_interfaces_rawapp.md\":\"BpzQ9G66\",\"api_interfaces_rawappgroup.md\":\"Ck2PMmew\",\"api_interfaces_rawapprule.md\":\"svCCf5YM\",\"api_interfaces_rawappruleprops.md\":\"Djcgq66H\",\"api_interfaces_rawcategory.md\":\"DHBN1t1h\",\"api_interfaces_rawcommonprops.md\":\"BqWR20Ki\",\"api_interfaces_rawglobalapp.md\":\"nzd5SVi6\",\"api_interfaces_rawglobalgroup.md\":\"BX5E3cY2\",\"api_interfaces_rawglobalrule.md\":\"BBIb-pml\",\"api_interfaces_rawglobalruleprops.md\":\"CnnmlY17\",\"api_interfaces_rawgroupprops.md\":\"b_Emqo9z\",\"api_interfaces_rawruleprops.md\":\"Dub6x9Ex\",\"api_interfaces_rawsubscription.md\":\"DGEaq3vF\",\"api_type-aliases_iarray.md\":\"CaN7hADu\",\"api_type-aliases_integer.md\":\"Dm63ynqV\",\"api_type-aliases_integermatcher.md\":\"BE39eIyQ\",\"api_type-aliases_position.md\":\"CieLiaPU\",\"api_type-aliases_stringmatcher.md\":\"DMiH2Jb8\",\"api_type-aliases_swipearg.md\":\"CJ5jBhMZ\",\"guide_example.md\":\"CMTPTjAm\",\"guide_external.md\":\"DmVQ631v\",\"guide_faq.md\":\"DhP4fTGV\",\"guide_index.md\":\"C5ka7c_u\",\"guide_node.md\":\"D4tW4j5e\",\"guide_optimize.md\":\"qubQwYUP\",\"guide_privacy.md\":\"C7-DmlR2\",\"guide_selector.md\":\"CkSVzAxS\",\"guide_snapshot.md\":\"D7FX3-9p\",\"guide_sponsor.md\":\"Dh2tocCw\",\"guide_subscription.md\":\"CBVeJKI6\",\"guide_terms.md\":\"D2_f_fIZ\",\"guide_what-is-gkd.md\":\"RO90vY_C\",\"index.md\":\"CQQ0E8m-\"}");window.__VP_SITE_DATA__=JSON.parse("{\"lang\":\"en-US\",\"dir\":\"ltr\",\"title\":\"GKD\",\"description\":\"自定义屏幕点击应用\",\"base\":\"/\",\"head\":[],\"router\":{\"prefetchLinks\":true},\"appearance\":true,\"themeConfig\":{\"logo\":\"https://registry.npmmirror.com/@gkd-kit/docs/0.0.1706371840771/files/.vitepress/dist/logo.svg\",\"lastUpdated\":{\"text\":\"最后更新于\"},\"returnToTopLabel\":\"回到顶部\",\"darkModeSwitchLabel\":\"深色主题\",\"sidebarMenuLabel\":\"菜单\",\"docFooter\":{\"prev\":\"上一页\",\"next\":\"下一页\"},\"outline\":{\"level\":[2,3],\"label\":\"页面导航\"},\"nav\":[{\"text\":\"指引\",\"link\":\"/guide/\",\"activeMatch\":\"/guide/\"},{\"text\":\"API\",\"link\":\"/api/\",\"activeMatch\":\"/api/\"},{\"text\":\"审查工具\",\"link\":\"https://i.gkd.li\"},{\"text\":\"讨论交流\",\"link\":\"https://github.com/orgs/gkd-kit/discussions\"}],\"sidebar\":{\"/guide/\":[{\"text\":\"指引\",\"items\":[{\"text\":\"什么是 GKD?\",\"link\":\"/guide/what-is-gkd\"},{\"text\":\"开始使用\",\"link\":\"/guide/\"},{\"text\":\"快照审查\",\"link\":\"/guide/snapshot\"},{\"text\":\"订阅规则\",\"link\":\"/guide/subscription\"},{\"text\":\"外部交互\",\"link\":\"/guide/external\"},{\"text\":\"常见问题\",\"link\":\"/guide/faq\"},{\"text\":\"捐赠支持\",\"link\":\"/guide/sponsor\"}]},{\"text\":\"选择器\",\"items\":[{\"text\":\"语法介绍\",\"link\":\"/guide/selector\"},{\"text\":\"属性方法\",\"link\":\"/guide/node\"},{\"text\":\"选择示例\",\"link\":\"/guide/example\"},{\"text\":\"查询优化\",\"link\":\"/guide/optimize\"}]},{\"text\":\"协议政策\",\"items\":[{\"text\":\"使用协议\",\"link\":\"/guide/terms\"},{\"text\":\"隐私政策\",\"link\":\"/guide/privacy\"}]}],\"/api/\":[{\"link\":\"/api/\",\"text\":\"API 参考\"},{\"text\":\"接口\",\"items\":[{\"text\":\"RawSubscription\",\"link\":\"/api/interfaces/RawSubscription\"},{\"text\":\"RawApp\",\"link\":\"/api/interfaces/RawApp\"},{\"text\":\"RawGlobalGroup\",\"link\":\"/api/interfaces/RawGlobalGroup\"},{\"text\":\"RawCategory\",\"link\":\"/api/interfaces/RawCategory\"},{\"text\":\"RawAppRule\",\"link\":\"/api/interfaces/RawAppRule\"},{\"text\":\"RawAppGroup\",\"link\":\"/api/interfaces/RawAppGroup\"},{\"text\":\"RawGlobalRule\",\"link\":\"/api/interfaces/RawGlobalRule\"},{\"text\":\"RawGlobalApp\",\"link\":\"/api/interfaces/RawGlobalApp\"},{\"text\":\"RawCommonProps\",\"link\":\"/api/interfaces/RawCommonProps\"},{\"text\":\"RawRuleProps\",\"link\":\"/api/interfaces/RawRuleProps\"},{\"text\":\"RawGroupProps\",\"link\":\"/api/interfaces/RawGroupProps\"},{\"text\":\"RawAppRuleProps\",\"link\":\"/api/interfaces/RawAppRuleProps\"},{\"text\":\"RawGlobalRuleProps\",\"link\":\"/api/interfaces/RawGlobalRuleProps\"}]},{\"text\":\"类型别名\",\"items\":[{\"text\":\"IntegerMatcher\",\"link\":\"/api/type-aliases/IntegerMatcher\"},{\"text\":\"StringMatcher\",\"link\":\"/api/type-aliases/StringMatcher\"},{\"text\":\"SwipeArg\",\"link\":\"/api/type-aliases/SwipeArg\"},{\"text\":\"Position\",\"link\":\"/api/type-aliases/Position\"},{\"text\":\"IArray\",\"link\":\"/api/type-aliases/IArray\"},{\"text\":\"Integer\",\"link\":\"/api/type-aliases/Integer\"}]}]},\"editLink\":{\"pattern\":\"https://github.com/gkd-kit/docs/edit/main/docs/:path\",\"text\":\"为此页提供修改建议\"},\"search\":{\"provider\":\"local\",\"options\":{}},\"socialLinks\":[{\"icon\":\"github\",\"link\":\"https://github.com/gkd-kit\"}],\"footer\":{\"message\":\"Released under the GPL-v3 License.\",\"copyright\":\"Copyright © 2026 GKD. All rights reserved\"}},\"locales\":{},\"cleanUrls\":true,\"additionalConfig\":{}}");
1
+ window.__VP_HASH_MAP__=JSON.parse("{\"api_index.md\":\"CjQzKled\",\"api_interfaces_rawapp.md\":\"BpzQ9G66\",\"api_interfaces_rawappgroup.md\":\"Ck2PMmew\",\"api_interfaces_rawapprule.md\":\"svCCf5YM\",\"api_interfaces_rawappruleprops.md\":\"Djcgq66H\",\"api_interfaces_rawcategory.md\":\"DHBN1t1h\",\"api_interfaces_rawcommonprops.md\":\"BqWR20Ki\",\"api_interfaces_rawglobalapp.md\":\"nzd5SVi6\",\"api_interfaces_rawglobalgroup.md\":\"BX5E3cY2\",\"api_interfaces_rawglobalrule.md\":\"BBIb-pml\",\"api_interfaces_rawglobalruleprops.md\":\"CnnmlY17\",\"api_interfaces_rawgroupprops.md\":\"b_Emqo9z\",\"api_interfaces_rawruleprops.md\":\"Dub6x9Ex\",\"api_interfaces_rawsubscription.md\":\"DGEaq3vF\",\"api_type-aliases_iarray.md\":\"CaN7hADu\",\"api_type-aliases_integer.md\":\"Dm63ynqV\",\"api_type-aliases_integermatcher.md\":\"BE39eIyQ\",\"api_type-aliases_position.md\":\"CieLiaPU\",\"api_type-aliases_stringmatcher.md\":\"DMiH2Jb8\",\"api_type-aliases_swipearg.md\":\"CJ5jBhMZ\",\"guide_example.md\":\"oPuv_Cof\",\"guide_external.md\":\"DyCsFv-m\",\"guide_faq.md\":\"orCoxKxn\",\"guide_index.md\":\"BS9peG_A\",\"guide_node.md\":\"pZnyBFi2\",\"guide_optimize.md\":\"CdJ-rUYL\",\"guide_privacy.md\":\"BIeL0xu0\",\"guide_selector.md\":\"_Aq2VZEU\",\"guide_snapshot.md\":\"BOVPKyIu\",\"guide_sponsor.md\":\"-vpZ9DIw\",\"guide_subscription.md\":\"BtA823EC\",\"guide_terms.md\":\"Dc4DFFM_\",\"guide_what-is-gkd.md\":\"CF7zUXZo\",\"index.md\":\"BztRtE2s\"}");window.__VP_SITE_DATA__=JSON.parse("{\"lang\":\"en-US\",\"dir\":\"ltr\",\"title\":\"GKD\",\"description\":\"自定义屏幕点击应用\",\"base\":\"/\",\"head\":[],\"router\":{\"prefetchLinks\":true},\"appearance\":true,\"themeConfig\":{\"logo\":\"https://registry.npmmirror.com/@gkd-kit/docs/0.0.1706371840771/files/.vitepress/dist/logo.svg\",\"lastUpdated\":{\"text\":\"最后更新于\"},\"returnToTopLabel\":\"回到顶部\",\"darkModeSwitchLabel\":\"深色主题\",\"sidebarMenuLabel\":\"菜单\",\"docFooter\":{\"prev\":\"上一页\",\"next\":\"下一页\"},\"outline\":{\"level\":[2,3],\"label\":\"页面导航\"},\"nav\":[{\"text\":\"指引\",\"link\":\"/guide/\",\"activeMatch\":\"/guide/\"},{\"text\":\"API\",\"link\":\"/api/\",\"activeMatch\":\"/api/\"},{\"text\":\"审查工具\",\"link\":\"https://i.gkd.li\"},{\"text\":\"讨论交流\",\"link\":\"https://github.com/orgs/gkd-kit/discussions\"}],\"sidebar\":{\"/guide/\":[{\"text\":\"指引\",\"items\":[{\"text\":\"什么是 GKD?\",\"link\":\"/guide/what-is-gkd\"},{\"text\":\"开始使用\",\"link\":\"/guide/\"},{\"text\":\"快照审查\",\"link\":\"/guide/snapshot\"},{\"text\":\"订阅规则\",\"link\":\"/guide/subscription\"},{\"text\":\"外部交互\",\"link\":\"/guide/external\"},{\"text\":\"常见问题\",\"link\":\"/guide/faq\"},{\"text\":\"捐赠支持\",\"link\":\"/guide/sponsor\"}]},{\"text\":\"选择器\",\"items\":[{\"text\":\"语法介绍\",\"link\":\"/guide/selector\"},{\"text\":\"属性方法\",\"link\":\"/guide/node\"},{\"text\":\"选择示例\",\"link\":\"/guide/example\"},{\"text\":\"查询优化\",\"link\":\"/guide/optimize\"}]},{\"text\":\"协议政策\",\"items\":[{\"text\":\"使用协议\",\"link\":\"/guide/terms\"},{\"text\":\"隐私政策\",\"link\":\"/guide/privacy\"}]}],\"/api/\":[{\"link\":\"/api/\",\"text\":\"API 参考\"},{\"text\":\"接口\",\"items\":[{\"text\":\"RawSubscription\",\"link\":\"/api/interfaces/RawSubscription\"},{\"text\":\"RawApp\",\"link\":\"/api/interfaces/RawApp\"},{\"text\":\"RawGlobalGroup\",\"link\":\"/api/interfaces/RawGlobalGroup\"},{\"text\":\"RawCategory\",\"link\":\"/api/interfaces/RawCategory\"},{\"text\":\"RawAppRule\",\"link\":\"/api/interfaces/RawAppRule\"},{\"text\":\"RawAppGroup\",\"link\":\"/api/interfaces/RawAppGroup\"},{\"text\":\"RawGlobalRule\",\"link\":\"/api/interfaces/RawGlobalRule\"},{\"text\":\"RawGlobalApp\",\"link\":\"/api/interfaces/RawGlobalApp\"},{\"text\":\"RawCommonProps\",\"link\":\"/api/interfaces/RawCommonProps\"},{\"text\":\"RawRuleProps\",\"link\":\"/api/interfaces/RawRuleProps\"},{\"text\":\"RawGroupProps\",\"link\":\"/api/interfaces/RawGroupProps\"},{\"text\":\"RawAppRuleProps\",\"link\":\"/api/interfaces/RawAppRuleProps\"},{\"text\":\"RawGlobalRuleProps\",\"link\":\"/api/interfaces/RawGlobalRuleProps\"}]},{\"text\":\"类型别名\",\"items\":[{\"text\":\"IntegerMatcher\",\"link\":\"/api/type-aliases/IntegerMatcher\"},{\"text\":\"StringMatcher\",\"link\":\"/api/type-aliases/StringMatcher\"},{\"text\":\"SwipeArg\",\"link\":\"/api/type-aliases/SwipeArg\"},{\"text\":\"Position\",\"link\":\"/api/type-aliases/Position\"},{\"text\":\"IArray\",\"link\":\"/api/type-aliases/IArray\"},{\"text\":\"Integer\",\"link\":\"/api/type-aliases/Integer\"}]}]},\"editLink\":{\"pattern\":\"https://github.com/gkd-kit/docs/edit/main/docs/:path\",\"text\":\"为此页提供修改建议\"},\"search\":{\"provider\":\"local\",\"options\":{}},\"socialLinks\":[{\"icon\":\"github\",\"link\":\"https://github.com/gkd-kit\"}],\"footer\":{\"message\":\"Released under the GPL-v3 License.\",\"copyright\":\"Copyright © 2026 GKD. All rights reserved\"}},\"locales\":{},\"cleanUrls\":true,\"additionalConfig\":{}}");
@@ -0,0 +1 @@
1
+ import{n as e}from"./rolldown-runtime.CbXtAM7H.js";import{$ as t,A as n,At as r,C as i,Ct as a,Dt as o,E as s,Et as c,F as l,Ft as u,Ht as d,It as f,K as p,L as m,Lt as h,Mt as g,N as _,O as v,Ot as y,P as b,Q as x,R as ee,Rt as S,S as C,St as w,T as te,Tt as T,U as E,Ut as D,Vt as O,Wt as k,X as ne,Y as re,Z as ie,_t as ae,a as oe,at as A,bt as se,ct as j,dt as M,et as ce,f as le,ft as ue,gt as N,ht as de,it as P,j as F,jt as I,kt as fe,l as L,lt as pe,m as me,mt as R,nt as z,o as B,pt as V,rt as H,st as U,tt as W,u as he,ut as G,v as ge,vt as _e,w as ve,wt as K,x as ye,xt as q,y as be,yt as J,z as xe,zt as Y}from"./framework.bo_0njjP.js";var Se=G({__name:`VPBadge`,props:{text:{},type:{default:`tip`}},setup(e){return(t,n)=>(J(),A(`span`,{class:d([`VPBadge`,e.type])},[w(t.$slots,`default`,{},()=>[U(k(e.text),1)])],2))}}),Ce={key:0,class:`VPBackdrop`},we=B(G({__name:`VPBackdrop`,props:{show:{type:Boolean}},setup(e){return(t,n)=>(J(),H(p,{name:`fade`},{default:I(()=>[e.show?(J(),A(`div`,Ce)):P(``,!0)]),_:1}))}}),[[`__scopeId`,`data-v-1fe35ec1`]]),X=ge;function Te(e,t){let n,r=!1;return()=>{n&&clearTimeout(n),r?n=setTimeout(e,t):(e(),(r=!0)&&setTimeout(()=>r=!1,t))}}function Ee(e){return e.startsWith(`/`)?e:`/${e}`}function De(e,t,n){return n===void 0?!!e&&i(e)||t===`_blank`:n}function Oe(e){let{pathname:t,search:n,hash:r,protocol:a}=new URL(e,`http://a.com`);if(i(e)||e.startsWith(`#`)||!a.startsWith(`http`)||!s(t))return e;let{site:o}=X(),c=t.endsWith(`/`)||t.endsWith(`.html`)?e:e.replace(/(?:(^\.+)\/)?.*$/,`$1${t.replace(/(\.md)?$/,o.value.cleanUrls?``:`.html`)}${n}${r}`);return me(c)}function ke(e,t){let n=new Set;return e.filter(e=>{let r=t(e);return!n.has(r)&&n.add(r)})}function Ae({linkToCorrespondingPage:e=!1}={}){let t=X(),n=L(),{site:r,localeIndex:i}=t,a=W(()=>{var e,t;return{label:(e=r.value.locales[i.value])==null?void 0:e.label,link:((t=r.value.locales[i.value])==null?void 0:t.link)||(i.value===`root`?`/`:`/${i.value}/`)}});return{currentLang:a,localeLinks:W(()=>Object.entries(r.value.locales).flatMap(([r,i])=>a.value.label===i.label?[]:{text:i.label,link:je(t,n,{targetLocale:r,targetLocaleLink:i.link||(r===`root`?`/`:`/${r}/`),currentLocaleLink:a.value.link,linkToCorrespondingPage:e}),lang:i.lang,dir:i.dir}))}}function je(e,t,{targetLocale:n,targetLocaleLink:r,currentLocaleLink:i,linkToCorrespondingPage:a}){let{site:o,theme:s}=e,c=s.value.i18nRouting;return a&&typeof c==`function`?c(e,t,n):Me(r,c!==!1&&a,t.data.relativePath.slice(i.length-1),!o.value.cleanUrls)+t.query+t.hash}function Me(e,t,n,r){return t?e.replace(/\/$/,``)+Ee(n.replace(/(^|\/)index\.md$/,`$1`).replace(/\.md$/,r?`.html`:``)):e}var Ne={class:`NotFound`},Pe={class:`code`},Fe={class:`title`},Ie={class:`quote`},Le={class:`action`},Re=[`href`,`aria-label`],ze=B(G({__name:`NotFound`,setup(e){let{theme:t}=X(),{currentLang:n}=Ae();return(e,r)=>{var i,a,o,s,c,l,u,d,f,p,m,h;return J(),A(`div`,Ne,[z(`p`,Pe,k((i=(a=O(t).notFound)==null?void 0:a.code)==null?`404`:i),1),z(`h1`,Fe,k((o=(s=O(t).notFound)==null?void 0:s.title)==null?`PAGE NOT FOUND`:o),1),r[0]||(r[0]=z(`div`,{class:`divider`},null,-1)),z(`blockquote`,Ie,k((c=(l=O(t).notFound)==null?void 0:l.quote)==null?`But if you don't change your direction, and if you keep looking, you may end up where you are heading.`:c),1),z(`div`,Le,[z(`a`,{class:`link`,href:O(me)((u=(d=O(t).notFound)==null?void 0:d.link)==null?O(n).link:u),"aria-label":(f=(p=O(t).notFound)==null?void 0:p.linkLabel)==null?`go to home`:f},k((m=(h=O(t).notFound)==null?void 0:h.linkText)==null?`Take me home`:m),9,Re)])])}}}),[[`__scopeId`,`data-v-8ef36f60`]]);function Be(e,t){if(Array.isArray(e))return We(e);if(e==null)return[];t=Ee(t);let n=Object.keys(e).sort((e,t)=>t.split(`/`).length-e.split(`/`).length).find(e=>t.startsWith(Ee(e))),r=n?e[n]:[];return Array.isArray(r)?We(r):We(r.items,r.base)}function Ve(e){let t=[],n=0;for(let r in e){let i=e[r];if(i.items){n=t.push(i);continue}t[n]||t.push({items:[]}),t[n].items.push(i)}return t}function He(e){let t=[];function n(e){for(let r of e)r.text&&r.link&&t.push({text:r.text,link:r.link,docFooterText:r.docFooterText,rel:r.rel,target:r.target}),r.items&&n(r.items)}return n(e),t}function Ue(e,t,n){return Array.isArray(n)?n.some(n=>Ue(e,t,n)):n.link&&C(e,t,n.link)?!0:n.items?Ue(e,t,n.items):!1}function We(e,t){return[...e].map(e=>{let n={...e},r=n.base||t;return r&&n.link&&!i(n.link)&&(n.link=r+n.link.replace(/^\//,r.endsWith(`/`)?``:`/`)),n.items&&(n.items=We(n.items,r)),n})}function Ge(){let{hasSidebar:e}=Z(),t=_(`(min-width: 960px)`),n=_(`(min-width: 1280px)`);return{isAsideEnabled:W(()=>!n.value&&!t.value?!1:e.value?n.value:t.value)}}var Ke=/\b(?:VPBadge|header-anchor|footnote-ref|ignore-header)\b/,qe=[];function Je(e){return typeof e.outline==`object`&&!Array.isArray(e.outline)&&e.outline.label||`On this page`}function Ye(e){return Ze([...document.querySelectorAll(`.VPDoc h1, .VPDoc h2, .VPDoc h3, .VPDoc h4, .VPDoc h5, .VPDoc h6`)].filter(e=>e.id&&e.hasChildNodes()).map(e=>{let t=Number(e.tagName[1]);return{element:e,title:Xe(e),link:`#`+e.id,level:t}}),e)}function Xe(e){let t=``;for(let n of e.childNodes)if(n.nodeType===1){if(Ke.test(n.className))continue;t+=n.textContent}else n.nodeType===3&&(t+=n.textContent);return t.trim()}function Ze(e,t){if(t===!1)return[];let n=(typeof t==`object`&&!Array.isArray(t)?t.level:t)||2,[r,i]=typeof n==`number`?[n,n]:n===`deep`?[2,6]:n;return et(e,r,i)}function Qe(e,t){let{isAsideEnabled:n}=Ge(),r=Te(s,100),i=null,a=!1;N(()=>{requestAnimationFrame(s),window.addEventListener(`scroll`,r),e.value.addEventListener(`click`,o)}),_e(()=>{c(location.hash)}),ae(()=>{window.removeEventListener(`scroll`,r)});function o(e){var t;if(!n.value)return;let r=e.target instanceof Element?(t=e.target.closest(`a`))==null?void 0:t.hash:null;r&&(a=!0,c(r))}function s(){if(!n.value)return;if(a){a=!1;return}let e=window.scrollY,t=window.innerHeight,r=document.body.offsetHeight,i=Math.abs(e+t-r)<1,o=qe.map(({element:e,link:t})=>({link:t,top:$e(e),scrollMarginTop:Number.parseFloat(getComputedStyle(e).scrollMarginTop)||0})).filter(({top:e})=>!Number.isNaN(e)).sort((e,t)=>e.top-t.top);if(!o.length){c(null);return}if(e<1){c(null);return}if(i){c(o[o.length-1].link);return}let s=null;for(let{link:t,top:n,scrollMarginTop:r}of o){if(n>e+r+4)break;s=t}c(s)}function c(n){i&&i.classList.remove(`active`),i=n==null?null:e.value.querySelector(`a[href$="${decodeURIComponent(n)}"]`);let r=i;r?(r.classList.add(`active`),t.value.style.top=r.offsetTop+39+`px`,t.value.style.opacity=`1`):(t.value.style.top=`33px`,t.value.style.opacity=`0`)}}function $e(e){let t=0;for(;e!==document.body;){if(e===null)return NaN;t+=e.offsetTop,e=e.offsetParent}return t}function et(e,t,n){qe.length=0;let r=[],i=[];return e.forEach(e=>{let a={...e,children:[]},o=i[i.length-1];for(;o&&o.level>=a.level;)i.pop(),o=i[i.length-1];if(a.element.classList.contains(`ignore-header`)||o&&`shouldIgnore`in o){i.push({level:a.level,shouldIgnore:!0});return}a.level>n||a.level<t||(qe.push({element:a.element,link:a.link}),o?o.children.push(a):r.push(a),i.push(a))}),r}var tt=f(!1);function nt(e){let t;fe(()=>{t=tt.value?document.activeElement:void 0}),N(()=>{window.addEventListener(`keyup`,n)}),ae(()=>{window.removeEventListener(`keyup`,n)});function n(n){n.key===`Escape`&&tt.value&&(e(),t==null||t.focus())}}function rt(){function e(){tt.value=!0}function t(){tt.value=!1}function n(){tt.value?t():e()}return{isOpen:tt,open:e,close:t,toggle:n}}function it(e){let t=L(),n=f(!1),r=W(()=>e.value.collapsed!=null),i=W(()=>!!e.value.link),a=f(!1),o=f(!1);function s(){if(e.value.link?a.value=C(t.data.relativePath,t.hash,e.value.link):a.value=!1,a.value){o.value=!0,R(()=>n.value=!1);return}if(!e.value.items){o.value=!1;return}o.value=Ue(t.data.relativePath,t.hash,e.value.items),o.value&&R(()=>n.value=!1)}y([e,t],s),N(s);let c=W(()=>!!(e.value.items&&e.value.items.length));fe(()=>{n.value=!!(r.value&&e.value.collapsed)});function l(){r.value&&(n.value=!n.value)}return{collapsed:n,collapsible:r,isLink:i,isActiveLink:a,hasActiveLink:o,hasChildren:c,toggle:l}}var at=Y([]),ot=Y([]),st=Y(!1);function Z(){let{frontmatter:e,theme:t}=X(),n=W(()=>{var t;return!!((t=e.value.isHome)==null?e.value.layout===`home`:t)}),r=W(()=>e.value.sidebar!==!1&&ot.value.length>0&&!n.value),i=W(()=>r.value&&st.value),a=W(()=>r.value?Ve(ot.value):[]),o=W(()=>n.value?!1:e.value.aside==null?t.value.aside!==!1:!!e.value.aside),s=W(()=>o.value?e.value.aside==null?t.value.aside===`left`:e.value.aside===`left`:!1),c=W(()=>at.value.length>0);return{isHome:n,sidebar:S(ot),sidebarGroups:a,hasSidebar:r,isSidebarEnabled:i,hasAside:o,leftAside:s,headers:S(at),hasLocalNav:c}}function ct({closeSidebar:e}){let{theme:t,page:n,frontmatter:r}=X();y(()=>[n.value.relativePath,t.value.sidebar],([e,t])=>{let n=t?Be(t,e):[];JSON.stringify(n)!==JSON.stringify(ot.value)&&(ot.value=n)},{immediate:!0,deep:!0,flush:`sync`}),le(()=>{var e;at.value=Ye((e=r.value.outline)==null?t.value.outline:e)}),ye&&(st.value=window.innerWidth>=960,window.addEventListener(`resize`,()=>{st.value=window.innerWidth>=960},{passive:!0}));let i=L();y(()=>i.path,e),y(st,e),nt(e)}var lt=Symbol(`layout-info`),ut={class:`VPDocAsideCarbonAds`},dt=G({__name:`VPDocAsideCarbonAds`,props:{carbonAds:{}},setup(e){let t=()=>null;return(n,r)=>(J(),A(`div`,ut,[j(O(t),{"carbon-ads":e.carbonAds},null,8,[`carbon-ads`])]))}}),ft=[`href`,`title`],pt=B(G({__name:`VPDocOutlineItem`,props:{headers:{},root:{type:Boolean}},setup(e){return(n,r)=>{let i=a(`VPDocOutlineItem`,!0);return J(),A(`ul`,{class:d([`VPDocOutlineItem`,e.root?`root`:`nested`])},[(J(!0),A(t,null,q(e.headers,({children:e,link:t,title:n})=>(J(),A(`li`,null,[z(`a`,{class:`outline-link`,href:t,title:n},k(n),9,ft),e!=null&&e.length?(J(),H(i,{key:0,headers:e},null,8,[`headers`])):P(``,!0)]))),256))],2)}}}),[[`__scopeId`,`data-v-6f4e6c90`]]),mt={class:`content`},ht={"aria-level":`2`,class:`outline-title`,id:`doc-outline-aria-label`,role:`heading`},gt=B(G({__name:`VPDocAsideOutline`,setup(e){let{theme:t}=X(),n=f(),r=f(),{headers:i,hasLocalNav:a}=Z();return Qe(n,r),(e,o)=>(J(),A(`nav`,{"aria-labelledby":`doc-outline-aria-label`,class:d([`VPDocAsideOutline`,{"has-outline":O(a)}]),ref_key:`container`,ref:n},[z(`div`,mt,[z(`div`,{class:`outline-marker`,ref_key:`marker`,ref:r},null,512),z(`div`,ht,k(O(Je)(O(t))),1),j(pt,{headers:O(i),root:!0},null,8,[`headers`])])],2))}}),[[`__scopeId`,`data-v-a3e9bb7f`]]),_t={class:`VPDocAside`},vt=B(G({__name:`VPDocAside`,setup(e){let{theme:t}=X();return(e,n)=>(J(),A(`div`,_t,[w(e.$slots,`aside-top`,{},void 0,!0),w(e.$slots,`aside-outline-before`,{},void 0,!0),j(gt),w(e.$slots,`aside-outline-after`,{},void 0,!0),n[0]||(n[0]=z(`div`,{class:`spacer`},null,-1)),w(e.$slots,`aside-ads-before`,{},void 0,!0),O(t).carbonAds?(J(),H(dt,{key:0,"carbon-ads":O(t).carbonAds},null,8,[`carbon-ads`])):P(``,!0),w(e.$slots,`aside-ads-after`,{},void 0,!0),w(e.$slots,`aside-bottom`,{},void 0,!0)]))}}),[[`__scopeId`,`data-v-4a3e28a8`]]);function yt(){let{theme:e,page:t}=X();return W(()=>{let{text:n=`Edit this page`,pattern:r=``}=e.value.editLink||{},i;return i=typeof r==`function`?r(t.value):r.replace(/:path/g,t.value.filePath),{url:i,text:n}})}function bt(){let{theme:e,page:t,frontmatter:n}=X();return W(()=>{var r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,ee,S,w;let T=ke(He(Be(e.value.sidebar,t.value.relativePath)),e=>te(e.link)),E=T.findIndex(e=>C(t.value.relativePath,``,e.link,!1,!0)),D=((r=e.value.docFooter)==null?void 0:r.prev)===!1&&!n.value.prev||n.value.prev===!1,O=((i=e.value.docFooter)==null?void 0:i.next)===!1&&!n.value.next||n.value.next===!1;return{prev:D?void 0:{text:(a=(o=typeof n.value.prev==`string`?n.value.prev:typeof n.value.prev==`object`?n.value.prev.text:void 0)==null?(s=T[E-1])==null?void 0:s.docFooterText:o)==null?(c=T[E-1])==null?void 0:c.text:a,link:(l=typeof n.value.prev==`object`?n.value.prev.link:void 0)==null?(u=T[E-1])==null?void 0:u.link:l,target:(d=typeof n.value.prev==`object`?n.value.prev.target:void 0)==null?(f=T[E-1])==null?void 0:f.target:d,rel:(p=typeof n.value.prev==`object`?n.value.prev.rel:void 0)==null?(m=T[E-1])==null?void 0:m.rel:p},next:O?void 0:{text:(h=(g=typeof n.value.next==`string`?n.value.next:typeof n.value.next==`object`?n.value.next.text:void 0)==null?(_=T[E+1])==null?void 0:_.docFooterText:g)==null?(v=T[E+1])==null?void 0:v.text:h,link:(y=typeof n.value.next==`object`?n.value.next.link:void 0)==null?(b=T[E+1])==null?void 0:b.link:y,target:(x=typeof n.value.next==`object`?n.value.next.target:void 0)==null?(ee=T[E+1])==null?void 0:ee.target:x,rel:(S=typeof n.value.next==`object`?n.value.next.rel:void 0)==null?(w=T[E+1])==null?void 0:w.rel:S}}})}var xt={class:`VPLastUpdated`},St=[`datetime`],Ct=B(G({__name:`VPDocFooterLastUpdated`,setup(e){let{theme:t,page:n,lang:r}=X(),{language:i}=b(),a=o(`timeRef`),s=W(()=>new Date(n.value.lastUpdated)),c=W(()=>s.value.toISOString()),l=Y(``);return N(()=>{fe(()=>{var e,n,o;let c=(e=t.value.lastUpdated)!=null&&(e=e.formatOptions)!=null&&e.forceLocale?r.value:i.value;if(l.value=new Intl.DateTimeFormat(c,(n=(o=t.value.lastUpdated)==null?void 0:o.formatOptions)==null?{dateStyle:`medium`,timeStyle:`medium`}:n).format(s.value),c&&r.value!==c){var u;(u=a.value)==null||u.setAttribute(`lang`,c)}else{var d;(d=a.value)==null||d.removeAttribute(`lang`)}})}),(e,n)=>{var r;return J(),A(`p`,xt,[U(k(((r=O(t).lastUpdated)==null?void 0:r.text)||`Last updated`)+`: `,1),z(`time`,{ref_key:`timeRef`,ref:a,datetime:c.value},k(l.value),9,St)])}}}),[[`__scopeId`,`data-v-d6a82ec9`]]),Q=G({__name:`VPLink`,props:{tag:{},href:{},noIcon:{type:Boolean},external:{type:Boolean,default:void 0},target:{},rel:{}},setup(e){let t=e,n=W(()=>{var e;return(e=t.tag)==null?t.href?`a`:`span`:e}),r=W(()=>De(t.href,t.target,t.external));return(t,i)=>{var a,o;return J(),H(K(n.value),{class:d([`VPLink`,{link:e.href,"vp-external-link-icon":r.value,"no-icon":e.noIcon}]),href:e.href?O(Oe)(e.href):void 0,target:(a=e.target)==null?r.value?`_blank`:void 0:a,rel:(o=e.rel)==null?r.value?`noreferrer`:void 0:o},{default:I(()=>[w(t.$slots,`default`)]),_:3},8,[`class`,`href`,`target`,`rel`])}}}),wt={key:0,class:`VPDocFooter`},Tt={key:0,class:`edit-info`},Et={key:0,class:`edit-link`},Dt={key:1,class:`last-updated`},Ot={key:1,class:`prev-next`,"aria-labelledby":`doc-footer-aria-label`},kt={class:`pager`},At=[`innerHTML`],jt=[`innerHTML`],Mt={class:`pager`},Nt=[`innerHTML`],Pt=[`innerHTML`],Ft=B(G({__name:`VPDocFooter`,setup(e){let{theme:t,page:n,frontmatter:r}=X(),i=yt(),a=bt(),o=W(()=>t.value.editLink&&r.value.editLink!==!1),s=W(()=>n.value.lastUpdated),c=W(()=>o.value||s.value||a.value.prev||a.value.next);return(e,n)=>{var r,l,u,d;return c.value?(J(),A(`footer`,wt,[w(e.$slots,`doc-footer-before`,{},void 0,!0),o.value||s.value?(J(),A(`div`,Tt,[o.value?(J(),A(`div`,Et,[j(Q,{class:`edit-link-button`,href:O(i).url,"no-icon":!0},{default:I(()=>[n[0]||(n[0]=z(`span`,{class:`vpi-square-pen edit-link-icon`},null,-1)),U(` `+k(O(i).text),1)]),_:1},8,[`href`])])):P(``,!0),s.value?(J(),A(`div`,Dt,[j(Ct)])):P(``,!0)])):P(``,!0),(r=O(a).prev)!=null&&r.link||(l=O(a).next)!=null&&l.link?(J(),A(`nav`,Ot,[n[1]||(n[1]=z(`span`,{class:`visually-hidden`,id:`doc-footer-aria-label`},`Pager`,-1)),z(`div`,kt,[(u=O(a).prev)!=null&&u.link?(J(),H(Q,{key:0,class:`pager-link prev`,href:O(a).prev.link,target:O(a).prev.target,rel:O(a).prev.rel},{default:I(()=>{var e;return[z(`span`,{class:`desc`,innerHTML:((e=O(t).docFooter)==null?void 0:e.prev)||`Previous page`},null,8,At),z(`span`,{class:`title`,innerHTML:O(a).prev.text},null,8,jt)]}),_:1},8,[`href`,`target`,`rel`])):P(``,!0)]),z(`div`,Mt,[(d=O(a).next)!=null&&d.link?(J(),H(Q,{key:0,class:`pager-link next`,href:O(a).next.link,target:O(a).next.target,rel:O(a).next.rel},{default:I(()=>{var e;return[z(`span`,{class:`desc`,innerHTML:((e=O(t).docFooter)==null?void 0:e.next)||`Next page`},null,8,Nt),z(`span`,{class:`title`,innerHTML:O(a).next.text},null,8,Pt)]}),_:1},8,[`href`,`target`,`rel`])):P(``,!0)])])):P(``,!0)])):P(``,!0)}}}),[[`__scopeId`,`data-v-3f4d543d`]]),It={class:`container`},Lt={class:`aside-container`},Rt={class:`aside-content`},zt={class:`content`},Bt={class:`content-container`},Vt={class:`main`},Ht=B(G({__name:`VPDoc`,setup(e){let{theme:t}=X(),n=L(),{hasSidebar:r,hasAside:i,leftAside:o}=Z(),s=W(()=>n.path.replace(/[./]+/g,`_`).replace(/_html$/,``));return(e,n)=>{let c=a(`Content`);return J(),A(`div`,{class:d([`VPDoc`,{"has-sidebar":O(r),"has-aside":O(i)}])},[w(e.$slots,`doc-top`,{},void 0,!0),z(`div`,It,[O(i)?(J(),A(`div`,{key:0,class:d([`aside`,{"left-aside":O(o)}])},[n[0]||(n[0]=z(`div`,{class:`aside-curtain`},null,-1)),z(`div`,Lt,[z(`div`,Rt,[j(vt,null,{"aside-top":I(()=>[w(e.$slots,`aside-top`,{},void 0,!0)]),"aside-bottom":I(()=>[w(e.$slots,`aside-bottom`,{},void 0,!0)]),"aside-outline-before":I(()=>[w(e.$slots,`aside-outline-before`,{},void 0,!0)]),"aside-outline-after":I(()=>[w(e.$slots,`aside-outline-after`,{},void 0,!0)]),"aside-ads-before":I(()=>[w(e.$slots,`aside-ads-before`,{},void 0,!0)]),"aside-ads-after":I(()=>[w(e.$slots,`aside-ads-after`,{},void 0,!0)]),_:3})])])],2)):P(``,!0),z(`div`,zt,[z(`div`,Bt,[w(e.$slots,`doc-before`,{},void 0,!0),z(`main`,Vt,[j(c,{class:d([`vp-doc`,[s.value,O(t).externalLinkIcon&&`external-link-icon-enabled`]])},null,8,[`class`])]),j(Ft,null,{"doc-footer-before":I(()=>[w(e.$slots,`doc-footer-before`,{},void 0,!0)]),_:3}),w(e.$slots,`doc-after`,{},void 0,!0)])])]),w(e.$slots,`doc-bottom`,{},void 0,!0)],2)}}}),[[`__scopeId`,`data-v-09b66d3b`]]),Ut=B(G({__name:`VPHomeContent`,setup(e){let{width:t}=ee({initialWidth:0,includeScrollbar:!1});return(e,n)=>(J(),A(`div`,{class:`vp-doc container`,style:D(O(t)?{"--vp-offset":`calc(50% - ${O(t)/2}px)`}:{}),"data-allow-mismatch":`style`},[w(e.$slots,`default`,{},void 0,!0)],4))}}),[[`__scopeId`,`data-v-89ca360d`]]),Wt=[`src`,`alt`],Gt=B(G({inheritAttrs:!1,__name:`VPImage`,props:{image:{},alt:{}},setup(e){return(n,r)=>{var i;let o=a(`VPImage`,!0);return e.image?(J(),A(t,{key:0},[typeof e.image==`string`||`src`in e.image?(J(),A(`img`,V({key:0,class:`VPImage`},typeof e.image==`string`?n.$attrs:{...e.image,...n.$attrs},{src:O(me)(typeof e.image==`string`?e.image:e.image.src),alt:(i=e.alt)==null?typeof e.image==`string`?``:e.image.alt||``:i}),null,16,Wt)):(J(),A(t,{key:1},[j(o,V({class:`dark`,image:e.image.dark,alt:e.image.alt},n.$attrs),null,16,[`image`,`alt`]),j(o,V({class:`light`,image:e.image.light,alt:e.image.alt},n.$attrs),null,16,[`image`,`alt`])],64))],64)):P(``,!0)}}}),[[`__scopeId`,`data-v-bdf79f07`]]),Kt={class:`box`},qt={key:0,class:`icon`},Jt=[`innerHTML`],Yt=[`innerHTML`],Xt={key:3,class:`details`},Zt=[`innerHTML`],Qt=[`innerHTML`],$t={key:5,class:`link-text`},en={class:`link-text-value`},tn=B(G({__name:`VPFeature`,props:{icon:{},title:{},details:{},link:{},linkText:{},rel:{},target:{}},setup(e){return(n,r)=>(J(),H(Q,{class:`VPFeature`,href:e.link,rel:e.rel,target:e.target,"no-icon":!0,tag:e.link?`a`:`div`},{default:I(()=>[z(`article`,Kt,[typeof e.icon==`object`&&e.icon.wrap?(J(),A(`div`,qt,[j(Gt,{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`?(J(),H(Gt,{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?(J(),A(`div`,{key:2,class:`icon`,innerHTML:e.icon},null,8,Jt)):P(``,!0),z(`h2`,{class:`title`,innerHTML:e.title},null,8,Yt),Array.isArray(e.details)?(J(),A(`ul`,Xt,[(J(!0),A(t,null,q(e.details,e=>(J(),A(`li`,{key:e,innerHTML:e},null,8,Zt))),128))])):e.details?(J(),A(`p`,{key:4,class:`details`,innerHTML:e.details},null,8,Qt)):P(``,!0),e.linkText?(J(),A(`div`,$t,[z(`p`,en,[U(k(e.linkText)+` `,1),r[0]||(r[0]=z(`span`,{class:`vpi-arrow-right link-text-icon`},null,-1))])])):P(``,!0)])]),_:1},8,[`href`,`rel`,`target`,`tag`]))}}),[[`__scopeId`,`data-v-4537ea82`]]),nn={key:0,class:`VPFeatures`},rn={class:`container`},an={class:`items`},on=B(G({__name:`VPFeatures`,props:{features:{}},setup(e){let n=e,r=W(()=>{let e=n.features.length;if(e){if(e===2)return`grid-2`;if(e===3)return`grid-3`;if(e%3==0)return`grid-6`;if(e>3)return`grid-4`}});return(n,i)=>e.features?(J(),A(`div`,nn,[z(`div`,rn,[z(`ul`,an,[(J(!0),A(t,null,q(e.features,e=>(J(),A(`li`,{key:e.title,class:d([`item`,[r.value]])},[j(tn,{icon:e.icon,title:e.title,details:e.details,link:e.link,"link-text":e.linkText,rel:e.rel,target:e.target},null,8,[`icon`,`title`,`details`,`link`,`link-text`,`rel`,`target`])],2))),128))])])])):P(``,!0)}}),[[`__scopeId`,`data-v-243b21d2`]]),sn=G({__name:`VPHomeFeatures`,setup(e){let{frontmatter:t}=X();return(e,n)=>O(t).features?(J(),H(on,{key:0,class:`VPHomeFeatures`,features:O(t).features},null,8,[`features`])):P(``,!0)}}),cn=B(G({__name:`VPButton`,props:{tag:{},size:{default:`medium`},theme:{default:`brand`},text:{},href:{},target:{},rel:{}},setup(e){let t=e,n=W(()=>t.href&&be.test(t.href)),r=W(()=>t.tag||(t.href?`a`:`button`));return(i,a)=>{var o,s;return J(),H(K(r.value),{class:d([`VPButton`,[e.size,e.theme]]),href:e.href?O(Oe)(e.href):void 0,target:(o=t.target)==null?n.value?`_blank`:void 0:o,rel:(s=t.rel)==null?n.value?`noreferrer`:void 0:s},{default:I(()=>[w(i.$slots,`default`,{},()=>[U(k(e.text),1)],!0)]),_:3},8,[`class`,`href`,`target`,`rel`])}}}),[[`__scopeId`,`data-v-c7b88fff`]]),ln={class:`container`},un={class:`main`},dn={class:`heading`},fn=[`innerHTML`],pn=[`innerHTML`],mn=[`innerHTML`],hn={key:0,class:`actions`},gn={key:0,class:`image`},_n={class:`image-container`},vn=B(G({__name:`VPHero`,props:{name:{},text:{},tagline:{},image:{},actions:{}},setup(e){let{heroImageSlotExists:n}=ue(lt,{heroImageSlotExists:W(()=>!1)});return(r,i)=>(J(),A(`div`,{class:d([`VPHero`,{"has-image":e.image||O(n)}])},[z(`div`,ln,[z(`div`,un,[w(r.$slots,`home-hero-info-before`,{},void 0,!0),w(r.$slots,`home-hero-info`,{},()=>[z(`h1`,dn,[e.name?(J(),A(`span`,{key:0,innerHTML:e.name,class:`name clip`},null,8,fn)):P(``,!0),e.text?(J(),A(`span`,{key:1,innerHTML:e.text,class:`text`},null,8,pn)):P(``,!0)]),e.tagline?(J(),A(`p`,{key:0,innerHTML:e.tagline,class:`tagline`},null,8,mn)):P(``,!0)],!0),w(r.$slots,`home-hero-info-after`,{},void 0,!0),e.actions?(J(),A(`div`,hn,[w(r.$slots,`home-hero-actions-before-actions`,{},void 0,!0),(J(!0),A(t,null,q(e.actions,e=>(J(),A(`div`,{key:e.link,class:`action`},[j(cn,{tag:`a`,size:`medium`,theme:e.theme,text:e.text,href:e.link,target:e.target,rel:e.rel},null,8,[`theme`,`text`,`href`,`target`,`rel`])]))),128))])):P(``,!0),w(r.$slots,`home-hero-actions-after`,{},void 0,!0)]),e.image||O(n)?(J(),A(`div`,gn,[z(`div`,_n,[i[0]||(i[0]=z(`div`,{class:`image-bg`},null,-1)),w(r.$slots,`home-hero-image`,{},()=>[e.image?(J(),H(Gt,{key:0,class:`image-src`,image:e.image},null,8,[`image`])):P(``,!0)],!0)])])):P(``,!0)])],2))}}),[[`__scopeId`,`data-v-e20fe220`]]),yn=G({__name:`VPHomeHero`,setup(e){let{frontmatter:t}=X();return(e,n)=>O(t).hero?(J(),H(vn,{key:0,class:`VPHomeHero`,name:O(t).hero.name,text:O(t).hero.text,tagline:O(t).hero.tagline,image:O(t).hero.image,actions:O(t).hero.actions},{"home-hero-info-before":I(()=>[w(e.$slots,`home-hero-info-before`)]),"home-hero-info":I(()=>[w(e.$slots,`home-hero-info`)]),"home-hero-info-after":I(()=>[w(e.$slots,`home-hero-info-after`)]),"home-hero-actions-after":I(()=>[w(e.$slots,`home-hero-actions-after`)]),"home-hero-actions-before-actions":I(()=>[w(e.$slots,`home-hero-actions-before-actions`)]),"home-hero-image":I(()=>[w(e.$slots,`home-hero-image`)]),_:3},8,[`name`,`text`,`tagline`,`image`,`actions`])):P(``,!0)}}),bn=B(G({__name:`VPHome`,setup(e){let{frontmatter:t,theme:n}=X();return(e,r)=>{let i=a(`Content`);return J(),A(`div`,{class:d([`VPHome`,{"external-link-icon-enabled":O(n).externalLinkIcon}])},[w(e.$slots,`home-hero-before`,{},void 0,!0),j(yn,null,{"home-hero-info-before":I(()=>[w(e.$slots,`home-hero-info-before`,{},void 0,!0)]),"home-hero-info":I(()=>[w(e.$slots,`home-hero-info`,{},void 0,!0)]),"home-hero-info-after":I(()=>[w(e.$slots,`home-hero-info-after`,{},void 0,!0)]),"home-hero-actions-after":I(()=>[w(e.$slots,`home-hero-actions-after`,{},void 0,!0)]),"home-hero-actions-before-actions":I(()=>[w(e.$slots,`home-hero-actions-before-actions`,{},void 0,!0)]),"home-hero-image":I(()=>[w(e.$slots,`home-hero-image`,{},void 0,!0)]),_:3}),w(e.$slots,`home-hero-after`,{},void 0,!0),w(e.$slots,`home-features-before`,{},void 0,!0),j(sn),w(e.$slots,`home-features-after`,{},void 0,!0),O(t).markdownStyles===!1?(J(),H(i,{key:1})):(J(),H(Ut,{key:0},{default:I(()=>[j(i)]),_:1}))],2)}}}),[[`__scopeId`,`data-v-4115d4b0`]]),xn={},Sn={class:`VPPage`};function Cn(e,t){let n=a(`Content`);return J(),A(`div`,Sn,[w(e.$slots,`page-top`),j(n),w(e.$slots,`page-bottom`)])}var wn=B(xn,[[`render`,Cn]]),Tn=B(G({__name:`VPContent`,setup(e){let{page:t,frontmatter:n}=X(),{isHome:r,hasSidebar:i}=Z();function a(e){return typeof K(e)!=`string`}return(e,o)=>(J(),A(`div`,{class:d([`VPContent`,{"has-sidebar":O(i),"is-home":O(r)}]),id:`VPContent`},[O(t).isNotFound?w(e.$slots,`not-found`,{},()=>[j(ze)],!0,0):O(n).layout===`page`&&!a(`page`)?(J(),H(wn,{key:1},{"page-top":I(()=>[w(e.$slots,`page-top`,{},void 0,!0)]),"page-bottom":I(()=>[w(e.$slots,`page-bottom`,{},void 0,!0)]),_:3})):O(n).layout===`home`&&!a(`home`)?(J(),H(bn,{key:2},{"home-hero-before":I(()=>[w(e.$slots,`home-hero-before`,{},void 0,!0)]),"home-hero-info-before":I(()=>[w(e.$slots,`home-hero-info-before`,{},void 0,!0)]),"home-hero-info":I(()=>[w(e.$slots,`home-hero-info`,{},void 0,!0)]),"home-hero-info-after":I(()=>[w(e.$slots,`home-hero-info-after`,{},void 0,!0)]),"home-hero-actions-after":I(()=>[w(e.$slots,`home-hero-actions-after`,{},void 0,!0)]),"home-hero-actions-before-actions":I(()=>[w(e.$slots,`home-hero-actions-before-actions`,{},void 0,!0)]),"home-hero-image":I(()=>[w(e.$slots,`home-hero-image`,{},void 0,!0)]),"home-hero-after":I(()=>[w(e.$slots,`home-hero-after`,{},void 0,!0)]),"home-features-before":I(()=>[w(e.$slots,`home-features-before`,{},void 0,!0)]),"home-features-after":I(()=>[w(e.$slots,`home-features-after`,{},void 0,!0)]),_:3})):(!O(n).layout||O(n).layout===`doc`)&&!a(`doc`)?(J(),H(Ht,{key:3},{"doc-top":I(()=>[w(e.$slots,`doc-top`,{},void 0,!0)]),"doc-bottom":I(()=>[w(e.$slots,`doc-bottom`,{},void 0,!0)]),"doc-footer-before":I(()=>[w(e.$slots,`doc-footer-before`,{},void 0,!0)]),"doc-before":I(()=>[w(e.$slots,`doc-before`,{},void 0,!0)]),"doc-after":I(()=>[w(e.$slots,`doc-after`,{},void 0,!0)]),"aside-top":I(()=>[w(e.$slots,`aside-top`,{},void 0,!0)]),"aside-outline-before":I(()=>[w(e.$slots,`aside-outline-before`,{},void 0,!0)]),"aside-outline-after":I(()=>[w(e.$slots,`aside-outline-after`,{},void 0,!0)]),"aside-ads-before":I(()=>[w(e.$slots,`aside-ads-before`,{},void 0,!0)]),"aside-ads-after":I(()=>[w(e.$slots,`aside-ads-after`,{},void 0,!0)]),"aside-bottom":I(()=>[w(e.$slots,`aside-bottom`,{},void 0,!0)]),_:3})):(J(),H(K(O(n).layout||`doc`),{key:4}))],2))}}),[[`__scopeId`,`data-v-bae7cf19`]]),En={class:`container`},Dn=[`innerHTML`],On=[`innerHTML`],kn=B(G({__name:`VPFooter`,setup(e){let{theme:t,frontmatter:n}=X(),{hasSidebar:r}=Z();return(e,i)=>O(t).footer&&O(n).footer!==!1?(J(),A(`footer`,{key:0,class:d([`VPFooter`,{"has-sidebar":O(r)}])},[z(`div`,En,[O(t).footer.message?(J(),A(`p`,{key:0,class:`message`,innerHTML:O(t).footer.message},null,8,Dn)):P(``,!0),O(t).footer.copyright?(J(),A(`p`,{key:1,class:`copyright`,innerHTML:O(t).footer.copyright},null,8,On)):P(``,!0)])],2)):P(``,!0)}}),[[`__scopeId`,`data-v-ca42a0f5`]]),An={class:`menu-text`},jn={class:`header`},Mn={class:`outline`},Nn=B(G({__name:`VPLocalNavOutlineDropdown`,props:{headers:{},navHeight:{}},setup(e){let t=e,{theme:n}=X(),r=f(!1),i=f(0),a=f(),o=f();function s(e){var t;(t=a.value)!=null&&t.contains(e.target)||(r.value=!1)}y(r,e=>{if(e){document.addEventListener(`click`,s);return}document.removeEventListener(`click`,s)}),v(`Escape`,()=>{r.value=!1}),le(()=>{r.value=!1});function c(){r.value=!r.value,i.value=window.innerHeight+Math.min(window.scrollY-t.navHeight,0)}function l(e){e.target.classList.contains(`outline-link`)&&(o.value&&(o.value.style.transition=`none`),R(()=>{r.value=!1}))}function u(){r.value=!1,window.scrollTo({top:0,left:0,behavior:`smooth`})}return(t,s)=>(J(),A(`div`,{ref_key:`main`,ref:a,class:`VPLocalNavOutlineDropdown`,style:D({"--vp-vh":i.value+`px`}),"data-allow-mismatch":`style`},[e.headers.length>0?(J(),A(`button`,{key:0,onClick:c,class:d({open:r.value})},[z(`span`,An,k(O(Je)(O(n))),1),s[0]||(s[0]=z(`span`,{class:`vpi-chevron-right icon`},null,-1))],2)):(J(),A(`button`,{key:1,onClick:u},k(O(n).returnToTopLabel||`Return to top`),1)),j(p,{name:`flyout`},{default:I(()=>[r.value?(J(),A(`div`,{key:0,ref_key:`items`,ref:o,class:`items`,onClick:l},[z(`div`,jn,[z(`a`,{class:`top-link`,href:`#`,onClick:u},k(O(n).returnToTopLabel||`Return to top`),1)]),z(`div`,Mn,[j(pt,{headers:e.headers},null,8,[`headers`])])],512)):P(``,!0)]),_:1})],4))}}),[[`__scopeId`,`data-v-73c24310`]]),Pn={class:`container`},Fn=[`aria-expanded`],In={class:`menu-text`},Ln=B(G({__name:`VPLocalNav`,props:{open:{type:Boolean}},emits:[`open-menu`],setup(e){let{theme:t}=X(),{isHome:n,hasSidebar:r,headers:i,hasLocalNav:a}=Z(),{y:o}=m(),s=f(0);N(()=>{s.value=parseInt(getComputedStyle(document.documentElement).getPropertyValue(`--vp-nav-height`))});let c=W(()=>({VPLocalNav:!0,"has-sidebar":r.value,empty:!a.value,fixed:!a.value&&!r.value}));return(l,u)=>!O(n)&&(O(a)||O(r)||O(o)>=s.value)?(J(),A(`div`,{key:0,class:d(c.value)},[z(`div`,Pn,[O(r)?(J(),A(`button`,{key:0,class:`menu`,"aria-expanded":e.open,"aria-controls":`VPSidebarNav`,onClick:u[0]||(u[0]=e=>l.$emit(`open-menu`))},[u[1]||(u[1]=z(`span`,{class:`vpi-align-left menu-icon`},null,-1)),z(`span`,In,k(O(t).sidebarMenuLabel||`Menu`),1)],8,Fn)):P(``,!0),j(Nn,{headers:O(i),navHeight:s.value},null,8,[`headers`,`navHeight`])])],2)):P(``,!0)}}),[[`__scopeId`,`data-v-9ac2f74c`]]);function Rn(){let e=f(!1);function t(){e.value=!0,window.addEventListener(`resize`,i)}function n(){e.value=!1,window.removeEventListener(`resize`,i)}function r(){e.value?n():t()}function i(){window.outerWidth>=768&&n()}let a=L();return y(()=>a.path,n),{isScreenOpen:e,openScreen:t,closeScreen:n,toggleScreen:r}}var zn=Symbol(`nav`),Bn={},Vn={class:`VPSwitch`,type:`button`,role:`switch`},Hn={class:`check`},Un={key:0,class:`icon`};function Wn(e,t){return J(),A(`button`,Vn,[z(`span`,Hn,[e.$slots.default?(J(),A(`span`,Un,[w(e.$slots,`default`,{},void 0,!0)])):P(``,!0)])])}var Gn=B(Bn,[[`render`,Wn],[`__scopeId`,`data-v-abe87520`]]),Kn=B(G({__name:`VPSwitchAppearance`,setup(e){let{isDark:t,theme:n}=X(),i=ue(`toggle-appearance`,()=>{t.value=!t.value}),a=f(``);return r(()=>{a.value=t.value?n.value.lightModeSwitchTitle||`Switch to light theme`:n.value.darkModeSwitchTitle||`Switch to dark theme`}),(e,n)=>(J(),H(Gn,{title:a.value,class:`VPSwitchAppearance`,"aria-checked":O(t),onClick:O(i)},{default:I(()=>[...n[0]||(n[0]=[z(`span`,{class:`vpi-sun sun`},null,-1),z(`span`,{class:`vpi-moon moon`},null,-1)])]),_:1},8,[`title`,`aria-checked`,`onClick`]))}}),[[`__scopeId`,`data-v-3118776b`]]),qn={key:0,class:`VPNavBarAppearance`},Jn=B(G({__name:`VPNavBarAppearance`,setup(e){let{site:t}=X();return(e,n)=>O(t).appearance&&O(t).appearance!==`force-dark`&&O(t).appearance!==`force-auto`?(J(),A(`div`,qn,[j(Kn)])):P(``,!0)}}),[[`__scopeId`,`data-v-19112ba7`]]),Yn=f(),Xn=!1,Zn=0;function Qn(e){let t=f(!1);if(ye){!Xn&&$n(),Zn++;let n=y(Yn,n=>{var r;if(n===e.el.value||(r=e.el.value)!=null&&r.contains(n)){var i;t.value=!0,(i=e.onFocus)==null||i.call(e)}else{var a;t.value=!1,(a=e.onBlur)==null||a.call(e)}});ae(()=>{n(),Zn--,Zn||er()})}return u(t)}function $n(){document.addEventListener(`focusin`,tr),Xn=!0,Yn.value=document.activeElement}function er(){document.removeEventListener(`focusin`,tr)}function tr(){Yn.value=document.activeElement}var nr={class:`VPMenuLink`},rr=[`innerHTML`],ir=B(G({inheritAttrs:!1,__name:`VPMenuLink`,props:{item:{},rel:{}},setup(e){let t=e,n=L(),r=W(()=>typeof t.item.link==`function`?t.item.link(n.data):t.item.link),i=W(()=>C(n.data.relativePath,n.hash,t.item.activeMatch||r.value,!!t.item.activeMatch));return(n,a)=>{var o;return J(),A(`div`,nr,[j(Q,V(n.$attrs,{class:{active:i.value},href:r.value,target:e.item.target,rel:(o=t.rel)==null?e.item.rel:o,"no-icon":e.item.noIcon}),{default:I(()=>[z(`span`,{innerHTML:e.item.text},null,8,rr)]),_:1},16,[`class`,`href`,`target`,`rel`,`no-icon`])])}}}),[[`__scopeId`,`data-v-0bb72d78`]]),ar={class:`VPMenuGroup`},or={key:0,class:`title`},sr=B(G({__name:`VPMenuGroup`,props:{text:{},items:{}},setup(e){return(n,r)=>(J(),A(`div`,ar,[e.text?(J(),A(`p`,or,k(e.text),1)):P(``,!0),(J(!0),A(t,null,q(e.items,e=>(J(),A(t,{key:JSON.stringify(e)},[`link`in e?(J(),H(ir,{key:0,item:e},null,8,[`item`])):P(``,!0)],64))),128))]))}}),[[`__scopeId`,`data-v-240f4569`]]),cr={class:`VPMenu`},lr={key:0,class:`items`},ur=B(G({__name:`VPMenu`,props:{items:{}},setup(e){return(n,r)=>(J(),A(`div`,cr,[e.items?(J(),A(`ul`,lr,[(J(!0),A(t,null,q(e.items,e=>(J(),A(`li`,{key:JSON.stringify(e)},[`link`in e?(J(),H(ir,{key:0,item:e},null,8,[`item`])):`component`in e?(J(),H(K(e.component),V({key:1,ref_for:!0},e.props),null,16)):(J(),H(sr,{key:2,text:e.text,items:e.items},null,8,[`text`,`items`]))]))),128))])):P(``,!0),w(n.$slots,`default`,{},void 0,!0)]))}}),[[`__scopeId`,`data-v-4b77f24e`]]),dr=[`aria-expanded`,`aria-label`],fr={key:0,class:`text`},pr=[`innerHTML`],mr={key:1,class:`vpi-more-horizontal icon`},hr={class:`menu`},gr=B(G({__name:`VPFlyout`,props:{icon:{},button:{},label:{},items:{}},setup(e){let t=f(!1),n=f();Qn({el:n,onBlur:r});function r(){t.value=!1}return(r,i)=>(J(),A(`div`,{class:`VPFlyout`,ref_key:`el`,ref:n,onMouseenter:i[1]||(i[1]=e=>t.value=!0),onMouseleave:i[2]||(i[2]=e=>t.value=!1)},[z(`button`,{type:`button`,class:`button`,"aria-haspopup":`true`,"aria-expanded":t.value,"aria-label":e.label,onClick:i[0]||(i[0]=e=>t.value=!t.value)},[e.button||e.icon?(J(),A(`span`,fr,[e.icon?(J(),A(`span`,{key:0,class:d([e.icon,`option-icon`])},null,2)):P(``,!0),e.button?(J(),A(`span`,{key:1,innerHTML:e.button},null,8,pr)):P(``,!0),i[3]||(i[3]=z(`span`,{class:`vpi-chevron-down text-icon`},null,-1))])):(J(),A(`span`,mr))],8,dr),z(`div`,hr,[j(ur,{items:e.items},{default:I(()=>[w(r.$slots,`default`,{},void 0,!0)]),_:3},8,[`items`])])],544))}}),[[`__scopeId`,`data-v-4d8772ad`]]),_r=[`href`,`aria-label`,`target`,`rel`,`innerHTML`],vr=B(G({__name:`VPSocialLink`,props:{icon:{},link:{},ariaLabel:{},target:{},me:{type:Boolean}},setup(e){let t=e,n=f();N(async()=>{var e;await R();let r=(e=n.value)==null?void 0:e.children[0];r instanceof HTMLElement&&r.className.startsWith(`vpi-social-`)&&(getComputedStyle(r).maskImage||getComputedStyle(r).webkitMaskImage)===`none`&&r.style.setProperty(`--icon`,`url('https://api.iconify.design/simple-icons/${t.icon}.svg')`)});let r=W(()=>typeof t.icon==`object`?t.icon.svg:`<span class="vpi-social-${t.icon}"></span>`);return(t,a)=>{var o,s;return J(),A(`a`,{ref_key:`el`,ref:n,class:`VPSocialLink no-icon`,href:e.link,"aria-label":(o=e.ariaLabel)==null?typeof e.icon==`string`?e.icon:``:o,target:(s=e.target)==null?O(i)(e.link)?`_blank`:void 0:s,rel:e.me?`me noopener`:`noopener`,innerHTML:r.value},null,8,_r)}}}),[[`__scopeId`,`data-v-30d3fe38`]]),yr={class:`VPSocialLinks`},br=B(G({__name:`VPSocialLinks`,props:{links:{},me:{type:Boolean,default:!0}},setup(e){return(n,r)=>(J(),A(`ul`,yr,[(J(!0),A(t,null,q(e.links,({link:t,icon:n,ariaLabel:r,target:i})=>(J(),A(`li`,{key:t,class:`item`},[j(vr,{icon:n,link:t,ariaLabel:r,target:i,me:e.me},null,8,[`icon`,`link`,`ariaLabel`,`target`,`me`])]))),128))]))}}),[[`__scopeId`,`data-v-9711edf3`]]),xr={key:0,class:`group translations`},Sr={class:`trans-title`},Cr={key:1,class:`group`},wr={class:`item appearance`},Tr={class:`label`},Er={class:`appearance-action`},Dr={key:2,class:`group`},Or={class:`item social-links`},kr=B(G({__name:`VPNavBarExtra`,setup(e){let{site:n,theme:r}=X(),{localeLinks:i,currentLang:a}=Ae({linkToCorrespondingPage:!0}),o=W(()=>i.value.length&&a.value.label||n.value.appearance||r.value.socialLinks);return(e,s)=>o.value?(J(),H(gr,{key:0,class:`VPNavBarExtra`,label:`extra navigation`},{default:I(()=>[O(i).length&&O(a).label?(J(),A(`ul`,xr,[z(`li`,Sr,k(O(a).label),1),(J(!0),A(t,null,q(O(i),e=>(J(),A(`li`,{key:e.link},[j(ir,{item:e,external:!1,lang:e.lang,hreflang:e.lang,rel:`alternate`,dir:e.dir,"data-allow-mismatch":`attribute`},null,8,[`item`,`lang`,`hreflang`,`dir`])]))),128))])):P(``,!0),O(n).appearance&&O(n).appearance!==`force-dark`&&O(n).appearance!==`force-auto`?(J(),A(`div`,Cr,[z(`div`,wr,[z(`p`,Tr,k(O(r).darkModeSwitchLabel||`Appearance`),1),z(`div`,Er,[j(Kn)])])])):P(``,!0),O(r).socialLinks?(J(),A(`div`,Dr,[z(`div`,Or,[j(br,{class:`social-links-list`,links:O(r).socialLinks},null,8,[`links`])])])):P(``,!0)]),_:1})):P(``,!0)}}),[[`__scopeId`,`data-v-59bbb10b`]]),Ar=[`aria-expanded`],jr=B(G({__name:`VPNavBarHamburger`,props:{active:{type:Boolean}},emits:[`click`],setup(e){return(t,n)=>(J(),A(`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]=e=>t.$emit(`click`))},[...n[1]||(n[1]=[z(`span`,{class:`container`},[z(`span`,{class:`top`}),z(`span`,{class:`middle`}),z(`span`,{class:`bottom`})],-1)])],10,Ar))}}),[[`__scopeId`,`data-v-6edcecdf`]]),Mr=G({__name:`VPNavBarMenuGroup`,props:{item:{}},setup(e){let t=e,n=L(),r=W(()=>t.item.activeMatch?C(n.data.relativePath,n.hash,t.item.activeMatch,!0):i(t.item));function i(e){if(`component`in e)return!1;if(`link`in e){let t=typeof e.link==`function`?e.link(n.data):e.link;return C(n.data.relativePath,n.hash,e.activeMatch||t,!!e.activeMatch)}return e.items.some(i)}return(t,n)=>(J(),H(gr,{class:d({VPNavBarMenuGroup:!0,active:r.value}),button:e.item.text,items:e.item.items},null,8,[`class`,`button`,`items`]))}}),Nr=[`innerHTML`],Pr=B(G({__name:`VPNavBarMenuLink`,props:{item:{}},setup(e){let t=e,n=L(),r=W(()=>typeof t.item.link==`function`?t.item.link(n.data):t.item.link),i=W(()=>C(n.data.relativePath,n.hash,t.item.activeMatch||r.value,!!t.item.activeMatch));return(t,n)=>(J(),H(Q,{class:d({VPNavBarMenuLink:!0,active:i.value}),href:r.value,target:e.item.target,rel:e.item.rel,"no-icon":e.item.noIcon,tabindex:`0`},{default:I(()=>[z(`span`,{innerHTML:e.item.text},null,8,Nr)]),_:1},8,[`class`,`href`,`target`,`rel`,`no-icon`]))}}),[[`__scopeId`,`data-v-ba488d77`]]),Fr={key:0,"aria-labelledby":`main-nav-aria-label`,class:`VPNavBarMenu`},Ir={class:`list`},Lr=B(G({__name:`VPNavBarMenu`,setup(e){let{theme:n}=X();return(e,r)=>O(n).nav?(J(),A(`nav`,Fr,[r[0]||(r[0]=z(`span`,{id:`main-nav-aria-label`,class:`visually-hidden`},` Main Navigation `,-1)),z(`ul`,Ir,[(J(!0),A(t,null,q(O(n).nav,e=>(J(),A(`li`,{key:JSON.stringify(e)},[`link`in e?(J(),H(Pr,{key:0,item:e},null,8,[`item`])):`component`in e?(J(),H(K(e.component),V({key:1,ref_for:!0},e.props),null,16)):(J(),H(Mr,{key:2,item:e},null,8,[`item`]))]))),128))])])):P(``,!0)}}),[[`__scopeId`,`data-v-9603ce15`]]);function Rr(e){var t;let n=(t=e.mode)==null?`auto`:t,r=zr(e),i=e.askAi,a=!!(i&&typeof i==`object`&&i.sidePanel);switch(n){case`sidePanel`:return{mode:n,showKeywordSearch:!1,useSidePanel:!0};case`hybrid`:return r||console.error(`[vitepress] mode: "hybrid" requires keyword search credentials (appId, apiKey, indexName).`),{mode:n,showKeywordSearch:r,useSidePanel:!0};case`modal`:return{mode:n,showKeywordSearch:r,useSidePanel:!1};default:return{mode:`auto`,showKeywordSearch:r,useSidePanel:a}}}function zr(e){return!!(e.appId&&e.apiKey&&e.indexName)}function Br(e,t){return[...(Array.isArray(e)?e:e?[e]:[]).map(e=>Array.isArray(e)?e.filter(e=>typeof e==`string`&&!e.startsWith(`lang:`)):e).filter(e=>typeof e==`string`?!e.startsWith(`lang:`):Array.isArray(e)&&e.length>0),`lang:${t}`]}function Vr(e,t,n){var r,i;let a=typeof e==`string`,o=!a&&e.searchParameters?{...e.searchParameters}:void 0,s=!a&&e.agentStudio===!0,c=Br((r=o==null?void 0:o.facetFilters)==null?(i=t.searchParameters)==null?void 0:i.facetFilters:r,n),l=s?o:{...o,facetFilters:c.length?c:void 0},u={...a?{}:e,indexName:a?t.indexName:e.indexName,apiKey:a?t.apiKey:e.apiKey,appId:a?t.appId:e.appId,assistantId:a?e:e.assistantId};return l&&Object.values(l).some(e=>e!=null)&&(u.searchParameters=l),u}function Hr(e,t,n){var r,i;e=Ur(e,((r=e.locales)==null?void 0:r[t])||{});let a=Br((i=e.searchParameters)==null?void 0:i.facetFilters,n),o=e.askAi?Vr(e.askAi,e,n):void 0;return{...e,searchParameters:{...e.searchParameters,facetFilters:a},askAi:o}}function Ur(e,t){let n={...e};for(let e in t){let r=t[e];if(r!==void 0){if(e===`searchParameters`){n[e]=r;continue}n[e]=ve(r)&&ve(n[e])?Ur(n[e],r):r}}return delete n.locales,n}function Wr(e,t=(e,t)=>JSON.stringify(e)===JSON.stringify(t)){return W(n=>{let r=e();return n===void 0||!t(r,n)?r:n})}var Gr={},Kr={type:`button`,class:`VPNavBarAskAiButton`};function qr(e,t){return J(),A(`button`,Kr,[...t[0]||(t[0]=[z(`span`,{class:`vpi-sparkles`,"aria-hidden":`true`},null,-1)])])}var Jr=B(Gr,[[`render`,qr],[`__scopeId`,`data-v-31e32b68`]]),Yr={type:`button`,class:`VPNavBarSearchButton`},Xr={class:`text`},Zr=B(G({__name:`VPNavBarSearchButton`,props:{text:{}},setup(e){return(t,n)=>(J(),A(`button`,Yr,[n[0]||(n[0]=z(`span`,{class:`vpi-search`,"aria-hidden":`true`},null,-1)),z(`span`,Xr,k(e.text),1),n[1]||(n[1]=z(`span`,{class:`keys`,"aria-hidden":`true`},[z(`kbd`,{class:`key-cmd`},`⌘`),z(`kbd`,{class:`key-ctrl`},`Ctrl`),z(`kbd`,null,`K`)],-1))]))}}),[[`__scopeId`,`data-v-8eb6b216`]]),Qr={class:`VPNavBarSearch`},$r=B(G({__name:`VPNavBarSearch`,setup(e){let n=pe(()=>oe(()=>import(((u)=>{if(u.startsWith('/')){return"https://registry.npmmirror.com/@gkd-kit/docs/0.0.1790606285768/files/.vitepress/dist"+u}return u})(`./VPLocalSearchBox.BJsIEpr4.js`)),[])),r=()=>null,{theme:i,localeIndex:a,lang:o}=X(),s=`local`,c=Wr(()=>{var e;return Hr(((e=i.value.search)==null?void 0:e.options)||{},a.value,o.value)}),l=W(()=>Rr(c.value)),u=W(()=>{if(!l.value.useSidePanel)return null;let e=c.value.askAi;return!e||typeof e==`string`||!e.sidePanel?null:e.sidePanel===!0?{}:e.sidePanel}),d=W(()=>{var e;return((e=u.value)==null||(e=e.keyboardShortcuts)==null?void 0:e[`Ctrl/Cmd+I`])!==!1}),p=f(null),m=0,h=f(!1),g=f(!1);N(()=>{});function _(e){h.value||(h.value=!0),p.value={target:e,nonce:++m}}let y=f(!1);v(`k`,e=>{(e.ctrlKey||e.metaKey)&&(e.preventDefault(),y.value=!0)}),v(`/`,e=>{b(e)||(e.preventDefault(),y.value=!0)});function b(e){let t=e.target,n=t.tagName;return t.isContentEditable||n===`INPUT`||n===`SELECT`||n===`TEXTAREA`}return(e,i)=>{var a,o,f,m,v;return J(),A(`div`,Qr,[O(s)===`algolia`?(J(),A(t,{key:0},[l.value.showKeywordSearch?(J(),H(Zr,{key:0,text:((a=O(c).translations)==null||(a=a.button)==null?void 0:a.buttonText)||`Search`,"aria-label":((o=O(c).translations)==null||(o=o.button)==null?void 0:o.buttonAriaLabel)||`Search`,"aria-keyshortcuts":`/ control+k meta+k`,onClick:i[0]||(i[0]=e=>_(`search`))},null,8,[`text`,`aria-label`])):P(``,!0),u.value?(J(),H(Jr,{key:1,"aria-label":((f=u.value.button)==null||(f=f.translations)==null?void 0:f.buttonAriaLabel)||`Ask AI`,"aria-keyshortcuts":d.value?`control+i meta+i`:void 0,onClick:i[1]||(i[1]=e=>g.value?_(`toggleAskAi`):_(`askAi`))},null,8,[`aria-label`,`aria-keyshortcuts`])):P(``,!0),h.value?(J(),H(O(r),{key:2,"algolia-options":O(c),"open-request":p.value,onVnodeBeforeMount:i[2]||(i[2]=e=>g.value=!0)},null,8,[`algolia-options`,`open-request`])):P(``,!0)],64)):O(s)===`local`?(J(),A(t,{key:1},[j(Zr,{text:((m=O(c).translations)==null||(m=m.button)==null?void 0:m.buttonText)||`Search`,"aria-label":((v=O(c).translations)==null||(v=v.button)==null?void 0:v.buttonAriaLabel)||`Search`,"aria-keyshortcuts":`/ control+k meta+k`,onClick:i[3]||(i[3]=e=>y.value=!0)},null,8,[`text`,`aria-label`]),y.value?(J(),H(O(n),{key:0,onClose:i[4]||(i[4]=e=>y.value=!1)})):P(``,!0)],64)):P(``,!0)])}}}),[[`__scopeId`,`data-v-974e65f4`]]),ei=B(G({__name:`VPNavBarSocialLinks`,setup(e){let{theme:t}=X();return(e,n)=>O(t).socialLinks?(J(),H(br,{key:0,class:`VPNavBarSocialLinks`,links:O(t).socialLinks},null,8,[`links`])):P(``,!0)}}),[[`__scopeId`,`data-v-74bc09ac`]]),ti=[`href`,`rel`,`target`],ni=[`innerHTML`],ri={key:2},ii=B(G({__name:`VPNavBarTitle`,setup(e){let{site:t,theme:n}=X(),{hasSidebar:r}=Z(),{currentLang:i}=Ae(),a=W(()=>{var e;return typeof n.value.logoLink==`string`?n.value.logoLink:(e=n.value.logoLink)==null?void 0:e.link}),o=W(()=>{var e;return typeof n.value.logoLink==`string`||(e=n.value.logoLink)==null?void 0:e.rel}),s=W(()=>{var e;return typeof n.value.logoLink==`string`||(e=n.value.logoLink)==null?void 0:e.target});return(e,c)=>{var l;return J(),A(`div`,{class:d([`VPNavBarTitle`,{"has-sidebar":O(r)}])},[z(`a`,{class:`title`,href:(l=a.value)==null?O(Oe)(O(i).link):l,rel:o.value,target:s.value},[w(e.$slots,`nav-bar-title-before`,{},void 0,!0),O(n).logo?(J(),H(Gt,{key:0,class:`logo`,image:O(n).logo},null,8,[`image`])):P(``,!0),O(n).siteTitle?(J(),A(`span`,{key:1,innerHTML:O(n).siteTitle},null,8,ni)):O(n).siteTitle===void 0?(J(),A(`span`,ri,k(O(t).title),1)):P(``,!0),w(e.$slots,`nav-bar-title-after`,{},void 0,!0)],8,ti)],2)}}}),[[`__scopeId`,`data-v-cad311b4`]]),ai={class:`items`},oi={class:`title`},si=B(G({__name:`VPNavBarTranslations`,setup(e){let{theme:n}=X(),{localeLinks:r,currentLang:i}=Ae({linkToCorrespondingPage:!0});return(e,a)=>O(r).length&&O(i).label?(J(),H(gr,{key:0,class:`VPNavBarTranslations`,icon:`vpi-languages`,label:O(n).langMenuLabel||`Change language`},{default:I(()=>[z(`ul`,ai,[z(`li`,oi,k(O(i).label),1),(J(!0),A(t,null,q(O(r),e=>(J(),A(`li`,{key:e.link},[j(ir,{item:e,external:!1,lang:e.lang,hreflang:e.lang,rel:`alternate`,dir:e.dir,"data-allow-mismatch":`attribute`},null,8,[`item`,`lang`,`hreflang`,`dir`])]))),128))])]),_:1},8,[`label`])):P(``,!0)}}),[[`__scopeId`,`data-v-dd38d2e8`]]),ci={class:`wrapper`},li={class:`container`},ui={class:`title`},di={class:`content`},fi={class:`content-body`},pi=B(G({__name:`VPNavBar`,props:{isScreenOpen:{type:Boolean}},emits:[`toggle-screen`],setup(e){let{y:t}=m(),{isHome:n,hasSidebar:r}=Z();return(i,a)=>(J(),A(`div`,{class:d([`VPNavBar`,{"has-sidebar":O(r),home:O(n),top:O(t)===0,"screen-open":e.isScreenOpen}])},[z(`div`,ci,[z(`div`,li,[z(`div`,ui,[j(ii,null,{"nav-bar-title-before":I(()=>[w(i.$slots,`nav-bar-title-before`,{},void 0,!0)]),"nav-bar-title-after":I(()=>[w(i.$slots,`nav-bar-title-after`,{},void 0,!0)]),_:3})]),z(`div`,di,[z(`div`,fi,[w(i.$slots,`nav-bar-content-before`,{},void 0,!0),j($r,{class:`search`}),j(Lr,{class:`menu`}),j(si,{class:`translations`}),j(Jn,{class:`appearance`}),j(ei,{class:`social-links`}),j(kr,{class:`extra`}),w(i.$slots,`nav-bar-content-after`,{},void 0,!0),j(jr,{class:`hamburger`,active:e.isScreenOpen,onClick:a[0]||(a[0]=e=>i.$emit(`toggle-screen`))},null,8,[`active`])])])])]),a[1]||(a[1]=z(`div`,{class:`divider`},[z(`div`,{class:`divider-line`})],-1))],2))}}),[[`__scopeId`,`data-v-e72917cf`]]),mi={key:0,class:`VPNavScreenAppearance`},hi={class:`text`},gi=B(G({__name:`VPNavScreenAppearance`,setup(e){let{site:t,theme:n}=X();return(e,r)=>O(t).appearance&&O(t).appearance!==`force-dark`&&O(t).appearance!==`force-auto`?(J(),A(`div`,mi,[z(`p`,hi,k(O(n).darkModeSwitchLabel||`Appearance`),1),j(Kn)])):P(``,!0)}}),[[`__scopeId`,`data-v-42629761`]]),_i=[`innerHTML`],vi=B(G({__name:`VPNavScreenMenuGroupLink`,props:{item:{}},setup(e){let t=e,n=L(),r=W(()=>typeof t.item.link==`function`?t.item.link(n.data):t.item.link),i=W(()=>C(n.data.relativePath,n.hash,t.item.activeMatch||r.value,!!t.item.activeMatch)),{closeScreen:a}=ue(zn);return(t,n)=>(J(),H(Q,{class:d({VPNavScreenMenuGroupLink:!0,active:i.value}),href:r.value,target:e.item.target,rel:e.item.rel,"no-icon":e.item.noIcon,onClick:O(a)},{default:I(()=>[z(`span`,{innerHTML:e.item.text},null,8,_i)]),_:1},8,[`class`,`href`,`target`,`rel`,`no-icon`,`onClick`]))}}),[[`__scopeId`,`data-v-e58074cb`]]),yi={class:`VPNavScreenMenuGroupSection`},bi={key:0,class:`title`},xi=B(G({__name:`VPNavScreenMenuGroupSection`,props:{text:{},items:{}},setup(e){return(n,r)=>(J(),A(`div`,yi,[e.text?(J(),A(`p`,bi,k(e.text),1)):P(``,!0),z(`ul`,null,[(J(!0),A(t,null,q(e.items,e=>(J(),A(`li`,{key:e.text},[j(vi,{item:e},null,8,[`item`])]))),128))])]))}}),[[`__scopeId`,`data-v-4ceed151`]]),Si=[`aria-controls`,`aria-expanded`],Ci=[`innerHTML`],wi=[`id`],Ti={key:0,class:`item`},Ei={key:1,class:`item`},Di={key:2,class:`group`},Oi=B(G({__name:`VPNavScreenMenuGroup`,props:{text:{},items:{}},setup(e){let n=e,r=f(!1),i=W(()=>`NavScreenGroup-${n.text.replace(` `,`-`).toLowerCase()}`);function a(){r.value=!r.value}return(n,o)=>(J(),A(`div`,{class:d([`VPNavScreenMenuGroup`,{open:r.value}])},[z(`button`,{class:`button`,"aria-controls":i.value,"aria-expanded":r.value,onClick:a},[z(`span`,{class:`button-text`,innerHTML:e.text},null,8,Ci),o[0]||(o[0]=z(`span`,{class:`vpi-plus button-icon`},null,-1))],8,Si),z(`ul`,{id:i.value,class:`items`},[(J(!0),A(t,null,q(e.items,e=>(J(),A(`li`,{key:JSON.stringify(e)},[`link`in e?(J(),A(`div`,Ti,[j(vi,{item:e},null,8,[`item`])])):`component`in e?(J(),A(`div`,Ei,[(J(),H(K(e.component),V({ref_for:!0},e.props,{"screen-menu":``}),null,16))])):(J(),A(`div`,Di,[j(xi,{text:e.text,items:e.items},null,8,[`text`,`items`])]))]))),128))],8,wi)],2))}}),[[`__scopeId`,`data-v-4462584c`]]),ki=[`innerHTML`],Ai=B(G({__name:`VPNavScreenMenuLink`,props:{item:{}},setup(e){let t=e,n=L(),r=W(()=>typeof t.item.link==`function`?t.item.link(n.data):t.item.link),i=W(()=>C(n.data.relativePath,n.hash,t.item.activeMatch||r.value,!!t.item.activeMatch)),{closeScreen:a}=ue(zn);return(t,n)=>(J(),H(Q,{class:d({VPNavScreenMenuLink:!0,active:i.value}),href:r.value,target:e.item.target,rel:e.item.rel,"no-icon":e.item.noIcon,onClick:O(a)},{default:I(()=>[z(`span`,{innerHTML:e.item.text},null,8,ki)]),_:1},8,[`class`,`href`,`target`,`rel`,`no-icon`,`onClick`]))}}),[[`__scopeId`,`data-v-2765dc0f`]]),ji={key:0,class:`VPNavScreenMenu`},Mi=G({__name:`VPNavScreenMenu`,setup(e){let{theme:n}=X();return(e,r)=>O(n).nav?(J(),A(`nav`,ji,[z(`ul`,null,[(J(!0),A(t,null,q(O(n).nav,e=>(J(),A(`li`,{key:JSON.stringify(e)},[`link`in e?(J(),H(Ai,{key:0,item:e},null,8,[`item`])):`component`in e?(J(),H(K(e.component),V({key:1,ref_for:!0},e.props,{"screen-menu":``}),null,16)):(J(),H(Oi,{key:2,text:e.text||``,items:e.items},null,8,[`text`,`items`]))]))),128))])])):P(``,!0)}}),Ni=G({__name:`VPNavScreenSocialLinks`,setup(e){let{theme:t}=X();return(e,n)=>O(t).socialLinks?(J(),H(br,{key:0,class:`VPNavScreenSocialLinks`,links:O(t).socialLinks},null,8,[`links`])):P(``,!0)}}),Pi={class:`list`},Fi=B(G({__name:`VPNavScreenTranslations`,setup(e){let{localeLinks:n,currentLang:r}=Ae({linkToCorrespondingPage:!0}),i=f(!1);function a(){i.value=!i.value}return(e,o)=>O(n).length&&O(r).label?(J(),A(`div`,{key:0,class:d([`VPNavScreenTranslations`,{open:i.value}])},[z(`button`,{class:`title`,onClick:a},[o[0]||(o[0]=z(`span`,{class:`vpi-languages icon lang`},null,-1)),U(` `+k(O(r).label)+` `,1),o[1]||(o[1]=z(`span`,{class:`vpi-chevron-down icon chevron`},null,-1))]),z(`ul`,Pi,[(J(!0),A(t,null,q(O(n),e=>(J(),A(`li`,{key:e.link,class:`item`},[j(Q,{class:`link`,href:e.link,external:!1,lang:e.lang,hreflang:e.lang,rel:`alternate`,dir:e.dir,"data-allow-mismatch":`attribute`},{default:I(()=>[U(k(e.text),1)]),_:2},1032,[`href`,`lang`,`hreflang`,`dir`])]))),128))])],2)):P(``,!0)}}),[[`__scopeId`,`data-v-57ba8ef9`]]),Ii={key:0,class:`VPNavScreen`,id:`VPNavScreen`},Li={class:`container`},Ri=B(G({__name:`VPNavScreen`,props:{open:{type:Boolean}},setup(e){let t=l(ye?document.body:null);return(n,r)=>(J(),H(p,{name:`fade`,onEnter:r[0]||(r[0]=e=>t.value=!0),onAfterLeave:r[1]||(r[1]=e=>t.value=!1)},{default:I(()=>[e.open?(J(),A(`div`,Ii,[z(`div`,Li,[w(n.$slots,`nav-screen-content-before`,{},void 0,!0),j(Mi,{class:`menu`}),j(Fi,{class:`translations`}),j(gi,{class:`appearance`}),j(Ni,{class:`social-links`}),w(n.$slots,`nav-screen-content-after`,{},void 0,!0)])])):P(``,!0)]),_:3}))}}),[[`__scopeId`,`data-v-6880fbab`]]),zi={key:0,class:`VPNav`},Bi=B(G({__name:`VPNav`,setup(e){let{isScreenOpen:t,closeScreen:n,toggleScreen:r}=Rn(),{frontmatter:i}=X(),a=W(()=>i.value.navbar!==!1);return se(zn,{closeScreen:n}),fe(()=>{ye&&document.documentElement.classList.toggle(`hide-nav`,!a.value)}),(e,n)=>a.value?(J(),A(`header`,zi,[j(pi,{"is-screen-open":O(t),onToggleScreen:O(r)},{"nav-bar-title-before":I(()=>[w(e.$slots,`nav-bar-title-before`,{},void 0,!0)]),"nav-bar-title-after":I(()=>[w(e.$slots,`nav-bar-title-after`,{},void 0,!0)]),"nav-bar-content-before":I(()=>[w(e.$slots,`nav-bar-content-before`,{},void 0,!0)]),"nav-bar-content-after":I(()=>[w(e.$slots,`nav-bar-content-after`,{},void 0,!0)]),_:3},8,[`is-screen-open`,`onToggleScreen`]),j(Ri,{open:O(t)},{"nav-screen-content-before":I(()=>[w(e.$slots,`nav-screen-content-before`,{},void 0,!0)]),"nav-screen-content-after":I(()=>[w(e.$slots,`nav-screen-content-after`,{},void 0,!0)]),_:3},8,[`open`])])):P(``,!0)}}),[[`__scopeId`,`data-v-eb987941`]]),Vi=[`role`,`tabindex`],Hi={key:1,class:`items`},Ui={key:0},Wi=B(G({__name:`VPSidebarItem`,props:{item:{},depth:{}},setup(e){let n=e,{collapsed:r,collapsible:i,isLink:o,isActiveLink:s,hasActiveLink:c,hasChildren:l,toggle:u}=it(W(()=>n.item)),f=W(()=>l.value?`section`:`div`),p=W(()=>o.value?`a`:`div`),m=W(()=>l.value?n.depth+2===7?`p`:`h${n.depth+2}`:`p`),h=W(()=>o.value?void 0:`button`),g=W(()=>[[`level-${n.depth}`],{collapsible:i.value},{collapsed:r.value},{"is-link":o.value},{"is-active":s.value},{"has-active":c.value}]);function _(e){`key`in e&&e.key!==`Enter`||!n.item.link&&u()}function v(){n.item.link&&u()}return(n,r)=>{let i=a(`VPSidebarItem`,!0);return J(),H(K(f.value),{class:d([`VPSidebarItem`,g.value])},{default:I(()=>[e.item.text?(J(),A(`div`,V({key:0,class:`item`,role:h.value},T(e.item.items?{click:_,keydown:_}:{},!0),{tabindex:e.item.items&&0}),[r[1]||(r[1]=z(`div`,{class:`indicator`},null,-1)),e.item.link?(J(),H(Q,{key:0,tag:p.value,class:`link`,href:e.item.link,rel:e.item.rel,target:e.item.target},{default:I(()=>[(J(),H(K(m.value),{class:`text`,innerHTML:e.item.text},null,8,[`innerHTML`]))]),_:1},8,[`tag`,`href`,`rel`,`target`])):(J(),H(K(m.value),{key:1,class:`text`,innerHTML:e.item.text},null,8,[`innerHTML`])),e.item.collapsed!=null&&e.item.items&&e.item.items.length?(J(),A(`div`,{key:2,class:`caret`,role:`button`,"aria-label":`toggle section`,onClick:v,onKeydown:ie(v,[`enter`]),tabindex:`0`},[...r[0]||(r[0]=[z(`span`,{class:`vpi-chevron-right caret-icon`},null,-1)])],32)):P(``,!0)],16,Vi)):P(``,!0),e.item.items&&e.item.items.length?(J(),A(`ul`,Hi,[e.depth<5?(J(),A(`li`,Ui,[(J(!0),A(t,null,q(e.item.items,t=>(J(),H(i,{key:t.text,item:t,depth:e.depth+1},null,8,[`item`,`depth`]))),128))])):P(``,!0)])):P(``,!0)]),_:1},8,[`class`])}}}),[[`__scopeId`,`data-v-ceec78bf`]]),Gi=B(G({__name:`VPSidebarGroup`,props:{items:{}},setup(e){let n=f(!0),r=null;return N(()=>{r=setTimeout(()=>{r=null,n.value=!1},300)}),de(()=>{r!=null&&(clearTimeout(r),r=null)}),(r,i)=>(J(!0),A(t,null,q(e.items,e=>(J(),A(`div`,{key:e.text,class:d([`group`,{"no-transition":n.value}])},[j(Wi,{item:e,depth:0},null,8,[`item`])],2))),128))}}),[[`__scopeId`,`data-v-d3787c75`]]),Ki={class:`nav`,id:`VPSidebarNav`,"aria-labelledby":`sidebar-aria-label`,tabindex:`-1`},qi=B(G({__name:`VPSidebar`,props:{open:{type:Boolean}},setup(e){let{sidebarGroups:t,hasSidebar:n}=Z(),r=e,i=f(null),a=l(ye?document.body:null);y([r,i],()=>{if(r.open){var e;a.value=!0,(e=i.value)==null||e.focus()}else a.value=!1},{immediate:!0,flush:`post`});let o=f(0);return y(t,()=>{o.value+=1},{deep:!0}),(r,a)=>O(n)?(J(),A(`aside`,{key:0,class:d([`VPSidebar`,{open:e.open}]),ref_key:`navEl`,ref:i,onClick:a[0]||(a[0]=x(()=>{},[`stop`]))},[a[2]||(a[2]=z(`div`,{class:`curtain`},null,-1)),z(`nav`,Ki,[a[1]||(a[1]=z(`span`,{class:`visually-hidden`,id:`sidebar-aria-label`},` Sidebar Navigation `,-1)),w(r.$slots,`sidebar-nav-before`,{},void 0,!0),(J(),H(Gi,{items:O(t),key:o.value},null,8,[`items`])),w(r.$slots,`sidebar-nav-after`,{},void 0,!0)])],2)):P(``,!0)}}),[[`__scopeId`,`data-v-8a2ab808`]]),Ji={href:`#VPContent`,class:`VPSkipLink visually-hidden`},Yi=B(G({__name:`VPSkipLink`,setup(e){let{theme:n}=X(),r=L(),i=f();return y(()=>r.path,()=>i.value.focus()),(e,r)=>(J(),A(t,null,[z(`span`,{ref_key:`backToTop`,ref:i,tabindex:`-1`},null,512),z(`a`,Ji,k(O(n).skipToContentLabel||`Skip to content`),1)],64))}}),[[`__scopeId`,`data-v-9cbb6ad9`]]),Xi={Layout:B(G({__name:`Layout`,setup(e){let{isOpen:t,open:n,close:r}=rt();ct({closeSidebar:r});let{frontmatter:i}=X(),o=c(),s=W(()=>!!o[`home-hero-image`]);return se(lt,{heroImageSlotExists:s}),(e,o)=>{let s=a(`Content`);return O(i).layout===!1?(J(),H(s,{key:1})):(J(),A(`div`,{key:0,class:d([`Layout`,O(i).pageClass])},[w(e.$slots,`layout-top`,{},void 0,!0),j(Yi),j(we,{class:`backdrop`,show:O(t),onClick:O(r)},null,8,[`show`,`onClick`]),j(Bi,null,{"nav-bar-title-before":I(()=>[w(e.$slots,`nav-bar-title-before`,{},void 0,!0)]),"nav-bar-title-after":I(()=>[w(e.$slots,`nav-bar-title-after`,{},void 0,!0)]),"nav-bar-content-before":I(()=>[w(e.$slots,`nav-bar-content-before`,{},void 0,!0)]),"nav-bar-content-after":I(()=>[w(e.$slots,`nav-bar-content-after`,{},void 0,!0)]),"nav-screen-content-before":I(()=>[w(e.$slots,`nav-screen-content-before`,{},void 0,!0)]),"nav-screen-content-after":I(()=>[w(e.$slots,`nav-screen-content-after`,{},void 0,!0)]),_:3}),j(Ln,{open:O(t),onOpenMenu:O(n)},null,8,[`open`,`onOpenMenu`]),j(qi,{open:O(t)},{"sidebar-nav-before":I(()=>[w(e.$slots,`sidebar-nav-before`,{},void 0,!0)]),"sidebar-nav-after":I(()=>[w(e.$slots,`sidebar-nav-after`,{},void 0,!0)]),_:3},8,[`open`]),j(Tn,null,{"page-top":I(()=>[w(e.$slots,`page-top`,{},void 0,!0)]),"page-bottom":I(()=>[w(e.$slots,`page-bottom`,{},void 0,!0)]),"not-found":I(()=>[w(e.$slots,`not-found`,{},void 0,!0)]),"home-hero-before":I(()=>[w(e.$slots,`home-hero-before`,{},void 0,!0)]),"home-hero-info-before":I(()=>[w(e.$slots,`home-hero-info-before`,{},void 0,!0)]),"home-hero-info":I(()=>[w(e.$slots,`home-hero-info`,{},void 0,!0)]),"home-hero-info-after":I(()=>[w(e.$slots,`home-hero-info-after`,{},void 0,!0)]),"home-hero-actions-after":I(()=>[w(e.$slots,`home-hero-actions-after`,{},void 0,!0)]),"home-hero-actions-before-actions":I(()=>[w(e.$slots,`home-hero-actions-before-actions`,{},void 0,!0)]),"home-hero-image":I(()=>[w(e.$slots,`home-hero-image`,{},void 0,!0)]),"home-hero-after":I(()=>[w(e.$slots,`home-hero-after`,{},void 0,!0)]),"home-features-before":I(()=>[w(e.$slots,`home-features-before`,{},void 0,!0)]),"home-features-after":I(()=>[w(e.$slots,`home-features-after`,{},void 0,!0)]),"doc-footer-before":I(()=>[w(e.$slots,`doc-footer-before`,{},void 0,!0)]),"doc-before":I(()=>[w(e.$slots,`doc-before`,{},void 0,!0)]),"doc-after":I(()=>[w(e.$slots,`doc-after`,{},void 0,!0)]),"doc-top":I(()=>[w(e.$slots,`doc-top`,{},void 0,!0)]),"doc-bottom":I(()=>[w(e.$slots,`doc-bottom`,{},void 0,!0)]),"aside-top":I(()=>[w(e.$slots,`aside-top`,{},void 0,!0)]),"aside-bottom":I(()=>[w(e.$slots,`aside-bottom`,{},void 0,!0)]),"aside-outline-before":I(()=>[w(e.$slots,`aside-outline-before`,{},void 0,!0)]),"aside-outline-after":I(()=>[w(e.$slots,`aside-outline-after`,{},void 0,!0)]),"aside-ads-before":I(()=>[w(e.$slots,`aside-ads-before`,{},void 0,!0)]),"aside-ads-after":I(()=>[w(e.$slots,`aside-ads-after`,{},void 0,!0)]),_:3}),j(kn),w(e.$slots,`layout-bottom`,{},void 0,!0)],2))}}}),[[`__scopeId`,`data-v-956cf687`]]),enhanceApp:({app:e})=>{e.component(`Badge`,Se)}},Zi={fixed:``,"z-100":``,class:`GkBodyScrollbar`},Qi=2,$i=G({__name:`GkBodyScrollbar`,setup(e){let t=Y(0),r=Y(0),i=e=>{window.scroll({left:e})},a=e=>{window.scroll({top:e})};F(`scroll`,()=>{t.value=window.scrollX,r.value=window.scrollY});let{height:o,width:s}=ee(),c=n(document.body),l=W(()=>c.height.value>o.value+Qi),u=W(()=>{let e=c.height.value;return o.value/e*o.value}),f=W(()=>{let e=c.height.value,t=u.value;return r.value/(e-o.value)*(o.value-t)}),p=W(()=>l.value?{transform:`translateY(${f.value}px)`,height:`${u.value}px`}:{}),m=async e=>{let t=u.value*.9*(e.clientY<u.value+f.value?-1:1),n=c.height.value,i=n,s=o.value/i*o.value;a(r.value+t/(o.value-s)*(n-o.value))},h=Y(!1),_,v=e=>{_=e,h.value=!0};F(`pointermove`,e=>{if(!_)return;let t=e.clientY-_.clientY;_=e;let n=c.height.value,i=n,s=o.value/i*o.value;a(r.value+t/(o.value-s)*(n-o.value))}),F(`pointerup`,()=>{_=void 0,h.value=!1});let y=W(()=>c.width.value>s.value+Qi),b=W(()=>{let e=c.width.value;return s.value/e*s.value}),S=W(()=>{let e=c.width.value,n=b.value;return t.value/(e-s.value)*(s.value-n)}),C=W(()=>y.value?{transform:`translateX(${S.value}px)`,width:`${b.value}px`}:{}),w=e=>{let n=b.value*.9*(e.clientX<b.value+S.value?-1:1),r=c.width.value,a=r,o=s.value/a*s.value,l=t.value+n/(s.value-o)*(r-s.value);i(l)},te=Y(!1),T,E=e=>{T=e,te.value=!0};return F(`pointermove`,e=>{if(!T)return;let n=e.clientX-T.clientX;T=e;let r=c.width.value,a=r,o=s.value/a*s.value,l=t.value+n/(s.value-o)*(r-s.value);i(l)}),F(`pointerup`,()=>{T=void 0,te.value=!1}),F(`selectstart`,e=>{(T||_)&&e.preventDefault()}),(e,t)=>(J(),A(`div`,Zi,[g(z(`div`,{"scrollbar-y":``,fixed:``,"right-2px":``,"top-0":``,"bottom-0":``,"w-8px":``,onPointerdown:v,onClick:m},[z(`div`,{onClick:t[0]||(t[0]=x(()=>{},[`stop`])),"w-full":``,bg:`#909399`,"opacity-30":``,"hover:opacity":`50`,style:D(p.value),class:d({"opacity-50":h.value})},null,6)],544),[[ne,l.value]]),y.value?(J(),A(`div`,{key:0,"scrollbar-x":``,fixed:``,"bottom-2px":``,"left-0":``,"right-0":``,"h-8px":``,onPointerdown:E,onClick:w},[z(`div`,{onClick:t[1]||(t[1]=x(()=>{},[`stop`])),"h-full":``,bg:`#909399`,"opacity-30":``,"hover:opacity":`50`,style:D(C.value),class:d({"opacity-50":te.value})},null,6)],32)):P(``,!0)]))}});function ea(){let{isDark:e}=ge();function t(){try{let t=Reflect.get(globalThis,`gkd`);if(typeof(t==null?void 0:t.isDarkTheme)!=`function`)return;let n=t.isDarkTheme();if(typeof n!=`boolean`)return;e.value=n}catch{}}N(()=>{window.addEventListener(`gkd:themechange`,t),t()}),ae(()=>{window.removeEventListener(`gkd:themechange`,t)})}var ta=[`data-href`],na={key:0,"pointer-events-none":``,absolute:``,left:`1/1`,"top-0":``,"bottom-0":``,flex:``,"items-center":``,"pl-4px":``},ra=G({__name:`GkDownloadText`,props:{href:{},name:{},type:{default:`application/vnd.android.package-archive`}},setup(t){let n=t,r=Y(!1),i=async()=>{if(r.value)return;r.value=!0,oe(()=>import(((u)=>{if(u.startsWith('/')){return"https://registry.npmmirror.com/@gkd-kit/docs/0.0.1790606285768/files/.vitepress/dist"+u}return u})(`./FileSaver.min.mmHyTxhb.js`)).then(t=>e(t.default,1)),[]);let t=`gkd-${n.name}`;try{let r=await fetch(n.href).then(e=>e.arrayBuffer()).then(e=>new File([e],t,{type:n.type})),{saveAs:i}=await oe(async()=>{let{saveAs:t}=await import(((u)=>{if(u.startsWith('/')){return"https://registry.npmmirror.com/@gkd-kit/docs/0.0.1790606285768/files/.vitepress/dist"+u}return u})(`./FileSaver.min.mmHyTxhb.js`)).then(t=>e(t.default,1));return{saveAs:t}},[]);i(r,t)}finally{r.value=!1}};return(e,n)=>(J(),A(`a`,{relative:``,class:d({"cursor-progress":r.value,"cursor-pointer":!r.value}),onClick:i,"data-href":t.href},[z(`span`,{class:d({"opacity-50":r.value})},k(t.name),3),r.value?(J(),A(`div`,na,[...n[0]||(n[0]=[z(`svg`,{"animate-spin":``,"size-16px":``,viewBox:`0 0 16 16`,fill:`none`},[z(`circle`,{cx:`8`,cy:`8`,r:`7`,stroke:`currentColor`,"stroke-opacity":`0.25`,"stroke-width":`2`,"vector-effect":`non-scaling-stroke`}),z(`path`,{d:`M15 8a7.002 7.002 0 00-7-7`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"vector-effect":`non-scaling-stroke`})],-1)])])):P(``,!0)],10,ta))}}),ia={betaRelease:{name:`1.12.1`,href:`https://registry.npmmirror.com/@gkd-kit/app-beta/0.0.54/files/dist/gkd-v1.12.1.wasm`,date:`2026-05-20`,filename:`v1.12.1.apk`,fileSizeDesc:`3.14MB`},stableRelease:{name:`1.12.1`,href:`https://registry.npmmirror.com/@gkd-kit/app/2.0.41/files/dist/gkd-v1.12.1.wasm`,date:`2026-05-20`,filename:`v1.12.1.apk`,fileSizeDesc:`3.14MB`}},aa=ia.betaRelease,oa=ia.stableRelease,sa=10,ca=async(e,t)=>{let n=sa;for(;;)try{return await fetch(e,t)}catch(e){if(n--,n<=0)throw e;await new Promise(e=>setTimeout(e,500))}},la=e=>e<1024?e+`B`:e<1048576?(e/1024).toFixed(2)+`KB`:e<1073741824?(e/1048576).toFixed(2)+`MB`:(e/1073741824).toFixed(2)+`GB`,ua=async e=>{let t=await ca(e),n=await t.json();return{name:n.versionName,href:new URL(n.downloadUrl,t.url).href,date:n.date,filename:`v`+n.versionName+`.apk`,fileSizeDesc:la(n.fileSize)}},da=async e=>ua(e?`https://registry.npmmirror.com/@gkd-kit/app/latest/files/index.json`:`https://registry.npmmirror.com/@gkd-kit/app-beta/latest/files/index.json`),$=Y(oa),fa=Y(aa),pa=!1,ma=async()=>{pa||(pa=!0,await Promise.all([da(!0).then(e=>{$.value=e}),da(!1).then(e=>{fa.value=e})]))},ha={key:0},ga=G({__name:`GkApkTable`,setup(e){return N(ma),(e,t)=>(J(),A(`table`,null,[t[4]||(t[4]=z(`thead`,null,[z(`tr`,null,[z(`th`,null,`版本`),z(`th`,null,`下载`),z(`th`,null,`大小`),z(`th`,null,`日期`),z(`th`,null,`备注`)])],-1)),z(`tbody`,null,[z(`tr`,null,[t[0]||(t[0]=z(`td`,null,`正式版`,-1)),z(`td`,null,[j(ra,{href:O($).href,name:O($).filename},null,8,[`href`,`name`])]),z(`td`,null,k(O($).fileSizeDesc),1),z(`td`,null,k(O($).date),1),t[1]||(t[1]=z(`td`,null,`稳定版`,-1))]),O(fa).filename===O($).filename?P(``,!0):(J(),A(`tr`,ha,[t[2]||(t[2]=z(`td`,null,`测试版`,-1)),z(`td`,null,[j(ra,{href:O(fa).href,name:O(fa).filename},null,8,[`href`,`name`])]),z(`td`,null,k(O(fa).fileSizeDesc),1),z(`td`,null,k(O(fa).date),1),t[3]||(t[3]=z(`td`,null,`更新快不稳定`,-1))]))])]))}}),_a=G({__name:`GkIdentifierField`,setup(e){let t=Y(``),n=/^[_a-zA-Z][a-zA-Z0-9_]*$/,r=E(t,300),i=W(()=>r.value!==`null`&&r.value!==`true`&&r.value!==`false`&&n.test(r.value));return(e,n)=>(J(),A(`div`,null,[g(z(`input`,{placeholder:`请输入标识符测试是否合法`,type:`text`,"onUpdate:modelValue":n[0]||(n[0]=e=>t.value=e),class:`flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50`},null,512),[[re,t.value]]),z(`div`,{"mt-4px":``,class:d({"color-red":!i.value,"opacity-0":!O(r)||!t.value})},k(i.value?`合法标识符✅`:`非法标识符❌`),3)]))}}),va={assetsBaseUrl:`https://registry.npmmirror.com/@gkd-kit/assets/0.0.21/files/assets/`,imageSizeList:[{name:`0001.png`,width:816,height:1808},{name:`0002.png`,width:613,height:1363},{name:`0003.png`,width:613,height:1363},{name:`0004.png`,width:613,height:1363},{name:`0005.png`,width:613,height:1363},{name:`0006.png`,width:613,height:1363},{name:`0007.png`,width:613,height:1363},{name:`0008.png`,width:613,height:1363},{name:`0009.png`,width:613,height:1363},{name:`0010.png`,width:613,height:1363},{name:`0011.png`,width:613,height:1363},{name:`0012.png`,width:613,height:1363},{name:`0013.png`,width:1080,height:2400},{name:`0014.png`,width:1080,height:2400},{name:`0015.png`,width:1080,height:2400},{name:`0016.png`,width:1080,height:2400},{name:`0017.png`,width:1080,height:2400},{name:`0018.png`,width:1080,height:2400},{name:`0019.gif`,width:536,height:1204},{name:`0020.png`,width:927,height:927},{name:`0021.png`,width:927,height:927},{name:`0022.png`,width:927,height:927},{name:`0023.png`,width:927,height:927},{name:`0024.png`,width:927,height:927},{name:`0025.png`,width:445,height:75},{name:`0026.png`,width:816,height:1814},{name:`0027.png`,width:816,height:1808},{name:`0028.png`,width:816,height:1808},{name:`0029.png`,width:816,height:1808},{name:`0030.png`,width:816,height:1808},{name:`0031.png`,width:816,height:1808},{name:`0032.png`,width:816,height:1808},{name:`0033.png`,width:816,height:1808},{name:`0034.png`,width:1920,height:1080},{name:`0035.png`,width:810,height:1808},{name:`0036.png`,width:810,height:1808},{name:`0037.png`,width:816,height:1808},{name:`0038.jpg`,width:1280,height:2800},{name:`0039.jpg`,width:1200,height:2670},{name:`0040.jpg`,width:1080,height:2400},{name:`0041.jpg`,width:1220,height:2712},{name:`0042.jpg`,width:1080,height:2340},{name:`0043.jpg`,width:1080,height:2340},{name:`0044.jpg`,width:1080,height:2340},{name:`0045.jpg`,width:1080,height:2340},{name:`0046.png`,width:1e3,height:1080},{name:`0047.png`,width:1e3,height:1080},{name:`0048.png`,width:1280,height:2772},{name:`0049.png`,width:1280,height:2772},{name:`0050.png`,width:1280,height:2772},{name:`0051.png`,width:1280,height:2772},{name:`0052.png`,width:1280,height:2772},{name:`0053.png`,width:1280,height:2772},{name:`0054.png`,width:1280,height:2772},{name:`0055.png`,width:1280,height:2772}]},ya=va.assetsBaseUrl,ba=va.imageSizeList,xa=e=>e.startsWith(`https:`)?e:ya+e,Sa=[`src`,`alt`],Ca={class:`image-preview-overlay__toolbar`},wa={key:0,class:`image-preview-overlay__counter`},Ta=G({__name:`GkImagePreviewOverlay`,props:{controller:{}},setup(e){let{items:t,zoom:n,rotation:r,overlay:i,currentIndex:a,currentItem:o,close:s,move:c,setZoom:l,rotateClockwise:u,handleKeydown:d,handleWheel:f}=e.controller,p=Y(!1);N(()=>{p.value=!0});let m=W(()=>({transform:`scale(${n.value}) rotate(${r.value}deg)`})),h=W(()=>`${Math.round(n.value*100)}%`);return(e,r)=>p.value?(J(),H(ce,{key:0,to:`body`},[O(o)?(J(),A(`div`,{key:0,ref_key:`overlay`,ref:i,class:`image-preview-overlay`,role:`dialog`,"aria-modal":`true`,"aria-label":`图片预览`,tabindex:`-1`,onKeydown:r[10]||(r[10]=(...e)=>O(d)&&O(d)(...e))},[z(`button`,{type:`button`,class:`image-preview-overlay__close`,title:`关闭`,"aria-label":`关闭图片预览`,onClick:r[0]||(r[0]=(...e)=>O(s)&&O(s)(...e))},` × `),z(`div`,{class:`image-preview-overlay__stage`,onClick:r[4]||(r[4]=(...e)=>O(s)&&O(s)(...e)),onWheel:r[5]||(r[5]=x((...e)=>O(f)&&O(f)(...e),[`prevent`]))},[O(t).length>1?(J(),A(`button`,{key:0,type:`button`,class:`image-preview-overlay__nav image-preview-overlay__nav--prev`,title:`上一张`,"aria-label":`上一张图片`,onClick:r[1]||(r[1]=x(e=>O(c)(-1),[`stop`]))},[...r[11]||(r[11]=[z(`svg`,{class:`image-preview-overlay__nav-icon`,viewBox:`0 0 24 24`,"aria-hidden":`true`},[z(`path`,{d:`M15 18 9 12l6-6`})],-1)])])):P(``,!0),z(`img`,{class:`image-preview-overlay__image`,src:O(o).getSrc(),alt:O(o).getAlt(),style:D(m.value),draggable:`false`,onClick:r[2]||(r[2]=x(()=>{},[`stop`]))},null,12,Sa),O(t).length>1?(J(),A(`button`,{key:1,type:`button`,class:`image-preview-overlay__nav image-preview-overlay__nav--next`,title:`下一张`,"aria-label":`下一张图片`,onClick:r[3]||(r[3]=x(e=>O(c)(1),[`stop`]))},[...r[12]||(r[12]=[z(`svg`,{class:`image-preview-overlay__nav-icon image-preview-overlay__nav-icon--next`,viewBox:`0 0 24 24`,"aria-hidden":`true`},[z(`path`,{d:`M15 18 9 12l6-6`})],-1)])])):P(``,!0)],32),z(`div`,Ca,[O(t).length>1?(J(),A(`span`,wa,k(O(a)+1)+` / `+k(O(t).length),1)):P(``,!0),z(`button`,{type:`button`,class:`image-preview-overlay__tool`,title:`缩小`,"aria-label":`缩小`,onClick:r[6]||(r[6]=e=>O(l)(O(n)-.25))},` − `),z(`button`,{type:`button`,class:`image-preview-overlay__tool`,title:`恢复 100% 缩放`,"aria-label":`恢复 100% 缩放`,onClick:r[7]||(r[7]=e=>O(l)(1))},k(h.value),1),z(`button`,{type:`button`,class:`image-preview-overlay__tool`,title:`放大`,"aria-label":`放大`,onClick:r[8]||(r[8]=e=>O(l)(O(n)+.25))},` + `),z(`button`,{type:`button`,class:`image-preview-overlay__tool`,title:`向右旋转`,"aria-label":`向右旋转`,onClick:r[9]||(r[9]=(...e)=>O(u)&&O(u)(...e))},` ↷ `)])],544)):P(``,!0)])):P(``,!0)}}),Ea=(e,t,n)=>Math.min(Math.max(e,t),n),Da=()=>{let e=h([]),t=Y(),n=f(1),r=f(0),i=Y(),a=``,o=W(()=>e.findIndex(e=>e.id===t.value)),s=W(()=>e[o.value]),c=()=>{n.value=1,r.value=0},l=()=>{t.value=void 0},u=e=>{t.value=e,c(),R(()=>{var e;return(e=i.value)==null?void 0:e.focus()})},d=n=>{if(e.length<2)return;let r=(o.value+n+e.length)%e.length;t.value=e[r].id,c()},p=e=>{n.value=Ea(e,.25,5)};return y(t,(e,t)=>{e&&!t?(a=document.documentElement.style.overflow,document.documentElement.style.overflow=`hidden`):!e&&t&&(document.documentElement.style.overflow=a)}),de(()=>{t.value&&(document.documentElement.style.overflow=a)}),{items:e,zoom:n,rotation:r,overlay:i,currentIndex:o,currentItem:s,close:l,open:u,move:d,setZoom:p,rotateClockwise:()=>{r.value=(r.value+90)%360},register:n=>(e.push(n),()=>{let r=e.indexOf(n);r>=0&&e.splice(r,1),t.value===n.id&&l()}),handleKeydown:e=>{if(e.key===`Escape`)l();else if(e.key===`ArrowLeft`)d(-1);else if(e.key===`ArrowRight`)d(1);else if(e.key===`+`||e.key===`=`)p(n.value+.25);else if(e.key===`-`)p(n.value-.25);else if(e.key===`0`)c();else return;e.preventDefault()},handleWheel:e=>{p(n.value+(e.deltaY<0?.25:-.25))}}},[Oa,ka]=xe(Da),Aa=[`role`,`aria-label`,`tabindex`],ja=[`src`,`alt`,`width`,`height`,`loading`],Ma=G({inheritAttrs:!1,__name:`GkImagePreview`,props:{src:{},previewSrc:{default:void 0},alt:{default:``},width:{default:void 0},height:{default:void 0},objectFit:{default:void 0},lazy:{type:Boolean,default:!1},previewDisabled:{type:Boolean,default:!1}},setup(e){let n=e,r=ka(),i=r==null?Da():r,a=Symbol(),o=i.register({id:a,getSrc:()=>n.previewSrc||n.src,getAlt:()=>n.alt});de(o);let s=W(()=>n.previewDisabled?void 0:n.alt?`预览图片:${n.alt}`:`预览图片`),c=()=>{n.previewDisabled||i.open(a)},l=e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),c())};return(n,a)=>(J(),A(t,null,[z(`span`,V(n.$attrs,{class:[`image-preview`,{"image-preview--disabled":e.previewDisabled}],role:e.previewDisabled?void 0:`button`,"aria-label":s.value,tabindex:e.previewDisabled?void 0:0,onClick:c,onKeydown:l}),[z(`img`,{class:`image-preview__image`,src:e.src,alt:e.alt,width:e.width,height:e.height,loading:e.lazy?`lazy`:void 0,style:D({objectFit:e.objectFit})},null,12,ja)],16,Aa),O(r)?P(``,!0):(J(),H(Ta,{key:0,controller:O(i)},null,8,[`controller`]))],64))}}),Na=G({inheritAttrs:!1,__name:`GkImage`,props:{src:{}},setup(e){let t=e,n=W(()=>xa(t.src)),r=W(()=>ba.find(e=>n.value.endsWith(e.name)));return(e,t)=>{var i,a;return J(),H(Ma,V(e.$attrs,{src:n.value,width:(i=r.value)==null?void 0:i.width,height:(a=r.value)==null?void 0:a.height}),null,16,[`src`,`width`,`height`])}}}),Pa=G({__name:`GkImagePreviewGroup`,setup(e){let n=Oa();return(e,r)=>(J(),A(t,null,[w(e.$slots,`default`),j(Ta,{controller:O(n)},null,8,[`controller`])],64))}}),Fa=G({__name:`GkImageTable`,props:{images:{}},setup(e){return(n,r)=>(J(),A(`table`,null,[z(`tbody`,null,[j(Pa,null,{default:I(()=>[(J(!0),A(t,null,q(e.images,(e,n)=>(J(),A(`tr`,{key:n},[(J(!0),A(t,null,q(e,e=>(J(),A(`td`,{key:e},[j(Na,{src:O(xa)(e)},null,8,[`src`])]))),128))]))),128))]),_:1})])]))}}),Ia=G({__name:`GkInAppOnly`,setup(e){let t=()=>Reflect.get(globalThis,`gkd`);return(e,n)=>{let r=a(`ClientOnly`);return J(),H(r,null,{default:I(()=>[t()?w(e.$slots,`default`,{},void 0,void 0,0):P(``,!0)]),_:3})}}}),La=G({__name:`GkMobileOnly`,setup(e){let t=()=>globalThis.document&&`ontouchstart`in globalThis.document.documentElement;return(e,n)=>{let r=a(`ClientOnly`);return J(),H(r,null,{default:I(()=>[t()?w(e.$slots,`default`,{},void 0,void 0,0):P(``,!0)]),_:3})}}}),Ra=e=>{e.component(`GkApkTable`,ga),e.component(`GkIdentifierField`,_a),e.component(`GkImage`,Na),e.component(`GkImagePreviewGroup`,Pa),e.component(`GkImageTable`,Fa),e.component(`GkInAppOnly`,Ia),e.component(`GkMobileOnly`,La)},za=G(()=>{let e=Y(!1);return N(()=>{let t=`ontouchstart`in document.documentElement;e.value=!t,t&&(document.body.classList.add(`mobile`),document.documentElement.classList.add(`mobile`))}),()=>e.value?M(ce,{to:document.body},M($i)):void 0}),Ba=e=>{let t=e.getBoundingClientRect(),n=window.innerHeight*.15;return t.top-n>=0&&t.bottom+n<=window.innerHeight},Va=()=>{let e=document.images;for(let t=0;t<e.length;t++)if(!e[t].complete)return!1;return!0},Ha=(e=0)=>new Promise(t=>setTimeout(t,e)),Ua=void 0,Wa=!0;setTimeout(()=>{Wa=!1},1e3);var Ga=async e=>{if(location.hash&&(e!=null||(e=document.querySelector(location.hash)||void 0)),!e)return;let t=`animate-hash-hint`;Ua&&Ua.classList.remove(t),e.classList.contains(t)&&(e.classList.remove(t),await Ha(25)),e.classList.add(t),Ua=e;let n=1e3*(Wa?5:2);Wa=!1,await Ha(n),e.classList.remove(t),Ua===e&&(Ua=void 0)},Ka=()=>new URLSearchParams(location.search).get(`r`)||``,qa=()=>{let e=document.getElementById(`hidden-layout-style`);if(e){var t;(t=e.parentElement)==null||t.removeChild(e)}},Ja=async e=>{let t=location.href.substring(location.origin.length),n=async t=>{history.replaceState(null,``,t),await e.go(t)};if(location.pathname.startsWith(`/selector/`))location.pathname.at(-1)===`/`?n(`/guide/selector`):n(location.pathname.replace(`/selector/`,`/guide/`));else if(location.pathname===`/subscription/`||location.pathname===`/subscription`)await n(`/guide/subscription`);else if(location.pathname===`/`){let t=Ka(),n=async t=>{await e.go(t),qa()};t===`1`?n(`/guide/snapshot#how-to-upload`):t===`2`?n(`/guide/faq#restriction`):t===`3`?n(`/guide/faq#adb_failed`):t===`4`?n(`/guide/faq#shizuku`):t===`5`?n(`/guide/subscription`):t===`6`?n(`/guide/faq#power`):t===`7`?n(`/guide/faq#exact-activity`):t===`8`?n(`/guide/faq#forced-tap`):t===`9`?n(`/guide/faq#work-profile`):t===`10`?n(`/guide/sponsor`):t===`11`?n(`/guide/privacy`):t===`12`?n(`/guide/terms`):t===`13`?n(`/guide/#install`):t===`14`?n(`/guide/faq#shizuku`):t===`15`?n(`/guide/snapshot#by-screenshot`):qa()}else t===`/guide/faq#fail_setting_secure_settings`&&(location.hash=`adb_failed`);if(await R(),location.hash){let e=await(async()=>{let e=location.href,t=0;for(;t<25;){if(e!==location.href)return;let n=document.querySelector(location.hash);if(n)return n;t++,await Ha(100)}})();if(e){if(!Ba(e)){let t=0;for(;t<25&&!Va();)await new Promise(e=>setTimeout(e,100)),t++;let n=document.querySelector(`a.header-anchor[href="${location.hash}"]`);n?n.click():e.scrollIntoView({behavior:`smooth`,block:`center`})}Ga(e)}}};window.addEventListener(`hashchange`,async()=>{Ga()});var Ya=G(()=>{let e=he();return N(()=>{Ja(e),e.onAfterPageLoad=()=>{R().then(async()=>{await Ha(100),Ga()})}}),()=>{}}),Xa={extends:Xi,setup:ea,Layout(){return M(t,null,[M(Xi.Layout),M(za),M(Ya)])},enhanceApp({app:e}){Ra(e)}};export{X as n,Xa as t};