ellm-proxy 0.0.1
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/LICENSE +21 -0
- package/README.md +60 -0
- package/bin/commands/autostart.js +213 -0
- package/bin/commands/config.js +8 -0
- package/bin/commands/pm2.js +28 -0
- package/bin/commands/service.js +107 -0
- package/bin/ellm-proxy.js +61 -0
- package/dist/package.json +1 -0
- package/dist/server.js +12176 -0
- package/dist/web-ui/assets/DashboardView-CQdlgirS.js +1 -0
- package/dist/web-ui/assets/DashboardView-qrQrkgLA.css +1 -0
- package/dist/web-ui/assets/LayoutView-BaY4Pz9W.js +1 -0
- package/dist/web-ui/assets/LoginView-CPvz1Ylx.js +1 -0
- package/dist/web-ui/assets/LoginView-Dg0mB6ok.css +1 -0
- package/dist/web-ui/assets/LogsView-B-bIj36j.js +9 -0
- package/dist/web-ui/assets/LogsView-Wl3_adHm.css +1 -0
- package/dist/web-ui/assets/ProcessView-0x_ShSwV.js +1 -0
- package/dist/web-ui/assets/ProcessView-DzMqBJmd.css +1 -0
- package/dist/web-ui/assets/ProvidersView-BxAxDRFH.css +1 -0
- package/dist/web-ui/assets/ProvidersView-GQENcvJS.js +31 -0
- package/dist/web-ui/assets/SettingsView-BDkymsrS.css +1 -0
- package/dist/web-ui/assets/SettingsView-BrAiaskZ.js +1 -0
- package/dist/web-ui/assets/config-DNn5cjYY.js +1 -0
- package/dist/web-ui/assets/index-BecfPmag.css +1 -0
- package/dist/web-ui/assets/index-DFlUx18F.js +96 -0
- package/dist/web-ui/assets/providers-CGEmOxne.js +1 -0
- package/dist/web-ui/assets/useApi-BRPinb_2.js +1 -0
- package/dist/web-ui/assets/useManagerApi-BDWJz5o6.js +1 -0
- package/dist/web-ui/assets/useToast-D7xlwSg6.js +1 -0
- package/dist/web-ui/config.js +10 -0
- package/dist/web-ui/index.html +15 -0
- package/docs/DESIGN.md +99 -0
- package/ellm.config.example.json +33 -0
- package/manager/api/harness/backup.js +20 -0
- package/manager/api/harness/claude-code.js +54 -0
- package/manager/api/harness/codex.js +123 -0
- package/manager/api/harness/dsh.js +175 -0
- package/manager/api/harness/index.js +118 -0
- package/manager/api/service.js +157 -0
- package/manager/index.js +170 -0
- package/package.json +40 -0
- package/utils/interpreter.js +14 -0
- package/utils/paths.js +44 -0
- package/utils/pm2.js +130 -0
- package/utils/port.js +35 -0
- package/utils/service.js +189 -0
- package/utils/ui.js +59 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import{N as jn,q as Lt,s as Ge,v as ir,x as wt,y as wo,z as Es,A as Qi,E as Ss,B as Zi,C as bs,D as Ht,G as _i,H as yi,I as Ts,J as Os,K as Is,L as Ns,M as Cs,O as jr,P as As,Q as Br,R as xs,S as Ps,T as Rs,U as Ds,V as Kt,d as qi,l as ke,i as ea,W as Ms,j as It,w as k,r as Te,o as ge,b as Oe,a as $,c as je,t as Ie,k as Ct,X as Ls,e as Se,p as ta,F as na,f as To,_ as ra,u as Me,Y as Ei,Z as ar,$ as so}from"./index-DFlUx18F.js";import{u as oa}from"./useToast-D7xlwSg6.js";import{u as ia}from"./providers-CGEmOxne.js";import{A as kt}from"./useApi-BRPinb_2.js";import"./config-DNn5cjYY.js";var mr={exports:{}},lo={exports:{}},co={};/**
|
|
2
|
+
* @vue/compiler-core v3.5.42
|
|
3
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
|
+
* @license MIT
|
|
5
|
+
**/const vn=Symbol(""),mn=Symbol(""),Xr=Symbol(""),kn=Symbol(""),Fo=Symbol(""),Jt=Symbol(""),Vo=Symbol(""),Uo=Symbol(""),Gr=Symbol(""),Hr=Symbol(""),On=Symbol(""),Kr=Symbol(""),$o=Symbol(""),kr=Symbol(""),Wr=Symbol(""),Yr=Symbol(""),Jr=Symbol(""),zr=Symbol(""),Qr=Symbol(""),jo=Symbol(""),Bo=Symbol(""),Zn=Symbol(""),Wn=Symbol(""),Zr=Symbol(""),_r=Symbol(""),gn=Symbol(""),In=Symbol(""),qr=Symbol(""),Ar=Symbol(""),aa=Symbol(""),xr=Symbol(""),Yn=Symbol(""),sa=Symbol(""),la=Symbol(""),eo=Symbol(""),ca=Symbol(""),ua=Symbol(""),to=Symbol(""),Xo=Symbol(""),rn={[vn]:"Fragment",[mn]:"Teleport",[Xr]:"Suspense",[kn]:"KeepAlive",[Fo]:"BaseTransition",[Jt]:"openBlock",[Vo]:"createBlock",[Uo]:"createElementBlock",[Gr]:"createVNode",[Hr]:"createElementVNode",[On]:"createCommentVNode",[Kr]:"createTextVNode",[$o]:"createStaticVNode",[kr]:"resolveComponent",[Wr]:"resolveDynamicComponent",[Yr]:"resolveDirective",[Jr]:"resolveFilter",[zr]:"withDirectives",[Qr]:"renderList",[jo]:"renderSlot",[Bo]:"createSlots",[Zn]:"toDisplayString",[Wn]:"mergeProps",[Zr]:"normalizeClass",[_r]:"normalizeStyle",[gn]:"normalizeProps",[In]:"guardReactiveProps",[qr]:"toHandlers",[Ar]:"camelize",[aa]:"capitalize",[xr]:"toHandlerKey",[Yn]:"setBlockTracking",[sa]:"pushScopeId",[la]:"popScopeId",[eo]:"withCtx",[ca]:"unref",[ua]:"isRef",[to]:"withMemo",[Xo]:"isMemoSame"};function fa(t){Object.getOwnPropertySymbols(t).forEach(e=>{rn[e]=t[e]})}const ws={HTML:0,0:"HTML",SVG:1,1:"SVG",MATH_ML:2,2:"MATH_ML"},Fs={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"},Vs={ELEMENT:0,0:"ELEMENT",COMPONENT:1,1:"COMPONENT",SLOT:2,2:"SLOT",TEMPLATE:3,3:"TEMPLATE"},Us={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"},Je={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function da(t,e=""){return{type:0,source:e,children:t,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:[],temps:0,codegenNode:void 0,loc:Je}}function yn(t,e,n,o,i,s,r,a=!1,l=!1,c=!1,f=Je){return t&&(a?(t.helper(Jt),t.helper(sn(t.inSSR,c))):t.helper(an(t.inSSR,c)),r&&t.helper(zr)),{type:13,tag:e,props:n,children:o,patchFlag:i,dynamicProps:s,directives:r,isBlock:a,disableTracking:l,isComponent:c,loc:f}}function Yt(t,e=Je){return{type:17,loc:e,elements:t}}function gt(t,e=Je){return{type:15,loc:e,properties:t}}function Xe(t,e){return{type:16,loc:Je,key:Ge(t)?ie(t,!0):t,value:e}}function ie(t,e=!1,n=Je,o=0){return{type:4,loc:n,content:t,isStatic:e,constType:e?3:o}}function $s(t,e){return{type:5,loc:e,content:Ge(t)?ie(t,!1,e):t}}function Et(t,e=Je){return{type:8,loc:e,children:t}}function We(t,e=[],n=Je){return{type:14,loc:n,callee:t,arguments:e}}function on(t,e=void 0,n=!1,o=!1,i=Je){return{type:18,params:t,returns:e,newline:n,isSlot:o,loc:i}}function Pr(t,e,n,o=!0){return{type:19,test:t,consequent:e,alternate:n,newline:o,loc:Je}}function pa(t,e,n=!1,o=!1){return{type:20,index:t,value:e,needPauseTracking:n,inVOnce:o,needArraySpread:!1,loc:Je}}function ha(t){return{type:21,body:t,loc:Je}}function js(t){return{type:22,elements:t,loc:Je}}function Bs(t,e,n){return{type:23,test:t,consequent:e,alternate:n,loc:Je}}function Xs(t,e){return{type:24,left:t,right:e,loc:Je}}function Gs(t){return{type:25,expressions:t,loc:Je}}function Hs(t){return{type:26,returns:t,loc:Je}}function an(t,e){return t||e?Gr:Hr}function sn(t,e){return t||e?Vo:Uo}function no(t,{helper:e,removeHelper:n,inSSR:o}){t.isBlock||(t.isBlock=!0,n(an(o,t.isComponent)),e(Jt),e(sn(o,t.isComponent)))}const Si=new Uint8Array([123,123]),bi=new Uint8Array([125,125]);function Ti(t){return t>=97&&t<=122||t>=65&&t<=90}function vt(t){return t===32||t===10||t===9||t===12||t===13}function jt(t){return t===47||t===62||vt(t)}function Rr(t){const e=new Uint8Array(t.length);for(let n=0;n<t.length;n++)e[n]=t.charCodeAt(n);return e}const qe={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 Ks{constructor(e,n){this.stack=e,this.cbs=n,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=Si,this.delimiterClose=bi,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=Si,this.delimiterClose=bi}getPos(e){let n=1,o=e+1;const i=this.newlines.length;let s=-1;if(i>100){let r=-1,a=i;for(;r+1<a;){const l=r+a>>>1;this.newlines[l]<e?r=l:a=l}s=r}else for(let r=i-1;r>=0;r--)if(e>this.newlines[r]){s=r;break}return s>=0&&(n=s+2,o=e-this.newlines[s]),{column:o,line:n,offset:e}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(e){e===60?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):!this.inVPre&&e===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(e))}stateInterpolationOpen(e){if(e===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const n=this.index+1-this.delimiterOpen.length;n>this.sectionStart&&this.cbs.ontext(this.sectionStart,n),this.state=3,this.sectionStart=n}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(e)):(this.state=1,this.stateText(e))}stateInterpolation(e){e===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(e))}stateInterpolationClose(e){e===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(e))}stateSpecialStartSequence(e){const n=this.sequenceIndex===this.currentSequence.length;if(!(n?jt(e):(e|32)===this.currentSequence[this.sequenceIndex]))this.inRCDATA=!1;else if(!n){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=6,this.stateInTagName(e)}stateInRCDATA(e){if(this.sequenceIndex===this.currentSequence.length){if(e===62||vt(e)){const n=this.index-this.currentSequence.length;if(this.sectionStart<n){const o=this.index;this.index=n,this.cbs.ontext(this.sectionStart,n),this.index=o}this.sectionStart=n+2,this.stateInClosingTagName(e),this.inRCDATA=!1;return}this.sequenceIndex=0}(e|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===qe.TitleEnd||this.currentSequence===qe.TextareaEnd&&!this.inSFCRoot?!this.inVPre&&e===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(e)):this.fastForwardTo(60)&&(this.sequenceIndex=1):this.sequenceIndex=+(e===60)}stateCDATASequence(e){e===qe.Cdata[this.sequenceIndex]?++this.sequenceIndex===qe.Cdata.length&&(this.state=28,this.currentSequence=qe.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=23,this.stateInDeclaration(e))}fastForwardTo(e){for(;++this.index<this.buffer.length;){const n=this.buffer.charCodeAt(this.index);if(n===10&&this.newlines.push(this.index),n===e)return!0}return this.index=this.buffer.length-1,!1}stateInCommentLike(e){e===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===qe.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):e!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}startSpecial(e,n){this.enterRCDATA(e,n),this.state=31}enterRCDATA(e,n){this.inRCDATA=!0,this.currentSequence=e,this.sequenceIndex=n}stateBeforeTagName(e){e===33?(this.state=22,this.sectionStart=this.index+1):e===63?(this.state=24,this.sectionStart=this.index+1):Ti(e)?(this.sectionStart=this.index,this.mode===0?this.state=6:this.inSFCRoot?this.state=34:this.inXML?this.state=6:e===116?this.state=30:this.state=e===115?29:6):e===47?this.state=8:(this.state=1,this.stateText(e))}stateInTagName(e){jt(e)&&this.handleTagName(e)}stateInSFCRootTagName(e){if(jt(e)){const n=this.buffer.slice(this.sectionStart,this.index);n!=="template"&&this.enterRCDATA(Rr("</"+n),0),this.handleTagName(e)}}handleTagName(e){this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(e)}stateBeforeClosingTagName(e){vt(e)||(e===62?(this.state=1,this.sectionStart=this.index+1):(this.state=Ti(e)?9:27,this.sectionStart=this.index))}stateInClosingTagName(e){(e===62||vt(e))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=10,this.stateAfterClosingTagName(e))}stateAfterClosingTagName(e){e===62&&(this.state=1,this.sectionStart=this.index+1)}stateBeforeAttrName(e){e===62?(this.cbs.onopentagend(this.index),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):e===47?this.state=7:e===60&&this.peek()===47?(this.cbs.onopentagend(this.index),this.state=5,this.sectionStart=this.index):vt(e)||this.handleAttrStart(e)}handleAttrStart(e){e===118&&this.peek()===45?(this.state=13,this.sectionStart=this.index):e===46||e===58||e===64||e===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(e){e===62?(this.cbs.onselfclosingtag(this.index),this.state=1,this.sectionStart=this.index+1,this.inRCDATA=!1):vt(e)||(this.state=11,this.stateBeforeAttrName(e))}stateInAttrName(e){(e===61||jt(e))&&(this.cbs.onattribname(this.sectionStart,this.index),this.handleAttrNameEnd(e))}stateInDirName(e){e===61||jt(e)?(this.cbs.ondirname(this.sectionStart,this.index),this.handleAttrNameEnd(e)):e===58?(this.cbs.ondirname(this.sectionStart,this.index),this.state=14,this.sectionStart=this.index+1):e===46&&(this.cbs.ondirname(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDirArg(e){e===61||jt(e)?(this.cbs.ondirarg(this.sectionStart,this.index),this.handleAttrNameEnd(e)):e===91?this.state=15:e===46&&(this.cbs.ondirarg(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDynamicDirArg(e){e===93?this.state=14:(e===61||jt(e))&&(this.cbs.ondirarg(this.sectionStart,this.index+1),this.handleAttrNameEnd(e))}stateInDirModifier(e){e===61||jt(e)?(this.cbs.ondirmodifier(this.sectionStart,this.index),this.handleAttrNameEnd(e)):e===46&&(this.cbs.ondirmodifier(this.sectionStart,this.index),this.sectionStart=this.index+1)}handleAttrNameEnd(e){this.sectionStart=this.index,this.state=17,this.cbs.onattribnameend(this.index),this.stateAfterAttrName(e)}stateAfterAttrName(e){e===61?this.state=18:e===47||e===62?(this.cbs.onattribend(0,this.sectionStart),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(e)):vt(e)||(this.cbs.onattribend(0,this.sectionStart),this.handleAttrStart(e))}stateBeforeAttrValue(e){e===34?(this.state=19,this.sectionStart=this.index+1):e===39?(this.state=20,this.sectionStart=this.index+1):vt(e)||(this.sectionStart=this.index,this.state=21,this.stateInAttrValueNoQuotes(e))}handleInAttrValue(e,n){(e===n||this.fastForwardTo(n))&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(n===34?3:2,this.index+1),this.state=11)}stateInAttrValueDoubleQuotes(e){this.handleInAttrValue(e,34)}stateInAttrValueSingleQuotes(e){this.handleInAttrValue(e,39)}stateInAttrValueNoQuotes(e){vt(e)||e===62?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(1,this.index),this.state=11,this.stateBeforeAttrName(e)):(e===39||e===60||e===61||e===96)&&this.cbs.onerr(18,this.index)}stateBeforeDeclaration(e){e===91?(this.state=26,this.sequenceIndex=0):this.state=e===45?25:23}stateInDeclaration(e){(e===62||this.fastForwardTo(62))&&(this.state=1,this.sectionStart=this.index+1)}stateInProcessingInstruction(e){(e===62||this.fastForwardTo(62))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeComment(e){e===45?(this.state=28,this.currentSequence=qe.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=23}stateInSpecialComment(e){(e===62||this.fastForwardTo(62))&&(this.cbs.oncomment(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeSpecialS(e){e===qe.ScriptEnd[3]?this.startSpecial(qe.ScriptEnd,4):e===qe.StyleEnd[3]?this.startSpecial(qe.StyleEnd,4):(this.state=6,this.stateInTagName(e))}stateBeforeSpecialT(e){e===qe.TitleEnd[3]?this.startSpecial(qe.TitleEnd,4):e===qe.TextareaEnd[3]?this.startSpecial(qe.TextareaEnd,4):(this.state=6,this.stateInTagName(e))}startEntity(){}stateInEntity(){}parse(e){for(this.buffer=e;this.index<this.buffer.length;){const n=this.buffer.charCodeAt(this.index);switch(n===10&&this.state!==33&&this.newlines.push(this.index),this.state){case 1:{this.stateText(n);break}case 2:{this.stateInterpolationOpen(n);break}case 3:{this.stateInterpolation(n);break}case 4:{this.stateInterpolationClose(n);break}case 31:{this.stateSpecialStartSequence(n);break}case 32:{this.stateInRCDATA(n);break}case 26:{this.stateCDATASequence(n);break}case 19:{this.stateInAttrValueDoubleQuotes(n);break}case 12:{this.stateInAttrName(n);break}case 13:{this.stateInDirName(n);break}case 14:{this.stateInDirArg(n);break}case 15:{this.stateInDynamicDirArg(n);break}case 16:{this.stateInDirModifier(n);break}case 28:{this.stateInCommentLike(n);break}case 27:{this.stateInSpecialComment(n);break}case 11:{this.stateBeforeAttrName(n);break}case 6:{this.stateInTagName(n);break}case 34:{this.stateInSFCRootTagName(n);break}case 9:{this.stateInClosingTagName(n);break}case 5:{this.stateBeforeTagName(n);break}case 17:{this.stateAfterAttrName(n);break}case 20:{this.stateInAttrValueSingleQuotes(n);break}case 18:{this.stateBeforeAttrValue(n);break}case 8:{this.stateBeforeClosingTagName(n);break}case 10:{this.stateAfterClosingTagName(n);break}case 29:{this.stateBeforeSpecialS(n);break}case 30:{this.stateBeforeSpecialT(n);break}case 21:{this.stateInAttrValueNoQuotes(n);break}case 7:{this.stateInSelfClosingTag(n);break}case 23:{this.stateInDeclaration(n);break}case 22:{this.stateBeforeDeclaration(n);break}case 25:{this.stateBeforeComment(n);break}case 24:{this.stateInProcessingInstruction(n);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 e=this.buffer.length;this.sectionStart>=e||(this.state===28?this.currentSequence===qe.CdataEnd?this.cbs.oncdata(this.sectionStart,e):this.cbs.oncomment(this.sectionStart,e):this.state===6||this.state===11||this.state===18||this.state===17||this.state===12||this.state===13||this.state===14||this.state===15||this.state===16||this.state===20||this.state===19||this.state===21||this.state===9||this.cbs.ontext(this.sectionStart,e))}emitCodePoint(e,n){}}const ks={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"},Ws={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:t=>`.sync modifier for v-bind has been removed. Use v-model with argument instead. \`v-bind:${t}.sync\` should be changed to \`v-model:${t}\`.`,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 Oo(t,{compatConfig:e}){const n=e&&e[t];return t==="MODE"?n||3:n}function en(t,e){const n=Oo("MODE",e),o=Oo(t,e);return n===3?o===!0:o!==!1}function En(t,e,n,...o){return en(t,e)}function Ys(t,e,n,...o){if(Oo(t,e)==="suppress-warning")return;const{message:s,link:r}=Ws[t],a=`(deprecation ${t}) ${typeof s=="function"?s(...o):s}${r?`
|
|
6
|
+
Details: ${r}`:""}`,l=new SyntaxError(a);l.code=t,n&&(l.loc=n),e.onWarn(l)}function Go(t){throw t}function ma(t){}function Ae(t,e,n,o){const i=`https://vuejs.org/error-reference/#compiler-${t}`,s=new SyntaxError(String(i));return s.code=t,s.loc=e,s}const Js={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__"},zs={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 Qs(t,e,n=!1,o=[],i=Object.create(null)){}function Zs(t,e,n){return!1}function _s(t,e){if(t&&(t.type==="ObjectProperty"||t.type==="ArrayPattern")){let n=e.length;for(;n--;){const o=e[n];if(o.type==="AssignmentExpression")return!0;if(o.type!=="ObjectProperty"&&!o.type.endsWith("Pattern"))break}}return!1}function qs(t){let e=t.length;for(;e--;){const n=t[e];if(n.type==="NewExpression")return!0;if(n.type!=="MemberExpression")break}return!1}function el(t,e){for(const n of t.params)for(const o of At(n))e(o)}function va(t,e){const n=t.type==="SwitchCase"?t.consequent:t.body;for(const o of n)if(o.type==="VariableDeclaration"){if(o.declare)continue;for(const i of o.declarations)for(const s of At(i.id))e(s)}else if(o.type==="FunctionDeclaration"||o.type==="ClassDeclaration"){if(o.declare||!o.id)continue;e(o.id)}else tl(o)?nl(o,!0,e):o.type==="SwitchStatement"&&rl(o,!0,e)}function tl(t){return t.type==="ForOfStatement"||t.type==="ForInStatement"||t.type==="ForStatement"}function nl(t,e,n){const o=t.type==="ForStatement"?t.init:t.left;if(o&&o.type==="VariableDeclaration"&&(o.kind==="var"?e:!e))for(const i of o.declarations)for(const s of At(i.id))n(s)}function rl(t,e,n){for(const o of t.cases){for(const i of o.consequent)if(i.type==="VariableDeclaration"&&(i.kind==="var"?e:!e))for(const s of i.declarations)for(const r of At(s.id))n(r);va(o,n)}}function At(t,e=[]){switch(t.type){case"Identifier":e.push(t);break;case"MemberExpression":let n=t;for(;n.type==="MemberExpression";)n=n.object;e.push(n);break;case"ObjectPattern":for(const o of t.properties)o.type==="RestElement"?At(o.argument,e):At(o.value,e);break;case"ArrayPattern":t.elements.forEach(o=>{o&&At(o,e)});break;case"RestElement":At(t.argument,e);break;case"AssignmentPattern":At(t.left,e);break}return e}const ol=t=>/Function(?:Expression|Declaration)$|Method$/.test(t.type),ga=t=>t&&(t.type==="ObjectProperty"||t.type==="ObjectMethod")&&!t.computed,il=(t,e)=>ga(e)&&e.key===t,ya=["TSAsExpression","TSTypeAssertion","TSNonNullExpression","TSInstantiationExpression","TSSatisfiesExpression"];function Ea(t){return ya.includes(t.type)?Ea(t.expression):t}const nt=t=>t.type===4&&t.isStatic;function Ho(t){switch(t){case"Teleport":case"teleport":return mn;case"Suspense":case"suspense":return Xr;case"KeepAlive":case"keep-alive":return kn;case"BaseTransition":case"base-transition":return Fo}}const al=/^$|^\d|[^\$\w\xA0-\uFFFF]/,_n=t=>!al.test(t),Ko=/[A-Za-z_$\xA0-\uFFFF]/,sl=/[\.\?\w$\xA0-\uFFFF]/,ll=/\s+[.[]\s*|\s*[.[]\s+/g,Sa=t=>t.type===4?t.content:t.loc.source,ba=t=>{const e=Sa(t).trim().replace(ll,a=>a.trim());let n=0,o=[],i=0,s=0,r=null;for(let a=0;a<e.length;a++){const l=e.charAt(a);switch(n){case 0:if(l==="[")o.push(n),n=1,i++;else if(l==="(")o.push(n),n=2,s++;else if(!(a===0?Ko:sl).test(l))return!1;break;case 1:l==="'"||l==='"'||l==="`"?(o.push(n),n=3,r=l):l==="["?i++:l==="]"&&(--i||(n=o.pop()));break;case 2:if(l==="'"||l==='"'||l==="`")o.push(n),n=3,r=l;else if(l==="(")s++;else if(l===")"){if(a===e.length-1)return!1;--s||(n=o.pop())}break;case 3:l===r&&(n=o.pop(),r=null);break}}return!i&&!s},cl=jn,ko=ba,ul=/^\s*(?:async\s*)?(?:\([^)]*?\)|[\w$_]+)\s*(?::[^=]+)?=>|^\s*(?:async\s+)?function(?:\s+[\w$]+)?\s*\(/,Ta=t=>ul.test(Sa(t)),fl=jn,Oa=Ta;function dl(t,e,n=e.length){return Ia({offset:t.offset,line:t.line,column:t.column},e,n)}function Ia(t,e,n=e.length){let o=0,i=-1;for(let s=0;s<n;s++)e.charCodeAt(s)===10&&(o++,i=s);return t.offset+=n,t.line+=o,t.column=i===-1?t.column+n:n-i,t}function pl(t,e){if(!t)throw new Error(e||"unexpected compiler condition")}function st(t,e,n=!1){for(let o=0;o<t.props.length;o++){const i=t.props[o];if(i.type===7&&(n||i.exp)&&(Ge(e)?i.name===e:e.test(i.name)))return i}}function qn(t,e,n=!1,o=!1){for(let i=0;i<t.props.length;i++){const s=t.props[i];if(s.type===6){if(n)continue;if(s.name===e&&(s.value||o))return s}else if(s.name==="bind"&&(s.exp||o)&&tn(s.arg,e))return s}}function tn(t,e){return!!(t&&nt(t)&&t.content===e)}function Na(t){return t.props.some(e=>e.type===7&&e.name==="bind"&&(!e.arg||e.arg.type!==4||!e.arg.isStatic))}function vr(t){return t.type===5||t.type===2}function Io(t){return t.type===7&&t.name==="pre"}function Wo(t){return t.type===7&&t.name==="slot"}function Sn(t){return t.type===1&&t.tagType===3}function Jn(t){return t.type===1&&t.tagType===2}const hl=new Set([gn,In]);function Yo(t,e=[]){if(t&&!Ge(t)&&t.type===14){const n=t.callee;if(!Ge(n)&&hl.has(n))return Yo(t.arguments[0],e.concat(t))}return[t,e]}function zn(t,e,n){if(t.type!==13&&ml(t,e))return;let o,i=t.type===13?t.props:t.arguments[2],s=[],r;if(i&&!Ge(i)&&i.type===14){const a=Yo(i);i=a[0],s=a[1],r=s[s.length-1]}if(i==null||Ge(i))o=gt([e]);else if(i.type===14){const a=i.arguments[0];!Ge(a)&&a.type===15?No(e,a)||a.properties.unshift(e):i.callee===qr?o=We(n.helper(Wn),[gt([e]),i]):i.arguments.unshift(gt([e])),!o&&(o=i)}else i.type===15?(No(e,i)||i.properties.unshift(e),o=i):(o=We(n.helper(Wn),[gt([e]),i]),r&&r.callee===In&&(r=s[s.length-2]));t.type===13?r?r.arguments[0]=o:t.props=o:r?r.arguments[0]=o:t.arguments[2]=o}function ml(t,e){var n,o,i;if(e.key.type!==4||e.key.content!=="key")return!1;const s=t.arguments[2];if(s&&!Ge(s)){const[r]=Yo(s);if(r&&!Ge(r)&&r.type===15&&No(e,r))return!0}return(n=t.arguments)[2]||(n[2]="{}"),(o=t.arguments)[3]||(o[3]="undefined"),(i=t.arguments)[4]||(i[4]="undefined"),t.arguments[5]=e.value,!0}function No(t,e){let n=!1;if(t.key.type===4){const o=t.key.content;n=e.properties.some(i=>i.key.type===4&&i.key.content===o)}return n}function bn(t,e){return`_${e}_${t.replace(/[^\w]/g,(n,o)=>n==="-"?"_":t.charCodeAt(o).toString())}`}function Ot(t,e){if(!t||Object.keys(e).length===0)return!1;switch(t.type){case 1:for(let n=0;n<t.props.length;n++){const o=t.props[n];if(o.type===7&&(Ot(o.arg,e)||Ot(o.exp,e)))return!0}return t.children.some(n=>Ot(n,e));case 11:return Ot(t.source,e)?!0:t.children.some(n=>Ot(n,e));case 9:return t.branches.some(n=>Ot(n,e));case 10:return Ot(t.condition,e)?!0:t.children.some(n=>Ot(n,e));case 4:return!t.isStatic&&_n(t.content)&&!!e[t.content];case 8:return t.children.some(n=>Zi(n)&&Ot(n,e));case 5:case 12:return Ot(t.content,e);case 2:case 3:case 20:return!1;default:return!1}}function Ca(t){return t.type===14&&t.callee===to?t.arguments[1].returns:t}const Aa=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/;function Jo(t){for(let e=0;e<t.length;e++)if(!vt(t.charCodeAt(e)))return!1;return!0}function ro(t){return t.type===2&&Jo(t.content)||t.type===12&&ro(t.content)}function zo(t){return t.type===3||ro(t)}const xa={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:ir,isPreTag:ir,isIgnoreNewlineTag:ir,isCustomElement:ir,onError:Go,onWarn:ma,comments:!1,prefixIdentifiers:!1};let ye=xa,Qn=null,Ft="",tt=null,pe=null,dt="",Mt=-1,Zt=-1,Qo=0,Bt=!1,Co=null;const Pe=[],Ue=new Ks(Pe,{onerr:Dt,ontext(t,e){sr(Qe(t,e),t,e)},ontextentity(t,e,n){sr(t,e,n)},oninterpolation(t,e){if(Bt)return sr(Qe(t,e),t,e);let n=t+Ue.delimiterOpen.length,o=e-Ue.delimiterClose.length;for(;vt(Ft.charCodeAt(n));)n++;for(;vt(Ft.charCodeAt(o-1));)o--;let i=Qe(n,o);i.includes("&")&&(i=ye.decodeEntities(i,!1)),Ao({type:5,content:yr(i,!1,Be(n,o)),loc:Be(t,e)})},onopentagname(t,e){const n=Qe(t,e);tt={type:1,tag:n,ns:ye.getNamespace(n,Pe[0],ye.ns),tagType:0,props:[],children:[],loc:Be(t-1,e),codegenNode:void 0}},onopentagend(t){Ii(t)},onclosetag(t,e){const n=Qe(t,e);if(!ye.isVoidTag(n)){let o=!1;for(let i=0;i<Pe.length;i++)if(Pe[i].tag.toLowerCase()===n.toLowerCase()){o=!0,i>0&&Dt(24,Pe[0].loc.start.offset);for(let r=0;r<=i;r++){const a=Pe.shift();gr(a,e,r<i)}break}o||Dt(23,Pa(t,60))}},onselfclosingtag(t){const e=tt.tag;tt.isSelfClosing=!0,Ii(t),Pe[0]&&Pe[0].tag===e&&gr(Pe.shift(),t)},onattribname(t,e){pe={type:6,name:Qe(t,e),nameLoc:Be(t,e),value:void 0,loc:Be(t)}},ondirname(t,e){const n=Qe(t,e),o=n==="."||n===":"?"bind":n==="@"?"on":n==="#"?"slot":n.slice(2);if(!Bt&&o===""&&Dt(26,t),Bt||o==="")pe={type:6,name:n,nameLoc:Be(t,e),value:void 0,loc:Be(t)};else if(pe={type:7,name:o,rawName:n,exp:void 0,arg:void 0,modifiers:n==="."?[ie("prop")]:[],loc:Be(t)},o==="pre"){Bt=Ue.inVPre=!0,Co=tt;const i=tt.props;for(let s=0;s<i.length;s++)i[s].type===7&&(i[s]=Nl(i[s]))}},ondirarg(t,e){if(t===e)return;const n=Qe(t,e);if(Bt&&!Io(pe))pe.name+=n,qt(pe.nameLoc,e);else{const o=n[0]!=="[";pe.arg=yr(o?n:n.slice(1,-1),o,Be(t,e),o?3:0)}},ondirmodifier(t,e){const n=Qe(t,e);if(Bt&&!Io(pe))pe.name+="."+n,qt(pe.nameLoc,e);else if(pe.name==="slot"){const o=pe.arg;o&&(o.content+="."+n,qt(o.loc,e))}else{const o=ie(n,!0,Be(t,e));pe.modifiers.push(o)}},onattribdata(t,e){dt+=Qe(t,e),Mt<0&&(Mt=t),Zt=e},onattribentity(t,e,n){dt+=t,Mt<0&&(Mt=e),Zt=n},onattribnameend(t){const e=pe.loc.start.offset,n=Qe(e,t);pe.type===7&&(pe.rawName=n),tt.props.some(o=>(o.type===7?o.rawName:o.name)===n)&&Dt(2,e)},onattribend(t,e){if(tt&&pe){if(qt(pe.loc,e),t!==0)if(dt.includes("&")&&(dt=ye.decodeEntities(dt,!0)),pe.type===6)pe.name==="class"&&(dt=Da(dt).trim()),t===1&&!dt&&Dt(13,e),pe.value={type:2,content:dt,loc:t===1?Be(Mt,Zt):Be(Mt-1,Zt+1)},Ue.inSFCRoot&&tt.tag==="template"&&pe.name==="lang"&&dt&&dt!=="html"&&Ue.enterRCDATA(Rr("</template"),0);else{let n=0;pe.exp=yr(dt,!1,Be(Mt,Zt),0,n),pe.name==="for"&&(pe.forParseResult=gl(pe.exp));let o=-1;pe.name==="bind"&&(o=pe.modifiers.findIndex(i=>i.content==="sync"))>-1&&En("COMPILER_V_BIND_SYNC",ye,pe.loc,pe.arg.loc.source)&&(pe.name="model",pe.modifiers.splice(o,1))}(pe.type!==7||pe.name!=="pre")&&tt.props.push(pe)}dt="",Mt=Zt=-1},oncomment(t,e){ye.comments&&Ao({type:3,content:Qe(t,e),loc:Be(t-4,e+3)})},onend(){const t=Ft.length;for(let e=0;e<Pe.length;e++)gr(Pe[e],t-1),Dt(24,Pe[e].loc.start.offset)},oncdata(t,e){(Pe[0]?Pe[0].ns:ye.ns)!==0?sr(Qe(t,e),t,e):Dt(1,t-9)},onprocessinginstruction(t){(Pe[0]?Pe[0].ns:ye.ns)===0&&Dt(21,t-1)}}),Oi=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,vl=/^\(|\)$/g;function gl(t){const e=t.loc,n=t.content,o=n.match(Aa);if(!o)return;const[,i,s]=o,r=(u,d,p=!1)=>{const m=e.start.offset+d,h=m+u.length;return yr(u,!1,Be(m,h),0,p?1:0)},a={source:r(s.trim(),n.indexOf(s,i.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let l=i.trim().replace(vl,"").trim();const c=i.indexOf(l),f=l.match(Oi);if(f){l=l.replace(Oi,"").trim();const u=f[1].trim();let d;if(u&&(d=n.indexOf(u,c+l.length),a.key=r(u,d,!0)),f[2]){const p=f[2].trim();p&&(a.index=r(p,n.indexOf(p,a.key?d+u.length:c+l.length),!0))}}return l&&(a.value=r(l,c,!0)),a}function Qe(t,e){return Ft.slice(t,e)}function Ii(t){Ue.inSFCRoot&&(tt.innerLoc=Be(t+1,t+1)),Ao(tt);const{tag:e,ns:n}=tt;n===0&&ye.isPreTag(e)&&Qo++,ye.isVoidTag(e)?gr(tt,t):(Pe.unshift(tt),(n===1||n===2)&&(Ue.inXML=!0)),tt=null}function sr(t,e,n){{const s=Pe[0]&&Pe[0].tag;s!=="script"&&s!=="style"&&t.includes("&")&&(t=ye.decodeEntities(t,!1))}const o=Pe[0]||Qn,i=o.children[o.children.length-1];i&&i.type===2?(i.content+=t,qt(i.loc,n)):o.children.push({type:2,content:t,loc:Be(e,n)})}function gr(t,e,n=!1){n?qt(t.loc,Pa(e,60)):qt(t.loc,yl(e,62)+1),Ue.inSFCRoot&&(t.children.length?t.innerLoc.end=Lt({},t.children[t.children.length-1].loc.end):t.innerLoc.end=Lt({},t.innerLoc.start),t.innerLoc.source=Qe(t.innerLoc.start.offset,t.innerLoc.end.offset));const{tag:o,ns:i,children:s}=t;if(Bt||(o==="slot"?t.tagType=2:Ni(t)?t.tagType=3:Sl(t)&&(t.tagType=1)),Ue.inRCDATA||(t.children=Ra(s)),i===0&&ye.isIgnoreNewlineTag(o)){const r=s[0];r&&r.type===2&&(r.content=r.content.replace(/^\r?\n/,""))}i===0&&ye.isPreTag(o)&&Qo--,Co===t&&(Bt=Ue.inVPre=!1,Co=null),Ue.inXML&&(Pe[0]?Pe[0].ns:ye.ns)===0&&(Ue.inXML=!1);{const r=t.props;if(!Ue.inSFCRoot&&en("COMPILER_NATIVE_TEMPLATE",ye)&&t.tag==="template"&&!Ni(t)){const l=Pe[0]||Qn,c=l.children.indexOf(t);l.children.splice(c,1,...t.children)}const a=r.find(l=>l.type===6&&l.name==="inline-template");a&&En("COMPILER_INLINE_TEMPLATE",ye,a.loc)&&t.children.length&&(a.value={type:2,content:Qe(t.children[0].loc.start.offset,t.children[t.children.length-1].loc.end.offset),loc:a.loc})}}function yl(t,e){let n=t;for(;Ft.charCodeAt(n)!==e&&n<Ft.length-1;)n++;return n}function Pa(t,e){let n=t;for(;Ft.charCodeAt(n)!==e&&n>=0;)n--;return n}const El=new Set(["if","else","else-if","for","slot"]);function Ni({tag:t,props:e}){if(t==="template"){for(let n=0;n<e.length;n++)if(e[n].type===7&&El.has(e[n].name))return!0}return!1}function Sl({tag:t,props:e}){if(ye.isCustomElement(t))return!1;if(t==="component"||bl(t.charCodeAt(0))||Ho(t)||ye.isBuiltInComponent&&ye.isBuiltInComponent(t)||ye.isNativeTag&&!ye.isNativeTag(t))return!0;for(let n=0;n<e.length;n++){const o=e[n];if(o.type===6){if(o.name==="is"&&o.value){if(o.value.content.startsWith("vue:"))return!0;if(En("COMPILER_IS_ON_ELEMENT",ye,o.loc))return!0}}else if(o.name==="bind"&&tn(o.arg,"is")&&En("COMPILER_IS_ON_ELEMENT",ye,o.loc))return!0}return!1}function bl(t){return t>64&&t<91}const Tl=/\r\n/g;function Ra(t){const e=ye.whitespace!=="preserve";let n=!1;for(let o=0;o<t.length;o++){const i=t[o];if(i.type===2)if(Qo)i.content=i.content.replace(Tl,`
|
|
8
|
+
`);else if(Jo(i.content)){const s=t[o-1]&&t[o-1].type,r=t[o+1]&&t[o+1].type;!s||!r||e&&(s===3&&(r===3||r===1)||s===1&&(r===3||r===1&&Ol(i.content)))?(n=!0,t[o]=null):i.content=" "}else e&&(i.content=Da(i.content))}return n?t.filter(Boolean):t}function Ol(t){for(let e=0;e<t.length;e++){const n=t.charCodeAt(e);if(n===10||n===13)return!0}return!1}function Da(t){let e="",n=!1;for(let o=0;o<t.length;o++)vt(t.charCodeAt(o))?n||(e+=" ",n=!0):(e+=t[o],n=!1);return e}function Ao(t){(Pe[0]||Qn).children.push(t)}function Be(t,e){return{start:Ue.getPos(t),end:e==null?e:Ue.getPos(e),source:e==null?e:Qe(t,e)}}function Il(t){return Be(t.start.offset,t.end.offset)}function qt(t,e){t.end=Ue.getPos(e),t.source=Qe(t.start.offset,e)}function Nl(t){const e={type:6,name:t.rawName,nameLoc:Be(t.loc.start.offset,t.loc.start.offset+t.rawName.length),value:void 0,loc:t.loc};if(t.exp){const n=t.exp.loc;n.end.offset<t.loc.end.offset&&(n.start.offset--,n.start.column--,n.end.offset++,n.end.column++),e.value={type:2,content:t.exp.content,loc:n}}return e}function yr(t,e=!1,n,o=0,i=0){return ie(t,e,n,o)}function Dt(t,e,n){ye.onError(Ae(t,Be(e,e)))}function Cl(){Ue.reset(),tt=null,pe=null,dt="",Mt=-1,Zt=-1,Pe.length=0}function Zo(t,e){if(Cl(),Ft=t,ye=Lt({},xa),e){let i;for(i in e)e[i]!=null&&(ye[i]=e[i])}Ue.mode=ye.parseMode==="html"?1:ye.parseMode==="sfc"?2:0,Ue.inXML=ye.ns===1||ye.ns===2;const n=e&&e.delimiters;n&&(Ue.delimiterOpen=Rr(n[0]),Ue.delimiterClose=Rr(n[1]));const o=Qn=da([],t);return Ue.parse(Ft),o.loc=Be(0,t.length),o.children=Ra(o.children),Qn=null,o}function Al(t,e){Er(t,void 0,e,!!Ma(t))}function Ma(t){const e=t.children.filter(n=>n.type!==3);return e.length===1&&e[0].type===1&&!Jn(e[0])?e[0]:null}function Er(t,e,n,o=!1,i=!1){const{children:s}=t,r=[];for(let f=0;f<s.length;f++){const u=s[f];if(u.type===1&&u.tagType===0){const d=o?0:pt(u,n);if(d>0){if(d>=2){u.codegenNode.patchFlag=-1,r.push(u);continue}}else{const p=u.codegenNode;if(p.type===13){const m=p.patchFlag;if((m===void 0||m===512||m===1)&&wa(u,n)>=2){const h=Fa(u);h&&(p.props=n.hoist(h))}p.dynamicProps&&(p.dynamicProps=n.hoist(p.dynamicProps))}}}else if(u.type===12&&(o?0:pt(u,n))>=2){u.codegenNode.type===14&&u.codegenNode.arguments.length>0&&u.codegenNode.arguments.push("-1"),r.push(u);continue}if(u.type===1){const d=u.tagType===1;d&&n.scopes.vSlot++,Er(u,t,n,!1,i),d&&n.scopes.vSlot--}else if(u.type===11)Er(u,t,n,u.children.length===1,!0);else if(u.type===9)for(let d=0;d<u.branches.length;d++)Er(u.branches[d],t,n,u.branches[d].children.length===1,i)}let a=!1;if(r.length===s.length&&t.type===1){if(t.tagType===0&&t.codegenNode&&t.codegenNode.type===13&&Ht(t.codegenNode.children))t.codegenNode.children=l(Yt(t.codegenNode.children)),a=!0;else if(t.tagType===1&&t.codegenNode&&t.codegenNode.type===13&&t.codegenNode.children&&!Ht(t.codegenNode.children)&&t.codegenNode.children.type===15){const f=c(t.codegenNode,"default");f&&(f.returns=l(Yt(f.returns)),a=!0)}else if(t.tagType===3&&e&&e.type===1&&e.tagType===1&&e.codegenNode&&e.codegenNode.type===13&&e.codegenNode.children&&!Ht(e.codegenNode.children)&&e.codegenNode.children.type===15){const f=st(t,"slot",!0),u=f&&f.arg&&c(e.codegenNode,f.arg);u&&(u.returns=l(Yt(u.returns)),a=!0)}}if(!a)for(const f of r)f.codegenNode=n.cache(f.codegenNode);function l(f){const u=n.cache(f);return u.needArraySpread=!0,u}function c(f,u){if(f.children&&!Ht(f.children)&&f.children.type===15){const d=f.children.properties.find(p=>p.key===u||p.key.content===u);return d&&d.value}}r.length&&n.transformHoist&&n.transformHoist(s,n,t)}function pt(t,e){const{constantCache:n}=e;switch(t.type){case 1:if(t.tagType!==0)return 0;const o=n.get(t);if(o!==void 0)return o;const i=t.codegenNode;if(i.type!==13||i.isBlock&&t.tag!=="svg"&&t.tag!=="foreignObject"&&t.tag!=="math")return 0;if(i.patchFlag===void 0){let r=3;const a=wa(t,e);if(a===0)return n.set(t,0),0;a<r&&(r=a);for(let l=0;l<t.children.length;l++){const c=pt(t.children[l],e);if(c===0)return n.set(t,0),0;c<r&&(r=c)}if(r>1)for(let l=0;l<t.props.length;l++){const c=t.props[l];if(c.type===7&&c.name==="bind"&&c.exp){const f=pt(c.exp,e);if(f===0)return n.set(t,0),0;f<r&&(r=f)}}if(i.isBlock){for(let l=0;l<t.props.length;l++)if(t.props[l].type===7)return n.set(t,0),0;e.removeHelper(Jt),e.removeHelper(sn(e.inSSR,i.isComponent)),i.isBlock=!1,e.helper(an(e.inSSR,i.isComponent))}return n.set(t,r),r}else return n.set(t,0),0;case 2:case 3:return 3;case 9:case 11:case 10:return 0;case 5:case 12:return pt(t.content,e);case 4:return t.constType;case 8:let s=3;for(let r=0;r<t.children.length;r++){const a=t.children[r];if(Ge(a)||wo(a))continue;const l=pt(a,e);if(l===0)return 0;l<s&&(s=l)}return s;case 20:return 2;default:return 0}}const xl=new Set([Zr,_r,gn,In]);function La(t,e){if(t.type===14&&!Ge(t.callee)&&xl.has(t.callee)){const n=t.arguments[0];if(n.type===4)return pt(n,e);if(n.type===14)return La(n,e)}return 0}function wa(t,e){let n=3;const o=Fa(t);if(o&&o.type===15){const{properties:i}=o;for(let s=0;s<i.length;s++){const{key:r,value:a}=i[s],l=pt(r,e);if(l===0)return l;l<n&&(n=l);let c;if(a.type===4?c=pt(a,e):a.type===14?c=La(a,e):c=0,c===0)return c;c<n&&(n=c)}}return n}function Fa(t){const e=t.codegenNode;if(e.type===13)return e.props}function Va(t,{filename:e="",prefixIdentifiers:n=!1,hoistStatic:o=!1,hmr:i=!1,cacheHandlers:s=!1,nodeTransforms:r=[],directiveTransforms:a={},transformHoist:l=null,isBuiltInComponent:c=jn,isCustomElement:f=jn,expressionPlugins:u=[],scopeId:d=null,slotted:p=!0,ssr:m=!1,inSSR:h=!1,ssrCssVars:v="",bindingMetadata:g=Ss,inline:y=!1,isTS:O=!1,onError:b=Go,onWarn:A=ma,compatConfig:C}){const K=e.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),M={filename:e,selfName:K&&Qi(wt(K[1])),prefixIdentifiers:n,hoistStatic:o,hmr:i,cacheHandlers:s,nodeTransforms:r,directiveTransforms:a,transformHoist:l,isBuiltInComponent:c,isCustomElement:f,expressionPlugins:u,scopeId:d,slotted:p,ssr:m,inSSR:h,ssrCssVars:v,bindingMetadata:g,inline:y,isTS:O,onError:b,onWarn:A,compatConfig:C,root:t,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:t,childIndex:0,inVOnce:!1,helper(I){const R=M.helpers.get(I)||0;return M.helpers.set(I,R+1),I},removeHelper(I){const R=M.helpers.get(I);if(R){const j=R-1;j?M.helpers.set(I,j):M.helpers.delete(I)}},helperString(I){return`_${rn[M.helper(I)]}`},replaceNode(I){M.parent.children[M.childIndex]=M.currentNode=I},removeNode(I){const R=M.parent.children,j=I?R.indexOf(I):M.currentNode?M.childIndex:-1;!I||I===M.currentNode?(M.currentNode=null,M.onNodeRemoved()):M.childIndex>j&&(M.childIndex--,M.onNodeRemoved()),M.parent.children.splice(j,1)},onNodeRemoved:jn,addIdentifiers(I){},removeIdentifiers(I){},hoist(I){Ge(I)&&(I=ie(I)),M.hoists.push(I);const R=ie(`_hoisted_${M.hoists.length}`,!1,I.loc,2);return R.hoisted=I,R},cache(I,R=!1,j=!1){const Y=pa(M.cached.length,I,R,j);return M.cached.push(Y),Y}};return M.filters=new Set,M}function Ua(t,e){const n=Va(t,e);er(t,n),e.hoistStatic&&Al(t,n),e.ssr||Pl(t,n),t.helpers=new Set([...n.helpers.keys()]),t.components=[...n.components],t.directives=[...n.directives],t.imports=n.imports,t.hoists=n.hoists,t.temps=n.temps,t.cached=n.cached,t.transformed=!0,t.filters=[...n.filters]}function Pl(t,e){const{helper:n}=e,{children:o}=t;if(o.length===1){const i=Ma(t);if(i&&i.codegenNode){const s=i.codegenNode;s.type===13&&no(s,e),t.codegenNode=s}else t.codegenNode=o[0]}else if(o.length>1){let i=64;t.codegenNode=yn(e,n(vn),void 0,t.children,i,void 0,void 0,!0,void 0,!1)}}function Rl(t,e){let n=0;const o=()=>{n--};for(;n<t.children.length;n++){const i=t.children[n];Ge(i)||(e.grandParent=e.parent,e.parent=t,e.childIndex=n,e.onNodeRemoved=o,er(i,e))}}function er(t,e){e.currentNode=t;const{nodeTransforms:n}=e,o=[];for(let s=0;s<n.length;s++){const r=n[s](t,e);if(r&&(Ht(r)?o.push(...r):o.push(r)),e.currentNode)t=e.currentNode;else return}switch(t.type){case 3:e.ssr||e.helper(On);break;case 5:e.ssr||e.helper(Zn);break;case 9:for(let s=0;s<t.branches.length;s++)er(t.branches[s],e);break;case 10:case 11:case 1:case 0:Rl(t,e);break}e.currentNode=t;let i=o.length;for(;i--;)o[i]()}function _o(t,e){const n=Ge(t)?o=>o===t:o=>t.test(o);return(o,i)=>{if(o.type===1){const{props:s}=o;if(o.tagType===3&&s.some(Wo))return;const r=[];for(let a=0;a<s.length;a++){const l=s[a];if(l.type===7&&n(l.name)){s.splice(a,1),a--;const c=e(o,l,i);c&&r.push(c)}}return r}}}const oo="/*@__PURE__*/",$a=t=>`${rn[t]}: _${rn[t]}`;function Dl(t,{mode:e="function",prefixIdentifiers:n=e==="module",sourceMap:o=!1,filename:i="template.vue.html",scopeId:s=null,optimizeImports:r=!1,runtimeGlobalName:a="Vue",runtimeModuleName:l="vue",ssrRuntimeModuleName:c="vue/server-renderer",ssr:f=!1,isTS:u=!1,inSSR:d=!1}){const p={mode:e,prefixIdentifiers:n,sourceMap:o,filename:i,scopeId:s,optimizeImports:r,runtimeGlobalName:a,runtimeModuleName:l,ssrRuntimeModuleName:c,ssr:f,isTS:u,inSSR:d,source:t.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(h){return`_${rn[h]}`},push(h,v=-2,g){p.code+=h},indent(){m(++p.indentLevel)},deindent(h=!1){h?--p.indentLevel:m(--p.indentLevel)},newline(){m(p.indentLevel)}};function m(h){p.push(`
|
|
9
|
+
`+" ".repeat(h),0)}return p}function ja(t,e={}){const n=Dl(t,e);e.onContextCreated&&e.onContextCreated(n);const{mode:o,push:i,prefixIdentifiers:s,indent:r,deindent:a,newline:l,scopeId:c,ssr:f}=n,u=Array.from(t.helpers),d=u.length>0,p=!s&&o!=="module";Ml(t,n);const h=f?"ssrRender":"render",g=(f?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ");if(i(`function ${h}(${g}) {`),r(),p&&(i("with (_ctx) {"),r(),d&&(i(`const { ${u.map($a).join(", ")} } = _Vue
|
|
10
|
+
`,-1),l())),t.components.length&&(uo(t.components,"component",n),(t.directives.length||t.temps>0)&&l()),t.directives.length&&(uo(t.directives,"directive",n),t.temps>0&&l()),t.filters&&t.filters.length&&(l(),uo(t.filters,"filter",n),l()),t.temps>0){i("let ");for(let y=0;y<t.temps;y++)i(`${y>0?", ":""}_temp${y}`)}return(t.components.length||t.directives.length||t.temps)&&(i(`
|
|
11
|
+
`,0),l()),f||i("return "),t.codegenNode?ot(t.codegenNode,n):i("null"),p&&(a(),i("}")),a(),i("}"),{ast:t,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}function Ml(t,e){const{ssr:n,prefixIdentifiers:o,push:i,newline:s,runtimeModuleName:r,runtimeGlobalName:a,ssrRuntimeModuleName:l}=e,c=a,f=Array.from(t.helpers);if(f.length>0&&(i(`const _Vue = ${c}
|
|
12
|
+
`,-1),t.hoists.length)){const u=[Gr,Hr,On,Kr,$o].filter(d=>f.includes(d)).map($a).join(", ");i(`const { ${u} } = _Vue
|
|
13
|
+
`,-1)}Ll(t.hoists,e),s(),i("return ")}function uo(t,e,{helper:n,push:o,newline:i,isTS:s}){const r=n(e==="filter"?Jr:e==="component"?kr:Yr);for(let a=0;a<t.length;a++){let l=t[a];const c=l.endsWith("__self");c&&(l=l.slice(0,-6)),o(`const ${bn(l,e)} = ${r}(${JSON.stringify(l)}${c?", true":""})${s?"!":""}`),a<t.length-1&&i()}}function Ll(t,e){if(!t.length)return;e.pure=!0;const{push:n,newline:o}=e;o();for(let i=0;i<t.length;i++){const s=t[i];s&&(n(`const _hoisted_${i+1} = `),ot(s,e),o())}e.pure=!1}function qo(t,e){const n=t.length>3||!1;e.push("["),n&&e.indent(),tr(t,e,n),n&&e.deindent(),e.push("]")}function tr(t,e,n=!1,o=!0){const{push:i,newline:s}=e;for(let r=0;r<t.length;r++){const a=t[r];Ge(a)?i(a,-3):Ht(a)?qo(a,e):ot(a,e),r<t.length-1&&(n?(o&&i(","),s()):o&&i(", "))}}function ot(t,e){if(Ge(t)){e.push(t,-3);return}if(wo(t)){e.push(e.helper(t));return}switch(t.type){case 1:case 9:case 11:ot(t.codegenNode,e);break;case 2:wl(t,e);break;case 4:Ba(t,e);break;case 5:Fl(t,e);break;case 12:ot(t.codegenNode,e);break;case 8:Xa(t,e);break;case 3:Ul(t,e);break;case 13:$l(t,e);break;case 14:Bl(t,e);break;case 15:Xl(t,e);break;case 17:Gl(t,e);break;case 18:Hl(t,e);break;case 19:Kl(t,e);break;case 20:kl(t,e);break;case 21:tr(t.body,e,!0,!1);break}}function wl(t,e){e.push(JSON.stringify(t.content),-3,t)}function Ba(t,e){const{content:n,isStatic:o}=t;e.push(o?JSON.stringify(n):n,-3,t)}function Fl(t,e){const{push:n,helper:o,pure:i}=e;i&&n(oo),n(`${o(Zn)}(`),ot(t.content,e),n(")")}function Xa(t,e){for(let n=0;n<t.children.length;n++){const o=t.children[n];Ge(o)?e.push(o,-3):ot(o,e)}}function Vl(t,e){const{push:n}=e;if(t.type===8)n("["),Xa(t,e),n("]");else if(t.isStatic){const o=_n(t.content)?t.content:JSON.stringify(t.content);n(o,-2,t)}else n(`[${t.content}]`,-3,t)}function Ul(t,e){const{push:n,helper:o,pure:i}=e;i&&n(oo),n(`${o(On)}(${JSON.stringify(t.content)})`,-3,t)}function $l(t,e){const{push:n,helper:o,pure:i}=e,{tag:s,props:r,children:a,patchFlag:l,dynamicProps:c,directives:f,isBlock:u,disableTracking:d,isComponent:p}=t;let m;l&&(m=String(l)),f&&n(o(zr)+"("),u&&n(`(${o(Jt)}(${d?"true":""}), `),i&&n(oo);const h=u?sn(e.inSSR,p):an(e.inSSR,p);n(o(h)+"(",-2,t),tr(jl([s,r,a,m,c]),e),n(")"),u&&n(")"),f&&(n(", "),ot(f,e),n(")"))}function jl(t){let e=t.length;for(;e--&&t[e]==null;);return t.slice(0,e+1).map(n=>n||"null")}function Bl(t,e){const{push:n,helper:o,pure:i}=e,s=Ge(t.callee)?t.callee:o(t.callee);i&&n(oo),n(s+"(",-2,t),tr(t.arguments,e),n(")")}function Xl(t,e){const{push:n,indent:o,deindent:i,newline:s}=e,{properties:r}=t;if(!r.length){n("{}",-2,t);return}const a=r.length>1||!1;n(a?"{":"{ "),a&&o();for(let l=0;l<r.length;l++){const{key:c,value:f}=r[l];Vl(c,e),n(": "),ot(f,e),l<r.length-1&&(n(","),s())}a&&i(),n(a?"}":" }")}function Gl(t,e){qo(t.elements,e)}function Hl(t,e){const{push:n,indent:o,deindent:i}=e,{params:s,returns:r,body:a,newline:l,isSlot:c}=t;c&&n(`_${rn[eo]}(`),n("(",-2,t),Ht(s)?tr(s,e):s&&ot(s,e),n(") => "),(l||a)&&(n("{"),o()),r?(l&&n("return "),Ht(r)?qo(r,e):ot(r,e)):a&&ot(a,e),(l||a)&&(i(),n("}")),c&&(t.isNonScopedSlot&&n(", undefined, true"),n(")"))}function Kl(t,e){const{test:n,consequent:o,alternate:i,newline:s}=t,{push:r,indent:a,deindent:l,newline:c}=e;if(n.type===4){const u=!_n(n.content);u&&r("("),Ba(n,e),u&&r(")")}else r("("),ot(n,e),r(")");s&&a(),e.indentLevel++,s||r(" "),r("? "),ot(o,e),e.indentLevel--,s&&c(),s||r(" "),r(": ");const f=i.type===19;f||e.indentLevel++,ot(i,e),f||e.indentLevel--,s&&l(!0)}function kl(t,e){const{push:n,helper:o,indent:i,deindent:s,newline:r}=e,{needPauseTracking:a,needArraySpread:l}=t;l&&n("[...("),n(`_cache[${t.index}] || (`),a&&(i(),n(`${o(Yn)}(-1`),t.inVOnce&&n(", true"),n("),"),r(),n("(")),n(`_cache[${t.index}] = `),ot(t.value,e),a&&(n(`).cacheIndex = ${t.index},`),r(),n(`${o(Yn)}(1),`),r(),n(`_cache[${t.index}]`),s()),n(")"),l&&n(")]")}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 Wl=(t,e)=>{if(t.type===5)t.content=Sr(t.content,e);else if(t.type===1){const n=st(t,"memo");for(let o=0;o<t.props.length;o++){const i=t.props[o];if(i.type===7&&i.name!=="for"){const s=i.exp,r=i.arg;s&&s.type===4&&!(i.name==="on"&&r)&&!(n&&e.vForMemoKeyedNodes.has(t)&&r&&r.type===4&&r.content==="key")&&(i.exp=Sr(s,e,i.name==="slot")),r&&r.type===4&&!r.isStatic&&(i.arg=Sr(r,e))}}}};function Sr(t,e,n=!1,o=!1,i=Object.create(e.identifiers)){return t}function Ga(t){return Ge(t)?t:t.type===4?t.content:t.children.map(Ga).join("")}const Yl=_o(/^(?:if|else|else-if)$/,(t,e,n)=>Ha(t,e,n,(o,i,s)=>{const r=n.parent.children;let a=r.indexOf(o),l=0;for(;a-->=0;){const c=r[a];c&&c.type===9&&(l+=c.branches.length)}return()=>{if(s)o.codegenNode=Ai(i,l,n);else{const c=Jl(o.codegenNode);c.alternate=Ai(i,l+o.branches.length-1,n)}}}));function Ha(t,e,n,o){if(e.name!=="else"&&(!e.exp||!e.exp.content.trim())){const i=e.exp?e.exp.loc:t.loc;n.onError(Ae(28,e.loc)),e.exp=ie("true",!1,i)}if(e.name==="if"){const i=Ci(t,e),s={type:9,loc:Il(t.loc),branches:[i]};if(n.replaceNode(s),o)return o(s,i,!0)}else{const i=n.parent.children;let s=i.indexOf(t);for(;s-->=-1;){const r=i[s];if(r&&zo(r)){n.removeNode(r);continue}if(r&&r.type===9){(e.name==="else-if"||e.name==="else")&&r.branches[r.branches.length-1].condition===void 0&&n.onError(Ae(30,t.loc)),n.removeNode();const a=Ci(t,e);r.branches.push(a);const l=o&&o(r,a,!1);er(a,n),l&&l(),n.currentNode=null}else n.onError(Ae(30,t.loc));break}}}function Ci(t,e){const n=t.tagType===3;return{type:10,loc:t.loc,condition:e.name==="else"?void 0:e.exp,children:n&&!st(t,"for")?t.children:[t],userKey:qn(t,"key"),isTemplateIf:n}}function Ai(t,e,n){return t.condition?Pr(t.condition,xi(t,e,n),We(n.helper(On),['""',"true"])):xi(t,e,n)}function xi(t,e,n){const{helper:o}=n,i=Xe("key",ie(`${e}`,!1,Je,2)),{children:s}=t,r=s[0];if(s.length!==1||r.type!==1)if(s.length===1&&r.type===11){const l=r.codegenNode;return zn(l,i,n),l}else return yn(n,o(vn),gt([i]),s,64,void 0,void 0,!0,!1,!1,t.loc);else{const l=r.codegenNode,c=Ca(l);return c.type===13&&no(c,n),zn(c,i,n),l}}function Jl(t){for(;;)if(t.type===19)if(t.alternate.type===19)t=t.alternate;else return t;else t.type===20&&(t=t.value)}const zl=_o("for",(t,e,n)=>{const{helper:o,removeHelper:i}=n;return Ka(t,e,n,s=>{const r=We(o(Qr),[s.source]),a=Sn(t),l=st(t,"memo"),c=qn(t,"key",!1,!0);c&&c.type;let f=c&&(c.type===6?c.value?ie(c.value.content,!0):void 0:c.exp);const u=f?Xe("key",f):null,d=s.source.type===4&&s.source.constType>0,p=d?64:c?128:256;return s.codegenNode=yn(n,o(vn),void 0,r,p,void 0,void 0,!0,!d,!1,t.loc),()=>{var m;let h;const{children:v}=s,g=v.length!==1||v[0].type!==1,y=Jn(t)?t:a&&t.children.length===1&&Jn(t.children[0])?t.children[0]:null;if(y)h=y.codegenNode,a&&u&&zn(h,u,n);else if(g)h=yn(n,o(vn),u?gt([u]):void 0,t.children,64,void 0,void 0,!0,void 0,!1);else{h=v[0].codegenNode,a&&u&&zn(h,u,n);const O=!d||h.isBlockRequired===!0;h.isBlock!==O&&(h.isBlock?(i(Jt),i(sn(n.inSSR,h.isComponent))):i(an(n.inSSR,h.isComponent))),h.isBlock=O,h.isBlock?(o(Jt),o(sn(n.inSSR,h.isComponent))):(o(an(n.inSSR,h.isComponent)),h.needsPatch&&(h.patchFlag=((m=h.patchFlag)!=null?m:0)|512))}if(l){const O=on(Dr(s.parseResult,[ie("_cached")]));O.body=ha([Et(["const _memo = (",l.exp,")"]),Et(["if (_cached && _cached.el",...f?[" && _cached.key === ",f]:[],` && ${n.helperString(Xo)}(_cached, _memo)) return _cached`]),Et(["const _item = ",h]),ie("_item.memo = _memo"),ie("return _item")]),r.arguments.push(O,ie("_cache"),ie(String(n.cached.length))),n.cached.push(null)}else r.arguments.push(on(Dr(s.parseResult),h,!0))}})});function Ka(t,e,n,o){if(!e.exp){n.onError(Ae(31,e.loc));return}const i=e.forParseResult;if(!i){n.onError(Ae(32,e.loc));return}ei(i);const{addIdentifiers:s,removeIdentifiers:r,scopes:a}=n,{source:l,value:c,key:f,index:u}=i,d={type:11,loc:e.loc,source:l,valueAlias:c,keyAlias:f,objectIndexAlias:u,parseResult:i,children:Sn(t)?t.children:[t]};n.replaceNode(d),a.vFor++;const p=o&&o(d);return()=>{a.vFor--,p&&p()}}function ei(t,e){t.finalized||(t.finalized=!0)}function Dr({value:t,key:e,index:n},o=[]){return Ql([t,e,n,...o])}function Ql(t){let e=t.length;for(;e--&&!t[e];);return t.slice(0,e+1).map((n,o)=>n||ie("_".repeat(o+1),!1))}const Pi=ie("undefined",!1),ka=(t,e)=>{if(t.type===1&&(t.tagType===1||t.tagType===3)){const n=st(t,"slot");if(n)return n.exp,e.scopes.vSlot++,()=>{e.scopes.vSlot--}}},Zl=(t,e)=>{let n;if(Sn(t)&&t.props.some(Wo)&&(n=st(t,"for"))){const o=n.forParseResult;if(o){ei(o);const{value:i,key:s,index:r}=o,{addIdentifiers:a,removeIdentifiers:l}=e;return i&&a(i),s&&a(s),r&&a(r),()=>{i&&l(i),s&&l(s),r&&l(r)}}}},_l=(t,e,n,o)=>on(t,n,!1,!0,n.length?n[0].loc:o);function Wa(t,e,n=_l){e.helper(eo);const{children:o,loc:i}=t,s=[],r=[];let a=e.scopes.vSlot>0||e.scopes.vFor>0;const l=st(t,"slot",!0);if(l){const{arg:v,exp:g}=l;v&&!nt(v)&&(a=!0),s.push(Xe(v||ie("default",!0),n(g,void 0,o,i)))}let c=!1,f=!1;const u=[],d=new Set;let p=0;for(let v=0;v<o.length;v++){const g=o[v];let y;if(!Sn(g)||!(y=st(g,"slot",!0))){g.type!==3&&u.push(g);continue}if(l){e.onError(Ae(37,y.loc));break}c=!0;const{children:O,loc:b}=g,{arg:A=ie("default",!0),exp:C,loc:K}=y;let M;nt(A)?M=A?A.content:"default":a=!0;const I=st(g,"for"),R=n(C,I,O,b);let j,Y;if(j=st(g,"if"))a=!0,r.push(Pr(j.exp,lr(A,R,p++),Pi));else if(Y=st(g,/^else(?:-if)?$/,!0)){let P=v,x;for(;P--&&(x=o[P],!!zo(x)););if(x&&Sn(x)&&st(x,/^(?:else-)?if$/)){let B=r[r.length-1];for(;B.alternate.type===19;)B=B.alternate;B.alternate=Y.exp?Pr(Y.exp,lr(A,R,p++),Pi):lr(A,R,p++)}else e.onError(Ae(30,Y.loc))}else if(I){a=!0;const P=I.forParseResult;P?(ei(P),r.push(We(e.helper(Qr),[P.source,on(Dr(P),lr(A,R),!0)]))):e.onError(Ae(32,I.loc))}else{if(M){if(d.has(M)){e.onError(Ae(38,K));continue}d.add(M),M==="default"&&(f=!0)}s.push(Xe(A,R))}}if(!l){const v=(g,y)=>{const O=n(g,void 0,y,i);return e.compatConfig&&(O.isNonScopedSlot=!0),Xe("default",O)};c?u.length&&!u.every(ro)&&(f?e.onError(Ae(39,u[0].loc)):s.push(v(void 0,u))):s.push(v(void 0,o))}const m=a?2:br(t.children)?3:1;let h=gt(s.concat(Xe("_",ie(m+"",!1))),i);return r.length&&(h=We(e.helper(Bo),[h,Yt(r)])),{slots:h,hasDynamicSlots:a}}function lr(t,e,n){const o=[Xe("name",t),Xe("fn",e)];return n!=null&&o.push(Xe("key",ie(String(n),!0))),gt(o)}function br(t){for(let e=0;e<t.length;e++){const n=t[e];switch(n.type){case 1:if(n.tagType===2||br(n.children))return!0;break;case 9:if(br(n.branches))return!0;break;case 10:case 11:if(br(n.children))return!0;break}}return!1}const Ya=new WeakMap,Ja=(t,e)=>function(){if(t=e.currentNode,!(t.type===1&&(t.tagType===0||t.tagType===1)))return;const{tag:o,props:i}=t,s=t.tagType===1;let r=s?za(t,e):`"${o}"`;const a=Zi(r)&&r.callee===Wr;let l,c,f=0,u,d,p,m=!1,h=!1,v=a||r===mn||r===Xr||!s&&(o==="svg"||o==="foreignObject"||o==="math");if(i.length>0){const y=ti(t,e,void 0,s,a);l=y.props,f=y.patchFlag,d=y.dynamicPropNames,m=y.needsPatch,h=y.isBlockRequired;const O=y.directives;p=O&&O.length?Yt(O.map(b=>Qa(b,e))):void 0,y.shouldUseBlock&&(v=!0)}if(t.children.length>0)if(r===kn&&(v=!0,f|=1024),s&&r!==mn&&r!==kn){const{slots:O,hasDynamicSlots:b}=Wa(t,e);c=O,b&&(f|=1024)}else if(t.children.length===1&&r!==mn){const O=t.children[0],b=O.type,A=b===5||b===8;A&&pt(O,e)===0&&(f|=1),A||b===2?c=O:c=t.children}else c=t.children;d&&d.length&&(u=ec(d));const g=t.codegenNode=yn(e,r,l,c,f===0?void 0:f,u,p,!!v,!1,s,t.loc);m=m&&(f===0||f===32),m&&(g.needsPatch=!0),h&&(g.isBlockRequired=!0)};function za(t,e,n=!1){let{tag:o}=t;const i=xo(o),s=qn(t,"is",!1,!0);if(s)if(i||en("COMPILER_IS_ON_ELEMENT",e)){let a;if(s.type===6?a=s.value&&ie(s.value.content,!0):(a=s.exp,a||(a=ie("is",!1,s.arg.loc))),a)return We(e.helper(Wr),[a])}else s.type===6&&s.value.content.startsWith("vue:")&&(o=s.value.content.slice(4));const r=Ho(o)||e.isBuiltInComponent(o);return r?(n||e.helper(r),r):(e.helper(kr),e.components.add(o),bn(o,"component"))}function ti(t,e,n=t.props,o,i,s=!1){const{tag:r,loc:a,children:l}=t;let c=[];const f=[],u=[],d=l.length>0;let p=!1,m=!1,h=0,v=!1,g=!1,y=!1,O=!1,b=!1,A=!1;const C=[],K=Y=>{c.length&&(f.push(gt(Ri(c),a)),c=[]),Y&&f.push(Y)},M=()=>{e.scopes.vFor>0&&c.push(Xe(ie("ref_for",!0),ie("true")))},I=({key:Y,value:P})=>{if(nt(Y)){const x=Y.content,B=_i(x);if(B&&(!o||i)&&x.toLowerCase()!=="onclick"&&x!=="onUpdate:modelValue"&&!yi(x)&&(O=!0),B&&yi(x)&&(A=!0),x==="ref"&&(v=!0),B&&P.type===14&&(P=P.arguments[0]),P.type===20||(P.type===4||P.type===8)&&pt(P,e)>0)return;x==="class"?g=!0:x==="style"?y=!0:x!=="ref"&&x!=="key"&&!C.includes(x)&&C.push(x),o&&(x==="class"||x==="style")&&!C.includes(x)&&C.push(x)}else b=!0};for(let Y=0;Y<n.length;Y++){const P=n[Y];if(P.type===6){const{loc:x,name:B,nameLoc:V,value:X}=P;let re=!0;if(B==="ref"&&(v=!0,M()),B==="is"&&(xo(r)||X&&X.content.startsWith("vue:")||en("COMPILER_IS_ON_ELEMENT",e)))continue;c.push(Xe(ie(B,!0,V),ie(X?X.content:"",re,X?X.loc:x)))}else{const{name:x,arg:B,exp:V,loc:X,modifiers:re}=P,de=x==="bind",U=x==="on";if(x==="slot"){o||e.onError(Ae(40,X));continue}if(x==="once"||x==="memo"||x==="is"||de&&tn(B,"is")&&(xo(r)||en("COMPILER_IS_ON_ELEMENT",e))||U&&s)continue;if(de&&tn(B,"key")&&(p=!0),U&&d&&B&&nt(B)&&wt(B.content)==="vue:beforeUpdate"&&(p=!0,m=!0),de&&tn(B,"ref")&&M(),!B&&(de||U)){if(b=!0,V)if(de){if(K(),en("COMPILER_V_BIND_OBJECT_ORDER",e)){f.unshift(V);continue}M(),K(),f.push(V)}else K({type:14,loc:X,callee:e.helper(qr),arguments:o?[V]:[V,"true"]});else e.onError(Ae(de?34:35,X));continue}de&&re.some(D=>D.content==="prop")&&(h|=32);const L=e.directiveTransforms[x];if(L){const{props:D,needRuntime:S}=L(P,t,e);!s&&D.forEach(I),U&&B&&!nt(B)?K(gt(D,a)):c.push(...D),S&&(u.push(P),wo(S)&&Ya.set(P,S))}else Es(x)||(u.push(P),d&&(p=!0,m=!0))}}let R;f.length?(K(),f.length>1?R=We(e.helper(Wn),f,a):R=f[0]):c.length&&(R=gt(Ri(c),a)),b?h|=16:(g&&!o&&(h|=2),y&&!o&&(h|=4),C.length&&(h|=8),O&&(h|=32));const j=(h===0||h===32)&&(v||A||u.length>0);if(!p&&j&&(h|=512),!e.inSSR&&R)switch(R.type){case 15:let Y=-1,P=-1,x=!1;for(let X=0;X<R.properties.length;X++){const re=R.properties[X].key;nt(re)?re.content==="class"?Y=X:re.content==="style"&&(P=X):re.isHandlerKey||(x=!0)}const B=R.properties[Y],V=R.properties[P];x?R=We(e.helper(gn),[R]):(B&&!nt(B.value)&&(B.value=We(e.helper(Zr),[B.value])),V&&(y||V.value.type===4&&V.value.content.trim()[0]==="["||V.value.type===17)&&(V.value=We(e.helper(_r),[V.value])));break;case 14:break;default:R=We(e.helper(gn),[We(e.helper(In),[R])]);break}return{props:R,directives:u,patchFlag:h,dynamicPropNames:C,shouldUseBlock:p,needsPatch:j,isBlockRequired:m}}function Ri(t){const e=new Map,n=[];for(let o=0;o<t.length;o++){const i=t[o];if(i.key.type===8||!i.key.isStatic){n.push(i);continue}const s=i.key.content,r=e.get(s);r?(s==="style"||s==="class"||_i(s))&&ql(r,i):(e.set(s,i),n.push(i))}return n}function ql(t,e){t.value.type===17?t.value.elements.push(e.value):t.value=Yt([t.value,e.value],t.loc)}function Qa(t,e){const n=[],o=Ya.get(t);o?n.push(e.helperString(o)):(e.helper(Yr),e.directives.add(t.name),n.push(bn(t.name,"directive")));const{loc:i}=t;if(t.exp&&n.push(t.exp),t.arg&&(t.exp||n.push("void 0"),n.push(t.arg)),Object.keys(t.modifiers).length){t.arg||(t.exp||n.push("void 0"),n.push("void 0"));const s=ie("true",!1,i);n.push(gt(t.modifiers.map(r=>Xe(r,s)),i))}return Yt(n,t.loc)}function ec(t){let e="[";for(let n=0,o=t.length;n<o;n++)e+=JSON.stringify(t[n]),n<o-1&&(e+=", ");return e+"]"}function xo(t){return t==="component"||t==="Component"}const tc=(t,e)=>{if(Jn(t)){const{children:n,loc:o}=t,{slotName:i,slotProps:s}=Za(t,e),r=[e.prefixIdentifiers?"_ctx.$slots":"$slots",i,"{}","undefined","true"];let a=2;s&&(r[2]=s,a=3),n.length&&(r[3]=on([],n,!1,!1,o),a=4),e.scopeId&&!e.slotted&&(a=5),r.splice(a),t.codegenNode=We(e.helper(jo),r,o)}};function Za(t,e){let n='"default"',o;const i=[];for(let s=0;s<t.props.length;s++){const r=t.props[s];if(r.type===6)r.value&&(r.name==="name"?n=JSON.stringify(r.value.content):(r.name=wt(r.name),i.push(r)));else if(r.name==="bind"&&tn(r.arg,"name")){if(r.exp)n=r.exp;else if(r.arg&&r.arg.type===4){const a=wt(r.arg.content);n=r.exp=ie(a,!1,r.arg.loc)}}else r.name==="bind"&&r.arg&&nt(r.arg)&&(r.arg.content=wt(r.arg.content)),i.push(r)}if(i.length>0){const{props:s,directives:r}=ti(t,e,i,!1,!1);o=s,r.length&&e.onError(Ae(36,r[0].loc))}return{slotName:n,slotProps:o}}const ni=(t,e,n,o)=>{const{loc:i,modifiers:s,arg:r}=t;!t.exp&&!s.length&&n.onError(Ae(35,i));let a;if(r.type===4)if(r.isStatic){let u=r.content;u.startsWith("vue:")&&(u=`vnode-${u.slice(4)}`);const d=e.tagType!==0||u.startsWith("vnode")||!/[A-Z]/.test(u)?bs(wt(u)):`on:${u}`;a=ie(d,!0,r.loc)}else a=Et([`${n.helperString(xr)}(`,r,")"]);else a=r,a.children.unshift(`${n.helperString(xr)}(`),a.children.push(")");let l=t.exp;l&&!l.content.trim()&&(l=void 0);let c=n.cacheHandlers&&!l&&!n.inVOnce;if(l){const u=ko(l),d=!(u||Oa(l)),p=l.content.includes(";");(d||c&&u)&&(l=Et([`${d?"$event":"(...args)"} => ${p?"{":"("}`,l,p?"}":")"]))}let f={props:[Xe(a,l||ie("() => {}",!1,i))]};return o&&(f=o(f)),c&&(f.props[0].value=n.cache(f.props[0].value)),f.props.forEach(u=>u.key.isHandlerKey=!0),f},_a=(t,e,n)=>{const{modifiers:o,loc:i}=t,s=t.arg;let{exp:r}=t;return r&&r.type===4&&!r.content.trim()&&(r=void 0),s.type!==4?(s.children.unshift("("),s.children.push(') || ""')):s.isStatic||(s.content=s.content?`${s.content} || ""`:'""'),o.some(a=>a.content==="camel")&&(s.type===4?s.isStatic?s.content=wt(s.content):s.content=`${n.helperString(Ar)}(${s.content})`:(s.children.unshift(`${n.helperString(Ar)}(`),s.children.push(")"))),n.inSSR||(o.some(a=>a.content==="prop")&&Di(s,"."),o.some(a=>a.content==="attr")&&Di(s,"^")),{props:[Xe(s,r)]}},Di=(t,e)=>{t.type===4?t.isStatic?t.content=e+t.content:t.content=`\`${e}\${${t.content}}\``:(t.children.unshift(`'${e}' + (`),t.children.push(")"))},nc=(t,e)=>{if(t.type===0||t.type===1||t.type===11||t.type===10)return()=>{const n=t.children;let o,i=!1;for(let s=0;s<n.length;s++){const r=n[s];if(vr(r)){i=!0;for(let a=s+1;a<n.length;a++){const l=n[a];if(vr(l))o||(o=n[s]=Et([r],r.loc)),o.children.push(" + ",l),n.splice(a,1),a--;else{o=void 0;break}}}}if(!(!i||n.length===1&&(t.type===0||t.type===1&&t.tagType===0&&!t.props.find(s=>s.type===7&&!e.directiveTransforms[s.name])&&t.tag!=="template")))for(let s=0;s<n.length;s++){const r=n[s];if(vr(r)||r.type===8){const a=[];(r.type!==2||r.content!==" ")&&a.push(r),!e.ssr&&pt(r,e)===0&&a.push("1"),n[s]={type:12,content:r,loc:r.loc,codegenNode:We(e.helper(Kr),a)}}}}},Mi=new WeakSet,rc=(t,e)=>{if(t.type===1&&st(t,"once",!0))return Mi.has(t)||e.inVOnce||e.inSSR?void 0:(Mi.add(t),e.inVOnce=!0,e.helper(Yn),()=>{e.inVOnce=!1;const n=e.currentNode;n.codegenNode&&(n.codegenNode=e.cache(n.codegenNode,!0,!0))})},ri=(t,e,n)=>{const{exp:o,arg:i}=t;if(!o)return n.onError(Ae(41,t.loc)),Dn();const s=o.loc.source.trim(),r=o.type===4?o.content:s,a=n.bindingMetadata[s];if(a==="props"||a==="props-aliased")return n.onError(Ae(44,o.loc)),Dn();if(a==="literal-const"||a==="setup-const")return n.onError(Ae(45,o.loc)),Dn();if(!r.trim()||!ko(o))return n.onError(Ae(42,o.loc)),Dn();const l=i||ie("modelValue",!0),c=i?nt(i)?`onUpdate:${wt(i.content)}`:Et(['"onUpdate:" + ',i]):"onUpdate:modelValue";let f;const u=n.isTS?"($event: any)":"$event";f=Et([`${u} => ((`,o,") = $event)"]);const d=[Xe(l,t.exp),Xe(c,f)];if(t.modifiers.length&&e.tagType===1){const p=t.modifiers.map(h=>h.content).map(h=>(_n(h)?h:JSON.stringify(h))+": true").join(", "),m=i?nt(i)?`${i.content}Modifiers`:Et([i,' + "Modifiers"']):"modelModifiers";d.push(Xe(m,ie(`{ ${p} }`,!1,t.loc,2)))}return Dn(d)};function Dn(t=[]){return{props:t}}const oc=/[\w).+\-_$\]]/,ic=(t,e)=>{en("COMPILER_FILTERS",e)&&(t.type===5?Mr(t.content,e):t.type===1&&t.props.forEach(n=>{n.type===7&&n.name!=="for"&&n.exp&&Mr(n.exp,e)}))};function Mr(t,e){if(t.type===4)Li(t,e);else for(let n=0;n<t.children.length;n++){const o=t.children[n];typeof o=="object"&&(o.type===4?Li(o,e):o.type===8?Mr(o,e):o.type===5&&Mr(o.content,e))}}function Li(t,e){const n=t.content;let o=!1,i=!1,s=!1,r=!1,a=0,l=0,c=0,f=0,u,d,p,m,h=[];for(p=0;p<n.length;p++)if(d=u,u=n.charCodeAt(p),o)u===39&&d!==92&&(o=!1);else if(i)u===34&&d!==92&&(i=!1);else if(s)u===96&&d!==92&&(s=!1);else if(r)u===47&&d!==92&&(r=!1);else if(u===124&&n.charCodeAt(p+1)!==124&&n.charCodeAt(p-1)!==124&&!a&&!l&&!c)m===void 0?(f=p+1,m=n.slice(0,p).trim()):v();else{switch(u){case 34:i=!0;break;case 39:o=!0;break;case 96:s=!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 g=p-1,y;for(;g>=0&&(y=n.charAt(g),y===" ");g--);(!y||!oc.test(y))&&(r=!0)}}m===void 0?m=n.slice(0,p).trim():f!==0&&v();function v(){h.push(n.slice(f,p).trim()),f=p+1}if(h.length){for(p=0;p<h.length;p++)m=ac(m,h[p],e);t.content=m,t.ast=void 0}}function ac(t,e,n){n.helper(Jr);const o=e.indexOf("(");if(o<0)return n.filters.add(e),`${bn(e,"filter")}(${t})`;{const i=e.slice(0,o),s=e.slice(o+1);return n.filters.add(i),`${bn(i,"filter")}(${t}${s!==")"?","+s:s}`}}const wi=new WeakSet,sc=(t,e)=>{if(t.type===1){const n=st(t,"memo");return!n||wi.has(t)||e.inSSR?void 0:(wi.add(t),()=>{const o=t.codegenNode||e.currentNode.codegenNode;o&&o.type===13&&(t.tagType!==1&&no(o,e),t.codegenNode=We(e.helper(to),[n.exp,on(void 0,o),"_cache",String(e.cached.length)]),e.cached.push(null))})}},qa=(t,e)=>{if(t.type===1){for(const n of t.props)if(n.type===7&&n.name==="bind"&&(!n.exp||n.exp.type===4&&!n.exp.content.trim())&&n.arg){const o=n.arg;if(o.type!==4||!o.isStatic)e.onError(Ae(53,o.loc)),n.exp=ie("",!0,o.loc);else{const i=wt(o.content);(Ko.test(i[0])||i[0]==="-")&&(n.exp=ie(i,!1,o.loc))}}}};function es(t){return[[qa,rc,Yl,sc,zl,ic,tc,Ja,ka,nc],{on:ni,bind:_a,model:ri}]}function ts(t,e={}){const n=e.onError||Go,o=e.mode==="module";e.prefixIdentifiers===!0?n(Ae(48)):o&&n(Ae(49));const i=!1;e.cacheHandlers&&n(Ae(50)),e.scopeId&&!o&&n(Ae(51));const s=Lt({},e,{prefixIdentifiers:i}),r=Ge(t)?Zo(t,s):t,[a,l]=es();return Ua(r,Lt({},s,{nodeTransforms:[...a,...e.nodeTransforms||[]],directiveTransforms:Lt({},l,e.directiveTransforms||{})})),ja(r,s)}const lc={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"},ns=()=>({props:[]});/**
|
|
14
|
+
* @vue/compiler-dom v3.5.42
|
|
15
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
16
|
+
* @license MIT
|
|
17
|
+
**/const oi=Symbol(""),ii=Symbol(""),ai=Symbol(""),si=Symbol(""),Lr=Symbol(""),li=Symbol(""),ci=Symbol(""),ui=Symbol(""),fi=Symbol(""),di=Symbol("");fa({[oi]:"vModelRadio",[ii]:"vModelCheckbox",[ai]:"vModelText",[si]:"vModelSelect",[Lr]:"vModelDynamic",[li]:"withModifiers",[ci]:"withKeys",[ui]:"vShow",[fi]:"Transition",[di]:"TransitionGroup"});let cn;function cc(t,e=!1){return cn||(cn=document.createElement("div")),e?(cn.innerHTML=`<div foo="${t.replace(/"/g,""")}">`,cn.children[0].getAttribute("foo")):(cn.innerHTML=t,cn.textContent)}const pi={parseMode:"html",isVoidTag:Ts,isNativeTag:t=>Os(t)||Is(t)||Ns(t),isPreTag:t=>t==="pre",isIgnoreNewlineTag:t=>t==="pre"||t==="textarea",decodeEntities:cc,isBuiltInComponent:t=>{if(t==="Transition"||t==="transition")return fi;if(t==="TransitionGroup"||t==="transition-group")return di},getNamespace(t,e,n){let o=e?e.ns:n;if(e&&o===2)if(e.tag==="annotation-xml"){if(t==="svg")return 1;e.props.some(i=>i.type===6&&i.name==="encoding"&&i.value!=null&&(i.value.content==="text/html"||i.value.content==="application/xhtml+xml"))&&(o=0)}else/^m(?:[ions]|text)$/.test(e.tag)&&t!=="mglyph"&&t!=="malignmark"&&(o=0);else e&&o===1&&(e.tag==="foreignObject"||e.tag==="desc"||e.tag==="title")&&(o=0);if(o===0){if(t==="svg")return 1;if(t==="math")return 2}return o}},rs=t=>{t.type===1&&t.props.forEach((e,n)=>{e.type===6&&e.name==="style"&&e.value&&(t.props[n]={type:7,name:"bind",arg:ie("style",!0,e.loc),exp:uc(e.value.content,e.loc),modifiers:[],loc:e.loc})})},uc=(t,e)=>{const n=Cs(t);return ie(JSON.stringify(n),!1,e,3)};function Vt(t,e){return Ae(t,e)}const fc={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__"},dc={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."},pc=(t,e,n)=>{const{exp:o,loc:i}=t;return o||n.onError(Vt(54,i)),e.children.length&&(n.onError(Vt(55,i)),e.children.length=0),{props:[Xe(ie("innerHTML",!0,i),o||ie("",!0))]}},hc=(t,e,n)=>{const{exp:o,loc:i}=t;return o||n.onError(Vt(56,i)),e.children.length&&(n.onError(Vt(57,i)),e.children.length=0),{props:[Xe(ie("textContent",!0),o?pt(o,n)>0?o:We(n.helperString(Zn),[o],i):ie("",!0))]}},mc=(t,e,n)=>{const o=ri(t,e,n);if(!o.props.length||e.tagType===1)return o;t.arg&&n.onError(Vt(59,t.arg.loc));const{tag:i}=e,s=n.isCustomElement(i);if(i==="input"||i==="textarea"||i==="select"||s){let r=ai,a=!1;if(i==="input"||s){const l=qn(e,"type");if(l){if(l.type===7)r=Lr;else if(l.value)switch(l.value.content){case"radio":r=oi;break;case"checkbox":r=ii;break;case"file":a=!0,n.onError(Vt(60,t.loc));break}}else Na(e)&&(r=Lr)}else i==="select"&&(r=si);a||(o.needRuntime=n.helper(r))}else n.onError(Vt(58,t.loc));return o.props=o.props.filter(r=>!(r.key.type===4&&r.key.content==="modelValue")),o},vc=jr("passive,once,capture"),gc=jr("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),yc=jr("left,right"),os=jr("onkeyup,onkeydown,onkeypress"),Ec=(t,e,n,o)=>{const i=[],s=[],r=[];for(let a=0;a<e.length;a++){const l=e[a].content;l==="native"&&En("COMPILER_V_ON_NATIVE",n)||vc(l)?r.push(l):yc(l)?nt(t)?os(t.content.toLowerCase())?i.push(l):s.push(l):(i.push(l),s.push(l)):gc(l)?s.push(l):i.push(l)}return{keyModifiers:i,nonKeyModifiers:s,eventOptionModifiers:r}},Fi=(t,e)=>nt(t)&&t.content.toLowerCase()==="onclick"?ie(e,!0):t.type!==4?Et(["(",t,`) === "onClick" ? "${e}" : (`,t,")"]):t,Sc=(t,e,n)=>ni(t,e,n,o=>{const{modifiers:i}=t;if(!i.length)return o;let{key:s,value:r}=o.props[0];const{keyModifiers:a,nonKeyModifiers:l,eventOptionModifiers:c}=Ec(s,i,n,t.loc);if(l.includes("right")&&(s=Fi(s,"onContextmenu")),l.includes("middle")&&(s=Fi(s,"onMouseup")),l.length&&(r=We(n.helper(li),[r,JSON.stringify(l)])),a.length&&(!nt(s)||os(s.content.toLowerCase()))&&(r=We(n.helper(ci),[r,JSON.stringify(a)])),c.length){const f=c.map(Qi).join("");s=nt(s)?ie(`${s.content}${f}`,!0):Et(["(",s,`) + "${f}"`])}return{props:[Xe(s,r)]}}),bc=(t,e,n)=>{const{exp:o,loc:i}=t;return o||n.onError(Vt(62,i)),{props:[],needRuntime:n.helper(ui)}},Tc=(t,e)=>{t.type===1&&t.tagType===0&&(t.tag==="script"||t.tag==="style")&&e.removeNode()},is=[rs],as={cloak:ns,html:pc,text:hc,model:mc,on:Sc,show:bc};function Oc(t,e={}){return ts(t,Lt({},pi,e,{nodeTransforms:[Tc,...is,...e.nodeTransforms||[]],directiveTransforms:Lt({},as,e.directiveTransforms||{}),transformHoist:null}))}function Ic(t,e={}){return Zo(t,Lt({},pi,e))}const Nc=Object.freeze(Object.defineProperty({__proto__:null,BASE_TRANSITION:Fo,BindingTypes:lc,CAMELIZE:Ar,CAPITALIZE:aa,CREATE_BLOCK:Vo,CREATE_COMMENT:On,CREATE_ELEMENT_BLOCK:Uo,CREATE_ELEMENT_VNODE:Hr,CREATE_SLOTS:Bo,CREATE_STATIC:$o,CREATE_TEXT:Kr,CREATE_VNODE:Gr,CompilerDeprecationTypes:ks,ConstantTypes:Us,DOMDirectiveTransforms:as,DOMErrorCodes:fc,DOMErrorMessages:dc,DOMNodeTransforms:is,ElementTypes:Vs,ErrorCodes:Js,FRAGMENT:vn,GUARD_REACTIVE_PROPS:In,IS_MEMO_SAME:Xo,IS_REF:ua,KEEP_ALIVE:kn,MERGE_PROPS:Wn,NORMALIZE_CLASS:Zr,NORMALIZE_PROPS:gn,NORMALIZE_STYLE:_r,Namespaces:ws,NodeTypes:Fs,OPEN_BLOCK:Jt,POP_SCOPE_ID:la,PUSH_SCOPE_ID:sa,RENDER_LIST:Qr,RENDER_SLOT:jo,RESOLVE_COMPONENT:kr,RESOLVE_DIRECTIVE:Yr,RESOLVE_DYNAMIC_COMPONENT:Wr,RESOLVE_FILTER:Jr,SET_BLOCK_TRACKING:Yn,SUSPENSE:Xr,TELEPORT:mn,TO_DISPLAY_STRING:Zn,TO_HANDLERS:qr,TO_HANDLER_KEY:xr,TRANSITION:fi,TRANSITION_GROUP:di,TS_NODE_TYPES:ya,UNREF:ca,V_MODEL_CHECKBOX:ii,V_MODEL_DYNAMIC:Lr,V_MODEL_RADIO:oi,V_MODEL_SELECT:si,V_MODEL_TEXT:ai,V_ON_WITH_KEYS:ci,V_ON_WITH_MODIFIERS:li,V_SHOW:ui,WITH_CTX:eo,WITH_DIRECTIVES:zr,WITH_MEMO:to,advancePositionWithClone:dl,advancePositionWithMutation:Ia,assert:pl,baseCompile:ts,baseParse:Zo,buildDirectiveArgs:Qa,buildProps:ti,buildSlots:Wa,checkCompatEnabled:En,compile:Oc,convertToBlock:no,createArrayExpression:Yt,createAssignmentExpression:Xs,createBlockStatement:ha,createCacheExpression:pa,createCallExpression:We,createCompilerError:Ae,createCompoundExpression:Et,createConditionalExpression:Pr,createDOMCompilerError:Vt,createForLoopParams:Dr,createFunctionExpression:on,createIfStatement:Bs,createInterpolation:$s,createObjectExpression:gt,createObjectProperty:Xe,createReturnStatement:Hs,createRoot:da,createSequenceExpression:Gs,createSimpleExpression:ie,createStructuralDirectiveTransform:_o,createTemplateLiteral:js,createTransformContext:Va,createVNodeCall:yn,errorMessages:zs,extractIdentifiers:At,findDir:st,findProp:qn,forAliasRE:Aa,generate:ja,generateCodeFrame:As,getBaseTransformPreset:es,getConstantType:pt,getMemoedVNodeCall:Ca,getVNodeBlockHelper:sn,getVNodeHelper:an,hasDynamicKeyVBind:Na,hasScopeRef:Ot,helperNameMap:rn,injectProp:zn,isAllWhitespace:Jo,isCommentOrWhitespace:zo,isCoreComponent:Ho,isFnExpression:Oa,isFnExpressionBrowser:Ta,isFnExpressionNode:fl,isFunctionType:ol,isInDestructureAssignment:_s,isInNewExpression:qs,isMemberExpression:ko,isMemberExpressionBrowser:ba,isMemberExpressionNode:cl,isReferencedIdentifier:Zs,isSimpleIdentifier:_n,isSlotOutlet:Jn,isStaticArgOf:tn,isStaticExp:nt,isStaticProperty:ga,isStaticPropertyKey:il,isTemplateNode:Sn,isText:vr,isVPre:Io,isVSlot:Wo,isWhitespaceText:ro,locStub:Je,noopDirectiveTransform:ns,parse:Ic,parserOptions:pi,processExpression:Sr,processFor:Ka,processIf:Ha,processSlotOutlet:Za,registerRuntimeHelpers:fa,resolveComponentType:za,stringifyExpression:Ga,toValidAssetId:bn,trackSlotScopes:ka,trackVForSlotScopes:Zl,transform:Ua,transformBind:_a,transformElement:Ja,transformExpression:Wl,transformModel:ri,transformOn:ni,transformStyle:rs,transformVBindShorthand:qa,traverseNode:er,unwrapTSNode:Ea,validFirstIdentCharRE:Ko,walkBlockDeclarations:va,walkFunctionParams:el,walkIdentifiers:Qs,warnDeprecation:Ys},Symbol.toStringTag,{value:"Module"})),Cc=Br(Nc),Ac=Br(xs),xc=Br(Ps);/**
|
|
18
|
+
* vue v3.5.42
|
|
19
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
20
|
+
* @license MIT
|
|
21
|
+
**/var Vi;function Pc(){return Vi||(Vi=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=Cc,n=Ac,o=xc;function i(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 s=i(n);const r=Object.create(null);function a(l,c){if(!o.isString(l))if(l.nodeType)l=l.innerHTML;else return o.NOOP;const f=o.genCacheKey(l,c),u=r[f];if(u)return u;if(l[0]==="#"){const h=document.querySelector(l);l=h?h.innerHTML:""}const d=o.extend({hoistStatic:!0,onError:void 0,onWarn:o.NOOP},c);!d.isCustomElement&&typeof customElements<"u"&&(d.isCustomElement=h=>!!customElements.get(h));const{code:p}=e.compile(l,d),m=new Function("Vue",p)(s);return m._rc=!0,r[f]=m}n.registerRuntimeCompiler(a),t.compile=a,Object.keys(n).forEach(function(l){l!=="default"&&!Object.prototype.hasOwnProperty.call(t,l)&&(t[l]=n[l])})})(co)),co}var Ui;function Rc(){return Ui||(Ui=1,lo.exports=Pc()),lo.exports}/**!
|
|
22
|
+
* Sortable 1.14.0
|
|
23
|
+
* @author RubaXa <trash@rubaxa.org>
|
|
24
|
+
* @author owenm <owen23355@gmail.com>
|
|
25
|
+
* @license MIT
|
|
26
|
+
*/function $i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,o)}return n}function Pt(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?$i(Object(n),!0).forEach(function(o){Dc(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):$i(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function Tr(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Tr=function(e){return typeof e}:Tr=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Tr(t)}function Dc(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function St(){return St=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},St.apply(this,arguments)}function Mc(t,e){if(t==null)return{};var n={},o=Object.keys(t),i,s;for(s=0;s<o.length;s++)i=o[s],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}function Lc(t,e){if(t==null)return{};var n=Mc(t,e),o,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(i=0;i<s.length;i++)o=s[i],!(e.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(t,o)&&(n[o]=t[o])}return n}function wc(t){return Fc(t)||Vc(t)||Uc(t)||$c()}function Fc(t){if(Array.isArray(t))return Po(t)}function Vc(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Uc(t,e){if(t){if(typeof t=="string")return Po(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Po(t,e)}}function Po(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);n<e;n++)o[n]=t[n];return o}function $c(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
27
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var jc="1.14.0";function Ut(t){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(t)}var $t=Ut(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),nr=Ut(/Edge/i),ji=Ut(/firefox/i),Bn=Ut(/safari/i)&&!Ut(/chrome/i)&&!Ut(/android/i),ss=Ut(/iP(ad|od|hone)/i),Bc=Ut(/chrome/i)&&Ut(/android/i),ls={capture:!1,passive:!1};function he(t,e,n){t.addEventListener(e,n,!$t&&ls)}function fe(t,e,n){t.removeEventListener(e,n,!$t&&ls)}function wr(t,e){if(e){if(e[0]===">"&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch{return!1}return!1}}function Xc(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function Nt(t,e,n,o){if(t){n=n||document;do{if(e!=null&&(e[0]===">"?t.parentNode===n&&wr(t,e):wr(t,e))||o&&t===n)return t;if(t===n)break}while(t=Xc(t))}return null}var Bi=/\s+/g;function Le(t,e,n){if(t&&e)if(t.classList)t.classList[n?"add":"remove"](e);else{var o=(" "+t.className+" ").replace(Bi," ").replace(" "+e+" "," ");t.className=(o+(n?" "+e:"")).replace(Bi," ")}}function z(t,e,n){var o=t&&t.style;if(o){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(n=t.currentStyle),e===void 0?n:n[e];!(e in o)&&e.indexOf("webkit")===-1&&(e="-webkit-"+e),o[e]=n+(typeof n=="string"?"":"px")}}function nn(t,e){var n="";if(typeof t=="string")n=t;else do{var o=z(t,"transform");o&&o!=="none"&&(n=o+" "+n)}while(!e&&(t=t.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function cs(t,e,n){if(t){var o=t.getElementsByTagName(e),i=0,s=o.length;if(n)for(;i<s;i++)n(o[i],i);return o}return[]}function xt(){var t=document.scrollingElement;return t||document.documentElement}function De(t,e,n,o,i){if(!(!t.getBoundingClientRect&&t!==window)){var s,r,a,l,c,f,u;if(t!==window&&t.parentNode&&t!==xt()?(s=t.getBoundingClientRect(),r=s.top,a=s.left,l=s.bottom,c=s.right,f=s.height,u=s.width):(r=0,a=0,l=window.innerHeight,c=window.innerWidth,f=window.innerHeight,u=window.innerWidth),(e||n)&&t!==window&&(i=i||t.parentNode,!$t))do if(i&&i.getBoundingClientRect&&(z(i,"transform")!=="none"||n&&z(i,"position")!=="static")){var d=i.getBoundingClientRect();r-=d.top+parseInt(z(i,"border-top-width")),a-=d.left+parseInt(z(i,"border-left-width")),l=r+s.height,c=a+s.width;break}while(i=i.parentNode);if(o&&t!==window){var p=nn(i||t),m=p&&p.a,h=p&&p.d;p&&(r/=h,a/=m,u/=m,f/=h,l=r+f,c=a+u)}return{top:r,left:a,bottom:l,right:c,width:u,height:f}}}function Xi(t,e,n){for(var o=Wt(t,!0),i=De(t)[e];o;){var s=De(o)[n],r=void 0;if(r=i>=s,!r)return o;if(o===xt())break;o=Wt(o,!1)}return!1}function Tn(t,e,n,o){for(var i=0,s=0,r=t.children;s<r.length;){if(r[s].style.display!=="none"&&r[s]!==ee.ghost&&(o||r[s]!==ee.dragged)&&Nt(r[s],n.draggable,t,!1)){if(i===e)return r[s];i++}s++}return null}function hi(t,e){for(var n=t.lastElementChild;n&&(n===ee.ghost||z(n,"display")==="none"||e&&!wr(n,e));)n=n.previousElementSibling;return n||null}function Ve(t,e){var n=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)t.nodeName.toUpperCase()!=="TEMPLATE"&&t!==ee.clone&&(!e||wr(t,e))&&n++;return n}function Gi(t){var e=0,n=0,o=xt();if(t)do{var i=nn(t),s=i.a,r=i.d;e+=t.scrollLeft*s,n+=t.scrollTop*r}while(t!==o&&(t=t.parentNode));return[e,n]}function Gc(t,e){for(var n in t)if(t.hasOwnProperty(n)){for(var o in e)if(e.hasOwnProperty(o)&&e[o]===t[n][o])return Number(n)}return-1}function Wt(t,e){if(!t||!t.getBoundingClientRect)return xt();var n=t,o=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=z(n);if(n.clientWidth<n.scrollWidth&&(i.overflowX=="auto"||i.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(i.overflowY=="auto"||i.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return xt();if(o||e)return n;o=!0}}while(n=n.parentNode);return xt()}function Hc(t,e){if(t&&e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function fo(t,e){return Math.round(t.top)===Math.round(e.top)&&Math.round(t.left)===Math.round(e.left)&&Math.round(t.height)===Math.round(e.height)&&Math.round(t.width)===Math.round(e.width)}var Xn;function us(t,e){return function(){if(!Xn){var n=arguments,o=this;n.length===1?t.call(o,n[0]):t.apply(o,n),Xn=setTimeout(function(){Xn=void 0},e)}}}function Kc(){clearTimeout(Xn),Xn=void 0}function fs(t,e,n){t.scrollLeft+=e,t.scrollTop+=n}function mi(t){var e=window.Polymer,n=window.jQuery||window.Zepto;return e&&e.dom?e.dom(t).cloneNode(!0):n?n(t).clone(!0)[0]:t.cloneNode(!0)}function Hi(t,e){z(t,"position","absolute"),z(t,"top",e.top),z(t,"left",e.left),z(t,"width",e.width),z(t,"height",e.height)}function po(t){z(t,"position",""),z(t,"top",""),z(t,"left",""),z(t,"width",""),z(t,"height","")}var rt="Sortable"+new Date().getTime();function kc(){var t=[],e;return{captureAnimationState:function(){if(t=[],!!this.options.animation){var o=[].slice.call(this.el.children);o.forEach(function(i){if(!(z(i,"display")==="none"||i===ee.ghost)){t.push({target:i,rect:De(i)});var s=Pt({},t[t.length-1].rect);if(i.thisAnimationDuration){var r=nn(i,!0);r&&(s.top-=r.f,s.left-=r.e)}i.fromRect=s}})}},addAnimationState:function(o){t.push(o)},removeAnimationState:function(o){t.splice(Gc(t,{target:o}),1)},animateAll:function(o){var i=this;if(!this.options.animation){clearTimeout(e),typeof o=="function"&&o();return}var s=!1,r=0;t.forEach(function(a){var l=0,c=a.target,f=c.fromRect,u=De(c),d=c.prevFromRect,p=c.prevToRect,m=a.rect,h=nn(c,!0);h&&(u.top-=h.f,u.left-=h.e),c.toRect=u,c.thisAnimationDuration&&fo(d,u)&&!fo(f,u)&&(m.top-u.top)/(m.left-u.left)===(f.top-u.top)/(f.left-u.left)&&(l=Yc(m,d,p,i.options)),fo(u,f)||(c.prevFromRect=f,c.prevToRect=u,l||(l=i.options.animation),i.animate(c,m,u,l)),l&&(s=!0,r=Math.max(r,l),clearTimeout(c.animationResetTimer),c.animationResetTimer=setTimeout(function(){c.animationTime=0,c.prevFromRect=null,c.fromRect=null,c.prevToRect=null,c.thisAnimationDuration=null},l),c.thisAnimationDuration=l)}),clearTimeout(e),s?e=setTimeout(function(){typeof o=="function"&&o()},r):typeof o=="function"&&o(),t=[]},animate:function(o,i,s,r){if(r){z(o,"transition",""),z(o,"transform","");var a=nn(this.el),l=a&&a.a,c=a&&a.d,f=(i.left-s.left)/(l||1),u=(i.top-s.top)/(c||1);o.animatingX=!!f,o.animatingY=!!u,z(o,"transform","translate3d("+f+"px,"+u+"px,0)"),this.forRepaintDummy=Wc(o),z(o,"transition","transform "+r+"ms"+(this.options.easing?" "+this.options.easing:"")),z(o,"transform","translate3d(0,0,0)"),typeof o.animated=="number"&&clearTimeout(o.animated),o.animated=setTimeout(function(){z(o,"transition",""),z(o,"transform",""),o.animated=!1,o.animatingX=!1,o.animatingY=!1},r)}}}}function Wc(t){return t.offsetWidth}function Yc(t,e,n,o){return Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))/Math.sqrt(Math.pow(e.top-n.top,2)+Math.pow(e.left-n.left,2))*o.animation}var un=[],ho={initializeByDefault:!0},rr={mount:function(e){for(var n in ho)ho.hasOwnProperty(n)&&!(n in e)&&(e[n]=ho[n]);un.forEach(function(o){if(o.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),un.push(e)},pluginEvent:function(e,n,o){var i=this;this.eventCanceled=!1,o.cancel=function(){i.eventCanceled=!0};var s=e+"Global";un.forEach(function(r){n[r.pluginName]&&(n[r.pluginName][s]&&n[r.pluginName][s](Pt({sortable:n},o)),n.options[r.pluginName]&&n[r.pluginName][e]&&n[r.pluginName][e](Pt({sortable:n},o)))})},initializePlugins:function(e,n,o,i){un.forEach(function(a){var l=a.pluginName;if(!(!e.options[l]&&!a.initializeByDefault)){var c=new a(e,n,e.options);c.sortable=e,c.options=e.options,e[l]=c,St(o,c.defaults)}});for(var s in e.options)if(e.options.hasOwnProperty(s)){var r=this.modifyOption(e,s,e.options[s]);typeof r<"u"&&(e.options[s]=r)}},getEventProperties:function(e,n){var o={};return un.forEach(function(i){typeof i.eventProperties=="function"&&St(o,i.eventProperties.call(n[i.pluginName],e))}),o},modifyOption:function(e,n,o){var i;return un.forEach(function(s){e[s.pluginName]&&s.optionListeners&&typeof s.optionListeners[n]=="function"&&(i=s.optionListeners[n].call(e[s.pluginName],o))}),i}};function Fn(t){var e=t.sortable,n=t.rootEl,o=t.name,i=t.targetEl,s=t.cloneEl,r=t.toEl,a=t.fromEl,l=t.oldIndex,c=t.newIndex,f=t.oldDraggableIndex,u=t.newDraggableIndex,d=t.originalEvent,p=t.putSortable,m=t.extraEventProperties;if(e=e||n&&n[rt],!!e){var h,v=e.options,g="on"+o.charAt(0).toUpperCase()+o.substr(1);window.CustomEvent&&!$t&&!nr?h=new CustomEvent(o,{bubbles:!0,cancelable:!0}):(h=document.createEvent("Event"),h.initEvent(o,!0,!0)),h.to=r||n,h.from=a||n,h.item=i||n,h.clone=s,h.oldIndex=l,h.newIndex=c,h.oldDraggableIndex=f,h.newDraggableIndex=u,h.originalEvent=d,h.pullMode=p?p.lastPutMode:void 0;var y=Pt(Pt({},m),rr.getEventProperties(o,e));for(var O in y)h[O]=y[O];n&&n.dispatchEvent(h),v[g]&&v[g].call(e,h)}}var Jc=["evt"],ut=function(e,n){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=o.evt,s=Lc(o,Jc);rr.pluginEvent.bind(ee)(e,n,Pt({dragEl:G,parentEl:we,ghostEl:ae,rootEl:Re,nextEl:_t,lastDownEl:Or,cloneEl:Fe,cloneHidden:Gt,dragStarted:Vn,putSortable:ze,activeSortable:ee.active,originalEvent:i,oldIndex:hn,oldDraggableIndex:Gn,newIndex:mt,newDraggableIndex:Xt,hideGhostForTarget:ms,unhideGhostForTarget:vs,cloneNowHidden:function(){Gt=!0},cloneNowShown:function(){Gt=!1},dispatchSortableEvent:function(a){at({sortable:n,name:a,originalEvent:i})}},s))};function at(t){Fn(Pt({putSortable:ze,cloneEl:Fe,targetEl:G,rootEl:Re,oldIndex:hn,oldDraggableIndex:Gn,newIndex:mt,newDraggableIndex:Xt},t))}var G,we,ae,Re,_t,Or,Fe,Gt,hn,mt,Gn,Xt,cr,ze,pn=!1,Fr=!1,Vr=[],zt,bt,mo,vo,Ki,ki,Vn,fn,Hn,Kn=!1,ur=!1,Ir,et,go=[],Ro=!1,Ur=[],io=typeof document<"u",fr=ss,Wi=nr||$t?"cssFloat":"float",zc=io&&!Bc&&!ss&&"draggable"in document.createElement("div"),ds=(function(){if(io){if($t)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto",t.style.pointerEvents==="auto"}})(),ps=function(e,n){var o=z(e),i=parseInt(o.width)-parseInt(o.paddingLeft)-parseInt(o.paddingRight)-parseInt(o.borderLeftWidth)-parseInt(o.borderRightWidth),s=Tn(e,0,n),r=Tn(e,1,n),a=s&&z(s),l=r&&z(r),c=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+De(s).width,f=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+De(r).width;if(o.display==="flex")return o.flexDirection==="column"||o.flexDirection==="column-reverse"?"vertical":"horizontal";if(o.display==="grid")return o.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(s&&a.float&&a.float!=="none"){var u=a.float==="left"?"left":"right";return r&&(l.clear==="both"||l.clear===u)?"vertical":"horizontal"}return s&&(a.display==="block"||a.display==="flex"||a.display==="table"||a.display==="grid"||c>=i&&o[Wi]==="none"||r&&o[Wi]==="none"&&c+f>i)?"vertical":"horizontal"},Qc=function(e,n,o){var i=o?e.left:e.top,s=o?e.right:e.bottom,r=o?e.width:e.height,a=o?n.left:n.top,l=o?n.right:n.bottom,c=o?n.width:n.height;return i===a||s===l||i+r/2===a+c/2},Zc=function(e,n){var o;return Vr.some(function(i){var s=i[rt].options.emptyInsertThreshold;if(!(!s||hi(i))){var r=De(i),a=e>=r.left-s&&e<=r.right+s,l=n>=r.top-s&&n<=r.bottom+s;if(a&&l)return o=i}}),o},hs=function(e){function n(s,r){return function(a,l,c,f){var u=a.options.group.name&&l.options.group.name&&a.options.group.name===l.options.group.name;if(s==null&&(r||u))return!0;if(s==null||s===!1)return!1;if(r&&s==="clone")return s;if(typeof s=="function")return n(s(a,l,c,f),r)(a,l,c,f);var d=(r?a:l).options.group.name;return s===!0||typeof s=="string"&&s===d||s.join&&s.indexOf(d)>-1}}var o={},i=e.group;(!i||Tr(i)!="object")&&(i={name:i}),o.name=i.name,o.checkPull=n(i.pull,!0),o.checkPut=n(i.put),o.revertClone=i.revertClone,e.group=o},ms=function(){!ds&&ae&&z(ae,"display","none")},vs=function(){!ds&&ae&&z(ae,"display","")};io&&document.addEventListener("click",function(t){if(Fr)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),Fr=!1,!1},!0);var Qt=function(e){if(G){e=e.touches?e.touches[0]:e;var n=Zc(e.clientX,e.clientY);if(n){var o={};for(var i in e)e.hasOwnProperty(i)&&(o[i]=e[i]);o.target=o.rootEl=n,o.preventDefault=void 0,o.stopPropagation=void 0,n[rt]._onDragOver(o)}}},_c=function(e){G&&G.parentNode[rt]._isOutsideThisEl(e.target)};function ee(t,e){if(!(t&&t.nodeType&&t.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=St({},e),t[rt]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return ps(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(r,a){r.setData("Text",a.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:ee.supportPointer!==!1&&"PointerEvent"in window&&!Bn,emptyInsertThreshold:5};rr.initializePlugins(this,t,n);for(var o in n)!(o in e)&&(e[o]=n[o]);hs(e);for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));this.nativeDraggable=e.forceFallback?!1:zc,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?he(t,"pointerdown",this._onTapStart):(he(t,"mousedown",this._onTapStart),he(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(he(t,"dragover",this),he(t,"dragenter",this)),Vr.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),St(this,kc())}ee.prototype={constructor:ee,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(fn=null)},_getDirection:function(e,n){return typeof this.options.direction=="function"?this.options.direction.call(this,e,n,G):this.options.direction},_onTapStart:function(e){if(e.cancelable){var n=this,o=this.el,i=this.options,s=i.preventOnFilter,r=e.type,a=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,l=(a||e).target,c=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||l,f=i.filter;if(au(o),!G&&!(/mousedown|pointerdown/.test(r)&&e.button!==0||i.disabled)&&!c.isContentEditable&&!(!this.nativeDraggable&&Bn&&l&&l.tagName.toUpperCase()==="SELECT")&&(l=Nt(l,i.draggable,o,!1),!(l&&l.animated)&&Or!==l)){if(hn=Ve(l),Gn=Ve(l,i.draggable),typeof f=="function"){if(f.call(this,e,l,this)){at({sortable:n,rootEl:c,name:"filter",targetEl:l,toEl:o,fromEl:o}),ut("filter",n,{evt:e}),s&&e.cancelable&&e.preventDefault();return}}else if(f&&(f=f.split(",").some(function(u){if(u=Nt(c,u.trim(),o,!1),u)return at({sortable:n,rootEl:u,name:"filter",targetEl:l,fromEl:o,toEl:o}),ut("filter",n,{evt:e}),!0}),f)){s&&e.cancelable&&e.preventDefault();return}i.handle&&!Nt(c,i.handle,o,!1)||this._prepareDragStart(e,a,l)}}},_prepareDragStart:function(e,n,o){var i=this,s=i.el,r=i.options,a=s.ownerDocument,l;if(o&&!G&&o.parentNode===s){var c=De(o);if(Re=s,G=o,we=G.parentNode,_t=G.nextSibling,Or=o,cr=r.group,ee.dragged=G,zt={target:G,clientX:(n||e).clientX,clientY:(n||e).clientY},Ki=zt.clientX-c.left,ki=zt.clientY-c.top,this._lastX=(n||e).clientX,this._lastY=(n||e).clientY,G.style["will-change"]="all",l=function(){if(ut("delayEnded",i,{evt:e}),ee.eventCanceled){i._onDrop();return}i._disableDelayedDragEvents(),!ji&&i.nativeDraggable&&(G.draggable=!0),i._triggerDragStart(e,n),at({sortable:i,name:"choose",originalEvent:e}),Le(G,r.chosenClass,!0)},r.ignore.split(",").forEach(function(f){cs(G,f.trim(),yo)}),he(a,"dragover",Qt),he(a,"mousemove",Qt),he(a,"touchmove",Qt),he(a,"mouseup",i._onDrop),he(a,"touchend",i._onDrop),he(a,"touchcancel",i._onDrop),ji&&this.nativeDraggable&&(this.options.touchStartThreshold=4,G.draggable=!0),ut("delayStart",this,{evt:e}),r.delay&&(!r.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(nr||$t))){if(ee.eventCanceled){this._onDrop();return}he(a,"mouseup",i._disableDelayedDrag),he(a,"touchend",i._disableDelayedDrag),he(a,"touchcancel",i._disableDelayedDrag),he(a,"mousemove",i._delayedDragTouchMoveHandler),he(a,"touchmove",i._delayedDragTouchMoveHandler),r.supportPointer&&he(a,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(l,r.delay)}else l()}},_delayedDragTouchMoveHandler:function(e){var n=e.touches?e.touches[0]:e;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){G&&yo(G),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;fe(e,"mouseup",this._disableDelayedDrag),fe(e,"touchend",this._disableDelayedDrag),fe(e,"touchcancel",this._disableDelayedDrag),fe(e,"mousemove",this._delayedDragTouchMoveHandler),fe(e,"touchmove",this._delayedDragTouchMoveHandler),fe(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,n){n=n||e.pointerType=="touch"&&e,!this.nativeDraggable||n?this.options.supportPointer?he(document,"pointermove",this._onTouchMove):n?he(document,"touchmove",this._onTouchMove):he(document,"mousemove",this._onTouchMove):(he(G,"dragend",this),he(Re,"dragstart",this._onDragStart));try{document.selection?Nr(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,n){if(pn=!1,Re&&G){ut("dragStarted",this,{evt:n}),this.nativeDraggable&&he(document,"dragover",_c);var o=this.options;!e&&Le(G,o.dragClass,!1),Le(G,o.ghostClass,!0),ee.active=this,e&&this._appendGhost(),at({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(bt){this._lastX=bt.clientX,this._lastY=bt.clientY,ms();for(var e=document.elementFromPoint(bt.clientX,bt.clientY),n=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(bt.clientX,bt.clientY),e!==n);)n=e;if(G.parentNode[rt]._isOutsideThisEl(e),n)do{if(n[rt]){var o=void 0;if(o=n[rt]._onDragOver({clientX:bt.clientX,clientY:bt.clientY,target:e,rootEl:n}),o&&!this.options.dragoverBubble)break}e=n}while(n=n.parentNode);vs()}},_onTouchMove:function(e){if(zt){var n=this.options,o=n.fallbackTolerance,i=n.fallbackOffset,s=e.touches?e.touches[0]:e,r=ae&&nn(ae,!0),a=ae&&r&&r.a,l=ae&&r&&r.d,c=fr&&et&&Gi(et),f=(s.clientX-zt.clientX+i.x)/(a||1)+(c?c[0]-go[0]:0)/(a||1),u=(s.clientY-zt.clientY+i.y)/(l||1)+(c?c[1]-go[1]:0)/(l||1);if(!ee.active&&!pn){if(o&&Math.max(Math.abs(s.clientX-this._lastX),Math.abs(s.clientY-this._lastY))<o)return;this._onDragStart(e,!0)}if(ae){r?(r.e+=f-(mo||0),r.f+=u-(vo||0)):r={a:1,b:0,c:0,d:1,e:f,f:u};var d="matrix(".concat(r.a,",").concat(r.b,",").concat(r.c,",").concat(r.d,",").concat(r.e,",").concat(r.f,")");z(ae,"webkitTransform",d),z(ae,"mozTransform",d),z(ae,"msTransform",d),z(ae,"transform",d),mo=f,vo=u,bt=s}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!ae){var e=this.options.fallbackOnBody?document.body:Re,n=De(G,!0,fr,!0,e),o=this.options;if(fr){for(et=e;z(et,"position")==="static"&&z(et,"transform")==="none"&&et!==document;)et=et.parentNode;et!==document.body&&et!==document.documentElement?(et===document&&(et=xt()),n.top+=et.scrollTop,n.left+=et.scrollLeft):et=xt(),go=Gi(et)}ae=G.cloneNode(!0),Le(ae,o.ghostClass,!1),Le(ae,o.fallbackClass,!0),Le(ae,o.dragClass,!0),z(ae,"transition",""),z(ae,"transform",""),z(ae,"box-sizing","border-box"),z(ae,"margin",0),z(ae,"top",n.top),z(ae,"left",n.left),z(ae,"width",n.width),z(ae,"height",n.height),z(ae,"opacity","0.8"),z(ae,"position",fr?"absolute":"fixed"),z(ae,"zIndex","100000"),z(ae,"pointerEvents","none"),ee.ghost=ae,e.appendChild(ae),z(ae,"transform-origin",Ki/parseInt(ae.style.width)*100+"% "+ki/parseInt(ae.style.height)*100+"%")}},_onDragStart:function(e,n){var o=this,i=e.dataTransfer,s=o.options;if(ut("dragStart",this,{evt:e}),ee.eventCanceled){this._onDrop();return}ut("setupClone",this),ee.eventCanceled||(Fe=mi(G),Fe.draggable=!1,Fe.style["will-change"]="",this._hideClone(),Le(Fe,this.options.chosenClass,!1),ee.clone=Fe),o.cloneId=Nr(function(){ut("clone",o),!ee.eventCanceled&&(o.options.removeCloneOnHide||Re.insertBefore(Fe,G),o._hideClone(),at({sortable:o,name:"clone"}))}),!n&&Le(G,s.dragClass,!0),n?(Fr=!0,o._loopId=setInterval(o._emulateDragOver,50)):(fe(document,"mouseup",o._onDrop),fe(document,"touchend",o._onDrop),fe(document,"touchcancel",o._onDrop),i&&(i.effectAllowed="move",s.setData&&s.setData.call(o,i,G)),he(document,"drop",o),z(G,"transform","translateZ(0)")),pn=!0,o._dragStartId=Nr(o._dragStarted.bind(o,n,e)),he(document,"selectstart",o),Vn=!0,Bn&&z(document.body,"user-select","none")},_onDragOver:function(e){var n=this.el,o=e.target,i,s,r,a=this.options,l=a.group,c=ee.active,f=cr===l,u=a.sort,d=ze||c,p,m=this,h=!1;if(Ro)return;function v(re,de){ut(re,m,Pt({evt:e,isOwner:f,axis:p?"vertical":"horizontal",revert:r,dragRect:i,targetRect:s,canSort:u,fromSortable:d,target:o,completed:y,onMove:function(L,D){return dr(Re,n,G,i,L,De(L),e,D)},changed:O},de))}function g(){v("dragOverAnimationCapture"),m.captureAnimationState(),m!==d&&d.captureAnimationState()}function y(re){return v("dragOverCompleted",{insertion:re}),re&&(f?c._hideClone():c._showClone(m),m!==d&&(Le(G,ze?ze.options.ghostClass:c.options.ghostClass,!1),Le(G,a.ghostClass,!0)),ze!==m&&m!==ee.active?ze=m:m===ee.active&&ze&&(ze=null),d===m&&(m._ignoreWhileAnimating=o),m.animateAll(function(){v("dragOverAnimationComplete"),m._ignoreWhileAnimating=null}),m!==d&&(d.animateAll(),d._ignoreWhileAnimating=null)),(o===G&&!G.animated||o===n&&!o.animated)&&(fn=null),!a.dragoverBubble&&!e.rootEl&&o!==document&&(G.parentNode[rt]._isOutsideThisEl(e.target),!re&&Qt(e)),!a.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),h=!0}function O(){mt=Ve(G),Xt=Ve(G,a.draggable),at({sortable:m,name:"change",toEl:n,newIndex:mt,newDraggableIndex:Xt,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),o=Nt(o,a.draggable,n,!0),v("dragOver"),ee.eventCanceled)return h;if(G.contains(e.target)||o.animated&&o.animatingX&&o.animatingY||m._ignoreWhileAnimating===o)return y(!1);if(Fr=!1,c&&!a.disabled&&(f?u||(r=we!==Re):ze===this||(this.lastPutMode=cr.checkPull(this,c,G,e))&&l.checkPut(this,c,G,e))){if(p=this._getDirection(e,o)==="vertical",i=De(G),v("dragOverValid"),ee.eventCanceled)return h;if(r)return we=Re,g(),this._hideClone(),v("revert"),ee.eventCanceled||(_t?Re.insertBefore(G,_t):Re.appendChild(G)),y(!0);var b=hi(n,a.draggable);if(!b||nu(e,p,this)&&!b.animated){if(b===G)return y(!1);if(b&&n===e.target&&(o=b),o&&(s=De(o)),dr(Re,n,G,i,o,s,e,!!o)!==!1)return g(),n.appendChild(G),we=n,O(),y(!0)}else if(b&&tu(e,p,this)){var A=Tn(n,0,a,!0);if(A===G)return y(!1);if(o=A,s=De(o),dr(Re,n,G,i,o,s,e,!1)!==!1)return g(),n.insertBefore(G,A),we=n,O(),y(!0)}else if(o.parentNode===n){s=De(o);var C=0,K,M=G.parentNode!==n,I=!Qc(G.animated&&G.toRect||i,o.animated&&o.toRect||s,p),R=p?"top":"left",j=Xi(o,"top","top")||Xi(G,"top","top"),Y=j?j.scrollTop:void 0;fn!==o&&(K=s[R],Kn=!1,ur=!I&&a.invertSwap||M),C=ru(e,o,s,p,I?1:a.swapThreshold,a.invertedSwapThreshold==null?a.swapThreshold:a.invertedSwapThreshold,ur,fn===o);var P;if(C!==0){var x=Ve(G);do x-=C,P=we.children[x];while(P&&(z(P,"display")==="none"||P===ae))}if(C===0||P===o)return y(!1);fn=o,Hn=C;var B=o.nextElementSibling,V=!1;V=C===1;var X=dr(Re,n,G,i,o,s,e,V);if(X!==!1)return(X===1||X===-1)&&(V=X===1),Ro=!0,setTimeout(eu,30),g(),V&&!B?n.appendChild(G):o.parentNode.insertBefore(G,V?B:o),j&&fs(j,0,Y-j.scrollTop),we=G.parentNode,K!==void 0&&!ur&&(Ir=Math.abs(K-De(o)[R])),O(),y(!0)}if(n.contains(G))return y(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){fe(document,"mousemove",this._onTouchMove),fe(document,"touchmove",this._onTouchMove),fe(document,"pointermove",this._onTouchMove),fe(document,"dragover",Qt),fe(document,"mousemove",Qt),fe(document,"touchmove",Qt)},_offUpEvents:function(){var e=this.el.ownerDocument;fe(e,"mouseup",this._onDrop),fe(e,"touchend",this._onDrop),fe(e,"pointerup",this._onDrop),fe(e,"touchcancel",this._onDrop),fe(document,"selectstart",this)},_onDrop:function(e){var n=this.el,o=this.options;if(mt=Ve(G),Xt=Ve(G,o.draggable),ut("drop",this,{evt:e}),we=G&&G.parentNode,mt=Ve(G),Xt=Ve(G,o.draggable),ee.eventCanceled){this._nulling();return}pn=!1,ur=!1,Kn=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Do(this.cloneId),Do(this._dragStartId),this.nativeDraggable&&(fe(document,"drop",this),fe(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Bn&&z(document.body,"user-select",""),z(G,"transform",""),e&&(Vn&&(e.cancelable&&e.preventDefault(),!o.dropBubble&&e.stopPropagation()),ae&&ae.parentNode&&ae.parentNode.removeChild(ae),(Re===we||ze&&ze.lastPutMode!=="clone")&&Fe&&Fe.parentNode&&Fe.parentNode.removeChild(Fe),G&&(this.nativeDraggable&&fe(G,"dragend",this),yo(G),G.style["will-change"]="",Vn&&!pn&&Le(G,ze?ze.options.ghostClass:this.options.ghostClass,!1),Le(G,this.options.chosenClass,!1),at({sortable:this,name:"unchoose",toEl:we,newIndex:null,newDraggableIndex:null,originalEvent:e}),Re!==we?(mt>=0&&(at({rootEl:we,name:"add",toEl:we,fromEl:Re,originalEvent:e}),at({sortable:this,name:"remove",toEl:we,originalEvent:e}),at({rootEl:we,name:"sort",toEl:we,fromEl:Re,originalEvent:e}),at({sortable:this,name:"sort",toEl:we,originalEvent:e})),ze&&ze.save()):mt!==hn&&mt>=0&&(at({sortable:this,name:"update",toEl:we,originalEvent:e}),at({sortable:this,name:"sort",toEl:we,originalEvent:e})),ee.active&&((mt==null||mt===-1)&&(mt=hn,Xt=Gn),at({sortable:this,name:"end",toEl:we,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){ut("nulling",this),Re=G=we=ae=_t=Fe=Or=Gt=zt=bt=Vn=mt=Xt=hn=Gn=fn=Hn=ze=cr=ee.dragged=ee.ghost=ee.clone=ee.active=null,Ur.forEach(function(e){e.checked=!0}),Ur.length=mo=vo=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":G&&(this._onDragOver(e),qc(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],n,o=this.el.children,i=0,s=o.length,r=this.options;i<s;i++)n=o[i],Nt(n,r.draggable,this.el,!1)&&e.push(n.getAttribute(r.dataIdAttr)||iu(n));return e},sort:function(e,n){var o={},i=this.el;this.toArray().forEach(function(s,r){var a=i.children[r];Nt(a,this.options.draggable,i,!1)&&(o[s]=a)},this),n&&this.captureAnimationState(),e.forEach(function(s){o[s]&&(i.removeChild(o[s]),i.appendChild(o[s]))}),n&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,n){return Nt(e,n||this.options.draggable,this.el,!1)},option:function(e,n){var o=this.options;if(n===void 0)return o[e];var i=rr.modifyOption(this,e,n);typeof i<"u"?o[e]=i:o[e]=n,e==="group"&&hs(o)},destroy:function(){ut("destroy",this);var e=this.el;e[rt]=null,fe(e,"mousedown",this._onTapStart),fe(e,"touchstart",this._onTapStart),fe(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(fe(e,"dragover",this),fe(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(n){n.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Vr.splice(Vr.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!Gt){if(ut("hideClone",this),ee.eventCanceled)return;z(Fe,"display","none"),this.options.removeCloneOnHide&&Fe.parentNode&&Fe.parentNode.removeChild(Fe),Gt=!0}},_showClone:function(e){if(e.lastPutMode!=="clone"){this._hideClone();return}if(Gt){if(ut("showClone",this),ee.eventCanceled)return;G.parentNode==Re&&!this.options.group.revertClone?Re.insertBefore(Fe,G):_t?Re.insertBefore(Fe,_t):Re.appendChild(Fe),this.options.group.revertClone&&this.animate(G,Fe),z(Fe,"display",""),Gt=!1}}};function qc(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}function dr(t,e,n,o,i,s,r,a){var l,c=t[rt],f=c.options.onMove,u;return window.CustomEvent&&!$t&&!nr?l=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(l=document.createEvent("Event"),l.initEvent("move",!0,!0)),l.to=e,l.from=t,l.dragged=n,l.draggedRect=o,l.related=i||e,l.relatedRect=s||De(e),l.willInsertAfter=a,l.originalEvent=r,t.dispatchEvent(l),f&&(u=f.call(c,l,r)),u}function yo(t){t.draggable=!1}function eu(){Ro=!1}function tu(t,e,n){var o=De(Tn(n.el,0,n.options,!0)),i=10;return e?t.clientX<o.left-i||t.clientY<o.top&&t.clientX<o.right:t.clientY<o.top-i||t.clientY<o.bottom&&t.clientX<o.left}function nu(t,e,n){var o=De(hi(n.el,n.options.draggable)),i=10;return e?t.clientX>o.right+i||t.clientX<=o.right&&t.clientY>o.bottom&&t.clientX>=o.left:t.clientX>o.right&&t.clientY>o.top||t.clientX<=o.right&&t.clientY>o.bottom+i}function ru(t,e,n,o,i,s,r,a){var l=o?t.clientY:t.clientX,c=o?n.height:n.width,f=o?n.top:n.left,u=o?n.bottom:n.right,d=!1;if(!r){if(a&&Ir<c*i){if(!Kn&&(Hn===1?l>f+c*s/2:l<u-c*s/2)&&(Kn=!0),Kn)d=!0;else if(Hn===1?l<f+Ir:l>u-Ir)return-Hn}else if(l>f+c*(1-i)/2&&l<u-c*(1-i)/2)return ou(e)}return d=d||r,d&&(l<f+c*s/2||l>u-c*s/2)?l>f+c/2?1:-1:0}function ou(t){return Ve(G)<Ve(t)?1:-1}function iu(t){for(var e=t.tagName+t.className+t.src+t.href+t.textContent,n=e.length,o=0;n--;)o+=e.charCodeAt(n);return o.toString(36)}function au(t){Ur.length=0;for(var e=t.getElementsByTagName("input"),n=e.length;n--;){var o=e[n];o.checked&&Ur.push(o)}}function Nr(t){return setTimeout(t,0)}function Do(t){return clearTimeout(t)}io&&he(document,"touchmove",function(t){(ee.active||pn)&&t.cancelable&&t.preventDefault()});ee.utils={on:he,off:fe,css:z,find:cs,is:function(e,n){return!!Nt(e,n,e,!1)},extend:Hc,throttle:us,closest:Nt,toggleClass:Le,clone:mi,index:Ve,nextTick:Nr,cancelNextTick:Do,detectDirection:ps,getChild:Tn};ee.get=function(t){return t[rt]};ee.mount=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e[0].constructor===Array&&(e=e[0]),e.forEach(function(o){if(!o.prototype||!o.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(o));o.utils&&(ee.utils=Pt(Pt({},ee.utils),o.utils)),rr.mount(o)})};ee.create=function(t,e){return new ee(t,e)};ee.version=jc;var Ke=[],Un,Mo,Lo=!1,Eo,So,$r,$n;function su(){function t(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var e in this)e.charAt(0)==="_"&&typeof this[e]=="function"&&(this[e]=this[e].bind(this))}return t.prototype={dragStarted:function(n){var o=n.originalEvent;this.sortable.nativeDraggable?he(document,"dragover",this._handleAutoScroll):this.options.supportPointer?he(document,"pointermove",this._handleFallbackAutoScroll):o.touches?he(document,"touchmove",this._handleFallbackAutoScroll):he(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(n){var o=n.originalEvent;!this.options.dragOverBubble&&!o.rootEl&&this._handleAutoScroll(o)},drop:function(){this.sortable.nativeDraggable?fe(document,"dragover",this._handleAutoScroll):(fe(document,"pointermove",this._handleFallbackAutoScroll),fe(document,"touchmove",this._handleFallbackAutoScroll),fe(document,"mousemove",this._handleFallbackAutoScroll)),Yi(),Cr(),Kc()},nulling:function(){$r=Mo=Un=Lo=$n=Eo=So=null,Ke.length=0},_handleFallbackAutoScroll:function(n){this._handleAutoScroll(n,!0)},_handleAutoScroll:function(n,o){var i=this,s=(n.touches?n.touches[0]:n).clientX,r=(n.touches?n.touches[0]:n).clientY,a=document.elementFromPoint(s,r);if($r=n,o||this.options.forceAutoScrollFallback||nr||$t||Bn){bo(n,this.options,a,o);var l=Wt(a,!0);Lo&&(!$n||s!==Eo||r!==So)&&($n&&Yi(),$n=setInterval(function(){var c=Wt(document.elementFromPoint(s,r),!0);c!==l&&(l=c,Cr()),bo(n,i.options,c,o)},10),Eo=s,So=r)}else{if(!this.options.bubbleScroll||Wt(a,!0)===xt()){Cr();return}bo(n,this.options,Wt(a,!1),!1)}}},St(t,{pluginName:"scroll",initializeByDefault:!0})}function Cr(){Ke.forEach(function(t){clearInterval(t.pid)}),Ke=[]}function Yi(){clearInterval($n)}var bo=us(function(t,e,n,o){if(e.scroll){var i=(t.touches?t.touches[0]:t).clientX,s=(t.touches?t.touches[0]:t).clientY,r=e.scrollSensitivity,a=e.scrollSpeed,l=xt(),c=!1,f;Mo!==n&&(Mo=n,Cr(),Un=e.scroll,f=e.scrollFn,Un===!0&&(Un=Wt(n,!0)));var u=0,d=Un;do{var p=d,m=De(p),h=m.top,v=m.bottom,g=m.left,y=m.right,O=m.width,b=m.height,A=void 0,C=void 0,K=p.scrollWidth,M=p.scrollHeight,I=z(p),R=p.scrollLeft,j=p.scrollTop;p===l?(A=O<K&&(I.overflowX==="auto"||I.overflowX==="scroll"||I.overflowX==="visible"),C=b<M&&(I.overflowY==="auto"||I.overflowY==="scroll"||I.overflowY==="visible")):(A=O<K&&(I.overflowX==="auto"||I.overflowX==="scroll"),C=b<M&&(I.overflowY==="auto"||I.overflowY==="scroll"));var Y=A&&(Math.abs(y-i)<=r&&R+O<K)-(Math.abs(g-i)<=r&&!!R),P=C&&(Math.abs(v-s)<=r&&j+b<M)-(Math.abs(h-s)<=r&&!!j);if(!Ke[u])for(var x=0;x<=u;x++)Ke[x]||(Ke[x]={});(Ke[u].vx!=Y||Ke[u].vy!=P||Ke[u].el!==p)&&(Ke[u].el=p,Ke[u].vx=Y,Ke[u].vy=P,clearInterval(Ke[u].pid),(Y!=0||P!=0)&&(c=!0,Ke[u].pid=setInterval((function(){o&&this.layer===0&&ee.active._onTouchMove($r);var B=Ke[this.layer].vy?Ke[this.layer].vy*a:0,V=Ke[this.layer].vx?Ke[this.layer].vx*a:0;typeof f=="function"&&f.call(ee.dragged.parentNode[rt],V,B,t,$r,Ke[this.layer].el)!=="continue"||fs(Ke[this.layer].el,V,B)}).bind({layer:u}),24))),u++}while(e.bubbleScroll&&d!==l&&(d=Wt(d,!1)));Lo=c}},30),gs=function(e){var n=e.originalEvent,o=e.putSortable,i=e.dragEl,s=e.activeSortable,r=e.dispatchSortableEvent,a=e.hideGhostForTarget,l=e.unhideGhostForTarget;if(n){var c=o||s;a();var f=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,u=document.elementFromPoint(f.clientX,f.clientY);l(),c&&!c.el.contains(u)&&(r("spill"),this.onSpill({dragEl:i,putSortable:o}))}};function vi(){}vi.prototype={startIndex:null,dragStart:function(e){var n=e.oldDraggableIndex;this.startIndex=n},onSpill:function(e){var n=e.dragEl,o=e.putSortable;this.sortable.captureAnimationState(),o&&o.captureAnimationState();var i=Tn(this.sortable.el,this.startIndex,this.options);i?this.sortable.el.insertBefore(n,i):this.sortable.el.appendChild(n),this.sortable.animateAll(),o&&o.animateAll()},drop:gs};St(vi,{pluginName:"revertOnSpill"});function gi(){}gi.prototype={onSpill:function(e){var n=e.dragEl,o=e.putSortable,i=o||this.sortable;i.captureAnimationState(),n.parentNode&&n.parentNode.removeChild(n),i.animateAll()},drop:gs};St(gi,{pluginName:"removeOnSpill"});var yt;function lu(){function t(){this.defaults={swapClass:"sortable-swap-highlight"}}return t.prototype={dragStart:function(n){var o=n.dragEl;yt=o},dragOverValid:function(n){var o=n.completed,i=n.target,s=n.onMove,r=n.activeSortable,a=n.changed,l=n.cancel;if(r.options.swap){var c=this.sortable.el,f=this.options;if(i&&i!==c){var u=yt;s(i)!==!1?(Le(i,f.swapClass,!0),yt=i):yt=null,u&&u!==yt&&Le(u,f.swapClass,!1)}a(),o(!0),l()}},drop:function(n){var o=n.activeSortable,i=n.putSortable,s=n.dragEl,r=i||this.sortable,a=this.options;yt&&Le(yt,a.swapClass,!1),yt&&(a.swap||i&&i.options.swap)&&s!==yt&&(r.captureAnimationState(),r!==o&&o.captureAnimationState(),cu(s,yt),r.animateAll(),r!==o&&o.animateAll())},nulling:function(){yt=null}},St(t,{pluginName:"swap",eventProperties:function(){return{swapItem:yt}}})}function cu(t,e){var n=t.parentNode,o=e.parentNode,i,s;!n||!o||n.isEqualNode(e)||o.isEqualNode(t)||(i=Ve(t),s=Ve(e),n.isEqualNode(o)&&i<s&&s++,n.insertBefore(e,n.children[i]),o.insertBefore(t,o.children[s]))}var oe=[],ht=[],Mn,Tt,Ln=!1,ft=!1,dn=!1,Ce,wn,pr;function uu(){function t(e){for(var n in this)n.charAt(0)==="_"&&typeof this[n]=="function"&&(this[n]=this[n].bind(this));e.options.supportPointer?he(document,"pointerup",this._deselectMultiDrag):(he(document,"mouseup",this._deselectMultiDrag),he(document,"touchend",this._deselectMultiDrag)),he(document,"keydown",this._checkKeyDown),he(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(i,s){var r="";oe.length&&Tt===e?oe.forEach(function(a,l){r+=(l?", ":"")+a.textContent}):r=s.textContent,i.setData("Text",r)}}}return t.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(n){var o=n.dragEl;Ce=o},delayEnded:function(){this.isMultiDrag=~oe.indexOf(Ce)},setupClone:function(n){var o=n.sortable,i=n.cancel;if(this.isMultiDrag){for(var s=0;s<oe.length;s++)ht.push(mi(oe[s])),ht[s].sortableIndex=oe[s].sortableIndex,ht[s].draggable=!1,ht[s].style["will-change"]="",Le(ht[s],this.options.selectedClass,!1),oe[s]===Ce&&Le(ht[s],this.options.chosenClass,!1);o._hideClone(),i()}},clone:function(n){var o=n.sortable,i=n.rootEl,s=n.dispatchSortableEvent,r=n.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||oe.length&&Tt===o&&(Ji(!0,i),s("clone"),r()))},showClone:function(n){var o=n.cloneNowShown,i=n.rootEl,s=n.cancel;this.isMultiDrag&&(Ji(!1,i),ht.forEach(function(r){z(r,"display","")}),o(),pr=!1,s())},hideClone:function(n){var o=this;n.sortable;var i=n.cloneNowHidden,s=n.cancel;this.isMultiDrag&&(ht.forEach(function(r){z(r,"display","none"),o.options.removeCloneOnHide&&r.parentNode&&r.parentNode.removeChild(r)}),i(),pr=!0,s())},dragStartGlobal:function(n){n.sortable,!this.isMultiDrag&&Tt&&Tt.multiDrag._deselectMultiDrag(),oe.forEach(function(o){o.sortableIndex=Ve(o)}),oe=oe.sort(function(o,i){return o.sortableIndex-i.sortableIndex}),dn=!0},dragStarted:function(n){var o=this,i=n.sortable;if(this.isMultiDrag){if(this.options.sort&&(i.captureAnimationState(),this.options.animation)){oe.forEach(function(r){r!==Ce&&z(r,"position","absolute")});var s=De(Ce,!1,!0,!0);oe.forEach(function(r){r!==Ce&&Hi(r,s)}),ft=!0,Ln=!0}i.animateAll(function(){ft=!1,Ln=!1,o.options.animation&&oe.forEach(function(r){po(r)}),o.options.sort&&hr()})}},dragOver:function(n){var o=n.target,i=n.completed,s=n.cancel;ft&&~oe.indexOf(o)&&(i(!1),s())},revert:function(n){var o=n.fromSortable,i=n.rootEl,s=n.sortable,r=n.dragRect;oe.length>1&&(oe.forEach(function(a){s.addAnimationState({target:a,rect:ft?De(a):r}),po(a),a.fromRect=r,o.removeAnimationState(a)}),ft=!1,fu(!this.options.removeCloneOnHide,i))},dragOverCompleted:function(n){var o=n.sortable,i=n.isOwner,s=n.insertion,r=n.activeSortable,a=n.parentEl,l=n.putSortable,c=this.options;if(s){if(i&&r._hideClone(),Ln=!1,c.animation&&oe.length>1&&(ft||!i&&!r.options.sort&&!l)){var f=De(Ce,!1,!0,!0);oe.forEach(function(d){d!==Ce&&(Hi(d,f),a.appendChild(d))}),ft=!0}if(!i)if(ft||hr(),oe.length>1){var u=pr;r._showClone(o),r.options.animation&&!pr&&u&&ht.forEach(function(d){r.addAnimationState({target:d,rect:wn}),d.fromRect=wn,d.thisAnimationDuration=null})}else r._showClone(o)}},dragOverAnimationCapture:function(n){var o=n.dragRect,i=n.isOwner,s=n.activeSortable;if(oe.forEach(function(a){a.thisAnimationDuration=null}),s.options.animation&&!i&&s.multiDrag.isMultiDrag){wn=St({},o);var r=nn(Ce,!0);wn.top-=r.f,wn.left-=r.e}},dragOverAnimationComplete:function(){ft&&(ft=!1,hr())},drop:function(n){var o=n.originalEvent,i=n.rootEl,s=n.parentEl,r=n.sortable,a=n.dispatchSortableEvent,l=n.oldIndex,c=n.putSortable,f=c||this.sortable;if(o){var u=this.options,d=s.children;if(!dn)if(u.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),Le(Ce,u.selectedClass,!~oe.indexOf(Ce)),~oe.indexOf(Ce))oe.splice(oe.indexOf(Ce),1),Mn=null,Fn({sortable:r,rootEl:i,name:"deselect",targetEl:Ce});else{if(oe.push(Ce),Fn({sortable:r,rootEl:i,name:"select",targetEl:Ce}),o.shiftKey&&Mn&&r.el.contains(Mn)){var p=Ve(Mn),m=Ve(Ce);if(~p&&~m&&p!==m){var h,v;for(m>p?(v=p,h=m):(v=m,h=p+1);v<h;v++)~oe.indexOf(d[v])||(Le(d[v],u.selectedClass,!0),oe.push(d[v]),Fn({sortable:r,rootEl:i,name:"select",targetEl:d[v]}))}}else Mn=Ce;Tt=f}if(dn&&this.isMultiDrag){if(ft=!1,(s[rt].options.sort||s!==i)&&oe.length>1){var g=De(Ce),y=Ve(Ce,":not(."+this.options.selectedClass+")");if(!Ln&&u.animation&&(Ce.thisAnimationDuration=null),f.captureAnimationState(),!Ln&&(u.animation&&(Ce.fromRect=g,oe.forEach(function(b){if(b.thisAnimationDuration=null,b!==Ce){var A=ft?De(b):g;b.fromRect=A,f.addAnimationState({target:b,rect:A})}})),hr(),oe.forEach(function(b){d[y]?s.insertBefore(b,d[y]):s.appendChild(b),y++}),l===Ve(Ce))){var O=!1;oe.forEach(function(b){if(b.sortableIndex!==Ve(b)){O=!0;return}}),O&&a("update")}oe.forEach(function(b){po(b)}),f.animateAll()}Tt=f}(i===s||c&&c.lastPutMode!=="clone")&&ht.forEach(function(b){b.parentNode&&b.parentNode.removeChild(b)})}},nullingGlobal:function(){this.isMultiDrag=dn=!1,ht.length=0},destroyGlobal:function(){this._deselectMultiDrag(),fe(document,"pointerup",this._deselectMultiDrag),fe(document,"mouseup",this._deselectMultiDrag),fe(document,"touchend",this._deselectMultiDrag),fe(document,"keydown",this._checkKeyDown),fe(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(n){if(!(typeof dn<"u"&&dn)&&Tt===this.sortable&&!(n&&Nt(n.target,this.options.draggable,this.sortable.el,!1))&&!(n&&n.button!==0))for(;oe.length;){var o=oe[0];Le(o,this.options.selectedClass,!1),oe.shift(),Fn({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:o})}},_checkKeyDown:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},St(t,{pluginName:"multiDrag",utils:{select:function(n){var o=n.parentNode[rt];!o||!o.options.multiDrag||~oe.indexOf(n)||(Tt&&Tt!==o&&(Tt.multiDrag._deselectMultiDrag(),Tt=o),Le(n,o.options.selectedClass,!0),oe.push(n))},deselect:function(n){var o=n.parentNode[rt],i=oe.indexOf(n);!o||!o.options.multiDrag||!~i||(Le(n,o.options.selectedClass,!1),oe.splice(i,1))}},eventProperties:function(){var n=this,o=[],i=[];return oe.forEach(function(s){o.push({multiDragElement:s,index:s.sortableIndex});var r;ft&&s!==Ce?r=-1:ft?r=Ve(s,":not(."+n.options.selectedClass+")"):r=Ve(s),i.push({multiDragElement:s,index:r})}),{items:wc(oe),clones:[].concat(ht),oldIndicies:o,newIndicies:i}},optionListeners:{multiDragKey:function(n){return n=n.toLowerCase(),n==="ctrl"?n="Control":n.length>1&&(n=n.charAt(0).toUpperCase()+n.substr(1)),n}}})}function fu(t,e){oe.forEach(function(n,o){var i=e.children[n.sortableIndex+(t?Number(o):0)];i?e.insertBefore(n,i):e.appendChild(n)})}function Ji(t,e){ht.forEach(function(n,o){var i=e.children[n.sortableIndex+(t?Number(o):0)];i?e.insertBefore(n,i):e.appendChild(n)})}function hr(){oe.forEach(function(t){t!==Ce&&t.parentNode&&t.parentNode.removeChild(t)})}ee.mount(new su);ee.mount(gi,vi);const du=Object.freeze(Object.defineProperty({__proto__:null,MultiDrag:uu,Sortable:ee,Swap:lu,default:ee},Symbol.toStringTag,{value:"Module"})),pu=Br(du);var hu=mr.exports,zi;function mu(){return zi||(zi=1,(function(t,e){(function(o,i){t.exports=i(Rc(),pu)})(typeof self<"u"?self:hu,function(n,o){return(function(i){var s={};function r(a){if(s[a])return s[a].exports;var l=s[a]={i:a,l:!1,exports:{}};return i[a].call(l.exports,l,l.exports,r),l.l=!0,l.exports}return r.m=i,r.c=s,r.d=function(a,l,c){r.o(a,l)||Object.defineProperty(a,l,{enumerable:!0,get:c})},r.r=function(a){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},r.t=function(a,l){if(l&1&&(a=r(a)),l&8||l&4&&typeof a=="object"&&a&&a.__esModule)return a;var c=Object.create(null);if(r.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:a}),l&2&&typeof a!="string")for(var f in a)r.d(c,f,(function(u){return a[u]}).bind(null,f));return c},r.n=function(a){var l=a&&a.__esModule?function(){return a.default}:function(){return a};return r.d(l,"a",l),l},r.o=function(a,l){return Object.prototype.hasOwnProperty.call(a,l)},r.p="",r(r.s="fb15")})({"00ee":(function(i,s,r){var a=r("b622"),l=a("toStringTag"),c={};c[l]="z",i.exports=String(c)==="[object z]"}),"0366":(function(i,s,r){var a=r("1c0b");i.exports=function(l,c,f){if(a(l),c===void 0)return l;switch(f){case 0:return function(){return l.call(c)};case 1:return function(u){return l.call(c,u)};case 2:return function(u,d){return l.call(c,u,d)};case 3:return function(u,d,p){return l.call(c,u,d,p)}}return function(){return l.apply(c,arguments)}}}),"057f":(function(i,s,r){var a=r("fc6a"),l=r("241c").f,c={}.toString,f=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],u=function(d){try{return l(d)}catch{return f.slice()}};i.exports.f=function(p){return f&&c.call(p)=="[object Window]"?u(p):l(a(p))}}),"06cf":(function(i,s,r){var a=r("83ab"),l=r("d1e7"),c=r("5c6c"),f=r("fc6a"),u=r("c04e"),d=r("5135"),p=r("0cfb"),m=Object.getOwnPropertyDescriptor;s.f=a?m:function(v,g){if(v=f(v),g=u(g,!0),p)try{return m(v,g)}catch{}if(d(v,g))return c(!l.f.call(v,g),v[g])}}),"0cfb":(function(i,s,r){var a=r("83ab"),l=r("d039"),c=r("cc12");i.exports=!a&&!l(function(){return Object.defineProperty(c("div"),"a",{get:function(){return 7}}).a!=7})}),"13d5":(function(i,s,r){var a=r("23e7"),l=r("d58f").left,c=r("a640"),f=r("ae40"),u=c("reduce"),d=f("reduce",{1:0});a({target:"Array",proto:!0,forced:!u||!d},{reduce:function(m){return l(this,m,arguments.length,arguments.length>1?arguments[1]:void 0)}})}),"14c3":(function(i,s,r){var a=r("c6b6"),l=r("9263");i.exports=function(c,f){var u=c.exec;if(typeof u=="function"){var d=u.call(c,f);if(typeof d!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return d}if(a(c)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return l.call(c,f)}}),"159b":(function(i,s,r){var a=r("da84"),l=r("fdbc"),c=r("17c2"),f=r("9112");for(var u in l){var d=a[u],p=d&&d.prototype;if(p&&p.forEach!==c)try{f(p,"forEach",c)}catch{p.forEach=c}}}),"17c2":(function(i,s,r){var a=r("b727").forEach,l=r("a640"),c=r("ae40"),f=l("forEach"),u=c("forEach");i.exports=!f||!u?function(p){return a(this,p,arguments.length>1?arguments[1]:void 0)}:[].forEach}),"1be4":(function(i,s,r){var a=r("d066");i.exports=a("document","documentElement")}),"1c0b":(function(i,s){i.exports=function(r){if(typeof r!="function")throw TypeError(String(r)+" is not a function");return r}}),"1c7e":(function(i,s,r){var a=r("b622"),l=a("iterator"),c=!1;try{var f=0,u={next:function(){return{done:!!f++}},return:function(){c=!0}};u[l]=function(){return this},Array.from(u,function(){throw 2})}catch{}i.exports=function(d,p){if(!p&&!c)return!1;var m=!1;try{var h={};h[l]=function(){return{next:function(){return{done:m=!0}}}},d(h)}catch{}return m}}),"1d80":(function(i,s){i.exports=function(r){if(r==null)throw TypeError("Can't call method on "+r);return r}}),"1dde":(function(i,s,r){var a=r("d039"),l=r("b622"),c=r("2d00"),f=l("species");i.exports=function(u){return c>=51||!a(function(){var d=[],p=d.constructor={};return p[f]=function(){return{foo:1}},d[u](Boolean).foo!==1})}}),"23cb":(function(i,s,r){var a=r("a691"),l=Math.max,c=Math.min;i.exports=function(f,u){var d=a(f);return d<0?l(d+u,0):c(d,u)}}),"23e7":(function(i,s,r){var a=r("da84"),l=r("06cf").f,c=r("9112"),f=r("6eeb"),u=r("ce4e"),d=r("e893"),p=r("94ca");i.exports=function(m,h){var v=m.target,g=m.global,y=m.stat,O,b,A,C,K,M;if(g?b=a:y?b=a[v]||u(v,{}):b=(a[v]||{}).prototype,b)for(A in h){if(K=h[A],m.noTargetGet?(M=l(b,A),C=M&&M.value):C=b[A],O=p(g?A:v+(y?".":"#")+A,m.forced),!O&&C!==void 0){if(typeof K==typeof C)continue;d(K,C)}(m.sham||C&&C.sham)&&c(K,"sham",!0),f(b,A,K,m)}}}),"241c":(function(i,s,r){var a=r("ca84"),l=r("7839"),c=l.concat("length","prototype");s.f=Object.getOwnPropertyNames||function(u){return a(u,c)}}),"25f0":(function(i,s,r){var a=r("6eeb"),l=r("825a"),c=r("d039"),f=r("ad6d"),u="toString",d=RegExp.prototype,p=d[u],m=c(function(){return p.call({source:"a",flags:"b"})!="/a/b"}),h=p.name!=u;(m||h)&&a(RegExp.prototype,u,function(){var g=l(this),y=String(g.source),O=g.flags,b=String(O===void 0&&g instanceof RegExp&&!("flags"in d)?f.call(g):O);return"/"+y+"/"+b},{unsafe:!0})}),"2ca0":(function(i,s,r){var a=r("23e7"),l=r("06cf").f,c=r("50c4"),f=r("5a34"),u=r("1d80"),d=r("ab13"),p=r("c430"),m="".startsWith,h=Math.min,v=d("startsWith"),g=!p&&!v&&!!(function(){var y=l(String.prototype,"startsWith");return y&&!y.writable})();a({target:"String",proto:!0,forced:!g&&!v},{startsWith:function(O){var b=String(u(this));f(O);var A=c(h(arguments.length>1?arguments[1]:void 0,b.length)),C=String(O);return m?m.call(b,C,A):b.slice(A,A+C.length)===C}})}),"2d00":(function(i,s,r){var a=r("da84"),l=r("342f"),c=a.process,f=c&&c.versions,u=f&&f.v8,d,p;u?(d=u.split("."),p=d[0]+d[1]):l&&(d=l.match(/Edge\/(\d+)/),(!d||d[1]>=74)&&(d=l.match(/Chrome\/(\d+)/),d&&(p=d[1]))),i.exports=p&&+p}),"342f":(function(i,s,r){var a=r("d066");i.exports=a("navigator","userAgent")||""}),"35a1":(function(i,s,r){var a=r("f5df"),l=r("3f8c"),c=r("b622"),f=c("iterator");i.exports=function(u){if(u!=null)return u[f]||u["@@iterator"]||l[a(u)]}}),"37e8":(function(i,s,r){var a=r("83ab"),l=r("9bf2"),c=r("825a"),f=r("df75");i.exports=a?Object.defineProperties:function(d,p){c(d);for(var m=f(p),h=m.length,v=0,g;h>v;)l.f(d,g=m[v++],p[g]);return d}}),"3bbe":(function(i,s,r){var a=r("861d");i.exports=function(l){if(!a(l)&&l!==null)throw TypeError("Can't set "+String(l)+" as a prototype");return l}}),"3ca3":(function(i,s,r){var a=r("6547").charAt,l=r("69f3"),c=r("7dd0"),f="String Iterator",u=l.set,d=l.getterFor(f);c(String,"String",function(p){u(this,{type:f,string:String(p),index:0})},function(){var m=d(this),h=m.string,v=m.index,g;return v>=h.length?{value:void 0,done:!0}:(g=a(h,v),m.index+=g.length,{value:g,done:!1})})}),"3f8c":(function(i,s){i.exports={}}),4160:(function(i,s,r){var a=r("23e7"),l=r("17c2");a({target:"Array",proto:!0,forced:[].forEach!=l},{forEach:l})}),"428f":(function(i,s,r){var a=r("da84");i.exports=a}),"44ad":(function(i,s,r){var a=r("d039"),l=r("c6b6"),c="".split;i.exports=a(function(){return!Object("z").propertyIsEnumerable(0)})?function(f){return l(f)=="String"?c.call(f,""):Object(f)}:Object}),"44d2":(function(i,s,r){var a=r("b622"),l=r("7c73"),c=r("9bf2"),f=a("unscopables"),u=Array.prototype;u[f]==null&&c.f(u,f,{configurable:!0,value:l(null)}),i.exports=function(d){u[f][d]=!0}}),"44e7":(function(i,s,r){var a=r("861d"),l=r("c6b6"),c=r("b622"),f=c("match");i.exports=function(u){var d;return a(u)&&((d=u[f])!==void 0?!!d:l(u)=="RegExp")}}),4930:(function(i,s,r){var a=r("d039");i.exports=!!Object.getOwnPropertySymbols&&!a(function(){return!String(Symbol())})}),"4d64":(function(i,s,r){var a=r("fc6a"),l=r("50c4"),c=r("23cb"),f=function(u){return function(d,p,m){var h=a(d),v=l(h.length),g=c(m,v),y;if(u&&p!=p){for(;v>g;)if(y=h[g++],y!=y)return!0}else for(;v>g;g++)if((u||g in h)&&h[g]===p)return u||g||0;return!u&&-1}};i.exports={includes:f(!0),indexOf:f(!1)}}),"4de4":(function(i,s,r){var a=r("23e7"),l=r("b727").filter,c=r("1dde"),f=r("ae40"),u=c("filter"),d=f("filter");a({target:"Array",proto:!0,forced:!u||!d},{filter:function(m){return l(this,m,arguments.length>1?arguments[1]:void 0)}})}),"4df4":(function(i,s,r){var a=r("0366"),l=r("7b0b"),c=r("9bdd"),f=r("e95a"),u=r("50c4"),d=r("8418"),p=r("35a1");i.exports=function(h){var v=l(h),g=typeof this=="function"?this:Array,y=arguments.length,O=y>1?arguments[1]:void 0,b=O!==void 0,A=p(v),C=0,K,M,I,R,j,Y;if(b&&(O=a(O,y>2?arguments[2]:void 0,2)),A!=null&&!(g==Array&&f(A)))for(R=A.call(v),j=R.next,M=new g;!(I=j.call(R)).done;C++)Y=b?c(R,O,[I.value,C],!0):I.value,d(M,C,Y);else for(K=u(v.length),M=new g(K);K>C;C++)Y=b?O(v[C],C):v[C],d(M,C,Y);return M.length=C,M}}),"4fad":(function(i,s,r){var a=r("23e7"),l=r("6f53").entries;a({target:"Object",stat:!0},{entries:function(f){return l(f)}})}),"50c4":(function(i,s,r){var a=r("a691"),l=Math.min;i.exports=function(c){return c>0?l(a(c),9007199254740991):0}}),5135:(function(i,s){var r={}.hasOwnProperty;i.exports=function(a,l){return r.call(a,l)}}),5319:(function(i,s,r){var a=r("d784"),l=r("825a"),c=r("7b0b"),f=r("50c4"),u=r("a691"),d=r("1d80"),p=r("8aa5"),m=r("14c3"),h=Math.max,v=Math.min,g=Math.floor,y=/\$([$&'`]|\d\d?|<[^>]*>)/g,O=/\$([$&'`]|\d\d?)/g,b=function(A){return A===void 0?A:String(A)};a("replace",2,function(A,C,K,M){var I=M.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,R=M.REPLACE_KEEPS_$0,j=I?"$":"$0";return[function(x,B){var V=d(this),X=x==null?void 0:x[A];return X!==void 0?X.call(x,V,B):C.call(String(V),x,B)},function(P,x){if(!I&&R||typeof x=="string"&&x.indexOf(j)===-1){var B=K(C,P,this,x);if(B.done)return B.value}var V=l(P),X=String(this),re=typeof x=="function";re||(x=String(x));var de=V.global;if(de){var U=V.unicode;V.lastIndex=0}for(var L=[];;){var D=m(V,X);if(D===null||(L.push(D),!de))break;var S=String(D[0]);S===""&&(V.lastIndex=p(X,f(V.lastIndex),U))}for(var H="",W=0,se=0;se<L.length;se++){D=L[se];for(var le=String(D[0]),xe=h(v(u(D.index),X.length),0),ue=[],Ne=1;Ne<D.length;Ne++)ue.push(b(D[Ne]));var Ye=D.groups;if(re){var Ze=[le].concat(ue,xe,X);Ye!==void 0&&Ze.push(Ye);var be=String(x.apply(void 0,Ze))}else be=Y(le,X,xe,ue,Ye,x);xe>=W&&(H+=X.slice(W,xe)+be,W=xe+le.length)}return H+X.slice(W)}];function Y(P,x,B,V,X,re){var de=B+P.length,U=V.length,L=O;return X!==void 0&&(X=c(X),L=y),C.call(re,L,function(D,S){var H;switch(S.charAt(0)){case"$":return"$";case"&":return P;case"`":return x.slice(0,B);case"'":return x.slice(de);case"<":H=X[S.slice(1,-1)];break;default:var W=+S;if(W===0)return D;if(W>U){var se=g(W/10);return se===0?D:se<=U?V[se-1]===void 0?S.charAt(1):V[se-1]+S.charAt(1):D}H=V[W-1]}return H===void 0?"":H})}})}),5692:(function(i,s,r){var a=r("c430"),l=r("c6cd");(i.exports=function(c,f){return l[c]||(l[c]=f!==void 0?f:{})})("versions",[]).push({version:"3.6.5",mode:a?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})}),"56ef":(function(i,s,r){var a=r("d066"),l=r("241c"),c=r("7418"),f=r("825a");i.exports=a("Reflect","ownKeys")||function(d){var p=l.f(f(d)),m=c.f;return m?p.concat(m(d)):p}}),"5a34":(function(i,s,r){var a=r("44e7");i.exports=function(l){if(a(l))throw TypeError("The method doesn't accept regular expressions");return l}}),"5c6c":(function(i,s){i.exports=function(r,a){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:a}}}),"5db7":(function(i,s,r){var a=r("23e7"),l=r("a2bf"),c=r("7b0b"),f=r("50c4"),u=r("1c0b"),d=r("65f0");a({target:"Array",proto:!0},{flatMap:function(m){var h=c(this),v=f(h.length),g;return u(m),g=d(h,0),g.length=l(g,h,h,v,0,1,m,arguments.length>1?arguments[1]:void 0),g}})}),6547:(function(i,s,r){var a=r("a691"),l=r("1d80"),c=function(f){return function(u,d){var p=String(l(u)),m=a(d),h=p.length,v,g;return m<0||m>=h?f?"":void 0:(v=p.charCodeAt(m),v<55296||v>56319||m+1===h||(g=p.charCodeAt(m+1))<56320||g>57343?f?p.charAt(m):v:f?p.slice(m,m+2):(v-55296<<10)+(g-56320)+65536)}};i.exports={codeAt:c(!1),charAt:c(!0)}}),"65f0":(function(i,s,r){var a=r("861d"),l=r("e8b5"),c=r("b622"),f=c("species");i.exports=function(u,d){var p;return l(u)&&(p=u.constructor,typeof p=="function"&&(p===Array||l(p.prototype))?p=void 0:a(p)&&(p=p[f],p===null&&(p=void 0))),new(p===void 0?Array:p)(d===0?0:d)}}),"69f3":(function(i,s,r){var a=r("7f9a"),l=r("da84"),c=r("861d"),f=r("9112"),u=r("5135"),d=r("f772"),p=r("d012"),m=l.WeakMap,h,v,g,y=function(I){return g(I)?v(I):h(I,{})},O=function(I){return function(R){var j;if(!c(R)||(j=v(R)).type!==I)throw TypeError("Incompatible receiver, "+I+" required");return j}};if(a){var b=new m,A=b.get,C=b.has,K=b.set;h=function(I,R){return K.call(b,I,R),R},v=function(I){return A.call(b,I)||{}},g=function(I){return C.call(b,I)}}else{var M=d("state");p[M]=!0,h=function(I,R){return f(I,M,R),R},v=function(I){return u(I,M)?I[M]:{}},g=function(I){return u(I,M)}}i.exports={set:h,get:v,has:g,enforce:y,getterFor:O}}),"6eeb":(function(i,s,r){var a=r("da84"),l=r("9112"),c=r("5135"),f=r("ce4e"),u=r("8925"),d=r("69f3"),p=d.get,m=d.enforce,h=String(String).split("String");(i.exports=function(v,g,y,O){var b=O?!!O.unsafe:!1,A=O?!!O.enumerable:!1,C=O?!!O.noTargetGet:!1;if(typeof y=="function"&&(typeof g=="string"&&!c(y,"name")&&l(y,"name",g),m(y).source=h.join(typeof g=="string"?g:"")),v===a){A?v[g]=y:f(g,y);return}else b?!C&&v[g]&&(A=!0):delete v[g];A?v[g]=y:l(v,g,y)})(Function.prototype,"toString",function(){return typeof this=="function"&&p(this).source||u(this)})}),"6f53":(function(i,s,r){var a=r("83ab"),l=r("df75"),c=r("fc6a"),f=r("d1e7").f,u=function(d){return function(p){for(var m=c(p),h=l(m),v=h.length,g=0,y=[],O;v>g;)O=h[g++],(!a||f.call(m,O))&&y.push(d?[O,m[O]]:m[O]);return y}};i.exports={entries:u(!0),values:u(!1)}}),"73d9":(function(i,s,r){var a=r("44d2");a("flatMap")}),7418:(function(i,s){s.f=Object.getOwnPropertySymbols}),"746f":(function(i,s,r){var a=r("428f"),l=r("5135"),c=r("e538"),f=r("9bf2").f;i.exports=function(u){var d=a.Symbol||(a.Symbol={});l(d,u)||f(d,u,{value:c.f(u)})}}),7839:(function(i,s){i.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]}),"7b0b":(function(i,s,r){var a=r("1d80");i.exports=function(l){return Object(a(l))}}),"7c73":(function(i,s,r){var a=r("825a"),l=r("37e8"),c=r("7839"),f=r("d012"),u=r("1be4"),d=r("cc12"),p=r("f772"),m=">",h="<",v="prototype",g="script",y=p("IE_PROTO"),O=function(){},b=function(I){return h+g+m+I+h+"/"+g+m},A=function(I){I.write(b("")),I.close();var R=I.parentWindow.Object;return I=null,R},C=function(){var I=d("iframe"),R="java"+g+":",j;return I.style.display="none",u.appendChild(I),I.src=String(R),j=I.contentWindow.document,j.open(),j.write(b("document.F=Object")),j.close(),j.F},K,M=function(){try{K=document.domain&&new ActiveXObject("htmlfile")}catch{}M=K?A(K):C();for(var I=c.length;I--;)delete M[v][c[I]];return M()};f[y]=!0,i.exports=Object.create||function(R,j){var Y;return R!==null?(O[v]=a(R),Y=new O,O[v]=null,Y[y]=R):Y=M(),j===void 0?Y:l(Y,j)}}),"7dd0":(function(i,s,r){var a=r("23e7"),l=r("9ed3"),c=r("e163"),f=r("d2bb"),u=r("d44e"),d=r("9112"),p=r("6eeb"),m=r("b622"),h=r("c430"),v=r("3f8c"),g=r("ae93"),y=g.IteratorPrototype,O=g.BUGGY_SAFARI_ITERATORS,b=m("iterator"),A="keys",C="values",K="entries",M=function(){return this};i.exports=function(I,R,j,Y,P,x,B){l(j,R,Y);var V=function(se){if(se===P&&L)return L;if(!O&&se in de)return de[se];switch(se){case A:return function(){return new j(this,se)};case C:return function(){return new j(this,se)};case K:return function(){return new j(this,se)}}return function(){return new j(this)}},X=R+" Iterator",re=!1,de=I.prototype,U=de[b]||de["@@iterator"]||P&&de[P],L=!O&&U||V(P),D=R=="Array"&&de.entries||U,S,H,W;if(D&&(S=c(D.call(new I)),y!==Object.prototype&&S.next&&(!h&&c(S)!==y&&(f?f(S,y):typeof S[b]!="function"&&d(S,b,M)),u(S,X,!0,!0),h&&(v[X]=M))),P==C&&U&&U.name!==C&&(re=!0,L=function(){return U.call(this)}),(!h||B)&&de[b]!==L&&d(de,b,L),v[R]=L,P)if(H={values:V(C),keys:x?L:V(A),entries:V(K)},B)for(W in H)(O||re||!(W in de))&&p(de,W,H[W]);else a({target:R,proto:!0,forced:O||re},H);return H}}),"7f9a":(function(i,s,r){var a=r("da84"),l=r("8925"),c=a.WeakMap;i.exports=typeof c=="function"&&/native code/.test(l(c))}),"825a":(function(i,s,r){var a=r("861d");i.exports=function(l){if(!a(l))throw TypeError(String(l)+" is not an object");return l}}),"83ab":(function(i,s,r){var a=r("d039");i.exports=!a(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})}),8418:(function(i,s,r){var a=r("c04e"),l=r("9bf2"),c=r("5c6c");i.exports=function(f,u,d){var p=a(u);p in f?l.f(f,p,c(0,d)):f[p]=d}}),"861d":(function(i,s){i.exports=function(r){return typeof r=="object"?r!==null:typeof r=="function"}}),8875:(function(i,s,r){var a,l,c;(function(f,u){l=[],a=u,c=typeof a=="function"?a.apply(s,l):a,c!==void 0&&(i.exports=c)})(typeof self<"u"?self:this,function(){function f(){var u=Object.getOwnPropertyDescriptor(document,"currentScript");if(!u&&"currentScript"in document&&document.currentScript||u&&u.get!==f&&document.currentScript)return document.currentScript;try{throw new Error}catch(K){var d=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,p=/@([^@]*):(\d+):(\d+)\s*$/ig,m=d.exec(K.stack)||p.exec(K.stack),h=m&&m[1]||!1,v=m&&m[2]||!1,g=document.location.href.replace(document.location.hash,""),y,O,b,A=document.getElementsByTagName("script");h===g&&(y=document.documentElement.outerHTML,O=new RegExp("(?:[^\\n]+?\\n){0,"+(v-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),b=y.replace(O,"$1").trim());for(var C=0;C<A.length;C++)if(A[C].readyState==="interactive"||A[C].src===h||h===g&&A[C].innerHTML&&A[C].innerHTML.trim()===b)return A[C];return null}}return f})}),8925:(function(i,s,r){var a=r("c6cd"),l=Function.toString;typeof a.inspectSource!="function"&&(a.inspectSource=function(c){return l.call(c)}),i.exports=a.inspectSource}),"8aa5":(function(i,s,r){var a=r("6547").charAt;i.exports=function(l,c,f){return c+(f?a(l,c).length:1)}}),"8bbf":(function(i,s){i.exports=n}),"90e3":(function(i,s){var r=0,a=Math.random();i.exports=function(l){return"Symbol("+String(l===void 0?"":l)+")_"+(++r+a).toString(36)}}),9112:(function(i,s,r){var a=r("83ab"),l=r("9bf2"),c=r("5c6c");i.exports=a?function(f,u,d){return l.f(f,u,c(1,d))}:function(f,u,d){return f[u]=d,f}}),9263:(function(i,s,r){var a=r("ad6d"),l=r("9f7f"),c=RegExp.prototype.exec,f=String.prototype.replace,u=c,d=(function(){var v=/a/,g=/b*/g;return c.call(v,"a"),c.call(g,"a"),v.lastIndex!==0||g.lastIndex!==0})(),p=l.UNSUPPORTED_Y||l.BROKEN_CARET,m=/()??/.exec("")[1]!==void 0,h=d||m||p;h&&(u=function(g){var y=this,O,b,A,C,K=p&&y.sticky,M=a.call(y),I=y.source,R=0,j=g;return K&&(M=M.replace("y",""),M.indexOf("g")===-1&&(M+="g"),j=String(g).slice(y.lastIndex),y.lastIndex>0&&(!y.multiline||y.multiline&&g[y.lastIndex-1]!==`
|
|
28
|
+
`)&&(I="(?: "+I+")",j=" "+j,R++),b=new RegExp("^(?:"+I+")",M)),m&&(b=new RegExp("^"+I+"$(?!\\s)",M)),d&&(O=y.lastIndex),A=c.call(K?b:y,j),K?A?(A.input=A.input.slice(R),A[0]=A[0].slice(R),A.index=y.lastIndex,y.lastIndex+=A[0].length):y.lastIndex=0:d&&A&&(y.lastIndex=y.global?A.index+A[0].length:O),m&&A&&A.length>1&&f.call(A[0],b,function(){for(C=1;C<arguments.length-2;C++)arguments[C]===void 0&&(A[C]=void 0)}),A}),i.exports=u}),"94ca":(function(i,s,r){var a=r("d039"),l=/#|\.prototype\./,c=function(m,h){var v=u[f(m)];return v==p?!0:v==d?!1:typeof h=="function"?a(h):!!h},f=c.normalize=function(m){return String(m).replace(l,".").toLowerCase()},u=c.data={},d=c.NATIVE="N",p=c.POLYFILL="P";i.exports=c}),"99af":(function(i,s,r){var a=r("23e7"),l=r("d039"),c=r("e8b5"),f=r("861d"),u=r("7b0b"),d=r("50c4"),p=r("8418"),m=r("65f0"),h=r("1dde"),v=r("b622"),g=r("2d00"),y=v("isConcatSpreadable"),O=9007199254740991,b="Maximum allowed index exceeded",A=g>=51||!l(function(){var I=[];return I[y]=!1,I.concat()[0]!==I}),C=h("concat"),K=function(I){if(!f(I))return!1;var R=I[y];return R!==void 0?!!R:c(I)},M=!A||!C;a({target:"Array",proto:!0,forced:M},{concat:function(R){var j=u(this),Y=m(j,0),P=0,x,B,V,X,re;for(x=-1,V=arguments.length;x<V;x++)if(re=x===-1?j:arguments[x],K(re)){if(X=d(re.length),P+X>O)throw TypeError(b);for(B=0;B<X;B++,P++)B in re&&p(Y,P,re[B])}else{if(P>=O)throw TypeError(b);p(Y,P++,re)}return Y.length=P,Y}})}),"9bdd":(function(i,s,r){var a=r("825a");i.exports=function(l,c,f,u){try{return u?c(a(f)[0],f[1]):c(f)}catch(p){var d=l.return;throw d!==void 0&&a(d.call(l)),p}}}),"9bf2":(function(i,s,r){var a=r("83ab"),l=r("0cfb"),c=r("825a"),f=r("c04e"),u=Object.defineProperty;s.f=a?u:function(p,m,h){if(c(p),m=f(m,!0),c(h),l)try{return u(p,m,h)}catch{}if("get"in h||"set"in h)throw TypeError("Accessors not supported");return"value"in h&&(p[m]=h.value),p}}),"9ed3":(function(i,s,r){var a=r("ae93").IteratorPrototype,l=r("7c73"),c=r("5c6c"),f=r("d44e"),u=r("3f8c"),d=function(){return this};i.exports=function(p,m,h){var v=m+" Iterator";return p.prototype=l(a,{next:c(1,h)}),f(p,v,!1,!0),u[v]=d,p}}),"9f7f":(function(i,s,r){var a=r("d039");function l(c,f){return RegExp(c,f)}s.UNSUPPORTED_Y=a(function(){var c=l("a","y");return c.lastIndex=2,c.exec("abcd")!=null}),s.BROKEN_CARET=a(function(){var c=l("^r","gy");return c.lastIndex=2,c.exec("str")!=null})}),a2bf:(function(i,s,r){var a=r("e8b5"),l=r("50c4"),c=r("0366"),f=function(u,d,p,m,h,v,g,y){for(var O=h,b=0,A=g?c(g,y,3):!1,C;b<m;){if(b in p){if(C=A?A(p[b],b,d):p[b],v>0&&a(C))O=f(u,d,C,l(C.length),O,v-1)-1;else{if(O>=9007199254740991)throw TypeError("Exceed the acceptable array length");u[O]=C}O++}b++}return O};i.exports=f}),a352:(function(i,s){i.exports=o}),a434:(function(i,s,r){var a=r("23e7"),l=r("23cb"),c=r("a691"),f=r("50c4"),u=r("7b0b"),d=r("65f0"),p=r("8418"),m=r("1dde"),h=r("ae40"),v=m("splice"),g=h("splice",{ACCESSORS:!0,0:0,1:2}),y=Math.max,O=Math.min,b=9007199254740991,A="Maximum allowed length exceeded";a({target:"Array",proto:!0,forced:!v||!g},{splice:function(K,M){var I=u(this),R=f(I.length),j=l(K,R),Y=arguments.length,P,x,B,V,X,re;if(Y===0?P=x=0:Y===1?(P=0,x=R-j):(P=Y-2,x=O(y(c(M),0),R-j)),R+P-x>b)throw TypeError(A);for(B=d(I,x),V=0;V<x;V++)X=j+V,X in I&&p(B,V,I[X]);if(B.length=x,P<x){for(V=j;V<R-x;V++)X=V+x,re=V+P,X in I?I[re]=I[X]:delete I[re];for(V=R;V>R-x+P;V--)delete I[V-1]}else if(P>x)for(V=R-x;V>j;V--)X=V+x-1,re=V+P-1,X in I?I[re]=I[X]:delete I[re];for(V=0;V<P;V++)I[V+j]=arguments[V+2];return I.length=R-x+P,B}})}),a4d3:(function(i,s,r){var a=r("23e7"),l=r("da84"),c=r("d066"),f=r("c430"),u=r("83ab"),d=r("4930"),p=r("fdbf"),m=r("d039"),h=r("5135"),v=r("e8b5"),g=r("861d"),y=r("825a"),O=r("7b0b"),b=r("fc6a"),A=r("c04e"),C=r("5c6c"),K=r("7c73"),M=r("df75"),I=r("241c"),R=r("057f"),j=r("7418"),Y=r("06cf"),P=r("9bf2"),x=r("d1e7"),B=r("9112"),V=r("6eeb"),X=r("5692"),re=r("f772"),de=r("d012"),U=r("90e3"),L=r("b622"),D=r("e538"),S=r("746f"),H=r("d44e"),W=r("69f3"),se=r("b727").forEach,le=re("hidden"),xe="Symbol",ue="prototype",Ne=L("toPrimitive"),Ye=W.set,Ze=W.getterFor(xe),be=Object[ue],_=l.Symbol,_e=c("JSON","stringify"),lt=Y.f,it=P.f,w=R.f,Z=x.f,He=X("symbols"),Rt=X("op-symbols"),ln=X("string-to-symbol-registry"),Nn=X("symbol-to-string-registry"),Cn=X("wks"),An=l.QObject,xn=!An||!An[ue]||!An[ue].findChild,Pn=u&&m(function(){return K(it({},"a",{get:function(){return it(this,"a",{value:7}).a}})).a!=7})?function(ne,Q,q){var me=lt(be,Q);me&&delete be[Q],it(ne,Q,q),me&&ne!==be&&it(be,Q,me)}:it,Rn=function(ne,Q){var q=He[ne]=K(_[ue]);return Ye(q,{type:xe,tag:ne,description:Q}),u||(q.description=Q),q},T=p?function(ne){return typeof ne=="symbol"}:function(ne){return Object(ne)instanceof _},E=function(Q,q,me){Q===be&&E(Rt,q,me),y(Q);var ve=A(q,!0);return y(me),h(He,ve)?(me.enumerable?(h(Q,le)&&Q[le][ve]&&(Q[le][ve]=!1),me=K(me,{enumerable:C(0,!1)})):(h(Q,le)||it(Q,le,C(1,{})),Q[le][ve]=!0),Pn(Q,ve,me)):it(Q,ve,me)},N=function(Q,q){y(Q);var me=b(q),ve=M(me).concat(Ee(me));return se(ve,function(ct){(!u||J.call(me,ct))&&E(Q,ct,me[ct])}),Q},F=function(Q,q){return q===void 0?K(Q):N(K(Q),q)},J=function(Q){var q=A(Q,!0),me=Z.call(this,q);return this===be&&h(He,q)&&!h(Rt,q)?!1:me||!h(this,q)||!h(He,q)||h(this,le)&&this[le][q]?me:!0},te=function(Q,q){var me=b(Q),ve=A(q,!0);if(!(me===be&&h(He,ve)&&!h(Rt,ve))){var ct=lt(me,ve);return ct&&h(He,ve)&&!(h(me,le)&&me[le][ve])&&(ct.enumerable=!0),ct}},ce=function(Q){var q=w(b(Q)),me=[];return se(q,function(ve){!h(He,ve)&&!h(de,ve)&&me.push(ve)}),me},Ee=function(Q){var q=Q===be,me=w(q?Rt:b(Q)),ve=[];return se(me,function(ct){h(He,ct)&&(!q||h(be,ct))&&ve.push(He[ct])}),ve};if(d||(_=function(){if(this instanceof _)throw TypeError("Symbol is not a constructor");var Q=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),q=U(Q),me=function(ve){this===be&&me.call(Rt,ve),h(this,le)&&h(this[le],q)&&(this[le][q]=!1),Pn(this,q,C(1,ve))};return u&&xn&&Pn(be,q,{configurable:!0,set:me}),Rn(q,Q)},V(_[ue],"toString",function(){return Ze(this).tag}),V(_,"withoutSetter",function(ne){return Rn(U(ne),ne)}),x.f=J,P.f=E,Y.f=te,I.f=R.f=ce,j.f=Ee,D.f=function(ne){return Rn(L(ne),ne)},u&&(it(_[ue],"description",{configurable:!0,get:function(){return Ze(this).description}}),f||V(be,"propertyIsEnumerable",J,{unsafe:!0}))),a({global:!0,wrap:!0,forced:!d,sham:!d},{Symbol:_}),se(M(Cn),function(ne){S(ne)}),a({target:xe,stat:!0,forced:!d},{for:function(ne){var Q=String(ne);if(h(ln,Q))return ln[Q];var q=_(Q);return ln[Q]=q,Nn[q]=Q,q},keyFor:function(Q){if(!T(Q))throw TypeError(Q+" is not a symbol");if(h(Nn,Q))return Nn[Q]},useSetter:function(){xn=!0},useSimple:function(){xn=!1}}),a({target:"Object",stat:!0,forced:!d,sham:!u},{create:F,defineProperty:E,defineProperties:N,getOwnPropertyDescriptor:te}),a({target:"Object",stat:!0,forced:!d},{getOwnPropertyNames:ce,getOwnPropertySymbols:Ee}),a({target:"Object",stat:!0,forced:m(function(){j.f(1)})},{getOwnPropertySymbols:function(Q){return j.f(O(Q))}}),_e){var $e=!d||m(function(){var ne=_();return _e([ne])!="[null]"||_e({a:ne})!="{}"||_e(Object(ne))!="{}"});a({target:"JSON",stat:!0,forced:$e},{stringify:function(Q,q,me){for(var ve=[Q],ct=1,ao;arguments.length>ct;)ve.push(arguments[ct++]);if(ao=q,!(!g(q)&&Q===void 0||T(Q)))return v(q)||(q=function(ys,or){if(typeof ao=="function"&&(or=ao.call(this,ys,or)),!T(or))return or}),ve[1]=q,_e.apply(null,ve)}})}_[ue][Ne]||B(_[ue],Ne,_[ue].valueOf),H(_,xe),de[le]=!0}),a630:(function(i,s,r){var a=r("23e7"),l=r("4df4"),c=r("1c7e"),f=!c(function(u){Array.from(u)});a({target:"Array",stat:!0,forced:f},{from:l})}),a640:(function(i,s,r){var a=r("d039");i.exports=function(l,c){var f=[][l];return!!f&&a(function(){f.call(null,c||function(){throw 1},1)})}}),a691:(function(i,s){var r=Math.ceil,a=Math.floor;i.exports=function(l){return isNaN(l=+l)?0:(l>0?a:r)(l)}}),ab13:(function(i,s,r){var a=r("b622"),l=a("match");i.exports=function(c){var f=/./;try{"/./"[c](f)}catch{try{return f[l]=!1,"/./"[c](f)}catch{}}return!1}}),ac1f:(function(i,s,r){var a=r("23e7"),l=r("9263");a({target:"RegExp",proto:!0,forced:/./.exec!==l},{exec:l})}),ad6d:(function(i,s,r){var a=r("825a");i.exports=function(){var l=a(this),c="";return l.global&&(c+="g"),l.ignoreCase&&(c+="i"),l.multiline&&(c+="m"),l.dotAll&&(c+="s"),l.unicode&&(c+="u"),l.sticky&&(c+="y"),c}}),ae40:(function(i,s,r){var a=r("83ab"),l=r("d039"),c=r("5135"),f=Object.defineProperty,u={},d=function(p){throw p};i.exports=function(p,m){if(c(u,p))return u[p];m||(m={});var h=[][p],v=c(m,"ACCESSORS")?m.ACCESSORS:!1,g=c(m,0)?m[0]:d,y=c(m,1)?m[1]:void 0;return u[p]=!!h&&!l(function(){if(v&&!a)return!0;var O={length:-1};v?f(O,1,{enumerable:!0,get:d}):O[1]=1,h.call(O,g,y)})}}),ae93:(function(i,s,r){var a=r("e163"),l=r("9112"),c=r("5135"),f=r("b622"),u=r("c430"),d=f("iterator"),p=!1,m=function(){return this},h,v,g;[].keys&&(g=[].keys(),"next"in g?(v=a(a(g)),v!==Object.prototype&&(h=v)):p=!0),h==null&&(h={}),!u&&!c(h,d)&&l(h,d,m),i.exports={IteratorPrototype:h,BUGGY_SAFARI_ITERATORS:p}}),b041:(function(i,s,r){var a=r("00ee"),l=r("f5df");i.exports=a?{}.toString:function(){return"[object "+l(this)+"]"}}),b0c0:(function(i,s,r){var a=r("83ab"),l=r("9bf2").f,c=Function.prototype,f=c.toString,u=/^\s*function ([^ (]*)/,d="name";a&&!(d in c)&&l(c,d,{configurable:!0,get:function(){try{return f.call(this).match(u)[1]}catch{return""}}})}),b622:(function(i,s,r){var a=r("da84"),l=r("5692"),c=r("5135"),f=r("90e3"),u=r("4930"),d=r("fdbf"),p=l("wks"),m=a.Symbol,h=d?m:m&&m.withoutSetter||f;i.exports=function(v){return c(p,v)||(u&&c(m,v)?p[v]=m[v]:p[v]=h("Symbol."+v)),p[v]}}),b64b:(function(i,s,r){var a=r("23e7"),l=r("7b0b"),c=r("df75"),f=r("d039"),u=f(function(){c(1)});a({target:"Object",stat:!0,forced:u},{keys:function(p){return c(l(p))}})}),b727:(function(i,s,r){var a=r("0366"),l=r("44ad"),c=r("7b0b"),f=r("50c4"),u=r("65f0"),d=[].push,p=function(m){var h=m==1,v=m==2,g=m==3,y=m==4,O=m==6,b=m==5||O;return function(A,C,K,M){for(var I=c(A),R=l(I),j=a(C,K,3),Y=f(R.length),P=0,x=M||u,B=h?x(A,Y):v?x(A,0):void 0,V,X;Y>P;P++)if((b||P in R)&&(V=R[P],X=j(V,P,I),m)){if(h)B[P]=X;else if(X)switch(m){case 3:return!0;case 5:return V;case 6:return P;case 2:d.call(B,V)}else if(y)return!1}return O?-1:g||y?y:B}};i.exports={forEach:p(0),map:p(1),filter:p(2),some:p(3),every:p(4),find:p(5),findIndex:p(6)}}),c04e:(function(i,s,r){var a=r("861d");i.exports=function(l,c){if(!a(l))return l;var f,u;if(c&&typeof(f=l.toString)=="function"&&!a(u=f.call(l))||typeof(f=l.valueOf)=="function"&&!a(u=f.call(l))||!c&&typeof(f=l.toString)=="function"&&!a(u=f.call(l)))return u;throw TypeError("Can't convert object to primitive value")}}),c430:(function(i,s){i.exports=!1}),c6b6:(function(i,s){var r={}.toString;i.exports=function(a){return r.call(a).slice(8,-1)}}),c6cd:(function(i,s,r){var a=r("da84"),l=r("ce4e"),c="__core-js_shared__",f=a[c]||l(c,{});i.exports=f}),c740:(function(i,s,r){var a=r("23e7"),l=r("b727").findIndex,c=r("44d2"),f=r("ae40"),u="findIndex",d=!0,p=f(u);u in[]&&Array(1)[u](function(){d=!1}),a({target:"Array",proto:!0,forced:d||!p},{findIndex:function(h){return l(this,h,arguments.length>1?arguments[1]:void 0)}}),c(u)}),c8ba:(function(i,s){var r;r=(function(){return this})();try{r=r||new Function("return this")()}catch{typeof window=="object"&&(r=window)}i.exports=r}),c975:(function(i,s,r){var a=r("23e7"),l=r("4d64").indexOf,c=r("a640"),f=r("ae40"),u=[].indexOf,d=!!u&&1/[1].indexOf(1,-0)<0,p=c("indexOf"),m=f("indexOf",{ACCESSORS:!0,1:0});a({target:"Array",proto:!0,forced:d||!p||!m},{indexOf:function(v){return d?u.apply(this,arguments)||0:l(this,v,arguments.length>1?arguments[1]:void 0)}})}),ca84:(function(i,s,r){var a=r("5135"),l=r("fc6a"),c=r("4d64").indexOf,f=r("d012");i.exports=function(u,d){var p=l(u),m=0,h=[],v;for(v in p)!a(f,v)&&a(p,v)&&h.push(v);for(;d.length>m;)a(p,v=d[m++])&&(~c(h,v)||h.push(v));return h}}),caad:(function(i,s,r){var a=r("23e7"),l=r("4d64").includes,c=r("44d2"),f=r("ae40"),u=f("indexOf",{ACCESSORS:!0,1:0});a({target:"Array",proto:!0,forced:!u},{includes:function(p){return l(this,p,arguments.length>1?arguments[1]:void 0)}}),c("includes")}),cc12:(function(i,s,r){var a=r("da84"),l=r("861d"),c=a.document,f=l(c)&&l(c.createElement);i.exports=function(u){return f?c.createElement(u):{}}}),ce4e:(function(i,s,r){var a=r("da84"),l=r("9112");i.exports=function(c,f){try{l(a,c,f)}catch{a[c]=f}return f}}),d012:(function(i,s){i.exports={}}),d039:(function(i,s){i.exports=function(r){try{return!!r()}catch{return!0}}}),d066:(function(i,s,r){var a=r("428f"),l=r("da84"),c=function(f){return typeof f=="function"?f:void 0};i.exports=function(f,u){return arguments.length<2?c(a[f])||c(l[f]):a[f]&&a[f][u]||l[f]&&l[f][u]}}),d1e7:(function(i,s,r){var a={}.propertyIsEnumerable,l=Object.getOwnPropertyDescriptor,c=l&&!a.call({1:2},1);s.f=c?function(u){var d=l(this,u);return!!d&&d.enumerable}:a}),d28b:(function(i,s,r){var a=r("746f");a("iterator")}),d2bb:(function(i,s,r){var a=r("825a"),l=r("3bbe");i.exports=Object.setPrototypeOf||("__proto__"in{}?(function(){var c=!1,f={},u;try{u=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,u.call(f,[]),c=f instanceof Array}catch{}return function(p,m){return a(p),l(m),c?u.call(p,m):p.__proto__=m,p}})():void 0)}),d3b7:(function(i,s,r){var a=r("00ee"),l=r("6eeb"),c=r("b041");a||l(Object.prototype,"toString",c,{unsafe:!0})}),d44e:(function(i,s,r){var a=r("9bf2").f,l=r("5135"),c=r("b622"),f=c("toStringTag");i.exports=function(u,d,p){u&&!l(u=p?u:u.prototype,f)&&a(u,f,{configurable:!0,value:d})}}),d58f:(function(i,s,r){var a=r("1c0b"),l=r("7b0b"),c=r("44ad"),f=r("50c4"),u=function(d){return function(p,m,h,v){a(m);var g=l(p),y=c(g),O=f(g.length),b=d?O-1:0,A=d?-1:1;if(h<2)for(;;){if(b in y){v=y[b],b+=A;break}if(b+=A,d?b<0:O<=b)throw TypeError("Reduce of empty array with no initial value")}for(;d?b>=0:O>b;b+=A)b in y&&(v=m(v,y[b],b,g));return v}};i.exports={left:u(!1),right:u(!0)}}),d784:(function(i,s,r){r("ac1f");var a=r("6eeb"),l=r("d039"),c=r("b622"),f=r("9263"),u=r("9112"),d=c("species"),p=!l(function(){var y=/./;return y.exec=function(){var O=[];return O.groups={a:"7"},O},"".replace(y,"$<a>")!=="7"}),m=(function(){return"a".replace(/./,"$0")==="$0"})(),h=c("replace"),v=(function(){return/./[h]?/./[h]("a","$0")==="":!1})(),g=!l(function(){var y=/(?:)/,O=y.exec;y.exec=function(){return O.apply(this,arguments)};var b="ab".split(y);return b.length!==2||b[0]!=="a"||b[1]!=="b"});i.exports=function(y,O,b,A){var C=c(y),K=!l(function(){var P={};return P[C]=function(){return 7},""[y](P)!=7}),M=K&&!l(function(){var P=!1,x=/a/;return y==="split"&&(x={},x.constructor={},x.constructor[d]=function(){return x},x.flags="",x[C]=/./[C]),x.exec=function(){return P=!0,null},x[C](""),!P});if(!K||!M||y==="replace"&&!(p&&m&&!v)||y==="split"&&!g){var I=/./[C],R=b(C,""[y],function(P,x,B,V,X){return x.exec===f?K&&!X?{done:!0,value:I.call(x,B,V)}:{done:!0,value:P.call(B,x,V)}:{done:!1}},{REPLACE_KEEPS_$0:m,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:v}),j=R[0],Y=R[1];a(String.prototype,y,j),a(RegExp.prototype,C,O==2?function(P,x){return Y.call(P,this,x)}:function(P){return Y.call(P,this)})}A&&u(RegExp.prototype[C],"sham",!0)}}),d81d:(function(i,s,r){var a=r("23e7"),l=r("b727").map,c=r("1dde"),f=r("ae40"),u=c("map"),d=f("map");a({target:"Array",proto:!0,forced:!u||!d},{map:function(m){return l(this,m,arguments.length>1?arguments[1]:void 0)}})}),da84:(function(i,s,r){(function(a){var l=function(c){return c&&c.Math==Math&&c};i.exports=l(typeof globalThis=="object"&&globalThis)||l(typeof window=="object"&&window)||l(typeof self=="object"&&self)||l(typeof a=="object"&&a)||Function("return this")()}).call(this,r("c8ba"))}),dbb4:(function(i,s,r){var a=r("23e7"),l=r("83ab"),c=r("56ef"),f=r("fc6a"),u=r("06cf"),d=r("8418");a({target:"Object",stat:!0,sham:!l},{getOwnPropertyDescriptors:function(m){for(var h=f(m),v=u.f,g=c(h),y={},O=0,b,A;g.length>O;)A=v(h,b=g[O++]),A!==void 0&&d(y,b,A);return y}})}),dbf1:(function(i,s,r){(function(a){r.d(s,"a",function(){return c});function l(){return typeof window<"u"?window.console:a.console}var c=l()}).call(this,r("c8ba"))}),ddb0:(function(i,s,r){var a=r("da84"),l=r("fdbc"),c=r("e260"),f=r("9112"),u=r("b622"),d=u("iterator"),p=u("toStringTag"),m=c.values;for(var h in l){var v=a[h],g=v&&v.prototype;if(g){if(g[d]!==m)try{f(g,d,m)}catch{g[d]=m}if(g[p]||f(g,p,h),l[h]){for(var y in c)if(g[y]!==c[y])try{f(g,y,c[y])}catch{g[y]=c[y]}}}}}),df75:(function(i,s,r){var a=r("ca84"),l=r("7839");i.exports=Object.keys||function(f){return a(f,l)}}),e01a:(function(i,s,r){var a=r("23e7"),l=r("83ab"),c=r("da84"),f=r("5135"),u=r("861d"),d=r("9bf2").f,p=r("e893"),m=c.Symbol;if(l&&typeof m=="function"&&(!("description"in m.prototype)||m().description!==void 0)){var h={},v=function(){var C=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),K=this instanceof v?new m(C):C===void 0?m():m(C);return C===""&&(h[K]=!0),K};p(v,m);var g=v.prototype=m.prototype;g.constructor=v;var y=g.toString,O=String(m("test"))=="Symbol(test)",b=/^Symbol\((.*)\)[^)]+$/;d(g,"description",{configurable:!0,get:function(){var C=u(this)?this.valueOf():this,K=y.call(C);if(f(h,C))return"";var M=O?K.slice(7,-1):K.replace(b,"$1");return M===""?void 0:M}}),a({global:!0,forced:!0},{Symbol:v})}}),e163:(function(i,s,r){var a=r("5135"),l=r("7b0b"),c=r("f772"),f=r("e177"),u=c("IE_PROTO"),d=Object.prototype;i.exports=f?Object.getPrototypeOf:function(p){return p=l(p),a(p,u)?p[u]:typeof p.constructor=="function"&&p instanceof p.constructor?p.constructor.prototype:p instanceof Object?d:null}}),e177:(function(i,s,r){var a=r("d039");i.exports=!a(function(){function l(){}return l.prototype.constructor=null,Object.getPrototypeOf(new l)!==l.prototype})}),e260:(function(i,s,r){var a=r("fc6a"),l=r("44d2"),c=r("3f8c"),f=r("69f3"),u=r("7dd0"),d="Array Iterator",p=f.set,m=f.getterFor(d);i.exports=u(Array,"Array",function(h,v){p(this,{type:d,target:a(h),index:0,kind:v})},function(){var h=m(this),v=h.target,g=h.kind,y=h.index++;return!v||y>=v.length?(h.target=void 0,{value:void 0,done:!0}):g=="keys"?{value:y,done:!1}:g=="values"?{value:v[y],done:!1}:{value:[y,v[y]],done:!1}},"values"),c.Arguments=c.Array,l("keys"),l("values"),l("entries")}),e439:(function(i,s,r){var a=r("23e7"),l=r("d039"),c=r("fc6a"),f=r("06cf").f,u=r("83ab"),d=l(function(){f(1)}),p=!u||d;a({target:"Object",stat:!0,forced:p,sham:!u},{getOwnPropertyDescriptor:function(h,v){return f(c(h),v)}})}),e538:(function(i,s,r){var a=r("b622");s.f=a}),e893:(function(i,s,r){var a=r("5135"),l=r("56ef"),c=r("06cf"),f=r("9bf2");i.exports=function(u,d){for(var p=l(d),m=f.f,h=c.f,v=0;v<p.length;v++){var g=p[v];a(u,g)||m(u,g,h(d,g))}}}),e8b5:(function(i,s,r){var a=r("c6b6");i.exports=Array.isArray||function(c){return a(c)=="Array"}}),e95a:(function(i,s,r){var a=r("b622"),l=r("3f8c"),c=a("iterator"),f=Array.prototype;i.exports=function(u){return u!==void 0&&(l.Array===u||f[c]===u)}}),f5df:(function(i,s,r){var a=r("00ee"),l=r("c6b6"),c=r("b622"),f=c("toStringTag"),u=l((function(){return arguments})())=="Arguments",d=function(p,m){try{return p[m]}catch{}};i.exports=a?l:function(p){var m,h,v;return p===void 0?"Undefined":p===null?"Null":typeof(h=d(m=Object(p),f))=="string"?h:u?l(m):(v=l(m))=="Object"&&typeof m.callee=="function"?"Arguments":v}}),f772:(function(i,s,r){var a=r("5692"),l=r("90e3"),c=a("keys");i.exports=function(f){return c[f]||(c[f]=l(f))}}),fb15:(function(i,s,r){if(r.r(s),typeof window<"u"){var a=window.document.currentScript;{var l=r("8875");a=l(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:l})}var c=a&&a.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);c&&(r.p=c[1])}r("99af"),r("4de4"),r("4160"),r("c975"),r("d81d"),r("a434"),r("159b"),r("a4d3"),r("e439"),r("dbb4"),r("b64b");function f(T,E,N){return E in T?Object.defineProperty(T,E,{value:N,enumerable:!0,configurable:!0,writable:!0}):T[E]=N,T}function u(T,E){var N=Object.keys(T);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(T);E&&(F=F.filter(function(J){return Object.getOwnPropertyDescriptor(T,J).enumerable})),N.push.apply(N,F)}return N}function d(T){for(var E=1;E<arguments.length;E++){var N=arguments[E]!=null?arguments[E]:{};E%2?u(Object(N),!0).forEach(function(F){f(T,F,N[F])}):Object.getOwnPropertyDescriptors?Object.defineProperties(T,Object.getOwnPropertyDescriptors(N)):u(Object(N)).forEach(function(F){Object.defineProperty(T,F,Object.getOwnPropertyDescriptor(N,F))})}return T}function p(T){if(Array.isArray(T))return T}r("e01a"),r("d28b"),r("e260"),r("d3b7"),r("3ca3"),r("ddb0");function m(T,E){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(T)))){var N=[],F=!0,J=!1,te=void 0;try{for(var ce=T[Symbol.iterator](),Ee;!(F=(Ee=ce.next()).done)&&(N.push(Ee.value),!(E&&N.length===E));F=!0);}catch($e){J=!0,te=$e}finally{try{!F&&ce.return!=null&&ce.return()}finally{if(J)throw te}}return N}}r("a630"),r("fb6a"),r("b0c0"),r("25f0");function h(T,E){(E==null||E>T.length)&&(E=T.length);for(var N=0,F=new Array(E);N<E;N++)F[N]=T[N];return F}function v(T,E){if(T){if(typeof T=="string")return h(T,E);var N=Object.prototype.toString.call(T).slice(8,-1);if(N==="Object"&&T.constructor&&(N=T.constructor.name),N==="Map"||N==="Set")return Array.from(T);if(N==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(N))return h(T,E)}}function g(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
29
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function y(T,E){return p(T)||m(T,E)||v(T,E)||g()}function O(T){if(Array.isArray(T))return h(T)}function b(T){if(typeof Symbol<"u"&&Symbol.iterator in Object(T))return Array.from(T)}function A(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
30
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function C(T){return O(T)||b(T)||v(T)||A()}var K=r("a352"),M=r.n(K);function I(T){T.parentElement!==null&&T.parentElement.removeChild(T)}function R(T,E,N){var F=N===0?T.children[0]:T.children[N-1].nextSibling;T.insertBefore(E,F)}var j=r("dbf1");r("13d5"),r("4fad"),r("ac1f"),r("5319");function Y(T){var E=Object.create(null);return function(F){var J=E[F];return J||(E[F]=T(F))}}var P=/-(\w)/g,x=Y(function(T){return T.replace(P,function(E,N){return N.toUpperCase()})});r("5db7"),r("73d9");var B=["Start","Add","Remove","Update","End"],V=["Choose","Unchoose","Sort","Filter","Clone"],X=["Move"],re=[X,B,V].flatMap(function(T){return T}).map(function(T){return"on".concat(T)}),de={manage:X,manageAndEmit:B,emit:V};function U(T){return re.indexOf(T)!==-1}r("caad"),r("2ca0");var L=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];function D(T){return L.includes(T)}function S(T){return["transition-group","TransitionGroup"].includes(T)}function H(T){return["id","class","role","style"].includes(T)||T.startsWith("data-")||T.startsWith("aria-")||T.startsWith("on")}function W(T){return T.reduce(function(E,N){var F=y(N,2),J=F[0],te=F[1];return E[J]=te,E},{})}function se(T){var E=T.$attrs,N=T.componentData,F=N===void 0?{}:N,J=W(Object.entries(E).filter(function(te){var ce=y(te,2),Ee=ce[0];return ce[1],H(Ee)}));return d(d({},J),F)}function le(T){var E=T.$attrs,N=T.callBackBuilder,F=W(xe(E));Object.entries(N).forEach(function(te){var ce=y(te,2),Ee=ce[0],$e=ce[1];de[Ee].forEach(function(ne){F["on".concat(ne)]=$e(ne)})});var J="[data-draggable]".concat(F.draggable||"");return d(d({},F),{},{draggable:J})}function xe(T){return Object.entries(T).filter(function(E){var N=y(E,2),F=N[0];return N[1],!H(F)}).map(function(E){var N=y(E,2),F=N[0],J=N[1];return[x(F),J]}).filter(function(E){var N=y(E,2),F=N[0];return N[1],!U(F)})}r("c740");function ue(T,E){if(!(T instanceof E))throw new TypeError("Cannot call a class as a function")}function Ne(T,E){for(var N=0;N<E.length;N++){var F=E[N];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(T,F.key,F)}}function Ye(T,E,N){return E&&Ne(T.prototype,E),T}var Ze=function(E){var N=E.el;return N},be=function(E,N){return E.__draggable_context=N},_=function(E){return E.__draggable_context},_e=(function(){function T(E){var N=E.nodes,F=N.header,J=N.default,te=N.footer,ce=E.root,Ee=E.realList;ue(this,T),this.defaultNodes=J,this.children=[].concat(C(F),C(J),C(te)),this.externalComponent=ce.externalComponent,this.rootTransition=ce.transition,this.tag=ce.tag,this.realList=Ee}return Ye(T,[{key:"render",value:function(N,F){var J=this.tag,te=this.children,ce=this._isRootComponent,Ee=ce?{default:function(){return te}}:te;return N(J,F,Ee)}},{key:"updated",value:function(){var N=this.defaultNodes,F=this.realList;N.forEach(function(J,te){be(Ze(J),{element:F[te],index:te})})}},{key:"getUnderlyingVm",value:function(N){return _(N)}},{key:"getVmIndexFromDomIndex",value:function(N,F){var J=this.defaultNodes,te=J.length,ce=F.children,Ee=ce.item(N);if(Ee===null)return te;var $e=_(Ee);if($e)return $e.index;if(te===0)return 0;var ne=Ze(J[0]),Q=C(ce).findIndex(function(q){return q===ne});return N<Q?0:te}},{key:"_isRootComponent",get:function(){return this.externalComponent||this.rootTransition}}]),T})(),lt=r("8bbf");function it(T,E){var N=T[E];return N?N():[]}function w(T){var E=T.$slots,N=T.realList,F=T.getKey,J=N||[],te=["header","footer"].map(function(q){return it(E,q)}),ce=y(te,2),Ee=ce[0],$e=ce[1],ne=E.item;if(!ne)throw new Error("draggable element must have an item slot");var Q=J.flatMap(function(q,me){return ne({element:q,index:me}).map(function(ve){return ve.key=F(q),ve.props=d(d({},ve.props||{}),{},{"data-draggable":!0}),ve})});if(Q.length!==J.length)throw new Error("Item slot must have only one child");return{header:Ee,footer:$e,default:Q}}function Z(T){var E=S(T),N=!D(T)&&!E;return{transition:E,externalComponent:N,tag:N?Object(lt.resolveComponent)(T):E?lt.TransitionGroup:T}}function He(T){var E=T.$slots,N=T.tag,F=T.realList,J=T.getKey,te=w({$slots:E,realList:F,getKey:J}),ce=Z(N);return new _e({nodes:te,root:ce,realList:F})}function Rt(T,E){var N=this;Object(lt.nextTick)(function(){return N.$emit(T.toLowerCase(),E)})}function ln(T){var E=this;return function(N,F){if(E.realList!==null)return E["onDrag".concat(T)](N,F)}}function Nn(T){var E=this,N=ln.call(this,T);return function(F,J){N.call(E,F,J),Rt.call(E,T,F)}}var Cn=null,An={list:{type:Array,required:!1,default:null},modelValue:{type:Array,required:!1,default:null},itemKey:{type:[String,Function],required:!0},clone:{type:Function,default:function(E){return E}},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},xn=["update:modelValue","change"].concat(C([].concat(C(de.manageAndEmit),C(de.emit)).map(function(T){return T.toLowerCase()}))),Pn=Object(lt.defineComponent)({name:"draggable",inheritAttrs:!1,props:An,emits:xn,data:function(){return{error:!1}},render:function(){try{this.error=!1;var E=this.$slots,N=this.$attrs,F=this.tag,J=this.componentData,te=this.realList,ce=this.getKey,Ee=He({$slots:E,tag:F,realList:te,getKey:ce});this.componentStructure=Ee;var $e=se({$attrs:N,componentData:J});return Ee.render(lt.h,$e)}catch(ne){return this.error=!0,Object(lt.h)("pre",{style:{color:"red"}},ne.stack)}},created:function(){this.list!==null&&this.modelValue!==null&&j.a.error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted:function(){var E=this;if(!this.error){var N=this.$attrs,F=this.$el,J=this.componentStructure;J.updated();var te=le({$attrs:N,callBackBuilder:{manageAndEmit:function($e){return Nn.call(E,$e)},emit:function($e){return Rt.bind(E,$e)},manage:function($e){return ln.call(E,$e)}}}),ce=F.nodeType===1?F:F.parentElement;this._sortable=new M.a(ce,te),this.targetDomElement=ce,ce.__draggable_component__=this}},updated:function(){this.componentStructure.updated()},beforeUnmount:function(){this._sortable!==void 0&&this._sortable.destroy()},computed:{realList:function(){var E=this.list;return E||this.modelValue},getKey:function(){var E=this.itemKey;return typeof E=="function"?E:function(N){return N[E]}}},watch:{$attrs:{handler:function(E){var N=this._sortable;N&&xe(E).forEach(function(F){var J=y(F,2),te=J[0],ce=J[1];N.option(te,ce)})},deep:!0}},methods:{getUnderlyingVm:function(E){return this.componentStructure.getUnderlyingVm(E)||null},getUnderlyingPotencialDraggableComponent:function(E){return E.__draggable_component__},emitChanges:function(E){var N=this;Object(lt.nextTick)(function(){return N.$emit("change",E)})},alterList:function(E){if(this.list){E(this.list);return}var N=C(this.modelValue);E(N),this.$emit("update:modelValue",N)},spliceList:function(){var E=arguments,N=function(J){return J.splice.apply(J,C(E))};this.alterList(N)},updatePosition:function(E,N){var F=function(te){return te.splice(N,0,te.splice(E,1)[0])};this.alterList(F)},getRelatedContextFromMoveEvent:function(E){var N=E.to,F=E.related,J=this.getUnderlyingPotencialDraggableComponent(N);if(!J)return{component:J};var te=J.realList,ce={list:te,component:J};if(N!==F&&te){var Ee=J.getUnderlyingVm(F)||{};return d(d({},Ee),ce)}return ce},getVmIndexFromDomIndex:function(E){return this.componentStructure.getVmIndexFromDomIndex(E,this.targetDomElement)},onDragStart:function(E){this.context=this.getUnderlyingVm(E.item),E.item._underlying_vm_=this.clone(this.context.element),Cn=E.item},onDragAdd:function(E){var N=E.item._underlying_vm_;if(N!==void 0){I(E.item);var F=this.getVmIndexFromDomIndex(E.newIndex);this.spliceList(F,0,N);var J={element:N,newIndex:F};this.emitChanges({added:J})}},onDragRemove:function(E){if(R(this.$el,E.item,E.oldIndex),E.pullMode==="clone"){I(E.clone);return}var N=this.context,F=N.index,J=N.element;this.spliceList(F,1);var te={element:J,oldIndex:F};this.emitChanges({removed:te})},onDragUpdate:function(E){I(E.item),R(E.from,E.item,E.oldIndex);var N=this.context.index,F=this.getVmIndexFromDomIndex(E.newIndex);this.updatePosition(N,F);var J={element:this.context.element,oldIndex:N,newIndex:F};this.emitChanges({moved:J})},computeFutureIndex:function(E,N){if(!E.element)return 0;var F=C(N.to.children).filter(function(Ee){return Ee.style.display!=="none"}),J=F.indexOf(N.related),te=E.component.getVmIndexFromDomIndex(J),ce=F.indexOf(Cn)!==-1;return ce||!N.willInsertAfter?te:te+1},onDragMove:function(E,N){var F=this.move,J=this.realList;if(!F||!J)return!0;var te=this.getRelatedContextFromMoveEvent(E),ce=this.computeFutureIndex(te,E),Ee=d(d({},this.context),{},{futureIndex:ce}),$e=d(d({},E),{},{relatedContext:te,draggedContext:Ee});return F($e,N)},onDragEnd:function(){Cn=null}}}),Rn=Pn;s.default=Rn}),fb6a:(function(i,s,r){var a=r("23e7"),l=r("861d"),c=r("e8b5"),f=r("23cb"),u=r("50c4"),d=r("fc6a"),p=r("8418"),m=r("b622"),h=r("1dde"),v=r("ae40"),g=h("slice"),y=v("slice",{ACCESSORS:!0,0:0,1:2}),O=m("species"),b=[].slice,A=Math.max;a({target:"Array",proto:!0,forced:!g||!y},{slice:function(K,M){var I=d(this),R=u(I.length),j=f(K,R),Y=f(M===void 0?R:M,R),P,x,B;if(c(I)&&(P=I.constructor,typeof P=="function"&&(P===Array||c(P.prototype))?P=void 0:l(P)&&(P=P[O],P===null&&(P=void 0)),P===Array||P===void 0))return b.call(I,j,Y);for(x=new(P===void 0?Array:P)(A(Y-j,0)),B=0;j<Y;j++,B++)j in I&&p(x,B,I[j]);return x.length=B,x}})}),fc6a:(function(i,s,r){var a=r("44ad"),l=r("1d80");i.exports=function(c){return a(l(c))}}),fdbc:(function(i,s){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,s,r){var a=r("4930");i.exports=a&&!Symbol.sham&&typeof Symbol.iterator=="symbol"})}).default})})(mr)),mr.exports}var vu=mu();const gu=Rs(vu),yu=Ds("testResults",()=>{const t=Kt({}),e=Kt({}),n=Kt({}),o=Kt({});function i(a){for(const[l,c]of Object.entries(a))t[l]=c.status,e[l]=c.message||"",n[l]=c.time?new Date(c.time).toLocaleString():"",o[l]=c.latency||0}async function s(){try{const a=await kt.get("/api/test/results");i(a)}catch{}}async function r(a){t[a]="testing",e[a]="";try{const l=await kt.post("/api/test/proxy",{model:a});t[a]=l.status,e[a]=l.message||"",n[a]=new Date().toLocaleString(),o[a]=l.latency||0}catch(l){t[a]="error",e[a]=l.message,n[a]=new Date().toLocaleString(),o[a]=0}}return{modelStatus:t,modelMessage:e,modelTime:n,modelLatency:o,loadResults:s,testProxy:r}}),Eu={class:"dialog-body"},Su={class:"flex-gap-8 full-width"},bu={class:"full-url-toggle"},Tu={key:0,class:"muted-sm"},Ou={class:"flex-gap-8 full-width"},Iu={key:0,class:"mt-4"},Nu={key:0,class:"test-ok-text"},Cu={key:1,class:"test-fail-text"},Au={class:"flex-gap-8 mb-8"},xu={class:"model-select-wrap"},Pu={class:"muted-13"},Ru={key:0,class:"muted-12"},Du={key:0,class:"detail-body"},Mu={class:"detail-head"},Lu={class:"detail-name"},wu={class:"muted-sm"},Fu={class:"detail-pre"},Vu={class:"detail-pre"},Uu={class:"flex-gap-8 flex-center"},$u=qi({__name:"ProviderModal",props:{editName:{},provider:{},cloneOf:{}},emits:["close","saved"],setup(t,{emit:e}){const n=t,o=e,{toast:i}=oa(),s=ia(),r=ke(n.editName),a=Kt({name:"",alias:"",website:"",api_base:"",protocol:"anthropic",api_key:"",autoV1:!0,models:[]}),l=ke(),c=D=>{try{const S=new URL(D);return S.protocol==="http:"||S.protocol==="https:"}catch{return!1}},f=(D,S,H)=>{!S||c(S)?H():H(new Error("请输入有效的 URL(以 http:// 或 https:// 开头)"))},u={name:[{required:!0,message:"请输入供应商名称",trigger:"blur"}],alias:[{required:!0,message:"请输入供应商英文名称(别名)",trigger:"blur"}],website:[{validator:f,trigger:"blur"}],api_base:[{required:!0,message:"请输入请求地址 (API Base)",trigger:"blur"},{validator:f,trigger:"blur"}],api_key:[{required:!0,message:"请输入 API Key",trigger:"blur"}]},d=ke(!1),p=ke(!1),m=ke(!1),h=ke([]),v=ke(!1),g=ke([]),y=To(()=>h.value.filter(D=>!a.models.some(S=>S.upstream===D))),O=ke(null),b=Kt({}),A={anthropic:"/messages",openai:"/chat/completions","openai-responses":"/responses"},C=To(()=>{const D=a.api_base.trim().replace(/\/+$/,"");if(!D)return"";const S=A[a.protocol]||"";return a.autoV1&&!/\/v\d+$/i.test(D)?`${D}/v1${S}`:`${D}${S}`}),K=D=>{if(D==null)return"(无)";try{const S=new WeakSet;return JSON.stringify(D,(H,W)=>{if(W&&typeof W=="object"){if(S.has(W))return"[circular]";S.add(W)}return W},2)}catch{return String(D)}},M=()=>{var D;Object.assign(a,{name:"",alias:"",website:"",api_base:"",protocol:"anthropic",api_key:"",autoV1:!0,models:[]}),(D=l.value)==null||D.clearValidate(),h.value=[],g.value=[],O.value=null,B.value=!1,X.value=null;for(const S of Object.keys(b))delete b[S]},I=()=>{const D=a.alias.trim();for(const S of g.value){const H=S.trim();H&&(h.value.includes(H)||h.value.push(H),!a.models.some(W=>W.upstream===H)&&a.models.push({full_name:D?`${D}/${H}`:H,upstream:H,protocol:a.protocol}))}g.value=[]},R=D=>{a.models.splice(D,1)},j=async D=>{v.value=!0;try{const S=await kt.get(`/api/test/models-cache/${encodeURIComponent(D)}`);h.value=S.models||[]}catch{h.value=[]}finally{v.value=!1}},Y=async()=>{var S,H;M();const D=n.provider;if(n.editName!=null&&D)await j(D.name),Object.assign(a,{name:D.name||"",alias:D.alias||"",website:D.website||"",api_base:D.apiBase||"",protocol:D.customLlmProvider||"anthropic",api_key:D.apiKey||"",autoV1:D.autoV1!==!1,models:D.models.map(W=>({full_name:W.modelName,upstream:W.model,protocol:W.customLlmProvider||D.customLlmProvider||"anthropic"}))});else if(n.cloneOf){const W=n.cloneOf;W.name&&await j(W.name);const se=(S=W.alias)==null?void 0:S.trim(),le=se?`${se}-copy`:"copy",xe=`${((H=W.name)==null?void 0:H.trim())||se||"供应商"}副本`;Object.assign(a,{name:xe,alias:le,website:W.website||"",api_base:W.apiBase||"",protocol:W.customLlmProvider||"anthropic",api_key:W.apiKey||"",autoV1:W.autoV1!==!1,models:(W.models||[]).map(ue=>{let Ne=ue.modelName;return se&&Ne.startsWith(`${se}/`)&&(Ne=`${le}/${Ne.slice(se.length+1)}`),{full_name:Ne,upstream:ue.model,protocol:ue.customLlmProvider||W.customLlmProvider||"anthropic"}})})}};ea(()=>{r.value=n.editName,Y()}),Ms(()=>n.editName,async D=>{r.value=D,await Y()});const P=async()=>{const D=a.api_key.trim(),S=a.api_base.trim();if(!(!D||!S)){O.value={loading:!0};try{const H=await kt.post("/api/test",{api_base:S,api_key:D,protocol:a.protocol,autoV1:a.autoV1});H.status==="ok"?(O.value={loading:!1,status:"ok",msg:`连接成功 (${H.models??0} 个模型)`},i("连接成功","success")):(O.value={loading:!1,status:"fail",msg:H.message},i(`连接失败: ${H.message}`,"error"))}catch(H){O.value={loading:!1,status:"fail",msg:H.message},i(H.message,"error")}}},x=async D=>{b[D.full_name]={loading:!0};try{const S=await kt.post("/api/test/model",{model:D.upstream,api_base:a.api_base.trim(),api_key:a.api_key.trim(),protocol:D.protocol||a.protocol,autoV1:a.autoV1});b[D.full_name]={loading:!1,status:S.status==="ok"?"ok":"fail",msg:S.status==="ok"&&S.latency!=null?`${S.message} · ${S.latency}ms`:S.message,request:S.request,response:S.response},i(S.status==="ok"?"模型可用":`模型不可用: ${S.message}`,S.status==="ok"?"success":"error")}catch(S){b[D.full_name]={loading:!1,status:"fail",msg:S.message},i(S.message,"error")}},B=ke(!1),V=ke("request"),X=ke(null),re=D=>{const S=b[D];!S||S.loading||(V.value="request",X.value={name:D,status:S.status||"",msg:S.msg||"",request:S.request,response:S.response},B.value=!0)},de=async()=>{const D=[...a.models];if(D.length){p.value=!0;try{await Promise.all(D.map(S=>x(S)))}finally{p.value=!1}}},U=async()=>{var D;d.value=!0;try{const S=r.value!=null?r.value:`new::${a.api_base.trim()}`,H=await kt.post("/api/test/fetch-models",{api_base:a.api_base.trim(),api_key:a.api_key.trim(),keyId:S,protocol:a.protocol,autoV1:a.autoV1});H.status==="ok"&&((D=H.models)==null?void 0:D.length)>0?(h.value=[...new Set([...h.value,...H.models])],i(`已获取 ${H.models.length} 个模型`,"success")):i(H.message||"未获取到模型","error")}catch(S){i(S.message,"error")}finally{d.value=!1}},L=async()=>{var be;if(!await((be=l.value)==null?void 0:be.validate().catch(()=>!1))||!a.models.length)return;const S=a.models.map(_=>({full_name:_.full_name.trim(),upstream:_.upstream.trim(),protocol:_.protocol||a.protocol})).filter(_=>_.full_name);if(!S.length){i("请至少填写一个有效的模型名称","error");return}const H=a.name.trim(),W=a.alias.trim(),se=a.website.trim(),le=a.api_base.trim(),xe=a.api_key.trim(),ue=s.suppliers.filter(_=>_.name!==r.value);if(ue.some(_=>_.name===H)){i(`供应商名称已存在: ${H}`,"error");return}if(W&&ue.some(_=>(_.alias??"").trim()===W)){i(`供应商别名已存在: ${W}`,"error");return}const Ne={name:H,...W?{alias:W}:{},...se?{website:se}:{},customLlmProvider:a.protocol,apiKey:xe,apiBase:le,...a.autoV1?{}:{autoV1:!1},models:S.map(_=>({modelName:_.full_name,model:_.upstream,..._.protocol&&_.protocol!==a.protocol?{customLlmProvider:_.protocol}:{}}))};if(Ne.models.some(_=>_.model.includes("/"))){i("上游模型名不得包含 /","error");return}const Ye=[...ue.flatMap(_=>_.models.map(_e=>_e.modelName)),...S.map(_=>_.full_name)],Ze=new Set;for(const _ of Ye){if(Ze.has(_)){i(`模型名称重复: ${_}`,"error");return}Ze.add(_)}m.value=!0;try{const _=r.value==null,_e=await s.saveProviders(_?[Ne,...ue]:[...ue,Ne]);_&&s.moveProviderToTop(H),i(_e.message||"供应商已保存","success"),o("saved")}catch(_){i(_.message,"error")}finally{m.value=!1}};return(D,S)=>{const H=Te("el-input"),W=Te("el-form-item"),se=Te("el-switch"),le=Te("el-option"),xe=Te("el-select"),ue=Te("el-button"),Ne=Te("el-table-column"),Ye=Te("el-link"),Ze=Te("el-table"),be=Te("el-form"),_=Te("el-tag"),_e=Te("el-tab-pane"),lt=Te("el-tabs"),it=Te("el-dialog");return ge(),It(it,{"model-value":!0,title:r.value?"编辑供应商":"添加供应商",width:"1200px",top:"3vh","align-center":"","close-on-click-modal":!1,onClose:S[12]||(S[12]=w=>o("close"))},{footer:k(()=>[Oe("div",Uu,[$(ue,{onClick:S[11]||(S[11]=w=>o("close")),disabled:m.value},{default:k(()=>[...S[20]||(S[20]=[Se(" 取消 ",-1)])]),_:1},8,["disabled"]),$(ue,{type:"primary",loading:m.value,onClick:L,disabled:!a.models.length||!a.api_base||!a.api_key||m.value},{default:k(()=>[Se(Ie(m.value?"保存中...":r.value?"保存":"添加供应商"),1)]),_:1},8,["loading","disabled"])])]),default:k(()=>[Oe("div",Eu,[$(be,{ref_key:"formRef",ref:l,model:a,rules:u,"label-position":"top"},{default:k(()=>[$(W,{label:"供应商名称",prop:"name"},{default:k(()=>[$(H,{modelValue:a.name,"onUpdate:modelValue":S[0]||(S[0]=w=>a.name=w),modelModifiers:{trim:!0},placeholder:"如:小米 MiMo(仅用于界面展示)"},null,8,["modelValue"])]),_:1}),$(W,{label:"供应商英文名称(别名)",prop:"alias"},{default:k(()=>[$(H,{modelValue:a.alias,"onUpdate:modelValue":S[1]||(S[1]=w=>a.alias=w),modelModifiers:{trim:!0},placeholder:"如:mimo"},null,8,["modelValue"]),S[13]||(S[13]=Oe("div",{class:"muted-sm"},"添加模型时的默认名称前缀,如 mimo/gpt-4o,每个模型可单独修改",-1))]),_:1}),$(W,{label:"官网链接",prop:"website"},{default:k(()=>[$(H,{modelValue:a.website,"onUpdate:modelValue":S[2]||(S[2]=w=>a.website=w),modelModifiers:{trim:!0},placeholder:"https://example.com(可选)"},null,8,["modelValue"])]),_:1}),$(W,{label:"请求地址 (API Base)",prop:"api_base"},{default:k(()=>[Oe("div",Su,[$(H,{modelValue:a.api_base,"onUpdate:modelValue":S[3]||(S[3]=w=>a.api_base=w),modelModifiers:{trim:!0},placeholder:"https://api.example.com/v1",class:"key-input"},null,8,["modelValue"]),Oe("div",bu,[S[14]||(S[14]=Oe("span",{class:"muted-13"},"自动补全 /v1",-1)),$(se,{modelValue:a.autoV1,"onUpdate:modelValue":S[4]||(S[4]=w=>a.autoV1=w)},null,8,["modelValue"])])]),C.value?(ge(),je("div",Tu," 实际请求地址:"+Ie(C.value)+"(开启自动补全时,地址末尾无 /v1~v9 版本段会插入 /v1;上游无版本前缀请关闭) ",1)):Ct("",!0)]),_:1}),$(W,{label:"上游协议 (Protocol)"},{default:k(()=>[$(xe,{modelValue:a.protocol,"onUpdate:modelValue":S[5]||(S[5]=w=>a.protocol=w),class:"full-width"},{default:k(()=>[$(le,{label:"Anthropic Messages",value:"anthropic"}),$(le,{label:"OpenAI Chat Completions",value:"openai"}),$(le,{label:"OpenAI Responses",value:"openai-responses"})]),_:1},8,["modelValue"])]),_:1}),$(W,{label:"API Key",prop:"api_key"},{default:k(()=>{var w;return[Oe("div",Ou,[$(H,{modelValue:a.api_key,"onUpdate:modelValue":S[6]||(S[6]=Z=>a.api_key=Z),modelModifiers:{trim:!0},placeholder:"输入 API Key",class:"key-input",onKeyup:Ls(P,["enter"])},null,8,["modelValue"]),$(ue,{class:"key-test-btn",loading:(w=O.value)==null?void 0:w.loading,disabled:!a.api_base||!a.api_key,onClick:P},{default:k(()=>[...S[15]||(S[15]=[Se("测试",-1)])]),_:1},8,["loading","disabled"])]),O.value&&!O.value.loading?(ge(),je("div",Iu,[O.value.status==="ok"?(ge(),je("span",Nu,Ie(O.value.msg),1)):O.value.status==="fail"?(ge(),je("span",Cu,Ie(O.value.msg),1)):Ct("",!0)])):Ct("",!0)]}),_:1}),$(W,{label:"模型列表"},{default:k(()=>[Oe("div",Au,[Oe("div",xu,[$(xe,{modelValue:g.value,"onUpdate:modelValue":S[7]||(S[7]=w=>g.value=w),multiple:"","collapse-tags":"",filterable:"","allow-create":"","default-first-option":"",placeholder:"搜索或输入模型名"},{default:k(()=>[(ge(!0),je(na,null,ta(y.value,w=>(ge(),It(le,{key:w,label:w,value:w},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),$(ue,{onClick:I,disabled:!g.value.length},{default:k(()=>[...S[16]||(S[16]=[Se("添加",-1)])]),_:1},8,["disabled"]),$(ue,{loading:d.value,disabled:!a.api_base||!a.api_key,onClick:U},{default:k(()=>[Se(Ie(d.value?"":"获取模型列表"),1)]),_:1},8,["loading","disabled"]),$(ue,{loading:p.value,disabled:!a.models.length||!a.api_base||!a.api_key,onClick:de},{default:k(()=>[Se(Ie(p.value?"":"测试全部"),1)]),_:1},8,["loading","disabled"])]),$(Ze,{border:"",data:a.models,class:"full-width","empty-text":"暂无模型"},{default:k(()=>[$(Ne,{type:"index",label:"#",width:"50",align:"center"}),$(Ne,{label:"模型全名(可编辑)","min-width":"260"},{default:k(({row:w})=>[$(H,{modelValue:w.full_name,"onUpdate:modelValue":Z=>w.full_name=Z},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),$(Ne,{prop:"upstream",label:"上游模型","min-width":"180"},{default:k(({row:w})=>[Oe("span",Pu,Ie(w.upstream),1)]),_:1}),$(Ne,{label:"上游协议",width:"230"},{default:k(({row:w})=>[$(xe,{modelValue:w.protocol,"onUpdate:modelValue":Z=>w.protocol=Z,class:"full-width",size:"small"},{default:k(()=>[$(le,{label:"Anthropic Messages",value:"anthropic"}),$(le,{label:"OpenAI Chat Completions",value:"openai"}),$(le,{label:"OpenAI Responses",value:"openai-responses"})]),_:1},8,["modelValue","onUpdate:modelValue"])]),_:1}),$(Ne,{label:"测试结果",width:"200",align:"center"},{default:k(({row:w})=>{var Z,He;return[(Z=b[w.full_name])!=null&&Z.loading?(ge(),je("span",Ru,"测试中...")):(He=b[w.full_name])!=null&&He.status?(ge(),It(Ye,{key:1,type:b[w.full_name].status==="ok"?"success":"danger",class:"test-result-link",onClick:Rt=>re(w.full_name)},{default:k(()=>[Se(Ie(b[w.full_name].msg),1)]),_:2},1032,["type","onClick"])):Ct("",!0)]}),_:1}),$(Ne,{width:"140",align:"center",label:"操作"},{default:k(({row:w})=>{var Z;return[$(ue,{link:"",loading:(Z=b[w.full_name])==null?void 0:Z.loading,disabled:!a.api_base||!a.api_key,onClick:He=>x(w)},{default:k(()=>[...S[17]||(S[17]=[Se("测试",-1)])]),_:1},8,["loading","disabled","onClick"]),$(ue,{link:"",type:"danger",onClick:He=>R(a.models.indexOf(w))},{default:k(()=>[...S[18]||(S[18]=[Se("删除",-1)])]),_:1},8,["onClick"])]}),_:1})]),_:1},8,["data"])]),_:1})]),_:1},8,["model"])]),$(it,{modelValue:B.value,"onUpdate:modelValue":S[10]||(S[10]=w=>B.value=w),title:"测试详情",width:"900px",top:"5vh","align-center":"","append-to-body":""},{footer:k(()=>[$(ue,{type:"primary",onClick:S[9]||(S[9]=w=>B.value=!1)},{default:k(()=>[...S[19]||(S[19]=[Se("关闭",-1)])]),_:1})]),default:k(()=>[X.value?(ge(),je("div",Du,[Oe("div",Mu,[Oe("span",Lu,Ie(X.value.name),1),$(_,{type:X.value.status==="ok"?"success":"danger",size:"small"},{default:k(()=>[Se(Ie(X.value.status==="ok"?"成功":"失败"),1)]),_:1},8,["type"]),Oe("span",wu,Ie(X.value.msg),1)]),$(lt,{modelValue:V.value,"onUpdate:modelValue":S[8]||(S[8]=w=>V.value=w)},{default:k(()=>[$(_e,{label:"请求参数 (Request)",name:"request"},{default:k(()=>[Oe("pre",Fu,Ie(K(X.value.request)),1)]),_:1}),$(_e,{label:"响应数据 (Response)",name:"response"},{default:k(()=>[Oe("pre",Vu,Ie(K(X.value.response)),1)]),_:1})]),_:1},8,["modelValue"])])):Ct("",!0)]),_:1},8,["modelValue"])]),_:1},8,["title"])}}}),ju=ra($u,[["__scopeId","data-v-3a42733f"]]),Bu={class:"flex-end mb-16"},Xu={key:0,class:"loading-block"},Gu={class:"card-header"},Hu={class:"flex-center-gap-8 card-title"},Ku=["onClick"],ku={class:"flex-gap-6 card-tags"},Wu=["title"],Yu={class:"muted-sm mb-4"},Ju={key:0,class:"flex-wrap-gap-6"},zu={key:0,class:"badge-mark"},Qu={key:1,class:"badge-mark"},Zu={key:1,class:"text-empty"},_u={class:"card-actions flex-gap-6"},qu={key:2,class:"mt-12"},ef=["onClick"],tf={class:"muted-13"},nf={key:3,class:"muted-disabled"},rf={key:0,class:"muted-12"},of={key:1,class:"muted-disabled"},af={key:0,class:"muted-12"},sf={key:1,class:"muted-disabled"},lf={key:3,class:"text-empty mt-12"},cf={class:"muted-sm mb-8"},uf={class:"flex-between"},ff={class:"flex-gap-8"},df=qi({__name:"ProvidersView",setup(t){const{toast:e}=oa(),n=ia(),o=yu(),i=ke(!1),s=ke(null),r=ke(null),a=Kt({}),l=Kt({}),c=ke(!1),f=ke(""),u=ke(""),d=ke(!1),p=ke(null),m=To({get:()=>n.orderedProviders,set:U=>n.reorderProviders(U)});function h(){}const v=U=>U?U.length<=8?U:`${U.substring(0,6)}...${U.substring(U.length-4)}`:"-",g=U=>U.name||U.alias||v(U.apiKey||""),y=U=>{var L,D;return U.customLlmProvider!==void 0||((D=(L=U.models)==null?void 0:L[0])==null?void 0:D.modelName)!==void 0?U:{name:String(U.name??""),...U.alias?{alias:String(U.alias)}:{},customLlmProvider:String(U.protocol??"openai"),...U.api_key?{apiKey:String(U.api_key)}:{},...U.api_base?{apiBase:String(U.api_base)}:{},models:(U.models??[]).map(S=>({modelName:String(S.full_name??""),model:String(S.upstream_model??S.full_name??""),...S.protocol&&S.protocol!==U.protocol?{customLlmProvider:String(S.protocol)}:{},...S.info!==void 0?{info:S.info}:{}}))}},O=async()=>{await Promise.all([n.loadProviders(),o.loadResults()])},b=()=>{const U={version:2,exported_at:new Date().toISOString(),providers:n.suppliers},L=new Blob([JSON.stringify(U,null,2)],{type:"application/json"}),D=URL.createObjectURL(L),S=document.createElement("a");S.href=D,S.download=`ellm-providers-${new Date().toISOString().slice(0,10)}.json`,document.body.appendChild(S),S.click(),document.body.removeChild(S),URL.revokeObjectURL(D),e("已导出供应商配置","success")},A=()=>{var U;(U=p.value)==null||U.click()},C=async U=>{var S;const L=U.target,D=(S=L.files)==null?void 0:S[0];if(L.value="",!!D)try{const H=await D.text(),W=JSON.parse(H),se=Array.isArray(W)?W:Array.isArray(W.providers)?W.providers:Array.isArray(W.suppliers)?W.suppliers:null;if(!se){e("文件格式错误:未找到 providers","error");return}const le=se.map(ue=>y(ue));await so.confirm(`确定导入 ${le.length} 个供应商?将覆盖当前配置。`,"导入确认",{confirmButtonText:"导入",cancelButtonText:"取消",type:"warning"});const xe=await n.saveProviders(le);await O(),e(xe.message||"导入成功","success")}catch(H){H!=="cancel"&&e(H.message||"导入失败","error")}},K=async()=>{c.value=!0,f.value="";try{const U=await kt.get("/api/config");f.value=JSON.stringify(U,null,2)+`
|
|
31
|
+
`,u.value="ellm.config.json"}catch(U){e(U.message,"error")}},M=async()=>{try{await navigator.clipboard.writeText(f.value),e("已复制","success")}catch{e("复制失败","error")}},I=async()=>{d.value=!0;try{const U=JSON.parse(f.value),L=await kt.put("/api/config",U);c.value=!1,e(L.message||"配置已保存","success"),await O()}catch(U){U instanceof SyntaxError?e(`JSON 解析失败: ${U.message}`,"error"):e(U.message,"error")}finally{d.value=!1}},R=U=>{a[U]=!a[U]},j=()=>{s.value=null,r.value=null,i.value=!0},Y=U=>{s.value=U,r.value=null,i.value=!0},P=U=>{const L=n.suppliers.find(D=>D.name===U);L&&(s.value=null,r.value=L,i.value=!0)},x=()=>{i.value=!1,r.value=null},B=async()=>{i.value=!1,r.value=null,await O()},V=async U=>{try{const L=n.suppliers.find(D=>D.name===U);if(!L)return;await so.confirm(`确定删除该供应商(${g(L)})及其所有模型?`,"确认删除",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}),await n.deleteProvider(L),await O(),e("供应商已删除","success")}catch(L){L!=="cancel"&&e(L.message,"error")}},X=async(U,L)=>{try{await so.confirm(`确定删除模型 "${L}"?`,"确认删除",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}),await n.deleteModel(L),await O(),e("模型已删除","success")}catch(D){D!=="cancel"&&e(D.message,"error")}},re=async(U,L)=>{l[U]=!0;try{await Promise.all(L.map(W=>o.testProxy(W.modelName)));const D=L.filter(W=>o.modelStatus[W.modelName]==="ok").length,S=n.suppliers.find(W=>W.name===U),H=S?g(S):"供应商";e(`${H}: ${D}/${L.length} 个模型通过`,D===L.length?"success":"error")}catch{e("测试出错","error")}finally{l[U]=!1}},de=async U=>{try{if(navigator.clipboard&&window.isSecureContext)await navigator.clipboard.writeText(U);else{const L=document.createElement("textarea");L.value=U,L.style.position="fixed",L.style.left="-9999px",document.body.appendChild(L),L.select(),document.execCommand("copy"),document.body.removeChild(L)}e(`已复制: ${U}`,"success")}catch{e("复制失败","error")}};return ea(O),(U,L)=>{const D=Te("Download"),S=Te("el-icon"),H=Te("el-button"),W=Te("Upload"),se=Te("Document"),le=Te("Plus"),xe=Te("el-empty"),ue=Te("ArrowRight"),Ne=Te("Rank"),Ye=Te("el-tag"),Ze=Te("el-tooltip"),be=Te("el-table-column"),_=Te("el-table"),_e=Te("el-card"),lt=Te("el-input"),it=Te("el-dialog");return ge(),je("div",null,[Oe("div",Bu,[$(H,{onClick:b},{default:k(()=>[$(S,null,{default:k(()=>[$(D)]),_:1}),L[4]||(L[4]=Se(" 导出 ",-1))]),_:1}),$(H,{onClick:A},{default:k(()=>[$(S,null,{default:k(()=>[$(W)]),_:1}),L[5]||(L[5]=Se(" 导入 ",-1))]),_:1}),$(H,{onClick:K},{default:k(()=>[$(S,null,{default:k(()=>[$(se)]),_:1}),L[6]||(L[6]=Se(" 配置文件 ",-1))]),_:1}),$(H,{type:"primary",onClick:j},{default:k(()=>[$(S,null,{default:k(()=>[$(le)]),_:1}),L[7]||(L[7]=Se(" 添加供应商 ",-1))]),_:1})]),Me(n).loading?(ge(),je("div",Xu,"加载中...")):Me(n).orderedProviders.length===0?(ge(),It(xe,{key:1,description:"暂无供应商,点击上方按钮添加"})):(ge(),It(Me(gu),{key:2,modelValue:m.value,"onUpdate:modelValue":L[0]||(L[0]=w=>m.value=w),"item-key":"name",handle:".drag-handle","ghost-class":"ghost",class:"provider-grid",onChange:h},{item:k(({element:w})=>[$(_e,{shadow:"never",class:Ei(["provider-card",{"is-expanded":a[w.name]}])},{default:k(()=>[Oe("div",Gu,[Oe("div",Hu,[$(S,{class:Ei(["rotate-icon",{"rotate-90":a[w.name]}]),onClick:Z=>R(w.name),style:{cursor:"pointer"}},{default:k(()=>[$(ue)]),_:1},8,["class","onClick"]),Oe("span",{class:"alias-title cursor-pointer",onClick:Z=>R(w.name)},Ie(g(w)),9,Ku)]),$(S,{class:"drag-handle drag-grip"},{default:k(()=>[$(Ne)]),_:1})]),Oe("div",ku,[w.alias&&w.name!==w.alias?(ge(),It(Ye,{key:0,type:"info",size:"small"},{default:k(()=>[Se(Ie(w.alias),1)]),_:2},1024)):Ct("",!0),$(Ye,{type:"success",size:"small"},{default:k(()=>[Se(Ie(w.models.length)+" 个模型",1)]),_:2},1024)]),Oe("div",{class:"muted-sm line-ellipsis",title:w.apiBase},"API Base: "+Ie(w.apiBase||"-"),9,Wu),Oe("div",Yu,"Key: "+Ie(v(w.apiKey||"")),1),!a[w.name]&&w.models.length?(ge(),je("div",Ju,[(ge(!0),je(na,null,ta(w.models,Z=>(ge(),It(Ze,{key:Z.modelName,disabled:!Me(o).modelTime[Z.modelName],content:`上次测试: ${Me(o).modelTime[Z.modelName]} | ${Me(o).modelMessage[Z.modelName]||(Me(o).modelStatus[Z.modelName]==="ok"?"通过":"失败")}`,placement:"top"},{default:k(()=>[$(Ye,{type:Me(o).modelStatus[Z.modelName]==="ok"?"success":Me(o).modelStatus[Z.modelName]==="error"?"danger":"",class:"tag-cursor",onClick:He=>de(Z.modelName)},{default:k(()=>[Se(Ie(Z.modelName)+" ",1),Me(o).modelStatus[Z.modelName]==="ok"?(ge(),je("span",zu,"✓")):Ct("",!0),Me(o).modelStatus[Z.modelName]==="error"?(ge(),je("span",Qu,"✗")):Ct("",!0)]),_:2},1032,["type","onClick"])]),_:2},1032,["disabled","content"]))),128))])):!a[w.name]&&!w.models.length?(ge(),je("div",Zu," 暂无模型 ")):Ct("",!0),Oe("div",_u,[$(H,{size:"small",loading:l[w.name],disabled:l[w.name]||!w.models.length,onClick:ar(Z=>re(w.name,w.models),["stop"])},{default:k(()=>[Se(Ie(l[w.name]?"测试中...":"一键测试"),1)]),_:2},1032,["loading","disabled","onClick"]),$(H,{size:"small",onClick:ar(Z=>Y(w.name),["stop"])},{default:k(()=>[...L[8]||(L[8]=[Se("编辑",-1)])]),_:1},8,["onClick"]),$(H,{size:"small",onClick:ar(Z=>P(w.name),["stop"])},{default:k(()=>[...L[9]||(L[9]=[Se("复制",-1)])]),_:1},8,["onClick"]),$(H,{size:"small",type:"danger",onClick:ar(Z=>V(w.name),["stop"])},{default:k(()=>[...L[10]||(L[10]=[Se("删除",-1)])]),_:1},8,["onClick"])]),a[w.name]&&w.models.length?(ge(),je("div",qu,[$(_,{border:"",data:w.models,stripe:"",class:"full-width"},{default:k(()=>[$(be,{prop:"modelName",label:"模型名称","min-width":"220"},{default:k(({row:Z})=>[Oe("span",{class:"link-blue",onClick:He=>de(Z.modelName),title:"点击复制"},Ie(Z.modelName),9,ef)]),_:1}),$(be,{prop:"model",label:"上游模型","min-width":"180"},{default:k(({row:Z})=>[Oe("span",tf,Ie(Z.model),1)]),_:1}),$(be,{prop:"customLlmProvider",label:"上游协议",width:"100",align:"center"},{default:k(({row:Z})=>[$(Ye,{type:"info"},{default:k(()=>[Se(Ie(Z.customLlmProvider||w.customLlmProvider),1)]),_:2},1024)]),_:2},1024),$(be,{label:"状态",width:"120",align:"center"},{default:k(({row:Z})=>[Me(o).modelStatus[Z.modelName]==="ok"?(ge(),It(Ye,{key:0,type:"success"},{default:k(()=>[...L[11]||(L[11]=[Se("通过",-1)])]),_:1})):Me(o).modelStatus[Z.modelName]==="error"?(ge(),It(Ze,{key:1,content:Me(o).modelMessage[Z.modelName],placement:"top","show-after":300},{default:k(()=>[$(Ye,{type:"danger",class:"error-tag"},{default:k(()=>[Se(Ie(Me(o).modelMessage[Z.modelName]),1)]),_:2},1024)]),_:2},1032,["content"])):Me(o).modelStatus[Z.modelName]==="testing"?(ge(),It(Ye,{key:2,type:"warning"},{default:k(()=>[...L[12]||(L[12]=[Se("测试中",-1)])]),_:1})):(ge(),je("span",nf,"-"))]),_:1}),$(be,{label:"耗时",width:"80",align:"center"},{default:k(({row:Z})=>[Me(o).modelLatency[Z.modelName]?(ge(),je("span",rf,Ie((Me(o).modelLatency[Z.modelName]/1e3).toFixed(1))+"s ",1)):(ge(),je("span",of,"-"))]),_:1}),$(be,{label:"上次测试","min-width":"160"},{default:k(({row:Z})=>[Me(o).modelTime[Z.modelName]?(ge(),je("span",af,Ie(Me(o).modelTime[Z.modelName]),1)):(ge(),je("span",sf,"未测试"))]),_:1}),$(be,{label:"操作",width:"140",align:"center"},{default:k(({row:Z})=>[$(H,{link:"",loading:Me(o).modelStatus[Z.modelName]==="testing",onClick:He=>Me(o).testProxy(Z.modelName)},{default:k(()=>[...L[13]||(L[13]=[Se(" 测试 ",-1)])]),_:1},8,["loading","onClick"]),$(H,{link:"",type:"danger",onClick:He=>X(w.name,Z.modelName)},{default:k(()=>[...L[14]||(L[14]=[Se(" 删除 ",-1)])]),_:1},8,["onClick"])]),_:2},1024)]),_:2},1032,["data"])])):a[w.name]&&!w.models.length?(ge(),je("div",lf," 暂无模型 ")):Ct("",!0)]),_:2},1032,["class"])]),_:1},8,["modelValue"])),i.value?(ge(),It(ju,{key:3,"edit-name":s.value,provider:s.value!=null?Me(n).suppliers.find(w=>w.name===s.value):void 0,"clone-of":r.value,onClose:x,onSaved:B},null,8,["edit-name","provider","clone-of"])):Ct("",!0),$(it,{modelValue:c.value,"onUpdate:modelValue":L[3]||(L[3]=w=>c.value=w),title:"配置文件",width:"800px",top:"5vh","destroy-on-close":""},{footer:k(()=>[Oe("div",uf,[$(H,{onClick:M},{default:k(()=>[...L[15]||(L[15]=[Se("复制",-1)])]),_:1}),Oe("div",ff,[$(H,{onClick:L[2]||(L[2]=w=>c.value=!1)},{default:k(()=>[...L[16]||(L[16]=[Se("取消",-1)])]),_:1}),$(H,{type:"primary",loading:d.value,onClick:I},{default:k(()=>[...L[17]||(L[17]=[Se("保存并生效",-1)])]),_:1},8,["loading"])])])]),default:k(()=>[Oe("div",cf," 配置文件:"+Ie(u.value)+"(原样保存,校验通过后热更新生效) ",1),$(lt,{type:"textarea",rows:24,modelValue:f.value,"onUpdate:modelValue":L[1]||(L[1]=w=>f.value=w),placeholder:"loading...",spellcheck:"false",class:"full-width"},null,8,["modelValue"])]),_:1},8,["modelValue"]),Oe("input",{ref_key:"fileInput",ref:p,type:"file",accept:".json,application/json",style:{display:"none"},onChange:C},null,544)])}}}),yf=ra(df,[["__scopeId","data-v-7afb29d5"]]);export{yf as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.switch-row[data-v-e8a0f661]{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:4px 0}.switch-title[data-v-e8a0f661]{display:flex;align-items:center;gap:8px;font-weight:600;margin-bottom:4px}.switch-desc[data-v-e8a0f661]{color:var(--el-text-color-secondary);font-size:13px;line-height:1.6}.switch-desc code[data-v-e8a0f661]{background:var(--el-fill-color-light);padding:1px 6px;border-radius:4px;font-size:12px}.switch-divider[data-v-e8a0f661]{margin:16px 0}
|