vue-markdown-v3
Version:
A Powerful and Highspeed Markdown Parser for Vue
2 lines • 698 kB
JavaScript
/*! For license information please see vue-markdown-v3.common.js.LICENSE.txt */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VueMarkdown=t():e.VueMarkdown=t()}(global,(()=>(()=>{var e={5003:(e,t,n)=>{"use strict";n.r(t),n.d(t,{BASE_TRANSITION:()=>p,CAMELIZE:()=>L,CAPITALIZE:()=>F,CREATE_BLOCK:()=>f,CREATE_COMMENT:()=>_,CREATE_ELEMENT_BLOCK:()=>d,CREATE_ELEMENT_VNODE:()=>g,CREATE_SLOTS:()=>E,CREATE_STATIC:()=>b,CREATE_TEXT:()=>y,CREATE_VNODE:()=>m,DOMDirectiveTransforms:()=>Sr,DOMNodeTransforms:()=>Cr,FRAGMENT:()=>a,GUARD_REACTIVE_PROPS:()=>N,IS_MEMO_SAME:()=>H,IS_REF:()=>$,KEEP_ALIVE:()=>u,MERGE_PROPS:()=>O,NORMALIZE_CLASS:()=>M,NORMALIZE_PROPS:()=>z,NORMALIZE_STYLE:()=>D,OPEN_BLOCK:()=>h,POP_SCOPE_ID:()=>B,PUSH_SCOPE_ID:()=>q,RENDER_LIST:()=>S,RENDER_SLOT:()=>A,RESOLVE_COMPONENT:()=>v,RESOLVE_DIRECTIVE:()=>w,RESOLVE_DYNAMIC_COMPONENT:()=>k,RESOLVE_FILTER:()=>x,SET_BLOCK_TRACKING:()=>I,SUSPENSE:()=>c,TELEPORT:()=>l,TO_DISPLAY_STRING:()=>T,TO_HANDLERS:()=>R,TO_HANDLER_KEY:()=>P,TRANSITION:()=>ur,TRANSITION_GROUP:()=>pr,UNREF:()=>j,V_MODEL_CHECKBOX:()=>rr,V_MODEL_DYNAMIC:()=>sr,V_MODEL_RADIO:()=>nr,V_MODEL_SELECT:()=>ir,V_MODEL_TEXT:()=>or,V_ON_WITH_KEYS:()=>lr,V_ON_WITH_MODIFIERS:()=>ar,V_SHOW:()=>cr,WITH_CTX:()=>V,WITH_DIRECTIVES:()=>C,WITH_MEMO:()=>U,advancePositionWithClone:()=>Se,advancePositionWithMutation:()=>Ae,assert:()=>Ee,baseCompile:()=>er,baseParse:()=>Qe,buildDirectiveArgs:()=>Dn,buildProps:()=>Tn,buildSlots:()=>kn,checkCompatEnabled:()=>Ye,compile:()=>Ar,createArrayExpression:()=>W,createAssignmentExpression:()=>ue,createBlockStatement:()=>ae,createCacheExpression:()=>se,createCallExpression:()=>re,createCompilerError:()=>s,createCompoundExpression:()=>ne,createConditionalExpression:()=>ie,createDOMCompilerError:()=>_r,createForLoopParams:()=>gn,createFunctionExpression:()=>oe,createIfStatement:()=>ce,createInterpolation:()=>te,createObjectExpression:()=>X,createObjectProperty:()=>Q,createReturnStatement:()=>he,createRoot:()=>K,createSequenceExpression:()=>pe,createSimpleExpression:()=>ee,createStructuralDirectiveTransform:()=>Lt,createTemplateLiteral:()=>le,createTransformContext:()=>zt,createVNodeCall:()=>J,extractIdentifiers:()=>Wt,findDir:()=>Te,findProp:()=>Oe,generate:()=>It,generateCodeFrame:()=>r.generateCodeFrame,getBaseTransformPreset:()=>Qn,getConstantType:()=>At,getInnerRange:()=>Ce,getMemoedVNodeCall:()=>$e,getVNodeBlockHelper:()=>Pe,getVNodeHelper:()=>Fe,hasDynamicKeyVBind:()=>De,hasScopeRef:()=>je,helperNameMap:()=>G,injectProp:()=>Be,isBuiltInType:()=>de,isCoreComponent:()=>me,isFunctionType:()=>Xt,isInDestructureAssignment:()=>Yt,isMemberExpression:()=>xe,isMemberExpressionBrowser:()=>ke,isMemberExpressionNode:()=>we,isReferencedIdentifier:()=>Zt,isSimpleIdentifier:()=>_e,isSlotOutlet:()=>Le,isStaticArgOf:()=>Me,isStaticExp:()=>fe,isStaticProperty:()=>Qt,isStaticPropertyKey:()=>en,isTemplateNode:()=>Re,isText:()=>ze,isVSlot:()=>Ne,locStub:()=>Y,makeBlock:()=>Ue,noopDirectiveTransform:()=>tr,parse:()=>Er,parserOptions:()=>dr,processExpression:()=>nn,processFor:()=>un,processIf:()=>on,processSlotOutlet:()=>Fn,registerRuntimeHelpers:()=>Z,resolveComponentType:()=>En,toValidAssetId:()=>Ve,trackSlotScopes:()=>yn,trackVForSlotScopes:()=>bn,transform:()=>Nt,transformBind:()=>qn,transformElement:()=>An,transformExpression:()=>tn,transformModel:()=>Un,transformOn:()=>In,transformStyle:()=>mr,traverseNode:()=>Rt,walkBlockDeclarations:()=>Jt,walkFunctionParams:()=>Kt,walkIdentifiers:()=>Gt,warnDeprecation:()=>Ke});var r=n(3577);function o(e){throw e}function i(e){}function s(e,t,n,r){const o=new SyntaxError(String(e));return o.code=e,o.loc=t,o}const a=Symbol(""),l=Symbol(""),c=Symbol(""),u=Symbol(""),p=Symbol(""),h=Symbol(""),f=Symbol(""),d=Symbol(""),m=Symbol(""),g=Symbol(""),_=Symbol(""),y=Symbol(""),b=Symbol(""),v=Symbol(""),k=Symbol(""),w=Symbol(""),x=Symbol(""),C=Symbol(""),S=Symbol(""),A=Symbol(""),E=Symbol(""),T=Symbol(""),O=Symbol(""),M=Symbol(""),D=Symbol(""),z=Symbol(""),N=Symbol(""),R=Symbol(""),L=Symbol(""),F=Symbol(""),P=Symbol(""),I=Symbol(""),q=Symbol(""),B=Symbol(""),V=Symbol(""),j=Symbol(""),$=Symbol(""),U=Symbol(""),H=Symbol(""),G={[a]:"Fragment",[l]:"Teleport",[c]:"Suspense",[u]:"KeepAlive",[p]:"BaseTransition",[h]:"openBlock",[f]:"createBlock",[d]:"createElementBlock",[m]:"createVNode",[g]:"createElementVNode",[_]:"createCommentVNode",[y]:"createTextVNode",[b]:"createStaticVNode",[v]:"resolveComponent",[k]:"resolveDynamicComponent",[w]:"resolveDirective",[x]:"resolveFilter",[C]:"withDirectives",[S]:"renderList",[A]:"renderSlot",[E]:"createSlots",[T]:"toDisplayString",[O]:"mergeProps",[M]:"normalizeClass",[D]:"normalizeStyle",[z]:"normalizeProps",[N]:"guardReactiveProps",[R]:"toHandlers",[L]:"camelize",[F]:"capitalize",[P]:"toHandlerKey",[I]:"setBlockTracking",[q]:"pushScopeId",[B]:"popScopeId",[V]:"withCtx",[j]:"unref",[$]:"isRef",[U]:"withMemo",[H]:"isMemoSame"};function Z(e){Object.getOwnPropertySymbols(e).forEach((t=>{G[t]=e[t]}))}const Y={source:"",start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0}};function K(e,t=Y){return{type:0,children:e,helpers:[],components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:t}}function J(e,t,n,r,o,i,s,a=!1,l=!1,c=!1,u=Y){return e&&(a?(e.helper(h),e.helper(Pe(e.inSSR,c))):e.helper(Fe(e.inSSR,c)),s&&e.helper(C)),{type:13,tag:t,props:n,children:r,patchFlag:o,dynamicProps:i,directives:s,isBlock:a,disableTracking:l,isComponent:c,loc:u}}function W(e,t=Y){return{type:17,loc:t,elements:e}}function X(e,t=Y){return{type:15,loc:t,properties:e}}function Q(e,t){return{type:16,loc:Y,key:(0,r.isString)(e)?ee(e,!0):e,value:t}}function ee(e,t=!1,n=Y,r=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:r}}function te(e,t){return{type:5,loc:t,content:(0,r.isString)(e)?ee(e,!1,t):e}}function ne(e,t=Y){return{type:8,loc:t,children:e}}function re(e,t=[],n=Y){return{type:14,loc:n,callee:e,arguments:t}}function oe(e,t,n=!1,r=!1,o=Y){return{type:18,params:e,returns:t,newline:n,isSlot:r,loc:o}}function ie(e,t,n,r=!0){return{type:19,test:e,consequent:t,alternate:n,newline:r,loc:Y}}function se(e,t,n=!1){return{type:20,index:e,value:t,isVNode:n,loc:Y}}function ae(e){return{type:21,body:e,loc:Y}}function le(e){return{type:22,elements:e,loc:Y}}function ce(e,t,n){return{type:23,test:e,consequent:t,alternate:n,loc:Y}}function ue(e,t){return{type:24,left:e,right:t,loc:Y}}function pe(e){return{type:25,expressions:e,loc:Y}}function he(e){return{type:26,returns:e,loc:Y}}const fe=e=>4===e.type&&e.isStatic,de=(e,t)=>e===t||e===(0,r.hyphenate)(t);function me(e){return de(e,"Teleport")?l:de(e,"Suspense")?c:de(e,"KeepAlive")?u:de(e,"BaseTransition")?p:void 0}const ge=/^\d|[^\$\w]/,_e=e=>!ge.test(e),ye=/[A-Za-z_$\xA0-\uFFFF]/,be=/[\.\?\w$\xA0-\uFFFF]/,ve=/\s+[.[]\s*|\s*[.[]\s+/g,ke=e=>{e=e.trim().replace(ve,(e=>e.trim()));let t=0,n=[],r=0,o=0,i=null;for(let s=0;s<e.length;s++){const a=e.charAt(s);switch(t){case 0:if("["===a)n.push(t),t=1,r++;else if("("===a)n.push(t),t=2,o++;else if(!(0===s?ye:be).test(a))return!1;break;case 1:"'"===a||'"'===a||"`"===a?(n.push(t),t=3,i=a):"["===a?r++:"]"===a&&(--r||(t=n.pop()));break;case 2:if("'"===a||'"'===a||"`"===a)n.push(t),t=3,i=a;else if("("===a)o++;else if(")"===a){if(s===e.length-1)return!1;--o||(t=n.pop())}break;case 3:a===i&&(t=n.pop(),i=null)}}return!r&&!o},we=r.NOOP,xe=ke;function Ce(e,t,n){const r={source:e.source.slice(t,t+n),start:Se(e.start,e.source,t),end:e.end};return null!=n&&(r.end=Se(e.start,e.source,t+n)),r}function Se(e,t,n=t.length){return Ae((0,r.extend)({},e),t,n)}function Ae(e,t,n=t.length){let r=0,o=-1;for(let e=0;e<n;e++)10===t.charCodeAt(e)&&(r++,o=e);return e.offset+=n,e.line+=r,e.column=-1===o?e.column+n:n-o,e}function Ee(e,t){if(!e)throw new Error(t||"unexpected compiler condition")}function Te(e,t,n=!1){for(let o=0;o<e.props.length;o++){const i=e.props[o];if(7===i.type&&(n||i.exp)&&((0,r.isString)(t)?i.name===t:t.test(i.name)))return i}}function Oe(e,t,n=!1,r=!1){for(let o=0;o<e.props.length;o++){const i=e.props[o];if(6===i.type){if(n)continue;if(i.name===t&&(i.value||r))return i}else if("bind"===i.name&&(i.exp||r)&&Me(i.arg,t))return i}}function Me(e,t){return!(!e||!fe(e)||e.content!==t)}function De(e){return e.props.some((e=>!(7!==e.type||"bind"!==e.name||e.arg&&4===e.arg.type&&e.arg.isStatic)))}function ze(e){return 5===e.type||2===e.type}function Ne(e){return 7===e.type&&"slot"===e.name}function Re(e){return 1===e.type&&3===e.tagType}function Le(e){return 1===e.type&&2===e.tagType}function Fe(e,t){return e||t?m:g}function Pe(e,t){return e||t?f:d}const Ie=new Set([z,N]);function qe(e,t=[]){if(e&&!(0,r.isString)(e)&&14===e.type){const n=e.callee;if(!(0,r.isString)(n)&&Ie.has(n))return qe(e.arguments[0],t.concat(e))}return[e,t]}function Be(e,t,n){let o,i,s=13===e.type?e.props:e.arguments[2],a=[];if(s&&!(0,r.isString)(s)&&14===s.type){const e=qe(s);s=e[0],a=e[1],i=a[a.length-1]}if(null==s||(0,r.isString)(s))o=X([t]);else if(14===s.type){const e=s.arguments[0];(0,r.isString)(e)||15!==e.type?s.callee===R?o=re(n.helper(O),[X([t]),s]):s.arguments.unshift(X([t])):e.properties.unshift(t),!o&&(o=s)}else if(15===s.type){let e=!1;if(4===t.key.type){const n=t.key.content;e=s.properties.some((e=>4===e.key.type&&e.key.content===n))}e||s.properties.unshift(t),o=s}else o=re(n.helper(O),[X([t]),s]),i&&i.callee===N&&(i=a[a.length-2]);13===e.type?i?i.arguments[0]=o:e.props=o:i?i.arguments[0]=o:e.arguments[2]=o}function Ve(e,t){return`_${t}_${e.replace(/[^\w]/g,((t,n)=>"-"===t?"_":e.charCodeAt(n).toString()))}`}function je(e,t){if(!e||0===Object.keys(t).length)return!1;switch(e.type){case 1:for(let n=0;n<e.props.length;n++){const r=e.props[n];if(7===r.type&&(je(r.arg,t)||je(r.exp,t)))return!0}return e.children.some((e=>je(e,t)));case 11:return!!je(e.source,t)||e.children.some((e=>je(e,t)));case 9:return e.branches.some((e=>je(e,t)));case 10:return!!je(e.condition,t)||e.children.some((e=>je(e,t)));case 4:return!e.isStatic&&_e(e.content)&&!!t[e.content];case 8:return e.children.some((e=>(0,r.isObject)(e)&&je(e,t)));case 5:case 12:return je(e.content,t);default:return!1}}function $e(e){return 14===e.type&&e.callee===U?e.arguments[1].returns:e}function Ue(e,{helper:t,removeHelper:n,inSSR:r}){e.isBlock||(e.isBlock=!0,n(Fe(r,e.isComponent)),t(h),t(Pe(r,e.isComponent)))}const He={COMPILER_IS_ON_ELEMENT:{message:'Platform-native elements with "is" prop will no longer be treated as components in Vue 3 unless the "is" value is explicitly prefixed with "vue:".',link:"https://v3-migration.vuejs.org/breaking-changes/custom-elements-interop.html"},COMPILER_V_BIND_SYNC:{message:e=>`.sync modifier for v-bind has been removed. Use v-model with argument instead. \`v-bind:${e}.sync\` should be changed to \`v-model:${e}\`.`,link:"https://v3-migration.vuejs.org/breaking-changes/v-model.html"},COMPILER_V_BIND_PROP:{message:".prop modifier for v-bind has been removed and no longer necessary. Vue 3 will automatically set a binding as DOM property when appropriate."},COMPILER_V_BIND_OBJECT_ORDER:{message:'v-bind="obj" usage is now order sensitive and behaves like JavaScript object spread: it will now overwrite an existing non-mergeable attribute that appears before v-bind in the case of conflict. To retain 2.x behavior, move v-bind to make it the first attribute. You can also suppress this warning if the usage is intended.',link:"https://v3-migration.vuejs.org/breaking-changes/v-bind.html"},COMPILER_V_ON_NATIVE:{message:".native modifier for v-on has been removed as is no longer necessary.",link:"https://v3-migration.vuejs.org/breaking-changes/v-on-native-modifier-removed.html"},COMPILER_V_IF_V_FOR_PRECEDENCE:{message:"v-if / v-for precedence when used on the same element has changed in Vue 3: v-if now takes higher precedence and will no longer have access to v-for scope variables. It is best to avoid the ambiguity with <template> tags or use a computed property that filters v-for data source.",link:"https://v3-migration.vuejs.org/breaking-changes/v-if-v-for.html"},COMPILER_NATIVE_TEMPLATE:{message:"<template> with no special directives will render as a native template element instead of its inner content in Vue 3."},COMPILER_INLINE_TEMPLATE:{message:'"inline-template" has been removed in Vue 3.',link:"https://v3-migration.vuejs.org/breaking-changes/inline-template-attribute.html"},COMPILER_FILTER:{message:'filters have been removed in Vue 3. The "|" symbol will be treated as native JavaScript bitwise OR operator. Use method calls or computed properties instead.',link:"https://v3-migration.vuejs.org/breaking-changes/filters.html"}};function Ge(e,t){const n=t.options?t.options.compatConfig:t.compatConfig,r=n&&n[e];return"MODE"===e?r||3:r}function Ze(e,t){const n=Ge("MODE",t),r=Ge(e,t);return 3===n?!0===r:!1!==r}function Ye(e,t,n,...r){return Ze(e,t)}function Ke(e,t,n,...r){if("suppress-warning"===Ge(e,t))return;const{message:o,link:i}=He[e],s=`(deprecation ${e}) ${"function"==typeof o?o(...r):o}${i?`\n Details: ${i}`:""}`,a=new SyntaxError(s);a.code=e,n&&(a.loc=n),t.onWarn(a)}const Je=/&(gt|lt|amp|apos|quot);/g,We={gt:">",lt:"<",amp:"&",apos:"'",quot:'"'},Xe={delimiters:["{{","}}"],getNamespace:()=>0,getTextMode:()=>0,isVoidTag:r.NO,isPreTag:r.NO,isCustomElement:r.NO,decodeEntities:e=>e.replace(Je,((e,t)=>We[t])),onError:o,onWarn:i,comments:!1};function Qe(e,t={}){const n=function(e,t){const n=(0,r.extend)({},Xe);let o;for(o in t)n[o]=void 0===t[o]?Xe[o]:t[o];return{options:n,column:1,line:1,offset:0,originalSource:e,source:e,inPre:!1,inVPre:!1,onWarn:n.onWarn}}(e,t),o=ft(n);return K(et(n,0,[]),dt(n,o))}function et(e,t,n){const o=mt(n),i=o?o.ns:0,s=[];for(;!kt(e,t,n);){const a=e.source;let l;if(0===t||1===t)if(!e.inVPre&>(a,e.options.delimiters[0]))l=ut(e,t);else if(0===t&&"<"===a[0])if(1===a.length)vt(e,5,1);else if("!"===a[1])gt(a,"\x3c!--")?l=rt(e):gt(a,"<!DOCTYPE")?l=ot(e):gt(a,"<![CDATA[")?0!==i?l=nt(e,n):(vt(e,1),l=ot(e)):(vt(e,11),l=ot(e));else if("/"===a[1])if(2===a.length)vt(e,5,2);else{if(">"===a[2]){vt(e,14,2),_t(e,3);continue}if(/[a-z]/i.test(a[2])){vt(e,23),at(e,1,o);continue}vt(e,12,2),l=ot(e)}else/[a-z]/i.test(a[1])?(l=it(e,n),Ze("COMPILER_NATIVE_TEMPLATE",e)&&l&&"template"===l.tag&&!l.props.some((e=>7===e.type&&st(e.name)))&&(l=l.children)):"?"===a[1]?(vt(e,21,1),l=ot(e)):vt(e,12,1);if(l||(l=pt(e,t)),(0,r.isArray)(l))for(let e=0;e<l.length;e++)tt(s,l[e]);else tt(s,l)}let a=!1;if(2!==t&&1!==t){const t="preserve"!==e.options.whitespace;for(let n=0;n<s.length;n++){const r=s[n];if(e.inPre||2!==r.type)3!==r.type||e.options.comments||(a=!0,s[n]=null);else if(/[^\t\r\n\f ]/.test(r.content))t&&(r.content=r.content.replace(/[\t\r\n\f ]+/g," "));else{const e=s[n-1],o=s[n+1];!e||!o||t&&(3===e.type||3===o.type||1===e.type&&1===o.type&&/[\r\n]/.test(r.content))?(a=!0,s[n]=null):r.content=" "}}if(e.inPre&&o&&e.options.isPreTag(o.tag)){const e=s[0];e&&2===e.type&&(e.content=e.content.replace(/^\r?\n/,""))}}return a?s.filter(Boolean):s}function tt(e,t){if(2===t.type){const n=mt(e);if(n&&2===n.type&&n.loc.end.offset===t.loc.start.offset)return n.content+=t.content,n.loc.end=t.loc.end,void(n.loc.source+=t.loc.source)}e.push(t)}function nt(e,t){_t(e,9);const n=et(e,3,t);return 0===e.source.length?vt(e,6):_t(e,3),n}function rt(e){const t=ft(e);let n;const r=/--(\!)?>/.exec(e.source);if(r){r.index<=3&&vt(e,0),r[1]&&vt(e,10),n=e.source.slice(4,r.index);const t=e.source.slice(0,r.index);let o=1,i=0;for(;-1!==(i=t.indexOf("\x3c!--",o));)_t(e,i-o+1),i+4<t.length&&vt(e,16),o=i+1;_t(e,r.index+r[0].length-o+1)}else n=e.source.slice(4),_t(e,e.source.length),vt(e,7);return{type:3,content:n,loc:dt(e,t)}}function ot(e){const t=ft(e),n="?"===e.source[1]?1:2;let r;const o=e.source.indexOf(">");return-1===o?(r=e.source.slice(n),_t(e,e.source.length)):(r=e.source.slice(n,o),_t(e,o+1)),{type:3,content:r,loc:dt(e,t)}}function it(e,t){const n=e.inPre,r=e.inVPre,o=mt(t),i=at(e,0,o),s=e.inPre&&!n,a=e.inVPre&&!r;if(i.isSelfClosing||e.options.isVoidTag(i.tag))return s&&(e.inPre=!1),a&&(e.inVPre=!1),i;t.push(i);const l=e.options.getTextMode(i,o),c=et(e,l,t);t.pop();{const t=i.props.find((e=>6===e.type&&"inline-template"===e.name));if(t&&Ye("COMPILER_INLINE_TEMPLATE",e,t.loc)){const n=dt(e,i.loc.end);t.value={type:2,content:n.source,loc:n}}}if(i.children=c,wt(e.source,i.tag))at(e,1,o);else if(vt(e,24,0,i.loc.start),0===e.source.length&&"script"===i.tag.toLowerCase()){const t=c[0];t&>(t.loc.source,"\x3c!--")&&vt(e,8)}return i.loc=dt(e,i.loc.start),s&&(e.inPre=!1),a&&(e.inVPre=!1),i}const st=(0,r.makeMap)("if,else,else-if,for,slot");function at(e,t,n){const o=ft(e),i=/^<\/?([a-z][^\t\r\n\f />]*)/i.exec(e.source),s=i[1],a=e.options.getNamespace(s,n);_t(e,i[0].length),yt(e);const l=ft(e),c=e.source;e.options.isPreTag(s)&&(e.inPre=!0);let u=lt(e,t);0===t&&!e.inVPre&&u.some((e=>7===e.type&&"pre"===e.name))&&(e.inVPre=!0,(0,r.extend)(e,l),e.source=c,u=lt(e,t).filter((e=>"v-pre"!==e.name)));let p=!1;if(0===e.source.length?vt(e,9):(p=gt(e.source,"/>"),1===t&&p&&vt(e,4),_t(e,p?2:1)),1===t)return;let h=0;return e.inVPre||("slot"===s?h=2:"template"===s?u.some((e=>7===e.type&&st(e.name)))&&(h=3):function(e,t,n){const r=n.options;if(r.isCustomElement(e))return!1;if("component"===e||/^[A-Z]/.test(e)||me(e)||r.isBuiltInComponent&&r.isBuiltInComponent(e)||r.isNativeTag&&!r.isNativeTag(e))return!0;for(let e=0;e<t.length;e++){const r=t[e];if(6===r.type){if("is"===r.name&&r.value){if(r.value.content.startsWith("vue:"))return!0;if(Ye("COMPILER_IS_ON_ELEMENT",n,r.loc))return!0}}else{if("is"===r.name)return!0;if("bind"===r.name&&Me(r.arg,"is")&&Ye("COMPILER_IS_ON_ELEMENT",n,r.loc))return!0}}}(s,u,e)&&(h=1)),{type:1,ns:a,tag:s,tagType:h,props:u,isSelfClosing:p,children:[],loc:dt(e,o),codegenNode:void 0}}function lt(e,t){const n=[],r=new Set;for(;e.source.length>0&&!gt(e.source,">")&&!gt(e.source,"/>");){if(gt(e.source,"/")){vt(e,22),_t(e,1),yt(e);continue}1===t&&vt(e,3);const o=ct(e,r);6===o.type&&o.value&&"class"===o.name&&(o.value.content=o.value.content.replace(/\s+/g," ").trim()),0===t&&n.push(o),/^[^\t\r\n\f />]/.test(e.source)&&vt(e,15),yt(e)}return n}function ct(e,t){const n=ft(e),r=/^[^\t\r\n\f />][^\t\r\n\f />=]*/.exec(e.source)[0];t.has(r)&&vt(e,2),t.add(r),"="===r[0]&&vt(e,19);{const t=/["'<]/g;let n;for(;n=t.exec(r);)vt(e,17,n.index)}let o;_t(e,r.length),/^[\t\r\n\f ]*=/.test(e.source)&&(yt(e),_t(e,1),yt(e),o=function(e){const t=ft(e);let n;const r=e.source[0],o='"'===r||"'"===r;if(o){_t(e,1);const t=e.source.indexOf(r);-1===t?n=ht(e,e.source.length,4):(n=ht(e,t,4),_t(e,1))}else{const t=/^[^\t\r\n\f >]+/.exec(e.source);if(!t)return;const r=/["'<=`]/g;let o;for(;o=r.exec(t[0]);)vt(e,18,o.index);n=ht(e,t[0].length,4)}return{content:n,isQuoted:o,loc:dt(e,t)}}(e),o||vt(e,13));const i=dt(e,n);if(!e.inVPre&&/^(v-[A-Za-z0-9-]|:|\.|@|#)/.test(r)){const t=/(?:^v-([a-z0-9-]+))?(?:(?::|^\.|^@|^#)(\[[^\]]+\]|[^\.]+))?(.+)?$/i.exec(r);let s,a=gt(r,"."),l=t[1]||(a||gt(r,":")?"bind":gt(r,"@")?"on":"slot");if(t[2]){const o="slot"===l,i=r.lastIndexOf(t[2]),a=dt(e,bt(e,n,i),bt(e,n,i+t[2].length+(o&&t[3]||"").length));let c=t[2],u=!0;c.startsWith("[")?(u=!1,c.endsWith("]")?c=c.slice(1,c.length-1):(vt(e,27),c=c.slice(1))):o&&(c+=t[3]||""),s={type:4,content:c,isStatic:u,constType:u?3:0,loc:a}}if(o&&o.isQuoted){const e=o.loc;e.start.offset++,e.start.column++,e.end=Se(e.start,o.content),e.source=e.source.slice(1,-1)}const c=t[3]?t[3].slice(1).split("."):[];return a&&c.push("prop"),"bind"===l&&s&&c.includes("sync")&&Ye("COMPILER_V_BIND_SYNC",e,0,s.loc.source)&&(l="model",c.splice(c.indexOf("sync"),1)),{type:7,name:l,exp:o&&{type:4,content:o.content,isStatic:!1,constType:0,loc:o.loc},arg:s,modifiers:c,loc:i}}return!e.inVPre&>(r,"v-")&&vt(e,26),{type:6,name:r,value:o&&{type:2,content:o.content,loc:o.loc},loc:i}}function ut(e,t){const[n,r]=e.options.delimiters,o=e.source.indexOf(r,n.length);if(-1===o)return void vt(e,25);const i=ft(e);_t(e,n.length);const s=ft(e),a=ft(e),l=o-n.length,c=e.source.slice(0,l),u=ht(e,l,t),p=u.trim(),h=u.indexOf(p);return h>0&&Ae(s,c,h),Ae(a,c,l-(u.length-p.length-h)),_t(e,r.length),{type:5,content:{type:4,isStatic:!1,constType:0,content:p,loc:dt(e,s,a)},loc:dt(e,i)}}function pt(e,t){const n=3===t?["]]>"]:["<",e.options.delimiters[0]];let r=e.source.length;for(let t=0;t<n.length;t++){const o=e.source.indexOf(n[t],1);-1!==o&&r>o&&(r=o)}const o=ft(e);return{type:2,content:ht(e,r,t),loc:dt(e,o)}}function ht(e,t,n){const r=e.source.slice(0,t);return _t(e,t),2!==n&&3!==n&&r.includes("&")?e.options.decodeEntities(r,4===n):r}function ft(e){const{column:t,line:n,offset:r}=e;return{column:t,line:n,offset:r}}function dt(e,t,n){return{start:t,end:n=n||ft(e),source:e.originalSource.slice(t.offset,n.offset)}}function mt(e){return e[e.length-1]}function gt(e,t){return e.startsWith(t)}function _t(e,t){const{source:n}=e;Ae(e,n,t),e.source=n.slice(t)}function yt(e){const t=/^[\t\r\n\f ]+/.exec(e.source);t&&_t(e,t[0].length)}function bt(e,t,n){return Se(t,e.originalSource.slice(t.offset,n),n)}function vt(e,t,n,r=ft(e)){n&&(r.offset+=n,r.column+=n),e.options.onError(s(t,{start:r,end:r,source:""}))}function kt(e,t,n){const r=e.source;switch(t){case 0:if(gt(r,"</"))for(let e=n.length-1;e>=0;--e)if(wt(r,n[e].tag))return!0;break;case 1:case 2:{const e=mt(n);if(e&&wt(r,e.tag))return!0;break}case 3:if(gt(r,"]]>"))return!0}return!r}function wt(e,t){return gt(e,"</")&&e.slice(2,2+t.length).toLowerCase()===t.toLowerCase()&&/[\t\r\n\f />]/.test(e[2+t.length]||">")}function xt(e,t){St(e,t,Ct(e,e.children[0]))}function Ct(e,t){const{children:n}=e;return 1===n.length&&1===t.type&&!Le(t)}function St(e,t,n=!1){const{children:o}=e,i=o.length;let s=0;for(let e=0;e<o.length;e++){const r=o[e];if(1===r.type&&0===r.tagType){const e=n?0:At(r,t);if(e>0){if(e>=2){r.codegenNode.patchFlag="-1",r.codegenNode=t.hoist(r.codegenNode),s++;continue}}else{const e=r.codegenNode;if(13===e.type){const n=Dt(e);if((!n||512===n||1===n)&&Ot(r,t)>=2){const n=Mt(r);n&&(e.props=t.hoist(n))}e.dynamicProps&&(e.dynamicProps=t.hoist(e.dynamicProps))}}}else 12===r.type&&At(r.content,t)>=2&&(r.codegenNode=t.hoist(r.codegenNode),s++);if(1===r.type){const e=1===r.tagType;e&&t.scopes.vSlot++,St(r,t),e&&t.scopes.vSlot--}else if(11===r.type)St(r,t,1===r.children.length);else if(9===r.type)for(let e=0;e<r.branches.length;e++)St(r.branches[e],t,1===r.branches[e].children.length)}s&&t.transformHoist&&t.transformHoist(o,t,e),s&&s===i&&1===e.type&&0===e.tagType&&e.codegenNode&&13===e.codegenNode.type&&(0,r.isArray)(e.codegenNode.children)&&(e.codegenNode.children=t.hoist(W(e.codegenNode.children)))}function At(e,t){const{constantCache:n}=t;switch(e.type){case 1:if(0!==e.tagType)return 0;const o=n.get(e);if(void 0!==o)return o;const i=e.codegenNode;if(13!==i.type)return 0;if(i.isBlock&&"svg"!==e.tag&&"foreignObject"!==e.tag)return 0;if(Dt(i))return n.set(e,0),0;{let r=3;const o=Ot(e,t);if(0===o)return n.set(e,0),0;o<r&&(r=o);for(let o=0;o<e.children.length;o++){const i=At(e.children[o],t);if(0===i)return n.set(e,0),0;i<r&&(r=i)}if(r>1)for(let o=0;o<e.props.length;o++){const i=e.props[o];if(7===i.type&&"bind"===i.name&&i.exp){const o=At(i.exp,t);if(0===o)return n.set(e,0),0;o<r&&(r=o)}}if(i.isBlock){for(let t=0;t<e.props.length;t++)if(7===e.props[t].type)return n.set(e,0),0;t.removeHelper(h),t.removeHelper(Pe(t.inSSR,i.isComponent)),i.isBlock=!1,t.helper(Fe(t.inSSR,i.isComponent))}return n.set(e,r),r}case 2:case 3:return 3;case 9:case 11:case 10:default:return 0;case 5:case 12:return At(e.content,t);case 4:return e.constType;case 8:let s=3;for(let n=0;n<e.children.length;n++){const o=e.children[n];if((0,r.isString)(o)||(0,r.isSymbol)(o))continue;const i=At(o,t);if(0===i)return 0;i<s&&(s=i)}return s}}const Et=new Set([M,D,z,N]);function Tt(e,t){if(14===e.type&&!(0,r.isString)(e.callee)&&Et.has(e.callee)){const n=e.arguments[0];if(4===n.type)return At(n,t);if(14===n.type)return Tt(n,t)}return 0}function Ot(e,t){let n=3;const r=Mt(e);if(r&&15===r.type){const{properties:e}=r;for(let r=0;r<e.length;r++){const{key:o,value:i}=e[r],s=At(o,t);if(0===s)return s;let a;if(s<n&&(n=s),a=4===i.type?At(i,t):14===i.type?Tt(i,t):0,0===a)return a;a<n&&(n=a)}}return n}function Mt(e){const t=e.codegenNode;if(13===t.type)return t.props}function Dt(e){const t=e.patchFlag;return t?parseInt(t,10):void 0}function zt(e,{filename:t="",prefixIdentifiers:n=!1,hoistStatic:s=!1,cacheHandlers:a=!1,nodeTransforms:l=[],directiveTransforms:c={},transformHoist:u=null,isBuiltInComponent:p=r.NOOP,isCustomElement:h=r.NOOP,expressionPlugins:f=[],scopeId:d=null,slotted:m=!0,ssr:g=!1,inSSR:_=!1,ssrCssVars:y="",bindingMetadata:b=r.EMPTY_OBJ,inline:v=!1,isTS:k=!1,onError:w=o,onWarn:x=i,compatConfig:C}){const S=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),A={selfName:S&&(0,r.capitalize)((0,r.camelize)(S[1])),prefixIdentifiers:n,hoistStatic:s,cacheHandlers:a,nodeTransforms:l,directiveTransforms:c,transformHoist:u,isBuiltInComponent:p,isCustomElement:h,expressionPlugins:f,scopeId:d,slotted:m,ssr:g,inSSR:_,ssrCssVars:y,bindingMetadata:b,inline:v,isTS:k,onError:w,onWarn:x,compatConfig:C,root:e,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],constantCache:new Map,temps:0,cached:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,currentNode:e,childIndex:0,inVOnce:!1,helper(e){const t=A.helpers.get(e)||0;return A.helpers.set(e,t+1),e},removeHelper(e){const t=A.helpers.get(e);if(t){const n=t-1;n?A.helpers.set(e,n):A.helpers.delete(e)}},helperString:e=>`_${G[A.helper(e)]}`,replaceNode(e){A.parent.children[A.childIndex]=A.currentNode=e},removeNode(e){const t=A.parent.children,n=e?t.indexOf(e):A.currentNode?A.childIndex:-1;e&&e!==A.currentNode?A.childIndex>n&&(A.childIndex--,A.onNodeRemoved()):(A.currentNode=null,A.onNodeRemoved()),A.parent.children.splice(n,1)},onNodeRemoved:()=>{},addIdentifiers(e){},removeIdentifiers(e){},hoist(e){(0,r.isString)(e)&&(e=ee(e)),A.hoists.push(e);const t=ee(`_hoisted_${A.hoists.length}`,!1,e.loc,2);return t.hoisted=e,t},cache:(e,t=!1)=>se(A.cached++,e,t)};return A.filters=new Set,A}function Nt(e,t){const n=zt(e,t);Rt(e,n),t.hoistStatic&&xt(e,n),t.ssr||function(e,t){const{helper:n}=t,{children:o}=e;if(1===o.length){const n=o[0];if(Ct(e,n)&&n.codegenNode){const r=n.codegenNode;13===r.type&&Ue(r,t),e.codegenNode=r}else e.codegenNode=n}else if(o.length>1){let o=64;r.PatchFlagNames[64],e.codegenNode=J(t,n(a),void 0,e.children,o+"",void 0,void 0,!0,void 0,!1)}}(e,n),e.helpers=[...n.helpers.keys()],e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.filters=[...n.filters]}function Rt(e,t){t.currentNode=e;const{nodeTransforms:n}=t,o=[];for(let i=0;i<n.length;i++){const s=n[i](e,t);if(s&&((0,r.isArray)(s)?o.push(...s):o.push(s)),!t.currentNode)return;e=t.currentNode}switch(e.type){case 3:t.ssr||t.helper(_);break;case 5:t.ssr||t.helper(T);break;case 9:for(let n=0;n<e.branches.length;n++)Rt(e.branches[n],t);break;case 10:case 11:case 1:case 0:!function(e,t){let n=0;const o=()=>{n--};for(;n<e.children.length;n++){const i=e.children[n];(0,r.isString)(i)||(t.parent=e,t.childIndex=n,t.onNodeRemoved=o,Rt(i,t))}}(e,t)}t.currentNode=e;let i=o.length;for(;i--;)o[i]()}function Lt(e,t){const n=(0,r.isString)(e)?t=>t===e:t=>e.test(t);return(e,r)=>{if(1===e.type){const{props:o}=e;if(3===e.tagType&&o.some(Ne))return;const i=[];for(let s=0;s<o.length;s++){const a=o[s];if(7===a.type&&n(a.name)){o.splice(s,1),s--;const n=t(e,a,r);n&&i.push(n)}}return i}}}const Ft="/*#__PURE__*/",Pt=e=>`${G[e]}: _${G[e]}`;function It(e,t={}){const n=function(e,{mode:t="function",prefixIdentifiers:n="module"===t,sourceMap:r=!1,filename:o="template.vue.html",scopeId:i=null,optimizeImports:s=!1,runtimeGlobalName:a="Vue",runtimeModuleName:l="vue",ssrRuntimeModuleName:c="vue/server-renderer",ssr:u=!1,isTS:p=!1,inSSR:h=!1}){const f={mode:t,prefixIdentifiers:n,sourceMap:r,filename:o,scopeId:i,optimizeImports:s,runtimeGlobalName:a,runtimeModuleName:l,ssrRuntimeModuleName:c,ssr:u,isTS:p,inSSR:h,source:e.loc.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper:e=>`_${G[e]}`,push(e,t){f.code+=e},indent(){d(++f.indentLevel)},deindent(e=!1){e?--f.indentLevel:d(--f.indentLevel)},newline(){d(f.indentLevel)}};function d(e){f.push("\n"+" ".repeat(e))}return f}(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:r,push:o,prefixIdentifiers:i,indent:s,deindent:a,newline:l,scopeId:c,ssr:u}=n,p=e.helpers.length>0,h=!i&&"module"!==r;if(function(e,t){const{ssr:n,prefixIdentifiers:r,push:o,newline:i,runtimeModuleName:s,runtimeGlobalName:a,ssrRuntimeModuleName:l}=t,c=a;e.helpers.length>0&&(o(`const _Vue = ${c}\n`),e.hoists.length)&&o(`const { ${[m,g,_,y,b].filter((t=>e.helpers.includes(t))).map(Pt).join(", ")} } = _Vue\n`),function(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:r,helper:o,scopeId:i,mode:s}=t;r();for(let o=0;o<e.length;o++){const i=e[o];i&&(n(`const _hoisted_${o+1} = `),jt(i,t),r())}t.pure=!1}(e.hoists,t),i(),o("return ")}(e,n),o(`function ${u?"ssrRender":"render"}(${(u?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ")}) {`),s(),h&&(o("with (_ctx) {"),s(),p&&(o(`const { ${e.helpers.map(Pt).join(", ")} } = _Vue`),o("\n"),l())),e.components.length&&(qt(e.components,"component",n),(e.directives.length||e.temps>0)&&l()),e.directives.length&&(qt(e.directives,"directive",n),e.temps>0&&l()),e.filters&&e.filters.length&&(l(),qt(e.filters,"filter",n),l()),e.temps>0){o("let ");for(let t=0;t<e.temps;t++)o(`${t>0?", ":""}_temp${t}`)}return(e.components.length||e.directives.length||e.temps)&&(o("\n"),l()),u||o("return "),e.codegenNode?jt(e.codegenNode,n):o("null"),h&&(a(),o("}")),a(),o("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}function qt(e,t,{helper:n,push:r,newline:o,isTS:i}){const s=n("filter"===t?x:"component"===t?v:w);for(let n=0;n<e.length;n++){let a=e[n];const l=a.endsWith("__self");l&&(a=a.slice(0,-6)),r(`const ${Ve(a,t)} = ${s}(${JSON.stringify(a)}${l?", true":""})${i?"!":""}`),n<e.length-1&&o()}}function Bt(e,t){const n=e.length>3||!1;t.push("["),n&&t.indent(),Vt(e,t,n),n&&t.deindent(),t.push("]")}function Vt(e,t,n=!1,o=!0){const{push:i,newline:s}=t;for(let a=0;a<e.length;a++){const l=e[a];(0,r.isString)(l)?i(l):(0,r.isArray)(l)?Bt(l,t):jt(l,t),a<e.length-1&&(n?(o&&i(","),s()):o&&i(", "))}}function jt(e,t){if((0,r.isString)(e))t.push(e);else if((0,r.isSymbol)(e))t.push(t.helper(e));else switch(e.type){case 1:case 9:case 11:case 12:jt(e.codegenNode,t);break;case 2:!function(e,t){t.push(JSON.stringify(e.content),e)}(e,t);break;case 4:$t(e,t);break;case 5:!function(e,t){const{push:n,helper:r,pure:o}=t;o&&n(Ft),n(`${r(T)}(`),jt(e.content,t),n(")")}(e,t);break;case 8:Ut(e,t);break;case 3:!function(e,t){const{push:n,helper:r,pure:o}=t;o&&n(Ft),n(`${r(_)}(${JSON.stringify(e.content)})`,e)}(e,t);break;case 13:!function(e,t){const{push:n,helper:r,pure:o}=t,{tag:i,props:s,children:a,patchFlag:l,dynamicProps:c,directives:u,isBlock:p,disableTracking:f,isComponent:d}=e;u&&n(r(C)+"("),p&&n(`(${r(h)}(${f?"true":""}), `),o&&n(Ft);n(r(p?Pe(t.inSSR,d):Fe(t.inSSR,d))+"(",e),Vt(function(e){let t=e.length;for(;t--&&null==e[t];);return e.slice(0,t+1).map((e=>e||"null"))}([i,s,a,l,c]),t),n(")"),p&&n(")"),u&&(n(", "),jt(u,t),n(")"))}(e,t);break;case 14:!function(e,t){const{push:n,helper:o,pure:i}=t,s=(0,r.isString)(e.callee)?e.callee:o(e.callee);i&&n(Ft),n(s+"(",e),Vt(e.arguments,t),n(")")}(e,t);break;case 15:!function(e,t){const{push:n,indent:r,deindent:o,newline:i}=t,{properties:s}=e;if(!s.length)return void n("{}",e);const a=s.length>1||!1;n(a?"{":"{ "),a&&r();for(let e=0;e<s.length;e++){const{key:r,value:o}=s[e];Ht(r,t),n(": "),jt(o,t),e<s.length-1&&(n(","),i())}a&&o(),n(a?"}":" }")}(e,t);break;case 17:!function(e,t){Bt(e.elements,t)}(e,t);break;case 18:!function(e,t){const{push:n,indent:o,deindent:i}=t,{params:s,returns:a,body:l,newline:c,isSlot:u}=e;u&&n(`_${G[V]}(`),n("(",e),(0,r.isArray)(s)?Vt(s,t):s&&jt(s,t),n(") => "),(c||l)&&(n("{"),o()),a?(c&&n("return "),(0,r.isArray)(a)?Bt(a,t):jt(a,t)):l&&jt(l,t),(c||l)&&(i(),n("}")),u&&(e.isNonScopedSlot&&n(", undefined, true"),n(")"))}(e,t);break;case 19:!function(e,t){const{test:n,consequent:r,alternate:o,newline:i}=e,{push:s,indent:a,deindent:l,newline:c}=t;if(4===n.type){const e=!_e(n.content);e&&s("("),$t(n,t),e&&s(")")}else s("("),jt(n,t),s(")");i&&a(),t.indentLevel++,i||s(" "),s("? "),jt(r,t),t.indentLevel--,i&&c(),i||s(" "),s(": ");const u=19===o.type;u||t.indentLevel++,jt(o,t),u||t.indentLevel--,i&&l(!0)}(e,t);break;case 20:!function(e,t){const{push:n,helper:r,indent:o,deindent:i,newline:s}=t;n(`_cache[${e.index}] || (`),e.isVNode&&(o(),n(`${r(I)}(-1),`),s()),n(`_cache[${e.index}] = `),jt(e.value,t),e.isVNode&&(n(","),s(),n(`${r(I)}(1),`),s(),n(`_cache[${e.index}]`),i()),n(")")}(e,t);break;case 21:Vt(e.body,t,!0,!1)}}function $t(e,t){const{content:n,isStatic:r}=e;t.push(r?JSON.stringify(n):n,e)}function Ut(e,t){for(let n=0;n<e.children.length;n++){const o=e.children[n];(0,r.isString)(o)?t.push(o):jt(o,t)}}function Ht(e,t){const{push:n}=t;8===e.type?(n("["),Ut(e,t),n("]")):e.isStatic?n(_e(e.content)?e.content:JSON.stringify(e.content),e):n(`[${e.content}]`,e)}function Gt(e,t,n=!1,r=[],o=Object.create(null)){}function Zt(e,t,n){return!1}function Yt(e,t){if(e&&("ObjectProperty"===e.type||"ArrayPattern"===e.type)){let e=t.length;for(;e--;){const n=t[e];if("AssignmentExpression"===n.type)return!0;if("ObjectProperty"!==n.type&&!n.type.endsWith("Pattern"))break}}return!1}function Kt(e,t){for(const n of e.params)for(const e of Wt(n))t(e)}function Jt(e,t){for(const n of e.body)if("VariableDeclaration"===n.type){if(n.declare)continue;for(const e of n.declarations)for(const n of Wt(e.id))t(n)}else if("FunctionDeclaration"===n.type||"ClassDeclaration"===n.type){if(n.declare||!n.id)continue;t(n.id)}}function Wt(e,t=[]){switch(e.type){case"Identifier":t.push(e);break;case"MemberExpression":let n=e;for(;"MemberExpression"===n.type;)n=n.object;t.push(n);break;case"ObjectPattern":for(const n of e.properties)"RestElement"===n.type?Wt(n.argument,t):Wt(n.value,t);break;case"ArrayPattern":e.elements.forEach((e=>{e&&Wt(e,t)}));break;case"RestElement":Wt(e.argument,t);break;case"AssignmentPattern":Wt(e.left,t)}return t}const Xt=e=>/Function(?:Expression|Declaration)$|Method$/.test(e.type),Qt=e=>e&&("ObjectProperty"===e.type||"ObjectMethod"===e.type)&&!e.computed,en=(e,t)=>Qt(t)&&t.key===e;new RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments,typeof,void".split(",").join("\\b|\\b")+"\\b");const tn=(e,t)=>{if(5===e.type)e.content=nn(e.content,t);else if(1===e.type)for(let n=0;n<e.props.length;n++){const r=e.props[n];if(7===r.type&&"for"!==r.name){const e=r.exp,n=r.arg;!e||4!==e.type||"on"===r.name&&n||(r.exp=nn(e,t,"slot"===r.name)),n&&4===n.type&&!n.isStatic&&(r.arg=nn(n,t))}}};function nn(e,t,n=!1,r=!1,o=Object.create(t.identifiers)){return e}const rn=Lt(/^(if|else|else-if)$/,((e,t,n)=>on(e,t,n,((e,t,r)=>{const o=n.parent.children;let i=o.indexOf(e),s=0;for(;i-- >=0;){const e=o[i];e&&9===e.type&&(s+=e.branches.length)}return()=>{if(r)e.codegenNode=an(t,s,n);else{const r=function(e){for(;;)if(19===e.type){if(19!==e.alternate.type)return e;e=e.alternate}else 20===e.type&&(e=e.value)}(e.codegenNode);r.alternate=an(t,s+e.branches.length-1,n)}}}))));function on(e,t,n,r){if(!("else"===t.name||t.exp&&t.exp.content.trim())){const r=t.exp?t.exp.loc:e.loc;n.onError(s(28,t.loc)),t.exp=ee("true",!1,r)}if("if"===t.name){const o=sn(e,t),i={type:9,loc:e.loc,branches:[o]};if(n.replaceNode(i),r)return r(i,o,!0)}else{const o=n.parent.children;let i=o.indexOf(e);for(;i-- >=-1;){const a=o[i];if(!a||2!==a.type||a.content.trim().length){if(a&&9===a.type){"else-if"===t.name&&void 0===a.branches[a.branches.length-1].condition&&n.onError(s(30,e.loc)),n.removeNode();const o=sn(e,t);a.branches.push(o);const i=r&&r(a,o,!1);Rt(o,n),i&&i(),n.currentNode=null}else n.onError(s(30,e.loc));break}n.removeNode(a)}}}function sn(e,t){const n=3===e.tagType;return{type:10,loc:e.loc,condition:"else"===t.name?void 0:t.exp,children:n&&!Te(e,"for")?e.children:[e],userKey:Oe(e,"key"),isTemplateIf:n}}function an(e,t,n){return e.condition?ie(e.condition,ln(e,t,n),re(n.helper(_),['""',"true"])):ln(e,t,n)}function ln(e,t,n){const{helper:o}=n,i=Q("key",ee(`${t}`,!1,Y,2)),{children:s}=e,l=s[0];if(1!==s.length||1!==l.type){if(1===s.length&&11===l.type){const e=l.codegenNode;return Be(e,i,n),e}{let t=64;return r.PatchFlagNames[64],J(n,o(a),X([i]),s,t+"",void 0,void 0,!0,!1,!1,e.loc)}}{const e=l.codegenNode,t=$e(e);return 13===t.type&&Ue(t,n),Be(t,i,n),e}}const cn=Lt("for",((e,t,n)=>{const{helper:r,removeHelper:o}=n;return un(e,t,n,(t=>{const i=re(r(S),[t.source]),s=Re(e),l=Te(e,"memo"),c=Oe(e,"key"),u=c&&(6===c.type?ee(c.value.content,!0):c.exp),p=c?Q("key",u):null,f=4===t.source.type&&t.source.constType>0,d=f?64:c?128:256;return t.codegenNode=J(n,r(a),void 0,i,d+"",void 0,void 0,!0,!f,!1,e.loc),()=>{let c;const{children:d}=t,m=1!==d.length||1!==d[0].type,g=Le(e)?e:s&&1===e.children.length&&Le(e.children[0])?e.children[0]:null;if(g?(c=g.codegenNode,s&&p&&Be(c,p,n)):m?c=J(n,r(a),p?X([p]):void 0,e.children,"64",void 0,void 0,!0,void 0,!1):(c=d[0].codegenNode,s&&p&&Be(c,p,n),c.isBlock!==!f&&(c.isBlock?(o(h),o(Pe(n.inSSR,c.isComponent))):o(Fe(n.inSSR,c.isComponent))),c.isBlock=!f,c.isBlock?(r(h),r(Pe(n.inSSR,c.isComponent))):r(Fe(n.inSSR,c.isComponent))),l){const e=oe(gn(t.parseResult,[ee("_cached")]));e.body=ae([ne(["const _memo = (",l.exp,")"]),ne(["if (_cached",...u?[" && _cached.key === ",u]:[],` && ${n.helperString(H)}(_cached, _memo)) return _cached`]),ne(["const _item = ",c]),ee("_item.memo = _memo"),ee("return _item")]),i.arguments.push(e,ee("_cache"),ee(String(n.cached++)))}else i.arguments.push(oe(gn(t.parseResult),c,!0))}}))}));function un(e,t,n,r){if(!t.exp)return void n.onError(s(31,t.loc));const o=dn(t.exp);if(!o)return void n.onError(s(32,t.loc));const{addIdentifiers:i,removeIdentifiers:a,scopes:l}=n,{source:c,value:u,key:p,index:h}=o,f={type:11,loc:t.loc,source:c,valueAlias:u,keyAlias:p,objectIndexAlias:h,parseResult:o,children:Re(e)?e.children:[e]};n.replaceNode(f),l.vFor++;const d=r&&r(f);return()=>{l.vFor--,d&&d()}}const pn=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,hn=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,fn=/^\(|\)$/g;function dn(e,t){const n=e.loc,r=e.content,o=r.match(pn);if(!o)return;const[,i,s]=o,a={source:mn(n,s.trim(),r.indexOf(s,i.length)),value:void 0,key:void 0,index:void 0};let l=i.trim().replace(fn,"").trim();const c=i.indexOf(l),u=l.match(hn);if(u){l=l.replace(hn,"").trim();const e=u[1].trim();let t;if(e&&(t=r.indexOf(e,c+l.length),a.key=mn(n,e,t)),u[2]){const o=u[2].trim();o&&(a.index=mn(n,o,r.indexOf(o,a.key?t+e.length:c+l.length)))}}return l&&(a.value=mn(n,l,c)),a}function mn(e,t,n){return ee(t,!1,Ce(e,n,t.length))}function gn({value:e,key:t,index:n},r=[]){return function(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map(((e,t)=>e||ee("_".repeat(t+1),!1)))}([e,t,n,...r])}const _n=ee("undefined",!1),yn=(e,t)=>{if(1===e.type&&(1===e.tagType||3===e.tagType)){const n=Te(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},bn=(e,t)=>{let n;if(Re(e)&&e.props.some(Ne)&&(n=Te(e,"for"))){const e=n.parseResult=dn(n.exp);if(e){const{value:n,key:r,index:o}=e,{addIdentifiers:i,removeIdentifiers:s}=t;return n&&i(n),r&&i(r),o&&i(o),()=>{n&&s(n),r&&s(r),o&&s(o)}}}},vn=(e,t,n)=>oe(e,t,!1,!0,t.length?t[0].loc:n);function kn(e,t,n=vn){t.helper(V);const{children:r,loc:o}=e,i=[],a=[];let l=t.scopes.vSlot>0||t.scopes.vFor>0;const c=Te(e,"slot",!0);if(c){const{arg:e,exp:t}=c;e&&!fe(e)&&(l=!0),i.push(Q(e||ee("default",!0),n(t,r,o)))}let u=!1,p=!1;const h=[],f=new Set;for(let e=0;e<r.length;e++){const o=r[e];let d;if(!Re(o)||!(d=Te(o,"slot",!0))){3!==o.type&&h.push(o);continue}if(c){t.onError(s(37,d.loc));break}u=!0;const{children:m,loc:g}=o,{arg:_=ee("default",!0),exp:y,loc:b}=d;let v;fe(_)?v=_?_.content:"default":l=!0;const k=n(y,m,g);let w,x,C;if(w=Te(o,"if"))l=!0,a.push(ie(w.exp,wn(_,k),_n));else if(x=Te(o,/^else(-if)?$/,!0)){let n,o=e;for(;o--&&(n=r[o],3===n.type););if(n&&Re(n)&&Te(n,"if")){r.splice(e,1),e--;let t=a[a.length-1];for(;19===t.alternate.type;)t=t.alternate;t.alternate=x.exp?ie(x.exp,wn(_,k),_n):wn(_,k)}else t.onError(s(30,x.loc))}else if(C=Te(o,"for")){l=!0;const e=C.parseResult||dn(C.exp);e?a.push(re(t.helper(S),[e.source,oe(gn(e),wn(_,k),!0)])):t.onError(s(32,C.loc))}else{if(v){if(f.has(v)){t.onError(s(38,b));continue}f.add(v),"default"===v&&(p=!0)}i.push(Q(_,k))}}if(!c){const e=(e,r)=>{const i=n(e,r,o);return t.compatConfig&&(i.isNonScopedSlot=!0),Q("default",i)};u?h.length&&h.some((e=>Cn(e)))&&(p?t.onError(s(39,h[0].loc)):i.push(e(void 0,h))):i.push(e(void 0,r))}const d=l?2:xn(e.children)?3:1;let m=X(i.concat(Q("_",ee(d+"",!1))),o);return a.length&&(m=re(t.helper(E),[m,W(a)])),{slots:m,hasDynamicSlots:l}}function wn(e,t){return X([Q("name",e),Q("fn",t)])}function xn(e){for(let t=0;t<e.length;t++){const n=e[t];switch(n.type){case 1:if(2===n.tagType||xn(n.children))return!0;break;case 9:if(xn(n.branches))return!0;break;case 10:case 11:if(xn(n.children))return!0}}return!1}function Cn(e){return 2!==e.type&&12!==e.type||(2===e.type?!!e.content.trim():Cn(e.content))}const Sn=new WeakMap,An=(e,t)=>function(){if(1!==(e=t.currentNode).type||0!==e.tagType&&1!==e.tagType)return;const{tag:n,props:o}=e,i=1===e.tagType;let s=i?En(e,t):`"${n}"`;const a=(0,r.isObject)(s)&&s.callee===k;let p,h,f,d,m,g,_=0,y=a||s===l||s===c||!i&&("svg"===n||"foreignObject"===n);if(o.length>0){const n=Tn(e,t,void 0,i,a);p=n.props,_=n.patchFlag,m=n.dynamicPropNames;const r=n.directives;g=r&&r.length?W(r.map((e=>Dn(e,t)))):void 0,n.shouldUseBlock&&(y=!0)}if(e.children.length>0)if(s===u&&(y=!0,_|=1024),i&&s!==l&&s!==u){const{slots:n,hasDynamicSlots:r}=kn(e,t);h=n,r&&(_|=1024)}else if(1===e.children.length&&s!==l){const n=e.children[0],r=n.type,o=5===r||8===r;o&&0===At(n,t)&&(_|=1),h=o||2===r?n:e.children}else h=e.children;0!==_&&(f=String(_),m&&m.length&&(d=function(e){let t="[";for(let n=0,r=e.length;n<r;n++)t+=JSON.stringify(e[n]),n<r-1&&(t+=", ");return t+"]"}(m))),e.codegenNode=J(t,s,p,h,f,d,g,!!y,!1,i,e.loc)};function En(e,t,n=!1){let{tag:r}=e;const o=zn(r),i=Oe(e,"is");if(i)if(o||Ze("COMPILER_IS_ON_ELEMENT",t)){const e=6===i.type?i.value&&ee(i.value.content,!0):i.exp;if(e)return re(t.helper(k),[e])}else 6===i.type&&i.value.content.startsWith("vue:")&&(r=i.value.content.slice(4));const s=!o&&Te(e,"is");if(s&&s.exp)return re(t.helper(k),[s.exp]);const a=me(r)||t.isBuiltInComponent(r);return a?(n||t.helper(a),a):(t.helper(v),t.components.add(r),Ve(r,"component"))}function Tn(e,t,n=e.props,o,i,a=!1){const{tag:l,loc:c,children:u}=e;let p=[];const h=[],f=[],d=u.length>0;let m=!1,g=0,_=!1,y=!1,b=!1,v=!1,k=!1,w=!1;const x=[],C=({key:e,value:n})=>{if(fe(e)){const s=e.content,a=(0,r.isOn)(s);if(!a||o&&!i||"onclick"===s.toLowerCase()||"onUpdate:modelValue"===s||(0,r.isReservedProp)(s)||(v=!0),a&&(0,r.isReservedProp)(s)&&(w=!0),20===n.type||(4===n.type||8===n.type)&&At(n,t)>0)return;"ref"===s?_=!0:"class"===s?y=!0:"style"===s?b=!0:"key"===s||x.includes(s)||x.push(s),!o||"class"!==s&&"style"!==s||x.includes(s)||x.push(s)}else k=!0};for(let i=0;i<n.length;i++){const u=n[i];if(6===u.type){const{loc:e,name:n,value:r}=u;let o=!0;if("ref"===n&&(_=!0,t.scopes.vFor>0&&p.push(Q(ee("ref_for",!0),ee("true")))),"is"===n&&(zn(l)||r&&r.content.startsWith("vue:")||Ze("COMPILER_IS_ON_ELEMENT",t)))continue;p.push(Q(ee(n,!0,Ce(e,0,n.length)),ee(r?r.content:"",o,r?r.loc:e)))}else{const{name:n,arg:i,exp:g,loc:_}=u,y="bind"===n,b="on"===n;if("slot"===n){o||t.onError(s(40,_));continue}if("once"===n||"memo"===n)continue;if("is"===n||y&&Me(i,"is")&&(zn(l)||Ze("COMPILER_IS_ON_ELEMENT",t)))continue;if(b&&a)continue;if((y&&Me(i,"key")||b&&d&&Me(i,"vue:before-update"))&&(m=!0),y&&Me(i,"ref")&&t.scopes.vFor>0&&p.push(Q(ee("ref_for",!0),ee("true"))),!i&&(y||b)){if(k=!0,g)if(p.length&&(h.push(X(On(p),c)),p=[]),y){if(Ze("COMPILER_V_BIND_OBJECT_ORDER",t)){h.unshift(g);continue}h.push(g)}else h.push({type:14,loc:_,callee:t.helper(R),arguments:[g]});else t.onError(s(y?34:35,_));continue}const v=t.directiveTransforms[n];if(v){const{props:n,needRuntime:o}=v(u,e,t);!a&&n.forEach(C),p.push(...n),o&&(f.push(u),(0,r.isSymbol)(o)&&Sn.set(u,o))}else(0,r.isBuiltInDirective)(n)||(f.push(u),d&&(m=!0))}}let S;if(h.length?(p.length&&h.push(X(On(p),c)),S=h.length>1?re(t.helper(O),h,c):h[0]):p.length&&(S=X(On(p),c)),k?g|=16:(y&&!o&&(g|=2),b&&!o&&(g|=4),x.length&&(g|=8),v&&(g|=32)),m||0!==g&&32!==g||!(_||w||f.length>0)||(g|=512),!t.inSSR&&S)switch(S.type){case 15:let e=-1,n=-1,r=!1;for(let t=0;t<S.properties.length;t++){const o=S.properties[t].key;fe(o)?"class"===o.content?e=t:"style"===o.content&&(n=t):o.isHandlerKey||(r=!0)}const o=S.properties[e],i=S.properties[n];r?S=re(t.helper(z),[S]):(o&&!fe(o.value)&&(o.value=re(t.helper(M),[o.value])),i&&(b||4===i.value.type&&"["===i.value.content.trim()[0]||17===i.value.type)&&(i.value=re(t.helper(D),[i.value])));break;case 14:break;default:S=re(t.helper(z),[re(t.helper(N),[S])])}return{props:S,directives:f,patchFlag:g,dynamicPropNames:x,shouldUseBlock:m}}function On(e){const t=new Map,n=[];for(let o=0;o<e.length;o++){const i=e[o];if(8===i.key.type||!i.key.isStatic){n.push(i);continue}const s=i.key.content,a=t.get(s);a?("style"===s||"class"===s||(0,r.isOn)(s))&&Mn(a,i):(t.set(s,i),n.push(i))}return n}function Mn(e,t){17===e.value.type?e.value.elements.push(t.value):e.value=W([e.value,t.value],e.loc)}function Dn(e,t){const n=[],r=Sn.get(e);r?n.push(t.helperString(r)):(t.helper(w),t.directives.add(e.name),n.push(Ve(e.name,"directive")));const{loc:o}=e;if(e.exp&&n.push(e.exp),e.arg&&(e.exp||n.push("void 0"),n.push(e.arg)),Object.keys(e.modifiers).length){e.arg||(e.exp||n.push("void 0"),n.push("void 0"));const t=ee("true",!1,o);n.push(X(e.modifiers.map((e=>Q(e,t))),o))}return W(n,e.loc)}function zn(e){return"component"===e||"Component"===e}const Nn=/-(\w)/g,Rn=(e=>{const t=Object.create(null);return e=>t[e]||(t[e]=(e=>e.replace(Nn,((e,t)=>t?t.toUpperCase():"")))(e))})(),Ln=(e,t)=>{if(Le(e)){const{children:n,loc:r}=e,{slotName:o,slotProps:i}=Fn(e,t),s=[t.prefixIdentifiers?"_ctx.$slots":"$slots",o,"{}","undefined","true"];let a=2;i&&(s[2]=i,a=3),n.length&&(s[3]=oe([],n,!1,!1,r),a=4),t.scopeId&&!t.slotted&&(a=5),s.splice(a),e.codegenNode=re(t.helper(A),s,r)}};function Fn(e,t){let n,r='"default"';const o=[];for(let t=0;t<e.props.length;t++){const n=e.props[t];6===n.type?n.value&&("name"===n.name?r=JSON.stringify(n.value.content):(n.name=Rn(n.name),o.push(n))):"bind"===n.name&&Me(n.arg,"name")?n.exp&&(r=n.exp):("bind"===n.name&&n.arg&&fe(n.arg)&&(n.arg.content=Rn(n.arg.content)),o.push(n))}if(o.length>0){const{props:r,directives:i}=Tn(e,t,o,!1,!1);n=r,i.length&&t.onError(s(36,i[0].loc))}return{slotName:r,slotProps:n}}const Pn=/^\s*([\w$_]+|(async\s*)?\([^)]*?\))\s*=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,In=(e,t,n,o)=>{const{loc:i,modifiers:a,arg:l}=e;let c;if(e.exp||a.length||n.onError(s(35,i)),4===l.type)if(l.isStatic){let e=l.content;e.startsWith("vue:")&&(e=`vnode-${e.slice(4)}`),c=ee((0,r.toHandlerKey)((0,r.camelize)(e)),!0,l.loc)}else c=ne([`${n.helperString(P)}(`,l,")"]);else c=l,c.children.unshift(`${n.helperString(P)}(`),c.children.push(")");let u=e.exp;u&&!u.content.trim()&&(u=void 0);let p=n.cacheHandlers&&!u&&!n.inVOnce;if(u){const e=xe(u.content),t=!(e||Pn.test(u.content)),n=u.content.includes(";");(t||p&&e)&&(u=ne([`${t?"$event":"(...args)"} => ${n?"{":"("}`,u,n?"}":")"]))}let h={props:[Q(c,u||ee("() => {}",!1,i))]};return o&&(h=o(h)),p&&(h.props[0].value=n.cache(h.props[0].value)),h.props.forEach((e=>e.key.isHandlerKey=!0)),h},qn=(e,t,n)=>{const{exp:o,modifiers:i,loc:a}=e,l=e.arg;return 4!==l.type?(l.children.unshift("("),l.children.push(') || ""')):l.isStatic||(l.content=`${l.content} || ""`),i.includes("camel")&&(4===l.type?l.isStatic?l.content=(0,r.camelize)(l.content):l.content=`${n.helperString(L)}(${l.content})`:(l.children.unshift(`${n.helperString(L)}(`),l.children.push(")"))),n.inSSR||(i.includes("prop")&&Bn(l,"."),i.includes("attr")&&Bn(l,"^")),!o||4===o.type&&!o.content.trim()?(n.onError(s(34,a)),{props:[Q(l,ee("",!0,a))]}):{props:[Q(l,o)]}},Bn=(e,t)=>{4===e.type?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},Vn=(e,t)=>{if(0===e.type||1===e.type||11===e.type||10===e.type)return()=>{const n=e.children;let r,o=!1;for(let e=0;e<n.length;e++){const t=n[e];if(ze(t)){o=!0;for(let o=e+1;o<n.length;o++){const i=n[o];if(!ze(i)){r=void 0;break}r||(r=n[e]=ne([t],t.loc)),r.children.push(" + ",i),n.splice(o,1),o--}}}if(o&&(1!==n.length||0!==e.type&&(1!==e.type||0!==e.tagType||e.props.find((e=>7===e.type&&!t.directiveTransforms[e.name]))||"template"===e.tag)))for(let e=0;e<n.length;e++){const r=n[e];if(ze(r)||8===r.type){const o=[];2===r.type&&" "===r.content||o.push(r),t.ssr||0!==At(r,t)||o.push("1"),n[e]={type:12,content:r,loc:r.loc,codegenNode:re(t.helper(y),o)}}}}},jn=new WeakSet,$n=(e,t)=>{if(1===e.type&&Te(e,"once",!0)){if(jn.has(e)||t.inVOnce)return;return jn.add(e),t.inVOnce=!0,t.helper(I),()=>{t.inVOnce=!1;const e=t.currentNode;e.codegenNode&&(e.codegenNode=t.cache(e.codegenNode,!0))}}},Un=(e,t,n)=>{const{exp:r,arg:o}=e;if(!r)return n.onError(s(41,e.loc)),Hn();const i=r.loc.source,a=4===r.type?r.content:i;if(n.bindingMetadata[i],!a.trim()||!xe(a))return n.onError(s(42,r.loc)),Hn();const l=o||ee("modelValue",!0),c=o?fe(o)?`onUpdate:${o.content}`:ne(['"onUpdate:" + ',o]):"onUpdate:modelValue";let u;u=ne([(n.isTS?"($event: any)":"$event")+" => ((",r,") = $event)"]);const p=[Q(l,e.exp),Q(c,u)];if(e.modifiers.length&&1===t.tagType){const t=e.modifiers.map((e=