import{n as e}from"./rolldown-runtime-Dl_DZoUm.js";import{$n as t,I as n,L as r,Qn as i,Rt as a,cn as o,tr as s}from"./index-D422TGjj.js";import{o as c,s as l}from"./useForm-gd33qHRf.js";var u=e(t()),d=e(s()),f=(0,d.createContext)({}),p=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i{let{getPrefixCls:r,direction:i}=d.useContext(o),{gutter:a,wrap:s}=d.useContext(f),{prefixCls:c,span:l,order:g,offset:_,push:v,pull:y,className:b,children:x,flex:S,style:C}=e,w=p(e,[`prefixCls`,`span`,`order`,`offset`,`push`,`pull`,`className`,`children`,`flex`,`style`]),T=r(`col`,c),[E,D,O]=n(T),k={},A={};h.forEach(t=>{let n={},r=e[t];typeof r==`number`?n.span=r:typeof r==`object`&&(n=r||{}),delete w[t],A=Object.assign(Object.assign({},A),{[`${T}-${t}-${n.span}`]:n.span!==void 0,[`${T}-${t}-order-${n.order}`]:n.order||n.order===0,[`${T}-${t}-offset-${n.offset}`]:n.offset||n.offset===0,[`${T}-${t}-push-${n.push}`]:n.push||n.push===0,[`${T}-${t}-pull-${n.pull}`]:n.pull||n.pull===0,[`${T}-rtl`]:i===`rtl`}),n.flex&&(A[`${T}-${t}-flex`]=!0,k[`--${T}-${t}-flex`]=m(n.flex))});let j=(0,u.default)(T,{[`${T}-${l}`]:l!==void 0,[`${T}-order-${g}`]:g,[`${T}-offset-${_}`]:_,[`${T}-push-${v}`]:v,[`${T}-pull-${y}`]:y},b,A,D,O),M={};if(a?.[0]){let e=typeof a[0]==`number`?`${a[0]/2}px`:`calc(${a[0]} / 2)`;M.paddingLeft=e,M.paddingRight=e}return S&&(M.flex=m(S),s===!1&&!M.minWidth&&(M.minWidth=0)),E(d.createElement(`div`,Object.assign({},w,{style:Object.assign(Object.assign(Object.assign({},M),C),k),className:j,ref:t}),x))});function _(e,t){let n=[void 0,void 0],r=Array.isArray(e)?e:[e,void 0],i=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0};return r.forEach((e,t)=>{if(typeof e==`object`&&e)for(let r=0;r{if(typeof e==`string`&&r(e),typeof e==`object`)for(let n=0;n{i()},[JSON.stringify(e),t]),n}var b=d.forwardRef((e,t)=>{let{prefixCls:n,justify:i,align:a,className:s,style:l,children:p,gutter:m=0,wrap:h}=e,g=v(e,[`prefixCls`,`justify`,`align`,`className`,`style`,`children`,`gutter`,`wrap`]),{getPrefixCls:b,direction:x}=d.useContext(o),S=c(!0,null),C=y(a,S),w=y(i,S),T=b(`row`,n),[E,D,O]=r(T),k=_(m,S),A=(0,u.default)(T,{[`${T}-no-wrap`]:h===!1,[`${T}-${w}`]:w,[`${T}-${C}`]:C,[`${T}-rtl`]:x===`rtl`},s,D,O),j={};if(k?.[0]){let e=typeof k[0]==`number`?`${k[0]/-2}px`:`calc(${k[0]} / -2)`;j.marginLeft=e,j.marginRight=e}let[M,N]=k;j.rowGap=N;let P=d.useMemo(()=>({gutter:[M,N],wrap:h}),[M,N,h]);return E(d.createElement(f.Provider,{value:P},d.createElement(`div`,Object.assign({},g,{className:A,style:Object.assign(Object.assign({},j),l),ref:t}),p)))}),x={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`},S=d.forwardRef(function(e,t){return d.createElement(a,i({},e,{ref:t,icon:x}))}),C={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z`}}]},name:`lock`,theme:`outlined`},w=d.forwardRef(function(e,t){return d.createElement(a,i({},e,{ref:t,icon:C}))});export{g as i,S as n,b as r,w as t};