drill.define(async a=>{let e=await a("common/animation");a("./animateSlide.css");let t,i,{code:n}=await a("./animateSlide.dcode"),d=$(n),{animateInTagsGroup:s,animateOutTagsGroup:l,slideContent:o,fenleiCon:c}=d.marks;return e.animateInTags.forEach(a=>{s.push(`\n        <div class="dirblock" data-typeId="${a.typeId}" data-atype="in">${a.name}</div>\n        `),o.push(`\n        <div class="animate_slide_group" data-animatetype="in">\n            <div class="group_name">${a.name}</div>\n            <div class="group_content" data-animate-typeId="${a.typeId}"></div>\n        </div>\n        `)}),e.animateOutTags.forEach(a=>{l.push(`\n        <div class="dirblock" data-typeId="${a.typeId}" data-atype="out">${a.name}</div>\n        `),o.push(`\n        <div class="animate_slide_group" data-animatetype="out">\n            <div class="group_name">${a.name}</div>\n            <div class="group_content" data-animate-typeId="${a.typeId}"></div>\n        </div>\n        `)}),e.animateIn.forEach(t=(a=>{let e=d.que(`[data-animate-typeId="${a.type}"]`);if(e){let t=$(`\n            <div class="animate_slide_block" data-animateid="${a.animateId}" data-animategroupid="${a.groupId}" data-animatestat="${a.stat}">\n                <div class="block_view">\n                    <div class="animate_viewer">A</div>\n                </div>\n                <div class="block_name">${a.name}</div>\n            </div>\n            `);e.push(t)}})),e.animateOut.forEach(t),d.que(".fenlei_con").on("click",".dirblock",a=>{let{delegateTarget:e}=a;if(e.class.contains("disable"))return;let{atype:t,typeid:i}=e.data,n=c.que(".selected");n!=e&&(n&&n.class.remove("selected"),e.class.add("selected"),o.queAll(".animate_slide_group").forEach(a=>{let{animatetype:e}=a.data;a.display=e!==t?"none":""}),d.parent&&!d.parent.class.contains("hide")&&d.que(`.animate_slide_group [data-animate-typeId="${i}"]`).parent.ele.scrollIntoView({behavior:"smooth",block:"start"}))}),d.que(".fenlei_con .dirblock").ele.click(),o.on("mouseover",".block_view",i=(a=>{let{delegateTarget:e}=a;e.que(".animate_viewer").class.add(e.parent.data.animateid),e.que(".animate_viewer").one("animationend",a=>{e.que(".animate_viewer").class.remove(e.parent.data.animateid)})})),o.on("click",".block_view",i),d});