@gkd-kit/docs 0.0.1724077104420 → 0.0.1725011887959

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 (60) hide show
  1. package/.vitepress/dist/404.html +4 -4
  2. package/.vitepress/dist/api/index.html +7 -7
  3. package/.vitepress/dist/api/interfaces/RawApp.html +7 -7
  4. package/.vitepress/dist/api/interfaces/RawAppGroup.html +7 -7
  5. package/.vitepress/dist/api/interfaces/RawAppRule.html +7 -7
  6. package/.vitepress/dist/api/interfaces/RawAppRuleProps.html +7 -7
  7. package/.vitepress/dist/api/interfaces/RawCategory.html +7 -7
  8. package/.vitepress/dist/api/interfaces/RawCommonProps.html +7 -7
  9. package/.vitepress/dist/api/interfaces/RawGlobalApp.html +7 -7
  10. package/.vitepress/dist/api/interfaces/RawGlobalGroup.html +7 -7
  11. package/.vitepress/dist/api/interfaces/RawGlobalRule.html +7 -7
  12. package/.vitepress/dist/api/interfaces/RawGlobalRuleProps.html +7 -7
  13. package/.vitepress/dist/api/interfaces/RawGroupProps.html +7 -7
  14. package/.vitepress/dist/api/interfaces/RawRuleProps.html +7 -7
  15. package/.vitepress/dist/api/interfaces/RawSubscription.html +7 -7
  16. package/.vitepress/dist/api/type-aliases/IArray.html +7 -7
  17. package/.vitepress/dist/api/type-aliases/Integer.html +7 -7
  18. package/.vitepress/dist/api/type-aliases/Position.html +7 -7
  19. package/.vitepress/dist/assets/{app.BEmjW4Um.js → app.LkN9WXVu.js} +1 -1
  20. package/.vitepress/dist/assets/chunks/@localSearchIndexroot.HkNwtm8a.js +1 -0
  21. package/.vitepress/dist/assets/chunks/FileSaver.min.CvNQQnEe.js +1 -0
  22. package/.vitepress/dist/assets/chunks/{VPLocalSearchBox.DSufIFkx.js → VPLocalSearchBox.BgK7saue.js} +2 -2
  23. package/.vitepress/dist/assets/chunks/theme.Dm61Zj67.js +1 -0
  24. package/.vitepress/dist/assets/{guide_example.md.B-TLE7y_.js → guide_example.md.BB3Zo-0j.js} +1 -1
  25. package/.vitepress/dist/assets/{guide_example.md.B-TLE7y_.lean.js → guide_example.md.BB3Zo-0j.lean.js} +1 -1
  26. package/.vitepress/dist/assets/{guide_faq.md.CRoUJWOD.js → guide_faq.md.CgbmzTKT.js} +1 -1
  27. package/.vitepress/dist/assets/{guide_faq.md.CRoUJWOD.lean.js → guide_faq.md.CgbmzTKT.lean.js} +1 -1
  28. package/.vitepress/dist/assets/guide_index.md.B3OSKrGW.js +1 -0
  29. package/.vitepress/dist/assets/guide_index.md.B3OSKrGW.lean.js +1 -0
  30. package/.vitepress/dist/assets/{guide_node.md.CldEa3S7.js → guide_node.md.C9Ffq2zj.js} +1 -1
  31. package/.vitepress/dist/assets/{guide_node.md.CldEa3S7.lean.js → guide_node.md.C9Ffq2zj.lean.js} +1 -1
  32. package/.vitepress/dist/assets/{guide_optimize.md.Dc8zKdDE.js → guide_optimize.md.BBORCHot.js} +1 -1
  33. package/.vitepress/dist/assets/{guide_optimize.md.Dc8zKdDE.lean.js → guide_optimize.md.BBORCHot.lean.js} +1 -1
  34. package/.vitepress/dist/assets/{guide_selector.md.BzcrpB_R.js → guide_selector.md.C6CkRTKh.js} +1 -1
  35. package/.vitepress/dist/assets/{guide_selector.md.BzcrpB_R.lean.js → guide_selector.md.C6CkRTKh.lean.js} +1 -1
  36. package/.vitepress/dist/assets/{guide_snapshot.md.BgaAqGCy.js → guide_snapshot.md.B_5blGwt.js} +1 -1
  37. package/.vitepress/dist/assets/{guide_snapshot.md.BgaAqGCy.lean.js → guide_snapshot.md.B_5blGwt.lean.js} +1 -1
  38. package/.vitepress/dist/assets/{guide_subscription.md.CWI8uO64.js → guide_subscription.md.DnX0Rh_T.js} +1 -1
  39. package/.vitepress/dist/assets/{guide_subscription.md.CWI8uO64.lean.js → guide_subscription.md.DnX0Rh_T.lean.js} +1 -1
  40. package/.vitepress/dist/assets/{guide_what-is-gkd.md.CHANgeIa.js → guide_what-is-gkd.md.sOJC_lah.js} +1 -1
  41. package/.vitepress/dist/assets/{guide_what-is-gkd.md.CHANgeIa.lean.js → guide_what-is-gkd.md.sOJC_lah.lean.js} +1 -1
  42. package/.vitepress/dist/assets/{index.md.D8nSTkAn.js → index.md.8P2pPAO2.js} +1 -1
  43. package/.vitepress/dist/assets/{index.md.D8nSTkAn.lean.js → index.md.8P2pPAO2.lean.js} +1 -1
  44. package/.vitepress/dist/assets/style.cSHzFneL.css +1 -1
  45. package/.vitepress/dist/guide/example.html +8 -8
  46. package/.vitepress/dist/guide/faq.html +8 -8
  47. package/.vitepress/dist/guide/index.html +8 -8
  48. package/.vitepress/dist/guide/node.html +8 -8
  49. package/.vitepress/dist/guide/optimize.html +8 -8
  50. package/.vitepress/dist/guide/selector.html +9 -9
  51. package/.vitepress/dist/guide/snapshot.html +8 -8
  52. package/.vitepress/dist/guide/subscription.html +8 -8
  53. package/.vitepress/dist/guide/what-is-gkd.html +8 -8
  54. package/.vitepress/dist/hashmap.json +1 -1
  55. package/.vitepress/dist/index.html +7 -7
  56. package/package.json +1 -1
  57. package/.vitepress/dist/assets/chunks/@localSearchIndexroot.D4BvX1k8.js +0 -1
  58. package/.vitepress/dist/assets/chunks/theme.IofOmUyB.js +0 -1
  59. package/.vitepress/dist/assets/guide_index.md.DAnEhIYl.js +0 -1
  60. package/.vitepress/dist/assets/guide_index.md.DAnEhIYl.lean.js +0 -1
