Template
1
0
mirror of https://github.com/un-pany/v3-admin-vite.git synced 2025-04-23 04:19:20 +08:00
v3-admin-vite/static/vue-Cbc2VO5H.js

3 lines
130 KiB
JavaScript
Raw Normal View History

function Ns(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const te={},Xt=[],Ye=()=>{},Yc=()=>!1,Un=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),$r=e=>e.startsWith("onUpdate:"),fe=Object.assign,jr=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Jc=Object.prototype.hasOwnProperty,se=(e,t)=>Jc.call(e,t),K=Array.isArray,Zt=e=>an(e)==="[object Map]",$t=e=>an(e)==="[object Set]",Si=e=>an(e)==="[object Date]",Qc=e=>an(e)==="[object RegExp]",Q=e=>typeof e=="function",he=e=>typeof e=="string",ze=e=>typeof e=="symbol",ce=e=>e!==null&&typeof e=="object",Ur=e=>(ce(e)||Q(e))&&Q(e.then)&&Q(e.catch),Ao=Object.prototype.toString,an=e=>Ao.call(e),zc=e=>an(e).slice(8,-1),Ms=e=>an(e)==="[object Object]",Kr=e=>he(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,en=Ns(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Is=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Xc=/-(\w)/g,Ce=Is(e=>e.replace(Xc,(t,n)=>n?n.toUpperCase():"")),Zc=/\B([A-Z])/g,ke=Is(e=>e.replace(Zc,"-$1").toLowerCase()),Kn=Is(e=>e.charAt(0).toUpperCase()+e.slice(1)),Cn=Is(e=>e?`on${Kn(e)}`:""),Pe=(e,t)=>!Object.is(e,t),tn=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Po=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},ds=e=>{const t=parseFloat(e);return isNaN(t)?e:t},ps=e=>{const t=he(e)?Number(e):NaN;return isNaN(t)?e:t};let wi;const ks=()=>wi||(wi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),ef="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol",tf=Ns(ef);function Wn(e){if(K(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=he(s)?of(s):Wn(s);if(r)for(const i in r)t[i]=r[i]}return t}else if(he(e)||ce(e))return e}const nf=/;(?![^(]*\))/g,sf=/:([^]+)/,rf=/\/\*[^]*?\*\//g;function of(e){const t={};return e.replace(rf,"").split(nf).forEach(n=>{if(n){const s=n.split(sf);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function qn(e){let t="";if(he(e))t=e;else if(K(e))for(let n=0;n<e.length;n++){const s=qn(e[n]);s&&(t+=s+" ")}else if(ce(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function lf(e){if(!e)return null;let{class:t,style:n}=e;return t&&!he(t)&&(e.class=qn(t)),n&&(e.style=Wn(n)),e}const cf="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",ff=Ns(cf);function Oo(e){return!!e||e===""}function uf(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=At(e[s],t[s]);return n}function At(e,t){if(e===t)return!0;let n=Si(e),s=Si(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=ze(e),s=ze(t),n||s)return e===t;if(n=K(e),s=K(t),n||s)return n&&s?uf(e,t):!1;if(n=ce(e),s=ce(t),n||s){if(!n||!s)return!1;const r=Object.keys(e).length,i=Object.keys(t).length;if(r!==i)return!1;for(const o in e){const l=e.hasOwnProperty(o),c=t.hasOwnProperty(o);if(l&&!c||!l&&c||!At(e[o],t[o]))return!1}}return String(e)===String(t)}function Ls(e,t){return e.findIndex(n=>At(n,t))}const No=e=>!!(e&&e.__v_isRef===!0),Mo=e=>he(e)?e:e==null?"":K(e)||ce(e)&&(e.toString===Ao||!Q(e.toString))?No(e)?Mo(e.value):JSON.stringify(e,Io,2):String(e),Io=(e,t)=>No(t)?Io(e,t.value):Zt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],i)=>(n[er(s,i)+" =>"]=r,n),{})}:$t(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>er(n))}:ze(t)?er(t):ce(t)&&!K(t)&&!Ms(t)?String(t):t,er=(e,t="")=>{var n;return ze(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};let Ae;class Wr{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Ae,!t&&Ae&&(this.index=(Ae.scopes||(Ae.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=
`&&(g.tagName==="PRE"||g.tagName==="TEXTAREA")&&(q=q.slice(1)),g.textContent!==q&&(os(g,0)||qt(),g.textContent=_.children)}if(R){if(re||!I||j&48){const q=g.tagName.includes("-");for(const _e in R)(re&&(_e.endsWith("value")||_e==="indeterminate")||Un(_e)&&!en(_e)||_e[0]==="."||q)&&s(g,_e,null,R[_e],void 0,E)}else if(R.onClick)s(g,"onClick",null,R.onClick,void 0,E);else if(j&4&&Qe(R.style))for(const q in R.style)R.style[q]}let Y;(Y=R&&R.onVnodeBeforeMount)&&Me(Y,E,_),W&&nt(_,null,E,"beforeMount"),((Y=R&&R.onVnodeMounted)||W||$)&&Jl(()=>{Y&&Me(Y,E,_),$&&Z.enter(g),W&&nt(_,null,E,"mounted")},T)}return g.nextSibling},m=(g,_,E,T,M,I,C)=>{C=C||!!_.dynamicChildren;const R=_.children,j=R.length;for(let O=0;O<j;O++){const W=C?R[O]:R[O]=Ie(R[O]),Z=W.type===Tt;g?(Z&&!C&&O+1<j&&Ie(R[O+1]).type===Tt&&(c(r(g.data.slice(W.children.length)),E,i(g)),g.data=W.children),g=f(g,W,T,M,I,C)):Z&&!W.children?c(W.el=r(""),E):(os(E,1)||qt(),n(null,W,E,null,T,M,is(E),I))}return g},b=(g,_,E,T,M,I)=>{const{slotScopeIds:C}=_;C&&(M=M?M.concat(C):C);const R=o(g),j=m(i(g),_,R,E,T,M,I);return j&&zt(j)&&j.data==="]"?i(_.anchor=j):(qt(),c(_.anchor=a("]"),R,j),j)},v=(g,_,E,T,M,I)=>{if(os(g.parentElement,1)||qt(),_.el=null,I){const j=D(g);for(;;){const O=i(g);if(O&&O!==j)l(O);else break}}const C=i(g),R=o(g);return l(g),n(null,_,R,C,E,T,is(R),M),C},D=(g,_="[",E="]")=>{let T=0;for(;g;)if(g=i(g),g&&zt(g)&&(g.data===_&&T++,g.data===E)){if(T===0)return i(g);T--}return g},k=(g,_,E)=>{const T=_.parentNode;T&&T.replaceChild(g,_);let M=E;for(;M;)M.vnode.el===_&&(M.vnode.el=M.subTree.el=g),M=M.parent},S=g=>g.nodeType===1&&g.tagName==="TEMPLATE";return[u,f]}const Mi="data-allow-mismatch",du={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function os(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(Mi);)e=e.parentElement;const n=e&&e.getAttribute(Mi);if(n==null)return!1;if(n==="")return!0;{const s=n.split(",");return t===0&&s.includes("children")?!0:n.split(",").includes(du[t])}}const pu=ks().requestIdleCallback||(e=>setTimeout(e,1)),gu=ks().cancelIdleCallback||(e=>clearTimeout(e)),mu=(e=1e4)=>t=>{const n=pu(t,{timeout:e});return()=>gu(n)};function _u(e){const{top:t,left:n,bottom:s,right:r}=e.getBoundingClientRect(),{innerHeight:i,innerWidth:o}=window;return(t>0&&t<i||s>0&&s<i)&&(n>0&&n<o||r>0&&r<o)}const yu=e=>(t,n)=>{const s=new IntersectionObserver(r=>{for(const i of r)if(i.isIntersecting){s.disconnect(),t();break}},e);return n(r=>{if(r instanceof Element){if(_u(r))return t(),s.disconnect(),!1;s.observe(r)}}),()=>s.disconnect()},bu=e=>t=>{if(e){const n=matchMedia(e);if(n.matches)t();else return n.addEventListener("change",t,{once:!0}),()=>n.removeEventListener("change",t)}},vu=(e=[])=>(t,n)=>{he(e)&&(e=[e]);let s=!1;const r=o=>{s||(s=!0,i(),t(),o.target.dispatchEvent(new o.constructor(o.type,o)))},i=()=>{n(o=>{for(const l of e)o.removeEventListener(l,r)})};return n(o=>{for(const l of e)o.addEventListener(l,r,{once:!0})}),i};function Eu(e,t){if(zt(e)&&e.data==="["){let n=1,s=e.nextSibling;for(;s;){if(s.nodeType===1){if(t(s)===!1)break}else if(zt(s))if(s.data==="]"){if(--n===0)break}else s.data==="["&&n++;s=s.nextSibling}}else t(e)}const Rt=e=>!!e.type.__asyncLoader;function Cu(e){Q(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:s,delay:r=200,hydrate:i,timeout:o,suspensible:l=!0,onError:c}=e;let a=null,u,f=0;const p=()=>(f++,a=null,m()),m=()=>{let b;return a||(b=a=t().catch(v=>{if(v=v instanceof Error?v:new Error(String(v)),c)return new Promise((D,k)=>{c(v,()=>D(p()),()=>k(v),f+1)});throw v}).then(v=>b!==a&&a?a:(v&&(v.__esModule||v[Symbol.toStringTag]==="Module")&&(v=v.default),u=v,v)))};return Gn({name:"AsyncComponentWrapper",__asyncLoader:m,__asyncHydrate(b,v,D){const k=i?()=>{const S=i(D,g=>Eu(b,g));S&&(v.bum||(v.bum=[])).push(S)}:D;u?k():m().then(()=>!v.isUnmounted&&k())},get __asyncResolved(){return u},setup(){const b=ye;if(ii(b),u)return()=>ir(u,b);const v=g=>{a=null,jt(g,b,13,!s)};if(l&&b.suspense||on)return m().then(g=>()=>ir(g,b)).catch(g=>(v(g),()=>s?de(s,{error:g}):null));const D=xt(!1),k=xt(),S=xt(!!r);return r&&setTimeout(()=>{S.v