mirror of
https://github.com/WeBankFinTech/fes.js.git
synced 2025-04-06 03:59:53 +08:00
24 lines
258 KiB
JavaScript
24 lines
258 KiB
JavaScript
const sf="modulepreload",af=function(e){return"/fes.js/"+e},vs={},B=function(t,n,r){return!n||n.length===0?t():Promise.all(n.map(o=>{if(o=af(o),o in vs)return;vs[o]=!0;const i=o.endsWith(".css"),s=i?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${o}"]${s}`))return;const a=document.createElement("link");if(a.rel=i?"stylesheet":sf,i||(a.as="script",a.crossOrigin=""),a.href=o,document.head.appendChild(a),i)return new Promise((l,u)=>{a.addEventListener("load",l),a.addEventListener("error",()=>u(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>t())},lf={"v-8daa1a0e":()=>B(()=>import("./index.html.bc74ee4c.js"),[]).then(({data:e})=>e),"v-fffb8e28":()=>B(()=>import("./index.html.85db73e3.js"),[]).then(({data:e})=>e),"v-0cca110a":()=>B(()=>import("./builder.html.e970d1bc.js"),[]).then(({data:e})=>e),"v-85fa9b2a":()=>B(()=>import("./config.html.5d92a440.js"),[]).then(({data:e})=>e),"v-d7fa887a":()=>B(()=>import("./contributing.html.24d74808.js"),[]).then(({data:e})=>e),"v-884fd4bc":()=>B(()=>import("./css.html.3990f0c1.js"),[]).then(({data:e})=>e),"v-040800dc":()=>B(()=>import("./directory-structure.html.4960a3b9.js"),[]).then(({data:e})=>e),"v-ef8c5e10":()=>B(()=>import("./env.html.35aa0f1a.js"),[]).then(({data:e})=>e),"v-37e1c06f":()=>B(()=>import("./faq.html.1e599082.js"),[]).then(({data:e})=>e),"v-fb0f0066":()=>B(()=>import("./getting-started.html.8eca842e.js"),[]).then(({data:e})=>e),"v-528b8b6c":()=>B(()=>import("./image.html.20b52f7d.js"),[]).then(({data:e})=>e),"v-00cf7e23":()=>B(()=>import("./mock.html.6d653289.js"),[]).then(({data:e})=>e),"v-1d14d5cc":()=>B(()=>import("./plugin.html.ccfb9074.js"),[]).then(({data:e})=>e),"v-7b96e3a4":()=>B(()=>import("./public.html.9d99cf84.js"),[]).then(({data:e})=>e),"v-6320961c":()=>B(()=>import("./route.html.aa1f3f0b.js"),[]).then(({data:e})=>e),"v-3dba8814":()=>B(()=>import("./runtime-config.html.d036f810.js"),[]).then(({data:e})=>e),"v-7b48519a":()=>B(()=>import("./template.html.decb42ff.js"),[]).then(({data:e})=>e),"v-4acab794":()=>B(()=>import("./upgrade3.html.0ae06c8e.js"),[]).then(({data:e})=>e),"v-a1a49808":()=>B(()=>import("./api.html.20695f57.js"),[]).then(({data:e})=>e),"v-a951be94":()=>B(()=>import("./cli.html.b37682a1.js"),[]).then(({data:e})=>e),"v-76cd065c":()=>B(()=>import("./index.html.35cddc8c.js"),[]).then(({data:e})=>e),"v-76cb52e8":()=>B(()=>import("./index.html.82e50780.js"),[]).then(({data:e})=>e),"v-2c05b6e0":()=>B(()=>import("./index.html.74321f46.js"),[]).then(({data:e})=>e),"v-d61a9282":()=>B(()=>import("./index.html.d460e0cc.js"),[]).then(({data:e})=>e),"v-494b840e":()=>B(()=>import("./index.html.b3f98887.js"),[]).then(({data:e})=>e),"v-c5618810":()=>B(()=>import("./api.html.b17fa30f.js"),[]).then(({data:e})=>e),"v-2fe128e7":()=>B(()=>import("./access.html.701eacb0.js"),[]).then(({data:e})=>e),"v-323bda7e":()=>B(()=>import("./editor.html.2fb88cf1.js"),[]).then(({data:e})=>e),"v-c253c956":()=>B(()=>import("./enums.html.7c55aefa.js"),[]).then(({data:e})=>e),"v-0a0e491c":()=>B(()=>import("./icon.html.d2dc60da.js"),[]).then(({data:e})=>e),"v-3cd5a4ef":()=>B(()=>import("./jest.html.de551700.js"),[]).then(({data:e})=>e),"v-355ee23e":()=>B(()=>import("./layout.html.bccb8e74.js"),[]).then(({data:e})=>e),"v-411c0c9e":()=>B(()=>import("./locale.html.4d3b3790.js"),[]).then(({data:e})=>e),"v-56ab05de":()=>B(()=>import("./login.html.2f0338ab.js"),[]).then(({data:e})=>e),"v-3c4e521e":()=>B(()=>import("./model.html.fab33d63.js"),[]).then(({data:e})=>e),"v-6f2f6a5a":()=>B(()=>import("./pinia.html.1e6ca3bb.js"),[]).then(({data:e})=>e),"v-b15becb0":()=>B(()=>import("./qiankun.html.deb33c50.js"),[]).then(({data:e})=>e),"v-41dee210":()=>B(()=>import("./request.html.fe4ceade.js"),[]).then(({data:e})=>e),"v-5bf80046":()=>B(()=>import("./sass.html.177ef37c.js"),[]).then(({data:e})=>e),"v-317f9008":()=>B(()=>import("./swc.html.a56bb9f7.js"),[]).then(({data:e})=>e),"v-5f4c684e":()=>B(()=>import("./vuex.html.36df398e.js"),[]).then(({data:e})=>e),"v-1c0edac3":()=>B(()=>import("./watermark.html.855d80c4.js"),[]).then(({data:e})=>e),"v-392e58ee":()=>B(()=>import("./windicss.html.cc303ad2.js"),[]).then(({data:e})=>e),"v-3706649a":()=>B(()=>import("./404.html.c3e557d0.js"),[]).then(({data:e})=>e)};function Ri(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o<r.length;o++)n[r[o]]=!0;return t?o=>!!n[o.toLowerCase()]:o=>!!n[o]}function _r(e){if(oe(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=Oe(r)?df(r):_r(r);if(o)for(const i in o)t[i]=o[i]}return t}else{if(Oe(e))return e;if(Te(e))return e}}const cf=/;(?![^(]*\))/g,uf=/:([^]+)/,ff=/\/\*.*?\*\//gs;function df(e){const t={};return e.replace(ff,"").split(cf).forEach(n=>{if(n){const r=n.split(uf);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function et(e){let t="";if(Oe(e))t=e;else if(oe(e))for(let n=0;n<e.length;n++){const r=et(e[n]);r&&(t+=r+" ")}else if(Te(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const pf="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",mf=Ri(pf);function Hl(e){return!!e||e===""}const Be=e=>Oe(e)?e:e==null?"":oe(e)||Te(e)&&(e.toString===ql||!fe(e.toString))?JSON.stringify(e,Fl,2):String(e),Fl=(e,t)=>t&&t.__v_isRef?Fl(e,t.value):Sn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o])=>(n[`${r} =>`]=o,n),{})}:Bl(t)?{[`Set(${t.size})`]:[...t.values()]}:Te(t)&&!oe(t)&&!Ul(t)?String(t):t,xe={},wn=[],mt=()=>{},hf=()=>!1,vf=/^on[^a-z]/,yr=e=>vf.test(e),ji=e=>e.startsWith("onUpdate:"),ze=Object.assign,Di=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},gf=Object.prototype.hasOwnProperty,_e=(e,t)=>gf.call(e,t),oe=Array.isArray,Sn=e=>_o(e)==="[object Map]",Bl=e=>_o(e)==="[object Set]",fe=e=>typeof e=="function",Oe=e=>typeof e=="string",Ni=e=>typeof e=="symbol",Te=e=>e!==null&&typeof e=="object",Vl=e=>Te(e)&&fe(e.then)&&fe(e.catch),ql=Object.prototype.toString,_o=e=>ql.call(e),_f=e=>_o(e).slice(8,-1),Ul=e=>_o(e)==="[object Object]",Mi=e=>Oe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Gn=Ri(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),yo=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},yf=/-(\w)/g,Et=yo(e=>e.replace(yf,(t,n)=>n?n.toUpperCase():"")),bf=/\B([A-Z])/g,dn=yo(e=>e.replace(bf,"-$1").toLowerCase()),bo=yo(e=>e.charAt(0).toUpperCase()+e.slice(1)),Do=yo(e=>e?`on${bo(e)}`:""),ar=(e,t)=>!Object.is(e,t),No=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Zr=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Ef=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Of=e=>{const t=Oe(e)?Number(e):NaN;return isNaN(t)?e:t};let gs;const wf=()=>gs||(gs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let rt;class Sf{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=rt,!t&&rt&&(this.index=(rt.scopes||(rt.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=rt;try{return rt=this,t()}finally{rt=n}}}on(){rt=this}off(){rt=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.scopes)for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0,this._active=!1}}}function Pf(e,t=rt){t&&t.active&&t.effects.push(e)}function zl(){return rt}function Cf(e){rt&&rt.cleanups.push(e)}const $i=e=>{const t=new Set(e);return t.w=0,t.n=0,t},Kl=e=>(e.w&qt)>0,Wl=e=>(e.n&qt)>0,If=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=qt},kf=e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const o=t[r];Kl(o)&&!Wl(o)?o.delete(e):t[n++]=o,o.w&=~qt,o.n&=~qt}t.length=n}},Yr=new WeakMap;let Qn=0,qt=1;const ri=30;let dt;const un=Symbol(""),oi=Symbol("");class Hi{constructor(t,n=null,r){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,Pf(this,r)}run(){if(!this.active)return this.fn();let t=dt,n=Ht;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=dt,dt=this,Ht=!0,qt=1<<++Qn,Qn<=ri?If(this):_s(this),this.fn()}finally{Qn<=ri&&kf(this),qt=1<<--Qn,dt=this.parent,Ht=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){dt===this?this.deferStop=!0:this.active&&(_s(this),this.onStop&&this.onStop(),this.active=!1)}}function _s(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let Ht=!0;const Jl=[];function Dn(){Jl.push(Ht),Ht=!1}function Nn(){const e=Jl.pop();Ht=e===void 0?!0:e}function tt(e,t,n){if(Ht&&dt){let r=Yr.get(e);r||Yr.set(e,r=new Map);let o=r.get(n);o||r.set(n,o=$i()),Ql(o)}}function Ql(e,t){let n=!1;Qn<=ri?Wl(e)||(e.n|=qt,n=!Kl(e)):n=!e.has(dt),n&&(e.add(dt),dt.deps.push(e))}function xt(e,t,n,r,o,i){const s=Yr.get(e);if(!s)return;let a=[];if(t==="clear")a=[...s.values()];else if(n==="length"&&oe(e)){const l=Number(r);s.forEach((u,c)=>{(c==="length"||c>=l)&&a.push(u)})}else switch(n!==void 0&&a.push(s.get(n)),t){case"add":oe(e)?Mi(n)&&a.push(s.get("length")):(a.push(s.get(un)),Sn(e)&&a.push(s.get(oi)));break;case"delete":oe(e)||(a.push(s.get(un)),Sn(e)&&a.push(s.get(oi)));break;case"set":Sn(e)&&a.push(s.get(un));break}if(a.length===1)a[0]&&ii(a[0]);else{const l=[];for(const u of a)u&&l.push(...u);ii($i(l))}}function ii(e,t){const n=oe(e)?e:[...e];for(const r of n)r.computed&&ys(r);for(const r of n)r.computed||ys(r)}function ys(e,t){(e!==dt||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function Af(e,t){var n;return(n=Yr.get(e))===null||n===void 0?void 0:n.get(t)}const xf=Ri("__proto__,__v_isRef,__isVue"),Zl=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ni)),Tf=Fi(),Lf=Fi(!1,!0),Rf=Fi(!0),bs=jf();function jf(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=be(this);for(let i=0,s=this.length;i<s;i++)tt(r,"get",i+"");const o=r[t](...n);return o===-1||o===!1?r[t](...n.map(be)):o}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Dn();const r=be(this)[t].apply(this,n);return Nn(),r}}),e}function Df(e){const t=be(this);return tt(t,"has",e),t.hasOwnProperty(e)}function Fi(e=!1,t=!1){return function(r,o,i){if(o==="__v_isReactive")return!e;if(o==="__v_isReadonly")return e;if(o==="__v_isShallow")return t;if(o==="__v_raw"&&i===(e?t?Yf:tc:t?ec:Xl).get(r))return r;const s=oe(r);if(!e){if(s&&_e(bs,o))return Reflect.get(bs,o,i);if(o==="hasOwnProperty")return Df}const a=Reflect.get(r,o,i);return(Ni(o)?Zl.has(o):xf(o))||(e||tt(r,"get",o),t)?a:Ve(a)?s&&Mi(o)?a:a.value:Te(a)?e?Oo(a):Mn(a):a}}const Nf=Yl(),Mf=Yl(!0);function Yl(e=!1){return function(n,r,o,i){let s=n[r];if(An(s)&&Ve(s)&&!Ve(o))return!1;if(!e&&(!Gr(o)&&!An(o)&&(s=be(s),o=be(o)),!oe(n)&&Ve(s)&&!Ve(o)))return s.value=o,!0;const a=oe(n)&&Mi(r)?Number(r)<n.length:_e(n,r),l=Reflect.set(n,r,o,i);return n===be(i)&&(a?ar(o,s)&&xt(n,"set",r,o):xt(n,"add",r,o)),l}}function $f(e,t){const n=_e(e,t);e[t];const r=Reflect.deleteProperty(e,t);return r&&n&&xt(e,"delete",t,void 0),r}function Hf(e,t){const n=Reflect.has(e,t);return(!Ni(t)||!Zl.has(t))&&tt(e,"has",t),n}function Ff(e){return tt(e,"iterate",oe(e)?"length":un),Reflect.ownKeys(e)}const Gl={get:Tf,set:Nf,deleteProperty:$f,has:Hf,ownKeys:Ff},Bf={get:Rf,set(e,t){return!0},deleteProperty(e,t){return!0}},Vf=ze({},Gl,{get:Lf,set:Mf}),Bi=e=>e,Eo=e=>Reflect.getPrototypeOf(e);function Pr(e,t,n=!1,r=!1){e=e.__v_raw;const o=be(e),i=be(t);n||(t!==i&&tt(o,"get",t),tt(o,"get",i));const{has:s}=Eo(o),a=r?Bi:n?Ui:lr;if(s.call(o,t))return a(e.get(t));if(s.call(o,i))return a(e.get(i));e!==o&&e.get(t)}function Cr(e,t=!1){const n=this.__v_raw,r=be(n),o=be(e);return t||(e!==o&&tt(r,"has",e),tt(r,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function Ir(e,t=!1){return e=e.__v_raw,!t&&tt(be(e),"iterate",un),Reflect.get(e,"size",e)}function Es(e){e=be(e);const t=be(this);return Eo(t).has.call(t,e)||(t.add(e),xt(t,"add",e,e)),this}function Os(e,t){t=be(t);const n=be(this),{has:r,get:o}=Eo(n);let i=r.call(n,e);i||(e=be(e),i=r.call(n,e));const s=o.call(n,e);return n.set(e,t),i?ar(t,s)&&xt(n,"set",e,t):xt(n,"add",e,t),this}function ws(e){const t=be(this),{has:n,get:r}=Eo(t);let o=n.call(t,e);o||(e=be(e),o=n.call(t,e)),r&&r.call(t,e);const i=t.delete(e);return o&&xt(t,"delete",e,void 0),i}function Ss(){const e=be(this),t=e.size!==0,n=e.clear();return t&&xt(e,"clear",void 0,void 0),n}function kr(e,t){return function(r,o){const i=this,s=i.__v_raw,a=be(s),l=t?Bi:e?Ui:lr;return!e&&tt(a,"iterate",un),s.forEach((u,c)=>r.call(o,l(u),l(c),i))}}function Ar(e,t,n){return function(...r){const o=this.__v_raw,i=be(o),s=Sn(i),a=e==="entries"||e===Symbol.iterator&&s,l=e==="keys"&&s,u=o[e](...r),c=n?Bi:t?Ui:lr;return!t&&tt(i,"iterate",l?oi:un),{next(){const{value:f,done:d}=u.next();return d?{value:f,done:d}:{value:a?[c(f[0]),c(f[1])]:c(f),done:d}},[Symbol.iterator](){return this}}}}function Rt(e){return function(...t){return e==="delete"?!1:this}}function qf(){const e={get(i){return Pr(this,i)},get size(){return Ir(this)},has:Cr,add:Es,set:Os,delete:ws,clear:Ss,forEach:kr(!1,!1)},t={get(i){return Pr(this,i,!1,!0)},get size(){return Ir(this)},has:Cr,add:Es,set:Os,delete:ws,clear:Ss,forEach:kr(!1,!0)},n={get(i){return Pr(this,i,!0)},get size(){return Ir(this,!0)},has(i){return Cr.call(this,i,!0)},add:Rt("add"),set:Rt("set"),delete:Rt("delete"),clear:Rt("clear"),forEach:kr(!0,!1)},r={get(i){return Pr(this,i,!0,!0)},get size(){return Ir(this,!0)},has(i){return Cr.call(this,i,!0)},add:Rt("add"),set:Rt("set"),delete:Rt("delete"),clear:Rt("clear"),forEach:kr(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Ar(i,!1,!1),n[i]=Ar(i,!0,!1),t[i]=Ar(i,!1,!0),r[i]=Ar(i,!0,!0)}),[e,n,t,r]}const[Uf,zf,Kf,Wf]=qf();function Vi(e,t){const n=t?e?Wf:Kf:e?zf:Uf;return(r,o,i)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?r:Reflect.get(_e(n,o)&&o in r?n:r,o,i)}const Jf={get:Vi(!1,!1)},Qf={get:Vi(!1,!0)},Zf={get:Vi(!0,!1)},Xl=new WeakMap,ec=new WeakMap,tc=new WeakMap,Yf=new WeakMap;function Gf(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Xf(e){return e.__v_skip||!Object.isExtensible(e)?0:Gf(_f(e))}function Mn(e){return An(e)?e:qi(e,!1,Gl,Jf,Xl)}function ed(e){return qi(e,!1,Vf,Qf,ec)}function Oo(e){return qi(e,!0,Bf,Zf,tc)}function qi(e,t,n,r,o){if(!Te(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=o.get(e);if(i)return i;const s=Xf(e);if(s===0)return e;const a=new Proxy(e,s===2?r:n);return o.set(e,a),a}function Pn(e){return An(e)?Pn(e.__v_raw):!!(e&&e.__v_isReactive)}function An(e){return!!(e&&e.__v_isReadonly)}function Gr(e){return!!(e&&e.__v_isShallow)}function nc(e){return Pn(e)||An(e)}function be(e){const t=e&&e.__v_raw;return t?be(t):e}function rc(e){return Zr(e,"__v_skip",!0),e}const lr=e=>Te(e)?Mn(e):e,Ui=e=>Te(e)?Oo(e):e;function oc(e){Ht&&dt&&(e=be(e),Ql(e.dep||(e.dep=$i())))}function ic(e,t){e=be(e);const n=e.dep;n&&ii(n)}function Ve(e){return!!(e&&e.__v_isRef===!0)}function Ce(e){return ac(e,!1)}function sc(e){return ac(e,!0)}function ac(e,t){return Ve(e)?e:new td(e,t)}class td{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:be(t),this._value=n?t:lr(t)}get value(){return oc(this),this._value}set value(t){const n=this.__v_isShallow||Gr(t)||An(t);t=n?t:be(t),ar(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:lr(t),ic(this))}}function V(e){return Ve(e)?e.value:e}const nd={get:(e,t,n)=>V(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return Ve(o)&&!Ve(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function lc(e){return Pn(e)?e:new Proxy(e,nd)}function zi(e){const t=oe(e)?new Array(e.length):{};for(const n in e)t[n]=od(e,n);return t}class rd{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Af(be(this._object),this._key)}}function od(e,t,n){const r=e[t];return Ve(r)?r:new rd(e,t,n)}var cc;class id{constructor(t,n,r,o){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[cc]=!1,this._dirty=!0,this.effect=new Hi(t,()=>{this._dirty||(this._dirty=!0,ic(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=r}get value(){const t=be(this);return oc(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}cc="__v_isReadonly";function sd(e,t,n=!1){let r,o;const i=fe(e);return i?(r=e,o=mt):(r=e.get,o=e.set),new id(r,o,i||!o,n)}function Ft(e,t,n,r){let o;try{o=r?e(...r):e()}catch(i){br(i,t,n)}return o}function at(e,t,n,r){if(fe(e)){const i=Ft(e,t,n,r);return i&&Vl(i)&&i.catch(s=>{br(s,t,n)}),i}const o=[];for(let i=0;i<e.length;i++)o.push(at(e[i],t,n,r));return o}function br(e,t,n,r=!0){const o=t?t.vnode:null;if(t){let i=t.parent;const s=t.proxy,a=n;for(;i;){const u=i.ec;if(u){for(let c=0;c<u.length;c++)if(u[c](e,s,a)===!1)return}i=i.parent}const l=t.appContext.config.errorHandler;if(l){Ft(l,null,10,[e,s,a]);return}}ad(e,n,o,r)}function ad(e,t,n,r=!0){console.error(e)}let cr=!1,si=!1;const We=[];let _t=0;const Cn=[];let Pt=null,rn=0;const uc=Promise.resolve();let Ki=null;function Er(e){const t=Ki||uc;return e?t.then(this?e.bind(this):e):t}function ld(e){let t=_t+1,n=We.length;for(;t<n;){const r=t+n>>>1;ur(We[r])<e?t=r+1:n=r}return t}function wo(e){(!We.length||!We.includes(e,cr&&e.allowRecurse?_t+1:_t))&&(e.id==null?We.push(e):We.splice(ld(e.id),0,e),fc())}function fc(){!cr&&!si&&(si=!0,Ki=uc.then(dc))}function cd(e){const t=We.indexOf(e);t>_t&&We.splice(t,1)}function ud(e){oe(e)?Cn.push(...e):(!Pt||!Pt.includes(e,e.allowRecurse?rn+1:rn))&&Cn.push(e),fc()}function Ps(e,t=cr?_t+1:0){for(;t<We.length;t++){const n=We[t];n&&n.pre&&(We.splice(t,1),t--,n())}}function Xr(e){if(Cn.length){const t=[...new Set(Cn)];if(Cn.length=0,Pt){Pt.push(...t);return}for(Pt=t,Pt.sort((n,r)=>ur(n)-ur(r)),rn=0;rn<Pt.length;rn++)Pt[rn]();Pt=null,rn=0}}const ur=e=>e.id==null?1/0:e.id,fd=(e,t)=>{const n=ur(e)-ur(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function dc(e){si=!1,cr=!0,We.sort(fd);const t=mt;try{for(_t=0;_t<We.length;_t++){const n=We[_t];n&&n.active!==!1&&Ft(n,null,14)}}finally{_t=0,We.length=0,Xr(),cr=!1,Ki=null,(We.length||Cn.length)&&dc()}}function dd(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||xe;let o=n;const i=t.startsWith("update:"),s=i&&t.slice(7);if(s&&s in r){const c=`${s==="modelValue"?"model":s}Modifiers`,{number:f,trim:d}=r[c]||xe;d&&(o=n.map(p=>Oe(p)?p.trim():p)),f&&(o=n.map(Ef))}let a,l=r[a=Do(t)]||r[a=Do(Et(t))];!l&&i&&(l=r[a=Do(dn(t))]),l&&at(l,e,6,o);const u=r[a+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,at(u,e,6,o)}}function pc(e,t,n=!1){const r=t.emitsCache,o=r.get(e);if(o!==void 0)return o;const i=e.emits;let s={},a=!1;if(!fe(e)){const l=u=>{const c=pc(u,t,!0);c&&(a=!0,ze(s,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!a?(Te(e)&&r.set(e,null),null):(oe(i)?i.forEach(l=>s[l]=null):ze(s,i),Te(e)&&r.set(e,s),s)}function So(e,t){return!e||!yr(t)?!1:(t=t.slice(2).replace(/Once$/,""),_e(e,t[0].toLowerCase()+t.slice(1))||_e(e,dn(t))||_e(e,t))}let Ue=null,mc=null;function eo(e){const t=Ue;return Ue=e,mc=e&&e.type.__scopeId||null,t}function qe(e,t=Ue,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&Ds(-1);const i=eo(t);let s;try{s=e(...o)}finally{eo(i),r._d&&Ds(1)}return s};return r._n=!0,r._c=!0,r._d=!0,r}function Mo(e){const{type:t,vnode:n,proxy:r,withProxy:o,props:i,propsOptions:[s],slots:a,attrs:l,emit:u,render:c,renderCache:f,data:d,setupState:p,ctx:_,inheritAttrs:g}=e;let O,h;const E=eo(e);try{if(n.shapeFlag&4){const S=o||r;O=ft(c.call(S,S,f,i,p,d,_)),h=l}else{const S=t;O=ft(S.length>1?S(i,{attrs:l,slots:a,emit:u}):S(i,null)),h=t.props?l:pd(l)}}catch(S){tr.length=0,br(S,e,1),O=ae(ot)}let w=O;if(h&&g!==!1){const S=Object.keys(h),{shapeFlag:I}=w;S.length&&I&7&&(s&&S.some(ji)&&(h=md(h,s)),w=zt(w,h))}return n.dirs&&(w=zt(w),w.dirs=w.dirs?w.dirs.concat(n.dirs):n.dirs),n.transition&&(w.transition=n.transition),O=w,eo(E),O}const pd=e=>{let t;for(const n in e)(n==="class"||n==="style"||yr(n))&&((t||(t={}))[n]=e[n]);return t},md=(e,t)=>{const n={};for(const r in e)(!ji(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function hd(e,t,n){const{props:r,children:o,component:i}=e,{props:s,children:a,patchFlag:l}=t,u=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?Cs(r,s,u):!!s;if(l&8){const c=t.dynamicProps;for(let f=0;f<c.length;f++){const d=c[f];if(s[d]!==r[d]&&!So(u,d))return!0}}}else return(o||a)&&(!a||!a.$stable)?!0:r===s?!1:r?s?Cs(r,s,u):!0:!!s;return!1}function Cs(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let o=0;o<r.length;o++){const i=r[o];if(t[i]!==e[i]&&!So(n,i))return!0}return!1}function vd({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const gd=e=>e.__isSuspense;function hc(e,t){t&&t.pendingBranch?oe(e)?t.effects.push(...e):t.effects.push(e):ud(e)}function Bt(e,t){if(je){let n=je.provides;const r=je.parent&&je.parent.provides;r===n&&(n=je.provides=Object.create(r)),n[e]=t}}function Fe(e,t,n=!1){const r=je||Ue;if(r){const o=r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(o&&e in o)return o[e];if(arguments.length>1)return n&&fe(t)?t.call(r.proxy):t}}function _d(e,t){return Wi(e,null,t)}const xr={};function lt(e,t,n){return Wi(e,t,n)}function Wi(e,t,{immediate:n,deep:r,flush:o,onTrack:i,onTrigger:s}=xe){const a=zl()===(je==null?void 0:je.scope)?je:null;let l,u=!1,c=!1;if(Ve(e)?(l=()=>e.value,u=Gr(e)):Pn(e)?(l=()=>e,r=!0):oe(e)?(c=!0,u=e.some(w=>Pn(w)||Gr(w)),l=()=>e.map(w=>{if(Ve(w))return w.value;if(Pn(w))return ln(w);if(fe(w))return Ft(w,a,2)})):fe(e)?t?l=()=>Ft(e,a,2):l=()=>{if(!(a&&a.isUnmounted))return f&&f(),at(e,a,3,[d])}:l=mt,t&&r){const w=l;l=()=>ln(w())}let f,d=w=>{f=h.onStop=()=>{Ft(w,a,4)}},p;if(Ln)if(d=mt,t?n&&at(t,a,3,[l(),c?[]:void 0,d]):l(),o==="sync"){const w=dp();p=w.__watcherHandles||(w.__watcherHandles=[])}else return mt;let _=c?new Array(e.length).fill(xr):xr;const g=()=>{if(!!h.active)if(t){const w=h.run();(r||u||(c?w.some((S,I)=>ar(S,_[I])):ar(w,_)))&&(f&&f(),at(t,a,3,[w,_===xr?void 0:c&&_[0]===xr?[]:_,d]),_=w)}else h.run()};g.allowRecurse=!!t;let O;o==="sync"?O=g:o==="post"?O=()=>Xe(g,a&&a.suspense):(g.pre=!0,a&&(g.id=a.uid),O=()=>wo(g));const h=new Hi(l,O);t?n?g():_=h.run():o==="post"?Xe(h.run.bind(h),a&&a.suspense):h.run();const E=()=>{h.stop(),a&&a.scope&&Di(a.scope.effects,h)};return p&&p.push(E),E}function yd(e,t,n){const r=this.proxy,o=Oe(e)?e.includes(".")?vc(r,e):()=>r[e]:e.bind(r,r);let i;fe(t)?i=t:(i=t.handler,n=t);const s=je;Tn(this);const a=Wi(o,i.bind(r),n);return s?Tn(s):fn(),a}function vc(e,t){const n=t.split(".");return()=>{let r=e;for(let o=0;o<n.length&&r;o++)r=r[n[o]];return r}}function ln(e,t){if(!Te(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),Ve(e))ln(e.value,t);else if(oe(e))for(let n=0;n<e.length;n++)ln(e[n],t);else if(Bl(e)||Sn(e))e.forEach(n=>{ln(n,t)});else if(Ul(e))for(const n in e)ln(e[n],t);return e}function bd(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Ye(()=>{e.isMounted=!0}),Co(()=>{e.isUnmounting=!0}),e}const it=[Function,Array],Ed={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:it,onEnter:it,onAfterEnter:it,onEnterCancelled:it,onBeforeLeave:it,onLeave:it,onAfterLeave:it,onLeaveCancelled:it,onBeforeAppear:it,onAppear:it,onAfterAppear:it,onAppearCancelled:it},setup(e,{slots:t}){const n=Rc(),r=bd();let o;return()=>{const i=t.default&&yc(t.default(),!0);if(!i||!i.length)return;let s=i[0];if(i.length>1){for(const g of i)if(g.type!==ot){s=g;break}}const a=be(e),{mode:l}=a;if(r.isLeaving)return $o(s);const u=Is(s);if(!u)return $o(s);const c=ai(u,a,r,n);li(u,c);const f=n.subTree,d=f&&Is(f);let p=!1;const{getTransitionKey:_}=u.type;if(_){const g=_();o===void 0?o=g:g!==o&&(o=g,p=!0)}if(d&&d.type!==ot&&(!on(u,d)||p)){const g=ai(d,a,r,n);if(li(d,g),l==="out-in")return r.isLeaving=!0,g.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},$o(s);l==="in-out"&&u.type!==ot&&(g.delayLeave=(O,h,E)=>{const w=_c(r,d);w[String(d.key)]=d,O._leaveCb=()=>{h(),O._leaveCb=void 0,delete c.delayedLeave},c.delayedLeave=E})}return s}}},gc=Ed;function _c(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function ai(e,t,n,r){const{appear:o,mode:i,persisted:s=!1,onBeforeEnter:a,onEnter:l,onAfterEnter:u,onEnterCancelled:c,onBeforeLeave:f,onLeave:d,onAfterLeave:p,onLeaveCancelled:_,onBeforeAppear:g,onAppear:O,onAfterAppear:h,onAppearCancelled:E}=t,w=String(e.key),S=_c(n,e),I=(b,M)=>{b&&at(b,r,9,M)},z=(b,M)=>{const N=M[1];I(b,M),oe(b)?b.every(K=>K.length<=1)&&N():b.length<=1&&N()},H={mode:i,persisted:s,beforeEnter(b){let M=a;if(!n.isMounted)if(o)M=g||a;else return;b._leaveCb&&b._leaveCb(!0);const N=S[w];N&&on(e,N)&&N.el._leaveCb&&N.el._leaveCb(),I(M,[b])},enter(b){let M=l,N=u,K=c;if(!n.isMounted)if(o)M=O||l,N=h||u,K=E||c;else return;let k=!1;const R=b._enterCb=$=>{k||(k=!0,$?I(K,[b]):I(N,[b]),H.delayedLeave&&H.delayedLeave(),b._enterCb=void 0)};M?z(M,[b,R]):R()},leave(b,M){const N=String(e.key);if(b._enterCb&&b._enterCb(!0),n.isUnmounting)return M();I(f,[b]);let K=!1;const k=b._leaveCb=R=>{K||(K=!0,M(),R?I(_,[b]):I(p,[b]),b._leaveCb=void 0,S[N]===e&&delete S[N])};S[N]=e,d?z(d,[b,k]):k()},clone(b){return ai(b,t,n,r)}};return H}function $o(e){if(Or(e))return e=zt(e),e.children=null,e}function Is(e){return Or(e)?e.children?e.children[0]:void 0:e}function li(e,t){e.shapeFlag&6&&e.component?li(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function yc(e,t=!1,n){let r=[],o=0;for(let i=0;i<e.length;i++){let s=e[i];const a=n==null?s.key:String(n)+String(s.key!=null?s.key:i);s.type===ke?(s.patchFlag&128&&o++,r=r.concat(yc(s.children,t,a))):(t||s.type!==ot)&&r.push(a!=null?zt(s,{key:a}):s)}if(o>1)for(let i=0;i<r.length;i++)r[i].patchFlag=-2;return r}function me(e){return fe(e)?{setup:e,name:e.name}:e}const In=e=>!!e.type.__asyncLoader;function ce(e){fe(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:o=200,timeout:i,suspensible:s=!0,onError:a}=e;let l=null,u,c=0;const f=()=>(c++,l=null,d()),d=()=>{let p;return l||(p=l=t().catch(_=>{if(_=_ instanceof Error?_:new Error(String(_)),a)return new Promise((g,O)=>{a(_,()=>g(f()),()=>O(_),c+1)});throw _}).then(_=>p!==l&&l?l:(_&&(_.__esModule||_[Symbol.toStringTag]==="Module")&&(_=_.default),u=_,_)))};return me({name:"AsyncComponentWrapper",__asyncLoader:d,get __asyncResolved(){return u},setup(){const p=je;if(u)return()=>Ho(u,p);const _=E=>{l=null,br(E,p,13,!r)};if(s&&p.suspense||Ln)return d().then(E=>()=>Ho(E,p)).catch(E=>(_(E),()=>r?ae(r,{error:E}):null));const g=Ce(!1),O=Ce(),h=Ce(!!o);return o&&setTimeout(()=>{h.value=!1},o),i!=null&&setTimeout(()=>{if(!g.value&&!O.value){const E=new Error(`Async component timed out after ${i}ms.`);_(E),O.value=E}},i),d().then(()=>{g.value=!0,p.parent&&Or(p.parent.vnode)&&wo(p.parent.update)}).catch(E=>{_(E),O.value=E}),()=>{if(g.value&&u)return Ho(u,p);if(O.value&&r)return ae(r,{error:O.value});if(n&&!h.value)return ae(n)}}})}function Ho(e,t){const{ref:n,props:r,children:o,ce:i}=t.vnode,s=ae(e,r,o);return s.ref=n,s.ce=i,delete t.vnode.ce,s}const Or=e=>e.type.__isKeepAlive;function Od(e,t){bc(e,"a",t)}function wd(e,t){bc(e,"da",t)}function bc(e,t,n=je){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Po(t,r,n),n){let o=n.parent;for(;o&&o.parent;)Or(o.parent.vnode)&&Sd(r,t,n,o),o=o.parent}}function Sd(e,t,n,r){const o=Po(t,e,r,!0);Io(()=>{Di(r[t],o)},n)}function Po(e,t,n=je,r=!1){if(n){const o=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...s)=>{if(n.isUnmounted)return;Dn(),Tn(n);const a=at(t,n,e,s);return fn(),Nn(),a});return r?o.unshift(i):o.push(i),i}}const Lt=e=>(t,n=je)=>(!Ln||e==="sp")&&Po(e,(...r)=>t(...r),n),Pd=Lt("bm"),Ye=Lt("m"),Cd=Lt("bu"),Id=Lt("u"),Co=Lt("bum"),Io=Lt("um"),kd=Lt("sp"),Ad=Lt("rtg"),xd=Lt("rtc");function Td(e,t=je){Po("ec",e,t)}function to(e,t){const n=Ue;if(n===null)return e;const r=Ao(n)||n.proxy,o=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[s,a,l,u=xe]=t[i];s&&(fe(s)&&(s={mounted:s,updated:s}),s.deep&&ln(a),o.push({dir:s,instance:r,value:a,oldValue:void 0,arg:l,modifiers:u}))}return e}function gt(e,t,n,r){const o=e.dirs,i=t&&t.dirs;for(let s=0;s<o.length;s++){const a=o[s];i&&(a.oldValue=i[s].value);let l=a.dir[r];l&&(Dn(),at(l,n,8,[e.el,a,e,t]),Nn())}}const Ec="components";function Tt(e,t){return Rd(Ec,e,!0,t)||e}const Ld=Symbol();function Rd(e,t,n=!0,r=!1){const o=Ue||je;if(o){const i=o.type;if(e===Ec){const a=cp(i,!1);if(a&&(a===t||a===Et(t)||a===bo(Et(t))))return i}const s=ks(o[e]||i[e],t)||ks(o.appContext[e],t);return!s&&r?i:s}}function ks(e,t){return e&&(e[t]||e[Et(t)]||e[bo(Et(t))])}function Ut(e,t,n,r){let o;const i=n&&n[r];if(oe(e)||Oe(e)){o=new Array(e.length);for(let s=0,a=e.length;s<a;s++)o[s]=t(e[s],s,void 0,i&&i[s])}else if(typeof e=="number"){o=new Array(e);for(let s=0;s<e;s++)o[s]=t(s+1,s,void 0,i&&i[s])}else if(Te(e))if(e[Symbol.iterator])o=Array.from(e,(s,a)=>t(s,a,void 0,i&&i[a]));else{const s=Object.keys(e);o=new Array(s.length);for(let a=0,l=s.length;a<l;a++){const u=s[a];o[a]=t(e[u],u,a,i&&i[a])}}else o=[];return n&&(n[r]=o),o}function Ie(e,t,n={},r,o){if(Ue.isCE||Ue.parent&&In(Ue.parent)&&Ue.parent.isCE)return t!=="default"&&(n.name=t),ae("slot",n,r&&r());let i=e[t];i&&i._c&&(i._d=!1),J();const s=i&&Oc(i(n)),a=He(ke,{key:n.key||s&&s.key||`_${t}`},s||(r?r():[]),s&&e._===1?64:-2);return!o&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),i&&i._c&&(i._d=!0),a}function Oc(e){return e.some(t=>oo(t)?!(t.type===ot||t.type===ke&&!Oc(t.children)):!0)?e:null}const ci=e=>e?jc(e)?Ao(e)||e.proxy:ci(e.parent):null,Xn=ze(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>ci(e.parent),$root:e=>ci(e.root),$emit:e=>e.emit,$options:e=>Ji(e),$forceUpdate:e=>e.f||(e.f=()=>wo(e.update)),$nextTick:e=>e.n||(e.n=Er.bind(e.proxy)),$watch:e=>yd.bind(e)}),Fo=(e,t)=>e!==xe&&!e.__isScriptSetup&&_e(e,t),jd={get({_:e},t){const{ctx:n,setupState:r,data:o,props:i,accessCache:s,type:a,appContext:l}=e;let u;if(t[0]!=="$"){const p=s[t];if(p!==void 0)switch(p){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return i[t]}else{if(Fo(r,t))return s[t]=1,r[t];if(o!==xe&&_e(o,t))return s[t]=2,o[t];if((u=e.propsOptions[0])&&_e(u,t))return s[t]=3,i[t];if(n!==xe&&_e(n,t))return s[t]=4,n[t];ui&&(s[t]=0)}}const c=Xn[t];let f,d;if(c)return t==="$attrs"&&tt(e,"get",t),c(e);if((f=a.__cssModules)&&(f=f[t]))return f;if(n!==xe&&_e(n,t))return s[t]=4,n[t];if(d=l.config.globalProperties,_e(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:o,ctx:i}=e;return Fo(o,t)?(o[t]=n,!0):r!==xe&&_e(r,t)?(r[t]=n,!0):_e(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,propsOptions:i}},s){let a;return!!n[s]||e!==xe&&_e(e,s)||Fo(t,s)||(a=i[0])&&_e(a,s)||_e(r,s)||_e(Xn,s)||_e(o.config.globalProperties,s)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:_e(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};let ui=!0;function Dd(e){const t=Ji(e),n=e.proxy,r=e.ctx;ui=!1,t.beforeCreate&&As(t.beforeCreate,e,"bc");const{data:o,computed:i,methods:s,watch:a,provide:l,inject:u,created:c,beforeMount:f,mounted:d,beforeUpdate:p,updated:_,activated:g,deactivated:O,beforeDestroy:h,beforeUnmount:E,destroyed:w,unmounted:S,render:I,renderTracked:z,renderTriggered:H,errorCaptured:b,serverPrefetch:M,expose:N,inheritAttrs:K,components:k,directives:R,filters:$}=t;if(u&&Nd(u,r,null,e.appContext.config.unwrapInjectedRef),s)for(const re in s){const se=s[re];fe(se)&&(r[re]=se.bind(n))}if(o){const re=o.call(n,n);Te(re)&&(e.data=Mn(re))}if(ui=!0,i)for(const re in i){const se=i[re],Le=fe(se)?se.bind(n,n):fe(se.get)?se.get.bind(n,n):mt,De=!fe(se)&&fe(se.set)?se.set.bind(n):mt,Ne=Q({get:Le,set:De});Object.defineProperty(r,re,{enumerable:!0,configurable:!0,get:()=>Ne.value,set:Ae=>Ne.value=Ae})}if(a)for(const re in a)wc(a[re],r,n,re);if(l){const re=fe(l)?l.call(n):l;Reflect.ownKeys(re).forEach(se=>{Bt(se,re[se])})}c&&As(c,e,"c");function W(re,se){oe(se)?se.forEach(Le=>re(Le.bind(n))):se&&re(se.bind(n))}if(W(Pd,f),W(Ye,d),W(Cd,p),W(Id,_),W(Od,g),W(wd,O),W(Td,b),W(xd,z),W(Ad,H),W(Co,E),W(Io,S),W(kd,M),oe(N))if(N.length){const re=e.exposed||(e.exposed={});N.forEach(se=>{Object.defineProperty(re,se,{get:()=>n[se],set:Le=>n[se]=Le})})}else e.exposed||(e.exposed={});I&&e.render===mt&&(e.render=I),K!=null&&(e.inheritAttrs=K),k&&(e.components=k),R&&(e.directives=R)}function Nd(e,t,n=mt,r=!1){oe(e)&&(e=fi(e));for(const o in e){const i=e[o];let s;Te(i)?"default"in i?s=Fe(i.from||o,i.default,!0):s=Fe(i.from||o):s=Fe(i),Ve(s)&&r?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>s.value,set:a=>s.value=a}):t[o]=s}}function As(e,t,n){at(oe(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function wc(e,t,n,r){const o=r.includes(".")?vc(n,r):()=>n[r];if(Oe(e)){const i=t[e];fe(i)&<(o,i)}else if(fe(e))lt(o,e.bind(n));else if(Te(e))if(oe(e))e.forEach(i=>wc(i,t,n,r));else{const i=fe(e.handler)?e.handler.bind(n):t[e.handler];fe(i)&<(o,i,e)}}function Ji(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:s}}=e.appContext,a=i.get(t);let l;return a?l=a:!o.length&&!n&&!r?l=t:(l={},o.length&&o.forEach(u=>no(l,u,s,!0)),no(l,t,s)),Te(t)&&i.set(t,l),l}function no(e,t,n,r=!1){const{mixins:o,extends:i}=t;i&&no(e,i,n,!0),o&&o.forEach(s=>no(e,s,n,!0));for(const s in t)if(!(r&&s==="expose")){const a=Md[s]||n&&n[s];e[s]=a?a(e[s],t[s]):t[s]}return e}const Md={data:xs,props:en,emits:en,methods:en,computed:en,beforeCreate:Je,created:Je,beforeMount:Je,mounted:Je,beforeUpdate:Je,updated:Je,beforeDestroy:Je,beforeUnmount:Je,destroyed:Je,unmounted:Je,activated:Je,deactivated:Je,errorCaptured:Je,serverPrefetch:Je,components:en,directives:en,watch:Hd,provide:xs,inject:$d};function xs(e,t){return t?e?function(){return ze(fe(e)?e.call(this,this):e,fe(t)?t.call(this,this):t)}:t:e}function $d(e,t){return en(fi(e),fi(t))}function fi(e){if(oe(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Je(e,t){return e?[...new Set([].concat(e,t))]:t}function en(e,t){return e?ze(ze(Object.create(null),e),t):t}function Hd(e,t){if(!e)return t;if(!t)return e;const n=ze(Object.create(null),e);for(const r in t)n[r]=Je(e[r],t[r]);return n}function Fd(e,t,n,r=!1){const o={},i={};Zr(i,ko,1),e.propsDefaults=Object.create(null),Sc(e,t,o,i);for(const s in e.propsOptions[0])s in o||(o[s]=void 0);n?e.props=r?o:ed(o):e.type.props?e.props=o:e.props=i,e.attrs=i}function Bd(e,t,n,r){const{props:o,attrs:i,vnode:{patchFlag:s}}=e,a=be(o),[l]=e.propsOptions;let u=!1;if((r||s>0)&&!(s&16)){if(s&8){const c=e.vnode.dynamicProps;for(let f=0;f<c.length;f++){let d=c[f];if(So(e.emitsOptions,d))continue;const p=t[d];if(l)if(_e(i,d))p!==i[d]&&(i[d]=p,u=!0);else{const _=Et(d);o[_]=di(l,a,_,p,e,!1)}else p!==i[d]&&(i[d]=p,u=!0)}}}else{Sc(e,t,o,i)&&(u=!0);let c;for(const f in a)(!t||!_e(t,f)&&((c=dn(f))===f||!_e(t,c)))&&(l?n&&(n[f]!==void 0||n[c]!==void 0)&&(o[f]=di(l,a,f,void 0,e,!0)):delete o[f]);if(i!==a)for(const f in i)(!t||!_e(t,f)&&!0)&&(delete i[f],u=!0)}u&&xt(e,"set","$attrs")}function Sc(e,t,n,r){const[o,i]=e.propsOptions;let s=!1,a;if(t)for(let l in t){if(Gn(l))continue;const u=t[l];let c;o&&_e(o,c=Et(l))?!i||!i.includes(c)?n[c]=u:(a||(a={}))[c]=u:So(e.emitsOptions,l)||(!(l in r)||u!==r[l])&&(r[l]=u,s=!0)}if(i){const l=be(n),u=a||xe;for(let c=0;c<i.length;c++){const f=i[c];n[f]=di(o,l,f,u[f],e,!_e(u,f))}}return s}function di(e,t,n,r,o,i){const s=e[n];if(s!=null){const a=_e(s,"default");if(a&&r===void 0){const l=s.default;if(s.type!==Function&&fe(l)){const{propsDefaults:u}=o;n in u?r=u[n]:(Tn(o),r=u[n]=l.call(null,t),fn())}else r=l}s[0]&&(i&&!a?r=!1:s[1]&&(r===""||r===dn(n))&&(r=!0))}return r}function Pc(e,t,n=!1){const r=t.propsCache,o=r.get(e);if(o)return o;const i=e.props,s={},a=[];let l=!1;if(!fe(e)){const c=f=>{l=!0;const[d,p]=Pc(f,t,!0);ze(s,d),p&&a.push(...p)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!i&&!l)return Te(e)&&r.set(e,wn),wn;if(oe(i))for(let c=0;c<i.length;c++){const f=Et(i[c]);Ts(f)&&(s[f]=xe)}else if(i)for(const c in i){const f=Et(c);if(Ts(f)){const d=i[c],p=s[f]=oe(d)||fe(d)?{type:d}:Object.assign({},d);if(p){const _=js(Boolean,p.type),g=js(String,p.type);p[0]=_>-1,p[1]=g<0||_<g,(_>-1||_e(p,"default"))&&a.push(f)}}}const u=[s,a];return Te(e)&&r.set(e,u),u}function Ts(e){return e[0]!=="$"}function Ls(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Rs(e,t){return Ls(e)===Ls(t)}function js(e,t){return oe(t)?t.findIndex(n=>Rs(n,e)):fe(t)&&Rs(t,e)?0:-1}const Cc=e=>e[0]==="_"||e==="$stable",Qi=e=>oe(e)?e.map(ft):[ft(e)],Vd=(e,t,n)=>{if(t._n)return t;const r=qe((...o)=>Qi(t(...o)),n);return r._c=!1,r},Ic=(e,t,n)=>{const r=e._ctx;for(const o in e){if(Cc(o))continue;const i=e[o];if(fe(i))t[o]=Vd(o,i,r);else if(i!=null){const s=Qi(i);t[o]=()=>s}}},kc=(e,t)=>{const n=Qi(t);e.slots.default=()=>n},qd=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=be(t),Zr(t,"_",n)):Ic(t,e.slots={})}else e.slots={},t&&kc(e,t);Zr(e.slots,ko,1)},Ud=(e,t,n)=>{const{vnode:r,slots:o}=e;let i=!0,s=xe;if(r.shapeFlag&32){const a=t._;a?n&&a===1?i=!1:(ze(o,t),!n&&a===1&&delete o._):(i=!t.$stable,Ic(t,o)),s=t}else t&&(kc(e,t),s={default:1});if(i)for(const a in o)!Cc(a)&&!(a in s)&&delete o[a]};function Ac(){return{app:null,config:{isNativeTag:hf,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let zd=0;function Kd(e,t){return function(r,o=null){fe(r)||(r=Object.assign({},r)),o!=null&&!Te(o)&&(o=null);const i=Ac(),s=new Set;let a=!1;const l=i.app={_uid:zd++,_component:r,_props:o,_container:null,_context:i,_instance:null,version:pp,get config(){return i.config},set config(u){},use(u,...c){return s.has(u)||(u&&fe(u.install)?(s.add(u),u.install(l,...c)):fe(u)&&(s.add(u),u(l,...c))),l},mixin(u){return i.mixins.includes(u)||i.mixins.push(u),l},component(u,c){return c?(i.components[u]=c,l):i.components[u]},directive(u,c){return c?(i.directives[u]=c,l):i.directives[u]},mount(u,c,f){if(!a){const d=ae(r,o);return d.appContext=i,c&&t?t(d,u):e(d,u,f),a=!0,l._container=u,u.__vue_app__=l,Ao(d.component)||d.component.proxy}},unmount(){a&&(e(null,l._container),delete l._container.__vue_app__)},provide(u,c){return i.provides[u]=c,l}};return l}}function ro(e,t,n,r,o=!1){if(oe(e)){e.forEach((d,p)=>ro(d,t&&(oe(t)?t[p]:t),n,r,o));return}if(In(r)&&!o)return;const i=r.shapeFlag&4?Ao(r.component)||r.component.proxy:r.el,s=o?null:i,{i:a,r:l}=e,u=t&&t.r,c=a.refs===xe?a.refs={}:a.refs,f=a.setupState;if(u!=null&&u!==l&&(Oe(u)?(c[u]=null,_e(f,u)&&(f[u]=null)):Ve(u)&&(u.value=null)),fe(l))Ft(l,a,12,[s,c]);else{const d=Oe(l),p=Ve(l);if(d||p){const _=()=>{if(e.f){const g=d?_e(f,l)?f[l]:c[l]:l.value;o?oe(g)&&Di(g,i):oe(g)?g.includes(i)||g.push(i):d?(c[l]=[i],_e(f,l)&&(f[l]=c[l])):(l.value=[i],e.k&&(c[e.k]=l.value))}else d?(c[l]=s,_e(f,l)&&(f[l]=s)):p&&(l.value=s,e.k&&(c[e.k]=s))};s?(_.id=-1,Xe(_,n)):_()}}}let jt=!1;const Tr=e=>/svg/.test(e.namespaceURI)&&e.tagName!=="foreignObject",Lr=e=>e.nodeType===8;function Wd(e){const{mt:t,p:n,o:{patchProp:r,createText:o,nextSibling:i,parentNode:s,remove:a,insert:l,createComment:u}}=e,c=(h,E)=>{if(!E.hasChildNodes()){n(null,h,E),Xr(),E._vnode=h;return}jt=!1,f(E.firstChild,h,null,null,null),Xr(),E._vnode=h,jt&&console.error("Hydration completed but contains mismatches.")},f=(h,E,w,S,I,z=!1)=>{const H=Lr(h)&&h.data==="[",b=()=>g(h,E,w,S,I,H),{type:M,ref:N,shapeFlag:K,patchFlag:k}=E;let R=h.nodeType;E.el=h,k===-2&&(z=!1,E.dynamicChildren=null);let $=null;switch(M){case xn:R!==3?E.children===""?(l(E.el=o(""),s(h),h),$=h):$=b():(h.data!==E.children&&(jt=!0,h.data=E.children),$=i(h));break;case ot:R!==8||H?$=b():$=i(h);break;case er:if(H&&(h=i(h),R=h.nodeType),R===1||R===3){$=h;const ie=!E.children.length;for(let W=0;W<E.staticCount;W++)ie&&(E.children+=$.nodeType===1?$.outerHTML:$.data),W===E.staticCount-1&&(E.anchor=$),$=i($);return H?i($):$}else b();break;case ke:H?$=_(h,E,w,S,I,z):$=b();break;default:if(K&1)R!==1||E.type.toLowerCase()!==h.tagName.toLowerCase()?$=b():$=d(h,E,w,S,I,z);else if(K&6){E.slotScopeIds=I;const ie=s(h);if(t(E,ie,null,w,S,Tr(ie),z),$=H?O(h):i(h),$&&Lr($)&&$.data==="teleport end"&&($=i($)),In(E)){let W;H?(W=ae(ke),W.anchor=$?$.previousSibling:ie.lastChild):W=h.nodeType===3?Kt(""):ae("div"),W.el=h,E.component.subTree=W}}else K&64?R!==8?$=b():$=E.type.hydrate(h,E,w,S,I,z,e,p):K&128&&($=E.type.hydrate(h,E,w,S,Tr(s(h)),I,z,e,f))}return N!=null&&ro(N,null,S,E),$},d=(h,E,w,S,I,z)=>{z=z||!!E.dynamicChildren;const{type:H,props:b,patchFlag:M,shapeFlag:N,dirs:K}=E,k=H==="input"&&K||H==="option";if(k||M!==-1){if(K&>(E,null,w,"created"),b)if(k||!z||M&48)for(const $ in b)(k&&$.endsWith("value")||yr($)&&!Gn($))&&r(h,$,null,b[$],!1,void 0,w);else b.onClick&&r(h,"onClick",null,b.onClick,!1,void 0,w);let R;if((R=b&&b.onVnodeBeforeMount)&&st(R,w,E),K&>(E,null,w,"beforeMount"),((R=b&&b.onVnodeMounted)||K)&&hc(()=>{R&&st(R,w,E),K&>(E,null,w,"mounted")},S),N&16&&!(b&&(b.innerHTML||b.textContent))){let $=p(h.firstChild,E,h,w,S,I,z);for(;$;){jt=!0;const ie=$;$=$.nextSibling,a(ie)}}else N&8&&h.textContent!==E.children&&(jt=!0,h.textContent=E.children)}return h.nextSibling},p=(h,E,w,S,I,z,H)=>{H=H||!!E.dynamicChildren;const b=E.children,M=b.length;for(let N=0;N<M;N++){const K=H?b[N]:b[N]=ft(b[N]);if(h)h=f(h,K,S,I,z,H);else{if(K.type===xn&&!K.children)continue;jt=!0,n(null,K,w,null,S,I,Tr(w),z)}}return h},_=(h,E,w,S,I,z)=>{const{slotScopeIds:H}=E;H&&(I=I?I.concat(H):H);const b=s(h),M=p(i(h),E,b,w,S,I,z);return M&&Lr(M)&&M.data==="]"?i(E.anchor=M):(jt=!0,l(E.anchor=u("]"),b,M),M)},g=(h,E,w,S,I,z)=>{if(jt=!0,E.el=null,z){const M=O(h);for(;;){const N=i(h);if(N&&N!==M)a(N);else break}}const H=i(h),b=s(h);return a(h),n(null,E,b,H,w,S,Tr(b),I),H},O=h=>{let E=0;for(;h;)if(h=i(h),h&&Lr(h)&&(h.data==="["&&E++,h.data==="]")){if(E===0)return i(h);E--}return h};return[c,f]}const Xe=hc;function Jd(e){return Qd(e,Wd)}function Qd(e,t){const n=wf();n.__VUE__=!0;const{insert:r,remove:o,patchProp:i,createElement:s,createText:a,createComment:l,setText:u,setElementText:c,parentNode:f,nextSibling:d,setScopeId:p=mt,insertStaticContent:_}=e,g=(m,v,P,C=null,A=null,D=null,j=!1,T=null,F=!!v.dynamicChildren)=>{if(m===v)return;m&&!on(m,v)&&(C=q(m),Ae(m,A,D,!0),m=null),v.patchFlag===-2&&(F=!1,v.dynamicChildren=null);const{type:L,ref:G,shapeFlag:Y}=v;switch(L){case xn:O(m,v,P,C);break;case ot:h(m,v,P,C);break;case er:m==null&&E(v,P,C,j);break;case ke:k(m,v,P,C,A,D,j,T,F);break;default:Y&1?I(m,v,P,C,A,D,j,T,F):Y&6?R(m,v,P,C,A,D,j,T,F):(Y&64||Y&128)&&L.process(m,v,P,C,A,D,j,T,F,de)}G!=null&&A&&ro(G,m&&m.ref,D,v||m,!v)},O=(m,v,P,C)=>{if(m==null)r(v.el=a(v.children),P,C);else{const A=v.el=m.el;v.children!==m.children&&u(A,v.children)}},h=(m,v,P,C)=>{m==null?r(v.el=l(v.children||""),P,C):v.el=m.el},E=(m,v,P,C)=>{[m.el,m.anchor]=_(m.children,v,P,C,m.el,m.anchor)},w=({el:m,anchor:v},P,C)=>{let A;for(;m&&m!==v;)A=d(m),r(m,P,C),m=A;r(v,P,C)},S=({el:m,anchor:v})=>{let P;for(;m&&m!==v;)P=d(m),o(m),m=P;o(v)},I=(m,v,P,C,A,D,j,T,F)=>{j=j||v.type==="svg",m==null?z(v,P,C,A,D,j,T,F):M(m,v,A,D,j,T,F)},z=(m,v,P,C,A,D,j,T)=>{let F,L;const{type:G,props:Y,shapeFlag:X,transition:ee,dirs:ue}=m;if(F=m.el=s(m.type,D,Y&&Y.is,Y),X&8?c(F,m.children):X&16&&b(m.children,F,null,C,A,D&&G!=="foreignObject",j,T),ue&>(m,null,C,"created"),H(F,m,m.scopeId,j,C),Y){for(const Se in Y)Se!=="value"&&!Gn(Se)&&i(F,Se,null,Y[Se],D,m.children,C,A,U);"value"in Y&&i(F,"value",null,Y.value),(L=Y.onVnodeBeforeMount)&&st(L,C,m)}ue&>(m,null,C,"beforeMount");const ve=(!A||A&&!A.pendingBranch)&&ee&&!ee.persisted;ve&&ee.beforeEnter(F),r(F,v,P),((L=Y&&Y.onVnodeMounted)||ve||ue)&&Xe(()=>{L&&st(L,C,m),ve&&ee.enter(F),ue&>(m,null,C,"mounted")},A)},H=(m,v,P,C,A)=>{if(P&&p(m,P),C)for(let D=0;D<C.length;D++)p(m,C[D]);if(A){let D=A.subTree;if(v===D){const j=A.vnode;H(m,j,j.scopeId,j.slotScopeIds,A.parent)}}},b=(m,v,P,C,A,D,j,T,F=0)=>{for(let L=F;L<m.length;L++){const G=m[L]=T?Mt(m[L]):ft(m[L]);g(null,G,v,P,C,A,D,j,T)}},M=(m,v,P,C,A,D,j)=>{const T=v.el=m.el;let{patchFlag:F,dynamicChildren:L,dirs:G}=v;F|=m.patchFlag&16;const Y=m.props||xe,X=v.props||xe;let ee;P&&Qt(P,!1),(ee=X.onVnodeBeforeUpdate)&&st(ee,P,v,m),G&>(v,m,P,"beforeUpdate"),P&&Qt(P,!0);const ue=A&&v.type!=="foreignObject";if(L?N(m.dynamicChildren,L,T,P,C,ue,D):j||se(m,v,T,null,P,C,ue,D,!1),F>0){if(F&16)K(T,v,Y,X,P,C,A);else if(F&2&&Y.class!==X.class&&i(T,"class",null,X.class,A),F&4&&i(T,"style",Y.style,X.style,A),F&8){const ve=v.dynamicProps;for(let Se=0;Se<ve.length;Se++){const $e=ve[Se],ut=Y[$e],mn=X[$e];(mn!==ut||$e==="value")&&i(T,$e,ut,mn,A,m.children,P,C,U)}}F&1&&m.children!==v.children&&c(T,v.children)}else!j&&L==null&&K(T,v,Y,X,P,C,A);((ee=X.onVnodeUpdated)||G)&&Xe(()=>{ee&&st(ee,P,v,m),G&>(v,m,P,"updated")},C)},N=(m,v,P,C,A,D,j)=>{for(let T=0;T<v.length;T++){const F=m[T],L=v[T],G=F.el&&(F.type===ke||!on(F,L)||F.shapeFlag&70)?f(F.el):P;g(F,L,G,null,C,A,D,j,!0)}},K=(m,v,P,C,A,D,j)=>{if(P!==C){if(P!==xe)for(const T in P)!Gn(T)&&!(T in C)&&i(m,T,P[T],null,j,v.children,A,D,U);for(const T in C){if(Gn(T))continue;const F=C[T],L=P[T];F!==L&&T!=="value"&&i(m,T,L,F,j,v.children,A,D,U)}"value"in C&&i(m,"value",P.value,C.value)}},k=(m,v,P,C,A,D,j,T,F)=>{const L=v.el=m?m.el:a(""),G=v.anchor=m?m.anchor:a("");let{patchFlag:Y,dynamicChildren:X,slotScopeIds:ee}=v;ee&&(T=T?T.concat(ee):ee),m==null?(r(L,P,C),r(G,P,C),b(v.children,P,G,A,D,j,T,F)):Y>0&&Y&64&&X&&m.dynamicChildren?(N(m.dynamicChildren,X,P,A,D,j,T),(v.key!=null||A&&v===A.subTree)&&xc(m,v,!0)):se(m,v,P,G,A,D,j,T,F)},R=(m,v,P,C,A,D,j,T,F)=>{v.slotScopeIds=T,m==null?v.shapeFlag&512?A.ctx.activate(v,P,C,j,F):$(v,P,C,A,D,j,F):ie(m,v,F)},$=(m,v,P,C,A,D,j)=>{const T=m.component=op(m,C,A);if(Or(m)&&(T.ctx.renderer=de),ip(T),T.asyncDep){if(A&&A.registerDep(T,W),!m.el){const F=T.subTree=ae(ot);h(null,F,v,P)}return}W(T,m,v,P,A,D,j)},ie=(m,v,P)=>{const C=v.component=m.component;if(hd(m,v,P))if(C.asyncDep&&!C.asyncResolved){re(C,v,P);return}else C.next=v,cd(C.update),C.update();else v.el=m.el,C.vnode=v},W=(m,v,P,C,A,D,j)=>{const T=()=>{if(m.isMounted){let{next:G,bu:Y,u:X,parent:ee,vnode:ue}=m,ve=G,Se;Qt(m,!1),G?(G.el=ue.el,re(m,G,j)):G=ue,Y&&No(Y),(Se=G.props&&G.props.onVnodeBeforeUpdate)&&st(Se,ee,G,ue),Qt(m,!0);const $e=Mo(m),ut=m.subTree;m.subTree=$e,g(ut,$e,f(ut.el),q(ut),m,A,D),G.el=$e.el,ve===null&&vd(m,$e.el),X&&Xe(X,A),(Se=G.props&&G.props.onVnodeUpdated)&&Xe(()=>st(Se,ee,G,ue),A)}else{let G;const{el:Y,props:X}=v,{bm:ee,m:ue,parent:ve}=m,Se=In(v);if(Qt(m,!1),ee&&No(ee),!Se&&(G=X&&X.onVnodeBeforeMount)&&st(G,ve,v),Qt(m,!0),Y&&le){const $e=()=>{m.subTree=Mo(m),le(Y,m.subTree,m,A,null)};Se?v.type.__asyncLoader().then(()=>!m.isUnmounted&&$e()):$e()}else{const $e=m.subTree=Mo(m);g(null,$e,P,C,m,A,D),v.el=$e.el}if(ue&&Xe(ue,A),!Se&&(G=X&&X.onVnodeMounted)){const $e=v;Xe(()=>st(G,ve,$e),A)}(v.shapeFlag&256||ve&&In(ve.vnode)&&ve.vnode.shapeFlag&256)&&m.a&&Xe(m.a,A),m.isMounted=!0,v=P=C=null}},F=m.effect=new Hi(T,()=>wo(L),m.scope),L=m.update=()=>F.run();L.id=m.uid,Qt(m,!0),L()},re=(m,v,P)=>{v.component=m;const C=m.vnode.props;m.vnode=v,m.next=null,Bd(m,v.props,C,P),Ud(m,v.children,P),Dn(),Ps(),Nn()},se=(m,v,P,C,A,D,j,T,F=!1)=>{const L=m&&m.children,G=m?m.shapeFlag:0,Y=v.children,{patchFlag:X,shapeFlag:ee}=v;if(X>0){if(X&128){De(L,Y,P,C,A,D,j,T,F);return}else if(X&256){Le(L,Y,P,C,A,D,j,T,F);return}}ee&8?(G&16&&U(L,A,D),Y!==L&&c(P,Y)):G&16?ee&16?De(L,Y,P,C,A,D,j,T,F):U(L,A,D,!0):(G&8&&c(P,""),ee&16&&b(Y,P,C,A,D,j,T,F))},Le=(m,v,P,C,A,D,j,T,F)=>{m=m||wn,v=v||wn;const L=m.length,G=v.length,Y=Math.min(L,G);let X;for(X=0;X<Y;X++){const ee=v[X]=F?Mt(v[X]):ft(v[X]);g(m[X],ee,P,null,A,D,j,T,F)}L>G?U(m,A,D,!0,!1,Y):b(v,P,C,A,D,j,T,F,Y)},De=(m,v,P,C,A,D,j,T,F)=>{let L=0;const G=v.length;let Y=m.length-1,X=G-1;for(;L<=Y&&L<=X;){const ee=m[L],ue=v[L]=F?Mt(v[L]):ft(v[L]);if(on(ee,ue))g(ee,ue,P,null,A,D,j,T,F);else break;L++}for(;L<=Y&&L<=X;){const ee=m[Y],ue=v[X]=F?Mt(v[X]):ft(v[X]);if(on(ee,ue))g(ee,ue,P,null,A,D,j,T,F);else break;Y--,X--}if(L>Y){if(L<=X){const ee=X+1,ue=ee<G?v[ee].el:C;for(;L<=X;)g(null,v[L]=F?Mt(v[L]):ft(v[L]),P,ue,A,D,j,T,F),L++}}else if(L>X)for(;L<=Y;)Ae(m[L],A,D,!0),L++;else{const ee=L,ue=L,ve=new Map;for(L=ue;L<=X;L++){const nt=v[L]=F?Mt(v[L]):ft(v[L]);nt.key!=null&&ve.set(nt.key,L)}let Se,$e=0;const ut=X-ue+1;let mn=!1,ps=0;const Bn=new Array(ut);for(L=0;L<ut;L++)Bn[L]=0;for(L=ee;L<=Y;L++){const nt=m[L];if($e>=ut){Ae(nt,A,D,!0);continue}let vt;if(nt.key!=null)vt=ve.get(nt.key);else for(Se=ue;Se<=X;Se++)if(Bn[Se-ue]===0&&on(nt,v[Se])){vt=Se;break}vt===void 0?Ae(nt,A,D,!0):(Bn[vt-ue]=L+1,vt>=ps?ps=vt:mn=!0,g(nt,v[vt],P,null,A,D,j,T,F),$e++)}const ms=mn?Zd(Bn):wn;for(Se=ms.length-1,L=ut-1;L>=0;L--){const nt=ue+L,vt=v[nt],hs=nt+1<G?v[nt+1].el:C;Bn[L]===0?g(null,vt,P,hs,A,D,j,T,F):mn&&(Se<0||L!==ms[Se]?Ne(vt,P,hs,2):Se--)}}},Ne=(m,v,P,C,A=null)=>{const{el:D,type:j,transition:T,children:F,shapeFlag:L}=m;if(L&6){Ne(m.component.subTree,v,P,C);return}if(L&128){m.suspense.move(v,P,C);return}if(L&64){j.move(m,v,P,de);return}if(j===ke){r(D,v,P);for(let Y=0;Y<F.length;Y++)Ne(F[Y],v,P,C);r(m.anchor,v,P);return}if(j===er){w(m,v,P);return}if(C!==2&&L&1&&T)if(C===0)T.beforeEnter(D),r(D,v,P),Xe(()=>T.enter(D),A);else{const{leave:Y,delayLeave:X,afterLeave:ee}=T,ue=()=>r(D,v,P),ve=()=>{Y(D,()=>{ue(),ee&&ee()})};X?X(D,ue,ve):ve()}else r(D,v,P)},Ae=(m,v,P,C=!1,A=!1)=>{const{type:D,props:j,ref:T,children:F,dynamicChildren:L,shapeFlag:G,patchFlag:Y,dirs:X}=m;if(T!=null&&ro(T,null,P,m,!0),G&256){v.ctx.deactivate(m);return}const ee=G&1&&X,ue=!In(m);let ve;if(ue&&(ve=j&&j.onVnodeBeforeUnmount)&&st(ve,v,m),G&6)x(m.component,P,C);else{if(G&128){m.suspense.unmount(P,C);return}ee&>(m,null,v,"beforeUnmount"),G&64?m.type.remove(m,v,P,A,de,C):L&&(D!==ke||Y>0&&Y&64)?U(L,v,P,!1,!0):(D===ke&&Y&384||!A&&G&16)&&U(F,v,P),C&&ct(m)}(ue&&(ve=j&&j.onVnodeUnmounted)||ee)&&Xe(()=>{ve&&st(ve,v,m),ee&>(m,null,v,"unmounted")},P)},ct=m=>{const{type:v,el:P,anchor:C,transition:A}=m;if(v===ke){Ge(P,C);return}if(v===er){S(m);return}const D=()=>{o(P),A&&!A.persisted&&A.afterLeave&&A.afterLeave()};if(m.shapeFlag&1&&A&&!A.persisted){const{leave:j,delayLeave:T}=A,F=()=>j(P,D);T?T(m.el,D,F):F()}else D()},Ge=(m,v)=>{let P;for(;m!==v;)P=d(m),o(m),m=P;o(v)},x=(m,v,P)=>{const{bum:C,scope:A,update:D,subTree:j,um:T}=m;C&&No(C),A.stop(),D&&(D.active=!1,Ae(j,m,v,P)),T&&Xe(T,v),Xe(()=>{m.isUnmounted=!0},v),v&&v.pendingBranch&&!v.isUnmounted&&m.asyncDep&&!m.asyncResolved&&m.suspenseId===v.pendingId&&(v.deps--,v.deps===0&&v.resolve())},U=(m,v,P,C=!1,A=!1,D=0)=>{for(let j=D;j<m.length;j++)Ae(m[j],v,P,C,A)},q=m=>m.shapeFlag&6?q(m.component.subTree):m.shapeFlag&128?m.suspense.next():d(m.anchor||m.el),Z=(m,v,P)=>{m==null?v._vnode&&Ae(v._vnode,null,null,!0):g(v._vnode||null,m,v,null,null,null,P),Ps(),Xr(),v._vnode=m},de={p:g,um:Ae,m:Ne,r:ct,mt:$,mc:b,pc:se,pbc:N,n:q,o:e};let Pe,le;return t&&([Pe,le]=t(de)),{render:Z,hydrate:Pe,createApp:Kd(Z,Pe)}}function Qt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function xc(e,t,n=!1){const r=e.children,o=t.children;if(oe(r)&&oe(o))for(let i=0;i<r.length;i++){const s=r[i];let a=o[i];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=o[i]=Mt(o[i]),a.el=s.el),n||xc(s,a)),a.type===xn&&(a.el=s.el)}}function Zd(e){const t=e.slice(),n=[0];let r,o,i,s,a;const l=e.length;for(r=0;r<l;r++){const u=e[r];if(u!==0){if(o=n[n.length-1],e[o]<u){t[r]=o,n.push(r);continue}for(i=0,s=n.length-1;i<s;)a=i+s>>1,e[n[a]]<u?i=a+1:s=a;u<e[n[i]]&&(i>0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,s=n[i-1];i-- >0;)n[i]=s,s=t[s];return n}const Yd=e=>e.__isTeleport,ke=Symbol(void 0),xn=Symbol(void 0),ot=Symbol(void 0),er=Symbol(void 0),tr=[];let pt=null;function J(e=!1){tr.push(pt=e?null:[])}function Gd(){tr.pop(),pt=tr[tr.length-1]||null}let fr=1;function Ds(e){fr+=e}function Tc(e){return e.dynamicChildren=fr>0?pt||wn:null,Gd(),fr>0&&pt&&pt.push(e),e}function ne(e,t,n,r,o,i){return Tc(ye(e,t,n,r,o,i,!0))}function He(e,t,n,r,o){return Tc(ae(e,t,n,r,o,!0))}function oo(e){return e?e.__v_isVNode===!0:!1}function on(e,t){return e.type===t.type&&e.key===t.key}const ko="__vInternal",Lc=({key:e})=>e!=null?e:null,qr=({ref:e,ref_key:t,ref_for:n})=>e!=null?Oe(e)||Ve(e)||fe(e)?{i:Ue,r:e,k:t,f:!!n}:e:null;function ye(e,t=null,n=null,r=0,o=null,i=e===ke?0:1,s=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Lc(t),ref:t&&qr(t),scopeId:mc,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Ue};return a?(Zi(l,n),i&128&&e.normalize(l)):n&&(l.shapeFlag|=Oe(n)?8:16),fr>0&&!s&&pt&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&pt.push(l),l}const ae=Xd;function Xd(e,t=null,n=null,r=0,o=null,i=!1){if((!e||e===Ld)&&(e=ot),oo(e)){const a=zt(e,t,!0);return n&&Zi(a,n),fr>0&&!i&&pt&&(a.shapeFlag&6?pt[pt.indexOf(e)]=a:pt.push(a)),a.patchFlag|=-2,a}if(up(e)&&(e=e.__vccOpts),t){t=ep(t);let{class:a,style:l}=t;a&&!Oe(a)&&(t.class=et(a)),Te(l)&&(nc(l)&&!oe(l)&&(l=ze({},l)),t.style=_r(l))}const s=Oe(e)?1:gd(e)?128:Yd(e)?64:Te(e)?4:fe(e)?2:0;return ye(e,t,n,r,o,s,i,!0)}function ep(e){return e?nc(e)||ko in e?ze({},e):e:null}function zt(e,t,n=!1){const{props:r,ref:o,patchFlag:i,children:s}=e,a=t?pi(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&Lc(a),ref:t&&t.ref?n&&o?oe(o)?o.concat(qr(t)):[o,qr(t)]:qr(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ke?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&zt(e.ssContent),ssFallback:e.ssFallback&&zt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Kt(e=" ",t=0){return ae(xn,null,e,t)}function tp(e,t){const n=ae(er,null,e);return n.staticCount=t,n}function Me(e="",t=!1){return t?(J(),He(ot,null,e)):ae(ot,null,e)}function ft(e){return e==null||typeof e=="boolean"?ae(ot):oe(e)?ae(ke,null,e.slice()):typeof e=="object"?Mt(e):ae(xn,null,String(e))}function Mt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:zt(e)}function Zi(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(oe(t))n=16;else if(typeof t=="object")if(r&65){const o=t.default;o&&(o._c&&(o._d=!1),Zi(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!(ko in t)?t._ctx=Ue:o===3&&Ue&&(Ue.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else fe(t)?(t={default:t,_ctx:Ue},n=32):(t=String(t),r&64?(n=16,t=[Kt(t)]):n=8);e.children=t,e.shapeFlag|=n}function pi(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const o in r)if(o==="class")t.class!==r.class&&(t.class=et([t.class,r.class]));else if(o==="style")t.style=_r([t.style,r.style]);else if(yr(o)){const i=t[o],s=r[o];s&&i!==s&&!(oe(i)&&i.includes(s))&&(t[o]=i?[].concat(i,s):s)}else o!==""&&(t[o]=r[o])}return t}function st(e,t,n,r=null){at(e,t,7,[n,r])}const np=Ac();let rp=0;function op(e,t,n){const r=e.type,o=(t?t.appContext:e.appContext)||np,i={uid:rp++,vnode:e,type:r,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,scope:new Sf(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Pc(r,o),emitsOptions:pc(r,o),emit:null,emitted:null,propsDefaults:xe,inheritAttrs:r.inheritAttrs,ctx:xe,data:xe,props:xe,attrs:xe,slots:xe,refs:xe,setupState:xe,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=dd.bind(null,i),e.ce&&e.ce(i),i}let je=null;const Rc=()=>je||Ue,Tn=e=>{je=e,e.scope.on()},fn=()=>{je&&je.scope.off(),je=null};function jc(e){return e.vnode.shapeFlag&4}let Ln=!1;function ip(e,t=!1){Ln=t;const{props:n,children:r}=e.vnode,o=jc(e);Fd(e,n,o,t),qd(e,r);const i=o?sp(e,t):void 0;return Ln=!1,i}function sp(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=rc(new Proxy(e.ctx,jd));const{setup:r}=n;if(r){const o=e.setupContext=r.length>1?lp(e):null;Tn(e),Dn();const i=Ft(r,e,0,[e.props,o]);if(Nn(),fn(),Vl(i)){if(i.then(fn,fn),t)return i.then(s=>{Ns(e,s,t)}).catch(s=>{br(s,e,0)});e.asyncDep=i}else Ns(e,i,t)}else Dc(e,t)}function Ns(e,t,n){fe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Te(t)&&(e.setupState=lc(t)),Dc(e,n)}let Ms;function Dc(e,t,n){const r=e.type;if(!e.render){if(!t&&Ms&&!r.render){const o=r.template||Ji(e).template;if(o){const{isCustomElement:i,compilerOptions:s}=e.appContext.config,{delimiters:a,compilerOptions:l}=r,u=ze(ze({isCustomElement:i,delimiters:a},s),l);r.render=Ms(o,u)}}e.render=r.render||mt}Tn(e),Dn(),Dd(e),Nn(),fn()}function ap(e){return new Proxy(e.attrs,{get(t,n){return tt(e,"get","$attrs"),t[n]}})}function lp(e){const t=r=>{e.exposed=r||{}};let n;return{get attrs(){return n||(n=ap(e))},slots:e.slots,emit:e.emit,expose:t}}function Ao(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(lc(rc(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Xn)return Xn[n](e)},has(t,n){return n in t||n in Xn}}))}function cp(e,t=!0){return fe(e)?e.displayName||e.name:e.name||t&&e.__name}function up(e){return fe(e)&&"__vccOpts"in e}const Q=(e,t)=>sd(e,t,Ln);function he(e,t,n){const r=arguments.length;return r===2?Te(t)&&!oe(t)?oo(t)?ae(e,null,[t]):ae(e,t):ae(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&oo(n)&&(n=[n]),ae(e,t,n))}const fp=Symbol(""),dp=()=>Fe(fp),pp="3.2.47",mp="http://www.w3.org/2000/svg",sn=typeof document<"u"?document:null,$s=sn&&sn.createElement("template"),hp={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t?sn.createElementNS(mp,e):sn.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>sn.createTextNode(e),createComment:e=>sn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>sn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,i){const s=n?n.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===i||!(o=o.nextSibling)););else{$s.innerHTML=r?`<svg>${e}</svg>`:e;const a=$s.content;if(r){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function vp(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function gp(e,t,n){const r=e.style,o=Oe(n);if(n&&!o){if(t&&!Oe(t))for(const i in t)n[i]==null&&mi(r,i,"");for(const i in n)mi(r,i,n[i])}else{const i=r.display;o?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=i)}}const Hs=/\s*!important$/;function mi(e,t,n){if(oe(n))n.forEach(r=>mi(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=_p(e,t);Hs.test(n)?e.setProperty(dn(r),n.replace(Hs,""),"important"):e[r]=n}}const Fs=["Webkit","Moz","ms"],Bo={};function _p(e,t){const n=Bo[t];if(n)return n;let r=Et(t);if(r!=="filter"&&r in e)return Bo[t]=r;r=bo(r);for(let o=0;o<Fs.length;o++){const i=Fs[o]+r;if(i in e)return Bo[t]=i}return t}const Bs="http://www.w3.org/1999/xlink";function yp(e,t,n,r,o){if(r&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Bs,t.slice(6,t.length)):e.setAttributeNS(Bs,t,n);else{const i=mf(t);n==null||i&&!Hl(n)?e.removeAttribute(t):e.setAttribute(t,i?"":n)}}function bp(e,t,n,r,o,i,s){if(t==="innerHTML"||t==="textContent"){r&&s(r,o,i),e[t]=n==null?"":n;return}if(t==="value"&&e.tagName!=="PROGRESS"&&!e.tagName.includes("-")){e._value=n;const l=n==null?"":n;(e.value!==l||e.tagName==="OPTION")&&(e.value=l),n==null&&e.removeAttribute(t);return}let a=!1;if(n===""||n==null){const l=typeof e[t];l==="boolean"?n=Hl(n):n==null&&l==="string"?(n="",a=!0):l==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(t)}function Ep(e,t,n,r){e.addEventListener(t,n,r)}function Op(e,t,n,r){e.removeEventListener(t,n,r)}function wp(e,t,n,r,o=null){const i=e._vei||(e._vei={}),s=i[t];if(r&&s)s.value=r;else{const[a,l]=Sp(t);if(r){const u=i[t]=Ip(r,o);Ep(e,a,u,l)}else s&&(Op(e,a,s,l),i[t]=void 0)}}const Vs=/(?:Once|Passive|Capture)$/;function Sp(e){let t;if(Vs.test(e)){t={};let r;for(;r=e.match(Vs);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):dn(e.slice(2)),t]}let Vo=0;const Pp=Promise.resolve(),Cp=()=>Vo||(Pp.then(()=>Vo=0),Vo=Date.now());function Ip(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;at(kp(r,n.value),t,5,[r])};return n.value=e,n.attached=Cp(),n}function kp(e,t){if(oe(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>o=>!o._stopped&&r&&r(o))}else return t}const qs=/^on[a-z]/,Ap=(e,t,n,r,o=!1,i,s,a,l)=>{t==="class"?vp(e,r,o):t==="style"?gp(e,n,r):yr(t)?ji(t)||wp(e,t,n,r,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):xp(e,t,r,o))?bp(e,t,r,i,s,a,l):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),yp(e,t,r,o))};function xp(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&qs.test(t)&&fe(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||qs.test(t)&&Oe(n)?!1:t in e}const Dt="transition",Vn="animation",$n=(e,{slots:t})=>he(gc,Tp(e),t);$n.displayName="Transition";const Nc={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};$n.props=ze({},gc.props,Nc);const Zt=(e,t=[])=>{oe(e)?e.forEach(n=>n(...t)):e&&e(...t)},Us=e=>e?oe(e)?e.some(t=>t.length>1):e.length>1:!1;function Tp(e){const t={};for(const k in e)k in Nc||(t[k]=e[k]);if(e.css===!1)return t;const{name:n="v",type:r,duration:o,enterFromClass:i=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=i,appearActiveClass:u=s,appearToClass:c=a,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,_=Lp(o),g=_&&_[0],O=_&&_[1],{onBeforeEnter:h,onEnter:E,onEnterCancelled:w,onLeave:S,onLeaveCancelled:I,onBeforeAppear:z=h,onAppear:H=E,onAppearCancelled:b=w}=t,M=(k,R,$)=>{Yt(k,R?c:a),Yt(k,R?u:s),$&&$()},N=(k,R)=>{k._isLeaving=!1,Yt(k,f),Yt(k,p),Yt(k,d),R&&R()},K=k=>(R,$)=>{const ie=k?H:E,W=()=>M(R,k,$);Zt(ie,[R,W]),zs(()=>{Yt(R,k?l:i),Nt(R,k?c:a),Us(ie)||Ks(R,r,g,W)})};return ze(t,{onBeforeEnter(k){Zt(h,[k]),Nt(k,i),Nt(k,s)},onBeforeAppear(k){Zt(z,[k]),Nt(k,l),Nt(k,u)},onEnter:K(!1),onAppear:K(!0),onLeave(k,R){k._isLeaving=!0;const $=()=>N(k,R);Nt(k,f),Dp(),Nt(k,d),zs(()=>{!k._isLeaving||(Yt(k,f),Nt(k,p),Us(S)||Ks(k,r,O,$))}),Zt(S,[k,$])},onEnterCancelled(k){M(k,!1),Zt(w,[k])},onAppearCancelled(k){M(k,!0),Zt(b,[k])},onLeaveCancelled(k){N(k),Zt(I,[k])}})}function Lp(e){if(e==null)return null;if(Te(e))return[qo(e.enter),qo(e.leave)];{const t=qo(e);return[t,t]}}function qo(e){return Of(e)}function Nt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function Yt(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function zs(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Rp=0;function Ks(e,t,n,r){const o=e._endId=++Rp,i=()=>{o===e._endId&&r()};if(n)return setTimeout(i,n);const{type:s,timeout:a,propCount:l}=jp(e,t);if(!s)return r();const u=s+"end";let c=0;const f=()=>{e.removeEventListener(u,d),i()},d=p=>{p.target===e&&++c>=l&&f()};setTimeout(()=>{c<l&&f()},a+1),e.addEventListener(u,d)}function jp(e,t){const n=window.getComputedStyle(e),r=_=>(n[_]||"").split(", "),o=r(`${Dt}Delay`),i=r(`${Dt}Duration`),s=Ws(o,i),a=r(`${Vn}Delay`),l=r(`${Vn}Duration`),u=Ws(a,l);let c=null,f=0,d=0;t===Dt?s>0&&(c=Dt,f=s,d=i.length):t===Vn?u>0&&(c=Vn,f=u,d=l.length):(f=Math.max(s,u),c=f>0?s>u?Dt:Vn:null,d=c?c===Dt?i.length:l.length:0);const p=c===Dt&&/\b(transform|all)(,|$)/.test(r(`${Dt}Property`).toString());return{type:c,timeout:f,propCount:d,hasTransform:p}}function Ws(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>Js(n)+Js(e[r])))}function Js(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function Dp(){return document.body.offsetHeight}const Np={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Mp=(e,t)=>n=>{if(!("key"in n))return;const r=dn(n.key);if(t.some(o=>o===r||Np[o]===r))return e(n)},io={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):qn(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),qn(e,!0),r.enter(e)):r.leave(e,()=>{qn(e,!1)}):qn(e,t))},beforeUnmount(e,{value:t}){qn(e,t)}};function qn(e,t){e.style.display=t?e._vod:"none"}const $p=ze({patchProp:Ap},hp);let Uo,Qs=!1;function Hp(){return Uo=Qs?Uo:Jd($p),Qs=!0,Uo}const Fp=(...e)=>{const t=Hp().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=Bp(r);if(o)return n(o,!0,o instanceof SVGElement)},t};function Bp(e){return Oe(e)?document.querySelector(e):e}const Vp=JSON.parse('{"base":"/fes.js/","lang":"en-US","title":"","description":"","head":[["link",{"rel":"manifest","href":"/manifest.webmanifest"}],["link",{"rel":"icon","href":"/logo.png"}]],"locales":{"/":{"lang":"zh-CN","title":"Fes.js","description":"一个好用的前端应用解决方案"}}}');var qp=([e,t,n])=>e==="meta"&&t.name?`${e}.${t.name}`:["title","base"].includes(e)?e:e==="template"&&t.id?`${e}.${t.id}`:JSON.stringify([e,t,n]),Up=e=>{const t=new Set,n=[];return e.forEach(r=>{const o=qp(r);t.has(o)||(t.add(o),n.push(r))}),n},wr=e=>/^(https?:)?\/\//.test(e),zp=e=>/^mailto:/.test(e),Kp=e=>/^tel:/.test(e),Yi=e=>Object.prototype.toString.call(e)==="[object Object]",Mc=e=>e.replace(/\/$/,""),$c=e=>e.replace(/^\//,""),Hc=(e,t)=>{const n=Object.keys(e).sort((r,o)=>{const i=o.split("/").length-r.split("/").length;return i!==0?i:o.length-r.length});for(const r of n)if(t.startsWith(r))return r;return"/"},Zs=(e,t="/")=>e.replace(/^(https?:)?\/\/[^/]*/,"").replace(new RegExp(`^${t}`),"/");const Fc={"v-8daa1a0e":ce(()=>B(()=>import("./index.html.1f2b7059.js"),[])),"v-fffb8e28":ce(()=>B(()=>import("./index.html.174811be.js"),[])),"v-0cca110a":ce(()=>B(()=>import("./builder.html.999bf635.js"),[])),"v-85fa9b2a":ce(()=>B(()=>import("./config.html.3c4760e9.js"),[])),"v-d7fa887a":ce(()=>B(()=>import("./contributing.html.8cad4b5e.js"),[])),"v-884fd4bc":ce(()=>B(()=>import("./css.html.a45df14e.js"),[])),"v-040800dc":ce(()=>B(()=>import("./directory-structure.html.15096386.js"),[])),"v-ef8c5e10":ce(()=>B(()=>import("./env.html.805df8a5.js"),[])),"v-37e1c06f":ce(()=>B(()=>import("./faq.html.f70ba546.js"),[])),"v-fb0f0066":ce(()=>B(()=>import("./getting-started.html.3b600666.js"),[])),"v-528b8b6c":ce(()=>B(()=>import("./image.html.58aa17c7.js"),[])),"v-00cf7e23":ce(()=>B(()=>import("./mock.html.9cef5d45.js"),[])),"v-1d14d5cc":ce(()=>B(()=>import("./plugin.html.0095f814.js"),[])),"v-7b96e3a4":ce(()=>B(()=>import("./public.html.848eef99.js"),[])),"v-6320961c":ce(()=>B(()=>import("./route.html.3d217616.js"),[])),"v-3dba8814":ce(()=>B(()=>import("./runtime-config.html.c81fa63e.js"),[])),"v-7b48519a":ce(()=>B(()=>import("./template.html.91640404.js"),[])),"v-4acab794":ce(()=>B(()=>import("./upgrade3.html.3629ebda.js"),[])),"v-a1a49808":ce(()=>B(()=>import("./api.html.3fadc9c0.js"),[])),"v-a951be94":ce(()=>B(()=>import("./cli.html.768b01bb.js"),[])),"v-76cd065c":ce(()=>B(()=>import("./index.html.8a34550e.js"),[])),"v-76cb52e8":ce(()=>B(()=>import("./index.html.5f811d7d.js"),[])),"v-2c05b6e0":ce(()=>B(()=>import("./index.html.c22810d3.js"),[])),"v-d61a9282":ce(()=>B(()=>import("./index.html.7417ac5c.js"),[])),"v-494b840e":ce(()=>B(()=>import("./index.html.7e2b22df.js"),[])),"v-c5618810":ce(()=>B(()=>import("./api.html.1aa2bbfa.js"),[])),"v-2fe128e7":ce(()=>B(()=>import("./access.html.2783c102.js"),[])),"v-323bda7e":ce(()=>B(()=>import("./editor.html.604dae94.js"),[])),"v-c253c956":ce(()=>B(()=>import("./enums.html.e894dfd6.js"),[])),"v-0a0e491c":ce(()=>B(()=>import("./icon.html.c524fb7f.js"),[])),"v-3cd5a4ef":ce(()=>B(()=>import("./jest.html.9bcb2ce1.js"),[])),"v-355ee23e":ce(()=>B(()=>import("./layout.html.b7ee50eb.js"),[])),"v-411c0c9e":ce(()=>B(()=>import("./locale.html.c1dcd857.js"),[])),"v-56ab05de":ce(()=>B(()=>import("./login.html.0ea4b7ad.js"),[])),"v-3c4e521e":ce(()=>B(()=>import("./model.html.3cd49de2.js"),[])),"v-6f2f6a5a":ce(()=>B(()=>import("./pinia.html.1eb91490.js"),[])),"v-b15becb0":ce(()=>B(()=>import("./qiankun.html.b3592391.js"),[])),"v-41dee210":ce(()=>B(()=>import("./request.html.f4de04c7.js"),[])),"v-5bf80046":ce(()=>B(()=>import("./sass.html.9338147b.js"),[])),"v-317f9008":ce(()=>B(()=>import("./swc.html.0bd38fed.js"),[])),"v-5f4c684e":ce(()=>B(()=>import("./vuex.html.6d094802.js"),[])),"v-1c0edac3":ce(()=>B(()=>import("./watermark.html.1d51b560.js"),[])),"v-392e58ee":ce(()=>B(()=>import("./windicss.html.17e40609.js"),[])),"v-3706649a":ce(()=>B(()=>import("./404.html.ef11e76b.js"),[]))};var Ot=(e={})=>e;function Gi(e,t,n){var r,o,i;t===void 0&&(t=50),n===void 0&&(n={});var s=(r=n.isImmediate)!=null&&r,a=(o=n.callback)!=null&&o,l=n.maxWait,u=Date.now(),c=[];function f(){if(l!==void 0){var p=Date.now()-u;if(p+t>=l)return l-p}return t}var d=function(){var p=[].slice.call(arguments),_=this;return new Promise(function(g,O){var h=s&&i===void 0;if(i!==void 0&&clearTimeout(i),i=setTimeout(function(){if(i=void 0,u=Date.now(),!s){var w=e.apply(_,p);a&&a(w),c.forEach(function(S){return(0,S.resolve)(w)}),c=[]}},f()),h){var E=e.apply(_,p);return a&&a(E),g(E)}c.push({resolve:g,reject:O})})};return d.cancel=function(p){i!==void 0&&clearTimeout(i),c.forEach(function(_){return(0,_.reject)(p)}),c=[]},d}/*!
|
|
* vue-router v4.1.6
|
|
* (c) 2022 Eduardo San Martin Morote
|
|
* @license MIT
|
|
*/const yn=typeof window<"u";function Wp(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const we=Object.assign;function zo(e,t){const n={};for(const r in t){const o=t[r];n[r]=ht(o)?o.map(e):e(o)}return n}const nr=()=>{},ht=Array.isArray,Jp=/\/$/,Qp=e=>e.replace(Jp,"");function Ko(e,t,n="/"){let r,o={},i="",s="";const a=t.indexOf("#");let l=t.indexOf("?");return a<l&&a>=0&&(l=-1),l>-1&&(r=t.slice(0,l),i=t.slice(l+1,a>-1?a:t.length),o=e(i)),a>-1&&(r=r||t.slice(0,a),s=t.slice(a,t.length)),r=Xp(r!=null?r:t,n),{fullPath:r+(i&&"?")+i+s,path:r,query:o,hash:s}}function Zp(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Ys(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Yp(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&Rn(t.matched[r],n.matched[o])&&Bc(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Rn(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Bc(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Gp(e[n],t[n]))return!1;return!0}function Gp(e,t){return ht(e)?Gs(e,t):ht(t)?Gs(t,e):e===t}function Gs(e,t){return ht(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function Xp(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/");let o=n.length-1,i,s;for(i=0;i<r.length;i++)if(s=r[i],s!==".")if(s==="..")o>1&&o--;else break;return n.slice(0,o).join("/")+"/"+r.slice(i-(i===r.length?1:0)).join("/")}var dr;(function(e){e.pop="pop",e.push="push"})(dr||(dr={}));var rr;(function(e){e.back="back",e.forward="forward",e.unknown=""})(rr||(rr={}));function em(e){if(!e)if(yn){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Qp(e)}const tm=/^[^#]+#/;function nm(e,t){return e.replace(tm,"#")+t}function rm(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const xo=()=>({left:window.pageXOffset,top:window.pageYOffset});function om(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=rm(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function Xs(e,t){return(history.state?history.state.position-t:-1)+e}const hi=new Map;function im(e,t){hi.set(e,t)}function sm(e){const t=hi.get(e);return hi.delete(e),t}let am=()=>location.protocol+"//"+location.host;function Vc(e,t){const{pathname:n,search:r,hash:o}=t,i=e.indexOf("#");if(i>-1){let a=o.includes(e.slice(i))?e.slice(i).length:1,l=o.slice(a);return l[0]!=="/"&&(l="/"+l),Ys(l,"")}return Ys(n,e)+r+o}function lm(e,t,n,r){let o=[],i=[],s=null;const a=({state:d})=>{const p=Vc(e,location),_=n.value,g=t.value;let O=0;if(d){if(n.value=p,t.value=d,s&&s===_){s=null;return}O=g?d.position-g.position:0}else r(p);o.forEach(h=>{h(n.value,_,{delta:O,type:dr.pop,direction:O?O>0?rr.forward:rr.back:rr.unknown})})};function l(){s=n.value}function u(d){o.push(d);const p=()=>{const _=o.indexOf(d);_>-1&&o.splice(_,1)};return i.push(p),p}function c(){const{history:d}=window;!d.state||d.replaceState(we({},d.state,{scroll:xo()}),"")}function f(){for(const d of i)d();i=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",c),{pauseListeners:l,listen:u,destroy:f}}function ea(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?xo():null}}function cm(e){const{history:t,location:n}=window,r={value:Vc(e,n)},o={value:t.state};o.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(l,u,c){const f=e.indexOf("#"),d=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+l:am()+e+l;try{t[c?"replaceState":"pushState"](u,"",d),o.value=u}catch(p){console.error(p),n[c?"replace":"assign"](d)}}function s(l,u){const c=we({},t.state,ea(o.value.back,l,o.value.forward,!0),u,{position:o.value.position});i(l,c,!0),r.value=l}function a(l,u){const c=we({},o.value,t.state,{forward:l,scroll:xo()});i(c.current,c,!0);const f=we({},ea(r.value,l,null),{position:c.position+1},u);i(l,f,!1),r.value=l}return{location:r,state:o,push:a,replace:s}}function um(e){e=em(e);const t=cm(e),n=lm(e,t.state,t.location,t.replace);function r(i,s=!0){s||n.pauseListeners(),history.go(i)}const o=we({location:"",base:e,go:r,createHref:nm.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function fm(e){return typeof e=="string"||e&&typeof e=="object"}function qc(e){return typeof e=="string"||typeof e=="symbol"}const St={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Uc=Symbol("");var ta;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(ta||(ta={}));function jn(e,t){return we(new Error,{type:e,[Uc]:!0},t)}function wt(e,t){return e instanceof Error&&Uc in e&&(t==null||!!(e.type&t))}const na="[^/]+?",dm={sensitive:!1,strict:!1,start:!0,end:!0},pm=/[.+*?^${}()[\]/\\]/g;function mm(e,t){const n=we({},dm,t),r=[];let o=n.start?"^":"";const i=[];for(const u of e){const c=u.length?[]:[90];n.strict&&!u.length&&(o+="/");for(let f=0;f<u.length;f++){const d=u[f];let p=40+(n.sensitive?.25:0);if(d.type===0)f||(o+="/"),o+=d.value.replace(pm,"\\$&"),p+=40;else if(d.type===1){const{value:_,repeatable:g,optional:O,regexp:h}=d;i.push({name:_,repeatable:g,optional:O});const E=h||na;if(E!==na){p+=10;try{new RegExp(`(${E})`)}catch(S){throw new Error(`Invalid custom RegExp for param "${_}" (${E}): `+S.message)}}let w=g?`((?:${E})(?:/(?:${E}))*)`:`(${E})`;f||(w=O&&u.length<2?`(?:/${w})`:"/"+w),O&&(w+="?"),o+=w,p+=20,O&&(p+=-8),g&&(p+=-20),E===".*"&&(p+=-50)}c.push(p)}r.push(c)}if(n.strict&&n.end){const u=r.length-1;r[u][r[u].length-1]+=.7000000000000001}n.strict||(o+="/?"),n.end?o+="$":n.strict&&(o+="(?:/|$)");const s=new RegExp(o,n.sensitive?"":"i");function a(u){const c=u.match(s),f={};if(!c)return null;for(let d=1;d<c.length;d++){const p=c[d]||"",_=i[d-1];f[_.name]=p&&_.repeatable?p.split("/"):p}return f}function l(u){let c="",f=!1;for(const d of e){(!f||!c.endsWith("/"))&&(c+="/"),f=!1;for(const p of d)if(p.type===0)c+=p.value;else if(p.type===1){const{value:_,repeatable:g,optional:O}=p,h=_ in u?u[_]:"";if(ht(h)&&!g)throw new Error(`Provided param "${_}" is an array but it is not repeatable (* or + modifiers)`);const E=ht(h)?h.join("/"):h;if(!E)if(O)d.length<2&&(c.endsWith("/")?c=c.slice(0,-1):f=!0);else throw new Error(`Missing required param "${_}"`);c+=E}}return c||"/"}return{re:s,score:r,keys:i,parse:a,stringify:l}}function hm(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===40+40?-1:1:e.length>t.length?t.length===1&&t[0]===40+40?1:-1:0}function vm(e,t){let n=0;const r=e.score,o=t.score;for(;n<r.length&&n<o.length;){const i=hm(r[n],o[n]);if(i)return i;n++}if(Math.abs(o.length-r.length)===1){if(ra(r))return 1;if(ra(o))return-1}return o.length-r.length}function ra(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const gm={type:0,value:""},_m=/[a-zA-Z0-9_]/;function ym(e){if(!e)return[[]];if(e==="/")return[[gm]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${n})/"${u}": ${p}`)}let n=0,r=n;const o=[];let i;function s(){i&&o.push(i),i=[]}let a=0,l,u="",c="";function f(){!u||(n===0?i.push({type:0,value:u}):n===1||n===2||n===3?(i.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:u,regexp:c,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function d(){u+=l}for(;a<e.length;){if(l=e[a++],l==="\\"&&n!==2){r=n,n=4;continue}switch(n){case 0:l==="/"?(u&&f(),s()):l===":"?(f(),n=1):d();break;case 4:d(),n=r;break;case 1:l==="("?n=2:_m.test(l)?d():(f(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&a--);break;case 2:l===")"?c[c.length-1]=="\\"?c=c.slice(0,-1)+l:n=3:c+=l;break;case 3:f(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&a--,c="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${u}"`),f(),s(),o}function bm(e,t,n){const r=mm(ym(e.path),n),o=we(r,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function Em(e,t){const n=[],r=new Map;t=sa({strict:!1,end:!0,sensitive:!1},t);function o(c){return r.get(c)}function i(c,f,d){const p=!d,_=Om(c);_.aliasOf=d&&d.record;const g=sa(t,c),O=[_];if("alias"in c){const w=typeof c.alias=="string"?[c.alias]:c.alias;for(const S of w)O.push(we({},_,{components:d?d.record.components:_.components,path:S,aliasOf:d?d.record:_}))}let h,E;for(const w of O){const{path:S}=w;if(f&&S[0]!=="/"){const I=f.record.path,z=I[I.length-1]==="/"?"":"/";w.path=f.record.path+(S&&z+S)}if(h=bm(w,f,g),d?d.alias.push(h):(E=E||h,E!==h&&E.alias.push(h),p&&c.name&&!ia(h)&&s(c.name)),_.children){const I=_.children;for(let z=0;z<I.length;z++)i(I[z],h,d&&d.children[z])}d=d||h,(h.record.components&&Object.keys(h.record.components).length||h.record.name||h.record.redirect)&&l(h)}return E?()=>{s(E)}:nr}function s(c){if(qc(c)){const f=r.get(c);f&&(r.delete(c),n.splice(n.indexOf(f),1),f.children.forEach(s),f.alias.forEach(s))}else{const f=n.indexOf(c);f>-1&&(n.splice(f,1),c.record.name&&r.delete(c.record.name),c.children.forEach(s),c.alias.forEach(s))}}function a(){return n}function l(c){let f=0;for(;f<n.length&&vm(c,n[f])>=0&&(c.record.path!==n[f].record.path||!zc(c,n[f]));)f++;n.splice(f,0,c),c.record.name&&!ia(c)&&r.set(c.record.name,c)}function u(c,f){let d,p={},_,g;if("name"in c&&c.name){if(d=r.get(c.name),!d)throw jn(1,{location:c});g=d.record.name,p=we(oa(f.params,d.keys.filter(E=>!E.optional).map(E=>E.name)),c.params&&oa(c.params,d.keys.map(E=>E.name))),_=d.stringify(p)}else if("path"in c)_=c.path,d=n.find(E=>E.re.test(_)),d&&(p=d.parse(_),g=d.record.name);else{if(d=f.name?r.get(f.name):n.find(E=>E.re.test(f.path)),!d)throw jn(1,{location:c,currentLocation:f});g=d.record.name,p=we({},f.params,c.params),_=d.stringify(p)}const O=[];let h=d;for(;h;)O.unshift(h.record),h=h.parent;return{name:g,path:_,params:p,matched:O,meta:Sm(O)}}return e.forEach(c=>i(c)),{addRoute:i,resolve:u,removeRoute:s,getRoutes:a,getRecordMatcher:o}}function oa(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Om(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:wm(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function wm(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="boolean"?n:n[r];return t}function ia(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Sm(e){return e.reduce((t,n)=>we(t,n.meta),{})}function sa(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function zc(e,t){return t.children.some(n=>n===e||zc(e,n))}const Kc=/#/g,Pm=/&/g,Cm=/\//g,Im=/=/g,km=/\?/g,Wc=/\+/g,Am=/%5B/g,xm=/%5D/g,Jc=/%5E/g,Tm=/%60/g,Qc=/%7B/g,Lm=/%7C/g,Zc=/%7D/g,Rm=/%20/g;function Xi(e){return encodeURI(""+e).replace(Lm,"|").replace(Am,"[").replace(xm,"]")}function jm(e){return Xi(e).replace(Qc,"{").replace(Zc,"}").replace(Jc,"^")}function vi(e){return Xi(e).replace(Wc,"%2B").replace(Rm,"+").replace(Kc,"%23").replace(Pm,"%26").replace(Tm,"`").replace(Qc,"{").replace(Zc,"}").replace(Jc,"^")}function Dm(e){return vi(e).replace(Im,"%3D")}function Nm(e){return Xi(e).replace(Kc,"%23").replace(km,"%3F")}function Mm(e){return e==null?"":Nm(e).replace(Cm,"%2F")}function so(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function $m(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;o<r.length;++o){const i=r[o].replace(Wc," "),s=i.indexOf("="),a=so(s<0?i:i.slice(0,s)),l=s<0?null:so(i.slice(s+1));if(a in t){let u=t[a];ht(u)||(u=t[a]=[u]),u.push(l)}else t[a]=l}return t}function aa(e){let t="";for(let n in e){const r=e[n];if(n=Dm(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(ht(r)?r.map(i=>i&&vi(i)):[r&&vi(r)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function Hm(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=ht(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}const Fm=Symbol(""),la=Symbol(""),To=Symbol(""),es=Symbol(""),gi=Symbol("");function Un(){let e=[];function t(r){return e.push(r),()=>{const o=e.indexOf(r);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e,reset:n}}function $t(e,t,n,r,o){const i=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((s,a)=>{const l=f=>{f===!1?a(jn(4,{from:n,to:t})):f instanceof Error?a(f):fm(f)?a(jn(2,{from:t,to:f})):(i&&r.enterCallbacks[o]===i&&typeof f=="function"&&i.push(f),s())},u=e.call(r&&r.instances[o],t,n,l);let c=Promise.resolve(u);e.length<3&&(c=c.then(l)),c.catch(f=>a(f))})}function Wo(e,t,n,r){const o=[];for(const i of e)for(const s in i.components){let a=i.components[s];if(!(t!=="beforeRouteEnter"&&!i.instances[s]))if(Bm(a)){const u=(a.__vccOpts||a)[t];u&&o.push($t(u,n,r,i,s))}else{let l=a();o.push(()=>l.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${s}" at "${i.path}"`));const c=Wp(u)?u.default:u;i.components[s]=c;const d=(c.__vccOpts||c)[t];return d&&$t(d,n,r,i,s)()}))}}return o}function Bm(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function ca(e){const t=Fe(To),n=Fe(es),r=Q(()=>t.resolve(V(e.to))),o=Q(()=>{const{matched:l}=r.value,{length:u}=l,c=l[u-1],f=n.matched;if(!c||!f.length)return-1;const d=f.findIndex(Rn.bind(null,c));if(d>-1)return d;const p=ua(l[u-2]);return u>1&&ua(c)===p&&f[f.length-1].path!==p?f.findIndex(Rn.bind(null,l[u-2])):d}),i=Q(()=>o.value>-1&&zm(n.params,r.value.params)),s=Q(()=>o.value>-1&&o.value===n.matched.length-1&&Bc(n.params,r.value.params));function a(l={}){return Um(l)?t[V(e.replace)?"replace":"push"](V(e.to)).catch(nr):Promise.resolve()}return{route:r,href:Q(()=>r.value.href),isActive:i,isExactActive:s,navigate:a}}const Vm=me({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:ca,setup(e,{slots:t}){const n=Mn(ca(e)),{options:r}=Fe(To),o=Q(()=>({[fa(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[fa(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&t.default(n);return e.custom?i:he("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},i)}}}),qm=Vm;function Um(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function zm(e,t){for(const n in t){const r=t[n],o=e[n];if(typeof r=="string"){if(r!==o)return!1}else if(!ht(o)||o.length!==r.length||r.some((i,s)=>i!==o[s]))return!1}return!0}function ua(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const fa=(e,t,n)=>e!=null?e:t!=null?t:n,Km=me({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Fe(gi),o=Q(()=>e.route||r.value),i=Fe(la,0),s=Q(()=>{let u=V(i);const{matched:c}=o.value;let f;for(;(f=c[u])&&!f.components;)u++;return u}),a=Q(()=>o.value.matched[s.value]);Bt(la,Q(()=>s.value+1)),Bt(Fm,a),Bt(gi,o);const l=Ce();return lt(()=>[l.value,a.value,e.name],([u,c,f],[d,p,_])=>{c&&(c.instances[f]=u,p&&p!==c&&u&&u===d&&(c.leaveGuards.size||(c.leaveGuards=p.leaveGuards),c.updateGuards.size||(c.updateGuards=p.updateGuards))),u&&c&&(!p||!Rn(c,p)||!d)&&(c.enterCallbacks[f]||[]).forEach(g=>g(u))},{flush:"post"}),()=>{const u=o.value,c=e.name,f=a.value,d=f&&f.components[c];if(!d)return da(n.default,{Component:d,route:u});const p=f.props[c],_=p?p===!0?u.params:typeof p=="function"?p(u):p:null,O=he(d,we({},_,t,{onVnodeUnmounted:h=>{h.component.isUnmounted&&(f.instances[c]=null)},ref:l}));return da(n.default,{Component:O,route:u})||O}}});function da(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Yc=Km;function Wm(e){const t=Em(e.routes,e),n=e.parseQuery||$m,r=e.stringifyQuery||aa,o=e.history,i=Un(),s=Un(),a=Un(),l=sc(St);let u=St;yn&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=zo.bind(null,x=>""+x),f=zo.bind(null,Mm),d=zo.bind(null,so);function p(x,U){let q,Z;return qc(x)?(q=t.getRecordMatcher(x),Z=U):Z=x,t.addRoute(Z,q)}function _(x){const U=t.getRecordMatcher(x);U&&t.removeRoute(U)}function g(){return t.getRoutes().map(x=>x.record)}function O(x){return!!t.getRecordMatcher(x)}function h(x,U){if(U=we({},U||l.value),typeof x=="string"){const m=Ko(n,x,U.path),v=t.resolve({path:m.path},U),P=o.createHref(m.fullPath);return we(m,v,{params:d(v.params),hash:so(m.hash),redirectedFrom:void 0,href:P})}let q;if("path"in x)q=we({},x,{path:Ko(n,x.path,U.path).path});else{const m=we({},x.params);for(const v in m)m[v]==null&&delete m[v];q=we({},x,{params:f(x.params)}),U.params=f(U.params)}const Z=t.resolve(q,U),de=x.hash||"";Z.params=c(d(Z.params));const Pe=Zp(r,we({},x,{hash:jm(de),path:Z.path})),le=o.createHref(Pe);return we({fullPath:Pe,hash:de,query:r===aa?Hm(x.query):x.query||{}},Z,{redirectedFrom:void 0,href:le})}function E(x){return typeof x=="string"?Ko(n,x,l.value.path):we({},x)}function w(x,U){if(u!==x)return jn(8,{from:U,to:x})}function S(x){return H(x)}function I(x){return S(we(E(x),{replace:!0}))}function z(x){const U=x.matched[x.matched.length-1];if(U&&U.redirect){const{redirect:q}=U;let Z=typeof q=="function"?q(x):q;return typeof Z=="string"&&(Z=Z.includes("?")||Z.includes("#")?Z=E(Z):{path:Z},Z.params={}),we({query:x.query,hash:x.hash,params:"path"in Z?{}:x.params},Z)}}function H(x,U){const q=u=h(x),Z=l.value,de=x.state,Pe=x.force,le=x.replace===!0,m=z(q);if(m)return H(we(E(m),{state:typeof m=="object"?we({},de,m.state):de,force:Pe,replace:le}),U||q);const v=q;v.redirectedFrom=U;let P;return!Pe&&Yp(r,Z,q)&&(P=jn(16,{to:v,from:Z}),De(Z,Z,!0,!1)),(P?Promise.resolve(P):M(v,Z)).catch(C=>wt(C)?wt(C,2)?C:Le(C):re(C,v,Z)).then(C=>{if(C){if(wt(C,2))return H(we({replace:le},E(C.to),{state:typeof C.to=="object"?we({},de,C.to.state):de,force:Pe}),U||v)}else C=K(v,Z,!0,le,de);return N(v,Z,C),C})}function b(x,U){const q=w(x,U);return q?Promise.reject(q):Promise.resolve()}function M(x,U){let q;const[Z,de,Pe]=Jm(x,U);q=Wo(Z.reverse(),"beforeRouteLeave",x,U);for(const m of Z)m.leaveGuards.forEach(v=>{q.push($t(v,x,U))});const le=b.bind(null,x,U);return q.push(le),hn(q).then(()=>{q=[];for(const m of i.list())q.push($t(m,x,U));return q.push(le),hn(q)}).then(()=>{q=Wo(de,"beforeRouteUpdate",x,U);for(const m of de)m.updateGuards.forEach(v=>{q.push($t(v,x,U))});return q.push(le),hn(q)}).then(()=>{q=[];for(const m of x.matched)if(m.beforeEnter&&!U.matched.includes(m))if(ht(m.beforeEnter))for(const v of m.beforeEnter)q.push($t(v,x,U));else q.push($t(m.beforeEnter,x,U));return q.push(le),hn(q)}).then(()=>(x.matched.forEach(m=>m.enterCallbacks={}),q=Wo(Pe,"beforeRouteEnter",x,U),q.push(le),hn(q))).then(()=>{q=[];for(const m of s.list())q.push($t(m,x,U));return q.push(le),hn(q)}).catch(m=>wt(m,8)?m:Promise.reject(m))}function N(x,U,q){for(const Z of a.list())Z(x,U,q)}function K(x,U,q,Z,de){const Pe=w(x,U);if(Pe)return Pe;const le=U===St,m=yn?history.state:{};q&&(Z||le?o.replace(x.fullPath,we({scroll:le&&m&&m.scroll},de)):o.push(x.fullPath,de)),l.value=x,De(x,U,q,le),Le()}let k;function R(){k||(k=o.listen((x,U,q)=>{if(!Ge.listening)return;const Z=h(x),de=z(Z);if(de){H(we(de,{replace:!0}),Z).catch(nr);return}u=Z;const Pe=l.value;yn&&im(Xs(Pe.fullPath,q.delta),xo()),M(Z,Pe).catch(le=>wt(le,12)?le:wt(le,2)?(H(le.to,Z).then(m=>{wt(m,20)&&!q.delta&&q.type===dr.pop&&o.go(-1,!1)}).catch(nr),Promise.reject()):(q.delta&&o.go(-q.delta,!1),re(le,Z,Pe))).then(le=>{le=le||K(Z,Pe,!1),le&&(q.delta&&!wt(le,8)?o.go(-q.delta,!1):q.type===dr.pop&&wt(le,20)&&o.go(-1,!1)),N(Z,Pe,le)}).catch(nr)}))}let $=Un(),ie=Un(),W;function re(x,U,q){Le(x);const Z=ie.list();return Z.length?Z.forEach(de=>de(x,U,q)):console.error(x),Promise.reject(x)}function se(){return W&&l.value!==St?Promise.resolve():new Promise((x,U)=>{$.add([x,U])})}function Le(x){return W||(W=!x,R(),$.list().forEach(([U,q])=>x?q(x):U()),$.reset()),x}function De(x,U,q,Z){const{scrollBehavior:de}=e;if(!yn||!de)return Promise.resolve();const Pe=!q&&sm(Xs(x.fullPath,0))||(Z||!q)&&history.state&&history.state.scroll||null;return Er().then(()=>de(x,U,Pe)).then(le=>le&&om(le)).catch(le=>re(le,x,U))}const Ne=x=>o.go(x);let Ae;const ct=new Set,Ge={currentRoute:l,listening:!0,addRoute:p,removeRoute:_,hasRoute:O,getRoutes:g,resolve:h,options:e,push:S,replace:I,go:Ne,back:()=>Ne(-1),forward:()=>Ne(1),beforeEach:i.add,beforeResolve:s.add,afterEach:a.add,onError:ie.add,isReady:se,install(x){const U=this;x.component("RouterLink",qm),x.component("RouterView",Yc),x.config.globalProperties.$router=U,Object.defineProperty(x.config.globalProperties,"$route",{enumerable:!0,get:()=>V(l)}),yn&&!Ae&&l.value===St&&(Ae=!0,S(o.location).catch(de=>{}));const q={};for(const de in St)q[de]=Q(()=>l.value[de]);x.provide(To,U),x.provide(es,Mn(q)),x.provide(gi,l);const Z=x.unmount;ct.add(x),x.unmount=function(){ct.delete(x),ct.size<1&&(u=St,k&&k(),k=null,l.value=St,Ae=!1,W=!1),Z()}}};return Ge}function hn(e){return e.reduce((t,n)=>t.then(()=>n()),Promise.resolve())}function Jm(e,t){const n=[],r=[],o=[],i=Math.max(t.matched.length,e.matched.length);for(let s=0;s<i;s++){const a=t.matched[s];a&&(e.matched.find(u=>Rn(u,a))?r.push(a):n.push(a));const l=e.matched[s];l&&(t.matched.find(u=>Rn(u,l))||o.push(l))}return[n,r,o]}function pn(){return Fe(To)}function Jt(){return Fe(es)}const Qm=({headerLinkSelector:e,headerAnchorSelector:t,delay:n,offset:r=5})=>{const o=pn(),s=Gi(()=>{var g,O,h,E;const a=Math.max(window.scrollY,document.documentElement.scrollTop,document.body.scrollTop);if(Math.abs(a-0)<r){pa(o,"");return}const u=window.innerHeight+a,c=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight),f=Math.abs(c-u)<r,d=Array.from(document.querySelectorAll(e)),_=Array.from(document.querySelectorAll(t)).filter(w=>d.some(S=>S.hash===w.hash));for(let w=0;w<_.length;w++){const S=_[w],I=_[w+1],z=a>=((O=(g=S.parentElement)==null?void 0:g.offsetTop)!=null?O:0)-r,H=!I||a<((E=(h=I.parentElement)==null?void 0:h.offsetTop)!=null?E:0)-r;if(!(z&&H))continue;const M=decodeURIComponent(o.currentRoute.value.hash),N=decodeURIComponent(S.hash);if(M===N)return;if(f){for(let K=w+1;K<_.length;K++)if(M===decodeURIComponent(_[K].hash))return}pa(o,N);return}},n);Ye(()=>{window.addEventListener("scroll",s)}),Co(()=>{window.removeEventListener("scroll",s)})},pa=async(e,t)=>{const{scrollBehavior:n}=e.options;e.options.scrollBehavior=void 0,await e.replace({query:e.currentRoute.value.query,hash:t,force:!0}).finally(()=>e.options.scrollBehavior=n)},Zm="a.sidebar-item",Ym=".header-anchor",Gm=300,Xm=5,eh=Ot({setup(){Qm({headerLinkSelector:Zm,headerAnchorSelector:Ym,delay:Gm,offset:Xm})}});const th=he("svg",{class:"external-link-icon",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",x:"0px",y:"0px",viewBox:"0 0 100 100",width:"15",height:"15"},[he("path",{fill:"currentColor",d:"M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"}),he("polygon",{fill:"currentColor",points:"45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"})]),nh=me({name:"ExternalLinkIcon",props:{locales:{type:Object,required:!1,default:()=>({})}},setup(e){const t=Fn(),n=Q(()=>{var r;return(r=e.locales[t.value])!=null?r:{openInNewWindow:"open in new window"}});return()=>he("span",[th,he("span",{class:"external-link-icon-sr-only"},n.value.openInNewWindow)])}}),rh={"/":{openInNewWindow:"在新窗口打开"}},oh=Ot({enhance({app:e}){e.component("ExternalLinkIcon",he(nh,{locales:rh}))}});/*! medium-zoom 1.0.8 | MIT License | https://github.com/francoischalifour/medium-zoom */var tn=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},Rr=function(t){return t.tagName==="IMG"},ih=function(t){return NodeList.prototype.isPrototypeOf(t)},Ur=function(t){return t&&t.nodeType===1},ma=function(t){var n=t.currentSrc||t.src;return n.substr(-4).toLowerCase()===".svg"},ha=function(t){try{return Array.isArray(t)?t.filter(Rr):ih(t)?[].slice.call(t).filter(Rr):Ur(t)?[t].filter(Rr):typeof t=="string"?[].slice.call(document.querySelectorAll(t)).filter(Rr):[]}catch{throw new TypeError(`The provided selector is invalid.
|
|
Expects a CSS selector, a Node element, a NodeList or an array.
|
|
See: https://github.com/francoischalifour/medium-zoom`)}},sh=function(t){var n=document.createElement("div");return n.classList.add("medium-zoom-overlay"),n.style.background=t,n},ah=function(t){var n=t.getBoundingClientRect(),r=n.top,o=n.left,i=n.width,s=n.height,a=t.cloneNode(),l=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,u=window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0;return a.removeAttribute("id"),a.style.position="absolute",a.style.top=r+l+"px",a.style.left=o+u+"px",a.style.width=i+"px",a.style.height=s+"px",a.style.transform="",a},vn=function(t,n){var r=tn({bubbles:!1,cancelable:!1,detail:void 0},n);if(typeof window.CustomEvent=="function")return new CustomEvent(t,r);var o=document.createEvent("CustomEvent");return o.initCustomEvent(t,r.bubbles,r.cancelable,r.detail),o},lh=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=window.Promise||function(k){function R(){}k(R,R)},o=function(k){var R=k.target;if(R===M){_();return}w.indexOf(R)!==-1&&g({target:R})},i=function(){if(!(I||!b.original)){var k=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;Math.abs(z-k)>H.scrollOffset&&setTimeout(_,150)}},s=function(k){var R=k.key||k.keyCode;(R==="Escape"||R==="Esc"||R===27)&&_()},a=function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},R=k;if(k.background&&(M.style.background=k.background),k.container&&k.container instanceof Object&&(R.container=tn({},H.container,k.container)),k.template){var $=Ur(k.template)?k.template:document.querySelector(k.template);R.template=$}return H=tn({},H,R),w.forEach(function(ie){ie.dispatchEvent(vn("medium-zoom:update",{detail:{zoom:N}}))}),N},l=function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return e(tn({},H,k))},u=function(){for(var k=arguments.length,R=Array(k),$=0;$<k;$++)R[$]=arguments[$];var ie=R.reduce(function(W,re){return[].concat(W,ha(re))},[]);return ie.filter(function(W){return w.indexOf(W)===-1}).forEach(function(W){w.push(W),W.classList.add("medium-zoom-image")}),S.forEach(function(W){var re=W.type,se=W.listener,Le=W.options;ie.forEach(function(De){De.addEventListener(re,se,Le)})}),N},c=function(){for(var k=arguments.length,R=Array(k),$=0;$<k;$++)R[$]=arguments[$];b.zoomed&&_();var ie=R.length>0?R.reduce(function(W,re){return[].concat(W,ha(re))},[]):w;return ie.forEach(function(W){W.classList.remove("medium-zoom-image"),W.dispatchEvent(vn("medium-zoom:detach",{detail:{zoom:N}}))}),w=w.filter(function(W){return ie.indexOf(W)===-1}),N},f=function(k,R){var $=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return w.forEach(function(ie){ie.addEventListener("medium-zoom:"+k,R,$)}),S.push({type:"medium-zoom:"+k,listener:R,options:$}),N},d=function(k,R){var $=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return w.forEach(function(ie){ie.removeEventListener("medium-zoom:"+k,R,$)}),S=S.filter(function(ie){return!(ie.type==="medium-zoom:"+k&&ie.listener.toString()===R.toString())}),N},p=function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},R=k.target,$=function(){var W={width:document.documentElement.clientWidth,height:document.documentElement.clientHeight,left:0,top:0,right:0,bottom:0},re=void 0,se=void 0;if(H.container)if(H.container instanceof Object)W=tn({},W,H.container),re=W.width-W.left-W.right-H.margin*2,se=W.height-W.top-W.bottom-H.margin*2;else{var Le=Ur(H.container)?H.container:document.querySelector(H.container),De=Le.getBoundingClientRect(),Ne=De.width,Ae=De.height,ct=De.left,Ge=De.top;W=tn({},W,{width:Ne,height:Ae,left:ct,top:Ge})}re=re||W.width-H.margin*2,se=se||W.height-H.margin*2;var x=b.zoomedHd||b.original,U=ma(x)?re:x.naturalWidth||re,q=ma(x)?se:x.naturalHeight||se,Z=x.getBoundingClientRect(),de=Z.top,Pe=Z.left,le=Z.width,m=Z.height,v=Math.min(Math.max(le,U),re)/le,P=Math.min(Math.max(m,q),se)/m,C=Math.min(v,P),A=(-Pe+(re-le)/2+H.margin+W.left)/C,D=(-de+(se-m)/2+H.margin+W.top)/C,j="scale("+C+") translate3d("+A+"px, "+D+"px, 0)";b.zoomed.style.transform=j,b.zoomedHd&&(b.zoomedHd.style.transform=j)};return new r(function(ie){if(R&&w.indexOf(R)===-1){ie(N);return}var W=function Ne(){I=!1,b.zoomed.removeEventListener("transitionend",Ne),b.original.dispatchEvent(vn("medium-zoom:opened",{detail:{zoom:N}})),ie(N)};if(b.zoomed){ie(N);return}if(R)b.original=R;else if(w.length>0){var re=w;b.original=re[0]}else{ie(N);return}if(b.original.dispatchEvent(vn("medium-zoom:open",{detail:{zoom:N}})),z=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,I=!0,b.zoomed=ah(b.original),document.body.appendChild(M),H.template){var se=Ur(H.template)?H.template:document.querySelector(H.template);b.template=document.createElement("div"),b.template.appendChild(se.content.cloneNode(!0)),document.body.appendChild(b.template)}if(b.original.parentElement&&b.original.parentElement.tagName==="PICTURE"&&b.original.currentSrc&&(b.zoomed.src=b.original.currentSrc),document.body.appendChild(b.zoomed),window.requestAnimationFrame(function(){document.body.classList.add("medium-zoom--opened")}),b.original.classList.add("medium-zoom-image--hidden"),b.zoomed.classList.add("medium-zoom-image--opened"),b.zoomed.addEventListener("click",_),b.zoomed.addEventListener("transitionend",W),b.original.getAttribute("data-zoom-src")){b.zoomedHd=b.zoomed.cloneNode(),b.zoomedHd.removeAttribute("srcset"),b.zoomedHd.removeAttribute("sizes"),b.zoomedHd.removeAttribute("loading"),b.zoomedHd.src=b.zoomed.getAttribute("data-zoom-src"),b.zoomedHd.onerror=function(){clearInterval(Le),console.warn("Unable to reach the zoom image target "+b.zoomedHd.src),b.zoomedHd=null,$()};var Le=setInterval(function(){b.zoomedHd.complete&&(clearInterval(Le),b.zoomedHd.classList.add("medium-zoom-image--opened"),b.zoomedHd.addEventListener("click",_),document.body.appendChild(b.zoomedHd),$())},10)}else if(b.original.hasAttribute("srcset")){b.zoomedHd=b.zoomed.cloneNode(),b.zoomedHd.removeAttribute("sizes"),b.zoomedHd.removeAttribute("loading");var De=b.zoomedHd.addEventListener("load",function(){b.zoomedHd.removeEventListener("load",De),b.zoomedHd.classList.add("medium-zoom-image--opened"),b.zoomedHd.addEventListener("click",_),document.body.appendChild(b.zoomedHd),$()})}else $()})},_=function(){return new r(function(k){if(I||!b.original){k(N);return}var R=function $(){b.original.classList.remove("medium-zoom-image--hidden"),document.body.removeChild(b.zoomed),b.zoomedHd&&document.body.removeChild(b.zoomedHd),document.body.removeChild(M),b.zoomed.classList.remove("medium-zoom-image--opened"),b.template&&document.body.removeChild(b.template),I=!1,b.zoomed.removeEventListener("transitionend",$),b.original.dispatchEvent(vn("medium-zoom:closed",{detail:{zoom:N}})),b.original=null,b.zoomed=null,b.zoomedHd=null,b.template=null,k(N)};I=!0,document.body.classList.remove("medium-zoom--opened"),b.zoomed.style.transform="",b.zoomedHd&&(b.zoomedHd.style.transform=""),b.template&&(b.template.style.transition="opacity 150ms",b.template.style.opacity=0),b.original.dispatchEvent(vn("medium-zoom:close",{detail:{zoom:N}})),b.zoomed.addEventListener("transitionend",R)})},g=function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},R=k.target;return b.original?_():p({target:R})},O=function(){return H},h=function(){return w},E=function(){return b.original},w=[],S=[],I=!1,z=0,H=n,b={original:null,zoomed:null,zoomedHd:null,template:null};Object.prototype.toString.call(t)==="[object Object]"?H=t:(t||typeof t=="string")&&u(t),H=tn({margin:0,background:"#fff",scrollOffset:40,container:null,template:null},H);var M=sh(H.background);document.addEventListener("click",o),document.addEventListener("keyup",s),document.addEventListener("scroll",i),window.addEventListener("resize",_);var N={open:p,close:_,toggle:g,update:a,clone:l,attach:u,detach:c,on:f,off:d,getOptions:O,getImages:h,getZoomedImage:E};return N};function ch(e,t){t===void 0&&(t={});var n=t.insertAt;if(!(!e||typeof document>"u")){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",n==="top"&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}var uh=".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}";ch(uh);const fh=lh,dh=Symbol("mediumZoom");const ph=".theme-default-content > img, .theme-default-content :not(a) > img",mh={},hh=300,vh=Ot({enhance({app:e,router:t}){const n=fh(mh);n.refresh=(r=ph)=>{n.detach(),n.attach(r)},e.provide(dh,n),t.afterEach(()=>{setTimeout(()=>n.refresh(),hh)})}});/**
|
|
* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
|
|
* @license MIT
|
|
*/const ge={settings:{minimum:.08,easing:"ease",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,barSelector:'[role="bar"]',parent:"body",template:'<div class="bar" role="bar"></div>'},status:null,set:e=>{const t=ge.isStarted();e=Jo(e,ge.settings.minimum,1),ge.status=e===1?null:e;const n=ge.render(!t),r=n.querySelector(ge.settings.barSelector),o=ge.settings.speed,i=ge.settings.easing;return n.offsetWidth,gh(s=>{jr(r,{transform:"translate3d("+va(e)+"%,0,0)",transition:"all "+o+"ms "+i}),e===1?(jr(n,{transition:"none",opacity:"1"}),n.offsetWidth,setTimeout(function(){jr(n,{transition:"all "+o+"ms linear",opacity:"0"}),setTimeout(function(){ge.remove(),s()},o)},o)):setTimeout(()=>s(),o)}),ge},isStarted:()=>typeof ge.status=="number",start:()=>{ge.status||ge.set(0);const e=()=>{setTimeout(()=>{!ge.status||(ge.trickle(),e())},ge.settings.trickleSpeed)};return ge.settings.trickle&&e(),ge},done:e=>!e&&!ge.status?ge:ge.inc(.3+.5*Math.random()).set(1),inc:e=>{let t=ge.status;return t?(typeof e!="number"&&(e=(1-t)*Jo(Math.random()*t,.1,.95)),t=Jo(t+e,0,.994),ge.set(t)):ge.start()},trickle:()=>ge.inc(Math.random()*ge.settings.trickleRate),render:e=>{if(ge.isRendered())return document.getElementById("nprogress");ga(document.documentElement,"nprogress-busy");const t=document.createElement("div");t.id="nprogress",t.innerHTML=ge.settings.template;const n=t.querySelector(ge.settings.barSelector),r=e?"-100":va(ge.status||0),o=document.querySelector(ge.settings.parent);return jr(n,{transition:"all 0 linear",transform:"translate3d("+r+"%,0,0)"}),o!==document.body&&ga(o,"nprogress-custom-parent"),o==null||o.appendChild(t),t},remove:()=>{_a(document.documentElement,"nprogress-busy"),_a(document.querySelector(ge.settings.parent),"nprogress-custom-parent");const e=document.getElementById("nprogress");e&&_h(e)},isRendered:()=>!!document.getElementById("nprogress")},Jo=(e,t,n)=>e<t?t:e>n?n:e,va=e=>(-1+e)*100,gh=function(){const e=[];function t(){const n=e.shift();n&&n(t)}return function(n){e.push(n),e.length===1&&t()}}(),jr=function(){const e=["Webkit","O","Moz","ms"],t={};function n(s){return s.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(a,l){return l.toUpperCase()})}function r(s){const a=document.body.style;if(s in a)return s;let l=e.length;const u=s.charAt(0).toUpperCase()+s.slice(1);let c;for(;l--;)if(c=e[l]+u,c in a)return c;return s}function o(s){return s=n(s),t[s]||(t[s]=r(s))}function i(s,a,l){a=o(a),s.style[a]=l}return function(s,a){for(const l in a){const u=a[l];u!==void 0&&Object.prototype.hasOwnProperty.call(a,l)&&i(s,l,u)}}}(),Gc=(e,t)=>(typeof e=="string"?e:ts(e)).indexOf(" "+t+" ")>=0,ga=(e,t)=>{const n=ts(e),r=n+t;Gc(n,t)||(e.className=r.substring(1))},_a=(e,t)=>{const n=ts(e);if(!Gc(e,t))return;const r=n.replace(" "+t+" "," ");e.className=r.substring(1,r.length-1)},ts=e=>(" "+(e.className||"")+" ").replace(/\s+/gi," "),_h=e=>{e&&e.parentNode&&e.parentNode.removeChild(e)};const yh=()=>{Ye(()=>{const e=pn(),t=new Set;t.add(e.currentRoute.value.path),e.beforeEach(n=>{t.has(n.path)||ge.start()}),e.afterEach(n=>{t.add(n.path),ge.done()})})},bh=Ot({setup(){yh()}}),Eh=JSON.parse(`{"logo":"/logo.png","repo":"WeBankFinTech/fes.js","docsDir":"docs","docsBranch":"next","locales":{"/":{"navbar":[{"text":"指南","link":"/guide/"},{"text":"编译时配置","link":"/reference/config/"},{"text":"API","link":"/reference/api/"},{"text":"插件","link":"/reference/plugin/"},{"text":"CLI","link":"/reference/cli/"},{"text":"v3.0.5","children":[{"text":"v2.0","link":"https://fesjs.mumblefe.cn/2.0"},{"text":"v1.0","link":"https://fesjs.mumblefe.cn/1.0"}]},{"text":"了解更多","children":[{"text":"更新日志","link":"https://github.com/WeBankFinTech/fes.js/blob/next/CHANGELOG.md"},{"text":"fes-design","link":"http://fes-design.mumblefe.cn/"}]}],"selectLanguageName":"简体中文","selectLanguageText":"选择语言","selectLanguageAriaLabel":"选择语言","sidebar":{"/guide/":[{"text":"介绍","children":["/guide/README.md","/guide/getting-started.md"]},{"text":"基础","children":["/guide/directory-structure.md","/guide/builder.md","/guide/config.md","/guide/runtime-config.md","/guide/env.md","/guide/route.md","/guide/plugin.md","/guide/template.md","/guide/mock.md","/guide/upgrade3.md"]},{"text":"样式和资源文件","children":["/guide/image.md","/guide/css.md","/guide/public.md"]},"/guide/contributing.md","/guide/faq.md"],"/reference/config/":["/reference/config/README.md"],"/reference/api/":["/reference/api/README.md"],"/reference/plugin/":["/reference/plugin/README.md",{"text":"Plugins","children":["/reference/plugin/plugins/access.md","/reference/plugin/plugins/enums.md","/reference/plugin/plugins/icon.md","/reference/plugin/plugins/jest.md","/reference/plugin/plugins/layout.md","/reference/plugin/plugins/locale.md","/reference/plugin/plugins/model.md","/reference/plugin/plugins/request.md","/reference/plugin/plugins/vuex.md","/reference/plugin/plugins/qiankun.md","/reference/plugin/plugins/windicss.md","/reference/plugin/plugins/sass.md","/reference/plugin/plugins/editor.md","/reference/plugin/plugins/pinia.md","/reference/plugin/plugins/watermark.md","/reference/plugin/plugins/login.md","/reference/plugin/plugins/swc.md"]},{"text":"插件开发","children":["/reference/plugin/dev/README.md","/reference/plugin/dev/api.md"]}],"/reference/cli/":["/reference/cli/README.md"]},"editLinkText":"在 GitHub 上编辑此页","lastUpdatedText":"上次更新","contributorsText":"贡献者","tip":"提示","warning":"注意","danger":"警告","notFound":["这里什么都没有","我们怎么到这来了?","这是一个 404 页面","看起来我们进入了错误的链接"],"backToHome":"返回首页","openInNewWindow":"在新窗口打开"}},"colorMode":"auto","colorModeSwitch":true,"navbar":[],"selectLanguageText":"Languages","selectLanguageAriaLabel":"Select language","sidebar":"auto","sidebarDepth":2,"editLink":true,"editLinkText":"Edit this page","lastUpdated":true,"lastUpdatedText":"Last Updated","contributors":true,"contributorsText":"Contributors","notFound":["There's nothing here.","How did we get here?","That's a Four-Oh-Four.","Looks like we've got some broken links."],"backToHome":"Take me home","openInNewWindow":"open in new window","toggleColorMode":"toggle color mode","toggleSidebar":"toggle sidebar"}`),Oh=Ce(Eh),wh=()=>Oh,Xc=Symbol(""),Sh=()=>{const e=Fe(Xc);if(!e)throw new Error("useThemeLocaleData() is called without provider.");return e},Ph=(e,t)=>{var n;return{...e,...(n=e.locales)==null?void 0:n[t]}},Ch=Ot({enhance({app:e}){const t=wh(),n=e._context.provides[cs],r=Q(()=>Ph(t.value,n.value));e.provide(Xc,r),Object.defineProperties(e.config.globalProperties,{$theme:{get(){return t.value}},$themeLocale:{get(){return r.value}}})}}),Ih=me({__name:"Badge",props:{type:{type:String,required:!1,default:"tip"},text:{type:String,required:!1,default:""},vertical:{type:String,required:!1,default:void 0}},setup(e){return(t,n)=>(J(),ne("span",{class:et(["badge",e.type]),style:_r({verticalAlign:e.vertical})},[Ie(t.$slots,"default",{},()=>[Kt(Be(e.text),1)])],6))}}),Re=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},kh=Re(Ih,[["__file","Badge.vue"]]),Ah=me({name:"CodeGroup",setup(e,{slots:t}){const n=Ce(-1),r=Ce([]),o=(a=n.value)=>{a<r.value.length-1?n.value=a+1:n.value=0,r.value[n.value].focus()},i=(a=n.value)=>{a>0?n.value=a-1:n.value=r.value.length-1,r.value[n.value].focus()},s=(a,l)=>{a.key===" "||a.key==="Enter"?(a.preventDefault(),n.value=l):a.key==="ArrowRight"?(a.preventDefault(),o(l)):a.key==="ArrowLeft"&&(a.preventDefault(),i(l))};return()=>{var l;const a=(((l=t.default)==null?void 0:l.call(t))||[]).filter(u=>u.type.name==="CodeGroupItem").map(u=>(u.props===null&&(u.props={}),u));return a.length===0?null:(n.value<0||n.value>a.length-1?(n.value=a.findIndex(u=>u.props.active===""||u.props.active===!0),n.value===-1&&(n.value=0)):a.forEach((u,c)=>{u.props.active=c===n.value}),he("div",{class:"code-group"},[he("div",{class:"code-group__nav"},he("ul",{class:"code-group__ul"},a.map((u,c)=>{const f=c===n.value;return he("li",{class:"code-group__li"},he("button",{ref:d=>{d&&(r.value[c]=d)},class:{"code-group__nav-tab":!0,"code-group__nav-tab-active":f},ariaPressed:f,ariaExpanded:f,onClick:()=>n.value=c,onKeydown:d=>s(d,c)},u.props.title))}))),a]))}}}),xh=["aria-selected"],Th=me({name:"CodeGroupItem"}),Lh=me({...Th,props:{title:{type:String,required:!0},active:{type:Boolean,required:!1,default:!1}},setup(e){return(t,n)=>(J(),ne("div",{class:et(["code-group-item",{"code-group-item__active":e.active}]),"aria-selected":e.active},[Ie(t.$slots,"default")],10,xh))}}),Rh=Re(Lh,[["__file","CodeGroupItem.vue"]]);var ya;const eu=typeof window<"u",jh=e=>typeof e=="function",Dh=e=>typeof e=="string",Nh=()=>{};eu&&((ya=window==null?void 0:window.navigator)==null?void 0:ya.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function pr(e){return typeof e=="function"?e():V(e)}function Mh(e,t){function n(...r){return new Promise((o,i)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(o).catch(i)})}return n}const tu=e=>e();function $h(e=tu){const t=Ce(!0);function n(){t.value=!1}function r(){t.value=!0}const o=(...i)=>{t.value&&e(...i)};return{isActive:Oo(t),pause:n,resume:r,eventFilter:o}}function Hh(e){return e}function nu(e){return zl()?(Cf(e),!0):!1}function Fh(e){return typeof e=="function"?Q(e):Ce(e)}function Bh(e,t=!0){Rc()?Ye(e):t?e():Er(e)}function Vh(e=!1,t={}){const{truthyValue:n=!0,falsyValue:r=!1}=t,o=Ve(e),i=Ce(e);function s(a){if(arguments.length)return i.value=a,i.value;{const l=pr(n);return i.value=i.value===l?pr(r):l,i.value}}return o?s:[i,s]}var ba=Object.getOwnPropertySymbols,qh=Object.prototype.hasOwnProperty,Uh=Object.prototype.propertyIsEnumerable,zh=(e,t)=>{var n={};for(var r in e)qh.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&ba)for(var r of ba(e))t.indexOf(r)<0&&Uh.call(e,r)&&(n[r]=e[r]);return n};function Kh(e,t,n={}){const r=n,{eventFilter:o=tu}=r,i=zh(r,["eventFilter"]);return lt(e,Mh(o,t),i)}var Wh=Object.defineProperty,Jh=Object.defineProperties,Qh=Object.getOwnPropertyDescriptors,ao=Object.getOwnPropertySymbols,ru=Object.prototype.hasOwnProperty,ou=Object.prototype.propertyIsEnumerable,Ea=(e,t,n)=>t in e?Wh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Zh=(e,t)=>{for(var n in t||(t={}))ru.call(t,n)&&Ea(e,n,t[n]);if(ao)for(var n of ao(t))ou.call(t,n)&&Ea(e,n,t[n]);return e},Yh=(e,t)=>Jh(e,Qh(t)),Gh=(e,t)=>{var n={};for(var r in e)ru.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&ao)for(var r of ao(e))t.indexOf(r)<0&&ou.call(e,r)&&(n[r]=e[r]);return n};function Xh(e,t,n={}){const r=n,{eventFilter:o}=r,i=Gh(r,["eventFilter"]),{eventFilter:s,pause:a,resume:l,isActive:u}=$h(o);return{stop:Kh(e,t,Yh(Zh({},i),{eventFilter:s})),pause:a,resume:l,isActive:u}}function ev(e){var t;const n=pr(e);return(t=n==null?void 0:n.$el)!=null?t:n}const lo=eu?window:void 0;function Oa(...e){let t,n,r,o;if(Dh(e[0])||Array.isArray(e[0])?([n,r,o]=e,t=lo):[t,n,r,o]=e,!t)return Nh;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const i=[],s=()=>{i.forEach(c=>c()),i.length=0},a=(c,f,d,p)=>(c.addEventListener(f,d,p),()=>c.removeEventListener(f,d,p)),l=lt(()=>[ev(t),pr(o)],([c,f])=>{s(),c&&i.push(...n.flatMap(d=>r.map(p=>a(c,d,p,f))))},{immediate:!0,flush:"post"}),u=()=>{l(),s()};return nu(u),u}function tv(e,t=!1){const n=Ce(),r=()=>n.value=Boolean(e());return r(),Bh(r,t),n}function nv(e,t={}){const{window:n=lo}=t,r=tv(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let o;const i=Ce(!1),s=()=>{!o||("removeEventListener"in o?o.removeEventListener("change",a):o.removeListener(a))},a=()=>{!r.value||(s(),o=n.matchMedia(Fh(e).value),i.value=o.matches,"addEventListener"in o?o.addEventListener("change",a):o.addListener(a))};return _d(a),nu(()=>s()),i}const _i=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},yi="__vueuse_ssr_handlers__";_i[yi]=_i[yi]||{};const rv=_i[yi];function ov(e,t){return rv[e]||t}function iv(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}var sv=Object.defineProperty,wa=Object.getOwnPropertySymbols,av=Object.prototype.hasOwnProperty,lv=Object.prototype.propertyIsEnumerable,Sa=(e,t,n)=>t in e?sv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Pa=(e,t)=>{for(var n in t||(t={}))av.call(t,n)&&Sa(e,n,t[n]);if(wa)for(var n of wa(t))lv.call(t,n)&&Sa(e,n,t[n]);return e};const cv={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},Ca="vueuse-storage";function uv(e,t,n,r={}){var o;const{flush:i="pre",deep:s=!0,listenToStorageChanges:a=!0,writeDefaults:l=!0,mergeDefaults:u=!1,shallow:c,window:f=lo,eventFilter:d,onError:p=b=>{console.error(b)}}=r,_=(c?sc:Ce)(t);if(!n)try{n=ov("getDefaultStorage",()=>{var b;return(b=lo)==null?void 0:b.localStorage})()}catch(b){p(b)}if(!n)return _;const g=pr(t),O=iv(g),h=(o=r.serializer)!=null?o:cv[O],{pause:E,resume:w}=Xh(_,()=>S(_.value),{flush:i,deep:s,eventFilter:d});return f&&a&&(Oa(f,"storage",H),Oa(f,Ca,z)),H(),_;function S(b){try{if(b==null)n.removeItem(e);else{const M=h.write(b),N=n.getItem(e);N!==M&&(n.setItem(e,M),f&&f.dispatchEvent(new CustomEvent(Ca,{detail:{key:e,oldValue:N,newValue:M,storageArea:n}})))}}catch(M){p(M)}}function I(b){const M=b?b.newValue:n.getItem(e);if(M==null)return l&&g!==null&&n.setItem(e,h.write(g)),g;if(!b&&u){const N=h.read(M);return jh(u)?u(N,g):O==="object"&&!Array.isArray(N)?Pa(Pa({},g),N):N}else return typeof M!="string"?M:h.read(M)}function z(b){H(b.detail)}function H(b){if(!(b&&b.storageArea!==n)){if(b&&b.key==null){_.value=g;return}if(!(b&&b.key!==e)){E();try{_.value=I(b)}catch(M){p(M)}finally{b?Er(w):w()}}}}}function fv(e){return nv("(prefers-color-scheme: dark)",e)}var Ia;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(Ia||(Ia={}));var dv=Object.defineProperty,ka=Object.getOwnPropertySymbols,pv=Object.prototype.hasOwnProperty,mv=Object.prototype.propertyIsEnumerable,Aa=(e,t,n)=>t in e?dv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,hv=(e,t)=>{for(var n in t||(t={}))pv.call(t,n)&&Aa(e,n,t[n]);if(ka)for(var n of ka(t))mv.call(t,n)&&Aa(e,n,t[n]);return e};const vv={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};hv({linear:Hh},vv);const Qe=()=>Sh(),iu=Symbol(""),ns=()=>{const e=Fe(iu);if(!e)throw new Error("useDarkMode() is called without provider.");return e},gv=()=>{const e=Qe(),t=fv(),n=uv("vuepress-color-scheme",e.value.colorMode),r=Q({get(){return e.value.colorModeSwitch?n.value==="auto"?t.value:n.value==="dark":e.value.colorMode==="dark"},set(o){o===t.value?n.value="auto":n.value=o?"dark":"light"}});Bt(iu,r),_v(r)},_v=e=>{const t=(n=e.value)=>{const r=window==null?void 0:window.document.querySelector("html");r==null||r.classList.toggle("dark",n)};Ye(()=>{lt(e,t,{immediate:!0})}),Io(()=>t())},su=(...e)=>{const n=pn().resolve(...e),r=n.matched[n.matched.length-1];if(!(r!=null&&r.redirect))return n;const{redirect:o}=r,i=fe(o)?o(n):o,s=Oe(i)?{path:i}:i;return su({hash:n.hash,query:n.query,params:n.params,...s})},rs=e=>{const t=su(encodeURI(e));return{text:t.meta.title||e,link:t.name==="404"?e:t.fullPath}};let Qo=null,zn=null;const yv={wait:()=>Qo,pending:()=>{Qo=new Promise(e=>zn=e)},resolve:()=>{zn==null||zn(),Qo=null,zn=null}},au=()=>yv,lu=Symbol("sidebarItems"),os=()=>{const e=Fe(lu);if(!e)throw new Error("useSidebarItems() is called without provider.");return e},bv=()=>{const e=Qe(),t=At(),n=Q(()=>Ev(t.value,e.value));Bt(lu,n)},Ev=(e,t)=>{var o,i,s,a;const n=(i=(o=e.sidebar)!=null?o:t.sidebar)!=null?i:"auto",r=(a=(s=e.sidebarDepth)!=null?s:t.sidebarDepth)!=null?a:2;return e.home||n===!1?[]:n==="auto"?wv(r):oe(n)?cu(n,r):Yi(n)?Sv(n,r):[]},Ov=(e,t)=>({text:e.title,link:e.link,children:is(e.children,t)}),is=(e,t)=>t>0?e.map(n=>Ov(n,t-1)):[],wv=e=>{const t=Vt();return[{text:t.value.title,children:is(t.value.headers,e)}]},cu=(e,t)=>{const n=Jt(),r=Vt(),o=i=>{var a;let s;if(Oe(i)?s=rs(i):s=i,s.children)return{...s,children:s.children.map(l=>o(l))};if(s.link===n.path){const l=((a=r.value.headers[0])==null?void 0:a.level)===1?r.value.headers[0].children:r.value.headers;return{...s,children:is(l,t)}}return s};return e.map(i=>o(i))},Sv=(e,t)=>{var i;const n=Jt(),r=Hc(e,n.path),o=(i=e[r])!=null?i:[];return cu(o,t)},Pv={},Cv={class:"theme-default-content"};function Iv(e,t){const n=Tt("Content");return J(),ne("div",Cv,[ae(n)])}const kv=Re(Pv,[["render",Iv],["__file","HomeContent.vue"]]),Av={key:0,class:"features"},xv=me({__name:"HomeFeatures",setup(e){const t=At(),n=Q(()=>oe(t.value.features)?t.value.features:[]);return(r,o)=>V(n).length?(J(),ne("div",Av,[(J(!0),ne(ke,null,Ut(V(n),i=>(J(),ne("div",{key:i.title,class:"feature"},[ye("h2",null,Be(i.title),1),ye("p",null,Be(i.details),1)]))),128))])):Me("v-if",!0)}}),Tv=Re(xv,[["__file","HomeFeatures.vue"]]),Lv=["innerHTML"],Rv=["textContent"],jv=me({__name:"HomeFooter",setup(e){const t=At(),n=Q(()=>t.value.footer),r=Q(()=>t.value.footerHtml);return(o,i)=>V(n)?(J(),ne(ke,{key:0},[Me(" eslint-disable-next-line vue/no-v-html "),V(r)?(J(),ne("div",{key:0,class:"footer",innerHTML:V(n)},null,8,Lv)):(J(),ne("div",{key:1,class:"footer",textContent:Be(V(n))},null,8,Rv))],64)):Me("v-if",!0)}}),Dv=Re(jv,[["__file","HomeFooter.vue"]]),Nv=["href","rel","target","aria-label"],Mv=me({inheritAttrs:!1}),$v=me({...Mv,__name:"AutoLink",props:{item:{type:Object,required:!0}},setup(e){const t=e,n=Jt(),r=us(),{item:o}=zi(t),i=Q(()=>wr(o.value.link)),s=Q(()=>zp(o.value.link)||Kp(o.value.link)),a=Q(()=>{if(!s.value){if(o.value.target)return o.value.target;if(i.value)return"_blank"}}),l=Q(()=>a.value==="_blank"),u=Q(()=>!i.value&&!s.value&&!l.value),c=Q(()=>{if(!s.value){if(o.value.rel)return o.value.rel;if(l.value)return"noopener noreferrer"}}),f=Q(()=>o.value.ariaLabel||o.value.text),d=Q(()=>{const g=Object.keys(r.value.locales);return g.length?!g.some(O=>O===o.value.link):o.value.link!=="/"}),p=Q(()=>d.value?n.path.startsWith(o.value.link):!1),_=Q(()=>u.value?o.value.activeMatch?new RegExp(o.value.activeMatch).test(n.path):p.value:!1);return(g,O)=>{const h=Tt("RouterLink"),E=Tt("AutoLinkExternalIcon");return V(u)?(J(),He(h,pi({key:0,class:{"router-link-active":V(_)},to:V(o).link,"aria-label":V(f)},g.$attrs),{default:qe(()=>[Ie(g.$slots,"before"),Kt(" "+Be(V(o).text)+" ",1),Ie(g.$slots,"after")]),_:3},16,["class","to","aria-label"])):(J(),ne("a",pi({key:1,class:"external-link",href:V(o).link,rel:V(c),target:V(a),"aria-label":V(f)},g.$attrs),[Ie(g.$slots,"before"),Kt(" "+Be(V(o).text)+" ",1),V(l)?(J(),He(E,{key:0})):Me("v-if",!0),Ie(g.$slots,"after")],16,Nv))}}}),It=Re($v,[["__file","AutoLink.vue"]]),Hv={class:"hero"},Fv={key:0,id:"main-title"},Bv={key:1,class:"description"},Vv={key:2,class:"actions"},qv=me({__name:"HomeHero",setup(e){const t=At(),n=fs(),r=ns(),o=Q(()=>r.value&&t.value.heroImageDark!==void 0?t.value.heroImageDark:t.value.heroImage),i=Q(()=>t.value.heroAlt||a.value||"hero"),s=Q(()=>t.value.heroHeight||280),a=Q(()=>t.value.heroText===null?null:t.value.heroText||n.value.title||"Hello"),l=Q(()=>t.value.tagline===null?null:t.value.tagline||n.value.description||"Welcome to your VuePress site"),u=Q(()=>oe(t.value.actions)?t.value.actions.map(({text:f,link:d,type:p="primary"})=>({text:f,link:d,type:p})):[]),c=()=>{if(!o.value)return null;const f=he("img",{src:jo(o.value),alt:i.value,height:s.value});return t.value.heroImageDark===void 0?f:he(ds,()=>f)};return(f,d)=>(J(),ne("header",Hv,[ae(c),V(a)?(J(),ne("h1",Fv,Be(V(a)),1)):Me("v-if",!0),V(l)?(J(),ne("p",Bv,Be(V(l)),1)):Me("v-if",!0),V(u).length?(J(),ne("p",Vv,[(J(!0),ne(ke,null,Ut(V(u),p=>(J(),He(It,{key:p.text,class:et(["action-button",[p.type]]),item:p},null,8,["class","item"]))),128))])):Me("v-if",!0)]))}}),Uv=Re(qv,[["__file","HomeHero.vue"]]),zv={class:"home"},Kv=me({__name:"Home",setup(e){return(t,n)=>(J(),ne("main",zv,[ae(Uv),ae(Tv),ae(kv),ae(Dv)]))}}),Wv=Re(Kv,[["__file","Home.vue"]]),Jv=me({__name:"NavbarBrand",setup(e){const t=Fn(),n=fs(),r=Qe(),o=ns(),i=Q(()=>r.value.home||t.value),s=Q(()=>n.value.title),a=Q(()=>o.value&&r.value.logoDark!==void 0?r.value.logoDark:r.value.logo),l=()=>{if(!a.value)return null;const u=he("img",{class:"logo",src:jo(a.value),alt:s.value});return r.value.logoDark===void 0?u:he(ds,()=>u)};return(u,c)=>{const f=Tt("RouterLink");return J(),He(f,{to:V(i)},{default:qe(()=>[ae(l),V(s)?(J(),ne("span",{key:0,class:et(["site-name",{"can-hide":V(a)}])},Be(V(s)),3)):Me("v-if",!0)]),_:1},8,["to"])}}}),Qv=Re(Jv,[["__file","NavbarBrand.vue"]]),Zv=me({__name:"DropdownTransition",setup(e){const t=r=>{r.style.height=r.scrollHeight+"px"},n=r=>{r.style.height=""};return(r,o)=>(J(),He($n,{name:"dropdown",onEnter:t,onAfterEnter:n,onBeforeLeave:t},{default:qe(()=>[Ie(r.$slots,"default")]),_:3}))}}),uu=Re(Zv,[["__file","DropdownTransition.vue"]]),Yv=["aria-label"],Gv={class:"title"},Xv=ye("span",{class:"arrow down"},null,-1),eg=["aria-label"],tg={class:"title"},ng={class:"navbar-dropdown"},rg={class:"navbar-dropdown-subtitle"},og={key:1},ig={class:"navbar-dropdown-subitem-wrapper"},sg=me({__name:"NavbarDropdown",props:{item:{type:Object,required:!0}},setup(e){const t=e,{item:n}=zi(t),r=Q(()=>n.value.ariaLabel||n.value.text),o=Ce(!1),i=Jt();lt(()=>i.path,()=>{o.value=!1});const s=l=>{l.detail===0?o.value=!o.value:o.value=!1},a=(l,u)=>u[u.length-1]===l;return(l,u)=>(J(),ne("div",{class:et(["navbar-dropdown-wrapper",{open:o.value}])},[ye("button",{class:"navbar-dropdown-title",type:"button","aria-label":V(r),onClick:s},[ye("span",Gv,Be(V(n).text),1),Xv],8,Yv),ye("button",{class:"navbar-dropdown-title-mobile",type:"button","aria-label":V(r),onClick:u[0]||(u[0]=c=>o.value=!o.value)},[ye("span",tg,Be(V(n).text),1),ye("span",{class:et(["arrow",o.value?"down":"right"])},null,2)],8,eg),ae(uu,null,{default:qe(()=>[to(ye("ul",ng,[(J(!0),ne(ke,null,Ut(V(n).children,c=>(J(),ne("li",{key:c.text,class:"navbar-dropdown-item"},[c.children?(J(),ne(ke,{key:0},[ye("h4",rg,[c.link?(J(),He(It,{key:0,item:c,onFocusout:f=>a(c,V(n).children)&&c.children.length===0&&(o.value=!1)},null,8,["item","onFocusout"])):(J(),ne("span",og,Be(c.text),1))]),ye("ul",ig,[(J(!0),ne(ke,null,Ut(c.children,f=>(J(),ne("li",{key:f.link,class:"navbar-dropdown-subitem"},[ae(It,{item:f,onFocusout:d=>a(f,c.children)&&a(c,V(n).children)&&(o.value=!1)},null,8,["item","onFocusout"])]))),128))])],64)):(J(),He(It,{key:1,item:c,onFocusout:f=>a(c,V(n).children)&&(o.value=!1)},null,8,["item","onFocusout"]))]))),128))],512),[[io,o.value]])]),_:1})],2))}}),ag=Re(sg,[["__file","NavbarDropdown.vue"]]),xa=e=>decodeURI(e).replace(/#.*$/,"").replace(/(index)?\.(md|html)$/,""),lg=(e,t)=>{if(t.hash===e)return!0;const n=xa(t.path),r=xa(e);return n===r},fu=(e,t)=>e.link&&lg(e.link,t)?!0:e.children?e.children.some(n=>fu(n,t)):!1,du=e=>!wr(e)||/github\.com/.test(e)?"GitHub":/bitbucket\.org/.test(e)?"Bitbucket":/gitlab\.com/.test(e)?"GitLab":/gitee\.com/.test(e)?"Gitee":null,cg={GitHub:":repo/edit/:branch/:path",GitLab:":repo/-/edit/:branch/:path",Gitee:":repo/edit/:branch/:path",Bitbucket:":repo/src/:branch/:path?mode=edit&spa=0&at=:branch&fileviewer=file-view-default"},ug=({docsRepo:e,editLinkPattern:t})=>{if(t)return t;const n=du(e);return n!==null?cg[n]:null},fg=({docsRepo:e,docsBranch:t,docsDir:n,filePathRelative:r,editLinkPattern:o})=>{if(!r)return null;const i=ug({docsRepo:e,editLinkPattern:o});return i?i.replace(/:repo/,wr(e)?e:`https://github.com/${e}`).replace(/:branch/,t).replace(/:path/,$c(`${Mc(n)}/${r}`)):null},dg={key:0,class:"navbar-items"},pg=me({__name:"NavbarItems",setup(e){const t=()=>{const c=pn(),f=Fn(),d=fs(),p=Qe();return Q(()=>{var w,S,I;const _=Object.keys(d.value.locales);if(_.length<2)return[];const g=c.currentRoute.value.path,O=c.currentRoute.value.fullPath,h=c.currentRoute.value.hash;return[{text:(w=p.value.selectLanguageText)!=null?w:"unknown language",ariaLabel:(I=(S=p.value.selectLanguageAriaLabel)!=null?S:p.value.selectLanguageText)!=null?I:"unknown language",children:_.map(z=>{var k,R,$,ie,W,re;const H=(R=(k=d.value.locales)==null?void 0:k[z])!=null?R:{},b=(ie=($=p.value.locales)==null?void 0:$[z])!=null?ie:{},M=`${H.lang}`,N=(W=b.selectLanguageName)!=null?W:M;let K;if(M===d.value.lang)K=O;else{const se=g.replace(f.value,z);c.getRoutes().some(Le=>Le.path===se)?K=`${se}${h}`:K=(re=b.home)!=null?re:z}return{text:N,link:K}})}]})},n=()=>{const c=Qe(),f=Q(()=>c.value.repo),d=Q(()=>f.value?du(f.value):null),p=Q(()=>f.value&&!wr(f.value)?`https://github.com/${f.value}`:f.value),_=Q(()=>p.value?c.value.repoLabel?c.value.repoLabel:d.value===null?"Source":d.value:null);return Q(()=>!p.value||!_.value?[]:[{text:_.value,link:p.value}])},r=c=>Oe(c)?rs(c):c.children?{...c,children:c.children.map(r)}:c,o=()=>{const c=Qe();return Q(()=>(c.value.navbar||[]).map(r))},i=Ce(!1),s=o(),a=t(),l=n(),u=Q(()=>[...s.value,...a.value,...l.value]);return Ye(()=>{const f=()=>{window.innerWidth<719?i.value=!0:i.value=!1};f(),window.addEventListener("resize",f,!1),window.addEventListener("orientationchange",f,!1)}),(c,f)=>V(u).length?(J(),ne("nav",dg,[(J(!0),ne(ke,null,Ut(V(u),d=>(J(),ne("div",{key:d.text,class:"navbar-item"},[d.children?(J(),He(ag,{key:0,item:d,class:et(i.value?"mobile":"")},null,8,["item","class"])):(J(),He(It,{key:1,item:d},null,8,["item"]))]))),128))])):Me("v-if",!0)}}),pu=Re(pg,[["__file","NavbarItems.vue"]]),mg=["title"],hg={class:"icon",focusable:"false",viewBox:"0 0 32 32"},vg=tp('<path d="M16 12.005a4 4 0 1 1-4 4a4.005 4.005 0 0 1 4-4m0-2a6 6 0 1 0 6 6a6 6 0 0 0-6-6z" fill="currentColor"></path><path d="M5.394 6.813l1.414-1.415l3.506 3.506L8.9 10.318z" fill="currentColor"></path><path d="M2 15.005h5v2H2z" fill="currentColor"></path><path d="M5.394 25.197L8.9 21.691l1.414 1.415l-3.506 3.505z" fill="currentColor"></path><path d="M15 25.005h2v5h-2z" fill="currentColor"></path><path d="M21.687 23.106l1.414-1.415l3.506 3.506l-1.414 1.414z" fill="currentColor"></path><path d="M25 15.005h5v2h-5z" fill="currentColor"></path><path d="M21.687 8.904l3.506-3.506l1.414 1.415l-3.506 3.505z" fill="currentColor"></path><path d="M15 2.005h2v5h-2z" fill="currentColor"></path>',9),gg=[vg],_g={class:"icon",focusable:"false",viewBox:"0 0 32 32"},yg=ye("path",{d:"M13.502 5.414a15.075 15.075 0 0 0 11.594 18.194a11.113 11.113 0 0 1-7.975 3.39c-.138 0-.278.005-.418 0a11.094 11.094 0 0 1-3.2-21.584M14.98 3a1.002 1.002 0 0 0-.175.016a13.096 13.096 0 0 0 1.825 25.981c.164.006.328 0 .49 0a13.072 13.072 0 0 0 10.703-5.555a1.01 1.01 0 0 0-.783-1.565A13.08 13.08 0 0 1 15.89 4.38A1.015 1.015 0 0 0 14.98 3z",fill:"currentColor"},null,-1),bg=[yg],Eg=me({__name:"ToggleColorModeButton",setup(e){const t=Qe(),n=ns(),r=()=>{n.value=!n.value};return(o,i)=>(J(),ne("button",{class:"toggle-color-mode-button",title:V(t).toggleColorMode,onClick:r},[to((J(),ne("svg",hg,gg,512)),[[io,!V(n)]]),to((J(),ne("svg",_g,bg,512)),[[io,V(n)]])],8,mg))}}),Og=Re(Eg,[["__file","ToggleColorModeButton.vue"]]),wg=["title"],Sg=ye("div",{class:"icon","aria-hidden":"true"},[ye("span"),ye("span"),ye("span")],-1),Pg=[Sg],Cg=me({__name:"ToggleSidebarButton",emits:["toggle"],setup(e){const t=Qe();return(n,r)=>(J(),ne("div",{class:"toggle-sidebar-button",title:V(t).toggleSidebar,"aria-expanded":"false",role:"button",tabindex:"0",onClick:r[0]||(r[0]=o=>n.$emit("toggle"))},Pg,8,wg))}}),Ig=Re(Cg,[["__file","ToggleSidebarButton.vue"]]),kg=me({__name:"Navbar",emits:["toggle-sidebar"],setup(e){const t=Qe(),n=Ce(null),r=Ce(null),o=Ce(0),i=Q(()=>o.value?{maxWidth:o.value+"px"}:{});Ye(()=>{const l=s(n.value,"paddingLeft")+s(n.value,"paddingRight"),u=()=>{var c;window.innerWidth<719?o.value=0:o.value=n.value.offsetWidth-l-(((c=r.value)==null?void 0:c.offsetWidth)||0)};u(),window.addEventListener("resize",u,!1),window.addEventListener("orientationchange",u,!1)});function s(a,l){var f,d,p;const u=(p=(d=(f=a==null?void 0:a.ownerDocument)==null?void 0:f.defaultView)==null?void 0:d.getComputedStyle(a,null))==null?void 0:p[l],c=Number.parseInt(u,10);return Number.isNaN(c)?0:c}return(a,l)=>{const u=Tt("NavbarSearch");return J(),ne("header",{ref_key:"navbar",ref:n,class:"navbar"},[ae(Ig,{onToggle:l[0]||(l[0]=c=>a.$emit("toggle-sidebar"))}),ye("span",{ref_key:"navbarBrand",ref:r},[ae(Qv)],512),ye("div",{class:"navbar-items-wrapper",style:_r(V(i))},[Ie(a.$slots,"before"),ae(pu,{class:"can-hide"}),Ie(a.$slots,"after"),V(t).colorModeSwitch?(J(),He(Og,{key:0})):Me("v-if",!0),ae(u)],4)],512)}}}),Ag=Re(kg,[["__file","Navbar.vue"]]),xg={class:"page-meta"},Tg={key:0,class:"meta-item edit-link"},Lg={key:1,class:"meta-item last-updated"},Rg={class:"meta-item-label"},jg={class:"meta-item-info"},Dg={key:2,class:"meta-item contributors"},Ng={class:"meta-item-label"},Mg={class:"meta-item-info"},$g=["title"],Hg=me({__name:"PageMeta",setup(e){const t=()=>{const l=Qe(),u=Vt(),c=At();return Q(()=>{var E,w,S;if(!((w=(E=c.value.editLink)!=null?E:l.value.editLink)!=null?w:!0))return null;const{repo:d,docsRepo:p=d,docsBranch:_="main",docsDir:g="",editLinkText:O}=l.value;if(!p)return null;const h=fg({docsRepo:p,docsBranch:_,docsDir:g,filePathRelative:u.value.filePathRelative,editLinkPattern:(S=c.value.editLinkPattern)!=null?S:l.value.editLinkPattern});return h?{text:O!=null?O:"Edit this page",link:h}:null})},n=()=>{const l=Qe(),u=Vt(),c=At();return Q(()=>{var p,_,g,O;return!((_=(p=c.value.lastUpdated)!=null?p:l.value.lastUpdated)!=null?_:!0)||!((g=u.value.git)!=null&&g.updatedTime)?null:new Date((O=u.value.git)==null?void 0:O.updatedTime).toLocaleString()})},r=()=>{const l=Qe(),u=Vt(),c=At();return Q(()=>{var d,p,_,g;return((p=(d=c.value.contributors)!=null?d:l.value.contributors)!=null?p:!0)&&(g=(_=u.value.git)==null?void 0:_.contributors)!=null?g:null})},o=Qe(),i=t(),s=n(),a=r();return(l,u)=>{const c=Tt("ClientOnly");return J(),ne("footer",xg,[V(i)?(J(),ne("div",Tg,[ae(It,{class:"meta-item-label",item:V(i)},null,8,["item"])])):Me("v-if",!0),V(s)?(J(),ne("div",Lg,[ye("span",Rg,Be(V(o).lastUpdatedText)+": ",1),ae(c,null,{default:qe(()=>[ye("span",jg,Be(V(s)),1)]),_:1})])):Me("v-if",!0),V(a)&&V(a).length?(J(),ne("div",Dg,[ye("span",Ng,Be(V(o).contributorsText)+": ",1),ye("span",Mg,[(J(!0),ne(ke,null,Ut(V(a),(f,d)=>(J(),ne(ke,{key:d},[ye("span",{class:"contributor",title:`email: ${f.email}`},Be(f.name),9,$g),d!==V(a).length-1?(J(),ne(ke,{key:0},[Kt(", ")],64)):Me("v-if",!0)],64))),128))])])):Me("v-if",!0)])}}}),Fg=Re(Hg,[["__file","PageMeta.vue"]]),Bg={key:0,class:"page-nav"},Vg={class:"inner"},qg={key:0,class:"prev"},Ug={key:1,class:"next"},zg=me({__name:"PageNav",setup(e){const t=l=>l===!1?null:Oe(l)?rs(l):Yi(l)?l:!1,n=(l,u,c)=>{const f=l.findIndex(d=>d.link===u);if(f!==-1){const d=l[f+c];return d!=null&&d.link?d:null}for(const d of l)if(d.children){const p=n(d.children,u,c);if(p)return p}return null},r=At(),o=os(),i=Jt(),s=Q(()=>{const l=t(r.value.prev);return l!==!1?l:n(o.value,i.path,-1)}),a=Q(()=>{const l=t(r.value.next);return l!==!1?l:n(o.value,i.path,1)});return(l,u)=>V(s)||V(a)?(J(),ne("nav",Bg,[ye("p",Vg,[V(s)?(J(),ne("span",qg,[ae(It,{item:V(s)},null,8,["item"])])):Me("v-if",!0),V(a)?(J(),ne("span",Ug,[ae(It,{item:V(a)},null,8,["item"])])):Me("v-if",!0)])])):Me("v-if",!0)}}),Kg=Re(zg,[["__file","PageNav.vue"]]),Wg={class:"page"},Jg={class:"theme-default-content"},Qg=me({__name:"Page",setup(e){return(t,n)=>{const r=Tt("Content");return J(),ne("main",Wg,[Ie(t.$slots,"top"),ye("div",Jg,[Ie(t.$slots,"content-top"),ae(r),Ie(t.$slots,"content-bottom")]),ae(Fg),ae(Kg),Ie(t.$slots,"bottom")])}}}),Zg=Re(Qg,[["__file","Page.vue"]]),Yg=["onKeydown"],Gg={class:"sidebar-item-children"},Xg=me({__name:"SidebarItem",props:{item:{type:Object,required:!0},depth:{type:Number,required:!1,default:0}},setup(e){const t=e,{item:n,depth:r}=zi(t),o=Jt(),i=pn(),s=Q(()=>fu(n.value,o)),a=Q(()=>({"sidebar-item":!0,"sidebar-heading":r.value===0,active:s.value,collapsible:n.value.collapsible})),l=Q(()=>n.value.collapsible?s.value:!0),[u,c]=Vh(l.value),f=p=>{n.value.collapsible&&(p.preventDefault(),c())},d=i.afterEach(p=>{Er(()=>{u.value=l.value})});return Co(()=>{d()}),(p,_)=>{var O;const g=Tt("SidebarItem",!0);return J(),ne("li",null,[V(n).link?(J(),He(It,{key:0,class:et(V(a)),item:V(n)},null,8,["class","item"])):(J(),ne("p",{key:1,tabindex:"0",class:et(V(a)),onClick:f,onKeydown:Mp(f,["enter"])},[Kt(Be(V(n).text)+" ",1),V(n).collapsible?(J(),ne("span",{key:0,class:et(["arrow",V(u)?"down":"right"])},null,2)):Me("v-if",!0)],42,Yg)),(O=V(n).children)!=null&&O.length?(J(),He(uu,{key:2},{default:qe(()=>[to(ye("ul",Gg,[(J(!0),ne(ke,null,Ut(V(n).children,h=>(J(),He(g,{key:`${V(r)}${h.text}${h.link}`,item:h,depth:V(r)+1},null,8,["item","depth"]))),128))],512),[[io,V(u)]])]),_:1})):Me("v-if",!0)])}}}),e_=Re(Xg,[["__file","SidebarItem.vue"]]),t_={key:0,class:"sidebar-items"},n_=me({__name:"SidebarItems",setup(e){const t=Jt(),n=os();return Ye(()=>{lt(()=>t.hash,r=>{const o=document.querySelector(".sidebar");if(!o)return;const i=document.querySelector(`.sidebar a.sidebar-item[href="${t.path}${r}"]`);if(!i)return;const{top:s,height:a}=o.getBoundingClientRect(),{top:l,height:u}=i.getBoundingClientRect();l<s?i.scrollIntoView(!0):l+u>s+a&&i.scrollIntoView(!1)})}),(r,o)=>V(n).length?(J(),ne("ul",t_,[(J(!0),ne(ke,null,Ut(V(n),i=>(J(),He(e_,{key:`${i.text}${i.link}`,item:i},null,8,["item"]))),128))])):Me("v-if",!0)}}),r_=Re(n_,[["__file","SidebarItems.vue"]]),o_={class:"sidebar"},i_=me({__name:"Sidebar",setup(e){return(t,n)=>(J(),ne("aside",o_,[ae(pu),Ie(t.$slots,"top"),ae(r_),Ie(t.$slots,"bottom")]))}}),s_=Re(i_,[["__file","Sidebar.vue"]]),a_=me({__name:"Layout",setup(e){const t=Vt(),n=At(),r=Qe(),o=Q(()=>n.value.navbar!==!1&&r.value.navbar!==!1),i=os(),s=Ce(!1),a=O=>{s.value=typeof O=="boolean"?O:!s.value},l={x:0,y:0},u=O=>{l.x=O.changedTouches[0].clientX,l.y=O.changedTouches[0].clientY},c=O=>{const h=O.changedTouches[0].clientX-l.x,E=O.changedTouches[0].clientY-l.y;Math.abs(h)>Math.abs(E)&&Math.abs(h)>40&&(h>0&&l.x<=80?a(!0):a(!1))},f=Q(()=>[{"no-navbar":!o.value,"no-sidebar":!i.value.length,"sidebar-open":s.value},n.value.pageClass]);let d;Ye(()=>{d=pn().afterEach(()=>{a(!1)})}),Io(()=>{d()});const p=au(),_=p.resolve,g=p.pending;return(O,h)=>(J(),ne("div",{class:et(["theme-container",V(f)]),onTouchstart:u,onTouchend:c},[Ie(O.$slots,"navbar",{},()=>[V(o)?(J(),He(Ag,{key:0,onToggleSidebar:a},{before:qe(()=>[Ie(O.$slots,"navbar-before")]),after:qe(()=>[Ie(O.$slots,"navbar-after")]),_:3})):Me("v-if",!0)]),ye("div",{class:"sidebar-mask",onClick:h[0]||(h[0]=E=>a(!1))}),Ie(O.$slots,"sidebar",{},()=>[ae(s_,null,{top:qe(()=>[Ie(O.$slots,"sidebar-top")]),bottom:qe(()=>[Ie(O.$slots,"sidebar-bottom")]),_:3})]),Ie(O.$slots,"page",{},()=>[V(n).home?(J(),He(Wv,{key:0})):(J(),He($n,{key:1,name:"fade-slide-y",mode:"out-in",onBeforeEnter:V(_),onBeforeLeave:V(g)},{default:qe(()=>[(J(),He(Zg,{key:V(t).path},{top:qe(()=>[Ie(O.$slots,"page-top")]),"content-top":qe(()=>[Ie(O.$slots,"page-content-top")]),"content-bottom":qe(()=>[Ie(O.$slots,"page-content-bottom")]),bottom:qe(()=>[Ie(O.$slots,"page-bottom")]),_:3}))]),_:3},8,["onBeforeEnter","onBeforeLeave"]))])],34))}}),l_=Re(a_,[["__file","Layout.vue"]]),c_={class:"theme-container"},u_={class:"page"},f_={class:"theme-default-content"},d_=ye("h1",null,"404",-1),p_=me({__name:"NotFound",setup(e){var a,l,u;const t=Fn(),n=Qe(),r=(a=n.value.notFound)!=null?a:["Not Found"],o=()=>r[Math.floor(Math.random()*r.length)],i=(l=n.value.home)!=null?l:t.value,s=(u=n.value.backToHome)!=null?u:"Back to home";return(c,f)=>{const d=Tt("RouterLink");return J(),ne("div",c_,[ye("main",u_,[ye("div",f_,[d_,ye("blockquote",null,Be(o()),1),ae(d,{to:V(i)},{default:qe(()=>[Kt(Be(V(s)),1)]),_:1},8,["to"])])])])}}}),m_=Re(p_,[["__file","NotFound.vue"]]);const h_=Ot({enhance({app:e,router:t}){e.component("Badge",kh),e.component("CodeGroup",Ah),e.component("CodeGroupItem",Rh),e.component("AutoLinkExternalIcon",()=>{const r=e.component("ExternalLinkIcon");return r?he(r):null}),e.component("NavbarSearch",()=>{const r=e.component("Docsearch")||e.component("SearchBox");return r?he(r):null});const n=t.options.scrollBehavior;t.options.scrollBehavior=async(...r)=>(await au().wait(),n(...r))},setup(){gv(),bv()},layouts:{Layout:l_,NotFound:m_}});/*! @docsearch/js 3.3.3 | MIT License | © Algolia, Inc. and contributors | https://docsearch.algolia.com */function Ta(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Ee(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ta(Object(n),!0).forEach(function(r){v_(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ta(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function mr(e){return mr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mr(e)}function v_(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bi(){return bi=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},bi.apply(this,arguments)}function g_(e,t){if(e==null)return{};var n,r,o=function(s,a){if(s==null)return{};var l,u,c={},f=Object.keys(s);for(u=0;u<f.length;u++)l=f[u],a.indexOf(l)>=0||(c[l]=s[l]);return c}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function co(e,t){return function(n){if(Array.isArray(n))return n}(e)||function(n,r){var o=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(o!=null){var i,s,a=[],l=!0,u=!1;try{for(o=o.call(n);!(l=(i=o.next()).done)&&(a.push(i.value),!r||a.length!==r);l=!0);}catch(c){u=!0,s=c}finally{try{l||o.return==null||o.return()}finally{if(u)throw s}}return a}}(e,t)||mu(e,t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function uo(e){return function(t){if(Array.isArray(t))return Ei(t)}(e)||function(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}(e)||mu(e)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function mu(e,t){if(e){if(typeof e=="string")return Ei(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ei(e,t):void 0}}function Ei(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var te,or,hu,La,vu,fo={},ss=[],__=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function Ct(e,t){for(var n in t)e[n]=t[n];return e}function gu(e){var t=e.parentNode;t&&t.removeChild(e)}function yt(e,t,n){var r,o,i,s=arguments,a={};for(i in t)i=="key"?r=t[i]:i=="ref"?o=t[i]:a[i]=t[i];if(arguments.length>3)for(n=[n],i=3;i<arguments.length;i++)n.push(s[i]);if(n!=null&&(a.children=n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)a[i]===void 0&&(a[i]=e.defaultProps[i]);return ir(e,a,r,o,null)}function ir(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:o==null?++te.__v:o};return te.vnode!=null&&te.vnode(i),i}function Wt(e){return e.children}function bt(e,t){this.props=e,this.context=t}function hr(e,t){if(t==null)return e.__?hr(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?hr(e):null}function _u(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return _u(e)}}function Oi(e){(!e.__d&&(e.__d=!0)&&or.push(e)&&!po.__r++||La!==te.debounceRendering)&&((La=te.debounceRendering)||hu)(po)}function po(){for(var e;po.__r=or.length;)e=or.sort(function(t,n){return t.__v.__b-n.__v.__b}),or=[],e.some(function(t){var n,r,o,i,s,a;t.__d&&(s=(i=(n=t).__v).__e,(a=n.__P)&&(r=[],(o=Ct({},i)).__v=i.__v+1,as(a,i,o,n.__n,a.ownerSVGElement!==void 0,i.__h!=null?[s]:null,r,s==null?hr(i):s,i.__h),Ou(r,i),i.__e!=s&&_u(i)))})}function yu(e,t,n,r,o,i,s,a,l,u){var c,f,d,p,_,g,O,h=r&&r.__k||ss,E=h.length;for(n.__k=[],c=0;c<t.length;c++)if((p=n.__k[c]=(p=t[c])==null||typeof p=="boolean"?null:typeof p=="string"||typeof p=="number"?ir(null,p,null,null,p):Array.isArray(p)?ir(Wt,{children:p},null,null,null):p.__b>0?ir(p.type,p.props,p.key,null,p.__v):p)!=null){if(p.__=n,p.__b=n.__b+1,(d=h[c])===null||d&&p.key==d.key&&p.type===d.type)h[c]=void 0;else for(f=0;f<E;f++){if((d=h[f])&&p.key==d.key&&p.type===d.type){h[f]=void 0;break}d=null}as(e,p,d=d||fo,o,i,s,a,l,u),_=p.__e,(f=p.ref)&&d.ref!=f&&(O||(O=[]),d.ref&&O.push(d.ref,null,p),O.push(f,p.__c||_,p)),_!=null?(g==null&&(g=_),typeof p.type=="function"&&p.__k!=null&&p.__k===d.__k?p.__d=l=bu(p,l,e):l=Eu(e,p,d,h,_,l),u||n.type!=="option"?typeof n.type=="function"&&(n.__d=l):e.value=""):l&&d.__e==l&&l.parentNode!=e&&(l=hr(d))}for(n.__e=g,c=E;c--;)h[c]!=null&&(typeof n.type=="function"&&h[c].__e!=null&&h[c].__e==n.__d&&(n.__d=hr(r,c+1)),Su(h[c],h[c]));if(O)for(c=0;c<O.length;c++)wu(O[c],O[++c],O[++c])}function bu(e,t,n){var r,o;for(r=0;r<e.__k.length;r++)(o=e.__k[r])&&(o.__=e,t=typeof o.type=="function"?bu(o,t,n):Eu(n,o,o,e.__k,o.__e,t));return t}function kt(e,t){return t=t||[],e==null||typeof e=="boolean"||(Array.isArray(e)?e.some(function(n){kt(n,t)}):t.push(e)),t}function Eu(e,t,n,r,o,i){var s,a,l;if(t.__d!==void 0)s=t.__d,t.__d=void 0;else if(n==null||o!=i||o.parentNode==null)e:if(i==null||i.parentNode!==e)e.appendChild(o),s=null;else{for(a=i,l=0;(a=a.nextSibling)&&l<r.length;l+=2)if(a==o)break e;e.insertBefore(o,i),s=i}return s!==void 0?s:o.nextSibling}function Ra(e,t,n){t[0]==="-"?e.setProperty(t,n):e[t]=n==null?"":typeof n!="number"||__.test(t)?n:n+"px"}function Dr(e,t,n,r,o){var i;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||Ra(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Ra(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")i=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r||e.addEventListener(t,i?Da:ja,i):e.removeEventListener(t,i?Da:ja,i);else if(t!=="dangerouslySetInnerHTML"){if(o)t=t.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if(t!=="href"&&t!=="list"&&t!=="form"&&t!=="download"&&t in e)try{e[t]=n==null?"":n;break e}catch{}typeof n=="function"||(n!=null&&(n!==!1||t[0]==="a"&&t[1]==="r")?e.setAttribute(t,n):e.removeAttribute(t))}}function ja(e){this.l[e.type+!1](te.event?te.event(e):e)}function Da(e){this.l[e.type+!0](te.event?te.event(e):e)}function as(e,t,n,r,o,i,s,a,l){var u,c,f,d,p,_,g,O,h,E,w,S=t.type;if(t.constructor!==void 0)return null;n.__h!=null&&(l=n.__h,a=t.__e=n.__e,t.__h=null,i=[a]),(u=te.__b)&&u(t);try{e:if(typeof S=="function"){if(O=t.props,h=(u=S.contextType)&&r[u.__c],E=u?h?h.props.value:u.__:r,n.__c?g=(c=t.__c=n.__c).__=c.__E:("prototype"in S&&S.prototype.render?t.__c=c=new S(O,E):(t.__c=c=new bt(O,E),c.constructor=S,c.render=b_),h&&h.sub(c),c.props=O,c.state||(c.state={}),c.context=E,c.__n=r,f=c.__d=!0,c.__h=[]),c.__s==null&&(c.__s=c.state),S.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=Ct({},c.__s)),Ct(c.__s,S.getDerivedStateFromProps(O,c.__s))),d=c.props,p=c.state,f)S.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(S.getDerivedStateFromProps==null&&O!==d&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(O,E),!c.__e&&c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(O,c.__s,E)===!1||t.__v===n.__v){c.props=O,c.state=c.__s,t.__v!==n.__v&&(c.__d=!1),c.__v=t,t.__e=n.__e,t.__k=n.__k,c.__h.length&&s.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(O,c.__s,E),c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(d,p,_)})}c.context=E,c.props=O,c.state=c.__s,(u=te.__r)&&u(t),c.__d=!1,c.__v=t,c.__P=e,u=c.render(c.props,c.state,c.context),c.state=c.__s,c.getChildContext!=null&&(r=Ct(Ct({},r),c.getChildContext())),f||c.getSnapshotBeforeUpdate==null||(_=c.getSnapshotBeforeUpdate(d,p)),w=u!=null&&u.type===Wt&&u.key==null?u.props.children:u,yu(e,Array.isArray(w)?w:[w],t,n,r,o,i,s,a,l),c.base=t.__e,t.__h=null,c.__h.length&&s.push(c),g&&(c.__E=c.__=null),c.__e=!1}else i==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=y_(n.__e,t,n,r,o,i,s,l);(u=te.diffed)&&u(t)}catch(I){t.__v=null,(l||i!=null)&&(t.__e=a,t.__h=!!l,i[i.indexOf(a)]=null),te.__e(I,t,n)}}function Ou(e,t){te.__c&&te.__c(t,e),e.some(function(n){try{e=n.__h,n.__h=[],e.some(function(r){r.call(n)})}catch(r){te.__e(r,n.__v)}})}function y_(e,t,n,r,o,i,s,a){var l,u,c,f,d=n.props,p=t.props,_=t.type,g=0;if(_==="svg"&&(o=!0),i!=null){for(;g<i.length;g++)if((l=i[g])&&(l===e||(_?l.localName==_:l.nodeType==3))){e=l,i[g]=null;break}}if(e==null){if(_===null)return document.createTextNode(p);e=o?document.createElementNS("http://www.w3.org/2000/svg",_):document.createElement(_,p.is&&p),i=null,a=!1}if(_===null)d===p||a&&e.data===p||(e.data=p);else{if(i=i&&ss.slice.call(e.childNodes),u=(d=n.props||fo).dangerouslySetInnerHTML,c=p.dangerouslySetInnerHTML,!a){if(i!=null)for(d={},f=0;f<e.attributes.length;f++)d[e.attributes[f].name]=e.attributes[f].value;(c||u)&&(c&&(u&&c.__html==u.__html||c.__html===e.innerHTML)||(e.innerHTML=c&&c.__html||""))}if(function(O,h,E,w,S){var I;for(I in E)I==="children"||I==="key"||I in h||Dr(O,I,null,E[I],w);for(I in h)S&&typeof h[I]!="function"||I==="children"||I==="key"||I==="value"||I==="checked"||E[I]===h[I]||Dr(O,I,h[I],E[I],w)}(e,p,d,o,a),c)t.__k=[];else if(g=t.props.children,yu(e,Array.isArray(g)?g:[g],t,n,r,o&&_!=="foreignObject",i,s,e.firstChild,a),i!=null)for(g=i.length;g--;)i[g]!=null&&gu(i[g]);a||("value"in p&&(g=p.value)!==void 0&&(g!==e.value||_==="progress"&&!g)&&Dr(e,"value",g,d.value,!1),"checked"in p&&(g=p.checked)!==void 0&&g!==e.checked&&Dr(e,"checked",g,d.checked,!1))}return e}function wu(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(r){te.__e(r,n)}}function Su(e,t,n){var r,o,i;if(te.unmount&&te.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||wu(r,null,t)),n||typeof e.type=="function"||(n=(o=e.__e)!=null),e.__e=e.__d=void 0,(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(s){te.__e(s,t)}r.base=r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&Su(r[i],t,n);o!=null&&gu(o)}function b_(e,t,n){return this.constructor(e,n)}function vr(e,t,n){var r,o,i;te.__&&te.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,i=[],as(t,e=(!r&&n||t).__k=yt(Wt,null,[e]),o||fo,fo,t.ownerSVGElement!==void 0,!r&&n?[n]:o?null:t.firstChild?ss.slice.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r),Ou(i,e)}function Pu(e,t){vr(e,t,Pu)}function E_(e,t,n){var r,o,i,s=arguments,a=Ct({},e.props);for(i in t)i=="key"?r=t[i]:i=="ref"?o=t[i]:a[i]=t[i];if(arguments.length>3)for(n=[n],i=3;i<arguments.length;i++)n.push(s[i]);return n!=null&&(a.children=n),ir(e.type,a,r||e.key,o||e.ref,null)}te={__e:function(e,t){for(var n,r,o;t=t.__;)if((n=t.__c)&&!n.__)try{if((r=n.constructor)&&r.getDerivedStateFromError!=null&&(n.setState(r.getDerivedStateFromError(e)),o=n.__d),n.componentDidCatch!=null&&(n.componentDidCatch(e),o=n.__d),o)return n.__E=n}catch(i){e=i}throw e},__v:0},bt.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Ct({},this.state),typeof e=="function"&&(e=e(Ct({},n),this.props)),e&&Ct(n,e),e!=null&&this.__v&&(t&&this.__h.push(t),Oi(this))},bt.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Oi(this))},bt.prototype.render=Wt,or=[],hu=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,po.__r=0,vu=0;var Hn,Ze,Na,kn=0,wi=[],Ma=te.__b,$a=te.__r,Ha=te.diffed,Fa=te.__c,Ba=te.unmount;function Sr(e,t){te.__h&&te.__h(Ze,e,kn||t),kn=0;var n=Ze.__H||(Ze.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function Cu(e){return kn=1,Iu(Au,e)}function Iu(e,t,n){var r=Sr(Hn++,2);return r.t=e,r.__c||(r.__=[n?n(t):Au(void 0,t),function(o){var i=r.t(r.__[0],o);r.__[0]!==i&&(r.__=[i,r.__[1]],r.__c.setState({}))}],r.__c=Ze),r.__}function ku(e,t){var n=Sr(Hn++,3);!te.__s&&ls(n.__H,t)&&(n.__=e,n.__H=t,Ze.__H.__h.push(n))}function Va(e,t){var n=Sr(Hn++,4);!te.__s&&ls(n.__H,t)&&(n.__=e,n.__H=t,Ze.__h.push(n))}function Zo(e,t){var n=Sr(Hn++,7);return ls(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function O_(){wi.forEach(function(e){if(e.__P)try{e.__H.__h.forEach(zr),e.__H.__h.forEach(Si),e.__H.__h=[]}catch(t){e.__H.__h=[],te.__e(t,e.__v)}}),wi=[]}te.__b=function(e){Ze=null,Ma&&Ma(e)},te.__r=function(e){$a&&$a(e),Hn=0;var t=(Ze=e.__c).__H;t&&(t.__h.forEach(zr),t.__h.forEach(Si),t.__h=[])},te.diffed=function(e){Ha&&Ha(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(wi.push(t)!==1&&Na===te.requestAnimationFrame||((Na=te.requestAnimationFrame)||function(n){var r,o=function(){clearTimeout(i),qa&&cancelAnimationFrame(r),setTimeout(n)},i=setTimeout(o,100);qa&&(r=requestAnimationFrame(o))})(O_)),Ze=void 0},te.__c=function(e,t){t.some(function(n){try{n.__h.forEach(zr),n.__h=n.__h.filter(function(r){return!r.__||Si(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],te.__e(r,n.__v)}}),Fa&&Fa(e,t)},te.unmount=function(e){Ba&&Ba(e);var t=e.__c;if(t&&t.__H)try{t.__H.__.forEach(zr)}catch(n){te.__e(n,t.__v)}};var qa=typeof requestAnimationFrame=="function";function zr(e){var t=Ze;typeof e.__c=="function"&&e.__c(),Ze=t}function Si(e){var t=Ze;e.__c=e.__(),Ze=t}function ls(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Au(e,t){return typeof t=="function"?t(e):t}function xu(e,t){for(var n in t)e[n]=t[n];return e}function Pi(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function Ci(e){this.props=e}(Ci.prototype=new bt).isPureReactComponent=!0,Ci.prototype.shouldComponentUpdate=function(e,t){return Pi(this.props,e)||Pi(this.state,t)};var Ua=te.__b;te.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Ua&&Ua(e)};var w_=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911,za=function(e,t){return e==null?null:kt(kt(e).map(t))},S_={map:za,forEach:za,count:function(e){return e?kt(e).length:0},only:function(e){var t=kt(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:kt},P_=te.__e;function Kr(){this.__u=0,this.t=null,this.__b=null}function Tu(e){var t=e.__.__c;return t&&t.__e&&t.__e(e)}function Zn(){this.u=null,this.o=null}te.__e=function(e,t,n){if(e.then){for(var r,o=t;o=o.__;)if((r=o.__c)&&r.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),r.__c(e,t)}P_(e,t,n)},(Kr.prototype=new bt).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var o=Tu(r.__v),i=!1,s=function(){i||(i=!0,n.componentWillUnmount=n.__c,o?o(a):a())};n.__c=n.componentWillUnmount,n.componentWillUnmount=function(){s(),n.__c&&n.__c()};var a=function(){if(!--r.__u){if(r.state.__e){var u=r.state.__e;r.__v.__k[0]=function f(d,p,_){return d&&(d.__v=null,d.__k=d.__k&&d.__k.map(function(g){return f(g,p,_)}),d.__c&&d.__c.__P===p&&(d.__e&&_.insertBefore(d.__e,d.__d),d.__c.__e=!0,d.__c.__P=_)),d}(u,u.__c.__P,u.__c.__O)}var c;for(r.setState({__e:r.__b=null});c=r.t.pop();)c.forceUpdate()}},l=t.__h===!0;r.__u++||l||r.setState({__e:r.__b=r.__v.__k[0]}),e.then(s,s)},Kr.prototype.componentWillUnmount=function(){this.t=[]},Kr.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=function i(s,a,l){return s&&(s.__c&&s.__c.__H&&(s.__c.__H.__.forEach(function(u){typeof u.__c=="function"&&u.__c()}),s.__c.__H=null),(s=xu({},s)).__c!=null&&(s.__c.__P===l&&(s.__c.__P=a),s.__c=null),s.__k=s.__k&&s.__k.map(function(u){return i(u,a,l)})),s}(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__e&&yt(Wt,null,e.fallback);return o&&(o.__h=null),[yt(Wt,null,t.__e?null:e.children),o]};var Ka=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function C_(e){return this.getChildContext=function(){return e.context},e.children}function I_(e){var t=this,n=e.i;t.componentWillUnmount=function(){vr(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),e.__v?(t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(r){this.childNodes.push(r),t.i.appendChild(r)},insertBefore:function(r,o){this.childNodes.push(r),t.i.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.i.removeChild(r)}}),vr(yt(C_,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function Lu(e,t){return yt(I_,{__v:e,i:t})}(Zn.prototype=new bt).__e=function(e){var t=this,n=Tu(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),Ka(t,e,r)):o()};n?n(i):i()}},Zn.prototype.render=function(e){this.u=null,this.o=new Map;var t=kt(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},Zn.prototype.componentDidUpdate=Zn.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){Ka(e,n,t)})};var Ru=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,k_=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,A_=function(e){return(typeof Symbol<"u"&&mr(Symbol())=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(e)};function ju(e,t,n){return t.__k==null&&(t.textContent=""),vr(e,t),typeof n=="function"&&n(),e?e.__c:null}bt.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(bt.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Wa=te.event;function x_(){}function T_(){return this.cancelBubble}function L_(){return this.defaultPrevented}te.event=function(e){return Wa&&(e=Wa(e)),e.persist=x_,e.isPropagationStopped=T_,e.isDefaultPrevented=L_,e.nativeEvent=e};var Du,Ja={configurable:!0,get:function(){return this.class}},Qa=te.vnode;te.vnode=function(e){var t=e.type,n=e.props,r=n;if(typeof t=="string"){for(var o in r={},n){var i=n[o];o==="value"&&"defaultValue"in n&&i==null||(o==="defaultValue"&&"value"in n&&n.value==null?o="value":o==="download"&&i===!0?i="":/ondoubleclick/i.test(o)?o="ondblclick":/^onchange(textarea|input)/i.test(o+t)&&!A_(n.type)?o="oninput":/^on(Ani|Tra|Tou|BeforeInp)/.test(o)?o=o.toLowerCase():k_.test(o)?o=o.replace(/[A-Z0-9]/,"-$&").toLowerCase():i===null&&(i=void 0),r[o]=i)}t=="select"&&r.multiple&&Array.isArray(r.value)&&(r.value=kt(n.children).forEach(function(s){s.props.selected=r.value.indexOf(s.props.value)!=-1})),t=="select"&&r.defaultValue!=null&&(r.value=kt(n.children).forEach(function(s){s.props.selected=r.multiple?r.defaultValue.indexOf(s.props.value)!=-1:r.defaultValue==s.props.value})),e.props=r}t&&n.class!=n.className&&(Ja.enumerable="className"in n,n.className!=null&&(r.class=n.className),Object.defineProperty(r,"className",Ja)),e.$$typeof=Ru,Qa&&Qa(e)};var Za=te.__r;te.__r=function(e){Za&&Za(e),Du=e.__c};var R_={ReactCurrentDispatcher:{current:{readContext:function(e){return Du.__n[e.__c].props.value}}}};(typeof performance>"u"?"undefined":mr(performance))=="object"&&typeof performance.now=="function"&&performance.now.bind(performance);function Ya(e){return!!e&&e.$$typeof===Ru}var y={useState:Cu,useReducer:Iu,useEffect:ku,useLayoutEffect:Va,useRef:function(e){return kn=5,Zo(function(){return{current:e}},[])},useImperativeHandle:function(e,t,n){kn=6,Va(function(){typeof e=="function"?e(t()):e&&(e.current=t())},n==null?n:n.concat(e))},useMemo:Zo,useCallback:function(e,t){return kn=8,Zo(function(){return e},t)},useContext:function(e){var t=Ze.context[e.__c],n=Sr(Hn++,9);return n.__c=e,t?(n.__==null&&(n.__=!0,t.sub(Ze)),t.props.value):e.__},useDebugValue:function(e,t){te.useDebugValue&&te.useDebugValue(t?t(e):e)},version:"16.8.0",Children:S_,render:ju,hydrate:function(e,t,n){return Pu(e,t),typeof n=="function"&&n(),e?e.__c:null},unmountComponentAtNode:function(e){return!!e.__k&&(vr(null,e),!0)},createPortal:Lu,createElement:yt,createContext:function(e,t){var n={__c:t="__cC"+vu++,__:e,Consumer:function(r,o){return r.children(o)},Provider:function(r){var o,i;return this.getChildContext||(o=[],(i={})[t]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(s){this.props.value!==s.value&&o.some(Oi)},this.sub=function(s){o.push(s);var a=s.componentWillUnmount;s.componentWillUnmount=function(){o.splice(o.indexOf(s),1),a&&a.call(s)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n},createFactory:function(e){return yt.bind(null,e)},cloneElement:function(e){return Ya(e)?E_.apply(null,arguments):e},createRef:function(){return{current:null}},Fragment:Wt,isValidElement:Ya,findDOMNode:function(e){return e&&(e.base||e.nodeType===1&&e)||null},Component:bt,PureComponent:Ci,memo:function(e,t){function n(o){var i=this.props.ref,s=i==o.ref;return!s&&i&&(i.call?i(null):i.current=null),t?!t(this.props,o)||!s:Pi(this.props,o)}function r(o){return this.shouldComponentUpdate=n,yt(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r},forwardRef:function(e){function t(n,r){var o=xu({},n);return delete o.ref,e(o,(r=n.ref||r)&&(mr(r)!="object"||"current"in r)?r:null)}return t.$$typeof=w_,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t},unstable_batchedUpdates:function(e,t){return e(t)},StrictMode:Wt,Suspense:Kr,SuspenseList:Zn,lazy:function(e){var t,n,r;function o(i){if(t||(t=e()).then(function(s){n=s.default||s},function(s){r=s}),r)throw r;if(!n)throw t;return yt(n,i)}return o.displayName="Lazy",o.__f=!0,o},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:R_};function j_(){return y.createElement("svg",{width:"15",height:"15",className:"DocSearch-Control-Key-Icon"},y.createElement("path",{d:"M4.505 4.496h2M5.505 5.496v5M8.216 4.496l.055 5.993M10 7.5c.333.333.5.667.5 1v2M12.326 4.5v5.996M8.384 4.496c1.674 0 2.116 0 2.116 1.5s-.442 1.5-2.116 1.5M3.205 9.303c-.09.448-.277 1.21-1.241 1.203C1 10.5.5 9.513.5 8V7c0-1.57.5-2.5 1.464-2.494.964.006 1.134.598 1.24 1.342M12.553 10.5h1.953",strokeWidth:"1.2",stroke:"currentColor",fill:"none",strokeLinecap:"square"}))}function Nu(){return y.createElement("svg",{width:"20",height:"20",className:"DocSearch-Search-Icon",viewBox:"0 0 20 20"},y.createElement("path",{d:"M14.386 14.386l4.0877 4.0877-4.0877-4.0877c-2.9418 2.9419-7.7115 2.9419-10.6533 0-2.9419-2.9418-2.9419-7.7115 0-10.6533 2.9418-2.9419 7.7115-2.9419 10.6533 0 2.9419 2.9418 2.9419 7.7115 0 10.6533z",stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"}))}var D_=["translations"];function Ii(){return Ii=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},Ii.apply(this,arguments)}function N_(e,t){return function(n){if(Array.isArray(n))return n}(e)||function(n,r){var o=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(o!=null){var i,s,a=[],l=!0,u=!1;try{for(o=o.call(n);!(l=(i=o.next()).done)&&(a.push(i.value),!r||a.length!==r);l=!0);}catch(c){u=!0,s=c}finally{try{l||o.return==null||o.return()}finally{if(u)throw s}}return a}}(e,t)||function(n,r){if(!!n){if(typeof n=="string")return Ga(n,r);var o=Object.prototype.toString.call(n).slice(8,-1);if(o==="Object"&&n.constructor&&(o=n.constructor.name),o==="Map"||o==="Set")return Array.from(n);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return Ga(n,r)}}(e,t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Ga(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function M_(e,t){if(e==null)return{};var n,r,o=function(s,a){if(s==null)return{};var l,u,c={},f=Object.keys(s);for(u=0;u<f.length;u++)l=f[u],a.indexOf(l)>=0||(c[l]=s[l]);return c}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var $_=y.forwardRef(function(e,t){var n=e.translations,r=n===void 0?{}:n,o=M_(e,D_),i=r.buttonText,s=i===void 0?"Search":i,a=r.buttonAriaLabel,l=a===void 0?"Search":a,u=N_(Cu(null),2),c=u[0],f=u[1];return ku(function(){typeof navigator<"u"&&(/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)?f("⌘"):f("Ctrl"))},[]),y.createElement("button",Ii({type:"button",className:"DocSearch DocSearch-Button","aria-label":l},o,{ref:t}),y.createElement("span",{className:"DocSearch-Button-Container"},y.createElement(Nu,null),y.createElement("span",{className:"DocSearch-Button-Placeholder"},s)),y.createElement("span",{className:"DocSearch-Button-Keys"},c!==null&&y.createElement(y.Fragment,null,y.createElement("kbd",{className:"DocSearch-Button-Key"},c==="Ctrl"?y.createElement(j_,null):c),y.createElement("kbd",{className:"DocSearch-Button-Key"},"K"))))});function gr(e){return e.reduce(function(t,n){return t.concat(n)},[])}var H_=0;function ki(e){return e.collections.length===0?0:e.collections.reduce(function(t,n){return t+n.items.length},0)}var Mu=function(){},F_=[{segment:"autocomplete-core",version:"1.7.4"}];function Wr(e,t){var n=t;return{then:function(r,o){return Wr(e.then(Nr(r,n,e),Nr(o,n,e)),n)},catch:function(r){return Wr(e.catch(Nr(r,n,e)),n)},finally:function(r){return r&&n.onCancelList.push(r),Wr(e.finally(Nr(r&&function(){return n.onCancelList=[],r()},n,e)),n)},cancel:function(){n.isCanceled=!0;var r=n.onCancelList;n.onCancelList=[],r.forEach(function(o){o()})},isCanceled:function(){return n.isCanceled===!0}}}function Xa(e){return Wr(e,{isCanceled:!1,onCancelList:[]})}function Nr(e,t,n){return e?function(r){return t.isCanceled?r:e(r)}:n}function el(e,t,n,r){if(!n)return null;if(e<0&&(t===null||r!==null&&t===0))return n+e;var o=(t===null?-1:t)+e;return o<=-1||o>=n?r===null?null:0:o}function tl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function B_(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function V_(e,t){var n=[];return Promise.resolve(e(t)).then(function(r){return Promise.all(r.filter(function(o){return Boolean(o)}).map(function(o){if(o.sourceId,n.includes(o.sourceId))throw new Error("[Autocomplete] The `sourceId` ".concat(JSON.stringify(o.sourceId)," is not unique."));n.push(o.sourceId);var i=function(s){for(var a=1;a<arguments.length;a++){var l=arguments[a]!=null?arguments[a]:{};a%2?tl(Object(l),!0).forEach(function(u){B_(s,u,l[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(l)):tl(Object(l)).forEach(function(u){Object.defineProperty(s,u,Object.getOwnPropertyDescriptor(l,u))})}return s}({getItemInputValue:function(s){return s.state.query},getItemUrl:function(){},onSelect:function(s){(0,s.setIsOpen)(!1)},onActive:Mu},o);return Promise.resolve(i)}))})}function En(e){var t=function(o){var i=o.collections.map(function(s){return s.items.length}).reduce(function(s,a,l){var u=(s[l-1]||0)+a;return s.push(u),s},[]).reduce(function(s,a){return a<=o.activeItemId?s+1:s},0);return o.collections[i]}(e);if(!t)return null;var n=t.items[function(o){for(var i=o.state,s=o.collection,a=!1,l=0,u=0;a===!1;){var c=i.collections[l];if(c===s){a=!0;break}u+=c.items.length,l++}return i.activeItemId-u}({state:e,collection:t})],r=t.source;return{item:n,itemInputValue:r.getItemInputValue({item:n,state:e}),itemUrl:r.getItemUrl({item:n,state:e}),source:r}}var q_=/((gt|sm)-|galaxy nexus)|samsung[- ]/i;function nl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Mr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?nl(Object(n),!0).forEach(function(r){U_(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nl(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function U_(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function z_(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function K_(e,t,n){var r,o=t.initialState;return{getState:function(){return o},dispatch:function(i,s){var a=function(l){for(var u=1;u<arguments.length;u++){var c=arguments[u]!=null?arguments[u]:{};u%2?rl(Object(c),!0).forEach(function(f){z_(l,f,c[f])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(c)):rl(Object(c)).forEach(function(f){Object.defineProperty(l,f,Object.getOwnPropertyDescriptor(c,f))})}return l}({},o);o=e(o,{type:i,props:t,payload:s}),n({state:o,prevState:a})},pendingRequests:(r=[],{add:function(i){return r.push(i),i.finally(function(){r=r.filter(function(s){return s!==i})})},cancelAll:function(){r.forEach(function(i){return i.cancel()})},isEmpty:function(){return r.length===0}})}}function ol(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function $r(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ol(Object(n),!0).forEach(function(r){W_(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ol(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function W_(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function J_(e){return function(t){if(Array.isArray(t))return Yo(t)}(e)||function(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}(e)||function(t,n){if(!!t){if(typeof t=="string")return Yo(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Yo(t,n)}}(e)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Yo(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function il(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function gn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?il(Object(n),!0).forEach(function(r){Q_(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):il(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Q_(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Hr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sl(Object(n),!0).forEach(function(r){$u(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sl(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Z_(e){return function(t){if(Array.isArray(t))return Go(t)}(e)||function(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}(e)||function(t,n){if(!!t){if(typeof t=="string")return Go(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Go(t,n)}}(e)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Go(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function al(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ll(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?al(Object(n),!0).forEach(function(r){Y_(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):al(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Y_(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fr(e){return Boolean(e.execute)}function G_(e,t){return n=e,Boolean(n==null?void 0:n.execute)?ll(ll({},e),{},{requests:e.queries.map(function(r){return{query:r,sourceId:t,transformResponse:e.transformResponse}})}):{items:e,sourceId:t};var n}function X_(e){var t=e.reduce(function(n,r){if(!Fr(r))return n.push(r),n;var o=r.searchClient,i=r.execute,s=r.requesterId,a=r.requests,l=n.find(function(f){return Fr(r)&&Fr(f)&&f.searchClient===o&&Boolean(s)&&f.requesterId===s});if(l){var u;(u=l.items).push.apply(u,Z_(a))}else{var c={execute:i,requesterId:s,items:a,searchClient:o};n.push(c)}return n},[]).map(function(n){if(!Fr(n))return Promise.resolve(n);var r=n,o=r.execute,i=r.items;return o({searchClient:r.searchClient,requests:i})});return Promise.all(t).then(function(n){return gr(n)})}function e0(e,t){return t.map(function(n){var r=e.filter(function(a){return a.sourceId===n.sourceId}),o=r.map(function(a){return a.items}),i=r[0].transformResponse,s=i?i(function(a){var l=a.map(function(u){var c;return Mr(Mr({},u),{},{hits:(c=u.hits)===null||c===void 0?void 0:c.map(function(f){return Mr(Mr({},f),{},{__autocomplete_indexName:u.index,__autocomplete_queryID:u.queryID})})})});return{results:l,hits:l.map(function(u){return u.hits}).filter(Boolean),facetHits:l.map(function(u){var c;return(c=u.facetHits)===null||c===void 0?void 0:c.map(function(f){return{label:f.value,count:f.count,_highlightResult:{label:{value:f.highlighted}}}})}).filter(Boolean)}}(o)):o;return s.every(Boolean),'The `getItems` function from source "'.concat(n.sourceId,'" must return an array of items but returned ').concat(JSON.stringify(void 0),`.
|
|
|
|
Did you forget to return items?
|
|
|
|
See: https://www.algolia.com/doc/ui-libraries/autocomplete/core-concepts/sources/#param-getitems`),{source:n,items:s}})}var t0=["event","nextState","props","query","refresh","store"];function cl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Kn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?cl(Object(n),!0).forEach(function(r){n0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cl(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function n0(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r0(e,t){if(e==null)return{};var n,r,o=function(s,a){if(s==null)return{};var l,u,c={},f=Object.keys(s);for(u=0;u<f.length;u++)l=f[u],a.indexOf(l)>=0||(c[l]=s[l]);return c}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var ul,Xo,Br,Wn=null,fl=(ul=-1,Xo=-1,Br=void 0,function(e){var t=++ul;return Promise.resolve(e).then(function(n){return Br&&t<Xo?Br:(Xo=t,Br=n,n)})});function bn(e){var t=e.event,n=e.nextState,r=n===void 0?{}:n,o=e.props,i=e.query,s=e.refresh,a=e.store,l=r0(e,t0);Wn&&o.environment.clearTimeout(Wn);var u=l.setCollections,c=l.setIsOpen,f=l.setQuery,d=l.setActiveItemId,p=l.setStatus;if(f(i),d(o.defaultActiveItemId),!i&&o.openOnFocus===!1){var _,g=a.getState().collections.map(function(E){return Kn(Kn({},E),{},{items:[]})});p("idle"),u(g),c((_=r.isOpen)!==null&&_!==void 0?_:o.shouldPanelOpen({state:a.getState()}));var O=Xa(fl(g).then(function(){return Promise.resolve()}));return a.pendingRequests.add(O)}p("loading"),Wn=o.environment.setTimeout(function(){p("stalled")},o.stallThreshold);var h=Xa(fl(o.getSources(Kn({query:i,refresh:s,state:a.getState()},l)).then(function(E){return Promise.all(E.map(function(w){return Promise.resolve(w.getItems(Kn({query:i,refresh:s,state:a.getState()},l))).then(function(S){return G_(S,w.sourceId)})})).then(X_).then(function(w){return e0(w,E)}).then(function(w){return function(S){var I=S.collections,z=S.props,H=S.state,b=I.reduce(function(M,N){return Hr(Hr({},M),{},$u({},N.source.sourceId,Hr(Hr({},N.source),{},{getItems:function(){return gr(N.items)}})))},{});return gr(z.reshape({sources:Object.values(b),sourcesBySourceId:b,state:H})).filter(Boolean).map(function(M){return{source:M,items:M.getItems()}})}({collections:w,props:o,state:a.getState()})})}))).then(function(E){var w;p("idle"),u(E);var S=o.shouldPanelOpen({state:a.getState()});c((w=r.isOpen)!==null&&w!==void 0?w:o.openOnFocus&&!i&&S||S);var I=En(a.getState());if(a.getState().activeItemId!==null&&I){var z=I.item,H=I.itemInputValue,b=I.itemUrl,M=I.source;M.onActive(Kn({event:t,item:z,itemInputValue:H,itemUrl:b,refresh:s,source:M,state:a.getState()},l))}}).finally(function(){p("idle"),Wn&&o.environment.clearTimeout(Wn)});return a.pendingRequests.add(h)}var o0=["event","props","refresh","store"];function dl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Gt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?dl(Object(n),!0).forEach(function(r){i0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dl(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function i0(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s0(e,t){if(e==null)return{};var n,r,o=function(s,a){if(s==null)return{};var l,u,c={},f=Object.keys(s);for(u=0;u<f.length;u++)l=f[u],a.indexOf(l)>=0||(c[l]=s[l]);return c}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var a0=["props","refresh","store"],l0=["inputElement","formElement","panelElement"],c0=["inputElement"],u0=["inputElement","maxLength"],f0=["item","source"];function pl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Ke(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?pl(Object(n),!0).forEach(function(r){d0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pl(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function d0(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jn(e,t){if(e==null)return{};var n,r,o=function(s,a){if(s==null)return{};var l,u,c={},f=Object.keys(s);for(u=0;u<f.length;u++)l=f[u],a.indexOf(l)>=0||(c[l]=s[l]);return c}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function p0(e){var t=e.props,n=e.refresh,r=e.store,o=Jn(e,a0);return{getEnvironmentProps:function(i){var s=i.inputElement,a=i.formElement,l=i.panelElement;function u(c){!r.getState().isOpen&&r.pendingRequests.isEmpty()||c.target===s||[a,l].some(function(f){return d=f,p=c.target,d===p||d.contains(p);var d,p})===!1&&(r.dispatch("blur",null),t.debug||r.pendingRequests.cancelAll())}return Ke({onTouchStart:u,onMouseDown:u,onTouchMove:function(c){r.getState().isOpen!==!1&&s===t.environment.document.activeElement&&c.target!==s&&s.blur()}},Jn(i,l0))},getRootProps:function(i){return Ke({role:"combobox","aria-expanded":r.getState().isOpen,"aria-haspopup":"listbox","aria-owns":r.getState().isOpen?"".concat(t.id,"-list"):void 0,"aria-labelledby":"".concat(t.id,"-label")},i)},getFormProps:function(i){return i.inputElement,Ke({action:"",noValidate:!0,role:"search",onSubmit:function(s){var a;s.preventDefault(),t.onSubmit(Ke({event:s,refresh:n,state:r.getState()},o)),r.dispatch("submit",null),(a=i.inputElement)===null||a===void 0||a.blur()},onReset:function(s){var a;s.preventDefault(),t.onReset(Ke({event:s,refresh:n,state:r.getState()},o)),r.dispatch("reset",null),(a=i.inputElement)===null||a===void 0||a.focus()}},Jn(i,c0))},getLabelProps:function(i){return Ke({htmlFor:"".concat(t.id,"-input"),id:"".concat(t.id,"-label")},i)},getInputProps:function(i){var s;function a(g){(t.openOnFocus||Boolean(r.getState().query))&&bn(Ke({event:g,props:t,query:r.getState().completion||r.getState().query,refresh:n,store:r},o)),r.dispatch("focus",null)}var l=i||{},u=(l.inputElement,l.maxLength),c=u===void 0?512:u,f=Jn(l,u0),d=En(r.getState()),p=function(g){return Boolean(g&&g.match(q_))}(((s=t.environment.navigator)===null||s===void 0?void 0:s.userAgent)||""),_=d!=null&&d.itemUrl&&!p?"go":"search";return Ke({"aria-autocomplete":"both","aria-activedescendant":r.getState().isOpen&&r.getState().activeItemId!==null?"".concat(t.id,"-item-").concat(r.getState().activeItemId):void 0,"aria-controls":r.getState().isOpen?"".concat(t.id,"-list"):void 0,"aria-labelledby":"".concat(t.id,"-label"),value:r.getState().completion||r.getState().query,id:"".concat(t.id,"-input"),autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",enterKeyHint:_,spellCheck:"false",autoFocus:t.autoFocus,placeholder:t.placeholder,maxLength:c,type:"search",onChange:function(g){bn(Ke({event:g,props:t,query:g.currentTarget.value.slice(0,c),refresh:n,store:r},o))},onKeyDown:function(g){(function(O){var h=O.event,E=O.props,w=O.refresh,S=O.store,I=s0(O,o0);if(h.key==="ArrowUp"||h.key==="ArrowDown"){var z=function(){var R=E.environment.document.getElementById("".concat(E.id,"-item-").concat(S.getState().activeItemId));R&&(R.scrollIntoViewIfNeeded?R.scrollIntoViewIfNeeded(!1):R.scrollIntoView(!1))},H=function(){var R=En(S.getState());if(S.getState().activeItemId!==null&&R){var $=R.item,ie=R.itemInputValue,W=R.itemUrl,re=R.source;re.onActive(Gt({event:h,item:$,itemInputValue:ie,itemUrl:W,refresh:w,source:re,state:S.getState()},I))}};h.preventDefault(),S.getState().isOpen===!1&&(E.openOnFocus||Boolean(S.getState().query))?bn(Gt({event:h,props:E,query:S.getState().query,refresh:w,store:S},I)).then(function(){S.dispatch(h.key,{nextActiveItemId:E.defaultActiveItemId}),H(),setTimeout(z,0)}):(S.dispatch(h.key,{}),H(),z())}else if(h.key==="Escape")h.preventDefault(),S.dispatch(h.key,null),S.pendingRequests.cancelAll();else if(h.key==="Tab")S.dispatch("blur",null),S.pendingRequests.cancelAll();else if(h.key==="Enter"){if(S.getState().activeItemId===null||S.getState().collections.every(function(R){return R.items.length===0}))return void(E.debug||S.pendingRequests.cancelAll());h.preventDefault();var b=En(S.getState()),M=b.item,N=b.itemInputValue,K=b.itemUrl,k=b.source;if(h.metaKey||h.ctrlKey)K!==void 0&&(k.onSelect(Gt({event:h,item:M,itemInputValue:N,itemUrl:K,refresh:w,source:k,state:S.getState()},I)),E.navigator.navigateNewTab({itemUrl:K,item:M,state:S.getState()}));else if(h.shiftKey)K!==void 0&&(k.onSelect(Gt({event:h,item:M,itemInputValue:N,itemUrl:K,refresh:w,source:k,state:S.getState()},I)),E.navigator.navigateNewWindow({itemUrl:K,item:M,state:S.getState()}));else if(!h.altKey){if(K!==void 0)return k.onSelect(Gt({event:h,item:M,itemInputValue:N,itemUrl:K,refresh:w,source:k,state:S.getState()},I)),void E.navigator.navigate({itemUrl:K,item:M,state:S.getState()});bn(Gt({event:h,nextState:{isOpen:!1},props:E,query:N,refresh:w,store:S},I)).then(function(){k.onSelect(Gt({event:h,item:M,itemInputValue:N,itemUrl:K,refresh:w,source:k,state:S.getState()},I))})}}})(Ke({event:g,props:t,refresh:n,store:r},o))},onFocus:a,onBlur:Mu,onClick:function(g){i.inputElement!==t.environment.document.activeElement||r.getState().isOpen||a(g)}},f)},getPanelProps:function(i){return Ke({onMouseDown:function(s){s.preventDefault()},onMouseLeave:function(){r.dispatch("mouseleave",null)}},i)},getListProps:function(i){return Ke({role:"listbox","aria-labelledby":"".concat(t.id,"-label"),id:"".concat(t.id,"-list")},i)},getItemProps:function(i){var s=i.item,a=i.source,l=Jn(i,f0);return Ke({id:"".concat(t.id,"-item-").concat(s.__autocomplete_id),role:"option","aria-selected":r.getState().activeItemId===s.__autocomplete_id,onMouseMove:function(u){if(s.__autocomplete_id!==r.getState().activeItemId){r.dispatch("mousemove",s.__autocomplete_id);var c=En(r.getState());if(r.getState().activeItemId!==null&&c){var f=c.item,d=c.itemInputValue,p=c.itemUrl,_=c.source;_.onActive(Ke({event:u,item:f,itemInputValue:d,itemUrl:p,refresh:n,source:_,state:r.getState()},o))}}},onMouseDown:function(u){u.preventDefault()},onClick:function(u){var c=a.getItemInputValue({item:s,state:r.getState()}),f=a.getItemUrl({item:s,state:r.getState()});(f?Promise.resolve():bn(Ke({event:u,nextState:{isOpen:!1},props:t,query:c,refresh:n,store:r},o))).then(function(){a.onSelect(Ke({event:u,item:s,itemInputValue:c,itemUrl:f,refresh:n,source:a,state:r.getState()},o))})}},l)}}}function ml(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function m0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ml(Object(n),!0).forEach(function(r){Hu(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ml(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Hu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h0(e){var t,n,r,o,i=e.plugins,s=e.options,a=(t=(((n=s.__autocomplete_metadata)===null||n===void 0?void 0:n.userAgents)||[])[0])===null||t===void 0?void 0:t.segment,l=a?Hu({},a,Object.keys(((r=s.__autocomplete_metadata)===null||r===void 0?void 0:r.options)||{})):{};return{plugins:i.map(function(u){return{name:u.name,options:Object.keys(u.__autocomplete_pluginOptions||[])}}),options:m0({"autocomplete-core":Object.keys(s)},l),ua:F_.concat(((o=s.__autocomplete_metadata)===null||o===void 0?void 0:o.userAgents)||[])}}function hl(e){var t,n=e.state;return n.isOpen===!1||n.activeItemId===null?null:((t=En(n))===null||t===void 0?void 0:t.itemInputValue)||null}function vl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function pe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vl(Object(n),!0).forEach(function(r){v0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vl(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function v0(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g0=function(e,t){switch(t.type){case"setActiveItemId":case"mousemove":return pe(pe({},e),{},{activeItemId:t.payload});case"setQuery":return pe(pe({},e),{},{query:t.payload,completion:null});case"setCollections":return pe(pe({},e),{},{collections:t.payload});case"setIsOpen":return pe(pe({},e),{},{isOpen:t.payload});case"setStatus":return pe(pe({},e),{},{status:t.payload});case"setContext":return pe(pe({},e),{},{context:pe(pe({},e.context),t.payload)});case"ArrowDown":var n=pe(pe({},e),{},{activeItemId:t.payload.hasOwnProperty("nextActiveItemId")?t.payload.nextActiveItemId:el(1,e.activeItemId,ki(e),t.props.defaultActiveItemId)});return pe(pe({},n),{},{completion:hl({state:n})});case"ArrowUp":var r=pe(pe({},e),{},{activeItemId:el(-1,e.activeItemId,ki(e),t.props.defaultActiveItemId)});return pe(pe({},r),{},{completion:hl({state:r})});case"Escape":return e.isOpen?pe(pe({},e),{},{activeItemId:null,isOpen:!1,completion:null}):pe(pe({},e),{},{activeItemId:null,query:"",status:"idle",collections:[]});case"submit":return pe(pe({},e),{},{activeItemId:null,isOpen:!1,status:"idle"});case"reset":return pe(pe({},e),{},{activeItemId:t.props.openOnFocus===!0?t.props.defaultActiveItemId:null,status:"idle",query:""});case"focus":return pe(pe({},e),{},{activeItemId:t.props.defaultActiveItemId,isOpen:(t.props.openOnFocus||Boolean(e.query))&&t.props.shouldPanelOpen({state:e})});case"blur":return t.props.debug?e:pe(pe({},e),{},{isOpen:!1,activeItemId:null});case"mouseleave":return pe(pe({},e),{},{activeItemId:t.props.defaultActiveItemId});default:return"The reducer action ".concat(JSON.stringify(t.type)," is not supported."),e}};function gl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Xt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?gl(Object(n),!0).forEach(function(r){_0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gl(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _0(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y0(e){var t=[],n=function(a,l){var u,c=typeof window<"u"?window:{},f=a.plugins||[];return gn(gn({debug:!1,openOnFocus:!1,placeholder:"",autoFocus:!1,defaultActiveItemId:null,stallThreshold:300,environment:c,shouldPanelOpen:function(d){return ki(d.state)>0},reshape:function(d){return d.sources}},a),{},{id:(u=a.id)!==null&&u!==void 0?u:"autocomplete-".concat(H_++),plugins:f,initialState:gn({activeItemId:null,query:"",completion:null,collections:[],isOpen:!1,status:"idle",context:{}},a.initialState),onStateChange:function(d){var p;(p=a.onStateChange)===null||p===void 0||p.call(a,d),f.forEach(function(_){var g;return(g=_.onStateChange)===null||g===void 0?void 0:g.call(_,d)})},onSubmit:function(d){var p;(p=a.onSubmit)===null||p===void 0||p.call(a,d),f.forEach(function(_){var g;return(g=_.onSubmit)===null||g===void 0?void 0:g.call(_,d)})},onReset:function(d){var p;(p=a.onReset)===null||p===void 0||p.call(a,d),f.forEach(function(_){var g;return(g=_.onReset)===null||g===void 0?void 0:g.call(_,d)})},getSources:function(d){return Promise.all([].concat(J_(f.map(function(p){return p.getSources})),[a.getSources]).filter(Boolean).map(function(p){return V_(p,d)})).then(function(p){return gr(p)}).then(function(p){return p.map(function(_){return gn(gn({},_),{},{onSelect:function(g){_.onSelect(g),l.forEach(function(O){var h;return(h=O.onSelect)===null||h===void 0?void 0:h.call(O,g)})},onActive:function(g){_.onActive(g),l.forEach(function(O){var h;return(h=O.onActive)===null||h===void 0?void 0:h.call(O,g)})}})})})},navigator:gn({navigate:function(d){var p=d.itemUrl;c.location.assign(p)},navigateNewTab:function(d){var p=d.itemUrl,_=c.open(p,"_blank","noopener");_==null||_.focus()},navigateNewWindow:function(d){var p=d.itemUrl;c.open(p,"_blank","noopener")}},a.navigator)})}(e,t),r=K_(g0,n,function(a){var l=a.prevState,u=a.state;n.onStateChange(Xt({prevState:l,state:u,refresh:s},o))}),o=function(a){var l=a.store;return{setActiveItemId:function(u){l.dispatch("setActiveItemId",u)},setQuery:function(u){l.dispatch("setQuery",u)},setCollections:function(u){var c=0,f=u.map(function(d){return $r($r({},d),{},{items:gr(d.items).map(function(p){return $r($r({},p),{},{__autocomplete_id:c++})})})});l.dispatch("setCollections",f)},setIsOpen:function(u){l.dispatch("setIsOpen",u)},setStatus:function(u){l.dispatch("setStatus",u)},setContext:function(u){l.dispatch("setContext",u)}}}({store:r}),i=p0(Xt({props:n,refresh:s,store:r},o));function s(){return bn(Xt({event:new Event("input"),nextState:{isOpen:r.getState().isOpen},props:n,query:r.getState().query,refresh:s,store:r},o))}return n.plugins.forEach(function(a){var l;return(l=a.subscribe)===null||l===void 0?void 0:l.call(a,Xt(Xt({},o),{},{refresh:s,onSelect:function(u){t.push({onSelect:u})},onActive:function(u){t.push({onActive:u})}}))}),function(a){var l,u,c=a.metadata,f=a.environment;if(!((l=f.navigator)===null||l===void 0||(u=l.userAgent)===null||u===void 0)&&u.includes("Algolia Crawler")){var d=f.document.createElement("meta"),p=f.document.querySelector("head");d.name="algolia:metadata",setTimeout(function(){d.content=JSON.stringify(c),p.appendChild(d)},0)}}({metadata:h0({plugins:n.plugins,options:e}),environment:n.environment}),Xt(Xt({refresh:s},i),o)}function b0(e){var t=e.translations,n=(t===void 0?{}:t).searchByText,r=n===void 0?"Search by":n;return y.createElement("a",{href:"https://www.algolia.com/ref/docsearch/?utm_source=".concat(window.location.hostname,"&utm_medium=referral&utm_content=powered_by&utm_campaign=docsearch"),target:"_blank",rel:"noopener noreferrer"},y.createElement("span",{className:"DocSearch-Label"},r),y.createElement("svg",{width:"77",height:"19","aria-label":"Algolia",role:"img",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 2196.2 500"},y.createElement("defs",null,y.createElement("style",null,".cls-1,.cls-2{fill:#003dff;}.cls-2{fill-rule:evenodd;}")),y.createElement("path",{className:"cls-2",d:"M1070.38,275.3V5.91c0-3.63-3.24-6.39-6.82-5.83l-50.46,7.94c-2.87,.45-4.99,2.93-4.99,5.84l.17,273.22c0,12.92,0,92.7,95.97,95.49,3.33,.1,6.09-2.58,6.09-5.91v-40.78c0-2.96-2.19-5.51-5.12-5.84-34.85-4.01-34.85-47.57-34.85-54.72Z"}),y.createElement("rect",{className:"cls-1",x:"1845.88",y:"104.73",width:"62.58",height:"277.9",rx:"5.9",ry:"5.9"}),y.createElement("path",{className:"cls-2",d:"M1851.78,71.38h50.77c3.26,0,5.9-2.64,5.9-5.9V5.9c0-3.62-3.24-6.39-6.82-5.83l-50.77,7.95c-2.87,.45-4.99,2.92-4.99,5.83v51.62c0,3.26,2.64,5.9,5.9,5.9Z"}),y.createElement("path",{className:"cls-2",d:"M1764.03,275.3V5.91c0-3.63-3.24-6.39-6.82-5.83l-50.46,7.94c-2.87,.45-4.99,2.93-4.99,5.84l.17,273.22c0,12.92,0,92.7,95.97,95.49,3.33,.1,6.09-2.58,6.09-5.91v-40.78c0-2.96-2.19-5.51-5.12-5.84-34.85-4.01-34.85-47.57-34.85-54.72Z"}),y.createElement("path",{className:"cls-2",d:"M1631.95,142.72c-11.14-12.25-24.83-21.65-40.78-28.31-15.92-6.53-33.26-9.85-52.07-9.85-18.78,0-36.15,3.17-51.92,9.85-15.59,6.66-29.29,16.05-40.76,28.31-11.47,12.23-20.38,26.87-26.76,44.03-6.38,17.17-9.24,37.37-9.24,58.36,0,20.99,3.19,36.87,9.55,54.21,6.38,17.32,15.14,32.11,26.45,44.36,11.29,12.23,24.83,21.62,40.6,28.46,15.77,6.83,40.12,10.33,52.4,10.48,12.25,0,36.78-3.82,52.7-10.48,15.92-6.68,29.46-16.23,40.78-28.46,11.29-12.25,20.05-27.04,26.25-44.36,6.22-17.34,9.24-33.22,9.24-54.21,0-20.99-3.34-41.19-10.03-58.36-6.38-17.17-15.14-31.8-26.43-44.03Zm-44.43,163.75c-11.47,15.75-27.56,23.7-48.09,23.7-20.55,0-36.63-7.8-48.1-23.7-11.47-15.75-17.21-34.01-17.21-61.2,0-26.89,5.59-49.14,17.06-64.87,11.45-15.75,27.54-23.52,48.07-23.52,20.55,0,36.63,7.78,48.09,23.52,11.47,15.57,17.36,37.98,17.36,64.87,0,27.19-5.72,45.3-17.19,61.2Z"}),y.createElement("path",{className:"cls-2",d:"M894.42,104.73h-49.33c-48.36,0-90.91,25.48-115.75,64.1-14.52,22.58-22.99,49.63-22.99,78.73,0,44.89,20.13,84.92,51.59,111.1,2.93,2.6,6.05,4.98,9.31,7.14,12.86,8.49,28.11,13.47,44.52,13.47,1.23,0,2.46-.03,3.68-.09,.36-.02,.71-.05,1.07-.07,.87-.05,1.75-.11,2.62-.2,.34-.03,.68-.08,1.02-.12,.91-.1,1.82-.21,2.73-.34,.21-.03,.42-.07,.63-.1,32.89-5.07,61.56-30.82,70.9-62.81v57.83c0,3.26,2.64,5.9,5.9,5.9h50.42c3.26,0,5.9-2.64,5.9-5.9V110.63c0-3.26-2.64-5.9-5.9-5.9h-56.32Zm0,206.92c-12.2,10.16-27.97,13.98-44.84,15.12-.16,.01-.33,.03-.49,.04-1.12,.07-2.24,.1-3.36,.1-42.24,0-77.12-35.89-77.12-79.37,0-10.25,1.96-20.01,5.42-28.98,11.22-29.12,38.77-49.74,71.06-49.74h49.33v142.83Z"}),y.createElement("path",{className:"cls-2",d:"M2133.97,104.73h-49.33c-48.36,0-90.91,25.48-115.75,64.1-14.52,22.58-22.99,49.63-22.99,78.73,0,44.89,20.13,84.92,51.59,111.1,2.93,2.6,6.05,4.98,9.31,7.14,12.86,8.49,28.11,13.47,44.52,13.47,1.23,0,2.46-.03,3.68-.09,.36-.02,.71-.05,1.07-.07,.87-.05,1.75-.11,2.62-.2,.34-.03,.68-.08,1.02-.12,.91-.1,1.82-.21,2.73-.34,.21-.03,.42-.07,.63-.1,32.89-5.07,61.56-30.82,70.9-62.81v57.83c0,3.26,2.64,5.9,5.9,5.9h50.42c3.26,0,5.9-2.64,5.9-5.9V110.63c0-3.26-2.64-5.9-5.9-5.9h-56.32Zm0,206.92c-12.2,10.16-27.97,13.98-44.84,15.12-.16,.01-.33,.03-.49,.04-1.12,.07-2.24,.1-3.36,.1-42.24,0-77.12-35.89-77.12-79.37,0-10.25,1.96-20.01,5.42-28.98,11.22-29.12,38.77-49.74,71.06-49.74h49.33v142.83Z"}),y.createElement("path",{className:"cls-2",d:"M1314.05,104.73h-49.33c-48.36,0-90.91,25.48-115.75,64.1-11.79,18.34-19.6,39.64-22.11,62.59-.58,5.3-.88,10.68-.88,16.14s.31,11.15,.93,16.59c4.28,38.09,23.14,71.61,50.66,94.52,2.93,2.6,6.05,4.98,9.31,7.14,12.86,8.49,28.11,13.47,44.52,13.47h0c17.99,0,34.61-5.93,48.16-15.97,16.29-11.58,28.88-28.54,34.48-47.75v50.26h-.11v11.08c0,21.84-5.71,38.27-17.34,49.36-11.61,11.08-31.04,16.63-58.25,16.63-11.12,0-28.79-.59-46.6-2.41-2.83-.29-5.46,1.5-6.27,4.22l-12.78,43.11c-1.02,3.46,1.27,7.02,4.83,7.53,21.52,3.08,42.52,4.68,54.65,4.68,48.91,0,85.16-10.75,108.89-32.21,21.48-19.41,33.15-48.89,35.2-88.52V110.63c0-3.26-2.64-5.9-5.9-5.9h-56.32Zm0,64.1s.65,139.13,0,143.36c-12.08,9.77-27.11,13.59-43.49,14.7-.16,.01-.33,.03-.49,.04-1.12,.07-2.24,.1-3.36,.1-1.32,0-2.63-.03-3.94-.1-40.41-2.11-74.52-37.26-74.52-79.38,0-10.25,1.96-20.01,5.42-28.98,11.22-29.12,38.77-49.74,71.06-49.74h49.33Z"}),y.createElement("path",{className:"cls-1",d:"M249.83,0C113.3,0,2,110.09,.03,246.16c-2,138.19,110.12,252.7,248.33,253.5,42.68,.25,83.79-10.19,120.3-30.03,3.56-1.93,4.11-6.83,1.08-9.51l-23.38-20.72c-4.75-4.21-11.51-5.4-17.36-2.92-25.48,10.84-53.17,16.38-81.71,16.03-111.68-1.37-201.91-94.29-200.13-205.96,1.76-110.26,92-199.41,202.67-199.41h202.69V407.41l-115-102.18c-3.72-3.31-9.42-2.66-12.42,1.31-18.46,24.44-48.53,39.64-81.93,37.34-46.33-3.2-83.87-40.5-87.34-86.81-4.15-55.24,39.63-101.52,94-101.52,49.18,0,89.68,37.85,93.91,85.95,.38,4.28,2.31,8.27,5.52,11.12l29.95,26.55c3.4,3.01,8.79,1.17,9.63-3.3,2.16-11.55,2.92-23.58,2.07-35.92-4.82-70.34-61.8-126.93-132.17-131.26-80.68-4.97-148.13,58.14-150.27,137.25-2.09,77.1,61.08,143.56,138.19,145.26,32.19,.71,62.03-9.41,86.14-26.95l150.26,133.2c6.44,5.71,16.61,1.14,16.61-7.47V9.48C499.66,4.25,495.42,0,490.18,0H249.83Z"})))}function Vr(e){return y.createElement("svg",{width:"15",height:"15","aria-label":e.ariaLabel,role:"img"},y.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"},e.children))}function E0(e){var t=e.translations,n=t===void 0?{}:t,r=n.selectText,o=r===void 0?"to select":r,i=n.selectKeyAriaLabel,s=i===void 0?"Enter key":i,a=n.navigateText,l=a===void 0?"to navigate":a,u=n.navigateUpKeyAriaLabel,c=u===void 0?"Arrow up":u,f=n.navigateDownKeyAriaLabel,d=f===void 0?"Arrow down":f,p=n.closeText,_=p===void 0?"to close":p,g=n.closeKeyAriaLabel,O=g===void 0?"Escape key":g,h=n.searchByText,E=h===void 0?"Search by":h;return y.createElement(y.Fragment,null,y.createElement("div",{className:"DocSearch-Logo"},y.createElement(b0,{translations:{searchByText:E}})),y.createElement("ul",{className:"DocSearch-Commands"},y.createElement("li",null,y.createElement("kbd",{className:"DocSearch-Commands-Key"},y.createElement(Vr,{ariaLabel:s},y.createElement("path",{d:"M12 3.53088v3c0 1-1 2-2 2H4M7 11.53088l-3-3 3-3"}))),y.createElement("span",{className:"DocSearch-Label"},o)),y.createElement("li",null,y.createElement("kbd",{className:"DocSearch-Commands-Key"},y.createElement(Vr,{ariaLabel:d},y.createElement("path",{d:"M7.5 3.5v8M10.5 8.5l-3 3-3-3"}))),y.createElement("kbd",{className:"DocSearch-Commands-Key"},y.createElement(Vr,{ariaLabel:c},y.createElement("path",{d:"M7.5 11.5v-8M10.5 6.5l-3-3-3 3"}))),y.createElement("span",{className:"DocSearch-Label"},l)),y.createElement("li",null,y.createElement("kbd",{className:"DocSearch-Commands-Key"},y.createElement(Vr,{ariaLabel:O},y.createElement("path",{d:"M13.6167 8.936c-.1065.3583-.6883.962-1.4875.962-.7993 0-1.653-.9165-1.653-2.1258v-.5678c0-1.2548.7896-2.1016 1.653-2.1016.8634 0 1.3601.4778 1.4875 1.0724M9 6c-.1352-.4735-.7506-.9219-1.46-.8972-.7092.0246-1.344.57-1.344 1.2166s.4198.8812 1.3445.9805C8.465 7.3992 8.968 7.9337 9 8.5c.032.5663-.454 1.398-1.4595 1.398C6.6593 9.898 6 9 5.963 8.4851m-1.4748.5368c-.2635.5941-.8099.876-1.5443.876s-1.7073-.6248-1.7073-2.204v-.4603c0-1.0416.721-2.131 1.7073-2.131.9864 0 1.6425 1.031 1.5443 2.2492h-2.956"}))),y.createElement("span",{className:"DocSearch-Label"},_))))}function O0(e){var t=e.hit,n=e.children;return y.createElement("a",{href:t.url},n)}function w0(){return y.createElement("svg",{viewBox:"0 0 38 38",stroke:"currentColor",strokeOpacity:".5"},y.createElement("g",{fill:"none",fillRule:"evenodd"},y.createElement("g",{transform:"translate(1 1)",strokeWidth:"2"},y.createElement("circle",{strokeOpacity:".3",cx:"18",cy:"18",r:"18"}),y.createElement("path",{d:"M36 18c0-9.94-8.06-18-18-18"},y.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indefinite"})))))}function S0(){return y.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20"},y.createElement("g",{stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"},y.createElement("path",{d:"M3.18 6.6a8.23 8.23 0 1112.93 9.94h0a8.23 8.23 0 01-11.63 0"}),y.createElement("path",{d:"M6.44 7.25H2.55V3.36M10.45 6v5.6M10.45 11.6L13 13"})))}function Ai(){return y.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20"},y.createElement("path",{d:"M10 10l5.09-5.09L10 10l5.09 5.09L10 10zm0 0L4.91 4.91 10 10l-5.09 5.09L10 10z",stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"}))}function P0(){return y.createElement("svg",{className:"DocSearch-Hit-Select-Icon",width:"20",height:"20",viewBox:"0 0 20 20"},y.createElement("g",{stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"},y.createElement("path",{d:"M18 3v4c0 2-2 4-4 4H2"}),y.createElement("path",{d:"M8 17l-6-6 6-6"})))}var C0=function(){return y.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20"},y.createElement("path",{d:"M17 6v12c0 .52-.2 1-1 1H4c-.7 0-1-.33-1-1V2c0-.55.42-1 1-1h8l5 5zM14 8h-3.13c-.51 0-.87-.34-.87-.87V4",stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinejoin:"round"}))};function I0(e){switch(e.type){case"lvl1":return y.createElement(C0,null);case"content":return y.createElement(A0,null);default:return y.createElement(k0,null)}}function k0(){return y.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20"},y.createElement("path",{d:"M13 13h4-4V8H7v5h6v4-4H7V8H3h4V3v5h6V3v5h4-4v5zm-6 0v4-4H3h4z",stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"}))}function A0(){return y.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20"},y.createElement("path",{d:"M17 5H3h14zm0 5H3h14zm0 5H3h14z",stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinejoin:"round"}))}function _l(){return y.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20"},y.createElement("path",{d:"M10 14.2L5 17l1-5.6-4-4 5.5-.7 2.5-5 2.5 5 5.6.8-4 4 .9 5.5z",stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinejoin:"round"}))}function x0(){return y.createElement("svg",{width:"40",height:"40",viewBox:"0 0 20 20",fill:"none",fillRule:"evenodd",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"},y.createElement("path",{d:"M19 4.8a16 16 0 00-2-1.2m-3.3-1.2A16 16 0 001.1 4.7M16.7 8a12 12 0 00-2.8-1.4M10 6a12 12 0 00-6.7 2M12.3 14.7a4 4 0 00-4.5 0M14.5 11.4A8 8 0 0010 10M3 16L18 2M10 18h0"}))}function T0(){return y.createElement("svg",{width:"40",height:"40",viewBox:"0 0 20 20",fill:"none",fillRule:"evenodd",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"},y.createElement("path",{d:"M15.5 4.8c2 3 1.7 7-1 9.7h0l4.3 4.3-4.3-4.3a7.8 7.8 0 01-9.8 1m-2.2-2.2A7.8 7.8 0 0113.2 2.4M2 18L18 2"}))}function L0(e){var t=e.translations,n=t===void 0?{}:t,r=n.titleText,o=r===void 0?"Unable to fetch results":r,i=n.helpText,s=i===void 0?"You might want to check your network connection.":i;return y.createElement("div",{className:"DocSearch-ErrorScreen"},y.createElement("div",{className:"DocSearch-Screen-Icon"},y.createElement(x0,null)),y.createElement("p",{className:"DocSearch-Title"},o),y.createElement("p",{className:"DocSearch-Help"},s))}var R0=["translations"];function j0(e){return function(t){if(Array.isArray(t))return ei(t)}(e)||function(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}(e)||function(t,n){if(!!t){if(typeof t=="string")return ei(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ei(t,n)}}(e)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function ei(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function D0(e,t){if(e==null)return{};var n,r,o=function(s,a){if(s==null)return{};var l,u,c={},f=Object.keys(s);for(u=0;u<f.length;u++)l=f[u],a.indexOf(l)>=0||(c[l]=s[l]);return c}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function N0(e){var t=e.translations,n=t===void 0?{}:t,r=D0(e,R0),o=n.noResultsText,i=o===void 0?"No results for":o,s=n.suggestedQueryText,a=s===void 0?"Try searching for":s,l=n.reportMissingResultsText,u=l===void 0?"Believe this query should return results?":l,c=n.reportMissingResultsLinkText,f=c===void 0?"Let us know.":c,d=r.state.context.searchSuggestions;return y.createElement("div",{className:"DocSearch-NoResults"},y.createElement("div",{className:"DocSearch-Screen-Icon"},y.createElement(T0,null)),y.createElement("p",{className:"DocSearch-Title"},i,' "',y.createElement("strong",null,r.state.query),'"'),d&&d.length>0&&y.createElement("div",{className:"DocSearch-NoResults-Prefill-List"},y.createElement("p",{className:"DocSearch-Help"},a,":"),y.createElement("ul",null,d.slice(0,3).reduce(function(p,_){return[].concat(j0(p),[y.createElement("li",{key:_},y.createElement("button",{className:"DocSearch-Prefill",key:_,type:"button",onClick:function(){r.setQuery(_.toLowerCase()+" "),r.refresh(),r.inputRef.current.focus()}},_))])},[]))),r.getMissingResultsUrl&&y.createElement("p",{className:"DocSearch-Help"},"".concat(u," "),y.createElement("a",{href:r.getMissingResultsUrl({query:r.state.query}),target:"_blank",rel:"noopener noreferrer"},f)))}var M0=["hit","attribute","tagName"];function yl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function bl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yl(Object(n),!0).forEach(function(r){$0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yl(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $0(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function H0(e,t){if(e==null)return{};var n,r,o=function(s,a){if(s==null)return{};var l,u,c={},f=Object.keys(s);for(u=0;u<f.length;u++)l=f[u],a.indexOf(l)>=0||(c[l]=s[l]);return c}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function El(e,t){return t.split(".").reduce(function(n,r){return n!=null&&n[r]?n[r]:null},e)}function _n(e){var t=e.hit,n=e.attribute,r=e.tagName;return yt(r===void 0?"span":r,bl(bl({},H0(e,M0)),{},{dangerouslySetInnerHTML:{__html:El(t,"_snippetResult.".concat(n,".value"))||El(t,n)}}))}function Ol(e,t){return function(n){if(Array.isArray(n))return n}(e)||function(n,r){var o=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(o!=null){var i,s,a=[],l=!0,u=!1;try{for(o=o.call(n);!(l=(i=o.next()).done)&&(a.push(i.value),!r||a.length!==r);l=!0);}catch(c){u=!0,s=c}finally{try{l||o.return==null||o.return()}finally{if(u)throw s}}return a}}(e,t)||function(n,r){if(!!n){if(typeof n=="string")return wl(n,r);var o=Object.prototype.toString.call(n).slice(8,-1);if(o==="Object"&&n.constructor&&(o=n.constructor.name),o==="Map"||o==="Set")return Array.from(n);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return wl(n,r)}}(e,t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function wl(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function mo(){return mo=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},mo.apply(this,arguments)}function xi(e){return e.collection&&e.collection.items.length!==0?y.createElement("section",{className:"DocSearch-Hits"},y.createElement("div",{className:"DocSearch-Hit-source"},e.title),y.createElement("ul",e.getListProps(),e.collection.items.map(function(t,n){return y.createElement(F0,mo({key:[e.title,t.objectID].join(":"),item:t,index:n},e))}))):null}function F0(e){var t=e.item,n=e.index,r=e.renderIcon,o=e.renderAction,i=e.getItemProps,s=e.onItemClick,a=e.collection,l=e.hitComponent,u=Ol(y.useState(!1),2),c=u[0],f=u[1],d=Ol(y.useState(!1),2),p=d[0],_=d[1],g=y.useRef(null),O=l;return y.createElement("li",mo({className:["DocSearch-Hit",t.__docsearch_parent&&"DocSearch-Hit--Child",c&&"DocSearch-Hit--deleting",p&&"DocSearch-Hit--favoriting"].filter(Boolean).join(" "),onTransitionEnd:function(){g.current&&g.current()}},i({item:t,source:a.source,onClick:function(){s(t)}})),y.createElement(O,{hit:t},y.createElement("div",{className:"DocSearch-Hit-Container"},r({item:t,index:n}),t.hierarchy[t.type]&&t.type==="lvl1"&&y.createElement("div",{className:"DocSearch-Hit-content-wrapper"},y.createElement(_n,{className:"DocSearch-Hit-title",hit:t,attribute:"hierarchy.lvl1"}),t.content&&y.createElement(_n,{className:"DocSearch-Hit-path",hit:t,attribute:"content"})),t.hierarchy[t.type]&&(t.type==="lvl2"||t.type==="lvl3"||t.type==="lvl4"||t.type==="lvl5"||t.type==="lvl6")&&y.createElement("div",{className:"DocSearch-Hit-content-wrapper"},y.createElement(_n,{className:"DocSearch-Hit-title",hit:t,attribute:"hierarchy.".concat(t.type)}),y.createElement(_n,{className:"DocSearch-Hit-path",hit:t,attribute:"hierarchy.lvl1"})),t.type==="content"&&y.createElement("div",{className:"DocSearch-Hit-content-wrapper"},y.createElement(_n,{className:"DocSearch-Hit-title",hit:t,attribute:"content"}),y.createElement(_n,{className:"DocSearch-Hit-path",hit:t,attribute:"hierarchy.lvl1"})),o({item:t,runDeleteTransition:function(h){f(!0),g.current=h},runFavoriteTransition:function(h){_(!0),g.current=h}}))))}function Sl(e,t){return e.reduce(function(n,r){var o=t(r);return n.hasOwnProperty(o)||(n[o]=[]),n[o].length<5&&n[o].push(r),n},{})}function Pl(e){return e}function B0(){}var Fu=/(<mark>|<\/mark>)/g,V0=RegExp(Fu.source);function Bu(e){var t,n,r,o,i,s=e;if(!s.__docsearch_parent&&!e._highlightResult)return e.hierarchy.lvl0;var a=((s.__docsearch_parent?(t=s.__docsearch_parent)===null||t===void 0||(n=t._highlightResult)===null||n===void 0||(r=n.hierarchy)===null||r===void 0?void 0:r.lvl0:(o=e._highlightResult)===null||o===void 0||(i=o.hierarchy)===null||i===void 0?void 0:i.lvl0)||{}).value;return a&&V0.test(a)?a.replace(Fu,""):a}function Ti(){return Ti=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},Ti.apply(this,arguments)}function q0(e){return y.createElement("div",{className:"DocSearch-Dropdown-Container"},e.state.collections.map(function(t){if(t.items.length===0)return null;var n=Bu(t.items[0]);return y.createElement(xi,Ti({},e,{key:t.source.sourceId,title:n,collection:t,renderIcon:function(r){var o,i=r.item,s=r.index;return y.createElement(y.Fragment,null,i.__docsearch_parent&&y.createElement("svg",{className:"DocSearch-Hit-Tree",viewBox:"0 0 24 54"},y.createElement("g",{stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"},i.__docsearch_parent!==((o=t.items[s+1])===null||o===void 0?void 0:o.__docsearch_parent)?y.createElement("path",{d:"M8 6v21M20 27H8.3"}):y.createElement("path",{d:"M8 6v42M20 27H8.3"}))),y.createElement("div",{className:"DocSearch-Hit-icon"},y.createElement(I0,{type:i.type})))},renderAction:function(){return y.createElement("div",{className:"DocSearch-Hit-action"},y.createElement(P0,null))}}))}),e.resultsFooterComponent&&y.createElement("section",{className:"DocSearch-HitsFooter"},y.createElement(e.resultsFooterComponent,{state:e.state})))}var U0=["translations"];function ho(){return ho=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},ho.apply(this,arguments)}function z0(e,t){if(e==null)return{};var n,r,o=function(s,a){if(s==null)return{};var l,u,c={},f=Object.keys(s);for(u=0;u<f.length;u++)l=f[u],a.indexOf(l)>=0||(c[l]=s[l]);return c}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function K0(e){var t=e.translations,n=t===void 0?{}:t,r=z0(e,U0),o=n.recentSearchesTitle,i=o===void 0?"Recent":o,s=n.noRecentSearchesText,a=s===void 0?"No recent searches":s,l=n.saveRecentSearchButtonTitle,u=l===void 0?"Save this search":l,c=n.removeRecentSearchButtonTitle,f=c===void 0?"Remove this search from history":c,d=n.favoriteSearchesTitle,p=d===void 0?"Favorite":d,_=n.removeFavoriteSearchButtonTitle,g=_===void 0?"Remove this search from favorites":_;return r.state.status==="idle"&&r.hasCollections===!1?r.disableUserPersonalization?null:y.createElement("div",{className:"DocSearch-StartScreen"},y.createElement("p",{className:"DocSearch-Help"},a)):r.hasCollections===!1?null:y.createElement("div",{className:"DocSearch-Dropdown-Container"},y.createElement(xi,ho({},r,{title:i,collection:r.state.collections[0],renderIcon:function(){return y.createElement("div",{className:"DocSearch-Hit-icon"},y.createElement(S0,null))},renderAction:function(O){var h=O.item,E=O.runFavoriteTransition,w=O.runDeleteTransition;return y.createElement(y.Fragment,null,y.createElement("div",{className:"DocSearch-Hit-action"},y.createElement("button",{className:"DocSearch-Hit-action-button",title:u,type:"submit",onClick:function(S){S.preventDefault(),S.stopPropagation(),E(function(){r.favoriteSearches.add(h),r.recentSearches.remove(h),r.refresh()})}},y.createElement(_l,null))),y.createElement("div",{className:"DocSearch-Hit-action"},y.createElement("button",{className:"DocSearch-Hit-action-button",title:f,type:"submit",onClick:function(S){S.preventDefault(),S.stopPropagation(),w(function(){r.recentSearches.remove(h),r.refresh()})}},y.createElement(Ai,null))))}})),y.createElement(xi,ho({},r,{title:p,collection:r.state.collections[1],renderIcon:function(){return y.createElement("div",{className:"DocSearch-Hit-icon"},y.createElement(_l,null))},renderAction:function(O){var h=O.item,E=O.runDeleteTransition;return y.createElement("div",{className:"DocSearch-Hit-action"},y.createElement("button",{className:"DocSearch-Hit-action-button",title:g,type:"submit",onClick:function(w){w.preventDefault(),w.stopPropagation(),E(function(){r.favoriteSearches.remove(h),r.refresh()})}},y.createElement(Ai,null)))}})))}var W0=["translations"];function vo(){return vo=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},vo.apply(this,arguments)}function J0(e,t){if(e==null)return{};var n,r,o=function(s,a){if(s==null)return{};var l,u,c={},f=Object.keys(s);for(u=0;u<f.length;u++)l=f[u],a.indexOf(l)>=0||(c[l]=s[l]);return c}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Q0=y.memo(function(e){var t=e.translations,n=t===void 0?{}:t,r=J0(e,W0);if(r.state.status==="error")return y.createElement(L0,{translations:n==null?void 0:n.errorScreen});var o=r.state.collections.some(function(i){return i.items.length>0});return r.state.query?o===!1?y.createElement(N0,vo({},r,{translations:n==null?void 0:n.noResultsScreen})):y.createElement(q0,r):y.createElement(K0,vo({},r,{hasCollections:o,translations:n==null?void 0:n.startScreen}))},function(e,t){return t.state.status==="loading"||t.state.status==="stalled"}),Z0=["translations"];function go(){return go=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},go.apply(this,arguments)}function Y0(e,t){if(e==null)return{};var n,r,o=function(s,a){if(s==null)return{};var l,u,c={},f=Object.keys(s);for(u=0;u<f.length;u++)l=f[u],a.indexOf(l)>=0||(c[l]=s[l]);return c}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function G0(e){var t=e.translations,n=t===void 0?{}:t,r=Y0(e,Z0),o=n.resetButtonTitle,i=o===void 0?"Clear the query":o,s=n.resetButtonAriaLabel,a=s===void 0?"Clear the query":s,l=n.cancelButtonText,u=l===void 0?"Cancel":l,c=n.cancelButtonAriaLabel,f=c===void 0?"Cancel":c,d=r.getFormProps({inputElement:r.inputRef.current}).onReset;return y.useEffect(function(){r.autoFocus&&r.inputRef.current&&r.inputRef.current.focus()},[r.autoFocus,r.inputRef]),y.useEffect(function(){r.isFromSelection&&r.inputRef.current&&r.inputRef.current.select()},[r.isFromSelection,r.inputRef]),y.createElement(y.Fragment,null,y.createElement("form",{className:"DocSearch-Form",onSubmit:function(p){p.preventDefault()},onReset:d},y.createElement("label",go({className:"DocSearch-MagnifierLabel"},r.getLabelProps()),y.createElement(Nu,null)),y.createElement("div",{className:"DocSearch-LoadingIndicator"},y.createElement(w0,null)),y.createElement("input",go({className:"DocSearch-Input",ref:r.inputRef},r.getInputProps({inputElement:r.inputRef.current,autoFocus:r.autoFocus,maxLength:64}))),y.createElement("button",{type:"reset",title:i,className:"DocSearch-Reset","aria-label":a,hidden:!r.state.query},y.createElement(Ai,null))),y.createElement("button",{className:"DocSearch-Cancel",type:"reset","aria-label":f,onClick:r.onClose},u))}var X0=["_highlightResult","_snippetResult"];function ey(e,t){if(e==null)return{};var n,r,o=function(s,a){if(s==null)return{};var l,u,c={},f=Object.keys(s);for(u=0;u<f.length;u++)l=f[u],a.indexOf(l)>=0||(c[l]=s[l]);return c}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ty(e){return function(){var t="__TEST_KEY__";try{return localStorage.setItem(t,""),localStorage.removeItem(t),!0}catch{return!1}}()===!1?{setItem:function(){},getItem:function(){return[]}}:{setItem:function(t){return window.localStorage.setItem(e,JSON.stringify(t))},getItem:function(){var t=window.localStorage.getItem(e);return t?JSON.parse(t):[]}}}function Cl(e){var t=e.key,n=e.limit,r=n===void 0?5:n,o=ty(t),i=o.getItem().slice(0,r);return{add:function(s){var a=s,l=(a._highlightResult,a._snippetResult,ey(a,X0)),u=i.findIndex(function(c){return c.objectID===l.objectID});u>-1&&i.splice(u,1),i.unshift(l),i=i.slice(0,r),o.setItem(i)},remove:function(s){i=i.filter(function(a){return a.objectID!==s.objectID}),o.setItem(i)},getAll:function(){return i}}}var ny=["facetName","facetQuery"];function ry(e){var t,n="algoliasearch-client-js-".concat(e.key),r=function(){return t===void 0&&(t=e.localStorage||window.localStorage),t},o=function(){return JSON.parse(r().getItem(n)||"{}")};return{get:function(i,s){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{miss:function(){return Promise.resolve()}};return Promise.resolve().then(function(){var l=JSON.stringify(i),u=o()[l];return Promise.all([u||s(),u!==void 0])}).then(function(l){var u=co(l,2),c=u[0],f=u[1];return Promise.all([c,f||a.miss(c)])}).then(function(l){return co(l,1)[0]})},set:function(i,s){return Promise.resolve().then(function(){var a=o();return a[JSON.stringify(i)]=s,r().setItem(n,JSON.stringify(a)),s})},delete:function(i){return Promise.resolve().then(function(){var s=o();delete s[JSON.stringify(i)],r().setItem(n,JSON.stringify(s))})},clear:function(){return Promise.resolve().then(function(){r().removeItem(n)})}}}function Yn(e){var t=uo(e.caches),n=t.shift();return n===void 0?{get:function(r,o){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{miss:function(){return Promise.resolve()}};return o().then(function(s){return Promise.all([s,i.miss(s)])}).then(function(s){return co(s,1)[0]})},set:function(r,o){return Promise.resolve(o)},delete:function(r){return Promise.resolve()},clear:function(){return Promise.resolve()}}:{get:function(r,o){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{miss:function(){return Promise.resolve()}};return n.get(r,o,i).catch(function(){return Yn({caches:t}).get(r,o,i)})},set:function(r,o){return n.set(r,o).catch(function(){return Yn({caches:t}).set(r,o)})},delete:function(r){return n.delete(r).catch(function(){return Yn({caches:t}).delete(r)})},clear:function(){return n.clear().catch(function(){return Yn({caches:t}).clear()})}}}function ti(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{serializable:!0},t={};return{get:function(n,r){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{miss:function(){return Promise.resolve()}},i=JSON.stringify(n);if(i in t)return Promise.resolve(e.serializable?JSON.parse(t[i]):t[i]);var s=r(),a=o&&o.miss||function(){return Promise.resolve()};return s.then(function(l){return a(l)}).then(function(){return s})},set:function(n,r){return t[JSON.stringify(n)]=e.serializable?JSON.stringify(r):r,Promise.resolve(r)},delete:function(n){return delete t[JSON.stringify(n)],Promise.resolve()},clear:function(){return t={},Promise.resolve()}}}function oy(e){for(var t=e.length-1;t>0;t--){var n=Math.floor(Math.random()*(t+1)),r=e[t];e[t]=e[n],e[n]=r}return e}function Vu(e,t){return t&&Object.keys(t).forEach(function(n){e[n]=t[n](e)}),e}function Lo(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0;return e.replace(/%s/g,function(){return encodeURIComponent(n[o++])})}var Jr={WithinQueryParameters:0,WithinHeaders:1};function Il(e,t){var n=e||{},r=n.data||{};return Object.keys(n).forEach(function(o){["timeout","headers","queryParameters","data","cacheable"].indexOf(o)===-1&&(r[o]=n[o])}),{data:Object.entries(r).length>0?r:void 0,timeout:n.timeout||t,headers:n.headers||{},queryParameters:n.queryParameters||{},cacheable:n.cacheable}}var On={Read:1,Write:2,Any:3},qu=1,iy=2,Uu=3;function zu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:qu;return Ee(Ee({},e),{},{status:t,lastUpdate:Date.now()})}function Ku(e){return typeof e=="string"?{protocol:"https",url:e,accept:On.Any}:{protocol:e.protocol||"https",url:e.url,accept:e.accept||On.Any}}var kl="GET",Ro="POST";function sy(e,t){return Promise.all(t.map(function(n){return e.get(n,function(){return Promise.resolve(zu(n))})})).then(function(n){var r=n.filter(function(s){return function(a){return a.status===qu||Date.now()-a.lastUpdate>12e4}(s)}),o=n.filter(function(s){return function(a){return a.status===Uu&&Date.now()-a.lastUpdate<=12e4}(s)}),i=[].concat(uo(r),uo(o));return{getTimeout:function(s,a){return(o.length===0&&s===0?1:o.length+3+s)*a},statelessHosts:i.length>0?i.map(function(s){return Ku(s)}):t}})}function Al(e,t,n,r){var o=[],i=function(d,p){if(!(d.method===kl||d.data===void 0&&p.data===void 0)){var _=Array.isArray(d.data)?d.data:Ee(Ee({},d.data),p.data);return JSON.stringify(_)}}(n,r),s=function(d,p){var _=Ee(Ee({},d.headers),p.headers),g={};return Object.keys(_).forEach(function(O){var h=_[O];g[O.toLowerCase()]=h}),g}(e,r),a=n.method,l=n.method!==kl?{}:Ee(Ee({},n.data),r.data),u=Ee(Ee(Ee({"x-algolia-agent":e.userAgent.value},e.queryParameters),l),r.queryParameters),c=0,f=function d(p,_){var g=p.pop();if(g===void 0)throw{name:"RetryError",message:"Unreachable hosts - your application id may be incorrect. If the error persists, contact support@algolia.com.",transporterStackTrace:xl(o)};var O={data:i,headers:s,method:a,url:ly(g,n.path,u),connectTimeout:_(c,e.timeouts.connect),responseTimeout:_(c,r.timeout)},h=function(w){var S={request:O,response:w,host:g,triesLeft:p.length};return o.push(S),S},E={onSucess:function(w){return function(S){try{return JSON.parse(S.content)}catch(I){throw function(z,H){return{name:"DeserializationError",message:z,response:H}}(I.message,S)}}(w)},onRetry:function(w){var S=h(w);return w.isTimedOut&&c++,Promise.all([e.logger.info("Retryable failure",Ju(S)),e.hostsCache.set(g,zu(g,w.isTimedOut?Uu:iy))]).then(function(){return d(p,_)})},onFail:function(w){throw h(w),function(S,I){var z=S.content,H=S.status,b=z;try{b=JSON.parse(z).message}catch{}return function(M,N,K){return{name:"ApiError",message:M,status:N,transporterStackTrace:K}}(b,H,I)}(w,xl(o))}};return e.requester.send(O).then(function(w){return function(S,I){return function(z){var H=z.status;return z.isTimedOut||function(b){var M=b.isTimedOut,N=b.status;return!M&&~~N==0}(z)||~~(H/100)!=2&&~~(H/100)!=4}(S)?I.onRetry(S):~~(S.status/100)==2?I.onSucess(S):I.onFail(S)}(w,E)})};return sy(e.hostsCache,t).then(function(d){return f(uo(d.statelessHosts).reverse(),d.getTimeout)})}function ay(e){var t={value:"Algolia for JavaScript (".concat(e,")"),add:function(n){var r="; ".concat(n.segment).concat(n.version!==void 0?" (".concat(n.version,")"):"");return t.value.indexOf(r)===-1&&(t.value="".concat(t.value).concat(r)),t}};return t}function ly(e,t,n){var r=Wu(n),o="".concat(e.protocol,"://").concat(e.url,"/").concat(t.charAt(0)==="/"?t.substr(1):t);return r.length&&(o+="?".concat(r)),o}function Wu(e){return Object.keys(e).map(function(t){return Lo("%s=%s",t,(n=e[t],Object.prototype.toString.call(n)==="[object Object]"||Object.prototype.toString.call(n)==="[object Array]"?JSON.stringify(e[t]):e[t]));var n}).join("&")}function xl(e){return e.map(function(t){return Ju(t)})}function Ju(e){var t=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return Ee(Ee({},e),{},{request:Ee(Ee({},e.request),{},{headers:Ee(Ee({},e.request.headers),t)})})}var cy=function(e){var t=e.appId,n=function(i,s,a){var l={"x-algolia-api-key":a,"x-algolia-application-id":s};return{headers:function(){return i===Jr.WithinHeaders?l:{}},queryParameters:function(){return i===Jr.WithinQueryParameters?l:{}}}}(e.authMode!==void 0?e.authMode:Jr.WithinHeaders,t,e.apiKey),r=function(i){var s=i.hostsCache,a=i.logger,l=i.requester,u=i.requestsCache,c=i.responsesCache,f=i.timeouts,d=i.userAgent,p=i.hosts,_=i.queryParameters,g={hostsCache:s,logger:a,requester:l,requestsCache:u,responsesCache:c,timeouts:f,userAgent:d,headers:i.headers,queryParameters:_,hosts:p.map(function(O){return Ku(O)}),read:function(O,h){var E=Il(h,g.timeouts.read),w=function(){return Al(g,g.hosts.filter(function(I){return(I.accept&On.Read)!=0}),O,E)};if((E.cacheable!==void 0?E.cacheable:O.cacheable)!==!0)return w();var S={request:O,mappedRequestOptions:E,transporter:{queryParameters:g.queryParameters,headers:g.headers}};return g.responsesCache.get(S,function(){return g.requestsCache.get(S,function(){return g.requestsCache.set(S,w()).then(function(I){return Promise.all([g.requestsCache.delete(S),I])},function(I){return Promise.all([g.requestsCache.delete(S),Promise.reject(I)])}).then(function(I){var z=co(I,2);return z[0],z[1]})})},{miss:function(I){return g.responsesCache.set(S,I)}})},write:function(O,h){return Al(g,g.hosts.filter(function(E){return(E.accept&On.Write)!=0}),O,Il(h,g.timeouts.write))}};return g}(Ee(Ee({hosts:[{url:"".concat(t,"-dsn.algolia.net"),accept:On.Read},{url:"".concat(t,".algolia.net"),accept:On.Write}].concat(oy([{url:"".concat(t,"-1.algolianet.com")},{url:"".concat(t,"-2.algolianet.com")},{url:"".concat(t,"-3.algolianet.com")}]))},e),{},{headers:Ee(Ee(Ee({},n.headers()),{"content-type":"application/x-www-form-urlencoded"}),e.headers),queryParameters:Ee(Ee({},n.queryParameters()),e.queryParameters)})),o={transporter:r,appId:t,addAlgoliaAgent:function(i,s){r.userAgent.add({segment:i,version:s})},clearCache:function(){return Promise.all([r.requestsCache.clear(),r.responsesCache.clear()]).then(function(){})}};return Vu(o,e.methods)},Qu=function(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r={transporter:e.transporter,appId:e.appId,indexName:t};return Vu(r,n.methods)}},Tl=function(e){return function(t,n){var r=t.map(function(o){return Ee(Ee({},o),{},{params:Wu(o.params||{})})});return e.transporter.read({method:Ro,path:"1/indexes/*/queries",data:{requests:r},cacheable:!0},n)}},Ll=function(e){return function(t,n){return Promise.all(t.map(function(r){var o=r.params,i=o.facetName,s=o.facetQuery,a=g_(o,ny);return Qu(e)(r.indexName,{methods:{searchForFacetValues:Zu}}).searchForFacetValues(i,s,Ee(Ee({},n),a))}))}},uy=function(e){return function(t,n,r){return e.transporter.read({method:Ro,path:Lo("1/answers/%s/prediction",e.indexName),data:{query:t,queryLanguages:n},cacheable:!0},r)}},fy=function(e){return function(t,n){return e.transporter.read({method:Ro,path:Lo("1/indexes/%s/query",e.indexName),data:{query:t},cacheable:!0},n)}},Zu=function(e){return function(t,n,r){return e.transporter.read({method:Ro,path:Lo("1/indexes/%s/facets/%s/query",e.indexName,t),data:{facetQuery:n},cacheable:!0},r)}},dy=1,py=2,my=3;function Yu(e,t,n){var r,o={appId:e,apiKey:t,timeouts:{connect:1,read:2,write:30},requester:{send:function(i){return new Promise(function(s){var a=new XMLHttpRequest;a.open(i.method,i.url,!0),Object.keys(i.headers).forEach(function(f){return a.setRequestHeader(f,i.headers[f])});var l,u=function(f,d){return setTimeout(function(){a.abort(),s({status:0,content:d,isTimedOut:!0})},1e3*f)},c=u(i.connectTimeout,"Connection timeout");a.onreadystatechange=function(){a.readyState>a.OPENED&&l===void 0&&(clearTimeout(c),l=u(i.responseTimeout,"Socket timeout"))},a.onerror=function(){a.status===0&&(clearTimeout(c),clearTimeout(l),s({content:a.responseText||"Network request failed",status:a.status,isTimedOut:!1}))},a.onload=function(){clearTimeout(c),clearTimeout(l),s({content:a.responseText,status:a.status,isTimedOut:!1})},a.send(i.data)})}},logger:(r=my,{debug:function(i,s){return dy>=r&&console.debug(i,s),Promise.resolve()},info:function(i,s){return py>=r&&console.info(i,s),Promise.resolve()},error:function(i,s){return console.error(i,s),Promise.resolve()}}),responsesCache:ti(),requestsCache:ti({serializable:!1}),hostsCache:Yn({caches:[ry({key:"".concat("4.8.5","-").concat(e)}),ti()]}),userAgent:ay("4.8.5").add({segment:"Browser",version:"lite"}),authMode:Jr.WithinQueryParameters};return cy(Ee(Ee(Ee({},o),n),{},{methods:{search:Tl,searchForFacetValues:Ll,multipleQueries:Tl,multipleSearchForFacetValues:Ll,initIndex:function(i){return function(s){return Qu(i)(s,{methods:{search:fy,searchForFacetValues:Zu,findAnswers:uy}})}}}}))}Yu.version="4.8.5";var hy=["footer","searchBox"];function sr(){return sr=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},sr.apply(this,arguments)}function Rl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ni(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Rl(Object(n),!0).forEach(function(r){vy(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rl(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function vy(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gy(e,t){return function(n){if(Array.isArray(n))return n}(e)||function(n,r){var o=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(o!=null){var i,s,a=[],l=!0,u=!1;try{for(o=o.call(n);!(l=(i=o.next()).done)&&(a.push(i.value),!r||a.length!==r);l=!0);}catch(c){u=!0,s=c}finally{try{l||o.return==null||o.return()}finally{if(u)throw s}}return a}}(e,t)||function(n,r){if(!!n){if(typeof n=="string")return jl(n,r);var o=Object.prototype.toString.call(n).slice(8,-1);if(o==="Object"&&n.constructor&&(o=n.constructor.name),o==="Map"||o==="Set")return Array.from(n);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return jl(n,r)}}(e,t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function jl(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _y(e,t){if(e==null)return{};var n,r,o=function(s,a){if(s==null)return{};var l,u,c={},f=Object.keys(s);for(u=0;u<f.length;u++)l=f[u],a.indexOf(l)>=0||(c[l]=s[l]);return c}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function yy(e){var t=e.appId,n=e.apiKey,r=e.indexName,o=e.placeholder,i=o===void 0?"Search docs":o,s=e.searchParameters,a=e.onClose,l=a===void 0?B0:a,u=e.transformItems,c=u===void 0?Pl:u,f=e.hitComponent,d=f===void 0?O0:f,p=e.resultsFooterComponent,_=p===void 0?function(){return null}:p,g=e.navigator,O=e.initialScrollY,h=O===void 0?0:O,E=e.transformSearchClient,w=E===void 0?Pl:E,S=e.disableUserPersonalization,I=S!==void 0&&S,z=e.initialQuery,H=z===void 0?"":z,b=e.translations,M=b===void 0?{}:b,N=e.getMissingResultsUrl,K=M.footer,k=M.searchBox,R=_y(M,hy),$=gy(y.useState({query:"",collections:[],completion:null,context:{},isOpen:!1,activeItemId:null,status:"idle"}),2),ie=$[0],W=$[1],re=y.useRef(null),se=y.useRef(null),Le=y.useRef(null),De=y.useRef(null),Ne=y.useRef(null),Ae=y.useRef(10),ct=y.useRef(typeof window<"u"?window.getSelection().toString().slice(0,64):"").current,Ge=y.useRef(H||ct).current,x=function(v,P,C){return y.useMemo(function(){var A=Yu(v,P);return A.addAlgoliaAgent("docsearch","3.3.3"),/docsearch.js \(.*\)/.test(A.transporter.userAgent.value)===!1&&A.addAlgoliaAgent("docsearch-react","3.3.3"),C(A)},[v,P,C])}(t,n,w),U=y.useRef(Cl({key:"__DOCSEARCH_FAVORITE_SEARCHES__".concat(r),limit:10})).current,q=y.useRef(Cl({key:"__DOCSEARCH_RECENT_SEARCHES__".concat(r),limit:U.getAll().length===0?7:4})).current,Z=y.useCallback(function(v){if(!I){var P=v.type==="content"?v.__docsearch_parent:v;P&&U.getAll().findIndex(function(C){return C.objectID===P.objectID})===-1&&q.add(P)}},[U,q,I]),de=y.useMemo(function(){return y0({id:"docsearch",defaultActiveItemId:0,placeholder:i,openOnFocus:!0,initialState:{query:Ge,context:{searchSuggestions:[]}},navigator:g,onStateChange:function(v){W(v.state)},getSources:function(v){var P=v.query,C=v.state,A=v.setContext,D=v.setStatus;return P?x.search([{query:P,indexName:r,params:ni({attributesToRetrieve:["hierarchy.lvl0","hierarchy.lvl1","hierarchy.lvl2","hierarchy.lvl3","hierarchy.lvl4","hierarchy.lvl5","hierarchy.lvl6","content","type","url"],attributesToSnippet:["hierarchy.lvl1:".concat(Ae.current),"hierarchy.lvl2:".concat(Ae.current),"hierarchy.lvl3:".concat(Ae.current),"hierarchy.lvl4:".concat(Ae.current),"hierarchy.lvl5:".concat(Ae.current),"hierarchy.lvl6:".concat(Ae.current),"content:".concat(Ae.current)],snippetEllipsisText:"…",highlightPreTag:"<mark>",highlightPostTag:"</mark>",hitsPerPage:20},s)}]).catch(function(j){throw j.name==="RetryError"&&D("error"),j}).then(function(j){var T=j.results[0],F=T.hits,L=T.nbHits,G=Sl(F,function(Y){return Bu(Y)});return C.context.searchSuggestions.length<Object.keys(G).length&&A({searchSuggestions:Object.keys(G)}),A({nbHits:L}),Object.values(G).map(function(Y,X){return{sourceId:"hits".concat(X),onSelect:function(ee){var ue=ee.item,ve=ee.event;Z(ue),ve.shiftKey||ve.ctrlKey||ve.metaKey||l()},getItemUrl:function(ee){return ee.item.url},getItems:function(){return Object.values(Sl(Y,function(ee){return ee.hierarchy.lvl1})).map(c).map(function(ee){return ee.map(function(ue){return ni(ni({},ue),{},{__docsearch_parent:ue.type!=="lvl1"&&ee.find(function(ve){return ve.type==="lvl1"&&ve.hierarchy.lvl1===ue.hierarchy.lvl1})})})}).flat()}}})}):I?[]:[{sourceId:"recentSearches",onSelect:function(j){var T=j.item,F=j.event;Z(T),F.shiftKey||F.ctrlKey||F.metaKey||l()},getItemUrl:function(j){return j.item.url},getItems:function(){return q.getAll()}},{sourceId:"favoriteSearches",onSelect:function(j){var T=j.item,F=j.event;Z(T),F.shiftKey||F.ctrlKey||F.metaKey||l()},getItemUrl:function(j){return j.item.url},getItems:function(){return U.getAll()}}]}})},[r,s,x,l,q,U,Z,Ge,i,g,c,I]),Pe=de.getEnvironmentProps,le=de.getRootProps,m=de.refresh;return function(v){var P=v.getEnvironmentProps,C=v.panelElement,A=v.formElement,D=v.inputElement;y.useEffect(function(){if(C&&A&&D){var j=P({panelElement:C,formElement:A,inputElement:D}),T=j.onTouchStart,F=j.onTouchMove;return window.addEventListener("touchstart",T),window.addEventListener("touchmove",F),function(){window.removeEventListener("touchstart",T),window.removeEventListener("touchmove",F)}}},[P,C,A,D])}({getEnvironmentProps:Pe,panelElement:De.current,formElement:Le.current,inputElement:Ne.current}),function(v){var P=v.container;y.useEffect(function(){if(P){var C=P.querySelectorAll("a[href]:not([disabled]), button:not([disabled]), input:not([disabled])"),A=C[0],D=C[C.length-1];return P.addEventListener("keydown",j),function(){P.removeEventListener("keydown",j)}}function j(T){T.key==="Tab"&&(T.shiftKey?document.activeElement===A&&(T.preventDefault(),D.focus()):document.activeElement===D&&(T.preventDefault(),A.focus()))}},[P])}({container:re.current}),y.useEffect(function(){return document.body.classList.add("DocSearch--active"),function(){var v,P;document.body.classList.remove("DocSearch--active"),(v=(P=window).scrollTo)===null||v===void 0||v.call(P,0,h)}},[]),y.useEffect(function(){window.matchMedia("(max-width: 768px)").matches&&(Ae.current=5)},[]),y.useEffect(function(){De.current&&(De.current.scrollTop=0)},[ie.query]),y.useEffect(function(){Ge.length>0&&(m(),Ne.current&&Ne.current.focus())},[Ge,m]),y.useEffect(function(){function v(){if(se.current){var P=.01*window.innerHeight;se.current.style.setProperty("--docsearch-vh","".concat(P,"px"))}}return v(),window.addEventListener("resize",v),function(){window.removeEventListener("resize",v)}},[]),y.createElement("div",sr({ref:re},le({"aria-expanded":!0}),{className:["DocSearch","DocSearch-Container",ie.status==="stalled"&&"DocSearch-Container--Stalled",ie.status==="error"&&"DocSearch-Container--Errored"].filter(Boolean).join(" "),role:"button",tabIndex:0,onMouseDown:function(v){v.target===v.currentTarget&&l()}}),y.createElement("div",{className:"DocSearch-Modal",ref:se},y.createElement("header",{className:"DocSearch-SearchBar",ref:Le},y.createElement(G0,sr({},de,{state:ie,autoFocus:Ge.length===0,inputRef:Ne,isFromSelection:Boolean(Ge)&&Ge===ct,translations:k,onClose:l}))),y.createElement("div",{className:"DocSearch-Dropdown",ref:De},y.createElement(Q0,sr({},de,{indexName:r,state:ie,hitComponent:d,resultsFooterComponent:_,disableUserPersonalization:I,recentSearches:q,favoriteSearches:U,inputRef:Ne,translations:R,getMissingResultsUrl:N,onItemClick:function(v){Z(v),l()}}))),y.createElement("footer",{className:"DocSearch-Footer"},y.createElement(E0,{translations:K}))))}function Li(){return Li=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},Li.apply(this,arguments)}function Dl(e,t){return function(n){if(Array.isArray(n))return n}(e)||function(n,r){var o=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(o!=null){var i,s,a=[],l=!0,u=!1;try{for(o=o.call(n);!(l=(i=o.next()).done)&&(a.push(i.value),!r||a.length!==r);l=!0);}catch(c){u=!0,s=c}finally{try{l||o.return==null||o.return()}finally{if(u)throw s}}return a}}(e,t)||function(n,r){if(!!n){if(typeof n=="string")return Nl(n,r);var o=Object.prototype.toString.call(n).slice(8,-1);if(o==="Object"&&n.constructor&&(o=n.constructor.name),o==="Map"||o==="Set")return Array.from(n);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return Nl(n,r)}}(e,t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Nl(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function by(e){var t,n,r=y.useRef(null),o=Dl(y.useState(!1),2),i=o[0],s=o[1],a=Dl(y.useState((e==null?void 0:e.initialQuery)||void 0),2),l=a[0],u=a[1],c=y.useCallback(function(){s(!0)},[s]),f=y.useCallback(function(){s(!1)},[s]);return function(d){var p=d.isOpen,_=d.onOpen,g=d.onClose,O=d.onInput,h=d.searchButtonRef;y.useEffect(function(){function E(w){(w.keyCode===27&&p||w.key.toLowerCase()==="k"&&(w.metaKey||w.ctrlKey)||!function(S){var I=S.target,z=I.tagName;return I.isContentEditable||z==="INPUT"||z==="SELECT"||z==="TEXTAREA"}(w)&&w.key==="/"&&!p)&&(w.preventDefault(),p?g():document.body.classList.contains("DocSearch--active")||document.body.classList.contains("DocSearch--active")||_()),h&&h.current===document.activeElement&&O&&/[a-zA-Z0-9]/.test(String.fromCharCode(w.keyCode))&&O(w)}return window.addEventListener("keydown",E),function(){window.removeEventListener("keydown",E)}},[p,_,g,O,h])}({isOpen:i,onOpen:c,onClose:f,onInput:y.useCallback(function(d){s(!0),u(d.key)},[s,u]),searchButtonRef:r}),y.createElement(y.Fragment,null,y.createElement($_,{ref:r,translations:e==null||(t=e.translations)===null||t===void 0?void 0:t.button,onClick:c}),i&&Lu(y.createElement(yy,Li({},e,{initialScrollY:window.scrollY,initialQuery:l,translations:e==null||(n=e.translations)===null||n===void 0?void 0:n.modal,onClose:f})),document.body))}function Ey(e){ju(y.createElement(by,bi({},e,{transformSearchClient:function(t){return t.addAlgoliaAgent("docsearch.js","3.3.3"),e.transformSearchClient?e.transformSearchClient(t):t}})),function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:window;return typeof t=="string"?n.document.querySelector(t):t}(e.container,e.environment))}const Oy=e=>e.button===1||e.altKey||e.ctrlKey||e.metaKey||e.shiftKey,wy=()=>{const e=pn(),t=us();return{hitComponent:({hit:n,children:r})=>({type:"a",ref:void 0,constructor:void 0,key:void 0,props:{href:n.url,onClick:o=>{Oy(o)||(o.preventDefault(),e.push(Zs(n.url,t.value.base)))},children:r},__v:null}),navigator:{navigate:({itemUrl:n})=>{e.push(Zs(n,t.value.base))}},transformSearchClient:n=>{const r=Gi(n.search,500);return{...n,search:async(...o)=>r(...o)}}}};const Sy=me({name:"Docsearch",props:{containerId:{type:String,required:!1,default:"docsearch-container"},options:{type:Object,required:!0}},setup(e){const t=Fn(),n=rf(),r=wy(),o=Q(()=>{var a;return{...e.options,...(a=e.options.locales)==null?void 0:a[t.value]}}),i=[],s=()=>{var l,u;const a=(u=(l=o.value.searchParameters)==null?void 0:l.facetFilters)!=null?u:[];i.splice(0,i.length,`lang:${n.value}`,...oe(a)?a:[a]),Ey({...r,...o.value,container:`#${e.containerId}`,searchParameters:{...o.value.searchParameters,facetFilters:i}})};return Ye(()=>{s(),lt([t,o],([a,l],[u,c])=>{a!==u&&JSON.stringify(l)!==JSON.stringify(c)&&s()}),lt(n,(a,l)=>{if(a!==l){const u=i.findIndex(c=>c===`lang:${l}`);u>-1&&i.splice(u,1,`lang:${a}`)}})}),()=>he("div",{id:e.containerId})}}),Py={appId:"4ZF3BCJTP5",apiKey:"09ff75bbe16bc6e166e103ffb57e10ea",indexName:"fesjs",locales:{"/":{placeholder:"搜索文档"}}},Cy=Ot({enhance({app:e}){e.component("Docsearch",()=>he(Sy,{options:Py}))}});function Iy(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(o){o(n)}),(r=e.get("*"))&&r.slice().map(function(o){o(t,n)})}}}const Gu=Symbol("pwaEvent"),ky=()=>{const e=Fe(Gu);if(!e)throw new Error("usePwaEvent() is called without provider.");return e},Ay=e=>{const t=e.waiting;if(!t)return;const n=new MessageChannel;t.postMessage({type:"SKIP_WAITING"},[n.port2])},xy="service-worker.js",Ty=Ot({setup(){const e=(...n)=>console.log("[@vuepress/plugin-pwa]",...n),t=Iy();Bt(Gu,t),Ye(async()=>{const{register:n}=await B(()=>import("./index.0b6f9a66.js"),[]);n(jo(xy),{ready(r){e("Service worker is active."),t.emit("ready",r)},registered(r){e("Service worker has been registered."),t.emit("registered",r)},cached(r){e("Content has been cached for offline use."),t.emit("cached",r)},updatefound(r){e("New content is downloading."),t.emit("updatefound",r)},updated(r){e("New content is available, please refresh."),t.emit("updated",r)},offline(){e("No internet connection found. App is running in offline mode."),t.emit("offline")},error(r){e("Error during service worker registration:",r),t.emit("error",r)}})})}});const Ly=me({name:"PwaPopup",props:{locales:{type:Object,required:!1,default:()=>({})}},setup(e){const t=ky(),n=Fn(),r=Q(()=>{var a;return(a=e.locales[n.value])!=null?a:{message:"New content is available.",buttonText:"Refresh"}}),o=Ce(!1),i=Ce(null),s=()=>{o.value=!1,i.value&&(Ay(i.value),location.reload(!0))};return t.on("updated",a=>{a&&(i.value=a,o.value=!0)}),()=>he($n,{name:"pwa-popup"},()=>o.value?he("div",{class:"pwa-popup"},[r.value.message,he("br"),he("button",{onClick:s},r.value.buttonText)]):null)}}),Ry={"/":{message:"发现新内容可用",buttonText:"刷新"}},jy=Ot({rootComponents:[me(()=>()=>he(Ly,{locales:Ry}))]}),Ml=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,Dy=()=>window.scrollTo({top:0,behavior:"smooth"});const Ny=me({name:"BackToTop",setup(){const e=Ce(0),t=Q(()=>e.value>300),n=Gi(()=>{e.value=Ml()},100);Ye(()=>{e.value=Ml(),window.addEventListener("scroll",()=>n())});const r=he("div",{class:"back-to-top",onClick:Dy});return()=>he($n,{name:"back-to-top"},()=>t.value?r:null)}}),My=Ot({rootComponents:[Ny]}),Qr=[eh,oh,vh,bh,Ch,h_,Cy,Ty,jy,My];var $y=Ce(lf),Xu=Oo({key:"",path:"",title:"",lang:"",frontmatter:{},excerpt:"",headers:[]}),an=Ce(Xu),Vt=()=>an,ef=Symbol(""),At=()=>{const e=Fe(ef);if(!e)throw new Error("usePageFrontmatter() is called without provider.");return e},tf=Symbol(""),Hy=()=>{const e=Fe(tf);if(!e)throw new Error("usePageHead() is called without provider.");return e},Fy=Symbol(""),nf=Symbol(""),rf=()=>{const e=Fe(nf);if(!e)throw new Error("usePageLang() is called without provider.");return e},cs=Symbol(""),Fn=()=>{const e=Fe(cs);if(!e)throw new Error("useRouteLocale() is called without provider.");return e},cn=Ce(Vp),us=()=>cn,of=Symbol(""),fs=()=>{const e=Fe(of);if(!e)throw new Error("useSiteLocaleData() is called without provider.");return e},By=Symbol(""),nn=Mn({resolvePageData:async e=>{const t=$y.value[e],n=await(t==null?void 0:t());return n!=null?n:Xu},resolvePageFrontmatter:e=>e.frontmatter,resolvePageHead:(e,t,n)=>{const r=Oe(t.description)?t.description:n.description,o=[...oe(t.head)?t.head:[],...n.head,["title",{},e],["meta",{name:"description",content:r}]];return Up(o)},resolvePageHeadTitle:(e,t)=>`${e.title?`${e.title}`:""}${t.title?` | ${t.title}`:""}`,resolvePageLang:e=>e.lang||"en",resolveRouteLocale:(e,t)=>Hc(e,t),resolveSiteLocaleData:(e,t)=>({...e,...e.locales[t]})}),ds=me({name:"ClientOnly",setup(e,t){const n=Ce(!1);return Ye(()=>{n.value=!0}),()=>{var r,o;return n.value?(o=(r=t.slots).default)==null?void 0:o.call(r):null}}}),Vy=me({name:"Content",props:{pageKey:{type:String,required:!1,default:""}},setup(e){const t=Vt(),n=Q(()=>Fc[e.pageKey||t.value.key]);return()=>n.value?he(n.value):he("div","404 Not Found")}}),qy="Layout",Uy="NotFound",zy=Qr.reduce((e,t)=>({...e,...t.layouts}),{}),$l=me({name:"Vuepress",setup(){const e=Vt(),t=Q(()=>{let n;if(e.value.path){const r=e.value.frontmatter.layout;Oe(r)?n=r:n=qy}else n=Uy;return zy[n]});return()=>he(t.value)}}),jo=e=>wr(e)?e:`${us().value.base}${$c(e)}`;const Ky=[["v-8daa1a0e","/",{title:"首页"},["/index.html","/README.md"]],["v-fffb8e28","/guide/",{title:"介绍"},["/guide/index.html","/guide/README.md"]],["v-0cca110a","/guide/builder.html",{title:"支持 Vite 和 Webpack 双构建"},["/guide/builder","/guide/builder.md"]],["v-85fa9b2a","/guide/config.html",{title:"编译时配置"},["/guide/config","/guide/config.md"]],["v-d7fa887a","/guide/contributing.html",{title:"贡献指南"},["/guide/contributing","/guide/contributing.md"]],["v-884fd4bc","/guide/css.html",{title:"使用 css"},["/guide/css","/guide/css.md"]],["v-040800dc","/guide/directory-structure.html",{title:"目录结构"},["/guide/directory-structure","/guide/directory-structure.md"]],["v-ef8c5e10","/guide/env.html",{title:"环境变量"},["/guide/env","/guide/env.md"]],["v-37e1c06f","/guide/faq.html",{title:"常见问题"},["/guide/faq","/guide/faq.md"]],["v-fb0f0066","/guide/getting-started.html",{title:"快速上手"},["/guide/getting-started","/guide/getting-started.md"]],["v-528b8b6c","/guide/image.html",{title:"使用图片"},["/guide/image","/guide/image.md"]],["v-00cf7e23","/guide/mock.html",{title:"Mock 数据"},["/guide/mock","/guide/mock.md"]],["v-1d14d5cc","/guide/plugin.html",{title:"插件"},["/guide/plugin","/guide/plugin.md"]],["v-7b96e3a4","/guide/public.html",{title:"静态资源"},["/guide/public","/guide/public.md"]],["v-6320961c","/guide/route.html",{title:"路由"},["/guide/route","/guide/route.md"]],["v-3dba8814","/guide/runtime-config.html",{title:"运行时配置"},["/guide/runtime-config","/guide/runtime-config.md"]],["v-7b48519a","/guide/template.html",{title:"HTML 模板"},["/guide/template","/guide/template.md"]],["v-4acab794","/guide/upgrade3.html",{title:"从 2.0.x 迁移到 3.0.x"},["/guide/upgrade3","/guide/upgrade3.md"]],["v-a1a49808","/reference/api.html",{title:"API"},["/reference/api","/reference/api.md"]],["v-a951be94","/reference/cli.html",{title:"命令行接口"},["/reference/cli","/reference/cli.md"]],["v-76cd065c","/reference/api/",{title:"API"},["/reference/api/index.html","/reference/api/README.md"]],["v-76cb52e8","/reference/cli/",{title:"命令行工具"},["/reference/cli/index.html","/reference/cli/README.md"]],["v-2c05b6e0","/reference/config/",{title:""},["/reference/config/index.html","/reference/config/README.md"]],["v-d61a9282","/reference/plugin/",{title:"介绍"},["/reference/plugin/index.html","/reference/plugin/README.md"]],["v-494b840e","/reference/plugin/dev/",{title:"插件介绍"},["/reference/plugin/dev/index.html","/reference/plugin/dev/README.md"]],["v-c5618810","/reference/plugin/dev/api.html",{title:"插件 API"},["/reference/plugin/dev/api","/reference/plugin/dev/api.md"]],["v-2fe128e7","/reference/plugin/plugins/access.html",{title:"@fesjs/plugin-access"},["/reference/plugin/plugins/access","/reference/plugin/plugins/access.md"]],["v-323bda7e","/reference/plugin/plugins/editor.html",{title:"@fesjs/plugin-monaco-editor"},["/reference/plugin/plugins/editor","/reference/plugin/plugins/editor.md"]],["v-c253c956","/reference/plugin/plugins/enums.html",{title:"@fesjs/plugin-enums"},["/reference/plugin/plugins/enums","/reference/plugin/plugins/enums.md"]],["v-0a0e491c","/reference/plugin/plugins/icon.html",{title:"@fesjs/plugin-icon"},["/reference/plugin/plugins/icon","/reference/plugin/plugins/icon.md"]],["v-3cd5a4ef","/reference/plugin/plugins/jest.html",{title:"@fesjs/plugin-jest"},["/reference/plugin/plugins/jest","/reference/plugin/plugins/jest.md"]],["v-355ee23e","/reference/plugin/plugins/layout.html",{title:"@fesjs/plugin-layout"},["/reference/plugin/plugins/layout","/reference/plugin/plugins/layout.md"]],["v-411c0c9e","/reference/plugin/plugins/locale.html",{title:"@fesjs/plugin-locale"},["/reference/plugin/plugins/locale","/reference/plugin/plugins/locale.md"]],["v-56ab05de","/reference/plugin/plugins/login.html",{title:"@fesjs/plugin-login"},["/reference/plugin/plugins/login","/reference/plugin/plugins/login.md"]],["v-3c4e521e","/reference/plugin/plugins/model.html",{title:"@fesjs/plugin-model"},["/reference/plugin/plugins/model","/reference/plugin/plugins/model.md"]],["v-6f2f6a5a","/reference/plugin/plugins/pinia.html",{title:"@fesjs/plugin-pinia"},["/reference/plugin/plugins/pinia","/reference/plugin/plugins/pinia.md"]],["v-b15becb0","/reference/plugin/plugins/qiankun.html",{title:"@fesjs/plugin-qiankun"},["/reference/plugin/plugins/qiankun","/reference/plugin/plugins/qiankun.md"]],["v-41dee210","/reference/plugin/plugins/request.html",{title:"@fesjs/plugin-request"},["/reference/plugin/plugins/request","/reference/plugin/plugins/request.md"]],["v-5bf80046","/reference/plugin/plugins/sass.html",{title:"@fesjs/plugin-sass"},["/reference/plugin/plugins/sass","/reference/plugin/plugins/sass.md"]],["v-317f9008","/reference/plugin/plugins/swc.html",{title:"@fesjs/plugin-swc"},["/reference/plugin/plugins/swc","/reference/plugin/plugins/swc.md"]],["v-5f4c684e","/reference/plugin/plugins/vuex.html",{title:"@fesjs/plugin-vuex"},["/reference/plugin/plugins/vuex","/reference/plugin/plugins/vuex.md"]],["v-1c0edac3","/reference/plugin/plugins/watermark.html",{title:"@fesjs/plugin-watermark"},["/reference/plugin/plugins/watermark","/reference/plugin/plugins/watermark.md"]],["v-392e58ee","/reference/plugin/plugins/windicss.html",{title:"@fesjs/plugin-windicss"},["/reference/plugin/plugins/windicss","/reference/plugin/plugins/windicss.md"]],["v-3706649a","/404.html",{title:""},["/404"]]];var Wy=()=>Ky.reduce((e,[t,n,r,o])=>(e.push({name:t,path:n,component:$l,meta:r},...o.map(i=>({path:i,redirect:n}))),e),[{name:"404",path:"/:catchAll(.*)",component:$l}]),Jy=um,Qy=()=>{const e=Wm({history:Jy(Mc(cn.value.base)),routes:Wy(),scrollBehavior:(t,n,r)=>r||(t.hash?{el:t.hash}:{top:0})});return e.beforeResolve(async(t,n)=>{var r;(t.path!==n.path||n===St)&&([an.value]=await Promise.all([nn.resolvePageData(t.name),(r=Fc[t.name])==null?void 0:r.__asyncLoader()]))}),e},Zy=e=>{e.component("ClientOnly",ds),e.component("Content",Vy)},Yy=(e,t)=>{const n=Q(()=>nn.resolveRouteLocale(cn.value.locales,t.currentRoute.value.path)),r=Q(()=>nn.resolveSiteLocaleData(cn.value,n.value)),o=Q(()=>nn.resolvePageFrontmatter(an.value)),i=Q(()=>nn.resolvePageHeadTitle(an.value,r.value)),s=Q(()=>nn.resolvePageHead(i.value,o.value,r.value)),a=Q(()=>nn.resolvePageLang(an.value));return e.provide(cs,n),e.provide(of,r),e.provide(ef,o),e.provide(Fy,i),e.provide(tf,s),e.provide(nf,a),Object.defineProperties(e.config.globalProperties,{$frontmatter:{get:()=>o.value},$head:{get:()=>s.value},$headTitle:{get:()=>i.value},$lang:{get:()=>a.value},$page:{get:()=>an.value},$routeLocale:{get:()=>n.value},$site:{get:()=>cn.value},$siteLocale:{get:()=>r.value},$withBase:{get:()=>jo}}),{pageData:an,pageFrontmatter:o,pageHead:s,pageHeadTitle:i,pageLang:a,routeLocale:n,siteData:cn,siteLocaleData:r}},Gy=()=>{const e=Jt(),t=Hy(),n=rf(),r=Ce([]),o=()=>{t.value.forEach(s=>{const a=Xy(s);a&&r.value.push(a)})},i=()=>{document.documentElement.lang=n.value,r.value.forEach(s=>{s.parentNode===document.head&&document.head.removeChild(s)}),r.value.splice(0,r.value.length),t.value.forEach(s=>{const a=eb(s);a!==null&&(document.head.appendChild(a),r.value.push(a))})};Bt(By,i),Ye(()=>{o(),i(),lt(()=>e.path,()=>i())})},Xy=([e,t,n=""])=>{const r=Object.entries(t).map(([a,l])=>Oe(l)?`[${a}="${l}"]`:l===!0?`[${a}]`:"").join(""),o=`head > ${e}${r}`;return Array.from(document.querySelectorAll(o)).find(a=>a.innerText===n)||null},eb=([e,t,n])=>{if(!Oe(e))return null;const r=document.createElement(e);return Yi(t)&&Object.entries(t).forEach(([o,i])=>{Oe(i)?r.setAttribute(o,i):i===!0&&r.setAttribute(o,"")}),Oe(n)&&r.appendChild(document.createTextNode(n)),r},tb=Fp,nb=async()=>{var n;const e=tb({name:"VuepressApp",setup(){var r;Gy();for(const o of Qr)(r=o.setup)==null||r.call(o);return()=>[he(Yc),...Qr.flatMap(({rootComponents:o=[]})=>o.map(i=>he(i)))]}}),t=Qy();Zy(e),Yy(e,t);for(const r of Qr)await((n=r.enhance)==null?void 0:n.call(r,{app:e,router:t,siteData:cn}));return e.use(t),{app:e,router:t}};nb().then(({app:e,router:t})=>{t.isReady().then(()=>{e.mount("#app")})});export{Re as _,ae as a,ye as b,ne as c,nb as createVueApp,Kt as d,Me as e,tp as f,J as o,Tt as r,qe as w};
|