pages/assets/chunks/framework.1169fbc9.js

3 lines
80 KiB
JavaScript
Raw Normal View History

function ns(e,t){const n=Object.create(null),s=e.split(",");for(let r=0;r<s.length;r++)n[s[r]]=!0;return t?r=>!!n[r.toLowerCase()]:r=>!!n[r]}const te={},dt=[],Pe=()=>{},Vi=()=>!1,qi=/^on[^a-z]/,Bt=e=>qi.test(e),ss=e=>e.startsWith("onUpdate:"),ie=Object.assign,rs=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},zi=Object.prototype.hasOwnProperty,z=(e,t)=>zi.call(e,t),j=Array.isArray,ht=e=>pn(e)==="[object Map]",Tr=e=>pn(e)==="[object Set]",K=e=>typeof e=="function",se=e=>typeof e=="string",is=e=>typeof e=="symbol",ee=e=>e!==null&&typeof e=="object",Ar=e=>ee(e)&&K(e.then)&&K(e.catch),Sr=Object.prototype.toString,pn=e=>Sr.call(e),Yi=e=>pn(e).slice(8,-1),Or=e=>pn(e)==="[object Object]",os=e=>se(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Pt=ns(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),gn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Ji=/-(\w)/g,Le=gn(e=>e.replace(Ji,(t,n)=>n?n.toUpperCase():"")),Xi=/\B([A-Z])/g,lt=gn(e=>e.replace(Xi,"-$1").toLowerCase()),mn=gn(e=>e.charAt(0).toUpperCase()+e.slice(1)),en=gn(e=>e?`on${mn(e)}`:""),Lt=(e,t)=>!Object.is(e,t),Fn=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},sn=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Qi=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Zi=e=>{const t=se(e)?Number(e):NaN;return isNaN(t)?e:t};let Fs;const Un=()=>Fs||(Fs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ls(e){if(j(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=se(s)?no(s):ls(s);if(r)for(const i in r)t[i]=r[i]}return t}else{if(se(e))return e;if(ee(e))return e}}const Gi=/;(?![^(]*\))/g,eo=/:([^]+)/,to=/\/\*[^]*?\*\//g;function no(e){const t={};return e.replace(to,"").split(Gi).forEach(n=>{if(n){const s=n.split(eo);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function cs(e){let t="";if(se(e))t=e;else if(j(e))for(let n=0;n<e.length;n++){const s=cs(e[n]);s&&(t+=s+" ")}else if(ee(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const so="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",ro=ns(so);function Pr(e){return!!e||e===""}const ba=e=>se(e)?e:e==null?"":j(e)||ee(e)&&(e.toString===Sr||!K(e.toString))?JSON.stringify(e,Ir,2):String(e),Ir=(e,t)=>t&&t.__v_isRef?Ir(e,t.value):ht(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r])=>(n[`${s} =>`]=r,n),{})}:Tr(t)?{[`Set(${t.size})`]:[...t.values()]}:ee(t)&&!j(t)&&!Or(t)?String(t):t;let be;class io{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=be,!t&&be&&(this.index=(be.scopes||(be.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=be;try{return be=this,t()}finally{be=n}}}on(){be=this}off(){be=this.parent}stop(t){if(this._active){let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.scopes)for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0,this._active=!1}}}function oo(e,t=be){t&&t.active&&t.effects.push(e)}function Rr(){return be}function lo(e){be&&be.cleanups.push(e)}const as=e=>{const t=new Set(e);return t.w=0,t.n=0,t},Fr=e=>(e.w&ze)>0,Mr=e=>(e.n&ze)>0,co=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=ze},ao=e=>{const{deps:t}=e;if(t.length){let n=0;for(let s=0;s<t.length;s++){const r=t[s];Fr(r)&&!Mr(r)?r.delete(e):t[n++]=r,r.w&=~ze,r.n&=~ze}t.length=n}},rn=new WeakMap;let St=0,ze=1;const Kn=30;let Se;const st=Symbol(""),Wn=Symbol("");class us{constructor(t,n=null,s){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,oo(this,s)}run(){if(!this.active)return this.fn();let t=Se,n=We;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=Se,Se=this,We=!0,ze=1<<++St,St<=Kn?co(this):Ms(this),this.fn()}finally{St<=Kn&&ao(this),ze=1<<--St
`),l=l.slice(0,-1),o&&(l=l.replace(/^ *(\$|>) /gm,"").trim()),ha(l).then(()=>{n.classList.add("copied"),clearTimeout(e.get(n));const c=setTimeout(()=>{n.classList.remove("copied"),n.blur(),e.delete(n)},2e3);e.set(n,c)})}})}}async function ha(e){try{return navigator.clipboard.writeText(e)}catch{const t=document.createElement("textarea"),n=document.activeElement;t.value=e,t.setAttribute("readonly",""),t.style.contain="strict",t.style.position="absolute",t.style.left="-9999px",t.style.fontSize="12pt";const s=document.getSelection(),r=s?s.rangeCount>0&&s.getRangeAt(0):null;document.body.appendChild(t),t.select(),t.selectionStart=0,t.selectionEnd=e.length,document.execCommand("copy"),document.body.removeChild(t),r&&(s.removeAllRanges(),s.addRange(r)),n&&n.focus()}}function qa(e,t){let n=[],s=!0;const r=i=>{if(s){s=!1;return}const o=i.map(Er);n.forEach((l,c)=>{const u=o.findIndex(d=>d==null?void 0:d.isEqualNode(l??null));u!==-1?delete o[u]:(l==null||l.remove(),delete n[c])}),o.forEach(l=>l&&document.head.appendChild(l)),n=[...n,...o].filter(Boolean)};Zr(()=>{const i=e.data,o=t.value,l=i&&i.description,c=i&&i.frontmatter.head||[],u=ji(o,i);u!==document.title&&(document.title=u);const d=l||o.description;let h=document.querySelector("meta[name=description]");h?h.getAttribute("content")!==d&&h.setAttribute("content",d):Er(["meta",{name:"description",content:d}]),r(Di(o.head,ga(c)))})}function Er([e,t,n]){const s=document.createElement(e);for(const r in t)s.setAttribute(r,t[r]);return n&&(s.innerHTML=n),e==="script"&&!t.async&&(s.async=!1),s}function pa(e){return e[0]==="meta"&&e[1]&&e[1].name==="description"}function ga(e){return e.filter(t=>!pa(t))}const kn=new Set,Ui=()=>document.createElement("link"),ma=e=>{const t=Ui();t.rel="prefetch",t.href=e,document.head.appendChild(t)},_a=e=>{const t=new XMLHttpRequest;t.open("GET",e,t.withCredentials=!0),t.send()};let Gt;const ya=xe&&(Gt=Ui())&&Gt.relList&&Gt.relList.supports&&Gt.relList.supports("prefetch")?ma:_a;function za(){if(!xe||!window.IntersectionObserver)return;let e;if((e=navigator.connection)&&(e.saveData||/2g/.test(e.effectiveType)))return;const t=window.requestIdleCallback||setTimeout;let n=null;const s=()=>{n&&n.disconnect(),n=new IntersectionObserver(i=>{i.forEach(o=>{if(o.isIntersecting){const l=o.target;n.unobserve(l);const{pathname:c}=l;if(!kn.has(c)){kn.add(c);const u=aa(c);u&&ya(u)}}})}),t(()=>{document.querySelectorAll("#app a").forEach(i=>{const{hostname:o,pathname:l}=new URL(i.href instanceof SVGAnimatedString?i.href.animVal:i.href,i.baseURI),c=l.match(/\.\w+$/);c&&c[0]!==".html"||i.target!=="_blank"&&o===location.hostname&&(l!==location.pathname?n.observe(i):kn.add(l))})})};Et(s);const r=ki();qe(()=>r.path,s),Sn(()=>{n&&n.disconnect()})}export{ua as $,Ca as A,pl as B,xa as C,Ta as D,Kr as E,pe as F,Ba as G,ae as H,Ea as I,Ni as J,ki as K,Ul as L,_t as M,ls as N,wn as O,ja as P,Ia as Q,bn as R,Ha as S,Ai as T,Ol as U,Ma as V,Sa as W,Fa as X,Oa as Y,qa as Z,Na as _,Ci as a,Da as a0,oa as a1,Ua as a2,Ka as a3,ot as a4,La as a5,ka as a6,aa as a7,$a as a8,za as a9,Va as aa,Wa as ab,Gn as ac,bi as b,Pa as c,si as d,Ra as e,br as f,ce as g,ge as h,ea as i,Et as j,wi as k,Vr as l,wa as m,cs as n,_i as o,va as p,Gc as q,Aa as r,xe as s,ba as t,la as u,kc as v,Go as w,qe as x,Zr as y,Sn as z};