import{a as e,i as t,n,r,t as i}from"./rolldown-runtime-BYbx6iT9.js";import{$t as a,At as o,C as s,D as c,Dt as l,Et as u,Ht as d,I as f,It as p,Jt as m,Lt as h,Mt as g,Nt as _,O as v,Ot as y,Q as b,Qt as x,Rt as S,S as C,Ut as w,V as T,Vt as E,W as D,Wt as O,Xt as ee,Y as k,Yt as A,Z as j,Zt as te,_t as M,an as ne,at as re,b as ie,bt as ae,ct as oe,g as se,i as ce,in as N,jt as le,k as ue,kt as de,nn as fe,nt as pe,o as me,ot as he,p as ge,q as _e,qt as ve,rn as ye,st as P,w as be,x as F,xt as xe}from"./vue.runtime.esm-bundler-OsdSFvn7.js";import{b as Se,d as Ce,f as I,i as we,l as L,n as Te,u as Ee}from"./index-CFpi33NM.js";import{t as De}from"./_plugin-vue_export-helper-CXTkFu_Z.js";import{c as Oe,i as ke,l as Ae,n as je,o as Me,r as Ne,s as Pe,t as Fe}from"./competitions-toxHL3V-.js";import{t as Ie}from"./adminCompetition-CPsyEKYe.js";import{n as Le,r as Re,t as ze}from"./competitionBranding-DKFkcrfF.js";import{n as Be,r as Ve}from"./datetimeShanghai-B0jGVWUG.js";import{n as He}from"./publicSourceChannels-DZjLtaHi.js";import{i as Ue,n as We,r as Ge,t as Ke}from"./signupChannels-CsmcZi8Y.js";import{a as qe,n as Je,o as Ye,r as Xe,t as Ze}from"./applications-B1Ah3pFi.js";async function Qe(e,t){let{data:n}=await we.get(`/competitions/${e}/form-schemas`,{params:t?{purpose:t}:{}}),r=n;return{data:r.data??[],signupFieldRegistry:r.meta?.signup_field_registry}}async function $e(e,t){let{data:n}=await we.get(`/competitions/${e}/form-schemas/${t}`),r=n?.data??n;if(!r||typeof r!=`object`||!(`id`in r))throw Error(`表单详情无效`);return r}async function et(e,t){let{data:n}=await we.post(`/competitions/${e}/form-schemas`,t);return n}async function tt(e,t,n){let{data:r}=await we.patch(`/competitions/${e}/form-schemas/${t}`,n);return r}async function nt(e,t){await we.delete(`/competitions/${e}/form-schemas/${t}`)}var rt=`commitment_accepted`,it=`commitment_promise`,at={scalar_field_keys:[`player_name`,`school`,`degree`,`contact_email`,`contact_mobile`,`entry_group`,`company_name`,`project_name`,`track`,`location_country`,`location_province`,`location_city`,`oversea_country`,`intro`,`recommend`],file_field_keys:[...[`plan`,`supporting`]],commitment_field_key:rt,scalar_type_hints:{player_name:[`text`],school:[`text`],degree:[`select`],contact_email:[`email`,`text`],contact_mobile:[`tel`,`text`],entry_group:[`select`],company_name:[`text`],project_name:[`text`],track:[`select`],location_country:[`select`],location_province:[`select`,`text`],location_city:[`select`,`text`],oversea_country:[`text`],intro:[`textarea`,`text`],recommend:[`text`,`textarea`]},generic_scalar_types:[`text`,`textarea`,`email`,`tel`,`select`,`number`,`date`],all_supported_form_keys:[]};at.all_supported_form_keys=[...at.scalar_field_keys,...at.file_field_keys,at.commitment_field_key];var ot=at;function st(e){e&&Array.isArray(e.scalar_field_keys)&&(ot=e)}function ct(e){let t=ot;return t.scalar_type_hints[e]??t.generic_scalar_types}function lt(e,t){let n=e.trim(),r=t.trim();if(!n)return`存在未填写「字段 key」的项(须与 applications 表列名一致)`;let i=ot;if(n===i.commitment_field_key)return r===`checkbox`||r===`commitment_promise`?null:`参赛承诺书字段须为 checkbox 类型`;if(i.file_field_keys.includes(n))return r===`file`?null:`附件字段「${n}」须为 file 类型`;if(!i.scalar_field_keys.includes(n))return`字段 key「${n}」不是 applications 表可填列,请使用:${i.all_supported_form_keys.join(`、`)}(新增列请先做数据库迁移并加入 Application.$fillable)`;let a=ct(n);return!r||!a.includes(r)?`字段「${n}」类型须为:${a.join(` / `)}`:null}function ut(e){Object.getOwnPropertySymbols(e).forEach(t=>{vi[t]=e[t]})}function dt(e,t=``){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:[],temps:0,codegenNode:void 0,loc:Ci}}function ft(e,t,n,r,i,a,o,s=!1,c=!1,l=!1,u=Ci){return e&&(s?(e.helper(Rr),e.helper(At(e.inSSR,l))):e.helper(kt(e.inSSR,l)),o&&e.helper(Xr)),{type:13,tag:t,props:n,children:r,patchFlag:i,dynamicProps:a,directives:o,isBlock:s,disableTracking:c,isComponent:l,loc:u}}function pt(e,t=Ci){return{type:17,loc:t,elements:e}}function mt(e,t=Ci){return{type:15,loc:t,properties:e}}function ht(e,t){return{type:16,loc:Ci,key:A(e)?gt(e,!0):e,value:t}}function gt(e,t=!1,n=Ci,r=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:r}}function _t(e,t){return{type:5,loc:t,content:A(e)?gt(e,!1,t):e}}function vt(e,t=Ci){return{type:8,loc:t,children:e}}function yt(e,t=[],n=Ci){return{type:14,loc:n,callee:e,arguments:t}}function bt(e,t=void 0,n=!1,r=!1,i=Ci){return{type:18,params:e,returns:t,newline:n,isSlot:r,loc:i}}function xt(e,t,n,r=!0){return{type:19,test:e,consequent:t,alternate:n,newline:r,loc:Ci}}function St(e,t,n=!1,r=!1){return{type:20,index:e,value:t,needPauseTracking:n,inVOnce:r,needArraySpread:!1,loc:Ci}}function Ct(e){return{type:21,body:e,loc:Ci}}function wt(e){return{type:22,elements:e,loc:Ci}}function Tt(e,t,n){return{type:23,test:e,consequent:t,alternate:n,loc:Ci}}function Et(e,t){return{type:24,left:e,right:t,loc:Ci}}function Dt(e){return{type:25,expressions:e,loc:Ci}}function Ot(e){return{type:26,returns:e,loc:Ci}}function kt(e,t){return e||t?Vr:Hr}function At(e,t){return e||t?zr:Br}function jt(e,{helper:t,removeHelper:n,inSSR:r}){e.isBlock||(e.isBlock=!0,n(kt(r,e.isComponent)),t(Rr),t(At(r,e.isComponent)))}function Mt(e){return e>=97&&e<=122||e>=65&&e<=90}function Nt(e){return e===32||e===10||e===9||e===12||e===13}function Pt(e){return e===47||e===62||Nt(e)}function Ft(e){let t=new Uint8Array(e.length);for(let n=0;n{e&&Qt(e,t)});break;case`RestElement`:Qt(e.argument,t);break;case`AssignmentPattern`:Qt(e.left,t);break}return t}function $t(e){return Fi.includes(e.type)?$t(e.expression):e}function en(e){switch(e){case`Teleport`:case`teleport`:return Pr;case`Suspense`:case`suspense`:return Fr;case`KeepAlive`:case`keep-alive`:return Ir;case`BaseTransition`:case`base-transition`:return Lr}}function tn(e,t,n=t.length){return nn({offset:e.offset,line:e.line,column:e.column},t,n)}function nn(e,t,n=t.length){let r=0,i=-1;for(let e=0;ee.type===7&&e.name===`bind`&&(!e.arg||e.arg.type!==4||!e.arg.isStatic))}function ln(e){return e.type===5||e.type===2}function un(e){return e.type===7&&e.name===`pre`}function dn(e){return e.type===7&&e.name===`slot`}function fn(e){return e.type===1&&e.tagType===3}function pn(e){return e.type===1&&e.tagType===2}function mn(e,t=[]){if(e&&!A(e)&&e.type===14){let n=e.callee;if(!A(n)&&Xi.has(n))return mn(e.arguments[0],t.concat(e))}return[e,t]}function hn(e,t,n){let r,i=e.type===13?e.props:e.arguments[2],a=[],o;if(i&&!A(i)&&i.type===14){let e=mn(i);i=e[0],a=e[1],o=a[a.length-1]}if(i==null||A(i))r=mt([t]);else if(i.type===14){let e=i.arguments[0];!A(e)&&e.type===15?gn(t,e)||e.properties.unshift(t):i.callee===oi?r=yt(n.helper(ti),[mt([t]),i]):i.arguments.unshift(mt([t])),!r&&(r=i)}else i.type===15?(gn(t,i)||i.properties.unshift(t),r=i):(r=yt(n.helper(ti),[mt([t]),i]),o&&o.callee===ai&&(o=a[a.length-2]));e.type===13?o?o.arguments[0]=r:e.props=r:o?o.arguments[0]=r:e.arguments[2]=r}function gn(e,t){let n=!1;if(e.key.type===4){let r=e.key.content;n=t.properties.some(e=>e.key.type===4&&e.key.content===r)}return n}function _n(e,t){return`_${t}_${e.replace(/[^\w]/g,(t,n)=>t===`-`?`_`:e.charCodeAt(n).toString())}`}function vn(e,t){if(!e||Object.keys(t).length===0)return!1;switch(e.type){case 1:for(let n=0;nvn(e,t));case 11:return vn(e.source,t)?!0:e.children.some(e=>vn(e,t));case 9:return e.branches.some(e=>vn(e,t));case 10:return vn(e.condition,t)?!0:e.children.some(e=>vn(e,t));case 4:return!e.isStatic&&Ri(e.content)&&!!t[e.content];case 8:return e.children.some(e=>w(e)&&vn(e,t));case 5:case 12:return vn(e.content,t);case 2:case 3:case 20:return!1;default:return!1}}function yn(e){return e.type===14&&e.callee===gi?e.arguments[1].returns:e}function bn(e){for(let t=0;t{let i=t.start.offset+n;return Vn(e,!1,Ln(i,i+e.length),0,+!!r)},s={source:o(a.trim(),n.indexOf(a,i.length)),value:void 0,key:void 0,index:void 0,finalized:!1},c=i.trim().replace(pa,``).trim(),l=i.indexOf(c),u=c.match(fa);if(u){c=c.replace(fa,``).trim();let e=u[1].trim(),t;if(e&&(t=n.indexOf(e,l+c.length),s.key=o(e,t,!0)),u[2]){let r=u[2].trim();r&&(s.index=o(r,n.indexOf(r,s.key?t+e.length:l+c.length),!0))}}return c&&(s.value=o(c,l,!0)),s}function wn(e,t){return ta.slice(e,t)}function Tn(e){da.inSFCRoot&&(na.innerLoc=Ln(e+1,e+1)),In(na);let{tag:t,ns:n}=na;n===0&&$i.isPreTag(t)&&sa++,$i.isVoidTag(t)?Dn(na,e):(ua.unshift(na),(n===1||n===2)&&(da.inXML=!0)),na=null}function En(e,t,n){{let t=ua[0]&&ua[0].tag;t!==`script`&&t!==`style`&&e.includes(`&`)&&(e=$i.decodeEntities(e,!1))}let r=ua[0]||ea,i=r.children[r.children.length-1];i&&i.type===2?(i.content+=e,zn(i.loc,n)):r.children.push({type:2,content:e,loc:Ln(t,n)})}function Dn(e,t,n=!1){n?zn(e.loc,kn(t,60)):zn(e.loc,On(t,62)+1),da.inSFCRoot&&(e.children.length?e.innerLoc.end=g({},e.children[e.children.length-1].loc.end):e.innerLoc.end=g({},e.innerLoc.start),e.innerLoc.source=wn(e.innerLoc.start.offset,e.innerLoc.end.offset));let{tag:r,ns:i,children:a}=e;if(ca||(r===`slot`?e.tagType=2:An(e)?e.tagType=3:jn(e)&&(e.tagType=1)),da.inRCDATA||(e.children=Nn(a)),i===0&&$i.isIgnoreNewlineTag(r)){let e=a[0];e&&e.type===2&&(e.content=e.content.replace(/^\r?\n/,``))}i===0&&$i.isPreTag(r)&&sa--,la===e&&(ca=da.inVPre=!1,la=null),da.inXML&&(ua[0]?ua[0].ns:$i.ns)===0&&(da.inXML=!1);{let t=e.props;if(!da.inSFCRoot&&Lt(`COMPILER_NATIVE_TEMPLATE`,$i)&&e.tag===`template`&&!An(e)){let t=ua[0]||ea,n=t.children.indexOf(e);t.children.splice(n,1,...e.children)}let n=t.find(e=>e.type===6&&e.name===`inline-template`);n&&Rt(`COMPILER_INLINE_TEMPLATE`,$i,n.loc)&&e.children.length&&(n.value={type:2,content:wn(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:n.loc})}}function On(e,t){let n=e;for(;ta.charCodeAt(n)!==t&&n=0;)n--;return n}function An({tag:e,props:t}){if(e===`template`){for(let e=0;e64&&e<91}function Nn(e){let t=$i.whitespace!==`preserve`,n=!1;for(let r=0;re.type!==3);return t.length===1&&t[0].type===1&&!pn(t[0])?t[0]:null}function Kn(e,t,n,r=!1,i=!1){let{children:a}=e,o=[];for(let t=0;t0){if(e>=2){s.codegenNode.patchFlag=-1,o.push(s);continue}}else{let e=s.codegenNode;if(e.type===13){let t=e.patchFlag;if((t===void 0||t===512||t===1)&&Yn(s,n)>=2){let t=Xn(s);t&&(e.props=n.hoist(t))}e.dynamicProps&&=n.hoist(e.dynamicProps)}}}else if(s.type===12&&(r?0:qn(s,n))>=2){s.codegenNode.type===14&&s.codegenNode.arguments.length>0&&s.codegenNode.arguments.push(`-1`),o.push(s);continue}if(s.type===1){let t=s.tagType===1;t&&n.scopes.vSlot++,Kn(s,e,n,!1,i),t&&n.scopes.vSlot--}else if(s.type===11)Kn(s,e,n,s.children.length===1,!0);else if(s.type===9)for(let t=0;te.key===t||e.key.content===t);return n&&n.value}}o.length&&n.transformHoist&&n.transformHoist(a,n,e)}function qn(e,t){let{constantCache:n}=t;switch(e.type){case 1:if(e.tagType!==0)return 0;let r=n.get(e);if(r!==void 0)return r;let i=e.codegenNode;if(i.type!==13||i.isBlock&&e.tag!==`svg`&&e.tag!==`foreignObject`&&e.tag!==`math`)return 0;if(i.patchFlag===void 0){let r=3,a=Yn(e,t);if(a===0)return n.set(e,0),0;a1)for(let i=0;in&&(E.childIndex--,E.onNodeRemoved()),E.parent.children.splice(n,1)},onNodeRemoved:de,addIdentifiers(e){},removeIdentifiers(e){},hoist(e){A(e)&&(e=gt(e)),E.hoists.push(e);let t=gt(`_hoisted_${E.hoists.length}`,!1,e.loc,2);return t.hoisted=e,t},cache(e,t=!1,n=!1){let r=St(E.cached.length,e,t,n);return E.cached.push(r),r}};return E.filters=new Set,E}function Qn(e,t){let n=Zn(e,t);$n(e,n),t.hoistStatic&&eee(e,n),t.ssr||tee(e,n),e.helpers=new Set([...n.helpers.keys()]),e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.transformed=!0,e.filters=[...n.filters]}function tee(e,t){let{helper:n}=t,{children:r}=e;if(r.length===1){let n=Gn(e);if(n&&n.codegenNode){let r=n.codegenNode;r.type===13&&jt(r,t),e.codegenNode=r}else e.codegenNode=r[0]}else r.length>1&&(e.codegenNode=ft(t,n(Nr),void 0,e.children,64,void 0,void 0,!0,void 0,!1))}function nee(e,t){let n=0,r=()=>{n--};for(;nt===e:t=>e.test(t);return(e,r)=>{if(e.type===1){let{props:i}=e;if(e.tagType===3&&i.some(dn))return;let a=[];for(let o=0;o0,p=!a&&r!==`module`;if(iee(e,n),i(`function ${u?`ssrRender`:`render`}(${(u?[`_ctx`,`_push`,`_parent`,`_attrs`]:[`_ctx`,`_cache`]).join(`, `)}) {`),o(),p&&(i(`with (_ctx) {`),o(),f&&(i(`const { ${d.map(va).join(`, `)} } = _Vue `,-1),c())),e.components.length&&(nr(e.components,`component`,n),(e.directives.length||e.temps>0)&&c()),e.directives.length&&(nr(e.directives,`directive`,n),e.temps>0&&c()),e.filters&&e.filters.length&&(c(),nr(e.filters,`filter`,n),c()),e.temps>0){i(`let `);for(let t=0;t0?`, `:``}_temp${t}`)}return(e.components.length||e.directives.length||e.temps)&&(i(` `,0),c()),u||i(`return `),e.codegenNode?ar(e.codegenNode,n):i(`null`),p&&(s(),i(`}`)),s(),i(`}`),{ast:e,code:n.code,preamble:``,map:n.map?n.map.toJSON():void 0}}function iee(e,t){let{ssr:n,prefixIdentifiers:r,push:i,newline:a,runtimeModuleName:o,runtimeGlobalName:s,ssrRuntimeModuleName:c}=t,l=s,u=Array.from(e.helpers);u.length>0&&(i(`const _Vue = ${l} `,-1),e.hoists.length&&i(`const { ${[Vr,Hr,Ur,Wr,Gr].filter(e=>u.includes(e)).map(va).join(`, `)} } = _Vue `,-1)),aee(e.hoists,t),a(),i(`return `)}function nr(e,t,{helper:n,push:r,newline:i,isTS:a}){let o=n(t===`filter`?Yr:t===`component`?Kr:Jr);for(let n=0;n3||!1;t.push(`[`),n&&t.indent(),ir(e,t,n),n&&t.deindent(),t.push(`]`)}function ir(e,t,n=!1,r=!0){let{push:i,newline:a}=t;for(let o=0;oe||`null`)}function fee(e,t){let{push:n,helper:r,pure:i}=t,a=A(e.callee)?e.callee:r(e.callee);i&&n(_a),n(a+`(`,-2,e),ir(e.arguments,t),n(`)`)}function pee(e,t){let{push:n,indent:r,deindent:i,newline:a}=t,{properties:o}=e;if(!o.length){n(`{}`,-2,e);return}let s=o.length>1||!1;n(s?`{`:`{ `),s&&r();for(let e=0;e `),(c||s)&&(n(`{`),r()),o?(c&&n(`return `),h(o)?rr(o,t):ar(o,t)):s&&ar(s,t),(c||s)&&(i(),n(`}`)),l&&(e.isNonScopedSlot&&n(`, undefined, true`),n(`)`))}function gee(e,t){let{test:n,consequent:r,alternate:i,newline:a}=e,{push:o,indent:s,deindent:c,newline:l}=t;if(n.type===4){let e=!Ri(n.content);e&&o(`(`),or(n,t),e&&o(`)`)}else o(`(`),ar(n,t),o(`)`);a&&s(),t.indentLevel++,a||o(` `),o(`? `),ar(r,t),t.indentLevel--,a&&l(),a||o(` `),o(`: `);let u=i.type===19;u||t.indentLevel++,ar(i,t),u||t.indentLevel--,a&&c(!0)}function _ee(e,t){let{push:n,helper:r,indent:i,deindent:a,newline:o}=t,{needPauseTracking:s,needArraySpread:c}=e;c&&n(`[...(`),n(`_cache[${e.index}] || (`),s&&(i(),n(`${r(ui)}(-1`),e.inVOnce&&n(`, true`),n(`),`),o(),n(`(`)),n(`_cache[${e.index}] = `),ar(e.value,t),s&&(n(`).cacheIndex = ${e.index},`),o(),n(`${r(ui)}(1),`),o(),n(`_cache[${e.index}]`),a()),n(`)`),c&&n(`)]`)}function cr(e,t,n=!1,r=!1,i=Object.create(t.identifiers)){return e}function lr(e){return A(e)?e:e.type===4?e.content:e.children.map(lr).join(``)}function ur(e,t,n,r){if(t.name!==`else`&&(!t.exp||!t.exp.content.trim())){let r=t.exp?t.exp.loc:e.loc;n.onError(Ht(28,t.loc)),t.exp=gt(`true`,!1,r)}if(t.name===`if`){let i=dr(e,t),a={type:9,loc:Rn(e.loc),branches:[i]};if(n.replaceNode(a),r)return r(a,i,!0)}else{let i=n.parent.children,a=i.indexOf(e);for(;a-->=-1;){let o=i[a];if(o&&Sn(o)){n.removeNode(o);continue}if(o&&o.type===9){(t.name===`else-if`||t.name===`else`)&&o.branches[o.branches.length-1].condition===void 0&&n.onError(Ht(30,e.loc)),n.removeNode();let i=dr(e,t);o.branches.push(i);let a=r&&r(o,i,!1);$n(i,n),a&&a(),n.currentNode=null}else n.onError(Ht(30,e.loc));break}}}function dr(e,t){let n=e.tagType===3;return{type:10,loc:e.loc,condition:t.name===`else`?void 0:t.exp,children:n&&!an(e,`for`)?e.children:[e],userKey:on(e,`key`),isTemplateIf:n}}function fr(e,t,n){return e.condition?xt(e.condition,pr(e,t,n),yt(n.helper(Ur),[`""`,`true`])):pr(e,t,n)}function pr(e,t,n){let{helper:r}=n,i=ht(`key`,gt(`${t}`,!1,Ci,2)),{children:a}=e,o=a[0];if(a.length!==1||o.type!==1)if(a.length===1&&o.type===11){let e=o.codegenNode;return hn(e,i,n),e}else return ft(n,r(Nr),mt([i]),a,64,void 0,void 0,!0,!1,!1,e.loc);else{let e=o.codegenNode,t=yn(e);return t.type===13&&jt(t,n),hn(t,i,n),e}}function mr(e){for(;;)if(e.type===19)if(e.alternate.type===19)e=e.alternate;else return e;else e.type===20&&(e=e.value)}function hr(e,t,n,r){if(!t.exp){n.onError(Ht(31,t.loc));return}let i=t.forParseResult;if(!i){n.onError(Ht(32,t.loc));return}gr(i,n);let{addIdentifiers:a,removeIdentifiers:o,scopes:s}=n,{source:c,value:l,key:u,index:d}=i,f={type:11,loc:t.loc,source:c,valueAlias:l,keyAlias:u,objectIndexAlias:d,parseResult:i,children:fn(e)?e.children:[e]};n.replaceNode(f),s.vFor++;let p=r&&r(f);return()=>{s.vFor--,p&&p()}}function gr(e,t){e.finalized||=!0}function _r({value:e,key:t,index:n},r=[]){return vee([e,t,n,...r])}function vee(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((e,t)=>e||gt(`_`.repeat(t+1),!1))}function vr(e,t,n=Ta){t.helper(pi);let{children:r,loc:i}=e,a=[],o=[],s=t.scopes.vSlot>0||t.scopes.vFor>0,c=an(e,`slot`,!0);if(c){let{arg:e,exp:t}=c;e&&!Ii(e)&&(s=!0),a.push(ht(e||gt(`default`,!0),n(t,void 0,r,i)))}let l=!1,u=!1,d=[],f=new Set,p=0;for(let e=0;e{let a=n(e,void 0,r,i);return t.compatConfig&&(a.isNonScopedSlot=!0),ht(`default`,a)};l?d.length&&!d.every(xn)&&(u?t.onError(Ht(39,d[0].loc)):a.push(e(void 0,d))):a.push(e(void 0,r))}let m=s?2:br(e.children)?3:1,h=mt(a.concat(ht(`_`,gt(m+``,!1))),i);return o.length&&(h=yt(t.helper($r),[h,pt(o)])),{slots:h,hasDynamicSlots:s}}function yr(e,t,n){let r=[ht(`name`,e),ht(`fn`,t)];return n!=null&&r.push(ht(`key`,gt(String(n),!0))),mt(r)}function br(e){for(let t=0;t0,p=!1,m=0,h=!1,g=!1,_=!1,v=!1,y=!1,b=!1,x=[],C=e=>{l.length&&(u.push(mt(Cr(l),s)),l=[]),e&&u.push(e)},w=()=>{t.scopes.vFor>0&&l.push(ht(gt(`ref_for`,!0),gt(`true`)))},T=({key:e,value:n})=>{if(Ii(e)){let a=e.content,o=O(a);if(o&&(!r||i)&&a.toLowerCase()!==`onclick`&&a!==`onUpdate:modelValue`&&!ve(a)&&(v=!0),o&&ve(a)&&(b=!0),o&&n.type===14&&(n=n.arguments[0]),n.type===20||(n.type===4||n.type===8)&&qn(n,t)>0)return;a===`ref`?h=!0:a===`class`?g=!0:a===`style`?_=!0:a!==`key`&&!x.includes(a)&&x.push(a),r&&(a===`class`||a===`style`)&&!x.includes(a)&&x.push(a)}else y=!0};for(let i=0;ie.content===`prop`)&&(m|=32);let x=t.directiveTransforms[n];if(x){let{props:n,needRuntime:r}=x(c,e,t);!a&&n.forEach(T),b&&i&&!Ii(i)?C(mt(n,s)):l.push(...n),r&&(d.push(c),ee(r)&&Ea.set(c,r))}else S(n)||(d.push(c),f&&(p=!0))}}let E;if(u.length?(C(),E=u.length>1?yt(t.helper(ti),u,s):u[0]):l.length&&(E=mt(Cr(l),s)),y?m|=16:(g&&!r&&(m|=2),_&&!r&&(m|=4),x.length&&(m|=8),v&&(m|=32)),!p&&(m===0||m===32)&&(h||b||d.length>0)&&(m|=512),!t.inSSR&&E)switch(E.type){case 15:let e=-1,n=-1,r=!1;for(let t=0;tht(e,t)),i))}return pt(n,e.loc)}function Tr(e){let t=`[`;for(let n=0,r=e.length;n0){let{props:n,directives:a}=Sr(e,t,i,!1,!1);r=n,a.length&&t.onError(Ht(36,a[0].loc))}return{slotName:n,slotProps:r}}function Or(e=[]){return{props:e}}function kr(e,t){if(e.type===4)Ar(e,t);else for(let n=0;n=0&&(t=n.charAt(e),t===` `);e--);(!t||!Ia.test(t))&&(o=!0)}}m===void 0?m=n.slice(0,p).trim():u!==0&&g();function g(){h.push(n.slice(u,p).trim()),u=p+1}if(h.length){for(p=0;p{p(),Nr=Symbol(``),Pr=Symbol(``),Fr=Symbol(``),Ir=Symbol(``),Lr=Symbol(``),Rr=Symbol(``),zr=Symbol(``),Br=Symbol(``),Vr=Symbol(``),Hr=Symbol(``),Ur=Symbol(``),Wr=Symbol(``),Gr=Symbol(``),Kr=Symbol(``),qr=Symbol(``),Jr=Symbol(``),Yr=Symbol(``),Xr=Symbol(``),Zr=Symbol(``),Qr=Symbol(``),$r=Symbol(``),ei=Symbol(``),ti=Symbol(``),ni=Symbol(``),ri=Symbol(``),ii=Symbol(``),ai=Symbol(``),oi=Symbol(``),si=Symbol(``),ci=Symbol(``),li=Symbol(``),ui=Symbol(``),di=Symbol(``),fi=Symbol(``),pi=Symbol(``),mi=Symbol(``),hi=Symbol(``),gi=Symbol(``),_i=Symbol(``),vi={[Nr]:`Fragment`,[Pr]:`Teleport`,[Fr]:`Suspense`,[Ir]:`KeepAlive`,[Lr]:`BaseTransition`,[Rr]:`openBlock`,[zr]:`createBlock`,[Br]:`createElementBlock`,[Vr]:`createVNode`,[Hr]:`createElementVNode`,[Ur]:`createCommentVNode`,[Wr]:`createTextVNode`,[Gr]:`createStaticVNode`,[Kr]:`resolveComponent`,[qr]:`resolveDynamicComponent`,[Jr]:`resolveDirective`,[Yr]:`resolveFilter`,[Xr]:`withDirectives`,[Zr]:`renderList`,[Qr]:`renderSlot`,[$r]:`createSlots`,[ei]:`toDisplayString`,[ti]:`mergeProps`,[ni]:`normalizeClass`,[ri]:`normalizeStyle`,[ii]:`normalizeProps`,[ai]:`guardReactiveProps`,[oi]:`toHandlers`,[si]:`camelize`,[ci]:`capitalize`,[li]:`toHandlerKey`,[ui]:`setBlockTracking`,[di]:`pushScopeId`,[fi]:`popScopeId`,[pi]:`withCtx`,[mi]:`unref`,[hi]:`isRef`,[gi]:`withMemo`,[_i]:`isMemoSame`},yi={HTML:0,0:`HTML`,SVG:1,1:`SVG`,MATH_ML:2,2:`MATH_ML`},bi={ROOT:0,0:`ROOT`,ELEMENT:1,1:`ELEMENT`,TEXT:2,2:`TEXT`,COMMENT:3,3:`COMMENT`,SIMPLE_EXPRESSION:4,4:`SIMPLE_EXPRESSION`,INTERPOLATION:5,5:`INTERPOLATION`,ATTRIBUTE:6,6:`ATTRIBUTE`,DIRECTIVE:7,7:`DIRECTIVE`,COMPOUND_EXPRESSION:8,8:`COMPOUND_EXPRESSION`,IF:9,9:`IF`,IF_BRANCH:10,10:`IF_BRANCH`,FOR:11,11:`FOR`,TEXT_CALL:12,12:`TEXT_CALL`,VNODE_CALL:13,13:`VNODE_CALL`,JS_CALL_EXPRESSION:14,14:`JS_CALL_EXPRESSION`,JS_OBJECT_EXPRESSION:15,15:`JS_OBJECT_EXPRESSION`,JS_PROPERTY:16,16:`JS_PROPERTY`,JS_ARRAY_EXPRESSION:17,17:`JS_ARRAY_EXPRESSION`,JS_FUNCTION_EXPRESSION:18,18:`JS_FUNCTION_EXPRESSION`,JS_CONDITIONAL_EXPRESSION:19,19:`JS_CONDITIONAL_EXPRESSION`,JS_CACHE_EXPRESSION:20,20:`JS_CACHE_EXPRESSION`,JS_BLOCK_STATEMENT:21,21:`JS_BLOCK_STATEMENT`,JS_TEMPLATE_LITERAL:22,22:`JS_TEMPLATE_LITERAL`,JS_IF_STATEMENT:23,23:`JS_IF_STATEMENT`,JS_ASSIGNMENT_EXPRESSION:24,24:`JS_ASSIGNMENT_EXPRESSION`,JS_SEQUENCE_EXPRESSION:25,25:`JS_SEQUENCE_EXPRESSION`,JS_RETURN_STATEMENT:26,26:`JS_RETURN_STATEMENT`},xi={ELEMENT:0,0:`ELEMENT`,COMPONENT:1,1:`COMPONENT`,SLOT:2,2:`SLOT`,TEMPLATE:3,3:`TEMPLATE`},Si={NOT_CONSTANT:0,0:`NOT_CONSTANT`,CAN_SKIP_PATCH:1,1:`CAN_SKIP_PATCH`,CAN_CACHE:2,2:`CAN_CACHE`,CAN_STRINGIFY:3,3:`CAN_STRINGIFY`},Ci={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:``},wi=new Uint8Array([123,123]),Ti=new Uint8Array([125,125]),Ei={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97])},Di=class{constructor(e,t){this.stack=e,this.cbs=t,this.state=1,this.buffer=``,this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=1,this.inRCDATA=!1,this.inXML=!1,this.inVPre=!1,this.newlines=[],this.mode=0,this.delimiterOpen=wi,this.delimiterClose=Ti,this.delimiterIndex=-1,this.currentSequence=void 0,this.sequenceIndex=0}get inSFCRoot(){return this.mode===2&&this.stack.length===0}reset(){this.state=1,this.mode=0,this.buffer=``,this.sectionStart=0,this.index=0,this.baseState=1,this.inRCDATA=!1,this.currentSequence=void 0,this.newlines.length=0,this.delimiterOpen=wi,this.delimiterClose=Ti}getPos(e){let t=1,n=e+1,r=this.newlines.length,i=-1;if(r>100){let t=-1,n=r;for(;t+1>>1;this.newlines[r]=0;t--)if(e>this.newlines[t]){i=t;break}return i>=0&&(t=i+2,n=e-this.newlines[i]),{column:n,line:t,offset:e}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(e){e===60?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):!this.inVPre&&e===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(e))}stateInterpolationOpen(e){if(e===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){let e=this.index+1-this.delimiterOpen.length;e>this.sectionStart&&this.cbs.ontext(this.sectionStart,e),this.state=3,this.sectionStart=e}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(e)):(this.state=1,this.stateText(e))}stateInterpolation(e){e===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(e))}stateInterpolationClose(e){e===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(e))}stateSpecialStartSequence(e){let t=this.sequenceIndex===this.currentSequence.length;if(!(t?Pt(e):(e|32)===this.currentSequence[this.sequenceIndex]))this.inRCDATA=!1;else if(!t){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=6,this.stateInTagName(e)}stateInRCDATA(e){if(this.sequenceIndex===this.currentSequence.length){if(e===62||Nt(e)){let t=this.index-this.currentSequence.length;if(this.sectionStart=e||(this.state===28?this.currentSequence===Ei.CdataEnd?this.cbs.oncdata(this.sectionStart,e):this.cbs.oncomment(this.sectionStart,e):this.state===6||this.state===11||this.state===18||this.state===17||this.state===12||this.state===13||this.state===14||this.state===15||this.state===16||this.state===20||this.state===19||this.state===21||this.state===9||this.cbs.ontext(this.sectionStart,e))}emitCodePoint(e,t){}},Oi={COMPILER_IS_ON_ELEMENT:`COMPILER_IS_ON_ELEMENT`,COMPILER_V_BIND_SYNC:`COMPILER_V_BIND_SYNC`,COMPILER_V_BIND_OBJECT_ORDER:`COMPILER_V_BIND_OBJECT_ORDER`,COMPILER_V_ON_NATIVE:`COMPILER_V_ON_NATIVE`,COMPILER_V_IF_V_FOR_PRECEDENCE:`COMPILER_V_IF_V_FOR_PRECEDENCE`,COMPILER_NATIVE_TEMPLATE:`COMPILER_NATIVE_TEMPLATE`,COMPILER_INLINE_TEMPLATE:`COMPILER_INLINE_TEMPLATE`,COMPILER_FILTERS:`COMPILER_FILTERS`},ki={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_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