10 lines
134 KiB
JavaScript
10 lines
134 KiB
JavaScript
|
function Oe(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 Cf="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt",Tf=Oe(Cf),Sf="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",vf=Oe(Sf);function Yo(e){return!!e||e===""}function Hn(e){if(V(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=z(s)?Zo(s):Hn(s);if(r)for(const i in r)t[i]=r[i]}return t}else{if(z(e))return e;if(se(e))return e}}const wf=/;(?![^(]*\))/g,Nf=/:(.+)/;function Zo(e){const t={};return e.split(wf).forEach(n=>{if(n){const s=n.split(Nf);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Vn(e){let t="";if(z(e))t=e;else if(V(e))for(let n=0;n<e.length;n++){const s=Vn(e[n]);s&&(t+=s+" ")}else if(se(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function Of(e){if(!e)return null;let{class:t,style:n}=e;return t&&!z(t)&&(e.class=Vn(t)),n&&(e.style=Hn(n)),e}const Pf="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",Rf="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistanceLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",Af="area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr",If=Oe(Pf),Mf=Oe(Rf),kf=Oe(Af);function Ff(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=ht(e[s],t[s]);return n}function ht(e,t){if(e===t)return!0;let n=zi(e),s=zi(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=gt(e),s=gt(t),n||s)return e===t;if(n=V(e),s=V(t),n||s)return n&&s?Ff(e,t):!1;if(n=se(e),s=se(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||!ht(e[o],t[o]))return!1}}return String(e)===String(t)}function Fs(e,t){return e.findIndex(n=>ht(n,t))}const Lf=e=>z(e)?e:e==null?"":V(e)||se(e)&&(e.toString===Qo||!W(e.toString))?JSON.stringify(e,Xo,2):String(e),Xo=(e,t)=>t&&t.__v_isRef?Xo(e,t.value):Qt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r])=>(n[`${s} =>`]=r,n),{})}:Vt(t)?{[`Set(${t.size})`]:[...t.values()]}:se(t)&&!V(t)&&!Go(t)?String(t):t,Q={},Xt=[],Me=()=>{},fs=()=>!1,$f=/^on[^a-z]/,Ht=e=>$f.test(e),xr=e=>e.startsWith("onUpdate:"),ee=Object.assign,Wr=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Bf=Object.prototype.hasOwnProperty,Z=(e,t)=>Bf.call(e,t),V=Array.isArray,Qt=e=>Un(e)==="[object Map]",Vt=e=>Un(e)==="[object Set]",zi=e=>Un(e)==="[object Date]",W=e=>typeof e=="function",z=e=>typeof e=="string",gt=e=>typeof e=="symbol",se=e=>e!==null&&typeof e=="object",qr=e=>se(e)&&W(e.then)&&W(e.catch),Qo=Object.prototype.toString,Un=e=>Qo.call(e),Df=e=>Un(e).slice(8,-1),Go=e=>Un(e)==="[object Object]",zr=e=>z(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Rt=Oe(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,o
|
||
|
`),r]);else{const i=[`[Vue warn]: ${e}`,...t];r.length&&i.push(`
|
||
|
`,...Ma(r)),console.warn(...i)}Kt()}function Ia(){let e=En[En.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const s=e.component&&e.component.parent;e=s&&s.vnode}return t}function Ma(e){const t=[];return e.forEach((n,s)=>{t.push(...s===0?[]:[`
|
||
|
`],...ka(n))}),t}function ka({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",s=e.component?e.component.parent==null:!1,r=` at <${fc(e.component,e.type,s)}`,i=">"+n;return e.props?[r,...Fa(e.props),i]:[r+i]}function Fa(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(s=>{t.push(..._l(s,e[s]))}),n.length>3&&t.push(" ..."),t}function _l(e,t,n){return z(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:he(t)?(t=_l(e,Y(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):W(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=Y(t),n?t:[`${e}=`,t])}function Ze(e,t,n,s){let r;try{r=s?e(...s):e()}catch(i){xt(i,t,n)}return r}function ke(e,t,n,s){if(W(e)){const i=Ze(e,t,n,s);return i&&qr(i)&&i.catch(o=>{xt(o,t,n)}),i}const r=[];for(let i=0;i<e.length;i++)r.push(ke(e[i],t,n,s));return r}function xt(e,t,n,s=!0){const r=t?t.vnode:null;if(t){let i=t.parent;const o=t.proxy,l=n;for(;i;){const f=i.ec;if(f){for(let a=0;a<f.length;a++)if(f[a](e,o,l)===!1)return}i=i.parent}const c=t.appContext.config.errorHandler;if(c){Ze(c,null,10,[e,o,l]);return}}La(e,n,r,s)}function La(e,t,n,s=!0){console.error(e)}let ms=!1,Tr=!1;const be=[];let Je=0;const tn=[];let tt=null,wt=0;const El=Promise.resolve();let si=null;function ri(e){const t=si||El;return e?t.then(this?e.bind(this):e):t}function $a(e){let t=Je+1,n=be.length;for(;t<n;){const s=t+n>>>1;An(be[s])<e?t=s+1:n=s}return t}function js(e){(!be.length||!be.includes(e,ms&&e.allowRecurse?Je+1:Je))&&(e.id==null?be.push(e):be.splice($a(e.id),0,e),Cl())}function Cl(){!ms&&!Tr&&(Tr=!0,si=El.then(Tl))}function Ba(e){const t=be.indexOf(e);t>Je&&be.splice(t,1)}function ii(e){V(e)?tn.push(...e):(!tt||!tt.includes(e,e.allowRecurse?wt+1:wt))&&tn.push(e),Cl()}function no(e,t=Je){for(;t<be.length;t++){const n=be[t];n&&n.pre&&(be.splice(t,1),t--,n())}}function ys(e){if(tn.length){const t=[...new Set(tn)];if(tn.length=0,tt){tt.push(...t);return}for(tt=t,tt.sort((n,s)=>An(n)-An(s)),wt=0;wt<tt.length;wt++)tt[wt]();tt=null,wt=0}}const An=e=>e.id==null?1/0:e.id,Da=(e,t)=>{const n=An(e)-An(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Tl(e){Tr=!1,ms=!0,be.sort(Da);const t=Me;try{for(Je=0;Je<be.length;Je++){const n=be[Je];n&&n.active!==!1&&Ze(n,null,14)}}finally{Je=0,be.length=0,ys(),ms=!1,si=null,(be.length||tn.length)&&Tl()}}let Yt,ns=[];function Sl(e,t){var n,s;Yt=e,Yt?(Yt.enabled=!0,ns.forEach(({event:r,args:i})=>Yt.emit(r,...i)),ns=[]):typeof window!="undefined"&&window.HTMLElement&&!(!((s=(n=window.navigator)===null||n===void 0?void 0:n.userAgent)===null||s===void 0)&&s.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(i=>{Sl(i,t)}),setTimeout(()=>{Yt||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,ns=[])},3e3)):ns=[]}function Ha(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||Q;let r=n;const i=t.startsWith("update:"),o=i&&t.slice(7);if(o&&o in s){const a=`${o==="modelValue"?"model":o}Modifiers`,{number:u,trim:d}=s[a]||Q;d&&(r=n.map(y=>y.trim())),u&&(r=n.map(mt))}let l,c=s[l=Gt(t)]||s[l=Gt(Se(t))];!c&&i&&(c=s[l=Gt(xe(t))]),c&&ke(c,e,6,r);const f=s[l+"Once"];if(f){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,ke(f,e,6,r)}}function vl(e,t,n=!1){const s=t.emitsCache,r=s.get(e);if(r!==void 0)return r;const i=e.emits;let o={},l=!1;if(!W(e)){const c=f=>{const a=vl(f,t,!0);a&&(l=!0,ee(o,a))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!i&&!l?(se(e)&&s.set(e,null),null):(V(i)?i.forEach(c=>o[c]=null):ee(o,i),se(e)&&s.set(e,o),o)}function Ks(e,t){return!e||!Ht(t)?!1:(t=t.slice(2).replace(/Once$/,""),Z(e,t[0].toLowerCase()+t.slice(1))||Z(e,xe(t))||Z(e,t))}let _e=null,xs=null;function In(e){const t=_e;return _e=e,xs=e&&e.type.__scopeId||null,t}function Va(e){xs=e}function Ua(){xs=null}const ja=e=>oi;function oi(e,t=_e,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&Rr(-1);const i=In(t),o=e(...r);return In(i),s._d&&Rr(1),o};return s._n=!0,s._c=!0,s._d=!0,s}function us(e){const{type:t,vnode:n,proxy:s,with
|
||
|
`+" ".repeat(T))}return y}function Bd(e,t={}){const n=$d(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:s,push:r,prefixIdentifiers:i,indent:o,deindent:l,newline:c,scopeId:f,ssr:a}=n,u=e.helpers.length>0,d=!i&&s!=="module";Dd(e,n);const b=a?"ssrRender":"render",w=(a?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ");if(r(`function ${b}(${w}) {`),o(),d&&(r("with (_ctx) {"),o(),u&&(r(`const { ${e.helpers.map(Gc).join(", ")} } = _Vue`),r(`
|
||
|
`),c())),e.components.length&&(gr(e.components,"component",n),(e.directives.length||e.temps>0)&&c()),e.directives.length&&(gr(e.directives,"directive",n),e.temps>0&&c()),e.filters&&e.filters.length&&(c(),gr(e.filters,"filter",n),c()),e.temps>0){r("let ");for(let m=0;m<e.temps;m++)r(`${m>0?", ":""}_temp${m}`)}return(e.components.length||e.directives.length||e.temps)&&(r(`
|
||
|
`),c()),a||r("return "),e.codegenNode?Te(e.codegenNode,n):r("null"),d&&(l(),r("}")),l(),r("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}function Dd(e,t){const{ssr:n,prefixIdentifiers:s,push:r,newline:i,runtimeModuleName:o,runtimeGlobalName:l,ssrRuntimeModuleName:c}=t,f=l;if(e.helpers.length>0&&(r(`const _Vue = ${f}
|
||
|
`),e.hoists.length)){const a=[wi,Ni,qn,Oi,Dc].filter(u=>e.helpers.includes(u)).map(Gc).join(", ");r(`const { ${a} } = _Vue
|
||
|
`)}Hd(e.hoists,t),i(),r("return ")}function gr(e,t,{helper:n,push:s,newline:r,isTS:i}){const o=n(t==="filter"?Ai:t==="component"?Pi:Ri);for(let l=0;l<e.length;l++){let c=e[l];const f=c.endsWith("__self");f&&(c=c.slice(0,-6)),s(`const ${$n(c,t)} = ${o}(${JSON.stringify(c)}${f?", true":""})${i?"!":""}`),l<e.length-1&&r()}}function Hd(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:s,helper:r,scopeId:i,mode:o}=t;s();for(let l=0;l<e.length;l++){const c=e[l];c&&(n(`const _hoisted_${l+1} = `),Te(c,t),s())}t.pure=!1}function Ui(e,t){const n=e.length>3||!1;t.push("["),n&&t.indent(),Yn(e,t,n),n&&t.deindent(),t.push("]")}function Yn(e,t,n=!1,s=!0){const{push:r,newline:i}=t;for(let o=0;o<e.length;o++){const l=e[o];z(l)?r(l):V(l)?Ui(l,t):Te(l,t),o<e.length-1&&(n?(s&&r(","),i()):s&&r(", "))}}function Te(e,t){if(z(e)){t.push(e);return}if(gt(e)){t.push(t.helper(e));return}switch(e.type){case 1:case 9:case 11:Te(e.codegenNode,t);break;case 2:Vd(e,t);break;case 4:ef(e,t);break;case 5:Ud(e,t);break;case 12:Te(e.codegenNode,t);break;case 8:tf(e,t);break;case 3:Kd(e,t);break;case 13:xd(e,t);break;case 14:qd(e,t);break;case 15:zd(e,t);break;case 17:Jd(e,t);break;case 18:Yd(e,t);break;case 19:Zd(e,t);break;case 20:Xd(e,t);break;case 21:Yn(e.body,t,!0,!1);break}}function Vd(e,t){t.push(JSON.stringify(e.content),e)}function ef(e,t){const{content:n,isStatic:s}=e;t.push(s?JSON.stringify(n):n,e)}function Ud(e,t){const{push:n,helper:s,pure:r}=t;r&&n(rr),n(`${s(er)}(`),Te(e.content,t),n(")")}function tf(e,t){for(let n=0;n<e.children.length;n++){const s=e.children[n];z(s)?t.push(s):Te(s,t)}}function jd(e,t){const{push:n}=t;if(e.type===8)n("["),tf(e,t),n("]");else if(e.isStatic){const s=Di(e.content)?e.content:JSON.stringify(e.content);n(s,e)}else n(`[${e.content}]`,e)}function Kd(e,t){const{push:n,helper:s,pure:r}=t;r&&n(rr),n(`${s(qn)}(${JSON.stringify(e.content)})`,e)}function xd(e,t){const{push:n,helper:s,pure:r}=t,{tag:i,props:o,children:l,patchFlag:c,dynamicProps:f,directives:a,isBlock:u,disableTracking:d,isComponent:y}=e;a&&n(s(Ii)+"("),u&&n(`(${s(Dt)}(${d?"true":""}), `),r&&n(rr);const b=u?pn(t.inSSR,y):un(t.inSSR,y);n(s(b)+"(",e),Yn(Wd([i,o,l,c,f]),t),n(")"),u&&n(")"),a&&(n(", "),Te(a,t),n(")"))}function Wd(e){let t=e.length;for(;t--&&e[t]==null;);return e.slice(0,t+1).map(n=>n||"null")}function qd(e,t){const{push:n,helper:s,pure:r}=t,i=z(e.callee)?e.callee:s(e.callee);r&&n(rr),n(i+"(",e),Yn(e.arguments,t),n(")")}function zd(e,t){const{push:n,indent:s,deindent:r,newline:i}=t,{properties:o}=e;if(!o.length){n("{}",e);return}const l=o.length>1||!1;n(l?"{":"{ "),l&&s();for(let c=0;c<o.length;c++){const{key:f,value:a}=o[c];jd(f,t),n(": "),Te(a,t),c<o.length-1&&(n(","),i())}l&&r(),n(l?"}":" }")}function Jd(e,t){Ui(e.elements,t)}function Yd(e,t){const{push:n,indent:s,deindent:r}=t,{params:i,returns:o,body:l,newline:c,isSlot:f}=e;f&&n(`_${fn[$i]}(`),n("(",e),V(i)?Yn(i,t):i&&Te(i,t),n(") => "),(c||l)&&(n("{"),s()),o?(c&&n("return "),V(o)?Ui(o,t):Te(o,t)):l&&Te(l,t),(c||l)&&(r(),n("}")),f&&(e.isNonScopedSlot&&n(", undefined, true"),n(")"))}function Zd(e,t){const{test:n,consequent:s,alternate:r,newline:i}=e,{push:o,indent:l,deindent:c,newline:f}=t;if(n.type===4){const u=!Di(n.content);u&&o("("),ef(n,t),u&&o(")")}else o("("),Te(n,t),o(")");i&&l(),t.indentLevel++,i||o(" "),o("? "),Te(s,t),t.indentLevel--,i&&f(),i||o(" "),o(": ");const a=r.type===19;a||t.indentLevel++,Te(r,t),a||t.indentLevel--,i&&c(!0)}function Xd(e,t){const{push:n,helper:s,indent:r,deindent:i,newline:o}=t;n(`_cache[${e.index}] || (`),e.isVNode&&(r(),n(`${s(Os)}(-1),`),o()),n(`_cache[${e.index}] = `),Te(e.value,t),e.isVNode&&(n(","),o(),n(`${s(Os)}(1),`),o(),n(`_cache[${e.index}]`),i()),n(")")}new RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments,typeof,void".split(",").join("\\b|\\b")+"\\b");const Qd=Qc(/^(if|else|else-if)$/,(e,t,n)=>Gd(e,t,n,(s,r,i)=>{const o=n.parent.children;let l=o.indexOf(s),c=0;for(;l-->=0;){const f=o[l]
|