/** * @license Angular v5.2.11 * (c) 2010-2018 Google, Inc. https://angular.io/ * License: MIT */ !function(global,factory){"object"==typeof exports&&"undefined"!=typeof module?factory(exports,require("@angular/core"),require("@angular/platform-browser"),require("@angular/animations"),require("@angular/animations/browser")):"function"==typeof define&&define.amd?define("@angular/platform-browser/animations",["exports","@angular/core","@angular/platform-browser","@angular/animations","@angular/animations/browser"],factory):factory((global.ng=global.ng||{},global.ng.platformBrowser=global.ng.platformBrowser||{},global.ng.platformBrowser.animations={}),global.ng.core,global.ng.platformBrowser,global.ng.animations,global.ng.animations.browser)}(this,function(exports,_angular_core,_angular_platformBrowser,_angular_animations,_angular_animations_browser){"use strict";function __extends(d,b){function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)}function issueAnimationCommand(renderer,element,id,command,args){return renderer.setProperty(element,"@@"+id+":"+command,args)}function resolveElementFromTarget(target){switch(target){case"body":return document.body;case"document":return document;case"window":return window;default:return target}}function parseTriggerCallbackName(triggerName){var dotIndex=triggerName.indexOf(".");return[triggerName.substring(0,dotIndex),triggerName.substr(dotIndex+1)]}function instantiateSupportedAnimationDriver(){return _angular_animations_browser.ɵsupportsWebAnimations()?new _angular_animations_browser.ɵWebAnimationsDriver:new _angular_animations_browser.ɵNoopAnimationDriver}function instantiateDefaultStyleNormalizer(){return new _angular_animations_browser.ɵWebAnimationsStyleNormalizer}function instantiateRendererFactory(renderer,engine,zone){return new AnimationRendererFactory(renderer,engine,zone)}var extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p])},BrowserAnimationBuilder=function(_super){function BrowserAnimationBuilder(rootRenderer,doc){var _this=_super.call(this)||this;_this._nextAnimationId=0;var typeData={id:"0",encapsulation:_angular_core.ViewEncapsulation.None,styles:[],data:{animation:[]}};return _this._renderer=rootRenderer.createRenderer(doc.body,typeData),_this}return __extends(BrowserAnimationBuilder,_super),BrowserAnimationBuilder.prototype.build=function(animation){var id=this._nextAnimationId.toString();this._nextAnimationId++;var entry=Array.isArray(animation)?_angular_animations.sequence(animation):animation;return issueAnimationCommand(this._renderer,null,id,"register",[entry]),new BrowserAnimationFactory(id,this._renderer)},BrowserAnimationBuilder.decorators=[{type:_angular_core.Injectable}],BrowserAnimationBuilder.ctorParameters=function(){return[{type:_angular_core.RendererFactory2},{type:void 0,decorators:[{type:_angular_core.Inject,args:[_angular_platformBrowser.DOCUMENT]}]}]},BrowserAnimationBuilder}(_angular_animations.AnimationBuilder),BrowserAnimationFactory=function(_super){function BrowserAnimationFactory(_id,_renderer){var _this=_super.call(this)||this;return _this._id=_id,_this._renderer=_renderer,_this}return __extends(BrowserAnimationFactory,_super),BrowserAnimationFactory.prototype.create=function(element,options){return new RendererAnimationPlayer(this._id,element,options||{},this._renderer)},BrowserAnimationFactory}(_angular_animations.AnimationFactory),RendererAnimationPlayer=function(){function RendererAnimationPlayer(id,element,options,_renderer){this.id=id,this.element=element,this._renderer=_renderer,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",options)}return RendererAnimationPlayer.prototype._listen=function(eventName,callback){return this._renderer.listen(this.element,"@@"+this.id+":"+eventName,callback)},RendererAnimationPlayer.prototype._command=function(command){for(var args=[],_i=1;_i=0&&count