@acedatacloud/nexior 3.13.0 → 3.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{Auth-DFCqgfNB.js → Auth-JSfzrjVw.js} +1 -1
- package/dist/assets/{BotPlaceholder-CRt62Sh_.js → BotPlaceholder-GlgfdToc.js} +1 -1
- package/dist/assets/{Callback-B0JrNpSn.js → Callback-C2H8C81R.js} +1 -1
- package/dist/assets/{Console-fJr1b43t.js → Console-uSrRSY8n.js} +1 -1
- package/dist/assets/{Conversation-CUJ818A7.css → Conversation-CsNd2Ql1.css} +1 -1
- package/dist/assets/{Conversation-Dnw7JAQ6.js → Conversation-_B4AsqVk.js} +3 -3
- package/dist/assets/{CopyToClipboard-BjrwCs6I.js → CopyToClipboard-k3NSO_oA.js} +1 -1
- package/dist/assets/{Detail-CGOj2fXD.js → Detail-Hp5FeJyh.js} +1 -1
- package/dist/assets/{EditArray-wenxWkPN.js → EditArray-B9W94Ga4.js} +1 -1
- package/dist/assets/{Extra-BubcmqBu.js → Extra-DGk67e15.js} +1 -1
- package/dist/assets/{FilePreview-Cd2YZNZu.js → FilePreview-DzXE2Jqg.js} +1 -1
- package/dist/assets/{History-BCpARdQ1.js → History-D7Co3WBD.js} +1 -1
- package/dist/assets/{ImagePreview-CjWImwL3.js → ImagePreview-Dx76U7I-.js} +1 -1
- package/dist/assets/{ImageWrapper-Ckltn454.js → ImageWrapper-Zu8ZxGvQ.js} +1 -1
- package/dist/assets/Index-7ZEDf901.css +1 -0
- package/dist/assets/Index-B0XIn0lM.js +1 -0
- package/dist/assets/{Index-DmxdMnbK.css → Index-BAhAF_7z.css} +1 -1
- package/dist/assets/Index-BVLuZJi9.js +1 -0
- package/dist/assets/Index-Ba8Rl5do.js +1 -0
- package/dist/assets/Index-BiHwcmvW.js +1 -0
- package/dist/assets/Index-Bp9lX6Wt.js +1 -0
- package/dist/assets/Index-C8eOYKb6.css +1 -0
- package/dist/assets/Index-CDaiDcdU.css +1 -0
- package/dist/assets/{Index-CP0PFATQ.js → Index-CRLhgIrO.js} +1 -1
- package/dist/assets/Index-CUCNk4Bi.css +1 -0
- package/dist/assets/Index-CcCtbfeF.css +1 -0
- package/dist/assets/{Index-C4BWNGR0.js → Index-Ci3ME8pV.js} +1 -1
- package/dist/assets/Index-D7BmMoY8.js +1 -0
- package/dist/assets/{Index-CMyXYM3m.js → Index-DHXqZyjd.js} +1 -1
- package/dist/assets/{Index-BsB2cili.js → Index-DiaRdMSg.js} +1 -1
- package/dist/assets/Index-Dl684zwM.css +1 -0
- package/dist/assets/Index-Dm3DPhfD.js +1 -0
- package/dist/assets/{Index-ClPqK1Bg.css → Index-DuuVjMJ7.css} +1 -1
- package/dist/assets/{Index-BoUiV7dx.css → Index-M_XMk9YM.css} +1 -1
- package/dist/assets/{Index-zY2gWoJb.js → Index-ViFKIq9k.js} +1 -1
- package/dist/assets/Index-dNdawwcb.css +1 -0
- package/dist/assets/Index-ewvU_Qva.js +1 -0
- package/dist/assets/{InfoIcon-CeDJIkTA.js → InfoIcon-DYYKeCet.js} +1 -1
- package/dist/assets/{Invitees-ik60h66X.js → Invitees-Nk96-gcw.js} +1 -1
- package/dist/assets/{List-rEjXJr-J.js → List-2sIAWL2L.js} +1 -1
- package/dist/assets/{List-DEUp2yY1.js → List-CSWZamU1.js} +1 -1
- package/dist/assets/{List-DTK31RWT.js → List-EsU10Na-.js} +1 -1
- package/dist/assets/{Login-BbepVhPQ.js → Login-Bh73Y6L0.js} +1 -1
- package/dist/assets/{Main-BSwVBPid.css → Main-ciuyHaq3.css} +1 -1
- package/dist/assets/Main-qA7qPY-b.js +1 -0
- package/dist/assets/Navigator-BEQFoaW2.js +1 -0
- package/dist/assets/{Navigator--ejw7E_g.css → Navigator-DduT-WvI.css} +1 -1
- package/dist/assets/{NoTasks-DT2n9ylu.js → NoTasks-BuCBIkNh.js} +1 -1
- package/dist/assets/{Pagination-CxQe5-JE.js → Pagination-DJd4eipp.js} +1 -1
- package/dist/assets/Status-Czzf5rd1.js +1 -0
- package/dist/assets/{Status-61u7CQ2x.css → Status-DYNSTNBW.css} +1 -1
- package/dist/assets/{Subscribe-rRcCADDR.js → Subscribe-CV5zJN_p.js} +1 -1
- package/dist/assets/{VideoPlayer-BbtcxSBp.js → VideoPlayer-Q-P39OZ9.js} +1 -1
- package/dist/assets/{_Uint8Array-Bae7Knl3.js → _Uint8Array-BC_FRZYc.js} +1 -1
- package/dist/assets/{_baseClone-D88191-F.js → _baseClone-B_I0hSdV.js} +1 -1
- package/dist/assets/{_baseIteratee-BSAHY5E9.js → _baseIteratee-CwO5J9z7.js} +1 -1
- package/dist/assets/{_initCloneObject-DoV_nQzg.js → _initCloneObject-DyB1XiN6.js} +1 -1
- package/dist/assets/{castArray-C7EOgS47.js → castArray-DJF4-x38.js} +1 -1
- package/dist/assets/{debounce-G2YOdNQL.js → debounce-Bx9f3xTh.js} +1 -1
- package/dist/assets/{distribution-IqGzeIba.js → distribution-Bc5vHY_c.js} +1 -1
- package/dist/assets/{dropdown-COM2cK9q.js → dropdown-KE74oPTp.js} +1 -1
- package/dist/assets/{index-Ba-D2PLO.js → index--_QEux7P.js} +1 -1
- package/dist/assets/{index-DPyHScCU.js → index-BAmhvkaf.js} +1 -1
- package/dist/assets/{index-DLHGDLL5.js → index-BD2pT-dD.js} +1 -1
- package/dist/assets/{index-C8DvoS4L.js → index-BhwS5c3I.js} +1 -1
- package/dist/assets/{index-BJXYNIon.js → index-BqGPaah3.js} +1 -1
- package/dist/assets/{index-C2NdRp0m.js → index-C7BdSzIH.js} +1 -1
- package/dist/assets/{index-ClWqFol7.js → index-CJM20JaX.js} +1 -1
- package/dist/assets/{index-IgKPrTYs.js → index-CPKjhATc.js} +1 -1
- package/dist/assets/{index-BsC7wL9E.js → index-CWZ09lz8.js} +1 -1
- package/dist/assets/{index-DSleouKr.js → index-CXl_uYvN.js} +1 -1
- package/dist/assets/{index-kt7C-QhL.js → index-Cd4LVWNH.js} +1 -1
- package/dist/assets/{index-Bd5aT1FI.js → index-CsgLO_LY.js} +1 -1
- package/dist/assets/{index-W9bHHagm.js → index-Ctx1RSND.js} +1 -1
- package/dist/assets/{index-BjNAIose.js → index-Cu-1fLrz.js} +1 -1
- package/dist/assets/{index-C-yY6Mbl.js → index-Cxgm-GHk.js} +1 -1
- package/dist/assets/{index-CzgADTxV.js → index-Cz88CC79.js} +1 -1
- package/dist/assets/{index-BYpW7IVl.js → index-Cz8iQRgo.js} +1 -1
- package/dist/assets/{index-D8SaStbt.js → index-DIZrNQUn.js} +2 -2
- package/dist/assets/{index-BOFDhRvB.js → index-DQ5RoJ9Z.js} +1 -1
- package/dist/assets/{index-BhJiR5WI.js → index-D_koEXlG.js} +1 -1
- package/dist/assets/{index-F2Le8yPb.js → index-DbExocg6.js} +1 -1
- package/dist/assets/{index-BVuhORaF.js → index-DcBPTCY8.js} +1 -1
- package/dist/assets/{index-DG1tJIjb.js → index-DfLjcG0W.js} +1 -1
- package/dist/assets/{index-BapZxArC.js → index-DjMEqkwM.js} +1 -1
- package/dist/assets/{index-DkR91QGi.js → index-DzuSEOc6.js} +1 -1
- package/dist/assets/{index-DtuVcx4E.js → index-U4PaPjlW.js} +1 -1
- package/dist/assets/{index-yI89gO5n.js → index-UCpuD2so.js} +1 -1
- package/dist/assets/{index-BJu_HA8A.js → index-UHBZtYFS.js} +1 -1
- package/dist/assets/{index-AbNLfJ7a.js → index-ZTHN7L0Z.js} +1 -1
- package/dist/assets/{index.es-CH1ZB5JR.js → index.es-CqlJd-yS.js} +1 -1
- package/dist/assets/{isEqual-BwbNQrU9.js → isEqual-1h3igxok.js} +1 -1
- package/dist/assets/{isPlainObject-CuWqXY2_.js → isPlainObject-CJC2i-uy.js} +1 -1
- package/dist/assets/{order-BPK4ltDo.js → order-Ceby9P48.js} +1 -1
- package/dist/assets/{price-C-WR5DJb.js → price-DECfxhx6.js} +1 -1
- package/dist/assets/{strings-M60YQpoF.js → strings-XyKi2wwB.js} +1 -1
- package/dist/assets/{typescript-sz_Y5jQb.js → typescript-ZaK-U8nj.js} +1 -1
- package/dist/assets/{use-form-item-8_Q7b3PO.js → use-form-item-DGbaU2QP.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/dist/assets/Index-4syFjNg7.css +0 -1
- package/dist/assets/Index-B-45vm86.js +0 -1
- package/dist/assets/Index-By_upMvv.css +0 -1
- package/dist/assets/Index-CD4CSpxg.js +0 -1
- package/dist/assets/Index-CaEXc-YO.css +0 -1
- package/dist/assets/Index-Cbm4zbDa.css +0 -1
- package/dist/assets/Index-CcAzOuxW.js +0 -1
- package/dist/assets/Index-CdPqrmcY.css +0 -1
- package/dist/assets/Index-CeLOiR4M.js +0 -1
- package/dist/assets/Index-D05b0U2c.js +0 -1
- package/dist/assets/Index-DBKt6O4-.js +0 -1
- package/dist/assets/Index-SRaIZMrX.js +0 -1
- package/dist/assets/Index-UWbbsCYp.css +0 -1
- package/dist/assets/Index-WrLSBdjQ.js +0 -1
- package/dist/assets/Index-ySYBdD2U.css +0 -1
- package/dist/assets/Main-D41A7vWA.js +0 -1
- package/dist/assets/Navigator-CpfKrnQT.js +0 -1
- package/dist/assets/Status-Ccml8NSQ.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{E as ce}from"./index-BJXYNIon.js";import{c as k,O as Te,E as $e,w as ie}from"./index-DPyHScCU.js";import{E as Fe}from"./index-BYpW7IVl.js";import{ah as Re,an as X,_ as M,d as A,r as P,aj as T,al as C,c as y,e as O,ak as J,aM as Y,aV as Se,au as pe,l as w,i as z,o as N,j as m,k as R,bd as Oe,be as ke,b as W,y as Z,bc as Ne,aw as j,n as q,A as Pe,E as fe,a as ee,a$ as De,bl as Be,bm as Ke,aU as ve,am as Le,aI as me,aG as H,ba as Me,t as Ae,b6 as Ge,af as x,F as ze,bn as be,f as Ue,bo as Ye,g as He,w as ge}from"./index-D8SaStbt.js";import{a as Ve}from"./typescript-sz_Y5jQb.js";import{c as Je,d as We,E as je,a as we,C as qe,b as Qe,e as Xe,f as Ze,g as xe,F as eo,L as oo}from"./dropdown-COM2cK9q.js";import{c as no}from"./castArray-C7EOgS47.js";const to=Re({style:{type:X([String,Array,Object])},currentTabId:{type:X(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:X(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:ro,ElCollectionItem:lo,COLLECTION_INJECTION_KEY:oe,COLLECTION_ITEM_INJECTION_KEY:so}=Je("RovingFocusGroup"),ne=Symbol("elRovingFocusGroup"),_e=Symbol("elRovingFocusGroupItem"),ao={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},io=(e,n)=>e,uo=(e,n,d)=>{const r=io(e.code);return ao[r]},co=(e,n)=>e.map((d,r)=>e[(r+n)%e.length]),te=e=>{const{activeElement:n}=document;for(const d of e)if(d===n||(d.focus(),n!==document.activeElement))return},de="currentTabIdChange",ue="rovingFocusGroup.entryFocus",po={bubbles:!1,cancelable:!0},fo=A({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:to,emits:[de,"entryFocus"],setup(e,{emit:n}){var d;const r=T((d=e.currentTabId||e.defaultCurrentTabId)!=null?d:null),c=T(!1),u=T(!1),a=T(),{getItems:l}=C(oe,void 0),p=y(()=>[{outline:"none"},e.style]),b=i=>{n(de,i)},g=()=>{c.value=!0},_=k(i=>{var f;(f=e.onMousedown)==null||f.call(e,i)},()=>{u.value=!0}),E=k(i=>{var f;(f=e.onFocus)==null||f.call(e,i)},i=>{const f=!O(u),{target:D,currentTarget:$}=i;if(D===$&&f&&!O(c)){const B=new Event(ue,po);if($?.dispatchEvent(B),!B.defaultPrevented){const v=l().filter(F=>F.focusable),S=v.find(F=>F.active),I=v.find(F=>F.id===O(r)),L=[S,I,...v].filter(Boolean).map(F=>F.ref);te(L)}}u.value=!1}),o=k(i=>{var f;(f=e.onBlur)==null||f.call(e,i)},()=>{c.value=!1}),s=(...i)=>{n("entryFocus",...i)};J(ne,{currentTabbedId:Se(r),loop:Y(e,"loop"),tabIndex:y(()=>O(c)?-1:0),rovingFocusGroupRef:a,rovingFocusGroupRootStyle:p,orientation:Y(e,"orientation"),dir:Y(e,"dir"),onItemFocus:b,onItemShiftTab:g,onBlur:o,onFocus:E,onMousedown:_}),pe(()=>e.currentTabId,i=>{r.value=i??null}),Ve(a,ue,s)}});function vo(e,n,d,r,c,u){return P(e.$slots,"default")}var mo=M(fo,[["render",vo],["__file","roving-focus-group-impl.vue"]]);const bo=A({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:ro,ElRovingFocusGroupImpl:mo}});function go(e,n,d,r,c,u){const a=w("el-roving-focus-group-impl"),l=w("el-focus-group-collection");return N(),z(l,null,{default:m(()=>[R(a,Oe(ke(e.$attrs)),{default:m(()=>[P(e.$slots,"default")]),_:3},16)]),_:3})}var wo=M(bo,[["render",go],["__file","roving-focus-group.vue"]]);const Q=Symbol("elDropdown"),Ie="elDropdown",{ButtonGroup:_o}=ce,Io=A({name:"ElDropdown",components:{ElButton:ce,ElButtonGroup:_o,ElScrollbar:Fe,ElDropdownCollection:je,ElTooltip:$e,ElRovingFocusGroup:wo,ElOnlyChild:Te,ElIcon:fe,ArrowDown:Pe},props:We,emits:["visible-change","click","command"],setup(e,{emit:n}){const d=me(),r=ee("dropdown"),{t:c}=De(),u=T(),a=T(),l=T(),p=T(),b=T(null),g=T(null),_=T(!1),E=y(()=>({maxHeight:Be(e.maxHeight)})),o=y(()=>[r.m(v.value)]),s=y(()=>no(e.trigger)),i=ve().value,f=y(()=>e.id||i);pe([u,s],([t,h],[G])=>{var le,se,ae;(le=G?.$el)!=null&&le.removeEventListener&&G.$el.removeEventListener("pointerenter",I),(se=t?.$el)!=null&&se.removeEventListener&&t.$el.removeEventListener("pointerenter",I),(ae=t?.$el)!=null&&ae.addEventListener&&h.includes("hover")&&t.$el.addEventListener("pointerenter",I)},{immediate:!0}),Le(()=>{var t,h;(h=(t=u.value)==null?void 0:t.$el)!=null&&h.removeEventListener&&u.value.$el.removeEventListener("pointerenter",I)});function D(){$()}function $(){var t;(t=l.value)==null||t.onClose()}function B(){var t;(t=l.value)==null||t.onOpen()}const v=Ke();function S(...t){n("command",...t)}function I(){var t,h;(h=(t=u.value)==null?void 0:t.$el)==null||h.focus()}function K(){}function L(){const t=O(p);s.value.includes("hover")&&t?.focus(),g.value=null}function F(t){g.value=t}function re(t){_.value||(t.preventDefault(),t.stopImmediatePropagation())}function V(){n("visible-change",!0)}function U(t){var h;t?.type==="keydown"&&((h=p.value)==null||h.focus())}function ye(){n("visible-change",!1)}return J(Q,{contentRef:p,role:y(()=>e.role),triggerId:f,isUsingKeyboard:_,onItemEnter:K,onItemLeave:L}),J(Ie,{instance:d,dropdownSize:v,handleClick:D,commandHandler:S,trigger:Y(e,"trigger"),hideOnClick:Y(e,"hideOnClick")}),{t:c,ns:r,scrollbar:b,wrapStyle:E,dropdownTriggerKls:o,dropdownSize:v,triggerId:f,currentTabId:g,handleCurrentTabIdChange:F,handlerMainButtonClick:t=>{n("click",t)},handleEntryFocus:re,handleClose:$,handleOpen:B,handleBeforeShowTooltip:V,handleShowTooltip:U,handleBeforeHideTooltip:ye,onFocusAfterTrapped:t=>{var h,G;t.preventDefault(),(G=(h=p.value)==null?void 0:h.focus)==null||G.call(h,{preventScroll:!0})},popperRef:l,contentRef:p,triggeringElementRef:u,referenceElementRef:a}}});function Eo(e,n,d,r,c,u){var a;const l=w("el-dropdown-collection"),p=w("el-roving-focus-group"),b=w("el-scrollbar"),g=w("el-only-child"),_=w("el-tooltip"),E=w("el-button"),o=w("arrow-down"),s=w("el-icon"),i=w("el-button-group");return N(),W("div",{class:q([e.ns.b(),e.ns.is("disabled",e.disabled)])},[R(_,{ref:"popperRef",role:e.role,effect:e.effect,"fallback-placements":["bottom","top"],"popper-options":e.popperOptions,"gpu-acceleration":!1,"hide-after":e.trigger==="hover"?e.hideTimeout:0,"manual-mode":!0,placement:e.placement,"popper-class":[e.ns.e("popper"),e.popperClass],"reference-element":(a=e.referenceElementRef)==null?void 0:a.$el,trigger:e.trigger,"trigger-keys":e.triggerKeys,"trigger-target-el":e.contentRef,"show-after":e.trigger==="hover"?e.showTimeout:0,"stop-popper-mouse-event":!1,"virtual-ref":e.triggeringElementRef,"virtual-triggering":e.splitButton,disabled:e.disabled,transition:`${e.ns.namespace.value}-zoom-in-top`,teleported:e.teleported,pure:"",persistent:e.persistent,onBeforeShow:e.handleBeforeShowTooltip,onShow:e.handleShowTooltip,onBeforeHide:e.handleBeforeHideTooltip},Ne({content:m(()=>[R(b,{ref:"scrollbar","wrap-style":e.wrapStyle,tag:"div","view-class":e.ns.e("list")},{default:m(()=>[R(p,{loop:e.loop,"current-tab-id":e.currentTabId,orientation:"horizontal",onCurrentTabIdChange:e.handleCurrentTabIdChange,onEntryFocus:e.handleEntryFocus},{default:m(()=>[R(l,null,{default:m(()=>[P(e.$slots,"dropdown")]),_:3})]),_:3},8,["loop","current-tab-id","onCurrentTabIdChange","onEntryFocus"])]),_:3},8,["wrap-style","view-class"])]),_:2},[e.splitButton?void 0:{name:"default",fn:m(()=>[R(g,{id:e.triggerId,ref:"triggeringElementRef",role:"button",tabindex:e.tabindex},{default:m(()=>[P(e.$slots,"default")]),_:3},8,["id","tabindex"])])}]),1032,["role","effect","popper-options","hide-after","placement","popper-class","reference-element","trigger","trigger-keys","trigger-target-el","show-after","virtual-ref","virtual-triggering","disabled","transition","teleported","persistent","onBeforeShow","onShow","onBeforeHide"]),e.splitButton?(N(),z(i,{key:0},{default:m(()=>[R(E,j({ref:"referenceElementRef"},e.buttonProps,{size:e.dropdownSize,type:e.type,disabled:e.disabled,tabindex:e.tabindex,onClick:e.handlerMainButtonClick}),{default:m(()=>[P(e.$slots,"default")]),_:3},16,["size","type","disabled","tabindex","onClick"]),R(E,j({id:e.triggerId,ref:"triggeringElementRef"},e.buttonProps,{role:"button",size:e.dropdownSize,type:e.type,class:e.ns.e("caret-button"),disabled:e.disabled,tabindex:e.tabindex,"aria-label":e.t("el.dropdown.toggleDropdown")}),{default:m(()=>[R(s,{class:q(e.ns.e("icon"))},{default:m(()=>[R(o)]),_:1},8,["class"])]),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])]),_:3})):Z("v-if",!0)],2)}var ho=M(Io,[["render",Eo],["__file","dropdown.vue"]]);const Co=A({components:{ElRovingFocusCollectionItem:lo},props:{focusable:{type:Boolean,default:!0},active:Boolean},emits:["mousedown","focus","keydown"],setup(e,{emit:n}){const{currentTabbedId:d,loop:r,onItemFocus:c,onItemShiftTab:u}=C(ne,void 0),{getItems:a}=C(oe,void 0),l=ve(),p=T(),b=k(o=>{n("mousedown",o)},o=>{e.focusable?c(O(l)):o.preventDefault()}),g=k(o=>{n("focus",o)},()=>{c(O(l))}),_=k(o=>{n("keydown",o)},o=>{const{code:s,shiftKey:i,target:f,currentTarget:D}=o;if(s===H.tab&&i){u();return}if(f!==D)return;const $=uo(o);if($){o.preventDefault();let v=a().filter(S=>S.focusable).map(S=>S.ref);switch($){case"last":{v.reverse();break}case"prev":case"next":{$==="prev"&&v.reverse();const S=v.indexOf(D);v=r.value?co(v,S+1):v.slice(S+1);break}}Me(()=>{te(v)})}}),E=y(()=>d.value===O(l));return J(_e,{rovingFocusGroupItemRef:p,tabIndex:y(()=>O(E)?0:-1),handleMousedown:b,handleFocus:g,handleKeydown:_}),{id:l,handleKeydown:_,handleFocus:g,handleMousedown:b}}});function yo(e,n,d,r,c,u){const a=w("el-roving-focus-collection-item");return N(),z(a,{id:e.id,focusable:e.focusable,active:e.active},{default:m(()=>[P(e.$slots,"default")]),_:3},8,["id","focusable","active"])}var To=M(Co,[["render",yo],["__file","roving-focus-item.vue"]]);const $o=A({name:"DropdownItemImpl",components:{ElIcon:fe},props:we,emits:["pointermove","pointerleave","click","clickimpl"],setup(e,{emit:n}){const d=ee("dropdown"),{role:r}=C(Q,void 0),{collectionItemRef:c}=C(Qe,void 0),{collectionItemRef:u}=C(so,void 0),{rovingFocusGroupItemRef:a,tabIndex:l,handleFocus:p,handleKeydown:b,handleMousedown:g}=C(_e,void 0),_=be(c,u,a),E=y(()=>r.value==="menu"?"menuitem":r.value==="navigation"?"link":"button"),o=k(s=>{if([H.enter,H.numpadEnter,H.space].includes(s.code))return s.preventDefault(),s.stopImmediatePropagation(),n("clickimpl",s),!0},b);return{ns:d,itemRef:_,dataset:{[qe]:""},role:E,tabIndex:l,handleFocus:p,handleKeydown:o,handleMousedown:g}}});function Fo(e,n,d,r,c,u){const a=w("el-icon");return N(),W(ze,null,[e.divided?(N(),W("li",{key:0,role:"separator",class:q(e.ns.bem("menu","item","divided"))},null,2)):Z("v-if",!0),Ae("li",j({ref:e.itemRef},{...e.dataset,...e.$attrs},{"aria-disabled":e.disabled,class:[e.ns.be("menu","item"),e.ns.is("disabled",e.disabled)],tabindex:e.tabIndex,role:e.role,onClick:l=>e.$emit("clickimpl",l),onFocus:e.handleFocus,onKeydown:x(e.handleKeydown,["self"]),onMousedown:e.handleMousedown,onPointermove:l=>e.$emit("pointermove",l),onPointerleave:l=>e.$emit("pointerleave",l)}),[e.icon?(N(),z(a,{key:0},{default:m(()=>[(N(),z(Ge(e.icon)))]),_:1})):Z("v-if",!0),P(e.$slots,"default")],16,["aria-disabled","tabindex","role","onClick","onFocus","onKeydown","onMousedown","onPointermove","onPointerleave"])],64)}var Ro=M($o,[["render",Fo],["__file","dropdown-item-impl.vue"]]);const Ee=()=>{const e=C(Ie,{}),n=y(()=>e?.dropdownSize);return{elDropdown:e,_elDropdownSize:n}},So=A({name:"ElDropdownItem",components:{ElDropdownCollectionItem:Xe,ElRovingFocusItem:To,ElDropdownItemImpl:Ro},inheritAttrs:!1,props:we,emits:["pointermove","pointerleave","click"],setup(e,{emit:n,attrs:d}){const{elDropdown:r}=Ee(),c=me(),u=T(null),a=y(()=>{var o,s;return(s=(o=O(u))==null?void 0:o.textContent)!=null?s:""}),{onItemEnter:l,onItemLeave:p}=C(Q,void 0),b=k(o=>(n("pointermove",o),o.defaultPrevented),ie(o=>{if(e.disabled){p(o);return}const s=o.currentTarget;s===document.activeElement||s.contains(document.activeElement)||(l(o),o.defaultPrevented||s?.focus())})),g=k(o=>(n("pointerleave",o),o.defaultPrevented),ie(p)),_=k(o=>{if(!e.disabled)return n("click",o),o.type!=="keydown"&&o.defaultPrevented},o=>{var s,i,f;if(e.disabled){o.stopImmediatePropagation();return}(s=r?.hideOnClick)!=null&&s.value&&((i=r.handleClick)==null||i.call(r)),(f=r.commandHandler)==null||f.call(r,e.command,c,o)}),E=y(()=>({...e,...d}));return{handleClick:_,handlePointerMove:b,handlePointerLeave:g,textContent:a,propsAndAttrs:E}}});function Oo(e,n,d,r,c,u){var a;const l=w("el-dropdown-item-impl"),p=w("el-roving-focus-item"),b=w("el-dropdown-collection-item");return N(),z(b,{disabled:e.disabled,"text-value":(a=e.textValue)!=null?a:e.textContent},{default:m(()=>[R(p,{focusable:!e.disabled},{default:m(()=>[R(l,j(e.propsAndAttrs,{onPointerleave:e.handlePointerLeave,onPointermove:e.handlePointerMove,onClickimpl:e.handleClick}),{default:m(()=>[P(e.$slots,"default")]),_:3},16,["onPointerleave","onPointermove","onClickimpl"])]),_:3},8,["focusable"])]),_:3},8,["disabled","text-value"])}var he=M(So,[["render",Oo],["__file","dropdown-item.vue"]]);const ko=A({name:"ElDropdownMenu",props:Ze,setup(e){const n=ee("dropdown"),{_elDropdownSize:d}=Ee(),r=d.value,{focusTrapRef:c,onKeydown:u}=C(Ye,void 0),{contentRef:a,role:l,triggerId:p}=C(Q,void 0),{collectionRef:b,getItems:g}=C(xe,void 0),{rovingFocusGroupRef:_,rovingFocusGroupRootStyle:E,tabIndex:o,onBlur:s,onFocus:i,onMousedown:f}=C(ne,void 0),{collectionRef:D}=C(oe,void 0),$=y(()=>[n.b("menu"),n.bm("menu",r?.value)]),B=be(a,b,c,_,D),v=k(I=>{var K;(K=e.onKeydown)==null||K.call(e,I)},I=>{const{currentTarget:K,code:L,target:F}=I;if(K.contains(F),H.tab===L&&I.stopImmediatePropagation(),I.preventDefault(),F!==O(a)||!eo.includes(L))return;const V=g().filter(U=>!U.disabled).map(U=>U.ref);oo.includes(L)&&V.reverse(),te(V)});return{size:r,rovingFocusGroupRootStyle:E,tabIndex:o,dropdownKls:$,role:l,triggerId:p,dropdownListWrapperRef:B,handleKeydown:I=>{v(I),u(I)},onBlur:s,onFocus:i,onMousedown:f}}});function No(e,n,d,r,c,u){return N(),W("ul",{ref:e.dropdownListWrapperRef,class:q(e.dropdownKls),style:Ue(e.rovingFocusGroupRootStyle),tabindex:-1,role:e.role,"aria-labelledby":e.triggerId,onBlur:e.onBlur,onFocus:e.onFocus,onKeydown:x(e.handleKeydown,["self"]),onMousedown:x(e.onMousedown,["self"])},[P(e.$slots,"default")],46,["role","aria-labelledby","onBlur","onFocus","onKeydown","onMousedown"])}var Ce=M(ko,[["render",No],["__file","dropdown-menu.vue"]]);const Uo=He(ho,{DropdownItem:he,DropdownMenu:Ce}),Yo=ge(he),Ho=ge(Ce);export{Yo as E,Ho as a,Uo as b};
|
|
1
|
+
import{E as ce}from"./index-BqGPaah3.js";import{c as k,O as Te,E as $e,w as ie}from"./index-BAmhvkaf.js";import{E as Fe}from"./index-Cz8iQRgo.js";import{ah as Re,an as X,_ as M,d as A,r as P,aj as T,al as C,c as y,e as O,ak as J,aM as Y,aV as Se,au as pe,l as w,i as z,o as N,j as m,k as R,bd as Oe,be as ke,b as W,y as Z,bc as Ne,aw as j,n as q,A as Pe,E as fe,a as ee,a$ as De,bl as Be,bm as Ke,aU as ve,am as Le,aI as me,aG as H,ba as Me,t as Ae,b6 as Ge,af as x,F as ze,bn as be,f as Ue,bo as Ye,g as He,w as ge}from"./index-DIZrNQUn.js";import{a as Ve}from"./typescript-ZaK-U8nj.js";import{c as Je,d as We,E as je,a as we,C as qe,b as Qe,e as Xe,f as Ze,g as xe,F as eo,L as oo}from"./dropdown-KE74oPTp.js";import{c as no}from"./castArray-DJF4-x38.js";const to=Re({style:{type:X([String,Array,Object])},currentTabId:{type:X(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:X(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:ro,ElCollectionItem:lo,COLLECTION_INJECTION_KEY:oe,COLLECTION_ITEM_INJECTION_KEY:so}=Je("RovingFocusGroup"),ne=Symbol("elRovingFocusGroup"),_e=Symbol("elRovingFocusGroupItem"),ao={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},io=(e,n)=>e,uo=(e,n,d)=>{const r=io(e.code);return ao[r]},co=(e,n)=>e.map((d,r)=>e[(r+n)%e.length]),te=e=>{const{activeElement:n}=document;for(const d of e)if(d===n||(d.focus(),n!==document.activeElement))return},de="currentTabIdChange",ue="rovingFocusGroup.entryFocus",po={bubbles:!1,cancelable:!0},fo=A({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:to,emits:[de,"entryFocus"],setup(e,{emit:n}){var d;const r=T((d=e.currentTabId||e.defaultCurrentTabId)!=null?d:null),c=T(!1),u=T(!1),a=T(),{getItems:l}=C(oe,void 0),p=y(()=>[{outline:"none"},e.style]),b=i=>{n(de,i)},g=()=>{c.value=!0},_=k(i=>{var f;(f=e.onMousedown)==null||f.call(e,i)},()=>{u.value=!0}),E=k(i=>{var f;(f=e.onFocus)==null||f.call(e,i)},i=>{const f=!O(u),{target:D,currentTarget:$}=i;if(D===$&&f&&!O(c)){const B=new Event(ue,po);if($?.dispatchEvent(B),!B.defaultPrevented){const v=l().filter(F=>F.focusable),S=v.find(F=>F.active),I=v.find(F=>F.id===O(r)),L=[S,I,...v].filter(Boolean).map(F=>F.ref);te(L)}}u.value=!1}),o=k(i=>{var f;(f=e.onBlur)==null||f.call(e,i)},()=>{c.value=!1}),s=(...i)=>{n("entryFocus",...i)};J(ne,{currentTabbedId:Se(r),loop:Y(e,"loop"),tabIndex:y(()=>O(c)?-1:0),rovingFocusGroupRef:a,rovingFocusGroupRootStyle:p,orientation:Y(e,"orientation"),dir:Y(e,"dir"),onItemFocus:b,onItemShiftTab:g,onBlur:o,onFocus:E,onMousedown:_}),pe(()=>e.currentTabId,i=>{r.value=i??null}),Ve(a,ue,s)}});function vo(e,n,d,r,c,u){return P(e.$slots,"default")}var mo=M(fo,[["render",vo],["__file","roving-focus-group-impl.vue"]]);const bo=A({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:ro,ElRovingFocusGroupImpl:mo}});function go(e,n,d,r,c,u){const a=w("el-roving-focus-group-impl"),l=w("el-focus-group-collection");return N(),z(l,null,{default:m(()=>[R(a,Oe(ke(e.$attrs)),{default:m(()=>[P(e.$slots,"default")]),_:3},16)]),_:3})}var wo=M(bo,[["render",go],["__file","roving-focus-group.vue"]]);const Q=Symbol("elDropdown"),Ie="elDropdown",{ButtonGroup:_o}=ce,Io=A({name:"ElDropdown",components:{ElButton:ce,ElButtonGroup:_o,ElScrollbar:Fe,ElDropdownCollection:je,ElTooltip:$e,ElRovingFocusGroup:wo,ElOnlyChild:Te,ElIcon:fe,ArrowDown:Pe},props:We,emits:["visible-change","click","command"],setup(e,{emit:n}){const d=me(),r=ee("dropdown"),{t:c}=De(),u=T(),a=T(),l=T(),p=T(),b=T(null),g=T(null),_=T(!1),E=y(()=>({maxHeight:Be(e.maxHeight)})),o=y(()=>[r.m(v.value)]),s=y(()=>no(e.trigger)),i=ve().value,f=y(()=>e.id||i);pe([u,s],([t,h],[G])=>{var le,se,ae;(le=G?.$el)!=null&&le.removeEventListener&&G.$el.removeEventListener("pointerenter",I),(se=t?.$el)!=null&&se.removeEventListener&&t.$el.removeEventListener("pointerenter",I),(ae=t?.$el)!=null&&ae.addEventListener&&h.includes("hover")&&t.$el.addEventListener("pointerenter",I)},{immediate:!0}),Le(()=>{var t,h;(h=(t=u.value)==null?void 0:t.$el)!=null&&h.removeEventListener&&u.value.$el.removeEventListener("pointerenter",I)});function D(){$()}function $(){var t;(t=l.value)==null||t.onClose()}function B(){var t;(t=l.value)==null||t.onOpen()}const v=Ke();function S(...t){n("command",...t)}function I(){var t,h;(h=(t=u.value)==null?void 0:t.$el)==null||h.focus()}function K(){}function L(){const t=O(p);s.value.includes("hover")&&t?.focus(),g.value=null}function F(t){g.value=t}function re(t){_.value||(t.preventDefault(),t.stopImmediatePropagation())}function V(){n("visible-change",!0)}function U(t){var h;t?.type==="keydown"&&((h=p.value)==null||h.focus())}function ye(){n("visible-change",!1)}return J(Q,{contentRef:p,role:y(()=>e.role),triggerId:f,isUsingKeyboard:_,onItemEnter:K,onItemLeave:L}),J(Ie,{instance:d,dropdownSize:v,handleClick:D,commandHandler:S,trigger:Y(e,"trigger"),hideOnClick:Y(e,"hideOnClick")}),{t:c,ns:r,scrollbar:b,wrapStyle:E,dropdownTriggerKls:o,dropdownSize:v,triggerId:f,currentTabId:g,handleCurrentTabIdChange:F,handlerMainButtonClick:t=>{n("click",t)},handleEntryFocus:re,handleClose:$,handleOpen:B,handleBeforeShowTooltip:V,handleShowTooltip:U,handleBeforeHideTooltip:ye,onFocusAfterTrapped:t=>{var h,G;t.preventDefault(),(G=(h=p.value)==null?void 0:h.focus)==null||G.call(h,{preventScroll:!0})},popperRef:l,contentRef:p,triggeringElementRef:u,referenceElementRef:a}}});function Eo(e,n,d,r,c,u){var a;const l=w("el-dropdown-collection"),p=w("el-roving-focus-group"),b=w("el-scrollbar"),g=w("el-only-child"),_=w("el-tooltip"),E=w("el-button"),o=w("arrow-down"),s=w("el-icon"),i=w("el-button-group");return N(),W("div",{class:q([e.ns.b(),e.ns.is("disabled",e.disabled)])},[R(_,{ref:"popperRef",role:e.role,effect:e.effect,"fallback-placements":["bottom","top"],"popper-options":e.popperOptions,"gpu-acceleration":!1,"hide-after":e.trigger==="hover"?e.hideTimeout:0,"manual-mode":!0,placement:e.placement,"popper-class":[e.ns.e("popper"),e.popperClass],"reference-element":(a=e.referenceElementRef)==null?void 0:a.$el,trigger:e.trigger,"trigger-keys":e.triggerKeys,"trigger-target-el":e.contentRef,"show-after":e.trigger==="hover"?e.showTimeout:0,"stop-popper-mouse-event":!1,"virtual-ref":e.triggeringElementRef,"virtual-triggering":e.splitButton,disabled:e.disabled,transition:`${e.ns.namespace.value}-zoom-in-top`,teleported:e.teleported,pure:"",persistent:e.persistent,onBeforeShow:e.handleBeforeShowTooltip,onShow:e.handleShowTooltip,onBeforeHide:e.handleBeforeHideTooltip},Ne({content:m(()=>[R(b,{ref:"scrollbar","wrap-style":e.wrapStyle,tag:"div","view-class":e.ns.e("list")},{default:m(()=>[R(p,{loop:e.loop,"current-tab-id":e.currentTabId,orientation:"horizontal",onCurrentTabIdChange:e.handleCurrentTabIdChange,onEntryFocus:e.handleEntryFocus},{default:m(()=>[R(l,null,{default:m(()=>[P(e.$slots,"dropdown")]),_:3})]),_:3},8,["loop","current-tab-id","onCurrentTabIdChange","onEntryFocus"])]),_:3},8,["wrap-style","view-class"])]),_:2},[e.splitButton?void 0:{name:"default",fn:m(()=>[R(g,{id:e.triggerId,ref:"triggeringElementRef",role:"button",tabindex:e.tabindex},{default:m(()=>[P(e.$slots,"default")]),_:3},8,["id","tabindex"])])}]),1032,["role","effect","popper-options","hide-after","placement","popper-class","reference-element","trigger","trigger-keys","trigger-target-el","show-after","virtual-ref","virtual-triggering","disabled","transition","teleported","persistent","onBeforeShow","onShow","onBeforeHide"]),e.splitButton?(N(),z(i,{key:0},{default:m(()=>[R(E,j({ref:"referenceElementRef"},e.buttonProps,{size:e.dropdownSize,type:e.type,disabled:e.disabled,tabindex:e.tabindex,onClick:e.handlerMainButtonClick}),{default:m(()=>[P(e.$slots,"default")]),_:3},16,["size","type","disabled","tabindex","onClick"]),R(E,j({id:e.triggerId,ref:"triggeringElementRef"},e.buttonProps,{role:"button",size:e.dropdownSize,type:e.type,class:e.ns.e("caret-button"),disabled:e.disabled,tabindex:e.tabindex,"aria-label":e.t("el.dropdown.toggleDropdown")}),{default:m(()=>[R(s,{class:q(e.ns.e("icon"))},{default:m(()=>[R(o)]),_:1},8,["class"])]),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])]),_:3})):Z("v-if",!0)],2)}var ho=M(Io,[["render",Eo],["__file","dropdown.vue"]]);const Co=A({components:{ElRovingFocusCollectionItem:lo},props:{focusable:{type:Boolean,default:!0},active:Boolean},emits:["mousedown","focus","keydown"],setup(e,{emit:n}){const{currentTabbedId:d,loop:r,onItemFocus:c,onItemShiftTab:u}=C(ne,void 0),{getItems:a}=C(oe,void 0),l=ve(),p=T(),b=k(o=>{n("mousedown",o)},o=>{e.focusable?c(O(l)):o.preventDefault()}),g=k(o=>{n("focus",o)},()=>{c(O(l))}),_=k(o=>{n("keydown",o)},o=>{const{code:s,shiftKey:i,target:f,currentTarget:D}=o;if(s===H.tab&&i){u();return}if(f!==D)return;const $=uo(o);if($){o.preventDefault();let v=a().filter(S=>S.focusable).map(S=>S.ref);switch($){case"last":{v.reverse();break}case"prev":case"next":{$==="prev"&&v.reverse();const S=v.indexOf(D);v=r.value?co(v,S+1):v.slice(S+1);break}}Me(()=>{te(v)})}}),E=y(()=>d.value===O(l));return J(_e,{rovingFocusGroupItemRef:p,tabIndex:y(()=>O(E)?0:-1),handleMousedown:b,handleFocus:g,handleKeydown:_}),{id:l,handleKeydown:_,handleFocus:g,handleMousedown:b}}});function yo(e,n,d,r,c,u){const a=w("el-roving-focus-collection-item");return N(),z(a,{id:e.id,focusable:e.focusable,active:e.active},{default:m(()=>[P(e.$slots,"default")]),_:3},8,["id","focusable","active"])}var To=M(Co,[["render",yo],["__file","roving-focus-item.vue"]]);const $o=A({name:"DropdownItemImpl",components:{ElIcon:fe},props:we,emits:["pointermove","pointerleave","click","clickimpl"],setup(e,{emit:n}){const d=ee("dropdown"),{role:r}=C(Q,void 0),{collectionItemRef:c}=C(Qe,void 0),{collectionItemRef:u}=C(so,void 0),{rovingFocusGroupItemRef:a,tabIndex:l,handleFocus:p,handleKeydown:b,handleMousedown:g}=C(_e,void 0),_=be(c,u,a),E=y(()=>r.value==="menu"?"menuitem":r.value==="navigation"?"link":"button"),o=k(s=>{if([H.enter,H.numpadEnter,H.space].includes(s.code))return s.preventDefault(),s.stopImmediatePropagation(),n("clickimpl",s),!0},b);return{ns:d,itemRef:_,dataset:{[qe]:""},role:E,tabIndex:l,handleFocus:p,handleKeydown:o,handleMousedown:g}}});function Fo(e,n,d,r,c,u){const a=w("el-icon");return N(),W(ze,null,[e.divided?(N(),W("li",{key:0,role:"separator",class:q(e.ns.bem("menu","item","divided"))},null,2)):Z("v-if",!0),Ae("li",j({ref:e.itemRef},{...e.dataset,...e.$attrs},{"aria-disabled":e.disabled,class:[e.ns.be("menu","item"),e.ns.is("disabled",e.disabled)],tabindex:e.tabIndex,role:e.role,onClick:l=>e.$emit("clickimpl",l),onFocus:e.handleFocus,onKeydown:x(e.handleKeydown,["self"]),onMousedown:e.handleMousedown,onPointermove:l=>e.$emit("pointermove",l),onPointerleave:l=>e.$emit("pointerleave",l)}),[e.icon?(N(),z(a,{key:0},{default:m(()=>[(N(),z(Ge(e.icon)))]),_:1})):Z("v-if",!0),P(e.$slots,"default")],16,["aria-disabled","tabindex","role","onClick","onFocus","onKeydown","onMousedown","onPointermove","onPointerleave"])],64)}var Ro=M($o,[["render",Fo],["__file","dropdown-item-impl.vue"]]);const Ee=()=>{const e=C(Ie,{}),n=y(()=>e?.dropdownSize);return{elDropdown:e,_elDropdownSize:n}},So=A({name:"ElDropdownItem",components:{ElDropdownCollectionItem:Xe,ElRovingFocusItem:To,ElDropdownItemImpl:Ro},inheritAttrs:!1,props:we,emits:["pointermove","pointerleave","click"],setup(e,{emit:n,attrs:d}){const{elDropdown:r}=Ee(),c=me(),u=T(null),a=y(()=>{var o,s;return(s=(o=O(u))==null?void 0:o.textContent)!=null?s:""}),{onItemEnter:l,onItemLeave:p}=C(Q,void 0),b=k(o=>(n("pointermove",o),o.defaultPrevented),ie(o=>{if(e.disabled){p(o);return}const s=o.currentTarget;s===document.activeElement||s.contains(document.activeElement)||(l(o),o.defaultPrevented||s?.focus())})),g=k(o=>(n("pointerleave",o),o.defaultPrevented),ie(p)),_=k(o=>{if(!e.disabled)return n("click",o),o.type!=="keydown"&&o.defaultPrevented},o=>{var s,i,f;if(e.disabled){o.stopImmediatePropagation();return}(s=r?.hideOnClick)!=null&&s.value&&((i=r.handleClick)==null||i.call(r)),(f=r.commandHandler)==null||f.call(r,e.command,c,o)}),E=y(()=>({...e,...d}));return{handleClick:_,handlePointerMove:b,handlePointerLeave:g,textContent:a,propsAndAttrs:E}}});function Oo(e,n,d,r,c,u){var a;const l=w("el-dropdown-item-impl"),p=w("el-roving-focus-item"),b=w("el-dropdown-collection-item");return N(),z(b,{disabled:e.disabled,"text-value":(a=e.textValue)!=null?a:e.textContent},{default:m(()=>[R(p,{focusable:!e.disabled},{default:m(()=>[R(l,j(e.propsAndAttrs,{onPointerleave:e.handlePointerLeave,onPointermove:e.handlePointerMove,onClickimpl:e.handleClick}),{default:m(()=>[P(e.$slots,"default")]),_:3},16,["onPointerleave","onPointermove","onClickimpl"])]),_:3},8,["focusable"])]),_:3},8,["disabled","text-value"])}var he=M(So,[["render",Oo],["__file","dropdown-item.vue"]]);const ko=A({name:"ElDropdownMenu",props:Ze,setup(e){const n=ee("dropdown"),{_elDropdownSize:d}=Ee(),r=d.value,{focusTrapRef:c,onKeydown:u}=C(Ye,void 0),{contentRef:a,role:l,triggerId:p}=C(Q,void 0),{collectionRef:b,getItems:g}=C(xe,void 0),{rovingFocusGroupRef:_,rovingFocusGroupRootStyle:E,tabIndex:o,onBlur:s,onFocus:i,onMousedown:f}=C(ne,void 0),{collectionRef:D}=C(oe,void 0),$=y(()=>[n.b("menu"),n.bm("menu",r?.value)]),B=be(a,b,c,_,D),v=k(I=>{var K;(K=e.onKeydown)==null||K.call(e,I)},I=>{const{currentTarget:K,code:L,target:F}=I;if(K.contains(F),H.tab===L&&I.stopImmediatePropagation(),I.preventDefault(),F!==O(a)||!eo.includes(L))return;const V=g().filter(U=>!U.disabled).map(U=>U.ref);oo.includes(L)&&V.reverse(),te(V)});return{size:r,rovingFocusGroupRootStyle:E,tabIndex:o,dropdownKls:$,role:l,triggerId:p,dropdownListWrapperRef:B,handleKeydown:I=>{v(I),u(I)},onBlur:s,onFocus:i,onMousedown:f}}});function No(e,n,d,r,c,u){return N(),W("ul",{ref:e.dropdownListWrapperRef,class:q(e.dropdownKls),style:Ue(e.rovingFocusGroupRootStyle),tabindex:-1,role:e.role,"aria-labelledby":e.triggerId,onBlur:e.onBlur,onFocus:e.onFocus,onKeydown:x(e.handleKeydown,["self"]),onMousedown:x(e.onMousedown,["self"])},[P(e.$slots,"default")],46,["role","aria-labelledby","onBlur","onFocus","onKeydown","onMousedown"])}var Ce=M(ko,[["render",No],["__file","dropdown-menu.vue"]]);const Uo=He(ho,{DropdownItem:he,DropdownMenu:Ce}),Yo=ge(he),Ho=ge(Ce);export{Yo as E,Ho as a,Uo as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{bU as s,bV as g,bW as m,bX as o,bT as b,bY as d,bZ as y,b_ as S,b$ as P,c0 as w,ah as O}from"./index-
|
|
1
|
+
import{bU as s,bV as g,bW as m,bX as o,bT as b,bY as d,bZ as y,b_ as S,b$ as P,c0 as w,ah as O}from"./index-DIZrNQUn.js";function x(n){return n}function T(n,e,t){switch(t.length){case 0:return n.call(e);case 1:return n.call(e,t[0]);case 2:return n.call(e,t[0],t[1]);case 3:return n.call(e,t[0],t[1],t[2])}return n.apply(e,t)}var A=800,I=16,E=Date.now;function _(n){var e=0,t=0;return function(){var a=E(),r=I-(a-t);if(t=a,r>0){if(++e>=A)return arguments[0]}else e=0;return n.apply(void 0,arguments)}}function C(n){return function(){return n}}var N=s?function(n,e){return s(n,"toString",{configurable:!0,enumerable:!1,value:C(e),writable:!0})}:x,k=_(N),f=Math.max;function F(n,e,t){return e=f(e===void 0?n.length-1:e,0),function(){for(var a=arguments,r=-1,i=f(a.length-e,0),u=Array(i);++r<i;)u[r]=a[e+r];r=-1;for(var l=Array(e+1);++r<e;)l[r]=a[r];return l[e]=t(u),T(n,this,l)}}var G=9007199254740991;function H(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=G}var L="[object Arguments]";function c(n){return g(n)&&m(n)==L}var p=Object.prototype,M=p.hasOwnProperty,R=p.propertyIsEnumerable,v=c(function(){return arguments}())?c:function(n){return g(n)&&M.call(n,"callee")&&!R.call(n,"callee")};function U(n,e){for(var t=-1,a=e.length,r=n.length;++t<a;)n[r+t]=e[t];return n}var h=o?o.isConcatSpreadable:void 0;function X(n){return b(n)||v(n)||!!(h&&n&&n[h])}function $(n,e,t,a,r){var i=-1,u=n.length;for(t||(t=X),r||(r=[]);++i<u;){var l=n[i];t(l)?U(r,l):r[r.length]=l}return r}function z(n){var e=n==null?0:n.length;return e?$(n):[]}function B(n){return k(F(n,void 0,z),n+"")}function D(n,e){return n!=null&&e in Object(n)}function K(n,e,t){e=d(e,n);for(var a=-1,r=e.length,i=!1;++a<r;){var u=y(e[a]);if(!(i=n!=null&&t(n,u)))break;n=n[u]}return i||++a!=r?i:(r=n==null?0:n.length,!!r&&H(r)&&S(u,r)&&(b(n)||v(n)))}function V(n,e){return n!=null&&K(n,e,D)}function W(n,e,t){for(var a=-1,r=e.length,i={};++a<r;){var u=e[a],l=P(n,u);t(l,u)&&w(i,d(u,n),l)}return i}function Y(n,e){return W(n,e,function(t,a){return V(n,a)})}var Z=B(function(n,e){return n==null?{}:Y(n,e)});const q=O({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),Q=n=>Z(q,n);export{U as a,v as b,x as c,$ as d,B as f,V as h,H as i,F as o,Z as p,k as s,Q as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{m as Ce,a as Y}from"./typescript-sz_Y5jQb.js";import{aX as Ae,az as F,ai as ve,ah as Le,an as Z,_ as ze,d as te,aY as we,aZ as Pe,a_ as Be,a$ as Ee,a as _e,aC as Me,aj as C,b0 as Ve,aA as Ye,c as m,au as me,at as Se,i as pe,o as g,j as p,k as d,aR as Fe,t as k,f as he,n as v,e,aE as Xe,y as I,b as L,r as x,af as De,E as T,b1 as He,F as q,b2 as je,b3 as Ke,D as We,x as Ne,b4 as Ze,b5 as qe,b6 as Ge,b7 as Ue,b8 as Je,v as Qe,aS as ea,b9 as aa,aG as V,ba as Oe,g as Re,bb as ta,aB as sa,aL as na,aw as ye,bc as oa,bd as ke,be as Ie,av as la,bf as ra,bg as ia,bh as ca}from"./index-D8SaStbt.js";import{d as ua}from"./debounce-G2YOdNQL.js";import{u as da}from"./index-BOFDhRvB.js";var fa="Expected a function";function fe(i,z,l){var s=!0,o=!0;if(typeof i!="function")throw new TypeError(fa);return Ae(l)&&(s="leading"in l?!!l.leading:s,o="trailing"in l?!!l.trailing:o),ua(i,z,{leading:s,maxWait:z,trailing:o})}const va=(i,z)=>{if(!F||!i||!z)return!1;const l=i.getBoundingClientRect();let s;return z instanceof Element?s=z.getBoundingClientRect():s={top:0,right:window.innerWidth,bottom:window.innerHeight,left:0},l.top<s.bottom&&l.bottom>s.top&&l.right>s.left&&l.left<s.right},ma=Le({urlList:{type:Z(Array),default:()=>Ce([])},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},hideOnClickModal:Boolean,teleported:Boolean,closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7},showProgress:Boolean,crossorigin:{type:Z(String)}}),pa={close:()=>!0,switch:i=>ve(i),rotate:i=>ve(i)},ga=te({name:"ElImageViewer"}),ba=te({...ga,props:ma,emits:pa,setup(i,{expose:z,emit:l}){var s;const o=i,b={CONTAIN:{name:"contain",icon:we(Be)},ORIGINAL:{name:"original",icon:we(Pe)}};let X,D="";const{t:se}=Ee(),n=_e("image-viewer"),{nextZIndex:A}=Me(),E=C(),M=C([]),P=Ve(),f=C(!0),w=C(o.initialIndex),O=Ye(b.CONTAIN),c=C({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),ne=C((s=o.zIndex)!=null?s:A()),H=m(()=>{const{urlList:a}=o;return a.length<=1}),G=m(()=>w.value===0),j=m(()=>w.value===o.urlList.length-1),K=m(()=>o.urlList[w.value]),oe=m(()=>[n.e("btn"),n.e("prev"),n.is("disabled",!o.infinite&&G.value)]),le=m(()=>[n.e("btn"),n.e("next"),n.is("disabled",!o.infinite&&j.value)]),U=m(()=>{const{scale:a,deg:u,offsetX:r,offsetY:y,enableTransition:S}=c.value;let N=r/a,$=y/a;const W=u*Math.PI/180,ge=Math.cos(W),be=Math.sin(W);N=N*ge+$*be,$=$*ge-r/a*be;const de={transform:`scale(${a}) rotate(${u}deg) translate(${N}px, ${$}px)`,transition:S?"transform .3s":""};return O.value.name===b.CONTAIN.name&&(de.maxWidth=de.maxHeight="100%"),de}),J=m(()=>`${w.value+1} / ${o.urlList.length}`);function B(){ee(),X?.(),document.body.style.overflow=D,l("close")}function Q(){const a=fe(r=>{switch(r.code){case V.esc:o.closeOnPressEscape&&B();break;case V.space:_();break;case V.left:ce();break;case V.up:R("zoomIn");break;case V.right:ue();break;case V.down:R("zoomOut");break}}),u=fe(r=>{const y=r.deltaY||r.deltaX;R(y<0?"zoomIn":"zoomOut",{zoomRate:o.zoomRate,enableTransition:!1})});P.run(()=>{Y(document,"keydown",a),Y(document,"wheel",u)})}function ee(){P.stop()}function re(){f.value=!1}function ie(a){f.value=!1,a.target.alt=se("el.image.error")}function t(a){if(f.value||a.button!==0||!E.value)return;c.value.enableTransition=!1;const{offsetX:u,offsetY:r}=c.value,y=a.pageX,S=a.pageY,N=fe(W=>{c.value={...c.value,offsetX:u+W.pageX-y,offsetY:r+W.pageY-S}}),$=Y(document,"mousemove",N);Y(document,"mouseup",()=>{$()}),a.preventDefault()}function h(){c.value={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function _(){if(f.value)return;const a=aa(b),u=Object.values(b),r=O.value.name,S=(u.findIndex(N=>N.name===r)+1)%a.length;O.value=b[a[S]],h()}function ae(a){const u=o.urlList.length;w.value=(a+u)%u}function ce(){G.value&&!o.infinite||ae(w.value-1)}function ue(){j.value&&!o.infinite||ae(w.value+1)}function R(a,u={}){if(f.value)return;const{minScale:r,maxScale:y}=o,{zoomRate:S,rotateDeg:N,enableTransition:$}={zoomRate:o.zoomRate,rotateDeg:90,enableTransition:!0,...u};switch(a){case"zoomOut":c.value.scale>r&&(c.value.scale=Number.parseFloat((c.value.scale/S).toFixed(3)));break;case"zoomIn":c.value.scale<y&&(c.value.scale=Number.parseFloat((c.value.scale*S).toFixed(3)));break;case"clockwise":c.value.deg+=N,l("rotate",c.value.deg);break;case"anticlockwise":c.value.deg-=N,l("rotate",c.value.deg);break}c.value.enableTransition=$}function $e(a){var u;((u=a.detail)==null?void 0:u.focusReason)==="pointer"&&a.preventDefault()}function Te(){o.closeOnPressEscape&&B()}function xe(a){if(a.ctrlKey){if(a.deltaY<0)return a.preventDefault(),!1;if(a.deltaY>0)return a.preventDefault(),!1}}return me(K,()=>{Oe(()=>{const a=M.value[0];a?.complete||(f.value=!0)})}),me(w,a=>{h(),l("switch",a)}),Se(()=>{Q(),X=Y("wheel",xe,{passive:!1}),D=document.body.style.overflow,document.body.style.overflow="hidden"}),z({setActiveItem:ae}),(a,u)=>(g(),pe(e(ea),{to:"body",disabled:!a.teleported},{default:p(()=>[d(Fe,{name:"viewer-fade",appear:""},{default:p(()=>[k("div",{ref_key:"wrapper",ref:E,tabindex:-1,class:v(e(n).e("wrapper")),style:he({zIndex:ne.value})},[d(e(Xe),{loop:"",trapped:"","focus-trap-el":E.value,"focus-start-el":"container",onFocusoutPrevented:$e,onReleaseRequested:Te},{default:p(()=>[k("div",{class:v(e(n).e("mask")),onClick:De(r=>a.hideOnClickModal&&B(),["self"])},null,10,["onClick"]),I(" CLOSE "),k("span",{class:v([e(n).e("btn"),e(n).e("close")]),onClick:B},[d(e(T),null,{default:p(()=>[d(e(He))]),_:1})],2),I(" ARROW "),e(H)?I("v-if",!0):(g(),L(q,{key:0},[k("span",{class:v(e(oe)),onClick:ce},[d(e(T),null,{default:p(()=>[d(e(je))]),_:1})],2),k("span",{class:v(e(le)),onClick:ue},[d(e(T),null,{default:p(()=>[d(e(Ke))]),_:1})],2)],64)),a.$slots.progress||a.showProgress?(g(),L("div",{key:1,class:v([e(n).e("btn"),e(n).e("progress")])},[x(a.$slots,"progress",{activeIndex:w.value,total:a.urlList.length},()=>[We(Ne(e(J)),1)])],2)):I("v-if",!0),I(" ACTIONS "),k("div",{class:v([e(n).e("btn"),e(n).e("actions")])},[k("div",{class:v(e(n).e("actions__inner"))},[x(a.$slots,"toolbar",{actions:R,prev:ce,next:ue,reset:_,activeIndex:w.value,setActiveItem:ae},()=>[d(e(T),{onClick:r=>R("zoomOut")},{default:p(()=>[d(e(Ze))]),_:1},8,["onClick"]),d(e(T),{onClick:r=>R("zoomIn")},{default:p(()=>[d(e(qe))]),_:1},8,["onClick"]),k("i",{class:v(e(n).e("actions__divider"))},null,2),d(e(T),{onClick:_},{default:p(()=>[(g(),pe(Ge(e(O).icon)))]),_:1}),k("i",{class:v(e(n).e("actions__divider"))},null,2),d(e(T),{onClick:r=>R("anticlockwise")},{default:p(()=>[d(e(Ue))]),_:1},8,["onClick"]),d(e(T),{onClick:r=>R("clockwise")},{default:p(()=>[d(e(Je))]),_:1},8,["onClick"])])],2)],2),I(" CANVAS "),k("div",{class:v(e(n).e("canvas"))},[(g(!0),L(q,null,Qe(a.urlList,(r,y)=>(g(),L(q,{key:y},[y===w.value?(g(),L("img",{key:0,ref_for:!0,ref:S=>M.value[y]=S,src:r,style:he(e(U)),class:v(e(n).e("img")),crossorigin:a.crossorigin,onLoad:re,onError:ie,onMousedown:t},null,46,["src","crossorigin"])):I("v-if",!0)],64))),128))],2),x(a.$slots,"default")]),_:3},8,["focus-trap-el"])],6)]),_:3})]),_:3},8,["disabled"]))}});var wa=ze(ba,[["__file","image-viewer.vue"]]);const ha=Re(wa),ya=Le({hideOnClickModal:Boolean,src:{type:String,default:""},fit:{type:String,values:["","contain","cover","fill","none","scale-down"],default:""},loading:{type:String,values:["eager","lazy"]},lazy:Boolean,scrollContainer:{type:Z([String,Object])},previewSrcList:{type:Z(Array),default:()=>Ce([])},previewTeleported:Boolean,zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7},showProgress:Boolean,crossorigin:{type:Z(String)}}),ka={load:i=>i instanceof Event,error:i=>i instanceof Event,switch:i=>ve(i),close:()=>!0,show:()=>!0},Ia=te({name:"ElImage",inheritAttrs:!1}),Ca=te({...Ia,props:ya,emits:ka,setup(i,{expose:z,emit:l}){const s=i,{t:o}=Ee(),b=_e("image"),X=ta(),D=m(()=>sa(Object.entries(X).filter(([t])=>/^(data-|on[A-Z])/i.test(t)||["id","style"].includes(t)))),se=da({excludeListeners:!0,excludeKeys:m(()=>Object.keys(D.value))}),n=C(),A=C(!1),E=C(!0),M=C(!1),P=C(),f=C(),w=F&&"loading"in HTMLImageElement.prototype;let O;const c=m(()=>[b.e("inner"),H.value&&b.e("preview"),E.value&&b.is("loading")]),ne=m(()=>{const{fit:t}=s;return F&&t?{objectFit:t}:{}}),H=m(()=>{const{previewSrcList:t}=s;return na(t)&&t.length>0}),G=m(()=>{const{previewSrcList:t,initialIndex:h}=s;let _=h;return h>t.length-1&&(_=0),_}),j=m(()=>s.loading==="eager"?!1:!w&&s.loading==="lazy"||s.lazy),K=()=>{F&&(E.value=!0,A.value=!1,n.value=s.src)};function oe(t){E.value=!1,A.value=!1,l("load",t)}function le(t){E.value=!1,A.value=!0,l("error",t)}function U(){va(P.value,f.value)&&(K(),Q())}const J=ca(U,200,!0);async function B(){var t;if(!F)return;await Oe();const{scrollContainer:h}=s;la(h)?f.value=h:ra(h)&&h!==""?f.value=(t=document.querySelector(h))!=null?t:void 0:P.value&&(f.value=ia(P.value)),f.value&&(O=Y(f,"scroll",J),setTimeout(()=>U(),100))}function Q(){!F||!f.value||!J||(O?.(),f.value=void 0)}function ee(){H.value&&(M.value=!0,l("show"))}function re(){M.value=!1,l("close")}function ie(t){l("switch",t)}return me(()=>s.src,()=>{j.value?(E.value=!0,A.value=!1,Q(),B()):K()}),Se(()=>{j.value?B():K()}),z({showPreview:ee}),(t,h)=>(g(),L("div",ye({ref_key:"container",ref:P},e(D),{class:[e(b).b(),t.$attrs.class]}),[A.value?x(t.$slots,"error",{key:0},()=>[k("div",{class:v(e(b).e("error"))},Ne(e(o)("el.image.error")),3)]):(g(),L(q,{key:1},[n.value!==void 0?(g(),L("img",ye({key:0},e(se),{src:n.value,loading:t.loading,style:e(ne),class:e(c),crossorigin:t.crossorigin,onClick:ee,onLoad:oe,onError:le}),null,16,["src","loading","crossorigin"])):I("v-if",!0),E.value?(g(),L("div",{key:1,class:v(e(b).e("wrapper"))},[x(t.$slots,"placeholder",{},()=>[k("div",{class:v(e(b).e("placeholder"))},null,2)])],2)):I("v-if",!0)],64)),e(H)?(g(),L(q,{key:2},[M.value?(g(),pe(e(ha),{key:0,"z-index":t.zIndex,"initial-index":e(G),infinite:t.infinite,"zoom-rate":t.zoomRate,"min-scale":t.minScale,"max-scale":t.maxScale,"show-progress":t.showProgress,"url-list":t.previewSrcList,crossorigin:t.crossorigin,"hide-on-click-modal":t.hideOnClickModal,teleported:t.previewTeleported,"close-on-press-escape":t.closeOnPressEscape,onClose:re,onSwitch:ie},oa({toolbar:p(_=>[x(t.$slots,"toolbar",ke(Ie(_)))]),default:p(()=>[t.$slots.viewer?(g(),L("div",{key:0},[x(t.$slots,"viewer")])):I("v-if",!0)]),_:2},[t.$slots.progress?{name:"progress",fn:p(_=>[x(t.$slots,"progress",ke(Ie(_)))])}:void 0]),1032,["z-index","initial-index","infinite","zoom-rate","min-scale","max-scale","show-progress","url-list","crossorigin","hide-on-click-modal","teleported","close-on-press-escape"])):I("v-if",!0)],64)):I("v-if",!0)],16))}});var La=ze(Ca,[["__file","image.vue"]]);const Na=Re(La);export{Na as E};
|
|
1
|
+
import{m as Ce,a as Y}from"./typescript-ZaK-U8nj.js";import{aX as Ae,az as F,ai as ve,ah as Le,an as Z,_ as ze,d as te,aY as we,aZ as Pe,a_ as Be,a$ as Ee,a as _e,aC as Me,aj as C,b0 as Ve,aA as Ye,c as m,au as me,at as Se,i as pe,o as g,j as p,k as d,aR as Fe,t as k,f as he,n as v,e,aE as Xe,y as I,b as L,r as x,af as De,E as T,b1 as He,F as q,b2 as je,b3 as Ke,D as We,x as Ne,b4 as Ze,b5 as qe,b6 as Ge,b7 as Ue,b8 as Je,v as Qe,aS as ea,b9 as aa,aG as V,ba as Oe,g as Re,bb as ta,aB as sa,aL as na,aw as ye,bc as oa,bd as ke,be as Ie,av as la,bf as ra,bg as ia,bh as ca}from"./index-DIZrNQUn.js";import{d as ua}from"./debounce-Bx9f3xTh.js";import{u as da}from"./index-DQ5RoJ9Z.js";var fa="Expected a function";function fe(i,z,l){var s=!0,o=!0;if(typeof i!="function")throw new TypeError(fa);return Ae(l)&&(s="leading"in l?!!l.leading:s,o="trailing"in l?!!l.trailing:o),ua(i,z,{leading:s,maxWait:z,trailing:o})}const va=(i,z)=>{if(!F||!i||!z)return!1;const l=i.getBoundingClientRect();let s;return z instanceof Element?s=z.getBoundingClientRect():s={top:0,right:window.innerWidth,bottom:window.innerHeight,left:0},l.top<s.bottom&&l.bottom>s.top&&l.right>s.left&&l.left<s.right},ma=Le({urlList:{type:Z(Array),default:()=>Ce([])},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},hideOnClickModal:Boolean,teleported:Boolean,closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7},showProgress:Boolean,crossorigin:{type:Z(String)}}),pa={close:()=>!0,switch:i=>ve(i),rotate:i=>ve(i)},ga=te({name:"ElImageViewer"}),ba=te({...ga,props:ma,emits:pa,setup(i,{expose:z,emit:l}){var s;const o=i,b={CONTAIN:{name:"contain",icon:we(Be)},ORIGINAL:{name:"original",icon:we(Pe)}};let X,D="";const{t:se}=Ee(),n=_e("image-viewer"),{nextZIndex:A}=Me(),E=C(),M=C([]),P=Ve(),f=C(!0),w=C(o.initialIndex),O=Ye(b.CONTAIN),c=C({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),ne=C((s=o.zIndex)!=null?s:A()),H=m(()=>{const{urlList:a}=o;return a.length<=1}),G=m(()=>w.value===0),j=m(()=>w.value===o.urlList.length-1),K=m(()=>o.urlList[w.value]),oe=m(()=>[n.e("btn"),n.e("prev"),n.is("disabled",!o.infinite&&G.value)]),le=m(()=>[n.e("btn"),n.e("next"),n.is("disabled",!o.infinite&&j.value)]),U=m(()=>{const{scale:a,deg:u,offsetX:r,offsetY:y,enableTransition:S}=c.value;let N=r/a,$=y/a;const W=u*Math.PI/180,ge=Math.cos(W),be=Math.sin(W);N=N*ge+$*be,$=$*ge-r/a*be;const de={transform:`scale(${a}) rotate(${u}deg) translate(${N}px, ${$}px)`,transition:S?"transform .3s":""};return O.value.name===b.CONTAIN.name&&(de.maxWidth=de.maxHeight="100%"),de}),J=m(()=>`${w.value+1} / ${o.urlList.length}`);function B(){ee(),X?.(),document.body.style.overflow=D,l("close")}function Q(){const a=fe(r=>{switch(r.code){case V.esc:o.closeOnPressEscape&&B();break;case V.space:_();break;case V.left:ce();break;case V.up:R("zoomIn");break;case V.right:ue();break;case V.down:R("zoomOut");break}}),u=fe(r=>{const y=r.deltaY||r.deltaX;R(y<0?"zoomIn":"zoomOut",{zoomRate:o.zoomRate,enableTransition:!1})});P.run(()=>{Y(document,"keydown",a),Y(document,"wheel",u)})}function ee(){P.stop()}function re(){f.value=!1}function ie(a){f.value=!1,a.target.alt=se("el.image.error")}function t(a){if(f.value||a.button!==0||!E.value)return;c.value.enableTransition=!1;const{offsetX:u,offsetY:r}=c.value,y=a.pageX,S=a.pageY,N=fe(W=>{c.value={...c.value,offsetX:u+W.pageX-y,offsetY:r+W.pageY-S}}),$=Y(document,"mousemove",N);Y(document,"mouseup",()=>{$()}),a.preventDefault()}function h(){c.value={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function _(){if(f.value)return;const a=aa(b),u=Object.values(b),r=O.value.name,S=(u.findIndex(N=>N.name===r)+1)%a.length;O.value=b[a[S]],h()}function ae(a){const u=o.urlList.length;w.value=(a+u)%u}function ce(){G.value&&!o.infinite||ae(w.value-1)}function ue(){j.value&&!o.infinite||ae(w.value+1)}function R(a,u={}){if(f.value)return;const{minScale:r,maxScale:y}=o,{zoomRate:S,rotateDeg:N,enableTransition:$}={zoomRate:o.zoomRate,rotateDeg:90,enableTransition:!0,...u};switch(a){case"zoomOut":c.value.scale>r&&(c.value.scale=Number.parseFloat((c.value.scale/S).toFixed(3)));break;case"zoomIn":c.value.scale<y&&(c.value.scale=Number.parseFloat((c.value.scale*S).toFixed(3)));break;case"clockwise":c.value.deg+=N,l("rotate",c.value.deg);break;case"anticlockwise":c.value.deg-=N,l("rotate",c.value.deg);break}c.value.enableTransition=$}function $e(a){var u;((u=a.detail)==null?void 0:u.focusReason)==="pointer"&&a.preventDefault()}function Te(){o.closeOnPressEscape&&B()}function xe(a){if(a.ctrlKey){if(a.deltaY<0)return a.preventDefault(),!1;if(a.deltaY>0)return a.preventDefault(),!1}}return me(K,()=>{Oe(()=>{const a=M.value[0];a?.complete||(f.value=!0)})}),me(w,a=>{h(),l("switch",a)}),Se(()=>{Q(),X=Y("wheel",xe,{passive:!1}),D=document.body.style.overflow,document.body.style.overflow="hidden"}),z({setActiveItem:ae}),(a,u)=>(g(),pe(e(ea),{to:"body",disabled:!a.teleported},{default:p(()=>[d(Fe,{name:"viewer-fade",appear:""},{default:p(()=>[k("div",{ref_key:"wrapper",ref:E,tabindex:-1,class:v(e(n).e("wrapper")),style:he({zIndex:ne.value})},[d(e(Xe),{loop:"",trapped:"","focus-trap-el":E.value,"focus-start-el":"container",onFocusoutPrevented:$e,onReleaseRequested:Te},{default:p(()=>[k("div",{class:v(e(n).e("mask")),onClick:De(r=>a.hideOnClickModal&&B(),["self"])},null,10,["onClick"]),I(" CLOSE "),k("span",{class:v([e(n).e("btn"),e(n).e("close")]),onClick:B},[d(e(T),null,{default:p(()=>[d(e(He))]),_:1})],2),I(" ARROW "),e(H)?I("v-if",!0):(g(),L(q,{key:0},[k("span",{class:v(e(oe)),onClick:ce},[d(e(T),null,{default:p(()=>[d(e(je))]),_:1})],2),k("span",{class:v(e(le)),onClick:ue},[d(e(T),null,{default:p(()=>[d(e(Ke))]),_:1})],2)],64)),a.$slots.progress||a.showProgress?(g(),L("div",{key:1,class:v([e(n).e("btn"),e(n).e("progress")])},[x(a.$slots,"progress",{activeIndex:w.value,total:a.urlList.length},()=>[We(Ne(e(J)),1)])],2)):I("v-if",!0),I(" ACTIONS "),k("div",{class:v([e(n).e("btn"),e(n).e("actions")])},[k("div",{class:v(e(n).e("actions__inner"))},[x(a.$slots,"toolbar",{actions:R,prev:ce,next:ue,reset:_,activeIndex:w.value,setActiveItem:ae},()=>[d(e(T),{onClick:r=>R("zoomOut")},{default:p(()=>[d(e(Ze))]),_:1},8,["onClick"]),d(e(T),{onClick:r=>R("zoomIn")},{default:p(()=>[d(e(qe))]),_:1},8,["onClick"]),k("i",{class:v(e(n).e("actions__divider"))},null,2),d(e(T),{onClick:_},{default:p(()=>[(g(),pe(Ge(e(O).icon)))]),_:1}),k("i",{class:v(e(n).e("actions__divider"))},null,2),d(e(T),{onClick:r=>R("anticlockwise")},{default:p(()=>[d(e(Ue))]),_:1},8,["onClick"]),d(e(T),{onClick:r=>R("clockwise")},{default:p(()=>[d(e(Je))]),_:1},8,["onClick"])])],2)],2),I(" CANVAS "),k("div",{class:v(e(n).e("canvas"))},[(g(!0),L(q,null,Qe(a.urlList,(r,y)=>(g(),L(q,{key:y},[y===w.value?(g(),L("img",{key:0,ref_for:!0,ref:S=>M.value[y]=S,src:r,style:he(e(U)),class:v(e(n).e("img")),crossorigin:a.crossorigin,onLoad:re,onError:ie,onMousedown:t},null,46,["src","crossorigin"])):I("v-if",!0)],64))),128))],2),x(a.$slots,"default")]),_:3},8,["focus-trap-el"])],6)]),_:3})]),_:3},8,["disabled"]))}});var wa=ze(ba,[["__file","image-viewer.vue"]]);const ha=Re(wa),ya=Le({hideOnClickModal:Boolean,src:{type:String,default:""},fit:{type:String,values:["","contain","cover","fill","none","scale-down"],default:""},loading:{type:String,values:["eager","lazy"]},lazy:Boolean,scrollContainer:{type:Z([String,Object])},previewSrcList:{type:Z(Array),default:()=>Ce([])},previewTeleported:Boolean,zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7},showProgress:Boolean,crossorigin:{type:Z(String)}}),ka={load:i=>i instanceof Event,error:i=>i instanceof Event,switch:i=>ve(i),close:()=>!0,show:()=>!0},Ia=te({name:"ElImage",inheritAttrs:!1}),Ca=te({...Ia,props:ya,emits:ka,setup(i,{expose:z,emit:l}){const s=i,{t:o}=Ee(),b=_e("image"),X=ta(),D=m(()=>sa(Object.entries(X).filter(([t])=>/^(data-|on[A-Z])/i.test(t)||["id","style"].includes(t)))),se=da({excludeListeners:!0,excludeKeys:m(()=>Object.keys(D.value))}),n=C(),A=C(!1),E=C(!0),M=C(!1),P=C(),f=C(),w=F&&"loading"in HTMLImageElement.prototype;let O;const c=m(()=>[b.e("inner"),H.value&&b.e("preview"),E.value&&b.is("loading")]),ne=m(()=>{const{fit:t}=s;return F&&t?{objectFit:t}:{}}),H=m(()=>{const{previewSrcList:t}=s;return na(t)&&t.length>0}),G=m(()=>{const{previewSrcList:t,initialIndex:h}=s;let _=h;return h>t.length-1&&(_=0),_}),j=m(()=>s.loading==="eager"?!1:!w&&s.loading==="lazy"||s.lazy),K=()=>{F&&(E.value=!0,A.value=!1,n.value=s.src)};function oe(t){E.value=!1,A.value=!1,l("load",t)}function le(t){E.value=!1,A.value=!0,l("error",t)}function U(){va(P.value,f.value)&&(K(),Q())}const J=ca(U,200,!0);async function B(){var t;if(!F)return;await Oe();const{scrollContainer:h}=s;la(h)?f.value=h:ra(h)&&h!==""?f.value=(t=document.querySelector(h))!=null?t:void 0:P.value&&(f.value=ia(P.value)),f.value&&(O=Y(f,"scroll",J),setTimeout(()=>U(),100))}function Q(){!F||!f.value||!J||(O?.(),f.value=void 0)}function ee(){H.value&&(M.value=!0,l("show"))}function re(){M.value=!1,l("close")}function ie(t){l("switch",t)}return me(()=>s.src,()=>{j.value?(E.value=!0,A.value=!1,Q(),B()):K()}),Se(()=>{j.value?B():K()}),z({showPreview:ee}),(t,h)=>(g(),L("div",ye({ref_key:"container",ref:P},e(D),{class:[e(b).b(),t.$attrs.class]}),[A.value?x(t.$slots,"error",{key:0},()=>[k("div",{class:v(e(b).e("error"))},Ne(e(o)("el.image.error")),3)]):(g(),L(q,{key:1},[n.value!==void 0?(g(),L("img",ye({key:0},e(se),{src:n.value,loading:t.loading,style:e(ne),class:e(c),crossorigin:t.crossorigin,onClick:ee,onLoad:oe,onError:le}),null,16,["src","loading","crossorigin"])):I("v-if",!0),E.value?(g(),L("div",{key:1,class:v(e(b).e("wrapper"))},[x(t.$slots,"placeholder",{},()=>[k("div",{class:v(e(b).e("placeholder"))},null,2)])],2)):I("v-if",!0)],64)),e(H)?(g(),L(q,{key:2},[M.value?(g(),pe(e(ha),{key:0,"z-index":t.zIndex,"initial-index":e(G),infinite:t.infinite,"zoom-rate":t.zoomRate,"min-scale":t.minScale,"max-scale":t.maxScale,"show-progress":t.showProgress,"url-list":t.previewSrcList,crossorigin:t.crossorigin,"hide-on-click-modal":t.hideOnClickModal,teleported:t.previewTeleported,"close-on-press-escape":t.closeOnPressEscape,onClose:re,onSwitch:ie},oa({toolbar:p(_=>[x(t.$slots,"toolbar",ke(Ie(_)))]),default:p(()=>[t.$slots.viewer?(g(),L("div",{key:0},[x(t.$slots,"viewer")])):I("v-if",!0)]),_:2},[t.$slots.progress?{name:"progress",fn:p(_=>[x(t.$slots,"progress",ke(Ie(_)))])}:void 0]),1032,["z-index","initial-index","infinite","zoom-rate","min-scale","max-scale","show-progress","url-list","crossorigin","hide-on-click-modal","teleported","close-on-press-escape"])):I("v-if",!0)],64)):I("v-if",!0)],16))}});var La=ze(Ca,[["__file","image.vue"]]);const Na=Re(La);export{Na as E};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c7 as Y,aK as V,bf as w,ai as S,ah as Z,cd as N,ce as P,cf as B,an as _,bG as g,_ as x,d as M,bm as ee,a as ae,bO as ie,c as d,aj as E,bl as te,au as O,at as ne,b as v,o as i,t as T,y as c,c6 as se,e as a,n as u,i as r,j as p,b6 as b,E as m,x as C,r as F,k as oe,bP as le,f as ce,af as re,ba as ue,cg as L,bC as de,bL as ve,g as fe}from"./index-
|
|
1
|
+
import{c7 as Y,aK as V,bf as w,ai as S,ah as Z,cd as N,ce as P,cf as B,an as _,bG as g,_ as x,d as M,bm as ee,a as ae,bO as ie,c as d,aj as E,bl as te,au as O,at as ne,b as v,o as i,t as T,y as c,c6 as se,e as a,n as u,i as r,j as p,b6 as b,E as m,x as C,r as F,k as oe,bP as le,f as ce,af as re,ba as ue,cg as L,bC as de,bL as ve,g as fe}from"./index-DIZrNQUn.js";import{u as pe}from"./index-Ctx1RSND.js";import{u as me,a as he}from"./use-form-item-DGbaU2QP.js";const be=o=>["",...Y].includes(o),ye=Z({modelValue:{type:[Boolean,String,Number],default:!1},disabled:Boolean,loading:Boolean,size:{type:String,validator:be},width:{type:[String,Number],default:""},inlinePrompt:Boolean,inactiveActionIcon:{type:g},activeActionIcon:{type:g},activeIcon:{type:g},inactiveIcon:{type:g},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},beforeChange:{type:_(Function)},id:String,tabindex:{type:[String,Number]},...pe(["ariaLabel"])}),ke={[B]:o=>V(o)||w(o)||S(o),[P]:o=>V(o)||w(o)||S(o),[N]:o=>V(o)||w(o)||S(o)},U="ElSwitch",Ie=M({name:U}),ge=M({...Ie,props:ye,emits:ke,setup(o,{expose:j,emit:f}){const n=o,{formItem:y}=me(),G=ee(),t=ae("switch"),{inputId:$}=he(n,{formItemContext:y}),k=ie(d(()=>n.loading)),A=E(n.modelValue!==!1),h=E(),H=E(),R=d(()=>[t.b(),t.m(G.value),t.is("disabled",k.value),t.is("checked",s.value)]),W=d(()=>[t.e("label"),t.em("label","left"),t.is("active",!s.value)]),q=d(()=>[t.e("label"),t.em("label","right"),t.is("active",s.value)]),J=d(()=>({width:te(n.width)}));O(()=>n.modelValue,()=>{A.value=!0});const z=d(()=>A.value?n.modelValue:!1),s=d(()=>z.value===n.activeValue);[n.activeValue,n.inactiveValue].includes(z.value)||(f(B,n.inactiveValue),f(P,n.inactiveValue),f(N,n.inactiveValue)),O(s,e=>{var l;h.value.checked=e,n.validateEvent&&((l=y?.validate)==null||l.call(y,"change").catch(X=>ve()))});const I=()=>{const e=s.value?n.inactiveValue:n.activeValue;f(B,e),f(P,e),f(N,e),ue(()=>{h.value.checked=s.value})},K=()=>{if(k.value)return;const{beforeChange:e}=n;if(!e){I();return}const l=e();[L(l),V(l)].includes(!0)||de(U,"beforeChange must return type `Promise<boolean>` or `boolean`"),L(l)?l.then(D=>{D&&I()}).catch(D=>{}):l&&I()},Q=()=>{var e,l;(l=(e=h.value)==null?void 0:e.focus)==null||l.call(e)};return ne(()=>{h.value.checked=s.value}),j({focus:Q,checked:s}),(e,l)=>(i(),v("div",{class:u(a(R)),onClick:re(K,["prevent"])},[T("input",{id:a($),ref_key:"input",ref:h,class:u(a(t).e("input")),type:"checkbox",role:"switch","aria-checked":a(s),"aria-disabled":a(k),"aria-label":e.ariaLabel,name:e.name,"true-value":e.activeValue,"false-value":e.inactiveValue,disabled:a(k),tabindex:e.tabindex,onChange:I,onKeydown:se(K,["enter"])},null,42,["id","aria-checked","aria-disabled","aria-label","name","true-value","false-value","disabled","tabindex","onKeydown"]),!e.inlinePrompt&&(e.inactiveIcon||e.inactiveText)?(i(),v("span",{key:0,class:u(a(W))},[e.inactiveIcon?(i(),r(a(m),{key:0},{default:p(()=>[(i(),r(b(e.inactiveIcon)))]),_:1})):c("v-if",!0),!e.inactiveIcon&&e.inactiveText?(i(),v("span",{key:1,"aria-hidden":a(s)},C(e.inactiveText),9,["aria-hidden"])):c("v-if",!0)],2)):c("v-if",!0),T("span",{ref_key:"core",ref:H,class:u(a(t).e("core")),style:ce(a(J))},[e.inlinePrompt?(i(),v("div",{key:0,class:u(a(t).e("inner"))},[e.activeIcon||e.inactiveIcon?(i(),r(a(m),{key:0,class:u(a(t).is("icon"))},{default:p(()=>[(i(),r(b(a(s)?e.activeIcon:e.inactiveIcon)))]),_:1},8,["class"])):e.activeText||e.inactiveText?(i(),v("span",{key:1,class:u(a(t).is("text")),"aria-hidden":!a(s)},C(a(s)?e.activeText:e.inactiveText),11,["aria-hidden"])):c("v-if",!0)],2)):c("v-if",!0),T("div",{class:u(a(t).e("action"))},[e.loading?(i(),r(a(m),{key:0,class:u(a(t).is("loading"))},{default:p(()=>[oe(a(le))]),_:1},8,["class"])):a(s)?F(e.$slots,"active-action",{key:1},()=>[e.activeActionIcon?(i(),r(a(m),{key:0},{default:p(()=>[(i(),r(b(e.activeActionIcon)))]),_:1})):c("v-if",!0)]):a(s)?c("v-if",!0):F(e.$slots,"inactive-action",{key:2},()=>[e.inactiveActionIcon?(i(),r(a(m),{key:0},{default:p(()=>[(i(),r(b(e.inactiveActionIcon)))]),_:1})):c("v-if",!0)])],2)],6),!e.inlinePrompt&&(e.activeIcon||e.activeText)?(i(),v("span",{key:1,class:u(a(q))},[e.activeIcon?(i(),r(a(m),{key:0},{default:p(()=>[(i(),r(b(e.activeIcon)))]),_:1})):c("v-if",!0),!e.activeIcon&&e.activeText?(i(),v("span",{key:1,"aria-hidden":!a(s)},C(e.activeText),9,["aria-hidden"])):c("v-if",!0)],2)):c("v-if",!0)],10,["onClick"]))}});var Ve=x(ge,[["__file","switch.vue"]]);const Te=fe(Ve);export{Te as E};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{bD as $,ah as I,b9 as V,cu as E,_ as P,d as S,u as j,a as z,aj as F,c as g,aM as d,az as M,i,o,j as u,J as O,t as k,n as a,e,y as r,E as b,r as m,b6 as R,b as c,D as w,x as y,F as J,k as K,cv as U,K as _,aR as q,g as G}from"./index-
|
|
1
|
+
import{bD as $,ah as I,b9 as V,cu as E,_ as P,d as S,u as j,a as z,aj as F,c as g,aM as d,az as M,i,o,j as u,J as O,t as k,n as a,e,y as r,E as b,r as m,b6 as R,b as c,D as w,x as y,F as J,k as K,cv as U,K as _,aR as q,g as G}from"./index-DIZrNQUn.js";import{d as H,e as L}from"./index-BAmhvkaf.js";const Q=["light","dark"],W=I({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:V(E),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:Q,default:"light"},...H}),X={open:()=>!0,close:n=>$(n)||n instanceof Event},Y=S({name:"ElAlert"}),Z=S({...Y,props:W,emits:X,setup(n,{emit:v}){const l=n,{Close:T}=U,D=j(),t=z("alert"),p=F(!1),h=g(()=>E[l.type]),f=g(()=>!!(l.description||D.default)),A=()=>{p.value=!0,v("open")},C=s=>{p.value=!1,v("close",s)},{onOpen:B,onClose:N}=L({showAfter:d(l,"showAfter"),hideAfter:d(l,"hideAfter"),autoClose:d(l,"autoClose"),open:A,close:C});return M&&B(),(s,ee)=>(o(),i(q,{name:e(t).b("fade"),persisted:""},{default:u(()=>[O(k("div",{class:a([e(t).b(),e(t).m(s.type),e(t).is("center",s.center),e(t).is(s.effect)]),role:"alert"},[s.showIcon&&(s.$slots.icon||e(h))?(o(),i(e(b),{key:0,class:a([e(t).e("icon"),{[e(t).is("big")]:e(f)}])},{default:u(()=>[m(s.$slots,"icon",{},()=>[(o(),i(R(e(h))))])]),_:3},8,["class"])):r("v-if",!0),k("div",{class:a(e(t).e("content"))},[s.title||s.$slots.title?(o(),c("span",{key:0,class:a([e(t).e("title"),{"with-description":e(f)}])},[m(s.$slots,"title",{},()=>[w(y(s.title),1)])],2)):r("v-if",!0),e(f)?(o(),c("p",{key:1,class:a(e(t).e("description"))},[m(s.$slots,"default",{},()=>[w(y(s.description),1)])],2)):r("v-if",!0),s.closable?(o(),c(J,{key:2},[s.closeText?(o(),c("div",{key:0,class:a([e(t).e("close-btn"),e(t).is("customed")]),onClick:C},y(s.closeText),3)):(o(),i(e(b),{key:1,class:a(e(t).e("close-btn")),onClick:e(N)},{default:u(()=>[K(e(T))]),_:1},8,["class","onClick"]))],64)):r("v-if",!0)],2)],2),[[_,p.value]])]),_:3},8,["name"]))}});var x=P(Z,[["__file","alert.vue"]]);const oe=G(x);export{oe as E};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as O,b as ee}from"./typescript-
|
|
1
|
+
import{a as O,b as ee}from"./typescript-ZaK-U8nj.js";import{ah as j,_ as D,d as x,al as G,a as J,bC as te,aj as u,c as C,am as le,aM as X,i as W,o as N,j as Q,J as ae,t as A,af as oe,n as P,e as g,f as $,K as se,aR as re,az as ne,b as Z,k as Y,F as ie,ai as R,an as ce,bl as q,au as V,ak as ue,bE as ve,bR as fe,at as me,ba as F,bS as de,y as pe,r as he,b6 as be,aq as ye,g as ge}from"./index-DIZrNQUn.js";import{u as Se}from"./index-Ctx1RSND.js";const k=4,we={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},ze=({move:d,size:v,bar:s})=>({[s.size]:v,transform:`translate${s.axis}(${d}%)`}),K=Symbol("scrollbarContextKey"),Ee=j({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),_e="Thumb",He=x({__name:"thumb",props:Ee,setup(d){const v=d,s=G(K),a=J("scrollbar");s||te(_e,"can not inject scrollbar context");const c=u(),f=u(),p=u({}),i=u(!1);let n=!1,m=!1,T=0,l=0,o=ne?document.onselectstart:null;const t=C(()=>we[v.vertical?"vertical":"horizontal"]),h=C(()=>ze({size:v.size,move:v.move,bar:t.value})),w=C(()=>c.value[t.value.offset]**2/s.wrapElement[t.value.scrollSize]/v.ratio/f.value[t.value.offset]),_=r=>{var y;if(r.stopPropagation(),r.ctrlKey||[1,2].includes(r.button))return;(y=window.getSelection())==null||y.removeAllRanges(),z(r);const H=r.currentTarget;H&&(p.value[t.value.axis]=H[t.value.offset]-(r[t.value.client]-H.getBoundingClientRect()[t.value.direction]))},S=r=>{if(!f.value||!c.value||!s.wrapElement)return;const y=Math.abs(r.target.getBoundingClientRect()[t.value.direction]-r[t.value.client]),H=f.value[t.value.offset]/2,M=(y-H)*100*w.value/c.value[t.value.offset];s.wrapElement[t.value.scroll]=M*s.wrapElement[t.value.scrollSize]/100},z=r=>{r.stopImmediatePropagation(),n=!0,T=s.wrapElement.scrollHeight,l=s.wrapElement.scrollWidth,document.addEventListener("mousemove",B),document.addEventListener("mouseup",L),o=document.onselectstart,document.onselectstart=()=>!1},B=r=>{if(!c.value||!f.value||n===!1)return;const y=p.value[t.value.axis];if(!y)return;const H=(c.value.getBoundingClientRect()[t.value.direction]-r[t.value.client])*-1,M=f.value[t.value.offset]-y,U=(H-M)*100*w.value/c.value[t.value.offset];t.value.scroll==="scrollLeft"?s.wrapElement[t.value.scroll]=U*l/100:s.wrapElement[t.value.scroll]=U*T/100},L=()=>{n=!1,p.value[t.value.axis]=0,document.removeEventListener("mousemove",B),document.removeEventListener("mouseup",L),b(),m&&(i.value=!1)},E=()=>{m=!1,i.value=!!v.size},e=()=>{m=!0,i.value=n};le(()=>{b(),document.removeEventListener("mouseup",L)});const b=()=>{document.onselectstart!==o&&(document.onselectstart=o)};return O(X(s,"scrollbarElement"),"mousemove",E),O(X(s,"scrollbarElement"),"mouseleave",e),(r,y)=>(N(),W(re,{name:g(a).b("fade"),persisted:""},{default:Q(()=>[ae(A("div",{ref_key:"instance",ref:c,class:P([g(a).e("bar"),g(a).is(g(t).key)]),onMousedown:S,onClick:oe(()=>{},["stop"])},[A("div",{ref_key:"thumb",ref:f,class:P(g(a).e("thumb")),style:$(g(h)),onMousedown:_},null,38)],42,["onClick"]),[[se,r.always||i.value]])]),_:1},8,["name"]))}});var I=D(He,[["__file","thumb.vue"]]);const Te=j({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}}),ke=x({__name:"bar",props:Te,setup(d,{expose:v}){const s=d,a=G(K),c=u(0),f=u(0),p=u(""),i=u(""),n=u(1),m=u(1);return v({handleScroll:o=>{if(o){const t=o.offsetHeight-k,h=o.offsetWidth-k;f.value=o.scrollTop*100/t*n.value,c.value=o.scrollLeft*100/h*m.value}},update:()=>{const o=a?.wrapElement;if(!o)return;const t=o.offsetHeight-k,h=o.offsetWidth-k,w=t**2/o.scrollHeight,_=h**2/o.scrollWidth,S=Math.max(w,s.minSize),z=Math.max(_,s.minSize);n.value=w/(t-w)/(S/(t-S)),m.value=_/(h-_)/(z/(h-z)),i.value=S+k<t?`${S}px`:"",p.value=z+k<h?`${z}px`:""}}),(o,t)=>(N(),Z(ie,null,[Y(I,{move:c.value,ratio:m.value,size:p.value,always:o.always},null,8,["move","ratio","size","always"]),Y(I,{move:f.value,ratio:n.value,size:i.value,vertical:"",always:o.always},null,8,["move","ratio","size","always"])],64))}});var Ce=D(ke,[["__file","bar.vue"]]);const Le=j({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:Boolean,wrapStyle:{type:ce([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20},tabindex:{type:[String,Number],default:void 0},id:String,role:String,...Se(["ariaLabel","ariaOrientation"])}),Re={"end-reached":d=>["left","right","top","bottom"].includes(d),scroll:({scrollTop:d,scrollLeft:v})=>[d,v].every(R)},Ne="ElScrollbar",Pe=x({name:Ne}),Be=x({...Pe,props:Le,emits:Re,setup(d,{expose:v,emit:s}){const a=d,c=J("scrollbar");let f,p,i=0,n=0,m="";const T=u(),l=u(),o=u(),t=u(),h=C(()=>{const e={};return a.height&&(e.height=q(a.height)),a.maxHeight&&(e.maxHeight=q(a.maxHeight)),[a.wrapStyle,e]}),w=C(()=>[a.wrapClass,c.e("wrap"),{[c.em("wrap","hidden-default")]:!a.native}]),_=C(()=>[c.e("view"),a.viewClass]),S=()=>{var e;if(l.value){(e=t.value)==null||e.handleScroll(l.value);const b=i,r=n;i=l.value.scrollTop,n=l.value.scrollLeft;const y={bottom:i+l.value.clientHeight>=l.value.scrollHeight,top:i<=0&&b!==0,right:n+l.value.clientWidth>=l.value.scrollWidth&&r!==n,left:n<=0&&r!==0};b!==i&&(m=i>b?"bottom":"top"),r!==n&&(m=n>r?"right":"left"),s("scroll",{scrollTop:i,scrollLeft:n}),y[m]&&s("end-reached",m)}};function z(e,b){ye(e)?l.value.scrollTo(e):R(e)&&R(b)&&l.value.scrollTo(e,b)}const B=e=>{R(e)&&(l.value.scrollTop=e)},L=e=>{R(e)&&(l.value.scrollLeft=e)},E=()=>{var e;(e=t.value)==null||e.update()};return V(()=>a.noresize,e=>{e?(f?.(),p?.()):({stop:f}=ee(o,E),p=O("resize",E))},{immediate:!0}),V(()=>[a.maxHeight,a.height],()=>{a.native||F(()=>{var e;E(),l.value&&((e=t.value)==null||e.handleScroll(l.value))})}),ue(K,ve({scrollbarElement:T,wrapElement:l})),fe(()=>{l.value&&(l.value.scrollTop=i,l.value.scrollLeft=n)}),me(()=>{a.native||F(()=>{E()})}),de(()=>E()),v({wrapRef:l,update:E,scrollTo:z,setScrollTop:B,setScrollLeft:L,handleScroll:S}),(e,b)=>(N(),Z("div",{ref_key:"scrollbarRef",ref:T,class:P(g(c).b())},[A("div",{ref_key:"wrapRef",ref:l,class:P(g(w)),style:$(g(h)),tabindex:e.tabindex,onScroll:S},[(N(),W(be(e.tag),{id:e.id,ref_key:"resizeRef",ref:o,class:P(g(_)),style:$(e.viewStyle),role:e.role,"aria-label":e.ariaLabel,"aria-orientation":e.ariaOrientation},{default:Q(()=>[he(e.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],46,["tabindex"]),e.native?pe("v-if",!0):(N(),W(Ce,{key:0,ref_key:"barRef",ref:t,always:e.always,"min-size":e.minSize},null,8,["always","min-size"]))],2))}});var xe=D(Be,[["__file","scrollbar.vue"]]);const Ae=ge(xe);export{Ae as E,Re as s};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Auth-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Auth-JSfzrjVw.js","assets/Auth-s1Frfj4Q.css","assets/Callback-C2H8C81R.js","assets/Callback-BOWlkJeC.css","assets/Console-uSrRSY8n.js","assets/Navigator-BEQFoaW2.js","assets/index.es-CqlJd-yS.js","assets/index-CsgLO_LY.js","assets/index-BqGPaah3.js","assets/use-form-item-DGbaU2QP.js","assets/index-r5W6hzzQ.js","assets/index-BAmhvkaf.js","assets/index-Ctx1RSND.js","assets/typescript-ZaK-U8nj.js","assets/index-Cz8iQRgo.js","assets/dropdown-KE74oPTp.js","assets/castArray-DJF4-x38.js","assets/EditArray-B9W94Ga4.js","assets/index-UHBZtYFS.js","assets/index-DQ5RoJ9Z.js","assets/index-BD2pT-dD.js","assets/index--_QEux7P.js","assets/_baseClone-B_I0hSdV.js","assets/_Uint8Array-BC_FRZYc.js","assets/_initCloneObject-DyB1XiN6.js","assets/isEqual-1h3igxok.js","assets/index-DjMEqkwM.js","assets/EditArray--cNGtcL5.css","assets/index-D_koEXlG.js","assets/index-Cu-1fLrz.js","assets/debounce-Bx9f3xTh.js","assets/index-C7BdSzIH.js","assets/index-Cxgm-GHk.js","assets/index-CWZ09lz8.js","assets/index-ZTHN7L0Z.js","assets/Navigator-DduT-WvI.css","assets/Console-CkmGMbfk.css","assets/List-CSWZamU1.js","assets/order-Ceby9P48.js","assets/Pagination-DJd4eipp.js","assets/index-U4PaPjlW.js","assets/strings-XyKi2wwB.js","assets/_baseIteratee-CwO5J9z7.js","assets/Pagination-CnOUH4Ut.css","assets/CopyToClipboard-k3NSO_oA.js","assets/CopyToClipboard-D6Bl8XZW.css","assets/order-CWHwECRB.js","assets/price-DECfxhx6.js","assets/index-BhwS5c3I.js","assets/index-UCpuD2so.js","assets/isPlainObject-CJC2i-uy.js","assets/index-CJM20JaX.js","assets/Detail-Hp5FeJyh.js","assets/index-Cz88CC79.js","assets/index-CXl_uYvN.js","assets/Detail-CtFAdZ3a.css","assets/List-EsU10Na-.js","assets/credential-DWyZQ5lE.js","assets/Extra-DGk67e15.js","assets/api-Ch0ZHArw.js","assets/index-DbExocg6.js","assets/Extra-BWQZ0rxR.css","assets/Subscribe-CV5zJN_p.js","assets/Subscribe-CRhapGtL.css","assets/List-2sIAWL2L.js","assets/List-HRuTvGfZ.css","assets/Main-qA7qPY-b.js","assets/Status-Czzf5rd1.js","assets/Status-DYNSTNBW.css","assets/Main-ciuyHaq3.css","assets/Conversation-_B4AsqVk.js","assets/FilePreview-DzXE2Jqg.js","assets/FilePreview-BKRIP2hj.css","assets/ImagePreview-Dx76U7I-.js","assets/ImagePreview-D1t46JXT.css","assets/index-CPKjhATc.js","assets/Conversation-CsNd2Ql1.css","assets/Index-B0XIn0lM.js","assets/InfoIcon-DYYKeCet.js","assets/InfoIcon-DiyV0220.css","assets/index-DcBPTCY8.js","assets/index-DfLjcG0W.js","assets/ImageWrapper-Zu8ZxGvQ.js","assets/ImageWrapper-cN_O9DCY.css","assets/VideoPlayer-Q-P39OZ9.js","assets/vue-plyr-QZFBikSk.js","assets/vue-plyr-BqJN4-Iw.css","assets/VideoPlayer-GclO5hCT.css","assets/BotPlaceholder-GlgfdToc.js","assets/BotPlaceholder-C_P7dqM5.css","assets/NoTasks-BuCBIkNh.js","assets/Index-dNdawwcb.css","assets/Index-DiaRdMSg.js","assets/distribution-Bc5vHY_c.js","assets/Index-cOOQ1_jY.css","assets/History-D7Co3WBD.js","assets/History-DCa2CRRX.css","assets/Invitees-Nk96-gcw.js","assets/Invitees-G_3SLFJA.css","assets/Index-Ci3ME8pV.js","assets/Index-M_XMk9YM.css","assets/Index-D7BmMoY8.js","assets/Index-Dl684zwM.css","assets/Index-ewvU_Qva.js","assets/Index-CUCNk4Bi.css","assets/Index-BiHwcmvW.js","assets/Index-7ZEDf901.css","assets/Index-Dm3DPhfD.js","assets/Index-CDaiDcdU.css","assets/Index-BVLuZJi9.js","assets/Index-C8eOYKb6.css","assets/Index-Ba8Rl5do.js","assets/Index-CcCtbfeF.css","assets/Index-DHXqZyjd.js","assets/Index-BAhAF_7z.css","assets/Index-Bp9lX6Wt.js","assets/index-DzuSEOc6.js","assets/Index-DuuVjMJ7.css","assets/Index-CRLhgIrO.js","assets/Index-CZVUVmvo.css","assets/Index-ViFKIq9k.js","assets/Index-PQerfBmJ.css"])))=>i.map(i=>d[i]);
|
|
2
2
|
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))a(o);new MutationObserver(o=>{for(const r of o)if(r.type==="childList")for(const s of r.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&a(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const r={};return o.integrity&&(r.integrity=o.integrity),o.referrerPolicy&&(r.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?r.credentials="include":o.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function a(o){if(o.ep)return;o.ep=!0;const r=n(o);fetch(o.href,r)}})();/**
|
|
3
3
|
* @vue/shared v3.5.18
|
|
4
4
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
@@ -64,7 +64,7 @@ Minimum version required to store current data is: `+I+`.
|
|
|
64
64
|
* vue-router v4.5.1
|
|
65
65
|
* (c) 2025 Eduardo San Martin Morote
|
|
66
66
|
* @license MIT
|
|
67
|
-
*/const mo=typeof document<"u";function jb(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function IN(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&jb(e.default)}const He=Object.assign;function iu(e,t){const n={};for(const a in t){const o=t[a];n[a]=un(o)?o.map(e):e(o)}return n}const mr=()=>{},un=Array.isArray,Eb=/#/g,CN=/&/g,PN=/\//g,xN=/=/g,zN=/\?/g,Ab=/\+/g,DN=/%5B/g,NN=/%5D/g,Tb=/%5E/g,MN=/%60/g,Ob=/%7B/g,$N=/%7C/g,Lb=/%7D/g,VN=/%20/g;function Jp(e){return encodeURI(""+e).replace($N,"|").replace(DN,"[").replace(NN,"]")}function FN(e){return Jp(e).replace(Ob,"{").replace(Lb,"}").replace(Tb,"^")}function id(e){return Jp(e).replace(Ab,"%2B").replace(VN,"+").replace(Eb,"%23").replace(CN,"%26").replace(MN,"`").replace(Ob,"{").replace(Lb,"}").replace(Tb,"^")}function UN(e){return id(e).replace(xN,"%3D")}function BN(e){return Jp(e).replace(Eb,"%23").replace(zN,"%3F")}function HN(e){return e==null?"":BN(e).replace(PN,"%2F")}function Nr(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const qN=/\/$/,WN=e=>e.replace(qN,"");function cu(e,t,n="/"){let a,o={},r="",s="";const i=t.indexOf("#");let c=t.indexOf("?");return i<c&&i>=0&&(c=-1),c>-1&&(a=t.slice(0,c),r=t.slice(c+1,i>-1?i:t.length),o=e(r)),i>-1&&(a=a||t.slice(0,i),s=t.slice(i,t.length)),a=XN(a??t,n),{fullPath:a+(r&&"?")+r+s,path:a,query:o,hash:Nr(s)}}function GN(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function S1(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function KN(e,t,n){const a=t.matched.length-1,o=n.matched.length-1;return a>-1&&a===o&&Po(t.matched[a],n.matched[o])&&Sb(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Po(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Sb(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!YN(e[n],t[n]))return!1;return!0}function YN(e,t){return un(e)?R1(e,t):un(t)?R1(t,e):e===t}function R1(e,t){return un(t)?e.length===t.length&&e.every((n,a)=>n===t[a]):e.length===1&&e[0]===t}function XN(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),a=e.split("/"),o=a[a.length-1];(o===".."||o===".")&&a.push("");let r=n.length-1,s,i;for(s=0;s<a.length;s++)if(i=a[s],i!==".")if(i==="..")r>1&&r--;else break;return n.slice(0,r).join("/")+"/"+a.slice(s).join("/")}const aa={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Mr;(function(e){e.pop="pop",e.push="push"})(Mr||(Mr={}));var hr;(function(e){e.back="back",e.forward="forward",e.unknown=""})(hr||(hr={}));function JN(e){if(!e)if(mo){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),WN(e)}const ZN=/^[^#]+#/;function QN(e,t){return e.replace(ZN,"#")+t}function eM(e,t){const n=document.documentElement.getBoundingClientRect(),a=e.getBoundingClientRect();return{behavior:t.behavior,left:a.left-n.left-(t.left||0),top:a.top-n.top-(t.top||0)}}const ac=()=>({left:window.scrollX,top:window.scrollY});function tM(e){let t;if("el"in e){const n=e.el,a=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?a?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=eM(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function I1(e,t){return(history.state?history.state.position-t:-1)+e}const cd=new Map;function nM(e,t){cd.set(e,t)}function aM(e){const t=cd.get(e);return cd.delete(e),t}let oM=()=>location.protocol+"//"+location.host;function Rb(e,t){const{pathname:n,search:a,hash:o}=t,r=e.indexOf("#");if(r>-1){let i=o.includes(e.slice(r))?e.slice(r).length:1,c=o.slice(i);return c[0]!=="/"&&(c="/"+c),S1(c,"")}return S1(n,e)+a+o}function rM(e,t,n,a){let o=[],r=[],s=null;const i=({state:p})=>{const f=Rb(e,location),h=n.value,v=t.value;let _=0;if(p){if(n.value=f,t.value=p,s&&s===h){s=null;return}_=v?p.position-v.position:0}else a(f);o.forEach(m=>{m(n.value,h,{delta:_,type:Mr.pop,direction:_?_>0?hr.forward:hr.back:hr.unknown})})};function c(){s=n.value}function l(p){o.push(p);const f=()=>{const h=o.indexOf(p);h>-1&&o.splice(h,1)};return r.push(f),f}function u(){const{history:p}=window;p.state&&p.replaceState(He({},p.state,{scroll:ac()}),"")}function d(){for(const p of r)p();r=[],window.removeEventListener("popstate",i),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",i),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:c,listen:l,destroy:d}}function C1(e,t,n,a=!1,o=!1){return{back:e,current:t,forward:n,replaced:a,position:window.history.length,scroll:o?ac():null}}function sM(e){const{history:t,location:n}=window,a={value:Rb(e,n)},o={value:t.state};o.value||r(a.value,{back:null,current:a.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function r(c,l,u){const d=e.indexOf("#"),p=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+c:oM()+e+c;try{t[u?"replaceState":"pushState"](l,"",p),o.value=l}catch(f){console.error(f),n[u?"replace":"assign"](p)}}function s(c,l){const u=He({},t.state,C1(o.value.back,c,o.value.forward,!0),l,{position:o.value.position});r(c,u,!0),a.value=c}function i(c,l){const u=He({},o.value,t.state,{forward:c,scroll:ac()});r(u.current,u,!0);const d=He({},C1(a.value,c,null),{position:u.position+1},l);r(c,d,!1),a.value=c}return{location:a,state:o,push:i,replace:s}}function iM(e){e=JN(e);const t=sM(e),n=rM(e,t.state,t.location,t.replace);function a(r,s=!0){s||n.pauseListeners(),history.go(r)}const o=He({location:"",base:e,go:a,createHref:QN.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function cM(e){return typeof e=="string"||e&&typeof e=="object"}function Ib(e){return typeof e=="string"||typeof e=="symbol"}const Cb=Symbol("");var P1;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(P1||(P1={}));function xo(e,t){return He(new Error,{type:e,[Cb]:!0},t)}function zn(e,t){return e instanceof Error&&Cb in e&&(t==null||!!(e.type&t))}const x1="[^/]+?",lM={sensitive:!1,strict:!1,start:!0,end:!0},uM=/[.+*?^${}()[\]/\\]/g;function dM(e,t){const n=He({},lM,t),a=[];let o=n.start?"^":"";const r=[];for(const l of e){const u=l.length?[]:[90];n.strict&&!l.length&&(o+="/");for(let d=0;d<l.length;d++){const p=l[d];let f=40+(n.sensitive?.25:0);if(p.type===0)d||(o+="/"),o+=p.value.replace(uM,"\\$&"),f+=40;else if(p.type===1){const{value:h,repeatable:v,optional:_,regexp:m}=p;r.push({name:h,repeatable:v,optional:_});const y=m||x1;if(y!==x1){f+=10;try{new RegExp(`(${y})`)}catch(b){throw new Error(`Invalid custom RegExp for param "${h}" (${y}): `+b.message)}}let k=v?`((?:${y})(?:/(?:${y}))*)`:`(${y})`;d||(k=_&&l.length<2?`(?:/${k})`:"/"+k),_&&(k+="?"),o+=k,f+=20,_&&(f+=-8),v&&(f+=-20),y===".*"&&(f+=-50)}u.push(f)}a.push(u)}if(n.strict&&n.end){const l=a.length-1;a[l][a[l].length-1]+=.7000000000000001}n.strict||(o+="/?"),n.end?o+="$":n.strict&&!o.endsWith("/")&&(o+="(?:/|$)");const s=new RegExp(o,n.sensitive?"":"i");function i(l){const u=l.match(s),d={};if(!u)return null;for(let p=1;p<u.length;p++){const f=u[p]||"",h=r[p-1];d[h.name]=f&&h.repeatable?f.split("/"):f}return d}function c(l){let u="",d=!1;for(const p of e){(!d||!u.endsWith("/"))&&(u+="/"),d=!1;for(const f of p)if(f.type===0)u+=f.value;else if(f.type===1){const{value:h,repeatable:v,optional:_}=f,m=h in l?l[h]:"";if(un(m)&&!v)throw new Error(`Provided param "${h}" is an array but it is not repeatable (* or + modifiers)`);const y=un(m)?m.join("/"):m;if(!y)if(_)p.length<2&&(u.endsWith("/")?u=u.slice(0,-1):d=!0);else throw new Error(`Missing required param "${h}"`);u+=y}}return u||"/"}return{re:s,score:a,keys:r,parse:i,stringify:c}}function pM(e,t){let n=0;for(;n<e.length&&n<t.length;){const a=t[n]-e[n];if(a)return a;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function Pb(e,t){let n=0;const a=e.score,o=t.score;for(;n<a.length&&n<o.length;){const r=pM(a[n],o[n]);if(r)return r;n++}if(Math.abs(o.length-a.length)===1){if(z1(a))return 1;if(z1(o))return-1}return o.length-a.length}function z1(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const fM={type:0,value:""},mM=/[a-zA-Z0-9_]/;function hM(e){if(!e)return[[]];if(e==="/")return[[fM]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(f){throw new Error(`ERR (${n})/"${l}": ${f}`)}let n=0,a=n;const o=[];let r;function s(){r&&o.push(r),r=[]}let i=0,c,l="",u="";function d(){l&&(n===0?r.push({type:0,value:l}):n===1||n===2||n===3?(r.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),r.push({type:1,value:l,regexp:u,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),l="")}function p(){l+=c}for(;i<e.length;){if(c=e[i++],c==="\\"&&n!==2){a=n,n=4;continue}switch(n){case 0:c==="/"?(l&&d(),s()):c===":"?(d(),n=1):p();break;case 4:p(),n=a;break;case 1:c==="("?n=2:mM.test(c)?p():(d(),n=0,c!=="*"&&c!=="?"&&c!=="+"&&i--);break;case 2:c===")"?u[u.length-1]=="\\"?u=u.slice(0,-1)+c:n=3:u+=c;break;case 3:d(),n=0,c!=="*"&&c!=="?"&&c!=="+"&&i--,u="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${l}"`),d(),s(),o}function gM(e,t,n){const a=dM(hM(e.path),n),o=He(a,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function vM(e,t){const n=[],a=new Map;t=$1({strict:!1,end:!0,sensitive:!1},t);function o(d){return a.get(d)}function r(d,p,f){const h=!f,v=N1(d);v.aliasOf=f&&f.record;const _=$1(t,d),m=[v];if("alias"in d){const b=typeof d.alias=="string"?[d.alias]:d.alias;for(const O of b)m.push(N1(He({},v,{components:f?f.record.components:v.components,path:O,aliasOf:f?f.record:v})))}let y,k;for(const b of m){const{path:O}=b;if(p&&O[0]!=="/"){const A=p.record.path,T=A[A.length-1]==="/"?"":"/";b.path=p.record.path+(O&&T+O)}if(y=gM(b,p,_),f?f.alias.push(y):(k=k||y,k!==y&&k.alias.push(y),h&&d.name&&!M1(y)&&s(d.name)),xb(y)&&c(y),v.children){const A=v.children;for(let T=0;T<A.length;T++)r(A[T],y,f&&f.children[T])}f=f||y}return k?()=>{s(k)}:mr}function s(d){if(Ib(d)){const p=a.get(d);p&&(a.delete(d),n.splice(n.indexOf(p),1),p.children.forEach(s),p.alias.forEach(s))}else{const p=n.indexOf(d);p>-1&&(n.splice(p,1),d.record.name&&a.delete(d.record.name),d.children.forEach(s),d.alias.forEach(s))}}function i(){return n}function c(d){const p=bM(d,n);n.splice(p,0,d),d.record.name&&!M1(d)&&a.set(d.record.name,d)}function l(d,p){let f,h={},v,_;if("name"in d&&d.name){if(f=a.get(d.name),!f)throw xo(1,{location:d});_=f.record.name,h=He(D1(p.params,f.keys.filter(k=>!k.optional).concat(f.parent?f.parent.keys.filter(k=>k.optional):[]).map(k=>k.name)),d.params&&D1(d.params,f.keys.map(k=>k.name))),v=f.stringify(h)}else if(d.path!=null)v=d.path,f=n.find(k=>k.re.test(v)),f&&(h=f.parse(v),_=f.record.name);else{if(f=p.name?a.get(p.name):n.find(k=>k.re.test(p.path)),!f)throw xo(1,{location:d,currentLocation:p});_=f.record.name,h=He({},p.params,d.params),v=f.stringify(h)}const m=[];let y=f;for(;y;)m.unshift(y.record),y=y.parent;return{name:_,path:v,params:h,matched:m,meta:yM(m)}}e.forEach(d=>r(d));function u(){n.length=0,a.clear()}return{addRoute:r,resolve:l,removeRoute:s,clearRoutes:u,getRoutes:i,getRecordMatcher:o}}function D1(e,t){const n={};for(const a of t)a in e&&(n[a]=e[a]);return n}function N1(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:_M(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function _M(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const a in e.components)t[a]=typeof n=="object"?n[a]:n;return t}function M1(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function yM(e){return e.reduce((t,n)=>He(t,n.meta),{})}function $1(e,t){const n={};for(const a in e)n[a]=a in t?t[a]:e[a];return n}function bM(e,t){let n=0,a=t.length;for(;n!==a;){const r=n+a>>1;Pb(e,t[r])<0?a=r:n=r+1}const o=kM(e);return o&&(a=t.lastIndexOf(o,a-1)),a}function kM(e){let t=e;for(;t=t.parent;)if(xb(t)&&Pb(e,t)===0)return t}function xb({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function wM(e){const t={};if(e===""||e==="?")return t;const a=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;o<a.length;++o){const r=a[o].replace(Ab," "),s=r.indexOf("="),i=Nr(s<0?r:r.slice(0,s)),c=s<0?null:Nr(r.slice(s+1));if(i in t){let l=t[i];un(l)||(l=t[i]=[l]),l.push(c)}else t[i]=c}return t}function V1(e){let t="";for(let n in e){const a=e[n];if(n=UN(n),a==null){a!==void 0&&(t+=(t.length?"&":"")+n);continue}(un(a)?a.map(r=>r&&id(r)):[a&&id(a)]).forEach(r=>{r!==void 0&&(t+=(t.length?"&":"")+n,r!=null&&(t+="="+r))})}return t}function jM(e){const t={};for(const n in e){const a=e[n];a!==void 0&&(t[n]=un(a)?a.map(o=>o==null?null:""+o):a==null?a:""+a)}return t}const EM=Symbol(""),F1=Symbol(""),Zp=Symbol(""),zb=Symbol(""),ld=Symbol("");function Qo(){let e=[];function t(a){return e.push(a),()=>{const o=e.indexOf(a);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function ua(e,t,n,a,o,r=s=>s()){const s=a&&(a.enterCallbacks[o]=a.enterCallbacks[o]||[]);return()=>new Promise((i,c)=>{const l=p=>{p===!1?c(xo(4,{from:n,to:t})):p instanceof Error?c(p):cM(p)?c(xo(2,{from:t,to:p})):(s&&a.enterCallbacks[o]===s&&typeof p=="function"&&s.push(p),i())},u=r(()=>e.call(a&&a.instances[o],t,n,l));let d=Promise.resolve(u);e.length<3&&(d=d.then(l)),d.catch(p=>c(p))})}function lu(e,t,n,a,o=r=>r()){const r=[];for(const s of e)for(const i in s.components){let c=s.components[i];if(!(t!=="beforeRouteEnter"&&!s.instances[i]))if(jb(c)){const u=(c.__vccOpts||c)[t];u&&r.push(ua(u,n,a,s,i,o))}else{let l=c();r.push(()=>l.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${i}" at "${s.path}"`);const d=IN(u)?u.default:u;s.mods[i]=u,s.components[i]=d;const f=(d.__vccOpts||d)[t];return f&&ua(f,n,a,s,i,o)()}))}}return r}function U1(e){const t=Qe(Zp),n=Qe(zb),a=me(()=>{const c=re(e.to);return t.resolve(c)}),o=me(()=>{const{matched:c}=a.value,{length:l}=c,u=c[l-1],d=n.matched;if(!u||!d.length)return-1;const p=d.findIndex(Po.bind(null,u));if(p>-1)return p;const f=B1(c[l-2]);return l>1&&B1(u)===f&&d[d.length-1].path!==f?d.findIndex(Po.bind(null,c[l-2])):p}),r=me(()=>o.value>-1&&SM(n.params,a.value.params)),s=me(()=>o.value>-1&&o.value===n.matched.length-1&&Sb(n.params,a.value.params));function i(c={}){if(LM(c)){const l=t[re(e.replace)?"replace":"push"](re(e.to)).catch(mr);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>l),l}return Promise.resolve()}return{route:a,href:me(()=>a.value.href),isActive:r,isExactActive:s,navigate:i}}function AM(e){return e.length===1?e[0]:e}const TM=_e({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:U1,setup(e,{slots:t}){const n=Ln(U1(e)),{options:a}=Qe(Zp),o=me(()=>({[H1(e.activeClass,a.linkActiveClass,"router-link-active")]:n.isActive,[H1(e.exactActiveClass,a.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const r=t.default&&AM(t.default(n));return e.custom?r:Dt("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},r)}}}),OM=TM;function LM(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function SM(e,t){for(const n in t){const a=t[n],o=e[n];if(typeof a=="string"){if(a!==o)return!1}else if(!un(o)||o.length!==a.length||a.some((r,s)=>r!==o[s]))return!1}return!0}function B1(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const H1=(e,t,n)=>e??t??n,RM=_e({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const a=Qe(ld),o=me(()=>e.route||a.value),r=Qe(F1,0),s=me(()=>{let l=re(r);const{matched:u}=o.value;let d;for(;(d=u[l])&&!d.components;)l++;return l}),i=me(()=>o.value.matched[s.value]);Ua(F1,me(()=>s.value+1)),Ua(EM,i),Ua(ld,o);const c=xe();return Ve(()=>[c.value,i.value,e.name],([l,u,d],[p,f,h])=>{u&&(u.instances[d]=l,f&&f!==u&&l&&l===p&&(u.leaveGuards.size||(u.leaveGuards=f.leaveGuards),u.updateGuards.size||(u.updateGuards=f.updateGuards))),l&&u&&(!f||!Po(u,f)||!p)&&(u.enterCallbacks[d]||[]).forEach(v=>v(l))},{flush:"post"}),()=>{const l=o.value,u=e.name,d=i.value,p=d&&d.components[u];if(!p)return q1(n.default,{Component:p,route:l});const f=d.props[u],h=f?f===!0?l.params:typeof f=="function"?f(l):f:null,_=Dt(p,He({},h,t,{onVnodeUnmounted:m=>{m.component.isUnmounted&&(d.instances[u]=null)},ref:c}));return q1(n.default,{Component:_,route:l})||_}}});function q1(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const IM=RM;function CM(e){const t=vM(e.routes,e),n=e.parseQuery||wM,a=e.stringifyQuery||V1,o=e.history,r=Qo(),s=Qo(),i=Qo(),c=Hr(aa);let l=aa;mo&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=iu.bind(null,B=>""+B),d=iu.bind(null,HN),p=iu.bind(null,Nr);function f(B,ne){let ee,Z;return Ib(B)?(ee=t.getRecordMatcher(B),Z=ne):Z=B,t.addRoute(Z,ee)}function h(B){const ne=t.getRecordMatcher(B);ne&&t.removeRoute(ne)}function v(){return t.getRoutes().map(B=>B.record)}function _(B){return!!t.getRecordMatcher(B)}function m(B,ne){if(ne=He({},ne||c.value),typeof B=="string"){const D=cu(n,B,ne.path),K=t.resolve({path:D.path},ne),X=o.createHref(D.fullPath);return He(D,K,{params:p(K.params),hash:Nr(D.hash),redirectedFrom:void 0,href:X})}let ee;if(B.path!=null)ee=He({},B,{path:cu(n,B.path,ne.path).path});else{const D=He({},B.params);for(const K in D)D[K]==null&&delete D[K];ee=He({},B,{params:d(D)}),ne.params=d(ne.params)}const Z=t.resolve(ee,ne),fe=B.hash||"";Z.params=u(p(Z.params));const j=GN(a,He({},B,{hash:FN(fe),path:Z.path})),L=o.createHref(j);return He({fullPath:j,hash:fe,query:a===V1?jM(B.query):B.query||{}},Z,{redirectedFrom:void 0,href:L})}function y(B){return typeof B=="string"?cu(n,B,c.value.path):He({},B)}function k(B,ne){if(l!==B)return xo(8,{from:ne,to:B})}function b(B){return T(B)}function O(B){return b(He(y(B),{replace:!0}))}function A(B){const ne=B.matched[B.matched.length-1];if(ne&&ne.redirect){const{redirect:ee}=ne;let Z=typeof ee=="function"?ee(B):ee;return typeof Z=="string"&&(Z=Z.includes("?")||Z.includes("#")?Z=y(Z):{path:Z},Z.params={}),He({query:B.query,hash:B.hash,params:Z.path!=null?{}:B.params},Z)}}function T(B,ne){const ee=l=m(B),Z=c.value,fe=B.state,j=B.force,L=B.replace===!0,D=A(ee);if(D)return T(He(y(D),{state:typeof D=="object"?He({},fe,D.state):fe,force:j,replace:L}),ne||ee);const K=ee;K.redirectedFrom=ne;let X;return!j&&KN(a,Z,ee)&&(X=xo(16,{to:K,from:Z}),ue(Z,Z,!0,!1)),(X?Promise.resolve(X):S(K,Z)).catch(Y=>zn(Y)?zn(Y,2)?Y:ie(Y):V(Y,K,Z)).then(Y=>{if(Y){if(zn(Y,2))return T(He({replace:L},y(Y.to),{state:typeof Y.to=="object"?He({},fe,Y.to.state):fe,force:j}),ne||K)}else Y=R(K,Z,!0,L,fe);return I(K,Z,Y),Y})}function C(B,ne){const ee=k(B,ne);return ee?Promise.reject(ee):Promise.resolve()}function P(B){const ne=Ee.values().next().value;return ne&&typeof ne.runWithContext=="function"?ne.runWithContext(B):B()}function S(B,ne){let ee;const[Z,fe,j]=PM(B,ne);ee=lu(Z.reverse(),"beforeRouteLeave",B,ne);for(const D of Z)D.leaveGuards.forEach(K=>{ee.push(ua(K,B,ne))});const L=C.bind(null,B,ne);return ee.push(L),Le(ee).then(()=>{ee=[];for(const D of r.list())ee.push(ua(D,B,ne));return ee.push(L),Le(ee)}).then(()=>{ee=lu(fe,"beforeRouteUpdate",B,ne);for(const D of fe)D.updateGuards.forEach(K=>{ee.push(ua(K,B,ne))});return ee.push(L),Le(ee)}).then(()=>{ee=[];for(const D of j)if(D.beforeEnter)if(un(D.beforeEnter))for(const K of D.beforeEnter)ee.push(ua(K,B,ne));else ee.push(ua(D.beforeEnter,B,ne));return ee.push(L),Le(ee)}).then(()=>(B.matched.forEach(D=>D.enterCallbacks={}),ee=lu(j,"beforeRouteEnter",B,ne,P),ee.push(L),Le(ee))).then(()=>{ee=[];for(const D of s.list())ee.push(ua(D,B,ne));return ee.push(L),Le(ee)}).catch(D=>zn(D,8)?D:Promise.reject(D))}function I(B,ne,ee){i.list().forEach(Z=>P(()=>Z(B,ne,ee)))}function R(B,ne,ee,Z,fe){const j=k(B,ne);if(j)return j;const L=ne===aa,D=mo?history.state:{};ee&&(Z||L?o.replace(B.fullPath,He({scroll:L&&D&&D.scroll},fe)):o.push(B.fullPath,fe)),c.value=B,ue(B,ne,ee,L),ie()}let F;function $(){F||(F=o.listen((B,ne,ee)=>{if(!Ce.listening)return;const Z=m(B),fe=A(Z);if(fe){T(He(fe,{replace:!0,force:!0}),Z).catch(mr);return}l=Z;const j=c.value;mo&&nM(I1(j.fullPath,ee.delta),ac()),S(Z,j).catch(L=>zn(L,12)?L:zn(L,2)?(T(He(y(L.to),{force:!0}),Z).then(D=>{zn(D,20)&&!ee.delta&&ee.type===Mr.pop&&o.go(-1,!1)}).catch(mr),Promise.reject()):(ee.delta&&o.go(-ee.delta,!1),V(L,Z,j))).then(L=>{L=L||R(Z,j,!1),L&&(ee.delta&&!zn(L,8)?o.go(-ee.delta,!1):ee.type===Mr.pop&&zn(L,20)&&o.go(-1,!1)),I(Z,j,L)}).catch(mr)}))}let H=Qo(),G=Qo(),Q;function V(B,ne,ee){ie(B);const Z=G.list();return Z.length?Z.forEach(fe=>fe(B,ne,ee)):console.error(B),Promise.reject(B)}function oe(){return Q&&c.value!==aa?Promise.resolve():new Promise((B,ne)=>{H.add([B,ne])})}function ie(B){return Q||(Q=!B,$(),H.list().forEach(([ne,ee])=>B?ee(B):ne()),H.reset()),B}function ue(B,ne,ee,Z){const{scrollBehavior:fe}=e;if(!mo||!fe)return Promise.resolve();const j=!ee&&aM(I1(B.fullPath,0))||(Z||!ee)&&history.state&&history.state.scroll||null;return qn().then(()=>fe(B,ne,j)).then(L=>L&&tM(L)).catch(L=>V(L,B,ne))}const pe=B=>o.go(B);let ke;const Ee=new Set,Ce={currentRoute:c,listening:!0,addRoute:f,removeRoute:h,clearRoutes:t.clearRoutes,hasRoute:_,getRoutes:v,resolve:m,options:e,push:b,replace:O,go:pe,back:()=>pe(-1),forward:()=>pe(1),beforeEach:r.add,beforeResolve:s.add,afterEach:i.add,onError:G.add,isReady:oe,install(B){const ne=this;B.component("RouterLink",OM),B.component("RouterView",IM),B.config.globalProperties.$router=ne,Object.defineProperty(B.config.globalProperties,"$route",{enumerable:!0,get:()=>re(c)}),mo&&!ke&&c.value===aa&&(ke=!0,b(o.location).catch(fe=>{}));const ee={};for(const fe in aa)Object.defineProperty(ee,fe,{get:()=>c.value[fe],enumerable:!0});B.provide(Zp,ne),B.provide(zb,ov(ee)),B.provide(ld,c);const Z=B.unmount;Ee.add(B),B.unmount=function(){Ee.delete(B),Ee.size<1&&(l=aa,F&&F(),F=null,c.value=aa,ke=!1,Q=!1),Z()}}};function Le(B){return B.reduce((ne,ee)=>ne.then(()=>P(ee)),Promise.resolve())}return Ce}function PM(e,t){const n=[],a=[],o=[],r=Math.max(t.matched.length,e.matched.length);for(let s=0;s<r;s++){const i=t.matched[s];i&&(e.matched.find(l=>Po(l,i))?a.push(i):n.push(i));const c=e.matched[s];c&&(t.matched.find(l=>Po(l,c))||o.push(c))}return[n,a,o]}const RK="index",xM="auth-login",zM="auth-callback",Db="site-index",DM="chatgpt-conversation",ud="chatgpt-conversation-new",NM="deepseek-conversation",W1="deepseek-conversation-new",MM="grok-conversation",G1="grok-conversation-new",$M="midjourney-index",VM="qrart-index",FM="luma-index",IK="luma-history",UM="pika-index",BM="kling-index",CK="kling-history",HM="pixverse-index",PK="pixverse-history",qM="flux-index",WM="hailuo-index",xK="hailuo-history",GM="headshots-index",KM="suno-index",zK="suno-history",YM="profile-index",XM="console-root",JM="console-order-list",ZM="console-order-detail",K1="console-application-list",QM="console-application-extra",e$="console-application-subscribe",t$="distribution-index",n$="distribution-history",a$="distribution-invitees",o$="console-usage-list",r$={path:"/auth",component:()=>g(()=>import("./Auth-DFCqgfNB.js"),__vite__mapDeps([0,1])),children:[{path:"login",name:xM,component:()=>g(()=>import("./Login-BbepVhPQ.js"),[])},{path:"callback",name:zM,component:()=>g(()=>import("./Callback-B0JrNpSn.js"),__vite__mapDeps([2,3]))}]},s$={path:"/console",meta:{auth:!0},component:()=>g(()=>import("./Console-fJr1b43t.js"),__vite__mapDeps([4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36])),children:[{path:"",name:XM,redirect:{name:K1}},{path:"orders",name:JM,component:()=>g(()=>import("./List-DEUp2yY1.js"),__vite__mapDeps([37,38,39,40,11,12,13,14,41,16,25,23,9,18,19,30,42,34,43,44,6,45,46,47,48,8,10,49,24,50,51]))},{path:"orders/:id",name:ZM,component:()=>g(()=>import("./Detail-CGOj2fXD.js"),__vite__mapDeps([52,38,46,48,13,47,44,6,11,12,45,53,31,54,8,9,10,55]))},{path:"applications",name:K1,component:()=>g(()=>import("./List-DTK31RWT.js"),__vite__mapDeps([56,57,39,40,11,12,13,14,41,16,25,23,9,18,19,30,42,34,43,44,6,45,48,49,24,50,51,8,10]))},{path:"applications/:id/extra",name:QM,component:()=>g(()=>import("./Extra-BubcmqBu.js"),__vite__mapDeps([58,59,47,38,60,12,9,31,8,10,28,16,13,22,23,24,48,54,26,61]))},{path:"applications/:id/subscribe",name:e$,component:()=>g(()=>import("./Subscribe-rRcCADDR.js"),__vite__mapDeps([62,59,38,47,6,8,9,10,48,13,54,26,63]))},{path:"usages",name:o$,component:()=>g(()=>import("./List-rEjXJr-J.js"),__vite__mapDeps([64,57,39,40,11,12,13,14,41,16,25,23,9,18,19,30,42,34,43,44,6,45,48,49,24,50,51,65]))}]},i$={path:"/grok",meta:{modelGroup:sy,appName:"chat"},component:()=>g(()=>import("./Main-D41A7vWA.js"),__vite__mapDeps([66,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,67,68,51,69])),children:[{path:"",redirect:{name:G1}},{path:"conversations",name:G1,component:()=>g(()=>import("./Conversation-Dnw7JAQ6.js"),__vite__mapDeps([70,44,6,11,12,13,45,71,21,72,18,19,9,29,30,8,10,53,73,74,20,22,23,24,25,26,7,14,15,16,54,75,76]))},{path:"conversations/:id",name:MM,component:()=>g(()=>import("./Conversation-Dnw7JAQ6.js"),__vite__mapDeps([70,44,6,11,12,13,45,71,21,72,18,19,9,29,30,8,10,53,73,74,20,22,23,24,25,26,7,14,15,16,54,75,76]))}]},c$={path:"/deepseek",meta:{modelGroup:ry,appName:"chat"},component:()=>g(()=>import("./Main-D41A7vWA.js"),__vite__mapDeps([66,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,67,68,51,69])),children:[{path:"",redirect:{name:W1}},{path:"conversations/:id",name:NM,component:()=>g(()=>import("./Conversation-Dnw7JAQ6.js"),__vite__mapDeps([70,44,6,11,12,13,45,71,21,72,18,19,9,29,30,8,10,53,73,74,20,22,23,24,25,26,7,14,15,16,54,75,76]))},{path:"conversations",name:W1,component:()=>g(()=>import("./Conversation-Dnw7JAQ6.js"),__vite__mapDeps([70,44,6,11,12,13,45,71,21,72,18,19,9,29,30,8,10,53,73,74,20,22,23,24,25,26,7,14,15,16,54,75,76]))}]},l$={path:"/chatgpt",meta:{modelGroup:Dp,appName:"chat"},component:()=>g(()=>import("./Main-D41A7vWA.js"),__vite__mapDeps([66,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,67,68,51,69])),children:[{path:"",redirect:{name:ud}},{path:"conversations",name:ud,component:()=>g(()=>import("./Conversation-Dnw7JAQ6.js"),__vite__mapDeps([70,44,6,11,12,13,45,71,21,72,18,19,9,29,30,8,10,53,73,74,20,22,23,24,25,26,7,14,15,16,54,75,76]))},{path:"conversations/:id",name:DM,component:()=>g(()=>import("./Conversation-Dnw7JAQ6.js"),__vite__mapDeps([70,44,6,11,12,13,45,71,21,72,18,19,9,29,30,8,10,53,73,74,20,22,23,24,25,26,7,14,15,16,54,75,76]))}]},u$={path:"/midjourney",meta:{auth:!0,appName:"midjourney"},component:()=>g(()=>import("./Main-D41A7vWA.js"),__vite__mapDeps([66,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,67,68,51,69])),children:[{path:"",name:$M,component:()=>g(()=>import("./Index-DBKt6O4-.js"),__vite__mapDeps([77,6,8,9,10,75,32,12,40,11,13,14,41,16,25,23,18,19,30,42,34,78,79,73,21,74,20,22,24,26,80,29,60,81,50,7,15,44,45,82,83,84,85,86,87,53,88,54,89,90,91]))}]},d$={path:"/distribution",meta:{auth:!0},component:()=>g(()=>import("./Main-D41A7vWA.js"),__vite__mapDeps([66,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,67,68,51,69])),children:[{path:"",name:t$,component:()=>g(()=>import("./Index-BsB2cili.js"),__vite__mapDeps([92,44,6,11,12,13,45,93,47,54,49,14,23,24,50,42,25,16,30,51,9,34,48,31,8,10,21,94]))},{path:"history",name:n$,component:()=>g(()=>import("./History-BCpARdQ1.js"),__vite__mapDeps([95,39,40,11,12,13,14,41,16,25,23,9,18,19,30,42,34,43,44,6,45,93,47,48,49,24,50,51,96]))},{path:"invitees",name:a$,component:()=>g(()=>import("./Invitees-ik60h66X.js"),__vite__mapDeps([97,39,40,11,12,13,14,41,16,25,23,9,18,19,30,42,34,43,44,6,45,48,49,24,50,51,98]))}]},p$={path:"/qrart",meta:{auth:!0,appName:"qrart"},component:()=>g(()=>import("./Main-D41A7vWA.js"),__vite__mapDeps([66,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,67,68,51,69])),children:[{path:"",name:VM,component:()=>g(()=>import("./Index-C4BWNGR0.js"),__vite__mapDeps([99,6,8,9,10,75,40,11,12,13,14,41,16,25,23,18,19,30,42,34,78,79,80,32,29,60,20,21,22,24,26,67,68,44,45,53,54,100]))}]},f$={path:"/luma",meta:{auth:!0,appName:"luma"},component:()=>g(()=>import("./Main-D41A7vWA.js"),__vite__mapDeps([66,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,67,68,51,69])),children:[{path:"",name:FM,component:()=>g(()=>import("./Index-SRaIZMrX.js"),__vite__mapDeps([101,6,8,9,10,75,78,11,12,13,79,32,73,21,74,20,22,23,24,25,26,71,72,18,19,84,85,86,87,44,45,53,29,30,88,54,89,90,102]))}]},m$={path:"/pika",meta:{auth:!0,appName:"pika"},component:()=>g(()=>import("./Main-D41A7vWA.js"),__vite__mapDeps([66,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,67,68,51,69])),children:[{path:"",name:UM,component:()=>g(()=>import("./Index-D05b0U2c.js"),__vite__mapDeps([103,6,8,9,10,75,78,11,12,13,79,32,40,14,41,16,25,23,18,19,30,42,34,60,20,21,22,24,26,44,45,85,86,53,29,54,104]))}]},h$={path:"/kling",meta:{auth:!0,appName:"kling"},component:()=>g(()=>import("./Main-D41A7vWA.js"),__vite__mapDeps([66,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,67,68,51,69])),children:[{path:"",name:BM,component:()=>g(()=>import("./Index-CeLOiR4M.js"),__vite__mapDeps([105,6,8,9,10,75,40,11,12,13,14,41,16,25,23,18,19,30,42,34,78,79,73,21,74,20,22,24,26,80,44,45,84,85,86,87,53,29,88,54,89,90,106]))}]},g$={path:"/pixverse",meta:{auth:!0,appName:"pixverse"},component:()=>g(()=>import("./Main-D41A7vWA.js"),__vite__mapDeps([66,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,67,68,51,69])),children:[{path:"",name:HM,component:()=>g(()=>import("./Index-CcAzOuxW.js"),__vite__mapDeps([107,6,8,9,10,75,40,11,12,13,14,41,16,25,23,18,19,30,42,34,78,79,80,73,21,74,20,22,24,26,44,45,84,85,86,87,53,29,88,54,89,90,108]))}]},v$={path:"/flux",meta:{auth:!0,appName:"flux"},component:()=>g(()=>import("./Main-D41A7vWA.js"),__vite__mapDeps([66,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,67,68,51,69])),children:[{path:"",name:qM,component:()=>g(()=>import("./Index-B-45vm86.js"),__vite__mapDeps([109,6,8,9,10,75,40,11,12,13,14,41,16,25,23,18,19,30,42,34,78,79,80,44,45,82,83,53,29,88,54,89,90,26,110]))}]},_$={path:"/hailuo",meta:{auth:!0,appName:"hailuo"},component:()=>g(()=>import("./Main-D41A7vWA.js"),__vite__mapDeps([66,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,67,68,51,69])),children:[{path:"",name:WM,component:()=>g(()=>import("./Index-WrLSBdjQ.js"),__vite__mapDeps([111,6,8,9,10,75,40,11,12,13,14,41,16,25,23,18,19,30,42,34,78,79,73,21,74,20,22,24,26,44,45,84,85,86,87,53,29,88,54,89,90,112]))}]},y$={path:"/headshots",meta:{auth:!0,appName:"headshots"},component:()=>g(()=>import("./Main-D41A7vWA.js"),__vite__mapDeps([66,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,67,68,51,69])),children:[{path:"",name:GM,component:()=>g(()=>import("./Index-CMyXYM3m.js"),__vite__mapDeps([113,6,8,9,10,75,78,11,12,13,79,20,21,22,23,24,25,26,60,29,30,19,81,41,50,67,68,44,45,53,54,114]))}]},b$={path:"/suno",meta:{auth:!0,appName:"suno"},component:()=>g(()=>import("./Main-D41A7vWA.js"),__vite__mapDeps([66,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,67,68,51,69])),children:[{path:"",name:KM,component:()=>g(()=>import("./Index-CD4CSpxg.js"),__vite__mapDeps([115,6,8,9,10,75,32,12,40,11,13,14,41,16,25,23,18,19,30,42,34,78,79,20,21,22,24,26,80,29,7,15,116,90,54,117]))}]},k$={path:"/site",component:()=>g(()=>import("./Main-D41A7vWA.js"),__vite__mapDeps([66,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,67,68,51,69])),children:[{path:"",name:Db,component:()=>g(()=>import("./Index-CP0PFATQ.js"),__vite__mapDeps([118,17,8,9,10,18,13,12,19,6,20,21,22,23,24,25,26,27,28,16,32,48,29,30,31,119]))}]},w$={path:"/profile",component:()=>g(()=>import("./Main-D41A7vWA.js"),__vite__mapDeps([66,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,67,68,51,69])),children:[{path:"",name:YM,component:()=>g(()=>import("./Index-zY2gWoJb.js"),__vite__mapDeps([120,6,33,13,11,12,10,34,116,15,29,30,19,121]))}]},j$=[{path:"/",redirect:{name:ud}},s$,r$,l$,i$,c$,p$,f$,m$,h$,g$,v$,_$,y$,b$,u$,d$,k$,w$],Nb=CM({history:iM(),routes:j$});Nb.beforeEach(async(e,t,n)=>{const a=gi(On("LOCALE")||w_);return await CO(a),n()});const E$=_e({name:"AuthPanel",components:{ElDialog:M8,QrCode:RN},data(){return{showQR:!1,qrLink:""}},computed:{iframeUrl(){return`${vi()}/auth/login?inviter_id=${this.inviterId}`},inviterId(){return this.$store?.state?.site?.distribution?.force_inviter_id?this.$store?.state?.site?.distribution?.force_inviter_id:this.$route.query.inviter_id?.toString()||On("INVITER_ID")||this.$store?.state?.site?.distribution?.default_inviter_id},authenticated(){return!!this.$store.state.token.access}},mounted(){window.addEventListener("message",async e=>{if(e.origin===vi()){if(console.debug("received from child page",e),e.data.name==="login"){const t=e.data.data,n={access:t.access_token,refresh:t.refresh_token,expiration:t.expires_in};await this.$store.dispatch("setToken",n),await this.$store.dispatch("getUser"),this.$store.state.site?.origin||(await this.$store.dispatch("initializeSite"),await this.$router.push({name:Db})),window.location.reload()}if(e.data.name==="show_qr"){const t=e.data.data;this.qrLink=t.qrLink,this.showQR=!0}}})}}),Mb=(e,t)=>{const n=e.__vccOpts||e;for(const[a,o]of t)n[a]=o;return n},A$=["src"];function T$(e,t,n,a,o,r){const s=ho("el-dialog"),i=ho("qr-code");return ye(),Oe(ht,null,[Xe(s,{"model-value":!e.authenticated,"modal-class":"dialog",width:"400px","show-close":!1,"close-on-press-escape":!1,"close-on-click-modal":!1},{default:vt(()=>[je("iframe",{width:"360",height:"560",src:e.iframeUrl,frameborder:"0"},null,8,A$)]),_:1},8,["model-value"]),Xe(s,{modelValue:e.showQR,"onUpdate:modelValue":t[0]||(t[0]=c=>e.showQR=c),width:"400px","show-close":!0},{default:vt(()=>[e.qrLink?(ye(),Nt(i,{key:0,value:e.qrLink,width:230,height:230,class:"qrcode",type:"image/jpeg",color:{dark:"#000000ff",light:"#ffffffff"}},null,8,["value"])):va("",!0)]),_:1},8,["modelValue"])],64)}const O$=Mb(E$,[["render",T$],["__scopeId","data-v-305ca15f"]]),L$={en:()=>g(()=>Promise.resolve().then(()=>I6),void 0),de:()=>g(()=>import("./de-BZu7ZZ9y.js"),[]),pt:()=>g(()=>import("./pt-iBE8V_rF.js"),[]),es:()=>g(()=>import("./es-Idilhmtq.js"),[]),fr:()=>g(()=>import("./fr-fyTGkfid.js"),[]),"zh-CN":()=>g(()=>import("./zh-cn-CnyULPxw.js"),[]),"zh-TW":()=>g(()=>import("./zh-tw-ZQmLUxJy.js"),[]),it:()=>g(()=>import("./it-CLf6lrMi.js"),[]),ko:()=>g(()=>import("./ko-DUrUYy0R.js"),[]),ja:()=>g(()=>import("./ja-DFyNu3tl.js"),[]),ru:()=>g(()=>import("./ru-a9O4dLvt.js"),[]),pl:()=>g(()=>import("./pl-By8ttK5W.js"),[]),fi:()=>g(()=>import("./fi-BhhlDzr_.js"),[]),sv:()=>g(()=>import("./sv-CiSSmJ4h.js"),[]),el:()=>g(()=>import("./el-DJ93mLwP.js"),[]),uk:()=>g(()=>import("./uk-Ci2KIGcW.js"),[]),ar:()=>g(()=>import("./ar-D1hnTQ2h.js"),[]),sr:()=>g(()=>import("./sr-BuqPpavQ.js"),[])},S$=_e({name:"App",components:{ElConfigProvider:y8,ElTag:h8,AuthPanel:O$},data(){return{isTest:Yr,epLocale:null}},computed:{authPopup(){return this.$store.state.auth.flow==="popup"&&this.$store.state.auth.visible},currentLocale(){return gi(this.$i18n.locale)}},watch:{currentLocale:{immediate:!0,handler(){this.loadElementPlusLocale()}}},mounted(){const e=!!this.$store.state.token.access&&!!this.$store.state.user?.id;console.debug("App mounted, authenticated:",e),e||(this.$store.dispatch("logout"),this.$store.dispatch("login"))},methods:{async loadElementPlusLocale(){const e=this.currentLocale;console.debug(`[i18n] Loading Element Plus locale for: ${e}`);const t=L$[e];if(!t){console.warn(`[i18n] No Element Plus locale found for: ${e}`);return}try{const n=await t();this.epLocale=n.default,console.debug(`[i18n] Loaded Element Plus locale: ${e}`)}catch(n){console.error(`[i18n] Failed to load Element Plus locale for: ${e}`,n)}}}});function R$(e,t,n,a,o,r){const s=ho("auth-panel"),i=ho("router-view"),c=ho("el-tag"),l=ho("el-config-provider");return ye(),Nt(l,{locale:e.epLocale},{default:vt(()=>[e.authPopup?(ye(),Nt(s,{key:0})):va("",!0),Xe(i),e.isTest?(ye(),Nt(c,{key:1,size:"large",class:"fixed bottom-4 right-4 z-50",type:"warning"},{default:vt(()=>[Gv(Ud(e.$t("index.button.testEnv")),1)]),_:1})):va("",!0)]),_:1},8,["locale"])}const I$=Mb(S$,[["render",R$]]),C$={install:(e,t)=>{e.config.globalProperties.$dayjs={format(n,a){return n?l8(n).format(a||t.formatString):""}}}};/*!
|
|
67
|
+
*/const mo=typeof document<"u";function jb(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function IN(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&jb(e.default)}const He=Object.assign;function iu(e,t){const n={};for(const a in t){const o=t[a];n[a]=un(o)?o.map(e):e(o)}return n}const mr=()=>{},un=Array.isArray,Eb=/#/g,CN=/&/g,PN=/\//g,xN=/=/g,zN=/\?/g,Ab=/\+/g,DN=/%5B/g,NN=/%5D/g,Tb=/%5E/g,MN=/%60/g,Ob=/%7B/g,$N=/%7C/g,Lb=/%7D/g,VN=/%20/g;function Jp(e){return encodeURI(""+e).replace($N,"|").replace(DN,"[").replace(NN,"]")}function FN(e){return Jp(e).replace(Ob,"{").replace(Lb,"}").replace(Tb,"^")}function id(e){return Jp(e).replace(Ab,"%2B").replace(VN,"+").replace(Eb,"%23").replace(CN,"%26").replace(MN,"`").replace(Ob,"{").replace(Lb,"}").replace(Tb,"^")}function UN(e){return id(e).replace(xN,"%3D")}function BN(e){return Jp(e).replace(Eb,"%23").replace(zN,"%3F")}function HN(e){return e==null?"":BN(e).replace(PN,"%2F")}function Nr(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const qN=/\/$/,WN=e=>e.replace(qN,"");function cu(e,t,n="/"){let a,o={},r="",s="";const i=t.indexOf("#");let c=t.indexOf("?");return i<c&&i>=0&&(c=-1),c>-1&&(a=t.slice(0,c),r=t.slice(c+1,i>-1?i:t.length),o=e(r)),i>-1&&(a=a||t.slice(0,i),s=t.slice(i,t.length)),a=XN(a??t,n),{fullPath:a+(r&&"?")+r+s,path:a,query:o,hash:Nr(s)}}function GN(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function S1(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function KN(e,t,n){const a=t.matched.length-1,o=n.matched.length-1;return a>-1&&a===o&&Po(t.matched[a],n.matched[o])&&Sb(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Po(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Sb(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!YN(e[n],t[n]))return!1;return!0}function YN(e,t){return un(e)?R1(e,t):un(t)?R1(t,e):e===t}function R1(e,t){return un(t)?e.length===t.length&&e.every((n,a)=>n===t[a]):e.length===1&&e[0]===t}function XN(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),a=e.split("/"),o=a[a.length-1];(o===".."||o===".")&&a.push("");let r=n.length-1,s,i;for(s=0;s<a.length;s++)if(i=a[s],i!==".")if(i==="..")r>1&&r--;else break;return n.slice(0,r).join("/")+"/"+a.slice(s).join("/")}const aa={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Mr;(function(e){e.pop="pop",e.push="push"})(Mr||(Mr={}));var hr;(function(e){e.back="back",e.forward="forward",e.unknown=""})(hr||(hr={}));function JN(e){if(!e)if(mo){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),WN(e)}const ZN=/^[^#]+#/;function QN(e,t){return e.replace(ZN,"#")+t}function eM(e,t){const n=document.documentElement.getBoundingClientRect(),a=e.getBoundingClientRect();return{behavior:t.behavior,left:a.left-n.left-(t.left||0),top:a.top-n.top-(t.top||0)}}const ac=()=>({left:window.scrollX,top:window.scrollY});function tM(e){let t;if("el"in e){const n=e.el,a=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?a?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=eM(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function I1(e,t){return(history.state?history.state.position-t:-1)+e}const cd=new Map;function nM(e,t){cd.set(e,t)}function aM(e){const t=cd.get(e);return cd.delete(e),t}let oM=()=>location.protocol+"//"+location.host;function Rb(e,t){const{pathname:n,search:a,hash:o}=t,r=e.indexOf("#");if(r>-1){let i=o.includes(e.slice(r))?e.slice(r).length:1,c=o.slice(i);return c[0]!=="/"&&(c="/"+c),S1(c,"")}return S1(n,e)+a+o}function rM(e,t,n,a){let o=[],r=[],s=null;const i=({state:p})=>{const f=Rb(e,location),h=n.value,v=t.value;let _=0;if(p){if(n.value=f,t.value=p,s&&s===h){s=null;return}_=v?p.position-v.position:0}else a(f);o.forEach(m=>{m(n.value,h,{delta:_,type:Mr.pop,direction:_?_>0?hr.forward:hr.back:hr.unknown})})};function c(){s=n.value}function l(p){o.push(p);const f=()=>{const h=o.indexOf(p);h>-1&&o.splice(h,1)};return r.push(f),f}function u(){const{history:p}=window;p.state&&p.replaceState(He({},p.state,{scroll:ac()}),"")}function d(){for(const p of r)p();r=[],window.removeEventListener("popstate",i),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",i),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:c,listen:l,destroy:d}}function C1(e,t,n,a=!1,o=!1){return{back:e,current:t,forward:n,replaced:a,position:window.history.length,scroll:o?ac():null}}function sM(e){const{history:t,location:n}=window,a={value:Rb(e,n)},o={value:t.state};o.value||r(a.value,{back:null,current:a.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function r(c,l,u){const d=e.indexOf("#"),p=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+c:oM()+e+c;try{t[u?"replaceState":"pushState"](l,"",p),o.value=l}catch(f){console.error(f),n[u?"replace":"assign"](p)}}function s(c,l){const u=He({},t.state,C1(o.value.back,c,o.value.forward,!0),l,{position:o.value.position});r(c,u,!0),a.value=c}function i(c,l){const u=He({},o.value,t.state,{forward:c,scroll:ac()});r(u.current,u,!0);const d=He({},C1(a.value,c,null),{position:u.position+1},l);r(c,d,!1),a.value=c}return{location:a,state:o,push:i,replace:s}}function iM(e){e=JN(e);const t=sM(e),n=rM(e,t.state,t.location,t.replace);function a(r,s=!0){s||n.pauseListeners(),history.go(r)}const o=He({location:"",base:e,go:a,createHref:QN.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function cM(e){return typeof e=="string"||e&&typeof e=="object"}function Ib(e){return typeof e=="string"||typeof e=="symbol"}const Cb=Symbol("");var P1;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(P1||(P1={}));function xo(e,t){return He(new Error,{type:e,[Cb]:!0},t)}function zn(e,t){return e instanceof Error&&Cb in e&&(t==null||!!(e.type&t))}const x1="[^/]+?",lM={sensitive:!1,strict:!1,start:!0,end:!0},uM=/[.+*?^${}()[\]/\\]/g;function dM(e,t){const n=He({},lM,t),a=[];let o=n.start?"^":"";const r=[];for(const l of e){const u=l.length?[]:[90];n.strict&&!l.length&&(o+="/");for(let d=0;d<l.length;d++){const p=l[d];let f=40+(n.sensitive?.25:0);if(p.type===0)d||(o+="/"),o+=p.value.replace(uM,"\\$&"),f+=40;else if(p.type===1){const{value:h,repeatable:v,optional:_,regexp:m}=p;r.push({name:h,repeatable:v,optional:_});const y=m||x1;if(y!==x1){f+=10;try{new RegExp(`(${y})`)}catch(b){throw new Error(`Invalid custom RegExp for param "${h}" (${y}): `+b.message)}}let k=v?`((?:${y})(?:/(?:${y}))*)`:`(${y})`;d||(k=_&&l.length<2?`(?:/${k})`:"/"+k),_&&(k+="?"),o+=k,f+=20,_&&(f+=-8),v&&(f+=-20),y===".*"&&(f+=-50)}u.push(f)}a.push(u)}if(n.strict&&n.end){const l=a.length-1;a[l][a[l].length-1]+=.7000000000000001}n.strict||(o+="/?"),n.end?o+="$":n.strict&&!o.endsWith("/")&&(o+="(?:/|$)");const s=new RegExp(o,n.sensitive?"":"i");function i(l){const u=l.match(s),d={};if(!u)return null;for(let p=1;p<u.length;p++){const f=u[p]||"",h=r[p-1];d[h.name]=f&&h.repeatable?f.split("/"):f}return d}function c(l){let u="",d=!1;for(const p of e){(!d||!u.endsWith("/"))&&(u+="/"),d=!1;for(const f of p)if(f.type===0)u+=f.value;else if(f.type===1){const{value:h,repeatable:v,optional:_}=f,m=h in l?l[h]:"";if(un(m)&&!v)throw new Error(`Provided param "${h}" is an array but it is not repeatable (* or + modifiers)`);const y=un(m)?m.join("/"):m;if(!y)if(_)p.length<2&&(u.endsWith("/")?u=u.slice(0,-1):d=!0);else throw new Error(`Missing required param "${h}"`);u+=y}}return u||"/"}return{re:s,score:a,keys:r,parse:i,stringify:c}}function pM(e,t){let n=0;for(;n<e.length&&n<t.length;){const a=t[n]-e[n];if(a)return a;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function Pb(e,t){let n=0;const a=e.score,o=t.score;for(;n<a.length&&n<o.length;){const r=pM(a[n],o[n]);if(r)return r;n++}if(Math.abs(o.length-a.length)===1){if(z1(a))return 1;if(z1(o))return-1}return o.length-a.length}function z1(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const fM={type:0,value:""},mM=/[a-zA-Z0-9_]/;function hM(e){if(!e)return[[]];if(e==="/")return[[fM]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(f){throw new Error(`ERR (${n})/"${l}": ${f}`)}let n=0,a=n;const o=[];let r;function s(){r&&o.push(r),r=[]}let i=0,c,l="",u="";function d(){l&&(n===0?r.push({type:0,value:l}):n===1||n===2||n===3?(r.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),r.push({type:1,value:l,regexp:u,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),l="")}function p(){l+=c}for(;i<e.length;){if(c=e[i++],c==="\\"&&n!==2){a=n,n=4;continue}switch(n){case 0:c==="/"?(l&&d(),s()):c===":"?(d(),n=1):p();break;case 4:p(),n=a;break;case 1:c==="("?n=2:mM.test(c)?p():(d(),n=0,c!=="*"&&c!=="?"&&c!=="+"&&i--);break;case 2:c===")"?u[u.length-1]=="\\"?u=u.slice(0,-1)+c:n=3:u+=c;break;case 3:d(),n=0,c!=="*"&&c!=="?"&&c!=="+"&&i--,u="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${l}"`),d(),s(),o}function gM(e,t,n){const a=dM(hM(e.path),n),o=He(a,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function vM(e,t){const n=[],a=new Map;t=$1({strict:!1,end:!0,sensitive:!1},t);function o(d){return a.get(d)}function r(d,p,f){const h=!f,v=N1(d);v.aliasOf=f&&f.record;const _=$1(t,d),m=[v];if("alias"in d){const b=typeof d.alias=="string"?[d.alias]:d.alias;for(const O of b)m.push(N1(He({},v,{components:f?f.record.components:v.components,path:O,aliasOf:f?f.record:v})))}let y,k;for(const b of m){const{path:O}=b;if(p&&O[0]!=="/"){const A=p.record.path,T=A[A.length-1]==="/"?"":"/";b.path=p.record.path+(O&&T+O)}if(y=gM(b,p,_),f?f.alias.push(y):(k=k||y,k!==y&&k.alias.push(y),h&&d.name&&!M1(y)&&s(d.name)),xb(y)&&c(y),v.children){const A=v.children;for(let T=0;T<A.length;T++)r(A[T],y,f&&f.children[T])}f=f||y}return k?()=>{s(k)}:mr}function s(d){if(Ib(d)){const p=a.get(d);p&&(a.delete(d),n.splice(n.indexOf(p),1),p.children.forEach(s),p.alias.forEach(s))}else{const p=n.indexOf(d);p>-1&&(n.splice(p,1),d.record.name&&a.delete(d.record.name),d.children.forEach(s),d.alias.forEach(s))}}function i(){return n}function c(d){const p=bM(d,n);n.splice(p,0,d),d.record.name&&!M1(d)&&a.set(d.record.name,d)}function l(d,p){let f,h={},v,_;if("name"in d&&d.name){if(f=a.get(d.name),!f)throw xo(1,{location:d});_=f.record.name,h=He(D1(p.params,f.keys.filter(k=>!k.optional).concat(f.parent?f.parent.keys.filter(k=>k.optional):[]).map(k=>k.name)),d.params&&D1(d.params,f.keys.map(k=>k.name))),v=f.stringify(h)}else if(d.path!=null)v=d.path,f=n.find(k=>k.re.test(v)),f&&(h=f.parse(v),_=f.record.name);else{if(f=p.name?a.get(p.name):n.find(k=>k.re.test(p.path)),!f)throw xo(1,{location:d,currentLocation:p});_=f.record.name,h=He({},p.params,d.params),v=f.stringify(h)}const m=[];let y=f;for(;y;)m.unshift(y.record),y=y.parent;return{name:_,path:v,params:h,matched:m,meta:yM(m)}}e.forEach(d=>r(d));function u(){n.length=0,a.clear()}return{addRoute:r,resolve:l,removeRoute:s,clearRoutes:u,getRoutes:i,getRecordMatcher:o}}function D1(e,t){const n={};for(const a of t)a in e&&(n[a]=e[a]);return n}function N1(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:_M(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function _M(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const a in e.components)t[a]=typeof n=="object"?n[a]:n;return t}function M1(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function yM(e){return e.reduce((t,n)=>He(t,n.meta),{})}function $1(e,t){const n={};for(const a in e)n[a]=a in t?t[a]:e[a];return n}function bM(e,t){let n=0,a=t.length;for(;n!==a;){const r=n+a>>1;Pb(e,t[r])<0?a=r:n=r+1}const o=kM(e);return o&&(a=t.lastIndexOf(o,a-1)),a}function kM(e){let t=e;for(;t=t.parent;)if(xb(t)&&Pb(e,t)===0)return t}function xb({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function wM(e){const t={};if(e===""||e==="?")return t;const a=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;o<a.length;++o){const r=a[o].replace(Ab," "),s=r.indexOf("="),i=Nr(s<0?r:r.slice(0,s)),c=s<0?null:Nr(r.slice(s+1));if(i in t){let l=t[i];un(l)||(l=t[i]=[l]),l.push(c)}else t[i]=c}return t}function V1(e){let t="";for(let n in e){const a=e[n];if(n=UN(n),a==null){a!==void 0&&(t+=(t.length?"&":"")+n);continue}(un(a)?a.map(r=>r&&id(r)):[a&&id(a)]).forEach(r=>{r!==void 0&&(t+=(t.length?"&":"")+n,r!=null&&(t+="="+r))})}return t}function jM(e){const t={};for(const n in e){const a=e[n];a!==void 0&&(t[n]=un(a)?a.map(o=>o==null?null:""+o):a==null?a:""+a)}return t}const EM=Symbol(""),F1=Symbol(""),Zp=Symbol(""),zb=Symbol(""),ld=Symbol("");function Qo(){let e=[];function t(a){return e.push(a),()=>{const o=e.indexOf(a);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function ua(e,t,n,a,o,r=s=>s()){const s=a&&(a.enterCallbacks[o]=a.enterCallbacks[o]||[]);return()=>new Promise((i,c)=>{const l=p=>{p===!1?c(xo(4,{from:n,to:t})):p instanceof Error?c(p):cM(p)?c(xo(2,{from:t,to:p})):(s&&a.enterCallbacks[o]===s&&typeof p=="function"&&s.push(p),i())},u=r(()=>e.call(a&&a.instances[o],t,n,l));let d=Promise.resolve(u);e.length<3&&(d=d.then(l)),d.catch(p=>c(p))})}function lu(e,t,n,a,o=r=>r()){const r=[];for(const s of e)for(const i in s.components){let c=s.components[i];if(!(t!=="beforeRouteEnter"&&!s.instances[i]))if(jb(c)){const u=(c.__vccOpts||c)[t];u&&r.push(ua(u,n,a,s,i,o))}else{let l=c();r.push(()=>l.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${i}" at "${s.path}"`);const d=IN(u)?u.default:u;s.mods[i]=u,s.components[i]=d;const f=(d.__vccOpts||d)[t];return f&&ua(f,n,a,s,i,o)()}))}}return r}function U1(e){const t=Qe(Zp),n=Qe(zb),a=me(()=>{const c=re(e.to);return t.resolve(c)}),o=me(()=>{const{matched:c}=a.value,{length:l}=c,u=c[l-1],d=n.matched;if(!u||!d.length)return-1;const p=d.findIndex(Po.bind(null,u));if(p>-1)return p;const f=B1(c[l-2]);return l>1&&B1(u)===f&&d[d.length-1].path!==f?d.findIndex(Po.bind(null,c[l-2])):p}),r=me(()=>o.value>-1&&SM(n.params,a.value.params)),s=me(()=>o.value>-1&&o.value===n.matched.length-1&&Sb(n.params,a.value.params));function i(c={}){if(LM(c)){const l=t[re(e.replace)?"replace":"push"](re(e.to)).catch(mr);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>l),l}return Promise.resolve()}return{route:a,href:me(()=>a.value.href),isActive:r,isExactActive:s,navigate:i}}function AM(e){return e.length===1?e[0]:e}const TM=_e({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:U1,setup(e,{slots:t}){const n=Ln(U1(e)),{options:a}=Qe(Zp),o=me(()=>({[H1(e.activeClass,a.linkActiveClass,"router-link-active")]:n.isActive,[H1(e.exactActiveClass,a.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const r=t.default&&AM(t.default(n));return e.custom?r:Dt("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},r)}}}),OM=TM;function LM(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function SM(e,t){for(const n in t){const a=t[n],o=e[n];if(typeof a=="string"){if(a!==o)return!1}else if(!un(o)||o.length!==a.length||a.some((r,s)=>r!==o[s]))return!1}return!0}function B1(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const H1=(e,t,n)=>e??t??n,RM=_e({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const a=Qe(ld),o=me(()=>e.route||a.value),r=Qe(F1,0),s=me(()=>{let l=re(r);const{matched:u}=o.value;let d;for(;(d=u[l])&&!d.components;)l++;return l}),i=me(()=>o.value.matched[s.value]);Ua(F1,me(()=>s.value+1)),Ua(EM,i),Ua(ld,o);const c=xe();return Ve(()=>[c.value,i.value,e.name],([l,u,d],[p,f,h])=>{u&&(u.instances[d]=l,f&&f!==u&&l&&l===p&&(u.leaveGuards.size||(u.leaveGuards=f.leaveGuards),u.updateGuards.size||(u.updateGuards=f.updateGuards))),l&&u&&(!f||!Po(u,f)||!p)&&(u.enterCallbacks[d]||[]).forEach(v=>v(l))},{flush:"post"}),()=>{const l=o.value,u=e.name,d=i.value,p=d&&d.components[u];if(!p)return q1(n.default,{Component:p,route:l});const f=d.props[u],h=f?f===!0?l.params:typeof f=="function"?f(l):f:null,_=Dt(p,He({},h,t,{onVnodeUnmounted:m=>{m.component.isUnmounted&&(d.instances[u]=null)},ref:c}));return q1(n.default,{Component:_,route:l})||_}}});function q1(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const IM=RM;function CM(e){const t=vM(e.routes,e),n=e.parseQuery||wM,a=e.stringifyQuery||V1,o=e.history,r=Qo(),s=Qo(),i=Qo(),c=Hr(aa);let l=aa;mo&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=iu.bind(null,B=>""+B),d=iu.bind(null,HN),p=iu.bind(null,Nr);function f(B,ne){let ee,Z;return Ib(B)?(ee=t.getRecordMatcher(B),Z=ne):Z=B,t.addRoute(Z,ee)}function h(B){const ne=t.getRecordMatcher(B);ne&&t.removeRoute(ne)}function v(){return t.getRoutes().map(B=>B.record)}function _(B){return!!t.getRecordMatcher(B)}function m(B,ne){if(ne=He({},ne||c.value),typeof B=="string"){const D=cu(n,B,ne.path),K=t.resolve({path:D.path},ne),X=o.createHref(D.fullPath);return He(D,K,{params:p(K.params),hash:Nr(D.hash),redirectedFrom:void 0,href:X})}let ee;if(B.path!=null)ee=He({},B,{path:cu(n,B.path,ne.path).path});else{const D=He({},B.params);for(const K in D)D[K]==null&&delete D[K];ee=He({},B,{params:d(D)}),ne.params=d(ne.params)}const Z=t.resolve(ee,ne),fe=B.hash||"";Z.params=u(p(Z.params));const j=GN(a,He({},B,{hash:FN(fe),path:Z.path})),L=o.createHref(j);return He({fullPath:j,hash:fe,query:a===V1?jM(B.query):B.query||{}},Z,{redirectedFrom:void 0,href:L})}function y(B){return typeof B=="string"?cu(n,B,c.value.path):He({},B)}function k(B,ne){if(l!==B)return xo(8,{from:ne,to:B})}function b(B){return T(B)}function O(B){return b(He(y(B),{replace:!0}))}function A(B){const ne=B.matched[B.matched.length-1];if(ne&&ne.redirect){const{redirect:ee}=ne;let Z=typeof ee=="function"?ee(B):ee;return typeof Z=="string"&&(Z=Z.includes("?")||Z.includes("#")?Z=y(Z):{path:Z},Z.params={}),He({query:B.query,hash:B.hash,params:Z.path!=null?{}:B.params},Z)}}function T(B,ne){const ee=l=m(B),Z=c.value,fe=B.state,j=B.force,L=B.replace===!0,D=A(ee);if(D)return T(He(y(D),{state:typeof D=="object"?He({},fe,D.state):fe,force:j,replace:L}),ne||ee);const K=ee;K.redirectedFrom=ne;let X;return!j&&KN(a,Z,ee)&&(X=xo(16,{to:K,from:Z}),ue(Z,Z,!0,!1)),(X?Promise.resolve(X):S(K,Z)).catch(Y=>zn(Y)?zn(Y,2)?Y:ie(Y):V(Y,K,Z)).then(Y=>{if(Y){if(zn(Y,2))return T(He({replace:L},y(Y.to),{state:typeof Y.to=="object"?He({},fe,Y.to.state):fe,force:j}),ne||K)}else Y=R(K,Z,!0,L,fe);return I(K,Z,Y),Y})}function C(B,ne){const ee=k(B,ne);return ee?Promise.reject(ee):Promise.resolve()}function P(B){const ne=Ee.values().next().value;return ne&&typeof ne.runWithContext=="function"?ne.runWithContext(B):B()}function S(B,ne){let ee;const[Z,fe,j]=PM(B,ne);ee=lu(Z.reverse(),"beforeRouteLeave",B,ne);for(const D of Z)D.leaveGuards.forEach(K=>{ee.push(ua(K,B,ne))});const L=C.bind(null,B,ne);return ee.push(L),Le(ee).then(()=>{ee=[];for(const D of r.list())ee.push(ua(D,B,ne));return ee.push(L),Le(ee)}).then(()=>{ee=lu(fe,"beforeRouteUpdate",B,ne);for(const D of fe)D.updateGuards.forEach(K=>{ee.push(ua(K,B,ne))});return ee.push(L),Le(ee)}).then(()=>{ee=[];for(const D of j)if(D.beforeEnter)if(un(D.beforeEnter))for(const K of D.beforeEnter)ee.push(ua(K,B,ne));else ee.push(ua(D.beforeEnter,B,ne));return ee.push(L),Le(ee)}).then(()=>(B.matched.forEach(D=>D.enterCallbacks={}),ee=lu(j,"beforeRouteEnter",B,ne,P),ee.push(L),Le(ee))).then(()=>{ee=[];for(const D of s.list())ee.push(ua(D,B,ne));return ee.push(L),Le(ee)}).catch(D=>zn(D,8)?D:Promise.reject(D))}function I(B,ne,ee){i.list().forEach(Z=>P(()=>Z(B,ne,ee)))}function R(B,ne,ee,Z,fe){const j=k(B,ne);if(j)return j;const L=ne===aa,D=mo?history.state:{};ee&&(Z||L?o.replace(B.fullPath,He({scroll:L&&D&&D.scroll},fe)):o.push(B.fullPath,fe)),c.value=B,ue(B,ne,ee,L),ie()}let F;function $(){F||(F=o.listen((B,ne,ee)=>{if(!Ce.listening)return;const Z=m(B),fe=A(Z);if(fe){T(He(fe,{replace:!0,force:!0}),Z).catch(mr);return}l=Z;const j=c.value;mo&&nM(I1(j.fullPath,ee.delta),ac()),S(Z,j).catch(L=>zn(L,12)?L:zn(L,2)?(T(He(y(L.to),{force:!0}),Z).then(D=>{zn(D,20)&&!ee.delta&&ee.type===Mr.pop&&o.go(-1,!1)}).catch(mr),Promise.reject()):(ee.delta&&o.go(-ee.delta,!1),V(L,Z,j))).then(L=>{L=L||R(Z,j,!1),L&&(ee.delta&&!zn(L,8)?o.go(-ee.delta,!1):ee.type===Mr.pop&&zn(L,20)&&o.go(-1,!1)),I(Z,j,L)}).catch(mr)}))}let H=Qo(),G=Qo(),Q;function V(B,ne,ee){ie(B);const Z=G.list();return Z.length?Z.forEach(fe=>fe(B,ne,ee)):console.error(B),Promise.reject(B)}function oe(){return Q&&c.value!==aa?Promise.resolve():new Promise((B,ne)=>{H.add([B,ne])})}function ie(B){return Q||(Q=!B,$(),H.list().forEach(([ne,ee])=>B?ee(B):ne()),H.reset()),B}function ue(B,ne,ee,Z){const{scrollBehavior:fe}=e;if(!mo||!fe)return Promise.resolve();const j=!ee&&aM(I1(B.fullPath,0))||(Z||!ee)&&history.state&&history.state.scroll||null;return qn().then(()=>fe(B,ne,j)).then(L=>L&&tM(L)).catch(L=>V(L,B,ne))}const pe=B=>o.go(B);let ke;const Ee=new Set,Ce={currentRoute:c,listening:!0,addRoute:f,removeRoute:h,clearRoutes:t.clearRoutes,hasRoute:_,getRoutes:v,resolve:m,options:e,push:b,replace:O,go:pe,back:()=>pe(-1),forward:()=>pe(1),beforeEach:r.add,beforeResolve:s.add,afterEach:i.add,onError:G.add,isReady:oe,install(B){const ne=this;B.component("RouterLink",OM),B.component("RouterView",IM),B.config.globalProperties.$router=ne,Object.defineProperty(B.config.globalProperties,"$route",{enumerable:!0,get:()=>re(c)}),mo&&!ke&&c.value===aa&&(ke=!0,b(o.location).catch(fe=>{}));const ee={};for(const fe in aa)Object.defineProperty(ee,fe,{get:()=>c.value[fe],enumerable:!0});B.provide(Zp,ne),B.provide(zb,ov(ee)),B.provide(ld,c);const Z=B.unmount;Ee.add(B),B.unmount=function(){Ee.delete(B),Ee.size<1&&(l=aa,F&&F(),F=null,c.value=aa,ke=!1,Q=!1),Z()}}};function Le(B){return B.reduce((ne,ee)=>ne.then(()=>P(ee)),Promise.resolve())}return Ce}function PM(e,t){const n=[],a=[],o=[],r=Math.max(t.matched.length,e.matched.length);for(let s=0;s<r;s++){const i=t.matched[s];i&&(e.matched.find(l=>Po(l,i))?a.push(i):n.push(i));const c=e.matched[s];c&&(t.matched.find(l=>Po(l,c))||o.push(c))}return[n,a,o]}const RK="index",xM="auth-login",zM="auth-callback",Db="site-index",DM="chatgpt-conversation",ud="chatgpt-conversation-new",NM="deepseek-conversation",W1="deepseek-conversation-new",MM="grok-conversation",G1="grok-conversation-new",$M="midjourney-index",VM="qrart-index",FM="luma-index",IK="luma-history",UM="pika-index",BM="kling-index",CK="kling-history",HM="pixverse-index",PK="pixverse-history",qM="flux-index",WM="hailuo-index",xK="hailuo-history",GM="headshots-index",KM="suno-index",zK="suno-history",YM="profile-index",XM="console-root",JM="console-order-list",ZM="console-order-detail",K1="console-application-list",QM="console-application-extra",e$="console-application-subscribe",t$="distribution-index",n$="distribution-history",a$="distribution-invitees",o$="console-usage-list",r$={path:"/auth",component:()=>g(()=>import("./Auth-JSfzrjVw.js"),__vite__mapDeps([0,1])),children:[{path:"login",name:xM,component:()=>g(()=>import("./Login-Bh73Y6L0.js"),[])},{path:"callback",name:zM,component:()=>g(()=>import("./Callback-C2H8C81R.js"),__vite__mapDeps([2,3]))}]},s$={path:"/console",meta:{auth:!0},component:()=>g(()=>import("./Console-uSrRSY8n.js"),__vite__mapDeps([4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36])),children:[{path:"",name:XM,redirect:{name:K1}},{path:"orders",name:JM,component:()=>g(()=>import("./List-CSWZamU1.js"),__vite__mapDeps([37,38,39,40,11,12,13,14,41,16,25,23,9,18,19,30,42,34,43,44,6,45,46,47,48,8,10,49,24,50,51]))},{path:"orders/:id",name:ZM,component:()=>g(()=>import("./Detail-Hp5FeJyh.js"),__vite__mapDeps([52,38,46,48,13,47,44,6,11,12,45,53,31,54,8,9,10,55]))},{path:"applications",name:K1,component:()=>g(()=>import("./List-EsU10Na-.js"),__vite__mapDeps([56,57,39,40,11,12,13,14,41,16,25,23,9,18,19,30,42,34,43,44,6,45,48,49,24,50,51,8,10]))},{path:"applications/:id/extra",name:QM,component:()=>g(()=>import("./Extra-DGk67e15.js"),__vite__mapDeps([58,59,47,38,60,12,9,31,8,10,28,16,13,22,23,24,48,54,26,61]))},{path:"applications/:id/subscribe",name:e$,component:()=>g(()=>import("./Subscribe-CV5zJN_p.js"),__vite__mapDeps([62,59,38,47,6,8,9,10,48,13,54,26,63]))},{path:"usages",name:o$,component:()=>g(()=>import("./List-2sIAWL2L.js"),__vite__mapDeps([64,57,39,40,11,12,13,14,41,16,25,23,9,18,19,30,42,34,43,44,6,45,48,49,24,50,51,65]))}]},i$={path:"/grok",meta:{modelGroup:sy,appName:"chat"},component:()=>g(()=>import("./Main-qA7qPY-b.js"),__vite__mapDeps([66,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,67,68,51,69])),children:[{path:"",redirect:{name:G1}},{path:"conversations",name:G1,component:()=>g(()=>import("./Conversation-_B4AsqVk.js"),__vite__mapDeps([70,44,6,11,12,13,45,71,21,72,18,19,9,29,30,8,10,53,73,74,20,22,23,24,25,26,7,14,15,16,54,75,76]))},{path:"conversations/:id",name:MM,component:()=>g(()=>import("./Conversation-_B4AsqVk.js"),__vite__mapDeps([70,44,6,11,12,13,45,71,21,72,18,19,9,29,30,8,10,53,73,74,20,22,23,24,25,26,7,14,15,16,54,75,76]))}]},c$={path:"/deepseek",meta:{modelGroup:ry,appName:"chat"},component:()=>g(()=>import("./Main-qA7qPY-b.js"),__vite__mapDeps([66,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,67,68,51,69])),children:[{path:"",redirect:{name:W1}},{path:"conversations/:id",name:NM,component:()=>g(()=>import("./Conversation-_B4AsqVk.js"),__vite__mapDeps([70,44,6,11,12,13,45,71,21,72,18,19,9,29,30,8,10,53,73,74,20,22,23,24,25,26,7,14,15,16,54,75,76]))},{path:"conversations",name:W1,component:()=>g(()=>import("./Conversation-_B4AsqVk.js"),__vite__mapDeps([70,44,6,11,12,13,45,71,21,72,18,19,9,29,30,8,10,53,73,74,20,22,23,24,25,26,7,14,15,16,54,75,76]))}]},l$={path:"/chatgpt",meta:{modelGroup:Dp,appName:"chat"},component:()=>g(()=>import("./Main-qA7qPY-b.js"),__vite__mapDeps([66,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,67,68,51,69])),children:[{path:"",redirect:{name:ud}},{path:"conversations",name:ud,component:()=>g(()=>import("./Conversation-_B4AsqVk.js"),__vite__mapDeps([70,44,6,11,12,13,45,71,21,72,18,19,9,29,30,8,10,53,73,74,20,22,23,24,25,26,7,14,15,16,54,75,76]))},{path:"conversations/:id",name:DM,component:()=>g(()=>import("./Conversation-_B4AsqVk.js"),__vite__mapDeps([70,44,6,11,12,13,45,71,21,72,18,19,9,29,30,8,10,53,73,74,20,22,23,24,25,26,7,14,15,16,54,75,76]))}]},u$={path:"/midjourney",meta:{auth:!0,appName:"midjourney"},component:()=>g(()=>import("./Main-qA7qPY-b.js"),__vite__mapDeps([66,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,67,68,51,69])),children:[{path:"",name:$M,component:()=>g(()=>import("./Index-B0XIn0lM.js"),__vite__mapDeps([77,6,8,9,10,75,32,12,40,11,13,14,41,16,25,23,18,19,30,42,34,78,79,73,21,74,20,22,24,26,80,29,60,81,50,7,15,44,45,82,83,84,85,86,87,53,88,54,89,90,91]))}]},d$={path:"/distribution",meta:{auth:!0},component:()=>g(()=>import("./Main-qA7qPY-b.js"),__vite__mapDeps([66,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,67,68,51,69])),children:[{path:"",name:t$,component:()=>g(()=>import("./Index-DiaRdMSg.js"),__vite__mapDeps([92,44,6,11,12,13,45,93,47,54,49,14,23,24,50,42,25,16,30,51,9,34,48,31,8,10,21,94]))},{path:"history",name:n$,component:()=>g(()=>import("./History-D7Co3WBD.js"),__vite__mapDeps([95,39,40,11,12,13,14,41,16,25,23,9,18,19,30,42,34,43,44,6,45,93,47,48,49,24,50,51,96]))},{path:"invitees",name:a$,component:()=>g(()=>import("./Invitees-Nk96-gcw.js"),__vite__mapDeps([97,39,40,11,12,13,14,41,16,25,23,9,18,19,30,42,34,43,44,6,45,48,49,24,50,51,98]))}]},p$={path:"/qrart",meta:{auth:!0,appName:"qrart"},component:()=>g(()=>import("./Main-qA7qPY-b.js"),__vite__mapDeps([66,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,67,68,51,69])),children:[{path:"",name:VM,component:()=>g(()=>import("./Index-Ci3ME8pV.js"),__vite__mapDeps([99,6,8,9,10,75,40,11,12,13,14,41,16,25,23,18,19,30,42,34,78,79,80,32,29,60,20,21,22,24,26,67,68,44,45,53,54,100]))}]},f$={path:"/luma",meta:{auth:!0,appName:"luma"},component:()=>g(()=>import("./Main-qA7qPY-b.js"),__vite__mapDeps([66,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,67,68,51,69])),children:[{path:"",name:FM,component:()=>g(()=>import("./Index-D7BmMoY8.js"),__vite__mapDeps([101,6,8,9,10,75,78,11,12,13,79,32,73,21,74,20,22,23,24,25,26,71,72,18,19,84,85,86,87,44,45,53,29,30,88,54,89,90,102]))}]},m$={path:"/pika",meta:{auth:!0,appName:"pika"},component:()=>g(()=>import("./Main-qA7qPY-b.js"),__vite__mapDeps([66,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,67,68,51,69])),children:[{path:"",name:UM,component:()=>g(()=>import("./Index-ewvU_Qva.js"),__vite__mapDeps([103,6,8,9,10,75,78,11,12,13,79,32,40,14,41,16,25,23,18,19,30,42,34,60,20,21,22,24,26,44,45,85,86,53,29,54,104]))}]},h$={path:"/kling",meta:{auth:!0,appName:"kling"},component:()=>g(()=>import("./Main-qA7qPY-b.js"),__vite__mapDeps([66,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,67,68,51,69])),children:[{path:"",name:BM,component:()=>g(()=>import("./Index-BiHwcmvW.js"),__vite__mapDeps([105,6,8,9,10,75,40,11,12,13,14,41,16,25,23,18,19,30,42,34,78,79,73,21,74,20,22,24,26,80,44,45,84,85,86,87,53,29,88,54,89,90,106]))}]},g$={path:"/pixverse",meta:{auth:!0,appName:"pixverse"},component:()=>g(()=>import("./Main-qA7qPY-b.js"),__vite__mapDeps([66,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,67,68,51,69])),children:[{path:"",name:HM,component:()=>g(()=>import("./Index-Dm3DPhfD.js"),__vite__mapDeps([107,6,8,9,10,75,40,11,12,13,14,41,16,25,23,18,19,30,42,34,78,79,80,73,21,74,20,22,24,26,44,45,84,85,86,87,53,29,88,54,89,90,108]))}]},v$={path:"/flux",meta:{auth:!0,appName:"flux"},component:()=>g(()=>import("./Main-qA7qPY-b.js"),__vite__mapDeps([66,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,67,68,51,69])),children:[{path:"",name:qM,component:()=>g(()=>import("./Index-BVLuZJi9.js"),__vite__mapDeps([109,6,8,9,10,75,40,11,12,13,14,41,16,25,23,18,19,30,42,34,78,79,80,44,45,82,83,53,29,88,54,89,90,26,110]))}]},_$={path:"/hailuo",meta:{auth:!0,appName:"hailuo"},component:()=>g(()=>import("./Main-qA7qPY-b.js"),__vite__mapDeps([66,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,67,68,51,69])),children:[{path:"",name:WM,component:()=>g(()=>import("./Index-Ba8Rl5do.js"),__vite__mapDeps([111,6,8,9,10,75,40,11,12,13,14,41,16,25,23,18,19,30,42,34,78,79,73,21,74,20,22,24,26,44,45,84,85,86,87,53,29,88,54,89,90,112]))}]},y$={path:"/headshots",meta:{auth:!0,appName:"headshots"},component:()=>g(()=>import("./Main-qA7qPY-b.js"),__vite__mapDeps([66,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,67,68,51,69])),children:[{path:"",name:GM,component:()=>g(()=>import("./Index-DHXqZyjd.js"),__vite__mapDeps([113,6,8,9,10,75,78,11,12,13,79,20,21,22,23,24,25,26,60,29,30,19,81,41,50,67,68,44,45,53,54,114]))}]},b$={path:"/suno",meta:{auth:!0,appName:"suno"},component:()=>g(()=>import("./Main-qA7qPY-b.js"),__vite__mapDeps([66,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,67,68,51,69])),children:[{path:"",name:KM,component:()=>g(()=>import("./Index-Bp9lX6Wt.js"),__vite__mapDeps([115,6,8,9,10,75,32,12,40,11,13,14,41,16,25,23,18,19,30,42,34,78,79,20,21,22,24,26,80,29,7,15,116,90,54,117]))}]},k$={path:"/site",component:()=>g(()=>import("./Main-qA7qPY-b.js"),__vite__mapDeps([66,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,67,68,51,69])),children:[{path:"",name:Db,component:()=>g(()=>import("./Index-CRLhgIrO.js"),__vite__mapDeps([118,17,8,9,10,18,13,12,19,6,20,21,22,23,24,25,26,27,28,16,32,48,29,30,31,119]))}]},w$={path:"/profile",component:()=>g(()=>import("./Main-qA7qPY-b.js"),__vite__mapDeps([66,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,67,68,51,69])),children:[{path:"",name:YM,component:()=>g(()=>import("./Index-ViFKIq9k.js"),__vite__mapDeps([120,6,33,13,11,12,10,34,116,15,29,30,19,121]))}]},j$=[{path:"/",redirect:{name:ud}},s$,r$,l$,i$,c$,p$,f$,m$,h$,g$,v$,_$,y$,b$,u$,d$,k$,w$],Nb=CM({history:iM(),routes:j$});Nb.beforeEach(async(e,t,n)=>{const a=gi(On("LOCALE")||w_);return await CO(a),n()});const E$=_e({name:"AuthPanel",components:{ElDialog:M8,QrCode:RN},data(){return{showQR:!1,qrLink:""}},computed:{iframeUrl(){return`${vi()}/auth/login?inviter_id=${this.inviterId}`},inviterId(){return this.$store?.state?.site?.distribution?.force_inviter_id?this.$store?.state?.site?.distribution?.force_inviter_id:this.$route.query.inviter_id?.toString()||On("INVITER_ID")||this.$store?.state?.site?.distribution?.default_inviter_id},authenticated(){return!!this.$store.state.token.access}},mounted(){window.addEventListener("message",async e=>{if(e.origin===vi()){if(console.debug("received from child page",e),e.data.name==="login"){const t=e.data.data,n={access:t.access_token,refresh:t.refresh_token,expiration:t.expires_in};await this.$store.dispatch("setToken",n),await this.$store.dispatch("getUser"),this.$store.state.site?.origin||(await this.$store.dispatch("initializeSite"),await this.$router.push({name:Db})),window.location.reload()}if(e.data.name==="show_qr"){const t=e.data.data;this.qrLink=t.qrLink,this.showQR=!0}}})}}),Mb=(e,t)=>{const n=e.__vccOpts||e;for(const[a,o]of t)n[a]=o;return n},A$=["src"];function T$(e,t,n,a,o,r){const s=ho("el-dialog"),i=ho("qr-code");return ye(),Oe(ht,null,[Xe(s,{"model-value":!e.authenticated,"modal-class":"dialog",width:"400px","show-close":!1,"close-on-press-escape":!1,"close-on-click-modal":!1},{default:vt(()=>[je("iframe",{width:"360",height:"560",src:e.iframeUrl,frameborder:"0"},null,8,A$)]),_:1},8,["model-value"]),Xe(s,{modelValue:e.showQR,"onUpdate:modelValue":t[0]||(t[0]=c=>e.showQR=c),width:"400px","show-close":!0},{default:vt(()=>[e.qrLink?(ye(),Nt(i,{key:0,value:e.qrLink,width:230,height:230,class:"qrcode",type:"image/jpeg",color:{dark:"#000000ff",light:"#ffffffff"}},null,8,["value"])):va("",!0)]),_:1},8,["modelValue"])],64)}const O$=Mb(E$,[["render",T$],["__scopeId","data-v-305ca15f"]]),L$={en:()=>g(()=>Promise.resolve().then(()=>I6),void 0),de:()=>g(()=>import("./de-BZu7ZZ9y.js"),[]),pt:()=>g(()=>import("./pt-iBE8V_rF.js"),[]),es:()=>g(()=>import("./es-Idilhmtq.js"),[]),fr:()=>g(()=>import("./fr-fyTGkfid.js"),[]),"zh-CN":()=>g(()=>import("./zh-cn-CnyULPxw.js"),[]),"zh-TW":()=>g(()=>import("./zh-tw-ZQmLUxJy.js"),[]),it:()=>g(()=>import("./it-CLf6lrMi.js"),[]),ko:()=>g(()=>import("./ko-DUrUYy0R.js"),[]),ja:()=>g(()=>import("./ja-DFyNu3tl.js"),[]),ru:()=>g(()=>import("./ru-a9O4dLvt.js"),[]),pl:()=>g(()=>import("./pl-By8ttK5W.js"),[]),fi:()=>g(()=>import("./fi-BhhlDzr_.js"),[]),sv:()=>g(()=>import("./sv-CiSSmJ4h.js"),[]),el:()=>g(()=>import("./el-DJ93mLwP.js"),[]),uk:()=>g(()=>import("./uk-Ci2KIGcW.js"),[]),ar:()=>g(()=>import("./ar-D1hnTQ2h.js"),[]),sr:()=>g(()=>import("./sr-BuqPpavQ.js"),[])},S$=_e({name:"App",components:{ElConfigProvider:y8,ElTag:h8,AuthPanel:O$},data(){return{isTest:Yr,epLocale:null}},computed:{authPopup(){return this.$store.state.auth.flow==="popup"&&this.$store.state.auth.visible},currentLocale(){return gi(this.$i18n.locale)}},watch:{currentLocale:{immediate:!0,handler(){this.loadElementPlusLocale()}}},mounted(){const e=!!this.$store.state.token.access&&!!this.$store.state.user?.id;console.debug("App mounted, authenticated:",e),e||(this.$store.dispatch("logout"),this.$store.dispatch("login"))},methods:{async loadElementPlusLocale(){const e=this.currentLocale;console.debug(`[i18n] Loading Element Plus locale for: ${e}`);const t=L$[e];if(!t){console.warn(`[i18n] No Element Plus locale found for: ${e}`);return}try{const n=await t();this.epLocale=n.default,console.debug(`[i18n] Loaded Element Plus locale: ${e}`)}catch(n){console.error(`[i18n] Failed to load Element Plus locale for: ${e}`,n)}}}});function R$(e,t,n,a,o,r){const s=ho("auth-panel"),i=ho("router-view"),c=ho("el-tag"),l=ho("el-config-provider");return ye(),Nt(l,{locale:e.epLocale},{default:vt(()=>[e.authPopup?(ye(),Nt(s,{key:0})):va("",!0),Xe(i),e.isTest?(ye(),Nt(c,{key:1,size:"large",class:"fixed bottom-4 right-4 z-50",type:"warning"},{default:vt(()=>[Gv(Ud(e.$t("index.button.testEnv")),1)]),_:1})):va("",!0)]),_:1},8,["locale"])}const I$=Mb(S$,[["render",R$]]),C$={install:(e,t)=>{e.config.globalProperties.$dayjs={format(n,a){return n?l8(n).format(a||t.formatString):""}}}};/*!
|
|
68
68
|
* Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
|
|
69
69
|
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
|
70
70
|
* Copyright 2024 Fonticons, Inc.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as e,aB as o,aI as u}from"./index-
|
|
1
|
+
import{c as e,aB as o,aI as u}from"./index-DIZrNQUn.js";const i=["class","style"],E=/^on[A-Z]/,f=(a={})=>{const{excludeListeners:c=!1,excludeKeys:t}=a,l=e(()=>(t?.value||[]).concat(i)),s=u();return s?e(()=>{var n;return o(Object.entries((n=s.proxy)==null?void 0:n.$attrs).filter(([r])=>!l.value.includes(r)&&!(c&&E.test(r))))}):e(()=>({}))};export{f as u};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aL as te,bf as Pe,aK as Te,ah as Fe,an as de,c7 as Ce,aj as $,c as E,_ as De,d as Y,bE as ce,bm as ze,a as qe,au as re,ak as Ue,c8 as Je,c9 as xe,b as Ke,o as pe,r as X,n as J,e as x,aJ as Ge,bL as st,al as ne,bC as ot,at as Ze,am as Ye,bS as ft,k as ie,F as lt,ba as ke,aD as ve,u as ut,aU as dt,ca as ct,bl as Se,cb as fe,t as Ae,j as le,i as pt,y as je,b6 as vt,f as Re,D as mt,x as Ve,cc as ht,w as gt,g as yt}from"./index-
|
|
1
|
+
import{aL as te,bf as Pe,aK as Te,ah as Fe,an as de,c7 as Ce,aj as $,c as E,_ as De,d as Y,bE as ce,bm as ze,a as qe,au as re,ak as Ue,c8 as Je,c9 as xe,b as Ke,o as pe,r as X,n as J,e as x,aJ as Ge,bL as st,al as ne,bC as ot,at as Ze,am as Ye,bS as ft,k as ie,F as lt,ba as ke,aD as ve,u as ut,aU as dt,ca as ct,bl as Se,cb as fe,t as Ae,j as le,i as pt,y as je,b6 as vt,f as Re,D as mt,x as Ve,cc as ht,w as gt,g as yt}from"./index-DIZrNQUn.js";import{c as me}from"./castArray-DJF4-x38.js";import{b as bt}from"./typescript-ZaK-U8nj.js";import{b as wt}from"./_baseClone-B_I0hSdV.js";var Ft=4;function Me(i){return wt(i,Ft)}const qt=Fe({size:{type:String,values:Ce},disabled:Boolean}),xt=Fe({...qt,model:Object,rules:{type:de(Object)},labelPosition:{type:String,values:["left","right","top"],default:"right"},requireAsteriskPosition:{type:String,values:["left","right"],default:"left"},labelWidth:{type:[String,Number],default:""},labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:Boolean,scrollToError:Boolean,scrollIntoViewOptions:{type:[Object,Boolean],default:!0}}),Ot={validate:(i,e,t)=>(te(i)||Pe(i))&&Te(e)&&Pe(t)};function Et(){const i=$([]),e=E(()=>{if(!i.value.length)return"0";const a=Math.max(...i.value);return a?`${a}px`:""});function t(a){const s=i.value.indexOf(a);return s===-1&&e.value,s}function r(a,s){if(a&&s){const o=t(s);i.value.splice(o,1,a)}else a&&i.value.push(a)}function n(a){const s=t(a);s>-1&&i.value.splice(s,1)}return{autoLabelWidth:e,registerLabelWidth:r,deregisterLabelWidth:n}}const H=(i,e)=>{const t=me(e).map(r=>te(r)?r.join("."):r);return t.length>0?i.filter(r=>r.propString&&t.includes(r.propString)):i},_t="ElForm",Pt=Y({name:_t}),St=Y({...Pt,props:xt,emits:Ot,setup(i,{expose:e,emit:t}){const r=i,n=$(),a=ce([]),s=ze(),o=qe("form"),u=E(()=>{const{labelPosition:l,inline:m}=r;return[o.b(),o.m(s.value||"default"),{[o.m(`label-${l}`)]:l,[o.m("inline")]:m}]}),w=l=>H(a,[l])[0],p=l=>{a.push(l)},g=l=>{l.prop&&a.splice(a.indexOf(l),1)},F=(l=[])=>{r.model&&H(a,l).forEach(m=>m.resetField())},O=(l=[])=>{H(a,l).forEach(m=>m.clearValidate())},S=E(()=>!!r.model),c=l=>{if(a.length===0)return[];const m=H(a,l);return m.length?m:[]},y=async l=>j(void 0,l),f=async(l=[])=>{if(!S.value)return!1;const m=c(l);if(m.length===0)return!0;let b={};for(const R of m)try{await R.validate(""),R.validateState==="error"&&R.resetField()}catch(_){b={...b,..._}}return Object.keys(b).length===0?!0:Promise.reject(b)},j=async(l=[],m)=>{let b=!1;const R=!Ge(m);try{return b=await f(l),b===!0&&await m?.(b),b}catch(_){if(_ instanceof Error)throw _;const W=_;if(r.scrollToError&&n.value){const B=n.value.querySelector(`.${o.b()}-item.is-error`);B?.scrollIntoView(r.scrollIntoViewOptions)}return!b&&await m?.(!1,W),R&&Promise.reject(W)}},v=l=>{var m;const b=w(l);b&&((m=b.$el)==null||m.scrollIntoView(r.scrollIntoViewOptions))};return re(()=>r.rules,()=>{r.validateOnRuleChange&&y().catch(l=>st())},{deep:!0,flush:"post"}),Ue(xe,ce({...Je(r),emit:t,resetFields:F,clearValidate:O,validateField:j,getField:w,addField:p,removeField:g,...Et()})),e({validate:y,validateField:j,resetFields:F,clearValidate:O,scrollToField:v,getField:w,fields:a}),(l,m)=>(pe(),Ke("form",{ref_key:"formRef",ref:n,class:J(x(u))},[X(l.$slots,"default")],2))}});var At=De(St,[["__file","form.vue"]]);function T(){return T=Object.assign?Object.assign.bind():function(i){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(i[r]=t[r])}return i},T.apply(this,arguments)}function jt(i,e){i.prototype=Object.create(e.prototype),i.prototype.constructor=i,Z(i,e)}function he(i){return he=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},he(i)}function Z(i,e){return Z=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Z(i,e)}function Rt(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ee(i,e,t){return Rt()?ee=Reflect.construct.bind():ee=function(n,a,s){var o=[null];o.push.apply(o,a);var u=Function.bind.apply(n,o),w=new u;return s&&Z(w,s.prototype),w},ee.apply(null,arguments)}function Vt(i){return Function.toString.call(i).indexOf("[native code]")!==-1}function ge(i){var e=typeof Map=="function"?new Map:void 0;return ge=function(r){if(r===null||!Vt(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(r))return e.get(r);e.set(r,n)}function n(){return ee(r,arguments,he(this).constructor)}return n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Z(n,r)},ge(i)}var Mt=/%[sdj%]/g,Nt=function(){};function ye(i){if(!i||!i.length)return null;var e={};return i.forEach(function(t){var r=t.field;e[r]=e[r]||[],e[r].push(t)}),e}function N(i){for(var e=arguments.length,t=new Array(e>1?e-1:0),r=1;r<e;r++)t[r-1]=arguments[r];var n=0,a=t.length;if(typeof i=="function")return i.apply(null,t);if(typeof i=="string"){var s=i.replace(Mt,function(o){if(o==="%%")return"%";if(n>=a)return o;switch(o){case"%s":return String(t[n++]);case"%d":return Number(t[n++]);case"%j":try{return JSON.stringify(t[n++])}catch{return"[Circular]"}break;default:return o}});return s}return i}function Wt(i){return i==="string"||i==="url"||i==="hex"||i==="email"||i==="date"||i==="pattern"}function P(i,e){return!!(i==null||e==="array"&&Array.isArray(i)&&!i.length||Wt(e)&&typeof i=="string"&&!i)}function Lt(i,e,t){var r=[],n=0,a=i.length;function s(o){r.push.apply(r,o||[]),n++,n===a&&t(r)}i.forEach(function(o){e(o,s)})}function Ne(i,e,t){var r=0,n=i.length;function a(s){if(s&&s.length){t(s);return}var o=r;r=r+1,o<n?e(i[o],a):t([])}a([])}function It(i){var e=[];return Object.keys(i).forEach(function(t){e.push.apply(e,i[t]||[])}),e}var We=function(i){jt(e,i);function e(t,r){var n;return n=i.call(this,"Async Validation Error")||this,n.errors=t,n.fields=r,n}return e}(ge(Error));function $t(i,e,t,r,n){if(e.first){var a=new Promise(function(F,O){var S=function(f){return r(f),f.length?O(new We(f,ye(f))):F(n)},c=It(i);Ne(c,t,S)});return a.catch(function(F){return F}),a}var s=e.firstFields===!0?Object.keys(i):e.firstFields||[],o=Object.keys(i),u=o.length,w=0,p=[],g=new Promise(function(F,O){var S=function(y){if(p.push.apply(p,y),w++,w===u)return r(p),p.length?O(new We(p,ye(p))):F(n)};o.length||(r(p),F(n)),o.forEach(function(c){var y=i[c];s.indexOf(c)!==-1?Ne(y,t,S):Lt(y,t,S)})});return g.catch(function(F){return F}),g}function Bt(i){return!!(i&&i.message!==void 0)}function Tt(i,e){for(var t=i,r=0;r<e.length;r++){if(t==null)return t;t=t[e[r]]}return t}function Le(i,e){return function(t){var r;return i.fullFields?r=Tt(e,i.fullFields):r=e[t.field||i.fullField],Bt(t)?(t.field=t.field||i.fullField,t.fieldValue=r,t):{message:typeof t=="function"?t():t,fieldValue:r,field:t.field||i.fullField}}}function Ie(i,e){if(e){for(var t in e)if(e.hasOwnProperty(t)){var r=e[t];typeof r=="object"&&typeof i[t]=="object"?i[t]=T({},i[t],r):i[t]=r}}return i}var He=function(e,t,r,n,a,s){e.required&&(!r.hasOwnProperty(e.field)||P(t,s||e.type))&&n.push(N(a.messages.required,e.fullField))},Ct=function(e,t,r,n,a){(/^\s+$/.test(t)||t==="")&&n.push(N(a.messages.whitespace,e.fullField))},Q,Dt=function(){if(Q)return Q;var i="[a-fA-F\\d:]",e=function(l){return l&&l.includeBoundaries?"(?:(?<=\\s|^)(?="+i+")|(?<="+i+")(?=\\s|$))":""},t="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",n=(`
|
|
2
2
|
(?:
|
|
3
3
|
(?:`+r+":){7}(?:"+r+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
|
|
4
4
|
(?:`+r+":){6}(?:"+t+"|:"+r+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{bf as $,ai as w,aK as z,ah as B,ce as V,cf as R,bQ as P,aj as S,al as Q,c as m,bK as F,bm as W,bO as X,bM as Y,_ as k,d as _,a as I,b as C,o as G,t as y,J as K,df as D,e,af as h,n as b,cX as U,r as N,D as x,x as A,ba as L,f as Z,aU as ee,at as ae,ak as oe,bE as le,c8 as se,au as te,bL as ne,w as M,g as re}from"./index-
|
|
1
|
+
import{bf as $,ai as w,aK as z,ah as B,ce as V,cf as R,bQ as P,aj as S,al as Q,c as m,bK as F,bm as W,bO as X,bM as Y,_ as k,d as _,a as I,b as C,o as G,t as y,J as K,df as D,e,af as h,n as b,cX as U,r as N,D as x,x as A,ba as L,f as Z,aU as ee,at as ae,ak as oe,bE as le,c8 as se,au as te,bL as ne,w as M,g as re}from"./index-DIZrNQUn.js";import{u as ie}from"./index-Ctx1RSND.js";import{u as de,a as ue}from"./use-form-item-DGbaU2QP.js";const T=B({modelValue:{type:[String,Number,Boolean],default:void 0},size:P,disabled:Boolean,label:{type:[String,Number,Boolean],default:void 0},value:{type:[String,Number,Boolean],default:void 0},name:{type:String,default:void 0}}),ce=B({...T,border:Boolean}),j={[R]:o=>$(o)||w(o)||z(o),[V]:o=>$(o)||w(o)||z(o)},O=Symbol("radioGroupKey"),q=(o,u)=>{const s=S(),a=Q(O,void 0),i=m(()=>!!a),c=m(()=>F(o.value)?o.label:o.value),r=m({get(){return i.value?a.modelValue:o.modelValue},set(t){i.value?a.changeEvent(t):u&&u(R,t),s.value.checked=o.modelValue===c.value}}),d=W(m(()=>a?.size)),l=X(m(()=>a?.disabled)),n=S(!1),p=m(()=>l.value||i.value&&r.value!==c.value?-1:0);return Y({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-radio",ref:"https://element-plus.org/en-US/component/radio.html"},m(()=>i.value&&F(o.value))),{radioRef:s,isGroup:i,radioGroup:a,focus:n,size:d,disabled:l,tabIndex:p,modelValue:r,actualValue:c}},pe=_({name:"ElRadio"}),fe=_({...pe,props:ce,emits:j,setup(o,{emit:u}){const s=o,a=I("radio"),{radioRef:i,radioGroup:c,focus:r,size:d,disabled:l,modelValue:n,actualValue:p}=q(s,u);function t(){L(()=>u(V,n.value))}return(f,g)=>{var v;return G(),C("label",{class:b([e(a).b(),e(a).is("disabled",e(l)),e(a).is("focus",e(r)),e(a).is("bordered",f.border),e(a).is("checked",e(n)===e(p)),e(a).m(e(d))])},[y("span",{class:b([e(a).e("input"),e(a).is("disabled",e(l)),e(a).is("checked",e(n)===e(p))])},[K(y("input",{ref_key:"radioRef",ref:i,"onUpdate:modelValue":E=>U(n)?n.value=E:null,class:b(e(a).e("original")),value:e(p),name:f.name||((v=e(c))==null?void 0:v.name),disabled:e(l),checked:e(n)===e(p),type:"radio",onFocus:E=>r.value=!0,onBlur:E=>r.value=!1,onChange:t,onClick:h(()=>{},["stop"])},null,42,["onUpdate:modelValue","value","name","disabled","checked","onFocus","onBlur","onClick"]),[[D,e(n)]]),y("span",{class:b(e(a).e("inner"))},null,2)],2),y("span",{class:b(e(a).e("label")),onKeydown:h(()=>{},["stop"])},[N(f.$slots,"default",{},()=>[x(A(f.label),1)])],42,["onKeydown"])],2)}}});var me=k(fe,[["__file","radio.vue"]]);const be=B({...T}),ve=_({name:"ElRadioButton"}),ye=_({...ve,props:be,setup(o){const u=o,s=I("radio"),{radioRef:a,focus:i,size:c,disabled:r,modelValue:d,radioGroup:l,actualValue:n}=q(u),p=m(()=>({backgroundColor:l?.fill||"",borderColor:l?.fill||"",boxShadow:l?.fill?`-1px 0 0 0 ${l.fill}`:"",color:l?.textColor||""}));return(t,f)=>{var g;return G(),C("label",{class:b([e(s).b("button"),e(s).is("active",e(d)===e(n)),e(s).is("disabled",e(r)),e(s).is("focus",e(i)),e(s).bm("button",e(c))])},[K(y("input",{ref_key:"radioRef",ref:a,"onUpdate:modelValue":v=>U(d)?d.value=v:null,class:b(e(s).be("button","original-radio")),value:e(n),type:"radio",name:t.name||((g=e(l))==null?void 0:g.name),disabled:e(r),onFocus:v=>i.value=!0,onBlur:v=>i.value=!1,onClick:h(()=>{},["stop"])},null,42,["onUpdate:modelValue","value","name","disabled","onFocus","onBlur","onClick"]),[[D,e(d)]]),y("span",{class:b(e(s).be("button","inner")),style:Z(e(d)===e(n)?e(p):{}),onKeydown:h(()=>{},["stop"])},[N(t.$slots,"default",{},()=>[x(A(t.label),1)])],46,["onKeydown"])],2)}}});var H=k(ye,[["__file","radio-button.vue"]]);const _e=B({id:{type:String,default:void 0},size:P,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:void 0},fill:{type:String,default:""},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0},...ie(["ariaLabel"])}),ge=j,he=_({name:"ElRadioGroup"}),Be=_({...he,props:_e,emits:ge,setup(o,{emit:u}){const s=o,a=I("radio"),i=ee(),c=S(),{formItem:r}=de(),{inputId:d,isLabeledByFormItem:l}=ue(s,{formItemContext:r}),n=t=>{u(R,t),L(()=>u(V,t))};ae(()=>{const t=c.value.querySelectorAll("[type=radio]"),f=t[0];!Array.from(t).some(g=>g.checked)&&f&&(f.tabIndex=0)});const p=m(()=>s.name||i.value);return oe(O,le({...se(s),changeEvent:n,name:p})),te(()=>s.modelValue,()=>{s.validateEvent&&r?.validate("change").catch(t=>ne())}),(t,f)=>(G(),C("div",{id:e(d),ref_key:"radioGroupRef",ref:c,class:b(e(a).b("group")),role:"radiogroup","aria-label":e(l)?void 0:t.ariaLabel||"radio-group","aria-labelledby":e(l)?e(r).labelId:void 0},[N(t.$slots,"default")],10,["id","aria-label","aria-labelledby"]))}});var J=k(Be,[["__file","radio-group.vue"]]);re(me,{RadioButton:H,RadioGroup:J});const Re=M(J),ke=M(H);export{ke as E,Re as a};
|