@g1cloud/ui-modeler-next 5.0.0-alpha.1 → 5.0.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/preview/assets/BSAlertModal-DBRQ0cCa-DBzO45QA.js +1 -0
- package/dist/preview/assets/BSGridColumnSettingModal-C7xgLov6-CKSaW9jK.js +1 -0
- package/dist/preview/assets/BSRichTextMaximizedModal-D4w5hGdQ-Gu70KkWt.js +1 -0
- package/dist/preview/assets/BSYesNoModal-Dj2nMArb-DwkhzRM0.js +1 -0
- package/dist/preview/assets/BSYoutubeInputModal-Mro_98AC-hLJUSLn5.js +22 -0
- package/dist/preview/assets/ImageInsertModal-DeL97iRr-COO5YVDR.js +1 -0
- package/dist/preview/assets/ImageProperties.vue_vue_type_script_setup_true_lang-DCv-pBh_-BdF1pKc_.js +1 -0
- package/dist/preview/assets/ImagePropertiesModal-DD6cl6c0-CkkBxUBC.js +1 -0
- package/dist/preview/assets/LinkPropertiesModal-CkgkjB7g-CveXEXkA.js +1 -0
- package/dist/preview/assets/TableInsertModal-CNnGZuaP-C_so6GjE.js +1 -0
- package/dist/preview/assets/TablePropertiesModal-BYjN7jg3-BGuXecdL.js +1 -0
- package/dist/preview/assets/VideoInsertModal-DIIzKI53-C_0mq1Dd.js +1 -0
- package/dist/preview/assets/VideoProperties.vue_vue_type_script_setup_true_lang-BR8B1ON_-C6bZNHBl.js +1 -0
- package/dist/preview/assets/VideoPropertiesModal-DyMdwd1w-CbTbZKJL.js +1 -0
- package/dist/preview/assets/YoutubeInsertModal-BSIDbYkd-JxyQwps4.js +1 -0
- package/dist/preview/assets/YoutubeProperties.vue_vue_type_script_setup_true_lang-BlmuRJva-DJ7F4T2b.js +1 -0
- package/dist/preview/assets/YoutubePropertiesModal-VDPQiwEJ-iNjUfLAz.js +1 -0
- package/dist/preview/assets/preview-CXdxX7HS.js +31724 -0
- package/dist/preview/assets/preview-_k3RIYvL.css +1 -0
- package/dist/preview/preview.html +13 -0
- package/package.json +5 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d as u,u as d,o as r,c as m,w as s,e as a,a as o,j as l,k,b as p,B as _,l as f,h as B}from"./preview-CXdxX7HS.js";const h={class:"text-right"},C=u({__name:"BSAlertModal",props:{title:{},message:{}},emits:["click"],setup(b,{emit:c}){const n=c,e=d();e.setDefaultStyle({minWidth:"300px",escToClose:!0});const i=()=>{n("click"),e.close()};return(t,v)=>(r(),m(B,{title:t.title,"auto-focus":""},{buttons:s(()=>[o("div",h,[a(p(_,{caption:{key:"bs.ok"},"button-color":"blue",class:"min-w-80","data-id":"okBtn",onClick:i},null,512),[[l(f)]])])]),default:s(()=>[a(o("div",null,null,512),[[l(k),t.message]])]),_:1},8,["title"]))}});export{C as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d as S,ah as V,m as B,u as U,o as H,c as G,w as c,a as u,b as a,B as h,ai as L,aj as M,j as f,ak as N,C as T,M as x,h as $,r as j,al as E,am as z}from"./preview-CXdxX7HS.js";const A={class:"text-center"},D={class:"text-center"},F={class:"bs-layout-horizontal"},O={class:"bs-layout-horizontal flex-grow-1 justify-content-end gap-8"},K=S({__name:"BSGridColumnSettingModal",props:{columns:{},columnSettings:{},fixedColumnCount:{}},emits:["settingChanged"],setup(v,{emit:_}){const l=v,g=_,y=[{propertyId:"caption",caption:{key:"bs.grid.caption"},width:200,cellType:"MULTI_LANG_STRING"},{propertyId:"visible",caption:{key:"bs.grid.visible"},width:60},{propertyId:"fixed",caption:{key:"bs.grid.fixed"},width:60},{propertyId:"width",caption:{key:"bs.width"},width:100}],m=V({getRowKey:n=>n.propertyId}),s=j([]),w=(n,d)=>{const e=[...d||[]],t=n.map(o=>{const i=e.findIndex(r=>r.propertyId===o.propertyId);if(i>=0){const r=e.splice(i,1)[0];return{...r,hidden:o.hidden,width:o.width||r.width}}else return}).filter(E);return e.forEach(o=>{t.push({...o,width:o.width})}),t};B(()=>{var n;const d=l.columnSettings?w(l.columnSettings,l.columns):((n=l.columns)==null?void 0:n.map(e=>({...e})))||[];s.value=d.map((e,t)=>({...e,fixed:t<(l.fixedColumnCount||0)})),m.setGridData(s.value)});const C=async(n,d)=>{const e=s.value.indexOf(d),t=s.value.findLastIndex(i=>i.fixed)+1;await z();const o=!n&&t===0&&e===0?-1:e;s.value.forEach((i,r)=>i.fixed=r<=o)},p=U(),I=()=>{const n=s.value.map(e=>{var t;const o=(t=l.columns)==null?void 0:t.find(i=>i.propertyId===e.propertyId);return{propertyId:e.propertyId,hidden:e.hidden?!0:void 0,width:e.width!==(o==null?void 0:o.width)?e.width:void 0}}),d=s.value.findLastIndex(e=>e.fixed)+1;g("settingChanged",n,d),p.close()},b=()=>{p.close()},k=()=>{g("settingChanged",void 0,void 0),p.close()};return p.setDefaultStyle({maxWidth:"600px",maxHeight:"80%"}),(n,d)=>(H(),G($,{title:{key:"bs.gridcontrol.columnSetting"}},{default:c(()=>[a(L,M({columns:y,height:"100%","show-drag-handle":"","show-serial":""},f(m).grid,N(f(m).gridEventListener)),{visible:c(({row:e})=>[u("div",A,[a(x,{"model-value":!e.hidden,class:"reverted","onUpdate:modelValue":t=>e.hidden=!t},null,8,["model-value","onUpdate:modelValue"])])]),fixed:c(({row:e})=>[u("div",D,[a(x,{modelValue:e.fixed,"onUpdate:modelValue":[t=>e.fixed=t,t=>C(t,e)],class:"reverted"},null,8,["modelValue","onUpdate:modelValue"])])]),width:c(({row:e})=>[a(T,{modelValue:e.width,"onUpdate:modelValue":t=>e.width=t,width:"100%"},null,8,["modelValue","onUpdate:modelValue"])]),_:1},16)]),buttons:c(()=>[u("div",F,[u("div",null,[a(h,{caption:{key:"bs.grid.restoreSetting"},"button-color":"gray",onClick:k})]),u("div",O,[a(h,{caption:{key:"bs.cancel"},onClick:b}),a(h,{caption:{key:"bs.ok"},"button-color":"blue",onClick:I})])])]),_:1}))}});export{K as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d as m,N as v,n as p,u as M,o as c,c as f,O as h,P as d}from"./preview-CXdxX7HS.js";const x=m({__name:"BSRichTextMaximizedModal",props:d({contentMaxWidth:{},disabled:{type:Boolean},viewMode:{type:Boolean},required:{type:Boolean},validationMessageRequired:{},extraValidationRules:{},ignoreSavePoint:{type:Boolean},hideErrorMessage:{type:Boolean},toolButtons:{},contentClass:{}},{modelValue:{},modelModifiers:{}}),emits:d(["editorIframeReady"],["update:modelValue"]),setup(l,{emit:s}){const n=s,t=v(l,"modelValue"),r=p("richText"),i=M(),u=()=>{var e;(e=r.value)==null||e.forceUpdateModelValue(),i.close()};return i.setDefaultStyle({width:"90vw",height:"90vh",maxWidth:"1280px"}),(e,a)=>(c(),f(h,{ref:"richText",modelValue:t.value,"onUpdate:modelValue":a[0]||(a[0]=o=>t.value=o),"content-class":e.contentClass,"content-max-width":e.contentMaxWidth,disabled:e.disabled,"extra-validation-rules":e.extraValidationRules,"hide-error-message":e.hideErrorMessage,"ignore-save-point":e.ignoreSavePoint,required:e.required,"tool-buttons":e.toolButtons,"validation-message-required":e.validationMessageRequired,"view-mode":e.viewMode,class:"h-full","internal-maximized":"",maximized:"",onMaximized:u,onEditorIframeReady:a[1]||(a[1]=o=>n("editorIframeReady",o))},null,8,["modelValue","content-class","content-max-width","disabled","extra-validation-rules","hide-error-message","ignore-save-point","required","tool-buttons","validation-message-required","view-mode"]))}});export{x as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d as r,u as m,o as u,c as k,w as o,e as p,a,j as _,k as B,b as c,B as l,h as f}from"./preview-CXdxX7HS.js";const h={class:"text-right"},y=r({__name:"BSYesNoModal",props:{title:{},message:{}},emits:["clickNo","clickYes"],setup(b,{emit:i}){const s=i,e=m();e.setDefaultStyle({minWidth:"300px",escToClose:!0});const n=()=>{s("clickNo"),e.close()},d=()=>{s("clickYes"),e.close()};return(t,N)=>(u(),k(f,{title:t.title},{buttons:o(()=>[a("div",h,[c(l,{caption:{key:"bs.no"},class:"min-w-80","data-id":"noBtn",onClick:n}),c(l,{caption:{key:"bs.yes"},"button-color":"blue",class:"ml-8 min-w-80","data-id":"yesBtn",onClick:d})])]),default:o(()=>[p(a("div",null,null,512),[[_(B),t.message]])]),_:1},8,["title"]))}});export{y as default};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import{Q as rt,R as ge,S as J,T as gt,U as En,V as Ki,W as Dr,X as Me,Y as Wi,Z as Vr,$ as Yi,a0 as Re,a1 as Fr,a2 as lr,a3 as Ji,a4 as zi,a5 as Qi,a6 as Zi,a7 as qi,a8 as _t,a9 as es,aa as yn,ab as ts,ac as ns,ad as rs,d as is,N as ss,r as os,u as as,c as cr,w as fr,h as ls,o as ur,a as St,b as Tt,B as hr,f as cs,g as fs,j as us,y as hs,ae as ps,af as ds,ag as vs}from"./preview-CXdxX7HS.js";var Ot={exports:{}},cn={exports:{}},fn={};/**
|
|
2
|
+
* @vue/compiler-core v3.5.39
|
|
3
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
|
+
* @license MIT
|
|
5
|
+
**/const ke=Symbol(""),Ge=Symbol(""),Bt=Symbol(""),it=Symbol(""),gn=Symbol(""),Le=Symbol(""),Sn=Symbol(""),Tn=Symbol(""),Xt=Symbol(""),jt=Symbol(""),Qe=Symbol(""),$t=Symbol(""),Nn=Symbol(""),Ht=Symbol(""),Gt=Symbol(""),kt=Symbol(""),Kt=Symbol(""),Wt=Symbol(""),Yt=Symbol(""),In=Symbol(""),On=Symbol(""),ft=Symbol(""),st=Symbol(""),Jt=Symbol(""),zt=Symbol(""),Ke=Symbol(""),Ze=Symbol(""),Qt=Symbol(""),xt=Symbol(""),wr=Symbol(""),Lt=Symbol(""),ot=Symbol(""),Ur=Symbol(""),_r=Symbol(""),Zt=Symbol(""),Br=Symbol(""),Xr=Symbol(""),qt=Symbol(""),bn=Symbol(""),we={[ke]:"Fragment",[Ge]:"Teleport",[Bt]:"Suspense",[it]:"KeepAlive",[gn]:"BaseTransition",[Le]:"openBlock",[Sn]:"createBlock",[Tn]:"createElementBlock",[Xt]:"createVNode",[jt]:"createElementVNode",[Qe]:"createCommentVNode",[$t]:"createTextVNode",[Nn]:"createStaticVNode",[Ht]:"resolveComponent",[Gt]:"resolveDynamicComponent",[kt]:"resolveDirective",[Kt]:"resolveFilter",[Wt]:"withDirectives",[Yt]:"renderList",[In]:"renderSlot",[On]:"createSlots",[ft]:"toDisplayString",[st]:"mergeProps",[Jt]:"normalizeClass",[zt]:"normalizeStyle",[Ke]:"normalizeProps",[Ze]:"guardReactiveProps",[Qt]:"toHandlers",[xt]:"camelize",[wr]:"capitalize",[Lt]:"toHandlerKey",[ot]:"setBlockTracking",[Ur]:"pushScopeId",[_r]:"popScopeId",[Zt]:"withCtx",[Br]:"unref",[Xr]:"isRef",[qt]:"withMemo",[bn]:"isMemoSame"};function jr(e){Object.getOwnPropertySymbols(e).forEach(t=>{we[t]=e[t]})}const ms={HTML:0,0:"HTML",SVG:1,1:"SVG",MATH_ML:2,2:"MATH_ML"},Es={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"},ys={ELEMENT:0,0:"ELEMENT",COMPONENT:1,1:"COMPONENT",SLOT:2,2:"SLOT",TEMPLATE:3,3:"TEMPLATE"},gs={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"},z={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function $r(e,t=""){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:[],temps:0,codegenNode:void 0,loc:z}}function We(e,t,r,i,o,n,s,a=!1,l=!1,c=!1,f=z){return e&&(a?(e.helper(Le),e.helper(Be(e.inSSR,c))):e.helper(_e(e.inSSR,c)),s&&e.helper(Wt)),{type:13,tag:t,props:r,children:i,patchFlag:o,dynamicProps:n,directives:s,isBlock:a,disableTracking:l,isComponent:c,loc:f}}function xe(e,t=z){return{type:17,loc:t,elements:e}}function le(e,t=z){return{type:15,loc:t,properties:e}}function k(e,t){return{type:16,loc:z,key:J(e)?D(e,!0):e,value:t}}function D(e,t=!1,r=z,i=0){return{type:4,loc:r,content:e,isStatic:t,constType:t?3:i}}function Ss(e,t){return{type:5,loc:t,content:J(e)?D(e,!1,t):e}}function ce(e,t=z){return{type:8,loc:t,children:e}}function W(e,t=[],r=z){return{type:14,loc:r,callee:e,arguments:t}}function Ue(e,t=void 0,r=!1,i=!1,o=z){return{type:18,params:e,returns:t,newline:r,isSlot:i,loc:o}}function Dt(e,t,r,i=!0){return{type:19,test:e,consequent:t,alternate:r,newline:i,loc:z}}function Hr(e,t,r=!1,i=!1){return{type:20,index:e,value:t,needPauseTracking:r,inVOnce:i,needArraySpread:!1,loc:z}}function Gr(e){return{type:21,body:e,loc:z}}function Ts(e){return{type:22,elements:e,loc:z}}function Ns(e,t,r){return{type:23,test:e,consequent:t,alternate:r,loc:z}}function Is(e,t){return{type:24,left:e,right:t,loc:z}}function Os(e){return{type:25,expressions:e,loc:z}}function bs(e){return{type:26,returns:e,loc:z}}function _e(e,t){return e||t?Xt:jt}function Be(e,t){return e||t?Sn:Tn}function en(e,{helper:t,removeHelper:r,inSSR:i}){e.isBlock||(e.isBlock=!0,r(_e(i,e.isComponent)),t(Le),t(Be(i,e.isComponent)))}const pr=new Uint8Array([123,123]),dr=new Uint8Array([125,125]);function vr(e){return e>=97&&e<=122||e>=65&&e<=90}function ae(e){return e===32||e===10||e===9||e===12||e===13}function Ce(e){return e===47||e===62||ae(e)}function Vt(e){const t=new Uint8Array(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}const q={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])};class Cs{constructor(t,r){this.stack=t,this.cbs=r,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=pr,this.delimiterClose=dr,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=pr,this.delimiterClose=dr}getPos(t){let r=1,i=t+1;const o=this.newlines.length;let n=-1;if(o>100){let s=-1,a=o;for(;s+1<a;){const l=s+a>>>1;this.newlines[l]<t?s=l:a=l}n=s}else for(let s=o-1;s>=0;s--)if(t>this.newlines[s]){n=s;break}return n>=0&&(r=n+2,i=t-this.newlines[n]),{column:i,line:r,offset:t}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(t){t===60?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):!this.inVPre&&t===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(t))}stateInterpolationOpen(t){if(t===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const r=this.index+1-this.delimiterOpen.length;r>this.sectionStart&&this.cbs.ontext(this.sectionStart,r),this.state=3,this.sectionStart=r}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(t)):(this.state=1,this.stateText(t))}stateInterpolation(t){t===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(t))}stateInterpolationClose(t){t===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(t))}stateSpecialStartSequence(t){const r=this.sequenceIndex===this.currentSequence.length;if(!(r?Ce(t):(t|32)===this.currentSequence[this.sequenceIndex]))this.inRCDATA=!1;else if(!r){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=6,this.stateInTagName(t)}stateInRCDATA(t){if(this.sequenceIndex===this.currentSequence.length){if(t===62||ae(t)){const r=this.index-this.currentSequence.length;if(this.sectionStart<r){const i=this.index;this.index=r,this.cbs.ontext(this.sectionStart,r),this.index=i}this.sectionStart=r+2,this.stateInClosingTagName(t),this.inRCDATA=!1;return}this.sequenceIndex=0}(t|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===q.TitleEnd||this.currentSequence===q.TextareaEnd&&!this.inSFCRoot?!this.inVPre&&t===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(t)):this.fastForwardTo(60)&&(this.sequenceIndex=1):this.sequenceIndex=+(t===60)}stateCDATASequence(t){t===q.Cdata[this.sequenceIndex]?++this.sequenceIndex===q.Cdata.length&&(this.state=28,this.currentSequence=q.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=23,this.stateInDeclaration(t))}fastForwardTo(t){for(;++this.index<this.buffer.length;){const r=this.buffer.charCodeAt(this.index);if(r===10&&this.newlines.push(this.index),r===t)return!0}return this.index=this.buffer.length-1,!1}stateInCommentLike(t){t===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===q.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index-2):this.cbs.oncomment(this.sectionStart,this.index-2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=1):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):t!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}startSpecial(t,r){this.enterRCDATA(t,r),this.state=31}enterRCDATA(t,r){this.inRCDATA=!0,this.currentSequence=t,this.sequenceIndex=r}stateBeforeTagName(t){t===33?(this.state=22,this.sectionStart=this.index+1):t===63?(this.state=24,this.sectionStart=this.index+1):vr(t)?(this.sectionStart=this.index,this.mode===0?this.state=6:this.inSFCRoot?this.state=34:this.inXML?this.state=6:t===116?this.state=30:this.state=t===115?29:6):t===47?this.state=8:(this.state=1,this.stateText(t))}stateInTagName(t){Ce(t)&&this.handleTagName(t)}stateInSFCRootTagName(t){if(Ce(t)){const r=this.buffer.slice(this.sectionStart,this.index);r!=="template"&&this.enterRCDATA(Vt("</"+r),0),this.handleTagName(t)}}handleTagName(t){this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(t)}stateBeforeClosingTagName(t){ae(t)||(t===62?(this.state=1,this.sectionStart=this.index+1):(this.state=vr(t)?9:27,this.sectionStart=this.index))}stateInClosingTagName(t){(t===62||ae(t))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=10,this.stateAfterClosingTagName(t))}stateAfterClosingTagName(t){t===62&&(this.state=1,this.sectionStart=this.index+1)}stateBeforeAttrName(t){t===62?(this.cbs.onopentagend(this.index),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):t===47?this.state=7:t===60&&this.peek()===47?(this.cbs.onopentagend(this.index),this.state=5,this.sectionStart=this.index):ae(t)||this.handleAttrStart(t)}handleAttrStart(t){t===118&&this.peek()===45?(this.state=13,this.sectionStart=this.index):t===46||t===58||t===64||t===35?(this.cbs.ondirname(this.index,this.index+1),this.state=14,this.sectionStart=this.index+1):(this.state=12,this.sectionStart=this.index)}stateInSelfClosingTag(t){t===62?(this.cbs.onselfclosingtag(this.index),this.state=1,this.sectionStart=this.index+1,this.inRCDATA=!1):ae(t)||(this.state=11,this.stateBeforeAttrName(t))}stateInAttrName(t){(t===61||Ce(t))&&(this.cbs.onattribname(this.sectionStart,this.index),this.handleAttrNameEnd(t))}stateInDirName(t){t===61||Ce(t)?(this.cbs.ondirname(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===58?(this.cbs.ondirname(this.sectionStart,this.index),this.state=14,this.sectionStart=this.index+1):t===46&&(this.cbs.ondirname(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDirArg(t){t===61||Ce(t)?(this.cbs.ondirarg(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===91?this.state=15:t===46&&(this.cbs.ondirarg(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDynamicDirArg(t){t===93?this.state=14:(t===61||Ce(t))&&(this.cbs.ondirarg(this.sectionStart,this.index+1),this.handleAttrNameEnd(t))}stateInDirModifier(t){t===61||Ce(t)?(this.cbs.ondirmodifier(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===46&&(this.cbs.ondirmodifier(this.sectionStart,this.index),this.sectionStart=this.index+1)}handleAttrNameEnd(t){this.sectionStart=this.index,this.state=17,this.cbs.onattribnameend(this.index),this.stateAfterAttrName(t)}stateAfterAttrName(t){t===61?this.state=18:t===47||t===62?(this.cbs.onattribend(0,this.sectionStart),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(t)):ae(t)||(this.cbs.onattribend(0,this.sectionStart),this.handleAttrStart(t))}stateBeforeAttrValue(t){t===34?(this.state=19,this.sectionStart=this.index+1):t===39?(this.state=20,this.sectionStart=this.index+1):ae(t)||(this.sectionStart=this.index,this.state=21,this.stateInAttrValueNoQuotes(t))}handleInAttrValue(t,r){(t===r||this.fastForwardTo(r))&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(r===34?3:2,this.index+1),this.state=11)}stateInAttrValueDoubleQuotes(t){this.handleInAttrValue(t,34)}stateInAttrValueSingleQuotes(t){this.handleInAttrValue(t,39)}stateInAttrValueNoQuotes(t){ae(t)||t===62?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(1,this.index),this.state=11,this.stateBeforeAttrName(t)):(t===39||t===60||t===61||t===96)&&this.cbs.onerr(18,this.index)}stateBeforeDeclaration(t){t===91?(this.state=26,this.sequenceIndex=0):this.state=t===45?25:23}stateInDeclaration(t){(t===62||this.fastForwardTo(62))&&(this.state=1,this.sectionStart=this.index+1)}stateInProcessingInstruction(t){(t===62||this.fastForwardTo(62))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeComment(t){t===45?(this.state=28,this.currentSequence=q.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=23}stateInSpecialComment(t){(t===62||this.fastForwardTo(62))&&(this.cbs.oncomment(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeSpecialS(t){t===q.ScriptEnd[3]?this.startSpecial(q.ScriptEnd,4):t===q.StyleEnd[3]?this.startSpecial(q.StyleEnd,4):(this.state=6,this.stateInTagName(t))}stateBeforeSpecialT(t){t===q.TitleEnd[3]?this.startSpecial(q.TitleEnd,4):t===q.TextareaEnd[3]?this.startSpecial(q.TextareaEnd,4):(this.state=6,this.stateInTagName(t))}startEntity(){}stateInEntity(){}parse(t){for(this.buffer=t;this.index<this.buffer.length;){const r=this.buffer.charCodeAt(this.index);switch(r===10&&this.state!==33&&this.newlines.push(this.index),this.state){case 1:{this.stateText(r);break}case 2:{this.stateInterpolationOpen(r);break}case 3:{this.stateInterpolation(r);break}case 4:{this.stateInterpolationClose(r);break}case 31:{this.stateSpecialStartSequence(r);break}case 32:{this.stateInRCDATA(r);break}case 26:{this.stateCDATASequence(r);break}case 19:{this.stateInAttrValueDoubleQuotes(r);break}case 12:{this.stateInAttrName(r);break}case 13:{this.stateInDirName(r);break}case 14:{this.stateInDirArg(r);break}case 15:{this.stateInDynamicDirArg(r);break}case 16:{this.stateInDirModifier(r);break}case 28:{this.stateInCommentLike(r);break}case 27:{this.stateInSpecialComment(r);break}case 11:{this.stateBeforeAttrName(r);break}case 6:{this.stateInTagName(r);break}case 34:{this.stateInSFCRootTagName(r);break}case 9:{this.stateInClosingTagName(r);break}case 5:{this.stateBeforeTagName(r);break}case 17:{this.stateAfterAttrName(r);break}case 20:{this.stateInAttrValueSingleQuotes(r);break}case 18:{this.stateBeforeAttrValue(r);break}case 8:{this.stateBeforeClosingTagName(r);break}case 10:{this.stateAfterClosingTagName(r);break}case 29:{this.stateBeforeSpecialS(r);break}case 30:{this.stateBeforeSpecialT(r);break}case 21:{this.stateInAttrValueNoQuotes(r);break}case 7:{this.stateInSelfClosingTag(r);break}case 23:{this.stateInDeclaration(r);break}case 22:{this.stateBeforeDeclaration(r);break}case 25:{this.stateBeforeComment(r);break}case 24:{this.stateInProcessingInstruction(r);break}case 33:{this.stateInEntity();break}}this.index++}this.cleanup(),this.finish()}cleanup(){this.sectionStart!==this.index&&(this.state===1||this.state===32&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===19||this.state===20||this.state===21)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}finish(){this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){const t=this.buffer.length;this.sectionStart>=t||(this.state===28?this.currentSequence===q.CdataEnd?this.cbs.oncdata(this.sectionStart,t):this.cbs.oncomment(this.sectionStart,t):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,t))}emitCodePoint(t,r){}}const As={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"},Rs={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 <template> tags or use a computed property that filters v-for data source.",link:"https://v3-migration.vuejs.org/breaking-changes/v-if-v-for.html"},COMPILER_NATIVE_TEMPLATE:{message:"<template> with no special directives will render as a native template element instead of its inner content in Vue 3."},COMPILER_INLINE_TEMPLATE:{message:'"inline-template" has been removed in Vue 3.',link:"https://v3-migration.vuejs.org/breaking-changes/inline-template-attribute.html"},COMPILER_FILTERS:{message:'filters have been removed in Vue 3. The "|" symbol will be treated as native JavaScript bitwise OR operator. Use method calls or computed properties instead.',link:"https://v3-migration.vuejs.org/breaking-changes/filters.html"}};function hn(e,{compatConfig:t}){const r=t&&t[e];return e==="MODE"?r||3:r}function Fe(e,t){const r=hn("MODE",t),i=hn(e,t);return r===3?i===!0:i!==!1}function Ye(e,t,r,...i){return Fe(e,t)}function Ps(e,t,r,...i){if(hn(e,t)==="suppress-warning")return;const{message:n,link:s}=Rs[e],a=`(deprecation ${e}) ${typeof n=="function"?n(...i):n}${s?`
|
|
6
|
+
Details: ${s}`:""}`,l=new SyntaxError(a);l.code=e,r&&(l.loc=r),t.onWarn(l)}function Cn(e){throw e}function kr(e){}function j(e,t,r,i){const o=`https://vuejs.org/error-reference/#compiler-${e}`,n=new SyntaxError(String(o));return n.code=e,n.loc=t,n}const Ms={ABRUPT_CLOSING_OF_EMPTY_COMMENT:0,0:"ABRUPT_CLOSING_OF_EMPTY_COMMENT",CDATA_IN_HTML_CONTENT:1,1:"CDATA_IN_HTML_CONTENT",DUPLICATE_ATTRIBUTE:2,2:"DUPLICATE_ATTRIBUTE",END_TAG_WITH_ATTRIBUTES:3,3:"END_TAG_WITH_ATTRIBUTES",END_TAG_WITH_TRAILING_SOLIDUS:4,4:"END_TAG_WITH_TRAILING_SOLIDUS",EOF_BEFORE_TAG_NAME:5,5:"EOF_BEFORE_TAG_NAME",EOF_IN_CDATA:6,6:"EOF_IN_CDATA",EOF_IN_COMMENT:7,7:"EOF_IN_COMMENT",EOF_IN_SCRIPT_HTML_COMMENT_LIKE_TEXT:8,8:"EOF_IN_SCRIPT_HTML_COMMENT_LIKE_TEXT",EOF_IN_TAG:9,9:"EOF_IN_TAG",INCORRECTLY_CLOSED_COMMENT:10,10:"INCORRECTLY_CLOSED_COMMENT",INCORRECTLY_OPENED_COMMENT:11,11:"INCORRECTLY_OPENED_COMMENT",INVALID_FIRST_CHARACTER_OF_TAG_NAME:12,12:"INVALID_FIRST_CHARACTER_OF_TAG_NAME",MISSING_ATTRIBUTE_VALUE:13,13:"MISSING_ATTRIBUTE_VALUE",MISSING_END_TAG_NAME:14,14:"MISSING_END_TAG_NAME",MISSING_WHITESPACE_BETWEEN_ATTRIBUTES:15,15:"MISSING_WHITESPACE_BETWEEN_ATTRIBUTES",NESTED_COMMENT:16,16:"NESTED_COMMENT",UNEXPECTED_CHARACTER_IN_ATTRIBUTE_NAME:17,17:"UNEXPECTED_CHARACTER_IN_ATTRIBUTE_NAME",UNEXPECTED_CHARACTER_IN_UNQUOTED_ATTRIBUTE_VALUE:18,18:"UNEXPECTED_CHARACTER_IN_UNQUOTED_ATTRIBUTE_VALUE",UNEXPECTED_EQUALS_SIGN_BEFORE_ATTRIBUTE_NAME:19,19:"UNEXPECTED_EQUALS_SIGN_BEFORE_ATTRIBUTE_NAME",UNEXPECTED_NULL_CHARACTER:20,20:"UNEXPECTED_NULL_CHARACTER",UNEXPECTED_QUESTION_MARK_INSTEAD_OF_TAG_NAME:21,21:"UNEXPECTED_QUESTION_MARK_INSTEAD_OF_TAG_NAME",UNEXPECTED_SOLIDUS_IN_TAG:22,22:"UNEXPECTED_SOLIDUS_IN_TAG",X_INVALID_END_TAG:23,23:"X_INVALID_END_TAG",X_MISSING_END_TAG:24,24:"X_MISSING_END_TAG",X_MISSING_INTERPOLATION_END:25,25:"X_MISSING_INTERPOLATION_END",X_MISSING_DIRECTIVE_NAME:26,26:"X_MISSING_DIRECTIVE_NAME",X_MISSING_DYNAMIC_DIRECTIVE_ARGUMENT_END:27,27:"X_MISSING_DYNAMIC_DIRECTIVE_ARGUMENT_END",X_V_IF_NO_EXPRESSION:28,28:"X_V_IF_NO_EXPRESSION",X_V_IF_SAME_KEY:29,29:"X_V_IF_SAME_KEY",X_V_ELSE_NO_ADJACENT_IF:30,30:"X_V_ELSE_NO_ADJACENT_IF",X_V_FOR_NO_EXPRESSION:31,31:"X_V_FOR_NO_EXPRESSION",X_V_FOR_MALFORMED_EXPRESSION:32,32:"X_V_FOR_MALFORMED_EXPRESSION",X_V_FOR_TEMPLATE_KEY_PLACEMENT:33,33:"X_V_FOR_TEMPLATE_KEY_PLACEMENT",X_V_BIND_NO_EXPRESSION:34,34:"X_V_BIND_NO_EXPRESSION",X_V_ON_NO_EXPRESSION:35,35:"X_V_ON_NO_EXPRESSION",X_V_SLOT_UNEXPECTED_DIRECTIVE_ON_SLOT_OUTLET:36,36:"X_V_SLOT_UNEXPECTED_DIRECTIVE_ON_SLOT_OUTLET",X_V_SLOT_MIXED_SLOT_USAGE:37,37:"X_V_SLOT_MIXED_SLOT_USAGE",X_V_SLOT_DUPLICATE_SLOT_NAMES:38,38:"X_V_SLOT_DUPLICATE_SLOT_NAMES",X_V_SLOT_EXTRANEOUS_DEFAULT_SLOT_CHILDREN:39,39:"X_V_SLOT_EXTRANEOUS_DEFAULT_SLOT_CHILDREN",X_V_SLOT_MISPLACED:40,40:"X_V_SLOT_MISPLACED",X_V_MODEL_NO_EXPRESSION:41,41:"X_V_MODEL_NO_EXPRESSION",X_V_MODEL_MALFORMED_EXPRESSION:42,42:"X_V_MODEL_MALFORMED_EXPRESSION",X_V_MODEL_ON_SCOPE_VARIABLE:43,43:"X_V_MODEL_ON_SCOPE_VARIABLE",X_V_MODEL_ON_PROPS:44,44:"X_V_MODEL_ON_PROPS",X_V_MODEL_ON_CONST:45,45:"X_V_MODEL_ON_CONST",X_INVALID_EXPRESSION:46,46:"X_INVALID_EXPRESSION",X_KEEP_ALIVE_INVALID_CHILDREN:47,47:"X_KEEP_ALIVE_INVALID_CHILDREN",X_PREFIX_ID_NOT_SUPPORTED:48,48:"X_PREFIX_ID_NOT_SUPPORTED",X_MODULE_MODE_NOT_SUPPORTED:49,49:"X_MODULE_MODE_NOT_SUPPORTED",X_CACHE_HANDLER_NOT_SUPPORTED:50,50:"X_CACHE_HANDLER_NOT_SUPPORTED",X_SCOPE_ID_NOT_SUPPORTED:51,51:"X_SCOPE_ID_NOT_SUPPORTED",X_VNODE_HOOKS:52,52:"X_VNODE_HOOKS",X_V_BIND_INVALID_SAME_NAME_ARGUMENT:53,53:"X_V_BIND_INVALID_SAME_NAME_ARGUMENT",__EXTEND_POINT__:54,54:"__EXTEND_POINT__"},xs={0:"Illegal comment.",1:"CDATA section is allowed only in XML context.",2:"Duplicate attribute.",3:"End tag cannot have attributes.",4:"Illegal '/' in tags.",5:"Unexpected EOF in tag.",6:"Unexpected EOF in CDATA section.",7:"Unexpected EOF in comment.",8:"Unexpected EOF in script.",9:"Unexpected EOF in tag.",10:"Incorrectly closed comment.",11:"Incorrectly opened comment.",12:"Illegal tag name. Use '<' to print '<'.",13:"Attribute value was expected.",14:"End tag name was expected.",15:"Whitespace was expected.",16:"Unexpected '<!--' in comment.",17:`Attribute name cannot contain U+0022 ("), U+0027 ('), and U+003C (<).`,18:"Unquoted attribute value cannot contain U+0022 (\"), U+0027 ('), U+003C (<), U+003D (=), and U+0060 (`).",19:"Attribute name cannot start with '='.",21:"'<?' is allowed only in XML context.",20:"Unexpected null character.",22:"Illegal '/' in tags.",23:"Invalid end tag.",24:"Element is missing end tag.",25:"Interpolation end sign was not found.",27:"End bracket for dynamic directive argument was not found. Note that dynamic directive argument cannot contain spaces.",26:"Legal directive name was expected.",28:"v-if/v-else-if is missing expression.",29:"v-if/else branches must use unique keys.",30:"v-else/v-else-if has no adjacent v-if or v-else-if.",31:"v-for is missing expression.",32:"v-for has invalid expression.",33:"<template v-for> key should be placed on the <template> tag.",34:"v-bind is missing expression.",53:"v-bind with same-name shorthand only allows static argument.",35:"v-on is missing expression.",36:"Unexpected custom directive on <slot> outlet.",37:"Mixed v-slot usage on both the component and nested <template>. When there are multiple named slots, all slots should use <template> syntax to avoid scope ambiguity.",38:"Duplicate slot names found. ",39:"Extraneous children found when component already has explicitly named default slot. These children will be ignored.",40:"v-slot can only be used on components or <template> tags.",41:"v-model is missing expression.",42:"v-model value must be a valid JavaScript member expression.",43:"v-model cannot be used on v-for or v-slot scope variables because they are not writable.",44:`v-model cannot be used on a prop, because local prop bindings are not writable.
|
|
7
|
+
Use a v-bind binding combined with a v-on listener that emits update:x event instead.`,45:"v-model cannot be used on a const binding because it is not writable.",46:"Error parsing JavaScript expression: ",47:"<KeepAlive> expects exactly one child component.",52:"@vnode-* hooks in templates are no longer supported. Use the vue: prefix instead. For example, @vnode-mounted should be changed to @vue:mounted. @vnode-* hooks support has been removed in 3.4.",48:'"prefixIdentifiers" option is not supported in this build of compiler.',49:"ES module mode is not supported in this build of compiler.",50:'"cacheHandlers" option is only supported when the "prefixIdentifiers" option is enabled.',51:'"scopeId" option is only supported in module mode.',54:""};function Ls(e,t,r=!1,i=[],o=Object.create(null)){}function Ds(e,t,r){return!1}function Vs(e,t){if(e&&(e.type==="ObjectProperty"||e.type==="ArrayPattern")){let r=t.length;for(;r--;){const i=t[r];if(i.type==="AssignmentExpression")return!0;if(i.type!=="ObjectProperty"&&!i.type.endsWith("Pattern"))break}}return!1}function Fs(e){let t=e.length;for(;t--;){const r=e[t];if(r.type==="NewExpression")return!0;if(r.type!=="MemberExpression")break}return!1}function ws(e,t){for(const r of e.params)for(const i of ve(r))t(i)}function Kr(e,t){const r=e.type==="SwitchCase"?e.consequent:e.body;for(const i of r)if(i.type==="VariableDeclaration"){if(i.declare)continue;for(const o of i.declarations)for(const n of ve(o.id))t(n)}else if(i.type==="FunctionDeclaration"||i.type==="ClassDeclaration"){if(i.declare||!i.id)continue;t(i.id)}else Us(i)?_s(i,!0,t):i.type==="SwitchStatement"&&Bs(i,!0,t)}function Us(e){return e.type==="ForOfStatement"||e.type==="ForInStatement"||e.type==="ForStatement"}function _s(e,t,r){const i=e.type==="ForStatement"?e.init:e.left;if(i&&i.type==="VariableDeclaration"&&(i.kind==="var"?t:!t))for(const o of i.declarations)for(const n of ve(o.id))r(n)}function Bs(e,t,r){for(const i of e.cases){for(const o of i.consequent)if(o.type==="VariableDeclaration"&&(o.kind==="var"?t:!t))for(const n of o.declarations)for(const s of ve(n.id))r(s);Kr(i,r)}}function ve(e,t=[]){switch(e.type){case"Identifier":t.push(e);break;case"MemberExpression":let r=e;for(;r.type==="MemberExpression";)r=r.object;t.push(r);break;case"ObjectPattern":for(const i of e.properties)i.type==="RestElement"?ve(i.argument,t):ve(i.value,t);break;case"ArrayPattern":e.elements.forEach(i=>{i&&ve(i,t)});break;case"RestElement":ve(e.argument,t);break;case"AssignmentPattern":ve(e.left,t);break}return t}const Xs=e=>/Function(?:Expression|Declaration)$|Method$/.test(e.type),Wr=e=>e&&(e.type==="ObjectProperty"||e.type==="ObjectMethod")&&!e.computed,js=(e,t)=>Wr(t)&&t.key===e,Yr=["TSAsExpression","TSTypeAssertion","TSNonNullExpression","TSInstantiationExpression","TSSatisfiesExpression"];function Jr(e){return Yr.includes(e.type)?Jr(e.expression):e}const re=e=>e.type===4&&e.isStatic;function An(e){switch(e){case"Teleport":case"teleport":return Ge;case"Suspense":case"suspense":return Bt;case"KeepAlive":case"keep-alive":return it;case"BaseTransition":case"base-transition":return gn}}const $s=/^$|^\d|[^\$\w\xA0-\uFFFF]/,ut=e=>!$s.test(e),Rn=/[A-Za-z_$\xA0-\uFFFF]/,Hs=/[\.\?\w$\xA0-\uFFFF]/,Gs=/\s+[.[]\s*|\s*[.[]\s+/g,zr=e=>e.type===4?e.content:e.loc.source,Qr=e=>{const t=zr(e).trim().replace(Gs,a=>a.trim());let r=0,i=[],o=0,n=0,s=null;for(let a=0;a<t.length;a++){const l=t.charAt(a);switch(r){case 0:if(l==="[")i.push(r),r=1,o++;else if(l==="(")i.push(r),r=2,n++;else if(!(a===0?Rn:Hs).test(l))return!1;break;case 1:l==="'"||l==='"'||l==="`"?(i.push(r),r=3,s=l):l==="["?o++:l==="]"&&(--o||(r=i.pop()));break;case 2:if(l==="'"||l==='"'||l==="`")i.push(r),r=3,s=l;else if(l==="(")n++;else if(l===")"){if(a===t.length-1)return!1;--n||(r=i.pop())}break;case 3:l===s&&(r=i.pop(),s=null);break}}return!o&&!n},ks=rt,Pn=Qr,Ks=/^\s*(?:async\s*)?(?:\([^)]*?\)|[\w$_]+)\s*(?::[^=]+)?=>|^\s*(?:async\s+)?function(?:\s+[\w$]+)?\s*\(/,Zr=e=>Ks.test(zr(e)),Ws=rt,qr=Zr;function Ys(e,t,r=t.length){return ei({offset:e.offset,line:e.line,column:e.column},t,r)}function ei(e,t,r=t.length){let i=0,o=-1;for(let n=0;n<r;n++)t.charCodeAt(n)===10&&(i++,o=n);return e.offset+=r,e.line+=i,e.column=o===-1?e.column+r:r-o,e}function Js(e,t){if(!e)throw new Error(t||"unexpected compiler condition")}function ne(e,t,r=!1){for(let i=0;i<e.props.length;i++){const o=e.props[i];if(o.type===7&&(r||o.exp)&&(J(t)?o.name===t:t.test(o.name)))return o}}function ht(e,t,r=!1,i=!1){for(let o=0;o<e.props.length;o++){const n=e.props[o];if(n.type===6){if(r)continue;if(n.name===t&&(n.value||i))return n}else if(n.name==="bind"&&(n.exp||i)&&Pe(n.arg,t))return n}}function Pe(e,t){return!!(e&&re(e)&&e.content===t)}function ti(e){return e.props.some(t=>t.type===7&&t.name==="bind"&&(!t.arg||t.arg.type!==4||!t.arg.isStatic))}function bt(e){return e.type===5||e.type===2}function pn(e){return e.type===7&&e.name==="pre"}function Mn(e){return e.type===7&&e.name==="slot"}function Je(e){return e.type===1&&e.tagType===3}function at(e){return e.type===1&&e.tagType===2}const zs=new Set([Ke,Ze]);function ni(e,t=[]){if(e&&!J(e)&&e.type===14){const r=e.callee;if(!J(r)&&zs.has(r))return ni(e.arguments[0],t.concat(e))}return[e,t]}function lt(e,t,r){let i,o=e.type===13?e.props:e.arguments[2],n=[],s;if(o&&!J(o)&&o.type===14){const a=ni(o);o=a[0],n=a[1],s=n[n.length-1]}if(o==null||J(o))i=le([t]);else if(o.type===14){const a=o.arguments[0];!J(a)&&a.type===15?mr(t,a)||a.properties.unshift(t):o.callee===Qt?i=W(r.helper(st),[le([t]),o]):o.arguments.unshift(le([t])),!i&&(i=o)}else o.type===15?(mr(t,o)||o.properties.unshift(t),i=o):(i=W(r.helper(st),[le([t]),o]),s&&s.callee===Ze&&(s=n[n.length-2]));e.type===13?s?s.arguments[0]=i:e.props=i:s?s.arguments[0]=i:e.arguments[2]=i}function mr(e,t){let r=!1;if(e.key.type===4){const i=e.key.content;r=t.properties.some(o=>o.key.type===4&&o.key.content===i)}return r}function ze(e,t){return`_${t}_${e.replace(/[^\w]/g,(r,i)=>r==="-"?"_":e.charCodeAt(i).toString())}`}function fe(e,t){if(!e||Object.keys(t).length===0)return!1;switch(e.type){case 1:for(let r=0;r<e.props.length;r++){const i=e.props[r];if(i.type===7&&(fe(i.arg,t)||fe(i.exp,t)))return!0}return e.children.some(r=>fe(r,t));case 11:return fe(e.source,t)?!0:e.children.some(r=>fe(r,t));case 9:return e.branches.some(r=>fe(r,t));case 10:return fe(e.condition,t)?!0:e.children.some(r=>fe(r,t));case 4:return!e.isStatic&&ut(e.content)&&!!t[e.content];case 8:return e.children.some(r=>Vr(r)&&fe(r,t));case 5:case 12:return fe(e.content,t);case 2:case 3:case 20:return!1;default:return!1}}function ri(e){return e.type===14&&e.callee===qt?e.arguments[1].returns:e}const ii=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/;function xn(e){for(let t=0;t<e.length;t++)if(!ae(e.charCodeAt(t)))return!1;return!0}function tn(e){return e.type===2&&xn(e.content)||e.type===12&&tn(e.content)}function Ln(e){return e.type===3||tn(e)}const si={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:gt,isPreTag:gt,isIgnoreNewlineTag:gt,isCustomElement:gt,onError:Cn,onWarn:kr,comments:!1,prefixIdentifiers:!1};let _=si,ct=null,Se="",ee=null,U=null,ie="",ye=-1,De=-1,Dn=0,Ae=!1,dn=null;const $=[],H=new Cs($,{onerr:Ee,ontext(e,t){Nt(Q(e,t),e,t)},ontextentity(e,t,r){Nt(e,t,r)},oninterpolation(e,t){if(Ae)return Nt(Q(e,t),e,t);let r=e+H.delimiterOpen.length,i=t-H.delimiterClose.length;for(;ae(Se.charCodeAt(r));)r++;for(;ae(Se.charCodeAt(i-1));)i--;let o=Q(r,i);o.includes("&")&&(o=_.decodeEntities(o,!1)),vn({type:5,content:At(o,!1,G(r,i)),loc:G(e,t)})},onopentagname(e,t){const r=Q(e,t);ee={type:1,tag:r,ns:_.getNamespace(r,$[0],_.ns),tagType:0,props:[],children:[],loc:G(e-1,t),codegenNode:void 0}},onopentagend(e){yr(e)},onclosetag(e,t){const r=Q(e,t);if(!_.isVoidTag(r)){let i=!1;for(let o=0;o<$.length;o++)if($[o].tag.toLowerCase()===r.toLowerCase()){i=!0,o>0&&Ee(24,$[0].loc.start.offset);for(let s=0;s<=o;s++){const a=$.shift();Ct(a,t,s<o)}break}i||Ee(23,oi(e,60))}},onselfclosingtag(e){const t=ee.tag;ee.isSelfClosing=!0,yr(e),$[0]&&$[0].tag===t&&Ct($.shift(),e)},onattribname(e,t){U={type:6,name:Q(e,t),nameLoc:G(e,t),value:void 0,loc:G(e)}},ondirname(e,t){const r=Q(e,t),i=r==="."||r===":"?"bind":r==="@"?"on":r==="#"?"slot":r.slice(2);if(!Ae&&i===""&&Ee(26,e),Ae||i==="")U={type:6,name:r,nameLoc:G(e,t),value:void 0,loc:G(e)};else if(U={type:7,name:i,rawName:r,exp:void 0,arg:void 0,modifiers:r==="."?[D("prop")]:[],loc:G(e)},i==="pre"){Ae=H.inVPre=!0,dn=ee;const o=ee.props;for(let n=0;n<o.length;n++)o[n].type===7&&(o[n]=oo(o[n]))}},ondirarg(e,t){if(e===t)return;const r=Q(e,t);if(Ae&&!pn(U))U.name+=r,Ve(U.nameLoc,t);else{const i=r[0]!=="[";U.arg=At(i?r:r.slice(1,-1),i,G(e,t),i?3:0)}},ondirmodifier(e,t){const r=Q(e,t);if(Ae&&!pn(U))U.name+="."+r,Ve(U.nameLoc,t);else if(U.name==="slot"){const i=U.arg;i&&(i.content+="."+r,Ve(i.loc,t))}else{const i=D(r,!0,G(e,t));U.modifiers.push(i)}},onattribdata(e,t){ie+=Q(e,t),ye<0&&(ye=e),De=t},onattribentity(e,t,r){ie+=e,ye<0&&(ye=t),De=r},onattribnameend(e){const t=U.loc.start.offset,r=Q(t,e);U.type===7&&(U.rawName=r),ee.props.some(i=>(i.type===7?i.rawName:i.name)===r)&&Ee(2,t)},onattribend(e,t){if(ee&&U){if(Ve(U.loc,t),e!==0)if(ie.includes("&")&&(ie=_.decodeEntities(ie,!0)),U.type===6)U.name==="class"&&(ie=li(ie).trim()),e===1&&!ie&&Ee(13,t),U.value={type:2,content:ie,loc:e===1?G(ye,De):G(ye-1,De+1)},H.inSFCRoot&&ee.tag==="template"&&U.name==="lang"&&ie&&ie!=="html"&&H.enterRCDATA(Vt("</template"),0);else{let r=0;U.exp=At(ie,!1,G(ye,De),0,r),U.name==="for"&&(U.forParseResult=Zs(U.exp));let i=-1;U.name==="bind"&&(i=U.modifiers.findIndex(o=>o.content==="sync"))>-1&&Ye("COMPILER_V_BIND_SYNC",_,U.loc,U.arg.loc.source)&&(U.name="model",U.modifiers.splice(i,1))}(U.type!==7||U.name!=="pre")&&ee.props.push(U)}ie="",ye=De=-1},oncomment(e,t){_.comments&&vn({type:3,content:Q(e,t),loc:G(e-4,t+3)})},onend(){const e=Se.length;for(let t=0;t<$.length;t++)Ct($[t],e-1),Ee(24,$[t].loc.start.offset)},oncdata(e,t){($[0]?$[0].ns:_.ns)!==0?Nt(Q(e,t),e,t):Ee(1,e-9)},onprocessinginstruction(e){($[0]?$[0].ns:_.ns)===0&&Ee(21,e-1)}}),Er=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Qs=/^\(|\)$/g;function Zs(e){const t=e.loc,r=e.content,i=r.match(ii);if(!i)return;const[,o,n]=i,s=(u,h,p=!1)=>{const d=t.start.offset+h,m=d+u.length;return At(u,!1,G(d,m),0,p?1:0)},a={source:s(n.trim(),r.indexOf(n,o.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let l=o.trim().replace(Qs,"").trim();const c=o.indexOf(l),f=l.match(Er);if(f){l=l.replace(Er,"").trim();const u=f[1].trim();let h;if(u&&(h=r.indexOf(u,c+l.length),a.key=s(u,h,!0)),f[2]){const p=f[2].trim();p&&(a.index=s(p,r.indexOf(p,a.key?h+u.length:c+l.length),!0))}}return l&&(a.value=s(l,c,!0)),a}function Q(e,t){return Se.slice(e,t)}function yr(e){H.inSFCRoot&&(ee.innerLoc=G(e+1,e+1)),vn(ee);const{tag:t,ns:r}=ee;r===0&&_.isPreTag(t)&&Dn++,_.isVoidTag(t)?Ct(ee,e):($.unshift(ee),(r===1||r===2)&&(H.inXML=!0)),ee=null}function Nt(e,t,r){{const n=$[0]&&$[0].tag;n!=="script"&&n!=="style"&&e.includes("&")&&(e=_.decodeEntities(e,!1))}const i=$[0]||ct,o=i.children[i.children.length-1];o&&o.type===2?(o.content+=e,Ve(o.loc,r)):i.children.push({type:2,content:e,loc:G(t,r)})}function Ct(e,t,r=!1){r?Ve(e.loc,oi(t,60)):Ve(e.loc,qs(t,62)+1),H.inSFCRoot&&(e.children.length?e.innerLoc.end=ge({},e.children[e.children.length-1].loc.end):e.innerLoc.end=ge({},e.innerLoc.start),e.innerLoc.source=Q(e.innerLoc.start.offset,e.innerLoc.end.offset));const{tag:i,ns:o,children:n}=e;if(Ae||(i==="slot"?e.tagType=2:gr(e)?e.tagType=3:to(e)&&(e.tagType=1)),H.inRCDATA||(e.children=ai(n)),o===0&&_.isIgnoreNewlineTag(i)){const s=n[0];s&&s.type===2&&(s.content=s.content.replace(/^\r?\n/,""))}o===0&&_.isPreTag(i)&&Dn--,dn===e&&(Ae=H.inVPre=!1,dn=null),H.inXML&&($[0]?$[0].ns:_.ns)===0&&(H.inXML=!1);{const s=e.props;if(!H.inSFCRoot&&Fe("COMPILER_NATIVE_TEMPLATE",_)&&e.tag==="template"&&!gr(e)){const l=$[0]||ct,c=l.children.indexOf(e);l.children.splice(c,1,...e.children)}const a=s.find(l=>l.type===6&&l.name==="inline-template");a&&Ye("COMPILER_INLINE_TEMPLATE",_,a.loc)&&e.children.length&&(a.value={type:2,content:Q(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:a.loc})}}function qs(e,t){let r=e;for(;Se.charCodeAt(r)!==t&&r<Se.length-1;)r++;return r}function oi(e,t){let r=e;for(;Se.charCodeAt(r)!==t&&r>=0;)r--;return r}const eo=new Set(["if","else","else-if","for","slot"]);function gr({tag:e,props:t}){if(e==="template"){for(let r=0;r<t.length;r++)if(t[r].type===7&&eo.has(t[r].name))return!0}return!1}function to({tag:e,props:t}){if(_.isCustomElement(e))return!1;if(e==="component"||no(e.charCodeAt(0))||An(e)||_.isBuiltInComponent&&_.isBuiltInComponent(e)||_.isNativeTag&&!_.isNativeTag(e))return!0;for(let r=0;r<t.length;r++){const i=t[r];if(i.type===6){if(i.name==="is"&&i.value){if(i.value.content.startsWith("vue:"))return!0;if(Ye("COMPILER_IS_ON_ELEMENT",_,i.loc))return!0}}else if(i.name==="bind"&&Pe(i.arg,"is")&&Ye("COMPILER_IS_ON_ELEMENT",_,i.loc))return!0}return!1}function no(e){return e>64&&e<91}const ro=/\r\n/g;function ai(e){const t=_.whitespace!=="preserve";let r=!1;for(let i=0;i<e.length;i++){const o=e[i];if(o.type===2)if(Dn)o.content=o.content.replace(ro,`
|
|
8
|
+
`);else if(xn(o.content)){const n=e[i-1]&&e[i-1].type,s=e[i+1]&&e[i+1].type;!n||!s||t&&(n===3&&(s===3||s===1)||n===1&&(s===3||s===1&&io(o.content)))?(r=!0,e[i]=null):o.content=" "}else t&&(o.content=li(o.content))}return r?e.filter(Boolean):e}function io(e){for(let t=0;t<e.length;t++){const r=e.charCodeAt(t);if(r===10||r===13)return!0}return!1}function li(e){let t="",r=!1;for(let i=0;i<e.length;i++)ae(e.charCodeAt(i))?r||(t+=" ",r=!0):(t+=e[i],r=!1);return t}function vn(e){($[0]||ct).children.push(e)}function G(e,t){return{start:H.getPos(e),end:t==null?t:H.getPos(t),source:t==null?t:Q(e,t)}}function so(e){return G(e.start.offset,e.end.offset)}function Ve(e,t){e.end=H.getPos(t),e.source=Q(e.start.offset,t)}function oo(e){const t={type:6,name:e.rawName,nameLoc:G(e.loc.start.offset,e.loc.start.offset+e.rawName.length),value:void 0,loc:e.loc};if(e.exp){const r=e.exp.loc;r.end.offset<e.loc.end.offset&&(r.start.offset--,r.start.column--,r.end.offset++,r.end.column++),t.value={type:2,content:e.exp.content,loc:r}}return t}function At(e,t=!1,r,i=0,o=0){return D(e,t,r,i)}function Ee(e,t,r){_.onError(j(e,G(t,t)))}function ao(){H.reset(),ee=null,U=null,ie="",ye=-1,De=-1,$.length=0}function Vn(e,t){if(ao(),Se=e,_=ge({},si),t){let o;for(o in t)t[o]!=null&&(_[o]=t[o])}H.mode=_.parseMode==="html"?1:_.parseMode==="sfc"?2:0,H.inXML=_.ns===1||_.ns===2;const r=t&&t.delimiters;r&&(H.delimiterOpen=Vt(r[0]),H.delimiterClose=Vt(r[1]));const i=ct=$r([],e);return H.parse(Se),i.loc=G(0,e.length),i.children=ai(i.children),ct=null,i}function lo(e,t){Rt(e,void 0,t,!!ci(e))}function ci(e){const t=e.children.filter(r=>r.type!==3);return t.length===1&&t[0].type===1&&!at(t[0])?t[0]:null}function Rt(e,t,r,i=!1,o=!1){const{children:n}=e,s=[];for(let f=0;f<n.length;f++){const u=n[f];if(u.type===1&&u.tagType===0){const h=i?0:se(u,r);if(h>0){if(h>=2){u.codegenNode.patchFlag=-1,s.push(u);continue}}else{const p=u.codegenNode;if(p.type===13){const d=p.patchFlag;if((d===void 0||d===512||d===1)&&ui(u,r)>=2){const m=hi(u);m&&(p.props=r.hoist(m))}p.dynamicProps&&(p.dynamicProps=r.hoist(p.dynamicProps))}}}else if(u.type===12&&(i?0:se(u,r))>=2){u.codegenNode.type===14&&u.codegenNode.arguments.length>0&&u.codegenNode.arguments.push("-1"),s.push(u);continue}if(u.type===1){const h=u.tagType===1;h&&r.scopes.vSlot++,Rt(u,e,r,!1,o),h&&r.scopes.vSlot--}else if(u.type===11)Rt(u,e,r,u.children.length===1,!0);else if(u.type===9)for(let h=0;h<u.branches.length;h++)Rt(u.branches[h],e,r,u.branches[h].children.length===1,o)}let a=!1;if(s.length===n.length&&e.type===1){if(e.tagType===0&&e.codegenNode&&e.codegenNode.type===13&&Re(e.codegenNode.children))e.codegenNode.children=l(xe(e.codegenNode.children)),a=!0;else if(e.tagType===1&&e.codegenNode&&e.codegenNode.type===13&&e.codegenNode.children&&!Re(e.codegenNode.children)&&e.codegenNode.children.type===15){const f=c(e.codegenNode,"default");f&&(f.returns=l(xe(f.returns)),a=!0)}else if(e.tagType===3&&t&&t.type===1&&t.tagType===1&&t.codegenNode&&t.codegenNode.type===13&&t.codegenNode.children&&!Re(t.codegenNode.children)&&t.codegenNode.children.type===15){const f=ne(e,"slot",!0),u=f&&f.arg&&c(t.codegenNode,f.arg);u&&(u.returns=l(xe(u.returns)),a=!0)}}if(!a)for(const f of s)f.codegenNode=r.cache(f.codegenNode);function l(f){const u=r.cache(f);return u.needArraySpread=!0,u}function c(f,u){if(f.children&&!Re(f.children)&&f.children.type===15){const h=f.children.properties.find(p=>p.key===u||p.key.content===u);return h&&h.value}}s.length&&r.transformHoist&&r.transformHoist(n,r,e)}function se(e,t){const{constantCache:r}=t;switch(e.type){case 1:if(e.tagType!==0)return 0;const i=r.get(e);if(i!==void 0)return i;const o=e.codegenNode;if(o.type!==13||o.isBlock&&e.tag!=="svg"&&e.tag!=="foreignObject"&&e.tag!=="math")return 0;if(o.patchFlag===void 0){let s=3;const a=ui(e,t);if(a===0)return r.set(e,0),0;a<s&&(s=a);for(let l=0;l<e.children.length;l++){const c=se(e.children[l],t);if(c===0)return r.set(e,0),0;c<s&&(s=c)}if(s>1)for(let l=0;l<e.props.length;l++){const c=e.props[l];if(c.type===7&&c.name==="bind"&&c.exp){const f=se(c.exp,t);if(f===0)return r.set(e,0),0;f<s&&(s=f)}}if(o.isBlock){for(let l=0;l<e.props.length;l++)if(e.props[l].type===7)return r.set(e,0),0;t.removeHelper(Le),t.removeHelper(Be(t.inSSR,o.isComponent)),o.isBlock=!1,t.helper(_e(t.inSSR,o.isComponent))}return r.set(e,s),s}else return r.set(e,0),0;case 2:case 3:return 3;case 9:case 11:case 10:return 0;case 5:case 12:return se(e.content,t);case 4:return e.constType;case 8:let n=3;for(let s=0;s<e.children.length;s++){const a=e.children[s];if(J(a)||En(a))continue;const l=se(a,t);if(l===0)return 0;l<n&&(n=l)}return n;case 20:return 2;default:return 0}}const co=new Set([Jt,zt,Ke,Ze]);function fi(e,t){if(e.type===14&&!J(e.callee)&&co.has(e.callee)){const r=e.arguments[0];if(r.type===4)return se(r,t);if(r.type===14)return fi(r,t)}return 0}function ui(e,t){let r=3;const i=hi(e);if(i&&i.type===15){const{properties:o}=i;for(let n=0;n<o.length;n++){const{key:s,value:a}=o[n],l=se(s,t);if(l===0)return l;l<r&&(r=l);let c;if(a.type===4?c=se(a,t):a.type===14?c=fi(a,t):c=0,c===0)return c;c<r&&(r=c)}}return r}function hi(e){const t=e.codegenNode;if(t.type===13)return t.props}function pi(e,{filename:t="",prefixIdentifiers:r=!1,hoistStatic:i=!1,hmr:o=!1,cacheHandlers:n=!1,nodeTransforms:s=[],directiveTransforms:a={},transformHoist:l=null,isBuiltInComponent:c=rt,isCustomElement:f=rt,expressionPlugins:u=[],scopeId:h=null,slotted:p=!0,ssr:d=!1,inSSR:m=!1,ssrCssVars:g="",bindingMetadata:E=Wi,inline:v=!1,isTS:y=!1,onError:S=Cn,onWarn:N=kr,compatConfig:b}){const L=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),T={filename:t,selfName:L&&Dr(Me(L[1])),prefixIdentifiers:r,hoistStatic:i,hmr:o,cacheHandlers:n,nodeTransforms:s,directiveTransforms:a,transformHoist:l,isBuiltInComponent:c,isCustomElement:f,expressionPlugins:u,scopeId:h,slotted:p,ssr:d,inSSR:m,ssrCssVars:g,bindingMetadata:E,inline:v,isTS:y,onError:S,onWarn:N,compatConfig:b,root:e,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],cached:[],constantCache:new WeakMap,vForMemoKeyedNodes:new WeakSet,temps:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,grandParent:null,currentNode:e,childIndex:0,inVOnce:!1,helper(I){const C=T.helpers.get(I)||0;return T.helpers.set(I,C+1),I},removeHelper(I){const C=T.helpers.get(I);if(C){const M=C-1;M?T.helpers.set(I,M):T.helpers.delete(I)}},helperString(I){return`_${we[T.helper(I)]}`},replaceNode(I){T.parent.children[T.childIndex]=T.currentNode=I},removeNode(I){const C=T.parent.children,M=I?C.indexOf(I):T.currentNode?T.childIndex:-1;!I||I===T.currentNode?(T.currentNode=null,T.onNodeRemoved()):T.childIndex>M&&(T.childIndex--,T.onNodeRemoved()),T.parent.children.splice(M,1)},onNodeRemoved:rt,addIdentifiers(I){},removeIdentifiers(I){},hoist(I){J(I)&&(I=D(I)),T.hoists.push(I);const C=D(`_hoisted_${T.hoists.length}`,!1,I.loc,2);return C.hoisted=I,C},cache(I,C=!1,M=!1){const R=Hr(T.cached.length,I,C,M);return T.cached.push(R),R}};return T.filters=new Set,T}function di(e,t){const r=pi(e,t);pt(e,r),t.hoistStatic&&lo(e,r),t.ssr||fo(e,r),e.helpers=new Set([...r.helpers.keys()]),e.components=[...r.components],e.directives=[...r.directives],e.imports=r.imports,e.hoists=r.hoists,e.temps=r.temps,e.cached=r.cached,e.transformed=!0,e.filters=[...r.filters]}function fo(e,t){const{helper:r}=t,{children:i}=e;if(i.length===1){const o=ci(e);if(o&&o.codegenNode){const n=o.codegenNode;n.type===13&&en(n,t),e.codegenNode=n}else e.codegenNode=i[0]}else if(i.length>1){let o=64;e.codegenNode=We(t,r(ke),void 0,e.children,o,void 0,void 0,!0,void 0,!1)}}function uo(e,t){let r=0;const i=()=>{r--};for(;r<e.children.length;r++){const o=e.children[r];J(o)||(t.grandParent=t.parent,t.parent=e,t.childIndex=r,t.onNodeRemoved=i,pt(o,t))}}function pt(e,t){t.currentNode=e;const{nodeTransforms:r}=t,i=[];for(let n=0;n<r.length;n++){const s=r[n](e,t);if(s&&(Re(s)?i.push(...s):i.push(s)),t.currentNode)e=t.currentNode;else return}switch(e.type){case 3:t.ssr||t.helper(Qe);break;case 5:t.ssr||t.helper(ft);break;case 9:for(let n=0;n<e.branches.length;n++)pt(e.branches[n],t);break;case 10:case 11:case 1:case 0:uo(e,t);break}t.currentNode=e;let o=i.length;for(;o--;)i[o]()}function Fn(e,t){const r=J(e)?i=>i===e:i=>e.test(i);return(i,o)=>{if(i.type===1){const{props:n}=i;if(i.tagType===3&&n.some(Mn))return;const s=[];for(let a=0;a<n.length;a++){const l=n[a];if(l.type===7&&r(l.name)){n.splice(a,1),a--;const c=t(i,l,o);c&&s.push(c)}}return s}}}const nn="/*@__PURE__*/",vi=e=>`${we[e]}: _${we[e]}`;function ho(e,{mode:t="function",prefixIdentifiers:r=t==="module",sourceMap:i=!1,filename:o="template.vue.html",scopeId:n=null,optimizeImports:s=!1,runtimeGlobalName:a="Vue",runtimeModuleName:l="vue",ssrRuntimeModuleName:c="vue/server-renderer",ssr:f=!1,isTS:u=!1,inSSR:h=!1}){const p={mode:t,prefixIdentifiers:r,sourceMap:i,filename:o,scopeId:n,optimizeImports:s,runtimeGlobalName:a,runtimeModuleName:l,ssrRuntimeModuleName:c,ssr:f,isTS:u,inSSR:h,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(m){return`_${we[m]}`},push(m,g=-2,E){p.code+=m},indent(){d(++p.indentLevel)},deindent(m=!1){m?--p.indentLevel:d(--p.indentLevel)},newline(){d(p.indentLevel)}};function d(m){p.push(`
|
|
9
|
+
`+" ".repeat(m),0)}return p}function mi(e,t={}){const r=ho(e,t);t.onContextCreated&&t.onContextCreated(r);const{mode:i,push:o,prefixIdentifiers:n,indent:s,deindent:a,newline:l,scopeId:c,ssr:f}=r,u=Array.from(e.helpers),h=u.length>0,p=!n&&i!=="module";po(e,r);const m=f?"ssrRender":"render",E=(f?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ");if(o(`function ${m}(${E}) {`),s(),p&&(o("with (_ctx) {"),s(),h&&(o(`const { ${u.map(vi).join(", ")} } = _Vue
|
|
10
|
+
`,-1),l())),e.components.length&&(un(e.components,"component",r),(e.directives.length||e.temps>0)&&l()),e.directives.length&&(un(e.directives,"directive",r),e.temps>0&&l()),e.filters&&e.filters.length&&(l(),un(e.filters,"filter",r),l()),e.temps>0){o("let ");for(let v=0;v<e.temps;v++)o(`${v>0?", ":""}_temp${v}`)}return(e.components.length||e.directives.length||e.temps)&&(o(`
|
|
11
|
+
`,0),l()),f||o("return "),e.codegenNode?te(e.codegenNode,r):o("null"),p&&(a(),o("}")),a(),o("}"),{ast:e,code:r.code,preamble:"",map:r.map?r.map.toJSON():void 0}}function po(e,t){const{ssr:r,prefixIdentifiers:i,push:o,newline:n,runtimeModuleName:s,runtimeGlobalName:a,ssrRuntimeModuleName:l}=t,c=a,f=Array.from(e.helpers);if(f.length>0&&(o(`const _Vue = ${c}
|
|
12
|
+
`,-1),e.hoists.length)){const u=[Xt,jt,Qe,$t,Nn].filter(h=>f.includes(h)).map(vi).join(", ");o(`const { ${u} } = _Vue
|
|
13
|
+
`,-1)}vo(e.hoists,t),n(),o("return ")}function un(e,t,{helper:r,push:i,newline:o,isTS:n}){const s=r(t==="filter"?Kt:t==="component"?Ht:kt);for(let a=0;a<e.length;a++){let l=e[a];const c=l.endsWith("__self");c&&(l=l.slice(0,-6)),i(`const ${ze(l,t)} = ${s}(${JSON.stringify(l)}${c?", true":""})${n?"!":""}`),a<e.length-1&&o()}}function vo(e,t){if(!e.length)return;t.pure=!0;const{push:r,newline:i}=t;i();for(let o=0;o<e.length;o++){const n=e[o];n&&(r(`const _hoisted_${o+1} = `),te(n,t),i())}t.pure=!1}function wn(e,t){const r=e.length>3||!1;t.push("["),r&&t.indent(),dt(e,t,r),r&&t.deindent(),t.push("]")}function dt(e,t,r=!1,i=!0){const{push:o,newline:n}=t;for(let s=0;s<e.length;s++){const a=e[s];J(a)?o(a,-3):Re(a)?wn(a,t):te(a,t),s<e.length-1&&(r?(i&&o(","),n()):i&&o(", "))}}function te(e,t){if(J(e)){t.push(e,-3);return}if(En(e)){t.push(t.helper(e));return}switch(e.type){case 1:case 9:case 11:te(e.codegenNode,t);break;case 2:mo(e,t);break;case 4:Ei(e,t);break;case 5:Eo(e,t);break;case 12:te(e.codegenNode,t);break;case 8:yi(e,t);break;case 3:go(e,t);break;case 13:So(e,t);break;case 14:No(e,t);break;case 15:Io(e,t);break;case 17:Oo(e,t);break;case 18:bo(e,t);break;case 19:Co(e,t);break;case 20:Ao(e,t);break;case 21:dt(e.body,t,!0,!1);break}}function mo(e,t){t.push(JSON.stringify(e.content),-3,e)}function Ei(e,t){const{content:r,isStatic:i}=e;t.push(i?JSON.stringify(r):r,-3,e)}function Eo(e,t){const{push:r,helper:i,pure:o}=t;o&&r(nn),r(`${i(ft)}(`),te(e.content,t),r(")")}function yi(e,t){for(let r=0;r<e.children.length;r++){const i=e.children[r];J(i)?t.push(i,-3):te(i,t)}}function yo(e,t){const{push:r}=t;if(e.type===8)r("["),yi(e,t),r("]");else if(e.isStatic){const i=ut(e.content)?e.content:JSON.stringify(e.content);r(i,-2,e)}else r(`[${e.content}]`,-3,e)}function go(e,t){const{push:r,helper:i,pure:o}=t;o&&r(nn),r(`${i(Qe)}(${JSON.stringify(e.content)})`,-3,e)}function So(e,t){const{push:r,helper:i,pure:o}=t,{tag:n,props:s,children:a,patchFlag:l,dynamicProps:c,directives:f,isBlock:u,disableTracking:h,isComponent:p}=e;let d;l&&(d=String(l)),f&&r(i(Wt)+"("),u&&r(`(${i(Le)}(${h?"true":""}), `),o&&r(nn);const m=u?Be(t.inSSR,p):_e(t.inSSR,p);r(i(m)+"(",-2,e),dt(To([n,s,a,d,c]),t),r(")"),u&&r(")"),f&&(r(", "),te(f,t),r(")"))}function To(e){let t=e.length;for(;t--&&e[t]==null;);return e.slice(0,t+1).map(r=>r||"null")}function No(e,t){const{push:r,helper:i,pure:o}=t,n=J(e.callee)?e.callee:i(e.callee);o&&r(nn),r(n+"(",-2,e),dt(e.arguments,t),r(")")}function Io(e,t){const{push:r,indent:i,deindent:o,newline:n}=t,{properties:s}=e;if(!s.length){r("{}",-2,e);return}const a=s.length>1||!1;r(a?"{":"{ "),a&&i();for(let l=0;l<s.length;l++){const{key:c,value:f}=s[l];yo(c,t),r(": "),te(f,t),l<s.length-1&&(r(","),n())}a&&o(),r(a?"}":" }")}function Oo(e,t){wn(e.elements,t)}function bo(e,t){const{push:r,indent:i,deindent:o}=t,{params:n,returns:s,body:a,newline:l,isSlot:c}=e;c&&r(`_${we[Zt]}(`),r("(",-2,e),Re(n)?dt(n,t):n&&te(n,t),r(") => "),(l||a)&&(r("{"),i()),s?(l&&r("return "),Re(s)?wn(s,t):te(s,t)):a&&te(a,t),(l||a)&&(o(),r("}")),c&&(e.isNonScopedSlot&&r(", undefined, true"),r(")"))}function Co(e,t){const{test:r,consequent:i,alternate:o,newline:n}=e,{push:s,indent:a,deindent:l,newline:c}=t;if(r.type===4){const u=!ut(r.content);u&&s("("),Ei(r,t),u&&s(")")}else s("("),te(r,t),s(")");n&&a(),t.indentLevel++,n||s(" "),s("? "),te(i,t),t.indentLevel--,n&&c(),n||s(" "),s(": ");const f=o.type===19;f||t.indentLevel++,te(o,t),f||t.indentLevel--,n&&l(!0)}function Ao(e,t){const{push:r,helper:i,indent:o,deindent:n,newline:s}=t,{needPauseTracking:a,needArraySpread:l}=e;l&&r("[...("),r(`_cache[${e.index}] || (`),a&&(o(),r(`${i(ot)}(-1`),e.inVOnce&&r(", true"),r("),"),s(),r("(")),r(`_cache[${e.index}] = `),te(e.value,t),a&&(r(`).cacheIndex = ${e.index},`),s(),r(`${i(ot)}(1),`),s(),r(`_cache[${e.index}]`),n()),r(")"),l&&r(")]")}new RegExp("\\b"+"arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield".split(",").join("\\b|\\b")+"\\b");const Ro=(e,t)=>{if(e.type===5)e.content=Pt(e.content,t);else if(e.type===1){const r=ne(e,"memo");for(let i=0;i<e.props.length;i++){const o=e.props[i];if(o.type===7&&o.name!=="for"){const n=o.exp,s=o.arg;n&&n.type===4&&!(o.name==="on"&&s)&&!(r&&t.vForMemoKeyedNodes.has(e)&&s&&s.type===4&&s.content==="key")&&(o.exp=Pt(n,t,o.name==="slot")),s&&s.type===4&&!s.isStatic&&(o.arg=Pt(s,t))}}}};function Pt(e,t,r=!1,i=!1,o=Object.create(t.identifiers)){return e}function gi(e){return J(e)?e:e.type===4?e.content:e.children.map(gi).join("")}const Po=Fn(/^(?:if|else|else-if)$/,(e,t,r)=>Si(e,t,r,(i,o,n)=>{const s=r.parent.children;let a=s.indexOf(i),l=0;for(;a-->=0;){const c=s[a];c&&c.type===9&&(l+=c.branches.length)}return()=>{if(n)i.codegenNode=Tr(o,l,r);else{const c=Mo(i.codegenNode);c.alternate=Tr(o,l+i.branches.length-1,r)}}}));function Si(e,t,r,i){if(t.name!=="else"&&(!t.exp||!t.exp.content.trim())){const o=t.exp?t.exp.loc:e.loc;r.onError(j(28,t.loc)),t.exp=D("true",!1,o)}if(t.name==="if"){const o=Sr(e,t),n={type:9,loc:so(e.loc),branches:[o]};if(r.replaceNode(n),i)return i(n,o,!0)}else{const o=r.parent.children;let n=o.indexOf(e);for(;n-->=-1;){const s=o[n];if(s&&Ln(s)){r.removeNode(s);continue}if(s&&s.type===9){(t.name==="else-if"||t.name==="else")&&s.branches[s.branches.length-1].condition===void 0&&r.onError(j(30,e.loc)),r.removeNode();const a=Sr(e,t);s.branches.push(a);const l=i&&i(s,a,!1);pt(a,r),l&&l(),r.currentNode=null}else r.onError(j(30,e.loc));break}}}function Sr(e,t){const r=e.tagType===3;return{type:10,loc:e.loc,condition:t.name==="else"?void 0:t.exp,children:r&&!ne(e,"for")?e.children:[e],userKey:ht(e,"key"),isTemplateIf:r}}function Tr(e,t,r){return e.condition?Dt(e.condition,Nr(e,t,r),W(r.helper(Qe),['""',"true"])):Nr(e,t,r)}function Nr(e,t,r){const{helper:i}=r,o=k("key",D(`${t}`,!1,z,2)),{children:n}=e,s=n[0];if(n.length!==1||s.type!==1)if(n.length===1&&s.type===11){const l=s.codegenNode;return lt(l,o,r),l}else return We(r,i(ke),le([o]),n,64,void 0,void 0,!0,!1,!1,e.loc);else{const l=s.codegenNode,c=ri(l);return c.type===13&&en(c,r),lt(c,o,r),l}}function Mo(e){for(;;)if(e.type===19)if(e.alternate.type===19)e=e.alternate;else return e;else e.type===20&&(e=e.value)}const xo=Fn("for",(e,t,r)=>{const{helper:i,removeHelper:o}=r;return Ti(e,t,r,n=>{const s=W(i(Yt),[n.source]),a=Je(e),l=ne(e,"memo"),c=ht(e,"key",!1,!0);c&&c.type;let f=c&&(c.type===6?c.value?D(c.value.content,!0):void 0:c.exp);const u=f?k("key",f):null,h=n.source.type===4&&n.source.constType>0,p=h?64:c?128:256;return n.codegenNode=We(r,i(ke),void 0,s,p,void 0,void 0,!0,!h,!1,e.loc),()=>{let d;const{children:m}=n,g=m.length!==1||m[0].type!==1,E=at(e)?e:a&&e.children.length===1&&at(e.children[0])?e.children[0]:null;if(E?(d=E.codegenNode,a&&u&<(d,u,r)):g?d=We(r,i(ke),u?le([u]):void 0,e.children,64,void 0,void 0,!0,void 0,!1):(d=m[0].codegenNode,a&&u&<(d,u,r),d.isBlock!==!h&&(d.isBlock?(o(Le),o(Be(r.inSSR,d.isComponent))):o(_e(r.inSSR,d.isComponent))),d.isBlock=!h,d.isBlock?(i(Le),i(Be(r.inSSR,d.isComponent))):i(_e(r.inSSR,d.isComponent))),l){const v=Ue(Ft(n.parseResult,[D("_cached")]));v.body=Gr([ce(["const _memo = (",l.exp,")"]),ce(["if (_cached && _cached.el",...f?[" && _cached.key === ",f]:[],` && ${r.helperString(bn)}(_cached, _memo)) return _cached`]),ce(["const _item = ",d]),D("_item.memo = _memo"),D("return _item")]),s.arguments.push(v,D("_cache"),D(String(r.cached.length))),r.cached.push(null)}else s.arguments.push(Ue(Ft(n.parseResult),d,!0))}})});function Ti(e,t,r,i){if(!t.exp){r.onError(j(31,t.loc));return}const o=t.forParseResult;if(!o){r.onError(j(32,t.loc));return}Un(o);const{addIdentifiers:n,removeIdentifiers:s,scopes:a}=r,{source:l,value:c,key:f,index:u}=o,h={type:11,loc:t.loc,source:l,valueAlias:c,keyAlias:f,objectIndexAlias:u,parseResult:o,children:Je(e)?e.children:[e]};r.replaceNode(h),a.vFor++;const p=i&&i(h);return()=>{a.vFor--,p&&p()}}function Un(e,t){e.finalized||(e.finalized=!0)}function Ft({value:e,key:t,index:r},i=[]){return Lo([e,t,r,...i])}function Lo(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((r,i)=>r||D("_".repeat(i+1),!1))}const Ir=D("undefined",!1),Ni=(e,t)=>{if(e.type===1&&(e.tagType===1||e.tagType===3)){const r=ne(e,"slot");if(r)return r.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},Do=(e,t)=>{let r;if(Je(e)&&e.props.some(Mn)&&(r=ne(e,"for"))){const i=r.forParseResult;if(i){Un(i);const{value:o,key:n,index:s}=i,{addIdentifiers:a,removeIdentifiers:l}=t;return o&&a(o),n&&a(n),s&&a(s),()=>{o&&l(o),n&&l(n),s&&l(s)}}}},Vo=(e,t,r,i)=>Ue(e,r,!1,!0,r.length?r[0].loc:i);function Ii(e,t,r=Vo){t.helper(Zt);const{children:i,loc:o}=e,n=[],s=[];let a=t.scopes.vSlot>0||t.scopes.vFor>0;const l=ne(e,"slot",!0);if(l){const{arg:g,exp:E}=l;g&&!re(g)&&(a=!0),n.push(k(g||D("default",!0),r(E,void 0,i,o)))}let c=!1,f=!1;const u=[],h=new Set;let p=0;for(let g=0;g<i.length;g++){const E=i[g];let v;if(!Je(E)||!(v=ne(E,"slot",!0))){E.type!==3&&u.push(E);continue}if(l){t.onError(j(37,v.loc));break}c=!0;const{children:y,loc:S}=E,{arg:N=D("default",!0),exp:b,loc:L}=v;let T;re(N)?T=N?N.content:"default":a=!0;const I=ne(E,"for"),C=r(b,I,y,S);let M,R;if(M=ne(E,"if"))a=!0,s.push(Dt(M.exp,It(N,C,p++),Ir));else if(R=ne(E,/^else(?:-if)?$/,!0)){let A=g,x;for(;A--&&(x=i[A],!!Ln(x)););if(x&&Je(x)&&ne(x,/^(?:else-)?if$/)){let F=s[s.length-1];for(;F.alternate.type===19;)F=F.alternate;F.alternate=R.exp?Dt(R.exp,It(N,C,p++),Ir):It(N,C,p++)}else t.onError(j(30,R.loc))}else if(I){a=!0;const A=I.forParseResult;A?(Un(A),s.push(W(t.helper(Yt),[A.source,Ue(Ft(A),It(N,C),!0)]))):t.onError(j(32,I.loc))}else{if(T){if(h.has(T)){t.onError(j(38,L));continue}h.add(T),T==="default"&&(f=!0)}n.push(k(N,C))}}if(!l){const g=(E,v)=>{const y=r(E,void 0,v,o);return t.compatConfig&&(y.isNonScopedSlot=!0),k("default",y)};c?u.length&&!u.every(tn)&&(f?t.onError(j(39,u[0].loc)):n.push(g(void 0,u))):n.push(g(void 0,i))}const d=a?2:Mt(e.children)?3:1;let m=le(n.concat(k("_",D(d+"",!1))),o);return s.length&&(m=W(t.helper(On),[m,xe(s)])),{slots:m,hasDynamicSlots:a}}function It(e,t,r){const i=[k("name",e),k("fn",t)];return r!=null&&i.push(k("key",D(String(r),!0))),le(i)}function Mt(e){for(let t=0;t<e.length;t++){const r=e[t];switch(r.type){case 1:if(r.tagType===2||Mt(r.children))return!0;break;case 9:if(Mt(r.branches))return!0;break;case 10:case 11:if(Mt(r.children))return!0;break}}return!1}const Oi=new WeakMap,bi=(e,t)=>function(){if(e=t.currentNode,!(e.type===1&&(e.tagType===0||e.tagType===1)))return;const{tag:i,props:o}=e,n=e.tagType===1;let s=n?Ci(e,t):`"${i}"`;const a=Vr(s)&&s.callee===Gt;let l,c,f=0,u,h,p,d=a||s===Ge||s===Bt||!n&&(i==="svg"||i==="foreignObject"||i==="math");if(o.length>0){const m=_n(e,t,void 0,n,a);l=m.props,f=m.patchFlag,h=m.dynamicPropNames;const g=m.directives;p=g&&g.length?xe(g.map(E=>Ai(E,t))):void 0,m.shouldUseBlock&&(d=!0)}if(e.children.length>0)if(s===it&&(d=!0,f|=1024),n&&s!==Ge&&s!==it){const{slots:g,hasDynamicSlots:E}=Ii(e,t);c=g,E&&(f|=1024)}else if(e.children.length===1&&s!==Ge){const g=e.children[0],E=g.type,v=E===5||E===8;v&&se(g,t)===0&&(f|=1),v||E===2?c=g:c=e.children}else c=e.children;h&&h.length&&(u=wo(h)),e.codegenNode=We(t,s,l,c,f===0?void 0:f,u,p,!!d,!1,n,e.loc)};function Ci(e,t,r=!1){let{tag:i}=e;const o=mn(i),n=ht(e,"is",!1,!0);if(n)if(o||Fe("COMPILER_IS_ON_ELEMENT",t)){let a;if(n.type===6?a=n.value&&D(n.value.content,!0):(a=n.exp,a||(a=D("is",!1,n.arg.loc))),a)return W(t.helper(Gt),[a])}else n.type===6&&n.value.content.startsWith("vue:")&&(i=n.value.content.slice(4));const s=An(i)||t.isBuiltInComponent(i);return s?(r||t.helper(s),s):(t.helper(Ht),t.components.add(i),ze(i,"component"))}function _n(e,t,r=e.props,i,o,n=!1){const{tag:s,loc:a,children:l}=e;let c=[];const f=[],u=[],h=l.length>0;let p=!1,d=0,m=!1,g=!1,E=!1,v=!1,y=!1,S=!1;const N=[],b=C=>{c.length&&(f.push(le(Or(c),a)),c=[]),C&&f.push(C)},L=()=>{t.scopes.vFor>0&&c.push(k(D("ref_for",!0),D("true")))},T=({key:C,value:M})=>{if(re(C)){const R=C.content,A=Fr(R);if(A&&(!i||o)&&R.toLowerCase()!=="onclick"&&R!=="onUpdate:modelValue"&&!lr(R)&&(v=!0),A&&lr(R)&&(S=!0),A&&M.type===14&&(M=M.arguments[0]),M.type===20||(M.type===4||M.type===8)&&se(M,t)>0)return;R==="ref"?m=!0:R==="class"?g=!0:R==="style"?E=!0:R!=="key"&&!N.includes(R)&&N.push(R),i&&(R==="class"||R==="style")&&!N.includes(R)&&N.push(R)}else y=!0};for(let C=0;C<r.length;C++){const M=r[C];if(M.type===6){const{loc:R,name:A,nameLoc:x,value:F}=M;let X=!0;if(A==="ref"&&(m=!0,L()),A==="is"&&(mn(s)||F&&F.content.startsWith("vue:")||Fe("COMPILER_IS_ON_ELEMENT",t)))continue;c.push(k(D(A,!0,x),D(F?F.content:"",X,F?F.loc:R)))}else{const{name:R,arg:A,exp:x,loc:F,modifiers:X}=M,oe=R==="bind",Y=R==="on";if(R==="slot"){i||t.onError(j(40,F));continue}if(R==="once"||R==="memo"||R==="is"||oe&&Pe(A,"is")&&(mn(s)||Fe("COMPILER_IS_ON_ELEMENT",t))||Y&&n)continue;if((oe&&Pe(A,"key")||Y&&h&&Pe(A,"vue:before-update"))&&(p=!0),oe&&Pe(A,"ref")&&L(),!A&&(oe||Y)){if(y=!0,x)if(oe){if(b(),Fe("COMPILER_V_BIND_OBJECT_ORDER",t)){f.unshift(x);continue}L(),b(),f.push(x)}else b({type:14,loc:F,callee:t.helper(Qt),arguments:i?[x]:[x,"true"]});else t.onError(j(oe?34:35,F));continue}oe&&X.some(he=>he.content==="prop")&&(d|=32);const ue=t.directiveTransforms[R];if(ue){const{props:he,needRuntime:pe}=ue(M,e,t);!n&&he.forEach(T),Y&&A&&!re(A)?b(le(he,a)):c.push(...he),pe&&(u.push(M),En(pe)&&Oi.set(M,pe))}else Ki(R)||(u.push(M),h&&(p=!0))}}let I;if(f.length?(b(),f.length>1?I=W(t.helper(st),f,a):I=f[0]):c.length&&(I=le(Or(c),a)),y?d|=16:(g&&!i&&(d|=2),E&&!i&&(d|=4),N.length&&(d|=8),v&&(d|=32)),!p&&(d===0||d===32)&&(m||S||u.length>0)&&(d|=512),!t.inSSR&&I)switch(I.type){case 15:let C=-1,M=-1,R=!1;for(let F=0;F<I.properties.length;F++){const X=I.properties[F].key;re(X)?X.content==="class"?C=F:X.content==="style"&&(M=F):X.isHandlerKey||(R=!0)}const A=I.properties[C],x=I.properties[M];R?I=W(t.helper(Ke),[I]):(A&&!re(A.value)&&(A.value=W(t.helper(Jt),[A.value])),x&&(E||x.value.type===4&&x.value.content.trim()[0]==="["||x.value.type===17)&&(x.value=W(t.helper(zt),[x.value])));break;case 14:break;default:I=W(t.helper(Ke),[W(t.helper(Ze),[I])]);break}return{props:I,directives:u,patchFlag:d,dynamicPropNames:N,shouldUseBlock:p}}function Or(e){const t=new Map,r=[];for(let i=0;i<e.length;i++){const o=e[i];if(o.key.type===8||!o.key.isStatic){r.push(o);continue}const n=o.key.content,s=t.get(n);s?(n==="style"||n==="class"||Fr(n))&&Fo(s,o):(t.set(n,o),r.push(o))}return r}function Fo(e,t){e.value.type===17?e.value.elements.push(t.value):e.value=xe([e.value,t.value],e.loc)}function Ai(e,t){const r=[],i=Oi.get(e);i?r.push(t.helperString(i)):(t.helper(kt),t.directives.add(e.name),r.push(ze(e.name,"directive")));const{loc:o}=e;if(e.exp&&r.push(e.exp),e.arg&&(e.exp||r.push("void 0"),r.push(e.arg)),Object.keys(e.modifiers).length){e.arg||(e.exp||r.push("void 0"),r.push("void 0"));const n=D("true",!1,o);r.push(le(e.modifiers.map(s=>k(s,n)),o))}return xe(r,e.loc)}function wo(e){let t="[";for(let r=0,i=e.length;r<i;r++)t+=JSON.stringify(e[r]),r<i-1&&(t+=", ");return t+"]"}function mn(e){return e==="component"||e==="Component"}const Uo=(e,t)=>{if(at(e)){const{children:r,loc:i}=e,{slotName:o,slotProps:n}=Ri(e,t),s=[t.prefixIdentifiers?"_ctx.$slots":"$slots",o,"{}","undefined","true"];let a=2;n&&(s[2]=n,a=3),r.length&&(s[3]=Ue([],r,!1,!1,i),a=4),t.scopeId&&!t.slotted&&(a=5),s.splice(a),e.codegenNode=W(t.helper(In),s,i)}};function Ri(e,t){let r='"default"',i;const o=[];for(let n=0;n<e.props.length;n++){const s=e.props[n];if(s.type===6)s.value&&(s.name==="name"?r=JSON.stringify(s.value.content):(s.name=Me(s.name),o.push(s)));else if(s.name==="bind"&&Pe(s.arg,"name")){if(s.exp)r=s.exp;else if(s.arg&&s.arg.type===4){const a=Me(s.arg.content);r=s.exp=D(a,!1,s.arg.loc)}}else s.name==="bind"&&s.arg&&re(s.arg)&&(s.arg.content=Me(s.arg.content)),o.push(s)}if(o.length>0){const{props:n,directives:s}=_n(e,t,o,!1,!1);i=n,s.length&&t.onError(j(36,s[0].loc))}return{slotName:r,slotProps:i}}const Bn=(e,t,r,i)=>{const{loc:o,modifiers:n,arg:s}=e;!e.exp&&!n.length&&r.onError(j(35,o));let a;if(s.type===4)if(s.isStatic){let u=s.content;u.startsWith("vue:")&&(u=`vnode-${u.slice(4)}`);const h=t.tagType!==0||u.startsWith("vnode")||!/[A-Z]/.test(u)?Yi(Me(u)):`on:${u}`;a=D(h,!0,s.loc)}else a=ce([`${r.helperString(Lt)}(`,s,")"]);else a=s,a.children.unshift(`${r.helperString(Lt)}(`),a.children.push(")");let l=e.exp;l&&!l.content.trim()&&(l=void 0);let c=r.cacheHandlers&&!l&&!r.inVOnce;if(l){const u=Pn(l),h=!(u||qr(l)),p=l.content.includes(";");(h||c&&u)&&(l=ce([`${h?"$event":"(...args)"} => ${p?"{":"("}`,l,p?"}":")"]))}let f={props:[k(a,l||D("() => {}",!1,o))]};return i&&(f=i(f)),c&&(f.props[0].value=r.cache(f.props[0].value)),f.props.forEach(u=>u.key.isHandlerKey=!0),f},Pi=(e,t,r)=>{const{modifiers:i,loc:o}=e,n=e.arg;let{exp:s}=e;return s&&s.type===4&&!s.content.trim()&&(s=void 0),n.type!==4?(n.children.unshift("("),n.children.push(') || ""')):n.isStatic||(n.content=n.content?`${n.content} || ""`:'""'),i.some(a=>a.content==="camel")&&(n.type===4?n.isStatic?n.content=Me(n.content):n.content=`${r.helperString(xt)}(${n.content})`:(n.children.unshift(`${r.helperString(xt)}(`),n.children.push(")"))),r.inSSR||(i.some(a=>a.content==="prop")&&br(n,"."),i.some(a=>a.content==="attr")&&br(n,"^")),{props:[k(n,s)]}},br=(e,t)=>{e.type===4?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},_o=(e,t)=>{if(e.type===0||e.type===1||e.type===11||e.type===10)return()=>{const r=e.children;let i,o=!1;for(let n=0;n<r.length;n++){const s=r[n];if(bt(s)){o=!0;for(let a=n+1;a<r.length;a++){const l=r[a];if(bt(l))i||(i=r[n]=ce([s],s.loc)),i.children.push(" + ",l),r.splice(a,1),a--;else{i=void 0;break}}}}if(!(!o||r.length===1&&(e.type===0||e.type===1&&e.tagType===0&&!e.props.find(n=>n.type===7&&!t.directiveTransforms[n.name])&&e.tag!=="template")))for(let n=0;n<r.length;n++){const s=r[n];if(bt(s)||s.type===8){const a=[];(s.type!==2||s.content!==" ")&&a.push(s),!t.ssr&&se(s,t)===0&&a.push("1"),r[n]={type:12,content:s,loc:s.loc,codegenNode:W(t.helper($t),a)}}}}},Cr=new WeakSet,Bo=(e,t)=>{if(e.type===1&&ne(e,"once",!0))return Cr.has(e)||t.inVOnce||t.inSSR?void 0:(Cr.add(e),t.inVOnce=!0,t.helper(ot),()=>{t.inVOnce=!1;const r=t.currentNode;r.codegenNode&&(r.codegenNode=t.cache(r.codegenNode,!0,!0))})},Xn=(e,t,r)=>{const{exp:i,arg:o}=e;if(!i)return r.onError(j(41,e.loc)),nt();const n=i.loc.source.trim(),s=i.type===4?i.content:n,a=r.bindingMetadata[n];if(a==="props"||a==="props-aliased")return r.onError(j(44,i.loc)),nt();if(a==="literal-const"||a==="setup-const")return r.onError(j(45,i.loc)),nt();if(!s.trim()||!Pn(i))return r.onError(j(42,i.loc)),nt();const l=o||D("modelValue",!0),c=o?re(o)?`onUpdate:${Me(o.content)}`:ce(['"onUpdate:" + ',o]):"onUpdate:modelValue";let f;const u=r.isTS?"($event: any)":"$event";f=ce([`${u} => ((`,i,") = $event)"]);const h=[k(l,e.exp),k(c,f)];if(e.modifiers.length&&t.tagType===1){const p=e.modifiers.map(m=>m.content).map(m=>(ut(m)?m:JSON.stringify(m))+": true").join(", "),d=o?re(o)?`${o.content}Modifiers`:ce([o,' + "Modifiers"']):"modelModifiers";h.push(k(d,D(`{ ${p} }`,!1,e.loc,2)))}return nt(h)};function nt(e=[]){return{props:e}}const Xo=/[\w).+\-_$\]]/,jo=(e,t)=>{Fe("COMPILER_FILTERS",t)&&(e.type===5?wt(e.content,t):e.type===1&&e.props.forEach(r=>{r.type===7&&r.name!=="for"&&r.exp&&wt(r.exp,t)}))};function wt(e,t){if(e.type===4)Ar(e,t);else for(let r=0;r<e.children.length;r++){const i=e.children[r];typeof i=="object"&&(i.type===4?Ar(i,t):i.type===8?wt(i,t):i.type===5&&wt(i.content,t))}}function Ar(e,t){const r=e.content;let i=!1,o=!1,n=!1,s=!1,a=0,l=0,c=0,f=0,u,h,p,d,m=[];for(p=0;p<r.length;p++)if(h=u,u=r.charCodeAt(p),i)u===39&&h!==92&&(i=!1);else if(o)u===34&&h!==92&&(o=!1);else if(n)u===96&&h!==92&&(n=!1);else if(s)u===47&&h!==92&&(s=!1);else if(u===124&&r.charCodeAt(p+1)!==124&&r.charCodeAt(p-1)!==124&&!a&&!l&&!c)d===void 0?(f=p+1,d=r.slice(0,p).trim()):g();else{switch(u){case 34:o=!0;break;case 39:i=!0;break;case 96:n=!0;break;case 40:c++;break;case 41:c--;break;case 91:l++;break;case 93:l--;break;case 123:a++;break;case 125:a--;break}if(u===47){let E=p-1,v;for(;E>=0&&(v=r.charAt(E),v===" ");E--);(!v||!Xo.test(v))&&(s=!0)}}d===void 0?d=r.slice(0,p).trim():f!==0&&g();function g(){m.push(r.slice(f,p).trim()),f=p+1}if(m.length){for(p=0;p<m.length;p++)d=$o(d,m[p],t);e.content=d,e.ast=void 0}}function $o(e,t,r){r.helper(Kt);const i=t.indexOf("(");if(i<0)return r.filters.add(t),`${ze(t,"filter")}(${e})`;{const o=t.slice(0,i),n=t.slice(i+1);return r.filters.add(o),`${ze(o,"filter")}(${e}${n!==")"?","+n:n}`}}const Rr=new WeakSet,Ho=(e,t)=>{if(e.type===1){const r=ne(e,"memo");return!r||Rr.has(e)||t.inSSR?void 0:(Rr.add(e),()=>{const i=e.codegenNode||t.currentNode.codegenNode;i&&i.type===13&&(e.tagType!==1&&en(i,t),e.codegenNode=W(t.helper(qt),[r.exp,Ue(void 0,i),"_cache",String(t.cached.length)]),t.cached.push(null))})}},Mi=(e,t)=>{if(e.type===1){for(const r of e.props)if(r.type===7&&r.name==="bind"&&(!r.exp||r.exp.type===4&&!r.exp.content.trim())&&r.arg){const i=r.arg;if(i.type!==4||!i.isStatic)t.onError(j(53,i.loc)),r.exp=D("",!0,i.loc);else{const o=Me(i.content);(Rn.test(o[0])||o[0]==="-")&&(r.exp=D(o,!1,i.loc))}}}};function xi(e){return[[Mi,Bo,Po,Ho,xo,jo,Uo,bi,Ni,_o],{on:Bn,bind:Pi,model:Xn}]}function Li(e,t={}){const r=t.onError||Cn,i=t.mode==="module";t.prefixIdentifiers===!0?r(j(48)):i&&r(j(49));const o=!1;t.cacheHandlers&&r(j(50)),t.scopeId&&!i&&r(j(51));const n=ge({},t,{prefixIdentifiers:o}),s=J(e)?Vn(e,n):e,[a,l]=xi();return di(s,ge({},n,{nodeTransforms:[...a,...t.nodeTransforms||[]],directiveTransforms:ge({},l,t.directiveTransforms||{})})),mi(s,n)}const Go={DATA:"data",PROPS:"props",PROPS_ALIASED:"props-aliased",SETUP_LET:"setup-let",SETUP_CONST:"setup-const",SETUP_REACTIVE_CONST:"setup-reactive-const",SETUP_MAYBE_REF:"setup-maybe-ref",SETUP_REF:"setup-ref",OPTIONS:"options",LITERAL_CONST:"literal-const"},Di=()=>({props:[]});/**
|
|
14
|
+
* @vue/compiler-dom v3.5.39
|
|
15
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
16
|
+
* @license MIT
|
|
17
|
+
**/const jn=Symbol(""),$n=Symbol(""),Hn=Symbol(""),Gn=Symbol(""),Ut=Symbol(""),kn=Symbol(""),Kn=Symbol(""),Wn=Symbol(""),Yn=Symbol(""),Jn=Symbol("");jr({[jn]:"vModelRadio",[$n]:"vModelCheckbox",[Hn]:"vModelText",[Gn]:"vModelSelect",[Ut]:"vModelDynamic",[kn]:"withModifiers",[Kn]:"withKeys",[Wn]:"vShow",[Yn]:"Transition",[Jn]:"TransitionGroup"});let He;function ko(e,t=!1){return He||(He=document.createElement("div")),t?(He.innerHTML=`<div foo="${e.replace(/"/g,""")}">`,He.children[0].getAttribute("foo")):(He.innerHTML=e,He.textContent)}const zn={parseMode:"html",isVoidTag:Ji,isNativeTag:e=>zi(e)||Qi(e)||Zi(e),isPreTag:e=>e==="pre",isIgnoreNewlineTag:e=>e==="pre"||e==="textarea",decodeEntities:ko,isBuiltInComponent:e=>{if(e==="Transition"||e==="transition")return Yn;if(e==="TransitionGroup"||e==="transition-group")return Jn},getNamespace(e,t,r){let i=t?t.ns:r;if(t&&i===2)if(t.tag==="annotation-xml"){if(e==="svg")return 1;t.props.some(o=>o.type===6&&o.name==="encoding"&&o.value!=null&&(o.value.content==="text/html"||o.value.content==="application/xhtml+xml"))&&(i=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&e!=="mglyph"&&e!=="malignmark"&&(i=0);else t&&i===1&&(t.tag==="foreignObject"||t.tag==="desc"||t.tag==="title")&&(i=0);if(i===0){if(e==="svg")return 1;if(e==="math")return 2}return i}},Vi=e=>{e.type===1&&e.props.forEach((t,r)=>{t.type===6&&t.name==="style"&&t.value&&(e.props[r]={type:7,name:"bind",arg:D("style",!0,t.loc),exp:Ko(t.value.content,t.loc),modifiers:[],loc:t.loc})})},Ko=(e,t)=>{const r=qi(e);return D(JSON.stringify(r),!1,t,3)};function Te(e,t){return j(e,t)}const Wo={X_V_HTML_NO_EXPRESSION:54,54:"X_V_HTML_NO_EXPRESSION",X_V_HTML_WITH_CHILDREN:55,55:"X_V_HTML_WITH_CHILDREN",X_V_TEXT_NO_EXPRESSION:56,56:"X_V_TEXT_NO_EXPRESSION",X_V_TEXT_WITH_CHILDREN:57,57:"X_V_TEXT_WITH_CHILDREN",X_V_MODEL_ON_INVALID_ELEMENT:58,58:"X_V_MODEL_ON_INVALID_ELEMENT",X_V_MODEL_ARG_ON_ELEMENT:59,59:"X_V_MODEL_ARG_ON_ELEMENT",X_V_MODEL_ON_FILE_INPUT_ELEMENT:60,60:"X_V_MODEL_ON_FILE_INPUT_ELEMENT",X_V_MODEL_UNNECESSARY_VALUE:61,61:"X_V_MODEL_UNNECESSARY_VALUE",X_V_SHOW_NO_EXPRESSION:62,62:"X_V_SHOW_NO_EXPRESSION",X_TRANSITION_INVALID_CHILDREN:63,63:"X_TRANSITION_INVALID_CHILDREN",X_IGNORED_SIDE_EFFECT_TAG:64,64:"X_IGNORED_SIDE_EFFECT_TAG",__EXTEND_POINT__:65,65:"__EXTEND_POINT__"},Yo={54:"v-html is missing expression.",55:"v-html will override element children.",56:"v-text is missing expression.",57:"v-text will override element children.",58:"v-model can only be used on <input>, <textarea> and <select> elements.",59:"v-model argument is not supported on plain elements.",60:"v-model cannot be used on file inputs since they are read-only. Use a v-on:change listener instead.",61:"Unnecessary value binding used alongside v-model. It will interfere with v-model's behavior.",62:"v-show is missing expression.",63:"<Transition> expects exactly one child element or component.",64:"Tags with side effect (<script> and <style>) are ignored in client component templates."},Jo=(e,t,r)=>{const{exp:i,loc:o}=e;return i||r.onError(Te(54,o)),t.children.length&&(r.onError(Te(55,o)),t.children.length=0),{props:[k(D("innerHTML",!0,o),i||D("",!0))]}},zo=(e,t,r)=>{const{exp:i,loc:o}=e;return i||r.onError(Te(56,o)),t.children.length&&(r.onError(Te(57,o)),t.children.length=0),{props:[k(D("textContent",!0),i?se(i,r)>0?i:W(r.helperString(ft),[i],o):D("",!0))]}},Qo=(e,t,r)=>{const i=Xn(e,t,r);if(!i.props.length||t.tagType===1)return i;e.arg&&r.onError(Te(59,e.arg.loc));const{tag:o}=t,n=r.isCustomElement(o);if(o==="input"||o==="textarea"||o==="select"||n){let s=Hn,a=!1;if(o==="input"||n){const l=ht(t,"type");if(l){if(l.type===7)s=Ut;else if(l.value)switch(l.value.content){case"radio":s=jn;break;case"checkbox":s=$n;break;case"file":a=!0,r.onError(Te(60,e.loc));break}}else ti(t)&&(s=Ut)}else o==="select"&&(s=Gn);a||(i.needRuntime=r.helper(s))}else r.onError(Te(58,e.loc));return i.props=i.props.filter(s=>!(s.key.type===4&&s.key.content==="modelValue")),i},Zo=_t("passive,once,capture"),qo=_t("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),ea=_t("left,right"),Fi=_t("onkeyup,onkeydown,onkeypress"),ta=(e,t,r,i)=>{const o=[],n=[],s=[];for(let a=0;a<t.length;a++){const l=t[a].content;l==="native"&&Ye("COMPILER_V_ON_NATIVE",r)||Zo(l)?s.push(l):ea(l)?re(e)?Fi(e.content.toLowerCase())?o.push(l):n.push(l):(o.push(l),n.push(l)):qo(l)?n.push(l):o.push(l)}return{keyModifiers:o,nonKeyModifiers:n,eventOptionModifiers:s}},Pr=(e,t)=>re(e)&&e.content.toLowerCase()==="onclick"?D(t,!0):e.type!==4?ce(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,na=(e,t,r)=>Bn(e,t,r,i=>{const{modifiers:o}=e;if(!o.length)return i;let{key:n,value:s}=i.props[0];const{keyModifiers:a,nonKeyModifiers:l,eventOptionModifiers:c}=ta(n,o,r,e.loc);if(l.includes("right")&&(n=Pr(n,"onContextmenu")),l.includes("middle")&&(n=Pr(n,"onMouseup")),l.length&&(s=W(r.helper(kn),[s,JSON.stringify(l)])),a.length&&(!re(n)||Fi(n.content.toLowerCase()))&&(s=W(r.helper(Kn),[s,JSON.stringify(a)])),c.length){const f=c.map(Dr).join("");n=re(n)?D(`${n.content}${f}`,!0):ce(["(",n,`) + "${f}"`])}return{props:[k(n,s)]}}),ra=(e,t,r)=>{const{exp:i,loc:o}=e;return i||r.onError(Te(62,o)),{props:[],needRuntime:r.helper(Wn)}},ia=(e,t)=>{e.type===1&&e.tagType===0&&(e.tag==="script"||e.tag==="style")&&t.removeNode()},wi=[Vi],Ui={cloak:Di,html:Jo,text:zo,model:Qo,on:na,show:ra};function sa(e,t={}){return Li(e,ge({},zn,t,{nodeTransforms:[ia,...wi,...t.nodeTransforms||[]],directiveTransforms:ge({},Ui,t.directiveTransforms||{}),transformHoist:null}))}function oa(e,t={}){return Vn(e,ge({},zn,t))}const aa=Object.freeze(Object.defineProperty({__proto__:null,BASE_TRANSITION:gn,BindingTypes:Go,CAMELIZE:xt,CAPITALIZE:wr,CREATE_BLOCK:Sn,CREATE_COMMENT:Qe,CREATE_ELEMENT_BLOCK:Tn,CREATE_ELEMENT_VNODE:jt,CREATE_SLOTS:On,CREATE_STATIC:Nn,CREATE_TEXT:$t,CREATE_VNODE:Xt,CompilerDeprecationTypes:As,ConstantTypes:gs,DOMDirectiveTransforms:Ui,DOMErrorCodes:Wo,DOMErrorMessages:Yo,DOMNodeTransforms:wi,ElementTypes:ys,ErrorCodes:Ms,FRAGMENT:ke,GUARD_REACTIVE_PROPS:Ze,IS_MEMO_SAME:bn,IS_REF:Xr,KEEP_ALIVE:it,MERGE_PROPS:st,NORMALIZE_CLASS:Jt,NORMALIZE_PROPS:Ke,NORMALIZE_STYLE:zt,Namespaces:ms,NodeTypes:Es,OPEN_BLOCK:Le,POP_SCOPE_ID:_r,PUSH_SCOPE_ID:Ur,RENDER_LIST:Yt,RENDER_SLOT:In,RESOLVE_COMPONENT:Ht,RESOLVE_DIRECTIVE:kt,RESOLVE_DYNAMIC_COMPONENT:Gt,RESOLVE_FILTER:Kt,SET_BLOCK_TRACKING:ot,SUSPENSE:Bt,TELEPORT:Ge,TO_DISPLAY_STRING:ft,TO_HANDLERS:Qt,TO_HANDLER_KEY:Lt,TRANSITION:Yn,TRANSITION_GROUP:Jn,TS_NODE_TYPES:Yr,UNREF:Br,V_MODEL_CHECKBOX:$n,V_MODEL_DYNAMIC:Ut,V_MODEL_RADIO:jn,V_MODEL_SELECT:Gn,V_MODEL_TEXT:Hn,V_ON_WITH_KEYS:Kn,V_ON_WITH_MODIFIERS:kn,V_SHOW:Wn,WITH_CTX:Zt,WITH_DIRECTIVES:Wt,WITH_MEMO:qt,advancePositionWithClone:Ys,advancePositionWithMutation:ei,assert:Js,baseCompile:Li,baseParse:Vn,buildDirectiveArgs:Ai,buildProps:_n,buildSlots:Ii,checkCompatEnabled:Ye,compile:sa,convertToBlock:en,createArrayExpression:xe,createAssignmentExpression:Is,createBlockStatement:Gr,createCacheExpression:Hr,createCallExpression:W,createCompilerError:j,createCompoundExpression:ce,createConditionalExpression:Dt,createDOMCompilerError:Te,createForLoopParams:Ft,createFunctionExpression:Ue,createIfStatement:Ns,createInterpolation:Ss,createObjectExpression:le,createObjectProperty:k,createReturnStatement:bs,createRoot:$r,createSequenceExpression:Os,createSimpleExpression:D,createStructuralDirectiveTransform:Fn,createTemplateLiteral:Ts,createTransformContext:pi,createVNodeCall:We,errorMessages:xs,extractIdentifiers:ve,findDir:ne,findProp:ht,forAliasRE:ii,generate:mi,generateCodeFrame:es,getBaseTransformPreset:xi,getConstantType:se,getMemoedVNodeCall:ri,getVNodeBlockHelper:Be,getVNodeHelper:_e,hasDynamicKeyVBind:ti,hasScopeRef:fe,helperNameMap:we,injectProp:lt,isAllWhitespace:xn,isCommentOrWhitespace:Ln,isCoreComponent:An,isFnExpression:qr,isFnExpressionBrowser:Zr,isFnExpressionNode:Ws,isFunctionType:Xs,isInDestructureAssignment:Vs,isInNewExpression:Fs,isMemberExpression:Pn,isMemberExpressionBrowser:Qr,isMemberExpressionNode:ks,isReferencedIdentifier:Ds,isSimpleIdentifier:ut,isSlotOutlet:at,isStaticArgOf:Pe,isStaticExp:re,isStaticProperty:Wr,isStaticPropertyKey:js,isTemplateNode:Je,isText:bt,isVPre:pn,isVSlot:Mn,isWhitespaceText:tn,locStub:z,noopDirectiveTransform:Di,parse:oa,parserOptions:zn,processExpression:Pt,processFor:Ti,processIf:Si,processSlotOutlet:Ri,registerRuntimeHelpers:jr,resolveComponentType:Ci,stringifyExpression:gi,toValidAssetId:ze,trackSlotScopes:Ni,trackVForSlotScopes:Do,transform:di,transformBind:Pi,transformElement:bi,transformExpression:Ro,transformModel:Xn,transformOn:Bn,transformStyle:Vi,transformVBindShorthand:Mi,traverseNode:pt,unwrapTSNode:Jr,validFirstIdentCharRE:Rn,walkBlockDeclarations:Kr,walkFunctionParams:ws,walkIdentifiers:Ls,warnDeprecation:Ps},Symbol.toStringTag,{value:"Module"})),la=yn(aa),ca=yn(ts),fa=yn(ns);/**
|
|
18
|
+
* vue v3.5.39
|
|
19
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
20
|
+
* @license MIT
|
|
21
|
+
**/var Mr;function ua(){return Mr||(Mr=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=la,r=ca,i=fa;function o(l){var c=Object.create(null);if(l)for(var f in l)c[f]=l[f];return c.default=l,Object.freeze(c)}var n=o(r);const s=Object.create(null);function a(l,c){if(!i.isString(l))if(l.nodeType)l=l.innerHTML;else return i.NOOP;const f=i.genCacheKey(l,c),u=s[f];if(u)return u;if(l[0]==="#"){const m=document.querySelector(l);l=m?m.innerHTML:""}const h=i.extend({hoistStatic:!0,onError:void 0,onWarn:i.NOOP},c);!h.isCustomElement&&typeof customElements<"u"&&(h.isCustomElement=m=>!!customElements.get(m));const{code:p}=t.compile(l,h),d=new Function("Vue",p)(n);return d._rc=!0,s[f]=d}r.registerRuntimeCompiler(a),e.compile=a,Object.keys(r).forEach(function(l){l!=="default"&&!Object.prototype.hasOwnProperty.call(e,l)&&(e[l]=r[l])})})(fn)),fn}var xr;function ha(){return xr||(xr=1,cn.exports=ua()),cn.exports}var pa=Ot.exports,Lr;function da(){return Lr||(Lr=1,(function(e,t){(function(i,o){e.exports=o(ha())})(typeof self<"u"?self:pa,function(r){return(function(i){var o={};function n(s){if(o[s])return o[s].exports;var a=o[s]={i:s,l:!1,exports:{}};return i[s].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=i,n.c=o,n.d=function(s,a,l){n.o(s,a)||Object.defineProperty(s,a,{enumerable:!0,get:l})},n.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},n.t=function(s,a){if(a&1&&(s=n(s)),a&8||a&4&&typeof s=="object"&&s&&s.__esModule)return s;var l=Object.create(null);if(n.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:s}),a&2&&typeof s!="string")for(var c in s)n.d(l,c,(function(f){return s[f]}).bind(null,c));return l},n.n=function(s){var a=s&&s.__esModule?function(){return s.default}:function(){return s};return n.d(a,"a",a),a},n.o=function(s,a){return Object.prototype.hasOwnProperty.call(s,a)},n.p="",n(n.s="fb15")})({"00ee":(function(i,o,n){var s=n("b622"),a=s("toStringTag"),l={};l[a]="z",i.exports=String(l)==="[object z]"}),"0366":(function(i,o,n){var s=n("1c0b");i.exports=function(a,l,c){if(s(a),l===void 0)return a;switch(c){case 0:return function(){return a.call(l)};case 1:return function(f){return a.call(l,f)};case 2:return function(f,u){return a.call(l,f,u)};case 3:return function(f,u,h){return a.call(l,f,u,h)}}return function(){return a.apply(l,arguments)}}}),"06cf":(function(i,o,n){var s=n("83ab"),a=n("d1e7"),l=n("5c6c"),c=n("fc6a"),f=n("c04e"),u=n("5135"),h=n("0cfb"),p=Object.getOwnPropertyDescriptor;o.f=s?p:function(m,g){if(m=c(m),g=f(g,!0),h)try{return p(m,g)}catch{}if(u(m,g))return l(!a.f.call(m,g),m[g])}}),"0cfb":(function(i,o,n){var s=n("83ab"),a=n("d039"),l=n("cc12");i.exports=!s&&!a(function(){return Object.defineProperty(l("div"),"a",{get:function(){return 7}}).a!=7})}),"159b":(function(i,o,n){var s=n("da84"),a=n("fdbc"),l=n("17c2"),c=n("9112");for(var f in a){var u=s[f],h=u&&u.prototype;if(h&&h.forEach!==l)try{c(h,"forEach",l)}catch{h.forEach=l}}}),"17c2":(function(i,o,n){var s=n("b727").forEach,a=n("a640"),l=n("ae40"),c=a("forEach"),f=l("forEach");i.exports=!c||!f?function(h){return s(this,h,arguments.length>1?arguments[1]:void 0)}:[].forEach}),"19aa":(function(i,o){i.exports=function(n,s,a){if(!(n instanceof s))throw TypeError("Incorrect "+(a?a+" ":"")+"invocation");return n}}),"1be4":(function(i,o,n){var s=n("d066");i.exports=s("document","documentElement")}),"1c0b":(function(i,o){i.exports=function(n){if(typeof n!="function")throw TypeError(String(n)+" is not a function");return n}}),"1c7e":(function(i,o,n){var s=n("b622"),a=s("iterator"),l=!1;try{var c=0,f={next:function(){return{done:!!c++}},return:function(){l=!0}};f[a]=function(){return this},Array.from(f,function(){throw 2})}catch{}i.exports=function(u,h){if(!h&&!l)return!1;var p=!1;try{var d={};d[a]=function(){return{next:function(){return{done:p=!0}}}},u(d)}catch{}return p}}),"1cdc":(function(i,o,n){var s=n("342f");i.exports=/(iphone|ipod|ipad).*applewebkit/i.test(s)}),"1d80":(function(i,o){i.exports=function(n){if(n==null)throw TypeError("Can't call method on "+n);return n}}),2266:(function(i,o,n){var s=n("825a"),a=n("e95a"),l=n("50c4"),c=n("0366"),f=n("35a1"),u=n("9bdd"),h=function(d,m){this.stopped=d,this.result=m},p=i.exports=function(d,m,g,E,v){var y=c(m,g,E?2:1),S,N,b,L,T,I,C;if(v)S=d;else{if(N=f(d),typeof N!="function")throw TypeError("Target is not iterable");if(a(N)){for(b=0,L=l(d.length);L>b;b++)if(T=E?y(s(C=d[b])[0],C[1]):y(d[b]),T&&T instanceof h)return T;return new h(!1)}S=N.call(d)}for(I=S.next;!(C=I.call(S)).done;)if(T=u(S,y,C.value,E),typeof T=="object"&&T&&T instanceof h)return T;return new h(!1)};p.stop=function(d){return new h(!0,d)}}),"23cb":(function(i,o,n){var s=n("a691"),a=Math.max,l=Math.min;i.exports=function(c,f){var u=s(c);return u<0?a(u+f,0):l(u,f)}}),"23e7":(function(i,o,n){var s=n("da84"),a=n("06cf").f,l=n("9112"),c=n("6eeb"),f=n("ce4e"),u=n("e893"),h=n("94ca");i.exports=function(p,d){var m=p.target,g=p.global,E=p.stat,v,y,S,N,b,L;if(g?y=s:E?y=s[m]||f(m,{}):y=(s[m]||{}).prototype,y)for(S in d){if(b=d[S],p.noTargetGet?(L=a(y,S),N=L&&L.value):N=y[S],v=h(g?S:m+(E?".":"#")+S,p.forced),!v&&N!==void 0){if(typeof b==typeof N)continue;u(b,N)}(p.sham||N&&N.sham)&&l(b,"sham",!0),c(y,S,b,p)}}}),"241c":(function(i,o,n){var s=n("ca84"),a=n("7839"),l=a.concat("length","prototype");o.f=Object.getOwnPropertyNames||function(f){return s(f,l)}}),2626:(function(i,o,n){var s=n("d066"),a=n("9bf2"),l=n("b622"),c=n("83ab"),f=l("species");i.exports=function(u){var h=s(u),p=a.f;c&&h&&!h[f]&&p(h,f,{configurable:!0,get:function(){return this}})}}),"2cf4":(function(i,o,n){var s=n("da84"),a=n("d039"),l=n("c6b6"),c=n("0366"),f=n("1be4"),u=n("cc12"),h=n("1cdc"),p=s.location,d=s.setImmediate,m=s.clearImmediate,g=s.process,E=s.MessageChannel,v=s.Dispatch,y=0,S={},N="onreadystatechange",b,L,T,I=function(A){if(S.hasOwnProperty(A)){var x=S[A];delete S[A],x()}},C=function(A){return function(){I(A)}},M=function(A){I(A.data)},R=function(A){s.postMessage(A+"",p.protocol+"//"+p.host)};(!d||!m)&&(d=function(x){for(var F=[],X=1;arguments.length>X;)F.push(arguments[X++]);return S[++y]=function(){(typeof x=="function"?x:Function(x)).apply(void 0,F)},b(y),y},m=function(x){delete S[x]},l(g)=="process"?b=function(A){g.nextTick(C(A))}:v&&v.now?b=function(A){v.now(C(A))}:E&&!h?(L=new E,T=L.port2,L.port1.onmessage=M,b=c(T.postMessage,T,1)):s.addEventListener&&typeof postMessage=="function"&&!s.importScripts&&!a(R)&&p.protocol!=="file:"?(b=R,s.addEventListener("message",M,!1)):N in u("script")?b=function(A){f.appendChild(u("script"))[N]=function(){f.removeChild(this),I(A)}}:b=function(A){setTimeout(C(A),0)}),i.exports={set:d,clear:m}}),"2d00":(function(i,o,n){var s=n("da84"),a=n("342f"),l=s.process,c=l&&l.versions,f=c&&c.v8,u,h;f?(u=f.split("."),h=u[0]+u[1]):a&&(u=a.match(/Edge\/(\d+)/),(!u||u[1]>=74)&&(u=a.match(/Chrome\/(\d+)/),u&&(h=u[1]))),i.exports=h&&+h}),"342f":(function(i,o,n){var s=n("d066");i.exports=s("navigator","userAgent")||""}),"35a1":(function(i,o,n){var s=n("f5df"),a=n("3f8c"),l=n("b622"),c=l("iterator");i.exports=function(f){if(f!=null)return f[c]||f["@@iterator"]||a[s(f)]}}),"37e8":(function(i,o,n){var s=n("83ab"),a=n("9bf2"),l=n("825a"),c=n("df75");i.exports=s?Object.defineProperties:function(u,h){l(u);for(var p=c(h),d=p.length,m=0,g;d>m;)a.f(u,g=p[m++],h[g]);return u}}),"3bbe":(function(i,o,n){var s=n("861d");i.exports=function(a){if(!s(a)&&a!==null)throw TypeError("Can't set "+String(a)+" as a prototype");return a}}),"3f8c":(function(i,o){i.exports={}}),4160:(function(i,o,n){var s=n("23e7"),a=n("17c2");s({target:"Array",proto:!0,forced:[].forEach!=a},{forEach:a})}),"428f":(function(i,o,n){var s=n("da84");i.exports=s}),"44ad":(function(i,o,n){var s=n("d039"),a=n("c6b6"),l="".split;i.exports=s(function(){return!Object("z").propertyIsEnumerable(0)})?function(c){return a(c)=="String"?l.call(c,""):Object(c)}:Object}),"44de":(function(i,o,n){var s=n("da84");i.exports=function(a,l){var c=s.console;c&&c.error&&(arguments.length===1?c.error(a):c.error(a,l))}}),4840:(function(i,o,n){var s=n("825a"),a=n("1c0b"),l=n("b622"),c=l("species");i.exports=function(f,u){var h=s(f).constructor,p;return h===void 0||(p=s(h)[c])==null?u:a(p)}}),4930:(function(i,o,n){var s=n("d039");i.exports=!!Object.getOwnPropertySymbols&&!s(function(){return!String(Symbol())})}),"4d64":(function(i,o,n){var s=n("fc6a"),a=n("50c4"),l=n("23cb"),c=function(f){return function(u,h,p){var d=s(u),m=a(d.length),g=l(p,m),E;if(f&&h!=h){for(;m>g;)if(E=d[g++],E!=E)return!0}else for(;m>g;g++)if((f||g in d)&&d[g]===h)return f||g||0;return!f&&-1}};i.exports={includes:c(!0),indexOf:c(!1)}}),"50c4":(function(i,o,n){var s=n("a691"),a=Math.min;i.exports=function(l){return l>0?a(s(l),9007199254740991):0}}),5135:(function(i,o){var n={}.hasOwnProperty;i.exports=function(s,a){return n.call(s,a)}}),5692:(function(i,o,n){var s=n("c430"),a=n("c6cd");(i.exports=function(l,c){return a[l]||(a[l]=c!==void 0?c:{})})("versions",[]).push({version:"3.6.5",mode:s?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})}),"56ef":(function(i,o,n){var s=n("d066"),a=n("241c"),l=n("7418"),c=n("825a");i.exports=s("Reflect","ownKeys")||function(u){var h=a.f(c(u)),p=l.f;return p?h.concat(p(u)):h}}),5899:(function(i,o){i.exports=`
|
|
22
|
+
\v\f\r \u2028\u2029\uFEFF`}),"58a8":(function(i,o,n){var s=n("1d80"),a=n("5899"),l="["+a+"]",c=RegExp("^"+l+l+"*"),f=RegExp(l+l+"*$"),u=function(h){return function(p){var d=String(s(p));return h&1&&(d=d.replace(c,"")),h&2&&(d=d.replace(f,"")),d}};i.exports={start:u(1),end:u(2),trim:u(3)}}),"5c6c":(function(i,o){i.exports=function(n,s){return{enumerable:!(n&1),configurable:!(n&2),writable:!(n&4),value:s}}}),"65f0":(function(i,o,n){var s=n("861d"),a=n("e8b5"),l=n("b622"),c=l("species");i.exports=function(f,u){var h;return a(f)&&(h=f.constructor,typeof h=="function"&&(h===Array||a(h.prototype))?h=void 0:s(h)&&(h=h[c],h===null&&(h=void 0))),new(h===void 0?Array:h)(u===0?0:u)}}),"69f3":(function(i,o,n){var s=n("7f9a"),a=n("da84"),l=n("861d"),c=n("9112"),f=n("5135"),u=n("f772"),h=n("d012"),p=a.WeakMap,d,m,g,E=function(T){return g(T)?m(T):d(T,{})},v=function(T){return function(I){var C;if(!l(I)||(C=m(I)).type!==T)throw TypeError("Incompatible receiver, "+T+" required");return C}};if(s){var y=new p,S=y.get,N=y.has,b=y.set;d=function(T,I){return b.call(y,T,I),I},m=function(T){return S.call(y,T)||{}},g=function(T){return N.call(y,T)}}else{var L=u("state");h[L]=!0,d=function(T,I){return c(T,L,I),I},m=function(T){return f(T,L)?T[L]:{}},g=function(T){return f(T,L)}}i.exports={set:d,get:m,has:g,enforce:E,getterFor:v}}),"6eeb":(function(i,o,n){var s=n("da84"),a=n("9112"),l=n("5135"),c=n("ce4e"),f=n("8925"),u=n("69f3"),h=u.get,p=u.enforce,d=String(String).split("String");(i.exports=function(m,g,E,v){var y=v?!!v.unsafe:!1,S=v?!!v.enumerable:!1,N=v?!!v.noTargetGet:!1;if(typeof E=="function"&&(typeof g=="string"&&!l(E,"name")&&a(E,"name",g),p(E).source=d.join(typeof g=="string"?g:"")),m===s){S?m[g]=E:c(g,E);return}else y?!N&&m[g]&&(S=!0):delete m[g];S?m[g]=E:a(m,g,E)})(Function.prototype,"toString",function(){return typeof this=="function"&&h(this).source||f(this)})}),7156:(function(i,o,n){var s=n("861d"),a=n("d2bb");i.exports=function(l,c,f){var u,h;return a&&typeof(u=c.constructor)=="function"&&u!==f&&s(h=u.prototype)&&h!==f.prototype&&a(l,h),l}}),7418:(function(i,o){o.f=Object.getOwnPropertySymbols}),7839:(function(i,o){i.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]}),"7b0b":(function(i,o,n){var s=n("1d80");i.exports=function(a){return Object(s(a))}}),"7c73":(function(i,o,n){var s=n("825a"),a=n("37e8"),l=n("7839"),c=n("d012"),f=n("1be4"),u=n("cc12"),h=n("f772"),p=">",d="<",m="prototype",g="script",E=h("IE_PROTO"),v=function(){},y=function(T){return d+g+p+T+d+"/"+g+p},S=function(T){T.write(y("")),T.close();var I=T.parentWindow.Object;return T=null,I},N=function(){var T=u("iframe"),I="java"+g+":",C;return T.style.display="none",f.appendChild(T),T.src=String(I),C=T.contentWindow.document,C.open(),C.write(y("document.F=Object")),C.close(),C.F},b,L=function(){try{b=document.domain&&new ActiveXObject("htmlfile")}catch{}L=b?S(b):N();for(var T=l.length;T--;)delete L[m][l[T]];return L()};c[E]=!0,i.exports=Object.create||function(I,C){var M;return I!==null?(v[m]=s(I),M=new v,v[m]=null,M[E]=I):M=L(),C===void 0?M:a(M,C)}}),"7f9a":(function(i,o,n){var s=n("da84"),a=n("8925"),l=s.WeakMap;i.exports=typeof l=="function"&&/native code/.test(a(l))}),"825a":(function(i,o,n){var s=n("861d");i.exports=function(a){if(!s(a))throw TypeError(String(a)+" is not an object");return a}}),"83ab":(function(i,o,n){var s=n("d039");i.exports=!s(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})}),"861d":(function(i,o){i.exports=function(n){return typeof n=="object"?n!==null:typeof n=="function"}}),8875:(function(i,o,n){var s,a,l;(function(c,f){a=[],s=f,l=typeof s=="function"?s.apply(o,a):s,l!==void 0&&(i.exports=l)})(typeof self<"u"?self:this,function(){function c(){var f=Object.getOwnPropertyDescriptor(document,"currentScript");if(!f&&"currentScript"in document&&document.currentScript||f&&f.get!==c&&document.currentScript)return document.currentScript;try{throw new Error}catch(b){var u=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,h=/@([^@]*):(\d+):(\d+)\s*$/ig,p=u.exec(b.stack)||h.exec(b.stack),d=p&&p[1]||!1,m=p&&p[2]||!1,g=document.location.href.replace(document.location.hash,""),E,v,y,S=document.getElementsByTagName("script");d===g&&(E=document.documentElement.outerHTML,v=new RegExp("(?:[^\\n]+?\\n){0,"+(m-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),y=E.replace(v,"$1").trim());for(var N=0;N<S.length;N++)if(S[N].readyState==="interactive"||S[N].src===d||d===g&&S[N].innerHTML&&S[N].innerHTML.trim()===y)return S[N];return null}}return c})}),8925:(function(i,o,n){var s=n("c6cd"),a=Function.toString;typeof s.inspectSource!="function"&&(s.inspectSource=function(l){return a.call(l)}),i.exports=s.inspectSource}),"8bbf":(function(i,o){i.exports=r}),"90e3":(function(i,o){var n=0,s=Math.random();i.exports=function(a){return"Symbol("+String(a===void 0?"":a)+")_"+(++n+s).toString(36)}}),9112:(function(i,o,n){var s=n("83ab"),a=n("9bf2"),l=n("5c6c");i.exports=s?function(c,f,u){return a.f(c,f,l(1,u))}:function(c,f,u){return c[f]=u,c}}),"94ca":(function(i,o,n){var s=n("d039"),a=/#|\.prototype\./,l=function(p,d){var m=f[c(p)];return m==h?!0:m==u?!1:typeof d=="function"?s(d):!!d},c=l.normalize=function(p){return String(p).replace(a,".").toLowerCase()},f=l.data={},u=l.NATIVE="N",h=l.POLYFILL="P";i.exports=l}),"9bdd":(function(i,o,n){var s=n("825a");i.exports=function(a,l,c,f){try{return f?l(s(c)[0],c[1]):l(c)}catch(h){var u=a.return;throw u!==void 0&&s(u.call(a)),h}}}),"9bf2":(function(i,o,n){var s=n("83ab"),a=n("0cfb"),l=n("825a"),c=n("c04e"),f=Object.defineProperty;o.f=s?f:function(h,p,d){if(l(h),p=c(p,!0),l(d),a)try{return f(h,p,d)}catch{}if("get"in d||"set"in d)throw TypeError("Accessors not supported");return"value"in d&&(h[p]=d.value),h}}),"9fab":(function(i,o,n){(function(s,a){i.exports=a()})(this,function(s){return function(a,l){if(l==null&&(l={fuzzy:!0}),/youtu\.?be/.test(a)){var c,f=[/youtu\.be\/([^#\&\?]{11})/,/\?v=([^#\&\?]{11})/,/\&v=([^#\&\?]{11})/,/embed\/([^#\&\?]{11})/,/\/v\/([^#\&\?]{11})/];for(c=0;c<f.length;++c)if(f[c].test(a))return f[c].exec(a)[1];if(l.fuzzy){var u=a.split(/[\/\&\?=#\.\s]/g);for(c=0;c<u.length;++c)if(/^[^#\&\?]{11}$/.test(u[c]))return u[c]}}return null}})}),a640:(function(i,o,n){var s=n("d039");i.exports=function(a,l){var c=[][a];return!!c&&s(function(){c.call(null,l||function(){throw 1},1)})}}),a691:(function(i,o){var n=Math.ceil,s=Math.floor;i.exports=function(a){return isNaN(a=+a)?0:(a>0?s:n)(a)}}),a9e3:(function(i,o,n){var s=n("83ab"),a=n("da84"),l=n("94ca"),c=n("6eeb"),f=n("5135"),u=n("c6b6"),h=n("7156"),p=n("c04e"),d=n("d039"),m=n("7c73"),g=n("241c").f,E=n("06cf").f,v=n("9bf2").f,y=n("58a8").trim,S="Number",N=a[S],b=N.prototype,L=u(m(b))==S,T=function(A){var x=p(A,!1),F,X,oe,Y,ue,he,pe,K;if(typeof x=="string"&&x.length>2){if(x=y(x),F=x.charCodeAt(0),F===43||F===45){if(X=x.charCodeAt(2),X===88||X===120)return NaN}else if(F===48){switch(x.charCodeAt(1)){case 66:case 98:oe=2,Y=49;break;case 79:case 111:oe=8,Y=55;break;default:return+x}for(ue=x.slice(2),he=ue.length,pe=0;pe<he;pe++)if(K=ue.charCodeAt(pe),K<48||K>Y)return NaN;return parseInt(ue,oe)}}return+x};if(l(S,!N(" 0o1")||!N("0b1")||N("+0x1"))){for(var I=function(x){var F=arguments.length<1?0:x,X=this;return X instanceof I&&(L?d(function(){b.valueOf.call(X)}):u(X)!=S)?h(new N(T(F)),X,I):T(F)},C=s?g(N):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),M=0,R;C.length>M;M++)f(N,R=C[M])&&!f(I,R)&&v(I,R,E(N,R));I.prototype=b,b.constructor=I,c(a,S,I)}}),ae40:(function(i,o,n){var s=n("83ab"),a=n("d039"),l=n("5135"),c=Object.defineProperty,f={},u=function(h){throw h};i.exports=function(h,p){if(l(f,h))return f[h];p||(p={});var d=[][h],m=l(p,"ACCESSORS")?p.ACCESSORS:!1,g=l(p,0)?p[0]:u,E=l(p,1)?p[1]:void 0;return f[h]=!!d&&!a(function(){if(m&&!s)return!0;var v={length:-1};m?c(v,1,{enumerable:!0,get:u}):v[1]=1,d.call(v,g,E)})}}),b041:(function(i,o,n){var s=n("00ee"),a=n("f5df");i.exports=s?{}.toString:function(){return"[object "+a(this)+"]"}}),b575:(function(i,o,n){var s=n("da84"),a=n("06cf").f,l=n("c6b6"),c=n("2cf4").set,f=n("1cdc"),u=s.MutationObserver||s.WebKitMutationObserver,h=s.process,p=s.Promise,d=l(h)=="process",m=a(s,"queueMicrotask"),g=m&&m.value,E,v,y,S,N,b,L,T;g||(E=function(){var I,C;for(d&&(I=h.domain)&&I.exit();v;){C=v.fn,v=v.next;try{C()}catch(M){throw v?S():y=void 0,M}}y=void 0,I&&I.enter()},d?S=function(){h.nextTick(E)}:u&&!f?(N=!0,b=document.createTextNode(""),new u(E).observe(b,{characterData:!0}),S=function(){b.data=N=!N}):p&&p.resolve?(L=p.resolve(void 0),T=L.then,S=function(){T.call(L,E)}):S=function(){c.call(s,E)}),i.exports=g||function(I){var C={fn:I,next:void 0};y&&(y.next=C),v||(v=C,S()),y=C}}),b622:(function(i,o,n){var s=n("da84"),a=n("5692"),l=n("5135"),c=n("90e3"),f=n("4930"),u=n("fdbf"),h=a("wks"),p=s.Symbol,d=u?p:p&&p.withoutSetter||c;i.exports=function(m){return l(h,m)||(f&&l(p,m)?h[m]=p[m]:h[m]=d("Symbol."+m)),h[m]}}),b727:(function(i,o,n){var s=n("0366"),a=n("44ad"),l=n("7b0b"),c=n("50c4"),f=n("65f0"),u=[].push,h=function(p){var d=p==1,m=p==2,g=p==3,E=p==4,v=p==6,y=p==5||v;return function(S,N,b,L){for(var T=l(S),I=a(T),C=s(N,b,3),M=c(I.length),R=0,A=L||f,x=d?A(S,M):m?A(S,0):void 0,F,X;M>R;R++)if((y||R in I)&&(F=I[R],X=C(F,R,T),p)){if(d)x[R]=X;else if(X)switch(p){case 3:return!0;case 5:return F;case 6:return R;case 2:u.call(x,F)}else if(E)return!1}return v?-1:g||E?E:x}};i.exports={forEach:h(0),map:h(1),filter:h(2),some:h(3),every:h(4),find:h(5),findIndex:h(6)}}),c04e:(function(i,o,n){var s=n("861d");i.exports=function(a,l){if(!s(a))return a;var c,f;if(l&&typeof(c=a.toString)=="function"&&!s(f=c.call(a))||typeof(c=a.valueOf)=="function"&&!s(f=c.call(a))||!l&&typeof(c=a.toString)=="function"&&!s(f=c.call(a)))return f;throw TypeError("Can't convert object to primitive value")}}),c430:(function(i,o){i.exports=!1}),c6b6:(function(i,o){var n={}.toString;i.exports=function(s){return n.call(s).slice(8,-1)}}),c6cd:(function(i,o,n){var s=n("da84"),a=n("ce4e"),l="__core-js_shared__",c=s[l]||a(l,{});i.exports=c}),c8ba:(function(i,o){var n;n=(function(){return this})();try{n=n||new Function("return this")()}catch{typeof window=="object"&&(n=window)}i.exports=n}),ca84:(function(i,o,n){var s=n("5135"),a=n("fc6a"),l=n("4d64").indexOf,c=n("d012");i.exports=function(f,u){var h=a(f),p=0,d=[],m;for(m in h)!s(c,m)&&s(h,m)&&d.push(m);for(;u.length>p;)s(h,m=u[p++])&&(~l(d,m)||d.push(m));return d}}),cc12:(function(i,o,n){var s=n("da84"),a=n("861d"),l=s.document,c=a(l)&&a(l.createElement);i.exports=function(f){return c?l.createElement(f):{}}}),cdf9:(function(i,o,n){var s=n("825a"),a=n("861d"),l=n("f069");i.exports=function(c,f){if(s(c),a(f)&&f.constructor===c)return f;var u=l.f(c),h=u.resolve;return h(f),u.promise}}),ce4e:(function(i,o,n){var s=n("da84"),a=n("9112");i.exports=function(l,c){try{a(s,l,c)}catch{s[l]=c}return c}}),d012:(function(i,o){i.exports={}}),d039:(function(i,o){i.exports=function(n){try{return!!n()}catch{return!0}}}),d066:(function(i,o,n){var s=n("428f"),a=n("da84"),l=function(c){return typeof c=="function"?c:void 0};i.exports=function(c,f){return arguments.length<2?l(s[c])||l(a[c]):s[c]&&s[c][f]||a[c]&&a[c][f]}}),d1e7:(function(i,o,n){var s={}.propertyIsEnumerable,a=Object.getOwnPropertyDescriptor,l=a&&!s.call({1:2},1);o.f=l?function(f){var u=a(this,f);return!!u&&u.enumerable}:s}),d2bb:(function(i,o,n){var s=n("825a"),a=n("3bbe");i.exports=Object.setPrototypeOf||("__proto__"in{}?(function(){var l=!1,c={},f;try{f=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,f.call(c,[]),l=c instanceof Array}catch{}return function(h,p){return s(h),a(p),l?f.call(h,p):h.__proto__=p,h}})():void 0)}),d3b7:(function(i,o,n){var s=n("00ee"),a=n("6eeb"),l=n("b041");s||a(Object.prototype,"toString",l,{unsafe:!0})}),d44e:(function(i,o,n){var s=n("9bf2").f,a=n("5135"),l=n("b622"),c=l("toStringTag");i.exports=function(f,u,h){f&&!a(f=h?f:f.prototype,c)&&s(f,c,{configurable:!0,value:u})}}),da84:(function(i,o,n){(function(s){var a=function(l){return l&&l.Math==Math&&l};i.exports=a(typeof globalThis=="object"&&globalThis)||a(typeof window=="object"&&window)||a(typeof self=="object"&&self)||a(typeof s=="object"&&s)||Function("return this")()}).call(this,n("c8ba"))}),df75:(function(i,o,n){var s=n("ca84"),a=n("7839");i.exports=Object.keys||function(c){return s(c,a)}}),e2cc:(function(i,o,n){var s=n("6eeb");i.exports=function(a,l,c){for(var f in l)s(a,f,l[f],c);return a}}),e667:(function(i,o){i.exports=function(n){try{return{error:!1,value:n()}}catch(s){return{error:!0,value:s}}}}),e6cf:(function(i,o,n){var s=n("23e7"),a=n("c430"),l=n("da84"),c=n("d066"),f=n("fea9"),u=n("6eeb"),h=n("e2cc"),p=n("d44e"),d=n("2626"),m=n("861d"),g=n("1c0b"),E=n("19aa"),v=n("c6b6"),y=n("8925"),S=n("2266"),N=n("1c7e"),b=n("4840"),L=n("2cf4").set,T=n("b575"),I=n("cdf9"),C=n("44de"),M=n("f069"),R=n("e667"),A=n("69f3"),x=n("94ca"),F=n("b622"),X=n("2d00"),oe=F("species"),Y="Promise",ue=A.get,he=A.set,pe=A.getterFor(Y),K=f,Qn=l.TypeError,rn=l.document,vt=l.process,Zn=c("fetch"),Xe=M.f,_i=Xe,qe=v(vt)=="process",Bi=!!(rn&&rn.createEvent&&l.dispatchEvent),qn="unhandledrejection",Xi="rejectionhandled",er=0,tr=1,ji=2,sn=1,nr=2,mt,rr,on,ir,et=x(Y,function(){var P=y(K)!==String(K);if(!P&&(X===66||!qe&&typeof PromiseRejectionEvent!="function")||a&&!K.prototype.finally)return!0;if(X>=51&&/native code/.test(K))return!1;var O=K.resolve(1),V=function(B){B(function(){},function(){})},w=O.constructor={};return w[oe]=V,!(O.then(function(){})instanceof V)}),$i=et||!N(function(P){K.all(P).catch(function(){})}),sr=function(P){var O;return m(P)&&typeof(O=P.then)=="function"?O:!1},an=function(P,O,V){if(!O.notified){O.notified=!0;var w=O.reactions;T(function(){for(var B=O.value,Z=O.state==tr,me=0;w.length>me;){var de=w[me++],Ne=Z?de.ok:de.fail,Et=de.resolve,Ie=de.reject,Oe=de.domain,be,tt,yt;try{Ne?(Z||(O.rejection===nr&&Gi(P,O),O.rejection=sn),Ne===!0?be=B:(Oe&&Oe.enter(),be=Ne(B),Oe&&(Oe.exit(),yt=!0)),be===de.promise?Ie(Qn("Promise-chain cycle")):(tt=sr(be))?tt.call(be,Et,Ie):Et(be)):Ie(B)}catch(ki){Oe&&!yt&&Oe.exit(),Ie(ki)}}O.reactions=[],O.notified=!1,V&&!O.rejection&&Hi(P,O)})}},or=function(P,O,V){var w,B;Bi?(w=rn.createEvent("Event"),w.promise=O,w.reason=V,w.initEvent(P,!1,!0),l.dispatchEvent(w)):w={promise:O,reason:V},(B=l["on"+P])?B(w):P===qn&&C("Unhandled promise rejection",V)},Hi=function(P,O){L.call(l,function(){var V=O.value,w=ar(O),B;if(w&&(B=R(function(){qe?vt.emit("unhandledRejection",V,P):or(qn,P,V)}),O.rejection=qe||ar(O)?nr:sn,B.error))throw B.value})},ar=function(P){return P.rejection!==sn&&!P.parent},Gi=function(P,O){L.call(l,function(){qe?vt.emit("rejectionHandled",P):or(Xi,P,O.value)})},je=function(P,O,V,w){return function(B){P(O,V,B,w)}},$e=function(P,O,V,w){O.done||(O.done=!0,w&&(O=w),O.value=V,O.state=ji,an(P,O,!0))},ln=function(P,O,V,w){if(!O.done){O.done=!0,w&&(O=w);try{if(P===V)throw Qn("Promise can't be resolved itself");var B=sr(V);B?T(function(){var Z={done:!1};try{B.call(V,je(ln,P,Z,O),je($e,P,Z,O))}catch(me){$e(P,Z,me,O)}}):(O.value=V,O.state=tr,an(P,O,!1))}catch(Z){$e(P,{done:!1},Z,O)}}};et&&(K=function(O){E(this,K,Y),g(O),mt.call(this);var V=ue(this);try{O(je(ln,this,V),je($e,this,V))}catch(w){$e(this,V,w)}},mt=function(O){he(this,{type:Y,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:er,value:void 0})},mt.prototype=h(K.prototype,{then:function(O,V){var w=pe(this),B=Xe(b(this,K));return B.ok=typeof O=="function"?O:!0,B.fail=typeof V=="function"&&V,B.domain=qe?vt.domain:void 0,w.parent=!0,w.reactions.push(B),w.state!=er&&an(this,w,!1),B.promise},catch:function(P){return this.then(void 0,P)}}),rr=function(){var P=new mt,O=ue(P);this.promise=P,this.resolve=je(ln,P,O),this.reject=je($e,P,O)},M.f=Xe=function(P){return P===K||P===on?new rr(P):_i(P)},!a&&typeof f=="function"&&(ir=f.prototype.then,u(f.prototype,"then",function(O,V){var w=this;return new K(function(B,Z){ir.call(w,B,Z)}).then(O,V)},{unsafe:!0}),typeof Zn=="function"&&s({global:!0,enumerable:!0,forced:!0},{fetch:function(O){return I(K,Zn.apply(l,arguments))}}))),s({global:!0,wrap:!0,forced:et},{Promise:K}),p(K,Y,!1,!0),d(Y),on=c(Y),s({target:Y,stat:!0,forced:et},{reject:function(O){var V=Xe(this);return V.reject.call(void 0,O),V.promise}}),s({target:Y,stat:!0,forced:a||et},{resolve:function(O){return I(a&&this===on?K:this,O)}}),s({target:Y,stat:!0,forced:$i},{all:function(O){var V=this,w=Xe(V),B=w.resolve,Z=w.reject,me=R(function(){var de=g(V.resolve),Ne=[],Et=0,Ie=1;S(O,function(Oe){var be=Et++,tt=!1;Ne.push(void 0),Ie++,de.call(V,Oe).then(function(yt){tt||(tt=!0,Ne[be]=yt,--Ie||B(Ne))},Z)}),--Ie||B(Ne)});return me.error&&Z(me.value),w.promise},race:function(O){var V=this,w=Xe(V),B=w.reject,Z=R(function(){var me=g(V.resolve);S(O,function(de){me.call(V,de).then(w.resolve,B)})});return Z.error&&B(Z.value),w.promise}})}),e893:(function(i,o,n){var s=n("5135"),a=n("56ef"),l=n("06cf"),c=n("9bf2");i.exports=function(f,u){for(var h=a(u),p=c.f,d=l.f,m=0;m<h.length;m++){var g=h[m];s(f,g)||p(f,g,d(u,g))}}}),e8b5:(function(i,o,n){var s=n("c6b6");i.exports=Array.isArray||function(l){return s(l)=="Array"}}),e95a:(function(i,o,n){var s=n("b622"),a=n("3f8c"),l=s("iterator"),c=Array.prototype;i.exports=function(f){return f!==void 0&&(a.Array===f||c[l]===f)}}),f069:(function(i,o,n){var s=n("1c0b"),a=function(l){var c,f;this.promise=new l(function(u,h){if(c!==void 0||f!==void 0)throw TypeError("Bad Promise constructor");c=u,f=h}),this.resolve=s(c),this.reject=s(f)};i.exports.f=function(l){return new a(l)}}),f5df:(function(i,o,n){var s=n("00ee"),a=n("c6b6"),l=n("b622"),c=l("toStringTag"),f=a((function(){return arguments})())=="Arguments",u=function(h,p){try{return h[p]}catch{}};i.exports=s?a:function(h){var p,d,m;return h===void 0?"Undefined":h===null?"Null":typeof(d=u(p=Object(h),c))=="string"?d:f?a(p):(m=a(p))=="Object"&&typeof p.callee=="function"?"Arguments":m}}),f772:(function(i,o,n){var s=n("5692"),a=n("90e3"),l=s("keys");i.exports=function(c){return l[c]||(l[c]=a(c))}}),fb15:(function(i,o,n){if(n.r(o),n.d(o,"PlayerState",function(){return p}),typeof window<"u"){var s=window.document.currentScript;{var a=n("8875");s=a(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:a})}var l=s&&s.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);l&&(n.p=l[1])}var c=n("8bbf");function f(E,v,y,S,N,b){return Object(c.openBlock)(),Object(c.createBlock)("div",{style:E.wrapperStyle},[Object(c.createVNode)("div",{ref:"youtube",style:E.wrapperStyle},null,4)],4)}n("4160"),n("a9e3"),n("d3b7"),n("e6cf"),n("159b");var u=n("9fab"),h=n.n(u),p={UNSTARTED:-1,ENDED:0,PLAYING:1,PAUSED:2,BUFFERING:3,CUED:5},d=Object(c.defineComponent)({name:"YouTube",props:{src:{type:String,required:!0},height:{type:[Number,String],default:360},width:{type:[Number,String],default:640},host:{type:String,default:"https://www.youtube.com"},vars:Object},computed:{id:function(){return h()(this.src)||this.src},wrapperStyle:function(){return{width:"".concat(this.width,"px"),height:"".concat(this.height,"px"),position:"relative"}}},data:function(){var v=function(){},y=new Promise(function(N){v=N}),S={promise:y,resolver:v,player:null,initiated:!1,ready:!1,iframeStyle:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%"}};return S},mounted:function(){var v=this;window.onYouTubeIframeAPIReadyResolvers||(window.onYouTubeIframeAPIReadyResolvers=[]),window.onYouTubeIframeAPIReady||(window.onYouTubeIframeAPIReady=function(){var L;(L=window.onYouTubeIframeAPIReadyResolvers)===null||L===void 0||L.forEach(function(T){T()})}),this.promise.then(function(){return v.initPlayer()});var y="youtube-iframe-js-api-script",S=document.getElementById(y);if(S)this.resolver();else{var N;(N=window.onYouTubeIframeAPIReadyResolvers)===null||N===void 0||N.push(this.resolver),S=document.createElement("script"),S.id=y,S.src="https://www.youtube.com/iframe_api";var b=document.getElementsByTagName("script")[0];b&&b.parentNode&&b.parentNode.insertBefore(S,b)}},methods:{initPlayer:function(){var v=this;this.initiated=!0,this.player=new YT.Player(this.$refs.youtube,{height:this.height,width:this.width,videoId:this.id,host:this.host,playerVars:this.vars,events:{onReady:function(S){v.ready=!0,setTimeout(function(){return v.$emit("ready",S)})},onStateChange:function(S){return v.$emit("state-change",S)},onPlaybackQualityChange:function(S){return v.$emit("playback-quality-change",S)},onPlaybackRateChange:function(S){return v.$emit("playback-rate-change",S)},onError:function(S){return v.$emit("error",S)},onApiChange:function(S){return v.$emit("api-change",S)}}})},cueVideoById:function(v,y,S){var N;(N=this.player)===null||N===void 0||N.cueVideoById(v,y,S)},loadVideoById:function(v,y,S){var N;(N=this.player)===null||N===void 0||N.loadVideoById(v,y,S)},cueVideoByUrl:function(v,y,S){var N;(N=this.player)===null||N===void 0||N.cueVideoByUrl(v,y,S)},loadVideoByUrl:function(v,y,S){var N;(N=this.player)===null||N===void 0||N.loadVideoByUrl(v,y,S)},cuePlaylist:function(v,y,S,N){var b;(b=this.player)===null||b===void 0||b.cuePlaylist(v,y,S,N)},loadPlaylist:function(v,y,S,N){var b;(b=this.player)===null||b===void 0||b.loadPlaylist(v,y,S,N)},playVideo:function(){var v;(v=this.player)===null||v===void 0||v.playVideo()},pauseVideo:function(){var v;(v=this.player)===null||v===void 0||v.pauseVideo()},stopVideo:function(){var v;(v=this.player)===null||v===void 0||v.stopVideo()},seekTo:function(v,y){var S;(S=this.player)===null||S===void 0||S.seekTo(v,y)},nextVideo:function(){var v;(v=this.player)===null||v===void 0||v.nextVideo()},previousVideo:function(){var v;(v=this.player)===null||v===void 0||v.previousVideo()},playVideoAt:function(v){var y;(y=this.player)===null||y===void 0||y.playVideoAt(v)},mute:function(){var v;(v=this.player)===null||v===void 0||v.mute()},unMute:function(){var v;(v=this.player)===null||v===void 0||v.unMute()},isMuted:function(){return this.player?this.player.isMuted():!1},setVolume:function(v){var y;(y=this.player)===null||y===void 0||y.setVolume(v)},getVolume:function(){return this.player?this.player.getVolume():0},getPlaybackRate:function(){return this.player?this.player.getPlaybackRate():0},setPlaybackRate:function(v){var y;(y=this.player)===null||y===void 0||y.setPlaybackRate(v)},getAvailablePlaybackRates:function(){return this.player?this.player.getAvailablePlaybackRates():[]},setLoop:function(v){var y;(y=this.player)===null||y===void 0||y.setLoop(v)},setShuffle:function(v){var y;(y=this.player)===null||y===void 0||y.setShuffle(v)},getVideoLoadedFraction:function(){return this.player?this.player.getVideoLoadedFraction():0},getPlayerState:function(){return this.player?this.player.getPlayerState():p.UNSTARTED},getCurrentTime:function(){return this.player?this.player.getCurrentTime():0},getPlaybackQuality:function(){return this.player?this.player.getPlaybackQuality():"default"},setPlaybackQuality:function(v){var y;(y=this.player)===null||y===void 0||y.setPlaybackQuality(v)},getAvailableQualityLevels:function(){return this.player?this.player.getAvailableQualityLevels():[]},getDuration:function(){return this.player?this.player.getDuration():0},getVideoUrl:function(){return this.player?this.player.getVideoUrl():""},getVideoEmbedCode:function(){return this.player?this.player.getVideoEmbedCode():""},getPlaylist:function(){return this.player?this.player.getPlaylist():[]},getPlaylistIndex:function(){return this.player?this.player.getPlaylistIndex():0}},watch:{width:function(){var v;(v=this.player)===null||v===void 0||v.setSize(+this.width,+this.height)},height:function(){var v;(v=this.player)===null||v===void 0||v.setSize(+this.width,+this.height)},src:function(){this.initiated&&this.player&&this.player.loadVideoById(this.id)}},beforeUnmount:function(){var v;(v=this.player)===null||v===void 0||v.destroy()}}),m=d;m.render=f;var g=m;o.default=g}),fc6a:(function(i,o,n){var s=n("44ad"),a=n("1d80");i.exports=function(l){return s(a(l))}}),fdbc:(function(i,o){i.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}}),fdbf:(function(i,o,n){var s=n("4930");i.exports=s&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}),fea9:(function(i,o,n){var s=n("da84");i.exports=s.Promise})}).default})})(Ot)),Ot.exports}var va=da();const ma=rs(va),Ea={class:"bs-layout-vertical gap-16"},ya={class:"bs-layout-horizontal align-items-center"},ga={class:"align-self-center"},Sa={class:"bs-layout-horizontal justify-content-end gap-4"},Na=is({__name:"BSYoutubeInputModal",props:{modelValue:{},modelModifiers:{}},emits:["update:modelValue"],setup(e){const t=ss(e,"modelValue"),r=os(t.value||""),i=as(),o=()=>{const s=ps(r.value);if(s){const a=ds(r.value);t.value=vs(s,a)}else t.value=void 0;i.close()},n=()=>{i.close()};return i.setDefaultStyle({width:"600px",height:"560px"}),(s,a)=>(ur(),cr(ls,{title:{key:"bs.youtubeUrl"}},{default:fr(()=>[St("div",Ea,[St("div",ya,[Tt(cs,{label:{key:"bs.youtubeUrl"}}),Tt(fs,{modelValue:r.value,"onUpdate:modelValue":a[0]||(a[0]=l=>r.value=l),class:"flex-grow-1 ml-8",name:"youtubeUrl"},null,8,["modelValue"])]),St("div",ga,[r.value?(ur(),cr(us(ma),{key:0,ref:"youtube",src:r.value,class:"youtube",width:"550px"},null,8,["src"])):hs("",!0)])])]),buttons:fr(()=>[St("div",Sa,[Tt(hr,{caption:{key:"bs.cancel"},class:"ml-8",onClick:n}),Tt(hr,{caption:{key:"bs.ok"},"button-color":"blue",onClick:o})])]),_:1}))}});export{Na as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d as h,u as y,o as w,c as x,w as d,a as t,b as e,B as m,_ as B,e as I,f as V,g as $,v as C,h as U,i as M,r as c}from"./preview-CXdxX7HS.js";import{_ as S}from"./ImageProperties.vue_vue_type_script_setup_true_lang-DCv-pBh_-BdF1pKc_.js";const q={class:"bs-layout-form title-w-8"},D={class:"title"},E={class:"bs-layout-horizontal justify-content-end gap-8"},j=h({__name:"ImageInsertModal",props:{editor:{}},emits:["insertImage"],setup(p,{emit:b}){const f=p,u=M(()=>!f.editor.isEditable),r=b,v=[{tabId:"input",caption:{key:"bs.url"}}],s=c("upload"),l=c(),a=c({src:""}),o=y(),_=()=>{s.value==="upload"&&l.value&&l.value.fileUrl?(r("insertImage",{src:l.value.fileUrl,alt:l.value.altText}),o.close()):s.value==="input"&&a.value.src&&(r("insertImage",a.value),o.close())},g=()=>o.close();return o.setDefaultStyle({width:"540px",height:"460px"}),(H,i)=>(w(),x(U,{title:{key:"bs.richtext.insertImage"}},{default:d(()=>[e(B,{"tab-id":s.value,"onUpdate:tabId":i[1]||(i[1]=n=>s.value=n),tabs:v,class:"compact","keep-tabs":""},{input:d(({active:n})=>[I(t("div",q,[t("div",null,[t("div",D,[e(V,{label:{key:"bs.url"},required:""})]),t("div",null,[e($,{modelValue:a.value.src,"onUpdate:modelValue":i[0]||(i[0]=k=>a.value.src=k),disabled:u.value,class:"flex-grow-1",name:"url",required:"",width:"100%"},null,8,["modelValue","disabled"])])]),e(S,{disabled:u.value,"image-info":a.value},null,8,["disabled","image-info"])],512),[[C,n]])]),_:1},8,["tab-id"])]),buttons:d(()=>[t("div",E,[e(m,{caption:{key:"bs.ok"},"button-color":"blue","data-id":"okBtn",onClick:_}),e(m,{caption:{key:"bs.cancel"},"data-id":"cancelBtn",onClick:g})])]),_:1}))}});export{j as default};
|
package/dist/preview/assets/ImageProperties.vue_vue_type_script_setup_true_lang-DCv-pBh_-BdF1pKc_.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d as r,o as b,p as g,a as d,b as a,f as s,g as o,e as t,j as n,k as m,q as u,F as p}from"./preview-CXdxX7HS.js";const f={class:"title"},V={class:"title"},v={class:"title"},y={class:"title"},h={class:"bs-layout-horizontal gap-2"},w=r({__name:"ImageProperties",props:{imageInfo:{},disabled:{type:Boolean}},setup(I){return(e,l)=>(b(),g(p,null,[d("div",null,[d("div",f,[a(s,{label:{key:"bs.fileupload.alt"}})]),d("div",null,[a(o,{modelValue:e.imageInfo.alt,"onUpdate:modelValue":l[0]||(l[0]=i=>e.imageInfo.alt=i),disabled:e.disabled,name:"alt",width:"100%"},null,8,["modelValue","disabled"])])]),d("div",null,[d("div",V,[a(s,{label:{key:"bs.size"}})]),d("div",null,[t(a(o,{modelValue:e.imageInfo.width,"onUpdate:modelValue":l[1]||(l[1]=i=>e.imageInfo.width=i),disabled:e.disabled,name:"width",prefix:"W",width:"100px"},null,8,["modelValue","disabled"]),[[n(m),{key:"bs.width"},void 0,{title:!0}]]),l[9]||(l[9]=u(" x ")),t(a(o,{modelValue:e.imageInfo.height,"onUpdate:modelValue":l[2]||(l[2]=i=>e.imageInfo.height=i),disabled:e.disabled,name:"height",prefix:"H",width:"100px"},null,8,["modelValue","disabled"]),[[n(m),{key:"bs.height"},void 0,{title:!0}]])])]),d("div",null,[d("div",v,[a(s,{label:{key:"bs.maxSize"}})]),d("div",null,[t(a(o,{modelValue:e.imageInfo.maxWidth,"onUpdate:modelValue":l[3]||(l[3]=i=>e.imageInfo.maxWidth=i),disabled:e.disabled,name:"maxWidth",prefix:"W",width:"100px"},null,8,["modelValue","disabled"]),[[n(m),{key:"bs.maxWidth"},void 0,{title:!0}]]),l[10]||(l[10]=u(" x ")),t(a(o,{modelValue:e.imageInfo.maxHeight,"onUpdate:modelValue":l[4]||(l[4]=i=>e.imageInfo.maxHeight=i),disabled:e.disabled,name:"maxHeight",prefix:"H",width:"100px"},null,8,["modelValue","disabled"]),[[n(m),{key:"bs.maxHeight"},void 0,{title:!0}]])])]),d("div",null,[d("div",y,[a(s,{label:{key:"bs.margin"}})]),d("div",h,[t(a(o,{modelValue:e.imageInfo.marginLeft,"onUpdate:modelValue":l[5]||(l[5]=i=>e.imageInfo.marginLeft=i),disabled:e.disabled,prefix:{type:"font-icon",value:"keyboard_arrow_left"},name:"marginLeft",width:"80px"},null,8,["modelValue","disabled"]),[[n(m),{key:"bs.left"},void 0,{title:!0}]]),t(a(o,{modelValue:e.imageInfo.marginTop,"onUpdate:modelValue":l[6]||(l[6]=i=>e.imageInfo.marginTop=i),disabled:e.disabled,prefix:{type:"font-icon",value:"keyboard_arrow_up"},name:"marginTop",width:"80px"},null,8,["modelValue","disabled"]),[[n(m),{key:"bs.top"},void 0,{title:!0}]]),t(a(o,{modelValue:e.imageInfo.marginBottom,"onUpdate:modelValue":l[7]||(l[7]=i=>e.imageInfo.marginBottom=i),disabled:e.disabled,prefix:{type:"font-icon",value:"keyboard_arrow_down"},name:"marginBottom",width:"80px"},null,8,["modelValue","disabled"]),[[n(m),{key:"bs.bottom"},void 0,{title:!0}]]),t(a(o,{modelValue:e.imageInfo.marginRight,"onUpdate:modelValue":l[8]||(l[8]=i=>e.imageInfo.marginRight=i),disabled:e.disabled,prefix:{type:"font-icon",value:"keyboard_arrow_right"},name:"marginRight",width:"80px"},null,8,["modelValue","disabled"]),[[n(m),{key:"bs.right"},void 0,{title:!0}]])])])],64))}});export{w as _};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d as k,m as y,D as c,u as B,n as g,o as r,c as h,w as u,a as l,b as o,B as m,p as V,f as w,g as x,y as N,h as C,i as M,r as E,E as P,z as $}from"./preview-CXdxX7HS.js";import{_ as I}from"./ImageProperties.vue_vue_type_script_setup_true_lang-DCv-pBh_-BdF1pKc_.js";const z={class:"title"},D={class:"bs-layout-horizontal justify-content-end gap-8"},T=k({__name:"ImagePropertiesModal",props:{editor:{}},setup(f){const n=f,p=M(()=>!n.editor.isEditable),a=E();y(()=>{const t=n.editor.state.selection,{node:e}=c(t);e&&(a.value={...e.attrs,src:e.attrs.src})});const i=B(),d=g("form"),_=$({element:d}),b=async()=>{await _.validate(),n.editor.chain().focus().command(({tr:t})=>{const{node:e,nodePos:s}=c(t.selection);return e&&s&&a.value&&t.setNodeMarkup(s-1,null,{...e.attrs,...P(a.value)}),!0}).run(),i.close()},v=()=>i.close();return i.setDefaultStyle({width:"540px"}),(t,e)=>(r(),h(C,{title:{key:"bs.richtext.imageProperties"}},{default:u(()=>[a.value?(r(),V("div",{key:0,ref_key:"form",ref:d,class:"bs-layout-form title-w-8"},[l("div",null,[l("div",z,[o(w,{label:{key:"bs.url"}})]),l("div",null,[o(x,{modelValue:a.value.src,"onUpdate:modelValue":e[0]||(e[0]=s=>a.value.src=s),disabled:"",name:"src",required:"",width:"100%"},null,8,["modelValue"])])]),o(I,{disabled:p.value,"image-info":a.value},null,8,["disabled","image-info"])],512)):N("",!0)]),buttons:u(()=>[l("div",D,[o(m,{caption:{key:"bs.ok"},"button-color":"blue","data-id":"okBtn",onClick:b}),o(m,{caption:{key:"bs.cancel"},"data-id":"cancelBtn",onClick:v})])]),_:1}))}});export{T as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d as x,m as y,u as B,o as V,c as L,w as d,a as t,b as n,B as r,f as u,g as c,q as k,J as w,h as C,r as f}from"./preview-CXdxX7HS.js";const M={class:"bs-layout-form title-w-8"},U={class:"title"},q={class:"title"},N={class:"ml-8"},O={class:"bs-layout-horizontal justify-content-end gap-4"},S=x({__name:"LinkPropertiesModal",props:{editor:{}},setup(m){const o=m,l=f({}),p=f(!1);y(()=>{const a=o.editor.getAttributes("link").href;l.value.url=a,p.value=!!a});const s=B(),v=["http://","https://","tel:","mailto:"],_=()=>{if(l.value.url){let a=l.value.url;v.find(e=>a.startsWith(e))||(a="https://"+a),o.editor.chain().focus().extendMarkRange("link").setLink({href:a,target:l.value.target||"_self"}).run(),s.close()}},b=()=>{o.editor.chain().focus().extendMarkRange("link").unsetLink().run(),s.close()},h=()=>{l.value.target="_blank"},g=()=>{s.close()};return s.setDefaultStyle({width:"500px"}),(a,e)=>(V(),L(C,{title:{key:"bs.link"}},{default:d(()=>[t("div",M,[t("div",null,[t("div",U,[n(u,{label:{key:"bs.linkUrl"},required:""})]),t("div",null,[n(c,{modelValue:l.value.url,"onUpdate:modelValue":e[0]||(e[0]=i=>l.value.url=i),name:"url",required:"",width:"100%"},null,8,["modelValue"])])]),t("div",null,[t("div",q,[n(u,{label:{key:"bs.linkTarget"}})]),t("div",null,[n(c,{modelValue:l.value.target,"onUpdate:modelValue":e[1]||(e[1]=i=>l.value.target=i),name:"target",width:"100px"},null,8,["modelValue"]),t("span",N,[e[2]||(e[2]=k(" (ex: ")),t("a",{class:"text-decoration-none",href:"#",onClick:w(h,["prevent"])},"_blank"),e[3]||(e[3]=k(") "))])])])])]),buttons:d(()=>[t("div",O,[n(r,{caption:{key:"bs.richtext.removeLink"},"data-id":"removeLinkBtn",onClick:b}),n(r,{caption:{key:"bs.ok"},"button-color":"blue","data-id":"okBtn",onClick:_}),n(r,{caption:{key:"bs.cancel"},"data-id":"cancelBtn",onClick:g})])]),_:1}))}});export{S as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d as p,u as v,o as h,c as k,w as d,a as e,b as l,B as c,f as i,C as u,h as w,r}from"./preview-CXdxX7HS.js";const x={class:"bs-layout-form"},y={class:"bs-form-label"},B={class:"bs-form-label"},V={class:"bs-layout-horizontal justify-content-end gap-8"},M=p({__name:"TableInsertModal",props:{editor:{}},setup(b){const m=b,s=r(3),a=r(3),n=v(),_=()=>{m.editor.chain().focus().insertTable({rows:s.value,cols:a.value,withHeaderRow:!1}).run(),n.close()},f=()=>n.close();return(C,o)=>(h(),k(w,{title:{key:"bs.richtext.insertTable"}},{default:d(()=>[e("div",x,[e("div",null,[e("div",y,[l(i,{label:{key:"bs.richtext.rows"}})]),e("div",null,[l(u,{modelValue:s.value,"onUpdate:modelValue":o[0]||(o[0]=t=>s.value=t),width:"100px"},null,8,["modelValue"])])]),e("div",null,[e("div",B,[l(i,{label:{key:"bs.richtext.columns"}})]),e("div",null,[l(u,{modelValue:a.value,"onUpdate:modelValue":o[1]||(o[1]=t=>a.value=t),width:"100px"},null,8,["modelValue"])])])])]),buttons:d(()=>[e("div",V,[l(c,{caption:{key:"bs.ok"},"button-color":"blue","data-id":"okBtn",onClick:_}),l(c,{caption:{key:"bs.cancel"},"data-id":"cancelBtn",onClick:f})])]),_:1}))}});export{M as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d as E,m as L,u as R,n as A,o as k,c as M,w as C,a as i,b as o,B as T,p as B,f as x,e as r,g as u,j as m,k as v,q as P,s as $,F as z,t as S,x as j,y as D,h as F,i as I,r as U,z as q,A as b}from"./preview-CXdxX7HS.js";const H=(n,p)=>{const a=n.$head;let l=a.depth,d=a.node(l);for(;l>0&&d&&d.type.name!==p;)d=a.node(--l);if(d&&d.type.name===p){const f=a.start(l);return{node:d,nodePos:f}}else return{}},G=n=>({...n,width:b.numberToPixel(n.width),height:b.numberToPixel(n.height),maxWidth:b.numberToPixel(n.maxWidth),maxHeight:b.numberToPixel(n.maxHeight),marginLeft:b.numberToPixel(n.marginLeft),marginTop:b.numberToPixel(n.marginTop),marginRight:b.numberToPixel(n.marginRight),marginBottom:b.numberToPixel(n.marginBottom)}),J=(n,p,a,l,d)=>{n.forEach((f,V)=>{let c=0;f.forEach((g,w)=>{const y=g.attrs.colspan||1;c<=a&&c+y>a&&d.setNodeMarkup(p+1+V+w,void 0,{...g.attrs,width:l}),c+=y})})},K={class:"title"},O={class:"title"},Q={class:"title"},X={class:"bs-layout-horizontal gap-2"},Y={class:"title"},Z={class:"title"},ee={class:"py-2 pr-8"},te={class:"pt-4"},le={class:"bs-layout-horizontal justify-content-end gap-8"},ie=E({__name:"TablePropertiesModal",props:{editor:{}},setup(n){const p=n,a=I(()=>!p.editor.isEditable),l=U(),d=U([]);L(()=>{const s=p.editor.state.selection,{node:t}=H(s,"table");t&&(l.value={...t.attrs},t.firstChild&&(t.firstChild.children.length||0)>0&&(d.value=t.firstChild.children.map(e=>({width:e.attrs.width||void 0}))))});const f=()=>{var s;(s=d.value)==null||s.forEach(t=>{t.width=void 0})},V=[{value:"",caption:"",icon:"format_align_justify"},{value:"start",caption:"",icon:"format_align_left",tooltip:{key:"bs.richtext.alignLeft"}},{value:"center",caption:"",icon:"format_align_center",tooltip:{key:"bs.richtext.alignCenter"}},{value:"end",caption:"",icon:"format_align_right",tooltip:{key:"bs.richtext.alignRight"}}],c=R(),g=A("form"),w=q({element:g}),y=async()=>{await w.validate(),p.editor.chain().focus().command(({tr:s})=>{var t;const{node:e,nodePos:h}=H(s.selection,"table");return e&&h&&l.value&&(s.setNodeMarkup(h-1,null,{...e.attrs,...G(l.value)}),(t=d.value)==null||t.forEach((_,N)=>{J(e,h,N,_.width,s)})),!0}).run(),c.close()},W=()=>{c.close()};return c.setDefaultStyle({width:"500px",maxHeight:"80%"}),(s,t)=>(k(),M(F,{title:{key:"bs.richtext.table"}},{default:C(()=>[l.value?(k(),B("div",{key:0,ref_key:"form",ref:g,class:"bs-layout-form title-w-8"},[i("div",null,[i("div",K,[o(x,{label:{key:"bs.size"}})]),i("div",null,[r(o(u,{modelValue:l.value.width,"onUpdate:modelValue":t[0]||(t[0]=e=>l.value.width=e),disabled:a.value,name:"width",prefix:"W",width:"120px"},null,8,["modelValue","disabled"]),[[m(v),{key:"bs.width"},void 0,{title:!0}]]),t[9]||(t[9]=P(" x ")),r(o(u,{modelValue:l.value.height,"onUpdate:modelValue":t[1]||(t[1]=e=>l.value.height=e),disabled:a.value,name:"height",prefix:"H",width:"120px"},null,8,["modelValue","disabled"]),[[m(v),{key:"bs.height"},void 0,{title:!0}]])])]),i("div",null,[i("div",O,[o(x,{label:{key:"bs.maxSize"}})]),i("div",null,[r(o(u,{modelValue:l.value.maxWidth,"onUpdate:modelValue":t[2]||(t[2]=e=>l.value.maxWidth=e),disabled:a.value,name:"maxWidth",prefix:"W",width:"120px"},null,8,["modelValue","disabled"]),[[m(v),{key:"bs.maxWidth"},void 0,{title:!0}]]),t[10]||(t[10]=P(" x ")),r(o(u,{modelValue:l.value.maxHeight,"onUpdate:modelValue":t[3]||(t[3]=e=>l.value.maxHeight=e),disabled:a.value,name:"maxHeight",prefix:"H",width:"120px"},null,8,["modelValue","disabled"]),[[m(v),{key:"bs.maxHeight"},void 0,{title:!0}]])])]),i("div",null,[i("div",Q,[o(x,{label:{key:"bs.margin"}})]),i("div",X,[r(o(u,{modelValue:l.value.marginLeft,"onUpdate:modelValue":t[4]||(t[4]=e=>l.value.marginLeft=e),disabled:a.value,prefix:{type:"font-icon",value:"keyboard_arrow_left"},name:"marginLeft",width:"80px"},null,8,["modelValue","disabled"]),[[m(v),{key:"bs.left"},void 0,{title:!0}]]),r(o(u,{modelValue:l.value.marginTop,"onUpdate:modelValue":t[5]||(t[5]=e=>l.value.marginTop=e),disabled:a.value,prefix:{type:"font-icon",value:"keyboard_arrow_up"},name:"marginTop",width:"80px"},null,8,["modelValue","disabled"]),[[m(v),{key:"bs.top"},void 0,{title:!0}]]),r(o(u,{modelValue:l.value.marginBottom,"onUpdate:modelValue":t[6]||(t[6]=e=>l.value.marginBottom=e),disabled:a.value,prefix:{type:"font-icon",value:"keyboard_arrow_down"},name:"marginBottom",width:"80px"},null,8,["modelValue","disabled"]),[[m(v),{key:"bs.bottom"},void 0,{title:!0}]]),r(o(u,{modelValue:l.value.marginRight,"onUpdate:modelValue":t[7]||(t[7]=e=>l.value.marginRight=e),disabled:a.value,prefix:{type:"font-icon",value:"keyboard_arrow_right"},name:"marginRight",width:"80px"},null,8,["modelValue","disabled"]),[[m(v),{key:"bs.right"},void 0,{title:!0}]])])]),i("div",null,[i("div",Y,[o(x,{label:{key:"bs.align"}})]),i("div",null,[o($,{modelValue:l.value.tableAlign,"onUpdate:modelValue":t[8]||(t[8]=e=>l.value.tableAlign=e),disabled:a.value,"icon-provider":e=>e.icon,items:V,"label-provider":e=>e.caption,"tooltip-provider":e=>e.tooltip,"value-provider":e=>e.value,class:"button-group-style",name:"tableAlign"},null,8,["modelValue","disabled","icon-provider","label-provider","tooltip-provider","value-provider"])])]),i("div",null,[i("div",Z,[o(x,{label:{key:"bs.richtext.tableColumnInfo"}})]),i("div",null,[(k(!0),B(z,null,S(d.value,(e,h)=>(k(),B("div",{key:h,class:"mb-4"},[i("span",ee,j(h+1)+":",1),r(o(u,{modelValue:e.width,"onUpdate:modelValue":_=>e.width=_,disabled:a.value,name:`columnWidth_${h}`,prefix:"W",width:"120px"},null,8,["modelValue","onUpdate:modelValue","disabled","name"]),[[m(v),{key:"bs.width"},void 0,{title:!0}]])]))),128)),i("div",te,[o(T,{caption:{key:"bs.clearAll"},onClick:f})])])])],512)):D("",!0)]),buttons:C(()=>[i("div",le,[o(T,{caption:{key:"bs.ok"},"button-color":"blue","data-id":"okBtn",onClick:y}),o(T,{caption:{key:"bs.cancel"},"data-id":"cancelBtn",onClick:W})])]),_:1}))}});export{ie as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d as V,u as y,o as w,c as B,w as d,a as s,b as e,B as p,_ as x,e as $,f as g,g as C,v as U,h as I,i as M,r as c}from"./preview-CXdxX7HS.js";import{_ as S}from"./VideoProperties.vue_vue_type_script_setup_true_lang-BR8B1ON_-C6bZNHBl.js";const q={class:"bs-layout-form title-w-8"},D={class:"title"},E={class:"bs-layout-horizontal justify-content-end gap-8"},z=V({__name:"VideoInsertModal",props:{editor:{}},emits:["insertVideo"],setup(b,{emit:v}){const f=b,r=M(()=>!f.editor.isEditable),u=v,m=[{tabId:"input",caption:{key:"bs.url"}}],a=c("upload"),i=c(),t=c({src:"",controls:!0}),o=y(),_=()=>{a.value==="upload"&&i.value&&i.value.fileUrl?(u("insertVideo",{src:i.value.fileUrl,controls:!0}),o.close()):a.value==="input"&&t.value.src&&(u("insertVideo",t.value),o.close())},k=()=>o.close();return o.setDefaultStyle({width:"540px",height:"460px"}),(H,l)=>(w(),B(I,{title:{key:"bs.richtext.insertVideo"}},{default:d(()=>[e(x,{"tab-id":a.value,"onUpdate:tabId":l[1]||(l[1]=n=>a.value=n),tabs:m,class:"compact","keep-tabs":""},{input:d(({active:n})=>[$(s("div",q,[s("div",null,[s("div",D,[e(g,{label:{key:"bs.url"},required:""})]),s("div",null,[e(C,{modelValue:t.value.src,"onUpdate:modelValue":l[0]||(l[0]=h=>t.value.src=h),disabled:r.value,class:"flex-grow-1",name:"url",required:"",width:"100%"},null,8,["modelValue","disabled"])])]),e(S,{disabled:r.value,"video-info":t.value},null,8,["disabled","video-info"])],512),[[U,n]])]),_:1},8,["tab-id"])]),buttons:d(()=>[s("div",E,[e(p,{caption:{key:"bs.ok"},"button-color":"blue","data-id":"okBtn",onClick:_}),e(p,{caption:{key:"bs.cancel"},"data-id":"cancelBtn",onClick:k})])]),_:1}))}});export{z as default};
|
package/dist/preview/assets/VideoProperties.vue_vue_type_script_setup_true_lang-BR8B1ON_-C6bZNHBl.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d as b,o as p,p as v,a as i,b as o,M as m,f as u,e as a,j as n,k as t,g as s,q as r,F as f}from"./preview-CXdxX7HS.js";const V={class:"bs-layout-horizontal gap-8"},g={class:"title"},y={class:"title"},I={class:"title"},k={class:"bs-layout-horizontal gap-2"},U=b({__name:"VideoProperties",props:{videoInfo:{},disabled:{type:Boolean}},setup(h){return(e,d)=>(p(),v(f,null,[i("div",null,[i("div",V,[o(m,{modelValue:e.videoInfo.controls,"onUpdate:modelValue":d[0]||(d[0]=l=>e.videoInfo.controls=l),disabled:e.disabled,label:{key:"bs.richtext.showVideoControl"}},null,8,["modelValue","disabled"]),o(m,{modelValue:e.videoInfo.autoplay,"onUpdate:modelValue":d[1]||(d[1]=l=>e.videoInfo.autoplay=l),disabled:e.disabled,label:{key:"bs.richtext.videoAutoplay"}},null,8,["modelValue","disabled"]),o(m,{modelValue:e.videoInfo.loop,"onUpdate:modelValue":d[2]||(d[2]=l=>e.videoInfo.loop=l),disabled:e.disabled,label:{key:"bs.richtext.videoLoop"}},null,8,["modelValue","disabled"]),o(m,{modelValue:e.videoInfo.muted,"onUpdate:modelValue":d[3]||(d[3]=l=>e.videoInfo.muted=l),disabled:e.disabled,label:{key:"bs.richtext.videoMuted"}},null,8,["modelValue","disabled"])])]),i("div",null,[i("div",g,[o(u,{label:{key:"bs.size"}})]),i("div",null,[a(o(s,{modelValue:e.videoInfo.width,"onUpdate:modelValue":d[4]||(d[4]=l=>e.videoInfo.width=l),disabled:e.disabled,name:"width",prefix:"W",width:"100px"},null,8,["modelValue","disabled"]),[[n(t),{key:"bs.width"},void 0,{title:!0}]]),d[12]||(d[12]=r(" x ")),a(o(s,{modelValue:e.videoInfo.height,"onUpdate:modelValue":d[5]||(d[5]=l=>e.videoInfo.height=l),disabled:e.disabled,name:"height",prefix:"H",width:"100px"},null,8,["modelValue","disabled"]),[[n(t),{key:"bs.height"},void 0,{title:!0}]])])]),i("div",null,[i("div",y,[o(u,{label:{key:"bs.maxSize"}})]),i("div",null,[a(o(s,{modelValue:e.videoInfo.maxWidth,"onUpdate:modelValue":d[6]||(d[6]=l=>e.videoInfo.maxWidth=l),disabled:e.disabled,name:"maxWidth",prefix:"W",width:"100px"},null,8,["modelValue","disabled"]),[[n(t),{key:"bs.maxWidth"},void 0,{title:!0}]]),d[13]||(d[13]=r(" x ")),a(o(s,{modelValue:e.videoInfo.maxHeight,"onUpdate:modelValue":d[7]||(d[7]=l=>e.videoInfo.maxHeight=l),disabled:e.disabled,name:"maxHeight",prefix:"H",width:"100px"},null,8,["modelValue","disabled"]),[[n(t),{key:"bs.maxHeight"},void 0,{title:!0}]])])]),i("div",null,[i("div",I,[o(u,{label:{key:"bs.margin"}})]),i("div",k,[a(o(s,{modelValue:e.videoInfo.marginLeft,"onUpdate:modelValue":d[8]||(d[8]=l=>e.videoInfo.marginLeft=l),disabled:e.disabled,prefix:{type:"font-icon",value:"keyboard_arrow_left"},name:"marginLeft",width:"80px"},null,8,["modelValue","disabled"]),[[n(t),{key:"bs.left"},void 0,{title:!0}]]),a(o(s,{modelValue:e.videoInfo.marginTop,"onUpdate:modelValue":d[9]||(d[9]=l=>e.videoInfo.marginTop=l),disabled:e.disabled,prefix:{type:"font-icon",value:"keyboard_arrow_up"},name:"marginTop",width:"80px"},null,8,["modelValue","disabled"]),[[n(t),{key:"bs.top"},void 0,{title:!0}]]),a(o(s,{modelValue:e.videoInfo.marginBottom,"onUpdate:modelValue":d[10]||(d[10]=l=>e.videoInfo.marginBottom=l),disabled:e.disabled,prefix:{type:"font-icon",value:"keyboard_arrow_down"},name:"marginBottom",width:"80px"},null,8,["modelValue","disabled"]),[[n(t),{key:"bs.bottom"},void 0,{title:!0}]]),a(o(s,{modelValue:e.videoInfo.marginRight,"onUpdate:modelValue":d[11]||(d[11]=l=>e.videoInfo.marginRight=l),disabled:e.disabled,prefix:{type:"font-icon",value:"keyboard_arrow_right"},name:"marginRight",width:"80px"},null,8,["modelValue","disabled"]),[[n(t),{key:"bs.right"},void 0,{title:!0}]])])])],64))}});export{U as _};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d as k,m as y,K as c,u as B,n as V,o as r,c as h,w as u,a as l,b as a,B as m,p as w,f as x,g as N,y as C,h as M,i as P,r as $,L as E,z as g}from"./preview-CXdxX7HS.js";import{_ as z}from"./VideoProperties.vue_vue_type_script_setup_true_lang-BR8B1ON_-C6bZNHBl.js";const H={class:"title"},S={class:"bs-layout-horizontal justify-content-end gap-8"},q=k({__name:"VideoPropertiesModal",props:{editor:{}},setup(f){const n=f,p=P(()=>!n.editor.isEditable),o=$();y(()=>{const t=n.editor.state.selection,{node:e}=c(t);e&&(o.value={...e.attrs,src:e.attrs.src})});const d=B(),i=V("form"),v=g({element:i}),_=async()=>{await v.validate(),n.editor.chain().focus().command(({tr:t})=>{const{node:e,nodePos:s}=c(t.selection);return e&&s&&o.value&&t.setNodeMarkup(s-1,null,{...e.attrs,...E(o.value)}),!0}).run(),d.close()},b=()=>d.close();return d.setDefaultStyle({width:"540px"}),(t,e)=>(r(),h(M,{title:{key:"bs.richtext.videoProperties"}},{default:u(()=>[o.value?(r(),w("div",{key:0,ref_key:"form",ref:i,class:"bs-layout-form title-w-8"},[l("div",null,[l("div",H,[a(x,{label:{key:"bs.url"}})]),l("div",null,[a(N,{modelValue:o.value.src,"onUpdate:modelValue":e[0]||(e[0]=s=>o.value.src=s),disabled:"",name:"src",required:"",width:"100%"},null,8,["modelValue"])])]),a(z,{disabled:p.value,"video-info":o.value},null,8,["disabled","video-info"])],512)):C("",!0)]),buttons:u(()=>[l("div",S,[a(m,{caption:{key:"bs.ok"},"button-color":"blue","data-id":"okBtn",onClick:_}),a(m,{caption:{key:"bs.cancel"},"data-id":"cancelBtn",onClick:b})])]),_:1}))}});export{q as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d as p,u as f,o as _,c as y,w as u,a as t,b as o,B as i,f as h,g as v,h as k,i as w,r as x,G as B}from"./preview-CXdxX7HS.js";import{_ as C}from"./YoutubeProperties.vue_vue_type_script_setup_true_lang-BlmuRJva-DJ7F4T2b.js";const V={class:"bs-layout-form"},$={class:"title"},g={class:"bs-layout-horizontal justify-content-end gap-8"},U=p({__name:"YoutubeInsertModal",props:{editor:{}},setup(c){const s=c,d=w(()=>!s.editor.isEditable),e=x({src:"",aspectRatio:"16/9",width:"480px"}),a=f(),r=()=>{e.value.src&&(s.editor.chain().focus().command(({commands:l})=>(l.insertContent({type:"youtube",attrs:B(e.value)}),!0)).run(),a.close())},b=()=>a.close();return a.setDefaultStyle({width:"540px",height:"460px"}),(l,n)=>(_(),y(k,{title:{key:"bs.richtext.youtube"}},{default:u(()=>[t("div",V,[t("div",null,[t("div",$,[o(h,{label:{key:"bs.richtext.youtubeUrl"},required:""})]),t("div",null,[o(v,{modelValue:e.value.src,"onUpdate:modelValue":n[0]||(n[0]=m=>e.value.src=m),name:"youtubeUrl",placeholder:"https://www.youtube.com/watch?v=...",required:"",width:"100%"},null,8,["modelValue"])])]),o(C,{disabled:d.value,"youtube-info":e.value},null,8,["disabled","youtube-info"])])]),buttons:u(()=>[t("div",g,[o(i,{caption:{key:"bs.ok"},"button-color":"blue","data-id":"okBtn",onClick:r}),o(i,{caption:{key:"bs.cancel"},"data-id":"cancelBtn",onClick:b})])]),_:1}))}});export{U as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d as m,o as r,p,a as i,b as d,f as s,g as a,e as t,j as u,k as n,q as b,F as f}from"./preview-CXdxX7HS.js";const y={class:"title"},g={class:"title"},V={class:"title"},v={class:"title"},h={class:"bs-layout-horizontal gap-2"},I=m({__name:"YoutubeProperties",props:{youtubeInfo:{},disabled:{type:Boolean}},setup(w){return(e,l)=>(r(),p(f,null,[i("div",null,[i("div",y,[d(s,{label:{key:"bs.widthHeightRatio"}})]),i("div",null,[d(a,{modelValue:e.youtubeInfo.aspectRatio,"onUpdate:modelValue":l[0]||(l[0]=o=>e.youtubeInfo.aspectRatio=o),disabled:e.disabled,name:"aspectRatio",placeholder:"16/9",width:"100px"},null,8,["modelValue","disabled"])])]),i("div",null,[i("div",g,[d(s,{label:{key:"bs.size"}})]),i("div",null,[t(d(a,{modelValue:e.youtubeInfo.width,"onUpdate:modelValue":l[1]||(l[1]=o=>e.youtubeInfo.width=o),disabled:e.disabled,name:"width",prefix:"W",width:"100px"},null,8,["modelValue","disabled"]),[[u(n),{key:"bs.width"},void 0,{title:!0}]]),l[9]||(l[9]=b(" x ")),t(d(a,{modelValue:e.youtubeInfo.height,"onUpdate:modelValue":l[2]||(l[2]=o=>e.youtubeInfo.height=o),disabled:e.disabled,name:"height",prefix:"H",width:"100px"},null,8,["modelValue","disabled"]),[[u(n),{key:"bs.height"},void 0,{title:!0}]])])]),i("div",null,[i("div",V,[d(s,{label:{key:"bs.maxSize"}})]),i("div",null,[t(d(a,{modelValue:e.youtubeInfo.maxWidth,"onUpdate:modelValue":l[3]||(l[3]=o=>e.youtubeInfo.maxWidth=o),disabled:e.disabled,name:"maxWidth",prefix:"W",width:"100px"},null,8,["modelValue","disabled"]),[[u(n),{key:"bs.maxWidth"},void 0,{title:!0}]]),l[10]||(l[10]=b(" x ")),t(d(a,{modelValue:e.youtubeInfo.maxHeight,"onUpdate:modelValue":l[4]||(l[4]=o=>e.youtubeInfo.maxHeight=o),disabled:e.disabled,name:"maxHeight",prefix:"H",width:"100px"},null,8,["modelValue","disabled"]),[[u(n),{key:"bs.maxHeight"},void 0,{title:!0}]])])]),i("div",null,[i("div",v,[d(s,{label:{key:"bs.margin"}})]),i("div",h,[t(d(a,{modelValue:e.youtubeInfo.marginLeft,"onUpdate:modelValue":l[5]||(l[5]=o=>e.youtubeInfo.marginLeft=o),disabled:e.disabled,prefix:{type:"font-icon",value:"keyboard_arrow_left"},name:"marginLeft",width:"80px"},null,8,["modelValue","disabled"]),[[u(n),{key:"bs.left"},void 0,{title:!0}]]),t(d(a,{modelValue:e.youtubeInfo.marginTop,"onUpdate:modelValue":l[6]||(l[6]=o=>e.youtubeInfo.marginTop=o),disabled:e.disabled,prefix:{type:"font-icon",value:"keyboard_arrow_up"},name:"marginTop",width:"80px"},null,8,["modelValue","disabled"]),[[u(n),{key:"bs.top"},void 0,{title:!0}]]),t(d(a,{modelValue:e.youtubeInfo.marginBottom,"onUpdate:modelValue":l[7]||(l[7]=o=>e.youtubeInfo.marginBottom=o),disabled:e.disabled,prefix:{type:"font-icon",value:"keyboard_arrow_down"},name:"marginBottom",width:"80px"},null,8,["modelValue","disabled"]),[[u(n),{key:"bs.bottom"},void 0,{title:!0}]]),t(d(a,{modelValue:e.youtubeInfo.marginRight,"onUpdate:modelValue":l[8]||(l[8]=o=>e.youtubeInfo.marginRight=o),disabled:e.disabled,prefix:{type:"font-icon",value:"keyboard_arrow_right"},name:"marginRight",width:"80px"},null,8,["modelValue","disabled"]),[[u(n),{key:"bs.right"},void 0,{title:!0}]])])])],64))}});export{I as _};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d as v,m as y,H as c,I as h,u as k,o as r,c as B,w as b,a as l,b as a,B as m,p as w,f as x,g as N,y as V,h as C,i as M,r as $,G as g}from"./preview-CXdxX7HS.js";import{_ as E}from"./YoutubeProperties.vue_vue_type_script_setup_true_lang-BlmuRJva-DJ7F4T2b.js";const H={key:0,class:"bs-layout-form"},I={class:"title"},P={class:"bs-layout-horizontal justify-content-end gap-8"},q=v({__name:"YoutubePropertiesModal",props:{editor:{}},setup(f){const n=f,d=M(()=>!n.editor.isEditable),t=$();y(()=>{const o=n.editor.state.selection,{node:e}=c(o);e&&(t.value=h({src:e.attrs.src,...e.attrs}))});const u=k(),p=()=>{var o;(o=t.value)!=null&&o.src&&(n.editor.chain().focus().command(({tr:e})=>{const{node:s,nodePos:i}=c(e.selection);return s&&i&&t.value&&e.setNodeMarkup(i-1,null,{...s.attrs,...g(t.value)}),!0}).run(),u.close())},_=()=>u.close();return u.setDefaultStyle({width:"500px",height:"400px"}),(o,e)=>(r(),B(C,{title:{key:"bs.richtext.youtube"}},{default:b(()=>[t.value?(r(),w("div",H,[l("div",null,[l("div",I,[a(x,{label:{key:"bs.richtext.youtubeUrl"},required:""})]),l("div",null,[a(N,{modelValue:t.value.src,"onUpdate:modelValue":e[0]||(e[0]=s=>t.value.src=s),disabled:d.value,name:"youtubeUrl",placeholder:"https://www.youtube.com/watch?v=...",required:"",width:"100%"},null,8,["modelValue","disabled"])])]),a(E,{disabled:d.value,"youtube-info":t.value},null,8,["disabled","youtube-info"])])):V("",!0)]),buttons:b(()=>[l("div",P,[a(m,{caption:{key:"bs.ok"},"button-color":"blue","data-id":"okBtn",onClick:p}),a(m,{caption:{key:"bs.cancel"},"data-id":"cancelBtn",onClick:_})])]),_:1}))}});export{q as default};
|