@zlooks.cn/password-auth-server 1.1.12 → 1.1.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (20) hide show
  1. package/.hile-rsc/build-mvrww80l-445898fc/client-browser/chunks/chunk-IDTOSCVG.js +241 -0
  2. package/.hile-rsc/build-mvrww80l-445898fc/client-browser/src-plugin-page-frame-07c4de56a6-B2SFAOQL.css +1 -0
  3. package/.hile-rsc/build-mvrww80l-445898fc/client-browser/src-plugin-page-frame-07c4de56a6-BWD74MY6.js +27 -0
  4. package/.hile-rsc/build-mvrww80l-445898fc/client-browser/src-plugin-password-form-3bd63d69e5-3P7GHZ6Q.js +6 -0
  5. package/.hile-rsc/build-mvrww80l-445898fc/client-browser/src-plugin-password-form-3bd63d69e5-FRMRBWWA.css +1 -0
  6. package/.hile-rsc/build-mvrww80l-445898fc/client-ssr/chunks/chunk-H6EHFMQF.js +242 -0
  7. package/.hile-rsc/build-mvrww80l-445898fc/client-ssr/src-plugin-page-frame-07c4de56a6-E6KLC3ZS.js +27 -0
  8. package/.hile-rsc/build-mvrww80l-445898fc/client-ssr/src-plugin-password-form-3bd63d69e5-RMX3P3O7.js +6 -0
  9. package/.hile-rsc/{build-mvnegd9x-59974937 → build-mvrww80l-445898fc}/plugin.json +34 -34
  10. package/.hile-rsc/{build-mvnegd9x-59974937 → build-mvrww80l-445898fc}/server-rsc/index.js +2 -2
  11. package/package.json +2 -2
  12. package/.hile-rsc/build-mvnegd9x-59974937/client-browser/chunks/chunk-DFJ6HO4A.js +0 -252
  13. package/.hile-rsc/build-mvnegd9x-59974937/client-browser/src-plugin-page-frame-07c4de56a6-GLDPP7WQ.css +0 -1
  14. package/.hile-rsc/build-mvnegd9x-59974937/client-browser/src-plugin-page-frame-07c4de56a6-KY4QFFE6.js +0 -16
  15. package/.hile-rsc/build-mvnegd9x-59974937/client-browser/src-plugin-password-form-3bd63d69e5-6HVWNCR6.js +0 -6
  16. package/.hile-rsc/build-mvnegd9x-59974937/client-browser/src-plugin-password-form-3bd63d69e5-XRKUN4RP.css +0 -1
  17. package/.hile-rsc/build-mvnegd9x-59974937/client-ssr/chunks/chunk-KG33MVOX.js +0 -123
  18. package/.hile-rsc/build-mvnegd9x-59974937/client-ssr/src-plugin-page-frame-07c4de56a6-6A2S6XFE.js +0 -146
  19. package/.hile-rsc/build-mvnegd9x-59974937/client-ssr/src-plugin-password-form-3bd63d69e5-QE76CW6Q.js +0 -352
  20. /package/.hile-rsc/{build-mvnegd9x-59974937 → build-mvrww80l-445898fc}/styles/4b3193c4f2b317ffed425ccf401342a4bdd6ccfd5f9c42def3315e776f166975.css +0 -0
