"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("stream");function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=t(require("he"));const r=Object.freeze({}),s=Array.isArray;function o(e){return null==e}function i(e){return null!=e}function c(e){return!0===e}function a(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function l(e){return"function"==typeof e}function u(e){return null!==e&&"object"==typeof e}const f=Object.prototype.toString;function p(e){return"[object Object]"===f.call(e)}function d(e){return null==e?"":Array.isArray(e)||p(e)&&e.toString===f?JSON.stringify(e,null,2):String(e)}function h(e){const t=parseFloat(e);return isNaN(t)?e:t}function m(e,t){const n=Object.create(null),r=e.split(",");for(let e=0;en[e.toLowerCase()]:e=>n[e]}const g=m("slot,component",!0),y=m("key,ref,slot,slot-scope,is"),$=Object.prototype.hasOwnProperty;function v(e,t){return $.call(e,t)}function b(e){const t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}const _=/-(\w)/g,x=b((e=>e.replace(_,((e,t)=>t?t.toUpperCase():"")))),w=b((e=>e.charAt(0).toUpperCase()+e.slice(1))),S=/\B([A-Z])/g,k=b((e=>e.replace(S,"-$1").toLowerCase()));function O(e,t){for(const n in t)e[n]=t[n];return e}function C(e){const t={};for(let n=0;n!1,j=e=>e;function F(e,t){if(e===t)return!0;const n=u(e),r=u(t);if(!n||!r)return!n&&!r&&String(e)===String(t);try{const n=Array.isArray(e),r=Array.isArray(t);if(n&&r)return e.length===t.length&&e.every(((e,n)=>F(e,t[n])));if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(n||r)return!1;{const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every((n=>F(e[n],t[n])))}}catch(e){return!1}}function P(e,t){for(let n=0;n/="'\u0009\u000a\u000c\u0020]/,M=e=>I.test(e),R=e=>E(e)||0===e.indexOf("data-")||0===e.indexOf("aria-"),D={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},L={"<":"<",">":">",'"':""","&":"&"};function z(e){return e.replace(/[<>"&]/g,B)}function B(e){return L[e]||e}const U={"animation-iteration-count":!0,"border-image-outset":!0,"border-image-slice":!0,"border-image-width":!0,"box-flex":!0,"box-flex-group":!0,"box-ordinal-group":!0,"column-count":!0,columns:!0,flex:!0,"flex-grow":!0,"flex-positive":!0,"flex-shrink":!0,"flex-negative":!0,"flex-order":!0,"grid-row":!0,"grid-row-end":!0,"grid-row-span":!0,"grid-row-start":!0,"grid-column":!0,"grid-column-end":!0,"grid-column-span":!0,"grid-column-start":!0,"font-weight":!0,"line-clamp":!0,"line-height":!0,opacity:!0,order:!0,orphans:!0,"tab-size":!0,widows:!0,"z-index":!0,zoom:!0,"fill-opacity":!0,"flood-opacity":!0,"stop-opacity":!0,"stroke-dasharray":!0,"stroke-dashoffset":!0,"stroke-miterlimit":!0,"stroke-opacity":!0,"stroke-width":!0},q=e=>/\.js(\?[^.]+)?$/.test(e);function J(){let e,t;return{promise:new Promise(((n,r)=>{e=n,t=r})),cb:(n,r)=>{if(n)return t(n);e(r||"")}}}const K=m("input,textarea,option,select,progress"),H=m("contenteditable,draggable,spellcheck"),V=m("events,caret,typing,plaintext-only"),W=m("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),Z=e=>null==e||!1===e;function G(e,t){if(W(e)){if(!Z(t))return` ${e}="${e}"`}else{if(H(e))return` ${e}="${z(((e,t)=>Z(t)||"false"===t?"false":"contenteditable"===e&&V(t)?t:"true")(e,t))}"`;if(!Z(t))return` ${e}="${z(String(t))}"`}return""}class Q{constructor(e,t,n,r,s,o,i,c){this.tag=e,this.data=t,this.children=n,this.text=r,this.elm=s,this.ns=void 0,this.context=o,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=t&&t.key,this.componentOptions=i,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=c,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1}get child(){return this.componentInstance}}const X=(e="")=>{const t=new Q;return t.text=e,t.isComment=!0,t};function Y(e){return new Q(void 0,void 0,void 0,String(e))}function ee(e,t,n){const r=new Q(void 0,void 0,void 0,t);r.raw=n,e.children=[r]}function te(e,t,n,r){Object.defineProperty(e,t,{value:n,enumerable:!!r,writable:!0,configurable:!0})}const ne="__proto__"in{},re="undefined"!=typeof window,se=re&&window.navigator.userAgent.toLowerCase(),oe=se&&/msie|trident/.test(se);se&&se.indexOf("msie 9.0");se&&se.indexOf("edge/");se&&se.indexOf("android"),se&&/iphone|ipad|ipod|ios/.test(se),se&&/chrome\/\d+/.test(se),se&&/phantomjs/.test(se),se&&se.match(/firefox\/(\d+)/);const ie={}.watch;let ce,ae=!1;if(re)try{const e={};Object.defineProperty(e,"passive",{get(){ae=!0}}),window.addEventListener("test-passive",null,e)}catch(e){}const le=()=>(void 0===ce&&(ce=!re&&"undefined"!=typeof global&&(global.process&&"server"===global.process.env.VUE_ENV)),ce);function ue(e){return"function"==typeof e&&/native code/.test(e.toString())}const fe="undefined"!=typeof Symbol&&ue(Symbol)&&"undefined"!=typeof Reflect&&ue(Reflect.ownKeys);let pe;pe="undefined"!=typeof Set&&ue(Set)?Set:class{constructor(){this.set=Object.create(null)}has(e){return!0===this.set[e]}add(e){this.set[e]=!0}clear(){this.set=Object.create(null)}};const de=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch","renderTracked","renderTriggered"];var he={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:A,isReservedAttr:A,isUnknownElement:A,getTagNamespace:T,parsePlatformTagName:j,mustUseProp:A,async:!0,_lifecycleHooks:de};let me=null;function ge(e=null){e||me&&me._scope.off(),me=e,e&&e._scope.on()}let ye=0;class $e{constructor(){this._pending=!1,this.id=ye++,this.subs=[]}addSub(e){this.subs.push(e)}removeSub(e){this.subs[this.subs.indexOf(e)]=null,this._pending||(this._pending=!0)}depend(e){$e.target&&$e.target.addDep(this)}notify(e){const t=this.subs.filter((e=>e));for(let e=0,n=t.length;e=0&&Math.floor(t)===t&&isFinite(e)}(t)?(e.length=Math.max(e.length,t),e.splice(t,1,n),o&&!o.shallow&&o.mock&&Fe(n,!1,!0),n):t in e&&!(t in Object.prototype)?(e[t]=n,n):e._isVue||o&&o.vmCount?n:o?(Pe(o.value,t,n,void 0,o.shallow,o.mock),o.dep.notify(),n):(e[t]=n,n)}function Ee(e){for(let t,n=0,r=e.length;n{const t="&"===e.charAt(0),n="~"===(e=t?e.slice(1):e).charAt(0),r="!"===(e=n?e.slice(1):e).charAt(0);return{name:e=r?e.slice(1):e,once:n,capture:r,passive:t}}));function Re(e,t){function n(){const e=n.fns;if(!s(e))return St(e,null,arguments,t,"v-on handler");{const n=e.slice();for(let e=0;e0&&(l=Ue(l,`${t||""}_${r}`),Be(l[0])&&Be(f)&&(n[u]=Y(f.text+l[0].text),l.shift()),n.push.apply(n,l)):a(l)?Be(f)?n[u]=Y(f.text+l):""!==l&&n.push(Y(l)):Be(l)&&Be(f)?n[u]=Y(f.text+l.text):(c(e._isVList)&&i(l.tag)&&o(l.key)&&i(t)&&(l.key=`__vlist${t}_${r}__`),n.push(l)));return n}function qe(e,t,n,r,o,f){return(s(n)||a(n))&&(o=r,r=n,n=void 0),c(f)&&(o=2),function(e,t,n,r,o){if(i(n)&&i(n.__ob__))return X();i(n)&&i(n.is)&&(t=n.is);if(!t)return X();s(r)&&l(r[0])&&((n=n||{}).scopedSlots={default:r[0]},r.length=0);2===o?r=ze(r):1===o&&(r=Le(r));let c,a;if("string"==typeof t){let s;a=e.$vnode&&e.$vnode.ns||he.getTagNamespace(t),c=n&&n.pre||!i(s=Ht(e.$options,"components",t))?new Q(t,n,r,void 0,void 0,e):Mt(s,n,e,r,t)}else c=Mt(t,n,e,r);return s(c)?c:i(c)?(i(a)&&Je(c,a),i(n)&&function(e){u(e.style)&&Tt(e.style);u(e.class)&&Tt(e.class)}(n),c):X()}(e,t,n,r,o)}function Je(e,t,n){if(e.ns=t,"foreignObject"===e.tag&&(t=void 0,n=!0),i(e.children))for(let r=0,s=e.children.length;r0,c=t?!!t.$stable:!i,a=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(c&&s&&s!==r&&a===s.$key&&!i&&!s.$hasNormal)return s;o={};for(const r in t)t[r]&&"$"!==r[0]&&(o[r]=lt(e,n,r,t[r]))}else o={};for(const e in n)e in o||(o[e]=ut(n,e));return t&&Object.isExtensible(t)&&(t._normalized=o),te(o,"$stable",c),te(o,"$key",a),te(o,"$hasNormal",i),o}function lt(e,t,n,r){const o=function(){const t=me;ge(e);let n=arguments.length?r.apply(null,arguments):r({});n=n&&"object"==typeof n&&!s(n)?[n]:ze(n);const o=n&&n[0];return ge(t),n&&(!o||1===n.length&&o.isComment&&!ct(o))?void 0:n};return r.proxy&&Object.defineProperty(t,n,{get:o,enumerable:!0,configurable:!0}),o}function ut(e,t){return()=>e[t]}function ft(e,t,n,r,s){let o=!1;for(const i in t)i in e?t[i]!==n[i]&&(o=!0):(o=!0,pt(e,i,r,s));for(const n in e)n in t||(o=!0,delete e[n]);return o}function pt(e,t,n,r){Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:()=>n[r][t]})}let dt;function ht(e,t){dt.$on(e,t)}function mt(e,t){dt.$off(e,t)}function gt(e,t){const n=dt;return function r(){const s=t.apply(null,arguments);null!==s&&n.$off(e,r)}}function yt(e,t,n){dt=e,function(e,t,n,r,s,i){let a,l,u,f;for(a in e)l=e[a],u=t[a],f=Me(a),o(l)||(o(u)?(o(l.fns)&&(l=e[a]=Re(l,i)),c(f.once)&&(l=e[a]=s(f.name,l,f.capture)),n(f.name,l,f.capture,f.passive,f.params)):l!==u&&(u.fns=l,e[a]=u));for(a in t)o(e[a])&&(f=Me(a),r(f.name,t[a],f.capture))}(t,n||{},ht,mt,gt,e),dt=void 0}function $t(e){for(;e&&(e=e.$parent);)if(e._inactive)return!0;return!1}function vt(e,t){if(t){if(e._directInactive=!1,$t(e))return}else if(e._directInactive)return;if(e._inactive||null===e._inactive){e._inactive=!1;for(let t=0;tdocument.createEvent("Event").timeStamp&&(xt=()=>e.now())}function wt(e,t,n){be();try{if(t){let r=t;for(;r=r.$parent;){const s=r.$options.errorCaptured;if(s)for(let o=0;owt(e,r,s+" (Promise/async)"))),o._handled=!0)}catch(e){wt(e,r,s)}var c;return o}function kt(e,t,n){!function(e,t,n){if(!re||"undefined"==typeof console)throw e;console.error(e)}(e)}const Ot=[];if("undefined"!=typeof Promise&&ue(Promise))Promise.resolve();else if(oe||"undefined"==typeof MutationObserver||!ue(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())"undefined"!=typeof setImmediate&&ue(setImmediate);else{let e=1;const t=new MutationObserver((function(){const e=Ot.slice(0);Ot.length=0;for(let t=0;t(this.$slots||at(o,e.scopedSlots,this.$slots=ot(n,o)),this.$slots),Object.defineProperty(this,"scopedSlots",{enumerable:!0,get(){return at(o,e.scopedSlots,this.slots())}}),f&&(this.$options=a,this.$slots=this.slots(),this.$scopedSlots=at(o,e.scopedSlots,this.$slots)),a._scopeId?this._c=(e,t,n,r)=>{const i=qe(u,e,t,n,r,p);return i&&!s(i)&&(i.fnScopeId=a._scopeId,i.fnContext=o),i}:this._c=(e,t,n,r)=>qe(u,e,t,n,r,p)}function Pt(e,t,n,r,s){const o=function(e){const t=new Q(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}(e);return o.fnContext=n,o.fnOptions=r,t.slot&&((o.data||(o.data={})).slot=t.slot),o}function Nt(e,t){for(const n in t)e[x(n)]=t[n]}!function(e){e._o=Xe,e._n=h,e._s=d,e._l=Ke,e._t=He,e._q=F,e._i=P,e._m=Qe,e._f=Ve,e._k=Ze,e._b=Ge,e._v=Y,e._e=X,e._u=nt,e._g=tt,e._d=rt,e._p=st}(Ft.prototype);const Et={init(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){const t=e;Et.prepatch(t,t)}else{(e.componentInstance=Rt(e,null)).$mount(t?e.elm:void 0,t)}},prepatch(e,t){const n=t.componentOptions;!function(e,t,n,s,o){const i=s.data.scopedSlots,c=e.$scopedSlots,a=!!(i&&!i.$stable||c!==r&&!c.$stable||i&&e.$scopedSlots.$key!==i.$key||!i&&e.$scopedSlots.$key);let l=!!(o||e.$options._renderChildren||a);const u=e.$vnode;e.$options._parentVnode=s,e.$vnode=s,e._vnode&&(e._vnode.parent=s),e.$options._renderChildren=o;const f=s.data.attrs||r;e._attrsProxy&&ft(e._attrsProxy,f,u.data&&u.data.attrs||r,e,"$attrs")&&(l=!0),e.$attrs=f,n=n||r;const p=e.$options._parentListeners;if(e._listenersProxy&&ft(e._listenersProxy,n,p||r,e,"$listeners"),e.$listeners=e.$options._parentListeners=n,yt(e,n,p),t&&e.$options.props){Te(!1);const n=e._props,r=e.$options._propKeys||[];for(let s=0;s{e(n,r),t(n,r)};return n._merged=!0,n}const Lt=he.optionMergeStrategies;function zt(e,t){if(!t)return e;let n,r,s;const o=fe?Reflect.ownKeys(t):Object.keys(t);for(let i=0;i{Lt[e]=Ut})),["component","directive","filter"].forEach((function(e){Lt[e+"s"]=qt})),Lt.watch=function(e,t,n,r){if(e===ie&&(e=void 0),t===ie&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;const o={};O(o,e);for(const e in t){let n=o[e];const r=t[e];n&&!s(n)&&(n=[n]),o[e]=n?n.concat(r):s(r)?r:[r]}return o},Lt.props=Lt.methods=Lt.inject=Lt.computed=function(e,t,n,r){if(!e)return t;const s=Object.create(null);return O(s,e),t&&O(s,t),s},Lt.provide=Bt;const Jt=function(e,t){return void 0===t?e:t};function Kt(e,t,n){if(l(t)&&(t=t.options),function(e,t){const n=e.props;if(!n)return;const r={};let o,i,c;if(s(n))for(o=n.length;o--;)i=n[o],"string"==typeof i&&(c=x(i),r[c]={type:null});else if(p(n))for(const e in n)i=n[e],c=x(e),r[c]=p(i)?i:{type:i};e.props=r}(t),function(e,t){const n=e.inject;if(!n)return;const r=e.inject={};if(s(n))for(let e=0;e-1)if(o&&!v(s,"default"))i=!1;else if(""===i||i===k(e)){const e=Qt(String,s.type);(e<0||c1&&(t[r[0].trim()]=r[1].trim())}})),t}));function on(e){const t=cn(e.style);return e.staticStyle?O(e.staticStyle,t):t}function cn(e){return Array.isArray(e)?C(e):"string"==typeof e?sn(e):e}function an(e){let t="";for(const n in e){const r=e[n],s=k(n);if(Array.isArray(r))for(let e=0,n=r.length;e-1&&pn(s)}else if(F(n,fn(s)))return void pn(s)}}};const hn=m("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),mn=m("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),gn=m("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),yn=e=>e,$n="undefined"!=typeof process&&process.nextTick?process.nextTick:"undefined"!=typeof Promise?e=>Promise.resolve().then(e):"undefined"!=typeof setTimeout?setTimeout:yn;if($n===yn)throw new Error("Your JavaScript runtime does not support any asynchronous primitives that are required by vue-server-renderer. Please use a polyfill for either Promise or setTimeout.");function vn(e,t){let n=0;const r=(s,o)=>{s&&r.caching&&(r.cacheBuffer[r.cacheBuffer.length-1]+=s);!0!==e(s,o)&&(n>=800?$n((()=>{try{o()}catch(e){t(e)}})):(n++,o(),n--))};return r.caching=!1,r.cacheBuffer=[],r.componentBuffer=[],r}class bn extends e.Readable{constructor(e){super(),this.buffer="",this.render=e,this.expectedSize=0,this.write=vn(((e,t)=>{const n=this.expectedSize;return this.buffer+=e,this.buffer.length>=n&&(this.next=t,this.pushBySize(n),!0)}),(e=>{this.emit("error",e)})),this.end=()=>{this.emit("beforeEnd"),this.done=!0,this.push(this.buffer)}}pushBySize(e){const t=this.buffer.substring(0,e);this.buffer=this.buffer.substring(e),this.push(t)}tryRender(){try{this.render(this.write,this.end)}catch(e){this.emit("error",e)}}tryNext(){try{this.next()}catch(e){this.emit("error",e)}}_read(e){this.expectedSize=e,c(this.done)?this.push(null):this.buffer.length>=e?this.pushBySize(e):o(this.next)?this.tryRender():this.tryNext()}}class _n{constructor(e){this.userContext=e.userContext,this.activeInstance=e.activeInstance,this.renderStates=[],this.write=e.write,this.done=e.done,this.renderNode=e.renderNode,this.isUnaryTag=e.isUnaryTag,this.modules=e.modules,this.directives=e.directives;const t=e.cache;if(t&&(!t.get||!t.set))throw new Error("renderer cache must implement at least get & set.");this.cache=t,this.get=t&&xn(t,"get"),this.has=t&&xn(t,"has"),this.next=this.next.bind(this)}next(){for(;;){const e=this.renderStates[this.renderStates.length-1];if(o(e))return this.done();switch(e.type){case"Element":case"Fragment":const{children:t,total:n}=e,r=e.rendered++;if(re.add(t)))}s.length=o,i.length=o}}}}function xn(e,t){const n=e[t];return o(n)?void 0:n.length>1?(t,r)=>n.call(e,t,r):(t,r)=>r(n.call(e,t))}const wn=/[\w).+\-_$\]]/;function Sn(e){let t,n,r,s,o,i=!1,c=!1,a=!1,l=!1,u=0,f=0,p=0,d=0;for(r=0;r=0&&(t=e.charAt(n)," "===t);n--);t&&wn.test(t)||(l=!0)}}else void 0===s?(d=r+1,s=e.slice(0,r).trim()):h();function h(){(o||(o=[])).push(e.slice(d,r).trim()),d=r+1}if(void 0===s?s=e.slice(0,r).trim():0!==d&&h(),o)for(r=0;r{const t=e[0].replace(Cn,"\\$&"),n=e[1].replace(Cn,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+n,"g")}));function An(e,t){console.error(`[Vue compiler]: ${e}`)}function jn(e,t){return e?e.map((e=>e[t])).filter((e=>e)):[]}function Fn(e,t,n,r,s){(e.props||(e.props=[])).push(zn({name:t,value:n,dynamic:s},r)),e.plain=!1}function Pn(e,t,n,r,s){(s?e.dynamicAttrs||(e.dynamicAttrs=[]):e.attrs||(e.attrs=[])).push(zn({name:t,value:n,dynamic:s},r)),e.plain=!1}function Nn(e,t,n,r){e.attrsMap[t]=n,e.attrsList.push(zn({name:t,value:n},r))}function En(e,t,n,r,s,o,i,c){(e.directives||(e.directives=[])).push(zn({name:t,rawName:n,value:r,arg:s,isDynamicArg:o,modifiers:i},c)),e.plain=!1}function In(e,t,n){return n?`_p(${t},"${e}")`:e+t}function Mn(e,t,n,s,o,i,c,a){let l;(s=s||r).right?a?t=`(${t})==='click'?'contextmenu':(${t})`:"click"===t&&(t="contextmenu",delete s.right):s.middle&&(a?t=`(${t})==='click'?'mouseup':(${t})`:"click"===t&&(t="mouseup")),s.capture&&(delete s.capture,t=In("!",t,a)),s.once&&(delete s.once,t=In("~",t,a)),s.passive&&(delete s.passive,t=In("&",t,a)),s.native?(delete s.native,l=e.nativeEvents||(e.nativeEvents={})):l=e.events||(e.events={});const u=zn({value:n.trim(),dynamic:a},c);s!==r&&(u.modifiers=s);const f=l[t];Array.isArray(f)?o?f.unshift(u):f.push(u):l[t]=f?o?[u,f]:[f,u]:u,e.plain=!1}function Rn(e,t,n){const r=Dn(e,":"+t)||Dn(e,"v-bind:"+t);if(null!=r)return Sn(r);if(!1!==n){const n=Dn(e,t);if(null!=n)return JSON.stringify(n)}}function Dn(e,t,n){let r;if(null!=(r=e.attrsMap[t])){const n=e.attrsList;for(let e=0,r=n.length;e\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Jn=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+?\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Kn=`[a-zA-Z_][\\-\\.0-9_a-zA-Z${/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/.source}]*`,Hn=`((?:${Kn}\\:)?${Kn})`,Vn=new RegExp(`^<${Hn}`),Wn=/^\s*(\/?)>/,Zn=new RegExp(`^<\\/${Hn}[^>]*>`),Gn=/^]+>/i,Qn=/^",""":'"',"&":"&"," ":"\n"," ":"\t","'":"'"},nr=/&(?:lt|gt|quot|amp|#39);/g,rr=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,sr=m("pre,textarea",!0),or=(e,t)=>e&&sr(e)&&"\n"===t[0];function ir(e,t){const n=t?rr:nr;return e.replace(n,(e=>tr[e]))}function cr(e,t,n){const{number:r,trim:s}=n||{},o="$$v";let i=o;s&&(i="(typeof $$v === 'string'? $$v.trim(): $$v)"),r&&(i=`_n(${i})`);const c=ar(t,i);e.model={value:`(${t})`,expression:JSON.stringify(t),callback:`function ($$v) {${c}}`}}function ar(e,t){const n=function(e){if(e=e.trim(),lr=e.length,e.indexOf("[")<0||e.lastIndexOf("]")-1?{exp:e.slice(0,pr),key:'"'+e.slice(pr+1)+'"'}:{exp:e,key:null};ur=e,pr=dr=hr=0;for(;!gr();)fr=mr(),yr(fr)?vr(fr):91===fr&&$r(fr);return{exp:e.slice(0,dr),key:e.slice(dr+1,hr)}}(e);return null===n.key?`${e}=${t}`:`$set(${n.exp}, ${n.key}, ${t})`}let lr,ur,fr,pr,dr,hr;function mr(){return ur.charCodeAt(++pr)}function gr(){return pr>=lr}function yr(e){return 34===e||39===e}function $r(e){let t=1;for(dr=pr;!gr();)if(yr(e=mr()))vr(e);else if(91===e&&t++,93===e&&t--,0===t){hr=pr;break}}function vr(e){const t=e;for(;!gr()&&(e=mr())!==t;);}const br=/^@|^v-on:/,_r=/^v-|^@|^:|^#/,xr=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,wr=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Sr=/^\(|\)$/g,kr=/^\[.*\]$/,Or=/:(.*)$/,Cr=/^:|^\.|^v-bind:/,Tr=/\.[^.\]]+(?=[^\]]*$)/g,Ar=/^v-slot(:|$)|^#/,jr=/[\r\n]/,Fr=/[ \f\t\r\n]+/g,Pr=b(n.default.decode);let Nr,Er,Ir,Mr,Rr,Dr,Lr,zr;function Br(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:Wr(t),rawAttrsMap:{},parent:n,children:[]}}function Ur(e,t){Nr=t.warn||An,Dr=t.isPreTag||A,Lr=t.mustUseProp||A,zr=t.getTagNamespace||A,t.isReservedTag,Ir=jn(t.modules,"transformNode"),Mr=jn(t.modules,"preTransformNode"),Rr=jn(t.modules,"postTransformNode"),Er=t.delimiters;const n=[],r=!1!==t.preserveWhitespace,s=t.whitespace;let o,i,c=!1,a=!1;function l(e){if(u(e),c||e.processed||(e=qr(e,t)),n.length||e===o||o.if&&(e.elseif||e.else)&&Kr(o,{exp:e.elseif,block:e}),i&&!e.forbidden)if(e.elseif||e.else)!function(e,t){const n=function(e){let t=e.length;for(;t--;){if(1===e[t].type)return e[t];e.pop()}}(t.children);n&&n.if&&Kr(n,{exp:e.elseif,block:e})}(e,i);else{if(e.slotScope){const t=e.slotTarget||'"default"';(i.scopedSlots||(i.scopedSlots={}))[t]=e}i.children.push(e),e.parent=i}e.children=e.children.filter((e=>!e.slotScope)),u(e),e.pre&&(c=!1),Dr(e.tag)&&(a=!1);for(let n=0;n]*>)","i")),o=e.replace(s,(function(e,s,o){return n=o.length,Yn(r)||"noscript"===r||(s=s.replace(//g,"$1").replace(//g,"$1")),or(r,s)&&(s=s.slice(1)),t.chars&&t.chars(s),""}));a+=e.length-o.length,e=o,p(r,a-n,a)}else{let n,r,s,o=e.indexOf("<");if(0===o){if(Qn.test(e)){const n=e.indexOf("--\x3e");if(n>=0){t.shouldKeepComment&&t.comment&&t.comment(e.substring(4,n),a,a+n+3),l(n+3);continue}}if(Xn.test(e)){const t=e.indexOf("]>");if(t>=0){l(t+2);continue}}const n=e.match(Gn);if(n){l(n[0].length);continue}const r=e.match(Zn);if(r){const e=a;l(r[0].length),p(r[1],e,a);continue}const s=u();if(s){f(s),or(s.tagName,e)&&l(1);continue}}if(o>=0){for(r=e.slice(o);!(Zn.test(r)||Vn.test(r)||Qn.test(r)||Xn.test(r)||(s=r.indexOf("<",1),s<0));)o+=s,r=e.slice(o);n=e.substring(0,o)}o<0&&(n=e),n&&l(n.length),t.chars&&n&&t.chars(n,a-n.length,a)}if(e===i){t.chars&&t.chars(e);break}}function l(t){a+=t,e=e.substring(t)}function u(){const t=e.match(Vn);if(t){const n={tagName:t[1],attrs:[],start:a};let r,s;for(l(t[0].length);!(r=e.match(Wn))&&(s=e.match(Jn)||e.match(qn));)s.start=a,l(s[0].length),s.end=a,n.attrs.push(s);if(r)return n.unarySlash=r[1],l(r[0].length),n.end=a,n}}function f(e){const i=e.tagName,a=e.unarySlash;r&&("p"===c&&gn(i)&&p(c),o(i)&&c===i&&p(i));const l=s(i)||!!a,u=e.attrs.length,f=new Array(u);for(let n=0;n=0&&n[o].lowerCasedTag!==i;o--);else o=0;if(o>=0){for(let e=n.length-1;e>=o;e--)t.end&&t.end(n[e].tag,r,s);n.length=o,c=o&&n[o-1].tag}else"br"===i?t.start&&t.start(e,[],!0,r,s):"p"===i&&(t.start&&t.start(e,[],!1,r,s),t.end&&t.end(e,r,s))}p()}(e,{warn:Nr,expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,canBeLeftOpenTag:t.canBeLeftOpenTag,shouldDecodeNewlines:t.shouldDecodeNewlines,shouldDecodeNewlinesForHref:t.shouldDecodeNewlinesForHref,shouldKeepComment:t.comments,outputSourceRange:t.outputSourceRange,start(e,r,s,u,f){const p=i&&i.ns||zr(e);oe&&"svg"===p&&(r=function(e){const t=[];for(let n=0;na&&(s.push(c=e.slice(a,i)),r.push(JSON.stringify(c)));const t=Sn(o[1].trim());r.push(`_s(${t})`),s.push({"@binding":t}),a=i+o[0].length}return a{if(!e.slotScope)return e.parent=o,!0})),o.slotScope=t.value||"_empty_",e.children=[],e.plain=!1}}}(e),"slot"===(n=e).tag&&(n.slotName=Rn(n,"name")),function(e){let t;(t=Rn(e,"is"))&&(e.component=t);null!=Dn(e,"inline-template")&&(e.inlineTemplate=!0)}(e);for(let n=0;n{e[t.slice(1)]=!0})),e}}function Wr(e){const t={};for(let n=0,r=e.length;n-1`+("true"===o?`:(${t})`:`:_q(${t},${o})`)),Mn(e,"change",`var $$a=${t},$$el=$event.target,$$c=$$el.checked?(${o}):(${i});if(Array.isArray($$a)){var $$v=${r?"_n("+s+")":s},$$i=_i($$a,$$v);if($$el.checked){$$i<0&&(${ar(t,"$$a.concat([$$v])")})}else{$$i>-1&&(${ar(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")})}}else{${ar(t,"$$c")}}`,null,!0)}(e,r,s);else if("input"===o&&"radio"===i)!function(e,t,n){const r=n&&n.number;let s=Rn(e,"value")||"null";s=r?`_n(${s})`:s,Fn(e,"checked",`_q(${t},${s})`),Mn(e,"change",ar(t,s),null,!0)}(e,r,s);else{if("input"!==o&&"textarea"!==o)return cr(e,r,s),!1;!function(e,t,n){const r=e.attrsMap.type,{lazy:s,number:o,trim:i}=n||{},c=!s&&"range"!==r,a=s?"change":"range"===r?"__r":"input";let l="$event.target.value";i&&(l="$event.target.value.trim()");o&&(l=`_n(${l})`);let u=ar(t,l);c&&(u=`if($event.target.composing)return;${u}`);Fn(e,"value",`(${t})`),Mn(e,a,u,null,!0),(i||o)&&Mn(e,"blur","$forceUpdate()")}(e,r,s)}return!0},text:function(e,t){t.value&&Fn(e,"textContent",`_s(${t.value})`,t)},html:function(e,t){t.value&&Fn(e,"innerHTML",`_s(${t.value})`,t)}},isPreTag:e=>"pre"===e,isUnaryTag:hn,mustUseProp:(e,t,n)=>"value"===n&&K(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e,canBeLeftOpenTag:mn,isReservedTag:e=>nn(e)||rn(e),getTagNamespace:function(e){return rn(e)?"svg":"math"===e?"math":void 0},staticKeys:function(e){return e.reduce(((e,t)=>e.concat(t.staticKeys||[])),[]).join(",")}(Xr)},es=/^([\w$_]+|\([^)]*?\))\s*=>|^function(?:\s+[\w$]+)?\s*\(/,ts=/\([^)]*?\);*$/,ns=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,rs={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},ss={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},os=e=>`if(${e})return null;`,is={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:os("$event.target !== $event.currentTarget"),ctrl:os("!$event.ctrlKey"),shift:os("!$event.shiftKey"),alt:os("!$event.altKey"),meta:os("!$event.metaKey"),left:os("'button' in $event && $event.button !== 0"),middle:os("'button' in $event && $event.button !== 1"),right:os("'button' in $event && $event.button !== 2")};function cs(e,t){const n=t?"nativeOn:":"on:";let r="",s="";for(const t in e){const n=as(e[t]);e[t]&&e[t].dynamic?s+=`${t},${n},`:r+=`"${t}":${n},`}return r=`{${r.slice(0,-1)}}`,s?n+`_d(${r},[${s.slice(0,-1)}])`:n+r}function as(e){if(!e)return"function(){}";if(Array.isArray(e))return`[${e.map((e=>as(e))).join(",")}]`;const t=ns.test(e.value),n=es.test(e.value),r=ns.test(e.value.replace(ts,""));if(e.modifiers){let s="",o="";const i=[];for(const t in e.modifiers)if(is[t])o+=is[t],rs[t]&&i.push(t);else if("exact"===t){const t=e.modifiers;o+=os(["ctrl","shift","alt","meta"].filter((e=>!t[e])).map((e=>`$event.${e}Key`)).join("||"))}else i.push(t);i.length&&(s+=function(e){return`if(!$event.type.indexOf('key')&&${e.map(ls).join("&&")})return null;`}(i)),o&&(s+=o);return`function($event){${s}${t?`return ${e.value}.apply(null, arguments)`:n?`return (${e.value}).apply(null, arguments)`:r?`return ${e.value}`:e.value}}`}return t||n?e.value:`function($event){${r?`return ${e.value}`:e.value}}`}function ls(e){const t=parseInt(e,10);if(t)return`$event.keyCode!==${t}`;const n=rs[e],r=ss[e];return`_k($event.keyCode,${JSON.stringify(e)},${JSON.stringify(n)},$event.key,${JSON.stringify(r)})`}var us={on:function(e,t){e.wrapListeners=e=>`_g(${e},${t.value})`},bind:function(e,t){e.wrapData=n=>`_b(${n},'${e.tag}',${t.value},${t.modifiers&&t.modifiers.prop?"true":"false"}${t.modifiers&&t.modifiers.sync?",true":""})`},cloak:T};class fs{constructor(e){this.options=e,this.warn=e.warn||An,this.transforms=jn(e.modules,"transformCode"),this.dataGenFns=jn(e.modules,"genData"),this.directives=O(O({},us),e.directives);const t=e.isReservedTag||A;this.maybeComponent=e=>!!e.component||!t(e.tag),this.onceId=0,this.staticRenderFns=[],this.pre=!1}}function ps(e,t){if(e.parent&&(e.pre=e.pre||e.parent.pre),e.staticRoot&&!e.staticProcessed)return ds(e,t);if(e.once&&!e.onceProcessed)return hs(e,t);if(e.for&&!e.forProcessed)return ys(e,t);if(e.if&&!e.ifProcessed)return ms(e,t);if("template"!==e.tag||e.slotTarget||t.pre){if("slot"===e.tag)return function(e,t){const n=e.slotName||'"default"',r=_s(e,t);let s=`_t(${n}${r?`,function(){return ${r}}`:""}`;const o=e.attrs||e.dynamicAttrs?ks((e.attrs||[]).concat(e.dynamicAttrs||[]).map((e=>({name:x(e.name),value:e.value,dynamic:e.dynamic})))):null,i=e.attrsMap["v-bind"];!o&&!i||r||(s+=",null");o&&(s+=`,${o}`);i&&(s+=`${o?"":",null"},${i}`);return s+")"}(e,t);{let n;if(e.component)n=function(e,t,n){const r=t.inlineTemplate?null:_s(t,n,!0);return`_c(${e},${$s(t,n)}${r?`,${r}`:""})`}(e.component,e,t);else{let r;const s=t.maybeComponent(e);let o;(!e.plain||e.pre&&s)&&(r=$s(e,t));const i=t.options.bindings;s&&i&&!1!==i.__isScriptSetup&&(o=function(e,t){const n=x(t),r=w(n),s=s=>e[t]===s?t:e[n]===s?n:e[r]===s?r:void 0,o=s("setup-const")||s("setup-reactive-const");if(o)return o;const i=s("setup-let")||s("setup-ref")||s("setup-maybe-ref");if(i)return i}(i,e.tag)),o||(o=`'${e.tag}'`);const c=e.inlineTemplate?null:_s(e,t,!0);n=`_c(${o}${r?`,${r}`:""}${c?`,${c}`:""})`}for(let r=0;r{const n=t[e];return n.slotTargetDynamic||n.if||n.for||vs(n)})),s=!!e.if;if(!r){let t=e.parent;for(;t;){if(t.slotScope&&"_empty_"!==t.slotScope||t.for){r=!0;break}t.if&&(s=!0),t=t.parent}}const o=Object.keys(t).map((e=>bs(t[e],n))).join(",");return`scopedSlots:_u([${o}]${r?",null,true":""}${!r&&s?`,null,false,${function(e){let t=5381,n=e.length;for(;n;)t=33*t^e.charCodeAt(--n);return t>>>0}(o)}`:""})`}(e,e.scopedSlots,t)},`),e.model&&(n+=`model:{value:${e.model.value},callback:${e.model.callback},expression:${e.model.expression}},`),e.inlineTemplate){const r=function(e,t){const n=e.children[0];if(n&&1===n.type){const e=function(e,t){const n=new fs(t);return{render:`with(this){return ${e?"script"===e.tag?"null":ps(e,n):'_c("div")'}}`,staticRenderFns:n.staticRenderFns}}(n,t.options);return`inlineTemplate:{render:function(){${e.render}},staticRenderFns:[${e.staticRenderFns.map((e=>`function(){${e}}`)).join(",")}]}`}}(e,t);r&&(n+=`${r},`)}return n=n.replace(/,$/,"")+"}",e.dynamicAttrs&&(n=`_b(${n},"${e.tag}",${ks(e.dynamicAttrs)})`),e.wrapData&&(n=e.wrapData(n)),e.wrapListeners&&(n=e.wrapListeners(n)),n}function vs(e){return 1===e.type&&("slot"===e.tag||e.children.some(vs))}function bs(e,t){const n=e.attrsMap["slot-scope"];if(e.if&&!e.ifProcessed&&!n)return ms(e,t,bs,"null");if(e.for&&!e.forProcessed)return ys(e,t,bs);const r="_empty_"===e.slotScope?"":String(e.slotScope),s=`function(${r}){return ${"template"===e.tag?e.if&&n?`(${e.if})?${_s(e,t)||"undefined"}:undefined`:_s(e,t)||"undefined":ps(e,t)}}`,o=r?"":",proxy:true";return`{key:${e.slotTarget||'"default"'},fn:${s}${o}}`}function _s(e,t,n,r,s){const o=e.children;if(o.length){const e=o[0];if(1===o.length&&e.for&&"template"!==e.tag&&"slot"!==e.tag){const s=n?t.maybeComponent(e)?",1":",0":"";return`${(r||ps)(e,t)}${s}`}const i=n?function(e,t){let n=0;for(let r=0;rxs(e.block)))){n=2;break}(t(s)||s.ifConditions&&s.ifConditions.some((e=>t(e.block))))&&(n=1)}}return n}(o,t.maybeComponent):0,c=s||ws;return`[${o.map((e=>c(e,t))).join(",")}]${i?`,${i}`:""}`}}function xs(e){return void 0!==e.for||"template"===e.tag||"slot"===e.tag}function ws(e,t){return 1===e.type?ps(e,t):3===e.type&&e.isComment?function(e){return`_e(${JSON.stringify(e.text)})`}(e):Ss(e)}function Ss(e){return`_v(${2===e.type?e.expression:Os(JSON.stringify(e.text))})`}function ks(e){let t="",n="";for(let r=0;r"model"===e.name))}(e)}(e))return void(e.ssrOptimizability=As);const n=t||function(e){return 1===e.type&&e.directives&&e.directives.some((e=>!Rs(e.name)))}(e),r=t=>{t.ssrOptimizability!==js&&(e.ssrOptimizability=n?Ns:Fs)};if(n&&(e.ssrOptimizability=Ps),1===e.type){for(let t=0,n=e.children.length;t{r.length&&n.push({type:1,parent:e,tag:"template",attrsList:[],attrsMap:{},rawAttrsMap:{},children:r,ssrOptimizability:js}),r=[]};for(let e=0;e"${n?`,${n}`:""})`}(e,t);case Ps:return Bs(e,t,!0);case Ns:return Bs(e,t,!1);default:return ps(e,t)}}function Bs(e,t,n){const r=e.plain?void 0:$s(e,t),s=n?`[${Js(e,t)}]`:Us(e,t,!0);return`_c('${e.tag}'${r?`,${r}`:""}${s?`,${s}`:""})`}function Us(e,t,n){return _s(e,t,n,zs,qs)}function qs(e,t){return 1===e.type?zs(e,t):Ss(e)}function Js(e,t){return e.children.length?`_ssrNode(${Zs(Ws(e,t))})`:""}function Ks(e,t){return`(${Zs(Hs(e,t))})`}function Hs(e,t){if(e.for&&!e.forProcessed)return e.forProcessed=!0,[{type:Ls,value:ys(e,t,Ks,"_ssrList")}];if(e.if&&!e.ifProcessed)return e.ifProcessed=!0,[{type:Ls,value:ms(e,t,Ks,'"\x3c!----\x3e"')}];if("template"===e.tag)return Ws(e,t);const n=Vs(e,t),r=Ws(e,t),{isUnaryTag:s}=t.options,o=s&&s(e.tag)?[]:[{type:Ds,value:``}];return n.concat(r,o)}function Vs(e,t){let n;!function(e,t){if(e.directives)for(let n=0;n"value"!==e.name)));break}}}(e,t);const r=[{type:Ds,value:`<${e.tag}`}];var s,o,i,c,a,l;return e.attrs&&r.push.apply(r,e.attrs.map((({name:e,value:t})=>Ts(e,t)))),e.props&&r.push.apply(r,function(e,t){const n=[];return e.forEach((({name:e,value:r})=>{e=D[e]||e.toLowerCase(),!R(e)||t&&t.some((t=>t.name===e))||n.push(Ts(e,r))})),n}(e.props,e.attrs)),(n=e.attrsMap["v-bind"])&&r.push({type:Ls,value:`_ssrAttrs(${n})`}),(n=e.attrsMap["v-bind.prop"])&&r.push({type:Ls,value:`_ssrDOMProps(${n})`}),(e.staticClass||e.classBinding)&&r.push.apply(r,(s=e.staticClass,o=e.classBinding,s&&!o?[{type:Ds,value:` class="${JSON.parse(s)}"`}]:[{type:Ls,value:`_ssrClass(${s||"null"},${o||"null"})`}])),(e.staticStyle||e.styleBinding||e.attrsMap["v-show"])&&r.push.apply(r,(i=e.attrsMap.style,c=e.staticStyle,a=e.styleBinding,l=e.attrsMap["v-show"],!i||a||l?[{type:Ls,value:`_ssrStyle(${c||"null"},${a||"null"}, ${l?`{ display: (${l}) ? '' : 'none' }`:"null"})`}]:[{type:Ds,value:` style=${JSON.stringify(i)}`}])),t.options.scopeId&&r.push({type:Ds,value:` ${t.options.scopeId}`}),r.push({type:Ds,value:">"}),r}function Ws(e,t){let n;return(n=e.attrsMap["v-html"])?[{type:Ls,value:`_s(${n})`}]:(n=e.attrsMap["v-text"])||"textarea"===e.tag&&(n=e.attrsMap["v-model"])?[{type:1,value:`_s(${n})`}]:e.children?function(e,t){const n=[];for(let r=0;r{n&&(t.push(JSON.stringify(n)),n="")};for(let s=0;sGs(e,a))),t[o]=c}}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".split(",").join("\\b|\\b")+"\\b"),new RegExp("\\b"+"delete,typeof,void".split(",").join("\\s*\\([^\\)]*\\)|\\b")+"\\s*\\([^\\)]*\\)");const Xs=(Ys=function(e,t){const n=Ur(e.trim(),t);Is(n,t);const r=function(e,t){const n=new fs(t);return{render:`with(this){return ${e?zs(e,n):'_c("div")'}}`,staticRenderFns:n.staticRenderFns}}(n,t);return{ast:n,render:r.render,staticRenderFns:r.staticRenderFns}},function(e){function t(t,n){const r=Object.create(e),s=[],o=[];if(n){n.modules&&(r.modules=(e.modules||[]).concat(n.modules)),n.directives&&(r.directives=O(Object.create(e.directives||null),n.directives));for(const e in n)"modules"!==e&&"directives"!==e&&(r[e]=n[e])}r.warn=(e,t,n)=>{(n?o:s).push(e)};const i=Ys(t.trim(),r);return i.errors=s,i.tips=o,i}return{compile:t,compileToFunctions:Qs(t)}});var Ys;const{compile:eo,compileToFunctions:to}=Xs(Yr),no={_ssrEscape:z,_ssrNode:function(e,t,n,r){return new ro(e,t,n,r)},_ssrList:function(e,t){let n,r,s,o,i="";if(Array.isArray(e)||"string"==typeof e)for(n=0,r=e.length;n{so[e]||(so[e]=!0,console.warn(`\n\x1b[31m${e}\x1b[39m\n`))},io=(e,t)=>{const n=t?undefined(t):"";throw new Error(`\n\x1b[31m${e}${n}\x1b[39m\n`)},co=e=>{const{render:t,template:n,_scopeId:r}=e.$options;if(o(t)){if(!n)throw new Error(`render function or template not defined in component: ${e.$options.name||e.$options._componentTag||"anonymous"}`);{const t=to(n,{scopeId:r,warn:io},e);e.$options.render=t.render,e.$options.staticRenderFns=t.staticRenderFns}}};function ao(e,t,n){let r=e.$options.serverPrefetch;if(i(r)){Array.isArray(r)||(r=[r]);try{const s=[];for(let t=0,n=r.length;t"show"===e.name)),n&&(t=n)),e=e.parent;return t}(e);c&&r.show(e,c);for(let t=0;t"}(e,n),l=``;if(n.isUnaryTag(e.tag))r(a,s);else if(o(e.children)||0===e.children.length)r(a+l,s);else{const t=e.children;n.renderStates.push({type:"Element",children:t,rendered:0,total:t.length,endTag:l}),r(a,s)}}(e,t,n):c(e.isComment)?i(e.asyncFactory)?function(e,t,n){const r=e.asyncFactory,s=r=>{r.__esModule&&r.default&&(r=r.default);const{data:s,children:o,tag:i}=e.asyncMeta,c=Mt(r,s,e.asyncMeta.context,o,i);c?c.componentOptions?fo(c,t,n):Array.isArray(c)?(n.renderStates.push({type:"Fragment",children:c,rendered:0,total:c.length}),n.next()):lo(c,t,n):n.write("\x3c!----\x3e",n.next)};if(r.resolved)return void s(r.resolved);const o=n.done;let i;try{i=r(s,o)}catch(e){o(e)}if(i)if("function"==typeof i.then)i.then(s,o).catch(o);else{const e=i.component;e&&"function"==typeof e.then&&e.then(s,o).catch(o)}}(e,t,n):n.write(`\x3c!--${e.text}--\x3e`,n.next):n.write(e.raw?e.text:z(String(e.text)),n.next)}function uo(e,t){const n=e._ssrRegister;return t.caching&&i(n)&&t.componentBuffer[t.componentBuffer.length-1].add(n),n}function fo(e,t,n){const{write:r,next:s,userContext:c}=n,a=e.componentOptions.Ctor,l=a.options.serverCacheKey,u=a.options.name,f=n.cache,p=uo(a.options,r);if(i(l)&&i(f)&&i(u)){const o=l(e.componentOptions.propsData);if(!1===o)return void ho(e,t,n);const a=u+"::"+o,{has:f,get:d}=n;i(f)?f(a,(o=>{!0===o&&i(d)?d(a,(e=>{i(p)&&p(c),e.components.forEach((e=>e(c))),r(e.html,s)})):po(e,t,a,n)})):i(d)&&d(a,(o=>{i(o)?(i(p)&&p(c),o.components.forEach((e=>e(c))),r(o.html,s)):po(e,t,a,n)}))}else i(l)&&o(f)&&oo(`[vue-server-renderer] Component ${a.options.name||"(anonymous)"} implemented serverCacheKey, but no cache was provided to the renderer.`),i(l)&&o(u)&&oo('[vue-server-renderer] Components that implement "serverCacheKey" must also define a unique "name" option.'),ho(e,t,n)}function po(e,t,n,r){const s=r.write;s.caching=!0;const o=s.cacheBuffer,i=o.push("")-1,c=s.componentBuffer;c.push(new Set),r.renderStates.push({type:"ComponentWithCache",key:n,buffer:o,bufferIndex:i,componentBuffer:c}),ho(e,t,r)}function ho(e,t,n){const r=n.activeInstance;e.ssrContext=n.userContext;const s=n.activeInstance=Rt(e,n.activeInstance);co(s);const o=n.done;ao(s,(()=>{const o=s._render();o.parent=e,n.renderStates.push({type:"Component",prevActive:r}),i(e.data)&&i(e.data.directives)&&(o.data=o.data||{},o.data.directives=e.data.directives,o.isComponentRootElement=!0),lo(o,t,n)}),o)}function mo(e){const t=e.parent;return i(t)&&(i(t.data)||mo(t))}function go(e,t,n,r){return function(s,o,i,c){so=Object.create(null);const a=new _n({activeInstance:s,userContext:i,write:o,done:c,renderNode:lo,isUnaryTag:n,modules:e,directives:t,cache:r});!function(e){if(e._ssrNode)return;let t=e.constructor;for(;t.super;)t=t.super;O(t.prototype,no),t.FunctionalRenderContext&&O(t.FunctionalRenderContext.prototype,no)}(s),co(s);ao(s,(()=>{lo(s._render(),!0,a)}),c)}}class yo extends e.Transform{constructor(e,t,n){super(),this.started=!1,this.renderer=e,this.template=t,this.context=n||{},this.inject=e.inject}_transform(e,t,n){this.started||(this.emit("beforeStart"),this.start()),this.push(e),n()}start(){if(this.started=!0,this.push(this.template.head(this.context)),this.inject){this.context.head&&this.push(this.context.head);const e=this.renderer.renderResourceHints(this.context);e&&this.push(e);const t=this.renderer.renderStyles(this.context);t&&this.push(t)}this.push(this.template.neck(this.context))}_flush(e){if(this.emit("beforeEnd"),this.inject){const e=this.renderer.renderState(this.context);e&&this.push(e);const t=this.renderer.renderScripts(this.context);t&&this.push(t)}this.push(this.template.tail(this.context)),e()}}const $o=require("lodash.template"),vo={escape:/{{([^{][\s\S]+?[^}])}}/g,interpolate:/{{{([\s\S]+?)}}}/g};function bo(e){const t=function(e){const t=new Map;return Object.keys(e.modules).forEach((n=>{t.set(n,function(e,t){const n=[],r=t.modules[e];r&&r.forEach((e=>{const r=t.all[e];r&&(t.async.indexOf(r)>-1||!/\.(js|css)($|\?)/.test(r))&&n.push(r)}));return n}(n,e))})),t}(e);return function(e){const n=new Set;for(let r=0;r");const r=e.indexOf(t);if(r<0)throw new Error("Content placeholder not found in template.");return n<0&&(n=e.indexOf(""),n<0&&(n=r)),{head:$o(e.slice(0,n),vo),neck:$o(e.slice(n,r),vo),tail:$o(e.slice(r+t.length),vo)}}(t):t:null,this.serialize=e.serializer||(e=>xo(e,{isJSON:!0})),e.clientManifest){const t=this.clientManifest=e.clientManifest;this.publicPath=""===t.publicPath?"":t.publicPath.replace(/([^\/])$/,"$1/"),this.preloadFiles=(t.initial||[]).map(So),this.prefetchFiles=(t.async||[]).map(So),this.mapFiles=bo(t)}}bindRenderFns(e){const t=this;["ResourceHints","State","Scripts","Styles"].forEach((n=>{e[`render${n}`]=t[`render${n}`].bind(t,e)})),e.getPreloadFiles=t.getPreloadFiles.bind(t,e)}render(e,t){const n=this.parsedTemplate;if(!n)throw new Error("render cannot be called without a template.");return t=t||{},"function"==typeof n?n(e,t):this.inject?n.head(t)+(t.head||"")+this.renderResourceHints(t)+this.renderStyles(t)+n.neck(t)+e+this.renderState(t)+this.renderScripts(t)+n.tail(t):n.head(t)+n.neck(t)+e+n.tail(t)}renderStyles(e){const t=this.preloadFiles||[],n=this.getUsedAsyncFiles(e)||[],r=t.concat(n).filter((({file:e})=>(e=>/\.css(\?[^.]+)?$/.test(e))(e)));return(r.length?r.map((({file:e})=>``)).join(""):"")+(e.styles||"")}renderResourceHints(e){return this.renderPreloadLinks(e)+this.renderPrefetchLinks(e)}getPreloadFiles(e){const t=this.getUsedAsyncFiles(e);return this.preloadFiles||t?(this.preloadFiles||[]).concat(t||[]):[]}renderPreloadLinks(e){const t=this.getPreloadFiles(e),n=this.options.shouldPreload;return t.length?t.map((({file:e,extension:t,fileWithoutQuery:r,asType:s})=>{let o="";return n||"script"===s||"style"===s?n&&!n(r,s)?"":("font"===s&&(o=` type="font/${t}" crossorigin`),``):""})).join(""):""}renderPrefetchLinks(e){const t=this.options.shouldPrefetch;if(this.prefetchFiles){const n=this.getUsedAsyncFiles(e),r=e=>n&&n.some((t=>t.file===e));return this.prefetchFiles.map((({file:e,fileWithoutQuery:n,asType:s})=>t&&!t(n,s)||r(e)?"":``)).join("")}return""}renderState(e,t){const{contextKey:n="state",windowKey:r="__INITIAL_STATE__"}=t||{},s=this.serialize(e[n]),o=e.nonce?` nonce="${e.nonce}"`:"";return e[n]?`window.${r}=${s};(function(){var s;(s=document.currentScript||document.scripts[document.scripts.length-1]).parentNode.removeChild(s);}());<\/script>`:""}renderScripts(e){if(this.clientManifest){const t=this.preloadFiles.filter((({file:e})=>q(e))),n=(this.getUsedAsyncFiles(e)||[]).filter((({file:e})=>q(e)));return[t[0]].concat(n,t.slice(1)).map((({file:e})=>`