System.register(["./index-legacy.sLMPZLm9.js"],(function(t,e){"use strict";var n;return{setters:[t=>{n=t.D}],execute:function(){function e(t,e){return t.classList?t.classList.contains(e):` ${t.className} `.indexOf(` ${e} `)>-1}function o(t,n){t.classList?t.classList.add(n):e(t,n)||(t.className=`${t.className} ${n}`)}function i(t,n){if(t.classList)t.classList.remove(n);else if(e(t,n)){const e=t.className;t.className=` ${e} `.replace(` ${n} `," ")}}t({a:o,b:function(t,e,n,o){for(var i=t.length,s=n+-1;++s<i;)if(e(t[s],s,t))return s;return-1},r:i}),t("g",(t=>({[t.componentCls]:{[`${t.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${t.motionDurationMid} ${t.motionEaseInOut},\n        opacity ${t.motionDurationMid} ${t.motionEaseInOut} !important`}},[`${t.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${t.motionDurationMid} ${t.motionEaseInOut},\n        opacity ${t.motionDurationMid} ${t.motionEaseInOut} !important`}}}))),t("c",(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ant-motion-collapse";return{name:t,appear:!(arguments.length>1&&void 0!==arguments[1])||arguments[1],css:!0,onBeforeEnter:e=>{e.style.height="0px",e.style.opacity="0",o(e,t)},onEnter:t=>{n((()=>{t.style.height=`${t.scrollHeight}px`,t.style.opacity="1"}))},onAfterEnter:e=>{e&&(i(e,t),e.style.height=null,e.style.opacity=null)},onBeforeLeave:e=>{o(e,t),e.style.height=`${e.offsetHeight}px`,e.style.opacity=null},onLeave:t=>{setTimeout((()=>{t.style.height="0px",t.style.opacity="0"}))},onAfterLeave:e=>{e&&(i(e,t),e.style&&(e.style.height=null,e.style.opacity=null))}}}))}}}));
