sgvor8OQ{R&gFL;
z5-wy*xsdJAIV`m_;$()>K!I!c9_%ewmQ!SE&3u2k@-~_8rpro3vFLAR5y9!M5mk_h
zijz))Yi$zz5+n-W>DISiQ~KH%iF-a{w)TPl2~t&SXK1eMvjUdsW%+mN*}khO%vF$;
zcl6OrVFqsvXh`Ex=R4j<(~lOmLbA*xjIrh_1kEG+0{OB}>J(mwQ|?cQspUtTqK+k_
zHslK3-D2*^N*i7H0m>y)fN3Td3^mCjXZtCIHv-RhBsQ>u?OP!Tv3<)j;w0nY3c`yi
zr@r$nW`B_Mo`}WOjy)*=7;fJsCSFRsML62Ijodk2n7ZfsG)rB&s6UXGv)VfMiSom0
zI-1rV1R-X4Voaj;M@Fi*s{4b5AVsjYSpvi8n?H}_1sGhQPZ>k#jG(ur<5BpXlZQP{
zbmjC5)cv33PHYs3c~IuEVSw%x$U5uQv6?QJ4K}p1J3wW99^BnUVo9N3JOwWl=`aWQ
zJQ~(9YW91S^UE-Qt1(FnsfH_%=T8kI8k8aaJ#hTl@9|d+ZlUR|qPn?8vKqWf;w1iw
zc}(~<2pZ7-l9IQ6VyBT_B}
z=OtaF_4#Y=owBfh!Q;;(?C^&hx%l(x)u!-XopP=Ms+AD*64%@|(vqIV>lc}^1J+*d
z^*+vMJcR;y9T6d#2z{U#)zXw}x6wb__#ln&>dm9w9<&zu!~Fw&0gHxVi_DIi))6T-
zyRGt~XE#hFz_S0ll>JICq=C_~`L557E90#JVyQBIV)vcspkBi4=^L2iD4(Am6nSc9
zkBzLve<;vP9jl-KNPfxuR0Ap${#qRM=?n!npVmLrU&-GQJmzPqqJWrPg7DFq1r$xb
zivp)>&3#kyY_sq71b9QoRV0@26UYf0L$$LBE9c#a&j0&y;GSs;bDW19YMWyC&lWM9hiop`$Ar)g#onA+td3yhaA7Yysg1iM^Ri{8Uwb(
z78`o$&wZP9+BN@TsQC*n&z-VCbu+igP*VzAPj@GG@*AiRo8Pp^-qdqMIVuHBh=TWD
z7g)hmXf?;a_Bdm2*2MYU1GD)8o@N8*?EcT#(;Y?rEV2IXWf_Q#ZUbJZh6~KpOPah!
zpDoT>b>~5~>saFi|Da5k+7D-)l84u%%#qyp>H0Yv8|gTi^NHQ@E^s47&6=%f0m!7?
zmW!LYhC-xG)^^#^DpTdM9t6bB1)!NFE=;W7l&U|q7jbra
zAV-{YTq(u^6=foqWrnIrDQwU6L^elo`Lz+YmQc?;RoyUBm
z@@8DMB$i!apu72*^HGuU_+}J#P4?Fl$9E%`q}5nyG^`Z=ZMYvNulEpYkBZ{DT38IW
zTp91Edd2b+FG&*fU`=t7Y^#>Kqn>cBqU~MyQ|)60IdX8%@9YkiEyBxRc#XVGmC}-)
z&n>x>El~UB*Vod^`ypt53W#C7b@d3(IZKWrHm1Y$RBVfPyiEp}eh1JfDi(1*5-Tex
zcw>0nI@n{DTgYpf4$H{w8>Ls^pLT=l2AJAj4j
zet$x)!UlsZBW^Yq&Zef)cLGaO*sKlLhHPvPpCAbY0Sx)6!
zgd=*I0qVQst3GHy-
z+L-I<8HnT%68e@zMPA%G_F8F|Q-Yr;q4O~>MaCDEKUd)1!Unc1YIX~xx(LMR*pF9)
zt1L@TN=f{?%qDGoR!YUQg9@!6Bs-pMB-od&tTF{9^Yt+P^r
z{x^07h|$_2VoqdlUwQ4P?`lLmP;(Y9e=e(5l}-&wrnr=RLBwRw%81<$k0z+Cy!zXI
z*$`fGq&B8DzXkJ+n4UB9V8=?H%qWBYqLx!QweRa;rZ#UXX|K@
z*W0ucaX%Iar@Q_+=?+PVl6#lJq>XZWt7cEAZP@O7dggGLAhA^$-S1(R%gds~?bn-g
z1AfBfGH^v3C8p=>T7nce-pD|lTOfk$r}&SQy`6uws@4@>i(~7Io8cJ4<^v(pkg>aN(ML30H`#8TSj->#
z!IH8pr3(0eMt&9<+HR*cp(1nN=J~25%Su!7TVL$~OK8kB>`iALV)Wl=T7gF6OPx|;
z$WeU*eX1ti;k$ZqR6?_pPA;l@tmp+wNP$A@wLXe)jElK;dH&JQjI|@90#P|`AfyhA
z`tS^y?H0C5`Molu__lTGb~D21Yg*_a0l%ZbpLNj2#ln@<^u(7h6<5@`<14tl1cSmm
ziO@nOJl}lb$8v6cWc2BIQiXMky|P|DU455lI*cf?#bjQGd#OuyZaac@SJ%&WACa$VkU#Wbe$4^>(%TjgK8(WrfJ;T}J_oeD?=I)?P
z-7hcQ_d*vqL>|V@P#C3*PgknE^$Tu}r-Z*0_UmmYt>jiRgmf;Bdal4=Nozc=pZGnS
zlK3s(jr-}Ywa~zMvo@^>J^E1HvddPDbTm;LegcCqZ%kPW;@sZ*7~HEzJ=C{9=S%HN
zAvY=QZoTX>5-fKnJ=^%CC!iy~W*M)Muv1yyqmlk}Y}|TvpH!({S}O}A8`Wz6*gEC*
zoyLInrK2W4cMdS_J$}(@d&QnBgb{$X_Cch#E#z#H%j^xNI7^q8MEK9^aS
z&-@Olmt)nI`TI4XVlf(*s&{NZBa;s>Bm~6^ng=`=t8IATnRZ&nruS%>k1?5#Ss>EO
znfGhO{`rCo>+j|SwE2D9zGrKEc>Y?N9Cd0{ioyp+ZL8ejMi)j)2JUW^_HMl?}4q>q=H^M;!7SQAPXzSlKgI)J{O9OR>KGix+R1Y6L
zbIj`QIqV7ZGA~}hed{4z+As9ihgKL+#ENI6;y;HBm4Lwz_fAONz9_6=eh){m^PSw%
zS(K_c(1qNTJ-#yBP&m)H8?lZ0v_ktv#Vd{2d*!}dZs1{?S){=swT)!fq|NpNUd}Br
z+#vBK1hc{KejNw51K%0j2QDSPB_>8^58K;OYeLDBP0h*IF7PC?Id4{*@7?d0q1nB)
z+cpn?QAP>A``uCwJW0;=WUD;~^Ym)=``tAOnBP*y^behL9er1BGztxbA6FEbzF*r4
zR06m-Ih4NMQ<2jDac86Xfl;7@oG2tKUnb4~_w$3Z&7%;No)~M7Qw|@i-6}DT>ERhfx|Eo_!n){-ooRS1>?j`IvWL&5a=&*h<7U%HJ5deLG$a4l#mO&EFr|{82k0
z?v$!vd48!$9lV%bQQ7$hpLfXqDMS2=Bxgn06rud5=Pb95$@`rS{{{tO_eD_(2*{CL
z*fI6bjE2nwz0_{CDeAFC3c$9*$oOi(-@-F?-5<-sk?F}9rzbP&P5W!z8|%v4<1&qz
zpyfK1$*=i-YmtfCnXGE{IQXJ!diowfk8soa+(Rs7#b9>&CvKV}`zPhL)A%>9sx(cd
zO>2>J5?jd-JIJlAg{oqqXa)bD`Fp76Lj4wL#AA;HxGReLR0B@`R?IUR%$zkho(~i!
zd`sA&@%-^g4*LP|X*9npvHiBLcB>#isppx@v(^L`LOI@7h+9nGDlw%o#EVn_Aa_~)
z_+(e(LwNXQf<9`|wSffxFd;c`E25cTY%~
znw+h5W|26(GqX+sJe0oL38jt8_|)}N|5zv>LW0ieKYHYCTvgF`HXOi@vuaR4LeSs_
z;!T^AvX2ESD;#%#iCf&Yis1)1*Uj(7NTIyf^3E_cAGIXk_IbM_XJZuVkFOqy&yV9m
zK#)tCYxOCi3t_$^Gh6}{pH*+-m?--oYYzgvx)0VUB>hT4
zFWmSp8q}j;LYCJTGVxXcFV9jpuG39U45gk1pim`3f2Lm!0={C2iOCY>$Ge4@
z3frn3p>=oYW6LT{wKhXF?pnyt58fj)czZKd-&V{{0HP0V(50Y>YY<`Dc@nTTX%g7k
zcn{JVQ%<@6jMUoqUQ|DqW>P&^nAnFCY^PO4y(rs(9-Y2-BvM}d?RToyus@co4u~f9519Sw`;>8uK&pP&fPu9pyIrl*
zus5O@2q+Wz>pWrCOsuc{gs@}t;bgT6&r*Fh-P?gnJIQ1^7BlmI{qSv)PLsR`nN=htVL^8rph!(XQK
zr<`l*!TlR@M{~Cr)gP@p75`MDQFDhXvzA1yz4QQ&Z0p=h@-j^OjV-PXfOTjX-?
zg?m?6zsFS0$`iiN*Y53rS=-g5co@%2qcRnC;$HmO<%pKfl&%$k*MlR)w8ne?7$%-?
zr_qsf9$0eG*+~g)WOrQL;Q6=TI}DuL!~k91(4%3<{|ks4m}QnNJ&q+$K;K>)wlLB<
z8_6=e-^b?iR=KL`G1<^zynWrbOI(~g2Yi=CFk?7IogKsLlC*~R0-3SBMZUfQdHhrL
zH?FV4nvcJpr8F=d@7P}dc73y9P;~c5gz3=FzEcIOdDwL$f#h*@?2e3xPUE4!qtm6H
z&Wa(K0pZv846BCKhyLKnKTP!hrbw*Oa^ndW*6guyV=7Z?t>q!FF|AZ^w@j}VGqSm_Zm-IS=8AEG7DOntri@G*d8A-lo4^h9HkAP&7Cwg$?DCu+3WY43CPMTBOIfr
zn@mCu6=DryE%07dEzaC*nbt+wH(F&+#-9B=G@URzXocD|!}QO-(ayqbkLN0}TH{hD
zVVu2QM#g3bn;uA4pAKJXc<;)G6CzFPztmEtM6qH1T22RP{_+V@Gr=$gZ@cBS>7o&w
zPq)jgv4p))eTC?>xZMbPT0!MlTJ~*u!Iv`nr#|&fU=fQ`tb6CfCb9HscgnD{zs`p%
z4hw8Irlg5u6A$!;v`P|>xJ3o_+$Qjq&(y!m6`=^8&jU(W`Y0WQ7S>BYiV2KfmTle@
zAHcPZPL%yoQY8M}(9UA9(!0Th{;;Z^M+JF&-oLfL1yDRTM^ZzoS{Pg!U45B^NYd)w
zm$g}F)v&2DrPSqexHjuOf5Bkso!i%+jGAE%^$SP24YEl)8@GKRa+*=
z1mjE=mHQK2Nu$q03hyLxReF`eU4hyO`i5TPy4W1Qy-zVDggBMUn&$JHUK8l9ww>rW_|9;qR3ob
zaH9HSgWa67fm3Kf#r?F>0{1`5ohkg36M_IfmLu1(QA}|hIV=DIasC9=UsNeI+En|o
zbZv)=X3u@~ubywS_}tRW&%(U8n$4m*D7;bX97+M$OgLq2s{yut(pmNpc+L?Ul^hjt
z&+AB?0YEH#i>b26i)bWEf&G?*3EBENuV14z(_cwQuig5PvAZ9w4xVwyAgixz=m?ZW
zsK&Sx!7I&*j*A0MckUz{dF;e;Keit6vK@aHXTj=fo0CUHE>CJ60)a1(MS(N#5jh$W
zeGOXnPypJE7-cDecc7-rNZW5;X|COrWdeGVOF$mfz#R
z7ec&K_c@!OIch05n1y93OSm*IV|XBicJ=sJka|}{(S?oC2e3scnc~4hjWMWPKyWD;
zI-ooLEipQTf0dUUU^9e1AweU8xP-OAv|Y0Dye{)owp@A{Q%S}&R&nMTc(eNXYDxLt
zKz=bpWTV}4S;$kufmyu0|85(#VGF(|`g?$d@9Sr{_eOTT;ci$7Op3n3EnAu!Ks$~V
zNx}q7nElR;gupc>+0}QI09*6C0#bBN0=f>MVYt@d%f;#Dq0+XQ99)tlL4{y6yl4L;l671t2&-u1hW$lk}J2NW#WeLV>uKjX6R
z2a{Pq;R1=!nh&zx^Tg?@?h?fs{X16V1%L|5of7CqYipka8yR%1ui`T?@BLjU5#;3h(U-ZVt
zpS{eOj^&uOSF@OIuP
zy$kQ>{S`F01=&HlTbC7n7o=v=QjNN
zH^IL!603e{v`?MYDp#Rfx+EAPw;|o;E*S(yEM_WrP=Y3<4|esbziBG
zGa}1Jga6aSwZ}u9wed5%_GYrBoGw)CDKkxbb_xYXY`#j%sKIb{ldA|C(cL`~c
zf6fNgKTY)W58^G`85y>(?pHNfN&JqEgQHGKpdRP6N*jX(s$bS+W03zcI(NYxSicZm
zkcZqVZT;e7)`la>$X)kIaKfdvuGbOJ)JmLzk(1Lp>OK{&ND0)Zj-c>3xj^;FY66w$
zE5v)mk!hLp-w#-DqtZ7#N;siV2BNfF#?JM3*HtvC{aTR}Qs6sk6);qeb&F$us(%wu
zHmzh^q6BUzfYDx}j1iCw%B?ekY0-V^DX`KWzLzYh6<^apB&XinQ`A=Uj)y@K*Uq3<
zC16^qy>(>qgZoJgDrCo}0{*9{J6-x9))TxKDuy9cf%9)zWK^tvu%{sO$UA)e&6>i|kka${n-rsNCU_f2ZScHgl7x(>_V8
zgyHqke$MG#w-taR_YNuGOZybVPgzTHZ@koXJ<}~En~T$#G`eu0IG|5e7LHQf*pd|H
zn6?yCQBsFH6+(#Jb8EDl>xJ9wwZYf&rTt|!DJ@f5{J6fHr%}i~l3`bxkD3SLyZC=|
z;t;nVURxsY&KilaYmSZHP}b_T?)g3!J-ug0^0{OxL#fn|esxOVRa>&HbJyWHKoxH{
z+iq5*uU?8uK7(pBf(-?A`43)6{LmRuZT(K(8@%Wvd|s0<-`oY=7af1x2q!Kk{IL57
zS&$#&fE8fs$}z!R`$W)j$X@c-e#Y_a+Z4U`Q4%E8rHHos
zeGW)RSb7{PUA*DG3L|&qUzQbh3=-cMNPBn^3@?k)0u{=^tJ`Ya^=fcnJ{n3((Kq*Q}r
zeX~L16RXDqVOK;WFR3T6t|}l%Bg4fs;H!g5M#3;$1%$P-+GqD;7v*bqPeoeRBDP0k
zUfZgW9u{nEvVE%_ge|$om&<6S3Ko~?!jqnlXVTm+M`?{o7)-!OCVkGTHfq!>Obg-A
zi)k&>uQ1F>YeG`7oT*A6Qio8;B7AJoPToMoNTEi5?+ir49})D2RX%DbTi(V{kecxO
z*x)fI@OOWjF!o(tb)DMz&l9^hQ=EYIS|3@E*u83G$o5n3F#O!wEZJplUZBg)4Ca3c
z9yZ&!D-CYUZ@(11ESZmg4(Swh;1Hz=rzXdB{7$PR&+sCIqf{^0h`7nhWmP?c=r7db
zIYMsYy4^BOV8!cX_$eQ5WyZqjU-cYji2C^I_9Hug{Ch$lGunJ5%>R-KhEN$ejq1Tz6u)H+{Zb-?2B+|HJ6*%U=m}c9%8G>G>ZQ6)SA9j!v
zH+c~{^9P@Zt|gf0+*F1ogRCAWXlrQgIke^|1N6S*YA7%=3z>NKmv}W{*)aB&@5w(P
z#hmQTEo&MxO;loWr>N(sW2`mGg`h}#NgmI{?U=FmfVmyxlxVJ?*lEX#MkDYYw@4r1
z3%im)FStK%$oPOHiqvR-rJ6#d4ym-j_#>Yj&93y{2c`6X*gX^6{kgj8LFmq(Qd^j3
zYs+d{W)gJzNjq+T>y{kFxGkRk=`QlGoJtj7{&+a-#(3S-pLioQAt3+?8k}c^@z=g}Y6dPY#r)ie!1GRZa
z&SY2KlW;$X>%A70-lq30O6e^%7DK)RC7A5xZ$Vm7K#dhNPJ1AlZTv%LkVGy+aNSH3
z(w6xFn)_~NkzK9MJw>Q3u1N}*sEyCP1tEH4gdC$MTNl@Q#>w(+sZjsSGS5u#;L&WX
zvj3Y=)Su53CvIA!+Cu5V+R2Px@!Wf~YY=)WGJP`K(l5@b+-^2)zvqr8Ez$5u;ijdp
zZ1;IYa{=vH0Kccwl(%^VZ~Gj8tqJop@jjT@x!%;Vg0f5d3avQLluFm=Bhk8Xw71_V
zoYh=oqe@=pqCHnB->^_2!eLtcpM(5F8N%RMRpP53sT)&{W(ii09cd;X$czh-`VpY+N0!BY3gn}unY
zH+rWqeJif!8xr2&J%WN6yUJ$L3_s>c1C``R3@DU`?f)zHdZ7yFx0qjbcp@OKQ5KpY
zg^bt_1m(CtTVsEDPVXK?p>c=jeBn3SL%FUpsy?0&$DmC4pRccWiw4a%rBopO4Q35!
zphJZ(h!6$gW=$J&;(s#n01oQg-TMM{eO(5K$8aS
z_4eYhc1f>x2*%OlRYF3F=-4v>;yklW`r`N5LJ#z3k%`C5cEoyQoqE?Nc}T{?$~rnX
zb7??~J#Sa|4Tld1=-Ftq!T<3t?`#S6SM_!1#r*pyk-Zx>H!geM%xhM&%NP^qinucQ-`o^rn9e$ZyK0P>Wp{;_jzDfy{mg1OL5$
zb&Y4!h(^h1lO%w&Q`97qW4MP{Q|g|#DSiD5K>!ARJ|}m};Opl7Ii7cgCJbVVKD@ct
zubY8;(`?Vkm9cJsWD3rm>-D=tFe=`nh4YybW9mDr{TRrP;jin}K?-HaxlJTq5emJw
zuLNe~YH;hsLfZbF7kdY#0j?3_Oy6uhM3|ur1Ez}_xWN|b#$CHqZuO4zL%5#VkQDo4
zzbb2C%yV_lF71sbwDn~jk52gPopy_{?u_$-Nu5NL%IL$6hsWt8I$foSt6hN9U&OS6=%J=d}@Q%2*1y2cY^D0)#i7qIIaO&_}*#H{MDH
zpusGHq``I-iuukC`ZznN`}p>rWE+1CbK&3x?7W4mcV_K=EdX{GQ$}~W5Y~e%sLn2l
zia@#!{>gnvpflVpcH}vjFF`sKS|(2tCab=5hO(Bt87Ammih$36hs^vgKohs7@&ps@
zseW;H$GQIh5MLRR^&znivn4_b(rf5-8Ng=+p#VbJ?kdUX7)
zP%B$LlNe35fJ26Ha6RPH{~QtLe0UyYjMKO9MM!}HIbg^RrHgCQCWojMEG&5+d^s$-L|Th}@odF;
zD#?tA-KPaAlt6b_rH$3_539ZH_CdlUQArRH51;1PM&CW7<3Z_OIHqWab`~fB_V1Uz
zmY65B+HB!X>-s)F+JM1<0undb)Mw?P{LkBUm-(}HQh4Laq_p;Mo
ziwfMp_z_-AO<0sRX=O_~e8qw4KdRVJT+n#%rPvq*9}GTa5Dw5)hMJn(I$L~@c?`%G
zHeVU9&28y%uetXzi~OIXPhqVvMWKT%%0{&!9OZNiK?IzjWC527F}OqH4IjX2Yw7eHq)8OYNXmZ!elf`>
literal 0
HcmV?d00001
diff --git a/frontend/public/js/bing/chat/amd.js b/frontend/public/js/bing/chat/amd.js
new file mode 100644
index 0000000000..c15dde7325
--- /dev/null
+++ b/frontend/public/js/bing/chat/amd.js
@@ -0,0 +1,2 @@
+/* eslint-disable */
+var amd,define,require;(function(n){function e(n,i,u){t[n]||(t[n]={dependencies:i,callback:u},r(n))}function r(n){if(n){if(n)return u(n)}else{if(!f){for(var r in t)u(r);f=!0}return i}}function u(n){var s,e;if(i[n])return i[n];if(t.hasOwnProperty(n)){var h=t[n],f=h.dependencies,l=h.callback,a=r,o={},c=[a,o];if(f.length<2)throw"invalid usage";else if(f.length>2)for(s=f.slice(2,f.length),e=0;e0)for(o=!1,f=0;f=0?encodeURIComponent(atob(decodeURIComponent(h[1]))):h[1])):f=encodeURIComponent(n[u]("href")),clc.furl&&!n[u]("data-private")?o+="&url="+f:clc.mfurl&&(o+="&abc="+f));r&&(o+="&source="+r);c="";clc.mc&&(c="&c="+ctcc++);l="&"+o+c;_w.si_sbwu(l)||_w[e]&&_w[e](l,n,i,s);break}if(t)break}}catch(v){_w.SharedLogHelper?SharedLogHelper.LogWarning("clickEX",null,v):(new Image).src=_G.lsUrl+'&Type=Event.ClientInst&DATA=[{"T":"CI.Warning","FID":"CI","Name":"JSWarning","Text":'+v.message+"}]"}return!0};_w.si_sbwu||(_w.si_sbwu=function(){return!1}),function(){_w._G&&(_G.si_ct_e="click")}();var wlc_d = 1500, wlc_t =63819372483;;var perf;(function(n){function f(n){return i.hasOwnProperty(n)?i[n]:n}function e(n){var t="S";return n==0?t="P":n==2&&(t="M"),t}function o(n){for(var c,i=[],t={},r,l=0;lEvent.ClientInst<\/T>".concat(_G.IG,"<\/IG>").concat(i,"<\/TS><\/D><\/E>"),s="".concat(h,"<\/Events>").concat(i,"<\/STS><\/ClientInstRequest>"),u=!_w.navigator||!navigator[o];if(!u)try{navigator[o](e,s)}catch(c){u=!0}u&&(r=sj_gx(),r.open("POST",e,!0),r.setRequestHeader("Content-Type","text/xml"),r.send(s))}}(window.perf);var perf;(function(n){function a(){return c(Math.random()*1e4)}function o(){return y?c(f.now())+l:+new Date}function v(n,r,f){t.length===0&&i&&sb_st(u,1e3);t.push({k:n,v:r,t:f})}function p(n){return i||(r=n),!i}function w(n,t){t||(t=o());v(n,t,0)}function b(n,t){v(n,t,1)}function u(){var u,f;if(t.length){for(u=0;u=0){for(r in f)h=f[r],typeof h=="number"&&h>0&&r!=="navigationStart"&&r!==s&&u.mark(r,h);_G.FCT&&u.mark("FN",_G.FCT);_G.BCT&&u.mark("BN",_G.BCT)}u.record("nav",s in f?f[s]:performance[s].type)}e="connection";c="";_w.navigator&&navigator[e]&&(c=',"net":"'.concat(navigator[e].type,'"'),navigator[e].downlinkMax&&(c+=',"dlMax":"'.concat(navigator[e].downlinkMax,'"')));_G.PPImg=new Image;_G.PPImg.src=_G.lsUrl+'&Type=Event.CPT&DATA={"pp":{"S":"'+(t||"L")+'",'+o.join(",")+',"CT":'+(n-_G.ST)+',"IL":'+_d.images.length+"}"+(_G.C1?","+_G.C1:"")+c+"}"+(_G.P?"&P="+_G.P:"")+(_G.DA?"&DA="+_G.DA:"")+(_G.MN?"&MN="+_G.MN:"");_G.PPS=1;sb_st(function(){u&&u.flush();sj_evt.fire("onPP");sj_evt.fire(_w.p1)},1)}};_w.onbeforeunload=function(){si_PP(new Date,"A")};sj_evt.bind("ajax.requestSent",function(){window.perf&&perf.reset()});var sj_log=function(n,t,i){var r=new RegExp('"',"g");(new Image).src=_G.lsUrl+'&Type=Event.ClientInst&DATA=[{"T":"'+n+'","FID":"CI","Name":"'+t+'","Text":"'+escape(i.replace(r,""))+'"}]'};var BM=BM||{},adrule="."+_G.adc+" > ul";BM.rules={".b_scopebar":[0,80,0],".b_logo":[-1,-1,0],".b_searchboxForm":[100,19,0],"#id_h":[-1,-1,0],"#b_tween":[-1,-1,1],"#b_results":[100,-1,1],"#b_context":[710,-1,1],"#b_navheader":[-1,-1,0],"#bfb-answer":[-1,-1,1],".tab-menu > ul":[-1,-1,1],".b_footer":[0,-1,0],"#b_notificationContainer":[-1,-1,0],"#ajaxMaskLayer":[-1,-1,0],"img,div[data-src],.rms_img":[-1,-1,0],iframe:[-1,-1,0]};BM.rules[adrule]=[-1,-1,1];var BM=BM||{};(function(n){function u(n,u){n in t||(t[n]=[]);!u.compute||n in r||(r[n]=u.compute);!u.unload||n in i||(i[n]=u.unload);u.load&&u.load()}function f(n,i){t[n].push({t:s(),i:i})}function e(n){return n in i&&i[n](),n in t?t[n]:void 0}function o(){for(var n in r)r[n]()}function s(){return window.performance&&performance.now?Math.round(performance.now()):new Date-window.si_ST}var t={},i={},r={};n.wireup=u;n.enqueue=f;n.dequeue=e;n.trigger=o})(BM);(function(n){function i(){var i=document.documentElement,r=document.body,u="innerWidth"in window?window.innerWidth:i.clientWidth,f="innerHeight"in window?window.innerHeight:i.clientHeight,e=window.pageXOffset||i.scrollLeft,o=window.pageYOffset||i.scrollTop,s=document.visibilityState||"default";n.enqueue(t,{x:e,y:o,w:u,h:f,dw:r.clientWidth,dh:r.clientHeight,v:s})}var t="V";n.wireup(t,{load:null,compute:i,unload:null})})(BM);(function(n){function i(){var e,o,u,s,f,r;if(document.querySelector&&document.querySelectorAll){e=[];o=n.rules;for(u in o)for(s=o[u],u+=!s[2]?"":" >*",f=document.querySelectorAll(u),r=0;r 0 ? n.split('&') : [],
+ h = s.length,
+ i = null;
+ for (u = 0; u < h; u++)
+ (f = s[u]), (e = f.indexOf('=')), e > 0 && ((i = f.substr(0, e)), i.charAt(0) == '?' && (i = i.substr(1)), i && ((i = i.toLowerCase()), (r[i] = f.substr(e + 1))));
+ return t && ((o = r.first), (r.first = null == o || o == '0' ? 1 : parseInt(o))), r;
+}
+function parseQueryParams() {
+ var n = '';
+ return (
+ (n = typeof Bing != 'undefined' && Bing.Url && Bing.Location ? Bing.Url.getQueryString(Bing.Location.get()) : _w.location.search.substring(1)), parseQueryParamsFromQuery(n)
+ );
+}
+function convertQueryParamsToUrlStr(n, t) {
+ t === void 0 && (t = null);
+ var i = t ? t : _w.location.pathname.replace(/^\/+/, '/');
+ return i + '?' + queryParamsToString(n);
+}
+function queryParamsToString(n) {
+ for (var e, o, r, u, s, f, t = [], i = 1; i < arguments.length; i++) t[i - 1] = arguments[i];
+ if (((e = []), (u = t.length), u == 0)) for (s in n) n.hasOwnProperty(s) && (t.push(s), u++);
+ for (f = 0; f < u; f++) (o = t[f]), (r = n[o]), (r || r === 0) && e.push(o + '=' + r);
+ return e.join('&');
+}
+function getCurrentQuery() {
+ if (!currentQuery) {
+ var n = parseQueryParams();
+ currentQuery = n.q;
+ }
+ return currentQuery;
+}
+function extractDomainFromUrl(n, t, i) {
+ var r, u, f, e;
+ return typeof n != 'string'
+ ? null
+ : ((r = n),
+ (u = r.indexOf('://')),
+ u >= 0 && !t && ((r = r.substr(u + 3)), (u = -1)),
+ (u = u >= 0 ? u + 3 : 0),
+ (f = r.indexOf(':', u)),
+ f >= 0 && (r = r.substr(0, f)),
+ (f = r.indexOf('/', u)),
+ f >= 0 && (r = r.substr(0, f)),
+ (e = i ? r.indexOf('www.') : -1),
+ e >= 0 && (r = r.substr(u + 4)),
+ r);
+}
+function addCommonPersistedParams(n) {
+ var i = parseQueryParams(),
+ t = queryParamsToString(
+ i,
+ 'atlahostname',
+ 'cdghostname',
+ 'thhostname',
+ 'testhooks',
+ 'adlt',
+ 'akamaithumb',
+ 'safesearch',
+ 'perf',
+ 'mockimages',
+ 'mobile',
+ 'anid',
+ 'isuserauth',
+ 'uncrunched',
+ 'clientid',
+ 'currentdate',
+ 'iss'
+ ),
+ r = n.indexOf('?') === -1 ? '?' : '&';
+ return (t = t.length > 0 ? r + t : ''), n + t;
+}
+var currentQuery = null;
+var fab_config = { fabStyle: 1, fabSbAction: 'FocusSearchBox', fabSbActionHover: 'None', fabSbActionData: 'None', fabTooltip: '', micFabAlwaysVisible: false, fabClickNoAS: true };
+sj_be(
+ _w,
+ 'click',
+ function () {
+ _G.UIWP = true;
+ },
+ 1
+);
diff --git a/frontend/public/js/bing/chat/core.js b/frontend/public/js/bing/chat/core.js
new file mode 100644
index 0000000000..b302e430f1
--- /dev/null
+++ b/frontend/public/js/bing/chat/core.js
@@ -0,0 +1,20 @@
+/* eslint-disable */
+(function (n, t) {
+ onload = function () {
+ _G.BPT = new Date();
+ // n && n();
+ !_w.sb_ppCPL &&
+ t &&
+ sb_st(function () {
+ t(new Date());
+ }, 0);
+ };
+})(_w.onload, _w.si_PP);
+_w.rms.js(
+ { 'A:rms:answers:Shared:BingCore.Bundle': '/rp/oJ7sDoXkkNOICsnFb57ZJHBrHcw.br.js' },
+ { 'A:rms:answers:Web:SydneyFSCHelper': '/rp/zIWGH0CtsF1-0jQOvc01HUV4uVQ.br.js' },
+ { 'A:rms:answers:VisualSystem:ConversationScope': '/rp/YFRe970EMtFzujI9pBYZBGpdHEo.br.js' },
+ { 'A:rms:answers:CodexBundle:cib-bundle': '/rp/w7_rwsxIfLFmlNCVn4MbZuevoMI.br.js' },
+ { 'A:rms:answers:SharedStaticAssets:speech-sdk': '/rp/6slp3E-BqFf904Cz6cCWPY1bh9E.br.js' },
+ { 'A:rms:answers:Web:SydneyFullScreenConv': '/rp/gyKl-0hbVjb5hHMqC3ZejA90ZN4.br.js' },
+);
diff --git a/frontend/public/js/bing/chat/global.js b/frontend/public/js/bing/chat/global.js
new file mode 100644
index 0000000000..4139e15b92
--- /dev/null
+++ b/frontend/public/js/bing/chat/global.js
@@ -0,0 +1,63 @@
+/* eslint-disable */
+try {
+ const logPathReg = new RegExp('/fd/ls/|/web/xls.aspx');
+ const _oldSendBeacon = navigator.sendBeacon;
+ navigator.sendBeacon = function (url, data) {
+ if (logPathReg.test(url)) {
+ return true;
+ }
+ return _oldSendBeacon.call(this, url, data);
+ };
+ const xhrOpen = window.XMLHttpRequest.prototype.open;
+ window.XMLHttpRequest.prototype.open = function (method, url) {
+ if (logPathReg.test(url)) {
+ this.isLog = true;
+ }
+ return xhrOpen.call(this, method, url);
+ };
+ const xhrSend = window.XMLHttpRequest.prototype.send;
+ window.XMLHttpRequest.prototype.send = function (body) {
+ if (this.isLog) {
+ return this.abort();
+ }
+ return xhrSend.call(this, body);
+ };
+ // const OriginalImage = Image;
+ // Image = function () {
+ // const image = new OriginalImage();
+ // const originalSet = image.__proto__.__lookupSetter__('src');
+ // image.__proto__.__defineSetter__('src', function (value) {
+ // if (logPathReg.test(value)) {
+ // return;
+ // }
+ // originalSet.call(this, value);
+ // });
+ // return image;
+ // };
+} catch (error) {
+ console.error(error);
+};
+_G = {
+ Region: 'US',
+ Lang: 'zh-CN',
+ ST: typeof si_ST !== 'undefined' ? si_ST : new Date(),
+ Mkt: 'en-US',
+ RevIpCC: 'us',
+ RTL: false,
+ Ver: '20',
+ IG: '0',
+ EventID: '645c60c3f55a42549d538c31cf5dd366',
+ V: 'web',
+ P: 'SERP',
+ DA: 'PUSE01',
+ SUIH: 'FfN6lYBDNDOEzj4vnSOJqQ',
+ adc: 'b_ad',
+ EF: { cookss: 1, bmcov: 1, crossdomainfix: 1, bmasynctrigger: 1, bmasynctrigger3: 1, newtabsloppyclick: 1, chevroncheckmousemove: 1 },
+ gpUrl: '/fd/ls/GLinkPing.aspx?',
+};
+_G.lsUrl = '/fd/ls/l?IG=' + _G.IG;
+curUrl = '/search';
+function si_T(a) {
+ return true;
+}
+_G.CTT = '3000';
diff --git a/frontend/public/js/bing/chat/lib.js b/frontend/public/js/bing/chat/lib.js
new file mode 100644
index 0000000000..02b3fd7413
--- /dev/null
+++ b/frontend/public/js/bing/chat/lib.js
@@ -0,0 +1,97 @@
+/* eslint-disable */
+var Lib;
+(function (n) {
+ var t;
+ (function (n) {
+ function u(n, t) {
+ var r, i;
+ if (t == null || n == null) throw new TypeError('Null element passed to Lib.CssClass');
+ if (n.indexOf) return n.indexOf(t);
+ for (r = n.length, i = 0; i < r; i++) if (n[i] === t) return i;
+ return -1;
+ }
+ function f(n, u) {
+ if (n == null) throw new TypeError('Null element passed to Lib.CssClass. add className:' + u);
+ if (!i(n, u))
+ if (r && n.classList) n.classList.add(u);
+ else {
+ var f = t(n) + ' ' + u;
+ o(n, f);
+ }
+ }
+ function e(n, f) {
+ var e, s, h;
+ if (n == null)
+ throw new TypeError('Null element passed to Lib.CssClass. remove className:' + f);
+ i(n, f) &&
+ (r && n.classList
+ ? n.classList.remove(f)
+ : ((e = t(n).split(' ')),
+ (s = u(e, f)),
+ s >= 0 && e.splice(s, 1),
+ (h = e.join(' ')),
+ o(n, h)));
+ }
+ function s(n, t) {
+ if (n == null)
+ throw new TypeError('Null element passed to Lib.CssClass. toggle className:' + t);
+ r && n.classList ? n.classList.toggle(t) : i(n, t) ? e(n, t) : f(n, t);
+ }
+ function i(n, i) {
+ var f, e;
+ if (n == null)
+ throw new TypeError('Null element passed to Lib.CssClass. contains className:' + i);
+ return r && n.classList
+ ? n.classList.contains(i)
+ : ((f = t(n)), f)
+ ? ((e = f.split(' ')), u(e, i) >= 0)
+ : !1;
+ }
+ function h(n, i) {
+ var f, e, r, u, o;
+ if (n.getElementsByClassName) return n.getElementsByClassName(i);
+ for (f = n.getElementsByTagName('*'), e = [], r = 0; r < f.length; r++)
+ (u = f[r]), u && ((o = t(u)), o && o.indexOf(i) !== -1 && e.push(u));
+ return e;
+ }
+ function o(n, t) {
+ n instanceof SVGElement ? n.setAttribute('class', t) : (n.className = t);
+ }
+ function t(n) {
+ return n instanceof SVGElement ? n.getAttribute('class') : n.className;
+ }
+ var r = typeof document.body.classList != 'undefined';
+ n.add = f;
+ n.remove = e;
+ n.toggle = s;
+ n.contains = i;
+ n.getElementByClassName = h;
+ n.getClassAttribute = t;
+ })((t = n.CssClass || (n.CssClass = {})));
+})(Lib || (Lib = {}));
+
+function getBrowserWidth() {
+ var t = _d.documentElement,
+ n = Math.round(_w.innerWidth || t.clientWidth);
+ return n < 100 && (n = 1496), n;
+}
+function getBrowserHeight() {
+ var t = _d.documentElement,
+ n = Math.round(_w.innerHeight || t.clientHeight);
+ return n < 100 && (n = 796), n;
+}
+function getBrowserScrollWidth() {
+ var n = Math.round(_d.body.clientWidth);
+ return n < 100 && (n = 1496), n;
+}
+function getBrowserScrollHeight() {
+ var n = Math.round(_d.body.clientHeight);
+ return n < 100 && (n = 796), n;
+}
+
+window.ClientObserver = {
+ getBrowserWidth: getBrowserWidth,
+ getBrowserHeight: getBrowserHeight,
+ getBrowserScrollWidth: getBrowserScrollWidth,
+ getBrowserScrollHeight: getBrowserScrollHeight
+};
diff --git a/frontend/src/App.vue b/frontend/src/App.vue
new file mode 100644
index 0000000000..03ddb544a5
--- /dev/null
+++ b/frontend/src/App.vue
@@ -0,0 +1,23 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/frontend/src/assets/css/base.css b/frontend/src/assets/css/base.css
new file mode 100644
index 0000000000..bd6213e1df
--- /dev/null
+++ b/frontend/src/assets/css/base.css
@@ -0,0 +1,3 @@
+@tailwind base;
+@tailwind components;
+@tailwind utilities;
\ No newline at end of file
diff --git a/frontend/src/assets/css/conversation.css b/frontend/src/assets/css/conversation.css
new file mode 100644
index 0000000000..16c31ef338
--- /dev/null
+++ b/frontend/src/assets/css/conversation.css
@@ -0,0 +1,15 @@
+/* 移除顶部背景遮挡 */
+.scroller>.top {
+ display: none !important;
+}
+
+/* 移除顶部边距 */
+.scroller>.scroller-positioner>.content {
+ padding-top: 0 !important;
+}
+
+/* 聊天记录 */
+.scroller .side-panel {
+ position: fixed;
+ right: 10px;
+}
\ No newline at end of file
diff --git a/frontend/src/assets/css/main.css b/frontend/src/assets/css/main.css
new file mode 100644
index 0000000000..a1e1556c67
--- /dev/null
+++ b/frontend/src/assets/css/main.css
@@ -0,0 +1 @@
+@import './base.css';
\ No newline at end of file
diff --git a/web/img/setting.svg b/frontend/src/assets/img/setting.svg
similarity index 100%
rename from web/img/setting.svg
rename to frontend/src/assets/img/setting.svg
diff --git a/frontend/src/assets/js/bing/chat/core.js b/frontend/src/assets/js/bing/chat/core.js
new file mode 100644
index 0000000000..b302e430f1
--- /dev/null
+++ b/frontend/src/assets/js/bing/chat/core.js
@@ -0,0 +1,20 @@
+/* eslint-disable */
+(function (n, t) {
+ onload = function () {
+ _G.BPT = new Date();
+ // n && n();
+ !_w.sb_ppCPL &&
+ t &&
+ sb_st(function () {
+ t(new Date());
+ }, 0);
+ };
+})(_w.onload, _w.si_PP);
+_w.rms.js(
+ { 'A:rms:answers:Shared:BingCore.Bundle': '/rp/oJ7sDoXkkNOICsnFb57ZJHBrHcw.br.js' },
+ { 'A:rms:answers:Web:SydneyFSCHelper': '/rp/zIWGH0CtsF1-0jQOvc01HUV4uVQ.br.js' },
+ { 'A:rms:answers:VisualSystem:ConversationScope': '/rp/YFRe970EMtFzujI9pBYZBGpdHEo.br.js' },
+ { 'A:rms:answers:CodexBundle:cib-bundle': '/rp/w7_rwsxIfLFmlNCVn4MbZuevoMI.br.js' },
+ { 'A:rms:answers:SharedStaticAssets:speech-sdk': '/rp/6slp3E-BqFf904Cz6cCWPY1bh9E.br.js' },
+ { 'A:rms:answers:Web:SydneyFullScreenConv': '/rp/gyKl-0hbVjb5hHMqC3ZejA90ZN4.br.js' },
+);
diff --git a/frontend/src/assets/js/bing/chat/lib.js b/frontend/src/assets/js/bing/chat/lib.js
new file mode 100644
index 0000000000..02b3fd7413
--- /dev/null
+++ b/frontend/src/assets/js/bing/chat/lib.js
@@ -0,0 +1,97 @@
+/* eslint-disable */
+var Lib;
+(function (n) {
+ var t;
+ (function (n) {
+ function u(n, t) {
+ var r, i;
+ if (t == null || n == null) throw new TypeError('Null element passed to Lib.CssClass');
+ if (n.indexOf) return n.indexOf(t);
+ for (r = n.length, i = 0; i < r; i++) if (n[i] === t) return i;
+ return -1;
+ }
+ function f(n, u) {
+ if (n == null) throw new TypeError('Null element passed to Lib.CssClass. add className:' + u);
+ if (!i(n, u))
+ if (r && n.classList) n.classList.add(u);
+ else {
+ var f = t(n) + ' ' + u;
+ o(n, f);
+ }
+ }
+ function e(n, f) {
+ var e, s, h;
+ if (n == null)
+ throw new TypeError('Null element passed to Lib.CssClass. remove className:' + f);
+ i(n, f) &&
+ (r && n.classList
+ ? n.classList.remove(f)
+ : ((e = t(n).split(' ')),
+ (s = u(e, f)),
+ s >= 0 && e.splice(s, 1),
+ (h = e.join(' ')),
+ o(n, h)));
+ }
+ function s(n, t) {
+ if (n == null)
+ throw new TypeError('Null element passed to Lib.CssClass. toggle className:' + t);
+ r && n.classList ? n.classList.toggle(t) : i(n, t) ? e(n, t) : f(n, t);
+ }
+ function i(n, i) {
+ var f, e;
+ if (n == null)
+ throw new TypeError('Null element passed to Lib.CssClass. contains className:' + i);
+ return r && n.classList
+ ? n.classList.contains(i)
+ : ((f = t(n)), f)
+ ? ((e = f.split(' ')), u(e, i) >= 0)
+ : !1;
+ }
+ function h(n, i) {
+ var f, e, r, u, o;
+ if (n.getElementsByClassName) return n.getElementsByClassName(i);
+ for (f = n.getElementsByTagName('*'), e = [], r = 0; r < f.length; r++)
+ (u = f[r]), u && ((o = t(u)), o && o.indexOf(i) !== -1 && e.push(u));
+ return e;
+ }
+ function o(n, t) {
+ n instanceof SVGElement ? n.setAttribute('class', t) : (n.className = t);
+ }
+ function t(n) {
+ return n instanceof SVGElement ? n.getAttribute('class') : n.className;
+ }
+ var r = typeof document.body.classList != 'undefined';
+ n.add = f;
+ n.remove = e;
+ n.toggle = s;
+ n.contains = i;
+ n.getElementByClassName = h;
+ n.getClassAttribute = t;
+ })((t = n.CssClass || (n.CssClass = {})));
+})(Lib || (Lib = {}));
+
+function getBrowserWidth() {
+ var t = _d.documentElement,
+ n = Math.round(_w.innerWidth || t.clientWidth);
+ return n < 100 && (n = 1496), n;
+}
+function getBrowserHeight() {
+ var t = _d.documentElement,
+ n = Math.round(_w.innerHeight || t.clientHeight);
+ return n < 100 && (n = 796), n;
+}
+function getBrowserScrollWidth() {
+ var n = Math.round(_d.body.clientWidth);
+ return n < 100 && (n = 1496), n;
+}
+function getBrowserScrollHeight() {
+ var n = Math.round(_d.body.clientHeight);
+ return n < 100 && (n = 796), n;
+}
+
+window.ClientObserver = {
+ getBrowserWidth: getBrowserWidth,
+ getBrowserHeight: getBrowserHeight,
+ getBrowserScrollWidth: getBrowserScrollWidth,
+ getBrowserScrollHeight: getBrowserScrollHeight
+};
diff --git a/frontend/src/components/ChatNav/ChatNav.vue b/frontend/src/components/ChatNav/ChatNav.vue
new file mode 100644
index 0000000000..9d24938899
--- /dev/null
+++ b/frontend/src/components/ChatNav/ChatNav.vue
@@ -0,0 +1,150 @@
+
+
+
+
+
+
+
+
+
+
+
+ 设置用户
+
+
+
+ 取消
+ 保存
+
+
+
+
+ 将删除包括 Cookie 等的所有缓存?
+
+
+ 取消
+ 确定
+
+
+
diff --git a/frontend/src/components/ChatNav/ChatNavItem.vue b/frontend/src/components/ChatNav/ChatNavItem.vue
new file mode 100644
index 0000000000..14d5dd645f
--- /dev/null
+++ b/frontend/src/components/ChatNav/ChatNavItem.vue
@@ -0,0 +1,16 @@
+
+
+
+ {{ navConfig.label }}
+ {{ navConfig.label }}
+
diff --git a/frontend/src/components/ChatPromptStore/ChatPromptItem.vue b/frontend/src/components/ChatPromptStore/ChatPromptItem.vue
new file mode 100644
index 0000000000..89c848ebc1
--- /dev/null
+++ b/frontend/src/components/ChatPromptStore/ChatPromptItem.vue
@@ -0,0 +1,40 @@
+
+
+
+
+
+ {{ props.source.act }}
+
+ 编辑
+ 删除
+
+
+ {{ props.source.prompt }}
+
+
diff --git a/frontend/src/components/ChatPromptStore/ChatPromptStore.vue b/frontend/src/components/ChatPromptStore/ChatPromptStore.vue
new file mode 100644
index 0000000000..5a599cd307
--- /dev/null
+++ b/frontend/src/components/ChatPromptStore/ChatPromptStore.vue
@@ -0,0 +1,193 @@
+
+
+
+
+
+
+ 下载
+ 添加
+
+ 导入
+
+
+ 导出
+ 清空
+
+
+
+
+
+
+ 标题
+
+ 描述
+
+ 保存
+
+
+
+
+
+ {{ config.name }}
+
+
+
+
+
+
+
+
diff --git a/frontend/src/main.ts b/frontend/src/main.ts
new file mode 100644
index 0000000000..68d7c73146
--- /dev/null
+++ b/frontend/src/main.ts
@@ -0,0 +1,14 @@
+import './assets/css/main.css';
+
+import { createApp } from 'vue';
+import { setupStore } from './stores';
+
+import App from './App.vue';
+import router from './router';
+
+const app = createApp(App);
+
+setupStore(app);
+app.use(router);
+
+app.mount('#app');
diff --git a/frontend/src/router/index.ts b/frontend/src/router/index.ts
new file mode 100644
index 0000000000..0f9d733df2
--- /dev/null
+++ b/frontend/src/router/index.ts
@@ -0,0 +1,15 @@
+import { createRouter, createWebHashHistory } from 'vue-router';
+
+const router = createRouter({
+ // history: createWebHistory(import.meta.env.BASE_URL),
+ history: createWebHashHistory(import.meta.env.BASE_URL),
+ routes: [
+ {
+ path: '/',
+ name: 'chat',
+ component: () => import('@/views/chat/index.vue'),
+ },
+ ],
+});
+
+export default router;
diff --git a/frontend/src/stores/index.ts b/frontend/src/stores/index.ts
new file mode 100644
index 0000000000..68eccb0a86
--- /dev/null
+++ b/frontend/src/stores/index.ts
@@ -0,0 +1,10 @@
+import type { App } from 'vue';
+import { createPinia } from 'pinia';
+import piniaPluginPersistedstate from 'pinia-plugin-persistedstate';
+
+export const store = createPinia();
+store.use(piniaPluginPersistedstate);
+
+export function setupStore(app: App) {
+ app.use(store);
+}
diff --git a/frontend/src/stores/modules/prompt/index.ts b/frontend/src/stores/modules/prompt/index.ts
new file mode 100644
index 0000000000..ebec8b1952
--- /dev/null
+++ b/frontend/src/stores/modules/prompt/index.ts
@@ -0,0 +1,114 @@
+import { ref, computed } from 'vue';
+import { defineStore } from 'pinia';
+
+export interface IPrompt {
+ act: string;
+ prompt: string;
+}
+export interface IPromptDownloadConfig {
+ type: 1 | 2;
+ name: string;
+ url: string;
+ refer: string;
+ isDownloading?: boolean;
+}
+
+export interface IOptPromptResult {
+ result: boolean;
+ msg?: string;
+ data?: T;
+}
+
+export const usePromptStore = defineStore(
+ 'prompt-store',
+ () => {
+ const promptDownloadConfig = ref>([
+ {
+ type: 1,
+ name: 'ChatGPT 中文调教指南 - 简体',
+ url: 'https://raw.githubusercontent.com/PlexPt/awesome-chatgpt-prompts-zh/main/prompts-zh.json',
+ refer: 'https://github.com/PlexPt/awesome-chatgpt-prompts-zh',
+ },
+ {
+ type: 1,
+ name: 'ChatGPT 中文调教指南 - 繁体',
+ url: 'https://raw.githubusercontent.com/PlexPt/awesome-chatgpt-prompts-zh/main/prompts-zh-TW.json',
+ refer: 'https://github.com/PlexPt/awesome-chatgpt-prompts-zh',
+ },
+ {
+ type: 1,
+ name: 'Awesome ChatGPT Prompts',
+ url: 'https://raw.githubusercontent.com/f/awesome-chatgpt-prompts/main/prompts.csv',
+ refer: 'https://github.com/f/awesome-chatgpt-prompts',
+ },
+ {
+ type: 2,
+ name: '',
+ url: '',
+ refer: '',
+ },
+ ]);
+ const isShowPromptSotre = ref(false);
+ const isShowChatPrompt = ref(false);
+ const promptList = ref>([]);
+ const keyword = ref('');
+ const selectedPromptIndex = ref(0);
+
+ const optPromptConfig = ref<{
+ isShow: boolean;
+ type?: 'add' | 'edit';
+ title?: '添加提示词' | '编辑提示词';
+ tmpPrompt?: IPrompt;
+ newPrompt: IPrompt;
+ }>({
+ isShow: false,
+ newPrompt: {
+ act: '',
+ prompt: '',
+ },
+ });
+
+ const searchPromptList = computed(() => {
+ if (!keyword.value) {
+ return promptList.value;
+ }
+ return promptList.value?.filter((x) => x.act.includes(keyword.value) || x.prompt.includes(keyword.value));
+ });
+
+ function addPrompt(list: Array): IOptPromptResult<{ successCount: number }> {
+ if (list instanceof Array && list.every((x) => x.act && x.prompt)) {
+ if (promptList.value.length === 0) {
+ promptList.value.push(...list);
+ return {
+ result: true,
+ data: {
+ successCount: list.length,
+ },
+ };
+ }
+ const newPromptList = list.filter((x) => promptList.value?.every((exist) => x.act !== exist.act && x.prompt !== exist.prompt));
+ promptList.value.push(...newPromptList);
+ return {
+ result: true,
+ data: {
+ successCount: newPromptList.length,
+ },
+ };
+ } else {
+ return {
+ result: false,
+ msg: '提示词格式有误',
+ };
+ }
+ }
+
+ return { promptDownloadConfig, isShowPromptSotre, isShowChatPrompt, promptList, keyword, searchPromptList, selectedPromptIndex, optPromptConfig, addPrompt };
+ },
+ {
+ persist: {
+ key: 'prompt-store',
+ storage: localStorage,
+ paths: ['promptList'],
+ },
+ }
+);
diff --git a/frontend/src/utils/cookies.ts b/frontend/src/utils/cookies.ts
new file mode 100644
index 0000000000..900ab94997
--- /dev/null
+++ b/frontend/src/utils/cookies.ts
@@ -0,0 +1,23 @@
+export function get(name: string) {
+ const v = document.cookie.match('(^|;) ?' + name + '=([^;]*)(;|$)');
+ return v ? v[2] : null;
+}
+
+export function set(name: string, value: string, minutes = 0, path = '/', domain = '') {
+ let cookie = name + '=' + value + ';path=' + path;
+ if (domain) {
+ cookie += ';domain=' + domain;
+ }
+ if (minutes > 0) {
+ const d = new Date();
+ d.setTime(d.getTime() + minutes * 60 * 1000);
+ cookie += ';expires=' + d.toUTCString();
+ }
+ document.cookie = cookie;
+}
+
+const cookies = {
+ get,
+ set,
+};
+export default cookies;
diff --git a/frontend/src/utils/utils.ts b/frontend/src/utils/utils.ts
new file mode 100644
index 0000000000..3fb971fb46
--- /dev/null
+++ b/frontend/src/utils/utils.ts
@@ -0,0 +1,6 @@
+export const isMobile = () => {
+ const mobileRegex = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i;
+ return mobileRegex.test(navigator.userAgent);
+};
+
+export const sleep = (timeout: number) => new Promise((resolve, reject) => setTimeout(resolve, timeout));
diff --git a/frontend/src/views/chat/components/ChatPrompt/ChatPrompt.vue b/frontend/src/views/chat/components/ChatPrompt/ChatPrompt.vue
new file mode 100644
index 0000000000..d5e7396b94
--- /dev/null
+++ b/frontend/src/views/chat/components/ChatPrompt/ChatPrompt.vue
@@ -0,0 +1,232 @@
+
+
+
+
+
+
+
diff --git a/frontend/src/views/chat/components/ChatPrompt/ChatPromptItem.vue b/frontend/src/views/chat/components/ChatPrompt/ChatPromptItem.vue
new file mode 100644
index 0000000000..f6727d84eb
--- /dev/null
+++ b/frontend/src/views/chat/components/ChatPrompt/ChatPromptItem.vue
@@ -0,0 +1,39 @@
+
+
+
+
+
+ {{ props.source.act }}
+
+ {{ props.source.prompt }}
+
+
diff --git a/frontend/src/views/chat/index.vue b/frontend/src/views/chat/index.vue
new file mode 100644
index 0000000000..5d12e7b70d
--- /dev/null
+++ b/frontend/src/views/chat/index.vue
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
diff --git a/frontend/tailwind.config.js b/frontend/tailwind.config.js
new file mode 100644
index 0000000000..9897a67f2f
--- /dev/null
+++ b/frontend/tailwind.config.js
@@ -0,0 +1,12 @@
+/** @type {import('tailwindcss').Config} */
+module.exports = {
+ // 禁用预加载,修复tailwind样式 与 naive-ui button等样式等冲突问题
+ corePlugins: {
+ preflight: false,
+ },
+ content: ['./index.html', './src/**/*.{vue,js,ts,jsx,tsx}'],
+ theme: {
+ extend: {},
+ },
+ plugins: [],
+};
diff --git a/frontend/tsconfig.app.json b/frontend/tsconfig.app.json
new file mode 100644
index 0000000000..0a2c51521c
--- /dev/null
+++ b/frontend/tsconfig.app.json
@@ -0,0 +1,20 @@
+{
+ "extends": "@vue/tsconfig/tsconfig.dom.json",
+ "include": [
+ "types",
+ "src/**/*",
+ "src/**/*.vue",
+ ],
+ "exclude": [
+ "src/**/__tests__/*"
+ ],
+ "compilerOptions": {
+ "composite": true,
+ "baseUrl": ".",
+ "paths": {
+ "@/*": [
+ "./src/*"
+ ]
+ }
+ }
+}
\ No newline at end of file
diff --git a/frontend/tsconfig.json b/frontend/tsconfig.json
new file mode 100644
index 0000000000..66b5e5703e
--- /dev/null
+++ b/frontend/tsconfig.json
@@ -0,0 +1,11 @@
+{
+ "files": [],
+ "references": [
+ {
+ "path": "./tsconfig.node.json"
+ },
+ {
+ "path": "./tsconfig.app.json"
+ }
+ ]
+}
diff --git a/frontend/tsconfig.node.json b/frontend/tsconfig.node.json
new file mode 100644
index 0000000000..4cee01efc7
--- /dev/null
+++ b/frontend/tsconfig.node.json
@@ -0,0 +1,18 @@
+{
+ "extends": "@tsconfig/node18/tsconfig.json",
+ "include": [
+ "vite.config.*",
+ "vitest.config.*",
+ "cypress.config.*",
+ "playwright.config.*",
+ "package.json"
+ ],
+ "compilerOptions": {
+ "composite": true,
+ "resolveJsonModule": true,
+ "module": "ESNext",
+ "types": [
+ "node"
+ ]
+ },
+}
\ No newline at end of file
diff --git a/frontend/types/env.d.ts b/frontend/types/env.d.ts
new file mode 100644
index 0000000000..a82d3055ff
--- /dev/null
+++ b/frontend/types/env.d.ts
@@ -0,0 +1,123 @@
+///
+
+declare module '*.vue' {
+ import type { DefineComponent } from 'vue';
+ const component: DefineComponent<{}, {}, any>;
+ export default component;
+}
+
+declare module 'vue3-virtual-scroll-list' {
+ import type { defineComponent } from 'vue';
+
+ const VirtualProps = {
+ dataKey: {
+ type: [String, Function],
+ required: true,
+ },
+ dataSources: {
+ type: Array,
+ required: true,
+ default: () => [],
+ },
+ dataComponent: {
+ type: [Object, Function],
+ required: true,
+ },
+
+ keeps: {
+ type: Number,
+ default: 30,
+ },
+ extraProps: {
+ type: Object,
+ },
+ estimateSize: {
+ type: Number,
+ default: 50,
+ },
+
+ direction: {
+ type: String as PropType<'vertical' | 'horizontal'>,
+ default: 'vertical', // the other value is horizontal
+ },
+ start: {
+ type: Number,
+ default: 0,
+ },
+ offset: {
+ type: Number,
+ default: 0,
+ },
+ topThreshold: {
+ type: Number,
+ default: 0,
+ },
+ bottomThreshold: {
+ type: Number,
+ default: 0,
+ },
+ pageMode: {
+ type: Boolean,
+ default: false,
+ },
+ rootTag: {
+ type: String,
+ default: 'div',
+ },
+ wrapTag: {
+ type: String,
+ default: 'div',
+ },
+ wrapClass: {
+ type: String,
+ default: 'wrap',
+ },
+ wrapStyle: {
+ type: Object,
+ },
+ itemTag: {
+ type: String,
+ default: 'div',
+ },
+ itemClass: {
+ type: String,
+ default: '',
+ },
+ itemClassAdd: {
+ type: Function,
+ },
+ itemStyle: {
+ type: Object,
+ },
+ headerTag: {
+ type: String,
+ default: 'div',
+ },
+ headerClass: {
+ type: String,
+ default: '',
+ },
+ headerStyle: {
+ type: Object,
+ },
+ footerTag: {
+ type: String,
+ default: 'div',
+ },
+ footerClass: {
+ type: String,
+ default: '',
+ },
+ footerStyle: {
+ type: Object,
+ },
+ itemScopedSlots: {
+ type: Object,
+ },
+ };
+ const VirtualList = defineComponent({
+ name: 'VirtualList',
+ props: VirtualProps,
+ });
+ export default VirtualList;
+}
diff --git a/frontend/types/global.d.ts b/frontend/types/global.d.ts
new file mode 100644
index 0000000000..c4d18c1f97
--- /dev/null
+++ b/frontend/types/global.d.ts
@@ -0,0 +1,62 @@
+declare const sj_evt: {
+ bind: (n: string, t: Function, i: boolean, r?: any) => void;
+ fire: (n: string) => void;
+};
+declare const SydneyFullScreenConv: {
+ initWithWaitlistUpdate: (n: object, t: number) => void;
+};
+declare const CIB: {
+ version: {
+ buildTimestamp: string;
+ commit: string;
+ version: string;
+ };
+ vm: {
+ actionBar: {
+ /**
+ * 输入框
+ */
+ input: HTMLTextAreaElement;
+ /**
+ * 输入框文本
+ */
+ inputText: string;
+ /**
+ * 自动建议的前置文本
+ */
+ autoSuggestPrependedText: string;
+ /**
+ * 自动建议附加文本
+ */
+ autoSuggestAppendedText: string;
+ };
+ };
+ config: {
+ features: {};
+ sydney: {
+ hostnamesToBypassSecureConnection: string[];
+ expiryInMinutes: number;
+ };
+ };
+ manager: {
+ chat: {
+ // 是否请求响应中
+ isRequestPending: boolean;
+ };
+ conversation: {
+ updateId: (Id: string, expiry: Date, clientId: string, signature: string) => {};
+ };
+ };
+};
+
+declare const __APP_INFO__: {
+ buildTimestamp: number;
+ name: string;
+ version: string;
+ dependencies: {
+ [key in string]: string;
+ };
+ devDependencies: {
+ [key in string]: string;
+ };
+};
diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts
new file mode 100644
index 0000000000..7c9b154eee
--- /dev/null
+++ b/frontend/vite.config.ts
@@ -0,0 +1,109 @@
+import { fileURLToPath, URL } from 'node:url';
+import { defineConfig, loadEnv } from 'vite';
+import vue from '@vitejs/plugin-vue';
+import pkg from './package.json';
+import { VitePWA } from 'vite-plugin-pwa';
+
+const { name, version, dependencies, devDependencies } = pkg;
+const __APP_INFO__ = {
+ buildTimestamp: Date.now(),
+ name,
+ version,
+ dependencies,
+ devDependencies,
+};
+
+// https://vitejs.dev/config/
+export default defineConfig(({ command, mode }) => {
+ const env = loadEnv(mode, process.cwd(), '');
+ return {
+ base: '/web',
+ server: {
+ port: 4000,
+ open: false,
+ host: '0.0.0.0',
+ proxy: {
+ '^/(?!web)': {
+ target: env.VITE_BASE_API_URL,
+ changeOrigin: true,
+ },
+ },
+ },
+ define: {
+ __APP_INFO__: JSON.stringify(__APP_INFO__),
+ },
+ plugins: [
+ vue(),
+ VitePWA({
+ // devOptions: {
+ // enabled: true
+ // },
+ manifest: {
+ name: 'BingAI',
+ short_name: 'BingAI',
+ // 加上图标就可以安装为 web app
+ icons: [
+ {
+ src: './img/pwa/logo-192.png',
+ sizes: '192x192',
+ type: 'image/png',
+ },
+ {
+ src: './img/pwa/logo-512.png',
+ sizes: '512x512',
+ type: 'image/png',
+ },
+ {
+ src: './img/pwa/logo-512.png',
+ sizes: '512x512',
+ type: 'image/png',
+ purpose: 'any maskable',
+ },
+ ],
+ },
+ registerType: 'autoUpdate',
+ workbox: {
+ globPatterns: ['**/*.{js,css,html,ico,png,svg}'],
+ runtimeCaching: [
+ {
+ urlPattern: /(.*?)\.(js|css|ts)/, // js /css /ts静态资源缓存
+ handler: 'CacheFirst',
+ options: {
+ cacheName: `js-css-cache`,
+ expiration: {
+ maxEntries: 100,
+ maxAgeSeconds: 60 * 60 * 24 * 7,
+ },
+ cacheableResponse: {
+ statuses: [0, 200],
+ },
+ },
+ },
+ {
+ urlPattern: /(.*?)\.(png|jpe?g|svg|gif|bmp|psd|tiff|tga|eps|ico)/, // 图片缓存
+ handler: 'CacheFirst',
+ options: {
+ cacheName: `image-cache`,
+ expiration: {
+ maxEntries: 100,
+ maxAgeSeconds: 60 * 60 * 24 * 7,
+ },
+ cacheableResponse: {
+ statuses: [0, 200],
+ },
+ },
+ },
+ ],
+ },
+ }),
+ ],
+ resolve: {
+ alias: {
+ '@': fileURLToPath(new URL('./src', import.meta.url)),
+ },
+ },
+ build: {
+ outDir: '../web',
+ },
+ };
+});
diff --git a/web/assets/index-020e1a7c.js b/web/assets/index-020e1a7c.js
new file mode 100644
index 0000000000..edae6de858
--- /dev/null
+++ b/web/assets/index-020e1a7c.js
@@ -0,0 +1,1160 @@
+import{r as L,w as Ce,o as Xe,a as Je,i as Ra,c as D,b as Oa,h as _a,d as no,e as Se,f as Ma,g as Te,j as We,k as ie,m as Lr,l as Er,p as Jt,u as Be,n as K,q as Pe,s as Ar,t as Ba,v as pt,x as an,C as La,y as Ea,z as Z,A as Dr,B as u,D as Fr,L as oo,E as qt,F as Qt,G as er,H as Aa,I as Da,J as Nr,K as Fa,M as Ze,N as io,O as Hr,P as jr,Q as mt,R as ao,S as Sr,T as ln,U as Na,V as sn,W as dn,X as Kt,Y as Ha,Z as un,_ as ja,$ as Wa,a0 as Ua,a1 as Va,a2 as Ka,a3 as qa,a4 as Ga,a5 as lo,a6 as Ue,a7 as _e,a8 as k,a9 as B,aa as H,ab as Ie,ac as re,ad as Ae,ae as ce,af as ne,ag as ze,ah as W,ai as Xa,aj as ot,ak as $t,al as cn,am as so,an as fn,ao as hn,ap as Ya,aq as Ot,ar as Ge,as as je,at as uo,au as pn,av as Za,aw as he,ax as co,ay as ue,az as te,aA as _t,aB as Ja,aC as vn,aD as fo,aE as ho,aF as po,aG as ft,aH as Qa,aI as el,aJ as tl,aK as vo,aL as rl,aM as nl,aN as ol,aO as Wr,aP as Mt,aQ as Pt,aR as il,aS as Ur,aT as Gt,aU as go,aV as al,aW as ll,aX as gn,aY as sl,aZ as mn,a_ as dl,a$ as Pr,b0 as ul,b1 as cl,b2 as bt,b3 as fl,b4 as mo,b5 as bo,b6 as yo,b7 as wo,b8 as xo,b9 as be,ba as bn,bb as hl,bc as pl,bd as ve,be as Ne,bf as it,bg as Bt,bh as U,bi as He,bj as J,bk as Y,bl as zt,bm as vt,bn as vl,bo as Co,bp as gl,bq as yn,br as ml,bs as kr,bt as bl}from"./index-e6d14a26.js";let Xt=[];const So=new WeakMap;function yl(){Xt.forEach(e=>e(...So.get(e))),Xt=[]}function Po(e,...t){So.set(e,t),!Xt.includes(e)&&Xt.push(e)===1&&requestAnimationFrame(yl)}function wn(e,t){let{target:r}=e;for(;r;){if(r.dataset&&r.dataset[t]!==void 0)return!0;r=r.parentElement}return!1}function wl(e,t="default",r=[]){const o=e.$slots[t];return o===void 0?r:o()}function xl(e){return t=>{t?e.value=t.$el:e.value=null}}const Cl=/^(\d|\.)+$/,xn=/(\d|\.)+/;function Fe(e,{c:t=1,offset:r=0,attachPx:n=!0}={}){if(typeof e=="number"){const o=(e+r)*t;return o===0?"0":`${o}px`}else if(typeof e=="string")if(Cl.test(e)){const o=(Number(e)+r)*t;return n?o===0?"0":`${o}px`:`${o}`}else{const o=xn.exec(e);return o?e.replace(xn,String((Number(o[0])+r)*t)):e}return e}let sr;function Sl(){return sr===void 0&&(sr=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),sr}function Pl(e,t,r){if(!t)return e;const n=L(e.value);let o=null;return Ce(e,i=>{o!==null&&window.clearTimeout(o),i===!0?r&&!r.value?n.value=!0:o=window.setTimeout(()=>{n.value=!0},t):n.value=!1}),n}let ht,Tt;const kl=()=>{var e,t;ht=Ra?(t=(e=document)===null||e===void 0?void 0:e.fonts)===null||t===void 0?void 0:t.ready:void 0,Tt=!1,ht!==void 0?ht.then(()=>{Tt=!0}):Tt=!0};kl();function $l(e){if(Tt)return;let t=!1;Xe(()=>{Tt||ht==null||ht.then(()=>{t||e()})}),Je(()=>{t=!0})}function tr(e,t){return Ce(e,r=>{r!==void 0&&(t.value=r)}),D(()=>e.value===void 0?t.value:e.value)}function zl(e,t){return D(()=>{for(const r of t)if(e[r]!==void 0)return e[r];return e[t[t.length-1]]})}function Tl(e={},t){const r=Oa({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:n,keyup:o}=e,i=a=>{switch(a.key){case"Control":r.ctrl=!0;break;case"Meta":r.command=!0,r.win=!0;break;case"Shift":r.shift=!0;break;case"Tab":r.tab=!0;break}n!==void 0&&Object.keys(n).forEach(d=>{if(d!==a.key)return;const c=n[d];if(typeof c=="function")c(a);else{const{stop:f=!1,prevent:h=!1}=c;f&&a.stopPropagation(),h&&a.preventDefault(),c.handler(a)}})},l=a=>{switch(a.key){case"Control":r.ctrl=!1;break;case"Meta":r.command=!1,r.win=!1;break;case"Shift":r.shift=!1;break;case"Tab":r.tab=!1;break}o!==void 0&&Object.keys(o).forEach(d=>{if(d!==a.key)return;const c=o[d];if(typeof c=="function")c(a);else{const{stop:f=!1,prevent:h=!1}=c;f&&a.stopPropagation(),h&&a.preventDefault(),c.handler(a)}})},s=()=>{(t===void 0||t.value)&&(Te("keydown",document,i),Te("keyup",document,l)),t!==void 0&&Ce(t,a=>{a?(Te("keydown",document,i),Te("keyup",document,l)):(Se("keydown",document,i),Se("keyup",document,l))})};return _a()?(no(s),Je(()=>{(t===void 0||t.value)&&(Se("keydown",document,i),Se("keyup",document,l))})):s(),Ma(r)}const Il=We("n-internal-select-menu-body"),ko="__disabled__";function gt(e){const t=ie(Lr,null),r=ie(Er,null),n=ie(Jt,null),o=ie(Il,null),i=L();if(typeof document<"u"){i.value=document.fullscreenElement;const l=()=>{i.value=document.fullscreenElement};Xe(()=>{Te("fullscreenchange",document,l)}),Je(()=>{Se("fullscreenchange",document,l)})}return Be(()=>{var l;const{to:s}=e;return s!==void 0?s===!1?ko:s===!0?i.value||"body":s:t!=null&&t.value?(l=t.value.$el)!==null&&l!==void 0?l:t.value:r!=null&&r.value?r.value:n!=null&&n.value?n.value:o!=null&&o.value?o.value:s??(i.value||"body")})}gt.tdkey=ko;gt.propTo={type:[String,Object,Boolean],default:void 0};let Ye=null;function $o(){if(Ye===null&&(Ye=document.getElementById("v-binder-view-measurer"),Ye===null)){Ye=document.createElement("div"),Ye.id="v-binder-view-measurer";const{style:e}=Ye;e.position="fixed",e.left="0",e.right="0",e.top="0",e.bottom="0",e.pointerEvents="none",e.visibility="hidden",document.body.appendChild(Ye)}return Ye.getBoundingClientRect()}function Rl(e,t){const r=$o();return{top:t,left:e,height:0,width:0,right:r.width-e,bottom:r.height-t}}function dr(e){const t=e.getBoundingClientRect(),r=$o();return{left:t.left-r.left,top:t.top-r.top,bottom:r.height+r.top-t.bottom,right:r.width+r.left-t.right,width:t.width,height:t.height}}function Ol(e){return e.nodeType===9?null:e.parentNode}function zo(e){if(e===null)return null;const t=Ol(e);if(t===null)return null;if(t.nodeType===9)return document;if(t.nodeType===1){const{overflow:r,overflowX:n,overflowY:o}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(r+o+n))return t}return zo(t)}const _l=K({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){var t;Pe("VBinder",(t=Ar())===null||t===void 0?void 0:t.proxy);const r=ie("VBinder",null),n=L(null),o=x=>{n.value=x,r&&e.syncTargetWithParent&&r.setTargetRef(x)};let i=[];const l=()=>{let x=n.value;for(;x=zo(x),x!==null;)i.push(x);for(const z of i)Te("scroll",z,f,!0)},s=()=>{for(const x of i)Se("scroll",x,f,!0);i=[]},a=new Set,d=x=>{a.size===0&&l(),a.has(x)||a.add(x)},c=x=>{a.has(x)&&a.delete(x),a.size===0&&s()},f=()=>{Po(h)},h=()=>{a.forEach(x=>x())},p=new Set,y=x=>{p.size===0&&Te("resize",window,m),p.has(x)||p.add(x)},S=x=>{p.has(x)&&p.delete(x),p.size===0&&Se("resize",window,m)},m=()=>{p.forEach(x=>x())};return Je(()=>{Se("resize",window,m),s()}),{targetRef:n,setTargetRef:o,addScrollListener:d,removeScrollListener:c,addResizeListener:y,removeResizeListener:S}},render(){return Ba("binder",this.$slots)}}),To=_l,Io=K({name:"Target",setup(){const{setTargetRef:e,syncTarget:t}=ie("VBinder");return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){const{syncTarget:e,setTargetDirective:t}=this;return e?pt(an("follower",this.$slots),[[t]]):an("follower",this.$slots)}}),lt="@@mmoContext",Ml={mounted(e,{value:t}){e[lt]={handler:void 0},typeof t=="function"&&(e[lt].handler=t,Te("mousemoveoutside",e,t))},updated(e,{value:t}){const r=e[lt];typeof t=="function"?r.handler?r.handler!==t&&(Se("mousemoveoutside",e,r.handler),r.handler=t,Te("mousemoveoutside",e,t)):(e[lt].handler=t,Te("mousemoveoutside",e,t)):r.handler&&(Se("mousemoveoutside",e,r.handler),r.handler=void 0)},unmounted(e){const{handler:t}=e[lt];t&&Se("mousemoveoutside",e,t),e[lt].handler=void 0}},Bl=Ml,{c:Ft}=La(),Ll="vueuc-style",Nt={top:"bottom",bottom:"top",left:"right",right:"left"},Cn={start:"end",center:"center",end:"start"},ur={top:"height",bottom:"height",left:"width",right:"width"},El={"bottom-start":"top left",bottom:"top center","bottom-end":"top right","top-start":"bottom left",top:"bottom center","top-end":"bottom right","right-start":"top left",right:"center left","right-end":"bottom left","left-start":"top right",left:"center right","left-end":"bottom right"},Al={"bottom-start":"bottom left",bottom:"bottom center","bottom-end":"bottom right","top-start":"top left",top:"top center","top-end":"top right","right-start":"top right",right:"center right","right-end":"bottom right","left-start":"top left",left:"center left","left-end":"bottom left"},Dl={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},Sn={top:!0,bottom:!1,left:!0,right:!1},Pn={top:"end",bottom:"start",left:"end",right:"start"};function Fl(e,t,r,n,o,i){if(!o||i)return{placement:e,top:0,left:0};const[l,s]=e.split("-");let a=s??"center",d={top:0,left:0};const c=(p,y,S)=>{let m=0,x=0;const z=r[p]-t[y]-t[p];return z>0&&n&&(S?x=Sn[y]?z:-z:m=Sn[y]?z:-z),{left:m,top:x}},f=l==="left"||l==="right";if(a!=="center"){const p=Dl[e],y=Nt[p],S=ur[p];if(r[S]>t[S]){if(t[p]+t[S]t[y]&&(a=Cn[s])}else{const p=l==="bottom"||l==="top"?"left":"top",y=Nt[p],S=ur[p],m=(r[S]-t[S])/2;(t[p]t[y]?(a=Pn[p],d=c(S,p,f)):(a=Pn[y],d=c(S,y,f)))}let h=l;return t[l] *",{pointerEvents:"all"})])]),Ro=K({name:"Follower",inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom"},syncTrigger:{type:Array,default:["resize","scroll"]},to:[String,Object],flip:{type:Boolean,default:!0},internalShift:Boolean,x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(e){const t=ie("VBinder"),r=Be(()=>e.enabled!==void 0?e.enabled:e.show),n=L(null),o=L(null),i=()=>{const{syncTrigger:h}=e;h.includes("scroll")&&t.addScrollListener(a),h.includes("resize")&&t.addResizeListener(a)},l=()=>{t.removeScrollListener(a),t.removeResizeListener(a)};Xe(()=>{r.value&&(a(),i())});const s=Ea();jl.mount({id:"vueuc/binder",head:!0,anchorMetaName:Ll,ssr:s}),Je(()=>{l()}),$l(()=>{r.value&&a()});const a=()=>{if(!r.value)return;const h=n.value;if(h===null)return;const p=t.targetRef,{x:y,y:S,overlap:m}=e,x=y!==void 0&&S!==void 0?Rl(y,S):dr(p);h.style.setProperty("--v-target-width",`${Math.round(x.width)}px`),h.style.setProperty("--v-target-height",`${Math.round(x.height)}px`);const{width:z,minWidth:O,placement:w,internalShift:g,flip:M}=e;h.setAttribute("v-placement",w),m?h.setAttribute("v-overlap",""):h.removeAttribute("v-overlap");const{style:b}=h;z==="target"?b.width=`${x.width}px`:z!==void 0?b.width=z:b.width="",O==="target"?b.minWidth=`${x.width}px`:O!==void 0?b.minWidth=O:b.minWidth="";const R=dr(h),P=dr(o.value),{left:T,top:N,placement:E}=Fl(w,x,R,g,M,m),_=Nl(E,m),{left:C,top:$,transform:F}=Hl(E,P,x,N,T,m);h.setAttribute("v-placement",E),h.style.setProperty("--v-offset-left",`${Math.round(T)}px`),h.style.setProperty("--v-offset-top",`${Math.round(N)}px`),h.style.transform=`translateX(${C}) translateY(${$}) ${F}`,h.style.setProperty("--v-transform-origin",_),h.style.transformOrigin=_};Ce(r,h=>{h?(i(),d()):l()});const d=()=>{qt().then(a).catch(h=>console.error(h))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(h=>{Ce(Z(e,h),a)}),["teleportDisabled"].forEach(h=>{Ce(Z(e,h),d)}),Ce(Z(e,"syncTrigger"),h=>{h.includes("resize")?t.addResizeListener(a):t.removeResizeListener(a),h.includes("scroll")?t.addScrollListener(a):t.removeScrollListener(a)});const c=Dr(),f=Be(()=>{const{to:h}=e;if(h!==void 0)return h;c.value});return{VBinder:t,mergedEnabled:r,offsetContainerRef:o,followerRef:n,mergedTo:f,syncPosition:a}},render(){return u(oo,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e,t;const r=u("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[u("div",{class:"v-binder-follower-content",ref:"followerRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))]);return this.zindexable?pt(r,[[Fr,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):r}})}});var Wl=Qt(er,"WeakMap");const $r=Wl;var Ul=Aa(Object.keys,Object);const Vl=Ul;var Kl=Object.prototype,ql=Kl.hasOwnProperty;function Gl(e){if(!Da(e))return Vl(e);var t=[];for(var r in Object(e))ql.call(e,r)&&r!="constructor"&&t.push(r);return t}function Vr(e){return Nr(e)?Fa(e):Gl(e)}var Xl=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Yl=/^\w*$/;function Kr(e,t){if(Ze(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||io(e)?!0:Yl.test(e)||!Xl.test(e)||t!=null&&e in Object(t)}var Zl="Expected a function";function qr(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Zl);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var l=e.apply(this,n);return r.cache=i.set(o,l)||i,l};return r.cache=new(qr.Cache||Hr),r}qr.Cache=Hr;var Jl=500;function Ql(e){var t=qr(e,function(n){return r.size===Jl&&r.clear(),n}),r=t.cache;return t}var es=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ts=/\\(\\)?/g,rs=Ql(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(es,function(r,n,o,i){t.push(o?i.replace(ts,"$1"):n||r)}),t});const ns=rs;function Oo(e,t){return Ze(e)?e:Kr(e,t)?[e]:ns(jr(e))}var os=1/0;function rr(e){if(typeof e=="string"||io(e))return e;var t=e+"";return t=="0"&&1/e==-os?"-0":t}function _o(e,t){t=Oo(t,e);for(var r=0,n=t.length;e!=null&&rs))return!1;var d=i.get(e),c=i.get(t);if(d&&c)return d==t&&c==e;var f=-1,h=!0,p=r&yd?new Yt:void 0;for(i.set(e,t),i.set(t,e);++f`Please load all ${e}'s descendants before checking it.`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",clear:"Clear",now:"Now",confirm:"Confirm",selectTime:"Select Time",selectDate:"Select Date",datePlaceholder:"Select Date",datetimePlaceholder:"Select Date and Time",monthPlaceholder:"Select Month",yearPlaceholder:"Select Year",quarterPlaceholder:"Select Quarter",startDatePlaceholder:"Start Date",endDatePlaceholder:"End Date",startDatetimePlaceholder:"Start Date and Time",endDatetimePlaceholder:"End Date and Time",startMonthPlaceholder:"Start Month",endMonthPlaceholder:"End Month",monthBeforeYear:!0,firstDayOfWeek:6,today:"Today"},DataTable:{checkTableAll:"Select all in the table",uncheckTableAll:"Unselect all in the table",confirm:"Confirm",clear:"Clear"},LegacyTransfer:{sourceTitle:"Source",targetTitle:"Target"},Transfer:{selectAll:"Select all",unselectAll:"Unselect all",clearAll:"Clear",total:e=>`Total ${e} items`,selected:e=>`${e} items selected`},Empty:{description:"No Data"},Select:{placeholder:"Please Select"},TimePicker:{placeholder:"Select Time",positiveText:"OK",negativeText:"Cancel",now:"Now"},Pagination:{goto:"Goto",selectionSuffix:"page"},DynamicTags:{add:"Add"},Log:{loading:"Loading"},Input:{placeholder:"Please Input"},InputNumber:{placeholder:"Please Input"},DynamicInput:{create:"Create"},ThemeEditor:{title:"Theme Editor",clearAllVars:"Clear All Variables",clearSearch:"Clear Search",filterCompName:"Filter Component Name",filterVarName:"Filter Variable Name",import:"Import",export:"Export",restore:"Reset to Default"},Image:{tipPrevious:"Previous picture (←)",tipNext:"Next picture (→)",tipCounterclockwise:"Counterclockwise",tipClockwise:"Clockwise",tipZoomOut:"Zoom out",tipZoomIn:"Zoom in",tipClose:"Close (Esc)",tipOriginalSize:"Zoom to original size"}},hu=fu;function fr(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth,n=e.formats[r]||e.formats[e.defaultWidth];return n}}function Ct(e){return function(t,r){var n=r!=null&&r.context?String(r.context):"standalone",o;if(n==="formatting"&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,l=r!=null&&r.width?String(r.width):i;o=e.formattingValues[l]||e.formattingValues[i]}else{var s=e.defaultWidth,a=r!=null&&r.width?String(r.width):e.defaultWidth;o=e.values[a]||e.values[s]}var d=e.argumentCallback?e.argumentCallback(t):t;return o[d]}}function St(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.width,o=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var l=i[0],s=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],a=Array.isArray(s)?vu(s,function(f){return f.test(l)}):pu(s,function(f){return f.test(l)}),d;d=e.valueCallback?e.valueCallback(a):a,d=r.valueCallback?r.valueCallback(d):d;var c=t.slice(l.length);return{value:d,rest:c}}}function pu(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function vu(e,t){for(var r=0;r1&&arguments[1]!==void 0?arguments[1]:{},n=t.match(e.matchPattern);if(!n)return null;var o=n[0],i=t.match(e.parsePattern);if(!i)return null;var l=e.valueCallback?e.valueCallback(i[0]):i[0];l=r.valueCallback?r.valueCallback(l):l;var s=t.slice(o.length);return{value:l,rest:s}}}var mu={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},bu=function(t,r,n){var o,i=mu[t];return typeof i=="string"?o=i:r===1?o=i.one:o=i.other.replace("{{count}}",r.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+o:o+" ago":o};const yu=bu;var wu={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},xu={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Cu={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Su={date:fr({formats:wu,defaultWidth:"full"}),time:fr({formats:xu,defaultWidth:"full"}),dateTime:fr({formats:Cu,defaultWidth:"full"})};const Pu=Su;var ku={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},$u=function(t,r,n,o){return ku[t]};const zu=$u;var Tu={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Iu={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Ru={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Ou={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},_u={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Mu={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Bu=function(t,r){var n=Number(t),o=n%100;if(o>20||o<10)switch(o%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},Lu={ordinalNumber:Bu,era:Ct({values:Tu,defaultWidth:"wide"}),quarter:Ct({values:Iu,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Ct({values:Ru,defaultWidth:"wide"}),day:Ct({values:Ou,defaultWidth:"wide"}),dayPeriod:Ct({values:_u,defaultWidth:"wide",formattingValues:Mu,defaultFormattingWidth:"wide"})};const Eu=Lu;var Au=/^(\d+)(th|st|nd|rd)?/i,Du=/\d+/i,Fu={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Nu={any:[/^b/i,/^(a|c)/i]},Hu={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},ju={any:[/1/i,/2/i,/3/i,/4/i]},Wu={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Uu={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Vu={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Ku={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},qu={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Gu={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Xu={ordinalNumber:gu({matchPattern:Au,parsePattern:Du,valueCallback:function(t){return parseInt(t,10)}}),era:St({matchPatterns:Fu,defaultMatchWidth:"wide",parsePatterns:Nu,defaultParseWidth:"any"}),quarter:St({matchPatterns:Hu,defaultMatchWidth:"wide",parsePatterns:ju,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:St({matchPatterns:Wu,defaultMatchWidth:"wide",parsePatterns:Uu,defaultParseWidth:"any"}),day:St({matchPatterns:Vu,defaultMatchWidth:"wide",parsePatterns:Ku,defaultParseWidth:"any"}),dayPeriod:St({matchPatterns:qu,defaultMatchWidth:"any",parsePatterns:Gu,defaultParseWidth:"any"})};const Yu=Xu;var Zu={code:"en-US",formatDistance:yu,formatLong:Pu,formatRelative:zu,localize:Eu,match:Yu,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Ju=Zu,Qu={name:"en-US",locale:Ju},ec=Qu;function Xr(e){const{mergedLocaleRef:t,mergedDateLocaleRef:r}=ie(lo,null)||{},n=D(()=>{var i,l;return(l=(i=t==null?void 0:t.value)===null||i===void 0?void 0:i[e])!==null&&l!==void 0?l:hu[e]});return{dateLocaleRef:D(()=>{var i;return(i=r==null?void 0:r.value)!==null&&i!==void 0?i:ec}),localeRef:n}}const tc=K({name:"Add",render(){return u("svg",{width:"512",height:"512",viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M256 112V400M400 256H112",stroke:"currentColor","stroke-width":"32","stroke-linecap":"round","stroke-linejoin":"round"}))}}),rc=Ue("attach",u("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M3.25735931,8.70710678 L7.85355339,4.1109127 C8.82986412,3.13460197 10.4127766,3.13460197 11.3890873,4.1109127 C12.365398,5.08722343 12.365398,6.67013588 11.3890873,7.64644661 L6.08578644,12.9497475 C5.69526215,13.3402718 5.06209717,13.3402718 4.67157288,12.9497475 C4.28104858,12.5592232 4.28104858,11.9260582 4.67157288,11.5355339 L9.97487373,6.23223305 C10.1701359,6.0369709 10.1701359,5.72038841 9.97487373,5.52512627 C9.77961159,5.32986412 9.4630291,5.32986412 9.26776695,5.52512627 L3.96446609,10.8284271 C3.18341751,11.6094757 3.18341751,12.8758057 3.96446609,13.6568542 C4.74551468,14.4379028 6.01184464,14.4379028 6.79289322,13.6568542 L12.0961941,8.35355339 C13.4630291,6.98671837 13.4630291,4.77064094 12.0961941,3.40380592 C10.7293591,2.0369709 8.51328163,2.0369709 7.14644661,3.40380592 L2.55025253,8 C2.35499039,8.19526215 2.35499039,8.51184464 2.55025253,8.70710678 C2.74551468,8.90236893 3.06209717,8.90236893 3.25735931,8.70710678 Z"}))))),nc=K({name:"ChevronRight",render(){return u("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M5.64645 3.14645C5.45118 3.34171 5.45118 3.65829 5.64645 3.85355L9.79289 8L5.64645 12.1464C5.45118 12.3417 5.45118 12.6583 5.64645 12.8536C5.84171 13.0488 6.15829 13.0488 6.35355 12.8536L10.8536 8.35355C11.0488 8.15829 11.0488 7.84171 10.8536 7.64645L6.35355 3.14645C6.15829 2.95118 5.84171 2.95118 5.64645 3.14645Z",fill:"currentColor"}))}}),Xo=K({name:"Eye",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("path",{d:"M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"}),u("circle",{cx:"256",cy:"256",r:"80",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"}))}}),oc=K({name:"EyeOff",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("path",{d:"M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448z",fill:"currentColor"}),u("path",{d:"M255.66 384c-41.49 0-81.5-12.28-118.92-36.5c-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58a2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1a204.8 204.8 0 0 1-51.16 6.47z",fill:"currentColor"}),u("path",{d:"M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83a2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1a192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37c34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16a310.72 310.72 0 0 1-64.12 72.73a2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13a343.49 343.49 0 0 0 68.64-78.48a32.2 32.2 0 0 0-.1-34.78z",fill:"currentColor"}),u("path",{d:"M256 160a95.88 95.88 0 0 0-21.37 2.4a2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160z",fill:"currentColor"}),u("path",{d:"M165.78 233.66a2 2 0 0 0-3.38 1a96 96 0 0 0 115 115a2 2 0 0 0 1-3.38z",fill:"currentColor"}))}}),ic=Ue("trash",u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("path",{d:"M432,144,403.33,419.74A32,32,0,0,1,371.55,448H140.46a32,32,0,0,1-31.78-28.26L80,144",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),u("rect",{x:"32",y:"64",width:"448",height:"80",rx:"16",ry:"16",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),u("line",{x1:"312",y1:"240",x2:"200",y2:"352",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),u("line",{x1:"312",y1:"352",x2:"200",y2:"240",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}))),ac=Ue("download",u("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M3.5,13 L12.5,13 C12.7761424,13 13,13.2238576 13,13.5 C13,13.7454599 12.8231248,13.9496084 12.5898756,13.9919443 L12.5,14 L3.5,14 C3.22385763,14 3,13.7761424 3,13.5 C3,13.2545401 3.17687516,13.0503916 3.41012437,13.0080557 L3.5,13 L12.5,13 L3.5,13 Z M7.91012437,1.00805567 L8,1 C8.24545989,1 8.44960837,1.17687516 8.49194433,1.41012437 L8.5,1.5 L8.5,10.292 L11.1819805,7.6109127 C11.3555469,7.43734635 11.6249713,7.4180612 11.8198394,7.55305725 L11.8890873,7.6109127 C12.0626536,7.78447906 12.0819388,8.05390346 11.9469427,8.2487716 L11.8890873,8.31801948 L8.35355339,11.8535534 C8.17998704,12.0271197 7.91056264,12.0464049 7.7156945,11.9114088 L7.64644661,11.8535534 L4.1109127,8.31801948 C3.91565056,8.12275734 3.91565056,7.80617485 4.1109127,7.6109127 C4.28447906,7.43734635 4.55390346,7.4180612 4.7487716,7.55305725 L4.81801948,7.6109127 L7.5,10.292 L7.5,1.5 C7.5,1.25454011 7.67687516,1.05039163 7.91012437,1.00805567 L8,1 L7.91012437,1.00805567 Z"}))))),lc=K({name:"Empty",render(){return u("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M26 7.5C26 11.0899 23.0899 14 19.5 14C15.9101 14 13 11.0899 13 7.5C13 3.91015 15.9101 1 19.5 1C23.0899 1 26 3.91015 26 7.5ZM16.8536 4.14645C16.6583 3.95118 16.3417 3.95118 16.1464 4.14645C15.9512 4.34171 15.9512 4.65829 16.1464 4.85355L18.7929 7.5L16.1464 10.1464C15.9512 10.3417 15.9512 10.6583 16.1464 10.8536C16.3417 11.0488 16.6583 11.0488 16.8536 10.8536L19.5 8.20711L22.1464 10.8536C22.3417 11.0488 22.6583 11.0488 22.8536 10.8536C23.0488 10.6583 23.0488 10.3417 22.8536 10.1464L20.2071 7.5L22.8536 4.85355C23.0488 4.65829 23.0488 4.34171 22.8536 4.14645C22.6583 3.95118 22.3417 3.95118 22.1464 4.14645L19.5 6.79289L16.8536 4.14645Z",fill:"currentColor"}),u("path",{d:"M25 22.75V12.5991C24.5572 13.0765 24.053 13.4961 23.5 13.8454V16H17.5L17.3982 16.0068C17.0322 16.0565 16.75 16.3703 16.75 16.75C16.75 18.2688 15.5188 19.5 14 19.5C12.4812 19.5 11.25 18.2688 11.25 16.75L11.2432 16.6482C11.1935 16.2822 10.8797 16 10.5 16H4.5V7.25C4.5 6.2835 5.2835 5.5 6.25 5.5H12.2696C12.4146 4.97463 12.6153 4.47237 12.865 4H6.25C4.45507 4 3 5.45507 3 7.25V22.75C3 24.5449 4.45507 26 6.25 26H21.75C23.5449 26 25 24.5449 25 22.75ZM4.5 22.75V17.5H9.81597L9.85751 17.7041C10.2905 19.5919 11.9808 21 14 21L14.215 20.9947C16.2095 20.8953 17.842 19.4209 18.184 17.5H23.5V22.75C23.5 23.7165 22.7165 24.5 21.75 24.5H6.25C5.2835 24.5 4.5 23.7165 4.5 22.75Z",fill:"currentColor"}))}}),sc=Ue("cancel",u("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M2.58859116,2.7156945 L2.64644661,2.64644661 C2.82001296,2.47288026 3.08943736,2.45359511 3.2843055,2.58859116 L3.35355339,2.64644661 L8,7.293 L12.6464466,2.64644661 C12.8417088,2.45118446 13.1582912,2.45118446 13.3535534,2.64644661 C13.5488155,2.84170876 13.5488155,3.15829124 13.3535534,3.35355339 L8.707,8 L13.3535534,12.6464466 C13.5271197,12.820013 13.5464049,13.0894374 13.4114088,13.2843055 L13.3535534,13.3535534 C13.179987,13.5271197 12.9105626,13.5464049 12.7156945,13.4114088 L12.6464466,13.3535534 L8,8.707 L3.35355339,13.3535534 C3.15829124,13.5488155 2.84170876,13.5488155 2.64644661,13.3535534 C2.45118446,13.1582912 2.45118446,12.8417088 2.64644661,12.6464466 L7.293,8 L2.64644661,3.35355339 C2.47288026,3.17998704 2.45359511,2.91056264 2.58859116,2.7156945 L2.64644661,2.64644661 L2.58859116,2.7156945 Z"}))))),dc=K({name:"ChevronDown",render(){return u("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M3.14645 5.64645C3.34171 5.45118 3.65829 5.45118 3.85355 5.64645L8 9.79289L12.1464 5.64645C12.3417 5.45118 12.6583 5.45118 12.8536 5.64645C13.0488 5.84171 13.0488 6.15829 12.8536 6.35355L8.35355 10.8536C8.15829 11.0488 7.84171 11.0488 7.64645 10.8536L3.14645 6.35355C2.95118 6.15829 2.95118 5.84171 3.14645 5.64645Z",fill:"currentColor"}))}}),uc=Ue("clear",u("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M8,2 C11.3137085,2 14,4.6862915 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 C2,4.6862915 4.6862915,2 8,2 Z M6.5343055,5.83859116 C6.33943736,5.70359511 6.07001296,5.72288026 5.89644661,5.89644661 L5.89644661,5.89644661 L5.83859116,5.9656945 C5.70359511,6.16056264 5.72288026,6.42998704 5.89644661,6.60355339 L5.89644661,6.60355339 L7.293,8 L5.89644661,9.39644661 L5.83859116,9.4656945 C5.70359511,9.66056264 5.72288026,9.92998704 5.89644661,10.1035534 L5.89644661,10.1035534 L5.9656945,10.1614088 C6.16056264,10.2964049 6.42998704,10.2771197 6.60355339,10.1035534 L6.60355339,10.1035534 L8,8.707 L9.39644661,10.1035534 L9.4656945,10.1614088 C9.66056264,10.2964049 9.92998704,10.2771197 10.1035534,10.1035534 L10.1035534,10.1035534 L10.1614088,10.0343055 C10.2964049,9.83943736 10.2771197,9.57001296 10.1035534,9.39644661 L10.1035534,9.39644661 L8.707,8 L10.1035534,6.60355339 L10.1614088,6.5343055 C10.2964049,6.33943736 10.2771197,6.07001296 10.1035534,5.89644661 L10.1035534,5.89644661 L10.0343055,5.83859116 C9.83943736,5.70359511 9.57001296,5.72288026 9.39644661,5.89644661 L9.39644661,5.89644661 L8,7.293 L6.60355339,5.89644661 Z"}))))),cc=Ue("retry",u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("path",{d:"M320,146s24.36-12-64-12A160,160,0,1,0,416,294",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-miterlimit: 10; stroke-width: 32px;"}),u("polyline",{points:"256 58 336 138 256 218",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}))),fc=Ue("rotateClockwise",u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10C17 12.7916 15.3658 15.2026 13 16.3265V14.5C13 14.2239 12.7761 14 12.5 14C12.2239 14 12 14.2239 12 14.5V17.5C12 17.7761 12.2239 18 12.5 18H15.5C15.7761 18 16 17.7761 16 17.5C16 17.2239 15.7761 17 15.5 17H13.8758C16.3346 15.6357 18 13.0128 18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 10.2761 2.22386 10.5 2.5 10.5C2.77614 10.5 3 10.2761 3 10Z",fill:"currentColor"}),u("path",{d:"M10 12C11.1046 12 12 11.1046 12 10C12 8.89543 11.1046 8 10 8C8.89543 8 8 8.89543 8 10C8 11.1046 8.89543 12 10 12ZM10 11C9.44772 11 9 10.5523 9 10C9 9.44772 9.44772 9 10 9C10.5523 9 11 9.44772 11 10C11 10.5523 10.5523 11 10 11Z",fill:"currentColor"}))),hc=Ue("rotateClockwise",u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M17 10C17 6.13401 13.866 3 10 3C6.13401 3 3 6.13401 3 10C3 12.7916 4.63419 15.2026 7 16.3265V14.5C7 14.2239 7.22386 14 7.5 14C7.77614 14 8 14.2239 8 14.5V17.5C8 17.7761 7.77614 18 7.5 18H4.5C4.22386 18 4 17.7761 4 17.5C4 17.2239 4.22386 17 4.5 17H6.12422C3.66539 15.6357 2 13.0128 2 10C2 5.58172 5.58172 2 10 2C14.4183 2 18 5.58172 18 10C18 10.2761 17.7761 10.5 17.5 10.5C17.2239 10.5 17 10.2761 17 10Z",fill:"currentColor"}),u("path",{d:"M10 12C8.89543 12 8 11.1046 8 10C8 8.89543 8.89543 8 10 8C11.1046 8 12 8.89543 12 10C12 11.1046 11.1046 12 10 12ZM10 11C10.5523 11 11 10.5523 11 10C11 9.44772 10.5523 9 10 9C9.44772 9 9 9.44772 9 10C9 10.5523 9.44772 11 10 11Z",fill:"currentColor"}))),pc=Ue("zoomIn",u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M11.5 8.5C11.5 8.22386 11.2761 8 11 8H9V6C9 5.72386 8.77614 5.5 8.5 5.5C8.22386 5.5 8 5.72386 8 6V8H6C5.72386 8 5.5 8.22386 5.5 8.5C5.5 8.77614 5.72386 9 6 9H8V11C8 11.2761 8.22386 11.5 8.5 11.5C8.77614 11.5 9 11.2761 9 11V9H11C11.2761 9 11.5 8.77614 11.5 8.5Z",fill:"currentColor"}),u("path",{d:"M8.5 3C11.5376 3 14 5.46243 14 8.5C14 9.83879 13.5217 11.0659 12.7266 12.0196L16.8536 16.1464C17.0488 16.3417 17.0488 16.6583 16.8536 16.8536C16.68 17.0271 16.4106 17.0464 16.2157 16.9114L16.1464 16.8536L12.0196 12.7266C11.0659 13.5217 9.83879 14 8.5 14C5.46243 14 3 11.5376 3 8.5C3 5.46243 5.46243 3 8.5 3ZM8.5 4C6.01472 4 4 6.01472 4 8.5C4 10.9853 6.01472 13 8.5 13C10.9853 13 13 10.9853 13 8.5C13 6.01472 10.9853 4 8.5 4Z",fill:"currentColor"}))),vc=Ue("zoomOut",u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M11 8C11.2761 8 11.5 8.22386 11.5 8.5C11.5 8.77614 11.2761 9 11 9H6C5.72386 9 5.5 8.77614 5.5 8.5C5.5 8.22386 5.72386 8 6 8H11Z",fill:"currentColor"}),u("path",{d:"M14 8.5C14 5.46243 11.5376 3 8.5 3C5.46243 3 3 5.46243 3 8.5C3 11.5376 5.46243 14 8.5 14C9.83879 14 11.0659 13.5217 12.0196 12.7266L16.1464 16.8536L16.2157 16.9114C16.4106 17.0464 16.68 17.0271 16.8536 16.8536C17.0488 16.6583 17.0488 16.3417 16.8536 16.1464L12.7266 12.0196C13.5217 11.0659 14 9.83879 14 8.5ZM4 8.5C4 6.01472 6.01472 4 8.5 4C10.9853 4 13 6.01472 13 8.5C13 10.9853 10.9853 13 8.5 13C6.01472 13 4 10.9853 4 8.5Z",fill:"currentColor"}))),gc=K({name:"ResizeSmall",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},u("g",{fill:"none"},u("path",{d:"M5.5 4A1.5 1.5 0 0 0 4 5.5v1a.5.5 0 0 1-1 0v-1A2.5 2.5 0 0 1 5.5 3h1a.5.5 0 0 1 0 1h-1zM16 5.5A1.5 1.5 0 0 0 14.5 4h-1a.5.5 0 0 1 0-1h1A2.5 2.5 0 0 1 17 5.5v1a.5.5 0 0 1-1 0v-1zm0 9a1.5 1.5 0 0 1-1.5 1.5h-1a.5.5 0 0 0 0 1h1a2.5 2.5 0 0 0 2.5-2.5v-1a.5.5 0 0 0-1 0v1zm-12 0A1.5 1.5 0 0 0 5.5 16h1.25a.5.5 0 0 1 0 1H5.5A2.5 2.5 0 0 1 3 14.5v-1.25a.5.5 0 0 1 1 0v1.25zM8.5 7A1.5 1.5 0 0 0 7 8.5v3A1.5 1.5 0 0 0 8.5 13h3a1.5 1.5 0 0 0 1.5-1.5v-3A1.5 1.5 0 0 0 11.5 7h-3zM8 8.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-3z",fill:"currentColor"})))}});function Hn(e){return Array.isArray(e)?e:[e]}const Rr={STOP:"STOP"};function Yo(e,t){const r=t(e);e.children!==void 0&&r!==Rr.STOP&&e.children.forEach(n=>Yo(n,t))}function mc(e,t={}){const{preserveGroup:r=!1}=t,n=[],o=r?l=>{l.isLeaf||(n.push(l.key),i(l.children))}:l=>{l.isLeaf||(l.isGroup||n.push(l.key),i(l.children))};function i(l){l.forEach(o)}return i(e),n}function bc(e,t){const{isLeaf:r}=e;return r!==void 0?r:!t(e)}function yc(e){return e.children}function wc(e){return e.key}function xc(){return!1}function Cc(e,t){const{isLeaf:r}=e;return!(r===!1&&!Array.isArray(t(e)))}function Sc(e){return e.disabled===!0}function Pc(e,t){return e.isLeaf===!1&&!Array.isArray(t(e))}function hr(e){var t;return e==null?[]:Array.isArray(e)?e:(t=e.checkedKeys)!==null&&t!==void 0?t:[]}function pr(e){var t;return e==null||Array.isArray(e)?[]:(t=e.indeterminateKeys)!==null&&t!==void 0?t:[]}function kc(e,t){const r=new Set(e);return t.forEach(n=>{r.has(n)||r.add(n)}),Array.from(r)}function $c(e,t){const r=new Set(e);return t.forEach(n=>{r.has(n)&&r.delete(n)}),Array.from(r)}function zc(e){return(e==null?void 0:e.type)==="group"}class Tc extends Error{constructor(){super(),this.message="SubtreeNotLoadedError: checking a subtree whose required nodes are not fully loaded."}}function Ic(e,t,r,n){return Zt(t.concat(e),r,n,!1)}function Rc(e,t){const r=new Set;return e.forEach(n=>{const o=t.treeNodeMap.get(n);if(o!==void 0){let i=o.parent;for(;i!==null&&!(i.disabled||r.has(i.key));)r.add(i.key),i=i.parent}}),r}function Oc(e,t,r,n){const o=Zt(t,r,n,!1),i=Zt(e,r,n,!0),l=Rc(e,r),s=[];return o.forEach(a=>{(i.has(a)||l.has(a))&&s.push(a)}),s.forEach(a=>o.delete(a)),o}function vr(e,t){const{checkedKeys:r,keysToCheck:n,keysToUncheck:o,indeterminateKeys:i,cascade:l,leafOnly:s,checkStrategy:a,allowNotLoaded:d}=e;if(!l)return n!==void 0?{checkedKeys:kc(r,n),indeterminateKeys:Array.from(i)}:o!==void 0?{checkedKeys:$c(r,o),indeterminateKeys:Array.from(i)}:{checkedKeys:Array.from(r),indeterminateKeys:Array.from(i)};const{levelTreeNodeMap:c}=t;let f;o!==void 0?f=Oc(o,r,t,d):n!==void 0?f=Ic(n,r,t,d):f=Zt(r,t,d,!1);const h=a==="parent",p=a==="child"||s,y=f,S=new Set,m=Math.max.apply(null,Array.from(c.keys()));for(let x=m;x>=0;x-=1){const z=x===0,O=c.get(x);for(const w of O){if(w.isLeaf)continue;const{key:g,shallowLoaded:M}=w;if(p&&M&&w.children.forEach(T=>{!T.disabled&&!T.isLeaf&&T.shallowLoaded&&y.has(T.key)&&y.delete(T.key)}),w.disabled||!M)continue;let b=!0,R=!1,P=!0;for(const T of w.children){const N=T.key;if(!T.disabled){if(P&&(P=!1),y.has(N))R=!0;else if(S.has(N)){R=!0,b=!1;break}else if(b=!1,R)break}}b&&!P?(h&&w.children.forEach(T=>{!T.disabled&&y.has(T.key)&&y.delete(T.key)}),y.add(g)):R&&S.add(g),z&&p&&y.has(g)&&y.delete(g)}}return{checkedKeys:Array.from(y),indeterminateKeys:Array.from(S)}}function Zt(e,t,r,n){const{treeNodeMap:o,getChildren:i}=t,l=new Set,s=new Set(e);return e.forEach(a=>{const d=o.get(a);d!==void 0&&Yo(d,c=>{if(c.disabled)return Rr.STOP;const{key:f}=c;if(!l.has(f)&&(l.add(f),s.add(f),Pc(c.rawNode,i))){if(n)return Rr.STOP;if(!r)throw new Tc}})}),s}function _c(e,{includeGroup:t=!1,includeSelf:r=!0},n){var o;const i=n.treeNodeMap;let l=e==null?null:(o=i.get(e))!==null&&o!==void 0?o:null;const s={keyPath:[],treeNodePath:[],treeNode:l};if(l!=null&&l.ignored)return s.treeNode=null,s;for(;l;)!l.ignored&&(t||!l.isGroup)&&s.treeNodePath.push(l),l=l.parent;return s.treeNodePath.reverse(),r||s.treeNodePath.pop(),s.keyPath=s.treeNodePath.map(a=>a.key),s}function Mc(e){if(e.length===0)return null;const t=e[0];return t.isGroup||t.ignored||t.disabled?t.getNext():t}function Bc(e,t){const r=e.siblings,n=r.length,{index:o}=e;return t?r[(o+1)%n]:o===r.length-1?null:r[o+1]}function jn(e,t,{loop:r=!1,includeDisabled:n=!1}={}){const o=t==="prev"?Lc:Bc,i={reverse:t==="prev"};let l=!1,s=null;function a(d){if(d!==null){if(d===e){if(!l)l=!0;else if(!e.disabled&&!e.isGroup){s=e;return}}else if((!d.disabled||n)&&!d.ignored&&!d.isGroup){s=d;return}if(d.isGroup){const c=Yr(d,i);c!==null?s=c:a(o(d,r))}else{const c=o(d,!1);if(c!==null)a(c);else{const f=Ec(d);f!=null&&f.isGroup?a(o(f,r)):r&&a(o(d,!0))}}}}return a(e),s}function Lc(e,t){const r=e.siblings,n=r.length,{index:o}=e;return t?r[(o-1+n)%n]:o===0?null:r[o-1]}function Ec(e){return e.parent}function Yr(e,t={}){const{reverse:r=!1}=t,{children:n}=e;if(n){const{length:o}=n,i=r?o-1:0,l=r?-1:o,s=r?-1:1;for(let a=i;a!==l;a+=s){const d=n[a];if(!d.disabled&&!d.ignored)if(d.isGroup){const c=Yr(d,t);if(c!==null)return c}else return d}}return null}const Ac={getChild(){return this.ignored?null:Yr(this)},getParent(){const{parent:e}=this;return e!=null&&e.isGroup?e.getParent():e},getNext(e={}){return jn(this,"next",e)},getPrev(e={}){return jn(this,"prev",e)}};function Dc(e,t){const r=t?new Set(t):void 0,n=[];function o(i){i.forEach(l=>{n.push(l),!(l.isLeaf||!l.children||l.ignored)&&(l.isGroup||r===void 0||r.has(l.key))&&o(l.children)})}return o(e),n}function Fc(e,t){const r=e.key;for(;t;){if(t.key===r)return!0;t=t.parent}return!1}function Zo(e,t,r,n,o,i=null,l=0){const s=[];return e.forEach((a,d)=>{var c;const f=Object.create(n);if(f.rawNode=a,f.siblings=s,f.level=l,f.index=d,f.isFirstChild=d===0,f.isLastChild=d+1===e.length,f.parent=i,!f.ignored){const h=o(a);Array.isArray(h)&&(f.children=Zo(h,t,r,n,o,f,l+1))}s.push(f),t.set(f.key,f),r.has(l)||r.set(l,[]),(c=r.get(l))===null||c===void 0||c.push(f)}),s}function Nc(e,t={}){var r;const n=new Map,o=new Map,{getDisabled:i=Sc,getIgnored:l=xc,getIsGroup:s=zc,getKey:a=wc}=t,d=(r=t.getChildren)!==null&&r!==void 0?r:yc,c=t.ignoreEmptyChildren?w=>{const g=d(w);return Array.isArray(g)?g.length?g:null:g}:d,f=Object.assign({get key(){return a(this.rawNode)},get disabled(){return i(this.rawNode)},get isGroup(){return s(this.rawNode)},get isLeaf(){return bc(this.rawNode,c)},get shallowLoaded(){return Cc(this.rawNode,c)},get ignored(){return l(this.rawNode)},contains(w){return Fc(this,w)}},Ac),h=Zo(e,n,o,f,c);function p(w){if(w==null)return null;const g=n.get(w);return g&&!g.isGroup&&!g.ignored?g:null}function y(w){if(w==null)return null;const g=n.get(w);return g&&!g.ignored?g:null}function S(w,g){const M=y(w);return M?M.getPrev(g):null}function m(w,g){const M=y(w);return M?M.getNext(g):null}function x(w){const g=y(w);return g?g.getParent():null}function z(w){const g=y(w);return g?g.getChild():null}const O={treeNodes:h,treeNodeMap:n,levelTreeNodeMap:o,maxLevel:Math.max(...o.keys()),getChildren:c,getFlattenedNodes(w){return Dc(h,w)},getNode:p,getPrev:S,getNext:m,getParent:x,getChild:z,getFirstAvailableNode(){return Mc(h)},getPath(w,g={}){return _c(w,g,O)},getCheckedKeys(w,g={}){const{cascade:M=!0,leafOnly:b=!1,checkStrategy:R="all",allowNotLoaded:P=!1}=g;return vr({checkedKeys:hr(w),indeterminateKeys:pr(w),cascade:M,leafOnly:b,checkStrategy:R,allowNotLoaded:P},O)},check(w,g,M={}){const{cascade:b=!0,leafOnly:R=!1,checkStrategy:P="all",allowNotLoaded:T=!1}=M;return vr({checkedKeys:hr(g),indeterminateKeys:pr(g),keysToCheck:w==null?[]:Hn(w),cascade:b,leafOnly:R,checkStrategy:P,allowNotLoaded:T},O)},uncheck(w,g,M={}){const{cascade:b=!0,leafOnly:R=!1,checkStrategy:P="all",allowNotLoaded:T=!1}=M;return vr({checkedKeys:hr(g),indeterminateKeys:pr(g),keysToUncheck:w==null?[]:Hn(w),cascade:b,leafOnly:R,checkStrategy:P,allowNotLoaded:T},O)},getNonLeafKeys(w={}){return mc(h,w)}};return O}const Hc={iconSizeSmall:"34px",iconSizeMedium:"40px",iconSizeLarge:"46px",iconSizeHuge:"52px"},jc=e=>{const{textColorDisabled:t,iconColor:r,textColor2:n,fontSizeSmall:o,fontSizeMedium:i,fontSizeLarge:l,fontSizeHuge:s}=e;return Object.assign(Object.assign({},Hc),{fontSizeSmall:o,fontSizeMedium:i,fontSizeLarge:l,fontSizeHuge:s,textColor:t,iconColor:r,extraTextColor:n})},Wc={name:"Empty",common:_e,self:jc},Uc=Wc,Vc=k("empty",`
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ font-size: var(--n-font-size);
+`,[B("icon",`
+ width: var(--n-icon-size);
+ height: var(--n-icon-size);
+ font-size: var(--n-icon-size);
+ line-height: var(--n-icon-size);
+ color: var(--n-icon-color);
+ transition:
+ color .3s var(--n-bezier);
+ `,[H("+",[B("description",`
+ margin-top: 8px;
+ `)])]),B("description",`
+ transition: color .3s var(--n-bezier);
+ color: var(--n-text-color);
+ `),B("extra",`
+ text-align: center;
+ transition: color .3s var(--n-bezier);
+ margin-top: 12px;
+ color: var(--n-extra-text-color);
+ `)]),Kc=Object.assign(Object.assign({},re.props),{description:String,showDescription:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},size:{type:String,default:"medium"},renderIcon:Function}),Jo=K({name:"Empty",props:Kc,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=Ie(e),n=re("Empty","-empty",Vc,Uc,e,t),{localeRef:o}=Xr("Empty"),i=ie(lo,null),l=D(()=>{var c,f,h;return(c=e.description)!==null&&c!==void 0?c:(h=(f=i==null?void 0:i.mergedComponentPropsRef.value)===null||f===void 0?void 0:f.Empty)===null||h===void 0?void 0:h.description}),s=D(()=>{var c,f;return((f=(c=i==null?void 0:i.mergedComponentPropsRef.value)===null||c===void 0?void 0:c.Empty)===null||f===void 0?void 0:f.renderIcon)||(()=>u(lc,null))}),a=D(()=>{const{size:c}=e,{common:{cubicBezierEaseInOut:f},self:{[ne("iconSize",c)]:h,[ne("fontSize",c)]:p,textColor:y,iconColor:S,extraTextColor:m}}=n.value;return{"--n-icon-size":h,"--n-font-size":p,"--n-bezier":f,"--n-text-color":y,"--n-icon-color":S,"--n-extra-text-color":m}}),d=r?Ae("empty",D(()=>{let c="";const{size:f}=e;return c+=f[0],c}),a,e):void 0;return{mergedClsPrefix:t,mergedRenderIcon:s,localizedDescription:D(()=>l.value||o.value.description),cssVars:r?void 0:a,themeClass:d==null?void 0:d.themeClass,onRender:d==null?void 0:d.onRender}},render(){const{$slots:e,mergedClsPrefix:t,onRender:r}=this;return r==null||r(),u("div",{class:[`${t}-empty`,this.themeClass],style:this.cssVars},this.showIcon?u("div",{class:`${t}-empty__icon`},e.icon?e.icon():u(ce,{clsPrefix:t},{default:this.mergedRenderIcon})):null,this.showDescription?u("div",{class:`${t}-empty__description`},e.default?e.default():this.localizedDescription):null,e.extra?u("div",{class:`${t}-empty__extra`},e.extra()):null)}}),qc={space:"6px",spaceArrow:"10px",arrowOffset:"10px",arrowOffsetVertical:"10px",arrowHeight:"6px",padding:"8px 14px"},Gc=e=>{const{boxShadow2:t,popoverColor:r,textColor2:n,borderRadius:o,fontSize:i,dividerColor:l}=e;return Object.assign(Object.assign({},qc),{fontSize:i,borderRadius:o,color:r,dividerColor:l,textColor:n,boxShadow:t})},Xc={name:"Popover",common:_e,self:Gc},Zr=Xc,gr={top:"bottom",bottom:"top",left:"right",right:"left"},me="var(--n-arrow-height) * 1.414",Yc=H([k("popover",`
+ transition:
+ box-shadow .3s var(--n-bezier),
+ background-color .3s var(--n-bezier),
+ color .3s var(--n-bezier);
+ position: relative;
+ font-size: var(--n-font-size);
+ color: var(--n-text-color);
+ box-shadow: var(--n-box-shadow);
+ word-break: break-word;
+ `,[H(">",[k("scrollbar",`
+ height: inherit;
+ max-height: inherit;
+ `)]),ze("raw",`
+ background-color: var(--n-color);
+ border-radius: var(--n-border-radius);
+ `,[ze("scrollable",[ze("show-header-or-footer","padding: var(--n-padding);")])]),B("header",`
+ padding: var(--n-padding);
+ border-bottom: 1px solid var(--n-divider-color);
+ transition: border-color .3s var(--n-bezier);
+ `),B("footer",`
+ padding: var(--n-padding);
+ border-top: 1px solid var(--n-divider-color);
+ transition: border-color .3s var(--n-bezier);
+ `),W("scrollable, show-header-or-footer",[B("content",`
+ padding: var(--n-padding);
+ `)])]),k("popover-shared",`
+ transform-origin: inherit;
+ `,[k("popover-arrow-wrapper",`
+ position: absolute;
+ overflow: hidden;
+ pointer-events: none;
+ `,[k("popover-arrow",`
+ transition: background-color .3s var(--n-bezier);
+ position: absolute;
+ display: block;
+ width: calc(${me});
+ height: calc(${me});
+ box-shadow: 0 0 8px 0 rgba(0, 0, 0, .12);
+ transform: rotate(45deg);
+ background-color: var(--n-color);
+ pointer-events: all;
+ `)]),H("&.popover-transition-enter-from, &.popover-transition-leave-to",`
+ opacity: 0;
+ transform: scale(.85);
+ `),H("&.popover-transition-enter-to, &.popover-transition-leave-from",`
+ transform: scale(1);
+ opacity: 1;
+ `),H("&.popover-transition-enter-active",`
+ transition:
+ box-shadow .3s var(--n-bezier),
+ background-color .3s var(--n-bezier),
+ color .3s var(--n-bezier),
+ opacity .15s var(--n-bezier-ease-out),
+ transform .15s var(--n-bezier-ease-out);
+ `),H("&.popover-transition-leave-active",`
+ transition:
+ box-shadow .3s var(--n-bezier),
+ background-color .3s var(--n-bezier),
+ color .3s var(--n-bezier),
+ opacity .15s var(--n-bezier-ease-in),
+ transform .15s var(--n-bezier-ease-in);
+ `)]),Me("top-start",`
+ top: calc(${me} / -2);
+ left: calc(${qe("top-start")} - var(--v-offset-left));
+ `),Me("top",`
+ top: calc(${me} / -2);
+ transform: translateX(calc(${me} / -2)) rotate(45deg);
+ left: 50%;
+ `),Me("top-end",`
+ top: calc(${me} / -2);
+ right: calc(${qe("top-end")} + var(--v-offset-left));
+ `),Me("bottom-start",`
+ bottom: calc(${me} / -2);
+ left: calc(${qe("bottom-start")} - var(--v-offset-left));
+ `),Me("bottom",`
+ bottom: calc(${me} / -2);
+ transform: translateX(calc(${me} / -2)) rotate(45deg);
+ left: 50%;
+ `),Me("bottom-end",`
+ bottom: calc(${me} / -2);
+ right: calc(${qe("bottom-end")} + var(--v-offset-left));
+ `),Me("left-start",`
+ left: calc(${me} / -2);
+ top: calc(${qe("left-start")} - var(--v-offset-top));
+ `),Me("left",`
+ left: calc(${me} / -2);
+ transform: translateY(calc(${me} / -2)) rotate(45deg);
+ top: 50%;
+ `),Me("left-end",`
+ left: calc(${me} / -2);
+ bottom: calc(${qe("left-end")} + var(--v-offset-top));
+ `),Me("right-start",`
+ right: calc(${me} / -2);
+ top: calc(${qe("right-start")} - var(--v-offset-top));
+ `),Me("right",`
+ right: calc(${me} / -2);
+ transform: translateY(calc(${me} / -2)) rotate(45deg);
+ top: 50%;
+ `),Me("right-end",`
+ right: calc(${me} / -2);
+ bottom: calc(${qe("right-end")} + var(--v-offset-top));
+ `),...du({top:["right-start","left-start"],right:["top-end","bottom-end"],bottom:["right-end","left-end"],left:["top-start","bottom-start"]},(e,t)=>{const r=["right","left"].includes(t),n=r?"width":"height";return e.map(o=>{const i=o.split("-")[1]==="end",s=`calc((${`var(--v-target-${n}, 0px)`} - ${me}) / 2)`,a=qe(o);return H(`[v-placement="${o}"] >`,[k("popover-shared",[W("center-arrow",[k("popover-arrow",`${t}: calc(max(${s}, ${a}) ${i?"+":"-"} var(--v-offset-${r?"left":"top"}));`)])])])})})]);function qe(e){return["top","bottom"].includes(e.split("-")[0])?"var(--n-arrow-offset)":"var(--n-arrow-offset-vertical)"}function Me(e,t){const r=e.split("-")[0],n=["top","bottom"].includes(r)?"height: var(--n-space-arrow);":"width: var(--n-space-arrow);";return H(`[v-placement="${e}"] >`,[k("popover-shared",`
+ margin-${gr[r]}: var(--n-space);
+ `,[W("show-arrow",`
+ margin-${gr[r]}: var(--n-space-arrow);
+ `),W("overlap",`
+ margin: 0;
+ `),Xa("popover-arrow-wrapper",`
+ right: 0;
+ left: 0;
+ top: 0;
+ bottom: 0;
+ ${r}: 100%;
+ ${gr[r]}: auto;
+ ${n}
+ `,[k("popover-arrow",t)])])])}const Qo=Object.assign(Object.assign({},re.props),{to:gt.propTo,show:Boolean,trigger:String,showArrow:Boolean,delay:Number,duration:Number,raw:Boolean,arrowPointToCenter:Boolean,arrowStyle:[String,Object],displayDirective:String,x:Number,y:Number,flip:Boolean,overlap:Boolean,placement:String,width:[Number,String],keepAliveOnHover:Boolean,scrollable:Boolean,contentStyle:[Object,String],headerStyle:[Object,String],footerStyle:[Object,String],internalDeactivateImmediately:Boolean,animated:Boolean,onClickoutside:Function,internalTrapFocus:Boolean,internalOnAfterLeave:Function,minWidth:Number,maxWidth:Number}),ei=({arrowStyle:e,clsPrefix:t})=>u("div",{key:"__popover-arrow__",class:`${t}-popover-arrow-wrapper`},u("div",{class:`${t}-popover-arrow`,style:e})),Zc=K({name:"PopoverBody",inheritAttrs:!1,props:Qo,setup(e,{slots:t,attrs:r}){const{namespaceRef:n,mergedClsPrefixRef:o,inlineThemeDisabled:i}=Ie(e),l=re("Popover","-popover",Yc,Zr,e,o),s=L(null),a=ie("NPopover"),d=L(null),c=L(e.show),f=L(!1);ot(()=>{const{show:b}=e;b&&!Sl()&&!e.internalDeactivateImmediately&&(f.value=!0)});const h=D(()=>{const{trigger:b,onClickoutside:R}=e,P=[],{positionManuallyRef:{value:T}}=a;return T||(b==="click"&&!R&&P.push([cn,w,void 0,{capture:!0}]),b==="hover"&&P.push([Bl,O])),R&&P.push([cn,w,void 0,{capture:!0}]),(e.displayDirective==="show"||e.animated&&f.value)&&P.push([so,e.show]),P}),p=D(()=>{const b=e.width==="trigger"?void 0:Fe(e.width),R=[];b&&R.push({width:b});const{maxWidth:P,minWidth:T}=e;return P&&R.push({maxWidth:Fe(P)}),T&&R.push({maxWidth:Fe(T)}),i||R.push(y.value),R}),y=D(()=>{const{common:{cubicBezierEaseInOut:b,cubicBezierEaseIn:R,cubicBezierEaseOut:P},self:{space:T,spaceArrow:N,padding:E,fontSize:_,textColor:C,dividerColor:$,color:F,boxShadow:A,borderRadius:q,arrowHeight:Q,arrowOffset:fe,arrowOffsetVertical:ye}}=l.value;return{"--n-box-shadow":A,"--n-bezier":b,"--n-bezier-ease-in":R,"--n-bezier-ease-out":P,"--n-font-size":_,"--n-text-color":C,"--n-color":F,"--n-divider-color":$,"--n-border-radius":q,"--n-arrow-height":Q,"--n-arrow-offset":fe,"--n-arrow-offset-vertical":ye,"--n-padding":E,"--n-space":T,"--n-space-arrow":N}}),S=i?Ae("popover",void 0,y,e):void 0;a.setBodyInstance({syncPosition:m}),Je(()=>{a.setBodyInstance(null)}),Ce(Z(e,"show"),b=>{e.animated||(b?c.value=!0:c.value=!1)});function m(){var b;(b=s.value)===null||b===void 0||b.syncPosition()}function x(b){e.trigger==="hover"&&e.keepAliveOnHover&&e.show&&a.handleMouseEnter(b)}function z(b){e.trigger==="hover"&&e.keepAliveOnHover&&a.handleMouseLeave(b)}function O(b){e.trigger==="hover"&&!g().contains(fn(b))&&a.handleMouseMoveOutside(b)}function w(b){(e.trigger==="click"&&!g().contains(fn(b))||e.onClickoutside)&&a.handleClickOutside(b)}function g(){return a.getTriggerElement()}Pe(Jt,d),Pe(Er,null),Pe(Lr,null);function M(){if(S==null||S.onRender(),!(e.displayDirective==="show"||e.show||e.animated&&f.value))return null;let R;const P=a.internalRenderBodyRef.value,{value:T}=o;if(P)R=P([`${T}-popover-shared`,S==null?void 0:S.themeClass.value,e.overlap&&`${T}-popover-shared--overlap`,e.showArrow&&`${T}-popover-shared--show-arrow`,e.arrowPointToCenter&&`${T}-popover-shared--center-arrow`],d,p.value,x,z);else{const{value:N}=a.extraClassRef,{internalTrapFocus:E}=e,_=!hn(t.header)||!hn(t.footer),C=()=>{var $;const F=_?u(je,null,Ge(t.header,Q=>Q?u("div",{class:`${T}-popover__header`,style:e.headerStyle},Q):null),Ge(t.default,Q=>Q?u("div",{class:`${T}-popover__content`,style:e.contentStyle},t):null),Ge(t.footer,Q=>Q?u("div",{class:`${T}-popover__footer`,style:e.footerStyle},Q):null)):e.scrollable?($=t.default)===null||$===void 0?void 0:$.call(t):u("div",{class:`${T}-popover__content`,style:e.contentStyle},t),A=e.scrollable?u(uo,{contentClass:_?void 0:`${T}-popover__content`,contentStyle:_?void 0:e.contentStyle},{default:()=>F}):F,q=e.showArrow?ei({arrowStyle:e.arrowStyle,clsPrefix:T}):null;return[A,q]};R=u("div",Ot({class:[`${T}-popover`,`${T}-popover-shared`,S==null?void 0:S.themeClass.value,N.map($=>`${T}-${$}`),{[`${T}-popover--scrollable`]:e.scrollable,[`${T}-popover--show-header-or-footer`]:_,[`${T}-popover--raw`]:e.raw,[`${T}-popover-shared--overlap`]:e.overlap,[`${T}-popover-shared--show-arrow`]:e.showArrow,[`${T}-popover-shared--center-arrow`]:e.arrowPointToCenter}],ref:d,style:p.value,onKeydown:a.handleKeydown,onMouseenter:x,onMouseleave:z},r),E?u(Ya,{active:e.show,autoFocus:!0},{default:C}):C())}return pt(R,h.value)}return{displayed:f,namespace:n,isMounted:a.isMountedRef,zIndex:a.zIndexRef,followerRef:s,adjustedTo:gt(e),followerEnabled:c,renderContentNode:M}},render(){return u(Ro,{ref:"followerRef",zIndex:this.zIndex,show:this.show,enabled:this.followerEnabled,to:this.adjustedTo,x:this.x,y:this.y,flip:this.flip,placement:this.placement,containerClass:this.namespace,overlap:this.overlap,width:this.width==="trigger"?"target":void 0,teleportDisabled:this.adjustedTo===gt.tdkey},{default:()=>this.animated?u($t,{name:"popover-transition",appear:this.isMounted,onEnter:()=>{this.followerEnabled=!0},onAfterLeave:()=>{var e;(e=this.internalOnAfterLeave)===null||e===void 0||e.call(this),this.followerEnabled=!1,this.displayed=!1}},{default:this.renderContentNode}):this.renderContentNode()})}}),Jc=Object.keys(Qo),Qc={focus:["onFocus","onBlur"],click:["onClick"],hover:["onMouseenter","onMouseleave"],manual:[],nested:["onFocus","onBlur","onMouseenter","onMouseleave","onClick"]};function ef(e,t,r){Qc[t].forEach(n=>{e.props?e.props=Object.assign({},e.props):e.props={};const o=e.props[n],i=r[n];o?e.props[n]=(...l)=>{o(...l),i(...l)}:e.props[n]=i})}const tf=he("").type,nr={show:{type:Boolean,default:void 0},defaultShow:Boolean,showArrow:{type:Boolean,default:!0},trigger:{type:String,default:"hover"},delay:{type:Number,default:100},duration:{type:Number,default:100},raw:Boolean,placement:{type:String,default:"top"},x:Number,y:Number,arrowPointToCenter:Boolean,disabled:Boolean,getDisabled:Function,displayDirective:{type:String,default:"if"},arrowStyle:[String,Object],flip:{type:Boolean,default:!0},animated:{type:Boolean,default:!0},width:{type:[Number,String],default:void 0},overlap:Boolean,keepAliveOnHover:{type:Boolean,default:!0},zIndex:Number,to:gt.propTo,scrollable:Boolean,contentStyle:[Object,String],headerStyle:[Object,String],footerStyle:[Object,String],onClickoutside:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],internalDeactivateImmediately:Boolean,internalSyncTargetWithParent:Boolean,internalInheritedEventHandlers:{type:Array,default:()=>[]},internalTrapFocus:Boolean,internalExtraClass:{type:Array,default:()=>[]},onShow:[Function,Array],onHide:[Function,Array],arrow:{type:Boolean,default:void 0},minWidth:Number,maxWidth:Number},rf=Object.assign(Object.assign(Object.assign({},re.props),nr),{internalOnAfterLeave:Function,internalRenderBody:Function}),ti=K({name:"Popover",inheritAttrs:!1,props:rf,__popover__:!0,setup(e){const t=Dr(),r=L(null),n=D(()=>e.show),o=L(e.defaultShow),i=tr(n,o),l=Be(()=>e.disabled?!1:i.value),s=()=>{if(e.disabled)return!0;const{getDisabled:C}=e;return!!(C!=null&&C())},a=()=>s()?!1:i.value,d=zl(e,["arrow","showArrow"]),c=D(()=>e.overlap?!1:d.value);let f=null;const h=L(null),p=L(null),y=Be(()=>e.x!==void 0&&e.y!==void 0);function S(C){const{"onUpdate:show":$,onUpdateShow:F,onShow:A,onHide:q}=e;o.value=C,$&&ue($,C),F&&ue(F,C),C&&A&&ue(A,!0),C&&q&&ue(q,!1)}function m(){f&&f.syncPosition()}function x(){const{value:C}=h;C&&(window.clearTimeout(C),h.value=null)}function z(){const{value:C}=p;C&&(window.clearTimeout(C),p.value=null)}function O(){const C=s();if(e.trigger==="focus"&&!C){if(a())return;S(!0)}}function w(){const C=s();if(e.trigger==="focus"&&!C){if(!a())return;S(!1)}}function g(){const C=s();if(e.trigger==="hover"&&!C){if(z(),h.value!==null||a())return;const $=()=>{S(!0),h.value=null},{delay:F}=e;F===0?$():h.value=window.setTimeout($,F)}}function M(){const C=s();if(e.trigger==="hover"&&!C){if(x(),p.value!==null||!a())return;const $=()=>{S(!1),p.value=null},{duration:F}=e;F===0?$():p.value=window.setTimeout($,F)}}function b(){M()}function R(C){var $;a()&&(e.trigger==="click"&&(x(),z(),S(!1)),($=e.onClickoutside)===null||$===void 0||$.call(e,C))}function P(){if(e.trigger==="click"&&!s()){x(),z();const C=!a();S(C)}}function T(C){e.internalTrapFocus&&C.key==="Escape"&&(x(),z(),S(!1))}function N(C){o.value=C}function E(){var C;return(C=r.value)===null||C===void 0?void 0:C.targetRef}function _(C){f=C}return Pe("NPopover",{getTriggerElement:E,handleKeydown:T,handleMouseEnter:g,handleMouseLeave:M,handleClickOutside:R,handleMouseMoveOutside:b,setBodyInstance:_,positionManuallyRef:y,isMountedRef:t,zIndexRef:Z(e,"zIndex"),extraClassRef:Z(e,"internalExtraClass"),internalRenderBodyRef:Z(e,"internalRenderBody")}),ot(()=>{i.value&&s()&&S(!1)}),{binderInstRef:r,positionManually:y,mergedShowConsideringDisabledProp:l,uncontrolledShow:o,mergedShowArrow:c,getMergedShow:a,setShow:N,handleClick:P,handleMouseEnter:g,handleMouseLeave:M,handleFocus:O,handleBlur:w,syncPosition:m}},render(){var e;const{positionManually:t,$slots:r}=this;let n,o=!1;if(!t&&(r.activator?n=pn(r,"activator"):n=pn(r,"trigger"),n)){n=Za(n),n=n.type===tf?u("span",[n]):n;const i={onClick:this.handleClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur};if(!((e=n.type)===null||e===void 0)&&e.__popover__)o=!0,n.props||(n.props={internalSyncTargetWithParent:!0,internalInheritedEventHandlers:[]}),n.props.internalSyncTargetWithParent=!0,n.props.internalInheritedEventHandlers?n.props.internalInheritedEventHandlers=[i,...n.props.internalInheritedEventHandlers]:n.props.internalInheritedEventHandlers=[i];else{const{internalInheritedEventHandlers:l}=this,s=[i,...l],a={onBlur:d=>{s.forEach(c=>{c.onBlur(d)})},onFocus:d=>{s.forEach(c=>{c.onFocus(d)})},onClick:d=>{s.forEach(c=>{c.onClick(d)})},onMouseenter:d=>{s.forEach(c=>{c.onMouseenter(d)})},onMouseleave:d=>{s.forEach(c=>{c.onMouseleave(d)})}};ef(n,l?"nested":t?"manual":this.trigger,a)}}return u(To,{ref:"binderInstRef",syncTarget:!o,syncTargetWithParent:this.internalSyncTargetWithParent},{default:()=>{this.mergedShowConsideringDisabledProp;const i=this.getMergedShow();return[this.internalTrapFocus&&i?pt(u("div",{style:{position:"fixed",inset:0}}),[[Fr,{enabled:i,zIndex:this.zIndex}]]):null,t?null:u(Io,null,{default:()=>n}),u(Zc,co(this.$props,Jc,Object.assign(Object.assign({},this.$attrs),{showArrow:this.mergedShowArrow,show:i})),{default:()=>{var l,s;return(s=(l=this.$slots).default)===null||s===void 0?void 0:s.call(l)},header:()=>{var l,s;return(s=(l=this.$slots).header)===null||s===void 0?void 0:s.call(l)},footer:()=>{var l,s;return(s=(l=this.$slots).footer)===null||s===void 0?void 0:s.call(l)}})]}})}}),nf={closeIconSizeTiny:"12px",closeIconSizeSmall:"12px",closeIconSizeMedium:"14px",closeIconSizeLarge:"14px",closeSizeTiny:"16px",closeSizeSmall:"16px",closeSizeMedium:"18px",closeSizeLarge:"18px",padding:"0 7px",closeMargin:"0 0 0 4px",closeMarginRtl:"0 4px 0 0"},of=e=>{const{textColor2:t,primaryColorHover:r,primaryColorPressed:n,primaryColor:o,infoColor:i,successColor:l,warningColor:s,errorColor:a,baseColor:d,borderColor:c,opacityDisabled:f,tagColor:h,closeIconColor:p,closeIconColorHover:y,closeIconColorPressed:S,borderRadiusSmall:m,fontSizeMini:x,fontSizeTiny:z,fontSizeSmall:O,fontSizeMedium:w,heightMini:g,heightTiny:M,heightSmall:b,heightMedium:R,closeColorHover:P,closeColorPressed:T,buttonColor2Hover:N,buttonColor2Pressed:E,fontWeightStrong:_}=e;return Object.assign(Object.assign({},nf),{closeBorderRadius:m,heightTiny:g,heightSmall:M,heightMedium:b,heightLarge:R,borderRadius:m,opacityDisabled:f,fontSizeTiny:x,fontSizeSmall:z,fontSizeMedium:O,fontSizeLarge:w,fontWeightStrong:_,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:d,colorCheckable:"#0000",colorHoverCheckable:N,colorPressedCheckable:E,colorChecked:o,colorCheckedHover:r,colorCheckedPressed:n,border:`1px solid ${c}`,textColor:t,color:h,colorBordered:"rgb(250, 250, 252)",closeIconColor:p,closeIconColorHover:y,closeIconColorPressed:S,closeColorHover:P,closeColorPressed:T,borderPrimary:`1px solid ${te(o,{alpha:.3})}`,textColorPrimary:o,colorPrimary:te(o,{alpha:.12}),colorBorderedPrimary:te(o,{alpha:.1}),closeIconColorPrimary:o,closeIconColorHoverPrimary:o,closeIconColorPressedPrimary:o,closeColorHoverPrimary:te(o,{alpha:.12}),closeColorPressedPrimary:te(o,{alpha:.18}),borderInfo:`1px solid ${te(i,{alpha:.3})}`,textColorInfo:i,colorInfo:te(i,{alpha:.12}),colorBorderedInfo:te(i,{alpha:.1}),closeIconColorInfo:i,closeIconColorHoverInfo:i,closeIconColorPressedInfo:i,closeColorHoverInfo:te(i,{alpha:.12}),closeColorPressedInfo:te(i,{alpha:.18}),borderSuccess:`1px solid ${te(l,{alpha:.3})}`,textColorSuccess:l,colorSuccess:te(l,{alpha:.12}),colorBorderedSuccess:te(l,{alpha:.1}),closeIconColorSuccess:l,closeIconColorHoverSuccess:l,closeIconColorPressedSuccess:l,closeColorHoverSuccess:te(l,{alpha:.12}),closeColorPressedSuccess:te(l,{alpha:.18}),borderWarning:`1px solid ${te(s,{alpha:.35})}`,textColorWarning:s,colorWarning:te(s,{alpha:.15}),colorBorderedWarning:te(s,{alpha:.12}),closeIconColorWarning:s,closeIconColorHoverWarning:s,closeIconColorPressedWarning:s,closeColorHoverWarning:te(s,{alpha:.12}),closeColorPressedWarning:te(s,{alpha:.18}),borderError:`1px solid ${te(a,{alpha:.23})}`,textColorError:a,colorError:te(a,{alpha:.1}),colorBorderedError:te(a,{alpha:.08}),closeIconColorError:a,closeIconColorHoverError:a,closeIconColorPressedError:a,closeColorHoverError:te(a,{alpha:.12}),closeColorPressedError:te(a,{alpha:.18})})},af={name:"Tag",common:_e,self:of},lf=af,sf={color:Object,type:{type:String,default:"default"},round:Boolean,size:{type:String,default:"medium"},closable:Boolean,disabled:{type:Boolean,default:void 0}},df=k("tag",`
+ white-space: nowrap;
+ position: relative;
+ box-sizing: border-box;
+ cursor: default;
+ display: inline-flex;
+ align-items: center;
+ flex-wrap: nowrap;
+ padding: var(--n-padding);
+ border-radius: var(--n-border-radius);
+ color: var(--n-text-color);
+ background-color: var(--n-color);
+ transition:
+ border-color .3s var(--n-bezier),
+ background-color .3s var(--n-bezier),
+ color .3s var(--n-bezier),
+ box-shadow .3s var(--n-bezier),
+ opacity .3s var(--n-bezier);
+ line-height: 1;
+ height: var(--n-height);
+ font-size: var(--n-font-size);
+`,[W("strong",`
+ font-weight: var(--n-font-weight-strong);
+ `),B("border",`
+ pointer-events: none;
+ position: absolute;
+ left: 0;
+ right: 0;
+ top: 0;
+ bottom: 0;
+ border-radius: inherit;
+ border: var(--n-border);
+ transition: border-color .3s var(--n-bezier);
+ `),B("icon",`
+ display: flex;
+ margin: 0 4px 0 0;
+ color: var(--n-text-color);
+ transition: color .3s var(--n-bezier);
+ font-size: var(--n-avatar-size-override);
+ `),B("avatar",`
+ display: flex;
+ margin: 0 6px 0 0;
+ `),B("close",`
+ margin: var(--n-close-margin);
+ transition:
+ background-color .3s var(--n-bezier),
+ color .3s var(--n-bezier);
+ `),W("round",`
+ padding: 0 calc(var(--n-height) / 3);
+ border-radius: calc(var(--n-height) / 2);
+ `,[B("icon",`
+ margin: 0 4px 0 calc((var(--n-height) - 8px) / -2);
+ `),B("avatar",`
+ margin: 0 6px 0 calc((var(--n-height) - 8px) / -2);
+ `),W("closable",`
+ padding: 0 calc(var(--n-height) / 4) 0 calc(var(--n-height) / 3);
+ `)]),W("icon, avatar",[W("round",`
+ padding: 0 calc(var(--n-height) / 3) 0 calc(var(--n-height) / 2);
+ `)]),W("disabled",`
+ cursor: not-allowed !important;
+ opacity: var(--n-opacity-disabled);
+ `),W("checkable",`
+ cursor: pointer;
+ box-shadow: none;
+ color: var(--n-text-color-checkable);
+ background-color: var(--n-color-checkable);
+ `,[ze("disabled",[H("&:hover","background-color: var(--n-color-hover-checkable);",[ze("checked","color: var(--n-text-color-hover-checkable);")]),H("&:active","background-color: var(--n-color-pressed-checkable);",[ze("checked","color: var(--n-text-color-pressed-checkable);")])]),W("checked",`
+ color: var(--n-text-color-checked);
+ background-color: var(--n-color-checked);
+ `,[ze("disabled",[H("&:hover","background-color: var(--n-color-checked-hover);"),H("&:active","background-color: var(--n-color-checked-pressed);")])])])]),uf=Object.assign(Object.assign(Object.assign({},re.props),sf),{bordered:{type:Boolean,default:void 0},checked:Boolean,checkable:Boolean,strong:Boolean,triggerClickOnClose:Boolean,onClose:[Array,Function],onMouseenter:Function,onMouseleave:Function,"onUpdate:checked":Function,onUpdateChecked:Function,internalCloseFocusable:{type:Boolean,default:!0},internalCloseIsButtonTag:{type:Boolean,default:!0},onCheckedChange:Function}),cf=We("n-tag"),ri=K({name:"Tag",props:uf,setup(e){const t=L(null),{mergedBorderedRef:r,mergedClsPrefixRef:n,inlineThemeDisabled:o,mergedRtlRef:i}=Ie(e),l=re("Tag","-tag",df,lf,e,n);Pe(cf,{roundRef:Z(e,"round")});function s(p){if(!e.disabled&&e.checkable){const{checked:y,onCheckedChange:S,onUpdateChecked:m,"onUpdate:checked":x}=e;m&&m(!y),x&&x(!y),S&&S(!y)}}function a(p){if(e.triggerClickOnClose||p.stopPropagation(),!e.disabled){const{onClose:y}=e;y&&ue(y,p)}}const d={setTextContent(p){const{value:y}=t;y&&(y.textContent=p)}},c=_t("Tag",i,n),f=D(()=>{const{type:p,size:y,color:{color:S,textColor:m}={}}=e,{common:{cubicBezierEaseInOut:x},self:{padding:z,closeMargin:O,closeMarginRtl:w,borderRadius:g,opacityDisabled:M,textColorCheckable:b,textColorHoverCheckable:R,textColorPressedCheckable:P,textColorChecked:T,colorCheckable:N,colorHoverCheckable:E,colorPressedCheckable:_,colorChecked:C,colorCheckedHover:$,colorCheckedPressed:F,closeBorderRadius:A,fontWeightStrong:q,[ne("colorBordered",p)]:Q,[ne("closeSize",y)]:fe,[ne("closeIconSize",y)]:ye,[ne("fontSize",y)]:ge,[ne("height",y)]:Re,[ne("color",p)]:oe,[ne("textColor",p)]:ke,[ne("border",p)]:we,[ne("closeIconColor",p)]:ee,[ne("closeIconColorHover",p)]:Le,[ne("closeIconColorPressed",p)]:Ve,[ne("closeColorHover",p)]:Ke,[ne("closeColorPressed",p)]:Ee}}=l.value;return{"--n-font-weight-strong":q,"--n-avatar-size-override":`calc(${Re} - 8px)`,"--n-bezier":x,"--n-border-radius":g,"--n-border":we,"--n-close-icon-size":ye,"--n-close-color-pressed":Ee,"--n-close-color-hover":Ke,"--n-close-border-radius":A,"--n-close-icon-color":ee,"--n-close-icon-color-hover":Le,"--n-close-icon-color-pressed":Ve,"--n-close-icon-color-disabled":ee,"--n-close-margin":O,"--n-close-margin-rtl":w,"--n-close-size":fe,"--n-color":S||(r.value?Q:oe),"--n-color-checkable":N,"--n-color-checked":C,"--n-color-checked-hover":$,"--n-color-checked-pressed":F,"--n-color-hover-checkable":E,"--n-color-pressed-checkable":_,"--n-font-size":ge,"--n-height":Re,"--n-opacity-disabled":M,"--n-padding":z,"--n-text-color":m||ke,"--n-text-color-checkable":b,"--n-text-color-checked":T,"--n-text-color-hover-checkable":R,"--n-text-color-pressed-checkable":P}}),h=o?Ae("tag",D(()=>{let p="";const{type:y,size:S,color:{color:m,textColor:x}={}}=e;return p+=y[0],p+=S[0],m&&(p+=`a${vn(m)}`),x&&(p+=`b${vn(x)}`),r.value&&(p+="c"),p}),f,e):void 0;return Object.assign(Object.assign({},d),{rtlEnabled:c,mergedClsPrefix:n,contentRef:t,mergedBordered:r,handleClick:s,handleCloseClick:a,cssVars:o?void 0:f,themeClass:h==null?void 0:h.themeClass,onRender:h==null?void 0:h.onRender})},render(){var e,t;const{mergedClsPrefix:r,rtlEnabled:n,closable:o,color:{borderColor:i}={},round:l,onRender:s,$slots:a}=this;s==null||s();const d=Ge(a.avatar,f=>f&&u("div",{class:`${r}-tag__avatar`},f)),c=Ge(a.icon,f=>f&&u("div",{class:`${r}-tag__icon`},f));return u("div",{class:[`${r}-tag`,this.themeClass,{[`${r}-tag--rtl`]:n,[`${r}-tag--strong`]:this.strong,[`${r}-tag--disabled`]:this.disabled,[`${r}-tag--checkable`]:this.checkable,[`${r}-tag--checked`]:this.checkable&&this.checked,[`${r}-tag--round`]:l,[`${r}-tag--avatar`]:d,[`${r}-tag--icon`]:c,[`${r}-tag--closable`]:o}],style:this.cssVars,onClick:this.handleClick,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},c||d,u("span",{class:`${r}-tag__content`,ref:"contentRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)),!this.checkable&&o?u(Ja,{clsPrefix:r,class:`${r}-tag__close`,disabled:this.disabled,onClick:this.handleCloseClick,focusable:this.internalCloseFocusable,round:l,isButtonTag:this.internalCloseIsButtonTag,absolute:!0}):null,!this.checkable&&this.mergedBordered?u("div",{class:`${r}-tag__border`,style:{borderColor:i}}):null)}}),ff=k("base-clear",`
+ flex-shrink: 0;
+ height: 1em;
+ width: 1em;
+ position: relative;
+`,[H(">",[B("clear",`
+ font-size: var(--n-clear-size);
+ height: 1em;
+ width: 1em;
+ cursor: pointer;
+ color: var(--n-clear-color);
+ transition: color .3s var(--n-bezier);
+ display: flex;
+ `,[H("&:hover",`
+ color: var(--n-clear-color-hover)!important;
+ `),H("&:active",`
+ color: var(--n-clear-color-pressed)!important;
+ `)]),B("placeholder",`
+ display: flex;
+ `),B("clear, placeholder",`
+ position: absolute;
+ left: 50%;
+ top: 50%;
+ transform: translateX(-50%) translateY(-50%);
+ `,[fo({originalTransform:"translateX(-50%) translateY(-50%)",left:"50%",top:"50%"})])])]),Or=K({name:"BaseClear",props:{clsPrefix:{type:String,required:!0},show:Boolean,onClear:Function},setup(e){return ho("-base-clear",ff,Z(e,"clsPrefix")),{handleMouseDown(t){t.preventDefault()}}},render(){const{clsPrefix:e}=this;return u("div",{class:`${e}-base-clear`},u(po,null,{default:()=>{var t,r;return this.show?u("div",{key:"dismiss",class:`${e}-base-clear__clear`,onClick:this.onClear,onMousedown:this.handleMouseDown,"data-clear":!0},ft(this.$slots.icon,()=>[u(ce,{clsPrefix:e},{default:()=>u(uc,null)})])):u("div",{key:"icon",class:`${e}-base-clear__placeholder`},(r=(t=this.$slots).placeholder)===null||r===void 0?void 0:r.call(t))}}))}}),hf=K({name:"InternalSelectionSuffix",props:{clsPrefix:{type:String,required:!0},showArrow:{type:Boolean,default:void 0},showClear:{type:Boolean,default:void 0},loading:{type:Boolean,default:!1},onClear:Function},setup(e,{slots:t}){return()=>{const{clsPrefix:r}=e;return u(Qa,{clsPrefix:r,class:`${r}-base-suffix`,strokeWidth:24,scale:.85,show:e.loading},{default:()=>e.showArrow?u(Or,{clsPrefix:r,show:e.showClear,onClear:e.onClear},{placeholder:()=>u(ce,{clsPrefix:r,class:`${r}-base-suffix__arrow`},{default:()=>ft(t.default,()=>[u(dc,null)])})}):null})}}}),pf={paddingTiny:"0 8px",paddingSmall:"0 10px",paddingMedium:"0 12px",paddingLarge:"0 14px",clearSize:"16px"},vf=e=>{const{textColor2:t,textColor3:r,textColorDisabled:n,primaryColor:o,primaryColorHover:i,inputColor:l,inputColorDisabled:s,borderColor:a,warningColor:d,warningColorHover:c,errorColor:f,errorColorHover:h,borderRadius:p,lineHeight:y,fontSizeTiny:S,fontSizeSmall:m,fontSizeMedium:x,fontSizeLarge:z,heightTiny:O,heightSmall:w,heightMedium:g,heightLarge:M,actionColor:b,clearColor:R,clearColorHover:P,clearColorPressed:T,placeholderColor:N,placeholderColorDisabled:E,iconColor:_,iconColorDisabled:C,iconColorHover:$,iconColorPressed:F}=e;return Object.assign(Object.assign({},pf),{countTextColorDisabled:n,countTextColor:r,heightTiny:O,heightSmall:w,heightMedium:g,heightLarge:M,fontSizeTiny:S,fontSizeSmall:m,fontSizeMedium:x,fontSizeLarge:z,lineHeight:y,lineHeightTextarea:y,borderRadius:p,iconSize:"16px",groupLabelColor:b,groupLabelTextColor:t,textColor:t,textColorDisabled:n,textDecorationColor:t,caretColor:o,placeholderColor:N,placeholderColorDisabled:E,color:l,colorDisabled:s,colorFocus:l,groupLabelBorder:`1px solid ${a}`,border:`1px solid ${a}`,borderHover:`1px solid ${i}`,borderDisabled:`1px solid ${a}`,borderFocus:`1px solid ${i}`,boxShadowFocus:`0 0 0 2px ${te(o,{alpha:.2})}`,loadingColor:o,loadingColorWarning:d,borderWarning:`1px solid ${d}`,borderHoverWarning:`1px solid ${c}`,colorFocusWarning:l,borderFocusWarning:`1px solid ${c}`,boxShadowFocusWarning:`0 0 0 2px ${te(d,{alpha:.2})}`,caretColorWarning:d,loadingColorError:f,borderError:`1px solid ${f}`,borderHoverError:`1px solid ${h}`,colorFocusError:l,borderFocusError:`1px solid ${h}`,boxShadowFocusError:`0 0 0 2px ${te(f,{alpha:.2})}`,caretColorError:f,clearColor:R,clearColorHover:P,clearColorPressed:T,iconColor:_,iconColorDisabled:C,iconColorHover:$,iconColorPressed:F,suffixTextColor:t})},gf={name:"Input",common:_e,self:vf},mf=gf,ni=We("n-input");function bf(e){let t=0;for(const r of e)t++;return t}function jt(e){return e===""||e==null}function yf(e){const t=L(null);function r(){const{value:i}=e;if(!(i!=null&&i.focus)){o();return}const{selectionStart:l,selectionEnd:s,value:a}=i;if(l==null||s==null){o();return}t.value={start:l,end:s,beforeText:a.slice(0,l),afterText:a.slice(s)}}function n(){var i;const{value:l}=t,{value:s}=e;if(!l||!s)return;const{value:a}=s,{start:d,beforeText:c,afterText:f}=l;let h=a.length;if(a.endsWith(f))h=a.length-f.length;else if(a.startsWith(c))h=c.length;else{const p=c[d-1],y=a.indexOf(p,d-1);y!==-1&&(h=y+1)}(i=s.setSelectionRange)===null||i===void 0||i.call(s,h,h)}function o(){t.value=null}return Ce(e,o),{recordCursor:r,restoreCursor:n}}const Wn=K({name:"InputWordCount",setup(e,{slots:t}){const{mergedValueRef:r,maxlengthRef:n,mergedClsPrefixRef:o,countGraphemesRef:i}=ie(ni),l=D(()=>{const{value:s}=r;return s===null||Array.isArray(s)?0:(i.value||bf)(s)});return()=>{const{value:s}=n,{value:a}=r;return u("span",{class:`${o.value}-input-word-count`},el(t.default,{value:a===null||Array.isArray(a)?"":a},()=>[s===void 0?l.value:`${l.value} / ${s}`]))}}}),wf=k("input",`
+ max-width: 100%;
+ cursor: text;
+ line-height: 1.5;
+ z-index: auto;
+ outline: none;
+ box-sizing: border-box;
+ position: relative;
+ display: inline-flex;
+ border-radius: var(--n-border-radius);
+ background-color: var(--n-color);
+ transition: background-color .3s var(--n-bezier);
+ font-size: var(--n-font-size);
+ --n-padding-vertical: calc((var(--n-height) - 1.5 * var(--n-font-size)) / 2);
+`,[B("input, textarea",`
+ overflow: hidden;
+ flex-grow: 1;
+ position: relative;
+ `),B("input-el, textarea-el, input-mirror, textarea-mirror, separator, placeholder",`
+ box-sizing: border-box;
+ font-size: inherit;
+ line-height: 1.5;
+ font-family: inherit;
+ border: none;
+ outline: none;
+ background-color: #0000;
+ text-align: inherit;
+ transition:
+ -webkit-text-fill-color .3s var(--n-bezier),
+ caret-color .3s var(--n-bezier),
+ color .3s var(--n-bezier),
+ text-decoration-color .3s var(--n-bezier);
+ `),B("input-el, textarea-el",`
+ -webkit-appearance: none;
+ scrollbar-width: none;
+ width: 100%;
+ min-width: 0;
+ text-decoration-color: var(--n-text-decoration-color);
+ color: var(--n-text-color);
+ caret-color: var(--n-caret-color);
+ background-color: transparent;
+ `,[H("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",`
+ width: 0;
+ height: 0;
+ display: none;
+ `),H("&::placeholder",`
+ color: #0000;
+ -webkit-text-fill-color: transparent !important;
+ `),H("&:-webkit-autofill ~",[B("placeholder","display: none;")])]),W("round",[ze("textarea","border-radius: calc(var(--n-height) / 2);")]),B("placeholder",`
+ pointer-events: none;
+ position: absolute;
+ left: 0;
+ right: 0;
+ top: 0;
+ bottom: 0;
+ overflow: hidden;
+ color: var(--n-placeholder-color);
+ `,[H("span",`
+ width: 100%;
+ display: inline-block;
+ `)]),W("textarea",[B("placeholder","overflow: visible;")]),ze("autosize","width: 100%;"),W("autosize",[B("textarea-el, input-el",`
+ position: absolute;
+ top: 0;
+ left: 0;
+ height: 100%;
+ `)]),k("input-wrapper",`
+ overflow: hidden;
+ display: inline-flex;
+ flex-grow: 1;
+ position: relative;
+ padding-left: var(--n-padding-left);
+ padding-right: var(--n-padding-right);
+ `),B("input-mirror",`
+ padding: 0;
+ height: var(--n-height);
+ line-height: var(--n-height);
+ overflow: hidden;
+ visibility: hidden;
+ position: static;
+ white-space: pre;
+ pointer-events: none;
+ `),B("input-el",`
+ padding: 0;
+ height: var(--n-height);
+ line-height: var(--n-height);
+ `,[H("+",[B("placeholder",`
+ display: flex;
+ align-items: center;
+ `)])]),ze("textarea",[B("placeholder","white-space: nowrap;")]),B("eye",`
+ transition: color .3s var(--n-bezier);
+ `),W("textarea","width: 100%;",[k("input-word-count",`
+ position: absolute;
+ right: var(--n-padding-right);
+ bottom: var(--n-padding-vertical);
+ `),W("resizable",[k("input-wrapper",`
+ resize: vertical;
+ min-height: var(--n-height);
+ `)]),B("textarea-el, textarea-mirror, placeholder",`
+ height: 100%;
+ padding-left: 0;
+ padding-right: 0;
+ padding-top: var(--n-padding-vertical);
+ padding-bottom: var(--n-padding-vertical);
+ word-break: break-word;
+ display: inline-block;
+ vertical-align: bottom;
+ box-sizing: border-box;
+ line-height: var(--n-line-height-textarea);
+ margin: 0;
+ resize: none;
+ white-space: pre-wrap;
+ `),B("textarea-mirror",`
+ width: 100%;
+ pointer-events: none;
+ overflow: hidden;
+ visibility: hidden;
+ position: static;
+ white-space: pre-wrap;
+ overflow-wrap: break-word;
+ `)]),W("pair",[B("input-el, placeholder","text-align: center;"),B("separator",`
+ display: flex;
+ align-items: center;
+ transition: color .3s var(--n-bezier);
+ color: var(--n-text-color);
+ white-space: nowrap;
+ `,[k("icon",`
+ color: var(--n-icon-color);
+ `),k("base-icon",`
+ color: var(--n-icon-color);
+ `)])]),W("disabled",`
+ cursor: not-allowed;
+ background-color: var(--n-color-disabled);
+ `,[B("border","border: var(--n-border-disabled);"),B("input-el, textarea-el",`
+ cursor: not-allowed;
+ color: var(--n-text-color-disabled);
+ text-decoration-color: var(--n-text-color-disabled);
+ `),B("placeholder","color: var(--n-placeholder-color-disabled);"),B("separator","color: var(--n-text-color-disabled);",[k("icon",`
+ color: var(--n-icon-color-disabled);
+ `),k("base-icon",`
+ color: var(--n-icon-color-disabled);
+ `)]),k("input-word-count",`
+ color: var(--n-count-text-color-disabled);
+ `),B("suffix, prefix","color: var(--n-text-color-disabled);",[k("icon",`
+ color: var(--n-icon-color-disabled);
+ `),k("internal-icon",`
+ color: var(--n-icon-color-disabled);
+ `)])]),ze("disabled",[B("eye",`
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ color: var(--n-icon-color);
+ cursor: pointer;
+ `,[H("&:hover",`
+ color: var(--n-icon-color-hover);
+ `),H("&:active",`
+ color: var(--n-icon-color-pressed);
+ `)]),H("&:hover",[B("state-border","border: var(--n-border-hover);")]),W("focus","background-color: var(--n-color-focus);",[B("state-border",`
+ border: var(--n-border-focus);
+ box-shadow: var(--n-box-shadow-focus);
+ `)])]),B("border, state-border",`
+ box-sizing: border-box;
+ position: absolute;
+ left: 0;
+ right: 0;
+ top: 0;
+ bottom: 0;
+ pointer-events: none;
+ border-radius: inherit;
+ border: var(--n-border);
+ transition:
+ box-shadow .3s var(--n-bezier),
+ border-color .3s var(--n-bezier);
+ `),B("state-border",`
+ border-color: #0000;
+ z-index: 1;
+ `),B("prefix","margin-right: 4px;"),B("suffix",`
+ margin-left: 4px;
+ `),B("suffix, prefix",`
+ transition: color .3s var(--n-bezier);
+ flex-wrap: nowrap;
+ flex-shrink: 0;
+ line-height: var(--n-height);
+ white-space: nowrap;
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ color: var(--n-suffix-text-color);
+ `,[k("base-loading",`
+ font-size: var(--n-icon-size);
+ margin: 0 2px;
+ color: var(--n-loading-color);
+ `),k("base-clear",`
+ font-size: var(--n-icon-size);
+ `,[B("placeholder",[k("base-icon",`
+ transition: color .3s var(--n-bezier);
+ color: var(--n-icon-color);
+ font-size: var(--n-icon-size);
+ `)])]),H(">",[k("icon",`
+ transition: color .3s var(--n-bezier);
+ color: var(--n-icon-color);
+ font-size: var(--n-icon-size);
+ `)]),k("base-icon",`
+ font-size: var(--n-icon-size);
+ `)]),k("input-word-count",`
+ pointer-events: none;
+ line-height: 1.5;
+ font-size: .85em;
+ color: var(--n-count-text-color);
+ transition: color .3s var(--n-bezier);
+ margin-left: 4px;
+ font-variant: tabular-nums;
+ `),["warning","error"].map(e=>W(`${e}-status`,[ze("disabled",[k("base-loading",`
+ color: var(--n-loading-color-${e})
+ `),B("input-el, textarea-el",`
+ caret-color: var(--n-caret-color-${e});
+ `),B("state-border",`
+ border: var(--n-border-${e});
+ `),H("&:hover",[B("state-border",`
+ border: var(--n-border-hover-${e});
+ `)]),H("&:focus",`
+ background-color: var(--n-color-focus-${e});
+ `,[B("state-border",`
+ box-shadow: var(--n-box-shadow-focus-${e});
+ border: var(--n-border-focus-${e});
+ `)]),W("focus",`
+ background-color: var(--n-color-focus-${e});
+ `,[B("state-border",`
+ box-shadow: var(--n-box-shadow-focus-${e});
+ border: var(--n-border-focus-${e});
+ `)])])]))]),xf=k("input",[W("disabled",[B("input-el, textarea-el",`
+ -webkit-text-fill-color: var(--n-text-color-disabled);
+ `)])]),Cf=Object.assign(Object.assign({},re.props),{bordered:{type:Boolean,default:void 0},type:{type:String,default:"text"},placeholder:[Array,String],defaultValue:{type:[String,Array],default:null},value:[String,Array],disabled:{type:Boolean,default:void 0},size:String,rows:{type:[Number,String],default:3},round:Boolean,minlength:[String,Number],maxlength:[String,Number],clearable:Boolean,autosize:{type:[Boolean,Object],default:!1},pair:Boolean,separator:String,readonly:{type:[String,Boolean],default:!1},passivelyActivated:Boolean,showPasswordOn:String,stateful:{type:Boolean,default:!0},autofocus:Boolean,inputProps:Object,resizable:{type:Boolean,default:!0},showCount:Boolean,loading:{type:Boolean,default:void 0},allowInput:Function,renderCount:Function,onMousedown:Function,onKeydown:Function,onKeyup:Function,onInput:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClick:[Function,Array],onChange:[Function,Array],onClear:[Function,Array],countGraphemes:Function,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],textDecoration:[String,Array],attrSize:{type:Number,default:20},onInputBlur:[Function,Array],onInputFocus:[Function,Array],onDeactivate:[Function,Array],onActivate:[Function,Array],onWrapperFocus:[Function,Array],onWrapperBlur:[Function,Array],internalDeactivateOnEnter:Boolean,internalForceFocus:Boolean,internalLoadingBeforeSuffix:Boolean,showPasswordToggle:Boolean}),kt=K({name:"Input",props:Cf,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:r,inlineThemeDisabled:n,mergedRtlRef:o}=Ie(e),i=re("Input","-input",wf,mf,e,t);tl&&ho("-input-safari",xf,t);const l=L(null),s=L(null),a=L(null),d=L(null),c=L(null),f=L(null),h=L(null),p=yf(h),y=L(null),{localeRef:S}=Xr("Input"),m=L(e.defaultValue),x=Z(e,"value"),z=tr(x,m),O=vo(e),{mergedSizeRef:w,mergedDisabledRef:g,mergedStatusRef:M}=O,b=L(!1),R=L(!1),P=L(!1),T=L(!1);let N=null;const E=D(()=>{const{placeholder:v,pair:I}=e;return I?Array.isArray(v)?v:v===void 0?["",""]:[v,v]:v===void 0?[S.value.placeholder]:[v]}),_=D(()=>{const{value:v}=P,{value:I}=z,{value:G}=E;return!v&&(jt(I)||Array.isArray(I)&&jt(I[0]))&&G[0]}),C=D(()=>{const{value:v}=P,{value:I}=z,{value:G}=E;return!v&&G[1]&&(jt(I)||Array.isArray(I)&&jt(I[1]))}),$=Be(()=>e.internalForceFocus||b.value),F=Be(()=>{if(g.value||e.readonly||!e.clearable||!$.value&&!R.value)return!1;const{value:v}=z,{value:I}=$;return e.pair?!!(Array.isArray(v)&&(v[0]||v[1]))&&(R.value||I):!!v&&(R.value||I)}),A=D(()=>{const{showPasswordOn:v}=e;if(v)return v;if(e.showPasswordToggle)return"click"}),q=L(!1),Q=D(()=>{const{textDecoration:v}=e;return v?Array.isArray(v)?v.map(I=>({textDecoration:I})):[{textDecoration:v}]:["",""]}),fe=L(void 0),ye=()=>{var v,I;if(e.type==="textarea"){const{autosize:G}=e;if(G&&(fe.value=(I=(v=y.value)===null||v===void 0?void 0:v.$el)===null||I===void 0?void 0:I.offsetWidth),!s.value||typeof G=="boolean")return;const{paddingTop:de,paddingBottom:pe,lineHeight:se}=window.getComputedStyle(s.value),Qe=Number(de.slice(0,-2)),et=Number(pe.slice(0,-2)),tt=Number(se.slice(0,-2)),{value:wt}=a;if(!wt)return;if(G.minRows){const xt=Math.max(G.minRows,1),lr=`${Qe+et+tt*xt}px`;wt.style.minHeight=lr}if(G.maxRows){const xt=`${Qe+et+tt*G.maxRows}px`;wt.style.maxHeight=xt}}},ge=D(()=>{const{maxlength:v}=e;return v===void 0?void 0:Number(v)});Xe(()=>{const{value:v}=z;Array.isArray(v)||ar(v)});const Re=Ar().proxy;function oe(v){const{onUpdateValue:I,"onUpdate:value":G,onInput:de}=e,{nTriggerFormInput:pe}=O;I&&ue(I,v),G&&ue(G,v),de&&ue(de,v),m.value=v,pe()}function ke(v){const{onChange:I}=e,{nTriggerFormChange:G}=O;I&&ue(I,v),m.value=v,G()}function we(v){const{onBlur:I}=e,{nTriggerFormBlur:G}=O;I&&ue(I,v),G()}function ee(v){const{onFocus:I}=e,{nTriggerFormFocus:G}=O;I&&ue(I,v),G()}function Le(v){const{onClear:I}=e;I&&ue(I,v)}function Ve(v){const{onInputBlur:I}=e;I&&ue(I,v)}function Ke(v){const{onInputFocus:I}=e;I&&ue(I,v)}function Ee(){const{onDeactivate:v}=e;v&&ue(v)}function j(){const{onActivate:v}=e;v&&ue(v)}function X(v){const{onClick:I}=e;I&&ue(I,v)}function V(v){const{onWrapperFocus:I}=e;I&&ue(I,v)}function ae(v){const{onWrapperBlur:I}=e;I&&ue(I,v)}function le(){P.value=!0}function $e(v){P.value=!1,v.target===f.value?xe(v,1):xe(v,0)}function xe(v,I=0,G="input"){const de=v.target.value;if(ar(de),v instanceof InputEvent&&!v.isComposing&&(P.value=!1),e.type==="textarea"){const{value:se}=y;se&&se.syncUnifiedContainer()}if(N=de,P.value)return;p.recordCursor();const pe=Oe(de);if(pe)if(!e.pair)G==="input"?oe(de):ke(de);else{let{value:se}=z;Array.isArray(se)?se=[se[0],se[1]]:se=["",""],se[I]=de,G==="input"?oe(se):ke(se)}Re.$forceUpdate(),pe||qt(p.restoreCursor)}function Oe(v){const{countGraphemes:I,maxlength:G,minlength:de}=e;if(I){let se;if(G!==void 0&&(se===void 0&&(se=I(v)),se>Number(G))||de!==void 0&&(se===void 0&&(se=I(v)),se{de.preventDefault(),Se("mouseup",document,I)};if(Te("mouseup",document,I),A.value!=="mousedown")return;q.value=!0;const G=()=>{q.value=!1,Se("mouseup",document,G)};Te("mouseup",document,G)}function Li(v){var I;switch((I=e.onKeydown)===null||I===void 0||I.call(e,v),v.key){case"Escape":ir();break;case"Enter":Ei(v);break}}function Ei(v){var I,G;if(e.passivelyActivated){const{value:de}=T;if(de){e.internalDeactivateOnEnter&&ir();return}v.preventDefault(),e.type==="textarea"?(I=s.value)===null||I===void 0||I.focus():(G=c.value)===null||G===void 0||G.focus()}}function ir(){e.passivelyActivated&&(T.value=!1,qt(()=>{var v;(v=l.value)===null||v===void 0||v.focus()}))}function rn(){var v,I,G;g.value||(e.passivelyActivated?(v=l.value)===null||v===void 0||v.focus():((I=s.value)===null||I===void 0||I.focus(),(G=c.value)===null||G===void 0||G.focus()))}function Ai(){var v;!((v=l.value)===null||v===void 0)&&v.contains(document.activeElement)&&document.activeElement.blur()}function Di(){var v,I;(v=s.value)===null||v===void 0||v.select(),(I=c.value)===null||I===void 0||I.select()}function Fi(){g.value||(s.value?s.value.focus():c.value&&c.value.focus())}function Ni(){const{value:v}=l;v!=null&&v.contains(document.activeElement)&&v!==document.activeElement&&ir()}function Hi(v){if(e.type==="textarea"){const{value:I}=s;I==null||I.scrollTo(v)}else{const{value:I}=c;I==null||I.scrollTo(v)}}function ar(v){const{type:I,pair:G,autosize:de}=e;if(!G&&de)if(I==="textarea"){const{value:pe}=a;pe&&(pe.textContent=(v??"")+`\r
+`)}else{const{value:pe}=d;pe&&(v?pe.textContent=v:pe.innerHTML=" ")}}function ji(){ye()}const nn=L({top:"0"});function Wi(v){var I;const{scrollTop:G}=v.target;nn.value.top=`${-G}px`,(I=y.value)===null||I===void 0||I.syncUnifiedContainer()}let At=null;ot(()=>{const{autosize:v,type:I}=e;v&&I==="textarea"?At=Ce(z,G=>{!Array.isArray(G)&&G!==N&&ar(G)}):At==null||At()});let Dt=null;ot(()=>{e.type==="textarea"?Dt=Ce(z,v=>{var I;!Array.isArray(v)&&v!==N&&((I=y.value)===null||I===void 0||I.syncUnifiedContainer())}):Dt==null||Dt()}),Pe(ni,{mergedValueRef:z,maxlengthRef:ge,mergedClsPrefixRef:t,countGraphemesRef:Z(e,"countGraphemes")});const Ui={wrapperElRef:l,inputElRef:c,textareaElRef:s,isCompositing:P,focus:rn,blur:Ai,select:Di,deactivate:Ni,activate:Fi,scrollTo:Hi},Vi=_t("Input",o,t),on=D(()=>{const{value:v}=w,{common:{cubicBezierEaseInOut:I},self:{color:G,borderRadius:de,textColor:pe,caretColor:se,caretColorError:Qe,caretColorWarning:et,textDecorationColor:tt,border:wt,borderDisabled:xt,borderHover:lr,borderFocus:Ki,placeholderColor:qi,placeholderColorDisabled:Gi,lineHeightTextarea:Xi,colorDisabled:Yi,colorFocus:Zi,textColorDisabled:Ji,boxShadowFocus:Qi,iconSize:ea,colorFocusWarning:ta,boxShadowFocusWarning:ra,borderWarning:na,borderFocusWarning:oa,borderHoverWarning:ia,colorFocusError:aa,boxShadowFocusError:la,borderError:sa,borderFocusError:da,borderHoverError:ua,clearSize:ca,clearColor:fa,clearColorHover:ha,clearColorPressed:pa,iconColor:va,iconColorDisabled:ga,suffixTextColor:ma,countTextColor:ba,countTextColorDisabled:ya,iconColorHover:wa,iconColorPressed:xa,loadingColor:Ca,loadingColorError:Sa,loadingColorWarning:Pa,[ne("padding",v)]:ka,[ne("fontSize",v)]:$a,[ne("height",v)]:za}}=i.value,{left:Ta,right:Ia}=ol(ka);return{"--n-bezier":I,"--n-count-text-color":ba,"--n-count-text-color-disabled":ya,"--n-color":G,"--n-font-size":$a,"--n-border-radius":de,"--n-height":za,"--n-padding-left":Ta,"--n-padding-right":Ia,"--n-text-color":pe,"--n-caret-color":se,"--n-text-decoration-color":tt,"--n-border":wt,"--n-border-disabled":xt,"--n-border-hover":lr,"--n-border-focus":Ki,"--n-placeholder-color":qi,"--n-placeholder-color-disabled":Gi,"--n-icon-size":ea,"--n-line-height-textarea":Xi,"--n-color-disabled":Yi,"--n-color-focus":Zi,"--n-text-color-disabled":Ji,"--n-box-shadow-focus":Qi,"--n-loading-color":Ca,"--n-caret-color-warning":et,"--n-color-focus-warning":ta,"--n-box-shadow-focus-warning":ra,"--n-border-warning":na,"--n-border-focus-warning":oa,"--n-border-hover-warning":ia,"--n-loading-color-warning":Pa,"--n-caret-color-error":Qe,"--n-color-focus-error":aa,"--n-box-shadow-focus-error":la,"--n-border-error":sa,"--n-border-focus-error":da,"--n-border-hover-error":ua,"--n-loading-color-error":Sa,"--n-clear-color":fa,"--n-clear-size":ca,"--n-clear-color-hover":ha,"--n-clear-color-pressed":pa,"--n-icon-color":va,"--n-icon-color-hover":wa,"--n-icon-color-pressed":xa,"--n-icon-color-disabled":ga,"--n-suffix-text-color":ma}}),at=n?Ae("input",D(()=>{const{value:v}=w;return v[0]}),on,e):void 0;return Object.assign(Object.assign({},Ui),{wrapperElRef:l,inputElRef:c,inputMirrorElRef:d,inputEl2Ref:f,textareaElRef:s,textareaMirrorElRef:a,textareaScrollbarInstRef:y,rtlEnabled:Vi,uncontrolledValue:m,mergedValue:z,passwordVisible:q,mergedPlaceholder:E,showPlaceholder1:_,showPlaceholder2:C,mergedFocus:$,isComposing:P,activated:T,showClearButton:F,mergedSize:w,mergedDisabled:g,textDecorationStyle:Q,mergedClsPrefix:t,mergedBordered:r,mergedShowPasswordOn:A,placeholderStyle:nn,mergedStatus:M,textAreaScrollContainerWidth:fe,handleTextAreaScroll:Wi,handleCompositionStart:le,handleCompositionEnd:$e,handleInput:xe,handleInputBlur:De,handleInputFocus:Pi,handleWrapperBlur:ki,handleWrapperFocus:$i,handleMouseEnter:Oi,handleMouseLeave:_i,handleMouseDown:Ri,handleChange:zi,handleClick:Ti,handleClear:Ii,handlePasswordToggleClick:Mi,handlePasswordToggleMousedown:Bi,handleWrapperKeydown:Li,handleTextAreaMirrorResize:ji,getTextareaScrollContainer:()=>s.value,mergedTheme:i,cssVars:n?void 0:on,themeClass:at==null?void 0:at.themeClass,onRender:at==null?void 0:at.onRender})},render(){var e,t;const{mergedClsPrefix:r,mergedStatus:n,themeClass:o,type:i,countGraphemes:l,onRender:s}=this,a=this.$slots;return s==null||s(),u("div",{ref:"wrapperElRef",class:[`${r}-input`,o,n&&`${r}-input--${n}-status`,{[`${r}-input--rtl`]:this.rtlEnabled,[`${r}-input--disabled`]:this.mergedDisabled,[`${r}-input--textarea`]:i==="textarea",[`${r}-input--resizable`]:this.resizable&&!this.autosize,[`${r}-input--autosize`]:this.autosize,[`${r}-input--round`]:this.round&&i!=="textarea",[`${r}-input--pair`]:this.pair,[`${r}-input--focus`]:this.mergedFocus,[`${r}-input--stateful`]:this.stateful}],style:this.cssVars,tabindex:!this.mergedDisabled&&this.passivelyActivated&&!this.activated?0:void 0,onFocus:this.handleWrapperFocus,onBlur:this.handleWrapperBlur,onClick:this.handleClick,onMousedown:this.handleMouseDown,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd,onKeyup:this.onKeyup,onKeydown:this.handleWrapperKeydown},u("div",{class:`${r}-input-wrapper`},Ge(a.prefix,d=>d&&u("div",{class:`${r}-input__prefix`},d)),i==="textarea"?u(rl,{ref:"textareaScrollbarInstRef",class:`${r}-input__textarea`,container:this.getTextareaScrollContainer,triggerDisplayManually:!0,useUnifiedContainer:!0,internalHoistYRail:!0},{default:()=>{var d,c;const{textAreaScrollContainerWidth:f}=this,h={width:this.autosize&&f&&`${f}px`};return u(je,null,u("textarea",Object.assign({},this.inputProps,{ref:"textareaElRef",class:[`${r}-input__textarea-el`,(d=this.inputProps)===null||d===void 0?void 0:d.class],autofocus:this.autofocus,rows:Number(this.rows),placeholder:this.placeholder,value:this.mergedValue,disabled:this.mergedDisabled,maxlength:l?void 0:this.maxlength,minlength:l?void 0:this.minlength,readonly:this.readonly,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,style:[this.textDecorationStyle[0],(c=this.inputProps)===null||c===void 0?void 0:c.style,h],onBlur:this.handleInputBlur,onFocus:p=>this.handleInputFocus(p,2),onInput:this.handleInput,onChange:this.handleChange,onScroll:this.handleTextAreaScroll})),this.showPlaceholder1?u("div",{class:`${r}-input__placeholder`,style:[this.placeholderStyle,h],key:"placeholder"},this.mergedPlaceholder[0]):null,this.autosize?u(nl,{onResize:this.handleTextAreaMirrorResize},{default:()=>u("div",{ref:"textareaMirrorElRef",class:`${r}-input__textarea-mirror`,key:"mirror"})}):null)}}):u("div",{class:`${r}-input__input`},u("input",Object.assign({type:i==="password"&&this.mergedShowPasswordOn&&this.passwordVisible?"text":i},this.inputProps,{ref:"inputElRef",class:[`${r}-input__input-el`,(e=this.inputProps)===null||e===void 0?void 0:e.class],style:[this.textDecorationStyle[0],(t=this.inputProps)===null||t===void 0?void 0:t.style],tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[0],disabled:this.mergedDisabled,maxlength:l?void 0:this.maxlength,minlength:l?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[0]:this.mergedValue,readonly:this.readonly,autofocus:this.autofocus,size:this.attrSize,onBlur:this.handleInputBlur,onFocus:d=>this.handleInputFocus(d,0),onInput:d=>this.handleInput(d,0),onChange:d=>this.handleChange(d,0)})),this.showPlaceholder1?u("div",{class:`${r}-input__placeholder`},u("span",null,this.mergedPlaceholder[0])):null,this.autosize?u("div",{class:`${r}-input__input-mirror`,key:"mirror",ref:"inputMirrorElRef"}," "):null),!this.pair&&Ge(a.suffix,d=>d||this.clearable||this.showCount||this.mergedShowPasswordOn||this.loading!==void 0?u("div",{class:`${r}-input__suffix`},[Ge(a["clear-icon-placeholder"],c=>(this.clearable||c)&&u(Or,{clsPrefix:r,show:this.showClearButton,onClear:this.handleClear},{placeholder:()=>c,icon:()=>{var f,h;return(h=(f=this.$slots)["clear-icon"])===null||h===void 0?void 0:h.call(f)}})),this.internalLoadingBeforeSuffix?null:d,this.loading!==void 0?u(hf,{clsPrefix:r,loading:this.loading,showArrow:!1,showClear:!1,style:this.cssVars}):null,this.internalLoadingBeforeSuffix?d:null,this.showCount&&this.type!=="textarea"?u(Wn,null,{default:c=>{var f;return(f=a.count)===null||f===void 0?void 0:f.call(a,c)}}):null,this.mergedShowPasswordOn&&this.type==="password"?u("div",{class:`${r}-input__eye`,onMousedown:this.handlePasswordToggleMousedown,onClick:this.handlePasswordToggleClick},this.passwordVisible?ft(a["password-visible-icon"],()=>[u(ce,{clsPrefix:r},{default:()=>u(Xo,null)})]):ft(a["password-invisible-icon"],()=>[u(ce,{clsPrefix:r},{default:()=>u(oc,null)})])):null]):null)),this.pair?u("span",{class:`${r}-input__separator`},ft(a.separator,()=>[this.separator])):null,this.pair?u("div",{class:`${r}-input-wrapper`},u("div",{class:`${r}-input__input`},u("input",{ref:"inputEl2Ref",type:this.type,class:`${r}-input__input-el`,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[1],disabled:this.mergedDisabled,maxlength:l?void 0:this.maxlength,minlength:l?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[1]:void 0,readonly:this.readonly,style:this.textDecorationStyle[1],onBlur:this.handleInputBlur,onFocus:d=>this.handleInputFocus(d,1),onInput:d=>this.handleInput(d,1),onChange:d=>this.handleChange(d,1)}),this.showPlaceholder2?u("div",{class:`${r}-input__placeholder`},u("span",null,this.mergedPlaceholder[1])):null),Ge(a.suffix,d=>(this.clearable||d)&&u("div",{class:`${r}-input__suffix`},[this.clearable&&u(Or,{clsPrefix:r,show:this.showClearButton,onClear:this.handleClear},{icon:()=>{var c;return(c=a["clear-icon"])===null||c===void 0?void 0:c.call(a)},placeholder:()=>{var c;return(c=a["clear-icon-placeholder"])===null||c===void 0?void 0:c.call(a)}}),d]))):null,this.mergedBordered?u("div",{class:`${r}-input__border`}):null,this.mergedBordered?u("div",{class:`${r}-input__state-border`}):null,this.showCount&&i==="textarea"?u(Wn,null,{default:d=>{var c;const{renderCount:f}=this;return f?f(d):(c=a.count)===null||c===void 0?void 0:c.call(a,d)}}):null)}}),mr=Wr&&"loading"in document.createElement("img"),Sf=(e={})=>{var t;const{root:r=null}=e;return{hash:`${e.rootMargin||"0px 0px 0px 0px"}-${Array.isArray(e.threshold)?e.threshold.join(","):(t=e.threshold)!==null&&t!==void 0?t:"0"}`,options:Object.assign(Object.assign({},e),{root:(typeof r=="string"?document.querySelector(r):r)||document.documentElement})}},br=new WeakMap,yr=new WeakMap,wr=new WeakMap,Pf=(e,t,r)=>{if(!e)return()=>{};const n=Sf(t),{root:o}=n.options;let i;const l=br.get(o);l?i=l:(i=new Map,br.set(o,i));let s,a;i.has(n.hash)?(a=i.get(n.hash),a[1].has(e)||(s=a[0],a[1].add(e),s.observe(e))):(s=new IntersectionObserver(f=>{f.forEach(h=>{if(h.isIntersecting){const p=yr.get(h.target),y=wr.get(h.target);p&&p(),y&&(y.value=!0)}})},n.options),s.observe(e),a=[s,new Set([e])],i.set(n.hash,a));let d=!1;const c=()=>{d||(yr.delete(e),wr.delete(e),d=!0,a[1].has(e)&&(a[0].unobserve(e),a[1].delete(e)),a[1].size<=0&&i.delete(n.hash),i.size||br.delete(o))};return yr.set(e,c),wr.set(e,r),c},kf={padding:"8px 14px"},$f=e=>{const{borderRadius:t,boxShadow2:r,baseColor:n}=e;return Object.assign(Object.assign({},kf),{borderRadius:t,boxShadow:r,color:Pt(n,"rgba(0, 0, 0, .85)"),textColor:n})},zf=Mt({name:"Tooltip",common:_e,peers:{Popover:Zr},self:$f}),Jr=zf,Tf=Mt({name:"Ellipsis",common:_e,peers:{Tooltip:Jr}}),If=Tf,Rf={padding:"4px 0",optionIconSizeSmall:"14px",optionIconSizeMedium:"16px",optionIconSizeLarge:"16px",optionIconSizeHuge:"18px",optionSuffixWidthSmall:"14px",optionSuffixWidthMedium:"14px",optionSuffixWidthLarge:"16px",optionSuffixWidthHuge:"16px",optionIconSuffixWidthSmall:"32px",optionIconSuffixWidthMedium:"32px",optionIconSuffixWidthLarge:"36px",optionIconSuffixWidthHuge:"36px",optionPrefixWidthSmall:"14px",optionPrefixWidthMedium:"14px",optionPrefixWidthLarge:"16px",optionPrefixWidthHuge:"16px",optionIconPrefixWidthSmall:"36px",optionIconPrefixWidthMedium:"36px",optionIconPrefixWidthLarge:"40px",optionIconPrefixWidthHuge:"40px"},Of=e=>{const{primaryColor:t,textColor2:r,dividerColor:n,hoverColor:o,popoverColor:i,invertedColor:l,borderRadius:s,fontSizeSmall:a,fontSizeMedium:d,fontSizeLarge:c,fontSizeHuge:f,heightSmall:h,heightMedium:p,heightLarge:y,heightHuge:S,textColor3:m,opacityDisabled:x}=e;return Object.assign(Object.assign({},Rf),{optionHeightSmall:h,optionHeightMedium:p,optionHeightLarge:y,optionHeightHuge:S,borderRadius:s,fontSizeSmall:a,fontSizeMedium:d,fontSizeLarge:c,fontSizeHuge:f,optionTextColor:r,optionTextColorHover:r,optionTextColorActive:t,optionTextColorChildActive:t,color:i,dividerColor:n,suffixColor:r,prefixColor:r,optionColorHover:o,optionColorActive:te(t,{alpha:.1}),groupHeaderTextColor:m,optionTextColorInverted:"#BBB",optionTextColorHoverInverted:"#FFF",optionTextColorActiveInverted:"#FFF",optionTextColorChildActiveInverted:"#FFF",colorInverted:l,dividerColorInverted:"#BBB",suffixColorInverted:"#BBB",prefixColorInverted:"#BBB",optionColorHoverInverted:t,optionColorActiveInverted:t,groupHeaderTextColorInverted:"#AAA",optionOpacityDisabled:x})},_f=Mt({name:"Dropdown",common:_e,peers:{Popover:Zr},self:Of}),Mf=_f,Bf=Object.assign(Object.assign({},nr),re.props),oi=K({name:"Tooltip",props:Bf,__popover__:!0,setup(e){const t=re("Tooltip","-tooltip",void 0,Jr,e),r=L(null);return Object.assign(Object.assign({},{syncPosition(){r.value.syncPosition()},setShow(o){r.value.setShow(o)}}),{popoverRef:r,mergedTheme:t,popoverThemeOverrides:D(()=>t.value.self)})},render(){const{mergedTheme:e,internalExtraClass:t}=this;return u(ti,Object.assign(Object.assign({},this.$props),{theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:this.popoverThemeOverrides,internalExtraClass:t.concat("tooltip"),ref:"popoverRef"}),this.$slots)}}),Lf=k("ellipsis",{overflow:"hidden"},[ze("line-clamp",`
+ white-space: nowrap;
+ display: inline-block;
+ vertical-align: bottom;
+ max-width: 100%;
+ `),W("line-clamp",`
+ display: -webkit-inline-box;
+ -webkit-box-orient: vertical;
+ `),W("cursor-pointer",`
+ cursor: pointer;
+ `)]);function Un(e){return`${e}-ellipsis--line-clamp`}function Vn(e,t){return`${e}-ellipsis--cursor-${t}`}const Ef=Object.assign(Object.assign({},re.props),{expandTrigger:String,lineClamp:[Number,String],tooltip:{type:[Boolean,Object],default:!0}}),ii=K({name:"Ellipsis",inheritAttrs:!1,props:Ef,setup(e,{slots:t,attrs:r}){const{mergedClsPrefixRef:n}=Ie(e),o=re("Ellipsis","-ellipsis",Lf,If,e,n),i=L(null),l=L(null),s=L(null),a=L(!1),d=D(()=>{const{lineClamp:m}=e,{value:x}=a;return m!==void 0?{textOverflow:"","-webkit-line-clamp":x?"":m}:{textOverflow:x?"":"ellipsis","-webkit-line-clamp":""}});function c(){let m=!1;const{value:x}=a;if(x)return!0;const{value:z}=i;if(z){const{lineClamp:O}=e;if(p(z),O!==void 0)m=z.scrollHeight<=z.offsetHeight;else{const{value:w}=l;w&&(m=w.getBoundingClientRect().width<=z.getBoundingClientRect().width)}y(z,m)}return m}const f=D(()=>e.expandTrigger==="click"?()=>{var m;const{value:x}=a;x&&((m=s.value)===null||m===void 0||m.setShow(!1)),a.value=!x}:void 0);il(()=>{var m;e.tooltip&&((m=s.value)===null||m===void 0||m.setShow(!1))});const h=()=>u("span",Object.assign({},Ot(r,{class:[`${n.value}-ellipsis`,e.lineClamp!==void 0?Un(n.value):void 0,e.expandTrigger==="click"?Vn(n.value,"pointer"):void 0],style:d.value}),{ref:"triggerRef",onClick:f.value,onMouseenter:e.expandTrigger==="click"?c:void 0}),e.lineClamp?t:u("span",{ref:"triggerInnerRef"},t));function p(m){if(!m)return;const x=d.value,z=Un(n.value);e.lineClamp!==void 0?S(m,z,"add"):S(m,z,"remove");for(const O in x)m.style[O]!==x[O]&&(m.style[O]=x[O])}function y(m,x){const z=Vn(n.value,"pointer");e.expandTrigger==="click"&&!x?S(m,z,"add"):S(m,z,"remove")}function S(m,x,z){z==="add"?m.classList.contains(x)||m.classList.add(x):m.classList.contains(x)&&m.classList.remove(x)}return{mergedTheme:o,triggerRef:i,triggerInnerRef:l,tooltipRef:s,handleClick:f,renderTrigger:h,getTooltipDisabled:c}},render(){var e;const{tooltip:t,renderTrigger:r,$slots:n}=this;if(t){const{mergedTheme:o}=this;return u(oi,Object.assign({ref:"tooltipRef",placement:"top"},t,{getDisabled:this.getTooltipDisabled,theme:o.peers.Tooltip,themeOverrides:o.peerOverrides.Tooltip}),{trigger:r,default:(e=n.tooltip)!==null&&e!==void 0?e:n.default})}else return r()}}),ai=K({name:"DropdownDivider",props:{clsPrefix:{type:String,required:!0}},render(){return u("div",{class:`${this.clsPrefix}-dropdown-divider`})}}),Af=e=>{const{textColorBase:t,opacity1:r,opacity2:n,opacity3:o,opacity4:i,opacity5:l}=e;return{color:t,opacity1Depth:r,opacity2Depth:n,opacity3Depth:o,opacity4Depth:i,opacity5Depth:l}},Df={name:"Icon",common:_e,self:Af},Ff=Df,Nf=k("icon",`
+ height: 1em;
+ width: 1em;
+ line-height: 1em;
+ text-align: center;
+ display: inline-block;
+ position: relative;
+ fill: currentColor;
+ transform: translateZ(0);
+`,[W("color-transition",{transition:"color .3s var(--n-bezier)"}),W("depth",{color:"var(--n-color)"},[H("svg",{opacity:"var(--n-opacity)",transition:"opacity .3s var(--n-bezier)"})]),H("svg",{height:"1em",width:"1em"})]),Hf=Object.assign(Object.assign({},re.props),{depth:[String,Number],size:[Number,String],color:String,component:Object}),jf=K({_n_icon__:!0,name:"Icon",inheritAttrs:!1,props:Hf,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=Ie(e),n=re("Icon","-icon",Nf,Ff,e,t),o=D(()=>{const{depth:l}=e,{common:{cubicBezierEaseInOut:s},self:a}=n.value;if(l!==void 0){const{color:d,[`opacity${l}Depth`]:c}=a;return{"--n-bezier":s,"--n-color":d,"--n-opacity":c}}return{"--n-bezier":s,"--n-color":"","--n-opacity":""}}),i=r?Ae("icon",D(()=>`${e.depth||"d"}`),o,e):void 0;return{mergedClsPrefix:t,mergedStyle:D(()=>{const{size:l,color:s}=e;return{fontSize:Fe(l),color:s}}),cssVars:r?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{$parent:t,depth:r,mergedClsPrefix:n,component:o,onRender:i,themeClass:l}=this;return!((e=t==null?void 0:t.$options)===null||e===void 0)&&e._n_icon__&&Ur("icon","don't wrap `n-icon` inside `n-icon`"),i==null||i(),u("i",Ot(this.$attrs,{role:"img",class:[`${n}-icon`,l,{[`${n}-icon--depth`]:r,[`${n}-icon--color-transition`]:r!==void 0}],style:[this.cssVars,this.mergedStyle]}),o?u(o):this.$slots)}}),Qr=We("n-dropdown-menu"),or=We("n-dropdown"),Kn=We("n-dropdown-option");function _r(e,t){return e.type==="submenu"||e.type===void 0&&e[t]!==void 0}function Wf(e){return e.type==="group"}function li(e){return e.type==="divider"}function Uf(e){return e.type==="render"}const si=K({name:"DropdownOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null},placement:{type:String,default:"right-start"},props:Object,scrollable:Boolean},setup(e){const t=ie(or),{hoverKeyRef:r,keyboardKeyRef:n,lastToggledSubmenuKeyRef:o,pendingKeyPathRef:i,activeKeyPathRef:l,animatedRef:s,mergedShowRef:a,renderLabelRef:d,renderIconRef:c,labelFieldRef:f,childrenFieldRef:h,renderOptionRef:p,nodePropsRef:y,menuPropsRef:S}=t,m=ie(Kn,null),x=ie(Qr),z=ie(Jt),O=D(()=>e.tmNode.rawNode),w=D(()=>{const{value:A}=h;return _r(e.tmNode.rawNode,A)}),g=D(()=>{const{disabled:A}=e.tmNode;return A}),M=D(()=>{if(!w.value)return!1;const{key:A,disabled:q}=e.tmNode;if(q)return!1;const{value:Q}=r,{value:fe}=n,{value:ye}=o,{value:ge}=i;return Q!==null?ge.includes(A):fe!==null?ge.includes(A)&&ge[ge.length-1]!==A:ye!==null?ge.includes(A):!1}),b=D(()=>n.value===null&&!s.value),R=Pl(M,300,b),P=D(()=>!!(m!=null&&m.enteringSubmenuRef.value)),T=L(!1);Pe(Kn,{enteringSubmenuRef:T});function N(){T.value=!0}function E(){T.value=!1}function _(){const{parentKey:A,tmNode:q}=e;q.disabled||a.value&&(o.value=A,n.value=null,r.value=q.key)}function C(){const{tmNode:A}=e;A.disabled||a.value&&r.value!==A.key&&_()}function $(A){if(e.tmNode.disabled||!a.value)return;const{relatedTarget:q}=A;q&&!wn({target:q},"dropdownOption")&&!wn({target:q},"scrollbarRail")&&(r.value=null)}function F(){const{value:A}=w,{tmNode:q}=e;a.value&&!A&&!q.disabled&&(t.doSelect(q.key,q.rawNode),t.doUpdateShow(!1))}return{labelField:f,renderLabel:d,renderIcon:c,siblingHasIcon:x.showIconRef,siblingHasSubmenu:x.hasSubmenuRef,menuProps:S,popoverBody:z,animated:s,mergedShowSubmenu:D(()=>R.value&&!P.value),rawNode:O,hasSubmenu:w,pending:Be(()=>{const{value:A}=i,{key:q}=e.tmNode;return A.includes(q)}),childActive:Be(()=>{const{value:A}=l,{key:q}=e.tmNode,Q=A.findIndex(fe=>q===fe);return Q===-1?!1:Q{const{value:A}=l,{key:q}=e.tmNode,Q=A.findIndex(fe=>q===fe);return Q===-1?!1:Q===A.length-1}),mergedDisabled:g,renderOption:p,nodeProps:y,handleClick:F,handleMouseMove:C,handleMouseEnter:_,handleMouseLeave:$,handleSubmenuBeforeEnter:N,handleSubmenuAfterEnter:E}},render(){var e,t;const{animated:r,rawNode:n,mergedShowSubmenu:o,clsPrefix:i,siblingHasIcon:l,siblingHasSubmenu:s,renderLabel:a,renderIcon:d,renderOption:c,nodeProps:f,props:h,scrollable:p}=this;let y=null;if(o){const z=(e=this.menuProps)===null||e===void 0?void 0:e.call(this,n,n.children);y=u(di,Object.assign({},z,{clsPrefix:i,scrollable:this.scrollable,tmNodes:this.tmNode.children,parentKey:this.tmNode.key}))}const S={class:[`${i}-dropdown-option-body`,this.pending&&`${i}-dropdown-option-body--pending`,this.active&&`${i}-dropdown-option-body--active`,this.childActive&&`${i}-dropdown-option-body--child-active`,this.mergedDisabled&&`${i}-dropdown-option-body--disabled`],onMousemove:this.handleMouseMove,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onClick:this.handleClick},m=f==null?void 0:f(n),x=u("div",Object.assign({class:[`${i}-dropdown-option`,m==null?void 0:m.class],"data-dropdown-option":!0},m),u("div",Ot(S,h),[u("div",{class:[`${i}-dropdown-option-body__prefix`,l&&`${i}-dropdown-option-body__prefix--show-icon`]},[d?d(n):Gt(n.icon)]),u("div",{"data-dropdown-option":!0,class:`${i}-dropdown-option-body__label`},a?a(n):Gt((t=n[this.labelField])!==null&&t!==void 0?t:n.title)),u("div",{"data-dropdown-option":!0,class:[`${i}-dropdown-option-body__suffix`,s&&`${i}-dropdown-option-body__suffix--has-submenu`]},this.hasSubmenu?u(jf,null,{default:()=>u(nc,null)}):null)]),this.hasSubmenu?u(To,null,{default:()=>[u(Io,null,{default:()=>u("div",{class:`${i}-dropdown-offset-container`},u(Ro,{show:this.mergedShowSubmenu,placement:this.placement,to:p&&this.popoverBody||void 0,teleportDisabled:!p},{default:()=>u("div",{class:`${i}-dropdown-menu-wrapper`},r?u($t,{onBeforeEnter:this.handleSubmenuBeforeEnter,onAfterEnter:this.handleSubmenuAfterEnter,name:"fade-in-scale-up-transition",appear:!0},{default:()=>y}):y)}))})]}):null);return c?c({node:x,option:n}):x}}),Vf=K({name:"DropdownGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{showIconRef:e,hasSubmenuRef:t}=ie(Qr),{renderLabelRef:r,labelFieldRef:n,nodePropsRef:o,renderOptionRef:i}=ie(or);return{labelField:n,showIcon:e,hasSubmenu:t,renderLabel:r,nodeProps:o,renderOption:i}},render(){var e;const{clsPrefix:t,hasSubmenu:r,showIcon:n,nodeProps:o,renderLabel:i,renderOption:l}=this,{rawNode:s}=this.tmNode,a=u("div",Object.assign({class:`${t}-dropdown-option`},o==null?void 0:o(s)),u("div",{class:`${t}-dropdown-option-body ${t}-dropdown-option-body--group`},u("div",{"data-dropdown-option":!0,class:[`${t}-dropdown-option-body__prefix`,n&&`${t}-dropdown-option-body__prefix--show-icon`]},Gt(s.icon)),u("div",{class:`${t}-dropdown-option-body__label`,"data-dropdown-option":!0},i?i(s):Gt((e=s.title)!==null&&e!==void 0?e:s[this.labelField])),u("div",{class:[`${t}-dropdown-option-body__suffix`,r&&`${t}-dropdown-option-body__suffix--has-submenu`],"data-dropdown-option":!0})));return l?l({node:a,option:s}):a}}),Kf=K({name:"NDropdownGroup",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null}},render(){const{tmNode:e,parentKey:t,clsPrefix:r}=this,{children:n}=e;return u(je,null,u(Vf,{clsPrefix:r,tmNode:e,key:e.key}),n==null?void 0:n.map(o=>{const{rawNode:i}=o;return i.show===!1?null:li(i)?u(ai,{clsPrefix:r,key:o.key}):o.isGroup?(Ur("dropdown","`group` node is not allowed to be put in `group` node."),null):u(si,{clsPrefix:r,tmNode:o,parentKey:t,key:o.key})}))}}),qf=K({name:"DropdownRenderOption",props:{tmNode:{type:Object,required:!0}},render(){const{rawNode:{render:e,props:t}}=this.tmNode;return u("div",t,[e==null?void 0:e()])}}),di=K({name:"DropdownMenu",props:{scrollable:Boolean,showArrow:Boolean,arrowStyle:[String,Object],clsPrefix:{type:String,required:!0},tmNodes:{type:Array,default:()=>[]},parentKey:{type:[String,Number],default:null}},setup(e){const{renderIconRef:t,childrenFieldRef:r}=ie(or);Pe(Qr,{showIconRef:D(()=>{const o=t.value;return e.tmNodes.some(i=>{var l;if(i.isGroup)return(l=i.children)===null||l===void 0?void 0:l.some(({rawNode:a})=>o?o(a):a.icon);const{rawNode:s}=i;return o?o(s):s.icon})}),hasSubmenuRef:D(()=>{const{value:o}=r;return e.tmNodes.some(i=>{var l;if(i.isGroup)return(l=i.children)===null||l===void 0?void 0:l.some(({rawNode:a})=>_r(a,o));const{rawNode:s}=i;return _r(s,o)})})});const n=L(null);return Pe(Lr,null),Pe(Er,null),Pe(Jt,n),{bodyRef:n}},render(){const{parentKey:e,clsPrefix:t,scrollable:r}=this,n=this.tmNodes.map(o=>{const{rawNode:i}=o;return i.show===!1?null:Uf(i)?u(qf,{tmNode:o,key:o.key}):li(i)?u(ai,{clsPrefix:t,key:o.key}):Wf(i)?u(Kf,{clsPrefix:t,tmNode:o,parentKey:e,key:o.key}):u(si,{clsPrefix:t,tmNode:o,parentKey:e,key:o.key,props:i.props,scrollable:r})});return u("div",{class:[`${t}-dropdown-menu`,r&&`${t}-dropdown-menu--scrollable`],ref:"bodyRef"},r?u(uo,{contentClass:`${t}-dropdown-menu__content`},{default:()=>n}):n,this.showArrow?ei({clsPrefix:t,arrowStyle:this.arrowStyle}):null)}}),Gf=k("dropdown-menu",`
+ transform-origin: var(--v-transform-origin);
+ background-color: var(--n-color);
+ border-radius: var(--n-border-radius);
+ box-shadow: var(--n-box-shadow);
+ position: relative;
+ transition:
+ background-color .3s var(--n-bezier),
+ box-shadow .3s var(--n-bezier);
+`,[go(),k("dropdown-option",`
+ position: relative;
+ `,[H("a",`
+ text-decoration: none;
+ color: inherit;
+ outline: none;
+ `,[H("&::before",`
+ content: "";
+ position: absolute;
+ left: 0;
+ right: 0;
+ top: 0;
+ bottom: 0;
+ `)]),k("dropdown-option-body",`
+ display: flex;
+ cursor: pointer;
+ position: relative;
+ height: var(--n-option-height);
+ line-height: var(--n-option-height);
+ font-size: var(--n-font-size);
+ color: var(--n-option-text-color);
+ transition: color .3s var(--n-bezier);
+ `,[H("&::before",`
+ content: "";
+ position: absolute;
+ top: 0;
+ bottom: 0;
+ left: 4px;
+ right: 4px;
+ transition: background-color .3s var(--n-bezier);
+ border-radius: var(--n-border-radius);
+ `),ze("disabled",[W("pending",`
+ color: var(--n-option-text-color-hover);
+ `,[B("prefix, suffix",`
+ color: var(--n-option-text-color-hover);
+ `),H("&::before","background-color: var(--n-option-color-hover);")]),W("active",`
+ color: var(--n-option-text-color-active);
+ `,[B("prefix, suffix",`
+ color: var(--n-option-text-color-active);
+ `),H("&::before","background-color: var(--n-option-color-active);")]),W("child-active",`
+ color: var(--n-option-text-color-child-active);
+ `,[B("prefix, suffix",`
+ color: var(--n-option-text-color-child-active);
+ `)])]),W("disabled",`
+ cursor: not-allowed;
+ opacity: var(--n-option-opacity-disabled);
+ `),W("group",`
+ font-size: calc(var(--n-font-size) - 1px);
+ color: var(--n-group-header-text-color);
+ `,[B("prefix",`
+ width: calc(var(--n-option-prefix-width) / 2);
+ `,[W("show-icon",`
+ width: calc(var(--n-option-icon-prefix-width) / 2);
+ `)])]),B("prefix",`
+ width: var(--n-option-prefix-width);
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ color: var(--n-prefix-color);
+ transition: color .3s var(--n-bezier);
+ z-index: 1;
+ `,[W("show-icon",`
+ width: var(--n-option-icon-prefix-width);
+ `),k("icon",`
+ font-size: var(--n-option-icon-size);
+ `)]),B("label",`
+ white-space: nowrap;
+ flex: 1;
+ z-index: 1;
+ `),B("suffix",`
+ box-sizing: border-box;
+ flex-grow: 0;
+ flex-shrink: 0;
+ display: flex;
+ justify-content: flex-end;
+ align-items: center;
+ min-width: var(--n-option-suffix-width);
+ padding: 0 8px;
+ transition: color .3s var(--n-bezier);
+ color: var(--n-suffix-color);
+ z-index: 1;
+ `,[W("has-submenu",`
+ width: var(--n-option-icon-suffix-width);
+ `),k("icon",`
+ font-size: var(--n-option-icon-size);
+ `)]),k("dropdown-menu","pointer-events: all;")]),k("dropdown-offset-container",`
+ pointer-events: none;
+ position: absolute;
+ left: 0;
+ right: 0;
+ top: -4px;
+ bottom: -4px;
+ `)]),k("dropdown-divider",`
+ transition: background-color .3s var(--n-bezier);
+ background-color: var(--n-divider-color);
+ height: 1px;
+ margin: 4px 0;
+ `),k("dropdown-menu-wrapper",`
+ transform-origin: var(--v-transform-origin);
+ width: fit-content;
+ `),H(">",[k("scrollbar",`
+ height: inherit;
+ max-height: inherit;
+ `)]),ze("scrollable",`
+ padding: var(--n-padding);
+ `),W("scrollable",[B("content",`
+ padding: var(--n-padding);
+ `)])]),Xf={animated:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},size:{type:String,default:"medium"},inverted:Boolean,placement:{type:String,default:"bottom"},onSelect:[Function,Array],options:{type:Array,default:()=>[]},menuProps:Function,showArrow:Boolean,renderLabel:Function,renderIcon:Function,renderOption:Function,nodeProps:Function,labelField:{type:String,default:"label"},keyField:{type:String,default:"key"},childrenField:{type:String,default:"children"},value:[String,Number]},Yf=Object.keys(nr),Zf=Object.assign(Object.assign(Object.assign({},nr),Xf),re.props),qn=K({name:"Dropdown",inheritAttrs:!1,props:Zf,setup(e){const t=L(!1),r=tr(Z(e,"show"),t),n=D(()=>{const{keyField:E,childrenField:_}=e;return Nc(e.options,{getKey(C){return C[E]},getDisabled(C){return C.disabled===!0},getIgnored(C){return C.type==="divider"||C.type==="render"},getChildren(C){return C[_]}})}),o=D(()=>n.value.treeNodes),i=L(null),l=L(null),s=L(null),a=D(()=>{var E,_,C;return(C=(_=(E=i.value)!==null&&E!==void 0?E:l.value)!==null&&_!==void 0?_:s.value)!==null&&C!==void 0?C:null}),d=D(()=>n.value.getPath(a.value).keyPath),c=D(()=>n.value.getPath(e.value).keyPath),f=Be(()=>e.keyboard&&r.value);Tl({keydown:{ArrowUp:{prevent:!0,handler:g},ArrowRight:{prevent:!0,handler:w},ArrowDown:{prevent:!0,handler:M},ArrowLeft:{prevent:!0,handler:O},Enter:{prevent:!0,handler:b},Escape:z}},f);const{mergedClsPrefixRef:h,inlineThemeDisabled:p}=Ie(e),y=re("Dropdown","-dropdown",Gf,Mf,e,h);Pe(or,{labelFieldRef:Z(e,"labelField"),childrenFieldRef:Z(e,"childrenField"),renderLabelRef:Z(e,"renderLabel"),renderIconRef:Z(e,"renderIcon"),hoverKeyRef:i,keyboardKeyRef:l,lastToggledSubmenuKeyRef:s,pendingKeyPathRef:d,activeKeyPathRef:c,animatedRef:Z(e,"animated"),mergedShowRef:r,nodePropsRef:Z(e,"nodeProps"),renderOptionRef:Z(e,"renderOption"),menuPropsRef:Z(e,"menuProps"),doSelect:S,doUpdateShow:m}),Ce(r,E=>{!e.animated&&!E&&x()});function S(E,_){const{onSelect:C}=e;C&&ue(C,E,_)}function m(E){const{"onUpdate:show":_,onUpdateShow:C}=e;_&&ue(_,E),C&&ue(C,E),t.value=E}function x(){i.value=null,l.value=null,s.value=null}function z(){m(!1)}function O(){P("left")}function w(){P("right")}function g(){P("up")}function M(){P("down")}function b(){const E=R();E!=null&&E.isLeaf&&r.value&&(S(E.key,E.rawNode),m(!1))}function R(){var E;const{value:_}=n,{value:C}=a;return!_||C===null?null:(E=_.getNode(C))!==null&&E!==void 0?E:null}function P(E){const{value:_}=a,{value:{getFirstAvailableNode:C}}=n;let $=null;if(_===null){const F=C();F!==null&&($=F.key)}else{const F=R();if(F){let A;switch(E){case"down":A=F.getNext();break;case"up":A=F.getPrev();break;case"right":A=F.getChild();break;case"left":A=F.getParent();break}A&&($=A.key)}}$!==null&&(i.value=null,l.value=$)}const T=D(()=>{const{size:E,inverted:_}=e,{common:{cubicBezierEaseInOut:C},self:$}=y.value,{padding:F,dividerColor:A,borderRadius:q,optionOpacityDisabled:Q,[ne("optionIconSuffixWidth",E)]:fe,[ne("optionSuffixWidth",E)]:ye,[ne("optionIconPrefixWidth",E)]:ge,[ne("optionPrefixWidth",E)]:Re,[ne("fontSize",E)]:oe,[ne("optionHeight",E)]:ke,[ne("optionIconSize",E)]:we}=$,ee={"--n-bezier":C,"--n-font-size":oe,"--n-padding":F,"--n-border-radius":q,"--n-option-height":ke,"--n-option-prefix-width":Re,"--n-option-icon-prefix-width":ge,"--n-option-suffix-width":ye,"--n-option-icon-suffix-width":fe,"--n-option-icon-size":we,"--n-divider-color":A,"--n-option-opacity-disabled":Q};return _?(ee["--n-color"]=$.colorInverted,ee["--n-option-color-hover"]=$.optionColorHoverInverted,ee["--n-option-color-active"]=$.optionColorActiveInverted,ee["--n-option-text-color"]=$.optionTextColorInverted,ee["--n-option-text-color-hover"]=$.optionTextColorHoverInverted,ee["--n-option-text-color-active"]=$.optionTextColorActiveInverted,ee["--n-option-text-color-child-active"]=$.optionTextColorChildActiveInverted,ee["--n-prefix-color"]=$.prefixColorInverted,ee["--n-suffix-color"]=$.suffixColorInverted,ee["--n-group-header-text-color"]=$.groupHeaderTextColorInverted):(ee["--n-color"]=$.color,ee["--n-option-color-hover"]=$.optionColorHover,ee["--n-option-color-active"]=$.optionColorActive,ee["--n-option-text-color"]=$.optionTextColor,ee["--n-option-text-color-hover"]=$.optionTextColorHover,ee["--n-option-text-color-active"]=$.optionTextColorActive,ee["--n-option-text-color-child-active"]=$.optionTextColorChildActive,ee["--n-prefix-color"]=$.prefixColor,ee["--n-suffix-color"]=$.suffixColor,ee["--n-group-header-text-color"]=$.groupHeaderTextColor),ee}),N=p?Ae("dropdown",D(()=>`${e.size[0]}${e.inverted?"i":""}`),T,e):void 0;return{mergedClsPrefix:h,mergedTheme:y,tmNodes:o,mergedShow:r,handleAfterLeave:()=>{e.animated&&x()},doUpdateShow:m,cssVars:p?void 0:T,themeClass:N==null?void 0:N.themeClass,onRender:N==null?void 0:N.onRender}},render(){const e=(n,o,i,l,s)=>{var a;const{mergedClsPrefix:d,menuProps:c}=this;(a=this.onRender)===null||a===void 0||a.call(this);const f=(c==null?void 0:c(void 0,this.tmNodes.map(p=>p.rawNode)))||{},h={ref:xl(o),class:[n,`${d}-dropdown`,this.themeClass],clsPrefix:d,tmNodes:this.tmNodes,style:[i,this.cssVars],showArrow:this.showArrow,arrowStyle:this.arrowStyle,scrollable:this.scrollable,onMouseenter:l,onMouseleave:s};return u(di,Ot(this.$attrs,h,f))},{mergedTheme:t}=this,r={show:this.mergedShow,theme:t.peers.Popover,themeOverrides:t.peerOverrides.Popover,internalOnAfterLeave:this.handleAfterLeave,internalRenderBody:e,onUpdateShow:this.doUpdateShow,"onUpdate:show":void 0};return u(ti,Object.assign({},co(this.$props,Yf),r),{trigger:()=>{var n,o;return(o=(n=this.$slots).default)===null||o===void 0?void 0:o.call(n)}})}}),Jf={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"},Qf=()=>Jf,eh={name:"Space",self:Qf},th=eh;let xr;const rh=()=>{if(!Wr)return!0;if(xr===void 0){const e=document.createElement("div");e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e);const t=e.scrollHeight===1;return document.body.removeChild(e),xr=t}return xr},nh=Object.assign(Object.assign({},re.props),{align:String,justify:{type:String,default:"start"},inline:Boolean,vertical:Boolean,size:{type:[String,Number,Array],default:"medium"},wrapItem:{type:Boolean,default:!0},itemStyle:[String,Object],wrap:{type:Boolean,default:!0},internalUseGap:{type:Boolean,default:void 0}}),oh=K({name:"Space",props:nh,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:r}=Ie(e),n=re("Space","-space",void 0,th,e,t),o=_t("Space",r,t);return{useGap:rh(),rtlEnabled:o,mergedClsPrefix:t,margin:D(()=>{const{size:i}=e;if(Array.isArray(i))return{horizontal:i[0],vertical:i[1]};if(typeof i=="number")return{horizontal:i,vertical:i};const{self:{[ne("gap",i)]:l}}=n.value,{row:s,col:a}=ll(l);return{horizontal:gn(a),vertical:gn(s)}})}},render(){const{vertical:e,align:t,inline:r,justify:n,itemStyle:o,margin:i,wrap:l,mergedClsPrefix:s,rtlEnabled:a,useGap:d,wrapItem:c,internalUseGap:f}=this,h=al(wl(this));if(!h.length)return null;const p=`${i.horizontal}px`,y=`${i.horizontal/2}px`,S=`${i.vertical}px`,m=`${i.vertical/2}px`,x=h.length-1,z=n.startsWith("space-");return u("div",{role:"none",class:[`${s}-space`,a&&`${s}-space--rtl`],style:{display:r?"inline-flex":"flex",flexDirection:e?"column":"row",justifyContent:["start","end"].includes(n)?"flex-"+n:n,flexWrap:!l||e?"nowrap":"wrap",marginTop:d||e?"":`-${m}`,marginBottom:d||e?"":`-${m}`,alignItems:t,gap:d?`${i.vertical}px ${i.horizontal}px`:""}},!c&&(d||f)?h:h.map((O,w)=>u("div",{role:"none",style:[o,{maxWidth:"100%"},d?"":e?{marginBottom:w!==x?S:""}:a?{marginLeft:z?n==="space-between"&&w===x?"":y:w!==x?p:"",marginRight:z?n==="space-between"&&w===0?"":y:"",paddingTop:m,paddingBottom:m}:{marginRight:z?n==="space-between"&&w===x?"":y:w!==x?p:"",marginLeft:z?n==="space-between"&&w===0?"":y:"",paddingTop:m,paddingBottom:m}]},O)))}}),en=Object.assign(Object.assign({},re.props),{showToolbar:{type:Boolean,default:!0},showToolbarTooltip:Boolean}),ui=We("n-image");function ih(){return{toolbarIconColor:"rgba(255, 255, 255, .9)",toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}const ah=Mt({name:"Image",common:_e,peers:{Tooltip:Jr},self:ih}),lh=e=>{const{textColor2:t,cardColor:r,modalColor:n,popoverColor:o,dividerColor:i,borderRadius:l,fontSize:s,hoverColor:a}=e;return{textColor:t,color:r,colorHover:a,colorModal:n,colorHoverModal:Pt(n,a),colorPopover:o,colorHoverPopover:Pt(o,a),borderColor:i,borderColorModal:Pt(n,i),borderColorPopover:Pt(o,i),borderRadius:l,fontSize:s}},sh={name:"List",common:_e,self:lh},dh=sh,uh=e=>{const{infoColor:t,successColor:r,warningColor:n,errorColor:o,textColor2:i,progressRailColor:l,fontSize:s,fontWeight:a}=e;return{fontSize:s,fontSizeCircle:"28px",fontWeightCircle:a,railColor:l,railHeight:"8px",iconSizeCircle:"36px",iconSizeLine:"18px",iconColor:t,iconColorInfo:t,iconColorSuccess:r,iconColorWarning:n,iconColorError:o,textColorCircle:i,textColorLineInner:"rgb(255, 255, 255)",textColorLineOuter:i,fillColor:t,fillColorInfo:t,fillColorSuccess:r,fillColorWarning:n,fillColorError:o,lineBgProcessing:"linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)"}},ch={name:"Progress",common:_e,self:uh},ci=ch,fh=e=>{const{textColor1:t,textColor2:r,fontWeightStrong:n,fontSize:o}=e;return{fontSize:o,titleTextColor:t,textColor:r,titleFontWeight:n}},hh={name:"Thing",common:_e,self:fh},ph=hh,vh=e=>{const{iconColor:t,primaryColor:r,errorColor:n,textColor2:o,successColor:i,opacityDisabled:l,actionColor:s,borderColor:a,hoverColor:d,lineHeight:c,borderRadius:f,fontSize:h}=e;return{fontSize:h,lineHeight:c,borderRadius:f,draggerColor:s,draggerBorder:`1px dashed ${a}`,draggerBorderHover:`1px dashed ${r}`,itemColorHover:d,itemColorHoverError:te(n,{alpha:.06}),itemTextColor:o,itemTextColorError:n,itemTextColorSuccess:i,itemIconColor:t,itemDisabledOpacity:l,itemBorderImageCardError:`1px solid ${n}`,itemBorderImageCard:`1px solid ${a}`}},gh=Mt({name:"Upload",common:_e,peers:{Button:sl,Progress:ci},self:vh}),mh=gh,bh=u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M6 5C5.75454 5 5.55039 5.17688 5.50806 5.41012L5.5 5.5V14.5C5.5 14.7761 5.72386 15 6 15C6.24546 15 6.44961 14.8231 6.49194 14.5899L6.5 14.5V5.5C6.5 5.22386 6.27614 5 6 5ZM13.8536 5.14645C13.68 4.97288 13.4106 4.9536 13.2157 5.08859L13.1464 5.14645L8.64645 9.64645C8.47288 9.82001 8.4536 10.0894 8.58859 10.2843L8.64645 10.3536L13.1464 14.8536C13.3417 15.0488 13.6583 15.0488 13.8536 14.8536C14.0271 14.68 14.0464 14.4106 13.9114 14.2157L13.8536 14.1464L9.70711 10L13.8536 5.85355C14.0488 5.65829 14.0488 5.34171 13.8536 5.14645Z",fill:"currentColor"})),yh=u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M13.5 5C13.7455 5 13.9496 5.17688 13.9919 5.41012L14 5.5V14.5C14 14.7761 13.7761 15 13.5 15C13.2545 15 13.0504 14.8231 13.0081 14.5899L13 14.5V5.5C13 5.22386 13.2239 5 13.5 5ZM5.64645 5.14645C5.82001 4.97288 6.08944 4.9536 6.28431 5.08859L6.35355 5.14645L10.8536 9.64645C11.0271 9.82001 11.0464 10.0894 10.9114 10.2843L10.8536 10.3536L6.35355 14.8536C6.15829 15.0488 5.84171 15.0488 5.64645 14.8536C5.47288 14.68 5.4536 14.4106 5.58859 14.2157L5.64645 14.1464L9.79289 10L5.64645 5.85355C5.45118 5.65829 5.45118 5.34171 5.64645 5.14645Z",fill:"currentColor"})),wh=u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M4.089 4.216l.057-.07a.5.5 0 0 1 .638-.057l.07.057L10 9.293l5.146-5.147a.5.5 0 0 1 .638-.057l.07.057a.5.5 0 0 1 .057.638l-.057.07L10.707 10l5.147 5.146a.5.5 0 0 1 .057.638l-.057.07a.5.5 0 0 1-.638.057l-.07-.057L10 10.707l-5.146 5.147a.5.5 0 0 1-.638.057l-.07-.057a.5.5 0 0 1-.057-.638l.057-.07L9.293 10L4.146 4.854a.5.5 0 0 1-.057-.638l.057-.07l-.057.07z",fill:"currentColor"})),xh=H([H("body >",[k("image-container","position: fixed;")]),k("image-preview-container",`
+ position: fixed;
+ left: 0;
+ right: 0;
+ top: 0;
+ bottom: 0;
+ display: flex;
+ `),k("image-preview-overlay",`
+ z-index: -1;
+ position: absolute;
+ left: 0;
+ right: 0;
+ top: 0;
+ bottom: 0;
+ background: rgba(0, 0, 0, .3);
+ `,[mn()]),k("image-preview-toolbar",`
+ z-index: 1;
+ position: absolute;
+ left: 50%;
+ transform: translateX(-50%);
+ border-radius: var(--n-toolbar-border-radius);
+ height: 48px;
+ bottom: 40px;
+ padding: 0 12px;
+ background: var(--n-toolbar-color);
+ box-shadow: var(--n-toolbar-box-shadow);
+ color: var(--n-toolbar-icon-color);
+ transition: color .3s var(--n-bezier);
+ display: flex;
+ align-items: center;
+ `,[k("base-icon",`
+ padding: 0 8px;
+ font-size: 28px;
+ cursor: pointer;
+ `),mn()]),k("image-preview-wrapper",`
+ position: absolute;
+ left: 0;
+ right: 0;
+ top: 0;
+ bottom: 0;
+ display: flex;
+ pointer-events: none;
+ `,[go()]),k("image-preview",`
+ user-select: none;
+ -webkit-user-select: none;
+ pointer-events: all;
+ margin: auto;
+ max-height: calc(100vh - 32px);
+ max-width: calc(100vw - 32px);
+ transition: transform .3s var(--n-bezier);
+ `),k("image",`
+ display: inline-flex;
+ max-height: 100%;
+ max-width: 100%;
+ `,[ze("preview-disabled",`
+ cursor: pointer;
+ `),H("img",`
+ border-radius: inherit;
+ `)])]),Wt=32,fi=K({name:"ImagePreview",props:Object.assign(Object.assign({},en),{onNext:Function,onPrev:Function,clsPrefix:{type:String,required:!0}}),setup(e){const t=re("Image","-image",xh,ah,e,Z(e,"clsPrefix"));let r=null;const n=L(null),o=L(null),i=L(void 0),l=L(!1),s=L(!1),{localeRef:a}=Xr("Image");function d(){const{value:j}=o;if(!r||!j)return;const{style:X}=j,V=r.getBoundingClientRect(),ae=V.left+V.width/2,le=V.top+V.height/2;X.transformOrigin=`${ae}px ${le}px`}function c(j){var X,V;switch(j.key){case" ":j.preventDefault();break;case"ArrowLeft":(X=e.onPrev)===null||X===void 0||X.call(e);break;case"ArrowRight":(V=e.onNext)===null||V===void 0||V.call(e);break;case"Escape":ke();break}}Ce(l,j=>{j?Te("keydown",document,c):Se("keydown",document,c)}),Je(()=>{Se("keydown",document,c)});let f=0,h=0,p=0,y=0,S=0,m=0,x=0,z=0,O=!1;function w(j){const{clientX:X,clientY:V}=j;p=X-f,y=V-h,Po(oe)}function g(j){const{mouseUpClientX:X,mouseUpClientY:V,mouseDownClientX:ae,mouseDownClientY:le}=j,$e=ae-X,xe=le-V,Oe=`vertical${xe>0?"Top":"Bottom"}`,De=`horizontal${$e>0?"Left":"Right"}`;return{moveVerticalDirection:Oe,moveHorizontalDirection:De,deltaHorizontal:$e,deltaVertical:xe}}function M(j){const{value:X}=n;if(!X)return{offsetX:0,offsetY:0};const V=X.getBoundingClientRect(),{moveVerticalDirection:ae,moveHorizontalDirection:le,deltaHorizontal:$e,deltaVertical:xe}=j||{};let Oe=0,De=0;return V.width<=window.innerWidth?Oe=0:V.left>0?Oe=(V.width-window.innerWidth)/2:V.right0?De=(V.height-window.innerHeight)/2:V.bottom.5){const j=_;E-=1,_=Math.max(.5,Math.pow(N,E));const X=j-_;oe(!1);const V=M();_+=X,oe(!1),_-=X,p=V.offsetX,y=V.offsetY,oe()}}function oe(j=!0){var X;const{value:V}=n;if(!V)return;const{style:ae}=V,le=dl((X=R==null?void 0:R.previewedImgPropsRef.value)===null||X===void 0?void 0:X.style);let $e="";if(typeof le=="string")$e=le+";";else for(const Oe in le)$e+=`${cu(Oe)}: ${le[Oe]};`;const xe=`transform-origin: center; transform: translateX(${p}px) translateY(${y}px) rotate(${C}deg) scale(${_});`;O?ae.cssText=$e+"cursor: grabbing; transition: none;"+xe:ae.cssText=$e+"cursor: grab;"+xe+(j?"":"transition: none;"),j||V.offsetHeight}function ke(){l.value=!l.value,s.value=!0}function we(){_=ye(),E=Math.ceil(Math.log(_)/Math.log(N)),p=0,y=0,oe()}const ee={setPreviewSrc:j=>{i.value=j},setThumbnailEl:j=>{r=j},toggleShow:ke};function Le(j,X){if(e.showToolbarTooltip){const{value:V}=t;return u(oi,{to:!1,theme:V.peers.Tooltip,themeOverrides:V.peerOverrides.Tooltip,keepAliveOnHover:!1},{default:()=>a.value[X],trigger:()=>j})}else return j}const Ve=D(()=>{const{common:{cubicBezierEaseInOut:j},self:{toolbarIconColor:X,toolbarBorderRadius:V,toolbarBoxShadow:ae,toolbarColor:le}}=t.value;return{"--n-bezier":j,"--n-toolbar-icon-color":X,"--n-toolbar-color":le,"--n-toolbar-border-radius":V,"--n-toolbar-box-shadow":ae}}),{inlineThemeDisabled:Ke}=Ie(),Ee=Ke?Ae("image-preview",void 0,Ve,e):void 0;return Object.assign({previewRef:n,previewWrapperRef:o,previewSrc:i,show:l,appear:Dr(),displayed:s,previewedImgProps:R==null?void 0:R.previewedImgPropsRef,handleWheel(j){j.preventDefault()},handlePreviewMousedown:P,handlePreviewDblclick:T,syncTransformOrigin:d,handleAfterLeave:()=>{$(),C=0,s.value=!1},handleDragStart:j=>{var X,V;(V=(X=R==null?void 0:R.previewedImgPropsRef.value)===null||X===void 0?void 0:X.onDragstart)===null||V===void 0||V.call(X,j),j.preventDefault()},zoomIn:ge,zoomOut:Re,rotateCounterclockwise:q,rotateClockwise:Q,handleSwitchPrev:F,handleSwitchNext:A,withTooltip:Le,resizeToOrignalImageSize:we,cssVars:Ke?void 0:Ve,themeClass:Ee==null?void 0:Ee.themeClass,onRender:Ee==null?void 0:Ee.onRender},ee)},render(){var e,t;const{clsPrefix:r}=this;return u(je,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),u(oo,{show:this.show},{default:()=>{var n;return this.show||this.displayed?((n=this.onRender)===null||n===void 0||n.call(this),pt(u("div",{class:[`${r}-image-preview-container`,this.themeClass],style:this.cssVars,onWheel:this.handleWheel},u($t,{name:"fade-in-transition",appear:this.appear},{default:()=>this.show?u("div",{class:`${r}-image-preview-overlay`,onClick:this.toggleShow}):null}),this.showToolbar?u($t,{name:"fade-in-transition",appear:this.appear},{default:()=>{if(!this.show)return null;const{withTooltip:o}=this;return u("div",{class:`${r}-image-preview-toolbar`},this.onPrev?u(je,null,o(u(ce,{clsPrefix:r,onClick:this.handleSwitchPrev},{default:()=>bh}),"tipPrevious"),o(u(ce,{clsPrefix:r,onClick:this.handleSwitchNext},{default:()=>yh}),"tipNext")):null,o(u(ce,{clsPrefix:r,onClick:this.rotateCounterclockwise},{default:()=>u(hc,null)}),"tipCounterclockwise"),o(u(ce,{clsPrefix:r,onClick:this.rotateClockwise},{default:()=>u(fc,null)}),"tipClockwise"),o(u(ce,{clsPrefix:r,onClick:this.resizeToOrignalImageSize},{default:()=>u(gc,null)}),"tipOriginalSize"),o(u(ce,{clsPrefix:r,onClick:this.zoomOut},{default:()=>u(vc,null)}),"tipZoomOut"),o(u(ce,{clsPrefix:r,onClick:this.zoomIn},{default:()=>u(pc,null)}),"tipZoomIn"),o(u(ce,{clsPrefix:r,onClick:this.toggleShow},{default:()=>wh}),"tipClose"))}}):null,u($t,{name:"fade-in-scale-up-transition",onAfterLeave:this.handleAfterLeave,appear:this.appear,onEnter:this.syncTransformOrigin,onBeforeLeave:this.syncTransformOrigin},{default:()=>{const{previewedImgProps:o={}}=this;return pt(u("div",{class:`${r}-image-preview-wrapper`,ref:"previewWrapperRef"},u("img",Object.assign({},o,{draggable:!1,onMousedown:this.handlePreviewMousedown,onDblclick:this.handlePreviewDblclick,class:[`${r}-image-preview`,o.class],key:this.previewSrc,src:this.previewSrc,ref:"previewRef",onDragstart:this.handleDragStart}))),[[so,this.show]])}})),[[Fr,{enabled:this.show}]])):null}}))}}),hi=We("n-image-group"),Ch=en,Sh=K({name:"ImageGroup",props:Ch,setup(e){let t;const{mergedClsPrefixRef:r}=Ie(e),n=`c${Pr()}`,o=Ar(),i=a=>{var d;t=a,(d=s.value)===null||d===void 0||d.setPreviewSrc(a)};function l(a){if(!(o!=null&&o.proxy))return;const c=o.proxy.$el.parentElement.querySelectorAll(`[data-group-id=${n}]:not([data-error=true])`);if(!c.length)return;const f=Array.from(c).findIndex(h=>h.dataset.previewSrc===t);~f?i(c[(f+a+c.length)%c.length].dataset.previewSrc):i(c[0].dataset.previewSrc)}Pe(hi,{mergedClsPrefixRef:r,setPreviewSrc:i,setThumbnailEl:a=>{var d;(d=s.value)===null||d===void 0||d.setThumbnailEl(a)},toggleShow:()=>{var a;(a=s.value)===null||a===void 0||a.toggleShow()},groupId:n});const s=L(null);return{mergedClsPrefix:r,previewInstRef:s,next:()=>l(1),prev:()=>l(-1)}},render(){return u(fi,{theme:this.theme,themeOverrides:this.themeOverrides,clsPrefix:this.mergedClsPrefix,ref:"previewInstRef",onPrev:this.prev,onNext:this.next,showToolbar:this.showToolbar,showToolbarTooltip:this.showToolbarTooltip},this.$slots)}}),Ph=Object.assign({alt:String,height:[String,Number],imgProps:Object,previewedImgProps:Object,lazy:Boolean,intersectionObserverOptions:Object,objectFit:{type:String,default:"fill"},previewSrc:String,fallbackSrc:String,width:[String,Number],src:String,previewDisabled:Boolean,loadDescription:String,onError:Function,onLoad:Function},en),Mr=K({name:"Image",props:Ph,inheritAttrs:!1,setup(e){const t=L(null),r=L(!1),n=L(null),o=ie(hi,null),{mergedClsPrefixRef:i}=o||Ie(e),l={click:()=>{if(e.previewDisabled||r.value)return;const d=e.previewSrc||e.src;if(o){o.setPreviewSrc(d),o.setThumbnailEl(t.value),o.toggleShow();return}const{value:c}=n;c&&(c.setPreviewSrc(d),c.setThumbnailEl(t.value),c.toggleShow())}},s=L(!e.lazy);Xe(()=>{var d;(d=t.value)===null||d===void 0||d.setAttribute("data-group-id",(o==null?void 0:o.groupId)||"")}),Xe(()=>{if(mr)return;let d;const c=ot(()=>{d==null||d(),d=void 0,e.lazy&&(d=Pf(t.value,e.intersectionObserverOptions,s))});Je(()=>{c(),d==null||d()})}),ot(()=>{var d;e.src,(d=e.imgProps)===null||d===void 0||d.src,r.value=!1});const a=L(!1);return Pe(ui,{previewedImgPropsRef:Z(e,"previewedImgProps")}),Object.assign({mergedClsPrefix:i,groupId:o==null?void 0:o.groupId,previewInstRef:n,imageRef:t,showError:r,shouldStartLoading:s,loaded:a,mergedOnClick:d=>{var c,f;l.click(),(f=(c=e.imgProps)===null||c===void 0?void 0:c.onClick)===null||f===void 0||f.call(c,d)},mergedOnError:d=>{if(!s.value)return;r.value=!0;const{onError:c,imgProps:{onError:f}={}}=e;c==null||c(d),f==null||f(d)},mergedOnLoad:d=>{const{onLoad:c,imgProps:{onLoad:f}={}}=e;c==null||c(d),f==null||f(d),a.value=!0}},l)},render(){var e,t;const{mergedClsPrefix:r,imgProps:n={},loaded:o,$attrs:i,lazy:l}=this,s=(t=(e=this.$slots).placeholder)===null||t===void 0?void 0:t.call(e),a=this.src||n.src||"",d=u("img",Object.assign(Object.assign({},n),{ref:"imageRef",width:this.width||n.width,height:this.height||n.height,src:mr?a:this.showError?this.fallbackSrc:this.shouldStartLoading?a:void 0,alt:this.alt||n.alt,"aria-label":this.alt||n.alt,onClick:this.mergedOnClick,onError:this.mergedOnError,onLoad:this.mergedOnLoad,loading:mr&&l&&!this.intersectionObserverOptions?"lazy":"eager",style:[n.style||"",s&&!o?{height:"0",width:"0",visibility:"hidden"}:"",{objectFit:this.objectFit}],"data-error":this.showError,"data-preview-src":this.previewSrc||this.src}));return u("div",Object.assign({},i,{role:"none",class:[i.class,`${r}-image`,(this.previewDisabled||this.showError)&&`${r}-image--preview-disabled`]}),this.groupId?d:u(fi,{theme:this.theme,themeOverrides:this.themeOverrides,clsPrefix:r,ref:"previewInstRef",showToolbar:this.showToolbar,showToolbarTooltip:this.showToolbarTooltip},{default:()=>d}),!o&&s)}}),kh=H([k("list",`
+ --n-merged-border-color: var(--n-border-color);
+ --n-merged-color: var(--n-color);
+ --n-merged-color-hover: var(--n-color-hover);
+ margin: 0;
+ font-size: var(--n-font-size);
+ transition:
+ background-color .3s var(--n-bezier),
+ color .3s var(--n-bezier),
+ border-color .3s var(--n-bezier);
+ padding: 0;
+ list-style-type: none;
+ color: var(--n-text-color);
+ background-color: var(--n-merged-color);
+ `,[W("show-divider",[k("list-item",[H("&:not(:last-child)",[B("divider",`
+ background-color: var(--n-merged-border-color);
+ `)])])]),W("clickable",[k("list-item",`
+ cursor: pointer;
+ `)]),W("bordered",`
+ border: 1px solid var(--n-merged-border-color);
+ border-radius: var(--n-border-radius);
+ `),W("hoverable",[k("list-item",`
+ border-radius: var(--n-border-radius);
+ `,[H("&:hover",`
+ background-color: var(--n-merged-color-hover);
+ `,[B("divider",`
+ background-color: transparent;
+ `)])])]),W("bordered, hoverable",[k("list-item",`
+ padding: 12px 20px;
+ `),B("header, footer",`
+ padding: 12px 20px;
+ `)]),B("header, footer",`
+ padding: 12px 0;
+ box-sizing: border-box;
+ transition: border-color .3s var(--n-bezier);
+ `,[H("&:not(:last-child)",`
+ border-bottom: 1px solid var(--n-merged-border-color);
+ `)]),k("list-item",`
+ position: relative;
+ padding: 12px 0;
+ box-sizing: border-box;
+ display: flex;
+ flex-wrap: nowrap;
+ align-items: center;
+ transition:
+ background-color .3s var(--n-bezier),
+ border-color .3s var(--n-bezier);
+ `,[B("prefix",`
+ margin-right: 20px;
+ flex: 0;
+ `),B("suffix",`
+ margin-left: 20px;
+ flex: 0;
+ `),B("main",`
+ flex: 1;
+ `),B("divider",`
+ height: 1px;
+ position: absolute;
+ bottom: 0;
+ left: 0;
+ right: 0;
+ background-color: transparent;
+ transition: background-color .3s var(--n-bezier);
+ pointer-events: none;
+ `)])]),ul(k("list",`
+ --n-merged-color-hover: var(--n-color-hover-modal);
+ --n-merged-color: var(--n-color-modal);
+ --n-merged-border-color: var(--n-border-color-modal);
+ `)),cl(k("list",`
+ --n-merged-color-hover: var(--n-color-hover-popover);
+ --n-merged-color: var(--n-color-popover);
+ --n-merged-border-color: var(--n-border-color-popover);
+ `))]),$h=Object.assign(Object.assign({},re.props),{size:{type:String,default:"medium"},bordered:Boolean,clickable:Boolean,hoverable:Boolean,showDivider:{type:Boolean,default:!0}}),pi=We("n-list"),zh=K({name:"List",props:$h,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r,mergedRtlRef:n}=Ie(e),o=_t("List",n,t),i=re("List","-list",kh,dh,e,t);Pe(pi,{showDividerRef:Z(e,"showDivider"),mergedClsPrefixRef:t});const l=D(()=>{const{common:{cubicBezierEaseInOut:a},self:{fontSize:d,textColor:c,color:f,colorModal:h,colorPopover:p,borderColor:y,borderColorModal:S,borderColorPopover:m,borderRadius:x,colorHover:z,colorHoverModal:O,colorHoverPopover:w}}=i.value;return{"--n-font-size":d,"--n-bezier":a,"--n-text-color":c,"--n-color":f,"--n-border-radius":x,"--n-border-color":y,"--n-border-color-modal":S,"--n-border-color-popover":m,"--n-color-modal":h,"--n-color-popover":p,"--n-color-hover":z,"--n-color-hover-modal":O,"--n-color-hover-popover":w}}),s=r?Ae("list",void 0,l,e):void 0;return{mergedClsPrefix:t,rtlEnabled:o,cssVars:r?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){var e;const{$slots:t,mergedClsPrefix:r,onRender:n}=this;return n==null||n(),u("ul",{class:[`${r}-list`,this.rtlEnabled&&`${r}-list--rtl`,this.bordered&&`${r}-list--bordered`,this.showDivider&&`${r}-list--show-divider`,this.hoverable&&`${r}-list--hoverable`,this.clickable&&`${r}-list--clickable`,this.themeClass],style:this.cssVars},t.header?u("div",{class:`${r}-list__header`},t.header()):null,(e=t.default)===null||e===void 0?void 0:e.call(t),t.footer?u("div",{class:`${r}-list__footer`},t.footer()):null)}}),Th=K({name:"ListItem",setup(){const e=ie(pi,null);return e||bt("list-item","`n-list-item` must be placed in `n-list`."),{showDivider:e.showDividerRef,mergedClsPrefix:e.mergedClsPrefixRef}},render(){const{$slots:e,mergedClsPrefix:t}=this;return u("li",{class:`${t}-list-item`},e.prefix?u("div",{class:`${t}-list-item__prefix`},e.prefix()):null,e.default?u("div",{class:`${t}-list-item__main`},e):null,e.suffix?u("div",{class:`${t}-list-item__suffix`},e.suffix()):null,this.showDivider&&u("div",{class:`${t}-list-item__divider`}))}});function tn(){const e=ie(fl,null);return e===null&&bt("use-message","No outer founded. See prerequisite in https://www.naiveui.com/en-US/os-theme/components/message for more details. If you want to use `useMessage` outside setup, please check https://www.naiveui.com/zh-CN/os-theme/components/message#Q-&-A."),e}const Ih=H([k("progress",{display:"inline-block"},[k("progress-icon",`
+ color: var(--n-icon-color);
+ transition: color .3s var(--n-bezier);
+ `),W("line",`
+ width: 100%;
+ display: block;
+ `,[k("progress-content",`
+ display: flex;
+ align-items: center;
+ `,[k("progress-graph",{flex:1})]),k("progress-custom-content",{marginLeft:"14px"}),k("progress-icon",`
+ width: 30px;
+ padding-left: 14px;
+ height: var(--n-icon-size-line);
+ line-height: var(--n-icon-size-line);
+ font-size: var(--n-icon-size-line);
+ `,[W("as-text",`
+ color: var(--n-text-color-line-outer);
+ text-align: center;
+ width: 40px;
+ font-size: var(--n-font-size);
+ padding-left: 4px;
+ transition: color .3s var(--n-bezier);
+ `)])]),W("circle, dashboard",{width:"120px"},[k("progress-custom-content",`
+ position: absolute;
+ left: 50%;
+ top: 50%;
+ transform: translateX(-50%) translateY(-50%);
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ `),k("progress-text",`
+ position: absolute;
+ left: 50%;
+ top: 50%;
+ transform: translateX(-50%) translateY(-50%);
+ display: flex;
+ align-items: center;
+ color: inherit;
+ font-size: var(--n-font-size-circle);
+ color: var(--n-text-color-circle);
+ font-weight: var(--n-font-weight-circle);
+ transition: color .3s var(--n-bezier);
+ white-space: nowrap;
+ `),k("progress-icon",`
+ position: absolute;
+ left: 50%;
+ top: 50%;
+ transform: translateX(-50%) translateY(-50%);
+ display: flex;
+ align-items: center;
+ color: var(--n-icon-color);
+ font-size: var(--n-icon-size-circle);
+ `)]),W("multiple-circle",`
+ width: 200px;
+ color: inherit;
+ `,[k("progress-text",`
+ font-weight: var(--n-font-weight-circle);
+ color: var(--n-text-color-circle);
+ position: absolute;
+ left: 50%;
+ top: 50%;
+ transform: translateX(-50%) translateY(-50%);
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ transition: color .3s var(--n-bezier);
+ `)]),k("progress-content",{position:"relative"}),k("progress-graph",{position:"relative"},[k("progress-graph-circle",[H("svg",{verticalAlign:"bottom"}),k("progress-graph-circle-fill",`
+ stroke: var(--n-fill-color);
+ transition:
+ opacity .3s var(--n-bezier),
+ stroke .3s var(--n-bezier),
+ stroke-dasharray .3s var(--n-bezier);
+ `,[W("empty",{opacity:0})]),k("progress-graph-circle-rail",`
+ transition: stroke .3s var(--n-bezier);
+ overflow: hidden;
+ stroke: var(--n-rail-color);
+ `)]),k("progress-graph-line",[W("indicator-inside",[k("progress-graph-line-rail",`
+ height: 16px;
+ line-height: 16px;
+ border-radius: 10px;
+ `,[k("progress-graph-line-fill",`
+ height: inherit;
+ border-radius: 10px;
+ `),k("progress-graph-line-indicator",`
+ background: #0000;
+ white-space: nowrap;
+ text-align: right;
+ margin-left: 14px;
+ margin-right: 14px;
+ height: inherit;
+ font-size: 12px;
+ color: var(--n-text-color-line-inner);
+ transition: color .3s var(--n-bezier);
+ `)])]),W("indicator-inside-label",`
+ height: 16px;
+ display: flex;
+ align-items: center;
+ `,[k("progress-graph-line-rail",`
+ flex: 1;
+ transition: background-color .3s var(--n-bezier);
+ `),k("progress-graph-line-indicator",`
+ background: var(--n-fill-color);
+ font-size: 12px;
+ transform: translateZ(0);
+ display: flex;
+ vertical-align: middle;
+ height: 16px;
+ line-height: 16px;
+ padding: 0 10px;
+ border-radius: 10px;
+ position: absolute;
+ white-space: nowrap;
+ color: var(--n-text-color-line-inner);
+ transition:
+ right .2s var(--n-bezier),
+ color .3s var(--n-bezier),
+ background-color .3s var(--n-bezier);
+ `)]),k("progress-graph-line-rail",`
+ position: relative;
+ overflow: hidden;
+ height: var(--n-rail-height);
+ border-radius: 5px;
+ background-color: var(--n-rail-color);
+ transition: background-color .3s var(--n-bezier);
+ `,[k("progress-graph-line-fill",`
+ background: var(--n-fill-color);
+ position: relative;
+ border-radius: 5px;
+ height: inherit;
+ width: 100%;
+ max-width: 0%;
+ transition:
+ background-color .3s var(--n-bezier),
+ max-width .2s var(--n-bezier);
+ `,[W("processing",[H("&::after",`
+ content: "";
+ background-image: var(--n-line-bg-processing);
+ animation: progress-processing-animation 2s var(--n-bezier) infinite;
+ `)])])])])])]),H("@keyframes progress-processing-animation",`
+ 0% {
+ position: absolute;
+ left: 0;
+ top: 0;
+ bottom: 0;
+ right: 100%;
+ opacity: 1;
+ }
+ 66% {
+ position: absolute;
+ left: 0;
+ top: 0;
+ bottom: 0;
+ right: 0;
+ opacity: 0;
+ }
+ 100% {
+ position: absolute;
+ left: 0;
+ top: 0;
+ bottom: 0;
+ right: 0;
+ opacity: 0;
+ }
+ `)]),Rh={success:u(mo,null),error:u(bo,null),warning:u(yo,null),info:u(wo,null)},Oh=K({name:"ProgressLine",props:{clsPrefix:{type:String,required:!0},percentage:{type:Number,default:0},railColor:String,railStyle:[String,Object],fillColor:String,status:{type:String,required:!0},indicatorPlacement:{type:String,required:!0},indicatorTextColor:String,unit:{type:String,default:"%"},processing:{type:Boolean,required:!0},showIndicator:{type:Boolean,required:!0},height:[String,Number],railBorderRadius:[String,Number],fillBorderRadius:[String,Number]},setup(e,{slots:t}){const r=D(()=>Fe(e.height)),n=D(()=>e.railBorderRadius!==void 0?Fe(e.railBorderRadius):e.height!==void 0?Fe(e.height,{c:.5}):""),o=D(()=>e.fillBorderRadius!==void 0?Fe(e.fillBorderRadius):e.railBorderRadius!==void 0?Fe(e.railBorderRadius):e.height!==void 0?Fe(e.height,{c:.5}):"");return()=>{const{indicatorPlacement:i,railColor:l,railStyle:s,percentage:a,unit:d,indicatorTextColor:c,status:f,showIndicator:h,fillColor:p,processing:y,clsPrefix:S}=e;return u("div",{class:`${S}-progress-content`,role:"none"},u("div",{class:`${S}-progress-graph`,"aria-hidden":!0},u("div",{class:[`${S}-progress-graph-line`,{[`${S}-progress-graph-line--indicator-${i}`]:!0}]},u("div",{class:`${S}-progress-graph-line-rail`,style:[{backgroundColor:l,height:r.value,borderRadius:n.value},s]},u("div",{class:[`${S}-progress-graph-line-fill`,y&&`${S}-progress-graph-line-fill--processing`],style:{maxWidth:`${e.percentage}%`,backgroundColor:p,height:r.value,lineHeight:r.value,borderRadius:o.value}},i==="inside"?u("div",{class:`${S}-progress-graph-line-indicator`,style:{color:c}},a,d):null)))),h&&i==="outside"?u("div",null,t.default?u("div",{class:`${S}-progress-custom-content`,style:{color:c},role:"none"},t.default()):f==="default"?u("div",{role:"none",class:`${S}-progress-icon ${S}-progress-icon--as-text`,style:{color:c}},a,d):u("div",{class:`${S}-progress-icon`,"aria-hidden":!0},u(ce,{clsPrefix:S},{default:()=>Rh[f]}))):null)}}}),_h={success:u(mo,null),error:u(bo,null),warning:u(yo,null),info:u(wo,null)},Mh=K({name:"ProgressCircle",props:{clsPrefix:{type:String,required:!0},status:{type:String,required:!0},strokeWidth:{type:Number,required:!0},fillColor:String,railColor:String,railStyle:[String,Object],percentage:{type:Number,default:0},offsetDegree:{type:Number,default:0},showIndicator:{type:Boolean,required:!0},indicatorTextColor:String,unit:String,viewBoxWidth:{type:Number,required:!0},gapDegree:{type:Number,required:!0},gapOffsetDegree:{type:Number,default:0}},setup(e,{slots:t}){function r(n,o,i){const{gapDegree:l,viewBoxWidth:s,strokeWidth:a}=e,d=50,c=0,f=d,h=0,p=2*d,y=50+a/2,S=`M ${y},${y} m ${c},${f}
+ a ${d},${d} 0 1 1 ${h},${-p}
+ a ${d},${d} 0 1 1 ${-h},${p}`,m=Math.PI*2*d,x={stroke:i,strokeDasharray:`${n/100*(m-l)}px ${s*8}px`,strokeDashoffset:`-${l/2}px`,transformOrigin:o?"center":void 0,transform:o?`rotate(${o}deg)`:void 0};return{pathString:S,pathStyle:x}}return()=>{const{fillColor:n,railColor:o,strokeWidth:i,offsetDegree:l,status:s,percentage:a,showIndicator:d,indicatorTextColor:c,unit:f,gapOffsetDegree:h,clsPrefix:p}=e,{pathString:y,pathStyle:S}=r(100,0,o),{pathString:m,pathStyle:x}=r(a,l,n),z=100+i;return u("div",{class:`${p}-progress-content`,role:"none"},u("div",{class:`${p}-progress-graph`,"aria-hidden":!0},u("div",{class:`${p}-progress-graph-circle`,style:{transform:h?`rotate(${h}deg)`:void 0}},u("svg",{viewBox:`0 0 ${z} ${z}`},u("g",null,u("path",{class:`${p}-progress-graph-circle-rail`,d:y,"stroke-width":i,"stroke-linecap":"round",fill:"none",style:S})),u("g",null,u("path",{class:[`${p}-progress-graph-circle-fill`,a===0&&`${p}-progress-graph-circle-fill--empty`],d:m,"stroke-width":i,"stroke-linecap":"round",fill:"none",style:x}))))),d?u("div",null,t.default?u("div",{class:`${p}-progress-custom-content`,role:"none"},t.default()):s!=="default"?u("div",{class:`${p}-progress-icon`,"aria-hidden":!0},u(ce,{clsPrefix:p},{default:()=>_h[s]})):u("div",{class:`${p}-progress-text`,style:{color:c},role:"none"},u("span",{class:`${p}-progress-text__percentage`},a),u("span",{class:`${p}-progress-text__unit`},f))):null)}}});function Gn(e,t,r=100){return`m ${r/2} ${r/2-e} a ${e} ${e} 0 1 1 0 ${2*e} a ${e} ${e} 0 1 1 0 -${2*e}`}const Bh=K({name:"ProgressMultipleCircle",props:{clsPrefix:{type:String,required:!0},viewBoxWidth:{type:Number,required:!0},percentage:{type:Array,default:[0]},strokeWidth:{type:Number,required:!0},circleGap:{type:Number,required:!0},showIndicator:{type:Boolean,required:!0},fillColor:{type:Array,default:()=>[]},railColor:{type:Array,default:()=>[]},railStyle:{type:Array,default:()=>[]}},setup(e,{slots:t}){const r=D(()=>e.percentage.map((o,i)=>`${Math.PI*o/100*(e.viewBoxWidth/2-e.strokeWidth/2*(1+2*i)-e.circleGap*i)*2}, ${e.viewBoxWidth*8}`));return()=>{const{viewBoxWidth:n,strokeWidth:o,circleGap:i,showIndicator:l,fillColor:s,railColor:a,railStyle:d,percentage:c,clsPrefix:f}=e;return u("div",{class:`${f}-progress-content`,role:"none"},u("div",{class:`${f}-progress-graph`,"aria-hidden":!0},u("div",{class:`${f}-progress-graph-circle`},u("svg",{viewBox:`0 0 ${n} ${n}`},c.map((h,p)=>u("g",{key:p},u("path",{class:`${f}-progress-graph-circle-rail`,d:Gn(n/2-o/2*(1+2*p)-i*p,o,n),"stroke-width":o,"stroke-linecap":"round",fill:"none",style:[{strokeDashoffset:0,stroke:a[p]},d[p]]}),u("path",{class:[`${f}-progress-graph-circle-fill`,h===0&&`${f}-progress-graph-circle-fill--empty`],d:Gn(n/2-o/2*(1+2*p)-i*p,o,n),"stroke-width":o,"stroke-linecap":"round",fill:"none",style:{strokeDasharray:r.value[p],strokeDashoffset:0,stroke:s[p]}})))))),l&&t.default?u("div",null,u("div",{class:`${f}-progress-text`},t.default())):null)}}}),Lh=Object.assign(Object.assign({},re.props),{processing:Boolean,type:{type:String,default:"line"},gapDegree:Number,gapOffsetDegree:Number,status:{type:String,default:"default"},railColor:[String,Array],railStyle:[String,Array],color:[String,Array],viewBoxWidth:{type:Number,default:100},strokeWidth:{type:Number,default:7},percentage:[Number,Array],unit:{type:String,default:"%"},showIndicator:{type:Boolean,default:!0},indicatorPosition:{type:String,default:"outside"},indicatorPlacement:{type:String,default:"outside"},indicatorTextColor:String,circleGap:{type:Number,default:1},height:Number,borderRadius:[String,Number],fillBorderRadius:[String,Number],offsetDegree:Number}),Eh=K({name:"Progress",props:Lh,setup(e){const t=D(()=>e.indicatorPlacement||e.indicatorPosition),r=D(()=>{if(e.gapDegree||e.gapDegree===0)return e.gapDegree;if(e.type==="dashboard")return 75}),{mergedClsPrefixRef:n,inlineThemeDisabled:o}=Ie(e),i=re("Progress","-progress",Ih,ci,e,n),l=D(()=>{const{status:a}=e,{common:{cubicBezierEaseInOut:d},self:{fontSize:c,fontSizeCircle:f,railColor:h,railHeight:p,iconSizeCircle:y,iconSizeLine:S,textColorCircle:m,textColorLineInner:x,textColorLineOuter:z,lineBgProcessing:O,fontWeightCircle:w,[ne("iconColor",a)]:g,[ne("fillColor",a)]:M}}=i.value;return{"--n-bezier":d,"--n-fill-color":M,"--n-font-size":c,"--n-font-size-circle":f,"--n-font-weight-circle":w,"--n-icon-color":g,"--n-icon-size-circle":y,"--n-icon-size-line":S,"--n-line-bg-processing":O,"--n-rail-color":h,"--n-rail-height":p,"--n-text-color-circle":m,"--n-text-color-line-inner":x,"--n-text-color-line-outer":z}}),s=o?Ae("progress",D(()=>e.status[0]),l,e):void 0;return{mergedClsPrefix:n,mergedIndicatorPlacement:t,gapDeg:r,cssVars:o?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){const{type:e,cssVars:t,indicatorTextColor:r,showIndicator:n,status:o,railColor:i,railStyle:l,color:s,percentage:a,viewBoxWidth:d,strokeWidth:c,mergedIndicatorPlacement:f,unit:h,borderRadius:p,fillBorderRadius:y,height:S,processing:m,circleGap:x,mergedClsPrefix:z,gapDeg:O,gapOffsetDegree:w,themeClass:g,$slots:M,onRender:b}=this;return b==null||b(),u("div",{class:[g,`${z}-progress`,`${z}-progress--${e}`,`${z}-progress--${o}`],style:t,"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":a,role:e==="circle"||e==="line"||e==="dashboard"?"progressbar":"none"},e==="circle"||e==="dashboard"?u(Mh,{clsPrefix:z,status:o,showIndicator:n,indicatorTextColor:r,railColor:i,fillColor:s,railStyle:l,offsetDegree:this.offsetDegree,percentage:a,viewBoxWidth:d,strokeWidth:c,gapDegree:O===void 0?e==="dashboard"?75:0:O,gapOffsetDegree:w,unit:h},M):e==="line"?u(Oh,{clsPrefix:z,status:o,showIndicator:n,indicatorTextColor:r,railColor:i,fillColor:s,railStyle:l,percentage:a,processing:m,indicatorPlacement:f,unit:h,fillBorderRadius:y,railBorderRadius:p,height:S},M):e==="multiple-circle"?u(Bh,{clsPrefix:z,strokeWidth:c,railColor:i,fillColor:s,railStyle:l,viewBoxWidth:d,percentage:a,showIndicator:n,circleGap:x},M):null)}}),Ah=k("thing",`
+ display: flex;
+ transition: color .3s var(--n-bezier);
+ font-size: var(--n-font-size);
+ color: var(--n-text-color);
+`,[k("thing-avatar",`
+ margin-right: 12px;
+ margin-top: 2px;
+ `),k("thing-avatar-header-wrapper",`
+ display: flex;
+ flex-wrap: nowrap;
+ `,[k("thing-header-wrapper",`
+ flex: 1;
+ `)]),k("thing-main",`
+ flex-grow: 1;
+ `,[k("thing-header",`
+ display: flex;
+ margin-bottom: 4px;
+ justify-content: space-between;
+ align-items: center;
+ `,[B("title",`
+ font-size: 16px;
+ font-weight: var(--n-title-font-weight);
+ transition: color .3s var(--n-bezier);
+ color: var(--n-title-text-color);
+ `)]),B("description",[H("&:not(:last-child)",`
+ margin-bottom: 4px;
+ `)]),B("content",[H("&:not(:first-child)",`
+ margin-top: 12px;
+ `)]),B("footer",[H("&:not(:first-child)",`
+ margin-top: 12px;
+ `)]),B("action",[H("&:not(:first-child)",`
+ margin-top: 12px;
+ `)])])]),Dh=Object.assign(Object.assign({},re.props),{title:String,titleExtra:String,description:String,descriptionStyle:[String,Object],content:String,contentStyle:[String,Object],contentIndented:Boolean}),vi=K({name:"Thing",props:Dh,setup(e,{slots:t}){const{mergedClsPrefixRef:r,inlineThemeDisabled:n,mergedRtlRef:o}=Ie(e),i=re("Thing","-thing",Ah,ph,e,r),l=_t("Thing",o,r),s=D(()=>{const{self:{titleTextColor:d,textColor:c,titleFontWeight:f,fontSize:h},common:{cubicBezierEaseInOut:p}}=i.value;return{"--n-bezier":p,"--n-font-size":h,"--n-text-color":c,"--n-title-font-weight":f,"--n-title-text-color":d}}),a=n?Ae("thing",void 0,s,e):void 0;return()=>{var d;const{value:c}=r,f=l?l.value:!1;return(d=a==null?void 0:a.onRender)===null||d===void 0||d.call(a),u("div",{class:[`${c}-thing`,a==null?void 0:a.themeClass,f&&`${c}-thing--rtl`],style:n?void 0:s.value},t.avatar&&e.contentIndented?u("div",{class:`${c}-thing-avatar`},t.avatar()):null,u("div",{class:`${c}-thing-main`},!e.contentIndented&&(t.header||e.title||t["header-extra"]||e.titleExtra||t.avatar)?u("div",{class:`${c}-thing-avatar-header-wrapper`},t.avatar?u("div",{class:`${c}-thing-avatar`},t.avatar()):null,t.header||e.title||t["header-extra"]||e.titleExtra?u("div",{class:`${c}-thing-header-wrapper`},u("div",{class:`${c}-thing-header`},t.header||e.title?u("div",{class:`${c}-thing-header__title`},t.header?t.header():e.title):null,t["header-extra"]||e.titleExtra?u("div",{class:`${c}-thing-header__extra`},t["header-extra"]?t["header-extra"]():e.titleExtra):null),t.description||e.description?u("div",{class:`${c}-thing-main__description`,style:e.descriptionStyle},t.description?t.description():e.description):null):null):u(je,null,t.header||e.title||t["header-extra"]||e.titleExtra?u("div",{class:`${c}-thing-header`},t.header||e.title?u("div",{class:`${c}-thing-header__title`},t.header?t.header():e.title):null,t["header-extra"]||e.titleExtra?u("div",{class:`${c}-thing-header__extra`},t["header-extra"]?t["header-extra"]():e.titleExtra):null):null,t.description||e.description?u("div",{class:`${c}-thing-main__description`,style:e.descriptionStyle},t.description?t.description():e.description):null),t.default||e.content?u("div",{class:`${c}-thing-main__content`,style:e.contentStyle},t.default?t.default():e.content):null,t.footer?u("div",{class:`${c}-thing-main__footer`},t.footer()):null,t.action?u("div",{class:`${c}-thing-main__action`},t.action()):null))}}}),yt=We("n-upload"),gi="__UPLOAD_DRAGGER__",Fh=K({name:"UploadDragger",[gi]:!0,setup(e,{slots:t}){const r=ie(yt,null);return r||bt("upload-dragger","`n-upload-dragger` must be placed inside `n-upload`."),()=>{const{mergedClsPrefixRef:{value:n},mergedDisabledRef:{value:o},maxReachedRef:{value:i}}=r;return u("div",{class:[`${n}-upload-dragger`,(o||i)&&`${n}-upload-dragger--disabled`]},t)}}});var mi=globalThis&&globalThis.__awaiter||function(e,t,r,n){function o(i){return i instanceof r?i:new r(function(l){l(i)})}return new(r||(r=Promise))(function(i,l){function s(c){try{d(n.next(c))}catch(f){l(f)}}function a(c){try{d(n.throw(c))}catch(f){l(f)}}function d(c){c.done?i(c.value):o(c.value).then(s,a)}d((n=n.apply(e,t||[])).next())})};const bi=e=>e.includes("image/"),Xn=(e="")=>{const t=e.split("/"),n=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(n)||[""])[0]},Yn=/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i,yi=e=>{if(e.type)return bi(e.type);const t=Xn(e.name||"");if(Yn.test(t))return!0;const r=e.thumbnailUrl||e.url||"",n=Xn(r);return!!(/^data:image\//.test(r)||Yn.test(n))};function Nh(e){return mi(this,void 0,void 0,function*(){return yield new Promise(t=>{if(!e.type||!bi(e.type)){t("");return}t(window.URL.createObjectURL(e))})})}const Hh=Wr&&window.FileReader&&window.File;function jh(e){return e.isDirectory}function Wh(e){return e.isFile}function Uh(e,t){return mi(this,void 0,void 0,function*(){const r=[];let n,o=0;function i(){o++}function l(){o--,o||n(r)}function s(a){a.forEach(d=>{if(d){if(i(),t&&jh(d)){const c=d.createReader();i(),c.readEntries(f=>{s(f),l()},()=>{l()})}else Wh(d)&&(i(),d.file(c=>{r.push({file:c,entry:d,source:"dnd"}),l()},()=>{l()}));l()}})}return yield new Promise(a=>{n=a,s(e)}),r})}function Rt(e){const{id:t,name:r,percentage:n,status:o,url:i,file:l,thumbnailUrl:s,type:a,fullPath:d,batchId:c}=e;return{id:t,name:r,percentage:n??null,status:o,url:i??null,file:l??null,thumbnailUrl:s??null,type:a??null,fullPath:d??null,batchId:c??null}}function Vh(e,t,r){return e=e.toLowerCase(),t=t.toLocaleLowerCase(),r=r.toLocaleLowerCase(),r.split(",").map(o=>o.trim()).filter(Boolean).some(o=>{if(o.startsWith(".")){if(e.endsWith(o))return!0}else if(o.includes("/")){const[i,l]=t.split("/"),[s,a]=o.split("/");if((s==="*"||i&&s&&s===i)&&(a==="*"||l&&a&&a===l))return!0}else return!0;return!1})}const Kh=(e,t)=>{if(!e)return;const r=document.createElement("a");r.href=e,t!==void 0&&(r.download=t),document.body.appendChild(r),r.click(),document.body.removeChild(r)},wi=K({name:"UploadTrigger",props:{abstract:Boolean},setup(e,{slots:t}){const r=ie(yt,null);r||bt("upload-trigger","`n-upload-trigger` must be placed inside `n-upload`.");const{mergedClsPrefixRef:n,mergedDisabledRef:o,maxReachedRef:i,listTypeRef:l,dragOverRef:s,openOpenFileDialog:a,draggerInsideRef:d,handleFileAddition:c,mergedDirectoryDndRef:f,triggerStyleRef:h}=r,p=D(()=>l.value==="image-card");function y(){o.value||i.value||a()}function S(O){O.preventDefault(),s.value=!0}function m(O){O.preventDefault(),s.value=!0}function x(O){O.preventDefault(),s.value=!1}function z(O){var w;if(O.preventDefault(),!d.value||o.value||i.value){s.value=!1;return}const g=(w=O.dataTransfer)===null||w===void 0?void 0:w.items;g!=null&&g.length?Uh(Array.from(g).map(M=>M.webkitGetAsEntry()),f.value).then(M=>{c(M)}).finally(()=>{s.value=!1}):s.value=!1}return()=>{var O;const{value:w}=n;return e.abstract?(O=t.default)===null||O===void 0?void 0:O.call(t,{handleClick:y,handleDrop:z,handleDragOver:S,handleDragEnter:m,handleDragLeave:x}):u("div",{class:[`${w}-upload-trigger`,(o.value||i.value)&&`${w}-upload-trigger--disabled`,p.value&&`${w}-upload-trigger--image-card`],style:h.value,onClick:y,onDrop:z,onDragover:S,onDragenter:m,onDragleave:x},p.value?u(Fh,null,{default:()=>ft(t.default,()=>[u(ce,{clsPrefix:w},{default:()=>u(tc,null)})])}):t)}}}),qh=K({name:"UploadProgress",props:{show:Boolean,percentage:{type:Number,required:!0},status:{type:String,required:!0}},setup(){return{mergedTheme:ie(yt).mergedThemeRef}},render(){return u(xo,null,{default:()=>this.show?u(Eh,{type:"line",showIndicator:!1,percentage:this.percentage,status:this.status,height:2,theme:this.mergedTheme.peers.Progress,themeOverrides:this.mergedTheme.peerOverrides.Progress}):null})}}),Gh=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 28 28"},u("g",{fill:"none"},u("path",{d:"M21.75 3A3.25 3.25 0 0 1 25 6.25v15.5A3.25 3.25 0 0 1 21.75 25H6.25A3.25 3.25 0 0 1 3 21.75V6.25A3.25 3.25 0 0 1 6.25 3h15.5zm.583 20.4l-7.807-7.68a.75.75 0 0 0-.968-.07l-.084.07l-7.808 7.68c.183.065.38.1.584.1h15.5c.204 0 .4-.035.583-.1l-7.807-7.68l7.807 7.68zM21.75 4.5H6.25A1.75 1.75 0 0 0 4.5 6.25v15.5c0 .208.036.408.103.593l7.82-7.692a2.25 2.25 0 0 1 3.026-.117l.129.117l7.82 7.692c.066-.185.102-.385.102-.593V6.25a1.75 1.75 0 0 0-1.75-1.75zm-3.25 3a2.5 2.5 0 1 1 0 5a2.5 2.5 0 0 1 0-5zm0 1.5a1 1 0 1 0 0 2a1 1 0 0 0 0-2z",fill:"currentColor"}))),Xh=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 28 28"},u("g",{fill:"none"},u("path",{d:"M6.4 2A2.4 2.4 0 0 0 4 4.4v19.2A2.4 2.4 0 0 0 6.4 26h15.2a2.4 2.4 0 0 0 2.4-2.4V11.578c0-.729-.29-1.428-.805-1.944l-6.931-6.931A2.4 2.4 0 0 0 14.567 2H6.4zm-.9 2.4a.9.9 0 0 1 .9-.9H14V10a2 2 0 0 0 2 2h6.5v11.6a.9.9 0 0 1-.9.9H6.4a.9.9 0 0 1-.9-.9V4.4zm16.44 6.1H16a.5.5 0 0 1-.5-.5V4.06l6.44 6.44z",fill:"currentColor"})));var Yh=globalThis&&globalThis.__awaiter||function(e,t,r,n){function o(i){return i instanceof r?i:new r(function(l){l(i)})}return new(r||(r=Promise))(function(i,l){function s(c){try{d(n.next(c))}catch(f){l(f)}}function a(c){try{d(n.throw(c))}catch(f){l(f)}}function d(c){c.done?i(c.value):o(c.value).then(s,a)}d((n=n.apply(e,t||[])).next())})};const Ut={paddingMedium:"0 3px",heightMedium:"24px",iconSizeMedium:"18px"},Zh=K({name:"UploadFile",props:{clsPrefix:{type:String,required:!0},file:{type:Object,required:!0},listType:{type:String,required:!0}},setup(e){const t=ie(yt),r=L(null),n=L(""),o=D(()=>{const{file:g}=e;return g.status==="finished"?"success":g.status==="error"?"error":"info"}),i=D(()=>{const{file:g}=e;if(g.status==="error")return"error"}),l=D(()=>{const{file:g}=e;return g.status==="uploading"}),s=D(()=>{if(!t.showCancelButtonRef.value)return!1;const{file:g}=e;return["uploading","pending","error"].includes(g.status)}),a=D(()=>{if(!t.showRemoveButtonRef.value)return!1;const{file:g}=e;return["finished"].includes(g.status)}),d=D(()=>{if(!t.showDownloadButtonRef.value)return!1;const{file:g}=e;return["finished"].includes(g.status)}),c=D(()=>{if(!t.showRetryButtonRef.value)return!1;const{file:g}=e;return["error"].includes(g.status)}),f=Be(()=>n.value||e.file.thumbnailUrl||e.file.url),h=D(()=>{if(!t.showPreviewButtonRef.value)return!1;const{file:{status:g},listType:M}=e;return["finished"].includes(g)&&f.value&&M==="image-card"});function p(){t.submit(e.file.id)}function y(g){g.preventDefault();const{file:M}=e;["finished","pending","error"].includes(M.status)?m(M):["uploading"].includes(M.status)?z(M):Ur("upload","The button clicked type is unknown.")}function S(g){g.preventDefault(),x(e.file)}function m(g){const{xhrMap:M,doChange:b,onRemoveRef:{value:R},mergedFileListRef:{value:P}}=t;Promise.resolve(R?R({file:Object.assign({},g),fileList:P}):!0).then(T=>{if(T===!1)return;const N=Object.assign({},g,{status:"removed"});M.delete(g.id),b(N,void 0,{remove:!0})})}function x(g){const{onDownloadRef:{value:M}}=t;Promise.resolve(M?M(Object.assign({},g)):!0).then(b=>{b!==!1&&Kh(g.url,g.name)})}function z(g){const{xhrMap:M}=t,b=M.get(g.id);b==null||b.abort(),m(Object.assign({},g))}function O(){const{onPreviewRef:{value:g}}=t;if(g)g(e.file);else if(e.listType==="image-card"){const{value:M}=r;if(!M)return;M.click()}}const w=()=>Yh(this,void 0,void 0,function*(){const{listType:g}=e;g!=="image"&&g!=="image-card"||t.shouldUseThumbnailUrlRef.value(e.file)&&(n.value=yield t.getFileThumbnailUrlResolver(e.file))});return ot(()=>{w()}),{mergedTheme:t.mergedThemeRef,progressStatus:o,buttonType:i,showProgress:l,disabled:t.mergedDisabledRef,showCancelButton:s,showRemoveButton:a,showDownloadButton:d,showRetryButton:c,showPreviewButton:h,mergedThumbnailUrl:f,shouldUseThumbnailUrl:t.shouldUseThumbnailUrlRef,renderIcon:t.renderIconRef,imageRef:r,handleRemoveOrCancelClick:y,handleDownloadClick:S,handleRetryClick:p,handlePreviewClick:O}},render(){const{clsPrefix:e,mergedTheme:t,listType:r,file:n,renderIcon:o}=this;let i;const l=r==="image";l||r==="image-card"?i=!this.shouldUseThumbnailUrl(n)||!this.mergedThumbnailUrl?u("span",{class:`${e}-upload-file-info__thumbnail`},o?o(n):yi(n)?u(ce,{clsPrefix:e},{default:()=>Gh}):u(ce,{clsPrefix:e},{default:()=>Xh})):u("a",{rel:"noopener noreferer",target:"_blank",href:n.url||void 0,class:`${e}-upload-file-info__thumbnail`,onClick:this.handlePreviewClick},r==="image-card"?u(Mr,{src:this.mergedThumbnailUrl||void 0,previewSrc:n.url||void 0,alt:n.name,ref:"imageRef"}):u("img",{src:this.mergedThumbnailUrl||void 0,alt:n.name})):i=u("span",{class:`${e}-upload-file-info__thumbnail`},o?o(n):u(ce,{clsPrefix:e},{default:()=>u(rc,null)}));const a=u(qh,{show:this.showProgress,percentage:n.percentage||0,status:this.progressStatus}),d=r==="text"||r==="image";return u("div",{class:[`${e}-upload-file`,`${e}-upload-file--${this.progressStatus}-status`,n.url&&n.status!=="error"&&r!=="image-card"&&`${e}-upload-file--with-url`,`${e}-upload-file--${r}-type`]},u("div",{class:`${e}-upload-file-info`},i,u("div",{class:`${e}-upload-file-info__name`},d&&(n.url&&n.status!=="error"?u("a",{rel:"noopener noreferer",target:"_blank",href:n.url||void 0,onClick:this.handlePreviewClick},n.name):u("span",{onClick:this.handlePreviewClick},n.name)),l&&a),u("div",{class:[`${e}-upload-file-info__action`,`${e}-upload-file-info__action--${r}-type`]},this.showPreviewButton?u(be,{key:"preview",quaternary:!0,type:this.buttonType,onClick:this.handlePreviewClick,theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,builtinThemeOverrides:Ut},{icon:()=>u(ce,{clsPrefix:e},{default:()=>u(Xo,null)})}):null,(this.showRemoveButton||this.showCancelButton)&&!this.disabled&&u(be,{key:"cancelOrTrash",theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,quaternary:!0,builtinThemeOverrides:Ut,type:this.buttonType,onClick:this.handleRemoveOrCancelClick},{icon:()=>u(po,null,{default:()=>this.showRemoveButton?u(ce,{clsPrefix:e,key:"trash"},{default:()=>u(ic,null)}):u(ce,{clsPrefix:e,key:"cancel"},{default:()=>u(sc,null)})})}),this.showRetryButton&&!this.disabled&&u(be,{key:"retry",quaternary:!0,type:this.buttonType,onClick:this.handleRetryClick,theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,builtinThemeOverrides:Ut},{icon:()=>u(ce,{clsPrefix:e},{default:()=>u(cc,null)})}),this.showDownloadButton?u(be,{key:"download",quaternary:!0,type:this.buttonType,onClick:this.handleDownloadClick,theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,builtinThemeOverrides:Ut},{icon:()=>u(ce,{clsPrefix:e},{default:()=>u(ac,null)})}):null)),!l&&a)}}),Jh=K({name:"UploadFileList",setup(e,{slots:t}){const r=ie(yt,null);r||bt("upload-file-list","`n-upload-file-list` must be placed inside `n-upload`.");const{abstractRef:n,mergedClsPrefixRef:o,listTypeRef:i,mergedFileListRef:l,fileListStyleRef:s,cssVarsRef:a,themeClassRef:d,maxReachedRef:c,showTriggerRef:f,imageGroupPropsRef:h}=r,p=D(()=>i.value==="image-card"),y=()=>l.value.map(m=>u(Zh,{clsPrefix:o.value,key:m.id,file:m,listType:i.value})),S=()=>p.value?u(Sh,Object.assign({},h.value),{default:y}):u(xo,{group:!0},{default:y});return()=>{const{value:m}=o,{value:x}=n;return u("div",{class:[`${m}-upload-file-list`,p.value&&`${m}-upload-file-list--grid`,x?d==null?void 0:d.value:void 0],style:[x&&a?a.value:"",s.value]},S(),f.value&&!c.value&&p.value&&u(wi,null,t))}}}),Qh=H([k("upload","width: 100%;",[W("dragger-inside",[k("upload-trigger",`
+ display: block;
+ `)]),W("drag-over",[k("upload-dragger",`
+ border: var(--n-dragger-border-hover);
+ `)])]),k("upload-dragger",`
+ cursor: pointer;
+ box-sizing: border-box;
+ width: 100%;
+ text-align: center;
+ border-radius: var(--n-border-radius);
+ padding: 24px;
+ opacity: 1;
+ transition:
+ opacity .3s var(--n-bezier),
+ border-color .3s var(--n-bezier),
+ background-color .3s var(--n-bezier);
+ background-color: var(--n-dragger-color);
+ border: var(--n-dragger-border);
+ `,[H("&:hover",`
+ border: var(--n-dragger-border-hover);
+ `),W("disabled",`
+ cursor: not-allowed;
+ `)]),k("upload-trigger",`
+ display: inline-block;
+ box-sizing: border-box;
+ opacity: 1;
+ transition: opacity .3s var(--n-bezier);
+ `,[H("+",[k("upload-file-list","margin-top: 8px;")]),W("disabled",`
+ opacity: var(--n-item-disabled-opacity);
+ cursor: not-allowed;
+ `),W("image-card",`
+ width: 96px;
+ height: 96px;
+ `,[k("base-icon",`
+ font-size: 24px;
+ `),k("upload-dragger",`
+ padding: 0;
+ height: 100%;
+ width: 100%;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ `)])]),k("upload-file-list",`
+ line-height: var(--n-line-height);
+ opacity: 1;
+ transition: opacity .3s var(--n-bezier);
+ `,[H("a, img","outline: none;"),W("disabled",`
+ opacity: var(--n-item-disabled-opacity);
+ cursor: not-allowed;
+ `,[k("upload-file","cursor: not-allowed;")]),W("grid",`
+ display: grid;
+ grid-template-columns: repeat(auto-fill, 96px);
+ grid-gap: 8px;
+ margin-top: 0;
+ `),k("upload-file",`
+ display: block;
+ box-sizing: border-box;
+ cursor: default;
+ padding: 0px 12px 0 6px;
+ transition: background-color .3s var(--n-bezier);
+ border-radius: var(--n-border-radius);
+ `,[bn(),k("progress",[bn({foldPadding:!0})]),H("&:hover",`
+ background-color: var(--n-item-color-hover);
+ `,[k("upload-file-info",[B("action",`
+ opacity: 1;
+ `)])]),W("image-type",`
+ border-radius: var(--n-border-radius);
+ text-decoration: underline;
+ text-decoration-color: #0000;
+ `,[k("upload-file-info",`
+ padding-top: 0px;
+ padding-bottom: 0px;
+ width: 100%;
+ height: 100%;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ padding: 6px 0;
+ `,[k("progress",`
+ padding: 2px 0;
+ margin-bottom: 0;
+ `),B("name",`
+ padding: 0 8px;
+ `),B("thumbnail",`
+ width: 32px;
+ height: 32px;
+ font-size: 28px;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ `,[H("img",`
+ width: 100%;
+ `)])])]),W("text-type",[k("progress",`
+ box-sizing: border-box;
+ padding-bottom: 6px;
+ margin-bottom: 6px;
+ `)]),W("image-card-type",`
+ position: relative;
+ width: 96px;
+ height: 96px;
+ border: var(--n-item-border-image-card);
+ border-radius: var(--n-border-radius);
+ padding: 0;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ transition: border-color .3s var(--n-bezier), background-color .3s var(--n-bezier);
+ border-radius: var(--n-border-radius);
+ overflow: hidden;
+ `,[k("progress",`
+ position: absolute;
+ left: 8px;
+ bottom: 8px;
+ right: 8px;
+ width: unset;
+ `),k("upload-file-info",`
+ padding: 0;
+ width: 100%;
+ height: 100%;
+ `,[B("thumbnail",`
+ width: 100%;
+ height: 100%;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ font-size: 36px;
+ `,[H("img",`
+ width: 100%;
+ `)])]),H("&::before",`
+ position: absolute;
+ z-index: 1;
+ left: 0;
+ right: 0;
+ top: 0;
+ bottom: 0;
+ border-radius: inherit;
+ opacity: 0;
+ transition: opacity .2s var(--n-bezier);
+ content: "";
+ `),H("&:hover",[H("&::before","opacity: 1;"),k("upload-file-info",[B("thumbnail","opacity: .12;")])])]),W("error-status",[H("&:hover",`
+ background-color: var(--n-item-color-hover-error);
+ `),k("upload-file-info",[B("name","color: var(--n-item-text-color-error);"),B("thumbnail","color: var(--n-item-text-color-error);")]),W("image-card-type",`
+ border: var(--n-item-border-image-card-error);
+ `)]),W("with-url",`
+ cursor: pointer;
+ `,[k("upload-file-info",[B("name",`
+ color: var(--n-item-text-color-success);
+ text-decoration-color: var(--n-item-text-color-success);
+ `,[H("a",`
+ text-decoration: underline;
+ `)])])]),k("upload-file-info",`
+ position: relative;
+ padding-top: 6px;
+ padding-bottom: 6px;
+ display: flex;
+ flex-wrap: nowrap;
+ `,[B("thumbnail",`
+ font-size: 18px;
+ opacity: 1;
+ transition: opacity .2s var(--n-bezier);
+ color: var(--n-item-icon-color);
+ `,[k("base-icon",`
+ margin-right: 2px;
+ vertical-align: middle;
+ transition: color .3s var(--n-bezier);
+ `)]),B("action",`
+ padding-top: inherit;
+ padding-bottom: inherit;
+ position: absolute;
+ right: 0;
+ top: 0;
+ bottom: 0;
+ width: 80px;
+ display: flex;
+ align-items: center;
+ transition: opacity .2s var(--n-bezier);
+ justify-content: flex-end;
+ opacity: 0;
+ `,[k("button",[H("&:not(:last-child)",{marginRight:"4px"}),k("base-icon",[H("svg",[fo()])])]),W("image-type",`
+ position: relative;
+ max-width: 80px;
+ width: auto;
+ `),W("image-card-type",`
+ z-index: 2;
+ position: absolute;
+ width: 100%;
+ height: 100%;
+ left: 0;
+ right: 0;
+ bottom: 0;
+ top: 0;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ `)]),B("name",`
+ color: var(--n-item-text-color);
+ flex: 1;
+ display: flex;
+ justify-content: center;
+ text-overflow: ellipsis;
+ overflow: hidden;
+ flex-direction: column;
+ text-decoration-color: #0000;
+ font-size: var(--n-font-size);
+ transition:
+ color .3s var(--n-bezier),
+ text-decoration-color .3s var(--n-bezier);
+ `,[H("a",`
+ color: inherit;
+ text-decoration: underline;
+ `)])])])]),k("upload-file-input",`
+ display: block;
+ width: 0;
+ height: 0;
+ opacity: 0;
+ `)]);var Zn=globalThis&&globalThis.__awaiter||function(e,t,r,n){function o(i){return i instanceof r?i:new r(function(l){l(i)})}return new(r||(r=Promise))(function(i,l){function s(c){try{d(n.next(c))}catch(f){l(f)}}function a(c){try{d(n.throw(c))}catch(f){l(f)}}function d(c){c.done?i(c.value):o(c.value).then(s,a)}d((n=n.apply(e,t||[])).next())})};function ep(e,t,r){const{doChange:n,xhrMap:o}=e;let i=0;function l(a){var d;let c=Object.assign({},t,{status:"error",percentage:i});o.delete(t.id),c=Rt(((d=e.onError)===null||d===void 0?void 0:d.call(e,{file:c,event:a}))||c),n(c,a)}function s(a){var d;if(e.isErrorState){if(e.isErrorState(r)){l(a);return}}else if(r.status<200||r.status>=300){l(a);return}let c=Object.assign({},t,{status:"finished",percentage:i});o.delete(t.id),c=Rt(((d=e.onFinish)===null||d===void 0?void 0:d.call(e,{file:c,event:a}))||c),n(c,a)}return{handleXHRLoad:s,handleXHRError:l,handleXHRAbort(a){const d=Object.assign({},t,{status:"removed",file:null,percentage:i});o.delete(t.id),n(d,a)},handleXHRProgress(a){const d=Object.assign({},t,{status:"uploading"});if(a.lengthComputable){const c=Math.ceil(a.loaded/a.total*100);d.percentage=c,i=c}n(d,a)}}}function tp(e){const{inst:t,file:r,data:n,headers:o,withCredentials:i,action:l,customRequest:s}=e,{doChange:a}=e.inst;let d=0;s({file:r,data:n,headers:o,withCredentials:i,action:l,onProgress(c){const f=Object.assign({},r,{status:"uploading"}),h=c.percent;f.percentage=h,d=h,a(f)},onFinish(){var c;let f=Object.assign({},r,{status:"finished",percentage:d});f=Rt(((c=t.onFinish)===null||c===void 0?void 0:c.call(t,{file:f}))||f),a(f)},onError(){var c;let f=Object.assign({},r,{status:"error",percentage:d});f=Rt(((c=t.onError)===null||c===void 0?void 0:c.call(t,{file:f}))||f),a(f)}})}function rp(e,t,r){const n=ep(e,t,r);r.onabort=n.handleXHRAbort,r.onerror=n.handleXHRError,r.onload=n.handleXHRLoad,r.upload&&(r.upload.onprogress=n.handleXHRProgress)}function xi(e,t){return typeof e=="function"?e({file:t}):e||{}}function np(e,t,r){const n=xi(t,r);n&&Object.keys(n).forEach(o=>{e.setRequestHeader(o,n[o])})}function op(e,t,r){const n=xi(t,r);n&&Object.keys(n).forEach(o=>{e.append(o,n[o])})}function ip(e,t,r,{method:n,action:o,withCredentials:i,responseType:l,headers:s,data:a}){const d=new XMLHttpRequest;d.responseType=l,e.xhrMap.set(r.id,d),d.withCredentials=i;const c=new FormData;if(op(c,a,r),c.append(t,r.file),rp(e,r,d),o!==void 0){d.open(n.toUpperCase(),o),np(d,s,r),d.send(c);const f=Object.assign({},r,{status:"uploading"});e.doChange(f)}}const ap=Object.assign(Object.assign({},re.props),{name:{type:String,default:"file"},accept:String,action:String,customRequest:Function,directory:Boolean,directoryDnd:{type:Boolean,default:void 0},method:{type:String,default:"POST"},multiple:Boolean,showFileList:{type:Boolean,default:!0},data:[Object,Function],headers:[Object,Function],withCredentials:Boolean,responseType:{type:String,default:""},disabled:{type:Boolean,default:void 0},onChange:Function,onRemove:Function,onFinish:Function,onError:Function,onBeforeUpload:Function,isErrorState:Function,onDownload:Function,defaultUpload:{type:Boolean,default:!0},fileList:Array,"onUpdate:fileList":[Function,Array],onUpdateFileList:[Function,Array],fileListStyle:[String,Object],defaultFileList:{type:Array,default:()=>[]},showCancelButton:{type:Boolean,default:!0},showRemoveButton:{type:Boolean,default:!0},showDownloadButton:Boolean,showRetryButton:{type:Boolean,default:!0},showPreviewButton:{type:Boolean,default:!0},listType:{type:String,default:"text"},onPreview:Function,shouldUseThumbnailUrl:{type:Function,default:e=>Hh?yi(e):!1},createThumbnailUrl:Function,abstract:Boolean,max:Number,showTrigger:{type:Boolean,default:!0},imageGroupProps:Object,inputProps:Object,triggerStyle:[String,Object],renderIcon:Object}),lp=K({name:"Upload",props:ap,setup(e){e.abstract&&e.listType==="image-card"&&bt("upload","when the list-type is image-card, abstract is not supported.");const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=Ie(e),n=re("Upload","-upload",Qh,mh,e,t),o=vo(e),i=D(()=>{const{max:P}=e;return P!==void 0?p.value.length>=P:!1}),l=L(e.defaultFileList),s=Z(e,"fileList"),a=L(null),d={value:!1},c=L(!1),f=new Map,h=tr(s,l),p=D(()=>h.value.map(Rt));function y(){var P;(P=a.value)===null||P===void 0||P.click()}function S(P){const T=P.target;z(T.files?Array.from(T.files).map(N=>({file:N,entry:null,source:"input"})):null,P),T.value=""}function m(P){const{"onUpdate:fileList":T,onUpdateFileList:N}=e;T&&ue(T,P),N&&ue(N,P),l.value=P}const x=D(()=>e.multiple||e.directory);function z(P,T){if(!P||P.length===0)return;const{onBeforeUpload:N}=e;P=x.value?P:[P[0]];const{max:E,accept:_}=e;P=P.filter(({file:$,source:F})=>F==="dnd"&&(_!=null&&_.trim())?Vh($.name,$.type,_):!0),E&&(P=P.slice(0,E-p.value.length));const C=Pr();Promise.all(P.map(({file:$,entry:F})=>Zn(this,void 0,void 0,function*(){var A;const q={id:Pr(),batchId:C,name:$.name,status:"pending",percentage:0,file:$,url:null,type:$.type,thumbnailUrl:null,fullPath:(A=F==null?void 0:F.fullPath)!==null&&A!==void 0?A:`/${$.webkitRelativePath||$.name}`};return!N||(yield N({file:q,fileList:p.value}))!==!1?q:null}))).then($=>Zn(this,void 0,void 0,function*(){let F=Promise.resolve();return $.forEach(A=>{F=F.then(qt).then(()=>{A&&w(A,T,{append:!0})})}),yield F})).then(()=>{e.defaultUpload&&O()})}function O(P){const{method:T,action:N,withCredentials:E,headers:_,data:C,name:$}=e,F=P!==void 0?p.value.filter(q=>q.id===P):p.value,A=P!==void 0;F.forEach(q=>{const{status:Q}=q;(Q==="pending"||Q==="error"&&A)&&(e.customRequest?tp({inst:{doChange:w,xhrMap:f,onFinish:e.onFinish,onError:e.onError},file:q,action:N,withCredentials:E,headers:_,data:C,customRequest:e.customRequest}):ip({doChange:w,xhrMap:f,onFinish:e.onFinish,onError:e.onError,isErrorState:e.isErrorState},$,q,{method:T,action:N,withCredentials:E,responseType:e.responseType,headers:_,data:C}))})}const w=(P,T,N={append:!1,remove:!1})=>{const{append:E,remove:_}=N,C=Array.from(p.value),$=C.findIndex(F=>F.id===P.id);if(E||_||~$){E?C.push(P):_?C.splice($,1):C.splice($,1,P);const{onChange:F}=e;F&&F({file:P,fileList:C,event:T}),m(C)}};function g(P){var T;if(P.thumbnailUrl)return P.thumbnailUrl;const{createThumbnailUrl:N}=e;return N?(T=N(P.file,P))!==null&&T!==void 0?T:P.url||"":P.url?P.url:P.file?Nh(P.file):""}const M=D(()=>{const{common:{cubicBezierEaseInOut:P},self:{draggerColor:T,draggerBorder:N,draggerBorderHover:E,itemColorHover:_,itemColorHoverError:C,itemTextColorError:$,itemTextColorSuccess:F,itemTextColor:A,itemIconColor:q,itemDisabledOpacity:Q,lineHeight:fe,borderRadius:ye,fontSize:ge,itemBorderImageCardError:Re,itemBorderImageCard:oe}}=n.value;return{"--n-bezier":P,"--n-border-radius":ye,"--n-dragger-border":N,"--n-dragger-border-hover":E,"--n-dragger-color":T,"--n-font-size":ge,"--n-item-color-hover":_,"--n-item-color-hover-error":C,"--n-item-disabled-opacity":Q,"--n-item-icon-color":q,"--n-item-text-color":A,"--n-item-text-color-error":$,"--n-item-text-color-success":F,"--n-line-height":fe,"--n-item-border-image-card-error":Re,"--n-item-border-image-card":oe}}),b=r?Ae("upload",void 0,M,e):void 0;Pe(yt,{mergedClsPrefixRef:t,mergedThemeRef:n,showCancelButtonRef:Z(e,"showCancelButton"),showDownloadButtonRef:Z(e,"showDownloadButton"),showRemoveButtonRef:Z(e,"showRemoveButton"),showRetryButtonRef:Z(e,"showRetryButton"),onRemoveRef:Z(e,"onRemove"),onDownloadRef:Z(e,"onDownload"),mergedFileListRef:p,triggerStyleRef:Z(e,"triggerStyle"),shouldUseThumbnailUrlRef:Z(e,"shouldUseThumbnailUrl"),renderIconRef:Z(e,"renderIcon"),xhrMap:f,submit:O,doChange:w,showPreviewButtonRef:Z(e,"showPreviewButton"),onPreviewRef:Z(e,"onPreview"),getFileThumbnailUrlResolver:g,listTypeRef:Z(e,"listType"),dragOverRef:c,openOpenFileDialog:y,draggerInsideRef:d,handleFileAddition:z,mergedDisabledRef:o.mergedDisabledRef,maxReachedRef:i,fileListStyleRef:Z(e,"fileListStyle"),abstractRef:Z(e,"abstract"),acceptRef:Z(e,"accept"),cssVarsRef:r?void 0:M,themeClassRef:b==null?void 0:b.themeClass,onRender:b==null?void 0:b.onRender,showTriggerRef:Z(e,"showTrigger"),imageGroupPropsRef:Z(e,"imageGroupProps"),mergedDirectoryDndRef:D(()=>{var P;return(P=e.directoryDnd)!==null&&P!==void 0?P:e.directory})});const R={clear:()=>{l.value=[]},submit:O,openOpenFileDialog:y};return Object.assign({mergedClsPrefix:t,draggerInsideRef:d,inputElRef:a,mergedTheme:n,dragOver:c,mergedMultiple:x,cssVars:r?void 0:M,themeClass:b==null?void 0:b.themeClass,onRender:b==null?void 0:b.onRender,handleFileInputChange:S},R)},render(){var e,t;const{draggerInsideRef:r,mergedClsPrefix:n,$slots:o,directory:i,onRender:l}=this;if(o.default&&!this.abstract){const a=o.default()[0];!((e=a==null?void 0:a.type)===null||e===void 0)&&e[gi]&&(r.value=!0)}const s=u("input",Object.assign({},this.inputProps,{ref:"inputElRef",type:"file",class:`${n}-upload-file-input`,accept:this.accept,multiple:this.mergedMultiple,onChange:this.handleFileInputChange,webkitdirectory:i||void 0,directory:i||void 0}));return this.abstract?u(je,null,(t=o.default)===null||t===void 0?void 0:t.call(o),u(hl,{to:"body"},s)):(l==null||l(),u("div",{class:[`${n}-upload`,r.value&&`${n}-upload--dragger-inside`,this.dragOver&&`${n}-upload--drag-over`,this.themeClass],style:this.cssVars},s,this.showTrigger&&this.listType!=="image-card"&&u(wi,null,o),this.showFileList&&u(Jh,null,o)))}}),Jn="/web/assets/setting-c6ca7b14.svg";function sp(e){const t=document.cookie.match("(^|;) ?"+e+"=([^;]*)(;|$)");return t?t[2]:null}function dp(e,t,r=0,n="/",o=""){let i=e+"="+t+";path="+n;if(o&&(i+=";domain="+o),r>0){const l=new Date;l.setTime(l.getTime()+r*60*1e3),i+=";expires="+l.toUTCString()}document.cookie=i}const ut={get:sp,set:dp},Lt=pl("prompt-store",()=>{const e=L([{type:1,name:"ChatGPT 中文调教指南 - 简体",url:"https://raw.githubusercontent.com/PlexPt/awesome-chatgpt-prompts-zh/main/prompts-zh.json",refer:"https://github.com/PlexPt/awesome-chatgpt-prompts-zh"},{type:1,name:"ChatGPT 中文调教指南 - 繁体",url:"https://raw.githubusercontent.com/PlexPt/awesome-chatgpt-prompts-zh/main/prompts-zh-TW.json",refer:"https://github.com/PlexPt/awesome-chatgpt-prompts-zh"},{type:1,name:"Awesome ChatGPT Prompts",url:"https://raw.githubusercontent.com/f/awesome-chatgpt-prompts/main/prompts.csv",refer:"https://github.com/f/awesome-chatgpt-prompts"},{type:2,name:"",url:"",refer:""}]),t=L(!1),r=L(!1),n=L([]),o=L(""),i=L(0),l=L({isShow:!1,newPrompt:{act:"",prompt:""}}),s=D(()=>{var d;return o.value?(d=n.value)==null?void 0:d.filter(c=>c.act.includes(o.value)||c.prompt.includes(o.value)):n.value});function a(d){if(d instanceof Array&&d.every(c=>c.act&&c.prompt)){if(n.value.length===0)return n.value.push(...d),{result:!0,data:{successCount:d.length}};const c=d.filter(f=>{var h;return(h=n.value)==null?void 0:h.every(p=>f.act!==p.act&&f.prompt!==p.prompt)});return n.value.push(...c),{result:!0,data:{successCount:c.length}}}else return{result:!1,msg:"提示词格式有误"}}return{promptDownloadConfig:e,isShowPromptSotre:t,isShowChatPrompt:r,promptList:n,keyword:o,searchPromptList:s,selectedPromptIndex:i,optPromptConfig:l,addPrompt:a}},{persist:{key:"prompt-store",storage:localStorage,paths:["promptList"]}}),up=["href"],cp={key:1},fp=K({__name:"ChatNavItem",props:{navConfig:{}},setup(e){return(t,r)=>t.navConfig.url?(ve(),Ne("a",{key:0,href:t.navConfig.url,target:"_blank",rel:"noopener noreferrer"},it(t.navConfig.label),9,up)):(ve(),Ne("div",cp,it(t.navConfig.label),1))}}),hp=()=>/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),pp=e=>new Promise((t,r)=>setTimeout(t,e)),vp=vt("div",{class:"text-3xl py-2"},"设置用户",-1),gp=vt("div",{class:"text-xl py-2"},"将删除包括 Cookie 等的所有缓存?",-1),Cr="_U",mp="BingAI_Rand_IP",bp=K({__name:"ChatNav",setup(e){const t=L(!1),r=L(!1),n=L(""),o=tn(),i=Lt(),{isShowPromptSotre:l}=Bt(i),s=L(!1),a={github:"github",setToken:"setToken",compose:"compose",promptStore:"promptStore",reset:"reset",version:"version"},d=[{key:a.github,label:"开源地址",url:"https://github.com/adams549659584/go-proxy-bingai"},{key:a.version,label:"版本信息"},{key:a.promptStore,label:"提示词库"},{key:a.setToken,label:"设置用户"},{key:a.compose,label:"撰写文章",url:"/web/compose.html"},{key:a.reset,label:"一键重置"}],c=S=>u(fp,{navConfig:S}),f=S=>{switch(S){case a.version:o.success("当前版本号为:1.6.0");break;case a.promptStore:l.value=!0;break;case a.setToken:n.value=ut.get(Cr)||"",r.value=!0;break;case a.reset:s.value=!0;break}},h=async()=>{s.value=!1,ut.set(Cr,"",-1),ut.set(mp,"",-1),await y(),o.success("清理完成"),window.location.reload()},p=()=>{if(!n.value){o.warning("请先填入用户 Cookie");return}ut.set(Cr,n.value,7*24*60,"/"),r.value=!1},y=async()=>{localStorage.clear(),sessionStorage.clear();const S=await caches.keys();for(const m of S)await caches.open(m).then(async x=>{const z=await x.keys();return await Promise.all(z.map(O=>(console.log("del cache : ",O.url),x.delete(O))))})};return(S,m)=>(ve(),Ne(je,null,[U(hp)()?(ve(),He(U(qn),{key:0,class:"select-none",show:t.value,options:d,"render-label":c,onSelect:f},{default:J(()=>[Y(U(Mr),{class:"fixed top-6 right-4 cursor-pointer",src:U(Jn),alt:"设置菜单","preview-disabled":!0,onClick:m[0]||(m[0]=x=>t.value=!t.value)},null,8,["src"])]),_:1},8,["show"])):(ve(),He(U(qn),{key:1,class:"select-none",trigger:"hover",options:d,"render-label":c,onSelect:f},{default:J(()=>[Y(U(Mr),{class:"fixed top-6 right-6 cursor-pointer",src:U(Jn),alt:"设置菜单","preview-disabled":!0},null,8,["src"])]),_:1})),Y(U(zt),{show:r.value,"onUpdate:show":m[3]||(m[3]=x=>r.value=x),preset:"dialog","show-icon":!1},{header:J(()=>[vp]),action:J(()=>[Y(U(be),{size:"large",onClick:m[2]||(m[2]=x=>r.value=!1)},{default:J(()=>[he("取消")]),_:1}),Y(U(be),{size:"large",type:"info",onClick:p},{default:J(()=>[he("保存")]),_:1})]),default:J(()=>[Y(U(kt),{size:"large",value:n.value,"onUpdate:value":m[1]||(m[1]=x=>n.value=x),type:"text",placeholder:"用户 Cookie ,仅需要 _U 的值"},null,8,["value"])]),_:1},8,["show"]),Y(U(zt),{show:s.value,"onUpdate:show":m[5]||(m[5]=x=>s.value=x),preset:"dialog","show-icon":!1},{header:J(()=>[gp]),action:J(()=>[Y(U(be),{size:"large",onClick:m[4]||(m[4]=x=>s.value=!1)},{default:J(()=>[he("取消")]),_:1}),Y(U(be),{size:"large",type:"warning",onClick:h},{default:J(()=>[he("确定")]),_:1})]),_:1},8,["show"])],64))}});function Qn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Vt(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);rthis.range.start)){var n=Math.max(r-this.param.buffer,0);this.checkRange(n,this.getEndByStart(n))}}},{key:"handleBehind",value:function(){var r=this.getScrollOvers();rr&&(l=o-1)}return n>0?--n:0}},{key:"getIndexOffset",value:function(r){if(!r)return 0;for(var n=0,o=0,i=0;i=F&&n("tobottom")},x=function(C){var $=p(),F=y(),A=S();$<0||$+F>A+1||!A||(f.handleScroll($),m($,F,A,C))},z=function(){var C=t.dataKey,$=t.dataSources,F=$===void 0?[]:$;return F.map(function(A){return typeof C=="function"?C(A):A[C]})},O=function(C){a.value=C},w=function(){f=new zp({slotHeaderSize:0,slotFooterSize:0,keeps:t.keeps,estimateSize:t.estimateSize,buffer:Math.round(t.keeps/3),uniqueIds:z()},O),a.value=f.getRange()},g=function(C){if(C>=t.dataSources.length-1)T();else{var $=f.getOffset(C);M($)}},M=function(C){t.pageMode?(document.body[s]=C,document.documentElement[s]=C):d.value&&(d.value[s]=C)},b=function(){for(var C=[],$=a.value,F=$.start,A=$.end,q=t.dataSources,Q=t.dataKey,fe=t.itemClass,ye=t.itemTag,ge=t.itemStyle,Re=t.extraProps,oe=t.dataComponent,ke=t.itemScopedSlots,we=F;we<=A;we++){var ee=q[we];if(ee){var Le=typeof Q=="function"?Q(ee):ee[Q];typeof Le=="string"||typeof Le=="number"?C.push(Y(Op,{index:we,tag:ye,event:It.ITEM,horizontal:l,uniqueKey:Le,source:ee,extraProps:Re,component:oe,scopedSlots:ke,style:ge,class:"".concat(fe).concat(t.itemClassAdd?" "+t.itemClassAdd(we):""),onItemResize:R},null)):console.warn("Cannot get the data-key '".concat(Q,"' from data-sources."))}else console.warn("Cannot get the index '".concat(we,"' from data-sources."))}return C},R=function(C,$){f.saveSize(C,$),n("resized",C,$)},P=function(C,$,F){C===ct.HEADER?f.updateParam("slotHeaderSize",$):C===ct.FOOTER&&f.updateParam("slotFooterSize",$),F&&f.handleSlotSizeChange()},T=function _(){if(c.value){var C=c.value[l?"offsetLeft":"offsetTop"];M(C),setTimeout(function(){p()+y(){o.value=o.value.filter(d=>d.act!==a.act&&d.prompt!==a.prompt),r.success("删除提示词成功")},s=a=>{i.value.isShow=!0,i.value.type="edit",i.value.title="编辑提示词",i.value.tmpPrompt=a,i.value.newPrompt={...a}};return(a,d)=>(ve(),He(U(vi),{class:"hover:bg-gray-100 cursor-pointer p-5"},{description:J(()=>[Y(U(ri),{class:"max-w-[150px] xl:max-w-[680px] overflow-ellipsis overflow-hidden",type:"info"},{default:J(()=>[he(it(t.source.act),1)]),_:1}),vt("div",_p,[Y(U(be),{secondary:"",type:"info",size:"small",onClick:d[0]||(d[0]=c=>s(t.source))},{default:J(()=>[he("编辑")]),_:1}),Y(U(be),{secondary:"",class:"ml-2",type:"error",size:"small",onClick:d[1]||(d[1]=c=>l(t.source))},{default:J(()=>[he("删除")]),_:1})])]),default:J(()=>[Y(U(ii),{tooltip:!1,"line-clamp":2},{default:J(()=>[he(it(t.source.prompt),1)]),_:1})]),_:1}))}}),Bp={class:"flex justify-start flex-wrap gap-2 px-5 pb-2"},Lp=["href"],Ep={class:"flex justify-center gap-5"},Ap=["href"],Dp=K({__name:"ChatPromptStore",setup(e){const t=tn(),r=Lt(),{promptDownloadConfig:n,isShowPromptSotre:o,promptList:i,keyword:l,searchPromptList:s,optPromptConfig:a}=Bt(r),d=L(!1),c=L(!1),f=L(!1),h=()=>{a.value.isShow=!0,a.value.type="add",a.value.title="添加提示词",a.value.newPrompt={act:"",prompt:""}},p=()=>{const{type:O,tmpPrompt:w,newPrompt:g}=a.value;if(!g.act)return t.error("提示词标题不能为空");if(!g.prompt)return t.error("提示词描述不能为空");if(O==="add")i.value=[g,...i.value],t.success("添加提示词成功");else if(O==="edit"){if(g.act===(w==null?void 0:w.act)&&g.prompt===(w==null?void 0:w.prompt)){t.warning("提示词未变更"),a.value.isShow=!1;return}const M=i.value.findIndex(b=>b.act===(w==null?void 0:w.act)&&b.prompt===(w==null?void 0:w.prompt));M>-1?(i.value[M]=g,t.success("编辑提示词成功")):t.error("编辑提示词出错")}a.value.isShow=!1},y=O=>new Promise((w,g)=>{const M=new FileReader;M.onload=function(b){var R;w((R=b.target)==null?void 0:R.result)},M.onerror=g,M.readAsText(O)}),S=async O=>{var w;if(O.file.file){c.value=!0;const g=await y(O.file.file),M=JSON.parse(g),b=r.addPrompt(M);b.result?(t.info(`上传文件含 ${M.length} 条数据`),t.success(`成功导入 ${(w=b.data)==null?void 0:w.successCount} 条有效数据`)):t.error(b.msg||"提示词格式有误"),c.value=!1}else t.error("上传文件有误")},m=()=>{if(i.value.length===0)return t.error("暂无可导出的提示词数据");f.value=!0;const O=JSON.stringify(i.value),w=new Blob([O],{type:"application/json"}),g=URL.createObjectURL(w),M=document.createElement("a");M.href=g,M.download="BingAIPrompts.json",M.click(),URL.revokeObjectURL(g),t.success("导出提示词库成功"),f.value=!1},x=()=>{i.value=[],t.success("清空提示词库成功")},z=async O=>{var M;if(!O.url)return t.error("请先输入下载链接");O.isDownloading=!0;let w;if(O.url.endsWith(".json"))w=await fetch(O.url).then(b=>b.json());else if(O.url.endsWith(".csv")){const b=await fetch(O.url).then(R=>R.text());console.log(b),w=b.split(`
+`).filter(R=>R).map(R=>{var T;const P=R.split('","');return{act:P[0].slice(1),prompt:(T=P[1])==null?void 0:T.slice(1)}}),w.shift()}else return O.isDownloading=!1,t.error("暂不支持下载此后缀的提示词");O.isDownloading=!1;const g=r.addPrompt(w);g.result?(t.info(`下载文件含 ${w.length} 条数据`),t.success(`成功导入 ${(M=g.data)==null?void 0:M.successCount} 条有效数据`)):t.error(g.msg||"提示词格式有误")};return(O,w)=>(ve(),Ne(je,null,[Y(U(zt),{class:"w-11/12 xl:w-[900px]",show:U(o),"onUpdate:show":w[2]||(w[2]=g=>yn(o)?o.value=g:null),preset:"card",title:"提示词库"},{default:J(()=>[vt("div",Bp,[Y(U(kt),{class:"basis-full xl:basis-0 xl:min-w-[300px]",placeholder:"搜索提示词",value:U(l),"onUpdate:value":w[0]||(w[0]=g=>yn(l)?l.value=g:null),clearable:!0},null,8,["value"]),Y(U(be),{secondary:"",type:"info",onClick:w[1]||(w[1]=g=>d.value=!0)},{default:J(()=>[he("下载")]),_:1}),Y(U(be),{secondary:"",type:"info",onClick:h},{default:J(()=>[he("添加")]),_:1}),Y(U(lp),{class:"w-auto",accept:".json","default-upload":!1,"show-file-list":!1,onChange:S},{default:J(()=>[Y(U(be),{secondary:"",type:"success",loading:c.value},{default:J(()=>[he("导入")]),_:1},8,["loading"])]),_:1}),Y(U(be),{secondary:"",type:"success",onClick:m,loading:f.value},{default:J(()=>[he("导出")]),_:1},8,["loading"]),Y(U(be),{secondary:"",type:"error",onClick:x},{default:J(()=>[he("清空")]),_:1})]),U(s).length>0?(ve(),He(U(Si),{key:0,class:"h-[40vh] xl:h-[60vh] overflow-y-auto","data-key":"prompt","data-sources":U(s),"data-component":Mp,keeps:10},null,8,["data-sources"])):(ve(),He(U(Jo),{key:1,class:"h-[60vh] flex justify-center items-center",description:"无数据"}))]),_:1},8,["show"]),Y(U(zt),{class:"w-11/12 xl:w-[600px]",show:U(a).isShow,"onUpdate:show":w[5]||(w[5]=g=>U(a).isShow=g),preset:"card",title:U(a).title},{default:J(()=>[Y(U(oh),{vertical:""},{default:J(()=>[he(" 标题 "),Y(U(kt),{placeholder:"请输入标题",value:U(a).newPrompt.act,"onUpdate:value":w[3]||(w[3]=g=>U(a).newPrompt.act=g)},null,8,["value"]),he(" 描述 "),Y(U(kt),{placeholder:"请输入描述",type:"textarea",value:U(a).newPrompt.prompt,"onUpdate:value":w[4]||(w[4]=g=>U(a).newPrompt.prompt=g)},null,8,["value"]),Y(U(be),{block:"",secondary:"",type:"info",onClick:p},{default:J(()=>[he("保存")]),_:1})]),_:1})]),_:1},8,["show","title"]),Y(U(zt),{class:"w-11/12 xl:w-[600px]",show:d.value,"onUpdate:show":w[6]||(w[6]=g=>d.value=g),preset:"card",title:"下载提示词"},{default:J(()=>[Y(U(zh),{class:"overflow-y-auto rounded-lg",hoverable:"",clickable:""},{default:J(()=>[(ve(!0),Ne(je,null,ml(U(n),(g,M)=>(ve(),He(U(Th),{key:M},{suffix:J(()=>[vt("div",Ep,[g.type===1?(ve(),Ne("a",{key:0,class:"no-underline",href:g.refer,target:"_blank",rel:"noopener noreferrer"},[Y(U(be),{secondary:""},{default:J(()=>[he("来源")]),_:1})],8,Ap)):kr("",!0),Y(U(be),{secondary:"",type:"info",onClick:b=>z(g),loading:g.isDownloading},{default:J(()=>[he("下载")]),_:2},1032,["onClick","loading"])])]),default:J(()=>[g.type===1?(ve(),Ne("a",{key:0,class:"no-underline text-blue-500",href:g.url,target:"_blank",rel:"noopener noreferrer"},it(g.name),9,Lp)):g.type===2?(ve(),He(U(kt),{key:1,placeholder:"请输入下载链接,支持 json 及 csv ",value:g.url,"onUpdate:value":b=>g.url=b},null,8,["value","onUpdate:value"])):kr("",!0)]),_:2},1024))),128))]),_:1})]),_:1},8,["show"])],64))}}),Fp=`/* 移除顶部背景遮挡 */\r
+.scroller>.top {\r
+ display: none !important;\r
+}\r
+\r
+/* 移除顶部边距 */\r
+.scroller>.scroller-positioner>.content {\r
+ padding-top: 0 !important;\r
+}\r
+\r
+/* 聊天记录 */\r
+.scroller .side-panel {\r
+ position: fixed;\r
+ right: 10px;\r
+}`,Np=K({__name:"ChatPromptItem",props:{index:{},source:{}},setup(e){const t=e,r=Lt(),{selectedPromptIndex:n,isShowChatPrompt:o,keyword:i}=Bt(r),l=s=>{s&&(i.value="",CIB.vm.actionBar.inputText=s.prompt,CIB.vm.actionBar.input.focus(),o.value=!1)};return(s,a)=>(ve(),He(U(vi),{class:bl(["hover:bg-gray-100 cursor-pointer px-5 h-[130px] flex justify-start items-center",{"bg-gray-100":s.index===U(n)}]),onClick:a[0]||(a[0]=d=>l(t.source))},{description:J(()=>[Y(U(ri),{type:"info"},{default:J(()=>[he(it(t.source.act),1)]),_:1})]),default:J(()=>[Y(U(ii),{tooltip:!1,"line-clamp":2},{default:J(()=>[he(it(t.source.prompt),1)]),_:1})]),_:1},8,["class"]))}}),Hp={key:0,class:"box-border fixed bottom-[110px] w-full flex justify-center px-[14px] md:px-[170px] xl:px-[220px] z-999"},jp=vt("div",{class:"w-0 md:w-[60px]"},null,-1),Wp=10,Up="_U",Vp="BingAI_Rand_IP",Kp=K({__name:"ChatPrompt",setup(e){const t=Lt(),{isShowPromptSotre:r,isShowChatPrompt:n,keyword:o,promptList:i,searchPromptList:l,selectedPromptIndex:s}=Bt(t),a=L(),d=L(!1);Xe(async()=>{await c(),SydneyFullScreenConv.initWithWaitlistUpdate({cookLoc:{}},10),f(),y(),S()});const c=async()=>new Promise((b,R)=>{sj_evt.bind("sydFSC.init",b,!0),sj_evt.fire("showSydFSC")}),f=()=>{ut.get(Up)||p()},h=()=>{const b=new Date;return b.setMinutes(b.getMinutes()+CIB.config.sydney.expiryInMinutes),b},p=async(b=0)=>{var P;if(b>=Wp){console.log(`已重试 ${b} 次,自动创建停止`);return}const R=await fetch("/turing/conversation/create",{credentials:"include"}).then(T=>T.json()).catch(T=>"error");((P=R==null?void 0:R.result)==null?void 0:P.value)==="Success"?(console.log("成功创建会话ID : ",R.conversationId),CIB.manager.conversation.updateId(R.conversationId,h(),R.clientId,R.conversationSignature)):(await pp(300),b+=1,console.log(`开始第 ${b} 次重试创建会话ID`),ut.set(Vp,"",-1),p(b))},y=()=>{var T,N,E,_,C,$,F,A;location.hostname==="localhost"&&(CIB.config.sydney.hostnamesToBypassSecureConnection=CIB.config.sydney.hostnamesToBypassSecureConnection.filter(q=>q!==location.hostname));const b=document.querySelector("cib-serp");b==null||b.setAttribute("alignment","center");const R=(T=b==null?void 0:b.shadowRoot)==null?void 0:T.querySelector("cib-conversation");(C=(_=(E=(N=R==null?void 0:R.shadowRoot)==null?void 0:N.querySelector("cib-welcome-container"))==null?void 0:E.shadowRoot)==null?void 0:_.querySelector(".learn-tog-item"))==null||C.remove(),(F=($=b==null?void 0:b.shadowRoot)==null?void 0:$.querySelector("cib-serp-feedback"))==null||F.remove();const P=document.createElement("style");P.innerText=Fp,(A=R.shadowRoot)==null||A.append(P)},S=()=>{var P,T;const b=(T=(P=document.querySelector("#b_sydConvCont > cib-serp"))==null?void 0:P.shadowRoot)==null?void 0:T.querySelector("#cib-action-bar-main"),R=b.handleInputTextKey;b.handleInputTextKey=function(N){if(!(N.key==="Enter"&&n.value))return R.apply(this,[N])},CIB.vm.actionBar.input.addEventListener("compositionstart",m),CIB.vm.actionBar.input.addEventListener("compositionend",x),CIB.vm.actionBar.input.addEventListener("change",z),CIB.vm.actionBar.input.addEventListener("input",z),CIB.vm.actionBar.input.addEventListener("keydown",g),CIB.vm.actionBar.input.addEventListener("focus",O),CIB.vm.actionBar.input.addEventListener("blur",w)},m=b=>{d.value=!0},x=b=>{d.value=!1,z(b)},z=b=>{var R;d.value||(b instanceof InputEvent||b instanceof CompositionEvent)&&b.target instanceof HTMLTextAreaElement&&((R=b.target.value)!=null&&R.startsWith("/")?(n.value=!0,o.value=b.target.value.slice(1),s.value=0):(o.value="",n.value=!1))},O=b=>{},w=b=>{setTimeout(()=>{n.value=!1},200)},g=b=>{var P,T;switch(b.key){case"ArrowUp":{b.preventDefault();const N=((P=a.value)==null?void 0:P.getOffset())||0;s.value=Math.round(N/130),s.value>0&&(s.value--,a.value&&a.value.scrollToIndex(s.value))}break;case"ArrowDown":{b.preventDefault();const N=((T=a.value)==null?void 0:T.getOffset())||0;s.value=Math.round(N/130),s.value{b&&(o.value="",CIB.vm.actionBar.inputText=b.prompt,n.value=!1)};return(b,R)=>(ve(),Ne("main",null,[U(n)?(ve(),Ne("div",Hp,[jp,U(i).length>0?(ve(),He(U(Si),{key:0,ref_key:"scrollbarRef",ref:a,class:"bg-white w-full max-w-[1060px] max-h-[390px] rounded-xl overflow-y-auto","data-key":"prompt","data-sources":U(l),"data-component":Np,keeps:10},null,8,["data-sources"])):(ve(),He(U(Jo),{key:1,class:"bg-white w-full max-w-[1060px] max-h-[390px] rounded-xl py-6",description:"暂无提示词数据"},{extra:J(()=>[Y(U(be),{secondary:"",type:"info",onClick:R[0]||(R[0]=P=>r.value=!0)},{default:J(()=>[he("去添加")]),_:1})]),_:1}))])):kr("",!0)]))}}),Gp=K({__name:"index",setup(e){return(t,r)=>(ve(),Ne("main",null,[Y(bp),Y(Dp),Y(Kp)]))}});export{Gp as default};
diff --git a/web/assets/index-2128d00b.css b/web/assets/index-2128d00b.css
new file mode 100644
index 0000000000..3741562841
--- /dev/null
+++ b/web/assets/index-2128d00b.css
@@ -0,0 +1 @@
+*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.fixed{position:fixed}.bottom-\[110px\]{bottom:110px}.right-4{right:1rem}.right-6{right:1.5rem}.top-6{top:1.5rem}.float-right{float:right}.ml-2{margin-left:.5rem}.box-border{box-sizing:border-box}.block{display:block}.flex{display:flex}.hidden{display:none}.h-\[130px\]{height:130px}.h-\[40vh\]{height:40vh}.h-\[60vh\]{height:60vh}.max-h-\[390px\]{max-height:390px}.w-0{width:0px}.w-11\/12{width:91.666667%}.w-auto{width:auto}.w-full{width:100%}.max-w-\[1060px\]{max-width:1060px}.max-w-\[150px\]{max-width:150px}.basis-full{flex-basis:100%}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-center{justify-content:center}.gap-2{gap:.5rem}.gap-5{gap:1.25rem}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-ellipsis{text-overflow:ellipsis}.rounded-lg{border-radius:.5rem}.rounded-xl{border-radius:.75rem}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.p-5{padding:1.25rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-\[14px\]{padding-left:14px;padding-right:14px}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.pb-2{padding-bottom:.5rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}.no-underline{text-decoration-line:none}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.hover\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}@media (min-width: 768px){.md\:w-\[60px\]{width:60px}.md\:px-\[170px\]{padding-left:170px;padding-right:170px}}@media (min-width: 1280px){.xl\:h-\[60vh\]{height:60vh}.xl\:w-\[600px\]{width:600px}.xl\:w-\[900px\]{width:900px}.xl\:min-w-\[300px\]{min-width:300px}.xl\:max-w-\[680px\]{max-width:680px}.xl\:basis-0{flex-basis:0px}.xl\:px-\[220px\]{padding-left:220px;padding-right:220px}}
diff --git a/web/assets/index-e6d14a26.js b/web/assets/index-e6d14a26.js
new file mode 100644
index 0000000000..1424e5d8e5
--- /dev/null
+++ b/web/assets/index-e6d14a26.js
@@ -0,0 +1,651 @@
+(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function Mi(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o!!n[o.toLowerCase()]:o=>!!n[o]}const Re={},Rn=[],ct=()=>{},xf=()=>!1,Cf=/^on[^a-z]/,xo=e=>Cf.test(e),Hi=e=>e.startsWith("onUpdate:"),ke=Object.assign,Fi=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},wf=Object.prototype.hasOwnProperty,ve=(e,t)=>wf.call(e,t),le=Array.isArray,Tn=e=>Co(e)==="[object Map]",Oa=e=>Co(e)==="[object Set]",ue=e=>typeof e=="function",Be=e=>typeof e=="string",Li=e=>typeof e=="symbol",_e=e=>e!==null&&typeof e=="object",za=e=>_e(e)&&ue(e.then)&&ue(e.catch),Ia=Object.prototype.toString,Co=e=>Ia.call(e),Sf=e=>Co(e).slice(8,-1),Aa=e=>Co(e)==="[object Object]",ji=e=>Be(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,no=Mi(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),wo=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},_f=/-(\w)/g,In=wo(e=>e.replace(_f,(t,n)=>n?n.toUpperCase():"")),Ef=/\B([A-Z])/g,Ln=wo(e=>e.replace(Ef,"-$1").toLowerCase()),ka=wo(e=>e.charAt(0).toUpperCase()+e.slice(1)),Do=wo(e=>e?`on${ka(e)}`:""),mr=(e,t)=>!Object.is(e,t),No=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},$f=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Pf=e=>{const t=Be(e)?Number(e):NaN;return isNaN(t)?e:t};let Ps;const ii=()=>Ps||(Ps=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Di(e){if(le(e)){const t={};for(let n=0;n{if(n){const r=n.split(Tf);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Ni(e){let t="";if(Be(e))t=e;else if(le(e))for(let n=0;nBe(e)?e:e==null?"":le(e)||_e(e)&&(e.toString===Ia||!ue(e.toString))?JSON.stringify(e,Ma,2):String(e),Ma=(e,t)=>t&&t.__v_isRef?Ma(e,t.value):Tn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o])=>(n[`${r} =>`]=o,n),{})}:Oa(t)?{[`Set(${t.size})`]:[...t.values()]}:_e(t)&&!le(t)&&!Aa(t)?String(t):t;let tt;class Ha{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=tt,!t&&tt&&(this.index=(tt.scopes||(tt.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=tt;try{return tt=this,t()}finally{tt=n}}}on(){tt=this}off(){tt=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n{const t=new Set(e);return t.w=0,t.n=0,t},ja=e=>(e.w&Vt)>0,Da=e=>(e.n&Vt)>0,Mf=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r{(u==="length"||u>=a)&&l.push(c)})}else switch(n!==void 0&&l.push(s.get(n)),t){case"add":le(e)?ji(n)&&l.push(s.get("length")):(l.push(s.get(fn)),Tn(e)&&l.push(s.get(li)));break;case"delete":le(e)||(l.push(s.get(fn)),Tn(e)&&l.push(s.get(li)));break;case"set":Tn(e)&&l.push(s.get(fn));break}if(l.length===1)l[0]&&ai(l[0]);else{const a=[];for(const c of l)c&&a.push(...c);ai(Wi(a))}}function ai(e,t){const n=le(e)?e:[...e];for(const r of n)r.computed&&Ts(r);for(const r of n)r.computed||Ts(r)}function Ts(e,t){(e!==lt||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function Ff(e,t){var n;return(n=ao.get(e))==null?void 0:n.get(t)}const Lf=Mi("__proto__,__v_isRef,__isVue"),Ua=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Li)),jf=Ki(),Df=Ki(!1,!0),Nf=Ki(!0),Os=Wf();function Wf(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=ge(this);for(let i=0,s=this.length;i{e[t]=function(...n){jn();const r=ge(this)[t].apply(this,n);return Dn(),r}}),e}function Uf(e){const t=ge(this);return et(t,"has",e),t.hasOwnProperty(e)}function Ki(e=!1,t=!1){return function(r,o,i){if(o==="__v_isReactive")return!e;if(o==="__v_isReadonly")return e;if(o==="__v_isShallow")return t;if(o==="__v_raw"&&i===(e?t?sd:Xa:t?Ga:qa).get(r))return r;const s=le(r);if(!e){if(s&&ve(Os,o))return Reflect.get(Os,o,i);if(o==="hasOwnProperty")return Uf}const l=Reflect.get(r,o,i);return(Li(o)?Ua.has(o):Lf(o))||(e||et(r,"get",o),t)?l:Oe(l)?s&&ji(o)?l:l.value:_e(l)?e?Ot(l):Xt(l):l}}const Kf=Ka(),Vf=Ka(!0);function Ka(e=!1){return function(n,r,o,i){let s=n[r];if(An(s)&&Oe(s)&&!Oe(o))return!1;if(!e&&(!co(o)&&!An(o)&&(s=ge(s),o=ge(o)),!le(n)&&Oe(s)&&!Oe(o)))return s.value=o,!0;const l=le(n)&&ji(r)?Number(r)e,So=e=>Reflect.getPrototypeOf(e);function Lr(e,t,n=!1,r=!1){e=e.__v_raw;const o=ge(e),i=ge(t);n||(t!==i&&et(o,"get",t),et(o,"get",i));const{has:s}=So(o),l=r?Vi:n?Xi:br;if(s.call(o,t))return l(e.get(t));if(s.call(o,i))return l(e.get(i));e!==o&&e.get(t)}function jr(e,t=!1){const n=this.__v_raw,r=ge(n),o=ge(e);return t||(e!==o&&et(r,"has",e),et(r,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function Dr(e,t=!1){return e=e.__v_raw,!t&&et(ge(e),"iterate",fn),Reflect.get(e,"size",e)}function zs(e){e=ge(e);const t=ge(this);return So(t).has.call(t,e)||(t.add(e),Tt(t,"add",e,e)),this}function Is(e,t){t=ge(t);const n=ge(this),{has:r,get:o}=So(n);let i=r.call(n,e);i||(e=ge(e),i=r.call(n,e));const s=o.call(n,e);return n.set(e,t),i?mr(t,s)&&Tt(n,"set",e,t):Tt(n,"add",e,t),this}function As(e){const t=ge(this),{has:n,get:r}=So(t);let o=n.call(t,e);o||(e=ge(e),o=n.call(t,e)),r&&r.call(t,e);const i=t.delete(e);return o&&Tt(t,"delete",e,void 0),i}function ks(){const e=ge(this),t=e.size!==0,n=e.clear();return t&&Tt(e,"clear",void 0,void 0),n}function Nr(e,t){return function(r,o){const i=this,s=i.__v_raw,l=ge(s),a=t?Vi:e?Xi:br;return!e&&et(l,"iterate",fn),s.forEach((c,u)=>r.call(o,a(c),a(u),i))}}function Wr(e,t,n){return function(...r){const o=this.__v_raw,i=ge(o),s=Tn(i),l=e==="entries"||e===Symbol.iterator&&s,a=e==="keys"&&s,c=o[e](...r),u=n?Vi:t?Xi:br;return!t&&et(i,"iterate",a?li:fn),{next(){const{value:f,done:d}=c.next();return d?{value:f,done:d}:{value:l?[u(f[0]),u(f[1])]:u(f),done:d}},[Symbol.iterator](){return this}}}}function Mt(e){return function(...t){return e==="delete"?!1:this}}function Jf(){const e={get(i){return Lr(this,i)},get size(){return Dr(this)},has:jr,add:zs,set:Is,delete:As,clear:ks,forEach:Nr(!1,!1)},t={get(i){return Lr(this,i,!1,!0)},get size(){return Dr(this)},has:jr,add:zs,set:Is,delete:As,clear:ks,forEach:Nr(!1,!0)},n={get(i){return Lr(this,i,!0)},get size(){return Dr(this,!0)},has(i){return jr.call(this,i,!0)},add:Mt("add"),set:Mt("set"),delete:Mt("delete"),clear:Mt("clear"),forEach:Nr(!0,!1)},r={get(i){return Lr(this,i,!0,!0)},get size(){return Dr(this,!0)},has(i){return jr.call(this,i,!0)},add:Mt("add"),set:Mt("set"),delete:Mt("delete"),clear:Mt("clear"),forEach:Nr(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Wr(i,!1,!1),n[i]=Wr(i,!0,!1),t[i]=Wr(i,!1,!0),r[i]=Wr(i,!0,!0)}),[e,n,t,r]}const[Qf,ed,td,nd]=Jf();function qi(e,t){const n=t?e?nd:td:e?ed:Qf;return(r,o,i)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?r:Reflect.get(ve(n,o)&&o in r?n:r,o,i)}const rd={get:qi(!1,!1)},od={get:qi(!1,!0)},id={get:qi(!0,!1)},qa=new WeakMap,Ga=new WeakMap,Xa=new WeakMap,sd=new WeakMap;function ld(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ad(e){return e.__v_skip||!Object.isExtensible(e)?0:ld(Sf(e))}function Xt(e){return An(e)?e:Gi(e,!1,Va,rd,qa)}function cd(e){return Gi(e,!1,Zf,od,Ga)}function Ot(e){return Gi(e,!0,Yf,id,Xa)}function Gi(e,t,n,r,o){if(!_e(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=o.get(e);if(i)return i;const s=ad(e);if(s===0)return e;const l=new Proxy(e,s===2?r:n);return o.set(e,l),l}function Rt(e){return An(e)?Rt(e.__v_raw):!!(e&&e.__v_isReactive)}function An(e){return!!(e&&e.__v_isReadonly)}function co(e){return!!(e&&e.__v_isShallow)}function Ya(e){return Rt(e)||An(e)}function ge(e){const t=e&&e.__v_raw;return t?ge(t):e}function qt(e){return lo(e,"__v_skip",!0),e}const br=e=>_e(e)?Xt(e):e,Xi=e=>_e(e)?Ot(e):e;function Za(e){Ut&<&&(e=ge(e),Wa(e.dep||(e.dep=Wi())))}function Ja(e,t){e=ge(e);const n=e.dep;n&&ai(n)}function Oe(e){return!!(e&&e.__v_isRef===!0)}function se(e){return Qa(e,!1)}function ud(e){return Qa(e,!0)}function Qa(e,t){return Oe(e)?e:new fd(e,t)}class fd{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:ge(t),this._value=n?t:br(t)}get value(){return Za(this),this._value}set value(t){const n=this.__v_isShallow||co(t)||An(t);t=n?t:ge(t),mr(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:br(t),Ja(this))}}function Ct(e){return Oe(e)?e.value:e}const dd={get:(e,t,n)=>Ct(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return Oe(o)&&!Oe(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function ec(e){return Rt(e)?e:new Proxy(e,dd)}function hd(e){const t=le(e)?new Array(e.length):{};for(const n in e)t[n]=tc(e,n);return t}class pd{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Ff(ge(this._object),this._key)}}class gd{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function zt(e,t,n){return Oe(e)?e:ue(e)?new gd(e):_e(e)&&arguments.length>1?tc(e,t,n):se(e)}function tc(e,t,n){const r=e[t];return Oe(r)?r:new pd(e,t,n)}class vd{constructor(t,n,r,o){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new Ui(t,()=>{this._dirty||(this._dirty=!0,Ja(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=r}get value(){const t=ge(this);return Za(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function md(e,t,n=!1){let r,o;const i=ue(e);return i?(r=e,o=ct):(r=e.get,o=e.set),new vd(r,o,i||!o,n)}function Kt(e,t,n,r){let o;try{o=r?e(...r):e()}catch(i){_o(i,t,n)}return o}function st(e,t,n,r){if(ue(e)){const i=Kt(e,t,n,r);return i&&za(i)&&i.catch(s=>{_o(s,t,n)}),i}const o=[];for(let i=0;i>>1;xr(Ne[r])xt&&Ne.splice(t,1)}function Cd(e){le(e)?On.push(...e):(!Pt||!Pt.includes(e,e.allowRecurse?nn+1:nn))&&On.push(e),rc()}function Bs(e,t=yr?xt+1:0){for(;txr(n)-xr(r)),nn=0;nne.id==null?1/0:e.id,wd=(e,t)=>{const n=xr(e)-xr(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function ic(e){ci=!1,yr=!0,Ne.sort(wd);const t=ct;try{for(xt=0;xtBe(v)?v.trim():v)),f&&(o=n.map($f))}let l,a=r[l=Do(t)]||r[l=Do(In(t))];!a&&i&&(a=r[l=Do(Ln(t))]),a&&st(a,e,6,o);const c=r[l+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,st(c,e,6,o)}}function sc(e,t,n=!1){const r=t.emitsCache,o=r.get(e);if(o!==void 0)return o;const i=e.emits;let s={},l=!1;if(!ue(e)){const a=c=>{const u=sc(c,t,!0);u&&(l=!0,ke(s,u))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!i&&!l?(_e(e)&&r.set(e,null),null):(le(i)?i.forEach(a=>s[a]=null):ke(s,i),_e(e)&&r.set(e,s),s)}function Eo(e,t){return!e||!xo(t)?!1:(t=t.slice(2).replace(/Once$/,""),ve(e,t[0].toLowerCase()+t.slice(1))||ve(e,Ln(t))||ve(e,t))}let We=null,lc=null;function uo(e){const t=We;return We=e,lc=e&&e.type.__scopeId||null,t}function ro(e,t=We,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&qs(-1);const i=uo(t);let s;try{s=e(...o)}finally{uo(i),r._d&&qs(1)}return s};return r._n=!0,r._c=!0,r._d=!0,r}function Wo(e){const{type:t,vnode:n,proxy:r,withProxy:o,props:i,propsOptions:[s],slots:l,attrs:a,emit:c,render:u,renderCache:f,data:d,setupState:v,ctx:p,inheritAttrs:w}=e;let y,b;const S=uo(e);try{if(n.shapeFlag&4){const _=o||r;y=bt(u.call(_,_,f,i,v,d,p)),b=a}else{const _=t;y=bt(_.length>1?_(i,{attrs:a,slots:l,emit:c}):_(i,null)),b=t.props?a:_d(a)}}catch(_){ur.length=0,_o(_,e,1),y=Fe(Ge)}let F=y;if(b&&w!==!1){const _=Object.keys(b),{shapeFlag:P}=F;_.length&&P&7&&(s&&_.some(Hi)&&(b=Ed(b,s)),F=It(F,b))}return n.dirs&&(F=It(F),F.dirs=F.dirs?F.dirs.concat(n.dirs):n.dirs),n.transition&&(F.transition=n.transition),y=F,uo(S),y}const _d=e=>{let t;for(const n in e)(n==="class"||n==="style"||xo(n))&&((t||(t={}))[n]=e[n]);return t},Ed=(e,t)=>{const n={};for(const r in e)(!Hi(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function $d(e,t,n){const{props:r,children:o,component:i}=e,{props:s,children:l,patchFlag:a}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return r?Ms(r,s,c):!!s;if(a&8){const u=t.dynamicProps;for(let f=0;fe.__isSuspense;function Td(e,t){t&&t.pendingBranch?le(e)?t.effects.push(...e):t.effects.push(e):Cd(e)}function Ji(e,t){return Qi(e,null,t)}const Ur={};function ut(e,t,n){return Qi(e,t,n)}function Qi(e,t,{immediate:n,deep:r,flush:o,onTrack:i,onTrigger:s}=Re){var l;const a=La()===((l=Le)==null?void 0:l.scope)?Le:null;let c,u=!1,f=!1;if(Oe(e)?(c=()=>e.value,u=co(e)):Rt(e)?(c=()=>e,r=!0):le(e)?(f=!0,u=e.some(_=>Rt(_)||co(_)),c=()=>e.map(_=>{if(Oe(_))return _.value;if(Rt(_))return sn(_);if(ue(_))return Kt(_,a,2)})):ue(e)?t?c=()=>Kt(e,a,2):c=()=>{if(!(a&&a.isUnmounted))return d&&d(),st(e,a,3,[v])}:c=ct,t&&r){const _=c;c=()=>sn(_())}let d,v=_=>{d=S.onStop=()=>{Kt(_,a,4)}},p;if($r)if(v=ct,t?n&&st(t,a,3,[c(),f?[]:void 0,v]):c(),o==="sync"){const _=bh();p=_.__watcherHandles||(_.__watcherHandles=[])}else return ct;let w=f?new Array(e.length).fill(Ur):Ur;const y=()=>{if(S.active)if(t){const _=S.run();(r||u||(f?_.some((P,z)=>mr(P,w[z])):mr(_,w)))&&(d&&d(),st(t,a,3,[_,w===Ur?void 0:f&&w[0]===Ur?[]:w,v]),w=_)}else S.run()};y.allowRecurse=!!t;let b;o==="sync"?b=y:o==="post"?b=()=>Qe(y,a&&a.suspense):(y.pre=!0,a&&(y.id=a.uid),b=()=>Zi(y));const S=new Ui(c,b);t?n?y():w=S.run():o==="post"?Qe(S.run.bind(S),a&&a.suspense):S.run();const F=()=>{S.stop(),a&&a.scope&&Fi(a.scope.effects,S)};return p&&p.push(F),F}function Od(e,t,n){const r=this.proxy,o=Be(e)?e.includes(".")?ac(r,e):()=>r[e]:e.bind(r,r);let i;ue(t)?i=t:(i=t.handler,n=t);const s=Le;Bn(this);const l=Qi(o,i.bind(r),n);return s?Bn(s):dn(),l}function ac(e,t){const n=t.split(".");return()=>{let r=e;for(let o=0;o{sn(n,t)});else if(Aa(e))for(const n in e)sn(e[n],t);return e}function ui(e,t){const n=We;if(n===null)return e;const r=Oo(n)||n.proxy,o=e.dirs||(e.dirs=[]);for(let i=0;i{e.isMounted=!0}),dt(()=>{e.isUnmounting=!0}),e}const ot=[Function,Array],uc={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:ot,onEnter:ot,onAfterEnter:ot,onEnterCancelled:ot,onBeforeLeave:ot,onLeave:ot,onAfterLeave:ot,onLeaveCancelled:ot,onBeforeAppear:ot,onAppear:ot,onAfterAppear:ot,onAppearCancelled:ot},zd={name:"BaseTransition",props:uc,setup(e,{slots:t}){const n=Ar(),r=cc();let o;return()=>{const i=t.default&&es(t.default(),!0);if(!i||!i.length)return;let s=i[0];if(i.length>1){for(const w of i)if(w.type!==Ge){s=w;break}}const l=ge(e),{mode:a}=l;if(r.isLeaving)return Uo(s);const c=Hs(s);if(!c)return Uo(s);const u=Cr(c,l,r,n);wr(c,u);const f=n.subTree,d=f&&Hs(f);let v=!1;const{getTransitionKey:p}=c.type;if(p){const w=p();o===void 0?o=w:w!==o&&(o=w,v=!0)}if(d&&d.type!==Ge&&(!rn(c,d)||v)){const w=Cr(d,l,r,n);if(wr(d,w),a==="out-in")return r.isLeaving=!0,w.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},Uo(s);a==="in-out"&&c.type!==Ge&&(w.delayLeave=(y,b,S)=>{const F=fc(r,d);F[String(d.key)]=d,y._leaveCb=()=>{b(),y._leaveCb=void 0,delete u.delayedLeave},u.delayedLeave=S})}return s}}},Id=zd;function fc(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Cr(e,t,n,r){const{appear:o,mode:i,persisted:s=!1,onBeforeEnter:l,onEnter:a,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:f,onLeave:d,onAfterLeave:v,onLeaveCancelled:p,onBeforeAppear:w,onAppear:y,onAfterAppear:b,onAppearCancelled:S}=t,F=String(e.key),_=fc(n,e),P=(C,A)=>{C&&st(C,r,9,A)},z=(C,A)=>{const j=A[1];P(C,A),le(C)?C.every(W=>W.length<=1)&&j():C.length<=1&&j()},m={mode:i,persisted:s,beforeEnter(C){let A=l;if(!n.isMounted)if(o)A=w||l;else return;C._leaveCb&&C._leaveCb(!0);const j=_[F];j&&rn(e,j)&&j.el._leaveCb&&j.el._leaveCb(),P(A,[C])},enter(C){let A=a,j=c,W=u;if(!n.isMounted)if(o)A=y||a,j=b||c,W=S||u;else return;let k=!1;const Q=C._enterCb=te=>{k||(k=!0,te?P(W,[C]):P(j,[C]),m.delayedLeave&&m.delayedLeave(),C._enterCb=void 0)};A?z(A,[C,Q]):Q()},leave(C,A){const j=String(e.key);if(C._enterCb&&C._enterCb(!0),n.isUnmounting)return A();P(f,[C]);let W=!1;const k=C._leaveCb=Q=>{W||(W=!0,A(),Q?P(p,[C]):P(v,[C]),C._leaveCb=void 0,_[j]===e&&delete _[j])};_[j]=e,d?z(d,[C,k]):k()},clone(C){return Cr(C,t,n,r)}};return m}function Uo(e){if($o(e))return e=It(e),e.children=null,e}function Hs(e){return $o(e)?e.children?e.children[0]:void 0:e}function wr(e,t){e.shapeFlag&6&&e.component?wr(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function es(e,t=!1,n){let r=[],o=0;for(let i=0;i1)for(let i=0;ike({name:e.name},t,{setup:e}))():e}const lr=e=>!!e.type.__asyncLoader,$o=e=>e.type.__isKeepAlive;function dc(e,t){pc(e,"a",t)}function hc(e,t){pc(e,"da",t)}function pc(e,t,n=Le){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Po(t,r,n),n){let o=n.parent;for(;o&&o.parent;)$o(o.parent.vnode)&&Ad(r,t,n,o),o=o.parent}}function Ad(e,t,n,r){const o=Po(t,e,r,!0);vc(()=>{Fi(r[t],o)},n)}function Po(e,t,n=Le,r=!1){if(n){const o=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...s)=>{if(n.isUnmounted)return;jn(),Bn(n);const l=st(t,n,e,s);return dn(),Dn(),l});return r?o.unshift(i):o.push(i),i}}const At=e=>(t,n=Le)=>(!$r||e==="sp")&&Po(e,(...r)=>t(...r),n),bn=At("bm"),Yt=At("m"),kd=At("bu"),gc=At("u"),dt=At("bum"),vc=At("um"),Bd=At("sp"),Md=At("rtg"),Hd=At("rtc");function Fd(e,t=Le){Po("ec",e,t)}const Ld=Symbol.for("v-ndc");function Dx(e,t,n,r){let o;const i=n&&n[r];if(le(e)||Be(e)){o=new Array(e.length);for(let s=0,l=e.length;st(s,l,void 0,i&&i[l]));else{const s=Object.keys(e);o=new Array(s.length);for(let l=0,a=s.length;l_r(t)?!(t.type===Ge||t.type===Me&&!mc(t.children)):!0)?e:null}const fi=e=>e?Oc(e)?Oo(e)||e.proxy:fi(e.parent):null,ar=ke(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>fi(e.parent),$root:e=>fi(e.root),$emit:e=>e.emit,$options:e=>ts(e),$forceUpdate:e=>e.f||(e.f=()=>Zi(e.update)),$nextTick:e=>e.n||(e.n=kn.bind(e.proxy)),$watch:e=>Od.bind(e)}),Ko=(e,t)=>e!==Re&&!e.__isScriptSetup&&ve(e,t),Dd={get({_:e},t){const{ctx:n,setupState:r,data:o,props:i,accessCache:s,type:l,appContext:a}=e;let c;if(t[0]!=="$"){const v=s[t];if(v!==void 0)switch(v){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return i[t]}else{if(Ko(r,t))return s[t]=1,r[t];if(o!==Re&&ve(o,t))return s[t]=2,o[t];if((c=e.propsOptions[0])&&ve(c,t))return s[t]=3,i[t];if(n!==Re&&ve(n,t))return s[t]=4,n[t];di&&(s[t]=0)}}const u=ar[t];let f,d;if(u)return t==="$attrs"&&et(e,"get",t),u(e);if((f=l.__cssModules)&&(f=f[t]))return f;if(n!==Re&&ve(n,t))return s[t]=4,n[t];if(d=a.config.globalProperties,ve(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:o,ctx:i}=e;return Ko(o,t)?(o[t]=n,!0):r!==Re&&ve(r,t)?(r[t]=n,!0):ve(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,propsOptions:i}},s){let l;return!!n[s]||e!==Re&&ve(e,s)||Ko(t,s)||(l=i[0])&&ve(l,s)||ve(r,s)||ve(ar,s)||ve(o.config.globalProperties,s)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ve(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Fs(e){return le(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let di=!0;function Nd(e){const t=ts(e),n=e.proxy,r=e.ctx;di=!1,t.beforeCreate&&Ls(t.beforeCreate,e,"bc");const{data:o,computed:i,methods:s,watch:l,provide:a,inject:c,created:u,beforeMount:f,mounted:d,beforeUpdate:v,updated:p,activated:w,deactivated:y,beforeDestroy:b,beforeUnmount:S,destroyed:F,unmounted:_,render:P,renderTracked:z,renderTriggered:m,errorCaptured:C,serverPrefetch:A,expose:j,inheritAttrs:W,components:k,directives:Q,filters:te}=t;if(c&&Wd(c,r,null),s)for(const K in s){const re=s[K];ue(re)&&(r[K]=re.bind(n))}if(o){const K=o.call(n,n);_e(K)&&(e.data=Xt(K))}if(di=!0,i)for(const K in i){const re=i[K],Ce=ue(re)?re.bind(n,n):ue(re.get)?re.get.bind(n,n):ct,we=!ue(re)&&ue(re.set)?re.set.bind(n):ct,Se=V({get:Ce,set:we});Object.defineProperty(r,K,{enumerable:!0,configurable:!0,get:()=>Se.value,set:Te=>Se.value=Te})}if(l)for(const K in l)bc(l[K],r,n,K);if(a){const K=ue(a)?a.call(n):a;Reflect.ownKeys(K).forEach(re=>{qe(re,K[re])})}u&&Ls(u,e,"c");function oe(K,re){le(re)?re.forEach(Ce=>K(Ce.bind(n))):re&&K(re.bind(n))}if(oe(bn,f),oe(Yt,d),oe(kd,v),oe(gc,p),oe(dc,w),oe(hc,y),oe(Fd,C),oe(Hd,z),oe(Md,m),oe(dt,S),oe(vc,_),oe(Bd,A),le(j))if(j.length){const K=e.exposed||(e.exposed={});j.forEach(re=>{Object.defineProperty(K,re,{get:()=>n[re],set:Ce=>n[re]=Ce})})}else e.exposed||(e.exposed={});P&&e.render===ct&&(e.render=P),W!=null&&(e.inheritAttrs=W),k&&(e.components=k),Q&&(e.directives=Q)}function Wd(e,t,n=ct){le(e)&&(e=hi(e));for(const r in e){const o=e[r];let i;_e(o)?"default"in o?i=ze(o.from||r,o.default,!0):i=ze(o.from||r):i=ze(o),Oe(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:s=>i.value=s}):t[r]=i}}function Ls(e,t,n){st(le(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function bc(e,t,n,r){const o=r.includes(".")?ac(n,r):()=>n[r];if(Be(e)){const i=t[e];ue(i)&&ut(o,i)}else if(ue(e))ut(o,e.bind(n));else if(_e(e))if(le(e))e.forEach(i=>bc(i,t,n,r));else{const i=ue(e.handler)?e.handler.bind(n):t[e.handler];ue(i)&&ut(o,i,e)}}function ts(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:s}}=e.appContext,l=i.get(t);let a;return l?a=l:!o.length&&!n&&!r?a=t:(a={},o.length&&o.forEach(c=>fo(a,c,s,!0)),fo(a,t,s)),_e(t)&&i.set(t,a),a}function fo(e,t,n,r=!1){const{mixins:o,extends:i}=t;i&&fo(e,i,n,!0),o&&o.forEach(s=>fo(e,s,n,!0));for(const s in t)if(!(r&&s==="expose")){const l=Ud[s]||n&&n[s];e[s]=l?l(e[s],t[s]):t[s]}return e}const Ud={data:js,props:Ds,emits:Ds,methods:or,computed:or,beforeCreate:Ke,created:Ke,beforeMount:Ke,mounted:Ke,beforeUpdate:Ke,updated:Ke,beforeDestroy:Ke,beforeUnmount:Ke,destroyed:Ke,unmounted:Ke,activated:Ke,deactivated:Ke,errorCaptured:Ke,serverPrefetch:Ke,components:or,directives:or,watch:Vd,provide:js,inject:Kd};function js(e,t){return t?e?function(){return ke(ue(e)?e.call(this,this):e,ue(t)?t.call(this,this):t)}:t:e}function Kd(e,t){return or(hi(e),hi(t))}function hi(e){if(le(e)){const t={};for(let n=0;n1)return n&&ue(t)?t.call(r&&r.proxy):t}}function Xd(e,t,n,r=!1){const o={},i={};lo(i,To,1),e.propsDefaults=Object.create(null),xc(e,t,o,i);for(const s in e.propsOptions[0])s in o||(o[s]=void 0);n?e.props=r?o:cd(o):e.type.props?e.props=o:e.props=i,e.attrs=i}function Yd(e,t,n,r){const{props:o,attrs:i,vnode:{patchFlag:s}}=e,l=ge(o),[a]=e.propsOptions;let c=!1;if((r||s>0)&&!(s&16)){if(s&8){const u=e.vnode.dynamicProps;for(let f=0;f{a=!0;const[d,v]=Cc(f,t,!0);ke(s,d),v&&l.push(...v)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!i&&!a)return _e(e)&&r.set(e,Rn),Rn;if(le(i))for(let u=0;u-1,v[1]=w<0||p-1||ve(v,"default"))&&l.push(f)}}}const c=[s,l];return _e(e)&&r.set(e,c),c}function Ns(e){return e[0]!=="$"}function Ws(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Us(e,t){return Ws(e)===Ws(t)}function Ks(e,t){return le(t)?t.findIndex(n=>Us(n,e)):ue(t)&&Us(t,e)?0:-1}const wc=e=>e[0]==="_"||e==="$stable",ns=e=>le(e)?e.map(bt):[bt(e)],Zd=(e,t,n)=>{if(t._n)return t;const r=ro((...o)=>ns(t(...o)),n);return r._c=!1,r},Sc=(e,t,n)=>{const r=e._ctx;for(const o in e){if(wc(o))continue;const i=e[o];if(ue(i))t[o]=Zd(o,i,r);else if(i!=null){const s=ns(i);t[o]=()=>s}}},_c=(e,t)=>{const n=ns(t);e.slots.default=()=>n},Jd=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=ge(t),lo(t,"_",n)):Sc(t,e.slots={})}else e.slots={},t&&_c(e,t);lo(e.slots,To,1)},Qd=(e,t,n)=>{const{vnode:r,slots:o}=e;let i=!0,s=Re;if(r.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:(ke(o,t),!n&&l===1&&delete o._):(i=!t.$stable,Sc(t,o)),s=t}else t&&(_c(e,t),s={default:1});if(i)for(const l in o)!wc(l)&&!(l in s)&&delete o[l]};function gi(e,t,n,r,o=!1){if(le(e)){e.forEach((d,v)=>gi(d,t&&(le(t)?t[v]:t),n,r,o));return}if(lr(r)&&!o)return;const i=r.shapeFlag&4?Oo(r.component)||r.component.proxy:r.el,s=o?null:i,{i:l,r:a}=e,c=t&&t.r,u=l.refs===Re?l.refs={}:l.refs,f=l.setupState;if(c!=null&&c!==a&&(Be(c)?(u[c]=null,ve(f,c)&&(f[c]=null)):Oe(c)&&(c.value=null)),ue(a))Kt(a,l,12,[s,u]);else{const d=Be(a),v=Oe(a);if(d||v){const p=()=>{if(e.f){const w=d?ve(f,a)?f[a]:u[a]:a.value;o?le(w)&&Fi(w,i):le(w)?w.includes(i)||w.push(i):d?(u[a]=[i],ve(f,a)&&(f[a]=u[a])):(a.value=[i],e.k&&(u[e.k]=a.value))}else d?(u[a]=s,ve(f,a)&&(f[a]=s)):v&&(a.value=s,e.k&&(u[e.k]=s))};s?(p.id=-1,Qe(p,n)):p()}}}const Qe=Td;function eh(e){return th(e)}function th(e,t){const n=ii();n.__VUE__=!0;const{insert:r,remove:o,patchProp:i,createElement:s,createText:l,createComment:a,setText:c,setElementText:u,parentNode:f,nextSibling:d,setScopeId:v=ct,insertStaticContent:p}=e,w=(h,g,x,$=null,O=null,B=null,N=!1,L=null,M=!!g.dynamicChildren)=>{if(h===g)return;h&&!rn(h,g)&&($=R(h),Te(h,O,B,!0),h=null),g.patchFlag===-2&&(M=!1,g.dynamicChildren=null);const{type:T,ref:Z,shapeFlag:q}=g;switch(T){case Ro:y(h,g,x,$);break;case Ge:b(h,g,x,$);break;case Vo:h==null&&S(g,x,$,N);break;case Me:k(h,g,x,$,O,B,N,L,M);break;default:q&1?P(h,g,x,$,O,B,N,L,M):q&6?Q(h,g,x,$,O,B,N,L,M):(q&64||q&128)&&T.process(h,g,x,$,O,B,N,L,M,I)}Z!=null&&O&&gi(Z,h&&h.ref,B,g||h,!g)},y=(h,g,x,$)=>{if(h==null)r(g.el=l(g.children),x,$);else{const O=g.el=h.el;g.children!==h.children&&c(O,g.children)}},b=(h,g,x,$)=>{h==null?r(g.el=a(g.children||""),x,$):g.el=h.el},S=(h,g,x,$)=>{[h.el,h.anchor]=p(h.children,g,x,$,h.el,h.anchor)},F=({el:h,anchor:g},x,$)=>{let O;for(;h&&h!==g;)O=d(h),r(h,x,$),h=O;r(g,x,$)},_=({el:h,anchor:g})=>{let x;for(;h&&h!==g;)x=d(h),o(h),h=x;o(g)},P=(h,g,x,$,O,B,N,L,M)=>{N=N||g.type==="svg",h==null?z(g,x,$,O,B,N,L,M):A(h,g,O,B,N,L,M)},z=(h,g,x,$,O,B,N,L)=>{let M,T;const{type:Z,props:q,shapeFlag:Y,transition:ae,dirs:he}=h;if(M=h.el=s(h.type,B,q&&q.is,q),Y&8?u(M,h.children):Y&16&&C(h.children,M,null,$,O,B&&Z!=="foreignObject",N,L),he&&Zt(h,null,$,"created"),m(M,h,h.scopeId,N,$),q){for(const me in q)me!=="value"&&!no(me)&&i(M,me,null,q[me],B,h.children,$,O,fe);"value"in q&&i(M,"value",null,q.value),(T=q.onVnodeBeforeMount)&>(T,$,h)}he&&Zt(h,null,$,"beforeMount");const be=(!O||O&&!O.pendingBranch)&&ae&&!ae.persisted;be&&ae.beforeEnter(M),r(M,g,x),((T=q&&q.onVnodeMounted)||be||he)&&Qe(()=>{T&>(T,$,h),be&&ae.enter(M),he&&Zt(h,null,$,"mounted")},O)},m=(h,g,x,$,O)=>{if(x&&v(h,x),$)for(let B=0;B<$.length;B++)v(h,$[B]);if(O){let B=O.subTree;if(g===B){const N=O.vnode;m(h,N,N.scopeId,N.slotScopeIds,O.parent)}}},C=(h,g,x,$,O,B,N,L,M=0)=>{for(let T=M;T{const L=g.el=h.el;let{patchFlag:M,dynamicChildren:T,dirs:Z}=g;M|=h.patchFlag&16;const q=h.props||Re,Y=g.props||Re;let ae;x&&Jt(x,!1),(ae=Y.onVnodeBeforeUpdate)&>(ae,x,g,h),Z&&Zt(g,h,x,"beforeUpdate"),x&&Jt(x,!0);const he=O&&g.type!=="foreignObject";if(T?j(h.dynamicChildren,T,L,x,$,he,B):N||re(h,g,L,null,x,$,he,B,!1),M>0){if(M&16)W(L,g,q,Y,x,$,O);else if(M&2&&q.class!==Y.class&&i(L,"class",null,Y.class,O),M&4&&i(L,"style",q.style,Y.style,O),M&8){const be=g.dynamicProps;for(let me=0;me{ae&>(ae,x,g,h),Z&&Zt(g,h,x,"updated")},$)},j=(h,g,x,$,O,B,N)=>{for(let L=0;L{if(x!==$){if(x!==Re)for(const L in x)!no(L)&&!(L in $)&&i(h,L,x[L],null,N,g.children,O,B,fe);for(const L in $){if(no(L))continue;const M=$[L],T=x[L];M!==T&&L!=="value"&&i(h,L,T,M,N,g.children,O,B,fe)}"value"in $&&i(h,"value",x.value,$.value)}},k=(h,g,x,$,O,B,N,L,M)=>{const T=g.el=h?h.el:l(""),Z=g.anchor=h?h.anchor:l("");let{patchFlag:q,dynamicChildren:Y,slotScopeIds:ae}=g;ae&&(L=L?L.concat(ae):ae),h==null?(r(T,x,$),r(Z,x,$),C(g.children,x,Z,O,B,N,L,M)):q>0&&q&64&&Y&&h.dynamicChildren?(j(h.dynamicChildren,Y,x,O,B,N,L),(g.key!=null||O&&g===O.subTree)&&rs(h,g,!0)):re(h,g,x,Z,O,B,N,L,M)},Q=(h,g,x,$,O,B,N,L,M)=>{g.slotScopeIds=L,h==null?g.shapeFlag&512?O.ctx.activate(g,x,$,N,M):te(g,x,$,O,B,N,M):ne(h,g,M)},te=(h,g,x,$,O,B,N)=>{const L=h.component=fh(h,$,O);if($o(h)&&(L.ctx.renderer=I),dh(L),L.asyncDep){if(O&&O.registerDep(L,oe),!h.el){const M=L.subTree=Fe(Ge);b(null,M,g,x)}return}oe(L,h,g,x,O,B,N)},ne=(h,g,x)=>{const $=g.component=h.component;if($d(h,g,x))if($.asyncDep&&!$.asyncResolved){K($,g,x);return}else $.next=g,xd($.update),$.update();else g.el=h.el,$.vnode=g},oe=(h,g,x,$,O,B,N)=>{const L=()=>{if(h.isMounted){let{next:Z,bu:q,u:Y,parent:ae,vnode:he}=h,be=Z,me;Jt(h,!1),Z?(Z.el=he.el,K(h,Z,N)):Z=he,q&&No(q),(me=Z.props&&Z.props.onVnodeBeforeUpdate)&>(me,ae,Z,he),Jt(h,!0);const Ie=Wo(h),Ue=h.subTree;h.subTree=Ie,w(Ue,Ie,f(Ue.el),R(Ue),h,O,B),Z.el=Ie.el,be===null&&Pd(h,Ie.el),Y&&Qe(Y,O),(me=Z.props&&Z.props.onVnodeUpdated)&&Qe(()=>gt(me,ae,Z,he),O)}else{let Z;const{el:q,props:Y}=g,{bm:ae,m:he,parent:be}=h,me=lr(g);if(Jt(h,!1),ae&&No(ae),!me&&(Z=Y&&Y.onVnodeBeforeMount)&>(Z,be,g),Jt(h,!0),q&&pe){const Ie=()=>{h.subTree=Wo(h),pe(q,h.subTree,h,O,null)};me?g.type.__asyncLoader().then(()=>!h.isUnmounted&&Ie()):Ie()}else{const Ie=h.subTree=Wo(h);w(null,Ie,x,$,h,O,B),g.el=Ie.el}if(he&&Qe(he,O),!me&&(Z=Y&&Y.onVnodeMounted)){const Ie=g;Qe(()=>gt(Z,be,Ie),O)}(g.shapeFlag&256||be&&lr(be.vnode)&&be.vnode.shapeFlag&256)&&h.a&&Qe(h.a,O),h.isMounted=!0,g=x=$=null}},M=h.effect=new Ui(L,()=>Zi(T),h.scope),T=h.update=()=>M.run();T.id=h.uid,Jt(h,!0),T()},K=(h,g,x)=>{g.component=h;const $=h.vnode.props;h.vnode=g,h.next=null,Yd(h,g.props,$,x),Qd(h,g.children,x),jn(),Bs(),Dn()},re=(h,g,x,$,O,B,N,L,M=!1)=>{const T=h&&h.children,Z=h?h.shapeFlag:0,q=g.children,{patchFlag:Y,shapeFlag:ae}=g;if(Y>0){if(Y&128){we(T,q,x,$,O,B,N,L,M);return}else if(Y&256){Ce(T,q,x,$,O,B,N,L,M);return}}ae&8?(Z&16&&fe(T,O,B),q!==T&&u(x,q)):Z&16?ae&16?we(T,q,x,$,O,B,N,L,M):fe(T,O,B,!0):(Z&8&&u(x,""),ae&16&&C(q,x,$,O,B,N,L,M))},Ce=(h,g,x,$,O,B,N,L,M)=>{h=h||Rn,g=g||Rn;const T=h.length,Z=g.length,q=Math.min(T,Z);let Y;for(Y=0;YZ?fe(h,O,B,!0,!1,q):C(g,x,$,O,B,N,L,M,q)},we=(h,g,x,$,O,B,N,L,M)=>{let T=0;const Z=g.length;let q=h.length-1,Y=Z-1;for(;T<=q&&T<=Y;){const ae=h[T],he=g[T]=M?Nt(g[T]):bt(g[T]);if(rn(ae,he))w(ae,he,x,null,O,B,N,L,M);else break;T++}for(;T<=q&&T<=Y;){const ae=h[q],he=g[Y]=M?Nt(g[Y]):bt(g[Y]);if(rn(ae,he))w(ae,he,x,null,O,B,N,L,M);else break;q--,Y--}if(T>q){if(T<=Y){const ae=Y+1,he=aeY)for(;T<=q;)Te(h[T],O,B,!0),T++;else{const ae=T,he=T,be=new Map;for(T=he;T<=Y;T++){const Ye=g[T]=M?Nt(g[T]):bt(g[T]);Ye.key!=null&&be.set(Ye.key,T)}let me,Ie=0;const Ue=Y-he+1;let pt=!1,Fr=0;const Bt=new Array(Ue);for(T=0;T=Ue){Te(Ye,O,B,!0);continue}let H;if(Ye.key!=null)H=be.get(Ye.key);else for(me=he;me<=Y;me++)if(Bt[me-he]===0&&rn(Ye,g[me])){H=me;break}H===void 0?Te(Ye,O,B,!0):(Bt[H-he]=T+1,H>=Fr?Fr=H:pt=!0,w(Ye,g[H],x,null,O,B,N,L,M),Ie++)}const wt=pt?nh(Bt):Rn;for(me=wt.length-1,T=Ue-1;T>=0;T--){const Ye=he+T,H=g[Ye],J=Ye+1{const{el:B,type:N,transition:L,children:M,shapeFlag:T}=h;if(T&6){Se(h.component.subTree,g,x,$);return}if(T&128){h.suspense.move(g,x,$);return}if(T&64){N.move(h,g,x,I);return}if(N===Me){r(B,g,x);for(let q=0;qL.enter(B),O);else{const{leave:q,delayLeave:Y,afterLeave:ae}=L,he=()=>r(B,g,x),be=()=>{q(B,()=>{he(),ae&&ae()})};Y?Y(B,he,be):be()}else r(B,g,x)},Te=(h,g,x,$=!1,O=!1)=>{const{type:B,props:N,ref:L,children:M,dynamicChildren:T,shapeFlag:Z,patchFlag:q,dirs:Y}=h;if(L!=null&&gi(L,null,x,h,!0),Z&256){g.ctx.deactivate(h);return}const ae=Z&1&&Y,he=!lr(h);let be;if(he&&(be=N&&N.onVnodeBeforeUnmount)&>(be,g,h),Z&6)Xe(h.component,x,$);else{if(Z&128){h.suspense.unmount(x,$);return}ae&&Zt(h,null,g,"beforeUnmount"),Z&64?h.type.remove(h,g,x,O,I,$):T&&(B!==Me||q>0&&q&64)?fe(T,g,x,!1,!0):(B===Me&&q&384||!O&&Z&16)&&fe(M,g,x),$&&rt(h)}(he&&(be=N&&N.onVnodeUnmounted)||ae)&&Qe(()=>{be&>(be,g,h),ae&&Zt(h,null,g,"unmounted")},x)},rt=h=>{const{type:g,el:x,anchor:$,transition:O}=h;if(g===Me){ht(x,$);return}if(g===Vo){_(h);return}const B=()=>{o(x),O&&!O.persisted&&O.afterLeave&&O.afterLeave()};if(h.shapeFlag&1&&O&&!O.persisted){const{leave:N,delayLeave:L}=O,M=()=>N(x,B);L?L(h.el,B,M):M()}else B()},ht=(h,g)=>{let x;for(;h!==g;)x=d(h),o(h),h=x;o(g)},Xe=(h,g,x)=>{const{bum:$,scope:O,update:B,subTree:N,um:L}=h;$&&No($),O.stop(),B&&(B.active=!1,Te(N,h,g,x)),L&&Qe(L,g),Qe(()=>{h.isUnmounted=!0},g),g&&g.pendingBranch&&!g.isUnmounted&&h.asyncDep&&!h.asyncResolved&&h.suspenseId===g.pendingId&&(g.deps--,g.deps===0&&g.resolve())},fe=(h,g,x,$=!1,O=!1,B=0)=>{for(let N=B;Nh.shapeFlag&6?R(h.component.subTree):h.shapeFlag&128?h.suspense.next():d(h.anchor||h.el),U=(h,g,x)=>{h==null?g._vnode&&Te(g._vnode,null,null,!0):w(g._vnode||null,h,g,null,null,null,x),Bs(),oc(),g._vnode=h},I={p:w,um:Te,m:Se,r:rt,mt:te,mc:C,pc:re,pbc:j,n:R,o:e};let X,pe;return t&&([X,pe]=t(I)),{render:U,hydrate:X,createApp:Gd(U,X)}}function Jt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function rs(e,t,n=!1){const r=e.children,o=t.children;if(le(r)&&le(o))for(let i=0;i>1,e[n[l]]0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,s=n[i-1];i-- >0;)n[i]=s,s=t[s];return n}const rh=e=>e.__isTeleport,cr=e=>e&&(e.disabled||e.disabled===""),Vs=e=>typeof SVGElement<"u"&&e instanceof SVGElement,vi=(e,t)=>{const n=e&&e.to;return Be(n)?t?t(n):null:n},oh={__isTeleport:!0,process(e,t,n,r,o,i,s,l,a,c){const{mc:u,pc:f,pbc:d,o:{insert:v,querySelector:p,createText:w,createComment:y}}=c,b=cr(t.props);let{shapeFlag:S,children:F,dynamicChildren:_}=t;if(e==null){const P=t.el=w(""),z=t.anchor=w("");v(P,n,r),v(z,n,r);const m=t.target=vi(t.props,p),C=t.targetAnchor=w("");m&&(v(C,m),s=s||Vs(m));const A=(j,W)=>{S&16&&u(F,j,W,o,i,s,l,a)};b?A(n,z):m&&A(m,C)}else{t.el=e.el;const P=t.anchor=e.anchor,z=t.target=e.target,m=t.targetAnchor=e.targetAnchor,C=cr(e.props),A=C?n:z,j=C?P:m;if(s=s||Vs(z),_?(d(e.dynamicChildren,_,A,o,i,s,l),rs(e,t,!0)):a||f(e,t,A,j,o,i,s,l,!1),b)C||Kr(t,n,P,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const W=t.target=vi(t.props,p);W&&Kr(t,W,null,c,0)}else C&&Kr(t,z,m,c,1)}$c(t)},remove(e,t,n,r,{um:o,o:{remove:i}},s){const{shapeFlag:l,children:a,anchor:c,targetAnchor:u,target:f,props:d}=e;if(f&&i(u),(s||!cr(d))&&(i(c),l&16))for(let v=0;v0?at||Rn:null,sh(),Sr>0&&at&&at.push(e),e}function Nx(e,t,n,r,o,i){return Pc(Tc(e,t,n,r,o,i,!0))}function is(e,t,n,r,o){return Pc(Fe(e,t,n,r,o,!0))}function _r(e){return e?e.__v_isVNode===!0:!1}function rn(e,t){return e.type===t.type&&e.key===t.key}const To="__vInternal",Rc=({key:e})=>e??null,oo=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Be(e)||Oe(e)||ue(e)?{i:We,r:e,k:t,f:!!n}:e:null);function Tc(e,t=null,n=null,r=0,o=null,i=e===Me?0:1,s=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Rc(t),ref:t&&oo(t),scopeId:lc,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:We};return l?(ss(a,n),i&128&&e.normalize(a)):n&&(a.shapeFlag|=Be(n)?8:16),Sr>0&&!s&&at&&(a.patchFlag>0||i&6)&&a.patchFlag!==32&&at.push(a),a}const Fe=lh;function lh(e,t=null,n=null,r=0,o=null,i=!1){if((!e||e===Ld)&&(e=Ge),_r(e)){const l=It(e,t,!0);return n&&ss(l,n),Sr>0&&!i&&at&&(l.shapeFlag&6?at[at.indexOf(e)]=l:at.push(l)),l.patchFlag|=-2,l}if(vh(e)&&(e=e.__vccOpts),t){t=ah(t);let{class:l,style:a}=t;l&&!Be(l)&&(t.class=Ni(l)),_e(a)&&(Ya(a)&&!le(a)&&(a=ke({},a)),t.style=Di(a))}const s=Be(e)?1:Rd(e)?128:rh(e)?64:_e(e)?4:ue(e)?2:0;return Tc(e,t,n,r,o,s,i,!0)}function ah(e){return e?Ya(e)||To in e?ke({},e):e:null}function It(e,t,n=!1){const{props:r,ref:o,patchFlag:i,children:s}=e,l=t?ls(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Rc(l),ref:t&&t.ref?n&&o?le(o)?o.concat(oo(t)):[o,oo(t)]:oo(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Me?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&It(e.ssContent),ssFallback:e.ssFallback&&It(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Er(e=" ",t=0){return Fe(Ro,null,e,t)}function Wx(e="",t=!1){return t?(os(),is(Ge,null,e)):Fe(Ge,null,e)}function bt(e){return e==null||typeof e=="boolean"?Fe(Ge):le(e)?Fe(Me,null,e.slice()):typeof e=="object"?Nt(e):Fe(Ro,null,String(e))}function Nt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:It(e)}function ss(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(le(t))n=16;else if(typeof t=="object")if(r&65){const o=t.default;o&&(o._c&&(o._d=!1),ss(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!(To in t)?t._ctx=We:o===3&&We&&(We.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ue(t)?(t={default:t,_ctx:We},n=32):(t=String(t),r&64?(n=16,t=[Er(t)]):n=8);e.children=t,e.shapeFlag|=n}function ls(...e){const t={};for(let n=0;nLe||We;let as,wn,Gs="__VUE_INSTANCE_SETTERS__";(wn=ii()[Gs])||(wn=ii()[Gs]=[]),wn.push(e=>Le=e),as=e=>{wn.length>1?wn.forEach(t=>t(e)):wn[0](e)};const Bn=e=>{as(e),e.scope.on()},dn=()=>{Le&&Le.scope.off(),as(null)};function Oc(e){return e.vnode.shapeFlag&4}let $r=!1;function dh(e,t=!1){$r=t;const{props:n,children:r}=e.vnode,o=Oc(e);Xd(e,n,o,t),Jd(e,r);const i=o?hh(e,t):void 0;return $r=!1,i}function hh(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=qt(new Proxy(e.ctx,Dd));const{setup:r}=n;if(r){const o=e.setupContext=r.length>1?gh(e):null;Bn(e),jn();const i=Kt(r,e,0,[e.props,o]);if(Dn(),dn(),za(i)){if(i.then(dn,dn),t)return i.then(s=>{Xs(e,s,t)}).catch(s=>{_o(s,e,0)});e.asyncDep=i}else Xs(e,i,t)}else zc(e,t)}function Xs(e,t,n){ue(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:_e(t)&&(e.setupState=ec(t)),zc(e,n)}let Ys;function zc(e,t,n){const r=e.type;if(!e.render){if(!t&&Ys&&!r.render){const o=r.template||ts(e).template;if(o){const{isCustomElement:i,compilerOptions:s}=e.appContext.config,{delimiters:l,compilerOptions:a}=r,c=ke(ke({isCustomElement:i,delimiters:l},s),a);r.render=Ys(o,c)}}e.render=r.render||ct}Bn(e),jn(),Nd(e),Dn(),dn()}function ph(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return et(e,"get","$attrs"),t[n]}}))}function gh(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return ph(e)},slots:e.slots,emit:e.emit,expose:t}}function Oo(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(ec(qt(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ar)return ar[n](e)},has(t,n){return n in t||n in ar}}))}function vh(e){return ue(e)&&"__vccOpts"in e}const V=(e,t)=>md(e,t,$r);function E(e,t,n){const r=arguments.length;return r===2?_e(t)&&!le(t)?_r(t)?Fe(e,null,[t]):Fe(e,t):Fe(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&_r(n)&&(n=[n]),Fe(e,t,n))}const mh=Symbol.for("v-scx"),bh=()=>ze(mh),yh="3.3.2",xh="http://www.w3.org/2000/svg",on=typeof document<"u"?document:null,Zs=on&&on.createElement("template"),Ch={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t?on.createElementNS(xh,e):on.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>on.createTextNode(e),createComment:e=>on.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>on.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,i){const s=n?n.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===i||!(o=o.nextSibling)););else{Zs.innerHTML=r?``:e;const l=Zs.content;if(r){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function wh(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function Sh(e,t,n){const r=e.style,o=Be(n);if(n&&!o){if(t&&!Be(t))for(const i in t)n[i]==null&&mi(r,i,"");for(const i in n)mi(r,i,n[i])}else{const i=r.display;o?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=i)}}const Js=/\s*!important$/;function mi(e,t,n){if(le(n))n.forEach(r=>mi(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=_h(e,t);Js.test(n)?e.setProperty(Ln(r),n.replace(Js,""),"important"):e[r]=n}}const Qs=["Webkit","Moz","ms"],qo={};function _h(e,t){const n=qo[t];if(n)return n;let r=In(t);if(r!=="filter"&&r in e)return qo[t]=r;r=ka(r);for(let o=0;oGo||(zh.then(()=>Go=0),Go=Date.now());function Ah(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;st(kh(r,n.value),t,5,[r])};return n.value=e,n.attached=Ih(),n}function kh(e,t){if(le(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>o=>!o._stopped&&r&&r(o))}else return t}const nl=/^on[a-z]/,Bh=(e,t,n,r,o=!1,i,s,l,a)=>{t==="class"?wh(e,r,o):t==="style"?Sh(e,n,r):xo(t)?Hi(t)||Th(e,t,n,r,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Mh(e,t,r,o))?$h(e,t,r,i,s,l,a):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Eh(e,t,r,o))};function Mh(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&nl.test(t)&&ue(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||nl.test(t)&&Be(n)?!1:t in e}const Ht="transition",Zn="animation",Gt=(e,{slots:t})=>E(Id,Ac(e),t);Gt.displayName="Transition";const Ic={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Hh=Gt.props=ke({},uc,Ic),Qt=(e,t=[])=>{le(e)?e.forEach(n=>n(...t)):e&&e(...t)},rl=e=>e?le(e)?e.some(t=>t.length>1):e.length>1:!1;function Ac(e){const t={};for(const k in e)k in Ic||(t[k]=e[k]);if(e.css===!1)return t;const{name:n="v",type:r,duration:o,enterFromClass:i=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:a=i,appearActiveClass:c=s,appearToClass:u=l,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:v=`${n}-leave-to`}=e,p=Fh(o),w=p&&p[0],y=p&&p[1],{onBeforeEnter:b,onEnter:S,onEnterCancelled:F,onLeave:_,onLeaveCancelled:P,onBeforeAppear:z=b,onAppear:m=S,onAppearCancelled:C=F}=t,A=(k,Q,te)=>{jt(k,Q?u:l),jt(k,Q?c:s),te&&te()},j=(k,Q)=>{k._isLeaving=!1,jt(k,f),jt(k,v),jt(k,d),Q&&Q()},W=k=>(Q,te)=>{const ne=k?m:S,oe=()=>A(Q,k,te);Qt(ne,[Q,oe]),ol(()=>{jt(Q,k?a:i),$t(Q,k?u:l),rl(ne)||il(Q,r,w,oe)})};return ke(t,{onBeforeEnter(k){Qt(b,[k]),$t(k,i),$t(k,s)},onBeforeAppear(k){Qt(z,[k]),$t(k,a),$t(k,c)},onEnter:W(!1),onAppear:W(!0),onLeave(k,Q){k._isLeaving=!0;const te=()=>j(k,Q);$t(k,f),Bc(),$t(k,d),ol(()=>{k._isLeaving&&(jt(k,f),$t(k,v),rl(_)||il(k,r,y,te))}),Qt(_,[k,te])},onEnterCancelled(k){A(k,!1),Qt(F,[k])},onAppearCancelled(k){A(k,!0),Qt(C,[k])},onLeaveCancelled(k){j(k),Qt(P,[k])}})}function Fh(e){if(e==null)return null;if(_e(e))return[Xo(e.enter),Xo(e.leave)];{const t=Xo(e);return[t,t]}}function Xo(e){return Pf(e)}function $t(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function jt(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function ol(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Lh=0;function il(e,t,n,r){const o=e._endId=++Lh,i=()=>{o===e._endId&&r()};if(n)return setTimeout(i,n);const{type:s,timeout:l,propCount:a}=kc(e,t);if(!s)return r();const c=s+"end";let u=0;const f=()=>{e.removeEventListener(c,d),i()},d=v=>{v.target===e&&++u>=a&&f()};setTimeout(()=>{u(n[p]||"").split(", "),o=r(`${Ht}Delay`),i=r(`${Ht}Duration`),s=sl(o,i),l=r(`${Zn}Delay`),a=r(`${Zn}Duration`),c=sl(l,a);let u=null,f=0,d=0;t===Ht?s>0&&(u=Ht,f=s,d=i.length):t===Zn?c>0&&(u=Zn,f=c,d=a.length):(f=Math.max(s,c),u=f>0?s>c?Ht:Zn:null,d=u?u===Ht?i.length:a.length:0);const v=u===Ht&&/\b(transform|all)(,|$)/.test(r(`${Ht}Property`).toString());return{type:u,timeout:f,propCount:d,hasTransform:v}}function sl(e,t){for(;e.lengthll(n)+ll(e[r])))}function ll(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function Bc(){return document.body.offsetHeight}const Mc=new WeakMap,Hc=new WeakMap,Fc={name:"TransitionGroup",props:ke({},Hh,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Ar(),r=cc();let o,i;return gc(()=>{if(!o.length)return;const s=e.moveClass||`${e.name||"v"}-move`;if(!Kh(o[0].el,n.vnode.el,s))return;o.forEach(Nh),o.forEach(Wh);const l=o.filter(Uh);Bc(),l.forEach(a=>{const c=a.el,u=c.style;$t(c,s),u.transform=u.webkitTransform=u.transitionDuration="";const f=c._moveCb=d=>{d&&d.target!==c||(!d||/transform$/.test(d.propertyName))&&(c.removeEventListener("transitionend",f),c._moveCb=null,jt(c,s))};c.addEventListener("transitionend",f)})}),()=>{const s=ge(e),l=Ac(s);let a=s.tag||Me;o=i,i=t.default?es(t.default()):[];for(let c=0;cdelete e.mode;Fc.props;const Dh=Fc;function Nh(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function Wh(e){Hc.set(e,e.el.getBoundingClientRect())}function Uh(e){const t=Mc.get(e),n=Hc.get(e),r=t.left-n.left,o=t.top-n.top;if(r||o){const i=e.el.style;return i.transform=i.webkitTransform=`translate(${r}px,${o}px)`,i.transitionDuration="0s",e}}function Kh(e,t,n){const r=e.cloneNode();e._vtc&&e._vtc.forEach(s=>{s.split(/\s+/).forEach(l=>l&&r.classList.remove(l))}),n.split(/\s+/).forEach(s=>s&&r.classList.add(s)),r.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(r);const{hasTransform:i}=kc(r);return o.removeChild(r),i}const al={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Jn(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Jn(e,!0),r.enter(e)):r.leave(e,()=>{Jn(e,!1)}):Jn(e,t))},beforeUnmount(e,{value:t}){Jn(e,t)}};function Jn(e,t){e.style.display=t?e._vod:"none"}const Vh=ke({patchProp:Bh},Ch);let cl;function qh(){return cl||(cl=eh(Vh))}const Gh=(...e)=>{const t=qh().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=Xh(r);if(!o)return;const i=t._component;!ue(i)&&!i.render&&!i.template&&(i.template=o.innerHTML),o.innerHTML="";const s=n(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),s},t};function Xh(e){return Be(e)?document.querySelector(e):e}var Yh=!1;/*!
+ * pinia v2.0.36
+ * (c) 2023 Eduardo San Martin Morote
+ * @license MIT
+ */let Lc;const zo=e=>Lc=e,jc=Symbol();function bi(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var fr;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(fr||(fr={}));function Zh(){const e=Fa(!0),t=e.run(()=>se({}));let n=[],r=[];const o=qt({install(i){zo(o),o._a=i,i.provide(jc,o),i.config.globalProperties.$pinia=o,r.forEach(s=>n.push(s)),r=[]},use(i){return!this._a&&!Yh?r.push(i):n.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}const Dc=()=>{};function ul(e,t,n,r=Dc){e.push(t);const o=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),r())};return!n&&La()&&Bf(o),o}function Sn(e,...t){e.slice().forEach(n=>{n(...t)})}function yi(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,r)=>e.set(r,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],o=e[n];bi(o)&&bi(r)&&e.hasOwnProperty(n)&&!Oe(r)&&!Rt(r)?e[n]=yi(o,r):e[n]=r}return e}const Jh=Symbol();function Qh(e){return!bi(e)||!e.hasOwnProperty(Jh)}const{assign:Dt}=Object;function ep(e){return!!(Oe(e)&&e.effect)}function tp(e,t,n,r){const{state:o,actions:i,getters:s}=t,l=n.state.value[e];let a;function c(){l||(n.state.value[e]=o?o():{});const u=hd(n.state.value[e]);return Dt(u,i,Object.keys(s||{}).reduce((f,d)=>(f[d]=qt(V(()=>{zo(n);const v=n._s.get(e);return s[d].call(v,v)})),f),{}))}return a=Nc(e,c,t,n,r,!0),a}function Nc(e,t,n={},r,o,i){let s;const l=Dt({actions:{}},n),a={deep:!0};let c,u,f=qt([]),d=qt([]),v;const p=r.state.value[e];!i&&!p&&(r.state.value[e]={}),se({});let w;function y(m){let C;c=u=!1,typeof m=="function"?(m(r.state.value[e]),C={type:fr.patchFunction,storeId:e,events:v}):(yi(r.state.value[e],m),C={type:fr.patchObject,payload:m,storeId:e,events:v});const A=w=Symbol();kn().then(()=>{w===A&&(c=!0)}),u=!0,Sn(f,C,r.state.value[e])}const b=i?function(){const{state:C}=n,A=C?C():{};this.$patch(j=>{Dt(j,A)})}:Dc;function S(){s.stop(),f=[],d=[],r._s.delete(e)}function F(m,C){return function(){zo(r);const A=Array.from(arguments),j=[],W=[];function k(ne){j.push(ne)}function Q(ne){W.push(ne)}Sn(d,{args:A,name:m,store:P,after:k,onError:Q});let te;try{te=C.apply(this&&this.$id===e?this:P,A)}catch(ne){throw Sn(W,ne),ne}return te instanceof Promise?te.then(ne=>(Sn(j,ne),ne)).catch(ne=>(Sn(W,ne),Promise.reject(ne))):(Sn(j,te),te)}}const _={_p:r,$id:e,$onAction:ul.bind(null,d),$patch:y,$reset:b,$subscribe(m,C={}){const A=ul(f,m,C.detached,()=>j()),j=s.run(()=>ut(()=>r.state.value[e],W=>{(C.flush==="sync"?u:c)&&m({storeId:e,type:fr.direct,events:v},W)},Dt({},a,C)));return A},$dispose:S},P=Xt(_);r._s.set(e,P);const z=r._e.run(()=>(s=Fa(),s.run(()=>t())));for(const m in z){const C=z[m];if(Oe(C)&&!ep(C)||Rt(C))i||(p&&Qh(C)&&(Oe(C)?C.value=p[m]:yi(C,p[m])),r.state.value[e][m]=C);else if(typeof C=="function"){const A=F(m,C);z[m]=A,l.actions[m]=C}}return Dt(P,z),Dt(ge(P),z),Object.defineProperty(P,"$state",{get:()=>r.state.value[e],set:m=>{y(C=>{Dt(C,m)})}}),r._p.forEach(m=>{Dt(P,s.run(()=>m({store:P,app:r._a,pinia:r,options:l})))}),p&&i&&n.hydrate&&n.hydrate(P.$state,p),c=!0,u=!0,P}function Ux(e,t,n){let r,o;const i=typeof t=="function";typeof e=="string"?(r=e,o=i?n:t):(o=e,r=e.id);function s(l,a){const c=Ar();return l=l||c&&ze(jc,null),l&&zo(l),l=Lc,l._s.has(r)||(i?Nc(r,t,o,l):tp(r,o,l)),l._s.get(r)}return s.$id=r,s}function Kx(e){{e=ge(e);const t={};for(const n in e){const r=e[n];(Oe(r)||Rt(r))&&(t[n]=zt(e,n))}return t}}function np(e){return typeof e=="object"&&e!==null}function fl(e,t){return e=np(e)?e:Object.create(null),new Proxy(e,{get(n,r,o){return r==="key"?Reflect.get(n,r,o):Reflect.get(n,r,o)||Reflect.get(t,r,o)}})}function rp(e,t){return t.reduce((n,r)=>n==null?void 0:n[r],e)}function op(e,t,n){return t.slice(0,-1).reduce((r,o)=>/^(__proto__)$/.test(o)?{}:r[o]=r[o]||{},e)[t[t.length-1]]=n,e}function ip(e,t){return t.reduce((n,r)=>{const o=r.split(".");return op(n,o,rp(e,o))},{})}function dl(e,{storage:t,serializer:n,key:r,debug:o}){try{const i=t==null?void 0:t.getItem(r);i&&e.$patch(n==null?void 0:n.deserialize(i))}catch(i){o&&console.error(i)}}function hl(e,{storage:t,serializer:n,key:r,paths:o,debug:i}){try{const s=Array.isArray(o)?ip(e,o):e;t.setItem(r,n.serialize(s))}catch(s){i&&console.error(s)}}function sp(e={}){return t=>{const{auto:n=!1}=e,{options:{persist:r=n},store:o}=t;if(!r)return;const i=(Array.isArray(r)?r.map(s=>fl(s,e)):[fl(r,e)]).map(({storage:s=localStorage,beforeRestore:l=null,afterRestore:a=null,serializer:c={serialize:JSON.stringify,deserialize:JSON.parse},key:u=o.$id,paths:f=null,debug:d=!1})=>{var v;return{storage:s,beforeRestore:l,afterRestore:a,serializer:c,key:((v=e.key)!=null?v:p=>p)(u),paths:f,debug:d}});o.$persist=()=>{i.forEach(s=>{hl(o.$state,s)})},o.$hydrate=({runHooks:s=!0}={})=>{i.forEach(l=>{const{beforeRestore:a,afterRestore:c}=l;s&&(a==null||a(t)),dl(o,l),s&&(c==null||c(t))})},i.forEach(s=>{const{beforeRestore:l,afterRestore:a}=s;l==null||l(t),dl(o,s),a==null||a(t),o.$subscribe((c,u)=>{hl(u,s)},{detached:!0})})}}var lp=sp();const Wc=Zh();Wc.use(lp);function ap(e){e.use(Wc)}function cs(e){return e.composedPath()[0]||null}function Vx(e){return typeof e=="string"?e.endsWith("px")?Number(e.slice(0,e.length-2)):Number(e):e}function cp(e,t){const n=e.trim().split(/\s+/g),r={top:n[0]};switch(n.length){case 1:r.right=n[0],r.bottom=n[0],r.left=n[0];break;case 2:r.right=n[1],r.left=n[1],r.bottom=n[0];break;case 3:r.right=n[1],r.bottom=n[2],r.left=n[1];break;case 4:r.right=n[1],r.bottom=n[2],r.left=n[3];break;default:throw new Error("[seemly/getMargin]:"+e+" is not a valid value.")}return t===void 0?r:r[t]}function qx(e,t){const[n,r]=e.split(" ");return t?t==="row"?n:r:{row:n,col:r||n}}const pl={black:"#000",silver:"#C0C0C0",gray:"#808080",white:"#FFF",maroon:"#800000",red:"#F00",purple:"#800080",fuchsia:"#F0F",green:"#008000",lime:"#0F0",olive:"#808000",yellow:"#FF0",navy:"#000080",blue:"#00F",teal:"#008080",aqua:"#0FF",transparent:"#0000"},Nn="^\\s*",Wn="\\s*$",ln="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",an="([0-9A-Fa-f])",cn="([0-9A-Fa-f]{2})",up=new RegExp(`${Nn}rgb\\s*\\(${ln},${ln},${ln}\\)${Wn}`),fp=new RegExp(`${Nn}rgba\\s*\\(${ln},${ln},${ln},${ln}\\)${Wn}`),dp=new RegExp(`${Nn}#${an}${an}${an}${Wn}`),hp=new RegExp(`${Nn}#${cn}${cn}${cn}${Wn}`),pp=new RegExp(`${Nn}#${an}${an}${an}${an}${Wn}`),gp=new RegExp(`${Nn}#${cn}${cn}${cn}${cn}${Wn}`);function Je(e){return parseInt(e,16)}function gn(e){try{let t;if(t=hp.exec(e))return[Je(t[1]),Je(t[2]),Je(t[3]),1];if(t=up.exec(e))return[De(t[1]),De(t[5]),De(t[9]),1];if(t=fp.exec(e))return[De(t[1]),De(t[5]),De(t[9]),dr(t[13])];if(t=dp.exec(e))return[Je(t[1]+t[1]),Je(t[2]+t[2]),Je(t[3]+t[3]),1];if(t=gp.exec(e))return[Je(t[1]),Je(t[2]),Je(t[3]),dr(Je(t[4])/255)];if(t=pp.exec(e))return[Je(t[1]+t[1]),Je(t[2]+t[2]),Je(t[3]+t[3]),dr(Je(t[4]+t[4])/255)];if(e in pl)return gn(pl[e]);throw new Error(`[seemly/rgba]: Invalid color value ${e}.`)}catch(t){throw t}}function vp(e){return e>1?1:e<0?0:e}function xi(e,t,n,r){return`rgba(${De(e)}, ${De(t)}, ${De(n)}, ${vp(r)})`}function Yo(e,t,n,r,o){return De((e*t*(1-r)+n*r)/o)}function us(e,t){Array.isArray(e)||(e=gn(e)),Array.isArray(t)||(t=gn(t));const n=e[3],r=t[3],o=dr(n+r-n*r);return xi(Yo(e[0],n,t[0],r,o),Yo(e[1],n,t[1],r,o),Yo(e[2],n,t[2],r,o),o)}function Vr(e,t){const[n,r,o,i=1]=Array.isArray(e)?e:gn(e);return t.alpha?xi(n,r,o,t.alpha):xi(n,r,o,i)}function qr(e,t){const[n,r,o,i=1]=Array.isArray(e)?e:gn(e),{lightness:s=1,alpha:l=1}=t;return mp([n*s,r*s,o*s,i*l])}function dr(e){const t=Math.round(Number(e)*100)/100;return t>1?1:t<0?0:t}function De(e){const t=Math.round(Number(e));return t>255?255:t<0?0:t}function mp(e){const[t,n,r]=e;return 3 in e?`rgba(${De(t)}, ${De(n)}, ${De(r)}, ${dr(e[3])})`:`rgba(${De(t)}, ${De(n)}, ${De(r)}, 1)`}function fs(e=8){return Math.random().toString(16).slice(2,2+e)}function po(e,t=[],n){const r={};return t.forEach(o=>{r[o]=e[o]}),Object.assign(r,n)}function Uc(e,t=[],n){const r={};return Object.getOwnPropertyNames(e).forEach(i=>{t.includes(i)||(r[i]=e[i])}),Object.assign(r,n)}function Ci(e,t=!0,n=[]){return e.forEach(r=>{if(r!==null){if(typeof r!="object"){(typeof r=="string"||typeof r=="number")&&n.push(Er(String(r)));return}if(Array.isArray(r)){Ci(r,t,n);return}if(r.type===Me){if(r.children===null)return;Array.isArray(r.children)&&Ci(r.children,t,n)}else r.type!==Ge&&n.push(r)}}),n}function un(e,...t){if(Array.isArray(e))e.forEach(n=>un(n,...t));else return e(...t)}function ds(e){return Object.keys(e)}const tn=(e,...t)=>typeof e=="function"?e(...t):typeof e=="string"?Er(e):typeof e=="number"?Er(String(e)):null;function go(e,t){console.error(`[naive/${e}]: ${t}`)}function bp(e,t){throw new Error(`[naive/${e}]: ${t}`)}function yp(e,t="default",n=void 0){const r=e[t];if(!r)return go("getFirstSlotVNode",`slot[${t}] is empty`),null;const o=Ci(r(n));return o.length===1?o[0]:(go("getFirstSlotVNode",`slot[${t}] should have exactly one child`),null)}function Gx(e){return e}function kr(e){return e.some(t=>_r(t)?!(t.type===Ge||t.type===Me&&!kr(t.children)):!0)?e:null}function gl(e,t){return e&&kr(e())||t()}function Xx(e,t,n){return e&&kr(e(t))||n(t)}function yt(e,t){const n=e&&kr(e());return t(n||null)}function xp(e){return!(e&&kr(e()))}const vl=Ee({render(){var e,t;return(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)}});function ml(e){return e.replace(/#|\(|\)|,|\s/g,"_")}function Cp(e){let t=0;for(let n=0;n{let o=Cp(r);if(o){if(o===1){e.forEach(s=>{n.push(r.replace("&",s))});return}}else{e.forEach(s=>{n.push((s&&s+" ")+r)});return}let i=[r];for(;o--;){const s=[];i.forEach(l=>{e.forEach(a=>{s.push(l.replace("&",a))})}),i=s}i.forEach(s=>n.push(s))}),n}function _p(e,t){const n=[];return t.split(Kc).forEach(r=>{e.forEach(o=>{n.push((o&&o+" ")+r)})}),n}function Ep(e){let t=[""];return e.forEach(n=>{n=n&&n.trim(),n&&(n.includes("&")?t=Sp(t,n):t=_p(t,n))}),t.join(", ").replace(wp," ")}function bl(e){if(!e)return;const t=e.parentElement;t&&t.removeChild(e)}function Io(e){return document.querySelector(`style[cssr-id="${e}"]`)}function $p(e){const t=document.createElement("style");return t.setAttribute("cssr-id",e),t}function Gr(e){return e?/^\s*@(s|m)/.test(e):!1}const Pp=/[A-Z]/g;function Vc(e){return e.replace(Pp,t=>"-"+t.toLowerCase())}function Rp(e,t=" "){return typeof e=="object"&&e!==null?` {
+`+Object.entries(e).map(n=>t+` ${Vc(n[0])}: ${n[1]};`).join(`
+`)+`
+`+t+"}":`: ${e};`}function Tp(e,t,n){return typeof e=="function"?e({context:t.context,props:n}):e}function yl(e,t,n,r){if(!t)return"";const o=Tp(t,n,r);if(!o)return"";if(typeof o=="string")return`${e} {
+${o}
+}`;const i=Object.keys(o);if(i.length===0)return n.config.keepEmptyBlock?e+` {
+}`:"";const s=e?[e+" {"]:[];return i.forEach(l=>{const a=o[l];if(l==="raw"){s.push(`
+`+a+`
+`);return}l=Vc(l),a!=null&&s.push(` ${l}${Rp(a)}`)}),e&&s.push("}"),s.join(`
+`)}function wi(e,t,n){e&&e.forEach(r=>{if(Array.isArray(r))wi(r,t,n);else if(typeof r=="function"){const o=r(t);Array.isArray(o)?wi(o,t,n):o&&n(o)}else r&&n(r)})}function qc(e,t,n,r,o,i){const s=e.$;let l="";if(!s||typeof s=="string")Gr(s)?l=s:t.push(s);else if(typeof s=="function"){const u=s({context:r.context,props:o});Gr(u)?l=u:t.push(u)}else if(s.before&&s.before(r.context),!s.$||typeof s.$=="string")Gr(s.$)?l=s.$:t.push(s.$);else if(s.$){const u=s.$({context:r.context,props:o});Gr(u)?l=u:t.push(u)}const a=Ep(t),c=yl(a,e.props,r,o);l?(n.push(`${l} {`),i&&c&&i.insertRule(`${l} {
+${c}
+}
+`)):(i&&c&&i.insertRule(c),!i&&c.length&&n.push(c)),e.children&&wi(e.children,{context:r.context,props:o},u=>{if(typeof u=="string"){const f=yl(a,{raw:u},r,o);i?i.insertRule(f):n.push(f)}else qc(u,t,n,r,o,i)}),t.pop(),l&&n.push("}"),s&&s.after&&s.after(r.context)}function Gc(e,t,n,r=!1){const o=[];return qc(e,[],o,t,n,r?e.instance.__styleSheet:void 0),r?"":o.join(`
+
+`)}function Pr(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}typeof window<"u"&&(window.__cssrContext={});function Op(e,t,n){const{els:r}=t;if(n===void 0)r.forEach(bl),t.els=[];else{const o=Io(n);o&&r.includes(o)&&(bl(o),t.els=r.filter(i=>i!==o))}}function xl(e,t){e.push(t)}function zp(e,t,n,r,o,i,s,l,a){if(i&&!a){if(n===void 0){console.error("[css-render/mount]: `id` is required in `silent` mode.");return}const d=window.__cssrContext;d[n]||(d[n]=!0,Gc(t,e,r,i));return}let c;if(n===void 0&&(c=t.render(r),n=Pr(c)),a){a.adapter(n,c??t.render(r));return}const u=Io(n);if(u!==null&&!s)return u;const f=u??$p(n);if(c===void 0&&(c=t.render(r)),f.textContent=c,u!==null)return u;if(l){const d=document.head.querySelector(`meta[name="${l}"]`);if(d)return document.head.insertBefore(f,d),xl(t.els,f),f}return o?document.head.insertBefore(f,document.head.querySelector("style, link")):document.head.appendChild(f),xl(t.els,f),f}function Ip(e){return Gc(this,this.instance,e)}function Ap(e={}){const{id:t,ssr:n,props:r,head:o=!1,silent:i=!1,force:s=!1,anchorMetaName:l}=e;return zp(this.instance,this,t,r,o,i,s,l,n)}function kp(e={}){const{id:t}=e;Op(this.instance,this,t)}const Xr=function(e,t,n,r){return{instance:e,$:t,props:n,children:r,els:[],render:Ip,mount:Ap,unmount:kp}},Bp=function(e,t,n,r){return Array.isArray(t)?Xr(e,{$:null},null,t):Array.isArray(n)?Xr(e,t,null,n):Array.isArray(r)?Xr(e,t,n,r):Xr(e,t,n,null)};function Mp(e={}){let t=null;const n={c:(...r)=>Bp(n,...r),use:(r,...o)=>r.install(n,...o),find:Io,context:{},config:e,get __styleSheet(){if(!t){const r=document.createElement("style");return document.head.appendChild(r),t=document.styleSheets[document.styleSheets.length-1],t}return t}};return n}function Hp(e,t){if(e===void 0)return!1;if(t){const{context:{ids:n}}=t;return n.has(e)}return Io(e)!==null}function Fp(e){let t=".",n="__",r="--",o;if(e){let p=e.blockPrefix;p&&(t=p),p=e.elementPrefix,p&&(n=p),p=e.modifierPrefix,p&&(r=p)}const i={install(p){o=p.c;const w=p.context;w.bem={},w.bem.b=null,w.bem.els=null}};function s(p){let w,y;return{before(b){w=b.bem.b,y=b.bem.els,b.bem.els=null},after(b){b.bem.b=w,b.bem.els=y},$({context:b,props:S}){return p=typeof p=="string"?p:p({context:b,props:S}),b.bem.b=p,`${(S==null?void 0:S.bPrefix)||t}${b.bem.b}`}}}function l(p){let w;return{before(y){w=y.bem.els},after(y){y.bem.els=w},$({context:y,props:b}){return p=typeof p=="string"?p:p({context:y,props:b}),y.bem.els=p.split(",").map(S=>S.trim()),y.bem.els.map(S=>`${(b==null?void 0:b.bPrefix)||t}${y.bem.b}${n}${S}`).join(", ")}}}function a(p){return{$({context:w,props:y}){p=typeof p=="string"?p:p({context:w,props:y});const b=p.split(",").map(_=>_.trim());function S(_){return b.map(P=>`&${(y==null?void 0:y.bPrefix)||t}${w.bem.b}${_!==void 0?`${n}${_}`:""}${r}${P}`).join(", ")}const F=w.bem.els;return F!==null?S(F[0]):S()}}}function c(p){return{$({context:w,props:y}){p=typeof p=="string"?p:p({context:w,props:y});const b=w.bem.els;return`&:not(${(y==null?void 0:y.bPrefix)||t}${w.bem.b}${b!==null&&b.length>0?`${n}${b[0]}`:""}${r}${p})`}}}return Object.assign(i,{cB:(...p)=>o(s(p[0]),p[1],p[2]),cE:(...p)=>o(l(p[0]),p[1],p[2]),cM:(...p)=>o(a(p[0]),p[1],p[2]),cNotM:(...p)=>o(c(p[0]),p[1],p[2])}),i}function ie(e,t){return e+(t==="default"?"":t.replace(/^[a-z]/,n=>n.toUpperCase()))}ie("abc","def");const Lp="n",Rr=`.${Lp}-`,jp="__",Dp="--",Xc=Mp(),Yc=Fp({blockPrefix:Rr,elementPrefix:jp,modifierPrefix:Dp});Xc.use(Yc);const{c:D,find:Yx}=Xc,{cB:xe,cE:G,cM:de,cNotM:Si}=Yc;function Zc(e){return D(({props:{bPrefix:t}})=>`${t||Rr}modal, ${t||Rr}drawer`,[e])}function Np(e){return D(({props:{bPrefix:t}})=>`${t||Rr}popover`,[e])}function Jc(e){return D(({props:{bPrefix:t}})=>`&${t||Rr}modal`,e)}const Zx=(...e)=>D(">",[xe(...e)]),Br=typeof document<"u"&&typeof window<"u",Wp=new WeakSet;function Up(e){return!Wp.has(e)}function Kp(e){const t=se(!!e.value);if(t.value)return Ot(t);const n=ut(e,r=>{r&&(t.value=!0,n())});return Ot(t)}function _i(e){const t=V(e),n=se(t.value);return ut(t,r=>{n.value=r}),typeof e=="function"?n:{__v_isRef:!0,get value(){return n.value},set value(r){e.set(r)}}}function Qc(){return Ar()!==null}const eu=typeof window<"u";function io(e){return e.composedPath()[0]}const Vp={mousemoveoutside:new WeakMap,clickoutside:new WeakMap};function qp(e,t,n){if(e==="mousemoveoutside"){const r=o=>{t.contains(io(o))||n(o)};return{mousemove:r,touchstart:r}}else if(e==="clickoutside"){let r=!1;const o=s=>{r=!t.contains(io(s))},i=s=>{r&&(t.contains(io(s))||n(s))};return{mousedown:o,mouseup:i,touchstart:o,touchend:i}}return console.error(`[evtd/create-trap-handler]: name \`${e}\` is invalid. This could be a bug of evtd.`),{}}function tu(e,t,n){const r=Vp[e];let o=r.get(t);o===void 0&&r.set(t,o=new WeakMap);let i=o.get(n);return i===void 0&&o.set(n,i=qp(e,t,n)),i}function Gp(e,t,n,r){if(e==="mousemoveoutside"||e==="clickoutside"){const o=tu(e,t,n);return Object.keys(o).forEach(i=>{it(i,document,o[i],r)}),!0}return!1}function Xp(e,t,n,r){if(e==="mousemoveoutside"||e==="clickoutside"){const o=tu(e,t,n);return Object.keys(o).forEach(i=>{Ve(i,document,o[i],r)}),!0}return!1}function Yp(){if(typeof window>"u")return{on:()=>{},off:()=>{}};const e=new WeakMap,t=new WeakMap;function n(){e.set(this,!0)}function r(){e.set(this,!0),t.set(this,!0)}function o(m,C,A){const j=m[C];return m[C]=function(){return A.apply(m,arguments),j.apply(m,arguments)},m}function i(m,C){m[C]=Event.prototype[C]}const s=new WeakMap,l=Object.getOwnPropertyDescriptor(Event.prototype,"currentTarget");function a(){var m;return(m=s.get(this))!==null&&m!==void 0?m:null}function c(m,C){l!==void 0&&Object.defineProperty(m,"currentTarget",{configurable:!0,enumerable:!0,get:C??l.get})}const u={bubble:{},capture:{}},f={};function d(){const m=function(C){const{type:A,eventPhase:j,bubbles:W}=C,k=io(C);if(j===2)return;const Q=j===1?"capture":"bubble";let te=k;const ne=[];for(;te===null&&(te=window),ne.push(te),te!==window;)te=te.parentNode||null;const oe=u.capture[A],K=u.bubble[A];if(o(C,"stopPropagation",n),o(C,"stopImmediatePropagation",r),c(C,a),Q==="capture"){if(oe===void 0)return;for(let re=ne.length-1;re>=0&&!e.has(C);--re){const Ce=ne[re],we=oe.get(Ce);if(we!==void 0){s.set(C,Ce);for(const Se of we){if(t.has(C))break;Se(C)}}if(re===0&&!W&&K!==void 0){const Se=K.get(Ce);if(Se!==void 0)for(const Te of Se){if(t.has(C))break;Te(C)}}}}else if(Q==="bubble"){if(K===void 0)return;for(let re=0;rek(C))};return m.displayName="evtdUnifiedWindowEventHandler",m}const p=d(),w=v();function y(m,C){const A=u[m];return A[C]===void 0&&(A[C]=new Map,window.addEventListener(C,p,m==="capture")),A[C]}function b(m){return f[m]===void 0&&(f[m]=new Set,window.addEventListener(m,w)),f[m]}function S(m,C){let A=m.get(C);return A===void 0&&m.set(C,A=new Set),A}function F(m,C,A,j){const W=u[C][A];if(W!==void 0){const k=W.get(m);if(k!==void 0&&k.has(j))return!0}return!1}function _(m,C){const A=f[m];return!!(A!==void 0&&A.has(C))}function P(m,C,A,j){let W;if(typeof j=="object"&&j.once===!0?W=oe=>{z(m,C,W,j),A(oe)}:W=A,Gp(m,C,W,j))return;const Q=j===!0||typeof j=="object"&&j.capture===!0?"capture":"bubble",te=y(Q,m),ne=S(te,C);if(ne.has(W)||ne.add(W),C===window){const oe=b(m);oe.has(W)||oe.add(W)}}function z(m,C,A,j){if(Xp(m,C,A,j))return;const k=j===!0||typeof j=="object"&&j.capture===!0,Q=k?"capture":"bubble",te=y(Q,m),ne=S(te,C);if(C===window&&!F(C,k?"bubble":"capture",m,A)&&_(m,A)){const K=f[m];K.delete(A),K.size===0&&(window.removeEventListener(m,w),f[m]=void 0)}ne.has(A)&&ne.delete(A),ne.size===0&&te.delete(C),te.size===0&&(window.removeEventListener(m,p,Q==="capture"),u[Q][m]=void 0)}return{on:P,off:z}}const{on:it,off:Ve}=Yp(),ir=se(null);function Cl(e){if(e.clientX>0||e.clientY>0)ir.value={x:e.clientX,y:e.clientY};else{const{target:t}=e;if(t instanceof Element){const{left:n,top:r,width:o,height:i}=t.getBoundingClientRect();n>0||r>0?ir.value={x:n+o/2,y:r+i/2}:ir.value={x:0,y:0}}else ir.value=null}}let Yr=0,wl=!0;function nu(){if(!eu)return Ot(se(null));Yr===0&&it("click",document,Cl,!0);const e=()=>{Yr+=1};return wl&&(wl=Qc())?(bn(e),dt(()=>{Yr-=1,Yr===0&&Ve("click",document,Cl,!0)})):e(),Ot(ir)}const Zp=se(void 0);let Zr=0;function Sl(){Zp.value=Date.now()}let _l=!0;function ru(e){if(!eu)return Ot(se(!1));const t=se(!1);let n=null;function r(){n!==null&&window.clearTimeout(n)}function o(){r(),t.value=!0,n=window.setTimeout(()=>{t.value=!1},e)}Zr===0&&it("click",window,Sl,!0);const i=()=>{Zr+=1,it("click",window,o,!0)};return _l&&(_l=Qc())?(bn(i),dt(()=>{Zr-=1,Zr===0&&Ve("click",window,Sl,!0),Ve("click",window,o,!0),r()})):i(),Ot(t)}function ou(){const e=se(!1);return Yt(()=>{e.value=!0}),Ot(e)}const Jp=(typeof window>"u"?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!window.MSStream;function Qp(){return Jp}const eg="n-modal-body",iu="n-modal",tg="n-drawer-body",ng="n-popover-body";function El(e,t,n="default"){const r=t[n];if(r===void 0)throw new Error(`[vueuc/${e}]: slot[${n}] is empty.`);return r()}function Ei(e,t=!0,n=[]){return e.forEach(r=>{if(r!==null){if(typeof r!="object"){(typeof r=="string"||typeof r=="number")&&n.push(Er(String(r)));return}if(Array.isArray(r)){Ei(r,t,n);return}if(r.type===Me){if(r.children===null)return;Array.isArray(r.children)&&Ei(r.children,t,n)}else r.type!==Ge&&n.push(r)}}),n}function Jx(e,t,n="default"){const r=t[n];if(r===void 0)throw new Error(`[vueuc/${e}]: slot[${n}] is empty.`);const o=Ei(r());if(o.length===1)return o[0];throw new Error(`[vueuc/${e}]: slot[${n}] should have exactly one child.`)}const _n="@@coContext",rg={mounted(e,{value:t,modifiers:n}){e[_n]={handler:void 0},typeof t=="function"&&(e[_n].handler=t,it("clickoutside",e,t,{capture:n.capture}))},updated(e,{value:t,modifiers:n}){const r=e[_n];typeof t=="function"?r.handler?r.handler!==t&&(Ve("clickoutside",e,r.handler,{capture:n.capture}),r.handler=t,it("clickoutside",e,t,{capture:n.capture})):(e[_n].handler=t,it("clickoutside",e,t,{capture:n.capture})):r.handler&&(Ve("clickoutside",e,r.handler,{capture:n.capture}),r.handler=void 0)},unmounted(e,{modifiers:t}){const{handler:n}=e[_n];n&&Ve("clickoutside",e,n,{capture:t.capture}),e[_n].handler=void 0}},og=rg;function ig(e,t){console.error(`[vdirs/${e}]: ${t}`)}class sg{constructor(){this.elementZIndex=new Map,this.nextZIndex=2e3}get elementCount(){return this.elementZIndex.size}ensureZIndex(t,n){const{elementZIndex:r}=this;if(n!==void 0){t.style.zIndex=`${n}`,r.delete(t);return}const{nextZIndex:o}=this;r.has(t)&&r.get(t)+1===this.nextZIndex||(t.style.zIndex=`${o}`,r.set(t,o),this.nextZIndex=o+1,this.squashState())}unregister(t,n){const{elementZIndex:r}=this;r.has(t)?r.delete(t):n===void 0&&ig("z-index-manager/unregister-element","Element not found when unregistering."),this.squashState()}squashState(){const{elementCount:t}=this;t||(this.nextZIndex=2e3),this.nextZIndex-t>2500&&this.rearrange()}rearrange(){const t=Array.from(this.elementZIndex.entries());t.sort((n,r)=>n[1]-r[1]),this.nextZIndex=2e3,t.forEach(n=>{const r=n[0],o=this.nextZIndex++;`${o}`!==r.style.zIndex&&(r.style.zIndex=`${o}`)})}}const Zo=new sg,En="@@ziContext",lg={mounted(e,t){const{value:n={}}=t,{zIndex:r,enabled:o}=n;e[En]={enabled:!!o,initialized:!1},o&&(Zo.ensureZIndex(e,r),e[En].initialized=!0)},updated(e,t){const{value:n={}}=t,{zIndex:r,enabled:o}=n,i=e[En].enabled;o&&!i&&(Zo.ensureZIndex(e,r),e[En].initialized=!0),e[En].enabled=!!o},unmounted(e,t){if(!e[En].initialized)return;const{value:n={}}=t,{zIndex:r}=n;Zo.unregister(e,r)}},ag=lg,su=Symbol("@css-render/vue3-ssr");function cg(e,t){return``}function ug(e,t){const n=ze(su,null);if(n===null){console.error("[css-render/vue3-ssr]: no ssr context found.");return}const{styles:r,ids:o}=n;o.has(e)||r!==null&&(o.add(e),r.push(cg(e,t)))}const fg=typeof document<"u";function Ao(){if(fg)return;const e=ze(su,null);if(e!==null)return{adapter:ug,context:e}}function $l(e,t){console.error(`[vueuc/${e}]: ${t}`)}function Pl(e){return typeof e=="string"?document.querySelector(e):e()}const dg=Ee({name:"LazyTeleport",props:{to:{type:[String,Object],default:void 0},disabled:Boolean,show:{type:Boolean,required:!0}},setup(e){return{showTeleport:Kp(zt(e,"show")),mergedTo:V(()=>{const{to:t}=e;return t??"body"})}},render(){return this.showTeleport?this.disabled?El("lazy-teleport",this.$slots):E(Ec,{disabled:this.disabled,to:this.mergedTo},El("lazy-teleport",this.$slots)):null}});var hn=[],hg=function(){return hn.some(function(e){return e.activeTargets.length>0})},pg=function(){return hn.some(function(e){return e.skippedTargets.length>0})},Rl="ResizeObserver loop completed with undelivered notifications.",gg=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:Rl}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=Rl),window.dispatchEvent(e)},Tr;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Tr||(Tr={}));var pn=function(e){return Object.freeze(e)},vg=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,pn(this)}return e}(),lu=function(){function e(t,n,r,o){return this.x=t,this.y=n,this.width=r,this.height=o,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,pn(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,r=t.y,o=t.top,i=t.right,s=t.bottom,l=t.left,a=t.width,c=t.height;return{x:n,y:r,top:o,right:i,bottom:s,left:l,width:a,height:c}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),hs=function(e){return e instanceof SVGElement&&"getBBox"in e},au=function(e){if(hs(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var o=e,i=o.offsetWidth,s=o.offsetHeight;return!(i||s||e.getClientRects().length)},Tl=function(e){var t;if(e instanceof Element)return!0;var n=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},mg=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},hr=typeof window<"u"?window:{},Jr=new WeakMap,Ol=/auto|scroll/,bg=/^tb|vertical/,yg=/msie|trident/i.test(hr.navigator&&hr.navigator.userAgent),vt=function(e){return parseFloat(e||"0")},zn=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new vg((n?t:e)||0,(n?e:t)||0)},zl=pn({devicePixelContentBoxSize:zn(),borderBoxSize:zn(),contentBoxSize:zn(),contentRect:new lu(0,0,0,0)}),cu=function(e,t){if(t===void 0&&(t=!1),Jr.has(e)&&!t)return Jr.get(e);if(au(e))return Jr.set(e,zl),zl;var n=getComputedStyle(e),r=hs(e)&&e.ownerSVGElement&&e.getBBox(),o=!yg&&n.boxSizing==="border-box",i=bg.test(n.writingMode||""),s=!r&&Ol.test(n.overflowY||""),l=!r&&Ol.test(n.overflowX||""),a=r?0:vt(n.paddingTop),c=r?0:vt(n.paddingRight),u=r?0:vt(n.paddingBottom),f=r?0:vt(n.paddingLeft),d=r?0:vt(n.borderTopWidth),v=r?0:vt(n.borderRightWidth),p=r?0:vt(n.borderBottomWidth),w=r?0:vt(n.borderLeftWidth),y=f+c,b=a+u,S=w+v,F=d+p,_=l?e.offsetHeight-F-e.clientHeight:0,P=s?e.offsetWidth-S-e.clientWidth:0,z=o?y+S:0,m=o?b+F:0,C=r?r.width:vt(n.width)-z-P,A=r?r.height:vt(n.height)-m-_,j=C+y+P+S,W=A+b+_+F,k=pn({devicePixelContentBoxSize:zn(Math.round(C*devicePixelRatio),Math.round(A*devicePixelRatio),i),borderBoxSize:zn(j,W,i),contentBoxSize:zn(C,A,i),contentRect:new lu(f,a,C,A)});return Jr.set(e,k),k},uu=function(e,t,n){var r=cu(e,n),o=r.borderBoxSize,i=r.contentBoxSize,s=r.devicePixelContentBoxSize;switch(t){case Tr.DEVICE_PIXEL_CONTENT_BOX:return s;case Tr.BORDER_BOX:return o;default:return i}},xg=function(){function e(t){var n=cu(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=pn([n.borderBoxSize]),this.contentBoxSize=pn([n.contentBoxSize]),this.devicePixelContentBoxSize=pn([n.devicePixelContentBoxSize])}return e}(),fu=function(e){if(au(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},Cg=function(){var e=1/0,t=[];hn.forEach(function(s){if(s.activeTargets.length!==0){var l=[];s.activeTargets.forEach(function(c){var u=new xg(c.target),f=fu(c.target);l.push(u),c.lastReportedSize=uu(c.target,c.observedBox),fe?n.activeTargets.push(o):n.skippedTargets.push(o))})})},wg=function(){var e=0;for(Il(e);hg();)e=Cg(),Il(e);return pg()&&gg(),e>0},Jo,du=[],Sg=function(){return du.splice(0).forEach(function(e){return e()})},_g=function(e){if(!Jo){var t=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return Sg()}).observe(n,r),Jo=function(){n.textContent="".concat(t?t--:t++)}}du.push(e),Jo()},Eg=function(e){_g(function(){requestAnimationFrame(e)})},so=0,$g=function(){return!!so},Pg=250,Rg={attributes:!0,characterData:!0,childList:!0,subtree:!0},Al=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],kl=function(e){return e===void 0&&(e=0),Date.now()+e},Qo=!1,Tg=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var n=this;if(t===void 0&&(t=Pg),!Qo){Qo=!0;var r=kl(t);Eg(function(){var o=!1;try{o=wg()}finally{if(Qo=!1,t=r-kl(),!$g())return;o?n.run(1e3):t>0?n.run(t):n.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,n=function(){return t.observer&&t.observer.observe(document.body,Rg)};document.body?n():hr.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Al.forEach(function(n){return hr.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),Al.forEach(function(n){return hr.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),$i=new Tg,Bl=function(e){!so&&e>0&&$i.start(),so+=e,!so&&$i.stop()},Og=function(e){return!hs(e)&&!mg(e)&&getComputedStyle(e).display==="inline"},zg=function(){function e(t,n){this.target=t,this.observedBox=n||Tr.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=uu(this.target,this.observedBox,!0);return Og(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),Ig=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),Qr=new WeakMap,Ml=function(e,t){for(var n=0;n=0&&(i&&hn.splice(hn.indexOf(r),1),r.observationTargets.splice(o,1),Bl(-1))},e.disconnect=function(t){var n=this,r=Qr.get(t);r.observationTargets.slice().forEach(function(o){return n.unobserve(t,o.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e}(),Ag=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");eo.connect(this,t)}return e.prototype.observe=function(t,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Tl(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");eo.observe(this,t,n)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Tl(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");eo.unobserve(this,t)},e.prototype.disconnect=function(){eo.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();class kg{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<"u"&&window.ResizeObserver||Ag)(this.handleResize),this.elHandlersMap=new Map}handleResize(t){for(const n of t){const r=this.elHandlersMap.get(n.target);r!==void 0&&r(n)}}registerHandler(t,n){this.elHandlersMap.set(t,n),this.observer.observe(t)}unregisterHandler(t){this.elHandlersMap.has(t)&&(this.elHandlersMap.delete(t),this.observer.unobserve(t))}}const Hl=new kg,Fl=Ee({name:"ResizeObserver",props:{onResize:Function},setup(e){let t=!1;const n=Ar().proxy;function r(o){const{onResize:i}=e;i!==void 0&&i(o)}Yt(()=>{const o=n.$el;if(o===void 0){$l("resize-observer","$el does not exist.");return}if(o.nextElementSibling!==o.nextSibling&&o.nodeType===3&&o.nodeValue!==""){$l("resize-observer","$el can not be observed (it may be a text node).");return}o.nextElementSibling!==null&&(Hl.registerHandler(o.nextElementSibling,r),t=!0)}),dt(()=>{t&&Hl.unregisterHandler(n.$el.nextElementSibling)})},render(){return jd(this.$slots,"default")}});function hu(e){return e instanceof HTMLElement}function pu(e){for(let t=0;t=0;t--){const n=e.childNodes[t];if(hu(n)&&(vu(n)||gu(n)))return!0}return!1}function vu(e){if(!Bg(e))return!1;try{e.focus({preventScroll:!0})}catch{}return document.activeElement===e}function Bg(e){if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.getAttribute("disabled"))return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return e.type!=="hidden"&&e.type!=="file";case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}}let Qn=[];const Mg=Ee({name:"FocusTrap",props:{disabled:Boolean,active:Boolean,autoFocus:{type:Boolean,default:!0},onEsc:Function,initialFocusTo:String,finalFocusTo:String,returnFocusOnDeactivated:{type:Boolean,default:!0}},setup(e){const t=fs(),n=se(null),r=se(null);let o=!1,i=!1;const s=typeof document>"u"?null:document.activeElement;function l(){return Qn[Qn.length-1]===t}function a(y){var b;y.code==="Escape"&&l()&&((b=e.onEsc)===null||b===void 0||b.call(e,y))}Yt(()=>{ut(()=>e.active,y=>{y?(f(),it("keydown",document,a)):(Ve("keydown",document,a),o&&d())},{immediate:!0})}),dt(()=>{Ve("keydown",document,a),o&&d()});function c(y){if(!i&&l()){const b=u();if(b===null||b.contains(cs(y)))return;v("first")}}function u(){const y=n.value;if(y===null)return null;let b=y;for(;b=b.nextSibling,!(b===null||b instanceof Element&&b.tagName==="DIV"););return b}function f(){var y;if(!e.disabled){if(Qn.push(t),e.autoFocus){const{initialFocusTo:b}=e;b===void 0?v("first"):(y=Pl(b))===null||y===void 0||y.focus({preventScroll:!0})}o=!0,document.addEventListener("focus",c,!0)}}function d(){var y;if(e.disabled||(document.removeEventListener("focus",c,!0),Qn=Qn.filter(S=>S!==t),l()))return;const{finalFocusTo:b}=e;b!==void 0?(y=Pl(b))===null||y===void 0||y.focus({preventScroll:!0}):e.returnFocusOnDeactivated&&s instanceof HTMLElement&&(i=!0,s.focus({preventScroll:!0}),i=!1)}function v(y){if(l()&&e.active){const b=n.value,S=r.value;if(b!==null&&S!==null){const F=u();if(F==null||F===S){i=!0,b.focus({preventScroll:!0}),i=!1;return}i=!0;const _=y==="first"?pu(F):gu(F);i=!1,_||(i=!0,b.focus({preventScroll:!0}),i=!1)}}}function p(y){if(i)return;const b=u();b!==null&&(y.relatedTarget!==null&&b.contains(y.relatedTarget)?v("last"):v("first"))}function w(y){i||(y.relatedTarget!==null&&y.relatedTarget===n.value?v("last"):v("first"))}return{focusableStartRef:n,focusableEndRef:r,focusableStyle:"position: absolute; height: 0; width: 0;",handleStartFocus:p,handleEndFocus:w}},render(){const{default:e}=this.$slots;if(e===void 0)return null;if(this.disabled)return e();const{active:t,focusableStyle:n}=this;return E(Me,null,[E("div",{"aria-hidden":"true",tabindex:t?"0":"-1",ref:"focusableStartRef",style:n,onFocus:this.handleStartFocus}),e(),E("div",{"aria-hidden":"true",style:n,ref:"focusableEndRef",tabindex:t?"0":"-1",onFocus:this.handleEndFocus})])}});let $n=0,Ll="",jl="",Dl="",Nl="";const Wl=se("0px");function Hg(e){if(typeof document>"u")return;const t=document.documentElement;let n,r=!1;const o=()=>{t.style.marginRight=Ll,t.style.overflow=jl,t.style.overflowX=Dl,t.style.overflowY=Nl,Wl.value="0px"};Yt(()=>{n=ut(e,i=>{if(i){if(!$n){const s=window.innerWidth-t.offsetWidth;s>0&&(Ll=t.style.marginRight,t.style.marginRight=`${s}px`,Wl.value=`${s}px`),jl=t.style.overflow,Dl=t.style.overflowX,Nl=t.style.overflowY,t.style.overflow="hidden",t.style.overflowX="hidden",t.style.overflowY="hidden"}r=!0,$n++}else $n--,$n||o(),r=!1},{immediate:!0})}),dt(()=>{n==null||n(),r&&($n--,$n||o(),r=!1)})}const ps=se(!1),Ul=()=>{ps.value=!0},Kl=()=>{ps.value=!1};let er=0;const Fg=()=>(Br&&(bn(()=>{er||(window.addEventListener("compositionstart",Ul),window.addEventListener("compositionend",Kl)),er++}),dt(()=>{er<=1?(window.removeEventListener("compositionstart",Ul),window.removeEventListener("compositionend",Kl),er=0):er--})),ps);function Lg(e){const t={isDeactivated:!1};let n=!1;return dc(()=>{if(t.isDeactivated=!1,!n){n=!0;return}e()}),hc(()=>{t.isDeactivated=!0,n||(n=!0)}),t}const Vl="n-form-item";function jg(e,{defaultSize:t="medium",mergedSize:n,mergedDisabled:r}={}){const o=ze(Vl,null);qe(Vl,null);const i=V(n?()=>n(o):()=>{const{size:a}=e;if(a)return a;if(o){const{mergedSize:c}=o;if(c.value!==void 0)return c.value}return t}),s=V(r?()=>r(o):()=>{const{disabled:a}=e;return a!==void 0?a:o?o.disabled.value:!1}),l=V(()=>{const{status:a}=e;return a||(o==null?void 0:o.mergedValidationStatus.value)});return dt(()=>{o&&o.restoreValidation()}),{mergedSizeRef:i,mergedDisabledRef:s,mergedStatusRef:l,nTriggerFormBlur(){o&&o.handleContentBlur()},nTriggerFormChange(){o&&o.handleContentChange()},nTriggerFormFocus(){o&&o.handleContentFocus()},nTriggerFormInput(){o&&o.handleContentInput()}}}var Dg=typeof global=="object"&&global&&global.Object===Object&&global;const mu=Dg;var Ng=typeof self=="object"&&self&&self.Object===Object&&self,Wg=mu||Ng||Function("return this")();const Un=Wg;var Ug=Un.Symbol;const Mn=Ug;var bu=Object.prototype,Kg=bu.hasOwnProperty,Vg=bu.toString,tr=Mn?Mn.toStringTag:void 0;function qg(e){var t=Kg.call(e,tr),n=e[tr];try{e[tr]=void 0;var r=!0}catch{}var o=Vg.call(e);return r&&(t?e[tr]=n:delete e[tr]),o}var Gg=Object.prototype,Xg=Gg.toString;function Yg(e){return Xg.call(e)}var Zg="[object Null]",Jg="[object Undefined]",ql=Mn?Mn.toStringTag:void 0;function Mr(e){return e==null?e===void 0?Jg:Zg:ql&&ql in Object(e)?qg(e):Yg(e)}function Kn(e){return e!=null&&typeof e=="object"}var Qg="[object Symbol]";function ev(e){return typeof e=="symbol"||Kn(e)&&Mr(e)==Qg}function tv(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n0){if(++t>=$v)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Ov(e){return function(){return e}}var zv=function(){try{var e=vs(Object,"defineProperty");return e({},"",{}),e}catch{}}();const mo=zv;var Iv=mo?function(e,t){return mo(e,"toString",{configurable:!0,enumerable:!1,value:Ov(t),writable:!0})}:xu;const Av=Iv;var kv=Tv(Av);const Bv=kv;var Mv=9007199254740991,Hv=/^(?:0|[1-9]\d*)$/;function Cu(e,t){var n=typeof e;return t=t??Mv,!!t&&(n=="number"||n!="symbol"&&Hv.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=Uv}function bs(e){return e!=null&&wu(e.length)&&!gs(e)}function Kv(e,t,n){if(!yn(n))return!1;var r=typeof t;return(r=="number"?bs(n)&&Cu(t,n.length):r=="string"&&t in n)?ko(n[t],e):!1}function Vv(e){return Wv(function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(o--,i):void 0,s&&Kv(n[0],n[1],s)&&(i=o<3?void 0:i,o=1),t=Object(t);++r-1}function ob(e,t){var n=this.__data__,r=Bo(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function kt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++to?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r=r?e:xb(e,t,n)}var wb="\\ud800-\\udfff",Sb="\\u0300-\\u036f",_b="\\ufe20-\\ufe2f",Eb="\\u20d0-\\u20ff",$b=Sb+_b+Eb,Pb="\\ufe0e\\ufe0f",Rb="\\u200d",Tb=RegExp("["+Rb+wb+$b+Pb+"]");function Au(e){return Tb.test(e)}function Ob(e){return e.split("")}var ku="\\ud800-\\udfff",zb="\\u0300-\\u036f",Ib="\\ufe20-\\ufe2f",Ab="\\u20d0-\\u20ff",kb=zb+Ib+Ab,Bb="\\ufe0e\\ufe0f",Mb="["+ku+"]",Ri="["+kb+"]",Ti="\\ud83c[\\udffb-\\udfff]",Hb="(?:"+Ri+"|"+Ti+")",Bu="[^"+ku+"]",Mu="(?:\\ud83c[\\udde6-\\uddff]){2}",Hu="[\\ud800-\\udbff][\\udc00-\\udfff]",Fb="\\u200d",Fu=Hb+"?",Lu="["+Bb+"]?",Lb="(?:"+Fb+"(?:"+[Bu,Mu,Hu].join("|")+")"+Lu+Fu+")*",jb=Lu+Fu+Lb,Db="(?:"+[Bu+Ri+"?",Ri,Mu,Hu,Mb].join("|")+")",Nb=RegExp(Ti+"(?="+Ti+")|"+Db+jb,"g");function Wb(e){return e.match(Nb)||[]}function Ub(e){return Au(e)?Wb(e):Ob(e)}function Kb(e){return function(t){t=db(t);var n=Au(t)?Ub(t):void 0,r=n?n[0]:t.charAt(0),o=n?Cb(n,1).join(""):t.slice(1);return r[e]()+o}}var Vb=Kb("toUpperCase");const qb=Vb;function Gb(){this.__data__=new kt,this.size=0}function Xb(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Yb(e){return this.__data__.get(e)}function Zb(e){return this.__data__.has(e)}var Jb=200;function Qb(e,t){var n=this.__data__;if(n instanceof kt){var r=n.__data__;if(!Ou||r.length