1/*! LICENSE: 4502.e18ff21180.js.LICENSE.txt */ 2(self.rspackChunkdocs=self.rspackChunkdocs||[]).push([[4502],{3990(e,t,n){"use strict";var r=n(7372),i={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,s,o,l,a,u,c,h,d=!1;t||(t={}),o=t.debug||!1;try{if(a=r(),u=document.createRange(),c=document.getSelection(),(h=document.createElement("span")).textContent=e,h.ariaHidden="true",h.style.all="unset",h.style.position="fixed",h.style.top=0,h.style.clip="rect(0, 0, 0, 0)",h.style.whiteSpace="pre",h.style.webkitUserSelect="text",h.style.MozUserSelect="text",h.style.msUserSelect="text",h.style.userSelect="text",h.addEventListener("copy",function(n){if(n.stopPropagation(),t.format)if(n.preventDefault(),void 0===n.clipboardData){o&&console.warn("unable to use e.clipboardData"),o&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var r=i[t.format]||i.default;window.clipboardData.setData(r,e)}else n.clipboardData.clearData(),n.clipboardData.setData(t.format,e);t.onCopy&&(n.preventDefault(),t.onCopy(n.clipboardData))}),document.body.appendChild(h),u.selectNodeContents(h),c.addRange(u),!document.execCommand("copy"))throw Error("copy command was unsuccessful");d=!0}catch(r){o&&console.error("unable to copy using execCommand: ",r),o&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),d=!0}catch(r){o&&console.error("unable to copy using clipboardData: ",r),o&&console.error("falling back to prompt"),n="message"in t?t.message:"Copy to clipboard: #{key}, Enter",s=(/mac os x/i.test(navigator.userAgent)?"â":"Ctrl")+"+C",l=n.replace(/#{\s*key\s*}/g,s),window.prompt(l,e)}}finally{c&&("function"==typeof c.removeRange?c.removeRange(u):c.removeAllRanges()),h&&document.body.removeChild(h),a()}return d}},4564(e){var t;t=function(){var e,t,n,r={};r.version="0.2.0";var i=r.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};function s(e,t,n){return e<t?t:e>n?n:e}r.configure=function(e){var t,n;for(t in e)void 0!==(n=e[t])&&e.hasOwnProperty(t)&&(i[t]=n);return this},r.status=null,r.set=function(e){var t=r.isStarted();r.status=1===(e=s(e,i.minimum,1))?null:e;var n=r.render(!t),a=n.querySelector(i.barSelector),u=i.speed,c=i.easing;return n.offsetWidth,o(function(t){var s,o,h,d;""===i.positionUsing&&(i.positionUsing=r.getPositioningCSS()),l(a,(s=e,o=u,h=c,(d="translate3d"===i.positionUsing?{transform:"translate3d("+(-1+s)*100+"%,0,0)"}:"translate"===i.positionUsing?{transform:"translate("+(-1+s)*100+"%,0)"}:{"margin-left":(-1+s)*100+"%"}).transition="all "+o+"ms "+h,d)),1===e?(l(n,{transition:"none",opacity:1}),n.offsetWidth,setTimeout(function(){l(n,{transition:"all "+u+"ms linear",opacity:0}),setTimeout(function(){r.remove(),t()},u)},u)):setTimeout(t,u)}),this},r.isStarted=function(){return"number"==typeof r.status},r.start=function(){r.status||r.set(0);var e=function(){setTimeout(function(){r.status&&(r.trickle(),e())},i.trickleSpeed)};return i.trickle&&e(),this},r.done=function(e){return e||r.status?r.inc(.3+.5*Math.random()).set(1):this},r.inc=function(e){var t=r.status;return t?("number"!=typeof e&&(e=(1-t)*s(Math.random()*t,.1,.95)),t=s(t+e,0,.994),r.set(t)):r.start()},r.trickle=function(){return r.inc(Math.random()*i.trickleRate)},e=0,t=0,r.promise=function(n){return n&&"resolved"!==n.state()&&(0===t&&r.start(),e++,t++,n.always(function(){0==--t?(e=0,r.done()):r.set((e-t)/e)})),this},r.render=function(e){if(r.isRendered())return document.getElementById("nprogress");u(document.documentElement,"nprogress-busy");var t=document.createElement("div");t.id="nprogress",t.innerHTML=i.template;var n,s=t.querySelector(i.barSelector),o=e?"-100":(-1+(r.status||0))*100,a=document.querySelector(i.parent);return l(s,{transition:"all 0 linear",transform:"translate3d("+o+"%,0,0)"}),!i.showSpinner&&(n=t.querySelector(i.spinnerSelector))&&d(n),a!=document.body&&u(a,"nprogress-custom-parent"),a.appendChild(t),t},r.remove=function(){c(document.documentElement,"nprogress-busy"),c(document.querySelector(i.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&d(e)},r.isRendered=function(){return!!document.getElementById("nprogress")},r.getPositioningCSS=function(){var e=document.body.style,t="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return t+"Perspective"in e?"translate3d":t+"Transform"in e?"translate":"margin"};var o=(n=[],function(e){n.push(e),1==n.length&&function e(){var t=n.shift();t&&t(e)}()}),l=function(){var e=["Webkit","O","Moz","ms"],t={};function n(n,r,i){var s;r=t[s=(s=r).replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(e,t){return t.toUpperCase()})]||(t[s]=function(t){var n=document.body.style;if(t in n)return t;for(var r,i=e.length,s=t.charAt(0).toUpperCase()+t.slice(1);i--;)if((r=e[i]+s)in n)return r;return t}(s)),n.style[r]=i}return function(e,t){var r,i,s=arguments;if(2==s.length)for(r in t)void 0!==(i=t[r])&&t.hasOwnProperty(r)&&n(e,r,i);else n(e,s[1],s[2])}}();function a(e,t){return("string"==typeof e?e:h(e)).indexOf(" "+t+" ")>=0}function u(e,t){var n=h(e),r=n+t;a(n,t)||(e.className=r.substring(1))}function c(e,t){var n,r=h(e);a(e,t)&&(e.className=(n=r.replace(" "+t+" "," ")).substring(1,n.length-1))}function h(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function d(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return r},"function"==typeof define&&define.amd?define(t):e.exports=t()},1554(e,t,n){"use strict";t.YZ=void 0;var r=n(3706);t.YZ=function(e){var t,n,i=(0,r.lazy)(e),s=(0,r.forwardRef)(function(e,n){var s=(0,r.useRef)(null!=t?t:i);return(0,r.createElement)(s.current,Object.assign(n?{ref:n}:{},e))});return s.preload=function(){return n||(n=e().then(function(e){return t=e.default})),n},s}},7372(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEac
2h(function(t){e.addRange(t)}),t&&t.focus()}}},2083(e,t,n){"use strict";var r=n(1058),i=n(3706),s=n(5647),o=n(5895);n.d(t,{},{U:e=>{let{fallback:t=(0,r.jsx)(r.Fragment,{})}=e,{pathname:n}=(0,s.zy)(),l=(0,i.useMemo)(()=>{let e=(0,o.c5)(n);return e?.element},[n]);return(0,r.jsx)(i.Suspense,{fallback:t,children:l})}})},5530(e,t,n){"use strict";let r=(0,n(3706).createContext)({});n.d(t,{},{D:r})},3938(e,t,n){"use strict";var r=n(9989);n.d(t,{},{s:()=>{let{page:e}=(0,r.e)(),{frontmatter:t={}}=e;return{frontmatter:t}}})},5226(e,t,n){"use strict";var r=n(9989);function i(){let{page:e}=(0,r.e)();return e.lang||""}n.d(t,{u:()=>i})},8975(e,t,n){"use strict";var r=n(4477),i=n(5226),s=n(621);function o(){let{site:e}=(0,s.Z)(),t=(0,i.u)(),n=e?.themeConfig??{},o=e.lang??"",l=n?.locales;return l&&0!==l.length?{...l.find(e=>e.lang===t),langRoutePrefix:t===o?"/":(0,r.hg)(t)}:{nav:n.nav,sidebar:n.sidebar}}n.d(t,{l:()=>o})},9989(e,t,n){"use strict";var r=n(3706);let i=(0,r.createContext)({});function s(){return{page:(0,r.useContext)(i).data}}n.d(t,{e:()=>s},{N:i})},621(e,t,n){"use strict";var r=n(5280);function i(){return{site:r.A}}n.d(t,{Z:()=>i})},4120(e,t,n){"use strict";var r=n(9989);function i(){let{page:e}=(0,r.e)();return e.version||""}n.d(t,{M:()=>i})},377(e,t,n){"use strict";var r=n(4477),i=n(7270),s=n(5280),o=n(5895),l=n(4499);let a=[void 0,void 0,void 0];function u(e,t){a[0]={routePath:e,data:t}}function c(e){if(a[0]?.routePath===e){let e=a[0].data;return a[2]=a[1],a[1]=a[0],a[0]=void 0,e}if(a[2]?.routePath===e){let e=a[2].data;return a[0]=a[1],a[1]=a[2],a[2]=void 0,e}}function h(e,t){a[2]=a[1],a[1]={routePath:e,data:t}}async function d(e){let t=(0,o.c5)(e);if(t){let e=await t.preload(),n=(0,r.TG)(t.filePath),s=e=>e.replace(/\/$/,"").toLowerCase(),o=i.Y.pages.find(e=>(0,l.Oy)(s(e.routePath),s(t.path))),a=encodeURIComponent(n),u=e.default.__RSPRESS_PAGE_META?.[a]||{},{toc:c=[],title:h="",frontmatter:d={},...f}=r.gT.test(t.filePath)?u:e;return{...f,pagePath:n,...o,pageType:d?.pageType||"doc",title:h,frontmatter:d,toc:c}}let n=s.A.lang||"",a=s.A.multiVersion?.default||"";if(s.A.lang&&"u">typeof window){let e=window.location.pathname.replace(s.A.base,"").split("/").slice(0,2);if(s.A.locales.length){let t=s.A.locales.find(t=>{let{lang:n}=t;return e.includes(n)});t&&(n=t.lang)}if(s.A.multiVersion.versions){let t=s.A.multiVersion.versions.find(t=>e.includes(t));t&&(a=t)}}return{pagePath:"",pageType:"404",routePath:"/404",lang:n,frontmatter:{},title:"404",toc:[],version:a,_filepath:"",_relativePath:""}}n.d(t,{Fv:()=>h,So:()=>d,UH:()=>c,vY:()=>u})},5895(e,t,n){"use strict";var r=n(4477),i=n(2127),s=n(5280),o=n(4499);function l(e){return(0,r.TG)(decodeURIComponent(e)).replace(/\.html$/,"").replace(/\/index$/,"/").toLowerCase()}function a(e,t){let n=l(e),r=l(t);return(n.endsWith("/")?n:`${n}/`)===(r.endsWith("/")?r:`${r}/`)?{path:e}:null}let u=[...i.J].sort((e,t)=>{let n=e.path||"";return(t.path||"").length-n.length}),c=new Map;function h(e){let t=l(e),n=c.get(t);if(n)return n;let r=function(e,t){for(let e of u)if(a(e.path||"",t))return[{route:e}];return null}(i.J,t),s=r?.[0]?.route;return s&&c.set(t,s),s}function d(e,t){if(s.A.route?.cleanUrlsRedirect===!1)return!1;let n=h((0,o.EJ)(e.pathname));if(!n)return!1;let i=(0,r.Tj)(n.path,!!s.A.route?.cleanUrls),l=`${(0,r.UC)(s.A.base)}${i}`;return e.pathname!==l&&(t.replaceState(t.state,"",`${l}${e.search}${e.hash}`),!0)}function f(e,t){return null!==a(e,t)}n.d(t,{$m:()=>f,IA:()=>d,c5:()=>h},{G$:e=>{if(s.A?.route?.prefetchLink===!1)return;let t=h(e);t&&t.preload()}})},1924(e,t,n){"use strict";var r=n(1058),i=n(4499),s=n(3706),o=n(4212),l=n(621),a=n(5530),u=n(9989),c=n(5647),h=n(4477),d=n(2559);function f(e,t={},n){for(let r in e){let i=e[r],s=n?`${n}:${r}`:r;"object"==typeof i&&null!==i?f(i,t,s):"function"==typeof i&&(t[s]=i)}return t}let p=(()=>{if(console.createTask)return console.createTask;let e={run:e=>e()};return()=>e})();function m(e,t,n){if(e.length>0)return function e(t,n,r,i){for(let s=r;s<t.length;s+=1)try{let r=i?i.run(()=>t[s](...n)):t[s](...n);if(r&&"function"==typeof r.then)return Promise.resolve(r).then(()=>e(t,n,s+1,i))}catch(e){return Promise.reject(e)}}(e,t,0,p(n))}function g(e,t,n){if(e.length>0){let r=p(n);return Promise.all(e.map(e=>r.run(()=>e(...t))))}}function v(e,t){for(let n of[...e])n(t)}var x=class{_hooks;_before;_after;_deprecatedHooks;_deprecatedMessages;constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(e,t,n={}){let r;if(!e||"function"!=typeof t)return()=>{};let i=e;for(;this._deprecatedHooks[e];)e=(r=this._deprecatedHooks[e]).to;
2if(r&&!n.allowDeprecated){let e=r.message;e||(e=`${i} hook has been deprecated`+(r.to?`, please use ${r.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(e)||(console.warn(e),this._deprecatedMessages.add(e))}if(!t.name)try{Object.defineProperty(t,"name",{get:()=>"_"+e.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(t),()=>{t&&(this.removeHook(e,t),t=void 0)}}hookOnce(e,t){let n,r=(...e)=>("function"==typeof n&&n(),n=void 0,r=void 0,t(...e));return n=this.hook(e,r)}removeHook(e,t){let n=this._hooks[e];if(n){let r=n.indexOf(t);-1!==r&&n.splice(r,1),0===n.length&&(this._hooks[e]=void 0)}}clearHook(e){this._hooks[e]=void 0}deprecateHook(e,t){this._deprecatedHooks[e]="string"==typeof t?{to:t}:t;let n=this._hooks[e]||[];for(let t of(this._hooks[e]=void 0,n))this.hook(e,t)}deprecateHooks(e){for(let t in e)this.deprecateHook(t,e[t])}addHooks(e){let t=f(e),n=Object.keys(t).map(e=>this.hook(e,t[e]));return()=>{for(let e of n)e();n.length=0}}removeHooks(e){let t=f(e);for(let e in t)this.removeHook(e,t[e])}removeAllHooks(){this._hooks={}}callHook(e,...t){return this.callHookWith(m,e,t)}callHookParallel(e,...t){return this.callHookWith(g,e,t)}callHookWith(e,t,n){let r=this._before||this._after?{name:t,args:n,context:{}}:void 0;this._before&&v(this._before,r);let i=e(this._hooks[t]?[...this._hooks[t]]:[],n,t);return i instanceof Promise?i.finally(()=>{this._after&&r&&v(this._after,r)}):(this._after&&r&&v(this._after,r),i)}beforeEach(e){return this._before=this._before||[],this._before.push(e),()=>{if(void 0!==this._before){let t=this._before.indexOf(e);-1!==t&&this._before.splice(t,1)}}}afterEach(e){return this._after=this._after||[],this._after.push(e),()=>{if(void 0!==this._after){let t=this._after.indexOf(e);-1!==t&&this._after.splice(t,1)}}}},y=n(8172);function _(e){return"__proto__"===e||"constructor"===e||"prototype"===e}let D=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,w={base:-10,title:10},b={critical:-8,high:-1,low:2},j={meta:{"content-security-policy":-30,charset:-20,viewport:-15},link:{preconnect:20,stylesheet:60,preload:70,modulepreload:70,prefetch:90,"dns-prefetch":90,prerender:90},script:{async:30,defer:80,sync:50},style:{imported:40,sync:60}},F=/@import/,C=e=>""===e||!0===e,A=["name","property","http-equiv"],k=new Set(["viewport","description","keywords","robots"]);function E(e){let t=e.indexOf(":");if(-1===t)return!1;let n=e.indexOf(":",t+1),r=e.slice(t+1,-1===n?e.length:n);return"twitter"===r?"meta:twitter:image"===e||e.startsWith("meta:twitter:image:"):y.M.has(r)}function N(e){let{props:t,tag:n}=e;if(y.U.has(n))return n;if("link"===n&&"canonical"===t.rel)return"canonical";if("link"===n&&"alternate"===t.rel){if(t.hreflang)return`alternate:${t.hreflang}`;if(t.type)return`alternate:${t.type}:${t.href||""}`}if(t.charset)return"charset";if("meta"===e.tag){for(let r of A)if(void 0!==t[r]){let i=t[r],s=i&&"string"==typeof i&&i.includes(":"),o=i&&k.has(i),l=!(s||o)&&e.key?`:key:${e.key}`:"";return`${n}:${i}${l}`}}if(e.key)return`${n}:key:${e.key}`;if(t.id)return`${n}:id:${t.id}`;if("link"===n&&"alternate"===t.rel)return`alternate:${t.href||""}`;if(y.b.has(n)){let t=e.textContent||e.innerHTML;if(t)return`${n}:content:${t}`}}function B(e){let t=e._h||e._d;if(t)return t;let n=e.textContent||e.innerHTML;if(n)return n;let r=Object.keys(e.props).sort();return`${e.tag}:${r.map(t=>`${t}:${String(e.props[t])}`).join(",")}`}let M=/[\s"'<>/=\x00-\x1F\x7F]/;function S(e,t){if(e.props=e.props||{},!t)return e;if("templateParams"===e.tag)return e.props=t,e;let n=y.H.has(e.tag)||"htmlAttrs"===e.tag||"bodyAttrs"===e.tag;for(let r of Object.keys(t)){if(_(r))continue;let i=r.startsWith("data-"),s=n&&!y.T.has(r),o=s&&!i?r.toLowerCase():r;if(s&&(!o||M.test(o)))continue;let l=t[r];if(null===l){e.props[o]=null;continue}if("class"===r||"style"===r){e.props[r]=function(e,t){let n="style"===e?new Map:new Set;function r(t){if(null==t||void 0===t)return;let r=String(t).trim();if(r)if("style"===e){let[e,...t]=r.split(":").map(e=>e?e.trim():"");e&&t.length&&n.set(e,t.join(":"))}
2else r.split(" ").filter(Boolean).forEach(e=>n.add(e))}return"string"==typeof t?"style"===e?t.split(";").forEach(r):r(t):Array.isArray(t)?t.forEach(e=>r(e)):t&&"object"==typeof t&&Object.entries(t).forEach(([t,i])=>{i&&"false"!==i&&("style"===e?n.set(String(t).trim(),String(i)):r(t))}),n}(r,l);continue}if(y.T.has(r)){if(("textContent"===r||"innerHTML"===r)&&"object"==typeof l){let n=t.type;if(t.type||(n="application/json"),!n?.endsWith("json")&&"speculationrules"!==n)continue;t.type=n,e.props.type=n,e[r]=JSON.stringify(l)}else e[r]=l;continue}let a=String(l),u="meta"===e.tag&&"content"===o;"true"===a||""===a?e.props[o]=!i&&!u||a:!l&&i&&"false"===a?e.props[o]="false":void 0!==l&&(e.props[o]=l)}return e}function T(e,t){let n="function"==typeof t?t(e):t,r=n.key||String(e.plugins.size+1);e.plugins.get(r)||(e.plugins.set(r,n),e.hooks.addHooks(n.hooks||{}))}async function z(e,t={}){let n=t.document||e.resolvedOptions.document;if(!n||!e.dirty)return;let r={shouldRender:!0,tags:[]};if(await e.hooks.callHook("dom:beforeRender",r),r.shouldRender)return e._domUpdatePromise||(e._domUpdatePromise=new Promise(async t=>{let r=new Map,i=new Promise(t=>{e.resolveTags().then(e=>{t(e.map(e=>{let t=r.get(e._d)||0,n={tag:e,id:(t?`${e._d}:${t}`:e._d)||e._h,shouldRender:!0};return e._d&&E(e._d)&&r.set(e._d,t+1),n}))})}),s=e._dom;if(!s)for(let e of(s={title:n.title,elMap:(new Map).set("htmlAttrs",n.documentElement).set("bodyAttrs",n.body)},["body","head"]))for(let t of n[e]?.children){let e=t.tagName.toLowerCase();if(!y.H.has(e))continue;let n=S({tag:e,props:{}},{innerHTML:t.innerHTML,...t.getAttributeNames().reduce((e,n)=>(e[n]=t.getAttribute(n),e),{})||{}});if(n.key=t.getAttribute("data-hid")||void 0,n._d=N(n)||B(n),s.elMap.has(n._d)){let e=1,r=n._d;for(;s.elMap.has(r);)r=`${n._d}:${e++}`;s.elMap.set(r,t)}else s.elMap.set(n._d,t)}function o(e,t,n){let r=`${e}:${t}`;s.sideEffects[r]=n,delete s.pendingSideEffects[r]}function l({id:e,$el:t,tag:r}){let i=r.tag.endsWith("Attrs");for(let l in s.elMap.set(e,t),i||(r.textContent&&r.textContent!==t.textContent&&(t.textContent=r.textContent),r.innerHTML&&r.innerHTML!==t.innerHTML&&(t.innerHTML=r.innerHTML),o(e,"el",()=>{t?.remove(),s.elMap.delete(e)})),r.props){if(!Object.prototype.hasOwnProperty.call(r.props,l))continue;let s=r.props[l];if(l.startsWith("on")&&"function"==typeof s){let e=t?.dataset;if(e&&e[`${l}fired`]){let e=l.slice(0,-5);s.call(t,new Event(e.substring(2)))}""!==t.getAttribute(`data-${l}`)&&(("bodyAttrs"===r.tag?n.defaultView:t).addEventListener(l.substring(2),s.bind(t)),t.setAttribute(`data-${l}`,""));continue}let a=`attr:${l}`;if("class"===l){if(!s)continue;for(let n of s)i&&o(e,`${a}:${n}`,()=>t.classList.remove(n)),t.classList.contains(n)||t.classList.add(n)}else if("style"===l){if(!s)continue;for(let[n,r]of s)o(e,`${a}:${n}`,()=>{t.style.removeProperty(n)}),t.style.setProperty(n,r)}else!1!==s&&null!==s&&(t.getAttribute(l)!==s&&t.setAttribute(l,!0===s?"":String(s)),i&&o(e,a,()=>t.removeAttribute(l)))}}s.pendingSideEffects={...s.sideEffects},s.sideEffects={};let a=[],u={bodyClose:void 0,bodyOpen:void 0,head:void 0},c=await i;for(let e of c){let{tag:t,shouldRender:r,id:i}=e;if(r){if("title"===t.tag){n.title=t.textContent,o("title","",()=>n.title=s.title);continue}e.$el=e.$el||s.elMap.get(i),e.$el?l(e):y.H.has(t.tag)&&a.push(e)}}for(let e of a){let t=e.tag.tagPosition||"head";e.$el=n.createElement(e.tag.tag),l(e),u[t]=u[t]||n.createDocumentFragment(),u[t].appendChild(e.$el)}for(let t of c)await e.hooks.callHook("dom:renderTag",t,n,o);for(let e in u.head&&n.head.appendChild(u.head),u.bodyOpen&&n.body.insertBefore(u.bodyOpen,n.body.firstChild),u.bodyClose&&n.body.appendChild(u.bodyClose),s.pendingSideEffects)s.pendingSideEffects[e]();e._dom=s,await e.hooks.callHook("dom:rendered",{renders:c}),t()}).finally(()=>{e._domUpdatePromise=void 0,e.dirty=!1})),e._domUpdatePromise}var L=n(257);function $(e={}){var t,n;let r,i=function(e={}){let t=e.domOptions?.render||z;e.document=e.document||("u">typeof window?document:void 0);let n=e.document?.head.querySelector('script[id="unhead:payload"]')?.innerHTML||!1,r=function(e={}){let t=new x;t.addHooks(e.hooks||{});let n=!e.document,r=new Map,i=new Map,s=new Set,o={_entryCount:1,plugins:i,dirty:!1,resolvedOptions:e,hooks:t,ssr:n,entries:r,headEntries:()=>[...r.values()],use:e=>T(o,e),push(e,i){let l={...i||{}};delete l.head;let a=l._index??o._entryCount++,u={_i:a,input:e,options:l},c={_poll(e=!1){o.dirty=!0,e||s.add(a),t.callHook("entries:updated",o)},dispose(){r.delete(a)&&o.invalidate()},patch(e){l.mode&&("server"!==l.mode||!n)&&("client"!==l.mode||n)||(u.input=e,r.set(a,u),
2c._poll())}};return c.patch(e),c},async resolveTags(){let n={tagMap:new Map,tags:[],entries:[...o.entries.values()]};for(await t.callHook("entries:resolve",n);s.size;){let n=s.values().next().value;s.delete(n);let i=r.get(n);if(i){let n={tags:(function(e,t){if(!e)return[];"function"==typeof e&&(e=e());let n=(e,n)=>{for(let r=0;r<t.length;r++)n=t[r](e,n);return n};e=n(void 0,e);let r=[];return Object.entries((e=function e(t,n,r){"function"!=typeof t||r&&("titleTemplate"===r||"o"===r[0]&&"n"===r[1])||(t=t());let i=n?n(r,t):t;if(Array.isArray(i)){let t;for(let r=0;r<i.length;r++){let s=e(i[r],n);t?t[r]=s:s!==i[r]&&((t=i.slice(0,r))[r]=s)}return t||i}if(i?.constructor===Object){let t;for(let r in i){let s=_(r),o=s?void 0:e(i[r],n,r),l="_resolver"===r;if(!t&&(s||l||o!==i[r]))for(let e in t={},i){if(e===r)break;t[e]=i[e]}t&&!s&&(t[r]=o)}return t||i}return i}(e,n))||{}).forEach(([e,t])=>{if(void 0!==t)for(let n of Array.isArray(t)?t:[t])r.push(function(e,t){let n="object"==typeof t&&"function"!=typeof t?t:{["script"===e||"noscript"===e||"style"===e?"innerHTML":"textContent"]:t},r=S({tag:e,props:{}},n);return r.key&&y.D.has(r.tag)&&(r.props["data-hid"]=r._h=r.key),"script"===r.tag&&"object"==typeof r.innerHTML&&(r.innerHTML=JSON.stringify(r.innerHTML),r.props.type=r.props.type||"application/json"),Array.isArray(r.props.content)?r.props.content.map(e=>({...r,props:{...r.props,content:e}})):r}(e,n))}),r.flat()})(i.input,e.propResolvers||[]).map(e=>Object.assign(e,i.options)),entry:i};await t.callHook("entries:normalize",n),i._tags=n.tags.map((e,t)=>(e._w=function(e,t){if("number"==typeof t.tagPriority)return t.tagPriority;let n=100,r=b[t.tagPriority]||0,i=e.resolvedOptions.disableCapoSorting?{link:{},script:{},style:{}}:j;if(t.tag in w)n=w[t.tag];else if("meta"===t.tag){let e="content-security-policy"===t.props["http-equiv"]?"content-security-policy":t.props.charset?"charset":"viewport"===t.props.name?"viewport":null;e&&(n=j.meta[e])}else if("link"===t.tag&&t.props.rel)n=i.link[t.props.rel];else if("script"===t.tag){let e=String(t.props.type);C(t.props.async)?n=i.script.async:(!t.props.src||C(t.props.defer)||C(t.props.async)||"module"===e||e.endsWith("json"))&&(!t.innerHTML||e.endsWith("json"))?(C(t.props.defer)&&t.props.src&&!C(t.props.async)||"module"===e)&&(n=i.script.defer):n=i.script.sync}else"style"===t.tag&&(n=t.innerHTML&&F.test(t.innerHTML)?i.style.imported:i.style.sync);return(n||100)+r}(o,e),e._p=(i._i<<10)+t,e._d=N(e),e._d||(e._h=B(e)),e))}}let i=!1;n.entries.flatMap(e=>(e._tags||[]).map(e=>({...e,props:{...e.props}}))).sort(D).reduce((e,t)=>{let n=t._d||t._h;if(!e.has(n))return e.set(n,t);let r=e.get(n);if("merge"===(t?.tagDuplicateStrategy||(y.c.has(t.tag)?"merge":null)||(t.key&&t.key===r.key?"merge":null))){let i={...r.props};Object.entries(t.props).forEach(([e,t])=>i[e]="style"===e?new Map([...r.props.style||new Map,...t]):"class"===e?new Set([...r.props.class||new Set,...t]):t),e.set(n,{...t,props:i})}else t._p>>10==r._p>>10&&"meta"===t.tag&&E(n)?(e.set(n,Object.assign([...Array.isArray(r)?r:[r],t],t)),i=!0):(t._w===r._w?t._p>r._p:t?._w<r?._w)&&e.set(n,t);return e},n.tagMap);let l=n.tagMap.get("title"),a=n.tagMap.get("titleTemplate");if(o._title=l?.textContent,a){let e=a?.textContent;if(o._titleTemplate=e,e){let t="function"==typeof e?e(l?.textContent):e;"string"!=typeof t||o.plugins.has("template-params")||(t=t.replace("%s",l?.textContent||"")),l?null===t?n.tagMap.delete("title"):n.tagMap.set("title",{...l,textContent:t}):(a.tag="title",a.textContent=t)}}n.tags=Array.from(n.tagMap.values()),i&&(n.tags=n.tags.flat().sort(D)),await t.callHook("tags:beforeResolve",n),await t.callHook("tags:resolve",n),await t.callHook("tags:afterResolve",n);let u=[];for(let e of n.tags){let{innerHTML:t,tag:n,props:r}=e;y.V.has(n)&&(0!==Object.keys(r).length||(0,y.h)(e.innerHTML)||(0,y.h)(e.textContent))&&("meta"!==n||(0,y.h)(r.content)||r["http-equiv"]||r.charset)&&("script"===n&&t&&(String(r.type).endsWith("json")?e.innerHTML=("string"==typeof t?t:JSON.stringify(t)).replace(/</g,"\\u003C"):"string"==typeof t&&(e.innerHTML=t.replace(RegExp(`</${n}`,"g"),`<\\/${n}`)),e._d=N(e)),u.push(e))}return u},invalidate(){for(let e of r.values())s.add(e._i);o.dirty=!0,t.callHook("entries:updated",o)}};
2return(e?.plugins||[]).forEach(e=>T(o,e)),o.hooks.callHook("init",o),e.init?.forEach(e=>e&&o.push(e)),o}({...e,plugins:[...e.plugins||[],{key:"client",hooks:{"entries:updated":t}}],init:[!!n&&JSON.parse(n),...e.init||[]]});return r.ssr=!1,r}({domOptions:{render:(t=()=>z(i),n=e=>setTimeout(e,0),r=0,()=>{let e=++r;n(()=>{r===e&&t()})})},...e});return i}function O({children:e,value:t,head:n}){let r=(0,s.useRef)(null);if(void 0!==t&&void 0!==n)throw TypeError("UnheadProvider received both value and head props");let i=t??n;return void 0===i&&null===r.current&&(r.current=$()),(0,s.createElement)(L.U.Provider,{value:i??r.current},e)}let H={position:"absolute",width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",whiteSpace:"nowrap",border:0};function P(){let{page:e}=(0,u.e)(),{site:t}=(0,l.Z)();if(!e?.routePath)return null;let n=t.multiVersion.versions.length>0&&e.version!==t.multiVersion.default?`${e.version}/`:"",s=e.lang===t.lang?"":`${e.lang}/`,o=(0,i.OM)((0,i.cV)(`/${n}${s}llms.txt`)),a=function(e){let{llmsTxtUrl:t,llmsFullTxtUrl:n,pageMdUrl:r}=e,i=`For AI agents: the complete documentation index is available at ${t}, the full documentation bundle is available at ${n}`;return r?`${i}, and this page is available as Markdown at ${r}.`:`${i}.`}({llmsTxtUrl:o,llmsFullTxtUrl:(0,i.OM)((0,i.cV)(`/${n}${s}llms-full.txt`)),pageMdUrl:(0,i.OM)((0,i.qp)(e.routePath))});return(0,r.jsx)("div",{className:"rp-llms-hint",style:H,children:a})}var I=n(4424),R=n(377);function W(){let{setData:e,data:t}=(0,s.useContext)(u.N),{pathname:n,search:i}=(0,c.zy)();if((0,s.useLayoutEffect)(()=>{let t=(0,R.UH)(n);t?e?.(t):async function(){try{let t=await (0,R.So)(n);(0,R.Fv)(n,t),e?.(t)}catch(e){console.log(e)}}()},[n,e]),!t)return(0,r.jsx)(r.Fragment,{});let o=t.frontmatter||{},l="globalUIComponents",a=new URLSearchParams(i),h=!1===o[l]||"0"===a.get(l);return(0,r.jsxs)(d.bL,{children:[(0,r.jsx)(P,{}),(0,r.jsx)(d.PE,{}),!h&&I.A.map((e,t)=>{if(Array.isArray(e)){let[n,r]=e;return s.createElement(n,{key:t,...r})}return s.createElement(e,{key:t})})]})}let G=$();function U(e){let{initialPageData:t=null}=e,[n,o]=(0,s.useState)(t),[f,p]=(0,d.G5)(),{site:m}=(0,l.Z)();return(0,r.jsx)(a.D.Provider,{value:(0,s.useMemo)(()=>({theme:f,setTheme:p}),[f,p]),children:(0,r.jsx)(u.N.Provider,{value:(0,s.useMemo)(()=>({data:n,setData:o}),[n,o]),children:(0,r.jsx)(c.Kd,{basename:(0,h.UC)((0,i.cV)("/")),useTransitions:m.route.useTransitions,children:(0,r.jsx)(O,{head:G,children:(0,r.jsx)(W,{})})})})})}var V=n(5895);!async function(){(0,V.IA)(window.location,window.history);let e=document.getElementById("__rspress_root"),t=(0,i.EJ)(window.location.pathname),n=await (0,R.So)(t);(0,R.Fv)(t,n),(0,s.startTransition)(()=>{(0,o.hydrateRoot)(e,(0,r.jsx)(U,{initialPageData:n}),{onRecoverableError(e,t){e instanceof Error&&console.warn("hydrateRoot recoverable error:",e,t)}})})}()},4499(e,t,n){"use strict";var r=n(4477),i=n(5280);function s(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/";return(0,r.cV)(e,i.A.base)}function o(e){return(0,r.OM)(e,i.A.siteOrigin)}function l(e){return(0,r.EJ)(e,i.A.base)}function a(e,t){return l((0,r.Tj)((0,r.fr)(e),!0))===l((0,r.Tj)((0,r.fr)(t),!0))}function u(e){let t=!!i.A?.route?.cleanUrls;return(0,r.Tj)(e,t)}function c(e){return i.A?.route?.cleanUrls?(0,r.Tj)(e,!0):e}function h(e){var t;return(t=e,(0,r.My)(t)||(0,r.ax)(t)||t.startsWith("//")||!e.startsWith("/"))?e:s(e)}function d(e){let t=e;return s(t=(t=(0,r.Tj)(t,!1)).replace(/\.html(?=#|\?|$)/,".md"))}n.d(t,{As:()=>h,EJ:()=>l,Gk:()=>c,OM:()=>o,Oy:()=>a,cV:()=>s,cc:()=>u,qp:()=>d})},3911(e,t,n){"use strict";n.d(t,{l:()=>a});var r=n(1058),i=n(2559),s=n(3372),o=n(3706);n(9781);let l=`(function () { 3 var script = document.currentScript; 4 if (!script) return; 5 try { 6 var storage = window[script.dataset.rpBannerStorage]; 7 var storageKey = script.dataset.rpBannerStorageKey; 8 var hiddenClass = script.dataset.rpBannerHiddenClass; 9 if (storage && storageKey && hiddenClass && storage.getItem(storageKey)) { 10 document.documentElement.classList.add(hiddenClass); 11 } 12 } catch (e) {} 13})();`,a=(0,o.forwardRef)((e,t)=>{let{href:n,message:a,display:u=!0,className:c,storageKey:h="rp-banner-closed",storage:d="localStorage",customChildren:f}=e,p="customChildren"in e,[m,g]=(0,o.useState)(36),v=(0,i.Px)(t,e=>{e?.offsetHeight&&g(e?.offsetHeight)}),[x,y]=(0,o.useState)(!1),_=(0,o.useId)().replace(/[^a-zA-Z0-9_-]/g,""),D=`rp-banner-${_}`,w=`${D}-hidden`;return((0,o.useEffect)(()=>{let e=!1;if(!p&&"u">typeof window&&d&&h)try{e=!!window[d].getItem(h)}catch{e=!1}return document.documentElement.classList.toggle(w,e),y(e),()=>{document.documentElement.classList.remove(w)}},[w,p,d,h]),!u||x)?null:(0,r.jsxs)(r.Fragment,{children:[!p&&d&&h?(0,r.jsx)("script",{"data-rp-banner-hidden-class":w,"data-rp-banner-storage":d,"data-rp-banner-storage-key":h,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:l}}):null,(0,r.jsx)("style",{children:`:root {--rp-banner-height: ${m}px;} :root.${w} {--rp-banner-height: 0px;} :root.${w} .${D} {display: none;}`}),(0,r.jsx)("div",{className:(0,s.A)("rp-banner",D,c),ref:v,children:f??(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.N_,{href:n,className:"rp-banner__link",title:"string"==typeof a?a:void 0,children:a}),(0,r.jsx)(i.Ge,{icon:i.gz,onClick:()=>
13{if(document.documentElement.classList.add(w),y(!0),d)try{window[d].setItem(h,"true")}catch{return}},className:"rp-banner__close"})]})})]})})},6877(e,t,n){"use strict";n.d(t,{k:()=>f});var r=n(1058),i=n(2559),s=n(3706);function o(e){return(0,r.jsxs)("svg",{id:"Bun",width:"1.2em",height:"1.2em",viewBox:"0 0 80 70",...e,children:[(0,r.jsx)("path",{id:"Shadow",d:"M71.09,20.74c-.16-.17-.33-.34-.5-.5s-.33-.34-.5-.5-.33-.34-.5-.5-.33-.34-.5-.5-.33-.34-.5-.5-.33-.34-.5-.5-.33-.34-.5-.5A26.46,26.46,0,0,1,75.5,35.7c0,16.57-16.82,30.05-37.5,30.05-11.58,0-21.94-4.23-28.83-10.86l.5.5.5.5.5.5.5.5.5.5.5.5.5.5C19.55,65.3,30.14,69.75,42,69.75c20.68,0,37.5-13.48,37.5-30C79.5,32.69,76.46,26,71.09,20.74Z"}),(0,r.jsxs)("g",{id:"Body",children:[(0,r.jsx)("path",{id:"Background",d:"M73,35.7c0,15.21-15.67,27.54-35,27.54S3,50.91,3,35.7C3,26.27,9,17.94,18.22,13S33.18,3,38,3s8.94,4.13,19.78,10C67,17.94,73,26.27,73,35.7Z",style:{fill:"#fbf0df"}}),(0,r.jsx)("path",{id:"Bottom_Shadow","data-name":"Bottom Shadow",d:"M73,35.7a21.67,21.67,0,0,0-.8-5.78c-2.73,33.3-43.35,34.9-59.32,24.94A40,40,0,0,0,38,63.24C57.3,63.24,73,50.89,73,35.7Z",style:{fill:"#f6dece"}}),(0,r.jsx)("path",{id:"Light_Shine","data-name":"Light Shine",d:"M24.53,11.17C29,8.49,34.94,3.46,40.78,3.45A9.29,9.29,0,0,0,38,3c-2.42,0-5,1.25-8.25,3.13-1.13.66-2.3,1.39-3.54,2.15-2.33,1.44-5,3.07-8,4.7C8.69,18.13,3,26.62,3,35.7c0,.4,0,.8,0,1.19C9.06,15.48,20.07,13.85,24.53,11.17Z",style:{fill:"#fffefc"}}),(0,r.jsx)("path",{id:"Top",d:"M35.12,5.53A16.41,16.41,0,0,1,29.49,18c-.28.25-.06.73.3.59,3.37-1.31,7.92-5.23,6-13.14C35.71,5,35.12,5.12,35.12,5.53Zm2.27,0A16.24,16.24,0,0,1,39,19c-.12.35.31.65.55.36C41.74,16.56,43.65,11,37.93,5,37.64,4.74,37.19,5.14,37.39,5.49Zm2.76-.17A16.42,16.42,0,0,1,47,17.12a.33.33,0,0,0,.65.11c.92-3.49.4-9.44-7.17-12.53C40.08,4.54,39.82,5.08,40.15,5.32ZM21.69,15.76a16.94,16.94,0,0,0,10.47-9c.18-.36.75-.22.66.18-1.73,8-7.52,9.67-11.12,9.45C21.32,16.4,21.33,15.87,21.69,15.76Z",style:{fill:"#ccbea7",fillRule:"evenodd"}}),(0,r.jsx)("path",{id:"Outline",d:"M38,65.75C17.32,65.75.5,52.27.5,35.7c0-10,6.18-19.33,16.53-24.92,3-1.6,5.57-3.21,7.86-4.62,1.26-.78,2.45-1.51,3.6-2.19C32,1.89,35,.5,38,.5s5.62,1.2,8.9,3.14c1,.57,2,1.19,3.07,1.87,2.49,1.54,5.3,3.28,9,5.27C69.32,16.37,75.5,25.69,75.5,35.7,75.5,52.27,58.68,65.75,38,65.75ZM38,3c-2.42,0-5,1.25-8.25,3.13-1.13.66-2.3,1.39-3.54,2.15-2.33,1.44-5,3.07-8,4.7C8.69,18.13,3,26.62,3,35.7,3,50.89,18.7,63.25,38,63.25S73,50.89,73,35.7C73,26.62,67.31,18.13,57.78,13,54,11,51.05,9.12,48.66,7.64c-1.09-.67-2.09-1.29-3-1.84C42.63,4,40.42,3,38,3Z"})]}),(0,r.jsxs)("g",{id:"Mouth",children:[(0,r.jsx)("g",{id:"Backgroun
13d-2","data-name":"Background",children:(0,r.jsx)("path",{d:"M45.05,43a8.93,8.93,0,0,1-2.92,4.71,6.81,6.81,0,0,1-4,1.88A6.84,6.84,0,0,1,34,47.71,8.93,8.93,0,0,1,31.12,43a.72.72,0,0,1,.8-.81H44.26A.72.72,0,0,1,45.05,43Z",style:{fill:"#b71422"}})}),(0,r.jsxs)("g",{id:"Tongue",children:[(0,r.jsx)("path",{id:"Background-3","data-name":"Background",d:"M34,47.79a6.91,6.91,0,0,0,4.12,1.9,6.91,6.91,0,0,0,4.11-1.9,10.63,10.63,0,0,0,1-1.07,6.83,6.83,0,0,0-4.9-2.31,6.15,6.15,0,0,0-5,2.78C33.56,47.4,33.76,47.6,34,47.79Z",style:{fill:"#ff6164"}}),(0,r.jsx)("path",{id:"Outline-2","data-name":"Outline",d:"M34.16,47a5.36,5.36,0,0,1,4.19-2.08,6,6,0,0,1,4,1.69c.23-.25.45-.51.66-.77a7,7,0,0,0-4.71-1.93,6.36,6.36,0,0,0-4.89,2.36A9.53,9.53,0,0,0,34.16,47Z"})]}),(0,r.jsx)("path",{id:"Outline-3","data-name":"Outline",d:"M38.09,50.19a7.42,7.42,0,0,1-4.45-2,9.52,9.52,0,0,1-3.11-5.05,1.2,1.2,0,0,1,.26-1,1.41,1.41,0,0,1,1.13-.51H44.26a1.44,1.44,0,0,1,1.13.51,1.19,1.19,0,0,1,.25,1h0a9.52,9.52,0,0,1-3.11,5.05A7.42,7.42,0,0,1,38.09,50.19Zm-6.17-7.4c-.16,0-.2.07-.21.09a8.29,8.29,0,0,0,2.73,4.37A6.23,6.23,0,0,0,38.09,49a6.28,6.28,0,0,0,3.65-1.73,8.3,8.3,0,0,0,2.72-4.37.21.21,0,0,0-.2-.09Z"})]}),(0,r.jsxs)("g",{id:"Face",children:[(0,r.jsx)("ellipse",{id:"Right_Blush","data-name":"Right Blush",cx:"53.22",cy:"40.18",rx:"5.85",ry:"3.44",style:{fill:"#febbd0"}}),(0,r.jsx)("ellipse",{id:"Left_Bluch","data-name":"Left Bluch",cx:"22.95",cy:"40.18",rx:"5.85",ry:"3.44",style:{fill:"#febbd0"}}),(0,r.jsx)("path",{id:"Eyes",d:"M25.7,38.8a5.51,5.51,0,1,0-5.5-5.51A5.51,5.51,0,0,0,25.7,38.8Zm24.77,0A5.51,5.51,0,1,0,45,33.29,5.5,5.5,0,0,0,50.47,38.8Z",style:{fillRule:"evenodd"}}),(0,r.jsx)("path",{id:"Iris",d:"M24,33.64a2.07,2.07,0,1,0-2.06-2.07A2.07,2.07,0,0,0,24,33.64Zm24.77,0a2.07,2.07,0,1,0-2.06-2.07A2.07,2.07,0,0,0,48.75,33.64Z",style:{fill:"#fff",fillRule:"evenodd"}})]})]})}function l(e){return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:(0,r.jsx)("path",{fill:"currentColor",d:"M1.105 18.02A11.9 11.9 0 0 1 0 12.985q0-.698.078-1.376a12 12 0 0 1 .231-1.34A12 12 0 0 1 4.025 4.02a12 12 0 0 1 5.46-2.771a12 12 0 0 1 3.428-.23c1.452.112 2.825.477 4.077 1.05a12 12 0 0 1 2.78 1.774a12.02 12.02 0 0 1 4.053 7.078A12 12 0 0 1 24 12.985q0 .454-.036.914a12 12 0 0 1-.728 3.305a12 12 0 0 1-2.38 3.875c-1.33 1.357-3.02 1.962-4.43 1.936a4.4 4.4 0 0 1-2.724-1.024c-.99-.853-1.391-1.83-1.53-2.919a5 5 0 0 1 .128-1.518c.105-.38.37-1.116.76-1.437c-.455-.197-1.04-.624-1.226-.829c-.045-.05-.04-.13 0-.183a.155.155 0 0 1 .177-.053c.392.134.869.267 1.372.35c.66.111 1.484.25 2.317.292c2.03.1 4.153-.813 4.812-2.627s.403-3.609-1.96-4.685s-3.454-2.356-5.363-3.128c-1.247-.505-2.636-.205-4.06.582c-3.838 2.121-7.277 8.822-5.69 15.032a.191.191 0 0 1-.315.19a12 12 0 0 1-1.25-1.634a12 12 0 0 1-.769-1.404M11.57 6.087c.649-.051 1.214.501 1.31 1.236c.13.979-.228 1.99-1.41 2.013c-1.01.02-1.315-.997-1.248-1.614c.066-.616.574-1.575 1.35-1.635"})})}function a(e){return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 256 256",...e,children:[(0,r.jsx)("path",{fill:"#C12127",d:"M0 256V0h256v256z"}),(0,r.jsx)("path",{fill:"#FFF",d:"M48 48h160v160h-32V80h-48v128H48z"})]})}function u(e){return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 128 128",...e,children:[(0,r.jsx)("path",{fill:"#f8ab00",d:"M0 .004V40h39.996V.004Zm43.996 0V40h40V.004Zm44.008 0V40H128V.004Zm0 43.996v39.996H128V44Z"}),(0,r.jsx)("path",{fill:"#4c4c4c",d:"M43.996 44v39.996h40V44ZM0 87.996v40h39.996v-40Zm43.996 0v40h40v-40Zm44.008 0v40H128v-40Z"})]})}function c(e){return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 128 128",...e,children:(0,r.jsxs)("g",{fill:"#2c8ebb",children:[(0,r.jsx)("path",{d:"M99.24 80.71C94.9 80.76 91.1 83 87.89 85c-6 3.71-9 3.47-9 3.47l-.1-.17c-.41-.67 1.92-6.68-.69-13.84c-2.82-7.83-7.3-9.72-6.94-10.32c1.53-2.59 5.36-6.7 6.89-14.36c.91-4.64.67-12.28-1.39-16.28c-.38-.74-3.78 1.24-3.78 1.24s-3.18-7.09-4.07-7.66c-2.87-1.84-6 7.61-6 7.61a14 14 0 0 0-11.71 4.5a9.64 9.64 0 0 1-3.85 2.27c-.41.14-.91.12-2.15 3.47c-1.9 5.07 3.24 10.81 3.24 10.81s-6.13 4.33-8.4 9.72a24.78 24.78 0 0 0-1.75 11.68s-4.36 3.78-4.64 7.68a12.87 12.87 0 0 0 1.77 7.83a1.94 1.94 0 0 0 2.63.91s-2.9 3.38-.19 4.81c2.47 1.29 6.63 2 8.83-.19c1.6-1.6 1.92-5.17 2.51-6.63c.14-.34.62.57 1.08 1a10 10 0 0 0 1.36 1s-3.9 1.68-2.3 5.51c.53 1.27 2.42 2.08 5.51 2.06c1.15 0 13.76-.72 17.12-1.53a4.33 4.33 0 0 0 2.61-1.46a63 63 0 0 0 15.49-7c4.74-3.09 6.68-3.93 10.51-4.84c3.16-.75 2.95-5.65-1.24-5.58z"}),(0,r.jsx)("path",{d:"M64 2a62 62 0 1 0 62 62A62 62 0 0 0 64 2zm37.3 87.83c-3.35.81-4.91 1.44-9.41 4.36a67 67 0 0 1-15.56 7.18a8.71 8.71 0 0 1-3.64 1.77c-3.81.93-16.88 1.63-17.91 1.63h-.24c-4 0-6.27-1.24-7.49-2.54c-3.4 1.7-7.8 1-11-.69a5.55 5.55 0 0 1-3-3.9a6 6 0 0 1 0-2.06a6.66 6.66 0 0 1-.79-1A16.38 16.38 0 0 1 3
130 84.52c.29-3.73 2.87-7.06 4.55-8.83A28.56 28.56 0 0 1 36.61 64a26.82 26.82 0 0 1 6.82-9c-1.65-2.78-3.33-7.06-1.7-11.42c1.17-3.11 2.13-4.84 4.24-5.58a6.84 6.84 0 0 0 2.51-1.34A17.65 17.65 0 0 1 60.34 31c.19-.48.41-1 .65-1.46c1.6-3.4 3.3-5.31 5.29-6a4.88 4.88 0 0 1 4.4.5c.65.43 1.48 1 3.9 6a4.69 4.69 0 0 1 2.85-.1a3.81 3.81 0 0 1 2.39 1.94c2.47 4.74 2.8 13.19 1.72 18.62a33.8 33.8 0 0 1-5.84 13.31a25.73 25.73 0 0 1 5.77 9.43a25.42 25.42 0 0 1 1.41 10.41A28.7 28.7 0 0 0 86 81.91c3.06-1.89 7.68-4.74 13.19-4.81a6.62 6.62 0 0 1 7 5.7a6.35 6.35 0 0 1-4.89 7.03z"})]})})}let h=e=>{let t=e.split(" "),n="run"===t[1],r=!1;return t.map((e,t)=>!(t>=2)||e.startsWith("-")||e.includes(":")||/^https?:/.test(e)?e:n&&r?e:(r=!0,`npm:${e}`)).join(" ")};function d(e){if(e.startsWith("yarn create"))return e.replace(/(yarn create [^\s]+)@latest/,"$1");if(e.startsWith("deno ")){let t=e.replace(/deno create\s+([^\s]+)/,"deno init --npm $1");if(!t.includes("install"))return t.includes("--npm")||t.includes("--jsr")?t:h(t)}if(!e?.includes("install"))return e;let t=e.split(" ").filter(e=>!e.startsWith("-")&&!e.startsWith("--")).join(" ");if("yarn install"===t||"pnpm install"===t||"bun install"===t||"deno install"===t)return e;let n=e.replace(/\binstall\b/,"add");return n.startsWith("deno ")?n.includes("--npm")||n.includes("--jsr")?n:h(n):n}function f(e){let t,{command:n,exec:h,dlx:f,additionalTabs:p=[]}=e,m={npm:(0,r.jsx)(a,{}),yarn:(0,r.jsx)(c,{}),pnpm:(0,r.jsx)(u,{}),bun:(0,r.jsx)(o,{}),deno:(0,r.jsx)(l,{})};p.forEach(e=>{m[e.tool]=e.icon});let g=(0,s.useMemo)(()=>(0,i.GD)().pre,[i.GD]);if("string"==typeof n){let e=e=>{if(f)switch(e){case"npm":return"npx";case"yarn":return"yarn dlx";case"pnpm":return"pnpm dlx";case"bun":return"bunx";case"deno":return"deno run -A";default:return e}if(!h)return e;switch(e){case"npm":return"npx";case"yarn":return"yarn";case"pnpm":return"pnpm";case"bun":return"bun";case"deno":return"deno run -A";default:return e}};t={npm:`${e("npm")} ${n}`,yarn:`${e("yarn")} ${n}`,pnpm:`${e("pnpm")} ${n}`,bun:`${e("bun")} ${n}`,deno:`${e("deno")} ${n}`},p.forEach(e=>{t[e.tool]=`${e.tool} ${n}`}),t.yarn=d(t.yarn),t.pnpm=d(t.pnpm),t.bun=d(t.bun),t.deno=d(t.deno)}else t=n;return(0,r.jsx)(i.tU,{groupId:"package.manager",children:Object.entries(t).map(e=>{let t,n,[s,o]=e,[l,a]=(t=o.split(" ")[0],n=o.slice(t.length),[t,n]);return(0,r.jsx)(i.oz,{label:(0,r.jsxs)("div",{style:{display:"flex",alignItems:"center",fontSize:15},children:[m[s],(0,r.jsx)("span",{style:{marginLeft:6,marginBottom:2},children:s})]}),children:(0,r.jsx)(g,{lang:"bash",className:"shiki css-variables",style:{backgroundColor:"var(--shiki-background)",color:"var(--shiki-foreground)"},children:(0,r.jsx)("code",{style:{whiteSpace:"pre"},children:(0,r.jsxs)("span",{className:"line",children:[(0,r.jsx)("span",{style:{color:"var(--shiki-token-function)"},children:l}),(0,r.jsx)("span",{style:{color:"var(--shiki-token-string)"},children:a})]})})})},s)})})}},3799(e,t,n){"use strict";let r,i,s,o,l;n.d(t,{Ex:()=>J,$n:()=>Q,Pq:()=>et,NG:()=>en,zq:()=>ed,As:()=>eI,co:()=>eR,fS:()=>ln,Lp:()=>eU,x5:()=>eZ,Eg:()=>eq,K6:()=>eY,hM:()=>eJ,UQ:()=>eQ,Cq:()=>k,RG:()=>C,hI:()=>A,gz:()=>E,bz:()=>N,nD:()=>w,Y7:()=>B,GI:()=>M,Fw:()=>S,kC:()=>b,HW:()=>j,g6:()=>T,D7:()=>z,uO:()=>L,AX:()=>K,ML:()=>$,dd:()=>O,l0:()=>H,I4:()=>P,VY:()=>F,HO:()=>I,C0:()=>R,kv:()=>W,lv:()=>G,mT:()=>U,Mk:()=>V,QB:()=>Z,hG:()=>q,KS:()=>e6,N_:()=>tr,QZ:()=>ti,mS:()=>ta,KG:()=>th,vw:()=>tf,YU:()=>tc,so:()=>tk,fx:()=>t6,ue:()=>t7,Ab:()=>lr,Rc:()=>t9,Aw:()=>na,v7:()=>nc,ky:()=>nh.k,UC:()=>nd,a9:()=>nm,bL:()=>ng,vj:()=>nv,vd:()=>nx,Pl:()=>ob,Bx:()=>o$,RP:()=>oU,gj:()=>oV,Ge:()=>oZ,bS:()=>oK,oz:()=>oJ,tU:()=>oY,OT:()=>o0,vN:()=>o2,lW:()=>lo,El:()=>ll,GD:()=>eL,Px:()=>la,zE:()=>lF,i7:()=>lm,nl:()=>lj,R3:()=>o3,i6:()=>eh,J6:()=>o6,HF:()=>e5,X6:()=>tn,ZZ:()=>lu,dS:()=>np,YW:()=>lc,uo:()=>lh,zV:()=>ld,yL:()=>oR,G5:()=>lp,n6:()=>o9});var a,u,c,h,d,f,p,m,g,v,x,y,_=n(1058),D=n(3706);let w=e=>(0,_.jsx)("svg",{width:"1em",height:"1em",strokeLinejoin:"round","aria-hidden":"true",viewBox:"0 0 16 16",...e,children:(0,_.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M6.75 2.75a1.25 1.25 0 1 1 2.5 0V3h-2.5zM5.25 3v-.25a2.75 2.75 0 0 1 5.5 0V3H15v1.5h-1.115l-.707 9.192A2.5 2.5 0 0 1 10.685 16h-5.37a2.5 2.5 0 0 1-2.493-2.308L2.115 4.5H1V3h4.25m-.932 10.577L3.62 4.5h8.76l-.698 9.077a1 1 0 0 1-.997.923h-5.37a1 1 0 0 1-.997-.923",clipRule:"evenodd"})}),b=e=>(0,_.jsx)("svg",{width:"1em",height:"1em",strokeLinejoin:"round","data-testid":"geist-icon",style:{color:"currentcolor"},viewBox:"0 0 16 16",...e,children:(0,_.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M9 7.674V2.5H7v5.174l-.503.447L4.383 10h7.234L9.503 8.121zM5.5 2.5H4V1h8v1.5h-1.5V7l3.573 3.177A2.76 2.76 0 0 1 12.24 15H3.76a2.76 2.76 0 0 1-1.834-4.823L5.5 7zm-3 9.74c0-.268.085-.527.24-.74h10.52a1.26 1.26 0 0 1-1.02 2H3.76a1.26 1.26 0 0 1-1.26-1.26",clipRule:"evenodd"})}),j=e=>(0,_.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16",...e,children:(0,_.jsx)("path",{stroke:"currentColor",d:"M9.333 2H14v4.667M14 9.825V13a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1h3M8.6 7.4l5.1-5.1"})}),F=e=>(0,_.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 24 24",...e,children:(0,_.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6M15 3h6v6M10 14 21 3"})}),C=e=>(0,_.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",...e,children:(0,_.jsx)("path",{fill:"currentColor",d:"M16 22 6 12l1.4-1.4 8.6 8.6 8.6-8.6L26 12z"})}),A=e=>(0,_.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",...e,children:(0,_.jsx)("path",{fill:"currentColor",d:"M22 16 12 26l-1.4-1.4 8.6-8.6-8.6-8.6L12 6z"})}),k=e=>(0,_.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor",viewBox:"0 0 24 24",...e,children:(0,_.jsx)("path",{d:"M17.304 3.541h-3.672l6.696 16.918H24Zm-10.608 0L0 20.459h3.744l1.37-3.553h7.005l1.369 3.553h3.744L10.536 3.541Zm-.371 10.223L8.616 7.82l2.291 5.945Z"})}),E=e=>(0,_.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 32 32",...e,children:(0,_.jsx)("path",{fill:"currentColor",d:"M24 9.4 22.6 8 16 14.6 9.4 8 8 9.4l6.6 6.6L8 22.6 9.4 24l6.6-6.6 6.6 6.6 1.4-1.4-6.6-6.6z"})}),N=e=>(0,_.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 24 24",...e,children:[(0,_.jsx)("path",{fill:"currentColor",d:"M20 8v12H8V8zm0-2H8a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2"}),(0,_.jsx)("path",{fill:"currentColor",d:"M4 16H2V4a2 2 0 0 1 2-2h12v2H4Z"})]}),B=e=>(0,_.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",...e,children:(0,_.jsx)("path",{fill:"currentColor",d:"M16 22 6 12l1.4-1.4 8.6 8.6 8.6-8.6L26 12z"})}),M=e=>(0,_.jsx)("svg",{width:"1em",height:"1em",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,viewBox:"0 0 24 24",...e,children:(0,_.jsx)("path",{d:"M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5z"})}),S=e=>(0,_.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,fill:"none",viewBox:"0 0 48 48",...e,children:[(0,_.jsx)("path",{stroke:"currentColor",strokeWidth:4,d:"M24 5v6m7 1 4-4m-18 4-4-4m27 33H8a2 2 0 0 1-2-2v-8.46a2 2 0 0 1 .272-1.007l6.15-10.54A2 2 0 0 1 14.148 18H33.85a2 2 0 0 1 1.728.992l6.149 10.541A2 2 0 0 1 42 30.541V39a2 2 0 0 1-2 2Z"}),(0,_.jsx)("path",{stroke:"currentColor",strokeWidth:4,d:"M41.5 30H28s-1 3-4 3-4-3-4-3H6.5"})]}),T=e=>(0,_.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 32 32",...e,children:[(0,_.jsx)("circle",{cx:22,cy:24,r:2,fill:"currentColor"}),(0,_.jsx)("path",{fill:"none",d:"M22 28a4 4 0 1 1 4-4 4.004 4.004 0 0 1-4 4m0-6a2 2 0 1 0 2 2 2.003 2.003 0 0 0-2-2"}),(0,_.jsx)("path",{fill:"currentColor",d:"M29.777 23.479A8.64 8.64 0 0 0 22 18a8.64 8.64 0 0 0-7.777 5.479L14 24l.223.521A8.64 8.64 0 0 0 22 30a8.64 8.64 0 0 0 7.777-5.479L30 24ZM22 28a4 4 0 1 1 4-4 4.005 4.005 0 0 1-4 4"}),(0,_.jsx)("path",{fill:"currentColor",d:"M12 28H8V4h8v6a2.006 2.006 0 0 0 2 2h6v4h2v-6a.91.91 0 0 0-.3-.7l-7-7A.9.9 0 0 0 18 2H8a2.006 2.006 0 0 0-2 2v24a2.006 2.006 0 0 0 2 2h4Zm6-23.6 5.6 5.6H18Z"})]}),z=e=>(0,_.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 32 32",...e,children:(0,_.jsx)("path",{fill:"currentColor",d:"M28 12v-2h-6V4h-2v6h-8V4h-2v6H4v2h6v8H4v2h6v6h2v-6h8v6h2v-6h6v-2h-6v-8Zm-8 8h-8v-8h8Z"})}),L=e=>(0,_.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 32 32",...e,children:(0,_.jsx)("path",{fill:"currentColor",d:"M13.414 17.586 18 22.172V8H8V6h10a2 2 0 0 1 2 2v14.172l4.586-4.586L26 19l-7 7-7-7Z"})}),$=e=>(0,_.jsx)("svg",{width:32,height:32,viewBox:"0 0 24 24",...e,children:(0,_.jsxs)("g",{fill:"none",stroke:"var(--rp-c-brand)",strokeLinecap:"round",strokeWidth:2,children:[(0,_.jsx)("path",{strokeDasharray:60,strokeDashoffset:60,strokeOpacity:.3,d:"M12 3a9 9 0 1 1 0 18 9 9 0 0 1 0-18Z",children:(0,_.jsx)("animate",{fill:"freeze",attributeName:"stroke-dashoffset",dur:"1.3s",values:"60;0"})}),(0,_.jsxs)("path",{strokeDasharray:15,strokeDashoffset:15,d:"M12 3a9 9 0 0 1 9 9",children:[(0,_.jsx)("animate",{fill:"freeze",attributeName:"stroke-dashoffset",dur:"0.3s",values:"15;0"}),(0,_.jsx)("animateTransform",{attributeName:"transform",dur:"1.5s",repeatCount:"indef
13inite",type:"rotate",values:"0 12 12;360 12 12"})]})]})}),O=e=>(0,_.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",...e,children:(0,_.jsx)("path",{fill:"currentColor",d:"M4 6h24v2H4zm0 18h24v2H4zm0-12h24v2H4zm0 6h24v2H4z"})}),H=e=>(0,_.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:19,height:19,fill:"none",viewBox:"0 0 19 19",...e,children:(0,_.jsx)("path",{fill:"currentColor",d:"M9.166 0a9.2 9.2 0 0 1 1.857.188.834.834 0 0 1 .042 1.623 4.47 4.47 0 1 0 5.457 5.457l.048-.135a.834.834 0 0 1 1.575.177q.186.902.188 1.856A9.168 9.168 0 1 1 9.166 0"})}),P=e=>(0,_.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor",viewBox:"0 0 24 24",...e,children:(0,_.jsx)("path",{d:"M22.282 9.821a5.99 5.99 0 0 0-.516-4.91 6.05 6.05 0 0 0-6.51-2.9A6.065 6.065 0 0 0 4.981 4.18a5.99 5.99 0 0 0-3.998 2.9 6.05 6.05 0 0 0 .743 7.097 5.98 5.98 0 0 0 .51 4.911 6.05 6.05 0 0 0 6.515 2.9A5.99 5.99 0 0 0 13.26 24a6.06 6.06 0 0 0 5.772-4.206 6 6 0 0 0 3.997-2.9 6.06 6.06 0 0 0-.747-7.073zM13.26 22.43a4.48 4.48 0 0 1-2.876-1.04l.141-.081 4.779-2.758a.8.8 0 0 0 .392-.681v-6.737l2.02 1.168a.07.07 0 0 1 .038.052v5.583a4.504 4.504 0 0 1-4.494 4.494M3.6 18.304a4.47 4.47 0 0 1-.535-3.014l.142.085 4.783 2.759a.77.77 0 0 0 .78 0l5.843-3.369v2.332a.08.08 0 0 1-.033.062L9.74 19.95a4.5 4.5 0 0 1-6.14-1.646M2.34 7.896a4.5 4.5 0 0 1 2.366-1.973V11.6a.77.77 0 0 0 .388.677l5.815 3.354-2.02 1.168a.08.08 0 0 1-.071 0l-4.83-2.786A4.504 4.504 0 0 1 2.34 7.872zm16.597 3.855-5.833-3.387L15.119 7.2a.08.08 0 0 1 .071 0l4.83 2.791a4.494 4.494 0 0 1-.676 8.105v-5.678a.79.79 0 0 0-.407-.667zm2.01-3.023-.141-.085-4.774-2.782a.78.78 0 0 0-.785 0L9.409 9.23V6.897a.07.07 0 0 1 .028-.061l4.83-2.787a4.5 4.5 0 0 1 6.68 4.66zm-12.64 4.135-2.02-1.164a.08.08 0 0 1-.038-.057V6.075a4.5 4.5 0 0 1 7.375-3.453l-.142.08-4.778 2.758a.8.8 0 0 0-.393.681zm1.097-2.365 2.602-1.5 2.607 1.5v2.999l-2.597 1.5-2.607-1.5Z"})}),I=e=>(0,_.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 16 16",...e,children:[(0,_.jsx)("path",{stroke:"currentColor",strokeOpacity:.8,strokeWidth:1.333,d:"M8 14.667A6.667 6.667 0 1 0 8 1.333a6.667 6.667 0 0 0 0 13.334Z",clipRule:"evenodd"}),(0,_.jsx)("path",{stroke:"currentColor",strokeLinejoin:"round",strokeOpacity:.8,strokeWidth:1.333,d:"M8 14.667A6.667 6.667 0 1 0 8 1.333a6.667 6.667 0 0 0 0 13.334Z"}),(0,_.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeOpacity:.8,strokeWidth:1.333,d:"M11 9 8 6 5 9"})]}),R=e=>(0,_.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 21",...e,children:(0,_.jsx)("path",{fill:"currentColor",d:"M8.333 1.913A6.667 6.667 0 0 1 15 8.58c0 1.54-.525 2.957-1.402 4.085l4.49 4.492a.834.834 0 0 1-1.177 1.178l-4.491-4.49a6.64 6.64 0 0 1-4.087 1.402 6.667 6.667 0 0 1 0-13.334m0 1.667a5 5 0 1 0 0 10 5 5 0 0 0 0-10"})}),W=e=>(0,_.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:21,height:21,fill:"none",viewBox:"0 0 21 21",...e,children:(0,_.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.667,d:"M3.645 5.225h13.333M3.645 10.225h13.333M3.645 15.225h13.333"})}),G=e=>(0,_.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 24 24",...e,children:(0,_.jsx)("path",{fill:"currentColor",d:"m9.55 18-5.7-5.7 1.425-1.425L9.55 15.15l9.175-9.175L20.15 7.4z"})}),U=e=>(0,_.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24",...e,children:(0,_.jsx)("path",{fill:"currentColor",d:"m7.001 15.848-1.226 1.226a.58.58 0 0 0 0 .818.58.58 0 0 0 .818 0l1.226-1.226a.58.58 0 0 0 0-.818.58.58 0 0 0-.818 0m-.352-8.735a.584.584 0 0 0 .825-.825L6.237 5.051a.584.584 0 0 0-.825.825zM5.011 11.07h-1.75a.584.584 0 0 0 0 1.167h1.75c.324 0 .584-.26.584-.583a.585.585 0 0 0-.584-.584m7.003-5.835c.324 0 .584-.26.584-.584V2.9a.58.58 0 0 0-.584-.584.58.58 0 0 0-.583.583V4.65c0 .323.262.584.583.584m5.616 1.621 1.226-1.225a.58.58 0 0 0 0-.818.58.58 0 0 0-.818 0l-1.226 1.225a.58.58 0 0 0 0 .818.576.576 0 0 0 .818 0m3.138 4.214h-1.75a.58.58 0 0 0-.584.584c0 .324.26.584.583.584h1.751a.584.584 0 1 0 0-1.167m-3.389 5.124a.584.584 0 0 0-.825.825l1.238 1.238a.584.584 0 0 0 .825-.826zm-5.365-9.795a5.256 5.256 0 0 0-5.257 5.258 5.256 5.256 0 0 0 5.257 5.257 5.256 5.256 0 0 0 5.257-5.257 5.256 5.256 0 0 0-5.257-5.258m0 11.675a.58.58 0 0 0-.583.583v1.751a.582.582 0 1 0 1.167 0v-1.75a.584.584 0 0 0-.584-.584"})}),V=e=>(0,_.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e,children:(0,_.jsx)("path",{fill:"currentColor",d:"M4 4a2 2 0 0 1 2-2h8a1 1 0 0 1 .707.293l5 5A1 1 0 0 1 20 8v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2zm13.586 4L14 4.414V8zM12 4H6v16h12V10h-5a1 1 0 0 1-1-1z"})}),Z=e=>(0,_.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 24 24",...e,children:(0,_.jsx)("path",{fill:"currentColor",d:"M16 7H3V5h13zM3 19h13v-2H3zm19-7-4-3v2H3v2h15v2z"})}),q=e=>(0,_.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 24 24",...e,children:(0,_.jsx)("path",{fill:"currentColor",d:"M21 5H3v2h18zM3 19h7v-2H3zm0-6h15c1 0 2 .43 2 2s-1 2-2 2h-2v-2l-4 3 4 3v-2h2c2.95 0 4-1.27 4-4 0-2.72-1-4-4-4H3z"})}),K=e=>(0,_.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e,children:(0,_.jsxs)("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,children:[(0,_.jsx)("path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"}),(0,_.jsx)("path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"})]})});var Y=n(3372);function J(e){let{children:t,type:n="tip",text:r,outline:i=!1}=e;return(0,_.jsx)("span",{className:(0,Y.A)("rp-badge",`rp-badge--${n}`,i&&"rp-badge--outline"),children:t||r})}n(6056);var X=n(2559);function Q(e){let{theme:t="brand",size:n="big",href:r="/",className:i="",children:s,dangerouslySetInnerHTML:o}=e,l=null;return"button"===e.type?l="button":"a"===e.type&&(l=X.N_),D.createElement(l??"a",{className:(0,Y.A)("rp-button",`rp-button--${t}`,`rp-button--${n}`,i),href:r,...o},s)}function ee(e){return e.charAt(0).toUpperCase()+e.slice(1)}function et(e){let{type:t,title:n,children:r}=e;return"details"===t?(0,_.jsxs)("details",{className:`rp-callout rp-callout--${t}`,children:[(0,_.jsx)("summary",{className:"rp-callout__title",children:n??ee(t)}
13),(0,_.jsx)("div",{className:"rp-callout__content",children:r})]}):(0,_.jsxs)("div",{className:`rp-callout rp-callout--${t}`,children:[(0,_.jsx)("div",{className:"rp-callout__title",children:n??ee(t)}),(0,_.jsx)("div",{className:"rp-callout__content",children:r})]})}function en(e){let{containerElementClassName:t,title:n,lang:r="txt",wrapCode:i=!1,lineNumbers:s=!1,fold:o=!1,height:l,codeButtonGroupProps:a,children:u}=e,{wrapCode:c,toggleWrapCode:h,copyElementRef:d}=(0,X.i6)(i),[f,p]=(0,D.useState)(!1),[m,g]=(0,D.useState)(!1),v=!o&&void 0!==l,x=(0,D.useRef)(null),y=(0,D.useRef)(null);(0,D.useEffect)(()=>{if(!o||!y.current)return void g(!1);let e=l??300;g(y.current.scrollHeight>e)},[o,l]);let w=(0,D.useCallback)(()=>{f?(p(!1),requestAnimationFrame(()=>{if(x.current){let e=x.current.getBoundingClientRect();e.top<0&&window.scrollBy({top:e.top-16,behavior:"smooth"})}})):p(!0)},[f]);return(0,_.jsxs)("div",{className:(0,Y.A)("rp-codeblock",`language-${r}`,t),ref:x,children:[n&&(0,_.jsx)("div",{className:"rp-codeblock__title",children:n}),(0,_.jsxs)("div",{className:(0,Y.A)("rp-codeblock__content",c&&"rp-codeblock__content--wrap-code",s&&"rp-codeblock__content--line-numbers",m&&!f&&"rp-codeblock__content--fold",v&&"rp-codeblock__content--scroll"),style:m&&!f?{maxHeight:`${l??300}px`}:v?{maxHeight:`${l}px`}:void 0,ref:y,children:[(0,_.jsx)("div",{className:"rp-codeblock__content__scroll-container rp-scrollbar rp-scrollbar--always",ref:d,children:u}),(0,_.jsx)(X.zq,{...a,copyElementRef:d,wrapCode:c,toggleWrapCode:h})]}),m&&(0,_.jsx)("button",{type:"button",className:(0,Y.A)("rp-codeblock__fold-btn",f&&"rp-codeblock__fold-btn--expanded"),onClick:w,"aria-label":f?"Collapse code":"Expand code","aria-expanded":f,children:(0,_.jsx)(X.Ge,{icon:X.RG,className:"rp-codeblock__fold-btn__icon"})})]})}n(4215),n(9581),n(2771);var er=n(621),ei=n(9221),es=n(5226);function eo(){let e=(0,es.u)();return(0,D.useCallback)((t,n)=>{let r=ei.A[t]?.[e];if("string"!=typeof r)throw Error(`i18n key "${t}" not found for language "${e}"`);return r.replace(/\{\{(\w+)\}\}/g,(e,t)=>n?.[t]??`${t}`)},[e])}n(6477),n(2981);let el=new Map,ea="rp-code-copy-button--copied";async function eu(e,t){if(!e)return;let n=(0,X.El)(e,{ignoreClasses:["linenumber"],ignoreSelectors:[".rp-copy-ignore"]});if(await (0,X.lW)(n)&&t){t.classList.add(ea),clearTimeout(el.get(t));let e=setTimeout(()=>{t.classList.remove(ea),t.blur(),el.delete(t)},2e3);el.set(t,e)}}function ec(e){let{codeBlockRef:t}=e,n=(0,D.useRef)(null),r=eo();return(0,_.jsxs)("button",{className:"rp-code-button-group__button rp-code-copy-button",onClick:()=>{eu(t.current,n.current)},ref:n,title:r("codeButtonGroupCopyButtonText"),children:[(0,_.jsx)(X.Ge,{icon:X.bz,className:"rp-code-button-group__icon rp-code-copy-button__icon rp-code-copy-button__icon--copy"}),(0,_.jsx)(X.Ge,{icon:X.lv,className:"rp-code-button-group__icon rp-code-copy-button__icon rp-code-copy-button__icon--success"})]})}let eh=e=>{let{site:t}=(0,er.Z)(),{defaultWrapCode:n}=t.markdown,[r,i]=(0,D.useState)(e??n);return{copyElementRef:(0,D.useRef)(null),wrapCode:r,toggleWrapCode:()=>{i(!r)}}};function ed(e){let{wrapCode:t,toggleWrapCode:n,copyElementRef:r,showWrapCodeButton:i=!0,showCopyButton:s=!0}=e,o=eo();return(0,_.jsx)(_.Fragment,{children:(0,_.jsxs)("div",{className:"rp-code-button-group",children:[i&&(0,_.jsxs)("button",{className:(0,Y.A)("rp-code-button-group__button","rp-code-wrap-button",t&&"rp-code-wrap-button--wrapped"),onClick:()=>n(),title:o("codeButtonGroupWrapButtonText"),"aria-label":o("codeButtonGroupWrapButtonText"),children:[(0,_.jsx)(X.Ge,{icon:X.hG,className:"rp-code-button-group__icon rp-code-button-group__icon--wrapped"}),(0,_.jsx)(X.Ge,{icon:X.QB,className:"rp-code-button-group__icon rp-code-button-group__icon--wrap"})]}),s&&(0,_.jsx)(ec,{codeBlockRef:r})]})})}let ef=e=>(0,_.jsx)(X.N_,{...e});function ep(e){return(0,_.jsx)("code",{...e})}let em=e=>(0,_.jsx)("hr",{...e});var eg=n(4499);let ev=e=>(0,_.jsx)("img",{...e,src:(0,eg.As)(e.src||"")}),ex=e=>(0,_.jsx)("ol",{...e}),ey=e=>(0,_.jsx)("ul",{...e}),e_=e=>(0,_.jsx)("li",{...e}),eD=e=>(0,_.jsx)("p",{...e}),ew=e=>(0,_.jsx)("blockquote",{...e}),eb=e=>(0,_.jsx)("strong",{...e});function ej(e){let{title:t,lang:n,wrapCode:r,lineNumbers:i,fold:s,height:o,c
13ontainerElementClassName:l,codeButtonGroupProps:a,...u}=e;return(0,_.jsx)(X.NG,{title:t,lang:n,wrapCode:r,lineNumbers:i,fold:s,height:o,containerElementClassName:l,codeButtonGroupProps:a,children:(0,_.jsx)("pre",{...u,"data-lang":n,"data-title":t})})}let eF=(0,D.forwardRef)((e,t)=>(0,_.jsx)("div",{className:"rp-table-scroll-container rp-scrollbar",children:(0,_.jsx)("table",{ref:t,...e})})),eC=e=>(0,_.jsx)("tr",{...e}),eA=e=>(0,_.jsx)("td",{...e}),ek=e=>(0,_.jsx)("th",{...e});var eE=n(3938);let eN=e=>{let{className:t,children:n,...r}=e,{frontmatter:{tag:i}}=(0,eE.s)(),{site:s}=(0,er.Z)(),o=s?.themeConfig?.llmsUI,l="object"==typeof o?o?.placement??"title":"title";return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)("h1",{className:(0,Y.A)("rp-toc-include",t),...r,children:[n," ",(0,_.jsx)(X.OT,{tag:i})]}),"title"===l&&(0,_.jsxs)(X.QZ,{children:[(0,_.jsx)(X.mS,{}),(0,_.jsx)(X.YU,{})]})]})},eB=e=>{let{className:t,...n}=e;return(0,_.jsx)("h2",{className:(0,Y.A)("rp-toc-include",t),...n})},eM=e=>{let{className:t,...n}=e;return(0,_.jsx)("h3",{className:(0,Y.A)("rp-toc-include",t),...n})},eS=e=>{let{className:t,...n}=e;return(0,_.jsx)("h4",{className:(0,Y.A)("rp-toc-include",t),...n})},eT=e=>{let{className:t,...n}=e;return(0,_.jsx)("h5",{className:(0,Y.A)("rp-toc-include",t),...n})},ez=e=>{let{className:t,...n}=e;return(0,_.jsx)("h6",{className:(0,Y.A)("rp-toc-include",t),...n})};function eL(){return{h1:eN,h2:eB,h3:eM,h4:eS,h5:eT,h6:ez,ul:ey,ol:ex,li:e_,table:eF,td:eA,th:ek,tr:eC,hr:em,p:eD,blockquote:ew,strong:eb,a:ef,code:ep,img:ev,pre:ej}}var e$=n(8923),eO=n(9989),eH=n(2083);function eP(){let{site:e}=(0,er.Z)(),{page:t}=(0,eO.e)(),{headingTitle:n,title:r}=t;return!1!==e.themeConfig.fallbackHeadingTitle&&!n&&(0,_.jsx)(X.x5,{level:1,title:r})}function eI(e){let{components:t,isOverviewPage:n=!1,afterDocContent:r,beforeDocContent:i}=e;(0,X.YW)();let s={...(0,X.GD)(),...t,$$$callout$$$:X.Pq};return(0,_.jsxs)(e$.x,{components:s,children:[i,!n&&(0,_.jsx)(eP,{}),(0,_.jsx)(eH.U,{}),r]})}function eR(){return(0,_.jsxs)("footer",{className:"rp-doc-footer",children:[(0,_.jsxs)("div",{className:"rp-doc-footer__edit",children:[(0,_.jsx)(X.Lp,{}),(0,_.jsx)(X.KS,{})]}),(0,_.jsx)("div",{className:"rp-doc-footer__divider"}),(0,_.jsx)(X.UC,{})]})}n(4752),n(5270),n(5279);var eW=n(7270);function eG(){let{page:e}=(0,eO.e)(),{pages:t}={pages:eW.Y.pages},{site:n}=(0,er.Z)();return{page:e,siteData:{...n,pages:t}}}function eU(e){let{isOutline:t}=e,n=function(){let{siteData:e,page:t}=eG(),n=e.themeConfig?.editLink,r=eo()("editLinkText");if(!n?.docRepoBaseUrl||!r)return null;let{docRepoBaseUrl:i}=n;i.endsWith("/")||(i+="/");let s=t._relativePath.replace(/\\/g,"/");return{text:r,link:`${i}${s}`}}();if(!n)return null;let{text:r,link:i}=n;return t?(0,_.jsxs)(X.N_,{href:i,className:"rp-outline__action-row rp-edit-link",children:[(0,_.jsx)(X.Ge,{icon:X.GI,width:"16",height:"16"}),(0,_.jsx)("span",{children:r})]}):(0,_.jsx)(X.N_,{href:i,className:"rp-edit-link",children:r})}let eV=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u
130F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g;function eZ(e){var t;let{level:n,title:r}=e,i=r&&("string"!=typeof(t=r.trim())?"":(t=t.toLowerCase()).replace(eV,"").replace(/ /g,"-")),s=(0,D.useMemo)(()=>{let e=(()=>{let{h1:e,h2:t,h3:n,h4:r,h5:i,h6:s}=(0,X.GD)();return{1:e,2:t,3:n,4:r,5:i,6:s}})();return e[n]||e[1]},[n]),o=(0,D.useMemo)(()=>(0,X.GD)().a,[]);return i&&(0,_.jsxs)(s,{id:i,children:[(0,_.jsx)("span",{...(0,X.nl)(r)}),(0,_.jsx)(o,{className:"rp-header-anchor",href:`#${i}
13`,"aria-hidden":!0,children:"#"})]})}function eq(e){let{className:t,...n}=e,r=(()=>{let{topArrived:e}=(()=>{let[e,t]=(0,D.useState)(0);return(0,D.useEffect)(()=>{let e=()=>{t(window.scrollY)};return e(),window.addEventListener("scroll",e,{capture:!1,passive:!0}),()=>{window.removeEventListener("scroll",e)}},[]),{topArrived:e<100}})();return(0,D.useLayoutEffect)(()=>{e?document.body.classList.remove("notTopArrived"):document.body.classList.add("notTopArrived")},[e]),(0,_.jsx)("style",{children:"body:not(.notTopArrived) .rp-nav {background: transparent !important; border-bottom: 1px solid transparent !important;}.rp-nav {background: color-mix(in srgb,var(--rp-c-bg) 60%,transparent);backdrop-filter: blur(25px);}"})})();return(0,_.jsxs)(_.Fragment,{children:[r,(0,_.jsx)("div",{className:(0,Y.A)("rp-home-background",t),...n})]})}function eK(e){let{feature:t}=e,{icon:n,title:r,details:i,link:s}=t,{innerProps:o,outerProps:l,outerRef:a,shineDom:u}=(()=>{let e,t,n,r,[i,s]=(0,D.useState)(null),[o,l]=(0,D.useState)(null),[a,u]=(0,D.useState)(!1),c=(0,D.useRef)(null),h=e=>{let{pageX:t,pageY:n}=e;s(t),l(n)},d=()=>{u(!0)},f=()=>{u(!1)},p=c.current;if(i&&o&&p&&a){let s=p.clientWidth||p.offsetWidth||p.scrollWidth,l=p.clientHeight||p.offsetHeight||p.scrollHeight,a=document.body.scrollTop||document.getElementsByTagName("html")[0].scrollTop,u=document.body.scrollLeft,c=p.getBoundingClientRect(),h=320/s*.05,d=.52-(i-c.left-u)/s,f=.52-(o-c.top-a)/l,m=o-c.top-a-l/2,g=i-c.left-u-s/2,v=(m-f)*(Math.min(c.width/c.height,1)*h),x=180*Math.atan2(m,g)/Math.PI-90;e=`translateX(${d-.1}px) translateY(${f-.1}px)`,t=`linear-gradient(${x<0?x+360:x}deg, rgba(255, 255, 255, ${(o-c.top-a)/l*.2}) 0%, rgba(255, 255, 255, 0) 50%)`,n=`rotateX(${v}deg) rotateY(${(d-g)*h}deg)`,r=`perspective(${2*s}px)`}else e="",t="",n="",r="";return{outerProps:{style:{transform:r,transformStyle:"preserve-3d"},onMouseEnter:d,onMouseLeave:f,onMouseMove:h,onTouchMove:e=>{e.preventDefault();let{pageX:t,pageY:n}=e.touches[0];h({pageX:t,pageY:n})},onTouchStart:d,onTouchEnd:f},outerRef:c,innerProps:{style:{transform:n}},shineDom:(0,_.jsx)("div",{className:"rp-home-feature__item__shine",style:{position:"absolute",userSelect:"none",pointerEvents:"none",top:"0",left:"0",right:"0",bottom:"0",borderRadius:"20px",zIndex:"8",...e?{transform:e}:{},...t?{background:t}:{}}})}})(),c=(0,X.X6)();return(0,_.jsx)("div",{...l,className:`rp-home-feature__item ${(e=>{let{span:t}=e;switch(t){case 2:return"rp-home-feature__item--span-2";case 3:return"rp-home-feature__item--span-3";case 4:case void 0:return"rp-home-feature__item--span-4";case 6:return"rp-home-feature__item--span-6";default:return""}})(t)}`,ref:a,children:(0,_.jsx)("div",{className:"rp-home-feature__item-wrapper",...o,children:(0,_.jsxs)("article",{className:`rp-home-feature__card ${s?"rp-home-feature__card--clickable":""}`,onClick:()=>{s&&c(s)},children:[(0,_.jsxs)("div",{className:"rp-home-feature__title-wrapper",children:[n?(0,_.jsx)("div",{className:"rp-home-feature__icon",children:(0,_.jsx)(X.Ge,{icon:n})}):null,(0,_.jsx)("h2",{className:"rp-home-feature__title",children:r})]}),(0,_.jsx)("p",{className:"rp-home-feature__detail",...(0,X.i7)(i)}),u]},r)})},r)}function eY(e){let{features:t}=e,{frontmatter:n}=(0,eE.s)(),r=t??n?.features;return(0,_.jsx)("div",{className:"rp-home-feature",children:r?.map(e=>(0,_.jsx)(eK,{feature:e},e.title))})}function eJ(){let{site:e}=(0,er.Z)(),{message:t}=e.themeConfig.footer||{};return t?(0,_.jsx)("footer",{className:"rp-home-footer",children:(0,_.jsx)("div",{className:"rp-home-footer__container",children:(0,_.jsx)("div",{className:"rp-home-footer__message",...(0,X.i7)(t)})})}):null}n(7238),n(5996),n(7879),n(1402);let eX={badge:"",name:"",text:"",tagline:"",actions:[],image:void 0};function eQ(e){let{beforeHeroActions:t,afterHeroActions:n,image:r}=e,{frontmatter:i}=(0,eE.s)(),s=i?.hero||eX,o=void 0!==s.image||void 0!==r,l=s.text?s.text.toString().split(/\n/g).filter(e=>""!==e):[],a="string"==typeof s.image?.src?{light:s.image.src,dark:s.image.src}:s.image?.src||{light:"",dark:""};
13return(0,_.jsxs)("div",{className:(0,Y.A)("rp-home-hero",{"rp-home-hero--no-image":!o}),children:[(0,_.jsxs)("div",{className:"rp-home-hero__container",children:[s.badge&&("string"==typeof s.badge?(0,_.jsx)("div",{className:"rp-home-hero__badge",children:s.badge}):s.badge.link?(0,_.jsx)(X.N_,{href:s.badge.link,className:"rp-home-hero__badge",children:s.badge.text}):(0,_.jsx)("div",{className:"rp-home-hero__badge",children:s.badge.text})),(0,_.jsxs)("div",{className:"rp-home-hero__content",children:[(0,_.jsx)("div",{className:"rp-home-hero__title",children:(0,_.jsx)("span",{className:"rp-home-hero__title-brand",...(0,X.i7)(s.name)})}),0!==l.length&&l.map(e=>(0,_.jsx)("div",{className:"rp-home-hero__subtitle",...(0,X.i7)(e)},e))]}),(0,_.jsx)("p",{className:"rp-home-hero__tagline",...(0,X.i7)(s.tagline)}),(0,_.jsxs)(_.Fragment,{children:[t,(0,_.jsx)("div",{className:"rp-home-hero__actions",children:s.actions?.map(e=>(0,_.jsx)(X.$n,{type:"a",href:e.link,theme:e.theme,className:"rp-home-hero__action",...(0,X.i7)(e.text)},e.link))}),n]})]}),r?(0,_.jsx)("div",{className:"rp-home-hero__image",children:r}):s.image?(0,_.jsxs)("div",{className:"rp-home-hero__image",children:[(0,_.jsx)("img",{src:(0,eg.As)(a.light),alt:s.image?.alt,srcSet:e0(s.image?.srcset),sizes:e0(s.image?.sizes),width:375,height:375,className:"rp-home-hero__image-img rp-home-hero__image-img--light"}),(0,_.jsx)("img",{src:(0,eg.As)(a.dark),alt:s.image?.alt,srcSet:e0(s.image?.srcset),sizes:e0(s.image?.sizes),width:375,height:375,className:"rp-home-hero__image-img rp-home-hero__image-img--dark"})]}):null]})}function e0(e){return(Array.isArray(e)?e:[e]).filter(Boolean).join(", ")||void 0}var e1=n(5647),e2=n(4477);function e3(e){let{item:t,activeMatcher:n,depth:r=0}=e,{pathname:i}=(0,e1.zy)();if("items"in t&&t.items&&t.items.length>0){let e="link"in t&&t.link;return(0,_.jsxs)(_.Fragment,{children:[e&&(0,_.jsx)("li",{className:"rp-hover-group__item",style:{paddingLeft:`${8+12*r}px`},"data-depth":r,children:(0,_.jsxs)(X.N_,{href:t.link,download:"download"in t?t.download:void 0,"aria-label":t.text,className:"rp-hover-group__item__link",lang:t.lang,hrefLang:t.lang,rel:t.rel,children:[t.icon&&(0,_.jsx)(X.Ge,{icon:t.icon,className:"rp-hover-group__item__icon"}),t.text,"tag"in t&&t.tag&&(0,_.jsx)(X.OT,{tag:t.tag})]})},t.text),t.items.map(e=>(0,_.jsx)(e3,{item:e,activeMatcher:n,depth:r+1},e.text))]})}if("link"in t){let{text:e,link:s,lang:o,rel:l}=t,a="download"in t?t.download:void 0,u=n?n(t):(0,e2.sP)(t,i);return(0,_.jsx)("li",{className:(0,Y.A)("rp-hover-group__item",{"rp-hover-group__item--active":u}),style:{paddingLeft:`${8+12*r}px`},"data-depth":r,children:s?(0,_.jsxs)(X.N_,{href:s,download:a,"aria-label":e,className:"rp-hover-group__item__link",lang:o,hrefLang:o,rel:l,children:[t.icon&&(0,_.jsx)(X.Ge,{icon:t.icon,className:"rp-hover-group__item__icon"}),e,"tag"in t&&t.tag&&(0,_.jsx)(X.OT,{tag:t.tag})]}):(0,_.jsxs)("div",{className:"rp-hover-group__item__link",lang:o,children:[t.icon&&(0,_.jsx)(X.Ge,{icon:t.icon,className:"rp-hover-group__item__icon"}),e,"tag"in t&&t.tag&&(0,_.jsx)(X.OT,{tag:t.tag})]})},e+s)}return(0,_.jsx)("li",{className:"rp-hover-group__item",style:{paddingLeft:`${8+12*r}px`},"data-depth":r,children:(0,_.jsxs)("div",{className:"rp-hover-group__item__link",children:[t.icon&&(0,_.jsx)(X.Ge,{icon:t.icon,className:"rp-hover-group__item__icon"}),t.text,"tag"in t&&t.tag&&(0,_.jsx)(X.OT,{tag:t.tag})]})},t.text)}function e4(e){let{items:t,customChildren:n,isOpen:r,position:i="center",activeMatcher:s}=e;return(0,_.jsx)("ul",{className:(0,Y.A)("rp-hover-group",{"rp-hover-group--hidden":!r,"rp-hover-group--left":"left"===i,"rp-hover-group--center":"center"===i,"rp-hover-group--right":"right"===i}),children:n??t?.map(e=>(0,_.jsx)(e3,{item:e,activeMatcher:s},e.text))})}function e5(e){let{items:t,activeMatcher:n,customChildren:r,position:i}=e,s=(0,D.useRef)(null),[o,l]=(0,D.useState)(!1),a=(0,D.useCallback)(()=>{s.current&&(clearTimeout(s.current),s.current=null)},[]),u=(0,D.useCallback)(()=>{l(!0),a()},[l]),c=(0,D.useCallback)(()=>{s.current=window.setTimeout(()=>{l(!1)},150)},[l]);return{hoverGroup:(0,D.useMemo)(()=>(0,_.jsx)(e4,{items:t,customChildren:r,isOpen:o,activeMatcher:n,position:i}),[t,r,o,n]),handleMouseEnter:u,handleMouseLeave:c}}function e6(){let{page:{lastUpdatedTime:e,lastUpdatedAuthor:t}}=(0,eO.e)(),{site:n}=(0,er.Z)(),{themeConfig:r}=n,i=r.lastUpdated,s=eo();return i&&e?(0,_.jsx)("div",{className:"rp-last-updated",children:(0,_.jsxs)("p",{children:[s("lastUpdatedText"),": ",(0,_.jsx)("span",{children:e}),t&&(0,_.jsxs)(_.Fragment,{children:[" ",s("lastUpdatedAuthorText")," ",(0,_.jsx)("span",{children:t})]})]})}):null}n(4800),n(9480);var e7=n(5895),e8=n(4564),e9=n.n(e8);function te(e){var t;let n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"u"<typeof window?void 0:window.location.href,i=(t=e,(0,e2.My)(t)?"external":t.startsWith("#")?"hashOnly":t.startsWith("/")?"internal":"relative");if("external"===i||"hashOnly"===i)return{linkType:i,withBaseHref:e,removeBaseHref:e,routePath:(0,e2.TG)(e)};if("relative"===i&&r){let t=new URL(e,r);n=`${t.pathname}${t.search}${t.hash}`}else n=(0,eg.cV)((0,eg.Gk)(e));let s=(0,eg.EJ)(n);return{withBaseHref:n,removeBaseHref:s,routePath:(0,e2.TG)(s),linkType:i}}n(7771);var tt=n(377);function tn(){let{startTransition:e=D.startTransition}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{startTransition:D.startTransition},{pathname:t}=(0,e1.zy)(),n=(0,e1.Zp)(),{site:r}=(0,er.Z)(),i=r?.route?.useTransitions;return(0,D.useCallback)(async r=>{let{linkType:s,removeBaseHref:o,routePath:l,withBaseHref:a}=te(r);if("external"===s||"hashOnly"===s)return void window.location.assign(r);
13let u=!!(i&&e),c=async()=>{if(!(0,e7.$m)(o,t)){if(!(0,e7.c5)(l))return void window.location.assign(a);{let e=setTimeout(()=>{e9().start()},200),t=await (0,tt.So)(l);(0,tt.vY)(l,t),clearTimeout(e),e9().done()}}u?e(()=>n(o,{replace:!1})):n(o,{replace:!1})};u?e(c):c()},[i,t,n,e])}e9().configure({showSpinner:!1}),e9().configure({showSpinner:!1});let tr=(0,D.forwardRef)((e,t)=>{let{href:n="/",children:r,className:i="",onClick:s,onMouseEnter:o,startTransition:l,...a}=e,{linkType:u,removeBaseHref:c,routePath:h,withBaseHref:d}=te(n),f=tn({startTransition:l});return"external"===u?(0,_.jsx)("a",{ref:t,href:n,target:"_blank",rel:"noopener noreferrer",className:(0,Y.A)(i,"rp-link"),onClick:s,onMouseEnter:o,...a,children:r}):"hashOnly"===u?(0,_.jsx)("a",{ref:t,href:n,className:(0,Y.A)(i,"rp-link"),onClick:s,onMouseEnter:o,...a,children:r}):"relative"===u?(0,_.jsx)("a",{ref:t,href:n,className:(0,Y.A)(i,"rp-link"),onMouseEnter:e=>{o?.(e),(0,e7.G$)(h)},onTouchStart:()=>{(0,e7.G$)(h)},onClick:e=>{s?.(e),0!==e.button||e.currentTarget.target&&"_self"!==e.currentTarget.target||e.metaKey||e.shiftKey||e.altKey||e.ctrlKey||(e.preventDefault(),f(n))},...a,children:r}):(0,_.jsx)("a",{ref:t,href:d,className:(0,Y.A)(i,"rp-link"),onMouseEnter:e=>{o?.(e),(0,e7.G$)(h)},onTouchStart:()=>{(0,e7.G$)(h)},onClick:e=>{s?.(e),0!==e.button||e.currentTarget.target&&"_self"!==e.currentTarget.target||e.metaKey||e.shiftKey||e.altKey||e.ctrlKey||(e.preventDefault(),f(c))},...a,children:r})});function ti(e){return(0,_.jsx)("div",{...e,className:"rp-not-doc rp-llms-container"})}tr.displayName="Link",n(942),n(1911),n(9052);let ts=new Map;async function to(e){let t=ts.get(e);if(void 0!==t)return t;let n=await fetch(e).then(e=>e.text());return ts.set(e,n),n}function tl(){let{page:e}=eG();return(0,D.useMemo)(()=>({pathname:(0,eg.qp)(e.routePath)}),[e.routePath])}function ta(e){let{onClick:t,...n}=e,r=eo(),{pathname:i}=tl(),[s,o]=(0,D.useState)(!1),[l,a]=(0,D.useState)(!1),u=(0,D.useRef)(null),c=(0,D.useCallback)(async()=>{o(!0);try{let e=await to(i);if(!await (0,X.lW)(e))return;a(!0),u.current&&(clearTimeout(u.current),u.current=null),u.current=window.setTimeout(()=>{a(!1),u.current=null},500)}finally{o(!1)}},[i]);return i?(0,_.jsxs)("button",{...n,disabled:s,className:["rp-not-doc","rp-llms-button","rp-llms-copy-button",s?"rp-llms-copy-button--loading":"",l?"rp-llms-copy-button--success":""].filter(Boolean).join(" "),onClick:t??c,children:[(0,_.jsxs)("div",{className:"rp-llms-copy-button__icon-wrapper",children:[(0,_.jsx)(X.Ge,{icon:X.lv,className:"rp-llms-copy-button__icon-success"}),(0,_.jsx)(X.Ge,{icon:X.bz,className:"rp-llms-copy-button__icon-copy"})]}),(0,_.jsx)("span",{children:r("copyMarkdownText")})]}):(0,_.jsx)(_.Fragment,{})}n(1164);let tu=["markdownLink","chatgpt","claude"];function tc(e){let{options:t}=e,{site:n}=(0,er.Z)(),r=n?.themeConfig?.llmsUI,i="object"==typeof r?r?.viewOptions:t,s=!1===i?[]:i??tu,[o,l]=(0,D.useState)(!1),a=(0,D.useRef)(null);(0,D.useEffect)(()=>{let e=e=>{a.current&&e.target&&!a.current.contains(e.target)&&l(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]);let{pathname:u}=tl(),c=eo(),h=(0,D.useMemo)(()=>{let e="u">typeof window?new URL(u,window.location.origin).toString():"loading",t=`Read ${e}, I want to ask questions about it.`;return{markdownLink:{title:c("copyMarkdownLinkText"),icon:(0,_.jsx)(X.Ge,{icon:X.AX}),onClick:()=>{(0,X.lW)(e)}},chatgpt:{title:c("openInText",{name:"ChatGPT"}),href:`https://chatgpt.com/?${new URLSearchParams({hints:"search",q:t})}`,icon:(0,_.jsx)(X.Ge,{icon:X.I4})},claude:{title:c("openInText",{name:"Claude"}),href:`https://claude.ai/new?${new URLSearchParams({q:t})}`,icon:(0,_.jsx)(X.Ge,{icon:X.Cq})}}},[u,c]),d=(0,D.useMemo)(()=>s.map(e=>"markdownLink"===e?h.markdownLink:"chatgpt"===e?h.chatgpt:"claude"===e?h.claude:"object"==typeof e&&"title"in e&&"string"==typeof e.title&&("href"in e||"onClick"in e)?e:null).filter(e=>null!==e),[h,s]);return 0===d.length?null:(0,_.jsx)(_.Fragment,{children:(0,_.jsxs)("button",{ref:a,onClick:()=>{l(!o)},className:`rp-llms-button rp-llms-view-options__trigger ${o?"rp-llms-view-options__trigger--active":""}`,children:[(0,_.jsx)(X.Ge,{icon:X.Y7,className:`rp-llms-view-options__arrow ${o?"rp-llms-view-options__arrow--rotated":""}`}),o&&(0,_.jsx)("div",{className:"rp-llms-view-options__menu",children:d.map(e=>e.href?(0,_.jsxs)("a",{className:"rp-llms-view-options__menu-item",href:e.href,target:"_blank",rel:"noopener noreferrer",children:[(0,_.jsx)("span",{className:"rp-llms-view-options__item-icon",children:e.icon}),(0,_.jsx)("span",{children:e.title}),(0,_.jsx)("span",{className:"rp-llms-view-options__external-icon",children:(0,_.jsx)(X.Ge,{icon:X.HW})})]},e.title):(0,_.jsxs)("div",{className:"rp-llms-view-options__menu-item",onClick:e.onClick,children:[(0,_.jsx)("span",{className:"rp-llms-view-options__item-icon",children:e.icon}),(0,_.jsx)("span",{children:e.title})]},e.title))})]})})}function th(){let e=eo(),{pathname:t}=tl(),[n,r]=(0,D.useState)(!1),[i,s]=(0,D.useState)(!1),o=(0,D.useRef)(null),l=(0,D.useCallback)(async()=>
13{if(t){r(!0);try{let e=await to(t);if(!await (0,X.lW)(e))return;s(!0),o.current&&(clearTimeout(o.current),o.current=null),o.current=window.setTimeout(()=>{s(!1),o.current=null},1500)}finally{r(!1)}}},[t]);return t?(0,_.jsxs)("button",{className:"rp-outline__action-row",onClick:l,disabled:n,children:[(0,_.jsx)(X.Ge,{icon:i?X.lv:X.bz}),(0,_.jsx)("span",{children:e("copyMarkdownText")})]}):null}n(2203);let td=["markdownLink","chatgpt","claude"];function tf(){let e=eo(),{pathname:t}=tl(),{site:n}=(0,er.Z)(),r=n?.themeConfig?.llmsUI,[i,s]=(0,D.useState)(!1),o=(0,D.useRef)(null),l="object"==typeof r?!1===r.viewOptions?[]:r.viewOptions??td:td;(0,D.useEffect)(()=>{let e=e=>{o.current&&e.target&&!o.current.contains(e.target)&&s(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]);let a=(0,D.useMemo)(()=>"u">typeof window?new URL(t,window.location.origin).toString():"",[t]),u=`Read ${a}, I want to ask questions about it.`,c=(0,D.useMemo)(()=>({markdownLink:{title:e("copyMarkdownLinkText"),icon:(0,_.jsx)(X.Ge,{icon:X.AX}),onClick:()=>{(0,X.lW)(a)}},chatgpt:{title:e("openInText",{name:"ChatGPT"}),href:`https://chatgpt.com/?${new URLSearchParams({hints:"search",q:u})}`,icon:(0,_.jsx)(X.Ge,{icon:X.I4})},claude:{title:e("openInText",{name:"Claude"}),href:`https://claude.ai/new?${new URLSearchParams({q:u})}`,icon:(0,_.jsx)(X.Ge,{icon:X.Cq})}}),[a,e,u]),h=(0,D.useMemo)(()=>l.map(e=>c[e]??null).filter(e=>null!==e),[l,c]);return t&&0!==h.length?(0,_.jsxs)("div",{ref:o,className:"rp-outline__open-in-wrapper",children:[(0,_.jsxs)("button",{className:"rp-outline__action-row",onClick:()=>s(!i),children:[(0,_.jsx)(X.Ge,{icon:X.VY}),(0,_.jsx)("span",{children:e("openInText",{name:"chat"})})]}),i&&(0,_.jsx)("div",{className:"rp-llms-view-options__menu",children:h.map(e=>e.href?(0,_.jsxs)("a",{className:"rp-llms-view-options__menu-item",href:e.href,target:"_blank",rel:"noopener noreferrer",onClick:()=>s(!1),children:[(0,_.jsx)("span",{className:"rp-llms-view-options__item-icon",children:e.icon}),(0,_.jsx)("span",{children:e.title}),(0,_.jsx)("span",{className:"rp-llms-view-options__external-icon",children:(0,_.jsx)(X.Ge,{icon:X.HW})})]},e.title):(0,_.jsxs)("button",{type:"button",className:"rp-llms-view-options__menu-item",onClick:()=>{e.onClick?.(),s(!1)},children:[(0,_.jsx)("span",{className:"rp-llms-view-options__item-icon",children:e.icon}),(0,_.jsx)("span",{children:e.title})]},e.title))})]}):null}var tp=n(8975),tm=n(4120);function tg(){let{nav:e}=(0,tp.l)(),t=(0,tm.M)();return Array.isArray(e)?e:[...e[t.length>0?t:"default"]]}function tv(){let{page:e}=(0,eO.e)(),{site:t}=(0,er.Z)(),n=(0,tm.M)(),{pathname:r,search:i}=(0,e1.zy)(),s=t.lang||"",o=t.multiVersion.default||"",l=Object.values(t.locales||t.themeConfig.locales||{}),a=t.route?.cleanUrls||!1,u=l.length>1,{lang:c,pageType:h}=e;return u?{items:l.map(e=>{var t,l,u,d;let f,p,m,g,v,x=e.lang===c;return{text:e?.label,link:x?"":(t=r+i,l={current:c,target:e.lang,default:s},u={current:n,default:o},d="404"===h,(f=(0,eg.EJ)(t))&&!d||(f="/"),f=(0,eg.cc)(f),p="",m="",g=f.split("/").filter(Boolean),u.current&&u.current!==u.default&&(p=g.shift()||""),l.target!==l.default?(m=l.target,l.current!==l.default&&g.shift()):g.shift(),v=g.join("/")||"",(p||m)&&!v&&(v=a?"index":"index.html"),(0,e2.tb)([p,m,v].filter(
13Boolean).join("/"))),lang:e.lang,rel:"alternate"}}),activeValue:l.find(e=>c===e.lang)?.label}:{items:[]}}function tx(){let{page:e}=(0,eO.e)(),{site:t}=(0,er.Z)(),n=(0,tm.M)(),{pathname:r}=(0,e1.zy)(),i=t.route?.cleanUrls||!1,s=t.multiVersion.default||"";return{items:(t.multiVersion.versions||[]).map(t=>{var o,l;let a,u,c,h;return{text:t,link:(o={current:n,target:t,default:s},l="404"===e.pageType,(a=(0,eg.EJ)(r))&&!l||(a=(0,eg.cc)("/")),u="",c=a.split("/").filter(Boolean),o.target!==o.default?(u=o.target,o.current!==o.default&&c.shift()):c.shift(),h=c.join("/")||"",u&&!h&&(h=i?"index":"index.html"),(0,e2.tb)([u,h].filter(Boolean).join("/")))}}),text:n,activeValue:n}}n(8166),n(6316);let ty=e=>(0,_.jsx)(X.Ge,{icon:X.RG,...e});function t_(e){let{menuItem:t,children:n}=e;return(0,_.jsx)(_.Fragment,{children:"link"in t&&"string"==typeof t.link?(0,_.jsxs)(X.N_,{href:t.link,download:t.download,className:"rp-nav-menu__item__container",hrefLang:t.lang,lang:t.lang,rel:t.rel,children:[t.icon&&(0,_.jsx)(X.Ge,{icon:t.icon,className:"rp-nav-menu__item__leading-icon"}),t.text,t.tag&&(0,_.jsx)(X.OT,{tag:t.tag}),n]}):(0,_.jsxs)("div",{className:"rp-nav-menu__item__container",children:[t.icon&&(0,_.jsx)(X.Ge,{icon:t.icon,className:"rp-nav-menu__item__leading-icon"}),t.text,t.tag&&(0,_.jsx)(X.OT,{tag:t.tag}),n]})})}function tD(e){let{menuItem:t,activeMatcher:n}=e,{handleMouseEnter:r,handleMouseLeave:i,hoverGroup:s}=(0,X.HF)({items:t.items,activeMatcher:n}),o=t.items.length>0;return(0,_.jsxs)("li",{className:"rp-nav-menu__item",onMouseEnter:r,onMouseLeave:i,onClick:r,children:[(0,_.jsx)(t_,{menuItem:t,children:o&&(0,_.jsx)(ty,{className:"rp-nav-menu__item__icon"})}),s]})}function tw(e){let{menuItem:t}=e,{pathname:n}=(0,e1.zy)(),r=(0,D.useMemo)(()=>(0,e2.sP)(t,n),[t,n]);return(0,_.jsx)("li",{className:(0,Y.A)("rp-nav-menu__item",r?"rp-nav-menu__item--active":""),children:(0,_.jsx)(t_,{menuItem:t})})}function tb(e){let{menuItem:t}=e;return"items"in t&&Array.isArray(t.items)&&t.items.length>0?(0,_.jsx)(tD,{menuItem:t}):"link"in t&&t.link.length>0?(0,_.jsx)(tw,{menuItem:t}):(0,_.jsx)("li",{className:"rp-nav-menu__item",children:(0,_.jsx)(t_,{menuItem:t})})}function tj(){return(0,_.jsx)("div",{className:"rp-nav-menu__divider"})}function tF(){let{items:e,activeValue:t}=tv();return e.length>1?(0,_.jsx)(tD,{menuItem:{text:t,items:e},activeMatcher:e=>e.text===t}):null}function tC(){let{activeValue:e,items:t}=tx();return t.length>1?(0,_.jsx)(tD,{menuItem:{text:e,items:t},activeMatcher:t=>t.text===e}):null}function tA(e){let{menuItems:t,position:n}=e,r=(0,D.useMemo)(()=>t.filter(e=>(e.position??"right")===n),[t]);return 0===r.length?null:(0,_.jsx)("ul",{className:(0,Y.A)("rp-nav-menu",`rp-nav-menu--${n}`),children:r.map((e,t)=>(0,_.jsx)(tb,{menuItem:e},t))})}function tk(e){let{beforeNavTitle:t,afterNavTitle:n,beforeNavMenu:r,afterNavMenu:i,navTitle:s}=e,o=tg(),{site:l}=(0,er.Z)(),a=(0,e2.Nv)(l.themeConfig.darkMode);return(0,_.jsxs)("header",{className:"rp-nav",children:[(0,_.jsxs)("div",{className:"rp-nav__left",children:[t,s??(0,_.jsx)(X.ue,{}),(0,_.jsx)(tA,{menuItems:o,position:"left"}),n]}),(0,_.jsxs)("div",{className:"rp-nav__right",children:[r,(0,_.jsx)(X.vj,{}),(0,_.jsx)(tA,{menuItems:o,position:"right"}),(0,_.jsxs)("div",{className:"rp-nav__others",children:[(0,_.jsx)(tj,{}),(0,_.jsx)(tF,{}),(0,_.jsx)(tC,{}),a&&(0,_.jsx)(X.bS,{}),(0,_.jsx)(X.RP,{})]}),(0,_.jsx)(X.fx,{}),i]})]})}var tE=n(8859),tN=!1;if("u">typeof window){var tB={get passive(){tN=!0}};window.addEventListener("testPassive",null,tB),window.removeEventListener("testPassive",null,tB)}var tM="u">typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),tS=[],tT=!1,tz=-1,tL=void 0,t$=void 0,tO=void 0,tH=function(e){return tS.some(function(t){return!!(t.options.allowTouchMove&&t.options.allowTouchMove(e))})},tP=function(e){var t=e||window.event;return!!tH(t.target)||t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1)},tI=function(e){if(void 0===tO){var t=!!e&&!0===e.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;if(t&&n>0){var r=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right"),10);tO=document.body.style.paddingRight,document.body.style.paddingRight=r+n+"px"}}void 0===tL&&(tL=document.body.style.overflow,document.body.style.overflow="hidden")},tR=function(){void 0!==tO&&(document.body.style.paddingRight=tO,tO=void 0),void 0!==tL&&(document.body.style.overflow=tL,tL=void 0)},tW=function(){if(void 0!==t$){var e=-parseInt(document.body.style.top,10),t=-parseInt(document.body.style.left,10);document.body.style.position=t$.position,document.body.style.top=t$.top,document.body.style.left=t$.left,window.scrollTo(t,e),t$=void 0}},tG=function(e,t){var n=e.targetTouches[0].clientY-tz;return!tH(e.target)&&(t&&0===t.scrollTop&&n>0?tP(e):t&&t.scrollHeight-t.scrollTop<=t.clientHeight&&n<0?tP(e):(e.stopPropagation(),!0))},tU=function(e,t){e?!tS.some(function(t){return t.targetElement===e})&&(tS=[].concat(function(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}(tS),[{targetElement:e,options:t||{}}]),tM?window.requestAnimationFrame(function(){if(void 0===t$){t$={position:document.body.style.position,top:document.body.style.top,left
13:document.body.style.left};var e=window,t=e.scrollY,n=e.scrollX,r=e.innerHeight;document.body.style.position="fixed",document.body.style.top=-t,document.body.style.left=-n,setTimeout(function(){return window.requestAnimationFrame(function(){var e=r-window.innerHeight;e&&t>=r&&(document.body.style.top=-(t+e))})},300)}}):tI(t),tM&&(e.ontouchstart=function(e){1===e.targetTouches.length&&(tz=e.targetTouches[0].clientY)},e.ontouchmove=function(t){1===t.targetTouches.length&&tG(t,e)},tT||(document.addEventListener("touchmove",tP,tN?{passive:!1}:void 0),tT=!0))):console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.")},tV=function(){tM&&(tS.forEach(function(e){e.targetElement.ontouchstart=null,e.targetElement.ontouchmove=null}),tT&&(document.removeEventListener("touchmove",tP,tN?{passive:!1}:void 0),tT=!1),tz=-1),tM?tW():tR(),tS=[]};function tZ(e){let{children:t}=e,[n,r]=(0,D.useState)(!1);return((0,D.useEffect)(()=>{r(!0)},[]),n)?(0,_.jsx)(_.Fragment,{children:t}):null}function tq(){let{site:e}=(0,er.Z)(),t=(0,e2.Nv)(e.themeConfig.darkMode),n=eo();return(0,_.jsx)(_.Fragment,{children:t&&(0,_.jsxs)("div",{className:"rp-nav-screen-appearance",children:[(0,_.jsx)("div",{className:"rp-nav-screen-appearance__left",children:n("themeText")}),(0,_.jsx)("div",{className:"rp-nav-screen-appearance__right",children:(0,_.jsx)(tZ,{children:(0,_.jsx)(X.bS,{})})})]})})}n(906),n(619),n(1557),n(877);let tK=e=>(0,_.jsx)(X.Ge,{icon:X.RG,...e});function tY(e){let{menuItem:t}=e;return(0,_.jsxs)(_.Fragment,{children:[t.icon&&(0,_.jsx)(X.Ge,{icon:t.icon,className:"rp-nav-screen-menu-item__icon"}),t.text,t.tag&&(0,_.jsx)(X.OT,{tag:t.tag})]})}function tJ(e){let{left:t,right:n,isOpen:r,isActive:i,onClick:s,href:o,download:l}=e;return o?(0,_.jsxs)(X.N_,{href:o,className:(0,Y.A)("rp-nav-screen-menu-item",r&&"rp-nav-screen-menu-item--open",i&&"rp-nav-screen-menu-item--active"),onClick:s,download:l,children:[(0,_.jsx)("div",{className:"rp-nav-screen-menu-item__left",children:t}),(0,_.jsx)("div",{className:"rp-nav-screen-menu-item__right",children:n})]}):(0,_.jsxs)("div",{className:(0,Y.A)("rp-nav-screen-menu-item",r&&"rp-nav-screen-menu-item--open",i&&"rp-nav-screen-menu-item--active"),onClick:s,children:[(0,_.jsx)("div",{className:"rp-nav-screen-menu-item__left",children:t}),(0,_.jsx)("div",{className:"rp-nav-screen-menu-item__right",children:n})]})}function tX(e){let{menuItem:t}=e,{pathname:n}=(0,e1.zy)(),r=(0,D.useMemo)(()=>(0,e2.sP)(t,n),[t,n]);return(0,_.jsx)(tJ,{left:(0,_.jsx)(tY,{menuItem:t}),right:null,href:t.link,download:t.download,isActive:r})}function tQ(e){let{menuItem:t}=e,[n,r]=(0,D.useState)(!1);return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(tJ,{left:(0,_.jsx)(tY,{menuItem:t}),right:(0,_.jsx)(tK,{className:"rp-nav-screen-menu-item__arrow"}),isOpen:n,onClick:()=>r(!n),href:"link"in t?t.link:void 0}),(0,_.jsx)("div",{className:"rp-nav-screen-menu-item__group",style:{display:"grid",gridTemplateRows:n?"1fr":"0fr",transition:"grid-template-rows .2s ease-out",width:"100%"},children:(0,_.jsx)("div",{className:"rp-nav-screen-menu-item__group-inner",children:t.items.map(e=>(0,_.jsx)(t0,{menuItem:e},e.text))})})]})}function t0(e){let{menuItem:t}=e;return"items"in t&&Array.isArray(t.items)&&t.items.length>0?(0,_.jsx)(tQ,{menuItem:t}):"link"in t&&"string"==typeof t.link?(0,_.jsx)(tX,{menuItem:t}):(0,_.jsx)(tJ,{left:(0,_.jsx)(tY,{menuItem:t}),right:null})}function t1(){let{items:e,activeValue:t}=tv(),[n,r]=(0,D.useState)(!1),i=eo();return e.length>1?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)("div",{className:"rp-nav-screen-langs",onClick:()=>r(!n),children:[(0,_.jsx)("div",{className:"rp-nav-screen-langs__left",children:i("languagesText")}),(0,_.jsxs)("div",{className:"rp-nav-screen-langs__right",children:[t,(0,_.jsx)(tK,{className:`rp-nav-screen-langs__icon ${n?"rp-nav-screen-langs__icon--open":""}`})]})]}),(0,_.jsx)("div",{className:"rp-nav-screen-langs-group",style:{display:"grid",gridTemplateRows:n?"1fr":"0fr",transition:"grid-template-rows 0.2s ease-out"},children:(0,_.jsx)("div",{className:"rp-nav-screen-langs-group__inner",children:e.map(e=>{let n=e.text===t,r=(0,Y.A)("rp-nav-screen-langs-group__item",n&&"rp-nav-screen-langs-group__item--active");return n?(0,_.jsx)("span",{className:r,"aria-current":"page","aria-disabled":!0,children:e.text},e.text):(0,_.jsx)(X.N_,{href:e.link,className:r,hrefLang:e.lang,lang:e.lang,rel:"alternate",children:e.text},e.text)})})})]}):null}function t2(e){let{menuItems:t}=e;return(0,_.jsx)(_.Fragment,{children:t.map((e,t)=>(0,_.jsx)(t0,{menuItem:e},t))})}function t3(){let{items:e,activeValue:t}=tx(),[n,r]=(0,D.useState)(!1),i=eo();return e.length>1?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)("div",{className:"rp-nav-screen-versions",onClick:()=>r(!n),children:[(0,_.jsx)("div",{className:"rp-nav-screen-versions__left",children:i("versionsText")}),(0,_.jsxs)("div",{className:"rp-nav-screen-versions__right",children:[t,(0,_.jsx)(tK,{className:(0,Y.A)("rp-nav-screen-versions__icon",{"rp-nav-screen-versions__icon--open":n})})]})]}),(0,_.jsx)("div",{className:(0,Y.A)("rp-nav-screen-versions-group",n&&"rp-nav-screen-versions-group--open"),children:e.map(e=>{let n=e.text===t,r=(0,Y.A)("rp-nav-screen-versions-group__item",n&&"rp-nav-screen-versions-group__item--active");return n?(0,_.jsx)("span",{className:r,"aria-current":"page","aria-disabled":!0,children:e.text},e.text):(0,_.jsx)(X.N_,{href:e.link,className:r,children:e.text},e.text)})})]}):null}function t4(){return(0,_.jsx)("div",{className:"rp-nav-screen-divider"})}function t5(e){let{isScreenOpen:t,toggleScreen:n}=e,r=(0,D.useRef)(null),i=tg();return(0,D.useEffect)(()=>
13{if(r.current&&t){tU(r.current,{reserveScrollBarGap:!0});let e=document.createElement("style");e.id="rp-nav-screen-body-lock-style",e.innerHTML=":root { --rp-home-background-bg: transparent; }",document.head.appendChild(e)}return()=>{tV();let e=document.getElementById("rp-nav-screen-body-lock-style");e&&document.head.removeChild(e)}},[t]),(0,_.jsx)("div",{className:(0,Y.A)("rp-nav-screen",{"rp-nav-screen--open":t}),ref:r,onClick:n,children:(0,_.jsxs)("div",{className:"rp-nav-screen__container",onClick:e=>e.stopPropagation(),children:[(0,_.jsx)(t2,{menuItems:i}),(0,_.jsx)(t4,{}),(0,_.jsx)(tq,{}),(0,_.jsx)(t1,{}),(0,_.jsx)(t3,{}),(0,_.jsx)(t4,{}),(0,_.jsx)(X.RP,{})]})})}function t6(){let e=(0,_.jsxs)("div",{className:"rp-nav-hamburger__md__hover-group",children:[(0,_.jsx)(tq,{}),(0,_.jsx)(tC,{}),(0,_.jsx)(t1,{}),(0,_.jsx)(t4,{}),(0,_.jsx)(X.RP,{})]}),{isScreenOpen:t,toggleScreen:n}=function(){let{pathname:e,hash:t}=(0,e1.zy)(),[n,r]=(0,D.useState)(!1);function i(){r(!0),window.addEventListener("resize",o)}function s(){r(!1),window.removeEventListener("resize",o)}function o(){window.outerWidth>=768&&s()}return(0,D.useEffect)(()=>{s()},[e,t]),{isScreenOpen:n,openScreen:i,closeScreen:s,toggleScreen:function(){n?s():i()}}}(),{handleMouseEnter:r,handleMouseLeave:i,hoverGroup:s}=(0,X.HF)({position:"right",customChildren:(0,_.jsx)("div",{className:"rp-nav-menu__others-mobile__container",children:e})});return(0,_.jsxs)(_.Fragment,{children:[t&&(0,tE.createPortal)((0,_.jsx)(t5,{isScreenOpen:t,toggleScreen:n}),document.getElementById("__rspress_modal_container")),(0,_.jsx)("button",{onClick:n,"aria-label":"mobile hamburger",className:(0,Y.A)("rp-nav-hamburger","rp-nav-hamburger__sm",{"rp-nav-hamburger--active":t}),children:(0,_.jsx)(X.Ge,{icon:X.kv})}),(0,_.jsxs)("button",{"aria-label":"mobile hamburger",className:(0,Y.A)("rp-nav-hamburger","rp-nav-hamburger__md",{"rp-nav-hamburger--active":t}),onClick:r,onMouseEnter:r,onMouseLeave:i,children:[(0,_.jsx)(X.Ge,{icon:X.kv}),s]})]})}n(2332),n(274),n(959),n(5600);let t7=()=>{let{site:e}=(0,er.Z)(),t=(0,es.u)(),n=e?.themeConfig??{},r=e.lang??"",i=n?.locales,s=i?.find(e=>e.lang===t),o=(s?.title??e.title)||"Home",l=t===r?"/":(0,e2.hg)(t),{logo:a,logoText:u,logoHref:c}=e,h=(0,D.useMemo)(()=>a?"string"==typeof a?(0,_.jsx)("img",{src:(0,eg.As)(a),alt:"logo",id:"logo",className:"rspress-logo rp-nav__title__logo-image"}):(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("img",{src:(0,eg.As)(a.light),alt:"logo",id:"logo",className:"rspress-logo rp-nav__title__logo-image rp-nav__title__logo-image--light"}),(0,_.jsx)("img",{src:(0,eg.As)(a.dark),alt:"logo",id:"logo",className:"rspress-logo rp-nav__title__logo-image rp-nav__title__logo-image--dark"})]}):null,[a]);return(0,_.jsx)("div",{className:"rp-nav__title",children:(0,_.jsxs)(X.N_,{href:c||(0,e2.tb)(l),className:"rp-nav__title__link",children:[h&&(0,_.jsx)("div",{className:"rp-nav__title__logo",children:h}),u&&(0,_.jsx)("span",{children:u}),!h&&!u&&(0,_.jsx)("span",{children:o})]})})};function t8(){let e=eo(),[,t]=(0,X.dS)();return t<100?null:(0,_.jsxs)("button",{className:"rp-outline__action-row rp-scroll-to-top",onClick:()=>{window.scrollTo({top:0,behavior:"smooth"})},children:[(0,_.jsx)(X.Ge,{icon:X.HO,width:"16",height:"16"}),(0,_.jsx)("span",{children:e("scrollToTopText")})]})}function t9(){let e=eo(),{site:{themeConfig:{enableScrollToTop:t=!0,llmsUI:n}}}=(0,er.Z)(),r="object"==typeof n?n?.placement??"title":"title";return(0,_.jsxs)("div",{className:"rp-outline",children:[(0,_.jsxs)("div",{className:"rp-outline__title",children:[e("outlineTitle"),(0,_.jsx)(X.a9,{size:14,strokeWidth:2})]}),(0,_.jsx)("nav",{className:"rp-outline__toc rp-scrollbar",children:(0,_.jsx)(X.vN,{})}),(0,_.jsx)("div",{className:"rp-outline__divider"}),(0,_.jsxs)("div",{className:"rp-outline__bottom",children:[(0,_.jsx)(X.Lp,{isOutline:!0}),"outline"===r&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(X.KG,{}),(0,_.jsx)(X.vw,{})]}),t&&(0,_.jsx)(t8,{})]})]})}n(499);let ne=()=>{let{pathname:e}=(0,e1.zy)();return(0,D.useCallback)(t=>{let n=decodeURIComponent(e);return(0,e7.$m)(t,n)},[e])};function nt(){let{sidebar:e}=(0,tp.l)(),{pathname:t}=(0,e1.zy)(),n=decodeURIComponent(t);return(0,D.useMemo)(()=>((e,t)=>{for(let n of Object.keys(e).sort((e,t)=>
13t.length-e.length))if((0,e2.CR)(n,t))return e[n];return[]})(e,n),[e,n])}function nn(e,t){let n=new WeakMap,r=e=>n.has(e)?n.get(e):"link"in e&&e.link&&t(e.link)||"items"in e&&e.items.some(e=>r(e))?(n.set(e,!0),!0):(n.set(e,!1),!1),i=e=>{"items"in e&&(e.items.forEach(i),r(e)&&(e.collapsed=!1))},s=e.filter(Boolean).flat();return s.forEach(i),s}let nr=e=>!("items"in e)&&"link"in e,ni=e=>"items"in e&&Array.isArray(e.items);n(4318);let ns=e=>e.toLowerCase().replace(/-/g," "),no=(e,t)=>ns(e).includes(ns(t)),nl=e=>{let{query:t,setQuery:n,searchRef:r}=e,i=eo();return(0,_.jsxs)("div",{className:"rp-overview-search",children:[(0,_.jsx)("label",{htmlFor:"api-filter",className:"rp-overview-search__label",children:i("overview.filterNameText")}),(0,_.jsx)("input",{ref:r,type:"search",placeholder:i("overview.filterPlaceholderText"),id:"api-filter",value:t,onChange:e=>n(e.target.value),className:"rp-overview-search__input"})]})};function na(e){let{siteData:t,page:{routePath:n,title:r,frontmatter:i}}=eG(),{content:s,groups:o}=e,l=eo(),[a,u]=(0,D.useState)(""),c=(0,D.useRef)(null);(0,D.useEffect)(()=>{!0===i.overview&&c.current?.focus()},[]);let h=e=>e.startsWith(n.replace(/overview$/,""))&&!(0,eg.Oy)(e,n),d=e=>"link"in e&&e.link?e.link:"items"in e?d(e.items[0]):"",{pages:f}=t,p=f.filter(e=>h(e.routePath)),m=nt();function g(t,r,i){if("dividerType"in t||"sectionHeaderText"in t||t.link===`${n}index`&&i?.overview===!0)return!1;let s=e?.overviewHeaders??t.overviewHeaders??i?.overviewHeaders??r?.overviewHeaders??[2],o=p.find(e=>(0,eg.Oy)(e.routePath,t.link||"")),l=d(t);return{text:t.text,link:l,headers:o?.toc?.filter(e=>s.some(t=>e.depth===t))||[]}}m[0]?.link!==n&&(m=function e(t,n){let r,i=t.findIndex(e=>(function(e){var t;if("dividerType"in e||"sectionHeaderText"in e)return!1;let r=(t=e.link||"/",(0,e2.Tj)(t,!0)),i=n.replace(/\/$/,"");return r===n||r===i})(e));if(-1===i)return t.map(t=>"items"in t?e(t.items,n):[]).flat();let s=t[i];if("items"in s&&Array.isArray(r=s.items)&&r.length>=1)return s.items.every(e=>!("items"in e))?[s]:s.items.filter(e=>!("dividerType"in e));let o=[...t];return"items"in s||o.splice(i,1),o.filter(e=>!("dividerType"in e))}(m,n));let v=o??(0,D.useMemo)(()=>m.filter(e=>Array.isArray(e?.items)?e.items.filter(e=>h(d(e))).length>0:!!(nr(e)&&h(d(e)))).map(e=>{let t=[];return e?.items?t=e?.items?.map(t=>g(t,e,i)).filter(Boolean):nr(e)&&(t=[g({link:e.link,text:e.text||"",tag:e.tag,_fileKey:e._fileKey,overviewHeaders:e.overviewHeaders},void 0,i)]),{name:e.text||"",items:t}}),[m,n,i]),x=(0,D.useMemo)(()=>a?v.map(e=>{if(no(e.name,a))return e;let t=e.items.map(e=>{if(no(e.text||"",a))return e;let t=e.headers?.filter(e=>{let{text:t}=e;return no(t,a)});return t?.length?{...e,headers:t}:null}).filter(Boolean);return t.length?{...e,items:t}:null}).filter(Boolean):v,[v,a]);return(0,_.jsxs)("div",{className:"rspress-doc rp-doc rspress-overview rp-overview",children:[(0,_.jsx)(X.x5,{level:1,title:r||"Overview"}),(0,_.jsx)(nl,{query:a,setQuery:u,searchRef:c}),s,x.length>0?x.map(e=>(0,_.jsx)(X.v7,{group:e},e?.name)):(0,_.jsx)("div",{className:"rp-overview__empty",children:`${l("overview.filterNoResultText")}: ${a}`})]})}n(787);var nu=e=>(0,_.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:106,height:102,fill:"none",viewBox:"0 0 106 102",...e,children:(0,_.jsx)("path",{fill:"currentColor",fillOpacity:.05,d:"M131.722 7.637 124.908.822a1.26 1.26 0 0 0-.916-.37c-.338 0-.659.13-.916.37l-12.231 12.23A32.03 32.03 0 0 0 92.829 7.54c-8.228 0-16.457 3.134-22.741 9.418L53.711 33.335a1.29 1.29 0 0 0 0 1.816l43.666 43.666c.258.257.579.37.916.37.322 0 .66-.129.916-.37l16.377-16.377c11.073-11.09 12.375-28.237 3.906-40.74l12.23-12.231a1.31 1.31 0 0 0 0-1.832m-54.45 63.948a1.29 1.29 0 0 0-1.816 0L64.752 82.288 50.24 67.776l10.72-10.72a1.29 1.29 0 0 0 0-1.816l-5.85-5.85a1.29 1.29 0 0 0-1.817 0l-10.72 10.72-6.91-6.91a1.26 1.26 0 0 0-.916-.37 1.36 1.36 0 0 0-.916.37L17.47 69.575C6.396 80.649 5.094 97.813 13.564 110.317l-12.23 12.23a1.29 1.29 0 0 0 0 1.816l6.814 6.815c.257.257.578.369.916.369.337 0 .659-.128.916-.369l12.23-12.231c5.416 3.681 11.716 5.513 18.016 5.513 8.229 0 16.457-3.134 22.741-9.418l16.377-16.377a1.29 1.29 0 0 0 0-1.816l-6.91-6.91 10.72-10.72a1.29 1.29 0 0 0 0-1.816z"})});let nc=e=>{let{group:t}=e,{itemsWithContent:n,itemsWithoutContent:r}=(0,D.useMemo)(()=>({itemsWithContent:t.items.filter(e=>e.headers&&e.headers.length>0||e.items&&e.items.length>0),itemsWithoutContent:t.items.filter(e=>!(e.headers&&e.headers.length>0)&&!(e.items&&e.items.length>0))}),[t]);return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(X.x5,{level:2,title:t.name}),(0,_.jsxs)("div",{className:"rp-overview-group rp-not-doc",children:[n.map(e=>(0,_.jsxs)("div",{className:"rp-overview-group__item",children:[(0,_.jsxs)("div",{className:"rp-overview-group__item__title",children:[e.link?(0,_.jsx)(X.N_,{href:e.link,className:"rp-overview-group__item__title__link",...(0,X.nl)(e.text)}):(0,_.jsx)("span",{className:"rp-overview-group__item__title__text",...(0,X.nl)(e.text)}),(0,_.jsx)(X.Ge,{icon:nu,className:"rp-overview-group__item__title__icon"})]}),(0,_.jsxs)("ul",{className:"rp-overview-group__item__content",children:[e.headers?.map(t=>(0,_.jsx)("li",{className:"rp-overview-group__item__content__item",children:(0,_.jsx)(X.N_,{className:"rp-overview-group__item__content__item__link",href:`${e.link}#${t.id}`,...(0,X.nl)(t.text)})},t.id)),e.items?.map(e=>{let{link:t,text:n}=e;return(0,_.jsx)("li",{className:"rp-overview-group__item__content__item",children:(0,_.jsx)(X.N_,{className:"rp-overview-group__item__content__item__link",href:t,...(0,X.nl)(n)})},t)})]})]},e.link)),r.length>0&&(0,_.jsx)("div",{className:"rp-overview-group__grid",children:r.map(e=>(0,_.jsx)("div",{className:"rp-overview-group__grid-item rp-overview-group__item__title",children:e.link?(0,_.jsx)(X.N_,{href:e.link,className:"rp-overview-group__item__title__link",...(0,X.nl)(e.text)}):(0,_.jsx)("span",{className:"rp-overview-group__item__title__text",...(0,X.nl)(e.text)})},e.link))})]})]})};var nh=n(6877);
13function nd(){let{prevPage:e,nextPage:t}=(0,X.ZZ)(),n=eo();return(0,_.jsxs)("div",{className:"rp-prev-next-page",children:[e?(0,_.jsxs)(X.N_,{href:e.link,className:(0,Y.A)("rp-prev-next-page__item","rp-prev-next-page__prev"),children:[(0,_.jsx)("span",{className:"rp-prev-next-page__item__desc",children:n("prevPageText")}),(0,_.jsxs)("span",{className:"rp-prev-next-page__item__title",children:[(0,_.jsx)(X.Ge,{icon:X.hI,className:"rp-prev-next-page__icon rp-prev-next-page__rotate_180"}),(0,_.jsx)("span",{...(0,X.nl)(e.text)})]})]}):(0,_.jsx)("div",{className:"rp-prev-next-page__placeholder"}),t?(0,_.jsxs)(X.N_,{href:t.link,className:(0,Y.A)("rp-prev-next-page__item","rp-prev-next-page__next"),children:[(0,_.jsx)("span",{className:"rp-prev-next-page__item__desc",children:n("nextPageText")}),(0,_.jsxs)("span",{className:"rp-prev-next-page__item__title",children:[(0,_.jsx)("span",{...(0,X.nl)(t.text)}),(0,_.jsx)(X.Ge,{icon:X.hI,className:"rp-prev-next-page__icon"})]})]}):(0,_.jsx)("div",{className:"rp-prev-next-page__placeholder"})]})}n(8914),n(1670);let nf=e=>{let{percent:t,size:n=100,strokeWidth:r=8,strokeColor:i="var(--rp-c-brand)",backgroundColor:s="var(--rp-c-divider-light)",className:o}=e,l=Math.min(100,Math.max(0,t)),a=(n-r)/2,u=2*a*Math.PI;return(0,_.jsxs)("svg",{width:n,height:n,className:(0,Y.A)("rp-progress-circle",o),children:[(0,_.jsx)("circle",{cx:n/2,cy:n/2,r:a,strokeLinecap:"round",fill:"none",stroke:s,strokeWidth:r}),(0,_.jsx)("circle",{cx:n/2,cy:n/2,r:a,strokeLinecap:"round",fill:"none",stroke:i,strokeWidth:r,strokeDasharray:u,strokeDashoffset:u-l/100*u,transform:`rotate(-90 ${n/2} ${n/2})`,style:{transition:"stroke-dashoffset 0.3s"}})]})},np=()=>{let[e,t]=(0,D.useState)(0),[n,r]=(0,D.useState)(0),{height:i}=function(){let[e,t]=(0,D.useState)({width:(void 0)??1/0,height:(void 0)??1/0});return(0,D.useLayoutEffect)(()=>{let e=null,n=()=>{e&&clearTimeout(e),e=setTimeout(()=>{t({width:window.innerWidth,height:window.innerHeight})},150)};return t({width:window.innerWidth,height:window.innerHeight}),window.addEventListener("resize",n),()=>{e&&clearTimeout(e),window.removeEventListener("resize",n)}},[]),e}();return(0,D.useEffect)(()=>{let e=window||document.documentElement,n=()=>{let e=document.querySelector(".rspress-doc");e&&r(e.getBoundingClientRect().height||0),t(window.scrollY||document.documentElement.scrollTop)};return n(),e?.addEventListener("scroll",n),()=>{e?.removeEventListener("scroll",n)}},[]),[(0,D.useMemo)(()=>{let t=Math.min(e,i);return Math.floor(Math.min(Math.max(0,(e-50+t)/n*100),100))||0},[e,i]),e]};function nm(e){let{size:t,strokeWidth:n}=e,[r]=np();return(0,_.jsx)(nf,{percent:r,size:t,strokeWidth:n})}function ng(e){let{children:t}=e;return(0,_.jsx)(_.Fragment,{children:t})}function nv(){let[e,t]=(0,D.useState)(!1);return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(X.vd,{setFocused:t}),(0,_.jsx)(tZ,{children:(0,_.jsx)(X.Pl,{focused:e,setFocused:t})})]})}function nx(e){let{setFocused:t}=e,[n,r]=(0,D.useState)(null),i=eo();return(0,D.useEffect)(()=>{r(/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)?"â":"Ctrl")},[]),(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)("button",{className:"rp-search-button",onClick:()=>t(!0),children:[(0,_.jsxs)("div",{className:"rp-search-button__content",children:[(0,_.jsx)(X.Ge,{icon:X.C0,className:"rp-search-button__icon"}),(0,_.jsx)("span",{className:"rp-search-button__word",children:i("searchPlaceholderText")})]}),(0,_.jsxs)("div",{className:"rp-search-button__hotkey",style:{opacity:+!!n},children:[(0,_.jsx)("span",{children:n}),(0,_.jsx)("span",{children:"K"})]})]}),(0,_.jsx)("div",{className:"rp-search-button--mobile",onClick:()=>t(!0),children:(0,_.jsx)(X.Ge,{icon:X.C0})})]})}n(4467);let ny=function(e,t){return e===t||e!=e&&t!=t},n_=function(e,t){for(var n=e.length;n--;)if(ny(e[n][0],t))return n;return -1};var nD=Array.prototype.splice;function nw(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}nw.prototype.clear=function(){this.__data__=[],this.size=0},nw.prototype.delete=function(e){var t=this.__data__,n=n_(t,e);return!(n<0)&&(n==t.length-1?t.pop():nD.call(t,n,1),--this.size,!0)},nw.prototype.get=function(e){var t=this.__data__,n=n_(t,e);return n<0?void 0:t[n][1]},nw.prototype.has=function(e){return n_(this.__data__,e)>-1},nw.prototype.set=function(e,t){var n=this.__data__,r=n_(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var nb="object"==typeof global&&global&&global.Object===Object&&global,nj="object"==typeof self&&self&&self.Object===Object&&self,nF=nb||nj||Function("return this")(),nC=nF.Symbol,nA=Object.prototype,nk=nA.hasOwnProperty,nE=nA.toString,nN=nC?nC.toStringTag:void 0;let nB=function(e){var t=nk.call(e,nN),n=e[nN];try{e[nN]=void 0;var r=!0}catch(e){}var i=nE.call(e);
13return r&&(t?e[nN]=n:delete e[nN]),i};var nM=Object.prototype.toString,nS=nC?nC.toStringTag:void 0;let nT=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":nS&&nS in Object(e)?nB(e):nM.call(e)},nz=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},nL=function(e){if(!nz(e))return!1;var t=nT(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t};var n$=nF["__core-js_shared__"],nO=(c=/[^.]+$/.exec(n$&&n$.keys&&n$.keys.IE_PROTO||""))?"Symbol(src)_1."+c:"",nH=Function.prototype.toString;let nP=function(e){if(null!=e){try{return nH.call(e)}catch(e){}try{return e+""}catch(e){}}return""};var nI=/^\[object .+?Constructor\]$/,nR=Object.prototype,nW=Function.prototype.toString,nG=nR.hasOwnProperty,nU=RegExp("^"+nW.call(nG).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");let nV=function(e){return!!nz(e)&&(!nO||!(nO in e))&&(nL(e)?nU:nI).test(nP(e))},nZ=function(e,t){var n=null==e?void 0:e[t];return nV(n)?n:void 0};var nq=nZ(nF,"Map"),nK=nZ(Object,"create"),nY=Object.prototype.hasOwnProperty,nJ=Object.prototype.hasOwnProperty;function nX(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}nX.prototype.clear=function(){this.__data__=nK?nK(null):{},this.size=0},nX.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=!!t,t},nX.prototype.get=function(e){var t=this.__data__;if(nK){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return nY.call(t,e)?t[e]:void 0},nX.prototype.has=function(e){var t=this.__data__;return nK?void 0!==t[e]:nJ.call(t,e)},nX.prototype.set=function(e,t){var n=this.__data__;return this.size+=+!this.has(e),n[e]=nK&&void 0===t?"__lodash_hash_undefined__":t,this};let nQ=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},n0=function(e,t){var n=e.__data__;return nQ(t)?n["string"==typeof t?"string":"hash"]:n.map};function n1(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function n2(e){var t=this.__data__=new nw(e);this.size=t.size}n1.prototype.clear=function(){this.size=0,this.__data__={hash:new nX,map:new(nq||nw),string:new nX}},n1.prototype.delete=function(e){var t=n0(this,e).delete(e);return this.size-=!!t,t},n1.prototype.get=function(e){return n0(this,e).get(e)},n1.prototype.has=function(e){return n0(this,e).has(e)},n1.prototype.set=function(e,t){var n=n0(this,e),r=n.size;return n.set(e,t),this.size+=+(n.size!=r),this},n2.prototype.clear=function(){this.__data__=new nw,this.size=0},n2.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},n2.prototype.get=function(e){return this.__data__.get(e)},n2.prototype.has=function(e){return this.__data__.has(e)},n2.prototype.set=function(e,t){var n=this.__data__;if(n instanceof nw){var r=n.__data__;if(!nq||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new n1(r)}return n.set(e,t),this.size=n.size,this};var n3=function(){try{var e=nZ(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();let n4=function(e,t,n){"__proto__"==t&&n3?n3(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},n5=function(e,t,n){(void 0===n||ny(e[t],n))&&(void 0!==n||t in e)||n4(e,t,n)},n6=function(e,t,n){for(var r=-1,i=Object(e),s=n(e),o=s.length;o--;){var l=s[++r];if(!1===t(i[l],l,i))break}return e};var n7="object"==typeof exports&&exports&&!exports.nodeType&&exports,n8=n7&&"object"==typeof module&&module&&!module.nodeType&&module,n9=n8&&n8.exports===n7?nF.Buffer:void 0,re=n9?n9.allocUnsafe:void 0;let rt=function(e,t){if(t)return e.slice();var n=e.length,r=re?re(n):new e.constructor(n);return e.copy(r),r};var rn=nF.Uint8Array;let rr=function(e){var t=new e.constructor(e.byteLength);return new rn(t).set(new rn(e)),t},ri=function(e,t){var n=t?rr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)},rs=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t};var ro=Object.create,rl=function(){function e(){}return function(t){if(!nz(t))return{};if(ro)return ro(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();let ra=function(e,t){return function(n){return e(t(n))}};var ru=ra(Object.getPrototypeOf,Object),rc=Object.prototype;let rh=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||rc)},rd=function(e){return null!=e&&"object"==typeof e},rf=function(e){return rd(e)&&"[object Arguments]"==nT(e)};var rp=Object.prototype,rm=rp.hasOwnProperty,rg=rp.propertyIsEnumerable,rv=rf(function(){return arguments}())?rf:function(e){return rd(e)&&rm.call(e,"callee")&&!rg.call(e,"callee")},rx=Array.isArray;let ry=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff},r_=function(e){return null!=e&&ry(e.length)&&!nL(e)};var rD="object"==typeof exports&&exports&&!exports.nodeType&&exports,rw=rD&&"object"==typeof module&&module&&!module.nodeType&&module,rb=rw&&rw.exports===rD?nF.Buffer:void 0;let rj=(rb?rb.isBuffer:void 0)||function(){return!1};var rF=Object.prototype,rC=Function.prototype.toString,rA=rF.hasOwnProperty,rk=rC.call(Object);let rE=function(e){if(!rd(e)||"[object Object]"!=nT(e))return!1;var t=ru(e);if(null===t)return!0;var n=rA.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&rC.call(n)==rk};var rN={};
13rN["[object Float32Array]"]=rN["[object Float64Array]"]=rN["[object Int8Array]"]=rN["[object Int16Array]"]=rN["[object Int32Array]"]=rN["[object Uint8Array]"]=rN["[object Uint8ClampedArray]"]=rN["[object Uint16Array]"]=rN["[object Uint32Array]"]=!0,rN["[object Arguments]"]=rN["[object Array]"]=rN["[object ArrayBuffer]"]=rN["[object Boolean]"]=rN["[object DataView]"]=rN["[object Date]"]=rN["[object Error]"]=rN["[object Function]"]=rN["[object Map]"]=rN["[object Number]"]=rN["[object Object]"]=rN["[object RegExp]"]=rN["[object Set]"]=rN["[object String]"]=rN["[object WeakMap]"]=!1;var rB="object"==typeof exports&&exports&&!exports.nodeType&&exports,rM=rB&&"object"==typeof module&&module&&!module.nodeType&&module,rS=rM&&rM.exports===rB&&nb.process,rT=function(){try{var e=rM&&rM.require&&rM.require("util").types;if(e)return e;return rS&&rS.binding&&rS.binding("util")}catch(e){}}(),rz=rT&&rT.isTypedArray,rL=rz?function(e){return rz(e)}:function(e){return rd(e)&&ry(e.length)&&!!rN[nT(e)]};let r$=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]};var rO=Object.prototype.hasOwnProperty;let rH=function(e,t,n){var r=e[t];rO.call(e,t)&&ny(r,n)&&(void 0!==n||t in e)||n4(e,t,n)},rP=function(e,t,n,r){var i=!n;n||(n={});for(var s=-1,o=t.length;++s<o;){var l=t[s],a=r?r(n[l],e[l],l,n,e):void 0;void 0===a&&(a=e[l]),i?n4(n,l,a):rH(n,l,a)}return n},rI=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r};var rR=/^(?:0|[1-9]\d*)$/;let rW=function(e,t){var n=typeof e;return!!(t=null==t?0x1fffffffffffff:t)&&("number"==n||"symbol"!=n&&rR.test(e))&&e>-1&&e%1==0&&e<t};var rG=Object.prototype.hasOwnProperty;let rU=function(e,t){var n=rx(e),r=!n&&rv(e),i=!n&&!r&&rj(e),s=!n&&!r&&!i&&rL(e),o=n||r||i||s,l=o?rI(e.length,String):[],a=l.length;for(var u in e)(t||rG.call(e,u))&&!(o&&("length"==u||i&&("offset"==u||"parent"==u)||s&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||rW(u,a)))&&l.push(u);return l},rV=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t};var rZ=Object.prototype.hasOwnProperty;let rq=function(e){if(!nz(e))return rV(e);var t=rh(e),n=[];for(var r in e)"constructor"==r&&(t||!rZ.call(e,r))||n.push(r);return n},rK=function(e){return r_(e)?rU(e,!0):rq(e)},rY=function(e,t,n,r,i,s,o){var l=r$(e,n),a=r$(t,n),u=o.get(a);if(u)return void n5(e,n,u);var c=s?s(l,a,n+"",e,t,o):void 0,h=void 0===c;if(h){var d=rx(a),f=!d&&rj(a),p=!d&&!f&&rL(a);(c=a,d||f||p)?rx(l)?c=l:rd(l)&&r_(l)?c=rs(l):f?(h=!1,c=rt(a,!0)):p?(h=!1,c=ri(a,!0)):c=[]:rE(a)||rv(a)?(c=l,rv(l))?c=rP(l,rK(l)):(!nz(l)||nL(l))&&(c="function"!=typeof a.constructor||rh(a)?{}:rl(ru(a))):h=!1}h&&(o.set(a,c),i(c,a,r,s,o),o.delete(a)),n5(e,n,c)},rJ=function e(t,n,r,i,s){t!==n&&n6(n,function(o,l){if(s||(s=new n2),nz(o))rY(t,n,l,r,e,i,s);else{var a=i?i(r$(t,l),o,l+"",t,n,s):void 0;void 0===a&&(a=o),n5(t,l,a)}},rK)},rX=function(e){return e},rQ=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)};var r0=Math.max,r1=Date.now,r2=(h=n3?function(e,t){return n3(e,"toString",{configurable:!0,enumerable:!1,value:function(){return t},writable:!0})}:rX,d=0,f=0,function(){var e=r1(),t=16-(e-f);if(f=e,t>0){if(++d>=800)return arguments[0]}else d=0;return h.apply(void 0,arguments)});let r3=function(e,t,n){if(!nz(n))return!1;var r=typeof t;return("number"==r?!!(r_(n)&&rW(t,n.length)):"string"==r&&t in n)&&ny(n[t],e)};p=function(e,t,n,r){rJ(e,t,n,r)},r2((a=function(e,t){var n=-1,r=t.length,i=r>1?t[r-1]:void 0,s=r>2?t[2]:void 0;for(i=p.length>3&&"function"==typeof i?(r--,i):void 0,s&&r3(t[0],t[1],s)&&(i=r<3?void 0:i,r=1),e=Object(e);++n<r;){var o=t[n];o&&p(e,o,n,i)}return e},u=r0((u=void 0,a.length-1),0),function(){for(var e=arguments,t=-1,n=r0(e.length-u,0),r=Array(n);++t<n;)r[t]=e[u+t];t=-1;for(var i=Array(u+1);++t<u;)i[t]=e[t];return i[u]=rX(r),rQ(a,this,i)}),a+"");var r4=/\s/;let r5=function(e){for(var t=e.length;t--&&r4.test(e.charAt(t)););return t};var r6=/^\s+/;let r7=function(e){return"symbol"==typeof e||rd(e)&&"[object Symbol]"==nT(e)};var r8=/^[-+]0x[0-9a-f]+$/i,r9=/^0b[01]+$/i,ie=/^0o[0-7]+$/i,it=parseInt;let ir=function(e){if("number"==typeof e)return e;if(r7(e))return 0/0;if(nz(e)){var t,n="function"==typeof e.valueOf?e.valueOf():e;e=nz(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=(t=e)?t.slice(0,r5(t)+1).replace(r6,""):t;var r=r9.test(e);return r||ie.test(e)?it(e.slice(2),r?2:8):r8.test(e)?0/0:+e},ii=function(){return nF.Date.now()};var is=Math.max,io=Math.min;let il=function(e,t,n){var r,i,s,o,l,a,u=0,c=!1,h=!1,d=!0;if("function"!=typeof e)throw TypeError("Expected a function");function f(t){var n=r,s=i;return r=i=void 0,u=t,o=e.apply(s,n)}function p(e){var n=e-a,r=e-u;return void 0===a||n>=t||n<0||h&&r>=s}function m(){var e,n,r,i=ii();if(p(i))return g(i);l=setTimeout(m,(e=i-a,n=i-u,r=t-e,h?io(r,s-n):r))}function g(e){return(l=void 0,d&&r)?f(e):(r=i=void 0,o)}function v(){var e,n=ii(),s=p(n);if(r=arguments,i=this,a=n,s){if(void 0===l)return u=e=a,l=setTimeout(m,t),c?f(e):o;if(h)return clearTimeout(l),l=setTimeout(m,t),f(a)}return void 0===l&&(l=setTimeout(m,t)),o}return t=ir(t)||0,nz(n)&&(c=!!n.leading,s=(h="maxWait"in n)?is(ir(n.maxWait)||0,t):s,d="trailing"in n?!!n.trailing:d),v.cancel=function(){void 0!==l&&clearTimeout(l),u=0,r=a=i=l=void 0},v.flush=function(){return void 0===l?o:g(ii())},v};var ia=ra(Object.keys,Object),iu=Object.prototype.hasOwnProperty;let ic=function(e){if(!rh(e))return ia(e);var t=[];for(var n in Object(e))iu.call(e,n)&&"constructor"!=n&&t.push(n);return t},ih=function(e){return r_(e)?rU(e):ic(e)};m=function(e,t){return e&&n6(e,t,ih)};function id(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new n1;++t<n;)this.add(e[t])}id.prototype.add=id.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},id.prototype.has=function(e){return this.__data__.has(e)};let ip=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1},im=function(e,t,n,r,i,s){var o=1&n,l=e.length,a=t.length;if(l!=a&&!(o&&a>l))return!1;var u=s.get(e),c=s.get(t);if(u&&c)return u==t&&c==e;var h=-1,d=!0,f=2&n?new id:void 0;for(s.set(e,t),s.set(t,e);++h<l;){var p=e[h],m=t[h];if(r)var g=o?r(m,p,h,t,e,s):r(p,m,h,e,t,s);if(void 0!==g){if(g)continue;d=!1;break}if(f){if(!ip(t,function(e,t){if(!f.has(t)&&(p===e||i(p,e,n,r,s)))return f.push(t)})){d=!1;break}}else if(!(p===m||i(p,m,n,r,s))){d=!1;break}}return s.delete(e),s.delete(t),d},ig=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n},iv=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n};
13var ix=nC?nC.prototype:void 0,iy=ix?ix.valueOf:void 0;let i_=function(e,t,n,r,i,s,o){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":if(e.byteLength!=t.byteLength||!s(new rn(e),new rn(t)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return ny(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var l=ig;case"[object Set]":var a=1&r;if(l||(l=iv),e.size!=t.size&&!a)break;var u=o.get(e);if(u)return u==t;r|=2,o.set(e,t);var c=im(l(e),l(t),r,i,s,o);return o.delete(e),c;case"[object Symbol]":if(iy)return iy.call(e)==iy.call(t)}return!1},iD=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e},iw=function(e,t,n){var r=t(e);return rx(e)?r:iD(r,n(e))},ib=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,s=[];++n<r;){var o=e[n];t(o,n,e)&&(s[i++]=o)}return s};var ij=Object.prototype.propertyIsEnumerable,iF=Object.getOwnPropertySymbols,iC=iF?function(e){return null==e?[]:ib(iF(e=Object(e)),function(t){return ij.call(e,t)})}:function(){return[]};let iA=function(e){return iw(e,ih,iC)};var ik=Object.prototype.hasOwnProperty;let iE=function(e,t,n,r,i,s){var o=1&n,l=iA(e),a=l.length;if(a!=iA(t).length&&!o)return!1;for(var u=a;u--;){var c=l[u];if(!(o?c in t:ik.call(t,c)))return!1}var h=s.get(e),d=s.get(t);if(h&&d)return h==t&&d==e;var f=!0;s.set(e,t),s.set(t,e);for(var p=o;++u<a;){var m=e[c=l[u]],g=t[c];if(r)var v=o?r(g,m,c,t,e,s):r(m,g,c,e,t,s);if(!(void 0===v?m===g||i(m,g,n,r,s):v)){f=!1;break}p||(p="constructor"==c)}if(f&&!p){var x=e.constructor,y=t.constructor;x!=y&&"constructor"in e&&"constructor"in t&&!("function"==typeof x&&x instanceof x&&"function"==typeof y&&y instanceof y)&&(f=!1)}return s.delete(e),s.delete(t),f};var iN=nZ(nF,"DataView"),iB=nZ(nF,"Promise"),iM=nZ(nF,"Set"),iS=nZ(nF,"WeakMap"),iT="[object Map]",iz="[object Promise]",iL="[object Set]",i$="[object WeakMap]",iO="[object DataView]",iH=nP(iN),iP=nP(nq),iI=nP(iB),iR=nP(iM),iW=nP(iS),iG=nT;(iN&&iG(new iN(new ArrayBuffer(1)))!=iO||nq&&iG(new nq)!=iT||iB&&iG(iB.resolve())!=iz||iM&&iG(new iM)!=iL||iS&&iG(new iS)!=i$)&&(iG=function(e){var t=nT(e),n="[object Object]"==t?e.constructor:void 0,r=n?nP(n):"";if(r)switch(r){case iH:return iO;case iP:return iT;case iI:return iz;case iR:return iL;case iW:return i$}return t});let iU=iG;var iV="[object Arguments]",iZ="[object Array]",iq="[object Object]",iK=Object.prototype.hasOwnProperty;function iY(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],s=n.cache;if(s.has(i))return s.get(i);var o=e.apply(this,r);return n.cache=s.set(i,o)||s,o};return n.cache=new(iY.Cache||n1),n}iY.Cache=n1;var iJ=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,iX=/\\(\\)?/g,iQ=(v=(g=iY(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(iJ,function(e,n,r,i){t.push(r?i.replace(iX,"$1"):n||e)}),t},function(e){return 500===v.size&&v.clear(),e})).cache,g);let i0=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i};var i1=nC?nC.prototype:void 0,i2=i1?i1.toString:void 0;Object.prototype.hasOwnProperty;var i3=n(4491);let i4="default";function i5(e,t,n){let r=typeof n,i=typeof e;if("undefined"!==r){if("undefined"!==i){if(n){if("function"===i&&r===i)return function(t){return e(n(t))};if((t=e.constructor)===n.constructor){if(t===Array)return n.concat(e);if(t===Map){var s=new Map(n);for(var o of e)s.set(o[0],o[1]);return s}
13if(t===Set){for(s of(o=new Set(n),e.values()))o.add(s);return o}}}return e}return n}return"undefined"===i?t:e}function i6(e,t){return void 0===e?t:e}function i7(){return Object.create(null)}function i8(e){return"string"==typeof e}function i9(e){return"object"==typeof e}function se(e,t){if(i8(t))e=e[t];else for(let n=0;e&&n<t.length;n++)e=e[t[n]];return e}let st=/[^\p{L}\p{N}]+/u,sn=/(\d{3})/g,sr=/(\D)(\d{3})/g,si=/(\d{3})(\D)/g,ss=/[\u0300-\u036f]/g;function so(e={}){if(!this||this.constructor!==so)return new so(...arguments);if(arguments.length)for(e=0;e<arguments.length;e++)this.assign(arguments[e]);else this.assign(e)}function sl(e){e.F=null,e.B.clear(),e.D.clear()}function sa(e,t,n){n||(t||"object"!=typeof e?"object"==typeof t&&(n=t,t=0):n=e),n&&(e=n.query||e,t=n.limit||t);let r=""+(t||0);n&&(r+=(n.offset||0)+!!n.context+!!n.suggest+(!1!==n.resolve)+(n.resolution||this.resolution)+(n.boost||0)),e=(""+e).toLowerCase(),this.cache||(this.cache=new su);let i=this.cache.get(e+r);if(!i){let s=n&&n.cache;s&&(n.cache=!1),i=this.search(e,t,n
13),s&&(n.cache=s),this.cache.set(e+r,i)}return i}function su(e){this.limit=e&&!0!==e?e:1e3,this.cache=new Map,this.h=""}(y=so.prototype).assign=function(e){this.normalize=i5(e.normalize,!0,this.normalize);let t=e.include,n=t||e.exclude||e.split,r;if(n||""===n){if("object"==typeof n&&n.constructor!==RegExp){let e="";r=!t,t||(e+="\\p{Z}"),n.letter&&(e+="\\p{L}"),n.number&&(e+="\\p{N}",r=!!t),n.symbol&&(e+="\\p{S}"),n.punctuation&&(e+="\\p{P}"),n.control&&(e+="\\p{C}"),(n=n.char)&&(e+="object"==typeof n?n.join(""):n);try{this.split=RegExp("["+(t?"^":"")+e+"]+","u")}catch(e){this.split=/\s+/}}else this.split=n,r=!1===n||"a1a".split(n).length<2;this.numeric=i5(e.numeric,r)}else{try{this.split=i5(this.split,st)}catch(e){this.split=/\s+/}this.numeric=i5(e.numeric,i5(this.numeric,!0))}if(this.prepare=i5(e.prepare,null,this.prepare),this.finalize=i5(e.finalize,null,this.finalize),n=e.filter,this.filter="function"==typeof n?n:i5(n&&new Set(n),null,this.filter),this.dedupe=i5(e.dedupe,!0,this.dedupe),this.matcher=i5((n=e.matcher)&&new Map(n),null,this.matcher),this.mapper=i5((n=e.mapper)&&new Map(n),null,this.mapper),this.stemmer=i5((n=e.stemmer)&&new Map(n),null,this.stemmer),this.replacer=i5(e.replacer,null,this.replacer),this.minlength=i5(e.minlength,1,this.minlength),this.maxlength=i5(e.maxlength,1024,this.maxlength),this.rtl=i5(e.rtl,!1,this.rtl),(this.cache=n=i5(e.cache,!0,this.cache))&&(this.F=null,this.L="number"==typeof n?n:2e5,this.B=new Map,this.D=new Map,this.I=this.H=128),this.h="",this.J=null,this.A="",this.K=null,this.matcher)for(let e of this.matcher.keys())this.h+=(this.h?"|":"")+e;
13if(this.stemmer)for(let e of this.stemmer.keys())this.A+=(this.A?"|":"")+e;return this},y.addStemmer=function(e,t){return this.stemmer||(this.stemmer=new Map),this.stemmer.set(e,t),this.A+=(this.A?"|":"")+e,this.K=null,this.cache&&sl(this),this},y.addFilter=function(e){return"function"==typeof e?this.filter=e:(this.filter||(this.filter=new Set),this.filter.add(e)),this.cache&&sl(this),this},y.addMapper=function(e,t){return"object"==typeof e?this.addReplacer(e,t):e.length>1?this.addMatcher(e,t):(this.mapper||(this.mapper=new Map),this.mapper.set(e,t),this.cache&&sl(this),this)},y.addMatcher=function(e,t){return"object"==typeof e?this.addReplacer(e,t):e.length<2&&(this.dedupe||this.mapper)?this.addMapper(e,t):(this.matcher||(this.matcher=new Map),this.matcher.set(e,t),this.h+=(this.h?"|":"")+e,this.J=null,this.cache&&sl(this),this)},y.addReplacer=function(e,t){return"string"==typeof e?this.addMatcher(e,t):(this.replacer||(this.replacer=[]),this.replacer.push(e,t),this.cache&&sl(this),this)},y.encode=function(e,t){if(this.cache&&e.length<=this.H)if(this.F){if(this.B.has(e))return this.B.get(e)}else this.F=setTimeout(sl,50,this);this.normalize&&(e="function"==typeof this.normalize?this.normalize(e):ss?e.normalize("NFKD").replace(ss,"").toLowerCase():e.toLowerCase()),this.prepare&&(e=this.prepare(e)),this.numeric&&e.length>3&&(e=e.replace(sr,"$1 $2").replace(si,"$1 $2").replace(sn,"$1 "));let n=!(this.dedupe||this.mapper||this.filter||this.matcher||this.stemmer||this.replacer),r=[],i=i7(),s,o,l=this.split||""===this.split?e.split(this.split):[e];for(let e=0,u,c;e<l.length;e++)if((u=c=l[e])&&!(u.length<this.minlength||u.length>this.maxlength)){if(t){if(i[u])continue;i[u]=1}else{if(s===u)continue;s=u}if(n)r.push(u);else if(!this.filter||("function"==typeof this.filter?this.filter(u):!this.filter.has(u))){if(this.cache&&u.length<=this.I)if(this.F){var a=this.D.get(u);if(a||""===a){a&&r.push(a);continue}}else this.F=setTimeout(sl,50,this);if(this.stemmer){let e;for(this.K||(this.K=RegExp("(?!^)("+this.A+")$"));e!==u&&u.length>2;)e=u,u=u.replace(this.K,e=>this.stemmer.get(e))}if(u&&(this.mapper||this.dedupe&&u.length>1)){a="";for(let e=0,t="",n,r;e<u.length;e++)(n=u.charAt(e))===t&&this.dedupe||((r=this.mapper&&this.mapper.get(n))||""===r?(r!==t||!this.dedupe)&&(t=r)&&(a+=r):a+=t=n);u=a}if(this.matcher&&u.length>1&&(this.J||(this.J=RegExp("("+this.h+")","g")),u=u.replace(this.J,e=>this.matcher.get(e))),u&&this.replacer)for(a=0;u&&a<this.replacer.length;a+=2)u=u.replace(this.replacer[a],this.replacer[a+1]);if(this.cache&&c.length<=this.I&&(this.D.set(c,u),this.D.size>this.L&&(this.D.clear(),this.I=this.I/1.1|0)),u){if(u!==c)if(t){if(i[u])continue;i[u]=1}else{if(o===u)continue;o=u}r.push(u)}}}return this.finalize&&(r=this.finalize(r)||r),this.cache&&e.length<=this.H&&(this.B.set(e,r),this.B.size>this.L&&(this.B.clear(),this.H=this.H/1.1|0)),r},su.prototype.set=function(e,t){this.cache.set(this.h=e,t),this.cache.size>this.limit&&this.cache.delete(this.cache.keys().next().value)},su.prototype.get=function(e){let t=this.cache.get(e);return t&&this.h!==e&&(this.cache.delete(e),this.cache.set(this.h=e,t)),t},su.prototype.remove=function(e){for(let t of this.cache){let n=t[0];t[1].includes(e)&&this.cache.delete(n)}},su.prototype.clear=function(){this.cache.clear(),this.h=""};let sc={normalize:!1,numeric:!1,dedupe:!1},sh={},sd=new Map([["b","p"],["v","f"],["w","f"],["z","s"],["x","s"],["d","t"],["n","m"],["c","k"],["g","k"],["j","k"],["q","k"],["i","e"],["y","e"],["u","o"]]),sf=new Map([["ae","a"],["oe","o"],["sh","s"],["kh","k"],["th","t"],["ph","f"],["pf","f"]]),sp=[/([^aeo])h(.)/g,"$1$2",/([aeo])h([^aeo]|$)/g,"$1$2",/(.)\1+/g,"$1"],sm={a:"",e:"",i:"",o:"",u:"",y:"",b:1,f:1,p:1,v:1,c:2,g:2,j:2,k:2,q:2,s:2,x:2,z:2,Ã:2,d:3,t:3,l:4,m:5,n:5,r:6};var sg={Exact:sc,Default:sh,Normalize:sh,LatinBalance:{mapper:sd},LatinAdvanced:{mapper:sd,matcher:sf,replacer:sp},LatinExtra:{mapper:sd,replacer:sp.concat([/(?!^)[aeo]/g,""]),matcher:sf},LatinSoundex:{dedupe:!1,include:{letter:!0},finalize:function(e){for(let n=0;n<e.length;n++){var t=e[n];let r=t.charAt(0),i=sm[r];for(let e=1,n;e<t.length&&("h"===(n=t.charAt(e))||"w"===n||!(n=sm[n])||n===i||(r+=n,i=n,4!==r.length));e++);e[n]=r}}},CJK:{split:""},LatinExact:sc,LatinDefault:sh,LatinSimple:sh};function sv(e,t,n,r){let i=[];for(let s=0,o;s<e.index.length;s++)if(t>=(o=e.index[s]).length)t-=o.length;else{let s=(t=o[r?"splice":"slice"](t,n)).length;if(s&&(i=i.length?i.concat(t):t,n-=s,r&&(e.length-=s),!n))break;t=0}return i}function sx(e){if(!this||this.constructor!==sx)return new sx(e);this.index=e?[e]:[],this.length=e?e.length:0;let t=this;return new Proxy([],{get:(e,n)=>"length"===n?t.length:"push"===n?function(e){t.index[t.index.length-1].push(e),t.length++}:"pop"===n?function(){if(t.length)return t.length--,t.index[t.index.length-1].pop()}:"indexOf"===n?function(e){let n=0;for(let r=0,i,s;r<t.index.length;r++){if((s=(i=t.index[r]).indexOf(e))>=0)return n+s;n+=i.length}return -1}:"includes"===n?function(e){for(let n=0;n<t.index.length;n++)if(t.index[n].includes(e))return!0;return!1}
13:"slice"===n?function(e,n){return sv(t,e||0,n||t.length,!1)}:"splice"===n?function(e,n){return sv(t,e||0,n||t.length,!0)}:"constructor"===n?Array:"symbol"!=typeof n?(e=t.index[n/0x80000000|0])&&e[n]:void 0,set:(e,n,r)=>(e=n/0x80000000|0,(t.index[e]||(t.index[e]=[]))[n]=r,t.length++,!0)})}function sy(e=8){if(!this||this.constructor!==sy)return new sy(e);this.index=i7(),this.h=[],this.size=0,e>32?(this.B=sw,this.A=BigInt(e)):(this.B=sD,this.A=e)}function s_(e=8){if(!this||this.constructor!==s_)return new s_(e);this.index=i7(),this.h=[],this.size=0,e>32?(this.B=sw,this.A=BigInt(e)):(this.B=sD,this.A=e)}function sD(e){let t=2**this.A-1;if("number"==typeof e)return e&t;let n=0,r=this.A+1;for(let i=0;i<e.length;i++)n=(n*r^e.charCodeAt(i))&t;return 32===this.A?n+0x80000000:n}function sw(e){let t=BigInt(2)**this.A-BigInt(1);var n=typeof e;if("bigint"===n)return e&t;if("number"===n)return BigInt(e)&t;n=BigInt(0);let r=this.A+BigInt(1);for(let i=0;i<e.length;i++)n=(n*r^BigInt(e.charCodeAt(i)))&t;return n}async function sb(e){var t=(e=e.data).task;let n=e.id,s=e.args;if("init"===t)i=e.options||{},(t=e.factory)?(Function("return "+t)()(self),r=new self.FlexSearch.Index(i),delete self.FlexSearch):r=new oe(i),postMessage({id:n});else{let o;"export"===t&&(s[1]?(s[0]=i.export,s[2]=0,s[3]=1):s=null),"import"===t?s[0]&&(e=await i.import.call(r,s[0]),r.import(s[0],e)):((o=s&&r[t].apply(r,s))&&o.then&&(o=await o),o&&o.await&&(o=await o.await),"search"===t&&o.result&&(o=o.result)),postMessage("search"===t?{id:n,msg:o}:{id:n})}}function sj(e){sC.call(e,"add"),sC.call(e,"append"),sC.call(e,"search"),sC.call(e,"update"),sC.call(e,"remove"),sC.call(e,"searchCache")}function sF(){s=l=0}function sC(e){this[e+"Async"]=function(){let t,n=arguments;var r=n[n.length-1];if("function"==typeof r&&(t=r,delete n[n.length-1]),s?l||(l=Date.now()-o>=this.priority*this.priority*3):(s=setTimeout(sF,0),o=Date.now()),l){let t=this;return new Promise(r=>{setTimeout(function(){r(t[e+"Async"].apply(t,n))},0)})}let i=this[e].apply(this,n);return r=i.then?i:new Promise(e=>e(i)),t&&r.then(t),r}}sx.prototype.clear=function(){this.index.length=0},sx.prototype.push=function(){},sy.prototype.get=function(e){let t=this.index[this.B(e)];return t&&t.get(e)},sy.prototype.set=function(e,t){var n=this.B(e);let r=this.index[n];r?(n=r.size,r.set(e,t),(n-=r.size)&&this.size++):(this.index[n]=r=new Map([[e,t]]),this.h.push(r),this.size++)},s_.prototype.add=function(e){var t=this.B(e);let n=this.index[t];n?(t=n.size,n.add(e),(t-=n.size)&&this.size++):(this.index[t]=n=new Set([e]),this.h.push(n),this.size++)},(y=sy.prototype).has=s_.prototype.has=function(e){let t=this.index[this.B(e)];return t&&t.has(e)},y.delete=s_.prototype.delete=function(e){let t=this.index[this.B(e)];t&&t.delete(e)&&this.size--},y.clear=s_.prototype.clear=function(){this.index=i7(),this.h=[],this.size=0},y.values=s_.prototype.values=function*(){for(let e=0;e<this.h.length;e++)for(let t of this.h[e].values())yield t},y.keys=s_.prototype.keys=function*(){for(let e=0;e<this.h.length;e++)for(let t of this.h[e].keys())yield t},y.entries=s_.prototype.entries=function*(){for(let e=0;e<this.h.length;e++)for(let t of this.h[e].entries())yield t};let sA=0;function sk(e={},t){var r,i,s;function o(n){function r(e){let t=(e=e.data||e).id,n=t&&u.h[t];n&&(n(e.msg),delete u.h[t])}if(this.worker=n,this.h=i7(),this.worker)return(a?this.worker.on("message",r):this.worker.onmessage=r,e.config)?new Promise(function(t){sA>1e9&&(sA=0),u.h[++sA]=function(){t(u)},u.worker.postMessage({id:sA,task:"init",factory:l,options:e})}):(this.priority=e.priority||4,this.encoder=t||null,this.worker.postMessage({task:"init",factory:l,options:e}),this)}if(!this||this.constructor!==sk)return new sk(e);let l="u">typeof self?self._factory:"u">typeof window?window._factory:null;l&&(l=l.toString());let a="u"<typeof window,u=this,c=(r=l,i=a,s=e.worker,i?"u">typeof module?new(require("worker_threads")).Worker(__dirname+"/worker/node.js"):n.e(4193).then(n.t.bind(n,4968,19)).then(function(e){return new e.Worker("//node/node.mjs")}):r?new window.Worker(URL.createObjectURL(new Blob(["onmessage="+sb.toString()],{t
13ype:"text/javascript"}))):new window.Worker("string"==typeof s?s:"file:///opt/buildhome/repo/node_modules/.pnpm/[email protected]/node_modules/flexsearch/dist/flexsearch.bundle.module.min.mjs".replace("/worker.js","/worker/worker.js").replace("flexsearch.bundle.module.min.js","module/worker/worker.js").replace("flexsearch.bundle.module.min.mjs","module/worker/worker.js"),{type:"module"}));return c.then?c.then(function(e){return o.call(u,e)}):o.call(this,c)}function sE(e){sk.prototype[e]=function(){let t,n=this,r=[].slice.call(arguments);var i=r[r.length-1];return"function"==typeof i&&(t=i,r.pop()),i=new Promise(function(t){"export"===e&&"function"==typeof r[0]&&(r[0]=null),sA>1e9&&(sA=0),n.h[++sA]=t,n.worker.postMessage({task:e,id:sA,args:r})}),t?(i.then(t),this):i}}function sN(e,t,n,r){if(!e.length)return e;if(1===e.length)return e=e[0],e=n||e.length>t?e.slice(n,n+t):e,r?sG.call(this,e):e;let i=[];for(let s=0,o,l;s<e.length;s++)if((o=e[s])&&(l=o.length)){if(n){if(n>=l){n-=l;continue}l=(o=o.slice(n,n+t)).length,n=0}if(l>t&&(o=o.slice(0,t),l=t),!i.length&&l>=t)return r?sG.call(this,o):o;if(i.push(o),!(t-=l))break}return i=i.length>1?[].concat.apply([],i):i[0],r?sG.call(this,i):i}function sB(e,t,n,r){var i=r[0];if(i[0]&&i[0].query)return e[t].apply(e,i);if(!("and"!==t&&"not"!==t||e.result.length||e.await||i.suggest))return r.length>1&&(i=r[r.length-1]),(r=i.resolve)?e.await||e.result:e;let s=[],o=0,l=0,a,u,c,h,d;for(t=0;t<r.length;t++)if(i=r[t]){var f=void 0;if(i.constructor===sO)f=i.await||i.result;else if(i.then||i.constructor===Array)f=i;else{o=i.limit||0,l=i.offset||0,c=i.suggest,u=i.resolve,a=((h=i.highlight||e.highlight)||i.enrich)&&u,f=i.queue;let n=i.async||f,r=i.index,p=i.query;if(r?e.index||(e.index=r):r=e.index,p||i.tag){let o=i.field||i.pluck;if(o&&(p&&(!e.query||h)&&(e.query=p,e.field=o,e.highlight=h),r=r.index.get(o)),f&&(d||e.await)){let o;d=1;let l=e.C.length,a=new Promise(function(e){o=e});!function(t,r){a.h=function(){r.index=null,r.resolve=!1;let i=n?t.searchAsync(r):t.search(r);return i.then?i.then(function(t){return e.C[l]=t=t.result||t,o(t),t}):(i=i.result||i,o(i),i)}}(r,Object.assign({},i)),e.C.push(a),s[t]=a;continue}i.resolve=!1,i.index=null,f=n?r.searchAsync(i):r.search(i),i.resolve=u,i.index=r}else if(i.and)f=sM(i,"and",r);else if(i.or)f=sM(i,"or",r);else if(i.not)f=sM(i,"not",r);else{if(!i.xor)continue;f=sM(i,"xor",r)}}f.await?(d=1,f=f.await):f.then?(d=1,f=f.then(function(e){return e.result||e})):f=f.result||f,s[t]=f}if(d&&!e.await&&(e.await=new Promise(function(t){e.return=t})),d){let t=Promise.all(s).then(function(r){for(let i=0;i<e.C.length;i++)if(e.C[i]===t){e.C[i]=function(){return n.call(e,r,o,l,a,u,c,h)};break}sH(e)});e.C.push(t)}else{if(!e.await)return n.call(e,s,o,l,a,u,c,h);e.C.push(function(){return n.call(e,s,o,l,a,u,c,h)})}return u?e.await||e.result:e}function sM(e,t,n){let r=(e=e[t])[0]||e;return r.index||(r.index=n),n=new sO(r),e.length>1&&(n=n[t].apply(n,e.slice(1))),n}function sS(e,t,n,r,i,s,o){return e.length&&(this.result.length&&e.push(this.result),e.length<2?this.result=e[0]:(this.result=sI(e,t,n,!1,this.h),n=0)),i&&(this.await=null),i?this.resolve(t,n,r,o):this}function sT(e,t,n,r,i,s,o){let l;if(!s&&!this.result.length)return i?this.result:this;if(e.length)if(this.result.length&&e.unshift(this.result),e.length<2)this.result=e[0];else{let r=0;for(let t=0,n,i;t<e.length;t++)if((n=e[t])&&(i=n.length))r<i&&(r=i);else if(!s){r=0;break}r?(this.result=sP(e,r,t,n,s,this.h,i),l=!0):this.result=[]}else s||(this.result=e);return i&&(this.await=null),i?this.resolve(t,n,r,o,l):this}function sz(e,t,n,r,i,s,o){if(e.length)if(this.result.length&&e.unshift(this.result),e.length<2)this.result=e[0];else{e:{s=n;var l=this.h;let r=[],o=i7(),a=0;for(let t=0,n;t<e.length;t++)if(n=e[t]){a<n.length&&(a=n.length);for(let e=0,t;e<n.length;e++)if(t=n[e])for(let e=0,n;e<t.length;e++)o[n=t[e]]=o[n]?2:1}for(let n=0,u,c=0;n<a;n++)for(let a=0,h;a<e.length;a++)if((h=e[a])&&(u=h[n])){for(let h=0,d;h<u.length;h++)if(1===o[d=u[h]])if(s)s--;else if(i){if(r.push(d),r.length===t){e=r;break e}}else{let i=n+(a?l:0);if(r[i]||(r[i]=[]),r[i].push(d),++c===t){e=r;break e}}}e=r}this.result=e,l=!0}else s||(this.result=e);return i&&(this.await=null),i?this.resolve(t,n,r,o,l):this}function sL(e,t,n,r,i,s,o){if(!s&&!this.result.length)return i?this.result:this;if(e.length&&this.result.length){e:{s=n;var l=[];e=new Set(e.flat().flat());for(let n=0,r,o=0;n<this.result.length;n++)if(r=this.result[n]){for(let a=0,u;a<r.length;
13a++)if(u=r[a],!e.has(u)){if(s)s--;else if(i){if(l.push(u),l.length===t){e=l;break e}}else if(l[n]||(l[n]=[]),l[n].push(u),++o===t){e=l;break e}}}e=l}this.result=e,l=!0}return i&&(this.await=null),i?this.resolve(t,n,r,o,l):this}function s$(e,t,n,r,i){let s,o,l,a,u;"string"==typeof i?(s=i,i=""):s=i.template,o=s.indexOf("$1"),l=s.substring(o+2),o=s.substring(0,o);let c=i&&i.boundary,h=!i||!1!==i.clip,d=i&&i.merge&&l&&o&&RegExp(l+" "+o,"g");i=i&&i.ellipsis;var f=0;if("object"==typeof i){var p=i.template;f=p.length-2,i=i.pattern}"string"!=typeof i&&(i=!1===i?"":"..."),f&&(i=p.replace("$1",i)),p=i.length-f,"object"==typeof c&&(0===(a=c.before)&&(a=-1),0===(u=c.after)&&(u=-1),c=c.total||9e5),f=new Map;for(let S=0,T,z;S<t.length;S++){let L;if(r)L=t,z=r;else{var m=t[S];if(!(z=m.field))continue;L=m.result}T=n.get(z).encoder,"string"!=typeof(m=f.get(T))&&(m=T.encode(e),f.set(T,m));for(let e=0;e<L.length;e++){var g=L[e].doc;if(!g||!(g=se(g,z)))continue;var v=g.trim().split(/\s+/);if(!v.length)continue;g="";var x=[];let t=[];for(var y=-1,_=-1,D=0,w=0;w<v.length;w++){let e;var b=v[w],j=T.encode(b);if((j=j.length>1?j.join(" "):j[0])&&b){for(var F=b.length,C=(T.split?b.replace(T.split,""):b).length-j.length,A="",k=0,E=0;E<m.length;E++){var N=m[E];if(N){var B=N.length;B+=C<0?0:C,k&&B<=k||(N=j.indexOf(N))>-1&&(A=(N?b.substring(0,N):"")+o+b.substring(N,N+B)+l+(N+B<F?b.substring(N+B):""),k=B,e=!0)}}A&&(c&&(y<0&&(y=g.length+ +!!g),_=g.length+ +!!g+A.length,D+=F,t.push(x.length),x.push({match:A})),g+=(g?" ":"")+A)}if(e){if(c&&D>=c)break}else b=v[w],g+=(g?" ":"")+b,c&&x.push({text:b})}if(D=t.length*(s.length-2),a||u||c&&g.length-D>c)if(D=c+D-2*p,w=_-y,a>0&&(w+=a),u>0&&(w+=u),w<=D)v=a?y-(a>0?a:0):y-((D-w)/2|0),x=u?_+(u>0?u:0):v+D,h||(v>0&&" "!==g.charAt(v)&&" "!==g.charAt(v-1)&&(v=g.indexOf(" ",v))<0&&(v=0),x<g.length&&" "!==g.charAt(x-1)&&" "!==g.charAt(x)&&((x=g.lastIndexOf(" ",x))<_?x=_:++x)),g=(v?i:"")+g.substring(v,x)+(x<g.length?i:"");else{for(_=[],y={},D={},w={},b={},j={},A=C=F=0,E=k=1;;){var M=void 0;for(let e=0,n;e<t.length;e++){if(n=t[e],A)if(C!==A){if(w[e+1])continue;if(y[n+=A]){F-=p,D[e+1]=1,w[e+1]=1;continue}if(n>=x.length-1){if(n>=x.length){w[e+1]=1,n>=v.length&&(D[e+1]=1);continue}F-=p}if(g=x[n].text,B=u&&j[e])if(B>0){if(g.length>B)if(w[e+1]=1,!h)continue;else g=g.substring(0,B);(B-=g.length)||(B=-1),j[e]=B}else{w[e+1]=1;continue}if(F+g.length+1<=c)g=" "+g,_[e]+=g;else if(h)(M=c-F-1)>0&&(g=" "+g.substring(0,M),_[e]+=g),w[e+1]=1;else{w[e+1]=1;continue}}else{if(w[e])continue;if(y[n-=C]){F-=p,w[e]=1,D[e]=1;continue}if(n<=0){if(n<0){w[e]=1,D[e]=1;continue}F-=p}if(g=x[n].text,B=a&&b[e])if(B>0){if(g.length>B)if(w[e]=1,!h)continue;else g=g.substring(g.length-B);(B-=g.length)||(B=-1),b[e]=B}else{w[e]=1;continue}if(F+g.length+1<=c)g+=" ",_[e]=g+_[e];else if(h)(M=g.length+1-(c-F))>=0&&M<g.length&&(g=g.substring(M)+" ",_[e]=g+_[e]),w[e]=1;else{w[e]=1;continue}}else{let t;if(g=x[n].match,a&&(b[e]=a),u&&(j[e]=u),e&&F++,n?!e&&p&&(F+=p):(D[e]=1,w[e]=1),n>=v.length-1||n<x.length-1&&x[n+1].match?t=1:p&&(F+=p),F-=s.length-2,!e||F+g.length<=c)_[e]=g;else{M=k=E=D[e]=0;break}t&&(D[e+1]=1,w[e+1]=1)}F+=g.length,M=y[n]=1}if(M)C===A?A++:C++;else{if(C===A?k=0:E=0,!k&&!E)break;k?A=++C:A++}}g="";for(let e=0;e<_.length;e++)g+=(D[e]?e?" ":"":(e&&!i?" ":"")+i)+_[e];i&&!D[_.length]&&(g+=i)}d&&(g=g.replace(d," ")),L[e].highlight=g}if(r)break}return t}function sO(e,t){if(!this||this.constructor!==sO)return new sO(e,t);let n=0,r,i,s,o,l,a;if(e&&e.index){let r=e;if(t=r.index,n=r.boost||0,i=r.query){s=r.field||r.pluck,o=r.highlight;let n=r.resolve;e=r.async||r.queue,r.resolve=!1,r.index=null,e=e?t.searchAsync(r):t.search(r),r.resolve=n,r.index=t,e=e.result||e}else e=[]}if(e&&e.then){let t=this;r=[e=e.then(function(e){t.C[0]=t.result=e.result||e,sH(t)})],e=[],l=new Promise(function(e){a=e})}this.index=t||null,this.result=e||[],this.h=n,this.C=r||[],this.await=l||null,this.return=a||null,this.highlight=o||null,this.query=i||"",this.field=s||""}function sH(e,t){let n=e.result;var r=e.await;e.await=null;for(let t=0,i;t<e.C.length;t++)if(i=e.C[t]){if("function"==typeof i)n=i(),e.C[t]=n=n.result||n,t--;else if(i.h)n=i.h(),e.C[t]=n=n.result||n,t--;else if(i.then)return e.await=r}return r=e.return,e.C=[],e.return=null,t||r(n),n}function sP(e,t,n,r,i,s,o){let l=e.length,a=[],u,c;u=i7();for(let h=0,d,f,p,m;h<t;h++)for(let t=0;t<l;t++)if(h<(p=e[t]).length&&(d=p[h]))for(let e=0;e<d.length;e++){if((c=u[f=d[e]])?u[f]++:(c=0,u[f]=1),m=a[c]||(a[c]=[]),!o){let e=h+(t||!i?0:s||0);m=m[e]||(m[e]=[])}if(m.push(f),o&&n&&c===l-1&&m.length-r===n)return r?m.slice(r):m}if(e=a.length)if(i)a=a.length>1?sI(a,n,r,o,s):(a=a[0])&&n&&a.length>n||r?a.slice(r,n+r):a;else{if(e<l)return[];
13if(a=a[e-1],n||r)if(o)(a.length>n||r)&&(a=a.slice(r,n+r));else{i=[];for(let e=0,t;e<a.length;e++)if(t=a[e]){if(r&&t.length>r)r-=t.length;else if((n&&t.length>n||r)&&(t=t.slice(r,n+r),n-=t.length,r&&(r-=t.length)),i.push(t),!n)break}a=i}}return a}function sI(e,t,n,r,i){let s,o,l=[],a=i7();var u=e.length;if(r){for(i=u-1;i>=0;i--)if(o=(r=e[i])&&r.length){for(u=0;u<o;u++)if(!a[s=r[u]]){if(a[s]=1,n)n--;else if(l.push(s),l.length===t)return l}}}else for(let c=u-1,h,d=0;c>=0;c--){h=e[c];for(let e=0;e<h.length;e++)if(o=(r=h[e])&&r.length){for(let h=0;h<o;h++)if(!a[s=r[h]])if(a[s]=1,n)n--;else{let n=(e+(c<u-1&&i||0))/(c+1)|0;if((l[n]||(l[n]=[])).push(s),++d===t)return l}}}return l}function sR(e){let t=[],n=i7(),r=i7();for(let i=0,s,o,l,a,u,c,h;i<e.length;i++){o=(s=e[i]).field,l=s.result;for(let e=0;e<l.length;e++)"object"!=typeof(u=l[e])?u={id:a=u}:a=u.id,(c=n[a])?c.push(o):(u.field=n[a]=[o],t.push(u)),(h=u.highlight)&&((c=r[a])||(r[a]=c={},u.highlight=c),c[o]=h)}return t}function sW(e,t,n,r,i){return(e=this.tag.get(e))&&(e=e.get(t))?((t=e.length-r)>0&&((n&&t>n||r)&&(e=e.slice(r,r+n)),i&&(e=sG.call(this,e))),e):[]}function sG(e){if(!this||!this.store)return e;if(this.db)return this.index.get(this.field[0]).db.enrich(e);let t=Array(e.length);for(let n=0,r;n<e.length;n++)r=e[n],t[n]={id:r,doc:this.store.get(r)};return t}function sU(e){let t,n;if(!this||this.constructor!==sU)return new sU(e);let r=e.document||e.doc||e;if(this.B=[],this.field=[],this.D=[],this.key=(t=r.key||r.id)&&sZ(t,this.D)||"id",(n=e.keystore||0)&&(this.keystore=n),this.fastupdate=!!e.fastupdate,this.reg=!this.fastupdate||e.worker||e.db?n?new s_(n):new Set:n?new sy(n):new Map,this.h=(t=r.store||null)&&t&&!0!==t&&[],this.store=t?n?new sy(n):new Map:null,this.cache=(t=e.cache||null)&&new su(t),e.cache=!1,this.worker=e.worker||!1,this.priority=e.priority||4,this.index=sV.call(this,e,r),this.tag=null,(t=r.tag)&&("string"==typeof t&&(t=[t]),t.length)){this.tag=new Map,this.A=[],this.F=[];for(let e=0,n,r;e<t.length;e++){if(!(r=(n=t[e]).field||n))throw Error("The tag field from the document descriptor is undefined.");n.custom?this.A[e]=n.custom:(this.A[e]=sZ(r,this.D),n.filter&&("string"==typeof this.A[e]&&(this.A[e]=new String(this.A[e])),this.A[e].G=n.filter)),this.F[e]=r,this.tag.set(r,new Map)}}if(this.worker){for(let t of(this.fastupdate=!1,e=[],this.index.values()))t.then&&e.push(t);if(e.length){let t=this;return Promise.all(e).then(function(e){let n=0;for(let r of t.index.entries()){let i=r[0],s=r[1];s.then&&(s=e[n],t.index.set(i,s),n++)}return t})}}else e.db&&(this.fastupdate=!1,this.mount(e.db))}function sV(e,t){let n=new Map,r=t.index||t.field||t;i8(r)&&(r=[r]);for(let t=0,s,o;t<r.length;t++){if(i8(s=r[t])||(o=s,s=s.field),o=i9(o)?Object.assign({},e,o):e,this.worker){var i=void 0;i=(i=o.encoder)&&i.encode?i:new so("string"==typeof i?sg[i]:i||{}),i=new sk(o,i),n.set(s,i)}this.worker||n.set(s,new oe(o,this.reg)),o.custom?this.B[t]=o.custom:(this.B[t]=sZ(s,this.D),o.filter&&("string"==typeof this.B[t]&&(this.B[t]=new String(this.B[t])),this.B[t].G=o.filter)),this.field[t]=s}if(this.h){i8(e=t.store)&&(e=[e]);for(let t=0,n,r;t<e.length;t++)r=(n=e[t]).field||n,n.custom?(this.h[t]=n.custom,n.custom.O=r):(this.h[t]=sZ(r,this.D),n.filter&&("string"==typeof this.h[t]&&(this.h[t]=new String(this.h[t])),this.h[t].G=n.filter))}return n}function sZ(e,t){let n=e.split(":"),r=0;for(let i=0;i<n.length;i++)"]"===(e=n[i])[e.length-1]&&(e=e.substring(0,e.length-2))&&(t[r]=!0),e&&(n[r++]=e);return r<n.length&&(n.length=r),r>1?n:n[0]}function sq(e,t=0){let n=[],r=[];for(let i of(t&&(t=25e4/t*5e3|0),e.entries()))r.push(i),r.length===t&&(n.push(r),r=[]);return r.length&&n.push(r),n}function sK(e,t){t||(t=new Map);for(let n=0,r;n<e.length;n++)r=e[n],t.set(r[0],r[1]);return t}function sY(e,t=0){let n=[],r=[];for(let i of(t&&(t=25e4/t*1e3|0),e.entries()))r.push([i[0],sq(i[1])[0]||[]]),r.length===t&&(n.push(r),r=[]);return r.length&&n.push(r),n}function sJ(e,t){t||(t=new Map);for(let n=0,r,i;n<e.length;n++)r=e[n],i=t.get(r[0]),t.set(r[0],sK(r[1],i));return t}function sX(e){let t=[],n=[];for(let r of e.keys())n.push(r),25e4===n.length&&(t.push(n),n=[]);return n.length&&t.push(n),t}function sQ(e,t){t||(t=new Set);for(let n=0;n<e.length;n++)t.add(e[n]);return t}function s0(e,t,n,r,i,s,o=0){let l=r&&r.constructor===Array;var a=l?r.shift():r;if(!a)return this.export(e,t,i,s+1);if((a=e((t?t+".":"")+(o+1)+"."+n,JSON.stringify(a)))&&a.then){let u=this;return a.then(function(){return s0.call(u,e,t,n,l?r:null,i,s,o+1)})}return s0.call(this,e,t,n,l?r:null,i,s,o+1)}function s1(e,t){let n="";for(let r of e.entries()){e=r[0];let i=r[1],s="";for(let e=0,n;e<i.length;e++){n=i[e]||[""];let r="";for(let e=0;e<n.length;e++)r+=(r?",":"")+("string"===t?'"'+n[e]+'"':n[e]);r="["+r+"]",s+=(s?",":"")+r}s='["'+e+'",['+s+"]]",n+=(n?",":"")+s}return n}function s2(e,t){let n=0;var r=void 0===t;if(e.constructor===Array){for(let i=0,s,o,l;i<e.length;i++)if((s=e[i])&&s.length){if(r)return 1;if((o=s.indexOf(t))>=0){if(s.length>1)return s.splice(o,1),1;if(delete e[i],n)return 1;l=1}else{if(l)return 1;n++}}}else for(let i of e.entries())r=i[0],s2(i[1],t)?n++:e.delete(r);return n}sE("add"),sE("append"),sE("search"),sE("update"),sE("remove"),sE("clear"),sE("export"),sE("import"),sk.prototype.searchCache=sa,sj(sk.prototype),sU.prototype.add=function(e,t,n){if(i9(e)&&(e=se(t=e,this.key)),t&&(e||0===e)){if(!n&&this.reg.has(e))return this.update(e,t);for(let s=0,o;s<this.field.length;s++){o=this.B[s];var r=this.index.get(this.field[s]);if("function"==typeof o){var i=o(t);i&&r.add(e,i,n,!0)}else(!(i=o.G)||i(t))&&(o.constructor===String?o=[""+o]:i8(o)&&(o=[o]),function e(t,n,r,i,s,o,l,a){if(t=t[l])if(i===n.length-1){if(t.constructor===Array){if(r[i]){for(n=0;n<t.length;n++)s.add(o,t[n],!0,!0);return}t=t.join(" ")}s.add(o,t,a,!0)}else if(t.constructor===Array)for(l=0;l<t.length;l++)e(t,n,r,i,s,o,l,a);else l=n[++i],e(t,n,r,i,s,o,l,a)}(t,o,this.D,0,r,e,o[0],n))}if(this.tag)for(r=0;r<this.A.length;r++){var s=this.A[r];
13i=this.tag.get(this.F[r]);let l=i7();if("function"==typeof s){if(!(s=s(t)))continue}else{var o=s.G;if(o&&!o(t))continue;s.constructor===String&&(s=""+s),s=se(t,s)}if(i&&s){i8(s)&&(s=[s]);for(let t=0,r,a;t<s.length;t++)if(!l[r=s[t]]&&(l[r]=1,(o=i.get(r))?a=o:i.set(r,a=[]),!n||!a.includes(e))){if(0x7fffffff===a.length){if(o=new sx(a),this.fastupdate)for(let e of this.reg.values())e.includes(a)&&(e[e.indexOf(a)]=o);i.set(r,a=o)}a.push(e),this.fastupdate&&((o=this.reg.get(e))?o.push(a):this.reg.set(e,[a]))}}}if(this.store&&(!n||!this.store.has(e))){let r;if(this.h){r=i7();for(let e=0,i;e<this.h.length;e++){let s;if(!(n=(i=this.h[e]).G)||n(t)){if("function"==typeof i){if(!(s=i(t)))continue;i=[i.O]}else if(i8(i)||i.constructor===String){r[i]=t[i];continue}!function e(t,n,r,i,s,o){if(t=t[s],i===r.length-1)n[s]=o||t;else if(t)if(t.constructor===Array)for(n=n[s]=Array(t.length),s=0;s<t.length;s++)e(t,n,r,i,s);else n=n[s]||(n[s]=i7()),s=r[++i],e(t,n,r,i,s)}(t,r,i,0,i[0],s)}}}this.store.set(e,r||t)}this.worker&&(this.fastupdate||this.reg.add(e))}return this},sO.prototype.or=function(){return sB(this,"or",sS,arguments)},sO.prototype.and=function(){return sB(this,"and",sT,arguments)},sO.prototype.xor=function(){return sB(this,"xor",sz,arguments)},sO.prototype.not=function(){return sB(this,"not",sL,arguments)},(y=sO.prototype).limit=function(e){if(this.await){let t=this;this.C.push(function(){return t.limit(e).result})}else if(this.result.length){let t=[];for(let n=0,r;n<this.result.length;n++)if(r=this.result[n])if(r.length<=e){if(t[n]=r,!(e-=r.length))break}else{t[n]=r.slice(0,e);break}this.result=t}return this},y.offset=function(e){if(this.await){let t=this;this.C.push(function(){return t.offset(e).result})}else if(this.result.length){let t=[];for(let n=0,r;n<this.result.length;n++)(r=this.result[n])&&(r.length<=e?e-=r.length:(t[n]=r.slice(e),e=0));this.result=t}return this},y.boost=function(e){if(this.await){let t=this;this.C.push(function(){return t.boost(e).result})}else this.h+=e;return this},y.resolve=function(e,t,n,r,i){let s=this.await?sH(this,!0):this.result;if(s.then){let o=this;return s.then(function(){return o.resolve(e,t,n,r,i)})}return s.length&&("object"==typeof e?(n=!!(r=e.highlight||this.highlight)||e.enrich,t=e.offset,e=e.limit):n=!!(r=r||this.highlight)||n,s=i?n?sG.call(this.index,s):s:sN.call(this.index,s,e||100,t,n)),this.finalize(s,r)},y.finalize=function(e,t){if(e.then){let n=this;return e.then(function(e){return n.finalize(e,t)})}t&&e.length&&this.query&&(e=s$(this.query,e,this.index.index,this.field,t));let n=this.return;return this.highlight=this.index=this.result=this.C=this.await=this.return=null,this.query=this.field="",n&&n(e),e},i7(),sU.prototype.search=function(e,t,n,r){let i,s,o,l,a,u,c;n||(!t&&i9(e)?(n=e,e=""):i9(t)&&(n=t,t=0));let h=[];var d=[];let f=0,p=!0,m;if(n){n.constructor===Array&&(n={index:n}),e=n.query||e,i=n.pluck,s=n.merge,l=n.boost,u=i||n.field||(u=n.index)&&(u.index?null:u);var g=this.tag&&n.tag;o=n.suggest,p=!1!==n.resolve,a=n.cache;var v=!!(m=p&&this.store&&n.highlight)||p&&this.store&&n.enrich;t=n.limit||t;var x=n.offset||0;if(t||(t=100*!!p),g&&(!this.db||!r)){g.constructor!==Array&&(g=[g]);var y=[];for(let e=0,t;e<g.length;e++)if((t=g[e]).field&&t.tag){var _=t.tag;if(_.constructor===Array)for(var D=0;D<_.length;D++)y.push(t.field,_[D]);else y.push(t.field,_)}else{_=Object.keys(t);for(let e=0,n,r;e<_.length;e++)if((r=t[n=_[e]]).constructor===Array)for(D=0;D<r.length;D++)y.push(n,r[D]);else y.push(n,r)}if(g=y,!e){if(d=[],y.length)for(g=0;g<y.length;g+=2){if(this.db){if(!(r=this.index.get(y[g])))continue;d.push(r=r.db.tag(y[g+1],t,x,v))}else r=sW.call(this,y[g],y[g+1],t,x,v);h.push(p?{field:y[g],tag:y[g+1],result:r}:[r])}if(d.length){let e=this;return Promise.all(d).then(function(t){for(let e=0;e<t.length;e++)p?h[e].result=t[e]:h[e]=t[e];return p?h:new sO(h.length>1?sP(h,1,0,0,o,l):h[0],e)})}return p?h:new sO(h.length>1?sP(h,1,0,0,o,l):h[0],this)}}!p&&!i&&(u=u||this.field)&&(i8(u)?i=u:(u.constructor===Array&&1===u.length&&(u=u[0]),i=u.field||u.index)),u&&u.constructor!==Array&&(u=[u])}u||(u=this.field),y=(this.worker||this.db)&&!r&&[];for(let i=0,s,l,b;i<u.length;i++){let j;if(l=u[i],!this.db||!this.tag||this.B[i]){if(i8(l)||(l=(j=l).field,e=j.query||e,t=i6(j.limit,t),x=i6(j.offset,x),o=i6(j.suggest,o),v=!!(m=p&&this.store&&i6(j.highlight,m))||p&&this.store&&i6(j.enrich,v),a=i6(j.cache,a)),r)s=r[i];else{D=(_=j||n||{}).enrich;var w=this.index.get(l);if(g&&(this.db&&(_.tag=g,_.field=u,c=w.db.support_tag_search),!c&&D&&(_.enrich=!1),c||(_.limit=0,_.offset=0)),s=a?w.searchCache(e,g&&!c?0:t,_):w.search(e,g&&!c?0:t,_),g&&!c&&(_.limit=t,_.offset=x),D&&(_.enrich=D),y){y[i]=s;continue}}if(b=(s=s.result||s)&&s.length,g&&b){if(_=[],D=0,this.db&&r){if(!c)for(w=u.length;w<r.length;w++){let e=r[w];if(e&&e.length)D++,_.push(e);else if(!o)return p?h:new sO(h,this)}}else for(let e=0,t;e<g.length;e+=2){if(!(t=this.tag.get(g[e])))if(o)continue;else return p?h:new sO(h,this);if((t=t&&t.get(g[e+1]))&&t.length)D++,_.push(t);else if(!o)return p?h:new sO(h,this)}if(D){if(!(b=(s=function(e,t,n,r,i){let s=i7(),o=[];for(let e=0,n;e<t.length;e++){n=t[e];for(let e=0;e<n.length;e++)s[n[e]]=1}if(i){for(let t=0,i;t<e.length;t++)if(s[i=e[t]]){if(r)r--;else if(o.push(i),s[i]=0,n&&0==--n)break}}else for(let n=0,r,i;n<e.result.length;n++)for(r=e.result[n],t=0;t<r.length;t++)s[i=r[t]]&&((o[n]||(o[n]=[])).push(i),s[i]=0);return o}(s,_,t,x,p)).length)&&!o)return p?s:new sO(s,this);D--}}if(b)d[f]=l,h.push(s),f++;else if(1===u.length)return p?h:new sO(h,this)}}if(y){if(this.db&&g&&g.length&&!c)for(v=0;v<g.length;v+=2){if(!(d=this.index.get(g[v])))if(o)continue;else return p?h:new sO(h,this);y.push(d.db.tag(g[v+1],t,x,!1))}let r=this;return Promise.all(y).then(function(i){return n&&(n.resolve=p),i.length&&(i=r.search(e,t,n,i)),i})}if(!f)return p?h:new sO(h,this);if(i&&(!v||!this.store))return h=h[0],p?h:new sO(h,this);for(x=0,y=[];x<d.length;x++){if(g=h[x],v&&g.length&&void 0===g[0].doc&&(this.db?y.push(g=this.index.get(this.field[0]).db.enrich(g)):g=sG.call(this,g)),i)return p?m?s$(e,g,this.index,i,m):g:new sO(g,this);h[x]={field:d[x],result:g}}if(v&&this.db&&y.length){let t=this;return Promise.all(y).then(function(n){for(let e=0;e<n.length;e++)h[e].result=n[e];return m&&(h=s$(e,h,t.index,i,m)),s?sR(h):h})}return m&&(h=s$(e,h,this.index,i,m)),s?sR(h):h},(y=sU.prototype).mount=function(e){let t=this.field;if(this.tag)for(let e=0,r;e<this.F.length;e++){r=this.F[e];var n=void 0;this.index.set(r,n=new oe({}
13,this.reg)),t===this.field&&(t=t.slice(0)),t.push(r),n.tag=this.tag.get(r)}n=[];let r={db:e.db,type:e.type,fastupdate:e.fastupdate};for(let i=0,s,o;i<t.length;i++){r.field=o=t[i],s=this.index.get(o);let l=new e.constructor(e.id,r);l.id=e.id,n[i]=l.mount(s),s.document=!0,i?s.bypass=!0:s.store=this.store}let i=this;return this.db=Promise.all(n).then(function(){i.db=!0})},y.commit=async function(){let e=[];for(let t of this.index.values())e.push(t.commit());await Promise.all(e),this.reg.clear()},y.destroy=function(){let e=[];for(let t of this.index.values())e.push(t.destroy());return Promise.all(e)},y.append=function(e,t){return this.add(e,t,!0)},y.update=function(e,t){return this.remove(e).add(e,t)},y.remove=function(e){for(var t of(i9(e)&&(e=se(e,this.key)),this.index.values()))t.remove(e,!0);if(this.reg.has(e)){if(this.tag&&!this.fastupdate)for(let n of this.tag.values())for(let r of n){t=r[0];let i=r[1],s=i.indexOf(e);s>-1&&(i.length>1?i.splice(s,1):n.delete(t))}this.store&&this.store.delete(e),this.reg.delete(e)}return this.cache&&this.cache.remove(e),this},y.clear=function(){let e=[];for(let t of this.index.values()){let n=t.clear();n.then&&e.push(n)}if(this.tag)for(let e of this.tag.values())e.clear();return this.store&&this.store.clear(),this.cache&&this.cache.clear(),e.length?Promise.all(e):this},y.contain=function(e){return this.db?this.index.get(this.field[0]).db.has(e):this.reg.has(e)},y.cleanup=function(){for(let e of this.index.values())e.cleanup();return this},y.get=function(e){return this.db?this.index.get(this.field[0]).db.enrich(e).then(function(e){return e[0]&&e[0].doc||null}):this.store.get(e)||null},y.set=function(e,t){return"object"==typeof e&&(e=se(t=e,this.key)),this.store.set(e,t),this},y.searchCache=sa,y.export=function(e,t,n=0,r=0){let i,s;if(n<this.field.length){let i=this.field[n];if((t=this.index.get(i).export(e,i,n,r=1))&&t.then){let r=this;return t.then(function(){return r.export(e,i,n+1)})}return this.export(e,i,n+1)}switch(r){case 0:i="reg",s=sX(this.reg),t=null;break;case 1:i="tag",s=this.tag&&sY(this.tag,this.reg.size),t=null;break;case 2:i="doc",s=this.store&&sq(this.store),t=null;break;default:return}return s0.call(this,e,t,i,s||null,n,r)},y.import=function(e,t){var n=e.split(".");"json"===n[n.length-1]&&n.pop();let r=n.length>2?n[0]:"";if(n=n.length>2?n[2]:n[1],this.worker&&r)return this.index.get(r).import(e);if(t){if("string"==typeof t&&(t=JSON.parse(t)),r)return this.index.get(r).import(n,t);switch(n){case"reg":this.fastupdate=!1,this.reg=sQ(t,this.reg);for(let e=0,t;e<this.field.length;e++)(t=this.index.get(this.field[e])).fastupdate=!1,t.reg=this.reg;if(this.worker){for(let n of(t=[],this.index.values()))t.push(n.import(e));return Promise.all(t)}break;case"tag":this.tag=sJ(t,this.tag);break;case"doc":this.store=sK(t,this.store)}}},sj(sU.prototype),oe.prototype.remove=function(e,t){let n=this.reg.size&&(this.fastupdate?this.reg.get(e):this.reg.has(e));if(n){if(this.fastupdate){for(let t=0,r,i;t<n.length;t++)if((r=n[t])&&(i=r.length))if(r[i-1]===e)r.pop();else{let t=r.indexOf(e);t>=0&&r.splice(t,1)}}else s2(this.map,e),this.depth&&s2(this.ctx,e);t||this.reg.delete(e)}return this.db&&(this.commit_task.push({del:e}),this.M&&ot(this)),this.cache&&this.cache.remove(e),this};let s3={memory:{resolution:1},performance:{resolution:3,fastupdate:!0,context:{depth:1,resolution:1}},match:{tokenize:"forward"},score:{resolution:9,context:{depth:2,resolution:3}}};function s4(e,t,n,r,i,s,o){let l,a;if(!(l=t[n])||o&&!l[o]){if(o?((t=l||(t[n]=i7()))[o]=1,(l=(a=e.ctx).get(o))?a=l:a.set(o,a=e.keystore?new sy(e.keystore):new Map)):(a=e.map,t[n]=1),(l=a.get(n))?a=l:a.set(n,a=l=[]),s){for(let n=0,s;n<l.length;n++)if((s=l[n])&&s.includes(i)){if(n<=r)return;s.splice(s.indexOf(i),1),e.fastupdate&&(t=e.reg.get(i))&&t.splice(t.indexOf(s),1);break}}if((a=a[r]||(a[r]=[])).push(i),0x7fffffff===a.length){if(t=new sx(a),e.fastupdate)for(let n of e.reg.values())n.includes(a)&&(n[n.indexOf(a)]=t);l[r]=a=t}e.fastupdate&&((r=e.reg.get(i))?r.push(a):e.reg.set(i,[a]))}}function s5(e,t,n,r,i){return n&&e>1?t+(r||0)<=e?n+(i||0):(e-1)/(t+(r||0))*(n+(i||0))+1|0:0}function s6(e,t,n,r,i,s,o){let l=e.length,a=e;if(l>1)a=sP(e,t,n,r,i,s,o);else if(1===l)return o?sN.call(null,e[0],n,r):new sO(e[0],this);return o?a:new sO(a,this)}function s7(e,t,n,r,i,s,o){return e=s9(this,e,t,n,r,i,s,o),this.db?e.then(function(e){return i?e||[]:new sO(e,this)}
13):e&&e.length?i?sN.call(this,e,n,r):new sO(e,this):i?[]:new sO([],this)}function s8(e,t,n,r){let i=[];if(e&&e.length){if(e.length<=r)return void t.push(e);for(let t=0,n;t<r;t++)(n=e[t])&&(i[t]=n);if(i.length)return void t.push(i)}if(!n)return i}function s9(e,t,n,r,i,s,o,l){let a;return(n&&(a=e.bidirectional&&t>n)&&(a=n,n=t,t=a),e.db)?e.db.get(t,n,r,i,s,o,l):e=n?(e=e.ctx.get(n))&&e.get(t):e.map.get(t)}function oe(e,t){if(!this||this.constructor!==oe)return new oe(e);if(e){var n=i8(e)?e:e.preset;n&&(e=Object.assign({},s3[n],e))}else e={};let r=!0===(n=e.context)?{depth:1}:n||{},i=i8(e.encoder)?sg[e.encoder]:e.encode||e.encoder||{};this.encoder=i.encode?i:"object"==typeof i?new so(i):{encode:i},this.resolution=e.resolution||9,this.tokenize=n=(n=e.tokenize)&&"default"!==n&&"exact"!==n&&n||"strict",this.depth="strict"===n&&r.depth||0,this.bidirectional=!1!==r.bidirectional,this.fastupdate=!!e.fastupdate,this.score=e.score||null,(n=e.keystore||0)&&(this.keystore=n),this.map=n?new sy(n):new Map,this.ctx=n?new sy(n):new Map,this.reg=t||(this.fastupdate?n?new sy(n):new Map:n?new s_(n):new Set),this.N=r.resolution||3,this.rtl=i.rtl||e.rtl||!1,this.cache=(n=e.cache||null)&&new su(n),this.resolve=!1!==e.resolve,(n=e.db)&&(this.db=this.mount(n)),this.M=!1!==e.commit,this.commit_task=[],this.commit_timer=null,this.priority=e.priority||4}function ot(e){e.commit_timer||(e.commit_timer=setTimeout(function(){e.commit_timer=null,e.db.commit(e)},1))}oe.prototype.add=function(e,t,n,r){if(t&&(e||0===e)){if(!r&&!n&&this.reg.has(e))return this.update(e,t);r=this.depth;let u=(t=this.encoder.encode(t,!r)).length;if(u){let c=i7(),h=i7(),d=this.resolution;for(let f=0;f<u;f++){let p=t[this.rtl?u-1-f:f];var i=p.length;if(i&&(r||!h[p])){var s=this.score?this.score(t,p,f,null,0):s5(d,u,f),o="";switch(this.tokenize){case"tolerant":if(s4(this,h,p,s,e,n),i>2){for(let t=1,r,l,a,u;t<i-1;t++)r=p.charAt(t),l=p.charAt(t+1),s4(this,h,o=(a=p.substring(0,t)+l)+r+(u=p.substring(t+2)),s,e,n),s4(this,h,o=a+u,s,e,n);s4(this,h,p.substring(0,p.length-1),s,e,n)}break;case"full":if(i>2){for(let r=0,a;r<i;r++)for(s=i;s>r;s--){o=p.substring(r,s),a=this.rtl?i-1-r:r;var l=this.score?this.score(t,p,f,o,a):s5(d,u,f,i,a);s4(this,h,o,l,e,n)}break}case"bidirectional":case"reverse":if(i>1){for(l=i-1;l>0;l--){o=p[this.rtl?i-1-l:l]+o;var a=this.score?this.score(t,p,f,o,l):s5(d,u,f,i,l);s4(this,h,o,a,e,n)}o=""}case"forward":if(i>1){for(l=0;l<i;l++)s4(this,h,o+=p[this.rtl?i-1-l:l],s,e,n);break}default:if(s4(this,h,p,s,e,n),r&&u>1&&f<u-1)for(i=this.N,o=p,s=Math.min(r+1,this.rtl?f+1:u-f),l=1;l<s;l++){p=t[this.rtl?u-1-f-l:f+l],a=this.bidirectional&&p>o;let r=this.score?this.score(t,o,f,p,l-1):s5(i+(u/2>i?0:1),u,f,s-1,l-1);s4(this,c,a?o:p,r,e,n,a?p:o)}}}}this.fastupdate||this.reg.add(e)}}return this.db&&(this.commit_task.push(n?{ins:e}:{del:e}),this.M&&ot(this)),this},oe.prototype.search=function(e,t,n){if(n||(t||"object"!=typeof e?"object"==typeof t&&(n=t,t=0):(n=e,e="")),n&&n.cache)return n.cache=!1,e=this.searchCache(e,t,n),n.cache=!0,e;let r=[],i,s,o,l=0,a,u,c,h,d;n&&(e=n.query||e,t=n.limit||t,l=n.offset||0,s=n.context,o=n.suggest,d=(a=n.resolve)&&n.enrich,c=n.boost,h=n.resolution,u=this.db&&n.tag),void 0===a&&(a=this.resolve),s=this.depth&&!1!==s;let f=this.encoder.encode(e,!s);if(i=f.length,t=t||100*!!a,1===i)return s7.call(this,f[0],"",t,l,a,d,u);if(2===i&&s&&!o)return s7.call(this,f[1],f[0],t,l,a,d,u);let p=i7(),m=0,g;if(s&&(g=f[0],m=1),h||0===h||(h=g?this.N:this.resolution),this.db){if(this.db.search&&!1!==(n=this.db.search(this,f,t,l,o,a,d,u)))return n;let e=this;return async function(){for(let t,n;m<i;m++){if((n=f[m])&&!p[n]){if(p[n]=1,t=s8(t=await s9(e,n,g,0,0,!1,!1),r,o,h)){r=t;break}g&&(o&&t&&r.length||(g=n))}o&&g&&m===i-1&&!r.length&&(h=e.resolution,g="",m=-1,p=i7())}return s6(r,h,t,l,o,c,a)}()}for(let e,t;m<i;m++){if((t=f[m])&&!p[t]){if(p[t]=1,e=s8(e=s9(this,t,g,0,0,!1,!1),r,o,h)){r=e;break}g&&(o&&e&&r.length||(g=t))}o&&g&&m===i-1&&!r.length&&(h=this.resolution,g="",m=-1,p=i7())}return s6(r,h,t,l,o,c,a)},(y=oe.prototype).mount=function(e){return this.commit_timer&&(clearTimeout(this.commit_timer),this.commit_timer=null),e.mount(this)},y.commit=function(){return this.commit_timer&&(clearTimeout(this.commit_timer),this.commit_timer=null),this.db.commit(this)},y.destroy=function(){return this.commit_timer&&(clearTimeout(this.commit_timer),this.commit_timer=null),this.db.destroy()},y.clear=function(){return this.map.clear(),this.ctx.clear(),this.reg.clear(),this.cache&&this.cache.clear(),this.db?(this.commit_timer&&clearTimeout(this.commit_timer),this.commit_timer=null,this.commit_task=[],this.db.clear()):this},y.append=function(e,t){return this.add(e,t,!0)},y.contain=function(e){return this.db?this.db.has(e):this.reg.has(e)},y.update=function(e,t){let n=this,r=this.remove(e);return r&&r.then?r.then(()=>n.add(e,t)):this.add(e,t)},y.cleanup=function(){return this.fastupdate&&(s2(this.map),this.depth&&s2(this.ctx)),this},y.searchCache=sa,y.export=function(e,t,n=0,r=0){let i,s;switch(r){case 0:i="reg",s=sX(this.reg);break;case 1:i="cfg",s=null;break;case 2:i="map",s=sq(this.map,this.reg.size);break;case 3:i="ctx",s=sY(this.ctx,this.reg.size);break;default:return}return s0.call(this,e,t,i,s,n,r)},y.import=function(e,t){if(t)switch("string"==typeof t&&(t=JSON.parse(t)),"json"===(e=e.split("."))[e.length-1]&&e.pop(),3===e.length&&e.shift(),e=e.length>1?e[1]:e[0]){case"reg":this.fastupdate=!1,this.reg=sQ(t,this.reg);break;case"map":this.map=sK(t,this.map);break;case"ctx":this.ctx=sJ(t,this.ctx)}},y.serialize=function(e=!0){let t="",n="",r="";if(this.reg.size){let e;for(var i of this.reg.keys())e||(e=typeof i),t+=(t?",":"")+("string"===e?'"'+i+'"':i);for(let s of(t="index.reg=new Set(["+t+"]);",n="index.map=new Map(["+(n=s1(this.map,e))+"]);",this.ctx.entries())){i=s[0];let t=s1(s[1],e);t='["'+i+'",'+(t="new Map(["+t+"])")+"]",r+=(r?",":"")+t}r="index.ctx=new Map(["+r+"]);"}return e?"function inject(index){"+t+n+r+"}":t+n+r},sj(oe.prototype);let on="u">typeof window&&(window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB),or=["map","ctx","tag","reg","cfg"],oi=i7();function os(e,t,n){let r=e.value,i,s=0;for(let e=0,o;e<r.length;e++){if(o=n?r:r[e]){for(let n=0,s,l;n<t.length;n++)if(l=t[n],(s=o.indexOf(l))>=0)if(i=1,o.length>1)o.splice(s,1);else{r[e]=[];break}s+=o.length}if(n)break}s?i&&e.update(r):e.delete(),e.continue()}function oo(e,t){return new Promise((n,r)=>{e.onsuccess=e.oncomplete=function(){t&&t(this.result),t=null,n(this.result)},e.onerror=e.onblocked=r,e=null})}(y=(function e(t,n={}){if(!this||this.constructor!==e)return new e(t,n);"object"==typeof t&&(n=t,t=t.name),t||console.info("Default storage space was used, because a name was not passed."),this.id="flexsearch"+(t?":"+t.toLowerCase().replace(/[^a-z0-9_\-]/g,""):""),this.field=n.field?n.field.toLowerCase().replace(/[^a-z0-9_\-]/g,""):"",this.type=n.type,this.fastupdate=this.support_tag_search=!1,this.db=null,this.h={}}).prototype).mount=function(e){return e.index?e.mount(this):(e.db=this,this.open())},y.open=function(){if(this.db)return this.db;let e=this;navigator.storage&&navigator.storage.persist&&navigator.storage.persist(),oi[e.
13id]||(oi[e.id]=[]),oi[e.id].push(e.field);let t=on.open(e.id,1);return t.onupgradeneeded=function(){let t=e.db=this.result;for(let n=0,r;n<or.length;n++){r=or[n];for(let n=0,i;n<oi[e.id].length;n++)i=oi[e.id][n],t.objectStoreNames.contains(r+("reg"!==r&&i?":"+i:""))||t.createObjectStore(r+("reg"!==r&&i?":"+i:""))}},e.db=oo(t,function(t){e.db=t,e.db.onversionchange=function(){e.close()}})},y.close=function(){this.db&&this.db.close(),this.db=null},y.destroy=function(){return oo(on.deleteDatabase(this.id))},y.clear=function(){let e=[];for(let t=0,n;t<or.length;t++){n=or[t];for(let t=0,r;t<oi[this.id].length;t++)r=oi[this.id][t],e.push(n+("reg"!==n&&r?":"+r:""))}let t=this.db.transaction(e,"readwrite");for(let n=0;n<e.length;n++)t.objectStore(e[n]).clear();return oo(t)},y.get=function(e,t,n=0,r=0,i=!0,s=!1){e=this.db.transaction((t?"ctx":"map")+(this.field?":"+this.field:""),"readonly").objectStore((t?"ctx":"map")+(this.field?":"+this.field:"")).get(t?t+":"+e:e);let o=this;return oo(e).then(function(e){let t=[];if(!e||!e.length)return t;if(i){if(!n&&!r&&1===e.length)return e[0];for(let i=0,s;i<e.length;i++)if((s=e[i])&&s.length){if(r>=s.length){r-=s.length;continue}let e=n?r+Math.min(s.length-r,n):s.length;for(let n=r;n<e;n++)t.push(s[n]);if(r=0,t.length===n)break}return s?o.enrich(t):t}return e})},y.tag=function(e,t=0,n=0,r=!1){e=this.db.transaction("tag"+(this.field?":"+this.field:""),"readonly").objectStore("tag"+(this.field?":"+this.field:"")).get(e);let i=this;return oo(e).then(function(e){return e&&e.length&&!(n>=e.length)?t||n?(e=e.slice(n,n+t),r?i.enrich(e):e):e:[]})},y.enrich=function(e){"object"!=typeof e&&(e=[e]);let t=this.db.transaction("reg","readonly").objectStore("reg"),n=[];for(let r=0;r<e.length;r++)n[r]=oo(t.get(e[r]));return Promise.all(n).then(function(t){for(let n=0;n<t.length;n++)t[n]={id:e[n],doc:t[n]?JSON.parse(t[n]):null};return t})},y.has=function(e){return oo(e=this.db.transaction("reg","readonly").objectStore("reg").getKey(e)).then(function(e){return!!e})},y.search=null,y.info=function(){},y.transaction=function(e,t,n){e+="reg"!==e&&this.field?":"+this.field:"";let r=this.h[e+":"+t];if(r)return n.call(this,r);let i=this.db.transaction(e,t);this.h[e+":"+t]=r=i.objectStore(e);let s=n.call(this,r);return this.h[e+":"+t]=null,oo(i).finally(function(){return s})},y.commit=async function(e){let t=e.commit_task,n=[];e.commit_task=[];for(let e=0,r;e<t.length;e++)(r=t[e]).del&&n.push(r.del);n.length&&await this.remove(n),e.reg.size&&(await this.transaction("map","readwrite",function(t){for(let n of e.map){let e=n[0],r=n[1];r.length&&(t.get(e).onsuccess=function(){var n;let i=this.result;if(i&&i.length){let e=Math.max(i.length,r.length);for(let t=0,s,o;t<e;t++)if((o=r[t])&&o.length){if((s=i[t])&&s.length)for(n=0;n<o.length;n++)s.push(o[n]);else i[t]=o;n=1}}else i=r,n=1;n&&t.put(i,e)})}}),await this.transaction("ctx","readwrite",function(t){for(let n of e.ctx){let e=n[0];for(let r of n[1]){let n=r[0],i=r[1];i.length&&(t.get(e+":"+n).onsuccess=function(){var r;let s=this.result;if(s&&s.length){let e=Math.max(s.length,i.length);for(let t=0,n,o;t<e;t++)if((o=i[t])&&o.length){if((n=s[t])&&n.length)for(r=0;r<o.length;r++)n.push(o[r]);else s[t]=o;r=1}}else s=i,r=1;r&&t.put(s,e+":"+n)})}}}),e.store?await this.transaction("reg","readwrite",function(t){for(let n of e.store){let e=n[0],r=n[1];t.put("object"==typeof r?JSON.stringify(r):1,e)}}):e.bypass||await this.transaction("reg","readwrite",function(t){for(let n of e.reg.keys())t.put(1,n)}),e.tag&&await this.transaction("tag","readwrite",function(t){for(let n of e.tag){let e=n[0],r=n[1];r.length&&(t.get(e).onsuccess=function(){let n=this.result;n=n&&n.length?n.concat(r):r,t.put(n,e)})}}),e.map.clear(),e.ctx.clear(),e.tag&&e.tag.clear(),e.store&&e.store.clear(),e.document||e.reg.clear())},y.remove=function(e){return"object"!=typeof e&&(e=[e]),Promise.all([this.transaction("map","readwrite",function(t){t.openCursor().onsuccess=function(){let t=this.result;t&&os(t,e)}}),this.transaction("ctx","readwrite",function(t){t.openCursor().onsuccess=function(){let t=this.result;t&&os(t,e)}}),this.transaction("tag","readwrite",function(t){t.openCursor().onsuccess=function(){let t=this.result;t&&os(t,e,!0)}}),this.transaction("reg","readwrite",function(t){for(let n=0;n<e.length;n++)t.delete(e[n])})])};let ol=/[\u3040-\u309f\u30a0-\u30ff\u31f0-\u31ff]/u,oa=/[\u3131-\u314e|\u314f-\u3163|\uac00-\ud7a3]/u,ou=/[\u0400-\u04FF]/u;function oc(e){let t=e.toString().toLowerCase().normalize("NFD");if(ou.test(String(e)))return t.normalize("NFC");let n=t.replace(/[\u0300-\u036f]/g,"");return ol.test(String(e))||oa.test(String(e))?n.normalize("NFC"):n}function oh(e){return e.charCodeAt(0)>255?3:1}function od(e,t){let n=0,r=0;for(let i=0;i<e.length&&!(r>=t);i++)r+=oh(e.charAt(i)),n++;return n}function of(e){let t=0;for(let n=0;n<e.length;n++)t+=oh(e.charAt(n));return t}let op=/[\u3131-\u314e|\u314f-\u3163|\uac00-\ud7a3]|[\u4E00-\u9FCC\u3400-\u4DB5\uFA0E\uFA0F\uFA11\uFA13\uFA14\uFA1F\uFA21\uFA23\uFA24\uFA27-\uFA29]|[\ud840-\ud868][\udc00-\udfff]|\ud869[\udc00-\uded6\udf00-\udfff]|[\ud86a-\ud86c][\udc00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d]|[\u3041-\u3096]|[\u30A1-\u30FA]/giu,om=/[\u0400-\u04FF]/g;function og(e,t){let n,r=[];do(n=t.exec(e))&&r.push(n[0]);while(n)return r}class ov{#e;#t;#n;#r;async #i(e,t){let r=`${t??""}###${e??""}`;if(!eW.z[r])return[];let i=t?`.${t.replace(".","_")}`:"",s=e?`.${e}`:"",o=`${(0,e2.UC)(n.p)}/static/${e2.OK}${i}${s}.${eW.z[r]}.json`,l=e=>{console.error("Failed to fetch search index, please reload the page and try again."),console.error(e)};try{let e=await fetch(o);if(e.ok)return e.json();l(e)}catch(e){l(e)}return[]}async fetchSearchIndex(e){if(this.#r)return this.#r;let{currentLang:t,currentVersion:n}=e,r=e.versioned??!0;return this.#r=this.#i(t,r?n:""),this.#r}async init(e){let t=(await this.fetchSearchIndex(e)).map(e=>({...e,normalizedContent:oc(e.content),headers:e.toc.map(e=>oc(e.text)).join(" "),normalizedTitle:oc(e.title)})),n={tokenize:"full",document:{id:"id",store:!0,index:["normalizedTitle","headers","normalizedContent"]},cache:100};for(let e of(this.#e=new sU(n),this.#t=new sU({...n,encoder:{finalize:e=>e.flatMap(e=>og(e,op))}}),this.#n=new sU({...n,encoder:{finalize:e=>e.flatMap(e=>og(e,om))}}),t))this.#e.addAsync(e.routePath,e),this.#t.addAsync(e.routePath,e),this.#n.addAsync(e.routePath,e)}async search(e){let{keyword:t,limit:n}=e,r={enrich:!0,limit:n,index:["normalizedTitle","headers","normalizedContent"]},i=await Promise.all([this.#e?.searchAsync(t,r),this.#t?.searchAsync(t,r),this.#n?.searchAsync(t,r)]),s=[],o=new Set;
13return i.forEach(e=>{e&&function(e){for(let t of e)t.result.forEach(e=>{let t=e.id;!o.has(t)&&(o.add(t),e.doc&&s.push(e.doc))})}(e)}),[{index:i4,hits:s}]}}var ox=((x={}).Default="default",x.Custom="custom",x);class oy{#s;#o=i4;#l;constructor(e){this.#s=e,this.#o=e.indexName??i4,this.#l=new ov}async init(){await this.#l?.init(this.#s)}async fetchSearchIndex(){return this.#l?.fetchSearchIndex(this.#s)}async match(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:7,n=await this.#l?.search({keyword:e,limit:t}),r=oc(e),i=n?.find(e=>this.#a(e.index))||{index:i4,renderType:ox.Default,hits:[]};return[{group:this.#o,renderType:ox.Default,result:this.#u(r,i)},...(n?.filter(e=>!this.#a(e.index))||[]).map(e=>({group:e.index,renderType:ox.Default,result:this.#u(r,e)}))]}#u(e,t){let n=[];return t?.hits.forEach(t=>{this.#c(t,e,n);let r=this.#h(t,e,n);this.#d(t,e,n,r)}),n}#c(e,t,n){let{title:r=""}=e,i=oc(r);return!!i.includes(t)&&(n.push({type:"title",title:r,header:r,link:e.routePath,query:t,highlightInfoList:[{start:i.indexOf(t),length:of(t)}]}),!0)}#h(e,t,n){let r=new WeakSet,{toc:i=[],title:s=""}=e;for(let[o,l]of i.entries())if(oc(l.text).includes(t)){let a=(function(e,t){let n=e[t],r=t,i=[n];for(;n&&n.depth>2;){let t=!1;for(let s=r-1;s>=0;s--){let o=e[s];if(o.depth>1&&o.depth===n.depth-1){n=o,r=s,i.unshift(n),t=!0;break}}if(!t)break}return i})(i,o).map(e=>e.text).join(" > "),u=oc(a).indexOf(t),c=`${s} > `;n.push({type:"header",title:e.title,header:`${c}${a}`,highlightInfoList:[{start:u+c.length,length:of(t)}],link:`${e.routePath}#${l.id}`,query:t}),r.add(l)}return r}#d(e,t,n,r){let{content:i,toc:s}=e;if(!i.length)return;let o=oc(i),l=o.indexOf(t),a=s.map(e=>e.charIndex),u=e=>s[a.findIndex((t,n)=>{if(!(n<s.length-1))return t<e;{let r=a[n+1];if(t<=e&&r>=e)return!0}return!1})],c=e=>e&&r?.has(e);if(-1===l){let r=e._matchesPosition?.content;if(!r?.length)return;let s=e._matchesPosition.content[0].start,o=u(s);if(c(o))return;let l=od(i,s),a=od(i,s+100),h=i.slice(l,a),d=[],f=s+100;for(let t of e._matchesPosition?.content||[]){let{start:e,length:n}=t;if(e>=s&&e+n<=f){let t=od(i,e)-l+3;d.push({start:t,length:n})}}n.push({type:"content",title:e.title,header:o?.text??e.title,link:`${e.routePath}${o?`#${o.id}`:""}`,query:t,highlightInfoList:d,statement:`...${h}...`});return}for(;-1!==l;){let s=u(l),a=i.slice(0,l).lastIndexOf("\n");a=-1===a?0:a;let h=i.indexOf("\n\n",l+t.length);
13h=-1===h?i.length:h;let d=i.slice(a,h),f=oc(d=this.#f(d,t)).indexOf(oc(t)),p=[{start:f,length:of(t)}];!c(s)&&(n.push({type:"content",title:e.title,header:s?.text??e.title,statement:d,highlightInfoList:p,link:`${e.routePath}${s?`#${s.id}`:""}`,query:t}),s&&r?.add(s)),l=o.indexOf(t,l+d.length-f)}}#f(e,t){if(e.length<=100)return e;let n=oc(e).indexOf(oc(t)),r=Math.floor((100-t.length)/2),i=e.slice(0,n);i.length>r&&(i=`...${e.slice(n-r+3,n)}`);let s=e.slice(n+t.length);return s.length>r&&(s=`${e.slice(n+t.length,n+r-3)}...`),i+t+s}#a(e){return e===this.#o||e===i4}}function o_(e){let{query:t}=e,n=eo();return(0,_.jsxs)("div",{className:"rp-no-search-result",children:[(0,_.jsx)(X.Ge,{icon:X.Fw,className:"rp-no-search-result__icon"}),(0,_.jsxs)("p",{className:"rp-no-search-result__text",children:[n("searchNoResultsText")," ",(0,_.jsxs)("b",{children:['"',t,'"']})]}),(0,_.jsx)("p",{className:"rp-no-search-result__suggestion",children:n("searchSuggestedQueryText")})]})}function oD(e){let{suggestion:t,closeSearch:n,isCurrent:r,setCurrentSuggestionIndex:i,scrollTo:s,onMouseMove:o}=e,l={title:X.Mk,header:X.D7,content:X.g6}[t.type],a=(0,D.useRef)(null);r&&a.current?.offsetTop&&s(a.current?.offsetTop,a.current?.offsetHeight);let u=(e,t)=>{let n=[],r=0;for(let i of t){let{start:t,length:s}=i,o=e.slice(r,t),l=function(e,t,n){var r=e.slice(t);let i="",s=0,o=r.length;for(let e=0;e<o&&!((s+=oh(r.charAt(e)))>0+n);e++)s>0&&(i+=r.charAt(e));return i}(e,t,s);n.push(o),n.push((0,_.jsx)("span",{className:"rp-suggest-item__mark",children:l},t)),r=t+l.length}return r<e.length&&n.push(e.slice(r)),n},c=null;switch(t.type){case"title":case"header":c=(()=>
13{if("header"===t.type||"title"===t.type){let{header:e,highlightInfoList:n}=t;return(0,_.jsx)("div",{className:"rp-suggest-item__header",children:u(e,n)})}return(0,_.jsx)("div",{className:"rp-suggest-item__header",children:t.header})})();break;case"content":c=(0,_.jsxs)(_.Fragment,{children:[(()=>{if("content"!==t.type)return(0,_.jsx)("div",{});let{statement:e,highlightInfoList:n}=t;return(0,_.jsx)("div",{className:"rp-suggest-item__statement",children:u(e,n)})})(),(0,_.jsx)("p",{className:"rp-suggest-item__title",children:t.title})]})}return(0,_.jsx)("li",{className:`rp-suggest-item ${r?"rp-suggest-item--current":""}`,onMouseEnter:i,onMouseMove:o,ref:a,children:(0,_.jsx)(X.N_,{href:t.link,className:"rp-suggest-item__link",onClick:e=>{n(),e.stopPropagation()},children:(0,_.jsxs)("div",{className:"rp-suggest-item__container",children:[(0,_.jsx)("div",{className:"rp-suggest-item__icon",children:(0,_.jsx)(X.Ge,{icon:l})}),(0,_.jsx)("div",{className:"rp-suggest-item__content",children:(0,_.jsx)("span",{children:c})}),(0,_.jsx)("div",{className:"rp-suggest-item__action-icon",children:(0,_.jsx)(X.Ge,{icon:X.uO})})]})})},t.link)}n(8197),n(4201),n(4112);let ow=e=>e.reduce((e,t)=>{let n=t.title;return e.has(n)||e.set(n,[]),e.get(n).push(t),e},new Map);function ob(e){var t;let n,{focused:r,setFocused:i}=e,[s,o]=(0,D.useState)(""),[l,a]=(0,D.useState)([]),u=(0,D.useRef)(null),[c,h]=(0,D.useState)(!1),[d,f]=(0,D.useState)(0),[p,m]=(0,D.useState)(0),g=(0,D.useRef)(null),v=(0,D.useRef)(null),[x,y]=(0,D.useState)("initial"),w=(0,D.useRef)(null),b=(0,D.useRef)(null),j=(0,D.useRef)({pageX:null,pageY:null}),[F,C]=(0,D.useState)(!1),A=(e,t)=>{let n=w.current?.offsetHeight,r=w.current?.scrollTop;if(F&&void 0!==n&&void 0!==r){let i=e+t-n-(1===l.length?50:-10);i>r&&w.current?.scrollTo({top:i});let s=1===l.length?e-70:e-10;s<r&&w.current?.scrollTo({top:s})}},{siteData:k,page:{lang:E,version:N}}=eG(),B=eo(),M=(0,X.X6)(),{search:S,title:T}=k,z="boolean"!=typeof S&&(S?.versioned??!0),L=[{group:T,result:[],renderType:ox.Default}],$=l[d]?.result??[],O=l[d]?.renderType??ox.Default;if(!1===S)return null;let H=()=>{if(g.current)return g.current;let e={currentLang:E,currentVersion:N};return g.current=new oy({indexName:T,...S,...e}),v.current=e,g.current};async function P(){if("initial"!==x)return;let e=H();y("initing"),await e.init(),y("inited");let t=u.current?.value;t&&(a(await e.match(t)||L),h(!1))}let I=()=>{i(!1),f(0),m(0)};(0,D.useEffect)(()=>{let e=e=>{switch(e.code){case"KeyK":(e.ctrlKey||e.metaKey)&&(e.preventDefault(),i(!r));break;case"ArrowDown":if(e.isComposing)return;r&&(e.preventDefault(),$&&O===ox.Default&&(C(!0),m((p+1)%$.length)));break;case"ArrowUp":if(e.isComposing)return;if(r&&(e.preventDefault(),O===ox.Default)){let e=$.length;C(!0),m((p-1+e)%e)}break;case"Enter":if(e.isComposing)return;p>=0&&O===ox.Default&&(M(Array.from(ow($).values()).flat()[p].link),I());break;case"Escape":I()}};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[m,i,r,d,$,p]),(0,D.useEffect)(()=>{r?(a(L),P()):o("")},[r]),(0,D.useEffect)(()=>{let e;return"requestIdleCallback"in window&&!g.current&&(e=window.requestIdleCallback(()=>{H().fetchSearchIndex()})),()=>{void 0!==e&&"cancelIdleCallback"in window&&window.cancelIdleCallback(e)}},[]),(0,D.useEffect)(()=>{let{currentLang:e,currentVersion:t}=v.current??{},n=z&&N!==t;(E!==e||n)&&(y("initial"),g.current=null,H().fetchSearchIndex())},[E,N,z]);let R=(t=async e=>{if(o(e),e){let t=[],n=await g.current?.match(e);n&&t.push(...n);{let n=await i3.onSearch(e,t);n&&t.push(...n.map(e=>({renderType:ox.Custom,...e})))}u.current?.value===e&&(m(0),a(t||L),h(!1))}},(n=(0,D.useRef)(t)).current=t,(0,D.useCallback)(il(function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.current(...t)},150),[])),W=(e,t,n)=>{if(n)return(0,_.jsx)("div",{className:"rp-search-panel__loading",children:(0,_.jsx)(X.Ge,{icon:X.ML})});if(0===e.length&&"inited"===x)return(0,_.jsx)(o_,{query:t});let r=ow(e),i=-1;return(0,_.jsx)("ul",{children:Array.from(r.keys()).map(e=>{let t=r.get(e)||[];return(0,_.jsx)("li",{children:(0,_.jsx)("ul",{className:"rp-search-panel__group",children:t.map(e=>{let t=++i;return(0,_.jsx)(oD,{suggestion:e,isCurrent:t===p,setCurrentSuggestionIndex:e=>{(j.current.pageX!==e.pageX||j.current.pageY!==e.pageY)&&(C(!1),m(t))},onMouseMove:e=>{j.current={pageX:e.pageX,pageY:e.pageY}},closeSearch:()=>{I()},inCurrentDocIndex:0===d,scrollTo:A},`${e.title}-${t}`)})})},e)})})};return(0,_.jsx)(_.Fragment,{children:r&&(0,tE.createPortal)((0,_.jsx)("div",{className:"rp-search-panel__mask",onClick:()=>{I()},children:(0,_.jsxs)("div",{className:"rp-search-panel__modal",onClick:e=>{i(!0),e.stopPropagation()},children:[(0,_.jsxs)("div",{className:"rp-search-panel__header",children:[(0,_.jsxs)("div",{className:"rp-search-panel__input-form",children:[(0,_.jsx)("label",{children:(0,_.jsx)(X.Ge,{icon:X.C0})}),(0,_.jsx)("input",{className:"rp-search-panel__input",ref:u,placeholder:B("searchPlaceholderText"),"aria-label":"SearchPanelInput",autoComplete:"off",autoFocus:!0,inputMode:"search",onChange:e=>R(e.target.value)}),(0,_.jsx)("label",{children:(0,_.jsx)(X.Ge,{icon:X.gz,className:"rp-search-panel__close",onClick:e=>{u.current&&(e.stopPropagation(),s?(u.current.value="",o("")):I())}})})]}),(0,_.jsx)("h2",{className:"rp-search-panel__cancel",onClick:e=>{e.stopPropagation(),I()},children:B("searchPanelCancelText")})]}),s&&"inited"===x?(0,_.jsx)("div",{className:"rp-search-panel__results rp-scrollbar",ref:w,children:((e,t)=>{if(1===e.length){let n=e[0].result;return 0!==n.length||t?(0,_.jsx)("div",{ref:b,children:W(n,s,t)}):(0,_.jsx)(o_,{query:s})}return(0,_.jsx)(X.tU,{className:"rp-search-panel__tabs",onChange:e=>{f(e),m(0)},keepDOM:!1,ref:b,children:e.map(e=>(0,_.jsxs)(X.oz,{label:e.group,children:[e.renderType===ox.Default&&W(e.result,s,t),e.renderType===ox.Custom&&i3.render(e.result)]},e.group))})})(l,c)}):null]})}),document.getElementById("__rspress_modal_container"))})}function oj(e){let{depth:t,dividerType:n}=e;return(0,_.jsx)("div",{className:"dashed"===n?"rp-sidebar-divider--dashed":"rp-sidebar-divider",style:{paddingLeft:0===t?"12px":`calc(12px * ${t} + 12px)`}})}n(678),n(9928),n(6420);
13let oF=e=>"object"==typeof e&&null!=e&&1===e.nodeType,oC=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,oA=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){let n,r=getComputedStyle(e,null);return oC(r.overflowY,t)||oC(r.overflowX,t)||!!(n=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e))&&(n.clientHeight<e.scrollHeight||n.clientWidth<e.scrollWidth)}return!1},ok=(e,t,n,r,i,s,o,l)=>s<e&&o>t||s>e&&o<t?0:s<=e&&l<=n||o>=t&&l>=n?s-e-r:o>t&&l<n||s<e&&l>n?o-t+i:0,oE=e=>{let t=e.parentElement;return null==t?e.getRootNode().host||null:t},oN=(e,t)=>{var n,r,i,s;let o;if("u"<typeof document)return[];let{scrollMode:l,block:a,inline:u,boundary:c,skipOverflowHiddenElements:h}=t,d="function"==typeof c?c:e=>e!==c;if(!oF(e))throw TypeError("Invalid target");let f=document.scrollingElement||document.documentElement,p=[],m=e;for(;oF(m)&&d(m);){if((m=oE(m))===f){p.push(m);break}null!=m&&m===document.body&&oA(m)&&!oA(document.documentElement)||null!=m&&oA(m,h)&&p.push(m)}let g=null!=(r=null==(n=window.visualViewport)?void 0:n.width)?r:innerWidth,v=null!=(s=null==(i=window.visualViewport)?void 0:i.height)?s:innerHeight,{scrollX:x,scrollY:y}=window,{height:_,width:D,top:w,right:b,bottom:j,left:F}=e.getBoundingClientRect(),{top:C,right:A,bottom:k,left:E}={top:parseFloat((o=window.getComputedStyle(e)).scrollMarginTop)||0,right:parseFloat(o.scrollMarginRight)||0,bottom:parseFloat(o.scrollMarginBottom)||0,left:parseFloat(o.scrollMarginLeft)||0},N="start"===a||"nearest"===a?w-C:"end"===a?j+k:w+_/2-C+k,B="center"===u?F+D/2-E+A:"end"===u?b+A:F-E,M=[];for(let e=0;e<p.length;e++){let t=p[e],{height:n,width:r,top:i,right:s,bottom:o,left:c}=t.getBoundingClientRect();if("if-needed"===l&&w>=0&&F>=0&&j<=v&&b<=g&&(t===f&&!oA(t)||w>=i&&j<=o&&F>=c&&b<=s))break;let h=getComputedStyle(t),d=parseInt(h.borderLeftWidth,10),m=parseInt(h.borderTopWidth,10),C=parseInt(h.borderRightWidth,10),A=parseInt(h.borderBottomWidth,10),k=0,E=0,S="offsetWidth"in t?t.offsetWidth-t.clientWidth-d-C:0,T="offsetHeight"in t?t.offsetHeight-t.clientHeight-m-A:0,z="offsetWidth"in t?0===t.offsetWidth?0:r/t.offsetWidth:0,L="offsetHeight"in t?0===t.offsetHeight?0:n/t.offsetHeight:0;if(f===t)k="start"===a?N:"end"===a?N-v:"nearest"===a?ok(y,y+v,v,m,A,y+N,y+N+_,_):N-v/2,E="start"===u?B:"center"===u?B-g/2:"end"===u?B-g:ok(x,x+g,g,d,C,x+B,x+B+D,D),k=Math.max(0,k+y),E=Math.max(0,E+x);else{k="start"===a?N-i-m:"end"===a?N-o+A+T:"nearest"===a?ok(i,o,n,m,A+T,N,N+_,_):N-(i+n/2)+T/2,E="start"===u?B-c-d:"center"===u?B-(c+r/2)+S/2:"end"===u?B-s+C+S:ok(c,s,r,d,C+S,B,B+D,D);let{scrollLeft:e,scrollTop:l}=t;k=0===L?0:Math.max(0,Math.min(l+k/L,t.scrollHeight-n/L+T)),E=0===z?0:Math.max(0,Math.min(e+E/z,t.scrollWidth-r/z+S)),N+=l-k,B+=e-E}M.push({el:t,top:k,left:E})}return M};function oB(e,t){let n;if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;let r={top:parseFloat((n=window.getComputedStyle(e)).scrollMarginTop)||0,right:parseFloat(n.scrollMarginRight)||0,bottom:parseFloat(n.scrollMarginBottom)||0,left:parseFloat(n.scrollMarginLeft)||0};if("object"==typeof t&&"function"==typeof t.behavior)return t.behavior(oN(e,t));let i="boolean"==typeof t||null==t?void 0:t.behavior;for(let{el:n,top:s,left:o}of oN(e,!1===t?{block:"end",inline:"nearest"}:t===Object(t)&&0!==Object.keys(t).length?t:{block:"start",inline:"nearest"})){let e=s-r.top+r.bottom,t=o-r.left+r.right;n.scroll({top:e,left:t,behavior:i})}}function oM(e){let{active:t,text:n,icon:r,tag:i,link:s,context:o,className:l,left:a,right:u,onClick:c,depth:h}=e,d=(0,D.useRef)(null),[f,p]=(0,D.useTransition)();(0,D.useEffect)(()=>{t&&d.current&&oB(d.current,{scrollMode:"if-needed",block:"center",inline:"center",boundary:e=>!(e.classList.contains("rp-doc-layout__sidebar")||e.classList.contains("rspress-doc"))})},[t]);let m=(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)("div",{className:"rp-sidebar-item__left",ref:d,children:[r&&(0,_.jsx)(X.Ge,{icon:r,className:"rp-sidebar-item__icon"}),(0,_.jsx)("span",{className:"rp-doc",...(0,X.nl)(n)}),a]}),(0,_.jsxs)("div",{className:"rp-sidebar-item__right",children:[(0,_.jsx)(X.OT,{tag:i}),u]})]});return s?(0,_.jsx)(X.N_,{href:s,startTransition:p,className:(0,Y.A)("rp-sidebar-item",{"rp-sidebar-item--active":t,"rp-sidebar-item--pending":f},l),style:{paddingLeft:0===h?"12px":`calc(12px * ${h} + 12px)`},"data-depth":h,...o?{"data-context":o}:{},onClick:c,children:m}):(0,_.jsx)("div",{ref:d,className:(0,Y.A)("rp-sidebar-item",{"rp-sidebar-item--active":t},l),style:{paddingLeft:0===h?"12px":`calc(12px * ${h} + 12px)`},"data-depth":h,...o?{"data-context":o}:{},onClick:c,children:m})}function oS(e){let{item:t,depth:n,className:r}=e,i=ne(),s=!!("link"in t&&t.link&&i(t.link));return(0,_.jsx)(oM,{className:r,active:s,link:t.link,icon:t.icon,tag:t.tag,text:t.text,context:t.context,depth:n})}function oT(e){let{icon:t,sectionHeaderText:n,tag:r}=e;return(0,_.jsxs)("div",{className:"rp-sidebar-section-header",children:[(0,_.jsxs)("div",{className:"rp-sidebar-section-header__left",children:[t&&(0,_.jsx)(X.Ge,{icon:t,className:"rp-sidebar-section-header__icon"}),(0,_.jsx)("span",{...(0,X.nl)(n)})]}),(0,_.jsx)("div",{className:"rp-sidebar-section-header__right",children:(0,_.jsx)(X.OT,{tag:r})})]})}n(1415);let oz=e=>{let{collapsed:t}=e;return(0,_.jsx)("div",{style:{cursor:"pointer",transition:"transform 0.2s ease-out",transform:t?"rotate(0deg)":"rotate(90deg)"},children:(0,_.jsx)(X.Ge,{icon:X.hI})})};function oL(e){let t=ne(),{item:n,depth:r,id:i,setSidebarData:s,className:o}=e,l=(0,X.X6)(),a=n.link&&t(n.link),{collapsed:u=!1,collapsible:c=!0}=n,h=()=>{s(e=>{let t=[...e],n=i.split("-").map(Number),r=t[n.shift()];for(let e of n)r=r.items[e];return"items"in r&&(r.collapsed=!r.collapsed),t})};return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(oM,{active:!!a,link:n.link,icon:n.icon,tag:n.tag,text:n.text,context:n.context,className:(0,Y.A)("rp-sidebar-group",o),depth:r,onClick:e=>{if(!a&&n.link&&!u)return void l(n.link);if(n.link){e.stopPropagation(),l(n.link).then(()=>{c&&h()});return}e.stopPropagation(),c&&h()},right:c&&(0,_.jsx)(oz,{collapsed:u})}),(0,_.jsx)("div",{style:{display:"grid",gridTemplateRows:u?"0fr":"1fr",transition:"grid-template-rows 0.2s ease-out"},children:(0,_.jsx)("div",{style:{overflow:"hidden"},children:n.items?.map((e,t)=>ni(e)?(0,_.jsx)(oL,{id:`${i}-${t}`,depth:r+1,item:e,setSidebarData:s,className:"rp-sidebar-item--group-item"},`${i}-${t}`):"dividerType"in e?(0,_.jsx)(oj,{depth:r+1,dividerType:e.dividerType},t):"sectionHeaderText"in e?(0,_.jsx)(oT,{icon:e.icon,sectionHeaderText:e.sectionHeaderText,tag:e.tag},t):(0,_.jsx)(oS,{item:e,depth:r+1,className:"rp-sidebar-item--group-item"},t))})})]})}function o$(){let[e,t]=function(){let e=nt(),t=ne(),[n,r]=(0,D.useState)(()=>nn(structuredClone(e),t));return(0,D.useLayoutEffect)(()=>{r(nn(e,t))},[t,e]),[n,r]}();return(0,_.jsx)(oO,{sidebarData:e,setSidebarData:t})}function oO(e){let{sidebarData:t,setSidebarData:n}=e;return(0,_.jsx)(_.Fragment,{children:t.map((e,t)=>(0,_.jsx)(oH,{item:e,index:t,setSidebarData:n},t))})}function oH(e){let{item:t,index:n,setSidebarData:r}=e;return"dividerType"in t?(0,_.jsx)(oj,{depth:0,dividerType:t.dividerType},n):"sectionHeaderText"in t?(0,_.jsx)(oT,{icon:t.icon,sectionHeaderText:t.sectionHeaderText,tag:t.tag},n):ni(t)?(0,_.jsx)(oL,{id:String(n),item:t,depth:0,setSidebarData:r},`${t.text}-${n}`):(0,_.jsx)(oS,{item:t,depth:0},n)}n(2173);var oP=n(241);let oI="RSPRESS_SYNC_STORAGE_EVENT_NAME",oR=(e,t)=>
13{let[n,r]=(0,D.useState)(t);(0,D.useEffect)(()=>{if("u"<typeof window)return;let t=localStorage.getItem(e);null!=t&&r(t)},[e]);let i=(0,D.useCallback)(t=>{null==t?localStorage.removeItem(e):localStorage.setItem(e,t.toString()),r(t),dispatchEvent(new CustomEvent(oI,{detail:{key:e,newValue:t}}))},[e]);return(0,D.useEffect)(()=>{let n=n=>{n.key===e&&r(localStorage.getItem(e)??t)};return window.addEventListener("storage",n),()=>{window.removeEventListener("storage",n)}},[e,t]),(0,D.useEffect)(()=>{let n=n=>{let{key:i,newValue:s}=n.detail;i===e&&r(s??t)};return window.addEventListener(oI,n),()=>{window.removeEventListener(oI,n)}},[]),[n,i]},oW=e=>{let{content:t,icon:n}=e,r=function(e){try{let t=new URL(e),n=t.hostname.replace(/^www\./,"");if("github.com"!==n)return null;let r=t.pathname.match(/^\/([^/]+)\/([^/]+)/);if(!r)return null;return`${r[1]}/${r[2].replace(/\.git$/,"")}`}catch{return null}}(t),[i,s]=oR(r?`rp-github-stars:${r}`:"",null),[o,l]=(0,D.useState)(!1),[a,u]=(0,D.useState)(null);return(0,D.useEffect)(()=>{l(!0)},[]),(0,D.useEffect)(()=>{if(!r)return void u(null);if(!o)return;let e=function(e){try{if(!e)return null;let t=JSON.parse(e);if("number"!=typeof t?.count||"number"!=typeof t?.fetchedAt)return null;return t}catch{return null}}(i);if(e){if(u(e.count),Date.now()-e.fetchedAt<36e5)return}else u(null);let t=!1;return fetch(`https://api.github.com/repos/${r}`).then(e=>e.ok?e.json():Promise.reject(e.status)).then(e=>{if(!t&&"number"==typeof e?.stargazers_count){u(e.stargazers_count);try{var n;s((n=e.stargazers_count,JSON.stringify({count:n,fetchedAt:Date.now()})))}catch{}}}).catch(()=>{}),()=>{t=!0}},[o,i,r,s]),(0,_.jsxs)("a",{href:t,target:"_blank",rel:"noopener noreferrer",className:"rp-social-links__item rp-social-links__github-stars","aria-label":null==a?"GitHub repository":`GitHub repository, ${a.toLocaleString()} stars`,children:[(0,_.jsx)("div",{className:"rp-social-links__icon",children:n}),null!=a&&(0,_.jsx)("span",{className:"rp-social-links__github-stars-count",children:a>=1e6?`${(a/1e6).toFixed(1)}M`:a>=1e3?`${(a/1e3).toFixed(1)}K`:String(a)})]})},oG=e=>{let{link:t,hoverGroupPosition:n="center"}=e,{icon:r,mode:i="link",content:s}=t,o=(0,_.jsx)(_.Fragment,{});if(r){let e="string"==typeof r?oP.A[r]:r.svg;o=(0,_.jsx)("div",{className:"rp-social-links__icon",dangerouslySetInnerHTML:{__html:e}})}let{handleMouseEnter:l,handleMouseLeave:a,hoverGroup:u}=e5({position:n,customChildren:(0,_.jsx)("div",{className:"rp-social-links__item__hover-group",children:"text"===i?(0,_.jsx)("div",{className:"rp-social-links__item__text",children:s}):"dom"===i?(0,_.jsx)("div",{dangerouslySetInnerHTML:{__html:s}}):"img"===i?(0,_.jsx)("img",{src:s,alt:"img"}):null})});return"link"===i?(0,_.jsx)("a",{href:s,target:"_blank",rel:"noopener noreferrer",className:"rp-social-links__item",children:(0,_.jsx)("div",{className:"rp-social-links__icon",children:o})},s):"github-stars"===i?(0,_.jsx)(oW,{content:s,icon:o}):"text"===i||"img"===i||"dom"===i?(0,_.jsxs)("div",{className:"rp-social-links__item",onMouseEnter:l,onMouseLeave:a,children:[o,u]}):(0,_.jsx)("div",{className:"rp-social-links__item"})},oU=e=>{let{socialLinks:t}=e,{site:n}=(0,er.Z)(),r=n.themeConfig.socialLinks||t||[],i=r.length>5,s=r.slice(0,5),o=r.slice(5),{hoverGroup:l,handleMouseEnter:a,handleMouseLeave:u}=e5({position:"right",customChildren:i?(0,_.jsx)("div",{className:"rp-social-links__hidden",children:o.map((e,t)=>(0,_.jsx)(oG,{link:e,hoverGroupPosition:t===o.length-1?"right":"center"},e.content))}):null});return 0===r.length?(0,_.jsx)(_.Fragment,{}):(0,_.jsxs)("div",{className:"rp-social-links",onMouseLeave:u,children:[s.map((e,t)=>(0,_.jsx)(oG,{link:e,hoverGroupPosition:t===s.length-1?"right":"center"},e.content)),i?(0,_.jsx)(X.Ge,{icon:X.RG,onMouseEnter:a,fontSize:20}):null,l]})};function oV(e){let{children:t}=e;return(0,_.jsx)("div",{className:"rp-steps",children:t})}function oZ(e){let{icon:t,...n}=e;if(!t)return null;if("string"==typeof t){let{className:e}=n;return t.trim().startsWith("<svg")?(0,_.jsx)("span",{className:e,dangerouslySetInnerHTML:{__html:t}}):t.startsWith("/")||t.startsWith("./")||t.startsWith("../")||t.startsWith("http://")||t.startsWith("https://")||t.startsWith("data:")?(0,_.jsx)("img",{className:e,src:(0,eg.As)(t),alt:""}):(0,_.jsx)("span",{className:e,...(0,X.i7)(t)})}return(0,_.jsx)(t,{...n})}n(196);var oq=n(5530);function oK(e){let{onClick:t}=e,{theme:n,setTheme:r=()=>{}}=(0,D.useContext)(oq.D),{site:i}=(0,er.Z)();return(0,_.jsxs)("div",{onClick:e=>{let s="function"==typeof document?.startViewTransition&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches,o=i?.themeConfig?.enableAppearanceAnimation,l="dark"===n?"light":"dark",a="dark"===l;if(s&&o){let n=e.clientX,i=e.clientY,s=Math.hypot(Math.max(n,innerWidth-n+200),Math.max(i,innerHeight-i+200)),o=(document.documentElement.classList.add("rp-appearance-transition"),()=>{document.documentElement.classList.remove("rp-appearance-transition")}),u=document.startViewTransition(async()=>{(0,tE.flushSync)(()=>{r(l),t?.()})}),c=[`circle(0px at ${n}px ${i}px)`,`circle(${s}px at ${n}px ${i}px)`];u.ready.then(()=>{document.documentElement.animate({clipPath:a?[...c].reverse():c},{duration:400,easing:"ease-in",pseudoElement:a?"::view-transition-old(root)":"::view-transition-new(root)",id:""}).finished.then(()=>{o()})})}else r(l),t?.()},className:"rp-switch-appearance",children:[(0,_.jsx)(X.Ge,{className:"rp-switch-appearance__icon rp-switch-appearance__icon--sun",icon:X.mT,fill:"currentColor"}),(0,_.jsx)(X.Ge,{className:"rp-switch-appearance__icon rp-switch-appearance__icon--moon",icon:X.l0,fill:"currentColor"})]})}n(8424),n(1665),n(8471);let oY=(0,D.forwardRef)((e,t)=>{let{values:n,defaultIndex:r,defaultValue:i,onChange:s,children:o,groupId:l,tabPosition:a="left",className:u,labelItemClassName:c,contentItemClassName:h,keepDOM:d=!0}=e,f=D.Children.toArray(o).filter(e=>("string"!=typeof e||""!==e.trim())&&(0,D.isValidElement)(e)),p=(0,D.useMemo)(()=>n&&n.length>0?n.map((e,t)=>{let n=f.find(t=>t.props?.value===e.value)??f[t];return{...e,content:n}}):D.Children.map(f,(e,t)=>(0,D.isValidElement)(e)?{label:e.props?.label||void 0,value:e.props?.value,disabled:e.props?.disabled,content:f[t]}:{label:t,content:f[t]}),[f,n]),m=void 0!==i?p.findIndex(e=>e.value===i):-1,g=-1===m?r??0:m,[v,x]=(0,D.useState)(g),[y,w]=(0,X.yL)(`rspress.tabs.${l}`,g.toString()),b=l?Number(y):v;return(0,_.jsxs)("div",{className:(0,Y.A)("rp-tabs",u),ref:t,children:[p.length?(0,_.jsx)("div",{className:"rp-tabs__label rp-tabs__label--no-scrollbar",style:{justifyContent:"center"===a?"center":"flex-start"},children:p.map((e,t)=>{let{label:n,value:r,disabled:i}=e,o=t===b;return(0,_.jsx)("div",{className:(0,Y.A)("rp-tabs__label__item",o?"rp-tabs__label__item--selected":"rp-tabs__label__item--not-selected",c),"data-index":t,onClick:()=>{i||(s?.(t),l?w(t.toString()):x(t))},children:n},r??t)})}):null,(0,_.jsx)("div",{className:"rp-tabs__content",children:p.map((e,t)=>{let{value:n,content:r}=e,i=t===b;return d||i?(0,_.jsx)("div",{className:(0,Y.A)("rp-tabs__content__item",i?"rp-tabs__content__item--active":"rp-tabs__content__item--hidden",h),"aria-hidden":!i,"data-index":t,children:r},n??t):null})})]})});function oJ(e){let{children:t}=e;return(0,_.jsx)(_.Fragment,{children:t})}oY.displayName="Tabs";let oX={tip:"tip",info:"info",warning:"warning",danger:"danger"},oQ=/\.(?:avif|gif|ico|jpe?g|png|svg|webp)(?:[?#].*)?$/i,o0=e=>{let{tag:t}=e;if(!t)return null;let{isPic:n,isTagsArray:r,isSvgTagString:i,normalizedTag:s,tagsArray:o}=(0,D.useMemo)(()=>{let e,n,r,i;return n=(e=t.trim()).startsWith("<svg"),r=(0,e2.My)(e)||(0,e2.ax)(e)||e.startsWith("/")&&oQ.test(e),i=n||r?null:e.split(",").map(e=>e.trim()).filter(e=>e.length>0),{isSvgTagString:n,isPic:r,isTagsArray:i&&i?.length>1,tagsArray:i,normalizedTag:e}},[t]);return r?(0,_.jsx)(_.Fragment,{children:o?.map((e,t)=>(0,_.jsx)(X.OT,{tag:e},`${e}-${t}`))}):i?(0,_.jsx)("div",{dangerouslySetInnerHTML:{__html:s},style:{width:20,marginRight:4}}):n?(0,_.jsx)("img",{src:(0,eg.As)(s)}):"experimental"===s?(0,_.jsxs)(X.Ex,{type:"warning",children:[(0,_.jsx)(X.Ge,{icon:X.kC}),(0,_.jsx)("span",{children:"experimental"})]}):"deprecated"===s?(0,_.jsxs)(X.Ex,{type:"danger",children:[(0,_.jsx)(X.Ge,{icon:X.nD}),(0,_.jsx)("span",{children:"deprecated"})]}):"new"===s?(0,_.jsx)(X.Ex,{text:"new",type:"tip"}):oX[s]?(0,_.jsx)(X.Ex,{text:s,type:oX[s]}):(0,_.jsx)(X.Ex,{text:s,type:"info"})};n(9544);let o1=e=>{let{header:t,baseHeaderLevel:n,active:r}=e,i=(0,D.useRef)(null);return(0,D.useEffect)(()=>{r&&i.current&&oB(i.current,{behavior:"smooth",block:"center",inline:"center",boundary:e=>!(e.classList.contains("rp-doc-layout__outline")||e.classList.contains("rspress-doc"))})},[r]),(0,_.jsx)(X.N_,{href:`#${t.id}`,ref:i,title:(0,X.zE)(t.text),className:(0,Y.A)("rp-toc-item",{"rp-toc-item--active":r}),style:{paddingLeft:(t.depth-n)*12},"data-depth":t.depth-n,children:(0,_.jsx)("span",{className:"rp-toc-item__text rp-doc",...(0,X.nl)(t.text)})})};function o2(){let e=(0,X.J6)(),{activeAnchorId:t}=(0,X.R3)(e);return(0,_.jsx)(_.Fragment,{children:e.map((e,n)=>(0,_.jsx)(o1,{baseHeaderLevel:2,header:e,active:t===e.id},`${e.depth}_${e.text}_${e.id}_${n}`))})}let o3=e=>{let[t,n]=(0,D.useState)(),[r,i]=(0,D.useState)(),{hash:s}=(0,e1.zy)();return(0,D.useEffect)(()=>
13{if("u"<typeof window)return;let t=()=>{let t=function(e){if(!e||"auto"===e||"none"===e)return 0;let t=Number.parseFloat(e);return Number.isNaN(t)?0:t}(window.getComputedStyle(document.documentElement).getPropertyValue("scroll-padding-top"))-5,r=e.map(e=>{let t=document.getElementById(e.id);if(!t)return{id:e.id,top:1/0};let n=t.getBoundingClientRect();return{id:e.id,top:n.top}}),s=r.filter(e=>e.top<t).map(e=>e.id),o=r.filter(e=>e.top>=t&&e.top<=window.innerHeight).map(e=>e.id),l=s[s.length-1],a=e.find(e=>e.id===l);0===o.length?n(l):n(o[0]),i(a)};return t(),window.addEventListener("scroll",t,{passive:!0}),()=>{window.removeEventListener("scroll",t)}},[e,s]),{scrolledHeader:r,activeAnchorId:t}},o4={},o5={current:[]},o6=()=>{let e,{page:{toc:t=[]}}=(0,eO.e)();return e=(()=>{let[,e]=(0,D.useState)(0);return()=>e(e=>e+1)})(),(0,D.useEffect)(()=>{let t=Math.random().toString(36).slice(2);return o4[t]=e,()=>{delete o4[t]}},[e]),o5.current.length>0?o5.current:t};function o7(e){let t=[],n=e?.querySelectorAll(".rspress-doc h2.rp-toc-include, h3.rp-toc-include, h4.rp-toc-include");for(let e of(n?.forEach(e=>{let n,r;!e.closest(".rspress-toc-exclude,.rp-toc-exclude")&&function(e){let t=e,n=document.querySelector(".rspress-doc");for(;t;)if(!function(e){let t=window.getComputedStyle(e);return"none"!==t.display&&"0"!==t.opacity&&"hidden"!==t.visibility}(t))return!1;else if((t=t.parentElement)===n)break;return!0}(e)&&t.push({id:e.id,text:((r=(n=e.cloneNode(!0)).querySelector(".rp-header-anchor"))&&n.removeChild(r),n.querySelectorAll(".rspress-toc-exclude,.rp-toc-exclude").forEach(e=>{let t=e.parentElement;t&&t.removeChild(e)}),n.querySelectorAll("a").forEach(e=>{let t=document.createDocumentFragment();for(;e.firstChild;)t.appendChild(e.firstChild);e.replaceWith(t)}),n.childNodes.forEach(e=>{e.nodeType===Node.COMMENT_NODE&&e.remove()}),n).innerHTML,depth:Number.parseInt(e.tagName[1],10),charIndex:0})}),o5.current=[...t],Object.values(o4)))e()}let o8=new Set(["H2","H3","H4"]),o9=()=>{let[e,t]=(0,D.useState)(null);return(0,D.useEffect)(()=>{let t=null;return e&&o7(e),e&&!t&&(t=new MutationObserver(t=>{let n=!1;t:for(let e of t)for(let t of[e.addedNodes,e.removedNodes])for(let e of t){if(o8.has(e.tagName)||e.parentElement?.closest("h2,h3,h4")){n=!0;break t}for(let t of e.childNodes)if(o8.has(t.tagName)){n=!0;break t}}n&&o7(e)})).observe(e,{childList:!0,subtree:!0}),()=>{t?.disconnect(),t=null}},[e]),{rspressDocRef:(0,D.useCallback)(e=>{t(e)},[t])}};n(3232);let le=(0,D.forwardRef)((e,t)=>{let{isSidebarOpen:n,onIsSidebarOpenChange:r,isOutlineOpen:i,onIsOutlineOpenChange:s,beforeOutline:o,afterOutline:l}=e,a=(0,D.useRef)(null),u=eo(),{pathname:c,hash:h}=(0,e1.zy)(),d=(0,X.J6)(),{scrolledHeader:f}=(0,X.R3)(d),p=!o&&!l&&0===d.length,{frontmatter:{sidebar:m=!0,outline:g=!0}}=(0,eE.s)();function v(){r(!1)}return(0,D.useEffect)(()=>{v()},[c]),(0,D.useEffect)(()=>{h&&s(!1)},[h]),(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)("div",{className:"rp-sidebar-menu",ref:e=>{a.current=e,"function"==typeof t?t(a.current):t&&(t.current=a.current)},children:[!0===m?(0,_.jsxs)("button",{type:"button",onClick:function(){r(!0)},className:"rp-sidebar-menu__left",children:[(0,_.jsx)(X.Ge,{icon:X.dd}),(0,_.jsx)("span",{children:u("menuTitle")})]}):(0,_.jsx)("div",{className:"rp-sidebar-menu__left"}),g?(0,_.jsxs)("button",{type:"button",disabled:p,onClick:e=>{e.preventDefault(),e.stopPropagation(),s(!i)},className:"rp-sidebar-menu__right",children:[f?.text?(0,_.jsx)("span",{className:"rp-sidebar-menu__right__text rp-doc",...(0,X.nl)(f.text)}):(0,_.jsx)("span",{className:"rp-sidebar-menu__right__text",children:u("outlineTitle")}),(0,_.jsx)(X.a9,{size:14,strokeWidth:2}),!p&&(0,_.jsx)(X.Ge,{icon:X.hI,className:"rp-sidebar-menu__right__icon",style:{transform:i?"rotate(90deg)":"rotate(0deg)",transition:"transform 0.2s ease-out"}})]}):(0,_.jsx)("div",{className:"rp-sidebar-menu__right"})]}),(n||i)&&(0,tE.createPortal)((0,_.jsx)("div",{onClick:v,className:"rp-sidebar-menu__mask"}),document.getElementById("__rspress_modal_container"))]})});function lt(e,t){(0,D.useEffect)(()=>{let n=n=>{for(let t of Array.isArray(e)?e:[e]){let{current:e}=t;if(e?.contains(n.target))return}
13t(n)};return document.addEventListener("mousedown",n),document.addEventListener("touchend",n),()=>{document.removeEventListener("mousedown",n),document.removeEventListener("touchend",n)}},[e,t])}function ln(e){let{beforeDocFooter:t,afterDocFooter:n,beforeDoc:r,afterDoc:i,beforeDocContent:s,afterDocContent:o,beforeOutline:l,afterOutline:a,beforeSidebar:u,afterSidebar:c,components:h}=e,{frontmatter:d}=(0,eE.s)(),f=d?.overview??!1,p=d?.sidebar??!0,m=!0===p,{outline:g=!0,footer:v=!0,pageType:x}=d,y=m||!f&&g,w="doc-wide"===x,{isOutlineOpen:b,isSidebarOpen:j,sidebarMenu:F,asideLayoutRef:C,sidebarLayoutRef:A}=function(e,t){let[n,r]=(0,D.useState)(!1),[i,s]=(0,D.useState)(!1),o=(0,D.useRef)(null),l=(0,D.useRef)(null),a=(0,D.useRef)(null);return(0,D.useEffect)(()=>(o.current&&n&&tU(o.current,{reserveScrollBarGap:!0,allowTouchMove:()=>!0}),()=>{tV()}),[n]),lt([o,l],()=>{r(!1)}),lt([o,a],()=>{s(!1)}),{sidebarMenu:(0,D.useMemo)(()=>(0,_.jsx)(le,{isSidebarOpen:n,onIsSidebarOpenChange:r,isOutlineOpen:i,onIsOutlineOpenChange:s,ref:o,beforeOutline:e,afterOutline:t}),[i,n,s,r,e,t]),isOutlineOpen:i,isSidebarOpen:n,sidebarLayoutRef:l,asideLayoutRef:a}}(l,a),{rspressDocRef:k}=(0,X.n6)();return(0,_.jsxs)(_.Fragment,{children:[y&&(0,_.jsx)("div",{className:"rp-doc-layout__menu",children:F}),r,(0,_.jsxs)("div",{className:(0,Y.A)("rp-doc-layout__container",!y&&"rp-doc-layout__container--no-menu"),children:[m?(0,_.jsxs)("aside",{className:(0,Y.A)("rp-doc-layout__sidebar",j&&"rp-doc-layout__sidebar--open","rp-scrollbar"),ref:A,children:[u,(0,_.jsx)(X.Bx,{}),c]}):!1===p||"placeholder"===p?(0,_.jsx)("aside",{className:(0,Y.A)("rp-doc-layout__sidebar-placeholder","placeholder"===p&&"rp-doc-layout__sidebar-placeholder--legacy"),style:w?{width:"0"}:{}}):null,f?(0,_.jsx)(_.Fragment,{children:(0,_.jsxs)("main",{className:"rp-doc-layout__overview",children:[s,(0,_.jsx)(X.Aw,{content:(0,_.jsx)(X.As,{components:h,isOverviewPage:!0})}),o]})}):(0,_.jsx)("div",{className:(0,Y.A)("rp-doc-layout__doc",w&&"rp-doc-layout__doc--wide"),children:(0,_.jsxs)("main",{className:"rp-doc-layout__doc-container",children:[s,(0,_.jsx)("div",{className:"rp-doc rspress-doc",ref:k,children:(0,_.jsx)(X.As,{components:h})}),o,t,v&&(0,_.jsx)(X.co,{}),n]})}),f?null:g?(0,_.jsxs)("aside",{className:(0,Y.A)("rp-doc-layout__outline",b&&"rp-doc-layout__outline--open","rp-scrollbar"),ref:C,children:[l,(0,_.jsx)(X.Rc,{}),a]}):(0,_.jsx)("aside",{className:"rp-doc-layout__outline-placeholder",style:w?{width:"0"}:{}})]}),i]})}function lr(){let{siteData:e,page:t}=eG(),n=e.lang,r=e.multiVersion.default,i=eo();if(n&&"u">typeof window){let e=RegExp(`/${n}(\\/|$)`);if(e.test(location.pathname)){let t=location.pathname.replace(e,"/");return window.location.replace(t),null}}let s="/";return r&&t.version!==r&&(s+=`${t.version}/`),n&&t.lang!==n&&(s+=`${t.lang}/`),(0,_.jsxs)("div",{className:"rp-not-found",children:[(0,_.jsx)("p",{className:"rp-not-found__error-code",children:"404"}),(0,_.jsx)("h1",{className:"rp-not-found__title",children:i("notFoundText")}),(0,_.jsx)("div",{className:"rp-not-found__divider"}),(0,_.jsx)("div",{className:"rp-not-found__action",children:(0,_.jsx)(X.N_,{className:"rp-not-found__home-link",href:s,"aria-label":"go to home",children:i("takeMeHomeText")})})]})}n(2327),n(8646);var li=n(3990),ls=n.n(li);async function lo(e){if("u">typeof navigator&&navigator.clipboard?.writeText)try{return await navigator.clipboard.writeText(e),!0}catch{}return!("u"<typeof document)&&ls()(e)}function ll(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return"";let{ignoreClasses:n=[],ignoreSelectors:r=[]}=t,i=e.ownerDocument.defaultView?.NodeFilter??NodeFilter,s=e.ownerDocument.createTreeWalker(e,i.SHOW_TEXT),o="",l=s.nextNode(),a={seenNodes:new WeakSet},u=null;for(;l;){let t=l.parentElement;if(!(!t||n.some(e=>t.classList.contains(e))||r.some(e=>t.closest(e)))){let n=function(e,t){let n=e.closest("li, p, div, pre, blockquote");return n&&t.contains(n)?n:null}(t,e);l.previousSibling?.nodeName!=="BR"&&t.previousSibling?.nodeName!=="BR"||o.endsWith("\n")||(o+="\n"),n&&u&&n!==u&&!o.endsWith("\n")&&(o+="\n"),o+=function(e,t){if(e.nodeType!==Node.ELEMENT_NODE||e.closest("pre")||e.closest("code"))return"";let n=e.closest("li");return n&&!t.seenNodes.has(n)?(t.seenNodes.add(n),function(e){let t=e.parentElement;if(!t)return"- ";if("OL"===t.tagName){let n=Array.from(t.children).filter(e=>"LI"===e.tagName).indexOf(e);return`${n+1}. `}return"- "}(n)):""}(t,a),o+=l.nodeValue??"",u=n}l=s.nextNode()}return o}function la(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return e=>{t.forEach(t=>{"function"==typeof t?t(e):null!==t&&(t.current=e)})}}function lu(){let{pathname:e}=(0,e1.zy)(),t=nt(),n=[],r=e=>{"items"in e?(e.link&&n.push({text:e.text,link:e.link}
13),e.items.forEach(e=>{"dividerType"in e||"sectionHeaderText"in e||r(e)})):"link"in e&&e.link&&n.push(e)};t.forEach(e=>r(e));let i=n.findIndex(t=>(0,eg.Oy)(t.link,e));return{prevPage:n[i-1]||null,nextPage:n[i+1]||null}}function lc(){let e=(0,e1.zy)();(0,D.useLayoutEffect)(()=>{if("u"<typeof window)return;let e=decodeURIComponent(window.location.hash);if(e.length>0){let t,n,r=document.getElementById(e.slice(1));r&&(t=function(e){if(!e||"auto"===e||"none"===e)return 0;let t=Number.parseFloat(e);return Number.isNaN(t)?0:t}(window.getComputedStyle(document.documentElement).getPropertyValue("scroll-padding-top")),n=Math.round(window.scrollY+r.getBoundingClientRect().top-t),window.scrollTo({left:0,top:n}))}},[e,e.pathname])}function lh(){let{pathname:e}=(0,e1.zy)();(0,D.useLayoutEffect)(()=>{0===decodeURIComponent(window.location.hash).length&&window.scrollTo(0,0)},[e])}function ld(){}let lf=e=>{let t=document?.documentElement;if(!t)return;let n="dark"===e,r=t.classList.contains("dark")!==n;t.classList.toggle("dark",n),t.classList.toggle("rp-dark",n),t.style.colorScheme=e,r&&(t.classList.add("rp-theme-switching"),window.getComputedStyle(t).opacity,requestAnimationFrame(()=>{t.classList.remove("rp-theme-switching")}))};function lp(){let{site:e}=(0,er.Z)(),{darkMode:t}=e.themeConfig,n=(0,e2.Nv)(t),r=(0,e2.Km)(t),[i,s]=oR("rspress-theme-appearance",r),o=(e=>{let[t,n]=(0,D.useState)(()=>"u">typeof window&&window.matchMedia(e).matches);return(0,D.useEffect)(()=>{let t=window.matchMedia(e),r=e=>n(e.matches);return t.addEventListener("change",r),()=>t.removeEventListener("change",r)},[e]),t})("(prefers-color-scheme: dark)")?"dark":"light",l=n?("light"===i||"dark"===i||"auto"===i?i:null)??r:r,a="auto"===l?o:l,u=(0,D.useCallback)(e=>{n&&(s(o===e?"auto":e),lf(e))},[n,o,s]);return(0,D.useLayoutEffect)(()=>{lf(a)},[a]),[a,u]}function lm(e){if(!e)return{children:null};if("number"==typeof e)return{children:e.toString()};let t=/<([a-z]+)([^<]*)(?:>(.*?)<\/\1>|\s*\/>)/i.test(e),n=/&(?:[a-z][0-9a-z]*|#(?:\d+|x[0-9a-f]+));/i.test(e);return t||n?{dangerouslySetInnerHTML:{__html:e}}:{children:e.replace(/\\</g,"<").replace(/\\>/g,">").replace(/</g,"<").replace(/>/g,">")}}let lg=/`(.*?)`/g,lv=/\*{2}(?!\*)(.*?)\*{2}(?!\*)/g,lx=/\*(?!\*)(.*?)\*(?!\*)/g,ly=/~{2}(.*?)~{2}/g,l_=/`[^`]+`/g,lD=/<\/?[a-z][^>]*>/gi,lw=/&(#\d+|#x[0-9a-f]+|[a-z][0-9a-z]*);/gi,lb={amp:"&",apos:"'",gt:">",lt:"<",nbsp:"Â ",quot:'"'};function lj(e){return lm(e.replace(l_,e=>e.replace(/</g,"<")).replace(lv,"<strong>$1</strong>").replace(lx,"<em>$1</em>").replace(ly,"<del>$1</del>").replace(lg,"<code>$1</code>"))}function lF(e){return e.replace(l_,e=>e.replace(/</g,"<")).replace(lv,"$1").replace(lx,"$1").replace(ly,"$1").replace(lg,"$1").replace(lD,"").replace(lw,(e,t)=>{if(!t.startsWith("#"))return lb[t.toLowerCase()]??e;let n="x"===t[1]||"X"===t[1],r=Number.parseInt(n?t.slice(2):t.slice(1),n?16:10);return r<=1114111&&!(r>=55296&&r<=57343)?String.fromCodePoint(r):e}).trim()}},1394(e,t,n){"use strict";n.d(t,{m:()=>s});var r=n(1058),i=n(2559);function s(e){let{beforeHero:t,afterHero:n,beforeFeatures:s,afterFeatures:o,beforeHeroActions:l,afterHeroActions:a}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.Eg,{}),t,(0,r.jsx)(i.UQ,{beforeHeroActions:l,afterHeroActions:a}),n,s,(0,r.jsx)(i.K6,{}),o,(0,r.jsx)(i.hM,{})]})}},3710(e,t,n){"use strict";n.d(t,{P:()=>x});var r=n(1058),i=n(9989),s=n(621),o=n(3938),l=n(8975),a=n(2083),u=n(2559),c=n(3706),h=n(8172);function d(e,t,n={}){return e.push(t||{},n)}var f=n(257);function p(){let e=(0,c.useContext)(f.U);if(!e)throw Error("useHead() was called without provide context.");return e}let m=({children:e,titleTemplate:t})=>{let n=p(),r=(0,c.useMemo)(()=>(function e(t){let n=[];return c.Children.forEach(t,t=>{if(c.isValidElement(t)){if(t.type===c.Fragment)return void n.push(...e(t.props.children));n.push(t)}}),n})(e),[e]),i=(0,c.useCallback)(()=>{let e={titleTemplate:t};for(let t of r){let{type:n,props:r}=t,i=String(n);if(!h.V.has(i))continue;let s=function(e){if(!e||"object"!=typeof e)return{};let t={};for(let[n,r]of Object.entries(e))"ref"!==n&&"suppressContentEditableWarning"!==n&&"suppressHydrationWarning"!==n&&(t["className"===n?"class":"httpEquiv"===n?"http-equiv":n]=r);return t}(r);!function(e,t){let n=t.dangerouslySetInnerHTML;if(delete t.dangerouslySetInnerHTML,null==n)return;if(!h.b.has(e))throw Error(`${e} is a self-closing tag and must neither have \`children\` nor use \`dangerouslySetInnerHTML\`.`);if("object"!=typeof n||!("__html"in n))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`.");if(null!=t.children)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");let r=n.__html;
13null!=r&&(t["title"===e?"textContent":"innerHTML"]=String(r))}(i,s),h.b.has(i)&&null!=s.children&&(s["script"===i?"innerHTML":"textContent"]=Array.isArray(s.children)?s.children.map(String).join(""):String(s.children)),delete s.children,h.H.has(i)?(Array.isArray(e[i])||(e[i]=[]),e[i].push(s)):e[i]=s}return e},[r,t]),s=(0,c.useRef)(null);return n.ssr&&!s.current&&(s.current=n.push(i())),(0,c.useEffect)(()=>(s.current=n.push(i()),()=>{s.current?.dispose(),s.current=null}),[n]),(0,c.useEffect)(()=>{s.current?.patch(i())},[i]),null},g=(e,t)=>t?(e=e.trim(),(t=t.trim()).startsWith("-")||t.startsWith("|"))?`${e} ${t}`:`${e} - ${t}`:e,v=(0,c.memo)(e=>{let{lang:t,frontmatter:n,description:i,title:s}=e,o=n.head,l=(0,c.useMemo)(()=>o?.map(e=>{let[t,n]=e;return t?c.createElement(t,{...n}):null}),[o]),a=(0,c.useMemo)(()=>{let e=new Set;if(o)for(let[t,n]of o)"meta"===t&&n?.property&&e.add(n.property),"meta"===t&&n?.name&&e.add(n.name);return e},[o]);return!function(e={},t={}){let n=t.head||p(),r=(0,c.useRef)(null),i=(0,c.useRef)(e);if(i.current=e,n.ssr&&!r.current&&(r.current=d(n,e,t)),(0,c.useEffect)(()=>{let e=d(n,i.current,t);return r.current=e,()=>{e.dispose(),r.current=null}},[n]),(0,c.useEffect)(()=>{r.current?.patch(e)},[e]),n.ssr)return r.current;let s=(0,c.useRef)(null);s.current||(s.current={patch:e=>{r.current?.patch(e)},dispose:()=>{r.current?.dispose(),r.current=null},_poll:e=>{r.current?._poll(e)}}),s.current}({htmlAttrs:{lang:t||"en"},title:s||void 0,meta:[a.has("og:type")?void 0:{property:"og:type",content:"website"},s&&!a.has("og:title")?{property:"og:title",content:s}:void 0,...i?[a.has("description")?void 0:{name:"description",content:i},a.has("og:description")?void 0:{property:"og:description",content:i}]:[]]}),(0,r.jsx)(m,{children:l??null})});function x(e){let{top:t,bottom:n,beforeDocFooter:c,afterDocFooter:h,beforeDoc:d,afterDoc:f,beforeDocContent:p,afterDocContent:m,beforeSidebar:x,afterSidebar:y,beforeOutline:_,afterOutline:D,beforeNavTitle:w,afterNavTitle:b,navTitle:j,beforeNav:F,afterNav:C,beforeHero:A,afterHero:k,beforeFeatures:E,afterFeatures:N,beforeNavMenu:B,afterNavMenu:M,components:S,HomeLayout:T=u.mI,NotFoundLayout:z=u.Ab}=e,L={beforeDocFooter:c,afterDocFooter:h,beforeDocContent:p,afterDocContent:m,beforeDoc:d,afterDoc:f,beforeSidebar:x,afterSidebar:y,beforeOutline:_,afterOutline:D,components:S},$={beforeHero:A,afterHero:k,beforeFeatures:E,afterFeatures:N},{page:O}=(0,i.e)(),{site:H}=(0,s.Z)(),{frontmatter:P}=(0,o.s)(),{pageType:I,lang:R,title:W}=O,G=(0,l.l)(),U=P.title??W,V=H.title||G.title||"";U=U&&("doc"===I||"doc-wide"===I)?g(U,P.titleSuffix||V):"home"===I?g(V,P.titleSuffix):"404"===I?g("404",V):V;let Z=O.description||H.description||G.description;(0,u.zV)(),(0,u.uo)();let{frontmatter:{navbar:q=!0}}=(0,o.s)();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(v,{lang:R,title:U,description:Z,frontmatter:P}),t,"blank"!==I&&q&&(0,r.jsxs)(r.Fragment,{children:[F,(0,r.jsx)(u.so,{beforeNavTitle:w,afterNavTitle:b,navTitle:j,beforeNavMenu:B,afterNavMenu:M}),C]}),(()=>{switch(I){case"home":return(0,r.jsx)(T,{...$});case"doc":case"doc-wide":return(0,r.jsx)(u.fS,{...L,navTitle:j});case"404":return(0,r.jsx)(z,{});case"custom":case"blank":return(0,r.jsx)(a.U,{});default:return(0,r.jsx)(u.fS,{...L})}})(),n]})}},78(e,t,n){"use strict";n(3500),n(6181),n(8402),n(8221),n(1619),n(5005),n(7419),n(4304),n(5616)},2280(e,t,n){"use strict";n.d(t,{A:()=>p});var r=n(5647),i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=function(e){return"IMG"===e.tagName},o=function(e){return e&&1===e.nodeType},l=function(e){return".svg"===(e.currentSrc||e.src).substr(-4).toLowerCase()},a=function(e){try{if(Array.isArray(e))return e.filter(s);if(NodeList.prototype.isPrototypeOf(e))return[].slice.call(e).filter(s);if(o(e))return[e].filter(s);if("string"==typeof e)return[].slice.call(document.querySelectorAll(e)).filter(s);return[]}catch(e){throw TypeError("The provided selector is invalid.\nExpects a CSS selector, a Node element, a NodeList or an array.\nSee: https://github.com/francoischalifour/medium-zoom")}},u=function(e){var t=document.createElement("div");return t.classList.add("medium-zoom-overlay"),t.style.background=e,t},c=function(e){var t=e.getBoundingClientRect(),n=t.top,r=t.left,i=t.width,s=t.height,o=e.cloneNode(),l=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,a=window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0;return o.removeAttribute("id"),o.style.position="absolute",o.style.top=n+l+"px",o.style.left=r+a+"px",o.style.width=i+"px",o.style.height=s+"px",o.style.transform="",o},h=function(e,t){var n=i({bubbles:!1,cancelable:!1,detail:void 0},t);
13if("function"==typeof window.CustomEvent)return new CustomEvent(e,n);var r=document.createEvent("CustomEvent");return r.initCustomEvent(e,n.bubbles,n.cancelable,n.detail),r};!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"u">typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}(".medium-zoom-overlay{position:fixed;top:0;right:0;bottom:0;left:0;opacity:0;transition:opacity .3s;will-change:opacity}.medium-zoom--opened .medium-zoom-overlay{cursor:pointer;cursor:zoom-out;opacity:1}.medium-zoom-image{cursor:pointer;cursor:zoom-in;transition:transform .3s cubic-bezier(.2,0,.2,1)!important}.medium-zoom-image--hidden{visibility:hidden}.medium-zoom-image--opened{position:relative;cursor:pointer;cursor:zoom-out;will-change:transform}");var d=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=window.Promise||function(e){function t(){}e(t,t)},s=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.reduce(function(e,t){return[].concat(e,a(t))},[]);return r.filter(function(e){return -1===m.indexOf(e)}).forEach(function(e){m.push(e),e.classList.add("medium-zoom-image")}),g.forEach(function(e){var t=e.type,n=e.listener,i=e.options;r.forEach(function(e){e.addEventListener(t,n,i)})}),w},d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.target,n=function(){var e={width:document.documentElement.clientWidth,height:document.documentElement.clientHeight,left:0,top:0,right:0,bottom:0},t=void 0,n=void 0;if(y.container)if(y.container instanceof Object)t=(e=i({},e,y.container)).width-e.left-e.right-2*y.margin,n=e.height-e.top-e.bottom-2*y.margin;else{var r=(o(y.container)?y.container:document.querySelector(y.container)).getBoundingClientRect();e=i({},e,{width:r.width,height:r.height,left:r.left,top:r.top})}t=t||e.width-2*y.margin,n=n||e.height-2*y.margin;var s=_.zoomedHd||_.original,a=l(s)?t:s.naturalWidth||t,u=l(s)?n:s.naturalHeight||n,c=s.getBoundingClientRect(),h=c.top,d=c.left,f=c.width,p=c.height,m=Math.min(Math.min(Math.max(f,a),t)/f,Math.min(Math.max(p,u),n)/p),g=(-d+(t-f)/2+y.margin+e.left)/m,v=(-h+(n-p)/2+y.margin+e.top)/m,x="scale("+m+") translate3d("+g+"px, "+v+"px, 0)";_.zoomed.style.transform=x,_.zoomedHd&&(_.zoomedHd.style.transform=x)};return new r(function(e){if(t&&-1===m.indexOf(t)||_.zoomed)return void e(w);if(t)_.original=t;else{if(!(m.length>0))return void e(w);_.original=m[0]}if(_.original.dispatchEvent(h("medium-zoom:open",{detail:{zoom:w}})),x=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,v=!0,_.zoomed=c(_.original),document.body.appendChild(D),y.template){var r=o(y.template)?y.template:document.querySelector(y.template);_.template=document.createElement("div"),_.template.appendChild(r.content.cloneNode(!0)),document.body.appendChild(_.template)}if(_.original.parentElement&&"PICTURE"===_.original.parentElement.tagName&&_.original.currentSrc&&(_.zoomed.src=_.original.currentSrc),document.body.appendChild(_.zoomed),window.requestAnimationFrame(function(){document.body.classList.add("medium-zoom--opened")}),_.original.classList.add("medium-zoom-image--hidden"),_.zoomed.classList.add("medium-zoom-image--opened"),_.zoomed.addEventListener("click",f),_.zoomed.addEventListener("transitionend",function t(){v=!1,_.zoomed.removeEventListener("transitionend",t),_.original.dispatchEvent(h("medium-zoom:opened",{detail:{zoom:w}})),e(w)}),_.original.getAttribute("data-zoom-src")){_.zoomedHd=_.zoomed.cloneNode(),_.zoomedHd.removeAttribute("srcset"),_.zoomedHd.removeAttribute("sizes"),_.zoomedHd.removeAttribute("loading"),_.zoomedHd.src=_.zoomed.getAttribute("data-zoom-src"),_.zoomedHd.onerror=function(){clearInterval(i),console.warn("Unable to reach the zoom image target "+_.zoomedHd.src),_.zoomedHd=null,n()};var i=setInterval(function(){_.zoomedHd.complete&&(clearInterval(i),_.zoomedHd.classList.add("medium-zoom-image--opened"),_.zoomedHd.addEventListener("click",f),document.body.appendChild(_.zoomedHd),n())},10)}else if(_.original.hasAttribute("srcset")){_.zoomedHd=_.zoomed.cloneNode(),_.zoomedHd.removeAttribute("sizes"),_.zoomedHd.removeAttribute("loading");var s=_.zoomedHd.addEventListener("load",function(){_.zoomedHd.removeEventListener("load",s),_.zoomedHd.classList.add("medium-zoom-image--opened"),_.zoomedHd.addEventListener("click",f),document.body.appendChild(_.zoomedHd),n()})}else n()})},f=function(){return new r(function(e){v||!_.original?e(w):(v=!0,document.body.classList.remove("medium-zoom--opened"),_.zoomed.style.transform="",_.zoomedHd&&(_.zoomedHd.style.transform=""),_.template&&(_.template.style.transition="opacity 150ms",_.template.style.opacity=0),_.original.dispatchEvent(h("medium-zoom:close",{detail:{zoom:w}
13})),_.zoomed.addEventListener("transitionend",function t(){_.original.classList.remove("medium-zoom-image--hidden"),document.body.removeChild(_.zoomed),_.zoomedHd&&document.body.removeChild(_.zoomedHd),document.body.removeChild(D),_.zoomed.classList.remove("medium-zoom-image--opened"),_.template&&document.body.removeChild(_.template),v=!1,_.zoomed.removeEventListener("transitionend",t),_.original.dispatchEvent(h("medium-zoom:closed",{detail:{zoom:w}})),_.original=null,_.zoomed=null,_.zoomedHd=null,_.template=null,e(w)}))})},p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.target;return _.original?f():d({target:t})},m=[],g=[],v=!1,x=0,y=n,_={original:null,zoomed:null,zoomedHd:null,template:null};"[object Object]"===Object.prototype.toString.call(t)?y=t:(t||"string"==typeof t)&&s(t);var D=u((y=i({margin:0,background:"#fff",scrollOffset:40,container:null,template:null},y)).background);document.addEventListener("click",function(e){var t=e.target;t===D?f():-1!==m.indexOf(t)&&p({target:t})}),document.addEventListener("keyup",function(e){var t=e.key||e.keyCode;("Escape"===t||"Esc"===t||27===t)&&f()}),document.addEventListener("scroll",function(){if(!v&&_.original){var e=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;Math.abs(x-e)>y.scrollOffset&&setTimeout(f,150)}}),window.addEventListener("resize",f);var w={open:d,close:f,toggle:p,update:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e.background&&(D.style.background=e.background),e.container&&e.container instanceof Object&&(e.container=i({},y.container,e.container)),e.template){var t=o(e.template)?e.template:document.querySelector(e.template);e.template=t}return y=i({},y,e),m.forEach(function(e){e.dispatchEvent(h("medium-zoom:update",{detail:{zoom:w}}))}),w},clone:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e(i({},y,t))},attach:s,detach:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];_.zoomed&&f();var r=t.length>0?t.reduce(function(e,t){return[].concat(e,a(t))},[]):m;return r.forEach(function(e){e.classList.remove("medium-zoom-image"),e.dispatchEvent(h("medium-zoom:detach",{detail:{zoom:w}}))}),m=m.filter(function(e){return -1===r.indexOf(e)}),w},on:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return m.forEach(function(r){r.addEventListener("medium-zoom:"+e,t,n)}),g.push({type:"medium-zoom:"+e,listener:t,options:n}),w},off:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return m.forEach(function(r){r.removeEventListener("medium-zoom:"+e,t,n)}),g=g.filter(function(n){return n.type!=="medium-zoom:"+e||n.listener.toString()!==t.toString()}),w},getOptions:function(){return y},getImages:function(){return m},getZoomedImage:function(){return _.original}};return w},f=n(3706);function p(e){let{pathname:t}=(0,r.zy)(),{selector:n=".rspress-doc img",options:i={}}=e;return(0,f.useEffect)(()=>{let e,t=setTimeout(()=>{e=d(document.querySelectorAll(n),{...i,background:"var(--rp-c-bg)"})},100);return()=>{clearTimeout(t),e?.detach(),e?.close()}},[t]),null}n(8657)},8923(e,t,n){"use strict";var r=n(3706);let i={},s=r.createContext(i);function o(e){let t=r.useContext(s);return r.useMemo(function(){return"function"==typeof e?e(t):{...t,...e}},[t,e])}function l(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:o(e.components),r.createElement(s.Provider,{value:t},e.children)}n.d(t,{R:()=>o,x:()=>l})},4477(e,t,n){"use strict";let r=/\?.*$/s,i=/#.*$/s;function s(e){return e.replace(/#.*$/,"")}function o(e){return"/"===e.charAt(0)||h(e)?e:`/${e}`}function l(e){return"/"===e.charAt(e.length-1)?e:`${e}/`}function a(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}let u=/^[a-zA-Z][a-zA-Z\d+\-.]*:/,c=/^(?:javascript|data|file):/i;function h(e=""){return u.test(e)&&!c.test(e)}function d(e=""){return/^\s*data:/i.test(e)}function f(e,t=!1,n=[]){if(!e)return"/";if(h(e)||e.startsWith("#")||!e.startsWith("/"))return e;let{url:r,hash:i,search:s}=(e=>{let[t,n=""]=e.split("#"),[r,i=""]=t.split("?");return{url:r,search:i,hash:n}})(decodeURIComponent(e));return t?(r.endsWith(".html")&&(r=r.replace(/\.html$/,"")),t&&r.endsWith("/index")&&(r=r.replace(/\/index$/,"/"))):r.endsWith(".html")||n.some(e=>r.endsWith(e))||(r.endsWith("/")?r+="index.html":r+=".html"),o([r,s?`?${s}`:"",i?`#${i}`:""].join(""))}function p(e){return a(o(function(e){let t=e.replace(/\\/g,"/"),n=t.startsWith("/"),r=t.split("/"),i=[];for(let e of r)"."===e||""===e||(".."===e?i.length>0&&".."!==i[i.length-1]?i.pop():n&&i.push(".."):i.push(e));let s=i.join("/");return n&&(s=`/${s}`),s}(e)))}function m(e,t){let n=o(e),r=p(t);return n.startsWith(r)?`${n}/`===t?t:n:`${r}${n}`}function g(e,t){return!t||h(e)?e:new URL(o(e),l(t)).href}function v(e,t){let n=o(e),r=p(t),i=n.replace(RegExp(`^${r}`),"");return""===i?"/":i}let x=e=>!1===e?"force-light":!0===e||void 0===e?"auto":e;n.d(t,{EJ:()=>v,My:()=>h,OM:()=>g,Tj:()=>f,UC:()=>a,ax:()=>d,cV:()=>m,fr:()=>s,hg:()=>l,tb:()=>o},{CR:(e,t)=>{if(e===t||t.startsWith(e))return!0;let n=`${e}.`;return t.startsWith(n)},Km:e=>{let t=x(e);return t.startsWith("force-")?t.slice(6):t},Nv:e=>!x(e).startsWith("force-"),OK:"search_index",TG:e=>e.replace(i,"").replace(r,""),gT:/\.mdx?$/,sP:(e,t)=>
13new RegExp(e.activeMatch||f(e.link,!0)).test(t)})},257(e,t,n){"use strict";let r=(0,n(3706).createContext)(null);n.d(t,{},{U:r})},3372(e,t){"use strict";t.A=function(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=function e(t){var n,r,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t)if(Array.isArray(t)){var s=t.length;for(n=0;n<s;n++)t[n]&&(r=e(t[n]))&&(i&&(i+=" "),i+=r)}else for(r in t)t[r]&&(i&&(i+=" "),i+=r);return i}(e))&&(r&&(r+=" "),r+=t);return r}},8172(e,t,n){"use strict";let r=new Set(["link","style","script","noscript"]),i=new Set(["title","titleTemplate","script","style","noscript"]),s=new Set(["base","meta","link","style","script","noscript"]),o=new Set(["title","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),l=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),a=new Set(["key","tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent","processTemplateParams"]),u=new Set(["templateParams","htmlAttrs","bodyAttrs"]),c=new Set(["theme-color","google-site-verification","og","article","book","profile","twitter","author"]);n.d(t,{},{D:r,H:s,M:c,T:a,U:l,V:o,b:i,c:u,h:e=>"number"==typeof e?Number.isFinite(e):e})}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.