@@ -0,0 +1,27 @@
1
+ "use client";import{$ as xt,$a as ko,Aa as Po,Ab as dt,Ba as Oo,Ca as ce,Cb as Ga,Da as _t,E as bc,Ea as no,F as Sc,Fa as ve,G as ie,Ga as kt,H as xa,Ha as lt,I as No,Ia as Fe,J as se,Ja as Tt,Jb as Ua,K as le,Ka as It,Kb as Ct,L as yt,La as zt,Lb as Xa,M as kr,Ma as Bt,N as Oe,Na as ao,O as Se,Oa as Mo,P as Re,Pa as za,Q as Ue,Qa as Dt,Qb as Za,Ra as Ba,Rb as Ka,S as re,Sa as ct,T as Ee,U as wo,Ua as Ze,V as Ne,W as Ot,X as xe,Xa as _o,Z as je,Za as Da,a as ee,aa as Ca,ab as Wt,b as A,ba as Ce,c as pe,ca as va,d as B,da as ba,e as De,ea as Sa,f as Ge,fa as Tr,g as d,ga as $o,h as pa,ha as Ra,i as Z,ia as Ea,j as Ro,ja as Na,jb as Wa,k as ga,ka as Mt,l as Pt,la as wa,lb as Ha,m as j,ma as Ir,n as ye,na as $a,nb as zr,o as Ae,oa as Rc,ob as La,p as D,pa as Pa,pb as To,q as Y,qa as Oa,qb as Te,r as K,ra as Ma,rb as Br,s as ha,t as z,tb as Aa,u as w,ua as _a,ub as Dr,v as ya,va as st,vb as Ec,w as Eo,wa as ka,wb as ja,x as I,xa as Xe,xb as Fa,y as ae,ya as Ta,yb as qa,z as P,za as Ia,zb as Va}from"./chunks/chunk-H6EHFMQF.js";var Ja=ee(Wr=>{"use strict";Object.defineProperty(Wr,"__esModule",{value:!0});Wr.default=wc;var Ya=Nc((w(),pe(z)));function Qa(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,o=new WeakMap;return(Qa=function(r){return r?o:t})(e)}function Nc(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var o=Qa(t);if(o&&o.has(e))return o.get(e);var r={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)){var i=a?Object.getOwnPropertyDescriptor(e,n):null;i&&(i.get||i.set)?Object.defineProperty(r,n,i):r[n]=e[n]}return r.default=e,o&&o.set(e,r),r}function wc(){let[e,t]=Ya.useState({}),o=Ya.useCallback((r,a)=>{if(!a){t(i=>{if(!(r in i))return i;let s={...i};return delete s[r],s});return}let n={width:a.offsetWidth,height:a.offsetHeight};t(i=>{let s=i[r];return s&&s.width===n.width&&s.height===n.height?i:{...i,[r]:n}})},[]);return[e,o]}});var ti=ee(Hr=>{"use strict";Object.defineProperty(Hr,"__esModule",{value:!0});Hr.default=_c;var $c=Mc((w(),pe(z))),Pc=Oc(Ja());function Oc(e){return e&&e.__esModule?e:{default:e}}function ei(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,o=new WeakMap;return(ei=function(r){return r?o:t})(e)}function Mc(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var o=ei(t);if(o&&o.has(e))return o.get(e);var r={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)){var i=a?Object.getOwnPropertyDescriptor(e,n):null;i&&(i.get||i.set)?Object.defineProperty(r,n,i):r[n]=e[n]}return r.default=e,o&&o.set(e,r),r}function _c(e,t,o=0){let[r,a]=(0,Pc.default)(),[n,i,s,l]=$c.useMemo(()=>{let u=0,c=0,g=t?.threshold??0,m=new Map,f,p;return e.slice().reverse().forEach((h,C)=>{let x=String(h.key),y=r[x]?.height??0,v=t&&C>0?u+(t.offset??0)-y:u;m.set(x,v),C===0&&(f=y,p=r[x]?.width??0),(!t||C<g)&&(c=Math.max(c,v+y)),t?u=v+y:u+=y+o}),[m,c,f,p]},[e,o,r,t]);return[n,a,i,s,l]}});var ni=ee(Io=>{"use strict";Object.defineProperty(Io,"__esModule",{value:!0});Io.default=void 0;var oi=8,ri=3,kc=e=>{let t={offset:oi,threshold:ri};return e&&typeof e=="object"&&(t.offset=e.offset??oi,t.threshold=e.threshold??ri),[!!e,t]},Rp=Io.default=kc});var ii=ee(Lr=>{"use strict";Object.defineProperty(Lr,"__esModule",{value:!0});Lr.default=Ic;var vt=Tc((w(),pe(z))),zo=ie();function ai(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,o=new WeakMap;return(ai=function(r){return r?o:t})(e)}function Tc(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var o=ai(t);if(o&&o.has(e))return o.get(e);var r={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)){var i=a?Object.getOwnPropertyDescriptor(e,n):null;i&&(i.get||i.set)?Object.defineProperty(r,n,i):r[n]=e[n]}return r.default=e,o&&o.set(e,r),r}function Ic(e,t,o){let a=Math.max(typeof e=="number"?e:0,0)*1e3,n=(0,zo.useEvent)(t),i=(0,zo.useEvent)(o),[s,l]=vt.useState(a>0),u=vt.useRef(0),c=vt.useRef(null);function g(){let p=Date.now(),h=c.current;h!==null&&(u.current+=p-h),c.current=p}let m=vt.useCallback(()=>{g(),l(!1)},[]),f=vt.useCallback(()=>{a>0?(c.current=Date.now(),l(!0)):i(0)},[a]);return vt.useEffect(()=>{u.current=0,l(a>0)},[a]),vt.useEffect(()=>{if(!s)return;let p=null;function h(){g(),u.current>=a?(i(1),n()):(i(Math.min(u.current/a,1)),p=(0,zo.raf)(h))}return h(),()=>{zo.raf.cancel(p)}},[a,s]),[f,m]}});var li=ee(jr=>{"use strict";Object.defineProperty(jr,"__esModule",{value:!0});jr.default=Dc;var zc=ie(),Ar=Bc((w(),pe(z)));function si(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,o=new WeakMap;return(si=function(r){return r?o:t})(e)}function Bc(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var o=si(t);if(o&&o.has(e))return o.get(e);var r={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)){var i=a?Object.getOwnPropertyDescriptor(e,n):null;i&&(i.get||i.set)?Object.defineProperty(r,n,i):r[n]=e[n]}return r.default=e,o&&o.set(e,r),r}function Dc(e){let t=Ar.useMemo(()=>e===!1?{closeIcon:null,disabled:!0}:typeof e=="object"&&e!==null?e:{},[e]),o=Ar.useMemo(()=>({...t,closeIcon:"closeIcon"in t?t.closeIcon:"\xD7",disabled:t.disabled??!1}),[t]),r=Ar.useMemo(()=>(0,zc.pickAttrs)(o,!0),[o]);return[!!e,o,r]}});var Fr=ee(Bo=>{"use strict";Object.defineProperty(Bo,"__esModule",{value:!0});Bo.default=void 0;var Wc=Hc((w(),pe(z)));function ci(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,o=new WeakMap;return(ci=function(r){return r?o:t})(e)}function Hc(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var o=ci(t);if(o&&o.has(e))return o.get(e);var r={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)){var i=a?Object.getOwnPropertyDescriptor(e,n):null;i&&(i.get||i.set)?Object.defineProperty(r,n,i):r[n]=e[n]}return r.default=e,o&&o.set(e,r),r}var Lc=({className:e,style:t,percent:o})=>Wc.createElement("progress",{className:e,max:"100",value:o,style:t}),$p=Bo.default=Lc});var Vr=ee(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Wo.default=void 0;var Me=Vc((w(),pe(z))),tt=yt(),Ac=qr(ii()),jc=ie(),Fc=qr(li()),qc=qr(Fr());function qr(e){return e&&e.__esModule?e:{default:e}}function di(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,o=new WeakMap;return(di=function(r){return r?o:t})(e)}function Vc(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var o=di(t);if(o&&o.has(e))return o.get(e);var r={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)){var i=a?Object.getOwnPropertyDescriptor(e,n):null;i&&(i.get||i.set)?Object.defineProperty(r,n,i):r[n]=e[n]}return r.default=e,o&&o.set(e,r),r}function Do(){return Do=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Do.apply(this,arguments)}var Gc=Me.forwardRef((e,t)=>{let{prefixCls:o,className:r,style:a,classNames:n,styles:i,components:s,title:l,description:u,icon:c,actions:g,role:m,closable:f,offset:p,notificationIndex:h,stackInThreshold:C,props:x,duration:y=4.5,showProgress:v,hovering:E,pauseOnHover:N=!0,onClick:S,onMouseEnter:R,onMouseLeave:M,onClose:b}=e,[_,O]=Me.useState(0),$=`${o}-notice`,[T,W,k]=(0,Fc.default)(f),L=(0,jc.useEvent)(()=>{W.onClose?.(),b?.()}),[H,F]=Me.useState(!1),[q,Q]=(0,Ac.default)(y,L,O),V=100-Math.min(Math.max(_*100,0),100),U=s?.progress||qc.default;Me.useEffect(()=>{N&&(E?Q():H||q())},[E,H,Q,q,N]);function te(ge){F(!0),N&&Q(),R?.(ge)}function oe(ge){F(!1),N&&!E&&q(),M?.(ge)}function J(ge){ge.preventDefault(),ge.stopPropagation(),L()}let be=Me.useRef(p);p!==void 0&&(be.current=p);let ze=Me.useRef(h);h!==void 0&&(ze.current=h);let we=p??be.current,$e=h??ze.current??0,me=l!=null?Me.createElement("div",{className:(0,tt.clsx)(`${$}-title`,n?.title),style:i?.title},l):null,ne=u!=null?Me.createElement("div",{className:(0,tt.clsx)(`${$}-description`,n?.description),style:i?.description},u):null,fe=me!==null,at=ne!==null,de=null;fe&&at?de=Me.createElement("div",{className:(0,tt.clsx)(`${$}-section`,n?.section),style:i?.section},me,ne):de=me||ne,c!=null&&(de=Me.createElement("div",{className:(0,tt.clsx)(`${$}-wrapper`,n?.wrapper),style:i?.wrapper},Me.createElement("div",{className:(0,tt.clsx)(`${$}-icon`,n?.icon),style:i?.icon},c),de));let Et=g?Me.createElement("div",{className:(0,tt.clsx)(`${$}-actions`,n?.actions),style:i?.actions},g):null,it={"--notification-index":$e,...i?.root,...a};we!==void 0&&(it["--notification-y"]=`${we}px`);let Qt=m??x?.role??"alert";return Me.createElement("div",Do({},x,{ref:t,role:Qt,"data-notification-index":$e,className:(0,tt.clsx)($,r,n?.root,{[`${$}-closable`]:T,[`${$}-stack-in-threshold`]:C}),style:it,onClick:S,onMouseEnter:te,onMouseLeave:oe}),de,Et,T&&Me.createElement("button",Do({className:(0,tt.clsx)(`${$}-close`,n?.close),"aria-label":"Close"},k,{style:i?.close,onClick:J}),W.closeIcon),v&&typeof y=="number"&&y>0&&Me.createElement(U,{className:(0,tt.clsx)(`${$}-progress`,n?.progress),percent:V,style:i?.progress}))}),Op=Wo.default=Gc});var Ur=ee(Ht=>{"use strict";Object.defineProperty(Ht,"__esModule",{value:!0});Ht.default=Ht.NotificationContext=void 0;var Gr=Uc((w(),pe(z)));function ui(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,o=new WeakMap;return(ui=function(r){return r?o:t})(e)}function Uc(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var o=ui(t);if(o&&o.has(e))return o.get(e);var r={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)){var i=a?Object.getOwnPropertyDescriptor(e,n):null;i&&(i.get||i.set)?Object.defineProperty(r,n,i):r[n]=e[n]}return r.default=e,o&&o.set(e,r),r}var Xc=Ht.NotificationContext=Gr.createContext({}),Zc=({children:e,classNames:t})=>{let o=Gr.useMemo(()=>({classNames:t}),[t]);return Gr.createElement(Xc.Provider,{value:o},e)},_p=Ht.default=Zc});var fi=ee(Ho=>{"use strict";Object.defineProperty(Ho,"__esModule",{value:!0});Ho.default=void 0;var Kc=yt(),Xr=Yc((w(),pe(z)));function mi(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,o=new WeakMap;return(mi=function(r){return r?o:t})(e)}function Yc(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var o=mi(t);if(o&&o.has(e))return o.get(e);var r={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)){var i=a?Object.getOwnPropertyDescriptor(e,n):null;i&&(i.get||i.set)?Object.defineProperty(r,n,i):r[n]=e[n]}return r.default=e,o&&o.set(e,r),r}function Zr(){return Zr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Zr.apply(this,arguments)}var Qc=Xr.forwardRef((e,t)=>{let{listPrefixCls:o,height:r,topNoticeHeight:a=0,topNoticeWidth:n=0,className:i,style:s,...l}=e,u=`${o}-content`,c=Xr.useRef(r),g=c.current,m=r<g?"decrease":"increase";c.current=r;let f={...s,height:r,"--top-notificiation-height":`${a}px`,"--top-notificiation-width":`${n}px`};return Xr.createElement("div",Zr({},l,{className:(0,Kc.clsx)(u,`${u}-${m}`,i),style:f,ref:t}))}),Tp=Ho.default=Qc});var Yr=ee(jo=>{"use strict";Object.defineProperty(jo,"__esModule",{value:!0});jo.default=void 0;var Jc=kr(),ed=ie(),Kr=yt(),We=id((w(),pe(z))),td=Ao(ti()),od=Ao(ni()),rd=Ao(Vr()),nd=Ur(),ad=Ao(fi());function Ao(e){return e&&e.__esModule?e:{default:e}}function pi(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,o=new WeakMap;return(pi=function(r){return r?o:t})(e)}function id(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var o=pi(t);if(o&&o.has(e))return o.get(e);var r={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)){var i=a?Object.getOwnPropertyDescriptor(e,n):null;i&&(i.get||i.set)?Object.defineProperty(r,n,i):r[n]=e[n]}return r.default=e,o&&o.set(e,r),r}function Lo(){return Lo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Lo.apply(this,arguments)}var gi=["wrapper","root","icon","section","title","description","actions","close","progress"];function sd(e){return gi.reduce((t,o)=>(t[o]=(0,Kr.clsx)(...e.map(r=>r?.[o])),t),{})}function ld(e){return gi.reduce((t,o)=>(t[o]=Object.assign({},...e.map(r=>r?.[o])),t),{})}function cd(e,t){let o=String(t),r=e.findIndex(a=>a.key===o);if(r!==-1)return e.length-r-1}var dd=e=>{let{config:t,components:o,contextClassNames:r,classNames:a,styles:n,className:i,style:s,nodeRef:l,listHovering:u,stackEnabled:c,pauseOnHover:g,setNodeSize:m,onNoticeClose:f,...p}=e,{key:h,placement:C,...x}=t,y=String(h),v=We.useCallback(N=>{m(y,N)},[m,y]),E=(0,ed.useComposeRef)(l,v);return We.createElement(rd.default,Lo({},x,p,{ref:E,className:(0,Kr.clsx)(r?.notice,t.className,i),style:{...s,...t.style},classNames:sd([a,t.classNames]),styles:ld([n,t.styles]),components:{...o,...t.components},hovering:c&&u,pauseOnHover:t.pauseOnHover??g,onClose:()=>{t.onClose?.(),f?.(h)}}))},ud=e=>{let{configList:t=[],prefixCls:o="rc-notification",pauseOnHover:r,classNames:a,styles:n,components:i,stack:s,motion:l,placement:u,className:c,style:g,onNoticeClose:m,onAllRemoved:f}=e,{classNames:p}=We.useContext(nd.NotificationContext),h=We.useMemo(()=>t.map(F=>({config:F,key:String(F.key)})),[t]),C=typeof l=="function"?l(u):l,[x,{offset:y,threshold:v}]=(0,od.default)(s),[E,N]=We.useState(!1),S=x&&(E||h.length<=v),R=We.useMemo(()=>{if(!(!x||S))return{offset:y,threshold:v}},[S,y,x,v]),[M,b]=We.useState(0),_=We.useRef(null),[O,$,T,W,k]=(0,td.default)(t,R,M),L=!!t.length;We.useEffect(()=>{let F=_.current;if(!F)return;let{gap:q,rowGap:Q}=window.getComputedStyle(F),V=parseFloat(Q||q)||0;b(U=>U===V?U:V)},[L]);let H=`${o}-list`;return We.createElement("div",{className:(0,Kr.clsx)(o,H,`${o}-${u}`,p?.list,c,a?.list,{[`${o}-stack`]:x,[`${o}-stack-expanded`]:S,[`${H}-hovered`]:E}),onMouseEnter:()=>{N(!0)},onMouseLeave:()=>{N(!1)},style:{...n?.list,...g}},We.createElement(ad.default,{listPrefixCls:H,height:T,topNoticeHeight:W,topNoticeWidth:k,className:a?.listContent,style:n?.listContent,ref:_},We.createElement(Jc.CSSMotionList,Lo({component:!1,keys:h,motionAppear:!0},C,{onAllRemoved:()=>{u&&f?.(u)}}),({config:F,className:q,style:Q},V)=>{let{key:U}=F,te=String(U),oe=cd(h,U),J=x&&oe!==void 0&&oe<v;return We.createElement(dd,{key:U,config:F,components:i,contextClassNames:p,classNames:a,styles:n,className:q,style:Q,nodeRef:V,prefixCls:o,offset:O.get(te),notificationIndex:oe,stackInThreshold:J,listHovering:E,stackEnabled:x,pauseOnHover:r,setNodeSize:$,onNoticeClose:m})})))},zp=jo.default=ud});var yi=ee(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});Fo.default=void 0;var Ve=hd((w(),pe(z))),md=(Sc(),pe(bc)),fd=ie(),pd=gd(Yr());function gd(e){return e&&e.__esModule?e:{default:e}}function hi(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,o=new WeakMap;return(hi=function(r){return r?o:t})(e)}function hd(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var o=hi(t);if(o&&o.has(e))return o.get(e);var r={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)){var i=a?Object.getOwnPropertyDescriptor(e,n):null;i&&(i.get||i.set)?Object.defineProperty(r,n,i):r[n]=e[n]}return r.default=e,o&&o.set(e,r),r}var yd=Ve.forwardRef((e,t)=>{let{prefixCls:o="rc-notification",container:r,motion:a,maxCount:n,pauseOnHover:i,classNames:s,styles:l,components:u,className:c,style:g,onAllRemoved:m,stack:f,renderNotifications:p}=e,[h,C]=Ve.useState([]),[x,y]=Ve.useState({}),v=Ve.useRef(!1);Ve.useImperativeHandle(t,()=>({open:S=>{C(R=>{let M=[...R],b=M.findIndex(O=>O.key===S.key),_={...S};return b>=0?(_.times=(R[b]?.times??0)+1,M[b]=_):(_.times=0,M.push(_)),n&&n>0&&M.length>n&&(M=M.slice(-n)),M})},close:S=>{C(R=>R.filter(M=>M.key!==S))},destroy:()=>{C([])}})),Ve.useEffect(()=>{let S={};h.forEach(R=>{let M=R.placement??"topRight";S[M]=S[M]||[],S[M].push(R)}),Object.keys(x).forEach(R=>{S[R]=S[R]||[]}),y(S)},[h]);let E=(0,fd.useEvent)(S=>{y(R=>{let M={...R};return(M[S]||[]).length||delete M[S],M})});if(Ve.useEffect(()=>{Object.keys(x).length>0?v.current=!0:v.current&&(m?.(),v.current=!1)},[x,m]),!r)return null;let N=Object.keys(x);return(0,md.createPortal)(Ve.createElement(Ve.Fragment,null,N.map(S=>{let R=Ve.createElement(pd.default,{key:S,configList:x[S],placement:S,prefixCls:o,pauseOnHover:i,classNames:s,styles:l,components:u,className:c?.(S),style:g?.(S),motion:a,stack:f,onNoticeClose:M=>{C(b=>b.filter(_=>_.key!==M))},onAllRemoved:E});return p?Ve.cloneElement(p(R,{prefixCls:o,key:S}),{key:S}):R})),r)}),Dp=Fo.default=yd});var vi=ee(Qr=>{"use strict";Object.defineProperty(Qr,"__esModule",{value:!0});Qr.default=Ed;var xd=ie(),bt=bd((w(),pe(z))),Cd=vd(yi());function vd(e){return e&&e.__esModule?e:{default:e}}function Ci(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,o=new WeakMap;return(Ci=function(r){return r?o:t})(e)}function bd(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var o=Ci(t);if(o&&o.has(e))return o.get(e);var r={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)){var i=a?Object.getOwnPropertyDescriptor(e,n):null;i&&(i.get||i.set)?Object.defineProperty(r,n,i):r[n]=e[n]}return r.default=e,o&&o.set(e,r),r}var Sd=()=>document.body,xi=0;function Rd(...e){let t={};return e.forEach(o=>{o&&Object.keys(o).forEach(r=>{let a=o[r];a!==void 0&&(t[r]=a)})}),t}function Ed(e={}){let{getContainer:t=Sd,motion:o,prefixCls:r,placement:a,closable:n,duration:i,showProgress:s,pauseOnHover:l,classNames:u,styles:c,components:g,maxCount:m,className:f,style:p,onAllRemoved:h,stack:C,renderNotifications:x}=e,y={placement:a,closable:n,duration:i,showProgress:s},[v,E]=bt.useState(),N=bt.useRef(null),[S,R]=bt.useState([]),M=bt.createElement(Cd.default,{container:v,ref:N,prefixCls:r,motion:o,maxCount:m,pauseOnHover:l,classNames:u,styles:c,components:g,className:f,style:p,onAllRemoved:h,stack:C,renderNotifications:x}),b=(0,xd.useEvent)(O=>{let $=Rd(y,O);($.key===null||$.key===void 0)&&($.key=`rc-notification-${xi}`,xi+=1),R(T=>[...T,{type:"open",config:$}])}),_=bt.useMemo(()=>({open:b,close:O=>{R($=>[...$,{type:"close",key:O}])},destroy:()=>{R(O=>[...O,{type:"destroy"}])}}),[]);return bt.useEffect(()=>{E(t())}),bt.useEffect(()=>{N.current&&S.length&&(S.forEach(O=>{switch(O.type){case"open":N.current?.open(O.config);break;case"close":N.current?.close(O.key);break;case"destroy":N.current?.destroy();break}}),R(O=>{let $=O.filter(T=>!S.includes(T));return $.length===O.length?O:$}))},[S]),[_,M]}});var so=ee(St=>{"use strict";Object.defineProperty(St,"__esModule",{value:!0});Object.defineProperty(St,"Notification",{enumerable:!0,get:function(){return Pd.default}});Object.defineProperty(St,"NotificationList",{enumerable:!0,get:function(){return Od.default}});Object.defineProperty(St,"NotificationProvider",{enumerable:!0,get:function(){return wd.default}});Object.defineProperty(St,"Progress",{enumerable:!0,get:function(){return $d.default}});Object.defineProperty(St,"useNotification",{enumerable:!0,get:function(){return Nd.default}});var Nd=io(vi()),wd=io(Ur()),$d=io(Fr()),Pd=io(Vr()),Od=io(Yr());function io(e){return e&&e.__esModule?e:{default:e}}});var Ri=ee(en=>{"use strict";Object.defineProperty(en,"__esModule",{value:!0});var _d={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"};en.default=_d});var Ni=ee(on=>{"use strict";Object.defineProperty(on,"__esModule",{value:!0});var Id={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};on.default=Id});var pn=ee(Qo=>{"use strict";Object.defineProperty(Qo,"__esModule",{value:!0});Qo.RefContext=void 0;var yu=xu((w(),pe(z)));function Zi(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,o=new WeakMap;return(Zi=function(r){return r?o:t})(e)}function xu(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var o=Zi(t);if(o&&o.has(e))return o.get(e);var r={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)){var i=a?Object.getOwnPropertyDescriptor(e,n):null;i&&(i.get||i.set)?Object.defineProperty(r,n,i):r[n]=e[n]}return r.default=e,o&&o.set(e,r),r}var lh=Qo.RefContext=yu.createContext({})});var gn=ee(Jo=>{"use strict";Object.defineProperty(Jo,"__esModule",{value:!0});Jo.getMotionName=Cu;Jo.offset=vu;function Cu(e,t,o){let r=t;return!r&&o&&(r=`${e}-${o}`),r}function Ki(e,t){let o=e[`page${t?"Y":"X"}Offset`],r=`scroll${t?"Top":"Left"}`;if(typeof o!="number"){let a=e.document;o=a.documentElement[r],typeof o!="number"&&(o=a.body[r])}return o}function vu(e){let t=e.getBoundingClientRect(),o={left:t.left,top:t.top},r=e.ownerDocument,a=r.defaultView||r.parentWindow;return o.left+=Ki(a),o.top+=Ki(a,!0),o}});var Qi=ee(er=>{"use strict";Object.defineProperty(er,"__esModule",{value:!0});er.default=void 0;var bu=Su((w(),pe(z)));function Yi(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,o=new WeakMap;return(Yi=function(r){return r?o:t})(e)}function Su(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var o=Yi(t);if(o&&o.has(e))return o.get(e);var r={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)){var i=a?Object.getOwnPropertyDescriptor(e,n):null;i&&(i.get||i.set)?Object.defineProperty(r,n,i):r[n]=e[n]}return r.default=e,o&&o.set(e,r),r}var uh=er.default=bu.memo(({children:e})=>e,(e,{shouldUpdate:t})=>!t)});var yn=ee(or=>{"use strict";Object.defineProperty(or,"__esModule",{value:!0});or.default=void 0;var Rt=yt(),hn=ie(),Ie=wu((w(),pe(z))),Ru=pn(),Eu=Nu(Qi());function Nu(e){return e&&e.__esModule?e:{default:e}}function Ji(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,o=new WeakMap;return(Ji=function(r){return r?o:t})(e)}function wu(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var o=Ji(t);if(o&&o.has(e))return o.get(e);var r={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)){var i=a?Object.getOwnPropertyDescriptor(e,n):null;i&&(i.get||i.set)?Object.defineProperty(r,n,i):r[n]=e[n]}return r.default=e,o&&o.set(e,r),r}function tr(){return tr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},tr.apply(this,arguments)}var $u=Ie.default.forwardRef((e,t)=>{let{prefixCls:o,className:r,style:a,title:n,ariaId:i,footer:s,closable:l,closeIcon:u,onClose:c,children:g,bodyStyle:m,bodyProps:f,modalRender:p,onMouseDown:h,onMouseUp:C,holderRef:x,visible:y,forceRender:v,width:E,height:N,classNames:S,styles:R,isFixedPos:M,focusTrap:b}=e,{panel:_}=Ie.default.useContext(Ru.RefContext),O=(0,Ie.useRef)(null),$=(0,hn.useComposeRef)(x,_,O),[T]=(0,hn.useLockFocus)(y&&M&&b!==!1,()=>O.current);Ie.default.useImperativeHandle(t,()=>({focus:()=>{O.current?.focus({preventScroll:!0})}}));let W={};E!==void 0&&(W.width=E),N!==void 0&&(W.height=N);let k=s?Ie.default.createElement("div",{className:(0,Rt.clsx)(`${o}-footer`,S?.footer),style:{...R?.footer}},s):null,L=n?Ie.default.createElement("div",{className:(0,Rt.clsx)(`${o}-header`,S?.header),style:{...R?.header}},Ie.default.createElement("div",{className:(0,Rt.clsx)(`${o}-title`,S?.title),id:i,style:{...R?.title}},n)):null,H=(0,Ie.useMemo)(()=>typeof l=="object"&&l!==null?l:l?{closeIcon:u??Ie.default.createElement("span",{className:`${o}-close-x`})}:{},[l,u,o]),F=(0,hn.pickAttrs)(H,!0),q=typeof l=="object"&&l.disabled,Q=l?Ie.default.createElement("button",tr({type:"button",onClick:c,"aria-label":"Close"},F,{className:(0,Rt.clsx)(`${o}-close`,S?.close),disabled:q,style:R?.close}),H.closeIcon):null,V=Ie.default.createElement("div",{className:(0,Rt.clsx)(`${o}-container`,S?.container),style:R?.container},Q,L,Ie.default.createElement("div",tr({className:(0,Rt.clsx)(`${o}-body`,S?.body),style:{...m,...R?.body}},f),g),k);return Ie.default.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":n?i:null,"aria-modal":"true",ref:$,style:{...a,...W},className:(0,Rt.clsx)(o,r),onMouseDown:h,onMouseUp:C,tabIndex:-1,onFocus:U=>{T(U.target)}},Ie.default.createElement(Eu.default,{shouldUpdate:y||v},p?p(V):V))}),fh=or.default=$u});var os=ee(rr=>{"use strict";Object.defineProperty(rr,"__esModule",{value:!0});rr.default=void 0;var xn=ku((w(),pe(z))),uo=xn,Pu=yt(),Ou=es(kr()),Mu=gn(),_u=es(yn());function es(e){return e&&e.__esModule?e:{default:e}}function ts(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,o=new WeakMap;return(ts=function(r){return r?o:t})(e)}function ku(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var o=ts(t);if(o&&o.has(e))return o.get(e);var r={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)){var i=a?Object.getOwnPropertyDescriptor(e,n):null;i&&(i.get||i.set)?Object.defineProperty(r,n,i):r[n]=e[n]}return r.default=e,o&&o.set(e,r),r}function Cn(){return Cn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Cn.apply(this,arguments)}var Tu=uo.forwardRef((e,t)=>{let{prefixCls:o,title:r,style:a,className:n,visible:i,forceRender:s,destroyOnHidden:l,motionName:u,ariaId:c,onVisibleChanged:g,mousePosition:m}=e,f=(0,xn.useRef)(null),p=(0,xn.useRef)(null);uo.useImperativeHandle(t,()=>({...p.current,inMotion:f.current.inMotion,enableMotion:f.current.enableMotion}));let[h,C]=uo.useState(),x={};h&&(x.transformOrigin=h);function y(){if(!f.current?.nativeElement)return;let v=(0,Mu.offset)(f.current.nativeElement);C(m&&(m.x||m.y)?`${m.x-v.left}px ${m.y-v.top}px`:"")}return uo.createElement(Ou.default,{visible:i,onVisibleChanged:g,onAppearPrepare:y,onEnterPrepare:y,forceRender:s,motionName:u,removeOnLeave:l,ref:f},({className:v,style:E},N)=>uo.createElement(_u.default,Cn({},e,{ref:p,title:r,ariaId:c,prefixCls:o,holderRef:N,style:{...E,...a,...x},className:(0,Pu.clsx)(n,v)})))}),gh=rr.default=Tu});var as=ee(nr=>{"use strict";Object.defineProperty(nr,"__esModule",{value:!0});nr.default=void 0;var rs=Du((w(),pe(z))),Iu=yt(),zu=Bu(kr());function Bu(e){return e&&e.__esModule?e:{default:e}}function ns(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,o=new WeakMap;return(ns=function(r){return r?o:t})(e)}function Du(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var o=ns(t);if(o&&o.has(e))return o.get(e);var r={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)){var i=a?Object.getOwnPropertyDescriptor(e,n):null;i&&(i.get||i.set)?Object.defineProperty(r,n,i):r[n]=e[n]}return r.default=e,o&&o.set(e,r),r}function vn(){return vn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},vn.apply(this,arguments)}var Wu=e=>{let{prefixCls:t,style:o,visible:r,maskProps:a,motionName:n,className:i}=e;return rs.createElement(zu.default,{key:"mask",visible:r,motionName:n,leavedClassName:`${t}-mask-hidden`},({className:s,style:l},u)=>rs.createElement("div",vn({ref:u,style:{...l,...o},className:(0,Iu.clsx)(`${t}-mask`,s,i)},a)))},yh=nr.default=Wu});var ds=ee(ir=>{"use strict";Object.defineProperty(ir,"__esModule",{value:!0});ir.default=void 0;var is=yt(),ar=ie(),Ft=Au((w(),pe(z))),jt=Ft,ss=gn(),Hu=ls(os()),Lu=ls(as());function ls(e){return e&&e.__esModule?e:{default:e}}function cs(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,o=new WeakMap;return(cs=function(r){return r?o:t})(e)}function Au(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var o=cs(t);if(o&&o.has(e))return o.get(e);var r={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)){var i=a?Object.getOwnPropertyDescriptor(e,n):null;i&&(i.get||i.set)?Object.defineProperty(r,n,i):r[n]=e[n]}return r.default=e,o&&o.set(e,r),r}function mo(){return mo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},mo.apply(this,arguments)}var ju=e=>{let{prefixCls:t="rc-dialog",zIndex:o,visible:r=!1,focusTriggerAfterClose:a=!0,wrapStyle:n,wrapClassName:i,wrapProps:s,onClose:l,afterOpenChange:u,afterClose:c,transitionName:g,animation:m,closable:f=!0,mask:p=!0,maskTransitionName:h,maskAnimation:C,maskClosable:x=!0,maskStyle:y,maskProps:v,rootClassName:E,rootStyle:N,classNames:S,styles:R}=e,M=(0,Ft.useRef)(null),b=(0,Ft.useRef)(null),_=(0,Ft.useRef)(null),[O,$]=jt.useState(r),[T,W]=jt.useState(!1),k=(0,ar.useId)();function L(){(0,ar.contains)(b.current,document.activeElement)||(M.current=document.activeElement)}function H(){(0,ar.contains)(b.current,document.activeElement)||_.current?.focus()}function F(){if($(!1),p&&M.current&&a){try{M.current.focus({preventScroll:!0})}catch{}M.current=null}O&&c?.()}function q(J){J?H():F(),u?.(J)}function Q(J){l?.(J)}let V=(0,Ft.useRef)(!1),U=null;x&&(U=J=>{b.current===J.target&&V.current&&Q(J)});function te(J){V.current=J.target===b.current}(0,Ft.useEffect)(()=>{if(r){if(V.current=!1,$(!0),L(),b.current){let J=getComputedStyle(b.current);W(J.position==="fixed")}}else O&&_.current.enableMotion()&&!_.current.inMotion()&&F()},[r]);let oe={zIndex:o,...n,...R?.wrapper,display:O?null:"none"};return jt.createElement("div",mo({className:(0,is.clsx)(`${t}-root`,E),style:N},(0,ar.pickAttrs)(e,{data:!0})),jt.createElement(Lu.default,{prefixCls:t,visible:p&&r,motionName:(0,ss.getMotionName)(t,h,C),style:{zIndex:o,...y,...R?.mask},maskProps:v,className:S?.mask}),jt.createElement("div",mo({className:(0,is.clsx)(`${t}-wrap`,i,S?.wrapper),ref:b,onClick:U,onMouseDown:te,style:oe},s),jt.createElement(Hu.default,mo({},e,{isFixedPos:T,ref:_,closable:f,ariaId:k,prefixCls:t,visible:r&&O,onClose:Q,onVisibleChanged:q,motionName:(0,ss.getMotionName)(t,g,m)}))))},Ch=ir.default=ju});var fs=ee(sr=>{"use strict";Object.defineProperty(sr,"__esModule",{value:!0});sr.default=void 0;var Fu=ms(Rc()),qt=Gu((w(),pe(z))),qu=pn(),Vu=ms(ds());function us(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,o=new WeakMap;return(us=function(r){return r?o:t})(e)}function Gu(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var o=us(t);if(o&&o.has(e))return o.get(e);var r={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)){var i=a?Object.getOwnPropertyDescriptor(e,n):null;i&&(i.get||i.set)?Object.defineProperty(r,n,i):r[n]=e[n]}return r.default=e,o&&o.set(e,r),r}function ms(e){return e&&e.__esModule?e:{default:e}}function bn(){return bn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},bn.apply(this,arguments)}var Uu=e=>{let{visible:t,getContainer:o,forceRender:r,destroyOnHidden:a=!1,afterClose:n,closable:i,panelRef:s,keyboard:l=!0,scrollLock:u=!0,onClose:c}=e,{scrollLock:g,...m}=e,[f,p]=qt.useState(t),h=qt.useMemo(()=>({panel:s}),[s]),C=({top:x,event:y})=>{if(x&&l){y.stopPropagation(),c?.(y);return}};return qt.useEffect(()=>{t&&p(!0)},[t]),!r&&a&&!f?null:qt.createElement(qu.RefContext.Provider,{value:h},qt.createElement(Fu.default,{open:t||r||f,onEsc:C,autoDestroy:!1,getContainer:o,autoLock:u&&(t||f)},qt.createElement(Vu.default,bn({},m,{destroyOnHidden:a,afterClose:()=>{let x=i&&typeof i=="object"?i:{},{afterClose:y}=x||{};y?.(),n?.(),p(!1)}}))))},bh=sr.default=Uu});var gs=ee(fo=>{"use strict";Object.defineProperty(fo,"__esModule",{value:!0});Object.defineProperty(fo,"Panel",{enumerable:!0,get:function(){return Zu.default}});fo.default=void 0;var Xu=ps(fs()),Zu=ps(yn());function ps(e){return e&&e.__esModule?e:{default:e}}var Rh=fo.default=Xu.default});var Ml=ee(Xn=>{"use strict";Object.defineProperty(Xn,"__esModule",{value:!0});var Bf={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"};Xn.default=Bf});var Tl=ee(Kn=>{"use strict";Object.defineProperty(Kn,"__esModule",{value:!0});var Hf={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"};Kn.default=Hf});var Kl=ee(Jn=>{"use strict";Object.defineProperty(Jn,"__esModule",{value:!0});var ep={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};Jn.default=ep});var Jl=ee(ta=>{"use strict";Object.defineProperty(ta,"__esModule",{value:!0});var rp={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"};ta.default=rp});w();w();var Zo=A(so());w();var Md=(e,t)=>D(()=>{let o=e??t;return o?{...re(t)?t:{},...re(o)?o:{}}:!1},[e,t]),qo=Md;var Jr=A(je());function Vo(e,t){return{...Se(e)&&{"--notification-top":(0,Jr.unit)(e)},...Se(t)&&{"--notification-bottom":(0,Jr.unit)(t)}}}function bi(e){return{motionName:`${e}-fade`}}function Si(e,t,o){return typeof e<"u"?e:typeof t?.closeIcon<"u"?t.closeIcon:o?.closeIcon}w();w();var Ei=A(Ri());function tn(){return tn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},tn.apply(this,arguments)}var kd=(e,t)=>d(Fe,tn({},e,{ref:t,icon:Ei.default})),Td=Z(kd),Lt=Td;var au=A(so());var Xo=A(je());w();w();var wi=A(Ni());function rn(){return rn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},rn.apply(this,arguments)}var zd=(e,t)=>d(Fe,rn({},e,{ref:t,icon:wi.default})),Bd=Z(zd),ot=Bd;var lo=A(ie());var At=e=>{if(!e)return;let{closable:t,closeIcon:o}=e;return{closable:t,closeIcon:o}},Pi={},$i=(e,t)=>{if(!e&&(e===!1||t===!1||t===null))return!1;if(!Se(e)&&!Se(t))return null;let o={closeIcon:typeof t!="boolean"&&Se(t)?t:void 0};return re(e)&&(o={...o,...e}),o},Dd=(e,t,o)=>e===!1?!1:e?(0,lo.mergeProps)(o,t,e):t===!1?!1:t?(0,lo.mergeProps)(o,t):o.closable?o:!1,Wd=(e,t,o)=>{let{closeIconRender:r}=t,{closeIcon:a,...n}=e,i=a,s=(0,lo.pickAttrs)(n,!0);return Se(i)&&(r&&(i=r(i)),i=B.isValidElement(i)?B.cloneElement(i,{"aria-label":o,...i.props,...s}):B.createElement("span",{"aria-label":o,...s},i)),[i,{"aria-label":o,...s}]},nn=(e,t,o=Pi,r="Close")=>{let a=$i(e?.closable,e?.closeIcon),n=$i(t?.closable,t?.closeIcon),i={closeIcon:B.createElement(ot,null),...o},s=Dd(a,n,i),l=typeof s!="boolean"?!!s?.disabled:!1;if(s===!1)return[!1,null,l,{}];let[u,c]=Wd(s,i,r);return[!0,u,l,c]},Oi=(e,t,o=Pi)=>{let[r]=Ce("global",xt.global);return B.useMemo(()=>nn(e,t,{closeIcon:B.createElement(ot,null),...o},r.close),[e,t,o,r.close])};w();var Go=(e,t)=>{let o={};return re(e)&&(o=e),typeof e=="boolean"&&(o={enabled:e}),o.closable===void 0&&t!==void 0&&(o.closable=t),o},Mi=(e,t,o,r)=>D(()=>{let a=Go(e,r),n=Go(t),i={blur:!1,...n,...a,closable:a.closable??r??n.closable??!0},s=i.blur?`${o}-mask-blur`:void 0;return[i.enabled!==!1,{mask:s},!!i.closable]},[e,t,o,r]);w();var _i=()=>{let[e,t]=K([]),o=Pt(r=>(t(a=>[].concat(Oe(a),[r])),()=>{t(a=>a.filter(n=>n!==r))}),[]);return[e,o]};var co=A(je());var an=A(je());var Hd=e=>{let{motionDurationMid:t,motionEaseInOut:o}=e,r=`${t} ${o}`;return{transform:"scale(var(--notification-scale, 1))",transition:["transform","inset","clip-path","opacity"].map(a=>`${a} ${r}`).join(", ")}},sn=(e,t)=>{let{componentCls:o,antCls:r,colorSuccess:a,colorInfo:n,colorWarning:i,colorError:s,colorTextHeading:l,colorText:u,boxShadow:c,borderRadiusLG:g,fontSize:m,lineHeight:f,notificationBg:p,notificationPadding:h,notificationMarginEdge:C,margin:x,calc:y}=e,v=`${o}-notice`,[E,N]=no(r,"notification");return{[v]:{position:"absolute",width:t.width,maxWidth:`calc(100vw - ${(0,an.unit)(y(C).mul(2).equal())})`,padding:h,pointerEvents:"auto",[E("icon-font-size")]:t.iconFontSize,[E("title-font-size")]:t.titleFontSize,[E("title-line-height")]:t.titleLineHeight,boxSizing:"border-box",color:u,background:p,borderRadius:g,boxShadow:c,fontSize:m,lineHeight:f,wordWrap:"break-word",overflow:"visible",...Hd(e),...t.noticeStyle,"&::after":{position:"absolute",insetInline:0,top:y(x).mul(-1).equal(),height:x,content:'""'},...t.typeStyle&&{"&-success":{background:N("color-success-bg",p)},"&-error":{background:N("color-error-bg",p)},"&-info":{background:N("color-info-bg",p)},"&-warning":{background:N("color-warning-bg",p)}}},[`${v}-wrapper`]:{display:"flex",...t.contentStyle},[`${v}-title`]:{color:l,fontSize:N("title-font-size"),lineHeight:N("title-line-height")},[`${v}-icon`]:{flex:"none",fontSize:N("icon-font-size"),lineHeight:1,[`&${v}-icon-success`]:{color:a},[`&${v}-icon-info, &${v}-icon-loading`]:{color:n},[`&${v}-icon-warning`]:{color:i},[`&${v}-icon-error`]:{color:s}}}},ki=e=>{let{componentCls:t,progressBg:o,notificationProgressHeight:r,fontSize:a,borderRadiusLG:n,width:i,notificationIconSize:s,colorText:l,motionDurationMid:u,fontSizeLG:c,lineHeightLG:g,marginSM:m,marginXS:f,paddingLG:p,notificationPaddingVertical:h,notificationPaddingHorizontal:C,notificationCloseButtonSize:x,colorIcon:y,borderRadiusSM:v,colorIconHover:E,colorBgTextHover:N,colorBgTextActive:S}=e,R=`${t}-notice`;return{...sn(e,{width:i,iconFontSize:s,titleFontSize:c,titleLineHeight:g,contentStyle:{alignItems:"flex-start",gap:m},typeStyle:!0}),[`${R}-section`]:{display:"flex",flexDirection:"column",flex:"auto",gap:f,minWidth:0},[`${R}-description`]:{color:l,fontSize:a},[`${R}-closable`]:{[`${R}-title, ${R}-description`]:{paddingInlineEnd:p},[`${R}-title + ${R}-description`]:{paddingInlineEnd:0}},[`${R}-close`]:{position:"absolute",top:h,insetInlineEnd:C,display:"flex",alignItems:"center",justifyContent:"center",width:x,height:x,color:y,background:"none",border:"none",borderRadius:v,outline:"none",transition:["color","background-color"].map(M=>`${M} ${u}`).join(", "),"&:hover":{color:E,backgroundColor:N},"&:active":{backgroundColor:S},...Po(e)},[`${R}-progress`]:{position:"absolute",bottom:0,display:"block",appearance:"none",inlineSize:`calc(100% - ${(0,an.unit)(n)} * 2)`,blockSize:r,border:0,left:{_skip_check_:!0,value:n},right:{_skip_check_:!0,value:n},"&, &::-webkit-progress-bar":{borderRadius:n,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:o},"&::-webkit-progress-value":{borderRadius:n,background:o}},[`${R}-actions`]:{float:"right",marginTop:m}}},Ti=e=>{let{componentCls:t,width:o}=e,r=`${t}-notice`,a=`${r}-actions`,n=ki(e);return{[`${r}-pure-panel`]:{width:o,maxWidth:"100%",...n,[r]:{...n[r],position:"relative",width:"100%",maxWidth:"100%"},[a]:{...n[a],float:"none",textAlign:"end"}}}},Ld=e=>{let{componentCls:t}=e;return{[t]:ki(e)}},Ii=Ld;var ln=A(je());var zi=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"];var Ad="--notification-margin-edge",jd=(e,t)=>({blockEnd:e==="top"?"bottom":"top",inlineEnd:t==="left"?"right":"left"}),Bi=e=>{let t=e?.x??"0",o=e?.y??"0";return`translate3d(${t}, ${o}, 0) scale(var(--notification-scale, 1))`},Fd=(e,t)=>{let o=e.startsWith("bottom")?"bottom":"top",r=e.endsWith("Right")?"right":"left",{blockEnd:a,inlineEnd:n}=jd(o,r),i=e==="top"||e==="bottom",s=e==="top"||e.endsWith("Left")?`-${t}`:t;return{placement:e,vertical:o,blockEnd:a,horizontal:r,inlineEnd:n,motionOffset:i?{x:"-50%",y:s}:{x:s},baseMotionOffset:i?{x:"-50%"}:void 0,isCenterPlacement:i}},qd=e=>e==="bottom"?"column-reverse":"column",Vd=e=>{let t=`var(${Ad}, 0px)`;return`calc(var(--notification-${e}, ${t}) - ${t})`},Gd=e=>e==="bottom"?"center top":"center bottom",Di=e=>(0,ln.unit)(e.calc(e.marginXXL).mul(-1).equal()),Ud=e=>{let t=Di(e);return`inset(${t} ${t} ${t} ${t})`},Xd=(e,t)=>{let o=Di(e);return t==="bottom"?`inset(${o} ${o} 50% ${o})`:`inset(50% ${o} ${o} ${o})`},Zd=(e,t)=>{let{componentCls:o}=e,{placement:r,vertical:a,blockEnd:n,horizontal:i,inlineEnd:s,isCenterPlacement:l}=t,u=`${o}-notice`,c=`${u}${o}-fade`,g=Bi(t.motionOffset),m=Bi(t.baseMotionOffset),f=Gd(a);return{[`&${o}-${r}`]:{[a]:Vd(a),[n]:"auto",display:"flex",flexDirection:qd(a),...l?{marginInline:0,left:"50%",right:"auto",transform:"translateX(-50%)"}:{[i]:0,[s]:"auto"},[u]:{[a]:"var(--notification-y, 0)",...l?{left:"50%",transform:m}:{[i]:"var(--notification-x, 0)"},transformOrigin:f},[`${c}-appear-prepare, ${c}-enter-prepare`]:{opacity:0,transform:g,transition:"none"},[`${c}-appear-start, ${c}-enter-start`]:{opacity:0,transform:g},[`${c}-appear-active, ${c}-enter-active`]:{opacity:1,transform:m},[`${c}-leave-start`]:{opacity:1,transform:m},[`${c}-leave-active`]:{opacity:0,transform:g},[`&${o}-stack:not(${o}-stack-expanded)`]:{[u]:{clipPath:Xd(e,a)},[`${u}[data-notification-index='0']`]:{clipPath:Ud(e)}}}}},Kd=(e,t=zi)=>{let{notificationMotionOffset:o}=e,r=(0,ln.unit)(o);return{...t.reduce((a,n)=>({...a,...Zd(e,Fd(n,r))}),{})}},Yd=e=>{let{componentCls:t}=e;return{[t]:Kd(e)}},Wi=Yd;var Qd=3,Hi=e=>({zIndexPopup:e.zIndexPopupBase+Dt+50,width:384,progressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`,colorSuccessBg:void 0,colorErrorBg:void 0,colorInfoBg:void 0,colorWarningBg:void 0}),Uo=e=>{let t=e.paddingMD,o=e.paddingLG;return(0,ve.mergeToken)(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:o,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${(0,co.unit)(e.paddingMD)} ${(0,co.unit)(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,notificationProgressHeight:2,notificationMotionOffset:64})},Jd=e=>`inset(${e} ${e} ${e} ${e})`,eu=e=>{let{componentCls:t,motionDurationMid:o,motionDurationSlow:r,motionEaseInOut:a}=e,i=`${`${t}-list`}-content`;return{[i]:{position:"relative",display:"flex",flexShrink:0,flexDirection:"column",gap:e.notificationMarginBottom,width:"100%",willChange:"height, transform",transition:"none",[`&${i}-decrease`]:{transition:`height calc(${r} * 2) ${a} ${o}`}},[`${t}-fade`]:{backfaceVisibility:"hidden",willChange:"transform, opacity"}}},tu=(e,t)=>{let{componentCls:o,notificationMarginEdge:r}=e,a="--notification-margin-edge",n=`${o}-notice`,i=`${o}-list`,s=t.listWidthKey?e.calc(e[t.listWidthKey]).add(e.calc(r).mul(2)).equal():"100%",l=t.stackVisibleCount??Qd,u=`${n}:nth-last-child(n + ${l+1})`,c=(0,co.unit)(e.calc(e.marginXXL).mul(-1).equal()),g=Jd(c);return{[o]:{...Xe(e),[a]:(0,co.unit)(r),position:"fixed",zIndex:e.zIndexPopup,width:s,maxWidth:"100vw",height:"100vh",overflow:"hidden",overscrollBehavior:"contain",[`${o}-hook-holder`]:{position:"relative"},[`&${i}`]:{maxHeight:"100vh",padding:`var(${a})`,overflowX:"hidden",overflowY:"auto",overscrollBehavior:"contain",scrollbarWidth:"none",msOverflowStyle:"none",pointerEvents:"none","&::-webkit-scrollbar":{display:"none",width:0,height:0}},...eu(e),[`&${o}-stack`]:{[n]:{clipPath:g},[`&:not(${o}-stack-expanded)`]:{[n]:{"--notification-scale":"calc(1 - min(var(--notification-index, 0), 2) * 0.06)"},[`${n}:not(${n}-stack-in-threshold)`]:{opacity:0,pointerEvents:"none"},[u]:{opacity:0,pointerEvents:"none"}}},"&-rtl":{direction:"rtl",[`${n}-actions`]:{float:"left"}}}}},Cg=_t(["Notification","PurePanel"],e=>Ti(Uo(e)),Hi),cn=(e,t)=>{let o=t.itemStyle??Ii;return[tu(e,t),o(e),Wi(e)]},Li=ce("Notification",e=>{let t=Uo(e);return cn(t,{listWidthKey:"width"})},Hi);var Ai=e=>{let t=e.calc(e.controlHeightLG).sub(e.calc(e.fontSize).mul(e.lineHeight)).div(2).equal(),o=e.paddingSM;return(0,ve.mergeToken)(Uo(e),{notificationBg:e.contentBg,notificationPadding:e.contentPadding,notificationPaddingVertical:t,notificationPaddingHorizontal:o})},ji=e=>({zIndexPopup:e.zIndexPopupBase+Dt+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),dn=e=>{let{fontSize:t,fontSizeLG:o,lineHeight:r}=e;return sn(e,{width:"max-content",iconFontSize:o,titleFontSize:t,titleLineHeight:r,contentStyle:{alignItems:"center",gap:e.marginXS},noticeStyle:{zIndex:1}})},ou=e=>{let{componentCls:t}=e,o=`${t}-notice`,r=`${t}-list-content`,a=dn(e),{"&::after":n,...i}=a[o],s={...i,position:"absolute",zIndex:-1,left:"50%",height:e.calc(e.marginXS).mul(2).equal(),padding:0,boxShadow:e.boxShadowTertiary,opacity:0,pointerEvents:"none",transform:"translateX(-50%) translateY(100%)",transition:[`opacity ${e.motionDurationFast} ${e.motionEaseInOut}`,`transform ${e.motionDurationFast} ${e.motionEaseInOut}`,`width ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(", "),content:'""'};return{[t]:{[`&${t}-stack`]:{[r]:{isolation:"isolate","&::before":{...s,top:`calc(var(--top-notificiation-height) - ${(0,Xo.unit)(e.marginXS)})`,width:`calc(var(--top-notificiation-width) - ${(0,Xo.unit)(e.margin)})`},"&::after":{...s,zIndex:-2,top:"var(--top-notificiation-height)",width:`calc(var(--top-notificiation-width) - ${(0,Xo.unit)(e.calc(e.margin).mul(2).equal())})`}},[`&:not(${t}-stack-expanded)`]:{[r]:{"&::before, &::after":{opacity:1,transform:"translateX(-50%) translateY(0)"}}}}}}},ru=e=>{let{componentCls:t}=e,o=`${t}-notice`,r=dn(e);return{[`${o}-pure-panel`]:{width:"max-content",maxWidth:"100%",...r,[o]:{...r[o],position:"relative",width:"max-content",maxWidth:"100%"}}}},Ng=_t(["Message","PurePanel"],e=>ru(Ai(e)),ji),nu=e=>({[e.componentCls]:dn(e)}),Fi=ce("Message",e=>{let t=Ai(e);return[cn(t,{stackVisibleCount:1,itemStyle:nu}),ou(t)]},ji);var iu={info:d(Lt,null),success:d(Tt,null),error:d(It,null),warning:d(zt,null),loading:d(Bt,null)},qi=(e,t)=>t||e&&iu[e]||null;function Vi(e,t){return{motionName:t??`${e}-fade`}}function Gi(e){let t,o=new Promise(a=>{t=e(()=>{a(!0)})}),r=()=>{t?.()};return r.then=(a,n)=>o.then(a,n),r.promise=o,r}var su=8,lu=3,cu=!1,du=({children:e,prefixCls:t})=>{let o=lt(t),[r,a]=Fi(t,o);return d(Zo.NotificationProvider,{classNames:{list:P(r,a,o)}},e)},uu=(e,{prefixCls:t,key:o})=>d(du,{prefixCls:t,key:o},e),mu=Z((e,t)=>{let{top:o,prefixCls:r,getContainer:a,maxCount:n,duration:i=lu,rtl:s,classNames:l,styles:u,transitionName:c,pauseOnHover:g=!0,stack:m,onAllRemoved:f}=e,{getPrefixCls:p,direction:h,getPopupContainer:C}=le("message"),{message:x}=j(se),y=r||p("message"),v=Ne(x?.style),[E,N]=xe([x?.classNames,l],[x?.styles,v,u],{props:e}),S=()=>Vo(o??su),R=()=>P({[`${y}-rtl`]:s??h==="rtl"}),M=()=>Vi(y,c),b=qo(m,cu),[_,O]=(0,Zo.useNotification)({prefixCls:y,style:S,className:R,motion:M,closable:!1,duration:i,getContainer:()=>a?.()||C?.()||document.body,maxCount:n,onAllRemoved:f,classNames:E,styles:N,renderNotifications:uu,pauseOnHover:g,stack:b});return Ae(t,()=>({..._,prefixCls:y,message:x})),O}),Ui=0;function fu(e){let t=Y(null),o=No("Message");return[D(()=>{let a=u=>{t.current?.close(u)},n=u=>{if(!t.current){let k=()=>{};return k.then=()=>{},k}let{open:c,prefixCls:g,message:m}=t.current,f=m?.className||{},p=`${g}-notice`,{content:h,icon:C,type:x,key:y,className:v,style:E,onClose:N,classNames:S={},styles:R={},...M}=u,b=y;Se(b)||(Ui+=1,b=`antd-message-${Ui}`);let _={...e,...u},O=Ot(S,{props:_}),$=Ot(R,{props:_}),T=qi(x,C),W=x?`${p}-icon-${x}`:void 0;return Gi(k=>(c({...M,key:b,icon:T,title:h,classNames:{...O,wrapper:P(x&&`${g}-${x}`,O?.wrapper),icon:P(W,O?.icon)},styles:$,placement:"top",className:P({[`${p}-${x}`]:x},v,f),style:E,onClose:()=>{N?.(),k()}}),()=>{a(b)}))},s={open:n,destroy:u=>{u!==void 0?a(u):t.current?.destroy()}};return["info","success","warning","error","loading"].forEach(u=>{let c=(g,m,f)=>{let p;re(g)&&"content"in g?p=g:p={content:g};let h,C;Ee(m)?C=m:(h=m,C=f);let x={onClose:C,duration:h,...p,type:u};return n(x)};s[u]=c}),s},[]),d(mu,{key:"message-holder",...e,ref:t})]}function un(e){return fu(e)}w();w();var Ws=A(ie());w();var zs=A(ie());w();w();var Xi=A(ie());var pu=e=>{let{type:t,children:o,prefixCls:r,buttonProps:a,close:n,autoFocus:i,emitEvent:s,isSilent:l,quitOnNullishReturnValue:u,actionFn:c}=e,g=Y(!1),m=Y(null),[f,p]=(0,Xi.useState)(!1),h=(...y)=>{n?.(...y)};ye(()=>{let y=null;return i&&(y=setTimeout(()=>{m.current?.focus({preventScroll:!0})})),()=>{y&&clearTimeout(y)}},[i]);let C=y=>{wo(y)&&(p(!0),y.then((...v)=>{p(!1,!0),h.apply(void 0,v),g.current=!1},v=>{if(p(!1,!0),g.current=!1,!l?.())return Promise.reject(v)}))},x=y=>{if(g.current)return;if(g.current=!0,!c){h();return}let v;if(s){if(v=c(y),u&&!wo(v)){g.current=!1,h(y);return}}else if(c.length)v=c(n),g.current=!1;else if(v=c(),!wo(v)){h();return}C(v)};return d(Wt,{..._o(t),onClick:x,loading:f,prefixCls:r,...a,ref:m},o)},Ko=pu;w();var rt=B.createContext({}),{Provider:Yo}=rt;var gu=()=>{let{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:o,isSilent:r,mergedOkCancel:a,rootPrefixCls:n,close:i,onCancel:s,onConfirm:l,onClose:u}=j(rt);return a?B.createElement(Ko,{isSilent:r,actionFn:s,close:(...c)=>{i?.(...c),l?.(!1),u?.()},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${n}-btn`},o):null},mn=gu;w();var hu=()=>{let{autoFocusButton:e,close:t,isSilent:o,okButtonProps:r,rootPrefixCls:a,okTextLocale:n,okType:i,onConfirm:s,onOk:l,onClose:u}=j(rt);return B.createElement(Ko,{isSilent:o,type:i||"primary",actionFn:l,close:(...c)=>{t?.(...c),s?.(!0),u?.()},autoFocus:e==="ok",buttonProps:r,prefixCls:`${a}-btn`},n)},fn=hu;w();var Ts=A(gs()),po=A(ie());var Vt=A(ie()),hs=()=>(0,Vt.canUseDom)()&&window.document.documentElement;w();function Sn(e,t,o){return D(()=>({...{trap:t??!0,focusTriggerAfterClose:o??!0},...e}),[e,t,o])}w();w();w();var Ku=e=>{let{prefixCls:t,className:o,style:r,size:a,shape:n}=e,i=P({[`${t}-lg`]:a==="large",[`${t}-sm`]:a==="small"}),s=P({[`${t}-circle`]:n==="circle",[`${t}-square`]:n==="square",[`${t}-round`]:n==="round"}),l=D(()=>Ue(a)?{width:a,height:a,lineHeight:`${a}px`}:{},[a]);return d("span",{className:P(t,i,s,o),style:{...l,...r}})},ut=Ku;var lr=A(je());var Yu=new lr.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),wn=e=>({height:e,lineHeight:(0,lr.unit)(e)}),mt=e=>({width:e,...wn(e)}),Qu=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:Yu,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),Rn=(e,t)=>({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal(),...wn(e)}),Ju=e=>{let{skeletonAvatarCls:t,gradientFromColor:o,controlHeight:r,controlHeightLG:a,controlHeightSM:n}=e;return{[t]:{display:"inline-block",verticalAlign:"top",background:o,...mt(r)},[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:{...mt(a)},[`${t}${t}-sm`]:{...mt(n)}}},em=e=>{let{controlHeight:t,borderRadiusSM:o,skeletonInputCls:r,controlHeightLG:a,controlHeightSM:n,gradientFromColor:i,calc:s}=e;return{[r]:{display:"inline-block",verticalAlign:"top",background:i,borderRadius:o,...Rn(t,s)},[`${r}-lg`]:{...Rn(a,s)},[`${r}-sm`]:{...Rn(n,s)}}},ys=e=>{let{gradientFromColor:t,borderRadiusSM:o,imageSizeBase:r,calc:a}=e;return{display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:t,borderRadius:o,...mt(a(r).mul(2).equal())}},tm=e=>({[e.skeletonNodeCls]:{...ys(e)}}),om=e=>{let{skeletonImageCls:t,imageSizeBase:o,calc:r}=e;return{[t]:{...ys(e),[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:{...mt(o),maxWidth:r(o).mul(4).equal(),maxHeight:r(o).mul(4).equal()},[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}},[`${t}${t}-circle`]:{borderRadius:"50%"}}},En=(e,t,o)=>{let{skeletonButtonCls:r}=e;return{[`${o}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${o}${r}-round`]:{borderRadius:t}}},Nn=(e,t)=>({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal(),...wn(e)}),rm=e=>{let{borderRadiusSM:t,skeletonButtonCls:o,controlHeight:r,controlHeightLG:a,controlHeightSM:n,gradientFromColor:i,calc:s}=e;return{[o]:{display:"inline-block",verticalAlign:"top",background:i,borderRadius:t,width:s(r).mul(2).equal(),minWidth:s(r).mul(2).equal(),...Nn(r,s)},...En(e,r,o),[`${o}-lg`]:{...Nn(a,s)},...En(e,a,`${o}-lg`),[`${o}-sm`]:{...Nn(n,s)},...En(e,n,`${o}-sm`)}},nm=e=>{let{componentCls:t,skeletonAvatarCls:o,skeletonTitleCls:r,skeletonParagraphCls:a,skeletonButtonCls:n,skeletonInputCls:i,skeletonNodeCls:s,skeletonImageCls:l,controlHeight:u,controlHeightLG:c,controlHeightSM:g,gradientFromColor:m,padding:f,marginSM:p,borderRadius:h,titleHeight:C,blockRadius:x,paragraphLiHeight:y,controlHeightXS:v,paragraphMarginTop:E}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:f,verticalAlign:"top",[o]:{display:"inline-block",verticalAlign:"top",background:m,...mt(u)},[`${o}-circle`]:{borderRadius:"50%"},[`${o}-lg`]:{...mt(c)},[`${o}-sm`]:{...mt(g)}},[`${t}-section`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:C,background:m,borderRadius:x,[`+ ${a}`]:{marginBlockStart:g}},[a]:{padding:0,"> li":{width:"100%",height:y,listStyle:"none",background:m,borderRadius:x,"+ li":{marginBlockStart:v}}},[`${a}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-section`]:{[`${r}, ${a} > li`]:{borderRadius:h}}},[`${t}-with-avatar ${t}-section`]:{[r]:{marginBlockStart:p,[`+ ${a}`]:{marginBlockStart:E}}},[`${t}${t}-element`]:{display:"inline-block",width:"auto",...rm(e),...Ju(e),...em(e),...tm(e),...om(e)},[`${t}${t}-block`]:{width:"100%",[n]:{width:"100%"},[i]:{width:"100%"}},[`${t}${t}-active`]:{[`
2
+ ${r},
3
+ ${a} > li,
4
+ ${o},
5
+ ${n},
6
+ ${i},
7
+ ${s},
8
+ ${l}
9
+ `]:{...Qu(e)}}}},am=e=>{let{colorFillContent:t,colorFill:o}=e,r=t,a=o;return{color:r,colorGradientEnd:a,gradientFromColor:r,gradientToColor:a,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},Ke=ce("Skeleton",e=>{let{componentCls:t,calc:o}=e,r=(0,ve.mergeToken)(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonNodeCls:`${t}-node`,skeletonImageCls:`${t}-image`,imageSizeBase:o(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return nm(r)},am,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]});var im=e=>{let{prefixCls:t,className:o,classNames:r,rootClassName:a,active:n,style:i,styles:s,shape:l="circle",size:u,...c}=e,{getPrefixCls:g}=j(se),m=g("skeleton",t),[f,p]=Ke(m),h=Ze(x=>u??x),C=P(m,`${m}-element`,{[`${m}-active`]:n},r?.root,o,a,f,p);return d("div",{className:C,style:s?.root},d(ut,{prefixCls:`${m}-avatar`,className:r?.content,style:{...s?.content,...i},shape:l,size:h,...c}))},xs=im;w();var sm=e=>{let{prefixCls:t,className:o,rootClassName:r,classNames:a,active:n,style:i,styles:s,block:l=!1,size:u,...c}=e,{getPrefixCls:g}=j(se),m=g("skeleton",t),[f,p]=Ke(m),h=Ze(x=>u??x),C=P(m,`${m}-element`,{[`${m}-active`]:n,[`${m}-block`]:l},a?.root,o,r,f,p);return d("div",{className:C,style:s?.root},d(ut,{prefixCls:`${m}-button`,className:a?.content,style:{...s?.content,...i},size:h,...c}))},Cs=sm;w();w();var lm=e=>{let{prefixCls:t,className:o,classNames:r,rootClassName:a,internalClassName:n,style:i,styles:s,active:l,children:u}=e,{getPrefixCls:c}=j(se),g=c("skeleton",t),[m,f]=Ke(g),p=P(g,`${g}-element`,{[`${g}-active`]:l},m,r?.root,o,a,f);return d("div",{className:p,style:s?.root},d("div",{className:P(r?.content,n||`${g}-node`),style:{...s?.content,...i}},u))},cr=lm;var cm=e=>{let{getPrefixCls:t}=j(se),o=t("skeleton",e.prefixCls);return d(cr,{...e,internalClassName:`${o}-image`},d("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${o}-image-svg`},d("title",null,"Image placeholder"),d("path",{d:"M365.7 329.1q0 45.8-32 77.7t-77.7 32-77.7-32-32-77.7 32-77.6 77.7-32 77.7 32 32 77.6M951 548.6v256H146.3V694.9L329 512l91.5 91.4L713 311zm54.8-402.3H91.4q-7.4 0-12.8 5.4T73 164.6v694.8q0 7.5 5.5 12.9t12.8 5.4h914.3q7.5 0 12.9-5.4t5.4-12.9V164.6q0-7.5-5.4-12.9t-12.9-5.4m91.4 18.3v694.8q0 37.8-26.8 64.6t-64.6 26.9H91.4q-37.7 0-64.6-26.9T0 859.4V164.6q0-37.8 26.8-64.6T91.4 73h914.3q37.8 0 64.6 26.9t26.8 64.6",className:`${o}-image-path`})))},vs=cm;w();var dm=e=>{let{prefixCls:t,className:o,classNames:r,rootClassName:a,active:n,block:i,style:s,styles:l,size:u,...c}=e,{getPrefixCls:g}=j(se),m=g("skeleton",t),[f,p]=Ke(m),h=Ze(x=>u??x),C=P(m,`${m}-element`,{[`${m}-active`]:n,[`${m}-block`]:i},r?.root,o,a,f,p);return d("div",{className:C,style:l?.root},d(ut,{prefixCls:`${m}-input`,className:r?.content,style:{...l?.content,...s},size:h,...c}))},bs=dm;w();var um=(e,t)=>{let{width:o,rows:r=2}=t;if(Array.isArray(o))return o[e];if(r-1===e)return o},mm=e=>{let{prefixCls:t,className:o,style:r,rows:a=0}=e,n=Array.from({length:a}).map((i,s)=>d("li",{key:s,style:{width:um(s,e)}}));return d("ul",{className:P(t,o),style:r},n)},Ss=mm;w();var fm=({prefixCls:e,className:t,width:o,style:r})=>d("h3",{className:P(e,t),style:{width:o,...r}}),Rs=fm;function $n(e){return re(e)?e:{}}function pm(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function gm(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function hm(e,t){let o={};return(!e||!t)&&(o.width="61%"),!e&&t?o.rows=3:o.rows=2,o}var Gt=B.forwardRef((e,t)=>{let{prefixCls:o,loading:r,className:a,rootClassName:n,classNames:i,style:s,styles:l,children:u,avatar:c=!1,title:g=!0,paragraph:m=!0,active:f,round:p}=e,{getPrefixCls:h,direction:C,className:x,style:y,classNames:v,styles:E}=le("skeleton"),N=h("skeleton",o),[S,R]=Ke(N),M={...e,avatar:c,title:g,paragraph:m},b=Ne(y),_=Ne(s),[O,$]=xe([v,i],[E,b,l,_],{props:M}),T=B.useRef(null);if(B.useImperativeHandle(t,()=>({nativeElement:T.current})),r||!("loading"in e)){let W=!!c,k=!!g,L=!!m,H;if(W){let Q={className:O.avatar,prefixCls:`${N}-avatar`,...pm(k,L),...$n(c),style:$.avatar};H=B.createElement("div",{className:P(O.header,`${N}-header`),style:$.header},B.createElement(ut,{...Q}))}let F;if(k||L){let Q;if(k){let U={className:O.title,prefixCls:`${N}-title`,...gm(W,L),...$n(g),style:$.title};Q=B.createElement(Rs,{...U})}let V;if(L){let U={className:O.paragraph,prefixCls:`${N}-paragraph`,...hm(W,k),...$n(m),style:$.paragraph};V=B.createElement(Ss,{...U})}F=B.createElement("div",{className:P(O.section,`${N}-section`),style:$.section},Q,V)}let q=P(N,{[`${N}-with-avatar`]:W,[`${N}-active`]:f,[`${N}-rtl`]:C==="rtl",[`${N}-round`]:p},O.root,x,a,n,S,R);return B.createElement("div",{ref:T,className:q,style:$.root},H,F)}return u??null});Gt.Button=Cs;Gt.Avatar=xs;Gt.Input=bs;Gt.Image=vs;Gt.Node=cr;var Es=Gt;var Ns=Es;w();var $s=A(ie());function ws(){}var ym=Ge({add:ws,remove:ws});function Ps(e){let t=j(ym),o=Y(null);return(0,$s.useEvent)(a=>{if(a){let n=e?a.querySelector(e):a;n&&(t.add(n),o.current=n)}else t.remove(o.current)})}w();w();var xm=()=>{let{cancelButtonProps:e,cancelTextLocale:t,onCancel:o}=j(rt);return B.createElement(Wt,{onClick:o,...e},t)},Pn=xm;w();var Cm=()=>{let{confirmLoading:e,okButtonProps:t,okType:o,okTextLocale:r,onOk:a}=j(rt);return B.createElement(Wt,{..._o(o),loading:e,onClick:a,...t},r)},On=Cm;function Os(e,t){return B.createElement("span",{className:`${e}-close-x`},t||B.createElement(ot,{className:`${e}-close-icon`}))}var Ms=e=>{let{okText:t,okType:o="primary",cancelText:r,confirmLoading:a,onOk:n,onCancel:i,okButtonProps:s,cancelButtonProps:l,footer:u}=e,[c]=Ce("Modal",Ca()),g=t||c?.okText,m=r||c?.cancelText,f=B.useMemo(()=>({confirmLoading:a,okButtonProps:s,cancelButtonProps:l,okTextLocale:g,cancelTextLocale:m,okType:o,onOk:n,onCancel:i}),[a,s,l,g,m,o,n,i]),p;return Ee(u)||typeof u>"u"?(p=B.createElement(B.Fragment,null,B.createElement(Pn,null),B.createElement(On,null)),Ee(u)&&(p=u(p,{OkBtn:On,CancelBtn:Pn})),p=B.createElement(Yo,{value:f},p)):p=u,B.createElement(Ma,{disabled:!1},p)};var ue=A(je());function _s(e){return{position:e,inset:0}}var vm=e=>{let{componentCls:t,antCls:o}=e;return[{[`${t}-root`]:{[`${t}${o}-zoom-enter, ${t}${o}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${o}-zoom-leave ${t}-container`]:{pointerEvents:"none"},[`${t}-mask`]:{..._s("fixed"),zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`&${t}-mask-blur`]:{backdropFilter:"blur(4px)"},[`${t}-hidden`]:{display:"none"}},[`${t}-wrap`]:{..._s("fixed"),zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"}}},{[`${t}-root`]:Da(e)}]},bm=e=>{let{componentCls:t,motionDurationMid:o}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${(0,ue.unit)(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:{...Xe(e),pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${(0,ue.unit)(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto","&:focus-visible":{borderRadius:e.borderRadiusLG,...Ia(e)},[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-container`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:{position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:["color","background-color"].map(r=>`${r} ${o}`).join(", "),"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:(0,ue.unit)(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive},...Po(e)},[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${(0,ue.unit)(e.borderRadiusLG)} ${(0,ue.unit)(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,[`${t}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${(0,ue.unit)(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}}},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-container,
10
+ ${t}-body,
11
+ ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},Sm=e=>{let{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},Rm=e=>{let{componentCls:t}=e,o=Ha(e),r={...o};delete r.xs;let a=`--${t.replace(".","")}-`,n=Object.keys(r).map(i=>({[`@media (min-width: ${(0,ue.unit)(r[i])})`]:{width:`var(${a}${i}-width)`}}));return{[`${t}-root`]:{[t]:[].concat(Oe(Object.keys(o).map((i,s)=>{let l=Object.keys(o)[s-1];return l?{[`${a}${i}-width`]:`var(${a}${l}-width)`}:null})),[{width:`var(${a}xs-width)`}],Oe(n))}}},Mn=e=>{let t=e.padding,o=e.fontSizeHeading5,r=e.lineHeightHeading5;return(0,ve.mergeToken)(e,{modalHeaderHeight:e.calc(e.calc(r).mul(o).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},_n=e=>({footerBg:"transparent",headerBg:"transparent",titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${(0,ue.unit)(e.paddingMD)} ${(0,ue.unit)(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${(0,ue.unit)(e.padding)} ${(0,ue.unit)(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${(0,ue.unit)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${(0,ue.unit)(e.paddingXS)} ${(0,ue.unit)(e.padding)}`:0,footerBorderTop:e.wireframe?`${(0,ue.unit)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${(0,ue.unit)(e.borderRadiusLG)} ${(0,ue.unit)(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${(0,ue.unit)(e.padding*2)} ${(0,ue.unit)(e.padding*2)} ${(0,ue.unit)(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM,mask:!0}),ks=ce("Modal",e=>{let t=Mn(e);return[bm(t),Sm(t),vm(t),ko(t,"zoom"),Rm(t)]},_n,{unitless:{titleLineHeight:!0}});var kn,Em=e=>{kn={x:e.pageX,y:e.pageY},setTimeout(()=>{kn=null},100)};hs()&&document.documentElement.addEventListener("click",Em,!0);var Nm=e=>{let{prefixCls:t,className:o,rootClassName:r,open:a,wrapClassName:n,centered:i,getContainer:s,style:l,width:u=520,footer:c,classNames:g,styles:m,children:f,loading:p,confirmLoading:h,zIndex:C,mousePosition:x,onOk:y,onCancel:v,okButtonProps:E,cancelButtonProps:N,destroyOnHidden:S,destroyOnClose:R,panelRef:M=null,closable:b,mask:_,modalRender:O,maskClosable:$,_semanticOmit:T,scrollLock:W,focusTriggerAfterClose:k,focusable:L,_renderSemanticContent:H,...F}=e,{getPopupContainer:q,getPrefixCls:Q,direction:V,className:U,style:te,classNames:oe,styles:J,centered:be,cancelButtonProps:ze,okButtonProps:we,mask:$e,focusable:me}=le("modal"),{modal:ne}=j(se),[fe,at]=D(()=>typeof b=="boolean"?[void 0,void 0]:[b?.afterClose,b?.onClose],[b]),de=Q("modal",t),Et=Q(),[it,Qt,ge]=Mi(_,$e,de,$),he=Sn({...me,...L},it,k),Le=Be=>{h||(v?.(Be),at?.())},Nr=Be=>{y?.(Be),at?.()},Pe=lt(de),[Je,Nt]=ks(de,Pe),et=P(n,{[`${de}-centered`]:i??be,[`${de}-wrap-rtl`]:V==="rtl"}),wr=c!==null&&!p?d(Ms,{...e,okButtonProps:{...we,...E},onOk:Nr,cancelButtonProps:{...ze,...N},onCancel:Le}):null,[yo,pt,gt,xo]=Oi(At(e),At(ne),{closable:!0,closeIcon:d(ot,{className:`${de}-close-icon`}),closeIconRender:Be=>Os(de,Be)}),$r=yo?{disabled:gt,closeIcon:pt,afterClose:fe,...xo}:!1,Jt=O?Be=>d("div",{className:`${de}-render`},O(Be)):void 0,Pr=`.${de}-${O?"render":"container"}`,Co=Ps(Pr),Or=(0,po.composeRef)(M,Co),[vo,bo]=Ba("Modal",C),eo={...e,width:u,panelRef:M,focusTriggerAfterClose:he.focusTriggerAfterClose,focusable:he,mask:it,maskClosable:ge,zIndex:vo},[to,oo]=xe([oe,g,Qt],[J,m],{props:eo}),ht=T?(0,po.omit)(to,T):to,ro=T?(0,po.omit)(oo,T):oo,Mr=H?H({classNames:to,styles:oo}):f,[_r,wt]=D(()=>re(u)?[void 0,u]:[u,void 0],[u]),So=D(()=>{let Be={};return wt&&Object.keys(wt).forEach(G=>{let X=wt[G];Se(X)&&(Be[`--${de}-${G}-width`]=Ue(X)?`${X}px`:X)}),Be},[de,wt]);return d(Wa,{form:!0,space:!0},d(za.Provider,{value:bo},d(Ts.default,{width:_r,...F,zIndex:vo,getContainer:s===void 0?q:s,prefixCls:de,rootClassName:P(Je,r,Nt,Pe,ht.root),rootStyle:ro.root,footer:wr,visible:a,mousePosition:x??kn,onClose:Le,closable:$r,closeIcon:pt,transitionName:ct(Et,"zoom",e.transitionName),maskTransitionName:ct(Et,"fade",e.maskTransitionName),mask:it,maskClosable:ge,scrollLock:W,className:P(Je,o,U),style:{...te,...l,...So},classNames:{...ht,wrapper:P(ht.wrapper,et)},styles:ro,panelRef:Or,destroyOnHidden:S??R,modalRender:Jt,focusTriggerAfterClose:he.focusTriggerAfterClose,focusTrap:he.trap},p?d(Ns,{active:!0,title:!1,paragraph:{rows:4},className:`${de}-body-skeleton`}):Mr)))},dr=Nm;var Tn=A(je());var wm=e=>{let{componentCls:t,titleFontSize:o,titleLineHeight:r,modalConfirmIconSize:a,fontSize:n,lineHeight:i,modalTitleHeight:s,fontHeight:l,confirmBodyPadding:u}=e,c=`${t}-confirm`;return{[c]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${c}-body-wrapper`]:{...Ta()},[`&${t} ${t}-body`]:{padding:u},[`${c}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:a,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(l).sub(a).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(s).sub(a).equal()).div(2).equal()}},[`${c}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${(0,Tn.unit)(e.marginSM)})`},[`${c}-body-no-icon ${c}-paragraph`]:{maxWidth:"100%"},[`${e.iconCls} + ${c}-paragraph`]:{maxWidth:`calc(100% - ${(0,Tn.unit)(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${c}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:o,lineHeight:r},[`${c}-container`]:{color:e.colorText,fontSize:n,lineHeight:i},[`${c}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${c}-error ${c}-body > ${e.iconCls}`]:{color:e.colorError},[`${c}-warning ${c}-body > ${e.iconCls},
12
+ ${c}-confirm ${c}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${c}-info ${c}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${c}-success ${c}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},Is=_t(["Modal","confirm"],e=>{let t=Mn(e);return wm(t)},_n,{order:-1e3});var $m=["body"],Pm=e=>{let{prefixCls:t,icon:o,okText:r,cancelText:a,confirmPrefixCls:n,type:i,okCancel:s,footer:l,locale:u,autoFocusButton:c,focusable:g,contentClassName:m,contentStyle:f,...p}=e,{infoIcon:h,successIcon:C,errorIcon:x,warningIcon:y}=le("modal"),v=o;if(o===void 0)switch(i){case"info":v=ao(h,d(Lt,null));break;case"success":v=ao(C,d(Tt,null));break;case"error":v=ao(x,d(It,null));break;default:v=ao(y,d(zt,null))}let E=s??i==="confirm",N=D(()=>{let H=g?.autoFocusButton||c;return H||H===null?H:"ok"},[c,g?.autoFocusButton]),[S]=Ce("Modal"),R=u||S,M=r||(E?R?.okText:R?.justOkText),b=a||R?.cancelText,{closable:_}=p,{onClose:O}=re(_)?_:{},$=D(()=>({autoFocusButton:N,cancelTextLocale:b,okTextLocale:M,mergedOkCancel:E,onClose:O,...p}),[N,b,M,E,O,p]),T=d(De,null,d(mn,null),d(fn,null)),W=Re(e.title),k=Re(v),L=`${n}-body`;return d("div",{className:`${n}-body-wrapper`},d("div",{className:P(L,{[`${L}-has-title`]:W,[`${L}-no-icon`]:!k})},v,d("div",{className:`${n}-paragraph`},W&&d("span",{className:`${n}-title`},e.title),d("div",{className:P(`${n}-content`,m),style:f},e.content))),l===void 0||Ee(l)?d(Yo,{value:$},d("div",{className:`${n}-btns`},Ee(l)?l(T,{OkBtn:fn,CancelBtn:mn}):T)):l,d(Is,{prefixCls:t}))},Om=e=>{let{close:t,zIndex:o,maskStyle:r,direction:a,prefixCls:n,wrapClassName:i,rootPrefixCls:s,bodyStyle:l,closable:u=!1,onConfirm:c,styles:g,title:m,mask:f,maskClosable:p,okButtonProps:h,cancelButtonProps:C}=e,{cancelButtonProps:x,okButtonProps:y}=le("modal"),v=`${n}-confirm`,E=e.width||416,N=e.style||{},S=Ee(g)?$=>({body:l,mask:r,...g($)}):{body:l,mask:r,...g},R=(0,zs.omit)(e,["bodyStyle","maskStyle"]),M=P(v,`${v}-${e.type}`,{[`${v}-rtl`]:a==="rtl"},e.className),b=D(()=>{let $=Go(f,p);return $.closable??($.closable=!1),$},[f,p]),[,_]=st(),O=D(()=>o!==void 0?o:_.zIndexPopupBase+Dt,[o,_]);return d(dr,{...R,className:M,wrapClassName:P({[`${v}-centered`]:!!e.centered},i),onCancel:()=>{t?.({triggerCancel:!0}),c?.(!1)},title:m,footer:null,transitionName:ct(s||"","zoom",e.transitionName),maskTransitionName:ct(s||"","fade",e.maskTransitionName),mask:b,style:N,styles:S,width:E,zIndex:O,closable:u,_semanticOmit:$m,_renderSemanticContent:({classNames:$,styles:T})=>d(Pm,{...e,confirmPrefixCls:v,okButtonProps:{...y,...h},cancelButtonProps:{...x,...C},contentClassName:$.body,contentStyle:T.body})})},Mm=e=>{let{rootPrefixCls:t,iconPrefixCls:o,direction:r,theme:a}=e;return d(kt,{prefixCls:t,iconPrefixCls:o,direction:r,theme:a},d(Om,{...e}))},Bs=Mm;var _m=[],Ds=_m;function Hs(e){return{...e,type:"warning"}}function Ls(e){return{...e,type:"info"}}function As(e){return{...e,type:"success"}}function js(e){return{...e,type:"error"}}function Fs(e){return{...e,type:"confirm"}}w();var km=Z((e,t)=>{let{afterClose:o,config:r,...a}=e,[n,i]=K(!0),[s,l]=K(r),{direction:u,getPrefixCls:c}=j(se),g=c("modal"),m=c(),f=()=>{o(),s.afterClose?.()},p=(...x)=>{i(!1),x.some(v=>v?.triggerCancel)&&s.onCancel?.(()=>{},...x.slice(1))};Ae(t,()=>({destroy:p,update:x=>{l(y=>{let v=Ee(x)?x(y):x;return{...y,...v}})}}));let h=s.okCancel??s.type==="confirm",[C]=Ce("Modal",xt.Modal);return d(Bs,{prefixCls:g,rootPrefixCls:m,...s,close:p,open:n,afterClose:f,okText:s.okText||(h?C?.okText:C?.justOkText),direction:s.direction||u,cancelText:s.cancelText||C?.cancelText,...a})}),qs=km;var Vs=0,Tm=ga(Z((e,t)=>{let[o,r]=_i();return Ae(t,()=>({patchElement:r}),[r]),d(De,null,o)}));function Im(){let e=Y(null),[t,o]=K([]);ye(()=>{t.length&&(Oe(t).forEach(i=>{i()}),o([]))},[t]);let r=Pt(n=>function(s){Vs+=1;let l=pa(),u,c=new Promise(h=>{u=h}),g=!1,m,f=d(qs,{key:`modal-${Vs}`,config:n(s),ref:l,afterClose:()=>{m?.()},isSilent:()=>g,onConfirm:h=>{u(h)}});return m=e.current?.patchElement(f),m&&Ds.push(m),{destroy:()=>{function h(){l.current?.destroy()}l.current?h():o(C=>[].concat(Oe(C),[h]))},update:h=>{function C(){l.current?.update(h)}l.current?C():o(x=>[].concat(Oe(x),[C]))},then:h=>(g=!0,c.then(h))}},[]);return[D(()=>({info:r(Ls),success:r(As),error:r(js),warning:r(Hs),confirm:r(Fs)}),[r]),d(Tm,{key:"modal-holder",ref:e})]}var Gs=Im;w();var ur=A(so());w();var zm=A(so());var Us={info:d(Lt,null),success:d(Tt,null),error:d(It,null),warning:d(zt,null),loading:d(Bt,null)};function In(e,t){return t===null||t===!1?null:t||d(ot,{className:`${e}-close-icon`})}var Bm=4.5,Dm="topRight",Wm={offset:8},Hm=({children:e,prefixCls:t})=>{let o=lt(t),[r,a]=Li(t,o);return B.createElement(ur.NotificationProvider,{classNames:{list:P(r,a,o)}},e)},Lm=(e,{prefixCls:t,key:o})=>B.createElement(Hm,{prefixCls:t,key:o},e),Am=B.forwardRef((e,t)=>{let{top:o,bottom:r,prefixCls:a,getContainer:n,maxCount:i,rtl:s,onAllRemoved:l,stack:u,duration:c=Bm,pauseOnHover:g=!0,showProgress:m}=e,{getPrefixCls:f,getPopupContainer:p,direction:h}=le("notification"),{notification:C}=j(se),[x]=Ce("global",xt.global),y=a||f("notification"),v=D(()=>Ue(c)&&c>0?c:!1,[c]),E=Ne(C?.style),[N,S]=xe([C?.classNames,e?.classNames],[C?.styles,E,e?.styles],{props:e}),R=()=>Vo(o,r),M=()=>P({[`${y}-rtl`]:s??h==="rtl"}),b=()=>bi(y),_=qo(u,Wm),[O,$]=(0,ur.useNotification)({prefixCls:y,style:R,className:M,motion:b,closable:{closeIcon:In(y)},duration:v,getContainer:()=>n?.()||p?.()||document.body,maxCount:i,pauseOnHover:g,showProgress:m,classNames:N,styles:S,onAllRemoved:l,renderNotifications:Lm,stack:_});return B.useImperativeHandle(t,()=>({...O,prefixCls:y,notification:C,closeLabel:x.close??xt.global?.close??"Close"})),$});function jm(e){let t=B.useRef(null),o=No("Notification"),{notification:r}=B.useContext(se);return[B.useMemo(()=>{let n=u=>{if(!t.current)return;let{open:c,prefixCls:g,notification:m,closeLabel:f}=t.current,p=m?.className||{},h=`${g}-notice`,{title:C,message:x,description:y,icon:v,type:E,btn:N,actions:S,className:R,style:M,role:b="alert",closeIcon:_,closable:O,classNames:$={},styles:T={},...W}=u,k=C??x,L=Re(k),H=S??N,F=In(h,Si(_,e,m)),[q,Q,,V]=nn(At({...e||{},...u}),At(r),{closable:!0,closeIcon:F},f),U=q?{onClose:re(O)?O.onClose:void 0,closeIcon:Q,...V}:!1,te=Ot($,{props:u}),oe=Ot(T,{props:u}),J=v||(E?Us[E]:null),be=!v&&E?`${h}-icon-${E}`:void 0;return c({placement:e?.placement??Dm,...W,title:L?k:null,description:y,icon:J,actions:H,role:b,classNames:{...te,icon:P(be,te?.icon)},styles:oe,className:P({[`${h}-${E}`]:E},R,p),style:M,closable:U})},s={open:n,destroy:u=>{u!==void 0?t.current?.close(u):t.current?.destroy()}};return["success","info","warning","error"].forEach(u=>{s[u]=c=>n({...c,type:u})}),s},[e,r]),B.createElement(Am,{key:"notification-holder",...e,ref:t})]}function zn(e){return jm(e)}var Fm=e=>{let{componentCls:t,colorText:o,fontSize:r,lineHeight:a,fontFamily:n}=e;return{[t]:{color:o,fontSize:r,lineHeight:a,fontFamily:n,[`&${t}-rtl`]:{direction:"rtl"}}}},qm=()=>({}),Xs=ce("App",Fm,qm);var Vm=B.forwardRef((e,t)=>{let{prefixCls:o,children:r,className:a,rootClassName:n,message:i,notification:s,style:l,component:u="div"}=e,{direction:c,getPrefixCls:g,className:m,style:f}=le("app"),p=g("app",o),[h,C]=Xs(p),x=P(h,p,a,n,C,{[`${p}-rtl`]:c==="rtl"}),y=j(zr),v=B.useMemo(()=>({message:{...y.message,...i},notification:{...y.notification,...s}}),[i,s,y.message,y.notification]),[E,N]=un(v.message),[S,R]=zn(v.notification),[M,b]=Gs(),_=B.useMemo(()=>({message:E,notification:S,modal:M}),[E,S,M]),O=xa("App");O(!(C&&u===!1&&!!(a||n||l||m||f)),"usage","When using cssVar, ensure `component` is assigned a valid React component string."),O(!t||u!==!1,"usage","`ref` is not supported when `component` is `false`. Please provide a valid `component` instead.");let T=u===!1?B.Fragment:u,W={className:P(m,x),style:{...f,...l}};return B.createElement(La.Provider,{value:_},B.createElement(zr.Provider,{value:v},B.createElement(T,{...u===!1?void 0:{...W,ref:t}},b,N,R,r)))}),Zs=Vm;var mr=A(je());var Gm=e=>{let t=e?.algorithm?(0,mr.createTheme)(e.algorithm):wa,o={...ba,...e?.token};return(0,mr.getComputedToken)(o,{override:e?.token},t,_a)},Ks=Gm;function Bn(e){let{sizeUnit:t,sizeStep:o}=e,r=o-2;return{sizeXXL:t*(r+10),sizeXL:t*(r+6),sizeLG:t*(r+2),sizeMD:t*(r+2),sizeMS:t*(r+1),size:t*r,sizeSM:t*r,sizeXS:t*(r-1),sizeXXS:t*(r-1)}}var Um=(e,t)=>{let o=t??Mt(e),r=o.fontSizeSM,a=o.controlHeight-4;return{...o,...Bn(t??e),...Na(r),controlHeight:a,...Ea({...o,controlHeight:a})}},Ys=Um;var el=A(Tr());var Qs=A(Tr());var Dn=A(Sa()),He=(e,t)=>new Dn.FastColor(e).setA(t).toRgbString(),ft=(e,t)=>new Dn.FastColor(e).lighten(t).toHexString();var Wn=e=>{let t=(0,Qs.generate)(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},Js=(e,t,o)=>{let r=e||"#000",a=t||"#fff";return{colorBgBase:r,colorTextBase:a,colorShadow:o||"rgba(255, 255, 255, 0.2)",colorText:He(a,.85),colorTextSecondary:He(a,.65),colorTextTertiary:He(a,.45),colorTextQuaternary:He(a,.25),colorFill:He(a,.18),colorFillSecondary:He(a,.12),colorFillTertiary:He(a,.08),colorFillQuaternary:He(a,.04),colorBgSolid:He(a,.95),colorBgSolidHover:He(a,1),colorBgSolidActive:He(a,.9),colorBgElevated:ft(r,12),colorBgContainer:ft(r,8),colorBgLayout:ft(r,0),colorBgSpotlight:ft(r,26),colorBgBlur:He(a,.04),colorBorder:ft(r,26),colorBorderDisabled:ft(r,26),colorBorderSecondary:ft(r,19)}};var Xm=(e,t)=>{let o=Object.keys(va).map(i=>{let s=(0,el.generate)(e[i],{theme:"dark"});return Array.from({length:10},()=>1).reduce((l,u,c)=>(l[`${i}-${c+1}`]=s[c],l[`${i}${c+1}`]=s[c],l),{})}).reduce((i,s)=>(i={...i,...s},i),{}),r=t??Mt(e),a=Ra(e,{generateColorPalettes:Wn,generateNeutralColorPalettes:Js}),n=$o.reduce((i,s)=>{let l=e[s];if(l){let u=Wn(l);i[`${s}Hover`]=u[7],i[`${s}Active`]=u[5]}return i},{});return{...r,...o,...a,...n,colorPrimaryBg:a.colorPrimaryBorder,colorPrimaryBgHover:a.colorPrimaryBorderHover}},tl=Xm;function Zm(){let[e,t,o,r]=st();return{theme:e,token:t,hashId:o,cssVar:r}}var Km={defaultSeed:Ir.token,useToken:Zm,defaultAlgorithm:Mt,darkAlgorithm:tl,compactAlgorithm:Ys,getDesignToken:Ks,defaultConfig:Ir,_internalContext:$a},ol=Km;w();var Ym={token:{colorPrimary:"#1677ff",borderRadius:10,motion:!0,fontFamily:["-apple-system","BlinkMacSystemFont","'Segoe UI'","Roboto","'Helvetica Neue'","Arial","'Noto Sans'","sans-serif"].join(", ")}},rl=To(Ym);w();var fr=Ge("light");w();var Ln="zlooks.theme",Hn="zlooks:theme-change",Ut="default";function go(){let e=ha(tf,Qm,Jm),t=j(fr);return{mode:e,resolvedMode:t,setMode:ef}}function pr(e){return e==="dark"||e==="light"||e==="default"?e:"default"}function Qm(){if(typeof window>"u")return Ut;try{let e=window.localStorage.getItem(Ln);e!==null&&(Ut=pr(e))}catch{}return Ut}function Jm(){return"default"}function ef(e){if(pr(e)!==e)throw new TypeError(`Unsupported Zlooks theme mode: ${String(e)}`);if(Ut=e,!(typeof window>"u")){try{window.localStorage.setItem(Ln,e)}catch{}window.dispatchEvent(new CustomEvent(Hn,{detail:e}))}}function tf(e){if(typeof window>"u")return()=>{};let t=r=>{Ut=pr(r.detail),e()},o=r=>{r.key===Ln&&(Ut=pr(r.newValue),e())};return window.addEventListener(Hn,t),window.addEventListener("storage",o),()=>{window.removeEventListener(Hn,t),window.removeEventListener("storage",o)}}var of=Te(Zs),rf=Te(kt),nl=Te(ol);function An({children:e,theme:t}){let o=go(),{resolvedMode:r,resolvedTheme:a}=jn(t??o.mode);return I(rf,{button:{autoInsertSpace:!1},theme:a,children:I(of,{children:I(fr,{value:r,children:I("div",{className:"zlooks-ui-theme","data-zlooks-theme":r,children:e})})})})}function jn(e){let t=nf(e==="default"),o=e==="default"?t?"dark":"light":e,r=D(()=>({...rl,algorithm:o==="dark"?nl.darkAlgorithm:nl.defaultAlgorithm,cssVar:{key:`zlooks-${o}`},hashed:!1,zeroRuntime:!0}),[o]);return{resolvedMode:o,resolvedTheme:r}}function nf(e){let[t,o]=K(!1);return ye(()=>{if(!e)return;let r=window.matchMedia("(prefers-color-scheme: dark)"),a=()=>o(r.matches);return a(),r.addEventListener("change",a),()=>r.removeEventListener("change",a)},[e]),t}w();var ll=A(Pa()),cl=A(ie());w();var af=Ge({}),al=af;var il=A(je());var sf=e=>{let{antCls:t,componentCls:o,iconCls:r,avatarBg:a,avatarColor:n,containerSize:i,containerSizeLG:s,containerSizeSM:l,textFontSize:u,textFontSizeLG:c,textFontSizeSM:g,iconFontSize:m,iconFontSizeLG:f,iconFontSizeSM:p,borderRadius:h,borderRadiusLG:C,borderRadiusSM:x,lineWidth:y,lineType:v}=e,E=(N,S,R,M)=>({width:N,height:N,borderRadius:"50%",fontSize:S,[`&${o}-square`]:{borderRadius:M},[`&${o}-icon`]:{fontSize:R,[`> ${r}`]:{margin:0}}});return{[o]:{...Xe(e),position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:n,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:a,border:`${(0,il.unit)(y)} ${v} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"},...E(i,u,m,h),"&-lg":{...E(s,c,f,C)},"&-sm":{...E(l,g,p,x)},"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}}}},lf=e=>{let{componentCls:t,groupBorderColor:o,groupOverlapping:r,groupSpace:a}=e;return{[`${t}-group`]:{display:"inline-flex",[t]:{borderColor:o},"> *:not(:first-child)":{marginInlineStart:r}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:a}}}},cf=e=>{let{controlHeight:t,controlHeightLG:o,controlHeightSM:r,fontSize:a,fontSizeLG:n,fontSizeXL:i,fontSizeHeading3:s,marginXS:l,marginXXS:u,colorBorderBg:c}=e;return{containerSize:t,containerSizeLG:o,containerSizeSM:r,textFontSize:a,textFontSizeLG:a,textFontSizeSM:a,iconFontSize:Math.round((n+i)/2),iconFontSizeLG:s,iconFontSizeSM:a,groupSpace:u,groupOverlapping:-l,groupBorderColor:c}},sl=ce("Avatar",e=>{let{colorTextLightSolid:t,colorTextPlaceholder:o}=e,r=(0,ve.mergeToken)(e,{avatarBg:o,avatarColor:t});return[sf(r),lf(r)]},cf);var df=Z((e,t)=>{let{prefixCls:o,shape:r,size:a,src:n,srcSet:i,icon:s,className:l,rootClassName:u,style:c,alt:g,draggable:m,children:f,crossOrigin:p,gap:h=4,onError:C,...x}=e,[y,v]=K(1),[E,N]=K(!1),[S,R]=K(!0),M=Y(null),b=Y(null),_=(0,cl.composeRef)(t,M),{getPrefixCls:O,className:$,style:T}=le("avatar"),W=j(al),k=()=>{if(!b.current||!M.current)return;let ne=b.current.offsetWidth,fe=M.current.offsetWidth;ne!==0&&fe!==0&&h*2<fe&&v(fe-h*2<ne?(fe-h*2)/ne:1)};ye(()=>{N(!0)},[]),ye(()=>{R(!0),v(1)},[n]),ye(k,[h]);let L=()=>{C?.()!==!1&&R(!1)},H=Ze(ne=>a??W?.size??ne??"medium"),F=Object.keys(re(H)?H||{}:{}).some(ne=>Br.includes(ne)),q=Aa(F),Q=D(()=>{if(!re(H))return{};let ne=Br.find(at=>q[at]),fe=H[ne];return fe?{width:fe,height:fe,fontSize:fe&&(s||f)?fe/2:18}:{}},[q,H,s,f]),V=O("avatar",o),U=lt(V),[te,oe]=sl(V,U),J=P({[`${V}-lg`]:H==="large",[`${V}-sm`]:H==="small"}),be=Ro(n),ze=r||W?.shape||"circle",we=P(V,J,$,`${V}-${ze}`,{[`${V}-image`]:be||n&&S,[`${V}-icon`]:!!s},oe,U,l,u,te),$e=Ue(H)?{width:H,height:H,fontSize:s?H/2:18}:{},me;if(typeof n=="string"&&S)me=d("img",{src:n,draggable:m,srcSet:i,onError:L,alt:g,crossOrigin:p});else if(be)me=n;else if(s)me=s;else if(E||y!==1){let ne=`scale(${y})`,fe={msTransform:ne,WebkitTransform:ne,transform:ne};me=d(ll.default,{onResize:k},d("span",{className:`${V}-string`,ref:b,style:fe},f))}else me=d("span",{className:`${V}-string`,style:{opacity:0},ref:b},f);return d("span",{...x,style:{...$e,...Q,...T,...c},className:we,ref:_},me)}),dl=df;w();var Ye=A(je());var uf=e=>{let{componentCls:t}=e;return{[t]:{"&-horizontal":{[`&${t}`]:{"&-sm":{marginBlock:e.marginXS},"&-md":{marginBlock:e.margin}}}}}},mf=e=>{let{componentCls:t,sizePaddingEdgeHorizontal:o,colorSplit:r,lineWidth:a,textPaddingInline:n,orientationMargin:i,verticalMarginInline:s}=e,l=`${t}-rail`;return{[t]:{...Xe(e),borderBlockStart:`${(0,Ye.unit)(a)} solid ${r}`,[l]:{borderBlockStart:`${(0,Ye.unit)(a)} solid ${r}`},"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:s,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${(0,Ye.unit)(a)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${(0,Ye.unit)(e.marginLG)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${(0,Ye.unit)(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,[`${l}-start, ${l}-end`]:{width:"50%",borderBlockStartColor:"inherit",borderBlockEnd:0,content:"''"}},[`&-horizontal${t}-with-text-start`]:{[`${l}-start`]:{width:`calc(${i} * 100%)`},[`${l}-end`]:{width:`calc(100% - ${i} * 100%)`}},[`&-horizontal${t}-with-text-end`]:{[`${l}-start`]:{width:`calc(100% - ${i} * 100%)`},[`${l}-end`]:{width:`calc(${i} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:n},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${(0,Ye.unit)(a)} 0 0`,[l]:{borderBlockStart:`${(0,Ye.unit)(a)} dashed ${r}`}},[`&-horizontal${t}-with-text${t}-dashed`]:{[`${l}-start, ${l}-end`]:{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:a,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:r,borderStyle:"dotted",borderWidth:`${(0,Ye.unit)(a)} 0 0`,[l]:{borderBlockStart:`${(0,Ye.unit)(a)} dotted ${r}`}},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:a,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-start${t}-no-default-orientation-margin-start`]:{[`${l}-start`]:{width:0},[`${l}-end`]:{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:o}},[`&-horizontal${t}-with-text-end${t}-no-default-orientation-margin-end`]:{[`${l}-start`]:{width:"100%"},[`${l}-end`]:{width:0},[`${t}-inner-text`]:{paddingInlineEnd:o}}}}},ff=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),ul=ce("Divider",e=>{let t=(0,ve.mergeToken)(e,{dividerHorizontalWithTextGutterMargin:e.margin,sizePaddingEdgeHorizontal:0});return[mf(t),uf(t)]},ff,{unitless:{orientationMargin:!0}});var pf=["left","right","center","start","end"],gf=Z((e,t)=>{let{getPrefixCls:o,direction:r,className:a,style:n,classNames:i,styles:s}=le("divider"),{prefixCls:l,type:u,orientation:c,vertical:g,titlePlacement:m,orientationMargin:f,className:p,rootClassName:h,children:C,dashed:x,variant:y="solid",plain:v,style:E,size:N,classNames:S,styles:R,...M}=e,b=o("divider",l),_=`${b}-rail`,[O,$]=ul(b),T=Ze(N),W=!!C,k=pf.includes(c||""),L=D(()=>{let $e=m??(k?c:"center");return $e==="left"?r==="rtl"?"end":"start":$e==="right"?r==="rtl"?"start":"end":$e},[r,c,m,k]),H=L==="start"&&f!=null,F=L==="end"&&f!=null,[q,Q]=Mo(c,g,u),V={...e,orientation:q,titlePlacement:L,size:T},U=Ne(n),[te,oe]=xe([i,S],[s,U,R],{props:V}),J=P(b,a,O,$,`${b}-${q}`,{[`${b}-with-text`]:W,[`${b}-with-text-${L}`]:W,[`${b}-dashed`]:!!x,[`${b}-${y}`]:y!=="solid",[`${b}-plain`]:!!v,[`${b}-rtl`]:r==="rtl",[`${b}-no-default-orientation-margin-start`]:H,[`${b}-no-default-orientation-margin-end`]:F,[`${b}-md`]:T==="medium"||T==="middle",[`${b}-sm`]:T==="small",[_]:!C,[te.rail]:te.rail&&!C},p,h,te.root),be=D(()=>Ue(f)?f:/^\d+$/.test(f)?Number(f):f,[f]),ze={marginInlineStart:H?be:void 0,marginInlineEnd:F?be:void 0},we=Y(null);return Ae(t,()=>({nativeElement:we.current})),d("div",{ref:we,className:J,style:{...oe.root,...C?{}:oe.rail,...E},...M,role:"separator"},C&&!Q&&d(De,null,d("div",{className:P(_,`${_}-start`,te.rail),style:oe.rail}),d("span",{className:P(`${b}-inner-text`,te.content),style:{...ze,...oe.content}},C),d("div",{className:P(_,`${_}-end`,te.rail),style:oe.rail})))}),ml=gf;w();w();w();var fl=A(Sa()),nt=(e,t)=>e?.startsWith("var(")||t?.startsWith("var(")?e:new fl.FastColor(e).onBackground(t).toHexString();var hf=()=>{let[,e]=st(),[t]=Ce("Empty"),{colorBgContainer:o,colorFill:r,colorFillSecondary:a,colorFillTertiary:n,colorTextQuaternary:i}=e,{panelBgColor:s,borderColor:l,detailColor:u,shadowColor:c,iconColor:g}=D(()=>({panelBgColor:nt(n,o),borderColor:nt(i,o),detailColor:nt(r,o),shadowColor:nt(a,o),iconColor:o}),[o,r,a,n,i]);return d("svg",{width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},d("title",null,t?.description||"Empty"),d("g",{fill:"none",fillRule:"evenodd"},d("g",{transform:"translate(24 31.7)"},d("ellipse",{fillOpacity:".8",fill:c,cx:"67.8",cy:"106.9",rx:"67.8",ry:"12.7"}),d("path",{fill:l,d:"M122 69.7 98.1 40.2a6 6 0 0 0-4.6-2.2H42.1a6 6 0 0 0-4.6 2.2l-24 29.5V85H122z"}),d("path",{fill:s,d:"M33.8 0h68a4 4 0 0 1 4 4v93.3a4 4 0 0 1-4 4h-68a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4"}),d("path",{fill:u,d:"M42.7 10h50.2a2 2 0 0 1 2 2v25a2 2 0 0 1-2 2H42.7a2 2 0 0 1-2-2V12a2 2 0 0 1 2-2m.2 39.8h49.8a2.3 2.3 0 1 1 0 4.5H42.9a2.3 2.3 0 0 1 0-4.5m0 11.7h49.8a2.3 2.3 0 1 1 0 4.6H42.9a2.3 2.3 0 0 1 0-4.6m79 43.5a7 7 0 0 1-6.8 5.4H20.5a7 7 0 0 1-6.7-5.4l-.2-1.8V69.7h26.3c2.9 0 5.2 2.4 5.2 5.4s2.4 5.4 5.3 5.4h34.8c2.9 0 5.3-2.4 5.3-5.4s2.3-5.4 5.2-5.4H122v33.5q0 1-.2 1.8"})),d("path",{fill:u,d:"m149.1 33.3-6.8 2.6a1 1 0 0 1-1.3-1.2l2-6.2q-4.1-4.5-4.2-10.4c0-10 10.1-18.1 22.6-18.1S184 8.1 184 18.1s-10.1 18-22.6 18q-6.8 0-12.3-2.8"}),d("g",{fill:g,transform:"translate(149.7 15.4)"},d("circle",{cx:"20.7",cy:"3.2",r:"2.8"}),d("path",{d:"M5.7 5.6H0L2.9.7zM9.3.7h5v5h-5z"}))))},pl=hf;w();w();var yf=()=>{let[,e]=st(),[t]=Ce("Empty"),{colorFill:o,colorFillTertiary:r,colorFillQuaternary:a,colorBgContainer:n}=e,{borderColor:i,shadowColor:s,contentColor:l}=D(()=>({borderColor:nt(o,n),shadowColor:nt(r,n),contentColor:nt(a,n)}),[o,r,a,n]);return d("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},d("title",null,t?.description||"Empty"),d("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},d("ellipse",{fill:s,cx:"32",cy:"33",rx:"32",ry:"7"}),d("g",{fillRule:"nonzero",stroke:i},d("path",{d:"M55 12.8 44.9 1.3Q44 0 42.9 0H21.1q-1.2 0-2 1.3L9 12.8V22h46z"}),d("path",{d:"M41.6 16c0-1.7 1-3 2.2-3H55v18.1c0 2.2-1.3 3.9-3 3.9H12c-1.7 0-3-1.7-3-3.9V13h11.2c1.2 0 2.2 1.3 2.2 3s1 2.9 2.2 2.9h14.8c1.2 0 2.2-1.4 2.2-3",fill:l}))))},gl=yf;var xf=e=>{let{componentCls:t,margin:o,marginXS:r,marginXL:a,fontSize:n,lineHeight:i}=e;return{[t]:{marginInline:r,fontSize:n,lineHeight:i,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:o},"&-normal":{marginBlock:a,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},hl=ce("Empty",e=>{let{componentCls:t,controlHeightLG:o,calc:r}=e,a=(0,ve.mergeToken)(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(o).mul(2.5).equal(),emptyImgHeightMD:o,emptyImgHeightSM:r(o).mul(.875).equal()});return xf(a)});var yl=d(pl,null),xl=d(gl,null),Fn=Z((e,t)=>{let{className:o,rootClassName:r,prefixCls:a,image:n,description:i,children:s,imageStyle:l,style:u,classNames:c,styles:g,...m}=e,{getPrefixCls:f,direction:p,className:h,style:C,classNames:x,styles:y,image:v}=le("empty"),E=f("empty",a),[N,S]=hl(E),R=Ne(C),M=Ne(u),[b,_]=xe([x,c],[y,R,g,M],{props:e}),[O]=Ce("Empty"),$=typeof i<"u"?i:O?.description,T=typeof $=="string"?$:"empty",W=n??v??yl,k=null;typeof W=="string"?k=d("img",{draggable:!1,alt:T,src:W}):k=W;let L=Y(null);return Ae(t,()=>({nativeElement:L.current})),d("div",{ref:L,className:P(N,S,E,h,{[`${E}-normal`]:W===xl,[`${E}-rtl`]:p==="rtl"},o,r,b.root),style:_.root,...m},d("div",{className:P(`${E}-image`,b.image),style:{...l,..._.image}},k),$&&d("div",{className:P(`${E}-description`,b.description),style:_.description},$),s&&d("div",{className:P(`${E}-footer`,b.footer),style:_.footer},s))});Fn.PRESENTED_IMAGE_DEFAULT=yl;Fn.PRESENTED_IMAGE_SIMPLE=xl;var Cl=Fn;w();var Sl=A(ie());var qn=["wrap","nowrap","wrap-reverse"],Vn=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],Gn=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],Cf=(e,t)=>{let o=t.wrap===!0?"wrap":t.wrap;return{[`${e}-wrap-${o}`]:o&&qn.includes(o)}},vf=(e,t)=>{let o={};return Gn.forEach(r=>{o[`${e}-align-${r}`]=t.align===r}),o[`${e}-align-stretch`]=!t.align&&!!t.vertical,o},bf=(e,t)=>{let o={};return Vn.forEach(r=>{o[`${e}-justify-${r}`]=t.justify===r}),o},Sf=(e,t)=>P({...Cf(e,t),...vf(e,t),...bf(e,t)}),vl=Sf;var Rf=e=>{let{componentCls:t}=e;return{[t]:{display:"flex",margin:0,padding:0,"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},Ef=e=>{let{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-medium, &-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},Nf=e=>{let{componentCls:t}=e,o={};return qn.forEach(r=>{o[`${t}-wrap-${r}`]={flexWrap:r}}),o},wf=e=>{let{componentCls:t}=e,o={};return Gn.forEach(r=>{o[`${t}-align-${r}`]={alignItems:r}}),o},$f=e=>{let{componentCls:t}=e,o={};return Vn.forEach(r=>{o[`${t}-justify-${r}`]={justifyContent:r}}),o},Pf=()=>({}),bl=ce("Flex",e=>{let{paddingXS:t,padding:o,paddingLG:r}=e,a=(0,ve.mergeToken)(e,{flexGapSM:t,flexGap:o,flexGapLG:r});return[Rf(a),Ef(a),Nf(a),wf(a),$f(a)]},Pf,{resetStyle:!1});var Of=B.forwardRef((e,t)=>{let{prefixCls:o,rootClassName:r,className:a,style:n,flex:i,gap:s,vertical:l,orientation:u,component:c="div",children:g,...m}=e,{flex:f,direction:p,getPrefixCls:h}=B.useContext(se),C=h("flex",o),[x,y]=bl(C),[,v]=Mo(u,l??f?.vertical),E=P(a,r,f?.className,C,x,y,vl(C,{...e,vertical:v}),{[`${C}-rtl`]:p==="rtl",[`${C}-gap-${s}`]:Dr(s),[`${C}-vertical`]:v}),N={...f?.style,...n};return Se(i)&&(N.flex=i),Se(s)&&!Dr(s)&&(N.gap=s),B.createElement(c,{ref:t,className:E,style:N,...(0,Sl.omit)(m,["justify","wrap","align"])},g)}),Rl=Of;w();var $l=A(ie());var Xt=e=>Re(e)?Ee(e)?e():e:null;w();var Nl=A(Ec());var El="50%",Mf=e=>{let{componentCls:t,popoverColor:o,titleMinWidth:r,fontWeightStrong:a,innerPadding:n,dropShadowPopover:i,colorTextHeading:s,borderRadiusLG:l,zIndexPopup:u,titleMarginBottom:c,colorBgElevated:g,popoverBg:m,titleBorderBottom:f,innerContentPadding:p,titlePadding:h,antCls:C}=e,[x,y]=no(C,"tooltip");return[{[t]:{...Xe(e),position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:u,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",filter:i,[x("valid-offset-x")]:y("arrow-offset-x","var(--arrow-x)"),transformOrigin:[y("valid-offset-x",El),`var(--arrow-y, ${El})`].join(" "),[x("arrow-background-color")]:g,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-container`]:{backgroundColor:m,backgroundClip:"padding-box",borderRadius:l,padding:n},[`${t}-title`]:{minWidth:r,marginBottom:c,color:s,fontWeight:a,borderBottom:f,padding:h},[`${t}-content`]:{color:o,padding:p}}},qa(e,y("arrow-background-color"),{arrowShadow:!1}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block"}}]},_f=e=>{let{componentCls:t,antCls:o}=e,[r]=no(o,"tooltip");return{[t]:$o.map(a=>{let n=e[`${a}6`];return{[`&${t}-${a}`]:{[r("arrow-background-color")]:n,[`${t}-inner`]:{backgroundColor:n},[`${t}-arrow`]:{background:"transparent"}}}})}},kf=e=>{let{lineWidth:t,controlHeight:o,fontHeight:r,padding:a,wireframe:n,zIndexPopupBase:i,borderRadiusLG:s,marginXS:l,lineType:u,colorSplit:c,paddingSM:g}=e,m=o-r,f=m/2,p=m/2-t,h=a;return{titleMinWidth:177,zIndexPopup:i+30,...ja(e),...Fa({contentRadius:s,limitVerticalRadius:!0}),innerPadding:n?0:12,titleMarginBottom:n?0:l,titlePadding:n?`${f}px ${h}px ${p}px`:0,titleBorderBottom:n?`${t}px ${u} ${c}`:"none",innerContentPadding:n?`${g}px ${h}px`:0}},gr=ce("Popover",e=>{let{colorBgElevated:t,colorText:o}=e,r=(0,ve.mergeToken)(e,{popoverBg:t,popoverColor:o});return[Mf(r),_f(r),ko(r,"zoom-big")]},kf,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var Un=e=>{let{title:t,content:o,prefixCls:r,classNames:a,styles:n}=e;return!Re(t)&&!Re(o)?null:d(De,null,Re(t)&&d("div",{className:P(`${r}-title`,a?.title),style:n?.title},t),Re(o)&&d("div",{className:P(`${r}-content`,a?.content),style:n?.content},o))},Tf=e=>{let{hashId:t,prefixCls:o,className:r,style:a,placement:n="top",title:i,content:s,children:l,classNames:u,styles:c}=e,g=Xt(i),m=Xt(s),f={...e,placement:n},[p,h]=xe([u],[c],{props:f}),C=P(t,o,`${o}-pure`,`${o}-placement-${n}`,r);return d("div",{className:C,style:a},d("div",{className:`${o}-arrow`}),d(Nl.Popup,{...e,className:t,prefixCls:o,classNames:p,styles:h},l||d(Un,{prefixCls:o,title:g,content:m,classNames:p,styles:h})))},If=e=>{let{prefixCls:t,className:o,...r}=e,{getPrefixCls:a}=j(se),n=a("popover",t),[i,s]=gr(n);return d(Tf,{...r,prefixCls:n,hashId:i,className:P(o,s)})},wl=If;var zf=Z((e,t)=>{let{prefixCls:o,title:r,content:a,overlayClassName:n,placement:i="top",trigger:s,children:l,mouseEnterDelay:u,mouseLeaveDelay:c,onOpenChange:g,overlayStyle:m={},styles:f,classNames:p,motion:h,arrow:C,...x}=e,{getPrefixCls:y,className:v,style:E,classNames:N,styles:S,arrow:R,trigger:M,mouseEnterDelay:b,mouseLeaveDelay:_}=le("popover"),O=u??b??.1,$=c??_??.1,T=y("popover",o),[W,k]=gr(T),L=y(),H=Va(C,R),F=s||M||"hover",q={...e,placement:i,trigger:F,mouseEnterDelay:O,mouseLeaveDelay:$,overlayStyle:m,styles:f,classNames:p},Q=Ne(E),V=Ne(m),[U,te]=xe([N,p],[S,Q,f,V],{props:q}),oe=P(n,W,k,v,U.root),[J,be]=(0,$l.useControlledState)(e.defaultOpen??!1,e.open),ze=me=>{be(me),g?.(me)},we=Xt(r),$e=Xt(a);return d(dt,{unique:!1,arrow:H,placement:i,trigger:F,mouseEnterDelay:O,mouseLeaveDelay:$,...x,prefixCls:T,classNames:{root:oe,container:U.container,arrow:U.arrow},styles:{root:te.root,container:te.container,arrow:te.arrow},ref:t,open:J,onOpenChange:ze,overlay:Re(we)||Re($e)?d(Un,{prefixCls:T,title:we,content:$e,classNames:U,styles:te}):null,motion:{motionName:ct(L,"zoom-big",typeof h?.motionName=="string"?h?.motionName:void 0)},"data-popover-inject":!0},l)}),Pl=zf;Pl._InternalPanelDoNotUseOrYouWillBeFired=wl;var Ol=Pl;w();var dc=A(ie());w();w();var _l=A(Ml());function Zn(){return Zn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Zn.apply(this,arguments)}var Df=(e,t)=>d(Fe,Zn({},e,{ref:t,icon:_l.default})),Wf=Z(Df),kl=Wf;var lc=A(Pa()),_e=A(ie());w();w();var Il=A(Tl());function Yn(){return Yn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Yn.apply(this,arguments)}var Lf=(e,t)=>d(Fe,Yn({},e,{ref:t,icon:Il.default})),Af=Z(Lf),zl=Af;var Qn=A(ie());var Bl=A(Tr()),Zt=A(je());var jf=(e,t,o,r)=>{let{titleMarginBottom:a,fontWeightStrong:n}=r;return{marginBottom:a,color:o,fontWeight:n,fontSize:e,lineHeight:t}},Dl=e=>{let t=[1,2,3,4,5],o={};return t.forEach(r=>{o[`
13
+ h${r}&,
14
+ div&-h${r},
15
+ div&-h${r} > textarea,
16
+ h${r}
17
+ `]=jf(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),o},Wl=e=>{let{componentCls:t}=e;return{[`&${`${t}-link`}`]:{...Oo(e),userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none",[`${t}-actions`]:{pointerEvents:"auto"}}}}}},Hl=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:`${(0,Zt.unit)(e.lineWidth)} ${e.lineType} rgba(100, 100, 100, 0.2)`,borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:`${(0,Zt.unit)(e.lineWidth)} ${e.lineType} rgba(100, 100, 100, 0.2)`,borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:Bl.gold[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:e.fontWeightStrong},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:`${(0,Zt.unit)(e.lineWidth)} ${e.lineType} rgba(100, 100, 100, 0.2)`,borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85},table:{width:"100%",textAlign:"start",borderCollapse:"separate",borderSpacing:0,marginBlock:"1em","th, td":{padding:(0,Zt.unit)(e.padding),overflowWrap:"break-word",borderBottom:`${(0,Zt.unit)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"thead > tr:first-child > th:first-child":{borderStartStartRadius:e.borderRadiusLG},"thead > tr:first-child > th:last-child":{borderStartEndRadius:e.borderRadiusLG},"thead > tr > th":{textAlign:"start",position:"relative",color:e.colorTextHeading,fontWeight:e.fontWeightStrong,backgroundColor:e.colorFillAlter,transition:`background-color ${e.motionDurationMid} ease`,"&:not(:last-child)::before":{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:e.colorSplit,transform:"translateY(-50%)",content:'""'}},"tbody > tr":{"> th, > td":{transition:`background-color ${e.motionDurationMid} ease`},"&:hover > th, &:hover > td":{backgroundColor:e.colorFillAlter}}}}),Ll=e=>{let{componentCls:t,paddingSM:o}=e,r=o;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),insetBlockStart:e.calc(r).div(-2).add(1).equal(),marginBottom:e.calc(r).div(2).sub(2).equal()},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorIcon,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},[`&${t}-edit-content textarea`]:{margin:"0!important",fontSize:"inherit",lineHeight:"inherit",fontFamily:"inherit",fontWeight:"inherit",MozTransition:"none",height:"1em"}}}},Al=e=>({[`${e.componentCls}-copy-success`]:{"&, &:hover, &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),jl=()=>({"a&-ellipsis, span&-ellipsis":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{...ka,"a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}});var Ff=e=>{let{componentCls:t,titleMarginTop:o}=e;return{[t]:{color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary, &${t}-link${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success, &${t}-link${t}-success`]:{color:e.colorSuccessText},[`&${t}-warning, &${t}-link${t}-warning`]:{color:e.colorWarningText},[`&${t}-danger, &${t}-link${t}-danger`]:{color:e.colorErrorText,[`&${t}-link:active, &${t}-link:focus`]:{color:e.colorErrorTextActive},[`&${t}-link:hover`]:{color:e.colorErrorTextHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"div&, p":{marginBottom:"1em"},...Dl(e),[`& + h1${t}, & + h2${t}, & + h3${t}, & + h4${t}, & + h5${t}`]:{marginTop:o},"div, ul, li, p, h1, h2, h3, h4, h5":{"+ h1, + h2, + h3, + h4, + h5":{marginTop:o}},...Hl(e),...Wl(e),[`${t}-actions`]:{display:"inline"},[`
18
+ ${t}-expand,
19
+ ${t}-collapse,
20
+ ${t}-edit,
21
+ ${t}-copy
22
+ `]:{...Oo(e),marginInlineStart:e.marginXXS},[`${t}-actions-start`]:{[`
23
+ ${t}-expand,
24
+ ${t}-collapse,
25
+ ${t}-edit,
26
+ ${t}-copy:not(${t}-copy-icon-only)
27
+ `]:{marginInlineStart:0,marginInlineEnd:e.marginXXS}},...Ll(e),...Al(e),...jl(),"&-rtl":{direction:"rtl"}}}},qf=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),hr=ce("Typography",Ff,qf);var Vf=e=>{let{prefixCls:t,"aria-label":o,className:r,style:a,classNames:n,styles:i,direction:s,maxLength:l,autoSize:u=!0,value:c,onSave:g,onCancel:m,onEnd:f,component:p,enterIcon:h=d(zl,null)}=e,C=Y(null),x=Y(!1),y=Y(null),[v,E]=K(c);ye(()=>{E(c)},[c]),ye(()=>{if(C.current?.resizableTextArea){let{textArea:k}=C.current.resizableTextArea;k.focus();let{length:L}=k.value;k.setSelectionRange(L,L)}},[]);let N=({target:k})=>{E(k.value.replace(/[\n\r]/g,""))},S=()=>{x.current=!0},R=()=>{x.current=!1},M=({keyCode:k})=>{x.current||(y.current=k)},b=()=>{g(v.trim())},_=({keyCode:k,ctrlKey:L,altKey:H,metaKey:F,shiftKey:q})=>{y.current!==k||x.current||L||H||F||q||(k===Qn.KeyCode.ENTER?(b(),f?.()):k===Qn.KeyCode.ESC&&m())},O=()=>{b()},[$,T]=hr(t),W=P(t,`${t}-edit-content`,{[`${t}-rtl`]:s==="rtl",[`${t}-${p}`]:!!p},r,n.root,$,T);return d("div",{className:W,style:{...i.root,...a}},d(Ua,{ref:C,maxLength:l,value:v,onChange:N,onKeyDown:M,onKeyUp:_,onCompositionStart:S,onCompositionEnd:R,onBlur:O,"aria-label":o,rows:1,autoSize:u,className:n.textarea,style:i.textarea}),h!==null?Oa(h,{className:`${t}-edit-content-confirm`}):null)},Fl=Vf;w();var xr=A(ie());var Gf=(e,t)=>{let o=!1,r=a=>{a.stopPropagation(),a.preventDefault(),a.clipboardData?.clearData(),a.clipboardData?.setData("text/plain",e),t&&a.clipboardData?.setData("text/html",e),o=!0};try{return document.addEventListener("copy",r,{capture:!0}),document.execCommand("copy"),o}catch{return!1}finally{document.removeEventListener("copy",r,{capture:!0})}},Uf=async(e,t)=>{try{return t?await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([e],{type:"text/html"}),"text/plain":new Blob([e],{type:"text/plain"})})]):await navigator.clipboard.writeText(e),!0}catch{return!1}};async function Xf(e,t){if(typeof e!="string")return!1;let o=t?.format==="text/html";return!!(await Uf(e,o)||Gf(e,o))}var ql=Xf;var Zf=(e,t={})=>!Se(e)&&t?.skipEmpty?[]:Array.isArray(e)?e:[e],yr=Zf;var Kf=({copyConfig:e,children:t})=>{let[o,r]=(0,xr.useDelayState)(!1),[a,n]=K(!1),i={};e.format&&(i.format=e.format);let s=(0,xr.useEvent)(async l=>{l?.preventDefault(),l?.stopPropagation(),n(!0);try{let u=Ee(e.text)?await e.text():e.text;await ql(u||yr(t,{skipEmpty:!0}).join("")||"",i),n(!1),r(!0,!0),r(!1,{ms:3e3}),e.onCopy?.(l)}catch(u){throw n(!1),u}});return{copied:o,copyLoading:a,onClick:s}},Vl=Kf;w();var Yf=(e,t)=>{let o=!!e;return D(()=>{let r={...t,...o&&re(e)?e:null};return[o,r]},[o,e,t])},Cr=Yf;w();var Qf=e=>{let t=Y(void 0);return ye(()=>{t.current=e}),t.current},Gl=Qf;w();var Jf=(e,t,o)=>D(()=>e===!0?{title:t??o}:Ro(e)?{title:e}:re(e)?{title:t??o,...e}:{title:e},[e,t,o]),Ul=Jf;w();var Xl=(e,t,o,r,a)=>{let{getPrefixCls:n,direction:i,className:s,style:l,classNames:u,styles:c}=le("typography"),g=r??i,m=n("typography",e),f={...a,prefixCls:m,direction:g},p=D(()=>({root:s}),[s]),h=Ne(l),[C,x]=xe([p,u,t],[c,h,o],{props:f});return[C,x,m,g]};w();var Zl=Z((e,t)=>{let{component:o="article",className:r,rootClassName:a,children:n,direction:i,style:s,classNames:l,styles:u,prefixCls:c,...g}=e,[m,f]=hr(c),p=P(c,{[`${c}-rtl`]:i==="rtl"},r,a,m,f,l?.root),h={...u?.root,...s};return d(o,{...g,className:p,style:h,ref:t},n)});w();w();var Yl=A(Kl());function ea(){return ea=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},ea.apply(this,arguments)}var tp=(e,t)=>d(Fe,ea({},e,{ref:t,icon:Yl.default})),op=Z(tp),Ql=op;w();var ec=A(Jl());function oa(){return oa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},oa.apply(this,arguments)}var np=(e,t)=>d(Fe,oa({},e,{ref:t,icon:ec.default})),ap=Z(np),tc=ap;var ra=e=>e===!1?[!1,!1]:yr(e);function vr(e,t,o){return e===!0||e===void 0?t:e||o&&t}function oc(e){let t=document.createElement("em");e.appendChild(t);let o=e.getBoundingClientRect(),r=t.getBoundingClientRect();return e.removeChild(t),o.left>r.left||r.right>o.right||o.top>r.top||r.bottom>o.bottom}var ho=e=>["string","number"].includes(typeof e);var ip=e=>{let{prefixCls:t,copied:o,locale:r,iconOnly:a,tooltips:n,icon:i,tabIndex:s,onCopy:l,loading:u,className:c,style:g}=e,m=ra(n),f=ra(i),{copied:p,copy:h}=r??{},C=o?p:h,x=vr(m[o?1:0],C),y=typeof x=="string"?x:C;return d(dt,{title:x},d("button",{type:"button",className:P(`${t}-copy`,c,{[`${t}-copy-success`]:o,[`${t}-copy-icon-only`]:a}),style:g,onClick:l,"aria-label":y,tabIndex:s},o?vr(f[1],d(Ql,null),!0):vr(f[0],u?d(Bt,null):d(tc,null),!0)))},rc=ip;w();var Kt=A(ie());var br=Z(({style:e,children:t},o)=>{let r=Y(null);return Ae(o,()=>({isExceed:()=>{let a=r.current;return a.scrollHeight>a.clientHeight},getHeight:()=>r.current.clientHeight})),d("span",{"aria-hidden":!0,ref:r,style:{position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)",...e}},t)}),sp=e=>e.reduce((t,o)=>t+(ho(o)?String(o).length:1),0);function nc(e,t){let o=0,r=[];for(let a=0;a<e.length;a+=1){if(o===t)return r;let n=e[a],s=ho(n)?String(n).length:1,l=o+s;if(l>t){let u=t-o;return r.push(String(n).slice(0,u)),r}r.push(n),o=l}return e}var na=0,aa=1,ia=2,sa=3,ac=4,Sr={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function la(e){let{enableMeasure:t,width:o,text:r,children:a,rows:n,expanded:i,measureDeps:s,miscDeps:l,onEllipsis:u}=e,c=D(()=>(0,Kt.toArray)(r),[r]),g=D(()=>sp(c),[r]),m=D(()=>a(c,!1),[r].concat(Oe(s))),[f,p]=K(null),h=Y(null),C=Y(null),x=Y(null),y=Y(null),v=Y(null),[E,N]=K(!1),[S,R]=K(na),[M,b]=K(0),[_,O]=K(null);(0,Kt.useLayoutEffect)(()=>{R(t&&o&&g?aa:na)},[o,r,n,t,c].concat(Oe(s))),(0,Kt.useLayoutEffect)(()=>{if(S===aa){R(ia);let k=C.current&&getComputedStyle(C.current).whiteSpace;O(k)}else if(S===ia){let k=!!x.current?.isExceed();R(k?sa:ac),p(k?[0,g]:null),N(k);let L=x.current?.getHeight()||0,H=n===1?0:y.current?.getHeight()||0,F=v.current?.getHeight()||0,q=Math.max(L,H+F);b(q+1),u(k)}},[S]);let $=f?Math.ceil((f[0]+f[1])/2):0;(0,Kt.useLayoutEffect)(()=>{let[k,L]=f||[0,0];if(k!==L){let F=(h.current?.getHeight()||0)>M,q=$;L-k===1&&(q=F?k:L),p(F?[k,q]:[q,L])}},[f,$]);let T=D(()=>{if(!t)return a(c,!1);if(S!==sa||!f||f[0]!==f[1]){let k=a(c,!1);return[ac,na].includes(S)?k:d("span",{style:{...Sr,WebkitLineClamp:n}},k)}return a(i?c:nc(c,f[0]),E)},[i,S,f,c].concat(Oe(l))),W={width:o,margin:0,padding:0,whiteSpace:_==="nowrap"?"normal":"inherit"};return d(De,null,T,S===ia&&d(De,null,d(br,{style:{...W,...Sr,WebkitLineClamp:n},ref:x},m),d(br,{style:{...W,...Sr,WebkitLineClamp:n-1},ref:y},m),d(br,{style:{...W,...Sr,WebkitLineClamp:1},ref:v},a([],!0))),S===sa&&f&&f[0]!==f[1]&&d(br,{style:{...W,top:400},ref:h},a(nc(c,$),!0)),S===aa&&d("span",{style:{whiteSpace:"inherit"},ref:C}))}w();var lp=({enableEllipsis:e,isEllipsis:t,disabled:o,children:r,tooltipProps:a})=>!a?.title||!e?r:d(dt,{...a,disabled:!t||o},r),ic=lp;function cp({mark:e,code:t,underline:o,delete:r,strong:a,keyboard:n,italic:i},s){let l=s;function u(c,g){g&&(l=d(c,{},l))}return u("strong",a),u("u",o),u("del",r),u("code",t),u("mark",e),u("kbd",n),u("i",i),l}var dp="...",sc=["delete","mark","code","underline","strong","keyboard","italic"],up=Z((e,t)=>{let{prefixCls:o,className:r,style:a,classNames:n,styles:i,direction:s,type:l,disabled:u,children:c,ellipsis:g,editable:m,copyable:f,actions:p,component:h,title:C,onMouseEnter:x,onMouseLeave:y,...v}=e,[E]=Ce("Text"),N=Y(null),S=Y(null),[R,M,b,_]=Xl(o,n,i,s,e),O=(0,_e.omit)(v,sc),[$,T]=Cr(m),[W,k]=(0,_e.useControlledState)(!1,T.editing),{triggerType:L=["icon"]}=T,H=G=>{G&&T.onStart?.(),k(G)},F=Gl(W);(0,_e.useLayoutEffect)(()=>{!W&&F&&S.current?.focus()},[W]);let q=G=>{G?.preventDefault(),H(!0)},Q=G=>{T.onChange?.(G),H(!1)},V=()=>{T.onCancel?.(),H(!1)},[U,te]=Cr(f),{placement:oe="end"}=p??{},{copied:J,copyLoading:be,onClick:ze}=Vl({copyConfig:te,children:c}),[we,$e]=K(!1),[me,ne]=K(!1),[fe,at]=K(!1),[de,Et]=K(!1),[it,Qt]=K(!0),[ge,he]=Cr(g,{expandable:!1,symbol:G=>G?E?.collapse:E?.expand}),[Le,Nr]=(0,_e.useControlledState)(he.defaultExpanded||!1,he.expanded),Pe=ge&&(!Le||he.expandable==="collapsible"),{rows:Je=1}=he,Nt=D(()=>Pe&&(he.suffix!==void 0||he.onEllipsis||he.expandable||$||U),[Pe,he,$,U]);(0,_e.useLayoutEffect)(()=>{ge&&!Nt&&($e((0,Vt.isStyleSupport)("webkitLineClamp")),ne((0,Vt.isStyleSupport)("textOverflow")))},[Nt,ge]);let[et,wr]=K(Pe),yo=D(()=>Nt?!1:Je===1?me:we,[Nt,Je,we,me]);(0,_e.useLayoutEffect)(()=>{wr(yo&&Pe)},[yo,Pe]);let pt=Ul(he.tooltip,T.text,c),gt=et&&!!pt.title,xo=Pe&&(et?gt&&de:fe),$r=Pe&&Je===1&&et,Jt=Pe&&Je>1&&et,Pr=(G,X)=>{Nr(X.expanded),he.onExpand?.(G,X)},[Co,Or]=K(0),[vo,bo]=(0,_e.useDelayState)(!1),eo=Y(!1),to=({offsetWidth:G})=>{Or(G)},oo=G=>{at(G),fe!==G&&he.onEllipsis?.(G)},ht=Pt(()=>{let G=N.current;if(ge&&gt&&G){let X=oc(G);Et(ke=>ke===X?ke:X)}},[ge,gt]);ye(()=>{eo.current&&ht()},[ht,c,Jt,it,Co]),ye(()=>{let G=N.current;if(typeof IntersectionObserver>"u"||!G||!gt||!Pe)return;let X=new IntersectionObserver(()=>{Qt(!!G.offsetParent)});return X.observe(G),()=>{X.disconnect()}},[gt,Pe]);let ro=D(()=>{if(!(!ge||et))return[T.text,c,C,pt.title].find(ho)},[ge,et,C,pt.title,xo,T.text]);if(W)return d(Fl,{value:T.text??(typeof c=="string"?c:""),onSave:Q,onCancel:V,onEnd:T.onEnd,prefixCls:b,className:r,style:a,direction:_,component:h,maxLength:T.maxLength,autoSize:T.autoSize,enterIcon:T.enterIcon,classNames:R,styles:M});let Mr=()=>{let{expandable:G,symbol:X}=he;return G?d("button",{type:"button",key:"expand",className:P(`${b}-${Le?"collapse":"expand"}`,R.action),style:M.action,onClick:ke=>Pr(ke,{expanded:!Le}),"aria-label":Le?E.collapse:E?.expand},Ee(X)?X(Le):X):null},_r=()=>{if(!$)return;let{icon:G,tooltip:X,tabIndex:ke}=T,$t=(0,_e.toArray)(X)[0]||E?.edit,vc=typeof $t=="string"?$t:"";return L.includes("icon")?d(dt,{key:"edit",title:X===!1?"":$t},d("button",{type:"button",ref:S,className:P(`${b}-edit`,R.action),style:M.action,onClick:q,"aria-label":vc,tabIndex:ke},G||d(kl,{role:"button"}))):null},wt=()=>U?d(rc,{key:"copy",...te,prefixCls:b,copied:J,locale:E,onCopy:ze,loading:be,iconOnly:!Re(c),className:R.action,style:M.action}):null,So=G=>{let X=G&&Mr(),ke=_r(),$t=wt();return!X&&!ke&&!$t?null:d("span",{key:"operations",className:P(`${b}-actions`,R.actions,{[`${b}-actions-start`]:oe==="start"}),style:M.actions,onMouseEnter:()=>bo(!0,!0),onMouseLeave:()=>bo(!1,{ms:500})},X,ke,$t)},Be=G=>[G&&!Le&&d("span",{"aria-hidden":!0,key:"ellipsis"},dp),he.suffix];return d(lc.default,{onResize:to,disabled:!Pe},G=>d(ic,{tooltipProps:pt,enableEllipsis:Pe,isEllipsis:xo,disabled:vo},d(Zl,{onMouseEnter:X=>{eo.current=!0,ht(),x?.(X)},onMouseLeave:X=>{eo.current=!1,y?.(X)},className:P({[`${b}-${l}`]:l,[`${b}-disabled`]:u,[`${b}-ellipsis`]:ge,[`${b}-ellipsis-single-line`]:$r,[`${b}-ellipsis-multiple-line`]:Jt,[`${b}-link`]:h==="a"},r),classNames:R,styles:M,prefixCls:b,style:{...a,WebkitLineClamp:Jt?Je:void 0},component:h,ref:(0,_e.composeRef)(G,N,t),direction:_,onClick:L.includes("text")?q:void 0,"aria-label":ro?.toString(),title:C,...O},d(la,{enableMeasure:Pe&&!et,text:c,rows:Je,width:Co,onEllipsis:oo,expanded:Le,measureDeps:[oe],miscDeps:[J,Le,be,$,U,oe,E].concat(Oe(sc.map(X=>e[X])))},(X,ke)=>cp(e,d(De,null,oe==="start"?So(ke):null,X.length>0&&ke&&!Le&&ro?d("span",{key:"show-content","aria-hidden":!0},X):X,Be(ke),oe==="start"?null:So(ke)))))))}),cc=up;var mp=Z((e,t)=>{let{ellipsis:o,children:r,...a}=e,n=D(()=>re(o)?(0,dc.omit)(o,["expandable","rows"]):o,[o]);return d(cc,{ref:t,...a,ellipsis:n,component:"span"},r)}),uc=mp;w();function ca(e){return!e.defaultPrevented&&e.button===0&&!e.altKey&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey}w();function mc(e){return[{key:"gateway:home",label:"\u9996\u9875",href:"/",order:-1},...e.navigation].map(t=>({...t,active:t.href==="/"?e.pathname==="/":e.pathname===t.href||e.pathname.startsWith(`${t.href}/`)}))}var fc=Ge(void 0);function da({children:e,initialContext:t}){return I(fc,{value:t,children:e})}function ua(){let e=ma();return D(()=>mc(e),[e])}function ma(){let e=j(fc);if(!e)throw new Error("ZlooksShellProvider is required");return e}var pc=To({Button:{textActiveBg:"transparent",textHoverBg:"transparent"}});var Yt=Te(dl),fp=Te(kt),pp=Te(ml),gc=Te(Cl),Qe=Te(Rl),gp=Te(dr),hp=Te(Ol),Rr=Te(Ga),qe=Te(uc);function hc({className:e,classNames:t={},style:o,size:r="middle",shape:a="round",variant:n="compact",onNavigate:i,onLogout:s}){let l=ma().user,[u,c]=K(!1),[g,m]=K(!1),{message:f,modal:p}=Xa(),h=Er("zlooks-user-access-trigger",e,t.trigger),C=Er("zlooks-user-access-avatar",t.avatar),x=Er("zlooks-user-access-label",t.label),y=n==="avatar",v=yp(r,y),E=y?"circle":a,N=y?"circle":"square",S=y?{height:v,minWidth:v,padding:0,width:v,...o}:o;async function R(_,O){try{await s(_),O(),c(!1)}catch($){Za($)||f.error("\u9000\u51FA\u767B\u5F55\u5931\u8D25")}}function M(_){p.confirm({title:"\u786E\u8BA4\u9000\u51FA\u767B\u5F55\uFF1F",content:"\u9000\u51FA\u540E\uFF0C\u9700\u8981\u91CD\u65B0\u767B\u5F55\u624D\u80FD\u8BBF\u95EE\u4E2A\u4EBA\u8D26\u6237\u3002",okText:"\u9000\u51FA\u767B\u5F55",okButtonProps:{danger:!0},cancelText:"\u53D6\u6D88",onOk(O){R(_,O)}})}function b(_,O,$){!i||!ca(_)||(_.preventDefault(),$(),i(O))}return l.status==="unavailable"?I(fa,{children:I(Ct,{"aria-label":"\u8D26\u6237\u670D\u52A1\u6682\u4E0D\u53EF\u7528",className:h,disabled:!0,shape:E,size:r,style:S,type:"text",children:ae(Rr,{align:"center",size:6,children:[I(Yt,{className:C,shape:N,size:v,style:{background:"var(--ant-color-fill-secondary)",border:y?"none":void 0,borderRadius:y?"50%":9,boxShadow:y?"none":void 0,color:"var(--ant-color-text-tertiary)",fontSize:12,fontWeight:750},children:"Z"}),n==="compact"?I(qe,{type:"secondary",children:"\u6682\u4E0D\u53EF\u7528"}):null]})})}):l.status==="authenticated"?I(fa,{children:I(hp,{arrow:!1,destroyOnHidden:!0,onOpenChange:c,open:u,placement:"bottomRight",styles:{container:{border:"1px solid var(--ant-color-border-secondary)",borderRadius:16,boxShadow:"0 18px 48px rgb(15 23 42 / 14%)",overflow:"hidden",padding:0},content:{maxWidth:"calc(100vw - 32px)",width:280}},trigger:"click",content:ae(Qe,{"aria-label":"\u8D26\u6237\u4FE1\u606F",className:t.popup,role:"dialog",style:{background:"var(--ant-color-bg-elevated)"},vertical:!0,children:[ae(Qe,{align:"center",gap:12,style:{background:["linear-gradient(color-mix(in srgb, var(--ant-color-fill-quaternary) 48%, transparent) 1px, transparent 1px)","linear-gradient(90deg, color-mix(in srgb, var(--ant-color-fill-quaternary) 48%, transparent) 1px, transparent 1px)","var(--ant-color-bg-elevated)"].join(", "),backgroundSize:"28px 28px",padding:16},children:[I(Yt,{className:C,shape:"square",size:44,src:l.user.avatarUrl,style:{background:"var(--ant-color-text)",borderRadius:12,color:"var(--ant-color-bg-container)",fontSize:16,fontWeight:700},children:l.user.avatarText}),ae(Qe,{style:{flex:1,minWidth:0},vertical:!0,children:[I(qe,{strong:!0,ellipsis:!0,style:{fontSize:15,lineHeight:1.4},children:l.user.label}),l.user.secondary?I(qe,{ellipsis:{tooltip:l.user.secondary},style:{display:"block"},type:"secondary",children:l.user.secondary}):null]}),I("span",{"aria-label":"\u5DF2\u767B\u5F55",role:"status",style:{background:"var(--ant-color-success)",borderRadius:999,boxShadow:"0 0 0 3px var(--ant-color-success-bg)",flex:"0 0 auto",height:7,width:7}})]}),I(pp,{style:{margin:0}}),ae(Qe,{gap:2,style:{padding:8},vertical:!0,children:[I(Ct,{block:!0,href:l.accountHref,size:"large",style:{fontWeight:600,height:44,paddingInline:12},type:"text",onClick:_=>b(_,l.accountHref,()=>c(!1)),children:ae(Qe,{justify:"space-between",style:{width:"100%"},children:[I("span",{children:"\u4E2A\u4EBA\u8D44\u6599"}),I(qe,{"aria-hidden":"true",type:"secondary",children:"\u2192"})]})}),I(Ct,{block:!0,danger:!0,size:"large",style:{height:44,justifyContent:"flex-start",paddingInline:12},type:"text",onClick:()=>M(l.logoutHref),children:"\u9000\u51FA\u767B\u5F55"})]})]}),children:I(Ct,{"aria-expanded":u,"aria-haspopup":"dialog","aria-label":`\u6253\u5F00${l.user.label}\u7684\u8D26\u6237\u4FE1\u606F`,className:h,shape:E,size:r,style:S,type:"text",children:ae(Rr,{align:"center",size:6,children:[I(Yt,{className:C,shape:N,size:v,src:l.user.avatarUrl,style:{background:y?"var(--ant-color-fill-secondary)":"var(--ant-color-text)",border:y?"none":void 0,borderRadius:y?"50%":9,boxShadow:y?"none":void 0,color:y?"var(--ant-color-text)":"var(--ant-color-bg-container)",fontSize:12,fontWeight:700},children:l.user.avatarText}),n==="compact"?I(qe,{className:x,ellipsis:!0,style:{fontSize:13,fontWeight:650,maxWidth:120},children:l.user.label}):null]})})})}):ae(fa,{children:[I(Ct,{"aria-expanded":g,"aria-haspopup":"dialog","aria-label":"\u767B\u5F55",className:h,shape:E,size:r,style:S,type:"text",onClick:()=>m(!0),children:ae(Rr,{align:"center",size:6,children:[I(Yt,{className:C,shape:N,size:v,style:{background:"var(--ant-color-primary-bg)",border:y?"none":"1px solid var(--ant-color-primary-border)",borderRadius:y?"50%":9,boxShadow:y?"none":void 0,color:"var(--ant-color-primary)",fontSize:12,fontWeight:750},children:"Z"}),n==="compact"?I(qe,{className:x,style:{fontSize:13,fontWeight:650},children:"\u767B\u5F55"}):null]})}),I(gp,{centered:!0,destroyOnHidden:!0,footer:null,open:g,rootClassName:Er("zlooks-user-access-modal",t.popup),styles:{body:{paddingTop:4},container:{border:"1px solid var(--ant-color-border-secondary)",borderRadius:22,boxShadow:"0 28px 80px rgb(15 23 42 / 18%)",overflow:"hidden",padding:24},header:{marginBottom:22}},title:ae(Rr,{align:"center",size:"middle",children:[I(Yt,{shape:"square",size:44,style:{background:"var(--ant-color-text)",borderRadius:12,color:"var(--ant-color-bg-container)",fontWeight:750},children:"Z"}),ae(Qe,{vertical:!0,children:[I(qe,{strong:!0,style:{fontSize:17},children:"\u6B22\u8FCE\u56DE\u6765"}),I(qe,{type:"secondary",children:"\u9009\u62E9\u4E00\u79CD\u65B9\u5F0F\u7EE7\u7EED"})]})]}),width:480,onCancel:()=>m(!1),children:ae(Qe,{gap:12,vertical:!0,children:[l.loginMethods.length===0?I(gc,{description:"\u6682\u65F6\u65E0\u6CD5\u767B\u5F55\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5",image:gc.PRESENTED_IMAGE_SIMPLE,style:{paddingBlock:24}}):l.loginMethods.map((_,O)=>I(Ct,{block:!0,href:_.href,onClick:$=>b($,_.href,()=>m(!1)),style:{height:"auto",minHeight:72,padding:"10px 14px",textAlign:"left"},children:ae(Qe,{align:"center",gap:14,justify:"space-between",style:{width:"100%"},children:[ae(Qe,{align:"center",gap:12,style:{minWidth:0},children:[I(Yt,{shape:"square",size:40,style:{background:"var(--ant-color-primary-bg)",borderRadius:11,color:"var(--ant-color-primary)",fontFamily:"ui-monospace, SFMono-Regular, Menlo, monospace",fontSize:11,fontWeight:700},children:String(O+1).padStart(2,"0")}),ae(Qe,{style:{minWidth:0},vertical:!0,children:[I(qe,{strong:!0,children:_.label}),I(qe,{ellipsis:!0,type:"secondary",children:"\u7EE7\u7EED\u8BBF\u95EE\u4F60\u7684\u4E2A\u4EBA\u7A7A\u95F4"})]})]}),I(qe,{"aria-hidden":"true",style:{color:"var(--ant-color-primary)"},children:"\u2192"})]})},_.id)),I(qe,{style:{fontSize:12,marginTop:6,textAlign:"center"},type:"secondary",children:"\u767B\u5F55\u4FE1\u606F\u4EC5\u7528\u4E8E\u8BC6\u522B\u4F60\u7684\u8D26\u6237"})]})})]})}function fa({children:e}){let{mode:t}=go(),{resolvedMode:o,resolvedTheme:r}=jn(t),a=D(()=>({...r,cssVar:{key:`zlooks-user-access-${o}`},components:{...r.components,Button:{...r.components?.Button,...pc.Button}}}),[o,r]);return I(fp,{theme:a,children:e})}function Er(...e){return e.filter(Boolean).join(" ")}function yp(e,t){return t&&e==="small"?28:t&&e==="large"?48:t?40:e==="small"?20:e==="large"?28:24}w();var yc=Ge(void 0);function xc({children:e,initialConfig:t}){return I(yc,{value:t,children:e})}function Cc(){return xp().value}function xp(){let e=j(yc);if(!e)throw new Error("ZlooksSiteConfigProvider is required");return e}function Cp({children:e,shell:t,site:o}){return I(An,{children:I(da,{initialContext:t,children:I(xc,{initialConfig:o,children:I(vp,{children:e})})})})}function vp({children:e}){let t=ua(),o=Cc(),r=Ka(),a=ya();async function n(i){await r(i,{method:"POST",credentials:"same-origin"},{errorMessage:"\u9000\u51FA\u767B\u5F55\u5931\u8D25"}),a.refresh()}return ae("div",{className:"zlooks-password-frame-page","data-shared-page-frame":!0,children:[I("div",{className:"zlooks-password-frame-header-wrap",children:ae("header",{className:"zlooks-password-frame-header",children:[ae(Eo,{className:"zlooks-password-frame-brand",href:o.identity.homeHref,children:[o.identity.logoUrl?I("img",{alt:"",className:"zlooks-password-frame-brand-logo",src:o.identity.logoUrl}):I("span",{className:"zlooks-password-frame-brand-mark","aria-hidden":"true",children:"Z"}),I("span",{children:o.identity.name})]}),I("nav",{"aria-label":"\u4E3B\u5BFC\u822A",className:"zlooks-password-frame-navigation",children:t.map(i=>I(Eo,{"aria-current":i.active?"page":void 0,href:i.href,children:i.label},i.key))}),I("div",{className:"zlooks-password-frame-actions",children:I(hc,{size:"middle",shape:"round",variant:"avatar",onLogout:n,onNavigate:a.push})})]})}),I("main",{className:"zlooks-password-frame-content",children:e}),ae("footer",{className:"zlooks-password-frame-footer",children:[ae("div",{children:[I("strong",{children:o.identity.name}),I("span",{children:"\u4FDD\u6301\u597D\u5947\uFF0C\u8BA4\u771F\u751F\u6D3B\u3002"})]}),ae("div",{children:[o.legal.registrations.map(i=>i.verificationUrl?I(Eo,{href:i.verificationUrl,children:i.number},i.id):I("span",{children:i.number},i.id)),o.legal.copyright?I("small",{children:o.legal.copyright}):null]})]})]})}export{Cp as default};
@@ -0,0 +1,6 @@
1
+ "use client";import{$ as Br,A as as,Aa as Jr,Ab as Pt,B as is,Bb as go,C as Vr,Ca as je,Cb as ho,D as ls,Da as Qr,Db as Qe,Ea as He,Eb as xo,Fa as We,Fb as Tt,G as Ce,Gb as zt,H as Dr,Ha as ct,Hb as bo,Ia as qe,Ib as Ge,J as Oe,Ja as Zr,Jb as yo,K as Fe,Ka as eo,Kb as Ft,L as Lr,La as to,Lb as Ro,M as jr,Ma as ro,Mb as o,N as xe,Na as oo,Nb as So,O as Ve,Oa as no,Ob as Ze,P as Hr,Pb as vo,Q as it,R as Zt,Rb as Eo,S as me,T as we,Ta as tr,Ua as Be,V as ye,Va as so,Wa as ao,X as ke,Y as Wr,Ya as io,Z as er,_ as qr,_a as rr,a as Je,ab as lo,b as ae,ba as It,bb as Nt,c as Fr,cb as pe,db as Ot,e as Ae,eb as $t,f as kr,fb as mt,g as m,gb as $e,hb as co,i as ce,ib as mo,j as wt,k as Ur,kb as uo,m as P,mb as po,n as Ie,o as at,p as re,q as Q,qa as Rt,qb as _t,r as de,ra as Gr,rb as ut,sa as lt,sb as At,t as Z,ta as Kr,tb as fo,u as q,v as Mr,w as yt,wa as Xr,x as ie,xa as St,y as Ne,z as k,za as Yr}from"./chunks/chunk-H6EHFMQF.js";var un=Je(yr=>{"use strict";Object.defineProperty(yr,"__esModule",{value:!0});var aa={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"};yr.default=aa});var Nn=Je(Er=>{"use strict";Object.defineProperty(Er,"__esModule",{value:!0});var Ca={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"};Er.default=Ca});var _n=Je(wr=>{"use strict";Object.defineProperty(wr,"__esModule",{value:!0});var Na={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};wr.default=Na});var Fn=Je(Nr=>{"use strict";Object.defineProperty(Nr,"__esModule",{value:!0});var Ta={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};Nr.default=Ta});var Ln=Je((rp,De)=>{function $r(){return De.exports=$r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},De.exports.__esModule=!0,De.exports.default=De.exports,$r.apply(null,arguments)}De.exports=$r,De.exports.__esModule=!0,De.exports.default=De.exports});var qn=Je(_r=>{"use strict";var Hn=Wr();Object.defineProperty(_r,"__esModule",{value:!0});_r.default=Ha;var Ma=Hn(jr()),Va=Hn(as()),Da=Vr(),La=Lr(),Ye=ja((q(),Fr(Z)));function Wn(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(Wn=function(n){return n?r:t})(e)}function ja(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=Wn(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)){var i=a?Object.getOwnPropertyDescriptor(e,s):null;i&&(i.get||i.set)?Object.defineProperty(n,s,i):n[s]=e[s]}return n.default=e,r&&r.set(e,n),n}var jn=(e,t)=>{if(!e)return null;let r={left:e.offsetLeft,right:e.parentElement.clientWidth-e.clientWidth-e.offsetLeft,width:e.clientWidth,top:e.offsetTop,bottom:e.parentElement.clientHeight-e.clientHeight-e.offsetTop,height:e.clientHeight};return t?{left:0,right:0,width:0,top:r.top,bottom:r.bottom,height:r.height}:{left:r.left,right:r.right,width:r.width,top:0,bottom:0,height:0}},Me=e=>e!==void 0?`${e}px`:void 0;function Ha(e){let{prefixCls:t,containerRef:r,value:n,getValueIndex:a,motionName:s,onMotionStart:i,onMotionEnd:l,direction:c,vertical:u=!1}=e,y=Ye.useRef(null),[R,C]=Ye.useState(n),_=N=>{let h=a(N),E=r.current?.querySelectorAll(`.${t}-item`)[h];return E?.offsetParent&&E},[x,I]=Ye.useState(null),[p,b]=Ye.useState(null);(0,Va.default)(()=>{if(R!==n){let N=_(R),h=_(n),E=jn(N,u),w=jn(h,u);C(n),I(E),b(w),N&&h?i():l()}},[n]);let O=Ye.useMemo(()=>Me(u?x?.top??0:c==="rtl"?-x?.right:x?.left),[u,c,x]),d=Ye.useMemo(()=>Me(u?p?.top??0:c==="rtl"?-p?.right:p?.left),[u,c,p]),f=()=>u?{transform:"translateY(var(--thumb-start-top))",height:"var(--thumb-start-height)"}:{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"},v=()=>u?{transform:"translateY(var(--thumb-active-top))",height:"var(--thumb-active-height)"}:{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"},g=()=>{I(null),b(null),l()};return!x||!p?null:Ye.createElement(Ma.default,{visible:!0,motionName:s,motionAppear:!0,onAppearStart:f,onAppearActive:v,onVisibleChanged:g},({className:N,style:h},E)=>{let w={...h,"--thumb-start-left":O,"--thumb-start-width":Me(x?.width),"--thumb-active-left":d,"--thumb-active-width":Me(p?.width),"--thumb-start-top":O,"--thumb-start-height":Me(x?.height),"--thumb-active-top":d,"--thumb-active-height":Me(p?.height)},S={ref:(0,Da.composeRef)(y,E),style:w,className:(0,La.clsx)(`${t}-thumb`,N)};return Ye.createElement("div",S)})}});var Kn=Je(Qt=>{"use strict";var Jt=Wr();Object.defineProperty(Qt,"__esModule",{value:!0});Qt.default=void 0;var Bn=Jt(Ln()),Wa=Jt(is()),qa=Jt(ls()),Ba=Vr(),Yt=Lr(),ve=Ka((q(),Fr(Z))),Ga=Jt(qn());function Gn(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(Gn=function(n){return n?r:t})(e)}function Ka(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=Gn(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)){var i=a?Object.getOwnPropertyDescriptor(e,s):null;i&&(i.get||i.set)?Object.defineProperty(n,s,i):n[s]=e[s]}return n.default=e,r&&r.set(e,n),n}function Xa(e){if(typeof e.title<"u")return e.title;if(typeof e.label!="object")return e.label?.toString()}function Ya(e){return e.map(t=>{if(typeof t=="object"&&t!==null){let r=Xa(t);return{...t,title:r}}return{label:t?.toString(),title:t?.toString(),value:t}})}var Ja=({prefixCls:e,className:t,style:r,styles:n,classNames:a,data:s,disabled:i,checked:l,label:c,title:u,value:y,name:R,onChange:C,onFocus:_,onBlur:x,onKeyDown:I,onKeyUp:p,onMouseDown:b,itemRender:O=d=>d})=>{let d=v=>{i||C(v,y)},f=ve.createElement("label",{className:(0,Yt.clsx)(t,{[`${e}-item-disabled`]:i}),style:r,onMouseDown:b},ve.createElement("input",{name:R,className:`${e}-item-input`,type:"radio",disabled:i,checked:l,onChange:d,onFocus:_,onBlur:x,onKeyDown:I,onKeyUp:p}),ve.createElement("div",{className:(0,Yt.clsx)(`${e}-item-label`,a?.label),title:u,style:n?.label},c));return O(f,{item:s})},Qa=ve.forwardRef((e,t)=>{let{prefixCls:r="rc-segmented",direction:n,vertical:a,options:s=[],disabled:i,defaultValue:l,value:c,name:u,onChange:y,className:R="",style:C,styles:_,classNames:x,motionName:I="thumb-motion",itemRender:p,...b}=e,O=ve.useRef(null),d=ve.useMemo(()=>(0,Ba.composeRef)(O,t),[O,t]),f=ve.useMemo(()=>Ya(s),[s]),[v,g]=(0,Wa.default)(l??f[0]?.value,c),[N,h]=ve.useState(!1),E=(A,j)=>{g(j),y?.(j)},w=(0,qa.default)(b,["children"]),[S,T]=ve.useState(!1),[U,M]=ve.useState(!1),V=()=>{M(!0)},L=()=>{M(!1)},$=()=>{T(!1)},X=A=>{A.key==="Tab"&&T(!0)},B=A=>{let j=f.findIndex(D=>D.value===v),le=f.length,ee=(j+A+le)%le,Y=f[ee];Y&&(g(Y.value),y?.(Y.value))},K=A=>{switch(A.key){case"ArrowLeft":case"ArrowUp":B(-1);break;case"ArrowRight":case"ArrowDown":B(1);break}},W=A=>{let{value:j,disabled:le}=A;return ve.createElement(Ja,(0,Bn.default)({},A,{name:u,data:A,itemRender:p,key:j,prefixCls:r,className:(0,Yt.clsx)(A.className,`${r}-item`,x?.item,{[`${r}-item-selected`]:j===v&&!N,[`${r}-item-focused`]:U&&S&&j===v}),style:_?.item,classNames:x,styles:_,checked:j===v,onChange:E,onFocus:V,onBlur:L,onKeyDown:K,onKeyUp:X,onMouseDown:$,disabled:!!i||!!le}))};return ve.createElement("div",(0,Bn.default)({role:"radiogroup","aria-label":"segmented control",tabIndex:i?void 0:0,"aria-orientation":a?"vertical":"horizontal",style:C},w,{className:(0,Yt.clsx)(r,{[`${r}-rtl`]:n==="rtl",[`${r}-disabled`]:i,[`${r}-vertical`]:a},R),ref:d}),ve.createElement("div",{className:`${r}-group`},ve.createElement(Ga.default,{vertical:a,prefixCls:r,value:v,containerRef:O,motionName:`${r}-${I}`,direction:n,getValueIndex:A=>f.findIndex(j=>j.value===A),onMotionStart:()=>{h(!0)},onMotionEnd:()=>{h(!1)}}),f.map(W)))}),Za=Qa,np=Qt.default=Za});var cs="zlooks.event",ms=1,wo=o.string().max(256).regex(/^[a-z][a-z0-9]*(?:\.[a-z][a-z0-9-]*)+\.v[1-9][0-9]*$/),Io=o.string().max(256).regex(/^[a-z][a-z0-9]*(?:\.[a-z][a-z0-9]*)+$/),No=o.string().regex(/^[a-z][a-z0-9-]{0,63}$/),Oo=o.string().trim().min(1).max(256),us=o.string().max(128).regex(/^[a-z][a-z0-9]*(?:[._-][a-z0-9]+)*$/),ds=o.string().max(128).regex(/^@zlooks\.cn\/[a-z0-9]+(?:-[a-z0-9]+)*$/),ps=o.string().max(128).regex(/^[A-Za-z_$][A-Za-z0-9_$]*$/),Co=o.string().trim().min(1).max(120),fs=o.string().trim().min(1).max(1e3),$o=o.json(),gs=o.strictObject({protocol:o.literal(cs),protocolVersion:o.literal(ms),eventId:o.uuid(),type:wo,producer:Io,aggregate:o.strictObject({type:No,id:Oo}).readonly(),occurredAt:o.iso.datetime({offset:!0}),data:$o}).readonly();function hs(e){let t=gs.parse(e);return Object.freeze({...t,aggregate:Object.freeze({...t.aggregate})})}function kt(e,t,r){let n=wo.parse(e),a=Io.parse(r.producer),s=No.parse(r.aggregateType),i=r.aggregateId;if(typeof i!="function")throw new TypeError("Event aggregateId must be a function");return Object.freeze({type:n,producer:a,aggregateType:s,dataSchema:t,parse(l){let c=hs(l);if(c.type!==n)throw new TypeError(`Expected event type ${n}`);if(c.producer!==a)throw new TypeError(`Expected event producer ${a}`);let u=t.parse(c.data);$o.parse(u);let y=Oo.parse(i(u));if(c.aggregate.type!==s||c.aggregate.id!==y)throw new TypeError(`${n} aggregate does not identify its event data`);return Object.freeze({...c,type:n,aggregate:Object.freeze({...c.aggregate}),data:u})}})}function _o(e){let t=us.parse(e.providerId),r=Co.parse(e.displayName),n=ds.parse(e.contractPackage);if(e.events.length===0||e.events.length>256)throw new TypeError("Event catalog must contain between 1 and 256 events");let a=e.events[0].definition.producer,s=new Set,i=new Set,l=e.events.map(c=>{if(c.definition.producer!==a)throw new TypeError("Event catalog definitions must have one producer");if(s.has(c.definition.type))throw new TypeError("Event catalog event types must be unique");let u=ps.parse(c.consumerExport);if(i.has(u))throw new TypeError("Event catalog Consumer exports must be unique");s.add(c.definition.type),i.add(u);let y=or(o.toJSONSchema(c.definition.dataSchema,{target:"draft-2020-12",unrepresentable:"any",io:"input"}));if(!xs(y))throw new TypeError("Event data schema must serialize to a JSON object");return Object.freeze({type:c.definition.type,title:Co.parse(c.title),description:fs.parse(c.description),producer:a,aggregateType:c.definition.aggregateType,consumer:Object.freeze({packageName:n,exportName:u}),dataSchema:y})});return Object.freeze({protocol:"zlooks.event-catalog",protocolVersion:1,providerId:t,displayName:r,producer:a,contractPackage:n,count:l.length,delivery:Object.freeze({guarantee:"at-least-once",deduplicateBy:"eventId"}),events:Object.freeze(l)})}function or(e){if(e===null||typeof e=="string"||typeof e=="boolean"||typeof e=="number"&&Number.isFinite(e))return e;if(Array.isArray(e))return Object.freeze(e.map(or));if(bs(e))return Object.freeze(Object.fromEntries(Object.entries(e).filter(([,t])=>t!==void 0).map(([t,r])=>[t,or(r)])));throw new TypeError("Event JSON Schema contains a non-JSON value")}function xs(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function bs(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}var Pe="cn.zlooks.user.server";var nr=o.enum(["logout","user-request","family-limit","credential-recovery"]),ys=o.string().refine(e=>e===e.trim().normalize("NFKC"),"Display name must be normalized").refine(e=>Array.from(e).length>=1&&Array.from(e).length<=160,"Display name must contain 1 to 160 Unicode code points"),Rs=o.string().refine(e=>e===e.trim().normalize("NFKC"),"Bio must be normalized").refine(e=>Array.from(e).length>=1&&Array.from(e).length<=500,"Bio must contain 1 to 500 Unicode code points"),Ao=o.url().max(2048).refine(e=>{let t=new URL(e).protocol;return t==="http:"||t==="https:"},"URL must use HTTP or HTTPS").refine(e=>e===new URL(e).toString(),"URL must be canonical"),Ss=o.email().max(320).refine(e=>e===e.toLocaleLowerCase("en-US"),"Email must be lowercase"),Te=o.strictObject({id:o.uuid(),displayName:ys.nullable(),avatar:Ao.nullable(),homepage:Ao.nullable(),bio:Rs.nullable(),email:Ss.nullable(),emailVerified:o.boolean(),status:o.enum(["active","disabled","deleted"]),createdAt:o.iso.datetime({offset:!0}),updatedAt:o.iso.datetime({offset:!0}),version:o.number().int().positive()}).superRefine((e,t)=>{e.emailVerified&&e.email===null&&t.addIssue({code:"custom",message:"A verified user snapshot must include its email",path:["email"]}),Date.parse(e.updatedAt)<Date.parse(e.createdAt)&&t.addIssue({code:"custom",message:"User updated time must not precede creation time",path:["updatedAt"]})}).readonly(),vt=o.strictObject({id:o.uuid(),userId:o.uuid(),createdAt:o.iso.datetime({offset:!0}),expiresAt:o.iso.datetime({offset:!0}),lastSeenAt:o.iso.datetime({offset:!0}),revokedAt:o.iso.datetime({offset:!0}).nullable(),revokeReason:nr.nullable()}).superRefine((e,t)=>{let r=Date.parse(e.createdAt);e.revokedAt===null!=(e.revokeReason===null)&&t.addIssue({code:"custom",message:"Session revocation time and reason must be present together",path:["revokedAt"]}),Date.parse(e.expiresAt)<=r&&t.addIssue({code:"custom",message:"Session expiry must follow creation time",path:["expiresAt"]});let n=Date.parse(e.lastSeenAt);(n<r||n>Date.parse(e.expiresAt))&&t.addIssue({code:"custom",message:"Session last-seen time must fall within its lifetime",path:["lastSeenAt"]}),e.revokedAt!==null&&Date.parse(e.revokedAt)<r&&t.addIssue({code:"custom",message:"Session revoked time must not precede creation time",path:["revokedAt"]})}).readonly();function Ue(e,t,r,n){return kt(e,r,{producer:Pe,aggregateType:t,aggregateId:n})}var Po="cn.zlooks.user.registered.v1",vs=o.strictObject({user:Te}).refine(e=>e.user.status==="active",{message:"A registered user snapshot must be active",path:["user","status"]}).readonly(),sr=Ue(Po,"user",vs,e=>e.user.id);var To="cn.zlooks.user.email-verified.v1",Es=o.strictObject({user:Te}).refine(e=>e.user.email!==null&&e.user.emailVerified,{message:"An email-verified event must contain a verified email snapshot",path:["user","emailVerified"]}).readonly(),ar=Ue(To,"user",Es,e=>e.user.id);var zo="cn.zlooks.user.profile-updated.v1",Fo=o.enum(["displayName","avatar","homepage","bio"]),Cs=o.strictObject({user:Te,changedFields:o.array(Fo).min(1).max(4).refine(e=>new Set(e).size===e.length,"Profile fields must be unique").readonly()}).readonly(),ir=Ue(zo,"user",Cs,e=>e.user.id);var ko="cn.zlooks.user.session-created.v1",ws=o.strictObject({user:Te,sessionFamily:vt,intent:o.enum(["login","registration","recovery"])}).superRefine((e,t)=>{e.sessionFamily.userId!==e.user.id&&t.addIssue({code:"custom",message:"Session and user snapshots must identify the same user",path:["sessionFamily","userId"]}),e.sessionFamily.revokedAt!==null&&t.addIssue({code:"custom",message:"A created session snapshot must be active",path:["sessionFamily","revokedAt"]}),e.user.status!=="active"&&t.addIssue({code:"custom",message:"A session-created event must contain an active user snapshot",path:["user","status"]})}).readonly(),lr=Ue(ko,"session-family",ws,e=>e.sessionFamily.id);var Uo="cn.zlooks.user.session-revoked.v1",Is=o.strictObject({user:Te,sessionFamily:vt}).superRefine((e,t)=>{e.sessionFamily.userId!==e.user.id&&t.addIssue({code:"custom",message:"Session and user snapshots must identify the same user",path:["sessionFamily","userId"]}),e.sessionFamily.revokedAt===null&&t.addIssue({code:"custom",message:"A revoked session snapshot must include its revocation",path:["sessionFamily","revokedAt"]})}).readonly(),cr=Ue(Uo,"session-family",Is,e=>e.sessionFamily.id);var Ns=_o({providerId:"user",displayName:"\u7528\u6237\u670D\u52A1\u4E8B\u4EF6",contractPackage:"@zlooks.cn/user-shared",events:[{definition:sr,title:"\u7528\u6237\u5DF2\u6CE8\u518C",description:"\u7528\u6237\u8D26\u6237\u5DF2\u7ECF\u5B8C\u6210\u6301\u4E45\u5316\u521B\u5EFA\u5E76\u5904\u4E8E\u53EF\u7528\u72B6\u6001\u3002",consumerExport:"consumeUserRegisteredEvent"},{definition:ar,title:"\u7528\u6237\u90AE\u7BB1\u5DF2\u9A8C\u8BC1",description:"\u7528\u6237\u90AE\u7BB1\u4ECE\u672A\u9A8C\u8BC1\u72B6\u6001\u771F\u5B9E\u8F6C\u6362\u4E3A\u5DF2\u9A8C\u8BC1\u72B6\u6001\u3002",consumerExport:"consumeUserEmailVerifiedEvent"},{definition:ir,title:"\u7528\u6237\u8D44\u6599\u5DF2\u66F4\u65B0",description:"\u7528\u6237\u516C\u5F00\u8D44\u6599\u5B57\u6BB5\u53D1\u751F\u771F\u5B9E\u53D8\u5316\u5E76\u643A\u5E26\u53D8\u66F4\u540E\u7684\u5B8C\u6574\u5B89\u5168\u5FEB\u7167\u3002",consumerExport:"consumeUserProfileUpdatedEvent"},{definition:lr,title:"\u7528\u6237\u4F1A\u8BDD\u65CF\u5DF2\u521B\u5EFA",description:"\u767B\u5F55\u3001\u6CE8\u518C\u6216\u6062\u590D\u6D41\u7A0B\u5DF2\u7ECF\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u6D3B\u52A8\u4F1A\u8BDD\u65CF\u3002",consumerExport:"consumeUserSessionCreatedEvent"},{definition:cr,title:"\u7528\u6237\u4F1A\u8BDD\u65CF\u5DF2\u64A4\u9500",description:"\u7528\u6237\u4F1A\u8BDD\u65CF\u4ECE\u6D3B\u52A8\u72B6\u6001\u771F\u5B9E\u8F6C\u6362\u4E3A\u5DF2\u64A4\u9500\u72B6\u6001\u3002",consumerExport:"consumeUserSessionRevokedEvent"}]});var Os="zlooks.user.credential-lifecycle",$s="cn.zlooks.password.credential-lifecycle.v1";var Mo="/user.account/account";var xl=Ze(Pe,"/api/auth/methods"),mr=Ze(Pe,"/api/auth/transactions"),bl=Ze(Pe,"/api/auth/logout"),yl=Ze(Pe,"/api/auth/session/refresh"),Rl=Ze(Pe,"/api/user"),Sl=Ze(Pe,"/api/user/sessions"),vl=Object.freeze({crossOriginRejected:1001,requestRejected:1002,authenticationRequired:1003,sessionExpired:1004,authenticationDenied:1005,authenticationPending:1006,routeNotFound:1007,accountNotFound:1008,accountAlreadyExists:1009,invalidVerificationCode:1010,verificationRateLimited:1011,emailDeliveryFailed:1012,serviceUnavailable:1013}),dt=o.string().min(1).max(2048).regex(/^\/(?!\/)[^?#]*$/),El=o.discriminatedUnion("status",[o.strictObject({status:o.literal("anonymous"),loginMethods:o.array(o.strictObject({id:o.string().min(1).max(128),label:o.string().min(1).max(80),href:dt})).max(64)}),o.strictObject({status:o.literal("authenticated"),user:o.strictObject({label:o.string().min(1).max(160),secondary:o.string().min(1).max(320).optional(),avatarText:o.string().min(1).max(8),avatarUrl:o.url({protocol:/^https?$/}).max(2048).optional()}),accountHref:dt,logoutHref:dt})]).readonly(),_s=o.discriminatedUnion("action",[o.strictObject({action:o.literal("set"),value:o.string().min(1).max(4096),expiresAt:o.iso.datetime({offset:!0})}),o.strictObject({action:o.literal("clear")})]),Vo=o.string().min(1).max(4096),Cl=o.string().trim().min(1).max(128),As=o.strictObject({id:o.string().regex(/^[a-z][a-z0-9._-]{0,127}$/),label:o.string().trim().min(1).max(80),capabilities:o.strictObject({login:o.boolean(),registration:o.boolean()}),rsc:o.strictObject({pluginId:o.string().regex(/^[a-z][a-z0-9._-]{0,127}$/),slots:o.strictObject({login:dt.optional(),registration:dt.optional()})})}).readonly(),wl=o.strictObject({}).readonly(),Il=o.strictObject({methods:o.array(As).max(64).readonly()}).readonly(),Nl=o.strictObject({methodId:o.string().regex(/^[a-z][a-z0-9._-]{0,127}$/),intent:o.enum(["login","registration","linking","reauthentication","recovery"]),loginHint:o.string().trim().min(1).max(320).optional(),requestContext:o.strictObject({clientKey:o.string().min(16).max(128)})}).readonly(),Ol=o.discriminatedUnion("status",[o.strictObject({status:o.literal("input-required"),transactionId:o.uuid(),methodId:o.string().regex(/^[a-z][a-z0-9._-]{0,127}$/)}),o.strictObject({status:o.literal("redirect-required"),transactionId:o.uuid(),methodId:o.string().regex(/^[a-z][a-z0-9._-]{0,127}$/),redirectUrl:o.url().max(4096)}),o.strictObject({status:o.literal("pending"),transactionId:o.uuid(),methodId:o.string().regex(/^[a-z][a-z0-9._-]{0,127}$/),retryAfterMs:o.number().int().min(250).max(6e4)})]).readonly(),$l=o.strictObject({input:o.unknown()}).readonly(),_l=o.discriminatedUnion("status",[o.strictObject({status:o.literal("verified"),session:o.strictObject({token:Vo,expiresAt:o.iso.datetime({offset:!0})}),user:o.unknown()}),o.strictObject({status:o.literal("denied"),code:o.string().min(1).max(128)}),o.strictObject({status:o.literal("pending"),retryAfterMs:o.number().int().min(250).max(6e4)})]).readonly(),Do=o.strictObject({id:o.string().min(1).max(128),displayName:o.string().min(1).max(160).optional(),avatar:o.url({protocol:/^https?$/}).max(2048).optional(),homepage:o.url({protocol:/^https?$/}).max(2048).optional(),bio:o.string().max(500).optional(),email:o.email().max(320).optional(),emailVerified:o.boolean()}).readonly(),Al=o.strictObject({user:Do}).readonly(),Pl=o.strictObject({input:o.unknown()}).readonly(),Ps=o.strictObject({id:o.string().min(1).max(128),createdAt:o.iso.datetime(),lastSeenAt:o.iso.datetime(),expiresAt:o.iso.datetime(),revoked:o.boolean()}).readonly(),Tl=o.strictObject({sessions:o.array(Ps).max(100).readonly()}).readonly(),zl=o.strictObject({revoked:o.boolean()}).readonly(),Fl=o.strictObject({revoked:o.boolean()}).readonly(),kl=o.strictObject({session:o.strictObject({token:Vo,expiresAt:o.iso.datetime({offset:!0}),user:Do})}).readonly(),Ul=o.strictObject({protocol:o.literal("zlooks.event-catalog"),protocolVersion:o.literal(1),providerId:o.literal("user"),displayName:o.string().min(1).max(160),producer:o.literal(Pe),contractPackage:o.literal("@zlooks.cn/user-shared"),count:o.literal(5),delivery:o.strictObject({guarantee:o.literal("at-least-once"),deduplicateBy:o.literal("eventId")}),events:o.array(o.strictObject({type:o.string().min(1).max(256),title:o.string().min(1).max(160),description:o.string().min(1).max(1e3),producer:o.literal(Pe),aggregateType:o.string().min(1).max(128),consumer:o.strictObject({packageName:o.literal("@zlooks.cn/user-shared"),exportName:o.string().min(1).max(128)}),dataSchema:o.record(o.string(),o.unknown())})).length(5).readonly()}).readonly(),Ml=o.strictObject({}).readonly(),Lo=o.strictObject({id:o.uuid(),displayName:o.string().trim().min(1).max(160).nullable(),avatar:o.url({protocol:/^https?$/}).max(2048).nullable(),homepage:o.url({protocol:/^https?$/}).max(2048).nullable().optional(),bio:o.string().trim().min(1).max(500).nullable().optional()}).readonly(),Ts=Lo,Vl=o.discriminatedUnion("authenticated",[o.strictObject({authenticated:o.literal(!1)}),o.strictObject({authenticated:o.literal(!0),user:Ts})]).readonly(),Dl=o.strictObject({userIds:o.array(o.uuid()).min(1).max(100).refine(e=>new Set(e).size===e.length,{message:"User IDs must be unique"}).readonly()}).readonly(),Ll=o.strictObject({users:o.array(Lo).max(100).refine(e=>new Set(e.map(t=>t.id)).size===e.length,{message:"Public user profiles must be unique"}).readonly()}).readonly(),jl=o.strictObject({method:o.enum(["GET","POST","PATCH"]),path:dt,origin:o.string().max(2048).optional(),clientKey:o.string().regex(/^[a-f0-9]{64}$/),body:o.unknown().optional()}).readonly(),Hl=o.strictObject({status:o.number().int().min(200).max(599).refine(e=>e<300||e>=400),body:So,sessionCookie:_s.optional()}).superRefine((e,t)=>{(e.status>=200&&e.status<300)!==!vo(e.body)&&t.addIssue({code:"custom",message:"HTTP status and browser API response code disagree",path:["body","code"]})}).readonly(),zs=o.strictObject({protocol:o.literal(Os),kind:o.enum(["registration","recovery"]),authenticationTransactionId:o.uuid(),extensionId:o.string().regex(/^[a-z][a-z0-9._-]{0,127}$/),methodId:o.string().regex(/^[a-z][a-z0-9._-]{0,127}$/),subject:o.string().trim().min(1).max(512),email:o.email().max(320),occurredAt:o.iso.datetime({offset:!0})}).readonly(),Wl=kt($s,zs,{producer:"cn.zlooks.password.auth.server",aggregateType:"credential",aggregateId:({subject:e})=>e}),ql=o.strictObject({acknowledged:o.literal(!0)}).readonly();function ur(e){return`${mr}/${encodeURIComponent(o.string().trim().min(1).max(128).parse(e))}/complete`}q();var Ut=ae(jr());q();var jo=ae(Ce());function et(e){let[t,r]=(0,jo.useDelayState)(e);return Ie(()=>{r(e,{ms:e.length?0:10})},[e]),t}var tt=ae(er());var Fs=e=>{let{componentCls:t,motionDurationFast:r,motionEaseInOut:n}=e,a=`${t}-show-help`,s=`${t}-show-help-item`;return{[a]:{transition:`opacity ${r} ${n}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[s]:{overflow:"hidden",transition:`${["height","opacity","transform"].map(i=>`${i} ${r} ${n}`).join(", ")} !important`,[`&${s}-appear, &${s}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${s}-leave-active`]:{transform:"translateY(-5px)"}}}}},Ho=Fs;var ks=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${(0,tt.unit)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus, input[type='radio']:focus, input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${(0,tt.unit)(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),Wo=(e,t)=>{let{formItemCls:r}=e;return{[r]:{[`${r}-label > label`]:{height:t},[`${r}-control-input`]:{minHeight:t}}}},Us=e=>{let{componentCls:t}=e;return{[t]:{...St(e),...ks(e),[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":{...Wo(e,e.controlHeightSM)},"&-large":{...Wo(e,e.controlHeightLG)}}}},Ms=e=>{let{formItemCls:t,iconCls:r,rootPrefixCls:n,antCls:a,labelRequiredMarkColor:s,labelColor:i,labelFontSize:l,labelHeight:c,labelColonMarginInlineStart:u,labelColonMarginInlineEnd:y,itemMarginBottom:R}=e,[C]=He(a,"grid");return{[t]:{...St(e),marginBottom:R,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
2
+ &-hidden${a}-row`]:{display:"none"},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset","> label":{verticalAlign:"middle",textWrap:"balance"}},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:c,color:i,fontSize:l,[`> ${r}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:e.marginXXS,color:s,fontSize:e.fontSize,fontFamily:"sans-serif",lineHeight:1,content:'"*"'},[`&${t}-required-mark-hidden, &${t}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`&${t}-required-mark-hidden`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:u,marginInlineEnd:y},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{[C("display")]:"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${n}-col-'"]):not([class*="' ${n}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%",[`&:has(> ${a}-switch:only-child, > ${a}-rate:only-child)`]:{display:"flex",alignItems:"center"}}}},[t]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:rr,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}}}},qo=e=>({padding:e.verticalLabelPadding,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),pt=e=>({...qo(e),margin:e.verticalLabelMargin}),Vs=e=>{let[t]=He(e.antCls,"form");return{...qo(e),[t("item-label-margin")]:e.verticalLabelMargin}},Ds=e=>{let{antCls:t,formItemCls:r}=e;return{[`${r}-horizontal`]:{[`${r}-label`]:{flexGrow:0},[`${r}-control`]:{flex:"1 1 0",minWidth:0},[`${r}-label[class$='-24'], ${r}-label[class*='-24 ']`]:{[`& + ${r}-control`]:{minWidth:"unset"}},[`> ${r}-row > ${t}-col-24${r}-label,
3
+ > ${r}-row > ${t}-col-xl-24${r}-label`]:pt(e)}}},Ls=e=>{let{componentCls:t,formItemCls:r,inlineItemMarginBottom:n}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[`${r}-inline`]:{flex:"none",marginInlineEnd:e.margin,marginBottom:n,"&-row":{flexWrap:"nowrap"},[`> ${r}-label,
4
+ > ${r}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${r}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${r}-has-feedback`]:{display:"inline-block"}}}}},js=e=>{let{componentCls:t,formItemCls:r,rootPrefixCls:n}=e;return{[`${r}:not(${r}-vertical) > ${r}-row > ${r}-label`]:pt(e),[`${t}:not(${t}-inline)`]:{[r]:{flexWrap:"wrap",[`${r}-label, ${r}-control`]:{[`&:not([class*=" ${n}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Hs=e=>{let{componentCls:t,formItemCls:r,antCls:n,verticalLabelHeight:a}=e,[s,i]=He(n,"form");return{[r]:{[s("item-label-margin")]:"initial"},[`${r}-label`]:{margin:i("item-label-margin")},[`${r}-vertical`]:{[`${r}-row`]:{flexDirection:"column"},[`${r}-label > label`]:{height:a},[`${r}-control`]:{width:"100%"},[`> ${r}-row > ${r}-label,
5
+ > ${r}-row > ${n}-col-24${r}-label,
6
+ > ${r}-row > ${n}-col-xl-24${r}-label`]:Vs(e)},[`@media (max-width: ${(0,tt.unit)(e.screenXSMax)})`]:[js(e),{[t]:{[`${r}:not(${r}-horizontal):not(${r}-vertical)`]:{[`> ${r}-row > ${n}-col-xs-24${r}-label`]:pt(e)}}}],[`@media (max-width: ${(0,tt.unit)(e.screenSMMax)})`]:{[t]:{[`${r}:not(${r}-horizontal):not(${r}-vertical)`]:{[`> ${r}-row > ${n}-col-sm-24${r}-label`]:pt(e)}}},[`@media (max-width: ${(0,tt.unit)(e.screenMDMax)})`]:{[t]:{[`${r}:not(${r}-horizontal):not(${r}-vertical)`]:{[`> ${r}-row > ${n}-col-md-24${r}-label`]:pt(e)}}},[`@media (max-width: ${(0,tt.unit)(e.screenLGMax)})`]:{[t]:{[`${r}:not(${r}-horizontal):not(${r}-vertical)`]:{[`> ${r}-row > ${n}-col-lg-24${r}-label`]:pt(e)}}}}},Ws=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,verticalLabelHeight:e.labelHeight??"auto",labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),dr=(e,t)=>(0,We.mergeToken)(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),ft=je("Form",(e,{rootPrefixCls:t})=>{let r=dr(e,t);return[Us(r),Ms(r),Ho(r),Ds(r),Ls(r),Hs(r),io(r),rr]},Ws,{order:-1e3});var Bo=[];function pr(e,t,r,n=0){return{key:typeof e=="string"?e:`${t}-${n}`,error:e,errorStatus:r}}var qs=({help:e,helpStatus:t,errors:r=Bo,warnings:n=Bo,className:a,fieldId:s,onVisibleChanged:i})=>{let{prefixCls:l}=P(mt),{classNames:c,styles:u}=P(pe),y=`${l}-item-explain`,R=ct(l),[C,_]=ft(l,R),x=re(()=>tr(l),[l]),I=et(r),p=et(n),b=Ve(e),O=re(()=>b?[pr(e,"help",t)]:[].concat(xe(I.map((v,g)=>pr(v,"error","error",g))),xe(p.map((v,g)=>pr(v,"warning","warning",g)))),[e,t,b,I,p]),d=re(()=>{let v={};return O.forEach(({key:g})=>{v[g]=(v[g]||0)+1}),O.map((g,N)=>({...g,key:v[g.key]>1?`${g.key}-fallback-${N}`:g.key}))},[O]),f={};return s&&(f.id=`${s}_help`),m(Ut.default,{motionDeadline:x.motionDeadline,motionName:`${l}-show-help`,visible:!!d.length,onVisibleChanged:i},v=>{let{className:g,style:N}=v;return m("div",{...f,className:k(y,g,c?.help,_,R,a,C),style:{...u?.help,...N}},m(Ut.CSSMotionList,{keys:d,...tr(l),motionName:`${l}-show-help-item`,component:!1},h=>{let{key:E,error:w,errorStatus:S,className:T,style:U}=h;return m("div",{key:E,className:k(T,c?.helpItem,{[`${y}-${S}`]:S}),style:{...u?.helpItem,...U}},w)}))})},Mt=qs;q();var gt=ae(Nt());q();var Qo=ae(Nt()),Zo=ae(Ce());var Go=e=>typeof e=="object"&&e!=null&&e.nodeType===1,Ko=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",Vt=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){let r=getComputedStyle(e,null);return Ko(r.overflowY,t)||Ko(r.overflowX,t)||(n=>{let a=(s=>{if(!s.ownerDocument||!s.ownerDocument.defaultView)return null;try{return s.ownerDocument.defaultView.frameElement}catch{return null}})(n);return!!a&&(a.clientHeight<n.scrollHeight||a.clientWidth<n.scrollWidth)})(e)}return!1},Dt=(e,t,r,n,a,s,i,l)=>s<e&&i>t||s>e&&i<t?0:s<=e&&l<=r||i>=t&&l>=r?s-e-n:i>t&&l<r||s<e&&l>r?i-t+a:0,Bs=e=>{let t=e.parentElement;return t??(e.getRootNode().host||null)},fr=(e,t)=>{var r,n,a,s;if(typeof document>"u")return[];let{scrollMode:i,block:l,inline:c,boundary:u,skipOverflowHiddenElements:y}=t,R=typeof u=="function"?u:L=>L!==u;if(!Go(e))throw new TypeError("Invalid target");let C=document.scrollingElement||document.documentElement,_=[],x=e;for(;Go(x)&&R(x);){if(x=Bs(x),x===C){_.push(x);break}x!=null&&x===document.body&&Vt(x)&&!Vt(document.documentElement)||x!=null&&Vt(x,y)&&_.push(x)}let I=(n=(r=window.visualViewport)==null?void 0:r.width)!=null?n:innerWidth,p=(s=(a=window.visualViewport)==null?void 0:a.height)!=null?s:innerHeight,{scrollX:b,scrollY:O}=window,{height:d,width:f,top:v,right:g,bottom:N,left:h}=e.getBoundingClientRect(),{top:E,right:w,bottom:S,left:T}=(L=>{let $=window.getComputedStyle(L);return{top:parseFloat($.scrollMarginTop)||0,right:parseFloat($.scrollMarginRight)||0,bottom:parseFloat($.scrollMarginBottom)||0,left:parseFloat($.scrollMarginLeft)||0}})(e),U=l==="start"||l==="nearest"?v-E:l==="end"?N+S:v+d/2-E+S,M=c==="center"?h+f/2-T+w:c==="end"?g+w:h-T,V=[];for(let L=0;L<_.length;L++){let $=_[L],{height:X,width:B,top:K,right:W,bottom:A,left:j}=$.getBoundingClientRect();if(i==="if-needed"&&v>=0&&h>=0&&N<=p&&g<=I&&($===C&&!Vt($)||v>=K&&N<=A&&h>=j&&g<=W))return V;let le=getComputedStyle($),ee=parseInt(le.borderLeftWidth,10),Y=parseInt(le.borderTopWidth,10),D=parseInt(le.borderRightWidth,10),oe=parseInt(le.borderBottomWidth,10),z=0,H=0,J="offsetWidth"in $?$.offsetWidth-$.clientWidth-ee-D:0,fe="offsetHeight"in $?$.offsetHeight-$.clientHeight-Y-oe:0,be="offsetWidth"in $?$.offsetWidth===0?0:B/$.offsetWidth:0,ge="offsetHeight"in $?$.offsetHeight===0?0:X/$.offsetHeight:0;if(C===$)z=l==="start"?U:l==="end"?U-p:l==="nearest"?Dt(O,O+p,p,Y,oe,O+U,O+U+d,d):U-p/2,H=c==="start"?M:c==="center"?M-I/2:c==="end"?M-I:Dt(b,b+I,I,ee,D,b+M,b+M+f,f),z=Math.max(0,z+O),H=Math.max(0,H+b);else{z=l==="start"?U-K-Y:l==="end"?U-A+oe+fe:l==="nearest"?Dt(K,A,X,Y,oe+fe,U,U+d,d):U-(K+X/2)+fe/2,H=c==="start"?M-j-ee:c==="center"?M-(j+B/2)+J/2:c==="end"?M-W+D+J:Dt(j,W,B,ee,D+J,M,M+f,f);let{scrollLeft:ne,scrollTop:Re}=$;z=ge===0?0:Math.max(0,Math.min(Re+z/ge,$.scrollHeight-X/ge+fe)),H=be===0?0:Math.max(0,Math.min(ne+H/be,$.scrollWidth-B/be+J)),U+=Re-z,M+=ne-H}V.push({el:$,top:z,left:H})}return V};var Gs=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function Xo(e,t){if(!e.isConnected||!(a=>{let s=a;for(;s&&s.parentNode;){if(s.parentNode===document)return!0;s=s.parentNode instanceof ShadowRoot?s.parentNode.host:s.parentNode}return!1})(e))return;let r=(a=>{let s=window.getComputedStyle(a);return{top:parseFloat(s.scrollMarginTop)||0,right:parseFloat(s.scrollMarginRight)||0,bottom:parseFloat(s.scrollMarginBottom)||0,left:parseFloat(s.scrollMarginLeft)||0}})(e);if((a=>typeof a=="object"&&typeof a.behavior=="function")(t))return t.behavior(fr(e,t));let n=typeof t=="boolean"||t==null?void 0:t.behavior;for(let{el:a,top:s,left:i}of fr(e,Gs(t))){let l=s-r.top+r.bottom,c=i-r.left+r.right;a.scroll({top:l,left:c,behavior:n})}}var Ks=["parentNode"],Xs="form_item";function rt(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function Lt(e,t){if(!e.length)return;let r=e.join("_");return t?`${t}_${r}`:Ks.includes(r)?`${Xs}_${r}`:r}function jt(e,t,r,n,a,s){let i=n;return s!==void 0?i=s:r.validating?i="validating":e.length?i="error":t.length?i="warning":(r.touched||a&&r.validated)&&(i="success"),i}function Yo(e){return rt(e).join("_")}function Jo(e,t){let r=t.getFieldInstance(e),n=(0,Zo.getDOM)(r);if(n)return n;let a=Lt(rt(e),t.__INTERNAL__.name);if(a)return document.getElementById(a)}function Et(e){let[t]=(0,Qo.useForm)(),r=Q({}),n=re(()=>e??{...t,__INTERNAL__:{itemRef:a=>s=>{let i=Yo(a);s?r.current[i]=s:delete r.current[i]}},scrollToField:(a,s={})=>{let{focus:i,...l}=s,c=Jo(a,n);c&&(Xo(c,{scrollMode:"if-needed",block:"nearest",...l}),i&&n.focusField(a))},focusField:a=>{let s=n.getFieldInstance(a);we(s?.focus)?s.focus():Jo(a,n)?.focus?.()},getFieldInstance:a=>{let s=Yo(a);return r.current[s]}},[e,t]);return[n]}var Ys=(e,t)=>{let r=P(lt),{getPrefixCls:n,direction:a,requiredMark:s,colon:i,scrollToFirstError:l,className:c,style:u,styles:y,classNames:R,tooltip:C,labelAlign:_,labelWrap:x}=Fe("form"),{prefixCls:I,className:p,rootClassName:b,size:O,disabled:d=r,form:f,colon:v,labelAlign:g,labelWrap:N,labelCol:h,wrapperCol:E,layout:w="horizontal",scrollToFirstError:S,requiredMark:T,onFinishFailed:U,name:M,style:V,feedbackIcons:L,variant:$,classNames:X,styles:B,tooltip:K,...W}=e,A=Be(O),j=P(qr),le=re(()=>T!==void 0?T:s!==void 0?s:!0,[T,s]),ee=v??i,Y=g??_,D=N??x,oe={...C,...K},z=n("form",I),H=ct(z),[J,fe]=ft(z,H),be={...e,size:A,disabled:d,layout:w,colon:ee,requiredMark:le,labelAlign:Y,labelWrap:D},ge=ye(u),ne=ye(V),[Re,ze]=ke([R,X],[y,ge,B,ne],{props:be}),Se=k(z,`${z}-${w}`,{[`${z}-hide-required-mark`]:le===!1,[`${z}-rtl`]:a==="rtl",[`${z}-large`]:A==="large",[`${z}-small`]:A==="small"},fe,H,J,c,p,b,Re.root),[he]=Et(f),{__INTERNAL__:F}=he;F.name=M;let te=re(()=>({name:M,labelAlign:Y,labelCol:h,labelWrap:D,wrapperCol:E,layout:w,colon:ee,requiredMark:le,itemRef:F.itemRef,form:he,feedbackIcons:L,tooltip:oe,classNames:Re,styles:ze}),[M,Y,D,h,E,w,ee,le,he,L,Re,ze,oe]),G=Q(null);at(t,()=>({...he,nativeElement:G.current?.nativeElement}));let _e=(Ee,st)=>{if(Ee){let se={block:"nearest"};me(Ee)&&(se={...se,...Ee}),he.scrollToField(st,se)}},ue=Ee=>{if(U?.(Ee),Ee.errorFields.length){let st=Ee.errorFields[0].name;if(S!==void 0){_e(S,st);return}l!==void 0&&_e(l,st)}};return m(mo.Provider,{value:$},m(Gr,{disabled:d},m(Kr.Provider,{value:A},m($t,{validateMessages:j},m(pe.Provider,{value:te},m(co,{status:!0},m(gt.default,{id:M,...W,name:M,onFinishFailed:ue,form:he,ref:G,style:ze?.root,className:Se})))))))},Js=ce(Ys);var en=Js;q();var xt=ae(Nt()),Gt=ae(Ce());var tn=ae(Ce());var Qs=e=>{if(we(e))return e;let t=(0,tn.toArray)(e);return t.length<=1?t[0]:t},rn=Qs;q();var on=()=>{let{status:e,errors:t=[],warnings:r=[]}=P($e);return{status:e,errors:t,warnings:r}};on.Context=$e;var nn=on;q();var gr=ae(Ce());function hr(e){let[t,r]=de(e),n=Q(null),a=Q([]),s=Q(!1);Ie(()=>(s.current=!1,()=>{s.current=!0,gr.raf.cancel(n.current),n.current=null}),[]);function i(l){s.current||(n.current===null&&(a.current=[],n.current=(0,gr.raf)(()=>{n.current=null,r(c=>{let u=c;return a.current.forEach(y=>{u=y(u)}),u})})),a.current.push(l))}return[t,i]}q();var Ht=ae(Ce());var Zs=()=>{let{itemRef:e}=P(pe),t=Q({});return(n,a)=>{let s=a&&me(a)&&(0,Ht.getNodeRef)(a),i=n.join("_");return(t.current.name!==i||t.current.originRef!==s)&&(t.current.name=i,t.current.originRef=s,t.current.ref=(0,Ht.composeRef)(e(n),s)),t.current.ref}},sn=Zs;q();var ht=ae(Ce());q();q();var ea=kr({}),Wt=ea;function an(e){return e==="auto"?"1 1 auto":it(e)?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}var ta=ce((e,t)=>{let{getPrefixCls:r,direction:n}=P(Oe),{gutter:a,wrap:s}=P(Wt),{prefixCls:i,span:l,order:c,offset:u,push:y,pull:R,className:C,children:_,flex:x,style:I,...p}=e,b=r("col",i),O=r(),[d,f]=po(b),[v]=He(O,"col"),g={},N={};At.forEach(w=>{let S={},T=e[w];it(T)?S.span=T:me(T)&&(S=T||{}),delete p[w],N={...N,[`${b}-${w}-${S.span}`]:Ve(S.span),[`${b}-${w}-order-${S.order}`]:S.order||S.order===0,[`${b}-${w}-offset-${S.offset}`]:S.offset||S.offset===0,[`${b}-${w}-push-${S.push}`]:S.push||S.push===0,[`${b}-${w}-pull-${S.pull}`]:S.pull||S.pull===0,[`${b}-rtl`]:n==="rtl"},(S.flex||S.flex===0)&&(N[`${b}-${w}-flex`]=!0,g[v(`${w}-flex`)]=an(S.flex))});let h=k(b,{[`${b}-${l}`]:l!==void 0,[`${b}-order-${c}`]:c,[`${b}-offset-${u}`]:u,[`${b}-push-${y}`]:y,[`${b}-pull-${R}`]:R},C,N,d,f),E={};if(a?.[0]){let w=it(a[0])?`${a[0]/2}px`:`calc(${a[0]} / 2)`;E.paddingInline=w}return(x||x===0)&&(E.flex=an(x),s===!1&&!E.minWidth&&(E.minWidth=0)),m("div",{...p,style:{...E,...I,...g},className:h,ref:t},_)}),qt=ta;q();function xr(e,t){let r=[void 0,void 0],n=Array.isArray(e)?e:[e,void 0],a=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0,xxxl:!0};return n.forEach((s,i)=>{if(me(s))for(let l=0;l<ut.length;l++){let c=ut[l];if(a[c]&&s[c]!==void 0){r[i]=s[c];break}}else r[i]=s}),r}var ln=(e,t)=>{let[r,n]=de(()=>Zt(e)?e:""),a=()=>{if(Zt(e)&&n(e),!!me(e))for(let s=0;s<ut.length;s++){let i=ut[s];if(!t||!t[i])continue;let l=e[i];if(l!==void 0){n(l);return}}};return Ie(()=>{a()},[JSON.stringify(e),t]),r},ra=ce((e,t)=>{let{prefixCls:r,justify:n,align:a,className:s,style:i,children:l,gutter:c=0,wrap:u,...y}=e,{getPrefixCls:R,direction:C}=P(Oe),_=fo(!0,null),x=ln(a,_),I=ln(n,_),p=R("row",r),[b,O]=uo(p),d=xr(c,_),f=k(p,{[`${p}-no-wrap`]:u===!1,[`${p}-${I}`]:I,[`${p}-${x}`]:x,[`${p}-rtl`]:C==="rtl"},s,b,O),v={};if(d?.[0]){let E=it(d[0])?`${d[0]/-2}px`:`calc(${d[0]} / -2)`;v.marginInline=E}let[g,N]=d;v.rowGap=N;let h=re(()=>({gutter:[g,N],wrap:u}),[g,N,u]);return m(Wt.Provider,{value:h},m("div",{...y,className:f,style:{...v,...i},ref:t},l))}),br=ra;q();var ot=ae(Ce());var oa=e=>{let{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},cn=Qr(["Form","item-item"],(e,{rootPrefixCls:t})=>{let r=dr(e,t);return oa(r)});var na=24,sa=e=>{let{prefixCls:t,status:r,labelCol:n,wrapperCol:a,children:s,errors:i,warnings:l,_internalItemRender:c,extra:u,help:y,fieldId:R,marginBottom:C,onErrorVisibleChanged:_,label:x}=e,I=`${t}-item`,p=P(pe),{classNames:b,styles:O}=p,d=re(()=>{let L={...a||p.wrapperCol||{}};return x===null&&!n&&!a&&p.labelCol&&[void 0].concat(xe(At)).forEach(X=>{let B=X?[X]:[],K=(0,ot.get)(p.labelCol,B),W=me(K)?K:{},A=(0,ot.get)(L,B),j=me(A)?A:{};"span"in W&&!("offset"in j)&&W.span<na&&(L=(0,ot.set)(L,[].concat(B,["offset"]),W.span))}),L},[a,p.wrapperCol,p.labelCol,x,n]),f=k(`${I}-control`,d.className),v=re(()=>{let{labelCol:L,wrapperCol:$,...X}=p;return X},[p]),g=Q(null),[N,h]=de(0);(0,ot.useLayoutEffect)(()=>{u&&g.current?h(g.current.clientHeight):h(0)},[u]);let E=m("div",{className:`${I}-control-input`},m("div",{className:k(`${I}-control-input-content`,b?.content),style:O?.content},s)),w=re(()=>({prefixCls:t,status:r}),[t,r]),S=C!==null||i.length||l.length?m(mt.Provider,{value:w},m(Mt,{fieldId:R,errors:i,warnings:l,help:y,helpStatus:r,className:`${I}-explain-connected`,onVisibleChanged:_})):null,T={};R&&(T.id=`${R}_extra`);let U=u?m("div",{...T,className:k(`${I}-extra`,b?.extra),style:O?.extra,ref:g},u):null,M=S||U?m("div",{className:`${I}-additional`,style:C?{minHeight:C+N}:{}},S,U):null,V=c&&c.mark==="pro_table_render"&&c.render?c.render(e,{input:E,errorList:S,extra:U}):m(Ae,null,E,M);return m(pe.Provider,{value:v},m(qt,{...d,className:f},V),m(cn,{prefixCls:t}))},mn=sa;q();q();var dn=ae(un());function Rr(){return Rr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Rr.apply(this,arguments)}var ia=(e,t)=>m(qe,Rr({},e,{ref:t,icon:dn.default})),la=ce(ia),pn=la;q();var ca=(e,t)=>Hr(e)?me(e)&&!wt(e)?{...t,...e}:{...t,title:e}:null,fn=ca;var ma=({prefixCls:e,label:t,htmlFor:r,labelCol:n,labelAlign:a,colon:s,required:i,requiredMark:l,tooltip:c,vertical:u})=>{let[y]=It("Form"),{labelAlign:R,labelCol:C,labelWrap:_,colon:x,classNames:I,styles:p,tooltip:b}=P(pe);if(!t)return null;let O=n||C||{},d=a||R,f=`${e}-item-label`,v=k(f,d==="left"&&`${f}-left`,O.className,{[`${f}-wrap`]:!!_}),g=t,N=s===!0||x!==!1&&s!==!1;N&&!u&&typeof t=="string"&&t.trim()&&(g=t.replace(/[:|:]\s*$/,""));let E=fn(c,b);if(E){let V=m(Pt,{...E},m("span",{className:`${e}-item-tooltip`,onClick:L=>{L.preventDefault()},tabIndex:-1},E.icon||E.children||m(pn,null)));g=m(Ae,null,g,V)}let w=l==="optional",S=we(l),T=l===!1;S?g=l(g,{required:!!i}):w&&!i&&(g=m(Ae,null,g,m("span",{className:`${e}-item-optional`},y?.optional||Br.Form?.optional)));let U;T?U="hidden":(w||S)&&(U="optional");let M=k(I?.label,{[`${e}-item-required`]:i,[`${e}-item-required-mark-${U}`]:U,[`${e}-item-no-colon`]:!N});return m(qt,{...O,className:v},m("label",{htmlFor:r,className:M,style:p?.label,title:typeof t=="string"?t:void 0},g))},gn=ma;q();var ua={success:Zr,warning:to,error:eo,validating:ro};function da({children:e,errors:t,warnings:r,hasFeedback:n,validateStatus:a,prefixCls:s,meta:i,noStyle:l,name:c}){let u=`${s}-item`,{feedbackIcons:y}=P(pe),R=jt(t,r,i,null,!!n,a),{isFormItemInput:C,status:_,hasFeedback:x,feedbackIcon:I,name:p}=P($e),b=re(()=>{let O;if(n){let f=n!==!0&&n.icons||y,v=R&&f?.({status:R,errors:t,warnings:r})?.[R],g=R?ua[R]:null;O=v!==!1&&g?m("span",{className:k(`${u}-feedback-icon`,`${u}-feedback-icon-${R}`)},v||m(g,null)):null}let d={status:R||"",errors:t,warnings:r,hasFeedback:!!n,feedbackIcon:O,isFormItemInput:!0,name:c};return l&&(d.status=(R??_)||"",d.isFormItemInput=C,d.hasFeedback=!!(n??x),d.feedbackIcon=n!==void 0?d.feedbackIcon:I,d.name=c??p),d},[R,t,r,n,y,l,c,C,_,u,x,I,p]);return m($e.Provider,{value:b},e)}var Bt=da;function Sr(e){let{prefixCls:t,className:r,rootClassName:n,style:a,help:s,errors:i,warnings:l,validateStatus:c,meta:u,hasFeedback:y,hidden:R,children:C,fieldId:_,required:x,isRequired:I,onSubItemMetaChange:p,layout:b,name:O,...d}=e,f=`${t}-item`,{requiredMark:v,layout:g}=P(pe),N=b||g,h=N==="vertical",E=Q(null),w=et(i),S=et(l),T=Ve(s),U=!!(T||w.length||S.length),M=!!E.current&&(0,ht.isVisible)(E.current),[V,L]=de(null);(0,ht.useLayoutEffect)(()=>{if(U&&E.current){let W=getComputedStyle(E.current);L(Number.parseInt(W.marginBottom,10))}},[U,M]);let $=W=>{!W&&!U&&L(null)},B=((W=!1)=>{let A=W?w:u.errors,j=W?S:u.warnings;return jt(A,j,u,"",!!y,c)})(),K=k(f,r,n,{[`${f}-with-help`]:T||w.length||S.length,[`${f}-has-feedback`]:B&&y,[`${f}-has-success`]:B==="success",[`${f}-has-warning`]:B==="warning",[`${f}-has-error`]:B==="error",[`${f}-is-validating`]:B==="validating",[`${f}-hidden`]:R,[`${f}-${N}`]:N});return m("div",{className:K,style:a,ref:E},m(br,{className:`${f}-row`,...(0,ht.omit)(d,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])},m(gn,{htmlFor:_,...e,requiredMark:v,required:x??I,prefixCls:t,vertical:h}),m(mn,{...e,...u,errors:w,warnings:S,prefixCls:t,status:B,help:s,marginBottom:V,onErrorVisibleChanged:$},m(Ot.Provider,{value:p},m(Bt,{prefixCls:t,meta:u,errors:u.errors,warnings:u.warnings,hasFeedback:y,validateStatus:B,name:O},C)))),!!V&&m("div",{className:`${f}-margin-offset`,style:{marginBottom:-V}}))}var pa="__SPLIT__";function fa(e,t){let r=Object.keys(e),n=Object.keys(t);return r.length===n.length&&r.every(a=>{let s=e[a],i=t[a];return s===i||we(s)||we(i)})}var ga=Ur(e=>e.children,(e,t)=>fa(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((r,n)=>r===t.childProps[n]));function hn(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function ha(e){let{name:t,noStyle:r,className:n,dependencies:a,prefixCls:s,shouldUpdate:i,rules:l,children:c,required:u,label:y,messageVariables:R,trigger:C="onChange",validateTrigger:_,hidden:x,help:I,layout:p}=e,{getPrefixCls:b}=P(Oe),{name:O}=P(pe),d=rn(c),f=we(d),v=P(Ot),{validateTrigger:g}=P(xt.FieldContext),N=Ve(_)?_:g,h=Ve(t),E=b("form",s),w=ct(E),[S,T]=ft(E,w),U=Dr("Form.Item"),M=P(xt.ListContext),V=Q(null),[L,$]=hr({}),[X,B]=(0,Gt.useState)(()=>hn()),K=D=>{let oe=M?.getKey(D.name);if(B(D.destroy?hn():D,!0),r&&I!==!1&&v){let z=D.name;if(D.destroy)z=V.current||z;else if(oe!==void 0){let[H,J]=oe;z=[H].concat(xe(J)),V.current=z}v(D,z)}},W=(D,oe)=>{$(z=>{let H={...z},fe=[].concat(xe(D.name.slice(0,-1)),xe(oe)).join(pa);return D.destroy?delete H[fe]:H[fe]=D,H})},[A,j]=re(()=>{let D=xe(X.errors),oe=xe(X.warnings);return Object.values(L).forEach(z=>{D.push.apply(D,xe(z.errors||[])),oe.push.apply(oe,xe(z.warnings||[]))}),[D,oe]},[L,X.errors,X.warnings]),le=sn();function ee(D,oe,z){return r&&!x?m(Bt,{prefixCls:E,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:X,errors:A,warnings:j,noStyle:!0,name:t},D):m(Sr,{key:"row",...e,className:k(n,T,w,S),prefixCls:E,fieldId:oe,isRequired:z,errors:A,warnings:j,meta:X,onSubItemMetaChange:W,layout:p,name:t},D)}if(!h&&!f&&!a)return ee(d);let Y={};return typeof y=="string"?Y.label=y:t&&(Y.label=String(t)),R&&(Y={...Y,...R}),m(xt.Field,{...e,messageVariables:Y,trigger:C,validateTrigger:N,onMetaChange:K},(D,oe,z)=>{let H=rt(t).length&&oe?oe.name:[],J=Lt(H,O),fe=u!==void 0?u:l?.some(ne=>{if(me(ne)&&ne.required&&!ne.warningOnly)return!0;if(we(ne)){let Re=ne(z);return Re?.required&&!Re?.warningOnly}return!1}),be={...D},ge=null;if(Array.isArray(d)&&h)ge=d;else if(!(f&&(!(i||a)||h))){if(!(a&&!f&&!h))if(wt(d)){let ne={...d.props,...be};if(ne.id||(ne.id=J),I||A.length>0||j.length>0||e.extra){let Se=[];(I||A.length>0)&&Se.push(`${J}_help`),e.extra&&Se.push(`${J}_extra`),ne["aria-describedby"]=Se.join(" ")}A.length>0&&(ne["aria-invalid"]="true"),fe&&(ne["aria-required"]="true"),(0,Gt.supportRef)(d)&&(ne.ref=le(H,d)),new Set([].concat(xe(rt(C)),xe(rt(N)))).forEach(Se=>{ne[Se]=(...he)=>{be[Se]?.(...he),d.props[Se]?.(...he)}});let ze=[ne["aria-required"],ne["aria-invalid"],ne["aria-describedby"]];ge=m(ga,{control:be,update:d,childProps:ze},Rt(d,ne))}else f&&(i||a)&&!h?ge=d(z):ge=d}return ee(ge,J,fe)})}var xn=ha;xn.useStatus=nn;var bn=xn;q();var yn=ae(Nt());var xa=({prefixCls:e,children:t,...r})=>{let{getPrefixCls:n}=P(Oe),a=n("form",e),s=re(()=>({prefixCls:a,status:"error"}),[a]);return m(yn.List,{...r},(i,l,c)=>m(mt.Provider,{value:s},t(i.map(u=>({...u,fieldKey:u.key})),l,{errors:c.errors,warnings:c.warnings})))},Rn=xa;q();function vr(){let{form:e}=P(pe);return e}var Ke=en;Ke.Item=bn;Ke.List=Rn;Ke.ErrorList=Mt;Ke.useForm=Et;Ke.useFormInstance=vr;Ke.useWatch=gt.useWatch;Ke.Provider=$t;var Sn=Ke;q();q();var ba=e=>{let{getPrefixCls:t,direction:r}=P(Oe),{prefixCls:n,className:a}=e,s=t("input-group",n),i=t("input"),[l,c]=bo(i),u=k(s,c,{[`${s}-lg`]:e.size==="large",[`${s}-sm`]:e.size==="small",[`${s}-compact`]:e.compact,[`${s}-rtl`]:r==="rtl"},l,a),y=P($e),R=re(()=>({...y,isFormItemInput:!1}),[y]);return m($e.Provider,{value:R},m(ho.Compact,{className:u,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},e.children))},vn=ba;q();var Ct=ae(Ce());var ya=e=>{let{componentCls:t,paddingXS:r}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:r,[`${t}-input-wrapper`]:{position:"relative",[`${t}-mask-icon`]:{position:"absolute",zIndex:"1",top:"50%",right:"50%",transform:"translate(50%, -50%)",pointerEvents:"none"},[`${t}-mask-input`]:{color:"transparent",caretColor:e.colorText,"&::selection":{color:"transparent"}},[`${t}-mask-input[type=number]::-webkit-inner-spin-button`]:{"-webkit-appearance":"none",margin:0},[`${t}-mask-input[type=number]`]:{"-moz-appearance":"textfield"}},"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},En=je(["Input","OTP"],e=>{let t=(0,We.mergeToken)(e,Tt(e));return ya(t)},zt);q();var Cn=ae(Ce());var Ra="\u2022",Sa=ce((e,t)=>{let{className:r,value:n,onChange:a,onActiveChange:s,index:i,mask:l,onFocus:c,type:u,...y}=e,{getPrefixCls:R}=P(Oe),C=R("otp"),_=typeof l=="string"?l:Ra,x=Q(null);at(t,()=>x.current);let I=d=>{a(i,d.target.value)},p=()=>{(0,Cn.raf)(()=>{let d=x.current?.input;document.activeElement===d&&d&&d.select()})},b=d=>{c?.(d),p()},O=d=>{let{key:f,ctrlKey:v,metaKey:g}=d;f==="ArrowLeft"?s(i-1):f==="ArrowRight"?s(i+1):f==="z"&&(v||g)?d.preventDefault():f==="Backspace"&&!n&&s(i-1),p()};return m("span",{className:`${C}-input-wrapper`,role:"presentation"},l&&n!==""&&n!==void 0&&m("span",{className:`${C}-mask-icon`,"aria-hidden":"true"},_),m(Ge,{"aria-label":`OTP Input ${i+1}`,...y,type:u??(l?"password":"text"),ref:x,value:n,onInput:I,onFocus:b,onKeyDown:O,onMouseDown:p,onMouseUp:p,className:k(r,{[`${C}-mask-input`]:l})}))}),wn=Sa;function Kt(e){return(e||"").split("")}var va=e=>{let{index:t,prefixCls:r,separator:n,className:a,style:s}=e,i=we(n)?n(t):n;return i?m("span",{className:k(`${r}-separator`,a),style:s},i):null},Ea=ce((e,t)=>{let{prefixCls:r,length:n=6,size:a,defaultValue:s,value:i,onChange:l,formatter:c,separator:u,variant:y,disabled:R,status:C,autoFocus:_,mask:x,type:I,autoComplete:p,onInput:b,onFocus:O,inputMode:d,classNames:f,styles:v,className:g,style:N,...h}=e,{classNames:E,styles:w,getPrefixCls:S,direction:T,style:U,className:M}=Fe("otp"),V=S("otp",r),[L]=Qe("otp",y,void 0,"input"),$={...e,length:n,variant:L},X=ye(U),B=ye(N),[K,W]=ke([E,f],[w,X,v,B],{props:$}),A=(0,Ct.pickAttrs)(h,{aria:!0,data:!0,attr:!0}),[j,le]=En(V),ee=Be(F=>a??F),Y=P($e),D=go(Y.status,C),oe=re(()=>({...Y,status:D,hasFeedback:!1,feedbackIcon:null}),[Y,D]),z=Q(null),H=Q({});at(t,()=>({focus:()=>{H.current[0]?.focus()},blur:()=>{for(let F=0;F<n;F+=1)H.current[F]?.blur()},nativeElement:z.current}));let J=F=>c?c(F):F,[fe,be]=de(()=>Kt(J(s||"")));Ie(()=>{i!==void 0&&be(Kt(i))},[i]);let ge=(0,Ct.useEvent)(F=>{be(F),b&&b(F),l&&F.length===n&&F.every(te=>te)&&F.some((te,G)=>fe[G]!==te)&&l(F.join(""))}),ne=(0,Ct.useEvent)((F,te)=>{let G=xe(fe);for(let ue=0;ue<F;ue+=1)G[ue]||(G[ue]="");te.length<=1?G[F]=te:G=G.slice(0,F).concat(Kt(te)),G=G.slice(0,n);for(let ue=G.length-1;ue>=0&&!G[ue];ue-=1)G.pop();let _e=J(G.map(ue=>ue||" ").join(""));return G=Kt(_e).map((ue,Ee)=>ue===" "&&!G[Ee]?G[Ee]:ue),G}),Re=(F,te)=>{let G=ne(F,te),_e=Math.min(F+te.length,n-1);_e!==F&&G[F]!==void 0&&H.current[_e]?.focus(),ge(G)},ze=F=>{H.current[F]?.focus()},Se=(F,te)=>{for(let G=0;G<te;G+=1)if(!H.current[G]?.input?.value){H.current[G]?.focus();break}O?.(F)},he={variant:L,disabled:R,status:D,mask:x,type:I,inputMode:d,autoComplete:p};return m("div",{...A,ref:z,className:k(g,V,{[`${V}-sm`]:ee==="small",[`${V}-lg`]:ee==="large",[`${V}-rtl`]:T==="rtl"},le,j,M,K.root),style:W.root,role:"group"},m($e.Provider,{value:oe},Array.from({length:n}).map((F,te)=>{let G=`otp-${te}`,_e=fe[te]||"";return m(Ae,{key:G},m(wn,{ref:ue=>{H.current[te]=ue},index:te,size:ee,htmlSize:1,className:k(K.input,`${V}-input`),style:W.input,onChange:Re,value:_e,onActiveChange:ze,autoFocus:te===0&&_,onFocus:ue=>Se(ue,te),...he}),te<n-1&&m(va,{separator:u,index:te,prefixCls:V,className:k(K.separator),style:W.separator}))})))}),In=Ea;q();q();q();var On=ae(Nn());function Cr(){return Cr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Cr.apply(this,arguments)}var wa=(e,t)=>m(qe,Cr({},e,{ref:t,icon:On.default})),Ia=ce(wa),$n=Ia;q();var An=ae(_n());function Ir(){return Ir=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ir.apply(this,arguments)}var Oa=(e,t)=>m(qe,Ir({},e,{ref:t,icon:An.default})),$a=ce(Oa),Pn=$a;var Tn=ae(Ce());var _a=e=>e?m(Pn,null):m($n,null),Aa={click:"onClick",hover:"onMouseOver"},Pa=ce((e,t)=>{let{disabled:r,action:n="click",visibilityToggle:a=!0,iconRender:s,prefixCls:i,inputPrefixCls:l,suffix:c,className:u,style:y,classNames:R,styles:C,variant:_,...x}=e,{getPrefixCls:I,className:p,style:b,classNames:O,styles:d,iconRender:f}=Fe("inputPassword"),[v]=Qe("inputPassword",_,e.bordered,"input"),[g]=It("global"),N=P(lt),h=r??N,E={...e,disabled:h,variant:v},w=ye(b),S=ye(y),[T,U]=ke([O,R],[d,w,C,S],{props:E}),M=me(a)&&a.visible!==void 0,[V,L]=de(()=>M?a.visible:!1),$=Q(null);Ie(()=>{M&&L(a.visible)},[M,a]);let X=xo($),B=()=>{if(h)return;V&&X();let Y=!V;L(Y),me(a)&&a.onVisibleChange?.(Y)},K=Y=>{let D=Aa[n]||"",z=(s||f||_a)(V),H=me(a)?a.tabIndex:void 0;return m("span",{key:"passwordIcon",role:"button",tabIndex:h?-1:H??0,className:`${Y}-icon`,"aria-disabled":h,"aria-pressed":V,"aria-label":V?g.hide:g.show,onMouseDown:J=>{J.preventDefault()},onMouseUp:J=>{J.preventDefault()},onKeyDown:J=>{(J.key==="Enter"||J.key===" ")&&(J.preventDefault(),B())},[D]:B},z)},W=I("input",l),A=I("input-password",i),j=a&&K(A),le=k(A,p,u,{[`${A}-${e.size}`]:!!e.size}),ee={...x,type:V?"text":"password",prefixCls:W,suffix:m(Ae,null,j,c),disabled:h,className:le,classNames:T,styles:U,variant:v};return m(Ge,{ref:(0,Tn.composeRef)(t,$),...ee})}),zn=Pa;q();q();var kn=ae(Fn());function Or(){return Or=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Or.apply(this,arguments)}var za=(e,t)=>m(qe,Or({},e,{ref:t,icon:kn.default})),Fa=ce(za),Un=Fa;var Xe=ae(Ce());var Xt=ae(er());var ka=e=>{let{componentCls:t,antCls:r,calc:n,max:a}=e,s=`${t}-btn`,[i,l]=He(r,"input-search"),c=e.inputFontSizeSM??e.fontSize,u=a(e.controlHeightSM,n(c).mul(e.lineHeight).add(n(e.paddingBlockSM).mul(2)).add(n(e.lineWidth).mul(2)).equal());return{[t]:{[i("btn-height")]:(0,Xt.unit)(e.controlHeight),width:"100%",[s]:{height:l("btn-height"),"&:focus-visible":{zIndex:5},[`&${r}-btn-icon-only`]:{width:l("btn-height")},"&-filled":{background:e.colorFillTertiary,"&:not(:disabled)":{"&:hover":{background:e.colorFillSecondary},"&:active":{background:e.colorFill}}}},[`&${t}-large`]:{[i("btn-height")]:(0,Xt.unit)(e.controlHeightLG)},[`&${t}-small`]:{[i("btn-height")]:(0,Xt.unit)(e.controlHeightSM)},[`&${t}-small ${s}`]:{minHeight:u,[`&${e.antCls}-btn-icon-only`]:{minWidth:u}}}}},Mn=je(["Input","Search"],e=>{let t=(0,We.mergeToken)(e,Tt(e));return ka(t)},zt);var Ua=ce((e,t)=>{let{prefixCls:r,inputPrefixCls:n,className:a,size:s,style:i,enterButton:l=!1,searchIcon:c,addonAfter:u,loading:y,disabled:R,onSearch:C,onChange:_,onCompositionStart:x,onCompositionEnd:I,variant:p,onPressEnter:b,classNames:O,styles:d,hidden:f,...v}=e,{direction:g,getPrefixCls:N,className:h,style:E,classNames:w,styles:S,searchIcon:T}=Fe("inputSearch"),U=P(lt),M=R??U,[V,,L]=Qe("inputSearch",p,e.bordered),$=L?V:void 0,[X]=Qe("inputSearch",p,e.bordered,"input"),B={...e,enterButton:l,variant:$},K=ye(E),W=ye(i),[A,j]=ke([w,O],[S,K,d,W],{props:B},{button:{_default:"root"}}),le=Q(!1),ee=N("input-search",r),Y=N("input",n),[D,oe]=Mn(ee),{compactSize:z}=so(ee,g),H=Be(se=>s??z??se),J=Q(null),fe=se=>{se?.target&&se.type==="click"&&C&&C(se.target.value,se,{source:"clear"}),_?.(se)},be=se=>{document.activeElement===J.current?.input&&se.preventDefault()},ge=se=>{C&&C(J.current?.input?.value,se,{source:"input"})},ne=se=>{le.current||y||(b?.(se),ge(se))},Re=typeof l=="boolean"?oo(c,T,m(Un,null)):null,ze=`${ee}-btn`,Se=k(ze,{[`${ze}-${$}`]:$}),he,F=l||{},te=F.type&&F.type.__ANT_BUTTON===!0;if(te||F.type==="button"){let se=F.props;he=Rt(F,{disabled:M||se.disabled||!te&&y,onMouseDown:be,onClick:zr=>{F?.props?.onClick?.(zr),ge(zr)},key:"enterButton",...te?{className:k(Se,se.className),loading:y||se.loading,size:H}:{}})}else he=m(lo,{classNames:A.button,styles:j.button,className:Se,color:l?"primary":"default",size:H,disabled:R,key:"enterButton",onMouseDown:be,onClick:ge,loading:y,icon:Re,variant:$==="borderless"||$==="filled"||$==="underlined"?"text":l?"solid":void 0},l);u&&(he=[he,Rt(u,{key:"addonAfter"})]);let G=k(ee,oe,{[`${ee}-rtl`]:g==="rtl",[`${ee}-${H}`]:!!H,[`${ee}-with-button`]:!!l},a,h,D,A.root),_e=se=>{le.current=!0,x?.(se)},ue=se=>{le.current=!1,I?.(se)},Ee=(0,Xe.pickAttrs)(v,{data:!0}),st=(0,Xe.omit)({...v,classNames:(0,Xe.omit)(A,["button","root"]),styles:(0,Xe.omit)(j,["button","root"]),prefixCls:Y,type:"search",size:H,variant:X,onPressEnter:ne,onCompositionStart:_e,onCompositionEnd:ue,onChange:fe,disabled:R},Object.keys(Ee));return m(ao,{className:G,style:j.root,...Ee,hidden:f},m(Ge,{ref:(0,Xe.composeRef)(J,t),...st}),he)}),Vn=Ua;var bt=Ge;bt.Group=vn;bt.Search=Vn;bt.TextArea=yo;bt.Password=zn;bt.OTP=In;var Dn=bt;q();var Qn=ae(Kn()),Zn=ae(Ce());var Le=ae(er());function Xn(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}var Yn=e=>({background:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}),ei={overflow:"hidden",...Xr},ti=e=>{let{componentCls:t,motionDurationSlow:r,motionEaseInOut:n,motionDurationMid:a}=e,s=e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(),i=e.calc(e.controlHeightLG).sub(e.calc(e.trackPadding).mul(2)).equal(),l=e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();return{[t]:{...St(e),display:"inline-block",padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${a}`,...Jr(e),[`${t}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",flexDirection:"row",width:"100%"},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-vertical`]:{[`${t}-group`]:{flexDirection:"column"},[`${t}-thumb`]:{width:"100%",height:0,padding:`0 ${(0,Le.unit)(e.paddingXXS)}`}},[`&${t}-block`]:{display:"flex"},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${a}`,borderRadius:e.borderRadiusSM,transform:"translateZ(0)","&-selected":{...Yn(e),color:e.itemSelectedColor},"&-focused":Yr(e),"&::after":{content:'""',position:"absolute",zIndex:-1,width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",opacity:0,pointerEvents:"none",transition:["opacity","background-color"].map(c=>`${c} ${a}`).join(", ")},[`&:not(${t}-item-selected):not(${t}-item-disabled)`]:{"&:hover, &:active":{color:e.itemHoverColor},"&:hover::after":{opacity:1,backgroundColor:e.itemHoverBg},"&:active::after":{opacity:1,backgroundColor:e.itemActiveBg}},"&-label":{minHeight:s,lineHeight:(0,Le.unit)(s),padding:`0 ${(0,Le.unit)(e.segmentedPaddingHorizontal)}`,...ei},"&-icon + *":{marginInlineStart:e.calc(e.marginSM).div(2).equal()},"&-icon > svg":{display:"inline-block",verticalAlign:"middle",marginBlockEnd:"0.2em"},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${t}-thumb`]:{...Yn(e),position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${(0,Le.unit)(e.paddingXXS)} 0`,borderRadius:e.borderRadiusSM,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:"transparent"}},[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:i,lineHeight:(0,Le.unit)(i),padding:`0 ${(0,Le.unit)(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:l,lineHeight:(0,Le.unit)(l),padding:`0 ${(0,Le.unit)(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}},...Xn(`&-disabled ${t}-item`,e),...Xn(`${t}-item-disabled`,e),[`${t}-thumb-motion-appear-active`]:{willChange:"transform, width",transition:["transform","width"].map(c=>`${c} ${r} ${n}`).join(", ")},[`&${t}-shape-round`]:{borderRadius:9999,[`${t}-item, ${t}-thumb`]:{borderRadius:9999}}}}},ri=e=>{let{colorTextLabel:t,colorText:r,colorFillSecondary:n,colorBgElevated:a,colorFill:s,lineWidthBold:i,colorBgLayout:l}=e;return{trackPadding:i,trackBg:l,itemColor:t,itemHoverColor:r,itemHoverBg:n,itemSelectedBg:a,itemActiveBg:s,itemSelectedColor:r}},Jn=je("Segmented",e=>{let{lineWidth:t,calc:r}=e,n=(0,We.mergeToken)(e,{segmentedPaddingHorizontal:r(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:r(e.controlPaddingHorizontalSM).sub(t).equal()});return ti(n)},ri);function oi(e){return me(e)&&!!e?.icon}var ni=ce((e,t)=>{let r=(0,Zn.useId)(),{prefixCls:n,className:a,rootClassName:s,block:i,options:l=[],size:c,style:u,vertical:y,orientation:R,shape:C="default",name:_=r,styles:x,classNames:I,...p}=e,{getPrefixCls:b,direction:O,className:d,style:f,classNames:v,styles:g}=Fe("segmented"),N={...e,options:l,size:c,shape:C},h=ye(f),E=ye(u),[w,S]=ke([v,I],[g,h,x,E],{props:N}),T=b("segmented",n),[U,M]=Jn(T),V=Be(c),L=re(()=>l.map(K=>{if(oi(K)){let{icon:W,label:A,...j}=K;return{...j,label:m(Ae,null,m("span",{className:k(`${T}-item-icon`,w.icon),style:S.icon},W),A&&m("span",null,A))}}return K}),[l,T,w.icon,S.icon]),[,$]=no(R,y),X=k(a,s,d,w.root,{[`${T}-block`]:i,[`${T}-sm`]:V==="small",[`${T}-lg`]:V==="large",[`${T}-vertical`]:$,[`${T}-shape-${C}`]:C==="round"},U,M),B=(K,{item:W})=>{if(!W.tooltip)return K;let A=me(W.tooltip)?W.tooltip:{title:W.tooltip};return m(Pt,{...A},K)};return m(Qn.default,{...p,name:_,className:X,style:S.root,classNames:w,styles:S,itemRender:B,options:L,ref:t,prefixCls:T,direction:O,vertical:$})}),si=ni,es=si;q();var ts="password",Ar="auth.password",ai="/login",ii="/register",li="/recovery",Pr=`/${Ar}${ai}`,rs=`/${Ar}${ii}`,os=`/${Ar}${li}`;function ns(e){if(e===null||typeof e!="object"||Array.isArray(e))throw new Error("\u8BA4\u8BC1\u54CD\u5E94\u65E0\u6548");let t=e;if(t.status==="verified")return{status:"verified"};throw t.status==="denied"?new Error("\u8BA4\u8BC1\u4FE1\u606F\u65E0\u6548\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u8BD5"):t.status==="pending"?new Error("\u8BA4\u8BC1\u4ECD\u5728\u5904\u7406\u4E2D\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5"):new Error("\u8BA4\u8BC1\u54CD\u5E94\u65E0\u6548")}function ss(e){if(e===null||typeof e!="object"||Array.isArray(e))throw new Error("\u9A8C\u8BC1\u7801\u54CD\u5E94\u65E0\u6548");let t=e;if(t.status!=="pending"||!Number.isSafeInteger(t.retryAfterMs)||t.retryAfterMs<=0||t.retryAfterMs>6e4)throw new Error("\u9A8C\u8BC1\u7801\u54CD\u5E94\u65E0\u6548");return{retryAfterMs:t.retryAfterMs}}var nt=_t(Sn),Tr=_t(Dn),ci=_t(es);function mi(e){let[t]=nt.useForm(),{message:r}=Ro(),n=Eo(),a=Mr(),[s,i]=de(e.transactionId),[l,c]=de("password"),[u,y]=de(!1),[R,C]=de(0),[_,x]=de(!1),[I,p]=de(!1),b=Q(void 0),O=e.intent!=="login"||l==="code",d=e.intent!=="login"||l==="password";Ie(()=>{if(R<=0)return;let h=window.setInterval(()=>C(E=>Math.max(0,E-1)),1e3);return()=>window.clearInterval(h)},[R]);async function f(){if(s)return s;let h=await di(n,e.intent);return i(h),h}async function v(){try{let{email:h}=await t.validateFields(["email"]);p(!0);let E=await f(),w=b.current?.email===h?b.current.requestId:crypto.randomUUID();b.current={email:h,requestId:w};let S=await n(ur(E),{method:"POST",headers:{"content-type":"application/json"},credentials:"same-origin",body:JSON.stringify({input:{action:"send-code",email:h,requestId:w}})},{errorMessage:"\u9A8C\u8BC1\u7801\u53D1\u9001\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5",parse:ss});y(!0),C(Math.ceil(S.retryAfterMs/1e3)),b.current=void 0,r.success("\u9A8C\u8BC1\u7801\u5DF2\u53D1\u9001")}catch{}finally{p(!1)}}async function g(h){x(!0);try{let E=await f(),w=O?{action:"verify-code",email:h.email,code:h.code,...d?{password:h.password}:{}}:{action:"password-login",email:h.email,password:h.password};if(await n(ur(E),{method:"POST",headers:{"content-type":"application/json"},credentials:"same-origin",body:JSON.stringify({input:w})},{errorMessage:"\u6CA1\u6709\u5B8C\u6210\uFF0C\u8BF7\u68C0\u67E5\u8F93\u5165\u540E\u91CD\u8BD5",parse:ns}),e.intent==="registration"){a.replace(Mo);return}a.replace("/")}catch{}finally{x(!1)}}let N=xi(e.intent);return Ne("section",{"aria-labelledby":"password-auth-title",className:"zlooks-password-form-auth-shell","data-auth-method":"password","data-flat-auth-layout":!0,children:[Ne("div",{className:"zlooks-password-form-introduction",children:[ie("p",{className:"zlooks-password-form-eyebrow",children:N.step}),ie("h1",{className:"zlooks-password-form-introduction-title",id:"password-auth-title",children:N.title}),ie("p",{className:"zlooks-password-form-introduction-copy",children:N.introduction}),ie(ui,{intent:e.intent})]}),Ne("div",{className:"zlooks-password-form-form-region",children:[ie("div",{className:"zlooks-password-form-form-body",children:Ne(nt,{form:t,layout:"vertical",requiredMark:!1,scrollToFirstError:{focus:!0},validateTrigger:"onBlur",onFinish:g,children:[e.intent==="login"?ie(nt.Item,{children:ie(ci,{"aria-label":"\u9009\u62E9\u767B\u5F55\u65B9\u5F0F",block:!0,options:[{label:"\u5BC6\u7801\u767B\u5F55",value:"password"},{label:"\u9A8C\u8BC1\u7801\u767B\u5F55",value:"code"}],size:"large",value:l,onChange:h=>{c(h),y(!1),C(0),i(e.transactionId),b.current=void 0,t.resetFields(["code"])}})}):null,ie(nt.Item,{label:"\u90AE\u7BB1",name:"email",rules:fi,children:ie(Tr,{autoComplete:"username",disabled:u,inputMode:"email",maxLength:320,placeholder:"name@example.com",size:"large",type:"email"})}),u?ie(Ft,{className:"zlooks-password-form-change-email",disabled:I||_,type:"link",onClick:()=>{y(!1),C(0),i(void 0),b.current=void 0,t.resetFields(["code"]),window.requestAnimationFrame(()=>t.focusField("email"))},children:"\u4FEE\u6539\u90AE\u7BB1"}):null,O?ie(nt.Item,{label:"\u9A8C\u8BC1\u7801",required:!0,children:Ne("div",{className:"zlooks-password-form-code-row",children:[ie(nt.Item,{noStyle:!0,name:"code",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801"},{len:6,message:"\u9A8C\u8BC1\u7801\u5E94\u4E3A 6 \u4F4D\u6570\u5B57"},{pattern:/^\d{6}$/,message:"\u9A8C\u8BC1\u7801\u5E94\u4E3A 6 \u4F4D\u6570\u5B57"}],children:ie(Tr,{"aria-label":"\u9A8C\u8BC1\u7801",autoComplete:"one-time-code",inputMode:"numeric",maxLength:6,placeholder:"6 \u4F4D\u9A8C\u8BC1\u7801",size:"large"})}),ie(Ft,{disabled:R>0||_,loading:I,onClick:v,size:"large",children:R>0?`${R} \u79D2\u540E\u91CD\u53D1`:u?"\u91CD\u65B0\u53D1\u9001":"\u53D1\u9001\u9A8C\u8BC1\u7801"})]})}):null,d?ie(nt.Item,{extra:e.intent!=="login"?"\u81F3\u5C11 12 \u4E2A\u5B57\u7B26\uFF0C\u5EFA\u8BAE\u4F7F\u7528\u5BC6\u7801\u7BA1\u7406\u5668\u751F\u6210\u5E76\u4FDD\u5B58\u3002":void 0,label:e.intent==="recovery"?"\u65B0\u5BC6\u7801":"\u5BC6\u7801",name:"password",rules:gi(e.intent!=="login"),children:ie(Tr.Password,{autoComplete:e.intent==="login"?"current-password":"new-password",maxLength:128,placeholder:e.intent==="login"?"\u8F93\u5165\u5BC6\u7801":"\u521B\u5EFA\u4E00\u4E2A\u5B89\u5168\u5BC6\u7801",size:"large"})}):null,ie(Ft,{block:!0,htmlType:"submit",loading:_,size:"large",type:"primary",disabled:I||O&&!u,children:N.submit})]})}),Ne("aside",{className:"zlooks-password-form-form-note",children:[ie("p",{children:N.description}),ie("span",{children:"\u4F60\u7684\u767B\u5F55\u4FE1\u606F\u53EA\u7528\u4E8E\u8BC6\u522B\u8D26\u6237\u3002"})]})]})]})}function ui({intent:e}){return e==="registration"?Ne("p",{className:"zlooks-password-form-alternate",children:["\u5DF2\u7ECF\u6709\u8D26\u53F7\uFF1F",ie(yt,{href:Pr,children:"\u8FD4\u56DE\u767B\u5F55"})]}):e==="recovery"?Ne("p",{className:"zlooks-password-form-alternate",children:["\u60F3\u8D77\u5BC6\u7801\u4E86\uFF1F",ie(yt,{href:Pr,children:"\u8FD4\u56DE\u767B\u5F55"})]}):Ne("div",{className:"zlooks-password-form-alternate-links",children:[Ne("p",{children:[ie("span",{children:"\u8FD8\u6CA1\u6709\u8D26\u6237\uFF1F"}),ie(yt,{href:rs,children:"\u521B\u5EFA\u8D26\u6237"})]}),Ne("p",{children:[ie("span",{children:"\u5FD8\u8BB0\u5BC6\u7801\uFF1F"}),ie(yt,{href:os,children:"\u627E\u56DE\u5BC6\u7801"})]})]})}async function di(e,t){return e(mr,{method:"POST",headers:{"content-type":"application/json"},credentials:"same-origin",body:JSON.stringify({methodId:ts,intent:t})},{errorMessage:"\u6682\u65F6\u65E0\u6CD5\u7EE7\u7EED\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5",parse:pi})}function pi(e){if(e===null||typeof e!="object"||Array.isArray(e))throw new Error("Invalid transaction response");let t=e.transactionId;if(typeof t!="string"||!hi.test(t))throw new Error("Invalid transaction response");return t}var fi=[{required:!0,message:"\u8BF7\u8F93\u5165\u90AE\u7BB1",whitespace:!0},{type:"email",message:"\u8BF7\u8F93\u5165\u6709\u6548\u7684\u90AE\u7BB1\u5730\u5740"},{max:320,message:"\u90AE\u7BB1\u5730\u5740\u4E0D\u80FD\u8D85\u8FC7 320 \u4E2A\u5B57\u7B26"}];function gi(e){return[{required:!0,message:"\u8BF7\u8F93\u5165\u5BC6\u7801"},...e?[{validator:async(t,r)=>{if(r){if(Array.from(r).length<12)throw new Error("\u5BC6\u7801\u81F3\u5C11\u9700\u8981 12 \u4E2A\u5B57\u7B26");if(new TextEncoder().encode(r).byteLength>128)throw new Error("\u5BC6\u7801\u8FC7\u957F\uFF0C\u8BF7\u7F29\u77ED\u540E\u91CD\u8BD5")}}}]:[{max:128,message:"\u5BC6\u7801\u4E0D\u80FD\u8D85\u8FC7 128 \u4E2A\u5B57\u7B26"}]]}var hi=/^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;function xi(e){return e==="registration"?{introduction:"\u9A8C\u8BC1\u90AE\u7BB1\u5E76\u521B\u5EFA\u8D26\u53F7\u540E\uFF0C\u53EF\u4EE5\u7EE7\u7EED\u5B8C\u5584\u8D44\u6599\uFF0C\u6574\u7406\u5C5E\u4E8E\u4F60\u7684\u8BB0\u5F55\u3002",step:"ACCOUNT / REGISTER",title:"\u521B\u5EFA\u8D26\u6237",description:"\u4F7F\u7528\u90AE\u7BB1\u9A8C\u8BC1\u7801\u548C\u5BC6\u7801\u521B\u5EFA\u8D26\u53F7\u3002",submit:"\u521B\u5EFA\u8D26\u53F7"}:e==="recovery"?{introduction:"\u9A8C\u8BC1\u6CE8\u518C\u90AE\u7BB1\u540E\u8BBE\u7F6E\u65B0\u5BC6\u7801\uFF0C\u65E7\u8BBE\u5907\u4E0A\u7684\u767B\u5F55\u4F1A\u81EA\u52A8\u9000\u51FA\u3002",step:"ACCOUNT / RECOVERY",title:"\u627E\u56DE\u5BC6\u7801",description:"\u9A8C\u8BC1\u7801\u53EA\u4F1A\u53D1\u9001\u5230\u5DF2\u7ECF\u6CE8\u518C\u7684\u90AE\u7BB1\u3002",submit:"\u66F4\u65B0\u5BC6\u7801\u5E76\u767B\u5F55"}:{introduction:"\u767B\u5F55\u540E\u53EF\u4EE5\u7BA1\u7406\u4E2A\u4EBA\u8D44\u6599\u4E0E\u767B\u5F55\u4F1A\u8BDD\u3002",step:"ACCOUNT / SIGN IN",title:"\u767B\u5F55\u8D26\u6237",description:"\u4F7F\u7528\u5BC6\u7801\u6216\u90AE\u7BB1\u9A8C\u8BC1\u7801\u767B\u5F55\u4F60\u7684\u8D26\u6237\u3002",submit:"\u767B\u5F55"}}export{mi as default};