vue-server-renderer
Version:
server renderer for Vue 2.0
1 lines • 81 kB
JavaScript
"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,h,2):String(e)}function h(e,t){return t&&t.__v_isRef?t.value:t}function m(e){const t=parseFloat(e);return isNaN(t)?e:t}function g(e,t){const n=Object.create(null),r=e.split(",");for(let e=0;e<r.length;e++)n[r[e]]=!0;return t?e=>n[e.toLowerCase()]:e=>n[e]}const y=g("slot,component",!0),$=g("key,ref,slot,slot-scope,is"),v=Object.prototype.hasOwnProperty;function b(e,t){return v.call(e,t)}function _(e){const t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}const x=/-(\w)/g,w=_((e=>e.replace(x,((e,t)=>t?t.toUpperCase():"")))),S=_((e=>e.charAt(0).toUpperCase()+e.slice(1))),k=/\B([A-Z])/g,O=_((e=>e.replace(k,"-$1").toLowerCase()));function C(e,t){for(const n in t)e[n]=t[n];return e}function T(e){const t={};for(let n=0;n<e.length;n++)e[n]&&C(t,e[n]);return t}function A(e,t,n){}const F=(e,t,n)=>!1,j=e=>e;function P(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)=>P(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=>P(e[n],t[n])))}}catch(e){return!1}}function E(e,t){for(let n=0;n<e.length;n++)if(P(e[n],t))return n;return-1}const N=g("accept,accept-charset,accesskey,action,align,alt,async,autocomplete,autofocus,autoplay,autosave,bgcolor,border,buffered,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,data,datetime,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,for,form,formaction,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,ismap,itemprop,keytype,kind,label,lang,language,list,loop,low,manifest,max,maxlength,media,method,GET,POST,min,multiple,email,file,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,seamless,selected,shape,size,type,text,password,sizes,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,usemap,value,width,wrap"),I=/[>/="'\u0009\u000a\u000c\u0020]/,L=e=>I.test(e),M=e=>N(e)||0===e.indexOf("data-")||0===e.indexOf("aria-"),R={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},D={"<":"<",">":">",'"':""","&":"&"};function z(e){return e.replace(/[<>"&]/g,U)}function U(e){return D[e]||e}const B={"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 H=g("input,textarea,option,select,progress"),K=g("contenteditable,draggable,spellcheck"),V=g("events,caret,typing,plaintext-only"),Z=(e,t)=>G(t)||"false"===t?"false":"contenteditable"===e&&V(t)?t:"true",W=g("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"),G=e=>null==e||!1===e;function Q(e,t){if(W(e)){if(!G(t))return` ${e}="${e}"`}else{if(K(e))return` ${e}="${z(Z(e,t))}"`;if(!G(t))return` ${e}="${z(String(t))}"`}return""}class X{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 Y=(e="")=>{const t=new X;return t.text=e,t.isComment=!0,t};function ee(e){return new X(void 0,void 0,void 0,String(e))}function te(e,t,n){const r=new X(void 0,void 0,void 0,t);r.raw=n,e.children=[r]}function ne(e,t,n,r){Object.defineProperty(e,t,{value:n,enumerable:!!r,writable:!0,configurable:!0})}const re="__proto__"in{},se="undefined"!=typeof window,oe=se&&window.navigator.userAgent.toLowerCase(),ie=oe&&/msie|trident/.test(oe);oe&&oe.indexOf("msie 9.0");oe&&oe.indexOf("edge/");oe&&oe.indexOf("android"),oe&&/iphone|ipad|ipod|ios/.test(oe),oe&&/chrome\/\d+/.test(oe),oe&&/phantomjs/.test(oe),oe&&oe.match(/firefox\/(\d+)/);const ce={}.watch;let ae,le=!1;if(se)try{const e={};Object.defineProperty(e,"passive",{get(){le=!0}}),window.addEventListener("test-passive",null,e)}catch(e){}const ue=()=>(void 0===ae&&(ae=!se&&"undefined"!=typeof global&&(global.process&&"server"===global.process.env.VUE_ENV)),ae);function fe(e){return"function"==typeof e&&/native code/.test(e.toString())}const pe="undefined"!=typeof Symbol&&fe(Symbol)&&"undefined"!=typeof Reflect&&fe(Reflect.ownKeys);let de;de="undefined"!=typeof Set&&fe(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 he="data-server-rendered",me=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch","renderTracked","renderTriggered"];var ge={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:F,isReservedAttr:F,isUnknownElement:F,getTagNamespace:A,parsePlatformTagName:j,mustUseProp:F,async:!0,_lifecycleHooks:me};let ye=null;function $e(e=null){e||ye&&ye._scope.off(),ye=e,e&&e._scope.on()}let ve=0;class be{constructor(){this._pending=!1,this.id=ve++,this.subs=[]}addSub(e){this.subs.push(e)}removeSub(e){this.subs[this.subs.indexOf(e)]=null,this._pending||(this._pending=!0)}depend(e){be.target&&be.target.addDep(this)}notify(e){const t=this.subs.filter((e=>e));for(let e=0,n=t.length;e<n;e++){t[e].update()}}}be.target=null;const _e=[];function xe(e){_e.push(e),be.target=e}function we(){_e.pop(),be.target=_e[_e.length-1]}const Se=Array.prototype,ke=Object.create(Se);["push","pop","shift","unshift","splice","sort","reverse"].forEach((function(e){const t=Se[e];ne(ke,e,(function(...n){const r=t.apply(this,n),s=this.__ob__;let o;switch(e){case"push":case"unshift":o=n;break;case"splice":o=n.slice(2)}return o&&s.observeArray(o),s.dep.notify(),r}))}));const Oe=Object.getOwnPropertyNames(ke),Ce={};let Te=!0;function Ae(e){Te=e}const Fe={notify:A,depend:A,addSub:A,removeSub:A};class je{constructor(e,t=!1,n=!1){if(this.value=e,this.shallow=t,this.mock=n,this.dep=n?Fe:new be,this.vmCount=0,ne(e,"__ob__",this),s(e)){if(!n)if(re)e.__proto__=ke;else for(let t=0,n=Oe.length;t<n;t++){const n=Oe[t];ne(e,n,ke[n])}t||this.observeArray(e)}else{const r=Object.keys(e);for(let s=0;s<r.length;s++){Ee(e,r[s],Ce,void 0,t,n)}}}observeArray(e){for(let t=0,n=e.length;t<n;t++)Pe(e[t],!1,this.mock)}}function Pe(e,t,n){return e&&b(e,"__ob__")&&e.__ob__ instanceof je?e.__ob__:!Te||!n&&ue()||!s(e)&&!p(e)||!Object.isExtensible(e)||e.__v_skip||Le(e)||e instanceof X?void 0:new je(e,t,n)}function Ee(e,t,n,r,o,i,c=!1){const a=new be,l=Object.getOwnPropertyDescriptor(e,t);if(l&&!1===l.configurable)return;const u=l&&l.get,f=l&&l.set;u&&!f||n!==Ce&&2!==arguments.length||(n=e[t]);let p=o?n&&n.__ob__:Pe(n,!1,i);return Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){const t=u?u.call(e):n;return be.target&&(a.depend(),p&&(p.dep.depend(),s(t)&&Ie(t))),Le(t)&&!o?t.value:t},set:function(t){const r=u?u.call(e):n;if((s=r)===(c=t)?0===s&&1/s!=1/c:s==s||c==c){var s,c;if(f)f.call(e,t);else{if(u)return;if(!o&&Le(r)&&!Le(t))return void(r.value=t);n=t}p=o?t&&t.__ob__:Pe(t,!1,i),a.notify()}}}),a}function Ne(e,t,n){if((r=e)&&r.__v_isReadonly)return;var r;const o=e.__ob__;return s(e)&&function(e){const t=parseFloat(String(e));return t>=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&&Pe(n,!1,!0),n):t in e&&!(t in Object.prototype)?(e[t]=n,n):e._isVue||o&&o.vmCount?n:o?(Ee(o.value,t,n,void 0,o.shallow,o.mock),o.dep.notify(),n):(e[t]=n,n)}function Ie(e){for(let t,n=0,r=e.length;n<r;n++)t=e[n],t&&t.__ob__&&t.__ob__.dep.depend(),s(t)&&Ie(t)}function Le(e){return!(!e||!0!==e.__v_isRef)}const Me=_((e=>{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 Ot(e,null,arguments,t,"v-on handler");{const n=e.slice();for(let e=0;e<n.length;e++)Ot(n[e],null,arguments,t,"v-on handler")}}return n.fns=e,n}function De(e,t,n,r,s){if(i(t)){if(b(t,n))return e[n]=t[n],s||delete t[n],!0;if(b(t,r))return e[n]=t[r],s||delete t[r],!0}return!1}function ze(e){for(let t=0;t<e.length;t++)if(s(e[t]))return Array.prototype.concat.apply([],e);return e}function Ue(e){return a(e)?[ee(e)]:s(e)?qe(e):void 0}function Be(e){return i(e)&&i(e.text)&&!1===e.isComment}function qe(e,t){const n=[];let r,l,u,f;for(r=0;r<e.length;r++)l=e[r],o(l)||"boolean"==typeof l||(u=n.length-1,f=n[u],s(l)?l.length>0&&(l=qe(l,`${t||""}_${r}`),Be(l[0])&&Be(f)&&(n[u]=ee(f.text+l[0].text),l.shift()),n.push.apply(n,l)):a(l)?Be(f)?n[u]=ee(f.text+l):""!==l&&n.push(ee(l)):Be(l)&&Be(f)?n[u]=ee(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}const Je=1,He=2;function Ke(e,t,n,r,o,f){return(s(n)||a(n))&&(o=r,r=n,n=void 0),c(f)&&(o=He),function(e,t,n,r,o){if(i(n)&&i(n.__ob__))return Y();i(n)&&i(n.is)&&(t=n.is);if(!t)return Y();s(r)&&l(r[0])&&((n=n||{}).scopedSlots={default:r[0]},r.length=0);o===He?r=Ue(r):o===Je&&(r=ze(r));let c,a;if("string"==typeof t){let s;a=e.$vnode&&e.$vnode.ns||ge.getTagNamespace(t),c=n&&n.pre||!i(s=Zt(e.$options,"components",t))?new X(t,n,r,void 0,void 0,e):Rt(s,n,e,r,t)}else c=Rt(t,n,e,r);return s(c)?c:i(c)?(i(a)&&Ve(c,a),i(n)&&function(e){u(e.style)&&Ft(e.style);u(e.class)&&Ft(e.class)}(n),c):Y()}(e,t,n,r,o)}function Ve(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;r<s;r++){const s=e.children[r];i(s.tag)&&(o(s.ns)||c(n)&&"svg"!==s.tag)&&Ve(s,t,n)}}function Ze(e,t){let n,r,o,c,a=null;if(s(e)||"string"==typeof e)for(a=new Array(e.length),n=0,r=e.length;n<r;n++)a[n]=t(e[n],n);else if("number"==typeof e)for(a=new Array(e),n=0;n<e;n++)a[n]=t(n+1,n);else if(u(e))if(pe&&e[Symbol.iterator]){a=[];const n=e[Symbol.iterator]();let r=n.next();for(;!r.done;)a.push(t(r.value,a.length)),r=n.next()}else for(o=Object.keys(e),a=new Array(o.length),n=0,r=o.length;n<r;n++)c=o[n],a[n]=t(e[c],c,n);return i(a)||(a=[]),a._isVList=!0,a}function We(e,t,n,r){const s=this.$scopedSlots[e];let o;s?(n=n||{},r&&(n=C(C({},r),n)),o=s(n)||(l(t)?t():t)):o=this.$slots[e]||(l(t)?t():t);const i=n&&n.slot;return i?this.$createElement("template",{slot:i},o):o}function Ge(e){return Zt(this.$options,"filters",e)||j}function Qe(e,t){return s(e)?-1===e.indexOf(t):e!==t}function Xe(e,t,n,r,s){const o=ge.keyCodes[t]||n;return s&&r&&!ge.keyCodes[t]?Qe(s,r):o?Qe(o,e):r?O(r)!==t:void 0===e}function Ye(e,t,n,r,o){if(n)if(u(n)){let i;s(n)&&(n=T(n));for(const s in n){if("class"===s||"style"===s||$(s))i=e;else{const n=e.attrs&&e.attrs.type;i=r||ge.mustUseProp(t,n,s)?e.domProps||(e.domProps={}):e.attrs||(e.attrs={})}const c=w(s),a=O(s);if(!(c in i)&&!(a in i)&&(i[s]=n[s],o)){(e.on||(e.on={}))[`update:${s}`]=function(e){n[s]=e}}}}else;return e}function et(e,t){const n=this._staticTrees||(this._staticTrees=[]);let r=n[e];return r&&!t||(r=n[e]=this.$options.staticRenderFns[e].call(this._renderProxy,this._c,this),nt(r,`__static__${e}`,!1)),r}function tt(e,t,n){return nt(e,`__once__${t}${n?`_${n}`:""}`,!0),e}function nt(e,t,n){if(s(e))for(let r=0;r<e.length;r++)e[r]&&"string"!=typeof e[r]&&rt(e[r],`${t}_${r}`,n);else rt(e,t,n)}function rt(e,t,n){e.isStatic=!0,e.key=t,e.isOnce=n}function st(e,t){if(t)if(p(t)){const n=e.on=e.on?C({},e.on):{};for(const e in t){const r=n[e],s=t[e];n[e]=r?[].concat(r,s):s}}else;return e}function ot(e,t,n,r){t=t||{$stable:!n};for(let r=0;r<e.length;r++){const o=e[r];s(o)?ot(o,t,n):o&&(o.proxy&&(o.fn.proxy=!0),t[o.key]=o.fn)}return r&&(t.$key=r),t}function it(e,t){for(let n=0;n<t.length;n+=2){const r=t[n];"string"==typeof r&&r&&(e[t[n]]=t[n+1])}return e}function ct(e,t){return"string"==typeof e?t+e:e}function at(e,t){if(!e||!e.length)return{};const n={};for(let r=0,s=e.length;r<s;r++){const s=e[r],o=s.data;if(o&&o.attrs&&o.attrs.slot&&delete o.attrs.slot,s.context!==t&&s.fnContext!==t||!o||null==o.slot)(n.default||(n.default=[])).push(s);else{const e=o.slot,t=n[e]||(n[e]=[]);"template"===s.tag?t.push.apply(t,s.children||[]):t.push(s)}}for(const e in n)n[e].every(lt)&&delete n[e];return n}function lt(e){return e.isComment&&!e.asyncFactory||" "===e.text}function ut(e,t,n,s){let o;const i=Object.keys(n).length>0,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]=ft(e,n,r,t[r]))}else o={};for(const e in n)e in o||(o[e]=pt(n,e));return t&&Object.isExtensible(t)&&(t._normalized=o),ne(o,"$stable",c),ne(o,"$key",a),ne(o,"$hasNormal",i),o}function ft(e,t,n,r){const o=function(){const t=ye;$e(e);let n=arguments.length?r.apply(null,arguments):r({});n=n&&"object"==typeof n&&!s(n)?[n]:Ue(n);const o=n&&n[0];return $e(t),!n||o&&(1!==n.length||!o.isComment||(i=o).isComment&&i.asyncFactory)?n:void 0;var i};return r.proxy&&Object.defineProperty(t,n,{get:o,enumerable:!0,configurable:!0}),o}function pt(e,t){return()=>e[t]}function dt(e,t,n,r,s){let o=!1;for(const i in t)i in e?t[i]!==n[i]&&(o=!0):(o=!0,ht(e,i,r,s));for(const n in e)n in t||(o=!0,delete e[n]);return o}function ht(e,t,n,r){Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:()=>n[r][t]})}let mt;function gt(e,t){mt.$on(e,t)}function yt(e,t){mt.$off(e,t)}function $t(e,t){const n=mt;return function r(){null!==t.apply(null,arguments)&&n.$off(e,r)}}function vt(e,t,n){mt=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||{},gt,yt,$t,e),mt=void 0}function bt(e){for(;e&&(e=e.$parent);)if(e._inactive)return!0;return!1}function _t(e,t){if(t){if(e._directInactive=!1,bt(e))return}else if(e._directInactive)return;if(e._inactive||null===e._inactive){e._inactive=!1;for(let t=0;t<e.$children.length;t++)_t(e.$children[t]);wt(e,"activated")}}function xt(e,t){if(!(t&&(e._directInactive=!0,bt(e))||e._inactive)){e._inactive=!0;for(let t=0;t<e.$children.length;t++)xt(e.$children[t]);wt(e,"deactivated")}}function wt(e,t,n,r=!0){xe();const s=ye;r&&$e(e);const o=e.$options[t],i=`${t} hook`;if(o)for(let t=0,r=o.length;t<r;t++)Ot(o[t],e,n||null,e,i);e._hasHookEvent&&e.$emit("hook:"+t),r&&$e(s),we()}let St=Date.now;if(se&&!ie){const e=window.performance;e&&"function"==typeof e.now&&St()>document.createEvent("Event").timeStamp&&(St=()=>e.now())}function kt(e,t,n){xe();try{if(t){let r=t;for(;r=r.$parent;){const s=r.$options.errorCaptured;if(s)for(let o=0;o<s.length;o++)try{if(!1===s[o].call(r,e,t,n))return}catch(e){Ct(e,r,"errorCaptured hook")}}}Ct(e,t,n)}finally{we()}}function Ot(e,t,n,r,s){let o;try{o=n?e.apply(t,n):e.call(t),o&&!o._isVue&&(i(c=o)&&"function"==typeof c.then&&"function"==typeof c.catch)&&!o._handled&&(o.catch((e=>kt(e,r,s+" (Promise/async)"))),o._handled=!0)}catch(e){kt(e,r,s)}var c;return o}function Ct(e,t,n){!function(e,t,n){if(!se||"undefined"==typeof console)throw e;console.error(e)}(e)}const Tt=[];if("undefined"!=typeof Promise&&fe(Promise))Promise.resolve();else if(ie||"undefined"==typeof MutationObserver||!fe(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())"undefined"!=typeof setImmediate&&fe(setImmediate);else{let e=1;const t=new MutationObserver((function(){const e=Tt.slice(0);Tt.length=0;for(let t=0;t<e.length;t++)e[t]()})),n=document.createTextNode(String(e));t.observe(n,{characterData:!0})}const At=new de;function Ft(e){return jt(e,At),At.clear(),e}function jt(e,t){let n,r;const o=s(e);if(!(!o&&!u(e)||e.__v_skip||Object.isFrozen(e)||e instanceof X)){if(e.__ob__){const n=e.__ob__.dep.id;if(t.has(n))return;t.add(n)}if(o)for(n=e.length;n--;)jt(e[n],t);else if(Le(e))jt(e.value,t);else for(r=Object.keys(e),n=r.length;n--;)jt(e[r[n]],t)}}function Pt(e){let t=e.options;if(e.super){const n=Pt(e.super);if(n!==e.superOptions){e.superOptions=n;const r=function(e){let t;const n=e.options,r=e.sealedOptions;for(const e in n)n[e]!==r[e]&&(t||(t={}),t[e]=n[e]);return t}(e);r&&C(e.extendOptions,r),t=e.options=Vt(n,e.extendOptions),t.name&&(t.components[t.name]=e)}}return t}function Et(e,t,n,o,i){const a=i.options;let u;b(o,"_uid")?(u=Object.create(o),u._original=o):(u=o,o=o._original);const f=c(a._compiled),p=!f;this.data=e,this.props=t,this.children=n,this.parent=o,this.listeners=e.on||r,this.injections=function(e,t){if(e){const n=Object.create(null),r=pe?Reflect.ownKeys(e):Object.keys(e);for(let s=0;s<r.length;s++){const o=r[s];if("__ob__"===o)continue;const i=e[o].from;if(i in t._provided)n[o]=t._provided[i];else if("default"in e[o]){const r=e[o].default;n[o]=l(r)?r.call(t):r}}return n}}(a.inject,o),this.slots=()=>(this.$slots||ut(o,e.scopedSlots,this.$slots=at(n,o)),this.$slots),Object.defineProperty(this,"scopedSlots",{enumerable:!0,get(){return ut(o,e.scopedSlots,this.slots())}}),f&&(this.$options=a,this.$slots=this.slots(),this.$scopedSlots=ut(o,e.scopedSlots,this.$slots)),a._scopeId?this._c=(e,t,n,r)=>{const i=Ke(u,e,t,n,r,p);return i&&!s(i)&&(i.fnScopeId=a._scopeId,i.fnContext=o),i}:this._c=(e,t,n,r)=>Ke(u,e,t,n,r,p)}function Nt(e,t,n,r,s){const o=function(e){const t=new X(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 It(e,t){for(const n in t)e[w(n)]=t[n]}!function(e){e._o=tt,e._n=m,e._s=d,e._l=Ze,e._t=We,e._q=P,e._i=E,e._m=et,e._f=Ge,e._k=Xe,e._b=Ye,e._v=ee,e._e=Y,e._u=ot,e._g=st,e._d=it,e._p=ct}(Et.prototype);const Lt={init(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){const t=e;Lt.prepatch(t,t)}else{(e.componentInstance=Dt(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&&dt(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&&dt(e._listenersProxy,n,p||r,e,"$listeners"),e.$listeners=e.$options._parentListeners=n,vt(e,n,p),t&&e.$options.props){Ae(!1);const n=e._props,r=e.$options._propKeys||[];for(let s=0;s<r.length;s++){const o=r[s],i=e.$options.props;n[o]=Wt(o,i,t,e)}Ae(!0),e.$options.propsData=t}l&&(e.$slots=at(o,s.context),e.$forceUpdate())}(t.componentInstance=e.componentInstance,n.propsData,n.listeners,t,n.children)},insert(e){const{context:t,componentInstance:n}=e;n._isMounted||(n._isMounted=!0,wt(n,"mounted")),e.data.keepAlive&&(t._isMounted?function(e){e._inactive=!1}(n):_t(n,!0))},destroy(e){const{componentInstance:t}=e;t._isDestroyed||(e.data.keepAlive?xt(t,!0):t.$destroy())}},Mt=Object.keys(Lt);function Rt(e,t,n,a,l){if(o(e))return;const f=n.$options._base;if(u(e)&&(e=f.extend(e)),"function"!=typeof e)return;let p;if(o(e.cid)&&(p=e,void 0===(e=c((d=p).error)&&i(d.errorComp)?d.errorComp:i(d.resolved)?d.resolved:c(d.loading)&&i(d.loadingComp)?d.loadingComp:void 0)))return function(e,t,n,r,s){const o=Y();return o.asyncFactory=e,o.asyncMeta={data:t,context:n,children:r,tag:s},o}(p,t,n,a,l);var d;t=t||{},Pt(e),i(t.model)&&function(e,t){const n=e.model&&e.model.prop||"value",r=e.model&&e.model.event||"input";(t.attrs||(t.attrs={}))[n]=t.model.value;const o=t.on||(t.on={}),c=o[r],a=t.model.callback;i(c)?(s(c)?-1===c.indexOf(a):c!==a)&&(o[r]=[a].concat(c)):o[r]=a}(e.options,t);const h=function(e,t,n){const r=t.options.props;if(o(r))return;const s={},{attrs:c,props:a}=e;if(i(c)||i(a))for(const e in r){const t=O(e);De(s,a,e,t,!0)||De(s,c,e,t,!1)}return s}(t,e);if(c(e.options.functional))return function(e,t,n,o,c){const a=e.options,l={},u=a.props;if(i(u))for(const e in u)l[e]=Wt(e,u,t||r);else i(n.attrs)&&It(l,n.attrs),i(n.props)&&It(l,n.props);const f=new Et(n,l,c,o,e),p=a.render.call(null,f._c,f);if(p instanceof X)return Nt(p,n,f.parent,a);if(s(p)){const e=Ue(p)||[],t=new Array(e.length);for(let r=0;r<e.length;r++)t[r]=Nt(e[r],n,f.parent,a);return t}}(e,h,t,n,a);const m=t.on;if(t.on=t.nativeOn,c(e.options.abstract)){const e=t.slot;t={},e&&(t.slot=e)}!function(e){const t=e.hook||(e.hook={});for(let e=0;e<Mt.length;e++){const n=Mt[e],r=t[n],s=Lt[n];r===s||r&&r._merged||(t[n]=r?zt(s,r):s)}}(t);const g=(y=e.options).name||y.__name||y._componentTag||l;var y;return new X(`vue-component-${e.cid}${g?`-${g}`:""}`,t,void 0,void 0,void 0,n,{Ctor:e,propsData:h,listeners:m,tag:l,children:a},p)}function Dt(e,t){const n={_isComponent:!0,_parentVnode:e,parent:t},r=e.data.inlineTemplate;return i(r)&&(n.render=r.render,n.staticRenderFns=r.staticRenderFns),new e.componentOptions.Ctor(n)}function zt(e,t){const n=(n,r)=>{e(n,r),t(n,r)};return n._merged=!0,n}const Ut=ge.optionMergeStrategies;function Bt(e,t,n=!0){if(!t)return e;let r,s,o;const i=pe?Reflect.ownKeys(t):Object.keys(t);for(let c=0;c<i.length;c++)r=i[c],"__ob__"!==r&&(s=e[r],o=t[r],n&&b(e,r)?s!==o&&p(s)&&p(o)&&Bt(s,o):Ne(e,r,o));return e}function qt(e,t,n){return n?function(){const r=l(t)?t.call(n,n):t,s=l(e)?e.call(n,n):e;return r?Bt(r,s):s}:t?e?function(){return Bt(l(t)?t.call(this,this):t,l(e)?e.call(this,this):e)}:t:e}function Jt(e,t){const n=t?e?e.concat(t):s(t)?t:[t]:e;return n?function(e){const t=[];for(let n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(n):n}function Ht(e,t,n,r){const s=Object.create(e||null);return t?C(s,t):s}Ut.data=function(e,t,n){return n?qt(e,t,n):t&&"function"!=typeof t?e:qt(e,t)},me.forEach((e=>{Ut[e]=Jt})),["component","directive","filter"].forEach((function(e){Ut[e+"s"]=Ht})),Ut.watch=function(e,t,n,r){if(e===ce&&(e=void 0),t===ce&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;const o={};C(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},Ut.props=Ut.methods=Ut.inject=Ut.computed=function(e,t,n,r){if(!e)return t;const s=Object.create(null);return C(s,e),t&&C(s,t),s},Ut.provide=function(e,t){return e?function(){const n=Object.create(null);return Bt(n,l(e)?e.call(this):e),t&&Bt(n,l(t)?t.call(this):t,!1),n}:t};const Kt=function(e,t){return void 0===t?e:t};function Vt(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=w(i),r[c]={type:null});else if(p(n))for(const e in n)i=n[e],c=w(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<n.length;e++)r[n[e]]={from:n[e]};else if(p(n))for(const e in n){const t=n[e];r[e]=p(t)?C({from:e},t):{from:t}}}(t),function(e){const t=e.directives;if(t)for(const e in t){const n=t[e];l(n)&&(t[e]={bind:n,update:n})}}(t),!t._base&&(t.extends&&(e=Vt(e,t.extends,n)),t.mixins))for(let r=0,s=t.mixins.length;r<s;r++)e=Vt(e,t.mixins[r],n);const r={};let o;for(o in e)i(o);for(o in t)b(e,o)||i(o);function i(s){const o=Ut[s]||Kt;r[s]=o(e[s],t[s],n,s)}return r}function Zt(e,t,n,r){if("string"!=typeof n)return;const s=e[t];if(b(s,n))return s[n];const o=w(n);if(b(s,o))return s[o];const i=S(o);if(b(s,i))return s[i];return s[n]||s[o]||s[i]}function Wt(e,t,n,r){const s=t[e],o=!b(n,e);let i=n[e];const c=Yt(Boolean,s.type);if(c>-1)if(o&&!b(s,"default"))i=!1;else if(""===i||i===O(e)){const e=Yt(String,s.type);(e<0||c<e)&&(i=!0)}if(void 0===i){i=function(e,t,n){if(!b(t,"default"))return;const r=t.default;if(e&&e.$options.propsData&&void 0===e.$options.propsData[n]&&void 0!==e._props[n])return e._props[n];return l(r)&&"Function"!==Qt(t.type)?r.call(e):r}(r,s,e);const t=Te;Ae(!0),Pe(i),Ae(t)}return i}const Gt=/^\s*function (\w+)/;function Qt(e){const t=e&&e.toString().match(Gt);return t?t[1]:""}function Xt(e,t){return Qt(e)===Qt(t)}function Yt(e,t){if(!s(t))return Xt(t,e)?0:-1;for(let n=0,r=t.length;n<r;n++)if(Xt(t[n],e))return n;return-1}function en(e,t){return{staticClass:nn(e.staticClass,t.staticClass),class:i(e.class)?[e.class,t.class]:t.class}}function tn(e,t){return i(e)||i(t)?nn(e,rn(t)):""}function nn(e,t){return e?t?e+" "+t:e:t||""}function rn(e){return Array.isArray(e)?function(e){let t,n="";for(let r=0,s=e.length;r<s;r++)i(t=rn(e[r]))&&""!==t&&(n&&(n+=" "),n+=t);return n}(e):u(e)?function(e){let t="";for(const n in e)e[n]&&(t&&(t+=" "),t+=n);return t}(e):"string"==typeof e?e:""}const sn=g("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,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,rtc,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,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),on=g("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignobject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0);const cn=_((function(e){const t={},n=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach((function(e){if(e){const r=e.split(n);r.length>1&&(t[r[0].trim()]=r[1].trim())}})),t}));function an(e){const t=ln(e.style);return e.staticStyle?C(e.staticStyle,t):t}function ln(e){return Array.isArray(e)?T(e):"string"==typeof e?cn(e):e}function un(e){let t="";for(const n in e){const r=e[n],s=O(n);if(Array.isArray(r))for(let e=0,n=r.length;e<n;e++)t+=fn(s,r[e]);else t+=fn(s,r)}return t}function fn(e,t){return"string"==typeof t||"number"==typeof t&&B[e]||0===t?`${e}:${t};`:""}var pn=[function(e){let t=e.data.attrs,n="";const r=e.parent&&e.parent.componentOptions;if(o(r)||!1!==r.Ctor.options.inheritAttrs){let n=e.parent;for(;i(n)&&(!n.componentOptions||!1!==n.componentOptions.Ctor.options.inheritAttrs);)i(n.data)&&i(n.data.attrs)&&(t=C(C({},t),n.data.attrs)),n=n.parent}if(o(t))return n;for(const e in t)L(e)||"style"!==e&&(n+=Q(e,t[e]));return n},function(e){let t=e.data.domProps,n="",r=e.parent;for(;i(r);)r.data&&r.data.domProps&&(t=C(C({},t),r.data.domProps)),r=r.parent;if(o(t))return n;const s=e.data.attrs;for(const r in t)if("innerHTML"===r)te(e,t[r],!0);else if("textContent"===r)te(e,t[r],!1);else if("value"===r&&"textarea"===e.tag)te(e,d(t[r]),!1);else{const e=R[r]||r.toLowerCase();!M(e)||i(s)&&i(s[e])||(n+=Q(e,t[r]))}return n},function(e){const t=function(e){let t=e.data,n=e,r=e;for(;i(r.componentInstance);)r=r.componentInstance._vnode,r&&r.data&&(t=en(r.data,t));for(;i(n=n.parent);)n&&n.data&&(t=en(t,n.data));return tn(t.staticClass,t.class)}(e);if(""!==t)return` class="${z(t)}"`},function(e){const t=un(function(e,t){const n={};let r;if(t){let t=e;for(;t.componentInstance;)t=t.componentInstance._vnode,t&&t.data&&(r=an(t.data))&&C(n,r)}(r=an(e.data))&&C(n,r);let s=e;for(;s=s.parent;)s.data&&(r=an(s.data))&&C(n,r);return n}(e,!1));if(""!==t)return` style=${JSON.stringify(z(t))}`}];function dn(e){const t=e.data||{};return t.attrs&&t.attrs.value||t.domProps&&t.domProps.value||e.children&&e.children[0]&&e.children[0].text}function hn(e){const t=e.data||(e.data={});(t.attrs||(t.attrs={})).selected=""}var mn={show:function(e,t){if(!t.value){const t=e.data.style||(e.data.style={});Array.isArray(t)?t.push({display:"none"}):t.display="none"}},model:function(e,t){if(!e.children)return;const n=t.value,r=e.data.attrs&&e.data.attrs.multiple;for(let t=0,s=e.children.length;t<s;t++){const s=e.children[t];if("option"===s.tag)if(r){Array.isArray(n)&&E(n,dn(s))>-1&&hn(s)}else if(P(n,dn(s)))return void hn(s)}}};const gn=g("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),yn=g("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),$n=g("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"),vn=800,bn=e=>e,_n="undefined"!=typeof process&&process.nextTick?process.nextTick:"undefined"!=typeof Promise?e=>Promise.resolve().then(e):"undefined"!=typeof setTimeout?setTimeout:bn;if(_n===bn)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 xn(e,t){let n=0;const r=(s,o)=>{s&&r.caching&&(r.cacheBuffer[r.cacheBuffer.length-1]+=s);!0!==e(s,o)&&(n>=vn?_n((()=>{try{o()}catch(e){t(e)}})):(n++,o(),n--))};return r.caching=!1,r.cacheBuffer=[],r.componentBuffer=[],r}class wn extends e.Readable{constructor(e){super(),this.buffer="",this.render=e,this.expectedSize=0,this.write=xn(((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 Sn{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&&kn(t,"get"),this.has=t&&kn(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(r<n)return this.renderNode(t[r],!1,this);if(this.renderStates.pop(),"Element"===e.type)return this.write(e.endTag,this.next);break;case"Component":this.renderStates.pop(),this.activeInstance=e.prevActive;break;case"ComponentWithCache":this.renderStates.pop();const{buffer:s,bufferIndex:o,componentBuffer:i,key:c}=e,a={html:s[o],components:i[o]};if(this.cache.set(c,a),0===o)this.write.caching=!1;else{s[o-1]+=a.html;const e=i[o-1];a.components.forEach((t=>e.add(t)))}s.length=o,i.length=o}}}}function kn(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 On=/[\w).+\-_$\]]/;function Cn(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<e.length;r++)if(n=t,t=e.charCodeAt(r),i)39===t&&92!==n&&(i=!1);else if(c)34===t&&92!==n&&(c=!1);else if(a)96===t&&92!==n&&(a=!1);else if(l)47===t&&92!==n&&(l=!1);else if(124!==t||124===e.charCodeAt(r+1)||124===e.charCodeAt(r-1)||u||f||p){switch(t){case 34:c=!0;break;case 39:i=!0;break;case 96:a=!0;break;case 40:p++;break;case 41:p--;break;case 91:f++;break;case 93:f--;break;case 123:u++;break;case 125:u--}if(47===t){let t,n=r-1;for(;n>=0&&(t=e.charAt(n)," "===t);n--);t&&On.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<o.length;r++)s=Tn(s,o[r]);return s}function Tn(e,t){const n=t.indexOf("(");if(n<0)return`_f("${t}")(${e})`;{const r=t.slice(0,n),s=t.slice(n+1);return`_f("${r}")(${e}${")"!==s?","+s:s}`}}const An=/\{\{((?:.|\r?\n)+?)\}\}/g,Fn=/[-.*+?^${}()|[\]\/\\]/g,jn=_((e=>{const t=e[0].replace(Fn,"\\$&"),n=e[1].replace(Fn,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+n,"g")}));function Pn(e,t){console.error(`[Vue compiler]: ${e}`)}function En(e,t){return e?e.map((e=>e[t])).filter((e=>e)):[]}function Nn(e,t,n,r,s){(e.props||(e.props=[])).push(qn({name:t,value:n,dynamic:s},r)),e.plain=!1}function In(e,t,n,r,s){(s?e.dynamicAttrs||(e.dynamicAttrs=[]):e.attrs||(e.attrs=[])).push(qn({name:t,value:n,dynamic:s},r)),e.plain=!1}function Ln(e,t,n,r){e.attrsMap[t]=n,e.attrsList.push(qn({name:t,value:n},r))}function Mn(e,t,n,r,s,o,i,c){(e.directives||(e.directives=[])).push(qn({name:t,rawName:n,value:r,arg:s,isDynamicArg:o,modifiers:i},c)),e.plain=!1}function Rn(e,t,n){return n?`_p(${t},"${e}")`:e+t}function Dn(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=Rn("!",t,a)),s.once&&(delete s.once,t=Rn("~",t,a)),s.passive&&(delete s.passive,t=Rn("&",t,a)),s.native?(delete s.native,l=e.nativeEvents||(e.nativeEvents={})):l=e.events||(e.events={});const u=qn({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 zn(e,t,n){const r=Un(e,":"+t)||Un(e,"v-bind:"+t);if(null!=r)return Cn(r);if(!1!==n){const n=Un(e,t);if(null!=n)return JSON.stringify(n)}}function Un(e,t,n){let r;if(null!=(r=e.attrsMap[t])){const n=e.attrsList;for(let e=0,r=n.length;e<r;e++)if(n[e].name===t){n.splice(e,1);break}}return n&&delete e.attrsMap[t],r}function Bn(e,t){const n=e.attrsList;for(let e=0,r=n.length;e<r;e++){const r=n[e];if(t.test(r.name))return n.splice(e,1),r}}function qn(e,t){return t&&(null!=t.start&&(e.start=t.start),null!=t.end&&(e.end=t.end)),e}var Jn={staticKeys:["staticClass"],transformNode:function(e,t){t.warn;const n=Un(e,"class");n&&(e.staticClass=JSON.stringify(n.replace(/\s+/g," ").trim()));const r=zn(e,"class",!1);r&&(e.classBinding=r)},genData:function(e){let t="";return e.staticClass&&(t+=`staticClass:${e.staticClass},`),e.classBinding&&(t+=`class:${e.classBinding},`),t}};var Hn={staticKeys:["staticStyle"],transformNode:function(e,t){t.warn;const n=Un(e,"style");n&&(e.staticStyle=JSON.stringify(cn(n)));const r=zn(e,"style",!1);r&&(e.styleBinding=r)},genData:function(e){let t="";return e.staticStyle&&(t+=`staticStyle:${e.staticStyle},`),e.styleBinding&&(t+=`style:(${e.styleBinding}),`),t}};const Kn=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Vn=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+?\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Zn=`[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}]*`,Wn=`((?:${Zn}\\:)?${Zn})`,Gn=new RegExp(`^<${Wn}`),Qn=/^\s*(\/?)>/,Xn=new RegExp(`^<\\/${Wn}[^>]*>`),Yn=/^<!DOCTYPE [^>]+>/i,er=/^<!\--/,tr=/^<!\[/,nr=g("script,style,textarea",!0),rr={},sr={"<":"<",">":">",""":'"',"&":"&"," ":"\n","	":"\t","'":"'"},or=/&(?:lt|gt|quot|amp|#39);/g,ir=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,cr=g("pre,textarea",!0),ar=(e,t)=>e&&cr(e)&&"\n"===t[0];function lr(e,t){const n=t?ir:or;return e.replace(n,(e=>sr[e]))}function ur(e,t,n){const{number:r,trim:s}=n||{},o="$$v";let i=o;s&&(i=`(typeof ${o} === 'string'? ${o}.trim(): ${o})`),r&&(i=`_n(${i})`);const c=fr(t,i);e.model={value:`(${t})`,expression:JSON.stringify(t),callback:`function (${o}) {${c}}`}}function fr(e,t){const n=function(e){if(e=e.trim(),pr=e.length,e.indexOf("[")<0||e.lastIndexOf("]")<pr-1)return mr=e.lastIndexOf("."),mr>-1?{exp:e.slice(0,mr),key:'"'+e.slice(mr+1)+'"'}:{exp:e,key:null};dr=e,mr=gr=yr=0;for(;!vr();)hr=$r(),br(hr)?xr(hr):91===hr&&_r(hr);return{exp:e.slice(0,gr),key:e.slice(gr+1,yr)}}(e);return null===n.key?`${e}=${t}`:`$set(${n.exp}, ${n.key}, ${t})`}let pr,dr,hr,mr,gr,yr;function $r(){return dr.charCodeAt(++mr)}function vr(){return mr>=pr}function br(e){return 34===e||39===e}function _r(e){let t=1;for(gr=mr;!vr();)if(br(e=$r()))xr(e);else if(91===e&&t++,93===e&&t--,0===t){yr=mr;break}}function xr(e){const t=e;for(;!vr()&&(e=$r())!==t;);}const wr=/^@|^v-on:/,Sr=/^v-|^@|^:|^#/,kr=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Or=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Cr=/^\(|\)$/g,Tr=/^\[.*\]$/,Ar=/:(.*)$/,Fr=/^:|^\.|^v-bind:/,jr=/\.[^.\]]+(?=[^\]]*$)/g,Pr=/^v-slot(:|$)|^#/,Er=/[\r\n]/,Nr=/[ \f\t\r\n]+/g,Ir=_(n.default.decode),Lr="_empty_";let Mr,Rr,Dr,zr,Ur,Br,qr,Jr;function Hr(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:Xr(t),rawAttrsMap:{},parent:n,children:[]}}function Kr(e,t){Mr=t.warn||Pn,Br=t.isPreTag||F,qr=t.mustUseProp||F,Jr=t.getTagNamespace||F,t.isReservedTag,Dr=En(t.modules,"transformNode"),zr=En(t.modules,"preTransformNode"),Ur=En(t.modules,"postTransformNode"),Rr=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=Vr(e,t)),n.length||e===o||o.if&&(e.elseif||e.else)&&Wr(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&&Wr(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),Br(e.tag)&&(a=!1);for(let n=0;n<Ur.length;n++)Ur[n](e,t)}function u(e){if(!a){let t;for(;(t=e.children[e.children.length-1])&&3===t.type&&" "===t.text;)e.children.pop()}}return function(e,t){const n=[],r=t.expectHTML,s=t.isUnaryTag||F,o=t.canBeLeftOpenTag||F;let i,c,a=0;for(;e;){if(i=e,c&&nr(c)){let n=0;const r=c.toLowerCase(),s=rr[r]||(rr[r]=new RegExp("([\\s\\S]*?)(</"+r+"[^>]*>)","i")),o=e.replace(s,(function(e,s,o){return n=o.length,nr(r)||"noscript"===r||(s=s.replace(/<!\--([\s\S]*?)-->/g,"$1").replace(/<!\[CDATA\[([\s\S]*?)]]>/g,"$1")),ar(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(er.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(tr.test(e)){const t=e.indexOf("]>");if(t>=0){l(t+2);continue}}const n=e.match(Yn);if(n){l(n[0].length);continue}const r=e.match(Xn);if(r){const e=a;l(r[0].length),p(r[1],e,a);continue}const s=u();if(s){f(s),ar(s.tagName,e)&&l(1);continue}}if(o>=0){for(r=e.slice(o);!(Xn.test(r)||Gn.test(r)||er.test(r)||tr.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(Gn);if(t){const n={tagName:t[1],attrs:[],start:a};let r,s;for(l(t[0].length);!(r=e.match(Qn))&&(s=e.match(Vn)||e.match(Kn));)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&&$n(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<u;n++){const r=e.attrs[n],s=r[3]||r[4]||r[5]||"",o="a"===i&&"href"===r[1]?t.shouldDecodeNewlinesForHref:t.shouldDecodeNewlines;f[n]={name:r[1],value:lr(s,o)}}l||(n.push({tag:i,lowerCasedTag:i.toLowerCase(),attrs:f,start:e.start,end:e.end}),c=i),t.start&&t.start(i,f,l,e.start,e.end)}function p(e,r,s){let o,i;if(null==r&&(r=a),null==s&&(s=a),e)for(i=e.toLowerCase(),o=n.length-1;o>=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:Mr,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||Jr(e);ie&&"svg"===p&&(r=function(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n];Yr.test(r.name)||(r.name=r.name.replace(es,""),t.push(r))}return t}(r));let d=Hr(e,r,i);var h;p&&(d.ns=p),"style"!==(h=d).tag&&("script"!==h.tag||h.attrsMap.type&&"text/javascript"!==h.attrsMap.type)||ue()||(d.forbidden=!0);for(let e=0;e<zr.length;e++)d=zr[e](d,t)||d;c||(!function(e){null!=Un(e,"v-pre")&&(e.pre=!0)}(d),d.pre&&(c=!0)),Br(d.tag)&&(a=!0),c?function(e){const t=e.attrsList,n=t.length;if(n){const r=e.attrs=new Array(n);for(let e=0;e<n;e++)r[e]={name:t[e].name,value:JSON.stringify(t[e].value)},null!=t[e].start&&(r[e].start=t[e].start,r[e].end=t[e].end)}else e.pre||(e.plain=!0)}(d):d.processed||(Zr(d),function(e){const t=Un(e,"v-if");if(t)e.if=t,Wr(e,{exp:t,block:e});else{null!=Un(e,"v-else")&&(e.else=!0);const t=Un(e,"v-else-if");t&&(e.elseif=t)}}(d),function(e){const t=Un(e,"v-once");null!=t&&(e.once=!0)}(d)),o||(o=d),s?l(d):(i=d,n.push(d))},end(e,t,r){const s=n[n.length-1];n.length-=1,i=n[n.length-1],l(s)},chars(e,t,n){if(!i)return;if(ie&&"textarea"===i.tag&&i.attrsMap.placeholder===e)return;const o=i.children;var l;if(e=a||e.trim()?"script"===(l=i).tag||"style"===l.tag?e:Ir(e):o.length?s?"condense"===s&&Er.test(e)?"":" ":r?" ":"":""){let t,n;a||"condense"!==s||(e=e.replace(Nr," ")),!c&&" "!==e&&(t=function(e,t){const n=t?jn(t):An;if(!n.test(e))return;const r=[],s=[];let o,i,c,a=n.lastIndex=0;for(;o=n.exec(e);){i=o.index,i>a&&(s.push(c=e.slice(a,i)),r.push(JSON.stringify(c)));const t=Cn(o[1].trim());r.push(`_s(${t})`),s.push({"@binding":t}),a=i+o[0].length}return a<e.length&&(s.push(c=e.slice(a)),r.push(JSON.stringify(c))),{expression:r.join("+"),tokens:s}}(e,Rr))?n={type:2,expression:t.expression,tokens:t.tokens,text:e}:" "===e&&o.length&&" "===o[o.length-1].text||(n={type:3,text:e}),n&&o.push(n)}},comment(e,t,n){if(i){const t={type:3,text:e,isComment:!0};i.children.push(t)}}}),o}function Vr(e,t){var n;!function(e){const t=zn(e,"key");t&&(e.key=t)}(e),e.plain=!e.key&&!e.scopedSlots&&!e.attrsList.length,function(e){const t=zn(e,"ref");t&&(e.ref=t,e.refInFor=function(e){let t=e;for(;t;){if(void 0!==t.for)return!0;t=t.parent}return!1}(e))}(e),function(e){let t;"template"===e.tag?(t=Un(e,"scope"),e.slotScope=t||Un(e,"slot-scope")):(t=Un(e,"slot-scope"))&&(e.slotScope=t);const n=zn(e,"slot");n&&(e.slotTarget='""'===n?'"default"':n,e.slotTargetDynamic=!(!e.attrsMap[":slot"]&&!e.attrsMap["v-bind:slot"]),"template"===e.tag||e.slotScope||In(e,"slot",n,function(e,t){return e.rawAttrsMap[":"+t]||e.rawAttrsMap["v-bind:"+t]||e.rawAttrsMap[t]}(e,"slot")));if("template"===e.tag){const t=Bn(e,Pr);if(t){const{name:n,dynamic:r}=Gr(t);e.slotTarget=n,e.slotTargetDynamic=r,e.slotScope=t.value||Lr}}else{const t=Bn(e,Pr);if(t){const n=e.scopedSlots||(e.scopedSlots={}),{name:r,dynamic:s}=Gr(t),o=n[r]=Hr("template",[],e);o.slotTarget=r,o.slotTargetDynamic=s,o.children=e.children.filter((e=>{if(!e.slotScope)return e.parent=o,!0})),o.slotScope=t.value||Lr,e.children=[],e.plain=!1}}}(e),"slot"===(n=e).tag&&(n.slotName=zn(n,"name")),function(e){let t;(t=zn(e,"is"))&&(e.component=t);null!=Un(e,"inline-template")&&(e.inlineTemplate=!0)}(e);for(let n=0;n<Dr.length;n++)e=Dr[n](e,t)||e;return function(e){const t=e.attrsList;let n,r,s,o,i,c,a,l;for(n=0,r=t.length;n<r;n++)if(s=o=t[n].name,i=t[n].value,Sr.test(s))if(e.hasBindings=!0,c=Qr(s.replace(Sr,"")),c&&(s=s.replace(jr,"")),Fr.test(s))s=s.replace(Fr,""),i=Cn(i),l=Tr.test(s),l&&(s=s.slice(1,-1)),c&&(c.prop&&!l&&(s=w(s),"innerHtml"===s&&(s="innerHTML")),c.camel&&!l&&(s=w(s)),c.sync&&(a=fr(i,"$event"),l?Dn(e,`"update:"+(${s})`,a,null,!1,0,t[n],!0):(Dn(e,`update:${w(s)}`,a,null,!1,0,t[n]),O(s)!==w(s)&&Dn(e,`update:${O(s)}`,a,null,!1,0,t[n])))),c&&c.prop||!e.component&&qr(e.tag,e.attrsMap.type,s)?Nn(e,s,i,t[n],l):In(e,s,i,t[n],l);else if(wr.test(s))s=s.replace(wr,""),l=Tr.test(s),l&&(s=s.slice(1,-1)),Dn(e,s,i,c,!1,0,t[n],l);else{s=s.replace(Sr,"");const r=s.match(Ar);let a=r&&r[1];l=!1,a&&(s=s.slice(0,-(a.length+1)),Tr.test(a)&&(a=a.slice(1,-1),l=!0)),Mn(e,s,o,i,a,l,c,t[n])}else In(e,s,JSON.stringify(i),t[n]),!e.component&&"muted"===s&&qr(e.tag,e.attrsMap.type,s)&&Nn(e,s,"true",t[n])}(e),e}function Zr(e){let t;if(t=Un(e,"v-for")){const n=function(e){const t=e.match(kr);if(!t)return;const n={};n.for=t[2].trim();const r=t[1].trim().replace(Cr,""),s=r.match(Or);s?(n.alias=r.replace(Or,"").trim(),n.iterator1=s[1].trim(),s[2]&&(n.iterator2=s[2].trim())):n.alias=r;return n}(t);n&&C(e,n)}}function Wr(e,t){e.ifConditions||(e.ifConditions=[]),e.ifConditions.push(t)}function Gr(e){let t=e.name.replace(Pr,"");return t||"#"!==e.name[0]&&(t="default"),Tr.test(t)?{name:t.slice(1,-1),dynamic:!0}:{name:`"${t}"`,dynamic:!1}}function Qr(e){const t=e.match(jr);if(t){const e={};return t.forEach((t=>{e[t.slice(1)]=!0})),e}}function Xr(e){const t={};for(let n=0,r=e.length;n<r;n++)t[e[n].name]=e[n].value;return t}const Yr=/^xmlns:NS\d+/,es=/^NS\d+:/;function ts(e){return Hr(e.tag,e.attrsList.slice(),e.parent)}var ns=[Jn,Hn,{preTransformNode:function(e,t){if("input"===e.tag){const n=e.attrsMap;if(!n["v-model"])return;let r;if((n[":type"]||n["v-bind:type"])&&(r=zn(e,"type")),n.type||r||!n["v-bind"]||(r=`(${n["v-bind"]}).type`),r){const n=Un(e,"v-if",!0),s=n?`&&(${n})`:"",o=null!=Un(e,"v-else",!0),i=Un(e,"v-else-if",!0),c=ts(e);Zr(c),Ln(c,"type","checkbox"),Vr(c,t),c.processed=!0,c.if=`(${r})==='checkbox'`+s,Wr(c,{exp:c.if,block:c});const a=ts(e);Un(a,"v-for",!0),Ln(a,"type","radio"),Vr(a,t),Wr(c,{exp:`(${r})==='radio'`+s,block:a});const l=ts(e);return Un(l,"v-for",!0),Ln(l,":type",r),Vr(l,t),Wr(c,{exp:n,block:l}),o?c.else=!0:i&&(c.elseif=i),c}}}}];const rs="__r";const ss={expectHTML:!0,modules:ns,directives:{model:function(e,t,n){const r=t.value,s=t.modifiers,o=e.tag,i=e.attrsMap.type;if(e.component)return ur(e,r,s),!1;if("select"===o)!function(e,t,n){const r=n&&n.number;let s=`var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return ${r?"_n(val)":"val"}});`;s=`${s} ${fr(t,"$event.target.multiple ? $$selectedVal : $$selectedVal[0]")}`,Dn(e,"change",s,null,!0)}(e,r,s);else if("input"===o&&"checkbox"===i)!function(e,t,n){const r=n&&n.number,s=zn(e,"value")||"null",o=zn(e,"true-value")||"true",i=zn(e,"false-value")||"false";Nn(e,"checked",`Array.isArray(${t})?_i(${t},${s})>-1`+("true"===o?`:(${t})`:`:_q(${t},${o})`)),Dn(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&&(${fr(t,"$$a.concat([$$v])")})}else{$$i>-1&&(${fr(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")})}}else{${fr(t,"$$c")}}`,null,!0)}(e,r,s);else if("input"===o&&"radio"===i)!function(e,t,n){const r=n&&n.number;let s=zn(e,"value")||"null";s=r?`_n(${s})`:s,Nn(e,"checked",`_q(${t},${s})`),Dn(e,"change",fr(t,s),null,!0)}(e,r,s);else{if("input"!==o&&"textarea"!==o)return ur(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?rs:"input";let l="$event.target.value";i&&(l="$event.target.value.trim()");o&&(l=`_n(${l})`);let u=fr(t,l);c&&(u=`if($event.target.composing)return;${u}`);Nn(e,"value",`(${t})`),Dn(e,a,u,null,!0),(i||o)&&Dn(e,"blur","$forceUpdate()")}(e,r,s)}retu