@@ -0,0 +1 @@
1
+ function O(r,v){for(var u=0;u<v.length;u++){const a=v[u];if(typeof a!="string"&&!Array.isArray(a)){for(const s in a)if(s!=="default"&&!(s in r)){const c=Object.getOwnPropertyDescriptor(a,s);c&&Object.defineProperty(r,s,c.get?c:{enumerable:!0,get:()=>a[s]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var d=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function _(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var g={exports:{}};(function(r,v){(function(u,a){a()})(d,function(){function u(e,t){return typeof t>"u"?t={autoBom:!1}:typeof t!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\uFEFF",e],{type:e.type}):e}function a(e,t,l){var o=new XMLHttpRequest;o.open("GET",e),o.responseType="blob",o.onload=function(){p(o.response,t,l)},o.onerror=function(){console.error("could not download file")},o.send()}function s(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch{}return 200<=t.status&&299>=t.status}function c(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var i=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof d=="object"&&d.global===d?d:void 0,y=i.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),p=i.saveAs||(typeof window!="object"||window!==i?function(){}:"download"in HTMLAnchorElement.prototype&&!y?function(e,t,l){var o=i.URL||i.webkitURL,n=document.createElement("a");t=t||e.name||"download",n.download=t,n.rel="noopener",typeof e=="string"?(n.href=e,n.origin===location.origin?c(n):s(n.href)?a(e,t,l):c(n,n.target="_blank")):(n.href=o.createObjectURL(e),setTimeout(function(){o.revokeObjectURL(n.href)},4e4),setTimeout(function(){c(n)},0))}:"msSaveOrOpenBlob"in navigator?function(e,t,l){if(t=t||e.name||"download",typeof e!="string")navigator.msSaveOrOpenBlob(u(e,l),t);else if(s(e))a(e,t,l);else{var o=document.createElement("a");o.href=e,o.target="_blank",setTimeout(function(){c(o)})}}:function(e,t,l,o){if(o=o||open("","_blank"),o&&(o.document.title=o.document.body.innerText="downloading..."),typeof e=="string")return a(e,t,l);var n=e.type==="application/octet-stream",E=/constructor/i.test(i.HTMLElement)||i.safari,b=/CriOS\/[\d]+/.test(navigator.userAgent);if((b||n&&E||y)&&typeof FileReader<"u"){var w=new FileReader;w.onloadend=function(){var f=w.result;f=b?f:f.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=f:location=f,o=null},w.readAsDataURL(e)}else{var h=i.URL||i.webkitURL,m=h.createObjectURL(e);o?o.location=m:location.href=m,o=null,setTimeout(function(){h.revokeObjectURL(m)},4e4)}});i.saveAs=p.saveAs=p,r.exports=p})})(g);var j=g.exports;const A=_(j),L=O({__proto__:null,default:A},[j]);export{L as F};
@@ -1,7 +1,7 @@
1
- var kt=Object.defineProperty;var Ft=(a,e,t)=>e in a?kt(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t;var Ce=(a,e,t)=>Ft(a,typeof e!="symbol"?e+"":e,t);import{X as Ot,s as ne,v as Ve,ax as Rt,ay as Ct,d as Mt,G as be,az as et,h as ye,aA as At,aB as Lt,x as Dt,aC as zt,y as Me,R as de,Q as we,aD as Pt,aE as jt,Y as Vt,U as $t,a1 as Bt,o as Q,b as Wt,j as _,a2 as Kt,k as D,a6 as Jt,a7 as Ut,aF as qt,c as Z,n as tt,e as _e,E as st,F as nt,a as he,t as fe,aq as Gt,p as Ht,l as Qt,aG as it,aH as Yt,ac as Zt,ai as Xt,aI as es,_ as ts}from"./framework.DAuRlsJR.js";import{u as ss,c as ns}from"./theme.IofOmUyB.js";const is={root:()=>Ot(()=>import(((u)=>{if(u.startsWith('/')){return"https://registry.npmmirror.com/@gkd-kit/docs/0.0.1724077104420/files/.vitepress/dist"+u}return u})("./@localSearchIndexroot.D4BvX1k8.js")),[])};/*!
1
+ var kt=Object.defineProperty;var Ft=(a,e,t)=>e in a?kt(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t;var Ce=(a,e,t)=>Ft(a,typeof e!="symbol"?e+"":e,t);import{X as Ot,s as ne,v as Ve,ax as Rt,ay as Ct,d as Mt,G as be,az as et,h as ye,aA as At,aB as Lt,x as Dt,aC as zt,y as Me,R as de,Q as we,aD as Pt,aE as jt,Y as Vt,U as $t,a1 as Bt,o as Q,b as Wt,j as _,a2 as Kt,k as D,a6 as Jt,a7 as Ut,aF as qt,c as Z,n as tt,e as _e,E as st,F as nt,a as he,t as fe,aq as Gt,p as Ht,l as Qt,aG as it,aH as Yt,ac as Zt,ai as Xt,aI as es,_ as ts}from"./framework.DAuRlsJR.js";import{u as ss,c as ns}from"./theme.Dm61Zj67.js";const is={root:()=>Ot(()=>import(((u)=>{if(u.startsWith('/')){return"https://registry.npmmirror.com/@gkd-kit/docs/0.0.1725011887959/files/.vitepress/dist"+u}return u})("./@localSearchIndexroot.HkNwtm8a.js")),[])};/*!
2
2
  * tabbable 6.2.0
3
3
  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
4
4
  */var vt=["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])"],Te=vt.join(","),mt=typeof Element>"u",re=mt?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Ne=!mt&&Element.prototype.getRootNode?function(a){var e;return a==null||(e=a.getRootNode)===null||e===void 0?void 0:e.call(a)}:function(a){return a==null?void 0:a.ownerDocument},ke=function a(e,t){var s;t===void 0&&(t=!0);var n=e==null||(s=e.getAttribute)===null||s===void 0?void 0:s.call(e,"inert"),r=n===""||n==="true",i=r||t&&e&&a(e.parentNode);return i},rs=function(e){var t,s=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return s===""||s==="true"},gt=function(e,t,s){if(ke(e))return[];var n=Array.prototype.slice.apply(e.querySelectorAll(Te));return t&&re.call(e,Te)&&n.unshift(e),n=n.filter(s),n},bt=function a(e,t,s){for(var n=[],r=Array.from(e);r.length;){var i=r.shift();if(!ke(i,!1))if(i.tagName==="SLOT"){var o=i.assignedElements(),c=o.length?o:i.children,l=a(c,!0,s);s.flatten?n.push.apply(n,l):n.push({scopeParent:i,candidates:l})}else{var h=re.call(i,Te);h&&s.filter(i)&&(t||!e.includes(i))&&n.push(i);var f=i.shadowRoot||typeof s.getShadowRoot=="function"&&s.getShadowRoot(i),v=!ke(f,!1)&&(!s.shadowRootFilter||s.shadowRootFilter(i));if(f&&v){var y=a(f===!0?i.children:f.children,!0,s);s.flatten?n.push.apply(n,y):n.push({scopeParent:i,candidates:y})}else r.unshift.apply(r,i.children)}}return n},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)||rs(e))&&!yt(e)?0:e.tabIndex},as=function(e,t){var s=ie(e);return s<0&&t&&!yt(e)?0:s},os=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},wt=function(e){return e.tagName==="INPUT"},cs=function(e){return wt(e)&&e.type==="hidden"},ls=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(s){return s.tagName==="SUMMARY"});return t},us=function(e,t){for(var s=0;s<e.length;s++)if(e[s].checked&&e[s].form===t)return e[s]},ds=function(e){if(!e.name)return!0;var t=e.form||Ne(e),s=function(o){return t.querySelectorAll('input[type="radio"][name="'+o+'"]')},n;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")n=s(window.CSS.escape(e.name));else try{n=s(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=us(n,e.form);return!r||r===e},hs=function(e){return wt(e)&&e.type==="radio"},fs=function(e){return hs(e)&&!ds(e)},ps=function(e){var t,s=e&&Ne(e),n=(t=s)===null||t===void 0?void 0:t.host,r=!1;if(s&&s!==e){var i,o,c;for(r=!!((i=n)!==null&&i!==void 0&&(o=i.ownerDocument)!==null&&o!==void 0&&o.contains(n)||e!=null&&(c=e.ownerDocument)!==null&&c!==void 0&&c.contains(e));!r&&n;){var l,h,f;s=Ne(n),n=(l=s)===null||l===void 0?void 0:l.host,r=!!((h=n)!==null&&h!==void 0&&(f=h.ownerDocument)!==null&&f!==void 0&&f.contains(n))}}return r},rt=function(e){var t=e.getBoundingClientRect(),s=t.width,n=t.height;return s===0&&n===0},vs=function(e,t){var s=t.displayCheck,n=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(!s||s==="full"||s==="legacy-full"){if(typeof n=="function"){for(var o=e;e;){var c=e.parentElement,l=Ne(e);if(c&&!c.shadowRoot&&n(c)===!0)return rt(e);e.assignedSlot?e=e.assignedSlot:!c&&l!==e.ownerDocument?e=l.host:e=c}e=o}if(ps(e))return!e.getClientRects().length;if(s!=="legacy-full")return!0}else if(s==="non-zero-area")return rt(e);return!1},ms=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var s=0;s<t.children.length;s++){var n=t.children.item(s);if(n.tagName==="LEGEND")return re.call(t,"fieldset[disabled] *")?!0:!n.contains(e)}return!0}t=t.parentElement}return!1},Fe=function(e,t){return!(t.disabled||ke(t)||cs(t)||vs(t,e)||ls(t)||ms(t))},$e=function(e,t){return!(fs(t)||ie(t)<0||!Fe(e,t))},gs=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},bs=function a(e){var t=[],s=[];return e.forEach(function(n,r){var i=!!n.scopeParent,o=i?n.scopeParent:n,c=as(o,i),l=i?a(n.candidates):o;c===0?i?t.push.apply(t,l):t.push(o):s.push({documentOrder:r,tabIndex:c,item:n,isScope:i,content:l})}),s.sort(os).reduce(function(n,r){return r.isScope?n.push.apply(n,r.content):n.push(r.content),n},[]).concat(t)},ys=function(e,t){t=t||{};var s;return t.getShadowRoot?s=bt([e],t.includeContainer,{filter:$e.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:gs}):s=gt(e,t.includeContainer,$e.bind(null,t)),bs(s)},ws=function(e,t){t=t||{};var s;return t.getShadowRoot?s=bt([e],t.includeContainer,{filter:Fe.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):s=gt(e,t.includeContainer,Fe.bind(null,t)),s},ae=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return re.call(e,Te)===!1?!1:$e(t,e)},_s=vt.concat("iframe").join(","),Ae=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return re.call(e,_s)===!1?!1:Fe(t,e)};/*!
5
5
  * focus-trap 7.5.4
6
6
  * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
7
- */function at(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(a);e&&(s=s.filter(function(n){return Object.getOwnPropertyDescriptor(a,n).enumerable})),t.push.apply(t,s)}return t}function ot(a){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?at(Object(t),!0).forEach(function(s){xs(a,s,t[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(t)):at(Object(t)).forEach(function(s){Object.defineProperty(a,s,Object.getOwnPropertyDescriptor(t,s))})}return a}function xs(a,e,t){return e=Es(e),e in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function Ss(a,e){if(typeof a!="object"||a===null)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var s=t.call(a,e||"default");if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(a)}function Es(a){var e=Ss(a,"string");return typeof e=="symbol"?e:String(e)}var ct={activateTrap:function(e,t){if(e.length>0){var s=e[e.length-1];s!==t&&s.pause()}var n=e.indexOf(t);n===-1||e.splice(n,1),e.push(t)},deactivateTrap:function(e,t){var s=e.indexOf(t);s!==-1&&e.splice(s,1),e.length>0&&e[e.length-1].unpause()}},Is=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},Ts=function(e){return(e==null?void 0:e.key)==="Escape"||(e==null?void 0:e.key)==="Esc"||(e==null?void 0:e.keyCode)===27},ve=function(e){return(e==null?void 0:e.key)==="Tab"||(e==null?void 0:e.keyCode)===9},Ns=function(e){return ve(e)&&!e.shiftKey},ks=function(e){return ve(e)&&e.shiftKey},lt=function(e){return setTimeout(e,0)},ut=function(e,t){var s=-1;return e.every(function(n,r){return t(n)?(s=r,!1):!0}),s},pe=function(e){for(var t=arguments.length,s=new Array(t>1?t-1:0),n=1;n<t;n++)s[n-1]=arguments[n];return typeof e=="function"?e.apply(void 0,s):e},xe=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},Fs=[],Os=function(e,t){var s=(t==null?void 0:t.document)||document,n=(t==null?void 0:t.trapStack)||Fs,r=ot({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:Ns,isKeyBackward:ks},t),i={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},o,c=function(u,d,m){return u&&u[d]!==void 0?u[d]:r[m||d]},l=function(u,d){var m=typeof(d==null?void 0:d.composedPath)=="function"?d.composedPath():void 0;return i.containerGroups.findIndex(function(S){var E=S.container,k=S.tabbableNodes;return E.contains(u)||(m==null?void 0:m.includes(E))||k.find(function(F){return F===u})})},h=function(u){var d=r[u];if(typeof d=="function"){for(var m=arguments.length,S=new Array(m>1?m-1:0),E=1;E<m;E++)S[E-1]=arguments[E];d=d.apply(void 0,S)}if(d===!0&&(d=void 0),!d){if(d===void 0||d===!1)return d;throw new Error("`".concat(u,"` was specified but was not a node, or did not return a node"))}var k=d;if(typeof d=="string"&&(k=s.querySelector(d),!k))throw new Error("`".concat(u,"` as selector refers to no known node"));return k},f=function(){var u=h("initialFocus");if(u===!1)return!1;if(u===void 0||!Ae(u,r.tabbableOptions))if(l(s.activeElement)>=0)u=s.activeElement;else{var d=i.tabbableGroups[0],m=d&&d.firstTabbableNode;u=m||h("fallbackFocus")}if(!u)throw new Error("Your focus-trap needs to have at least one focusable element");return u},v=function(){if(i.containerGroups=i.containers.map(function(u){var d=ys(u,r.tabbableOptions),m=ws(u,r.tabbableOptions),S=d.length>0?d[0]:void 0,E=d.length>0?d[d.length-1]:void 0,k=m.find(function(p){return ae(p)}),F=m.slice().reverse().find(function(p){return ae(p)}),M=!!d.find(function(p){return ie(p)>0});return{container:u,tabbableNodes:d,focusableNodes:m,posTabIndexesFound:M,firstTabbableNode:S,lastTabbableNode:E,firstDomTabbableNode:k,lastDomTabbableNode:F,nextTabbableNode:function(g){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,O=d.indexOf(g);return O<0?N?m.slice(m.indexOf(g)+1).find(function(P){return ae(P)}):m.slice(0,m.indexOf(g)).reverse().find(function(P){return ae(P)}):d[O+(N?1:-1)]}}}),i.tabbableGroups=i.containerGroups.filter(function(u){return u.tabbableNodes.length>0}),i.tabbableGroups.length<=0&&!h("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(i.containerGroups.find(function(u){return u.posTabIndexesFound})&&i.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},y=function I(u){var d=u.activeElement;if(d)return d.shadowRoot&&d.shadowRoot.activeElement!==null?I(d.shadowRoot):d},w=function I(u){if(u!==!1&&u!==y(document)){if(!u||!u.focus){I(f());return}u.focus({preventScroll:!!r.preventScroll}),i.mostRecentlyFocusedNode=u,Is(u)&&u.select()}},b=function(u){var d=h("setReturnFocus",u);return d||(d===!1?!1:u)},x=function(u){var d=u.target,m=u.event,S=u.isBackward,E=S===void 0?!1:S;d=d||xe(m),v();var k=null;if(i.tabbableGroups.length>0){var F=l(d,m),M=F>=0?i.containerGroups[F]:void 0;if(F<0)E?k=i.tabbableGroups[i.tabbableGroups.length-1].lastTabbableNode:k=i.tabbableGroups[0].firstTabbableNode;else if(E){var p=ut(i.tabbableGroups,function(T){var L=T.firstTabbableNode;return d===L});if(p<0&&(M.container===d||Ae(d,r.tabbableOptions)&&!ae(d,r.tabbableOptions)&&!M.nextTabbableNode(d,!1))&&(p=F),p>=0){var g=p===0?i.tabbableGroups.length-1:p-1,N=i.tabbableGroups[g];k=ie(d)>=0?N.lastTabbableNode:N.lastDomTabbableNode}else ve(m)||(k=M.nextTabbableNode(d,!1))}else{var O=ut(i.tabbableGroups,function(T){var L=T.lastTabbableNode;return d===L});if(O<0&&(M.container===d||Ae(d,r.tabbableOptions)&&!ae(d,r.tabbableOptions)&&!M.nextTabbableNode(d))&&(O=F),O>=0){var P=O===i.tabbableGroups.length-1?0:O+1,j=i.tabbableGroups[P];k=ie(d)>=0?j.firstTabbableNode:j.firstDomTabbableNode}else ve(m)||(k=M.nextTabbableNode(d))}}else k=h("fallbackFocus");return k},C=function(u){var d=xe(u);if(!(l(d,u)>=0)){if(pe(r.clickOutsideDeactivates,u)){o.deactivate({returnFocus:r.returnFocusOnDeactivate});return}pe(r.allowOutsideClick,u)||u.preventDefault()}},R=function(u){var d=xe(u),m=l(d,u)>=0;if(m||d instanceof Document)m&&(i.mostRecentlyFocusedNode=d);else{u.stopImmediatePropagation();var S,E=!0;if(i.mostRecentlyFocusedNode)if(ie(i.mostRecentlyFocusedNode)>0){var k=l(i.mostRecentlyFocusedNode),F=i.containerGroups[k].tabbableNodes;if(F.length>0){var M=F.findIndex(function(p){return p===i.mostRecentlyFocusedNode});M>=0&&(r.isKeyForward(i.recentNavEvent)?M+1<F.length&&(S=F[M+1],E=!1):M-1>=0&&(S=F[M-1],E=!1))}}else i.containerGroups.some(function(p){return p.tabbableNodes.some(function(g){return ie(g)>0})})||(E=!1);else E=!1;E&&(S=x({target:i.mostRecentlyFocusedNode,isBackward:r.isKeyBackward(i.recentNavEvent)})),w(S||i.mostRecentlyFocusedNode||f())}i.recentNavEvent=void 0},W=function(u){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;i.recentNavEvent=u;var m=x({event:u,isBackward:d});m&&(ve(u)&&u.preventDefault(),w(m))},J=function(u){if(Ts(u)&&pe(r.escapeDeactivates,u)!==!1){u.preventDefault(),o.deactivate();return}(r.isKeyForward(u)||r.isKeyBackward(u))&&W(u,r.isKeyBackward(u))},V=function(u){var d=xe(u);l(d,u)>=0||pe(r.clickOutsideDeactivates,u)||pe(r.allowOutsideClick,u)||(u.preventDefault(),u.stopImmediatePropagation())},U=function(){if(i.active)return ct.activateTrap(n,o),i.delayInitialFocusTimer=r.delayInitialFocus?lt(function(){w(f())}):w(f()),s.addEventListener("focusin",R,!0),s.addEventListener("mousedown",C,{capture:!0,passive:!1}),s.addEventListener("touchstart",C,{capture:!0,passive:!1}),s.addEventListener("click",V,{capture:!0,passive:!1}),s.addEventListener("keydown",J,{capture:!0,passive:!1}),o},q=function(){if(i.active)return s.removeEventListener("focusin",R,!0),s.removeEventListener("mousedown",C,!0),s.removeEventListener("touchstart",C,!0),s.removeEventListener("click",V,!0),s.removeEventListener("keydown",J,!0),o},Re=function(u){var d=u.some(function(m){var S=Array.from(m.removedNodes);return S.some(function(E){return E===i.mostRecentlyFocusedNode})});d&&w(f())},A=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(Re):void 0,K=function(){A&&(A.disconnect(),i.active&&!i.paused&&i.containers.map(function(u){A.observe(u,{subtree:!0,childList:!0})}))};return o={get active(){return i.active},get paused(){return i.paused},activate:function(u){if(i.active)return this;var d=c(u,"onActivate"),m=c(u,"onPostActivate"),S=c(u,"checkCanFocusTrap");S||v(),i.active=!0,i.paused=!1,i.nodeFocusedBeforeActivation=s.activeElement,d==null||d();var E=function(){S&&v(),U(),K(),m==null||m()};return S?(S(i.containers.concat()).then(E,E),this):(E(),this)},deactivate:function(u){if(!i.active)return this;var d=ot({onDeactivate:r.onDeactivate,onPostDeactivate:r.onPostDeactivate,checkCanReturnFocus:r.checkCanReturnFocus},u);clearTimeout(i.delayInitialFocusTimer),i.delayInitialFocusTimer=void 0,q(),i.active=!1,i.paused=!1,K(),ct.deactivateTrap(n,o);var m=c(d,"onDeactivate"),S=c(d,"onPostDeactivate"),E=c(d,"checkCanReturnFocus"),k=c(d,"returnFocus","returnFocusOnDeactivate");m==null||m();var F=function(){lt(function(){k&&w(b(i.nodeFocusedBeforeActivation)),S==null||S()})};return k&&E?(E(b(i.nodeFocusedBeforeActivation)).then(F,F),this):(F(),this)},pause:function(u){if(i.paused||!i.active)return this;var d=c(u,"onPause"),m=c(u,"onPostPause");return i.paused=!0,d==null||d(),q(),K(),m==null||m(),this},unpause:function(u){if(!i.paused||!i.active)return this;var d=c(u,"onUnpause"),m=c(u,"onPostUnpause");return i.paused=!1,d==null||d(),v(),U(),K(),m==null||m(),this},updateContainerElements:function(u){var d=[].concat(u).filter(Boolean);return i.containers=d.map(function(m){return typeof m=="string"?s.querySelector(m):m}),i.active&&v(),K(),this}},o.updateContainerElements(e),o};function Rs(a,e={}){let t;const{immediate:s,...n}=e,r=ne(!1),i=ne(!1),o=f=>t&&t.activate(f),c=f=>t&&t.deactivate(f),l=()=>{t&&(t.pause(),i.value=!0)},h=()=>{t&&(t.unpause(),i.value=!1)};return Ve(()=>Rt(a),f=>{f&&(t=Os(f,{...n,onActivate(){r.value=!0,e.onActivate&&e.onActivate()},onDeactivate(){r.value=!1,e.onDeactivate&&e.onDeactivate()}}),s&&o())},{flush:"post"}),Ct(()=>c()),{hasFocus:r,isPaused:i,activate:o,deactivate:c,pause:l,unpause:h}}class ce{constructor(e,t=!0,s=[],n=5e3){this.ctx=e,this.iframes=t,this.exclude=s,this.iframesTimeout=n}static matches(e,t){const s=typeof t=="string"?[t]:t,n=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(n){let r=!1;return s.every(i=>n.call(e,i)?(r=!0,!1):!0),r}else return!1}getContexts(){let e,t=[];return typeof this.ctx>"u"||!this.ctx?e=[]:NodeList.prototype.isPrototypeOf(this.ctx)?e=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?e=this.ctx:typeof this.ctx=="string"?e=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):e=[this.ctx],e.forEach(s=>{const n=t.filter(r=>r.contains(s)).length>0;t.indexOf(s)===-1&&!n&&t.push(s)}),t}getIframeContents(e,t,s=()=>{}){let n;try{const r=e.contentWindow;if(n=r.document,!r||!n)throw new Error("iframe inaccessible")}catch{s()}n&&t(n)}isIframeBlank(e){const t="about:blank",s=e.getAttribute("src").trim();return e.contentWindow.location.href===t&&s!==t&&s}observeIframeLoad(e,t,s){let n=!1,r=null;const i=()=>{if(!n){n=!0,clearTimeout(r);try{this.isIframeBlank(e)||(e.removeEventListener("load",i),this.getIframeContents(e,t,s))}catch{s()}}};e.addEventListener("load",i),r=setTimeout(i,this.iframesTimeout)}onIframeReady(e,t,s){try{e.contentWindow.document.readyState==="complete"?this.isIframeBlank(e)?this.observeIframeLoad(e,t,s):this.getIframeContents(e,t,s):this.observeIframeLoad(e,t,s)}catch{s()}}waitForIframes(e,t){let s=0;this.forEachIframe(e,()=>!0,n=>{s++,this.waitForIframes(n.querySelector("html"),()=>{--s||t()})},n=>{n||t()})}forEachIframe(e,t,s,n=()=>{}){let r=e.querySelectorAll("iframe"),i=r.length,o=0;r=Array.prototype.slice.call(r);const c=()=>{--i<=0&&n(o)};i||c(),r.forEach(l=>{ce.matches(l,this.exclude)?c():this.onIframeReady(l,h=>{t(l)&&(o++,s(h)),c()},c)})}createIterator(e,t,s){return document.createNodeIterator(e,t,s,!1)}createInstanceOnIframe(e){return new ce(e.querySelector("html"),this.iframes)}compareNodeIframe(e,t,s){const n=e.compareDocumentPosition(s),r=Node.DOCUMENT_POSITION_PRECEDING;if(n&r)if(t!==null){const i=t.compareDocumentPosition(s),o=Node.DOCUMENT_POSITION_FOLLOWING;if(i&o)return!0}else return!0;return!1}getIteratorNode(e){const t=e.previousNode();let s;return t===null?s=e.nextNode():s=e.nextNode()&&e.nextNode(),{prevNode:t,node:s}}checkIframeFilter(e,t,s,n){let r=!1,i=!1;return n.forEach((o,c)=>{o.val===s&&(r=c,i=o.handled)}),this.compareNodeIframe(e,t,s)?(r===!1&&!i?n.push({val:s,handled:!0}):r!==!1&&!i&&(n[r].handled=!0),!0):(r===!1&&n.push({val:s,handled:!1}),!1)}handleOpenIframes(e,t,s,n){e.forEach(r=>{r.handled||this.getIframeContents(r.val,i=>{this.createInstanceOnIframe(i).forEachNode(t,s,n)})})}iterateThroughNodes(e,t,s,n,r){const i=this.createIterator(t,e,n);let o=[],c=[],l,h,f=()=>({prevNode:h,node:l}=this.getIteratorNode(i),l);for(;f();)this.iframes&&this.forEachIframe(t,v=>this.checkIframeFilter(l,h,v,o),v=>{this.createInstanceOnIframe(v).forEachNode(e,y=>c.push(y),n)}),c.push(l);c.forEach(v=>{s(v)}),this.iframes&&this.handleOpenIframes(o,e,s,n),r()}forEachNode(e,t,s,n=()=>{}){const r=this.getContexts();let i=r.length;i||n(),r.forEach(o=>{const c=()=>{this.iterateThroughNodes(e,o,t,s,()=>{--i<=0&&n()})};this.iframes?this.waitForIframes(o,c):c()})}}let Cs=class{constructor(e){this.ctx=e,this.ie=!1;const t=window.navigator.userAgent;(t.indexOf("MSIE")>-1||t.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(e){this._opt=Object.assign({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:()=>{},noMatch:()=>{},filter:()=>!0,done:()=>{},debug:!1,log:window.console},e)}get opt(){return this._opt}get iterator(){return new ce(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(e,t="debug"){const s=this.opt.log;this.opt.debug&&typeof s=="object"&&typeof s[t]=="function"&&s[t](`mark.js: ${e}`)}escapeStr(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(e){return this.opt.wildcards!=="disabled"&&(e=this.setupWildcardsRegExp(e)),e=this.escapeStr(e),Object.keys(this.opt.synonyms).length&&(e=this.createSynonymsRegExp(e)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),this.opt.diacritics&&(e=this.createDiacriticsRegExp(e)),e=this.createMergedBlanksRegExp(e),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.createJoinersRegExp(e)),this.opt.wildcards!=="disabled"&&(e=this.createWildcardsRegExp(e)),e=this.createAccuracyRegExp(e),e}createSynonymsRegExp(e){const t=this.opt.synonyms,s=this.opt.caseSensitive?"":"i",n=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let r in t)if(t.hasOwnProperty(r)){const i=t[r],o=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(r):this.escapeStr(r),c=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(i):this.escapeStr(i);o!==""&&c!==""&&(e=e.replace(new RegExp(`(${this.escapeStr(o)}|${this.escapeStr(c)})`,`gm${s}`),n+`(${this.processSynomyms(o)}|${this.processSynomyms(c)})`+n))}return e}processSynomyms(e){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),e}setupWildcardsRegExp(e){return e=e.replace(/(?:\\)*\?/g,t=>t.charAt(0)==="\\"?"?":""),e.replace(/(?:\\)*\*/g,t=>t.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(e){let t=this.opt.wildcards==="withSpaces";return e.replace(/\u0001/g,t?"[\\S\\s]?":"\\S?").replace(/\u0002/g,t?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(e){return e.replace(/[^(|)\\]/g,(t,s,n)=>{let r=n.charAt(s+1);return/[(|)\\]/.test(r)||r===""?t:t+"\0"})}createJoinersRegExp(e){let t=[];const s=this.opt.ignorePunctuation;return Array.isArray(s)&&s.length&&t.push(this.escapeStr(s.join(""))),this.opt.ignoreJoiners&&t.push("\\u00ad\\u200b\\u200c\\u200d"),t.length?e.split(/\u0000+/).join(`[${t.join("")}]*`):e}createDiacriticsRegExp(e){const t=this.opt.caseSensitive?"":"i",s=this.opt.caseSensitive?["aàáảãạăằắẳẵặâầấẩẫậäåāą","AÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćč","CÇĆČ","dđď","DĐĎ","eèéẻẽẹêềếểễệëěēę","EÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïī","IÌÍỈĨỊÎÏĪ","lł","LŁ","nñňń","NÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøō","OÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rř","RŘ","sšśșş","SŠŚȘŞ","tťțţ","TŤȚŢ","uùúủũụưừứửữựûüůū","UÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿ","YÝỲỶỸỴŸ","zžżź","ZŽŻŹ"]:["aàáảãạăằắẳẵặâầấẩẫậäåāąAÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćčCÇĆČ","dđďDĐĎ","eèéẻẽẹêềếểễệëěēęEÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïīIÌÍỈĨỊÎÏĪ","lłLŁ","nñňńNÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøōOÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rřRŘ","sšśșşSŠŚȘŞ","tťțţTŤȚŢ","uùúủũụưừứửữựûüůūUÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿYÝỲỶỸỴŸ","zžżźZŽŻŹ"];let n=[];return e.split("").forEach(r=>{s.every(i=>{if(i.indexOf(r)!==-1){if(n.indexOf(i)>-1)return!1;e=e.replace(new RegExp(`[${i}]`,`gm${t}`),`[${i}]`),n.push(i)}return!0})}),e}createMergedBlanksRegExp(e){return e.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(e){const t="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~¡¿";let s=this.opt.accuracy,n=typeof s=="string"?s:s.value,r=typeof s=="string"?[]:s.limiters,i="";switch(r.forEach(o=>{i+=`|${this.escapeStr(o)}`}),n){case"partially":default:return`()(${e})`;case"complementary":return i="\\s"+(i||this.escapeStr(t)),`()([^${i}]*${e}[^${i}]*)`;case"exactly":return`(^|\\s${i})(${e})(?=$|\\s${i})`}}getSeparatedKeywords(e){let t=[];return e.forEach(s=>{this.opt.separateWordSearch?s.split(" ").forEach(n=>{n.trim()&&t.indexOf(n)===-1&&t.push(n)}):s.trim()&&t.indexOf(s)===-1&&t.push(s)}),{keywords:t.sort((s,n)=>n.length-s.length),length:t.length}}isNumeric(e){return Number(parseFloat(e))==e}checkRanges(e){if(!Array.isArray(e)||Object.prototype.toString.call(e[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(e),[];const t=[];let s=0;return e.sort((n,r)=>n.start-r.start).forEach(n=>{let{start:r,end:i,valid:o}=this.callNoMatchOnInvalidRanges(n,s);o&&(n.start=r,n.length=i-r,t.push(n),s=i)}),t}callNoMatchOnInvalidRanges(e,t){let s,n,r=!1;return e&&typeof e.start<"u"?(s=parseInt(e.start,10),n=s+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&n-t>0&&n-s>0?r=!0:(this.log(`Ignoring invalid or overlapping range: ${JSON.stringify(e)}`),this.opt.noMatch(e))):(this.log(`Ignoring invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)),{start:s,end:n,valid:r}}checkWhitespaceRanges(e,t,s){let n,r=!0,i=s.length,o=t-i,c=parseInt(e.start,10)-o;return c=c>i?i:c,n=c+parseInt(e.length,10),n>i&&(n=i,this.log(`End range automatically set to the max value of ${i}`)),c<0||n-c<0||c>i||n>i?(r=!1,this.log(`Invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)):s.substring(c,n).replace(/\s+/g,"")===""&&(r=!1,this.log("Skipping whitespace only range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:c,end:n,valid:r}}getTextNodes(e){let t="",s=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,n=>{s.push({start:t.length,end:(t+=n.textContent).length,node:n})},n=>this.matchesExclude(n.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{e({value:t,nodes:s})})}matchesExclude(e){return ce.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(e,t,s){const n=this.opt.element?this.opt.element:"mark",r=e.splitText(t),i=r.splitText(s-t);let o=document.createElement(n);return o.setAttribute("data-markjs","true"),this.opt.className&&o.setAttribute("class",this.opt.className),o.textContent=r.textContent,r.parentNode.replaceChild(o,r),i}wrapRangeInMappedTextNode(e,t,s,n,r){e.nodes.every((i,o)=>{const c=e.nodes[o+1];if(typeof c>"u"||c.start>t){if(!n(i.node))return!1;const l=t-i.start,h=(s>i.end?i.end:s)-i.start,f=e.value.substr(0,i.start),v=e.value.substr(h+i.start);if(i.node=this.wrapRangeInTextNode(i.node,l,h),e.value=f+v,e.nodes.forEach((y,w)=>{w>=o&&(e.nodes[w].start>0&&w!==o&&(e.nodes[w].start-=h),e.nodes[w].end-=h)}),s-=h,r(i.node.previousSibling,i.start),s>i.end)t=i.end;else return!1}return!0})}wrapMatches(e,t,s,n,r){const i=t===0?0:t+1;this.getTextNodes(o=>{o.nodes.forEach(c=>{c=c.node;let l;for(;(l=e.exec(c.textContent))!==null&&l[i]!=="";){if(!s(l[i],c))continue;let h=l.index;if(i!==0)for(let f=1;f<i;f++)h+=l[f].length;c=this.wrapRangeInTextNode(c,h,h+l[i].length),n(c.previousSibling),e.lastIndex=0}}),r()})}wrapMatchesAcrossElements(e,t,s,n,r){const i=t===0?0:t+1;this.getTextNodes(o=>{let c;for(;(c=e.exec(o.value))!==null&&c[i]!=="";){let l=c.index;if(i!==0)for(let f=1;f<i;f++)l+=c[f].length;const h=l+c[i].length;this.wrapRangeInMappedTextNode(o,l,h,f=>s(c[i],f),(f,v)=>{e.lastIndex=v,n(f)})}r()})}wrapRangeFromIndex(e,t,s,n){this.getTextNodes(r=>{const i=r.value.length;e.forEach((o,c)=>{let{start:l,end:h,valid:f}=this.checkWhitespaceRanges(o,i,r.value);f&&this.wrapRangeInMappedTextNode(r,l,h,v=>t(v,o,r.value.substring(l,h),c),v=>{s(v,o)})}),n()})}unwrapMatches(e){const t=e.parentNode;let s=document.createDocumentFragment();for(;e.firstChild;)s.appendChild(e.removeChild(e.firstChild));t.replaceChild(s,e),this.ie?this.normalizeTextNode(t):t.normalize()}normalizeTextNode(e){if(e){if(e.nodeType===3)for(;e.nextSibling&&e.nextSibling.nodeType===3;)e.nodeValue+=e.nextSibling.nodeValue,e.parentNode.removeChild(e.nextSibling);else this.normalizeTextNode(e.firstChild);this.normalizeTextNode(e.nextSibling)}}markRegExp(e,t){this.opt=t,this.log(`Searching with expression "${e}"`);let s=0,n="wrapMatches";const r=i=>{s++,this.opt.each(i)};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),this[n](e,this.opt.ignoreGroups,(i,o)=>this.opt.filter(o,i,s),r,()=>{s===0&&this.opt.noMatch(e),this.opt.done(s)})}mark(e,t){this.opt=t;let s=0,n="wrapMatches";const{keywords:r,length:i}=this.getSeparatedKeywords(typeof e=="string"?[e]:e),o=this.opt.caseSensitive?"":"i",c=l=>{let h=new RegExp(this.createRegExp(l),`gm${o}`),f=0;this.log(`Searching with expression "${h}"`),this[n](h,1,(v,y)=>this.opt.filter(y,l,s,f),v=>{f++,s++,this.opt.each(v)},()=>{f===0&&this.opt.noMatch(l),r[i-1]===l?this.opt.done(s):c(r[r.indexOf(l)+1])})};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),i===0?this.opt.done(s):c(r[0])}markRanges(e,t){this.opt=t;let s=0,n=this.checkRanges(e);n&&n.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(n)),this.wrapRangeFromIndex(n,(r,i,o,c)=>this.opt.filter(r,i,o,c),(r,i)=>{s++,this.opt.each(r,i)},()=>{this.opt.done(s)})):this.opt.done(s)}unmark(e){this.opt=e;let t=this.opt.element?this.opt.element:"*";t+="[data-markjs]",this.opt.className&&(t+=`.${this.opt.className}`),this.log(`Removal selector "${t}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,s=>{this.unwrapMatches(s)},s=>{const n=ce.matches(s,t),r=this.matchesExclude(s);return!n||r?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function Ms(a){const e=new Cs(a);return this.mark=(t,s)=>(e.mark(t,s),this),this.markRegExp=(t,s)=>(e.markRegExp(t,s),this),this.markRanges=(t,s)=>(e.markRanges(t,s),this),this.unmark=t=>(e.unmark(t),this),this}function Ie(a,e,t,s){function n(r){return r instanceof t?r:new t(function(i){i(r)})}return new(t||(t=Promise))(function(r,i){function o(h){try{l(s.next(h))}catch(f){i(f)}}function c(h){try{l(s.throw(h))}catch(f){i(f)}}function l(h){h.done?r(h.value):n(h.value).then(o,c)}l((s=s.apply(a,e||[])).next())})}const As="ENTRIES",_t="KEYS",xt="VALUES",z="";class Le{constructor(e,t){const s=e._tree,n=Array.from(s.keys());this.set=e,this._type=t,this._path=n.length>0?[{node:s,keys:n}]:[]}next(){const e=this.dive();return this.backtrack(),e}dive(){if(this._path.length===0)return{done:!0,value:void 0};const{node:e,keys:t}=oe(this._path);if(oe(t)===z)return{done:!1,value:this.result()};const s=e.get(oe(t));return this._path.push({node:s,keys:Array.from(s.keys())}),this.dive()}backtrack(){if(this._path.length===0)return;const e=oe(this._path).keys;e.pop(),!(e.length>0)&&(this._path.pop(),this.backtrack())}key(){return this.set._prefix+this._path.map(({keys:e})=>oe(e)).filter(e=>e!==z).join("")}value(){return oe(this._path).node.get(z)}result(){switch(this._type){case xt:return this.value();case _t:return this.key();default:return[this.key(),this.value()]}}[Symbol.iterator](){return this}}const oe=a=>a[a.length-1],Ls=(a,e,t)=>{const s=new Map;if(e===void 0)return s;const n=e.length+1,r=n+t,i=new Uint8Array(r*n).fill(t+1);for(let o=0;o<n;++o)i[o]=o;for(let o=1;o<r;++o)i[o*n]=o;return St(a,e,t,s,i,1,n,""),s},St=(a,e,t,s,n,r,i,o)=>{const c=r*i;e:for(const l of a.keys())if(l===z){const h=n[c-1];h<=t&&s.set(o,[a.get(l),h])}else{let h=r;for(let f=0;f<l.length;++f,++h){const v=l[f],y=i*h,w=y-i;let b=n[y];const x=Math.max(0,h-t-1),C=Math.min(i-1,h+t);for(let R=x;R<C;++R){const W=v!==e[R],J=n[w+R]+ +W,V=n[w+R+1]+1,U=n[y+R]+1,q=n[y+R+1]=Math.min(J,V,U);q<b&&(b=q)}if(b>t)continue e}St(a.get(l),e,t,s,n,h,i,o+l)}};class X{constructor(e=new Map,t=""){this._size=void 0,this._tree=e,this._prefix=t}atPrefix(e){if(!e.startsWith(this._prefix))throw new Error("Mismatched prefix");const[t,s]=Oe(this._tree,e.slice(this._prefix.length));if(t===void 0){const[n,r]=Je(s);for(const i of n.keys())if(i!==z&&i.startsWith(r)){const o=new Map;return o.set(i.slice(r.length),n.get(i)),new X(o,e)}}return new X(t,e)}clear(){this._size=void 0,this._tree.clear()}delete(e){return this._size=void 0,Ds(this._tree,e)}entries(){return new Le(this,As)}forEach(e){for(const[t,s]of this)e(t,s,this)}fuzzyGet(e,t){return Ls(this._tree,e,t)}get(e){const t=Be(this._tree,e);return t!==void 0?t.get(z):void 0}has(e){const t=Be(this._tree,e);return t!==void 0&&t.has(z)}keys(){return new Le(this,_t)}set(e,t){if(typeof e!="string")throw new Error("key must be a string");return this._size=void 0,De(this._tree,e).set(z,t),this}get size(){if(this._size)return this._size;this._size=0;const e=this.entries();for(;!e.next().done;)this._size+=1;return this._size}update(e,t){if(typeof e!="string")throw new Error("key must be a string");this._size=void 0;const s=De(this._tree,e);return s.set(z,t(s.get(z))),this}fetch(e,t){if(typeof e!="string")throw new Error("key must be a string");this._size=void 0;const s=De(this._tree,e);let n=s.get(z);return n===void 0&&s.set(z,n=t()),n}values(){return new Le(this,xt)}[Symbol.iterator](){return this.entries()}static from(e){const t=new X;for(const[s,n]of e)t.set(s,n);return t}static fromObject(e){return X.from(Object.entries(e))}}const Oe=(a,e,t=[])=>{if(e.length===0||a==null)return[a,t];for(const s of a.keys())if(s!==z&&e.startsWith(s))return t.push([a,s]),Oe(a.get(s),e.slice(s.length),t);return t.push([a,e]),Oe(void 0,"",t)},Be=(a,e)=>{if(e.length===0||a==null)return a;for(const t of a.keys())if(t!==z&&e.startsWith(t))return Be(a.get(t),e.slice(t.length))},De=(a,e)=>{const t=e.length;e:for(let s=0;a&&s<t;){for(const r of a.keys())if(r!==z&&e[s]===r[0]){const i=Math.min(t-s,r.length);let o=1;for(;o<i&&e[s+o]===r[o];)++o;const c=a.get(r);if(o===r.length)a=c;else{const l=new Map;l.set(r.slice(o),c),a.set(e.slice(s,s+o),l),a.delete(r),a=l}s+=o;continue e}const n=new Map;return a.set(e.slice(s),n),n}return a},Ds=(a,e)=>{const[t,s]=Oe(a,e);if(t!==void 0){if(t.delete(z),t.size===0)Et(s);else if(t.size===1){const[n,r]=t.entries().next().value;It(s,n,r)}}},Et=a=>{if(a.length===0)return;const[e,t]=Je(a);if(e.delete(t),e.size===0)Et(a.slice(0,-1));else if(e.size===1){const[s,n]=e.entries().next().value;s!==z&&It(a.slice(0,-1),s,n)}},It=(a,e,t)=>{if(a.length===0)return;const[s,n]=Je(a);s.set(n+e,t),s.delete(n)},Je=a=>a[a.length-1],Ue="or",Tt="and",zs="and_not";class le{constructor(e){if((e==null?void 0:e.fields)==null)throw new Error('MiniSearch: option "fields" must be provided');const t=e.autoVacuum==null||e.autoVacuum===!0?je:e.autoVacuum;this._options=Object.assign(Object.assign(Object.assign({},Pe),e),{autoVacuum:t,searchOptions:Object.assign(Object.assign({},dt),e.searchOptions||{}),autoSuggestOptions:Object.assign(Object.assign({},Bs),e.autoSuggestOptions||{})}),this._index=new X,this._documentCount=0,this._documentIds=new Map,this._idToShortId=new Map,this._fieldIds={},this._fieldLength=new Map,this._avgFieldLength=[],this._nextId=0,this._storedFields=new Map,this._dirtCount=0,this._currentVacuum=null,this._enqueuedVacuum=null,this._enqueuedVacuumConditions=Ke,this.addFields(this._options.fields)}add(e){const{extractField:t,tokenize:s,processTerm:n,fields:r,idField:i}=this._options,o=t(e,i);if(o==null)throw new Error(`MiniSearch: document does not have ID field "${i}"`);if(this._idToShortId.has(o))throw new Error(`MiniSearch: duplicate ID ${o}`);const c=this.addDocumentId(o);this.saveStoredFields(c,e);for(const l of r){const h=t(e,l);if(h==null)continue;const f=s(h.toString(),l),v=this._fieldIds[l],y=new Set(f).size;this.addFieldLength(c,v,this._documentCount-1,y);for(const w of f){const b=n(w,l);if(Array.isArray(b))for(const x of b)this.addTerm(v,c,x);else b&&this.addTerm(v,c,b)}}}addAll(e){for(const t of e)this.add(t)}addAllAsync(e,t={}){const{chunkSize:s=10}=t,n={chunk:[],promise:Promise.resolve()},{chunk:r,promise:i}=e.reduce(({chunk:o,promise:c},l,h)=>(o.push(l),(h+1)%s===0?{chunk:[],promise:c.then(()=>new Promise(f=>setTimeout(f,0))).then(()=>this.addAll(o))}:{chunk:o,promise:c}),n);return i.then(()=>this.addAll(r))}remove(e){const{tokenize:t,processTerm:s,extractField:n,fields:r,idField:i}=this._options,o=n(e,i);if(o==null)throw new Error(`MiniSearch: document does not have ID field "${i}"`);const c=this._idToShortId.get(o);if(c==null)throw new Error(`MiniSearch: cannot remove document with ID ${o}: it is not in the index`);for(const l of r){const h=n(e,l);if(h==null)continue;const f=t(h.toString(),l),v=this._fieldIds[l],y=new Set(f).size;this.removeFieldLength(c,v,this._documentCount,y);for(const w of f){const b=s(w,l);if(Array.isArray(b))for(const x of b)this.removeTerm(v,c,x);else b&&this.removeTerm(v,c,b)}}this._storedFields.delete(c),this._documentIds.delete(c),this._idToShortId.delete(o),this._fieldLength.delete(c),this._documentCount-=1}removeAll(e){if(e)for(const t of e)this.remove(t);else{if(arguments.length>0)throw new Error("Expected documents to be present. Omit the argument to remove all documents.");this._index=new X,this._documentCount=0,this._documentIds=new Map,this._idToShortId=new Map,this._fieldLength=new Map,this._avgFieldLength=[],this._storedFields=new Map,this._nextId=0}}discard(e){const t=this._idToShortId.get(e);if(t==null)throw new Error(`MiniSearch: cannot discard document with ID ${e}: it is not in the index`);this._idToShortId.delete(e),this._documentIds.delete(t),this._storedFields.delete(t),(this._fieldLength.get(t)||[]).forEach((s,n)=>{this.removeFieldLength(t,n,this._documentCount,s)}),this._fieldLength.delete(t),this._documentCount-=1,this._dirtCount+=1,this.maybeAutoVacuum()}maybeAutoVacuum(){if(this._options.autoVacuum===!1)return;const{minDirtFactor:e,minDirtCount:t,batchSize:s,batchWait:n}=this._options.autoVacuum;this.conditionalVacuum({batchSize:s,batchWait:n},{minDirtCount:t,minDirtFactor:e})}discardAll(e){const t=this._options.autoVacuum;try{this._options.autoVacuum=!1;for(const s of e)this.discard(s)}finally{this._options.autoVacuum=t}this.maybeAutoVacuum()}replace(e){const{idField:t,extractField:s}=this._options,n=s(e,t);this.discard(n),this.add(e)}vacuum(e={}){return this.conditionalVacuum(e)}conditionalVacuum(e,t){return this._currentVacuum?(this._enqueuedVacuumConditions=this._enqueuedVacuumConditions&&t,this._enqueuedVacuum!=null?this._enqueuedVacuum:(this._enqueuedVacuum=this._currentVacuum.then(()=>{const s=this._enqueuedVacuumConditions;return this._enqueuedVacuumConditions=Ke,this.performVacuuming(e,s)}),this._enqueuedVacuum)):this.vacuumConditionsMet(t)===!1?Promise.resolve():(this._currentVacuum=this.performVacuuming(e),this._currentVacuum)}performVacuuming(e,t){return Ie(this,void 0,void 0,function*(){const s=this._dirtCount;if(this.vacuumConditionsMet(t)){const n=e.batchSize||We.batchSize,r=e.batchWait||We.batchWait;let i=1;for(const[o,c]of this._index){for(const[l,h]of c)for(const[f]of h)this._documentIds.has(f)||(h.size<=1?c.delete(l):h.delete(f));this._index.get(o).size===0&&this._index.delete(o),i%n===0&&(yield new Promise(l=>setTimeout(l,r))),i+=1}this._dirtCount-=s}yield null,this._currentVacuum=this._enqueuedVacuum,this._enqueuedVacuum=null})}vacuumConditionsMet(e){if(e==null)return!0;let{minDirtCount:t,minDirtFactor:s}=e;return t=t||je.minDirtCount,s=s||je.minDirtFactor,this.dirtCount>=t&&this.dirtFactor>=s}get isVacuuming(){return this._currentVacuum!=null}get dirtCount(){return this._dirtCount}get dirtFactor(){return this._dirtCount/(1+this._documentCount+this._dirtCount)}has(e){return this._idToShortId.has(e)}getStoredFields(e){const t=this._idToShortId.get(e);if(t!=null)return this._storedFields.get(t)}search(e,t={}){const s=this.executeQuery(e,t),n=[];for(const[r,{score:i,terms:o,match:c}]of s){const l=o.length||1,h={id:this._documentIds.get(r),score:i*l,terms:Object.keys(c),queryTerms:o,match:c};Object.assign(h,this._storedFields.get(r)),(t.filter==null||t.filter(h))&&n.push(h)}return e===le.wildcard&&t.boostDocument==null&&this._options.searchOptions.boostDocument==null||n.sort(ft),n}autoSuggest(e,t={}){t=Object.assign(Object.assign({},this._options.autoSuggestOptions),t);const s=new Map;for(const{score:r,terms:i}of this.search(e,t)){const o=i.join(" "),c=s.get(o);c!=null?(c.score+=r,c.count+=1):s.set(o,{score:r,terms:i,count:1})}const n=[];for(const[r,{score:i,terms:o,count:c}]of s)n.push({suggestion:r,terms:o,score:i/c});return n.sort(ft),n}get documentCount(){return this._documentCount}get termCount(){return this._index.size}static loadJSON(e,t){if(t==null)throw new Error("MiniSearch: loadJSON should be given the same options used when serializing the index");return this.loadJS(JSON.parse(e),t)}static loadJSONAsync(e,t){return Ie(this,void 0,void 0,function*(){if(t==null)throw new Error("MiniSearch: loadJSON should be given the same options used when serializing the index");return this.loadJSAsync(JSON.parse(e),t)})}static getDefault(e){if(Pe.hasOwnProperty(e))return ze(Pe,e);throw new Error(`MiniSearch: unknown option "${e}"`)}static loadJS(e,t){const{index:s,documentIds:n,fieldLength:r,storedFields:i,serializationVersion:o}=e,c=this.instantiateMiniSearch(e,t);c._documentIds=Se(n),c._fieldLength=Se(r),c._storedFields=Se(i);for(const[l,h]of c._documentIds)c._idToShortId.set(h,l);for(const[l,h]of s){const f=new Map;for(const v of Object.keys(h)){let y=h[v];o===1&&(y=y.ds),f.set(parseInt(v,10),Se(y))}c._index.set(l,f)}return c}static loadJSAsync(e,t){return Ie(this,void 0,void 0,function*(){const{index:s,documentIds:n,fieldLength:r,storedFields:i,serializationVersion:o}=e,c=this.instantiateMiniSearch(e,t);c._documentIds=yield Ee(n),c._fieldLength=yield Ee(r),c._storedFields=yield Ee(i);for(const[h,f]of c._documentIds)c._idToShortId.set(f,h);let l=0;for(const[h,f]of s){const v=new Map;for(const y of Object.keys(f)){let w=f[y];o===1&&(w=w.ds),v.set(parseInt(y,10),yield Ee(w))}++l%1e3===0&&(yield Nt(0)),c._index.set(h,v)}return c})}static instantiateMiniSearch(e,t){const{documentCount:s,nextId:n,fieldIds:r,averageFieldLength:i,dirtCount:o,serializationVersion:c}=e;if(c!==1&&c!==2)throw new Error("MiniSearch: cannot deserialize an index created with an incompatible version");const l=new le(t);return l._documentCount=s,l._nextId=n,l._idToShortId=new Map,l._fieldIds=r,l._avgFieldLength=i,l._dirtCount=o||0,l._index=new X,l}executeQuery(e,t={}){if(e===le.wildcard)return this.executeWildcardQuery(t);if(typeof e!="string"){const v=Object.assign(Object.assign(Object.assign({},t),e),{queries:void 0}),y=e.queries.map(w=>this.executeQuery(w,v));return this.combineResults(y,v.combineWith)}const{tokenize:s,processTerm:n,searchOptions:r}=this._options,i=Object.assign(Object.assign({tokenize:s,processTerm:n},r),t),{tokenize:o,processTerm:c}=i,f=o(e).flatMap(v=>c(v)).filter(v=>!!v).map($s(i)).map(v=>this.executeQuerySpec(v,i));return this.combineResults(f,i.combineWith)}executeQuerySpec(e,t){const s=Object.assign(Object.assign({},this._options.searchOptions),t),n=(s.fields||this._options.fields).reduce((b,x)=>Object.assign(Object.assign({},b),{[x]:ze(s.boost,x)||1}),{}),{boostDocument:r,weights:i,maxFuzzy:o,bm25:c}=s,{fuzzy:l,prefix:h}=Object.assign(Object.assign({},dt.weights),i),f=this._index.get(e.term),v=this.termResults(e.term,e.term,1,f,n,r,c);let y,w;if(e.prefix&&(y=this._index.atPrefix(e.term)),e.fuzzy){const b=e.fuzzy===!0?.2:e.fuzzy,x=b<1?Math.min(o,Math.round(e.term.length*b)):b;x&&(w=this._index.fuzzyGet(e.term,x))}if(y)for(const[b,x]of y){const C=b.length-e.term.length;if(!C)continue;w==null||w.delete(b);const R=h*b.length/(b.length+.3*C);this.termResults(e.term,b,R,x,n,r,c,v)}if(w)for(const b of w.keys()){const[x,C]=w.get(b);if(!C)continue;const R=l*b.length/(b.length+C);this.termResults(e.term,b,R,x,n,r,c,v)}return v}executeWildcardQuery(e){const t=new Map,s=Object.assign(Object.assign({},this._options.searchOptions),e);for(const[n,r]of this._documentIds){const i=s.boostDocument?s.boostDocument(r,"",this._storedFields.get(n)):1;t.set(n,{score:i,terms:[],match:{}})}return t}combineResults(e,t=Ue){if(e.length===0)return new Map;const s=t.toLowerCase(),n=Ps[s];if(!n)throw new Error(`Invalid combination operator: ${t}`);return e.reduce(n)||new Map}toJSON(){const e=[];for(const[t,s]of this._index){const n={};for(const[r,i]of s)n[r]=Object.fromEntries(i);e.push([t,n])}return{documentCount:this._documentCount,nextId:this._nextId,documentIds:Object.fromEntries(this._documentIds),fieldIds:this._fieldIds,fieldLength:Object.fromEntries(this._fieldLength),averageFieldLength:this._avgFieldLength,storedFields:Object.fromEntries(this._storedFields),dirtCount:this._dirtCount,index:e,serializationVersion:2}}termResults(e,t,s,n,r,i,o,c=new Map){if(n==null)return c;for(const l of Object.keys(r)){const h=r[l],f=this._fieldIds[l],v=n.get(f);if(v==null)continue;let y=v.size;const w=this._avgFieldLength[f];for(const b of v.keys()){if(!this._documentIds.has(b)){this.removeTerm(f,b,t),y-=1;continue}const x=i?i(this._documentIds.get(b),t,this._storedFields.get(b)):1;if(!x)continue;const C=v.get(b),R=this._fieldLength.get(b)[f],W=Vs(C,y,this._documentCount,R,w,o),J=s*h*x*W,V=c.get(b);if(V){V.score+=J,Ws(V.terms,e);const U=ze(V.match,t);U?U.push(l):V.match[t]=[l]}else c.set(b,{score:J,terms:[e],match:{[t]:[l]}})}}return c}addTerm(e,t,s){const n=this._index.fetch(s,pt);let r=n.get(e);if(r==null)r=new Map,r.set(t,1),n.set(e,r);else{const i=r.get(t);r.set(t,(i||0)+1)}}removeTerm(e,t,s){if(!this._index.has(s)){this.warnDocumentChanged(t,e,s);return}const n=this._index.fetch(s,pt),r=n.get(e);r==null||r.get(t)==null?this.warnDocumentChanged(t,e,s):r.get(t)<=1?r.size<=1?n.delete(e):r.delete(t):r.set(t,r.get(t)-1),this._index.get(s).size===0&&this._index.delete(s)}warnDocumentChanged(e,t,s){for(const n of Object.keys(this._fieldIds))if(this._fieldIds[n]===t){this._options.logger("warn",`MiniSearch: document with ID ${this._documentIds.get(e)} has changed before removal: term "${s}" was not present in field "${n}". Removing a document after it has changed can corrupt the index!`,"version_conflict");return}}addDocumentId(e){const t=this._nextId;return this._idToShortId.set(e,t),this._documentIds.set(t,e),this._documentCount+=1,this._nextId+=1,t}addFields(e){for(let t=0;t<e.length;t++)this._fieldIds[e[t]]=t}addFieldLength(e,t,s,n){let r=this._fieldLength.get(e);r==null&&this._fieldLength.set(e,r=[]),r[t]=n;const o=(this._avgFieldLength[t]||0)*s+n;this._avgFieldLength[t]=o/(s+1)}removeFieldLength(e,t,s,n){if(s===1){this._avgFieldLength[t]=0;return}const r=this._avgFieldLength[t]*s-n;this._avgFieldLength[t]=r/(s-1)}saveStoredFields(e,t){const{storeFields:s,extractField:n}=this._options;if(s==null||s.length===0)return;let r=this._storedFields.get(e);r==null&&this._storedFields.set(e,r={});for(const i of s){const o=n(t,i);o!==void 0&&(r[i]=o)}}}le.wildcard=Symbol("*");const ze=(a,e)=>Object.prototype.hasOwnProperty.call(a,e)?a[e]:void 0,Ps={[Ue]:(a,e)=>{for(const t of e.keys()){const s=a.get(t);if(s==null)a.set(t,e.get(t));else{const{score:n,terms:r,match:i}=e.get(t);s.score=s.score+n,s.match=Object.assign(s.match,i),ht(s.terms,r)}}return a},[Tt]:(a,e)=>{const t=new Map;for(const s of e.keys()){const n=a.get(s);if(n==null)continue;const{score:r,terms:i,match:o}=e.get(s);ht(n.terms,i),t.set(s,{score:n.score+r,terms:n.terms,match:Object.assign(n.match,o)})}return t},[zs]:(a,e)=>{for(const t of e.keys())a.delete(t);return a}},js={k:1.2,b:.7,d:.5},Vs=(a,e,t,s,n,r)=>{const{k:i,b:o,d:c}=r;return Math.log(1+(t-e+.5)/(e+.5))*(c+a*(i+1)/(a+i*(1-o+o*s/n)))},$s=a=>(e,t,s)=>{const n=typeof a.fuzzy=="function"?a.fuzzy(e,t,s):a.fuzzy||!1,r=typeof a.prefix=="function"?a.prefix(e,t,s):a.prefix===!0;return{term:e,fuzzy:n,prefix:r}},Pe={idField:"id",extractField:(a,e)=>a[e],tokenize:a=>a.split(Ks),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:Ue,prefix:!1,fuzzy:!1,maxFuzzy:6,boost:{},weights:{fuzzy:.45,prefix:.375},bm25:js},Bs={combineWith:Tt,prefix:(a,e,t)=>e===t.length-1},We={batchSize:1e3,batchWait:10},Ke={minDirtFactor:.1,minDirtCount:20},je=Object.assign(Object.assign({},We),Ke),Ws=(a,e)=>{a.includes(e)||a.push(e)},ht=(a,e)=>{for(const t of e)a.includes(t)||a.push(t)},ft=({score:a},{score:e})=>e-a,pt=()=>new Map,Se=a=>{const e=new Map;for(const t of Object.keys(a))e.set(parseInt(t,10),a[t]);return e},Ee=a=>Ie(void 0,void 0,void 0,function*(){const e=new Map;let t=0;for(const s of Object.keys(a))e.set(parseInt(s,10),a[s]),++t%1e3===0&&(yield Nt(0));return e}),Nt=a=>new Promise(e=>setTimeout(e,a)),Ks=/[\n\r\p{Z}\p{P}]/u;class Js{constructor(e=10){Ce(this,"max");Ce(this,"cache");this.max=e,this.cache=new Map}get(e){let t=this.cache.get(e);return t!==void 0&&(this.cache.delete(e),this.cache.set(e,t)),t}set(e,t){this.cache.has(e)?this.cache.delete(e):this.cache.size===this.max&&this.cache.delete(this.first()),this.cache.set(e,t)}first(){return this.cache.keys().next().value}clear(){this.cache.clear()}}const B=a=>(Ht("data-v-88ca8a16"),a=a(),Qt(),a),Us=["aria-owns"],qs={class:"shell"},Gs=["title"],Hs=B(()=>_("span",{"aria-hidden":"true",class:"vpi-search search-icon local-search-icon"},null,-1)),Qs=[Hs],Ys={class:"search-actions before"},Zs=["title"],Xs=B(()=>_("span",{class:"vpi-arrow-left local-search-icon"},null,-1)),en=[Xs],tn=["placeholder"],sn={class:"search-actions"},nn=["title"],rn=B(()=>_("span",{class:"vpi-layout-list local-search-icon"},null,-1)),an=[rn],on=["disabled","title"],cn=B(()=>_("span",{class:"vpi-delete local-search-icon"},null,-1)),ln=[cn],un=["id","role","aria-labelledby"],dn=["aria-selected"],hn=["href","aria-label","onMouseenter","onFocusin"],fn={class:"titles"},pn=B(()=>_("span",{class:"title-icon"},"#",-1)),vn=["innerHTML"],mn=B(()=>_("span",{class:"vpi-chevron-right local-search-icon"},null,-1)),gn={class:"title main"},bn=["innerHTML"],yn={key:0,class:"excerpt-wrapper"},wn={key:0,class:"excerpt",inert:""},_n=["innerHTML"],xn=B(()=>_("div",{class:"excerpt-gradient-bottom"},null,-1)),Sn=B(()=>_("div",{class:"excerpt-gradient-top"},null,-1)),En={key:0,class:"no-results"},In={class:"search-keyboard-shortcuts"},Tn=["aria-label"],Nn=B(()=>_("span",{class:"vpi-arrow-up navigate-icon"},null,-1)),kn=[Nn],Fn=["aria-label"],On=B(()=>_("span",{class:"vpi-arrow-down navigate-icon"},null,-1)),Rn=[On],Cn=["aria-label"],Mn=B(()=>_("span",{class:"vpi-corner-down-left navigate-icon"},null,-1)),An=[Mn],Ln=["aria-label"],Dn=Mt({__name:"VPLocalSearchBox",emits:["close"],setup(a,{emit:e}){var F,M;const t=e,s=be(),n=be(),r=be(is),i=ss(),{activate:o}=Rs(s,{immediate:!0,allowOutsideClick:!0,clickOutsideDeactivates:!0,escapeDeactivates:!0}),{localeIndex:c,theme:l}=i,h=et(async()=>{var p,g,N,O,P,j,T,L,G;return it(le.loadJSON((N=await((g=(p=r.value)[c.value])==null?void 0:g.call(p)))==null?void 0:N.default,{fields:["title","titles","text"],storeFields:["title","titles"],searchOptions:{fuzzy:.2,prefix:!0,boost:{title:4,text:2,titles:1},...((O=l.value.search)==null?void 0:O.provider)==="local"&&((j=(P=l.value.search.options)==null?void 0:P.miniSearch)==null?void 0:j.searchOptions)},...((T=l.value.search)==null?void 0:T.provider)==="local"&&((G=(L=l.value.search.options)==null?void 0:L.miniSearch)==null?void 0:G.options)}))}),v=ye(()=>{var p,g;return((p=l.value.search)==null?void 0:p.provider)==="local"&&((g=l.value.search.options)==null?void 0:g.disableQueryPersistence)===!0}).value?ne(""):At("vitepress:local-search-filter",""),y=Lt("vitepress:local-search-detailed-list",((F=l.value.search)==null?void 0:F.provider)==="local"&&((M=l.value.search.options)==null?void 0:M.detailedView)===!0),w=ye(()=>{var p,g,N;return((p=l.value.search)==null?void 0:p.provider)==="local"&&(((g=l.value.search.options)==null?void 0:g.disableDetailedView)===!0||((N=l.value.search.options)==null?void 0:N.detailedView)===!1)}),b=ye(()=>{var g,N,O,P,j,T,L;const p=((g=l.value.search)==null?void 0:g.options)??l.value.algolia;return((j=(P=(O=(N=p==null?void 0:p.locales)==null?void 0:N[c.value])==null?void 0:O.translations)==null?void 0:P.button)==null?void 0:j.buttonText)||((L=(T=p==null?void 0:p.translations)==null?void 0:T.button)==null?void 0:L.buttonText)||"Search"});Dt(()=>{w.value&&(y.value=!1)});const x=be([]),C=ne(!1);Ve(v,()=>{C.value=!1});const R=et(async()=>{if(n.value)return it(new Ms(n.value))},null),W=new Js(16);zt(()=>[h.value,v.value,y.value],async([p,g,N],O,P)=>{var me,qe,Ge,He;(O==null?void 0:O[0])!==p&&W.clear();let j=!1;if(P(()=>{j=!0}),!p)return;x.value=p.search(g).slice(0,16),C.value=!0;const T=N?await Promise.all(x.value.map($=>J($.id))):[];if(j)return;for(const{id:$,mod:ee}of T){const te=$.slice(0,$.indexOf("#"));let Y=W.get(te);if(Y)continue;Y=new Map,W.set(te,Y);const H=ee.default??ee;if(H!=null&&H.render||H!=null&&H.setup){const se=Yt(H);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(ue=>{var Xe;const ge=(Xe=ue.querySelector("a"))==null?void 0:Xe.getAttribute("href"),Ye=(ge==null?void 0:ge.startsWith("#"))&&ge.slice(1);if(!Ye)return;let Ze="";for(;(ue=ue.nextElementSibling)&&!/^h[1-6]$/i.test(ue.tagName);)Ze+=ue.outerHTML;Y.set(Ye,Ze)}),se.unmount()}if(j)return}const L=new Set;if(x.value=x.value.map($=>{const[ee,te]=$.id.split("#"),Y=W.get(ee),H=(Y==null?void 0:Y.get(te))??"";for(const se in $.match)L.add(se);return{...$,text:H}}),await de(),j)return;await new Promise($=>{var ee;(ee=R.value)==null||ee.unmark({done:()=>{var te;(te=R.value)==null||te.markRegExp(k(L),{done:$})}})});const G=((me=s.value)==null?void 0:me.querySelectorAll(".result .excerpt"))??[];for(const $ of G)(qe=$.querySelector('mark[data-markjs="true"]'))==null||qe.scrollIntoView({block:"center"});(He=(Ge=n.value)==null?void 0:Ge.firstElementChild)==null||He.scrollIntoView({block:"start"})},{debounce:200,immediate:!0});async function J(p){const g=Xt(p.slice(0,p.indexOf("#")));try{if(!g)throw new Error(`Cannot find file for id: ${p}`);return{id:p,mod:await import(((u)=>{if(u.startsWith('/')){return"https://registry.npmmirror.com/@gkd-kit/docs/0.0.1724077104420/files/.vitepress/dist"+u}return u})(g))}}catch(N){return console.error(N),{id:p,mod:{}}}}const V=ne(),U=ye(()=>{var p;return((p=v.value)==null?void 0:p.length)<=0});function q(p=!0){var g,N;(g=V.value)==null||g.focus(),p&&((N=V.value)==null||N.select())}Me(()=>{q()});function Re(p){p.pointerType==="mouse"&&q()}const A=ne(-1),K=ne(!1);Ve(x,p=>{A.value=p.length?0:-1,I()});function I(){de(()=>{const p=document.querySelector(".result.selected");p==null||p.scrollIntoView({block:"nearest"})})}we("ArrowUp",p=>{p.preventDefault(),A.value--,A.value<0&&(A.value=x.value.length-1),K.value=!0,I()}),we("ArrowDown",p=>{p.preventDefault(),A.value++,A.value>=x.value.length&&(A.value=0),K.value=!0,I()});const u=Pt();we("Enter",p=>{if(p.isComposing||p.target instanceof HTMLButtonElement&&p.target.type!=="submit")return;const g=x.value[A.value];if(p.target instanceof HTMLInputElement&&!g){p.preventDefault();return}g&&(u.go(g.id),t("close"))}),we("Escape",()=>{t("close")});const m=ns({modal:{displayDetails:"Display detailed list",resetButtonTitle:"Reset search",backButtonTitle:"Close search",noResultsText:"No results for",footer:{selectText:"to select",selectKeyAriaLabel:"enter",navigateText:"to navigate",navigateUpKeyAriaLabel:"up arrow",navigateDownKeyAriaLabel:"down arrow",closeText:"to close",closeKeyAriaLabel:"escape"}}});Me(()=>{window.history.pushState(null,"",null)}),jt("popstate",p=>{p.preventDefault(),t("close")});const S=Vt($t?document.body:null);Me(()=>{de(()=>{S.value=!0,de().then(()=>o())})}),Bt(()=>{S.value=!1});function E(){v.value="",de().then(()=>q(!1))}function k(p){return new RegExp([...p].sort((g,N)=>N.length-g.length).map(g=>`(${es(g)})`).join("|"),"gi")}return(p,g)=>{var N,O,P,j;return Q(),Wt(Gt,{to:"body"},[_("div",{ref_key:"el",ref:s,role:"button","aria-owns":(N=x.value)!=null&&N.length?"localsearch-list":void 0,"aria-expanded":"true","aria-haspopup":"listbox","aria-labelledby":"localsearch-label",class:"VPLocalSearchBox"},[_("div",{class:"backdrop",onClick:g[0]||(g[0]=T=>p.$emit("close"))}),_("div",qs,[_("form",{class:"search-bar",onPointerup:g[4]||(g[4]=T=>Re(T)),onSubmit:g[5]||(g[5]=Kt(()=>{},["prevent"]))},[_("label",{title:b.value,id:"localsearch-label",for:"localsearch-input"},Qs,8,Gs),_("div",Ys,[_("button",{class:"back-button",title:D(m)("modal.backButtonTitle"),onClick:g[1]||(g[1]=T=>p.$emit("close"))},en,8,Zs)]),Jt(_("input",{ref_key:"searchInput",ref:V,"onUpdate:modelValue":g[2]||(g[2]=T=>qt(v)?v.value=T:null),placeholder:b.value,id:"localsearch-input","aria-labelledby":"localsearch-label",class:"search-input"},null,8,tn),[[Ut,D(v)]]),_("div",sn,[w.value?_e("",!0):(Q(),Z("button",{key:0,class:tt(["toggle-layout-button",{"detailed-list":D(y)}]),type:"button",title:D(m)("modal.displayDetails"),onClick:g[3]||(g[3]=T=>A.value>-1&&(y.value=!D(y)))},an,10,nn)),_("button",{class:"clear-button",type:"reset",disabled:U.value,title:D(m)("modal.resetButtonTitle"),onClick:E},ln,8,on)])],32),_("ul",{ref_key:"resultsEl",ref:n,id:(O=x.value)!=null&&O.length?"localsearch-list":void 0,role:(P=x.value)!=null&&P.length?"listbox":void 0,"aria-labelledby":(j=x.value)!=null&&j.length?"localsearch-label":void 0,class:"results",onMousemove:g[7]||(g[7]=T=>K.value=!1)},[(Q(!0),Z(nt,null,st(x.value,(T,L)=>(Q(),Z("li",{key:T.id,role:"option","aria-selected":A.value===L?"true":"false"},[_("a",{href:T.id,class:tt(["result",{selected:A.value===L}]),"aria-label":[...T.titles,T.title].join(" > "),onMouseenter:G=>!K.value&&(A.value=L),onFocusin:G=>A.value=L,onClick:g[6]||(g[6]=G=>p.$emit("close"))},[_("div",null,[_("div",fn,[pn,(Q(!0),Z(nt,null,st(T.titles,(G,me)=>(Q(),Z("span",{key:me,class:"title"},[_("span",{class:"text",innerHTML:G},null,8,vn),mn]))),128)),_("span",gn,[_("span",{class:"text",innerHTML:T.title},null,8,bn)])]),D(y)?(Q(),Z("div",yn,[T.text?(Q(),Z("div",wn,[_("div",{class:"vp-doc",innerHTML:T.text},null,8,_n)])):_e("",!0),xn,Sn])):_e("",!0)])],42,hn)],8,dn))),128)),D(v)&&!x.value.length&&C.value?(Q(),Z("li",En,[he(fe(D(m)("modal.noResultsText"))+' "',1),_("strong",null,fe(D(v)),1),he('" ')])):_e("",!0)],40,un),_("div",In,[_("span",null,[_("kbd",{"aria-label":D(m)("modal.footer.navigateUpKeyAriaLabel")},kn,8,Tn),_("kbd",{"aria-label":D(m)("modal.footer.navigateDownKeyAriaLabel")},Rn,8,Fn),he(" "+fe(D(m)("modal.footer.navigateText")),1)]),_("span",null,[_("kbd",{"aria-label":D(m)("modal.footer.selectKeyAriaLabel")},An,8,Cn),he(" "+fe(D(m)("modal.footer.selectText")),1)]),_("span",null,[_("kbd",{"aria-label":D(m)("modal.footer.closeKeyAriaLabel")},"esc",8,Ln),he(" "+fe(D(m)("modal.footer.closeText")),1)])])])],8,Us)])}}}),Bn=ts(Dn,[["__scopeId","data-v-88ca8a16"]]);export{Bn as default};
7
+ */function at(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(a);e&&(s=s.filter(function(n){return Object.getOwnPropertyDescriptor(a,n).enumerable})),t.push.apply(t,s)}return t}function ot(a){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?at(Object(t),!0).forEach(function(s){xs(a,s,t[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(t)):at(Object(t)).forEach(function(s){Object.defineProperty(a,s,Object.getOwnPropertyDescriptor(t,s))})}return a}function xs(a,e,t){return e=Es(e),e in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function Ss(a,e){if(typeof a!="object"||a===null)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var s=t.call(a,e||"default");if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(a)}function Es(a){var e=Ss(a,"string");return typeof e=="symbol"?e:String(e)}var ct={activateTrap:function(e,t){if(e.length>0){var s=e[e.length-1];s!==t&&s.pause()}var n=e.indexOf(t);n===-1||e.splice(n,1),e.push(t)},deactivateTrap:function(e,t){var s=e.indexOf(t);s!==-1&&e.splice(s,1),e.length>0&&e[e.length-1].unpause()}},Is=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},Ts=function(e){return(e==null?void 0:e.key)==="Escape"||(e==null?void 0:e.key)==="Esc"||(e==null?void 0:e.keyCode)===27},ve=function(e){return(e==null?void 0:e.key)==="Tab"||(e==null?void 0:e.keyCode)===9},Ns=function(e){return ve(e)&&!e.shiftKey},ks=function(e){return ve(e)&&e.shiftKey},lt=function(e){return setTimeout(e,0)},ut=function(e,t){var s=-1;return e.every(function(n,r){return t(n)?(s=r,!1):!0}),s},pe=function(e){for(var t=arguments.length,s=new Array(t>1?t-1:0),n=1;n<t;n++)s[n-1]=arguments[n];return typeof e=="function"?e.apply(void 0,s):e},xe=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},Fs=[],Os=function(e,t){var s=(t==null?void 0:t.document)||document,n=(t==null?void 0:t.trapStack)||Fs,r=ot({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:Ns,isKeyBackward:ks},t),i={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},o,c=function(u,d,m){return u&&u[d]!==void 0?u[d]:r[m||d]},l=function(u,d){var m=typeof(d==null?void 0:d.composedPath)=="function"?d.composedPath():void 0;return i.containerGroups.findIndex(function(S){var E=S.container,k=S.tabbableNodes;return E.contains(u)||(m==null?void 0:m.includes(E))||k.find(function(F){return F===u})})},h=function(u){var d=r[u];if(typeof d=="function"){for(var m=arguments.length,S=new Array(m>1?m-1:0),E=1;E<m;E++)S[E-1]=arguments[E];d=d.apply(void 0,S)}if(d===!0&&(d=void 0),!d){if(d===void 0||d===!1)return d;throw new Error("`".concat(u,"` was specified but was not a node, or did not return a node"))}var k=d;if(typeof d=="string"&&(k=s.querySelector(d),!k))throw new Error("`".concat(u,"` as selector refers to no known node"));return k},f=function(){var u=h("initialFocus");if(u===!1)return!1;if(u===void 0||!Ae(u,r.tabbableOptions))if(l(s.activeElement)>=0)u=s.activeElement;else{var d=i.tabbableGroups[0],m=d&&d.firstTabbableNode;u=m||h("fallbackFocus")}if(!u)throw new Error("Your focus-trap needs to have at least one focusable element");return u},v=function(){if(i.containerGroups=i.containers.map(function(u){var d=ys(u,r.tabbableOptions),m=ws(u,r.tabbableOptions),S=d.length>0?d[0]:void 0,E=d.length>0?d[d.length-1]:void 0,k=m.find(function(p){return ae(p)}),F=m.slice().reverse().find(function(p){return ae(p)}),M=!!d.find(function(p){return ie(p)>0});return{container:u,tabbableNodes:d,focusableNodes:m,posTabIndexesFound:M,firstTabbableNode:S,lastTabbableNode:E,firstDomTabbableNode:k,lastDomTabbableNode:F,nextTabbableNode:function(g){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,O=d.indexOf(g);return O<0?N?m.slice(m.indexOf(g)+1).find(function(P){return ae(P)}):m.slice(0,m.indexOf(g)).reverse().find(function(P){return ae(P)}):d[O+(N?1:-1)]}}}),i.tabbableGroups=i.containerGroups.filter(function(u){return u.tabbableNodes.length>0}),i.tabbableGroups.length<=0&&!h("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(i.containerGroups.find(function(u){return u.posTabIndexesFound})&&i.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},y=function I(u){var d=u.activeElement;if(d)return d.shadowRoot&&d.shadowRoot.activeElement!==null?I(d.shadowRoot):d},w=function I(u){if(u!==!1&&u!==y(document)){if(!u||!u.focus){I(f());return}u.focus({preventScroll:!!r.preventScroll}),i.mostRecentlyFocusedNode=u,Is(u)&&u.select()}},b=function(u){var d=h("setReturnFocus",u);return d||(d===!1?!1:u)},x=function(u){var d=u.target,m=u.event,S=u.isBackward,E=S===void 0?!1:S;d=d||xe(m),v();var k=null;if(i.tabbableGroups.length>0){var F=l(d,m),M=F>=0?i.containerGroups[F]:void 0;if(F<0)E?k=i.tabbableGroups[i.tabbableGroups.length-1].lastTabbableNode:k=i.tabbableGroups[0].firstTabbableNode;else if(E){var p=ut(i.tabbableGroups,function(T){var L=T.firstTabbableNode;return d===L});if(p<0&&(M.container===d||Ae(d,r.tabbableOptions)&&!ae(d,r.tabbableOptions)&&!M.nextTabbableNode(d,!1))&&(p=F),p>=0){var g=p===0?i.tabbableGroups.length-1:p-1,N=i.tabbableGroups[g];k=ie(d)>=0?N.lastTabbableNode:N.lastDomTabbableNode}else ve(m)||(k=M.nextTabbableNode(d,!1))}else{var O=ut(i.tabbableGroups,function(T){var L=T.lastTabbableNode;return d===L});if(O<0&&(M.container===d||Ae(d,r.tabbableOptions)&&!ae(d,r.tabbableOptions)&&!M.nextTabbableNode(d))&&(O=F),O>=0){var P=O===i.tabbableGroups.length-1?0:O+1,j=i.tabbableGroups[P];k=ie(d)>=0?j.firstTabbableNode:j.firstDomTabbableNode}else ve(m)||(k=M.nextTabbableNode(d))}}else k=h("fallbackFocus");return k},C=function(u){var d=xe(u);if(!(l(d,u)>=0)){if(pe(r.clickOutsideDeactivates,u)){o.deactivate({returnFocus:r.returnFocusOnDeactivate});return}pe(r.allowOutsideClick,u)||u.preventDefault()}},R=function(u){var d=xe(u),m=l(d,u)>=0;if(m||d instanceof Document)m&&(i.mostRecentlyFocusedNode=d);else{u.stopImmediatePropagation();var S,E=!0;if(i.mostRecentlyFocusedNode)if(ie(i.mostRecentlyFocusedNode)>0){var k=l(i.mostRecentlyFocusedNode),F=i.containerGroups[k].tabbableNodes;if(F.length>0){var M=F.findIndex(function(p){return p===i.mostRecentlyFocusedNode});M>=0&&(r.isKeyForward(i.recentNavEvent)?M+1<F.length&&(S=F[M+1],E=!1):M-1>=0&&(S=F[M-1],E=!1))}}else i.containerGroups.some(function(p){return p.tabbableNodes.some(function(g){return ie(g)>0})})||(E=!1);else E=!1;E&&(S=x({target:i.mostRecentlyFocusedNode,isBackward:r.isKeyBackward(i.recentNavEvent)})),w(S||i.mostRecentlyFocusedNode||f())}i.recentNavEvent=void 0},W=function(u){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;i.recentNavEvent=u;var m=x({event:u,isBackward:d});m&&(ve(u)&&u.preventDefault(),w(m))},J=function(u){if(Ts(u)&&pe(r.escapeDeactivates,u)!==!1){u.preventDefault(),o.deactivate();return}(r.isKeyForward(u)||r.isKeyBackward(u))&&W(u,r.isKeyBackward(u))},V=function(u){var d=xe(u);l(d,u)>=0||pe(r.clickOutsideDeactivates,u)||pe(r.allowOutsideClick,u)||(u.preventDefault(),u.stopImmediatePropagation())},U=function(){if(i.active)return ct.activateTrap(n,o),i.delayInitialFocusTimer=r.delayInitialFocus?lt(function(){w(f())}):w(f()),s.addEventListener("focusin",R,!0),s.addEventListener("mousedown",C,{capture:!0,passive:!1}),s.addEventListener("touchstart",C,{capture:!0,passive:!1}),s.addEventListener("click",V,{capture:!0,passive:!1}),s.addEventListener("keydown",J,{capture:!0,passive:!1}),o},q=function(){if(i.active)return s.removeEventListener("focusin",R,!0),s.removeEventListener("mousedown",C,!0),s.removeEventListener("touchstart",C,!0),s.removeEventListener("click",V,!0),s.removeEventListener("keydown",J,!0),o},Re=function(u){var d=u.some(function(m){var S=Array.from(m.removedNodes);return S.some(function(E){return E===i.mostRecentlyFocusedNode})});d&&w(f())},A=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(Re):void 0,K=function(){A&&(A.disconnect(),i.active&&!i.paused&&i.containers.map(function(u){A.observe(u,{subtree:!0,childList:!0})}))};return o={get active(){return i.active},get paused(){return i.paused},activate:function(u){if(i.active)return this;var d=c(u,"onActivate"),m=c(u,"onPostActivate"),S=c(u,"checkCanFocusTrap");S||v(),i.active=!0,i.paused=!1,i.nodeFocusedBeforeActivation=s.activeElement,d==null||d();var E=function(){S&&v(),U(),K(),m==null||m()};return S?(S(i.containers.concat()).then(E,E),this):(E(),this)},deactivate:function(u){if(!i.active)return this;var d=ot({onDeactivate:r.onDeactivate,onPostDeactivate:r.onPostDeactivate,checkCanReturnFocus:r.checkCanReturnFocus},u);clearTimeout(i.delayInitialFocusTimer),i.delayInitialFocusTimer=void 0,q(),i.active=!1,i.paused=!1,K(),ct.deactivateTrap(n,o);var m=c(d,"onDeactivate"),S=c(d,"onPostDeactivate"),E=c(d,"checkCanReturnFocus"),k=c(d,"returnFocus","returnFocusOnDeactivate");m==null||m();var F=function(){lt(function(){k&&w(b(i.nodeFocusedBeforeActivation)),S==null||S()})};return k&&E?(E(b(i.nodeFocusedBeforeActivation)).then(F,F),this):(F(),this)},pause:function(u){if(i.paused||!i.active)return this;var d=c(u,"onPause"),m=c(u,"onPostPause");return i.paused=!0,d==null||d(),q(),K(),m==null||m(),this},unpause:function(u){if(!i.paused||!i.active)return this;var d=c(u,"onUnpause"),m=c(u,"onPostUnpause");return i.paused=!1,d==null||d(),v(),U(),K(),m==null||m(),this},updateContainerElements:function(u){var d=[].concat(u).filter(Boolean);return i.containers=d.map(function(m){return typeof m=="string"?s.querySelector(m):m}),i.active&&v(),K(),this}},o.updateContainerElements(e),o};function Rs(a,e={}){let t;const{immediate:s,...n}=e,r=ne(!1),i=ne(!1),o=f=>t&&t.activate(f),c=f=>t&&t.deactivate(f),l=()=>{t&&(t.pause(),i.value=!0)},h=()=>{t&&(t.unpause(),i.value=!1)};return Ve(()=>Rt(a),f=>{f&&(t=Os(f,{...n,onActivate(){r.value=!0,e.onActivate&&e.onActivate()},onDeactivate(){r.value=!1,e.onDeactivate&&e.onDeactivate()}}),s&&o())},{flush:"post"}),Ct(()=>c()),{hasFocus:r,isPaused:i,activate:o,deactivate:c,pause:l,unpause:h}}class ce{constructor(e,t=!0,s=[],n=5e3){this.ctx=e,this.iframes=t,this.exclude=s,this.iframesTimeout=n}static matches(e,t){const s=typeof t=="string"?[t]:t,n=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(n){let r=!1;return s.every(i=>n.call(e,i)?(r=!0,!1):!0),r}else return!1}getContexts(){let e,t=[];return typeof this.ctx>"u"||!this.ctx?e=[]:NodeList.prototype.isPrototypeOf(this.ctx)?e=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?e=this.ctx:typeof this.ctx=="string"?e=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):e=[this.ctx],e.forEach(s=>{const n=t.filter(r=>r.contains(s)).length>0;t.indexOf(s)===-1&&!n&&t.push(s)}),t}getIframeContents(e,t,s=()=>{}){let n;try{const r=e.contentWindow;if(n=r.document,!r||!n)throw new Error("iframe inaccessible")}catch{s()}n&&t(n)}isIframeBlank(e){const t="about:blank",s=e.getAttribute("src").trim();return e.contentWindow.location.href===t&&s!==t&&s}observeIframeLoad(e,t,s){let n=!1,r=null;const i=()=>{if(!n){n=!0,clearTimeout(r);try{this.isIframeBlank(e)||(e.removeEventListener("load",i),this.getIframeContents(e,t,s))}catch{s()}}};e.addEventListener("load",i),r=setTimeout(i,this.iframesTimeout)}onIframeReady(e,t,s){try{e.contentWindow.document.readyState==="complete"?this.isIframeBlank(e)?this.observeIframeLoad(e,t,s):this.getIframeContents(e,t,s):this.observeIframeLoad(e,t,s)}catch{s()}}waitForIframes(e,t){let s=0;this.forEachIframe(e,()=>!0,n=>{s++,this.waitForIframes(n.querySelector("html"),()=>{--s||t()})},n=>{n||t()})}forEachIframe(e,t,s,n=()=>{}){let r=e.querySelectorAll("iframe"),i=r.length,o=0;r=Array.prototype.slice.call(r);const c=()=>{--i<=0&&n(o)};i||c(),r.forEach(l=>{ce.matches(l,this.exclude)?c():this.onIframeReady(l,h=>{t(l)&&(o++,s(h)),c()},c)})}createIterator(e,t,s){return document.createNodeIterator(e,t,s,!1)}createInstanceOnIframe(e){return new ce(e.querySelector("html"),this.iframes)}compareNodeIframe(e,t,s){const n=e.compareDocumentPosition(s),r=Node.DOCUMENT_POSITION_PRECEDING;if(n&r)if(t!==null){const i=t.compareDocumentPosition(s),o=Node.DOCUMENT_POSITION_FOLLOWING;if(i&o)return!0}else return!0;return!1}getIteratorNode(e){const t=e.previousNode();let s;return t===null?s=e.nextNode():s=e.nextNode()&&e.nextNode(),{prevNode:t,node:s}}checkIframeFilter(e,t,s,n){let r=!1,i=!1;return n.forEach((o,c)=>{o.val===s&&(r=c,i=o.handled)}),this.compareNodeIframe(e,t,s)?(r===!1&&!i?n.push({val:s,handled:!0}):r!==!1&&!i&&(n[r].handled=!0),!0):(r===!1&&n.push({val:s,handled:!1}),!1)}handleOpenIframes(e,t,s,n){e.forEach(r=>{r.handled||this.getIframeContents(r.val,i=>{this.createInstanceOnIframe(i).forEachNode(t,s,n)})})}iterateThroughNodes(e,t,s,n,r){const i=this.createIterator(t,e,n);let o=[],c=[],l,h,f=()=>({prevNode:h,node:l}=this.getIteratorNode(i),l);for(;f();)this.iframes&&this.forEachIframe(t,v=>this.checkIframeFilter(l,h,v,o),v=>{this.createInstanceOnIframe(v).forEachNode(e,y=>c.push(y),n)}),c.push(l);c.forEach(v=>{s(v)}),this.iframes&&this.handleOpenIframes(o,e,s,n),r()}forEachNode(e,t,s,n=()=>{}){const r=this.getContexts();let i=r.length;i||n(),r.forEach(o=>{const c=()=>{this.iterateThroughNodes(e,o,t,s,()=>{--i<=0&&n()})};this.iframes?this.waitForIframes(o,c):c()})}}let Cs=class{constructor(e){this.ctx=e,this.ie=!1;const t=window.navigator.userAgent;(t.indexOf("MSIE")>-1||t.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(e){this._opt=Object.assign({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:()=>{},noMatch:()=>{},filter:()=>!0,done:()=>{},debug:!1,log:window.console},e)}get opt(){return this._opt}get iterator(){return new ce(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(e,t="debug"){const s=this.opt.log;this.opt.debug&&typeof s=="object"&&typeof s[t]=="function"&&s[t](`mark.js: ${e}`)}escapeStr(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(e){return this.opt.wildcards!=="disabled"&&(e=this.setupWildcardsRegExp(e)),e=this.escapeStr(e),Object.keys(this.opt.synonyms).length&&(e=this.createSynonymsRegExp(e)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),this.opt.diacritics&&(e=this.createDiacriticsRegExp(e)),e=this.createMergedBlanksRegExp(e),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.createJoinersRegExp(e)),this.opt.wildcards!=="disabled"&&(e=this.createWildcardsRegExp(e)),e=this.createAccuracyRegExp(e),e}createSynonymsRegExp(e){const t=this.opt.synonyms,s=this.opt.caseSensitive?"":"i",n=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let r in t)if(t.hasOwnProperty(r)){const i=t[r],o=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(r):this.escapeStr(r),c=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(i):this.escapeStr(i);o!==""&&c!==""&&(e=e.replace(new RegExp(`(${this.escapeStr(o)}|${this.escapeStr(c)})`,`gm${s}`),n+`(${this.processSynomyms(o)}|${this.processSynomyms(c)})`+n))}return e}processSynomyms(e){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),e}setupWildcardsRegExp(e){return e=e.replace(/(?:\\)*\?/g,t=>t.charAt(0)==="\\"?"?":""),e.replace(/(?:\\)*\*/g,t=>t.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(e){let t=this.opt.wildcards==="withSpaces";return e.replace(/\u0001/g,t?"[\\S\\s]?":"\\S?").replace(/\u0002/g,t?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(e){return e.replace(/[^(|)\\]/g,(t,s,n)=>{let r=n.charAt(s+1);return/[(|)\\]/.test(r)||r===""?t:t+"\0"})}createJoinersRegExp(e){let t=[];const s=this.opt.ignorePunctuation;return Array.isArray(s)&&s.length&&t.push(this.escapeStr(s.join(""))),this.opt.ignoreJoiners&&t.push("\\u00ad\\u200b\\u200c\\u200d"),t.length?e.split(/\u0000+/).join(`[${t.join("")}]*`):e}createDiacriticsRegExp(e){const t=this.opt.caseSensitive?"":"i",s=this.opt.caseSensitive?["aàáảãạăằắẳẵặâầấẩẫậäåāą","AÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćč","CÇĆČ","dđď","DĐĎ","eèéẻẽẹêềếểễệëěēę","EÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïī","IÌÍỈĨỊÎÏĪ","lł","LŁ","nñňń","NÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøō","OÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rř","RŘ","sšśșş","SŠŚȘŞ","tťțţ","TŤȚŢ","uùúủũụưừứửữựûüůū","UÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿ","YÝỲỶỸỴŸ","zžżź","ZŽŻŹ"]:["aàáảãạăằắẳẵặâầấẩẫậäåāąAÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćčCÇĆČ","dđďDĐĎ","eèéẻẽẹêềếểễệëěēęEÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïīIÌÍỈĨỊÎÏĪ","lłLŁ","nñňńNÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøōOÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rřRŘ","sšśșşSŠŚȘŞ","tťțţTŤȚŢ","uùúủũụưừứửữựûüůūUÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿYÝỲỶỸỴŸ","zžżźZŽŻŹ"];let n=[];return e.split("").forEach(r=>{s.every(i=>{if(i.indexOf(r)!==-1){if(n.indexOf(i)>-1)return!1;e=e.replace(new RegExp(`[${i}]`,`gm${t}`),`[${i}]`),n.push(i)}return!0})}),e}createMergedBlanksRegExp(e){return e.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(e){const t="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~¡¿";let s=this.opt.accuracy,n=typeof s=="string"?s:s.value,r=typeof s=="string"?[]:s.limiters,i="";switch(r.forEach(o=>{i+=`|${this.escapeStr(o)}`}),n){case"partially":default:return`()(${e})`;case"complementary":return i="\\s"+(i||this.escapeStr(t)),`()([^${i}]*${e}[^${i}]*)`;case"exactly":return`(^|\\s${i})(${e})(?=$|\\s${i})`}}getSeparatedKeywords(e){let t=[];return e.forEach(s=>{this.opt.separateWordSearch?s.split(" ").forEach(n=>{n.trim()&&t.indexOf(n)===-1&&t.push(n)}):s.trim()&&t.indexOf(s)===-1&&t.push(s)}),{keywords:t.sort((s,n)=>n.length-s.length),length:t.length}}isNumeric(e){return Number(parseFloat(e))==e}checkRanges(e){if(!Array.isArray(e)||Object.prototype.toString.call(e[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(e),[];const t=[];let s=0;return e.sort((n,r)=>n.start-r.start).forEach(n=>{let{start:r,end:i,valid:o}=this.callNoMatchOnInvalidRanges(n,s);o&&(n.start=r,n.length=i-r,t.push(n),s=i)}),t}callNoMatchOnInvalidRanges(e,t){let s,n,r=!1;return e&&typeof e.start<"u"?(s=parseInt(e.start,10),n=s+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&n-t>0&&n-s>0?r=!0:(this.log(`Ignoring invalid or overlapping range: ${JSON.stringify(e)}`),this.opt.noMatch(e))):(this.log(`Ignoring invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)),{start:s,end:n,valid:r}}checkWhitespaceRanges(e,t,s){let n,r=!0,i=s.length,o=t-i,c=parseInt(e.start,10)-o;return c=c>i?i:c,n=c+parseInt(e.length,10),n>i&&(n=i,this.log(`End range automatically set to the max value of ${i}`)),c<0||n-c<0||c>i||n>i?(r=!1,this.log(`Invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)):s.substring(c,n).replace(/\s+/g,"")===""&&(r=!1,this.log("Skipping whitespace only range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:c,end:n,valid:r}}getTextNodes(e){let t="",s=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,n=>{s.push({start:t.length,end:(t+=n.textContent).length,node:n})},n=>this.matchesExclude(n.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{e({value:t,nodes:s})})}matchesExclude(e){return ce.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(e,t,s){const n=this.opt.element?this.opt.element:"mark",r=e.splitText(t),i=r.splitText(s-t);let o=document.createElement(n);return o.setAttribute("data-markjs","true"),this.opt.className&&o.setAttribute("class",this.opt.className),o.textContent=r.textContent,r.parentNode.replaceChild(o,r),i}wrapRangeInMappedTextNode(e,t,s,n,r){e.nodes.every((i,o)=>{const c=e.nodes[o+1];if(typeof c>"u"||c.start>t){if(!n(i.node))return!1;const l=t-i.start,h=(s>i.end?i.end:s)-i.start,f=e.value.substr(0,i.start),v=e.value.substr(h+i.start);if(i.node=this.wrapRangeInTextNode(i.node,l,h),e.value=f+v,e.nodes.forEach((y,w)=>{w>=o&&(e.nodes[w].start>0&&w!==o&&(e.nodes[w].start-=h),e.nodes[w].end-=h)}),s-=h,r(i.node.previousSibling,i.start),s>i.end)t=i.end;else return!1}return!0})}wrapMatches(e,t,s,n,r){const i=t===0?0:t+1;this.getTextNodes(o=>{o.nodes.forEach(c=>{c=c.node;let l;for(;(l=e.exec(c.textContent))!==null&&l[i]!=="";){if(!s(l[i],c))continue;let h=l.index;if(i!==0)for(let f=1;f<i;f++)h+=l[f].length;c=this.wrapRangeInTextNode(c,h,h+l[i].length),n(c.previousSibling),e.lastIndex=0}}),r()})}wrapMatchesAcrossElements(e,t,s,n,r){const i=t===0?0:t+1;this.getTextNodes(o=>{let c;for(;(c=e.exec(o.value))!==null&&c[i]!=="";){let l=c.index;if(i!==0)for(let f=1;f<i;f++)l+=c[f].length;const h=l+c[i].length;this.wrapRangeInMappedTextNode(o,l,h,f=>s(c[i],f),(f,v)=>{e.lastIndex=v,n(f)})}r()})}wrapRangeFromIndex(e,t,s,n){this.getTextNodes(r=>{const i=r.value.length;e.forEach((o,c)=>{let{start:l,end:h,valid:f}=this.checkWhitespaceRanges(o,i,r.value);f&&this.wrapRangeInMappedTextNode(r,l,h,v=>t(v,o,r.value.substring(l,h),c),v=>{s(v,o)})}),n()})}unwrapMatches(e){const t=e.parentNode;let s=document.createDocumentFragment();for(;e.firstChild;)s.appendChild(e.removeChild(e.firstChild));t.replaceChild(s,e),this.ie?this.normalizeTextNode(t):t.normalize()}normalizeTextNode(e){if(e){if(e.nodeType===3)for(;e.nextSibling&&e.nextSibling.nodeType===3;)e.nodeValue+=e.nextSibling.nodeValue,e.parentNode.removeChild(e.nextSibling);else this.normalizeTextNode(e.firstChild);this.normalizeTextNode(e.nextSibling)}}markRegExp(e,t){this.opt=t,this.log(`Searching with expression "${e}"`);let s=0,n="wrapMatches";const r=i=>{s++,this.opt.each(i)};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),this[n](e,this.opt.ignoreGroups,(i,o)=>this.opt.filter(o,i,s),r,()=>{s===0&&this.opt.noMatch(e),this.opt.done(s)})}mark(e,t){this.opt=t;let s=0,n="wrapMatches";const{keywords:r,length:i}=this.getSeparatedKeywords(typeof e=="string"?[e]:e),o=this.opt.caseSensitive?"":"i",c=l=>{let h=new RegExp(this.createRegExp(l),`gm${o}`),f=0;this.log(`Searching with expression "${h}"`),this[n](h,1,(v,y)=>this.opt.filter(y,l,s,f),v=>{f++,s++,this.opt.each(v)},()=>{f===0&&this.opt.noMatch(l),r[i-1]===l?this.opt.done(s):c(r[r.indexOf(l)+1])})};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),i===0?this.opt.done(s):c(r[0])}markRanges(e,t){this.opt=t;let s=0,n=this.checkRanges(e);n&&n.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(n)),this.wrapRangeFromIndex(n,(r,i,o,c)=>this.opt.filter(r,i,o,c),(r,i)=>{s++,this.opt.each(r,i)},()=>{this.opt.done(s)})):this.opt.done(s)}unmark(e){this.opt=e;let t=this.opt.element?this.opt.element:"*";t+="[data-markjs]",this.opt.className&&(t+=`.${this.opt.className}`),this.log(`Removal selector "${t}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,s=>{this.unwrapMatches(s)},s=>{const n=ce.matches(s,t),r=this.matchesExclude(s);return!n||r?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function Ms(a){const e=new Cs(a);return this.mark=(t,s)=>(e.mark(t,s),this),this.markRegExp=(t,s)=>(e.markRegExp(t,s),this),this.markRanges=(t,s)=>(e.markRanges(t,s),this),this.unmark=t=>(e.unmark(t),this),this}function Ie(a,e,t,s){function n(r){return r instanceof t?r:new t(function(i){i(r)})}return new(t||(t=Promise))(function(r,i){function o(h){try{l(s.next(h))}catch(f){i(f)}}function c(h){try{l(s.throw(h))}catch(f){i(f)}}function l(h){h.done?r(h.value):n(h.value).then(o,c)}l((s=s.apply(a,e||[])).next())})}const As="ENTRIES",_t="KEYS",xt="VALUES",z="";class Le{constructor(e,t){const s=e._tree,n=Array.from(s.keys());this.set=e,this._type=t,this._path=n.length>0?[{node:s,keys:n}]:[]}next(){const e=this.dive();return this.backtrack(),e}dive(){if(this._path.length===0)return{done:!0,value:void 0};const{node:e,keys:t}=oe(this._path);if(oe(t)===z)return{done:!1,value:this.result()};const s=e.get(oe(t));return this._path.push({node:s,keys:Array.from(s.keys())}),this.dive()}backtrack(){if(this._path.length===0)return;const e=oe(this._path).keys;e.pop(),!(e.length>0)&&(this._path.pop(),this.backtrack())}key(){return this.set._prefix+this._path.map(({keys:e})=>oe(e)).filter(e=>e!==z).join("")}value(){return oe(this._path).node.get(z)}result(){switch(this._type){case xt:return this.value();case _t:return this.key();default:return[this.key(),this.value()]}}[Symbol.iterator](){return this}}const oe=a=>a[a.length-1],Ls=(a,e,t)=>{const s=new Map;if(e===void 0)return s;const n=e.length+1,r=n+t,i=new Uint8Array(r*n).fill(t+1);for(let o=0;o<n;++o)i[o]=o;for(let o=1;o<r;++o)i[o*n]=o;return St(a,e,t,s,i,1,n,""),s},St=(a,e,t,s,n,r,i,o)=>{const c=r*i;e:for(const l of a.keys())if(l===z){const h=n[c-1];h<=t&&s.set(o,[a.get(l),h])}else{let h=r;for(let f=0;f<l.length;++f,++h){const v=l[f],y=i*h,w=y-i;let b=n[y];const x=Math.max(0,h-t-1),C=Math.min(i-1,h+t);for(let R=x;R<C;++R){const W=v!==e[R],J=n[w+R]+ +W,V=n[w+R+1]+1,U=n[y+R]+1,q=n[y+R+1]=Math.min(J,V,U);q<b&&(b=q)}if(b>t)continue e}St(a.get(l),e,t,s,n,h,i,o+l)}};class X{constructor(e=new Map,t=""){this._size=void 0,this._tree=e,this._prefix=t}atPrefix(e){if(!e.startsWith(this._prefix))throw new Error("Mismatched prefix");const[t,s]=Oe(this._tree,e.slice(this._prefix.length));if(t===void 0){const[n,r]=Je(s);for(const i of n.keys())if(i!==z&&i.startsWith(r)){const o=new Map;return o.set(i.slice(r.length),n.get(i)),new X(o,e)}}return new X(t,e)}clear(){this._size=void 0,this._tree.clear()}delete(e){return this._size=void 0,Ds(this._tree,e)}entries(){return new Le(this,As)}forEach(e){for(const[t,s]of this)e(t,s,this)}fuzzyGet(e,t){return Ls(this._tree,e,t)}get(e){const t=Be(this._tree,e);return t!==void 0?t.get(z):void 0}has(e){const t=Be(this._tree,e);return t!==void 0&&t.has(z)}keys(){return new Le(this,_t)}set(e,t){if(typeof e!="string")throw new Error("key must be a string");return this._size=void 0,De(this._tree,e).set(z,t),this}get size(){if(this._size)return this._size;this._size=0;const e=this.entries();for(;!e.next().done;)this._size+=1;return this._size}update(e,t){if(typeof e!="string")throw new Error("key must be a string");this._size=void 0;const s=De(this._tree,e);return s.set(z,t(s.get(z))),this}fetch(e,t){if(typeof e!="string")throw new Error("key must be a string");this._size=void 0;const s=De(this._tree,e);let n=s.get(z);return n===void 0&&s.set(z,n=t()),n}values(){return new Le(this,xt)}[Symbol.iterator](){return this.entries()}static from(e){const t=new X;for(const[s,n]of e)t.set(s,n);return t}static fromObject(e){return X.from(Object.entries(e))}}const Oe=(a,e,t=[])=>{if(e.length===0||a==null)return[a,t];for(const s of a.keys())if(s!==z&&e.startsWith(s))return t.push([a,s]),Oe(a.get(s),e.slice(s.length),t);return t.push([a,e]),Oe(void 0,"",t)},Be=(a,e)=>{if(e.length===0||a==null)return a;for(const t of a.keys())if(t!==z&&e.startsWith(t))return Be(a.get(t),e.slice(t.length))},De=(a,e)=>{const t=e.length;e:for(let s=0;a&&s<t;){for(const r of a.keys())if(r!==z&&e[s]===r[0]){const i=Math.min(t-s,r.length);let o=1;for(;o<i&&e[s+o]===r[o];)++o;const c=a.get(r);if(o===r.length)a=c;else{const l=new Map;l.set(r.slice(o),c),a.set(e.slice(s,s+o),l),a.delete(r),a=l}s+=o;continue e}const n=new Map;return a.set(e.slice(s),n),n}return a},Ds=(a,e)=>{const[t,s]=Oe(a,e);if(t!==void 0){if(t.delete(z),t.size===0)Et(s);else if(t.size===1){const[n,r]=t.entries().next().value;It(s,n,r)}}},Et=a=>{if(a.length===0)return;const[e,t]=Je(a);if(e.delete(t),e.size===0)Et(a.slice(0,-1));else if(e.size===1){const[s,n]=e.entries().next().value;s!==z&&It(a.slice(0,-1),s,n)}},It=(a,e,t)=>{if(a.length===0)return;const[s,n]=Je(a);s.set(n+e,t),s.delete(n)},Je=a=>a[a.length-1],Ue="or",Tt="and",zs="and_not";class le{constructor(e){if((e==null?void 0:e.fields)==null)throw new Error('MiniSearch: option "fields" must be provided');const t=e.autoVacuum==null||e.autoVacuum===!0?je:e.autoVacuum;this._options=Object.assign(Object.assign(Object.assign({},Pe),e),{autoVacuum:t,searchOptions:Object.assign(Object.assign({},dt),e.searchOptions||{}),autoSuggestOptions:Object.assign(Object.assign({},Bs),e.autoSuggestOptions||{})}),this._index=new X,this._documentCount=0,this._documentIds=new Map,this._idToShortId=new Map,this._fieldIds={},this._fieldLength=new Map,this._avgFieldLength=[],this._nextId=0,this._storedFields=new Map,this._dirtCount=0,this._currentVacuum=null,this._enqueuedVacuum=null,this._enqueuedVacuumConditions=Ke,this.addFields(this._options.fields)}add(e){const{extractField:t,tokenize:s,processTerm:n,fields:r,idField:i}=this._options,o=t(e,i);if(o==null)throw new Error(`MiniSearch: document does not have ID field "${i}"`);if(this._idToShortId.has(o))throw new Error(`MiniSearch: duplicate ID ${o}`);const c=this.addDocumentId(o);this.saveStoredFields(c,e);for(const l of r){const h=t(e,l);if(h==null)continue;const f=s(h.toString(),l),v=this._fieldIds[l],y=new Set(f).size;this.addFieldLength(c,v,this._documentCount-1,y);for(const w of f){const b=n(w,l);if(Array.isArray(b))for(const x of b)this.addTerm(v,c,x);else b&&this.addTerm(v,c,b)}}}addAll(e){for(const t of e)this.add(t)}addAllAsync(e,t={}){const{chunkSize:s=10}=t,n={chunk:[],promise:Promise.resolve()},{chunk:r,promise:i}=e.reduce(({chunk:o,promise:c},l,h)=>(o.push(l),(h+1)%s===0?{chunk:[],promise:c.then(()=>new Promise(f=>setTimeout(f,0))).then(()=>this.addAll(o))}:{chunk:o,promise:c}),n);return i.then(()=>this.addAll(r))}remove(e){const{tokenize:t,processTerm:s,extractField:n,fields:r,idField:i}=this._options,o=n(e,i);if(o==null)throw new Error(`MiniSearch: document does not have ID field "${i}"`);const c=this._idToShortId.get(o);if(c==null)throw new Error(`MiniSearch: cannot remove document with ID ${o}: it is not in the index`);for(const l of r){const h=n(e,l);if(h==null)continue;const f=t(h.toString(),l),v=this._fieldIds[l],y=new Set(f).size;this.removeFieldLength(c,v,this._documentCount,y);for(const w of f){const b=s(w,l);if(Array.isArray(b))for(const x of b)this.removeTerm(v,c,x);else b&&this.removeTerm(v,c,b)}}this._storedFields.delete(c),this._documentIds.delete(c),this._idToShortId.delete(o),this._fieldLength.delete(c),this._documentCount-=1}removeAll(e){if(e)for(const t of e)this.remove(t);else{if(arguments.length>0)throw new Error("Expected documents to be present. Omit the argument to remove all documents.");this._index=new X,this._documentCount=0,this._documentIds=new Map,this._idToShortId=new Map,this._fieldLength=new Map,this._avgFieldLength=[],this._storedFields=new Map,this._nextId=0}}discard(e){const t=this._idToShortId.get(e);if(t==null)throw new Error(`MiniSearch: cannot discard document with ID ${e}: it is not in the index`);this._idToShortId.delete(e),this._documentIds.delete(t),this._storedFields.delete(t),(this._fieldLength.get(t)||[]).forEach((s,n)=>{this.removeFieldLength(t,n,this._documentCount,s)}),this._fieldLength.delete(t),this._documentCount-=1,this._dirtCount+=1,this.maybeAutoVacuum()}maybeAutoVacuum(){if(this._options.autoVacuum===!1)return;const{minDirtFactor:e,minDirtCount:t,batchSize:s,batchWait:n}=this._options.autoVacuum;this.conditionalVacuum({batchSize:s,batchWait:n},{minDirtCount:t,minDirtFactor:e})}discardAll(e){const t=this._options.autoVacuum;try{this._options.autoVacuum=!1;for(const s of e)this.discard(s)}finally{this._options.autoVacuum=t}this.maybeAutoVacuum()}replace(e){const{idField:t,extractField:s}=this._options,n=s(e,t);this.discard(n),this.add(e)}vacuum(e={}){return this.conditionalVacuum(e)}conditionalVacuum(e,t){return this._currentVacuum?(this._enqueuedVacuumConditions=this._enqueuedVacuumConditions&&t,this._enqueuedVacuum!=null?this._enqueuedVacuum:(this._enqueuedVacuum=this._currentVacuum.then(()=>{const s=this._enqueuedVacuumConditions;return this._enqueuedVacuumConditions=Ke,this.performVacuuming(e,s)}),this._enqueuedVacuum)):this.vacuumConditionsMet(t)===!1?Promise.resolve():(this._currentVacuum=this.performVacuuming(e),this._currentVacuum)}performVacuuming(e,t){return Ie(this,void 0,void 0,function*(){const s=this._dirtCount;if(this.vacuumConditionsMet(t)){const n=e.batchSize||We.batchSize,r=e.batchWait||We.batchWait;let i=1;for(const[o,c]of this._index){for(const[l,h]of c)for(const[f]of h)this._documentIds.has(f)||(h.size<=1?c.delete(l):h.delete(f));this._index.get(o).size===0&&this._index.delete(o),i%n===0&&(yield new Promise(l=>setTimeout(l,r))),i+=1}this._dirtCount-=s}yield null,this._currentVacuum=this._enqueuedVacuum,this._enqueuedVacuum=null})}vacuumConditionsMet(e){if(e==null)return!0;let{minDirtCount:t,minDirtFactor:s}=e;return t=t||je.minDirtCount,s=s||je.minDirtFactor,this.dirtCount>=t&&this.dirtFactor>=s}get isVacuuming(){return this._currentVacuum!=null}get dirtCount(){return this._dirtCount}get dirtFactor(){return this._dirtCount/(1+this._documentCount+this._dirtCount)}has(e){return this._idToShortId.has(e)}getStoredFields(e){const t=this._idToShortId.get(e);if(t!=null)return this._storedFields.get(t)}search(e,t={}){const s=this.executeQuery(e,t),n=[];for(const[r,{score:i,terms:o,match:c}]of s){const l=o.length||1,h={id:this._documentIds.get(r),score:i*l,terms:Object.keys(c),queryTerms:o,match:c};Object.assign(h,this._storedFields.get(r)),(t.filter==null||t.filter(h))&&n.push(h)}return e===le.wildcard&&t.boostDocument==null&&this._options.searchOptions.boostDocument==null||n.sort(ft),n}autoSuggest(e,t={}){t=Object.assign(Object.assign({},this._options.autoSuggestOptions),t);const s=new Map;for(const{score:r,terms:i}of this.search(e,t)){const o=i.join(" "),c=s.get(o);c!=null?(c.score+=r,c.count+=1):s.set(o,{score:r,terms:i,count:1})}const n=[];for(const[r,{score:i,terms:o,count:c}]of s)n.push({suggestion:r,terms:o,score:i/c});return n.sort(ft),n}get documentCount(){return this._documentCount}get termCount(){return this._index.size}static loadJSON(e,t){if(t==null)throw new Error("MiniSearch: loadJSON should be given the same options used when serializing the index");return this.loadJS(JSON.parse(e),t)}static loadJSONAsync(e,t){return Ie(this,void 0,void 0,function*(){if(t==null)throw new Error("MiniSearch: loadJSON should be given the same options used when serializing the index");return this.loadJSAsync(JSON.parse(e),t)})}static getDefault(e){if(Pe.hasOwnProperty(e))return ze(Pe,e);throw new Error(`MiniSearch: unknown option "${e}"`)}static loadJS(e,t){const{index:s,documentIds:n,fieldLength:r,storedFields:i,serializationVersion:o}=e,c=this.instantiateMiniSearch(e,t);c._documentIds=Se(n),c._fieldLength=Se(r),c._storedFields=Se(i);for(const[l,h]of c._documentIds)c._idToShortId.set(h,l);for(const[l,h]of s){const f=new Map;for(const v of Object.keys(h)){let y=h[v];o===1&&(y=y.ds),f.set(parseInt(v,10),Se(y))}c._index.set(l,f)}return c}static loadJSAsync(e,t){return Ie(this,void 0,void 0,function*(){const{index:s,documentIds:n,fieldLength:r,storedFields:i,serializationVersion:o}=e,c=this.instantiateMiniSearch(e,t);c._documentIds=yield Ee(n),c._fieldLength=yield Ee(r),c._storedFields=yield Ee(i);for(const[h,f]of c._documentIds)c._idToShortId.set(f,h);let l=0;for(const[h,f]of s){const v=new Map;for(const y of Object.keys(f)){let w=f[y];o===1&&(w=w.ds),v.set(parseInt(y,10),yield Ee(w))}++l%1e3===0&&(yield Nt(0)),c._index.set(h,v)}return c})}static instantiateMiniSearch(e,t){const{documentCount:s,nextId:n,fieldIds:r,averageFieldLength:i,dirtCount:o,serializationVersion:c}=e;if(c!==1&&c!==2)throw new Error("MiniSearch: cannot deserialize an index created with an incompatible version");const l=new le(t);return l._documentCount=s,l._nextId=n,l._idToShortId=new Map,l._fieldIds=r,l._avgFieldLength=i,l._dirtCount=o||0,l._index=new X,l}executeQuery(e,t={}){if(e===le.wildcard)return this.executeWildcardQuery(t);if(typeof e!="string"){const v=Object.assign(Object.assign(Object.assign({},t),e),{queries:void 0}),y=e.queries.map(w=>this.executeQuery(w,v));return this.combineResults(y,v.combineWith)}const{tokenize:s,processTerm:n,searchOptions:r}=this._options,i=Object.assign(Object.assign({tokenize:s,processTerm:n},r),t),{tokenize:o,processTerm:c}=i,f=o(e).flatMap(v=>c(v)).filter(v=>!!v).map($s(i)).map(v=>this.executeQuerySpec(v,i));return this.combineResults(f,i.combineWith)}executeQuerySpec(e,t){const s=Object.assign(Object.assign({},this._options.searchOptions),t),n=(s.fields||this._options.fields).reduce((b,x)=>Object.assign(Object.assign({},b),{[x]:ze(s.boost,x)||1}),{}),{boostDocument:r,weights:i,maxFuzzy:o,bm25:c}=s,{fuzzy:l,prefix:h}=Object.assign(Object.assign({},dt.weights),i),f=this._index.get(e.term),v=this.termResults(e.term,e.term,1,f,n,r,c);let y,w;if(e.prefix&&(y=this._index.atPrefix(e.term)),e.fuzzy){const b=e.fuzzy===!0?.2:e.fuzzy,x=b<1?Math.min(o,Math.round(e.term.length*b)):b;x&&(w=this._index.fuzzyGet(e.term,x))}if(y)for(const[b,x]of y){const C=b.length-e.term.length;if(!C)continue;w==null||w.delete(b);const R=h*b.length/(b.length+.3*C);this.termResults(e.term,b,R,x,n,r,c,v)}if(w)for(const b of w.keys()){const[x,C]=w.get(b);if(!C)continue;const R=l*b.length/(b.length+C);this.termResults(e.term,b,R,x,n,r,c,v)}return v}executeWildcardQuery(e){const t=new Map,s=Object.assign(Object.assign({},this._options.searchOptions),e);for(const[n,r]of this._documentIds){const i=s.boostDocument?s.boostDocument(r,"",this._storedFields.get(n)):1;t.set(n,{score:i,terms:[],match:{}})}return t}combineResults(e,t=Ue){if(e.length===0)return new Map;const s=t.toLowerCase(),n=Ps[s];if(!n)throw new Error(`Invalid combination operator: ${t}`);return e.reduce(n)||new Map}toJSON(){const e=[];for(const[t,s]of this._index){const n={};for(const[r,i]of s)n[r]=Object.fromEntries(i);e.push([t,n])}return{documentCount:this._documentCount,nextId:this._nextId,documentIds:Object.fromEntries(this._documentIds),fieldIds:this._fieldIds,fieldLength:Object.fromEntries(this._fieldLength),averageFieldLength:this._avgFieldLength,storedFields:Object.fromEntries(this._storedFields),dirtCount:this._dirtCount,index:e,serializationVersion:2}}termResults(e,t,s,n,r,i,o,c=new Map){if(n==null)return c;for(const l of Object.keys(r)){const h=r[l],f=this._fieldIds[l],v=n.get(f);if(v==null)continue;let y=v.size;const w=this._avgFieldLength[f];for(const b of v.keys()){if(!this._documentIds.has(b)){this.removeTerm(f,b,t),y-=1;continue}const x=i?i(this._documentIds.get(b),t,this._storedFields.get(b)):1;if(!x)continue;const C=v.get(b),R=this._fieldLength.get(b)[f],W=Vs(C,y,this._documentCount,R,w,o),J=s*h*x*W,V=c.get(b);if(V){V.score+=J,Ws(V.terms,e);const U=ze(V.match,t);U?U.push(l):V.match[t]=[l]}else c.set(b,{score:J,terms:[e],match:{[t]:[l]}})}}return c}addTerm(e,t,s){const n=this._index.fetch(s,pt);let r=n.get(e);if(r==null)r=new Map,r.set(t,1),n.set(e,r);else{const i=r.get(t);r.set(t,(i||0)+1)}}removeTerm(e,t,s){if(!this._index.has(s)){this.warnDocumentChanged(t,e,s);return}const n=this._index.fetch(s,pt),r=n.get(e);r==null||r.get(t)==null?this.warnDocumentChanged(t,e,s):r.get(t)<=1?r.size<=1?n.delete(e):r.delete(t):r.set(t,r.get(t)-1),this._index.get(s).size===0&&this._index.delete(s)}warnDocumentChanged(e,t,s){for(const n of Object.keys(this._fieldIds))if(this._fieldIds[n]===t){this._options.logger("warn",`MiniSearch: document with ID ${this._documentIds.get(e)} has changed before removal: term "${s}" was not present in field "${n}". Removing a document after it has changed can corrupt the index!`,"version_conflict");return}}addDocumentId(e){const t=this._nextId;return this._idToShortId.set(e,t),this._documentIds.set(t,e),this._documentCount+=1,this._nextId+=1,t}addFields(e){for(let t=0;t<e.length;t++)this._fieldIds[e[t]]=t}addFieldLength(e,t,s,n){let r=this._fieldLength.get(e);r==null&&this._fieldLength.set(e,r=[]),r[t]=n;const o=(this._avgFieldLength[t]||0)*s+n;this._avgFieldLength[t]=o/(s+1)}removeFieldLength(e,t,s,n){if(s===1){this._avgFieldLength[t]=0;return}const r=this._avgFieldLength[t]*s-n;this._avgFieldLength[t]=r/(s-1)}saveStoredFields(e,t){const{storeFields:s,extractField:n}=this._options;if(s==null||s.length===0)return;let r=this._storedFields.get(e);r==null&&this._storedFields.set(e,r={});for(const i of s){const o=n(t,i);o!==void 0&&(r[i]=o)}}}le.wildcard=Symbol("*");const ze=(a,e)=>Object.prototype.hasOwnProperty.call(a,e)?a[e]:void 0,Ps={[Ue]:(a,e)=>{for(const t of e.keys()){const s=a.get(t);if(s==null)a.set(t,e.get(t));else{const{score:n,terms:r,match:i}=e.get(t);s.score=s.score+n,s.match=Object.assign(s.match,i),ht(s.terms,r)}}return a},[Tt]:(a,e)=>{const t=new Map;for(const s of e.keys()){const n=a.get(s);if(n==null)continue;const{score:r,terms:i,match:o}=e.get(s);ht(n.terms,i),t.set(s,{score:n.score+r,terms:n.terms,match:Object.assign(n.match,o)})}return t},[zs]:(a,e)=>{for(const t of e.keys())a.delete(t);return a}},js={k:1.2,b:.7,d:.5},Vs=(a,e,t,s,n,r)=>{const{k:i,b:o,d:c}=r;return Math.log(1+(t-e+.5)/(e+.5))*(c+a*(i+1)/(a+i*(1-o+o*s/n)))},$s=a=>(e,t,s)=>{const n=typeof a.fuzzy=="function"?a.fuzzy(e,t,s):a.fuzzy||!1,r=typeof a.prefix=="function"?a.prefix(e,t,s):a.prefix===!0;return{term:e,fuzzy:n,prefix:r}},Pe={idField:"id",extractField:(a,e)=>a[e],tokenize:a=>a.split(Ks),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:Ue,prefix:!1,fuzzy:!1,maxFuzzy:6,boost:{},weights:{fuzzy:.45,prefix:.375},bm25:js},Bs={combineWith:Tt,prefix:(a,e,t)=>e===t.length-1},We={batchSize:1e3,batchWait:10},Ke={minDirtFactor:.1,minDirtCount:20},je=Object.assign(Object.assign({},We),Ke),Ws=(a,e)=>{a.includes(e)||a.push(e)},ht=(a,e)=>{for(const t of e)a.includes(t)||a.push(t)},ft=({score:a},{score:e})=>e-a,pt=()=>new Map,Se=a=>{const e=new Map;for(const t of Object.keys(a))e.set(parseInt(t,10),a[t]);return e},Ee=a=>Ie(void 0,void 0,void 0,function*(){const e=new Map;let t=0;for(const s of Object.keys(a))e.set(parseInt(s,10),a[s]),++t%1e3===0&&(yield Nt(0));return e}),Nt=a=>new Promise(e=>setTimeout(e,a)),Ks=/[\n\r\p{Z}\p{P}]/u;class Js{constructor(e=10){Ce(this,"max");Ce(this,"cache");this.max=e,this.cache=new Map}get(e){let t=this.cache.get(e);return t!==void 0&&(this.cache.delete(e),this.cache.set(e,t)),t}set(e,t){this.cache.has(e)?this.cache.delete(e):this.cache.size===this.max&&this.cache.delete(this.first()),this.cache.set(e,t)}first(){return this.cache.keys().next().value}clear(){this.cache.clear()}}const B=a=>(Ht("data-v-88ca8a16"),a=a(),Qt(),a),Us=["aria-owns"],qs={class:"shell"},Gs=["title"],Hs=B(()=>_("span",{"aria-hidden":"true",class:"vpi-search search-icon local-search-icon"},null,-1)),Qs=[Hs],Ys={class:"search-actions before"},Zs=["title"],Xs=B(()=>_("span",{class:"vpi-arrow-left local-search-icon"},null,-1)),en=[Xs],tn=["placeholder"],sn={class:"search-actions"},nn=["title"],rn=B(()=>_("span",{class:"vpi-layout-list local-search-icon"},null,-1)),an=[rn],on=["disabled","title"],cn=B(()=>_("span",{class:"vpi-delete local-search-icon"},null,-1)),ln=[cn],un=["id","role","aria-labelledby"],dn=["aria-selected"],hn=["href","aria-label","onMouseenter","onFocusin"],fn={class:"titles"},pn=B(()=>_("span",{class:"title-icon"},"#",-1)),vn=["innerHTML"],mn=B(()=>_("span",{class:"vpi-chevron-right local-search-icon"},null,-1)),gn={class:"title main"},bn=["innerHTML"],yn={key:0,class:"excerpt-wrapper"},wn={key:0,class:"excerpt",inert:""},_n=["innerHTML"],xn=B(()=>_("div",{class:"excerpt-gradient-bottom"},null,-1)),Sn=B(()=>_("div",{class:"excerpt-gradient-top"},null,-1)),En={key:0,class:"no-results"},In={class:"search-keyboard-shortcuts"},Tn=["aria-label"],Nn=B(()=>_("span",{class:"vpi-arrow-up navigate-icon"},null,-1)),kn=[Nn],Fn=["aria-label"],On=B(()=>_("span",{class:"vpi-arrow-down navigate-icon"},null,-1)),Rn=[On],Cn=["aria-label"],Mn=B(()=>_("span",{class:"vpi-corner-down-left navigate-icon"},null,-1)),An=[Mn],Ln=["aria-label"],Dn=Mt({__name:"VPLocalSearchBox",emits:["close"],setup(a,{emit:e}){var F,M;const t=e,s=be(),n=be(),r=be(is),i=ss(),{activate:o}=Rs(s,{immediate:!0,allowOutsideClick:!0,clickOutsideDeactivates:!0,escapeDeactivates:!0}),{localeIndex:c,theme:l}=i,h=et(async()=>{var p,g,N,O,P,j,T,L,G;return it(le.loadJSON((N=await((g=(p=r.value)[c.value])==null?void 0:g.call(p)))==null?void 0:N.default,{fields:["title","titles","text"],storeFields:["title","titles"],searchOptions:{fuzzy:.2,prefix:!0,boost:{title:4,text:2,titles:1},...((O=l.value.search)==null?void 0:O.provider)==="local"&&((j=(P=l.value.search.options)==null?void 0:P.miniSearch)==null?void 0:j.searchOptions)},...((T=l.value.search)==null?void 0:T.provider)==="local"&&((G=(L=l.value.search.options)==null?void 0:L.miniSearch)==null?void 0:G.options)}))}),v=ye(()=>{var p,g;return((p=l.value.search)==null?void 0:p.provider)==="local"&&((g=l.value.search.options)==null?void 0:g.disableQueryPersistence)===!0}).value?ne(""):At("vitepress:local-search-filter",""),y=Lt("vitepress:local-search-detailed-list",((F=l.value.search)==null?void 0:F.provider)==="local"&&((M=l.value.search.options)==null?void 0:M.detailedView)===!0),w=ye(()=>{var p,g,N;return((p=l.value.search)==null?void 0:p.provider)==="local"&&(((g=l.value.search.options)==null?void 0:g.disableDetailedView)===!0||((N=l.value.search.options)==null?void 0:N.detailedView)===!1)}),b=ye(()=>{var g,N,O,P,j,T,L;const p=((g=l.value.search)==null?void 0:g.options)??l.value.algolia;return((j=(P=(O=(N=p==null?void 0:p.locales)==null?void 0:N[c.value])==null?void 0:O.translations)==null?void 0:P.button)==null?void 0:j.buttonText)||((L=(T=p==null?void 0:p.translations)==null?void 0:T.button)==null?void 0:L.buttonText)||"Search"});Dt(()=>{w.value&&(y.value=!1)});const x=be([]),C=ne(!1);Ve(v,()=>{C.value=!1});const R=et(async()=>{if(n.value)return it(new Ms(n.value))},null),W=new Js(16);zt(()=>[h.value,v.value,y.value],async([p,g,N],O,P)=>{var me,qe,Ge,He;(O==null?void 0:O[0])!==p&&W.clear();let j=!1;if(P(()=>{j=!0}),!p)return;x.value=p.search(g).slice(0,16),C.value=!0;const T=N?await Promise.all(x.value.map($=>J($.id))):[];if(j)return;for(const{id:$,mod:ee}of T){const te=$.slice(0,$.indexOf("#"));let Y=W.get(te);if(Y)continue;Y=new Map,W.set(te,Y);const H=ee.default??ee;if(H!=null&&H.render||H!=null&&H.setup){const se=Yt(H);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(ue=>{var Xe;const ge=(Xe=ue.querySelector("a"))==null?void 0:Xe.getAttribute("href"),Ye=(ge==null?void 0:ge.startsWith("#"))&&ge.slice(1);if(!Ye)return;let Ze="";for(;(ue=ue.nextElementSibling)&&!/^h[1-6]$/i.test(ue.tagName);)Ze+=ue.outerHTML;Y.set(Ye,Ze)}),se.unmount()}if(j)return}const L=new Set;if(x.value=x.value.map($=>{const[ee,te]=$.id.split("#"),Y=W.get(ee),H=(Y==null?void 0:Y.get(te))??"";for(const se in $.match)L.add(se);return{...$,text:H}}),await de(),j)return;await new Promise($=>{var ee;(ee=R.value)==null||ee.unmark({done:()=>{var te;(te=R.value)==null||te.markRegExp(k(L),{done:$})}})});const G=((me=s.value)==null?void 0:me.querySelectorAll(".result .excerpt"))??[];for(const $ of G)(qe=$.querySelector('mark[data-markjs="true"]'))==null||qe.scrollIntoView({block:"center"});(He=(Ge=n.value)==null?void 0:Ge.firstElementChild)==null||He.scrollIntoView({block:"start"})},{debounce:200,immediate:!0});async function J(p){const g=Xt(p.slice(0,p.indexOf("#")));try{if(!g)throw new Error(`Cannot find file for id: ${p}`);return{id:p,mod:await import(((u)=>{if(u.startsWith('/')){return"https://registry.npmmirror.com/@gkd-kit/docs/0.0.1725011887959/files/.vitepress/dist"+u}return u})(g))}}catch(N){return console.error(N),{id:p,mod:{}}}}const V=ne(),U=ye(()=>{var p;return((p=v.value)==null?void 0:p.length)<=0});function q(p=!0){var g,N;(g=V.value)==null||g.focus(),p&&((N=V.value)==null||N.select())}Me(()=>{q()});function Re(p){p.pointerType==="mouse"&&q()}const A=ne(-1),K=ne(!1);Ve(x,p=>{A.value=p.length?0:-1,I()});function I(){de(()=>{const p=document.querySelector(".result.selected");p==null||p.scrollIntoView({block:"nearest"})})}we("ArrowUp",p=>{p.preventDefault(),A.value--,A.value<0&&(A.value=x.value.length-1),K.value=!0,I()}),we("ArrowDown",p=>{p.preventDefault(),A.value++,A.value>=x.value.length&&(A.value=0),K.value=!0,I()});const u=Pt();we("Enter",p=>{if(p.isComposing||p.target instanceof HTMLButtonElement&&p.target.type!=="submit")return;const g=x.value[A.value];if(p.target instanceof HTMLInputElement&&!g){p.preventDefault();return}g&&(u.go(g.id),t("close"))}),we("Escape",()=>{t("close")});const m=ns({modal:{displayDetails:"Display detailed list",resetButtonTitle:"Reset search",backButtonTitle:"Close search",noResultsText:"No results for",footer:{selectText:"to select",selectKeyAriaLabel:"enter",navigateText:"to navigate",navigateUpKeyAriaLabel:"up arrow",navigateDownKeyAriaLabel:"down arrow",closeText:"to close",closeKeyAriaLabel:"escape"}}});Me(()=>{window.history.pushState(null,"",null)}),jt("popstate",p=>{p.preventDefault(),t("close")});const S=Vt($t?document.body:null);Me(()=>{de(()=>{S.value=!0,de().then(()=>o())})}),Bt(()=>{S.value=!1});function E(){v.value="",de().then(()=>q(!1))}function k(p){return new RegExp([...p].sort((g,N)=>N.length-g.length).map(g=>`(${es(g)})`).join("|"),"gi")}return(p,g)=>{var N,O,P,j;return Q(),Wt(Gt,{to:"body"},[_("div",{ref_key:"el",ref:s,role:"button","aria-owns":(N=x.value)!=null&&N.length?"localsearch-list":void 0,"aria-expanded":"true","aria-haspopup":"listbox","aria-labelledby":"localsearch-label",class:"VPLocalSearchBox"},[_("div",{class:"backdrop",onClick:g[0]||(g[0]=T=>p.$emit("close"))}),_("div",qs,[_("form",{class:"search-bar",onPointerup:g[4]||(g[4]=T=>Re(T)),onSubmit:g[5]||(g[5]=Kt(()=>{},["prevent"]))},[_("label",{title:b.value,id:"localsearch-label",for:"localsearch-input"},Qs,8,Gs),_("div",Ys,[_("button",{class:"back-button",title:D(m)("modal.backButtonTitle"),onClick:g[1]||(g[1]=T=>p.$emit("close"))},en,8,Zs)]),Jt(_("input",{ref_key:"searchInput",ref:V,"onUpdate:modelValue":g[2]||(g[2]=T=>qt(v)?v.value=T:null),placeholder:b.value,id:"localsearch-input","aria-labelledby":"localsearch-label",class:"search-input"},null,8,tn),[[Ut,D(v)]]),_("div",sn,[w.value?_e("",!0):(Q(),Z("button",{key:0,class:tt(["toggle-layout-button",{"detailed-list":D(y)}]),type:"button",title:D(m)("modal.displayDetails"),onClick:g[3]||(g[3]=T=>A.value>-1&&(y.value=!D(y)))},an,10,nn)),_("button",{class:"clear-button",type:"reset",disabled:U.value,title:D(m)("modal.resetButtonTitle"),onClick:E},ln,8,on)])],32),_("ul",{ref_key:"resultsEl",ref:n,id:(O=x.value)!=null&&O.length?"localsearch-list":void 0,role:(P=x.value)!=null&&P.length?"listbox":void 0,"aria-labelledby":(j=x.value)!=null&&j.length?"localsearch-label":void 0,class:"results",onMousemove:g[7]||(g[7]=T=>K.value=!1)},[(Q(!0),Z(nt,null,st(x.value,(T,L)=>(Q(),Z("li",{key:T.id,role:"option","aria-selected":A.value===L?"true":"false"},[_("a",{href:T.id,class:tt(["result",{selected:A.value===L}]),"aria-label":[...T.titles,T.title].join(" > "),onMouseenter:G=>!K.value&&(A.value=L),onFocusin:G=>A.value=L,onClick:g[6]||(g[6]=G=>p.$emit("close"))},[_("div",null,[_("div",fn,[pn,(Q(!0),Z(nt,null,st(T.titles,(G,me)=>(Q(),Z("span",{key:me,class:"title"},[_("span",{class:"text",innerHTML:G},null,8,vn),mn]))),128)),_("span",gn,[_("span",{class:"text",innerHTML:T.title},null,8,bn)])]),D(y)?(Q(),Z("div",yn,[T.text?(Q(),Z("div",wn,[_("div",{class:"vp-doc",innerHTML:T.text},null,8,_n)])):_e("",!0),xn,Sn])):_e("",!0)])],42,hn)],8,dn))),128)),D(v)&&!x.value.length&&C.value?(Q(),Z("li",En,[he(fe(D(m)("modal.noResultsText"))+' "',1),_("strong",null,fe(D(v)),1),he('" ')])):_e("",!0)],40,un),_("div",In,[_("span",null,[_("kbd",{"aria-label":D(m)("modal.footer.navigateUpKeyAriaLabel")},kn,8,Tn),_("kbd",{"aria-label":D(m)("modal.footer.navigateDownKeyAriaLabel")},Rn,8,Fn),he(" "+fe(D(m)("modal.footer.navigateText")),1)]),_("span",null,[_("kbd",{"aria-label":D(m)("modal.footer.selectKeyAriaLabel")},An,8,Cn),he(" "+fe(D(m)("modal.footer.selectText")),1)]),_("span",null,[_("kbd",{"aria-label":D(m)("modal.footer.closeKeyAriaLabel")},"esc",8,Ln),he(" "+fe(D(m)("modal.footer.closeText")),1)])])])],8,Us)])}}}),Bn=ts(Dn,[["__scopeId","data-v-88ca8a16"]]);export{Bn as default};
@@ -0,0 +1 @@
1
+ import{d as f,o as a,c as l,r as c,n as N,a as O,t as S,b,w as h,e as _,T as fe,_ as $,u as Ye,i as Xe,f as Ze,g as _e,h as y,j as p,k as r,p as H,l as E,m as q,q as ue,s as I,v as U,x as te,y as W,z as me,A as ke,B as Qe,C as xe,D as K,F as M,E as B,G as Y,H as oe,I as m,J as D,K as Ie,L as ne,M as R,N as se,O as et,P as Ne,Q as de,R as tt,S as Me,U as ae,V as ot,W as nt,X,Y as Ae,Z as Ce,$ as st,a0 as at,a1 as rt,a2 as it,a3 as lt,a4 as Z,a5 as ct,a6 as ut,a7 as dt}from"./framework.DAuRlsJR.js";const pt=f({__name:"VPBadge",props:{text:{},type:{default:"tip"}},setup(o){return(e,t)=>(a(),l("span",{class:N(["VPBadge",e.type])},[c(e.$slots,"default",{},()=>[O(S(e.text),1)])],2))}}),vt={key:0,class:"VPBackdrop"},ht=f({__name:"VPBackdrop",props:{show:{type:Boolean}},setup(o){return(e,t)=>(a(),b(fe,{name:"fade"},{default:h(()=>[e.show?(a(),l("div",vt)):_("",!0)]),_:1}))}}),ft=$(ht,[["__scopeId","data-v-0145de4e"]]),V=Ye;function _t(o,e){let t,s=!1;return()=>{t&&clearTimeout(t),s?t=setTimeout(o,e):(o(),(s=!0)&&setTimeout(()=>s=!1,e))}}function pe(o){return/^\//.test(o)?o:`/${o}`}function be(o){const{pathname:e,search:t,hash:s,protocol:n}=new URL(o,"http://a.com");if(Xe(o)||o.startsWith("#")||!n.startsWith("http")||!Ze(e))return o;const{site:i}=V(),u=e.endsWith("/")||e.endsWith(".html")?o:o.replace(/(?:(^\.+)\/)?.*$/,`$1${e.replace(/(\.md)?$/,i.value.cleanUrls?"":".html")}${t}${s}`);return _e(u)}function Q({correspondingLink:o=!1}={}){const{site:e,localeIndex:t,page:s,theme:n,hash:i}=V(),u=y(()=>{var d,k;return{label:(d=e.value.locales[t.value])==null?void 0:d.label,link:((k=e.value.locales[t.value])==null?void 0:k.link)||(t.value==="root"?"/":`/${t.value}/`)}});return{localeLinks:y(()=>Object.entries(e.value.locales).flatMap(([d,k])=>u.value.label===k.label?[]:{text:k.label,link:mt(k.link||(d==="root"?"/":`/${d}/`),n.value.i18nRouting!==!1&&o,s.value.relativePath.slice(u.value.link.length-1),!e.value.cleanUrls)+i.value})),currentLang:u}}function mt(o,e,t,s){return e?o.replace(/\/$/,"")+pe(t.replace(/(^|\/)index\.md$/,"$1").replace(/\.md$/,s?".html":"")):o}const kt=o=>(H("data-v-7ea965a2"),o=o(),E(),o),bt={class:"NotFound"},gt={class:"code"},$t={class:"title"},yt=kt(()=>p("div",{class:"divider"},null,-1)),Pt={class:"quote"},Vt={class:"action"},Lt=["href","aria-label"],St=f({__name:"NotFound",setup(o){const{theme:e}=V(),{currentLang:t}=Q();return(s,n)=>{var i,u,v,d,k;return a(),l("div",bt,[p("p",gt,S(((i=r(e).notFound)==null?void 0:i.code)??"404"),1),p("h1",$t,S(((u=r(e).notFound)==null?void 0:u.title)??"PAGE NOT FOUND"),1),yt,p("blockquote",Pt,S(((v=r(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),p("div",Vt,[p("a",{class:"link",href:r(_e)(r(t).link),"aria-label":((d=r(e).notFound)==null?void 0:d.linkLabel)??"go to home"},S(((k=r(e).notFound)==null?void 0:k.linkText)??"Take me home"),9,Lt)])])}}}),wt=$(St,[["__scopeId","data-v-7ea965a2"]]);function Be(o,e){if(Array.isArray(o))return x(o);if(o==null)return[];e=pe(e);const t=Object.keys(o).sort((n,i)=>i.split("/").length-n.split("/").length).find(n=>e.startsWith(pe(n))),s=t?o[t]:[];return Array.isArray(s)?x(s):x(s.items,s.base)}function Tt(o){const e=[];let t=0;for(const s in o){const n=o[s];if(n.items){t=e.push(n);continue}e[t]||e.push({items:[]}),e[t].items.push(n)}return e}function It(o){const e=[];function t(s){for(const n of s)n.text&&n.link&&e.push({text:n.text,link:n.link,docFooterText:n.docFooterText}),n.items&&t(n.items)}return t(o),e}function ve(o,e){return Array.isArray(e)?e.some(t=>ve(o,t)):q(o,e.link)?!0:e.items?ve(o,e.items):!1}function x(o,e){return[...o].map(t=>{const s={...t},n=s.base||e;return n&&s.link&&(s.link=n+s.link),s.items&&(s.items=x(s.items,n)),s})}function G(){const{frontmatter:o,page:e,theme:t}=V(),s=ue("(min-width: 960px)"),n=I(!1),i=y(()=>{const C=t.value.sidebar,w=e.value.relativePath;return C?Be(C,w):[]}),u=I(i.value);U(i,(C,w)=>{JSON.stringify(C)!==JSON.stringify(w)&&(u.value=i.value)});const v=y(()=>o.value.sidebar!==!1&&u.value.length>0&&o.value.layout!=="home"),d=y(()=>k?o.value.aside==null?t.value.aside==="left":o.value.aside==="left":!1),k=y(()=>o.value.layout==="home"?!1:o.value.aside!=null?!!o.value.aside:t.value.aside!==!1),P=y(()=>v.value&&s.value),g=y(()=>v.value?Tt(u.value):[]);function L(){n.value=!0}function T(){n.value=!1}function A(){n.value?T():L()}return{isOpen:n,sidebar:u,sidebarGroups:g,hasSidebar:v,hasAside:k,leftAside:d,isSidebarEnabled:P,open:L,close:T,toggle:A}}function Nt(o,e){let t;te(()=>{t=o.value?document.activeElement:void 0}),W(()=>{window.addEventListener("keyup",s)}),me(()=>{window.removeEventListener("keyup",s)});function s(n){n.key==="Escape"&&o.value&&(e(),t==null||t.focus())}}function Mt(o){const{page:e,hash:t}=V(),s=I(!1),n=y(()=>o.value.collapsed!=null),i=y(()=>!!o.value.link),u=I(!1),v=()=>{u.value=q(e.value.relativePath,o.value.link)};U([e,o,t],v),W(v);const d=y(()=>u.value?!0:o.value.items?ve(e.value.relativePath,o.value.items):!1),k=y(()=>!!(o.value.items&&o.value.items.length));te(()=>{s.value=!!(n.value&&o.value.collapsed)}),ke(()=>{(u.value||d.value)&&(s.value=!1)});function P(){n.value&&(s.value=!s.value)}return{collapsed:s,collapsible:n,isLink:i,isActiveLink:u,hasActiveLink:d,hasChildren:k,toggle:P}}function At(){const{hasSidebar:o}=G(),e=ue("(min-width: 960px)"),t=ue("(min-width: 1280px)");return{isAsideEnabled:y(()=>!t.value&&!e.value?!1:o.value?t.value:e.value)}}const he=[];function He(o){return typeof o.outline=="object"&&!Array.isArray(o.outline)&&o.outline.label||o.outlineTitle||"On this page"}function ge(o){const e=[...document.querySelectorAll(".VPDoc :where(h1,h2,h3,h4,h5,h6)")].filter(t=>t.id&&t.hasChildNodes()).map(t=>{const s=Number(t.tagName[1]);return{element:t,title:Ct(t),link:"#"+t.id,level:s}});return Bt(e,o)}function Ct(o){let e="";for(const t of o.childNodes)if(t.nodeType===1){if(t.classList.contains("VPBadge")||t.classList.contains("header-anchor")||t.classList.contains("ignore-header"))continue;e+=t.textContent}else t.nodeType===3&&(e+=t.textContent);return e.trim()}function Bt(o,e){if(e===!1)return[];const t=(typeof e=="object"&&!Array.isArray(e)?e.level:e)||2,[s,n]=typeof t=="number"?[t,t]:t==="deep"?[2,6]:t;o=o.filter(u=>u.level>=s&&u.level<=n),he.length=0;for(const{element:u,link:v}of o)he.push({element:u,link:v});const i=[];e:for(let u=0;u<o.length;u++){const v=o[u];if(u===0)i.push(v);else{for(let d=u-1;d>=0;d--){const k=o[d];if(k.level<v.level){(k.children||(k.children=[])).push(v);continue e}}i.push(v)}}return i}function Ht(o,e){const{isAsideEnabled:t}=At(),s=_t(i,100);let n=null;W(()=>{requestAnimationFrame(i),window.addEventListener("scroll",s)}),Qe(()=>{u(location.hash)}),me(()=>{window.removeEventListener("scroll",s)});function i(){if(!t.value)return;const v=window.scrollY,d=window.innerHeight,k=document.body.offsetHeight,P=Math.abs(v+d-k)<1,g=he.map(({element:T,link:A})=>({link:A,top:Et(T)})).filter(({top:T})=>!Number.isNaN(T)).sort((T,A)=>T.top-A.top);if(!g.length){u(null);return}if(v<1){u(null);return}if(P){u(g[g.length-1].link);return}let L=null;for(const{link:T,top:A}of g){if(A>v+xe()+4)break;L=T}u(L)}function u(v){n&&n.classList.remove("active"),v==null?n=null:n=o.value.querySelector(`a[href="${decodeURIComponent(v)}"]`);const d=n;d?(d.classList.add("active"),e.value.style.top=d.offsetTop+39+"px",e.value.style.opacity="1"):(e.value.style.top="33px",e.value.style.opacity="0")}}function Et(o){let e=0;for(;o!==document.body;){if(o===null)return NaN;e+=o.offsetTop,o=o.offsetParent}return e}const Dt=["href","title"],Ft=f({__name:"VPDocOutlineItem",props:{headers:{},root:{type:Boolean}},setup(o){function e({target:t}){const s=t.href.split("#")[1],n=document.getElementById(decodeURIComponent(s));n==null||n.focus({preventScroll:!0})}return(t,s)=>{const n=K("VPDocOutlineItem",!0);return a(),l("ul",{class:N(["VPDocOutlineItem",t.root?"root":"nested"])},[(a(!0),l(M,null,B(t.headers,({children:i,link:u,title:v})=>(a(),l("li",null,[p("a",{class:"outline-link",href:u,onClick:e,title:v},S(v),9,Dt),i!=null&&i.length?(a(),b(n,{key:0,headers:i},null,8,["headers"])):_("",!0)]))),256))],2)}}}),Ee=$(Ft,[["__scopeId","data-v-346ac9e1"]]),Ot={class:"content"},Ut={"aria-level":"2",class:"outline-title",id:"doc-outline-aria-label",role:"heading"},Gt=f({__name:"VPDocAsideOutline",setup(o){const{frontmatter:e,theme:t}=V(),s=Y([]);oe(()=>{s.value=ge(e.value.outline??t.value.outline)});const n=I(),i=I();return Ht(n,i),(u,v)=>(a(),l("nav",{"aria-labelledby":"doc-outline-aria-label",class:N(["VPDocAsideOutline",{"has-outline":s.value.length>0}]),ref_key:"container",ref:n},[p("div",Ot,[p("div",{class:"outline-marker",ref_key:"marker",ref:i},null,512),p("div",Ut,S(r(He)(r(t))),1),m(Ee,{headers:s.value,root:!0},null,8,["headers"])])],2))}}),jt=$(Gt,[["__scopeId","data-v-e97605e1"]]),zt={class:"VPDocAsideCarbonAds"},Rt=f({__name:"VPDocAsideCarbonAds",props:{carbonAds:{}},setup(o){const e=()=>null;return(t,s)=>(a(),l("div",zt,[m(r(e),{"carbon-ads":t.carbonAds},null,8,["carbon-ads"])]))}}),Wt=o=>(H("data-v-bf8ab8be"),o=o(),E(),o),qt={class:"VPDocAside"},Kt=Wt(()=>p("div",{class:"spacer"},null,-1)),Jt=f({__name:"VPDocAside",setup(o){const{theme:e}=V();return(t,s)=>(a(),l("div",qt,[c(t.$slots,"aside-top",{},void 0,!0),c(t.$slots,"aside-outline-before",{},void 0,!0),m(jt),c(t.$slots,"aside-outline-after",{},void 0,!0),Kt,c(t.$slots,"aside-ads-before",{},void 0,!0),r(e).carbonAds?(a(),b(Rt,{key:0,"carbon-ads":r(e).carbonAds},null,8,["carbon-ads"])):_("",!0),c(t.$slots,"aside-ads-after",{},void 0,!0),c(t.$slots,"aside-bottom",{},void 0,!0)]))}}),Yt=$(Jt,[["__scopeId","data-v-bf8ab8be"]]);function Xt(){const{theme:o,page:e}=V();return y(()=>{const{text:t="Edit this page",pattern:s=""}=o.value.editLink||{};let n;return typeof s=="function"?n=s(e.value):n=s.replace(/:path/g,e.value.filePath),{url:n,text:t}})}function Zt(){const{page:o,theme:e,frontmatter:t}=V();return y(()=>{var k,P,g,L,T,A,C,w;const s=Be(e.value.sidebar,o.value.relativePath),n=It(s),i=Qt(n,j=>j.link.replace(/[?#].*$/,"")),u=i.findIndex(j=>q(o.value.relativePath,j.link)),v=((k=e.value.docFooter)==null?void 0:k.prev)===!1&&!t.value.prev||t.value.prev===!1,d=((P=e.value.docFooter)==null?void 0:P.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=i[u-1])==null?void 0:g.docFooterText)??((L=i[u-1])==null?void 0:L.text),link:(typeof t.value.prev=="object"?t.value.prev.link:void 0)??((T=i[u-1])==null?void 0:T.link)},next:d?void 0:{text:(typeof t.value.next=="string"?t.value.next:typeof t.value.next=="object"?t.value.next.text:void 0)??((A=i[u+1])==null?void 0:A.docFooterText)??((C=i[u+1])==null?void 0:C.text),link:(typeof t.value.next=="object"?t.value.next.link:void 0)??((w=i[u+1])==null?void 0:w.link)}}})}function Qt(o,e){const t=new Set;return o.filter(s=>{const n=e(s);return t.has(n)?!1:t.add(n)})}const F=f({__name:"VPLink",props:{tag:{},href:{},noIcon:{type:Boolean},target:{},rel:{}},setup(o){const e=o,t=y(()=>e.tag??(e.href?"a":"span")),s=y(()=>e.href&&Ie.test(e.href)||e.target==="_blank");return(n,i)=>(a(),b(D(t.value),{class:N(["VPLink",{link:n.href,"vp-external-link-icon":s.value,"no-icon":n.noIcon}]),href:n.href?r(be)(n.href):void 0,target:n.target??(s.value?"_blank":void 0),rel:n.rel??(s.value?"noreferrer":void 0)},{default:h(()=>[c(n.$slots,"default")]),_:3},8,["class","href","target","rel"]))}}),xt={class:"VPLastUpdated"},eo=["datetime"],to=f({__name:"VPDocFooterLastUpdated",setup(o){const{theme:e,page:t,lang:s}=V(),n=y(()=>new Date(t.value.lastUpdated)),i=y(()=>n.value.toISOString()),u=I("");return W(()=>{te(()=>{var v,d,k;u.value=new Intl.DateTimeFormat((d=(v=e.value.lastUpdated)==null?void 0:v.formatOptions)!=null&&d.forceLocale?s.value:void 0,((k=e.value.lastUpdated)==null?void 0:k.formatOptions)??{dateStyle:"short",timeStyle:"short"}).format(n.value)})}),(v,d)=>{var k;return a(),l("p",xt,[O(S(((k=r(e).lastUpdated)==null?void 0:k.text)||r(e).lastUpdatedText||"Last updated")+": ",1),p("time",{datetime:i.value},S(u.value),9,eo)])}}}),oo=$(to,[["__scopeId","data-v-213e9f11"]]),De=o=>(H("data-v-670f1da1"),o=o(),E(),o),no={key:0,class:"VPDocFooter"},so={key:0,class:"edit-info"},ao={key:0,class:"edit-link"},ro=De(()=>p("span",{class:"vpi-square-pen edit-link-icon"},null,-1)),io={key:1,class:"last-updated"},lo={key:1,class:"prev-next","aria-labelledby":"doc-footer-aria-label"},co=De(()=>p("span",{class:"visually-hidden",id:"doc-footer-aria-label"},"Pager",-1)),uo={class:"pager"},po=["innerHTML"],vo=["innerHTML"],ho={class:"pager"},fo=["innerHTML"],_o=["innerHTML"],mo=f({__name:"VPDocFooter",setup(o){const{theme:e,page:t,frontmatter:s}=V(),n=Xt(),i=Zt(),u=y(()=>e.value.editLink&&s.value.editLink!==!1),v=y(()=>t.value.lastUpdated),d=y(()=>u.value||v.value||i.value.prev||i.value.next);return(k,P)=>{var g,L,T,A;return d.value?(a(),l("footer",no,[c(k.$slots,"doc-footer-before",{},void 0,!0),u.value||v.value?(a(),l("div",so,[u.value?(a(),l("div",ao,[m(F,{class:"edit-link-button",href:r(n).url,"no-icon":!0},{default:h(()=>[ro,O(" "+S(r(n).text),1)]),_:1},8,["href"])])):_("",!0),v.value?(a(),l("div",io,[m(oo)])):_("",!0)])):_("",!0),(g=r(i).prev)!=null&&g.link||(L=r(i).next)!=null&&L.link?(a(),l("nav",lo,[co,p("div",uo,[(T=r(i).prev)!=null&&T.link?(a(),b(F,{key:0,class:"pager-link prev",href:r(i).prev.link},{default:h(()=>{var C;return[p("span",{class:"desc",innerHTML:((C=r(e).docFooter)==null?void 0:C.prev)||"Previous page"},null,8,po),p("span",{class:"title",innerHTML:r(i).prev.text},null,8,vo)]}),_:1},8,["href"])):_("",!0)]),p("div",ho,[(A=r(i).next)!=null&&A.link?(a(),b(F,{key:0,class:"pager-link next",href:r(i).next.link},{default:h(()=>{var C;return[p("span",{class:"desc",innerHTML:((C=r(e).docFooter)==null?void 0:C.next)||"Next page"},null,8,fo),p("span",{class:"title",innerHTML:r(i).next.text},null,8,_o)]}),_:1},8,["href"])):_("",!0)])])):_("",!0)])):_("",!0)}}}),ko=$(mo,[["__scopeId","data-v-670f1da1"]]),bo=o=>(H("data-v-1d6a35e2"),o=o(),E(),o),go={class:"container"},$o=bo(()=>p("div",{class:"aside-curtain"},null,-1)),yo={class:"aside-container"},Po={class:"aside-content"},Vo={class:"content"},Lo={class:"content-container"},So={class:"main"},wo=f({__name:"VPDoc",setup(o){const{theme:e}=V(),t=ne(),{hasSidebar:s,hasAside:n,leftAside:i}=G(),u=y(()=>t.path.replace(/[./]+/g,"_").replace(/_html$/,""));return(v,d)=>{const k=K("Content");return a(),l("div",{class:N(["VPDoc",{"has-sidebar":r(s),"has-aside":r(n)}])},[c(v.$slots,"doc-top",{},void 0,!0),p("div",go,[r(n)?(a(),l("div",{key:0,class:N(["aside",{"left-aside":r(i)}])},[$o,p("div",yo,[p("div",Po,[m(Yt,null,{"aside-top":h(()=>[c(v.$slots,"aside-top",{},void 0,!0)]),"aside-bottom":h(()=>[c(v.$slots,"aside-bottom",{},void 0,!0)]),"aside-outline-before":h(()=>[c(v.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":h(()=>[c(v.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":h(()=>[c(v.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":h(()=>[c(v.$slots,"aside-ads-after",{},void 0,!0)]),_:3})])])],2)):_("",!0),p("div",Vo,[p("div",Lo,[c(v.$slots,"doc-before",{},void 0,!0),p("main",So,[m(k,{class:N(["vp-doc",[u.value,r(e).externalLinkIcon&&"external-link-icon-enabled"]])},null,8,["class"])]),m(ko,null,{"doc-footer-before":h(()=>[c(v.$slots,"doc-footer-before",{},void 0,!0)]),_:3}),c(v.$slots,"doc-after",{},void 0,!0)])])]),c(v.$slots,"doc-bottom",{},void 0,!0)],2)}}}),To=$(wo,[["__scopeId","data-v-1d6a35e2"]]),Io=f({__name:"VPButton",props:{tag:{},size:{default:"medium"},theme:{default:"brand"},text:{},href:{},target:{},rel:{}},setup(o){const e=o,t=y(()=>e.href&&Ie.test(e.href)),s=y(()=>e.tag||e.href?"a":"button");return(n,i)=>(a(),b(D(s.value),{class:N(["VPButton",[n.size,n.theme]]),href:n.href?r(be)(n.href):void 0,target:e.target??(t.value?"_blank":void 0),rel:e.rel??(t.value?"noreferrer":void 0)},{default:h(()=>[O(S(n.text),1)]),_:1},8,["class","href","target","rel"]))}}),No=$(Io,[["__scopeId","data-v-d8218fcc"]]),Mo=["src","alt"],Ao=f({inheritAttrs:!1,__name:"VPImage",props:{image:{},alt:{}},setup(o){return(e,t)=>{const s=K("VPImage",!0);return e.image?(a(),l(M,{key:0},[typeof e.image=="string"||"src"in e.image?(a(),l("img",R({key:0,class:"VPImage"},typeof e.image=="string"?e.$attrs:{...e.image,...e.$attrs},{src:r(_e)(typeof e.image=="string"?e.image:e.image.src),alt:e.alt??(typeof e.image=="string"?"":e.image.alt||"")}),null,16,Mo)):(a(),l(M,{key:1},[m(s,R({class:"dark",image:e.image.dark,alt:e.image.alt},e.$attrs),null,16,["image","alt"]),m(s,R({class:"light",image:e.image.light,alt:e.image.alt},e.$attrs),null,16,["image","alt"])],64))],64)):_("",!0)}}}),ee=$(Ao,[["__scopeId","data-v-3345ae0d"]]),Co=o=>(H("data-v-502fab92"),o=o(),E(),o),Bo={class:"container"},Ho={class:"main"},Eo={key:0,class:"name"},Do=["innerHTML"],Fo=["innerHTML"],Oo=["innerHTML"],Uo={key:0,class:"actions"},Go={key:0,class:"image"},jo={class:"image-container"},zo=Co(()=>p("div",{class:"image-bg"},null,-1)),Ro=f({__name:"VPHero",props:{name:{},text:{},tagline:{},image:{},actions:{}},setup(o){const e=se("hero-image-slot-exists");return(t,s)=>(a(),l("div",{class:N(["VPHero",{"has-image":t.image||r(e)}])},[p("div",Bo,[p("div",Ho,[c(t.$slots,"home-hero-info-before",{},void 0,!0),c(t.$slots,"home-hero-info",{},()=>[t.name?(a(),l("h1",Eo,[p("span",{innerHTML:t.name,class:"clip"},null,8,Do)])):_("",!0),t.text?(a(),l("p",{key:1,innerHTML:t.text,class:"text"},null,8,Fo)):_("",!0),t.tagline?(a(),l("p",{key:2,innerHTML:t.tagline,class:"tagline"},null,8,Oo)):_("",!0)],!0),c(t.$slots,"home-hero-info-after",{},void 0,!0),t.actions?(a(),l("div",Uo,[(a(!0),l(M,null,B(t.actions,n=>(a(),l("div",{key:n.link,class:"action"},[m(No,{tag:"a",size:"medium",theme:n.theme,text:n.text,href:n.link,target:n.target,rel:n.rel},null,8,["theme","text","href","target","rel"])]))),128))])):_("",!0),c(t.$slots,"home-hero-actions-after",{},void 0,!0)]),t.image||r(e)?(a(),l("div",Go,[p("div",jo,[zo,c(t.$slots,"home-hero-image",{},()=>[t.image?(a(),b(ee,{key:0,class:"image-src",image:t.image},null,8,["image"])):_("",!0)],!0)])])):_("",!0)])],2))}}),Wo=$(Ro,[["__scopeId","data-v-502fab92"]]),qo=f({__name:"VPHomeHero",setup(o){const{frontmatter:e}=V();return(t,s)=>r(e).hero?(a(),b(Wo,{key:0,class:"VPHomeHero",name:r(e).hero.name,text:r(e).hero.text,tagline:r(e).hero.tagline,image:r(e).hero.image,actions:r(e).hero.actions},{"home-hero-info-before":h(()=>[c(t.$slots,"home-hero-info-before")]),"home-hero-info":h(()=>[c(t.$slots,"home-hero-info")]),"home-hero-info-after":h(()=>[c(t.$slots,"home-hero-info-after")]),"home-hero-actions-after":h(()=>[c(t.$slots,"home-hero-actions-after")]),"home-hero-image":h(()=>[c(t.$slots,"home-hero-image")]),_:3},8,["name","text","tagline","image","actions"])):_("",!0)}}),Ko=o=>(H("data-v-b2fee82c"),o=o(),E(),o),Jo={class:"box"},Yo={key:0,class:"icon"},Xo=["innerHTML"],Zo=["innerHTML"],Qo=["innerHTML"],xo={key:4,class:"link-text"},en={class:"link-text-value"},tn=Ko(()=>p("span",{class:"vpi-arrow-right link-text-icon"},null,-1)),on=f({__name:"VPFeature",props:{icon:{},title:{},details:{},link:{},linkText:{},rel:{},target:{}},setup(o){return(e,t)=>(a(),b(F,{class:"VPFeature",href:e.link,rel:e.rel,target:e.target,"no-icon":!0,tag:e.link?"a":"div"},{default:h(()=>[p("article",Jo,[typeof e.icon=="object"&&e.icon.wrap?(a(),l("div",Yo,[m(ee,{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(ee,{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(),l("div",{key:2,class:"icon",innerHTML:e.icon},null,8,Xo)):_("",!0),p("h2",{class:"title",innerHTML:e.title},null,8,Zo),e.details?(a(),l("p",{key:3,class:"details",innerHTML:e.details},null,8,Qo)):_("",!0),e.linkText?(a(),l("div",xo,[p("p",en,[O(S(e.linkText)+" ",1),tn])])):_("",!0)])]),_:1},8,["href","rel","target","tag"]))}}),nn=$(on,[["__scopeId","data-v-b2fee82c"]]),sn={key:0,class:"VPFeatures"},an={class:"container"},rn={class:"items"},ln=f({__name:"VPFeatures",props:{features:{}},setup(o){const e=o,t=y(()=>{const s=e.features.length;if(s){if(s===2)return"grid-2";if(s===3)return"grid-3";if(s%3===0)return"grid-6";if(s>3)return"grid-4"}else return});return(s,n)=>s.features?(a(),l("div",sn,[p("div",an,[p("div",rn,[(a(!0),l(M,null,B(s.features,i=>(a(),l("div",{key:i.title,class:N(["item",[t.value]])},[m(nn,{icon:i.icon,title:i.title,details:i.details,link:i.link,"link-text":i.linkText,rel:i.rel,target:i.target},null,8,["icon","title","details","link","link-text","rel","target"])],2))),128))])])])):_("",!0)}}),cn=$(ln,[["__scopeId","data-v-1dfe752d"]]),un=f({__name:"VPHomeFeatures",setup(o){const{frontmatter:e}=V();return(t,s)=>r(e).features?(a(),b(cn,{key:0,class:"VPHomeFeatures",features:r(e).features},null,8,["features"])):_("",!0)}}),dn=f({__name:"VPHomeContent",setup(o){const{width:e}=et({initialWidth:0,includeScrollbar:!1});return(t,s)=>(a(),l("div",{class:"vp-doc container",style:Ne(r(e)?{"--vp-offset":`calc(50% - ${r(e)/2}px)`}:{})},[c(t.$slots,"default",{},void 0,!0)],4))}}),pn=$(dn,[["__scopeId","data-v-27a7837a"]]),vn={class:"VPHome"},hn=f({__name:"VPHome",setup(o){const{frontmatter:e}=V();return(t,s)=>{const n=K("Content");return a(),l("div",vn,[c(t.$slots,"home-hero-before",{},void 0,!0),m(qo,null,{"home-hero-info-before":h(()=>[c(t.$slots,"home-hero-info-before",{},void 0,!0)]),"home-hero-info":h(()=>[c(t.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-info-after":h(()=>[c(t.$slots,"home-hero-info-after",{},void 0,!0)]),"home-hero-actions-after":h(()=>[c(t.$slots,"home-hero-actions-after",{},void 0,!0)]),"home-hero-image":h(()=>[c(t.$slots,"home-hero-image",{},void 0,!0)]),_:3}),c(t.$slots,"home-hero-after",{},void 0,!0),c(t.$slots,"home-features-before",{},void 0,!0),m(un),c(t.$slots,"home-features-after",{},void 0,!0),r(e).markdownStyles!==!1?(a(),b(pn,{key:0},{default:h(()=>[m(n)]),_:1})):(a(),b(n,{key:1}))])}}}),fn=$(hn,[["__scopeId","data-v-51e12d84"]]),_n={},mn={class:"VPPage"};function kn(o,e){const t=K("Content");return a(),l("div",mn,[c(o.$slots,"page-top"),m(t),c(o.$slots,"page-bottom")])}const bn=$(_n,[["render",kn]]),gn=f({__name:"VPContent",setup(o){const{page:e,frontmatter:t}=V(),{hasSidebar:s}=G();return(n,i)=>(a(),l("div",{class:N(["VPContent",{"has-sidebar":r(s),"is-home":r(t).layout==="home"}]),id:"VPContent"},[r(e).isNotFound?c(n.$slots,"not-found",{key:0},()=>[m(wt)],!0):r(t).layout==="page"?(a(),b(bn,{key:1},{"page-top":h(()=>[c(n.$slots,"page-top",{},void 0,!0)]),"page-bottom":h(()=>[c(n.$slots,"page-bottom",{},void 0,!0)]),_:3})):r(t).layout==="home"?(a(),b(fn,{key:2},{"home-hero-before":h(()=>[c(n.$slots,"home-hero-before",{},void 0,!0)]),"home-hero-info-before":h(()=>[c(n.$slots,"home-hero-info-before",{},void 0,!0)]),"home-hero-info":h(()=>[c(n.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-info-after":h(()=>[c(n.$slots,"home-hero-info-after",{},void 0,!0)]),"home-hero-actions-after":h(()=>[c(n.$slots,"home-hero-actions-after",{},void 0,!0)]),"home-hero-image":h(()=>[c(n.$slots,"home-hero-image",{},void 0,!0)]),"home-hero-after":h(()=>[c(n.$slots,"home-hero-after",{},void 0,!0)]),"home-features-before":h(()=>[c(n.$slots,"home-features-before",{},void 0,!0)]),"home-features-after":h(()=>[c(n.$slots,"home-features-after",{},void 0,!0)]),_:3})):r(t).layout&&r(t).layout!=="doc"?(a(),b(D(r(t).layout),{key:3})):(a(),b(To,{key:4},{"doc-top":h(()=>[c(n.$slots,"doc-top",{},void 0,!0)]),"doc-bottom":h(()=>[c(n.$slots,"doc-bottom",{},void 0,!0)]),"doc-footer-before":h(()=>[c(n.$slots,"doc-footer-before",{},void 0,!0)]),"doc-before":h(()=>[c(n.$slots,"doc-before",{},void 0,!0)]),"doc-after":h(()=>[c(n.$slots,"doc-after",{},void 0,!0)]),"aside-top":h(()=>[c(n.$slots,"aside-top",{},void 0,!0)]),"aside-outline-before":h(()=>[c(n.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":h(()=>[c(n.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":h(()=>[c(n.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":h(()=>[c(n.$slots,"aside-ads-after",{},void 0,!0)]),"aside-bottom":h(()=>[c(n.$slots,"aside-bottom",{},void 0,!0)]),_:3}))],2))}}),$n=$(gn,[["__scopeId","data-v-f2d2a2c9"]]),yn={class:"container"},Pn=["innerHTML"],Vn=["innerHTML"],Ln=f({__name:"VPFooter",setup(o){const{theme:e,frontmatter:t}=V(),{hasSidebar:s}=G();return(n,i)=>r(e).footer&&r(t).footer!==!1?(a(),l("footer",{key:0,class:N(["VPFooter",{"has-sidebar":r(s)}])},[p("div",yn,[r(e).footer.message?(a(),l("p",{key:0,class:"message",innerHTML:r(e).footer.message},null,8,Pn)):_("",!0),r(e).footer.copyright?(a(),l("p",{key:1,class:"copyright",innerHTML:r(e).footer.copyright},null,8,Vn)):_("",!0)])],2)):_("",!0)}}),Sn=$(Ln,[["__scopeId","data-v-c70eb9e7"]]);function wn(){const{theme:o,frontmatter:e}=V(),t=Y([]),s=y(()=>t.value.length>0);return oe(()=>{t.value=ge(e.value.outline??o.value.outline)}),{headers:t,hasLocalNav:s}}const Tn=o=>(H("data-v-093e5a97"),o=o(),E(),o),In={class:"menu-text"},Nn=Tn(()=>p("span",{class:"vpi-chevron-right icon"},null,-1)),Mn={class:"header"},An={class:"outline"},Cn=f({__name:"VPLocalNavOutlineDropdown",props:{headers:{},navHeight:{}},setup(o){const e=o,{theme:t}=V(),s=I(!1),n=I(0),i=I(),u=I();function v(g){var L;(L=i.value)!=null&&L.contains(g.target)||(s.value=!1)}U(s,g=>{if(g){document.addEventListener("click",v);return}document.removeEventListener("click",v)}),de("Escape",()=>{s.value=!1}),oe(()=>{s.value=!1});function d(){s.value=!s.value,n.value=window.innerHeight+Math.min(window.scrollY-e.navHeight,0)}function k(g){g.target.classList.contains("outline-link")&&(u.value&&(u.value.style.transition="none"),tt(()=>{s.value=!1}))}function P(){s.value=!1,window.scrollTo({top:0,left:0,behavior:"smooth"})}return(g,L)=>(a(),l("div",{class:"VPLocalNavOutlineDropdown",style:Ne({"--vp-vh":n.value+"px"}),ref_key:"main",ref:i},[g.headers.length>0?(a(),l("button",{key:0,onClick:d,class:N({open:s.value})},[p("span",In,S(r(He)(r(t))),1),Nn],2)):(a(),l("button",{key:1,onClick:P},S(r(t).returnToTopLabel||"Return to top"),1)),m(fe,{name:"flyout"},{default:h(()=>[s.value?(a(),l("div",{key:0,ref_key:"items",ref:u,class:"items",onClick:k},[p("div",Mn,[p("a",{class:"top-link",href:"#",onClick:P},S(r(t).returnToTopLabel||"Return to top"),1)]),p("div",An,[m(Ee,{headers:g.headers},null,8,["headers"])])],512)):_("",!0)]),_:1})],4))}}),Bn=$(Cn,[["__scopeId","data-v-093e5a97"]]),Hn=o=>(H("data-v-46fcfc14"),o=o(),E(),o),En={class:"container"},Dn=["aria-expanded"],Fn=Hn(()=>p("span",{class:"vpi-align-left menu-icon"},null,-1)),On={class:"menu-text"},Un=f({__name:"VPLocalNav",props:{open:{type:Boolean}},emits:["open-menu"],setup(o){const{theme:e,frontmatter:t}=V(),{hasSidebar:s}=G(),{headers:n}=wn(),{y:i}=Me(),u=I(0);W(()=>{u.value=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--vp-nav-height"))}),oe(()=>{n.value=ge(t.value.outline??e.value.outline)});const v=y(()=>n.value.length===0),d=y(()=>v.value&&!s.value),k=y(()=>({VPLocalNav:!0,"has-sidebar":s.value,empty:v.value,fixed:d.value}));return(P,g)=>r(t).layout!=="home"&&(!d.value||r(i)>=u.value)?(a(),l("div",{key:0,class:N(k.value)},[p("div",En,[r(s)?(a(),l("button",{key:0,class:"menu","aria-expanded":P.open,"aria-controls":"VPSidebarNav",onClick:g[0]||(g[0]=L=>P.$emit("open-menu"))},[Fn,p("span",On,S(r(e).sidebarMenuLabel||"Menu"),1)],8,Dn)):_("",!0),m(Bn,{headers:r(n),navHeight:u.value},null,8,["headers","navHeight"])])],2)):_("",!0)}}),Gn=$(Un,[["__scopeId","data-v-46fcfc14"]]);function jn(){const o=I(!1);function e(){o.value=!0,window.addEventListener("resize",n)}function t(){o.value=!1,window.removeEventListener("resize",n)}function s(){o.value?t():e()}function n(){window.outerWidth>=768&&t()}const i=ne();return U(()=>i.path,t),{isScreenOpen:o,openScreen:e,closeScreen:t,toggleScreen:s}}const zn={},Rn={class:"VPSwitch",type:"button",role:"switch"},Wn={class:"check"},qn={key:0,class:"icon"};function Kn(o,e){return a(),l("button",Rn,[p("span",Wn,[o.$slots.default?(a(),l("span",qn,[c(o.$slots,"default",{},void 0,!0)])):_("",!0)])])}const Jn=$(zn,[["render",Kn],["__scopeId","data-v-e3189338"]]),Fe=o=>(H("data-v-fe377dea"),o=o(),E(),o),Yn=Fe(()=>p("span",{class:"vpi-sun sun"},null,-1)),Xn=Fe(()=>p("span",{class:"vpi-moon moon"},null,-1)),Zn=f({__name:"VPSwitchAppearance",setup(o){const{isDark:e,theme:t}=V(),s=se("toggle-appearance",()=>{e.value=!e.value}),n=I("");return ke(()=>{n.value=e.value?t.value.lightModeSwitchTitle||"Switch to light theme":t.value.darkModeSwitchTitle||"Switch to dark theme"}),(i,u)=>(a(),b(Jn,{title:n.value,class:"VPSwitchAppearance","aria-checked":r(e),onClick:r(s)},{default:h(()=>[Yn,Xn]),_:1},8,["title","aria-checked","onClick"]))}}),$e=$(Zn,[["__scopeId","data-v-fe377dea"]]),Qn={key:0,class:"VPNavBarAppearance"},xn=f({__name:"VPNavBarAppearance",setup(o){const{site:e}=V();return(t,s)=>r(e).appearance&&r(e).appearance!=="force-dark"&&r(e).appearance!=="force-auto"?(a(),l("div",Qn,[m($e)])):_("",!0)}}),es=$(xn,[["__scopeId","data-v-a56ee008"]]),ye=I();let Oe=!1,ce=0;function ts(o){const e=I(!1);if(ae){!Oe&&os(),ce++;const t=U(ye,s=>{var n,i,u;s===o.el.value||(n=o.el.value)!=null&&n.contains(s)?(e.value=!0,(i=o.onFocus)==null||i.call(o)):(e.value=!1,(u=o.onBlur)==null||u.call(o))});me(()=>{t(),ce--,ce||ns()})}return ot(e)}function os(){document.addEventListener("focusin",Ue),Oe=!0,ye.value=document.activeElement}function ns(){document.removeEventListener("focusin",Ue)}function Ue(){ye.value=document.activeElement}const ss={class:"VPMenuLink"},as=f({__name:"VPMenuLink",props:{item:{}},setup(o){const{page:e}=V();return(t,s)=>(a(),l("div",ss,[m(F,{class:N({active:r(q)(r(e).relativePath,t.item.activeMatch||t.item.link,!!t.item.activeMatch)}),href:t.item.link,target:t.item.target,rel:t.item.rel},{default:h(()=>[O(S(t.item.text),1)]),_:1},8,["class","href","target","rel"])]))}}),re=$(as,[["__scopeId","data-v-958590d6"]]),rs={class:"VPMenuGroup"},is={key:0,class:"title"},ls=f({__name:"VPMenuGroup",props:{text:{},items:{}},setup(o){return(e,t)=>(a(),l("div",rs,[e.text?(a(),l("p",is,S(e.text),1)):_("",!0),(a(!0),l(M,null,B(e.items,s=>(a(),l(M,null,["link"in s?(a(),b(re,{key:0,item:s},null,8,["item"])):_("",!0)],64))),256))]))}}),cs=$(ls,[["__scopeId","data-v-ac1cab1b"]]),us={class:"VPMenu"},ds={key:0,class:"items"},ps=f({__name:"VPMenu",props:{items:{}},setup(o){return(e,t)=>(a(),l("div",us,[e.items?(a(),l("div",ds,[(a(!0),l(M,null,B(e.items,s=>(a(),l(M,{key:JSON.stringify(s)},["link"in s?(a(),b(re,{key:0,item:s},null,8,["item"])):"component"in s?(a(),b(D(s.component),R({key:1,ref_for:!0},s.props),null,16)):(a(),b(cs,{key:2,text:s.text,items:s.items},null,8,["text","items"]))],64))),128))])):_("",!0),c(e.$slots,"default",{},void 0,!0)]))}}),vs=$(ps,[["__scopeId","data-v-1ba10e3e"]]),hs=o=>(H("data-v-cd779927"),o=o(),E(),o),fs=["aria-expanded","aria-label"],_s={key:0,class:"text"},ms=["innerHTML"],ks=hs(()=>p("span",{class:"vpi-chevron-down text-icon"},null,-1)),bs={key:1,class:"vpi-more-horizontal icon"},gs={class:"menu"},$s=f({__name:"VPFlyout",props:{icon:{},button:{},label:{},items:{}},setup(o){const e=I(!1),t=I();ts({el:t,onBlur:s});function s(){e.value=!1}return(n,i)=>(a(),l("div",{class:"VPFlyout",ref_key:"el",ref:t,onMouseenter:i[1]||(i[1]=u=>e.value=!0),onMouseleave:i[2]||(i[2]=u=>e.value=!1)},[p("button",{type:"button",class:"button","aria-haspopup":"true","aria-expanded":e.value,"aria-label":n.label,onClick:i[0]||(i[0]=u=>e.value=!e.value)},[n.button||n.icon?(a(),l("span",_s,[n.icon?(a(),l("span",{key:0,class:N([n.icon,"option-icon"])},null,2)):_("",!0),n.button?(a(),l("span",{key:1,innerHTML:n.button},null,8,ms)):_("",!0),ks])):(a(),l("span",bs))],8,fs),p("div",gs,[m(vs,{items:n.items},{default:h(()=>[c(n.$slots,"default",{},void 0,!0)]),_:3},8,["items"])])],544))}}),Pe=$($s,[["__scopeId","data-v-cd779927"]]),ys=["href","aria-label","innerHTML"],Ps=f({__name:"VPSocialLink",props:{icon:{},link:{},ariaLabel:{}},setup(o){const e=o,t=y(()=>typeof e.icon=="object"?e.icon.svg:`<span class="vpi-social-${e.icon}" />`);return(s,n)=>(a(),l("a",{class:"VPSocialLink no-icon",href:s.link,"aria-label":s.ariaLabel??(typeof s.icon=="string"?s.icon:""),target:"_blank",rel:"noopener",innerHTML:t.value},null,8,ys))}}),Vs=$(Ps,[["__scopeId","data-v-9ea3d85a"]]),Ls={class:"VPSocialLinks"},Ss=f({__name:"VPSocialLinks",props:{links:{}},setup(o){return(e,t)=>(a(),l("div",Ls,[(a(!0),l(M,null,B(e.links,({link:s,icon:n,ariaLabel:i})=>(a(),b(Vs,{key:s,icon:n,link:s,ariaLabel:i},null,8,["icon","link","ariaLabel"]))),128))]))}}),Ve=$(Ss,[["__scopeId","data-v-e0de3e0f"]]),ws={key:0,class:"group translations"},Ts={class:"trans-title"},Is={key:1,class:"group"},Ns={class:"item appearance"},Ms={class:"label"},As={class:"appearance-action"},Cs={key:2,class:"group"},Bs={class:"item social-links"},Hs=f({__name:"VPNavBarExtra",setup(o){const{site:e,theme:t}=V(),{localeLinks:s,currentLang:n}=Q({correspondingLink:!0}),i=y(()=>s.value.length&&n.value.label||e.value.appearance||t.value.socialLinks);return(u,v)=>i.value?(a(),b(Pe,{key:0,class:"VPNavBarExtra",label:"extra navigation"},{default:h(()=>[r(s).length&&r(n).label?(a(),l("div",ws,[p("p",Ts,S(r(n).label),1),(a(!0),l(M,null,B(r(s),d=>(a(),b(re,{key:d.link,item:d},null,8,["item"]))),128))])):_("",!0),r(e).appearance&&r(e).appearance!=="force-dark"&&r(e).appearance!=="force-auto"?(a(),l("div",Is,[p("div",Ns,[p("p",Ms,S(r(t).darkModeSwitchLabel||"Appearance"),1),p("div",As,[m($e)])])])):_("",!0),r(t).socialLinks?(a(),l("div",Cs,[p("div",Bs,[m(Ve,{class:"social-links-list",links:r(t).socialLinks},null,8,["links"])])])):_("",!0)]),_:1})):_("",!0)}}),Es=$(Hs,[["__scopeId","data-v-db0f4bae"]]),Ds=o=>(H("data-v-c3e96827"),o=o(),E(),o),Fs=["aria-expanded"],Os=Ds(()=>p("span",{class:"container"},[p("span",{class:"top"}),p("span",{class:"middle"}),p("span",{class:"bottom"})],-1)),Us=[Os],Gs=f({__name:"VPNavBarHamburger",props:{active:{type:Boolean}},emits:["click"],setup(o){return(e,t)=>(a(),l("button",{type:"button",class:N(["VPNavBarHamburger",{active:e.active}]),"aria-label":"mobile navigation","aria-expanded":e.active,"aria-controls":"VPNavScreen",onClick:t[0]||(t[0]=s=>e.$emit("click"))},Us,10,Fs))}}),js=$(Gs,[["__scopeId","data-v-c3e96827"]]),zs=["innerHTML"],Rs=f({__name:"VPNavBarMenuLink",props:{item:{}},setup(o){const{page:e}=V();return(t,s)=>(a(),b(F,{class:N({VPNavBarMenuLink:!0,active:r(q)(r(e).relativePath,t.item.activeMatch||t.item.link,!!t.item.activeMatch)}),href:t.item.link,noIcon:t.item.noIcon,target:t.item.target,rel:t.item.rel,tabindex:"0"},{default:h(()=>[p("span",{innerHTML:t.item.text},null,8,zs)]),_:1},8,["class","href","noIcon","target","rel"]))}}),Ws=$(Rs,[["__scopeId","data-v-bf4fa5cd"]]),qs=f({__name:"VPNavBarMenuGroup",props:{item:{}},setup(o){const e=o,{page:t}=V(),s=i=>"component"in i?!1:"link"in i?q(t.value.relativePath,i.link,!!e.item.activeMatch):i.items.some(s),n=y(()=>s(e.item));return(i,u)=>(a(),b(Pe,{class:N({VPNavBarMenuGroup:!0,active:r(q)(r(t).relativePath,i.item.activeMatch,!!i.item.activeMatch)||n.value}),button:i.item.text,items:i.item.items},null,8,["class","button","items"]))}}),Ks=o=>(H("data-v-ab821956"),o=o(),E(),o),Js={key:0,"aria-labelledby":"main-nav-aria-label",class:"VPNavBarMenu"},Ys=Ks(()=>p("span",{id:"main-nav-aria-label",class:"visually-hidden"}," Main Navigation ",-1)),Xs=f({__name:"VPNavBarMenu",setup(o){const{theme:e}=V();return(t,s)=>r(e).nav?(a(),l("nav",Js,[Ys,(a(!0),l(M,null,B(r(e).nav,n=>(a(),l(M,{key:JSON.stringify(n)},["link"in n?(a(),b(Ws,{key:0,item:n},null,8,["item"])):"component"in n?(a(),b(D(n.component),R({key:1,ref_for:!0},n.props),null,16)):(a(),b(qs,{key:2,item:n},null,8,["item"]))],64))),128))])):_("",!0)}}),Zs=$(Xs,[["__scopeId","data-v-ab821956"]]);function Qs(o){const{localeIndex:e,theme:t}=V();function s(n){var A,C,w;const i=n.split("."),u=(A=t.value.search)==null?void 0:A.options,v=u&&typeof u=="object",d=v&&((w=(C=u.locales)==null?void 0:C[e.value])==null?void 0:w.translations)||null,k=v&&u.translations||null;let P=d,g=k,L=o;const T=i.pop();for(const j of i){let z=null;const J=L==null?void 0:L[j];J&&(z=L=J);const ie=g==null?void 0:g[j];ie&&(z=g=ie);const le=P==null?void 0:P[j];le&&(z=P=le),J||(L=z),ie||(g=z),le||(P=z)}return(P==null?void 0:P[T])??(g==null?void 0:g[T])??(L==null?void 0:L[T])??""}return s}const xs=["aria-label"],ea={class:"DocSearch-Button-Container"},ta=p("span",{class:"vp-icon DocSearch-Search-Icon"},null,-1),oa={class:"DocSearch-Button-Placeholder"},na=p("span",{class:"DocSearch-Button-Keys"},[p("kbd",{class:"DocSearch-Button-Key"}),p("kbd",{class:"DocSearch-Button-Key"},"K")],-1),Se=f({__name:"VPNavBarSearchButton",setup(o){const t=Qs({button:{buttonText:"Search",buttonAriaLabel:"Search"}});return(s,n)=>(a(),l("button",{type:"button",class:"DocSearch DocSearch-Button","aria-label":r(t)("button.buttonAriaLabel")},[p("span",ea,[ta,p("span",oa,S(r(t)("button.buttonText")),1)]),na],8,xs))}}),sa={class:"VPNavBarSearch"},aa={id:"local-search"},ra={key:1,id:"docsearch"},ia=f({__name:"VPNavBarSearch",setup(o){const e=nt(()=>X(()=>import(((u)=>{if(u.startsWith('/')){return"https://registry.npmmirror.com/@gkd-kit/docs/0.0.1725011887959/files/.vitepress/dist"+u}return u})("./VPLocalSearchBox.BgK7saue.js")),[])),t=()=>null,{theme:s}=V(),n=I(!1),i=I(!1);W(()=>{});function u(){n.value||(n.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 d(g){const L=g.target,T=L.tagName;return L.isContentEditable||T==="INPUT"||T==="SELECT"||T==="TEXTAREA"}const k=I(!1);de("k",g=>{(g.ctrlKey||g.metaKey)&&(g.preventDefault(),k.value=!0)}),de("/",g=>{d(g)||(g.preventDefault(),k.value=!0)});const P="local";return(g,L)=>{var T;return a(),l("div",sa,[r(P)==="local"?(a(),l(M,{key:0},[k.value?(a(),b(r(e),{key:0,onClose:L[0]||(L[0]=A=>k.value=!1)})):_("",!0),p("div",aa,[m(Se,{onClick:L[1]||(L[1]=A=>k.value=!0)})])],64)):r(P)==="algolia"?(a(),l(M,{key:1},[n.value?(a(),b(r(t),{key:0,algolia:((T=r(s).search)==null?void 0:T.options)??r(s).algolia,onVnodeBeforeMount:L[2]||(L[2]=A=>i.value=!0)},null,8,["algolia"])):_("",!0),i.value?_("",!0):(a(),l("div",ra,[m(Se,{onClick:u})]))],64)):_("",!0)])}}}),la=f({__name:"VPNavBarSocialLinks",setup(o){const{theme:e}=V();return(t,s)=>r(e).socialLinks?(a(),b(Ve,{key:0,class:"VPNavBarSocialLinks",links:r(e).socialLinks},null,8,["links"])):_("",!0)}}),ca=$(la,[["__scopeId","data-v-c59d43c0"]]),ua=["href","rel","target"],da={key:1},pa={key:2},va=f({__name:"VPNavBarTitle",setup(o){const{site:e,theme:t}=V(),{hasSidebar:s}=G(),{currentLang:n}=Q(),i=y(()=>{var d;return typeof t.value.logoLink=="string"?t.value.logoLink:(d=t.value.logoLink)==null?void 0:d.link}),u=y(()=>{var d;return typeof t.value.logoLink=="string"||(d=t.value.logoLink)==null?void 0:d.rel}),v=y(()=>{var d;return typeof t.value.logoLink=="string"||(d=t.value.logoLink)==null?void 0:d.target});return(d,k)=>(a(),l("div",{class:N(["VPNavBarTitle",{"has-sidebar":r(s)}])},[p("a",{class:"title",href:i.value??r(be)(r(n).link),rel:u.value,target:v.value},[c(d.$slots,"nav-bar-title-before",{},void 0,!0),r(t).logo?(a(),b(ee,{key:0,class:"logo",image:r(t).logo},null,8,["image"])):_("",!0),r(t).siteTitle?(a(),l("span",da,S(r(t).siteTitle),1)):r(t).siteTitle===void 0?(a(),l("span",pa,S(r(e).title),1)):_("",!0),c(d.$slots,"nav-bar-title-after",{},void 0,!0)],8,ua)],2))}}),ha=$(va,[["__scopeId","data-v-7e7000f3"]]),fa={class:"items"},_a={class:"title"},ma=f({__name:"VPNavBarTranslations",setup(o){const{theme:e}=V(),{localeLinks:t,currentLang:s}=Q({correspondingLink:!0});return(n,i)=>r(t).length&&r(s).label?(a(),b(Pe,{key:0,class:"VPNavBarTranslations",icon:"vpi-languages",label:r(e).langMenuLabel||"Change language"},{default:h(()=>[p("div",fa,[p("p",_a,S(r(s).label),1),(a(!0),l(M,null,B(r(t),u=>(a(),b(re,{key:u.link,item:u},null,8,["item"]))),128))])]),_:1},8,["label"])):_("",!0)}}),ka=$(ma,[["__scopeId","data-v-3ae7b579"]]),ba=o=>(H("data-v-5bb34321"),o=o(),E(),o),ga={class:"wrapper"},$a={class:"container"},ya={class:"title"},Pa={class:"content"},Va={class:"content-body"},La=ba(()=>p("div",{class:"divider"},[p("div",{class:"divider-line"})],-1)),Sa=f({__name:"VPNavBar",props:{isScreenOpen:{type:Boolean}},emits:["toggle-screen"],setup(o){const e=o,{y:t}=Me(),{hasSidebar:s}=G(),{frontmatter:n}=V(),i=I({});return ke(()=>{i.value={"has-sidebar":s.value,home:n.value.layout==="home",top:t.value===0,"screen-open":e.isScreenOpen}}),(u,v)=>(a(),l("div",{class:N(["VPNavBar",i.value])},[p("div",ga,[p("div",$a,[p("div",ya,[m(ha,null,{"nav-bar-title-before":h(()=>[c(u.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":h(()=>[c(u.$slots,"nav-bar-title-after",{},void 0,!0)]),_:3})]),p("div",Pa,[p("div",Va,[c(u.$slots,"nav-bar-content-before",{},void 0,!0),m(ia,{class:"search"}),m(Zs,{class:"menu"}),m(ka,{class:"translations"}),m(es,{class:"appearance"}),m(ca,{class:"social-links"}),m(Es,{class:"extra"}),c(u.$slots,"nav-bar-content-after",{},void 0,!0),m(js,{class:"hamburger",active:u.isScreenOpen,onClick:v[0]||(v[0]=d=>u.$emit("toggle-screen"))},null,8,["active"])])])])]),La],2))}}),wa=$(Sa,[["__scopeId","data-v-5bb34321"]]),Ta={key:0,class:"VPNavScreenAppearance"},Ia={class:"text"},Na=f({__name:"VPNavScreenAppearance",setup(o){const{site:e,theme:t}=V();return(s,n)=>r(e).appearance&&r(e).appearance!=="force-dark"&&r(e).appearance!=="force-auto"?(a(),l("div",Ta,[p("p",Ia,S(r(t).darkModeSwitchLabel||"Appearance"),1),m($e)])):_("",!0)}}),Ma=$(Na,[["__scopeId","data-v-fc875d04"]]),Aa=f({__name:"VPNavScreenMenuLink",props:{item:{}},setup(o){const e=se("close-screen");return(t,s)=>(a(),b(F,{class:"VPNavScreenMenuLink",href:t.item.link,target:t.item.target,rel:t.item.rel,onClick:r(e),innerHTML:t.item.text},null,8,["href","target","rel","onClick","innerHTML"]))}}),Ca=$(Aa,[["__scopeId","data-v-3e29f15c"]]),Ba=f({__name:"VPNavScreenMenuGroupLink",props:{item:{}},setup(o){const e=se("close-screen");return(t,s)=>(a(),b(F,{class:"VPNavScreenMenuGroupLink",href:t.item.link,target:t.item.target,rel:t.item.rel,onClick:r(e)},{default:h(()=>[O(S(t.item.text),1)]),_:1},8,["href","target","rel","onClick"]))}}),Ge=$(Ba,[["__scopeId","data-v-f4a56020"]]),Ha={class:"VPNavScreenMenuGroupSection"},Ea={key:0,class:"title"},Da=f({__name:"VPNavScreenMenuGroupSection",props:{text:{},items:{}},setup(o){return(e,t)=>(a(),l("div",Ha,[e.text?(a(),l("p",Ea,S(e.text),1)):_("",!0),(a(!0),l(M,null,B(e.items,s=>(a(),b(Ge,{key:s.text,item:s},null,8,["item"]))),128))]))}}),Fa=$(Da,[["__scopeId","data-v-7ee4c5f2"]]),Oa=o=>(H("data-v-6e379a4a"),o=o(),E(),o),Ua=["aria-controls","aria-expanded"],Ga=["innerHTML"],ja=Oa(()=>p("span",{class:"vpi-plus button-icon"},null,-1)),za=["id"],Ra={key:0,class:"item"},Wa={key:1,class:"item"},qa={key:2,class:"group"},Ka=f({__name:"VPNavScreenMenuGroup",props:{text:{},items:{}},setup(o){const e=o,t=I(!1),s=y(()=>`NavScreenGroup-${e.text.replace(" ","-").toLowerCase()}`);function n(){t.value=!t.value}return(i,u)=>(a(),l("div",{class:N(["VPNavScreenMenuGroup",{open:t.value}])},[p("button",{class:"button","aria-controls":s.value,"aria-expanded":t.value,onClick:n},[p("span",{class:"button-text",innerHTML:i.text},null,8,Ga),ja],8,Ua),p("div",{id:s.value,class:"items"},[(a(!0),l(M,null,B(i.items,v=>(a(),l(M,{key:JSON.stringify(v)},["link"in v?(a(),l("div",Ra,[m(Ge,{item:v},null,8,["item"])])):"component"in v?(a(),l("div",Wa,[(a(),b(D(v.component),R({ref_for:!0},v.props,{"screen-menu":""}),null,16))])):(a(),l("div",qa,[m(Fa,{text:v.text,items:v.items},null,8,["text","items"])]))],64))),128))],8,za)],2))}}),Ja=$(Ka,[["__scopeId","data-v-6e379a4a"]]),Ya={key:0,class:"VPNavScreenMenu"},Xa=f({__name:"VPNavScreenMenu",setup(o){const{theme:e}=V();return(t,s)=>r(e).nav?(a(),l("nav",Ya,[(a(!0),l(M,null,B(r(e).nav,n=>(a(),l(M,{key:JSON.stringify(n)},["link"in n?(a(),b(Ca,{key:0,item:n},null,8,["item"])):"component"in n?(a(),b(D(n.component),R({key:1,ref_for:!0},n.props,{"screen-menu":""}),null,16)):(a(),b(Ja,{key:2,text:n.text||"",items:n.items},null,8,["text","items"]))],64))),128))])):_("",!0)}}),Za=f({__name:"VPNavScreenSocialLinks",setup(o){const{theme:e}=V();return(t,s)=>r(e).socialLinks?(a(),b(Ve,{key:0,class:"VPNavScreenSocialLinks",links:r(e).socialLinks},null,8,["links"])):_("",!0)}}),je=o=>(H("data-v-be7a9123"),o=o(),E(),o),Qa=je(()=>p("span",{class:"vpi-languages icon lang"},null,-1)),xa=je(()=>p("span",{class:"vpi-chevron-down icon chevron"},null,-1)),er={class:"list"},tr=f({__name:"VPNavScreenTranslations",setup(o){const{localeLinks:e,currentLang:t}=Q({correspondingLink:!0}),s=I(!1);function n(){s.value=!s.value}return(i,u)=>r(e).length&&r(t).label?(a(),l("div",{key:0,class:N(["VPNavScreenTranslations",{open:s.value}])},[p("button",{class:"title",onClick:n},[Qa,O(" "+S(r(t).label)+" ",1),xa]),p("ul",er,[(a(!0),l(M,null,B(r(e),v=>(a(),l("li",{key:v.link,class:"item"},[m(F,{class:"link",href:v.link},{default:h(()=>[O(S(v.text),1)]),_:2},1032,["href"])]))),128))])],2)):_("",!0)}}),or=$(tr,[["__scopeId","data-v-be7a9123"]]),nr={class:"container"},sr=f({__name:"VPNavScreen",props:{open:{type:Boolean}},setup(o){const e=I(null),t=Ae(ae?document.body:null);return(s,n)=>(a(),b(fe,{name:"fade",onEnter:n[0]||(n[0]=i=>t.value=!0),onAfterLeave:n[1]||(n[1]=i=>t.value=!1)},{default:h(()=>[s.open?(a(),l("div",{key:0,class:"VPNavScreen",ref_key:"screen",ref:e,id:"VPNavScreen"},[p("div",nr,[c(s.$slots,"nav-screen-content-before",{},void 0,!0),m(Xa,{class:"menu"}),m(or,{class:"translations"}),m(Ma,{class:"appearance"}),m(Za,{class:"social-links"}),c(s.$slots,"nav-screen-content-after",{},void 0,!0)])],512)):_("",!0)]),_:3}))}}),ar=$(sr,[["__scopeId","data-v-57b96561"]]),rr={key:0,class:"VPNav"},ir=f({__name:"VPNav",setup(o){const{isScreenOpen:e,closeScreen:t,toggleScreen:s}=jn(),{frontmatter:n}=V(),i=y(()=>n.value.navbar!==!1);return Ce("close-screen",t),te(()=>{ae&&document.documentElement.classList.toggle("hide-nav",!i.value)}),(u,v)=>i.value?(a(),l("header",rr,[m(wa,{"is-screen-open":r(e),onToggleScreen:r(s)},{"nav-bar-title-before":h(()=>[c(u.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":h(()=>[c(u.$slots,"nav-bar-title-after",{},void 0,!0)]),"nav-bar-content-before":h(()=>[c(u.$slots,"nav-bar-content-before",{},void 0,!0)]),"nav-bar-content-after":h(()=>[c(u.$slots,"nav-bar-content-after",{},void 0,!0)]),_:3},8,["is-screen-open","onToggleScreen"]),m(ar,{open:r(e)},{"nav-screen-content-before":h(()=>[c(u.$slots,"nav-screen-content-before",{},void 0,!0)]),"nav-screen-content-after":h(()=>[c(u.$slots,"nav-screen-content-after",{},void 0,!0)]),_:3},8,["open"])])):_("",!0)}}),lr=$(ir,[["__scopeId","data-v-69d0455e"]]),ze=o=>(H("data-v-af4c6f2b"),o=o(),E(),o),cr=["role","tabindex"],ur=ze(()=>p("div",{class:"indicator"},null,-1)),dr=ze(()=>p("span",{class:"vpi-chevron-right caret-icon"},null,-1)),pr=[dr],vr={key:1,class:"items"},hr=f({__name:"VPSidebarItem",props:{item:{},depth:{}},setup(o){const e=o,{collapsed:t,collapsible:s,isLink:n,isActiveLink:i,hasActiveLink:u,hasChildren:v,toggle:d}=Mt(y(()=>e.item)),k=y(()=>v.value?"section":"div"),P=y(()=>n.value?"a":"div"),g=y(()=>v.value?e.depth+2===7?"p":`h${e.depth+2}`:"p"),L=y(()=>n.value?void 0:"button"),T=y(()=>[[`level-${e.depth}`],{collapsible:s.value},{collapsed:t.value},{"is-link":n.value},{"is-active":i.value},{"has-active":u.value}]);function A(w){"key"in w&&w.key!=="Enter"||!e.item.link&&d()}function C(){e.item.link&&d()}return(w,j)=>{const z=K("VPSidebarItem",!0);return a(),b(D(k.value),{class:N(["VPSidebarItem",T.value])},{default:h(()=>[w.item.text?(a(),l("div",R({key:0,class:"item",role:L.value},st(w.item.items?{click:A,keydown:A}:{},!0),{tabindex:w.item.items&&0}),[ur,w.item.link?(a(),b(F,{key:0,tag:P.value,class:"link",href:w.item.link,rel:w.item.rel,target:w.item.target},{default:h(()=>[(a(),b(D(g.value),{class:"text",innerHTML:w.item.text},null,8,["innerHTML"]))]),_:1},8,["tag","href","rel","target"])):(a(),b(D(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(),l("div",{key:2,class:"caret",role:"button","aria-label":"toggle section",onClick:C,onKeydown:at(C,["enter"]),tabindex:"0"},pr,32)):_("",!0)],16,cr)):_("",!0),w.item.items&&w.item.items.length?(a(),l("div",vr,[w.depth<5?(a(!0),l(M,{key:0},B(w.item.items,J=>(a(),b(z,{key:J.text,item:J,depth:w.depth+1},null,8,["item","depth"]))),128)):_("",!0)])):_("",!0)]),_:1},8,["class"])}}}),fr=$(hr,[["__scopeId","data-v-af4c6f2b"]]),_r=f({__name:"VPSidebarGroup",props:{items:{}},setup(o){const e=I(!0);let t=null;return W(()=>{t=setTimeout(()=>{t=null,e.value=!1},300)}),rt(()=>{t!=null&&(clearTimeout(t),t=null)}),(s,n)=>(a(!0),l(M,null,B(s.items,i=>(a(),l("div",{key:i.text,class:N(["group",{"no-transition":e.value}])},[m(fr,{item:i,depth:0},null,8,["item"])],2))),128))}}),mr=$(_r,[["__scopeId","data-v-fdaaed4a"]]),Re=o=>(H("data-v-5b4015b2"),o=o(),E(),o),kr=Re(()=>p("div",{class:"curtain"},null,-1)),br={class:"nav",id:"VPSidebarNav","aria-labelledby":"sidebar-aria-label",tabindex:"-1"},gr=Re(()=>p("span",{class:"visually-hidden",id:"sidebar-aria-label"}," Sidebar Navigation ",-1)),$r=f({__name:"VPSidebar",props:{open:{type:Boolean}},setup(o){const{sidebarGroups:e,hasSidebar:t}=G(),s=o,n=I(null),i=Ae(ae?document.body:null);U([s,n],()=>{var v;s.open?(i.value=!0,(v=n.value)==null||v.focus()):i.value=!1},{immediate:!0,flush:"post"});const u=I(0);return U(e,()=>{u.value+=1},{deep:!0}),(v,d)=>r(t)?(a(),l("aside",{key:0,class:N(["VPSidebar",{open:v.open}]),ref_key:"navEl",ref:n,onClick:d[0]||(d[0]=it(()=>{},["stop"]))},[kr,p("nav",br,[gr,c(v.$slots,"sidebar-nav-before",{},void 0,!0),(a(),b(mr,{items:r(e),key:u.value},null,8,["items"])),c(v.$slots,"sidebar-nav-after",{},void 0,!0)])],2)):_("",!0)}}),yr=$($r,[["__scopeId","data-v-5b4015b2"]]),Pr=f({__name:"VPSkipLink",setup(o){const e=ne(),t=I();U(()=>e.path,()=>t.value.focus());function s({target:n}){const i=document.getElementById(decodeURIComponent(n.hash).slice(1));if(i){const u=()=>{i.removeAttribute("tabindex"),i.removeEventListener("blur",u)};i.setAttribute("tabindex","-1"),i.addEventListener("blur",u),i.focus(),window.scrollTo(0,0)}}return(n,i)=>(a(),l(M,null,[p("span",{ref_key:"backToTop",ref:t,tabindex:"-1"},null,512),p("a",{href:"#VPContent",class:"VPSkipLink visually-hidden",onClick:s}," Skip to content ")],64))}}),Vr=$(Pr,[["__scopeId","data-v-95115fd8"]]),Lr=f({__name:"Layout",setup(o){const{isOpen:e,open:t,close:s}=G(),n=ne();U(()=>n.path,s),Nt(e,s);const{frontmatter:i}=V(),u=lt(),v=y(()=>!!u["home-hero-image"]);return Ce("hero-image-slot-exists",v),(d,k)=>{const P=K("Content");return r(i).layout!==!1?(a(),l("div",{key:0,class:N(["Layout",r(i).pageClass])},[c(d.$slots,"layout-top",{},void 0,!0),m(Vr),m(ft,{class:"backdrop",show:r(e),onClick:r(s)},null,8,["show","onClick"]),m(lr,null,{"nav-bar-title-before":h(()=>[c(d.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":h(()=>[c(d.$slots,"nav-bar-title-after",{},void 0,!0)]),"nav-bar-content-before":h(()=>[c(d.$slots,"nav-bar-content-before",{},void 0,!0)]),"nav-bar-content-after":h(()=>[c(d.$slots,"nav-bar-content-after",{},void 0,!0)]),"nav-screen-content-before":h(()=>[c(d.$slots,"nav-screen-content-before",{},void 0,!0)]),"nav-screen-content-after":h(()=>[c(d.$slots,"nav-screen-content-after",{},void 0,!0)]),_:3}),m(Gn,{open:r(e),onOpenMenu:r(t)},null,8,["open","onOpenMenu"]),m(yr,{open:r(e)},{"sidebar-nav-before":h(()=>[c(d.$slots,"sidebar-nav-before",{},void 0,!0)]),"sidebar-nav-after":h(()=>[c(d.$slots,"sidebar-nav-after",{},void 0,!0)]),_:3},8,["open"]),m($n,null,{"page-top":h(()=>[c(d.$slots,"page-top",{},void 0,!0)]),"page-bottom":h(()=>[c(d.$slots,"page-bottom",{},void 0,!0)]),"not-found":h(()=>[c(d.$slots,"not-found",{},void 0,!0)]),"home-hero-before":h(()=>[c(d.$slots,"home-hero-before",{},void 0,!0)]),"home-hero-info-before":h(()=>[c(d.$slots,"home-hero-info-before",{},void 0,!0)]),"home-hero-info":h(()=>[c(d.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-info-after":h(()=>[c(d.$slots,"home-hero-info-after",{},void 0,!0)]),"home-hero-actions-after":h(()=>[c(d.$slots,"home-hero-actions-after",{},void 0,!0)]),"home-hero-image":h(()=>[c(d.$slots,"home-hero-image",{},void 0,!0)]),"home-hero-after":h(()=>[c(d.$slots,"home-hero-after",{},void 0,!0)]),"home-features-before":h(()=>[c(d.$slots,"home-features-before",{},void 0,!0)]),"home-features-after":h(()=>[c(d.$slots,"home-features-after",{},void 0,!0)]),"doc-footer-before":h(()=>[c(d.$slots,"doc-footer-before",{},void 0,!0)]),"doc-before":h(()=>[c(d.$slots,"doc-before",{},void 0,!0)]),"doc-after":h(()=>[c(d.$slots,"doc-after",{},void 0,!0)]),"doc-top":h(()=>[c(d.$slots,"doc-top",{},void 0,!0)]),"doc-bottom":h(()=>[c(d.$slots,"doc-bottom",{},void 0,!0)]),"aside-top":h(()=>[c(d.$slots,"aside-top",{},void 0,!0)]),"aside-bottom":h(()=>[c(d.$slots,"aside-bottom",{},void 0,!0)]),"aside-outline-before":h(()=>[c(d.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":h(()=>[c(d.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":h(()=>[c(d.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":h(()=>[c(d.$slots,"aside-ads-after",{},void 0,!0)]),_:3}),m(Sn),c(d.$slots,"layout-bottom",{},void 0,!0)],2)):(a(),b(P,{key:1}))}}}),Sr=$(Lr,[["__scopeId","data-v-e2af0aff"]]),wr={Layout:Sr,enhanceApp:({app:o})=>{o.component("Badge",pt)}},Tr=f((o,e)=>()=>{var t,s;return(s=(t=e.slots).default)==null?void 0:s.call(t)}),We=o=>(o.loader(),f((e,t)=>{const s=Y();return s.value||o.loader().then(n=>{s.value=n}),()=>s.value?Z(s.value,e,t.slots):Z(o.placeholder,e,t.slots)},{props:o.props})),qe=["alt","height","imgProps","previewedImgProps","lazy","intersectionObserverOptions","objectFit","previewSrc","fallbackSrc","width","src","previewDisabled","loadDescription","onError","onLoad","theme","themeOverrides","builtinThemeOverrides","onPreviewPrev","onPreviewNext","showToolbar","showToolbarTooltip","renderToolbar"],Ir=f((o,e)=>()=>Z("div",{class:"n-image"},Z("img",o,e.slots)),{props:qe}),Le=We({loader:()=>X(()=>import(((u)=>{if(u.startsWith('/')){return"https://registry.npmmirror.com/@gkd-kit/docs/0.0.1725011887959/files/.vitepress/dist"+u}return u})("./index.DDSresYc.js")),[]).then(o=>o.NImage),placeholder:Ir,props:qe}),Ke=We({loader:()=>X(()=>import(((u)=>{if(u.startsWith('/')){return"https://registry.npmmirror.com/@gkd-kit/docs/0.0.1725011887959/files/.vitepress/dist"+u}return u})("./index.DDSresYc.js")),[]).then(o=>o.NImageGroup),placeholder:Tr}),Nr={NImage:Le,NImageGroup:Ke},we=()=>"https://registry.npmmirror.com/@gkd-kit/assets/0.0.8/files/assets/",Te="https://a.gkd.li/",Je=o=>o&&o.startsWith("https:")?o.startsWith(Te)?we()+o.slice(Te.length):o:we()+o,Mr=f(o=>()=>Z(Le,{src:Je(o.src),width:o.width}),{props:["src","width"]}),Ar=f({__name:"ImageTable",props:{images:{}},setup(o){return(e,t)=>(a(),l("table",null,[p("tbody",null,[m(r(Ke),null,{default:h(()=>[(a(!0),l(M,null,B(e.images,(s,n)=>(a(),l("tr",{key:n},[(a(!0),l(M,null,B(s,i=>(a(),l("td",{key:i},[m(r(Le),{src:r(Je)(i)},null,8,["src"])]))),128))]))),128))]),_:1})])]))}}),Cr=f({__name:"IdentifierField",setup(o){const e=Y(""),t=/^[_a-zA-Z][a-zA-Z0-9_]*$/,s=ct(e,300),n=y(()=>s.value!=="null"&&s.value!=="true"&&s.value!=="false"&&t.test(s.value));return(i,u)=>(a(),l("div",null,[ut(p("input",{placeholder:"请输入标识符测试是否合法",type:"text","onUpdate:modelValue":u[0]||(u[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),[[dt,e.value]]),p("div",{"mt-4px":"",class:N({"color-red":!n.value,"opacity-0":!r(s)||!e.value})},S(n.value?"合法标识符✅":"非法标识符❌"),3)]))}}),Br={"inline-flex":"","items-center":"","gap-10px":""},Hr={key:0,"animate-spin":"","size-16px":"",viewBox:"0 0 16 16",fill:"none"},Er=p("circle",{cx:"8",cy:"8",r:"7",stroke:"currentColor","stroke-opacity":"0.25","stroke-width":"2","vector-effect":"non-scaling-stroke"},null,-1),Dr=p("path",{d:"M15 8a7.002 7.002 0 00-7-7",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","vector-effect":"non-scaling-stroke"},null,-1),Fr=[Er,Dr],Or=f({__name:"ApkDownloadButton",props:{beta:{type:Boolean}},setup(o){const e=o,t=Y(""),s=y(()=>(t.value.split("/").at(-1)||"").replace(".wasm",".apk")),n=Y(!1),i=async()=>{if(!(!t.value||n.value)){n.value=!0;try{const d=await fetch(t.value).then(P=>P.arrayBuffer()).then(P=>new File([P],s.value,{type:"application/vnd.android.package-archive"})),{saveAs:k}=await X(async()=>{const{saveAs:P}=await import(((u)=>{if(u.startsWith('/')){return"https://registry.npmmirror.com/@gkd-kit/docs/0.0.1725011887959/files/.vitepress/dist"+u}return u})("./FileSaver.min.CvNQQnEe.js")).then(g=>g.F);return{saveAs:P}},[]);k(d,s.value)}finally{n.value=!1}}};globalThis.document&&X(()=>import(((u)=>{if(u.startsWith('/')){return"https://registry.npmmirror.com/@gkd-kit/docs/0.0.1725011887959/files/.vitepress/dist"+u}return u})("./FileSaver.min.CvNQQnEe.js")).then(d=>d.F),[]);const u=y(()=>e.beta?"app-beta":"app"),v=y(()=>`apkUrl-${u.value}`);return W(async()=>{t.value=localStorage.getItem(v.value)||"";const d=`https://registry.npmmirror.com/@gkd-kit/${u.value}/latest/files`,k=await fetch(d),P=await k.json();t.value=new URL(P.downloadUrl,k.url).href,localStorage.setItem(v.value,t.value)}),(d,k)=>(a(),l("div",Br,[p("a",{class:N({"cursor-progress":n.value,"opacity-50":n.value,"cursor-pointer":!n.value}),onClick:i},S(s.value),3),n.value?(a(),l("svg",Hr,Fr)):_("",!0)]))}}),Ur={...Nr,GImg:Mr,ImageTable:Ar,IdentifierField:Cr,ApkDownloadButton:Or};location.pathname.startsWith("/selector/")?location.pathname.at(-1)==="/"?location.pathname="/guide/selector":location.pathname=location.pathname.replace("/selector/","/guide/"):location.pathname==="/subscription/"?location.pathname="/guide/subscription":location.pathname==="/"&&new URLSearchParams(location.search).get("r")==="1"&&(location.href="/guide/snapshot#how-to-upload");const jr={extends:wr,enhanceApp({app:o}){Object.entries(Ur).forEach(([e,t])=>{o.component(e,t)})}};export{jr as R,Qs as c,V as u};
@@ -1 +1 @@
1
- import{_ as e,c as a,o as t,a8 as r}from"./chunks/framework.DAuRlsJR.js";const m=JSON.parse('{"title":"选择示例","description":"","frontmatter":{},"headers":[],"relativePath":"guide/example.md","filePath":"guide/example.md","lastUpdated":1724077078000}'),i={name:"guide/example.md"},l=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="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>选择一个 ImageView 节点, 并要求其父节点是 LinearLayout</p><p><a href="https://i.gkd.li/i/16076188?gkd=TGluZWFyTGF5b3V0ID4gSW1hZ2VWaWV3" target="_blank" rel="noreferrer"><code>LinearLayout &gt; ImageView</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>选择一个 ImageView 节点, 并要求是其父节点是最后一个子节点</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>',10),o=[l];function d(n,c,h,s,p,_){return t(),a("div",null,o)}const f=e(i,[["render",d]]);export{m as __pageData,f as default};
1
+ import{_ as e,c as a,o as t,a8 as r}from"./chunks/framework.DAuRlsJR.js";const m=JSON.parse('{"title":"选择示例","description":"","frontmatter":{},"headers":[],"relativePath":"guide/example.md","filePath":"guide/example.md","lastUpdated":1725011862000}'),i={name:"guide/example.md"},l=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="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>选择一个 ImageView 节点, 并要求其父节点是 LinearLayout</p><p><a href="https://i.gkd.li/i/16076188?gkd=TGluZWFyTGF5b3V0ID4gSW1hZ2VWaWV3" target="_blank" rel="noreferrer"><code>LinearLayout &gt; ImageView</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>选择一个 ImageView 节点, 并要求是其父节点是最后一个子节点</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>',10),o=[l];function d(n,c,h,s,p,_){return t(),a("div",null,o)}const f=e(i,[["render",d]]);export{m as __pageData,f as default};
@@ -1 +1 @@
1
- import{_ as e,c as a,o as t,a8 as r}from"./chunks/framework.DAuRlsJR.js";const m=JSON.parse('{"title":"选择示例","description":"","frontmatter":{},"headers":[],"relativePath":"guide/example.md","filePath":"guide/example.md","lastUpdated":1724077078000}'),i={name:"guide/example.md"},l=r("",10),o=[l];function d(n,c,h,s,p,_){return t(),a("div",null,o)}const f=e(i,[["render",d]]);export{m as __pageData,f as default};
1
+ import{_ as e,c as a,o as t,a8 as r}from"./chunks/framework.DAuRlsJR.js";const m=JSON.parse('{"title":"选择示例","description":"","frontmatter":{},"headers":[],"relativePath":"guide/example.md","filePath":"guide/example.md","lastUpdated":1725011862000}'),i={name:"guide/example.md"},l=r("",10),o=[l];function d(n,c,h,s,p,_){return t(),a("div",null,o)}const f=e(i,[["render",d]]);export{m as __pageData,f as default};
@@ -1 +1 @@
1
- import{_ as n,D as i,c as r,I as a,a8 as s,j as e,a as o,o as l}from"./chunks/framework.DAuRlsJR.js";const N=JSON.parse('{"title":"常见问题","description":"","frontmatter":{},"headers":[],"relativePath":"guide/faq.md","filePath":"guide/faq.md","lastUpdated":1724077078000}'),_={name:"guide/faq.md"},p=s('<h1 id="title" tabindex="-1">常见问题 <a class="header-anchor" href="#title" aria-label="Permalink to &quot;常见问题 {#title}&quot;">​</a></h1><p>一些可能影响使用体验的问题和对应解决方案, 某些方案可能并不适用您的机型系统</p><p>如您有更好的方案或想对现有方案进行补充, 请点击底部 <code>为此页提供修改建议</code></p><h2 id="restriction" tabindex="-1">受限制的设置 <a class="header-anchor" href="#restriction" aria-label="Permalink to &quot;受限制的设置 {#restriction}&quot;">​</a></h2><p>无障碍列表界面提示 <code>受限制的设置(出于安全考虑,此设置目前不可用)</code></p><p>这是 Android13 的限制, 对于不在应用商店等可信任来源安装的应用不能直接开启无障碍权限</p><p>您需要解除这个限制, 到系统设置-应用管理-找到并点击GKD-右上角-允许受限制的设置</p><p>以 LineageOS 20 为例, 下面为完整的解除限制流程截图, 此处感谢来自 <a href="https://github.com/gkd-kit/docs/issues/2" target="_blank" rel="noreferrer">CyrusYip</a> 的截图</p>',8),c=s('<p>如果您按照以上步骤设置后回到 无障碍列表 仍然提示不可用, 您可以试试 <strong>重启手机</strong>, 此解决方案来自 <a href="https://github.com/orgs/gkd-kit/discussions/433#discussioncomment-8899920" target="_blank" rel="noreferrer">Herobrine2005928</a></p><h2 id="persistent" tabindex="-1">后台运行 <a class="header-anchor" href="#persistent" aria-label="Permalink to &quot;后台运行 {#persistent}&quot;">​</a></h2><p>如何尽量保持后台运行不被系统回收</p><ul><li>任务切换界面给 GKD 应用卡片加锁即可</li></ul><p>一般情况下, 使用此项即可正常后台运行, 如果不行请使用下面的步骤</p><ul><li>打开 GKD 首页, 开启 <code>常驻通知</code></li><li>打开 GKD 设置, 开启 <code>后台隐藏</code></li><li>允许后台活动, 关闭省电策略, 或者设置 GKD 的省电策略为无限制</li><li>允许 GKD 自启动</li></ul><h2 id="close_warn_dialog" tabindex="-1">关闭无障碍警告弹窗 <a class="header-anchor" href="#close_warn_dialog" aria-label="Permalink to &quot;关闭无障碍警告弹窗 {#close_warn_dialog}&quot;">​</a></h2><p>请注意: <strong>这个方案不一定适用所有机型</strong></p><p>大多数设备开启无障碍时都会出现 10s 的无障碍警告弹窗, 若是只需要开启一次则无所谓, 但是如果开启次数比较多每次都有这个警告等待就很烦人了</p>',9),d=e("p",null,[o("你可能已经看到这个界面还有一个开关, 也就是下方的 "),e("code",null,"快捷方式"),o(" 开关")],-1),h=e("p",null,"打开一次下面这个快捷方式开关后, 上面的的开启按钮就不会出现警告弹窗了, 但是你会发现屏幕侧边出现了一个应用小图标, 多数情况下我们并不需要这个图标",-1),u=e("p",null,'到无障碍界面-"无障碍"按钮-使用按钮或手势-点击切换为手势即可隐藏',-1),g=e("p",null,"以 Xiaomi HyperOS 为例子, 下面是完整的关闭弹窗流程截图",-1),m=e("h2",{id:"power",tabindex:"-1"},[o("耗电说明 "),e("a",{class:"header-anchor",href:"#power","aria-label":'Permalink to "耗电说明 {#power}"'},"​")],-1),f=e("p",null,"首先 GKD 默认情况下并不耗电,有的人以为关闭更新检测,关闭日志就能减少耗电,并不正确",-1),b=e("p",null,"真正的耗电在于 启用的规则 和 当前应用界面无障碍节点数量及无障碍事件刷新频率",-1),T=e("p",null,"如果想追求低耗电,那应该开启少量的规则,由于之前的默认规则数量有 1300+,很多人喜欢无脑开启规则",-1),k=e("p",null,"开启这么多规则,并且在这些规则匹配的界面使用手机,不耗电是不可能的",-1),q=e("p",null,"此外,某些软件如抖音的无障碍节点数量比较多,并且产生无障碍事件频率也比较高",-1),D=e("p",null,"长时间下使用此类软件的规则会比较耗电,请自行考虑后再启用",-1);function P(S,x,V,A,G,I){const t=i("ImageTable");return l(),r("div",null,[p,a(t,{images:[["0013.png","0014.png","0015.png","0016.png"],["0017.png","0018.png"]]}),c,a(t,{images:[["0004.png","0005.png"]]}),d,h,u,g,a(t,{images:[["0009.png","0010.png","0011.png","0012.png"]]}),m,f,b,T,k,q,D])}const w=n(_,[["render",P]]);export{N as __pageData,w as default};
1
+ import{_ as n,D as i,c as r,I as a,a8 as s,j as e,a as o,o as l}from"./chunks/framework.DAuRlsJR.js";const N=JSON.parse('{"title":"常见问题","description":"","frontmatter":{},"headers":[],"relativePath":"guide/faq.md","filePath":"guide/faq.md","lastUpdated":1725011862000}'),_={name:"guide/faq.md"},p=s('<h1 id="title" tabindex="-1">常见问题 <a class="header-anchor" href="#title" aria-label="Permalink to &quot;常见问题 {#title}&quot;">​</a></h1><p>一些可能影响使用体验的问题和对应解决方案, 某些方案可能并不适用您的机型系统</p><p>如您有更好的方案或想对现有方案进行补充, 请点击底部 <code>为此页提供修改建议</code></p><h2 id="restriction" tabindex="-1">受限制的设置 <a class="header-anchor" href="#restriction" aria-label="Permalink to &quot;受限制的设置 {#restriction}&quot;">​</a></h2><p>无障碍列表界面提示 <code>受限制的设置(出于安全考虑,此设置目前不可用)</code></p><p>这是 Android13 的限制, 对于不在应用商店等可信任来源安装的应用不能直接开启无障碍权限</p><p>您需要解除这个限制, 到系统设置-应用管理-找到并点击GKD-右上角-允许受限制的设置</p><p>以 LineageOS 20 为例, 下面为完整的解除限制流程截图, 此处感谢来自 <a href="https://github.com/gkd-kit/docs/issues/2" target="_blank" rel="noreferrer">CyrusYip</a> 的截图</p>',8),c=s('<p>如果您按照以上步骤设置后回到 无障碍列表 仍然提示不可用, 您可以试试 <strong>重启手机</strong>, 此解决方案来自 <a href="https://github.com/orgs/gkd-kit/discussions/433#discussioncomment-8899920" target="_blank" rel="noreferrer">Herobrine2005928</a></p><h2 id="persistent" tabindex="-1">后台运行 <a class="header-anchor" href="#persistent" aria-label="Permalink to &quot;后台运行 {#persistent}&quot;">​</a></h2><p>如何尽量保持后台运行不被系统回收</p><ul><li>任务切换界面给 GKD 应用卡片加锁即可</li></ul><p>一般情况下, 使用此项即可正常后台运行, 如果不行请使用下面的步骤</p><ul><li>打开 GKD 首页, 开启 <code>常驻通知</code></li><li>打开 GKD 设置, 开启 <code>后台隐藏</code></li><li>允许后台活动, 关闭省电策略, 或者设置 GKD 的省电策略为无限制</li><li>允许 GKD 自启动</li></ul><h2 id="close_warn_dialog" tabindex="-1">关闭无障碍警告弹窗 <a class="header-anchor" href="#close_warn_dialog" aria-label="Permalink to &quot;关闭无障碍警告弹窗 {#close_warn_dialog}&quot;">​</a></h2><p>请注意: <strong>这个方案不一定适用所有机型</strong></p><p>大多数设备开启无障碍时都会出现 10s 的无障碍警告弹窗, 若是只需要开启一次则无所谓, 但是如果开启次数比较多每次都有这个警告等待就很烦人了</p>',9),d=e("p",null,[o("你可能已经看到这个界面还有一个开关, 也就是下方的 "),e("code",null,"快捷方式"),o(" 开关")],-1),h=e("p",null,"打开一次下面这个快捷方式开关后, 上面的的开启按钮就不会出现警告弹窗了, 但是你会发现屏幕侧边出现了一个应用小图标, 多数情况下我们并不需要这个图标",-1),u=e("p",null,'到无障碍界面-"无障碍"按钮-使用按钮或手势-点击切换为手势即可隐藏',-1),g=e("p",null,"以 Xiaomi HyperOS 为例子, 下面是完整的关闭弹窗流程截图",-1),m=e("h2",{id:"power",tabindex:"-1"},[o("耗电说明 "),e("a",{class:"header-anchor",href:"#power","aria-label":'Permalink to "耗电说明 {#power}"'},"​")],-1),f=e("p",null,"首先 GKD 默认情况下并不耗电,有的人以为关闭更新检测,关闭日志就能减少耗电,并不正确",-1),b=e("p",null,"真正的耗电在于 启用的规则 和 当前应用界面无障碍节点数量及无障碍事件刷新频率",-1),T=e("p",null,"如果想追求低耗电,那应该开启少量的规则,由于之前的默认规则数量有 1300+,很多人喜欢无脑开启规则",-1),k=e("p",null,"开启这么多规则,并且在这些规则匹配的界面使用手机,不耗电是不可能的",-1),q=e("p",null,"此外,某些软件如抖音的无障碍节点数量比较多,并且产生无障碍事件频率也比较高",-1),D=e("p",null,"长时间下使用此类软件的规则会比较耗电,请自行考虑后再启用",-1);function P(S,x,V,A,G,I){const t=i("ImageTable");return l(),r("div",null,[p,a(t,{images:[["0013.png","0014.png","0015.png","0016.png"],["0017.png","0018.png"]]}),c,a(t,{images:[["0004.png","0005.png"]]}),d,h,u,g,a(t,{images:[["0009.png","0010.png","0011.png","0012.png"]]}),m,f,b,T,k,q,D])}const w=n(_,[["render",P]]);export{N as __pageData,w as default};
@@ -1 +1 @@
1
- import{_ as n,D as i,c as r,I as a,a8 as s,j as e,a as o,o as l}from"./chunks/framework.DAuRlsJR.js";const N=JSON.parse('{"title":"常见问题","description":"","frontmatter":{},"headers":[],"relativePath":"guide/faq.md","filePath":"guide/faq.md","lastUpdated":1724077078000}'),_={name:"guide/faq.md"},p=s("",8),c=s("",9),d=e("p",null,[o("你可能已经看到这个界面还有一个开关, 也就是下方的 "),e("code",null,"快捷方式"),o(" 开关")],-1),h=e("p",null,"打开一次下面这个快捷方式开关后, 上面的的开启按钮就不会出现警告弹窗了, 但是你会发现屏幕侧边出现了一个应用小图标, 多数情况下我们并不需要这个图标",-1),u=e("p",null,'到无障碍界面-"无障碍"按钮-使用按钮或手势-点击切换为手势即可隐藏',-1),g=e("p",null,"以 Xiaomi HyperOS 为例子, 下面是完整的关闭弹窗流程截图",-1),m=e("h2",{id:"power",tabindex:"-1"},[o("耗电说明 "),e("a",{class:"header-anchor",href:"#power","aria-label":'Permalink to "耗电说明 {#power}"'},"​")],-1),f=e("p",null,"首先 GKD 默认情况下并不耗电,有的人以为关闭更新检测,关闭日志就能减少耗电,并不正确",-1),b=e("p",null,"真正的耗电在于 启用的规则 和 当前应用界面无障碍节点数量及无障碍事件刷新频率",-1),T=e("p",null,"如果想追求低耗电,那应该开启少量的规则,由于之前的默认规则数量有 1300+,很多人喜欢无脑开启规则",-1),k=e("p",null,"开启这么多规则,并且在这些规则匹配的界面使用手机,不耗电是不可能的",-1),q=e("p",null,"此外,某些软件如抖音的无障碍节点数量比较多,并且产生无障碍事件频率也比较高",-1),D=e("p",null,"长时间下使用此类软件的规则会比较耗电,请自行考虑后再启用",-1);function P(S,x,V,A,G,I){const t=i("ImageTable");return l(),r("div",null,[p,a(t,{images:[["0013.png","0014.png","0015.png","0016.png"],["0017.png","0018.png"]]}),c,a(t,{images:[["0004.png","0005.png"]]}),d,h,u,g,a(t,{images:[["0009.png","0010.png","0011.png","0012.png"]]}),m,f,b,T,k,q,D])}const w=n(_,[["render",P]]);export{N as __pageData,w as default};
1
+ import{_ as n,D as i,c as r,I as a,a8 as s,j as e,a as o,o as l}from"./chunks/framework.DAuRlsJR.js";const N=JSON.parse('{"title":"常见问题","description":"","frontmatter":{},"headers":[],"relativePath":"guide/faq.md","filePath":"guide/faq.md","lastUpdated":1725011862000}'),_={name:"guide/faq.md"},p=s("",8),c=s("",9),d=e("p",null,[o("你可能已经看到这个界面还有一个开关, 也就是下方的 "),e("code",null,"快捷方式"),o(" 开关")],-1),h=e("p",null,"打开一次下面这个快捷方式开关后, 上面的的开启按钮就不会出现警告弹窗了, 但是你会发现屏幕侧边出现了一个应用小图标, 多数情况下我们并不需要这个图标",-1),u=e("p",null,'到无障碍界面-"无障碍"按钮-使用按钮或手势-点击切换为手势即可隐藏',-1),g=e("p",null,"以 Xiaomi HyperOS 为例子, 下面是完整的关闭弹窗流程截图",-1),m=e("h2",{id:"power",tabindex:"-1"},[o("耗电说明 "),e("a",{class:"header-anchor",href:"#power","aria-label":'Permalink to "耗电说明 {#power}"'},"​")],-1),f=e("p",null,"首先 GKD 默认情况下并不耗电,有的人以为关闭更新检测,关闭日志就能减少耗电,并不正确",-1),b=e("p",null,"真正的耗电在于 启用的规则 和 当前应用界面无障碍节点数量及无障碍事件刷新频率",-1),T=e("p",null,"如果想追求低耗电,那应该开启少量的规则,由于之前的默认规则数量有 1300+,很多人喜欢无脑开启规则",-1),k=e("p",null,"开启这么多规则,并且在这些规则匹配的界面使用手机,不耗电是不可能的",-1),q=e("p",null,"此外,某些软件如抖音的无障碍节点数量比较多,并且产生无障碍事件频率也比较高",-1),D=e("p",null,"长时间下使用此类软件的规则会比较耗电,请自行考虑后再启用",-1);function P(S,x,V,A,G,I){const t=i("ImageTable");return l(),r("div",null,[p,a(t,{images:[["0013.png","0014.png","0015.png","0016.png"],["0017.png","0018.png"]]}),c,a(t,{images:[["0004.png","0005.png"]]}),d,h,u,g,a(t,{images:[["0009.png","0010.png","0011.png","0012.png"]]}),m,f,b,T,k,q,D])}const w=n(_,[["render",P]]);export{N as __pageData,w as default};
@@ -0,0 +1 @@
1
+ import{_ as s,D as l,c as d,j as e,I as a,a as t,a8 as i,o as _}from"./chunks/framework.DAuRlsJR.js";const q=JSON.parse('{"title":"开始使用","description":"","frontmatter":{},"headers":[],"relativePath":"guide/index.md","filePath":"guide/index.md","lastUpdated":1725011862000}'),r={name:"guide/index.md"},c=e("h1",{id:"title",tabindex:"-1"},[t("开始使用 "),e("a",{class:"header-anchor",href:"#title","aria-label":'Permalink to "开始使用 {#title}"'},"​")],-1),p=e("h2",{id:"install",tabindex:"-1"},[t("安装 "),e("a",{class:"header-anchor",href:"#install","aria-label":'Permalink to "安装 {#install}"'},"​")],-1),h={tabindex:"0"},u=e("thead",null,[e("tr",null,[e("th",null,"版本"),e("th",null,"下载链接"),e("th",null,"备注")])],-1),g=e("td",null,"正式版",-1),m=e("td",null,"稳定版",-1),b=e("td",null,"测试版",-1),f=e("td",null,"更新快不稳定",-1),x=i('<p>或前往 <a href="https://github.com/gkd-kit/gkd/releases/latest" target="_blank" rel="noreferrer">Github Releases</a> 下载</p><p>下载完毕后, 在您的 Android 手机上安装并打开</p><h2 id="usage" tabindex="-1">使用 <a class="header-anchor" href="#usage" aria-label="Permalink to &quot;使用 {#usage}&quot;">​</a></h2><p>打开后进入 GKD 的首页, 要想 GKD 正常工作需要授权无障碍权限</p><p>点击无障碍权限右侧的 <code>授权</code> 按钮即可前往设置的无障碍界面授权</p><p>以 Xiaomi HyperOS 为例, 下面为完整的授权流程截图</p>',6),k=e("p",null,[t("如果您的手机的无障碍列表界面无法授权 GKD 或者显示 "),e("code",null,"受限制的设置(出于安全考虑,此设置目前不可用)")],-1),T=e("p",null,"这是 Android13 的限制, 对于不在应用商店等可信任来源安装的应用不能直接开启无障碍权限",-1),D=e("p",null,[t("您需要解除这个限制, 解除限制的方法在 "),e("a",{href:"/guide/faq"},"常见问题")],-1),A=e("p",null,"限制解除后, 重新按照上面的授权流程即可开启无障碍权限",-1);function P(N,S,V,B,I,G){const n=l("ApkDownloadButton"),o=l("ImageTable");return _(),d("div",null,[c,p,e("table",h,[u,e("tbody",null,[e("tr",null,[g,e("td",null,[a(n)]),m]),e("tr",null,[b,e("td",null,[a(n,{beta:""})]),f])])]),x,a(o,{images:[["0001.png","0002.png","0003.png","0004.png"],["0005.png","0006.png","0007.png","0008.png"]]}),k,T,D,A])}const v=s(r,[["render",P]]);export{q as __pageData,v as default};
@@ -0,0 +1 @@
1
+ import{_ as s,D as l,c as d,j as e,I as a,a as t,a8 as i,o as _}from"./chunks/framework.DAuRlsJR.js";const q=JSON.parse('{"title":"开始使用","description":"","frontmatter":{},"headers":[],"relativePath":"guide/index.md","filePath":"guide/index.md","lastUpdated":1725011862000}'),r={name:"guide/index.md"},c=e("h1",{id:"title",tabindex:"-1"},[t("开始使用 "),e("a",{class:"header-anchor",href:"#title","aria-label":'Permalink to "开始使用 {#title}"'},"​")],-1),p=e("h2",{id:"install",tabindex:"-1"},[t("安装 "),e("a",{class:"header-anchor",href:"#install","aria-label":'Permalink to "安装 {#install}"'},"​")],-1),h={tabindex:"0"},u=e("thead",null,[e("tr",null,[e("th",null,"版本"),e("th",null,"下载链接"),e("th",null,"备注")])],-1),g=e("td",null,"正式版",-1),m=e("td",null,"稳定版",-1),b=e("td",null,"测试版",-1),f=e("td",null,"更新快不稳定",-1),x=i("",6),k=e("p",null,[t("如果您的手机的无障碍列表界面无法授权 GKD 或者显示 "),e("code",null,"受限制的设置(出于安全考虑,此设置目前不可用)")],-1),T=e("p",null,"这是 Android13 的限制, 对于不在应用商店等可信任来源安装的应用不能直接开启无障碍权限",-1),D=e("p",null,[t("您需要解除这个限制, 解除限制的方法在 "),e("a",{href:"/guide/faq"},"常见问题")],-1),A=e("p",null,"限制解除后, 重新按照上面的授权流程即可开启无障碍权限",-1);function P(N,S,V,B,I,G){const n=l("ApkDownloadButton"),o=l("ImageTable");return _(),d("div",null,[c,p,e("table",h,[u,e("tbody",null,[e("tr",null,[g,e("td",null,[a(n)]),m]),e("tr",null,[b,e("td",null,[a(n,{beta:""})]),f])])]),x,a(o,{images:[["0001.png","0002.png","0003.png","0004.png"],["0005.png","0006.png","0007.png","0008.png"]]}),k,T,D,A])}const v=s(r,[["render",P]]);export{q as __pageData,v as default};