vue-next
Version:
## Status: Pre-Alpha.
2 lines • 74.2 kB
JavaScript
const e={TEXT:1,CLASS:2,STYLE:4,PROPS:8,NEED_PATCH:32,FULL_PROPS:16,KEYED_FRAGMENT:64,UNKEYED_FRAGMENT:128,DYNAMIC_SLOTS:256,BAIL:-1},n={1:"TEXT",2:"CLASS",4:"STYLE",8:"PROPS",32:"NEED_PATCH",16:"FULL_PROPS",64:"KEYED_FRAGMENT",128:"UNKEYED_FRAGMENT",256:"DYNAMIC_SLOTS",[-1]:"BAIL"};function t(e,n){const t=Object.create(null),o=e.split(",");for(let e=0;e<o.length;e++)t[o[e]]=!0;return n?e=>!!t[e.toLowerCase()]:e=>!!t[e]}const o=t("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl"),r={},l=[],s=()=>{},c=()=>!1,i=e=>"o"===e[0]&&"n"===e[1],u=(e,n)=>{for(const t in n)e[t]=n[t];return e},a=Object.prototype.hasOwnProperty,f=(e,n)=>a.call(e,n),p=Array.isArray,d=e=>"function"==typeof e,h=e=>"string"==typeof e,g=e=>"symbol"==typeof e,m=e=>null!==e&&"object"==typeof e;function y(e){return m(e)&&d(e.then)&&d(e.catch)}const v=Object.prototype.toString,b=e=>v.call(e);const x=e=>"[object Object]"===b(e),S=e=>"key"===e||"ref"===e||e.startsWith("onVnode"),k=/-(\w)/g,T=e=>e.replace(k,(e,n)=>n?n.toUpperCase():""),N=/\B([A-Z])/g,w=e=>e.replace(N,"-$1").toLowerCase(),C=e=>e.charAt(0).toUpperCase()+e.slice(1),E=(e,n)=>e!==n&&(e==e||n==n);function R(e){throw e}function $(e,n,t){const o=e,r=n?` (${n.start.line}:${n.start.column})`:"",l=new SyntaxError(o+r);return l.code=e,l.loc=n,l}const M={source:"",start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0}};function P(e,n=M){return{type:16,loc:n,elements:e}}function O(e,n=M){return{type:14,loc:n,properties:e}}function _(e,n){return{type:15,loc:M,key:h(e)?A(e,!0):e,value:n}}function A(e,n,t=M,o=!1){return{type:4,loc:t,isConstant:o,content:e,isStatic:n}}function L(e,n=M){return{type:8,loc:n,children:e}}function F(e,n=[],t=M){return{type:13,loc:t,callee:e,arguments:n}}function V(e,n,t=!1,o=M){return{type:17,params:e,returns:n,newline:t,loc:o}}function U(e){return{type:18,expressions:e,loc:M}}function I(e,n,t){return{type:19,test:e,consequent:n,alternate:t,loc:M}}const D=Symbol(""),j=Symbol(""),W=Symbol(""),B=Symbol(""),z=Symbol(""),H=Symbol(""),K=Symbol(""),J=Symbol(""),G=Symbol(""),Y=Symbol(""),q=Symbol(""),X=Symbol(""),Z=Symbol(""),Q=Symbol(""),ee=Symbol(""),ne=Symbol(""),te=Symbol(""),oe=Symbol(""),re=Symbol(""),le=Symbol(""),se={[D]:"Fragment",[j]:"Portal",[W]:"Suspense",[B]:"openBlock",[z]:"createBlock",[H]:"createVNode",[K]:"createCommentVNode",[J]:"createTextVNode",[G]:"resolveComponent",[Y]:"resolveDynamicComponent",[q]:"resolveDirective",[X]:"withDirectives",[Z]:"renderList",[Q]:"renderSlot",[ee]:"createSlots",[ne]:"toString",[te]:"mergeProps",[oe]:"toHandlers",[re]:"camelize",[le]:"setBlockTracking"};const ce=/^\d|[^\$\w]/,ie=e=>!ce.test(e),ue=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\[[^\]]+\])*$/,ae=e=>ue.test(e);function fe(e,n,t){const o={source:e.source.substr(n,t),start:pe(e.start,e.source,n),end:e.end};return null!=t&&(o.end=pe(e.start,e.source,n+t)),o}function pe(e,n,t=n.length){return de({...e},n,t)}function de(e,n,t=n.length){let o=0,r=-1;for(let e=0;e<t;e++)10===n.charCodeAt(e)&&(o++,r=e);return e.offset+=t,e.line+=o,e.column=-1===r?e.column+t:Math.max(1,t-r),e}function he(e,n,t=!1){for(let o=0;o<e.props.length;o++){const r=e.props[o];if(7===r.type&&(t||r.exp)&&(h(n)?r.name===n:n.test(r.name)))return r}}function ge(e,n,t=!1){for(let o=0;o<e.props.length;o++){const r=e.props[o];if(6===r.type){if(t)continue;if(r.name===n&&r.value)return r}else if("bind"===r.name&&r.arg&&4===r.arg.type&&r.arg.isStatic&&r.arg.content===n&&r.exp)return r}}function me(e,n){return U([F(n.helper(B)),e])}const ye=e=>7===e.type&&"slot"===e.name,ve=e=>1===e.type&&3===e.tagType,be=e=>1===e.type&&2===e.tagType;function xe(e,n,t){let o;const r=e.callee===Q?e.arguments[2]:e.arguments[1];if(null==r||h(r))o=O([n]);else if(13===r.type){const e=r.arguments[0];h(e)||14!==e.type?r.arguments.unshift(O([n])):e.properties.unshift(n),o=r}else 14===r.type?(r.properties.unshift(n),o=r):o=F(t.helper(te),[O([n]),r]);e.callee===Q?e.arguments[2]=o:e.arguments[1]=o}function Se(e,n){return`_${n}_${e.replace(/[^\w]/g,"_")}`}const ke={delimiters:["{{","}}"],getNamespace:()=>0,getTextMode:()=>0,isVoidTag:c,isPreTag:c,isCustomElement:c,namedCharacterReferences:{"gt;":">","lt;":"<","amp;":"&","apos;":"'","quot;":'"'},onError:R};function Te(e,n={}){const t=function(e,n){return{options:{...ke,...n},column:1,line:1,offset:0,originalSource:e,source:e,maxCRNameLength:Object.keys(n.namedCharacterReferences||ke.namedCharacterReferences).reduce((e,n)=>Math.max(e,n.length),0),inPre:!1}}(e,n),o=Fe(t);return{type:0,children:Ne(t,0,[]),helpers:[],components:[],directives:[],hoists:[],cached:0,codegenNode:void 0,loc:Ve(t,o)}}function Ne(e,n,t){const o=Ue(t),r=o?o.ns:0,l=[];for(;!ze(e,n,t);){const s=e.source;let c=void 0;if(!e.inPre&&Ie(s,e.options.delimiters[0]))c=_e(e,n);else if(0===n&&"<"===s[0])if(1===s.length)Be(e,8,1);else if("!"===s[1])Ie(s,"\x3c!--")?c=Ee(e):Ie(s,"<!DOCTYPE")?c=Re(e):Ie(s,"<![CDATA[")?0!==r?c=Ce(e,t):(Be(e,2),c=Re(e)):(Be(e,14),c=Re(e));else if("/"===s[1])if(2===s.length)Be(e,8,2);else{if(">"===s[2]){Be(e,17,2),De(e,3);continue}if(/[a-z]/i.test(s[2])){Be(e,31),Me(e,1,o);continue}Be(e,15,2),c=Re(e)}else/[a-z]/i.test(s[1])?c=$e(e,t):"?"===s[1]?(Be(e,28,1),c=Re(e)):Be(e,15,1);if(c||(c=Ae(e,n)),Array.isArray(c))for(let e=0;e<c.length;e++)we(l,c[e]);else we(l,c)}let s=!1;if(!o||!e.options.isPreTag(o.tag))for(let e=0;e<l.length;e++){const n=l[e];if(2===n.type)if(n.content.trim())n.content=n.content.replace(/\s+/g," ");else{const t=l[e-1],o=l[e+1];!t||!o||3===t.type||3===o.type||1===t.type&&1===o.type&&/[\r\n]/.test(n.content)?(s=!0,l[e]=null):n.content=" "}}return s?l.filter(e=>null!==e):l}function we(e,n){if(3!==n.type){if(2===n.type){const t=Ue(e);if(t&&2===t.type&&t.loc.end.offset===n.loc.start.offset)return t.content+=n.content,t.loc.end=n.loc.end,void(t.loc.source+=n.loc.source)}e.push(n)}}function Ce(e,n){De(e,9);const t=Ne(e,3,n);return 0===e.source.length?Be(e,9):De(e,3),t}function Ee(e){const n=Fe(e);let t;const o=/--(\!)?>/.exec(e.source);if(o){o.index<=3&&Be(e,0),o[1]&&Be(e,13),t=e.source.slice(4,o.index);const n=e.source.slice(0,o.index);let r=1,l=0;for(;-1!==(l=n.indexOf("\x3c!--",r));)De(e,l-r+1),l+4<n.length&&Be(e,20),r=l+1;De(e,o.index+o[0].length-r+1)}else t=e.source.slice(4),De(e,e.source.length),Be(e,10);return{type:3,content:t,loc:Ve(e,n)}}function Re(e){const n=Fe(e),t="?"===e.source[1]?1:2;let o;const r=e.source.indexOf(">");return-1===r?(o=e.source.slice(t),De(e,e.source.length)):(o=e.source.slice(t,r),De(e,r+1)),{type:3,content:o,loc:Ve(e,n)}}function $e(e,n){const t=e.inPre,o=Ue(n),r=Me(e,0,o),l=e.inPre&&!t;if(r.isSelfClosing||e.options.isVoidTag(r.tag))return r;n.push(r);const s=e.options.getTextMode(r.tag,r.ns),c=Ne(e,s,n);if(n.pop(),r.children=c,He(e.source,r.tag))Me(e,1,o);else if(Be(e,32),0===e.source.length&&"script"===r.tag.toLowerCase()){const n=c[0];n&&Ie(n.loc.source,"\x3c!--")&&Be(e,11)}return r.loc=Ve(e,r.loc.start),l&&(e.inPre=!1),r}function Me(e,n,t){const o=Fe(e),r=/^<\/?([a-z][^\t\r\n\f />]*)/i.exec(e.source),l=r[1],s=e.options.getNamespace(l,t);De(e,r[0].length),je(e);const c=Fe(e),i=e.source;let a=Pe(e,n);!e.inPre&&a.some(e=>7===e.type&&"pre"===e.name)&&(e.inPre=!0,u(e,c),e.source=i,a=Pe(e,n).filter(e=>"v-pre"!==e.name));let f=!1;0===e.source.length?Be(e,12):(f=Ie(e.source,"/>"),1===n&&f&&Be(e,7),De(e,f?2:1));let p=0;return e.inPre||e.options.isCustomElement(l)||(e.options.isNativeTag?e.options.isNativeTag(l)||(p=1):/^[A-Z]/.test(l)&&(p=1),"slot"===l?p=2:"template"===l?p=3:"portal"===l||"Portal"===l?p=4:"suspense"!==l&&"Suspense"!==l||(p=5)),{type:1,ns:s,tag:l,tagType:p,props:a,isSelfClosing:f,children:[],loc:Ve(e,o),codegenNode:void 0}}function Pe(e,n){const t=[],o=new Set;for(;e.source.length>0&&!Ie(e.source,">")&&!Ie(e.source,"/>");){if(Ie(e.source,"/")){Be(e,29),De(e,1),je(e);continue}1===n&&Be(e,6);const r=Oe(e,o);0===n&&t.push(r),/^[^\t\r\n\f />]/.test(e.source)&&Be(e,19),je(e)}return t}function Oe(e,n){const t=Fe(e),o=/^[^\t\r\n\f />][^\t\r\n\f />=]*/.exec(e.source)[0];n.has(o)&&Be(e,5),n.add(o),"="===o[0]&&Be(e,26);{const n=/["'<]/g;let t;for(;null!==(t=n.exec(o));)Be(e,24,t.index)}De(e,o.length);let r=void 0;/^[\t\r\n\f ]*=/.test(e.source)&&(je(e),De(e,1),je(e),(r=function(e){const n=Fe(e);let t;const o=e.source[0],r='"'===o||"'"===o;if(r){De(e,1);const n=e.source.indexOf(o);-1===n?t=Le(e,e.source.length,4):(t=Le(e,n,4),De(e,1))}else{const n=/^[^\t\r\n\f >]+/.exec(e.source);if(!n)return;let o,r=/["'<=`]/g;for(;null!==(o=r.exec(n[0]));)Be(e,25,o.index);t=Le(e,n[0].length,4)}return{content:t,isQuoted:r,loc:Ve(e,n)}}(e))||Be(e,16));const l=Ve(e,t);if(!e.inPre&&/^(v-|:|@|#)/.test(o)){const n=/(?:^v-([a-z0-9-]+))?(?:(?::|^@|^#)([^\.]+))?(.+)?$/i.exec(o);let s;if(n[2]){const r=o.split(n[2],2).shift().length,l=Ve(e,We(e,t,r),We(e,t,r+n[2].length));let c=n[2],i=!0;c.startsWith("[")&&(i=!1,c.endsWith("]")||Be(e,34),c=c.substr(1,c.length-2)),s={type:4,content:c,isStatic:i,isConstant:i,loc:l}}if(r&&r.isQuoted){const e=r.loc;e.start.offset++,e.start.column++,e.end=pe(e.start,r.content),e.source=e.source.slice(1,-1)}return{type:7,name:n[1]||(Ie(o,":")?"bind":Ie(o,"@")?"on":"slot"),exp:r&&{type:4,content:r.content,isStatic:!1,isConstant:!1,loc:r.loc},arg:s,modifiers:n[3]?n[3].substr(1).split("."):[],loc:l}}return{type:6,name:o,value:r&&{type:2,content:r.content,loc:r.loc},loc:l}}function _e(e,n){const[t,o]=e.options.delimiters,r=e.source.indexOf(o,t.length);if(-1===r)return void Be(e,33);const l=Fe(e);De(e,t.length);const s=Fe(e),c=Fe(e),i=r-t.length,u=e.source.slice(0,i),a=Le(e,i,n),f=a.trim(),p=a.indexOf(f);return p>0&&de(s,u,p),de(c,u,i-(a.length-f.length-p)),De(e,o.length),{type:5,content:{type:4,isStatic:!1,isConstant:!1,content:f,loc:Ve(e,s,c)},loc:Ve(e,l)}}function Ae(e,n){const[t]=e.options.delimiters,o=Math.min(...[e.source.indexOf("<",1),e.source.indexOf(t,1),3===n?e.source.indexOf("]]>"):-1,e.source.length].filter(e=>-1!==e)),r=Fe(e);return{type:2,content:Le(e,o,n),loc:Ve(e,r)}}function Le(e,n,t){if(2===t||3===t){const t=e.source.slice(0,n);return De(e,n),t}const o=e.offset+n;let r="";for(;e.offset<o;){const n=/&(?:#x?)?/i.exec(e.source);if(!n||e.offset+n.index>=o){const n=o-e.offset;r+=e.source.slice(0,n),De(e,n);break}if(r+=e.source.slice(0,n.index),De(e,n.index),"&"===n[0]){let n="",o=void 0;if(/[0-9a-z]/i.test(e.source[1])){for(let t=e.maxCRNameLength;!o&&t>0;--t)n=e.source.substr(1,t),o=e.options.namedCharacterReferences[n];if(o){const l=n.endsWith(";");4===t&&!l&&/[=a-z0-9]/i.test(e.source[1+n.length]||"")?(r+="&",r+=n,De(e,1+n.length)):(r+=o,De(e,1+n.length),l||Be(e,18))}else Be(e,30),r+="&",r+=n,De(e,1+n.length)}else r+="&",De(e,1)}else{const t="&#x"===n[0],o=(t?/^&#x([0-9a-f]+);?/i:/^&#([0-9]+);?/).exec(e.source);if(o){let n=Number.parseInt(o[1],t?16:10);0===n?(Be(e,22),n=65533):n>1114111?(Be(e,3),n=65533):n>=55296&&n<=57343?(Be(e,23),n=65533):n>=64976&&n<=65007||65534==(65534&n)?Be(e,21):(n>=1&&n<=8||11===n||n>=13&&n<=31||n>=127&&n<=159)&&(Be(e,4),n=Ke[n]||n),r+=String.fromCodePoint(n),De(e,o[0].length),o[0].endsWith(";")||Be(e,18)}else r+=n[0],Be(e,1),De(e,n[0].length)}}return r}function Fe(e){const{column:n,line:t,offset:o}=e;return{column:n,line:t,offset:o}}function Ve(e,n,t){return{start:n,end:t=t||Fe(e),source:e.originalSource.slice(n.offset,t.offset)}}function Ue(e){return e[e.length-1]}function Ie(e,n){return e.startsWith(n)}function De(e,n){const{source:t}=e;de(e,t,n),e.source=t.slice(n)}function je(e){const n=/^[\t\r\n\f ]+/.exec(e.source);n&&De(e,n[0].length)}function We(e,n,t){return pe(n,e.originalSource.slice(n.offset,t),t)}function Be(e,n,t){const o=Fe(e);t&&(o.offset+=t,o.column+=t),e.options.onError($(n,{start:o,end:o,source:""}))}function ze(e,n,t){const o=e.source;switch(n){case 0:if(Ie(o,"</"))for(let e=t.length-1;e>=0;--e)if(He(o,t[e].tag))return!0;break;case 1:case 2:{const e=Ue(t);if(e&&He(o,e.tag))return!0;break}case 3:if(Ie(o,"]]>"))return!0}return!o}function He(e,n){return Ie(e,"</")&&e.substr(2,n.length).toLowerCase()===n.toLowerCase()&&/[\t\n\f />]/.test(e[2+n.length]||">")}const Ke={128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376};function Je(e,n){!function e(n,t,o,r=!1){for(let l=0;l<n.length;l++){const s=n[l];if(1===s.type&&0===s.tagType){if(!r&&Ye(s,o)){s.codegenNode=t.hoist(s.codegenNode);continue}{const e=s.codegenNode;if(13===e.type){const n=nn(e);if(!(n&&32!==n&&1!==n||qe(s)||Xe())){const n=Ze(s);n&&"null"!==n&&(en(e).arguments[1]=t.hoist(n))}}}}if(1===s.type)e(s.children,t,o);else if(11===s.type)e(s.children,t,o,1===s.children.length);else if(9===s.type)for(let n=0;n<s.branches.length;n++){const r=s.branches[n].children;e(r,t,o,1===r.length)}}}(e.children,n,new Map,Ge(e,e.children[0]))}function Ge(e,n){const{children:t}=e;return 1===t.length&&1===n.type&&!be(n)}function Ye(e,n=new Map){switch(e.type){case 1:if(0!==e.tagType)return!1;const t=n.get(e);if(void 0!==t)return t;const o=e.codegenNode;if(13!==o.type)return!1;if(nn(o)||qe(e)||Xe())return n.set(e,!1),!1;for(let t=0;t<e.children.length;t++)if(!Ye(e.children[t],n))return n.set(e,!1),!1;return n.set(e,!0),!0;case 2:case 3:return!0;case 9:case 11:return!1;case 5:case 12:return Ye(e.content,n);case 4:return e.isConstant;case 8:return e.children.every(e=>h(e)||g(e)||Ye(e,n));default:return!1}}function qe(e){return!(!ge(e,"key",!0)&&!ge(e,"ref",!0))}function Xe(e){return!1}function Ze(e){const n=e.codegenNode;if(13===n.type)return Qe(n,1)}function Qe(e,n){return en(e).arguments[n]}function en(e){return e.callee===X?e.arguments[0]:e}function nn(e){const n=Qe(e,3);return n?parseInt(n,10):void 0}function tn(e,{prefixIdentifiers:n=!1,hoistStatic:t=!1,cacheHandlers:o=!1,nodeTransforms:r=[],directiveTransforms:l={},onError:s=R}){const c={root:e,helpers:new Set,components:new Set,directives:new Set,hoists:[],cached:0,identifiers:{},scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},prefixIdentifiers:n,hoistStatic:t,cacheHandlers:o,nodeTransforms:r,directiveTransforms:l,onError:s,parent:null,currentNode:e,childIndex:0,helper:e=>(c.helpers.add(e),e),helperString:e=>(c.prefixIdentifiers?"":"_")+se[c.helper(e)],replaceNode(e){c.parent.children[c.childIndex]=c.currentNode=e},removeNode(e){const n=c.parent.children,t=e?n.indexOf(e):c.currentNode?c.childIndex:-1;e&&e!==c.currentNode?c.childIndex>t&&(c.childIndex--,c.onNodeRemoved()):(c.currentNode=null,c.onNodeRemoved()),c.parent.children.splice(t,1)},onNodeRemoved:()=>{},addIdentifiers(e){},removeIdentifiers(e){},hoist:e=>(c.hoists.push(e),A(`_hoisted_${c.hoists.length}`,!1,e.loc,!0)),cache:(e,n=!1)=>(function(e,n,t=!1){return{type:20,index:e,value:n,isVNode:t,loc:M}})(++c.cached,e,n)};return c}function on(e,n){const t=tn(e,n);ln(e,t),n.hoistStatic&&Je(e,t),function(e,n){const{helper:t}=n,{children:o}=e,r=o[0];if(1===o.length)if(Ge(e,r)&&r.codegenNode){const o=r.codegenNode;20!==o.type?(o.callee===X?o.arguments[0].callee=t(z):o.callee=t(z),e.codegenNode=me(o,n)):e.codegenNode=o}else e.codegenNode=r;else o.length>1&&(e.codegenNode=me(F(t(z),[t(D),"null",e.children]),n));e.helpers=[...n.helpers],e.components=[...n.components],e.directives=[...n.directives],e.hoists=n.hoists,e.cached=n.cached}(e,t)}function rn(e,n){let t=0;const o=()=>{t--};for(;t<e.children.length;t++){const r=e.children[t];h(r)||(n.currentNode=r,n.parent=e,n.childIndex=t,n.onNodeRemoved=o,ln(r,n))}}function ln(e,n){const{nodeTransforms:t}=n,o=[];for(let r=0;r<t.length;r++){const l=t[r](e,n);if(l&&(p(l)?o.push(...l):o.push(l)),!n.currentNode)return;e=n.currentNode}switch(e.type){case 3:n.helper(K);break;case 5:n.helper(ne);break;case 9:for(let t=0;t<e.branches.length;t++)rn(e.branches[t],n);break;case 11:case 1:case 0:rn(e,n)}let r=o.length;for(;r--;)o[r]()}function sn(e,n){const t=h(e)?n=>n===e:n=>e.test(n);return(e,o)=>{if(1===e.type){const{props:r}=e;if(3===e.tagType&&r.some(ye))return;const l=[];for(let s=0;s<r.length;s++){const c=r[s];if(7===c.type&&t(c.name)){r.splice(s,1),s--;const t=n(e,c,o);t&&l.push(t)}}return l}}}function cn(e,n={}){const t=function(e,{mode:n="function",prefixIdentifiers:t="module"===n,sourceMap:o=!1,filename:r="template.vue.html"}){const l={mode:n,prefixIdentifiers:t,sourceMap:o,filename:r,source:e.loc.source,code:"",column:1,line:1,offset:0,indentLevel:0,map:void 0,helper(e){const n=se[e];return t?n:`_${n}`},push(e,n,t){l.code+=e},resetMapping(e){},indent(){s(++l.indentLevel)},deindent(e=!1){e?--l.indentLevel:s(--l.indentLevel)},newline(){s(l.indentLevel)}};function s(e){l.push("\n"+" ".repeat(e))}return l}(e,n),{mode:o,push:r,helper:l,prefixIdentifiers:s,indent:c,deindent:i,newline:u}=t,a=e.helpers.length>0,f=!s&&"module"!==o;return"function"===o?(a&&(s?r(`const { ${e.helpers.map(l).join(", ")} } = Vue\n`):(r("const _Vue = Vue\n"),e.hoists.length&&(r(`const _${se[H]} = Vue.${se[H]}\n`),e.helpers.includes(K)&&r(`const _${se[K]} = Vue.${se[K]}\n`)))),an(e.hoists,t),u(),r("return ")):(a&&r(`import { ${e.helpers.map(l).join(", ")} } from "vue"\n`),an(e.hoists,t),u(),r("export default ")),r("function render() {"),c(),f?(r("with (this) {"),c(),a&&(r(`const { ${e.helpers.map(e=>`${se[e]}: _${se[e]}`).join(", ")} } = _Vue`),u(),e.cached>0&&(r("const _cache = $cache"),u()),u())):(r("const _ctx = this"),e.cached>0&&(u(),r("const _cache = _ctx.$cache")),u()),e.components.length&&un(e.components,"component",t),e.directives.length&&un(e.directives,"directive",t),(e.components.length||e.directives.length)&&u(),r("return "),e.codegenNode?dn(e.codegenNode,t):r("null"),f&&(i(),r("}")),i(),r("}"),{ast:e,code:t.code,map:t.map?t.map.toJSON():void 0}}function un(e,n,t){const o=t.helper("component"===n?G:q);for(let r=0;r<e.length;r++){const l=e[r];t.push(`const ${Se(l,n)} = ${o}(${JSON.stringify(l)})`),t.newline()}}function an(e,n){e.length&&(n.newline(),e.forEach((e,t)=>{n.push(`const _hoisted_${t+1} = `),dn(e,n),n.newline()}))}function fn(e,n){const t=e.length>3||!1;n.push("["),t&&n.indent(),pn(e,n,t),t&&n.deindent(),n.push("]")}function pn(e,n,t=!1){const{push:o,newline:r}=n;for(let l=0;l<e.length;l++){const s=e[l];h(s)?o(s):p(s)?fn(s,n):dn(s,n),l<e.length-1&&(t?(o(","),r()):o(", "))}}function dn(e,n){if(h(e))n.push(e);else if(g(e))n.push(n.helper(e));else switch(e.type){case 1:case 9:case 11:dn(e.codegenNode,n);break;case 2:!function(e,n){n.push(JSON.stringify(e.content),e)}(e,n);break;case 4:hn(e,n);break;case 5:!function(e,n){const{push:t,helper:o}=n;t(`${o(ne)}(`),dn(e.content,n),t(")")}(e,n);break;case 12:dn(e.codegenNode,n);break;case 8:gn(e,n);break;case 3:break;case 13:!function(e,n){const t=h(e.callee)?e.callee:n.helper(e.callee);n.push(t+"(",e,!0),pn(e.arguments,n),n.push(")")}(e,n);break;case 14:!function(e,n){const{push:t,indent:o,deindent:r,newline:l,resetMapping:s}=n,{properties:c}=e;if(!c.length)return void t("{}",e);const i=c.length>1||!1;t(i?"{":"{ "),i&&o();for(let e=0;e<c.length;e++){const{key:o,value:r,loc:i}=c[e];s(i),mn(o,n),t(": "),dn(r,n),e<c.length-1&&(t(","),l())}i&&r();const u=n.code[n.code.length-1];t(i||/[\])}]/.test(u)?"}":" }")}(e,n);break;case 16:!function(e,n){fn(e.elements,n)}(e,n);break;case 17:!function(e,n){const{push:t,indent:o,deindent:r}=n,{params:l,returns:s,newline:c}=e;t("(",e),p(l)?pn(l,n):l&&dn(l,n);t(") => "),c&&(t("{"),o(),t("return "));p(s)?fn(s,n):dn(s,n);c&&(r(),t("}"))}(e,n);break;case 18:!function(e,n){n.push("("),pn(e.expressions,n),n.push(")")}(e,n);break;case 19:!function(e,n){const{test:t,consequent:o,alternate:r}=e,{push:l,indent:s,deindent:c,newline:i}=n;if(4===t.type){const e=!ie(t.content);e&&l("("),hn(t,n),e&&l(")")}else l("("),gn(t,n),l(")");s(),n.indentLevel++,l("? "),dn(o,n),n.indentLevel--,i(),l(": ");const u=19===r.type;u||n.indentLevel++;dn(r,n),u||n.indentLevel--;c(!0)}(e,n);break;case 20:!function(e,n){const{push:t,helper:o,indent:r,deindent:l,newline:s}=n;t(`_cache[${e.index}] || (`),e.isVNode&&(r(),t(`${o(le)}(-1),`),s());t(`_cache[${e.index}] = `),dn(e.value,n),e.isVNode&&(t(","),s(),t(`${o(le)}(1),`),s(),t(`_cache[${e.index}]`),l());t(")")}(e,n)}}function hn(e,n){const{content:t,isStatic:o}=e;n.push(o?JSON.stringify(t):t,e)}function gn(e,n){for(let t=0;t<e.children.length;t++){const o=e.children[t];h(o)?n.push(o):dn(o,n)}}function mn(e,n){const{push:t}=n;if(8===e.type)t("["),gn(e,n),t("]");else if(e.isStatic){t(ie(e.content)?e.content:JSON.stringify(e.content),e)}else t(`[${e.content}]`,e)}const yn=sn(/^(if|else|else-if)$/,(e,n,t)=>{if(!("else"===n.name||n.exp&&n.exp.content.trim())){const o=n.exp?n.exp.loc:e.loc;t.onError($(35,n.loc)),n.exp=A("true",!1,o)}if("if"===n.name){const o=vn(e,n),r=U([F(t.helper(B))]);return t.replaceNode({type:9,loc:e.loc,branches:[o],codegenNode:r}),()=>{r.expressions.push(bn(o,0,t))}}{const o=t.parent.children;let r=o.indexOf(e);for(;r-- >=-1;){const l=o[r];if(l&&9===l.type){t.removeNode();const o=vn(e,n);l.branches.push(o),rn(o,t),t.currentNode=null;let r=l.codegenNode.expressions[1];for(;;){if(19!==r.alternate.type){r.alternate=bn(o,l.branches.length-1,t);break}r=r.alternate}}else t.onError($(36,e.loc));break}}});function vn(e,n){return{type:10,loc:e.loc,condition:"else"===n.name?void 0:n.exp,children:3===e.tagType?e.children:[e]}}function bn(e,n,t){return e.condition?I(e.condition,xn(e,n,t),F(t.helper(K),['""',"true"])):xn(e,n,t)}function xn(e,n,t){const{helper:o}=t,r=_("key",A(n+"",!1)),{children:l}=e,s=l[0];if(1!==l.length||1!==s.type){const e=[o(D),O([r]),l];if(1===l.length&&11===s.type){const n=s.codegenNode.expressions[1].arguments;e[2]=n[2],e[3]=n[3]}return F(o(z),e)}{const e=s.codegenNode;let n=e;return n.callee===X&&(n=n.arguments[0]),n.callee===H&&(n.callee=o(z)),xe(n,r,t),e}}const Sn=sn("for",(e,n,t)=>{if(!n.exp)return void t.onError($(37,n.loc));const o=wn(n.exp);if(!o)return void t.onError($(38,n.loc));const{helper:r,addIdentifiers:l,removeIdentifiers:s,scopes:c}=t,{source:i,value:u,key:a,index:f}=o,p=F(r(Z),[i]),d=ge(e,"key"),h=d?64:128,g=U([F(r(B),["false"]),F(r(z),[r(D),"null",p,h+""])]);return t.replaceNode({type:11,loc:n.loc,source:i,valueAlias:u,keyAlias:a,objectIndexAlias:f,children:3===e.tagType?e.children:[e],codegenNode:g}),c.vFor++,()=>{let n;c.vFor--;const l=ve(e),s=be(e)?e:l&&1===e.children.length&&be(e.children[0])?e.children[0]:null,i=d?_("key",6===d.type?A(d.value.content,!0):d.exp):null;if(s)n=s.codegenNode,l&&i&&xe(n,i,t);else if(l)n=me(F(r(z),[r(D),i?O([i]):"null",e.children]),t);else{let o=e.codegenNode;o.callee===X?o.arguments[0].callee=r(z):o.callee=r(z),n=me(o,t)}p.arguments.push(V(En(o),n,!0))}}),kn=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Tn=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Nn=/^\(|\)$/g;function wn(e,n){const t=e.loc,o=e.content,r=o.match(kn);if(!r)return;const[,l,s]=r,c={source:Cn(t,s.trim(),o.indexOf(s,l.length)),value:void 0,key:void 0,index:void 0};let i=l.trim().replace(Nn,"").trim();const u=l.indexOf(i),a=i.match(Tn);if(a){i=i.replace(Tn,"").trim();const e=a[1].trim();let n;if(e&&(n=o.indexOf(e,u+i.length),c.key=Cn(t,e,n)),a[2]){const r=a[2].trim();r&&(c.index=Cn(t,r,o.indexOf(r,c.key?n+e.length:u+i.length)))}}return i&&(c.value=Cn(t,i,u)),c}function Cn(e,n,t){return A(n,!1,fe(e,t,n.length))}function En({value:e,key:n,index:t}){const o=[];return e&&o.push(e),n&&(e||o.push(A("_",!1)),o.push(n)),t&&(n||(e||o.push(A("_",!1)),o.push(A("__",!1))),o.push(t)),o}const Rn=e=>4===e.type&&e.isStatic,$n=A("undefined",!1),Mn=(e,n)=>{if(1===e.type&&(1===e.tagType||3===e.tagType)){const t=he(e,"slot");if(t){t.exp;return n.scopes.vSlot++,()=>{n.scopes.vSlot--}}}};function Pn(e,n,t){return _("default",V(e,n,!1,n.length?n[0].loc:t))}function On(e,n){return O([_("name",e),_("fn",n)])}const _n=new WeakMap,An=(e,n)=>{if(!(1!==e.type||2===e.tagType||3===e.tagType&&e.props.some(ye)))return()=>{const t=1===e.tagType;let o,r,l,s=e.props.length>0,c=0;const i=ge(e,"is");if("component"===e.tag&&i)if(6===i.type){const e=i.value&&i.value.content;e&&(n.helper(G),n.components.add(e),l=Se(e,"component"))}else i.exp&&(l=F(n.helper(Y),[i.exp]));t&&!l&&(n.helper(G),n.components.add(e.tag));const u=[l||(t?Se(e.tag,"component"):4===e.tagType?n.helper(j):5===e.tagType?n.helper(W):`"${e.tag}"`)];if(s){const t=Ln(e,n,e.props.filter(e=>e!==i));c=t.patchFlag,r=t.dynamicPropNames,o=t.directives,t.props?u.push(t.props):s=!1}const a=e.children.length>0;if(a)if(s||u.push("null"),t){const{slots:t,hasDynamicSlots:o}=function(e,n){const{children:t,loc:o}=e,r=[],l=[];let s=n.scopes.vSlot>0||n.scopes.vFor>0;const c=he(e,"slot",!0);if(c){const{arg:e,exp:o,loc:l}=c;e&&n.onError($(42,l)),r.push(Pn(o,t,l))}let i=!1,u=void 0;const a=new Set;for(let e=0;e<t.length;e++){const o=t[e];let f;if(!ve(o)||!(f=he(o,"slot",!0))){3===o.type||u||(u=o);continue}if(c){n.onError($(43,f.loc));break}i=!0;const{children:p,loc:d}=o,{arg:h=A("default",!0),exp:g,loc:m}=f;let y;Rn(h)?y=h?h.content:"default":s=!0;const v=V(g,p,!1,p.length?p[0].loc:d);let b,x,S;if(b=he(o,"if"))s=!0,l.push(I(b.exp,On(h,v),$n));else if(x=he(o,/^else(-if)?$/,!0)){let o,r=e;for(;r--&&3===(o=t[r]).type;);if(o&&ve(o)&&he(o,"if")){t.splice(e,1),e--;let n=l[l.length-1];for(;19===n.alternate.type;)n=n.alternate;n.alternate=x.exp?I(x.exp,On(h,v),$n):On(h,v)}else n.onError($(36,x.loc))}else if(S=he(o,"for")){s=!0;const e=S.parseResult||wn(S.exp);e?l.push(F(n.helper(Z),[e.source,V(En(e),On(h,v),!0)])):n.onError($(38,S.loc))}else{if(y){if(a.has(y)){n.onError($(44,m));continue}a.add(y)}r.push(_(h,v))}}i&&u&&n.onError($(45,u.loc)),c||i||r.push(Pn(void 0,t,o));let f=O(r.concat(_("_compiled",A("true",!1))),o);return l.length&&(f=F(n.helper(ee),[f,P(l)])),{slots:f,hasDynamicSlots:s}}(e,n);u.push(t),o&&(c|=256)}else if(1===e.children.length){const n=e.children[0],t=n.type,o=5===t||8===t;o&&!Ye(n)&&(c|=1),o||2===t?u.push(n):u.push(e.children)}else u.push(e.children);0!==c&&(a||(s||u.push("null"),u.push("null")),u.push(c+""),r&&r.length&&u.push(`[${r.map(e=>JSON.stringify(e)).join(", ")}]`));const{loc:f}=e,p=F(n.helper(H),u,f);o&&o.length?e.codegenNode=F(n.helper(X),[p,P(o.map(e=>(function(e,n){const t=[],o=_n.get(e);o?(n.helper(o),t.push(n.helperString(o))):(n.helper(q),n.directives.add(e.name),t.push(Se(e.name,"directive")));const{loc:r}=e;e.exp&&t.push(e.exp);e.arg&&(e.exp||t.push("void 0"),t.push(e.arg));Object.keys(e.modifiers).length&&(e.arg||(e.exp||t.push("void 0"),t.push("void 0")),t.push(O(e.modifiers.map(e=>_(e,A("true",!1,r))),r)));return P(t,e.loc)})(e,n)),f)],f):e.codegenNode=p}};function Ln(e,n,t=e.props){const o=e.loc,r=1===e.tagType;let l=[];const s=[],c=[];let i=0,u=!1,a=!1,f=!1,p=!1;const d=[],h=({key:e,value:n})=>{if(4===e.type&&e.isStatic){if(20===n.type||(4===n.type||8===n.type)&&Ye(n))return;const t=e.content;"ref"===t?u=!0:"class"===t?a=!0:"style"===t?f=!0:"key"!==t&&d.push(t)}else p=!0};for(let i=0;i<t.length;i++){const a=t[i];if(6===a.type){const{loc:e,name:n,value:t}=a;"ref"===n&&(u=!0),l.push(_(A(n,!0,fe(e,0,n.length)),A(t?t.content:"",!0,t?t.loc:e)))}else{const{name:t,arg:i,exp:u,loc:f}=a;if("slot"===t){r||n.onError($(46,f));continue}if("once"===t)continue;const d="bind"===t,m="on"===t;if(!i&&(d||m)){p=!0,u?(l.length&&(s.push(O(Fn(l),o)),l=[]),d?s.push(u):s.push({type:13,loc:f,callee:n.helper(oe),arguments:[u]})):n.onError($(d?39:40,f));continue}const y=n.directiveTransforms[t];if(y){const{props:t,needRuntime:o}=y(a,e,n);t.forEach(h),l.push(...t),o&&(c.push(a),g(o)&&_n.set(a,o))}else c.push(a)}}let m=void 0;return s.length?(l.length&&s.push(O(Fn(l),o)),m=s.length>1?F(n.helper(te),s,o):s[0]):l.length&&(m=O(Fn(l),o)),p?i|=16:(a&&(i|=2),f&&(i|=4),d.length&&(i|=8)),0===i&&(u||c.length>0)&&(i|=32),{props:m,directives:c,patchFlag:i,dynamicPropNames:d}}function Fn(e){const n={},t=[];for(let o=0;o<e.length;o++){const r=e[o];if(8===r.key.type||!r.key.isStatic){t.push(r);continue}const l=r.key.content,s=n[l];s?("style"===l||"class"===l||l.startsWith("on")||l.startsWith("vnode"))&&Vn(s,r):(n[l]=r,t.push(r))}return t}function Vn(e,n){16===e.value.type?e.value.elements.push(n.value):e.value=P([e.value,n.value],e.loc)}const Un=(e,n)=>{if(be(e)){const{props:t,children:o,loc:r}=e,l=n.prefixIdentifiers?"_ctx.$slots":"$slots";let s='"default"',c=-1;for(let e=0;e<t.length;e++){const n=t[e];if(6===n.type){if("name"===n.name&&n.value){s=JSON.stringify(n.value.content),c=e;break}}else if("bind"===n.name){const{arg:t,exp:o}=n;if(t&&o&&4===t.type&&t.isStatic&&"name"===t.content){s=o,c=e;break}}}const i=[l,s],u=c>-1?t.slice(0,c).concat(t.slice(c+1)):t;let a=u.length>0;if(a){const{props:t,directives:o}=Ln(e,n,u);o.length&&n.onError($(41,o[0].loc)),t?i.push(t):a=!1}o.length&&(a||i.push("{}"),i.push(o)),e.codegenNode=F(n.helper(Q),i,r)}},In=/^([\w$_]+|\([^)]*?\))\s*=>|^function(?:\s+[\w$]+)?\s*\(/,Dn=(e,n,t,o)=>{const{loc:r,modifiers:l,arg:s}=e;let c;e.exp||l.length||t.onError($(40,r)),4===s.type?c=s.isStatic?A(`on${C(s.content)}`,!0,s.loc):L(['"on" + (',s,")"]):((c=s).children.unshift('"on" + ('),c.children.push(")"));let i=e.exp,u=!i;if(i){const e=ae(i.content);(!(e||In.test(i.content))||u&&e)&&(i=L(["$event => (",...4===i.type?[i]:i.children,")"]))}let a={props:[_(c,i||A("() => {}",!1,r))],needRuntime:!1};return o&&(a=o(a)),u&&(a.props[0].value=t.cache(a.props[0].value)),a},jn=(e,n,t)=>{const{exp:o,modifiers:r,loc:l}=e,s=e.arg;return o||t.onError($(39,l)),r.includes("camel")&&(4===s.type?s.isStatic?s.content=T(s.content):s.content=`${t.helperString(re)}(${s.content})`:(s.children.unshift(`${t.helperString(re)}(`),s.children.push(")"))),{props:[_(s,o||A("",!0,l))],needRuntime:!1}},Wn=e=>5===e.type||2===e.type,Bn=(e,t)=>{if(0===e.type||1===e.type)return()=>{const o=e.children;let r=void 0,l=!1;for(let e=0;e<o.length;e++){const n=o[e];if(Wn(n)){l=!0;for(let t=e+1;t<o.length;t++){const l=o[t];if(!Wn(l)){r=void 0;break}r||(r=o[e]={type:8,loc:n.loc,children:[n]}),r.children.push(" + ",l),o.splice(t,1),t--}}}if(l&&o.length>1)for(let e=0;e<o.length;e++){const r=o[e];if(Wn(r)||8===r.type){const l=[];2===r.type&&" "===r.content||l.push(r),2!==r.type&&l.push(`1 /* ${n[1]} */`),o[e]={type:12,content:r,loc:r.loc,codegenNode:F(t.helper(J),l)}}}}},zn=(e,n)=>{if(1===e.type&&he(e,"once",!0))return n.helper(le),()=>{e.codegenNode&&(e.codegenNode=n.cache(e.codegenNode,!0))}},Hn=(e,n,t)=>{const{exp:o,arg:r}=e;if(!o)return t.onError($(47,e.loc)),Kn();const l=4===o.type?o.content:o.loc.source;if(!ae(l))return t.onError($(48,o.loc)),Kn();const s=r||A("modelValue",!0),c=r?4===r.type&&r.isStatic?A("onUpdate:"+r.content,!0):L([A("onUpdate:",!0),"+",...4===r.type?[r]:r.children]):A("onUpdate:modelValue",!0),i=[_(s,e.exp),_(c,L(["$event => (",...4===o.type?[o]:o.children," = $event)"]))];if(e.modifiers.length&&1===n.tagType){const n=e.modifiers.map(e=>(ie(e)?e:JSON.stringify(e))+": true").join(", ");i.push(_("modelModifiers",A(`{ ${n} }`,!1,e.loc,!0)))}return Kn(i)};function Kn(e=[]){return{props:e,needRuntime:!1}}const Jn=t("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"),Gn=t("svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistanceLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,lineGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view"),Yn=t("area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr"),qn=t("style,iframe,script,noscript",!0),Xn={isVoidTag:Yn,isNativeTag:e=>Jn(e)||Gn(e),isPreTag:e=>"pre"===e,getNamespace(e,n){let t=n?n.ns:0;if(n&&2===t)if("annotation-xml"===n.tag){if("svg"===e)return 1;n.props.some(e=>6===e.type&&"encoding"===e.name&&null!=e.value&&("text/html"===e.value.content||"application/xhtml+xml"===e.value.content))&&(t=0)}else/^m(?:[ions]|text)$/.test(n.tag)&&"mglyph"!==e&&"malignmark"!==e&&(t=0);else n&&1===t&&("foreignObject"!==n.tag&&"desc"!==n.tag&&"title"!==n.tag||(t=0));if(0===t){if("svg"===e)return 1;if("math"===e)return 2}return t},getTextMode(e,n){if(0===n){if("textarea"===e||"title"===e)return 1;if(qn(e))return 2}return 0}},Zn=(e,n)=>{1===e.type&&e.props.forEach((t,o)=>{if(6===t.type&&"style"===t.name&&t.value){const r=JSON.stringify(function(e){const n={};return e.split(Qn).forEach((function(e){if(e){const t=e.split(et);t.length>1&&(n[t[0].trim()]=t[1].trim())}})),n}(t.value.content)),l=n.hoist(A(r,!1,t.loc));e.props[o]={type:7,name:"bind",arg:A("style",!0,t.loc),exp:l,modifiers:[],loc:t.loc}}})},Qn=/;(?![^(]*\))/g,et=/:(.+)/;const nt=(e,n)=>({props:[],needRuntime:!1});function tt(e,n){return $(e,n)}const ot=(e,n,t)=>{const{exp:o,loc:r}=e;return o||t.onError(tt(53,r)),n.children.length&&(t.onError(tt(54,r)),n.children.length=0),{props:[_(A("innerHTML",!0,r),o||A("",!0))],needRuntime:!1}},rt=(e,n,t)=>{const{exp:o,loc:r}=e;return o||t.onError(tt(55,r)),n.children.length&&(t.onError(tt(56,r)),n.children.length=0),{props:[_(A("textContent",!0,r),o||A("",!0))],needRuntime:!1}},lt=Symbol(""),st=Symbol(""),ct=Symbol(""),it=Symbol(""),ut=Symbol(""),at=Symbol(""),ft=Symbol("");var pt;pt={[lt]:"vModelRadio",[st]:"vModelCheckbox",[ct]:"vModelText",[it]:"vModelSelect",[ut]:"vModelDynamic",[at]:"withModifiers",[ft]:"withKeys"},Object.getOwnPropertySymbols(pt).forEach(e=>{se[e]=pt[e]});const dt=(e,n,t)=>{const o=Hn(e,n,t);if(!o.props.length)return o;const{tag:r,tagType:l}=n;if(0===l)if(e.arg&&t.onError(tt(58,e.arg.loc)),"input"===r||"textarea"===r||"select"===r){let l=ct,s=!1;if("input"===r){const o=ge(n,"type");if(o)if(7===o.type)l=ut;else if(o.value)switch(o.value.content){case"radio":l=lt;break;case"checkbox":l=st;break;case"file":s=!0,t.onError(tt(59,e.loc))}}else"select"===r&&(l=it);s||(o.needRuntime=t.helper(l))}else t.onError(tt(57,e.loc));return o},ht=t("passive,once,capture"),gt=t("stop,prevent,self,ctrl,shift,alt,meta,exact,left,middle,right"),mt=t("onkeyup,onkeydown,onkeypress",!0),yt=(e,n,t)=>Dn(e,n,t,n=>{const{modifiers:o}=e;if(!o.length)return n;let{key:r,value:l}=n.props[0];const s=o.filter(ht),c=o.filter(e=>!ht(e)),i=c.filter(gt);i.length&&(l=F(t.helper(at),[l,JSON.stringify(i)]));const u=c.filter(e=>!gt(e));return!u.length||8!==r.type&&r.isStatic&&!mt(r.content)||(l=F(t.helper(ft),[l,JSON.stringify(u)])),s.length&&(l=O([_("handler",l),_("options",O(s.map(e=>_(e,A("true",!1)))))])),{props:[_(r,l)],needRuntime:!1}});function vt(e,n={}){return function(e,n={}){{const e=n.onError||R;!0===n.prefixIdentifiers?e($(51)):"module"===n.mode&&e($(52))}const t=h(e)?Te(e,n):e;return on(t,{...n,prefixIdentifiers:!1,nodeTransforms:[zn,yn,Sn,Un,An,Mn,Bn,...n.nodeTransforms||[]],directiveTransforms:{on:Dn,bind:jn,model:Hn,...n.directiveTransforms||{}}}),cn(t,{...n,prefixIdentifiers:!1})}(e,{...n,...Xn,nodeTransforms:[Zn,...n.nodeTransforms||[]],directiveTransforms:{cloak:nt,html:ot,text:rt,model:dt,on:yt,...n.directiveTransforms||{}}})}function bt(e){return d(e)?{setup:e}:e}let xt=!0;const St=new Set(Object.getOwnPropertyNames(Symbol).map(e=>Symbol[e]).filter(g));function kt(e){return function(n,t,o){const r=Reflect.get(n,t,o);return g(t)&&St.has(t)?r:To(r)?r.value:(vo(n,"get",t),m(r)?e?ro(r):oo(r):r)}}function Tt(e,n,t,o){t=io(t);const r=e[n];if(To(r)&&!To(t))return r.value=t,!0;const l=f(e,n),s=Reflect.set(e,n,t,o);return e===io(o)&&(l?E(t,r)&&bo(e,"set",n):bo(e,"add",n)),s}function Nt(e,n){const t=f(e,n),o=(e[n],Reflect.deleteProperty(e,n));return o&&t&&bo(e,"delete",n),o}function wt(e,n){const t=Reflect.has(e,n);return vo(e,"has",n),t}function Ct(e){return vo(e,"iterate"),Reflect.ownKeys(e)}const Et={get:kt(!1),set:Tt,deleteProperty:Nt,has:wt,ownKeys:Ct},Rt={get:kt(!0),set:(e,n,t,o)=>!!xt||Tt(e,n,t,o),deleteProperty:(e,n)=>!!xt||Nt(e,n),has:wt,ownKeys:Ct},$t=e=>m(e)?oo(e):e,Mt=e=>m(e)?ro(e):e,Pt=e=>Reflect.getPrototypeOf(e);function Ot(e,n,t){return vo(e=io(e),"get",n=io(n)),t(Pt(e).get.call(e,n))}function _t(e){const n=io(this);return vo(n,"has",e=io(e)),Pt(n).has.call(n,e)}function At(e){return vo(e=io(e),"iterate"),Reflect.get(Pt(e),"size",e)}function Lt(e){e=io(e);const n=io(this),t=Pt(n),o=t.has.call(n,e),r=t.add.call(n,e);return o||bo(n,"add",e),r}function Ft(e,n){n=io(n);const t=io(this),o=Pt(t),r=o.has.call(t,e),l=o.get.call(t,e),s=o.set.call(t,e,n);return r?E(n,l)&&bo(t,"set",e):bo(t,"add",e),s}function Vt(e){const n=io(this),t=Pt(n),o=t.has.call(n,e),r=(t.get&&t.get.call(n,e),t.delete.call(n,e));return o&&bo(n,"delete",e),r}function Ut(){const e=io(this),n=0!==e.size,t=Pt(e).clear.call(e);return n&&bo(e,"clear"),t}function It(e){return function(n,t){const o=this,r=io(o),l=e?Mt:$t;return vo(r,"iterate"),Pt(r).forEach.call(r,(function(e,t){return n.call(o,l(e),l(t),o)}),t)}}function Dt(e,n){return function(...t){const o=io(this),r="entries"===e||e===Symbol.iterator&&o instanceof Map,l=Pt(o)[e].apply(o,t),s=n?Mt:$t;return vo(o,"iterate"),{next(){const{value:e,done:n}=l.next();return n?{value:e,done:n}:{value:r?[s(e[0]),s(e[1])]:s(e),done:n}},[Symbol.iterator](){return this}}}}function jt(e,n){return function(...t){return xt?"delete"!==n&&this:e.apply(this,t)}}const Wt={get(e){return Ot(this,e,$t)},get size(){return At(this)},has:_t,add:Lt,set:Ft,delete:Vt,clear:Ut,forEach:It(!1)},Bt={get(e){return Ot(this,e,Mt)},get size(){return At(this)},has:_t,add:jt(Lt,"add"),set:jt(Ft,"set"),delete:jt(Vt,"delete"),clear:jt(Ut,"clear"),forEach:It(!0)};function zt(e){return(n,t,o)=>Reflect.get(f(e,t)&&t in n?e:n,t,o)}["keys","values","entries",Symbol.iterator].forEach(e=>{Wt[e]=Dt(e,!1),Bt[e]=Dt(e,!0)});const Ht={get:zt(Wt)},Kt={get:zt(Bt)},Jt=new WeakMap,Gt=new WeakMap,Yt=new WeakMap,qt=new WeakMap,Xt=new WeakMap,Zt=new WeakSet,Qt=new WeakSet,eo=new Set([Set,Map,WeakMap,WeakSet]),no=t("Object,Array,Map,Set,WeakMap,WeakSet"),to=e=>!e._isVue&&!e._isVNode&&no(function(e){return b(e).slice(8,-1)}(e))&&!Qt.has(e);function oo(e){return Xt.has(e)?e:Zt.has(e)?ro(e):lo(e,Gt,Yt,Et,Ht)}function ro(e){return Yt.has(e)&&(e=Yt.get(e)),lo(e,qt,Xt,Rt,Kt)}function lo(e,n,t,o,r){if(!m(e))return e;let l=n.get(e);if(void 0!==l)return l;if(t.has(e))return e;if(!to(e))return e;const s=eo.has(e.constructor)?r:o;return l=new Proxy(e,s),n.set(e,l),t.set(l,e),Jt.has(e)||Jt.set(e,new Map),l}function so(e){return Yt.has(e)||Xt.has(e)}function co(e){return Xt.has(e)}function io(e){return Yt.get(e)||Xt.get(e)||e}function uo(e){return Zt.add(e),e}function ao(e){return Qt.add(e),e}const fo=[],po=Symbol("iterate");function ho(e,n=r){(function(e){return null!=e&&!0===e._isEffect})(e)&&(e=e.raw);const t=function(e,n){const t=function(...n){return function(e,n,t){if(!e.active)return n(...t);if(!fo.includes(e)){mo(e);try{return fo.push(e),n(...t)}finally{fo.pop()}}}(t,e,n)};return t._isEffect=!0,t.active=!0,t.raw=e,t.scheduler=n.scheduler,t.onTrack=n.onTrack,t.onTrigger=n.onTrigger,t.onStop=n.onStop,t.computed=n.computed,t.deps=[],t}(e,n);return n.lazy||t(),t}function go(e){e.active&&(mo(e),e.onStop&&e.onStop(),e.active=!1)}function mo(e){const{deps:n}=e;if(n.length){for(let t=0;t<n.length;t++)n[t].delete(e);n.length=0}}let yo=!0;function vo(e,n,t){if(!yo||0===fo.length)return;const o=fo[fo.length-1];"iterate"===n&&(t=po);let r=Jt.get(e);void 0===r&&Jt.set(e,r=new Map);let l=r.get(t);void 0===l&&r.set(t,l=new Set),l.has(o)||(l.add(o),o.deps.push(l))}function bo(e,n,t,o){const r=Jt.get(e);if(void 0===r)return;const l=new Set,s=new Set;if("clear"===n)r.forEach(e=>{xo(l,s,e)});else if(void 0!==t&&xo(l,s,r.get(t)),"add"===n||"delete"===n){const n=Array.isArray(e)?"length":po;xo(l,s,r.get(n))}const c=e=>{!function(e,n,t,o,r){void 0!==e.scheduler?e.scheduler(e):e()}(e)};s.forEach(c),l.forEach(c)}function xo(e,n,t){void 0!==t&&t.forEach(t=>{t.computed?n.add(t):e.add(t)})}const So=e=>m(e)?oo(e):e;function ko(e){if(To(e))return e;e=So(e);const n={_isRef:!0,get value(){return vo(n,"get",""),e},set value(t){e=So(t),bo(n,"set","")}};return n}function To(e){return!!e&&!0===e._isRef}function No(e){const n={};for(const t in e)n[t]=wo(e,t);return n}function wo(e,n){return{_isRef:!0,get value(){return e[n]},set value(t){e[n]=t}}}function Co(e){let n,t;d(e)?(n=e,t=s):(n=e.get,t=e.set);let o,r=!0;const l=ho(n,{lazy:!0,computed:!0,scheduler:()=>{r=!0}});return{_isRef:!0,effect:l,get value(){return r&&(o=l(),r=!1),function(e){if(0===fo.length)return;const n=fo[fo.length-1];for(let t=0;t<e.deps.length;t++){const o=e.deps[t];o.has(n)||(o.add(n),n.deps.push(o))}}(l),o},set value(e){t(e)}}}const Eo=[];function Ro(e,...n){const t=Eo.length?Eo[Eo.length-1].component:null,o=t&&t.appContext.config.warnHandler,r=function(){let e=Eo[Eo.length-1];if(!e)return[];const n=[];for(;e;){const t=n[0];t&&t.vnode===e?t.recurseCount++:n.push({vnode:e,recurseCount:0});const o=e.component.parent;e=o&&o.vnode}return n}();if(o)o(e+n.join(""),t&&t.renderProxy,$o(r).join(""));else if(console.warn(`[Vue warn]: ${e}`,...n),("undefined"==typeof process||"test"!==process.env.NODE_ENV)&&r.length)if(r.length>1&&console.groupCollapsed){console.groupCollapsed("at",...Mo(r[0]));const e=[];r.slice(1).forEach((n,t)=>{0!==t&&e.push("\n"),e.push(...Mo(n,t+1))}),console.log(...e),console.groupEnd()}else console.log(...$o(r))}function $o(e){const n=[];return e.forEach((e,t)=>{const o=Mo(e,t);0===t?n.push("at",...o):n.push("\n",...o)}),n}function Mo({vnode:e,recurseCount:n},t=0){const o=n>0?`... (${n} recursive calls)`:"",r=(0===t?"":" ".repeat(2*t+1))+`<${function(e,n){const t=e.type;let o=d(t)?t.displayName:t.name;if(!o&&n){const e=n.match(/([^/\\]+)\.vue$/);e&&(o=e[1])}return o?Oo(o):"AnonymousComponent"}(e)}`,l=">"+o,s=null==e.component.parent?"(Root)":"";return e.props?[r,..._o(e.props),l,s]:[r+l,s]}const Po=/(?:^|[-_])(\w)/g,Oo=e=>e.replace(Po,e=>e.toUpperCase()).replace(/[-_]/g,"");function _o(e){const n=[];for(const t in e){const o=e[t];h(o)?n.push(`${t}=${JSON.stringify(o)}`):n.push(`${t}=`,String(io(o)))}return n}function Ao(e,n,t,o){let r;try{r=o?e(...o):e()}catch(e){Fo(e,n,t)}return r}function Lo(e,n,t,o){if(d(e)){const r=Ao(e,n,t,o);return null!=r&&!r._isVue&&y(r)&&r.catch(e=>{Fo(e,n,t)}),r}for(let r=0;r<e.length;r++)Lo(e[r],n,t,o)}function Fo(e,n,t){n&&n.vnode;if(n){let o=n.parent;const r=n.renderProxy,l=t;for(;o;){const n=o.ec;if(null!==n)for(let t=0;t<n.length;t++)if(n[t](e,r,l))return;o=o.parent}const s=n.appContext.config.errorHandler;if(s)return void Ao(s,null,8,[e,r,l])}!function(e,n,t){throw e}(e)}const Vo=[],Uo=[],Io=Promise.resolve();let Do=!1;function jo(e){return e?Io.then(e):Io}function Wo(e){Vo.includes(e)||(Vo.push(e),Do||jo(Ko))}function Bo(e){p(e)?Uo.push(...e):Uo.push(e),Do||jo(Ko)}const zo=e=>[...new Set(e)];function Ho(){if(Uo.length){const e=zo(Uo);Uo.length=0;for(let n=0;n<e.length;n++)e[n]()}}function Ko(e){let n;for(Do=!0;n=Vo.shift();)Ao(n,null,10);Ho(),Do=!1,Vo.length&&Ko()}const Jo=Symbol(void 0),Go=Symbol(void 0),Yo=Symbol(void 0),qo=Symbol(void 0),Xo=Symbol(void 0),Zo=[];let Qo=null;function er(e){Zo.push(Qo=e?null:[])}let nr=1;function tr(e){nr+=e}function or(e,n,t,o,r){nr--;const s=lr(e,n,t,o,r);return nr++,s.dynamicChildren=Qo||l,Zo.pop(),null!==(Qo=Zo[Zo.length-1]||null)&&Qo.push(s),s}function rr(e){return!!e&&!0===e._isVNode}function lr(e,n=null,t=null,o=0,r=null){if(null!==n){(so(n)||ml in n)&&(n=u({},n));let{class:e,style:t}=n;null==e||h(e)||(n.class=fr(e)),null!=t&&(so(t)&&!p(t)&&(t=u({},t)),n.style=ar(t))}const l=h(e)?1:m(e)?4:d(e)?2:0,s={_isVNode:!0,type:e,props:n,key:null!==n&&n.key||null,ref:null!==n&&n.ref||null,children:null,component:null,suspense:null,el:null,anchor:null,target:null,shapeFlag:l,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null};return function(e,n){let t=0;null==n?n=null:p(n)?t=16:"object"==typeof n?t=32:d(n)?(n={default:n},t=32):(n=h(n)?n:n+"",t=8);e.children=n,e.shapeFlag|=t}(s,t),nr>0&&null!==Qo&&(o>0||4&l||2&l)&&Qo.push(s),s}function sr(e,n){return{_isVNode:!0,type:e.type,props:n?e.props?dr(e.props,n):n:e.props,key:e.key,ref:e.ref,children:e.children,target:e.target,shapeFlag:e.shapeFlag,patchFlag:e.patchFlag,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,component:null,suspense:null,el:null,anchor:null}}function cr(e=" ",n=0){return lr(qo,null,e,n)}function ir(e="",n=!1){return n?or(Xo,null,e):lr(Xo,null,e)}function ur(e){return null==e?lr(Xo):p(e)?lr(Jo,null,e):"object"==typeof e?null===e.el?e:sr(e):lr(qo,null,e+"")}function ar(e){if(p(e)){const n={};for(let t=0;t<e.length;t++){const o=ar(e[t]);if(o)for(const e in o)n[e]=o[e]}return n}if(m(e))return e}function fr(e){let n="";if(h(e))n=e;else if(p(e))for(let t=0;t<e.length;t++)n+=fr(e[t])+" ";else if(m(e))for(const t in e)e[t]&&(n+=t+" ");return n.trim()}const pr=/^on|^vnode/;function dr(...e){const n={};u(n,e[0]);for(let t=1;t<e.length;t++){const o=e[t];for(const e in o)if("class"===e)n.class=fr([n.class,o.class]);else if("style"===e)n.style=ar([n.style,o.style]);else if(pr.test(e)){const t=n[e];n[e]=t?[].concat(t,o[e]):o[e]}else n[e]=o[e]}return n}function hr(e,n,t){t&&(t[e]||(t[e]=[])).push((...o)=>{if(t.isUnmounted)return;yo=!1,fl(t);const r=Lo(n,t,e,o);return fl(null),yo=!0,r})}const gr=e=>(n,t=il)=>hr(e,n,t),mr=gr("bm"),yr=gr("m"),vr=gr("bu"),br=gr("u"),xr=gr("bum"),Sr=gr("um"),kr=gr("rtg"),Tr=gr("rtc"),Nr=gr("ec");let wr=null;function Cr(e){const{type:n,vnode:t,renderProxy:o,props:l,slots:s,attrs:c,emit:i}=e;let u;wr=e;try{if(4&t.shapeFlag)u=ur(e.render.call(o));else{const e=n;u=ur(e.length>1?e(l,{attrs:c,slots:s,emit:i}):e(l,null))}null!=n.props&&!1!==n.inheritAttrs&&c!==r&&Object.keys(c).length&&(1&u.shapeFlag||6&u.shapeFlag)&&(u=sr(u,c))}catch(n){Fo(n,e,1),u=lr(Xo)}return wr=null,u}function Er(e,n){const t=Object.keys(n);if(t.length!==Object.keys(e).length)return!0;for(let o=0;o<t.length;o++){const r=t[o];if(n[r]!==e[r])return!0}return!1}function Rr(e,n,t){const o=null!=t,l=function(e){if(!e)return null;if($r.has(e))return $r.get(e);const n={};if($r.set(e,n),p(e))for(let t=0;t<e.length;t++){const o=T(e[t]);"$"!==o[0]&&(n[o]=r)}else for(const t in e){const o=T(t);if("$"!==o[0]){const r=e[t],l=n[o]=p(r)||d(r)?{type:r}:r;if(null!=l){const e=Or(Boolean,l.type),n=Or(String,l.type);l[1]=e>-1,l[2]=e<n}}}return n}(t);if(!n&&!o)return;const s={};let c=void 0;const i=e.propsProxy,u=i?(e,n)=>{s[e]=n,i[e]=n}:(e,n)=>{s[e]=n};if(xt=!1,null!=n)for(const e in n){if(S(e))continue;const t=T(e);o&&!f(l,t)?(c||(c={}))[e]=n[e]:u(t,n[e])}if(o)for(const e in l){let n=l[e];if(null==n)continue;const t=!f(s,e),o=f(n,"default"),r=s[e];if(o&&void 0===r){const t=n.default;u(e,d(t)?t():t)}n[1]&&(t&&!o?u(e,!1):!n[2]||""!==r&&r!==w(e)||u(e,!0))}else c=s;const{patchFlag:a}=e.vnode;if(null!==i&&(0===a||16&a)){const e=io(i);for(const n in e)f(s,n)||delete i[n]}xt=!0,e.props=s,e.attrs=l?c||r:e.props}const $r=new WeakMap;function Mr(e){const n=e&&e.toString().match(/^\s*function (\w+)/);return n?n[1]:""}function Pr(e,n){return Mr(e)===Mr(n)}function Or(e,n){if(p(n)){for(let t=0,o=n.length;t<o;t++)if(Pr(n[t],e))return t}else if(m(n))return Pr(n,e)?0:-1;return-1}const _r=e=>p(e)?e.map(ur):[ur(e)],Ar=(e,n)=>e=>_r(n(e));function Lr(e,n){let t;if(32&e.vnode.shapeFlag){const e=n;if(e._compiled)t=n;else{t={};for(const n in e){const o=e[n];if(d(o))t[n]=Ar(n,o);else if(null!=o){const e=_r(o);t[n]=()=>e}}}}else if(null!==n){const e=_r(n);t={default:()=>e}}void 0!==t&&(e.slots=t)}const Fr=new WeakMap;function Vr(e,n,t,o,l,s=r){let c=Fr.get(t);c||(c=new WeakMap,Fr.set(t,c)),d(t)&&(t={mounted:t,updated:t});for(const r in t){const i=t[r],u="onVnode"+r[0].toUpperCase()+r.slice(1),a=(e,t)=>{let r;null!=t&&(r=c.get(t),c.delete(t)),c.set(e,o),i(e.el,{instance:n.renderProxy,value:o,oldValue:r,arg:l,modifiers:s},e,t)},f=e[u];e[u]=f?[].concat(f,a):a}}function Ur(e,n){const t=wr;if(null!==t){e.props=e.props||{};for(let o=0;o<n.length;o++){const[r,l,s,c]=n[o];Vr(e.props,t,r,l,s,c)}}return e}function Ir(e,n,t,o=null){Lo(e,n,7,[t,o])}function Dr(){return{config:{devtools:!0,performance:!1,isNativeTag:c,isCustomElement:c,errorHandler:void 0,warnHandler:void 0},mixins:[],components:{},directives:{},provides:{}}}function jr(e){return function(){const n=Dr();let t=!1;const o={get config(){return n.config},set config(e){},use:e=>(d(e)?e(o):d(e.install)&&e.install(o),o),mixin:e=>(n.mixins.push(e),o),component:(e,t)=>t?(n.components[e]=t,o):n.components[e],directive:(e,t)=>t?(n.directives[e]=t,o):n.directives[e],mount(o,r,l){if(!t){const s=lr(o,l);return s.appContext=n,e(s,r),t=!0,s.component.renderProxy}},provide(e,t){n.provides[e]=t}};return o}}function Wr(e){const{shapeFlag:n,children:t}=e;if(n&Sl.SLOTS_CHILDREN){const{default:e,fallback:n}=t;return{content:ur(d(e)?e():e),fallback:ur(d(n)?n():n)}}return{content:ur(t),fallback:ur(null)}}const Br={scheduler:Wo};function zr(e,n){return e.type===n.type&&e.key===n.key}function Hr(e,n){for(let t=0;t<e.length;t++)e[t](n)}function Kr(e,n){null===n||n.isResolved?Bo(e):p(e)?n.effects.push(...e):n.effects.push(e)}function Jr(e){const{insert:n,remove:t,patchProp:o,createElement:s,createText:c,createComment:i,setText:u,setElementText:a,parentNode:f,nextSibling:p,querySelector:g}=e;function m(e,t,l,p=null,$=null,L=null,F=!1,V=!1){null==e||zr(e,t)||(p=_(e),P(e,$,L,!0),e=null);const{type:U,shapeFlag:I}=t;switch(U){case qo:!function(e,t,o,r){if(null==e)n(t.el=c(t.children),o,r);else{const n=t.el=e.el;t.children!==e.children&&u(n,t.children)}}(e,t,l,p);break;case Xo:v(e,t,l,p);break;case Jo:!function(e,t,o,r,l,s,c,u){const a=t.el=e?e.el:i(""),f=t.anchor=e?e.anchor:i("");null==e?(n(a,o,r),n(f,o,r),b(t.children,o,f,l,s,c,u)):R(e,t,o,f,l,s,c,u)}(e,t,l,p,$,L,F,V);break;case Go:!function(e,n,t,o,r,l,s,c){const i=n.props&&n.props.target,{patchFlag:u,shapeFlag:f,children:p}=n;if(null==e){const e=n.target=h(i)?g(i):i;null!=e&&(8&f?a(e,p):16&f&&b(p,e,null,r,l,s,c))}else{const o=n.target=e.target;if(1===u?a(o,p):n.dynamicChildren?x(e.dynamicChildren,n.dynamicChildren,t,r,l,s):c||R(e,n,o,null,r,l,s),i!==(e.props&&e.props.target)){const e=n.target=h(i)?g(i):null;if(null!=e)if(8&f)a(o,""),a(e,p);else if(16&f)for(let n=0;n<p.length;n++)M(p[n],e,null)}}v(e,n,t,o)}(e,t,l,p,$,L,F,V);break;case Yo:!function(e,n,t,o,r,l,c,i){null==e?function(e,n,t,o,r,l,c){const i=s("div"),u=e.suspense=function(e,n,t,o,r,l,s,c){return{vnode:e,parent:n,parentComponent:t,isSVG:s,optimized:c,container:o,hiddenContainer:r,anchor:l,deps:0,subTree:null,fallbackTree:null,isResolved:!1,isUnmounted:!1,effects:[]}}(e,r,o,n,i,t,l,c),{content:a,fallback:f}=Wr(e);u.subTree=a,u.fallbackTree=f,m(null,a,i,null,o,u,l,c),u.deps>0?(m(null,f,n,t,o,null,l,c),e.el=f.el):T(u)}(n,t,o,r,l,c,i):function(e,n,t,o,r,l,s){const c=n.suspense=e.suspense;c.vnode=n;const{content:i,fallback:u}=Wr(n),a=c.subTree,f=c.fallbackTree;c.isResolved?(m(a,i,t,o,r,c,l,s),n.el=i.el):(m(a,i,c.hiddenContainer,null,r,c,l,s),c.deps>0&&(m(f,u,t,o,r,null,l,s),n.el=u.el));c.subTree=i,c.fallbackTree=u}(e,n,t,o,r,c,i)}(e,t,l,p,$,L,F,V);break;default:1&I?function(e,t,l,c,i,u,f,p){null==e?function(e,t,r,l,c,i,u){const f=e.type;i=i||"svg"===f;const p=e.el=s(f,i),{props:d,shapeFlag:h}=e;if(null!=d){for(const e in d)S(e)||o(p,e,d[e],null,i);null!=d.onVnodeBeforeMount&&Ir(d.onVnodeBeforeMount,l,e)}8&h?a(p,e.children):16&h&&b(e.children,p,null,l,c,i,u||null!==e.dynamicChildren);n(p,t,r),null!=d&&null!=d.onVnodeMounted&&Kr(()=>{Ir(d.onVnodeMounted,l,e)},c)}(t,l,c,i,u,f,p):function(e,n,t,l,s,c){const i=n.el=e.el,{patchFlag:u,dynamicChildren:f}=n,p=e&&e.props||r,d=n.props||r;null!=d.onVnodeBeforeUpdate&&Ir(d.onVnodeBeforeUpdate,t,n,e);if(u>0){if(16&u)k(i,n,p,d,t,l,s);else if(2&u&&p.class!==d.class&&o(i,"class",d.class,null,s),4&u&&o(i,"style",d.style,p.style,s),8&u){const r=n.dynamicProps;for(let n=0;n<r.length;n++){const c=r[n],u=p[c],a=d[c];u!==a&&o(i,c,a,u,s,e.children,t,l,O)}}if(1&u)return void(e.children!==n.children&&a(i,n.children))}else c||null!=f||k(i,n,p,d,t,l,s);null!=f?x(e.dynamicChildren,f,i,t,l,s):c||R(e,n,i,null,t,l,s);null!=d.onVnodeUpdated&&Kr(()=>{Ir(d.onVnodeUpdated,t,n,e)},l)}(e,t,i,u,f,p);null!==t.ref&&null!==i&&A(t.ref,e&&e.ref,i,t.el)}(e,t,l,p,$,L,F,V):6&I&&function(e,n,t,o,l,s,c,i){if(null==e)!function(e,n,t,o,l,s){const c=e.component=function(e,n){const t=(n?n.appContext:e.appContext)||cl,o={vnode:e,parent:n,appContext:t,type:e.type,root:null,next:null,subTree:null,update:null,render:null,renderProxy:null,propsProxy:null,setupContext:null,effects:null,provides:n?n.provides:Object.create(t.provides),accessCache:null,renderCache:null,renderContext:r,data:r,props:r,attrs:r,slots:r,refs:r,components:Object.create(t.components),directives:Object.create(t.directives),asyncDep:null,asyncResult:null,asyncResolved:!1,user:{},isUnmounted:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,emit:(e,...n)=>{const t=o.vnode.props||r,l=t[`on${e}`]||t[`on${C(e)}`];l&&Lo(l,o,6,n)}};return o.root=n?n.root:o,o}(e,o),i=e.type.props;Rr(c,e.props,i),Lr(c,e.children),4&e.shapeFlag&&function(e,n){const t=e.type;e.accessCache={},e.renderProxy=new Proxy(e,Qr);const o=e.propsProxy=ro(e.props),{setup:r}=t;if(r){const t=e.setupContext=r.length>1?function(e){return{attrs:new Proxy(e,yl.attrs),slots:new Proxy(e,yl.slots),emit:e.emit}}(e):null;il=e,ul=n;const l=Ao(r,e,0,[o,t]);if(il=null,ul=null,y(l))return void(e.asyncDep=l);pl(e,l,n)}else gl(e,n)}(c,l);if(c.asyncDep){if(!l)throw new Error("Async component without a suspense boundary!");l.isResolved&&Wo(()=>{!function(e){e.isResolved=!1;const{vnode:n,subTree:t,fallbackTree:o,parentComponent:r,container:l,hiddenContainer:s,isSVG:c,optimized:i}=e,u=_(t);M(t,s,null),m(null,o,l,u,r,null,c,i);const a=n.el=o.el;r&&r.subTree===n&&(r.vnode.el=a,E(r,a));const f=n.props&&n.props.onSuspense;d(f)&&f()}(l)}),l.deps++,c.asyncDep.catch(e=>{Fo(e,c,0)}).then(e=>{c.isUnmounted||l.isUnmounted||function(e,n,t,o){t.deps--,e.asyncResolved=!0;const{vnode:r}=e;pl(e,n,t),N(e,t,r,f(e.subTree.el),_(e.subTree),o),E(e,r.el),0===t.deps&&T(t)}(c,e,l,s)});const o=c.subTree=lr(Xo);return v(null,o,n,t),void(e.el=o.el)}N(c,l,e,n,t,s)}(n,t,o,l,s,c);else{const t=n.component=e.component;if(function(e,n,t){const{props:o,children:r}=e,{props:l,children:s,patchFlag:c}=n;if(c>0){if(256&c)return!0;if(16&c)return Er(o,l);if(8&c){const e=n.dynamicProps;for(let n=0;n<e.length;n++){const t=e[n];if(l[t]!==o[t])return!0}}}else if(!t)return null!=r||null!=s||o!==l&&(null===o?null!==l:null===l||Er(o,l));return!1}(e,n,i)){if(t.asyncDep&&!t.asyncResolved)return void w(t,n);t.next=n,t.update()}else n.component=e.component,n.el=e.el}null!==n.ref&&null!==l&&A(n.ref,e&&e.ref,l,n.component.renderProxy)}(e,t,l,p,$,L,F,V)}}function v(e,t,o,r){null==e?n(t.el=i(t.children||""),o,r):t.el=e.el}function b(e,n,t,o,r,l,s,c=0){for(let i=c;i<e.length;i++){m(null,s?e[i]:e[i]=ur(e[i]),n,t,o,r,l,s)}}function x(e,n,t,o,r,l){for(let s=0;s<n.length;s++){const c=e[s];m(c,n[s],c.type===Jo?f(c.el):t,null,o,r,l,!0)}}function k(e,n,t,l,s,c,i){if(t!==l){for(const r in l){if(S(r))continue;const u=l[r],a=t[r];u!==a&&o(e,r,u,a,i,n.children,s,c,O)}if(t!==r)for(const r in t)S(r)||r in l||o(e,r,null,null,i,n.children,s,c,O)}}function T(e){const{vnode:n,subTree:t,fallbackTree:o,effects:r,parentComponent:l,container:s}=e;let{anchor:c}=e;o.el&&(c=_(o),P(o,l,e,!0)),M(t,s,c);const i=n.el=t.el;l&&l.subTree===n&&(l.vnode.el=i,E(l,i));let u=e.parent,a=!1;for(;u;){if(!u.isResolved){u.effects.push(...r),a=!0;break}u=u.parent}a||Bo(r),e.isResolved=!0;const f=n.props&&n.props.onResolve;d(f)&&f()}function N(e,n,t,o,l,s){let c=!1;e.update=ho((function(){if(c){const{next:t}=e;null!==t&&w(e,t);const o=e.subTree,l=e.subTree=Cr(e);null!==e.bu&&Hr(e.bu),e.refs!==r&&(e.refs={}),m(o,l,f(o.el),_(o),e,n,s),e.vnode.el=l.el,null===t&&E(e,l.el),null!==e.u&&Kr(e.u,n)}else{const r=e.subTree=Cr(e);null!==e.bm&&Hr(e.bm),m(null,r,o,l,e,n,s),t.el=r.el,null!==e.m&&Kr(e.m,n),c=!0}}),Br)}function w(e,n){n.component=e,e.vnode=n,e.next=null,Rr(e,n.props,n.type.props),Lr(e,n.children)}function E({vnode:e,parent:n},t){for(;n&&n.subTree===e;)(e=n.vnode).el=t,n=n.parent}function R(e,n,t,o,r,s,c,i=!1){const u=e&&e.children,f=e?e.shapeFlag:0,p=n.children,{patchFlag:d,shapeFlag:h}=n;if(-1===d&&(i=!1),d>0){if(64&d)return void $(u,p,t,o,r,s,c,i);if(128&d)return void function(e,n,t,o,r,s,c,i){n=n||l;const u=(e=e||l).length,a=n.length,f=Math.min(u,a);let p;for(p=0;p<f;p++){const o=i?n[p]:n[p]=ur(n[p]);m(e[p],o,t,null,r,s,c,i)}u>a?O(e,r,s,!0,f):b(n,t,o,r,s,c,i,f)}(u,p,t,o,r,s,c,i)}8&h?(16&f&&O(u,r,s),p!==u&&a(t,p)):16&f?16&h?$(u,p,t,o,r,s,c,i):O(u,r,s,!0):(8&f&&a(t,""),16&h&&b(p,t,o,r,s,c,i))}function $(e,n,t,o,r,s,c,i){let u=0;const a=n.length;let f=e.length-1,p=a-1;for(;u<=f&&u<=p;){const l=e[u],a=i?n[u]:n[u]=ur(n[u]);if(!zr(l,a))break;m(l,a,t,o,r,s,c,i),u++}for(;u<=f&&u<=p;){const l=e[f],a=i?n[u]:n[p]=ur(n[p]);if(!zr(l,a))break;m(l,a,t,o,r,s,c,i),f--,p--}if(u>f){if(u<=p){const e=p+1,l=e<a?n[e].el:o;for(;u<=p;)m(null,i?n[u]:n[u]=ur(n[u]),t,l,r,s,c),u++}}else if(u>p)for(;u<=f;)P(e[u],r,s,!0),u++;else{const d=u,h=u,g=new Map;for(u=h;u<=p;u++){const e=i?n[u]:n[u]=ur(n[u]);null!=e.key&&g.set(e.key,u)}let y,v=0;const b=p-h+1;let x=!1,S=0;const k=new Array(b);for(u=0;u<b;u++)k[u]=0;for(u=d;u<=f;u++){const o=e[u];if(v>=b){P(o,r,s,!0);continue}let l;if(null!=o.key)l=g.get(o.key);else for(y=h;y<=p;y++)if(0===k[y-h]&&zr(o,n[y])){l=y;break}void 0===l?P(o,r,s,!0):(k[l-h]=u+1,l>=S?S=l:x=!0,m(o,n[l],t,null,r,s,c,i),v++)}const T=x?function(e){const n=e.slice(),t=[0];let o,r,l,s,c;const i=e.length;for(o=0;o<i;o++){const i=e[o];if(0!==i){if(r=t[t.length-1],e[r]<i){n[o]=r,t.push(o);continue}for(l=0,s=t.length-1;l<s;)e[t[c=(l+s)/2|0]]<i?l=c+1:s=c;i<e[t[l]]&&(l>0&&(n[o]=t[l-1]),t[l]=o)}}l=t.length,s=t[l-1];for(;l-- >0;)t[l]=s,s=n[s];return t}(k):l;for(y=T.length-1,u=b-1;u>=0;u--){const e=h+u,l=n[e],i=e+1<a?n[e+1].el:o;0===k[u]?m(null,l,t,i,r,s,c):x&&(y<0||u!==T[y]?M(l,t,i):y--)}}}function M(e,t,o){if(null===e.component){if(e.type===Yo){const n=e.suspense;return M(n.isResolved?n.subTree:n.fallbackTree,t,o),void(n.container=t)}if(e.type===Jo){n(e.el,t,o);const r=e.children;for(let e=0;e<r.length;e++)M(r[e],t,o);n(e.anchor,t,o)}else n(e.el,t,o)}else M(e.component.subTree,t,o)}function P(e,n,o,r){const{props:l,ref:s,type:c,component:i,suspense:u,children:a,dynamicChildren:f,shapeFlag:p,anchor:d}=e;if(null!==s&&null!==n&&A(s,null,n,null),null!=i)return void function(e,n,t){const{bum:o,effects:r,update:l,subTree:s,um:c}=e;null!==o&&Hr(o);if(null!==r)for(let e=0;e<r.length;e++)go(r[e]);null!==l&&(go(l),P(s,e,n,t));null!==c&&Kr(c,n);Bo(()=>{e.isUnmounted=!0}),null===n||n.isResolved||n.isUnmounted||null===e.asyncDep||e.asyncResolved||(n.deps--,0===n.deps&&T(n))}(i,o,r);if(null!=u)return void function(e,n,t,o){e.isUnmounted=!0,P(e.subTree,n,t,o),e.isResolved||P(e.fallbackTree,n,t,o)}(u,n,o,r);null!=l&&null!=l.onVnodeBeforeUnmount&&Ir(l.onVnodeBeforeUnmount,n,e);const h=c===Jo&&r;null!=f?O(f,n,o,h):16&p&&O(a,n,o,h),r&&(t(e.el),null!=d&&t(d)),null!=l&&null!=l.onVnodeUnmounted&&Kr(()=>{Ir(l.onVnodeUnmounted,n,e)},o)}function O(e,n,t,o,r=0){for(let l=r;l<e.length;l++)P(e[l],n,t,o)}function _({component:e,suspense:n,anchor:t,el:o}){return null!==e?_(e.subTree):null!==n?_(n.isResolved?n.subTree:n.fallbackTree):p(t||o)}function A(e,n,t,o){const l=t.refs===r?t.refs={}:t.refs,s=io(t.renderContext);if(null!==n&&n!==e)if(h(n)){l[n]=null;const e=s[n];To(e)&&(e.value=null)}else To(n)&&(n.value=null);if(h(e)){const n=s[e];To(n)&&(n.value=o),l[e]=o}else To(e)?e.value=o:d(e)&&e(o,l)}const L=(e,n)=>{null==e?n._vnode&&P(n._vnode,null,null,!0):m(n._vnode||null,e,n),Ho(),n._vnode=e};return{render:L,createApp:jr(L)}}const Gr=e=>e();function Yr(e,n,t){return d(n)?qr(e,n,t):qr(e,null,n)}function qr(e,n,{lazy:t,deep:o,flush:l,onTrack:s,onTrigger:c}=r){const i=il,u=ul;let a,f;if(a=p(e)?()=>e.map(e=>To(e)?e.value:Ao(e,i,2)):To(e)?()=>e.value:n?()=>Ao(e,i,2):()=>{if(!i||!i.isUnmounted)return f&&f(),Ao(e,i,3,[d])},o){const e=a;a=()=>(function e(n,t=new Set){if(!m(n)||t.has(n))return;t.add(n);if(p(n))for(let o=0;o<n.length;o++)e(n[o],t);else if(n instanceof Map)n.forEach((o,r)=>{e(n.get(r),t)});else if(n instanceof Set)n.forEach(n=>{e(n,t)});else for(const o in n)e(n[o],t);return n})(e())}const d=e=>{f=v.onStop=()=>{Ao(e,i,4)}};let h=p(e)?[]:void 0;const g=n?()=>{if(i&&i.isUnmounted)return;const e=v();(o||E(e,h))&&(f&&f(),Lo(n,i,3,[e,h,d]),h=e)}:void 0;let y;y="sync"===l?Gr:"pre"===l?e=>{i&&null==i.vnode.el?e():Wo(e)}:e=>{Kr(e,u)};const v=ho(a,{lazy:!0,computed:!0,onTrack:s,onTrigger:c,scheduler:g?()=>y(g):y});return t?h=v():y(g||v),vl(v),()=>{go(v)}}function Xr(e,n,t){const o=this.renderProxy,r=Yr(h(e)?()=>o[e]:e.bind(o),n.bind(o),t);return xr(r,this),r}const Zr={$data:"data",$props:"propsProxy",$attrs:"attrs",$slots:"slots",$refs:"refs",$parent:"parent",$root:"root",$emit:"emit",$options:"type"},Qr={get(e,n){const{renderContext:t,data:o,props:l,propsProxy:s,accessCache:c,type:i,user:u}=e;if(n===Symbol.unscopables)return;const a=c[n];if(void 0!==a)switch(a){case 0:return o[n];case 1:return t[n];case 2:return s[n]}else{if(o!==r&&f(o,n))return c[n]=0,o[n];if(f(t,n))return c[n]=1,t[n];if(f(l,n))return null!=i.props&&(c[n]=2),s[n];if("$cache"===n)return e.renderCache||(e.renderCache=[]);if("$el"===n)return e.vnode.el;if(f(Zr,n))return e[Zr[n]]}switch(n){case"$forceUpdate":return e.update;case"$nextTick":return jo;case"$watch":return Xr.bind(e)}return f(u,n)?u[n]:void 0},set(e,n,t){const{data:o,renderContext:l}=e;if(o!==r&&f(o,n))o[n]=t;else if(f(l,n))l[n]=t;else{if("$"===n[0]&&n.slice(1)in e)return!1;if(n in e.props)return!1;e.user[n]=t}return!0}};function el(e,n){if(il){let t=il.provides;const o=il.parent&&il.parent.provides;o===t&&(t=il.provides=Object.create(o)),t[e]=n}else;}function nl(e,n){if(il){const t=il.provides;if(e in t)return t[e];if(void 0!==n)return n}}function tl(e,n,t=!1){const o=e.renderContext===r?e.renderContext=oo({}):e.renderContext,l=e.renderProxy,{mixins:c,extends:i,props:a,data:f,computed:h,methods:g,watch:y,provide:v,inject:b,components:x,directives:S,beforeMount:k,mounted:T,beforeUpdate:N,updated:w,beforeUnmount:C,unmounted:E,renderTracked:R,renderTriggered:$,errorCaptured:M}=n,P=e.appContext.mixins;if(t||(ol("beforeCreate",n,l,P),ll(e,P)),i&&tl(e,i,!0),c&&ll(e,c),f){const n=d(f)?f.call(l):f;m(n)&&(e.data===r?e.data=oo(n):u(e.data,n))}if(h)for(const e in h){const n=h[e];if(d(n))o[e]=bl(n.bind(l));else{const{get:t,set:r}=n;d(t)&&(o[e]=bl({get:t.bind(l),set:d(r)?r.bind(l):s}))}}if(g)for(const e in g){const n=g[e];d(n)&&(o[e]=n.bind(l))}if(y)for(const e in y)sl(y[e],o,l,e);if(v){const e=d(v)?v.call(l):v;for(const n in e)el(n,e[n])}if(b)if(p(b))for(let e=0;e<b.length;e++){const n=b[e];o[n]=nl(n)}else for(const e in b){const n=b[e];m(n)?o[e]=nl(n.from,n.default):o[e]=nl(n)}x&&u(e.components,x),S&&u(e.directives,S),t||ol("created",n,l,P),k&&mr(k.bind(l)),T&&yr(T.bind(l)),N&&vr(N.bind(l)),w&&br(w.bind(l)),M&&Nr(M.bind(l)),R&&Tr(R.bind(l)),$&&kr($.bind(l)),C&&xr(C.bind(l)),E&&Sr(E.bind(l))}function ol(e,n,t,o){rl(e,o,t);const r=n.extends&&n.extends[e];r&&r.call(t);const l=n.mixins;l&&rl(e,l,t);const s=n[e];s&&s.call(t)}function rl(e,n,t){for(let o=0;o<n.length;o++){const r=n[o][e];r&&r.call(t)}}function ll(e,n){for(let t=0;t<n.length;t++)tl(e,n[t],!0)}function sl(e,n,t,o){const r=()=>t[o];if(h(e)){const t=n[e];d(t)&&Yr(r,t)}else d(e)?Yr(r,e.bind(t)):m(e)&&(p(e)?e.forEach(e=>sl(e,n,t,o)):Yr(r,e.handler.bind(t),e))}Qr.has=(e,n)=>"_"!==n[0]&&!o(n);const cl=Dr();let il=null,ul=null;const al=()=>il,fl=e=>{il=e};function pl(e,n,t){d(n)?e.render=n:m(n)&&(e.renderContext=oo(n)),gl(e,t)}let dl;function hl(e){dl=e}function gl(e,n){const t=e.type;e.render||(t.template&&!t.render&&(t.render=dl(t.template,{isCustomElement:e.appContext.config.isCustomElement||c,onError(e){}})),e.render=t.render||s),il=e,ul=n,tl(e,t),il=null,ul=null,e.renderContext===r&&(e.renderContext=oo({}))}const ml=Symbol(),yl={};function vl(e){il&&(il.effects||(il.effects=[])).push(e)}function bl(e){const n=Co(e);return vl(n.effect),n}function xl(e,n,t){return 2===arguments.length?m(n)&&!p(n)?rr(n)?lr(e,null,[n]):lr(e,n):lr(e,null,n):(rr(t)&&(t=[t]),lr(e,n,t))}["attrs","slots"].forEach(e=>{yl[e]={get:(n,t)=>n[e][t],has:(n,t)=>t===ml||t in n[e],ownKeys:n=>Reflect.ownKeys(n[e]),getOwnPropertyDescriptor:(n,t)=>Reflect.getOwnPropertyDescriptor(n[e],t),set:()=>!1,deleteProperty:()=>!1}});const Sl={ELEMENT:1,FUNCTIONAL_COMPONENT:2,STATEFUL_COMPONENT:4,TEXT_CHILDREN:8,ARRAY_CHILDREN:16,SLOTS_CHILDREN:32,COMPONENT:6};function kl(e){return wl("components",e)}function Tl(e){if(e)return h(e)?wl("components",e):d(e)||m(e)?e:void 0}function Nl(e){return wl("directives",e)}function wl(e,n){const t=wr||il;if(t){let o;const r=t[e];return r[n]||r[o=T(n)]||r[C(o)]}}function Cl(e,n){let t;if(p(e)||h(e)){t=new Array(e.length);for(let o=0,r=e.length;o<r;o++)t[o]=n(e[o],o)}else if("number"==typeof e){t=new Array(e);for(let o=0;o<e;o++)t[o]=n(o+1,o)}else if(m(e))if(e[Symbol.iterator])t=Array.from(e,n);else{const o=Object.keys(e);t=new Array(o.length);for(let r=0,l=o.length;r<l;r++){const l=o[r];t[r]=n(e[l],l,r)}}return t}function El(e){return null==e?"":p(e)||x(e)&&e.toString===v?JSON.stringify(e,null,2):String(e)}function Rl(e){const n={};for(const t in e)n[`on${t}`]=e[t];return n}function $l(e,n,t={},o){const r=e[n];return er(),or(Jo,{key:t.key},r?r(t):o||[],e._compiled?0:-1)}function Ml(e,n){for(let t=0;t<n.length;t++){const o=n[t];if(p(o))for(let n=0;n<o.length;n++)e[o[n].name]=o[n].fn;else e[o.name]=o.fn}return e}const Pl="3.0.0-alpha.1",Ol=document,_l={insert:(e,n,t)=>{null!=t?n.insertBefore(e,t):n.appendChild(e)},remove:e=>{const n=e.parentNode;null!=n&&n.removeChild(e)},createElement:(e,n)=>n?Ol.createElementNS("http://www.w3.org/2000/svg",e):Ol.createElement(e),createText:e=>Ol.createTextNode(e),createComment:e=>Ol.createComment(e),setText:(e,n)=>{e.nodeValue=n},setElementText:(e,n)=>{e.textContent=n},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ol.querySelector(e)};let Al=Date.now;"undefined"!=typeof document&&Al()>document.createEvent("Event").timeStamp&&(Al=()=>performance.now());let Ll=0;const Fl=Promise.resolve(),Vl=()=>{Ll=0},Ul=()=>Ll||(Fl.then(Vl),Ll=Al());function Il(e,n,t,o){e.addEventListener(n,t,o)}function Dl(e,n,t,o){e.removeEventListener(n,t,o)}function jl(e,n){const t=e=>{e.timeStamp>=t.lastUpdated-1&&Lo(t.value,n,5,[e])};return t.value=e,e.invoker=t,t.lastUpdated=Ul(),t}const Wl=e=>e.props["onUpdate:modelValue"];function Bl(e){e.target.composing=!0}function zl(e){const n=e.target;n.composing&&(n.composing=!1,function(e,n){const t=document.createEvent("HTMLEvents");t.initEvent(n,!0,!0),e.dispatchEvent(t)}(n,"input"))}function Hl(e){const n=parseFloat(e);return isNaN(n)?e:n}const Kl={beforeMount(e,{value:n,modifiers:{lazy:t,trim:o,number:r}},l){e.value=n;const s=Wl(l),c=r||"number"===e.type;Il(e,t?"change":"input",()=>{let n=e.value;o?n=n.trim():c&&(n=Hl(n)),s(n)}),o&&Il(e,"change",()=>{e.value=e.value.trim()}),t||(Il(e,"compositionstart",Bl),Il(e,"compositionend",zl),Il(e,"change",zl))},beforeUpdate(e,{value:n,modifiers:{trim:t,number:o}}){if(document.activeElement===e){if(t&&e.value.trim()===n)return;if((o||"number"===e.type)&&Hl(e.value)===n)return}e.value=n}},Jl={beforeMount(e,n,t){Gl(e,n,t);const o=Wl(t);Il(e,"change",()=>{const n=e._modelValue,t=es(e),r=e.checked;if(p(n)){const e=Ql(n,t),l=-1!==e;if(r&&!l)o(n.concat(t));else if(!r&&l){const t=[...n];t.splice(e,1),o(t)}}else o(r)})},beforeUpdate:Gl};function Gl(e,{value:n},t){e._modelValue=n,e.checked=p(n)?Ql(n,t.props.value)>-1:!!n}const Yl={beforeMount(e,{value:n},t){e.checked=Zl(n,t.props.value);const o=Wl(t);Il(e,"change",()=>{o(es(e))})},beforeUpdate(e,{value:n},t){e.checked=Zl(n,t.props.value)}},ql={mounted(e,{value:n},t){Xl(e,n);const o=Wl(t);Il(e,"change",()=>{const n=Array.prototype.filter.call(e.options,e=>e.selected).map(es);o(e.multiple?n:n[0])})},updated(e,{value:n}){Xl(e,n)}};function Xl(e,n){const t=e.multiple;if(!t||p(n)){for(let o=0,r=e.options.length;o<r;o++){const r=e.options[o],l=es(r);if(t)r.selected=Ql(n,l)>-1;else if(Zl(es(r),n))return void(e.selectedIndex=o)}t||(e.selectedIndex=-1)}}function Zl(e,n){if(e===n)return!0;const t=m(e),o=m(n);if(!t||!o)return!t&&!o&&String(e)===String(n);try{const t=p(e),o=p(n);if(t&&o)return e.length===n.length&&e.every((e,t)=>Zl(e,n[t]));if(e instanceof Date&&n instanceof Date)return e.getTime()===n.getTime();if(t||o)return!1;{const t=Object.keys(e),o=Object.keys(n);return t.length===o.length&&t.every(t=>Zl(e[t],n[t]))}}catch(e){return!1}}function Ql(e,n){return e.findIndex(e=>Zl(e,n))}function es(e){return"_value"in e?e._value:e.value}const ns={beforeMount(e,n,t){ts(e,n,t,null,"beforeMount")},mounted(e,n,t){ts(e,n,t,null,"mounted")},beforeUpdate(e,n,t,o){ts(e,n,t,o,"beforeUpdate")},updated(e,n,t,o){ts(e,n,t,o,"updated")}};function ts(e,n,t,o,r){let l;switch(e.tagName){case"SELECT":l=ql;break;case"TEXTAREA":l=Kl;break;default:switch(e.type){case"checkbox":l=Jl;break;case"radio":l=Yl;break;default:l=Kl}}const s=l[r];s&&s(e,n,t,o)}const os=["ctrl","shift","alt","meta"],rs={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,n)=>os.some(t=>e[`${t}Key`]&&!n.includes(t))},ls=(e,n)=>t=>{for(let e=0;e<n.length;e++){const o=rs[n[e]];if(o&&o(t,n))return}return e(t)},ss={esc:"escape",space:" ",up:"arrowup",left:"arrowleft",right:"arrowright",down:"arrowdown",delete:"backspace"},cs=(e,n)=>t=>{if(!("key"in t))return;const o=t.key.toLowerCase();return n.some(e=>e===o||ss[e]===o)?e(t):void 0},{render:is,createApp:us}=Jr({patchProp:function(e,n,t,o,l,s,c,u,a){switch(n){case"class":!function(e,n,t){t?e.setAttribute("class",n):e.className=n}(e,t,l);break;case"style":!function(e,n,t){const o=e.style;if(t)if(h(t))o.cssText=t;else{for(const e in t)o[e]=t[e];if(n&&!h(n))for(const e in n)t[e]||(o[e]="")}else e.removeAttribute("style")}(e,o,t);break;case"modelValue":case"onUpdate:modelValue":break;default:i(n)?function(e,n,t,o,l=null){const s=t&&"options"in t&&t.options,c=o&&"options"in o&&o.options,i=t&&t.invoker,u=o&&"handler"in o?o.handler:o;if(s||c){const t=s||r,a=c||r;if(t.capture!==a.capture||t.passive!==a.passive||t.once!==a.once){if(i&&Dl(e,n,i,t),o&&u){const t=jl(u,l);o.invoker=t,Il(e,n,t,a)}return}}o&&u?i?(t.invoker=null,i.value=u,o.invoker=i,i.lastUpdated=Ul()):Il(e,n,jl(u,l),c||void 0):i&&Dl(e,n,i,s||void 0)}(e,n.slice(2).toLowerCase(),o,t,c):!l&&n in e?function(e,n,t,o,r,l,s){"innerHTML"!==n&&"textContent"!==n||null==o||s(o,r,l),"value"===n&&"PROGRESS"!==e.tagName&&(e._value=t),""===t&&"boolean"==typeof e[n]?e[n]=!0:e[n]=null==t?"":t}(e,n,t,s,c,u,a):function(e,n,t){null==t?e.removeAttribute(n):e.setAttribute(n,t)}(e,n,t)}},..._l}),as=()=>{const e=us(),n=e.mount;return e.mount=(e,t,o)=>{if(!h(t)||(t=document.querySelector(t)))return d(e)||e.render||e.template||(e.template=t.innerHTML),t.innerHTML="",n(e,t,o)},e};var fs=Object.freeze({__proto__:null,render:is,createApp:as,vModelText:Kl,vModelCheckbox:Jl,vModelRadio:Yl,vModelSelect:ql,vModelDynamic:ns,withModifiers:ls,withKeys:cs,version:"3.0.0-alpha.1",createComponent:bt,nextTick:jo,h:xl,createVNode:lr,cloneVNode:sr,mergeProps:dr,openBlock:er,createBlock:or,Text:qo,Comment:Xo,Fragment:Jo,Portal:Go,Suspense:Yo,ShapeFlags:Sl,PatchFlags:e,getCurrentInstance:al,createRenderer:Jr,warn:Ro,handleError:Fo,callWithErrorHandling:Ao,callWithAsyncErrorHandling:Lo,withDirectives:Ur,resolveComponent:kl,resolveDirective:Nl,resolveDynamicComponent:Tl,renderList:Cl,toString:El,toHandlers:Rl,renderSlot:$l,createSlots:Ml,setBlockTracking:tr,createTextVNode:cr,createCommentVNode:ir,capitalize:C,camelize:T,registerRuntimeCompiler:hl,recordEffect:vl,computed:bl,ref:ko,isRef:To,toRefs:No,reactive:oo,isReactive:so,readonly:ro,isReadonly:co,toRaw:io,markReadonly:uo,markNonReactive:ao,effect:ho,watch:Yr,instanceWatch:Xr,onBeforeMount:mr,onMounted:yr,onBeforeUpdate:vr,onUpdated:br,onBeforeUnmount:xr,onUnmounted:Sr,onRenderTriggered:kr,onRenderTracked:Tr,onErrorCaptured:Nr,provide:el,inject:nl});function ps(e,n){const{code:t}=vt(e,{hoistStatic:!0,...n});return new Function("Vue",t)(fs)}hl(ps);export{Xo as Comment,Jo as Fragment,e as PatchFlags,Go as Portal,Sl as ShapeFlags,Yo as Suspense,qo as Text,Lo as callWithAsyncErrorHandling,Ao as callWithErrorHandling,T as camelize,C as capitalize,sr as cloneVNode,ps as compile,bl as computed,as as createApp,or as createBlock,ir as createCommentVNode,bt as createComponent,Jr as createRenderer,Ml as createSlots,cr as createTextVNode,lr as createVNode,ho as effect,al as getCurrentInstance,xl as h,Fo as handleError,nl as inject,Xr as instanceWatch,so as isReactive,co as isReadonly,To as isRef,ao as markNonReactive,uo as markReadonly,dr as mergeProps,jo as nextTick,mr as onBeforeMount,xr as onBeforeUnmount,vr as onBeforeUpdate,Nr as onErrorCaptured,yr as onMounted,Tr as onRenderTracked,kr as onRenderTriggered,Sr as onUnmounted,br as onUpdated,er as openBlock,el as provide,oo as reactive,ro as readonly,vl as recordEffect,ko as ref,hl as registerRuntimeCompiler,is as render,Cl as renderList,$l as renderSlot,kl as resolveComponent,Nl as resolveDirective,Tl as resolveDynamicComponent,tr as setBlockTracking,Rl as toHandlers,io as toRaw,No as toRefs,El as toString,Jl as vModelCheckbox,ns as vModelDynamic,Yl as vModelRadio,ql as vModelSelect,Kl as vModelText,Pl as version,Ro as warn,Yr as watch,Ur as withDirectives,cs as withKeys,ls as withModifiers};