"use strict";drill.define(function(n){return{addLength:function n(a){if(a instanceof Object){var t=0;Object.keys(a).forEach(function(i){if(!/\D/.test(i)){var e=parseInt(i)+1;e>t&&(t=e)}n(a[i])}),t&&(a.length=t)}},getTransformStr:function(n){var a="";return Object.keys(n).forEach(function(t){var i=n[t];a+=t+"("+i+") "}),a},transPos:function(n){var a=n.mainPage,t=n.animation;Array.from(a).forEach(function(n){var a=n.pageIn,i=n.pageOut,e=t.find(function(n){return n.name==a}),o=t.find(function(n){return n.name==i});if(!e)throw"has not this pageIn anime => "+a;if(!o)throw"has not this pageOut anime => "+i;n.pos1=Object.assign({},e.animation.from||e.animation[0]),n.pos1_after=Object.assign({},e.animation.to||e.animation[100]),n.pos2=Object.assign({},o.animation.from||o.animation[0]),n.pos2_after=Object.assign({},o.animation.to||o.animation[100]),n.removeInOpa&&(n.pos1.opacity=1),n.removeOutOpa&&(n.pos2_after.opacity=1),Array.from(n).forEach(function(n){var a=n.animateIn,i=n.animateOut,e=a&&t.find(function(n){return n.name==a}),o=i&&t.find(function(n){return n.name==i});Object.assign(n,{eleAnimeInCSS:e,eleAnimeOutCSS:o})})})}}});