define(["Ti/_/css","Ti/_/declare","Ti/_/style","Ti/_/lang","Ti/API","Ti/UI","Ti/_","Ti/_/dom"],function(t,e,i,n,o,d,h,r){return e("Ti._.Layouts.Base",null,{computedSize:{width:0,height:0},constructor:function(e){t.add(e.element.domNode,t.clean(this.declaredClass))},destroy:function(){t.remove(this.element.domNode,t.clean(this.declaredClass))},handleInvalidState:function(t,e){o.debug("WARNING: Attempting to layout element that has been destroyed.\n	 Removing the element from the parent.\n	 The parent has a widget ID of "+e.widgetId+".");var i=e._children;i.splice(i.indexOf(t),1)},getValueType:function(t){return void 0!==t?t===d.SIZE||t===d.FILL?t:~(t+"").indexOf("%")?"%":"#":void 0},calculateAnimation:function(t,e){var i=n.val,o=t._animationCoefficients||(t._animationCoefficients={height:{},left:{},minWidth:{},sandboxWidth:{},minHeight:{},sandboxHeight:{},top:{},width:{}}),d={};return this._measureNode(t,{left:i(e.left,t.left),right:i(e.right,t.right),top:i(e.top,t.top),bottom:i(e.bottom,t.bottom),center:(t.center||e.center)&&{x:i(e.center&&e.center.x,t.center&&t.center.x),y:i(e.center&&e.center.y,t.center&&t.center.y)},width:i(e.width,t.width),minWidth:t.minWidth,minHeight:t.minHeight,height:i(e.height,t.height)},o,this),d=this._doAnimationLayout(t,o),{left:d.left,top:d.top,width:d.width-t._borderLeftWidth-t._borderRightWidth,height:d.height-t._borderTopWidth-t._borderBottomWidth}},computeValue:function(t,e){return"%"===e?parseFloat(t)/100:"#"===e?r.computeSize(t):void 0}})});