@harlem/utilities
Version:
Harlem utilities package
9 lines • 206 kB
JavaScript
"use strict";(()=>{var Hp=Object.create;var vs=Object.defineProperty;var Up=Object.getOwnPropertyDescriptor;var Kp=Object.getOwnPropertyNames;var Wp=Object.getPrototypeOf,zp=Object.prototype.hasOwnProperty;var Ln=(e,t)=>()=>(e&&(t=e(e=0)),t);var fi=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),pi=(e,t)=>{for(var n in t)vs(e,n,{get:t[n],enumerable:!0})},_s=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of Kp(t))!zp.call(e,s)&&s!==n&&vs(e,s,{get:()=>t[s],enumerable:!(r=Up(t,s))||r.enumerable});return e},Pc=(e,t,n)=>(_s(e,t,"default"),n&&_s(n,t,"default")),qp=(e,t,n)=>(n=e!=null?Hp(Wp(e)):{},_s(t||!e||!e.__esModule?vs(n,"default",{value:e,enumerable:!0}):n,e)),jn=e=>_s(vs({},"__esModule",{value:!0}),e);var wi={};pi(wi,{EMPTY_ARR:()=>$t,EMPTY_OBJ:()=>se,NO:()=>Ft,NOOP:()=>fe,PatchFlagNames:()=>Ze,camelize:()=>de,capitalize:()=>Se,def:()=>fn,escapeHtml:()=>ad,escapeHtmlComment:()=>fd,extend:()=>G,genPropsAccessExp:()=>yd,generateCodeFrame:()=>Ei,getGlobalThis:()=>Or,hasChanged:()=>Nt,hasOwn:()=>Q,hyphenate:()=>ve,includeBooleanAttr:()=>ws,invokeArrayFns:()=>nt,isArray:()=>F,isBooleanAttr:()=>nd,isBuiltInDirective:()=>br,isDate:()=>hi,isFunction:()=>W,isGloballyWhitelisted:()=>gi,isHTMLTag:()=>yr,isIntegerKey:()=>Nr,isKnownHtmlAttr:()=>id,isKnownSvgAttr:()=>ld,isMap:()=>at,isModelListener:()=>an,isObject:()=>X,isOn:()=>Ke,isPlainObject:()=>Ts,isPromise:()=>Hn,isRegExp:()=>bi,isReservedProp:()=>ft,isSSRSafeAttrName:()=>sd,isSVGTag:()=>_r,isSet:()=>ut,isSpecialBooleanAttr:()=>vi,isString:()=>q,isSymbol:()=>tt,isVoidTag:()=>_i,looseEqual:()=>ct,looseIndexOf:()=>Bn,looseToNumber:()=>pn,makeMap:()=>pe,normalizeClass:()=>xt,normalizeProps:()=>yi,normalizeStyle:()=>Mt,objectToString:()=>Oi,parseStringStyle:()=>Os,propsToAttrMap:()=>od,remove:()=>vr,slotFlagsText:()=>mi,stringifyStyle:()=>Gp,toDisplayString:()=>Ni,toHandlerKey:()=>$e,toNumber:()=>dn,toRawType:()=>Un,toTypeString:()=>un});function pe(e,t){let n=Object.create(null),r=e.split(",");for(let s=0;s<r.length;s++)n[r[s]]=!0;return t?s=>!!n[s.toLowerCase()]:s=>!!n[s]}function Ei(e,t=0,n=e.length){let r=e.split(/(\r?\n)/),s=r.filter((l,c)=>c%2===1);r=r.filter((l,c)=>c%2===0);let o=0,i=[];for(let l=0;l<r.length;l++)if(o+=r[l].length+(s[l]&&s[l].length||0),o>=t){for(let c=l-Mc;c<=l+Mc||n>o;c++){if(c<0||c>=r.length)continue;let a=c+1;i.push(`${a}${" ".repeat(Math.max(3-String(a).length,0))}| ${r[c]}`);let f=r[c].length,u=s[c]&&s[c].length||0;if(c===l){let d=t-(o-(f+u)),g=Math.max(1,n>o?f-d:n-t);i.push(" | "+" ".repeat(d)+"^".repeat(g))}else if(c>l){if(n>o){let d=Math.max(Math.min(n-o,f),1);i.push(" | "+"^".repeat(d))}o+=f+u}}break}return i.join(`
`)}function Mt(e){if(F(e)){let t={};for(let n=0;n<e.length;n++){let r=e[n],s=q(r)?Os(r):Mt(r);if(s)for(let o in s)t[o]=s[o]}return t}else{if(q(e))return e;if(X(e))return e}}function Os(e){let t={};return e.replace(Xp,"").split(Yp).forEach(n=>{if(n){let r=n.split(Zp);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Gp(e){let t="";if(!e||q(e))return t;for(let n in e){let r=e[n],s=n.startsWith("--")?n:ve(n);(q(r)||typeof r=="number")&&(t+=`${s}:${r};`)}return t}function xt(e){let t="";if(q(e))t=e;else if(F(e))for(let n=0;n<e.length;n++){let r=xt(e[n]);r&&(t+=r+" ")}else if(X(e))for(let n in e)e[n]&&(t+=n+" ");return t.trim()}function yi(e){if(!e)return null;let{class:t,style:n}=e;return t&&!q(t)&&(e.class=xt(t)),n&&(e.style=Mt(n)),e}function ws(e){return!!e||e===""}function sd(e){if(di.hasOwnProperty(e))return di[e];let t=rd.test(e);return t&&console.error(`unsafe attribute name: ${e}`),di[e]=!t}function ad(e){let t=""+e,n=cd.exec(t);if(!n)return t;let r="",s,o,i=0;for(o=n.index;o<t.length;o++){switch(t.charCodeAt(o)){case 34:s=""";break;case 38:s="&";break;case 39:s="'";break;case 60:s="<";break;case 62:s=">";break;default:continue}i!==o&&(r+=t.slice(i,o)),i=o+1,r+=s}return i!==o?r+t.slice(i,o):r}function fd(e){return e.replace(ud,"")}function pd(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=ct(e[r],t[r]);return n}function ct(e,t){if(e===t)return!0;let n=hi(e),r=hi(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=tt(e),r=tt(t),n||r)return e===t;if(n=F(e),r=F(t),n||r)return n&&r?pd(e,t):!1;if(n=X(e),r=X(t),n||r){if(!n||!r)return!1;let s=Object.keys(e).length,o=Object.keys(t).length;if(s!==o)return!1;for(let i in e){let l=e.hasOwnProperty(i),c=t.hasOwnProperty(i);if(l&&!c||!l&&c||!ct(e[i],t[i]))return!1}}return String(e)===String(t)}function Bn(e,t){return e.findIndex(n=>ct(n,t))}function yd(e){return Ed.test(e)?`__props.${e}`:`__props[${JSON.stringify(e)}]`}var Ze,mi,Jp,gi,Mc,Yp,Zp,Xp,Qp,ed,td,yr,_r,_i,$c,vi,nd,rd,di,od,id,ld,cd,ud,Ni,Fc,se,$t,fe,Ft,dd,Ke,an,G,vr,hd,Q,F,at,ut,hi,bi,W,q,tt,X,Hn,Oi,un,Un,Ts,Nr,ft,br,Ss,md,de,gd,ve,Se,$e,Nt,nt,fn,pn,dn,xc,Or,Ed,pt=Ln(()=>{Ze={[1]:"TEXT",[2]:"CLASS",[4]:"STYLE",[8]:"PROPS",[16]:"FULL_PROPS",[32]:"HYDRATE_EVENTS",[64]:"STABLE_FRAGMENT",[128]:"KEYED_FRAGMENT",[256]:"UNKEYED_FRAGMENT",[512]:"NEED_PATCH",[1024]:"DYNAMIC_SLOTS",[2048]:"DEV_ROOT_FRAGMENT",[-1]:"HOISTED",[-2]:"BAIL"},mi={[1]:"STABLE",[2]:"DYNAMIC",[3]:"FORWARDED"},Jp="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt",gi=pe(Jp),Mc=2;Yp=/;(?![^(]*\))/g,Zp=/:([^]+)/,Xp=/\/\*.*?\*\//gs;Qp="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,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",ed="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,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",td="area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr",yr=pe(Qp),_r=pe(ed),_i=pe(td),$c="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",vi=pe($c),nd=pe($c+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");rd=/[>/="'\u0009\u000a\u000c\u0020]/,di={};od={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},id=pe("accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap"),ld=pe("xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,overflow,overline-position,overline-thickness,panose-1,paint-order,path,pathLength,patternContentUnits,patternTransform,patternUnits,ping,pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,preserveAspectRatio,primitiveUnits,r,radius,referrerPolicy,refX,refY,rel,rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,specularConstant,specularExponent,speed,spreadMethod,startOffset,stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,string,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,text-decoration,text-rendering,textLength,to,transform,transform-origin,type,u1,u2,underline-position,underline-thickness,unicode,unicode-bidi,unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan"),cd=/["'&<>]/;ud=/^-?>|<!--|-->|--!>|<!-$/g;Ni=e=>q(e)?e:e==null?"":F(e)||X(e)&&(e.toString===Oi||!W(e.toString))?JSON.stringify(e,Fc,2):String(e),Fc=(e,t)=>t&&t.__v_isRef?Fc(e,t.value):at(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s])=>(n[`${r} =>`]=s,n),{})}:ut(t)?{[`Set(${t.size})`]:[...t.values()]}:X(t)&&!F(t)&&!Ts(t)?String(t):t,se=process.env.NODE_ENV!=="production"?Object.freeze({}):{},$t=process.env.NODE_ENV!=="production"?Object.freeze([]):[],fe=()=>{},Ft=()=>!1,dd=/^on[^a-z]/,Ke=e=>dd.test(e),an=e=>e.startsWith("onUpdate:"),G=Object.assign,vr=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)},hd=Object.prototype.hasOwnProperty,Q=(e,t)=>hd.call(e,t),F=Array.isArray,at=e=>un(e)==="[object Map]",ut=e=>un(e)==="[object Set]",hi=e=>un(e)==="[object Date]",bi=e=>un(e)==="[object RegExp]",W=e=>typeof e=="function",q=e=>typeof e=="string",tt=e=>typeof e=="symbol",X=e=>e!==null&&typeof e=="object",Hn=e=>X(e)&&W(e.then)&&W(e.catch),Oi=Object.prototype.toString,un=e=>Oi.call(e),Un=e=>un(e).slice(8,-1),Ts=e=>un(e)==="[object Object]",Nr=e=>q(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ft=pe(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),br=pe("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),Ss=e=>{let t=Object.create(null);return n=>t[n]||(t[n]=e(n))},md=/-(\w)/g,de=Ss(e=>e.replace(md,(t,n)=>n?n.toUpperCase():"")),gd=/\B([A-Z])/g,ve=Ss(e=>e.replace(gd,"-$1").toLowerCase()),Se=Ss(e=>e.charAt(0).toUpperCase()+e.slice(1)),$e=Ss(e=>e?`on${Se(e)}`:""),Nt=(e,t)=>!Object.is(e,t),nt=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},fn=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},pn=e=>{let t=parseFloat(e);return isNaN(t)?e:t},dn=e=>{let t=q(e)?Number(e):NaN;return isNaN(t)?e:t},Or=()=>xc||(xc=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{}),Ed=/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/});function Pi(e){throw e}function na(e){process.env.NODE_ENV!=="production"&&console.warn(`[Vue warn] ${e.message}`)}function ie(e,t,n,r){let s=process.env.NODE_ENV!=="production"?(n||_d)[e]+(r||""):e,o=new SyntaxError(String(s));return o.code=e,o.loc=t,o}function Li(e){Object.getOwnPropertySymbols(e).forEach(t=>{mn[t]=e[t]})}function ca(e,t=Oe){return{type:0,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:t}}function qn(e,t,n,r,s,o,i,l=!1,c=!1,a=!1,f=Oe){return e&&(l?(e.helper(Ht),e.helper(yn(e.inSSR,a))):e.helper(En(e.inSSR,a)),i&&e.helper(zs)),{type:13,tag:t,props:n,children:r,patchFlag:s,dynamicProps:o,directives:i,isBlock:l,disableTracking:c,isComponent:a,loc:f}}function Qn(e,t=Oe){return{type:17,loc:t,elements:e}}function We(e,t=Oe){return{type:15,loc:t,properties:e}}function he(e,t){return{type:16,loc:Oe,key:q(e)?Z(e,!0):e,value:t}}function Z(e,t=!1,n=Oe,r=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:r}}function vd(e,t){return{type:5,loc:t,content:q(e)?Z(e,!1,t):e}}function ze(e,t=Oe){return{type:8,loc:t,children:e}}function Ee(e,t=[],n=Oe){return{type:14,loc:n,callee:e,arguments:t}}function gn(e,t=void 0,n=!1,r=!1,s=Oe){return{type:18,params:e,returns:t,newline:n,isSlot:r,loc:s}}function xs(e,t,n,r=!0){return{type:19,test:e,consequent:t,alternate:n,newline:r,loc:Oe}}function aa(e,t,n=!1){return{type:20,index:e,value:t,isVNode:n,loc:Oe}}function ua(e){return{type:21,body:e,loc:Oe}}function Nd(e){return{type:22,elements:e,loc:Oe}}function bd(e,t,n){return{type:23,test:e,consequent:t,alternate:n,loc:Oe}}function Od(e,t){return{type:24,left:e,right:t,loc:Oe}}function wd(e){return{type:25,expressions:e,loc:Oe}}function Td(e){return{type:26,returns:e,loc:Oe}}function ji(e){if(bt(e,"Teleport"))return Kn;if(bt(e,"Suspense"))return Ls;if(bt(e,"KeepAlive"))return Sr;if(bt(e,"BaseTransition"))return Ii}function Hi(e,t,n){let s={source:e.source.slice(t,t+n),start:kr(e.start,e.source,t),end:e.end};return n!=null&&(s.end=kr(e.start,e.source,t+n)),s}function kr(e,t,n=t.length){return Pr(G({},e),t,n)}function Pr(e,t,n=t.length){let r=0,s=-1;for(let o=0;o<n;o++)t.charCodeAt(o)===10&&(r++,s=o);return e.offset+=n,e.line+=r,e.column=s===-1?e.column+n:n-s,e}function Si(e,t){if(!e)throw new Error(t||"unexpected compiler condition")}function Fe(e,t,n=!1){for(let r=0;r<e.props.length;r++){let s=e.props[r];if(s.type===7&&(n||s.exp)&&(q(t)?s.name===t:t.test(s.name)))return s}}function Ut(e,t,n=!1,r=!1){for(let s=0;s<e.props.length;s++){let o=e.props[s];if(o.type===6){if(n)continue;if(o.name===t&&(o.value||r))return o}else if(o.name==="bind"&&(o.exp||r)&&jt(o.arg,t))return o}}function jt(e,t){return!!(e&&Ve(e)&&e.content===t)}function Ui(e){return e.props.some(t=>t.type===7&&t.name==="bind"&&(!t.arg||t.arg.type!==4||!t.arg.isStatic))}function ks(e){return e.type===5||e.type===2}function Ki(e){return e.type===7&&e.name==="slot"}function Jn(e){return e.type===1&&e.tagType===3}function Ir(e){return e.type===1&&e.tagType===2}function En(e,t){return e||t?js:Bs}function yn(e,t){return e||t?Ri:Ai}function pa(e,t=[]){if(e&&!q(e)&&e.type===14){let n=e.callee;if(!q(n)&&Pd.has(n))return pa(e.arguments[0],t.concat(e))}return[e,t]}function Rr(e,t,n){let r,s=e.type===13?e.props:e.arguments[2],o=[],i;if(s&&!q(s)&&s.type===14){let l=pa(s);s=l[0],o=l[1],i=o[o.length-1]}if(s==null||q(s))r=We([t]);else if(s.type===14){let l=s.arguments[0];!q(l)&&l.type===15?Lc(t,l)||l.properties.unshift(t):s.callee===Zs?r=Ee(n.helper(Dr),[We([t]),s]):s.arguments.unshift(We([t])),!r&&(r=s)}else s.type===15?(Lc(t,s)||s.properties.unshift(t),r=s):(r=Ee(n.helper(Dr),[We([t]),s]),i&&i.callee===Gn&&(i=o[o.length-2]));e.type===13?i?i.arguments[0]=r:e.props=r:i?i.arguments[0]=r:e.arguments[2]=r}function Lc(e,t){let n=!1;if(e.key.type===4){let r=e.key.content;n=t.properties.some(s=>s.key.type===4&&s.key.content===r)}return n}function Yn(e,t){return`_${t}_${e.replace(/[^\w]/g,(n,r)=>n==="-"?"_":e.charCodeAt(r).toString())}`}function rt(e,t){if(!e||Object.keys(t).length===0)return!1;switch(e.type){case 1:for(let n=0;n<e.props.length;n++){let r=e.props[n];if(r.type===7&&(rt(r.arg,t)||rt(r.exp,t)))return!0}return e.children.some(n=>rt(n,t));case 11:return rt(e.source,t)?!0:e.children.some(n=>rt(n,t));case 9:return e.branches.some(n=>rt(n,t));case 10:return rt(e.condition,t)?!0:e.children.some(n=>rt(n,t));case 4:return!e.isStatic&&Mr(e.content)&&!!t[e.content];case 8:return e.children.some(n=>X(n)&&rt(n,t));case 5:case 12:return rt(e.content,t);case 2:case 3:return!1;default:return process.env.NODE_ENV,!1}}function da(e){return e.type===14&&e.callee===Gs?e.arguments[1].returns:e}function Qs(e,{helper:t,removeHelper:n,inSSR:r}){e.isBlock||(e.isBlock=!0,n(En(r,e.isComponent)),t(Ht),t(yn(r,e.isComponent)))}function Ci(e,t){let n=t.options?t.options.compatConfig:t.compatConfig,r=n&&n[e];return e==="MODE"?r||3:r}function Bt(e,t){let n=Ci("MODE",t),r=Ci(e,t);return n===3?r===!0:r!==!1}function Ot(e,t,n,...r){let s=Bt(e,t);return process.env.NODE_ENV!=="production"&&s&&xr(e,t,n,...r),s}function xr(e,t,n,...r){if(Ci(e,t)==="suppress-warning")return;let{message:o,link:i}=Id[e],l=`(deprecation ${e}) ${typeof o=="function"?o(...r):o}${i?`
Details: ${i}`:""}`,c=new SyntaxError(l);c.code=e,n&&(c.loc=n),t.onWarn(c)}function eo(e,t={}){let n=Md(e,t),r=qe(n);return ca(Wi(n,0,[]),Je(n,r))}function Md(e,t){let n=G({},jc),r;for(r in t)n[r]=t[r]===void 0?jc[r]:t[r];return{options:n,column:1,line:1,offset:0,originalSource:e,source:e,inPre:!1,inVPre:!1,onWarn:n.onWarn}}function Wi(e,t,n){let r=to(n),s=r?r.ns:0,o=[];for(;!Kd(e,t,n);){let l=e.source,c;if(t===0||t===1){if(!e.inVPre&&ke(l,e.options.delimiters[0]))c=Hd(e,t);else if(t===0&&l[0]==="<")if(l.length===1)le(e,5,1);else if(l[1]==="!")ke(l,"<!--")?c=$d(e):ke(l,"<!DOCTYPE")?c=wr(e):ke(l,"<![CDATA[")?s!==0?c=xd(e,n):(le(e,1),c=wr(e)):(le(e,11),c=wr(e));else if(l[1]==="/")if(l.length===2)le(e,5,2);else if(l[2]===">"){le(e,14,2),be(e,3);continue}else if(/[a-z]/i.test(l[2])){le(e,23),Di(e,1,r);continue}else le(e,12,2),c=wr(e);else/[a-z]/i.test(l[1])?(c=Fd(e,n),Bt("COMPILER_NATIVE_TEMPLATE",e)&&c&&c.tag==="template"&&!c.props.some(a=>a.type===7&&ha(a.name))&&(process.env.NODE_ENV!=="production"&&xr("COMPILER_NATIVE_TEMPLATE",e,c.loc),c=c.children)):l[1]==="?"?(le(e,21,1),c=wr(e)):le(e,12,1)}if(c||(c=Ud(e,t)),F(c))for(let a=0;a<c.length;a++)Bc(o,c[a]);else Bc(o,c)}let i=!1;if(t!==2&&t!==1){let l=e.options.whitespace!=="preserve";for(let c=0;c<o.length;c++){let a=o[c];if(a.type===2)if(e.inPre)a.content=a.content.replace(/\r\n/g,`
`);else if(/[^\t\r\n\f ]/.test(a.content))l&&(a.content=a.content.replace(/[\t\r\n\f ]+/g," "));else{let f=o[c-1],u=o[c+1];!f||!u||l&&(f.type===3&&u.type===3||f.type===3&&u.type===1||f.type===1&&u.type===3||f.type===1&&u.type===1&&/[\r\n]/.test(a.content))?(i=!0,o[c]=null):a.content=" "}else a.type===3&&!e.options.comments&&(i=!0,o[c]=null)}if(e.inPre&&r&&e.options.isPreTag(r.tag)){let c=o[0];c&&c.type===2&&(c.content=c.content.replace(/^\r?\n/,""))}}return i?o.filter(Boolean):o}function Bc(e,t){if(t.type===2){let n=to(e);if(n&&n.type===2&&n.loc.end.offset===t.loc.start.offset){n.content+=t.content,n.loc.end=t.loc.end,n.loc.source+=t.loc.source;return}}e.push(t)}function xd(e,t){be(e,9);let n=Wi(e,3,t);return e.source.length===0?le(e,6):be(e,3),n}function $d(e){let t=qe(e),n,r=/--(\!)?>/.exec(e.source);if(!r)n=e.source.slice(4),be(e,e.source.length),le(e,7);else{r.index<=3&&le(e,0),r[1]&&le(e,10),n=e.source.slice(4,r.index);let s=e.source.slice(0,r.index),o=1,i=0;for(;(i=s.indexOf("<!--",o))!==-1;)be(e,i-o+1),i+4<s.length&&le(e,16),o=i+1;be(e,r.index+r[0].length-o+1)}return{type:3,content:n,loc:Je(e,t)}}function wr(e){let t=qe(e),n=e.source[1]==="?"?1:2,r,s=e.source.indexOf(">");return s===-1?(r=e.source.slice(n),be(e,e.source.length)):(r=e.source.slice(n,s),be(e,s+1)),{type:3,content:r,loc:Je(e,t)}}function Fd(e,t){let n=e.inPre,r=e.inVPre,s=to(t),o=Di(e,0,s),i=e.inPre&&!n,l=e.inVPre&&!r;if(o.isSelfClosing||e.options.isVoidTag(o.tag))return i&&(e.inPre=!1),l&&(e.inVPre=!1),o;t.push(o);let c=e.options.getTextMode(o,s),a=Wi(e,c,t);t.pop();{let f=o.props.find(u=>u.type===6&&u.name==="inline-template");if(f&&Ot("COMPILER_INLINE_TEMPLATE",e,f.loc)){let u=Je(e,o.loc.end);f.value={type:2,content:u.source,loc:u}}}if(o.children=a,Vi(e.source,o.tag))Di(e,1,s);else if(le(e,24,0,o.loc.start),e.source.length===0&&o.tag.toLowerCase()==="script"){let f=a[0];f&&ke(f.loc.source,"<!--")&&le(e,8)}return o.loc=Je(e,o.loc.start),i&&(e.inPre=!1),l&&(e.inVPre=!1),o}function Di(e,t,n){let r=qe(e),s=/^<\/?([a-z][^\t\r\n\f />]*)/i.exec(e.source),o=s[1],i=e.options.getNamespace(o,n);be(e,s[0].length),Ar(e);let l=qe(e),c=e.source;e.options.isPreTag(o)&&(e.inPre=!0);let a=Hc(e,t);t===0&&!e.inVPre&&a.some(d=>d.type===7&&d.name==="pre")&&(e.inVPre=!0,G(e,l),e.source=c,a=Hc(e,t).filter(d=>d.name!=="v-pre"));let f=!1;if(e.source.length===0?le(e,9):(f=ke(e.source,"/>"),t===1&&f&&le(e,4),be(e,f?2:1)),t===1)return;if(process.env.NODE_ENV!=="production"&&Bt("COMPILER_V_IF_V_FOR_PRECEDENCE",e)){let d=!1,g=!1;for(let y=0;y<a.length;y++){let N=a[y];if(N.type===7&&(N.name==="if"?d=!0:N.name==="for"&&(g=!0)),d&&g){xr("COMPILER_V_IF_V_FOR_PRECEDENCE",e,Je(e,r));break}}}let u=0;return e.inVPre||(o==="slot"?u=2:o==="template"?a.some(d=>d.type===7&&ha(d.name))&&(u=3):Ld(o,a,e)&&(u=1)),{type:1,ns:i,tag:o,tagType:u,props:a,isSelfClosing:f,children:[],loc:Je(e,r),codegenNode:void 0}}function Ld(e,t,n){let r=n.options;if(r.isCustomElement(e))return!1;if(e==="component"||/^[A-Z]/.test(e)||ji(e)||r.isBuiltInComponent&&r.isBuiltInComponent(e)||r.isNativeTag&&!r.isNativeTag(e))return!0;for(let s=0;s<t.length;s++){let o=t[s];if(o.type===6){if(o.name==="is"&&o.value){if(o.value.content.startsWith("vue:"))return!0;if(Ot("COMPILER_IS_ON_ELEMENT",n,o.loc))return!0}}else{if(o.name==="is")return!0;if(o.name==="bind"&&jt(o.arg,"is")&&Ot("COMPILER_IS_ON_ELEMENT",n,o.loc))return!0}}}function Hc(e,t){let n=[],r=new Set;for(;e.source.length>0&&!ke(e.source,">")&&!ke(e.source,"/>");){if(ke(e.source,"/")){le(e,22),be(e,1),Ar(e);continue}t===1&&le(e,3);let s=jd(e,r);s.type===6&&s.value&&s.name==="class"&&(s.value.content=s.value.content.replace(/\s+/g," ").trim()),t===0&&n.push(s),/^[^\t\r\n\f />]/.test(e.source)&&le(e,15),Ar(e)}return n}function jd(e,t){let n=qe(e),s=/^[^\t\r\n\f />][^\t\r\n\f />=]*/.exec(e.source)[0];t.has(s)&&le(e,2),t.add(s),s[0]==="="&&le(e,19);{let l=/["'<]/g,c;for(;c=l.exec(s);)le(e,17,c.index)}be(e,s.length);let o;/^[\t\r\n\f ]*=/.test(e.source)&&(Ar(e),be(e,1),Ar(e),o=Bd(e),o||le(e,13));let i=Je(e,n);if(!e.inVPre&&/^(v-[A-Za-z0-9-]|:|\.|@|#)/.test(s)){let l=/(?:^v-([a-z0-9-]+))?(?:(?::|^\.|^@|^#)(\[[^\]]+\]|[^\.]+))?(.+)?$/i.exec(s),c=ke(s,"."),a=l[1]||(c||ke(s,":")?"bind":ke(s,"@")?"on":"slot"),f;if(l[2]){let d=a==="slot",g=s.lastIndexOf(l[2]),y=Je(e,Uc(e,n,g),Uc(e,n,g+l[2].length+(d&&l[3]||"").length)),N=l[2],D=!0;N.startsWith("[")?(D=!1,N.endsWith("]")?N=N.slice(1,N.length-1):(le(e,27),N=N.slice(1))):d&&(N+=l[3]||""),f={type:4,content:N,isStatic:D,constType:D?3:0,loc:y}}if(o&&o.isQuoted){let d=o.loc;d.start.offset++,d.start.column++,d.end=kr(d.start,o.content),d.source=d.source.slice(1,-1)}let u=l[3]?l[3].slice(1).split("."):[];return c&&u.push("prop"),a==="bind"&&f&&(u.includes("sync")&&Ot("COMPILER_V_BIND_SYNC",e,i,f.loc.source)&&(a="model",u.splice(u.indexOf("sync"),1)),process.env.NODE_ENV!=="production"&&u.includes("prop")&&Ot("COMPILER_V_BIND_PROP",e,i)),{type:7,name:a,exp:o&&{type:4,content:o.content,isStatic:!1,constType:0,loc:o.loc},arg:f,modifiers:u,loc:i}}return!e.inVPre&&ke(s,"v-")&&le(e,26),{type:6,name:s,value:o&&{type:2,content:o.content,loc:o.loc},loc:i}}function Bd(e){let t=qe(e),n,r=e.source[0],s=r==='"'||r==="'";if(s){be(e,1);let o=e.source.indexOf(r);o===-1?n=Tr(e,e.source.length,4):(n=Tr(e,o,4),be(e,1))}else{let o=/^[^\t\r\n\f >]+/.exec(e.source);if(!o)return;let i=/["'<=`]/g,l;for(;l=i.exec(o[0]);)le(e,18,l.index);n=Tr(e,o[0].length,4)}return{content:n,isQuoted:s,loc:Je(e,t)}}function Hd(e,t){let[n,r]=e.options.delimiters,s=e.source.indexOf(r,n.length);if(s===-1){le(e,25);return}let o=qe(e);be(e,n.length);let i=qe(e),l=qe(e),c=s-n.length,a=e.source.slice(0,c),f=Tr(e,c,t),u=f.trim(),d=f.indexOf(u);d>0&&Pr(i,a,d);let g=c-(f.length-u.length-d);return Pr(l,a,g),be(e,r.length),{type:5,content:{type:4,isStatic:!1,constType:0,content:u,loc:Je(e,i,l)},loc:Je(e,o)}}function Ud(e,t){let n=t===3?["]]>"]:["<",e.options.delimiters[0]],r=e.source.length;for(let i=0;i<n.length;i++){let l=e.source.indexOf(n[i],1);l!==-1&&r>l&&(r=l)}let s=qe(e);return{type:2,content:Tr(e,r,t),loc:Je(e,s)}}function Tr(e,t,n){let r=e.source.slice(0,t);return be(e,t),n===2||n===3||!r.includes("&")?r:e.options.decodeEntities(r,n===4)}function qe(e){let{column:t,line:n,offset:r}=e;return{column:t,line:n,offset:r}}function Je(e,t,n){return n=n||qe(e),{start:t,end:n,source:e.originalSource.slice(t.offset,n.offset)}}function to(e){return e[e.length-1]}function ke(e,t){return e.startsWith(t)}function be(e,t){let{source:n}=e;Pr(e,n,t),e.source=n.slice(t)}function Ar(e){let t=/^[\t\r\n\f ]+/.exec(e.source);t&&be(e,t[0].length)}function Uc(e,t,n){return kr(t,e.originalSource.slice(t.offset,n),n)}function le(e,t,n,r=qe(e)){n&&(r.offset+=n,r.column+=n),e.options.onError(ie(t,{start:r,end:r,source:""}))}function Kd(e,t,n){let r=e.source;switch(t){case 0:if(ke(r,"</")){for(let s=n.length-1;s>=0;--s)if(Vi(r,n[s].tag))return!0}break;case 1:case 2:{let s=to(n);if(s&&Vi(r,s.tag))return!0;break}case 3:if(ke(r,"]]>"))return!0;break}return!r}function Vi(e,t){return ke(e,"</")&&e.slice(2,2+t.length).toLowerCase()===t.toLowerCase()&&/[\t\r\n\f />]/.test(e[2+t.length]||">")}function Wd(e,t){Ps(e,t,ma(e,e.children[0]))}function ma(e,t){let{children:n}=e;return n.length===1&&t.type===1&&!Ir(t)}function Ps(e,t,n=!1){let{children:r}=e,s=r.length,o=0;for(let i=0;i<r.length;i++){let l=r[i];if(l.type===1&&l.tagType===0){let c=n?0:Le(l,t);if(c>0){if(c>=2){l.codegenNode.patchFlag=-1+(process.env.NODE_ENV!=="production"?" /* HOISTED */":""),l.codegenNode=t.hoist(l.codegenNode),o++;continue}}else{let a=l.codegenNode;if(a.type===13){let f=_a(a);if((!f||f===512||f===1)&&Ea(l,t)>=2){let u=ya(l);u&&(a.props=t.hoist(u))}a.dynamicProps&&(a.dynamicProps=t.hoist(a.dynamicProps))}}}if(l.type===1){let c=l.tagType===1;c&&t.scopes.vSlot++,Ps(l,t),c&&t.scopes.vSlot--}else if(l.type===11)Ps(l,t,l.children.length===1);else if(l.type===9)for(let c=0;c<l.branches.length;c++)Ps(l.branches[c],t,l.branches[c].children.length===1)}o&&t.transformHoist&&t.transformHoist(r,t,e),o&&o===s&&e.type===1&&e.tagType===0&&e.codegenNode&&e.codegenNode.type===13&&F(e.codegenNode.children)&&(e.codegenNode.children=t.hoist(Qn(e.codegenNode.children)))}function Le(e,t){let{constantCache:n}=t;switch(e.type){case 1:if(e.tagType!==0)return 0;let r=n.get(e);if(r!==void 0)return r;let s=e.codegenNode;if(s.type!==13||s.isBlock&&e.tag!=="svg"&&e.tag!=="foreignObject")return 0;if(_a(s))return n.set(e,0),0;{let l=3,c=Ea(e,t);if(c===0)return n.set(e,0),0;c<l&&(l=c);for(let a=0;a<e.children.length;a++){let f=Le(e.children[a],t);if(f===0)return n.set(e,0),0;f<l&&(l=f)}if(l>1)for(let a=0;a<e.props.length;a++){let f=e.props[a];if(f.type===7&&f.name==="bind"&&f.exp){let u=Le(f.exp,t);if(u===0)return n.set(e,0),0;u<l&&(l=u)}}if(s.isBlock){for(let a=0;a<e.props.length;a++)if(e.props[a].type===7)return n.set(e,0),0;t.removeHelper(Ht),t.removeHelper(yn(t.inSSR,s.isComponent)),s.isBlock=!1,t.helper(En(t.inSSR,s.isComponent))}return n.set(e,l),l}case 2:case 3:return 3;case 9:case 11:case 10:return 0;case 5:case 12:return Le(e.content,t);case 4:return e.constType;case 8:let i=3;for(let l=0;l<e.children.length;l++){let c=e.children[l];if(q(c)||tt(c))continue;let a=Le(c,t);if(a===0)return 0;a<i&&(i=a)}return i;default:return process.env.NODE_ENV,0}}function ga(e,t){if(e.type===14&&!q(e.callee)&&zd.has(e.callee)){let n=e.arguments[0];if(n.type===4)return Le(n,t);if(n.type===14)return ga(n,t)}return 0}function Ea(e,t){let n=3,r=ya(e);if(r&&r.type===15){let{properties:s}=r;for(let o=0;o<s.length;o++){let{key:i,value:l}=s[o],c=Le(i,t);if(c===0)return c;c<n&&(n=c);let a;if(l.type===4?a=Le(l,t):l.type===14?a=ga(l,t):a=0,a===0)return a;a<n&&(n=a)}}return n}function ya(e){let t=e.codegenNode;if(t.type===13)return t.props}function _a(e){let t=e.patchFlag;return t?parseInt(t,10):void 0}function va(e,{filename:t="",prefixIdentifiers:n=!1,hoistStatic:r=!1,cacheHandlers:s=!1,nodeTransforms:o=[],directiveTransforms:i={},transformHoist:l=null,isBuiltInComponent:c=fe,isCustomElement:a=fe,expressionPlugins:f=[],scopeId:u=null,slotted:d=!0,ssr:g=!1,inSSR:y=!1,ssrCssVars:N="",bindingMetadata:D=se,inline:E=!1,isTS:h=!1,onError:v=Pi,onWarn:w=na,compatConfig:V}){let B=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),P={selfName:B&&Se(de(B[1])),prefixIdentifiers:n,hoistStatic:r,cacheHandlers:s,nodeTransforms:o,directiveTransforms:i,transformHoist:l,isBuiltInComponent:c,isCustomElement:a,expressionPlugins:f,scopeId:u,slotted:d,ssr:g,inSSR:y,ssrCssVars:N,bindingMetadata:D,inline:E,isTS:h,onError:v,onWarn:w,compatConfig:V,root:e,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],constantCache:new Map,temps:0,cached:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,currentNode:e,childIndex:0,inVOnce:!1,helper(_){let I=P.helpers.get(_)||0;return P.helpers.set(_,I+1),_},removeHelper(_){let I=P.helpers.get(_);if(I){let $=I-1;$?P.helpers.set(_,$):P.helpers.delete(_)}},helperString(_){return`_${mn[P.helper(_)]}`},replaceNode(_){if(process.env.NODE_ENV!=="production"){if(!P.currentNode)throw new Error("Node being replaced is already removed.");if(!P.parent)throw new Error("Cannot replace root node.")}P.parent.children[P.childIndex]=P.currentNode=_},removeNode(_){if(process.env.NODE_ENV!=="production"&&!P.parent)throw new Error("Cannot remove root node.");let I=P.parent.children,$=_?I.indexOf(_):P.currentNode?P.childIndex:-1;if(process.env.NODE_ENV!=="production"&&$<0)throw new Error("node being removed is not a child of current parent");!_||_===P.currentNode?(P.currentNode=null,P.onNodeRemoved()):P.childIndex>$&&(P.childIndex--,P.onNodeRemoved()),P.parent.children.splice($,1)},onNodeRemoved:()=>{},addIdentifiers(_){},removeIdentifiers(_){},hoist(_){q(_)&&(_=Z(_)),P.hoists.push(_);let I=Z(`_hoisted_${P.hoists.length}`,!1,_.loc,2);return I.hoisted=_,I},cache(_,I=!1){return aa(P.cached++,_,I)}};return P.filters=new Set,P}function Na(e,t){let n=va(e,t);$r(e,n),t.hoistStatic&&Wd(e,n),t.ssr||qd(e,n),e.helpers=new Set([...n.helpers.keys()]),e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.filters=[...n.filters]}function qd(e,t){let{helper:n}=t,{children:r}=e;if(r.length===1){let s=r[0];if(ma(e,s)&&s.codegenNode){let o=s.codegenNode;o.type===13&&Qs(o,t),e.codegenNode=o}else e.codegenNode=s}else if(r.length>1){let s=64,o=Ze[64];process.env.NODE_ENV!=="production"&&r.filter(i=>i.type!==3).length===1&&(s|=2048,o+=`, ${Ze[2048]}`),e.codegenNode=qn(t,n(Wn),void 0,e.children,s+(process.env.NODE_ENV!=="production"?` /* ${o} */`:""),void 0,void 0,!0,void 0,!1)}}function Jd(e,t){let n=0,r=()=>{n--};for(;n<e.children.length;n++){let s=e.children[n];q(s)||(t.parent=e,t.childIndex=n,t.onNodeRemoved=r,$r(s,t))}}function $r(e,t){t.currentNode=e;let{nodeTransforms:n}=t,r=[];for(let o=0;o<n.length;o++){let i=n[o](e,t);if(i&&(F(i)?r.push(...i):r.push(i)),t.currentNode)e=t.currentNode;else return}switch(e.type){case 3:t.ssr||t.helper(Zn);break;case 5:t.ssr||t.helper(Xn);break;case 9:for(let o=0;o<e.branches.length;o++)$r(e.branches[o],t);break;case 10:case 11:case 1:case 0:Jd(e,t);break}t.currentNode=e;let s=r.length;for(;s--;)r[s]()}function zi(e,t){let n=q(e)?r=>r===e:r=>e.test(r);return(r,s)=>{if(r.type===1){let{props:o}=r;if(r.tagType===3&&o.some(Ki))return;let i=[];for(let l=0;l<o.length;l++){let c=o[l];if(c.type===7&&n(c.name)){o.splice(l,1),l--;let a=t(r,c,s);a&&i.push(a)}}return i}}}function Kc(e,{mode:t="function",prefixIdentifiers:n=t==="module",sourceMap:r=!1,filename:s="template.vue.html",scopeId:o=null,optimizeImports:i=!1,runtimeGlobalName:l="Vue",runtimeModuleName:c="vue",ssrRuntimeModuleName:a="vue/server-renderer",ssr:f=!1,isTS:u=!1,inSSR:d=!1}){let g={mode:t,prefixIdentifiers:n,sourceMap:r,filename:s,scopeId:o,optimizeImports:i,runtimeGlobalName:l,runtimeModuleName:c,ssrRuntimeModuleName:a,ssr:f,isTS:u,inSSR:d,source:e.loc.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(N){return`_${mn[N]}`},push(N,D){g.code+=N},indent(){y(++g.indentLevel)},deindent(N=!1){N?--g.indentLevel:y(--g.indentLevel)},newline(){y(g.indentLevel)}};function y(N){g.push(`
`+" ".repeat(N))}return g}function Oa(e,t={}){let n=Kc(e,t);t.onContextCreated&&t.onContextCreated(n);let{mode:r,push:s,prefixIdentifiers:o,indent:i,deindent:l,newline:c,scopeId:a,ssr:f}=n,u=Array.from(e.helpers),d=u.length>0,g=!o&&r!=="module",y=!1,N=y?Kc(e,t):n;Yd(e,N);let D=f?"ssrRender":"render",h=(f?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ");if(s(`function ${D}(${h}) {`),i(),g&&(s("with (_ctx) {"),i(),d&&(s(`const { ${u.map(ba).join(", ")} } = _Vue`),s(`
`),c())),e.components.length&&(Ti(e.components,"component",n),(e.directives.length||e.temps>0)&&c()),e.directives.length&&(Ti(e.directives,"directive",n),e.temps>0&&c()),e.filters&&e.filters.length&&(c(),Ti(e.filters,"filter",n),c()),e.temps>0){s("let ");for(let v=0;v<e.temps;v++)s(`${v>0?", ":""}_temp${v}`)}return(e.components.length||e.directives.length||e.temps)&&(s(`
`),c()),f||s("return "),e.codegenNode?Pe(e.codegenNode,n):s("null"),g&&(l(),s("}")),l(),s("}"),{ast:e,code:n.code,preamble:y?N.code:"",map:n.map?n.map.toJSON():void 0}}function Yd(e,t){let{ssr:n,prefixIdentifiers:r,push:s,newline:o,runtimeModuleName:i,runtimeGlobalName:l,ssrRuntimeModuleName:c}=t,a=l,f=Array.from(e.helpers);if(f.length>0&&(s(`const _Vue = ${a}
`),e.hoists.length)){let u=[js,Bs,Zn,Hs,Mi].filter(d=>f.includes(d)).map(ba).join(", ");s(`const { ${u} } = _Vue
`)}Zd(e.hoists,t),o(),s("return ")}function Ti(e,t,{helper:n,push:r,newline:s,isTS:o}){let i=n(t==="filter"?Ws:t==="component"?Us:Ks);for(let l=0;l<e.length;l++){let c=e[l],a=c.endsWith("__self");a&&(c=c.slice(0,-6)),r(`const ${Yn(c,t)} = ${i}(${JSON.stringify(c)}${a?", true":""})${o?"!":""}`),l<e.length-1&&s()}}function Zd(e,t){if(!e.length)return;t.pure=!0;let{push:n,newline:r,helper:s,scopeId:o,mode:i}=t;r();for(let l=0;l<e.length;l++){let c=e[l];c&&(n(`const _hoisted_${l+1} = `),Pe(c,t),r())}t.pure=!1}function Xd(e){return q(e)||e.type===4||e.type===2||e.type===5||e.type===8}function qi(e,t){let n=e.length>3||process.env.NODE_ENV!=="production"&&e.some(r=>F(r)||!Xd(r));t.push("["),n&&t.indent(),Fr(e,t,n),n&&t.deindent(),t.push("]")}function Fr(e,t,n=!1,r=!0){let{push:s,newline:o}=t;for(let i=0;i<e.length;i++){let l=e[i];q(l)?s(l):F(l)?qi(l,t):Pe(l,t),i<e.length-1&&(n?(r&&s(","),o()):r&&s(", "))}}function Pe(e,t){if(q(e)){t.push(e);return}if(tt(e)){t.push(t.helper(e));return}switch(e.type){case 1:case 9:case 11:process.env.NODE_ENV!=="production"&&Si(e.codegenNode!=null,"Codegen node is missing for element/if/for node. Apply appropriate transforms first."),Pe(e.codegenNode,t);break;case 2:Gd(e,t);break;case 4:wa(e,t);break;case 5:Qd(e,t);break;case 12:Pe(e.codegenNode,t);break;case 8:Ta(e,t);break;case 3:th(e,t);break;case 13:nh(e,t);break;case 14:sh(e,t);break;case 15:oh(e,t);break;case 17:ih(e,t);break;case 18:lh(e,t);break;case 19:ch(e,t);break;case 20:ah(e,t);break;case 21:Fr(e.body,t,!0,!1);break;case 22:break;case 23:break;case 24:break;case 25:break;case 26:break;case 10:break;default:if(process.env.NODE_ENV!=="production")return Si(!1,`unhandled codegen node type: ${e.type}`),e}}function Gd(e,t){t.push(JSON.stringify(e.content),e)}function wa(e,t){let{content:n,isStatic:r}=e;t.push(r?JSON.stringify(n):n,e)}function Qd(e,t){let{push:n,helper:r,pure:s}=t;s&&n(no),n(`${r(Xn)}(`),Pe(e.content,t),n(")")}function Ta(e,t){for(let n=0;n<e.children.length;n++){let r=e.children[n];q(r)?t.push(r):Pe(r,t)}}function eh(e,t){let{push:n}=t;if(e.type===8)n("["),Ta(e,t),n("]");else if(e.isStatic){let r=Mr(e.content)?e.content:JSON.stringify(e.content);n(r,e)}else n(`[${e.content}]`,e)}function th(e,t){let{push:n,helper:r,pure:s}=t;s&&n(no),n(`${r(Zn)}(${JSON.stringify(e.content)})`,e)}function nh(e,t){let{push:n,helper:r,pure:s}=t,{tag:o,props:i,children:l,patchFlag:c,dynamicProps:a,directives:f,isBlock:u,disableTracking:d,isComponent:g}=e;f&&n(r(zs)+"("),u&&n(`(${r(Ht)}(${d?"true":""}), `),s&&n(no);let y=u?yn(t.inSSR,g):En(t.inSSR,g);n(r(y)+"(",e),Fr(rh([o,i,l,c,a]),t),n(")"),u&&n(")"),f&&(n(", "),Pe(f,t),n(")"))}function rh(e){let t=e.length;for(;t--&&e[t]==null;);return e.slice(0,t+1).map(n=>n||"null")}function sh(e,t){let{push:n,helper:r,pure:s}=t,o=q(e.callee)?e.callee:r(e.callee);s&&n(no),n(o+"(",e),Fr(e.arguments,t),n(")")}function oh(e,t){let{push:n,indent:r,deindent:s,newline:o}=t,{properties:i}=e;if(!i.length){n("{}",e);return}let l=i.length>1||process.env.NODE_ENV!=="production"&&i.some(c=>c.value.type!==4);n(l?"{":"{ "),l&&r();for(let c=0;c<i.length;c++){let{key:a,value:f}=i[c];eh(a,t),n(": "),Pe(f,t),c<i.length-1&&(n(","),o())}l&&s(),n(l?"}":" }")}function ih(e,t){qi(e.elements,t)}function lh(e,t){let{push:n,indent:r,deindent:s}=t,{params:o,returns:i,body:l,newline:c,isSlot:a}=e;a&&n(`_${mn[Xs]}(`),n("(",e),F(o)?Fr(o,t):o&&Pe(o,t),n(") => "),(c||l)&&(n("{"),r()),i?(c&&n("return "),F(i)?qi(i,t):Pe(i,t)):l&&Pe(l,t),(c||l)&&(s(),n("}")),a&&(e.isNonScopedSlot&&n(", undefined, true"),n(")"))}function ch(e,t){let{test:n,consequent:r,alternate:s,newline:o}=e,{push:i,indent:l,deindent:c,newline:a}=t;if(n.type===4){let u=!Mr(n.content);u&&i("("),wa(n,t),u&&i(")")}else i("("),Pe(n,t),i(")");o&&l(),t.indentLevel++,o||i(" "),i("? "),Pe(r,t),t.indentLevel--,o&&a(),o||i(" "),i(": ");let f=s.type===19;f||t.indentLevel++,Pe(s,t),f||t.indentLevel--,o&&c(!0)}function ah(e,t){let{push:n,helper:r,indent:s,deindent:o,newline:i}=t;n(`_cache[${e.index}] || (`),e.isVNode&&(s(),n(`${r(Vr)}(-1),`),i()),n(`_cache[${e.index}] = `),Pe(e.value,t),e.isVNode&&(n(","),i(),n(`${r(Vr)}(1),`),i(),n(`_cache[${e.index}]`),o()),n(")")}function uh(e,t,n=!1,r=[],s=Object.create(null)){}function fh(e,t,n){return!1}function ph(e,t){if(e&&(e.type==="ObjectProperty"||e.type==="ArrayPattern")){let n=t.length;for(;n--;){let r=t[n];if(r.type==="AssignmentExpression")return!0;if(r.type!=="ObjectProperty"&&!r.type.endsWith("Pattern"))break}}return!1}function dh(e,t){for(let n of e.params)for(let r of Lt(n))t(r)}function hh(e,t){for(let n of e.body)if(n.type==="VariableDeclaration"){if(n.declare)continue;for(let r of n.declarations)for(let s of Lt(r.id))t(s)}else if(n.type==="FunctionDeclaration"||n.type==="ClassDeclaration"){if(n.declare||!n.id)continue;t(n.id)}}function Lt(e,t=[]){switch(e.type){case"Identifier":t.push(e);break;case"MemberExpression":let n=e;for(;n.type==="MemberExpression";)n=n.object;t.push(n);break;case"ObjectPattern":for(let r of e.properties)r.type==="RestElement"?Lt(r.argument,t):Lt(r.value,t);break;case"ArrayPattern":e.elements.forEach(r=>{r&&Lt(r,t)});break;case"RestElement":Lt(e.argument,t);break;case"AssignmentPattern":Lt(e.left,t);break}return t}function hn(e,t,n=!1,r=!1){let s=e.content;if(s.trim())try{new Function(r?` ${s} `:`return ${n?`(${s}) => {}`:`(${s})`}`)}catch(o){let i=o.message,l=s.replace(yh,"").match(Eh);l&&(i=`avoid using JavaScript keyword as property name: "${l[0]}"`),t.onError(ie(45,e.loc,void 0,i))}}function Is(e,t,n=!1,r=!1,s=Object.create(t.identifiers)){return process.env.NODE_ENV!=="production"&&hn(e,t,n,r),e}function Da(e){return q(e)?e:e.type===4?e.content:e.children.map(Da).join("")}function Va(e,t,n,r){if(t.name!=="else"&&(!t.exp||!t.exp.content.trim())){let s=t.exp?t.exp.loc:e.loc;n.onError(ie(28,t.loc)),t.exp=Z("true",!1,s)}if(process.env.NODE_ENV!=="production"&&t.exp&&hn(t.exp,n),t.name==="if"){let s=Wc(e,t),o={type:9,loc:e.loc,branches:[s]};if(n.replaceNode(o),r)return r(o,s,!0)}else{let s=n.parent.children,o=[],i=s.indexOf(e);for(;i-->=-1;){let l=s[i];if(l&&l.type===3){n.removeNode(l),process.env.NODE_ENV!=="production"&&o.unshift(l);continue}if(l&&l.type===2&&!l.content.trim().length){n.removeNode(l);continue}if(l&&l.type===9){t.name==="else-if"&&l.branches[l.branches.length-1].condition===void 0&&n.onError(ie(30,e.loc)),n.removeNode();let c=Wc(e,t);if(process.env.NODE_ENV!=="production"&&o.length&&!(n.parent&&n.parent.type===1&&bt(n.parent.tag,"transition"))&&(c.children=[...o,...c.children]),process.env.NODE_ENV!=="production"){let f=c.userKey;f&&l.branches.forEach(({userKey:u})=>{vh(u,f)&&n.onError(ie(29,c.userKey.loc))})}l.branches.push(c);let a=r&&r(l,c,!1);$r(c,n),a&&a(),n.currentNode=null}else n.onError(ie(30,e.loc));break}}}function Wc(e,t){let n=e.tagType===3;return{type:10,loc:e.loc,condition:t.name==="else"?void 0:t.exp,children:n&&!Fe(e,"for")?e.children:[e],userKey:Ut(e,"key"),isTemplateIf:n}}function zc(e,t,n){return e.condition?xs(e.condition,qc(e,t,n),Ee(n.helper(Zn),[process.env.NODE_ENV!=="production"?'"v-if"':'""',"true"])):qc(e,t,n)}function qc(e,t,n){let{helper:r}=n,s=he("key",Z(`${t}`,!1,Oe,2)),{children:o}=e,i=o[0];if(o.length!==1||i.type!==1)if(o.length===1&&i.type===11){let c=i.codegenNode;return Rr(c,s,n),c}else{let c=64,a=Ze[64];return process.env.NODE_ENV!=="production"&&!e.isTemplateIf&&o.filter(f=>f.type!==3).length===1&&(c|=2048,a+=`, ${Ze[2048]}`),qn(n,r(Wn),We([s]),o,c+(process.env.NODE_ENV!=="production"?` /* ${a} */`:""),void 0,void 0,!0,!1,!1,e.loc)}else{let c=i.codegenNode,a=da(c);return a.type===13&&Qs(a,n),Rr(a,s,n),c}}function vh(e,t){if(!e||e.type!==t.type)return!1;if(e.type===6){if(e.value.content!==t.value.content)return!1}else{let n=e.exp,r=t.exp;if(n.type!==r.type||n.type!==4||n.isStatic!==r.isStatic||n.content!==r.content)return!1}return!0}function Nh(e){for(;;)if(e.type===19)if(e.alternate.type===19)e=e.alternate;else return e;else e.type===20&&(e=e.value)}function ka(e,t,n,r){if(!t.exp){n.onError(ie(31,t.loc));return}let s=Ji(t.exp,n);if(!s){n.onError(ie(32,t.loc));return}let{addIdentifiers:o,removeIdentifiers:i,scopes:l}=n,{source:c,value:a,key:f,index:u}=s,d={type:11,loc:t.loc,source:c,valueAlias:a,keyAlias:f,objectIndexAlias:u,parseResult:s,children:Jn(e)?e.children:[e]};n.replaceNode(d),l.vFor++;let g=r&&r(d);return()=>{l.vFor--,g&&g()}}function Ji(e,t){let n=e.loc,r=e.content,s=r.match(Oh);if(!s)return;let[,o,i]=s,l={source:Cs(n,i.trim(),r.indexOf(i,o.length)),value:void 0,key:void 0,index:void 0};process.env.NODE_ENV!=="production"&&hn(l.source,t);let c=o.trim().replace(wh,"").trim(),a=o.indexOf(c),f=c.match(Jc);if(f){c=c.replace(Jc,"").trim();let u=f[1].trim(),d;if(u&&(d=r.indexOf(u,a+c.length),l.key=Cs(n,u,d),process.env.NODE_ENV!=="production"&&hn(l.key,t,!0)),f[2]){let g=f[2].trim();g&&(l.index=Cs(n,g,r.indexOf(g,l.key?d+u.length:a+c.length)),process.env.NODE_ENV!=="production"&&hn(l.index,t,!0))}}return c&&(l.value=Cs(n,c,a),process.env.NODE_ENV!=="production"&&hn(l.value,t,!0)),l}function Cs(e,t,n){return Z(t,!1,Hi(e,n,t.length))}function $s({value:e,key:t,index:n},r=[]){return Th([e,t,n,...r])}function Th(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((n,r)=>n||Z("_".repeat(r+1),!1))}function Ia(e,t,n=Ch){t.helper(Xs);let{children:r,loc:s}=e,o=[],i=[],l=t.scopes.vSlot>0||t.scopes.vFor>0,c=Fe(e,"slot",!0);if(c){let{arg:D,exp:E}=c;D&&!Ve(D)&&(l=!0),o.push(he(D||Z("default",!0),n(E,r,s)))}let a=!1,f=!1,u=[],d=new Set,g=0;for(let D=0;D<r.length;D++){let E=r[D],h;if(!Jn(E)||!(h=Fe(E,"slot",!0))){E.type!==3&&u.push(E);continue}if(c){t.onError(ie(37,h.loc));break}a=!0;let{children:v,loc:w}=E,{arg:V=Z("default",!0),exp:B,loc:P}=h,_;Ve(V)?_=V?V.content:"default":l=!0;let I=n(B,v,w),$,R,C;if($=Fe(E,"if"))l=!0,i.push(xs($.exp,Ds(V,I,g++),Yc));else if(R=Fe(E,/^else(-if)?$/,!0)){let H=D,L;for(;H--&&(L=r[H],L.type===3););if(L&&Jn(L)&&Fe(L,"if")){r.splice(D,1),D--;let te=i[i.length-1];for(;te.alternate.type===19;)te=te.alternate;te.alternate=R.exp?xs(R.exp,Ds(V,I,g++),Yc):Ds(V,I,g++)}else t.onError(ie(30,R.loc))}else if(C=Fe(E,"for")){l=!0;let H=C.parseResult||Ji(C.exp,t);H?i.push(Ee(t.helper(qs),[H.source,gn($s(H),Ds(V,I),!0)])):t.onError(ie(32,C.loc))}else{if(_){if(d.has(_)){t.onError(ie(38,P));continue}d.add(_),_==="default"&&(f=!0)}o.push(he(V,I))}}if(!c){let D=(E,h)=>{let v=n(E,h,s);return t.compatConfig&&(v.isNonScopedSlot=!0),he("default",v)};a?u.length&&u.some(E=>Ra(E))&&(f?t.onError(ie(39,u[0].loc)):o.push(D(void 0,u))):o.push(D(void 0,r))}let y=l?2:Rs(e.children)?3:1,N=We(o.concat(he("_",Z(y+(process.env.NODE_ENV!=="production"?` /* ${mi[y]} */`:""),!1))),s);return i.length&&(N=Ee(t.helper($i),[N,Qn(i)])),{slots:N,hasDynamicSlots:l}}function Ds(e,t,n){let r=[he("name",e),he("fn",t)];return n!=null&&r.push(he("key",Z(String(n),!0))),We(r)}function Rs(e){for(let t=0;t<e.length;t++){let n=e[t];switch(n.type){case 1:if(n.tagType===2||Rs(n.children))return!0;break;case 9:if(Rs(n.branches))return!0;break;case 10:case 11:if(Rs(n.children))return!0;break}}return!1}function Ra(e){return e.type!==2&&e.type!==12?!0:e.type===2?!!e.content.trim():Ra(e.content)}function xa(e,t,n=!1){let{tag:r}=e,s=ki(r),o=Ut(e,"is");if(o)if(s||Bt("COMPILER_IS_ON_ELEMENT",t)){let c=o.type===6?o.value&&Z(o.value.content,!0):o.exp;if(c)return Ee(t.helper(Cr),[c])}else o.type===6&&o.value.content.startsWith("vue:")&&(r=o.value.content.slice(4));let i=!s&&Fe(e,"is");if(i&&i.exp)return Ee(t.helper(Cr),[i.exp]);let l=ji(r)||t.isBuiltInComponent(r);return l?(n||t.helper(l),l):(t.helper(Us),t.components.add(r),Yn(r,"component"))}function Yi(e,t,n=e.props,r,s,o=!1){let{tag:i,loc:l,children:c}=e,a=[],f=[],u=[],d=c.length>0,g=!1,y=0,N=!1,D=!1,E=!1,h=!1,v=!1,w=!1,V=[],B=I=>{a.length&&(f.push(We(Zc(a),l)),a=[]),I&&f.push(I)},P=({key:I,value:$})=>{if(Ve(I)){let R=I.content,C=Ke(R);if(C&&(!r||s)&&R.toLowerCase()!=="onclick"&&R!=="onUpdate:modelValue"&&!ft(R)&&(h=!0),C&&ft(R)&&(w=!0),$.type===20||($.type===4||$.type===8)&&Le($,t)>0)return;R==="ref"?N=!0:R==="class"?D=!0:R==="style"?E=!0:R!=="key"&&!V.includes(R)&&V.push(R),r&&(R==="class"||R==="style")&&!V.includes(R)&&V.push(R)}else v=!0};for(let I=0;I<n.length;I++){let $=n[I];if($.type===6){let{loc:R,name:C,value:H}=$,L=!0;if(C==="ref"&&(N=!0,t.scopes.vFor>0&&a.push(he(Z("ref_for",!0),Z("true")))),C==="is"&&(ki(i)||H&&H.content.startsWith("vue:")||Bt("COMPILER_IS_ON_ELEMENT",t)))continue;a.push(he(Z(C,!0,Hi(R,0,C.length)),Z(H?H.content:"",L,H?H.loc:R)))}else{let{name:R,arg:C,exp:H,loc:L}=$,te=R==="bind",oe=R==="on";if(R==="slot"){r||t.onError(ie(40,L));continue}if(R==="once"||R==="memo"||R==="is"||te&&jt(C,"is")&&(ki(i)||Bt("COMPILER_IS_ON_ELEMENT",t))||oe&&o)continue;if((te&&jt(C,"key")||oe&&d&&jt(C,"vue:before-update"))&&(g=!0),te&&jt(C,"ref")&&t.scopes.vFor>0&&a.push(he(Z("ref_for",!0),Z("true"))),!C&&(te||oe)){if(v=!0,H)if(te){if(B(),process.env.NODE_ENV!=="production"&&f.some(Te=>Te.type===15?Te.properties.some(({key:_t})=>_t.type!==4||!_t.isStatic?!0:_t.content!=="class"&&_t.content!=="style"&&!Ke(_t.content)):!0)&&Ot("COMPILER_V_BIND_OBJECT_ORDER",t,L),Bt("COMPILER_V_BIND_OBJECT_ORDER",t)){f.unshift(H);continue}f.push(H)}else B({type:14,loc:L,callee:t.helper(Zs),arguments:r?[H]:[H,"true"]});else t.onError(ie(te?34:35,L));continue}let ne=t.directiveTransforms[R];if(ne){let{props:ee,needRuntime:Te}=ne($,e,t);!o&&ee.forEach(P),oe&&C&&!Ve(C)?B(We(ee,l)):a.push(...ee),Te&&(u.push($),tt(Te)&&Aa.set($,Te))}else br(R)||(u.push($),d&&(g=!0))}}let _;if(f.length?(B(),f.length>1?_=Ee(t.helper(Dr),f,l):_=f[0]):a.length&&(_=We(Zc(a),l)),v?y|=16:(D&&!r&&(y|=2),E&&!r&&(y|=4),V.length&&(y|=8),h&&(y|=32)),!g&&(y===0||y===32)&&(N||w||u.length>0)&&(y|=512),!t.inSSR&&_)switch(_.type){case 15:let I=-1,$=-1,R=!1;for(let L=0;L<_.properties.length;L++){let te=_.properties[L].key;Ve(te)?te.content==="class"?I=L:te.content==="style"&&($=L):te.isHandlerKey||(R=!0)}let C=_.properties[I],H=_.properties[$];R?_=Ee(t.helper(zn),[_]):(C&&!Ve(C.value)&&(C.value=Ee(t.helper(Js),[C.value])),H&&(E||H.value.type===4&&H.value.content.trim()[0]==="["||H.value.type===17)&&(H.value=Ee(t.helper(Ys),[H.value])));break;case 14:break;default:_=Ee(t.helper(zn),[Ee(t.helper(Gn),[_])]);break}return{props:_,directives:u,patchFlag:y,dynamicPropNames:V,shouldUseBlock:g}}function Zc(e){let t=new Map,n=[];for(let r=0;r<e.length;r++){let s=e[r];if(s.key.type===8||!s.key.isStatic){n.push(s);continue}let o=s.key.content,i=t.get(o);i?(o==="style"||o==="class"||Ke(o))&&Dh(i,s):(t.set(o,s),n.push(s))}return n}function Dh(e,t){e.value.type===17?e.value.elements.push(t.value):e.value=Qn([e.value,t.value],e.loc)}function $a(e,t){let n=[],r=Aa.get(e);r?n.push(t.helperString(r)):(t.helper(Ks),t.directives.add(e.name),n.push(Yn(e.name,"directive")));let{loc:s}=e;if(e.exp&&n.push(e.exp),e.arg&&(e.exp||n.push("void 0"),n.push(e.arg)),Object.keys(e.modifiers).length){e.arg||(e.exp||n.push("void 0"),n.push("void 0"));let o=Z("true",!1,s);n.p