@gkd-kit/docs 0.0.1744454663513 → 0.0.1745764428766

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 (98) 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/Integer_.md +10 -10
  36. package/.vitepress/dist/api/type-aliases/Position.html +10 -10
  37. package/.vitepress/dist/api/type-aliases/Position_.md +10 -10
  38. package/.vitepress/dist/assets/{app.BUVRLrQz.js → app.yr8MjCnk.js} +1 -1
  39. package/.vitepress/dist/assets/chunks/@localSearchIndexroot.C7-frqcr.js +1 -0
  40. package/.vitepress/dist/assets/chunks/{VPLocalSearchBox.D0TcbsRe.js → VPLocalSearchBox.DtG5LUqk.js} +2 -2
  41. package/.vitepress/dist/assets/chunks/theme.BdcRUkoU.js +1 -0
  42. package/.vitepress/dist/assets/{guide_example.md.CIvSakBb.js → guide_example.md._nvItEEk.js} +1 -1
  43. package/.vitepress/dist/assets/{guide_example.md.CIvSakBb.lean.js → guide_example.md._nvItEEk.lean.js} +1 -1
  44. package/.vitepress/dist/assets/{guide_external.md.C12yj7Ev.js → guide_external.md.nce4UkMX.js} +1 -1
  45. package/.vitepress/dist/assets/{guide_external.md.C12yj7Ev.lean.js → guide_external.md.nce4UkMX.lean.js} +1 -1
  46. package/.vitepress/dist/assets/guide_faq.md.CPh14eBh.js +21 -0
  47. package/.vitepress/dist/assets/guide_faq.md.CPh14eBh.lean.js +1 -0
  48. package/.vitepress/dist/assets/guide_index.md.De5NeHaJ.js +1 -0
  49. package/.vitepress/dist/assets/{guide_index.md.BETNz-N4.lean.js → guide_index.md.De5NeHaJ.lean.js} +1 -1
  50. package/.vitepress/dist/assets/{guide_node.md.C-sLkcV0.js → guide_node.md.DDkgQUI1.js} +1 -1
  51. package/.vitepress/dist/assets/{guide_node.md.C-sLkcV0.lean.js → guide_node.md.DDkgQUI1.lean.js} +1 -1
  52. package/.vitepress/dist/assets/{guide_optimize.md.DLbDrgwA.js → guide_optimize.md.BefgiU5n.js} +1 -1
  53. package/.vitepress/dist/assets/{guide_optimize.md.DLbDrgwA.lean.js → guide_optimize.md.BefgiU5n.lean.js} +1 -1
  54. package/.vitepress/dist/assets/{guide_privacy.md.B7KEFGLK.js → guide_privacy.md.XaIlBbuR.js} +1 -1
  55. package/.vitepress/dist/assets/{guide_privacy.md.B7KEFGLK.lean.js → guide_privacy.md.XaIlBbuR.lean.js} +1 -1
  56. package/.vitepress/dist/assets/{guide_selector.md.DqrucHLk.js → guide_selector.md.D6pTb50s.js} +1 -1
  57. package/.vitepress/dist/assets/{guide_selector.md.DqrucHLk.lean.js → guide_selector.md.D6pTb50s.lean.js} +1 -1
  58. package/.vitepress/dist/assets/{guide_snapshot.md.BgIQCeEt.js → guide_snapshot.md.DecSnhpL.js} +1 -1
  59. package/.vitepress/dist/assets/{guide_snapshot.md.BgIQCeEt.lean.js → guide_snapshot.md.DecSnhpL.lean.js} +1 -1
  60. package/.vitepress/dist/assets/{guide_subscription.md.nng3ZgBW.js → guide_subscription.md.CJ15NHfQ.js} +1 -1
  61. package/.vitepress/dist/assets/{guide_subscription.md.nng3ZgBW.lean.js → guide_subscription.md.CJ15NHfQ.lean.js} +1 -1
  62. package/.vitepress/dist/assets/{guide_what-is-gkd.md.CZQ-m7ct.js → guide_what-is-gkd.md.Cv-iaVI2.js} +1 -1
  63. package/.vitepress/dist/assets/{guide_what-is-gkd.md.CZQ-m7ct.lean.js → guide_what-is-gkd.md.Cv-iaVI2.lean.js} +1 -1
  64. package/.vitepress/dist/assets/{index.md.Dtm_poIx.js → index.md.BVklXcWT.js} +1 -1
  65. package/.vitepress/dist/assets/{index.md.Dtm_poIx.lean.js → index.md.BVklXcWT.lean.js} +1 -1
  66. package/.vitepress/dist/assets/{style.hcAkYZEj.css → style.Dn2SH0dU.css} +1 -1
  67. package/.vitepress/dist/guide/example.html +11 -11
  68. package/.vitepress/dist/guide/example_.md +11 -11
  69. package/.vitepress/dist/guide/external.html +11 -11
  70. package/.vitepress/dist/guide/external_.md +11 -11
  71. package/.vitepress/dist/guide/faq.html +12 -12
  72. package/.vitepress/dist/guide/faq_.md +12 -12
  73. package/.vitepress/dist/guide/index.html +11 -11
  74. package/.vitepress/dist/guide/index_.md +11 -11
  75. package/.vitepress/dist/guide/node.html +11 -11
  76. package/.vitepress/dist/guide/node_.md +11 -11
  77. package/.vitepress/dist/guide/optimize.html +11 -11
  78. package/.vitepress/dist/guide/optimize_.md +11 -11
  79. package/.vitepress/dist/guide/privacy.html +11 -11
  80. package/.vitepress/dist/guide/privacy_.md +11 -11
  81. package/.vitepress/dist/guide/selector.html +11 -11
  82. package/.vitepress/dist/guide/selector_.md +11 -11
  83. package/.vitepress/dist/guide/snapshot.html +11 -11
  84. package/.vitepress/dist/guide/snapshot_.md +11 -11
  85. package/.vitepress/dist/guide/subscription.html +11 -11
  86. package/.vitepress/dist/guide/subscription_.md +11 -11
  87. package/.vitepress/dist/guide/what-is-gkd.html +11 -11
  88. package/.vitepress/dist/guide/what-is-gkd_.md +11 -11
  89. package/.vitepress/dist/hashmap.json +1 -1
  90. package/.vitepress/dist/index.html +11 -11
  91. package/.vitepress/dist/index_.md +11 -11
  92. package/_config.json +1 -1
  93. package/package.json +1 -1
  94. package/.vitepress/dist/assets/chunks/@localSearchIndexroot.D7cLpkOO.js +0 -1
  95. package/.vitepress/dist/assets/chunks/theme.D_tn3jhX.js +0 -1
  96. package/.vitepress/dist/assets/guide_faq.md.BSt3Na1-.js +0 -21
  97. package/.vitepress/dist/assets/guide_faq.md.BSt3Na1-.lean.js +0 -1
  98. package/.vitepress/dist/assets/guide_index.md.BETNz-N4.js +0 -1
