import{ef as qe,eg as Je,r as O,s as fe,_ as l,G as be,cd as Re,al as Ve,V as A,$ as Qe,Z as Ke,f as c,a as ue,Q as Oe,co as Ee,a1 as le,H as J,ac as et,p as u,F as Ge,eh as tt,a2 as re,cO as te,c0 as Ae,U as rt,ei as nt,c3 as Ie,ai as at,aJ as it,aX as de,c8 as ot,d0 as lt,d1 as ut,a3 as Ue,dw as je,d as st,dM as vt}from"./index.6f10b46a.js";var ct="[object Number]";function ft(r){return typeof r=="number"||qe(r)&&Je(r)==ct}function dt(){var r=document.documentElement.clientWidth,e=window.innerHeight||document.documentElement.clientHeight;return{width:r,height:e}}function Te(r){var e=r.getBoundingClientRect(),t=document.documentElement;return{left:e.left+(window.pageXOffset||t.scrollLeft)-(t.clientLeft||document.body.clientLeft||0),top:e.top+(window.pageYOffset||t.scrollTop)-(t.clientTop||document.body.clientTop||0)}}function mt(r){var e=O(null),t=fe(l({},r)),n=O([]),a=function(p){e.value===null&&(n.value=[],e.value=Re(function(){var m;n.value.forEach(function(j){m=l(l({},m),j)}),Ve(t,m),e.value=null})),n.value.push(p)};return be(function(){e.value&&Re.cancel(e.value)}),[t,a]}function ke(r,e,t,n){var a=e+t,o=(t-n)/2;if(t>n){if(e>0)return A({},r,o);if(e<0&&an)return A({},r,e<0?o:-o);return{}}function gt(r,e,t,n){var a=dt(),o=a.width,p=a.height,m=null;return r<=o&&e<=p?m={x:0,y:0}:(r>o||e>p)&&(m=l(l({},ke("x",t,r,o)),ke("y",n,e,p))),m}var Ne=Symbol("previewGroupContext"),ye={provide:function(e){Qe(Ne,e)},inject:function(){return Ke(Ne,{isPreviewGroup:O(!1),previewUrls:c(function(){return new Map}),setPreviewUrls:function(){},current:O(null),setCurrent:function(){},setShowPreview:function(){},setMousePosition:function(){},registerImage:null,rootClassName:""})}},pt=ue({compatConfig:{MODE:3},name:"PreviewGroup",inheritAttrs:!1,props:{previewPrefixCls:String,preview:{type:[Boolean,Object],default:!0},icons:{type:Object,default:function(){return{}}}},setup:function(e,t){var n=t.slots,a=c(function(){var f={visible:void 0,onVisibleChange:function(){},getContainer:void 0,current:0};return Oe(e.preview)==="object"?We(e.preview,f):f}),o=fe(new Map),p=O(),m=c(function(){return a.value.visible}),j=c(function(){return a.value.getContainer}),U=function(s,M){var w,b;(w=(b=a.value).onVisibleChange)===null||w===void 0||w.call(b,s,M)},C=Ee(!!m.value,{value:m,onChange:U}),x=le(C,2),D=x[0],g=x[1],L=O(null),W=c(function(){return m.value!==void 0}),T=c(function(){return Array.from(o.keys())}),S=c(function(){return T.value[a.value.current]}),P=c(function(){return new Map(Array.from(o).filter(function(f){var s=le(f,2),M=s[1].canPreview;return!!M}).map(function(f){var s=le(f,2),M=s[0],w=s[1].url;return[M,w]}))}),Z=function(s,M){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;o.set(s,{url:M,canPreview:w})},R=function(s){p.value=s},y=function(s){L.value=s},I=function(s,M){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,b=function(){o.delete(s)};return o.set(s,{url:M,canPreview:w}),b},H=function(s){s==null||s.stopPropagation(),g(!1),y(null)};return J(S,function(f){R(f)},{immediate:!0,flush:"post"}),et(function(){D.value&&W.value&&R(S.value)},{flush:"post"}),ye.provide({isPreviewGroup:O(!0),previewUrls:P,setPreviewUrls:Z,current:p,setCurrent:R,setShowPreview:g,setMousePosition:y,registerImage:I}),function(){var f=Ve({},a.value);return u(Ge,null,[n.default&&n.default(),u(He,l(l({},f),{},{"ria-hidden":!D.value,visible:D.value,prefixCls:e.previewPrefixCls,onClose:H,mousePosition:L.value,src:P.value.get(p.value),icons:e.icons,getContainer:j.value}),null)])}}}),Ze=pt,B={x:0,y:0},wt=l(l({},tt()),{},{src:String,alt:String,rootClassName:String,icons:{type:Object,default:function(){return{}}}}),ht=ue({compatConfig:{MODE:3},name:"Preview",inheritAttrs:!1,props:wt,emits:["close","afterClose"],setup:function(e,t){var n=t.emit,a=t.attrs,o=fe(e.icons),p=o.rotateLeft,m=o.rotateRight,j=o.zoomIn,U=o.zoomOut,C=o.close,x=o.left,D=o.right,g=O(1),L=O(0),W=mt(B),T=le(W,2),S=T[0],P=T[1],Z=function(){return n("close")},R=O(),y=fe({originX:0,originY:0,deltaX:0,deltaY:0}),I=O(!1),H=ye.inject(),f=H.previewUrls,s=H.current,M=H.isPreviewGroup,w=H.setCurrent,b=c(function(){return f.value.size}),E=c(function(){return Array.from(f.value.keys())}),k=c(function(){return E.value.indexOf(s.value)}),me=c(function(){return M.value?f.value.get(s.value):e.src}),ne=c(function(){return M.value&&b.value>1}),G=O({wheelDirection:0}),Q=function(){g.value=1,L.value=0,P(B),n("afterClose")},ae=function(){g.value++,P(B)},d=function(){g.value>1&&g.value--,P(B)},h=function(){L.value+=90},z=function(){L.value-=90},$=function(i){i.preventDefault(),i.stopPropagation(),k.value>0&&w(E.value[k.value-1])},_=function(i){i.preventDefault(),i.stopPropagation(),k.value0&&w(E.value[k.value-1]):i.keyCode===Ie.RIGHT&&k.value0?d():v<0&&ae()})}),Ae(function(){oe()}),function(){var v=e.visible,i=e.prefixCls,V=e.rootClassName;return u(nt,l(l({},a),{},{transitionName:"zoom",maskTransitionName:"fade",closable:!1,keyboard:!0,prefixCls:i,onClose:Z,afterClose:Q,visible:v,wrapClassName:ge,rootClassName:V,getContainer:e.getContainer}),{default:function(){return[u("ul",{class:"".concat(e.prefixCls,"-operations")},[ve.map(function(N){var Y=N.icon,F=N.onClick,K=N.type,ee=N.disabled;return u("li",{class:re(se,A({},"".concat(e.prefixCls,"-operations-operation-disabled"),ee&&(ee==null?void 0:ee.value))),onClick:F,key:K},[rt(Y,{class:pe})])})]),u("div",{class:"".concat(e.prefixCls,"-img-wrapper"),style:{transform:"translate3d(".concat(S.x,"px, ").concat(S.y,"px, 0)")}},[u("img",{onMousedown:we,onDblclick:Pe,ref:R,class:"".concat(e.prefixCls,"-img"),src:me.value,alt:e.alt,style:{transform:"scale3d(".concat(g.value,", ").concat(g.value,", 1) rotate(").concat(L.value,"deg)")}},null)]),ne.value&&u("div",{class:re("".concat(e.prefixCls,"-switch-left"),A({},"".concat(e.prefixCls,"-switch-left-disabled"),k.value<=0)),onClick:$},[x]),ne.value&&u("div",{class:re("".concat(e.prefixCls,"-switch-right"),A({},"".concat(e.prefixCls,"-switch-right-disabled"),k.value>=b.value-1)),onClick:_},[D])]}})}}}),He=ht,Ct=["icons","maskClassName","src"],Fe=function(){return{src:String,wrapperClassName:String,wrapperStyle:{type:Object,default:void 0},rootClassName:String,prefixCls:String,previewPrefixCls:String,previewMask:{type:[Boolean,Function],default:void 0},placeholder:at.any,fallback:String,preview:{type:[Boolean,Object],default:!0},onClick:{type:Function},onError:{type:Function}}},We=function(e,t){var n=l({},e);return Object.keys(t).forEach(function(a){e[a]===void 0&&(n[a]=t[a])}),n},Pt=0,Xe=ue({compatConfig:{MODE:3},name:"Image",inheritAttrs:!1,props:Fe(),emits:["click","error"],setup:function(e,t){var n=t.attrs,a=t.slots,o=t.emit,p=c(function(){return e.prefixCls}),m=c(function(){return"".concat(p.value,"-preview")}),j=c(function(){var d={visible:void 0,onVisibleChange:function(){},getContainer:void 0};return Oe(e.preview)==="object"?We(e.preview,d):d}),U=c(function(){return e.placeholder&&e.placeholder!==!0||a.placeholder}),C=c(function(){return j.value.visible}),x=c(function(){return j.value.getContainer}),D=c(function(){return C.value!==void 0}),g=function(h,z){var $,_;($=(_=j.value).onVisibleChange)===null||$===void 0||$.call(_,h,z)},L=Ee(!!C.value,{value:C,onChange:g}),W=le(L,2),T=W[0],S=W[1];J(T,function(d,h){g(d,h)});var P=O(U.value?"loading":"normal");J(function(){return e.src},function(){P.value=U.value?"loading":"normal"});var Z=O(null),R=c(function(){return P.value==="error"}),y=ye.inject(),I=y.isPreviewGroup,H=y.setCurrent,f=y.setShowPreview,s=y.setMousePosition,M=y.registerImage,w=O(Pt++),b=c(function(){return e.preview&&!R.value}),E=function(){P.value="normal"},k=function(h){P.value="error",o("error",h)},me=function(h){if(!D.value){var z=Te(h.target),$=z.left,_=z.top;I.value?(H(w.value),s({x:$,y:_})):Z.value={x:$,y:_}}I.value?f(!0):S(!0),o("click",h)},ne=function(){S(!1),D.value||(Z.value=null)},G=O(null);J(function(){return G},function(){P.value==="loading"&&G.value.complete&&(G.value.naturalWidth||G.value.naturalHeight)&&E()});var Q=function(){};be(function(){J([function(){return e.src},b],function(){if(Q(),!I.value)return function(){};Q=M(w.value,e.src,b.value),b.value||Q()},{flush:"post",immediate:!0})}),Ae(Q);var ae=function(h){return ft(h)?h+"px":h};return function(){var d=e.prefixCls,h=e.wrapperClassName,z=e.fallback,$=e.src,_=e.placeholder,ge=e.wrapperStyle,se=e.rootClassName,pe=n.width,ve=n.height,ce=n.crossorigin,we=n.decoding,ie=n.alt,he=n.sizes,Ce=n.srcset,Pe=n.usemap,oe=n.class,v=n.style,i=j.value,V=i.icons,X=i.maskClassName,N=i.src,Y=it(i,Ct),F=re(d,h,se,A({},"".concat(d,"-error"),R.value)),K=R.value&&z?z:N!=null?N:$,ee={crossorigin:ce,decoding:we,alt:ie,sizes:he,srcset:Ce,usemap:Pe,class:re("".concat(d,"-img"),A({},"".concat(d,"-img-placeholder"),_===!0),oe),style:l({height:ve},v)};return u(Ge,null,[u("div",{class:F,onClick:b.value?me:function(Be){o("click",Be)},style:l({width:ae(pe),height:ae(ve)},ge)},[u("img",l(l(l({},ee),R.value&&z?{src:z}:{onLoad:E,onError:k,src:$}),{},{ref:G}),null),P.value==="loading"&&u("div",{"aria-hidden":"true",class:"".concat(d,"-placeholder")},[_||a.placeholder&&a.placeholder()]),a.previewMask&&b.value&&u("div",{class:["".concat(d,"-mask"),X]},[a.previewMask()])]),!I.value&&b.value&&u(He,l(l({},Y),{},{"aria-hidden":!T.value,visible:T.value,prefixCls:m.value,onClose:ne,mousePosition:Z.value,src:K,alt:ie,getContainer:x.value,icons:V,rootClassName:se}),null)])}}});Xe.PreviewGroup=Ze;var bt=Xe,Ot={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"},yt=Ot;function ze(r){for(var e=1;e