| 
									
										
										
										
											2016-09-07 16:04:33 -07:00
										 |  |  | /** | 
					
						
							|  |  |  |  * @license | 
					
						
							|  |  |  |  * Copyright Google Inc. All Rights Reserved. | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * Use of this source code is governed by an MIT-style license that can be | 
					
						
							|  |  |  |  * found in the LICENSE file at https://angular.io/license
 | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | (function(global: any) { | 
					
						
							|  |  |  |   writeScriptTag('/vendor/zone.js'); | 
					
						
							| 
									
										
										
										
											2017-04-27 11:44:14 -07:00
										 |  |  |   writeScriptTag('/vendor/task-tracking.js'); | 
					
						
							| 
									
										
										
										
											2016-09-07 16:04:33 -07:00
										 |  |  |   writeScriptTag('/vendor/system.js'); | 
					
						
							|  |  |  |   writeScriptTag('/vendor/Reflect.js'); | 
					
						
							|  |  |  |   writeScriptTag('/_common/system-config.js'); | 
					
						
							| 
									
										
										
										
											2016-11-07 19:51:09 +00:00
										 |  |  |   if (location.pathname.indexOf('/upgrade/') != -1) { | 
					
						
							|  |  |  |     writeScriptTag('/vendor/angular.js'); | 
					
						
							|  |  |  |   } | 
					
						
							| 
									
										
										
										
											2016-09-07 16:04:33 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  |   function writeScriptTag(scriptUrl: string, onload: string = '') { | 
					
						
							|  |  |  |     document.write('<script src="' + scriptUrl + '" onload="' + onload + '"></script>'); | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | }(window)); |