drill.init(async(e,a)=>{await e("./animate.css","components/p-input -pack","components/p-selector -pack");let[t,n,i,m]=await e("util/syncPannelSelected","util/selectAnimate","common/animation","util/animationCSSUtil"),l=JSON.parse(JSON.stringify([...i.animateIn.slice(),...i.animateOut.slice()]));m.initAnimation(l);let{code:c}=await e("./animate.dcode"),o=$(c),s=o.viewData();s.watch("animateInTime",(e,a)=>{let t=/\..+/.exec(String(a));t&&t[0].length>3&&(a=a.toFixed(2),s.animateInTime=a)}),s.watch("animateInDelay",(e,a)=>{let t=/\..+/.exec(String(a));t&&t[0].length>3&&(a=a.toFixed(2),s.animateInDelay=a)}),window.animateData=s;let{marks:u}=o;return s.animateIn="",s.animateOut="",s.runAnime=!1,["animateIn","animateOut"].forEach(e=>{s.watch(e,(a,t)=>{if(t){let a=t;i[e].some(e=>{if(e.animateId==t)return a=e.name,!0}),u[e+"Input"].text=a,u[e+"Group"].class.remove("needanimate"),0==s[e+"Time"]&&(s[e+"Time"]="0.5")}else u[e+"Input"].text="选择动画",u[e+"Group"].class.add("needanimate")}),u[e+"ViewBtn"].on("click",e=>{s.runAnime=!0}),u[e+"DeleteBtn"].on("click",a=>{s[e]=""}),u[e+"Input"].on("click",async a=>{let t=await n("animateIn"==e?"in":"out");t&&(s[e]=t.value)})}),t(a,s,e=>{e&&"p-page"==e.tag?o.display="none":o.display=""}),o});