Files
build_notes_simengweb/assets/SearchBox-BrWKqHOL.js

9 lines
56 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import{P as ie,h as he,Q as ze,R as ut,S as dt,T as ht,B as Fe,U as ft,_ as be,c as V,o as P,b as w,f as pt,V as vt,W as mt,X as gt,Y as Pe,g as X,Z as bt,$ as yt,J as ee,i as _e,a0 as le,a1 as wt,A as _t,a2 as xt,L as St,l as kt,a3 as Et,C as It,e as xe,q as O,E as Tt,G as Nt,m as Ft,n as Ve,p as Ct,a4 as Rt,F as $e,d as te,t as ne,a5 as Ot,a6 as je,a7 as Mt}from"./app-FFcgQi-5.js";/*!
* tabbable 6.2.0
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
*/var Ye=["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])"],fe=Ye.join(","),Ze=typeof Element>"u",U=Ze?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,pe=!Ze&&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?.ownerDocument},ve=function a(e,t){var n;t===void 0&&(t=!0);var s=e==null||(n=e.getAttribute)===null||n===void 0?void 0:n.call(e,"inert"),r=s===""||s==="true",i=r||t&&e&&a(e.parentNode);return i},At=function(e){var t,n=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return n===""||n==="true"},Xe=function(e,t,n){if(ve(e))return[];var s=Array.prototype.slice.apply(e.querySelectorAll(fe));return t&&U.call(e,fe)&&s.unshift(e),s=s.filter(n),s},et=function a(e,t,n){for(var s=[],r=Array.from(e);r.length;){var i=r.shift();if(!ve(i,!1))if(i.tagName==="SLOT"){var o=i.assignedElements(),l=o.length?o:i.children,c=a(l,!0,n);n.flatten?s.push.apply(s,c):s.push({scopeParent:i,candidates:c})}else{var d=U.call(i,fe);d&&n.filter(i)&&(t||!e.includes(i))&&s.push(i);var v=i.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(i),p=!ve(v,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(i));if(v&&p){var b=a(v===!0?i.children:v.children,!0,n);n.flatten?s.push.apply(s,b):s.push({scopeParent:i,candidates:b})}else r.unshift.apply(r,i.children)}}return s},tt=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},K=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||At(e))&&!tt(e)?0:e.tabIndex},Lt=function(e,t){var n=K(e);return n<0&&t&&!tt(e)?0:n},Dt=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},nt=function(e){return e.tagName==="INPUT"},zt=function(e){return nt(e)&&e.type==="hidden"},Pt=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(n){return n.tagName==="SUMMARY"});return t},Vt=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]},$t=function(e){if(!e.name)return!0;var t=e.form||pe(e),n=function(o){return t.querySelectorAll('input[type="radio"][name="'+o+'"]')},s;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")s=n(window.CSS.escape(e.name));else try{s=n(e.name)}catch(i){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",i.message),!1}var r=Vt(s,e.form);return!r||r===e},jt=function(e){return nt(e)&&e.type==="radio"},Bt=function(e){return jt(e)&&!$t(e)},Wt=function(e){var t,n=e&&pe(e),s=(t=n)===null||t===void 0?void 0:t.host,r=!1;if(n&&n!==e){var i,o,l;for(r=!!((i=s)!==null&&i!==void 0&&(o=i.ownerDocument)!==null&&o!==void 0&&o.contains(s)||e!=null&&(l=e.ownerDocument)!==null&&l!==void 0&&l.contains(e));!r&&s;){var c,d,v;n=pe(s),s=(c=n)===null||c===void 0?void 0:c.host,r=!!((d=s)!==null&&d!==void 0&&(v=d.ownerDocument)!==null&&v!==void 0&&v.contains(s))}}return r},Be=function(e){var t=e.getBoundingClientRect(),n=t.width,s=t.height;return n===0&&s===0},Jt=function(e,t){var n=t.displayCheck,s=t.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var r=U.call(e,"details>summary:first-of-type"),i=r?e.parentElement:e;if(U.call(i,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="legacy-full"){if(typeof s=="function"){for(var o=e;e;){var l=e.parentElement,c=pe(e);if(l&&!l.shadowRoot&&s(l)===!0)return Be(e);e.assignedSlot?e=e.assignedSlot:!l&&c!==e.ownerDocument?e=c.host:e=l}e=o}if(Wt(e))return!e.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return Be(e);return!1},Kt=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var n=0;n<t.children.length;n++){var s=t.children.item(n);if(s.tagName==="LEGEND")return U.call(t,"fieldset[disabled] *")?!0:!s.contains(e)}return!0}t=t.parentElement}return!1},me=function(e,t){return!(t.disabled||ve(t)||zt(t)||Jt(t,e)||Pt(t)||Kt(t))},Ce=function(e,t){return!(Bt(t)||K(t)<0||!me(e,t))},Ut=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},qt=function a(e){var t=[],n=[];return e.forEach(function(s,r){var i=!!s.scopeParent,o=i?s.scopeParent:s,l=Lt(o,i),c=i?a(s.candidates):o;l===0?i?t.push.apply(t,c):t.push(o):n.push({documentOrder:r,tabIndex:l,item:s,isScope:i,content:c})}),n.sort(Dt).reduce(function(s,r){return r.isScope?s.push.apply(s,r.content):s.push(r.content),s},[]).concat(t)},Gt=function(e,t){t=t||{};var n;return t.getShadowRoot?n=et([e],t.includeContainer,{filter:Ce.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:Ut}):n=Xe(e,t.includeContainer,Ce.bind(null,t)),qt(n)},Qt=function(e,t){t=t||{};var n;return t.getShadowRoot?n=et([e],t.includeContainer,{filter:me.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):n=Xe(e,t.includeContainer,me.bind(null,t)),n},Q=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return U.call(e,fe)===!1?!1:Ce(t,e)},Ht=Ye.concat("iframe").join(","),Se=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return U.call(e,Ht)===!1?!1:me(t,e)};/*!
* focus-trap 7.6.5
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
*/function Re(a,e){(e==null||e>a.length)&&(e=a.length);for(var t=0,n=Array(e);t<e;t++)n[t]=a[t];return n}function Yt(a){if(Array.isArray(a))return Re(a)}function Zt(a,e,t){return(e=sn(e))in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function Xt(a){if(typeof Symbol<"u"&&a[Symbol.iterator]!=null||a["@@iterator"]!=null)return Array.from(a)}function en(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function We(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);e&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(a,s).enumerable})),t.push.apply(t,n)}return t}function Je(a){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?We(Object(t),!0).forEach(function(n){Zt(a,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(t)):We(Object(t)).forEach(function(n){Object.defineProperty(a,n,Object.getOwnPropertyDescriptor(t,n))})}return a}function tn(a){return Yt(a)||Xt(a)||rn(a)||en()}function nn(a,e){if(typeof a!="object"||!a)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var n=t.call(a,e);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(a)}function sn(a){var e=nn(a,"string");return typeof e=="symbol"?e:e+""}function rn(a,e){if(a){if(typeof a=="string")return Re(a,e);var t={}.toString.call(a).slice(8,-1);return t==="Object"&&a.constructor&&(t=a.constructor.name),t==="Map"||t==="Set"?Array.from(a):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Re(a,e):void 0}}var Ke={activateTrap:function(e,t){if(e.length>0){var n=e[e.length-1];n!==t&&n._setPausedState(!0)}var s=e.indexOf(t);s===-1||e.splice(s,1),e.push(t)},deactivateTrap:function(e,t){var n=e.indexOf(t);n!==-1&&e.splice(n,1),e.length>0&&!e[e.length-1]._isManuallyPaused()&&e[e.length-1]._setPausedState(!1)}},an=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},on=function(e){return e?.key==="Escape"||e?.key==="Esc"||e?.keyCode===27},re=function(e){return e?.key==="Tab"||e?.keyCode===9},ln=function(e){return re(e)&&!e.shiftKey},cn=function(e){return re(e)&&e.shiftKey},Ue=function(e){return setTimeout(e,0)},se=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),s=1;s<t;s++)n[s-1]=arguments[s];return typeof e=="function"?e.apply(void 0,n):e},ce=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},un=[],dn=function(e,t){var n=t?.document||document,s=t?.trapStack||un,r=Je({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:ln,isKeyBackward:cn},t),i={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},o,l=function(u,h,f){return u&&u[h]!==void 0?u[h]:r[f||h]},c=function(u,h){var f=typeof h?.composedPath=="function"?h.composedPath():void 0;return i.containerGroups.findIndex(function(m){var y=m.container,k=m.tabbableNodes;return y.contains(u)||f?.includes(y)||k.find(function(_){return _===u})})},d=function(u){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f=h.hasFallback,m=f===void 0?!1:f,y=h.params,k=y===void 0?[]:y,_=r[u];if(typeof _=="function"&&(_=_.apply(void 0,tn(k))),_===!0&&(_=void 0),!_){if(_===void 0||_===!1)return _;throw new Error("`".concat(u,"` was specified but was not a node, or did not return a node"))}var I=_;if(typeof _=="string"){try{I=n.querySelector(_)}catch(T){throw new Error("`".concat(u,'` appears to be an invalid selector; error="').concat(T.message,'"'))}if(!I&&!m)throw new Error("`".concat(u,"` as selector refers to no known node"))}return I},v=function(){var u=d("initialFocus",{hasFallback:!0});if(u===!1)return!1;if(u===void 0||u&&!Se(u,r.tabbableOptions))if(c(n.activeElement)>=0)u=n.activeElement;else{var h=i.tabbableGroups[0],f=h&&h.firstTabbableNode;u=f||d("fallbackFocus")}else u===null&&(u=d("fallbackFocus"));if(!u)throw new Error("Your focus-trap needs to have at least one focusable element");return u},p=function(){if(i.containerGroups=i.containers.map(function(u){var h=Gt(u,r.tabbableOptions),f=Qt(u,r.tabbableOptions),m=h.length>0?h[0]:void 0,y=h.length>0?h[h.length-1]:void 0,k=f.find(function(T){return Q(T)}),_=f.slice().reverse().find(function(T){return Q(T)}),I=!!h.find(function(T){return K(T)>0});return{container:u,tabbableNodes:h,focusableNodes:f,posTabIndexesFound:I,firstTabbableNode:m,lastTabbableNode:y,firstDomTabbableNode:k,lastDomTabbableNode:_,nextTabbableNode:function(D){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,z=h.indexOf(D);return z<0?W?f.slice(f.indexOf(D)+1).find(function(J){return Q(J)}):f.slice(0,f.indexOf(D)).reverse().find(function(J){return Q(J)}):h[z+(W?1:-1)]}}}),i.tabbableGroups=i.containerGroups.filter(function(u){return u.tabbableNodes.length>0}),i.tabbableGroups.length<=0&&!d("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(i.containerGroups.find(function(u){return u.posTabIndexesFound})&&i.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},b=function(u){var h=u.activeElement;if(h)return h.shadowRoot&&h.shadowRoot.activeElement!==null?b(h.shadowRoot):h},g=function(u){if(u!==!1&&u!==b(document)){if(!u||!u.focus){g(v());return}u.focus({preventScroll:!!r.preventScroll}),i.mostRecentlyFocusedNode=u,an(u)&&u.select()}},S=function(u){var h=d("setReturnFocus",{params:[u]});return h||(h===!1?!1:u)},x=function(u){var h=u.target,f=u.event,m=u.isBackward,y=m===void 0?!1:m;h=h||ce(f),p();var k=null;if(i.tabbableGroups.length>0){var _=c(h,f),I=_>=0?i.containerGroups[_]:void 0;if(_<0)y?k=i.tabbableGroups[i.tabbableGroups.length-1].lastTabbableNode:k=i.tabbableGroups[0].firstTabbableNode;else if(y){var T=i.tabbableGroups.findIndex(function(ye){var we=ye.firstTabbableNode;return h===we});if(T<0&&(I.container===h||Se(h,r.tabbableOptions)&&!Q(h,r.tabbableOptions)&&!I.nextTabbableNode(h,!1))&&(T=_),T>=0){var D=T===0?i.tabbableGroups.length-1:T-1,W=i.tabbableGroups[D];k=K(h)>=0?W.lastTabbableNode:W.lastDomTabbableNode}else re(f)||(k=I.nextTabbableNode(h,!1))}else{var z=i.tabbableGroups.findIndex(function(ye){var we=ye.lastTabbableNode;return h===we});if(z<0&&(I.container===h||Se(h,r.tabbableOptions)&&!Q(h,r.tabbableOptions)&&!I.nextTabbableNode(h))&&(z=_),z>=0){var J=z===i.tabbableGroups.length-1?0:z+1,oe=i.tabbableGroups[J];k=K(h)>=0?oe.firstTabbableNode:oe.firstDomTabbableNode}else re(f)||(k=I.nextTabbableNode(h))}}else k=d("fallbackFocus");return k},F=function(u){var h=ce(u);if(!(c(h,u)>=0)){if(se(r.clickOutsideDeactivates,u)){o.deactivate({returnFocus:r.returnFocusOnDeactivate});return}se(r.allowOutsideClick,u)||u.preventDefault()}},C=function(u){var h=ce(u),f=c(h,u)>=0;if(f||h instanceof Document)f&&(i.mostRecentlyFocusedNode=h);else{u.stopImmediatePropagation();var m,y=!0;if(i.mostRecentlyFocusedNode)if(K(i.mostRecentlyFocusedNode)>0){var k=c(i.mostRecentlyFocusedNode),_=i.containerGroups[k].tabbableNodes;if(_.length>0){var I=_.findIndex(function(T){return T===i.mostRecentlyFocusedNode});I>=0&&(r.isKeyForward(i.recentNavEvent)?I+1<_.length&&(m=_[I+1],y=!1):I-1>=0&&(m=_[I-1],y=!1))}}else i.containerGroups.some(function(T){return T.tabbableNodes.some(function(D){return K(D)>0})})||(y=!1);else y=!1;y&&(m=x({target:i.mostRecentlyFocusedNode,isBackward:r.isKeyBackward(i.recentNavEvent)})),g(m||i.mostRecentlyFocusedNode||v())}i.recentNavEvent=void 0},j=function(u){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;i.recentNavEvent=u;var f=x({event:u,isBackward:h});f&&(re(u)&&u.preventDefault(),g(f))},A=function(u){(r.isKeyForward(u)||r.isKeyBackward(u))&&j(u,r.isKeyBackward(u))},L=function(u){on(u)&&se(r.escapeDeactivates,u)!==!1&&(u.preventDefault(),o.deactivate())},N=function(u){var h=ce(u);c(h,u)>=0||se(r.clickOutsideDeactivates,u)||se(r.allowOutsideClick,u)||(u.preventDefault(),u.stopImmediatePropagation())},M=function(){if(i.active)return Ke.activateTrap(s,o),i.delayInitialFocusTimer=r.delayInitialFocus?Ue(function(){g(v())}):g(v()),n.addEventListener("focusin",C,!0),n.addEventListener("mousedown",F,{capture:!0,passive:!1}),n.addEventListener("touchstart",F,{capture:!0,passive:!1}),n.addEventListener("click",N,{capture:!0,passive:!1}),n.addEventListener("keydown",A,{capture:!0,passive:!1}),n.addEventListener("keydown",L),o},q=function(){if(i.active)return n.removeEventListener("focusin",C,!0),n.removeEventListener("mousedown",F,!0),n.removeEventListener("touchstart",F,!0),n.removeEventListener("click",N,!0),n.removeEventListener("keydown",A,!0),n.removeEventListener("keydown",L),o},ae=function(u){var h=u.some(function(f){var m=Array.from(f.removedNodes);return m.some(function(y){return y===i.mostRecentlyFocusedNode})});h&&g(v())},G=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(ae):void 0,B=function(){G&&(G.disconnect(),i.active&&!i.paused&&i.containers.map(function(u){G.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 h=l(u,"onActivate"),f=l(u,"onPostActivate"),m=l(u,"checkCanFocusTrap");m||p(),i.active=!0,i.paused=!1,i.nodeFocusedBeforeActivation=b(n),h?.();var y=function(){m&&p(),M(),B(),f?.()};return m?(m(i.containers.concat()).then(y,y),this):(y(),this)},deactivate:function(u){if(!i.active)return this;var h=Je({onDeactivate:r.onDeactivate,onPostDeactivate:r.onPostDeactivate,checkCanReturnFocus:r.checkCanReturnFocus},u);clearTimeout(i.delayInitialFocusTimer),i.delayInitialFocusTimer=void 0,q(),i.active=!1,i.paused=!1,B(),Ke.deactivateTrap(s,o);var f=l(h,"onDeactivate"),m=l(h,"onPostDeactivate"),y=l(h,"checkCanReturnFocus"),k=l(h,"returnFocus","returnFocusOnDeactivate");f?.();var _=function(){Ue(function(){k&&g(S(i.nodeFocusedBeforeActivation)),m?.()})};return k&&y?(y(S(i.nodeFocusedBeforeActivation)).then(_,_),this):(_(),this)},pause:function(u){return i.active?(i.manuallyPaused=!0,this._setPausedState(!0,u)):this},unpause:function(u){return i.active?(i.manuallyPaused=!1,s[s.length-1]!==this?this:this._setPausedState(!1,u)):this},updateContainerElements:function(u){var h=[].concat(u).filter(Boolean);return i.containers=h.map(function(f){return typeof f=="string"?n.querySelector(f):f}),i.active&&p(),B(),this}},Object.defineProperties(o,{_isManuallyPaused:{value:function(){return i.manuallyPaused}},_setPausedState:{value:function(u,h){if(i.paused===u)return this;if(i.paused=u,u){var f=l(h,"onPause"),m=l(h,"onPostPause");f?.(),q(),B(),m?.()}else{var y=l(h,"onUnpause"),k=l(h,"onPostUnpause");y?.(),p(),M(),B(),k?.()}return this}}}),o.updateContainerElements(e),o};function hn(a,e={}){let t;const{immediate:n,...s}=e,r=ie(!1),i=ie(!1),o=p=>t&&t.activate(p),l=p=>t&&t.deactivate(p),c=()=>{t&&(t.pause(),i.value=!0)},d=()=>{t&&(t.unpause(),i.value=!1)},v=he(()=>{const p=ze(a);return ut(p).map(b=>{const g=ze(b);return typeof g=="string"?g:dt(g)}).filter(ht)});return Fe(v,p=>{if(p.length)if(!t)t=dn(p,{...s,onActivate(){r.value=!0,e.onActivate&&e.onActivate()},onDeactivate(){r.value=!1,e.onDeactivate&&e.onDeactivate()}}),n&&o();else{const b=t?.active;t?.updateContainerElements(p),!b&&n&&o()}},{flush:"post"}),ft(()=>l()),{hasFocus:r,isPaused:i,activate:o,deactivate:l,pause:c,unpause:d}}class Y{constructor(e,t=!0,n=[],s=5e3){this.ctx=e,this.iframes=t,this.exclude=n,this.iframesTimeout=s}static matches(e,t){const n=typeof t=="string"?[t]:t,s=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(s){let r=!1;return n.every(i=>s.call(e,i)?(r=!0,!1):!0),r}else return!1}getContexts(){let e,t=[];return typeof this.ctx>"u"||!this.ctx?e=[]:NodeList.prototype.isPrototypeOf(this.ctx)?e=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?e=this.ctx:typeof this.ctx=="string"?e=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):e=[this.ctx],e.forEach(n=>{const s=t.filter(r=>r.contains(n)).length>0;t.indexOf(n)===-1&&!s&&t.push(n)}),t}getIframeContents(e,t,n=()=>{}){let s;try{const r=e.contentWindow;if(s=r.document,!r||!s)throw new Error("iframe inaccessible")}catch{n()}s&&t(s)}isIframeBlank(e){const t="about:blank",n=e.getAttribute("src").trim();return e.contentWindow.location.href===t&&n!==t&&n}observeIframeLoad(e,t,n){let s=!1,r=null;const i=()=>{if(!s){s=!0,clearTimeout(r);try{this.isIframeBlank(e)||(e.removeEventListener("load",i),this.getIframeContents(e,t,n))}catch{n()}}};e.addEventListener("load",i),r=setTimeout(i,this.iframesTimeout)}onIframeReady(e,t,n){try{e.contentWindow.document.readyState==="complete"?this.isIframeBlank(e)?this.observeIframeLoad(e,t,n):this.getIframeContents(e,t,n):this.observeIframeLoad(e,t,n)}catch{n()}}waitForIframes(e,t){let n=0;this.forEachIframe(e,()=>!0,s=>{n++,this.waitForIframes(s.querySelector("html"),()=>{--n||t()})},s=>{s||t()})}forEachIframe(e,t,n,s=()=>{}){let r=e.querySelectorAll("iframe"),i=r.length,o=0;r=Array.prototype.slice.call(r);const l=()=>{--i<=0&&s(o)};i||l(),r.forEach(c=>{Y.matches(c,this.exclude)?l():this.onIframeReady(c,d=>{t(c)&&(o++,n(d)),l()},l)})}createIterator(e,t,n){return document.createNodeIterator(e,t,n,!1)}createInstanceOnIframe(e){return new Y(e.querySelector("html"),this.iframes)}compareNodeIframe(e,t,n){const s=e.compareDocumentPosition(n),r=Node.DOCUMENT_POSITION_PRECEDING;if(s&r)if(t!==null){const i=t.compareDocumentPosition(n),o=Node.DOCUMENT_POSITION_FOLLOWING;if(i&o)return!0}else return!0;return!1}getIteratorNode(e){const t=e.previousNode();let n;return t===null?n=e.nextNode():n=e.nextNode()&&e.nextNode(),{prevNode:t,node:n}}checkIframeFilter(e,t,n,s){let r=!1,i=!1;return s.forEach((o,l)=>{o.val===n&&(r=l,i=o.handled)}),this.compareNodeIframe(e,t,n)?(r===!1&&!i?s.push({val:n,handled:!0}):r!==!1&&!i&&(s[r].handled=!0),!0):(r===!1&&s.push({val:n,handled:!1}),!1)}handleOpenIframes(e,t,n,s){e.forEach(r=>{r.handled||this.getIframeContents(r.val,i=>{this.createInstanceOnIframe(i).forEachNode(t,n,s)})})}iterateThroughNodes(e,t,n,s,r){const i=this.createIterator(t,e,s);let o=[],l=[],c,d,v=()=>({prevNode:d,node:c}=this.getIteratorNode(i),c);for(;v();)this.iframes&&this.forEachIframe(t,p=>this.checkIframeFilter(c,d,p,o),p=>{this.createInstanceOnIframe(p).forEachNode(e,b=>l.push(b),s)}),l.push(c);l.forEach(p=>{n(p)}),this.iframes&&this.handleOpenIframes(o,e,n,s),r()}forEachNode(e,t,n,s=()=>{}){const r=this.getContexts();let i=r.length;i||s(),r.forEach(o=>{const l=()=>{this.iterateThroughNodes(e,o,t,n,()=>{--i<=0&&s()})};this.iframes?this.waitForIframes(o,l):l()})}}let fn=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 Y(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(e,t="debug"){const n=this.opt.log;this.opt.debug&&typeof n=="object"&&typeof n[t]=="function"&&n[t](`mark.js: ${e}`)}escapeStr(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(e){return this.opt.wildcards!=="disabled"&&(e=this.setupWildcardsRegExp(e)),e=this.escapeStr(e),Object.keys(this.opt.synonyms).length&&(e=this.createSynonymsRegExp(e)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),this.opt.diacritics&&(e=this.createDiacriticsRegExp(e)),e=this.createMergedBlanksRegExp(e),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.createJoinersRegExp(e)),this.opt.wildcards!=="disabled"&&(e=this.createWildcardsRegExp(e)),e=this.createAccuracyRegExp(e),e}createSynonymsRegExp(e){const t=this.opt.synonyms,n=this.opt.caseSensitive?"":"i",s=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let r in t)if(t.hasOwnProperty(r)){const i=t[r],o=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(r):this.escapeStr(r),l=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(i):this.escapeStr(i);o!==""&&l!==""&&(e=e.replace(new RegExp(`(${this.escapeStr(o)}|${this.escapeStr(l)})`,`gm${n}`),s+`(${this.processSynomyms(o)}|${this.processSynomyms(l)})`+s))}return e}processSynomyms(e){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),e}setupWildcardsRegExp(e){return e=e.replace(/(?:\\)*\?/g,t=>t.charAt(0)==="\\"?"?":""),e.replace(/(?:\\)*\*/g,t=>t.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(e){let t=this.opt.wildcards==="withSpaces";return e.replace(/\u0001/g,t?"[\\S\\s]?":"\\S?").replace(/\u0002/g,t?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(e){return e.replace(/[^(|)\\]/g,(t,n,s)=>{let r=s.charAt(n+1);return/[(|)\\]/.test(r)||r===""?t:t+"\0"})}createJoinersRegExp(e){let t=[];const n=this.opt.ignorePunctuation;return Array.isArray(n)&&n.length&&t.push(this.escapeStr(n.join(""))),this.opt.ignoreJoiners&&t.push("\\u00ad\\u200b\\u200c\\u200d"),t.length?e.split(/\u0000+/).join(`[${t.join("")}]*`):e}createDiacriticsRegExp(e){const t=this.opt.caseSensitive?"":"i",n=this.opt.caseSensitive?["aàáảãạăằắẳẵặâầấẩẫậäåāą","AÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćč","CÇĆČ","dđď","DĐĎ","eèéẻẽẹêềếểễệëěēę","EÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïī","IÌÍỈĨỊÎÏĪ","lł","LŁ","nñňń","NÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøō","OÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rř","RŘ","sšśșş","SŠŚȘŞ","tťțţ","TŤȚŢ","uùúủũụưừứửữựûüůū","UÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿ","YÝỲỶỸỴŸ","zžżź","ZŽŻŹ"]:["aàáảãạăằắẳẵặâầấẩẫậäåāąAÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćčCÇĆČ","dđďDĐĎ","eèéẻẽẹêềếểễệëěēęEÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïīIÌÍỈĨỊÎÏĪ","lłLŁ","nñňńNÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøōOÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rřRŘ","sšśșşSŠŚȘŞ","tťțţTŤȚŢ","uùúủũụưừứửữựûüůūUÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿYÝỲỶỸỴŸ","zžżźZŽŻŹ"];let s=[];return e.split("").forEach(r=>{n.every(i=>{if(i.indexOf(r)!==-1){if(s.indexOf(i)>-1)return!1;e=e.replace(new RegExp(`[${i}]`,`gm${t}`),`[${i}]`),s.push(i)}return!0})}),e}createMergedBlanksRegExp(e){return e.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(e){const t="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~¡¿";let n=this.opt.accuracy,s=typeof n=="string"?n:n.value,r=typeof n=="string"?[]:n.limiters,i="";switch(r.forEach(o=>{i+=`|${this.escapeStr(o)}`}),s){case"partially":default:return`()(${e})`;case"complementary":return i="\\s"+(i||this.escapeStr(t)),`()([^${i}]*${e}[^${i}]*)`;case"exactly":return`(^|\\s${i})(${e})(?=$|\\s${i})`}}getSeparatedKeywords(e){let t=[];return e.forEach(n=>{this.opt.separateWordSearch?n.split(" ").forEach(s=>{s.trim()&&t.indexOf(s)===-1&&t.push(s)}):n.trim()&&t.indexOf(n)===-1&&t.push(n)}),{keywords:t.sort((n,s)=>s.length-n.length),length:t.length}}isNumeric(e){return Number(parseFloat(e))==e}checkRanges(e){if(!Array.isArray(e)||Object.prototype.toString.call(e[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(e),[];const t=[];let n=0;return e.sort((s,r)=>s.start-r.start).forEach(s=>{let{start:r,end:i,valid:o}=this.callNoMatchOnInvalidRanges(s,n);o&&(s.start=r,s.length=i-r,t.push(s),n=i)}),t}callNoMatchOnInvalidRanges(e,t){let n,s,r=!1;return e&&typeof e.start<"u"?(n=parseInt(e.start,10),s=n+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&s-t>0&&s-n>0?r=!0:(this.log(`Ignoring invalid or overlapping range: ${JSON.stringify(e)}`),this.opt.noMatch(e))):(this.log(`Ignoring invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)),{start:n,end:s,valid:r}}checkWhitespaceRanges(e,t,n){let s,r=!0,i=n.length,o=t-i,l=parseInt(e.start,10)-o;return l=l>i?i:l,s=l+parseInt(e.length,10),s>i&&(s=i,this.log(`End range automatically set to the max value of ${i}`)),l<0||s-l<0||l>i||s>i?(r=!1,this.log(`Invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)):n.substring(l,s).replace(/\s+/g,"")===""&&(r=!1,this.log("Skipping whitespace only range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:l,end:s,valid:r}}getTextNodes(e){let t="",n=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,s=>{n.push({start:t.length,end:(t+=s.textContent).length,node:s})},s=>this.matchesExclude(s.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{e({value:t,nodes:n})})}matchesExclude(e){return Y.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(e,t,n){const s=this.opt.element?this.opt.element:"mark",r=e.splitText(t),i=r.splitText(n-t);let o=document.createElement(s);return o.setAttribute("data-markjs","true"),this.opt.className&&o.setAttribute("class",this.opt.className),o.textContent=r.textContent,r.parentNode.replaceChild(o,r),i}wrapRangeInMappedTextNode(e,t,n,s,r){e.nodes.every((i,o)=>{const l=e.nodes[o+1];if(typeof l>"u"||l.start>t){if(!s(i.node))return!1;const c=t-i.start,d=(n>i.end?i.end:n)-i.start,v=e.value.substr(0,i.start),p=e.value.substr(d+i.start);if(i.node=this.wrapRangeInTextNode(i.node,c,d),e.value=v+p,e.nodes.forEach((b,g)=>{g>=o&&(e.nodes[g].start>0&&g!==o&&(e.nodes[g].start-=d),e.nodes[g].end-=d)}),n-=d,r(i.node.previousSibling,i.start),n>i.end)t=i.end;else return!1}return!0})}wrapMatches(e,t,n,s,r){const i=t===0?0:t+1;this.getTextNodes(o=>{o.nodes.forEach(l=>{l=l.node;let c;for(;(c=e.exec(l.textContent))!==null&&c[i]!=="";){if(!n(c[i],l))continue;let d=c.index;if(i!==0)for(let v=1;v<i;v++)d+=c[v].length;l=this.wrapRangeInTextNode(l,d,d+c[i].length),s(l.previousSibling),e.lastIndex=0}}),r()})}wrapMatchesAcrossElements(e,t,n,s,r){const i=t===0?0:t+1;this.getTextNodes(o=>{let l;for(;(l=e.exec(o.value))!==null&&l[i]!=="";){let c=l.index;if(i!==0)for(let v=1;v<i;v++)c+=l[v].length;const d=c+l[i].length;this.wrapRangeInMappedTextNode(o,c,d,v=>n(l[i],v),(v,p)=>{e.lastIndex=p,s(v)})}r()})}wrapRangeFromIndex(e,t,n,s){this.getTextNodes(r=>{const i=r.value.length;e.forEach((o,l)=>{let{start:c,end:d,valid:v}=this.checkWhitespaceRanges(o,i,r.value);v&&this.wrapRangeInMappedTextNode(r,c,d,p=>t(p,o,r.value.substring(c,d),l),p=>{n(p,o)})}),s()})}unwrapMatches(e){const t=e.parentNode;let n=document.createDocumentFragment();for(;e.firstChild;)n.appendChild(e.removeChild(e.firstChild));t.replaceChild(n,e),this.ie?this.normalizeTextNode(t):t.normalize()}normalizeTextNode(e){if(e){if(e.nodeType===3)for(;e.nextSibling&&e.nextSibling.nodeType===3;)e.nodeValue+=e.nextSibling.nodeValue,e.parentNode.removeChild(e.nextSibling);else this.normalizeTextNode(e.firstChild);this.normalizeTextNode(e.nextSibling)}}markRegExp(e,t){this.opt=t,this.log(`Searching with expression "${e}"`);let n=0,s="wrapMatches";const r=i=>{n++,this.opt.each(i)};this.opt.acrossElements&&(s="wrapMatchesAcrossElements"),this[s](e,this.opt.ignoreGroups,(i,o)=>this.opt.filter(o,i,n),r,()=>{n===0&&this.opt.noMatch(e),this.opt.done(n)})}mark(e,t){this.opt=t;let n=0,s="wrapMatches";const{keywords:r,length:i}=this.getSeparatedKeywords(typeof e=="string"?[e]:e),o=this.opt.caseSensitive?"":"i",l=c=>{let d=new RegExp(this.createRegExp(c),`gm${o}`),v=0;this.log(`Searching with expression "${d}"`),this[s](d,1,(p,b)=>this.opt.filter(b,c,n,v),p=>{v++,n++,this.opt.each(p)},()=>{v===0&&this.opt.noMatch(c),r[i-1]===c?this.opt.done(n):l(r[r.indexOf(c)+1])})};this.opt.acrossElements&&(s="wrapMatchesAcrossElements"),i===0?this.opt.done(n):l(r[0])}markRanges(e,t){this.opt=t;let n=0,s=this.checkRanges(e);s&&s.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(s)),this.wrapRangeFromIndex(s,(r,i,o,l)=>this.opt.filter(r,i,o,l),(r,i)=>{n++,this.opt.each(r,i)},()=>{this.opt.done(n)})):this.opt.done(n)}unmark(e){this.opt=e;let t=this.opt.element?this.opt.element:"*";t+="[data-markjs]",this.opt.className&&(t+=`.${this.opt.className}`),this.log(`Removal selector "${t}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,n=>{this.unwrapMatches(n)},n=>{const s=Y.matches(n,t),r=this.matchesExclude(n);return!s||r?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function pn(a){const e=new fn(a);return this.mark=(t,n)=>(e.mark(t,n),this),this.markRegExp=(t,n)=>(e.markRegExp(t,n),this),this.markRanges=(t,n)=>(e.markRanges(t,n),this),this.unmark=t=>(e.unmark(t),this),this}const vn="ENTRIES",st="KEYS",it="VALUES",R="";class ke{constructor(e,t){const n=e._tree,s=Array.from(n.keys());this.set=e,this._type=t,this._path=s.length>0?[{node:n,keys:s}]:[]}next(){const e=this.dive();return this.backtrack(),e}dive(){if(this._path.length===0)return{done:!0,value:void 0};const{node:e,keys:t}=H(this._path);if(H(t)===R)return{done:!1,value:this.result()};const n=e.get(H(t));return this._path.push({node:n,keys:Array.from(n.keys())}),this.dive()}backtrack(){if(this._path.length===0)return;const e=H(this._path).keys;e.pop(),!(e.length>0)&&(this._path.pop(),this.backtrack())}key(){return this.set._prefix+this._path.map(({keys:e})=>H(e)).filter(e=>e!==R).join("")}value(){return H(this._path).node.get(R)}result(){switch(this._type){case it:return this.value();case st:return this.key();default:return[this.key(),this.value()]}}[Symbol.iterator](){return this}}const H=a=>a[a.length-1],mn=(a,e,t)=>{const n=new Map;if(e===void 0)return n;const s=e.length+1,r=s+t,i=new Uint8Array(r*s).fill(t+1);for(let o=0;o<s;++o)i[o]=o;for(let o=1;o<r;++o)i[o*s]=o;return rt(a,e,t,n,i,1,s,""),n},rt=(a,e,t,n,s,r,i,o)=>{const l=r*i;e:for(const c of a.keys())if(c===R){const d=s[l-1];d<=t&&n.set(o,[a.get(c),d])}else{let d=r;for(let v=0;v<c.length;++v,++d){const p=c[v],b=i*d,g=b-i;let S=s[b];const x=Math.max(0,d-t-1),F=Math.min(i-1,d+t);for(let C=x;C<F;++C){const j=p!==e[C],A=s[g+C]+ +j,L=s[g+C+1]+1,N=s[b+C]+1,M=s[b+C+1]=Math.min(A,L,N);M<S&&(S=M)}if(S>t)continue e}rt(a.get(c),e,t,n,s,d,i,o+c)}};class ${constructor(e=new Map,t=""){this._size=void 0,this._tree=e,this._prefix=t}atPrefix(e){if(!e.startsWith(this._prefix))throw new Error("Mismatched prefix");const[t,n]=ge(this._tree,e.slice(this._prefix.length));if(t===void 0){const[s,r]=Le(n);for(const i of s.keys())if(i!==R&&i.startsWith(r)){const o=new Map;return o.set(i.slice(r.length),s.get(i)),new $(o,e)}}return new $(t,e)}clear(){this._size=void 0,this._tree.clear()}delete(e){return this._size=void 0,gn(this._tree,e)}entries(){return new ke(this,vn)}forEach(e){for(const[t,n]of this)e(t,n,this)}fuzzyGet(e,t){return mn(this._tree,e,t)}get(e){const t=Oe(this._tree,e);return t!==void 0?t.get(R):void 0}has(e){const t=Oe(this._tree,e);return t!==void 0&&t.has(R)}keys(){return new ke(this,st)}set(e,t){if(typeof e!="string")throw new Error("key must be a string");return this._size=void 0,Ee(this._tree,e).set(R,t),this}get size(){if(this._size)return this._size;this._size=0;const e=this.entries();for(;!e.next().done;)this._size+=1;return this._size}update(e,t){if(typeof e!="string")throw new Error("key must be a string");this._size=void 0;const n=Ee(this._tree,e);return n.set(R,t(n.get(R))),this}fetch(e,t){if(typeof e!="string")throw new Error("key must be a string");this._size=void 0;const n=Ee(this._tree,e);let s=n.get(R);return s===void 0&&n.set(R,s=t()),s}values(){return new ke(this,it)}[Symbol.iterator](){return this.entries()}static from(e){const t=new $;for(const[n,s]of e)t.set(n,s);return t}static fromObject(e){return $.from(Object.entries(e))}}const ge=(a,e,t=[])=>{if(e.length===0||a==null)return[a,t];for(const n of a.keys())if(n!==R&&e.startsWith(n))return t.push([a,n]),ge(a.get(n),e.slice(n.length),t);return t.push([a,e]),ge(void 0,"",t)},Oe=(a,e)=>{if(e.length===0||a==null)return a;for(const t of a.keys())if(t!==R&&e.startsWith(t))return Oe(a.get(t),e.slice(t.length))},Ee=(a,e)=>{const t=e.length;e:for(let n=0;a&&n<t;){for(const r of a.keys())if(r!==R&&e[n]===r[0]){const i=Math.min(t-n,r.length);let o=1;for(;o<i&&e[n+o]===r[o];)++o;const l=a.get(r);if(o===r.length)a=l;else{const c=new Map;c.set(r.slice(o),l),a.set(e.slice(n,n+o),c),a.delete(r),a=c}n+=o;continue e}const s=new Map;return a.set(e.slice(n),s),s}return a},gn=(a,e)=>{const[t,n]=ge(a,e);if(t!==void 0){if(t.delete(R),t.size===0)at(n);else if(t.size===1){const[s,r]=t.entries().next().value;ot(n,s,r)}}},at=a=>{if(a.length===0)return;const[e,t]=Le(a);if(e.delete(t),e.size===0)at(a.slice(0,-1));else if(e.size===1){const[n,s]=e.entries().next().value;n!==R&&ot(a.slice(0,-1),n,s)}},ot=(a,e,t)=>{if(a.length===0)return;const[n,s]=Le(a);n.set(s+e,t),n.delete(s)},Le=a=>a[a.length-1],De="or",lt="and",bn="and_not";class Z{constructor(e){if(e?.fields==null)throw new Error('MiniSearch: option "fields" must be provided');const t=e.autoVacuum==null||e.autoVacuum===!0?Ne:e.autoVacuum;this._options={...Te,...e,autoVacuum:t,searchOptions:{...qe,...e.searchOptions||{}},autoSuggestOptions:{...Sn,...e.autoSuggestOptions||{}}},this._index=new $,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=Ae,this.addFields(this._options.fields)}add(e){const{extractField:t,stringifyField:n,tokenize:s,processTerm:r,fields:i,idField:o}=this._options,l=t(e,o);if(l==null)throw new Error(`MiniSearch: document does not have ID field "${o}"`);if(this._idToShortId.has(l))throw new Error(`MiniSearch: duplicate ID ${l}`);const c=this.addDocumentId(l);this.saveStoredFields(c,e);for(const d of i){const v=t(e,d);if(v==null)continue;const p=s(n(v,d),d),b=this._fieldIds[d],g=new Set(p).size;this.addFieldLength(c,b,this._documentCount-1,g);for(const S of p){const x=r(S,d);if(Array.isArray(x))for(const F of x)this.addTerm(b,c,F);else x&&this.addTerm(b,c,x)}}}addAll(e){for(const t of e)this.add(t)}addAllAsync(e,t={}){const{chunkSize:n=10}=t,s={chunk:[],promise:Promise.resolve()},{chunk:r,promise:i}=e.reduce(({chunk:o,promise:l},c,d)=>(o.push(c),(d+1)%n===0?{chunk:[],promise:l.then(()=>new Promise(v=>setTimeout(v,0))).then(()=>this.addAll(o))}:{chunk:o,promise:l}),s);return i.then(()=>this.addAll(r))}remove(e){const{tokenize:t,processTerm:n,extractField:s,stringifyField:r,fields:i,idField:o}=this._options,l=s(e,o);if(l==null)throw new Error(`MiniSearch: document does not have ID field "${o}"`);const c=this._idToShortId.get(l);if(c==null)throw new Error(`MiniSearch: cannot remove document with ID ${l}: it is not in the index`);for(const d of i){const v=s(e,d);if(v==null)continue;const p=t(r(v,d),d),b=this._fieldIds[d],g=new Set(p).size;this.removeFieldLength(c,b,this._documentCount,g);for(const S of p){const x=n(S,d);if(Array.isArray(x))for(const F of x)this.removeTerm(b,c,F);else x&&this.removeTerm(b,c,x)}}this._storedFields.delete(c),this._documentIds.delete(c),this._idToShortId.delete(l),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 $,this._documentCount=0,this._documentIds=new Map,this._idToShortId=new Map,this._fieldLength=new Map,this._avgFieldLength=[],this._storedFields=new Map,this._nextId=0}}discard(e){const t=this._idToShortId.get(e);if(t==null)throw new Error(`MiniSearch: cannot discard document with ID ${e}: it is not in the index`);this._idToShortId.delete(e),this._documentIds.delete(t),this._storedFields.delete(t),(this._fieldLength.get(t)||[]).forEach((n,s)=>{this.removeFieldLength(t,s,this._documentCount,n)}),this._fieldLength.delete(t),this._documentCount-=1,this._dirtCount+=1,this.maybeAutoVacuum()}maybeAutoVacuum(){if(this._options.autoVacuum===!1)return;const{minDirtFactor:e,minDirtCount:t,batchSize:n,batchWait:s}=this._options.autoVacuum;this.conditionalVacuum({batchSize:n,batchWait:s},{minDirtCount:t,minDirtFactor:e})}discardAll(e){const t=this._options.autoVacuum;try{this._options.autoVacuum=!1;for(const n of e)this.discard(n)}finally{this._options.autoVacuum=t}this.maybeAutoVacuum()}replace(e){const{idField:t,extractField:n}=this._options,s=n(e,t);this.discard(s),this.add(e)}vacuum(e={}){return this.conditionalVacuum(e)}conditionalVacuum(e,t){return this._currentVacuum?(this._enqueuedVacuumConditions=this._enqueuedVacuumConditions&&t,this._enqueuedVacuum!=null?this._enqueuedVacuum:(this._enqueuedVacuum=this._currentVacuum.then(()=>{const n=this._enqueuedVacuumConditions;return this._enqueuedVacuumConditions=Ae,this.performVacuuming(e,n)}),this._enqueuedVacuum)):this.vacuumConditionsMet(t)===!1?Promise.resolve():(this._currentVacuum=this.performVacuuming(e),this._currentVacuum)}async performVacuuming(e,t){const n=this._dirtCount;if(this.vacuumConditionsMet(t)){const s=e.batchSize||Me.batchSize,r=e.batchWait||Me.batchWait;let i=1;for(const[o,l]of this._index){for(const[c,d]of l)for(const[v]of d)this._documentIds.has(v)||(d.size<=1?l.delete(c):d.delete(v));this._index.get(o).size===0&&this._index.delete(o),i%s===0&&await new Promise(c=>setTimeout(c,r)),i+=1}this._dirtCount-=n}await null,this._currentVacuum=this._enqueuedVacuum,this._enqueuedVacuum=null}vacuumConditionsMet(e){if(e==null)return!0;let{minDirtCount:t,minDirtFactor:n}=e;return t=t||Ne.minDirtCount,n=n||Ne.minDirtFactor,this.dirtCount>=t&&this.dirtFactor>=n}get isVacuuming(){return this._currentVacuum!=null}get dirtCount(){return this._dirtCount}get dirtFactor(){return this._dirtCount/(1+this._documentCount+this._dirtCount)}has(e){return this._idToShortId.has(e)}getStoredFields(e){const t=this._idToShortId.get(e);if(t!=null)return this._storedFields.get(t)}search(e,t={}){const{searchOptions:n}=this._options,s={...n,...t},r=this.executeQuery(e,t),i=[];for(const[o,{score:l,terms:c,match:d}]of r){const v=c.length||1,p={id:this._documentIds.get(o),score:l*v,terms:Object.keys(d),queryTerms:c,match:d};Object.assign(p,this._storedFields.get(o)),(s.filter==null||s.filter(p))&&i.push(p)}return e===Z.wildcard&&s.boostDocument==null||i.sort(Qe),i}autoSuggest(e,t={}){t={...this._options.autoSuggestOptions,...t};const n=new Map;for(const{score:r,terms:i}of this.search(e,t)){const o=i.join(" "),l=n.get(o);l!=null?(l.score+=r,l.count+=1):n.set(o,{score:r,terms:i,count:1})}const s=[];for(const[r,{score:i,terms:o,count:l}]of n)s.push({suggestion:r,terms:o,score:i/l});return s.sort(Qe),s}get documentCount(){return this._documentCount}get termCount(){return this._index.size}static loadJSON(e,t){if(t==null)throw new Error("MiniSearch: loadJSON should be given the same options used when serializing the index");return this.loadJS(JSON.parse(e),t)}static async loadJSONAsync(e,t){if(t==null)throw new Error("MiniSearch: loadJSON should be given the same options used when serializing the index");return this.loadJSAsync(JSON.parse(e),t)}static getDefault(e){if(Te.hasOwnProperty(e))return Ie(Te,e);throw new Error(`MiniSearch: unknown option "${e}"`)}static loadJS(e,t){const{index:n,documentIds:s,fieldLength:r,storedFields:i,serializationVersion:o}=e,l=this.instantiateMiniSearch(e,t);l._documentIds=ue(s),l._fieldLength=ue(r),l._storedFields=ue(i);for(const[c,d]of l._documentIds)l._idToShortId.set(d,c);for(const[c,d]of n){const v=new Map;for(const p of Object.keys(d)){let b=d[p];o===1&&(b=b.ds),v.set(parseInt(p,10),ue(b))}l._index.set(c,v)}return l}static async loadJSAsync(e,t){const{index:n,documentIds:s,fieldLength:r,storedFields:i,serializationVersion:o}=e,l=this.instantiateMiniSearch(e,t);l._documentIds=await de(s),l._fieldLength=await de(r),l._storedFields=await de(i);for(const[d,v]of l._documentIds)l._idToShortId.set(v,d);let c=0;for(const[d,v]of n){const p=new Map;for(const b of Object.keys(v)){let g=v[b];o===1&&(g=g.ds),p.set(parseInt(b,10),await de(g))}++c%1e3===0&&await ct(0),l._index.set(d,p)}return l}static instantiateMiniSearch(e,t){const{documentCount:n,nextId:s,fieldIds:r,averageFieldLength:i,dirtCount:o,serializationVersion:l}=e;if(l!==1&&l!==2)throw new Error("MiniSearch: cannot deserialize an index created with an incompatible version");const c=new Z(t);return c._documentCount=n,c._nextId=s,c._idToShortId=new Map,c._fieldIds=r,c._avgFieldLength=i,c._dirtCount=o||0,c._index=new $,c}executeQuery(e,t={}){if(e===Z.wildcard)return this.executeWildcardQuery(t);if(typeof e!="string"){const p={...t,...e,queries:void 0},b=e.queries.map(g=>this.executeQuery(g,p));return this.combineResults(b,p.combineWith)}const{tokenize:n,processTerm:s,searchOptions:r}=this._options,i={tokenize:n,processTerm:s,...r,...t},{tokenize:o,processTerm:l}=i,v=o(e).flatMap(p=>l(p)).filter(p=>!!p).map(xn(i)).map(p=>this.executeQuerySpec(p,i));return this.combineResults(v,i.combineWith)}executeQuerySpec(e,t){const n={...this._options.searchOptions,...t},s=(n.fields||this._options.fields).reduce((S,x)=>({...S,[x]:Ie(n.boost,x)||1}),{}),{boostDocument:r,weights:i,maxFuzzy:o,bm25:l}=n,{fuzzy:c,prefix:d}={...qe.weights,...i},v=this._index.get(e.term),p=this.termResults(e.term,e.term,1,e.termBoost,v,s,r,l);let b,g;if(e.prefix&&(b=this._index.atPrefix(e.term)),e.fuzzy){const S=e.fuzzy===!0?.2:e.fuzzy,x=S<1?Math.min(o,Math.round(e.term.length*S)):S;x&&(g=this._index.fuzzyGet(e.term,x))}if(b)for(const[S,x]of b){const F=S.length-e.term.length;if(!F)continue;g?.delete(S);const C=d*S.length/(S.length+.3*F);this.termResults(e.term,S,C,e.termBoost,x,s,r,l,p)}if(g)for(const S of g.keys()){const[x,F]=g.get(S);if(!F)continue;const C=c*S.length/(S.length+F);this.termResults(e.term,S,C,e.termBoost,x,s,r,l,p)}return p}executeWildcardQuery(e){const t=new Map,n={...this._options.searchOptions,...e};for(const[s,r]of this._documentIds){const i=n.boostDocument?n.boostDocument(r,"",this._storedFields.get(s)):1;t.set(s,{score:i,terms:[],match:{}})}return t}combineResults(e,t=De){if(e.length===0)return new Map;const n=t.toLowerCase(),s=yn[n];if(!s)throw new Error(`Invalid combination operator: ${t}`);return e.reduce(s)||new Map}toJSON(){const e=[];for(const[t,n]of this._index){const s={};for(const[r,i]of n)s[r]=Object.fromEntries(i);e.push([t,s])}return{documentCount:this._documentCount,nextId:this._nextId,documentIds:Object.fromEntries(this._documentIds),fieldIds:this._fieldIds,fieldLength:Object.fromEntries(this._fieldLength),averageFieldLength:this._avgFieldLength,storedFields:Object.fromEntries(this._storedFields),dirtCount:this._dirtCount,index:e,serializationVersion:2}}termResults(e,t,n,s,r,i,o,l,c=new Map){if(r==null)return c;for(const d of Object.keys(i)){const v=i[d],p=this._fieldIds[d],b=r.get(p);if(b==null)continue;let g=b.size;const S=this._avgFieldLength[p];for(const x of b.keys()){if(!this._documentIds.has(x)){this.removeTerm(p,x,t),g-=1;continue}const F=o?o(this._documentIds.get(x),t,this._storedFields.get(x)):1;if(!F)continue;const C=b.get(x),j=this._fieldLength.get(x)[p],A=_n(C,g,this._documentCount,j,S,l),L=n*s*v*F*A,N=c.get(x);if(N){N.score+=L,kn(N.terms,e);const M=Ie(N.match,t);M?M.push(d):N.match[t]=[d]}else c.set(x,{score:L,terms:[e],match:{[t]:[d]}})}}return c}addTerm(e,t,n){const s=this._index.fetch(n,He);let r=s.get(e);if(r==null)r=new Map,r.set(t,1),s.set(e,r);else{const i=r.get(t);r.set(t,(i||0)+1)}}removeTerm(e,t,n){if(!this._index.has(n)){this.warnDocumentChanged(t,e,n);return}const s=this._index.fetch(n,He),r=s.get(e);r==null||r.get(t)==null?this.warnDocumentChanged(t,e,n):r.get(t)<=1?r.size<=1?s.delete(e):r.delete(t):r.set(t,r.get(t)-1),this._index.get(n).size===0&&this._index.delete(n)}warnDocumentChanged(e,t,n){for(const s of Object.keys(this._fieldIds))if(this._fieldIds[s]===t){this._options.logger("warn",`MiniSearch: document with ID ${this._documentIds.get(e)} has changed before removal: term "${n}" was not present in field "${s}". Removing a document after it has changed can corrupt the index!`,"version_conflict");return}}addDocumentId(e){const t=this._nextId;return this._idToShortId.set(e,t),this._documentIds.set(t,e),this._documentCount+=1,this._nextId+=1,t}addFields(e){for(let t=0;t<e.length;t++)this._fieldIds[e[t]]=t}addFieldLength(e,t,n,s){let r=this._fieldLength.get(e);r==null&&this._fieldLength.set(e,r=[]),r[t]=s;const o=(this._avgFieldLength[t]||0)*n+s;this._avgFieldLength[t]=o/(n+1)}removeFieldLength(e,t,n,s){if(n===1){this._avgFieldLength[t]=0;return}const r=this._avgFieldLength[t]*n-s;this._avgFieldLength[t]=r/(n-1)}saveStoredFields(e,t){const{storeFields:n,extractField:s}=this._options;if(n==null||n.length===0)return;let r=this._storedFields.get(e);r==null&&this._storedFields.set(e,r={});for(const i of n){const o=s(t,i);o!==void 0&&(r[i]=o)}}}Z.wildcard=Symbol("*");const Ie=(a,e)=>Object.prototype.hasOwnProperty.call(a,e)?a[e]:void 0,yn={[De]:(a,e)=>{for(const t of e.keys()){const n=a.get(t);if(n==null)a.set(t,e.get(t));else{const{score:s,terms:r,match:i}=e.get(t);n.score=n.score+s,n.match=Object.assign(n.match,i),Ge(n.terms,r)}}return a},[lt]:(a,e)=>{const t=new Map;for(const n of e.keys()){const s=a.get(n);if(s==null)continue;const{score:r,terms:i,match:o}=e.get(n);Ge(s.terms,i),t.set(n,{score:s.score+r,terms:s.terms,match:Object.assign(s.match,o)})}return t},[bn]:(a,e)=>{for(const t of e.keys())a.delete(t);return a}},wn={k:1.2,b:.7,d:.5},_n=(a,e,t,n,s,r)=>{const{k:i,b:o,d:l}=r;return Math.log(1+(t-e+.5)/(e+.5))*(l+a*(i+1)/(a+i*(1-o+o*n/s)))},xn=a=>(e,t,n)=>{const s=typeof a.fuzzy=="function"?a.fuzzy(e,t,n):a.fuzzy||!1,r=typeof a.prefix=="function"?a.prefix(e,t,n):a.prefix===!0,i=typeof a.boostTerm=="function"?a.boostTerm(e,t,n):1;return{term:e,fuzzy:s,prefix:r,termBoost:i}},Te={idField:"id",extractField:(a,e)=>a[e],stringifyField:(a,e)=>a.toString(),tokenize:a=>a.split(En),processTerm:a=>a.toLowerCase(),fields:void 0,searchOptions:void 0,storeFields:[],logger:(a,e)=>{typeof console?.[a]=="function"&&console[a](e)},autoVacuum:!0},qe={combineWith:De,prefix:!1,fuzzy:!1,maxFuzzy:6,boost:{},weights:{fuzzy:.45,prefix:.375},bm25:wn},Sn={combineWith:lt,prefix:(a,e,t)=>e===t.length-1},Me={batchSize:1e3,batchWait:10},Ae={minDirtFactor:.1,minDirtCount:20},Ne={...Me,...Ae},kn=(a,e)=>{a.includes(e)||a.push(e)},Ge=(a,e)=>{for(const t of e)a.includes(t)||a.push(t)},Qe=({score:a},{score:e})=>e-a,He=()=>new Map,ue=a=>{const e=new Map;for(const t of Object.keys(a))e.set(parseInt(t,10),a[t]);return e},de=async a=>{const e=new Map;let t=0;for(const n of Object.keys(a))e.set(parseInt(n,10),a[n]),++t%1e3===0&&await ct(0);return e},ct=a=>new Promise(e=>setTimeout(e,a)),En=/[\n\r\p{Z}\p{P}]+/u;var In=class{max;cache;constructor(a=10){this.max=a,this.cache=new Map}get(a){const e=this.cache.get(a);return e!==void 0&&(this.cache.delete(a),this.cache.set(a,e)),e}set(a,e){this.cache.has(a)?this.cache.delete(a):this.cache.size===this.max&&this.cache.delete(this.first()),this.cache.set(a,e)}first(){return this.cache.keys().next().value}clear(){this.cache.clear()}};const Tn={},Nn={width:"18",height:"18",viewBox:"0 0 24 24","aria-hidden":"true"};function Fn(a,e){return P(),V("svg",Nn,[...e[0]||(e[0]=[w("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 12H5m7 7l-7-7l7-7"},null,-1)])])}const Cn=be(Tn,[["render",Fn]]),Rn={},On={width:"18",height:"18",viewBox:"0 0 24 24","aria-hidden":"true"};function Mn(a,e){return P(),V("svg",On,[...e[0]||(e[0]=[w("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M20 5H9l-7 7l7 7h11a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2Zm-2 4l-6 6m0-6l6 6"},null,-1)])])}const An=be(Rn,[["render",Mn]]),Ln={},Dn={width:"18",height:"18",viewBox:"0 0 24 24","aria-hidden":"true"};function zn(a,e){return P(),V("svg",Dn,[...e[0]||(e[0]=[w("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[w("circle",{cx:"11",cy:"11",r:"8"}),w("path",{d:"m21 21l-4.35-4.35"})],-1)])])}const Pn=be(Ln,[["render",zn]]),Vn=["aria-owns"],$n={class:"shell"},jn=["title"],Bn={class:"search-actions before"},Wn=["title"],Jn=["placeholder"],Kn={class:"search-actions"},Un=["disabled","title"],qn=["id","role","aria-labelledby"],Gn=["aria-selected"],Qn=["href","aria-label","onMouseenter","onFocusin","onClick"],Hn={class:"titles"},Yn=["innerHTML"],Zn={class:"title main"},Xn=["innerHTML"],es={key:0,class:"no-results"},ts={class:"search-keyboard-shortcuts"},ns=["aria-label"],ss=["aria-label"],is=["aria-label"],rs=["aria-label"],as=pt({__name:"SearchBox",props:{locales:{},options:{}},emits:["close"],setup(a,{emit:e}){const t=a,n=e,s=vt(),r=mt(gt(t.locales)),i=ie(),o=ie(),l=Mt(),{activate:c}=hn(i,{immediate:!0}),d=Pe(async()=>je(Z.loadJSON((await l.value[s.value]?.())?.default,{fields:["title","titles","text"],storeFields:["title","titles"],searchOptions:{fuzzy:.2,prefix:!0,boost:{title:4,text:2,titles:1}},...t.options.miniSearch?.searchOptions,...t.options.miniSearch?.options}))),p=he(()=>t.options?.disableQueryPersistence===!0).value?X(""):bt("vuepress-plume:mini-search-filter",""),b=he(()=>r.value.buttonText||r.value.placeholder||"Search"),g=ie([]),S=X(!1);Fe(p,()=>{S.value=!1});const x=Pe(async()=>{if(o.value)return je(new pn(o.value))},null),F=new In(64);yt(()=>[d.value,p.value],async([f,m],y,k)=>{y?.[0]!==f&&F.clear();let _=!1;if(k(()=>{_=!0}),!f)return;g.value=f.search(m),S.value=!0;const I=new Set;g.value=g.value.map(T=>{const[D,W]=T.id.split("#"),J=F.get(D)?.get(W)??"";for(const oe in T.match)I.add(oe);return{...T,text:J}}),await ee(),!_&&await new Promise(T=>{x.value?.unmark({done:()=>{x.value?.markRegExp(u(I),{done:T})}})})},{debounce:200,immediate:!0});const C=X(),j=he(()=>p.value?.length<=0);function A(f=!0){C.value?.focus(),f&&C.value?.select()}_e(()=>{A()});function L(f){f.pointerType==="mouse"&&A()}const N=X(-1),M=X(!1);Fe(g,f=>{N.value=f.length?0:-1,q()});function q(){ee(()=>{const f=document.querySelector(".result.selected");f&&f.scrollIntoView({block:"nearest"})})}le("ArrowUp",f=>{f.preventDefault(),N.value--,N.value<0&&(N.value=g.value.length-1),M.value=!0,q()}),le("ArrowDown",f=>{f.preventDefault(),N.value++,N.value>=g.value.length&&(N.value=0),M.value=!0,q()});const ae=wt();le("Enter",f=>{if(f.isComposing||f.target instanceof HTMLButtonElement&&f.target.type!=="submit")return;const m=g.value[N.value];if(f.target instanceof HTMLInputElement&&!m){f.preventDefault();return}m&&(ae.push(m.id),n("close"))}),le("Escape",()=>{n("close")}),_e(()=>{window.history.pushState(null,"",null)}),_t("popstate",f=>{f.preventDefault(),n("close")});const G=xt(typeof document<"u"?document.body:null);_e(()=>{ee(()=>{G.value=!0,ee().then(()=>c())})}),St(()=>{G.value=!1});function B(){p.value="",ee().then(()=>A(!1))}function E(f){return f.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function u(f){return new RegExp([...f].sort((m,y)=>y.length-m.length).map(m=>`(${E(m)})`).join("|"),"gi")}function h(f,m){f.preventDefault(),ae.push(m.id),n("close")}return(f,m)=>(P(),kt(Ot,{to:"body"},[w("div",{ref_key:"el",ref:i,role:"button","aria-owns":g.value?.length?"localsearch-list":void 0,"aria-expanded":"true","aria-haspopup":"listbox","aria-labelledby":"mini-search-label",class:"VPLocalSearchBox"},[w("div",{class:"backdrop",onClick:m[0]||(m[0]=y=>f.$emit("close"))}),w("div",$n,[w("form",{class:"search-bar",onPointerup:m[3]||(m[3]=y=>L(y)),onSubmit:m[4]||(m[4]=Et(()=>{},["prevent"]))},[w("label",{id:"localsearch-label",title:b.value,for:"localsearch-input"},[xe(Pn,{class:"search-icon"})],8,jn),w("div",Bn,[w("button",{class:"back-button",title:O(r).backButtonTitle,onClick:m[1]||(m[1]=y=>f.$emit("close"))},[xe(Cn)],8,Wn)]),It(w("input",{id:"localsearch-input",ref_key:"searchInput",ref:C,"onUpdate:modelValue":m[2]||(m[2]=y=>Nt(p)?p.value=y:null),placeholder:b.value,"aria-labelledby":"localsearch-label",class:"search-input"},null,8,Jn),[[Tt,O(p)]]),w("div",Kn,[w("button",{class:"clear-button",type:"reset",disabled:j.value,title:O(r).resetButtonTitle,onClick:B},[xe(An)],8,Un)])],32),w("ul",{id:g.value?.length?"localsearch-list":void 0,ref_key:"resultsEl",ref:o,role:g.value?.length?"listbox":void 0,"aria-labelledby":g.value?.length?"localsearch-label":void 0,class:"results",onMousemove:m[5]||(m[5]=y=>M.value=!1)},[(P(!0),V($e,null,Ve(g.value,(y,k)=>(P(),V("li",{key:y.id,role:"option","aria-selected":N.value===k?"true":"false"},[w("a",{href:O(Rt)(y.id),class:Ct(["result",{selected:N.value===k}]),"aria-label":[...y.titles,y.title].join(" > "),onMouseenter:_=>!M.value&&(N.value=k),onFocusin:_=>N.value=k,onClick:_=>h(_,y)},[w("div",null,[w("div",Hn,[m[7]||(m[7]=w("span",{class:"title-icon"},"#",-1)),(P(!0),V($e,null,Ve(y.titles,(_,I)=>(P(),V("span",{key:I,class:"title"},[w("span",{class:"text",innerHTML:_},null,8,Yn),m[6]||(m[6]=w("svg",{width:"18",height:"18",viewBox:"0 0 24 24"},[w("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m9 18l6-6l-6-6"})],-1))]))),128)),w("span",Zn,[w("span",{class:"text",innerHTML:y.title},null,8,Xn)])])])],42,Qn)],8,Gn))),128)),O(p)&&!g.value.length&&S.value?(P(),V("li",es,[te(ne(O(r).noResultsText)+' "',1),w("strong",null,ne(O(p)),1),m[8]||(m[8]=te('" ',-1))])):Ft("",!0)],40,qn),w("div",ts,[w("span",null,[w("kbd",{"aria-label":O(r).footer?.navigateUpKeyAriaLabel??""},[...m[9]||(m[9]=[w("svg",{width:"14",height:"14",viewBox:"0 0 24 24"},[w("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 19V5m-7 7l7-7l7 7"})],-1)])],8,ns),w("kbd",{"aria-label":O(r).footer?.navigateDownKeyAriaLabel??""},[...m[10]||(m[10]=[w("svg",{width:"14",height:"14",viewBox:"0 0 24 24"},[w("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 5v14m7-7l-7 7l-7-7"})],-1)])],8,ss),te(" "+ne(O(r).footer?.navigateText??""),1)]),w("span",null,[w("kbd",{"aria-label":O(r).footer?.selectKeyAriaLabel??""},[...m[11]||(m[11]=[w("svg",{width:"14",height:"14",viewBox:"0 0 24 24"},[w("g",{fill:"none",stroke:"currentcolor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[w("path",{d:"m9 10l-5 5l5 5"}),w("path",{d:"M20 4v7a4 4 0 0 1-4 4H4"})])],-1)])],8,is),te(" "+ne(O(r).footer?.selectText??""),1)]),w("span",null,[w("kbd",{"aria-label":O(r).footer?.closeKeyAriaLabel??""},"esc",8,rs),te(" "+ne(O(r).footer?.closeText??""),1)])])])],8,Vn)]))}}),cs=be(as,[["__scopeId","data-v-5dd2b275"]]);export{cs as default};