update: 添加bobj相关内容
This commit is contained in:
1 parent
d20dc84d9d
commit
01fb8bb7c2
8 files changed
+72
-2
No files matched your search
@@ -0,0 +1,17 @@
|
||||
var Cd=Object.defineProperty;var Od=(e,t,n)=>t in e?Cd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ad=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Cn=(e,t,n)=>Od(e,typeof t!="symbol"?t+"":t,n);var MS=Ad((cn,fn)=>{(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();/**
|
||||
* @vue/shared v3.5.14
|
||||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||||
* @license MIT
|
||||
**//*! #__NO_SIDE_EFFECTS__ */function Ri(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Te={},vr=[],st=()=>{},Id=()=>!1,us=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Fi=e=>e.startsWith("onUpdate:"),je=Object.assign,Ni=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Pd=Object.prototype.hasOwnProperty,_e=(e,t)=>Pd.call(e,t),Y=Array.isArray,gr=e=>cs(e)==="[object Map]",Lu=e=>cs(e)==="[object Set]",ee=e=>typeof e=="function",ye=e=>typeof e=="string",yn=e=>typeof e=="symbol",de=e=>e!==null&&typeof e=="object",Uo=e=>(de(e)||ee(e))&&ee(e.then)&&ee(e.catch),ku=Object.prototype.toString,cs=e=>ku.call(e),xd=e=>cs(e).slice(8,-1),Li=e=>cs(e)==="[object Object]",ki=e=>ye(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Kr=Ri(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),fs=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Md=/-(\w)/g,St=fs(e=>e.replace(Md,(t,n)=>n?n.toUpperCase():"")),$d=/\B([A-Z])/g,wn=fs(e=>e.replace($d,"-$1").toLowerCase()),ds=fs(e=>e.charAt(0).toUpperCase()+e.slice(1)),Lo=fs(e=>e?`on${ds(e)}`:""),pt=(e,t)=>!Object.is(e,t),ko=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Bu=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},li=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Rd=e=>{const t=ye(e)?Number(e):NaN;return isNaN(t)?e:t};let Na;const ps=()=>Na||(Na=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ge(e){if(Y(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=ye(r)?kd(r):Ge(r);if(o)for(const s in o)t[s]=o[s]}return t}else if(ye(e)||de(e))return e}const Fd=/;(?![^(]*\))/g,Nd=/:([^]+)/,Ld=/\/\*[^]*?\*\//g;function kd(e){const t={};return e.replace(Ld,"").split(Fd).forEach(n=>{if(n){const r=n.split(Nd);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function U(e){let t="";if(ye(e))t=e;else if(Y(e))for(let n=0;n<e.length;n++){const r=U(e[n]);r&&(t+=r+" ")}else if(de(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Bd="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Dd=Ri(Bd);function Du(e){return!!e||e===""}const ju=e=>!!(e&&e.__v_isRef===!0),Re=e=>ye(e)?e:e==null?"":Y(e)||de(e)&&(e.toString===ku||!ee(e.toString))?ju(e)?Re(e.value):JSON.stringify(e,Vu,2):String(e),Vu=(e,t)=>ju(t)?Vu(e,t.value):gr(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o],s)=>(n[Ds(r,s)+" =>"]=o,n),{})}:Lu(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Ds(n))}:yn(t)?Ds(t):de(t)&&!Y(t)&&!Li(t)?String(t):t,Ds=(e,t="")=>{var n;return yn(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
||||
* @vue/reactivity v3.5.14
|
||||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||||
* @license MIT
|
||||
**/let et;class jd{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=et,!t&&et&&(this.index=(et.scopes||(et.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=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=et;try{return et=this,t()}finally{et=n}}}on(){++this._on===1&&(this.prevScope=et,et=this)}off(){this._on>0&&--this._on===0&&(et=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=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}}}function Hu(){return et}function Vd(e,t=!1){et&&et.cleanups.push(e)}let Ce;const js=new WeakSet;class zu{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,et&&et.active&&et.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,js.has(this)&&(js.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Ku(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,La(this),Wu(this);const t=Ce,n=Lt;Ce=this,Lt=!0;try{return this.fn()}finally{Gu(this),Ce=t,Lt=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)ji(t);this.deps=this.depsTail=void 0,La(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?js.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){ui(this)&&this.run()}get dirty(){return ui(this)}}let Uu=0,Wr,Gr;function Ku(e,t=!1){if(e.flags|=8,t){e.next=Gr,Gr=e;return}e.next=Wr,Wr=e}function Bi(){Uu++}function Di(){if(--Uu>0)return;if(Gr){let t=Gr;for(Gr=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Wr;){let t=Wr;for(Wr=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function Wu(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Gu(e){let t,n=e.depsTail,r=n;for(;r;){const o=r.prevDep;r.version===-1?(r===n&&(n=o),ji(r),Hd(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=o}e.deps=t,e.depsTail=n}function ui(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(qu(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function qu(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===to)||(e.globalVersion=to,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!ui(e))))return;e.flags|=2;const t=e.dep,n=Ce,r=Lt;Ce=e,Lt=!0;try{Wu(e);const o=e.fn(e._value);(t.version===0||pt(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{Ce=n,Lt=r,Gu(e),e.flags&=-3}}function ji(e,t=!1){const{dep:n,prevSub:r,nextSub:o}=e;if(r&&(r.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let s=n.computed.deps;s;s=s.nextDep)ji(s,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Hd(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Lt=!0;const Yu=[];function vn(){Yu.push(Lt),Lt=!1}function gn(){const e=Yu.pop();Lt=e===void 0?!0:e}function La(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Ce;Ce=void 0;try{t()}finally{Ce=n}}}let to=0;class zd{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class hs{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!Ce||!Lt||Ce===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Ce)n=this.activeLink=new zd(Ce,this),Ce.deps?(n.prevDep=Ce.depsTail,Ce.depsTail.nextDep=n,Ce.depsTail=n):Ce.deps=Ce.depsTail=n,Ju(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=Ce.depsTail,n.nextDep=void 0,Ce.depsTail.nextDep=n,Ce.depsTail=n,Ce.deps===n&&(Ce.deps=r)}return n}trigger(t){this.version++,to++,this.notify(t)}notify(t){Bi();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Di()}}}function Ju(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dLine truncated
|
||||
* @vue/runtime-core v3.5.14
|
||||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||||
* @license MIT
|
||||
**/function ho(e,t,n,r){try{return r?e(...r):e()}catch(o){ms(o,t,n)}}function Bt(e,t,n,r){if(ee(e)){const o=ho(e,t,n,r);return o&&Uo(o)&&o.catch(s=>{ms(s,t,n)}),o}if(Y(e)){const o=[];for(let s=0;s<e.length;s++)o.push(Bt(e[s],t,n,r));return o}}function ms(e,t,n,r=!0){const o=t?t.vnode:null,{errorHandler:s,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||Te;if(t){let a=t.parent;const l=t.proxy,c=`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const u=a.ec;if(u){for(let f=0;f<u.length;f++)if(u[f](e,l,c)===!1)return}a=a.parent}if(s){vn(),ho(s,null,10,[e,l,c]),gn();return}}yp(e,n,o,r,i)}function yp(e,t,n,r=!0,o=!1){if(o)throw e;console.error(e)}const ct=[];let Kt=-1;const br=[];let Pn=null,fr=0;const ic=Promise.resolve();let qo=null;function Ne(e){const t=qo||ic;return e?t.then(this?e.bind(this):e):t}function wp(e){let t=Kt+1,n=ct.length;for(;t<n;){const r=t+n>>>1,o=ct[r],s=ro(o);s<e||s===e&&o.flags&2?t=r+1:n=r}return t}function Ki(e){if(!(e.flags&1)){const t=ro(e),n=ct[ct.length-1];!n||!(e.flags&2)&&t>=ro(n)?ct.push(e):ct.splice(wp(t),0,e),e.flags|=1,ac()}}function ac(){qo||(qo=ic.then(uc))}function _p(e){Y(e)?br.push(...e):Pn&&e.id===-1?Pn.splice(fr+1,0,e):e.flags&1||(br.push(e),e.flags|=1),ac()}function Ba(e,t,n=Kt+1){for(;n<ct.length;n++){const r=ct[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;ct.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function lc(e){if(br.length){const t=[...new Set(br)].sort((n,r)=>ro(n)-ro(r));if(br.length=0,Pn){Pn.push(...t);return}for(Pn=t,fr=0;fr<Pn.length;fr++){const n=Pn[fr];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Pn=null,fr=0}}const ro=e=>e.id==null?e.flags&2?-1:1/0:e.id;function uc(e){try{for(Kt=0;Kt<ct.length;Kt++){const t=ct[Kt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),ho(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Kt<ct.length;Kt++){const t=ct[Kt];t&&(t.flags&=-2)}Kt=-1,ct.length=0,lc(),qo=null,(ct.length||br.length)&&uc()}}let He=null,cc=null;function Yo(e){const t=He;return He=e,cc=e&&e.type.__scopeId||null,t}function ne(e,t=He,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&Xa(-1);const s=Yo(t);let i;try{i=e(...o)}finally{Yo(s),r._d&&Xa(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function Ln(e,t){if(He===null)return e;const n=Ss(He),r=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[s,i,a,l=Te]=t[o];s&&(ee(s)&&(s={mounted:s,updated:s}),s.deep&&an(i),r.push({dir:s,instance:n,value:i,oldValue:void 0,arg:a,modifiers:l}))}return e}function Un(e,t,n,r){const o=e.dirs,s=t&&t.dirs;for(let i=0;i<o.length;i++){const a=o[i];s&&(a.oldValue=s[i].value);let l=a.dir[r];l&&(vn(),Bt(l,n,8,[e.el,a,e,t]),gn())}}const fc=Symbol("_vte"),dc=e=>e.__isTeleport,qr=e=>e&&(e.disabled||e.disabled===""),Da=e=>e&&(e.defer||e.defer===""),ja=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Va=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,di=(e,t)=>{const n=e&&e.to;return ye(n)?t?t(n):null:n},pc={name:"Teleport",__isTeleport:!0,process(e,t,n,r,o,s,i,a,l,c){const{mc:u,pc:f,pbc:d,o:{insert:h,querySelector:p,createText:v,createComment:_}}=c,y=qr(t.props);let{shapeFlag:I,children:T,dynamicChildren:C}=t;if(e==null){const w=t.el=v(""),P=t.anchor=v("");h(w,n,r),h(P,n,r);const B=(M,q)=>{I&16&&(o&&o.isCE&&(o.ce._teleportTarget=M),u(T,M,q,o,s,i,a,l))},j=()=>{const M=t.target=di(t.props,p),q=hc(M,t,v,h);M&&(i!=="svg"&&ja(M)?i="svg":i!=="mathml"&&Va(M)&&(i="mathml"),y||(B(M,q),Bo(t,!1)))};y&&(B(n,P),Bo(t,!0)),Da(t.props)?lt(()=>{j(),t.el.__isMounted=!0},s):j()}else{if(Da(t.props)&&!e.el.__isMounted){lt(()=>{pc.process(e,t,n,r,o,s,i,a,l,c),delete e.el.__isMounted},s);return}t.el=e.el,t.targetStart=e.targetStart;const w=t.anchor=e.anchor,P=t.target=e.target,B=t.targetAnchor=e.targetAnchor,j=qr(e.props),M=j?n:P,q=j?w:B;if(i==="svg"||ja(P)?i="svg":(i==="mathml"||Va(P))&&(i="mathml"),C?(d(e.dynamicChildren,C,M,o,s,i,a),Zi(e,t,!0)):l||f(e,t,M,q,o,s,i,a,!1),y)j?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Ao(t,n,w,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const te=t.target=di(t.props,p);te&&Ao(t,te,null,c,0)}else j&&Ao(t,P,B,c,1);Bo(t,y)}},remove(e,t,n,{um:r,o:{remove:o}},s){const{shapeFlag:i,children:a,anchor:l,targetStart:c,targetAnchor:u,target:f,props:d}=e;if(f&&(o(c),o(u)),s&&o(l),i&16){const h=s||!qr(d);for(let p=0;p<a.length;p++){const v=a[p];r(v,t,n,h,!!v.dynamicChildren)}}},move:Ao,hydrate:Sp};function Ao(e,t,n,{o:{insert:r},m:o},s=2){s===0&&r(e.targetAnchor,t,n);const{el:i,anchor:a,shapeFlag:l,children:c,props:u}=e,f=s===2;if(f&&r(i,t,n),(!f||qr(u))&&l&16)for(let d=0;d<c.length;d++)o(c[d],t,n,2);f&&r(a,t,n)}function Sp(e,t,n,r,o,s,{o:{nextSibling:i,parentNode:a,querySelector:l,insert:c,createText:u}},f){const d=t.target=di(t.props,l);if(d){const h=qr(t.props),p=d._lpa||d.firstChild;if(t.shapeFlag&16)if(h)t.anchor=f(i(e),t,a(e),n,r,o,s),t.targetStart=p,t.targetAnchor=p&&i(p);else{t.anchor=i(e);let v=p;for(;v;){if(v&&v.nodeType===8){if(v.data==="teleport start anchor")t.tar
Line truncated
|
||||
* @vue/runtime-dom v3.5.14
|
||||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||||
* @license MIT
|
||||
**/let yi;const tl=typeof window<"u"&&window.trustedTypes;if(tl)try{yi=tl.createPolicy("vue",{createHTML:e=>e})}catch{}const Xc=yi?e=>yi.createHTML(e):e=>e,Eh="http://www.w3.org/2000/svg",Ch="http://www.w3.org/1998/Math/MathML",tn=typeof document<"u"?document:null,nl=tn&&tn.createElement("template"),Oh={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==="svg"?tn.createElementNS(Eh,e):t==="mathml"?tn.createElementNS(Ch,e):n?tn.createElement(e,{is:n}):tn.createElement(e);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>tn.createTextNode(e),createComment:e=>tn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>tn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,s){const i=n?n.previousSibling:t.lastChild;if(o&&(o===s||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===s||!(o=o.nextSibling)););else{nl.innerHTML=Xc(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const a=nl.content;if(r==="svg"||r==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},On="transition",Lr="animation",ao=Symbol("_vtc"),Qc={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},Ah=je({},vc,Qc),Ih=e=>(e.displayName="Transition",e.props=Ah,e),ea=Ih((e,{slots:t})=>_h(Op,Ph(e),t)),Gn=(e,t=[])=>{Y(e)?e.forEach(n=>n(...t)):e&&e(...t)},rl=e=>e?Y(e)?e.some(t=>t.length>1):e.length>1:!1;function Ph(e){const t={};for(const R in e)R in Qc||(t[R]=e[R]);if(e.css===!1)return t;const{name:n="v",type:r,duration:o,enterFromClass:s=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=s,appearActiveClass:c=i,appearToClass:u=a,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,p=xh(o),v=p&&p[0],_=p&&p[1],{onBeforeEnter:y,onEnter:I,onEnterCancelled:T,onLeave:C,onLeaveCancelled:w,onBeforeAppear:P=y,onAppear:B=I,onAppearCancelled:j=T}=t,M=(R,ie,ve,Oe)=>{R._enterCancelled=Oe,qn(R,ie?u:a),qn(R,ie?c:i),ve&&ve()},q=(R,ie)=>{R._isLeaving=!1,qn(R,f),qn(R,h),qn(R,d),ie&&ie()},te=R=>(ie,ve)=>{const Oe=R?B:I,ae=()=>M(ie,R,ve);Gn(Oe,[ie,ae]),ol(()=>{qn(ie,R?l:s),Qt(ie,R?u:a),rl(Oe)||sl(ie,r,v,ae)})};return je(t,{onBeforeEnter(R){Gn(y,[R]),Qt(R,s),Qt(R,i)},onBeforeAppear(R){Gn(P,[R]),Qt(R,l),Qt(R,c)},onEnter:te(!1),onAppear:te(!0),onLeave(R,ie){R._isLeaving=!0;const ve=()=>q(R,ie);Qt(R,f),R._enterCancelled?(Qt(R,d),ll()):(ll(),Qt(R,d)),ol(()=>{R._isLeaving&&(qn(R,f),Qt(R,h),rl(C)||sl(R,r,_,ve))}),Gn(C,[R,ve])},onEnterCancelled(R){M(R,!1,void 0,!0),Gn(T,[R])},onAppearCancelled(R){M(R,!0,void 0,!0),Gn(j,[R])},onLeaveCancelled(R){q(R),Gn(w,[R])}})}function xh(e){if(e==null)return null;if(de(e))return[Gs(e.enter),Gs(e.leave)];{const t=Gs(e);return[t,t]}}function Gs(e){return Rd(e)}function Qt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[ao]||(e[ao]=new Set)).add(t)}function qn(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[ao];n&&(n.delete(t),n.size||(e[ao]=void 0))}function ol(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Mh=0;function sl(e,t,n,r){const o=e._endId=++Mh,s=()=>{o===e._endId&&r()};if(n!=null)return setTimeout(s,n);const{type:i,timeout:a,propCount:l}=$h(e,t);if(!i)return r();const c=i+"end";let u=0;const f=()=>{e.removeEventListener(c,d),s()},d=h=>{h.target===e&&++u>=l&&f()};setTimeout(()=>{u<l&&f()},a+1),e.addEventListener(c,d)}function $h(e,t){const n=window.getComputedStyle(e),r=p=>(n[p]||"").split(", "),o=r(`${On}Delay`),s=r(`${On}Duration`),i=il(o,s),a=r(`${Lr}Delay`),l=r(`${Lr}Duration`),c=il(a,l);let u=null,f=0,d=0;t===On?i>0&&(u=On,f=i,d=s.length):t===Lr?c>0&&(u=Lr,f=c,d=l.length):(f=Math.max(i,c),u=f>0?i>c?On:Lr:null,d=u?u===On?s.length:l.length:0);const h=u===On&&/\b(transform|all)(,|$)/.test(r(`${On}Property`).toString());return{type:u,timeout:f,propCount:d,hasTransform:h}}function il(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>al(n)+al(e[r])))}function al(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function ll(){return document.body.offsetHeight}function Rh(e,t,n){const r=e[ao];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const ts=Symbol("_vod"),ef=Symbol("_vsh"),go={beforeMount(e,{value:t},{transition:n}){e[ts]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):kr(e,t)},mounted(e,{value:t},{transition
Line truncated
|
||||
Reference in new issue
Block a user