@@ -1,8 +1,8 @@
1
- var Nt=Object.defineProperty;var Ft=(a,e,t)=>e in a?Nt(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t;var Re=(a,e,t)=>Ft(a,typeof e!="symbol"?e+"":e,t);import{V as Ot,D as le,h as ge,ay as et,az as Ct,aA as Rt,aB as At,q as $e,aC as Mt,d as Lt,aD as tt,p as fe,aE as Dt,aF as zt,s as Pt,aG as Vt,v as Ae,P as he,O as _e,aa as $t,a7 as jt,W as Bt,R as Wt,$ as Kt,o as H,b as Jt,j as _,a0 as Ut,k as L,a4 as qt,a5 as Gt,aH as Ht,c as Z,n as nt,e as Se,C as st,F as it,a as pe,t as me,a9 as Qt,aI as rt,aJ as Yt,ae as Zt,ak as Xt,aK as en,_ as tn}from"./framework.DZAoeHqG.js";import{u as nn,c as sn}from"./theme.D_tn3jhX.js";const rn={root:()=>Ot(()=>import(((u)=>{if(u.startsWith('/')){return"https://registry.npmmirror.com/@gkd-kit/docs/0.0.1744454663513/files/.vitepress/dist"+u}return u})("./@localSearchIndexroot.D7cLpkOO.js")),[])};/*!
1
+ var Nt=Object.defineProperty;var Ft=(a,e,t)=>e in a?Nt(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t;var Re=(a,e,t)=>Ft(a,typeof e!="symbol"?e+"":e,t);import{V as Ot,D as le,h as ge,ay as et,az as Ct,aA as Rt,aB as At,q as $e,aC as Mt,d as Lt,aD as tt,p as fe,aE as Dt,aF as zt,s as Pt,aG as Vt,v as Ae,P as he,O as _e,aa as $t,a7 as jt,W as Bt,R as Wt,$ as Kt,o as H,b as Jt,j as _,a0 as Ut,k as L,a4 as qt,a5 as Gt,aH as Ht,c as Z,n as nt,e as Se,C as st,F as it,a as pe,t as me,a9 as Qt,aI as rt,aJ as Yt,ae as Zt,ak as Xt,aK as en,_ as tn}from"./framework.DZAoeHqG.js";import{u as nn,c as sn}from"./theme.BdcRUkoU.js";const rn={root:()=>Ot(()=>import(((u)=>{if(u.startsWith('/')){return"https://registry.npmmirror.com/@gkd-kit/docs/0.0.1745764428766/files/.vitepress/dist"+u}return u})("./@localSearchIndexroot.C7-frqcr.js")),[])};/*!
2
2
  * tabbable 6.2.0
3
3
  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
4
4
  */var mt=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],ke=mt.join(","),vt=typeof Element>"u",re=vt?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Ne=!vt&&Element.prototype.getRootNode?function(a){var e;return a==null||(e=a.getRootNode)===null||e===void 0?void 0:e.call(a)}:function(a){return a==null?void 0:a.ownerDocument},Fe=function a(e,t){var n;t===void 0&&(t=!0);var s=e==null||(n=e.getAttribute)===null||n===void 0?void 0:n.call(e,"inert"),r=s===""||s==="true",i=r||t&&e&&a(e.parentNode);return i},an=function(e){var t,n=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return n===""||n==="true"},gt=function(e,t,n){if(Fe(e))return[];var s=Array.prototype.slice.apply(e.querySelectorAll(ke));return t&&re.call(e,ke)&&s.unshift(e),s=s.filter(n),s},bt=function a(e,t,n){for(var s=[],r=Array.from(e);r.length;){var i=r.shift();if(!Fe(i,!1))if(i.tagName==="SLOT"){var o=i.assignedElements(),l=o.length?o:i.children,c=a(l,!0,n);n.flatten?s.push.apply(s,c):s.push({scopeParent:i,candidates:c})}else{var f=re.call(i,ke);f&&n.filter(i)&&(t||!e.includes(i))&&s.push(i);var v=i.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(i),h=!Fe(v,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(i));if(v&&h){var b=a(v===!0?i.children:v.children,!0,n);n.flatten?s.push.apply(s,b):s.push({scopeParent:i,candidates:b})}else r.unshift.apply(r,i.children)}}return s},yt=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},ie=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||an(e))&&!yt(e)?0:e.tabIndex},on=function(e,t){var n=ie(e);return n<0&&t&&!yt(e)?0:n},ln=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},wt=function(e){return e.tagName==="INPUT"},cn=function(e){return wt(e)&&e.type==="hidden"},un=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(n){return n.tagName==="SUMMARY"});return t},dn=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]},fn=function(e){if(!e.name)return!0;var t=e.form||Ne(e),n=function(o){return t.querySelectorAll('input[type="radio"][name="'+o+'"]')},s;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")s=n(window.CSS.escape(e.name));else try{s=n(e.name)}catch(i){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",i.message),!1}var r=dn(s,e.form);return!r||r===e},hn=function(e){return wt(e)&&e.type==="radio"},pn=function(e){return hn(e)&&!fn(e)},mn=function(e){var t,n=e&&Ne(e),s=(t=n)===null||t===void 0?void 0:t.host,r=!1;if(n&&n!==e){var i,o,l;for(r=!!((i=s)!==null&&i!==void 0&&(o=i.ownerDocument)!==null&&o!==void 0&&o.contains(s)||e!=null&&(l=e.ownerDocument)!==null&&l!==void 0&&l.contains(e));!r&&s;){var c,f,v;n=Ne(s),s=(c=n)===null||c===void 0?void 0:c.host,r=!!((f=s)!==null&&f!==void 0&&(v=f.ownerDocument)!==null&&v!==void 0&&v.contains(s))}}return r},at=function(e){var t=e.getBoundingClientRect(),n=t.width,s=t.height;return n===0&&s===0},vn=function(e,t){var n=t.displayCheck,s=t.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var r=re.call(e,"details>summary:first-of-type"),i=r?e.parentElement:e;if(re.call(i,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="legacy-full"){if(typeof s=="function"){for(var o=e;e;){var l=e.parentElement,c=Ne(e);if(l&&!l.shadowRoot&&s(l)===!0)return at(e);e.assignedSlot?e=e.assignedSlot:!l&&c!==e.ownerDocument?e=c.host:e=l}e=o}if(mn(e))return!e.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return at(e);return!1},gn=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 s=t.children.item(n);if(s.tagName==="LEGEND")return re.call(t,"fieldset[disabled] *")?!0:!s.contains(e)}return!0}t=t.parentElement}return!1},Oe=function(e,t){return!(t.disabled||Fe(t)||cn(t)||vn(t,e)||un(t)||gn(t))},je=function(e,t){return!(pn(t)||ie(t)<0||!Oe(e,t))},bn=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},yn=function a(e){var t=[],n=[];return e.forEach(function(s,r){var i=!!s.scopeParent,o=i?s.scopeParent:s,l=on(o,i),c=i?a(s.candidates):o;l===0?i?t.push.apply(t,c):t.push(o):n.push({documentOrder:r,tabIndex:l,item:s,isScope:i,content:c})}),n.sort(ln).reduce(function(s,r){return r.isScope?s.push.apply(s,r.content):s.push(r.content),s},[]).concat(t)},wn=function(e,t){t=t||{};var n;return t.getShadowRoot?n=bt([e],t.includeContainer,{filter:je.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:bn}):n=gt(e,t.includeContainer,je.bind(null,t)),yn(n)},xn=function(e,t){t=t||{};var n;return t.getShadowRoot?n=bt([e],t.includeContainer,{filter:Oe.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):n=gt(e,t.includeContainer,Oe.bind(null,t)),n},ae=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return re.call(e,ke)===!1?!1:je(t,e)},_n=mt.concat("iframe").join(","),Me=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return re.call(e,_n)===!1?!1:Oe(t,e)};/*!
5
5
  * focus-trap 7.6.4
6
6
  * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
7
7
  */function Be(a,e){(e==null||e>a.length)&&(e=a.length);for(var t=0,n=Array(e);t<e;t++)n[t]=a[t];return n}function Sn(a){if(Array.isArray(a))return Be(a)}function En(a,e,t){return(e=Fn(e))in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function Tn(a){if(typeof Symbol<"u"&&a[Symbol.iterator]!=null||a["@@iterator"]!=null)return Array.from(a)}function In(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
8
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ot(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);e&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(a,s).enumerable})),t.push.apply(t,n)}return t}function lt(a){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?ot(Object(t),!0).forEach(function(n){En(a,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(t)):ot(Object(t)).forEach(function(n){Object.defineProperty(a,n,Object.getOwnPropertyDescriptor(t,n))})}return a}function kn(a){return Sn(a)||Tn(a)||On(a)||In()}function Nn(a,e){if(typeof a!="object"||!a)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var n=t.call(a,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(a)}function Fn(a){var e=Nn(a,"string");return typeof e=="symbol"?e:e+""}function On(a,e){if(a){if(typeof a=="string")return Be(a,e);var t={}.toString.call(a).slice(8,-1);return t==="Object"&&a.constructor&&(t=a.constructor.name),t==="Map"||t==="Set"?Array.from(a):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Be(a,e):void 0}}var ct={activateTrap:function(e,t){if(e.length>0){var n=e[e.length-1];n!==t&&n._setPausedState(!0)}var s=e.indexOf(t);s===-1||e.splice(s,1),e.push(t)},deactivateTrap:function(e,t){var n=e.indexOf(t);n!==-1&&e.splice(n,1),e.length>0&&!e[e.length-1]._isManuallyPaused()&&e[e.length-1]._setPausedState(!1)}},Cn=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},Rn=function(e){return(e==null?void 0:e.key)==="Escape"||(e==null?void 0:e.key)==="Esc"||(e==null?void 0:e.keyCode)===27},be=function(e){return(e==null?void 0:e.key)==="Tab"||(e==null?void 0:e.keyCode)===9},An=function(e){return be(e)&&!e.shiftKey},Mn=function(e){return be(e)&&e.shiftKey},ut=function(e){return setTimeout(e,0)},ve=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),s=1;s<t;s++)n[s-1]=arguments[s];return typeof e=="function"?e.apply(void 0,n):e},Ee=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},Ln=[],Dn=function(e,t){var n=(t==null?void 0:t.document)||document,s=(t==null?void 0:t.trapStack)||Ln,r=lt({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:An,isKeyBackward:Mn},t),i={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},o,l=function(u,d,g){return u&&u[d]!==void 0?u[d]:r[g||d]},c=function(u,d){var g=typeof(d==null?void 0:d.composedPath)=="function"?d.composedPath():void 0;return i.containerGroups.findIndex(function(E){var T=E.container,F=E.tabbableNodes;return T.contains(u)||(g==null?void 0:g.includes(T))||F.find(function(S){return S===u})})},f=function(u){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},g=d.hasFallback,E=g===void 0?!1:g,T=d.params,F=T===void 0?[]:T,S=r[u];if(typeof S=="function"&&(S=S.apply(void 0,kn(F))),S===!0&&(S=void 0),!S){if(S===void 0||S===!1)return S;throw new Error("`".concat(u,"` was specified but was not a node, or did not return a node"))}var C=S;if(typeof S=="string"){try{C=n.querySelector(S)}catch(m){throw new Error("`".concat(u,'` appears to be an invalid selector; error="').concat(m.message,'"'))}if(!C&&!E)throw new Error("`".concat(u,"` as selector refers to no known node"))}return C},v=function(){var u=f("initialFocus",{hasFallback:!0});if(u===!1)return!1;if(u===void 0||u&&!Me(u,r.tabbableOptions))if(c(n.activeElement)>=0)u=n.activeElement;else{var d=i.tabbableGroups[0],g=d&&d.firstTabbableNode;u=g||f("fallbackFocus")}else u===null&&(u=f("fallbackFocus"));if(!u)throw new Error("Your focus-trap needs to have at least one focusable element");return u},h=function(){if(i.containerGroups=i.containers.map(function(u){var d=wn(u,r.tabbableOptions),g=xn(u,r.tabbableOptions),E=d.length>0?d[0]:void 0,T=d.length>0?d[d.length-1]:void 0,F=g.find(function(m){return ae(m)}),S=g.slice().reverse().find(function(m){return ae(m)}),C=!!d.find(function(m){return ie(m)>0});return{container:u,tabbableNodes:d,focusableNodes:g,posTabIndexesFound:C,firstTabbableNode:E,lastTabbableNode:T,firstDomTabbableNode:F,lastDomTabbableNode:S,nextTabbableNode:function(p){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,O=d.indexOf(p);return O<0?I?g.slice(g.indexOf(p)+1).find(function(z){return ae(z)}):g.slice(0,g.indexOf(p)).reverse().find(function(z){return ae(z)}):d[O+(I?1:-1)]}}}),i.tabbableGroups=i.containerGroups.filter(function(u){return u.tabbableNodes.length>0}),i.tabbableGroups.length<=0&&!f("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(i.containerGroups.find(function(u){return u.posTabIndexesFound})&&i.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},b=function(u){var d=u.activeElement;if(d)return d.shadowRoot&&d.shadowRoot.activeElement!==null?b(d.shadowRoot):d},y=function(u){if(u!==!1&&u!==b(document)){if(!u||!u.focus){y(v());return}u.focus({preventScroll:!!r.preventScroll}),i.mostRecentlyFocusedNode=u,Cn(u)&&u.select()}},x=function(u){var d=f("setReturnFocus",{params:[u]});return d||(d===!1?!1:u)},w=function(u){var d=u.target,g=u.event,E=u.isBackward,T=E===void 0?!1:E;d=d||Ee(g),h();var F=null;if(i.tabbableGroups.length>0){var S=c(d,g),C=S>=0?i.containerGroups[S]:void 0;if(S<0)T?F=i.tabbableGroups[i.tabbableGroups.length-1].lastTabbableNode:F=i.tabbableGroups[0].firstTabbableNode;else if(T){var m=i.tabbableGroups.findIndex(function(V){var k=V.firstTabbableNode;return d===k});if(m<0&&(C.container===d||Me(d,r.tabbableOptions)&&!ae(d,r.tabbableOptions)&&!C.nextTabbableNode(d,!1))&&(m=S),m>=0){var p=m===0?i.tabbableGroups.length-1:m-1,I=i.tabbableGroups[p];F=ie(d)>=0?I.lastTabbableNode:I.lastDomTabbableNode}else be(g)||(F=C.nextTabbableNode(d,!1))}else{var O=i.tabbableGroups.findIndex(function(V){var k=V.lastTabbableNode;return d===k});if(O<0&&(C.container===d||Me(d,r.tabbableOptions)&&!ae(d,r.tabbableOptions)&&!C.nextTabbableNode(d))&&(O=S),O>=0){var z=O===i.tabbableGroups.length-1?0:O+1,P=i.tabbableGroups[z];F=ie(d)>=0?P.firstTabbableNode:P.firstDomTabbableNode}else be(g)||(F=C.nextTabbableNode(d))}}else F=f("fallbackFocus");return F},R=function(u){var d=Ee(u);if(!(c(d,u)>=0)){if(ve(r.clickOutsideDeactivates,u)){o.deactivate({returnFocus:r.returnFocusOnDeactivate});return}ve(r.allowOutsideClick,u)||u.preventDefault()}},A=function(u){var d=Ee(u),g=c(d,u)>=0;if(g||d instanceof Document)g&&(i.mostRecentlyFocusedNode=d);else{u.stopImmediatePropagation();var E,T=!0;if(i.mostRecentlyFocusedNode)if(ie(i.mostRecentlyFocusedNode)>0){var F=c(i.mostRecentlyFocusedNode),S=i.containerGroups[F].tabbableNodes;if(S.length>0){var C=S.findIndex(function(m){return m===i.mostRecentlyFocusedNode});C>=0&&(r.isKeyForward(i.recentNavEvent)?C+1<S.length&&(E=S[C+1],T=!1):C-1>=0&&(E=S[C-1],T=!1))}}else i.containerGroups.some(function(m){return m.tabbableNodes.some(function(p){return ie(p)>0})})||(T=!1);else T=!1;T&&(E=w({target:i.mostRecentlyFocusedNode,isBackward:r.isKeyBackward(i.recentNavEvent)})),y(E||i.mostRecentlyFocusedNode||v())}i.recentNavEvent=void 0},J=function(u){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;i.recentNavEvent=u;var g=w({event:u,isBackward:d});g&&(be(u)&&u.preventDefault(),y(g))},Q=function(u){(r.isKeyForward(u)||r.isKeyBackward(u))&&J(u,r.isKeyBackward(u))},W=function(u){Rn(u)&&ve(r.escapeDeactivates,u)!==!1&&(u.preventDefault(),o.deactivate())},$=function(u){var d=Ee(u);c(d,u)>=0||ve(r.clickOutsideDeactivates,u)||ve(r.allowOutsideClick,u)||(u.preventDefault(),u.stopImmediatePropagation())},j=function(){if(i.active)return ct.activateTrap(s,o),i.delayInitialFocusTimer=r.delayInitialFocus?ut(function(){y(v())}):y(v()),n.addEventListener("focusin",A,!0),n.addEventListener("mousedown",R,{capture:!0,passive:!1}),n.addEventListener("touchstart",R,{capture:!0,passive:!1}),n.addEventListener("click",$,{capture:!0,passive:!1}),n.addEventListener("keydown",Q,{capture:!0,passive:!1}),n.addEventListener("keydown",W),o},ye=function(){if(i.active)return n.removeEventListener("focusin",A,!0),n.removeEventListener("mousedown",R,!0),n.removeEventListener("touchstart",R,!0),n.removeEventListener("click",$,!0),n.removeEventListener("keydown",Q,!0),n.removeEventListener("keydown",W),o},M=function(u){var d=u.some(function(g){var E=Array.from(g.removedNodes);return E.some(function(T){return T===i.mostRecentlyFocusedNode})});d&&y(v())},U=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(M):void 0,q=function(){U&&(U.disconnect(),i.active&&!i.paused&&i.containers.map(function(u){U.observe(u,{subtree:!0,childList:!0})}))};return o={get active(){return i.active},get paused(){return i.paused},activate:function(u){if(i.active)return this;var d=l(u,"onActivate"),g=l(u,"onPostActivate"),E=l(u,"checkCanFocusTrap");E||h(),i.active=!0,i.paused=!1,i.nodeFocusedBeforeActivation=n.activeElement,d==null||d();var T=function(){E&&h(),j(),q(),g==null||g()};return E?(E(i.containers.concat()).then(T,T),this):(T(),this)},deactivate:function(u){if(!i.active)return this;var d=lt({onDeactivate:r.onDeactivate,onPostDeactivate:r.onPostDeactivate,checkCanReturnFocus:r.checkCanReturnFocus},u);clearTimeout(i.delayInitialFocusTimer),i.delayInitialFocusTimer=void 0,ye(),i.active=!1,i.paused=!1,q(),ct.deactivateTrap(s,o);var g=l(d,"onDeactivate"),E=l(d,"onPostDeactivate"),T=l(d,"checkCanReturnFocus"),F=l(d,"returnFocus","returnFocusOnDeactivate");g==null||g();var S=function(){ut(function(){F&&y(x(i.nodeFocusedBeforeActivation)),E==null||E()})};return F&&T?(T(x(i.nodeFocusedBeforeActivation)).then(S,S),this):(S(),this)},pause:function(u){return i.active?(i.manuallyPaused=!0,this._setPausedState(!0,u)):this},unpause:function(u){return i.active?(i.manuallyPaused=!1,s[s.length-1]!==this?this:this._setPausedState(!1,u)):this},updateContainerElements:function(u){var d=[].concat(u).filter(Boolean);return i.containers=d.map(function(g){return typeof g=="string"?n.querySelector(g):g}),i.active&&h(),q(),this}},Object.defineProperties(o,{_isManuallyPaused:{value:function(){return i.manuallyPaused}},_setPausedState:{value:function(u,d){if(i.paused===u)return this;if(i.paused=u,u){var g=l(d,"onPause"),E=l(d,"onPostPause");g==null||g(),ye(),q(),E==null||E()}else{var T=l(d,"onUnpause"),F=l(d,"onPostUnpause");T==null||T(),h(),j(),q(),F==null||F()}return this}}}),o.updateContainerElements(e),o};function zn(a,e={}){let t;const{immediate:n,...s}=e,r=le(!1),i=le(!1),o=h=>t&&t.activate(h),l=h=>t&&t.deactivate(h),c=()=>{t&&(t.pause(),i.value=!0)},f=()=>{t&&(t.unpause(),i.value=!1)},v=ge(()=>{const h=et(a);return Ct(h).map(b=>{const y=et(b);return typeof y=="string"?y:Rt(y)}).filter(At)});return $e(v,h=>{h.length&&(t=Dn(h,{...s,onActivate(){r.value=!0,e.onActivate&&e.onActivate()},onDeactivate(){r.value=!1,e.onDeactivate&&e.onDeactivate()}}),n&&o())},{flush:"post"}),Mt(()=>l()),{hasFocus:r,isPaused:i,activate:o,deactivate:l,pause:c,unpause:f}}class ce{constructor(e,t=!0,n=[],s=5e3){this.ctx=e,this.iframes=t,this.exclude=n,this.iframesTimeout=s}static matches(e,t){const n=typeof t=="string"?[t]:t,s=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(s){let r=!1;return n.every(i=>s.call(e,i)?(r=!0,!1):!0),r}else return!1}getContexts(){let e,t=[];return typeof this.ctx>"u"||!this.ctx?e=[]:NodeList.prototype.isPrototypeOf(this.ctx)?e=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?e=this.ctx:typeof this.ctx=="string"?e=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):e=[this.ctx],e.forEach(n=>{const s=t.filter(r=>r.contains(n)).length>0;t.indexOf(n)===-1&&!s&&t.push(n)}),t}getIframeContents(e,t,n=()=>{}){let s;try{const r=e.contentWindow;if(s=r.document,!r||!s)throw new Error("iframe inaccessible")}catch{n()}s&&t(s)}isIframeBlank(e){const t="about:blank",n=e.getAttribute("src").trim();return e.contentWindow.location.href===t&&n!==t&&n}observeIframeLoad(e,t,n){let s=!1,r=null;const i=()=>{if(!s){s=!0,clearTimeout(r);try{this.isIframeBlank(e)||(e.removeEventListener("load",i),this.getIframeContents(e,t,n))}catch{n()}}};e.addEventListener("load",i),r=setTimeout(i,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,s=>{n++,this.waitForIframes(s.querySelector("html"),()=>{--n||t()})},s=>{s||t()})}forEachIframe(e,t,n,s=()=>{}){let r=e.querySelectorAll("iframe"),i=r.length,o=0;r=Array.prototype.slice.call(r);const l=()=>{--i<=0&&s(o)};i||l(),r.forEach(c=>{ce.matches(c,this.exclude)?l():this.onIframeReady(c,f=>{t(c)&&(o++,n(f)),l()},l)})}createIterator(e,t,n){return document.createNodeIterator(e,t,n,!1)}createInstanceOnIframe(e){return new ce(e.querySelector("html"),this.iframes)}compareNodeIframe(e,t,n){const s=e.compareDocumentPosition(n),r=Node.DOCUMENT_POSITION_PRECEDING;if(s&r)if(t!==null){const i=t.compareDocumentPosition(n),o=Node.DOCUMENT_POSITION_FOLLOWING;if(i&o)return!0}else return!0;return!1}getIteratorNode(e){const t=e.previousNode();let n;return t===null?n=e.nextNode():n=e.nextNode()&&e.nextNode(),{prevNode:t,node:n}}checkIframeFilter(e,t,n,s){let r=!1,i=!1;return s.forEach((o,l)=>{o.val===n&&(r=l,i=o.handled)}),this.compareNodeIframe(e,t,n)?(r===!1&&!i?s.push({val:n,handled:!0}):r!==!1&&!i&&(s[r].handled=!0),!0):(r===!1&&s.push({val:n,handled:!1}),!1)}handleOpenIframes(e,t,n,s){e.forEach(r=>{r.handled||this.getIframeContents(r.val,i=>{this.createInstanceOnIframe(i).forEachNode(t,n,s)})})}iterateThroughNodes(e,t,n,s,r){const i=this.createIterator(t,e,s);let o=[],l=[],c,f,v=()=>({prevNode:f,node:c}=this.getIteratorNode(i),c);for(;v();)this.iframes&&this.forEachIframe(t,h=>this.checkIframeFilter(c,f,h,o),h=>{this.createInstanceOnIframe(h).forEachNode(e,b=>l.push(b),s)}),l.push(c);l.forEach(h=>{n(h)}),this.iframes&&this.handleOpenIframes(o,e,n,s),r()}forEachNode(e,t,n,s=()=>{}){const r=this.getContexts();let i=r.length;i||s(),r.forEach(o=>{const l=()=>{this.iterateThroughNodes(e,o,t,n,()=>{--i<=0&&s()})};this.iframes?this.waitForIframes(o,l):l()})}}let Pn=class{constructor(e){this.ctx=e,this.ie=!1;const t=window.navigator.userAgent;(t.indexOf("MSIE")>-1||t.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(e){this._opt=Object.assign({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:()=>{},noMatch:()=>{},filter:()=>!0,done:()=>{},debug:!1,log:window.console},e)}get opt(){return this._opt}get iterator(){return new ce(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(e,t="debug"){const 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){const t=this.opt.synonyms,n=this.opt.caseSensitive?"":"i",s=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let r in t)if(t.hasOwnProperty(r)){const i=t[r],o=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(r):this.escapeStr(r),l=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(i):this.escapeStr(i);o!==""&&l!==""&&(e=e.replace(new RegExp(`(${this.escapeStr(o)}|${this.escapeStr(l)})`,`gm${n}`),s+`(${this.processSynomyms(o)}|${this.processSynomyms(l)})`+s))}return e}processSynomyms(e){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),e}setupWildcardsRegExp(e){return e=e.replace(/(?:\\)*\?/g,t=>t.charAt(0)==="\\"?"?":""),e.replace(/(?:\\)*\*/g,t=>t.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(e){let t=this.opt.wildcards==="withSpaces";return e.replace(/\u0001/g,t?"[\\S\\s]?":"\\S?").replace(/\u0002/g,t?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(e){return e.replace(/[^(|)\\]/g,(t,n,s)=>{let r=s.charAt(n+1);return/[(|)\\]/.test(r)||r===""?t:t+"\0"})}createJoinersRegExp(e){let t=[];const 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){const 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ŽŻŹ"]:["aàáảãạăằắẳẵặâầấẩẫậäåāąAÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćčCÇĆČ","dđďDĐĎ","eèéẻẽẹêềếểễệëěēęEÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïīIÌÍỈĨỊÎÏĪ","lłLŁ","nñňńNÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøōOÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rřRŘ","sšśșşSŠŚȘŞ","tťțţTŤȚŢ","uùúủũụưừứửữựûüůūUÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿYÝỲỶỸỴŸ","zžżźZŽŻŹ"];let s=[];return e.split("").forEach(r=>{n.every(i=>{if(i.indexOf(r)!==-1){if(s.indexOf(i)>-1)return!1;e=e.replace(new RegExp(`[${i}]`,`gm${t}`),`[${i}]`),s.push(i)}return!0})}),e}createMergedBlanksRegExp(e){return e.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(e){const t="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~¡¿";let n=this.opt.accuracy,s=typeof n=="string"?n:n.value,r=typeof n=="string"?[]:n.limiters,i="";switch(r.forEach(o=>{i+=`|${this.escapeStr(o)}`}),s){case"partially":default:return`()(${e})`;case"complementary":return i="\\s"+(i||this.escapeStr(t)),`()([^${i}]*${e}[^${i}]*)`;case"exactly":return`(^|\\s${i})(${e})(?=$|\\s${i})`}}getSeparatedKeywords(e){let t=[];return e.forEach(n=>{this.opt.separateWordSearch?n.split(" ").forEach(s=>{s.trim()&&t.indexOf(s)===-1&&t.push(s)}):n.trim()&&t.indexOf(n)===-1&&t.push(n)}),{keywords:t.sort((n,s)=>s.length-n.length),length:t.length}}isNumeric(e){return Number(parseFloat(e))==e}checkRanges(e){if(!Array.isArray(e)||Object.prototype.toString.call(e[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(e),[];const t=[];let n=0;return e.sort((s,r)=>s.start-r.start).forEach(s=>{let{start:r,end:i,valid:o}=this.callNoMatchOnInvalidRanges(s,n);o&&(s.start=r,s.length=i-r,t.push(s),n=i)}),t}callNoMatchOnInvalidRanges(e,t){let n,s,r=!1;return e&&typeof e.start<"u"?(n=parseInt(e.start,10),s=n+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&s-t>0&&s-n>0?r=!0:(this.log(`Ignoring invalid or overlapping range: ${JSON.stringify(e)}`),this.opt.noMatch(e))):(this.log(`Ignoring invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)),{start:n,end:s,valid:r}}checkWhitespaceRanges(e,t,n){let s,r=!0,i=n.length,o=t-i,l=parseInt(e.start,10)-o;return l=l>i?i:l,s=l+parseInt(e.length,10),s>i&&(s=i,this.log(`End range automatically set to the max value of ${i}`)),l<0||s-l<0||l>i||s>i?(r=!1,this.log(`Invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)):n.substring(l,s).replace(/\s+/g,"")===""&&(r=!1,this.log("Skipping whitespace only range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:l,end:s,valid:r}}getTextNodes(e){let t="",n=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,s=>{n.push({start:t.length,end:(t+=s.textContent).length,node:s})},s=>this.matchesExclude(s.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{e({value:t,nodes:n})})}matchesExclude(e){return ce.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(e,t,n){const s=this.opt.element?this.opt.element:"mark",r=e.splitText(t),i=r.splitText(n-t);let o=document.createElement(s);return o.setAttribute("data-markjs","true"),this.opt.className&&o.setAttribute("class",this.opt.className),o.textContent=r.textContent,r.parentNode.replaceChild(o,r),i}wrapRangeInMappedTextNode(e,t,n,s,r){e.nodes.every((i,o)=>{const l=e.nodes[o+1];if(typeof l>"u"||l.start>t){if(!s(i.node))return!1;const c=t-i.start,f=(n>i.end?i.end:n)-i.start,v=e.value.substr(0,i.start),h=e.value.substr(f+i.start);if(i.node=this.wrapRangeInTextNode(i.node,c,f),e.value=v+h,e.nodes.forEach((b,y)=>{y>=o&&(e.nodes[y].start>0&&y!==o&&(e.nodes[y].start-=f),e.nodes[y].end-=f)}),n-=f,r(i.node.previousSibling,i.start),n>i.end)t=i.end;else return!1}return!0})}wrapMatches(e,t,n,s,r){const i=t===0?0:t+1;this.getTextNodes(o=>{o.nodes.forEach(l=>{l=l.node;let c;for(;(c=e.exec(l.textContent))!==null&&c[i]!=="";){if(!n(c[i],l))continue;let f=c.index;if(i!==0)for(let v=1;v<i;v++)f+=c[v].length;l=this.wrapRangeInTextNode(l,f,f+c[i].length),s(l.previousSibling),e.lastIndex=0}}),r()})}wrapMatchesAcrossElements(e,t,n,s,r){const i=t===0?0:t+1;this.getTextNodes(o=>{let l;for(;(l=e.exec(o.value))!==null&&l[i]!=="";){let c=l.index;if(i!==0)for(let v=1;v<i;v++)c+=l[v].length;const f=c+l[i].length;this.wrapRangeInMappedTextNode(o,c,f,v=>n(l[i],v),(v,h)=>{e.lastIndex=h,s(v)})}r()})}wrapRangeFromIndex(e,t,n,s){this.getTextNodes(r=>{const i=r.value.length;e.forEach((o,l)=>{let{start:c,end:f,valid:v}=this.checkWhitespaceRanges(o,i,r.value);v&&this.wrapRangeInMappedTextNode(r,c,f,h=>t(h,o,r.value.substring(c,f),l),h=>{n(h,o)})}),s()})}unwrapMatches(e){const t=e.parentNode;let 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,s="wrapMatches";const r=i=>{n++,this.opt.each(i)};this.opt.acrossElements&&(s="wrapMatchesAcrossElements"),this[s](e,this.opt.ignoreGroups,(i,o)=>this.opt.filter(o,i,n),r,()=>{n===0&&this.opt.noMatch(e),this.opt.done(n)})}mark(e,t){this.opt=t;let n=0,s="wrapMatches";const{keywords:r,length:i}=this.getSeparatedKeywords(typeof e=="string"?[e]:e),o=this.opt.caseSensitive?"":"i",l=c=>{let f=new RegExp(this.createRegExp(c),`gm${o}`),v=0;this.log(`Searching with expression "${f}"`),this[s](f,1,(h,b)=>this.opt.filter(b,c,n,v),h=>{v++,n++,this.opt.each(h)},()=>{v===0&&this.opt.noMatch(c),r[i-1]===c?this.opt.done(n):l(r[r.indexOf(c)+1])})};this.opt.acrossElements&&(s="wrapMatchesAcrossElements"),i===0?this.opt.done(n):l(r[0])}markRanges(e,t){this.opt=t;let n=0,s=this.checkRanges(e);s&&s.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(s)),this.wrapRangeFromIndex(s,(r,i,o,l)=>this.opt.filter(r,i,o,l),(r,i)=>{n++,this.opt.each(r,i)},()=>{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,n=>{this.unwrapMatches(n)},n=>{const s=ce.matches(n,t),r=this.matchesExclude(n);return!s||r?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function Vn(a){const e=new Pn(a);return this.mark=(t,n)=>(e.mark(t,n),this),this.markRegExp=(t,n)=>(e.markRegExp(t,n),this),this.markRanges=(t,n)=>(e.markRanges(t,n),this),this.unmark=t=>(e.unmark(t),this),this}const $n="ENTRIES",xt="KEYS",_t="VALUES",D="";class Le{constructor(e,t){const n=e._tree,s=Array.from(n.keys());this.set=e,this._type=t,this._path=s.length>0?[{node:n,keys:s}]:[]}next(){const e=this.dive();return this.backtrack(),e}dive(){if(this._path.length===0)return{done:!0,value:void 0};const{node:e,keys:t}=oe(this._path);if(oe(t)===D)return{done:!1,value:this.result()};const n=e.get(oe(t));return this._path.push({node:n,keys:Array.from(n.keys())}),this.dive()}backtrack(){if(this._path.length===0)return;const e=oe(this._path).keys;e.pop(),!(e.length>0)&&(this._path.pop(),this.backtrack())}key(){return this.set._prefix+this._path.map(({keys:e})=>oe(e)).filter(e=>e!==D).join("")}value(){return oe(this._path).node.get(D)}result(){switch(this._type){case _t:return this.value();case xt:return this.key();default:return[this.key(),this.value()]}}[Symbol.iterator](){return this}}const oe=a=>a[a.length-1],jn=(a,e,t)=>{const n=new Map;if(e===void 0)return n;const s=e.length+1,r=s+t,i=new Uint8Array(r*s).fill(t+1);for(let o=0;o<s;++o)i[o]=o;for(let o=1;o<r;++o)i[o*s]=o;return St(a,e,t,n,i,1,s,""),n},St=(a,e,t,n,s,r,i,o)=>{const l=r*i;e:for(const c of a.keys())if(c===D){const f=s[l-1];f<=t&&n.set(o,[a.get(c),f])}else{let f=r;for(let v=0;v<c.length;++v,++f){const h=c[v],b=i*f,y=b-i;let x=s[b];const w=Math.max(0,f-t-1),R=Math.min(i-1,f+t);for(let A=w;A<R;++A){const J=h!==e[A],Q=s[y+A]+ +J,W=s[y+A+1]+1,$=s[b+A]+1,j=s[b+A+1]=Math.min(Q,W,$);j<x&&(x=j)}if(x>t)continue e}St(a.get(c),e,t,n,s,f,i,o+c)}};class X{constructor(e=new Map,t=""){this._size=void 0,this._tree=e,this._prefix=t}atPrefix(e){if(!e.startsWith(this._prefix))throw new Error("Mismatched prefix");const[t,n]=Ce(this._tree,e.slice(this._prefix.length));if(t===void 0){const[s,r]=Ue(n);for(const i of s.keys())if(i!==D&&i.startsWith(r)){const o=new Map;return o.set(i.slice(r.length),s.get(i)),new X(o,e)}}return new X(t,e)}clear(){this._size=void 0,this._tree.clear()}delete(e){return this._size=void 0,Bn(this._tree,e)}entries(){return new Le(this,$n)}forEach(e){for(const[t,n]of this)e(t,n,this)}fuzzyGet(e,t){return jn(this._tree,e,t)}get(e){const t=We(this._tree,e);return t!==void 0?t.get(D):void 0}has(e){const t=We(this._tree,e);return t!==void 0&&t.has(D)}keys(){return new Le(this,xt)}set(e,t){if(typeof e!="string")throw new Error("key must be a string");return this._size=void 0,De(this._tree,e).set(D,t),this}get size(){if(this._size)return this._size;this._size=0;const e=this.entries();for(;!e.next().done;)this._size+=1;return this._size}update(e,t){if(typeof e!="string")throw new Error("key must be a string");this._size=void 0;const n=De(this._tree,e);return n.set(D,t(n.get(D))),this}fetch(e,t){if(typeof e!="string")throw new Error("key must be a string");this._size=void 0;const n=De(this._tree,e);let s=n.get(D);return s===void 0&&n.set(D,s=t()),s}values(){return new Le(this,_t)}[Symbol.iterator](){return this.entries()}static from(e){const t=new X;for(const[n,s]of e)t.set(n,s);return t}static fromObject(e){return X.from(Object.entries(e))}}const Ce=(a,e,t=[])=>{if(e.length===0||a==null)return[a,t];for(const n of a.keys())if(n!==D&&e.startsWith(n))return t.push([a,n]),Ce(a.get(n),e.slice(n.length),t);return t.push([a,e]),Ce(void 0,"",t)},We=(a,e)=>{if(e.length===0||a==null)return a;for(const t of a.keys())if(t!==D&&e.startsWith(t))return We(a.get(t),e.slice(t.length))},De=(a,e)=>{const t=e.length;e:for(let n=0;a&&n<t;){for(const r of a.keys())if(r!==D&&e[n]===r[0]){const i=Math.min(t-n,r.length);let o=1;for(;o<i&&e[n+o]===r[o];)++o;const l=a.get(r);if(o===r.length)a=l;else{const c=new Map;c.set(r.slice(o),l),a.set(e.slice(n,n+o),c),a.delete(r),a=c}n+=o;continue e}const s=new Map;return a.set(e.slice(n),s),s}return a},Bn=(a,e)=>{const[t,n]=Ce(a,e);if(t!==void 0){if(t.delete(D),t.size===0)Et(n);else if(t.size===1){const[s,r]=t.entries().next().value;Tt(n,s,r)}}},Et=a=>{if(a.length===0)return;const[e,t]=Ue(a);if(e.delete(t),e.size===0)Et(a.slice(0,-1));else if(e.size===1){const[n,s]=e.entries().next().value;n!==D&&Tt(a.slice(0,-1),n,s)}},Tt=(a,e,t)=>{if(a.length===0)return;const[n,s]=Ue(a);n.set(s+e,t),n.delete(s)},Ue=a=>a[a.length-1],qe="or",It="and",Wn="and_not";class ue{constructor(e){if((e==null?void 0:e.fields)==null)throw new Error('MiniSearch: option "fields" must be provided');const t=e.autoVacuum==null||e.autoVacuum===!0?Ve:e.autoVacuum;this._options={...Pe,...e,autoVacuum:t,searchOptions:{...dt,...e.searchOptions||{}},autoSuggestOptions:{...Gn,...e.autoSuggestOptions||{}}},this._index=new X,this._documentCount=0,this._documentIds=new Map,this._idToShortId=new Map,this._fieldIds={},this._fieldLength=new Map,this._avgFieldLength=[],this._nextId=0,this._storedFields=new Map,this._dirtCount=0,this._currentVacuum=null,this._enqueuedVacuum=null,this._enqueuedVacuumConditions=Je,this.addFields(this._options.fields)}add(e){const{extractField:t,tokenize:n,processTerm:s,fields:r,idField:i}=this._options,o=t(e,i);if(o==null)throw new Error(`MiniSearch: document does not have ID field "${i}"`);if(this._idToShortId.has(o))throw new Error(`MiniSearch: duplicate ID ${o}`);const l=this.addDocumentId(o);this.saveStoredFields(l,e);for(const c of r){const f=t(e,c);if(f==null)continue;const v=n(f.toString(),c),h=this._fieldIds[c],b=new Set(v).size;this.addFieldLength(l,h,this._documentCount-1,b);for(const y of v){const x=s(y,c);if(Array.isArray(x))for(const w of x)this.addTerm(h,l,w);else x&&this.addTerm(h,l,x)}}}addAll(e){for(const t of e)this.add(t)}addAllAsync(e,t={}){const{chunkSize:n=10}=t,s={chunk:[],promise:Promise.resolve()},{chunk:r,promise:i}=e.reduce(({chunk:o,promise:l},c,f)=>(o.push(c),(f+1)%n===0?{chunk:[],promise:l.then(()=>new Promise(v=>setTimeout(v,0))).then(()=>this.addAll(o))}:{chunk:o,promise:l}),s);return i.then(()=>this.addAll(r))}remove(e){const{tokenize:t,processTerm:n,extractField:s,fields:r,idField:i}=this._options,o=s(e,i);if(o==null)throw new Error(`MiniSearch: document does not have ID field "${i}"`);const l=this._idToShortId.get(o);if(l==null)throw new Error(`MiniSearch: cannot remove document with ID ${o}: it is not in the index`);for(const c of r){const f=s(e,c);if(f==null)continue;const v=t(f.toString(),c),h=this._fieldIds[c],b=new Set(v).size;this.removeFieldLength(l,h,this._documentCount,b);for(const y of v){const x=n(y,c);if(Array.isArray(x))for(const w of x)this.removeTerm(h,l,w);else x&&this.removeTerm(h,l,x)}}this._storedFields.delete(l),this._documentIds.delete(l),this._idToShortId.delete(o),this._fieldLength.delete(l),this._documentCount-=1}removeAll(e){if(e)for(const t of e)this.remove(t);else{if(arguments.length>0)throw new Error("Expected documents to be present. Omit the argument to remove all documents.");this._index=new X,this._documentCount=0,this._documentIds=new Map,this._idToShortId=new Map,this._fieldLength=new Map,this._avgFieldLength=[],this._storedFields=new Map,this._nextId=0}}discard(e){const t=this._idToShortId.get(e);if(t==null)throw new Error(`MiniSearch: cannot discard document with ID ${e}: it is not in the index`);this._idToShortId.delete(e),this._documentIds.delete(t),this._storedFields.delete(t),(this._fieldLength.get(t)||[]).forEach((n,s)=>{this.removeFieldLength(t,s,this._documentCount,n)}),this._fieldLength.delete(t),this._documentCount-=1,this._dirtCount+=1,this.maybeAutoVacuum()}maybeAutoVacuum(){if(this._options.autoVacuum===!1)return;const{minDirtFactor:e,minDirtCount:t,batchSize:n,batchWait:s}=this._options.autoVacuum;this.conditionalVacuum({batchSize:n,batchWait:s},{minDirtCount:t,minDirtFactor:e})}discardAll(e){const t=this._options.autoVacuum;try{this._options.autoVacuum=!1;for(const n of e)this.discard(n)}finally{this._options.autoVacuum=t}this.maybeAutoVacuum()}replace(e){const{idField:t,extractField:n}=this._options,s=n(e,t);this.discard(s),this.add(e)}vacuum(e={}){return this.conditionalVacuum(e)}conditionalVacuum(e,t){return this._currentVacuum?(this._enqueuedVacuumConditions=this._enqueuedVacuumConditions&&t,this._enqueuedVacuum!=null?this._enqueuedVacuum:(this._enqueuedVacuum=this._currentVacuum.then(()=>{const n=this._enqueuedVacuumConditions;return this._enqueuedVacuumConditions=Je,this.performVacuuming(e,n)}),this._enqueuedVacuum)):this.vacuumConditionsMet(t)===!1?Promise.resolve():(this._currentVacuum=this.performVacuuming(e),this._currentVacuum)}async performVacuuming(e,t){const n=this._dirtCount;if(this.vacuumConditionsMet(t)){const s=e.batchSize||Ke.batchSize,r=e.batchWait||Ke.batchWait;let i=1;for(const[o,l]of this._index){for(const[c,f]of l)for(const[v]of f)this._documentIds.has(v)||(f.size<=1?l.delete(c):f.delete(v));this._index.get(o).size===0&&this._index.delete(o),i%s===0&&await new Promise(c=>setTimeout(c,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||Ve.minDirtCount,n=n||Ve.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){const t=this._idToShortId.get(e);if(t!=null)return this._storedFields.get(t)}search(e,t={}){const{searchOptions:n}=this._options,s={...n,...t},r=this.executeQuery(e,t),i=[];for(const[o,{score:l,terms:c,match:f}]of r){const v=c.length||1,h={id:this._documentIds.get(o),score:l*v,terms:Object.keys(f),queryTerms:c,match:f};Object.assign(h,this._storedFields.get(o)),(s.filter==null||s.filter(h))&&i.push(h)}return e===ue.wildcard&&s.boostDocument==null||i.sort(ht),i}autoSuggest(e,t={}){t={...this._options.autoSuggestOptions,...t};const n=new Map;for(const{score:r,terms:i}of this.search(e,t)){const o=i.join(" "),l=n.get(o);l!=null?(l.score+=r,l.count+=1):n.set(o,{score:r,terms:i,count:1})}const s=[];for(const[r,{score:i,terms:o,count:l}]of n)s.push({suggestion:r,terms:o,score:i/l});return s.sort(ht),s}get documentCount(){return this._documentCount}get termCount(){return this._index.size}static loadJSON(e,t){if(t==null)throw new Error("MiniSearch: loadJSON should be given the same options used when serializing the index");return this.loadJS(JSON.parse(e),t)}static async loadJSONAsync(e,t){if(t==null)throw new Error("MiniSearch: loadJSON should be given the same options used when serializing the index");return this.loadJSAsync(JSON.parse(e),t)}static getDefault(e){if(Pe.hasOwnProperty(e))return ze(Pe,e);throw new Error(`MiniSearch: unknown option "${e}"`)}static loadJS(e,t){const{index:n,documentIds:s,fieldLength:r,storedFields:i,serializationVersion:o}=e,l=this.instantiateMiniSearch(e,t);l._documentIds=Te(s),l._fieldLength=Te(r),l._storedFields=Te(i);for(const[c,f]of l._documentIds)l._idToShortId.set(f,c);for(const[c,f]of n){const v=new Map;for(const h of Object.keys(f)){let b=f[h];o===1&&(b=b.ds),v.set(parseInt(h,10),Te(b))}l._index.set(c,v)}return l}static async loadJSAsync(e,t){const{index:n,documentIds:s,fieldLength:r,storedFields:i,serializationVersion:o}=e,l=this.instantiateMiniSearch(e,t);l._documentIds=await Ie(s),l._fieldLength=await Ie(r),l._storedFields=await Ie(i);for(const[f,v]of l._documentIds)l._idToShortId.set(v,f);let c=0;for(const[f,v]of n){const h=new Map;for(const b of Object.keys(v)){let y=v[b];o===1&&(y=y.ds),h.set(parseInt(b,10),await Ie(y))}++c%1e3===0&&await kt(0),l._index.set(f,h)}return l}static instantiateMiniSearch(e,t){const{documentCount:n,nextId:s,fieldIds:r,averageFieldLength:i,dirtCount:o,serializationVersion:l}=e;if(l!==1&&l!==2)throw new Error("MiniSearch: cannot deserialize an index created with an incompatible version");const c=new ue(t);return c._documentCount=n,c._nextId=s,c._idToShortId=new Map,c._fieldIds=r,c._avgFieldLength=i,c._dirtCount=o||0,c._index=new X,c}executeQuery(e,t={}){if(e===ue.wildcard)return this.executeWildcardQuery(t);if(typeof e!="string"){const h={...t,...e,queries:void 0},b=e.queries.map(y=>this.executeQuery(y,h));return this.combineResults(b,h.combineWith)}const{tokenize:n,processTerm:s,searchOptions:r}=this._options,i={tokenize:n,processTerm:s,...r,...t},{tokenize:o,processTerm:l}=i,v=o(e).flatMap(h=>l(h)).filter(h=>!!h).map(qn(i)).map(h=>this.executeQuerySpec(h,i));return this.combineResults(v,i.combineWith)}executeQuerySpec(e,t){const n={...this._options.searchOptions,...t},s=(n.fields||this._options.fields).reduce((x,w)=>({...x,[w]:ze(n.boost,w)||1}),{}),{boostDocument:r,weights:i,maxFuzzy:o,bm25:l}=n,{fuzzy:c,prefix:f}={...dt.weights,...i},v=this._index.get(e.term),h=this.termResults(e.term,e.term,1,e.termBoost,v,s,r,l);let b,y;if(e.prefix&&(b=this._index.atPrefix(e.term)),e.fuzzy){const x=e.fuzzy===!0?.2:e.fuzzy,w=x<1?Math.min(o,Math.round(e.term.length*x)):x;w&&(y=this._index.fuzzyGet(e.term,w))}if(b)for(const[x,w]of b){const R=x.length-e.term.length;if(!R)continue;y==null||y.delete(x);const A=f*x.length/(x.length+.3*R);this.termResults(e.term,x,A,e.termBoost,w,s,r,l,h)}if(y)for(const x of y.keys()){const[w,R]=y.get(x);if(!R)continue;const A=c*x.length/(x.length+R);this.termResults(e.term,x,A,e.termBoost,w,s,r,l,h)}return h}executeWildcardQuery(e){const t=new Map,n={...this._options.searchOptions,...e};for(const[s,r]of this._documentIds){const i=n.boostDocument?n.boostDocument(r,"",this._storedFields.get(s)):1;t.set(s,{score:i,terms:[],match:{}})}return t}combineResults(e,t=qe){if(e.length===0)return new Map;const n=t.toLowerCase(),s=Kn[n];if(!s)throw new Error(`Invalid combination operator: ${t}`);return e.reduce(s)||new Map}toJSON(){const e=[];for(const[t,n]of this._index){const s={};for(const[r,i]of n)s[r]=Object.fromEntries(i);e.push([t,s])}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,s,r,i,o,l,c=new Map){if(r==null)return c;for(const f of Object.keys(i)){const v=i[f],h=this._fieldIds[f],b=r.get(h);if(b==null)continue;let y=b.size;const x=this._avgFieldLength[h];for(const w of b.keys()){if(!this._documentIds.has(w)){this.removeTerm(h,w,t),y-=1;continue}const R=o?o(this._documentIds.get(w),t,this._storedFields.get(w)):1;if(!R)continue;const A=b.get(w),J=this._fieldLength.get(w)[h],Q=Un(A,y,this._documentCount,J,x,l),W=n*s*v*R*Q,$=c.get(w);if($){$.score+=W,Hn($.terms,e);const j=ze($.match,t);j?j.push(f):$.match[t]=[f]}else c.set(w,{score:W,terms:[e],match:{[t]:[f]}})}}return c}addTerm(e,t,n){const s=this._index.fetch(n,pt);let r=s.get(e);if(r==null)r=new Map,r.set(t,1),s.set(e,r);else{const i=r.get(t);r.set(t,(i||0)+1)}}removeTerm(e,t,n){if(!this._index.has(n)){this.warnDocumentChanged(t,e,n);return}const s=this._index.fetch(n,pt),r=s.get(e);r==null||r.get(t)==null?this.warnDocumentChanged(t,e,n):r.get(t)<=1?r.size<=1?s.delete(e):r.delete(t):r.set(t,r.get(t)-1),this._index.get(n).size===0&&this._index.delete(n)}warnDocumentChanged(e,t,n){for(const s of Object.keys(this._fieldIds))if(this._fieldIds[s]===t){this._options.logger("warn",`MiniSearch: document with ID ${this._documentIds.get(e)} has changed before removal: term "${n}" was not present in field "${s}". Removing a document after it has changed can corrupt the index!`,"version_conflict");return}}addDocumentId(e){const t=this._nextId;return this._idToShortId.set(e,t),this._documentIds.set(t,e),this._documentCount+=1,this._nextId+=1,t}addFields(e){for(let t=0;t<e.length;t++)this._fieldIds[e[t]]=t}addFieldLength(e,t,n,s){let r=this._fieldLength.get(e);r==null&&this._fieldLength.set(e,r=[]),r[t]=s;const o=(this._avgFieldLength[t]||0)*n+s;this._avgFieldLength[t]=o/(n+1)}removeFieldLength(e,t,n,s){if(n===1){this._avgFieldLength[t]=0;return}const r=this._avgFieldLength[t]*n-s;this._avgFieldLength[t]=r/(n-1)}saveStoredFields(e,t){const{storeFields:n,extractField:s}=this._options;if(n==null||n.length===0)return;let r=this._storedFields.get(e);r==null&&this._storedFields.set(e,r={});for(const i of n){const o=s(t,i);o!==void 0&&(r[i]=o)}}}ue.wildcard=Symbol("*");const ze=(a,e)=>Object.prototype.hasOwnProperty.call(a,e)?a[e]:void 0,Kn={[qe]:(a,e)=>{for(const t of e.keys()){const n=a.get(t);if(n==null)a.set(t,e.get(t));else{const{score:s,terms:r,match:i}=e.get(t);n.score=n.score+s,n.match=Object.assign(n.match,i),ft(n.terms,r)}}return a},[It]:(a,e)=>{const t=new Map;for(const n of e.keys()){const s=a.get(n);if(s==null)continue;const{score:r,terms:i,match:o}=e.get(n);ft(s.terms,i),t.set(n,{score:s.score+r,terms:s.terms,match:Object.assign(s.match,o)})}return t},[Wn]:(a,e)=>{for(const t of e.keys())a.delete(t);return a}},Jn={k:1.2,b:.7,d:.5},Un=(a,e,t,n,s,r)=>{const{k:i,b:o,d:l}=r;return Math.log(1+(t-e+.5)/(e+.5))*(l+a*(i+1)/(a+i*(1-o+o*n/s)))},qn=a=>(e,t,n)=>{const s=typeof a.fuzzy=="function"?a.fuzzy(e,t,n):a.fuzzy||!1,r=typeof a.prefix=="function"?a.prefix(e,t,n):a.prefix===!0,i=typeof a.boostTerm=="function"?a.boostTerm(e,t,n):1;return{term:e,fuzzy:s,prefix:r,termBoost:i}},Pe={idField:"id",extractField:(a,e)=>a[e],tokenize:a=>a.split(Qn),processTerm:a=>a.toLowerCase(),fields:void 0,searchOptions:void 0,storeFields:[],logger:(a,e)=>{typeof(console==null?void 0:console[a])=="function"&&console[a](e)},autoVacuum:!0},dt={combineWith:qe,prefix:!1,fuzzy:!1,maxFuzzy:6,boost:{},weights:{fuzzy:.45,prefix:.375},bm25:Jn},Gn={combineWith:It,prefix:(a,e,t)=>e===t.length-1},Ke={batchSize:1e3,batchWait:10},Je={minDirtFactor:.1,minDirtCount:20},Ve={...Ke,...Je},Hn=(a,e)=>{a.includes(e)||a.push(e)},ft=(a,e)=>{for(const t of e)a.includes(t)||a.push(t)},ht=({score:a},{score:e})=>e-a,pt=()=>new Map,Te=a=>{const e=new Map;for(const t of Object.keys(a))e.set(parseInt(t,10),a[t]);return e},Ie=async a=>{const e=new Map;let t=0;for(const n of Object.keys(a))e.set(parseInt(n,10),a[n]),++t%1e3===0&&await kt(0);return e},kt=a=>new Promise(e=>setTimeout(e,a)),Qn=/[\n\r\p{Z}\p{P}]+/u;class Yn{constructor(e=10){Re(this,"max");Re(this,"cache");this.max=e,this.cache=new Map}get(e){let t=this.cache.get(e);return t!==void 0&&(this.cache.delete(e),this.cache.set(e,t)),t}set(e,t){this.cache.has(e)?this.cache.delete(e):this.cache.size===this.max&&this.cache.delete(this.first()),this.cache.set(e,t)}first(){return this.cache.keys().next().value}clear(){this.cache.clear()}}const Zn=["aria-owns"],Xn={class:"shell"},es=["title"],ts={class:"search-actions before"},ns=["title"],ss=["aria-activedescendant","aria-controls","placeholder"],is={class:"search-actions"},rs=["title"],as=["disabled","title"],os=["id","role","aria-labelledby"],ls=["id","aria-selected"],cs=["href","aria-label","onMouseenter","onFocusin","data-index"],us={class:"titles"},ds=["innerHTML"],fs={class:"title main"},hs=["innerHTML"],ps={key:0,class:"excerpt-wrapper"},ms={key:0,class:"excerpt",inert:""},vs=["innerHTML"],gs={key:0,class:"no-results"},bs={class:"search-keyboard-shortcuts"},ys=["aria-label"],ws=["aria-label"],xs=["aria-label"],_s=["aria-label"],Ss=Lt({__name:"VPLocalSearchBox",emits:["close"],setup(a,{emit:e}){var S,C;const t=e,n=le(),s=le(),r=le(rn),i=nn(),{activate:o}=zn(n,{immediate:!0,allowOutsideClick:!0,clickOutsideDeactivates:!0,escapeDeactivates:!0}),{localeIndex:l,theme:c}=i,f=tt(async()=>{var m,p,I,O,z,P,V,k,K;return rt(ue.loadJSON((I=await((p=(m=r.value)[l.value])==null?void 0:p.call(m)))==null?void 0:I.default,{fields:["title","titles","text"],storeFields:["title","titles"],searchOptions:{fuzzy:.2,prefix:!0,boost:{title:4,text:2,titles:1},...((O=c.value.search)==null?void 0:O.provider)==="local"&&((P=(z=c.value.search.options)==null?void 0:z.miniSearch)==null?void 0:P.searchOptions)},...((V=c.value.search)==null?void 0:V.provider)==="local"&&((K=(k=c.value.search.options)==null?void 0:k.miniSearch)==null?void 0:K.options)}))}),h=ge(()=>{var m,p;return((m=c.value.search)==null?void 0:m.provider)==="local"&&((p=c.value.search.options)==null?void 0:p.disableQueryPersistence)===!0}).value?fe(""):Dt("vitepress:local-search-filter",""),b=zt("vitepress:local-search-detailed-list",((S=c.value.search)==null?void 0:S.provider)==="local"&&((C=c.value.search.options)==null?void 0:C.detailedView)===!0),y=ge(()=>{var m,p,I;return((m=c.value.search)==null?void 0:m.provider)==="local"&&(((p=c.value.search.options)==null?void 0:p.disableDetailedView)===!0||((I=c.value.search.options)==null?void 0:I.detailedView)===!1)}),x=ge(()=>{var p,I,O,z,P,V,k;const m=((p=c.value.search)==null?void 0:p.options)??c.value.algolia;return((P=(z=(O=(I=m==null?void 0:m.locales)==null?void 0:I[l.value])==null?void 0:O.translations)==null?void 0:z.button)==null?void 0:P.buttonText)||((k=(V=m==null?void 0:m.translations)==null?void 0:V.button)==null?void 0:k.buttonText)||"Search"});Pt(()=>{y.value&&(b.value=!1)});const w=le([]),R=fe(!1);$e(h,()=>{R.value=!1});const A=tt(async()=>{if(s.value)return rt(new Vn(s.value))},null),J=new Yn(16);Vt(()=>[f.value,h.value,b.value],async([m,p,I],O,z)=>{var ee,we,Ge,He;(O==null?void 0:O[0])!==m&&J.clear();let P=!1;if(z(()=>{P=!0}),!m)return;w.value=m.search(p).slice(0,16),R.value=!0;const V=I?await Promise.all(w.value.map(B=>Q(B.id))):[];if(P)return;for(const{id:B,mod:te}of V){const ne=B.slice(0,B.indexOf("#"));let Y=J.get(ne);if(Y)continue;Y=new Map,J.set(ne,Y);const G=te.default??te;if(G!=null&&G.render||G!=null&&G.setup){const se=Yt(G);se.config.warnHandler=()=>{},se.provide(Zt,i),Object.defineProperties(se.config.globalProperties,{$frontmatter:{get(){return i.frontmatter.value}},$params:{get(){return i.page.value.params}}});const Qe=document.createElement("div");se.mount(Qe),Qe.querySelectorAll("h1, h2, h3, h4, h5, h6").forEach(de=>{var Xe;const xe=(Xe=de.querySelector("a"))==null?void 0:Xe.getAttribute("href"),Ye=(xe==null?void 0:xe.startsWith("#"))&&xe.slice(1);if(!Ye)return;let Ze="";for(;(de=de.nextElementSibling)&&!/^h[1-6]$/i.test(de.tagName);)Ze+=de.outerHTML;Y.set(Ye,Ze)}),se.unmount()}if(P)return}const k=new Set;if(w.value=w.value.map(B=>{const[te,ne]=B.id.split("#"),Y=J.get(te),G=(Y==null?void 0:Y.get(ne))??"";for(const se in B.match)k.add(se);return{...B,text:G}}),await he(),P)return;await new Promise(B=>{var te;(te=A.value)==null||te.unmark({done:()=>{var ne;(ne=A.value)==null||ne.markRegExp(T(k),{done:B})}})});const K=((ee=n.value)==null?void 0:ee.querySelectorAll(".result .excerpt"))??[];for(const B of K)(we=B.querySelector('mark[data-markjs="true"]'))==null||we.scrollIntoView({block:"center"});(He=(Ge=s.value)==null?void 0:Ge.firstElementChild)==null||He.scrollIntoView({block:"start"})},{debounce:200,immediate:!0});async function Q(m){const p=Xt(m.slice(0,m.indexOf("#")));try{if(!p)throw new Error(`Cannot find file for id: ${m}`);return{id:m,mod:await import(((u)=>{if(u.startsWith('/')){return"https://registry.npmmirror.com/@gkd-kit/docs/0.0.1744454663513/files/.vitepress/dist"+u}return u})(p))}}catch(I){return console.error(I),{id:m,mod:{}}}}const W=fe(),$=ge(()=>{var m;return((m=h.value)==null?void 0:m.length)<=0});function j(m=!0){var p,I;(p=W.value)==null||p.focus(),m&&((I=W.value)==null||I.select())}Ae(()=>{j()});function ye(m){m.pointerType==="mouse"&&j()}const M=fe(-1),U=fe(!0);$e(w,m=>{M.value=m.length?0:-1,q()});function q(){he(()=>{const m=document.querySelector(".result.selected");m==null||m.scrollIntoView({block:"nearest"})})}_e("ArrowUp",m=>{m.preventDefault(),M.value--,M.value<0&&(M.value=w.value.length-1),U.value=!0,q()}),_e("ArrowDown",m=>{m.preventDefault(),M.value++,M.value>=w.value.length&&(M.value=0),U.value=!0,q()});const N=$t();_e("Enter",m=>{if(m.isComposing||m.target instanceof HTMLButtonElement&&m.target.type!=="submit")return;const p=w.value[M.value];if(m.target instanceof HTMLInputElement&&!p){m.preventDefault();return}p&&(N.go(p.id),t("close"))}),_e("Escape",()=>{t("close")});const d=sn({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"}}});Ae(()=>{window.history.pushState(null,"",null)}),jt("popstate",m=>{m.preventDefault(),t("close")});const g=Bt(Wt?document.body:null);Ae(()=>{he(()=>{g.value=!0,he().then(()=>o())})}),Kt(()=>{g.value=!1});function E(){h.value="",he().then(()=>j(!1))}function T(m){return new RegExp([...m].sort((p,I)=>I.length-p.length).map(p=>`(${en(p)})`).join("|"),"gi")}function F(m){var O;if(!U.value)return;const p=(O=m.target)==null?void 0:O.closest(".result"),I=Number.parseInt(p==null?void 0:p.dataset.index);I>=0&&I!==M.value&&(M.value=I),U.value=!1}return(m,p)=>{var I,O,z,P,V;return H(),Jt(Qt,{to:"body"},[_("div",{ref_key:"el",ref:n,role:"button","aria-owns":(I=w.value)!=null&&I.length?"localsearch-list":void 0,"aria-expanded":"true","aria-haspopup":"listbox","aria-labelledby":"localsearch-label",class:"VPLocalSearchBox"},[_("div",{class:"backdrop",onClick:p[0]||(p[0]=k=>m.$emit("close"))}),_("div",Xn,[_("form",{class:"search-bar",onPointerup:p[4]||(p[4]=k=>ye(k)),onSubmit:p[5]||(p[5]=Ut(()=>{},["prevent"]))},[_("label",{title:x.value,id:"localsearch-label",for:"localsearch-input"},p[7]||(p[7]=[_("span",{"aria-hidden":"true",class:"vpi-search search-icon local-search-icon"},null,-1)]),8,es),_("div",ts,[_("button",{class:"back-button",title:L(d)("modal.backButtonTitle"),onClick:p[1]||(p[1]=k=>m.$emit("close"))},p[8]||(p[8]=[_("span",{class:"vpi-arrow-left local-search-icon"},null,-1)]),8,ns)]),qt(_("input",{ref_key:"searchInput",ref:W,"onUpdate:modelValue":p[2]||(p[2]=k=>Ht(h)?h.value=k:null),"aria-activedescendant":M.value>-1?"localsearch-item-"+M.value:void 0,"aria-autocomplete":"both","aria-controls":(O=w.value)!=null&&O.length?"localsearch-list":void 0,"aria-labelledby":"localsearch-label",autocapitalize:"off",autocomplete:"off",autocorrect:"off",class:"search-input",id:"localsearch-input",enterkeyhint:"go",maxlength:"64",placeholder:x.value,spellcheck:"false",type:"search"},null,8,ss),[[Gt,L(h)]]),_("div",is,[y.value?Se("",!0):(H(),Z("button",{key:0,class:nt(["toggle-layout-button",{"detailed-list":L(b)}]),type:"button",title:L(d)("modal.displayDetails"),onClick:p[3]||(p[3]=k=>M.value>-1&&(b.value=!L(b)))},p[9]||(p[9]=[_("span",{class:"vpi-layout-list local-search-icon"},null,-1)]),10,rs)),_("button",{class:"clear-button",type:"reset",disabled:$.value,title:L(d)("modal.resetButtonTitle"),onClick:E},p[10]||(p[10]=[_("span",{class:"vpi-delete local-search-icon"},null,-1)]),8,as)])],32),_("ul",{ref_key:"resultsEl",ref:s,id:(z=w.value)!=null&&z.length?"localsearch-list":void 0,role:(P=w.value)!=null&&P.length?"listbox":void 0,"aria-labelledby":(V=w.value)!=null&&V.length?"localsearch-label":void 0,class:"results",onMousemove:F},[(H(!0),Z(it,null,st(w.value,(k,K)=>(H(),Z("li",{key:k.id,id:"localsearch-item-"+K,"aria-selected":M.value===K?"true":"false",role:"option"},[_("a",{href:k.id,class:nt(["result",{selected:M.value===K}]),"aria-label":[...k.titles,k.title].join(" > "),onMouseenter:ee=>!U.value&&(M.value=K),onFocusin:ee=>M.value=K,onClick:p[6]||(p[6]=ee=>m.$emit("close")),"data-index":K},[_("div",null,[_("div",us,[p[12]||(p[12]=_("span",{class:"title-icon"},"#",-1)),(H(!0),Z(it,null,st(k.titles,(ee,we)=>(H(),Z("span",{key:we,class:"title"},[_("span",{class:"text",innerHTML:ee},null,8,ds),p[11]||(p[11]=_("span",{class:"vpi-chevron-right local-search-icon"},null,-1))]))),128)),_("span",fs,[_("span",{class:"text",innerHTML:k.title},null,8,hs)])]),L(b)?(H(),Z("div",ps,[k.text?(H(),Z("div",ms,[_("div",{class:"vp-doc",innerHTML:k.text},null,8,vs)])):Se("",!0),p[13]||(p[13]=_("div",{class:"excerpt-gradient-bottom"},null,-1)),p[14]||(p[14]=_("div",{class:"excerpt-gradient-top"},null,-1))])):Se("",!0)])],42,cs)],8,ls))),128)),L(h)&&!w.value.length&&R.value?(H(),Z("li",gs,[pe(me(L(d)("modal.noResultsText"))+' "',1),_("strong",null,me(L(h)),1),p[15]||(p[15]=pe('" '))])):Se("",!0)],40,os),_("div",bs,[_("span",null,[_("kbd",{"aria-label":L(d)("modal.footer.navigateUpKeyAriaLabel")},p[16]||(p[16]=[_("span",{class:"vpi-arrow-up navigate-icon"},null,-1)]),8,ys),_("kbd",{"aria-label":L(d)("modal.footer.navigateDownKeyAriaLabel")},p[17]||(p[17]=[_("span",{class:"vpi-arrow-down navigate-icon"},null,-1)]),8,ws),pe(" "+me(L(d)("modal.footer.navigateText")),1)]),_("span",null,[_("kbd",{"aria-label":L(d)("modal.footer.selectKeyAriaLabel")},p[18]||(p[18]=[_("span",{class:"vpi-corner-down-left navigate-icon"},null,-1)]),8,xs),pe(" "+me(L(d)("modal.footer.selectText")),1)]),_("span",null,[_("kbd",{"aria-label":L(d)("modal.footer.closeKeyAriaLabel")},"esc",8,_s),pe(" "+me(L(d)("modal.footer.closeText")),1)])])])],8,Zn)])}}}),Fs=tn(Ss,[["__scopeId","data-v-ceff6b68"]]);export{Fs as default};
8
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ot(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);e&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(a,s).enumerable})),t.push.apply(t,n)}return t}function lt(a){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?ot(Object(t),!0).forEach(function(n){En(a,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(t)):ot(Object(t)).forEach(function(n){Object.defineProperty(a,n,Object.getOwnPropertyDescriptor(t,n))})}return a}function kn(a){return Sn(a)||Tn(a)||On(a)||In()}function Nn(a,e){if(typeof a!="object"||!a)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var n=t.call(a,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(a)}function Fn(a){var e=Nn(a,"string");return typeof e=="symbol"?e:e+""}function On(a,e){if(a){if(typeof a=="string")return Be(a,e);var t={}.toString.call(a).slice(8,-1);return t==="Object"&&a.constructor&&(t=a.constructor.name),t==="Map"||t==="Set"?Array.from(a):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Be(a,e):void 0}}var ct={activateTrap:function(e,t){if(e.length>0){var n=e[e.length-1];n!==t&&n._setPausedState(!0)}var s=e.indexOf(t);s===-1||e.splice(s,1),e.push(t)},deactivateTrap:function(e,t){var n=e.indexOf(t);n!==-1&&e.splice(n,1),e.length>0&&!e[e.length-1]._isManuallyPaused()&&e[e.length-1]._setPausedState(!1)}},Cn=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},Rn=function(e){return(e==null?void 0:e.key)==="Escape"||(e==null?void 0:e.key)==="Esc"||(e==null?void 0:e.keyCode)===27},be=function(e){return(e==null?void 0:e.key)==="Tab"||(e==null?void 0:e.keyCode)===9},An=function(e){return be(e)&&!e.shiftKey},Mn=function(e){return be(e)&&e.shiftKey},ut=function(e){return setTimeout(e,0)},ve=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),s=1;s<t;s++)n[s-1]=arguments[s];return typeof e=="function"?e.apply(void 0,n):e},Ee=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},Ln=[],Dn=function(e,t){var n=(t==null?void 0:t.document)||document,s=(t==null?void 0:t.trapStack)||Ln,r=lt({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:An,isKeyBackward:Mn},t),i={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},o,l=function(u,d,g){return u&&u[d]!==void 0?u[d]:r[g||d]},c=function(u,d){var g=typeof(d==null?void 0:d.composedPath)=="function"?d.composedPath():void 0;return i.containerGroups.findIndex(function(E){var T=E.container,F=E.tabbableNodes;return T.contains(u)||(g==null?void 0:g.includes(T))||F.find(function(S){return S===u})})},f=function(u){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},g=d.hasFallback,E=g===void 0?!1:g,T=d.params,F=T===void 0?[]:T,S=r[u];if(typeof S=="function"&&(S=S.apply(void 0,kn(F))),S===!0&&(S=void 0),!S){if(S===void 0||S===!1)return S;throw new Error("`".concat(u,"` was specified but was not a node, or did not return a node"))}var C=S;if(typeof S=="string"){try{C=n.querySelector(S)}catch(m){throw new Error("`".concat(u,'` appears to be an invalid selector; error="').concat(m.message,'"'))}if(!C&&!E)throw new Error("`".concat(u,"` as selector refers to no known node"))}return C},v=function(){var u=f("initialFocus",{hasFallback:!0});if(u===!1)return!1;if(u===void 0||u&&!Me(u,r.tabbableOptions))if(c(n.activeElement)>=0)u=n.activeElement;else{var d=i.tabbableGroups[0],g=d&&d.firstTabbableNode;u=g||f("fallbackFocus")}else u===null&&(u=f("fallbackFocus"));if(!u)throw new Error("Your focus-trap needs to have at least one focusable element");return u},h=function(){if(i.containerGroups=i.containers.map(function(u){var d=wn(u,r.tabbableOptions),g=xn(u,r.tabbableOptions),E=d.length>0?d[0]:void 0,T=d.length>0?d[d.length-1]:void 0,F=g.find(function(m){return ae(m)}),S=g.slice().reverse().find(function(m){return ae(m)}),C=!!d.find(function(m){return ie(m)>0});return{container:u,tabbableNodes:d,focusableNodes:g,posTabIndexesFound:C,firstTabbableNode:E,lastTabbableNode:T,firstDomTabbableNode:F,lastDomTabbableNode:S,nextTabbableNode:function(p){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,O=d.indexOf(p);return O<0?I?g.slice(g.indexOf(p)+1).find(function(z){return ae(z)}):g.slice(0,g.indexOf(p)).reverse().find(function(z){return ae(z)}):d[O+(I?1:-1)]}}}),i.tabbableGroups=i.containerGroups.filter(function(u){return u.tabbableNodes.length>0}),i.tabbableGroups.length<=0&&!f("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(i.containerGroups.find(function(u){return u.posTabIndexesFound})&&i.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},b=function(u){var d=u.activeElement;if(d)return d.shadowRoot&&d.shadowRoot.activeElement!==null?b(d.shadowRoot):d},y=function(u){if(u!==!1&&u!==b(document)){if(!u||!u.focus){y(v());return}u.focus({preventScroll:!!r.preventScroll}),i.mostRecentlyFocusedNode=u,Cn(u)&&u.select()}},x=function(u){var d=f("setReturnFocus",{params:[u]});return d||(d===!1?!1:u)},w=function(u){var d=u.target,g=u.event,E=u.isBackward,T=E===void 0?!1:E;d=d||Ee(g),h();var F=null;if(i.tabbableGroups.length>0){var S=c(d,g),C=S>=0?i.containerGroups[S]:void 0;if(S<0)T?F=i.tabbableGroups[i.tabbableGroups.length-1].lastTabbableNode:F=i.tabbableGroups[0].firstTabbableNode;else if(T){var m=i.tabbableGroups.findIndex(function(V){var k=V.firstTabbableNode;return d===k});if(m<0&&(C.container===d||Me(d,r.tabbableOptions)&&!ae(d,r.tabbableOptions)&&!C.nextTabbableNode(d,!1))&&(m=S),m>=0){var p=m===0?i.tabbableGroups.length-1:m-1,I=i.tabbableGroups[p];F=ie(d)>=0?I.lastTabbableNode:I.lastDomTabbableNode}else be(g)||(F=C.nextTabbableNode(d,!1))}else{var O=i.tabbableGroups.findIndex(function(V){var k=V.lastTabbableNode;return d===k});if(O<0&&(C.container===d||Me(d,r.tabbableOptions)&&!ae(d,r.tabbableOptions)&&!C.nextTabbableNode(d))&&(O=S),O>=0){var z=O===i.tabbableGroups.length-1?0:O+1,P=i.tabbableGroups[z];F=ie(d)>=0?P.firstTabbableNode:P.firstDomTabbableNode}else be(g)||(F=C.nextTabbableNode(d))}}else F=f("fallbackFocus");return F},R=function(u){var d=Ee(u);if(!(c(d,u)>=0)){if(ve(r.clickOutsideDeactivates,u)){o.deactivate({returnFocus:r.returnFocusOnDeactivate});return}ve(r.allowOutsideClick,u)||u.preventDefault()}},A=function(u){var d=Ee(u),g=c(d,u)>=0;if(g||d instanceof Document)g&&(i.mostRecentlyFocusedNode=d);else{u.stopImmediatePropagation();var E,T=!0;if(i.mostRecentlyFocusedNode)if(ie(i.mostRecentlyFocusedNode)>0){var F=c(i.mostRecentlyFocusedNode),S=i.containerGroups[F].tabbableNodes;if(S.length>0){var C=S.findIndex(function(m){return m===i.mostRecentlyFocusedNode});C>=0&&(r.isKeyForward(i.recentNavEvent)?C+1<S.length&&(E=S[C+1],T=!1):C-1>=0&&(E=S[C-1],T=!1))}}else i.containerGroups.some(function(m){return m.tabbableNodes.some(function(p){return ie(p)>0})})||(T=!1);else T=!1;T&&(E=w({target:i.mostRecentlyFocusedNode,isBackward:r.isKeyBackward(i.recentNavEvent)})),y(E||i.mostRecentlyFocusedNode||v())}i.recentNavEvent=void 0},J=function(u){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;i.recentNavEvent=u;var g=w({event:u,isBackward:d});g&&(be(u)&&u.preventDefault(),y(g))},Q=function(u){(r.isKeyForward(u)||r.isKeyBackward(u))&&J(u,r.isKeyBackward(u))},W=function(u){Rn(u)&&ve(r.escapeDeactivates,u)!==!1&&(u.preventDefault(),o.deactivate())},$=function(u){var d=Ee(u);c(d,u)>=0||ve(r.clickOutsideDeactivates,u)||ve(r.allowOutsideClick,u)||(u.preventDefault(),u.stopImmediatePropagation())},j=function(){if(i.active)return ct.activateTrap(s,o),i.delayInitialFocusTimer=r.delayInitialFocus?ut(function(){y(v())}):y(v()),n.addEventListener("focusin",A,!0),n.addEventListener("mousedown",R,{capture:!0,passive:!1}),n.addEventListener("touchstart",R,{capture:!0,passive:!1}),n.addEventListener("click",$,{capture:!0,passive:!1}),n.addEventListener("keydown",Q,{capture:!0,passive:!1}),n.addEventListener("keydown",W),o},ye=function(){if(i.active)return n.removeEventListener("focusin",A,!0),n.removeEventListener("mousedown",R,!0),n.removeEventListener("touchstart",R,!0),n.removeEventListener("click",$,!0),n.removeEventListener("keydown",Q,!0),n.removeEventListener("keydown",W),o},M=function(u){var d=u.some(function(g){var E=Array.from(g.removedNodes);return E.some(function(T){return T===i.mostRecentlyFocusedNode})});d&&y(v())},U=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(M):void 0,q=function(){U&&(U.disconnect(),i.active&&!i.paused&&i.containers.map(function(u){U.observe(u,{subtree:!0,childList:!0})}))};return o={get active(){return i.active},get paused(){return i.paused},activate:function(u){if(i.active)return this;var d=l(u,"onActivate"),g=l(u,"onPostActivate"),E=l(u,"checkCanFocusTrap");E||h(),i.active=!0,i.paused=!1,i.nodeFocusedBeforeActivation=n.activeElement,d==null||d();var T=function(){E&&h(),j(),q(),g==null||g()};return E?(E(i.containers.concat()).then(T,T),this):(T(),this)},deactivate:function(u){if(!i.active)return this;var d=lt({onDeactivate:r.onDeactivate,onPostDeactivate:r.onPostDeactivate,checkCanReturnFocus:r.checkCanReturnFocus},u);clearTimeout(i.delayInitialFocusTimer),i.delayInitialFocusTimer=void 0,ye(),i.active=!1,i.paused=!1,q(),ct.deactivateTrap(s,o);var g=l(d,"onDeactivate"),E=l(d,"onPostDeactivate"),T=l(d,"checkCanReturnFocus"),F=l(d,"returnFocus","returnFocusOnDeactivate");g==null||g();var S=function(){ut(function(){F&&y(x(i.nodeFocusedBeforeActivation)),E==null||E()})};return F&&T?(T(x(i.nodeFocusedBeforeActivation)).then(S,S),this):(S(),this)},pause:function(u){return i.active?(i.manuallyPaused=!0,this._setPausedState(!0,u)):this},unpause:function(u){return i.active?(i.manuallyPaused=!1,s[s.length-1]!==this?this:this._setPausedState(!1,u)):this},updateContainerElements:function(u){var d=[].concat(u).filter(Boolean);return i.containers=d.map(function(g){return typeof g=="string"?n.querySelector(g):g}),i.active&&h(),q(),this}},Object.defineProperties(o,{_isManuallyPaused:{value:function(){return i.manuallyPaused}},_setPausedState:{value:function(u,d){if(i.paused===u)return this;if(i.paused=u,u){var g=l(d,"onPause"),E=l(d,"onPostPause");g==null||g(),ye(),q(),E==null||E()}else{var T=l(d,"onUnpause"),F=l(d,"onPostUnpause");T==null||T(),h(),j(),q(),F==null||F()}return this}}}),o.updateContainerElements(e),o};function zn(a,e={}){let t;const{immediate:n,...s}=e,r=le(!1),i=le(!1),o=h=>t&&t.activate(h),l=h=>t&&t.deactivate(h),c=()=>{t&&(t.pause(),i.value=!0)},f=()=>{t&&(t.unpause(),i.value=!1)},v=ge(()=>{const h=et(a);return Ct(h).map(b=>{const y=et(b);return typeof y=="string"?y:Rt(y)}).filter(At)});return $e(v,h=>{h.length&&(t=Dn(h,{...s,onActivate(){r.value=!0,e.onActivate&&e.onActivate()},onDeactivate(){r.value=!1,e.onDeactivate&&e.onDeactivate()}}),n&&o())},{flush:"post"}),Mt(()=>l()),{hasFocus:r,isPaused:i,activate:o,deactivate:l,pause:c,unpause:f}}class ce{constructor(e,t=!0,n=[],s=5e3){this.ctx=e,this.iframes=t,this.exclude=n,this.iframesTimeout=s}static matches(e,t){const n=typeof t=="string"?[t]:t,s=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(s){let r=!1;return n.every(i=>s.call(e,i)?(r=!0,!1):!0),r}else return!1}getContexts(){let e,t=[];return typeof this.ctx>"u"||!this.ctx?e=[]:NodeList.prototype.isPrototypeOf(this.ctx)?e=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?e=this.ctx:typeof this.ctx=="string"?e=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):e=[this.ctx],e.forEach(n=>{const s=t.filter(r=>r.contains(n)).length>0;t.indexOf(n)===-1&&!s&&t.push(n)}),t}getIframeContents(e,t,n=()=>{}){let s;try{const r=e.contentWindow;if(s=r.document,!r||!s)throw new Error("iframe inaccessible")}catch{n()}s&&t(s)}isIframeBlank(e){const t="about:blank",n=e.getAttribute("src").trim();return e.contentWindow.location.href===t&&n!==t&&n}observeIframeLoad(e,t,n){let s=!1,r=null;const i=()=>{if(!s){s=!0,clearTimeout(r);try{this.isIframeBlank(e)||(e.removeEventListener("load",i),this.getIframeContents(e,t,n))}catch{n()}}};e.addEventListener("load",i),r=setTimeout(i,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,s=>{n++,this.waitForIframes(s.querySelector("html"),()=>{--n||t()})},s=>{s||t()})}forEachIframe(e,t,n,s=()=>{}){let r=e.querySelectorAll("iframe"),i=r.length,o=0;r=Array.prototype.slice.call(r);const l=()=>{--i<=0&&s(o)};i||l(),r.forEach(c=>{ce.matches(c,this.exclude)?l():this.onIframeReady(c,f=>{t(c)&&(o++,n(f)),l()},l)})}createIterator(e,t,n){return document.createNodeIterator(e,t,n,!1)}createInstanceOnIframe(e){return new ce(e.querySelector("html"),this.iframes)}compareNodeIframe(e,t,n){const s=e.compareDocumentPosition(n),r=Node.DOCUMENT_POSITION_PRECEDING;if(s&r)if(t!==null){const i=t.compareDocumentPosition(n),o=Node.DOCUMENT_POSITION_FOLLOWING;if(i&o)return!0}else return!0;return!1}getIteratorNode(e){const t=e.previousNode();let n;return t===null?n=e.nextNode():n=e.nextNode()&&e.nextNode(),{prevNode:t,node:n}}checkIframeFilter(e,t,n,s){let r=!1,i=!1;return s.forEach((o,l)=>{o.val===n&&(r=l,i=o.handled)}),this.compareNodeIframe(e,t,n)?(r===!1&&!i?s.push({val:n,handled:!0}):r!==!1&&!i&&(s[r].handled=!0),!0):(r===!1&&s.push({val:n,handled:!1}),!1)}handleOpenIframes(e,t,n,s){e.forEach(r=>{r.handled||this.getIframeContents(r.val,i=>{this.createInstanceOnIframe(i).forEachNode(t,n,s)})})}iterateThroughNodes(e,t,n,s,r){const i=this.createIterator(t,e,s);let o=[],l=[],c,f,v=()=>({prevNode:f,node:c}=this.getIteratorNode(i),c);for(;v();)this.iframes&&this.forEachIframe(t,h=>this.checkIframeFilter(c,f,h,o),h=>{this.createInstanceOnIframe(h).forEachNode(e,b=>l.push(b),s)}),l.push(c);l.forEach(h=>{n(h)}),this.iframes&&this.handleOpenIframes(o,e,n,s),r()}forEachNode(e,t,n,s=()=>{}){const r=this.getContexts();let i=r.length;i||s(),r.forEach(o=>{const l=()=>{this.iterateThroughNodes(e,o,t,n,()=>{--i<=0&&s()})};this.iframes?this.waitForIframes(o,l):l()})}}let Pn=class{constructor(e){this.ctx=e,this.ie=!1;const t=window.navigator.userAgent;(t.indexOf("MSIE")>-1||t.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(e){this._opt=Object.assign({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:()=>{},noMatch:()=>{},filter:()=>!0,done:()=>{},debug:!1,log:window.console},e)}get opt(){return this._opt}get iterator(){return new ce(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(e,t="debug"){const 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){const t=this.opt.synonyms,n=this.opt.caseSensitive?"":"i",s=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let r in t)if(t.hasOwnProperty(r)){const i=t[r],o=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(r):this.escapeStr(r),l=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(i):this.escapeStr(i);o!==""&&l!==""&&(e=e.replace(new RegExp(`(${this.escapeStr(o)}|${this.escapeStr(l)})`,`gm${n}`),s+`(${this.processSynomyms(o)}|${this.processSynomyms(l)})`+s))}return e}processSynomyms(e){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),e}setupWildcardsRegExp(e){return e=e.replace(/(?:\\)*\?/g,t=>t.charAt(0)==="\\"?"?":""),e.replace(/(?:\\)*\*/g,t=>t.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(e){let t=this.opt.wildcards==="withSpaces";return e.replace(/\u0001/g,t?"[\\S\\s]?":"\\S?").replace(/\u0002/g,t?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(e){return e.replace(/[^(|)\\]/g,(t,n,s)=>{let r=s.charAt(n+1);return/[(|)\\]/.test(r)||r===""?t:t+"\0"})}createJoinersRegExp(e){let t=[];const 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){const 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ŽŻŹ"]:["aàáảãạăằắẳẵặâầấẩẫậäåāąAÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćčCÇĆČ","dđďDĐĎ","eèéẻẽẹêềếểễệëěēęEÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïīIÌÍỈĨỊÎÏĪ","lłLŁ","nñňńNÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøōOÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rřRŘ","sšśșşSŠŚȘŞ","tťțţTŤȚŢ","uùúủũụưừứửữựûüůūUÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿYÝỲỶỸỴŸ","zžżźZŽŻŹ"];let s=[];return e.split("").forEach(r=>{n.every(i=>{if(i.indexOf(r)!==-1){if(s.indexOf(i)>-1)return!1;e=e.replace(new RegExp(`[${i}]`,`gm${t}`),`[${i}]`),s.push(i)}return!0})}),e}createMergedBlanksRegExp(e){return e.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(e){const t="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~¡¿";let n=this.opt.accuracy,s=typeof n=="string"?n:n.value,r=typeof n=="string"?[]:n.limiters,i="";switch(r.forEach(o=>{i+=`|${this.escapeStr(o)}`}),s){case"partially":default:return`()(${e})`;case"complementary":return i="\\s"+(i||this.escapeStr(t)),`()([^${i}]*${e}[^${i}]*)`;case"exactly":return`(^|\\s${i})(${e})(?=$|\\s${i})`}}getSeparatedKeywords(e){let t=[];return e.forEach(n=>{this.opt.separateWordSearch?n.split(" ").forEach(s=>{s.trim()&&t.indexOf(s)===-1&&t.push(s)}):n.trim()&&t.indexOf(n)===-1&&t.push(n)}),{keywords:t.sort((n,s)=>s.length-n.length),length:t.length}}isNumeric(e){return Number(parseFloat(e))==e}checkRanges(e){if(!Array.isArray(e)||Object.prototype.toString.call(e[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(e),[];const t=[];let n=0;return e.sort((s,r)=>s.start-r.start).forEach(s=>{let{start:r,end:i,valid:o}=this.callNoMatchOnInvalidRanges(s,n);o&&(s.start=r,s.length=i-r,t.push(s),n=i)}),t}callNoMatchOnInvalidRanges(e,t){let n,s,r=!1;return e&&typeof e.start<"u"?(n=parseInt(e.start,10),s=n+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&s-t>0&&s-n>0?r=!0:(this.log(`Ignoring invalid or overlapping range: ${JSON.stringify(e)}`),this.opt.noMatch(e))):(this.log(`Ignoring invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)),{start:n,end:s,valid:r}}checkWhitespaceRanges(e,t,n){let s,r=!0,i=n.length,o=t-i,l=parseInt(e.start,10)-o;return l=l>i?i:l,s=l+parseInt(e.length,10),s>i&&(s=i,this.log(`End range automatically set to the max value of ${i}`)),l<0||s-l<0||l>i||s>i?(r=!1,this.log(`Invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)):n.substring(l,s).replace(/\s+/g,"")===""&&(r=!1,this.log("Skipping whitespace only range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:l,end:s,valid:r}}getTextNodes(e){let t="",n=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,s=>{n.push({start:t.length,end:(t+=s.textContent).length,node:s})},s=>this.matchesExclude(s.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{e({value:t,nodes:n})})}matchesExclude(e){return ce.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(e,t,n){const s=this.opt.element?this.opt.element:"mark",r=e.splitText(t),i=r.splitText(n-t);let o=document.createElement(s);return o.setAttribute("data-markjs","true"),this.opt.className&&o.setAttribute("class",this.opt.className),o.textContent=r.textContent,r.parentNode.replaceChild(o,r),i}wrapRangeInMappedTextNode(e,t,n,s,r){e.nodes.every((i,o)=>{const l=e.nodes[o+1];if(typeof l>"u"||l.start>t){if(!s(i.node))return!1;const c=t-i.start,f=(n>i.end?i.end:n)-i.start,v=e.value.substr(0,i.start),h=e.value.substr(f+i.start);if(i.node=this.wrapRangeInTextNode(i.node,c,f),e.value=v+h,e.nodes.forEach((b,y)=>{y>=o&&(e.nodes[y].start>0&&y!==o&&(e.nodes[y].start-=f),e.nodes[y].end-=f)}),n-=f,r(i.node.previousSibling,i.start),n>i.end)t=i.end;else return!1}return!0})}wrapMatches(e,t,n,s,r){const i=t===0?0:t+1;this.getTextNodes(o=>{o.nodes.forEach(l=>{l=l.node;let c;for(;(c=e.exec(l.textContent))!==null&&c[i]!=="";){if(!n(c[i],l))continue;let f=c.index;if(i!==0)for(let v=1;v<i;v++)f+=c[v].length;l=this.wrapRangeInTextNode(l,f,f+c[i].length),s(l.previousSibling),e.lastIndex=0}}),r()})}wrapMatchesAcrossElements(e,t,n,s,r){const i=t===0?0:t+1;this.getTextNodes(o=>{let l;for(;(l=e.exec(o.value))!==null&&l[i]!=="";){let c=l.index;if(i!==0)for(let v=1;v<i;v++)c+=l[v].length;const f=c+l[i].length;this.wrapRangeInMappedTextNode(o,c,f,v=>n(l[i],v),(v,h)=>{e.lastIndex=h,s(v)})}r()})}wrapRangeFromIndex(e,t,n,s){this.getTextNodes(r=>{const i=r.value.length;e.forEach((o,l)=>{let{start:c,end:f,valid:v}=this.checkWhitespaceRanges(o,i,r.value);v&&this.wrapRangeInMappedTextNode(r,c,f,h=>t(h,o,r.value.substring(c,f),l),h=>{n(h,o)})}),s()})}unwrapMatches(e){const t=e.parentNode;let 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,s="wrapMatches";const r=i=>{n++,this.opt.each(i)};this.opt.acrossElements&&(s="wrapMatchesAcrossElements"),this[s](e,this.opt.ignoreGroups,(i,o)=>this.opt.filter(o,i,n),r,()=>{n===0&&this.opt.noMatch(e),this.opt.done(n)})}mark(e,t){this.opt=t;let n=0,s="wrapMatches";const{keywords:r,length:i}=this.getSeparatedKeywords(typeof e=="string"?[e]:e),o=this.opt.caseSensitive?"":"i",l=c=>{let f=new RegExp(this.createRegExp(c),`gm${o}`),v=0;this.log(`Searching with expression "${f}"`),this[s](f,1,(h,b)=>this.opt.filter(b,c,n,v),h=>{v++,n++,this.opt.each(h)},()=>{v===0&&this.opt.noMatch(c),r[i-1]===c?this.opt.done(n):l(r[r.indexOf(c)+1])})};this.opt.acrossElements&&(s="wrapMatchesAcrossElements"),i===0?this.opt.done(n):l(r[0])}markRanges(e,t){this.opt=t;let n=0,s=this.checkRanges(e);s&&s.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(s)),this.wrapRangeFromIndex(s,(r,i,o,l)=>this.opt.filter(r,i,o,l),(r,i)=>{n++,this.opt.each(r,i)},()=>{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,n=>{this.unwrapMatches(n)},n=>{const s=ce.matches(n,t),r=this.matchesExclude(n);return!s||r?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function Vn(a){const e=new Pn(a);return this.mark=(t,n)=>(e.mark(t,n),this),this.markRegExp=(t,n)=>(e.markRegExp(t,n),this),this.markRanges=(t,n)=>(e.markRanges(t,n),this),this.unmark=t=>(e.unmark(t),this),this}const $n="ENTRIES",xt="KEYS",_t="VALUES",D="";class Le{constructor(e,t){const n=e._tree,s=Array.from(n.keys());this.set=e,this._type=t,this._path=s.length>0?[{node:n,keys:s}]:[]}next(){const e=this.dive();return this.backtrack(),e}dive(){if(this._path.length===0)return{done:!0,value:void 0};const{node:e,keys:t}=oe(this._path);if(oe(t)===D)return{done:!1,value:this.result()};const n=e.get(oe(t));return this._path.push({node:n,keys:Array.from(n.keys())}),this.dive()}backtrack(){if(this._path.length===0)return;const e=oe(this._path).keys;e.pop(),!(e.length>0)&&(this._path.pop(),this.backtrack())}key(){return this.set._prefix+this._path.map(({keys:e})=>oe(e)).filter(e=>e!==D).join("")}value(){return oe(this._path).node.get(D)}result(){switch(this._type){case _t:return this.value();case xt:return this.key();default:return[this.key(),this.value()]}}[Symbol.iterator](){return this}}const oe=a=>a[a.length-1],jn=(a,e,t)=>{const n=new Map;if(e===void 0)return n;const s=e.length+1,r=s+t,i=new Uint8Array(r*s).fill(t+1);for(let o=0;o<s;++o)i[o]=o;for(let o=1;o<r;++o)i[o*s]=o;return St(a,e,t,n,i,1,s,""),n},St=(a,e,t,n,s,r,i,o)=>{const l=r*i;e:for(const c of a.keys())if(c===D){const f=s[l-1];f<=t&&n.set(o,[a.get(c),f])}else{let f=r;for(let v=0;v<c.length;++v,++f){const h=c[v],b=i*f,y=b-i;let x=s[b];const w=Math.max(0,f-t-1),R=Math.min(i-1,f+t);for(let A=w;A<R;++A){const J=h!==e[A],Q=s[y+A]+ +J,W=s[y+A+1]+1,$=s[b+A]+1,j=s[b+A+1]=Math.min(Q,W,$);j<x&&(x=j)}if(x>t)continue e}St(a.get(c),e,t,n,s,f,i,o+c)}};class X{constructor(e=new Map,t=""){this._size=void 0,this._tree=e,this._prefix=t}atPrefix(e){if(!e.startsWith(this._prefix))throw new Error("Mismatched prefix");const[t,n]=Ce(this._tree,e.slice(this._prefix.length));if(t===void 0){const[s,r]=Ue(n);for(const i of s.keys())if(i!==D&&i.startsWith(r)){const o=new Map;return o.set(i.slice(r.length),s.get(i)),new X(o,e)}}return new X(t,e)}clear(){this._size=void 0,this._tree.clear()}delete(e){return this._size=void 0,Bn(this._tree,e)}entries(){return new Le(this,$n)}forEach(e){for(const[t,n]of this)e(t,n,this)}fuzzyGet(e,t){return jn(this._tree,e,t)}get(e){const t=We(this._tree,e);return t!==void 0?t.get(D):void 0}has(e){const t=We(this._tree,e);return t!==void 0&&t.has(D)}keys(){return new Le(this,xt)}set(e,t){if(typeof e!="string")throw new Error("key must be a string");return this._size=void 0,De(this._tree,e).set(D,t),this}get size(){if(this._size)return this._size;this._size=0;const e=this.entries();for(;!e.next().done;)this._size+=1;return this._size}update(e,t){if(typeof e!="string")throw new Error("key must be a string");this._size=void 0;const n=De(this._tree,e);return n.set(D,t(n.get(D))),this}fetch(e,t){if(typeof e!="string")throw new Error("key must be a string");this._size=void 0;const n=De(this._tree,e);let s=n.get(D);return s===void 0&&n.set(D,s=t()),s}values(){return new Le(this,_t)}[Symbol.iterator](){return this.entries()}static from(e){const t=new X;for(const[n,s]of e)t.set(n,s);return t}static fromObject(e){return X.from(Object.entries(e))}}const Ce=(a,e,t=[])=>{if(e.length===0||a==null)return[a,t];for(const n of a.keys())if(n!==D&&e.startsWith(n))return t.push([a,n]),Ce(a.get(n),e.slice(n.length),t);return t.push([a,e]),Ce(void 0,"",t)},We=(a,e)=>{if(e.length===0||a==null)return a;for(const t of a.keys())if(t!==D&&e.startsWith(t))return We(a.get(t),e.slice(t.length))},De=(a,e)=>{const t=e.length;e:for(let n=0;a&&n<t;){for(const r of a.keys())if(r!==D&&e[n]===r[0]){const i=Math.min(t-n,r.length);let o=1;for(;o<i&&e[n+o]===r[o];)++o;const l=a.get(r);if(o===r.length)a=l;else{const c=new Map;c.set(r.slice(o),l),a.set(e.slice(n,n+o),c),a.delete(r),a=c}n+=o;continue e}const s=new Map;return a.set(e.slice(n),s),s}return a},Bn=(a,e)=>{const[t,n]=Ce(a,e);if(t!==void 0){if(t.delete(D),t.size===0)Et(n);else if(t.size===1){const[s,r]=t.entries().next().value;Tt(n,s,r)}}},Et=a=>{if(a.length===0)return;const[e,t]=Ue(a);if(e.delete(t),e.size===0)Et(a.slice(0,-1));else if(e.size===1){const[n,s]=e.entries().next().value;n!==D&&Tt(a.slice(0,-1),n,s)}},Tt=(a,e,t)=>{if(a.length===0)return;const[n,s]=Ue(a);n.set(s+e,t),n.delete(s)},Ue=a=>a[a.length-1],qe="or",It="and",Wn="and_not";class ue{constructor(e){if((e==null?void 0:e.fields)==null)throw new Error('MiniSearch: option "fields" must be provided');const t=e.autoVacuum==null||e.autoVacuum===!0?Ve:e.autoVacuum;this._options={...Pe,...e,autoVacuum:t,searchOptions:{...dt,...e.searchOptions||{}},autoSuggestOptions:{...Gn,...e.autoSuggestOptions||{}}},this._index=new X,this._documentCount=0,this._documentIds=new Map,this._idToShortId=new Map,this._fieldIds={},this._fieldLength=new Map,this._avgFieldLength=[],this._nextId=0,this._storedFields=new Map,this._dirtCount=0,this._currentVacuum=null,this._enqueuedVacuum=null,this._enqueuedVacuumConditions=Je,this.addFields(this._options.fields)}add(e){const{extractField:t,tokenize:n,processTerm:s,fields:r,idField:i}=this._options,o=t(e,i);if(o==null)throw new Error(`MiniSearch: document does not have ID field "${i}"`);if(this._idToShortId.has(o))throw new Error(`MiniSearch: duplicate ID ${o}`);const l=this.addDocumentId(o);this.saveStoredFields(l,e);for(const c of r){const f=t(e,c);if(f==null)continue;const v=n(f.toString(),c),h=this._fieldIds[c],b=new Set(v).size;this.addFieldLength(l,h,this._documentCount-1,b);for(const y of v){const x=s(y,c);if(Array.isArray(x))for(const w of x)this.addTerm(h,l,w);else x&&this.addTerm(h,l,x)}}}addAll(e){for(const t of e)this.add(t)}addAllAsync(e,t={}){const{chunkSize:n=10}=t,s={chunk:[],promise:Promise.resolve()},{chunk:r,promise:i}=e.reduce(({chunk:o,promise:l},c,f)=>(o.push(c),(f+1)%n===0?{chunk:[],promise:l.then(()=>new Promise(v=>setTimeout(v,0))).then(()=>this.addAll(o))}:{chunk:o,promise:l}),s);return i.then(()=>this.addAll(r))}remove(e){const{tokenize:t,processTerm:n,extractField:s,fields:r,idField:i}=this._options,o=s(e,i);if(o==null)throw new Error(`MiniSearch: document does not have ID field "${i}"`);const l=this._idToShortId.get(o);if(l==null)throw new Error(`MiniSearch: cannot remove document with ID ${o}: it is not in the index`);for(const c of r){const f=s(e,c);if(f==null)continue;const v=t(f.toString(),c),h=this._fieldIds[c],b=new Set(v).size;this.removeFieldLength(l,h,this._documentCount,b);for(const y of v){const x=n(y,c);if(Array.isArray(x))for(const w of x)this.removeTerm(h,l,w);else x&&this.removeTerm(h,l,x)}}this._storedFields.delete(l),this._documentIds.delete(l),this._idToShortId.delete(o),this._fieldLength.delete(l),this._documentCount-=1}removeAll(e){if(e)for(const t of e)this.remove(t);else{if(arguments.length>0)throw new Error("Expected documents to be present. Omit the argument to remove all documents.");this._index=new X,this._documentCount=0,this._documentIds=new Map,this._idToShortId=new Map,this._fieldLength=new Map,this._avgFieldLength=[],this._storedFields=new Map,this._nextId=0}}discard(e){const t=this._idToShortId.get(e);if(t==null)throw new Error(`MiniSearch: cannot discard document with ID ${e}: it is not in the index`);this._idToShortId.delete(e),this._documentIds.delete(t),this._storedFields.delete(t),(this._fieldLength.get(t)||[]).forEach((n,s)=>{this.removeFieldLength(t,s,this._documentCount,n)}),this._fieldLength.delete(t),this._documentCount-=1,this._dirtCount+=1,this.maybeAutoVacuum()}maybeAutoVacuum(){if(this._options.autoVacuum===!1)return;const{minDirtFactor:e,minDirtCount:t,batchSize:n,batchWait:s}=this._options.autoVacuum;this.conditionalVacuum({batchSize:n,batchWait:s},{minDirtCount:t,minDirtFactor:e})}discardAll(e){const t=this._options.autoVacuum;try{this._options.autoVacuum=!1;for(const n of e)this.discard(n)}finally{this._options.autoVacuum=t}this.maybeAutoVacuum()}replace(e){const{idField:t,extractField:n}=this._options,s=n(e,t);this.discard(s),this.add(e)}vacuum(e={}){return this.conditionalVacuum(e)}conditionalVacuum(e,t){return this._currentVacuum?(this._enqueuedVacuumConditions=this._enqueuedVacuumConditions&&t,this._enqueuedVacuum!=null?this._enqueuedVacuum:(this._enqueuedVacuum=this._currentVacuum.then(()=>{const n=this._enqueuedVacuumConditions;return this._enqueuedVacuumConditions=Je,this.performVacuuming(e,n)}),this._enqueuedVacuum)):this.vacuumConditionsMet(t)===!1?Promise.resolve():(this._currentVacuum=this.performVacuuming(e),this._currentVacuum)}async performVacuuming(e,t){const n=this._dirtCount;if(this.vacuumConditionsMet(t)){const s=e.batchSize||Ke.batchSize,r=e.batchWait||Ke.batchWait;let i=1;for(const[o,l]of this._index){for(const[c,f]of l)for(const[v]of f)this._documentIds.has(v)||(f.size<=1?l.delete(c):f.delete(v));this._index.get(o).size===0&&this._index.delete(o),i%s===0&&await new Promise(c=>setTimeout(c,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||Ve.minDirtCount,n=n||Ve.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){const t=this._idToShortId.get(e);if(t!=null)return this._storedFields.get(t)}search(e,t={}){const{searchOptions:n}=this._options,s={...n,...t},r=this.executeQuery(e,t),i=[];for(const[o,{score:l,terms:c,match:f}]of r){const v=c.length||1,h={id:this._documentIds.get(o),score:l*v,terms:Object.keys(f),queryTerms:c,match:f};Object.assign(h,this._storedFields.get(o)),(s.filter==null||s.filter(h))&&i.push(h)}return e===ue.wildcard&&s.boostDocument==null||i.sort(ht),i}autoSuggest(e,t={}){t={...this._options.autoSuggestOptions,...t};const n=new Map;for(const{score:r,terms:i}of this.search(e,t)){const o=i.join(" "),l=n.get(o);l!=null?(l.score+=r,l.count+=1):n.set(o,{score:r,terms:i,count:1})}const s=[];for(const[r,{score:i,terms:o,count:l}]of n)s.push({suggestion:r,terms:o,score:i/l});return s.sort(ht),s}get documentCount(){return this._documentCount}get termCount(){return this._index.size}static loadJSON(e,t){if(t==null)throw new Error("MiniSearch: loadJSON should be given the same options used when serializing the index");return this.loadJS(JSON.parse(e),t)}static async loadJSONAsync(e,t){if(t==null)throw new Error("MiniSearch: loadJSON should be given the same options used when serializing the index");return this.loadJSAsync(JSON.parse(e),t)}static getDefault(e){if(Pe.hasOwnProperty(e))return ze(Pe,e);throw new Error(`MiniSearch: unknown option "${e}"`)}static loadJS(e,t){const{index:n,documentIds:s,fieldLength:r,storedFields:i,serializationVersion:o}=e,l=this.instantiateMiniSearch(e,t);l._documentIds=Te(s),l._fieldLength=Te(r),l._storedFields=Te(i);for(const[c,f]of l._documentIds)l._idToShortId.set(f,c);for(const[c,f]of n){const v=new Map;for(const h of Object.keys(f)){let b=f[h];o===1&&(b=b.ds),v.set(parseInt(h,10),Te(b))}l._index.set(c,v)}return l}static async loadJSAsync(e,t){const{index:n,documentIds:s,fieldLength:r,storedFields:i,serializationVersion:o}=e,l=this.instantiateMiniSearch(e,t);l._documentIds=await Ie(s),l._fieldLength=await Ie(r),l._storedFields=await Ie(i);for(const[f,v]of l._documentIds)l._idToShortId.set(v,f);let c=0;for(const[f,v]of n){const h=new Map;for(const b of Object.keys(v)){let y=v[b];o===1&&(y=y.ds),h.set(parseInt(b,10),await Ie(y))}++c%1e3===0&&await kt(0),l._index.set(f,h)}return l}static instantiateMiniSearch(e,t){const{documentCount:n,nextId:s,fieldIds:r,averageFieldLength:i,dirtCount:o,serializationVersion:l}=e;if(l!==1&&l!==2)throw new Error("MiniSearch: cannot deserialize an index created with an incompatible version");const c=new ue(t);return c._documentCount=n,c._nextId=s,c._idToShortId=new Map,c._fieldIds=r,c._avgFieldLength=i,c._dirtCount=o||0,c._index=new X,c}executeQuery(e,t={}){if(e===ue.wildcard)return this.executeWildcardQuery(t);if(typeof e!="string"){const h={...t,...e,queries:void 0},b=e.queries.map(y=>this.executeQuery(y,h));return this.combineResults(b,h.combineWith)}const{tokenize:n,processTerm:s,searchOptions:r}=this._options,i={tokenize:n,processTerm:s,...r,...t},{tokenize:o,processTerm:l}=i,v=o(e).flatMap(h=>l(h)).filter(h=>!!h).map(qn(i)).map(h=>this.executeQuerySpec(h,i));return this.combineResults(v,i.combineWith)}executeQuerySpec(e,t){const n={...this._options.searchOptions,...t},s=(n.fields||this._options.fields).reduce((x,w)=>({...x,[w]:ze(n.boost,w)||1}),{}),{boostDocument:r,weights:i,maxFuzzy:o,bm25:l}=n,{fuzzy:c,prefix:f}={...dt.weights,...i},v=this._index.get(e.term),h=this.termResults(e.term,e.term,1,e.termBoost,v,s,r,l);let b,y;if(e.prefix&&(b=this._index.atPrefix(e.term)),e.fuzzy){const x=e.fuzzy===!0?.2:e.fuzzy,w=x<1?Math.min(o,Math.round(e.term.length*x)):x;w&&(y=this._index.fuzzyGet(e.term,w))}if(b)for(const[x,w]of b){const R=x.length-e.term.length;if(!R)continue;y==null||y.delete(x);const A=f*x.length/(x.length+.3*R);this.termResults(e.term,x,A,e.termBoost,w,s,r,l,h)}if(y)for(const x of y.keys()){const[w,R]=y.get(x);if(!R)continue;const A=c*x.length/(x.length+R);this.termResults(e.term,x,A,e.termBoost,w,s,r,l,h)}return h}executeWildcardQuery(e){const t=new Map,n={...this._options.searchOptions,...e};for(const[s,r]of this._documentIds){const i=n.boostDocument?n.boostDocument(r,"",this._storedFields.get(s)):1;t.set(s,{score:i,terms:[],match:{}})}return t}combineResults(e,t=qe){if(e.length===0)return new Map;const n=t.toLowerCase(),s=Kn[n];if(!s)throw new Error(`Invalid combination operator: ${t}`);return e.reduce(s)||new Map}toJSON(){const e=[];for(const[t,n]of this._index){const s={};for(const[r,i]of n)s[r]=Object.fromEntries(i);e.push([t,s])}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,s,r,i,o,l,c=new Map){if(r==null)return c;for(const f of Object.keys(i)){const v=i[f],h=this._fieldIds[f],b=r.get(h);if(b==null)continue;let y=b.size;const x=this._avgFieldLength[h];for(const w of b.keys()){if(!this._documentIds.has(w)){this.removeTerm(h,w,t),y-=1;continue}const R=o?o(this._documentIds.get(w),t,this._storedFields.get(w)):1;if(!R)continue;const A=b.get(w),J=this._fieldLength.get(w)[h],Q=Un(A,y,this._documentCount,J,x,l),W=n*s*v*R*Q,$=c.get(w);if($){$.score+=W,Hn($.terms,e);const j=ze($.match,t);j?j.push(f):$.match[t]=[f]}else c.set(w,{score:W,terms:[e],match:{[t]:[f]}})}}return c}addTerm(e,t,n){const s=this._index.fetch(n,pt);let r=s.get(e);if(r==null)r=new Map,r.set(t,1),s.set(e,r);else{const i=r.get(t);r.set(t,(i||0)+1)}}removeTerm(e,t,n){if(!this._index.has(n)){this.warnDocumentChanged(t,e,n);return}const s=this._index.fetch(n,pt),r=s.get(e);r==null||r.get(t)==null?this.warnDocumentChanged(t,e,n):r.get(t)<=1?r.size<=1?s.delete(e):r.delete(t):r.set(t,r.get(t)-1),this._index.get(n).size===0&&this._index.delete(n)}warnDocumentChanged(e,t,n){for(const s of Object.keys(this._fieldIds))if(this._fieldIds[s]===t){this._options.logger("warn",`MiniSearch: document with ID ${this._documentIds.get(e)} has changed before removal: term "${n}" was not present in field "${s}". Removing a document after it has changed can corrupt the index!`,"version_conflict");return}}addDocumentId(e){const t=this._nextId;return this._idToShortId.set(e,t),this._documentIds.set(t,e),this._documentCount+=1,this._nextId+=1,t}addFields(e){for(let t=0;t<e.length;t++)this._fieldIds[e[t]]=t}addFieldLength(e,t,n,s){let r=this._fieldLength.get(e);r==null&&this._fieldLength.set(e,r=[]),r[t]=s;const o=(this._avgFieldLength[t]||0)*n+s;this._avgFieldLength[t]=o/(n+1)}removeFieldLength(e,t,n,s){if(n===1){this._avgFieldLength[t]=0;return}const r=this._avgFieldLength[t]*n-s;this._avgFieldLength[t]=r/(n-1)}saveStoredFields(e,t){const{storeFields:n,extractField:s}=this._options;if(n==null||n.length===0)return;let r=this._storedFields.get(e);r==null&&this._storedFields.set(e,r={});for(const i of n){const o=s(t,i);o!==void 0&&(r[i]=o)}}}ue.wildcard=Symbol("*");const ze=(a,e)=>Object.prototype.hasOwnProperty.call(a,e)?a[e]:void 0,Kn={[qe]:(a,e)=>{for(const t of e.keys()){const n=a.get(t);if(n==null)a.set(t,e.get(t));else{const{score:s,terms:r,match:i}=e.get(t);n.score=n.score+s,n.match=Object.assign(n.match,i),ft(n.terms,r)}}return a},[It]:(a,e)=>{const t=new Map;for(const n of e.keys()){const s=a.get(n);if(s==null)continue;const{score:r,terms:i,match:o}=e.get(n);ft(s.terms,i),t.set(n,{score:s.score+r,terms:s.terms,match:Object.assign(s.match,o)})}return t},[Wn]:(a,e)=>{for(const t of e.keys())a.delete(t);return a}},Jn={k:1.2,b:.7,d:.5},Un=(a,e,t,n,s,r)=>{const{k:i,b:o,d:l}=r;return Math.log(1+(t-e+.5)/(e+.5))*(l+a*(i+1)/(a+i*(1-o+o*n/s)))},qn=a=>(e,t,n)=>{const s=typeof a.fuzzy=="function"?a.fuzzy(e,t,n):a.fuzzy||!1,r=typeof a.prefix=="function"?a.prefix(e,t,n):a.prefix===!0,i=typeof a.boostTerm=="function"?a.boostTerm(e,t,n):1;return{term:e,fuzzy:s,prefix:r,termBoost:i}},Pe={idField:"id",extractField:(a,e)=>a[e],tokenize:a=>a.split(Qn),processTerm:a=>a.toLowerCase(),fields:void 0,searchOptions:void 0,storeFields:[],logger:(a,e)=>{typeof(console==null?void 0:console[a])=="function"&&console[a](e)},autoVacuum:!0},dt={combineWith:qe,prefix:!1,fuzzy:!1,maxFuzzy:6,boost:{},weights:{fuzzy:.45,prefix:.375},bm25:Jn},Gn={combineWith:It,prefix:(a,e,t)=>e===t.length-1},Ke={batchSize:1e3,batchWait:10},Je={minDirtFactor:.1,minDirtCount:20},Ve={...Ke,...Je},Hn=(a,e)=>{a.includes(e)||a.push(e)},ft=(a,e)=>{for(const t of e)a.includes(t)||a.push(t)},ht=({score:a},{score:e})=>e-a,pt=()=>new Map,Te=a=>{const e=new Map;for(const t of Object.keys(a))e.set(parseInt(t,10),a[t]);return e},Ie=async a=>{const e=new Map;let t=0;for(const n of Object.keys(a))e.set(parseInt(n,10),a[n]),++t%1e3===0&&await kt(0);return e},kt=a=>new Promise(e=>setTimeout(e,a)),Qn=/[\n\r\p{Z}\p{P}]+/u;class Yn{constructor(e=10){Re(this,"max");Re(this,"cache");this.max=e,this.cache=new Map}get(e){let t=this.cache.get(e);return t!==void 0&&(this.cache.delete(e),this.cache.set(e,t)),t}set(e,t){this.cache.has(e)?this.cache.delete(e):this.cache.size===this.max&&this.cache.delete(this.first()),this.cache.set(e,t)}first(){return this.cache.keys().next().value}clear(){this.cache.clear()}}const Zn=["aria-owns"],Xn={class:"shell"},es=["title"],ts={class:"search-actions before"},ns=["title"],ss=["aria-activedescendant","aria-controls","placeholder"],is={class:"search-actions"},rs=["title"],as=["disabled","title"],os=["id","role","aria-labelledby"],ls=["id","aria-selected"],cs=["href","aria-label","onMouseenter","onFocusin","data-index"],us={class:"titles"},ds=["innerHTML"],fs={class:"title main"},hs=["innerHTML"],ps={key:0,class:"excerpt-wrapper"},ms={key:0,class:"excerpt",inert:""},vs=["innerHTML"],gs={key:0,class:"no-results"},bs={class:"search-keyboard-shortcuts"},ys=["aria-label"],ws=["aria-label"],xs=["aria-label"],_s=["aria-label"],Ss=Lt({__name:"VPLocalSearchBox",emits:["close"],setup(a,{emit:e}){var S,C;const t=e,n=le(),s=le(),r=le(rn),i=nn(),{activate:o}=zn(n,{immediate:!0,allowOutsideClick:!0,clickOutsideDeactivates:!0,escapeDeactivates:!0}),{localeIndex:l,theme:c}=i,f=tt(async()=>{var m,p,I,O,z,P,V,k,K;return rt(ue.loadJSON((I=await((p=(m=r.value)[l.value])==null?void 0:p.call(m)))==null?void 0:I.default,{fields:["title","titles","text"],storeFields:["title","titles"],searchOptions:{fuzzy:.2,prefix:!0,boost:{title:4,text:2,titles:1},...((O=c.value.search)==null?void 0:O.provider)==="local"&&((P=(z=c.value.search.options)==null?void 0:z.miniSearch)==null?void 0:P.searchOptions)},...((V=c.value.search)==null?void 0:V.provider)==="local"&&((K=(k=c.value.search.options)==null?void 0:k.miniSearch)==null?void 0:K.options)}))}),h=ge(()=>{var m,p;return((m=c.value.search)==null?void 0:m.provider)==="local"&&((p=c.value.search.options)==null?void 0:p.disableQueryPersistence)===!0}).value?fe(""):Dt("vitepress:local-search-filter",""),b=zt("vitepress:local-search-detailed-list",((S=c.value.search)==null?void 0:S.provider)==="local"&&((C=c.value.search.options)==null?void 0:C.detailedView)===!0),y=ge(()=>{var m,p,I;return((m=c.value.search)==null?void 0:m.provider)==="local"&&(((p=c.value.search.options)==null?void 0:p.disableDetailedView)===!0||((I=c.value.search.options)==null?void 0:I.detailedView)===!1)}),x=ge(()=>{var p,I,O,z,P,V,k;const m=((p=c.value.search)==null?void 0:p.options)??c.value.algolia;return((P=(z=(O=(I=m==null?void 0:m.locales)==null?void 0:I[l.value])==null?void 0:O.translations)==null?void 0:z.button)==null?void 0:P.buttonText)||((k=(V=m==null?void 0:m.translations)==null?void 0:V.button)==null?void 0:k.buttonText)||"Search"});Pt(()=>{y.value&&(b.value=!1)});const w=le([]),R=fe(!1);$e(h,()=>{R.value=!1});const A=tt(async()=>{if(s.value)return rt(new Vn(s.value))},null),J=new Yn(16);Vt(()=>[f.value,h.value,b.value],async([m,p,I],O,z)=>{var ee,we,Ge,He;(O==null?void 0:O[0])!==m&&J.clear();let P=!1;if(z(()=>{P=!0}),!m)return;w.value=m.search(p).slice(0,16),R.value=!0;const V=I?await Promise.all(w.value.map(B=>Q(B.id))):[];if(P)return;for(const{id:B,mod:te}of V){const ne=B.slice(0,B.indexOf("#"));let Y=J.get(ne);if(Y)continue;Y=new Map,J.set(ne,Y);const G=te.default??te;if(G!=null&&G.render||G!=null&&G.setup){const se=Yt(G);se.config.warnHandler=()=>{},se.provide(Zt,i),Object.defineProperties(se.config.globalProperties,{$frontmatter:{get(){return i.frontmatter.value}},$params:{get(){return i.page.value.params}}});const Qe=document.createElement("div");se.mount(Qe),Qe.querySelectorAll("h1, h2, h3, h4, h5, h6").forEach(de=>{var Xe;const xe=(Xe=de.querySelector("a"))==null?void 0:Xe.getAttribute("href"),Ye=(xe==null?void 0:xe.startsWith("#"))&&xe.slice(1);if(!Ye)return;let Ze="";for(;(de=de.nextElementSibling)&&!/^h[1-6]$/i.test(de.tagName);)Ze+=de.outerHTML;Y.set(Ye,Ze)}),se.unmount()}if(P)return}const k=new Set;if(w.value=w.value.map(B=>{const[te,ne]=B.id.split("#"),Y=J.get(te),G=(Y==null?void 0:Y.get(ne))??"";for(const se in B.match)k.add(se);return{...B,text:G}}),await he(),P)return;await new Promise(B=>{var te;(te=A.value)==null||te.unmark({done:()=>{var ne;(ne=A.value)==null||ne.markRegExp(T(k),{done:B})}})});const K=((ee=n.value)==null?void 0:ee.querySelectorAll(".result .excerpt"))??[];for(const B of K)(we=B.querySelector('mark[data-markjs="true"]'))==null||we.scrollIntoView({block:"center"});(He=(Ge=s.value)==null?void 0:Ge.firstElementChild)==null||He.scrollIntoView({block:"start"})},{debounce:200,immediate:!0});async function Q(m){const p=Xt(m.slice(0,m.indexOf("#")));try{if(!p)throw new Error(`Cannot find file for id: ${m}`);return{id:m,mod:await import(((u)=>{if(u.startsWith('/')){return"https://registry.npmmirror.com/@gkd-kit/docs/0.0.1745764428766/files/.vitepress/dist"+u}return u})(p))}}catch(I){return console.error(I),{id:m,mod:{}}}}const W=fe(),$=ge(()=>{var m;return((m=h.value)==null?void 0:m.length)<=0});function j(m=!0){var p,I;(p=W.value)==null||p.focus(),m&&((I=W.value)==null||I.select())}Ae(()=>{j()});function ye(m){m.pointerType==="mouse"&&j()}const M=fe(-1),U=fe(!0);$e(w,m=>{M.value=m.length?0:-1,q()});function q(){he(()=>{const m=document.querySelector(".result.selected");m==null||m.scrollIntoView({block:"nearest"})})}_e("ArrowUp",m=>{m.preventDefault(),M.value--,M.value<0&&(M.value=w.value.length-1),U.value=!0,q()}),_e("ArrowDown",m=>{m.preventDefault(),M.value++,M.value>=w.value.length&&(M.value=0),U.value=!0,q()});const N=$t();_e("Enter",m=>{if(m.isComposing||m.target instanceof HTMLButtonElement&&m.target.type!=="submit")return;const p=w.value[M.value];if(m.target instanceof HTMLInputElement&&!p){m.preventDefault();return}p&&(N.go(p.id),t("close"))}),_e("Escape",()=>{t("close")});const d=sn({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"}}});Ae(()=>{window.history.pushState(null,"",null)}),jt("popstate",m=>{m.preventDefault(),t("close")});const g=Bt(Wt?document.body:null);Ae(()=>{he(()=>{g.value=!0,he().then(()=>o())})}),Kt(()=>{g.value=!1});function E(){h.value="",he().then(()=>j(!1))}function T(m){return new RegExp([...m].sort((p,I)=>I.length-p.length).map(p=>`(${en(p)})`).join("|"),"gi")}function F(m){var O;if(!U.value)return;const p=(O=m.target)==null?void 0:O.closest(".result"),I=Number.parseInt(p==null?void 0:p.dataset.index);I>=0&&I!==M.value&&(M.value=I),U.value=!1}return(m,p)=>{var I,O,z,P,V;return H(),Jt(Qt,{to:"body"},[_("div",{ref_key:"el",ref:n,role:"button","aria-owns":(I=w.value)!=null&&I.length?"localsearch-list":void 0,"aria-expanded":"true","aria-haspopup":"listbox","aria-labelledby":"localsearch-label",class:"VPLocalSearchBox"},[_("div",{class:"backdrop",onClick:p[0]||(p[0]=k=>m.$emit("close"))}),_("div",Xn,[_("form",{class:"search-bar",onPointerup:p[4]||(p[4]=k=>ye(k)),onSubmit:p[5]||(p[5]=Ut(()=>{},["prevent"]))},[_("label",{title:x.value,id:"localsearch-label",for:"localsearch-input"},p[7]||(p[7]=[_("span",{"aria-hidden":"true",class:"vpi-search search-icon local-search-icon"},null,-1)]),8,es),_("div",ts,[_("button",{class:"back-button",title:L(d)("modal.backButtonTitle"),onClick:p[1]||(p[1]=k=>m.$emit("close"))},p[8]||(p[8]=[_("span",{class:"vpi-arrow-left local-search-icon"},null,-1)]),8,ns)]),qt(_("input",{ref_key:"searchInput",ref:W,"onUpdate:modelValue":p[2]||(p[2]=k=>Ht(h)?h.value=k:null),"aria-activedescendant":M.value>-1?"localsearch-item-"+M.value:void 0,"aria-autocomplete":"both","aria-controls":(O=w.value)!=null&&O.length?"localsearch-list":void 0,"aria-labelledby":"localsearch-label",autocapitalize:"off",autocomplete:"off",autocorrect:"off",class:"search-input",id:"localsearch-input",enterkeyhint:"go",maxlength:"64",placeholder:x.value,spellcheck:"false",type:"search"},null,8,ss),[[Gt,L(h)]]),_("div",is,[y.value?Se("",!0):(H(),Z("button",{key:0,class:nt(["toggle-layout-button",{"detailed-list":L(b)}]),type:"button",title:L(d)("modal.displayDetails"),onClick:p[3]||(p[3]=k=>M.value>-1&&(b.value=!L(b)))},p[9]||(p[9]=[_("span",{class:"vpi-layout-list local-search-icon"},null,-1)]),10,rs)),_("button",{class:"clear-button",type:"reset",disabled:$.value,title:L(d)("modal.resetButtonTitle"),onClick:E},p[10]||(p[10]=[_("span",{class:"vpi-delete local-search-icon"},null,-1)]),8,as)])],32),_("ul",{ref_key:"resultsEl",ref:s,id:(z=w.value)!=null&&z.length?"localsearch-list":void 0,role:(P=w.value)!=null&&P.length?"listbox":void 0,"aria-labelledby":(V=w.value)!=null&&V.length?"localsearch-label":void 0,class:"results",onMousemove:F},[(H(!0),Z(it,null,st(w.value,(k,K)=>(H(),Z("li",{key:k.id,id:"localsearch-item-"+K,"aria-selected":M.value===K?"true":"false",role:"option"},[_("a",{href:k.id,class:nt(["result",{selected:M.value===K}]),"aria-label":[...k.titles,k.title].join(" > "),onMouseenter:ee=>!U.value&&(M.value=K),onFocusin:ee=>M.value=K,onClick:p[6]||(p[6]=ee=>m.$emit("close")),"data-index":K},[_("div",null,[_("div",us,[p[12]||(p[12]=_("span",{class:"title-icon"},"#",-1)),(H(!0),Z(it,null,st(k.titles,(ee,we)=>(H(),Z("span",{key:we,class:"title"},[_("span",{class:"text",innerHTML:ee},null,8,ds),p[11]||(p[11]=_("span",{class:"vpi-chevron-right local-search-icon"},null,-1))]))),128)),_("span",fs,[_("span",{class:"text",innerHTML:k.title},null,8,hs)])]),L(b)?(H(),Z("div",ps,[k.text?(H(),Z("div",ms,[_("div",{class:"vp-doc",innerHTML:k.text},null,8,vs)])):Se("",!0),p[13]||(p[13]=_("div",{class:"excerpt-gradient-bottom"},null,-1)),p[14]||(p[14]=_("div",{class:"excerpt-gradient-top"},null,-1))])):Se("",!0)])],42,cs)],8,ls))),128)),L(h)&&!w.value.length&&R.value?(H(),Z("li",gs,[pe(me(L(d)("modal.noResultsText"))+' "',1),_("strong",null,me(L(h)),1),p[15]||(p[15]=pe('" '))])):Se("",!0)],40,os),_("div",bs,[_("span",null,[_("kbd",{"aria-label":L(d)("modal.footer.navigateUpKeyAriaLabel")},p[16]||(p[16]=[_("span",{class:"vpi-arrow-up navigate-icon"},null,-1)]),8,ys),_("kbd",{"aria-label":L(d)("modal.footer.navigateDownKeyAriaLabel")},p[17]||(p[17]=[_("span",{class:"vpi-arrow-down navigate-icon"},null,-1)]),8,ws),pe(" "+me(L(d)("modal.footer.navigateText")),1)]),_("span",null,[_("kbd",{"aria-label":L(d)("modal.footer.selectKeyAriaLabel")},p[18]||(p[18]=[_("span",{class:"vpi-corner-down-left navigate-icon"},null,-1)]),8,xs),pe(" "+me(L(d)("modal.footer.selectText")),1)]),_("span",null,[_("kbd",{"aria-label":L(d)("modal.footer.closeKeyAriaLabel")},"esc",8,_s),pe(" "+me(L(d)("modal.footer.closeText")),1)])])])],8,Zn)])}}}),Fs=tn(Ss,[["__scopeId","data-v-ceff6b68"]]);export{Fs as default};
@@ -0,0 +1 @@
1
+ import{d as h,o as a,c as u,r as d,n as I,a as x,t as T,b,w as f,e as m,T as Pe,_ as $,u as st,i as at,f as rt,g as Le,h as k,j as c,k as i,l as ee,m as _e,p as N,q,s as ue,v as G,x as Ve,y as Se,z as it,A as lt,B as te,F as M,C as E,D as j,E as de,G as _,H as We,I as U,J as ve,K,L as pe,M as ze,N as le,O as ge,P as we,Q as Te,R as fe,S as ct,U as ut,V as ae,W as Ue,X as Re,Y as dt,Z as vt,$ as pt,a0 as ke,a1 as ft,a2 as O,a3 as ht,a4 as je,a5 as mt,a6 as _t,a7 as ne,a8 as gt,a9 as kt,aa as bt}from"./framework.DZAoeHqG.js";const $t=h({__name:"VPBadge",props:{text:{},type:{default:"tip"}},setup(s){return(e,t)=>(a(),u("span",{class:I(["VPBadge",e.type])},[d(e.$slots,"default",{},()=>[x(T(e.text),1)])],2))}}),yt={key:0,class:"VPBackdrop"},Pt=h({__name:"VPBackdrop",props:{show:{type:Boolean}},setup(s){return(e,t)=>(a(),b(Pe,{name:"fade"},{default:f(()=>[e.show?(a(),u("div",yt)):m("",!0)]),_:1}))}}),Lt=$(Pt,[["__scopeId","data-v-6249c3c6"]]),L=st;function Vt(s,e){let t,n=!1;return()=>{t&&clearTimeout(t),n?t=setTimeout(s,e):(s(),(n=!0)&&setTimeout(()=>n=!1,e))}}function be(s){return s.startsWith("/")?s:`/${s}`}function Ie(s){const{pathname:e,search:t,hash:n,protocol:o}=new URL(s,"http://a.com");if(at(s)||s.startsWith("#")||!o.startsWith("http")||!rt(e))return s;const{site:r}=L(),l=e.endsWith("/")||e.endsWith(".html")?s:s.replace(/(?:(^\.+)\/)?.*$/,`$1${e.replace(/(\.md)?$/,r.value.cleanUrls?"":".html")}${t}${n}`);return Le(l)}function re({correspondingLink:s=!1}={}){const{site:e,localeIndex:t,page:n,theme:o,hash:r}=L(),l=k(()=>{var p,y;return{label:(p=e.value.locales[t.value])==null?void 0:p.label,link:((y=e.value.locales[t.value])==null?void 0:y.link)||(t.value==="root"?"/":`/${t.value}/`)}});return{localeLinks:k(()=>Object.entries(e.value.locales).flatMap(([p,y])=>l.value.label===y.label?[]:{text:y.label,link:St(y.link||(p==="root"?"/":`/${p}/`),o.value.i18nRouting!==!1&&s,n.value.relativePath.slice(l.value.link.length-1),!e.value.cleanUrls)+r.value})),currentLang:l}}function St(s,e,t,n){return e?s.replace(/\/$/,"")+be(t.replace(/(^|\/)index\.md$/,"$1").replace(/\.md$/,n?".html":"")):s}const wt={class:"NotFound"},Tt={class:"code"},It={class:"title"},Nt={class:"quote"},Mt={class:"action"},At=["href","aria-label"],Ct=h({__name:"NotFound",setup(s){const{theme:e}=L(),{currentLang:t}=re();return(n,o)=>{var r,l,v,p,y;return a(),u("div",wt,[c("p",Tt,T(((r=i(e).notFound)==null?void 0:r.code)??"404"),1),c("h1",It,T(((l=i(e).notFound)==null?void 0:l.title)??"PAGE NOT FOUND"),1),o[0]||(o[0]=c("div",{class:"divider"},null,-1)),c("blockquote",Nt,T(((v=i(e).notFound)==null?void 0:v.quote)??"But if you don't change your direction, and if you keep looking, you may end up where you are heading."),1),c("div",Mt,[c("a",{class:"link",href:i(Le)(i(t).link),"aria-label":((p=i(e).notFound)==null?void 0:p.linkLabel)??"go to home"},T(((y=i(e).notFound)==null?void 0:y.linkText)??"Take me home"),9,At)])])}}}),Ht=$(Ct,[["__scopeId","data-v-de6f3413"]]);function qe(s,e){if(Array.isArray(s))return ie(s);if(s==null)return[];e=be(e);const t=Object.keys(s).sort((o,r)=>r.split("/").length-o.split("/").length).find(o=>e.startsWith(be(o))),n=t?s[t]:[];return Array.isArray(n)?ie(n):ie(n.items,n.base)}function Bt(s){const e=[];let t=0;for(const n in s){const o=s[n];if(o.items){t=e.push(o);continue}e[t]||e.push({items:[]}),e[t].items.push(o)}return e}function Et(s){const e=[];function t(n){for(const o of n)o.text&&o.link&&e.push({text:o.text,link:o.link,docFooterText:o.docFooterText}),o.items&&t(o.items)}return t(s),e}function $e(s,e){return Array.isArray(e)?e.some(t=>$e(s,t)):ee(s,e.link)?!0:e.items?$e(s,e.items):!1}function ie(s,e){return[...s].map(t=>{const n={...t},o=n.base||e;return o&&n.link&&(n.link=o+n.link),n.items&&(n.items=ie(n.items,o)),n})}function X(){const{frontmatter:s,page:e,theme:t}=L(),n=_e("(min-width: 960px)"),o=N(!1),r=k(()=>{const C=t.value.sidebar,w=e.value.relativePath;return C?qe(C,w):[]}),l=N(r.value);q(r,(C,w)=>{JSON.stringify(C)!==JSON.stringify(w)&&(l.value=r.value)});const v=k(()=>s.value.sidebar!==!1&&l.value.length>0&&s.value.layout!=="home"),p=k(()=>y?s.value.aside==null?t.value.aside==="left":s.value.aside==="left":!1),y=k(()=>s.value.layout==="home"?!1:s.value.aside!=null?!!s.value.aside:t.value.aside!==!1),V=k(()=>v.value&&n.value),g=k(()=>v.value?Bt(l.value):[]);function P(){o.value=!0}function S(){o.value=!1}function A(){o.value?S():P()}return{isOpen:o,sidebar:l,sidebarGroups:g,hasSidebar:v,hasAside:y,leftAside:p,isSidebarEnabled:V,open:P,close:S,toggle:A}}function Dt(s,e){let t;ue(()=>{t=s.value?document.activeElement:void 0}),G(()=>{window.addEventListener("keyup",n)}),Ve(()=>{window.removeEventListener("keyup",n)});function n(o){o.key==="Escape"&&s.value&&(e(),t==null||t.focus())}}function Ft(s){const{page:e,hash:t}=L(),n=N(!1),o=k(()=>s.value.collapsed!=null),r=k(()=>!!s.value.link),l=N(!1),v=()=>{l.value=ee(e.value.relativePath,s.value.link)};q([e,s,t],v),G(v);const p=k(()=>l.value?!0:s.value.items?$e(e.value.relativePath,s.value.items):!1),y=k(()=>!!(s.value.items&&s.value.items.length));ue(()=>{n.value=!!(o.value&&s.value.collapsed)}),Se(()=>{(l.value||p.value)&&(n.value=!1)});function V(){o.value&&(n.value=!n.value)}return{collapsed:n,collapsible:o,isLink:r,isActiveLink:l,hasActiveLink:p,hasChildren:y,toggle:V}}function Ot(){const{hasSidebar:s}=X(),e=_e("(min-width: 960px)"),t=_e("(min-width: 1280px)");return{isAsideEnabled:k(()=>!t.value&&!e.value?!1:s.value?t.value:e.value)}}const Gt=/\b(?:VPBadge|header-anchor|footnote-ref|ignore-header)\b/,ye=[];function Xe(s){return typeof s.outline=="object"&&!Array.isArray(s.outline)&&s.outline.label||s.outlineTitle||"On this page"}function Ne(s){const e=[...document.querySelectorAll(".VPDoc :where(h1,h2,h3,h4,h5,h6)")].filter(t=>t.id&&t.hasChildNodes()).map(t=>{const n=Number(t.tagName[1]);return{element:t,title:Wt(t),link:"#"+t.id,level:n}});return zt(e,s)}function Wt(s){let e="";for(const t of s.childNodes)if(t.nodeType===1){if(Gt.test(t.className))continue;e+=t.textContent}else t.nodeType===3&&(e+=t.textContent);return e.trim()}function zt(s,e){if(e===!1)return[];const t=(typeof e=="object"&&!Array.isArray(e)?e.level:e)||2,[n,o]=typeof t=="number"?[t,t]:t==="deep"?[2,6]:t;return jt(s,n,o)}function Ut(s,e){const{isAsideEnabled:t}=Ot(),n=Vt(r,100);let o=null;G(()=>{requestAnimationFrame(r),window.addEventListener("scroll",n)}),it(()=>{l(location.hash)}),Ve(()=>{window.removeEventListener("scroll",n)});function r(){if(!t.value)return;const v=window.scrollY,p=window.innerHeight,y=document.body.offsetHeight,V=Math.abs(v+p-y)<1,g=ye.map(({element:S,link:A})=>({link:A,top:Rt(S)})).filter(({top:S})=>!Number.isNaN(S)).sort((S,A)=>S.top-A.top);if(!g.length){l(null);return}if(v<1){l(null);return}if(V){l(g[g.length-1].link);return}let P=null;for(const{link:S,top:A}of g){if(A>v+lt()+4)break;P=S}l(P)}function l(v){o&&o.classList.remove("active"),v==null?o=null:o=s.value.querySelector(`a[href="${decodeURIComponent(v)}"]`);const p=o;p?(p.classList.add("active"),e.value.style.top=p.offsetTop+39+"px",e.value.style.opacity="1"):(e.value.style.top="33px",e.value.style.opacity="0")}}function Rt(s){let e=0;for(;s!==document.body;){if(s===null)return NaN;e+=s.offsetTop,s=s.offsetParent}return e}function jt(s,e,t){ye.length=0;const n=[],o=[];return s.forEach(r=>{const l={...r,children:[]};let v=o[o.length-1];for(;v&&v.level>=l.level;)o.pop(),v=o[o.length-1];if(l.element.classList.contains("ignore-header")||v&&"shouldIgnore"in v){o.push({level:l.level,shouldIgnore:!0});return}l.level>t||l.level<e||(ye.push({element:l.element,link:l.link}),v?v.children.push(l):n.push(l),o.push(l))}),n}const qt=["href","title"],Xt=h({__name:"VPDocOutlineItem",props:{headers:{},root:{type:Boolean}},setup(s){function e({target:t}){const n=t.href.split("#")[1],o=document.getElementById(decodeURIComponent(n));o==null||o.focus({preventScroll:!0})}return(t,n)=>{const o=te("VPDocOutlineItem",!0);return a(),u("ul",{class:I(["VPDocOutlineItem",t.root?"root":"nested"])},[(a(!0),u(M,null,E(t.headers,({children:r,link:l,title:v})=>(a(),u("li",null,[c("a",{class:"outline-link",href:l,onClick:e,title:v},T(v),9,qt),r!=null&&r.length?(a(),b(o,{key:0,headers:r},null,8,["headers"])):m("",!0)]))),256))],2)}}}),Ye=$(Xt,[["__scopeId","data-v-a37e46b1"]]),Yt={class:"content"},Kt={"aria-level":"2",class:"outline-title",id:"doc-outline-aria-label",role:"heading"},Jt=h({__name:"VPDocAsideOutline",setup(s){const{frontmatter:e,theme:t}=L(),n=j([]);de(()=>{n.value=Ne(e.value.outline??t.value.outline)});const o=N(),r=N();return Ut(o,r),(l,v)=>(a(),u("nav",{"aria-labelledby":"doc-outline-aria-label",class:I(["VPDocAsideOutline",{"has-outline":n.value.length>0}]),ref_key:"container",ref:o},[c("div",Yt,[c("div",{class:"outline-marker",ref_key:"marker",ref:r},null,512),c("div",Kt,T(i(Xe)(i(t))),1),_(Ye,{headers:n.value,root:!0},null,8,["headers"])])],2))}}),Zt=$(Jt,[["__scopeId","data-v-ff2037ef"]]),Qt={class:"VPDocAsideCarbonAds"},xt=h({__name:"VPDocAsideCarbonAds",props:{carbonAds:{}},setup(s){const e=()=>null;return(t,n)=>(a(),u("div",Qt,[_(i(e),{"carbon-ads":t.carbonAds},null,8,["carbon-ads"])]))}}),en={class:"VPDocAside"},tn=h({__name:"VPDocAside",setup(s){const{theme:e}=L();return(t,n)=>(a(),u("div",en,[d(t.$slots,"aside-top",{},void 0,!0),d(t.$slots,"aside-outline-before",{},void 0,!0),_(Zt),d(t.$slots,"aside-outline-after",{},void 0,!0),n[0]||(n[0]=c("div",{class:"spacer"},null,-1)),d(t.$slots,"aside-ads-before",{},void 0,!0),i(e).carbonAds?(a(),b(xt,{key:0,"carbon-ads":i(e).carbonAds},null,8,["carbon-ads"])):m("",!0),d(t.$slots,"aside-ads-after",{},void 0,!0),d(t.$slots,"aside-bottom",{},void 0,!0)]))}}),nn=$(tn,[["__scopeId","data-v-976e339e"]]);function on(){const{theme:s,page:e}=L();return k(()=>{const{text:t="Edit this page",pattern:n=""}=s.value.editLink||{};let o;return typeof n=="function"?o=n(e.value):o=n.replace(/:path/g,e.value.filePath),{url:o,text:t}})}function sn(){const{page:s,theme:e,frontmatter:t}=L();return k(()=>{var y,V,g,P,S,A,C,w;const n=qe(e.value.sidebar,s.value.relativePath),o=Et(n),r=an(o,D=>D.link.replace(/[?#].*$/,"")),l=r.findIndex(D=>ee(s.value.relativePath,D.link)),v=((y=e.value.docFooter)==null?void 0:y.prev)===!1&&!t.value.prev||t.value.prev===!1,p=((V=e.value.docFooter)==null?void 0:V.next)===!1&&!t.value.next||t.value.next===!1;return{prev:v?void 0:{text:(typeof t.value.prev=="string"?t.value.prev:typeof t.value.prev=="object"?t.value.prev.text:void 0)??((g=r[l-1])==null?void 0:g.docFooterText)??((P=r[l-1])==null?void 0:P.text),link:(typeof t.value.prev=="object"?t.value.prev.link:void 0)??((S=r[l-1])==null?void 0:S.link)},next:p?void 0:{text:(typeof t.value.next=="string"?t.value.next:typeof t.value.next=="object"?t.value.next.text:void 0)??((A=r[l+1])==null?void 0:A.docFooterText)??((C=r[l+1])==null?void 0:C.text),link:(typeof t.value.next=="object"?t.value.next.link:void 0)??((w=r[l+1])==null?void 0:w.link)}}})}function an(s,e){const t=new Set;return s.filter(n=>{const o=e(n);return t.has(o)?!1:t.add(o)})}const R=h({__name:"VPLink",props:{tag:{},href:{},noIcon:{type:Boolean},target:{},rel:{}},setup(s){const e=s,t=k(()=>e.tag??(e.href?"a":"span")),n=k(()=>e.href&&We.test(e.href)||e.target==="_blank");return(o,r)=>(a(),b(U(t.value),{class:I(["VPLink",{link:o.href,"vp-external-link-icon":n.value,"no-icon":o.noIcon}]),href:o.href?i(Ie)(o.href):void 0,target:o.target??(n.value?"_blank":void 0),rel:o.rel??(n.value?"noreferrer":void 0)},{default:f(()=>[d(o.$slots,"default")]),_:3},8,["class","href","target","rel"]))}}),rn={class:"VPLastUpdated"},ln=["datetime"],cn=h({__name:"VPDocFooterLastUpdated",setup(s){const{theme:e,page:t,lang:n}=L(),o=k(()=>new Date(t.value.lastUpdated)),r=k(()=>o.value.toISOString()),l=N("");return G(()=>{ue(()=>{var v,p,y;l.value=new Intl.DateTimeFormat((p=(v=e.value.lastUpdated)==null?void 0:v.formatOptions)!=null&&p.forceLocale?n.value:void 0,((y=e.value.lastUpdated)==null?void 0:y.formatOptions)??{dateStyle:"short",timeStyle:"short"}).format(o.value)})}),(v,p)=>{var y;return a(),u("p",rn,[x(T(((y=i(e).lastUpdated)==null?void 0:y.text)||i(e).lastUpdatedText||"Last updated")+": ",1),c("time",{datetime:r.value},T(l.value),9,ln)])}}}),un=$(cn,[["__scopeId","data-v-68451677"]]),dn={key:0,class:"VPDocFooter"},vn={key:0,class:"edit-info"},pn={key:0,class:"edit-link"},fn={key:1,class:"last-updated"},hn={key:1,class:"prev-next","aria-labelledby":"doc-footer-aria-label"},mn={class:"pager"},_n=["innerHTML"],gn=["innerHTML"],kn={class:"pager"},bn=["innerHTML"],$n=["innerHTML"],yn=h({__name:"VPDocFooter",setup(s){const{theme:e,page:t,frontmatter:n}=L(),o=on(),r=sn(),l=k(()=>e.value.editLink&&n.value.editLink!==!1),v=k(()=>t.value.lastUpdated),p=k(()=>l.value||v.value||r.value.prev||r.value.next);return(y,V)=>{var g,P,S,A;return p.value?(a(),u("footer",dn,[d(y.$slots,"doc-footer-before",{},void 0,!0),l.value||v.value?(a(),u("div",vn,[l.value?(a(),u("div",pn,[_(R,{class:"edit-link-button",href:i(o).url,"no-icon":!0},{default:f(()=>[V[0]||(V[0]=c("span",{class:"vpi-square-pen edit-link-icon"},null,-1)),x(" "+T(i(o).text),1)]),_:1},8,["href"])])):m("",!0),v.value?(a(),u("div",fn,[_(un)])):m("",!0)])):m("",!0),(g=i(r).prev)!=null&&g.link||(P=i(r).next)!=null&&P.link?(a(),u("nav",hn,[V[1]||(V[1]=c("span",{class:"visually-hidden",id:"doc-footer-aria-label"},"Pager",-1)),c("div",mn,[(S=i(r).prev)!=null&&S.link?(a(),b(R,{key:0,class:"pager-link prev",href:i(r).prev.link},{default:f(()=>{var C;return[c("span",{class:"desc",innerHTML:((C=i(e).docFooter)==null?void 0:C.prev)||"Previous page"},null,8,_n),c("span",{class:"title",innerHTML:i(r).prev.text},null,8,gn)]}),_:1},8,["href"])):m("",!0)]),c("div",kn,[(A=i(r).next)!=null&&A.link?(a(),b(R,{key:0,class:"pager-link next",href:i(r).next.link},{default:f(()=>{var C;return[c("span",{class:"desc",innerHTML:((C=i(e).docFooter)==null?void 0:C.next)||"Next page"},null,8,bn),c("span",{class:"title",innerHTML:i(r).next.text},null,8,$n)]}),_:1},8,["href"])):m("",!0)])])):m("",!0)])):m("",!0)}}}),Pn=$(yn,[["__scopeId","data-v-1312305d"]]),Ln={class:"container"},Vn={class:"aside-container"},Sn={class:"aside-content"},wn={class:"content"},Tn={class:"content-container"},In={class:"main"},Nn=h({__name:"VPDoc",setup(s){const{theme:e}=L(),t=ve(),{hasSidebar:n,hasAside:o,leftAside:r}=X(),l=k(()=>t.path.replace(/[./]+/g,"_").replace(/_html$/,""));return(v,p)=>{const y=te("Content");return a(),u("div",{class:I(["VPDoc",{"has-sidebar":i(n),"has-aside":i(o)}])},[d(v.$slots,"doc-top",{},void 0,!0),c("div",Ln,[i(o)?(a(),u("div",{key:0,class:I(["aside",{"left-aside":i(r)}])},[p[0]||(p[0]=c("div",{class:"aside-curtain"},null,-1)),c("div",Vn,[c("div",Sn,[_(nn,null,{"aside-top":f(()=>[d(v.$slots,"aside-top",{},void 0,!0)]),"aside-bottom":f(()=>[d(v.$slots,"aside-bottom",{},void 0,!0)]),"aside-outline-before":f(()=>[d(v.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":f(()=>[d(v.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":f(()=>[d(v.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":f(()=>[d(v.$slots,"aside-ads-after",{},void 0,!0)]),_:3})])])],2)):m("",!0),c("div",wn,[c("div",Tn,[d(v.$slots,"doc-before",{},void 0,!0),c("main",In,[_(y,{class:I(["vp-doc",[l.value,i(e).externalLinkIcon&&"external-link-icon-enabled"]])},null,8,["class"])]),_(Pn,null,{"doc-footer-before":f(()=>[d(v.$slots,"doc-footer-before",{},void 0,!0)]),_:3}),d(v.$slots,"doc-after",{},void 0,!0)])])]),d(v.$slots,"doc-bottom",{},void 0,!0)],2)}}}),Mn=$(Nn,[["__scopeId","data-v-0a1e4fab"]]),An=h({__name:"VPButton",props:{tag:{},size:{default:"medium"},theme:{default:"brand"},text:{},href:{},target:{},rel:{}},setup(s){const e=s,t=k(()=>e.href&&We.test(e.href)),n=k(()=>e.tag||(e.href?"a":"button"));return(o,r)=>(a(),b(U(n.value),{class:I(["VPButton",[o.size,o.theme]]),href:o.href?i(Ie)(o.href):void 0,target:e.target??(t.value?"_blank":void 0),rel:e.rel??(t.value?"noreferrer":void 0)},{default:f(()=>[x(T(o.text),1)]),_:1},8,["class","href","target","rel"]))}}),Cn=$(An,[["__scopeId","data-v-d4efdd54"]]),Hn=["src","alt"],Bn=h({inheritAttrs:!1,__name:"VPImage",props:{image:{},alt:{}},setup(s){return(e,t)=>{const n=te("VPImage",!0);return e.image?(a(),u(M,{key:0},[typeof e.image=="string"||"src"in e.image?(a(),u("img",K({key:0,class:"VPImage"},typeof e.image=="string"?e.$attrs:{...e.image,...e.$attrs},{src:i(Le)(typeof e.image=="string"?e.image:e.image.src),alt:e.alt??(typeof e.image=="string"?"":e.image.alt||"")}),null,16,Hn)):(a(),u(M,{key:1},[_(n,K({class:"dark",image:e.image.dark,alt:e.image.alt},e.$attrs),null,16,["image","alt"]),_(n,K({class:"light",image:e.image.light,alt:e.image.alt},e.$attrs),null,16,["image","alt"])],64))],64)):m("",!0)}}}),ce=$(Bn,[["__scopeId","data-v-a9da5ff2"]]),En={class:"container"},Dn={class:"main"},Fn={class:"heading"},On=["innerHTML"],Gn=["innerHTML"],Wn=["innerHTML"],zn={key:0,class:"actions"},Un={key:0,class:"image"},Rn={class:"image-container"},jn=h({__name:"VPHero",props:{name:{},text:{},tagline:{},image:{},actions:{}},setup(s){const e=pe("hero-image-slot-exists");return(t,n)=>(a(),u("div",{class:I(["VPHero",{"has-image":t.image||i(e)}])},[c("div",En,[c("div",Dn,[d(t.$slots,"home-hero-info-before",{},void 0,!0),d(t.$slots,"home-hero-info",{},()=>[c("h1",Fn,[t.name?(a(),u("span",{key:0,innerHTML:t.name,class:"name clip"},null,8,On)):m("",!0),t.text?(a(),u("span",{key:1,innerHTML:t.text,class:"text"},null,8,Gn)):m("",!0)]),t.tagline?(a(),u("p",{key:0,innerHTML:t.tagline,class:"tagline"},null,8,Wn)):m("",!0)],!0),d(t.$slots,"home-hero-info-after",{},void 0,!0),t.actions?(a(),u("div",zn,[(a(!0),u(M,null,E(t.actions,o=>(a(),u("div",{key:o.link,class:"action"},[_(Cn,{tag:"a",size:"medium",theme:o.theme,text:o.text,href:o.link,target:o.target,rel:o.rel},null,8,["theme","text","href","target","rel"])]))),128))])):m("",!0),d(t.$slots,"home-hero-actions-after",{},void 0,!0)]),t.image||i(e)?(a(),u("div",Un,[c("div",Rn,[n[0]||(n[0]=c("div",{class:"image-bg"},null,-1)),d(t.$slots,"home-hero-image",{},()=>[t.image?(a(),b(ce,{key:0,class:"image-src",image:t.image},null,8,["image"])):m("",!0)],!0)])])):m("",!0)])],2))}}),qn=$(jn,[["__scopeId","data-v-7d6b42a6"]]),Xn=h({__name:"VPHomeHero",setup(s){const{frontmatter:e}=L();return(t,n)=>i(e).hero?(a(),b(qn,{key:0,class:"VPHomeHero",name:i(e).hero.name,text:i(e).hero.text,tagline:i(e).hero.tagline,image:i(e).hero.image,actions:i(e).hero.actions},{"home-hero-info-before":f(()=>[d(t.$slots,"home-hero-info-before")]),"home-hero-info":f(()=>[d(t.$slots,"home-hero-info")]),"home-hero-info-after":f(()=>[d(t.$slots,"home-hero-info-after")]),"home-hero-actions-after":f(()=>[d(t.$slots,"home-hero-actions-after")]),"home-hero-image":f(()=>[d(t.$slots,"home-hero-image")]),_:3},8,["name","text","tagline","image","actions"])):m("",!0)}}),Yn={class:"box"},Kn={key:0,class:"icon"},Jn=["innerHTML"],Zn=["innerHTML"],Qn=["innerHTML"],xn={key:4,class:"link-text"},eo={class:"link-text-value"},to=h({__name:"VPFeature",props:{icon:{},title:{},details:{},link:{},linkText:{},rel:{},target:{}},setup(s){return(e,t)=>(a(),b(R,{class:"VPFeature",href:e.link,rel:e.rel,target:e.target,"no-icon":!0,tag:e.link?"a":"div"},{default:f(()=>[c("article",Yn,[typeof e.icon=="object"&&e.icon.wrap?(a(),u("div",Kn,[_(ce,{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"?(a(),b(ce,{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?(a(),u("div",{key:2,class:"icon",innerHTML:e.icon},null,8,Jn)):m("",!0),c("h2",{class:"title",innerHTML:e.title},null,8,Zn),e.details?(a(),u("p",{key:3,class:"details",innerHTML:e.details},null,8,Qn)):m("",!0),e.linkText?(a(),u("div",xn,[c("p",eo,[x(T(e.linkText)+" ",1),t[0]||(t[0]=c("span",{class:"vpi-arrow-right link-text-icon"},null,-1))])])):m("",!0)])]),_:1},8,["href","rel","target","tag"]))}}),no=$(to,[["__scopeId","data-v-7d9802d1"]]),oo={key:0,class:"VPFeatures"},so={class:"container"},ao={class:"items"},ro=h({__name:"VPFeatures",props:{features:{}},setup(s){const e=s,t=k(()=>{const n=e.features.length;if(n){if(n===2)return"grid-2";if(n===3)return"grid-3";if(n%3===0)return"grid-6";if(n>3)return"grid-4"}else return});return(n,o)=>n.features?(a(),u("div",oo,[c("div",so,[c("div",ao,[(a(!0),u(M,null,E(n.features,r=>(a(),u("div",{key:r.title,class:I(["item",[t.value]])},[_(no,{icon:r.icon,title:r.title,details:r.details,link:r.link,"link-text":r.linkText,rel:r.rel,target:r.target},null,8,["icon","title","details","link","link-text","rel","target"])],2))),128))])])])):m("",!0)}}),io=$(ro,[["__scopeId","data-v-aa9d74e7"]]),lo=h({__name:"VPHomeFeatures",setup(s){const{frontmatter:e}=L();return(t,n)=>i(e).features?(a(),b(io,{key:0,class:"VPHomeFeatures",features:i(e).features},null,8,["features"])):m("",!0)}}),co=h({__name:"VPHomeContent",setup(s){const{width:e}=ze({initialWidth:0,includeScrollbar:!1});return(t,n)=>(a(),u("div",{class:"vp-doc container",style:le(i(e)?{"--vp-offset":`calc(50% - ${i(e)/2}px)`}:{})},[d(t.$slots,"default",{},void 0,!0)],4))}}),uo=$(co,[["__scopeId","data-v-19ba92d4"]]),vo=h({__name:"VPHome",setup(s){const{frontmatter:e,theme:t}=L();return(n,o)=>{const r=te("Content");return a(),u("div",{class:I(["VPHome",{"external-link-icon-enabled":i(t).externalLinkIcon}])},[d(n.$slots,"home-hero-before",{},void 0,!0),_(Xn,null,{"home-hero-info-before":f(()=>[d(n.$slots,"home-hero-info-before",{},void 0,!0)]),"home-hero-info":f(()=>[d(n.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-info-after":f(()=>[d(n.$slots,"home-hero-info-after",{},void 0,!0)]),"home-hero-actions-after":f(()=>[d(n.$slots,"home-hero-actions-after",{},void 0,!0)]),"home-hero-image":f(()=>[d(n.$slots,"home-hero-image",{},void 0,!0)]),_:3}),d(n.$slots,"home-hero-after",{},void 0,!0),d(n.$slots,"home-features-before",{},void 0,!0),_(lo),d(n.$slots,"home-features-after",{},void 0,!0),i(e).markdownStyles!==!1?(a(),b(uo,{key:0},{default:f(()=>[_(r)]),_:1})):(a(),b(r,{key:1}))],2)}}}),po=$(vo,[["__scopeId","data-v-3b9a8878"]]),fo={},ho={class:"VPPage"};function mo(s,e){const t=te("Content");return a(),u("div",ho,[d(s.$slots,"page-top"),_(t),d(s.$slots,"page-bottom")])}const _o=$(fo,[["render",mo]]),go=h({__name:"VPContent",setup(s){const{page:e,frontmatter:t}=L(),{hasSidebar:n}=X();return(o,r)=>(a(),u("div",{class:I(["VPContent",{"has-sidebar":i(n),"is-home":i(t).layout==="home"}]),id:"VPContent"},[i(e).isNotFound?d(o.$slots,"not-found",{key:0},()=>[_(Ht)],!0):i(t).layout==="page"?(a(),b(_o,{key:1},{"page-top":f(()=>[d(o.$slots,"page-top",{},void 0,!0)]),"page-bottom":f(()=>[d(o.$slots,"page-bottom",{},void 0,!0)]),_:3})):i(t).layout==="home"?(a(),b(po,{key:2},{"home-hero-before":f(()=>[d(o.$slots,"home-hero-before",{},void 0,!0)]),"home-hero-info-before":f(()=>[d(o.$slots,"home-hero-info-before",{},void 0,!0)]),"home-hero-info":f(()=>[d(o.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-info-after":f(()=>[d(o.$slots,"home-hero-info-after",{},void 0,!0)]),"home-hero-actions-after":f(()=>[d(o.$slots,"home-hero-actions-after",{},void 0,!0)]),"home-hero-image":f(()=>[d(o.$slots,"home-hero-image",{},void 0,!0)]),"home-hero-after":f(()=>[d(o.$slots,"home-hero-after",{},void 0,!0)]),"home-features-before":f(()=>[d(o.$slots,"home-features-before",{},void 0,!0)]),"home-features-after":f(()=>[d(o.$slots,"home-features-after",{},void 0,!0)]),_:3})):i(t).layout&&i(t).layout!=="doc"?(a(),b(U(i(t).layout),{key:3})):(a(),b(Mn,{key:4},{"doc-top":f(()=>[d(o.$slots,"doc-top",{},void 0,!0)]),"doc-bottom":f(()=>[d(o.$slots,"doc-bottom",{},void 0,!0)]),"doc-footer-before":f(()=>[d(o.$slots,"doc-footer-before",{},void 0,!0)]),"doc-before":f(()=>[d(o.$slots,"doc-before",{},void 0,!0)]),"doc-after":f(()=>[d(o.$slots,"doc-after",{},void 0,!0)]),"aside-top":f(()=>[d(o.$slots,"aside-top",{},void 0,!0)]),"aside-outline-before":f(()=>[d(o.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":f(()=>[d(o.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":f(()=>[d(o.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":f(()=>[d(o.$slots,"aside-ads-after",{},void 0,!0)]),"aside-bottom":f(()=>[d(o.$slots,"aside-bottom",{},void 0,!0)]),_:3}))],2))}}),ko=$(go,[["__scopeId","data-v-8041fc03"]]),bo={class:"container"},$o=["innerHTML"],yo=["innerHTML"],Po=h({__name:"VPFooter",setup(s){const{theme:e,frontmatter:t}=L(),{hasSidebar:n}=X();return(o,r)=>i(e).footer&&i(t).footer!==!1?(a(),u("footer",{key:0,class:I(["VPFooter",{"has-sidebar":i(n)}])},[c("div",bo,[i(e).footer.message?(a(),u("p",{key:0,class:"message",innerHTML:i(e).footer.message},null,8,$o)):m("",!0),i(e).footer.copyright?(a(),u("p",{key:1,class:"copyright",innerHTML:i(e).footer.copyright},null,8,yo)):m("",!0)])],2)):m("",!0)}}),Lo=$(Po,[["__scopeId","data-v-0e91568f"]]);function Vo(){const{theme:s,frontmatter:e}=L(),t=j([]),n=k(()=>t.value.length>0);return de(()=>{t.value=Ne(e.value.outline??s.value.outline)}),{headers:t,hasLocalNav:n}}const So={class:"menu-text"},wo={class:"header"},To={class:"outline"},Io=h({__name:"VPLocalNavOutlineDropdown",props:{headers:{},navHeight:{}},setup(s){const e=s,{theme:t}=L(),n=N(!1),o=N(0),r=N(),l=N();function v(g){var P;(P=r.value)!=null&&P.contains(g.target)||(n.value=!1)}q(n,g=>{if(g){document.addEventListener("click",v);return}document.removeEventListener("click",v)}),ge("Escape",()=>{n.value=!1}),de(()=>{n.value=!1});function p(){n.value=!n.value,o.value=window.innerHeight+Math.min(window.scrollY-e.navHeight,0)}function y(g){g.target.classList.contains("outline-link")&&(l.value&&(l.value.style.transition="none"),we(()=>{n.value=!1}))}function V(){n.value=!1,window.scrollTo({top:0,left:0,behavior:"smooth"})}return(g,P)=>(a(),u("div",{class:"VPLocalNavOutlineDropdown",style:le({"--vp-vh":o.value+"px"}),ref_key:"main",ref:r},[g.headers.length>0?(a(),u("button",{key:0,onClick:p,class:I({open:n.value})},[c("span",So,T(i(Xe)(i(t))),1),P[0]||(P[0]=c("span",{class:"vpi-chevron-right icon"},null,-1))],2)):(a(),u("button",{key:1,onClick:V},T(i(t).returnToTopLabel||"Return to top"),1)),_(Pe,{name:"flyout"},{default:f(()=>[n.value?(a(),u("div",{key:0,ref_key:"items",ref:l,class:"items",onClick:y},[c("div",wo,[c("a",{class:"top-link",href:"#",onClick:V},T(i(t).returnToTopLabel||"Return to top"),1)]),c("div",To,[_(Ye,{headers:g.headers},null,8,["headers"])])],512)):m("",!0)]),_:1})],4))}}),No=$(Io,[["__scopeId","data-v-35b06bb7"]]),Mo={class:"container"},Ao=["aria-expanded"],Co={class:"menu-text"},Ho=h({__name:"VPLocalNav",props:{open:{type:Boolean}},emits:["open-menu"],setup(s){const{theme:e,frontmatter:t}=L(),{hasSidebar:n}=X(),{headers:o}=Vo(),{y:r}=Te(),l=N(0);G(()=>{l.value=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--vp-nav-height"))}),de(()=>{o.value=Ne(t.value.outline??e.value.outline)});const v=k(()=>o.value.length===0),p=k(()=>v.value&&!n.value),y=k(()=>({VPLocalNav:!0,"has-sidebar":n.value,empty:v.value,fixed:p.value}));return(V,g)=>i(t).layout!=="home"&&(!p.value||i(r)>=l.value)?(a(),u("div",{key:0,class:I(y.value)},[c("div",Mo,[i(n)?(a(),u("button",{key:0,class:"menu","aria-expanded":V.open,"aria-controls":"VPSidebarNav",onClick:g[0]||(g[0]=P=>V.$emit("open-menu"))},[g[1]||(g[1]=c("span",{class:"vpi-align-left menu-icon"},null,-1)),c("span",Co,T(i(e).sidebarMenuLabel||"Menu"),1)],8,Ao)):m("",!0),_(No,{headers:i(o),navHeight:l.value},null,8,["headers","navHeight"])])],2)):m("",!0)}}),Bo=$(Ho,[["__scopeId","data-v-d77d59f8"]]);function Eo(){const s=N(!1);function e(){s.value=!0,window.addEventListener("resize",o)}function t(){s.value=!1,window.removeEventListener("resize",o)}function n(){s.value?t():e()}function o(){window.outerWidth>=768&&t()}const r=ve();return q(()=>r.path,t),{isScreenOpen:s,openScreen:e,closeScreen:t,toggleScreen:n}}const Do={},Fo={class:"VPSwitch",type:"button",role:"switch"},Oo={class:"check"},Go={key:0,class:"icon"};function Wo(s,e){return a(),u("button",Fo,[c("span",Oo,[s.$slots.default?(a(),u("span",Go,[d(s.$slots,"default",{},void 0,!0)])):m("",!0)])])}const zo=$(Do,[["render",Wo],["__scopeId","data-v-935f002a"]]),Uo=h({__name:"VPSwitchAppearance",setup(s){const{isDark:e,theme:t}=L(),n=pe("toggle-appearance",()=>{e.value=!e.value}),o=N("");return Se(()=>{o.value=e.value?t.value.lightModeSwitchTitle||"Switch to light theme":t.value.darkModeSwitchTitle||"Switch to dark theme"}),(r,l)=>(a(),b(zo,{title:o.value,class:"VPSwitchAppearance","aria-checked":i(e),onClick:i(n)},{default:f(()=>l[0]||(l[0]=[c("span",{class:"vpi-sun sun"},null,-1),c("span",{class:"vpi-moon moon"},null,-1)])),_:1},8,["title","aria-checked","onClick"]))}}),Me=$(Uo,[["__scopeId","data-v-7322dea9"]]),Ro={key:0,class:"VPNavBarAppearance"},jo=h({__name:"VPNavBarAppearance",setup(s){const{site:e}=L();return(t,n)=>i(e).appearance&&i(e).appearance!=="force-dark"&&i(e).appearance!=="force-auto"?(a(),u("div",Ro,[_(Me)])):m("",!0)}}),qo=$(jo,[["__scopeId","data-v-50a40586"]]),Ae=N();let Ke=!1,me=0;function Xo(s){const e=N(!1);if(fe){!Ke&&Yo(),me++;const t=q(Ae,n=>{var o,r,l;n===s.el.value||(o=s.el.value)!=null&&o.contains(n)?(e.value=!0,(r=s.onFocus)==null||r.call(s)):(e.value=!1,(l=s.onBlur)==null||l.call(s))});Ve(()=>{t(),me--,me||Ko()})}return ct(e)}function Yo(){document.addEventListener("focusin",Je),Ke=!0,Ae.value=document.activeElement}function Ko(){document.removeEventListener("focusin",Je)}function Je(){Ae.value=document.activeElement}const Jo={class:"VPMenuLink"},Zo=["innerHTML"],Qo=h({__name:"VPMenuLink",props:{item:{}},setup(s){const{page:e}=L();return(t,n)=>(a(),u("div",Jo,[_(R,{class:I({active:i(ee)(i(e).relativePath,t.item.activeMatch||t.item.link,!!t.item.activeMatch)}),href:t.item.link,target:t.item.target,rel:t.item.rel,"no-icon":t.item.noIcon},{default:f(()=>[c("span",{innerHTML:t.item.text},null,8,Zo)]),_:1},8,["class","href","target","rel","no-icon"])]))}}),he=$(Qo,[["__scopeId","data-v-63c87244"]]),xo={class:"VPMenuGroup"},es={key:0,class:"title"},ts=h({__name:"VPMenuGroup",props:{text:{},items:{}},setup(s){return(e,t)=>(a(),u("div",xo,[e.text?(a(),u("p",es,T(e.text),1)):m("",!0),(a(!0),u(M,null,E(e.items,n=>(a(),u(M,null,["link"in n?(a(),b(he,{key:0,item:n},null,8,["item"])):m("",!0)],64))),256))]))}}),ns=$(ts,[["__scopeId","data-v-761fc929"]]),os={class:"VPMenu"},ss={key:0,class:"items"},as=h({__name:"VPMenu",props:{items:{}},setup(s){return(e,t)=>(a(),u("div",os,[e.items?(a(),u("div",ss,[(a(!0),u(M,null,E(e.items,n=>(a(),u(M,{key:JSON.stringify(n)},["link"in n?(a(),b(he,{key:0,item:n},null,8,["item"])):"component"in n?(a(),b(U(n.component),K({key:1,ref_for:!0},n.props),null,16)):(a(),b(ns,{key:2,text:n.text,items:n.items},null,8,["text","items"]))],64))),128))])):m("",!0),d(e.$slots,"default",{},void 0,!0)]))}}),rs=$(as,[["__scopeId","data-v-19757600"]]),is=["aria-expanded","aria-label"],ls={key:0,class:"text"},cs=["innerHTML"],us={key:1,class:"vpi-more-horizontal icon"},ds={class:"menu"},vs=h({__name:"VPFlyout",props:{icon:{},button:{},label:{},items:{}},setup(s){const e=N(!1),t=N();Xo({el:t,onBlur:n});function n(){e.value=!1}return(o,r)=>(a(),u("div",{class:"VPFlyout",ref_key:"el",ref:t,onMouseenter:r[1]||(r[1]=l=>e.value=!0),onMouseleave:r[2]||(r[2]=l=>e.value=!1)},[c("button",{type:"button",class:"button","aria-haspopup":"true","aria-expanded":e.value,"aria-label":o.label,onClick:r[0]||(r[0]=l=>e.value=!e.value)},[o.button||o.icon?(a(),u("span",ls,[o.icon?(a(),u("span",{key:0,class:I([o.icon,"option-icon"])},null,2)):m("",!0),o.button?(a(),u("span",{key:1,innerHTML:o.button},null,8,cs)):m("",!0),r[3]||(r[3]=c("span",{class:"vpi-chevron-down text-icon"},null,-1))])):(a(),u("span",us))],8,is),c("div",ds,[_(rs,{items:o.items},{default:f(()=>[d(o.$slots,"default",{},void 0,!0)]),_:3},8,["items"])])],544))}}),Ce=$(vs,[["__scopeId","data-v-fd221b7a"]]),ps=["href","aria-label","innerHTML"],fs=h({__name:"VPSocialLink",props:{icon:{},link:{},ariaLabel:{}},setup(s){const e=s,t=N();G(async()=>{var r;await we();const o=(r=t.value)==null?void 0:r.children[0];o instanceof HTMLElement&&o.className.startsWith("vpi-social-")&&(getComputedStyle(o).maskImage||getComputedStyle(o).webkitMaskImage)==="none"&&o.style.setProperty("--icon",`url('https://api.iconify.design/simple-icons/${e.icon}.svg')`)});const n=k(()=>typeof e.icon=="object"?e.icon.svg:`<span class="vpi-social-${e.icon}"></span>`);return(o,r)=>(a(),u("a",{ref_key:"el",ref:t,class:"VPSocialLink no-icon",href:o.link,"aria-label":o.ariaLabel??(typeof o.icon=="string"?o.icon:""),target:"_blank",rel:"noopener",innerHTML:n.value},null,8,ps))}}),hs=$(fs,[["__scopeId","data-v-9ee50f9e"]]),ms={class:"VPSocialLinks"},_s=h({__name:"VPSocialLinks",props:{links:{}},setup(s){return(e,t)=>(a(),u("div",ms,[(a(!0),u(M,null,E(e.links,({link:n,icon:o,ariaLabel:r})=>(a(),b(hs,{key:n,icon:o,link:n,ariaLabel:r},null,8,["icon","link","ariaLabel"]))),128))]))}}),He=$(_s,[["__scopeId","data-v-6f1e9b7f"]]),gs={key:0,class:"group translations"},ks={class:"trans-title"},bs={key:1,class:"group"},$s={class:"item appearance"},ys={class:"label"},Ps={class:"appearance-action"},Ls={key:2,class:"group"},Vs={class:"item social-links"},Ss=h({__name:"VPNavBarExtra",setup(s){const{site:e,theme:t}=L(),{localeLinks:n,currentLang:o}=re({correspondingLink:!0}),r=k(()=>n.value.length&&o.value.label||e.value.appearance||t.value.socialLinks);return(l,v)=>r.value?(a(),b(Ce,{key:0,class:"VPNavBarExtra",label:"extra navigation"},{default:f(()=>[i(n).length&&i(o).label?(a(),u("div",gs,[c("p",ks,T(i(o).label),1),(a(!0),u(M,null,E(i(n),p=>(a(),b(he,{key:p.link,item:p},null,8,["item"]))),128))])):m("",!0),i(e).appearance&&i(e).appearance!=="force-dark"&&i(e).appearance!=="force-auto"?(a(),u("div",bs,[c("div",$s,[c("p",ys,T(i(t).darkModeSwitchLabel||"Appearance"),1),c("div",Ps,[_(Me)])])])):m("",!0),i(t).socialLinks?(a(),u("div",Ls,[c("div",Vs,[_(He,{class:"social-links-list",links:i(t).socialLinks},null,8,["links"])])])):m("",!0)]),_:1})):m("",!0)}}),ws=$(Ss,[["__scopeId","data-v-433c4186"]]),Ts=["aria-expanded"],Is=h({__name:"VPNavBarHamburger",props:{active:{type:Boolean}},emits:["click"],setup(s){return(e,t)=>(a(),u("button",{type:"button",class:I(["VPNavBarHamburger",{active:e.active}]),"aria-label":"mobile navigation","aria-expanded":e.active,"aria-controls":"VPNavScreen",onClick:t[0]||(t[0]=n=>e.$emit("click"))},t[1]||(t[1]=[c("span",{class:"container"},[c("span",{class:"top"}),c("span",{class:"middle"}),c("span",{class:"bottom"})],-1)]),10,Ts))}}),Ns=$(Is,[["__scopeId","data-v-044903cb"]]),Ms=["innerHTML"],As=h({__name:"VPNavBarMenuLink",props:{item:{}},setup(s){const{page:e}=L();return(t,n)=>(a(),b(R,{class:I({VPNavBarMenuLink:!0,active:i(ee)(i(e).relativePath,t.item.activeMatch||t.item.link,!!t.item.activeMatch)}),href:t.item.link,target:t.item.target,rel:t.item.rel,"no-icon":t.item.noIcon,tabindex:"0"},{default:f(()=>[c("span",{innerHTML:t.item.text},null,8,Ms)]),_:1},8,["class","href","target","rel","no-icon"]))}}),Cs=$(As,[["__scopeId","data-v-6d949a7b"]]),Hs=h({__name:"VPNavBarMenuGroup",props:{item:{}},setup(s){const e=s,{page:t}=L(),n=r=>"component"in r?!1:"link"in r?ee(t.value.relativePath,r.link,!!e.item.activeMatch):r.items.some(n),o=k(()=>n(e.item));return(r,l)=>(a(),b(Ce,{class:I({VPNavBarMenuGroup:!0,active:i(ee)(i(t).relativePath,r.item.activeMatch,!!r.item.activeMatch)||o.value}),button:r.item.text,items:r.item.items},null,8,["class","button","items"]))}}),Bs={key:0,"aria-labelledby":"main-nav-aria-label",class:"VPNavBarMenu"},Es=h({__name:"VPNavBarMenu",setup(s){const{theme:e}=L();return(t,n)=>i(e).nav?(a(),u("nav",Bs,[n[0]||(n[0]=c("span",{id:"main-nav-aria-label",class:"visually-hidden"}," Main Navigation ",-1)),(a(!0),u(M,null,E(i(e).nav,o=>(a(),u(M,{key:JSON.stringify(o)},["link"in o?(a(),b(Cs,{key:0,item:o},null,8,["item"])):"component"in o?(a(),b(U(o.component),K({key:1,ref_for:!0},o.props),null,16)):(a(),b(Hs,{key:2,item:o},null,8,["item"]))],64))),128))])):m("",!0)}}),Ds=$(Es,[["__scopeId","data-v-e590519b"]]);function Fs(s){const{localeIndex:e,theme:t}=L();function n(o){var A,C,w;const r=o.split("."),l=(A=t.value.search)==null?void 0:A.options,v=l&&typeof l=="object",p=v&&((w=(C=l.locales)==null?void 0:C[e.value])==null?void 0:w.translations)||null,y=v&&l.translations||null;let V=p,g=y,P=s;const S=r.pop();for(const D of r){let W=null;const Y=P==null?void 0:P[D];Y&&(W=P=Y);const J=g==null?void 0:g[D];J&&(W=g=J);const z=V==null?void 0:V[D];z&&(W=V=z),Y||(P=W),J||(g=W),z||(V=W)}return(V==null?void 0:V[S])??(g==null?void 0:g[S])??(P==null?void 0:P[S])??""}return n}const Os=["aria-label"],Gs={class:"DocSearch-Button-Container"},Ws={class:"DocSearch-Button-Placeholder"},Ee=h({__name:"VPNavBarSearchButton",setup(s){const t=Fs({button:{buttonText:"Search",buttonAriaLabel:"Search"}});return(n,o)=>(a(),u("button",{type:"button",class:"DocSearch DocSearch-Button","aria-label":i(t)("button.buttonAriaLabel")},[c("span",Gs,[o[0]||(o[0]=c("span",{class:"vp-icon DocSearch-Search-Icon"},null,-1)),c("span",Ws,T(i(t)("button.buttonText")),1)]),o[1]||(o[1]=c("span",{class:"DocSearch-Button-Keys"},[c("kbd",{class:"DocSearch-Button-Key"}),c("kbd",{class:"DocSearch-Button-Key"},"K")],-1))],8,Os))}}),zs={class:"VPNavBarSearch"},Us={id:"local-search"},Rs={key:1,id:"docsearch"},js=h({__name:"VPNavBarSearch",setup(s){const e=ut(()=>ae(()=>import(((u)=>{if(u.startsWith('/')){return"https://registry.npmmirror.com/@gkd-kit/docs/0.0.1745764428766/files/.vitepress/dist"+u}return u})("./VPLocalSearchBox.DtG5LUqk.js")),[])),t=()=>null,{theme:n}=L(),o=N(!1),r=N(!1);G(()=>{});function l(){o.value||(o.value=!0,setTimeout(v,16))}function v(){const g=new Event("keydown");g.key="k",g.metaKey=!0,window.dispatchEvent(g),setTimeout(()=>{document.querySelector(".DocSearch-Modal")||v()},16)}function p(g){const P=g.target,S=P.tagName;return P.isContentEditable||S==="INPUT"||S==="SELECT"||S==="TEXTAREA"}const y=N(!1);ge("k",g=>{(g.ctrlKey||g.metaKey)&&(g.preventDefault(),y.value=!0)}),ge("/",g=>{p(g)||(g.preventDefault(),y.value=!0)});const V="local";return(g,P)=>{var S;return a(),u("div",zs,[i(V)==="local"?(a(),u(M,{key:0},[y.value?(a(),b(i(e),{key:0,onClose:P[0]||(P[0]=A=>y.value=!1)})):m("",!0),c("div",Us,[_(Ee,{onClick:P[1]||(P[1]=A=>y.value=!0)})])],64)):i(V)==="algolia"?(a(),u(M,{key:1},[o.value?(a(),b(i(t),{key:0,algolia:((S=i(n).search)==null?void 0:S.options)??i(n).algolia,onVnodeBeforeMount:P[2]||(P[2]=A=>r.value=!0)},null,8,["algolia"])):m("",!0),r.value?m("",!0):(a(),u("div",Rs,[_(Ee,{onClick:l})]))],64)):m("",!0)])}}}),qs=h({__name:"VPNavBarSocialLinks",setup(s){const{theme:e}=L();return(t,n)=>i(e).socialLinks?(a(),b(He,{key:0,class:"VPNavBarSocialLinks",links:i(e).socialLinks},null,8,["links"])):m("",!0)}}),Xs=$(qs,[["__scopeId","data-v-35a77832"]]),Ys=["href","rel","target"],Ks=["innerHTML"],Js={key:2},Zs=h({__name:"VPNavBarTitle",setup(s){const{site:e,theme:t}=L(),{hasSidebar:n}=X(),{currentLang:o}=re(),r=k(()=>{var p;return typeof t.value.logoLink=="string"?t.value.logoLink:(p=t.value.logoLink)==null?void 0:p.link}),l=k(()=>{var p;return typeof t.value.logoLink=="string"||(p=t.value.logoLink)==null?void 0:p.rel}),v=k(()=>{var p;return typeof t.value.logoLink=="string"||(p=t.value.logoLink)==null?void 0:p.target});return(p,y)=>(a(),u("div",{class:I(["VPNavBarTitle",{"has-sidebar":i(n)}])},[c("a",{class:"title",href:r.value??i(Ie)(i(o).link),rel:l.value,target:v.value},[d(p.$slots,"nav-bar-title-before",{},void 0,!0),i(t).logo?(a(),b(ce,{key:0,class:"logo",image:i(t).logo},null,8,["image"])):m("",!0),i(t).siteTitle?(a(),u("span",{key:1,innerHTML:i(t).siteTitle},null,8,Ks)):i(t).siteTitle===void 0?(a(),u("span",Js,T(i(e).title),1)):m("",!0),d(p.$slots,"nav-bar-title-after",{},void 0,!0)],8,Ys)],2))}}),Qs=$(Zs,[["__scopeId","data-v-419635df"]]),xs={class:"items"},ea={class:"title"},ta=h({__name:"VPNavBarTranslations",setup(s){const{theme:e}=L(),{localeLinks:t,currentLang:n}=re({correspondingLink:!0});return(o,r)=>i(t).length&&i(n).label?(a(),b(Ce,{key:0,class:"VPNavBarTranslations",icon:"vpi-languages",label:i(e).langMenuLabel||"Change language"},{default:f(()=>[c("div",xs,[c("p",ea,T(i(n).label),1),(a(!0),u(M,null,E(i(t),l=>(a(),b(he,{key:l.link,item:l},null,8,["item"]))),128))])]),_:1},8,["label"])):m("",!0)}}),na=$(ta,[["__scopeId","data-v-10b83444"]]),oa={class:"wrapper"},sa={class:"container"},aa={class:"title"},ra={class:"content"},ia={class:"content-body"},la=h({__name:"VPNavBar",props:{isScreenOpen:{type:Boolean}},emits:["toggle-screen"],setup(s){const e=s,{y:t}=Te(),{hasSidebar:n}=X(),{frontmatter:o}=L(),r=N({});return Se(()=>{r.value={"has-sidebar":n.value,home:o.value.layout==="home",top:t.value===0,"screen-open":e.isScreenOpen}}),(l,v)=>(a(),u("div",{class:I(["VPNavBar",r.value])},[c("div",oa,[c("div",sa,[c("div",aa,[_(Qs,null,{"nav-bar-title-before":f(()=>[d(l.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":f(()=>[d(l.$slots,"nav-bar-title-after",{},void 0,!0)]),_:3})]),c("div",ra,[c("div",ia,[d(l.$slots,"nav-bar-content-before",{},void 0,!0),_(js,{class:"search"}),_(Ds,{class:"menu"}),_(na,{class:"translations"}),_(qo,{class:"appearance"}),_(Xs,{class:"social-links"}),_(ws,{class:"extra"}),d(l.$slots,"nav-bar-content-after",{},void 0,!0),_(Ns,{class:"hamburger",active:l.isScreenOpen,onClick:v[0]||(v[0]=p=>l.$emit("toggle-screen"))},null,8,["active"])])])])]),v[1]||(v[1]=c("div",{class:"divider"},[c("div",{class:"divider-line"})],-1))],2))}}),ca=$(la,[["__scopeId","data-v-85d4e7dd"]]),ua={key:0,class:"VPNavScreenAppearance"},da={class:"text"},va=h({__name:"VPNavScreenAppearance",setup(s){const{site:e,theme:t}=L();return(n,o)=>i(e).appearance&&i(e).appearance!=="force-dark"&&i(e).appearance!=="force-auto"?(a(),u("div",ua,[c("p",da,T(i(t).darkModeSwitchLabel||"Appearance"),1),_(Me)])):m("",!0)}}),pa=$(va,[["__scopeId","data-v-32f9155f"]]),fa=["innerHTML"],ha=h({__name:"VPNavScreenMenuLink",props:{item:{}},setup(s){const e=pe("close-screen");return(t,n)=>(a(),b(R,{class:"VPNavScreenMenuLink",href:t.item.link,target:t.item.target,rel:t.item.rel,"no-icon":t.item.noIcon,onClick:i(e)},{default:f(()=>[c("span",{innerHTML:t.item.text},null,8,fa)]),_:1},8,["href","target","rel","no-icon","onClick"]))}}),ma=$(ha,[["__scopeId","data-v-d2dc1b5e"]]),_a=["innerHTML"],ga=h({__name:"VPNavScreenMenuGroupLink",props:{item:{}},setup(s){const e=pe("close-screen");return(t,n)=>(a(),b(R,{class:"VPNavScreenMenuGroupLink",href:t.item.link,target:t.item.target,rel:t.item.rel,"no-icon":t.item.noIcon,onClick:i(e)},{default:f(()=>[c("span",{innerHTML:t.item.text},null,8,_a)]),_:1},8,["href","target","rel","no-icon","onClick"]))}}),Ze=$(ga,[["__scopeId","data-v-1b6685ed"]]),ka={class:"VPNavScreenMenuGroupSection"},ba={key:0,class:"title"},$a=h({__name:"VPNavScreenMenuGroupSection",props:{text:{},items:{}},setup(s){return(e,t)=>(a(),u("div",ka,[e.text?(a(),u("p",ba,T(e.text),1)):m("",!0),(a(!0),u(M,null,E(e.items,n=>(a(),b(Ze,{key:n.text,item:n},null,8,["item"]))),128))]))}}),ya=$($a,[["__scopeId","data-v-7223b839"]]),Pa=["aria-controls","aria-expanded"],La=["innerHTML"],Va=["id"],Sa={key:0,class:"item"},wa={key:1,class:"item"},Ta={key:2,class:"group"},Ia=h({__name:"VPNavScreenMenuGroup",props:{text:{},items:{}},setup(s){const e=s,t=N(!1),n=k(()=>`NavScreenGroup-${e.text.replace(" ","-").toLowerCase()}`);function o(){t.value=!t.value}return(r,l)=>(a(),u("div",{class:I(["VPNavScreenMenuGroup",{open:t.value}])},[c("button",{class:"button","aria-controls":n.value,"aria-expanded":t.value,onClick:o},[c("span",{class:"button-text",innerHTML:r.text},null,8,La),l[0]||(l[0]=c("span",{class:"vpi-plus button-icon"},null,-1))],8,Pa),c("div",{id:n.value,class:"items"},[(a(!0),u(M,null,E(r.items,v=>(a(),u(M,{key:JSON.stringify(v)},["link"in v?(a(),u("div",Sa,[_(Ze,{item:v},null,8,["item"])])):"component"in v?(a(),u("div",wa,[(a(),b(U(v.component),K({ref_for:!0},v.props,{"screen-menu":""}),null,16))])):(a(),u("div",Ta,[_(ya,{text:v.text,items:v.items},null,8,["text","items"])]))],64))),128))],8,Va)],2))}}),Na=$(Ia,[["__scopeId","data-v-16c31fe3"]]),Ma={key:0,class:"VPNavScreenMenu"},Aa=h({__name:"VPNavScreenMenu",setup(s){const{theme:e}=L();return(t,n)=>i(e).nav?(a(),u("nav",Ma,[(a(!0),u(M,null,E(i(e).nav,o=>(a(),u(M,{key:JSON.stringify(o)},["link"in o?(a(),b(ma,{key:0,item:o},null,8,["item"])):"component"in o?(a(),b(U(o.component),K({key:1,ref_for:!0},o.props,{"screen-menu":""}),null,16)):(a(),b(Na,{key:2,text:o.text||"",items:o.items},null,8,["text","items"]))],64))),128))])):m("",!0)}}),Ca=h({__name:"VPNavScreenSocialLinks",setup(s){const{theme:e}=L();return(t,n)=>i(e).socialLinks?(a(),b(He,{key:0,class:"VPNavScreenSocialLinks",links:i(e).socialLinks},null,8,["links"])):m("",!0)}}),Ha={class:"list"},Ba=h({__name:"VPNavScreenTranslations",setup(s){const{localeLinks:e,currentLang:t}=re({correspondingLink:!0}),n=N(!1);function o(){n.value=!n.value}return(r,l)=>i(e).length&&i(t).label?(a(),u("div",{key:0,class:I(["VPNavScreenTranslations",{open:n.value}])},[c("button",{class:"title",onClick:o},[l[0]||(l[0]=c("span",{class:"vpi-languages icon lang"},null,-1)),x(" "+T(i(t).label)+" ",1),l[1]||(l[1]=c("span",{class:"vpi-chevron-down icon chevron"},null,-1))]),c("ul",Ha,[(a(!0),u(M,null,E(i(e),v=>(a(),u("li",{key:v.link,class:"item"},[_(R,{class:"link",href:v.link},{default:f(()=>[x(T(v.text),1)]),_:2},1032,["href"])]))),128))])],2)):m("",!0)}}),Ea=$(Ba,[["__scopeId","data-v-8ba512ee"]]),Da={class:"container"},Fa=h({__name:"VPNavScreen",props:{open:{type:Boolean}},setup(s){const e=N(null),t=Ue(fe?document.body:null);return(n,o)=>(a(),b(Pe,{name:"fade",onEnter:o[0]||(o[0]=r=>t.value=!0),onAfterLeave:o[1]||(o[1]=r=>t.value=!1)},{default:f(()=>[n.open?(a(),u("div",{key:0,class:"VPNavScreen",ref_key:"screen",ref:e,id:"VPNavScreen"},[c("div",Da,[d(n.$slots,"nav-screen-content-before",{},void 0,!0),_(Aa,{class:"menu"}),_(Ea,{class:"translations"}),_(pa,{class:"appearance"}),_(Ca,{class:"social-links"}),d(n.$slots,"nav-screen-content-after",{},void 0,!0)])],512)):m("",!0)]),_:3}))}}),Oa=$(Fa,[["__scopeId","data-v-c74dcf5e"]]),Ga={key:0,class:"VPNav"},Wa=h({__name:"VPNav",setup(s){const{isScreenOpen:e,closeScreen:t,toggleScreen:n}=Eo(),{frontmatter:o}=L(),r=k(()=>o.value.navbar!==!1);return Re("close-screen",t),ue(()=>{fe&&document.documentElement.classList.toggle("hide-nav",!r.value)}),(l,v)=>r.value?(a(),u("header",Ga,[_(ca,{"is-screen-open":i(e),onToggleScreen:i(n)},{"nav-bar-title-before":f(()=>[d(l.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":f(()=>[d(l.$slots,"nav-bar-title-after",{},void 0,!0)]),"nav-bar-content-before":f(()=>[d(l.$slots,"nav-bar-content-before",{},void 0,!0)]),"nav-bar-content-after":f(()=>[d(l.$slots,"nav-bar-content-after",{},void 0,!0)]),_:3},8,["is-screen-open","onToggleScreen"]),_(Oa,{open:i(e)},{"nav-screen-content-before":f(()=>[d(l.$slots,"nav-screen-content-before",{},void 0,!0)]),"nav-screen-content-after":f(()=>[d(l.$slots,"nav-screen-content-after",{},void 0,!0)]),_:3},8,["open"])])):m("",!0)}}),za=$(Wa,[["__scopeId","data-v-5054bd58"]]),Ua=["role","tabindex"],Ra={key:1,class:"items"},ja=h({__name:"VPSidebarItem",props:{item:{},depth:{}},setup(s){const e=s,{collapsed:t,collapsible:n,isLink:o,isActiveLink:r,hasActiveLink:l,hasChildren:v,toggle:p}=Ft(k(()=>e.item)),y=k(()=>v.value?"section":"div"),V=k(()=>o.value?"a":"div"),g=k(()=>v.value?e.depth+2===7?"p":`h${e.depth+2}`:"p"),P=k(()=>o.value?void 0:"button"),S=k(()=>[[`level-${e.depth}`],{collapsible:n.value},{collapsed:t.value},{"is-link":o.value},{"is-active":r.value},{"has-active":l.value}]);function A(w){"key"in w&&w.key!=="Enter"||!e.item.link&&p()}function C(){e.item.link&&p()}return(w,D)=>{const W=te("VPSidebarItem",!0);return a(),b(U(y.value),{class:I(["VPSidebarItem",S.value])},{default:f(()=>[w.item.text?(a(),u("div",K({key:0,class:"item",role:P.value},dt(w.item.items?{click:A,keydown:A}:{},!0),{tabindex:w.item.items&&0}),[D[1]||(D[1]=c("div",{class:"indicator"},null,-1)),w.item.link?(a(),b(R,{key:0,tag:V.value,class:"link",href:w.item.link,rel:w.item.rel,target:w.item.target},{default:f(()=>[(a(),b(U(g.value),{class:"text",innerHTML:w.item.text},null,8,["innerHTML"]))]),_:1},8,["tag","href","rel","target"])):(a(),b(U(g.value),{key:1,class:"text",innerHTML:w.item.text},null,8,["innerHTML"])),w.item.collapsed!=null&&w.item.items&&w.item.items.length?(a(),u("div",{key:2,class:"caret",role:"button","aria-label":"toggle section",onClick:C,onKeydown:vt(C,["enter"]),tabindex:"0"},D[0]||(D[0]=[c("span",{class:"vpi-chevron-right caret-icon"},null,-1)]),32)):m("",!0)],16,Ua)):m("",!0),w.item.items&&w.item.items.length?(a(),u("div",Ra,[w.depth<5?(a(!0),u(M,{key:0},E(w.item.items,Y=>(a(),b(W,{key:Y.text,item:Y,depth:w.depth+1},null,8,["item","depth"]))),128)):m("",!0)])):m("",!0)]),_:1},8,["class"])}}}),qa=$(ja,[["__scopeId","data-v-ed8c6e01"]]),Xa=h({__name:"VPSidebarGroup",props:{items:{}},setup(s){const e=N(!0);let t=null;return G(()=>{t=setTimeout(()=>{t=null,e.value=!1},300)}),pt(()=>{t!=null&&(clearTimeout(t),t=null)}),(n,o)=>(a(!0),u(M,null,E(n.items,r=>(a(),u("div",{key:r.text,class:I(["group",{"no-transition":e.value}])},[_(qa,{item:r,depth:0},null,8,["item"])],2))),128))}}),Ya=$(Xa,[["__scopeId","data-v-d4b41b9b"]]),Ka={class:"nav",id:"VPSidebarNav","aria-labelledby":"sidebar-aria-label",tabindex:"-1"},Ja=h({__name:"VPSidebar",props:{open:{type:Boolean}},setup(s){const{sidebarGroups:e,hasSidebar:t}=X(),n=s,o=N(null),r=Ue(fe?document.body:null);q([n,o],()=>{var v;n.open?(r.value=!0,(v=o.value)==null||v.focus()):r.value=!1},{immediate:!0,flush:"post"});const l=N(0);return q(e,()=>{l.value+=1},{deep:!0}),(v,p)=>i(t)?(a(),u("aside",{key:0,class:I(["VPSidebar",{open:v.open}]),ref_key:"navEl",ref:o,onClick:p[0]||(p[0]=ke(()=>{},["stop"]))},[p[2]||(p[2]=c("div",{class:"curtain"},null,-1)),c("nav",Ka,[p[1]||(p[1]=c("span",{class:"visually-hidden",id:"sidebar-aria-label"}," Sidebar Navigation ",-1)),d(v.$slots,"sidebar-nav-before",{},void 0,!0),(a(),b(Ya,{items:i(e),key:l.value},null,8,["items"])),d(v.$slots,"sidebar-nav-after",{},void 0,!0)])],2)):m("",!0)}}),Za=$(Ja,[["__scopeId","data-v-dabab40b"]]),Qa=h({__name:"VPSkipLink",setup(s){const{theme:e}=L(),t=ve(),n=N();q(()=>t.path,()=>n.value.focus());function o({target:r}){const l=document.getElementById(decodeURIComponent(r.hash).slice(1));if(l){const v=()=>{l.removeAttribute("tabindex"),l.removeEventListener("blur",v)};l.setAttribute("tabindex","-1"),l.addEventListener("blur",v),l.focus(),window.scrollTo(0,0)}}return(r,l)=>(a(),u(M,null,[c("span",{ref_key:"backToTop",ref:n,tabindex:"-1"},null,512),c("a",{href:"#VPContent",class:"VPSkipLink visually-hidden",onClick:o},T(i(e).skipToContentLabel||"Skip to content"),1)],64))}}),xa=$(Qa,[["__scopeId","data-v-171fea9b"]]),er=h({__name:"Layout",setup(s){const{isOpen:e,open:t,close:n}=X(),o=ve();q(()=>o.path,n),Dt(e,n);const{frontmatter:r}=L(),l=ft(),v=k(()=>!!l["home-hero-image"]);return Re("hero-image-slot-exists",v),(p,y)=>{const V=te("Content");return i(r).layout!==!1?(a(),u("div",{key:0,class:I(["Layout",i(r).pageClass])},[d(p.$slots,"layout-top",{},void 0,!0),_(xa),_(Lt,{class:"backdrop",show:i(e),onClick:i(n)},null,8,["show","onClick"]),_(za,null,{"nav-bar-title-before":f(()=>[d(p.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":f(()=>[d(p.$slots,"nav-bar-title-after",{},void 0,!0)]),"nav-bar-content-before":f(()=>[d(p.$slots,"nav-bar-content-before",{},void 0,!0)]),"nav-bar-content-after":f(()=>[d(p.$slots,"nav-bar-content-after",{},void 0,!0)]),"nav-screen-content-before":f(()=>[d(p.$slots,"nav-screen-content-before",{},void 0,!0)]),"nav-screen-content-after":f(()=>[d(p.$slots,"nav-screen-content-after",{},void 0,!0)]),_:3}),_(Bo,{open:i(e),onOpenMenu:i(t)},null,8,["open","onOpenMenu"]),_(Za,{open:i(e)},{"sidebar-nav-before":f(()=>[d(p.$slots,"sidebar-nav-before",{},void 0,!0)]),"sidebar-nav-after":f(()=>[d(p.$slots,"sidebar-nav-after",{},void 0,!0)]),_:3},8,["open"]),_(ko,null,{"page-top":f(()=>[d(p.$slots,"page-top",{},void 0,!0)]),"page-bottom":f(()=>[d(p.$slots,"page-bottom",{},void 0,!0)]),"not-found":f(()=>[d(p.$slots,"not-found",{},void 0,!0)]),"home-hero-before":f(()=>[d(p.$slots,"home-hero-before",{},void 0,!0)]),"home-hero-info-before":f(()=>[d(p.$slots,"home-hero-info-before",{},void 0,!0)]),"home-hero-info":f(()=>[d(p.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-info-after":f(()=>[d(p.$slots,"home-hero-info-after",{},void 0,!0)]),"home-hero-actions-after":f(()=>[d(p.$slots,"home-hero-actions-after",{},void 0,!0)]),"home-hero-image":f(()=>[d(p.$slots,"home-hero-image",{},void 0,!0)]),"home-hero-after":f(()=>[d(p.$slots,"home-hero-after",{},void 0,!0)]),"home-features-before":f(()=>[d(p.$slots,"home-features-before",{},void 0,!0)]),"home-features-after":f(()=>[d(p.$slots,"home-features-after",{},void 0,!0)]),"doc-footer-before":f(()=>[d(p.$slots,"doc-footer-before",{},void 0,!0)]),"doc-before":f(()=>[d(p.$slots,"doc-before",{},void 0,!0)]),"doc-after":f(()=>[d(p.$slots,"doc-after",{},void 0,!0)]),"doc-top":f(()=>[d(p.$slots,"doc-top",{},void 0,!0)]),"doc-bottom":f(()=>[d(p.$slots,"doc-bottom",{},void 0,!0)]),"aside-top":f(()=>[d(p.$slots,"aside-top",{},void 0,!0)]),"aside-bottom":f(()=>[d(p.$slots,"aside-bottom",{},void 0,!0)]),"aside-outline-before":f(()=>[d(p.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":f(()=>[d(p.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":f(()=>[d(p.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":f(()=>[d(p.$slots,"aside-ads-after",{},void 0,!0)]),_:3}),_(Lo),d(p.$slots,"layout-bottom",{},void 0,!0)],2)):(a(),b(V,{key:1}))}}}),tr=$(er,[["__scopeId","data-v-135237f1"]]),De={Layout:tr,enhanceApp:({app:s})=>{s.component("Badge",$t)}},nr=["data-href"],or={key:0,"pointer-events-none":"",absolute:"",left:"1/1","top-0":"","bottom-0":"",flex:"","items-center":"","pl-4px":""},Fe=h({__name:"DownloadText",props:{href:{},name:{},type:{default:"application/vnd.android.package-archive"}},setup(s){const e=s,t=j(!1),n=async()=>{if(t.value)return;t.value=!0,ae(()=>import(((u)=>{if(u.startsWith('/')){return"https://registry.npmmirror.com/@gkd-kit/docs/0.0.1745764428766/files/.vitepress/dist"+u}return u})("./FileSaver.min.CvNQQnEe.js")).then(r=>r.F),[]);const o=`gkd-${e.name}`;try{const r=await fetch(e.href).then(v=>v.arrayBuffer()).then(v=>new File([v],o,{type:e.type})),{saveAs:l}=await ae(async()=>{const{saveAs:v}=await import(((u)=>{if(u.startsWith('/')){return"https://registry.npmmirror.com/@gkd-kit/docs/0.0.1745764428766/files/.vitepress/dist"+u}return u})("./FileSaver.min.CvNQQnEe.js")).then(p=>p.F);return{saveAs:v}},[]);l(r,o)}finally{t.value=!1}};return(o,r)=>(a(),u("a",{relative:"",class:I({"cursor-progress":t.value,"cursor-pointer":!t.value}),onClick:n,"data-href":o.href},[c("span",{class:I({"opacity-50":t.value})},T(o.name),3),t.value?(a(),u("div",or,r[0]||(r[0]=[c("svg",{"animate-spin":"","size-16px":"",viewBox:"0 0 16 16",fill:"none"},[c("circle",{cx:"8",cy:"8",r:"7",stroke:"currentColor","stroke-opacity":"0.25","stroke-width":"2","vector-effect":"non-scaling-stroke"}),c("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)]))):m("",!0)],10,nr))}}),oe={name:"1.10.2",href:"https://registry.npmmirror.com/@gkd-kit/app-beta/latest/files/dist/gkd-v1.10.2.wasm",date:"2025-04-27",filename:"v1.10.2.apk",fileSizeDesc:"6.47MB"},se={name:"1.10.2",href:"https://registry.npmmirror.com/@gkd-kit/app/latest/files/dist/gkd-v1.10.2.wasm",date:"2025-04-27",filename:"v1.10.2.apk",fileSizeDesc:"6.47MB"},sr={key:0},ar=h({__name:"ApkTable",setup(s){return(e,t)=>(a(),u("table",null,[t[4]||(t[4]=c("thead",null,[c("tr",null,[c("th",null,"版本"),c("th",null,"下载"),c("th",null,"大小"),c("th",null,"日期"),c("th",null,"备注")])],-1)),c("tbody",null,[c("tr",null,[t[0]||(t[0]=c("td",null,"正式版",-1)),c("td",null,[_(Fe,{href:i(se).href,name:i(se).filename},null,8,["href","name"])]),c("td",null,T(i(se).fileSizeDesc),1),c("td",null,T(i(se).date),1),t[1]||(t[1]=c("td",null,"稳定版",-1))]),i(oe).filename!==i(se).filename?(a(),u("tr",sr,[t[2]||(t[2]=c("td",null,"测试版",-1)),c("td",null,[_(Fe,{href:i(oe).href,name:i(oe).filename},null,8,["href","name"])]),c("td",null,T(i(oe).fileSizeDesc),1),c("td",null,T(i(oe).date),1),t[3]||(t[3]=c("td",null,"更新快不稳定",-1))])):m("",!0)])]))}}),rr=h((s,e)=>()=>{var t,n;return(n=(t=e.slots).default)==null?void 0:n.call(t)}),Qe=s=>(s.loader(),h((e,t)=>{const n=j();return n.value||s.loader().then(o=>{n.value=o}),()=>n.value?O(n.value,e,t.slots):O(s.placeholder,e,t.slots)},{props:s.props})),xe=["alt","height","imgProps","previewedImgProps","lazy","intersectionObserverOptions","objectFit","previewSrc","fallbackSrc","width","src","previewDisabled","loadDescription","onError","onLoad","theme","themeOverrides","builtinThemeOverrides","onPreviewPrev","onPreviewNext","showToolbar","showToolbarTooltip","renderToolbar"],ir=h((s,e)=>()=>O("div",{class:"n-image"},O("img",s,e.slots)),{props:xe}),Be=Qe({loader:()=>ae(()=>import(((u)=>{if(u.startsWith('/')){return"https://registry.npmmirror.com/@gkd-kit/docs/0.0.1745764428766/files/.vitepress/dist"+u}return u})("./index.eafjZOuh.js")),[]).then(s=>s.NImage),placeholder:ir,props:xe}),et=Qe({loader:()=>ae(()=>import(((u)=>{if(u.startsWith('/')){return"https://registry.npmmirror.com/@gkd-kit/docs/0.0.1745764428766/files/.vitepress/dist"+u}return u})("./index.eafjZOuh.js")),[]).then(s=>s.NImageGroup),placeholder:rr}),lr={NImage:Be,NImageGroup:et},Oe="https://registry.npmmirror.com/@gkd-kit/assets/0.0.16/files/assets/",Ge="https://a.gkd.li/",tt=s=>s&&s.startsWith("https:")?s.startsWith(Ge)?Oe+s.slice(Ge.length):s:Oe+s,cr=h(s=>()=>O(Be,{src:tt(s.src),width:s.width}),{props:["src","width"]}),ur=h({__name:"IdentifierField",setup(s){const e=j(""),t=/^[_a-zA-Z][a-zA-Z0-9_]*$/,n=ht(e,300),o=k(()=>n.value!=="null"&&n.value!=="true"&&n.value!=="false"&&t.test(n.value));return(r,l)=>(a(),u("div",null,[je(c("input",{placeholder:"请输入标识符测试是否合法",type:"text","onUpdate:modelValue":l[0]||(l[0]=v=>e.value=v),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),[[mt,e.value]]),c("div",{"mt-4px":"",class:I({"color-red":!o.value,"opacity-0":!i(n)||!e.value})},T(o.value?"合法标识符✅":"非法标识符❌"),3)]))}}),dr=h({__name:"ImageTable",props:{images:{}},setup(s){return(e,t)=>(a(),u("table",null,[c("tbody",null,[_(i(et),null,{default:f(()=>[(a(!0),u(M,null,E(e.images,(n,o)=>(a(),u("tr",{key:o},[(a(!0),u(M,null,E(n,r=>(a(),u("td",{key:r},[_(i(Be),{src:i(tt)(r)},null,8,["src"])]))),128))]))),128))]),_:1})])]))}}),vr={...lr,GImg:cr,ImageTable:dr,IdentifierField:ur,ApkTable:ar},pr={fixed:"","z-100":"",class:"BodyScrollbar"},fr=h({__name:"BodyScrollbar",setup(s){const{y:e,x:t}=Te(),{height:n,width:o}=ze(),r=j();G(()=>{r.value=document.body});const l=_t(r),v=k(()=>l.height.value>n.value),p=k(()=>{const B=l.height.value;return n.value/B*n.value}),y=k(()=>{const H=l.height.value,B=p.value;return e.value/(H-n.value)*(n.value-B)}),V=k(()=>v.value?{transform:`translateY(${y.value}px)`,height:`${p.value}px`}:{}),g=async H=>{const B=p.value*.9*(H.clientY<p.value+y.value?-1:1),F=l.height.value,Z=F,Q=n.value/Z*n.value;e.value+=B/(n.value-Q)*(F-n.value)},P=j(!1);let S;const A=H=>{S=H,P.value=!0};ne("pointermove",H=>{if(!S)return;const B=H.clientY-S.clientY;S=H;const F=l.height.value,Z=F,Q=n.value/Z*n.value;e.value+=B/(n.value-Q)*(F-n.value)}),ne("pointerup",()=>{S=void 0,P.value=!1});const C=k(()=>l.width.value>o.value),w=k(()=>{const B=l.width.value;return o.value/B*o.value}),D=k(()=>{const H=l.width.value,B=w.value;return t.value/(H-o.value)*(o.value-B)}),W=k(()=>C.value?{transform:`translateX(${D.value}px)`,width:`${w.value}px`}:{}),Y=H=>{const B=w.value*.9*(H.clientX<w.value+D.value?-1:1),F=l.width.value,Z=F,Q=o.value/Z*o.value,ot=t.value+B/(o.value-Q)*(F-o.value);t.value=ot},J=j(!1);let z;const nt=H=>{z=H,J.value=!0};return ne("pointermove",H=>{if(!z)return;const B=H.clientX-z.clientX;z=H;const F=l.width.value,Z=F,Q=o.value/Z*o.value;t.value+=B/(o.value-Q)*(F-o.value)}),ne("pointerup",()=>{z=void 0,J.value=!1}),ne("selectstart",H=>{(z||S)&&H.preventDefault()}),(H,B)=>(a(),u("div",pr,[je(c("div",{"scrollbar-y":"",fixed:"","right-2px":"","top-0":"","bottom-0":"","w-8px":"",onPointerdown:A,onClick:g},[c("div",{onClick:B[0]||(B[0]=ke(()=>{},["stop"])),"w-full":"",bg:"#909399","opacity-30":"","hover:opacity":"50",style:le(V.value),class:I({"opacity-50":P.value})},null,6)],544),[[gt,v.value]]),C.value?(a(),u("div",{key:0,"scrollbar-x":"",fixed:"","bottom-2px":"","left-0":"","right-0":"","h-8px":"",onPointerdown:nt,onClick:Y},[c("div",{onClick:B[1]||(B[1]=ke(()=>{},["stop"])),"h-full":"",bg:"#909399","opacity-30":"","hover:opacity":"50",style:le(W.value),class:I({"opacity-50":J.value})},null,6)],32)):m("",!0)]))}}),hr=h(()=>{const s=j(!1);return G(()=>{const e="ontouchstart"in document.documentElement;s.value=!e,e&&(document.body.classList.add("mobile"),document.documentElement.classList.add("mobile"))}),()=>s.value?O(kt,{to:document.body},O(fr)):void 0}),mr=s=>{const e=s.getBoundingClientRect(),t=window.innerHeight*.15;return e.top-t>=0&&e.bottom+t<=window.innerHeight},_r=()=>{const s=document.images;for(let e=0;e<s.length;e++)if(!s[e].complete)return!1;return!0},gr=async s=>{const e=location.href.substring(location.origin.length),t=async n=>{history.replaceState(null,"",n),await s.go(n)};if(location.pathname.startsWith("/selector/"))location.pathname.at(-1)==="/"?t("/guide/selector"):t(location.pathname.replace("/selector/","/guide/"));else if(location.pathname==="/subscription/"||location.pathname==="/subscription")await t("/guide/subscription");else if(location.pathname==="/"){const n=new URLSearchParams(location.search).get("r");if(n==="1")s.go("/guide/snapshot#how-to-upload");else if(n==="2")s.go("/guide/faq#restriction");else if(n==="3")s.go("/guide/faq#adb_failed");else if(n==="4"){location.href="https://shizuku.rikka.app";return}else n==="5"?s.go("/guide/subscription"):n==="6"?s.go("/guide/faq#power"):n==="7"?s.go("/guide/faq#exact-activity"):n==="8"?s.go("/guide/faq#forced-tap"):n==="9"&&s.go("/guide/faq#work-profile")}else e==="/guide/faq#fail_setting_secure_settings"&&(location.hash="adb_failed");if(await we(),location.hash){const n=await(async()=>{const o=location.href;let r=0;for(;r<20;){if(o!==location.href)return;const l=document.querySelector(location.hash);if(l)return l;r++,await new Promise(v=>setTimeout(v,250))}})();if(n){if(!mr(n)){let r=0;for(;r<25&&!_r();)await new Promise(l=>setTimeout(l,100)),r++;n.scrollIntoView({behavior:"smooth",block:"center"})}const o="animate-hash-hint";n.classList.add(o),await new Promise(r=>setTimeout(r,500*2*5)),n.classList.remove(o)}}},kr=h(()=>{const s=bt();return G(()=>{gr(s)}),()=>{}}),$r={extends:De,Layout(){return O(M,null,[O(De.Layout),O(hr),O(kr)])},enhanceApp({app:s}){Object.entries(vr).forEach(([e,t])=>{s.component(e,t)})}};export{$r as R,Fs as c,L as u};
@@ -1 +1 @@
1
- import{_ as t,o,c as a,ao as d}from"./chunks/framework.DZAoeHqG.js";const q=JSON.parse('{"title":"选择示例","description":"","frontmatter":{},"headers":[],"relativePath":"guide/example.md","filePath":"guide/example.md","lastUpdated":1744454641000}'),i={name:"guide/example.md"};function r(l,e,u,c,n,p){return o(),a("div",null,e[0]||(e[0]=[d('<h1 id="title" tabindex="-1">选择示例 <a class="header-anchor" href="#title" aria-label="Permalink to &quot;选择示例 {#title}&quot;">​</a></h1><p>一些选择器及其相关作用说明</p><h2 id="e-1" tabindex="-1">选择根节点 <a class="header-anchor" href="#e-1" aria-label="Permalink to &quot;选择根节点 {#e-1}&quot;">​</a></h2><ul><li><code>[parent=null]</code></li><li><code>[depth=0]</code></li></ul><h2 id="e-2" tabindex="-1">选择子节点 <a class="header-anchor" href="#e-2" aria-label="Permalink to &quot;选择子节点 {#e-2}&quot;">​</a></h2><p>选择一个 <code>ImageView</code> 节点, 并要求其父节点是 <code>LinearLayout</code></p><p><a href="https://i.gkd.li/i/16076188?gkd=TGluZWFyTGF5b3V0ID4gSW1hZ2VWaWV3" target="_blank" rel="noreferrer"><code>LinearLayout &gt; ImageView</code></a></p><p>选择一个 <code>ImageView</code> 节点, 并要求其父节点的父节点是 <code>ViewGroup[vid=&quot;avatar_layout&quot;]</code></p><p><a href="https://i.gkd.li/i/16076188?gkd=Vmlld0dyb3VwW3ZpZD0iYXZhdGFyX2xheW91dCJdID4yIEltYWdlVmlldw" target="_blank" rel="noreferrer"><code>ViewGroup[vid=&quot;avatar_layout&quot;] &gt;2 ImageView</code></a></p><p>选择一个 <code>ImageView[vid=&quot;search_icon&quot;]</code> 节点, 并要求祖先节点是 <code>FrameLayout[vid=&quot;content_layout&quot;]</code>, <code>n</code>可以是任意正整数, 下同</p><p><a href="https://i.gkd.li/i/16076188?gkd=RnJhbWVMYXlvdXRbdmlkPSJjb250ZW50X2xheW91dCJdIEltYWdlVmlld1t2aWQ9InNlYXJjaF9pY29uIl0" target="_blank" rel="noreferrer"><code>FrameLayout[vid=&quot;content_layout&quot;] &gt;n ImageView[vid=&quot;search_icon&quot;]</code></a></p><h2 id="e-3" tabindex="-1">末尾子节点 <a class="header-anchor" href="#e-3" aria-label="Permalink to &quot;末尾子节点 {#e-3}&quot;">​</a></h2><p>选择一个 <code>ImageView</code> 节点, 并要求是其父节点是最后一个子节点</p><p><a href="https://i.gkd.li/i/16076188?gkd=SW1hZ2VWaWV3W2luZGV4PXBhcmVudC5jaGlsZENvdW50Lm1pbnVzKDEpXQ" target="_blank" rel="noreferrer"><code>ImageView[index=parent.childCount.minus(1)]</code></a></p><h2 id="e-4" tabindex="-1">选择兄弟节点 <a class="header-anchor" href="#e-4" aria-label="Permalink to &quot;选择兄弟节点 {#e-4}&quot;">​</a></h2><p>选择一个 <code>LinearLayout[desc=&quot;搜索栏,按钮&quot;]</code> 节点, 并要求其兄弟节点是 <code>ViewGroup[desc=&quot;个人主页,按钮&quot;]</code></p><ul><li><a href="https://i.gkd.li/i/16076188?gkd=Vmlld0dyb3VwW2Rlc2M9IuS4quS6uuS4u-mhte-8jOaMiemSriJdICsgTGluZWFyTGF5b3V0W2Rlc2M9IuaQnOe0ouagj--8jOaMiemSriJd" target="_blank" rel="noreferrer"><code>ViewGroup[desc=&quot;个人主页,按钮&quot;] + LinearLayout[desc=&quot;搜索栏,按钮&quot;]</code></a></li><li><a href="https://i.gkd.li/i/16076188?gkd=QExpbmVhckxheW91dFtkZXNjPSLmkJzntKLmoI_vvIzmjInpkq4iXSAtIFZpZXdHcm91cFtkZXNjPSLkuKrkurrkuLvpobXvvIzmjInpkq4iXQ" target="_blank" rel="noreferrer"><code>@LinearLayout[desc=&quot;搜索栏,按钮&quot;] - ViewGroup[desc=&quot;个人主页,按钮&quot;]</code></a></li></ul><p>选择一个 <code>[text$=&quot;顶级入耳&quot;]</code> 节点, 并要求其兄弟节点是 <code>[vid=&quot;cover_layout&quot;]</code></p><ul><li><a href="https://i.gkd.li/i/16076188?gkd=W3ZpZD0iY292ZXJfbGF5b3V0Il0gK24gW3RleHQkPSLpobbnuqflhaXogLMiXQ" target="_blank" rel="noreferrer"><code>[vid=&quot;cover_layout&quot;] +n [text$=&quot;顶级入耳&quot;]</code></a></li><li><a href="https://i.gkd.li/i/16076188?gkd=QFt0ZXh0JD0i6aG257qn5YWl6ICzIl0gLW4gW3ZpZD0iY292ZXJfbGF5b3V0Il0" target="_blank" rel="noreferrer"><code>@[text$=&quot;顶级入耳&quot;] -n [vid=&quot;cover_layout&quot;]</code></a></li></ul><h2 id="e-5" tabindex="-1">选择父节点 <a class="header-anchor" href="#e-5" aria-label="Permalink to &quot;选择父节点 {#e-5}&quot;">​</a></h2><p>选择一个 <code>ViewGroup[desc^=&quot;直播&quot;]</code> 节点, 并要求其子节点是 <code>FrameLayout[vid=&quot;cover_layout&quot;]</code> 或 <code>ViewGroup[vid=&quot;live_text_container&quot;]</code> 或 <code>TextView[vid=&quot;title_v2&quot;]</code></p><ul><li><a href="https://i.gkd.li/i/16076188?gkd=RnJhbWVMYXlvdXRbdmlkPSJjb3Zlcl9sYXlvdXQiXSA8IFZpZXdHcm91cFtkZXNjXj0i55u05pKtIl0" target="_blank" rel="noreferrer"><code>FrameLayout[vid=&quot;cover_layout&quot;] &lt; ViewGroup[desc^=&quot;直播&quot;]</code></a></li><li><a href="https://i.gkd.li/i/16076188?gkd=Vmlld0dyb3VwW3ZpZD0ibGl2ZV90ZXh0X2NvbnRhaW5lciJdIDwzIFZpZXdHcm91cFtkZXNjXj0i55u05pKtIl0" target="_blank" rel="noreferrer"><code>ViewGroup[vid=&quot;live_text_container&quot;] &lt;3 ViewGroup[desc^=&quot;直播&quot;]</code></a></li><li><a href="https://i.gkd.li/i/16076188?gkd=VGV4dFZpZXdbdmlkPSJ0aXRsZV92MiJdIDxuIFZpZXdHcm91cFtkZXNjXj0i55u05pKtIl0" target="_blank" rel="noreferrer"><code>TextView[vid=&quot;title_v2&quot;] &lt;n ViewGroup[desc^=&quot;直播&quot;]</code></a></li></ul><h2 id="e-6" tabindex="-1">在指定节点的子节点内查找指定选择器 <a class="header-anchor" href="#e-6" aria-label="Permalink to &quot;在指定节点的子节点内查找指定选择器 {#e-6}&quot;">​</a></h2><p>一般在末尾节点支持 <a href="/guide/optimize#fast-query">快速查询</a> 的情况下使用</p><p>在节点 <code>ViewGroup[vid=&quot;live_text_container&quot;]</code> 的子节点内查找 <code>[text=&quot;直播&quot;]</code></p><p><a href="https://i.gkd.li/i/16076188?gkd=QFt0ZXh0PSLnm7Tmkq0iXSA8PG4gVmlld0dyb3VwW3ZpZD0ibGl2ZV90ZXh0X2NvbnRhaW5lciJd" target="_blank" rel="noreferrer"><code>@[text=&quot;直播&quot;] &lt;&lt;n ViewGroup[vid=&quot;live_text_container&quot;]</code></a></p><p>在节点 <code>FrameLayout[vid=&quot;swipe_layout&quot;]</code> 的子节点内查找 <code>LinearLayout &gt; @[text=&quot;直播&quot;]</code></p><p><a href="https://i.gkd.li/i/16076188?gkd=TGluZWFyTGF5b3V0ID4gQFt0ZXh0PSLnm7Tmkq0iXSA8PG4gW3ZpZD0ic3dpcGVfbGF5b3V0Il0" target="_blank" rel="noreferrer"><code>LinearLayout &gt; @[text=&quot;直播&quot;] &lt;&lt;n [vid=&quot;swipe_layout&quot;]</code></a></p><h2 id="e-7" tabindex="-1">组合使用 <a class="header-anchor" href="#e-7" aria-label="Permalink to &quot;组合使用 {#e-7}&quot;">​</a></h2><p><a href="https://i.gkd.li/i/16076188?gkd=SW1hZ2VWaWV3IDwgRnJhbWVMYXlvdXQgPG4gVmlld0dyb3VwW2Rlc2NePSLnm7Tmkq0iXSAtIFZpZXdHcm91cCA-NCBGcmFtZUxheW91dFtpbmRleD0wXSArMiBGcmFtZUxheW91dCA-IEBUZXh0Vmlld1tpbmRleD1wYXJlbnQuY2hpbGRDb3VudC5taW51cygxKV0gPDxuIEZyYW1lTGF5b3V0W3ZpZD0iY29udGVudCJd" target="_blank" rel="noreferrer"><code>ImageView &lt; FrameLayout &lt;n ViewGroup[desc^=&quot;直播&quot;] - ViewGroup &gt;4 FrameLayout[index=0] +2 FrameLayout &gt; @TextView[index=parent.childCount.minus(1)] &lt;&lt;n FrameLayout[vid=&quot;content&quot;]</code></a></p>',30)]))}const g=t(i,[["render",r]]);export{q as __pageData,g as default};
1
+ import{_ as t,o,c as a,ao as d}from"./chunks/framework.DZAoeHqG.js";const q=JSON.parse('{"title":"选择示例","description":"","frontmatter":{},"headers":[],"relativePath":"guide/example.md","filePath":"guide/example.md","lastUpdated":1745764409000}'),i={name:"guide/example.md"};function r(l,e,u,c,n,p){return o(),a("div",null,e[0]||(e[0]=[d('<h1 id="title" tabindex="-1">选择示例 <a class="header-anchor" href="#title" aria-label="Permalink to &quot;选择示例 {#title}&quot;">​</a></h1><p>一些选择器及其相关作用说明</p><h2 id="e-1" tabindex="-1">选择根节点 <a class="header-anchor" href="#e-1" aria-label="Permalink to &quot;选择根节点 {#e-1}&quot;">​</a></h2><ul><li><code>[parent=null]</code></li><li><code>[depth=0]</code></li></ul><h2 id="e-2" tabindex="-1">选择子节点 <a class="header-anchor" href="#e-2" aria-label="Permalink to &quot;选择子节点 {#e-2}&quot;">​</a></h2><p>选择一个 <code>ImageView</code> 节点, 并要求其父节点是 <code>LinearLayout</code></p><p><a href="https://i.gkd.li/i/16076188?gkd=TGluZWFyTGF5b3V0ID4gSW1hZ2VWaWV3" target="_blank" rel="noreferrer"><code>LinearLayout &gt; ImageView</code></a></p><p>选择一个 <code>ImageView</code> 节点, 并要求其父节点的父节点是 <code>ViewGroup[vid=&quot;avatar_layout&quot;]</code></p><p><a href="https://i.gkd.li/i/16076188?gkd=Vmlld0dyb3VwW3ZpZD0iYXZhdGFyX2xheW91dCJdID4yIEltYWdlVmlldw" target="_blank" rel="noreferrer"><code>ViewGroup[vid=&quot;avatar_layout&quot;] &gt;2 ImageView</code></a></p><p>选择一个 <code>ImageView[vid=&quot;search_icon&quot;]</code> 节点, 并要求祖先节点是 <code>FrameLayout[vid=&quot;content_layout&quot;]</code>, <code>n</code>可以是任意正整数, 下同</p><p><a href="https://i.gkd.li/i/16076188?gkd=RnJhbWVMYXlvdXRbdmlkPSJjb250ZW50X2xheW91dCJdIEltYWdlVmlld1t2aWQ9InNlYXJjaF9pY29uIl0" target="_blank" rel="noreferrer"><code>FrameLayout[vid=&quot;content_layout&quot;] &gt;n ImageView[vid=&quot;search_icon&quot;]</code></a></p><h2 id="e-3" tabindex="-1">末尾子节点 <a class="header-anchor" href="#e-3" aria-label="Permalink to &quot;末尾子节点 {#e-3}&quot;">​</a></h2><p>选择一个 <code>ImageView</code> 节点, 并要求是其父节点是最后一个子节点</p><p><a href="https://i.gkd.li/i/16076188?gkd=SW1hZ2VWaWV3W2luZGV4PXBhcmVudC5jaGlsZENvdW50Lm1pbnVzKDEpXQ" target="_blank" rel="noreferrer"><code>ImageView[index=parent.childCount.minus(1)]</code></a></p><h2 id="e-4" tabindex="-1">选择兄弟节点 <a class="header-anchor" href="#e-4" aria-label="Permalink to &quot;选择兄弟节点 {#e-4}&quot;">​</a></h2><p>选择一个 <code>LinearLayout[desc=&quot;搜索栏,按钮&quot;]</code> 节点, 并要求其兄弟节点是 <code>ViewGroup[desc=&quot;个人主页,按钮&quot;]</code></p><ul><li><a href="https://i.gkd.li/i/16076188?gkd=Vmlld0dyb3VwW2Rlc2M9IuS4quS6uuS4u-mhte-8jOaMiemSriJdICsgTGluZWFyTGF5b3V0W2Rlc2M9IuaQnOe0ouagj--8jOaMiemSriJd" target="_blank" rel="noreferrer"><code>ViewGroup[desc=&quot;个人主页,按钮&quot;] + LinearLayout[desc=&quot;搜索栏,按钮&quot;]</code></a></li><li><a href="https://i.gkd.li/i/16076188?gkd=QExpbmVhckxheW91dFtkZXNjPSLmkJzntKLmoI_vvIzmjInpkq4iXSAtIFZpZXdHcm91cFtkZXNjPSLkuKrkurrkuLvpobXvvIzmjInpkq4iXQ" target="_blank" rel="noreferrer"><code>@LinearLayout[desc=&quot;搜索栏,按钮&quot;] - ViewGroup[desc=&quot;个人主页,按钮&quot;]</code></a></li></ul><p>选择一个 <code>[text$=&quot;顶级入耳&quot;]</code> 节点, 并要求其兄弟节点是 <code>[vid=&quot;cover_layout&quot;]</code></p><ul><li><a href="https://i.gkd.li/i/16076188?gkd=W3ZpZD0iY292ZXJfbGF5b3V0Il0gK24gW3RleHQkPSLpobbnuqflhaXogLMiXQ" target="_blank" rel="noreferrer"><code>[vid=&quot;cover_layout&quot;] +n [text$=&quot;顶级入耳&quot;]</code></a></li><li><a href="https://i.gkd.li/i/16076188?gkd=QFt0ZXh0JD0i6aG257qn5YWl6ICzIl0gLW4gW3ZpZD0iY292ZXJfbGF5b3V0Il0" target="_blank" rel="noreferrer"><code>@[text$=&quot;顶级入耳&quot;] -n [vid=&quot;cover_layout&quot;]</code></a></li></ul><h2 id="e-5" tabindex="-1">选择父节点 <a class="header-anchor" href="#e-5" aria-label="Permalink to &quot;选择父节点 {#e-5}&quot;">​</a></h2><p>选择一个 <code>ViewGroup[desc^=&quot;直播&quot;]</code> 节点, 并要求其子节点是 <code>FrameLayout[vid=&quot;cover_layout&quot;]</code> 或 <code>ViewGroup[vid=&quot;live_text_container&quot;]</code> 或 <code>TextView[vid=&quot;title_v2&quot;]</code></p><ul><li><a href="https://i.gkd.li/i/16076188?gkd=RnJhbWVMYXlvdXRbdmlkPSJjb3Zlcl9sYXlvdXQiXSA8IFZpZXdHcm91cFtkZXNjXj0i55u05pKtIl0" target="_blank" rel="noreferrer"><code>FrameLayout[vid=&quot;cover_layout&quot;] &lt; ViewGroup[desc^=&quot;直播&quot;]</code></a></li><li><a href="https://i.gkd.li/i/16076188?gkd=Vmlld0dyb3VwW3ZpZD0ibGl2ZV90ZXh0X2NvbnRhaW5lciJdIDwzIFZpZXdHcm91cFtkZXNjXj0i55u05pKtIl0" target="_blank" rel="noreferrer"><code>ViewGroup[vid=&quot;live_text_container&quot;] &lt;3 ViewGroup[desc^=&quot;直播&quot;]</code></a></li><li><a href="https://i.gkd.li/i/16076188?gkd=VGV4dFZpZXdbdmlkPSJ0aXRsZV92MiJdIDxuIFZpZXdHcm91cFtkZXNjXj0i55u05pKtIl0" target="_blank" rel="noreferrer"><code>TextView[vid=&quot;title_v2&quot;] &lt;n ViewGroup[desc^=&quot;直播&quot;]</code></a></li></ul><h2 id="e-6" tabindex="-1">在指定节点的子节点内查找指定选择器 <a class="header-anchor" href="#e-6" aria-label="Permalink to &quot;在指定节点的子节点内查找指定选择器 {#e-6}&quot;">​</a></h2><p>一般在末尾节点支持 <a href="/guide/optimize#fast-query">快速查询</a> 的情况下使用</p><p>在节点 <code>ViewGroup[vid=&quot;live_text_container&quot;]</code> 的子节点内查找 <code>[text=&quot;直播&quot;]</code></p><p><a href="https://i.gkd.li/i/16076188?gkd=QFt0ZXh0PSLnm7Tmkq0iXSA8PG4gVmlld0dyb3VwW3ZpZD0ibGl2ZV90ZXh0X2NvbnRhaW5lciJd" target="_blank" rel="noreferrer"><code>@[text=&quot;直播&quot;] &lt;&lt;n ViewGroup[vid=&quot;live_text_container&quot;]</code></a></p><p>在节点 <code>FrameLayout[vid=&quot;swipe_layout&quot;]</code> 的子节点内查找 <code>LinearLayout &gt; @[text=&quot;直播&quot;]</code></p><p><a href="https://i.gkd.li/i/16076188?gkd=TGluZWFyTGF5b3V0ID4gQFt0ZXh0PSLnm7Tmkq0iXSA8PG4gW3ZpZD0ic3dpcGVfbGF5b3V0Il0" target="_blank" rel="noreferrer"><code>LinearLayout &gt; @[text=&quot;直播&quot;] &lt;&lt;n [vid=&quot;swipe_layout&quot;]</code></a></p><h2 id="e-7" tabindex="-1">组合使用 <a class="header-anchor" href="#e-7" aria-label="Permalink to &quot;组合使用 {#e-7}&quot;">​</a></h2><p><a href="https://i.gkd.li/i/16076188?gkd=SW1hZ2VWaWV3IDwgRnJhbWVMYXlvdXQgPG4gVmlld0dyb3VwW2Rlc2NePSLnm7Tmkq0iXSAtIFZpZXdHcm91cCA-NCBGcmFtZUxheW91dFtpbmRleD0wXSArMiBGcmFtZUxheW91dCA-IEBUZXh0Vmlld1tpbmRleD1wYXJlbnQuY2hpbGRDb3VudC5taW51cygxKV0gPDxuIEZyYW1lTGF5b3V0W3ZpZD0iY29udGVudCJd" target="_blank" rel="noreferrer"><code>ImageView &lt; FrameLayout &lt;n ViewGroup[desc^=&quot;直播&quot;] - ViewGroup &gt;4 FrameLayout[index=0] +2 FrameLayout &gt; @TextView[index=parent.childCount.minus(1)] &lt;&lt;n FrameLayout[vid=&quot;content&quot;]</code></a></p>',30)]))}const g=t(i,[["render",r]]);export{q as __pageData,g as default};
@@ -1 +1 @@
1
- import{_ as t,o,c as a,ao as d}from"./chunks/framework.DZAoeHqG.js";const q=JSON.parse('{"title":"选择示例","description":"","frontmatter":{},"headers":[],"relativePath":"guide/example.md","filePath":"guide/example.md","lastUpdated":1744454641000}'),i={name:"guide/example.md"};function r(l,e,u,c,n,p){return o(),a("div",null,e[0]||(e[0]=[d("",30)]))}const g=t(i,[["render",r]]);export{q as __pageData,g as default};
1
+ import{_ as t,o,c as a,ao as d}from"./chunks/framework.DZAoeHqG.js";const q=JSON.parse('{"title":"选择示例","description":"","frontmatter":{},"headers":[],"relativePath":"guide/example.md","filePath":"guide/example.md","lastUpdated":1745764409000}'),i={name:"guide/example.md"};function r(l,e,u,c,n,p){return o(),a("div",null,e[0]||(e[0]=[d("",30)]))}const g=t(i,[["render",r]]);export{q as __pageData,g as default};
@@ -1 +1 @@
1
- import{_ as a,o as e,c as d,ao as r}from"./chunks/framework.DZAoeHqG.js";const u=JSON.parse('{"title":"外部交互","description":"","frontmatter":{},"headers":[],"relativePath":"guide/external.md","filePath":"guide/external.md","lastUpdated":1744454641000}'),l={name:"guide/external.md"};function i(o,t,p,h,n,c){return e(),d("div",null,t[0]||(t[0]=[r('<h1 id="title" tabindex="-1">外部交互 <a class="header-anchor" href="#title" aria-label="Permalink to &quot;外部交互 {#title}&quot;">​</a></h1><p>一些无法在应用内界面上直接使用的功能</p><h2 id="app-icon" tabindex="-1">应用图标 <a class="header-anchor" href="#app-icon" aria-label="Permalink to &quot;应用图标 {#app-icon}&quot;">​</a></h2><p>GKD 有两种应用图标</p><ul><li>默认图标</li><li>深色模式下的图标</li></ul><p>一般来说, 第一次显示的图标取决于安装时的系统深色模式设置</p><p>而且系统貌似不会在切换深色模式自动切换图标, 你可以通过以下方式切换</p><ul><li>到 系统主题-图标包 切换其他后再切换回来</li><li>重启手机</li><li>同版本覆盖安装 GKD, 无需卸载</li></ul><h2 id="scheme" tabindex="-1">跳转应用 <a class="header-anchor" href="#scheme" aria-label="Permalink to &quot;跳转应用 {#scheme}&quot;">​</a></h2><p>可以在浏览器或其他应用打开特定链接来跳转到应用内页面</p><table tabindex="0"><thead><tr><th>页面</th><th>链接</th></tr></thead><tbody><tr><td>首页</td><td><code>gkd://page</code></td></tr><tr><td>高级设置</td><td><code>gkd://page/1</code></td></tr><tr><td>快照记录</td><td><code>gkd://page/2</code></td></tr></tbody></table><h2 id="shortcut" tabindex="-1">快捷开关 <a class="header-anchor" href="#shortcut" aria-label="Permalink to &quot;快捷开关 {#shortcut}&quot;">​</a></h2><p>GKD 在通知栏面板声明了一些快捷开关, 可快捷使用一些功能</p><table tabindex="0"><thead><tr><th>名称</th><th>功能</th></tr></thead><tbody><tr><td>GKD</td><td>打开或关闭无障碍权限</td></tr><tr><td>HTTP服务</td><td>打开或关闭HTTP服务</td></tr><tr><td>悬浮按钮</td><td>打开或关闭悬浮按钮, 点击出现的按钮可捕获快照</td></tr><tr><td>捕获快照</td><td>点击后捕获当前应用界面快照</td></tr></tbody></table><h2 id="import-data" tabindex="-1">导入数据 <a class="header-anchor" href="#import-data" aria-label="Permalink to &quot;导入数据 {#import-data}&quot;">​</a></h2><p>你可以在 主页-订阅-右上角菜单-导入数据 中导入订阅规则数据</p><p>但是这样需要在打开的文件管理器中手动选择路径不太方便</p><p>另一个更方便的迁移数据的方式是</p><ul><li><p>旧设备: 导出数据 - 选择分享到 QQ 发送给自己</p></li><li><p>新设备: 在 QQ 中打开分享的文件 - 用其他应用打开 - 选择 GKD 导入数据</p></li></ul><p>上面的 QQ 也可以是其他传送软件, 只要支持用其他应用打开的时候有 GKD 即可</p>',20)]))}const _=a(l,[["render",i]]);export{u as __pageData,_ as default};
1
+ import{_ as a,o as e,c as d,ao as r}from"./chunks/framework.DZAoeHqG.js";const u=JSON.parse('{"title":"外部交互","description":"","frontmatter":{},"headers":[],"relativePath":"guide/external.md","filePath":"guide/external.md","lastUpdated":1745764409000}'),l={name:"guide/external.md"};function i(o,t,p,h,n,c){return e(),d("div",null,t[0]||(t[0]=[r('<h1 id="title" tabindex="-1">外部交互 <a class="header-anchor" href="#title" aria-label="Permalink to &quot;外部交互 {#title}&quot;">​</a></h1><p>一些无法在应用内界面上直接使用的功能</p><h2 id="app-icon" tabindex="-1">应用图标 <a class="header-anchor" href="#app-icon" aria-label="Permalink to &quot;应用图标 {#app-icon}&quot;">​</a></h2><p>GKD 有两种应用图标</p><ul><li>默认图标</li><li>深色模式下的图标</li></ul><p>一般来说, 第一次显示的图标取决于安装时的系统深色模式设置</p><p>而且系统貌似不会在切换深色模式自动切换图标, 你可以通过以下方式切换</p><ul><li>到 系统主题-图标包 切换其他后再切换回来</li><li>重启手机</li><li>同版本覆盖安装 GKD, 无需卸载</li></ul><h2 id="scheme" tabindex="-1">跳转应用 <a class="header-anchor" href="#scheme" aria-label="Permalink to &quot;跳转应用 {#scheme}&quot;">​</a></h2><p>可以在浏览器或其他应用打开特定链接来跳转到应用内页面</p><table tabindex="0"><thead><tr><th>页面</th><th>链接</th></tr></thead><tbody><tr><td>首页</td><td><code>gkd://page</code></td></tr><tr><td>高级设置</td><td><code>gkd://page/1</code></td></tr><tr><td>快照记录</td><td><code>gkd://page/2</code></td></tr></tbody></table><h2 id="shortcut" tabindex="-1">快捷开关 <a class="header-anchor" href="#shortcut" aria-label="Permalink to &quot;快捷开关 {#shortcut}&quot;">​</a></h2><p>GKD 在通知栏面板声明了一些快捷开关, 可快捷使用一些功能</p><table tabindex="0"><thead><tr><th>名称</th><th>功能</th></tr></thead><tbody><tr><td>GKD</td><td>打开或关闭无障碍权限</td></tr><tr><td>HTTP服务</td><td>打开或关闭HTTP服务</td></tr><tr><td>悬浮按钮</td><td>打开或关闭悬浮按钮, 点击出现的按钮可捕获快照</td></tr><tr><td>捕获快照</td><td>点击后捕获当前应用界面快照</td></tr></tbody></table><h2 id="import-data" tabindex="-1">导入数据 <a class="header-anchor" href="#import-data" aria-label="Permalink to &quot;导入数据 {#import-data}&quot;">​</a></h2><p>你可以在 主页-订阅-右上角菜单-导入数据 中导入订阅规则数据</p><p>但是这样需要在打开的文件管理器中手动选择路径不太方便</p><p>另一个更方便的迁移数据的方式是</p><ul><li><p>旧设备: 导出数据 - 选择分享到 QQ 发送给自己</p></li><li><p>新设备: 在 QQ 中打开分享的文件 - 用其他应用打开 - 选择 GKD 导入数据</p></li></ul><p>上面的 QQ 也可以是其他传送软件, 只要支持用其他应用打开的时候有 GKD 即可</p>',20)]))}const _=a(l,[["render",i]]);export{u as __pageData,_ as default};
@@ -1 +1 @@
1
- import{_ as a,o as e,c as d,ao as r}from"./chunks/framework.DZAoeHqG.js";const u=JSON.parse('{"title":"外部交互","description":"","frontmatter":{},"headers":[],"relativePath":"guide/external.md","filePath":"guide/external.md","lastUpdated":1744454641000}'),l={name:"guide/external.md"};function i(o,t,p,h,n,c){return e(),d("div",null,t[0]||(t[0]=[r("",20)]))}const _=a(l,[["render",i]]);export{u as __pageData,_ as default};
1
+ import{_ as a,o as e,c as d,ao as r}from"./chunks/framework.DZAoeHqG.js";const u=JSON.parse('{"title":"外部交互","description":"","frontmatter":{},"headers":[],"relativePath":"guide/external.md","filePath":"guide/external.md","lastUpdated":1745764409000}'),l={name:"guide/external.md"};function i(o,t,p,h,n,c){return e(),d("div",null,t[0]||(t[0]=[r("",20)]))}const _=a(l,[["render",i]]);export{u as __pageData,_ as default};